From 59efa9a30b0205e68878c40372619ac2ed821068 Mon Sep 17 00:00:00 2001 From: Sayem Hossain Date: Sun, 21 Jan 2024 12:31:20 +0600 Subject: [PATCH] Auto-generated commit [ci skip] --- ...f06e0d0b960.js => 318.2d0f753258aa2e26.js} | 2 +- bn-BN/326.38354acd47162138.js | 1 + bn-BN/326.ec29f673254ec6d6.js | 1 - .../424.05662c3e665c7706.js | 2 +- ...3e525ccd33c.js => 754.a68f3dd41de9e035.js} | 2 +- bn-BN/assets/apanel/js/app.js | 44 +++++++++---------- bn-BN/assets/apanel/js/plugin.js | 2 +- bn-BN/index.html | 4 +- bn-BN/main.564757f70d749b54.js | 3 -- bn-BN/main.cdd6c90df8adce6a.js | 3 ++ bn-BN/ngsw.json | 32 +++++++------- bn-BN/runtime.428f2f87d74ace4a.js | 1 + bn-BN/runtime.9647eb106d84aad4.js | 1 - ...f06e0d0b960.js => 318.2d0f753258aa2e26.js} | 2 +- en-US/326.38354acd47162138.js | 1 + en-US/326.ec29f673254ec6d6.js | 1 - .../424.05662c3e665c7706.js | 2 +- ...3e525ccd33c.js => 754.a68f3dd41de9e035.js} | 2 +- en-US/assets/apanel/js/app.js | 44 +++++++++---------- en-US/assets/apanel/js/plugin.js | 2 +- en-US/index.html | 4 +- en-US/main.564757f70d749b54.js | 3 -- en-US/main.cdd6c90df8adce6a.js | 3 ++ en-US/ngsw.json | 32 +++++++------- en-US/runtime.428f2f87d74ace4a.js | 1 + en-US/runtime.9647eb106d84aad4.js | 1 - 26 files changed, 98 insertions(+), 98 deletions(-) rename bn-BN/{318.7cb67f06e0d0b960.js => 318.2d0f753258aa2e26.js} (56%) create mode 100644 bn-BN/326.38354acd47162138.js delete mode 100644 bn-BN/326.ec29f673254ec6d6.js rename en-US/424.c731aac7a204dc96.js => bn-BN/424.05662c3e665c7706.js (65%) rename bn-BN/{754.c30013e525ccd33c.js => 754.a68f3dd41de9e035.js} (79%) delete mode 100644 bn-BN/main.564757f70d749b54.js create mode 100644 bn-BN/main.cdd6c90df8adce6a.js create mode 100644 bn-BN/runtime.428f2f87d74ace4a.js delete mode 100644 bn-BN/runtime.9647eb106d84aad4.js rename en-US/{318.7cb67f06e0d0b960.js => 318.2d0f753258aa2e26.js} (56%) create mode 100644 en-US/326.38354acd47162138.js delete mode 100644 en-US/326.ec29f673254ec6d6.js rename bn-BN/424.c731aac7a204dc96.js => en-US/424.05662c3e665c7706.js (65%) rename en-US/{754.c30013e525ccd33c.js => 754.a68f3dd41de9e035.js} (78%) delete mode 100644 en-US/main.564757f70d749b54.js create mode 100644 en-US/main.cdd6c90df8adce6a.js create mode 100644 en-US/runtime.428f2f87d74ace4a.js delete mode 100644 en-US/runtime.9647eb106d84aad4.js diff --git a/bn-BN/318.7cb67f06e0d0b960.js b/bn-BN/318.2d0f753258aa2e26.js similarity index 56% rename from bn-BN/318.7cb67f06e0d0b960.js rename to bn-BN/318.2d0f753258aa2e26.js index 3181675..36907b6 100644 --- a/bn-BN/318.7cb67f06e0d0b960.js +++ b/bn-BN/318.2d0f753258aa2e26.js @@ -1 +1 @@ -"use strict";(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[318],{7597:(R,E,r)=>{r.d(E,{U:()=>g});var f=r(2495),v=r(553),c=r(5879);class g extends f.O{constructor(){super()}static#t=this.USERS={USER_ENDPOINT:v.N.base_url+"/api/v1/users",USER_ENDPOINT_ADMIN:v.N.base_url+"/api/v1/admin/users",SEARCH:(a,b)=>a.concat(f.O.toParamString(b)),CREATE(){return this.USER_ENDPOINT},GET(a){return this.USER_ENDPOINT+"/"+a},UPDATE(a){return this.USER_ENDPOINT+"/"+a}};static#e=this.\u0275fac=function(b){return new(b||g)};static#i=this.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"})}},3318:(R,E,r)=>{r.r(E),r.d(E,{UserModule:()=>ne});var f=r(6814),v=r(7151),c=r(9277),g=r(6223),D=r(3365),a=r(1662),b=r(6542),I=r(6676),m=r(2739),L=r(7259),h=r(8637),t=r(5879),u=r(5462),Z=r(30),C=r(6945),q=r(1547),A=r(1259),y=r(8480),p=r(9862);let T=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBus=s}search(e,n){this.http.get(A.e.ACTIVITY_LOGS.ADMIN_SEARCH(n)).subscribe(o=>{this.eventBus.publish(e,o)},o=>{this.handleError(o,s=>{this.search(e,n)},s=>{this.eventBus.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var _=r(4736),U=r(1836),x=r(6075),N=r(2770);function S(i,d){1&i&&t._UZ(0,"util-progress",11),2&i&&t.Q6J("bar",!0)}function j(i,d){if(1&i&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._uU(12),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.ALo(17,"readableDate"),t.qZA(),t.TgZ(18,"td"),t._uU(19),t.ALo(20,"readableDate"),t.qZA()()),2&i){const e=d.$implicit;t.xp6(2),t.Oqu(e.user_id),t.xp6(2),t.Oqu(e.username),t.xp6(2),t.Oqu(e.user_agent),t.xp6(2),t.Oqu(e.ip),t.xp6(2),t.Oqu(e.request_method),t.xp6(2),t.Oqu(e.url),t.xp6(2),t.Oqu(e.total_visitors),t.xp6(2),t.Oqu(t.lcZ(17,9,e.created_at)),t.xp6(3),t.Oqu(t.lcZ(20,11,e.updated_at))}}let $=(()=>{class i extends h.H{constructor(e,n,o,s,l,O){super(n,o,s),this.notifier=e,this.activatedRoute=l,this.activityLogService=O,this.size=10,this.page=1,this.activityLogs=b.H,this.username=null,this.created_from=new Date,this.created_to=new Date}componentName(){return"ActivityLogComponent"}ngOnInit(){this.activatedRoute.queryParams.subscribe(e=>{let n=e.from_date,o=e.to_date,s=e.page,l=e.size;null!=n&&null!=o?(this.created_from=I(n).toDate(),this.created_to=I(o).toDate()):(this.created_from=m.b.getDayStart(new Date(0)),this.created_to=m.b.getDayEnd(new Date)),this.searchActivityLogs({username:this.username,from_date:m.b.getDayStart(this.created_from),to_date:m.b.getDayEnd(this.created_to),page:s,size:l})})}searchActivityLogs(e){this.loading=!0;const n=this.componentKey(L.Z.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS());this.activityLogService.search(n,e),this.subscribe(n,null,(o,s)=>{this.activityLogs=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.log(s.data)})}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(u.l),t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(a.gz),t.Y36(T))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-activity-log"]],features:[t.qOj],decls:44,vars:3,consts:[[1,"row"],[3,"bar",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"card-title-desc"],[1,"table-responsive"],[1,"table","table-responsive","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[3,"page"],[3,"bar"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t.YNc(1,S,1,1,"util-progress",1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Activity Log"),t.qZA(),t.TgZ(7,"p",6),t._uU(8,"Activity logs for users"),t.qZA(),t._UZ(9,"app-basic-filter"),t.TgZ(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th")(15,"h6"),t._uU(16,"USER ID"),t.qZA()(),t.TgZ(17,"th")(18,"h6"),t._uU(19,"USERNAME"),t.qZA()(),t.TgZ(20,"th")(21,"h6"),t._uU(22,"USER AGENT"),t.qZA()(),t.TgZ(23,"th")(24,"h6"),t._uU(25,"IP"),t.qZA()(),t.TgZ(26,"th")(27,"h6"),t._uU(28,"R. METHOD"),t.qZA()(),t.TgZ(29,"th")(30,"h6"),t._uU(31,"URL"),t.qZA()(),t.TgZ(32,"th")(33,"h6"),t._uU(34,"TOTAL VISITORS"),t.qZA()(),t.TgZ(35,"th")(36,"h6"),t._uU(37,"CREATED AT"),t.qZA()(),t.TgZ(38,"th")(39,"h6"),t._uU(40,"LAST UPDATED"),t.qZA()()()(),t.TgZ(41,"tbody"),t.YNc(42,j,21,13,"tr",9),t.qZA()()(),t._UZ(43,"app-pagination",10),t.qZA()()()()),2&n&&(t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(41),t.Q6J("ngForOf",null==o.activityLogs?null:o.activityLogs.content),t.xp6(1),t.Q6J("page",o.activityLogs))},dependencies:[f.sg,f.O5,_.t,U.Q,x.D,N.G]})}return i})(),W=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBus=s}search(e,n){this.http.get(A.e.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS(n)).subscribe(o=>{this.eventBus.publish(e,o)},o=>{this.handleError(o,s=>{this.search(e,n)},s=>{this.eventBus.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function X(i,d){1&i&&t._UZ(0,"util-progress",22),2&i&&t.Q6J("bar",!0)}function tt(i,d){if(1&i&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._uU(12),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.qZA(),t.TgZ(21,"td"),t._uU(22),t.qZA(),t.TgZ(23,"td"),t._uU(24),t.qZA(),t.TgZ(25,"td"),t._uU(26),t.qZA(),t.TgZ(27,"td"),t._uU(28),t.qZA(),t.TgZ(29,"td"),t._uU(30),t.qZA(),t.TgZ(31,"td"),t._uU(32),t.qZA(),t.TgZ(33,"td"),t._uU(34),t.qZA(),t.TgZ(35,"td"),t._uU(36),t.qZA(),t.TgZ(37,"td"),t._uU(38),t.qZA(),t.TgZ(39,"td"),t._uU(40),t.qZA(),t.TgZ(41,"td"),t._uU(42),t.qZA(),t.TgZ(43,"td"),t._uU(44),t.qZA(),t.TgZ(45,"td"),t._uU(46),t.qZA(),t.TgZ(47,"td"),t._uU(48),t.qZA(),t.TgZ(49,"td"),t._uU(50),t.qZA(),t.TgZ(51,"td"),t._uU(52),t.qZA(),t.TgZ(53,"td"),t._uU(54),t.qZA(),t.TgZ(55,"td"),t._uU(56),t.qZA(),t.TgZ(57,"td"),t._uU(58),t.qZA(),t.TgZ(59,"td"),t._uU(60),t.qZA(),t.TgZ(61,"td"),t._uU(62),t.qZA(),t.TgZ(63,"td"),t._uU(64),t.qZA(),t.TgZ(65,"td"),t._uU(66),t.qZA(),t.TgZ(67,"td"),t._uU(68),t.qZA(),t.TgZ(69,"td"),t._uU(70),t.qZA(),t.TgZ(71,"td"),t._uU(72),t.qZA(),t.TgZ(73,"td"),t._uU(74),t.qZA(),t.TgZ(75,"td"),t._uU(76),t.qZA(),t.TgZ(77,"td"),t._uU(78),t.qZA(),t.TgZ(79,"td"),t._uU(80),t.qZA(),t.TgZ(81,"td"),t._uU(82),t.qZA(),t.TgZ(83,"td"),t._uU(84),t.qZA(),t.TgZ(85,"td"),t._uU(86),t.qZA(),t.TgZ(87,"td"),t._uU(88),t.qZA(),t.TgZ(89,"td"),t._uU(90),t.qZA(),t.TgZ(91,"td"),t._uU(92),t.qZA(),t.TgZ(93,"td"),t._uU(94),t.qZA(),t.TgZ(95,"td"),t._uU(96),t.qZA(),t.TgZ(97,"td"),t._uU(98),t.qZA(),t.TgZ(99,"td"),t._uU(100),t.qZA()()),2&i){const e=d.$implicit;t.xp6(2),t.Oqu(e.ip),t.xp6(2),t.Oqu(e.url),t.xp6(2),t.Oqu(e.body),t.xp6(2),t.Oqu(e.user_agent_header),t.xp6(2),t.Oqu(e.forwarded_for_header),t.xp6(2),t.Oqu(e.authorization_header),t.xp6(2),t.Oqu(e.cookie_header),t.xp6(2),t.Oqu(e.referer_header),t.xp6(2),t.Oqu(e.x_frame_options_header),t.xp6(2),t.Oqu(e.content_type_header),t.xp6(2),t.Oqu(e.origin_header),t.xp6(2),t.Oqu(e.x_http_method_override_header),t.xp6(2),t.Oqu(e.content_security_policy_header),t.xp6(2),t.Oqu(e.accept_charset_header),t.xp6(2),t.Oqu(e.accept_datetime_header),t.xp6(2),t.Oqu(e.accept_encoding_header),t.xp6(2),t.Oqu(e.accept_header),t.xp6(2),t.Oqu(e.accept_language_header),t.xp6(2),t.Oqu(e.access_control_allow_credentials_header),t.xp6(2),t.Oqu(e.access_control_allow_headers_header),t.xp6(2),t.Oqu(e.access_control_allow_methods_header),t.xp6(2),t.Oqu(e.access_control_allow_origin_header),t.xp6(2),t.Oqu(e.access_control_expose_headers_header),t.xp6(2),t.Oqu(e.access_control_max_age_header),t.xp6(2),t.Oqu(e.access_control_request_headers_header),t.xp6(2),t.Oqu(e.access_control_request_method_header),t.xp6(2),t.Oqu(e.authorization_info_header),t.xp6(2),t.Oqu(e.cache_control_header),t.xp6(2),t.Oqu(e.connection_header),t.xp6(2),t.Oqu(e.content_encoding_header),t.xp6(2),t.Oqu(e.content_length_header),t.xp6(2),t.Oqu(e.dnt_header),t.xp6(2),t.Oqu(e.forward_header),t.xp6(2),t.Oqu(e.host_header),t.xp6(2),t.Oqu(e.if_modified_since_header),t.xp6(2),t.Oqu(e.if_none_match_header),t.xp6(2),t.Oqu(e.if_range_header),t.xp6(2),t.Oqu(e.if_unmodified_since_header),t.xp6(2),t.Oqu(e.max_forwards_header),t.xp6(2),t.Oqu(e.pragma_header),t.xp6(2),t.Oqu(e.proxy_authorization_header),t.xp6(2),t.Oqu(e.range_header),t.xp6(2),t.Oqu(e.te_header),t.xp6(2),t.Oqu(e.upgrade_header),t.xp6(2),t.Oqu(e.via_header),t.xp6(2),t.Oqu(e.warning_header),t.xp6(2),t.Oqu(e.x_forwarded_for_header),t.xp6(2),t.Oqu(e.x_forwarded_host_header),t.xp6(2),t.Oqu(e.x_forwarded_proto_header),t.xp6(2),t.Oqu(e.x_requested_with_header)}}const P=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}},H=function(){return{standalone:!0}};let et=(()=>{class i extends h.H{constructor(e,n,o,s,l,O){super(n,o,s),this.notifier=e,this.activatedRoute=l,this.reqCredService=O,this.size=10,this.page=1,this.created_from=new Date,this.created_to=new Date}componentName(){return"RequestCredentialsComponent"}ngOnInit(){this.activatedRoute.queryParams.subscribe(e=>{let n=e.from_date,o=e.to_date;null!=n&&null!=o?(this.created_from=I(n).toDate(),this.created_to=I(o).toDate()):(this.created_from=new Date(0),this.created_to=new Date)}),this.searchRequestCredentials({created_from:null==this.created_from?this.created_from:m.b.getDayStart(this.created_from),created_to:null==this.created_to?this.created_to:m.b.getDayEnd(this.created_to),page:0,size:this.size})}onFilterClick(){this.searchRequestCredentials({created_from:m.b.getDayStart(this.created_from),created_to:m.b.getDayEnd(this.created_to),page:0,size:this.size})}searchRequestCredentials(e){this.loading=!0;const n=this.componentKey(L.Z.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS());this.reqCredService.search(n,e),this.subscribe(n,null,(o,s)=>{this.requestCredentials=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.log(s.data)})}onPageChanged(e){this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:e.pageIndex,size:this.size})}filterForToday(){this.created_from=m.b.getDayStart(new Date),this.created_to=m.b.getDayEnd(new Date),this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:0,size:this.size})}clearFilter(){this.created_from=m.b.getDayStart(new Date(0)),this.created_to=m.b.getDayEnd(new Date),this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:0,size:this.size})}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(u.l),t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(a.gz),t.Y36(W))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-activity-log"]],features:[t.qOj],decls:138,vars:16,consts:[[1,"row"],[3,"bar",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"card-title-desc"],[1,"row","gy-2","gx-3","mb-3","align-items-center"],[1,"col-sm-auto"],["type","submit",1,"btn","btn-info","w-md",3,"click"],["for","fromDate",1,"visually-hidden"],[1,"input-group"],["bsDatepicker","","id","fromDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","maxDate","ngModelChange"],["for","toDate",1,"visually-hidden"],["bsDatepicker","","id","toDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","minDate","ngModelChange"],["type","submit",1,"btn","btn-primary","w-md",3,"click"],["type","submit",1,"btn","btn-warning","w-md",3,"click"],[1,"table-responsive"],[1,"table","table-responsive","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"col-lg-12","grid-margin","stretch-card"],["aria-label","Select page",3,"length","pageSize","page"],[3,"bar"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t.YNc(1,X,1,1,"util-progress",1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Lockouts"),t.qZA(),t.TgZ(7,"p",6),t._uU(8,"List of lockouts that happened to the users because of failed login."),t.qZA(),t.TgZ(9,"form",7)(10,"div",8)(11,"button",9),t.NdJ("click",function(){return o.filterForToday()}),t._uU(12,"Today"),t.qZA()(),t.TgZ(13,"div",8)(14,"label",10),t._uU(15,"From"),t.qZA(),t.TgZ(16,"div",11)(17,"input",12),t.NdJ("ngModelChange",function(l){return o.created_from=l}),t.qZA()()(),t.TgZ(18,"div",8)(19,"label",13),t._uU(20,"To"),t.qZA(),t.TgZ(21,"div",11)(22,"input",14),t.NdJ("ngModelChange",function(l){return o.created_to=l}),t.qZA()()(),t.TgZ(23,"div",8)(24,"button",15),t.NdJ("click",function(){return o.onFilterClick()}),t._uU(25,"Filter"),t.qZA()(),t.TgZ(26,"div",8)(27,"button",16),t.NdJ("click",function(){return o.clearFilter()}),t._uU(28,"Clear"),t.qZA()()(),t.TgZ(29,"div",17)(30,"table",18)(31,"thead")(32,"tr")(33,"th"),t._uU(34,"IP"),t.qZA(),t.TgZ(35,"th"),t._uU(36,"URL"),t.qZA(),t.TgZ(37,"th"),t._uU(38,"Body"),t.qZA(),t.TgZ(39,"th"),t._uU(40,"User Agent Header"),t.qZA(),t.TgZ(41,"th"),t._uU(42,"X Forwarded For Header"),t.qZA(),t.TgZ(43,"th"),t._uU(44,"Authorization Header"),t.qZA(),t.TgZ(45,"th"),t._uU(46,"Cookie Header"),t.qZA(),t.TgZ(47,"th"),t._uU(48,"Referer Header"),t.qZA(),t.TgZ(49,"th"),t._uU(50,"X Frame Options Header"),t.qZA(),t.TgZ(51,"th"),t._uU(52,"Content Type Header"),t.qZA(),t.TgZ(53,"th"),t._uU(54,"Origin Header"),t.qZA(),t.TgZ(55,"th"),t._uU(56,"X HTTP Method Override Header"),t.qZA(),t.TgZ(57,"th"),t._uU(58,"Content Security Policy Header"),t.qZA(),t.TgZ(59,"th"),t._uU(60,"Accept Charset Header"),t.qZA(),t.TgZ(61,"th"),t._uU(62,"Accept Datetime Header"),t.qZA(),t.TgZ(63,"th"),t._uU(64,"Accept Encoding Header"),t.qZA(),t.TgZ(65,"th"),t._uU(66,"Accept Header"),t.qZA(),t.TgZ(67,"th"),t._uU(68,"Accept Language Header"),t.qZA(),t.TgZ(69,"th"),t._uU(70,"Access Control Allow Credentials Header"),t.qZA(),t.TgZ(71,"th"),t._uU(72,"Access Control Allow Headers Header"),t.qZA(),t.TgZ(73,"th"),t._uU(74,"Access Control Allow Methods Header"),t.qZA(),t.TgZ(75,"th"),t._uU(76,"Access Control Allow Origin Header"),t.qZA(),t.TgZ(77,"th"),t._uU(78,"Access Control Expose Headers Header"),t.qZA(),t.TgZ(79,"th"),t._uU(80,"Access Control Max Age Header"),t.qZA(),t.TgZ(81,"th"),t._uU(82,"Access Control Request Headers Header"),t.qZA(),t.TgZ(83,"th"),t._uU(84,"Access Control Request Method Header"),t.qZA(),t.TgZ(85,"th"),t._uU(86,"Authorization Info Header"),t.qZA(),t.TgZ(87,"th"),t._uU(88,"Cache Control Header"),t.qZA(),t.TgZ(89,"th"),t._uU(90,"Connection Header"),t.qZA(),t.TgZ(91,"th"),t._uU(92,"Content Encoding Header"),t.qZA(),t.TgZ(93,"th"),t._uU(94,"Content Length Header"),t.qZA(),t.TgZ(95,"th"),t._uU(96,"DNT Header"),t.qZA(),t.TgZ(97,"th"),t._uU(98,"Forward Header"),t.qZA(),t.TgZ(99,"th"),t._uU(100,"Forwarded For Header"),t.qZA(),t.TgZ(101,"th"),t._uU(102,"Host Header"),t.qZA(),t.TgZ(103,"th"),t._uU(104,"If Modified Since Header"),t.qZA(),t.TgZ(105,"th"),t._uU(106,"If None Match Header"),t.qZA(),t.TgZ(107,"th"),t._uU(108,"If Range Header"),t.qZA(),t.TgZ(109,"th"),t._uU(110,"If Unmodified Since Header"),t.qZA(),t.TgZ(111,"th"),t._uU(112,"Max Forwards Header"),t.qZA(),t.TgZ(113,"th"),t._uU(114,"Pragma Header"),t.qZA(),t.TgZ(115,"th"),t._uU(116,"Proxy Authorization Header"),t.qZA(),t.TgZ(117,"th"),t._uU(118,"Range Header"),t.qZA(),t.TgZ(119,"th"),t._uU(120,"TE Header"),t.qZA(),t.TgZ(121,"th"),t._uU(122,"Upgrade Header"),t.qZA(),t.TgZ(123,"th"),t._uU(124,"Via Header"),t.qZA(),t.TgZ(125,"th"),t._uU(126,"Warning Header"),t.qZA(),t.TgZ(127,"th"),t._uU(128,"X Forwarded Host Header"),t.qZA(),t.TgZ(129,"th"),t._uU(130,"X Forwarded Proto Header"),t.qZA(),t.TgZ(131,"th"),t._uU(132,"X Requested With Header"),t.qZA()()(),t.TgZ(133,"tbody"),t.YNc(134,tt,101,50,"tr",19),t.qZA()()(),t.TgZ(135,"div",20)(136,"div",3)(137,"mat-paginator",21),t.NdJ("page",function(l){return o.onPageChanged(l)}),t.qZA()()()()()()()),2&n&&(t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(16),t.Q6J("bsConfig",t.DdM(12,P))("ngModel",o.created_from)("ngModelOptions",t.DdM(13,H))("maxDate",o.created_to),t.xp6(5),t.Q6J("bsConfig",t.DdM(14,P))("ngModel",o.created_to)("ngModelOptions",t.DdM(15,H))("minDate",o.created_from),t.xp6(112),t.Q6J("ngForOf",null==o.requestCredentials?null:o.requestCredentials.content),t.xp6(3),t.Q6J("length",null==o.requestCredentials?null:o.requestCredentials.totalElements)("pageSize",null==o.requestCredentials?null:o.requestCredentials.size))},dependencies:[f.sg,f.O5,c.Np,c.Y5,g._Y,g.Fj,g.JJ,g.JL,g.On,g.F,D.NW,_.t]})}return i})();var Q=r(2159),it=r(6405),M=r(6032);let nt={defaultLayout:it.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT,delEndpoint:M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT};var J=r(1855),K=r(8675);let ot=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBusService=s}search(e,n,o){let s=M.s.ACVALIDATIONTOKENS.SEARCH(n,o);this.http.get(s).subscribe(l=>{this.eventBusService.publish(e,l)},l=>{this.handleError(l,O=>{this.search(e,n,o)},O=>{this.eventBusService.publish(this.getErrorKey(e),O)})})}fetchSingle(e,n){this.http.get(M.s.ACVALIDATIONTOKENS.GET(n)).subscribe(o=>{this.eventBusService.publish(e,o)},o=>{this.handleError(o,s=>{this.fetchSingle(e,n)},s=>{this.eventBusService.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var z=r(9582),B=r(3383);function at(i,d){1&i&&t._UZ(0,"util-progress",9),2&i&&t.Q6J("bar",!0)}function st(i,d){1&i&&(t.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),t._UZ(6,"i",15),t.qZA(),t.TgZ(7,"h4",16),t._uU(8,"No items"),t.qZA()()()(),t.TgZ(9,"div",17)(10,"div",18)(11,"div"),t._UZ(12,"img",19),t.qZA()()()()())}function rt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Delete"),t.qZA())}function dt(i,d){if(1&i&&(t.TgZ(0,"span",36),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function lt(i,d){if(1&i&&(t.TgZ(0,"span",37),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function ct(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"td",32)(1,"app-delete",38),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)}}const V=function(){return["/admin/users"]},G=function(i){return{username:i}};function _t(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td")(4,"a",28),t._uU(5),t.qZA()(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.TgZ(10,"td")(11,"a",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(12),t.qZA()(),t.TgZ(13,"td"),t.YNc(14,dt,2,1,"span",30),t.YNc(15,lt,2,1,"span",31),t.qZA(),t.TgZ(16,"td"),t._uU(17),t.qZA(),t.TgZ(18,"td")(19,"small"),t._uU(20),t.ALo(21,"readableDate"),t.qZA()(),t.TgZ(22,"td")(23,"small"),t._uU(24),t.ALo(25,"readableDate"),t.qZA()(),t.TgZ(26,"td")(27,"small"),t._uU(28),t.ALo(29,"readableDate"),t.qZA()(),t.TgZ(30,"td",32)(31,"a",33),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(32,"i",34),t.qZA()(),t.YNc(33,ct,2,1,"td",35),t.qZA()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(2),t.Oqu(e.id),t.xp6(2),t.Q6J("routerLink",t.DdM(20,V))("queryParams",t.VKq(21,G,null==e.user?null:e.user.username)),t.xp6(1),t.hij(" ",null==e.user?null:e.user.username," "),t.xp6(2),t.Oqu(e.identity),t.xp6(2),t.Oqu(e.registration_method),t.xp6(3),t.hij(" ",e.reason," "),t.xp6(2),t.Q6J("ngIf",!e.is_token_valid),t.xp6(1),t.Q6J("ngIf",e.is_token_valid),t.xp6(2),t.Oqu(e.is_token_valid?"Yes":"No"),t.xp6(3),t.Oqu(t.lcZ(21,14,e.token_valid_until)),t.xp6(4),t.Oqu(t.lcZ(25,16,e.created_at)),t.xp6(4),t.Oqu(t.lcZ(29,18,e.updated_at)),t.xp6(5),t.Q6J("ngIf",n.config.showDeleteButton)}}function ut(i,d){if(1&i&&(t.TgZ(0,"div",0)(1,"div",21)(2,"div",22)(3,"div",23)(4,"p",24),t._uU(5,"AcValidationTokens that I've created"),t.qZA(),t.TgZ(6,"div",25)(7,"table",26)(8,"thead")(9,"tr")(10,"th"),t._uU(11,"Id"),t.qZA(),t.TgZ(12,"th"),t._uU(13,"User"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"Identity"),t.qZA(),t.TgZ(16,"th"),t._uU(17,"Method"),t.qZA(),t.TgZ(18,"th"),t._uU(19,"Reason"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Token"),t.qZA(),t.TgZ(22,"th"),t._uU(23,"Valid"),t.qZA(),t.TgZ(24,"th"),t._uU(25,"Validity"),t.qZA(),t.TgZ(26,"th"),t._uU(27,"Created At"),t.qZA(),t.TgZ(28,"th"),t._uU(29,"Last Updated"),t.qZA(),t.TgZ(30,"th"),t._uU(31,"Update"),t.qZA(),t.YNc(32,rt,2,0,"th",7),t.qZA()(),t.TgZ(33,"tbody"),t.YNc(34,_t,34,23,"tr",27),t.qZA()()()()()()()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onColumn",e.layout==e.Layout.COLUMN),t.xp6(32),t.Q6J("ngIf",e.config.showDeleteButton),t.xp6(2),t.Q6J("ngForOf",e.acValidationTokens.content)}}function pt(i,d){if(1&i&&(t.TgZ(0,"h6",57),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.reason)}}function gt(i,d){if(1&i&&(t.TgZ(0,"small",58)(1,"b"),t._uU(2,"Updated"),t.qZA(),t._UZ(3,"br"),t._uU(4),t.ALo(5,"readableDate"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(4),t.hij(" ",t.lcZ(5,1,e.updated_at)," ")}}function mt(i,d){1&i&&(t.TgZ(0,"small",58),t._UZ(1,"br"),t.TgZ(2,"b"),t._uU(3,"Updated"),t.qZA(),t._UZ(4,"br"),t._uU(5,"Nil"),t.qZA())}function ht(i,d){if(1&i&&(t.TgZ(0,"a",52),t._uU(1," User: "),t.TgZ(2,"label",37),t._uU(3),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.Oqu(null==e.user?null:e.user.username)}}function Zt(i,d){if(1&i&&(t.TgZ(0,"a",52),t._uU(1," Token: "),t.TgZ(2,"label",59),t._uU(3),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.Oqu(e.registration_method)}}function ft(i,d){if(1&i&&(t.TgZ(0,"label",36),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function vt(i,d){if(1&i&&(t.TgZ(0,"label",59),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function Tt(i,d){if(1&i&&(t.TgZ(0,"div",60)(1,"a",28),t._UZ(2,"i",61),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("routerLink",t.DdM(2,V))("queryParams",t.VKq(3,G,null==e.user?null:e.user.username))}}function Ut(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",60)(1,"app-delete",62),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)("look","bx")}}function At(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",40)(1,"div",41)(2,"div",23)(3,"div",42)(4,"span",43),t._uU(5),t.qZA()(),t.TgZ(6,"h5",44)(7,"a",45),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(8),t.qZA()(),t.YNc(9,pt,2,1,"h6",46),t.TgZ(10,"div",0)(11,"div",47)(12,"p",48)(13,"small")(14,"b"),t._uU(15,"Created"),t.qZA(),t._UZ(16,"br"),t._uU(17),t.ALo(18,"readableDate"),t.qZA()()(),t.TgZ(19,"div",47)(20,"p",49),t.YNc(21,gt,6,3,"small",50),t.YNc(22,mt,6,0,"small",50),t.qZA()()(),t.TgZ(23,"p"),t._uU(24),t.ALo(25,"readableDate"),t._UZ(26,"br"),t._uU(27),t.qZA(),t.TgZ(28,"div"),t.YNc(29,ht,4,1,"a",51),t.YNc(30,Zt,4,1,"a",51),t.TgZ(31,"a",52),t._uU(32," Token: "),t.YNc(33,ft,2,1,"label",30),t.YNc(34,vt,2,1,"label",53),t.qZA()()(),t.TgZ(35,"div",54)(36,"div",55),t.YNc(37,Tt,3,5,"div",56),t.YNc(38,Ut,2,2,"div",56),t.qZA()()()()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(5),t.hij(" ",e.reason.substring(0,1).toUpperCase()," "),t.xp6(3),t.hij(" ",e.identity,""),t.xp6(1),t.Q6J("ngIf",e.reason),t.xp6(8),t.Oqu(t.lcZ(18,14,e.created_at)),t.xp6(4),t.Q6J("ngIf",e.updated_at),t.xp6(1),t.Q6J("ngIf",!e.updated_at),t.xp6(2),t.hij(" Validity: ",t.lcZ(25,16,e.token_valid_until)," "),t.xp6(3),t.hij("Valid Now?: ",e.is_token_valid?"Yes":"No"," "),t.xp6(2),t.Q6J("ngIf",null==e.user?null:e.user.username),t.xp6(1),t.Q6J("ngIf",e.registration_method),t.xp6(3),t.Q6J("ngIf",!e.is_token_valid),t.xp6(1),t.Q6J("ngIf",e.is_token_valid),t.xp6(3),t.Q6J("ngIf",null==e.user?null:e.user.username),t.xp6(1),t.Q6J("ngIf",n.config.showDeleteButton)}}function xt(i,d){if(1&i&&(t.TgZ(0,"div",0),t.YNc(1,At,39,18,"div",39),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onGrid",e.layout==e.Layout.GRID),t.xp6(1),t.Q6J("ngForOf",e.acValidationTokens.content)}}function qt(i,d){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,ut,35,4,"div",20),t.YNc(2,xt,2,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.COLUMN),t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.GRID)}}let bt=(()=>{class i extends Q.R{componentName(){return"AcValidationTokenListComponent"}constructor(e,n,o,s,l,O,F,w){super(e,n,o,l),this.activatedRoute=O,this.acValidationTokenService=F,this.notifier=w,this.config=nt,this.acValidationTokens=b.H,s.isAdmin()&&(this.config.searchEndpoint=M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(e=>{let n=(0,J.OP)(e);this.fetchAcValidationTokens({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"AcValidationTokens",link:null,active:!0}]}fetchAcValidationTokens(e){this.loading=!0;const n=this.componentKey(L.Z.ACVALIDATIONTOKENS.SEARCH(e));this.acValidationTokenService.search(n,this.config.searchEndpoint,e),this.subscribe(n,null,(o,s)=>{this.acValidationTokens=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.error("Error",s.data.error.message)})}onDeleted(e){e&&(this.notifier.success("Success","AcValidationToken is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return null}getUpsertComponent(){return null}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(y.e),t.Y36(K.x),t.Y36(a.gz),t.Y36(ot),t.Y36(u.l))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-acvalidationtoken-list"]],features:[t.qOj],decls:11,vars:8,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"showAddBtn","addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],[1,"text-uppercase"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[3,"routerLink","queryParams"],["href","javascript: void(0);",3,"click"],["class","badge bg-danger font-size-11 m-1",4,"ngIf"],["class","badge bg-success font-size-11 m-1",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"badge","bg-danger","font-size-11","m-1"],[1,"badge","bg-success","font-size-11","m-1"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-info font-size-11 m-1",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[1,"badge","bg-info","font-size-11","m-1"],[1,"flex-fill"],[1,"bx","bx-user","text-primary"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),t.NdJ("layoutSelected",function(l){return o.onLayoutSelected(l)}),t.qZA()()(),t.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),t.NdJ("addButtonClick",function(){return o.onUpsertClick(null)}),t.qZA()()()(),t.YNc(7,at,1,1,"util-progress",5),t.YNc(8,st,13,0,"div",6),t.YNc(9,qt,3,2,"div",7),t._UZ(10,"app-pagination",8)),2&n&&(t.xp6(2),t.Q6J("title","AcValidationTokens")("layout",o.layout)("breadcrumbItems",o.breadcrumbItems),t.xp6(4),t.Q6J("showAddBtn",!1),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",o.acValidationTokens.empty),t.xp6(1),t.Q6J("ngIf",!o.acValidationTokens.empty),t.xp6(1),t.Q6J("page",o.acValidationTokens))},dependencies:[f.sg,f.O5,a.rH,_.t,U.Q,x.D,z.T,B.L,N.G]})}return i})(),Ct=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-acvalidationtoken"]],decls:1,vars:0,template:function(n,o){1&n&&t._UZ(0,"app-acvalidationtoken-list")},dependencies:[bt]})}return i})();var Y=r(1310),k=r(2668),Et=r(5732);function Ot(i,d){1&i&&t._UZ(0,"util-progress",9),2&i&&t.Q6J("bar",!0)}function It(i,d){1&i&&(t.TgZ(0,"h4",21),t._uU(1,"Cooking your data, please wait.."),t.qZA())}function Dt(i,d){1&i&&(t.TgZ(0,"h4",22),t._uU(1,"No items"),t.qZA())}function Lt(i,d){if(1&i&&(t.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),t._UZ(6,"i",15),t.qZA(),t.YNc(7,It,2,0,"h4",16),t.YNc(8,Dt,2,0,"h4",17),t.qZA()()(),t.TgZ(9,"div",18)(10,"div",19)(11,"div"),t._UZ(12,"img",20),t.qZA()()()()()),2&i){const e=t.oxw();t.xp6(7),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function yt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Created By"),t.qZA())}function Nt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Delete"),t.qZA())}function St(i,d){if(1&i&&(t.TgZ(0,"td"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.created_by)}}function Mt(i,d){if(1&i&&t._UZ(0,"img",39),2&i){const e=t.oxw().$implicit;t.s9C("src",e.avatar,t.LSH)}}function Rt(i,d){if(1&i&&(t.TgZ(0,"span",40),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.name.substring(0,1).toUpperCase()," ")}}function Jt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"td",35)(1,"app-delete",41),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)}}function Yt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.YNc(3,St,2,1,"td",7),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td")(7,"div",31),t.YNc(8,Mt,1,1,"img",32),t.YNc(9,Rt,2,1,"span",33),t.qZA()(),t.TgZ(10,"td")(11,"a",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(12),t.qZA()(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.qZA(),t.TgZ(19,"td")(20,"small"),t._uU(21),t.ALo(22,"readableDate"),t.qZA()(),t.TgZ(23,"td")(24,"small"),t._uU(25),t.ALo(26,"readableDate"),t.qZA()(),t.TgZ(27,"td",35)(28,"a",36),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(29,"i",37),t.qZA()(),t.YNc(30,Jt,2,1,"td",38),t.qZA()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(2),t.Oqu(e.id),t.xp6(1),t.Q6J("ngIf",n.config.showUserFilter),t.xp6(2),t.Oqu(e.username),t.xp6(3),t.Q6J("ngIf",null!=e.avatar),t.xp6(1),t.Q6J("ngIf",null==e.avatar),t.xp6(3),t.hij(" ",e.name," "),t.xp6(2),t.Oqu(e.gender),t.xp6(2),t.Oqu(e.phone),t.xp6(2),t.Oqu(e.email),t.xp6(3),t.Oqu(t.lcZ(22,12,e.created_at)),t.xp6(4),t.Oqu(t.lcZ(26,14,e.updated_at)),t.xp6(5),t.Q6J("ngIf",n.config.showDeleteButton)}}function kt(i,d){if(1&i&&(t.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),t._uU(5,"Users that I've created"),t.qZA(),t.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),t._uU(11,"Id"),t.qZA(),t.YNc(12,yt,2,0,"th",7),t.TgZ(13,"th"),t._uU(14,"Image"),t.qZA(),t.TgZ(15,"th"),t._uU(16,"Username"),t.qZA(),t.TgZ(17,"th"),t._uU(18,"Name"),t.qZA(),t.TgZ(19,"th"),t._uU(20,"Gender"),t.qZA(),t.TgZ(21,"th"),t._uU(22,"Phone"),t.qZA(),t.TgZ(23,"th"),t._uU(24,"Email"),t.qZA(),t.TgZ(25,"th"),t._uU(26,"Created At"),t.qZA(),t.TgZ(27,"th"),t._uU(28,"Last Updated"),t.qZA(),t.TgZ(29,"th"),t._uU(30,"Update"),t.qZA(),t.YNc(31,Nt,2,0,"th",7),t.qZA()(),t.TgZ(32,"tbody"),t.YNc(33,Yt,31,16,"tr",30),t.qZA()()()()()()()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onColumn",e.layout==e.Layout.COLUMN),t.xp6(12),t.Q6J("ngIf",e.config.showUserFilter),t.xp6(19),t.Q6J("ngIf",e.config.showDeleteButton),t.xp6(2),t.Q6J("ngForOf",e.users.content)}}function Ft(i,d){if(1&i&&(t.TgZ(0,"div",61),t._UZ(1,"img",39),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.s9C("src",e.avatar,t.LSH)}}function wt(i,d){if(1&i&&(t.TgZ(0,"div",62)(1,"span",40),t._uU(2),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(2),t.hij(" ",e.name.substring(0,1).toUpperCase()," ")}}function Pt(i,d){if(1&i&&(t.TgZ(0,"h6",63),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("By ",e.created_by,"")}}function Ht(i,d){if(1&i&&(t.TgZ(0,"small",64)(1,"b"),t._uU(2,"Updated"),t.qZA(),t._UZ(3,"br"),t._uU(4),t.ALo(5,"readableDate"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(4),t.hij(" ",t.lcZ(5,1,e.updated_at)," ")}}function Qt(i,d){1&i&&(t.TgZ(0,"small",64),t._UZ(1,"br"),t.TgZ(2,"b"),t._uU(3,"Updated"),t.qZA(),t._UZ(4,"br"),t._uU(5,"Nil"),t.qZA())}function Kt(i,d){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("Phone: ",e.phone,"")}}function zt(i,d){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("Email: ",e.phone,"")}}function Bt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",58)(1,"app-delete",65),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)("look","bx")}}function Vt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",43)(1,"div",44)(2,"div",26),t.YNc(3,Ft,2,1,"div",45),t.YNc(4,wt,3,1,"div",46),t.TgZ(5,"h5",47)(6,"a",48),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(7),t.qZA()(),t.YNc(8,Pt,2,1,"h6",49),t.TgZ(9,"div",0)(10,"div",50)(11,"p",51)(12,"small")(13,"b"),t._uU(14,"Created"),t.qZA(),t._UZ(15,"br"),t._uU(16),t.ALo(17,"readableDate"),t.qZA()()(),t.TgZ(18,"div",50)(19,"p",52),t.YNc(20,Ht,6,3,"small",53),t.YNc(21,Qt,6,0,"small",53),t.qZA()()(),t.TgZ(22,"p"),t.YNc(23,Kt,3,1,"span",7),t.YNc(24,zt,2,1,"span",7),t.qZA(),t.TgZ(25,"div")(26,"a",54)(27,"label",55),t._uU(28,"Approved"),t.qZA()()()(),t.TgZ(29,"div",56)(30,"div",57)(31,"div",58)(32,"a",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(33,"i",59),t.qZA()(),t.YNc(34,Bt,2,2,"div",60),t.qZA()()()()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(3),t.Q6J("ngIf",e.avatar),t.xp6(1),t.Q6J("ngIf",null==e.avatar),t.xp6(3),t.hij(" ",e.name,""),t.xp6(1),t.Q6J("ngIf",n.config.showUserFilter&&e.created_by),t.xp6(8),t.Oqu(t.lcZ(17,10,e.created_at)),t.xp6(4),t.Q6J("ngIf",e.updated_at),t.xp6(1),t.Q6J("ngIf",!e.updated_at),t.xp6(2),t.Q6J("ngIf",e.phone),t.xp6(1),t.Q6J("ngIf",e.email),t.xp6(10),t.Q6J("ngIf",n.config.showDeleteButton)}}function Gt(i,d){if(1&i&&(t.TgZ(0,"div",0),t.YNc(1,Vt,35,12,"div",42),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onGrid",e.layout==e.Layout.GRID),t.xp6(1),t.Q6J("ngForOf",e.users.content)}}function jt(i,d){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,kt,34,5,"div",23),t.YNc(2,Gt,2,3,"div",23),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.COLUMN),t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.GRID)}}let $t=(()=>{class i extends Q.R{componentName(){return"UserListComponent"}constructor(e,n,o,s,l,O,F,w){super(e,n,o,l),this.activatedRoute=O,this.userService=F,this.notifier=w,this.config=Y.EK,this.filterData=J.M9,this.users=b.H,s.isAdmin()&&(this.config.searchEndpoint=Y.wl.adminEndpoint)}initialize(){this.activatedRoute.queryParams.subscribe(e=>{this.filterData=(0,J.OP)(e),this.fetchUsers({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Users",link:null,active:!0}]}fetchUsers(e){this.loading=!0;const n=this.componentKey(L.Z.USERS.SEARCH(e));this.userService.search(n,this.config.searchEndpoint,e),this.subscribe(n,null,(o,s)=>{this.users=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.error("Error",s.data.error.message)})}onDeleted(e){e&&(this.notifier.success("Success","User is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Y.n5.create,update:e=>Y.n5.update(e),params:(0,J.oZ)(this.filterData)}}getUpsertComponent(){return k.M}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(y.e),t.Y36(K.x),t.Y36(a.gz),t.Y36(Et.K),t.Y36(u.l))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-user-list"]],features:[t.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),t.NdJ("layoutSelected",function(l){return o.onLayoutSelected(l)}),t.qZA()()(),t.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),t.NdJ("addButtonClick",function(){return o.onUpsertClick(null)}),t.qZA()()()(),t.YNc(7,Ot,1,1,"util-progress",5),t.YNc(8,Lt,13,2,"div",6),t.YNc(9,jt,3,2,"div",7),t._UZ(10,"app-pagination",8)),2&n&&(t.xp6(2),t.Q6J("title","Users")("layout",o.layout)("breadcrumbItems",o.breadcrumbItems),t.xp6(5),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",o.users.empty),t.xp6(1),t.Q6J("ngIf",!o.users.empty),t.xp6(1),t.Q6J("page",o.users))},dependencies:[f.sg,f.O5,_.t,U.Q,x.D,z.T,B.L,N.G]})}return i})();const Wt=[{path:"",component:(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-user"]],decls:1,vars:0,template:function(n,o){1&n&&t._UZ(0,"app-user-list")},dependencies:[$t]})}return i})()},{path:"create",component:k.M},{path:":id/update",component:k.M},{path:"activity-logs",component:$},{path:"request-credentials/lockouts",component:et},{path:"validation-tokens",component:Ct}];let Xt=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.oAB({type:i});static#i=this.\u0275inj=t.cJS({imports:[a.Bz.forChild(Wt),a.Bz]})}return i})();var te=r(9797),ee=r(2241),ie=r(4807);let ne=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.oAB({type:i});static#i=this.\u0275inj=t.cJS({imports:[f.ez,c.kn,g.u5,D.TU,Xt,te.CmsModule,g.UX,v.g,ee.AdminModule,ie.A0]})}return i})()},2668:(R,E,r)=>{r.d(E,{M:()=>q});var f=r(9870),v=r(1310),c=r(6223),g=r(7259),D=r(7700),a=r(5879),b=r(30),I=r(1662),m=r(6945),L=r(5732),h=r(5462),t=r(6814),u=r(7035),Z=r(4736);function C(A,y){1&A&&a._UZ(0,"util-progress",18),2&A&&a.Q6J("bar",!0)}let q=(()=>{class A extends f.n{constructor(p,T,_,U,x,N,S){super(p,T,_,U,S),this.userService=x,this.notifier=N,this.config=v.EK,this.userForm=new c.cw({title:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(20)]),image:new c.NI(null)}),null!=S.title&&this.userForm.controls.title.setValue(S.title)}componentName(){return"UserUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Users",link:"/admin/users",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(p){this.loading=!0;let T=this.componentKey(g.Z.USERS.GET(p));this.userService.fetchSingle(T,p),this.subscribe(T,null,(_,U)=>{this.loading=!1,this.populateForm(U.data)}),this.subscribe(this.getErrorKey(T),null,(_,U)=>{console.log(U.data),this.loading=!1})}onSubmit(){this.userForm.valid&&this.upsert(this.exId)}onImgUploaded(p){p.length>0&&this.userForm.controls.image.setValue(p[0].image_url)}getExImages(){let p=this.userForm.controls.image.value;return null==p?[]:[{image_url:p,thumb_url:p}]}getConfig(){return this.config}getListPageRoute(){return v.n5.list}upsert(p){this.loading=!0;let T=this.componentKey(g.Z.USERS.UPSERT(p));this.userService.upsert(T,this.userForm.value,p),this.subscribe(T,null,(_,U)=>{this.loading=!1,this.notifier.success("Success","User has been "+(p?"updated":"created")),this.userForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(U.data):this.navigateToListPage()}),this.subscribe(this.getErrorKey(T),null,(_,U)=>{let x=U.data;this.loading=!1,this.notifier.warning("Failed!",x.error.message)})}populateForm(p){}static#t=this.\u0275fac=function(T){return new(T||A)(a.Y36(b.Y),a.Y36(I.F0),a.Y36(m.z),a.Y36(I.gz),a.Y36(L.K),a.Y36(h.l),a.Y36(D.WI))};static#e=this.\u0275cmp=a.Xpm({type:A,selectors:[["app-user-upsert"]],features:[a.qOj],decls:28,vars:10,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],[1,"error"],["type","text","id","title-input","placeholder","Enter Title","name","title","formControlName","title",1,"form-control"],[1,"text-danger"],["for","description",1,"form-label"],["id","description","placeholder","Enter Description","rows","5","name","description","formControlName","description",1,"form-control"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(T,_){1&T&&(a.YNc(0,C,1,1,"util-progress",0),a.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),a._uU(6,"Create/Update User"),a.qZA(),a.TgZ(7,"form",6)(8,"div",7)(9,"label",8),a._uU(10,"Title"),a.TgZ(11,"em",9),a._uU(12,"*"),a.qZA()(),a._UZ(13,"input",10),a.TgZ(14,"em",11),a._uU(15),a.qZA()(),a.TgZ(16,"div",7)(17,"label",12),a._uU(18,"Description"),a.qZA(),a._UZ(19,"textarea",13),a.TgZ(20,"em",11),a._uU(21),a.qZA()(),a.TgZ(22,"app-file-picker",14),a.NdJ("onUploaded",function(x){return _.onImgUploaded(x)}),a.qZA(),a.TgZ(23,"div",15)(24,"button",16),a.NdJ("click",function(){return _.onCancel()}),a._uU(25," Cancel "),a.qZA(),a.TgZ(26,"button",17),a.NdJ("click",function(){return _.onSubmit()}),a._uU(27," Submit "),a.qZA()()()()()()()),2&T&&(a.Q6J("ngIf",_.loading),a.xp6(1),a.Q6J("@loaded",!_.loading),a.xp6(6),a.Q6J("formGroup",_.userForm),a.xp6(8),a.hij(" ",_.errMsg(_.userForm,"title","minLength","Title should be at least 3 characters!")," "),a.xp6(6),a.hij(" ",_.errMsg(_.userForm,"description","minLength","Description should be at least 20 characters!")," "),a.xp6(1),a.s9C("title",_.translations.Image),a.Q6J("multiSelect",!1)("existingImages",_.getExImages())("required",!1),a.xp6(4),a.Q6J("ngClass",_.userForm.valid?"":"disabled"))},dependencies:[t.mk,t.O5,c._Y,c.Fj,c.JJ,c.JL,u.P,c.sg,c.u,Z.t]})}return A})()},1310:(R,E,r)=>{r.d(E,{EK:()=>c,n5:()=>D,wl:()=>g});var f=r(6405),v=r(7597);let c={defaultLayout:f.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:v.U.USERS.USER_ENDPOINT,delEndpoint:v.U.USERS.USER_ENDPOINT},g={endpoint:v.U.USERS.USER_ENDPOINT,adminEndpoint:v.U.USERS.USER_ENDPOINT_ADMIN},D={list:"/admin/users",create:"/admin/users/create",update(a){return null==a?this.create:"/admin/users/"+a+"/update"}}},5732:(R,E,r)=>{r.d(E,{K:()=>I});var f=r(1547),v=r(7597),c=r(5879),g=r(8480),D=r(5462),a=r(9862),b=r(30);let I=(()=>{class m extends f.b{constructor(h,t,u,Z){super(h,t),this.http=u,this.eventBusService=Z}search(h,t,u){let Z=v.U.USERS.SEARCH(t,u);this.http.get(Z).subscribe(C=>{this.eventBusService.publish(h,C)},C=>{this.handleError(C,q=>{this.search(h,t,u)},q=>{this.eventBusService.publish(this.getErrorKey(h),q)})})}fetchSingle(h,t){this.http.get(v.U.USERS.GET(t)).subscribe(u=>{this.eventBusService.publish(h,u)},u=>{this.handleError(u,Z=>{this.fetchSingle(h,t)},Z=>{this.eventBusService.publish(this.getErrorKey(h),Z)})})}upsert(h,t,u){let Z=null==u?v.U.USERS.CREATE():v.U.USERS.UPDATE(u);(null==u?this.http.post(Z,t):this.http.patch(Z,t)).subscribe(q=>{this.eventBusService.publish(h,q)},q=>{this.handleError(q,A=>{this.upsert(h,t,u)},A=>{this.eventBusService.publish(this.getErrorKey(h),A)})})}static#t=this.\u0275fac=function(t){return new(t||m)(c.LFG(g.e),c.LFG(D.l),c.LFG(a.eN),c.LFG(b.Y))};static#e=this.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[318],{7597:(R,E,r)=>{r.d(E,{U:()=>g});var f=r(2495),v=r(553),c=r(5879);class g extends f.O{constructor(){super()}static#t=this.USERS={USER_ENDPOINT:v.N.base_url+"/api/v1/users",USER_ENDPOINT_ADMIN:v.N.base_url+"/api/v1/admin/users",SEARCH:(a,b)=>a.concat(f.O.toParamString(b)),CREATE(){return this.USER_ENDPOINT},GET(a){return this.USER_ENDPOINT+"/"+a},UPDATE(a){return this.USER_ENDPOINT+"/"+a}};static#e=this.\u0275fac=function(b){return new(b||g)};static#i=this.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"})}},3318:(R,E,r)=>{r.r(E),r.d(E,{UserModule:()=>ne});var f=r(6814),v=r(7151),c=r(9277),g=r(6223),D=r(3365),a=r(1662),b=r(6542),I=r(6676),m=r(2739),L=r(7259),h=r(8637),t=r(5879),u=r(5462),Z=r(30),C=r(6945),q=r(1547),A=r(1259),y=r(8480),p=r(9862);let T=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBus=s}search(e,n){this.http.get(A.e.ACTIVITY_LOGS.ADMIN_SEARCH(n)).subscribe(o=>{this.eventBus.publish(e,o)},o=>{this.handleError(o,s=>{this.search(e,n)},s=>{this.eventBus.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var _=r(4736),U=r(1836),x=r(6075),N=r(2770);function S(i,d){1&i&&t._UZ(0,"util-progress",11),2&i&&t.Q6J("bar",!0)}function j(i,d){if(1&i&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._uU(12),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.ALo(17,"readableDate"),t.qZA(),t.TgZ(18,"td"),t._uU(19),t.ALo(20,"readableDate"),t.qZA()()),2&i){const e=d.$implicit;t.xp6(2),t.Oqu(e.user_id),t.xp6(2),t.Oqu(e.username),t.xp6(2),t.Oqu(e.user_agent),t.xp6(2),t.Oqu(e.ip),t.xp6(2),t.Oqu(e.request_method),t.xp6(2),t.Oqu(e.url),t.xp6(2),t.Oqu(e.total_visitors),t.xp6(2),t.Oqu(t.lcZ(17,9,e.created_at)),t.xp6(3),t.Oqu(t.lcZ(20,11,e.updated_at))}}let $=(()=>{class i extends h.H{constructor(e,n,o,s,l,O){super(n,o,s),this.notifier=e,this.activatedRoute=l,this.activityLogService=O,this.size=10,this.page=1,this.activityLogs=b.H,this.username=null,this.created_from=new Date,this.created_to=new Date}componentName(){return"ActivityLogComponent"}ngOnInit(){this.activatedRoute.queryParams.subscribe(e=>{let n=e.from_date,o=e.to_date,s=e.page,l=e.size;null!=n&&null!=o?(this.created_from=I(n).toDate(),this.created_to=I(o).toDate()):(this.created_from=m.b.getDayStart(new Date(0)),this.created_to=m.b.getDayEnd(new Date)),this.searchActivityLogs({username:this.username,from_date:m.b.getDayStart(this.created_from),to_date:m.b.getDayEnd(this.created_to),page:s,size:l})})}searchActivityLogs(e){this.loading=!0;const n=this.componentKey(L.Z.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS());this.activityLogService.search(n,e),this.subscribe(n,null,(o,s)=>{this.activityLogs=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.log(s.data)})}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(u.l),t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(a.gz),t.Y36(T))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-activity-log"]],features:[t.qOj],decls:44,vars:3,consts:[[1,"row"],[3,"bar",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"card-title-desc"],[1,"table-responsive"],[1,"table","table-responsive","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[3,"page"],[3,"bar"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t.YNc(1,S,1,1,"util-progress",1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Activity Log"),t.qZA(),t.TgZ(7,"p",6),t._uU(8,"Activity logs for users"),t.qZA(),t._UZ(9,"app-basic-filter"),t.TgZ(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th")(15,"h6"),t._uU(16,"USER ID"),t.qZA()(),t.TgZ(17,"th")(18,"h6"),t._uU(19,"USERNAME"),t.qZA()(),t.TgZ(20,"th")(21,"h6"),t._uU(22,"USER AGENT"),t.qZA()(),t.TgZ(23,"th")(24,"h6"),t._uU(25,"IP"),t.qZA()(),t.TgZ(26,"th")(27,"h6"),t._uU(28,"R. METHOD"),t.qZA()(),t.TgZ(29,"th")(30,"h6"),t._uU(31,"URL"),t.qZA()(),t.TgZ(32,"th")(33,"h6"),t._uU(34,"TOTAL VISITORS"),t.qZA()(),t.TgZ(35,"th")(36,"h6"),t._uU(37,"CREATED AT"),t.qZA()(),t.TgZ(38,"th")(39,"h6"),t._uU(40,"LAST UPDATED"),t.qZA()()()(),t.TgZ(41,"tbody"),t.YNc(42,j,21,13,"tr",9),t.qZA()()(),t._UZ(43,"app-pagination",10),t.qZA()()()()),2&n&&(t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(41),t.Q6J("ngForOf",null==o.activityLogs?null:o.activityLogs.content),t.xp6(1),t.Q6J("page",o.activityLogs))},dependencies:[f.sg,f.O5,_.t,U.Q,x.D,N.G]})}return i})(),W=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBus=s}search(e,n){this.http.get(A.e.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS(n)).subscribe(o=>{this.eventBus.publish(e,o)},o=>{this.handleError(o,s=>{this.search(e,n)},s=>{this.eventBus.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function X(i,d){1&i&&t._UZ(0,"util-progress",22),2&i&&t.Q6J("bar",!0)}function tt(i,d){if(1&i&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._uU(12),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.qZA(),t.TgZ(21,"td"),t._uU(22),t.qZA(),t.TgZ(23,"td"),t._uU(24),t.qZA(),t.TgZ(25,"td"),t._uU(26),t.qZA(),t.TgZ(27,"td"),t._uU(28),t.qZA(),t.TgZ(29,"td"),t._uU(30),t.qZA(),t.TgZ(31,"td"),t._uU(32),t.qZA(),t.TgZ(33,"td"),t._uU(34),t.qZA(),t.TgZ(35,"td"),t._uU(36),t.qZA(),t.TgZ(37,"td"),t._uU(38),t.qZA(),t.TgZ(39,"td"),t._uU(40),t.qZA(),t.TgZ(41,"td"),t._uU(42),t.qZA(),t.TgZ(43,"td"),t._uU(44),t.qZA(),t.TgZ(45,"td"),t._uU(46),t.qZA(),t.TgZ(47,"td"),t._uU(48),t.qZA(),t.TgZ(49,"td"),t._uU(50),t.qZA(),t.TgZ(51,"td"),t._uU(52),t.qZA(),t.TgZ(53,"td"),t._uU(54),t.qZA(),t.TgZ(55,"td"),t._uU(56),t.qZA(),t.TgZ(57,"td"),t._uU(58),t.qZA(),t.TgZ(59,"td"),t._uU(60),t.qZA(),t.TgZ(61,"td"),t._uU(62),t.qZA(),t.TgZ(63,"td"),t._uU(64),t.qZA(),t.TgZ(65,"td"),t._uU(66),t.qZA(),t.TgZ(67,"td"),t._uU(68),t.qZA(),t.TgZ(69,"td"),t._uU(70),t.qZA(),t.TgZ(71,"td"),t._uU(72),t.qZA(),t.TgZ(73,"td"),t._uU(74),t.qZA(),t.TgZ(75,"td"),t._uU(76),t.qZA(),t.TgZ(77,"td"),t._uU(78),t.qZA(),t.TgZ(79,"td"),t._uU(80),t.qZA(),t.TgZ(81,"td"),t._uU(82),t.qZA(),t.TgZ(83,"td"),t._uU(84),t.qZA(),t.TgZ(85,"td"),t._uU(86),t.qZA(),t.TgZ(87,"td"),t._uU(88),t.qZA(),t.TgZ(89,"td"),t._uU(90),t.qZA(),t.TgZ(91,"td"),t._uU(92),t.qZA(),t.TgZ(93,"td"),t._uU(94),t.qZA(),t.TgZ(95,"td"),t._uU(96),t.qZA(),t.TgZ(97,"td"),t._uU(98),t.qZA(),t.TgZ(99,"td"),t._uU(100),t.qZA()()),2&i){const e=d.$implicit;t.xp6(2),t.Oqu(e.ip),t.xp6(2),t.Oqu(e.url),t.xp6(2),t.Oqu(e.body),t.xp6(2),t.Oqu(e.user_agent_header),t.xp6(2),t.Oqu(e.forwarded_for_header),t.xp6(2),t.Oqu(e.authorization_header),t.xp6(2),t.Oqu(e.cookie_header),t.xp6(2),t.Oqu(e.referer_header),t.xp6(2),t.Oqu(e.x_frame_options_header),t.xp6(2),t.Oqu(e.content_type_header),t.xp6(2),t.Oqu(e.origin_header),t.xp6(2),t.Oqu(e.x_http_method_override_header),t.xp6(2),t.Oqu(e.content_security_policy_header),t.xp6(2),t.Oqu(e.accept_charset_header),t.xp6(2),t.Oqu(e.accept_datetime_header),t.xp6(2),t.Oqu(e.accept_encoding_header),t.xp6(2),t.Oqu(e.accept_header),t.xp6(2),t.Oqu(e.accept_language_header),t.xp6(2),t.Oqu(e.access_control_allow_credentials_header),t.xp6(2),t.Oqu(e.access_control_allow_headers_header),t.xp6(2),t.Oqu(e.access_control_allow_methods_header),t.xp6(2),t.Oqu(e.access_control_allow_origin_header),t.xp6(2),t.Oqu(e.access_control_expose_headers_header),t.xp6(2),t.Oqu(e.access_control_max_age_header),t.xp6(2),t.Oqu(e.access_control_request_headers_header),t.xp6(2),t.Oqu(e.access_control_request_method_header),t.xp6(2),t.Oqu(e.authorization_info_header),t.xp6(2),t.Oqu(e.cache_control_header),t.xp6(2),t.Oqu(e.connection_header),t.xp6(2),t.Oqu(e.content_encoding_header),t.xp6(2),t.Oqu(e.content_length_header),t.xp6(2),t.Oqu(e.dnt_header),t.xp6(2),t.Oqu(e.forward_header),t.xp6(2),t.Oqu(e.host_header),t.xp6(2),t.Oqu(e.if_modified_since_header),t.xp6(2),t.Oqu(e.if_none_match_header),t.xp6(2),t.Oqu(e.if_range_header),t.xp6(2),t.Oqu(e.if_unmodified_since_header),t.xp6(2),t.Oqu(e.max_forwards_header),t.xp6(2),t.Oqu(e.pragma_header),t.xp6(2),t.Oqu(e.proxy_authorization_header),t.xp6(2),t.Oqu(e.range_header),t.xp6(2),t.Oqu(e.te_header),t.xp6(2),t.Oqu(e.upgrade_header),t.xp6(2),t.Oqu(e.via_header),t.xp6(2),t.Oqu(e.warning_header),t.xp6(2),t.Oqu(e.x_forwarded_for_header),t.xp6(2),t.Oqu(e.x_forwarded_host_header),t.xp6(2),t.Oqu(e.x_forwarded_proto_header),t.xp6(2),t.Oqu(e.x_requested_with_header)}}const P=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}},H=function(){return{standalone:!0}};let et=(()=>{class i extends h.H{constructor(e,n,o,s,l,O){super(n,o,s),this.notifier=e,this.activatedRoute=l,this.reqCredService=O,this.size=10,this.page=1,this.created_from=new Date,this.created_to=new Date}componentName(){return"RequestCredentialsComponent"}ngOnInit(){this.activatedRoute.queryParams.subscribe(e=>{let n=e.from_date,o=e.to_date;null!=n&&null!=o?(this.created_from=I(n).toDate(),this.created_to=I(o).toDate()):(this.created_from=new Date(0),this.created_to=new Date)}),this.searchRequestCredentials({created_from:null==this.created_from?this.created_from:m.b.getDayStart(this.created_from),created_to:null==this.created_to?this.created_to:m.b.getDayEnd(this.created_to),page:0,size:this.size})}onFilterClick(){this.searchRequestCredentials({created_from:m.b.getDayStart(this.created_from),created_to:m.b.getDayEnd(this.created_to),page:0,size:this.size})}searchRequestCredentials(e){this.loading=!0;const n=this.componentKey(L.Z.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS());this.reqCredService.search(n,e),this.subscribe(n,null,(o,s)=>{this.requestCredentials=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.log(s.data)})}onPageChanged(e){this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:e.pageIndex,size:this.size})}filterForToday(){this.created_from=m.b.getDayStart(new Date),this.created_to=m.b.getDayEnd(new Date),this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:0,size:this.size})}clearFilter(){this.created_from=m.b.getDayStart(new Date(0)),this.created_to=m.b.getDayEnd(new Date),this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:0,size:this.size})}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(u.l),t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(a.gz),t.Y36(W))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-activity-log"]],features:[t.qOj],decls:138,vars:16,consts:[[1,"row"],[3,"bar",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"card-title-desc"],[1,"row","gy-2","gx-3","mb-3","align-items-center"],[1,"col-sm-auto"],["type","submit",1,"btn","btn-info","w-md",3,"click"],["for","fromDate",1,"visually-hidden"],[1,"input-group"],["bsDatepicker","","id","fromDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","maxDate","ngModelChange"],["for","toDate",1,"visually-hidden"],["bsDatepicker","","id","toDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","minDate","ngModelChange"],["type","submit",1,"btn","btn-primary","w-md",3,"click"],["type","submit",1,"btn","btn-warning","w-md",3,"click"],[1,"table-responsive"],[1,"table","table-responsive","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"col-lg-12","grid-margin","stretch-card"],["aria-label","Select page",3,"length","pageSize","page"],[3,"bar"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t.YNc(1,X,1,1,"util-progress",1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Lockouts"),t.qZA(),t.TgZ(7,"p",6),t._uU(8,"List of lockouts that happened to the users because of failed login."),t.qZA(),t.TgZ(9,"form",7)(10,"div",8)(11,"button",9),t.NdJ("click",function(){return o.filterForToday()}),t._uU(12,"Today"),t.qZA()(),t.TgZ(13,"div",8)(14,"label",10),t._uU(15,"From"),t.qZA(),t.TgZ(16,"div",11)(17,"input",12),t.NdJ("ngModelChange",function(l){return o.created_from=l}),t.qZA()()(),t.TgZ(18,"div",8)(19,"label",13),t._uU(20,"To"),t.qZA(),t.TgZ(21,"div",11)(22,"input",14),t.NdJ("ngModelChange",function(l){return o.created_to=l}),t.qZA()()(),t.TgZ(23,"div",8)(24,"button",15),t.NdJ("click",function(){return o.onFilterClick()}),t._uU(25,"Filter"),t.qZA()(),t.TgZ(26,"div",8)(27,"button",16),t.NdJ("click",function(){return o.clearFilter()}),t._uU(28,"Clear"),t.qZA()()(),t.TgZ(29,"div",17)(30,"table",18)(31,"thead")(32,"tr")(33,"th"),t._uU(34,"IP"),t.qZA(),t.TgZ(35,"th"),t._uU(36,"URL"),t.qZA(),t.TgZ(37,"th"),t._uU(38,"Body"),t.qZA(),t.TgZ(39,"th"),t._uU(40,"User Agent Header"),t.qZA(),t.TgZ(41,"th"),t._uU(42,"X Forwarded For Header"),t.qZA(),t.TgZ(43,"th"),t._uU(44,"Authorization Header"),t.qZA(),t.TgZ(45,"th"),t._uU(46,"Cookie Header"),t.qZA(),t.TgZ(47,"th"),t._uU(48,"Referer Header"),t.qZA(),t.TgZ(49,"th"),t._uU(50,"X Frame Options Header"),t.qZA(),t.TgZ(51,"th"),t._uU(52,"Content Type Header"),t.qZA(),t.TgZ(53,"th"),t._uU(54,"Origin Header"),t.qZA(),t.TgZ(55,"th"),t._uU(56,"X HTTP Method Override Header"),t.qZA(),t.TgZ(57,"th"),t._uU(58,"Content Security Policy Header"),t.qZA(),t.TgZ(59,"th"),t._uU(60,"Accept Charset Header"),t.qZA(),t.TgZ(61,"th"),t._uU(62,"Accept Datetime Header"),t.qZA(),t.TgZ(63,"th"),t._uU(64,"Accept Encoding Header"),t.qZA(),t.TgZ(65,"th"),t._uU(66,"Accept Header"),t.qZA(),t.TgZ(67,"th"),t._uU(68,"Accept Language Header"),t.qZA(),t.TgZ(69,"th"),t._uU(70,"Access Control Allow Credentials Header"),t.qZA(),t.TgZ(71,"th"),t._uU(72,"Access Control Allow Headers Header"),t.qZA(),t.TgZ(73,"th"),t._uU(74,"Access Control Allow Methods Header"),t.qZA(),t.TgZ(75,"th"),t._uU(76,"Access Control Allow Origin Header"),t.qZA(),t.TgZ(77,"th"),t._uU(78,"Access Control Expose Headers Header"),t.qZA(),t.TgZ(79,"th"),t._uU(80,"Access Control Max Age Header"),t.qZA(),t.TgZ(81,"th"),t._uU(82,"Access Control Request Headers Header"),t.qZA(),t.TgZ(83,"th"),t._uU(84,"Access Control Request Method Header"),t.qZA(),t.TgZ(85,"th"),t._uU(86,"Authorization Info Header"),t.qZA(),t.TgZ(87,"th"),t._uU(88,"Cache Control Header"),t.qZA(),t.TgZ(89,"th"),t._uU(90,"Connection Header"),t.qZA(),t.TgZ(91,"th"),t._uU(92,"Content Encoding Header"),t.qZA(),t.TgZ(93,"th"),t._uU(94,"Content Length Header"),t.qZA(),t.TgZ(95,"th"),t._uU(96,"DNT Header"),t.qZA(),t.TgZ(97,"th"),t._uU(98,"Forward Header"),t.qZA(),t.TgZ(99,"th"),t._uU(100,"Forwarded For Header"),t.qZA(),t.TgZ(101,"th"),t._uU(102,"Host Header"),t.qZA(),t.TgZ(103,"th"),t._uU(104,"If Modified Since Header"),t.qZA(),t.TgZ(105,"th"),t._uU(106,"If None Match Header"),t.qZA(),t.TgZ(107,"th"),t._uU(108,"If Range Header"),t.qZA(),t.TgZ(109,"th"),t._uU(110,"If Unmodified Since Header"),t.qZA(),t.TgZ(111,"th"),t._uU(112,"Max Forwards Header"),t.qZA(),t.TgZ(113,"th"),t._uU(114,"Pragma Header"),t.qZA(),t.TgZ(115,"th"),t._uU(116,"Proxy Authorization Header"),t.qZA(),t.TgZ(117,"th"),t._uU(118,"Range Header"),t.qZA(),t.TgZ(119,"th"),t._uU(120,"TE Header"),t.qZA(),t.TgZ(121,"th"),t._uU(122,"Upgrade Header"),t.qZA(),t.TgZ(123,"th"),t._uU(124,"Via Header"),t.qZA(),t.TgZ(125,"th"),t._uU(126,"Warning Header"),t.qZA(),t.TgZ(127,"th"),t._uU(128,"X Forwarded Host Header"),t.qZA(),t.TgZ(129,"th"),t._uU(130,"X Forwarded Proto Header"),t.qZA(),t.TgZ(131,"th"),t._uU(132,"X Requested With Header"),t.qZA()()(),t.TgZ(133,"tbody"),t.YNc(134,tt,101,50,"tr",19),t.qZA()()(),t.TgZ(135,"div",20)(136,"div",3)(137,"mat-paginator",21),t.NdJ("page",function(l){return o.onPageChanged(l)}),t.qZA()()()()()()()),2&n&&(t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(16),t.Q6J("bsConfig",t.DdM(12,P))("ngModel",o.created_from)("ngModelOptions",t.DdM(13,H))("maxDate",o.created_to),t.xp6(5),t.Q6J("bsConfig",t.DdM(14,P))("ngModel",o.created_to)("ngModelOptions",t.DdM(15,H))("minDate",o.created_from),t.xp6(112),t.Q6J("ngForOf",null==o.requestCredentials?null:o.requestCredentials.content),t.xp6(3),t.Q6J("length",null==o.requestCredentials?null:o.requestCredentials.totalElements)("pageSize",null==o.requestCredentials?null:o.requestCredentials.size))},dependencies:[f.sg,f.O5,c.Np,c.Y5,g._Y,g.Fj,g.JJ,g.JL,g.On,g.F,D.NW,_.t]})}return i})();var Q=r(2159),it=r(6405),M=r(6032);let nt={defaultLayout:it.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT,delEndpoint:M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT};var J=r(1855),K=r(8675);let ot=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBusService=s}search(e,n,o){let s=M.s.ACVALIDATIONTOKENS.SEARCH(n,o);this.http.get(s).subscribe(l=>{this.eventBusService.publish(e,l)},l=>{this.handleError(l,O=>{this.search(e,n,o)},O=>{this.eventBusService.publish(this.getErrorKey(e),O)})})}fetchSingle(e,n){this.http.get(M.s.ACVALIDATIONTOKENS.GET(n)).subscribe(o=>{this.eventBusService.publish(e,o)},o=>{this.handleError(o,s=>{this.fetchSingle(e,n)},s=>{this.eventBusService.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var z=r(9582),B=r(3383);function at(i,d){1&i&&t._UZ(0,"util-progress",9),2&i&&t.Q6J("bar",!0)}function st(i,d){1&i&&(t.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),t._UZ(6,"i",15),t.qZA(),t.TgZ(7,"h4",16),t._uU(8,"No items"),t.qZA()()()(),t.TgZ(9,"div",17)(10,"div",18)(11,"div"),t._UZ(12,"img",19),t.qZA()()()()())}function rt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Delete"),t.qZA())}function dt(i,d){if(1&i&&(t.TgZ(0,"span",36),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function lt(i,d){if(1&i&&(t.TgZ(0,"span",37),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function ct(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"td",32)(1,"app-delete",38),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)}}const V=function(){return["/admin/users"]},G=function(i){return{username:i}};function _t(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td")(4,"a",28),t._uU(5),t.qZA()(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.TgZ(10,"td")(11,"a",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(12),t.qZA()(),t.TgZ(13,"td"),t.YNc(14,dt,2,1,"span",30),t.YNc(15,lt,2,1,"span",31),t.qZA(),t.TgZ(16,"td"),t._uU(17),t.qZA(),t.TgZ(18,"td")(19,"small"),t._uU(20),t.ALo(21,"readableDate"),t.qZA()(),t.TgZ(22,"td")(23,"small"),t._uU(24),t.ALo(25,"readableDate"),t.qZA()(),t.TgZ(26,"td")(27,"small"),t._uU(28),t.ALo(29,"readableDate"),t.qZA()(),t.TgZ(30,"td",32)(31,"a",33),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(32,"i",34),t.qZA()(),t.YNc(33,ct,2,1,"td",35),t.qZA()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(2),t.Oqu(e.id),t.xp6(2),t.Q6J("routerLink",t.DdM(20,V))("queryParams",t.VKq(21,G,null==e.user?null:e.user.username)),t.xp6(1),t.hij(" ",null==e.user?null:e.user.username," "),t.xp6(2),t.Oqu(e.identity),t.xp6(2),t.Oqu(e.registration_method),t.xp6(3),t.hij(" ",e.reason," "),t.xp6(2),t.Q6J("ngIf",!e.is_token_valid),t.xp6(1),t.Q6J("ngIf",e.is_token_valid),t.xp6(2),t.Oqu(e.is_token_valid?"Yes":"No"),t.xp6(3),t.Oqu(t.lcZ(21,14,e.token_valid_until)),t.xp6(4),t.Oqu(t.lcZ(25,16,e.created_at)),t.xp6(4),t.Oqu(t.lcZ(29,18,e.updated_at)),t.xp6(5),t.Q6J("ngIf",n.config.showDeleteButton)}}function ut(i,d){if(1&i&&(t.TgZ(0,"div",0)(1,"div",21)(2,"div",22)(3,"div",23)(4,"p",24),t._uU(5,"AcValidationTokens that I've created"),t.qZA(),t.TgZ(6,"div",25)(7,"table",26)(8,"thead")(9,"tr")(10,"th"),t._uU(11,"Id"),t.qZA(),t.TgZ(12,"th"),t._uU(13,"User"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"Identity"),t.qZA(),t.TgZ(16,"th"),t._uU(17,"Method"),t.qZA(),t.TgZ(18,"th"),t._uU(19,"Reason"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Token"),t.qZA(),t.TgZ(22,"th"),t._uU(23,"Valid"),t.qZA(),t.TgZ(24,"th"),t._uU(25,"Validity"),t.qZA(),t.TgZ(26,"th"),t._uU(27,"Created At"),t.qZA(),t.TgZ(28,"th"),t._uU(29,"Last Updated"),t.qZA(),t.TgZ(30,"th"),t._uU(31,"Update"),t.qZA(),t.YNc(32,rt,2,0,"th",7),t.qZA()(),t.TgZ(33,"tbody"),t.YNc(34,_t,34,23,"tr",27),t.qZA()()()()()()()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onColumn",e.layout==e.Layout.COLUMN),t.xp6(32),t.Q6J("ngIf",e.config.showDeleteButton),t.xp6(2),t.Q6J("ngForOf",e.acValidationTokens.content)}}function pt(i,d){if(1&i&&(t.TgZ(0,"h6",57),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.reason)}}function gt(i,d){if(1&i&&(t.TgZ(0,"small",58)(1,"b"),t._uU(2,"Updated"),t.qZA(),t._UZ(3,"br"),t._uU(4),t.ALo(5,"readableDate"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(4),t.hij(" ",t.lcZ(5,1,e.updated_at)," ")}}function mt(i,d){1&i&&(t.TgZ(0,"small",58),t._UZ(1,"br"),t.TgZ(2,"b"),t._uU(3,"Updated"),t.qZA(),t._UZ(4,"br"),t._uU(5,"Nil"),t.qZA())}function ht(i,d){if(1&i&&(t.TgZ(0,"a",52),t._uU(1," User: "),t.TgZ(2,"label",37),t._uU(3),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.Oqu(null==e.user?null:e.user.username)}}function Zt(i,d){if(1&i&&(t.TgZ(0,"a",52),t._uU(1," Token: "),t.TgZ(2,"label",59),t._uU(3),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.Oqu(e.registration_method)}}function ft(i,d){if(1&i&&(t.TgZ(0,"label",36),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function vt(i,d){if(1&i&&(t.TgZ(0,"label",59),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function Tt(i,d){if(1&i&&(t.TgZ(0,"div",60)(1,"a",28),t._UZ(2,"i",61),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("routerLink",t.DdM(2,V))("queryParams",t.VKq(3,G,null==e.user?null:e.user.username))}}function Ut(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",60)(1,"app-delete",62),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)("look","bx")}}function At(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",40)(1,"div",41)(2,"div",23)(3,"div",42)(4,"span",43),t._uU(5),t.qZA()(),t.TgZ(6,"h5",44)(7,"a",45),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(8),t.qZA()(),t.YNc(9,pt,2,1,"h6",46),t.TgZ(10,"div",0)(11,"div",47)(12,"p",48)(13,"small")(14,"b"),t._uU(15,"Created"),t.qZA(),t._UZ(16,"br"),t._uU(17),t.ALo(18,"readableDate"),t.qZA()()(),t.TgZ(19,"div",47)(20,"p",49),t.YNc(21,gt,6,3,"small",50),t.YNc(22,mt,6,0,"small",50),t.qZA()()(),t.TgZ(23,"p"),t._uU(24),t.ALo(25,"readableDate"),t._UZ(26,"br"),t._uU(27),t.qZA(),t.TgZ(28,"div"),t.YNc(29,ht,4,1,"a",51),t.YNc(30,Zt,4,1,"a",51),t.TgZ(31,"a",52),t._uU(32," Token: "),t.YNc(33,ft,2,1,"label",30),t.YNc(34,vt,2,1,"label",53),t.qZA()()(),t.TgZ(35,"div",54)(36,"div",55),t.YNc(37,Tt,3,5,"div",56),t.YNc(38,Ut,2,2,"div",56),t.qZA()()()()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(5),t.hij(" ",e.reason.substring(0,1).toUpperCase()," "),t.xp6(3),t.hij(" ",e.identity,""),t.xp6(1),t.Q6J("ngIf",e.reason),t.xp6(8),t.Oqu(t.lcZ(18,14,e.created_at)),t.xp6(4),t.Q6J("ngIf",e.updated_at),t.xp6(1),t.Q6J("ngIf",!e.updated_at),t.xp6(2),t.hij(" Validity: ",t.lcZ(25,16,e.token_valid_until)," "),t.xp6(3),t.hij("Valid Now?: ",e.is_token_valid?"Yes":"No"," "),t.xp6(2),t.Q6J("ngIf",null==e.user?null:e.user.username),t.xp6(1),t.Q6J("ngIf",e.registration_method),t.xp6(3),t.Q6J("ngIf",!e.is_token_valid),t.xp6(1),t.Q6J("ngIf",e.is_token_valid),t.xp6(3),t.Q6J("ngIf",null==e.user?null:e.user.username),t.xp6(1),t.Q6J("ngIf",n.config.showDeleteButton)}}function xt(i,d){if(1&i&&(t.TgZ(0,"div",0),t.YNc(1,At,39,18,"div",39),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onGrid",e.layout==e.Layout.GRID),t.xp6(1),t.Q6J("ngForOf",e.acValidationTokens.content)}}function qt(i,d){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,ut,35,4,"div",20),t.YNc(2,xt,2,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.COLUMN),t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.GRID)}}let bt=(()=>{class i extends Q.R{componentName(){return"AcValidationTokenListComponent"}constructor(e,n,o,s,l,O,F,w){super(e,n,o,l),this.activatedRoute=O,this.acValidationTokenService=F,this.notifier=w,this.config=nt,this.acValidationTokens=b.H,s.isAdmin()&&(this.config.searchEndpoint=M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(e=>{let n=(0,J.OP)(e);this.fetchAcValidationTokens({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"AcValidationTokens",link:null,active:!0}]}fetchAcValidationTokens(e){this.loading=!0;const n=this.componentKey(L.Z.ACVALIDATIONTOKENS.SEARCH(e));this.acValidationTokenService.search(n,this.config.searchEndpoint,e),this.subscribe(n,null,(o,s)=>{this.acValidationTokens=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.error("Error",s.data.error.message)})}onDeleted(e){e&&(this.notifier.success("Success","AcValidationToken is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return null}getUpsertComponent(){return null}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(y.e),t.Y36(K.x),t.Y36(a.gz),t.Y36(ot),t.Y36(u.l))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-acvalidationtoken-list"]],features:[t.qOj],decls:11,vars:8,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"showAddBtn","addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],[1,"text-uppercase"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[3,"routerLink","queryParams"],["href","javascript: void(0);",3,"click"],["class","badge bg-danger font-size-11 m-1",4,"ngIf"],["class","badge bg-success font-size-11 m-1",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"badge","bg-danger","font-size-11","m-1"],[1,"badge","bg-success","font-size-11","m-1"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-info font-size-11 m-1",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[1,"badge","bg-info","font-size-11","m-1"],[1,"flex-fill"],[1,"bx","bx-user","text-primary"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),t.NdJ("layoutSelected",function(l){return o.onLayoutSelected(l)}),t.qZA()()(),t.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),t.NdJ("addButtonClick",function(){return o.onUpsertClick(null)}),t.qZA()()()(),t.YNc(7,at,1,1,"util-progress",5),t.YNc(8,st,13,0,"div",6),t.YNc(9,qt,3,2,"div",7),t._UZ(10,"app-pagination",8)),2&n&&(t.xp6(2),t.Q6J("title","AcValidationTokens")("layout",o.layout)("breadcrumbItems",o.breadcrumbItems),t.xp6(4),t.Q6J("showAddBtn",!1),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",o.acValidationTokens.empty),t.xp6(1),t.Q6J("ngIf",!o.acValidationTokens.empty),t.xp6(1),t.Q6J("page",o.acValidationTokens))},dependencies:[f.sg,f.O5,a.rH,_.t,U.Q,x.D,z.T,B.L,N.G]})}return i})(),Ct=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-acvalidationtoken"]],decls:1,vars:0,template:function(n,o){1&n&&t._UZ(0,"app-acvalidationtoken-list")},dependencies:[bt]})}return i})();var Y=r(1310),k=r(2668),Et=r(5732);function Ot(i,d){1&i&&t._UZ(0,"util-progress",9),2&i&&t.Q6J("bar",!0)}function It(i,d){1&i&&(t.TgZ(0,"h4",21),t._uU(1,"Cooking your data, please wait.."),t.qZA())}function Dt(i,d){1&i&&(t.TgZ(0,"h4",22),t._uU(1,"No items"),t.qZA())}function Lt(i,d){if(1&i&&(t.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),t._UZ(6,"i",15),t.qZA(),t.YNc(7,It,2,0,"h4",16),t.YNc(8,Dt,2,0,"h4",17),t.qZA()()(),t.TgZ(9,"div",18)(10,"div",19)(11,"div"),t._UZ(12,"img",20),t.qZA()()()()()),2&i){const e=t.oxw();t.xp6(7),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function yt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Created By"),t.qZA())}function Nt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Delete"),t.qZA())}function St(i,d){if(1&i&&(t.TgZ(0,"td"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.created_by)}}function Mt(i,d){if(1&i&&t._UZ(0,"img",39),2&i){const e=t.oxw().$implicit;t.s9C("src",e.avatar,t.LSH)}}function Rt(i,d){if(1&i&&(t.TgZ(0,"span",40),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.name.substring(0,1).toUpperCase()," ")}}function Jt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"td",35)(1,"app-delete",41),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)}}function Yt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.YNc(3,St,2,1,"td",7),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td")(7,"div",31),t.YNc(8,Mt,1,1,"img",32),t.YNc(9,Rt,2,1,"span",33),t.qZA()(),t.TgZ(10,"td")(11,"a",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(12),t.qZA()(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.qZA(),t.TgZ(19,"td")(20,"small"),t._uU(21),t.ALo(22,"readableDate"),t.qZA()(),t.TgZ(23,"td")(24,"small"),t._uU(25),t.ALo(26,"readableDate"),t.qZA()(),t.TgZ(27,"td",35)(28,"a",36),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(29,"i",37),t.qZA()(),t.YNc(30,Jt,2,1,"td",38),t.qZA()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(2),t.Oqu(e.id),t.xp6(1),t.Q6J("ngIf",n.config.showUserFilter),t.xp6(2),t.Oqu(e.username),t.xp6(3),t.Q6J("ngIf",null!=e.avatar),t.xp6(1),t.Q6J("ngIf",null==e.avatar),t.xp6(3),t.hij(" ",e.name," "),t.xp6(2),t.Oqu(e.gender),t.xp6(2),t.Oqu(e.phone),t.xp6(2),t.Oqu(e.email),t.xp6(3),t.Oqu(t.lcZ(22,12,e.created_at)),t.xp6(4),t.Oqu(t.lcZ(26,14,e.updated_at)),t.xp6(5),t.Q6J("ngIf",n.config.showDeleteButton)}}function kt(i,d){if(1&i&&(t.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),t._uU(5,"Users that I've created"),t.qZA(),t.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),t._uU(11,"Id"),t.qZA(),t.YNc(12,yt,2,0,"th",7),t.TgZ(13,"th"),t._uU(14,"Image"),t.qZA(),t.TgZ(15,"th"),t._uU(16,"Username"),t.qZA(),t.TgZ(17,"th"),t._uU(18,"Name"),t.qZA(),t.TgZ(19,"th"),t._uU(20,"Gender"),t.qZA(),t.TgZ(21,"th"),t._uU(22,"Phone"),t.qZA(),t.TgZ(23,"th"),t._uU(24,"Email"),t.qZA(),t.TgZ(25,"th"),t._uU(26,"Created At"),t.qZA(),t.TgZ(27,"th"),t._uU(28,"Last Updated"),t.qZA(),t.TgZ(29,"th"),t._uU(30,"Update"),t.qZA(),t.YNc(31,Nt,2,0,"th",7),t.qZA()(),t.TgZ(32,"tbody"),t.YNc(33,Yt,31,16,"tr",30),t.qZA()()()()()()()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onColumn",e.layout==e.Layout.COLUMN),t.xp6(12),t.Q6J("ngIf",e.config.showUserFilter),t.xp6(19),t.Q6J("ngIf",e.config.showDeleteButton),t.xp6(2),t.Q6J("ngForOf",e.users.content)}}function Ft(i,d){if(1&i&&(t.TgZ(0,"div",61),t._UZ(1,"img",39),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.s9C("src",e.avatar,t.LSH)}}function wt(i,d){if(1&i&&(t.TgZ(0,"div",62)(1,"span",40),t._uU(2),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(2),t.hij(" ",e.name.substring(0,1).toUpperCase()," ")}}function Pt(i,d){if(1&i&&(t.TgZ(0,"h6",63),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("By ",e.created_by,"")}}function Ht(i,d){if(1&i&&(t.TgZ(0,"small",64)(1,"b"),t._uU(2,"Updated"),t.qZA(),t._UZ(3,"br"),t._uU(4),t.ALo(5,"readableDate"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(4),t.hij(" ",t.lcZ(5,1,e.updated_at)," ")}}function Qt(i,d){1&i&&(t.TgZ(0,"small",64),t._UZ(1,"br"),t.TgZ(2,"b"),t._uU(3,"Updated"),t.qZA(),t._UZ(4,"br"),t._uU(5,"Nil"),t.qZA())}function Kt(i,d){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("Phone: ",e.phone,"")}}function zt(i,d){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("Email: ",e.phone,"")}}function Bt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",58)(1,"app-delete",65),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)("look","bx")}}function Vt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",43)(1,"div",44)(2,"div",26),t.YNc(3,Ft,2,1,"div",45),t.YNc(4,wt,3,1,"div",46),t.TgZ(5,"h5",47)(6,"a",48),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(7),t.qZA()(),t.YNc(8,Pt,2,1,"h6",49),t.TgZ(9,"div",0)(10,"div",50)(11,"p",51)(12,"small")(13,"b"),t._uU(14,"Created"),t.qZA(),t._UZ(15,"br"),t._uU(16),t.ALo(17,"readableDate"),t.qZA()()(),t.TgZ(18,"div",50)(19,"p",52),t.YNc(20,Ht,6,3,"small",53),t.YNc(21,Qt,6,0,"small",53),t.qZA()()(),t.TgZ(22,"p"),t.YNc(23,Kt,3,1,"span",7),t.YNc(24,zt,2,1,"span",7),t.qZA(),t.TgZ(25,"div")(26,"a",54)(27,"label",55),t._uU(28,"Approved"),t.qZA()()()(),t.TgZ(29,"div",56)(30,"div",57)(31,"div",58)(32,"a",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(33,"i",59),t.qZA()(),t.YNc(34,Bt,2,2,"div",60),t.qZA()()()()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(3),t.Q6J("ngIf",e.avatar),t.xp6(1),t.Q6J("ngIf",null==e.avatar),t.xp6(3),t.hij(" ",e.name,""),t.xp6(1),t.Q6J("ngIf",n.config.showUserFilter&&e.created_by),t.xp6(8),t.Oqu(t.lcZ(17,10,e.created_at)),t.xp6(4),t.Q6J("ngIf",e.updated_at),t.xp6(1),t.Q6J("ngIf",!e.updated_at),t.xp6(2),t.Q6J("ngIf",e.phone),t.xp6(1),t.Q6J("ngIf",e.email),t.xp6(10),t.Q6J("ngIf",n.config.showDeleteButton)}}function Gt(i,d){if(1&i&&(t.TgZ(0,"div",0),t.YNc(1,Vt,35,12,"div",42),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onGrid",e.layout==e.Layout.GRID),t.xp6(1),t.Q6J("ngForOf",e.users.content)}}function jt(i,d){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,kt,34,5,"div",23),t.YNc(2,Gt,2,3,"div",23),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.COLUMN),t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.GRID)}}let $t=(()=>{class i extends Q.R{componentName(){return"UserListComponent"}constructor(e,n,o,s,l,O,F,w){super(e,n,o,l),this.activatedRoute=O,this.userService=F,this.notifier=w,this.config=Y.EK,this.filterData=J.M9,this.users=b.H,s.isAdmin()&&(this.config.searchEndpoint=Y.wl.adminEndpoint)}initialize(){this.activatedRoute.queryParams.subscribe(e=>{this.filterData=(0,J.OP)(e),this.fetchUsers({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Users",link:null,active:!0}]}fetchUsers(e){this.loading=!0;const n=this.componentKey(L.Z.USERS.SEARCH(e));this.userService.search(n,this.config.searchEndpoint,e),this.subscribe(n,null,(o,s)=>{this.users=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.error("Error",s.data.error.message)})}onDeleted(e){e&&(this.notifier.success("Success","User is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Y.n5.create,update:e=>Y.n5.update(e),params:(0,J.oZ)(this.filterData)}}getUpsertComponent(){return k.M}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(y.e),t.Y36(K.x),t.Y36(a.gz),t.Y36(Et.K),t.Y36(u.l))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-user-list"]],features:[t.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),t.NdJ("layoutSelected",function(l){return o.onLayoutSelected(l)}),t.qZA()()(),t.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),t.NdJ("addButtonClick",function(){return o.onUpsertClick(null)}),t.qZA()()()(),t.YNc(7,Ot,1,1,"util-progress",5),t.YNc(8,Lt,13,2,"div",6),t.YNc(9,jt,3,2,"div",7),t._UZ(10,"app-pagination",8)),2&n&&(t.xp6(2),t.Q6J("title","Users")("layout",o.layout)("breadcrumbItems",o.breadcrumbItems),t.xp6(5),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",o.users.empty),t.xp6(1),t.Q6J("ngIf",!o.users.empty),t.xp6(1),t.Q6J("page",o.users))},dependencies:[f.sg,f.O5,_.t,U.Q,x.D,z.T,B.L,N.G]})}return i})();const Wt=[{path:"",component:(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-user"]],decls:1,vars:0,template:function(n,o){1&n&&t._UZ(0,"app-user-list")},dependencies:[$t]})}return i})()},{path:"create",component:k.M},{path:":id/update",component:k.M},{path:"activity-logs",component:$},{path:"request-credentials/lockouts",component:et},{path:"validation-tokens",component:Ct}];let Xt=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.oAB({type:i});static#i=this.\u0275inj=t.cJS({imports:[a.Bz.forChild(Wt),a.Bz]})}return i})();var te=r(9797),ee=r(2241),ie=r(4807);let ne=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.oAB({type:i});static#i=this.\u0275inj=t.cJS({imports:[f.ez,c.kn,g.u5,D.TU,Xt,te.CmsModule,g.UX,v.g,ee.AdminModule,ie.A0]})}return i})()},2668:(R,E,r)=>{r.d(E,{M:()=>q});var f=r(9870),v=r(1310),c=r(6223),g=r(7259),D=r(7700),a=r(5879),b=r(30),I=r(1662),m=r(6945),L=r(5732),h=r(5462),t=r(6814),u=r(7035),Z=r(4736);function C(A,y){1&A&&a._UZ(0,"util-progress",18),2&A&&a.Q6J("bar",!0)}let q=(()=>{class A extends f.n{constructor(p,T,_,U,x,N,S){super(p,T,_,U,S),this.userService=x,this.notifier=N,this.config=v.EK,this.userForm=new c.cw({title:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(20)]),image:new c.NI(null)}),null!=S.title&&this.userForm.controls.title.setValue(S.title)}componentName(){return"UserUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Users",link:"/admin/users",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(p){this.loading=!0;let T=this.componentKey(g.Z.USERS.GET(p));this.userService.fetchSingle(T,p),this.subscribe(T,null,(_,U)=>{this.loading=!1,this.populateForm(U.data)}),this.subscribe(this.getErrorKey(T),null,(_,U)=>{console.log(U.data),this.loading=!1})}onSubmit(){this.userForm.valid&&this.upsert(this.exId)}onImgUploaded(p){p.length>0&&this.userForm.controls.image.setValue(p[0].image_url)}getExImages(){let p=this.userForm.controls.image.value;return null==p?[]:[{image_url:p,thumb_url:p}]}getConfig(){return this.config}getListPageRoute(){return v.n5.list}upsert(p){this.loading=!0;let T=this.componentKey(g.Z.USERS.UPSERT(p));this.userService.upsert(T,this.userForm.value,p),this.subscribe(T,null,(_,U)=>{this.loading=!1,this.notifier.success("Success","User has been "+(p?"updated":"created")),this.userForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(U.data):this.navigateToListPage()}),this.subscribe(this.getErrorKey(T),null,(_,U)=>{let x=U.data;this.loading=!1,this.notifier.warning("Failed!",x.error.message)})}populateForm(p){}static#t=this.\u0275fac=function(T){return new(T||A)(a.Y36(b.Y),a.Y36(I.F0),a.Y36(m.z),a.Y36(I.gz),a.Y36(L.K),a.Y36(h.l),a.Y36(D.WI))};static#e=this.\u0275cmp=a.Xpm({type:A,selectors:[["app-user-upsert"]],features:[a.qOj],decls:28,vars:10,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],[1,"error"],["type","text","id","title-input","placeholder","Enter Title","name","title","formControlName","title",1,"form-control"],[1,"text-danger"],["for","description",1,"form-label"],["id","description","placeholder","Enter Description","rows","5","name","description","formControlName","description",1,"form-control"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(T,_){1&T&&(a.YNc(0,C,1,1,"util-progress",0),a.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),a._uU(6,"Create/Update User"),a.qZA(),a.TgZ(7,"form",6)(8,"div",7)(9,"label",8),a._uU(10,"Title"),a.TgZ(11,"em",9),a._uU(12,"*"),a.qZA()(),a._UZ(13,"input",10),a.TgZ(14,"em",11),a._uU(15),a.qZA()(),a.TgZ(16,"div",7)(17,"label",12),a._uU(18,"Description"),a.qZA(),a._UZ(19,"textarea",13),a.TgZ(20,"em",11),a._uU(21),a.qZA()(),a.TgZ(22,"app-file-picker",14),a.NdJ("onUploaded",function(x){return _.onImgUploaded(x)}),a.qZA(),a.TgZ(23,"div",15)(24,"button",16),a.NdJ("click",function(){return _.onCancel()}),a._uU(25," Cancel "),a.qZA(),a.TgZ(26,"button",17),a.NdJ("click",function(){return _.onSubmit()}),a._uU(27," Submit "),a.qZA()()()()()()()),2&T&&(a.Q6J("ngIf",_.loading),a.xp6(1),a.Q6J("@loaded",!_.loading),a.xp6(6),a.Q6J("formGroup",_.userForm),a.xp6(8),a.hij(" ",_.errMsg(_.userForm,"title","minLength","Title should be at least 3 characters!")," "),a.xp6(6),a.hij(" ",_.errMsg(_.userForm,"description","minLength","Description should be at least 20 characters!")," "),a.xp6(1),a.s9C("title",_.translations.Image),a.Q6J("multiSelect",!1)("existingImages",_.getExImages())("required",!1),a.xp6(4),a.Q6J("ngClass",_.userForm.valid?"":"disabled"))},dependencies:[t.mk,t.O5,c._Y,c.Fj,c.JJ,c.JL,u.P,c.sg,c.u,Z.t]})}return A})()},1310:(R,E,r)=>{r.d(E,{EK:()=>c,n5:()=>D,wl:()=>g});var f=r(6405),v=r(7597);let c={defaultLayout:f.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:v.U.USERS.USER_ENDPOINT,delEndpoint:v.U.USERS.USER_ENDPOINT},g={endpoint:v.U.USERS.USER_ENDPOINT,adminEndpoint:v.U.USERS.USER_ENDPOINT_ADMIN},D={list:"/admin/users",create:"/admin/users/create",update(a){return null==a?this.create:"/admin/users/"+a+"/update"}}},5732:(R,E,r)=>{r.d(E,{K:()=>I});var f=r(1547),v=r(7597),c=r(5879),g=r(8480),D=r(5462),a=r(9862),b=r(30);let I=(()=>{class m extends f.b{constructor(h,t,u,Z){super(h,t),this.http=u,this.eventBusService=Z}search(h,t,u){let Z=v.U.USERS.SEARCH(t,u);this.http.get(Z).subscribe(C=>{this.eventBusService.publish(h,C)},C=>{this.handleError(C,q=>{this.search(h,t,u)},q=>{this.eventBusService.publish(this.getErrorKey(h),q)})})}fetchSingle(h,t){this.http.get(v.U.USERS.GET(t)).subscribe(u=>{this.eventBusService.publish(h,u)},u=>{this.handleError(u,Z=>{this.fetchSingle(h,t)},Z=>{this.eventBusService.publish(this.getErrorKey(h),Z)})})}upsert(h,t,u){let Z=null==u?v.U.USERS.CREATE():v.U.USERS.UPDATE(u);(null==u?this.http.post(Z,t):this.http.patch(Z,t)).subscribe(q=>{this.eventBusService.publish(h,q)},q=>{this.handleError(q,A=>{this.upsert(h,t,u)},A=>{this.eventBusService.publish(this.getErrorKey(h),A)})})}static#t=this.\u0275fac=function(t){return new(t||m)(c.LFG(g.e),c.LFG(D.l),c.LFG(a.eN),c.LFG(b.Y))};static#e=this.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()}}]); \ No newline at end of file diff --git a/bn-BN/326.38354acd47162138.js b/bn-BN/326.38354acd47162138.js new file mode 100644 index 0000000..e8a19c4 --- /dev/null +++ b/bn-BN/326.38354acd47162138.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[326],{5095:(z,K,o)=>{o.d(K,{e:()=>E});var d=o(8637),T=o(6405),c=o(7613),x=o(8743),g=o(3108),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(8675);let E=(()=>{class u extends d.H{constructor(S,U,C,b){super(S,U,C),this.popup=b,this.Layout=T.A,this.StringUtil=c.m,this.breadcrumbItems=[],this.layout=T.A.GRID,this.breadcrumbItems=this.getBreadcrumbItems()}ngOnInit(){let S=this.getConfig().endpoint,U=g.n.retrieve(S);this.layout=null!=U?parseInt(U):this.getConfig().defaultLayout,this.initialize()}onLayoutSelected(S){this.layout=S,g.n.put(this.getConfig().endpoint,this.layout.toString())}openUpsertComponent(S){let U=this.getUpsertComponent();null!=U&&(this.popup.open(U,{id:S}),this.popup.onCompleted.subscribe(C=>{this.ngOnInit(),null!=C&&this.onUpsertSuccess(C),console.log("onSuccess. closing dialog")}),this.popup.onCanceled.subscribe(()=>{console.log("onCanceled. closing dialog")}))}onUpsertClick(S){if(this.getConfig().upsertOnDialog)this.openUpsertComponent(S);else{let U=this.getRoutes();if(null==U)return;let C=null==S?U.create:U.update(S);this.router.navigate([C],{queryParams:null!=S?U.params:{}})}}onUpsertSuccess(S){console.log("onUpsertSuccess",S)}static#e=this.\u0275fac=function(U){return new(U||u)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(e.x))};static#_=this.\u0275cmp=t.Xpm({type:u,selectors:[["ng-component"]],features:[t.qOj],decls:0,vars:0,template:function(U,C){},encapsulation:2,data:{animation:[(0,x.Ym)("onGrid","left"),(0,x.Ym)("onColumn","right")]}})}return u})()},4201:(z,K,o)=>{o.d(K,{C:()=>l});var d=o(8637),T=o(5879),c=o(7700),x=o(8743),g=o(1855),t=o(30),A=o(1662),B=o(6945);let l=(()=>{class e extends d.H{constructor(u,N,S,U,C){super(u,N,S),this.route=U,this.dialogData=C,this.breadcrumbItems=[],this.onCanceled=new T.vpe,this.onCompleted=new T.vpe,this.filterData=null,this.exId=null,this.dialogUpsert=!1,this.breadcrumbItems=this.getBreadcrumbItems(),this.dialogUpsert=null!=C.dialogUpsert}ngOnInit(){this.loading=!1,this.route.queryParams.subscribe(u=>{this.filterData=(0,g.OP)(u)}),this.route.paramMap.subscribe(u=>{let N=u.get("id");if(null==N&&(N=this.dialogData?.id),null!=N){let S=parseInt(N);isNaN(S)||(this.exId=S,this.initialize(this.exId))}})}navigateToListPage(u=null){this.router.navigate([this.getListPageRoute()],{queryParams:null==this.filterData?null:(0,g.oZ)(this.filterData)}).then(u)}onSuccess(u){this.loading=!1,this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCompleted.emit(u):this.navigateToListPage()}onCancel(){this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCanceled.emit():this.navigate(this.getListPageRoute(),u=>{})}static#e=this.\u0275fac=function(N){return new(N||e)(T.Y36(t.Y),T.Y36(A.F0),T.Y36(B.z),T.Y36(A.gz),T.Y36(c.WI))};static#_=this.\u0275cmp=T.Xpm({type:e,selectors:[["ng-component"]],outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[T.qOj],decls:0,vars:0,template:function(N,S){},encapsulation:2,data:{animation:[(0,x.e6)("loaded")]}})}return e})()},9107:(z,K,o)=>{o.d(K,{l:()=>C});var d=o(9870),T=o(1470),c=o(6223),x=o(7700),g=o(7259),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(7210),E=o(5462),u=o(6814),N=o(4736),S=o(7035);function U(b,y){1&b&&t._UZ(0,"util-progress",23),2&b&&t.Q6J("bar",!0)}let C=(()=>{class b extends d.n{constructor(h,M,f,P,I,Z,V){super(h,M,f,P,V),this.brandService=I,this.notifier=Z,this.config=T.j,this.brandForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),image:new c.NI(null)}),null!=V.name&&this.brandForm.controls.name.setValue(V.name)}componentName(){return"BrandUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Brands",link:"/admin/brands",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(h){this.loading=!0;let M=this.componentKey(g.Z.BRANDS.GET(h));this.brandService.fetchSingle(M,h),this.subscribe(M,null,(f,P)=>{this.loading=!1,this.populateForm(P.data)}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{console.log(P.data),this.loading=!1})}onSubmit(){this.brandForm.valid&&this.upsert(this.exId)}onImgUploaded(h){h.length>0&&this.brandForm.controls.image.setValue(h[0].image_url)}getExImages(){let h=this.brandForm.controls.image.value;return null==h?[]:[{image_url:h,thumb_url:h}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(h){this.loading=!0;let M=this.componentKey(g.Z.BRANDS.UPSERT(h));this.brandService.upsert(M,this.brandForm.value,h),this.subscribe(M,null,(f,P)=>{this.loading=!1;let I="Brand has been "+(h?"updated":"created");this.notifier.success("Success",I),this.brandForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(P.data):this.navigate(T.n.list,Z=>{this.notifier.success("Success!",I)})}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{let I=P.data;this.loading=!1,this.notifier.warning("Failed!",I.error.message)})}populateForm(h){this.brandForm.controls.name.setValue(h.name),this.brandForm.controls.description.setValue(h.description),this.brandForm.controls.image.setValue(null==h.image?null:h.image)}static#e=this.\u0275fac=function(M){return new(M||b)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.c),t.Y36(E.l),t.Y36(x.WI))};static#_=this.\u0275cmp=t.Xpm({type:b,selectors:[["app-brand-upsert"]],features:[t.qOj],decls:31,vars:12,consts:function(){let h,M,f,P,I;return h="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1 \u09A4\u09C8\u09B0\u09BF/\u0986\u09AA\u09A1\u09C7\u099F \u0995\u09B0\u09C1\u09A8",M="\u09A8\u09BE\u09AE",f="\u09AC\u09BF\u09AC\u09B0\u09A3",P="\u09AC\u09BE\u09A4\u09BF\u09B2",I="\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],h,[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],M,[1,"error"],["type","text","id","title-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","description",1,"form-label"],f,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],P,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],I,[3,"bar"]]},template:function(M,f){1&M&&(t.YNc(0,U,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",8)(9,"label",9)(10,"span"),t.SDv(11,10),t.qZA(),t.TgZ(12,"em",11),t._uU(13,"*"),t.qZA()(),t._UZ(14,"input",12),t.TgZ(15,"em",13),t._uU(16),t.qZA()(),t.TgZ(17,"div",8)(18,"label",14),t.SDv(19,15),t.qZA(),t._UZ(20,"textarea",16),t.TgZ(21,"em",13),t._uU(22),t.qZA()(),t.TgZ(23,"app-file-picker",17),t.NdJ("onUploaded",function(I){return f.onImgUploaded(I)}),t.qZA(),t.TgZ(24,"div",18)(25,"button",19),t.NdJ("click",function(){return f.onCancel()}),t.TgZ(26,"span"),t.SDv(27,20),t.qZA()(),t.TgZ(28,"button",21),t.NdJ("click",function(){return f.onSubmit()}),t.TgZ(29,"span"),t.SDv(30,22),t.qZA()()()()()()()()),2&M&&(t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("@loaded",!f.loading),t.xp6(6),t.Q6J("formGroup",f.brandForm),t.xp6(7),t.s9C("placeholder",f.translations["Enter Name"]),t.xp6(2),t.hij(" ",f.errMsg(f.brandForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.s9C("placeholder",f.translations["Enter Description"]),t.xp6(2),t.hij(" ",f.errMsg(f.brandForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(1),t.s9C("title",f.translations.Image),t.Q6J("multiSelect",!1)("existingImages",f.getExImages())("required",!1),t.xp6(5),t.Q6J("ngClass",f.brandForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.P]})}return b})()},1470:(z,K,o)=>{o.d(K,{j:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showUpdateButton:!1,showDeleteButton:!1,searchEndpoint:T.E.BRANDS.BRAND_ENDPOINT,delEndpoint:T.E.BRANDS.BRAND_ENDPOINT},x={list:"/admin/brands",create:"/admin/brands/create",update(g){return null==g?this.create:"/admin/brands/"+g+"/update"}}},7210:(z,K,o)=>{o.d(K,{c:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.BRANDS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.BRANDS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.BRANDS.CREATE():T.E.BRANDS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},5081:(z,K,o)=>{o.d(K,{P:()=>y});var d=o(5879),T=o(8637),c=o(7259),x=o(8174),g=o(2771),t=o(2134),A=o(30),B=o(1662),l=o(6945),e=o(4120),E=o(8675),u=o(6814),N=o(6223),S=o(4736),U=o(4807);function C(h,M){1&h&&d._UZ(0,"util-progress",4),2&h&&d.Q6J("bar",!0)}const b=function(){return{standalone:!0}};let y=(()=>{class h extends T.H{componentName(){return"CategorySelectComponent"}constructor(f,P,I,Z,V){super(f,P,I),this.categoryService=Z,this.popupService=V,this.searchEndpoint=g.E.CATEGORIES.CATEGORY_ENDPOINT_V2,this.categories=[],this.selectedItem=null,this.selected=new d.vpe,this.searchEndpoint=g.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN_V2}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(f){let P=x.g.removeSpecialCharacters(f.target?.value);P.length>2&&this.search({page:0,size:10,q:P})}onSelected(f){this.categories.find(P=>P.name==f.name)?this.selected.emit(this.selectedItem):this.popupService.open(t.I,{id:null,name:f.name}).componentInstance.onCompleted.subscribe(I=>{this.selected.emit(I)})}search(f){this.loading=!0;let P=this.componentKey(c.Z.CATEGORIES.SEARCH_CATEGORIES_FOR_FILTER());this.categoryService.search(P,this.searchEndpoint,f),this.subscribe(P,null,(I,Z)=>{this.categories=Z.data.content,this.loading=!1})}static#e=this.\u0275fac=function(P){return new(P||h)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.H),d.Y36(E.x))};static#_=this.\u0275cmp=d.Xpm({type:h,selectors:[["app-category-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let f;return f="\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF",[["for","autoSizingInput2",1,"visually-hidden"],f,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(P,I){1&P&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,C,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(V){return I.searchForEvent(V)})("ngModelChange",function(V){return I.selectedItem=V})("change",function(V){return I.onSelected(V)}),d.qZA()),2&P&&(d.xp6(2),d.Q6J("ngIf",I.loading),d.xp6(1),d.s9C("placeholder",I.translations["Search Category.."]),d.Q6J("items",I.categories)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",I.selectedItem)("ngModelOptions",d.DdM(8,b)))},dependencies:[u.O5,N.JJ,S.t,U.w9,N.On]})}return h})()},2134:(z,K,o)=>{o.d(K,{I:()=>N});var d=o(2642),T=o(6223),c=o(7700),x=o(7259),g=o(4201),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(4120),E=o(5462);function u(S,U){1&S&&t._UZ(0,"util-progress",32),2&S&&t.Q6J("bar",!0)}let N=(()=>{class S extends g.C{constructor(C,b,y,h,M,f,P){super(C,b,y,h,P),this.categoryService=M,this.notifier=f,this.config=d.o,this.selectedParent=null,this.categoryForm=new T.cw({name:new T.NI("",[T.kI.required,T.kI.minLength(3)]),description:new T.NI("",[]),parent_id:new T.NI(null),image:new T.NI(null),update_attributes_for_children:new T.NI(!1)}),null!=P.name&&this.categoryForm.controls.name.setValue(P.name)}componentName(){return"CategoryUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Categorys",link:"/admin/categorys",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(C){this.loading=!0;let b=this.componentKey(x.Z.PRODUCT_CATEGORIES.GET(C));this.categoryService.fetchSingle(b,C),this.subscribe(b,null,(y,h)=>{this.loading=!1,this.populateForm(h.data)}),this.subscribe(this.getErrorKey(b),null,(y,h)=>{console.log(h.data),this.loading=!1})}onSubmit(){this.categoryForm.valid&&this.upsert(this.exId)}onImgUploaded(C){C.length>0&&this.categoryForm.controls.image.setValue(C[0].image_url)}getExImages(){let C=this.categoryForm.controls.image.value;return null==C?[]:[{image_url:C,thumb_url:C}]}getConfig(){return this.config}getListPageRoute(){return d.n.list}upsert(C){this.loading=!0;let b=this.componentKey(x.Z.PRODUCT_CATEGORIES.UPSERT(C));this.categoryService.upsert(b,this.categoryForm.value,C),this.subscribe(b,null,(y,h)=>{this.categoryForm.reset(),this.onSuccess(h.data)}),this.subscribe(this.getErrorKey(b),null,(y,h)=>{let M=h.data;this.loading=!1,this.notifier.warning("Failed!",M.error.message)})}populateForm(C){this.selectedParent=C.parent,this.categoryForm.controls.name.setValue(C.name),this.categoryForm.controls.description.setValue(C.description),this.categoryForm.controls.parent_id.setValue(null==C.parent?null:C.parent.id),this.categoryForm.controls.image.setValue(null==C.image?null:C.image)}onParentSelected(C){this.selectedParent=C,this.categoryForm.controls.parent_id.setValue(null==C?null:C.id)}static#e=this.\u0275fac=function(b){return new(b||S)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.H),t.Y36(E.l),t.Y36(c.WI))};static#_=this.\u0275cmp=t.Xpm({type:S,selectors:[["app-category-upsert"]],features:[t.qOj],decls:40,vars:13,consts:function(){let C,b,y,h,M,f,P;return C="\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF \u09A4\u09C8\u09B0\u09BF/\u0986\u09AA\u09A1\u09C7\u099F \u0995\u09B0\u09C1\u09A8",b="\u09A8\u09BE\u09AE",y="\u09AA\u09CD\u09AF\u09BE\u09B0\u09C7\u09A8\u09CD\u099F",h="\u09AC\u09BF\u09AC\u09B0\u09A3",M="\u09B8\u09A8\u09CD\u09A4\u09BE\u09A8\u09C7\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A1\u09C7\u099F \u0995\u09B0\u09C1\u09A8",f="\u09AC\u09BE\u09A4\u09BF\u09B2",P="\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],C,[3,"formGroup"],[1,"row","mb-3"],[1,"col-6","col-sm-6"],["for","title-input",1,"form-label"],b,[1,"error"],["type","text","id","title-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","parent",1,"form-label"],y,["id","parent",3,"searchEndpoint","selectedItem","selected"],[1,"mb-3"],["for","description",1,"form-label"],h,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"form-check"],["type","checkbox","id","gridCheck","name","update_attributes_for_children","formControlName","update_attributes_for_children",1,"form-check-input"],["for","gridCheck",1,"form-check-label"],M,[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],f,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],P,[3,"bar"]]},template:function(b,y){1&b&&(t.YNc(0,u,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",8)(9,"div",9)(10,"label",10)(11,"span"),t.SDv(12,11),t.qZA(),t.TgZ(13,"em",12),t._uU(14,"*"),t.qZA()(),t._UZ(15,"input",13),t.TgZ(16,"em",14),t._uU(17),t.qZA()(),t.TgZ(18,"div",9)(19,"label",15),t.SDv(20,16),t.qZA(),t.TgZ(21,"app-category-select",17),t.NdJ("selected",function(M){return y.onParentSelected(M)}),t.qZA()()(),t.TgZ(22,"div",18)(23,"label",19),t.SDv(24,20),t.qZA(),t._UZ(25,"textarea",21),t.qZA(),t.TgZ(26,"app-file-picker",22),t.NdJ("onUploaded",function(M){return y.onImgUploaded(M)}),t.qZA(),t.TgZ(27,"div",8)(28,"div",18)(29,"div",23),t._UZ(30,"input",24),t.TgZ(31,"label",25),t.SDv(32,26),t.qZA()()()(),t.TgZ(33,"div",27)(34,"button",28),t.NdJ("click",function(){return y.onCancel()}),t.TgZ(35,"span"),t.SDv(36,29),t.qZA()(),t.TgZ(37,"button",30),t.NdJ("click",function(){return y.onSubmit()}),t.TgZ(38,"span"),t.SDv(39,31),t.qZA()()()()()()()()),2&b&&(t.Q6J("ngIf",y.loading),t.xp6(1),t.Q6J("@loaded",!y.loading),t.xp6(6),t.Q6J("formGroup",y.categoryForm),t.xp6(8),t.s9C("placeholder",y.translations["Enter Name"]),t.xp6(2),t.hij(" ",y.errMsg(y.categoryForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.Q6J("searchEndpoint",y.config.endpointV2)("selectedItem",y.selectedParent),t.xp6(4),t.s9C("placeholder",y.translations["Enter Description"]),t.xp6(1),t.s9C("title",y.translations.Image),t.Q6J("multiSelect",!1)("existingImages",y.getExImages())("required",!1),t.xp6(11),t.Q6J("ngClass",y.categoryForm.valid?"":"disabled"))}})}return S})()},2642:(z,K,o)=>{o.d(K,{n:()=>x,o:()=>c});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,showUpdateButton:!1,endpoint:T.E.CATEGORIES.CATEGORY_ENDPOINT,endpointV2:T.E.CATEGORIES.CATEGORY_ENDPOINT_V2,delEndpoint:T.E.CATEGORIES.CATEGORY_ENDPOINT},x={list:"/admin/inventory/categories",getChildren:g=>"/admin/inventory/categories?parent_id="+g,create:"/admin/inventory/categories/create",update(g){return null==g?this.create:"/admin/inventory/categories/"+g+"/update"}}},4120:(z,K,o)=>{o.d(K,{H:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.CATEGORIES.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.CATEGORIES.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}fetchMultiple(E,u){this.http.get(T.E.CATEGORIES.GET_MULTIPLE(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchMultiple(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.CATEGORIES.CREATE():T.E.CATEGORIES.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},756:(z,K,o)=>{o.d(K,{t:()=>h});var d=o(5879),T=o(8637),c=o(8174),x=o(7259),g=o(2771),t=o(4381),A=o(30),B=o(1662),l=o(6945),e=o(8480),E=o(6501),u=o(8675),N=o(6814),S=o(6223),U=o(4736),C=o(4807);function b(M,f){1&M&&d._UZ(0,"util-progress",4),2&M&&d.Q6J("bar",!0)}const y=function(){return{standalone:!0}};let h=(()=>{class M extends T.H{componentName(){return"FAttributeSelectComponent"}constructor(P,I,Z,V,q,_e){super(P,I,Z),this.filterableAttributeService=q,this.popupService=_e,this.searchEndpoint=g.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new d.vpe,V.isAdmin()&&(this.searchEndpoint=g.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(P){let I=c.g.removeSpecialCharacters(P.target?.value);I.length>2&&this.search({page:0,size:10,q:I})}onSelected(P){this.items.find(I=>I.name==P.name)?this.selected.emit(this.selectedItem):this.popupService.open(t.V,{id:null,name:P.name,dialogUpsert:!0}).componentInstance.onCompleted.subscribe(Z=>{this.selected.emit(Z)})}search(P){this.loading=!0;let I=this.componentKey(x.Z.FILTERABLEATTRIBUTES.SEARCH(P));this.filterableAttributeService.search(I,this.searchEndpoint,P),this.subscribe(I,null,(Z,V)=>{this.items=V.data.content,this.loading=!1})}static#e=this.\u0275fac=function(I){return new(I||M)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.e),d.Y36(E.C),d.Y36(u.x))};static#_=this.\u0275cmp=d.Xpm({type:M,selectors:[["app-fa-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let P;return P="\u09AB\u09BF\u09B2\u09CD\u099F\u09BE\u09B0 \u098F\u099F\u09CD\u09B0\u09BF\u09AC\u09BF\u0989\u099F",[["for","autoSizingInput2",1,"visually-hidden"],P,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(I,Z){1&I&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,b,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(q){return Z.searchForEvent(q)})("ngModelChange",function(q){return Z.selectedItem=q})("change",function(q){return Z.onSelected(q)}),d.qZA()),2&I&&(d.xp6(2),d.Q6J("ngIf",Z.loading),d.xp6(1),d.s9C("placeholder",Z.translations["Search Attributes.."]),d.Q6J("items",Z.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",Z.selectedItem)("ngModelOptions",d.DdM(8,y)))},dependencies:[N.O5,S.JJ,U.t,C.w9,S.On]})}return M})()},4381:(z,K,o)=>{o.d(K,{V:()=>b});var d=o(6223),T=o(9870),c=o(231),x=o(7700),g=o(7259),t=o(8174),A=o(5879),B=o(30),l=o(1662),e=o(6945),E=o(6501),u=o(5462),N=o(6814),S=o(4736);function U(y,h){1&y&&A._UZ(0,"util-progress",21),2&y&&A.Q6J("bar",!0)}function C(y,h){if(1&y){const M=A.EpF();A.TgZ(0,"div",22)(1,"div",23),A._UZ(2,"input",24),A.qZA(),A.TgZ(3,"div",25)(4,"a",26)(5,"i",27),A.NdJ("click",function(){const I=A.CHM(M).index,Z=A.oxw();return A.KtG(Z.removeValue(I))}),A.qZA()()()()}if(2&y){const M=h.$implicit,f=h.index;A.xp6(2),A.Q6J("formControl",M)("id","value_"+f)}}let b=(()=>{class y extends T.n{get valuesArrayControls(){return this.filterableAttributeForm.get("values").controls.filter(M=>M instanceof d.NI)}addValueControl(M){const f=new d.NI(M,d.kI.required);this.filterableAttributeForm.get("values").push(f)}removeValue(M){this.filterableAttributeForm.get("values").removeAt(M)}constructor(M,f,P,I,Z,V,q){super(M,f,P,I,q),this.filterableAttributeService=Z,this.notifier=V,this.config=c.I,this.filterableAttributeForm=new d.cw({name:new d.NI("",[d.kI.required,d.kI.minLength(3)]),code:new d.NI("",[d.kI.required,d.kI.minLength(3)]),values:new d.Oe([],d.kI.required)}),null!=q.name&&(this.filterableAttributeForm.controls.name.setValue(q.name),this.filterableAttributeForm.controls.code.setValue(t.g.codify(q.name)))}componentName(){return"FilterableAttributeUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"FilterableAttributes",link:"/admin/filterableattributes",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.filterableAttributeForm.controls.name.valueChanges.subscribe(M=>{null!=M&&this.filterableAttributeForm.controls.code.setValue(t.g.codify(M))}),null==this.exId&&(this.addValueControl(""),this.addValueControl(""))}initialize(M){this.loading=!0;let f=this.componentKey(g.Z.FILTERABLEATTRIBUTES.GET(M));this.filterableAttributeService.fetchSingle(f,M),this.subscribe(f,null,(P,I)=>{this.loading=!1,this.populateForm(I.data)}),this.subscribe(this.getErrorKey(f),null,(P,I)=>{console.log(I.data),this.loading=!1})}onSubmit(){this.filterableAttributeForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return c.n.list}upsert(M){this.loading=!0;let f=this.componentKey(g.Z.FILTERABLEATTRIBUTES.UPSERT(M));this.filterableAttributeService.upsert(f,this.filterableAttributeForm.value,M),this.subscribe(f,null,(P,I)=>{this.filterableAttributeForm.reset(),this.onSuccess(I.data)}),this.subscribe(this.getErrorKey(f),null,(P,I)=>{let Z=I.data;this.loading=!1,this.notifier.warning("Failed!",Z.error.message)})}populateForm(M){this.filterableAttributeForm.controls.name.setValue(M.name),this.filterableAttributeForm.controls.code.setValue(M.code),M.values.forEach(f=>{this.addValueControl(f)})}static#e=this.\u0275fac=function(f){return new(f||y)(A.Y36(B.Y),A.Y36(l.F0),A.Y36(e.z),A.Y36(l.gz),A.Y36(E.C),A.Y36(u.l),A.Y36(x.WI))};static#_=this.\u0275cmp=A.Xpm({type:y,selectors:[["app-filterableattribute-upsert"]],features:[A.qOj],decls:40,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"row","mb-3"],[1,"col-6"],["for","name-input",1,"form-label"],[1,"error"],["type","text","id","name-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],["type","text","id","code-input","placeholder","Enter Code","name","code","formControlName","code",1,"form-control"],["formArrayName","values"],["class","row mb-2",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-info",3,"click"],[1,"mdi","mdi-plus","font-size-16"],[1,"d-flex","flex-wrap","gap-3","mt-2","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],[1,"row","mb-2"],[1,"col-11"],["type","text","placeholder","Enter value",1,"form-control",3,"formControl","id"],[1,"col-1","d-flex","align-items-center","justify-content-center"],["href","javascript: void(0);"],[1,"bx","bx-x-circle","text-danger","font-size-20",3,"click"]],template:function(f,P){1&f&&(A.YNc(0,U,1,1,"util-progress",0),A.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),A._uU(6,"Create/Update FilterableAttribute"),A.qZA(),A.TgZ(7,"form",6)(8,"div",7)(9,"div",8)(10,"label",9),A._uU(11,"Name"),A.TgZ(12,"em",10),A._uU(13,"*"),A.qZA()(),A._UZ(14,"input",11),A.TgZ(15,"em",12),A._uU(16),A.qZA()(),A.TgZ(17,"div",8)(18,"label",9),A._uU(19,"Code"),A.TgZ(20,"em",10),A._uU(21,"*"),A.qZA()(),A._UZ(22,"input",13),A.TgZ(23,"em",12),A._uU(24),A.qZA()()(),A.TgZ(25,"div",14)(26,"label",9),A._uU(27,"Enter Values"),A.TgZ(28,"em",10),A._uU(29,"*"),A.qZA()(),A._UZ(30,"br"),A.YNc(31,C,6,2,"div",15),A.TgZ(32,"button",16),A.NdJ("click",function(){return P.addValueControl("")}),A._UZ(33,"i",17),A._uU(34," Add "),A.qZA()(),A.TgZ(35,"div",18)(36,"button",19),A.NdJ("click",function(){return P.onCancel()}),A._uU(37," Cancel "),A.qZA(),A.TgZ(38,"button",20),A.NdJ("click",function(){return P.onSubmit()}),A._uU(39," Submit "),A.qZA()()()()()()()),2&f&&(A.Q6J("ngIf",P.loading),A.xp6(1),A.Q6J("@loaded",!P.loading),A.xp6(6),A.Q6J("formGroup",P.filterableAttributeForm),A.xp6(9),A.hij(" ",P.errMsg(P.filterableAttributeForm,"name","minLength","Name should be at least 3 characters!")," "),A.xp6(8),A.hij(" ",P.errMsg(P.filterableAttributeForm,"code","minLength","Code should be at least 3 characters!")," "),A.xp6(7),A.Q6J("ngForOf",P.valuesArrayControls),A.xp6(7),A.Q6J("ngClass",P.filterableAttributeForm.valid?"":"disabled"))},dependencies:[N.mk,N.sg,N.O5,d._Y,d.Fj,d.JJ,d.JL,d.oH,d.sg,d.u,d.CE,S.t]})}return y})()},231:(z,K,o)=>{o.d(K,{I:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:T.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT,delEndpoint:T.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT},x={list:"/admin/filterable-attributes",create:"/admin/filterable-attributes/create",update(g){return null==g?this.create:"/admin/filterable-attributes/"+g+"/update"}}},6501:(z,K,o)=>{o.d(K,{C:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.FILTERABLEATTRIBUTES.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.FILTERABLEATTRIBUTES.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.FILTERABLEATTRIBUTES.CREATE():T.E.FILTERABLEATTRIBUTES.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},2771:(z,K,o)=>{o.d(K,{E:()=>c});var d=o(2495),T=o(553);class c extends d.O{static#e=this.CATEGORIES={CATEGORY_ENDPOINT:T.N.base_url+"/api/v1/categories",CATEGORY_ENDPOINT_V2:T.N.base_url+"/api/v2/categories",CATEGORY_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/categories",CATEGORY_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/categories",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.CATEGORY_ENDPOINT},GET(g){return this.CATEGORY_ENDPOINT+"/"+g},GET_MULTIPLE(g){return this.CATEGORY_ENDPOINT+"/multiple/by-ids?ids="+g.join(",")},UPDATE(g){return this.CATEGORY_ENDPOINT+"/"+g}};static#_=this.ATTRIBUTES={ATTRIBUTE_ENDPOINT:T.N.base_url+"/api/v1/attributes",ATTRIBUTE_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/admin/attributes",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.ATTRIBUTE_ENDPOINT},GET(g){return this.ATTRIBUTE_ENDPOINT+"/"+g},UPDATE(g){return this.ATTRIBUTE_ENDPOINT+"/"+g}};static#t=this.FILTERABLEATTRIBUTES={FILTERABLEATTRIBUTE_ENDPOINT:T.N.base_url+"/api/v1/filterable-attributes",FILTERABLEATTRIBUTE_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/filterable-attributes",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.FILTERABLEATTRIBUTE_ENDPOINT},GET(g){return this.FILTERABLEATTRIBUTE_ENDPOINT+"/"+g},UPDATE(g){return this.FILTERABLEATTRIBUTE_ENDPOINT+"/"+g}};static#i=this.BRANDS={BRAND_ENDPOINT:T.N.base_url+"/api/v1/brands",BRAND_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/brands",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.BRAND_ENDPOINT},GET(g){return this.BRAND_ENDPOINT+"/"+g},UPDATE(g){return this.BRAND_ENDPOINT+"/"+g}};static#n=this.VARIATIONS={VARIATION_ENDPOINT:T.N.base_url+"/api/v1/variations",VARIATION_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/variations",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.VARIATION_ENDPOINT},GET(g){return this.VARIATION_ENDPOINT+"/"+g},UPDATE(g){return this.VARIATION_ENDPOINT+"/"+g}};static#o=this.PRODUCTS={PRODUCT_ENDPOINT:T.N.base_url+"/api/v1/products",PRODUCT_ENDPOINT_V2:T.N.base_url+"/api/v2/products",PRODUCT_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/products",PRODUCT_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/products",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE:g=>g,GET:(g,t)=>g+"/"+t,UPDATE:(g,t)=>g+"/"+t,APPROVE:(g,t,A)=>g+"/"+t+"/approve?approved="+A};static#s=this.PRODUCTSPECIFICATIONS={PRODUCTSPECIFICATION_ENDPOINT:T.N.base_url+"/api/v1/productspecifications",PRODUCTSPECIFICATION_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/productspecifications",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.PRODUCTSPECIFICATION_ENDPOINT},GET(g){return this.PRODUCTSPECIFICATION_ENDPOINT+"/"+g},UPDATE(g){return this.PRODUCTSPECIFICATION_ENDPOINT+"/"+g}};static#r=this.STOCKS={STOCK_ENDPOINT:T.N.base_url+"/api/v1/stocks",STOCK_ENDPOINT_V2:T.N.base_url+"/api/v2/stocks",STOCK_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/stocks",STOCK_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/stocks",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.STOCK_ENDPOINT_V2},GET:(g,t)=>g+"/"+t,GET_BY_SKU:(g,t)=>g+"/by-sku/"+t,UPDATE(g){return this.STOCK_ENDPOINT_V2+"/"+g}};static#l=this.VENDORS={VENDOR_ENDPOINT:T.N.base_url+"/api/v1/vendors",VENDOR_ENDPOINT_V2:T.N.base_url+"/api/v2/vendors",VENDOR_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/vendors",VENDOR_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/vendors",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),MY_VENDORS:(g,t)=>g.concat("/my-vendors").concat(d.O.toParamString(t)),CREATE(){return this.VENDOR_ENDPOINT},GET(g){return this.VENDOR_ENDPOINT_V2+"/"+g},TOGGLE_APPROVAL(g,t){return this.VENDOR_ENDPOINT+"/"+g+"/approve?approved="+t},UPDATE(g){return this.VENDOR_ENDPOINT+"/"+g},SEARCH_CUSTOMERS(g){return this.VENDOR_ENDPOINT_V2+"/my-vendors/search-customers".concat(d.O.toParamString(g))}}}},5326:(z,K,o)=>{o.r(K),o.d(K,{InventoryModule:()=>wn});var d=o(6814),T=o(1662),c=o(2134),x=o(2642),g=o(6542),t=o(1855),A=o(7259),B=o(2771),l=o(5095),e=o(5879),E=o(30),u=o(6945),N=o(8480),S=o(8675),U=o(4120),C=o(5462),b=o(4736),y=o(1836),h=o(6075),M=o(9582),f=o(3383),P=o(2770);function I(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Z(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function V(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function q(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Z,2,0,"h4",16),e.YNc(8,V,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function _e(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function Te(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function Oe(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,43),e.qZA())}function me(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function ge(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"a",48),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",49),e.qZA()()}}function Ne(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"app-delete",50),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Ae(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,me,2,1,"td",7),e.TgZ(4,"td"),e._UZ(5,"img",44),e.qZA(),e.TgZ(6,"td")(7,"a",45),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e._uU(8),e.qZA()(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.YNc(21,ge,3,0,"td",46),e.YNc(22,Ne,2,1,"td",46),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(2),e.s9C("src",_.image,e.LSH),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.parent_name),e.xp6(3),e.Oqu(e.lcZ(16,10,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,12,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function $(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,_e,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.YNc(25,Te,2,0,"th",7),e.YNc(26,Oe,2,0,"th",7),e.qZA()(),e.TgZ(27,"tbody"),e.YNc(28,Ae,23,14,"tr",40),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.categories.content)}}function de(i,a){if(1&i&&(e.TgZ(0,"div",68),e._UZ(1,"img",44),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function O(i,a){if(1&i&&(e.TgZ(0,"div",69)(1,"span",70),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function D(i,a){if(1&i&&(e.TgZ(0,"h6",71),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function v(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("Parent: ",_.parent_name,"")}}function p(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e.SDv(2,74),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function R(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,75),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function L(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",76)(1,"a",45),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",77),e.qZA()()}}function J(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",76)(1,"app-delete",78),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Q(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",52)(1,"div",53),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e.TgZ(2,"div",28),e.YNc(3,de,2,1,"div",54),e.YNc(4,O,3,1,"div",55),e.TgZ(5,"h5",56)(6,"a",57),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e._uU(7),e.qZA()(),e.YNc(8,D,2,1,"h6",58),e.YNc(9,v,2,1,"h6",59),e.TgZ(10,"div",0)(11,"div",60)(12,"p",61)(13,"small")(14,"b"),e.SDv(15,62),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",60)(20,"p",63),e.YNc(21,p,6,3,"small",64),e.YNc(22,R,6,0,"small",64),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA()(),e.TgZ(25,"div",65)(26,"div",66),e.YNc(27,L,3,0,"div",67),e.YNc(28,J,2,2,"div",67),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(1),e.Q6J("ngIf",_.parent_name),e.xp6(8),e.Oqu(e.lcZ(18,11,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(3),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function j(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Q,29,13,"div",51),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.categories.content)}}function pe(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,$,29,6,"div",25),e.YNc(2,j,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let Ee=(()=>{class i extends l.e{componentName(){return"CategoryListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.categoryService=F,this.notifier=w,this.config=x.o,this.categories=g.H,r.isAdmin()&&(this.config.endpoint=B.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN,this.config.endpointV2=B.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN_V2,this.config.showDeleteButton=!0,this.config.showUpdateButton=!0)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_),s=_.parent_id?parseInt(_.parent_id):null;this.fetchCategories({q:n.query,parent_id:s,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return this.breadcrumbItems}fetchCategories(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCT_CATEGORIES.SEARCH(_));this.categoryService.search(n,this.config.endpointV2,_),this.subscribe(n,null,(s,r)=>{this.categories=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}getMultipleByIds(_){this.loading=!0;const n=this.componentKey(A.Z.CATEGORIES.GET_MULTIPLE(_));this.categoryService.fetchMultiple(n,_),this.subscribe(n,null,(s,r)=>{let Y=[{text:"Categories",link:x.n.list,active:!1}];r.data.map(F=>{Y.push({text:F.name,link:x.n.getChildren(F.id),active:!1})}),this.breadcrumbItems=Y,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Category is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:x.n.create,update:_=>x.n.update(_),params:{}}}getUpsertComponent(){return c.I}onCategoryClick(_){this.navigateByUrl(x.n.getChildren(_.id),n=>{this.getMultipleByIds(_.absolute_path.split(":").map(s=>parseInt(s)))})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(U.H),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-category-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W;return _="\u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09A5\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE \u0995\u09B0\u09C1\u09A8..",n="\u0995\u09CB\u09A8 \u0986\u0987\u099F\u09C7\u09AE \u09A8\u09C7\u0987",s="\u0986\u09AE\u09BE\u09B0 \u09A4\u09C8\u09B0\u09BF\u0995\u09C3\u09A4 \u0995\u09CD\u09AF\u09BE\u099F\u09C7\u0997\u09B0\u09BF\u0997\u09C1\u09B2\u09CB",r="Id",m="\u099B\u09AC\u09BF",Y="\u09A8\u09BE\u09AE",F="\u09AC\u09BF\u09AC\u09B0\u09A3",w="\u09AA\u09CD\u09AF\u09BE\u09B0\u09C7\u09A8\u09CD\u099F",oe="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",se="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",re="\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",le="\u0986\u09AA\u09A1\u09C7\u099F",ae="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",ce="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",X="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",W="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,[4,"ngFor","ngForOf"],re,le,ae,["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center",3,"click"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],["class","font-size-10 text-primary",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ce,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-10","text-info"],[1,"font-size-10","text-primary"],[1,"font-size-10"],X,W,[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,I,1,1,"util-progress",5),e.YNc(8,q,13,2,"div",6),e.YNc(9,pe,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Categories)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.categories.empty),e.xp6(1),e.Q6J("ngIf",!s.categories.empty),e.xp6(1),e.Q6J("page",s.categories))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})();var k=o(9538),ue=o(2159),Se=o(6405);let ne={defaultLayout:Se.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT,delEndpoint:B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT},Re={list:"/admin/attributes",create:"/admin/attributes/create",update(i){return null==i?this.create:"/admin/attributes/"+i+"/update"}};var G=o(6223),Ce=o(9870),fe=o(7700),H=o(1547),Ye=o(9862);let Ve=(()=>{class i extends H.b{constructor(_,n,s,r){super(_,n),this.http=s,this.eventBusService=r}search(_,n,s){let r=B.E.ATTRIBUTES.SEARCH(n,s);this.http.get(r).subscribe(m=>{this.eventBusService.publish(_,m)},m=>{this.handleError(m,Y=>{this.search(_,n,s)},Y=>{this.eventBusService.publish(this.getErrorKey(_),Y)})})}fetchSingle(_,n){this.http.get(B.E.ATTRIBUTES.GET(n)).subscribe(s=>{this.eventBusService.publish(_,s)},s=>{this.handleError(s,r=>{this.fetchSingle(_,n)},r=>{this.eventBusService.publish(this.getErrorKey(_),r)})})}upsert(_,n,s){let r=null==s?B.E.ATTRIBUTES.CREATE():B.E.ATTRIBUTES.UPDATE(s);(null==s?this.http.post(r,n):this.http.patch(r,n)).subscribe(Y=>{this.eventBusService.publish(_,Y)},Y=>{this.handleError(Y,F=>{this.upsert(_,n,s)},F=>{this.eventBusService.publish(this.getErrorKey(_),F)})})}static#e=this.\u0275fac=function(n){return new(n||i)(e.LFG(N.e),e.LFG(C.l),e.LFG(Ye.eN),e.LFG(E.Y))};static#_=this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Qe(i,a){1&i&&e._UZ(0,"util-progress",18),2&i&&e.Q6J("bar",!0)}let Ie=(()=>{class i extends Ce.n{constructor(_,n,s,r,m,Y,F){super(_,n,s,r,F),this.attributeService=m,this.notifier=Y,this.config=ne,this.attributeForm=new G.cw({name:new G.NI("",[G.kI.required,G.kI.minLength(3)]),description:new G.NI("",[G.kI.required,G.kI.minLength(20)]),priority_level:new G.NI(1,[G.kI.min(0),G.kI.max(10)])})}componentName(){return"AttributeUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Attributes",link:"/admin/attributes",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(_){this.loading=!0;let n=this.componentKey(A.Z.ATTRIBUTES.GET(_));this.attributeService.fetchSingle(n,_),this.subscribe(n,null,(s,r)=>{this.loading=!1,this.populateForm(r.data)}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{console.log(r.data),this.loading=!1})}onSubmit(){this.attributeForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return Re.list}upsert(_){this.loading=!0;let n=this.componentKey(A.Z.ATTRIBUTES.UPSERT(_));this.attributeService.upsert(n,this.attributeForm.value,_),this.subscribe(n,null,(s,r)=>{this.loading=!1;let m="Attribute has been "+(_?"updated":"created");this.notifier.success("Success",m),this.attributeForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(r.data):this.navigate(Re.list,Y=>{this.notifier.success("Success!",m)})}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{let m=r.data;this.loading=!1,this.notifier.warning("Failed!",m.error.message)})}populateForm(_){this.attributeForm.controls.name.setValue(_.name),this.attributeForm.controls.description.setValue(_.description),this.attributeForm.controls.priority_level.setValue(_.priority_level)}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(T.gz),e.Y36(Ve),e.Y36(C.l),e.Y36(fe.WI))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute-upsert"]],features:[e.qOj],decls:33,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],[1,"error"],["type","text","id","title-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],["for","description",1,"form-label"],["id","description","placeholder","Enter Description","rows","5","name","description","formControlName","description",1,"form-control"],["type","number","id","priority_level","placeholder","Priority Level","name","priority_level","formControlName","priority_level",1,"form-control"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(n,s){1&n&&(e.YNc(0,Qe,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update Attribute"),e.qZA(),e.TgZ(7,"form",6)(8,"div",7)(9,"label",8),e._uU(10,"Name"),e.TgZ(11,"em",9),e._uU(12,"*"),e.qZA()(),e._UZ(13,"input",10),e.TgZ(14,"em",11),e._uU(15),e.qZA()(),e.TgZ(16,"div",7)(17,"label",12),e._uU(18,"Description"),e.qZA(),e._UZ(19,"textarea",13),e.TgZ(20,"em",11),e._uU(21),e.qZA()(),e.TgZ(22,"div",7)(23,"label",12),e._uU(24,"Priority Level"),e.qZA(),e._UZ(25,"input",14),e.TgZ(26,"em",11),e._uU(27),e.qZA()(),e.TgZ(28,"div",15)(29,"button",16),e.NdJ("click",function(){return s.onCancel()}),e._uU(30," Cancel "),e.qZA(),e.TgZ(31,"button",17),e.NdJ("click",function(){return s.onSubmit()}),e._uU(32," Submit "),e.qZA()()()()()()()),2&n&&(e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("@loaded",!s.loading),e.xp6(6),e.Q6J("formGroup",s.attributeForm),e.xp6(8),e.hij(" ",s.errMsg(s.attributeForm,"name","minLength","Title should be at least 4 characters!")," "),e.xp6(6),e.hij(" ",s.errMsg(s.attributeForm,"description","minLength","Description should be at least 20 characters!")," "),e.xp6(6),e.hij(" ",s.errMsg(s.attributeForm,"priority_level","min","Priority must be between 0 to 10")," "),e.xp6(4),e.Q6J("ngClass",s.attributeForm.valid?"":"disabled"))},dependencies:[d.mk,d.O5,G._Y,G.Fj,G.wV,G.JJ,G.JL,G.sg,G.u,b.t]})}return i})();function we(i,a){1&i&&e._UZ(0,"util-progress",8),2&i&&e.Q6J("bar",!0)}function ke(i,a){1&i&&(e.TgZ(0,"h4",20),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function ze(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"No items"),e.qZA())}function Xe(i,a){if(1&i&&(e.TgZ(0,"div",9)(1,"div",10)(2,"div",0)(3,"div",11)(4,"div",12)(5,"h1",13),e._UZ(6,"i",14),e.qZA(),e.YNc(7,ke,2,0,"h4",15),e.YNc(8,ze,2,0,"h4",16),e.qZA()()(),e.TgZ(9,"div",17)(10,"div",18)(11,"div"),e._UZ(12,"img",19),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function We(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function je(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function He(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function e_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",32)(1,"app-delete",36),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function __(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,He,2,1,"td",7),e.TgZ(4,"td")(5,"a",31),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.TgZ(19,"td",32)(20,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(21,"i",34),e.qZA()(),e.YNc(22,e_,2,1,"td",35),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.priority_level),e.xp6(3),e.Oqu(e.lcZ(14,8,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function t_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"Attributes that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,We,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Name"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Description"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Priority Level"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Created At"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Last Updated"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Update"),e.qZA(),e.YNc(25,je,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,__,23,12,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.attributes.content)}}function i_(i,a){if(1&i&&(e.TgZ(0,"h6",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function n_(i,a){if(1&i&&(e.TgZ(0,"small",57)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function o_(i,a){1&i&&(e.TgZ(0,"small",57),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function s_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",53)(1,"app-delete",58),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function r_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",38)(1,"div",39)(2,"div",26)(3,"div",40)(4,"span",41),e._uU(5),e.qZA()(),e.TgZ(6,"h5",42)(7,"a",43),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,i_,2,1,"h6",44),e.TgZ(10,"div",0)(11,"div",45)(12,"p",46)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",45)(20,"p",47),e.YNc(21,n_,6,3,"small",48),e.YNc(22,o_,6,0,"small",48),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",49)(27,"label",50),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",51)(30,"div",52)(31,"div",53)(32,"a",31),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(33,"i",54),e.qZA()(),e.YNc(34,s_,2,2,"div",55),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(4),e.Oqu(_.priority_level),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function l_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,r_,35,11,"div",37),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.attributes.content)}}function a_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,t_,28,5,"div",22),e.YNc(2,l_,2,3,"div",22),e._UZ(3,"app-pagination",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID),e.xp6(1),e.Q6J("page",_.attributes)}}let c_=(()=>{class i extends ue.R{componentName(){return"AttributeListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.attributeService=F,this.notifier=w,this.config=ne,this.attributes=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchAttributes({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Attributes",link:null,active:!0}]}fetchAttributes(_){this.loading=!0;const n=this.componentKey(A.Z.ATTRIBUTES.SEARCH(_));this.attributeService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.attributes=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Attribute is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Re.create,update:_=>Re.update(_),params:{}}}getUpsertComponent(){return Ie}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Ve),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute-list"]],features:[e.qOj],decls:10,vars:6,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[3,"page"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,we,1,1,"util-progress",5),e.YNc(8,Xe,13,2,"div",6),e.YNc(9,a_,4,3,"div",7)),2&n&&(e.xp6(2),e.Q6J("title","Attributes")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.attributes.empty),e.xp6(1),e.Q6J("ngIf",!s.attributes.empty))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),d_=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-attribute-list")},dependencies:[c_]})}return i})();var ve=o(231),Me=o(4381),u_=o(6501);function E_(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function T_(i,a){1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.TgZ(7,"h4",16),e._uU(8,"No items"),e.qZA()()()(),e.TgZ(9,"div",17)(10,"div",18)(11,"div"),e._UZ(12,"img",19),e.qZA()()()()())}function p_(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function N_(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function S_(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function O_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",29)(1,"app-delete",33),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function m_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,S_,2,1,"td",7),e.TgZ(4,"td")(5,"a",28),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.TgZ(19,"td",29)(20,"a",30),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(21,"i",31),e.qZA()(),e.YNc(22,O_,2,1,"td",32),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.code),e.xp6(2),e.Oqu(_.values.join(", ")),e.xp6(3),e.Oqu(e.lcZ(14,8,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function g_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",21)(2,"div",22)(3,"div",23)(4,"p",24),e._uU(5,"FilterableAttributes that I've created"),e.qZA(),e.TgZ(6,"div",25)(7,"table",26)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,p_,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Name"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Description"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Values"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Created At"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Last Updated"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Update"),e.qZA(),e.YNc(25,N_,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,m_,23,12,"tr",27),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.filterableAttributes.content)}}function A_(i,a){if(1&i&&(e.TgZ(0,"h6",53),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function R_(i,a){if(1&i&&(e.TgZ(0,"small",54)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function C_(i,a){1&i&&(e.TgZ(0,"small",54),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function f_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",50)(1,"app-delete",55),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function P_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",35)(1,"div",36)(2,"div",23)(3,"div",37)(4,"span",38),e._uU(5),e.qZA()(),e.TgZ(6,"h5",39)(7,"a",40),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,A_,2,1,"h6",41),e.TgZ(10,"div",0)(11,"div",42)(12,"p",43)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",42)(20,"p",44),e.YNc(21,R_,6,3,"small",45),e.YNc(22,C_,6,0,"small",45),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",46)(27,"label",47),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",48)(30,"div",49)(31,"div",50)(32,"a",28),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(33,"i",51),e.qZA()(),e.YNc(34,f_,2,2,"div",52),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",_.values.join(", ")," "),e.xp6(4),e.Oqu(_.code),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function I_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,P_,35,11,"div",34),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.filterableAttributes.content)}}function v_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,g_,28,5,"div",20),e.YNc(2,I_,2,3,"div",20),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let M_=(()=>{class i extends ue.R{componentName(){return"FilterableAttributeListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.filterableAttributeService=F,this.notifier=w,this.config=ve.I,this.filterableAttributes=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchFilterableAttributes({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"FilterableAttributes",link:null,active:!0}]}fetchFilterableAttributes(_){this.loading=!0;const n=this.componentKey(A.Z.FILTERABLEATTRIBUTES.SEARCH(_));this.filterableAttributeService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.filterableAttributes=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","FilterableAttribute is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:ve.n.create,update:_=>ve.n.update(_),params:{}}}getUpsertComponent(){return Me.V}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(u_.C),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-filterableattribute-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],[1,"text-uppercase"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,E_,1,1,"util-progress",5),e.YNc(8,T_,13,0,"div",6),e.YNc(9,v_,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","FilterableAttributes")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.filterableAttributes.empty),e.xp6(1),e.Q6J("ngIf",!s.filterableAttributes.empty),e.xp6(1),e.Q6J("page",s.filterableAttributes))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),D_=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-filterableattribute"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-filterableattribute-list")},dependencies:[M_]})}return i})();var De=o(1470),he=o(9107),h_=o(7210);function U_(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function b_(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function L_(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function Z_(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,b_,2,0,"h4",16),e.YNc(8,L_,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function x_(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function B_(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function y_(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function K_(i,a){if(1&i&&(e.TgZ(0,"span",51),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Y_(i,a){if(1&i&&e._UZ(0,"img",52),2&i){const _=e.oxw().$implicit;e.s9C("src",_.image,e.LSH)}}function V_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"app-delete",53),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function F_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,y_,2,1,"td",7),e.TgZ(4,"td")(5,"div",43),e.YNc(6,K_,2,1,"span",44),e.YNc(7,Y_,1,1,"img",45),e.qZA()(),e.TgZ(8,"td")(9,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.TgZ(21,"td",47)(22,"a",48),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(23,"i",49),e.qZA()(),e.YNc(24,V_,2,1,"td",50),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null==_.image),e.xp6(1),e.Q6J("ngIf",null!=_.image),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(n.StringUtil.takeOnly(_.description,50)),e.xp6(3),e.Oqu(e.lcZ(16,9,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,11,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function $_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,x_,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.YNc(25,B_,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,F_,25,13,"tr",40),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.brands.content)}}function G_(i,a){if(1&i&&(e.TgZ(0,"div",70),e._UZ(1,"img",52),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function q_(i,a){if(1&i&&(e.TgZ(0,"div",71)(1,"span",51),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function J_(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function Q_(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e.SDv(2,74),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function w_(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function k_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",75)(1,"a",46),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",76),e.qZA()()}}function z_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",75)(1,"app-delete",77),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function X_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",55)(1,"div",56)(2,"div",28),e.YNc(3,G_,2,1,"div",57),e.YNc(4,q_,3,1,"div",58),e.TgZ(5,"h5",59)(6,"a",60),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,J_,2,1,"h6",61),e.TgZ(9,"div",0)(10,"div",62)(11,"p",63)(12,"small")(13,"b"),e.SDv(14,64),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",62)(19,"p",65),e.YNc(20,Q_,6,3,"small",66),e.YNc(21,w_,6,0,"small",66),e.qZA()()(),e.TgZ(22,"p"),e._uU(23),e.qZA()(),e.TgZ(24,"div",67)(25,"div",68),e.YNc(26,k_,3,0,"div",69),e.YNc(27,z_,2,2,"div",69),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(3),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function W_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,X_,28,12,"div",54),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.brands.content)}}function j_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,$_,28,5,"div",25),e.YNc(2,W_,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let H_=(()=>{class i extends ue.R{componentName(){return"BrandListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.brandService=F,this.notifier=w,this.config=De.j,this.brands=g.H,r.isAdmin()&&(this.config.showUpdateButton=!0,this.config.showDeleteButton=!0,this.config.searchEndpoint=B.E.BRANDS.BRAND_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchBrands({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Brands,link:null,active:!0}]}fetchBrands(_){this.loading=!0;const n=this.componentKey(A.Z.BRANDS.SEARCH(_));this.brandService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.brands=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Brand is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:De.n.create,update:_=>De.n.update(_),params:{}}}getUpsertComponent(){return he.l}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(h_.c),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-brand-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce;return _="\u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09A5\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE \u0995\u09B0\u09C1\u09A8..",n="\u0995\u09CB\u09A8 \u0986\u0987\u099F\u09C7\u09AE \u09A8\u09C7\u0987",s="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1 \u09B8\u09AE\u09C2\u09B9",r="Id",m="\u099B\u09AC\u09BF",Y="\u09B6\u09BF\u09B0\u09CB\u09A8\u09BE\u09AE",F="\u09AC\u09BF\u09AC\u09B0\u09A3",w="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",oe="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",se="\u0986\u09AA\u09A1\u09C7\u099F",re="\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",le="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",ae="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",ce="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,[4,"ngFor","ngForOf"],re,le,[1,"avatar-sm","mx-auto"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ae,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ce,[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,U_,1,1,"util-progress",5),e.YNc(8,Z_,13,2,"div",6),e.YNc(9,j_,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Brands)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.brands.empty),e.xp6(1),e.Q6J("ngIf",!s.brands.empty),e.xp6(1),e.Q6J("page",s.brands))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),et=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-brand"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-brand-list")},dependencies:[H_]})}return i})();var Ue=o(4968),be=o(2447),_t=o(3668);function tt(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function it(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function nt(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function ot(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,it,2,0,"h4",16),e.YNc(8,nt,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function st(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,40),e.qZA())}function rt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function lt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function at(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function ct(i,a){if(1&i&&e._UZ(0,"img",48),2&i){const _=e.oxw().$implicit;e.s9C("src",_.image,e.LSH)}}function dt(i,a){if(1&i&&(e.TgZ(0,"span",49),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function ut(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",50)(1,"a",51),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",52),e.qZA()()}}function Et(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",50)(1,"app-delete",53),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Tt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,at,2,1,"td",7),e.TgZ(4,"td")(5,"div",43),e.YNc(6,ct,1,1,"img",44),e.YNc(7,dt,2,1,"span",45),e.qZA()(),e.TgZ(8,"td")(9,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.YNc(21,ut,3,0,"td",47),e.YNc(22,Et,2,1,"td",47),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null!=_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(n.StringUtil.takeOnly(_.description,50)),e.xp6(3),e.Oqu(e.lcZ(16,10,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,12,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function pt(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,st,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.YNc(23,rt,2,0,"th",7),e.YNc(24,lt,2,0,"th",7),e.qZA()(),e.TgZ(25,"tbody"),e.YNc(26,Tt,23,14,"tr",39),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(11),e.Q6J("ngIf",_.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.variations.content)}}function Nt(i,a){if(1&i&&(e.TgZ(0,"div",72),e._UZ(1,"img",48),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function St(i,a){if(1&i&&(e.TgZ(0,"div",73)(1,"span",49),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Ot(i,a){if(1&i&&(e.TgZ(0,"h6",74),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function mt(i,a){if(1&i&&(e.TgZ(0,"small",75)(1,"b"),e.SDv(2,76),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function gt(i,a){1&i&&(e.TgZ(0,"small",75),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,77),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function At(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",69)(1,"app-delete",78),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Rt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",55)(1,"div",56)(2,"div",28),e.YNc(3,Nt,2,1,"div",57),e.YNc(4,St,3,1,"div",58),e.TgZ(5,"h5",59)(6,"a",60),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,Ot,2,1,"h6",61),e.TgZ(9,"div",0)(10,"div",62)(11,"p",63)(12,"small")(13,"b"),e.SDv(14,64),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",62)(19,"p",65),e.YNc(20,mt,6,3,"small",66),e.YNc(21,gt,6,0,"small",66),e.qZA()()(),e.TgZ(22,"p"),e._uU(23),e.qZA()(),e.TgZ(24,"div",67)(25,"div",68)(26,"div",69)(27,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(28,"i",70),e.qZA()(),e.YNc(29,At,2,2,"div",71),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ct(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Rt,30,11,"div",54),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.variations.content)}}function ft(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,pt,27,6,"div",25),e.YNc(2,Ct,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let Pt=(()=>{class i extends ue.R{componentName(){return"VariationListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.variationService=F,this.notifier=w,this.config=Ue._,this.variations=g.H,r.isAdmin()&&(this.config.showUpdateButton=!0,this.config.showDeleteButton=!0,this.config.searchEndpoint=B.E.VARIATIONS.VARIATION_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchVariations({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Variations,link:null,active:!0}]}fetchVariations(_){this.loading=!0;const n=this.componentKey(A.Z.VARIATIONS.SEARCH(_));this.variationService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.variations=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Variation is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Ue.n.create,update:_=>Ue.n.update(_),params:{}}}getUpsertComponent(){return be.s}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(_t.$),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-variation-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X;return _="\u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09A5\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE \u0995\u09B0\u09C1\u09A8..",n="\u0995\u09CB\u09A8 \u0986\u0987\u099F\u09C7\u09AE \u09A8\u09C7\u0987",s="\u09AD\u09BF\u09A8\u09CD\u09A8\u09A4\u09BE \u09AF\u09BE \u0986\u09AE\u09BF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09C7\u099B\u09BF",r="Id",m="\u099B\u09AC\u09BF",Y="\u09A8\u09BE\u09AE",F="\u09AC\u09BF\u09AC\u09B0\u09A3",w="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",oe="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",se="\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",re="\u0986\u09AA\u09A1\u09C7\u099F",le="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",ae="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",ce="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",X="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,[4,"ngFor","ngForOf"],se,re,le,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ae,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ce,X,[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,tt,1,1,"util-progress",5),e.YNc(8,ot,13,2,"div",6),e.YNc(9,ft,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Variations)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.variations.empty),e.xp6(1),e.Q6J("ngIf",!s.variations.empty),e.xp6(1),e.Q6J("page",s.variations))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),It=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-variation"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-variation-list")},dependencies:[Pt]})}return i})();var Le=o(973),Ze=o(3989),vt=o(1492);function Mt(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Dt(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function ht(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function Ut(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Dt,2,0,"h4",16),e.YNc(8,ht,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function bt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,43),e.qZA())}function Lt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,44),e.qZA())}function Zt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,45),e.qZA())}function xt(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.created_by," ")}}function Bt(i,a){if(1&i&&e._UZ(0,"img",56),2&i){const _=e.oxw().$implicit;e.s9C("src",_.images[0],e.LSH)}}function yt(i,a){if(1&i&&(e.TgZ(0,"span",57),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Kt(i,a){1&i&&e._UZ(0,"i",58)}function Yt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"a",61),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(2).$implicit,r=e.oxw(3);return e.KtG(r.onApproveClick(s.id,!s.approved))}),e._UZ(1,"i",62),e.qZA()}}function Vt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"a",63),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(2).$implicit,r=e.oxw(3);return e.KtG(r.onApproveClick(s.id,!s.approved))}),e._UZ(1,"i",62),e.qZA()}}function Ft(i,a){if(1&i&&(e.TgZ(0,"td",53),e.YNc(1,Yt,2,0,"a",59),e.YNc(2,Vt,2,0,"a",60),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",_.approved),e.xp6(1),e.Q6J("ngIf",!_.approved)}}function $t(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",53)(1,"app-delete",64),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Gt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,xt,2,1,"td",7),e.TgZ(4,"td")(5,"div",46),e.YNc(6,Bt,1,1,"img",47),e.YNc(7,yt,2,1,"span",48),e.qZA()(),e.TgZ(8,"td",49),e._uU(9),e.qZA(),e.TgZ(10,"td",49),e.YNc(11,Kt,1,0,"i",50),e.TgZ(12,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(13),e.qZA()(),e.TgZ(14,"td"),e._uU(15),e.qZA(),e.TgZ(16,"td"),e._uU(17),e.qZA(),e.TgZ(18,"td")(19,"small"),e._uU(20),e.ALo(21,"readableDate"),e.qZA()(),e.TgZ(22,"td")(23,"small"),e._uU(24),e.ALo(25,"readableDate"),e.qZA()(),e.YNc(26,Ft,3,2,"td",52),e.TgZ(27,"td",53)(28,"a",54),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(29,"i",55),e.qZA()(),e.YNc(30,$t,2,1,"td",52),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",_.images.length>0),e.xp6(1),e.Q6J("ngIf",0==_.images.length),e.xp6(2),e.Oqu(n.getCategoryNames(_.categories)),e.xp6(2),e.Q6J("ngIf",_.approved),e.xp6(2),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.brand.name),e.xp6(2),e.Oqu(_.weight),e.xp6(3),e.Oqu(e.lcZ(21,14,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(25,16,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showApproveButton),e.xp6(2),e.Q6J("ngClass",_.approved?"btn-outline-warning disabled":""),e.xp6(2),e.Q6J("ngIf",n.config.showDeleteButton&&!_.approved)}}function qt(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,bt,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.TgZ(25,"th"),e.SDv(26,40),e.qZA(),e.YNc(27,Lt,2,0,"th",7),e.TgZ(28,"th"),e.SDv(29,41),e.qZA(),e.YNc(30,Zt,2,0,"th",7),e.qZA()(),e.TgZ(31,"tbody"),e.YNc(32,Gt,31,18,"tr",42),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(15),e.Q6J("ngIf",_.config.showApproveButton),e.xp6(3),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.products.content)}}function Jt(i,a){if(1&i&&(e.TgZ(0,"div",86),e._UZ(1,"img",56),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.images[0],e.LSH)}}function Qt(i,a){if(1&i&&(e.TgZ(0,"div",87)(1,"span",57),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function wt(i,a){if(1&i&&(e.TgZ(0,"h6",88),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function kt(i,a){if(1&i&&(e.TgZ(0,"small",89)(1,"b"),e.SDv(2,90),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function zt(i,a){1&i&&(e.TgZ(0,"small",89),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,91),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function Xt(i,a){if(1&i&&(e.TgZ(0,"label",92),e._uU(1),e.qZA()),2&i){const _=a.$implicit;e.xp6(1),e.hij(" ",_.name," ")}}function Wt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",83)(1,"app-delete",93),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function jt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",66)(1,"div",67)(2,"div",28),e.YNc(3,Jt,2,1,"div",68),e.YNc(4,Qt,3,1,"div",69),e.TgZ(5,"h5",70)(6,"a",71),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,wt,2,1,"h6",72),e.TgZ(9,"h6",73),e._uU(10),e.qZA(),e.TgZ(11,"div",0)(12,"div",74)(13,"p",75)(14,"small")(15,"b"),e.SDv(16,76),e.qZA(),e._UZ(17,"br"),e._uU(18),e.ALo(19,"readableDate"),e.qZA()()(),e.TgZ(20,"div",74)(21,"p",77),e.YNc(22,kt,6,3,"small",78),e.YNc(23,zt,6,0,"small",78),e.qZA()()(),e.TgZ(24,"div")(25,"a",79),e.YNc(26,Xt,2,1,"label",80),e.qZA()()(),e.TgZ(27,"div",81)(28,"div",82)(29,"div",83)(30,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(31,"i",84),e.qZA()(),e.YNc(32,Wt,2,2,"div",85),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.images.length>0),e.xp6(1),e.Q6J("ngIf",0==_.images.length),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(2),e.Oqu(_.brand.name),e.xp6(8),e.Oqu(e.lcZ(19,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(3),e.Q6J("ngForOf",_.categories),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ht(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,jt,33,12,"div",65),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.products.content)}}function ei(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,qt,33,6,"div",25),e.YNc(2,Ht,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let _i=(()=>{class i extends ue.R{componentName(){return"ProductListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.productService=F,this.notifier=w,this.config=Le.C,this.filterData=t.M9,this.products=g.H,r.isAdmin()&&(this.config.showApproveButton=!0,this.config.searchEndpoint=B.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_),this.fetchProducts({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Products,link:null,active:!0}]}getCategoryNames(_){return _.map(n=>n.name).join(", ")}fetchProducts(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCTS_V2.SEARCH(_));this.productService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.products=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Product is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Le.n.create,update:_=>Le.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Ze.A}onApproveClick(_,n){let s=this.componentKey(A.Z.PRODUCTS_V2.APPROVE(_));this.productService.approve(s,this.config.searchEndpoint,_,n),this.subscribe(s,null,(r,m)=>{this.notifier.success("Success","Product is approved"),this.ngOnInit()}),this.subscribe(this.getErrorKey(s),null,(r,m)=>{this.notifier.error("Error",m.data.error.message)})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(vt.M),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W,ee,te;return _="\u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09A5\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE \u0995\u09B0\u09C1\u09A8..",n="\u0995\u09CB\u09A8 \u0986\u0987\u099F\u09C7\u09AE \u09A8\u09C7\u0987",s="\u0986\u09AE\u09BE\u09B0 \u09A4\u09C8\u09B0\u09BF\u0995\u09C3\u09A4 \u09AA\u09A3\u09CD\u09AF\u0997\u09C1\u09B2\u09CB",r="Id",m="\u099B\u09AC\u09BF",Y="\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF",F="\u09B6\u09BF\u09B0\u09CB\u09A8\u09BE\u09AE",w="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1",oe="\u0993\u099C\u09A8",se="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",re="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",le="\u0986\u09AA\u09A1\u09C7\u099F",ae="\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",ce="\u0985\u09A8\u09C1\u09AE\u09CB\u09A6\u09A8",X="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",W="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",ee="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",te="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,re,le,[4,"ngFor","ngForOf"],ae,ce,X,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],[1,"text-wrap"],["class","bx bx-check-circle text-success",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-warning","btn-sm","edit",3,"ngClass","click"],[1,"fas","fa-pencil-alt"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"bx","bx-check-circle","text-success"],["class","btn btn-outline-warning btn-sm edit","title","Edit",3,"click",4,"ngIf"],["class","btn btn-outline-success btn-sm edit","title","Edit",3,"click",4,"ngIf"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-check-circle"],["title","Edit",1,"btn","btn-outline-success","btn-sm","edit",3,"click"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"font-size-10","text-primary"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],W,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-primary font-size-11 m-1",4,"ngFor","ngForOf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ee,te,[1,"badge","bg-primary","font-size-11","m-1"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,Mt,1,1,"util-progress",5),e.YNc(8,Ut,13,2,"div",6),e.YNc(9,ei,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations["All Products"])("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.products.empty),e.xp6(1),e.Q6J("ngIf",!s.products.empty),e.xp6(1),e.Q6J("page",s.products))},dependencies:[d.mk,d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),ti=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-product-list")},dependencies:[_i]})}return i})(),Fe={defaultLayout:Se.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT,delEndpoint:B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT},Pe={list:"/admin/product-specifications",create:"/admin/product-specifications/create",update(i){return null==i?this.create:"/admin/product-specifications/"+i+"/update"}},$e=(()=>{class i extends H.b{constructor(_,n,s,r){super(_,n),this.http=s,this.eventBusService=r}search(_,n,s){let r=B.E.PRODUCTSPECIFICATIONS.SEARCH(n,s);this.http.get(r).subscribe(m=>{this.eventBusService.publish(_,m)},m=>{this.handleError(m,Y=>{this.search(_,n,s)},Y=>{this.eventBusService.publish(this.getErrorKey(_),Y)})})}fetchSingle(_,n){this.http.get(B.E.PRODUCTSPECIFICATIONS.GET(n)).subscribe(s=>{this.eventBusService.publish(_,s)},s=>{this.handleError(s,r=>{this.fetchSingle(_,n)},r=>{this.eventBusService.publish(this.getErrorKey(_),r)})})}upsert(_,n,s){let r=null==s?B.E.PRODUCTSPECIFICATIONS.CREATE():B.E.PRODUCTSPECIFICATIONS.UPDATE(s);(null==s?this.http.post(r,n):this.http.patch(r,n)).subscribe(Y=>{this.eventBusService.publish(_,Y)},Y=>{this.handleError(Y,F=>{this.upsert(_,n,s)},F=>{this.eventBusService.publish(this.getErrorKey(_),F)})})}static#e=this.\u0275fac=function(n){return new(n||i)(e.LFG(N.e),e.LFG(C.l),e.LFG(Ye.eN),e.LFG(E.Y))};static#_=this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ii=o(1426),ni=o(756);function oi(i,a){1&i&&e._UZ(0,"util-progress",15),2&i&&e.Q6J("bar",!0)}function si(i,a){if(1&i&&(e.TgZ(0,"option",19),e._uU(1),e.qZA()),2&i){const _=a.$implicit;e.Q6J("value",_),e.xp6(1),e.hij(" ",_," ")}}function ri(i,a){if(1&i&&(e.TgZ(0,"div",7)(1,"label",16)(2,"small"),e._uU(3,"Value"),e.qZA()(),e.TgZ(4,"select",17),e.YNc(5,si,2,2,"option",18),e.qZA()()),2&i){const _=e.oxw();e.xp6(5),e.Q6J("ngForOf",null==_.selectedAttr?null:_.selectedAttr.values)}}let Ge=(()=>{class i extends Ce.n{constructor(_,n,s,r,m,Y,F){super(_,n,s,r,F),this.productSpecificationService=m,this.notifier=Y,this.config=Fe,this.selectedAttr=null,this.selectedProduct=null,this.specificationForm=new G.cw({product_id:new G.NI(null,[G.kI.required]),filterable_attribute_id:new G.NI(null,[G.kI.required]),value:new G.NI(null,[G.kI.required])})}componentName(){return"ProductSpecificationUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"ProductSpecifications",link:"/admin/productspecifications",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(_){this.loading=!0;let n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.GET(_));this.productSpecificationService.fetchSingle(n,_),this.subscribe(n,null,(s,r)=>{this.loading=!1,this.populateForm(r.data)}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{console.log(r.data),this.loading=!1})}onSubmit(){this.specificationForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return Pe.list}upsert(_){this.loading=!0;let n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.UPSERT(_));this.productSpecificationService.upsert(n,this.specificationForm.value,_),this.subscribe(n,null,(s,r)=>{this.loading=!1;let m="ProductSpecification has been "+(_?"updated":"created");this.notifier.success("Success",m),this.specificationForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(r.data):this.navigate(Pe.list,Y=>{this.notifier.success("Success!",m)})}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{let m=r.data;this.loading=!1,this.notifier.warning("Failed!",m.error.message)})}populateForm(_){this.selectedAttr=_.filterable_attribute,this.specificationForm.controls.product_id.setValue(_.product_id),this.specificationForm.controls.filterable_attribute_id.setValue(_.filterable_attribute_id),this.specificationForm.controls.value.setValue(_.value)}onAttrSelected(_){this.selectedAttr=_,this.specificationForm.controls.filterable_attribute_id.setValue(null==_?.id?null:_.id)}onProductSelected(_){this.selectedProduct=_,this.specificationForm.controls.product_id.setValue(null==_?.id?null:_.id)}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(T.gz),e.Y36($e),e.Y36(C.l),e.Y36(fe.WI))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-productspecification-upsert"]],features:[e.qOj],decls:24,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","spec-key"],[3,"selectedItem","selected"],["id","spec-key",3,"selectedItem","selected"],["class","mb-3",4,"ngIf"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],["for","spec-value"],["id","spec-value","aria-label","Value","formControlName","value",1,"form-select"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,s){1&n&&(e.YNc(0,oi,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update ProductSpecification"),e.qZA(),e.TgZ(7,"form",6)(8,"div",7)(9,"label",8)(10,"small"),e._uU(11,"Select Product"),e.qZA()(),e.TgZ(12,"app-product-select",9),e.NdJ("selected",function(m){return s.onProductSelected(m)}),e.qZA()(),e.TgZ(13,"div",7)(14,"label",8)(15,"small"),e._uU(16,"Attribute/Key"),e.qZA()(),e.TgZ(17,"app-fa-select",10),e.NdJ("selected",function(m){return s.onAttrSelected(m)}),e.qZA()(),e.YNc(18,ri,6,1,"div",11),e.TgZ(19,"div",12)(20,"button",13),e.NdJ("click",function(){return s.onCancel()}),e._uU(21," Cancel "),e.qZA(),e.TgZ(22,"button",14),e.NdJ("click",function(){return s.onSubmit()}),e._uU(23," Submit "),e.qZA()()()()()()()),2&n&&(e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("@loaded",!s.loading),e.xp6(6),e.Q6J("formGroup",s.specificationForm),e.xp6(5),e.Q6J("selectedItem",s.selectedProduct),e.xp6(5),e.Q6J("selectedItem",s.selectedAttr),e.xp6(1),e.Q6J("ngIf",null!=s.selectedAttr),e.xp6(4),e.Q6J("ngClass",s.specificationForm.valid?"":"disabled"))},dependencies:[d.mk,d.sg,d.O5,G._Y,G.YN,G.Kr,G.EJ,G.JJ,G.JL,G.sg,G.u,b.t,ii.q,ni.t]})}return i})();function li(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function ai(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function ci(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function di(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,ai,2,0,"h4",16),e.YNc(8,ci,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function ui(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function Ei(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function Ti(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function pi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",34)(1,"app-delete",38),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Ni(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,Ti,2,1,"td",7),e.TgZ(4,"td")(5,"div",31)(6,"span",32),e._uU(7),e.qZA()()(),e.TgZ(8,"td")(9,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.TgZ(15,"td"),e._uU(16),e.qZA(),e.TgZ(17,"td"),e._uU(18),e.qZA(),e.TgZ(19,"td")(20,"small"),e._uU(21),e.ALo(22,"readableDate"),e.qZA()(),e.TgZ(23,"td")(24,"small"),e._uU(25),e.ALo(26,"readableDate"),e.qZA()(),e.TgZ(27,"td",34)(28,"a",35),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(29,"i",36),e.qZA()(),e.YNc(30,pi,2,1,"td",37),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(4),e.hij(" ",_.filterable_attribute.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.product_id," "),e.xp6(2),e.Oqu(_.filterable_attribute.name),e.xp6(2),e.Oqu(_.filterable_attribute.code),e.xp6(2),e.Oqu(_.filterable_attribute.values.join(",")),e.xp6(2),e.Oqu(_.value),e.xp6(3),e.Oqu(e.lcZ(22,11,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(26,13,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function Si(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"ProductSpecifications that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,ui,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Image"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Product ID"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Attribute"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Attribute Code"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Attribute Values"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Spec. Value"),e.qZA(),e.TgZ(25,"th"),e._uU(26,"Created At"),e.qZA(),e.TgZ(27,"th"),e._uU(28,"Last Updated"),e.qZA(),e.TgZ(29,"th"),e._uU(30,"Update"),e.qZA(),e.YNc(31,Ei,2,0,"th",7),e.qZA()(),e.TgZ(32,"tbody"),e.YNc(33,Ni,31,15,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(19),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.productSpecifications.content)}}function Oi(i,a){if(1&i&&(e.TgZ(0,"h6",59),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function mi(i,a){if(1&i&&(e.TgZ(0,"small",60)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function gi(i,a){1&i&&(e.TgZ(0,"small",60),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function Ai(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",54)(1,"app-delete",61),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}const Ri=function(i){return["/admin/inventory/products",i,"update"]};function Ci(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",40)(1,"div",41)(2,"div",26)(3,"div",42)(4,"span",32),e._uU(5),e.qZA()(),e.TgZ(6,"h5",43)(7,"a",44),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,Oi,2,1,"h6",45),e.TgZ(10,"div",0)(11,"div",46)(12,"p",47)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",46)(20,"p",48),e.YNc(21,mi,6,3,"small",49),e.YNc(22,gi,6,0,"small",49),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",50)(27,"label",51),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",52)(30,"div",53)(31,"div",54)(32,"a",55),e._UZ(33,"i",56),e.qZA()(),e.TgZ(34,"div",54)(35,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(36,"i",57),e.qZA()(),e.YNc(37,Ai,2,2,"div",58),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.filterable_attribute.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.filterable_attribute.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",_.filterable_attribute.values.join(",")," "),e.xp6(4),e.hij(" ",_.value," "),e.xp6(4),e.Q6J("routerLink",e.VKq(12,Ri,_.product_id)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function fi(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Ci,38,14,"div",39),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.productSpecifications.content)}}function Pi(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Si,34,5,"div",23),e.YNc(2,fi,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let qe=(()=>{class i extends ue.R{componentName(){return"ProductSpecificationListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.productSpecificationService=F,this.notifier=w,this.config=Fe,this.productSpecifications=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchProductSpecifications({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"ProductSpecifications",link:null,active:!0}]}fetchProductSpecifications(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.SEARCH(_));this.productSpecificationService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.productSpecifications=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","ProductSpecification is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Pe.create,update:_=>Pe.update(_),params:{}}}getUpsertComponent(){return Ge}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36($e),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-productspecification-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-primary","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],["href","javascript: void(0);",3,"routerLink"],[1,"bx","bxl-product-hunt","text-primary"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,li,1,1,"util-progress",5),e.YNc(8,di,13,2,"div",6),e.YNc(9,Pi,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","ProductSpecifications")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.productSpecifications.empty),e.xp6(1),e.Q6J("ngIf",!s.productSpecifications.empty),e.xp6(1),e.Q6J("page",s.productSpecifications))},dependencies:[d.sg,d.O5,T.rH,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),Ii=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product-specification"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-productspecification-list")},dependencies:[qe]})}return i})();var xe=o(337),Be=o(9876),vi=o(8174),Mi=o(52),Di=o(5789),Je=o(7405);function hi(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Ui(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function bi(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function Li(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Ui,2,0,"h4",16),e.YNc(8,bi,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function Zi(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,47),e.qZA())}function xi(i,a){if(1&i&&e._UZ(0,"img",67),2&i){const _=e.oxw().$implicit;e.s9C("src",_.product.images[0],e.LSH)}}function Bi(i,a){if(1&i&&(e.TgZ(0,"span",68),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.product.name.substring(0,1).toUpperCase()," ")}}function yi(i,a){if(1&i&&(e.TgZ(0,"span"),e._uU(1," | "),e.TgZ(2,"strong"),e._uU(3),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(3),e.Oqu(_.variation.name)}}function Ki(i,a){if(1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"i"),e._uU(3),e.ALo(4,"readableDate"),e.qZA()()),2&i){const _=e.oxw(2).$implicit;e.xp6(3),e.hij("Until: ",e.lcZ(4,1,_.discount_valid_until),"")}}function Yi(i,a){if(1&i&&(e.TgZ(0,"div")(1,"small",21),e._uU(2),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"strong",69)(5,"strong",61),e.SDv(6,70),e.qZA(),e._uU(7),e.ALo(8,"number"),e.qZA(),e.TgZ(9,"sub",71),e._uU(10),e.ALo(11,"number"),e.qZA(),e.YNc(12,Ki,5,3,"small",72),e.qZA()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(2),e.hij("- ",_.discount_percentage,"%"),e.xp6(5),e.hij(" ",e.xi3(8,4,n.getDiscountedRetailPrice(_),"1.2-2"),"\xa0\xa0 "),e.xp6(3),e.hij("",e.xi3(11,7,_.retail_price,"1.2-2")," "),e.xp6(2),e.Q6J("ngIf",_.discount_valid_until)}}function Vi(i,a){if(1&i&&(e.TgZ(0,"span",60)(1,"strong"),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.Oqu(e.xi3(3,1,_.retail_price,"1.2-2"))}}function Fi(i,a){if(1&i&&(e.TgZ(0,"span",74)(1,"strong",61),e.SDv(2,75),e.qZA(),e.TgZ(3,"strong"),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(4),e.Oqu(e.xi3(5,1,n.getDiscountedRetailPrice(_)-_.avg_unit_price,"1.2-2"))}}function $i(i,a){if(1&i&&(e.TgZ(0,"span",76)(1,"strong",61),e.SDv(2,77),e.qZA(),e.TgZ(3,"strong"),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(4),e.Oqu(e.xi3(5,1,n.getDiscountedRetailPrice(_)-_.avg_unit_price,"1.2-2"))}}function Gi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",78)(1,"app-delete",79),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function qi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td")(4,"div",48),e.YNc(5,xi,1,1,"img",49),e.YNc(6,Bi,2,1,"span",50),e.qZA()(),e.TgZ(7,"td")(8,"small"),e._uU(9),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCopyClick(r.sku))}),e.TgZ(12,"span"),e.SDv(13,52),e.qZA()()(),e.TgZ(14,"td",53),e._uU(15),e.YNc(16,yi,4,1,"span",7),e._UZ(17,"br"),e.TgZ(18,"span",54),e._uU(19),e.qZA(),e._UZ(20,"br"),e.TgZ(21,"span",55),e._uU(22),e.qZA()(),e.TgZ(23,"td",56)(24,"button",57),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e.TgZ(25,"span",58)(26,"strong"),e._uU(27),e.qZA()(),e._UZ(28,"i",59),e.qZA()(),e.TgZ(29,"td")(30,"span",60)(31,"strong",61),e.SDv(32,62),e.qZA(),e.TgZ(33,"strong"),e._uU(34),e.ALo(35,"number"),e.qZA()()(),e.TgZ(36,"td"),e.YNc(37,Yi,13,10,"div",7),e.YNc(38,Vi,4,4,"span",63),e.qZA(),e.TgZ(39,"td"),e.YNc(40,Fi,6,4,"span",64),e.YNc(41,$i,6,4,"span",65),e.qZA(),e.TgZ(42,"td")(43,"small"),e._uU(44),e.ALo(45,"readableDate"),e.qZA()(),e.YNc(46,Gi,2,1,"td",66),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(3),e.Q6J("ngIf",_.product.images.length>0),e.xp6(1),e.Q6J("ngIf",0===_.product.images.length),e.xp6(3),e.Oqu(_.sku),e.xp6(6),e.hij(" ",_.product.name," "),e.xp6(1),e.Q6J("ngIf",_.variation),e.xp6(3),e.Oqu(_.brand.name),e.xp6(3),e.hij(" ",n.categoriesToString(_.product.categories)," "),e.xp6(3),e.Q6J("ngClass",_.quantity>0?"text-success":"text-danger"),e.xp6(2),e.Oqu(_.quantity),e.xp6(7),e.Oqu(e.xi3(35,17,_.avg_unit_price,"1.2-2")),e.xp6(3),e.Q6J("ngIf",n.getDiscount(_)>0),e.xp6(1),e.Q6J("ngIf",n.getDiscount(_)<=0),e.xp6(2),e.Q6J("ngIf",_.retail_price<_.avg_unit_price),e.xp6(1),e.Q6J("ngIf",_.retail_price>=_.avg_unit_price),e.xp6(3),e.Oqu(e.lcZ(45,20,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showDeleteButton)}}const Ji=function(){return["/admin/sales/orders"]},Qi=function(){return["/admin/sales/orders/create"]};function wi(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"div",27)(5,"button",28),e._UZ(6,"i",29),e.TgZ(7,"span"),e.SDv(8,30),e.qZA()(),e.TgZ(9,"button",31),e._UZ(10,"i",32),e.TgZ(11,"span"),e.SDv(12,33),e.qZA()()(),e.TgZ(13,"p",34),e._uU(14,"Stocks that I've created"),e.qZA(),e.TgZ(15,"div",35)(16,"table",36)(17,"thead")(18,"tr")(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.TgZ(25,"th"),e.SDv(26,40),e.qZA(),e.TgZ(27,"th"),e.SDv(28,41),e.qZA(),e.TgZ(29,"th"),e.SDv(30,42),e.qZA(),e.TgZ(31,"th"),e.SDv(32,43),e.qZA(),e.TgZ(33,"th"),e.tHW(34,44),e._UZ(35,"br"),e.N_p(),e.qZA(),e.TgZ(36,"th"),e.SDv(37,45),e.qZA(),e.YNc(38,Zi,2,0,"th",7),e.qZA()(),e.TgZ(39,"tbody"),e.YNc(40,qi,47,22,"tr",46),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(5),e.Q6J("routerLink",e.DdM(6,Ji)),e.xp6(4),e.Q6J("routerLink",e.DdM(7,Qi)),e.xp6(29),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.stocks.content)}}function ki(i,a){if(1&i&&(e.TgZ(0,"div",100),e._UZ(1,"img",67),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.product.images[0],e.LSH)}}function zi(i,a){if(1&i&&(e.TgZ(0,"div",101)(1,"span",68),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.product.name.substring(0,1).toUpperCase()," ")}}function Xi(i,a){if(1&i&&(e.TgZ(0,"small",102)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function Wi(i,a){1&i&&(e.TgZ(0,"small",102),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function ji(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",96)(1,"app-delete",103),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Hi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",81)(1,"div",82)(2,"div",26),e.YNc(3,ki,2,1,"div",83),e.YNc(4,zi,3,1,"div",84),e.TgZ(5,"h5",85)(6,"a",86),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.TgZ(8,"h6",87),e._uU(9),e.qZA(),e.TgZ(10,"div",0)(11,"div",88)(12,"p",89)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",88)(20,"p",90),e.YNc(21,Xi,6,3,"small",91),e.YNc(22,Wi,6,0,"small",91),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",92)(27,"label",93),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",94)(30,"div",95)(31,"div",96)(32,"a",97),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(3);return e.KtG(s.onUpsertClick(null))}),e._UZ(33,"i",98),e.qZA()(),e.YNc(34,ji,2,2,"div",99),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.product.images.length>0),e.xp6(1),e.Q6J("ngIf",0===_.product.images.length),e.xp6(3),e.hij(" ",_.product.name,""),e.xp6(2),e.hij(" ",_.brand.name," "),e.xp6(8),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.categoriesToString(_.product.categories)," "),e.xp6(4),e.Oqu(_.quantity),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function en(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Hi,35,12,"div",80),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.stocks.content)}}function _n(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,wi,41,8,"div",23),e.YNc(2,en,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let tn=(()=>{class i extends Mi.F{componentName(){return"StockListComponent"}constructor(_,n,s,r,m,Y,F,w,oe,se){super(_,n,s,m),this.activatedRoute=Y,this.stockService=F,this.vendorService=w,this.notifier=oe,this.locale=se,this.config=xe.u,this.filterData=t.M9,this.stocks=g.H,this.extraFields=[{name:"vendor_id",type:"dropdown",placeholder:"Select Store",label:"Store",value:null,options:[]}],r.isAdmin()&&(this.config.searchEndpoint=B.E.STOCKS.STOCK_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_);let n=this.filterData.extra.vendor_id;this.fetchMyVendors({},s=>{}),this.fetchStocks({vendor_id:n,q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Stocks,link:null,active:!0}]}fetchStocks(_){this.loading=!0;const n=this.componentKey(A.Z.STOCKS.SEARCH(_));this.stockService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.stocks=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Stock is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:xe.n.create,update:_=>xe.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Be.X}onCopyClick(_){vi.g.copyToClipboard(_),this.notifier.info("Copied","SKU has been copied to clipboard")}getDiscountedRetailPrice(_){return _.retail_price-this.getDiscount(_)}getDiscount(_){return null==_.discount_valid_until||new Date(_.discount_valid_until).getTime()>(new Date).getTime()?_.retail_price*(_.discount_percentage/100):0}categoriesToString(_){return _.map(n=>n.name).join(", ")}fetchMyVendors(_={},n){let s=this.componentKey(A.Z.VENDORS.MY_VENDORS(_));this.vendorService.myVendors(s,this.config.vendorEndpoint,_),this.subscribe(s,null,(r,m)=>{this.extraFields=[{name:"vendor_id",type:"dropdown",label:"Vendor",placeholder:"Select Store",value:null,options:m.data.map(F=>({label:F.name,value:F.id}))}]})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Di.q),e.Y36(Je.n),e.Y36(C.l),e.Y36(e.soG))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-stock-list"]],features:[e.qOj],decls:11,vars:9,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W,ee;return _="\u0985\u09B0\u09CD\u09A1\u09BE\u09B0",n="\u09AC\u09BF\u0995\u09CD\u09B0\u09BF",s="Id",r="\u099B\u09AC\u09BF",m="SKU",Y="\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A8\u09BE\u09AE",F="\u09AA\u09B0\u09BF\u09AE\u09BE\u09A3",w="\u0997\u09DC \u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF",oe="\u09AC\u09BF\u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF",se="\u09AA\u09CD\u09B0\u09A4\u09BF \u09AC\u09BF\u0995\u09CD\u09B0\u09DF\u09C7\u09B0 \u09B2\u09BE\u09AD / \u0995\u09CD\u09B7\u09A4\u09BF",re="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",le="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",ae="\u0995\u09AA\u09BF",ce="\u09F3",X="\u09F3",W="\u09F3",ee="\u09F3",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addBtnText","extraFields","addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"d-flex","flex-wrap","gap-3","mb-3","float-end"],[1,"btn","btn-outline-primary","waves-effect","font-size-16",3,"routerLink"],[1,"mdi","mdi-truck-delivery","me-2"],_,["type","submit",1,"btn","btn-primary","px-5","waves-effect","waves-light","font-size-16",3,"routerLink"],[1,"mdi","mdi-sale","me-2"],n,[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],s,r,m,Y,F,w,oe,se,re,[4,"ngFor","ngForOf"],le,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",1,"font-size-10",3,"click"],ae,[1,"text-wrap"],[1,"badge","bg-info","font-size-10","m-1"],[1,"badge","text-info","font-size-10","m-1"],[1,"align-content-center"],[1,"btn","btn-outline-success",3,"click"],[1,"badge","font-size-16",3,"ngClass"],[1,"mdi","mdi-plus-circle","font-size-16"],[1,"badge","text-info","font-size-16"],[1,"me-1"],ce,["class","badge text-info font-size-16",4,"ngIf"],["class","badge text-danger font-size-16",4,"ngIf"],["class","badge text-success font-size-16",4,"ngIf"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"text-warning","font-size-16"],X,[1,"text-primary","text-decoration-line-through"],["class","font-size-10 mt-3",4,"ngIf"],[1,"font-size-10","mt-3"],[1,"badge","text-danger","font-size-16"],W,[1,"badge","text-success","font-size-16"],ee,[2,"width","100px"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],[1,"badge","badge-soft-primary","font-size-10","text-info"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],["href","javascript: void(0);",3,"click"],[1,"bx","bx-plus-circle","text-success"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,hi,1,1,"util-progress",5),e.YNc(8,Li,13,2,"div",6),e.YNc(9,_n,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations["Products in Stock"])("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(4),e.Q6J("addBtnText","+ Add Product")("extraFields",s.extraFields),e.xp6(1),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.stocks.empty),e.xp6(1),e.Q6J("ngIf",!s.stocks.empty),e.xp6(1),e.Q6J("page",s.stocks))},dependencies:[d.mk,d.sg,d.O5,T.rH,b.t,y.Q,h.D,M.T,f.L,d.JJ,P.G]})}return i})(),nn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-stock"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-stock-list")},dependencies:[tn]})}return i})();var ye=o(5734),Ke=o(1364);function on(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function sn(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function rn(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function ln(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,sn,2,0,"h4",16),e.YNc(8,rn,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function an(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function cn(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Approval"),e.qZA())}function dn(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function un(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function En(i,a){if(1&i&&e._UZ(0,"img",40),2&i){const _=e.oxw().$implicit;e.s9C("src",_.logo,e.LSH)}}function Tn(i,a){if(1&i&&(e.TgZ(0,"span",41),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function pn(i,a){1&i&&(e.TgZ(0,"a",45),e._UZ(1,"i",46),e.qZA())}function Nn(i,a){1&i&&(e.TgZ(0,"a",47),e._UZ(1,"i",48),e.qZA())}function Sn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",42),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.toggleApproval(s.id,!s.approved))}),e.YNc(1,pn,2,0,"a",43),e.YNc(2,Nn,2,0,"a",44),e.qZA()}if(2&i){const _=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",!_.approved),e.xp6(1),e.Q6J("ngIf",_.approved)}}function On(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",36)(1,"app-delete",49),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function mn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,un,2,1,"td",7),e.TgZ(4,"td")(5,"div",31),e.YNc(6,En,1,1,"img",32),e.YNc(7,Tn,2,1,"span",33),e.qZA()(),e.TgZ(8,"td")(9,"a",34),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.YNc(19,Sn,3,2,"td",35),e.TgZ(20,"td",36)(21,"a",37),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(22,"i",38),e.qZA()(),e.YNc(23,On,2,1,"td",39),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null!=_.logo),e.xp6(1),e.Q6J("ngIf",null==_.logo),e.xp6(3),e.hij(" ",_.name," "),e.xp6(3),e.Oqu(e.lcZ(14,9,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,11,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showApprovalButton),e.xp6(4),e.Q6J("ngIf",n.config.showDeleteButton)}}function gn(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"Vendors that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,an,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Image"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Title"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Created At"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Last Updated"),e.qZA(),e.YNc(21,cn,2,0,"th",7),e.TgZ(22,"th"),e._uU(23,"Update"),e.qZA(),e.YNc(24,dn,2,0,"th",7),e.qZA()(),e.TgZ(25,"tbody"),e.YNc(26,mn,24,13,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(9),e.Q6J("ngIf",_.config.showApprovalButton),e.xp6(3),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.vendors.content)}}function An(i,a){if(1&i&&(e.TgZ(0,"div",70),e._UZ(1,"img",40),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.logo,e.LSH)}}function Rn(i,a){if(1&i&&(e.TgZ(0,"div",71)(1,"span",41),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Cn(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function fn(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function Pn(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function In(i,a){1&i&&(e.TgZ(0,"label",74),e._uU(1,"Approved"),e.qZA())}function vn(i,a){1&i&&(e.TgZ(0,"label",75),e._uU(1,"Not Approved"),e.qZA())}function Mn(i,a){1&i&&e._UZ(0,"i",78)}function Dn(i,a){1&i&&e._UZ(0,"i",79)}function hn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",67)(1,"a",34),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.toggleApproval(s.id,!s.approved))}),e.YNc(2,Mn,1,0,"i",76),e.YNc(3,Dn,1,0,"i",77),e.qZA()()}if(2&i){const _=e.oxw().$implicit;e.xp6(2),e.Q6J("ngIf",!_.approved),e.xp6(1),e.Q6J("ngIf",_.approved)}}function Un(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",67)(1,"app-delete",80),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function bn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",51)(1,"div",52)(2,"div",26),e.YNc(3,An,2,1,"div",53),e.YNc(4,Rn,3,1,"div",54),e.TgZ(5,"h5",55)(6,"a",56),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,Cn,2,1,"h6",57),e.TgZ(9,"div",0)(10,"div",58)(11,"p",59)(12,"small")(13,"b"),e._uU(14,"Created"),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",58)(19,"p",60),e.YNc(20,fn,6,3,"small",61),e.YNc(21,Pn,6,0,"small",61),e.qZA()()(),e.TgZ(22,"div")(23,"a",62),e.YNc(24,In,2,0,"label",63),e.YNc(25,vn,2,0,"label",64),e.qZA()()(),e.TgZ(26,"div",65)(27,"div",66)(28,"div",67)(29,"a",34),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(30,"i",68),e.qZA()(),e.YNc(31,hn,4,2,"div",69),e.YNc(32,Un,2,2,"div",69),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.logo),e.xp6(1),e.Q6J("ngIf",null==_.logo),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,11,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(3),e.Q6J("ngIf",_.approved),e.xp6(1),e.Q6J("ngIf",!_.approved),e.xp6(6),e.Q6J("ngIf",n.config.showApprovalButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ln(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,bn,33,13,"div",50),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.vendors.content)}}function Zn(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,gn,27,6,"div",23),e.YNc(2,Ln,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let xn=(()=>{class i extends ue.R{componentName(){return"VendorListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.vendorService=F,this.notifier=w,this.config=ye.j,this.filterData=t.M9,this.vendors=g.H,r.isAdmin()&&(this.config.showApprovalButton=!0,this.config.searchEndpoint=B.E.VENDORS.VENDOR_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_),this.fetchVendors({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Vendors",link:null,active:!0}]}fetchVendors(_){this.loading=!0;const n=this.componentKey(A.Z.VENDORS.SEARCH(_));this.vendorService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.vendors=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Vendor is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:ye.n.create,update:_=>ye.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Ke.Z}toggleApproval(_,n){this.loading=!0;const s=this.componentKey(A.Z.VENDORS.TOGGLE_APPROVAL(_));this.vendorService.toggleApproval(s,_,n),this.subscribe(s,null,(r,m)=>{this.loading=!1,this.notifier.success("Success","Vendor is "+(n?"approved":"disapproved")),this.ngOnInit()}),this.subscribe(this.getErrorKey(s),null,(r,m)=>{this.notifier.error("Error",m.data.error.message)})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Je.n),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-vendor-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",3,"click",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[2,"width","100px",3,"click"],["class","btn btn-outline-success btn-sm edit","title","Edit",4,"ngIf"],["class","btn btn-outline-danger btn-sm edit","title","Edit",4,"ngIf"],["title","Edit",1,"btn","btn-outline-success","btn-sm","edit"],[1,"fas","fa-check"],["title","Edit",1,"btn","btn-outline-danger","btn-sm","edit"],[1,"fas","fa-heart-broken"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-success font-size-11 m-1",4,"ngIf"],["class","badge bg-warning font-size-11 m-1",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],[1,"badge","bg-success","font-size-11","m-1"],[1,"badge","bg-warning","font-size-11","m-1"],["title","Approve","class","bx bx-check-circle text-success",4,"ngIf"],["title","Unapprove","class","bx bx-x-circle text-warning",4,"ngIf"],["title","Approve",1,"bx","bx-check-circle","text-success"],["title","Unapprove",1,"bx","bx-x-circle","text-warning"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,on,1,1,"util-progress",5),e.YNc(8,ln,13,2,"div",6),e.YNc(9,Zn,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","Vendors")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.vendors.empty),e.xp6(1),e.Q6J("ngIf",!s.vendors.empty),e.xp6(1),e.Q6J("page",s.vendors))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})();const yn=[{path:"categories",component:Ee},{path:"categories/:id",component:c.I},{path:"categories/create",component:c.I},{path:"attributes",component:d_,canActivate:[k.P]},{path:"attributes/create",component:Ie,canActivate:[k.P]},{path:"attributes/:id/update",component:Ie,canActivate:[k.P]},{path:"filterable-attributes",component:D_,canActivate:[k.P]},{path:"filterable-attributes/create",component:Me.V,canActivate:[k.P]},{path:"filterable-attributes/:id/update",component:Me.V,canActivate:[k.P]},{path:"brands",component:et,canActivate:[k.P]},{path:"brands/create",component:he.l,canActivate:[k.P]},{path:"brands/:id/update",component:he.l,canActivate:[k.P]},{path:"variations",component:It,canActivate:[k.P]},{path:"variations/create",component:be.s,canActivate:[k.P]},{path:"variations/:id/update",component:be.s,canActivate:[k.P]},{path:"products",component:ti,canActivate:[k.P]},{path:"products/create",component:Ze.A,canActivate:[k.P]},{path:"products/:id/update",component:Ze.A,canActivate:[k.P]},{path:"product-specifications",component:Ii,canActivate:[k.P]},{path:"product-specifications/create",component:qe,canActivate:[k.P]},{path:"product-specifications/:id/update",component:Ge,canActivate:[k.P]},{path:"stocks",component:nn,canActivate:[k.P]},{path:"stocks/create",component:Be.X,canActivate:[k.P]},{path:"stocks/:id/update",component:Be.X,canActivate:[k.P]},{path:"vendors",component:(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-vendor"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-vendor-list")},dependencies:[xn]})}return i})(),canActivate:[k.P]},{path:"vendors/create",component:Ke.Z,canActivate:[k.P]},{path:"vendors/:id/update",component:Ke.Z,canActivate:[k.P]}];let Kn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275mod=e.oAB({type:i});static#t=this.\u0275inj=e.cJS({imports:[T.Bz.forChild(yn),T.Bz]})}return i})();var Yn=o(7151),Vn=o(9797),Fn=o(5081),$n=o(4807),Gn=o(2241),qn=o(3318),Jn=o(9277),Qn=o(7035);let wn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275mod=e.oAB({type:i});static#t=this.\u0275inj=e.cJS({imports:[d.ez,G.UX,Kn,Yn.g,Gn.AdminModule,Vn.CmsModule,$n.A0,G.u5,qn.UserModule,Jn.kn]})}return i})();e.B6R(c.I,[d.mk,d.O5,G._Y,G.Fj,G.Wl,G.JJ,G.JL,G.sg,G.u,b.t,Qn.P,Fn.P],[])},1426:(z,K,o)=>{o.d(K,{q:()=>M});var d=o(5879),T=o(8637),c=o(8174),x=o(7259),t=o(2771),A=o(3989),B=o(30),l=o(1662),e=o(6945),E=o(8480),u=o(1492),N=o(8675),S=o(6814),U=o(6223),C=o(4736),b=o(4807);function y(f,P){1&f&&d._UZ(0,"util-progress",4),2&f&&d.Q6J("bar",!0)}const h=function(){return{standalone:!0}};let M=(()=>{class f extends T.H{componentName(){return"ProductSelectComponent"}constructor(I,Z,V,q,_e,Te){super(I,Z,V),this.productService=_e,this.dialogService=Te,this.searchEndpoint=t.E.PRODUCTS.PRODUCT_ENDPOINT_V2,this.items=[],this.selectedItem=null,this.selected=new d.vpe,q.isAdmin()&&(this.searchEndpoint=t.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(I){let Z=c.g.removeSpecialCharacters(I.target?.value);Z.length>2&&this.search({page:0,size:10,q:Z})}onSelected(I){if(this.items.find(Z=>Z.name==I.name))this.selected.emit(this.selectedItem);else{let Z=this.dialogService.open(A.A,{id:null,name:I.name,dialogUpsert:!0}),V=Z.componentInstance;V.onCompleted.subscribe(q=>{this.selected.emit(function g(f){return{id:f.id,created_at:f.created_at,updated_at:f.updated_at,created_by:f.created_by,name:f.name,brand:{id:f.brand_id,name:f.brand_name,description:"",image:"",created_at:new Date,updated_at:new Date,created_by:""},images:f.images,categories:f.category_ids.map((P,I)=>({id:P,name:f.category_names[I]})),weight:f.weight,approved:f.approved}}(q))}),V.onCanceled.subscribe(()=>{Z.close()})}}search(I){this.loading=!0;let Z=this.componentKey(x.Z.PRODUCTS_V2.SEARCH(I));this.productService.search(Z,this.searchEndpoint,I),this.subscribe(Z,null,(V,q)=>{this.items=q.data.content,this.loading=!1})}static#e=this.\u0275fac=function(Z){return new(Z||f)(d.Y36(B.Y),d.Y36(l.F0),d.Y36(e.z),d.Y36(E.e),d.Y36(u.M),d.Y36(N.x))};static#_=this.\u0275cmp=d.Xpm({type:f,selectors:[["app-product-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:8,consts:function(){let I;return I="\u09AA\u09A3\u09CD\u09AF",[["for","autoSizingInput2",1,"visually-hidden"],I,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name","placeholder","Search Products",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]]},template:function(Z,V){1&Z&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,y,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(_e){return V.searchForEvent(_e)})("ngModelChange",function(_e){return V.selectedItem=_e})("change",function(_e){return V.onSelected(_e)}),d.qZA()),2&Z&&(d.xp6(2),d.Q6J("ngIf",V.loading),d.xp6(1),d.Q6J("items",V.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",V.selectedItem)("ngModelOptions",d.DdM(7,h)))},dependencies:[S.O5,U.JJ,C.t,b.w9,U.On]})}return f})()},3989:(z,K,o)=>{o.d(K,{A:()=>O});var d=o(9870),T=o(973),c=o(6223),x=o(7259),g=o(7700),t=o(8174),A=o(2771),B=o(8674),l=o(5879),e=o(30),E=o(1662),u=o(6945),N=o(8480),S=o(1492),U=o(5462),C=o(6814),b=o(4736),y=o(6265),h=o(7035),M=o(5081),f=o(8637),P=o(9107),I=o(7210),Z=o(8675),V=o(4807);function q(D,v){1&D&&l._UZ(0,"util-progress",4),2&D&&l.Q6J("bar",!0)}const _e=function(){return{standalone:!0}};let Te=(()=>{class D extends f.H{componentName(){return"BrandSelectComponent"}constructor(p,R,L,J,Q,j){super(p,R,L),this.brandService=Q,this.popupService=j,this.searchEndpoint=A.E.BRANDS.BRAND_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new l.vpe,J.isAdmin()&&(this.searchEndpoint=A.E.BRANDS.BRAND_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(p){let R=t.g.removeSpecialCharacters(p.target?.value);R.length>2&&this.search({page:0,size:10,q:R})}onSelected(p){this.items.find(R=>R.name==p.name)?this.selected.emit(this.selectedItem):this.popupService.open(P.l,{id:null,name:p.name}).componentInstance.onCompleted.subscribe(L=>{this.selected.emit(L)})}search(p){this.loading=!0;let R=this.componentKey(x.Z.BRANDS.SEARCH(p));this.brandService.search(R,this.searchEndpoint,p),this.subscribe(R,null,(L,J)=>{this.items=J.data.content,this.loading=!1})}static#e=this.\u0275fac=function(R){return new(R||D)(l.Y36(e.Y),l.Y36(E.F0),l.Y36(u.z),l.Y36(N.e),l.Y36(I.c),l.Y36(Z.x))};static#_=this.\u0275cmp=l.Xpm({type:D,selectors:[["app-brand-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[l.qOj],decls:4,vars:9,consts:function(){let p;return p="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1",[["for","autoSizingInput2",1,"visually-hidden"],p,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(R,L){1&R&&(l.TgZ(0,"label",0),l.SDv(1,1),l.qZA(),l.YNc(2,q,1,1,"util-progress",2),l.TgZ(3,"ng-select",3),l.NdJ("keyup",function(Q){return L.searchForEvent(Q)})("ngModelChange",function(Q){return L.selectedItem=Q})("change",function(Q){return L.onSelected(Q)}),l.qZA()),2&R&&(l.xp6(2),l.Q6J("ngIf",L.loading),l.xp6(1),l.s9C("placeholder",L.translations["Search Brand"]),l.Q6J("items",L.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",L.selectedItem)("ngModelOptions",l.DdM(8,_e)))},dependencies:[C.O5,c.JJ,b.t,V.w9,c.On]})}return D})();var Oe=o(756);function me(D,v){1&D&&l._UZ(0,"util-progress",32),2&D&&l.Q6J("bar",!0)}function ge(D,v){1&D&&(l.TgZ(0,"em",13),l.SDv(1,33),l.qZA())}function Ne(D,v){if(1&D){const p=l.EpF();l.TgZ(0,"div",34)(1,"div",35)(2,"span"),l._uU(3),l.qZA()(),l.TgZ(4,"div",35)(5,"a",36),l.NdJ("click",function(){const J=l.CHM(p).$implicit,Q=l.oxw();return l.KtG(Q.removeCategory(J))}),l._UZ(6,"i",37),l.qZA()()()}if(2&D){const p=v.$implicit;l.xp6(3),l.Oqu(p.name)}}function Ae(D,v){1&D&&(l.TgZ(0,"em",13),l.SDv(1,38),l.qZA())}function $(D,v){if(1&D&&(l.TgZ(0,"option",43),l._uU(1),l.qZA()),2&D){const p=v.$implicit,R=l.oxw().$implicit;l.Q6J("value",p)("selected",R.value===p),l.xp6(1),l.Oqu(p)}}function de(D,v){if(1&D){const p=l.EpF();l.TgZ(0,"div",34)(1,"div",39)(2,"span"),l._uU(3),l.qZA()(),l.TgZ(4,"div",39)(5,"select",40),l.NdJ("change",function(L){const Q=l.CHM(p).$implicit,j=l.oxw();return l.KtG(j.onValueSelected(Q.attr,L))}),l.TgZ(6,"option"),l.SDv(7,41),l.qZA(),l.YNc(8,$,2,3,"option",42),l.qZA()(),l.TgZ(9,"div",39)(10,"a",36),l.NdJ("click",function(){const J=l.CHM(p).$implicit,Q=l.oxw();return l.KtG(Q.removeSpecification(J.attr))}),l._UZ(11,"i",37),l.qZA()()()}if(2&D){const p=v.$implicit;l.xp6(3),l.Oqu(p.attr.name),l.xp6(5),l.Q6J("ngForOf",p.attr.values)}}let O=(()=>{class D extends d.n{constructor(p,R,L,J,Q,j,pe,Ee){super(p,R,L,J,Ee),this.productService=j,this.notifier=pe,this.config=T.C,this.selectedCategories=[],this.selectedBrand=null,this.specifications=[],this.selectedVariations=[],this.productForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),slug:new c.NI("",[c.kI.required,c.kI.minLength(3)]),brand_id:new c.NI(null,[c.kI.required]),description:new c.NI("",[]),category_ids:new c.NI([],[c.kI.required]),variant_ids:new c.NI([],[]),specifications:new c.NI(new Map,[]),images:new c.NI([]),weight:new c.NI(null),approved:new c.NI(!1),frozen_item:new c.NI(!1)}),Q.isAdmin()&&(this.config.getEndpoint=A.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2),null!=Ee.name&&this.productForm.controls.name.setValue(Ee.name)}componentName(){return"ProductUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Products",link:"/admin/products",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.productForm.controls.name.valueChanges.subscribe(p=>{this.productForm.controls.slug.setValue(t.g.slugify(p)+"_"+t.g.randomString(5))})}initialize(p){this.loading=!0;let R=this.componentKey(x.Z.PRODUCTS_V2.GET(p));this.productService.fetchSingle(R,this.config.getEndpoint,p),this.subscribe(R,null,(L,J)=>{this.loading=!1,this.populateForm(J.data)}),this.subscribe(this.getErrorKey(R),null,(L,J)=>{console.log(J.data),this.loading=!1})}onSubmit(){this.productForm.valid&&this.upsert(this.exId)}onImgUploaded(p){p.length>0&&this.productForm.controls.images.setValue(p.map(R=>R.image_url))}getExImages(){return this.productForm.controls.images.value?.map(R=>({image_url:R,thumb_url:R}))}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(p){this.loading=!0;let R=this.componentKey(x.Z.PRODUCTS_V2.UPSERT(p)),L={name:this.productForm.controls.name.value,slug:this.productForm.controls.slug.value,brand_id:this.productForm.controls.brand_id.value,description:this.productForm.controls.description.value,category_ids:this.productForm.controls.category_ids.value,variant_ids:this.productForm.controls.variant_ids.value,images:this.productForm.controls.images.value,weight:this.productForm.controls.weight.value,approved:this.productForm.controls.approved.value,frozen_item:this.productForm.controls.frozen_item.value,action:null,specifications:(0,B.Q3)(this.productForm.controls.specifications.value)};this.productService.upsert(R,A.E.PRODUCTS.PRODUCT_ENDPOINT,L,p),this.subscribe(R,null,(J,Q)=>{this.loading=!1,this.notifier.success("Success","Product has been "+(p?"updated":"created")),this.productForm.reset(),this.onSuccess(Q.data)}),this.subscribe(this.getErrorKey(R),null,(J,Q)=>{let j=Q.data;this.loading=!1,this.notifier.warning("Failed!",j.error.message)})}populateForm(p){this.selectedBrand=p.brand,this.selectedCategories=p.categories,this.selectedVariations=p.variations,this.specifications=p.specifications.map(R=>({attr:R.filterable_attribute,value:R.value})),this.productForm.controls.name.setValue(p.name),this.productForm.controls.slug.setValue(p.slug),this.productForm.controls.brand_id.setValue(p.brand.id),this.productForm.controls.description.setValue(p.description),this.productForm.controls.category_ids.setValue(p.categories.map(R=>R.id)),this.productForm.controls.variant_ids.setValue(p.variations.map(R=>R.id)),this.productForm.controls.specifications.setValue(this.specificationsToMap(this.specifications)),this.productForm.controls.images.setValue(p.images),this.productForm.controls.weight.setValue(p.weight),this.productForm.controls.approved.setValue(p.approved),this.productForm.controls.frozen_item.setValue(p.frozen_item)}onCategorySelected(p){null==p||this.selectedCategories.find(R=>R.id==p.id)||(this.selectedCategories.push(p),this.productForm.controls.category_ids.setValue(this.selectedCategories.map(R=>R.id)))}onBrandSelected(p){this.selectedBrand=p,this.productForm.controls.brand_id.setValue(null==this.selectedBrand?null:this.selectedBrand.id)}onFaSelected(p){null==p||this.specifications.find(R=>R.attr.id==p.id)||this.specifications.push({attr:p,value:null})}onVariationSelected(p){null==p||null==p.id||this.selectedVariations.find(R=>R.id==p.id)||(this.selectedVariations.push(p),this.productForm.controls.variant_ids.setValue(this.selectedVariations.map(R=>R.id)))}removeCategory(p){this.selectedCategories=this.selectedCategories.filter(R=>R.id!=p.id),this.productForm.controls.category_ids.setValue(this.selectedCategories.map(R=>R.id))}removeVariation(p){this.selectedVariations=this.selectedVariations.filter(R=>R.id!=p.id),this.productForm.controls.variant_ids.setValue(this.selectedVariations.map(R=>R.id))}onValueSelected(p,R){this.specifications=this.specifications.map(L=>(L.attr.id==p.id&&(L.value=R.target.value),L)),this.updateControlValue()}removeSpecification(p){this.specifications=this.specifications.filter(R=>R.attr.id!=p.id),this.updateControlValue()}updateControlValue(){this.productForm.controls.specifications.setValue(this.specificationsToMap(this.specifications))}specificationsToMap(p){return p.reduce((R,L)=>(null!==L.value&&R.set(L.attr.code,L.value),R),new Map)}static#e=this.\u0275fac=function(R){return new(R||D)(l.Y36(e.Y),l.Y36(E.F0),l.Y36(u.z),l.Y36(E.gz),l.Y36(N.e),l.Y36(S.M),l.Y36(U.l),l.Y36(g.WI))};static#_=this.\u0275cmp=l.Xpm({type:D,selectors:[["app-product-upsert"]],features:[l.qOj],decls:55,vars:18,consts:function(){let p,R,L,J,Q,j,pe,Ee,k,ue,Se;return p="\u09AA\u09A3\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF/\u0986\u09AA\u09A1\u09C7\u099F \u0995\u09B0\u09C1\u09A8",R="\u09A8\u09BE\u09AE",L="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1",J="\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF",Q="\u09AC\u09C8\u09B6\u09BF\u09B7\u09CD\u099F\u09CD\u09AF\u0997\u09C1\u09B2\u09CB",j="\u09AC\u09BF\u09AC\u09B0\u09A3",pe="\u09AC\u09BE\u09A4\u09BF\u09B2",Ee="\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",k="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8!",ue="\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8!",Se="\u09AE\u09BE\u09A8 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],p,[3,"formGroup"],[1,"col-sm-6","mb-3"],["for","name-input",1,"form-label"],R,[1,"error"],["type","text","id","name-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],L,[3,"selectedItem","selected"],["class","text-danger",4,"ngIf"],J,["class","row my-2 py-2 mx-0 bg-info-subtle",4,"ngFor","ngForOf"],[1,"col-sm-6"],["for","specification",1,"form-label"],Q,[1,"mb-3"],["for","description",1,"form-label"],j,["id","description","formControlName","description"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],pe,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],Ee,[3,"bar"],k,[1,"row","my-2","py-2","mx-0","bg-info-subtle"],[1,"col-6"],["href","javascript: void(0);",3,"click"],[1,"mdi","mdi-close-circle-outline","text-danger","float-end"],ue,[1,"col-4"],["id","specification","aria-label","Specification",1,"form-select",3,"change"],Se,[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]]},template:function(R,L){1&R&&(l.YNc(0,me,1,1,"util-progress",0),l.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),l.SDv(6,6),l.qZA(),l.TgZ(7,"form",7)(8,"div",1)(9,"div",8)(10,"label",9)(11,"span"),l.SDv(12,10),l.qZA(),l.TgZ(13,"em",11),l._uU(14,"*"),l.qZA()(),l._UZ(15,"input",12),l.TgZ(16,"em",13),l._uU(17),l.qZA()(),l.TgZ(18,"div",8)(19,"label",9)(20,"span"),l.SDv(21,14),l.qZA(),l.TgZ(22,"em",11),l._uU(23,"*"),l.qZA()(),l.TgZ(24,"app-brand-select",15),l.NdJ("selected",function(Q){return L.onBrandSelected(Q)}),l.qZA(),l.YNc(25,ge,2,0,"em",16),l.qZA()(),l.TgZ(26,"div",1)(27,"div",8)(28,"label",9)(29,"span"),l.SDv(30,17),l.qZA(),l.TgZ(31,"em",11),l._uU(32,"*"),l.qZA()(),l.TgZ(33,"app-category-select",15),l.NdJ("selected",function(Q){return L.onCategorySelected(Q)}),l.qZA(),l.YNc(34,Ne,7,1,"div",18),l.YNc(35,Ae,2,0,"em",16),l.qZA(),l.TgZ(36,"div",19)(37,"label",20),l.SDv(38,21),l.qZA(),l.TgZ(39,"app-fa-select",15),l.NdJ("selected",function(Q){return L.onFaSelected(Q)}),l.qZA(),l.YNc(40,de,12,2,"div",18),l.qZA()(),l.TgZ(41,"div",22)(42,"label",23),l.SDv(43,24),l.qZA(),l._UZ(44,"app-editor",25),l.TgZ(45,"em",13),l._uU(46),l.qZA()(),l.TgZ(47,"app-file-picker",26),l.NdJ("onUploaded",function(Q){return L.onImgUploaded(Q)}),l.qZA(),l.TgZ(48,"div",27)(49,"button",28),l.NdJ("click",function(){return L.onCancel()}),l.TgZ(50,"span"),l.SDv(51,29),l.qZA()(),l.TgZ(52,"button",30),l.NdJ("click",function(){return L.onSubmit()}),l.TgZ(53,"span"),l.SDv(54,31),l.qZA()()()()()()()()),2&R&&(l.Q6J("ngIf",L.loading),l.xp6(1),l.Q6J("@loaded",!L.loading),l.xp6(6),l.Q6J("formGroup",L.productForm),l.xp6(8),l.s9C("placeholder",L.translations["Enter Name"]),l.xp6(2),l.hij(" ",L.errMsg(L.productForm,"name","minLength","Name should be at least 3 characters!")," "),l.xp6(7),l.Q6J("selectedItem",L.selectedBrand),l.xp6(1),l.Q6J("ngIf",!L.productForm.controls.brand_id.valid),l.xp6(8),l.Q6J("selectedItem",null),l.xp6(1),l.Q6J("ngForOf",L.selectedCategories),l.xp6(1),l.Q6J("ngIf",!L.productForm.controls.category_ids.valid),l.xp6(4),l.Q6J("selectedItem",null),l.xp6(1),l.Q6J("ngForOf",L.specifications),l.xp6(6),l.hij(" ",L.errMsg(L.productForm,"description","minLength","Description should be at least 20 characters!")," "),l.xp6(1),l.s9C("title",L.translations.Images),l.Q6J("multiSelect",!0)("existingImages",L.getExImages())("required",!1),l.xp6(5),l.Q6J("ngClass",L.productForm.valid?"":"disabled"))},dependencies:[C.mk,C.sg,C.O5,c._Y,c.YN,c.Kr,c.Fj,c.JJ,c.JL,c.sg,c.u,b.t,y.P,h.P,M.P,Te,Oe.t]})}return D})()},973:(z,K,o)=>{o.d(K,{C:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!1,showUserFilter:!1,showDeleteButton:!0,showApproveButton:!1,searchEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2,delEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2,getEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2},x={list:"/admin/inventory/products",create:"/admin/inventory/products/create",update(g){return null==g?this.create:"/admin/inventory/products/"+g+"/update"}}},1492:(z,K,o)=>{o.d(K,{M:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.PRODUCTS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u,N){this.http.get(T.E.PRODUCTS.GET(u,N)).subscribe(S=>{this.eventBusService.publish(E,S.body)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N,S){let U=null==S?T.E.PRODUCTS.CREATE(u):T.E.PRODUCTS.UPDATE(u,S),C=null==S?this.http.post(U,N):this.http.patch(U,N);console.log(N),C.subscribe(b=>{this.eventBusService.publish(E,b)},b=>{this.handleError(b,y=>{this.upsert(E,u,N,S)},y=>{this.eventBusService.publish(this.getErrorKey(E),y)})})}approve(E,u,N,S){let U=T.E.PRODUCTS.APPROVE(u,N,S);this.http.patch(U,{}).subscribe(C=>{this.eventBusService.publish(E,C.body)},C=>{this.handleError(C,b=>{this.approve(E,u,N,S)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9876:(z,K,o)=>{o.d(K,{X:()=>Ae});var d=o(9870),T=o(337),c=o(6223),x=o(7700),g=o(7259),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(5789),E=o(5462),u=o(6814),N=o(4736),S=o(9277),U=o(1426),C=o(8637),b=o(8174),y=o(2771),h=o(2447),M=o(8480),f=o(3668),P=o(8675),I=o(4807);function Z($,de){1&$&&t._UZ(0,"util-progress",4),2&$&&t.Q6J("bar",!0)}const V=function(){return{standalone:!0}};let q=(()=>{class $ extends C.H{componentName(){return"VariationSelectComponent"}constructor(O,D,v,p,R,L){super(O,D,v),this.variationService=R,this.popupService=L,this.searchEndpoint=y.E.VARIATIONS.VARIATION_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new t.vpe,p.isAdmin()&&(this.searchEndpoint=y.E.VARIATIONS.VARIATION_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(O){let D=b.g.removeSpecialCharacters(O.target?.value);D.length>2&&this.search({page:0,size:10,q:D})}onSelected(O){this.items.find(D=>D.name==O.name)?this.selected.emit(this.selectedItem):this.popupService.open(h.s,{id:null,name:O.name}).componentInstance.onCompleted.subscribe(v=>{this.selected.emit(v)})}search(O){this.loading=!0;let D=this.componentKey(g.Z.VARIATIONS.SEARCH(O));this.variationService.search(D,this.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.items=p.data.content,this.loading=!1})}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(M.e),t.Y36(f.$),t.Y36(P.x))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-variation-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[t.qOj],decls:4,vars:9,consts:function(){let O;return O="\u09AD\u09BF\u09A8\u09CD\u09A8\u09A4\u09BE",[["for","autoSizingInput2",1,"visually-hidden"],O,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(D,v){1&D&&(t.TgZ(0,"label",0),t.SDv(1,1),t.qZA(),t.YNc(2,Z,1,1,"util-progress",2),t.TgZ(3,"ng-select",3),t.NdJ("keyup",function(R){return v.searchForEvent(R)})("ngModelChange",function(R){return v.selectedItem=R})("change",function(R){return v.onSelected(R)}),t.qZA()),2&D&&(t.xp6(2),t.Q6J("ngIf",v.loading),t.xp6(1),t.s9C("placeholder",v.translations["Search Variations.."]),t.Q6J("items",v.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",v.selectedItem)("ngModelOptions",t.DdM(8,V)))},dependencies:[u.O5,c.JJ,N.t,I.w9,c.On]})}return $})();var _e=o(9056);function Te($,de){1&$&&t._UZ(0,"util-progress",63),2&$&&t.Q6J("bar",!0)}function Oe($,de){1&$&&(t.TgZ(0,"em",35),t.SDv(1,64),t.qZA())}function me($,de){1&$&&(t.TgZ(0,"em",35),t.SDv(1,65),t.qZA())}function ge($,de){1&$&&t._UZ(0,"util-progress",63),2&$&&t.Q6J("bar",!0)}const Ne=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}};let Ae=(()=>{class $ extends d.n{constructor(O,D,v,p,R,L,J){super(O,D,v,p,J),this.stockService=R,this.notifier=L,this.config=T.u,this.stockForm=new c.cw({vendor_id:new c.NI(null,[c.kI.required]),product_id:new c.NI(null,[c.kI.required]),supplier_id:new c.NI(null,[]),variation_id:new c.NI(null,[]),quantity:new c.NI(null,[c.kI.required]),unit_price:new c.NI(null,[c.kI.required]),retail_price:new c.NI(null,[c.kI.required]),discount_percentage:new c.NI(null,[]),discount_valid_until:new c.NI(null,[]),cashback_percentage:new c.NI(null,[]),cashback_valid_until:new c.NI(null,[])}),this.selectedVendor=null,this.selectedSupplier=null,this.selectedProduct=null,this.selectedVariation=null}componentName(){return"StockUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Stocks",link:"/admin/stocks",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(O){this.loading=!0;let D=this.componentKey(g.Z.STOCKS.GET(O));this.stockService.fetchSingle(D,this.config.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.loading=!1,this.populateForm(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{console.log(p.data),this.loading=!1})}currentDate(){return new Date}onSubmit(){console.log(this.stockForm.value),this.stockForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(O){this.loading=!0;let D=this.componentKey(g.Z.STOCKS.UPSERT(O));this.stockService.upsert(D,this.stockForm.value,O),this.subscribe(D,null,(p,R)=>{this.notifier.success("Success","Stock has been "+(O?"updated":"created")),this.stockForm.reset(),this.onSuccess(R.data)}),this.subscribe(this.getErrorKey(D),null,(p,R)=>{let L=R.data;this.loading=!1,this.notifier.warning("Failed!",L.error.message)})}populateForm(O){this.selectedVendor=O.vendor,this.selectedProduct=O.product,this.selectedVariation=O.variation,this.stockForm.controls.vendor_id.setValue(O.vendor_id),this.stockForm.controls.product_id.setValue(O.product_id),this.stockForm.controls.variation_id.setValue(O.variation_id),this.stockForm.controls.unit_price.setValue(null==O.avg_unit_price?0:Math.round(O.avg_unit_price)),this.stockForm.controls.retail_price.setValue(O.retail_price),this.stockForm.controls.discount_percentage.setValue(O.discount_percentage),this.stockForm.controls.discount_valid_until.setValue(null==O.discount_valid_until?null:O.discount_valid_until),this.stockForm.controls.cashback_percentage.setValue(O.cashback_percentage),this.stockForm.controls.cashback_valid_until.setValue(null==O.cashback_valid_until?null:O.cashback_valid_until)}onVendorSelected(O){this.selectedVendor=O,this.stockForm.controls.vendor_id.setValue(null==O?null:O.id)}onSupplierSelected(O){this.selectedSupplier=O,this.stockForm.controls.supplier_id.setValue(null==O?null:O.id)}onProductSelected(O){console.log(O),this.selectedProduct=O,this.stockForm.controls.product_id.setValue(null==O?null:O.id)}onVariationSelected(O){this.selectedVariation=O,this.stockForm.controls.variation_id.setValue(null==O?null:O.id)}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.q),t.Y36(E.l),t.Y36(x.WI))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-stock-upsert"]],features:[t.qOj],decls:113,vars:27,consts:function(){let O,D,v,p,R,L,J,Q,j,pe,Ee,k,ue,Se,ne,Re,G,Ce,fe;return O="\u09B8\u09CD\u099F\u0995/\u09AE\u09BE\u09B2\u09BE\u09AE\u09BE\u09B2 \u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C1\u09A8",D="\u09B8\u09CD\u099F\u09CB\u09B0\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF",v="\u09B8\u09CD\u099F\u09CB\u09B0 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8",p="\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF",R="\u09AA\u09A3\u09CD\u09AF \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8",L="\u09AD\u09C7\u09B0\u09BF\u09DF\u09C7\u09B6\u09A8 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8",J="\u09B8\u09CD\u099F\u0995\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF",Q="\u09AA\u09B0\u09BF\u09AE\u09BE\u09A3",j="\u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF",pe="\u09AC\u09BF\u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF",Ee="\u09A1\u09BF\u09B8\u0995\u09BE\u0989\u09A8\u09CD\u099F\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF",k="\u09A1\u09BF\u09B8\u0995\u09BE\u0989\u09A8\u09CD\u099F (%)",ue="\u09A1\u09BF\u09B8\u0995\u09BE\u0989\u09A8\u09CD\u099F\u09C7\u09B0 \u09AC\u09C8\u09A7\u09A4\u09BE",Se="\u0995\u09CD\u09AF\u09BE\u09B6\u09AC\u09CD\u09AF\u09BE\u0995 (%)",ne="\u0995\u09CD\u09AF\u09BE\u09B6\u09AC\u09CD\u09AF\u09BE\u0995\u09C7\u09B0 \u09AD\u09CD\u09AF\u09BE\u09B2\u09BF\u09A1\u09BF\u099F\u09BF",Re="\u09AC\u09BE\u09A4\u09BF\u09B2",G="\u09B8\u09CD\u099F\u0995/\u09AE\u09BE\u09B2\u09BE\u09AE\u09BE\u09B2 \u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C1\u09A8",Ce="\u09A6\u09DF\u09BE \u0995\u09B0\u09C7 \u0986\u09AA\u09A8\u09BE\u09B0 \u09B8\u09CD\u099F\u09CB\u09B0 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8\u0964",fe="\u09A6\u09DF\u09BE \u0995\u09B0\u09C7 \u09AA\u09A3\u09CD\u09AF \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8\u0964",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],O,[3,"formGroup"],[1,"card-header","bg-transparent","border-primary"],[1,"my-0","text-primary"],[1,"mdi","mdi-store","me-3","me-3"],D,[1,"card-body","shadow-sm"],[1,"mb-3"],["for","vendor_id-input",1,"form-label","col-form-label-lg"],v,[1,"error"],["id","vendor_id-input",3,"selectedItem","selected"],["class","text-danger",4,"ngIf"],[1,"card","my-3"],[1,"mdi","mdi-package-variant","me-3"],p,[1,"col-sm-6","col-md-6","mb-3"],R,["id","product_id-input",3,"selectedItem","selected"],["for","variation_id-input",1,"form-label","col-form-label-lg"],L,["id","variation_id-input",3,"selectedItem","selected"],[1,"row","my-3"],[1,"col-sm-6"],[1,"mdi","mdi-barcode-scan","me-3"],J,["for","quantity-input",1,"form-label"],Q,["type","text","id","quantity-input","name","quantity","formControlName","quantity",1,"form-control","form-control-lg",3,"placeholder","ngClass"],[1,"text-danger"],["for","unit_price-input",1,"form-label"],j,["type","text","id","unit_price-input","name","unit_price","formControlName","unit_price",1,"form-control","form-control-lg",3,"placeholder","ngClass"],["for","retail_price-input",1,"form-label"],pe,["type","text","id","retail_price-input","name","retail_price","formControlName","retail_price",1,"form-control","form-control-lg",3,"placeholder","ngClass"],[1,"mdi","mdi-tag-off","me-3"],Ee,["for","discount-input",1,"form-label"],k,["type","text","id","discount-input","name","discount_percentage","formControlName","discount_percentage",1,"form-control","form-control-lg",3,"placeholder"],["for","discount_valid_until-input",1,"form-label"],ue,[1,"input-group"],["bsDatepicker","","id","discount_valid_until-input","formControlName","discount_valid_until",1,"form-control","form-control-lg",3,"bsConfig","minDate"],["for","cashback_percentage-input",1,"form-label"],Se,["type","text","id","cashback_percentage-input","name","cashback_percentage","formControlName","cashback_percentage",1,"form-control","form-control-lg",3,"placeholder"],["for","cashback_valid_until-input",1,"form-label"],ne,["bsDatepicker","","id","cashback_valid_until-input","formControlName","cashback_valid_until",1,"form-control","form-control-lg",3,"bsConfig","minDate"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],Re,["type","submit",1,"btn","btn-success","waves-effect","waves-light",3,"ngClass","click"],[1,"mdi","mdi-content-save","d-block","font-size-16"],G,[3,"bar"],Ce,fe]},template:function(D,v){1&D&&(t.YNc(0,Te,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",3)(9,"div",8)(10,"h6",9),t._UZ(11,"i",10),t.TgZ(12,"span"),t.SDv(13,11),t.qZA()()(),t.TgZ(14,"div",12)(15,"div",13)(16,"label",14)(17,"span"),t.SDv(18,15),t.qZA(),t.TgZ(19,"em",16),t._uU(20,"*"),t.qZA()(),t.TgZ(21,"app-vendor-select",17),t.NdJ("selected",function(R){return v.onVendorSelected(R)}),t.qZA(),t.YNc(22,Oe,2,0,"em",18),t.qZA()()(),t.TgZ(23,"div",19)(24,"div",8)(25,"h6",9),t._UZ(26,"i",20),t.TgZ(27,"span"),t.SDv(28,21),t.qZA()()(),t.TgZ(29,"div",12)(30,"div",1)(31,"div",22)(32,"label",14),t.tHW(33,23),t._UZ(34,"em",16),t.N_p(),t.qZA(),t.TgZ(35,"app-product-select",24),t.NdJ("selected",function(R){return v.onProductSelected(R)}),t.qZA(),t.YNc(36,me,2,0,"em",18),t.qZA(),t.TgZ(37,"div",22)(38,"label",25),t.SDv(39,26),t.qZA(),t.TgZ(40,"app-variation-select",27),t.NdJ("selected",function(R){return v.onVariationSelected(R)}),t.qZA()()()()(),t.TgZ(41,"div",28)(42,"div",29)(43,"div",3)(44,"div",8)(45,"h6",9),t._UZ(46,"i",30),t.TgZ(47,"span"),t.SDv(48,31),t.qZA()()(),t.TgZ(49,"div",12)(50,"div",13)(51,"label",32)(52,"span"),t.SDv(53,33),t.qZA(),t.TgZ(54,"em",16),t._uU(55,"*"),t.qZA()(),t._UZ(56,"input",34),t.TgZ(57,"em",35),t._uU(58),t.qZA()(),t.TgZ(59,"div",13)(60,"label",36)(61,"span"),t.SDv(62,37),t.qZA(),t.TgZ(63,"em",16),t._uU(64,"*"),t.qZA()(),t._UZ(65,"input",38),t.TgZ(66,"em",35),t._uU(67),t.qZA()(),t.TgZ(68,"div",13)(69,"label",39)(70,"span"),t.SDv(71,40),t.qZA(),t.TgZ(72,"em",16),t._uU(73,"*"),t.qZA()(),t._UZ(74,"input",41),t.TgZ(75,"em",35),t._uU(76),t.qZA()()()()(),t.TgZ(77,"div",29)(78,"div",3)(79,"div",8)(80,"h6",9),t._UZ(81,"i",42),t.TgZ(82,"span"),t.SDv(83,43),t.qZA()()(),t.TgZ(84,"div",12)(85,"div",13)(86,"label",44),t.SDv(87,45),t.qZA(),t._UZ(88,"input",46),t.qZA(),t.TgZ(89,"div",13)(90,"label",47),t.SDv(91,48),t.qZA(),t.TgZ(92,"div",49),t._UZ(93,"input",50),t.qZA()(),t.TgZ(94,"div",13)(95,"label",51),t.SDv(96,52),t.qZA(),t._UZ(97,"input",53),t.qZA(),t.TgZ(98,"div",13)(99,"label",54),t.SDv(100,55),t.qZA(),t.TgZ(101,"div",49),t._UZ(102,"input",56),t.qZA()()()()()(),t.YNc(103,ge,1,1,"util-progress",0),t.TgZ(104,"div",57)(105,"button",58),t.NdJ("click",function(){return v.onCancel()}),t.TgZ(106,"span"),t.SDv(107,59),t.qZA()(),t.TgZ(108,"button",60),t.NdJ("click",function(){return v.onSubmit()}),t._UZ(109,"i",61),t._uU(110,"\xa0 "),t.TgZ(111,"span"),t.SDv(112,62),t.qZA()()()()()()()()),2&D&&(t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("@loaded",!v.loading),t.xp6(6),t.Q6J("formGroup",v.stockForm),t.xp6(14),t.Q6J("selectedItem",v.selectedVendor),t.xp6(1),t.Q6J("ngIf",null==v.selectedVendor),t.xp6(13),t.Q6J("selectedItem",v.selectedProduct),t.xp6(1),t.Q6J("ngIf",null==v.selectedProduct),t.xp6(4),t.Q6J("selectedItem",v.selectedVariation),t.xp6(16),t.s9C("placeholder",v.translations["Enter Quantity"]),t.Q6J("ngClass",null==v.stockForm.controls.quantity.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"quantity","required","Quantity is required!")," "),t.xp6(7),t.s9C("placeholder",v.translations["Unit Price"]),t.Q6J("ngClass",null==v.stockForm.controls.unit_price.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"unit_price","required","Unit price is required!")," "),t.xp6(7),t.s9C("placeholder",v.translations["Enter Retail Price"]),t.Q6J("ngClass",null==v.stockForm.controls.retail_price.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"retail_price","required","Retail price is required!")," "),t.xp6(12),t.s9C("placeholder",v.translations["Enter Discount"]),t.xp6(5),t.Q6J("bsConfig",t.DdM(25,Ne))("minDate",v.currentDate()),t.xp6(4),t.s9C("placeholder",v.translations["Enter Cashback (%)"]),t.xp6(5),t.Q6J("bsConfig",t.DdM(26,Ne))("minDate",v.currentDate()),t.xp6(1),t.Q6J("ngIf",v.loading),t.xp6(5),t.Q6J("ngClass",v.stockForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.Np,S.Y5,U.q,q,_e.t]})}return $})()},337:(z,K,o)=>{o.d(K,{n:()=>x,u:()=>c});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,searchEndpoint:T.E.STOCKS.STOCK_ENDPOINT_V2,delEndpoint:T.E.STOCKS.STOCK_ENDPOINT,vendorEndpoint:T.E.VENDORS.VENDOR_ENDPOINT_V2},x={list:"/admin/inventory/stocks",create:"/admin/inventory/stocks/create",update(g){return null==g?this.create:"/admin/inventory/stocks/"+g+"/update"}}},5789:(z,K,o)=>{o.d(K,{q:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.STOCKS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u,N){this.http.get(T.E.STOCKS.GET(u,N)).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}fetchBySku(E,u,N){this.http.get(T.E.STOCKS.GET_BY_SKU(u,N)).subscribe(S=>{this.eventBusService.publish(E,S.body)},S=>{this.handleError(S,U=>{this.fetchBySku(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N){let S=null==N?T.E.STOCKS.CREATE():T.E.STOCKS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},2447:(z,K,o)=>{o.d(K,{s:()=>C});var d=o(9870),T=o(4968),c=o(6223),x=o(7259),g=o(7700),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(3668),E=o(5462),u=o(6814),N=o(4736),S=o(7035);function U(b,y){1&b&&t._UZ(0,"util-progress",22),2&b&&t.Q6J("bar",!0)}let C=(()=>{class b extends d.n{constructor(h,M,f,P,I,Z,V){super(h,M,f,P,V),this.variationService=I,this.notifier=Z,this.config=T._,this.variationForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),image:new c.NI(null)}),null!=V.name&&this.variationForm.controls.name.setValue(V.name)}componentName(){return"VariationUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Variations",link:"/admin/variations",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(h){this.loading=!0;let M=this.componentKey(x.Z.VARIATIONS.GET(h));this.variationService.fetchSingle(M,h),this.subscribe(M,null,(f,P)=>{this.loading=!1,this.populateForm(P.data)}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{console.log(P.data),this.loading=!1})}onSubmit(){this.variationForm.valid&&this.upsert(this.exId)}onImgUploaded(h){h.length>0&&this.variationForm.controls.image.setValue(h[0].image_url)}getExImages(){let h=this.variationForm.controls.image.value;return null==h?[]:[{image_url:h,thumb_url:h}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(h){this.loading=!0;let M=this.componentKey(x.Z.VARIATIONS.UPSERT(h));this.variationService.upsert(M,this.variationForm.value,h),this.subscribe(M,null,(f,P)=>{this.loading=!1;let I="Variation has been "+(h?"updated":"created");this.notifier.success("Success",I),this.variationForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(P.data):this.navigate(T.n.list,Z=>{this.notifier.success("Success!",I)})}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{let I=P.data;this.loading=!1,this.notifier.warning("Failed!",I.error.message)})}populateForm(h){this.variationForm.controls.name.setValue(h.name),this.variationForm.controls.description.setValue(h.description),this.variationForm.controls.image.setValue(null==h.image?null:h.image)}static#e=this.\u0275fac=function(M){return new(M||b)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.$),t.Y36(E.l),t.Y36(g.WI))};static#_=this.\u0275cmp=t.Xpm({type:b,selectors:[["app-variation-upsert"]],features:[t.qOj],decls:31,vars:12,consts:function(){let h,M,f,P;return h="\u09A8\u09BE\u09AE",M="\u09AC\u09BF\u09AC\u09B0\u09A3",f="\u09AC\u09BE\u09A4\u09BF\u09B2",P="\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","name-input",1,"form-label"],h,[1,"error"],["type","text","id","name-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","description",1,"form-label"],M,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],f,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],P,[3,"bar"]]},template:function(M,f){1&M&&(t.YNc(0,U,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Create/Update Variation"),t.qZA(),t.TgZ(7,"form",6)(8,"div",7)(9,"label",8)(10,"span"),t.SDv(11,9),t.qZA(),t.TgZ(12,"em",10),t._uU(13,"*"),t.qZA()(),t._UZ(14,"input",11),t.TgZ(15,"em",12),t._uU(16),t.qZA()(),t.TgZ(17,"div",7)(18,"label",13),t.SDv(19,14),t.qZA(),t._UZ(20,"textarea",15),t.TgZ(21,"em",12),t._uU(22),t.qZA()(),t.TgZ(23,"app-file-picker",16),t.NdJ("onUploaded",function(I){return f.onImgUploaded(I)}),t.qZA(),t.TgZ(24,"div",17)(25,"button",18),t.NdJ("click",function(){return f.onCancel()}),t.TgZ(26,"span"),t.SDv(27,19),t.qZA()(),t.TgZ(28,"button",20),t.NdJ("click",function(){return f.onSubmit()}),t.TgZ(29,"span"),t.SDv(30,21),t.qZA()()()()()()()()),2&M&&(t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("@loaded",!f.loading),t.xp6(6),t.Q6J("formGroup",f.variationForm),t.xp6(7),t.s9C("placeholder",f.translations["Enter Name"]),t.xp6(2),t.hij(" ",f.errMsg(f.variationForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.s9C("placeholder",f.translations["Enter Description"]),t.xp6(2),t.hij(" ",f.errMsg(f.variationForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(1),t.s9C("title",f.translations.Image),t.Q6J("multiSelect",!1)("existingImages",f.getExImages())("required",!1),t.xp6(5),t.Q6J("ngClass",f.variationForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.P]})}return b})()},4968:(z,K,o)=>{o.d(K,{_:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,showUpdateButton:!1,searchEndpoint:T.E.VARIATIONS.VARIATION_ENDPOINT,delEndpoint:T.E.VARIATIONS.VARIATION_ENDPOINT},x={list:"/admin/inventory/variations",create:"/admin/inventory/variations/create",update(g){return null==g?this.create:"/admin/inventory/variations/"+g+"/update"}}},3668:(z,K,o)=>{o.d(K,{$:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.VARIATIONS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.VARIATIONS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.VARIATIONS.CREATE():T.E.VARIATIONS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9056:(z,K,o)=>{o.d(K,{t:()=>h});var d=o(5879),T=o(8637),c=o(8174),x=o(1364),g=o(7259),t=o(2771),A=o(30),B=o(1662),l=o(6945),e=o(8480),E=o(7405),u=o(8675),N=o(6814),S=o(6223),U=o(4736),C=o(4807);function b(M,f){1&M&&d._UZ(0,"util-progress",4),2&M&&d.Q6J("bar",!0)}const y=function(){return{standalone:!0}};let h=(()=>{class M extends T.H{componentName(){return"VendorSelectComponent"}constructor(P,I,Z,V,q,_e){super(P,I,Z),this.authService=V,this.vendorService=q,this.popupService=_e,this.enableAdd=!1,this.searchEndpoint=t.E.VENDORS.VENDOR_ENDPOINT_V2,this.items=[],this.selectedItem=null,this.selected=new d.vpe,V.isAdmin()&&(this.enableAdd=!0,this.searchEndpoint=t.E.VENDORS.VENDOR_ENDPOINT_ADMIN_V2)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(P){let I=c.g.removeSpecialCharacters(P.target?.value);I.length>2&&this.search({page:0,size:10,q:I})}onSelected(P){if(this.items.find(I=>I.name==P.name))this.selected.emit(this.selectedItem);else{let I=this.popupService.open(x.Z,{id:null,title:P.title,dialogUpsert:!0}),Z=I.componentInstance;Z.onCompleted.subscribe(V=>{this.selected.emit(V)}),Z.onCanceled.subscribe(()=>{I.close()})}}search(P){let I=this.authService.isAdmin();this.loading=!0;let Z=this.componentKey(g.Z.VENDORS.SEARCH(P)+c.g.randomString(5));I?this.vendorService.search(Z,this.searchEndpoint,P):this.vendorService.myVendors(Z,this.searchEndpoint,P),this.subscribe(Z,null,(V,q)=>{this.items=I?q.data.content:q.data,this.loading=!1})}static#e=this.\u0275fac=function(I){return new(I||M)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.e),d.Y36(E.n),d.Y36(u.x))};static#_=this.\u0275cmp=d.Xpm({type:M,selectors:[["app-vendor-select"]],inputs:{enableAdd:"enableAdd",searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let P;return P="\u09B8\u09CD\u099F\u09CB\u09B0",[["for","vendor-select",1,"visually-hidden"],P,[3,"bar",4,"ngIf"],["id","vendor-select","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(I,Z){1&I&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,b,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(q){return Z.searchForEvent(q)})("ngModelChange",function(q){return Z.selectedItem=q})("change",function(q){return Z.onSelected(q)}),d.qZA()),2&I&&(d.xp6(2),d.Q6J("ngIf",Z.loading),d.xp6(1),d.s9C("placeholder",Z.translations["Search Store.."]),d.Q6J("items",Z.items)("hideSelected",!0)("multiple",!1)("addTag",Z.enableAdd)("ngModel",Z.selectedItem)("ngModelOptions",d.DdM(8,y)))},dependencies:[N.O5,S.JJ,U.t,C.w9,S.On]})}return M})()},1364:(z,K,o)=>{o.d(K,{Z:()=>Ae});var d=o(9870),T=o(5734),c=o(6223),x=o(7259),g=o(7700),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(7405),E=o(5462),u=o(5375),N=o(7579),S=o(6814),U=o(4736),C=o(6265),b=o(46),y=o(7035),h=o(2668),M=o(1310),f=o(8637),P=o(8174),I=o(8480),Z=o(5732),V=o(8675),q=o(4807);function _e($,de){1&$&&t._UZ(0,"util-progress",3),2&$&&t.Q6J("bar",!0)}const Te=function(){return{standalone:!0}};let Oe=(()=>{class $ extends f.H{componentName(){return"UserSelectComponent"}constructor(O,D,v,p,R,L){super(O,D,v),this.userService=R,this.popupService=L,this.enableAdd=!0,this.searchEndpoint=M.wl.endpoint,this.items=[],this.selectedItem=null,this.selected=new t.vpe,p.isAdmin()&&(this.searchEndpoint=M.wl.adminEndpoint)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(O){let D=P.g.removeSpecialCharacters(O.target?.value);D.length>2&&this.search({page:0,size:10,q:D})}onSelected(O){null==O?this.selected.emit(null):this.items.find(D=>D.name==O.name)?this.selected.emit(this.selectedItem):this.popupService.open(h.M,{id:null,title:O.title}).componentInstance.onCompleted.subscribe(v=>{this.selected.emit(v)})}search(O){this.loading=!0;let D=this.componentKey(x.Z.USERS.SEARCH(O));this.userService.search(D,this.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.items=p.data.content,this.loading=!1})}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(I.e),t.Y36(Z.K),t.Y36(V.x))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-user-select"]],inputs:{enableAdd:"enableAdd",searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[t.qOj],decls:4,vars:8,consts:[["for","user-select",1,"visually-hidden"],[3,"bar",4,"ngIf"],["id","user-select","bindLabel","label","placeholder","Search User",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]],template:function(D,v){1&D&&(t.TgZ(0,"label",0),t._uU(1,"User"),t.qZA(),t.YNc(2,_e,1,1,"util-progress",1),t.TgZ(3,"ng-select",2),t.NdJ("keyup",function(R){return v.searchForEvent(R)})("ngModelChange",function(R){return v.selectedItem=R})("change",function(R){return v.onSelected(R)}),t.qZA()),2&D&&(t.xp6(2),t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("items",v.items)("hideSelected",!0)("multiple",!1)("addTag",v.enableAdd)("ngModel",v.selectedItem)("ngModelOptions",t.DdM(7,Te)))},dependencies:[S.O5,c.JJ,c.On,U.t,q.w9]})}return $})();function me($,de){1&$&&t._UZ(0,"util-progress",66),2&$&&t.Q6J("bar",!0)}function ge($,de){if(1&$){const O=t.EpF();t.TgZ(0,"div",67)(1,"label",68),t._uU(2),t.qZA(),t.TgZ(3,"app-location-select",69),t.NdJ("selected",function(v){const R=t.CHM(O).$implicit,L=t.oxw();return t.KtG(L.onLocationSelected(v,R.type))}),t.qZA()()}if(2&$){const O=de.$implicit;t.xp6(1),t.s9C("for",O.type.label),t.xp6(1),t.Oqu(O.type.label),t.xp6(1),t.Q6J("preload",null==O.type.parent_id)("items",O.locations)("selectedItem",O.selectedLocation)}}function Ne($,de){1&$&&(t.TgZ(0,"em",13),t._uU(1," Location is required! "),t.qZA())}let Ae=(()=>{class $ extends d.n{constructor(O,D,v,p,R,L,J,Q,j){super(O,D,v,p,j),this.vendorService=R,this.notifier=L,this.locationTypeService=J,this.locationService=Q,this.config=T.j,this.vendorForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),type:new c.NI("GENERAL",[c.kI.required]),commission_percentage:new c.NI(0,[c.kI.required,c.kI.min(0),c.kI.max(100)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),logo:new c.NI(null,[c.kI.required]),banner:new c.NI(null),owner_id:new c.NI(null,[]),supplier:new c.NI(!1,[]),flagship:new c.NI(!1,[]),authorized_dealer:new c.NI(!1,[]),ecommerce_activated:new c.NI(!1,[]),phone:new c.NI(null,[]),account_name:new c.NI(null,[]),account_number:new c.NI(null,[]),bank_name:new c.NI(null,[]),branch_name:new c.NI(null,[]),routing:new c.NI(null,[]),address:new c.cw({address_line_one:new c.NI(null,[c.kI.required]),address_line_two:new c.NI(null,[]),altitude:new c.NI(0,[c.kI.required]),latitude:new c.NI(0,[c.kI.required]),longitude:new c.NI(0,[c.kI.required]),title:new c.NI(null,[]),zip_code:new c.NI(null,[]),location_id:new c.NI(null,[])})}),this.selectedOwner=null,this.locations=[],null!=j.title&&this.vendorForm.controls.name.setValue(j.name)}componentName(){return"VendorUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Vendors",link:"/admin/vendors",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.fetchLocationTypes({page:0,size:100,q:null})}initialize(O){this.loading=!0,this.fetchEx(O)}onSubmit(){this.vendorForm.valid&&this.upsert(this.exId)}onLogoPicked(O){O.length>0&&this.vendorForm.controls.logo.setValue(O[0].image_url)}onBannerPicked(O){O.length>0&&this.vendorForm.controls.banner.setValue(O[0].image_url)}getExLogo(){let O=this.vendorForm.controls.logo.value;return null==O?[]:[{image_url:O,thumb_url:O}]}getExBanner(){let O=this.vendorForm.controls.banner.value;return null==O?[]:[{image_url:O,thumb_url:O}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(O){this.loading=!0;let D=this.componentKey(x.Z.VENDORS.UPSERT(O));this.vendorService.upsert(D,this.vendorForm.value,O),this.subscribe(D,null,(v,p)=>{this.notifier.success("Success","Vendor has been "+(O?"updated":"created")),this.vendorForm.reset(),this.onSuccess(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{let R=p.data;this.loading=!1,this.notifier.warning("Failed!",R.error.message)})}populateForm(O){this.vendorForm.controls.name.setValue(O.name),this.vendorForm.controls.type.setValue(O.type),this.vendorForm.controls.commission_percentage.setValue(O.commission_percentage),this.vendorForm.controls.description.setValue(O.description),this.vendorForm.controls.logo.setValue(null==O.logo?null:O.logo),this.vendorForm.controls.banner.setValue(null==O.banner?null:O.banner),this.vendorForm.controls.owner_id.setValue(null==O.owner?null:O.owner.id),this.vendorForm.controls.supplier.setValue(O.supplier),this.vendorForm.controls.flagship.setValue(O.flagship),this.vendorForm.controls.authorized_dealer.setValue(O.authorized_dealer),this.vendorForm.controls.ecommerce_activated.setValue(O.ecommerce_activated),this.vendorForm.controls.phone.setValue(O.phone),this.vendorForm.controls.account_name.setValue(O.account_name),this.vendorForm.controls.account_number.setValue(O.account_number),this.vendorForm.controls.bank_name.setValue(O.bank_name),this.vendorForm.controls.branch_name.setValue(O.branch_name),this.vendorForm.controls.routing.setValue(O.routing),this.vendorForm.controls.address.controls.address_line_one.setValue(O.address.address_line_one),this.vendorForm.controls.address.controls.address_line_two.setValue(O.address.address_line_two),this.vendorForm.controls.address.controls.altitude.setValue(O.address.altitude),this.vendorForm.controls.address.controls.latitude.setValue(O.address.latitude),this.vendorForm.controls.address.controls.longitude.setValue(O.address.longitude),this.vendorForm.controls.address.controls.title.setValue(O.address.title),this.vendorForm.controls.address.controls.zip_code.setValue(O.address.zip_code),this.vendorForm.controls.address.controls.location_id.setValue(O.address.location_id),this.selectedOwner=O.owner,new Map(Object.entries(O.address.locations_tree)).forEach((D,v)=>{let p=this.locations.find(R=>R.type.code==v)?.type;null!=p&&this.onLocationSelected(D,p)})}fetchEx(O){let D=this.componentKey(x.Z.VENDORS.GET(O));this.vendorService.fetchSingle(D,O),this.subscribe(D,null,(v,p)=>{this.loading=!1,this.populateForm(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{console.log(p.data),this.loading=!1})}fetchLocationTypes(O){this.loading=!0;const D=this.componentKey(x.Z.LOCATIONTYPES.SEARCH(O));this.locationTypeService.search(D,this.config.locationTypeEndpoint,O),this.subscribe(D,null,(v,p)=>{let R=p.data.content;R.sort((L,J)=>L.level-J.level),this.locations=R.map(L=>({type:L,locations:[],selectedLocation:null})),this.loading=!1}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{this.notifier.error("Error",p.data.error.message)})}fetchChildLocations(O,D){this.loading=!0;const v=this.componentKey(x.Z.LOCATIONS.SEARCH(O));this.locationService.searchChildren(v,this.config.locationEndpoint,O),this.subscribe(v,null,(p,R)=>{D(R.data.content),this.loading=!1}),this.subscribe(this.getErrorKey(v),null,(p,R)=>{this.notifier.error("Error",R.data.error.message)})}onLocationSelected(O,D){this.locations=this.locations.map(p=>p.type.id==D.id?{...p,selectedLocation:O}:p.type.level>D.level?{...p,selectedLocation:null}:p),console.log("selected location",this.locations);let v=this.locations.filter(p=>null!=p.selectedLocation).sort((p,R)=>R.type.level-p.type.level);if(console.log("sorted and filtered",v),v.length>0){let p=v[0].selectedLocation;this.vendorForm.controls.address.controls.location_id.setValue(null==p?null:p.id)}console.log("selected location in control",this.vendorForm.controls.address.controls.location_id.value),null!=O&&this.fetchChildLocations({page:0,size:100,q:null,parent_id:O.id},p=>{if(0==p.length)return;let R=p[0].type_id;this.locations=this.locations.map(L=>L.type.id==R?{...L,locations:p}:L)})}onOwnerSelected(O){this.selectedOwner=O,this.vendorForm.controls.owner_id.setValue(null==O?null:O.id)}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.n),t.Y36(E.l),t.Y36(u.I),t.Y36(N.a),t.Y36(g.WI))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-vendor-upsert"]],features:[t.qOj],decls:136,vars:18,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"mb-4"],[1,"card-name"],[1,"text-warning"],[1,"error"],[3,"formGroup"],[1,"col-sm-6","col-lg-3","mb-3"],["for","name-input",1,"form-label"],["type","text","id","name-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],[1,"col-6","col-sm-6","col-lg-3","mb-3"],["for","type-input",1,"form-label"],["id","type-input","formControlName","type",1,"form-select"],["value","GENERAL"],["value","RESTAURANT"],["for","owner-input",1,"form-label"],["id","owner-input",3,"selectedItem","selected"],["for","comm-input",1,"form-label"],["type","text","id","comm-input","placeholder","Enter Commission","name","commission_percentage","formControlName","commission_percentage",1,"form-control"],[1,"col-6","mb-3"],[1,"form-label"],["title","Logo",3,"multiSelect","existingImages","required","onUploaded"],["title","Banner",3,"multiSelect","existingImages","required","onUploaded"],[1,"mb-3"],["for","description",1,"form-label"],["id","description","formControlName","description"],[1,"row","col-12"],[1,"col-sm-6"],[1,"form-check","form-check-primary","form-checkbox-outline","mb-3"],["type","checkbox","id","supplier","formControlName","supplier",1,"form-check-input"],["for","supplier",1,"form-check-label"],["type","checkbox","id","flagship","formControlName","flagship",1,"form-check-input"],["for","flagship",1,"form-check-label"],["type","checkbox","id","authorized_dealer","formControlName","authorized_dealer",1,"form-check-input"],["for","authorized_dealer",1,"form-check-label"],["type","checkbox","id","ecommerce_activated","formControlName","ecommerce_activated",1,"form-check-input"],["for","ecommerce_activated",1,"form-check-label"],[1,"row","col-sm-6"],[1,"col-6","col-md-6","mb-3"],["for","account_name-input",1,"form-label"],["type","text","id","account_name-input","placeholder","Account Name","name","account_name","formControlName","account_name",1,"form-control"],["for","account_number-input",1,"form-label"],["type","text","id","account_number-input","placeholder","Account Number","name","account_number","formControlName","account_number",1,"form-control"],[1,"col-md-6","mb-3"],["for","bank_name-input",1,"form-label"],["type","text","id","bank_name-input","placeholder","Bank Name","name","bank_name","formControlName","bank_name",1,"form-control"],["for","branch_name-input",1,"form-label"],["type","text","id","branch_name-input","placeholder","Branch Name","name","branch_name","formControlName","branch_name",1,"form-control"],["for","routing-input",1,"form-label"],["type","text","id","routing-input","placeholder","Routing","name","routing","formControlName","routing",1,"form-control"],["formGroupName","address"],[1,"section"],[1,"col-sm-6","mb-3"],["for","addr1-input",1,"form-label"],["type","text","id","addr1-input","placeholder","Enter Address Line 1","name","address_line_one","formControlName","address_line_one",1,"form-control"],["for","address_line_two-input",1,"form-label"],["type","text","id","address_line_two-input","placeholder","Enter Address Line 2","name","address_line_two","formControlName","address_line_two",1,"form-control"],["class","col-6 col-sm-6 mb-3",4,"ngFor","ngForOf"],["class","text-danger",4,"ngIf"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],[1,"col-6","col-sm-6","mb-3"],[1,"form-label",3,"for"],[3,"preload","items","selectedItem","selected"]],template:function(D,v){1&D&&(t.YNc(0,me,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4",6),t._uU(7,"Create/Update Vendor"),t.qZA(),t.TgZ(8,"em",7),t._uU(9," Form fields with "),t.TgZ(10,"em",8),t._uU(11,"*"),t.qZA(),t._uU(12," are required. "),t.qZA()(),t.TgZ(13,"form",9)(14,"div",1)(15,"div",10)(16,"label",11),t._uU(17,"Name"),t.TgZ(18,"em",8),t._uU(19,"*"),t.qZA()(),t._UZ(20,"input",12),t.TgZ(21,"em",13),t._uU(22),t.qZA()(),t.TgZ(23,"div",14)(24,"label",15),t._uU(25,"Type"),t.TgZ(26,"em",8),t._uU(27,"*"),t.qZA()(),t.TgZ(28,"select",16)(29,"option",17),t._uU(30,"General"),t.qZA(),t.TgZ(31,"option",18),t._uU(32,"Restaurant"),t.qZA()(),t.TgZ(33,"em",13),t._uU(34),t.qZA()(),t.TgZ(35,"div",14)(36,"label",19),t._uU(37,"Owner"),t.qZA(),t.TgZ(38,"app-user-select",20),t.NdJ("selected",function(R){return v.onOwnerSelected(R)}),t.qZA(),t._UZ(39,"em",13),t.qZA(),t.TgZ(40,"div",10)(41,"label",21),t._uU(42,"Commission"),t.TgZ(43,"em",8),t._uU(44,"*"),t.qZA()(),t._UZ(45,"input",22),t.TgZ(46,"em",13),t._uU(47),t.qZA()()(),t.TgZ(48,"div",1)(49,"div",23)(50,"label",24),t._uU(51,"Logo"),t.TgZ(52,"em",8),t._uU(53,"*"),t.qZA()(),t.TgZ(54,"app-file-picker",25),t.NdJ("onUploaded",function(R){return v.onLogoPicked(R)}),t.qZA()(),t.TgZ(55,"div",23)(56,"label",24),t._uU(57,"Banner"),t.qZA(),t.TgZ(58,"app-file-picker",26),t.NdJ("onUploaded",function(R){return v.onBannerPicked(R)}),t.qZA()()(),t.TgZ(59,"div",27)(60,"label",28),t._uU(61,"Description"),t.TgZ(62,"em",8),t._uU(63,"*"),t.qZA()(),t._UZ(64,"app-editor",29),t.TgZ(65,"em",13),t._uU(66),t.qZA()(),t.TgZ(67,"div",30)(68,"div",31)(69,"h5",5),t._uU(70,"Vendor Flags"),t.qZA(),t.TgZ(71,"div",32),t._UZ(72,"input",33),t.TgZ(73,"label",34),t._uU(74,"Vendor is a supplier"),t.qZA()(),t.TgZ(75,"div",32),t._UZ(76,"input",35),t.TgZ(77,"label",36),t._uU(78,"Flagship Store"),t.qZA()(),t.TgZ(79,"div",32),t._UZ(80,"input",37),t.TgZ(81,"label",38),t._uU(82,"Vendor is an authorized Dealer"),t.qZA()(),t.TgZ(83,"div",32),t._UZ(84,"input",39),t.TgZ(85,"label",40),t._uU(86,"Ecommerce Activated"),t.qZA()()(),t.TgZ(87,"div",41)(88,"div",1)(89,"h5",27),t._uU(90,"Bank Information"),t.qZA(),t.TgZ(91,"div",42)(92,"label",43),t._uU(93,"Account Name"),t.qZA(),t._UZ(94,"input",44),t.qZA(),t.TgZ(95,"div",42)(96,"label",45),t._uU(97,"Account Number"),t.qZA(),t._UZ(98,"input",46),t.qZA(),t.TgZ(99,"div",47)(100,"label",48),t._uU(101,"Bank Name"),t.qZA(),t._UZ(102,"input",49),t.qZA(),t.TgZ(103,"div",42)(104,"label",50),t._uU(105,"Branch Name"),t.qZA(),t._UZ(106,"input",51),t.qZA(),t.TgZ(107,"div",42)(108,"label",52),t._uU(109,"Routing"),t.qZA(),t._UZ(110,"input",53),t.qZA()()()(),t.TgZ(111,"div",54)(112,"section",55)(113,"h5",27),t._uU(114,"Address"),t.qZA(),t.TgZ(115,"div",1)(116,"div",56)(117,"label",57),t._uU(118,"Address Line 1"),t.TgZ(119,"em",8),t._uU(120,"*"),t.qZA()(),t._UZ(121,"input",58),t.TgZ(122,"em",13),t._uU(123),t.qZA()(),t.TgZ(124,"div",56)(125,"label",59),t._uU(126,"Address Line 2"),t.qZA(),t._UZ(127,"input",60),t.qZA()(),t.TgZ(128,"div",1),t.YNc(129,ge,4,5,"div",61),t.YNc(130,Ne,2,0,"em",62),t.qZA()()(),t.TgZ(131,"div",63)(132,"button",64),t.NdJ("click",function(){return v.onCancel()}),t._uU(133," Cancel "),t.qZA(),t.TgZ(134,"button",65),t.NdJ("click",function(){return v.onSubmit()}),t._uU(135," Submit "),t.qZA()()()()()()()),2&D&&(t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("@loaded",!v.loading),t.xp6(12),t.Q6J("formGroup",v.vendorForm),t.xp6(9),t.hij(" ",v.errMsg(v.vendorForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(12),t.hij(" ",v.errMsg(v.vendorForm,"type","required","Must select a type!")," "),t.xp6(4),t.Q6J("selectedItem",v.selectedOwner),t.xp6(9),t.hij(" ",v.errMsg(v.vendorForm,"commission_percentage","minLength","Name should be at least 3 characters!")," "),t.xp6(7),t.Q6J("multiSelect",!0)("existingImages",v.getExLogo())("required",!1),t.xp6(4),t.Q6J("multiSelect",!0)("existingImages",v.getExBanner())("required",!1),t.xp6(8),t.hij(" ",v.errMsg(v.vendorForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(57),t.hij(" ",v.errMsg(v.vendorForm.controls.address,"address_line_one","required","This field is required!")," "),t.xp6(6),t.Q6J("ngForOf",v.locations),t.xp6(1),t.Q6J("ngIf",null==v.vendorForm.controls.address.controls.location_id.value),t.xp6(4),t.Q6J("ngClass",v.vendorForm.valid?"":"disabled"))},dependencies:[S.mk,S.sg,S.O5,c._Y,c.YN,c.Kr,c.Fj,c.Wl,c.EJ,c.JJ,c.JL,c.sg,c.u,c.x0,U.t,C.P,b._,y.P,Oe]})}return $})()},5734:(z,K,o)=>{o.d(K,{j:()=>x,n:()=>g});var d=o(6405),T=o(2771),c=o(6032);let x={defaultLayout:d.A.GRID,upsertOnDialog:!1,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:T.E.VENDORS.VENDOR_ENDPOINT,delEndpoint:T.E.VENDORS.VENDOR_ENDPOINT,locationTypeEndpoint:c.s.LOCATIONTYPES.LOCATIONTYPE_ENDPOINT,locationEndpoint:c.s.LOCATIONS.LOCATION_ENDPOINT,showApprovalButton:!1},g={list:"/admin/inventory/vendors",create:"/admin/inventory/vendors/create",update(t){return null==t?this.create:"/admin/inventory/vendors/"+t+"/update"}}},7405:(z,K,o)=>{o.d(K,{n:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.VENDORS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}myVendors(E,u,N={}){let S=T.E.VENDORS.MY_VENDORS(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}searchCustomers(E,u){let N=T.E.VENDORS.SEARCH_CUSTOMERS(u);this.http.get(N).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.searchCustomers(E,u)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}fetchSingle(E,u){this.http.get(T.E.VENDORS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N.body)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}toggleApproval(E,u,N){this.http.patch(T.E.VENDORS.TOGGLE_APPROVAL(u,N),{}).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N){let S=null==N?T.E.VENDORS.CREATE():T.E.VENDORS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()}}]); \ No newline at end of file diff --git a/bn-BN/326.ec29f673254ec6d6.js b/bn-BN/326.ec29f673254ec6d6.js deleted file mode 100644 index 56d5a62..0000000 --- a/bn-BN/326.ec29f673254ec6d6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[326],{5095:(z,K,o)=>{o.d(K,{e:()=>E});var d=o(8637),T=o(6405),c=o(7613),x=o(8743),g=o(3108),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(8675);let E=(()=>{class u extends d.H{constructor(S,U,C,b){super(S,U,C),this.popup=b,this.Layout=T.A,this.StringUtil=c.m,this.breadcrumbItems=[],this.layout=T.A.GRID,this.breadcrumbItems=this.getBreadcrumbItems()}ngOnInit(){let S=this.getConfig().endpoint,U=g.n.retrieve(S);this.layout=null!=U?parseInt(U):this.getConfig().defaultLayout,this.initialize()}onLayoutSelected(S){this.layout=S,g.n.put(this.getConfig().endpoint,this.layout.toString())}openUpsertComponent(S){let U=this.getUpsertComponent();null!=U&&(this.popup.open(U,{id:S}),this.popup.onCompleted.subscribe(C=>{this.ngOnInit(),null!=C&&this.onUpsertSuccess(C),console.log("onSuccess. closing dialog")}),this.popup.onCanceled.subscribe(()=>{console.log("onCanceled. closing dialog")}))}onUpsertClick(S){if(this.getConfig().upsertOnDialog)this.openUpsertComponent(S);else{let U=this.getRoutes();if(null==U)return;let C=null==S?U.create:U.update(S);this.router.navigate([C],{queryParams:null!=S?U.params:{}})}}onUpsertSuccess(S){console.log("onUpsertSuccess",S)}static#e=this.\u0275fac=function(U){return new(U||u)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(e.x))};static#_=this.\u0275cmp=t.Xpm({type:u,selectors:[["ng-component"]],features:[t.qOj],decls:0,vars:0,template:function(U,C){},encapsulation:2,data:{animation:[(0,x.Ym)("onGrid","left"),(0,x.Ym)("onColumn","right")]}})}return u})()},4201:(z,K,o)=>{o.d(K,{C:()=>l});var d=o(8637),T=o(5879),c=o(7700),x=o(8743),g=o(1855),t=o(30),A=o(1662),B=o(6945);let l=(()=>{class e extends d.H{constructor(u,N,S,U,C){super(u,N,S),this.route=U,this.dialogData=C,this.breadcrumbItems=[],this.onCanceled=new T.vpe,this.onCompleted=new T.vpe,this.filterData=null,this.exId=null,this.dialogUpsert=!1,this.breadcrumbItems=this.getBreadcrumbItems(),this.dialogUpsert=null!=C.dialogUpsert}ngOnInit(){this.loading=!1,this.route.queryParams.subscribe(u=>{this.filterData=(0,g.OP)(u)}),this.route.paramMap.subscribe(u=>{let N=u.get("id");if(null==N&&(N=this.dialogData?.id),null!=N){let S=parseInt(N);isNaN(S)||(this.exId=S,this.initialize(this.exId))}})}navigateToListPage(u=null){this.router.navigate([this.getListPageRoute()],{queryParams:null==this.filterData?null:(0,g.oZ)(this.filterData)}).then(u)}onSuccess(u){this.loading=!1,this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCompleted.emit(u):this.navigateToListPage()}onCancel(){this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCanceled.emit():this.navigate(this.getListPageRoute(),u=>{})}static#e=this.\u0275fac=function(N){return new(N||e)(T.Y36(t.Y),T.Y36(A.F0),T.Y36(B.z),T.Y36(A.gz),T.Y36(c.WI))};static#_=this.\u0275cmp=T.Xpm({type:e,selectors:[["ng-component"]],outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[T.qOj],decls:0,vars:0,template:function(N,S){},encapsulation:2,data:{animation:[(0,x.e6)("loaded")]}})}return e})()},9107:(z,K,o)=>{o.d(K,{l:()=>C});var d=o(9870),T=o(1470),c=o(6223),x=o(7700),g=o(7259),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(7210),E=o(5462),u=o(6814),N=o(4736),S=o(7035);function U(b,y){1&b&&t._UZ(0,"util-progress",23),2&b&&t.Q6J("bar",!0)}let C=(()=>{class b extends d.n{constructor(h,M,f,P,I,Z,V){super(h,M,f,P,V),this.brandService=I,this.notifier=Z,this.config=T.j,this.brandForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),image:new c.NI(null)}),null!=V.name&&this.brandForm.controls.name.setValue(V.name)}componentName(){return"BrandUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Brands",link:"/admin/brands",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(h){this.loading=!0;let M=this.componentKey(g.Z.BRANDS.GET(h));this.brandService.fetchSingle(M,h),this.subscribe(M,null,(f,P)=>{this.loading=!1,this.populateForm(P.data)}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{console.log(P.data),this.loading=!1})}onSubmit(){this.brandForm.valid&&this.upsert(this.exId)}onImgUploaded(h){h.length>0&&this.brandForm.controls.image.setValue(h[0].image_url)}getExImages(){let h=this.brandForm.controls.image.value;return null==h?[]:[{image_url:h,thumb_url:h}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(h){this.loading=!0;let M=this.componentKey(g.Z.BRANDS.UPSERT(h));this.brandService.upsert(M,this.brandForm.value,h),this.subscribe(M,null,(f,P)=>{this.loading=!1;let I="Brand has been "+(h?"updated":"created");this.notifier.success("Success",I),this.brandForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(P.data):this.navigate(T.n.list,Z=>{this.notifier.success("Success!",I)})}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{let I=P.data;this.loading=!1,this.notifier.warning("Failed!",I.error.message)})}populateForm(h){this.brandForm.controls.name.setValue(h.name),this.brandForm.controls.description.setValue(h.description),this.brandForm.controls.image.setValue(null==h.image?null:h.image)}static#e=this.\u0275fac=function(M){return new(M||b)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.c),t.Y36(E.l),t.Y36(x.WI))};static#_=this.\u0275cmp=t.Xpm({type:b,selectors:[["app-brand-upsert"]],features:[t.qOj],decls:31,vars:12,consts:function(){let h,M,f,P,I;return h="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1 \u09A4\u09C8\u09B0\u09BF/\u0986\u09AA\u09A1\u09C7\u099F \u0995\u09B0\u09C1\u09A8",M="\u09A8\u09BE\u09AE",f="\u09AC\u09BF\u09AC\u09B0\u09A3",P="\u09AC\u09BE\u09A4\u09BF\u09B2",I="\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],h,[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],M,[1,"error"],["type","text","id","title-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","description",1,"form-label"],f,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],P,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],I,[3,"bar"]]},template:function(M,f){1&M&&(t.YNc(0,U,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",8)(9,"label",9)(10,"span"),t.SDv(11,10),t.qZA(),t.TgZ(12,"em",11),t._uU(13,"*"),t.qZA()(),t._UZ(14,"input",12),t.TgZ(15,"em",13),t._uU(16),t.qZA()(),t.TgZ(17,"div",8)(18,"label",14),t.SDv(19,15),t.qZA(),t._UZ(20,"textarea",16),t.TgZ(21,"em",13),t._uU(22),t.qZA()(),t.TgZ(23,"app-file-picker",17),t.NdJ("onUploaded",function(I){return f.onImgUploaded(I)}),t.qZA(),t.TgZ(24,"div",18)(25,"button",19),t.NdJ("click",function(){return f.onCancel()}),t.TgZ(26,"span"),t.SDv(27,20),t.qZA()(),t.TgZ(28,"button",21),t.NdJ("click",function(){return f.onSubmit()}),t.TgZ(29,"span"),t.SDv(30,22),t.qZA()()()()()()()()),2&M&&(t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("@loaded",!f.loading),t.xp6(6),t.Q6J("formGroup",f.brandForm),t.xp6(7),t.s9C("placeholder",f.translations["Enter Name"]),t.xp6(2),t.hij(" ",f.errMsg(f.brandForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.s9C("placeholder",f.translations["Enter Description"]),t.xp6(2),t.hij(" ",f.errMsg(f.brandForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(1),t.s9C("title",f.translations.Image),t.Q6J("multiSelect",!1)("existingImages",f.getExImages())("required",!1),t.xp6(5),t.Q6J("ngClass",f.brandForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.P]})}return b})()},1470:(z,K,o)=>{o.d(K,{j:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showUpdateButton:!1,showDeleteButton:!1,searchEndpoint:T.E.BRANDS.BRAND_ENDPOINT,delEndpoint:T.E.BRANDS.BRAND_ENDPOINT},x={list:"/admin/brands",create:"/admin/brands/create",update(g){return null==g?this.create:"/admin/brands/"+g+"/update"}}},7210:(z,K,o)=>{o.d(K,{c:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.BRANDS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.BRANDS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.BRANDS.CREATE():T.E.BRANDS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},5081:(z,K,o)=>{o.d(K,{P:()=>y});var d=o(5879),T=o(8637),c=o(7259),x=o(8174),g=o(2771),t=o(2134),A=o(30),B=o(1662),l=o(6945),e=o(4120),E=o(8675),u=o(6814),N=o(6223),S=o(4736),U=o(4807);function C(h,M){1&h&&d._UZ(0,"util-progress",4),2&h&&d.Q6J("bar",!0)}const b=function(){return{standalone:!0}};let y=(()=>{class h extends T.H{componentName(){return"CategorySelectComponent"}constructor(f,P,I,Z,V){super(f,P,I),this.categoryService=Z,this.popupService=V,this.searchEndpoint=g.E.CATEGORIES.CATEGORY_ENDPOINT_V2,this.categories=[],this.selectedItem=null,this.selected=new d.vpe,this.searchEndpoint=g.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN_V2}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(f){let P=x.g.removeSpecialCharacters(f.target?.value);P.length>2&&this.search({page:0,size:10,q:P})}onSelected(f){this.categories.find(P=>P.name==f.name)?this.selected.emit(this.selectedItem):this.popupService.open(t.I,{id:null,name:f.name}).componentInstance.onCompleted.subscribe(I=>{this.selected.emit(I)})}search(f){this.loading=!0;let P=this.componentKey(c.Z.CATEGORIES.SEARCH_CATEGORIES_FOR_FILTER());this.categoryService.search(P,this.searchEndpoint,f),this.subscribe(P,null,(I,Z)=>{this.categories=Z.data.content,this.loading=!1})}static#e=this.\u0275fac=function(P){return new(P||h)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.H),d.Y36(E.x))};static#_=this.\u0275cmp=d.Xpm({type:h,selectors:[["app-category-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let f;return f="\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF",[["for","autoSizingInput2",1,"visually-hidden"],f,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(P,I){1&P&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,C,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(V){return I.searchForEvent(V)})("ngModelChange",function(V){return I.selectedItem=V})("change",function(V){return I.onSelected(V)}),d.qZA()),2&P&&(d.xp6(2),d.Q6J("ngIf",I.loading),d.xp6(1),d.s9C("placeholder",I.translations["Search Category.."]),d.Q6J("items",I.categories)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",I.selectedItem)("ngModelOptions",d.DdM(8,b)))},dependencies:[u.O5,N.JJ,S.t,U.w9,N.On]})}return h})()},2134:(z,K,o)=>{o.d(K,{I:()=>N});var d=o(2642),T=o(6223),c=o(7700),x=o(7259),g=o(4201),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(4120),E=o(5462);function u(S,U){1&S&&t._UZ(0,"util-progress",32),2&S&&t.Q6J("bar",!0)}let N=(()=>{class S extends g.C{constructor(C,b,y,h,M,f,P){super(C,b,y,h,P),this.categoryService=M,this.notifier=f,this.config=d.o,this.selectedParent=null,this.categoryForm=new T.cw({name:new T.NI("",[T.kI.required,T.kI.minLength(3)]),description:new T.NI("",[]),parent_id:new T.NI(null),image:new T.NI(null),update_attributes_for_children:new T.NI(!1)}),null!=P.name&&this.categoryForm.controls.name.setValue(P.name)}componentName(){return"CategoryUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Categorys",link:"/admin/categorys",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(C){this.loading=!0;let b=this.componentKey(x.Z.PRODUCT_CATEGORIES.GET(C));this.categoryService.fetchSingle(b,C),this.subscribe(b,null,(y,h)=>{this.loading=!1,this.populateForm(h.data)}),this.subscribe(this.getErrorKey(b),null,(y,h)=>{console.log(h.data),this.loading=!1})}onSubmit(){this.categoryForm.valid&&this.upsert(this.exId)}onImgUploaded(C){C.length>0&&this.categoryForm.controls.image.setValue(C[0].image_url)}getExImages(){let C=this.categoryForm.controls.image.value;return null==C?[]:[{image_url:C,thumb_url:C}]}getConfig(){return this.config}getListPageRoute(){return d.n.list}upsert(C){this.loading=!0;let b=this.componentKey(x.Z.PRODUCT_CATEGORIES.UPSERT(C));this.categoryService.upsert(b,this.categoryForm.value,C),this.subscribe(b,null,(y,h)=>{this.categoryForm.reset(),this.onSuccess(h.data)}),this.subscribe(this.getErrorKey(b),null,(y,h)=>{let M=h.data;this.loading=!1,this.notifier.warning("Failed!",M.error.message)})}populateForm(C){this.selectedParent=C.parent,this.categoryForm.controls.name.setValue(C.name),this.categoryForm.controls.description.setValue(C.description),this.categoryForm.controls.parent_id.setValue(null==C.parent?null:C.parent.id),this.categoryForm.controls.image.setValue(null==C.image?null:C.image)}onParentSelected(C){this.selectedParent=C,this.categoryForm.controls.parent_id.setValue(null==C?null:C.id)}static#e=this.\u0275fac=function(b){return new(b||S)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.H),t.Y36(E.l),t.Y36(c.WI))};static#_=this.\u0275cmp=t.Xpm({type:S,selectors:[["app-category-upsert"]],features:[t.qOj],decls:40,vars:13,consts:function(){let C,b,y,h,M,f,P;return C="\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF \u09A4\u09C8\u09B0\u09BF/\u0986\u09AA\u09A1\u09C7\u099F \u0995\u09B0\u09C1\u09A8",b="\u09A8\u09BE\u09AE",y="\u09AA\u09CD\u09AF\u09BE\u09B0\u09C7\u09A8\u09CD\u099F",h="\u09AC\u09BF\u09AC\u09B0\u09A3",M="\u09B8\u09A8\u09CD\u09A4\u09BE\u09A8\u09C7\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A1\u09C7\u099F \u0995\u09B0\u09C1\u09A8",f="\u09AC\u09BE\u09A4\u09BF\u09B2",P="\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],C,[3,"formGroup"],[1,"row","mb-3"],[1,"col-6","col-sm-6"],["for","title-input",1,"form-label"],b,[1,"error"],["type","text","id","title-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","parent",1,"form-label"],y,["id","parent",3,"searchEndpoint","selectedItem","selected"],[1,"mb-3"],["for","description",1,"form-label"],h,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"form-check"],["type","checkbox","id","gridCheck","name","update_attributes_for_children","formControlName","update_attributes_for_children",1,"form-check-input"],["for","gridCheck",1,"form-check-label"],M,[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],f,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],P,[3,"bar"]]},template:function(b,y){1&b&&(t.YNc(0,u,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",8)(9,"div",9)(10,"label",10)(11,"span"),t.SDv(12,11),t.qZA(),t.TgZ(13,"em",12),t._uU(14,"*"),t.qZA()(),t._UZ(15,"input",13),t.TgZ(16,"em",14),t._uU(17),t.qZA()(),t.TgZ(18,"div",9)(19,"label",15),t.SDv(20,16),t.qZA(),t.TgZ(21,"app-category-select",17),t.NdJ("selected",function(M){return y.onParentSelected(M)}),t.qZA()()(),t.TgZ(22,"div",18)(23,"label",19),t.SDv(24,20),t.qZA(),t._UZ(25,"textarea",21),t.qZA(),t.TgZ(26,"app-file-picker",22),t.NdJ("onUploaded",function(M){return y.onImgUploaded(M)}),t.qZA(),t.TgZ(27,"div",8)(28,"div",18)(29,"div",23),t._UZ(30,"input",24),t.TgZ(31,"label",25),t.SDv(32,26),t.qZA()()()(),t.TgZ(33,"div",27)(34,"button",28),t.NdJ("click",function(){return y.onCancel()}),t.TgZ(35,"span"),t.SDv(36,29),t.qZA()(),t.TgZ(37,"button",30),t.NdJ("click",function(){return y.onSubmit()}),t.TgZ(38,"span"),t.SDv(39,31),t.qZA()()()()()()()()),2&b&&(t.Q6J("ngIf",y.loading),t.xp6(1),t.Q6J("@loaded",!y.loading),t.xp6(6),t.Q6J("formGroup",y.categoryForm),t.xp6(8),t.s9C("placeholder",y.translations["Enter Name"]),t.xp6(2),t.hij(" ",y.errMsg(y.categoryForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.Q6J("searchEndpoint",y.config.endpointV2)("selectedItem",y.selectedParent),t.xp6(4),t.s9C("placeholder",y.translations["Enter Description"]),t.xp6(1),t.s9C("title",y.translations.Image),t.Q6J("multiSelect",!1)("existingImages",y.getExImages())("required",!1),t.xp6(11),t.Q6J("ngClass",y.categoryForm.valid?"":"disabled"))}})}return S})()},2642:(z,K,o)=>{o.d(K,{n:()=>x,o:()=>c});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,showUpdateButton:!1,endpoint:T.E.CATEGORIES.CATEGORY_ENDPOINT,endpointV2:T.E.CATEGORIES.CATEGORY_ENDPOINT_V2,delEndpoint:T.E.CATEGORIES.CATEGORY_ENDPOINT},x={list:"/admin/inventory/categories",getChildren:g=>"/admin/inventory/categories?parent_id="+g,create:"/admin/inventory/categories/create",update(g){return null==g?this.create:"/admin/inventory/categories/"+g+"/update"}}},4120:(z,K,o)=>{o.d(K,{H:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.CATEGORIES.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.CATEGORIES.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}fetchMultiple(E,u){this.http.get(T.E.CATEGORIES.GET_MULTIPLE(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchMultiple(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.CATEGORIES.CREATE():T.E.CATEGORIES.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},756:(z,K,o)=>{o.d(K,{t:()=>h});var d=o(5879),T=o(8637),c=o(8174),x=o(7259),g=o(2771),t=o(4381),A=o(30),B=o(1662),l=o(6945),e=o(8480),E=o(6501),u=o(8675),N=o(6814),S=o(6223),U=o(4736),C=o(4807);function b(M,f){1&M&&d._UZ(0,"util-progress",4),2&M&&d.Q6J("bar",!0)}const y=function(){return{standalone:!0}};let h=(()=>{class M extends T.H{componentName(){return"FAttributeSelectComponent"}constructor(P,I,Z,V,q,_e){super(P,I,Z),this.filterableAttributeService=q,this.popupService=_e,this.searchEndpoint=g.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new d.vpe,V.isAdmin()&&(this.searchEndpoint=g.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(P){let I=c.g.removeSpecialCharacters(P.target?.value);I.length>2&&this.search({page:0,size:10,q:I})}onSelected(P){this.items.find(I=>I.name==P.name)?this.selected.emit(this.selectedItem):this.popupService.open(t.V,{id:null,name:P.name,dialogUpsert:!0}).componentInstance.onCompleted.subscribe(Z=>{this.selected.emit(Z)})}search(P){this.loading=!0;let I=this.componentKey(x.Z.FILTERABLEATTRIBUTES.SEARCH(P));this.filterableAttributeService.search(I,this.searchEndpoint,P),this.subscribe(I,null,(Z,V)=>{this.items=V.data.content,this.loading=!1})}static#e=this.\u0275fac=function(I){return new(I||M)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.e),d.Y36(E.C),d.Y36(u.x))};static#_=this.\u0275cmp=d.Xpm({type:M,selectors:[["app-fa-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let P;return P="\u09AB\u09BF\u09B2\u09CD\u099F\u09BE\u09B0 \u098F\u099F\u09CD\u09B0\u09BF\u09AC\u09BF\u0989\u099F",[["for","autoSizingInput2",1,"visually-hidden"],P,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(I,Z){1&I&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,b,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(q){return Z.searchForEvent(q)})("ngModelChange",function(q){return Z.selectedItem=q})("change",function(q){return Z.onSelected(q)}),d.qZA()),2&I&&(d.xp6(2),d.Q6J("ngIf",Z.loading),d.xp6(1),d.s9C("placeholder",Z.translations["Search Attributes.."]),d.Q6J("items",Z.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",Z.selectedItem)("ngModelOptions",d.DdM(8,y)))},dependencies:[N.O5,S.JJ,U.t,C.w9,S.On]})}return M})()},4381:(z,K,o)=>{o.d(K,{V:()=>b});var d=o(6223),T=o(9870),c=o(231),x=o(7700),g=o(7259),t=o(8174),A=o(5879),B=o(30),l=o(1662),e=o(6945),E=o(6501),u=o(5462),N=o(6814),S=o(4736);function U(y,h){1&y&&A._UZ(0,"util-progress",21),2&y&&A.Q6J("bar",!0)}function C(y,h){if(1&y){const M=A.EpF();A.TgZ(0,"div",22)(1,"div",23),A._UZ(2,"input",24),A.qZA(),A.TgZ(3,"div",25)(4,"a",26)(5,"i",27),A.NdJ("click",function(){const I=A.CHM(M).index,Z=A.oxw();return A.KtG(Z.removeValue(I))}),A.qZA()()()()}if(2&y){const M=h.$implicit,f=h.index;A.xp6(2),A.Q6J("formControl",M)("id","value_"+f)}}let b=(()=>{class y extends T.n{get valuesArrayControls(){return this.filterableAttributeForm.get("values").controls.filter(M=>M instanceof d.NI)}addValueControl(M){const f=new d.NI(M,d.kI.required);this.filterableAttributeForm.get("values").push(f)}removeValue(M){this.filterableAttributeForm.get("values").removeAt(M)}constructor(M,f,P,I,Z,V,q){super(M,f,P,I,q),this.filterableAttributeService=Z,this.notifier=V,this.config=c.I,this.filterableAttributeForm=new d.cw({name:new d.NI("",[d.kI.required,d.kI.minLength(3)]),code:new d.NI("",[d.kI.required,d.kI.minLength(3)]),values:new d.Oe([],d.kI.required)}),null!=q.name&&(this.filterableAttributeForm.controls.name.setValue(q.name),this.filterableAttributeForm.controls.code.setValue(t.g.codify(q.name)))}componentName(){return"FilterableAttributeUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"FilterableAttributes",link:"/admin/filterableattributes",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.filterableAttributeForm.controls.name.valueChanges.subscribe(M=>{null!=M&&this.filterableAttributeForm.controls.code.setValue(t.g.codify(M))}),null==this.exId&&(this.addValueControl(""),this.addValueControl(""))}initialize(M){this.loading=!0;let f=this.componentKey(g.Z.FILTERABLEATTRIBUTES.GET(M));this.filterableAttributeService.fetchSingle(f,M),this.subscribe(f,null,(P,I)=>{this.loading=!1,this.populateForm(I.data)}),this.subscribe(this.getErrorKey(f),null,(P,I)=>{console.log(I.data),this.loading=!1})}onSubmit(){this.filterableAttributeForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return c.n.list}upsert(M){this.loading=!0;let f=this.componentKey(g.Z.FILTERABLEATTRIBUTES.UPSERT(M));this.filterableAttributeService.upsert(f,this.filterableAttributeForm.value,M),this.subscribe(f,null,(P,I)=>{this.filterableAttributeForm.reset(),this.onSuccess(I.data)}),this.subscribe(this.getErrorKey(f),null,(P,I)=>{let Z=I.data;this.loading=!1,this.notifier.warning("Failed!",Z.error.message)})}populateForm(M){this.filterableAttributeForm.controls.name.setValue(M.name),this.filterableAttributeForm.controls.code.setValue(M.code),M.values.forEach(f=>{this.addValueControl(f)})}static#e=this.\u0275fac=function(f){return new(f||y)(A.Y36(B.Y),A.Y36(l.F0),A.Y36(e.z),A.Y36(l.gz),A.Y36(E.C),A.Y36(u.l),A.Y36(x.WI))};static#_=this.\u0275cmp=A.Xpm({type:y,selectors:[["app-filterableattribute-upsert"]],features:[A.qOj],decls:40,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"row","mb-3"],[1,"col-6"],["for","name-input",1,"form-label"],[1,"error"],["type","text","id","name-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],["type","text","id","code-input","placeholder","Enter Code","name","code","formControlName","code",1,"form-control"],["formArrayName","values"],["class","row mb-2",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-info",3,"click"],[1,"mdi","mdi-plus","font-size-16"],[1,"d-flex","flex-wrap","gap-3","mt-2","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],[1,"row","mb-2"],[1,"col-11"],["type","text","placeholder","Enter value",1,"form-control",3,"formControl","id"],[1,"col-1","d-flex","align-items-center","justify-content-center"],["href","javascript: void(0);"],[1,"bx","bx-x-circle","text-danger","font-size-20",3,"click"]],template:function(f,P){1&f&&(A.YNc(0,U,1,1,"util-progress",0),A.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),A._uU(6,"Create/Update FilterableAttribute"),A.qZA(),A.TgZ(7,"form",6)(8,"div",7)(9,"div",8)(10,"label",9),A._uU(11,"Name"),A.TgZ(12,"em",10),A._uU(13,"*"),A.qZA()(),A._UZ(14,"input",11),A.TgZ(15,"em",12),A._uU(16),A.qZA()(),A.TgZ(17,"div",8)(18,"label",9),A._uU(19,"Code"),A.TgZ(20,"em",10),A._uU(21,"*"),A.qZA()(),A._UZ(22,"input",13),A.TgZ(23,"em",12),A._uU(24),A.qZA()()(),A.TgZ(25,"div",14)(26,"label",9),A._uU(27,"Enter Values"),A.TgZ(28,"em",10),A._uU(29,"*"),A.qZA()(),A._UZ(30,"br"),A.YNc(31,C,6,2,"div",15),A.TgZ(32,"button",16),A.NdJ("click",function(){return P.addValueControl("")}),A._UZ(33,"i",17),A._uU(34," Add "),A.qZA()(),A.TgZ(35,"div",18)(36,"button",19),A.NdJ("click",function(){return P.onCancel()}),A._uU(37," Cancel "),A.qZA(),A.TgZ(38,"button",20),A.NdJ("click",function(){return P.onSubmit()}),A._uU(39," Submit "),A.qZA()()()()()()()),2&f&&(A.Q6J("ngIf",P.loading),A.xp6(1),A.Q6J("@loaded",!P.loading),A.xp6(6),A.Q6J("formGroup",P.filterableAttributeForm),A.xp6(9),A.hij(" ",P.errMsg(P.filterableAttributeForm,"name","minLength","Name should be at least 3 characters!")," "),A.xp6(8),A.hij(" ",P.errMsg(P.filterableAttributeForm,"code","minLength","Code should be at least 3 characters!")," "),A.xp6(7),A.Q6J("ngForOf",P.valuesArrayControls),A.xp6(7),A.Q6J("ngClass",P.filterableAttributeForm.valid?"":"disabled"))},dependencies:[N.mk,N.sg,N.O5,d._Y,d.Fj,d.JJ,d.JL,d.oH,d.sg,d.u,d.CE,S.t]})}return y})()},231:(z,K,o)=>{o.d(K,{I:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:T.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT,delEndpoint:T.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT},x={list:"/admin/filterable-attributes",create:"/admin/filterable-attributes/create",update(g){return null==g?this.create:"/admin/filterable-attributes/"+g+"/update"}}},6501:(z,K,o)=>{o.d(K,{C:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.FILTERABLEATTRIBUTES.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.FILTERABLEATTRIBUTES.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.FILTERABLEATTRIBUTES.CREATE():T.E.FILTERABLEATTRIBUTES.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},2771:(z,K,o)=>{o.d(K,{E:()=>c});var d=o(2495),T=o(553);class c extends d.O{static#e=this.CATEGORIES={CATEGORY_ENDPOINT:T.N.base_url+"/api/v1/categories",CATEGORY_ENDPOINT_V2:T.N.base_url+"/api/v2/categories",CATEGORY_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/categories",CATEGORY_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/categories",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.CATEGORY_ENDPOINT},GET(g){return this.CATEGORY_ENDPOINT+"/"+g},GET_MULTIPLE(g){return this.CATEGORY_ENDPOINT+"/multiple/by-ids?ids="+g.join(",")},UPDATE(g){return this.CATEGORY_ENDPOINT+"/"+g}};static#_=this.ATTRIBUTES={ATTRIBUTE_ENDPOINT:T.N.base_url+"/api/v1/attributes",ATTRIBUTE_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/admin/attributes",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.ATTRIBUTE_ENDPOINT},GET(g){return this.ATTRIBUTE_ENDPOINT+"/"+g},UPDATE(g){return this.ATTRIBUTE_ENDPOINT+"/"+g}};static#t=this.FILTERABLEATTRIBUTES={FILTERABLEATTRIBUTE_ENDPOINT:T.N.base_url+"/api/v1/filterable-attributes",FILTERABLEATTRIBUTE_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/filterable-attributes",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.FILTERABLEATTRIBUTE_ENDPOINT},GET(g){return this.FILTERABLEATTRIBUTE_ENDPOINT+"/"+g},UPDATE(g){return this.FILTERABLEATTRIBUTE_ENDPOINT+"/"+g}};static#i=this.BRANDS={BRAND_ENDPOINT:T.N.base_url+"/api/v1/brands",BRAND_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/brands",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.BRAND_ENDPOINT},GET(g){return this.BRAND_ENDPOINT+"/"+g},UPDATE(g){return this.BRAND_ENDPOINT+"/"+g}};static#n=this.VARIATIONS={VARIATION_ENDPOINT:T.N.base_url+"/api/v1/variations",VARIATION_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/variations",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.VARIATION_ENDPOINT},GET(g){return this.VARIATION_ENDPOINT+"/"+g},UPDATE(g){return this.VARIATION_ENDPOINT+"/"+g}};static#o=this.PRODUCTS={PRODUCT_ENDPOINT:T.N.base_url+"/api/v1/products",PRODUCT_ENDPOINT_V2:T.N.base_url+"/api/v2/products",PRODUCT_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/products",PRODUCT_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/products",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE:g=>g,GET:(g,t)=>g+"/"+t,UPDATE:(g,t)=>g+"/"+t,APPROVE:(g,t,A)=>g+"/"+t+"/approve?approved="+A};static#s=this.PRODUCTSPECIFICATIONS={PRODUCTSPECIFICATION_ENDPOINT:T.N.base_url+"/api/v1/productspecifications",PRODUCTSPECIFICATION_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/productspecifications",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.PRODUCTSPECIFICATION_ENDPOINT},GET(g){return this.PRODUCTSPECIFICATION_ENDPOINT+"/"+g},UPDATE(g){return this.PRODUCTSPECIFICATION_ENDPOINT+"/"+g}};static#r=this.STOCKS={STOCK_ENDPOINT:T.N.base_url+"/api/v1/stocks",STOCK_ENDPOINT_V2:T.N.base_url+"/api/v2/stocks",STOCK_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/stocks",STOCK_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/stocks",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.STOCK_ENDPOINT_V2},GET:(g,t)=>g+"/"+t,GET_BY_SKU:(g,t)=>g+"/by-sku/"+t,UPDATE(g){return this.STOCK_ENDPOINT_V2+"/"+g}};static#l=this.VENDORS={VENDOR_ENDPOINT:T.N.base_url+"/api/v1/vendors",VENDOR_ENDPOINT_V2:T.N.base_url+"/api/v2/vendors",VENDOR_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/vendors",VENDOR_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/vendors",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),MY_VENDORS:(g,t)=>g.concat("/my-vendors").concat(d.O.toParamString(t)),CREATE(){return this.VENDOR_ENDPOINT},GET(g){return this.VENDOR_ENDPOINT_V2+"/"+g},TOGGLE_APPROVAL(g,t){return this.VENDOR_ENDPOINT+"/"+g+"/approve?approved="+t},UPDATE(g){return this.VENDOR_ENDPOINT+"/"+g},SEARCH_CUSTOMERS(g){return this.VENDOR_ENDPOINT_V2+"/my-vendors/search-customers".concat(d.O.toParamString(g))}}}},5326:(z,K,o)=>{o.r(K),o.d(K,{InventoryModule:()=>wn});var d=o(6814),T=o(1662),c=o(2134),x=o(2642),g=o(6542),t=o(1855),A=o(7259),B=o(2771),l=o(5095),e=o(5879),E=o(30),u=o(6945),N=o(8480),S=o(8675),U=o(4120),C=o(5462),b=o(4736),y=o(1836),h=o(6075),M=o(9582),f=o(3383),P=o(2770);function I(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Z(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function V(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function q(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Z,2,0,"h4",16),e.YNc(8,V,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function _e(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function Te(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function Oe(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,43),e.qZA())}function me(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function ge(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"a",48),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",49),e.qZA()()}}function Ne(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"app-delete",50),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Ae(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,me,2,1,"td",7),e.TgZ(4,"td"),e._UZ(5,"img",44),e.qZA(),e.TgZ(6,"td")(7,"a",45),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e._uU(8),e.qZA()(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.YNc(21,ge,3,0,"td",46),e.YNc(22,Ne,2,1,"td",46),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(2),e.s9C("src",_.image,e.LSH),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.parent_name),e.xp6(3),e.Oqu(e.lcZ(16,10,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,12,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function $(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,_e,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.YNc(25,Te,2,0,"th",7),e.YNc(26,Oe,2,0,"th",7),e.qZA()(),e.TgZ(27,"tbody"),e.YNc(28,Ae,23,14,"tr",40),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.categories.content)}}function de(i,a){if(1&i&&(e.TgZ(0,"div",68),e._UZ(1,"img",44),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function O(i,a){if(1&i&&(e.TgZ(0,"div",69)(1,"span",70),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function D(i,a){if(1&i&&(e.TgZ(0,"h6",71),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function v(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("Parent: ",_.parent_name,"")}}function p(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e.SDv(2,74),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function R(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,75),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function L(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",76)(1,"a",45),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",77),e.qZA()()}}function J(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",76)(1,"app-delete",78),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Q(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",52)(1,"div",53),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e.TgZ(2,"div",28),e.YNc(3,de,2,1,"div",54),e.YNc(4,O,3,1,"div",55),e.TgZ(5,"h5",56)(6,"a",57),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e._uU(7),e.qZA()(),e.YNc(8,D,2,1,"h6",58),e.YNc(9,v,2,1,"h6",59),e.TgZ(10,"div",0)(11,"div",60)(12,"p",61)(13,"small")(14,"b"),e.SDv(15,62),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",60)(20,"p",63),e.YNc(21,p,6,3,"small",64),e.YNc(22,R,6,0,"small",64),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA()(),e.TgZ(25,"div",65)(26,"div",66),e.YNc(27,L,3,0,"div",67),e.YNc(28,J,2,2,"div",67),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(1),e.Q6J("ngIf",_.parent_name),e.xp6(8),e.Oqu(e.lcZ(18,11,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(3),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function j(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Q,29,13,"div",51),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.categories.content)}}function pe(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,$,29,6,"div",25),e.YNc(2,j,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let Ee=(()=>{class i extends l.e{componentName(){return"CategoryListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.categoryService=F,this.notifier=w,this.config=x.o,this.categories=g.H,r.isAdmin()&&(this.config.endpoint=B.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN,this.config.endpointV2=B.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN_V2,this.config.showDeleteButton=!0,this.config.showUpdateButton=!0)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_),s=_.parent_id?parseInt(_.parent_id):null;this.fetchCategories({q:n.query,parent_id:s,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return this.breadcrumbItems}fetchCategories(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCT_CATEGORIES.SEARCH(_));this.categoryService.search(n,this.config.endpointV2,_),this.subscribe(n,null,(s,r)=>{this.categories=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}getMultipleByIds(_){this.loading=!0;const n=this.componentKey(A.Z.CATEGORIES.GET_MULTIPLE(_));this.categoryService.fetchMultiple(n,_),this.subscribe(n,null,(s,r)=>{let Y=[{text:"Categories",link:x.n.list,active:!1}];r.data.map(F=>{Y.push({text:F.name,link:x.n.getChildren(F.id),active:!1})}),this.breadcrumbItems=Y,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Category is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:x.n.create,update:_=>x.n.update(_),params:{}}}getUpsertComponent(){return c.I}onCategoryClick(_){this.navigateByUrl(x.n.getChildren(_.id),n=>{this.getMultipleByIds(_.absolute_path.split(":").map(s=>parseInt(s)))})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(U.H),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-category-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W;return _="\u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09A5\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE \u0995\u09B0\u09C1\u09A8..",n="\u0995\u09CB\u09A8 \u0986\u0987\u099F\u09C7\u09AE \u09A8\u09C7\u0987",s="\u0986\u09AE\u09BE\u09B0 \u09A4\u09C8\u09B0\u09BF\u0995\u09C3\u09A4 \u0995\u09CD\u09AF\u09BE\u099F\u09C7\u0997\u09B0\u09BF\u0997\u09C1\u09B2\u09CB",r="Id",m="\u099B\u09AC\u09BF",Y="\u09A8\u09BE\u09AE",F="\u09AC\u09BF\u09AC\u09B0\u09A3",w="\u09AA\u09CD\u09AF\u09BE\u09B0\u09C7\u09A8\u09CD\u099F",oe="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",se="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",re="\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",le="\u0986\u09AA\u09A1\u09C7\u099F",ae="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",ce="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",X="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",W="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,[4,"ngFor","ngForOf"],re,le,ae,["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center",3,"click"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],["class","font-size-10 text-primary",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ce,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-10","text-info"],[1,"font-size-10","text-primary"],[1,"font-size-10"],X,W,[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,I,1,1,"util-progress",5),e.YNc(8,q,13,2,"div",6),e.YNc(9,pe,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Categories)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.categories.empty),e.xp6(1),e.Q6J("ngIf",!s.categories.empty),e.xp6(1),e.Q6J("page",s.categories))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})();var k=o(9538),ue=o(2159),Se=o(6405);let ne={defaultLayout:Se.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT,delEndpoint:B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT},Re={list:"/admin/attributes",create:"/admin/attributes/create",update(i){return null==i?this.create:"/admin/attributes/"+i+"/update"}};var G=o(6223),Ce=o(9870),fe=o(7700),H=o(1547),Ye=o(9862);let Ve=(()=>{class i extends H.b{constructor(_,n,s,r){super(_,n),this.http=s,this.eventBusService=r}search(_,n,s){let r=B.E.ATTRIBUTES.SEARCH(n,s);this.http.get(r).subscribe(m=>{this.eventBusService.publish(_,m)},m=>{this.handleError(m,Y=>{this.search(_,n,s)},Y=>{this.eventBusService.publish(this.getErrorKey(_),Y)})})}fetchSingle(_,n){this.http.get(B.E.ATTRIBUTES.GET(n)).subscribe(s=>{this.eventBusService.publish(_,s)},s=>{this.handleError(s,r=>{this.fetchSingle(_,n)},r=>{this.eventBusService.publish(this.getErrorKey(_),r)})})}upsert(_,n,s){let r=null==s?B.E.ATTRIBUTES.CREATE():B.E.ATTRIBUTES.UPDATE(s);(null==s?this.http.post(r,n):this.http.patch(r,n)).subscribe(Y=>{this.eventBusService.publish(_,Y)},Y=>{this.handleError(Y,F=>{this.upsert(_,n,s)},F=>{this.eventBusService.publish(this.getErrorKey(_),F)})})}static#e=this.\u0275fac=function(n){return new(n||i)(e.LFG(N.e),e.LFG(C.l),e.LFG(Ye.eN),e.LFG(E.Y))};static#_=this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Qe(i,a){1&i&&e._UZ(0,"util-progress",18),2&i&&e.Q6J("bar",!0)}let Ie=(()=>{class i extends Ce.n{constructor(_,n,s,r,m,Y,F){super(_,n,s,r,F),this.attributeService=m,this.notifier=Y,this.config=ne,this.attributeForm=new G.cw({name:new G.NI("",[G.kI.required,G.kI.minLength(3)]),description:new G.NI("",[G.kI.required,G.kI.minLength(20)]),priority_level:new G.NI(1,[G.kI.min(0),G.kI.max(10)])})}componentName(){return"AttributeUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Attributes",link:"/admin/attributes",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(_){this.loading=!0;let n=this.componentKey(A.Z.ATTRIBUTES.GET(_));this.attributeService.fetchSingle(n,_),this.subscribe(n,null,(s,r)=>{this.loading=!1,this.populateForm(r.data)}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{console.log(r.data),this.loading=!1})}onSubmit(){this.attributeForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return Re.list}upsert(_){this.loading=!0;let n=this.componentKey(A.Z.ATTRIBUTES.UPSERT(_));this.attributeService.upsert(n,this.attributeForm.value,_),this.subscribe(n,null,(s,r)=>{this.loading=!1;let m="Attribute has been "+(_?"updated":"created");this.notifier.success("Success",m),this.attributeForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(r.data):this.navigate(Re.list,Y=>{this.notifier.success("Success!",m)})}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{let m=r.data;this.loading=!1,this.notifier.warning("Failed!",m.error.message)})}populateForm(_){this.attributeForm.controls.name.setValue(_.name),this.attributeForm.controls.description.setValue(_.description),this.attributeForm.controls.priority_level.setValue(_.priority_level)}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(T.gz),e.Y36(Ve),e.Y36(C.l),e.Y36(fe.WI))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute-upsert"]],features:[e.qOj],decls:33,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],[1,"error"],["type","text","id","title-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],["for","description",1,"form-label"],["id","description","placeholder","Enter Description","rows","5","name","description","formControlName","description",1,"form-control"],["type","number","id","priority_level","placeholder","Priority Level","name","priority_level","formControlName","priority_level",1,"form-control"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(n,s){1&n&&(e.YNc(0,Qe,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update Attribute"),e.qZA(),e.TgZ(7,"form",6)(8,"div",7)(9,"label",8),e._uU(10,"Name"),e.TgZ(11,"em",9),e._uU(12,"*"),e.qZA()(),e._UZ(13,"input",10),e.TgZ(14,"em",11),e._uU(15),e.qZA()(),e.TgZ(16,"div",7)(17,"label",12),e._uU(18,"Description"),e.qZA(),e._UZ(19,"textarea",13),e.TgZ(20,"em",11),e._uU(21),e.qZA()(),e.TgZ(22,"div",7)(23,"label",12),e._uU(24,"Priority Level"),e.qZA(),e._UZ(25,"input",14),e.TgZ(26,"em",11),e._uU(27),e.qZA()(),e.TgZ(28,"div",15)(29,"button",16),e.NdJ("click",function(){return s.onCancel()}),e._uU(30," Cancel "),e.qZA(),e.TgZ(31,"button",17),e.NdJ("click",function(){return s.onSubmit()}),e._uU(32," Submit "),e.qZA()()()()()()()),2&n&&(e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("@loaded",!s.loading),e.xp6(6),e.Q6J("formGroup",s.attributeForm),e.xp6(8),e.hij(" ",s.errMsg(s.attributeForm,"name","minLength","Title should be at least 4 characters!")," "),e.xp6(6),e.hij(" ",s.errMsg(s.attributeForm,"description","minLength","Description should be at least 20 characters!")," "),e.xp6(6),e.hij(" ",s.errMsg(s.attributeForm,"priority_level","min","Priority must be between 0 to 10")," "),e.xp6(4),e.Q6J("ngClass",s.attributeForm.valid?"":"disabled"))},dependencies:[d.mk,d.O5,G._Y,G.Fj,G.wV,G.JJ,G.JL,G.sg,G.u,b.t]})}return i})();function we(i,a){1&i&&e._UZ(0,"util-progress",8),2&i&&e.Q6J("bar",!0)}function ke(i,a){1&i&&(e.TgZ(0,"h4",20),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function ze(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"No items"),e.qZA())}function Xe(i,a){if(1&i&&(e.TgZ(0,"div",9)(1,"div",10)(2,"div",0)(3,"div",11)(4,"div",12)(5,"h1",13),e._UZ(6,"i",14),e.qZA(),e.YNc(7,ke,2,0,"h4",15),e.YNc(8,ze,2,0,"h4",16),e.qZA()()(),e.TgZ(9,"div",17)(10,"div",18)(11,"div"),e._UZ(12,"img",19),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function We(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function je(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function He(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function e_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",32)(1,"app-delete",36),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function __(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,He,2,1,"td",7),e.TgZ(4,"td")(5,"a",31),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.TgZ(19,"td",32)(20,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(21,"i",34),e.qZA()(),e.YNc(22,e_,2,1,"td",35),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.priority_level),e.xp6(3),e.Oqu(e.lcZ(14,8,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function t_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"Attributes that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,We,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Name"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Description"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Priority Level"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Created At"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Last Updated"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Update"),e.qZA(),e.YNc(25,je,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,__,23,12,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.attributes.content)}}function i_(i,a){if(1&i&&(e.TgZ(0,"h6",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function n_(i,a){if(1&i&&(e.TgZ(0,"small",57)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function o_(i,a){1&i&&(e.TgZ(0,"small",57),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function s_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",53)(1,"app-delete",58),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function r_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",38)(1,"div",39)(2,"div",26)(3,"div",40)(4,"span",41),e._uU(5),e.qZA()(),e.TgZ(6,"h5",42)(7,"a",43),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,i_,2,1,"h6",44),e.TgZ(10,"div",0)(11,"div",45)(12,"p",46)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",45)(20,"p",47),e.YNc(21,n_,6,3,"small",48),e.YNc(22,o_,6,0,"small",48),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",49)(27,"label",50),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",51)(30,"div",52)(31,"div",53)(32,"a",31),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(33,"i",54),e.qZA()(),e.YNc(34,s_,2,2,"div",55),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(4),e.Oqu(_.priority_level),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function l_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,r_,35,11,"div",37),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.attributes.content)}}function a_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,t_,28,5,"div",22),e.YNc(2,l_,2,3,"div",22),e._UZ(3,"app-pagination",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID),e.xp6(1),e.Q6J("page",_.attributes)}}let c_=(()=>{class i extends ue.R{componentName(){return"AttributeListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.attributeService=F,this.notifier=w,this.config=ne,this.attributes=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchAttributes({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Attributes",link:null,active:!0}]}fetchAttributes(_){this.loading=!0;const n=this.componentKey(A.Z.ATTRIBUTES.SEARCH(_));this.attributeService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.attributes=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Attribute is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Re.create,update:_=>Re.update(_),params:{}}}getUpsertComponent(){return Ie}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Ve),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute-list"]],features:[e.qOj],decls:10,vars:6,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[3,"page"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,we,1,1,"util-progress",5),e.YNc(8,Xe,13,2,"div",6),e.YNc(9,a_,4,3,"div",7)),2&n&&(e.xp6(2),e.Q6J("title","Attributes")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.attributes.empty),e.xp6(1),e.Q6J("ngIf",!s.attributes.empty))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),d_=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-attribute-list")},dependencies:[c_]})}return i})();var ve=o(231),Me=o(4381),u_=o(6501);function E_(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function T_(i,a){1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.TgZ(7,"h4",16),e._uU(8,"No items"),e.qZA()()()(),e.TgZ(9,"div",17)(10,"div",18)(11,"div"),e._UZ(12,"img",19),e.qZA()()()()())}function p_(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function N_(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function S_(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function O_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",29)(1,"app-delete",33),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function m_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,S_,2,1,"td",7),e.TgZ(4,"td")(5,"a",28),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.TgZ(19,"td",29)(20,"a",30),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(21,"i",31),e.qZA()(),e.YNc(22,O_,2,1,"td",32),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.code),e.xp6(2),e.Oqu(_.values.join(", ")),e.xp6(3),e.Oqu(e.lcZ(14,8,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function g_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",21)(2,"div",22)(3,"div",23)(4,"p",24),e._uU(5,"FilterableAttributes that I've created"),e.qZA(),e.TgZ(6,"div",25)(7,"table",26)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,p_,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Name"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Description"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Values"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Created At"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Last Updated"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Update"),e.qZA(),e.YNc(25,N_,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,m_,23,12,"tr",27),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.filterableAttributes.content)}}function A_(i,a){if(1&i&&(e.TgZ(0,"h6",53),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function R_(i,a){if(1&i&&(e.TgZ(0,"small",54)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function C_(i,a){1&i&&(e.TgZ(0,"small",54),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function f_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",50)(1,"app-delete",55),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function P_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",35)(1,"div",36)(2,"div",23)(3,"div",37)(4,"span",38),e._uU(5),e.qZA()(),e.TgZ(6,"h5",39)(7,"a",40),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,A_,2,1,"h6",41),e.TgZ(10,"div",0)(11,"div",42)(12,"p",43)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",42)(20,"p",44),e.YNc(21,R_,6,3,"small",45),e.YNc(22,C_,6,0,"small",45),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",46)(27,"label",47),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",48)(30,"div",49)(31,"div",50)(32,"a",28),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(33,"i",51),e.qZA()(),e.YNc(34,f_,2,2,"div",52),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",_.values.join(", ")," "),e.xp6(4),e.Oqu(_.code),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function I_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,P_,35,11,"div",34),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.filterableAttributes.content)}}function v_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,g_,28,5,"div",20),e.YNc(2,I_,2,3,"div",20),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let M_=(()=>{class i extends ue.R{componentName(){return"FilterableAttributeListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.filterableAttributeService=F,this.notifier=w,this.config=ve.I,this.filterableAttributes=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchFilterableAttributes({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"FilterableAttributes",link:null,active:!0}]}fetchFilterableAttributes(_){this.loading=!0;const n=this.componentKey(A.Z.FILTERABLEATTRIBUTES.SEARCH(_));this.filterableAttributeService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.filterableAttributes=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","FilterableAttribute is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:ve.n.create,update:_=>ve.n.update(_),params:{}}}getUpsertComponent(){return Me.V}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(u_.C),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-filterableattribute-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],[1,"text-uppercase"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,E_,1,1,"util-progress",5),e.YNc(8,T_,13,0,"div",6),e.YNc(9,v_,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","FilterableAttributes")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.filterableAttributes.empty),e.xp6(1),e.Q6J("ngIf",!s.filterableAttributes.empty),e.xp6(1),e.Q6J("page",s.filterableAttributes))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),D_=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-filterableattribute"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-filterableattribute-list")},dependencies:[M_]})}return i})();var De=o(1470),he=o(9107),h_=o(7210);function U_(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function b_(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function L_(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function Z_(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,b_,2,0,"h4",16),e.YNc(8,L_,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function x_(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function B_(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function y_(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function K_(i,a){if(1&i&&(e.TgZ(0,"span",51),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Y_(i,a){if(1&i&&e._UZ(0,"img",52),2&i){const _=e.oxw().$implicit;e.s9C("src",_.image,e.LSH)}}function V_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"app-delete",53),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function F_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,y_,2,1,"td",7),e.TgZ(4,"td")(5,"div",43),e.YNc(6,K_,2,1,"span",44),e.YNc(7,Y_,1,1,"img",45),e.qZA()(),e.TgZ(8,"td")(9,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.TgZ(21,"td",47)(22,"a",48),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(23,"i",49),e.qZA()(),e.YNc(24,V_,2,1,"td",50),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null==_.image),e.xp6(1),e.Q6J("ngIf",null!=_.image),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(n.StringUtil.takeOnly(_.description,50)),e.xp6(3),e.Oqu(e.lcZ(16,9,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,11,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function $_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,x_,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.YNc(25,B_,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,F_,25,13,"tr",40),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.brands.content)}}function G_(i,a){if(1&i&&(e.TgZ(0,"div",70),e._UZ(1,"img",52),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function q_(i,a){if(1&i&&(e.TgZ(0,"div",71)(1,"span",51),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function J_(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function Q_(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e.SDv(2,74),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function w_(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function k_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",75)(1,"a",46),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",76),e.qZA()()}}function z_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",75)(1,"app-delete",77),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function X_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",55)(1,"div",56)(2,"div",28),e.YNc(3,G_,2,1,"div",57),e.YNc(4,q_,3,1,"div",58),e.TgZ(5,"h5",59)(6,"a",60),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,J_,2,1,"h6",61),e.TgZ(9,"div",0)(10,"div",62)(11,"p",63)(12,"small")(13,"b"),e.SDv(14,64),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",62)(19,"p",65),e.YNc(20,Q_,6,3,"small",66),e.YNc(21,w_,6,0,"small",66),e.qZA()()(),e.TgZ(22,"p"),e._uU(23),e.qZA()(),e.TgZ(24,"div",67)(25,"div",68),e.YNc(26,k_,3,0,"div",69),e.YNc(27,z_,2,2,"div",69),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(3),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function W_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,X_,28,12,"div",54),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.brands.content)}}function j_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,$_,28,5,"div",25),e.YNc(2,W_,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let H_=(()=>{class i extends ue.R{componentName(){return"BrandListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.brandService=F,this.notifier=w,this.config=De.j,this.brands=g.H,r.isAdmin()&&(this.config.showUpdateButton=!0,this.config.showDeleteButton=!0,this.config.searchEndpoint=B.E.BRANDS.BRAND_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchBrands({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Brands,link:null,active:!0}]}fetchBrands(_){this.loading=!0;const n=this.componentKey(A.Z.BRANDS.SEARCH(_));this.brandService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.brands=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Brand is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:De.n.create,update:_=>De.n.update(_),params:{}}}getUpsertComponent(){return he.l}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(h_.c),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-brand-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce;return _="\u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09A5\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE \u0995\u09B0\u09C1\u09A8..",n="\u0995\u09CB\u09A8 \u0986\u0987\u099F\u09C7\u09AE \u09A8\u09C7\u0987",s="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1 \u09B8\u09AE\u09C2\u09B9",r="Id",m="\u099B\u09AC\u09BF",Y="\u09B6\u09BF\u09B0\u09CB\u09A8\u09BE\u09AE",F="\u09AC\u09BF\u09AC\u09B0\u09A3",w="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",oe="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",se="\u0986\u09AA\u09A1\u09C7\u099F",re="\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",le="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",ae="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",ce="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,[4,"ngFor","ngForOf"],re,le,[1,"avatar-sm","mx-auto"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ae,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ce,[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,U_,1,1,"util-progress",5),e.YNc(8,Z_,13,2,"div",6),e.YNc(9,j_,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Brands)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.brands.empty),e.xp6(1),e.Q6J("ngIf",!s.brands.empty),e.xp6(1),e.Q6J("page",s.brands))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),et=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-brand"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-brand-list")},dependencies:[H_]})}return i})();var Ue=o(4968),be=o(2447),_t=o(3668);function tt(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function it(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function nt(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function ot(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,it,2,0,"h4",16),e.YNc(8,nt,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function st(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,40),e.qZA())}function rt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function lt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function at(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function ct(i,a){if(1&i&&e._UZ(0,"img",48),2&i){const _=e.oxw().$implicit;e.s9C("src",_.image,e.LSH)}}function dt(i,a){if(1&i&&(e.TgZ(0,"span",49),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function ut(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",50)(1,"a",51),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",52),e.qZA()()}}function Et(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",50)(1,"app-delete",53),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Tt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,at,2,1,"td",7),e.TgZ(4,"td")(5,"div",43),e.YNc(6,ct,1,1,"img",44),e.YNc(7,dt,2,1,"span",45),e.qZA()(),e.TgZ(8,"td")(9,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.YNc(21,ut,3,0,"td",47),e.YNc(22,Et,2,1,"td",47),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null!=_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(n.StringUtil.takeOnly(_.description,50)),e.xp6(3),e.Oqu(e.lcZ(16,10,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,12,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function pt(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,st,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.YNc(23,rt,2,0,"th",7),e.YNc(24,lt,2,0,"th",7),e.qZA()(),e.TgZ(25,"tbody"),e.YNc(26,Tt,23,14,"tr",39),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(11),e.Q6J("ngIf",_.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.variations.content)}}function Nt(i,a){if(1&i&&(e.TgZ(0,"div",72),e._UZ(1,"img",48),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function St(i,a){if(1&i&&(e.TgZ(0,"div",73)(1,"span",49),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Ot(i,a){if(1&i&&(e.TgZ(0,"h6",74),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function mt(i,a){if(1&i&&(e.TgZ(0,"small",75)(1,"b"),e.SDv(2,76),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function gt(i,a){1&i&&(e.TgZ(0,"small",75),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,77),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function At(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",69)(1,"app-delete",78),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Rt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",55)(1,"div",56)(2,"div",28),e.YNc(3,Nt,2,1,"div",57),e.YNc(4,St,3,1,"div",58),e.TgZ(5,"h5",59)(6,"a",60),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,Ot,2,1,"h6",61),e.TgZ(9,"div",0)(10,"div",62)(11,"p",63)(12,"small")(13,"b"),e.SDv(14,64),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",62)(19,"p",65),e.YNc(20,mt,6,3,"small",66),e.YNc(21,gt,6,0,"small",66),e.qZA()()(),e.TgZ(22,"p"),e._uU(23),e.qZA()(),e.TgZ(24,"div",67)(25,"div",68)(26,"div",69)(27,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(28,"i",70),e.qZA()(),e.YNc(29,At,2,2,"div",71),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ct(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Rt,30,11,"div",54),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.variations.content)}}function ft(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,pt,27,6,"div",25),e.YNc(2,Ct,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let Pt=(()=>{class i extends ue.R{componentName(){return"VariationListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.variationService=F,this.notifier=w,this.config=Ue._,this.variations=g.H,r.isAdmin()&&(this.config.showUpdateButton=!0,this.config.showDeleteButton=!0,this.config.searchEndpoint=B.E.VARIATIONS.VARIATION_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchVariations({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Variations,link:null,active:!0}]}fetchVariations(_){this.loading=!0;const n=this.componentKey(A.Z.VARIATIONS.SEARCH(_));this.variationService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.variations=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Variation is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Ue.n.create,update:_=>Ue.n.update(_),params:{}}}getUpsertComponent(){return be.s}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(_t.$),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-variation-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X;return _="\u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09A5\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE \u0995\u09B0\u09C1\u09A8..",n="\u0995\u09CB\u09A8 \u0986\u0987\u099F\u09C7\u09AE \u09A8\u09C7\u0987",s="\u09AD\u09BF\u09A8\u09CD\u09A8\u09A4\u09BE \u09AF\u09BE \u0986\u09AE\u09BF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09C7\u099B\u09BF",r="Id",m="\u099B\u09AC\u09BF",Y="\u09A8\u09BE\u09AE",F="\u09AC\u09BF\u09AC\u09B0\u09A3",w="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",oe="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",se="\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",re="\u0986\u09AA\u09A1\u09C7\u099F",le="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",ae="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",ce="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",X="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,[4,"ngFor","ngForOf"],se,re,le,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ae,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ce,X,[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,tt,1,1,"util-progress",5),e.YNc(8,ot,13,2,"div",6),e.YNc(9,ft,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Variations)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.variations.empty),e.xp6(1),e.Q6J("ngIf",!s.variations.empty),e.xp6(1),e.Q6J("page",s.variations))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),It=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-variation"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-variation-list")},dependencies:[Pt]})}return i})();var Le=o(973),Ze=o(3989),vt=o(1492);function Mt(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Dt(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function ht(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function Ut(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Dt,2,0,"h4",16),e.YNc(8,ht,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function bt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,43),e.qZA())}function Lt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,44),e.qZA())}function Zt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,45),e.qZA())}function xt(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.created_by," ")}}function Bt(i,a){if(1&i&&e._UZ(0,"img",56),2&i){const _=e.oxw().$implicit;e.s9C("src",_.images[0],e.LSH)}}function yt(i,a){if(1&i&&(e.TgZ(0,"span",57),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Kt(i,a){1&i&&e._UZ(0,"i",58)}function Yt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"a",61),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(2).$implicit,r=e.oxw(3);return e.KtG(r.onApproveClick(s.id,!s.approved))}),e._UZ(1,"i",62),e.qZA()}}function Vt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"a",63),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(2).$implicit,r=e.oxw(3);return e.KtG(r.onApproveClick(s.id,!s.approved))}),e._UZ(1,"i",62),e.qZA()}}function Ft(i,a){if(1&i&&(e.TgZ(0,"td",53),e.YNc(1,Yt,2,0,"a",59),e.YNc(2,Vt,2,0,"a",60),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",_.approved),e.xp6(1),e.Q6J("ngIf",!_.approved)}}function $t(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",53)(1,"app-delete",64),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Gt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,xt,2,1,"td",7),e.TgZ(4,"td")(5,"div",46),e.YNc(6,Bt,1,1,"img",47),e.YNc(7,yt,2,1,"span",48),e.qZA()(),e.TgZ(8,"td",49),e._uU(9),e.qZA(),e.TgZ(10,"td",49),e.YNc(11,Kt,1,0,"i",50),e.TgZ(12,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(13),e.qZA()(),e.TgZ(14,"td"),e._uU(15),e.qZA(),e.TgZ(16,"td"),e._uU(17),e.qZA(),e.TgZ(18,"td")(19,"small"),e._uU(20),e.ALo(21,"readableDate"),e.qZA()(),e.TgZ(22,"td")(23,"small"),e._uU(24),e.ALo(25,"readableDate"),e.qZA()(),e.YNc(26,Ft,3,2,"td",52),e.TgZ(27,"td",53)(28,"a",54),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(29,"i",55),e.qZA()(),e.YNc(30,$t,2,1,"td",52),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",_.images.length>0),e.xp6(1),e.Q6J("ngIf",0==_.images.length),e.xp6(2),e.Oqu(n.getCategoryNames(_.categories)),e.xp6(2),e.Q6J("ngIf",_.approved),e.xp6(2),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.brand.name),e.xp6(2),e.Oqu(_.weight),e.xp6(3),e.Oqu(e.lcZ(21,14,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(25,16,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showApproveButton),e.xp6(2),e.Q6J("ngClass",_.approved?"btn-outline-warning disabled":""),e.xp6(2),e.Q6J("ngIf",n.config.showDeleteButton&&!_.approved)}}function qt(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,bt,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.TgZ(25,"th"),e.SDv(26,40),e.qZA(),e.YNc(27,Lt,2,0,"th",7),e.TgZ(28,"th"),e.SDv(29,41),e.qZA(),e.YNc(30,Zt,2,0,"th",7),e.qZA()(),e.TgZ(31,"tbody"),e.YNc(32,Gt,31,18,"tr",42),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(15),e.Q6J("ngIf",_.config.showApproveButton),e.xp6(3),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.products.content)}}function Jt(i,a){if(1&i&&(e.TgZ(0,"div",86),e._UZ(1,"img",56),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.images[0],e.LSH)}}function Qt(i,a){if(1&i&&(e.TgZ(0,"div",87)(1,"span",57),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function wt(i,a){if(1&i&&(e.TgZ(0,"h6",88),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function kt(i,a){if(1&i&&(e.TgZ(0,"small",89)(1,"b"),e.SDv(2,90),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function zt(i,a){1&i&&(e.TgZ(0,"small",89),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,91),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function Xt(i,a){if(1&i&&(e.TgZ(0,"label",92),e._uU(1),e.qZA()),2&i){const _=a.$implicit;e.xp6(1),e.hij(" ",_.name," ")}}function Wt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",83)(1,"app-delete",93),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function jt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",66)(1,"div",67)(2,"div",28),e.YNc(3,Jt,2,1,"div",68),e.YNc(4,Qt,3,1,"div",69),e.TgZ(5,"h5",70)(6,"a",71),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,wt,2,1,"h6",72),e.TgZ(9,"h6",73),e._uU(10),e.qZA(),e.TgZ(11,"div",0)(12,"div",74)(13,"p",75)(14,"small")(15,"b"),e.SDv(16,76),e.qZA(),e._UZ(17,"br"),e._uU(18),e.ALo(19,"readableDate"),e.qZA()()(),e.TgZ(20,"div",74)(21,"p",77),e.YNc(22,kt,6,3,"small",78),e.YNc(23,zt,6,0,"small",78),e.qZA()()(),e.TgZ(24,"div")(25,"a",79),e.YNc(26,Xt,2,1,"label",80),e.qZA()()(),e.TgZ(27,"div",81)(28,"div",82)(29,"div",83)(30,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(31,"i",84),e.qZA()(),e.YNc(32,Wt,2,2,"div",85),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.images.length>0),e.xp6(1),e.Q6J("ngIf",0==_.images.length),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(2),e.Oqu(_.brand.name),e.xp6(8),e.Oqu(e.lcZ(19,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(3),e.Q6J("ngForOf",_.categories),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ht(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,jt,33,12,"div",65),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.products.content)}}function ei(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,qt,33,6,"div",25),e.YNc(2,Ht,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let _i=(()=>{class i extends ue.R{componentName(){return"ProductListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.productService=F,this.notifier=w,this.config=Le.C,this.filterData=t.M9,this.products=g.H,r.isAdmin()&&(this.config.showApproveButton=!0,this.config.searchEndpoint=B.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_),this.fetchProducts({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Products,link:null,active:!0}]}getCategoryNames(_){return _.map(n=>n.name).join(", ")}fetchProducts(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCTS_V2.SEARCH(_));this.productService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.products=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Product is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Le.n.create,update:_=>Le.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Ze.A}onApproveClick(_,n){let s=this.componentKey(A.Z.PRODUCTS_V2.APPROVE(_));this.productService.approve(s,this.config.searchEndpoint,_,n),this.subscribe(s,null,(r,m)=>{this.notifier.success("Success","Product is approved"),this.ngOnInit()}),this.subscribe(this.getErrorKey(s),null,(r,m)=>{this.notifier.error("Error",m.data.error.message)})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(vt.M),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W,ee,te;return _="\u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09A5\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE \u0995\u09B0\u09C1\u09A8..",n="\u0995\u09CB\u09A8 \u0986\u0987\u099F\u09C7\u09AE \u09A8\u09C7\u0987",s="\u0986\u09AE\u09BE\u09B0 \u09A4\u09C8\u09B0\u09BF\u0995\u09C3\u09A4 \u09AA\u09A3\u09CD\u09AF\u0997\u09C1\u09B2\u09CB",r="Id",m="\u099B\u09AC\u09BF",Y="\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF",F="\u09B6\u09BF\u09B0\u09CB\u09A8\u09BE\u09AE",w="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1",oe="\u0993\u099C\u09A8",se="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",re="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",le="\u0986\u09AA\u09A1\u09C7\u099F",ae="\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",ce="\u0985\u09A8\u09C1\u09AE\u09CB\u09A6\u09A8",X="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",W="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",ee="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",te="\u0986\u09AA\u09A1\u09C7\u099F \u09B9\u09DF\u09C7\u099B\u09C7",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,re,le,[4,"ngFor","ngForOf"],ae,ce,X,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],[1,"text-wrap"],["class","bx bx-check-circle text-success",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-warning","btn-sm","edit",3,"ngClass","click"],[1,"fas","fa-pencil-alt"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"bx","bx-check-circle","text-success"],["class","btn btn-outline-warning btn-sm edit","title","Edit",3,"click",4,"ngIf"],["class","btn btn-outline-success btn-sm edit","title","Edit",3,"click",4,"ngIf"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-check-circle"],["title","Edit",1,"btn","btn-outline-success","btn-sm","edit",3,"click"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"font-size-10","text-primary"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],W,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-primary font-size-11 m-1",4,"ngFor","ngForOf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ee,te,[1,"badge","bg-primary","font-size-11","m-1"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,Mt,1,1,"util-progress",5),e.YNc(8,Ut,13,2,"div",6),e.YNc(9,ei,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations["All Products"])("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.products.empty),e.xp6(1),e.Q6J("ngIf",!s.products.empty),e.xp6(1),e.Q6J("page",s.products))},dependencies:[d.mk,d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),ti=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-product-list")},dependencies:[_i]})}return i})(),Fe={defaultLayout:Se.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT,delEndpoint:B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT},Pe={list:"/admin/product-specifications",create:"/admin/product-specifications/create",update(i){return null==i?this.create:"/admin/product-specifications/"+i+"/update"}},$e=(()=>{class i extends H.b{constructor(_,n,s,r){super(_,n),this.http=s,this.eventBusService=r}search(_,n,s){let r=B.E.PRODUCTSPECIFICATIONS.SEARCH(n,s);this.http.get(r).subscribe(m=>{this.eventBusService.publish(_,m)},m=>{this.handleError(m,Y=>{this.search(_,n,s)},Y=>{this.eventBusService.publish(this.getErrorKey(_),Y)})})}fetchSingle(_,n){this.http.get(B.E.PRODUCTSPECIFICATIONS.GET(n)).subscribe(s=>{this.eventBusService.publish(_,s)},s=>{this.handleError(s,r=>{this.fetchSingle(_,n)},r=>{this.eventBusService.publish(this.getErrorKey(_),r)})})}upsert(_,n,s){let r=null==s?B.E.PRODUCTSPECIFICATIONS.CREATE():B.E.PRODUCTSPECIFICATIONS.UPDATE(s);(null==s?this.http.post(r,n):this.http.patch(r,n)).subscribe(Y=>{this.eventBusService.publish(_,Y)},Y=>{this.handleError(Y,F=>{this.upsert(_,n,s)},F=>{this.eventBusService.publish(this.getErrorKey(_),F)})})}static#e=this.\u0275fac=function(n){return new(n||i)(e.LFG(N.e),e.LFG(C.l),e.LFG(Ye.eN),e.LFG(E.Y))};static#_=this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ii=o(1426),ni=o(756);function oi(i,a){1&i&&e._UZ(0,"util-progress",15),2&i&&e.Q6J("bar",!0)}function si(i,a){if(1&i&&(e.TgZ(0,"option",19),e._uU(1),e.qZA()),2&i){const _=a.$implicit;e.Q6J("value",_),e.xp6(1),e.hij(" ",_," ")}}function ri(i,a){if(1&i&&(e.TgZ(0,"div",7)(1,"label",16)(2,"small"),e._uU(3,"Value"),e.qZA()(),e.TgZ(4,"select",17),e.YNc(5,si,2,2,"option",18),e.qZA()()),2&i){const _=e.oxw();e.xp6(5),e.Q6J("ngForOf",null==_.selectedAttr?null:_.selectedAttr.values)}}let Ge=(()=>{class i extends Ce.n{constructor(_,n,s,r,m,Y,F){super(_,n,s,r,F),this.productSpecificationService=m,this.notifier=Y,this.config=Fe,this.selectedAttr=null,this.selectedProduct=null,this.specificationForm=new G.cw({product_id:new G.NI(null,[G.kI.required]),filterable_attribute_id:new G.NI(null,[G.kI.required]),value:new G.NI(null,[G.kI.required])})}componentName(){return"ProductSpecificationUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"ProductSpecifications",link:"/admin/productspecifications",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(_){this.loading=!0;let n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.GET(_));this.productSpecificationService.fetchSingle(n,_),this.subscribe(n,null,(s,r)=>{this.loading=!1,this.populateForm(r.data)}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{console.log(r.data),this.loading=!1})}onSubmit(){this.specificationForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return Pe.list}upsert(_){this.loading=!0;let n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.UPSERT(_));this.productSpecificationService.upsert(n,this.specificationForm.value,_),this.subscribe(n,null,(s,r)=>{this.loading=!1;let m="ProductSpecification has been "+(_?"updated":"created");this.notifier.success("Success",m),this.specificationForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(r.data):this.navigate(Pe.list,Y=>{this.notifier.success("Success!",m)})}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{let m=r.data;this.loading=!1,this.notifier.warning("Failed!",m.error.message)})}populateForm(_){this.selectedAttr=_.filterable_attribute,this.specificationForm.controls.product_id.setValue(_.product_id),this.specificationForm.controls.filterable_attribute_id.setValue(_.filterable_attribute_id),this.specificationForm.controls.value.setValue(_.value)}onAttrSelected(_){this.selectedAttr=_,this.specificationForm.controls.filterable_attribute_id.setValue(null==_?.id?null:_.id)}onProductSelected(_){this.selectedProduct=_,this.specificationForm.controls.product_id.setValue(null==_?.id?null:_.id)}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(T.gz),e.Y36($e),e.Y36(C.l),e.Y36(fe.WI))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-productspecification-upsert"]],features:[e.qOj],decls:24,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","spec-key"],[3,"selectedItem","selected"],["id","spec-key",3,"selectedItem","selected"],["class","mb-3",4,"ngIf"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],["for","spec-value"],["id","spec-value","aria-label","Value","formControlName","value",1,"form-select"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,s){1&n&&(e.YNc(0,oi,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update ProductSpecification"),e.qZA(),e.TgZ(7,"form",6)(8,"div",7)(9,"label",8)(10,"small"),e._uU(11,"Select Product"),e.qZA()(),e.TgZ(12,"app-product-select",9),e.NdJ("selected",function(m){return s.onProductSelected(m)}),e.qZA()(),e.TgZ(13,"div",7)(14,"label",8)(15,"small"),e._uU(16,"Attribute/Key"),e.qZA()(),e.TgZ(17,"app-fa-select",10),e.NdJ("selected",function(m){return s.onAttrSelected(m)}),e.qZA()(),e.YNc(18,ri,6,1,"div",11),e.TgZ(19,"div",12)(20,"button",13),e.NdJ("click",function(){return s.onCancel()}),e._uU(21," Cancel "),e.qZA(),e.TgZ(22,"button",14),e.NdJ("click",function(){return s.onSubmit()}),e._uU(23," Submit "),e.qZA()()()()()()()),2&n&&(e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("@loaded",!s.loading),e.xp6(6),e.Q6J("formGroup",s.specificationForm),e.xp6(5),e.Q6J("selectedItem",s.selectedProduct),e.xp6(5),e.Q6J("selectedItem",s.selectedAttr),e.xp6(1),e.Q6J("ngIf",null!=s.selectedAttr),e.xp6(4),e.Q6J("ngClass",s.specificationForm.valid?"":"disabled"))},dependencies:[d.mk,d.sg,d.O5,G._Y,G.YN,G.Kr,G.EJ,G.JJ,G.JL,G.sg,G.u,b.t,ii.q,ni.t]})}return i})();function li(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function ai(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function ci(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function di(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,ai,2,0,"h4",16),e.YNc(8,ci,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function ui(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function Ei(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function Ti(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function pi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",34)(1,"app-delete",38),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Ni(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,Ti,2,1,"td",7),e.TgZ(4,"td")(5,"div",31)(6,"span",32),e._uU(7),e.qZA()()(),e.TgZ(8,"td")(9,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.TgZ(15,"td"),e._uU(16),e.qZA(),e.TgZ(17,"td"),e._uU(18),e.qZA(),e.TgZ(19,"td")(20,"small"),e._uU(21),e.ALo(22,"readableDate"),e.qZA()(),e.TgZ(23,"td")(24,"small"),e._uU(25),e.ALo(26,"readableDate"),e.qZA()(),e.TgZ(27,"td",34)(28,"a",35),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(29,"i",36),e.qZA()(),e.YNc(30,pi,2,1,"td",37),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(4),e.hij(" ",_.filterable_attribute.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.product_id," "),e.xp6(2),e.Oqu(_.filterable_attribute.name),e.xp6(2),e.Oqu(_.filterable_attribute.code),e.xp6(2),e.Oqu(_.filterable_attribute.values.join(",")),e.xp6(2),e.Oqu(_.value),e.xp6(3),e.Oqu(e.lcZ(22,11,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(26,13,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function Si(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"ProductSpecifications that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,ui,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Image"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Product ID"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Attribute"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Attribute Code"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Attribute Values"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Spec. Value"),e.qZA(),e.TgZ(25,"th"),e._uU(26,"Created At"),e.qZA(),e.TgZ(27,"th"),e._uU(28,"Last Updated"),e.qZA(),e.TgZ(29,"th"),e._uU(30,"Update"),e.qZA(),e.YNc(31,Ei,2,0,"th",7),e.qZA()(),e.TgZ(32,"tbody"),e.YNc(33,Ni,31,15,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(19),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.productSpecifications.content)}}function Oi(i,a){if(1&i&&(e.TgZ(0,"h6",59),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function mi(i,a){if(1&i&&(e.TgZ(0,"small",60)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function gi(i,a){1&i&&(e.TgZ(0,"small",60),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function Ai(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",54)(1,"app-delete",61),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}const Ri=function(i){return["/admin/inventory/products",i,"update"]};function Ci(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",40)(1,"div",41)(2,"div",26)(3,"div",42)(4,"span",32),e._uU(5),e.qZA()(),e.TgZ(6,"h5",43)(7,"a",44),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,Oi,2,1,"h6",45),e.TgZ(10,"div",0)(11,"div",46)(12,"p",47)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",46)(20,"p",48),e.YNc(21,mi,6,3,"small",49),e.YNc(22,gi,6,0,"small",49),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",50)(27,"label",51),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",52)(30,"div",53)(31,"div",54)(32,"a",55),e._UZ(33,"i",56),e.qZA()(),e.TgZ(34,"div",54)(35,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(36,"i",57),e.qZA()(),e.YNc(37,Ai,2,2,"div",58),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.filterable_attribute.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.filterable_attribute.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",_.filterable_attribute.values.join(",")," "),e.xp6(4),e.hij(" ",_.value," "),e.xp6(4),e.Q6J("routerLink",e.VKq(12,Ri,_.product_id)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function fi(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Ci,38,14,"div",39),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.productSpecifications.content)}}function Pi(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Si,34,5,"div",23),e.YNc(2,fi,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let qe=(()=>{class i extends ue.R{componentName(){return"ProductSpecificationListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.productSpecificationService=F,this.notifier=w,this.config=Fe,this.productSpecifications=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchProductSpecifications({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"ProductSpecifications",link:null,active:!0}]}fetchProductSpecifications(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.SEARCH(_));this.productSpecificationService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.productSpecifications=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","ProductSpecification is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Pe.create,update:_=>Pe.update(_),params:{}}}getUpsertComponent(){return Ge}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36($e),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-productspecification-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-primary","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],["href","javascript: void(0);",3,"routerLink"],[1,"bx","bxl-product-hunt","text-primary"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,li,1,1,"util-progress",5),e.YNc(8,di,13,2,"div",6),e.YNc(9,Pi,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","ProductSpecifications")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.productSpecifications.empty),e.xp6(1),e.Q6J("ngIf",!s.productSpecifications.empty),e.xp6(1),e.Q6J("page",s.productSpecifications))},dependencies:[d.sg,d.O5,T.rH,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),Ii=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product-specification"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-productspecification-list")},dependencies:[qe]})}return i})();var xe=o(337),Be=o(9876),vi=o(8174),Mi=o(52),Di=o(5789),Je=o(7405);function hi(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Ui(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function bi(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function Li(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Ui,2,0,"h4",16),e.YNc(8,bi,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function Zi(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,47),e.qZA())}function xi(i,a){if(1&i&&e._UZ(0,"img",67),2&i){const _=e.oxw().$implicit;e.s9C("src",_.product.images[0],e.LSH)}}function Bi(i,a){if(1&i&&(e.TgZ(0,"span",68),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.product.name.substring(0,1).toUpperCase()," ")}}function yi(i,a){if(1&i&&(e.TgZ(0,"span"),e._uU(1," | "),e.TgZ(2,"strong"),e._uU(3),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(3),e.Oqu(_.variation.name)}}function Ki(i,a){if(1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"i"),e._uU(3),e.ALo(4,"readableDate"),e.qZA()()),2&i){const _=e.oxw(2).$implicit;e.xp6(3),e.hij("Until: ",e.lcZ(4,1,_.discount_valid_until),"")}}function Yi(i,a){if(1&i&&(e.TgZ(0,"div")(1,"small",21),e._uU(2),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"strong",69)(5,"strong",61),e.SDv(6,70),e.qZA(),e._uU(7),e.ALo(8,"number"),e.qZA(),e.TgZ(9,"sub",71),e._uU(10),e.ALo(11,"number"),e.qZA(),e.YNc(12,Ki,5,3,"small",72),e.qZA()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(2),e.hij("- ",_.discount_percentage,"%"),e.xp6(5),e.hij(" ",e.xi3(8,4,n.getDiscountedRetailPrice(_),"1.2-2"),"\xa0\xa0 "),e.xp6(3),e.hij("",e.xi3(11,7,_.retail_price,"1.2-2")," "),e.xp6(2),e.Q6J("ngIf",_.discount_valid_until)}}function Vi(i,a){if(1&i&&(e.TgZ(0,"span",60)(1,"strong"),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.Oqu(e.xi3(3,1,_.retail_price,"1.2-2"))}}function Fi(i,a){if(1&i&&(e.TgZ(0,"span",74)(1,"strong",61),e.SDv(2,75),e.qZA(),e.TgZ(3,"strong"),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(4),e.Oqu(e.xi3(5,1,n.getDiscountedRetailPrice(_)-_.avg_unit_price,"1.2-2"))}}function $i(i,a){if(1&i&&(e.TgZ(0,"span",76)(1,"strong",61),e.SDv(2,77),e.qZA(),e.TgZ(3,"strong"),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(4),e.Oqu(e.xi3(5,1,n.getDiscountedRetailPrice(_)-_.avg_unit_price,"1.2-2"))}}function Gi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",78)(1,"app-delete",79),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function qi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td")(4,"div",48),e.YNc(5,xi,1,1,"img",49),e.YNc(6,Bi,2,1,"span",50),e.qZA()(),e.TgZ(7,"td")(8,"small"),e._uU(9),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCopyClick(r.sku))}),e.TgZ(12,"span"),e.SDv(13,52),e.qZA()()(),e.TgZ(14,"td",53),e._uU(15),e.YNc(16,yi,4,1,"span",7),e._UZ(17,"br"),e.TgZ(18,"span",54),e._uU(19),e.qZA(),e._UZ(20,"br"),e.TgZ(21,"span",55),e._uU(22),e.qZA()(),e.TgZ(23,"td",56)(24,"button",57),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e.TgZ(25,"span",58)(26,"strong"),e._uU(27),e.qZA()(),e._UZ(28,"i",59),e.qZA()(),e.TgZ(29,"td")(30,"span",60)(31,"strong",61),e.SDv(32,62),e.qZA(),e.TgZ(33,"strong"),e._uU(34),e.ALo(35,"number"),e.qZA()()(),e.TgZ(36,"td"),e.YNc(37,Yi,13,10,"div",7),e.YNc(38,Vi,4,4,"span",63),e.qZA(),e.TgZ(39,"td"),e.YNc(40,Fi,6,4,"span",64),e.YNc(41,$i,6,4,"span",65),e.qZA(),e.TgZ(42,"td")(43,"small"),e._uU(44),e.ALo(45,"readableDate"),e.qZA()(),e.YNc(46,Gi,2,1,"td",66),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(3),e.Q6J("ngIf",_.product.images.length>0),e.xp6(1),e.Q6J("ngIf",0===_.product.images.length),e.xp6(3),e.Oqu(_.sku),e.xp6(6),e.hij(" ",_.product.name," "),e.xp6(1),e.Q6J("ngIf",_.variation),e.xp6(3),e.Oqu(_.brand.name),e.xp6(3),e.hij(" ",n.categoriesToString(_.product.categories)," "),e.xp6(3),e.Q6J("ngClass",_.quantity>0?"text-success":"text-danger"),e.xp6(2),e.Oqu(_.quantity),e.xp6(7),e.Oqu(e.xi3(35,17,_.avg_unit_price,"1.2-2")),e.xp6(3),e.Q6J("ngIf",n.getDiscount(_)>0),e.xp6(1),e.Q6J("ngIf",n.getDiscount(_)<=0),e.xp6(2),e.Q6J("ngIf",_.retail_price<_.avg_unit_price),e.xp6(1),e.Q6J("ngIf",_.retail_price>=_.avg_unit_price),e.xp6(3),e.Oqu(e.lcZ(45,20,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showDeleteButton)}}const Ji=function(){return["/admin/sales/orders"]},Qi=function(){return["/admin/sales/orders/create"]};function wi(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"div",27)(5,"button",28),e._UZ(6,"i",29),e.TgZ(7,"span"),e.SDv(8,30),e.qZA()(),e.TgZ(9,"button",31),e._UZ(10,"i",32),e.TgZ(11,"span"),e.SDv(12,33),e.qZA()()(),e.TgZ(13,"p",34),e._uU(14,"Stocks that I've created"),e.qZA(),e.TgZ(15,"div",35)(16,"table",36)(17,"thead")(18,"tr")(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.TgZ(25,"th"),e.SDv(26,40),e.qZA(),e.TgZ(27,"th"),e.SDv(28,41),e.qZA(),e.TgZ(29,"th"),e.SDv(30,42),e.qZA(),e.TgZ(31,"th"),e.SDv(32,43),e.qZA(),e.TgZ(33,"th"),e.tHW(34,44),e._UZ(35,"br"),e.N_p(),e.qZA(),e.TgZ(36,"th"),e.SDv(37,45),e.qZA(),e.YNc(38,Zi,2,0,"th",7),e.qZA()(),e.TgZ(39,"tbody"),e.YNc(40,qi,47,22,"tr",46),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(5),e.Q6J("routerLink",e.DdM(6,Ji)),e.xp6(4),e.Q6J("routerLink",e.DdM(7,Qi)),e.xp6(29),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.stocks.content)}}function ki(i,a){if(1&i&&(e.TgZ(0,"div",100),e._UZ(1,"img",67),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.product.images[0],e.LSH)}}function zi(i,a){if(1&i&&(e.TgZ(0,"div",101)(1,"span",68),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.product.name.substring(0,1).toUpperCase()," ")}}function Xi(i,a){if(1&i&&(e.TgZ(0,"small",102)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function Wi(i,a){1&i&&(e.TgZ(0,"small",102),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function ji(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",96)(1,"app-delete",103),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Hi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",81)(1,"div",82)(2,"div",26),e.YNc(3,ki,2,1,"div",83),e.YNc(4,zi,3,1,"div",84),e.TgZ(5,"h5",85)(6,"a",86),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.TgZ(8,"h6",87),e._uU(9),e.qZA(),e.TgZ(10,"div",0)(11,"div",88)(12,"p",89)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",88)(20,"p",90),e.YNc(21,Xi,6,3,"small",91),e.YNc(22,Wi,6,0,"small",91),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",92)(27,"label",93),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",94)(30,"div",95)(31,"div",96)(32,"a",97),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(3);return e.KtG(s.onUpsertClick(null))}),e._UZ(33,"i",98),e.qZA()(),e.YNc(34,ji,2,2,"div",99),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.product.images.length>0),e.xp6(1),e.Q6J("ngIf",0===_.product.images.length),e.xp6(3),e.hij(" ",_.product.name,""),e.xp6(2),e.hij(" ",_.brand.name," "),e.xp6(8),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.categoriesToString(_.product.categories)," "),e.xp6(4),e.Oqu(_.quantity),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function en(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Hi,35,12,"div",80),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.stocks.content)}}function _n(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,wi,41,8,"div",23),e.YNc(2,en,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let tn=(()=>{class i extends Mi.F{componentName(){return"StockListComponent"}constructor(_,n,s,r,m,Y,F,w,oe,se){super(_,n,s,m),this.activatedRoute=Y,this.stockService=F,this.vendorService=w,this.notifier=oe,this.locale=se,this.config=xe.u,this.filterData=t.M9,this.stocks=g.H,this.extraFields=[{name:"vendor_id",type:"dropdown",placeholder:"Select Store",label:"Store",value:null,options:[]}],r.isAdmin()&&(this.config.searchEndpoint=B.E.STOCKS.STOCK_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_);let n=this.filterData.extra.vendor_id;this.fetchMyVendors({},s=>{}),this.fetchStocks({vendor_id:n,q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Stocks,link:null,active:!0}]}fetchStocks(_){this.loading=!0;const n=this.componentKey(A.Z.STOCKS.SEARCH(_));this.stockService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.stocks=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Stock is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:xe.n.create,update:_=>xe.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Be.X}onCopyClick(_){vi.g.copyToClipboard(_),this.notifier.info("Copied","SKU has been copied to clipboard")}getDiscountedRetailPrice(_){return _.retail_price-this.getDiscount(_)}getDiscount(_){return null==_.discount_valid_until||new Date(_.discount_valid_until).getTime()>(new Date).getTime()?_.retail_price*(_.discount_percentage/100):0}categoriesToString(_){return _.map(n=>n.name).join(", ")}fetchMyVendors(_={},n){let s=this.componentKey(A.Z.VENDORS.MY_VENDORS(_));this.vendorService.myVendors(s,this.config.vendorEndpoint,_),this.subscribe(s,null,(r,m)=>{this.extraFields=[{name:"vendor_id",type:"dropdown",label:"Vendor",placeholder:"Select Store",value:null,options:m.data.map(F=>({label:F.name,value:F.id}))}]})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Di.q),e.Y36(Je.n),e.Y36(C.l),e.Y36(e.soG))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-stock-list"]],features:[e.qOj],decls:11,vars:9,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W,ee;return _="\u0985\u09B0\u09CD\u09A1\u09BE\u09B0",n="\u09AC\u09BF\u0995\u09CD\u09B0\u09BF",s="Id",r="\u099B\u09AC\u09BF",m="SKU",Y="\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A8\u09BE\u09AE",F="\u09AA\u09B0\u09BF\u09AE\u09BE\u09A3",w="\u0997\u09DC \u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF",oe="\u09AC\u09BF\u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF",se="\u09AA\u09CD\u09B0\u09A4\u09BF \u09AC\u09BF\u0995\u09CD\u09B0\u09DF\u09C7\u09B0 \u09B2\u09BE\u09AD / \u0995\u09CD\u09B7\u09A4\u09BF",re="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",le="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",ae="\u0995\u09AA\u09BF",ce="\u09F3",X="\u09F3",W="\u09F3",ee="\u09F3",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addBtnText","extraFields","addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"d-flex","flex-wrap","gap-3","mb-3","float-end"],[1,"btn","btn-outline-primary","waves-effect","font-size-16",3,"routerLink"],[1,"mdi","mdi-truck-delivery","me-2"],_,["type","submit",1,"btn","btn-primary","px-5","waves-effect","waves-light","font-size-16",3,"routerLink"],[1,"mdi","mdi-sale","me-2"],n,[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],s,r,m,Y,F,w,oe,se,re,[4,"ngFor","ngForOf"],le,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",1,"font-size-10",3,"click"],ae,[1,"text-wrap"],[1,"badge","bg-info","font-size-10","m-1"],[1,"badge","text-info","font-size-10","m-1"],[1,"align-content-center"],[1,"btn","btn-outline-success",3,"click"],[1,"badge","font-size-16",3,"ngClass"],[1,"mdi","mdi-plus-circle","font-size-16"],[1,"badge","text-info","font-size-16"],[1,"me-1"],ce,["class","badge text-info font-size-16",4,"ngIf"],["class","badge text-danger font-size-16",4,"ngIf"],["class","badge text-success font-size-16",4,"ngIf"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"text-warning","font-size-16"],X,[1,"text-primary","text-decoration-line-through"],["class","font-size-10 mt-3",4,"ngIf"],[1,"font-size-10","mt-3"],[1,"badge","text-danger","font-size-16"],W,[1,"badge","text-success","font-size-16"],ee,[2,"width","100px"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],[1,"badge","badge-soft-primary","font-size-10","text-info"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],["href","javascript: void(0);",3,"click"],[1,"bx","bx-plus-circle","text-success"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,hi,1,1,"util-progress",5),e.YNc(8,Li,13,2,"div",6),e.YNc(9,_n,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations["Products in Stock"])("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(4),e.Q6J("addBtnText","+ Add Product")("extraFields",s.extraFields),e.xp6(1),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.stocks.empty),e.xp6(1),e.Q6J("ngIf",!s.stocks.empty),e.xp6(1),e.Q6J("page",s.stocks))},dependencies:[d.mk,d.sg,d.O5,T.rH,b.t,y.Q,h.D,M.T,f.L,d.JJ,P.G]})}return i})(),nn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-stock"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-stock-list")},dependencies:[tn]})}return i})();var ye=o(5734),Ke=o(1364);function on(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function sn(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function rn(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function ln(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,sn,2,0,"h4",16),e.YNc(8,rn,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function an(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function cn(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Approval"),e.qZA())}function dn(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function un(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function En(i,a){if(1&i&&e._UZ(0,"img",40),2&i){const _=e.oxw().$implicit;e.s9C("src",_.logo,e.LSH)}}function Tn(i,a){if(1&i&&(e.TgZ(0,"span",41),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function pn(i,a){1&i&&(e.TgZ(0,"a",45),e._UZ(1,"i",46),e.qZA())}function Nn(i,a){1&i&&(e.TgZ(0,"a",47),e._UZ(1,"i",48),e.qZA())}function Sn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",42),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.toggleApproval(s.id,!s.approved))}),e.YNc(1,pn,2,0,"a",43),e.YNc(2,Nn,2,0,"a",44),e.qZA()}if(2&i){const _=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",!_.approved),e.xp6(1),e.Q6J("ngIf",_.approved)}}function On(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",36)(1,"app-delete",49),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function mn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,un,2,1,"td",7),e.TgZ(4,"td")(5,"div",31),e.YNc(6,En,1,1,"img",32),e.YNc(7,Tn,2,1,"span",33),e.qZA()(),e.TgZ(8,"td")(9,"a",34),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.YNc(19,Sn,3,2,"td",35),e.TgZ(20,"td",36)(21,"a",37),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(22,"i",38),e.qZA()(),e.YNc(23,On,2,1,"td",39),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null!=_.logo),e.xp6(1),e.Q6J("ngIf",null==_.logo),e.xp6(3),e.hij(" ",_.name," "),e.xp6(3),e.Oqu(e.lcZ(14,9,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,11,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showApprovalButton),e.xp6(4),e.Q6J("ngIf",n.config.showDeleteButton)}}function gn(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"Vendors that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,an,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Image"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Title"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Created At"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Last Updated"),e.qZA(),e.YNc(21,cn,2,0,"th",7),e.TgZ(22,"th"),e._uU(23,"Update"),e.qZA(),e.YNc(24,dn,2,0,"th",7),e.qZA()(),e.TgZ(25,"tbody"),e.YNc(26,mn,24,13,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(9),e.Q6J("ngIf",_.config.showApprovalButton),e.xp6(3),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.vendors.content)}}function An(i,a){if(1&i&&(e.TgZ(0,"div",70),e._UZ(1,"img",40),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.logo,e.LSH)}}function Rn(i,a){if(1&i&&(e.TgZ(0,"div",71)(1,"span",41),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Cn(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function fn(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function Pn(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function In(i,a){1&i&&(e.TgZ(0,"label",74),e._uU(1,"Approved"),e.qZA())}function vn(i,a){1&i&&(e.TgZ(0,"label",75),e._uU(1,"Not Approved"),e.qZA())}function Mn(i,a){1&i&&e._UZ(0,"i",78)}function Dn(i,a){1&i&&e._UZ(0,"i",79)}function hn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",67)(1,"a",34),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.toggleApproval(s.id,!s.approved))}),e.YNc(2,Mn,1,0,"i",76),e.YNc(3,Dn,1,0,"i",77),e.qZA()()}if(2&i){const _=e.oxw().$implicit;e.xp6(2),e.Q6J("ngIf",!_.approved),e.xp6(1),e.Q6J("ngIf",_.approved)}}function Un(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",67)(1,"app-delete",80),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function bn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",51)(1,"div",52)(2,"div",26),e.YNc(3,An,2,1,"div",53),e.YNc(4,Rn,3,1,"div",54),e.TgZ(5,"h5",55)(6,"a",56),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,Cn,2,1,"h6",57),e.TgZ(9,"div",0)(10,"div",58)(11,"p",59)(12,"small")(13,"b"),e._uU(14,"Created"),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",58)(19,"p",60),e.YNc(20,fn,6,3,"small",61),e.YNc(21,Pn,6,0,"small",61),e.qZA()()(),e.TgZ(22,"div")(23,"a",62),e.YNc(24,In,2,0,"label",63),e.YNc(25,vn,2,0,"label",64),e.qZA()()(),e.TgZ(26,"div",65)(27,"div",66)(28,"div",67)(29,"a",34),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(30,"i",68),e.qZA()(),e.YNc(31,hn,4,2,"div",69),e.YNc(32,Un,2,2,"div",69),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.logo),e.xp6(1),e.Q6J("ngIf",null==_.logo),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,11,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(3),e.Q6J("ngIf",_.approved),e.xp6(1),e.Q6J("ngIf",!_.approved),e.xp6(6),e.Q6J("ngIf",n.config.showApprovalButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ln(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,bn,33,13,"div",50),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.vendors.content)}}function Zn(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,gn,27,6,"div",23),e.YNc(2,Ln,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let xn=(()=>{class i extends ue.R{componentName(){return"VendorListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.vendorService=F,this.notifier=w,this.config=ye.j,this.filterData=t.M9,this.vendors=g.H,r.isAdmin()&&(this.config.showApprovalButton=!0,this.config.searchEndpoint=B.E.VENDORS.VENDOR_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_),this.fetchVendors({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Vendors",link:null,active:!0}]}fetchVendors(_){this.loading=!0;const n=this.componentKey(A.Z.VENDORS.SEARCH(_));this.vendorService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.vendors=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Vendor is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:ye.n.create,update:_=>ye.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Ke.Z}toggleApproval(_,n){this.loading=!0;const s=this.componentKey(A.Z.VENDORS.TOGGLE_APPROVAL(_));this.vendorService.toggleApproval(s,_,n),this.subscribe(s,null,(r,m)=>{this.loading=!1,this.notifier.success("Success","Vendor is "+(n?"approved":"disapproved")),this.ngOnInit()}),this.subscribe(this.getErrorKey(s),null,(r,m)=>{this.notifier.error("Error",m.data.error.message)})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Je.n),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-vendor-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",3,"click",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[2,"width","100px",3,"click"],["class","btn btn-outline-success btn-sm edit","title","Edit",4,"ngIf"],["class","btn btn-outline-danger btn-sm edit","title","Edit",4,"ngIf"],["title","Edit",1,"btn","btn-outline-success","btn-sm","edit"],[1,"fas","fa-check"],["title","Edit",1,"btn","btn-outline-danger","btn-sm","edit"],[1,"fas","fa-heart-broken"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-success font-size-11 m-1",4,"ngIf"],["class","badge bg-warning font-size-11 m-1",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],[1,"badge","bg-success","font-size-11","m-1"],[1,"badge","bg-warning","font-size-11","m-1"],["title","Approve","class","bx bx-check-circle text-success",4,"ngIf"],["title","Unapprove","class","bx bx-x-circle text-warning",4,"ngIf"],["title","Approve",1,"bx","bx-check-circle","text-success"],["title","Unapprove",1,"bx","bx-x-circle","text-warning"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,on,1,1,"util-progress",5),e.YNc(8,ln,13,2,"div",6),e.YNc(9,Zn,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","Vendors")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.vendors.empty),e.xp6(1),e.Q6J("ngIf",!s.vendors.empty),e.xp6(1),e.Q6J("page",s.vendors))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})();const yn=[{path:"categories",component:Ee},{path:"categories/:id",component:c.I},{path:"categories/create",component:c.I},{path:"attributes",component:d_,canActivate:[k.P]},{path:"attributes/create",component:Ie,canActivate:[k.P]},{path:"attributes/:id/update",component:Ie,canActivate:[k.P]},{path:"filterable-attributes",component:D_,canActivate:[k.P]},{path:"filterable-attributes/create",component:Me.V,canActivate:[k.P]},{path:"filterable-attributes/:id/update",component:Me.V,canActivate:[k.P]},{path:"brands",component:et,canActivate:[k.P]},{path:"brands/create",component:he.l,canActivate:[k.P]},{path:"brands/:id/update",component:he.l,canActivate:[k.P]},{path:"variations",component:It,canActivate:[k.P]},{path:"variations/create",component:be.s,canActivate:[k.P]},{path:"variations/:id/update",component:be.s,canActivate:[k.P]},{path:"products",component:ti,canActivate:[k.P]},{path:"products/create",component:Ze.A,canActivate:[k.P]},{path:"products/:id/update",component:Ze.A,canActivate:[k.P]},{path:"product-specifications",component:Ii,canActivate:[k.P]},{path:"product-specifications/create",component:qe,canActivate:[k.P]},{path:"product-specifications/:id/update",component:Ge,canActivate:[k.P]},{path:"stocks",component:nn,canActivate:[k.P]},{path:"stocks/create",component:Be.X,canActivate:[k.P]},{path:"stocks/:id/update",component:Be.X,canActivate:[k.P]},{path:"vendors",component:(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-vendor"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-vendor-list")},dependencies:[xn]})}return i})(),canActivate:[k.P]},{path:"vendors/create",component:Ke.Z,canActivate:[k.P]},{path:"vendors/:id/update",component:Ke.Z,canActivate:[k.P]}];let Kn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275mod=e.oAB({type:i});static#t=this.\u0275inj=e.cJS({imports:[T.Bz.forChild(yn),T.Bz]})}return i})();var Yn=o(7151),Vn=o(9797),Fn=o(5081),$n=o(4807),Gn=o(2241),qn=o(3318),Jn=o(9277),Qn=o(7035);let wn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275mod=e.oAB({type:i});static#t=this.\u0275inj=e.cJS({imports:[d.ez,G.UX,Kn,Yn.g,Gn.AdminModule,Vn.CmsModule,$n.A0,G.u5,qn.UserModule,Jn.kn]})}return i})();e.B6R(c.I,[d.mk,d.O5,G._Y,G.Fj,G.Wl,G.JJ,G.JL,G.sg,G.u,b.t,Qn.P,Fn.P],[])},1426:(z,K,o)=>{o.d(K,{q:()=>M});var d=o(5879),T=o(8637),c=o(8174),x=o(7259),t=o(2771),A=o(3989),B=o(30),l=o(1662),e=o(6945),E=o(8480),u=o(1492),N=o(8675),S=o(6814),U=o(6223),C=o(4736),b=o(4807);function y(f,P){1&f&&d._UZ(0,"util-progress",4),2&f&&d.Q6J("bar",!0)}const h=function(){return{standalone:!0}};let M=(()=>{class f extends T.H{componentName(){return"ProductSelectComponent"}constructor(I,Z,V,q,_e,Te){super(I,Z,V),this.productService=_e,this.dialogService=Te,this.searchEndpoint=t.E.PRODUCTS.PRODUCT_ENDPOINT_V2,this.items=[],this.selectedItem=null,this.selected=new d.vpe,q.isAdmin()&&(this.searchEndpoint=t.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(I){let Z=c.g.removeSpecialCharacters(I.target?.value);Z.length>2&&this.search({page:0,size:10,q:Z})}onSelected(I){if(this.items.find(Z=>Z.name==I.name))this.selected.emit(this.selectedItem);else{let Z=this.dialogService.open(A.A,{id:null,name:I.name,dialogUpsert:!0}),V=Z.componentInstance;V.onCompleted.subscribe(q=>{this.selected.emit(function g(f){return{id:f.id,created_at:f.created_at,updated_at:f.updated_at,created_by:f.created_by,name:f.name,brand:{id:f.brand_id,name:f.brand_name,description:"",image:"",created_at:new Date,updated_at:new Date,created_by:""},images:f.images,categories:f.category_ids.map((P,I)=>({id:P,name:f.category_names[I]})),weight:f.weight,approved:f.approved}}(q))}),V.onCanceled.subscribe(()=>{Z.close()})}}search(I){this.loading=!0;let Z=this.componentKey(x.Z.PRODUCTS_V2.SEARCH(I));this.productService.search(Z,this.searchEndpoint,I),this.subscribe(Z,null,(V,q)=>{this.items=q.data.content,this.loading=!1})}static#e=this.\u0275fac=function(Z){return new(Z||f)(d.Y36(B.Y),d.Y36(l.F0),d.Y36(e.z),d.Y36(E.e),d.Y36(u.M),d.Y36(N.x))};static#_=this.\u0275cmp=d.Xpm({type:f,selectors:[["app-product-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:8,consts:function(){let I;return I="\u09AA\u09A3\u09CD\u09AF",[["for","autoSizingInput2",1,"visually-hidden"],I,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name","placeholder","Search Products",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]]},template:function(Z,V){1&Z&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,y,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(_e){return V.searchForEvent(_e)})("ngModelChange",function(_e){return V.selectedItem=_e})("change",function(_e){return V.onSelected(_e)}),d.qZA()),2&Z&&(d.xp6(2),d.Q6J("ngIf",V.loading),d.xp6(1),d.Q6J("items",V.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",V.selectedItem)("ngModelOptions",d.DdM(7,h)))},dependencies:[S.O5,U.JJ,C.t,b.w9,U.On]})}return f})()},3989:(z,K,o)=>{o.d(K,{A:()=>O});var d=o(9870),T=o(973),c=o(6223),x=o(7259),g=o(7700),t=o(8174),A=o(2771),B=o(8674),l=o(5879),e=o(30),E=o(1662),u=o(6945),N=o(8480),S=o(1492),U=o(5462),C=o(6814),b=o(4736),y=o(6265),h=o(7035),M=o(5081),f=o(8637),P=o(9107),I=o(7210),Z=o(8675),V=o(4807);function q(D,v){1&D&&l._UZ(0,"util-progress",4),2&D&&l.Q6J("bar",!0)}const _e=function(){return{standalone:!0}};let Te=(()=>{class D extends f.H{componentName(){return"BrandSelectComponent"}constructor(p,R,L,J,Q,j){super(p,R,L),this.brandService=Q,this.popupService=j,this.searchEndpoint=A.E.BRANDS.BRAND_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new l.vpe,J.isAdmin()&&(this.searchEndpoint=A.E.BRANDS.BRAND_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(p){let R=t.g.removeSpecialCharacters(p.target?.value);R.length>2&&this.search({page:0,size:10,q:R})}onSelected(p){this.items.find(R=>R.name==p.name)?this.selected.emit(this.selectedItem):this.popupService.open(P.l,{id:null,name:p.name}).componentInstance.onCompleted.subscribe(L=>{this.selected.emit(L)})}search(p){this.loading=!0;let R=this.componentKey(x.Z.BRANDS.SEARCH(p));this.brandService.search(R,this.searchEndpoint,p),this.subscribe(R,null,(L,J)=>{this.items=J.data.content,this.loading=!1})}static#e=this.\u0275fac=function(R){return new(R||D)(l.Y36(e.Y),l.Y36(E.F0),l.Y36(u.z),l.Y36(N.e),l.Y36(I.c),l.Y36(Z.x))};static#_=this.\u0275cmp=l.Xpm({type:D,selectors:[["app-brand-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[l.qOj],decls:4,vars:9,consts:function(){let p;return p="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1",[["for","autoSizingInput2",1,"visually-hidden"],p,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(R,L){1&R&&(l.TgZ(0,"label",0),l.SDv(1,1),l.qZA(),l.YNc(2,q,1,1,"util-progress",2),l.TgZ(3,"ng-select",3),l.NdJ("keyup",function(Q){return L.searchForEvent(Q)})("ngModelChange",function(Q){return L.selectedItem=Q})("change",function(Q){return L.onSelected(Q)}),l.qZA()),2&R&&(l.xp6(2),l.Q6J("ngIf",L.loading),l.xp6(1),l.s9C("placeholder",L.translations["Search Brand"]),l.Q6J("items",L.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",L.selectedItem)("ngModelOptions",l.DdM(8,_e)))},dependencies:[C.O5,c.JJ,b.t,V.w9,c.On]})}return D})();var Oe=o(756);function me(D,v){1&D&&l._UZ(0,"util-progress",32),2&D&&l.Q6J("bar",!0)}function ge(D,v){1&D&&(l.TgZ(0,"em",13),l.SDv(1,33),l.qZA())}function Ne(D,v){if(1&D){const p=l.EpF();l.TgZ(0,"div",34)(1,"div",35)(2,"span"),l._uU(3),l.qZA()(),l.TgZ(4,"div",35)(5,"a",36),l.NdJ("click",function(){const J=l.CHM(p).$implicit,Q=l.oxw();return l.KtG(Q.removeCategory(J))}),l._UZ(6,"i",37),l.qZA()()()}if(2&D){const p=v.$implicit;l.xp6(3),l.Oqu(p.name)}}function Ae(D,v){1&D&&(l.TgZ(0,"em",13),l.SDv(1,38),l.qZA())}function $(D,v){if(1&D&&(l.TgZ(0,"option",43),l._uU(1),l.qZA()),2&D){const p=v.$implicit,R=l.oxw().$implicit;l.Q6J("value",p)("selected",R.value===p),l.xp6(1),l.Oqu(p)}}function de(D,v){if(1&D){const p=l.EpF();l.TgZ(0,"div",34)(1,"div",39)(2,"span"),l._uU(3),l.qZA()(),l.TgZ(4,"div",39)(5,"select",40),l.NdJ("change",function(L){const Q=l.CHM(p).$implicit,j=l.oxw();return l.KtG(j.onValueSelected(Q.attr,L))}),l.TgZ(6,"option"),l.SDv(7,41),l.qZA(),l.YNc(8,$,2,3,"option",42),l.qZA()(),l.TgZ(9,"div",39)(10,"a",36),l.NdJ("click",function(){const J=l.CHM(p).$implicit,Q=l.oxw();return l.KtG(Q.removeSpecification(J.attr))}),l._UZ(11,"i",37),l.qZA()()()}if(2&D){const p=v.$implicit;l.xp6(3),l.Oqu(p.attr.name),l.xp6(5),l.Q6J("ngForOf",p.attr.values)}}let O=(()=>{class D extends d.n{constructor(p,R,L,J,Q,j,pe,Ee){super(p,R,L,J,Ee),this.productService=j,this.notifier=pe,this.config=T.C,this.selectedCategories=[],this.selectedBrand=null,this.specifications=[],this.selectedVariations=[],this.productForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),slug:new c.NI("",[c.kI.required,c.kI.minLength(3)]),brand_id:new c.NI(null,[c.kI.required]),description:new c.NI("",[]),category_ids:new c.NI([],[c.kI.required]),variant_ids:new c.NI([],[]),specifications:new c.NI(new Map,[]),images:new c.NI([]),weight:new c.NI(null),approved:new c.NI(!1),frozen_item:new c.NI(!1)}),Q.isAdmin()&&(this.config.getEndpoint=A.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2),null!=Ee.name&&this.productForm.controls.name.setValue(Ee.name)}componentName(){return"ProductUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Products",link:"/admin/products",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.productForm.controls.name.valueChanges.subscribe(p=>{this.productForm.controls.slug.setValue(t.g.slugify(p)+"_"+t.g.randomString(5))})}initialize(p){this.loading=!0;let R=this.componentKey(x.Z.PRODUCTS_V2.GET(p));this.productService.fetchSingle(R,this.config.getEndpoint,p),this.subscribe(R,null,(L,J)=>{this.loading=!1,this.populateForm(J.data)}),this.subscribe(this.getErrorKey(R),null,(L,J)=>{console.log(J.data),this.loading=!1})}onSubmit(){this.productForm.valid&&this.upsert(this.exId)}onImgUploaded(p){p.length>0&&this.productForm.controls.images.setValue(p.map(R=>R.image_url))}getExImages(){return this.productForm.controls.images.value?.map(R=>({image_url:R,thumb_url:R}))}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(p){this.loading=!0;let R=this.componentKey(x.Z.PRODUCTS_V2.UPSERT(p)),L={name:this.productForm.controls.name.value,slug:this.productForm.controls.slug.value,brand_id:this.productForm.controls.brand_id.value,description:this.productForm.controls.description.value,category_ids:this.productForm.controls.category_ids.value,variant_ids:this.productForm.controls.variant_ids.value,images:this.productForm.controls.images.value,weight:this.productForm.controls.weight.value,approved:this.productForm.controls.approved.value,frozen_item:this.productForm.controls.frozen_item.value,action:null,specifications:(0,B.Q3)(this.productForm.controls.specifications.value)};this.productService.upsert(R,A.E.PRODUCTS.PRODUCT_ENDPOINT,L,p),this.subscribe(R,null,(J,Q)=>{this.loading=!1,this.notifier.success("Success","Product has been "+(p?"updated":"created")),this.productForm.reset(),this.onSuccess(Q.data)}),this.subscribe(this.getErrorKey(R),null,(J,Q)=>{let j=Q.data;this.loading=!1,this.notifier.warning("Failed!",j.error.message)})}populateForm(p){this.selectedBrand=p.brand,this.selectedCategories=p.categories,this.selectedVariations=p.variations,this.specifications=p.specifications.map(R=>({attr:R.filterable_attribute,value:R.value})),this.productForm.controls.name.setValue(p.name),this.productForm.controls.slug.setValue(p.slug),this.productForm.controls.brand_id.setValue(p.brand.id),this.productForm.controls.description.setValue(p.description),this.productForm.controls.category_ids.setValue(p.categories.map(R=>R.id)),this.productForm.controls.variant_ids.setValue(p.variations.map(R=>R.id)),this.productForm.controls.specifications.setValue(this.specificationsToMap(this.specifications)),this.productForm.controls.images.setValue(p.images),this.productForm.controls.weight.setValue(p.weight),this.productForm.controls.approved.setValue(p.approved),this.productForm.controls.frozen_item.setValue(p.frozen_item)}onCategorySelected(p){null==p||this.selectedCategories.find(R=>R.id==p.id)||(this.selectedCategories.push(p),this.productForm.controls.category_ids.setValue(this.selectedCategories.map(R=>R.id)))}onBrandSelected(p){this.selectedBrand=p,this.productForm.controls.brand_id.setValue(null==this.selectedBrand?null:this.selectedBrand.id)}onFaSelected(p){null==p||this.specifications.find(R=>R.attr.id==p.id)||this.specifications.push({attr:p,value:null})}onVariationSelected(p){null==p||null==p.id||this.selectedVariations.find(R=>R.id==p.id)||(this.selectedVariations.push(p),this.productForm.controls.variant_ids.setValue(this.selectedVariations.map(R=>R.id)))}removeCategory(p){this.selectedCategories=this.selectedCategories.filter(R=>R.id!=p.id),this.productForm.controls.category_ids.setValue(this.selectedCategories.map(R=>R.id))}removeVariation(p){this.selectedVariations=this.selectedVariations.filter(R=>R.id!=p.id),this.productForm.controls.variant_ids.setValue(this.selectedVariations.map(R=>R.id))}onValueSelected(p,R){this.specifications=this.specifications.map(L=>(L.attr.id==p.id&&(L.value=R.target.value),L)),this.updateControlValue()}removeSpecification(p){this.specifications=this.specifications.filter(R=>R.attr.id!=p.id),this.updateControlValue()}updateControlValue(){this.productForm.controls.specifications.setValue(this.specificationsToMap(this.specifications))}specificationsToMap(p){return p.reduce((R,L)=>(null!==L.value&&R.set(L.attr.code,L.value),R),new Map)}static#e=this.\u0275fac=function(R){return new(R||D)(l.Y36(e.Y),l.Y36(E.F0),l.Y36(u.z),l.Y36(E.gz),l.Y36(N.e),l.Y36(S.M),l.Y36(U.l),l.Y36(g.WI))};static#_=this.\u0275cmp=l.Xpm({type:D,selectors:[["app-product-upsert"]],features:[l.qOj],decls:55,vars:18,consts:function(){let p,R,L,J,Q,j,pe,Ee,k,ue,Se;return p="\u09AA\u09A3\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF/\u0986\u09AA\u09A1\u09C7\u099F \u0995\u09B0\u09C1\u09A8",R="\u09A8\u09BE\u09AE",L="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1",J="\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF",Q="\u09AC\u09C8\u09B6\u09BF\u09B7\u09CD\u099F\u09CD\u09AF\u0997\u09C1\u09B2\u09CB",j="\u09AC\u09BF\u09AC\u09B0\u09A3",pe="\u09AC\u09BE\u09A4\u09BF\u09B2",Ee="\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",k="\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8!",ue="\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8!",Se="\u09AE\u09BE\u09A8 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],p,[3,"formGroup"],[1,"col-sm-6","mb-3"],["for","name-input",1,"form-label"],R,[1,"error"],["type","text","id","name-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],L,[3,"selectedItem","selected"],["class","text-danger",4,"ngIf"],J,["class","row my-2 py-2 mx-0 bg-info-subtle",4,"ngFor","ngForOf"],[1,"col-sm-6"],["for","specification",1,"form-label"],Q,[1,"mb-3"],["for","description",1,"form-label"],j,["id","description","formControlName","description"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],pe,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],Ee,[3,"bar"],k,[1,"row","my-2","py-2","mx-0","bg-info-subtle"],[1,"col-6"],["href","javascript: void(0);",3,"click"],[1,"mdi","mdi-close-circle-outline","text-danger","float-end"],ue,[1,"col-4"],["id","specification","aria-label","Specification",1,"form-select",3,"change"],Se,[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]]},template:function(R,L){1&R&&(l.YNc(0,me,1,1,"util-progress",0),l.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),l.SDv(6,6),l.qZA(),l.TgZ(7,"form",7)(8,"div",1)(9,"div",8)(10,"label",9)(11,"span"),l.SDv(12,10),l.qZA(),l.TgZ(13,"em",11),l._uU(14,"*"),l.qZA()(),l._UZ(15,"input",12),l.TgZ(16,"em",13),l._uU(17),l.qZA()(),l.TgZ(18,"div",8)(19,"label",9)(20,"span"),l.SDv(21,14),l.qZA(),l.TgZ(22,"em",11),l._uU(23,"*"),l.qZA()(),l.TgZ(24,"app-brand-select",15),l.NdJ("selected",function(Q){return L.onBrandSelected(Q)}),l.qZA(),l.YNc(25,ge,2,0,"em",16),l.qZA()(),l.TgZ(26,"div",1)(27,"div",8)(28,"label",9)(29,"span"),l.SDv(30,17),l.qZA(),l.TgZ(31,"em",11),l._uU(32,"*"),l.qZA()(),l.TgZ(33,"app-category-select",15),l.NdJ("selected",function(Q){return L.onCategorySelected(Q)}),l.qZA(),l.YNc(34,Ne,7,1,"div",18),l.YNc(35,Ae,2,0,"em",16),l.qZA(),l.TgZ(36,"div",19)(37,"label",20),l.SDv(38,21),l.qZA(),l.TgZ(39,"app-fa-select",15),l.NdJ("selected",function(Q){return L.onFaSelected(Q)}),l.qZA(),l.YNc(40,de,12,2,"div",18),l.qZA()(),l.TgZ(41,"div",22)(42,"label",23),l.SDv(43,24),l.qZA(),l._UZ(44,"app-editor",25),l.TgZ(45,"em",13),l._uU(46),l.qZA()(),l.TgZ(47,"app-file-picker",26),l.NdJ("onUploaded",function(Q){return L.onImgUploaded(Q)}),l.qZA(),l.TgZ(48,"div",27)(49,"button",28),l.NdJ("click",function(){return L.onCancel()}),l.TgZ(50,"span"),l.SDv(51,29),l.qZA()(),l.TgZ(52,"button",30),l.NdJ("click",function(){return L.onSubmit()}),l.TgZ(53,"span"),l.SDv(54,31),l.qZA()()()()()()()()),2&R&&(l.Q6J("ngIf",L.loading),l.xp6(1),l.Q6J("@loaded",!L.loading),l.xp6(6),l.Q6J("formGroup",L.productForm),l.xp6(8),l.s9C("placeholder",L.translations["Enter Name"]),l.xp6(2),l.hij(" ",L.errMsg(L.productForm,"name","minLength","Name should be at least 3 characters!")," "),l.xp6(7),l.Q6J("selectedItem",L.selectedBrand),l.xp6(1),l.Q6J("ngIf",!L.productForm.controls.brand_id.valid),l.xp6(8),l.Q6J("selectedItem",null),l.xp6(1),l.Q6J("ngForOf",L.selectedCategories),l.xp6(1),l.Q6J("ngIf",!L.productForm.controls.category_ids.valid),l.xp6(4),l.Q6J("selectedItem",null),l.xp6(1),l.Q6J("ngForOf",L.specifications),l.xp6(6),l.hij(" ",L.errMsg(L.productForm,"description","minLength","Description should be at least 20 characters!")," "),l.xp6(1),l.s9C("title",L.translations.Images),l.Q6J("multiSelect",!0)("existingImages",L.getExImages())("required",!1),l.xp6(5),l.Q6J("ngClass",L.productForm.valid?"":"disabled"))},dependencies:[C.mk,C.sg,C.O5,c._Y,c.YN,c.Kr,c.Fj,c.JJ,c.JL,c.sg,c.u,b.t,y.P,h.P,M.P,Te,Oe.t]})}return D})()},973:(z,K,o)=>{o.d(K,{C:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!1,showUserFilter:!1,showDeleteButton:!0,showApproveButton:!1,searchEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2,delEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2,getEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2},x={list:"/admin/inventory/products",create:"/admin/inventory/products/create",update(g){return null==g?this.create:"/admin/inventory/products/"+g+"/update"}}},1492:(z,K,o)=>{o.d(K,{M:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.PRODUCTS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u,N){this.http.get(T.E.PRODUCTS.GET(u,N)).subscribe(S=>{this.eventBusService.publish(E,S.body)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N,S){let U=null==S?T.E.PRODUCTS.CREATE(u):T.E.PRODUCTS.UPDATE(u,S),C=null==S?this.http.post(U,N):this.http.patch(U,N);console.log(N),C.subscribe(b=>{this.eventBusService.publish(E,b)},b=>{this.handleError(b,y=>{this.upsert(E,u,N,S)},y=>{this.eventBusService.publish(this.getErrorKey(E),y)})})}approve(E,u,N,S){let U=T.E.PRODUCTS.APPROVE(u,N,S);this.http.patch(U,{}).subscribe(C=>{this.eventBusService.publish(E,C.body)},C=>{this.handleError(C,b=>{this.approve(E,u,N,S)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9876:(z,K,o)=>{o.d(K,{X:()=>Ae});var d=o(9870),T=o(337),c=o(6223),x=o(7700),g=o(7259),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(5789),E=o(5462),u=o(6814),N=o(4736),S=o(9277),U=o(1426),C=o(8637),b=o(8174),y=o(2771),h=o(2447),M=o(8480),f=o(3668),P=o(8675),I=o(4807);function Z($,de){1&$&&t._UZ(0,"util-progress",4),2&$&&t.Q6J("bar",!0)}const V=function(){return{standalone:!0}};let q=(()=>{class $ extends C.H{componentName(){return"VariationSelectComponent"}constructor(O,D,v,p,R,L){super(O,D,v),this.variationService=R,this.popupService=L,this.searchEndpoint=y.E.VARIATIONS.VARIATION_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new t.vpe,p.isAdmin()&&(this.searchEndpoint=y.E.VARIATIONS.VARIATION_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(O){let D=b.g.removeSpecialCharacters(O.target?.value);D.length>2&&this.search({page:0,size:10,q:D})}onSelected(O){this.items.find(D=>D.name==O.name)?this.selected.emit(this.selectedItem):this.popupService.open(h.s,{id:null,name:O.name}).componentInstance.onCompleted.subscribe(v=>{this.selected.emit(v)})}search(O){this.loading=!0;let D=this.componentKey(g.Z.VARIATIONS.SEARCH(O));this.variationService.search(D,this.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.items=p.data.content,this.loading=!1})}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(M.e),t.Y36(f.$),t.Y36(P.x))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-variation-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[t.qOj],decls:4,vars:9,consts:function(){let O;return O="\u09AD\u09BF\u09A8\u09CD\u09A8\u09A4\u09BE",[["for","autoSizingInput2",1,"visually-hidden"],O,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(D,v){1&D&&(t.TgZ(0,"label",0),t.SDv(1,1),t.qZA(),t.YNc(2,Z,1,1,"util-progress",2),t.TgZ(3,"ng-select",3),t.NdJ("keyup",function(R){return v.searchForEvent(R)})("ngModelChange",function(R){return v.selectedItem=R})("change",function(R){return v.onSelected(R)}),t.qZA()),2&D&&(t.xp6(2),t.Q6J("ngIf",v.loading),t.xp6(1),t.s9C("placeholder",v.translations["Search Variations.."]),t.Q6J("items",v.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",v.selectedItem)("ngModelOptions",t.DdM(8,V)))},dependencies:[u.O5,c.JJ,N.t,I.w9,c.On]})}return $})();var _e=o(9056);function Te($,de){1&$&&t._UZ(0,"util-progress",63),2&$&&t.Q6J("bar",!0)}function Oe($,de){1&$&&(t.TgZ(0,"em",35),t.SDv(1,64),t.qZA())}function me($,de){1&$&&(t.TgZ(0,"em",35),t.SDv(1,65),t.qZA())}function ge($,de){1&$&&t._UZ(0,"util-progress",63),2&$&&t.Q6J("bar",!0)}const Ne=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}};let Ae=(()=>{class $ extends d.n{constructor(O,D,v,p,R,L,J){super(O,D,v,p,J),this.stockService=R,this.notifier=L,this.config=T.u,this.stockForm=new c.cw({vendor_id:new c.NI(null,[c.kI.required]),product_id:new c.NI(null,[c.kI.required]),supplier_id:new c.NI(null,[]),variation_id:new c.NI(null,[]),quantity:new c.NI(null,[c.kI.required]),unit_price:new c.NI(null,[c.kI.required]),retail_price:new c.NI(null,[c.kI.required]),discount_percentage:new c.NI(null,[]),discount_valid_until:new c.NI(null,[]),cashback_percentage:new c.NI(null,[]),cashback_valid_until:new c.NI(null,[])}),this.selectedVendor=null,this.selectedSupplier=null,this.selectedProduct=null,this.selectedVariation=null}componentName(){return"StockUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Stocks",link:"/admin/stocks",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(O){this.loading=!0;let D=this.componentKey(g.Z.STOCKS.GET(O));this.stockService.fetchSingle(D,this.config.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.loading=!1,this.populateForm(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{console.log(p.data),this.loading=!1})}currentDate(){return new Date}onSubmit(){console.log(this.stockForm.value),this.stockForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(O){this.loading=!0;let D=this.componentKey(g.Z.STOCKS.UPSERT(O));this.stockService.upsert(D,this.stockForm.value,O),this.subscribe(D,null,(p,R)=>{this.notifier.success("Success","Stock has been "+(O?"updated":"created")),this.stockForm.reset(),this.onSuccess(R.data)}),this.subscribe(this.getErrorKey(D),null,(p,R)=>{let L=R.data;this.loading=!1,this.notifier.warning("Failed!",L.error.message)})}populateForm(O){this.selectedVendor=O.vendor,this.selectedProduct=O.product,this.selectedVariation=O.variation,this.stockForm.controls.vendor_id.setValue(O.vendor_id),this.stockForm.controls.product_id.setValue(O.product_id),this.stockForm.controls.variation_id.setValue(O.variation_id),this.stockForm.controls.unit_price.setValue(null==O.avg_unit_price?0:Math.round(O.avg_unit_price)),this.stockForm.controls.retail_price.setValue(O.retail_price),this.stockForm.controls.discount_percentage.setValue(O.discount_percentage),this.stockForm.controls.discount_valid_until.setValue(null==O.discount_valid_until?null:O.discount_valid_until),this.stockForm.controls.cashback_percentage.setValue(O.cashback_percentage),this.stockForm.controls.cashback_valid_until.setValue(null==O.cashback_valid_until?null:O.cashback_valid_until)}onVendorSelected(O){this.selectedVendor=O,this.stockForm.controls.vendor_id.setValue(null==O?null:O.id)}onSupplierSelected(O){this.selectedSupplier=O,this.stockForm.controls.supplier_id.setValue(null==O?null:O.id)}onProductSelected(O){console.log(O),this.selectedProduct=O,this.stockForm.controls.product_id.setValue(null==O?null:O.id)}onVariationSelected(O){this.selectedVariation=O,this.stockForm.controls.variation_id.setValue(null==O?null:O.id)}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.q),t.Y36(E.l),t.Y36(x.WI))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-stock-upsert"]],features:[t.qOj],decls:113,vars:27,consts:function(){let O,D,v,p,R,L,J,Q,j,pe,Ee,k,ue,Se,ne,Re,G,Ce,fe;return O="\u09B8\u09CD\u099F\u0995/\u09AE\u09BE\u09B2\u09BE\u09AE\u09BE\u09B2 \u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C1\u09A8",D="\u09B8\u09CD\u099F\u09CB\u09B0\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF",v="\u09B8\u09CD\u099F\u09CB\u09B0 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8",p="\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF",R="\u09AA\u09A3\u09CD\u09AF \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8",L="\u09AD\u09C7\u09B0\u09BF\u09DF\u09C7\u09B6\u09A8 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8",J="\u09B8\u09CD\u099F\u0995\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF",Q="\u09AA\u09B0\u09BF\u09AE\u09BE\u09A3",j="\u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF",pe="\u09AC\u09BF\u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF",Ee="\u09A1\u09BF\u09B8\u0995\u09BE\u0989\u09A8\u09CD\u099F\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF",k="\u09A1\u09BF\u09B8\u0995\u09BE\u0989\u09A8\u09CD\u099F (%)",ue="\u09A1\u09BF\u09B8\u0995\u09BE\u0989\u09A8\u09CD\u099F\u09C7\u09B0 \u09AC\u09C8\u09A7\u09A4\u09BE",Se="\u0995\u09CD\u09AF\u09BE\u09B6\u09AC\u09CD\u09AF\u09BE\u0995 (%)",ne="\u0995\u09CD\u09AF\u09BE\u09B6\u09AC\u09CD\u09AF\u09BE\u0995\u09C7\u09B0 \u09AD\u09CD\u09AF\u09BE\u09B2\u09BF\u09A1\u09BF\u099F\u09BF",Re="\u09AC\u09BE\u09A4\u09BF\u09B2",G="\u09B8\u09CD\u099F\u0995/\u09AE\u09BE\u09B2\u09BE\u09AE\u09BE\u09B2 \u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C1\u09A8",Ce="\u09A6\u09DF\u09BE \u0995\u09B0\u09C7 \u0986\u09AA\u09A8\u09BE\u09B0 \u09B8\u09CD\u099F\u09CB\u09B0 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8\u0964",fe="\u09A6\u09DF\u09BE \u0995\u09B0\u09C7 \u09AA\u09A3\u09CD\u09AF \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8\u0964",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],O,[3,"formGroup"],[1,"card-header","bg-transparent","border-primary"],[1,"my-0","text-primary"],[1,"mdi","mdi-store","me-3","me-3"],D,[1,"card-body","shadow-sm"],[1,"mb-3"],["for","vendor_id-input",1,"form-label","col-form-label-lg"],v,[1,"error"],["id","vendor_id-input",3,"selectedItem","selected"],["class","text-danger",4,"ngIf"],[1,"card","my-3"],[1,"mdi","mdi-package-variant","me-3"],p,[1,"col-sm-6","col-md-6","mb-3"],R,["id","product_id-input",3,"selectedItem","selected"],["for","variation_id-input",1,"form-label","col-form-label-lg"],L,["id","variation_id-input",3,"selectedItem","selected"],[1,"row","my-3"],[1,"col-sm-6"],[1,"mdi","mdi-barcode-scan","me-3"],J,["for","quantity-input",1,"form-label"],Q,["type","text","id","quantity-input","name","quantity","formControlName","quantity",1,"form-control","form-control-lg",3,"placeholder","ngClass"],[1,"text-danger"],["for","unit_price-input",1,"form-label"],j,["type","text","id","unit_price-input","name","unit_price","formControlName","unit_price",1,"form-control","form-control-lg",3,"placeholder","ngClass"],["for","retail_price-input",1,"form-label"],pe,["type","text","id","retail_price-input","name","retail_price","formControlName","retail_price",1,"form-control","form-control-lg",3,"placeholder","ngClass"],[1,"mdi","mdi-tag-off","me-3"],Ee,["for","discount-input",1,"form-label"],k,["type","text","id","discount-input","name","discount_percentage","formControlName","discount_percentage",1,"form-control","form-control-lg",3,"placeholder"],["for","discount_valid_until-input",1,"form-label"],ue,[1,"input-group"],["bsDatepicker","","id","discount_valid_until-input","formControlName","discount_valid_until",1,"form-control","form-control-lg",3,"bsConfig","minDate"],["for","cashback_percentage-input",1,"form-label"],Se,["type","text","id","cashback_percentage-input","name","cashback_percentage","formControlName","cashback_percentage",1,"form-control","form-control-lg",3,"placeholder"],["for","cashback_valid_until-input",1,"form-label"],ne,["bsDatepicker","","id","cashback_valid_until-input","formControlName","cashback_valid_until",1,"form-control","form-control-lg",3,"bsConfig","minDate"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],Re,["type","submit",1,"btn","btn-success","waves-effect","waves-light",3,"ngClass","click"],[1,"mdi","mdi-content-save","d-block","font-size-16"],G,[3,"bar"],Ce,fe]},template:function(D,v){1&D&&(t.YNc(0,Te,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",3)(9,"div",8)(10,"h6",9),t._UZ(11,"i",10),t.TgZ(12,"span"),t.SDv(13,11),t.qZA()()(),t.TgZ(14,"div",12)(15,"div",13)(16,"label",14)(17,"span"),t.SDv(18,15),t.qZA(),t.TgZ(19,"em",16),t._uU(20,"*"),t.qZA()(),t.TgZ(21,"app-vendor-select",17),t.NdJ("selected",function(R){return v.onVendorSelected(R)}),t.qZA(),t.YNc(22,Oe,2,0,"em",18),t.qZA()()(),t.TgZ(23,"div",19)(24,"div",8)(25,"h6",9),t._UZ(26,"i",20),t.TgZ(27,"span"),t.SDv(28,21),t.qZA()()(),t.TgZ(29,"div",12)(30,"div",1)(31,"div",22)(32,"label",14),t.tHW(33,23),t._UZ(34,"em",16),t.N_p(),t.qZA(),t.TgZ(35,"app-product-select",24),t.NdJ("selected",function(R){return v.onProductSelected(R)}),t.qZA(),t.YNc(36,me,2,0,"em",18),t.qZA(),t.TgZ(37,"div",22)(38,"label",25),t.SDv(39,26),t.qZA(),t.TgZ(40,"app-variation-select",27),t.NdJ("selected",function(R){return v.onVariationSelected(R)}),t.qZA()()()()(),t.TgZ(41,"div",28)(42,"div",29)(43,"div",3)(44,"div",8)(45,"h6",9),t._UZ(46,"i",30),t.TgZ(47,"span"),t.SDv(48,31),t.qZA()()(),t.TgZ(49,"div",12)(50,"div",13)(51,"label",32)(52,"span"),t.SDv(53,33),t.qZA(),t.TgZ(54,"em",16),t._uU(55,"*"),t.qZA()(),t._UZ(56,"input",34),t.TgZ(57,"em",35),t._uU(58),t.qZA()(),t.TgZ(59,"div",13)(60,"label",36)(61,"span"),t.SDv(62,37),t.qZA(),t.TgZ(63,"em",16),t._uU(64,"*"),t.qZA()(),t._UZ(65,"input",38),t.TgZ(66,"em",35),t._uU(67),t.qZA()(),t.TgZ(68,"div",13)(69,"label",39)(70,"span"),t.SDv(71,40),t.qZA(),t.TgZ(72,"em",16),t._uU(73,"*"),t.qZA()(),t._UZ(74,"input",41),t.TgZ(75,"em",35),t._uU(76),t.qZA()()()()(),t.TgZ(77,"div",29)(78,"div",3)(79,"div",8)(80,"h6",9),t._UZ(81,"i",42),t.TgZ(82,"span"),t.SDv(83,43),t.qZA()()(),t.TgZ(84,"div",12)(85,"div",13)(86,"label",44),t.SDv(87,45),t.qZA(),t._UZ(88,"input",46),t.qZA(),t.TgZ(89,"div",13)(90,"label",47),t.SDv(91,48),t.qZA(),t.TgZ(92,"div",49),t._UZ(93,"input",50),t.qZA()(),t.TgZ(94,"div",13)(95,"label",51),t.SDv(96,52),t.qZA(),t._UZ(97,"input",53),t.qZA(),t.TgZ(98,"div",13)(99,"label",54),t.SDv(100,55),t.qZA(),t.TgZ(101,"div",49),t._UZ(102,"input",56),t.qZA()()()()()(),t.YNc(103,ge,1,1,"util-progress",0),t.TgZ(104,"div",57)(105,"button",58),t.NdJ("click",function(){return v.onCancel()}),t.TgZ(106,"span"),t.SDv(107,59),t.qZA()(),t.TgZ(108,"button",60),t.NdJ("click",function(){return v.onSubmit()}),t._UZ(109,"i",61),t._uU(110,"\xa0 "),t.TgZ(111,"span"),t.SDv(112,62),t.qZA()()()()()()()()),2&D&&(t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("@loaded",!v.loading),t.xp6(6),t.Q6J("formGroup",v.stockForm),t.xp6(14),t.Q6J("selectedItem",v.selectedVendor),t.xp6(1),t.Q6J("ngIf",null==v.selectedVendor),t.xp6(13),t.Q6J("selectedItem",v.selectedProduct),t.xp6(1),t.Q6J("ngIf",null==v.selectedProduct),t.xp6(4),t.Q6J("selectedItem",v.selectedVariation),t.xp6(16),t.s9C("placeholder",v.translations["Enter Quantity"]),t.Q6J("ngClass",null==v.stockForm.controls.quantity.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"quantity","required","Quantity is required!")," "),t.xp6(7),t.s9C("placeholder",v.translations["Unit Price"]),t.Q6J("ngClass",null==v.stockForm.controls.unit_price.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"unit_price","required","Unit price is required!")," "),t.xp6(7),t.s9C("placeholder",v.translations["Enter Retail Price"]),t.Q6J("ngClass",null==v.stockForm.controls.retail_price.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"retail_price","required","Retail price is required!")," "),t.xp6(12),t.s9C("placeholder",v.translations["Enter Discount"]),t.xp6(5),t.Q6J("bsConfig",t.DdM(25,Ne))("minDate",v.currentDate()),t.xp6(4),t.s9C("placeholder",v.translations["Enter Cashback (%)"]),t.xp6(5),t.Q6J("bsConfig",t.DdM(26,Ne))("minDate",v.currentDate()),t.xp6(1),t.Q6J("ngIf",v.loading),t.xp6(5),t.Q6J("ngClass",v.stockForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.Np,S.Y5,U.q,q,_e.t]})}return $})()},337:(z,K,o)=>{o.d(K,{n:()=>x,u:()=>c});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,searchEndpoint:T.E.STOCKS.STOCK_ENDPOINT_V2,delEndpoint:T.E.STOCKS.STOCK_ENDPOINT,vendorEndpoint:T.E.VENDORS.VENDOR_ENDPOINT_V2},x={list:"/admin/inventory/stocks",create:"/admin/inventory/stocks/create",update(g){return null==g?this.create:"/admin/inventory/stocks/"+g+"/update"}}},5789:(z,K,o)=>{o.d(K,{q:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.STOCKS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u,N){this.http.get(T.E.STOCKS.GET(u,N)).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}fetchBySku(E,u,N){this.http.get(T.E.STOCKS.GET_BY_SKU(u,N)).subscribe(S=>{this.eventBusService.publish(E,S.body)},S=>{this.handleError(S,U=>{this.fetchBySku(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N){let S=null==N?T.E.STOCKS.CREATE():T.E.STOCKS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},2447:(z,K,o)=>{o.d(K,{s:()=>C});var d=o(9870),T=o(4968),c=o(6223),x=o(7259),g=o(7700),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(3668),E=o(5462),u=o(6814),N=o(4736),S=o(7035);function U(b,y){1&b&&t._UZ(0,"util-progress",22),2&b&&t.Q6J("bar",!0)}let C=(()=>{class b extends d.n{constructor(h,M,f,P,I,Z,V){super(h,M,f,P,V),this.variationService=I,this.notifier=Z,this.config=T._,this.variationForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),image:new c.NI(null)}),null!=V.name&&this.variationForm.controls.name.setValue(V.name)}componentName(){return"VariationUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Variations",link:"/admin/variations",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(h){this.loading=!0;let M=this.componentKey(x.Z.VARIATIONS.GET(h));this.variationService.fetchSingle(M,h),this.subscribe(M,null,(f,P)=>{this.loading=!1,this.populateForm(P.data)}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{console.log(P.data),this.loading=!1})}onSubmit(){this.variationForm.valid&&this.upsert(this.exId)}onImgUploaded(h){h.length>0&&this.variationForm.controls.image.setValue(h[0].image_url)}getExImages(){let h=this.variationForm.controls.image.value;return null==h?[]:[{image_url:h,thumb_url:h}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(h){this.loading=!0;let M=this.componentKey(x.Z.VARIATIONS.UPSERT(h));this.variationService.upsert(M,this.variationForm.value,h),this.subscribe(M,null,(f,P)=>{this.loading=!1;let I="Variation has been "+(h?"updated":"created");this.notifier.success("Success",I),this.variationForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(P.data):this.navigate(T.n.list,Z=>{this.notifier.success("Success!",I)})}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{let I=P.data;this.loading=!1,this.notifier.warning("Failed!",I.error.message)})}populateForm(h){this.variationForm.controls.name.setValue(h.name),this.variationForm.controls.description.setValue(h.description),this.variationForm.controls.image.setValue(null==h.image?null:h.image)}static#e=this.\u0275fac=function(M){return new(M||b)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.$),t.Y36(E.l),t.Y36(g.WI))};static#_=this.\u0275cmp=t.Xpm({type:b,selectors:[["app-variation-upsert"]],features:[t.qOj],decls:31,vars:12,consts:function(){let h,M,f,P;return h="\u09A8\u09BE\u09AE",M="\u09AC\u09BF\u09AC\u09B0\u09A3",f="\u09AC\u09BE\u09A4\u09BF\u09B2",P="\u099C\u09AE\u09BE \u09A6\u09BF\u09A8",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","name-input",1,"form-label"],h,[1,"error"],["type","text","id","name-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","description",1,"form-label"],M,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],f,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],P,[3,"bar"]]},template:function(M,f){1&M&&(t.YNc(0,U,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Create/Update Variation"),t.qZA(),t.TgZ(7,"form",6)(8,"div",7)(9,"label",8)(10,"span"),t.SDv(11,9),t.qZA(),t.TgZ(12,"em",10),t._uU(13,"*"),t.qZA()(),t._UZ(14,"input",11),t.TgZ(15,"em",12),t._uU(16),t.qZA()(),t.TgZ(17,"div",7)(18,"label",13),t.SDv(19,14),t.qZA(),t._UZ(20,"textarea",15),t.TgZ(21,"em",12),t._uU(22),t.qZA()(),t.TgZ(23,"app-file-picker",16),t.NdJ("onUploaded",function(I){return f.onImgUploaded(I)}),t.qZA(),t.TgZ(24,"div",17)(25,"button",18),t.NdJ("click",function(){return f.onCancel()}),t.TgZ(26,"span"),t.SDv(27,19),t.qZA()(),t.TgZ(28,"button",20),t.NdJ("click",function(){return f.onSubmit()}),t.TgZ(29,"span"),t.SDv(30,21),t.qZA()()()()()()()()),2&M&&(t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("@loaded",!f.loading),t.xp6(6),t.Q6J("formGroup",f.variationForm),t.xp6(7),t.s9C("placeholder",f.translations["Enter Name"]),t.xp6(2),t.hij(" ",f.errMsg(f.variationForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.s9C("placeholder",f.translations["Enter Description"]),t.xp6(2),t.hij(" ",f.errMsg(f.variationForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(1),t.s9C("title",f.translations.Image),t.Q6J("multiSelect",!1)("existingImages",f.getExImages())("required",!1),t.xp6(5),t.Q6J("ngClass",f.variationForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.P]})}return b})()},4968:(z,K,o)=>{o.d(K,{_:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,showUpdateButton:!1,searchEndpoint:T.E.VARIATIONS.VARIATION_ENDPOINT,delEndpoint:T.E.VARIATIONS.VARIATION_ENDPOINT},x={list:"/admin/inventory/variations",create:"/admin/inventory/variations/create",update(g){return null==g?this.create:"/admin/inventory/variations/"+g+"/update"}}},3668:(z,K,o)=>{o.d(K,{$:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.VARIATIONS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.VARIATIONS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.VARIATIONS.CREATE():T.E.VARIATIONS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9056:(z,K,o)=>{o.d(K,{t:()=>h});var d=o(5879),T=o(8637),c=o(8174),x=o(1364),g=o(7259),t=o(2771),A=o(30),B=o(1662),l=o(6945),e=o(8480),E=o(7405),u=o(8675),N=o(6814),S=o(6223),U=o(4736),C=o(4807);function b(M,f){1&M&&d._UZ(0,"util-progress",4),2&M&&d.Q6J("bar",!0)}const y=function(){return{standalone:!0}};let h=(()=>{class M extends T.H{componentName(){return"VendorSelectComponent"}constructor(P,I,Z,V,q,_e){super(P,I,Z),this.authService=V,this.vendorService=q,this.popupService=_e,this.enableAdd=!1,this.searchEndpoint=t.E.VENDORS.VENDOR_ENDPOINT_V2,this.items=[],this.selectedItem=null,this.selected=new d.vpe,V.isAdmin()&&(this.enableAdd=!0,this.searchEndpoint=t.E.VENDORS.VENDOR_ENDPOINT_ADMIN_V2)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(P){let I=c.g.removeSpecialCharacters(P.target?.value);I.length>2&&this.search({page:0,size:10,q:I})}onSelected(P){if(this.items.find(I=>I.name==P.name))this.selected.emit(this.selectedItem);else{let I=this.popupService.open(x.Z,{id:null,title:P.title,dialogUpsert:!0}),Z=I.componentInstance;Z.onCompleted.subscribe(V=>{this.selected.emit(V)}),Z.onCanceled.subscribe(()=>{I.close()})}}search(P){let I=this.authService.isAdmin();this.loading=!0;let Z=this.componentKey(g.Z.VENDORS.SEARCH(P)+c.g.randomString(5));I?this.vendorService.search(Z,this.searchEndpoint,P):this.vendorService.myVendors(Z,this.searchEndpoint,P),this.subscribe(Z,null,(V,q)=>{this.items=I?q.data.content:q.data,this.loading=!1})}static#e=this.\u0275fac=function(I){return new(I||M)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.e),d.Y36(E.n),d.Y36(u.x))};static#_=this.\u0275cmp=d.Xpm({type:M,selectors:[["app-vendor-select"]],inputs:{enableAdd:"enableAdd",searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let P;return P="\u09B8\u09CD\u099F\u09CB\u09B0",[["for","vendor-select",1,"visually-hidden"],P,[3,"bar",4,"ngIf"],["id","vendor-select","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(I,Z){1&I&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,b,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(q){return Z.searchForEvent(q)})("ngModelChange",function(q){return Z.selectedItem=q})("change",function(q){return Z.onSelected(q)}),d.qZA()),2&I&&(d.xp6(2),d.Q6J("ngIf",Z.loading),d.xp6(1),d.s9C("placeholder",Z.translations["Search Store.."]),d.Q6J("items",Z.items)("hideSelected",!0)("multiple",!1)("addTag",Z.enableAdd)("ngModel",Z.selectedItem)("ngModelOptions",d.DdM(8,y)))},dependencies:[N.O5,S.JJ,U.t,C.w9,S.On]})}return M})()},1364:(z,K,o)=>{o.d(K,{Z:()=>Ae});var d=o(9870),T=o(5734),c=o(6223),x=o(7259),g=o(7700),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(7405),E=o(5462),u=o(5375),N=o(7579),S=o(6814),U=o(4736),C=o(6265),b=o(46),y=o(7035),h=o(2668),M=o(1310),f=o(8637),P=o(8174),I=o(8480),Z=o(5732),V=o(8675),q=o(4807);function _e($,de){1&$&&t._UZ(0,"util-progress",3),2&$&&t.Q6J("bar",!0)}const Te=function(){return{standalone:!0}};let Oe=(()=>{class $ extends f.H{componentName(){return"UserSelectComponent"}constructor(O,D,v,p,R,L){super(O,D,v),this.userService=R,this.popupService=L,this.enableAdd=!0,this.searchEndpoint=M.wl.endpoint,this.items=[],this.selectedItem=null,this.selected=new t.vpe,p.isAdmin()&&(this.searchEndpoint=M.wl.adminEndpoint)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(O){let D=P.g.removeSpecialCharacters(O.target?.value);D.length>2&&this.search({page:0,size:10,q:D})}onSelected(O){null==O?this.selected.emit(null):this.items.find(D=>D.name==O.name)?this.selected.emit(this.selectedItem):this.popupService.open(h.M,{id:null,title:O.title}).componentInstance.onCompleted.subscribe(v=>{this.selected.emit(v)})}search(O){this.loading=!0;let D=this.componentKey(x.Z.USERS.SEARCH(O));this.userService.search(D,this.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.items=p.data.content,this.loading=!1})}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(I.e),t.Y36(Z.K),t.Y36(V.x))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-user-select"]],inputs:{enableAdd:"enableAdd",searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[t.qOj],decls:4,vars:8,consts:[["for","user-select",1,"visually-hidden"],[3,"bar",4,"ngIf"],["id","user-select","bindLabel","label","placeholder","Search User",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]],template:function(D,v){1&D&&(t.TgZ(0,"label",0),t._uU(1,"User"),t.qZA(),t.YNc(2,_e,1,1,"util-progress",1),t.TgZ(3,"ng-select",2),t.NdJ("keyup",function(R){return v.searchForEvent(R)})("ngModelChange",function(R){return v.selectedItem=R})("change",function(R){return v.onSelected(R)}),t.qZA()),2&D&&(t.xp6(2),t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("items",v.items)("hideSelected",!0)("multiple",!1)("addTag",v.enableAdd)("ngModel",v.selectedItem)("ngModelOptions",t.DdM(7,Te)))},dependencies:[S.O5,c.JJ,c.On,U.t,q.w9]})}return $})();function me($,de){1&$&&t._UZ(0,"util-progress",66),2&$&&t.Q6J("bar",!0)}function ge($,de){if(1&$){const O=t.EpF();t.TgZ(0,"div",67)(1,"label",68),t._uU(2),t.qZA(),t.TgZ(3,"app-location-select",69),t.NdJ("selected",function(v){const R=t.CHM(O).$implicit,L=t.oxw();return t.KtG(L.onLocationSelected(v,R.type))}),t.qZA()()}if(2&$){const O=de.$implicit;t.xp6(1),t.s9C("for",O.type.label),t.xp6(1),t.Oqu(O.type.label),t.xp6(1),t.Q6J("preload",null==O.type.parent_id)("items",O.locations)("selectedItem",O.selectedLocation)}}function Ne($,de){1&$&&(t.TgZ(0,"em",13),t._uU(1," Location is required! "),t.qZA())}let Ae=(()=>{class $ extends d.n{constructor(O,D,v,p,R,L,J,Q,j){super(O,D,v,p,j),this.vendorService=R,this.notifier=L,this.locationTypeService=J,this.locationService=Q,this.config=T.j,this.vendorForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),type:new c.NI("GENERAL",[c.kI.required]),commission_percentage:new c.NI(0,[c.kI.required,c.kI.min(0),c.kI.max(100)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),logo:new c.NI(null,[c.kI.required]),banner:new c.NI(null),owner_id:new c.NI(null,[]),supplier:new c.NI(!1,[]),flagship:new c.NI(!1,[]),authorized_dealer:new c.NI(!1,[]),ecommerce_activated:new c.NI(!1,[]),phone:new c.NI(null,[]),account_name:new c.NI(null,[]),account_number:new c.NI(null,[]),bank_name:new c.NI(null,[]),branch_name:new c.NI(null,[]),routing:new c.NI(null,[]),address:new c.cw({address_line_one:new c.NI(null,[c.kI.required]),address_line_two:new c.NI(null,[]),altitude:new c.NI(0,[c.kI.required]),latitude:new c.NI(0,[c.kI.required]),longitude:new c.NI(0,[c.kI.required]),title:new c.NI(null,[]),zip_code:new c.NI(null,[]),location_id:new c.NI(null,[])})}),this.selectedOwner=null,this.locations=[],null!=j.title&&this.vendorForm.controls.name.setValue(j.name)}componentName(){return"VendorUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Vendors",link:"/admin/vendors",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.fetchLocationTypes({page:0,size:100,q:null})}initialize(O){this.loading=!0,this.fetchEx(O)}onSubmit(){this.vendorForm.valid&&this.upsert(this.exId)}onLogoPicked(O){O.length>0&&this.vendorForm.controls.logo.setValue(O[0].image_url)}onBannerPicked(O){O.length>0&&this.vendorForm.controls.banner.setValue(O[0].image_url)}getExLogo(){let O=this.vendorForm.controls.logo.value;return null==O?[]:[{image_url:O,thumb_url:O}]}getExBanner(){let O=this.vendorForm.controls.banner.value;return null==O?[]:[{image_url:O,thumb_url:O}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(O){this.loading=!0;let D=this.componentKey(x.Z.VENDORS.UPSERT(O));this.vendorService.upsert(D,this.vendorForm.value,O),this.subscribe(D,null,(v,p)=>{this.notifier.success("Success","Vendor has been "+(O?"updated":"created")),this.vendorForm.reset(),this.onSuccess(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{let R=p.data;this.loading=!1,this.notifier.warning("Failed!",R.error.message)})}populateForm(O){this.vendorForm.controls.name.setValue(O.name),this.vendorForm.controls.type.setValue(O.type),this.vendorForm.controls.commission_percentage.setValue(O.commission_percentage),this.vendorForm.controls.description.setValue(O.description),this.vendorForm.controls.logo.setValue(null==O.logo?null:O.logo),this.vendorForm.controls.banner.setValue(null==O.banner?null:O.banner),this.vendorForm.controls.owner_id.setValue(null==O.owner?null:O.owner.id),this.vendorForm.controls.supplier.setValue(O.supplier),this.vendorForm.controls.flagship.setValue(O.flagship),this.vendorForm.controls.authorized_dealer.setValue(O.authorized_dealer),this.vendorForm.controls.ecommerce_activated.setValue(O.ecommerce_activated),this.vendorForm.controls.phone.setValue(O.phone),this.vendorForm.controls.account_name.setValue(O.account_name),this.vendorForm.controls.account_number.setValue(O.account_number),this.vendorForm.controls.bank_name.setValue(O.bank_name),this.vendorForm.controls.branch_name.setValue(O.branch_name),this.vendorForm.controls.routing.setValue(O.routing),this.vendorForm.controls.address.controls.address_line_one.setValue(O.address.address_line_one),this.vendorForm.controls.address.controls.address_line_two.setValue(O.address.address_line_two),this.vendorForm.controls.address.controls.altitude.setValue(O.address.altitude),this.vendorForm.controls.address.controls.latitude.setValue(O.address.latitude),this.vendorForm.controls.address.controls.longitude.setValue(O.address.longitude),this.vendorForm.controls.address.controls.title.setValue(O.address.title),this.vendorForm.controls.address.controls.zip_code.setValue(O.address.zip_code),this.vendorForm.controls.address.controls.location_id.setValue(O.address.location_id),this.selectedOwner=O.owner,new Map(Object.entries(O.address.locations_tree)).forEach((D,v)=>{let p=this.locations.find(R=>R.type.code==v)?.type;null!=p&&this.onLocationSelected(D,p)})}fetchEx(O){let D=this.componentKey(x.Z.VENDORS.GET(O));this.vendorService.fetchSingle(D,O),this.subscribe(D,null,(v,p)=>{this.loading=!1,this.populateForm(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{console.log(p.data),this.loading=!1})}fetchLocationTypes(O){this.loading=!0;const D=this.componentKey(x.Z.LOCATIONTYPES.SEARCH(O));this.locationTypeService.search(D,this.config.locationTypeEndpoint,O),this.subscribe(D,null,(v,p)=>{let R=p.data.content;R.sort((L,J)=>L.level-J.level),this.locations=R.map(L=>({type:L,locations:[],selectedLocation:null})),this.loading=!1}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{this.notifier.error("Error",p.data.error.message)})}fetchChildLocations(O,D){this.loading=!0;const v=this.componentKey(x.Z.LOCATIONS.SEARCH(O));this.locationService.searchChildren(v,this.config.locationEndpoint,O),this.subscribe(v,null,(p,R)=>{D(R.data.content),this.loading=!1}),this.subscribe(this.getErrorKey(v),null,(p,R)=>{this.notifier.error("Error",R.data.error.message)})}onLocationSelected(O,D){this.locations=this.locations.map(p=>p.type.id==D.id?{...p,selectedLocation:O}:p.type.level>D.level?{...p,selectedLocation:null}:p),console.log("selected location",this.locations);let v=this.locations.filter(p=>null!=p.selectedLocation).sort((p,R)=>R.type.level-p.type.level);if(console.log("sorted and filtered",v),v.length>0){let p=v[0].selectedLocation;this.vendorForm.controls.address.controls.location_id.setValue(null==p?null:p.id)}console.log("selected location in control",this.vendorForm.controls.address.controls.location_id.value),null!=O&&this.fetchChildLocations({page:0,size:100,q:null,parent_id:O.id},p=>{if(0==p.length)return;let R=p[0].type_id;this.locations=this.locations.map(L=>L.type.id==R?{...L,locations:p}:L)})}onOwnerSelected(O){this.selectedOwner=O,this.vendorForm.controls.owner_id.setValue(null==O?null:O.id)}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.n),t.Y36(E.l),t.Y36(u.I),t.Y36(N.a),t.Y36(g.WI))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-vendor-upsert"]],features:[t.qOj],decls:136,vars:18,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"mb-4"],[1,"card-name"],[1,"text-warning"],[1,"error"],[3,"formGroup"],[1,"col-sm-6","col-lg-3","mb-3"],["for","name-input",1,"form-label"],["type","text","id","name-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],[1,"col-6","col-sm-6","col-lg-3","mb-3"],["for","type-input",1,"form-label"],["id","type-input","formControlName","type",1,"form-select"],["value","GENERAL"],["value","RESTAURANT"],["for","owner-input",1,"form-label"],["id","owner-input",3,"selectedItem","selected"],["for","comm-input",1,"form-label"],["type","text","id","comm-input","placeholder","Enter Commission","name","commission_percentage","formControlName","commission_percentage",1,"form-control"],[1,"col-6","mb-3"],[1,"form-label"],["title","Logo",3,"multiSelect","existingImages","required","onUploaded"],["title","Banner",3,"multiSelect","existingImages","required","onUploaded"],[1,"mb-3"],["for","description",1,"form-label"],["id","description","formControlName","description"],[1,"row","col-12"],[1,"col-sm-6"],[1,"form-check","form-check-primary","form-checkbox-outline","mb-3"],["type","checkbox","id","supplier","formControlName","supplier",1,"form-check-input"],["for","supplier",1,"form-check-label"],["type","checkbox","id","flagship","formControlName","flagship",1,"form-check-input"],["for","flagship",1,"form-check-label"],["type","checkbox","id","authorized_dealer","formControlName","authorized_dealer",1,"form-check-input"],["for","authorized_dealer",1,"form-check-label"],["type","checkbox","id","ecommerce_activated","formControlName","ecommerce_activated",1,"form-check-input"],["for","ecommerce_activated",1,"form-check-label"],[1,"row","col-sm-6"],[1,"col-6","col-md-6","mb-3"],["for","account_name-input",1,"form-label"],["type","text","id","account_name-input","placeholder","Account Name","name","account_name","formControlName","account_name",1,"form-control"],["for","account_number-input",1,"form-label"],["type","text","id","account_number-input","placeholder","Account Number","name","account_number","formControlName","account_number",1,"form-control"],[1,"col-md-6","mb-3"],["for","bank_name-input",1,"form-label"],["type","text","id","bank_name-input","placeholder","Bank Name","name","bank_name","formControlName","bank_name",1,"form-control"],["for","branch_name-input",1,"form-label"],["type","text","id","branch_name-input","placeholder","Branch Name","name","branch_name","formControlName","branch_name",1,"form-control"],["for","routing-input",1,"form-label"],["type","text","id","routing-input","placeholder","Routing","name","routing","formControlName","routing",1,"form-control"],["formGroupName","address"],[1,"section"],[1,"col-sm-6","mb-3"],["for","addr1-input",1,"form-label"],["type","text","id","addr1-input","placeholder","Enter Address Line 1","name","address_line_one","formControlName","address_line_one",1,"form-control"],["for","address_line_two-input",1,"form-label"],["type","text","id","address_line_two-input","placeholder","Enter Address Line 2","name","address_line_two","formControlName","address_line_two",1,"form-control"],["class","col-6 col-sm-6 mb-3",4,"ngFor","ngForOf"],["class","text-danger",4,"ngIf"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],[1,"col-6","col-sm-6","mb-3"],[1,"form-label",3,"for"],[3,"preload","items","selectedItem","selected"]],template:function(D,v){1&D&&(t.YNc(0,me,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4",6),t._uU(7,"Create/Update Vendor"),t.qZA(),t.TgZ(8,"em",7),t._uU(9," Form fields with "),t.TgZ(10,"em",8),t._uU(11,"*"),t.qZA(),t._uU(12," are required. "),t.qZA()(),t.TgZ(13,"form",9)(14,"div",1)(15,"div",10)(16,"label",11),t._uU(17,"Name"),t.TgZ(18,"em",8),t._uU(19,"*"),t.qZA()(),t._UZ(20,"input",12),t.TgZ(21,"em",13),t._uU(22),t.qZA()(),t.TgZ(23,"div",14)(24,"label",15),t._uU(25,"Type"),t.TgZ(26,"em",8),t._uU(27,"*"),t.qZA()(),t.TgZ(28,"select",16)(29,"option",17),t._uU(30,"General"),t.qZA(),t.TgZ(31,"option",18),t._uU(32,"Restaurant"),t.qZA()(),t.TgZ(33,"em",13),t._uU(34),t.qZA()(),t.TgZ(35,"div",14)(36,"label",19),t._uU(37,"Owner"),t.qZA(),t.TgZ(38,"app-user-select",20),t.NdJ("selected",function(R){return v.onOwnerSelected(R)}),t.qZA(),t._UZ(39,"em",13),t.qZA(),t.TgZ(40,"div",10)(41,"label",21),t._uU(42,"Commission"),t.TgZ(43,"em",8),t._uU(44,"*"),t.qZA()(),t._UZ(45,"input",22),t.TgZ(46,"em",13),t._uU(47),t.qZA()()(),t.TgZ(48,"div",1)(49,"div",23)(50,"label",24),t._uU(51,"Logo"),t.TgZ(52,"em",8),t._uU(53,"*"),t.qZA()(),t.TgZ(54,"app-file-picker",25),t.NdJ("onUploaded",function(R){return v.onLogoPicked(R)}),t.qZA()(),t.TgZ(55,"div",23)(56,"label",24),t._uU(57,"Banner"),t.qZA(),t.TgZ(58,"app-file-picker",26),t.NdJ("onUploaded",function(R){return v.onBannerPicked(R)}),t.qZA()()(),t.TgZ(59,"div",27)(60,"label",28),t._uU(61,"Description"),t.TgZ(62,"em",8),t._uU(63,"*"),t.qZA()(),t._UZ(64,"app-editor",29),t.TgZ(65,"em",13),t._uU(66),t.qZA()(),t.TgZ(67,"div",30)(68,"div",31)(69,"h5",5),t._uU(70,"Vendor Flags"),t.qZA(),t.TgZ(71,"div",32),t._UZ(72,"input",33),t.TgZ(73,"label",34),t._uU(74,"Vendor is a supplier"),t.qZA()(),t.TgZ(75,"div",32),t._UZ(76,"input",35),t.TgZ(77,"label",36),t._uU(78,"Flagship Store"),t.qZA()(),t.TgZ(79,"div",32),t._UZ(80,"input",37),t.TgZ(81,"label",38),t._uU(82,"Vendor is an authorized Dealer"),t.qZA()(),t.TgZ(83,"div",32),t._UZ(84,"input",39),t.TgZ(85,"label",40),t._uU(86,"Ecommerce Activated"),t.qZA()()(),t.TgZ(87,"div",41)(88,"div",1)(89,"h5",27),t._uU(90,"Bank Information"),t.qZA(),t.TgZ(91,"div",42)(92,"label",43),t._uU(93,"Account Name"),t.qZA(),t._UZ(94,"input",44),t.qZA(),t.TgZ(95,"div",42)(96,"label",45),t._uU(97,"Account Number"),t.qZA(),t._UZ(98,"input",46),t.qZA(),t.TgZ(99,"div",47)(100,"label",48),t._uU(101,"Bank Name"),t.qZA(),t._UZ(102,"input",49),t.qZA(),t.TgZ(103,"div",42)(104,"label",50),t._uU(105,"Branch Name"),t.qZA(),t._UZ(106,"input",51),t.qZA(),t.TgZ(107,"div",42)(108,"label",52),t._uU(109,"Routing"),t.qZA(),t._UZ(110,"input",53),t.qZA()()()(),t.TgZ(111,"div",54)(112,"section",55)(113,"h5",27),t._uU(114,"Address"),t.qZA(),t.TgZ(115,"div",1)(116,"div",56)(117,"label",57),t._uU(118,"Address Line 1"),t.TgZ(119,"em",8),t._uU(120,"*"),t.qZA()(),t._UZ(121,"input",58),t.TgZ(122,"em",13),t._uU(123),t.qZA()(),t.TgZ(124,"div",56)(125,"label",59),t._uU(126,"Address Line 2"),t.qZA(),t._UZ(127,"input",60),t.qZA()(),t.TgZ(128,"div",1),t.YNc(129,ge,4,5,"div",61),t.YNc(130,Ne,2,0,"em",62),t.qZA()()(),t.TgZ(131,"div",63)(132,"button",64),t.NdJ("click",function(){return v.onCancel()}),t._uU(133," Cancel "),t.qZA(),t.TgZ(134,"button",65),t.NdJ("click",function(){return v.onSubmit()}),t._uU(135," Submit "),t.qZA()()()()()()()),2&D&&(t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("@loaded",!v.loading),t.xp6(12),t.Q6J("formGroup",v.vendorForm),t.xp6(9),t.hij(" ",v.errMsg(v.vendorForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(12),t.hij(" ",v.errMsg(v.vendorForm,"type","required","Must select a type!")," "),t.xp6(4),t.Q6J("selectedItem",v.selectedOwner),t.xp6(9),t.hij(" ",v.errMsg(v.vendorForm,"commission_percentage","minLength","Name should be at least 3 characters!")," "),t.xp6(7),t.Q6J("multiSelect",!0)("existingImages",v.getExLogo())("required",!1),t.xp6(4),t.Q6J("multiSelect",!0)("existingImages",v.getExBanner())("required",!1),t.xp6(8),t.hij(" ",v.errMsg(v.vendorForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(57),t.hij(" ",v.errMsg(v.vendorForm.controls.address,"address_line_one","required","This field is required!")," "),t.xp6(6),t.Q6J("ngForOf",v.locations),t.xp6(1),t.Q6J("ngIf",null==v.vendorForm.controls.address.controls.location_id.value),t.xp6(4),t.Q6J("ngClass",v.vendorForm.valid?"":"disabled"))},dependencies:[S.mk,S.sg,S.O5,c._Y,c.YN,c.Kr,c.Fj,c.Wl,c.EJ,c.JJ,c.JL,c.sg,c.u,c.x0,U.t,C.P,b._,y.P,Oe]})}return $})()},5734:(z,K,o)=>{o.d(K,{j:()=>x,n:()=>g});var d=o(6405),T=o(2771),c=o(6032);let x={defaultLayout:d.A.GRID,upsertOnDialog:!1,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:T.E.VENDORS.VENDOR_ENDPOINT,delEndpoint:T.E.VENDORS.VENDOR_ENDPOINT,locationTypeEndpoint:c.s.LOCATIONTYPES.LOCATIONTYPE_ENDPOINT,locationEndpoint:c.s.LOCATIONS.LOCATION_ENDPOINT,showApprovalButton:!1},g={list:"/admin/inventory/vendors",create:"/admin/inventory/vendors/create",update(t){return null==t?this.create:"/admin/inventory/vendors/"+t+"/update"}}},7405:(z,K,o)=>{o.d(K,{n:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.VENDORS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}myVendors(E,u,N={}){let S=T.E.VENDORS.MY_VENDORS(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}searchCustomers(E,u){let N=T.E.VENDORS.SEARCH_CUSTOMERS(u);this.http.get(N).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.searchCustomers(E,u)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}fetchSingle(E,u){this.http.get(T.E.VENDORS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N.body)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}toggleApproval(E,u,N){this.http.patch(T.E.VENDORS.TOGGLE_APPROVAL(u,N),{}).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N){let S=null==N?T.E.VENDORS.CREATE():T.E.VENDORS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()}}]); \ No newline at end of file diff --git a/en-US/424.c731aac7a204dc96.js b/bn-BN/424.05662c3e665c7706.js similarity index 65% rename from en-US/424.c731aac7a204dc96.js rename to bn-BN/424.05662c3e665c7706.js index e17a6a0..3c94d9f 100644 --- a/en-US/424.c731aac7a204dc96.js +++ b/bn-BN/424.05662c3e665c7706.js @@ -1,4 +1,4 @@ -(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[424],{7930:(we,$t,gt)=>{we=gt.nmd(we),function(at){const Tt=at.en=at.en||{};Tt.dictionary=Object.assign(Tt.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit image":"Edit image","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Failed to determine category of edited image.":"Failed to determine category of edited image.","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert image with file manager":"Insert image with file manager","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Insert with file manager":"Insert with file manager","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous","Processing the edited image.":"Processing the edited image.",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Replace from computer":"Replace from computer","Replace image":"Replace image","Replace image from computer":"Replace image from computer","Replace image with file manager":"Replace image with file manager","Replace with file manager":"Replace with file manager","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Server failed to process the image.":"Server failed to process the image.","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),self,we.exports=(()=>{var at={4959:(et,ct,L)=>{const dt=L(1103),ot={};for(const Z of Object.keys(dt))ot[dt[Z]]=Z;const it={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};et.exports=it;for(const Z of Object.keys(it)){if(!("channels"in it[Z]))throw new Error("missing channels property: "+Z);if(!("labels"in it[Z]))throw new Error("missing channel labels property: "+Z);if(it[Z].labels.length!==it[Z].channels)throw new Error("channel and label counts mismatch: "+Z);const{channels:Q,labels:rt}=it[Z];delete it[Z].channels,delete it[Z].labels,Object.defineProperty(it[Z],"channels",{value:Q}),Object.defineProperty(it[Z],"labels",{value:rt})}it.rgb.hsl=function(Z){const Q=Z[0]/255,rt=Z[1]/255,U=Z[2]/255,pt=Math.min(Q,rt,U),_t=Math.max(Q,rt,U),xt=_t-pt;let nt,Mt;_t===pt?nt=0:Q===_t?nt=(rt-U)/xt:rt===_t?nt=2+(U-Q)/xt:U===_t&&(nt=4+(Q-rt)/xt),nt=Math.min(60*nt,360),nt<0&&(nt+=360);const It=(pt+_t)/2;return Mt=_t===pt?0:It<=.5?xt/(_t+pt):xt/(2-_t-pt),[nt,100*Mt,100*It]},it.rgb.hsv=function(Z){let Q,rt,U,pt,_t;const xt=Z[0]/255,nt=Z[1]/255,Mt=Z[2]/255,It=Math.max(xt,nt,Mt),bt=It-Math.min(xt,nt,Mt),St=function(W){return(It-W)/6/bt+.5};return 0===bt?(pt=0,_t=0):(_t=bt/It,Q=St(xt),rt=St(nt),U=St(Mt),xt===It?pt=U-rt:nt===It?pt=.3333333333333333+Q-U:Mt===It&&(pt=.6666666666666666+rt-Q),pt<0?pt+=1:pt>1&&(pt-=1)),[360*pt,100*_t,100*It]},it.rgb.hwb=function(Z){const Q=Z[0],rt=Z[1];let U=Z[2];const pt=it.rgb.hsl(Z)[0],_t=1/255*Math.min(Q,Math.min(rt,U));return U=1-.00392156862745098*Math.max(Q,Math.max(rt,U)),[pt,100*_t,100*U]},it.rgb.cmyk=function(Z){const Q=Z[0]/255,rt=Z[1]/255,U=Z[2]/255,pt=Math.min(1-Q,1-rt,1-U);return[100*((1-Q-pt)/(1-pt)||0),100*((1-rt-pt)/(1-pt)||0),100*((1-U-pt)/(1-pt)||0),100*pt]},it.rgb.keyword=function(Z){const Q=ot[Z];if(Q)return Q;let rt,U=1/0;for(const xt of Object.keys(dt)){const Mt=((pt=Z)[0]-(_t=dt[xt])[0])**2+(pt[1]-_t[1])**2+(pt[2]-_t[2])**2;Mt.04045?((Q+.055)/1.055)**2.4:Q/12.92,rt=rt>.04045?((rt+.055)/1.055)**2.4:rt/12.92,U=U>.04045?((U+.055)/1.055)**2.4:U/12.92,[100*(.4124*Q+.3576*rt+.1805*U),100*(.2126*Q+.7152*rt+.0722*U),100*(.0193*Q+.1192*rt+.9505*U)]},it.rgb.lab=function(Z){const Q=it.rgb.xyz(Z);let rt=Q[0],U=Q[1],pt=Q[2];return rt/=95.047,U/=100,pt/=108.883,rt=rt>.008856?rt**.3333333333333333:7.787*rt+.13793103448275862,U=U>.008856?U**.3333333333333333:7.787*U+.13793103448275862,pt=pt>.008856?pt**.3333333333333333:7.787*pt+.13793103448275862,[116*U-16,500*(rt-U),200*(U-pt)]},it.hsl.rgb=function(Z){const Q=Z[0]/360,rt=Z[1]/100,U=Z[2]/100;let pt,_t,xt;if(0===rt)return xt=255*U,[xt,xt,xt];pt=U<.5?U*(1+rt):U+rt-U*rt;const nt=2*U-pt,Mt=[0,0,0];for(let It=0;It<3;It++)_t=Q+.3333333333333333*-(It-1),_t<0&&_t++,_t>1&&_t--,xt=6*_t<1?nt+6*(pt-nt)*_t:2*_t<1?pt:3*_t<2?nt+(pt-nt)*(.6666666666666666-_t)*6:nt,Mt[It]=255*xt;return Mt},it.hsl.hsv=function(Z){const Q=Z[0];let rt=Z[1]/100,U=Z[2]/100,pt=rt;const _t=Math.max(U,.01);return U*=2,rt*=U<=1?U:2-U,pt*=_t<=1?_t:2-_t,[Q,100*(0===U?2*pt/(_t+pt):2*rt/(U+rt)),(U+rt)/2*100]},it.hsv.rgb=function(Z){const Q=Z[0]/60,rt=Z[1]/100;let U=Z[2]/100;const pt=Math.floor(Q)%6,_t=Q-Math.floor(Q),xt=255*U*(1-rt),nt=255*U*(1-rt*_t),Mt=255*U*(1-rt*(1-_t));switch(U*=255,pt){case 0:return[U,Mt,xt];case 1:return[nt,U,xt];case 2:return[xt,U,Mt];case 3:return[xt,nt,U];case 4:return[Mt,xt,U];case 5:return[U,xt,nt]}},it.hsv.hsl=function(Z){const Q=Z[0],rt=Z[1]/100,U=Z[2]/100,pt=Math.max(U,.01);let _t,xt;xt=(2-rt)*U;const nt=(2-rt)*pt;return _t=rt*pt,_t/=nt<=1?nt:2-nt,_t=_t||0,xt/=2,[Q,100*_t,100*xt]},it.hwb.rgb=function(Z){const Q=Z[0]/360;let rt=Z[1]/100,U=Z[2]/100;const pt=rt+U;let _t;pt>1&&(rt/=pt,U/=pt);const xt=Math.floor(6*Q),nt=1-U;_t=6*Q-xt,1&xt&&(_t=1-_t);const Mt=rt+_t*(nt-rt);let It,bt,St;switch(xt){default:case 6:case 0:It=nt,bt=Mt,St=rt;break;case 1:It=Mt,bt=nt,St=rt;break;case 2:It=rt,bt=nt,St=Mt;break;case 3:It=rt,bt=Mt,St=nt;break;case 4:It=Mt,bt=rt,St=nt;break;case 5:It=nt,bt=rt,St=Mt}return[255*It,255*bt,255*St]},it.cmyk.rgb=function(Z){const rt=Z[1]/100,U=Z[2]/100,pt=Z[3]/100;return[255*(1-Math.min(1,Z[0]/100*(1-pt)+pt)),255*(1-Math.min(1,rt*(1-pt)+pt)),255*(1-Math.min(1,U*(1-pt)+pt))]},it.xyz.rgb=function(Z){const Q=Z[0]/100,rt=Z[1]/100,U=Z[2]/100;let pt,_t,xt;return pt=3.2406*Q+-1.5372*rt+-.4986*U,_t=-.9689*Q+1.8758*rt+.0415*U,xt=.0557*Q+-.204*rt+1.057*U,pt=pt>.0031308?1.055*pt**.4166666666666667-.055:12.92*pt,_t=_t>.0031308?1.055*_t**.4166666666666667-.055:12.92*_t,xt=xt>.0031308?1.055*xt**.4166666666666667-.055:12.92*xt,pt=Math.min(Math.max(0,pt),1),_t=Math.min(Math.max(0,_t),1),xt=Math.min(Math.max(0,xt),1),[255*pt,255*_t,255*xt]},it.xyz.lab=function(Z){let Q=Z[0],rt=Z[1],U=Z[2];return Q/=95.047,rt/=100,U/=108.883,Q=Q>.008856?Q**.3333333333333333:7.787*Q+.13793103448275862,rt=rt>.008856?rt**.3333333333333333:7.787*rt+.13793103448275862,U=U>.008856?U**.3333333333333333:7.787*U+.13793103448275862,[116*rt-16,500*(Q-rt),200*(rt-U)]},it.lab.xyz=function(Z){let Q,rt,U;rt=(Z[0]+16)/116,Q=Z[1]/500+rt,U=rt-Z[2]/200;const pt=rt**3,_t=Q**3,xt=U**3;return rt=pt>.008856?pt:(rt-.13793103448275862)/7.787,Q=_t>.008856?_t:(Q-.13793103448275862)/7.787,U=xt>.008856?xt:(U-.13793103448275862)/7.787,Q*=95.047,rt*=100,U*=108.883,[Q,rt,U]},it.lab.lch=function(Z){const Q=Z[0],rt=Z[1],U=Z[2];let pt;return pt=360*Math.atan2(U,rt)/2/Math.PI,pt<0&&(pt+=360),[Q,Math.sqrt(rt*rt+U*U),pt]},it.lch.lab=function(Z){const rt=Z[1],U=Z[2]/360*2*Math.PI;return[Z[0],rt*Math.cos(U),rt*Math.sin(U)]},it.rgb.ansi16=function(Z,Q=null){const[rt,U,pt]=Z;let _t=null===Q?it.rgb.hsv(Z)[2]:Q;if(_t=Math.round(_t/50),0===_t)return 30;let xt=30+(Math.round(pt/255)<<2|Math.round(U/255)<<1|Math.round(rt/255));return 2===_t&&(xt+=60),xt},it.hsv.ansi16=function(Z){return it.rgb.ansi16(it.hsv.rgb(Z),Z[2])},it.rgb.ansi256=function(Z){const Q=Z[0],rt=Z[1],U=Z[2];return Q===rt&&rt===U?Q<8?16:Q>248?231:Math.round((Q-8)/247*24)+232:16+36*Math.round(Q/255*5)+6*Math.round(rt/255*5)+Math.round(U/255*5)},it.ansi16.rgb=function(Z){let Q=Z%10;if(0===Q||7===Q)return Z>50&&(Q+=3.5),Q=Q/10.5*255,[Q,Q,Q];const rt=.5*(1+~~(Z>50));return[(1&Q)*rt*255,(Q>>1&1)*rt*255,(Q>>2&1)*rt*255]},it.ansi256.rgb=function(Z){if(Z>=232){const rt=10*(Z-232)+8;return[rt,rt,rt]}let Q;return Z-=16,[Math.floor(Z/36)/5*255,Math.floor((Q=Z%36)/6)/5*255,Q%6/5*255]},it.rgb.hex=function(Z){const Q=(((255&Math.round(Z[0]))<<16)+((255&Math.round(Z[1]))<<8)+(255&Math.round(Z[2]))).toString(16).toUpperCase();return"000000".substring(Q.length)+Q},it.hex.rgb=function(Z){const Q=Z.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!Q)return[0,0,0];let rt=Q[0];3===Q[0].length&&(rt=rt.split("").map(pt=>pt+pt).join(""));const U=parseInt(rt,16);return[U>>16&255,U>>8&255,255&U]},it.rgb.hcg=function(Z){const Q=Z[0]/255,rt=Z[1]/255,U=Z[2]/255,pt=Math.max(Math.max(Q,rt),U),_t=Math.min(Math.min(Q,rt),U),xt=pt-_t;let nt,Mt;return nt=xt<1?_t/(1-xt):0,Mt=xt<=0?0:pt===Q?(rt-U)/xt%6:pt===rt?2+(U-Q)/xt:4+(Q-rt)/xt,Mt/=6,Mt%=1,[360*Mt,100*xt,100*nt]},it.hsl.hcg=function(Z){const Q=Z[1]/100,rt=Z[2]/100,U=rt<.5?2*Q*rt:2*Q*(1-rt);let pt=0;return U<1&&(pt=(rt-.5*U)/(1-U)),[Z[0],100*U,100*pt]},it.hsv.hcg=function(Z){const rt=Z[2]/100,U=Z[1]/100*rt;let pt=0;return U<1&&(pt=(rt-U)/(1-U)),[Z[0],100*U,100*pt]},it.hcg.rgb=function(Z){const rt=Z[1]/100,U=Z[2]/100;if(0===rt)return[255*U,255*U,255*U];const pt=[0,0,0],_t=Z[0]/360%1*6,xt=_t%1,nt=1-xt;let Mt=0;switch(Math.floor(_t)){case 0:pt[0]=1,pt[1]=xt,pt[2]=0;break;case 1:pt[0]=nt,pt[1]=1,pt[2]=0;break;case 2:pt[0]=0,pt[1]=1,pt[2]=xt;break;case 3:pt[0]=0,pt[1]=nt,pt[2]=1;break;case 4:pt[0]=xt,pt[1]=0,pt[2]=1;break;default:pt[0]=1,pt[1]=0,pt[2]=nt}return Mt=(1-rt)*U,[255*(rt*pt[0]+Mt),255*(rt*pt[1]+Mt),255*(rt*pt[2]+Mt)]},it.hcg.hsv=function(Z){const Q=Z[1]/100,rt=Q+Z[2]/100*(1-Q);let U=0;return rt>0&&(U=Q/rt),[Z[0],100*U,100*rt]},it.hcg.hsl=function(Z){const Q=Z[1]/100,rt=Z[2]/100*(1-Q)+.5*Q;let U=0;return rt>0&&rt<.5?U=Q/(2*rt):rt>=.5&&rt<1&&(U=Q/(2*(1-rt))),[Z[0],100*U,100*rt]},it.hcg.hwb=function(Z){const Q=Z[1]/100,rt=Q+Z[2]/100*(1-Q);return[Z[0],100*(rt-Q),100*(1-rt)]},it.hwb.hcg=function(Z){const rt=1-Z[2]/100,U=rt-Z[1]/100;let pt=0;return U<1&&(pt=(rt-U)/(1-U)),[Z[0],100*U,100*pt]},it.apple.rgb=function(Z){return[Z[0]/65535*255,Z[1]/65535*255,Z[2]/65535*255]},it.rgb.apple=function(Z){return[Z[0]/255*65535,Z[1]/255*65535,Z[2]/255*65535]},it.gray.rgb=function(Z){return[Z[0]/100*255,Z[0]/100*255,Z[0]/100*255]},it.gray.hsl=function(Z){return[0,0,Z[0]]},it.gray.hsv=it.gray.hsl,it.gray.hwb=function(Z){return[0,100,Z[0]]},it.gray.cmyk=function(Z){return[0,0,0,Z[0]]},it.gray.lab=function(Z){return[Z[0],0,0]},it.gray.hex=function(Z){const Q=255&Math.round(Z[0]/100*255),rt=((Q<<16)+(Q<<8)+Q).toString(16).toUpperCase();return"000000".substring(rt.length)+rt},it.rgb.gray=function(Z){return[(Z[0]+Z[1]+Z[2])/3/255*100]}},841:(et,ct,L)=>{const dt=L(4959),ot=L(9325),it={};Object.keys(dt).forEach(Z=>{it[Z]={},Object.defineProperty(it[Z],"channels",{value:dt[Z].channels}),Object.defineProperty(it[Z],"labels",{value:dt[Z].labels});const Q=ot(Z);Object.keys(Q).forEach(rt=>{const U=Q[rt];it[Z][rt]=function(pt){const _t=function(...xt){const nt=xt[0];if(null==nt)return nt;nt.length>1&&(xt=nt);const Mt=pt(xt);if("object"==typeof Mt)for(let It=Mt.length,bt=0;bt1&&(xt=nt),pt(xt))};return"conversion"in pt&&(_t.conversion=pt.conversion),_t}(U)})}),et.exports=it},9325:(et,ct,L)=>{const dt=L(4959);function it(Q,rt){return function(U){return rt(Q(U))}}function Z(Q,rt){const U=[rt[Q].parent,Q];let pt=dt[rt[Q].parent][Q],_t=rt[Q].parent;for(;rt[_t].parent;)U.unshift(rt[_t].parent),pt=it(dt[rt[_t].parent][_t],pt),_t=rt[_t].parent;return pt.conversion=U,pt}et.exports=function(Q){const rt=function ot(Q){const rt=function(){const pt={},_t=Object.keys(dt);for(let xt=_t.length,nt=0;nt{"use strict";et.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8603:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const Q=Z},3062:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const Q=Z},443:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,':root{--ck-image-processing-highlight-color:#f9fafa;--ck-image-processing-background-color:#e3e5e8}.ck.ck-editor__editable .image.image-processing{position:relative}.ck.ck-editor__editable .image.image-processing:before{animation:ck-image-processing-animation 2s linear infinite;background:linear-gradient(90deg,var(--ck-image-processing-background-color),var(--ck-image-processing-highlight-color),var(--ck-image-processing-background-color));background-size:200% 100%;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ck.ck-editor__editable .image.image-processing img{height:100%}@keyframes ck-image-processing-animation{0%{background-position:200% 0}to{background-position:-200% 0}}',"",{version:3,sources:["webpack://./../ckeditor5-ckbox/theme/ckboximageedit.css"],names:[],mappings:"AAKA,MAEC,6CAAyD,CACzD,8CACD,CAIE,gDACC,iBA2BD,CAzBC,uDAmBC,0DAA2D,CAR3D,oKAKC,CACD,yBAA0B,CAhB1B,UAAW,CAOX,WAAY,CAHZ,MAAO,CAFP,iBAAkB,CAClB,KAAM,CAKN,UAAW,CAHX,SAcD,CAEA,oDACC,WACD,CAKH,yCACC,GACC,0BACD,CACA,GACC,2BACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Based on default CKBox theme colors */\n\t--ck-image-processing-highlight-color: hsl(220, 10%, 98%);\n\t--ck-image-processing-background-color: hsl(220, 10%, 90%);\n}\n\n.ck.ck-editor__editable {\n\t& .image {\n\t\t&.image-processing {\n\t\t\tposition: relative;\n\n\t\t\t&:before {\n\t\t\t\tcontent: '';\n\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tz-index: 1;\n\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 100%;\n\n\t\t\t\tbackground: linear-gradient(\n\t\t\t\t\t90deg,\n\t\t\t\t\tvar(--ck-image-processing-background-color),\n\t\t\t\t\tvar(--ck-image-processing-highlight-color),\n\t\t\t\t\tvar(--ck-image-processing-background-color)\n\t\t\t\t);\n\t\t\t\tbackground-size: 200% 100%;\n\n\t\t\t\tanimation: ck-image-processing-animation 2s linear infinite;\n\t\t\t}\n\n\t\t\t& img {\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n\n@keyframes ck-image-processing-animation {\n\t0% {\n\t\tbackground-position: 200% 0;\n\t}\n\t100% {\n\t\tbackground-position: -200% 0;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},903:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-style: solid;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tleft: -1px;\n\n\t\t\tborder-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tright: -1px;\n\n\t\t\tborder-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3143:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4717:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},9315:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const Q=Z},8733:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3508:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%;\n\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t\t\theight: auto;\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the
in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of
.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\t\t}\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image-inline {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected inline image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\n\t\t\t/*\n\t\t\t * Make sure the native browser selection style is not displayed.\n\t\t\t * Inline image widgets have their own styles for the selected state and\n\t\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t\t */\n\t\t\t& ::selection {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t& .image-inline img {\n\t\theight: auto;\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},2640:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3535:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;padding:var(--ck-list-button-padding);width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible,.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css"],names:[],mappings:"AAMC,yDACC,YAAa,CACb,mCACD,CCFD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CAEd,qCAAsC,CADtC,UAUD,CAZA,iDAME,eAMF,CAZA,iDAUE,gBAEF,CAGC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,6FAJC,oDAOD,CAHA,iDAEC,+BACD,CAEA,+BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-url {\n\t& .ck-image-insert-url__action-row {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(2, 1fr);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-image-insert-insert-by-url-width: 250px;\n}\n\n.ck.ck-image-insert-url {\n\t--ck-input-width: 100%;\n\n\t& .ck-image-insert-url__action-row {\n\t\tgrid-column-gap: var(--ck-spacing-large);\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n\n.ck.ck-image-insert-form {\n\t& > .ck.ck-button {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\tpadding: var(--ck-list-button-padding);\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& > .ck.ck-collapsible {\n\t\t&:not(:first-child) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t&:not(:last-child) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\n\t}\n\n\t/* This is the case when there are no other integrations configured than insert by URL */\n\t& > .ck.ck-image-insert-url {\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\n\t\tpadding: var(--ck-spacing-large);\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},2873:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageplaceholder.css"],names:[],mappings:"AAMC,8CACC,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& img.image_placeholder {\n\t\tbackground-size: 100% 100%;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},6270:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\n.ck-content img.image_resized {\n\theight: auto;\n}\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `
` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `
` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `
` element uses `display:block`, so `
` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const Q=Z},5083:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4036:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},3773:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3689:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const Q=Z},1905:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},9773:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const Q=Z},2347:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},7754:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},111:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const Q=Z},5730:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const Q=Z},4564:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},6082:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},2417:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},1199:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n\t-webkit-appearance: none;\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: var(--ck-todo-list-checkmark-size);\n\theight: var(--ck-todo-list-checkmark-size);\n\tvertical-align: middle;\n\n\t/* Needed on iOS */\n\tborder: 0;\n\n\t/* LTR styles */\n\tleft: -25px;\n\tmargin-right: -15px;\n\tright: 0;\n\tmargin-left: 0;\n\n\t/* RTL styles */\n\t@nest [dir=rtl]& {\n\t\tleft: 0;\n\t\tmargin-right: 0;\n\t\tright: -25px;\n\t\tmargin-left: -15px;\n\t}\n\n\t&::before {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: border-box;\n\t\tcontent: '';\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\tborder-radius: 2px;\n\t\ttransition: 250ms ease-in-out box-shadow;\n\t}\n\n\t&::after {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: content-box;\n\t\tpointer-events: none;\n\t\tcontent: '';\n\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\tborder-style: solid;\n\t\tborder-color: transparent;\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\ttransform: rotate(45deg);\n\t}\n\n\t&[checked] {\n\t\t&::before {\n\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t}\n\t}\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tposition: relative;\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t@mixin todo-list-checkbox;\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&.todo-list__label_without-description input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n\t/*\n\t * To-do list should be interactive only during the editing\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\n\t */\n\t& > input,\n\t& > span[contenteditable=false] > input {\n\t\tcursor: pointer;\n\n\t\t&:hover::before {\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t\t}\n\t}\n\n\t/*\n\t * Document Lists - editing view has an additional span around checkbox.\n\t */\n\t& > span[contenteditable=false] > input {\n\t\t@mixin todo-list-checkbox;\n\t}\n\n\t&.todo-list__label_without-description {\n\t\t& input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4652:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const Q=Z},7442:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read\u2013only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},9292:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},7368:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4070:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},9247:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},1613:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const Q=Z},6306:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent
. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const Q=Z},2128:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},5087:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4101:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const Q=Z},3881:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},6237:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},7341:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},6945:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3210:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"],names:[],mappings:"AAKA,2BAEC,aAAc,CADd,iBAAkB,CAElB,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-aria-live-announcer {\n\tposition: absolute;\n\tleft: -10000px;\n\ttop: -10000px;\n}\n"],sourceRoot:""}]);const Q=Z},8157:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-modal)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-autocomplete {\n\tposition: relative;\n\n\t& > .ck-search__results {\n\t\tposition: absolute;\n\t\tz-index: var(--ck-z-modal);\n\n\t\t&.ck-search__results_n {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck.ck-autocomplete {\n\t& > .ck-search__results {\n\t\t@mixin ck-rounded-corners;\n\t\t@mixin ck-drop-shadow;\n\n\t\tmax-height: 200px;\n\t\toverflow-y: auto;\n\t\tbackground: var(--ck-color-base-background);\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\t\tmin-width: auto;\n\n\t\t&.ck-search__results_n {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-bottom: -1px;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-top-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-top: -1px;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},4906:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CA9BA,iDASE,oBAqBF,CA9BA,iDAaE,qBAiBF,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEzBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n@import "../../mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\n\t@mixin ck-dir ltr {\n\t\tjustify-content: left;\n\t}\n\n\t@mixin ck-dir rtl {\n\t\tjustify-content: right;\n\t}\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const Q=Z},5332:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating\u2013point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const Q=Z},8010:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-list-button-padding);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,qCAAsC,CAFtC,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-list-button-padding);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},6781:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-selector__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const Q=Z},3398:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4157:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},5485:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3949:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},7686:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},7339:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const Q=Z},9688:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},8847:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header .ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header .ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAkBD,CAbC,uCAEE,qCAMF,CARA,uCAME,oCAEF,CAEA,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t& h2.ck-form__header__label {\n\t\tflex-grow: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-medium);\n\t\t}\n\t}\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},8960:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-highlighted-text mark {\n\tbackground: var(--ck-color-highlight-background);\n\tvertical-align: initial;\n\tfont-weight: inherit;\n\tline-height: inherit;\n\tfont-size: inherit;\n}\n"],sourceRoot:""}]);const Q=Z},6574:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},4879:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},3662:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const Q=Z},2577:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0;transform:translate(calc(var(--ck-spacing-medium)*-1),-6px) scale(.75);transform-origin:100% 0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD+GD,CA1GA,2FCDE,qCD2GF,CAvGC,mEACC,UAoCD,CAlCC,gFACC,KAgCD,CAjCA,0FAIE,MAAS,CAGT,6DAA+D,CAF/D,oBA4BF,CAjCA,0FAWE,OAAU,CAEV,sEAA0E,CAD1E,uBAqBF,CAjCA,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAKvB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,4WAGE,+HAYF,CAfA,4WAOE,wIAQF,CAfA,wVAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t\ttransform-origin: 100% 0;\n\t\t\t\ttransform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},1046:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}:root{--ck-list-button-padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list__item .ck-button{text-align:left}[dir=rtl] .ck.ck-list__item .ck-button{text-align:right}.ck.ck-list__item .ck-button{padding:var(--ck-list-button-padding)}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,MACC,oJAGD,CAEA,YCLC,eDUD,CALA,+DCDE,qCDMF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cAgED,CA9DC,6BAGC,eAAgB,CAFhB,gBAAiB,CACjB,UA6CD,CA/CA,uCAME,eAyCF,CA/CA,uCAUE,gBAqCF,CA/CA,6BAgBC,qCA+BD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,mCACC,cAAe,CACf,eAAiB,CACjB,oFACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-list-button-padding:\n\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n}\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\tborder-radius: 0;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding: var(--ck-list-button-padding);\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-list .ck-list__group {\n\tpadding-top: var(--ck-spacing-medium);\n\n\t/* The group should have a border when it\'s not the first item. */\n\t*:not(.ck-hidden) ~ & {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& > .ck-label {\n\t\tfont-size: 11px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium);\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},8793:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},4650:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},7676:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},5868:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},6764:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},6770:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-search__reset {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\t& > .ck-search__info {\n\t\t\t& > span:first-child {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t/* Hide the filtered view when nothing was found */\n\t\t\t&:not(.ck-hidden) ~ * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&.ck-search__query_with-icon {\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\t\topacity: .5;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-search__query_with-reset {\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t&.ck-labeled-field-view_empty {\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& .ck-search__reset {\n\t\t\t\tmin-width: auto;\n\t\t\t\tmin-height: auto;\n\n\t\t\t\tbackground: none;\n\t\t\t\topacity: .5;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t&:hover {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tmin-width: 100%;\n\n\t\t& > .ck-search__info {\n\t\t\twidth: 100%;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& * {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\n\t\t\t& > span:first-child {\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\n\t\t\t& > span:last-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const Q=Z},498:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\tdisplay: block;\n\tposition: relative;\n}\n\n.ck.ck-spinner {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 auto;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tanimation: 1.5s infinite rotate linear;\n}\n\n.ck.ck-spinner {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-color-text);\n\tborder-top-color: transparent;\n}\n\n@keyframes rotate {\n\tto {\n\t\ttransform: rotate(360deg)\n\t}\n}\n\n"],sourceRoot:""}]);const Q=Z},8182:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\n * This bug is especially visible when rows=1.\n */\n.ck-textarea {\n\toverflow-x: hidden\n}\n"],sourceRoot:""}]);const Q=Z},9695:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const Q=Z},5542:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3332:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,qCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-tooltip-text-padding: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\n\t\twhite-space: break-spaces;\n\t\tdisplay: inline-block;\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},4793:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-color-light-red:#fcc;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAyD,CAIzD,yBAAgD,CC3GhD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJ2GD,CIrGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-modal) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------- */\n\n\t--ck-color-light-red:\t\t\t\t\t\t\t\t\t\thsl(0, 100%, 90%);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const Q=Z},3488:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},8506:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4921:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},2609:et=>{"use strict";et.exports=function(ct){var L=[];return L.toString=function(){return this.map(function(dt){var ot=ct(dt);return dt[2]?"@media ".concat(dt[2]," {").concat(ot,"}"):ot}).join("")},L.i=function(dt,ot,it){"string"==typeof dt&&(dt=[[null,dt,""]]);var Z={};if(it)for(var Q=0;Q{"use strict";function L(dt,ot){(null==ot||ot>dt.length)&&(ot=dt.length);for(var it=0,Z=new Array(ot);it{"use strict";var dt,St,it=(St={},function(W){if(void 0===St[W]){var kt=document.querySelector(W);if(window.HTMLIFrameElement&&kt instanceof window.HTMLIFrameElement)try{kt=kt.contentDocument.head}catch{kt=null}St[W]=kt}return St[W]}),Z=[];function Q(St){for(var W=-1,kt=0;kt{var ct=et&&et.__esModule?()=>et.default:()=>et;return lt.d(ct,{a:ct}),ct},lt.d=(et,ct)=>{for(var L in ct)lt.o(ct,L)&&!lt.o(et,L)&&Object.defineProperty(et,L,{enumerable:!0,get:ct[L]})},lt.o=(et,ct)=>Object.prototype.hasOwnProperty.call(et,ct),lt.nc=void 0;var i={};return(()=>{"use strict";function et({emitter:r,activator:t,callback:e,contextElements:n}){r.listenTo(document,"mousedown",(s,l)=>{if(!t())return;const h="function"==typeof l.composedPath?l.composedPath():[],p="function"==typeof n?n():n;for(const b of p)if(b.contains(l.target)||h.includes(b))return;e()})}function ct(r){return class extends r{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...t){super(...t),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function L({view:r}){r.listenTo(r.element,"submit",(t,e)=>{e.preventDefault(),r.fire("submit")},{useCapture:!0})}lt.d(i,{default:()=>Mp});const dt=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}();var ot;const it={isMac:Z(dt),isWindows:(ot=dt,ot.indexOf("windows")>-1),isGecko:(r=dt,!!r.match(/gecko\/\d+/)),isSafari:function(r){return r.indexOf(" applewebkit/")>-1&&-1===r.indexOf("chrome")}(dt),isiOS:function(r){return!!r.match(/iphone|ipad/i)||Z(r)&&navigator.maxTouchPoints>0}(dt),isAndroid:function(r){return r.indexOf("android")>-1}(dt),isBlink:function(r){return r.indexOf("chrome/")>-1&&r.indexOf("edge/")<0}(dt),features:{isRegExpUnicodePropertySupported:function(){let r=!1;try{r=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}return r}()}};var r;function Z(r){return r.indexOf("macintosh")>-1}function Q(r,t,e,n){e=e||function(b,A){return b===A};const s=Array.isArray(r)?r:Array.prototype.slice.call(r),l=Array.isArray(t)?t:Array.prototype.slice.call(t),h=function(b,A,C){const E=rt(b,A,C);if(-1===E)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const j=rt(U(b,E),U(A,E),C);return{firstIndex:E,lastIndexOld:b.length-j,lastIndexNew:A.length-j}}(s,l,e);return n?function(b,A){const{firstIndex:C,lastIndexOld:E,lastIndexNew:P}=b;if(-1===C)return Array(A).fill("equal");let F=[];return C>0&&(F=F.concat(Array(C).fill("equal"))),P-C>0&&(F=F.concat(Array(P-C).fill("insert"))),E-C>0&&(F=F.concat(Array(E-C).fill("delete"))),P0&&C.push({index:E,type:"insert",values:b.slice(E,F)}),P-E>0&&C.push({index:E+(F-E),type:"delete",howMany:P-E}),C}(l,h)}function rt(r,t,e){for(let n=0;n200||s>200||n+s>300)return pt.fastDiff(r,t,e,!0);let l,h;if(sst?-1:1;C[Y+ft]&&(C[Y]=C[Y+ft].slice(0)),C[Y]||(C[Y]=[]),C[Y].push($>st?l:h);let At=Math.max($,st),Ft=At-Y;for(;FtA;F--)E[F]=P(F);E[A]=P(A),j++}while(E[A]!==b);return C[A].slice(1)}pt.fastDiff=Q;class xt{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=function r(){r.called=!0},this.off=function r(){r.called=!0}}}const nt=new Array(256).fill("").map((r,t)=>("0"+t.toString(16)).slice(-2));function Mt(){const r=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0;return"e"+nt[r>>0&255]+nt[r>>8&255]+nt[r>>16&255]+nt[r>>24&255]+nt[t>>0&255]+nt[t>>8&255]+nt[t>>16&255]+nt[t>>24&255]+nt[e>>0&255]+nt[e>>8&255]+nt[e>>16&255]+nt[e>>24&255]+nt[n>>0&255]+nt[n>>8&255]+nt[n>>16&255]+nt[n>>24&255]}const It={get(r="normal"){return"number"!=typeof r?this[r]||this.normal:r},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function bt(r,t){const e=It.get(t.priority);for(let n=0;n{if("object"==typeof E&&null!==E){if(h.has(E))return`[object ${E.constructor.name}]`;h.add(E)}return E})}`:"")+Nt(s)}(t,n)),this.name="CKEditorError",this.context=e,this.data=n}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const n=new W(t.message,e);throw n.stack=t.stack,n}}function kt(r,t){console.warn(...Vt(r,t))}function Pt(r,t){console.error(...Vt(r,t))}function Nt(r){return`\nRead more: ${St}#error-${r}`}function Vt(r,t){const e=Nt(r);return t?[r,t,e]:[r,e]}const $e=new Date(2023,11,12);if(globalThis.CKEDITOR_VERSION)throw new W("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="40.2.0";const Xt=Symbol("listeningTo"),ai=Symbol("emitterId"),Ne=Symbol("delegations"),oe=ie(Object);function ie(r){return r?class extends r{on(t,e,n){this.listenTo(this,t,e,n)}once(t,e,n){let s=!1;this.listenTo(this,t,(l,...h)=>{s||(s=!0,l.off(),e.call(this,l,...h))},n)}off(t,e){this.stopListening(this,t,e)}listenTo(t,e,n,s={}){let l,h;this[Xt]||(this[Xt]={});const p=this[Xt];kn(t)||an(t);const b=kn(t);var C,E,P,F;(l=p[b])||(l=p[b]={emitter:t,callbacks:{}}),(h=l.callbacks[e])||(h=l.callbacks[e]=[]),h.push(n),E=e,P=n,F=s,(C=t)._addEventListener?C._addEventListener(E,P,F):this._addEventListener.call(C,E,P,F)}stopListening(t,e,n){const s=this[Xt];let l=t&&kn(t);const h=s&&l?s[l]:void 0,p=h&&e?h.callbacks[e]:void 0;if(!(!s||t&&!h||e&&!p))if(n)Bi(this,t,e,n),-1!==p.indexOf(n)&&(1===p.length?delete h.callbacks[e]:Bi(this,t,e,n));else if(p){for(;n=p.pop();)Bi(this,t,e,n);delete h.callbacks[e]}else if(h){for(e in h.callbacks)this.stopListening(t,e);delete s[l]}else{for(l in s)this.stopListening(s[l].emitter);delete this[Xt]}}fire(t,...e){try{const n=t instanceof xt?t:new xt(this,t),s=n.name;let l=_n(this,s);if(n.path.push(this),l){const p=[n,...e];l=Array.from(l);for(let b=0;b{this[Ne]||(this[Ne]=new Map),t.forEach(s=>{const l=this[Ne].get(s);l?l.set(e,n):this[Ne].set(s,new Map([[e,n]]))})}}}stopDelegating(t,e){if(this[Ne])if(t)if(e){const n=this[Ne].get(t);n&&n.delete(e)}else this[Ne].delete(t);else this[Ne].clear()}_addEventListener(t,e,n){!function(h,p){const b=nr(h);if(b[p])return;let A=p,C=null;const E=[];for(;""!==A&&!b[A];)b[A]={callbacks:[],childEvents:[]},E.push(b[A]),C&&b[A].childEvents.push(C),C=A,A=A.substr(0,A.lastIndexOf(":"));if(""!==A){for(const P of E)P.callbacks=b[A].callbacks.slice();b[A].childEvents.push(C)}}(this,t);const s=Ge(this,t),l={callback:e,priority:It.get(n.priority)};for(const h of s)bt(h,l)}_removeEventListener(t,e){const n=Ge(this,t);for(const s of n)for(let l=0;l-1?_n(r,t.substr(0,t.lastIndexOf(":"))):null}function xo(r,t,e){for(let[n,s]of r){s?"function"==typeof s&&(s=s(t.name)):s=t.name;const l=new xt(t.source,s);l.path=[...t.path],n.fire(l,...e)}}function Bi(r,t,e,n){t._removeEventListener?t._removeEventListener(e,n):r._removeEventListener.call(t,e,n)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(r=>{ie[r]=oe.prototype[r]});const te=function(r){var t=typeof r;return null!=r&&("object"==t||"function"==t)},wn=Symbol("observableProperties"),pi=Symbol("boundObservables"),Wi=Symbol("boundProperties"),oi=Symbol("decoratedMethods"),Co=Symbol("decoratedOriginal"),Qi=ne(ie());function ne(r){return r?class extends r{set(t,e){if(te(t))return void Object.keys(t).forEach(s=>{this.set(s,t[s])},this);An(this);const n=this[wn];if(t in this&&!n.has(t))throw new W("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(s){const l=n.get(t);let h=this.fire(`set:${t}`,t,s,l);void 0===h&&(h=s),l===h&&n.has(t)||(n.set(t,h),this.fire(`change:${t}`,t,h,l))}}),this[t]=e}bind(...t){if(!t.length||!or(t))throw new W("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new W("observable-bind-duplicate-properties",this);An(this);const e=this[Wi];t.forEach(s=>{if(e.has(s))throw new W("observable-bind-rebind",this)});const n=new Map;return t.forEach(s=>{const l={property:s,to:[]};e.set(s,l),n.set(s,l)}),{to:ns,toMany:os,_observable:this,_bindProperties:t,_to:[],_bindings:n}}unbind(...t){if(!this[wn])return;const e=this[Wi],n=this[pi];if(t.length){if(!or(t))throw new W("observable-unbind-wrong-properties",this);t.forEach(s=>{const l=e.get(s);l&&(l.to.forEach(([h,p])=>{const b=n.get(h),A=b[p];A.delete(l),A.size||delete b[p],Object.keys(b).length||(n.delete(h),this.stopListening(h,"change"))}),e.delete(s))})}else n.forEach((s,l)=>{this.stopListening(l,"change")}),n.clear(),e.clear()}decorate(t){An(this);const e=this[t];if(!e)throw new W("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,(n,s)=>{n.return=e.apply(this,s)}),this[t]=function(...n){return this.fire(t,n)},this[t][Co]=e,this[oi]||(this[oi]=[]),this[oi].push(t)}stopListening(t,e,n){if(!t&&this[oi]){for(const s of this[oi])this[s]=this[s][Co];delete this[oi]}super.stopListening(t,e,n)}}:Qi}function An(r){r[wn]||(Object.defineProperty(r,wn,{value:new Map}),Object.defineProperty(r,pi,{value:new Map}),Object.defineProperty(r,Wi,{value:new Map}))}function ns(...r){const t=function(...l){if(!l.length)throw new W("observable-bind-to-parse-error",null);const h={to:[]};let p;return"function"==typeof l[l.length-1]&&(h.callback=l.pop()),l.forEach(b=>{if("string"==typeof b)p.properties.push(b);else{if("object"!=typeof b)throw new W("observable-bind-to-parse-error",null);p={observable:b,properties:[]},h.to.push(p)}}),h}(...r),e=Array.from(this._bindings.keys()),n=e.length;if(!t.callback&&t.to.length>1)throw new W("observable-bind-to-no-callback",this);if(n>1&&t.callback)throw new W("observable-bind-to-extra-callback",this);var s;t.to.forEach(l=>{if(l.properties.length&&l.properties.length!==n)throw new W("observable-bind-to-properties-length",this);l.properties.length||(l.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(e[0]).callback=t.callback),s=this._observable,this._to.forEach(l=>{const h=s[pi];let p;h.get(l.observable)||s.listenTo(l.observable,"change",(b,A)=>{p=h.get(l.observable)[A],p&&p.forEach(C=>{Hn(s,C.property)})})}),function(l){let h;l._bindings.forEach((p,b)=>{l._to.forEach(A=>{h=A.properties[p.callback?0:l._bindProperties.indexOf(b)],p.to.push([A.observable,h]),function(C,E,P,F){const j=C[pi],Y=j.get(P),$=Y||{};$[F]||($[F]=new Set),$[F].add(E),Y||j.set(P,$)}(l._observable,p,A.observable,h)})})}(this),this._bindProperties.forEach(l=>{Hn(this._observable,l)})}function os(r,t,e){if(this._bindings.size>1)throw new W("observable-bind-to-many-not-one-binding",this);this.to(...function(n,s){const l=n.map(h=>[h,s]);return Array.prototype.concat.apply([],l)}(r,t),e)}function or(r){return r.every(t=>"string"==typeof t)}function Hn(r,t){const e=r[Wi].get(t);let n;e.callback?n=e.callback.apply(r,e.to.map(s=>s[0][s[1]])):(n=e.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(r,t)?r[t]=n:r.set(t,n)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(r=>{ne[r]=Qi.prototype[r]});class rs{constructor(){this._replacedElements=[]}replace(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}restore(){this._replacedElements.forEach(({element:t,newElement:e})=>{t.style.display="",e&&e.remove()}),this._replacedElements=[]}}function yo(r){let t=0;for(const e of r)t++;return t}function qe(r,t){const e=Math.min(r.length,t.length);for(let n=0;n-1},Fi.prototype.set=function(r,t){var e=this.__data__,n=$n(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this};const Ki=Fi,Ji=function(r){if(!te(r))return!1;var t=Me(r);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},to=li["__core-js_shared__"];var Lo=function(){var r=/[^.]+$/.exec(to&&to.keys&&to.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ds=Function.prototype.toString;const q=function(r){if(null!=r){try{return ds.call(r)}catch{}try{return r+""}catch{}}return""};var o=/^\[object .+?Constructor\]$/,m=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const y=function(r,t){var e=function(r,t){return r?.[t]}(r,t);return function(r){return!(!te(r)||function(r){return!!Lo&&Lo in r}(r))&&(Ji(r)?m:o).test(q(r))}(e)?e:void 0},T=y(li,"Map"),S=y(Object,"create");var O=Object.prototype.hasOwnProperty,V=Object.prototype.hasOwnProperty;function x(r){var t=-1,e=null==r?0:r.length;for(this.clear();++t-1&&r%1==0&&r-1&&r%1==0&&r<=9007199254740991};var re={};re["[object Float32Array]"]=re["[object Float64Array]"]=re["[object Int8Array]"]=re["[object Int16Array]"]=re["[object Int32Array]"]=re["[object Uint8Array]"]=re["[object Uint8ClampedArray]"]=re["[object Uint16Array]"]=re["[object Uint32Array]"]=!0,re["[object Arguments]"]=re["[object Array]"]=re["[object ArrayBuffer]"]=re["[object Boolean]"]=re["[object DataView]"]=re["[object Date]"]=re["[object Error]"]=re["[object Function]"]=re["[object Map]"]=re["[object Number]"]=re["[object Object]"]=re["[object RegExp]"]=re["[object Set]"]=re["[object String]"]=re["[object WeakMap]"]=!1;const hs=function(r){return function(t){return r(t)}};var Ma=$t&&!$t.nodeType&&$t,Oo=Ma&&we&&!we.nodeType&&we,us=Oo&&Oo.exports===Ma&&rr.process;const no=function(){try{return Oo&&Oo.require&&Oo.require("util").types||us&&us.binding&&us.binding("util")}catch{}}();var La=no&&no.isTypedArray;const ps=La?hs(La):function(r){return We(r)&&zi(r.length)&&!!re[Me(r)]};var rd=Object.prototype.hasOwnProperty;const Pa=function(r,t){var e=Ut(r),n=!e&&io(r),s=!e&&!n&&ci(r),l=!e&&!n&&!s&&ps(r),h=e||n||s||l,p=h?function(r,t){for(var e=-1,n=Array(r);++e{this._setToTarget(t,s,e[s],n)})}}function tl(r){return Ss(r,Md)}function Md(r){return Sn(r)||"function"==typeof r?r:void 0}function cn(r){if(r){if(r.defaultView)return r instanceof r.defaultView.Document;if(r.ownerDocument&&r.ownerDocument.defaultView)return r instanceof r.ownerDocument.defaultView.Node}return!1}function vr(r){const t=Object.prototype.toString.apply(r);return"[object Window]"==t||"[object global]"==t}const el=bi(ie());function bi(r){return r?class extends r{listenTo(t,e,n,s={}){if(cn(t)||vr(t)){const l={capture:!!s.useCapture,passive:!!s.usePassive},h=this._getProxyEmitter(t,l)||new Ld(t,l);this.listenTo(h,e,n,s)}else super.listenTo(t,e,n,s)}stopListening(t,e,n){if(cn(t)||vr(t)){const s=this._getAllProxyEmitters(t);for(const l of s)this.stopListening(l,e,n)}else super.stopListening(t,e,n)}_getProxyEmitter(t,e){return function(n,s){const l=n[Xt];return l&&l[s]?l[s].emitter:null}(this,il(t,e))}_getAllProxyEmitters(t){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(e=>this._getProxyEmitter(t,e)).filter(e=>!!e)}}:el}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(r=>{bi[r]=el.prototype[r]});class Ld extends(ie()){constructor(t,e){super(),an(this,il(t,e)),this._domNode=t,this._options=e}attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}_addEventListener(t,e,n){this.attach(t),ie().prototype._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){ie().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=n=>{this.fire(t,n)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function il(r,t){let e=(n=r)["data-ck-expando"]||(n["data-ck-expando"]=Mt());var n;for(const n of Object.keys(t).sort())t[n]&&(e+="-"+n);return e}let Is;try{Is={window,document}}catch{Is={window:{},document:{}}}const Yt=Is;function Le(r){return"[object Text]"==Object.prototype.toString.call(r)}function dn(r){return"[object Range]"==Object.prototype.toString.apply(r)}function Ds(r){const t=r.ownerDocument.defaultView.getComputedStyle(r);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function nl(r){return r&&r.parentNode?r.offsetParent===Yt.document.body?null:r.offsetParent:null}const ol=["top","right","bottom","left","width","height"];class le{constructor(t){const e=dn(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Ms(t)||e)if(e){const n=le.getDomRangeRects(t);kr(this,le.getBoundingRect(n))}else kr(this,t.getBoundingClientRect());else if(vr(t)){const{innerWidth:n,innerHeight:s}=t;kr(this,{top:0,right:n,bottom:s,left:0,width:n,height:s})}else kr(this,t)}clone(){return new le(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const n=new le(e);return n._source=this._source,n}}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(rl(t))return e;let n,s=t,l=t.parentNode||t.commonAncestorContainer;for(;l&&!rl(l);){const p="visible"===((h=l)instanceof HTMLElement?h.ownerDocument.defaultView.getComputedStyle(h).overflow:"visible");s instanceof HTMLElement&&"absolute"===sl(s)&&(n=s);const b=sl(l);if(p||n&&("relative"===b&&p||"relative"!==b)){s=l,l=l.parentNode;continue}const A=new le(l),C=e.getIntersection(A);if(!C)return null;C.getArea(){for(const t of r){const e=Pe._getElementCallbacks(t.target);if(e)for(const n of e)n(t)}})}};let Ro=Pe;function al(r,t){r instanceof HTMLTextAreaElement&&(r.value=t),r.innerHTML=t}function hn(r){return t=>t+r}function _r(r){let t=0;for(;r.previousSibling;)r=r.previousSibling,t++;return t}function ll(r,t,e){r.insertBefore(e,r.childNodes[t]||null)}function Zo(r){return r&&r.nodeType===Node.COMMENT_NODE}function In(r){return!!(r&&r.getClientRects&&r.getClientRects().length)}Ro._observerInstance=null,Ro._elementCallbacks=null;var cl=Math.pow;function Ls({element:r,target:t,positions:e,limiter:n,fitInViewport:s,viewportOffsetConfig:l}){Ji(t)&&(t=t()),Ji(n)&&(n=n());const h=nl(r),p=function(P){P=Object.assign({top:0,bottom:0,left:0,right:0},P);const F=new le(Yt.window);return F.top+=P.top,F.height-=P.top,F.bottom-=P.bottom,F.height-=P.bottom,F}(l),b=new le(r),A=dl(t,p);let C;if(!A||!p.getIntersection(A))return null;const E={targetRect:A,elementRect:b,positionedElementAncestor:h,viewportRect:p};if(n||s){if(n){const P=dl(n,p);P&&(E.limiterRect=P)}C=function(P,F){const{elementRect:j}=F,Y=j.getArea(),$=P.map(At=>new hl(At,F)).filter(At=>!!At.name);let st=0,ft=null;for(const At of $){const{limiterIntersectionArea:Ft,viewportIntersectionArea:jt}=At;if(Ft===Y)return At;const ae=cl(jt,2)+cl(Ft,2);ae>st&&(st=ae,ft=At)}return ft}(e,E)}else C=new hl(e[0],E);return C}function dl(r,t){const e=new le(r).getVisible();return e?e.getIntersection(t):null}class hl{constructor(t,e){const n=t(e.targetRect,e.elementRect,e.viewportRect,e.limiterRect);if(!n)return;const{left:s,top:l,name:h,config:p}=n;this.name=h,this.config=p,this._positioningFunctionCoordinates={left:s,top:l},this._options=e}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;return t?t.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function Ps(r){const t=r.parentNode;t&&t.removeChild(r)}function ul({window:r,rect:t,alignToTop:e,forceScroll:n,viewportOffset:s}){const l=t.clone().moveBy(0,s.bottom),h=t.clone().moveBy(0,-s.top),p=new le(r).excludeScrollbarsAndBorders(),b=e&&n,A=[h,l].every(j=>p.contains(j));let{scrollX:C,scrollY:E}=r;const P=C,F=E;b?E-=p.top-t.top+s.top:A||(gl(h,p)?E-=p.top-t.top+s.top:pl(l,p)&&(E+=e?t.top-p.top-s.top:t.bottom-p.bottom+s.bottom)),A||(ye(t,p)?C-=p.left-t.left+s.left:Uo(t,p)&&(C+=t.right-p.right+s.right)),C==P&&E===F||r.scrollTo(C,E)}function Pd({parent:r,getRect:t,alignToTop:e,forceScroll:n,ancestorOffset:s=0,limiterElement:l}){const h=jo(r),p=e&&n;let b,A,C;const E=l||h.document.body;for(;r!=E;)A=t(),b=new le(r).excludeScrollbarsAndBorders(),C=b.contains(A),p?r.scrollTop-=b.top-A.top+s:C||(gl(A,b)?r.scrollTop-=b.top-A.top+s:pl(A,b)&&(r.scrollTop+=e?A.top-b.top-s:A.bottom-b.bottom+s)),C||(ye(A,b)?r.scrollLeft-=b.left-A.left+s:Uo(A,b)&&(r.scrollLeft+=A.right-b.right+s)),r=r.parentNode}function pl(r,t){return r.bottom>t.bottom}function gl(r,t){return r.topt.right}function jo(r){return dn(r)?r.startContainer.ownerDocument.defaultView:r.ownerDocument.defaultView}function Nd(r){if(dn(r)){let t=r.commonAncestorContainer;return Le(t)&&(t=t.parentNode),t}return r.parentNode}function wr(r,t){const e=jo(r),n=new le(r);if(e===t)return n;{let s=e;for(;s!=t;){const h=new le(s.frameElement).excludeScrollbarsAndBorders();n.moveBy(h.left,h.top),s=s.parent}}return n}const Od={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},Bd={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},se=function(){const r={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++)r[String.fromCharCode(t).toLowerCase()]=t;for(let t=48;t<=57;t++)r[t-48]=t;for(let t=112;t<=123;t++)r["f"+(t-111)]=t;for(const t of"`-=[];',./\\")r[t]=t.charCodeAt(0);return r}(),Fd=Object.fromEntries(Object.entries(se).map(([r,t])=>[t,r.charAt(0).toUpperCase()+r.slice(1)]));function so(r){let t;if("string"==typeof r){if(t=se[r.toLowerCase()],!t)throw new W("keyboard-unknown-key",null,{key:r})}else t=r.keyCode+(r.altKey?se.alt:0)+(r.ctrlKey?se.ctrl:0)+(r.shiftKey?se.shift:0)+(r.metaKey?se.cmd:0);return t}function Vo(r){return"string"==typeof r&&(r=r.split("+").map(e=>e.trim())),r.map(t=>"string"==typeof t?function(e){if(e.endsWith("!"))return so(e.slice(0,-1));const n=so(e);return(it.isMac||it.isiOS)&&n==se.ctrl?se.cmd:n}(t):t).reduce((t,e)=>e+t,0)}function ml(r){let t=Vo(r);return Object.entries(it.isMac||it.isiOS?Od:Bd).reduce((e,[n,s])=>(t&se[n]&&(t&=~se[n],e+=s),e),"")+(t?Fd[t]:"")}function Ns(r,t){const e="ltr"===t;switch(r){case se.arrowleft:return e?"left":"right";case se.arrowright:return e?"right":"left";case se.arrowup:return"up";case se.arrowdown:return"down"}}function Ze(r){return Array.isArray(r)?r:[r]}Yt.window.CKEDITOR_TRANSLATIONS||(Yt.window.CKEDITOR_TRANSLATIONS={});const Rd=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function fl(r){return Rd.includes(r)?"rtl":"ltr"}class Os{constructor({uiLanguage:t="en",contentLanguage:e}={}){this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=fl(this.uiLanguage),this.contentLanguageDirection=fl(this.contentLanguage),this.t=(n,s)=>this._t(n,s)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,e=[]){return e=Ze(e),"string"==typeof t&&(t={string:t}),s=function zd(r,t,e=1){if("number"!=typeof e)throw new W("translation-service-quantity-not-a-number",null,{quantity:e});const n=Object.keys(Yt.window.CKEDITOR_TRANSLATIONS).length;1===n&&(r=Object.keys(Yt.window.CKEDITOR_TRANSLATIONS)[0]);const s=t.id||t.string;if(0===n||!Yt.window.CKEDITOR_TRANSLATIONS[b=r]||!Yt.window.CKEDITOR_TRANSLATIONS[b].dictionary[s])return 1!==e?t.plural:t.string;var b;const h=Yt.window.CKEDITOR_TRANSLATIONS[r].getPluralForm||(b=>1===b?0:1),p=Yt.window.CKEDITOR_TRANSLATIONS[r].dictionary[s];return"string"==typeof p?p:p[Number(h(e))]}(this.uiLanguage,t,t.plural?e[0]:1),l=e,s.replace(/%(\d+)/g,(h,p)=>pthis._items.length||e<0)throw new W("collection-add-item-invalid-index",this);let n=0;for(const s of t){const l=this._getItemIdBeforeAdding(s),h=e+n;this._items.splice(h,0,s),this._itemMap.set(l,s),this.fire("add",s,h),n++}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new W("collection-get-invalid-arg",this);e=this._items[t]}return e||null}has(t){if("string"==typeof t)return this._itemMap.has(t);{const e=t[this._idProperty];return e&&this._itemMap.has(e)}}getIndex(t){let e;return e="string"==typeof t?this._itemMap.get(t):t,e?this._items.indexOf(e):-1}remove(t){const[e,n]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:n}),e}map(t,e){return this._items.map(t,e)}forEach(t,e){this._items.forEach(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new W("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:e=>{this._setUpBindToBinding(n=>new e(n))},using:e=>{this._setUpBindToBinding("function"==typeof e?e:n=>n[e])}}}_setUpBindToBinding(t){const e=this._bindToCollection,n=(s,l,h)=>{const p=e._bindToCollection==this,b=e._bindToInternalToExternalMap.get(l);if(p&&b)this._bindToExternalToInternalMap.set(l,b),this._bindToInternalToExternalMap.set(b,l);else{const A=t(l);if(!A)return void this._skippedIndexesFromExternal.push(h);let C=h;for(const E of this._skippedIndexesFromExternal)h>E&&C--;for(const E of e._skippedIndexesFromExternal)C>=E&&C++;this._bindToExternalToInternalMap.set(l,A),this._bindToInternalToExternalMap.set(A,l),this.add(A,C);for(let E=0;E{const p=this._bindToExternalToInternalMap.get(l);p&&this.remove(p),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((b,A)=>(hA&&b.push(A),b),[])})}_getItemIdBeforeAdding(t){const e=this._idProperty;let n;if(e in t){if(n=t[e],"string"!=typeof n)throw new W("collection-add-invalid-id",this);if(this.get(n))throw new W("collection-add-item-already-exists",this)}else t[e]=n=Mt();return n}_remove(t){let e,n,s,l=!1;const h=this._idProperty;if("string"==typeof t?(n=t,s=this._itemMap.get(n),l=!s,s&&(e=this._items.indexOf(s))):"number"==typeof t?(e=t,s=this._items[e],l=!s,s&&(n=s[h])):(s=t,n=s[h],e=this._items.indexOf(s),l=-1==e||!this._itemMap.get(n)),l)throw new W("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const p=this._bindToInternalToExternalMap.get(s);return this._bindToInternalToExternalMap.delete(s),this._bindToExternalToInternalMap.delete(p),this.fire("remove",s,e),[s,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function Oe(r){const t=r.next();return t.done?null:t.value}class Ye extends(bi(ne())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(t){if(this._elements.has(t))throw new W("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",()=>this._focus(t),{useCapture:!0}),this.listenTo(t,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class vi{constructor(){this._listener=new(bi())}listenTo(t){this._listener.listenTo(t,"keydown",(e,n)=>{this._listener.fire("_keydown:"+so(n),n)})}set(t,e,n={}){const s=Vo(t);this._listener.listenTo(this._listener,"_keydown:"+s,(h,p)=>{e(p,()=>{p.preventDefault(),p.stopPropagation(),h.stop()}),h.return=!0},{priority:n.priority})}press(t){return!!this._listener.fire("_keydown:"+so(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function ri(r){return ti(r)?new Map(r):function(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}(r)}function Bs(r,t){let e;function n(...s){n.cancel(),e=setTimeout(()=>r(...s),t)}return n.cancel=()=>{clearTimeout(e)},n}function Fs(r,t){return!!(e=r.charAt(t-1))&&1==e.length&&/[\ud800-\udbff]/.test(e)&&!!(n=r.charAt(t))&&1==n.length&&/[\udc00-\udfff]/.test(n);var n,e}function zs(r,t){return!!(e=r.charAt(t))&&1==e.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e);var e}const Zd=function(){const r=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],t=new RegExp("\\p{Regional_Indicator}{2}","u").source,e="(?:"+r.map(n=>n.source).join("|")+")";return new RegExp(`${t}|${e}(?:\u200d${e})*`,"ug")}();function bl(r,t){const e=String(r).matchAll(Zd);return Array.from(e).some(n=>n.index{this._renderViewIntoCollectionParent(n,s)}),this.on("remove",(e,n)=>{n.element&&this._parentElement&&n.element.remove()}),this._parentElement=null}destroy(){this.map(t=>t.destroy())}setParent(t){this._parentElement=t;for(const e of this)this._renderViewIntoCollectionParent(e)}delegate(...t){if(!t.length||!t.every(e=>"string"==typeof e))throw new W("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const s of t)n.delegate(s).to(e);this.on("add",(n,s)=>{for(const l of t)s.delegate(l).to(e)}),this.on("remove",(n,s)=>{for(const l of t)s.stopDelegating(l,e)})}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}remove(t){return super.remove(t)}}var Ud=lt(6062),Rt=lt.n(Ud),vl=lt(4793);Rt()(vl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Wt extends(bi(ne())){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new di,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(e,n)=>{n.locale=t,n.t=t&&t.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Ei.bind(this,this)}createCollection(t){const e=new Ri(t);return this._viewCollections.add(e),e}registerChild(t){ti(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){ti(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new Ei(t)}extendTemplate(t){Ei.extend(this.template,t)}render(){if(this.isRendered)throw new W("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(t=>t.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}class Ei extends(ie()){constructor(t){super(),Object.assign(this,Al(wl(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new W("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const n of e.children)lo(n)?yield n:co(n)&&(yield*t(n))}(this)}static bind(t,e){return{to:(n,s)=>new Vd({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:s}),if:(n,s,l)=>new kl({observable:t,emitter:e,attribute:n,valueIfTrue:s,callback:l})}}static extend(t,e){if(t._isRendered)throw new W("template-extend-render",[this,t]);Zs(t,Al(wl(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new W("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),Ar(this.text)?this._bindToObservable({schema:this.text,updater:qd(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,n=t.revertData;for(const s in this.attributes){const l=e.getAttribute(s),h=this.attributes[s];n&&(n.attributes[s]=l);const p=Cl(h)?h[0].ns:null;if(Ar(h)){const b=Cl(h)?h[0].value:h;n&&yl(s)&&b.unshift(l),this._bindToObservable({schema:b,updater:Yd(e,s,p),data:t})}else if("style"==s&&"string"!=typeof h[0])this._renderStyleAttribute(h[0],t);else{n&&l&&yl(s)&&h.unshift(l);const b=h.map(A=>A&&A.value||A).reduce((A,C)=>A.concat(C),[]).reduce(Rs,"");ao(b)||e.setAttributeNS(p,s,b)}}}_renderStyleAttribute(t,e){const n=e.node;for(const s in t){const l=t[s];Ar(l)?this._bindToObservable({schema:[l],updater:Hd(n,s),data:e}):n.style[s]=l}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,s=t.isApplying;let l=0;for(const h of this.children)if(Us(h)){if(!s){h.setParent(e);for(const p of h)n.appendChild(p.element)}}else if(lo(h))s||(h.isRendered||h.render(),n.appendChild(h.element));else if(cn(h))n.appendChild(h);else if(s){const p={children:[],bindings:[],attributes:{}};t.revertData.children.push(p),h._renderNode({intoFragment:!1,node:n.childNodes[l++],isApplying:!0,revertData:p})}else n.appendChild(h.render());t.intoFragment&&e.appendChild(n)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const n=this.eventListeners[e].map(s=>{const[l,h]=e.split("@");return s.activateDomEventListener(l,h,t)});t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const s=n.revertData;_l(t,e,n);const l=t.filter(h=>!ao(h)).filter(h=>h.observable).map(h=>h.activateAttributeListener(t,e,n));s&&s.bindings.push(l)}_revertTemplateFromNode(t,e){for(const s of e.bindings)for(const l of s)l();if(e.text)return void(t.textContent=e.text);const n=t;for(const s in e.attributes){const l=e.attributes[s];null===l?n.removeAttribute(s):n.setAttribute(s,l)}for(let s=0;s_l(t,e,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,s),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,s)}}}class Vd extends qo{constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,n){const s=(l,h)=>{e&&!h.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(h):this.observable.fire(this.eventNameOrFunction,h))};return this.emitter.listenTo(n.node,t,s),()=>{this.emitter.stopListening(n.node,t,s)}}}class kl extends qo{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!ao(super.getValue(t))&&(this.valueIfTrue||!0)}}function Ar(r){return!!r&&(r.value&&(r=r.value),Array.isArray(r)?r.some(Ar):r instanceof qo)}function _l(r,t,{node:e}){const n=(h=e,r.map(p=>p instanceof qo?p.getValue(h):p));var h;let s;s=1==r.length&&r[0]instanceof kl?n[0]:n.reduce(Rs,""),ao(s)?t.remove():t.set(s)}function qd(r){return{set(t){r.textContent=t},remove(){r.textContent=""}}}function Yd(r,t,e){return{set(n){r.setAttributeNS(e,t,n)},remove(){r.removeAttributeNS(e,t)}}}function Hd(r,t){return{set(e){r.style[t]=e},remove(){r.style[t]=null}}}function wl(r){return Ss(r,t=>{if(t&&(t instanceof qo||co(t)||lo(t)||Us(t)))return t})}function Al(r){if("string"==typeof r?r={text:[r]}:r.text&&((t=r).text=Ze(t.text)),r.on&&(r.eventListeners=function(t){for(const e in t)xl(t,e);return t}(r.on),delete r.on),!r.text){r.attributes&&function(e){for(const n in e)e[n].value&&(e[n].value=Ze(e[n].value)),xl(e,n)}(r.attributes);const t=[];if(r.children)if(Us(r.children))t.push(r.children);else for(const e of r.children)co(e)||lo(e)||cn(e)?t.push(e):t.push(new Ei(e));r.children=t}var t;return r}function xl(r,t){r[t]=Ze(r[t])}function Rs(r,t){return ao(t)?r:ao(r)?t:`${r} ${t}`}function tn(r,t){for(const e in t)r[e]?r[e].push(...t[e]):r[e]=t[e]}function Zs(r,t){if(t.attributes&&(r.attributes||(r.attributes={}),tn(r.attributes,t.attributes)),t.eventListeners&&(r.eventListeners||(r.eventListeners={}),tn(r.eventListeners,t.eventListeners)),t.text&&r.text.push(...t.text),t.children&&t.children.length){if(r.children.length!=t.children.length)throw new W("ui-template-extend-children-mismatch",r);let e=0;for(const n of t.children)Zs(r.children[e++],n)}}function ao(r){return!r&&0!==r}function lo(r){return r instanceof Wt}function co(r){return r instanceof Ei}function Us(r){return r instanceof Ri}function Cl(r){return te(r[0])&&r[0].ns}function yl(r){return"class"==r||"style"==r}class Gd extends Ri{constructor(t,e=[]){super(e),this.locale=t}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Ei({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=yn(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove()}}var El=lt(6574);Rt()(El.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Tl=class extends Wt{constructor(){super();const r=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",r.if("isVisible","ck-hidden",t=>!t),"ck-reset_all-excluded",r.if("isColorInherited","ck-icon_inherit-color")],viewBox:r.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const r=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=r.getAttribute("viewBox");t&&(this.viewBox=t);for(const{name:e,value:n}of Array.from(r.attributes))Tl.presentationalAttributeNames.includes(e)&&this.element.setAttribute(e,n);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;r.childNodes.length>0;)this.element.appendChild(r.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(r=>{r.style.fill=this.fillColor})}};let Dn=Tl;Dn.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class Qd extends Wt{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:t.to("style"),id:t.to("id")},children:[{text:t.to("text")}]})}}var Sl=lt(4906);Rt()(Sl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ve extends Wt{constructor(t,e=new Qd){super(t),this._focusDelayed=null;const n=this.bindTemplate,s=Mt();this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${s}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(e),this.iconView=new Dn,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const l={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",h=>!h),n.if("isVisible","ck-hidden",h=>!h),n.to("isOn",h=>h?"ck-on":"ck-off"),n.if("withText","ck-button_with-text"),n.if("withKeystroke","ck-button_with-keystroke")],role:n.to("role"),type:n.to("type",h=>h||"button"),tabindex:n.to("tabindex"),"aria-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,h=>!h),"aria-pressed":n.to("isOn",h=>!!this.isToggleable&&String(!!h)),"data-cke-tooltip-text":n.to("_tooltipString"),"data-cke-tooltip-position":n.to("tooltipPosition")},children:this.children,on:{click:n.to(h=>{this.isEnabled?this.fire("execute"):h.preventDefault()})}};it.isSafari&&(this._focusDelayed||(this._focusDelayed=Bs(()=>this.focus(),0)),l.on.mousedown=n.to(()=>{this._focusDelayed()}),l.on.mouseup=n.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(l)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(t){return t.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),t}_createKeystrokeView(){const t=new Wt;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",e=>ml(e))}]}),t}_getTooltipString(t,e,n){return t?"string"==typeof t?t:(n&&(n=ml(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}var Il=lt(5332);Rt()(Il.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xr extends ve{constructor(t){super(t),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new Wt;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}var Dl=lt(6781);Rt()(Dl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lt(1103),lt(841);var Ml=lt(3662);Rt()(Ml.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class js extends Wt{constructor(t){super(t),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${Mt()}`;const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")},children:[{text:e.to("text")}]})}}var Ll=lt(2577);Rt()(Ll.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Cr extends Wt{constructor(t,e){super(t);const n=`ck-labeled-field-view-${Mt()}`,s=`ck-labeled-field-view-status-${Mt()}`;this.fieldView=e(this,n,s),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(s),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(h,p)=>h||p);const l=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",l.to("class"),l.if("isEnabled","ck-disabled",h=>!h),l.if("isEmpty","ck-labeled-field-view_empty"),l.if("isFocused","ck-labeled-field-view_focused"),l.if("placeholder","ck-labeled-field-view_placeholder"),l.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(t){const e=new js(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new Wt(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",s=>!s)],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}focus(t){this.fieldView.focus(t)}}class Pl extends Wt{constructor(t){super(t),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new Ye,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),readonly:e.to("isReadOnly"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById")},on:{input:e.to((...n)=>{this.fire("input",...n),this._updateIsEmpty()}),change:e.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(t,e,n)=>{this._setDomElementValue(n),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(t){this.element.value=t||0===t?t:""}}var Vs=lt(4879);Rt()(Vs.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class qs extends Pl{constructor(t){super(t),this.set("inputMode","text"),this.extendTemplate({attributes:{inputmode:this.bindTemplate.to("inputMode")}})}}class th extends qs{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var Ys=lt(8182);Rt()(Ys.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class eh extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",n=>`ck-dropdown__panel_${n}`),e.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:e.to(n=>{"input"!==n.target.tagName.toLocaleLowerCase()&&n.preventDefault()})}})}focus(){if(this.children.length){const t=this.children.first;"function"==typeof t.focus?t.focus():kt("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}var Nl=lt(5485);Rt()(Nl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Gs=class extends Wt{constructor(r,t,e){super(r);const n=this.bindTemplate;this.buttonView=t,this.panelView=e,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new vi,this.focusTracker=new Ye,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",n.to("class"),n.if("isEnabled","ck-disabled",s=>!s)],id:n.to("id"),"aria-describedby":n.to("ariaDescribedById")},children:[t,e]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":n.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.on("change:isOpen",(t,e,n)=>{if(n)if("auto"===this.panelPosition){const s=Gs._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=s?s.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const r=(t,e)=>{this.isOpen&&(this.isOpen=!1,e())};this.keystrokes.set("arrowdown",(t,e)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,e())}),this.keystrokes.set("arrowright",(t,e)=>{this.isOpen&&e()}),this.keystrokes.set("arrowleft",r),this.keystrokes.set("esc",r)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:r,north:t,southEast:e,southWest:n,northEast:s,northWest:l,southMiddleEast:h,southMiddleWest:p,northMiddleEast:b,northMiddleWest:A}=Gs.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[e,n,h,p,r,s,l,b,A,t]:[n,e,p,h,r,l,s,A,b,t]}};let Ws=Gs;Ws.defaultPanelPositions={south:(r,t)=>({top:r.bottom,left:r.left-(t.width-r.width)/2,name:"s"}),southEast:r=>({top:r.bottom,left:r.left,name:"se"}),southWest:(r,t)=>({top:r.bottom,left:r.left-t.width+r.width,name:"sw"}),southMiddleEast:(r,t)=>({top:r.bottom,left:r.left-(t.width-r.width)/4,name:"sme"}),southMiddleWest:(r,t)=>({top:r.bottom,left:r.left-3*(t.width-r.width)/4,name:"smw"}),north:(r,t)=>({top:r.top-t.height,left:r.left-(t.width-r.width)/2,name:"n"}),northEast:(r,t)=>({top:r.top-t.height,left:r.left,name:"ne"}),northWest:(r,t)=>({top:r.top-t.height,left:r.left-t.width+r.width,name:"nw"}),northMiddleEast:(r,t)=>({top:r.top-t.height,left:r.left-(t.width-r.width)/4,name:"nme"}),northMiddleWest:(r,t)=>({top:r.top-t.height,left:r.left-3*(t.width-r.width)/4,name:"nmw"})},Ws._getOptimalPosition=Ls;const Qs='';class ih extends ve{constructor(t){super(t),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",e=>String(e))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new Dn;return t.content=Qs,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}class en extends(ie()){constructor(t){if(super(),this.focusables=t.focusables,this.focusTracker=t.focusTracker,this.keystrokeHandler=t.keystrokeHandler,this.actions=t.actions,t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];"string"==typeof n&&(n=[n]);for(const s of n)t.keystrokeHandler.set(s,(l,h)=>{this[e](),h()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(Xs)||null}get last(){return this.focusables.filter(Xs).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((e,n)=>{const s=e.element===this.focusTracker.focusedElement;return s&&(t=n),s}),t)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const t=this.next;t&&this.focusables.getIndex(t)===this.current||(t===this.first?this.fire("forwardCycle"):this._focus(t,1))}focusPrevious(){const t=this.previous;t&&this.focusables.getIndex(t)===this.current||(t===this.last?this.fire("backwardCycle"):this._focus(t,-1))}_focus(t,e){t&&t.focus(e)}_getFocusableItem(t){const e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];let s=(e+n+t)%n;do{const l=this.focusables.get(s);if(Xs(l))return l;s=(s+n+t)%n}while(s!==e);return null}}function Xs(r){return!(!("focus"in r)||!In(r.element))}class Bl extends Wt{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class nh extends Wt{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var oh=Object.defineProperty,Fl=Object.getOwnPropertySymbols,rh=Object.prototype.hasOwnProperty,sh=Object.prototype.propertyIsEnumerable,zl=(r,t,e)=>t in r?oh(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Rl=(r,t)=>{for(var e in t||(t={}))rh.call(t,e)&&zl(r,e,t[e]);if(Fl)for(var e of Fl(t))sh.call(t,e)&&zl(r,e,t[e]);return r};function Zl(r){if(Array.isArray(r))return{items:r,removeItems:[]};const t={items:[],removeItems:[]};return r?Rl(Rl({},t),r):t}class Lt extends(ne()){constructor(t){super(),this._disableStack=new Set,this.editor=t,this.set("isEnabled",!0)}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",Ul,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",Ul),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function Ul(r){r.return=!1,r.stop()}class Jt extends(ne()){constructor(t){super(),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(t,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",e=>{if(!this.affectsData)return;const n=t.model.document.selection,s="$graveyard"!=n.getFirstPosition().root.rootName&&t.model.canEditAt(n);(t.isReadOnly||this._isEnabledBasedOnSelection&&!s)&&(e.return=!1,e.stop())},{priority:"highest"}),this.on("execute",e=>{this.isEnabled||e.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(t){this._affectsData=t}refresh(){this.isEnabled=!0}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",jl,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",jl),this.refresh())}execute(...t){}destroy(){this.stopListening()}}function jl(r){r.return=!1,r.stop()}class Vl extends Jt{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={}){bt(this._childCommandsDefinitions,{command:t,priority:e.priority||"normal"}),t.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const t=this._childCommandsDefinitions.find(({command:e})=>e.isEnabled);return t&&t.command}}class ql extends(ie()){constructor(t,e=[],n=[]){super(),this._plugins=new Map,this._context=t,this._availablePlugins=new Map;for(const s of e)s.pluginName&&this._availablePlugins.set(s.pluginName,s);this._contextPlugins=new Map;for(const[s,l]of n)this._contextPlugins.set(s,l),this._contextPlugins.set(l,s),s.pluginName&&this._availablePlugins.set(s.pluginName,s)}*[Symbol.iterator](){for(const t of this._plugins)"function"==typeof t[0]&&(yield t)}get(t){const e=this._plugins.get(t);if(!e){let n=t;throw"function"==typeof t&&(n=t.pluginName||t.name),new W("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return e}has(t){return this._plugins.has(t)}init(t,e=[],n=[]){const s=this,l=this._context;(function j(Y,$=new Set){Y.forEach(st=>{b(st)&&($.has(st)||($.add(st),st.pluginName&&!s._availablePlugins.has(st.pluginName)&&s._availablePlugins.set(st.pluginName,st),st.requires&&j(st.requires,$)))})})(t),P(t);const h=[...function j(Y,$=new Set){return Y.map(st=>b(st)?st:s._availablePlugins.get(st)).reduce((st,ft)=>$.has(ft)?st:($.add(ft),ft.requires&&(P(ft.requires,ft),j(ft.requires,$).forEach(At=>st.add(At))),st.add(ft)),new Set)}(t.filter(j=>!C(j,e)))];!function(j,Y){for(const $ of Y){if("function"!=typeof $)throw new W("plugincollection-replace-plugin-invalid-type",null,{pluginItem:$});const st=$.pluginName;if(!st)throw new W("plugincollection-replace-plugin-missing-name",null,{pluginItem:$});if($.requires&&$.requires.length)throw new W("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:st});const ft=s._availablePlugins.get(st);if(!ft)throw new W("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:st});const At=j.indexOf(ft);if(-1===At){if(s._contextPlugins.has(ft))return;throw new W("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:st})}if(ft.requires&&ft.requires.length)throw new W("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:st});j.splice(At,1,$),s._availablePlugins.set(st,$)}}(h,n);const p=h.map(j=>{let Y=s._contextPlugins.get(j);return Y=Y||new j(l),s._add(j,Y),Y});return F(p,"init").then(()=>F(p,"afterInit")).then(()=>p);function b(j){return"function"==typeof j}function A(j){return b(j)&&!!j.isContextPlugin}function C(j,Y){return Y.some($=>$===j||E(j)===$||E($)===j)}function E(j){return b(j)?j.pluginName||j.name:j}function P(j,Y=null){j.map($=>b($)?$:s._availablePlugins.get($)||$).forEach($=>{(function(st,ft){if(!b(st))throw ft?new W("plugincollection-soft-required",l,{missingPlugin:st,requiredBy:E(ft)}):new W("plugincollection-plugin-not-found",l,{plugin:st})})($,Y),function(st,ft){if(A(ft)&&!A(st))throw new W("plugincollection-context-required",l,{plugin:E(st),requiredBy:E(ft)})}($,Y),function(st,ft){if(ft&&C(st,e))throw new W("plugincollection-required",l,{plugin:E(st),requiredBy:E(ft)})}($,Y)})}function F(j,Y){return j.reduce(($,st)=>st[Y]?s._contextPlugins.has(st)?$:$.then(st[Y].bind(st)):$,Promise.resolve())}}destroy(){const t=[];for(const[,e]of this)"function"!=typeof e.destroy||this._contextPlugins.has(e)||t.push(e.destroy());return Promise.all(t)}_add(t,e){this._plugins.set(t,e);const n=t.pluginName;if(n){if(this._plugins.has(n))throw new W("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}class Yl{constructor(t){this._contextOwner=null,this.config=new $a(t,this.constructor.defaultConfig);const e=this.constructor.builtinPlugins;this.config.define("plugins",e),this.plugins=new ql(this,e);const n=this.config.get("language")||{};this.locale=new Os({uiLanguage:"string"==typeof n?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new di}initPlugins(){const t=this.config.get("plugins")||[],e=this.config.get("substitutePlugins")||[];for(const n of t.concat(e)){if("function"!=typeof n)throw new W("context-initplugins-constructor-only",null,{Plugin:n});if(!0!==n.isContextPlugin)throw new W("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(t,[],e)}destroy(){return Promise.all(Array.from(this.editors,t=>t.destroy())).then(()=>this.plugins.destroy())}_addEditor(t,e){if(this._contextOwner)throw new W("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}_removeEditor(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}_getEditorConfig(){const t={};for(const e of this.config.names())["plugins","removePlugins","extraPlugins"].includes(e)||(t[e]=this.config.get(e));return t}static create(t){return new Promise(e=>{const n=new this(t);e(n.initPlugins().then(()=>n))})}}class Er extends(ne()){constructor(t){super(),this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class ah extends vi{constructor(t){super(),this.editor=t}set(t,e,n={}){if("string"==typeof e){const s=e;e=(l,h)=>{this.editor.execute(s),h()}}super.set(t,e,n)}}var Hl=lt(4717);Rt()(Hl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Tr=new WeakMap;let Gl=!1;function Wl({view:r,element:t,text:e,isDirectHost:n=!0,keepOnFocus:s=!1}){const l=r.document;function h(p){Tr.get(l).set(t,{text:p,isDirectHost:n,keepOnFocus:s,hostElement:n?t:null}),r.change(b=>Ks(l,b))}Tr.has(l)||(Tr.set(l,new Map),l.registerPostFixer(p=>Ks(l,p)),l.on("change:isComposing",()=>{r.change(p=>Ks(l,p))},{priority:"high"})),t.is("editableElement")&&t.on("change:placeholder",(p,b,A)=>{h(A)}),t.placeholder?h(t.placeholder):e&&h(e),e&&(Gl||kt("enableplaceholder-deprecated-text-option"),Gl=!0)}function Ks(r,t){const e=Tr.get(r),n=[];let s=!1;for(const[l,h]of e)h.isDirectHost&&(n.push(l),Ql(t,l,h)&&(s=!0));for(const[l,h]of e){if(h.isDirectHost)continue;const p=dh(l);p&&(n.includes(p)||(h.hostElement=p,Ql(t,l,h)&&(s=!0)))}return s}function Ql(r,t,e){const{text:n,isDirectHost:s,hostElement:l}=e;let h=!1;return l.getAttribute("data-placeholder")!==n&&(r.setAttribute("data-placeholder",n,l),h=!0),(s||1==t.childCount)&&function(p,b){if(!p.isAttached()||Array.from(p.getChildren()).some(E=>!E.is("uiElement")))return!1;const A=p.document,C=A.selection.anchor;return!(A.isComposing&&C&&C.parent===p||!b&&A.isFocused&&(!C||C.parent===p))}(l,e.keepOnFocus)?(p=r,!(b=l).hasClass("ck-placeholder")&&(p.addClass("ck-placeholder",b),!0)&&(h=!0)):function ch(r,t){return!!t.hasClass("ck-placeholder")&&(r.removeClass("ck-placeholder",t),!0)}(r,l)&&(h=!0),h;var p,b}function dh(r){if(r.childCount){const t=r.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}class Mn{is(){throw new Error("is() method is abstract")}}const Xl=function(r){return fi(r,4)};class Ln extends(ie(Mn)){constructor(t){super(),this.document=t,this.parent=null}get index(){let t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new W("view-node-not-found-in-parent",this);return t}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.index),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),s=t.getAncestors(e);let l=0;for(;n[l]==s[l]&&n[l];)l++;return 0===l?null:n[l-1]}isBefore(t){if(this==t||this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),s=qe(e,n);switch(s){case"prefix":return!0;case"extension":return!1;default:return e[s]t.data.length)throw new W("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new W("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(t={}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}Zi.prototype.is=function(r){return"$textProxy"===r||"view:$textProxy"===r||"textProxy"===r||"view:textProxy"===r};class Ti{constructor(...t){this._patterns=[],this.add(...t)}add(...t){for(let e of t)("string"==typeof e||e instanceof RegExp)&&(e={name:e}),this._patterns.push(e)}match(...t){for(const e of t)for(const n of this._patterns){const s=Kl(e,n);if(s)return{element:e,pattern:n,match:s}}return null}matchAll(...t){const e=[];for(const n of t)for(const s of this._patterns){const l=Kl(n,s);l&&e.push({element:n,pattern:s,match:l})}return e.length>0?e:null}getElementName(){if(1!==this._patterns.length)return null;const t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e}}function Kl(r,t){if("function"==typeof t)return t(r);const e={};return t.name&&(e.name=(s=r.name,(n=t.name)instanceof RegExp?!!s.match(n):n===s),!e.name)||t.attributes&&(e.attributes=function(n,s){const l=new Set(s.getAttributeKeys());return Ie(n)?(void 0!==n.style&&kt("matcher-pattern-deprecated-attributes-style-key",n),void 0!==n.class&&kt("matcher-pattern-deprecated-attributes-class-key",n)):(l.delete("style"),l.delete("class")),Js(n,l,h=>s.getAttribute(h))}(t.attributes,r),!e.attributes)||t.classes&&(e.classes=function(n,s){return Js(n,s.getClassNames(),()=>{})}(t.classes,r),!e.classes)||t.styles&&(e.styles=function(n,s){return Js(n,s.getStyleNames(!0),l=>s.getStyle(l))}(t.styles,r),!e.styles)?null:e;var n,s}function Js(r,t,e){const n=(h=r,Array.isArray(h)?h.map(p=>Ie(p)?(void 0!==p.key&&void 0!==p.value||kt("matcher-pattern-missing-key-or-value",p),[p.key,p.value]):[p,!0]):Ie(h)?Object.entries(h):[[h,!0]]),s=Array.from(t),l=[];var h;if(n.forEach(([h,p])=>{s.forEach(b=>{var A,C;C=b,(!0===(A=h)||A===C||A instanceof RegExp&&C.match(A))&&function(A,C,E){if(!0===A)return!0;const P=E(C);return A===P||A instanceof RegExp&&!!String(P).match(A)}(p,b,e)&&l.push(b)})}),n.length&&!(l.lengths?0:s+t),(e=e>s?s:e)<0&&(e+=s),s=t>e?0:e-t>>>0,t>>>=0;for(var l=Array(s);++n0){if(++t>=800)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}(Mh),oc=function(r){return function(r,t){return Ph(function(r,t,e){return t=nc(void 0===t?r.length-1:t,0),function(){for(var n=arguments,s=-1,l=nc(n.length-t,0),h=Array(l);++s1?e[s-1]:void 0,h=s>2?e[2]:void 0;for(l=r.length>3&&"function"==typeof l?(s--,l):void 0,h&&function(r,t,e){if(!te(e))return!1;var n=typeof t;return!!("number"==n?Bo(e)&&ln(t,e.length):"string"==n&&t in e)&&En(e[t],r)}(e[0],e[1],h)&&(l=s<3?void 0:l,s=1),t=Object(t);++nn===t);return Array.isArray(e)}set(t,e){if(te(t))for(const[n,s]of Object.entries(t))this._styleProcessor.toNormalizedForm(n,s,this._styles);else this._styleProcessor.toNormalizedForm(t,e,this._styles)}remove(t){const e=na(t);(function(r,t){null==r||function(r,t){null==(r=function(r,t){return t.length<2?r:tc(r,ec(t,0,-1))}(r,t=ta(t,r)))||delete r[ea(function(r){var t=null==r?0:r.length;return t?r[t-1]:void 0}(t))]}(r,t)})(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}getNormalized(t){return this._styleProcessor.getNormalized(t,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(t=>t.join(":")).sort().join(";")+";"}getAsString(t){if(this.isEmpty)return;if(this._styles[t]&&!te(this._styles[t]))return this._styles[t];const e=this._styleProcessor.getReducedForm(t,this._styles).find(([n])=>n===t);return Array.isArray(e)?e[1]:void 0}getStyleNames(t=!1){return this.isEmpty?[]:t?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([e])=>e)}clear(){this._styles={}}_getStylesEntries(){const t=[],e=Object.keys(this._styles);for(const n of e)t.push(...this._styleProcessor.getReducedForm(n,this._styles));return t}_cleanEmptyObjectsOnPath(t){const e=t.split(".");if(!(e.length>1))return;const n=e.splice(0,e.length-1).join("."),s=Si(this._styles,n);s&&!Object.keys(s).length&&this.remove(n)}}class Rh{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(te(e))Mr(n,na(t),e);else if(this._normalizers.has(t)){const s=this._normalizers.get(t),{path:l,value:h}=s(e);Mr(n,l,h)}else Mr(n,t,e)}getNormalized(t,e){if(!t)return rc({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){const n=this._extractors.get(t);if("string"==typeof n)return Si(e,n);const s=n(t,e);if(s)return s}return Si(e,na(t))}getReducedForm(t,e){const n=this.getNormalized(t,e);return void 0===n?[]:this._reducers.has(t)?this._reducers.get(t)(n):[[t,n]]}getStyleNames(t){const e=Array.from(this._consumables.keys()).filter(s=>{const l=this.getNormalized(s,t);return l&&"object"==typeof l?Object.keys(l).length:l}),n=new Set([...e,...Object.keys(t)]);return Array.from(n)}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function na(r){return r.replace("-",".")}function Mr(r,t,e){let n=e;te(e)&&(n=rc({},Si(r,t),e)),function(r,t,e){null==r||function(r,t,e,n){if(!te(r))return r;for(var s=-1,l=(t=ta(t,r)).length,h=l-1,p=r;null!=p&&++s0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(t){if("class"==t)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==t){const e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(t)}hasAttribute(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}isSimilar(t){if(!(t instanceof hi))return!1;if(this===t)return!0;if(this.name!=t.name||this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const e of this._styles.getStyleNames())if(!t._styles.has(e)||t._styles.getAsString(e)!==this._styles.getAsString(e))return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.getAsString(t)}getNormalizedStyle(t){return this._styles.getNormalized(t)}getStyleNames(t){return this._styles.getStyleNames(t)}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new Ti(...t);let n=this.parent;for(;n&&!n.is("documentFragment");){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map(s=>`${s[0]}="${s[1]}"`).sort().join(" ");return this.name+(""==t?"":` class="${t}"`)+(e?` style="${e}"`:"")+(""==n?"":` ${n}`)}shouldRenderUnsafeAttribute(t){return this._unsafeAttributesToRender.includes(t)}_clone(t=!1){const e=[];if(t)for(const s of this.getChildren())e.push(s._clone(t));const n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const s=(l=this.document,"string"==typeof(h=e)?[new ke(l,h)]:(ti(h)||(h=[h]),Array.from(h).map(p=>"string"==typeof p?new ke(l,p):p instanceof Zi?new ke(l,p.data):p)));var l,h;for(const l of s)null!==l.parent&&l._remove(),l.parent=this,l.document=this.document,this._children.splice(t,0,l),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of Ze(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of Ze(t))this._classes.delete(e)}_setStyle(t,e){this._fireChange("attributes",this),"string"!=typeof t?this._styles.set(t):this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this);for(const e of Ze(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function Lr(r,t){const e=t.split(/\s+/);r.clear(),e.forEach(n=>r.add(n))}hi.prototype.is=function(r,t){return t?t===this.name&&("element"===r||"view:element"===r):"element"===r||"view:element"===r||"node"===r||"view:node"===r};class po extends hi{constructor(t,e,n,s){super(t,e,n,s),this.getFillerOffset=sc}}function sc(){const r=[...this.getChildren()],t=r[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(const e of r)if(!e.is("uiElement"))return null;return this.childCount}po.prototype.is=function(r,t){return t?t===this.name&&("containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class Pr extends(ne(po)){constructor(t,e,n,s){super(t,e,n,s),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",l=>l&&t.selection.editableElement==this),this.listenTo(t.selection,"change",()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this})}destroy(){this.stopListening()}}Pr.prototype.is=function(r,t){return t?t===this.name&&("editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};const ac=Symbol("rootName");class lc extends Pr{constructor(t,e){super(t,e),this.rootName="main"}get rootName(){return this.getCustomProperty(ac)}set rootName(t){this._setCustomProperty(ac,t)}set _name(t){this.name=t}}lc.prototype.is=function(r,t){return t?t===this.name&&("rootElement"===r||"view:rootElement"===r||"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"rootElement"===r||"view:rootElement"===r||"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class nn{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new W("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new W("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,this._position=Bt._createAt(t.startPosition?t.startPosition:t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n;do{n=this.position,e=this.next()}while(!e.done&&t(e.value));e.done||(this._position=n)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&t.offset===n.childCount)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let s;if(n instanceof ke){if(t.isAtEnd)return this._position=Bt._createAfter(n),this._next();s=n.data[t.offset]}else s=n.getChild(t.offset);if(s instanceof hi){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t=new Bt(s,0);return this._position=t,this._formatReturnValue("elementStart",s,e,t,1)}if(s instanceof ke){if(this.singleCharacters)return t=new Bt(s,0),this._position=t,this._next();let l,h=s.data.length;return s==this._boundaryEndParent?(h=this.boundaries.end.offset,l=new Zi(s,0,h),t=Bt._createAfter(l)):(l=new Zi(s,0,s.data.length),t.offset++),this._position=t,this._formatReturnValue("text",l,e,t,h)}if("string"==typeof s){let l;l=this.singleCharacters?1:(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset;const h=new Zi(n,t.offset,l);return t.offset+=l,this._position=t,this._formatReturnValue("text",h,e,t,l)}return t=Bt._createAfter(n),this._position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t)}_previous(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&0===t.offset)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let s;if(n instanceof ke){if(t.isAtStart)return this._position=Bt._createBefore(n),this._previous();s=n.data[t.offset-1]}else s=n.getChild(t.offset-1);if(s instanceof hi)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",s,e,t,1)):(t=new Bt(s,s.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",s,e,t));if(s instanceof ke){if(this.singleCharacters)return t=new Bt(s,s.data.length),this._position=t,this._previous();let l,h=s.data.length;if(s==this._boundaryStartParent){const p=this.boundaries.start.offset;l=new Zi(s,p,s.data.length-p),h=l.data.length,t=Bt._createBefore(l)}else l=new Zi(s,0,s.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",l,e,t,h)}if("string"==typeof s){let l;l=this.singleCharacters?1:t.offset-(n===this._boundaryStartParent?this.boundaries.start.offset:0),t.offset-=l;const h=new Zi(n,t.offset,l);return this._position=t,this._formatReturnValue("text",h,e,t,l)}return t=Bt._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,s,l){return e instanceof Zi&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=Bt._createAfter(e.textNode):(s=Bt._createAfter(e.textNode),this._position=s)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=Bt._createBefore(e.textNode):(s=Bt._createBefore(e.textNode),this._position=s))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:s,length:l}}}}class Bt extends Mn{constructor(t,e){super(),this.parent=t,this.offset=e}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}get root(){return this.parent.root}get editableElement(){let t=this.parent;for(;!(t instanceof Pr);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=Bt._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new nn(e);return n.skip(t),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let s=0;for(;e[s]==n[s]&&e[s];)s++;return 0===s?null:e[s-1]}isEqual(t){return this.parent==t.parent&&this.offset==t.offset}isBefore(t){return"before"==this.compareWith(t)}isAfter(t){return"after"==this.compareWith(t)}compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";const e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);const s=qe(e,n);switch(s){case"prefix":return"before";case"extension":return"after";default:return e[s]0?new this(n,s):new this(s,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(Bt._createBefore(t),e)}}function Nr(r){return!(!r.item.is("attributeElement")&&!r.item.is("uiElement"))}Gt.prototype.is=function(r){return"range"===r||"view:range"===r};class Ii extends(ie(Mn)){constructor(...t){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",t.length&&this.setTo(...t)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}get focus(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const t of this._ranges)yield t.clone()}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?t.clone():null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?t.clone():null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}isEqual(t){if(this.isFake!=t.isFake||this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel||this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const s of t._ranges)if(e.isEqual(s)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=yo(this.getRanges());if(e!=yo(t.getRanges()))return!1;if(0==e)return!0;for(let n of this.getRanges()){n=n.getTrimmed();let s=!1;for(let l of t.getRanges())if(l=l.getTrimmed(),n.start.isEqual(l.start)&&n.end.isEqual(l.end)){s=!0;break}if(!s)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...t){let[e,n,s]=t;if("object"==typeof n&&(s=n,n=void 0),null===e)this._setRanges([]),this._setFakeOptions(s);else if(e instanceof Ii||e instanceof oa)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof Gt)this._setRanges([e],s&&s.backward),this._setFakeOptions(s);else if(e instanceof Bt)this._setRanges([new Gt(e)]),this._setFakeOptions(s);else if(e instanceof Ln){const l=!!s&&!!s.backward;let h;if(void 0===n)throw new W("view-selection-setto-required-second-parameter",this);h="in"==n?Gt._createIn(e):"on"==n?Gt._createOn(e):new Gt(Bt._createAt(e,n)),this._setRanges([h],l),this._setFakeOptions(s)}else{if(!ti(e))throw new W("view-selection-setto-not-selectable",this);this._setRanges(e,s&&s.backward),this._setFakeOptions(s)}this.fire("change")}setFocus(t,e){if(null===this.anchor)throw new W("view-selection-setfocus-no-ranges",this);const n=Bt._createAt(t,e);if("same"==n.compareWith(this.focus))return;const s=this.anchor;this._ranges.pop(),"before"==n.compareWith(s)?this._addRange(new Gt(n,s),!0):this._addRange(new Gt(s,n)),this.fire("change")}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const n of t)this._addRange(n);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof Gt))throw new W("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}_pushRange(t){for(const e of this._ranges)if(t.isIntersecting(e))throw new W("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new Gt(t.start,t.end))}}Ii.prototype.is=function(r){return"selection"===r||"view:selection"===r};class oa extends(ie(Mn)){constructor(...t){super(),this._selection=new Ii,this._selection.delegate("change").to(this),t.length&&this._selection.setTo(...t)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(t){return this._selection.isEqual(t)}isSimilar(t){return this._selection.isSimilar(t)}_setTo(...t){this._selection.setTo(...t)}_setFocus(t,e){this._selection.setFocus(t,e)}}oa.prototype.is=function(r){return"selection"===r||"documentSelection"==r||"view:selection"==r||"view:documentSelection"==r};class go extends xt{constructor(t,e,n){super(t,e),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const ra=Symbol("bubbling contexts");function sa(r){return class extends r{fire(t,...e){try{const n=t instanceof xt?t:new xt(this,t),s=aa(this);if(!s.size)return;if(Ho(n,"capturing",this),mo(s,"$capture",n,...e))return n.return;const l=n.startRange||this.selection.getFirstRange(),h=l?l.getContainedElement():null,p=!!h&&!!cc(s,h);let b=h||function(A){if(!A)return null;const C=A.start.parent,E=A.end.parent,P=C.getPath(),F=E.getPath();return P.length>F.length?C:E}(l);if(Ho(n,"atTarget",b),!p){if(mo(s,"$text",n,...e))return n.return;Ho(n,"bubbling",b)}for(;b;){if(b.is("rootElement")){if(mo(s,"$root",n,...e))return n.return}else if(b.is("element")&&mo(s,b.name,n,...e))return n.return;if(mo(s,b,n,...e))return n.return;b=b.parent,Ho(n,"bubbling",b)}return Ho(n,"bubbling",this),mo(s,"$document",n,...e),n.return}catch(n){W.rethrowUnexpectedError(n,this)}}_addEventListener(t,e,n){const s=Ze(n.context||"$document"),l=aa(this);for(const h of s){let p=l.get(h);p||(p=new(ie()),l.set(h,p)),this.listenTo(p,t,e,n)}}_removeEventListener(t,e){const n=aa(this);for(const s of n.values())this.stopListening(s,t,e)}}}{const r=sa(Object);["fire","_addEventListener","_removeEventListener"].forEach(t=>{sa[t]=r.prototype[t]})}function Ho(r,t,e){r instanceof go&&(r._eventPhase=t,r._currentTarget=e)}function mo(r,t,e,...n){const s="string"==typeof t?r.get(t):cc(r,t);return!!s&&(s.fire(e,...n),e.stop.called)}function cc(r,t){for(const[e,n]of r)if("function"==typeof e&&e(t))return n;return null}function aa(r){return r[ra]||(r[ra]=new Map),r[ra]}class Or extends(sa(ne())){constructor(t){super(),this._postFixers=new Set,this.selection=new oa,this.roots=new di({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}destroy(){this.roots.forEach(t=>t.destroy()),this.stopListening()}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(e=n(t),e)break}while(e)}}class Nn extends hi{constructor(t,e,n,s){super(t,e,n,s),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=Zh}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new W("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(t){return null!==this.id||null!==t.id?this.id===t.id:super.isSimilar(t)&&this.priority==t.priority}_clone(t=!1){const e=super._clone(t);return e._priority=this._priority,e._id=this._id,e}}function Zh(){if(la(this))return null;let r=this.parent;for(;r&&r.is("attributeElement");){if(la(r)>1)return null;r=r.parent}return!r||la(r)>1?null:this.childCount}function la(r){return Array.from(r.getChildren()).filter(t=>!t.is("uiElement")).length}Nn.DEFAULT_PRIORITY=10,Nn.prototype.is=function(r,t){return t?t===this.name&&("attributeElement"===r||"view:attributeElement"===r||"element"===r||"view:element"===r):"attributeElement"===r||"view:attributeElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class ca extends hi{constructor(t,e,n,s){super(t,e,n,s),this.getFillerOffset=Uh}_insertChild(t,e){if(e&&(e instanceof Ln||Array.from(e).length>0))throw new W("view-emptyelement-cannot-add",[this,e]);return 0}}function Uh(){return null}ca.prototype.is=function(r,t){return t?t===this.name&&("emptyElement"===r||"view:emptyElement"===r||"element"===r||"view:element"===r):"emptyElement"===r||"view:emptyElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class Br extends hi{constructor(t,e,n,s){super(t,e,n,s),this.getFillerOffset=Vh}_insertChild(t,e){if(e&&(e instanceof Ln||Array.from(e).length>0))throw new W("view-uielement-cannot-add",[this,e]);return 0}render(t,e){return this.toDomElement(t)}toDomElement(t){const e=t.createElement(this.name);for(const n of this.getAttributeKeys())e.setAttribute(n,this.getAttribute(n));return e}}function Vh(){return null}Br.prototype.is=function(r,t){return t?t===this.name&&("uiElement"===r||"view:uiElement"===r||"element"===r||"view:element"===r):"uiElement"===r||"view:uiElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class da extends hi{constructor(t,e,n,s){super(t,e,n,s),this.getFillerOffset=ui}_insertChild(t,e){if(e&&(e instanceof Ln||Array.from(e).length>0))throw new W("view-rawelement-cannot-add",[this,e]);return 0}render(t,e){}}function ui(){return null}da.prototype.is=function(r,t){return t?t===this.name&&("rawElement"===r||"view:rawElement"===r||"element"===r||"view:element"===r):"rawElement"===r||"view:rawElement"===r||r===this.name||r==="view:"+this.name||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class fo extends(ie(Mn)){constructor(t,e){super(),this._children=[],this._customProperties=new Map,this.document=t,e&&this._insertChild(0,e)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(t){return this._insertChild(this.childCount,t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(t,e){this._fireChange("children",this);let n=0;const s=(l=this.document,"string"==typeof(h=e)?[new ke(l,h)]:(ti(h)||(h=[h]),Array.from(h).map(p=>"string"==typeof p?new ke(l,p):p instanceof Zi?new ke(l,p.data):p)));var l,h;for(const l of s)null!==l.parent&&l._remove(),l.parent=this,this._children.splice(t,0,l),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n{const b=h[h.length-1],A=!p.is("uiElement");return b&&b.breakAttributes==A?b.nodes.push(p):h.push({breakAttributes:A,nodes:[p]}),h},[]);let s=null,l=t;for(const{nodes:h,breakAttributes:p}of n){const b=this._insertNodes(l,h,p);s||(s=b.start),l=b.end}return s?new Gt(s,l):new Gt(t)}remove(t){const e=t instanceof Gt?t:Gt._createOn(t);if(Fr(e,this.document),e.isCollapsed)return new fo(this.document);const{start:n,end:s}=this._breakAttributesRange(e,!0),p=n.parent._removeChildren(n.offset,s.offset-n.offset);for(const A of p)this._removeFromClonedElementsGroup(A);const b=this.mergeAttributes(n);return e.start=b,e.end=b.clone(),new fo(this.document,p)}clear(t,e){Fr(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const s of n){const l=s.item;let h;if(l.is("element")&&e.isSimilar(l))h=Gt._createOn(l);else if(!s.nextPosition.isAfter(t.start)&&l.is("$textProxy")){const p=l.getAncestors().find(b=>b.is("element")&&e.isSimilar(b));p&&(h=Gt._createIn(p))}h&&(h.end.isAfter(t.end)&&(h.end=t.end),h.start.isBefore(t.start)&&(h.start=t.start),this.remove(h))}}move(t,e){let n;if(e.isAfter(t.end)){const s=(e=this._breakAttributes(e,!0)).parent,l=s.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=s.childCount-l}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof Nn))throw new W("view-writer-wrap-invalid-attribute",this.document);if(Fr(t,this.document),t.isCollapsed){let s=t.start;s.parent.is("element")&&!Array.from(s.parent.getChildren()).some(h=>!h.is("uiElement"))&&(s=s.getLastMatchingPosition(h=>h.item.is("uiElement"))),s=this._wrapPosition(s,e);const l=this.document.selection;return l.isCollapsed&&l.getFirstPosition().isEqual(t.start)&&this.setSelection(s),new Gt(s)}return this._wrapRange(t,e)}unwrap(t,e){if(!(e instanceof Nn))throw new W("view-writer-unwrap-invalid-attribute",this.document);if(Fr(t,this.document),t.isCollapsed)return t;const{start:n,end:s}=this._breakAttributesRange(t,!0),h=this._unwrapChildren(n.parent,n.offset,s.offset,e),p=this.mergeAttributes(h.start);p.isEqual(h.start)||h.end.offset--;const b=this.mergeAttributes(h.end);return new Gt(p,b)}rename(t,e){const n=new po(this.document,t,e.getAttributes());return this.insert(Bt._createAfter(e),n),this.move(Gt._createIn(e),Bt._createAt(n,0)),this.remove(Gt._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return Bt._createAt(t,e)}createPositionAfter(t){return Bt._createAfter(t)}createPositionBefore(t){return Bt._createBefore(t)}createRange(t,e){return new Gt(t,e)}createRangeOn(t){return Gt._createOn(t)}createRangeIn(t){return Gt._createIn(t)}createSelection(...t){return new Ii(...t)}createSlot(t="children"){if(!this._slotFactory)throw new W("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t)}_registerSlotFactory(t){this._slotFactory=t}_clearSlotFactory(){this._slotFactory=null}_insertNodes(t,e,n){let s,l;if(s=n?dc(t):t.parent.is("$text")?t.parent.parent:t.parent,!s)throw new W("view-writer-invalid-position-container",this.document);l=n?this._breakAttributes(t,!0):t.parent.is("$text")?hc(t):t;const h=s._insertChild(l.offset,e);for(const C of e)this._addToClonedElementsGroup(C);const p=l.getShiftedBy(h),b=this.mergeAttributes(l);b.isEqual(l)||p.offset--;const A=this.mergeAttributes(p);return new Gt(b,A)}_wrapChildren(t,e,n,s){let l=e;const h=[];for(;l!1,t.parent._insertChild(t.offset,n);const s=new Gt(t,t.getShiftedBy(1));this.wrap(s,e);const l=new Bt(n.parent,n.index);n._remove();const h=l.nodeBefore,p=l.nodeAfter;return h instanceof ke&&p instanceof ke?uc(h,p):Yh(l)}_wrapAttributeElement(t,e){if(!Hh(t,e)||t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&e.hasAttribute(n)&&e.getAttribute(n)!==t.getAttribute(n))return!1;for(const n of t.getStyleNames())if(e.hasStyle(n)&&e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&(e.hasAttribute(n)||this.setAttribute(n,t.getAttribute(n),e));for(const n of t.getStyleNames())e.hasStyle(n)||this.setStyle(n,t.getStyle(n),e);for(const n of t.getClassNames())e.hasClass(n)||this.addClass(n,e);return!0}_unwrapAttributeElement(t,e){if(!Hh(t,e)||t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&(!e.hasAttribute(n)||e.getAttribute(n)!==t.getAttribute(n)))return!1;if(!e.hasClass(...t.getClassNames()))return!1;for(const n of t.getStyleNames())if(!e.hasStyle(n)||e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,e);return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}_breakAttributesRange(t,e=!1){const n=t.start,s=t.end;if(Fr(t,this.document),t.isCollapsed){const b=this._breakAttributes(t.start,e);return new Gt(b,b)}const l=this._breakAttributes(s,e),h=l.parent.childCount,p=this._breakAttributes(n,e);return l.offset+=l.parent.childCount-h,new Gt(p,l)}_breakAttributes(t,e=!1){const n=t.offset,s=t.parent;if(t.parent.is("emptyElement"))throw new W("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new W("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new W("view-writer-cannot-break-raw-element",this.document);if(!e&&s.is("$text")&&gc(s.parent)||gc(s))return t.clone();if(s.is("$text"))return this._breakAttributes(hc(t),e);if(n==s.childCount){const l=new Bt(s.parent,s.index+1);return this._breakAttributes(l,e)}if(0===n){const l=new Bt(s.parent,s.index);return this._breakAttributes(l,e)}{const l=s.index+1,h=s._clone();s.parent._insertChild(l,h),this._addToClonedElementsGroup(h);const b=s._removeChildren(n,s.childCount-n);h._appendChild(b);const A=new Bt(s.parent,l);return this._breakAttributes(A,e)}}_addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element"))for(const s of t.getChildren())this._addToClonedElementsGroup(s);const e=t.id;if(!e)return;let n=this._cloneGroups.get(e);n||(n=new Set,this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n}_removeFromClonedElementsGroup(t){if(t.is("element"))for(const s of t.getChildren())this._removeFromClonedElementsGroup(s);const e=t.id;if(!e)return;const n=this._cloneGroups.get(e);n&&n.delete(t)}}function dc(r){let t=r.parent;for(;!gc(t);){if(!t)return;t=t.parent}return t}function Np(r,t){return r.priorityt.priority)&&r.getIdentity()e instanceof n))throw new W("view-writer-insert-invalid-node-type",t);e.is("$text")||Ui(e.getChildren(),t)}}function gc(r){return r&&(r.is("containerElement")||r.is("documentFragment"))}function Fr(r,t){const e=dc(r.start),n=dc(r.end);if(!e||!n||e!==n)throw new W("view-writer-invalid-range-container",t)}function Hh(r,t){return null===r.id&&null===t.id}const Gh=r=>r.createTextNode("\xa0"),Wh=r=>{const t=r.createElement("span");return t.dataset.ckeFiller="true",t.innerText="\xa0",t},Qh=r=>{const t=r.createElement("br");return t.dataset.ckeFiller="true",t},ji=7,zr="\u2060".repeat(ji);function ki(r){return"string"==typeof r?r.substr(0,ji)===zr:Le(r)&&r.data.substr(0,ji)===zr}function Rr(r){return r.data.length==ji&&ki(r)}function Xh(r){const t="string"==typeof r?r:r.data;return ki(r)?t.slice(ji):t}function Op(r,t){if(t.keyCode==se.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const n=e.getRangeAt(0).startContainer,s=e.getRangeAt(0).startOffset;ki(n)&&s<=ji&&e.collapse(n,0)}}}var Kh=lt(9315);Rt()(Kh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Fp extends(ne()){constructor(t,e){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=t,this.selection=e,this.set("isFocused",!1),this.set("isSelecting",!1),it.isBlink&&!it.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t)throw new W("view-renderer-unknown-type",this);this.markedChildren.add(e)}}}render(){if(this.isComposing&&!it.isAndroid)return;let t=null;const e=!(it.isBlink&&!it.isAndroid&&this.isSelecting);for(const n of this.markedChildren)this._updateChildrenMappings(n);e?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(t=this.domConverter.domPositionToView(this._inlineFiller),t&&t.parent.is("$text")&&(t=Bt._createBefore(t.parent)));for(const n of this.markedAttributes)this._updateAttrs(n);for(const n of this.markedChildren)this._updateChildren(n,{inlineFillerPosition:t});for(const n of this.markedTexts)!this.markedChildren.has(n.parent)&&this.domConverter.mapViewToDom(n.parent)&&this._updateText(n,{inlineFillerPosition:t});if(e)if(t){const n=this.domConverter.viewPositionToDom(t),s=n.parent.ownerDocument;this._inlineFiller=ki(n.parent)?n.parent:mc(s,n.parent,n.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.childNodes),s=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),l=this._diffNodeLists(n,s),h=this._findUpdateActions(l,n,s,zp);if(-1!==h.indexOf("update")){const p={equal:0,insert:0,delete:0};for(const b of h)if("update"===b){const A=p.equal+p.insert,C=p.equal+p.delete,E=t.getChild(A);!E||E.is("uiElement")||E.is("rawElement")||this._updateElementMappings(E,n[C]),Ps(s[A]),p.equal++}else p[b]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("$text")?Bt._createBefore(t.parent):t}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&Le(e.parent)&&ki(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!ki(t))throw new W("view-renderer-filler-was-lost",this);Rr(t)?t.remove():t.data=t.data.substr(ji),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root)||!e.is("element")||!function(h){if("false"==h.getAttribute("contenteditable"))return!1;const p=h.findAncestor(b=>b.hasAttribute("contenteditable"));return!p||"true"==p.getAttribute("contenteditable")}(e)||n===e.getFillerOffset())return!1;const s=t.nodeBefore,l=t.nodeAfter;return!(s instanceof ke||l instanceof ke||it.isAndroid&&(s||l))}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t);let s=this.domConverter.viewToDom(t).data;const l=e.inlineFillerPosition;l&&l.parent==t.parent&&l.offset==t.index&&(s=zr+s),Jh(n,s)}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.attributes).map(l=>l.name),s=t.getAttributeKeys();for(const l of s)this.domConverter.setDomElementAttribute(e,l,t.getAttribute(l),t);for(const l of n)t.hasAttribute(l)||this.domConverter.removeDomElementAttribute(e,l)}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;if(it.isAndroid){let E=null;for(const P of Array.from(n.childNodes)){if(E&&Le(E)&&Le(P)){n.normalize();break}E=P}}const s=e.inlineFillerPosition,l=n.childNodes,h=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));s&&s.parent===t&&mc(n.ownerDocument,h,s.offset);const p=this._diffNodeLists(l,h),b=this._findUpdateActions(p,l,h,Rp);let A=0;const C=new Set;for(const E of b)"delete"===E?(C.add(l[A]),Ps(l[A])):"equal"!==E&&"update"!==E||A++;A=0;for(const E of b)"insert"===E?(ll(n,A,h[A]),A++):"update"===E?(Jh(l[A],h[A].data),A++):"equal"===E&&(this._markDescendantTextToSync(this.domConverter.domToView(h[A])),A++);for(const E of C)E.parentNode||this.domConverter.unbindDomElement(E)}_diffNodeLists(t,e){return pt(t=function(n,s){const l=Array.from(n);return 0==l.length||!s||l[l.length-1]==s&&l.pop(),l}(t,this._fakeSelectionContainer),e,Zp.bind(null,this.domConverter))}_findUpdateActions(t,e,n,s){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;let l=[],h=[],p=[];const b={equal:0,insert:0,delete:0};for(const A of t)"insert"===A?p.push(n[b.equal+b.insert]):"delete"===A?h.push(e[b.equal+b.delete]):(l=l.concat(pt(h,p,s).map(C=>"equal"===C?"update":C)),l.push("equal"),h=[],p=[]),b[A]++;return l.concat(pt(h,p,s).map(A=>"equal"===A?"update":A))}_markDescendantTextToSync(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}_updateSelection(){if(it.isBlink&&!it.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(t)):this.isComposing&&it.isAndroid||this._updateDomSelection(t))}_updateFakeSelection(t){const e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(h){const p=h.createElement("div");return p.className="ck-fake-selection-container",Object.assign(p.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),p.textContent="\xa0",p}(e));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(t))return;n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||"\xa0";const s=e.getSelection(),l=e.createRange();s.removeAllRanges(),l.selectNodeContents(n),s.addRange(l)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),s=this.domConverter.viewPositionToDom(this.selection.focus);e.setBaseAndExtent(n.parent,n.offset,s.parent,s.offset),it.isGecko&&function(l,h){const p=l.parent;if(p.nodeType!=Node.ELEMENT_NODE||l.offset!=p.childNodes.length-1)return;const b=p.childNodes[l.offset];b&&"BR"==b.tagName&&h.addRange(h.getRangeAt(0))}(s,e)}_domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;const e=t&&this.domConverter.domSelectionToView(t);return!(e&&this.selection.isEqual(e)||!this.selection.isCollapsed&&this.selection.isSimilar(e))}_fakeSelectionNeedsUpdate(t){const e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const t of this.domDocuments){const e=t.getSelection();if(e.rangeCount){const n=t.activeElement,s=this.domConverter.mapDomToView(n);n&&s&&e.removeAllRanges()}}}_removeFakeSelection(){const t=this._fakeSelectionContainer;t&&t.remove()}_updateFocus(){if(this.isFocused){const t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}function mc(r,t,e){const n=t instanceof Array?t:t.childNodes,s=n[e];if(Le(s))return s.data=zr+s.data,s;{const l=r.createTextNode(zr);return Array.isArray(t)?n.splice(e,0,l):ll(t,e,l),l}}function zp(r,t){return cn(r)&&cn(t)&&!Le(r)&&!Le(t)&&!Zo(r)&&!Zo(t)&&r.tagName.toLowerCase()===t.tagName.toLowerCase()}function Rp(r,t){return cn(r)&&cn(t)&&Le(r)&&Le(t)}function Zp(r,t,e){return t===e||(Le(t)&&Le(e)?t.data===e.data:!(!r.isBlockFiller(t)||!r.isBlockFiller(e)))}function Jh(r,t){const e=r.data;if(e==t)return;const n=Q(e,t);for(const s of n)"insert"===s.type?r.insertData(s.index,s.values.join("")):r.deleteData(s.index,s.howMany)}const Up=Qh(Yt.document),jp=Gh(Yt.document),$h=Wh(Yt.document),Zr="data-ck-unsafe-attribute-",fc="data-ck-unsafe-element";class ha{constructor(t,{blockFillerMode:e,renderingMode:n="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new Ti,this._inlineObjectElementMatcher=new Ti,this._elementsWithTemporaryCustomProperties=new Set,this.document=t,this.renderingMode=n,this.blockFillerMode=e||("editing"===n?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Yt.document:Yt.document.implementation.createHTMLDocument("")}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new Ii(e))}fakeSelectionToView(t){return this._fakeSelectionMapping.get(t)}bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}unbindDomElement(t){const e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(const n of Array.from(t.children))this.unbindDomElement(n)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}shouldRenderAttribute(t,e,n){return"data"===this.renderingMode||!(t=t.toLowerCase()).startsWith("on")&&("srcdoc"!==t||!e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===n&&("src"===t||"srcset"===t)||"source"===n&&"srcset"===t||!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(t,e){if("data"===this.renderingMode)return void(t.innerHTML=e);const n=(new DOMParser).parseFromString(e,"text/html"),s=n.createDocumentFragment(),l=n.body.childNodes;for(;l.length>0;)s.appendChild(l[0]);const h=n.createTreeWalker(s,NodeFilter.SHOW_ELEMENT),p=[];let b;for(;b=h.nextNode();)p.push(b);for(const A of p){for(const E of A.getAttributeNames())this.setDomElementAttribute(A,E,A.getAttribute(E));const C=A.tagName.toLowerCase();this._shouldRenameElement(C)&&(kc(C),A.replaceWith(this._createReplacementDomElement(C,A)))}for(;t.firstChild;)t.firstChild.remove();t.append(s)}viewToDom(t,e={}){if(t.is("$text")){const n=this._processDataFromViewText(t);return this._domDocument.createTextNode(n)}{const n=t;if(this.mapViewToDom(n)){if(!n.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(n);this._elementsWithTemporaryCustomProperties.add(n)}let s;if(n.is("documentFragment"))s=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(s,n);else{if(n.is("uiElement"))return s="$comment"===n.name?this._domDocument.createComment(n.getCustomProperty("$rawContent")):n.render(this._domDocument,this),e.bind&&this.bindElements(s,n),s;this._shouldRenameElement(n.name)?(kc(n.name),s=this._createReplacementDomElement(n.name)):s=n.hasAttribute("xmlns")?this._domDocument.createElementNS(n.getAttribute("xmlns"),n.name):this._domDocument.createElement(n.name),n.is("rawElement")&&n.render(s,this),e.bind&&this.bindElements(s,n);for(const l of n.getAttributeKeys())this.setDomElementAttribute(s,l,n.getAttribute(l),n)}if(!1!==e.withChildren)for(const l of this.viewChildrenToDom(n,e))s.appendChild(l);return s}}setDomElementAttribute(t,e,n,s){const l=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||s&&s.shouldRenderUnsafeAttribute(e);l||kt("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),function(h){try{Yt.document.createAttribute(h)}catch{return!1}return!0}(e)?(t.hasAttribute(e)&&!l?t.removeAttribute(e):t.hasAttribute(Zr+e)&&l&&t.removeAttribute(Zr+e),t.setAttribute(l?e:Zr+e,n)):kt("domconverter-invalid-attribute-detected",{domElement:t,key:e,value:n})}removeDomElementAttribute(t,e){e!=fc&&(t.removeAttribute(e),t.removeAttribute(Zr+e))}*viewChildrenToDom(t,e={}){const n=t.getFillerOffset&&t.getFillerOffset();let s=0;for(const l of t.getChildren()){n===s&&(yield this._getBlockFiller());const h=l.is("element")&&!!l.getCustomProperty("dataPipeline:transparentRendering")&&!Oe(l.getAttributes());h&&"data"==this.renderingMode?yield*this.viewChildrenToDom(l,e):(h&&kt("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:l}),yield this.viewToDom(l,e)),s++}n===s&&(yield this._getBlockFiller())}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),s=this._domDocument.createRange();return s.setStart(e.parent,e.offset),s.setEnd(n.parent,n.offset),s}viewPositionToDom(t){const e=t.parent;if(e.is("$text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let s=t.offset;return ki(n)&&(s+=ji),{parent:n,offset:s}}{let n,s,l;if(0===t.offset){if(n=this.mapViewToDom(e),!n)return null;l=n.childNodes[0]}else{const h=t.nodeBefore;if(s=h.is("$text")?this.findCorrespondingDomText(h):this.mapViewToDom(h),!s)return null;n=s.parentNode,l=s.nextSibling}return Le(l)&&ki(l)?{parent:l,offset:ji}:{parent:n,offset:s?_r(s)+1:0}}}domToView(t,e={}){const n=[],s=this._domToView(t,e,n),l=s.next().value;return l?(s.next(),this._processDomInlineNodes(null,n,e),l.is("$text")&&0==l.data.length?null:l):null}*domChildrenToView(t,e={},n=[]){for(let s=0;s{const{scrollLeft:p,scrollTop:b}=h;l.push([p,b])}),e.focus(),bc(e,h=>{const[p,b]=l.shift();h.scrollLeft=p,h.scrollTop=b}),Yt.window.scrollTo(n,s)}}_clearDomSelection(){const t=this.mapViewToDom(this.document.selection.editableElement);if(!t)return;const e=t.ownerDocument.defaultView.getSelection(),n=this.domSelectionToView(e);n&&n.rangeCount>0&&e.removeAllRanges()}isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE}isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(t){return"br"==this.blockFillerMode?t.isEqualNode(Up):!("BR"!==t.tagName||!vc(t,this.blockElements)||1!==t.parentNode.childNodes.length)||t.isEqualNode($h)||(n=this.blockElements,(e=t).isEqualNode(jp)&&vc(e,n)&&1===e.parentNode.childNodes.length);var e,n}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=this._domDocument.createRange();try{e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset)}catch{return!1}const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=function(n){const s=[];let l=n;for(;l&&l.nodeType!=Node.DOCUMENT_NODE;)s.unshift(l),l=l.parentNode;return s}(t);for(e.pop();e.length;){const n=e.pop(),s=this._domToViewMapping.get(n);if(s&&(s.is("uiElement")||s.is("rawElement")))return s}return null}isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}registerRawContentMatcher(t){this._rawContentElementMatcher.add(t)}registerInlineObjectMatcher(t){this._inlineObjectElementMatcher.add(t)}_clearTemporaryCustomProperties(){for(const t of this._elementsWithTemporaryCustomProperties)t._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Gh(this._domDocument);case"markedNbsp":return Wh(this._domDocument);case"br":return Qh(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if(Le(t)&&ki(t)&&e0?e[l-1]:null,C=l+1this.preElements.includes(n.name)))return e;if(" "==e.charAt(0)){const n=this._getTouchingInlineViewNode(t,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(e="\xa0"+e.substr(1))}if(" "==e.charAt(e.length-1)){const n=this._getTouchingInlineViewNode(t,!0),s=n&&n.is("$textProxy")&&" "==n.data.charAt(0);" "!=e.charAt(e.length-2)&&n&&!s||(e=e.substr(0,e.length-1)+"\xa0")}return e.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(t){if(t.getAncestors().some(n=>this.preElements.includes(n.name)))return!1;const e=this._processDataFromViewText(t);return" "==e.charAt(e.length-1)}_getTouchingInlineViewNode(t,e){const n=new nn({startPosition:e?Bt._createAfter(t):Bt._createBefore(t),direction:e?"forward":"backward"});for(const s of n){if(s.item.is("element","br"))return null;if(this._isInlineObjectElement(s.item))return s.item;if(s.item.is("containerElement"))return null;if(s.item.is("$textProxy"))return s.item}return null}_isBlockDomElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}_isBlockViewElement(t){return t.is("element")&&this.blockElements.includes(t.name)}_isInlineObjectElement(t){return!!t.is("element")&&("br"==t.name||this.inlineObjectElements.includes(t.name)||!!this._inlineObjectElementMatcher.match(t))}_createViewElement(t,e){if(Zo(t))return new Br(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new hi(this.document,n)}_isViewElementWithRawContent(t,e){return!1!==e.withChildren&&t.is("element")&&!!this._rawContentElementMatcher.match(t)}_shouldRenameElement(t){const e=t.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(e)}_createReplacementDomElement(t,e){const n=this._domDocument.createElement("span");if(n.setAttribute(fc,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const s of e.getAttributeNames())n.setAttribute(s,e.getAttribute(s))}return n}}function tu(r,t){return r.getAncestors().some(e=>e.is("element")&&t.includes(e.name))}function bc(r,t){let e=r;for(;e;)t(e),e=e.parentElement}function vc(r,t){const e=r.parentNode;return!!e&&!!e.tagName&&t.includes(e.tagName.toLowerCase())}function kc(r){"script"===r&&kt("domconverter-unsafe-script-element-detected"),"style"===r&&kt("domconverter-unsafe-style-element-detected")}class Vi extends(bi()){constructor(t){super(),this._isEnabled=!1,this.view=t,this.document=t.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const On=oc(function(r,t){De(t,oo(t),r)});class bo{constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,On(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class un extends Vi{constructor(){super(...arguments),this.useCapture=!1}observe(t){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(e=>{this.listenTo(t,e,(n,s)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(s.target)&&this.onDomEvent(s)},{useCapture:this.useCapture})})}stopObserving(t){this.stopListening(t)}fire(t,e,n){this.isEnabled&&this.document.fire(t,new bo(this.view,e,n))}}class eu extends un{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(t){this.fire(t.type,t,{keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return so(this)}})}}const Ur=function(){return li.Date.now()};var _c=/\s/,wc=/^\s+/,ou=/^[-+]0x[0-9a-f]+$/i,ru=/^0b[01]+$/i,su=/^0o[0-7]+$/i,au=parseInt;const Ac=function(r){if("number"==typeof r)return r;if(Sr(r))return NaN;if(te(r)){var t="function"==typeof r.valueOf?r.valueOf():r;r=te(t)?t+"":t}if("string"!=typeof r)return 0===r?r:+r;r=function(r){return r&&r.slice(0,function(r){for(var t=r.length;t--&&_c.test(r.charAt(t)););return t}(r)+1).replace(wc,"")}(r);var e=ru.test(r);return e||su.test(r)?au(r.slice(2),e?2:8):ou.test(r)?NaN:+r};var lu=Math.max,cu=Math.min;const Go=function(r,t,e){var n,s,l,h,p,b,A=0,C=!1,E=!1,P=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function F(ft){var At=n,Ft=s;return n=s=void 0,A=ft,h=r.apply(Ft,At)}function j(ft){var At=ft-b;return void 0===b||At>=t||At<0||E&&ft-A>=l}function Y(){var At,Ft,ft=Ur();if(j(ft))return $(ft);p=setTimeout(Y,(Ft=t-((At=ft)-b),E?cu(Ft,l-(At-A)):Ft))}function $(ft){return p=void 0,P&&n?F(ft):(n=s=void 0,h)}function st(){var Ft,ft=Ur(),At=j(ft);if(n=arguments,s=this,b=ft,At){if(void 0===p)return A=Ft=b,p=setTimeout(Y,t),C?F(Ft):h;if(E)return clearTimeout(p),p=setTimeout(Y,t),F(b)}return void 0===p&&(p=setTimeout(Y,t)),h}return t=Ac(t)||0,te(e)&&(C=!!e.leading,l=(E="maxWait"in e)?lu(Ac(e.maxWait)||0,t):l,P="trailing"in e?!!e.trailing:P),st.cancel=function(){void 0!==p&&clearTimeout(p),A=0,n=b=s=p=void 0},st.flush=function(){return void 0===p?h:$(Ur())},st};class du extends Vi{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=Go(e=>{this.document.fire("selectionChangeDone",e)},200)}observe(){const t=this.document;t.on("arrowKey",(e,n)=>{t.selection.isFake&&this.isEnabled&&n.preventDefault()},{context:"$capture"}),t.on("arrowKey",(e,n)=>{t.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(t){const e=this.document.selection,n=new Ii(e.getRanges(),{backward:e.isBackward,fake:!1});t!=se.arrowleft&&t!=se.arrowup||n.setTo(n.getFirstPosition()),t!=se.arrowright&&t!=se.arrowdown||n.setTo(n.getLastPosition());const s={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",s),this._fireSelectionChangeDoneDebounced(s)}}function jr(r){var t=-1,e=null==r?0:r.length;for(this.__data__=new Et;++tp))return!1;var A=l.get(r),C=l.get(t);if(A&&C)return A==t&&C==r;var E=-1,P=!0,F=2&e?new w:void 0;for(l.set(r,t),l.set(t,r);++E{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),t.change(()=>{})},50)}),e.on("blur",(n,s)=>{const l=e.selection.editableElement;null!==l&&l!==s.target||(e.isFocused=!1,this._isFocusChanging=!1,t.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(t){this.fire(t.type,t)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class gu extends Vi{constructor(t){super(t),this.mutationObserver=t.getObserver(xc),this.focusObserver=t.getObserver(Vr),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Go(e=>{this.document.fire("selectionChangeDone",e)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Go(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,e),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(t,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(t,"keydown",n,{priority:"highest",useCapture:!0}),this.listenTo(t,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(e)||(this.listenTo(e,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(e,"selectionchange",(s,l)=>{this.document.isComposing&&!it.isAndroid||(this._handleSelectionChange(l,e),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(e))}stopObserving(t){this.stopListening(t)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(t,e){if(!this.isEnabled)return;const n=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const s=this.domConverter.domSelectionToView(n);if(0!=s.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(s)||!this.domConverter.isDomSelectionCorrect(n))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(s))this.view.forceRender();else{const l={oldSelection:this.selection,newSelection:s,domSelection:n};this.document.fire("selectionChange",l),this._fireSelectionChangeDoneDebounced(l)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class mu extends un{constructor(t){super(t),this.domEventType=["compositionstart","compositionupdate","compositionend"];const e=this.document;e.on("compositionstart",()=>{e.isComposing=!0},{priority:"low"}),e.on("compositionend",()=>{e.isComposing=!1},{priority:"low"})}onDomEvent(t){this.fire(t.type,t,{data:t.data})}}class Cc{constructor(t,e={}){this._files=e.cacheFiles?yc(t):null,this._native=t}get files(){return this._files||(this._files=yc(this._native)),this._files}get types(){return this._native.types}getData(t){return this._native.getData(t)}setData(t,e){this._native.setData(t,e)}set effectAllowed(t){this._native.effectAllowed=t}get effectAllowed(){return this._native.effectAllowed}set dropEffect(t){this._native.dropEffect=t}get dropEffect(){return this._native.dropEffect}setDragImage(t,e,n){this._native.setDragImage(t,e,n)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function yc(r){const t=Array.from(r.files||[]),e=Array.from(r.items||[]);return t.length?t:e.filter(n=>"file"===n.kind).map(n=>n.getAsFile())}class fu extends un{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(t){const e=t.getTargetRanges(),n=this.view,s=n.document;let l=null,h=null,p=[];if(t.dataTransfer&&(l=new Cc(t.dataTransfer)),null!==t.data?h=t.data:l&&(h=l.getData("text/plain")),s.selection.isFake)p=Array.from(s.selection.getRanges());else if(e.length)p=e.map(b=>{const A=n.domConverter.domPositionToView(b.startContainer,b.startOffset),C=n.domConverter.domPositionToView(b.endContainer,b.endOffset);return A?n.createRange(A,C):C?n.createRange(C):void 0}).filter(b=>!!b);else if(it.isAndroid){const b=t.target.ownerDocument.defaultView.getSelection();p=Array.from(n.domConverter.domSelectionToView(b).getRanges())}if(it.isAndroid&&"insertCompositionText"==t.inputType&&h&&h.endsWith("\n"))this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(p[0].end)]});else if("insertText"==t.inputType&&h&&h.includes("\n")){const b=h.split(/\n{1,2}/g);let A=p;for(let C=0;C{if(this.isEnabled&&((s=n.keyCode)==se.arrowright||s==se.arrowleft||s==se.arrowup||s==se.arrowdown)){const l=new go(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(l,n),l.stop.called&&e.stop()}var s})}observe(){}stopObserving(){}}class vu extends Vi{constructor(t){super(t);const e=this.document;e.on("keydown",(n,s)=>{if(!this.isEnabled||s.keyCode!=se.tab||s.ctrlKey)return;const l=new go(e,"tab",e.selection.getFirstRange());e.fire(l,s),l.stop.called&&n.stop()})}observe(){}stopObserving(){}}const pn=function(r){return fi(r,5)};class ku extends(ne()){constructor(t){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new Or(t),this.domConverter=new ha(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Fp(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new qh(this.document),this.addObserver(xc),this.addObserver(Vr),this.addObserver(gu),this.addObserver(eu),this.addObserver(du),this.addObserver(mu),this.addObserver(bu),this.addObserver(fu),this.addObserver(vu),this.document.on("arrowKey",Op,{priority:"low"}),function jh(r){r.document.on("arrowKey",(t,e)=>function(n,s,l){if(s.keyCode==se.arrowright){const h=s.domTarget.ownerDocument.defaultView.getSelection(),p=1==h.rangeCount&&h.getRangeAt(0).collapsed;if(p||s.shiftKey){const C=l.domPositionToView(h.focusNode,h.focusOffset);if(null===C)return;let E=!1;const P=C.getLastMatchingPosition(F=>(F.item.is("uiElement")&&(E=!0),!(!F.item.is("uiElement")&&!F.item.is("attributeElement"))));if(E){const F=l.viewPositionToDom(P);p?h.collapse(F.parent,F.offset):h.extend(F.parent,F.offset)}}}}(0,e,r.domConverter),{priority:"low"})}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),it.isiOS&&this.listenTo(this.document,"blur",(e,n)=>{this.domConverter.mapDomToView(n.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const s={};for(const{name:h,value:p}of Array.from(t.attributes))s[h]=p,"class"===h?this._writer.addClass(p.split(" "),n):this._writer.setAttribute(h,p,n);this._initialDomRootAttributes.set(t,s);const l=()=>{this._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};l(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",(h,p)=>this._renderer.markToSync("children",p)),n.on("change:attributes",(h,p)=>this._renderer.markToSync("attributes",p)),n.on("change:text",(h,p)=>this._renderer.markToSync("text",p)),n.on("change:isReadOnly",()=>this.change(l)),n.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const h of this._observers.values())h.observe(t,e)}detachDomRoot(t){const e=this.domRoots.get(t);Array.from(e.attributes).forEach(({name:s})=>e.removeAttribute(s));const n=this._initialDomRootAttributes.get(e);for(const s in n)e.setAttribute(s,n[s]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e);for(const s of this._observers.values())s.stopObserving(e)}getDomRoot(t="main"){return this.domRoots.get(t)}addObserver(t){let e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);for(const[n,s]of this.domRoots)e.observe(s,n);return e.enable(),e}getObserver(t){return this._observers.get(t)}disableObservers(){for(const t of this._observers.values())t.disable()}enableObservers(){for(const t of this._observers.values())t.enable()}scrollToTheSelection({alignToTop:t,forceScroll:e,viewportOffset:n=20,ancestorOffset:s=20}={}){const l=this.document.selection.getFirstRange();if(!l)return;const h=pn({alignToTop:t,forceScroll:e,viewportOffset:n,ancestorOffset:s});"number"==typeof n&&(n={top:n,bottom:n,left:n,right:n});const p={target:this.domConverter.viewRangeToDom(l),viewportOffset:n,ancestorOffset:s,alignToTop:t,forceScroll:e};this.fire("scrollToTheSelection",p,h),function({target:b,viewportOffset:A=0,ancestorOffset:C=0,alignToTop:E,forceScroll:P}){const F=jo(b);let j=F,Y=null;for(A="number"==typeof($=A)?{top:$,bottom:$,left:$,right:$}:$;j;){let $;$=Nd(j==F?b:Y),Pd({parent:$,getRect:()=>wr(b,j),alignToTop:E,ancestorOffset:C,forceScroll:P});const st=wr(b,j);if(ul({window:j,rect:st,viewportOffset:A,alignToTop:E,forceScroll:P}),j.parent!=j){if(Y=j.frameElement,j=j.parent,!Y)return}else j=null}var $}(p)}focus(){if(!this.document.isFocused){const t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new W("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;const e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(e){W.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(Vr).flush(),this.change(()=>{})}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return Bt._createAt(t,e)}createPositionAfter(t){return Bt._createAfter(t)}createPositionBefore(t){return Bt._createBefore(t)}createRange(t,e){return new Gt(t,e)}createRangeOn(t){return Gt._createOn(t)}createRangeIn(t){return Gt._createIn(t)}createSelection(...t){return new Ii(...t)}_disableRendering(t){this._renderingDisabled=t,0==t&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class gn{is(){throw new Error("is() method is abstract")}}class Bn extends gn{constructor(t){super(),this.parent=null,this._attrs=ri(t)}get document(){return null}get index(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new W("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new W("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),s=t.getAncestors(e);let l=0;for(;n[l]==s[l]&&n[l];)l++;return 0===l?null:n[l-1]}isBefore(t){if(this==t||this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),s=qe(e,n);switch(s){case"prefix":return!0;case"extension":return!1;default:return e[s](e[n[0]]=n[1],e),{})),t}_clone(t){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=ri(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}Bn.prototype.is=function(r){return"node"===r||"model:node"===r};class Wo{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((t,e)=>t+e.offsetSize,0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return-1==e?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce((n,s)=>n+s.offsetSize,0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new W("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&t1e4)return n.slice(0,l).concat(s).concat(n.slice(l+0,n.length));{const p=Array.from(n);return p.splice(l,0,...s),p}}(this._nodes,Array.from(e),t)}_removeNodes(t,e=1){return this._nodes.splice(t,e)}toJSON(){return this._nodes.map(t=>t.toJSON())}}class _e extends Bn{constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new _e(this.data,this.getAttributes())}static fromJSON(t){return new _e(t.data,t.attributes)}}_e.prototype.is=function(r){return"$text"===r||"model:$text"===r||"text"===r||"model:text"===r||"node"===r||"model:node"===r};class Mi extends gn{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.offsetSize)throw new W("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new W("model-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}Mi.prototype.is=function(r){return"$textProxy"===r||"model:$textProxy"===r||"textProxy"===r||"model:textProxy"===r};class me extends Bn{constructor(t,e,n){super(e),this._children=new Wo,this.name=t,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map(n=>n._clone(!0)):void 0;return new me(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n="string"==typeof(s=e)?[new _e(s)]:(ti(s)||(s=[s]),Array.from(s).map(l=>"string"==typeof l?new _e(l):l instanceof Mi?new _e(l.data,l.getAttributes()):l));var s;for(const s of n)null!==s.parent&&s._remove(),s.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const s of n)s.parent=null;return n}static fromJSON(t){let e;if(t.children){e=[];for(const n of t.children)e.push(n.name?me.fromJSON(n):_e.fromJSON(n))}return new me(t.name,t.attributes,e)}}me.prototype.is=function(r,t){return t?t===this.name&&("element"===r||"model:element"===r):"element"===r||"model:element"===r||"node"===r||"model:node"===r};class Li{constructor(t){if(!t||!t.boundaries&&!t.startPosition)throw new W("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new W("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,this._position=t.startPosition?t.startPosition.clone():Dt._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n,s,l;do{s=this.position,l=this._visitedParent,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this._position=s,this._visitedParent=l)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const s=Qo(e,n),l=s||Vp(e,n,s);if(l instanceof me){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e.path.push(0),this._visitedParent=l;return this._position=e,Fn("elementStart",l,t,e,1)}if(l instanceof _e){let h;if(this.singleCharacters)h=1;else{let A=l.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offsetC&&(C=this.boundaries.start.offset),p=e.offset-C}const A=new Mi(h,e.offset-h.startOffset-p,p);return e.offset-=p,this._position=e,Fn("text",A,t,e,p)}return e.path.pop(),this._position=e,this._visitedParent=n.parent,Fn("elementStart",n,t,e,1)}}function Fn(r,t,e,n,s){return{done:!1,value:{type:r,item:t,previousPosition:e,nextPosition:n,length:s}}}class Dt extends gn{constructor(t,e,n="toNone"){if(super(),!t.is("element")&&!t.is("documentFragment"))throw new W("model-position-root-invalid",t);if(!(e instanceof Array)||0===e.length)throw new W("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;e1)return!1;if(1===s)return Yp(t,this,n);if(-1===s)return Yp(this,t,n)}return this.path.length===t.path.length||_u(this.path.length>t.path.length?this.path:t.path,e)}hasSameParentAs(t){return this.root===t.root&&"same"==qe(this.getParentPath(),t.getParentPath())}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=Dt._createAt(this)}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange;let n;return e.containsPosition(this)||e.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?Dt._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=Dt._createAt(this);if(this.root!=t.root)return n;if("same"==qe(t.getParentPath(),this.getParentPath())){if(t.offsetthis.offset)return null;n.offset-=e}}else if("prefix"==qe(t.getParentPath(),this.getParentPath())){const s=t.path.length-1;if(t.offset<=this.path[s]){if(t.offset+e>this.path[s])return null;n.path[s]-=e}}return n}_getTransformedByInsertion(t,e){const n=Dt._createAt(this);if(this.root!=t.root)return n;if("same"==qe(t.getParentPath(),this.getParentPath()))(t.offset=s;){if(n.path[h]+p!==l.maxOffset)return!1;p=1,h--,l=l.parent}return!0}(r,e+1)}function _u(r,t){for(;te+1;){const l=s.maxOffset-n.offset;0!==l&&t.push(new wt(n,n.getShiftedBy(l))),n.path=n.path.slice(0,-1),n.offset++,s=s.parent}for(;n.path.length<=this.end.path.length;){const l=this.end.path[n.path.length-1],h=l-n.offset;0!==h&&t.push(new wt(n,n.getShiftedBy(h))),n.offset=l,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new Li(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Li(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new Li(t);yield e.position;for(const n of e)yield n.nextPosition}getTransformedByOperation(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new wt(this.start,this.end)]}getTransformedByOperations(t){const e=[new wt(this.start,this.end)];for(const n of t)for(let s=0;s0?new this(n,s):new this(s,n)}static _createIn(t){return new this(Dt._createAt(t,0),Dt._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(Dt._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(0===t.length)throw new W("range-create-from-ranges-empty-array",null);if(1==t.length)return t[0].clone();const e=t[0];t.sort((l,h)=>l.start.isAfter(h.start)?1:-1);const n=t.indexOf(e),s=new this(e.start,e.end);if(n>0)for(let l=n-1;t[l].end.isEqual(s.start);l++)s.start=Dt._createAt(t[l].start);for(let l=n+1;l{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);if(!n)throw new W("mapping-model-position-view-parent-not-found",this,{modelPosition:e.modelPosition});e.viewPosition=this.findPositionIn(n,e.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(t,e)=>{if(e.modelPosition)return;const n=this.findMappedViewAncestor(e.viewPosition),s=this._viewToModelMapping.get(n),l=this._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=Dt._createAt(s,l)},{priority:"low"})}bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}unbindViewElement(t,e={}){const n=this.toModelElement(t);if(this._elementToMarkerNames.has(t))for(const s of this._elementToMarkerNames.get(t))this._unboundMarkerNames.add(s);e.defer?this._deferredBindingRemovals.set(t,t.root):(this._viewToModelMapping.delete(t),this._modelToViewMapping.get(n)==t&&this._modelToViewMapping.delete(n))}unbindModelElement(t){const e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}bindElementToMarker(t,e){const n=this._markerNameToElements.get(e)||new Set;n.add(t);const s=this._elementToMarkerNames.get(t)||new Set;s.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,s)}unbindElementFromMarkerName(t,e){const n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));const s=this._elementToMarkerNames.get(t);s&&(s.delete(e),0==s.size&&this._elementToMarkerNames.delete(t))}flushUnboundMarkerNames(){const t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}flushDeferredBindings(){for(const[t,e]of this._deferredBindingRemovals)t.root==e&&this.unbindViewElement(t);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(t){return this._viewToModelMapping.get(t)}toViewElement(t){return this._modelToViewMapping.get(t)}toModelRange(t){return new wt(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new Gt(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const s of e)if(s.is("attributeElement"))for(const l of s.getElementsWithSameId())n.add(l);else n.add(s);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t)return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t);if(t.is("$text"))return e;let s=0;for(let l=0;l1?t[0]+":"+t[1]:t[0]}var D0=Object.defineProperty,M0=Object.defineProperties,L0=Object.getOwnPropertyDescriptors,Gp=Object.getOwnPropertySymbols,P0=Object.prototype.hasOwnProperty,N0=Object.prototype.propertyIsEnumerable,Wp=(r,t,e)=>t in r?D0(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,wu=(r,t)=>{for(var e in t||(t={}))P0.call(t,e)&&Wp(r,e,t[e]);if(Gp)for(var e of Gp(t))N0.call(t,e)&&Wp(r,e,t[e]);return r},Qp=(r,t)=>M0(r,L0(t));class Xp extends(ie()){constructor(t){super(),this._conversionApi=wu({dispatcher:this},t),this._firedEventsMap=new WeakMap}convertChanges(t,e,n){const s=this._createConversionApi(n,t.getRefreshedItems());for(const h of t.getMarkersToRemove())this._convertMarkerRemove(h.name,h.range,s);const l=this._reduceChanges(t.getChanges());for(const h of l)"insert"===h.type?this._convertInsert(wt._createFromPositionAndShift(h.position,h.length),s):"reinsert"===h.type?this._convertReinsert(wt._createFromPositionAndShift(h.position,h.length),s):"remove"===h.type?this._convertRemove(h.position,h.length,h.name,s):this._convertAttribute(h.range,h.attributeKey,h.attributeOldValue,h.attributeNewValue,s);s.mapper.flushDeferredBindings();for(const h of s.mapper.flushUnboundMarkerNames()){const p=e.get(h).getRange();this._convertMarkerRemove(h,p,s),this._convertMarkerAdd(h,p,s)}for(const h of t.getMarkersToAdd())this._convertMarkerAdd(h.name,h.range,s);s.consumable.verifyAllConsumed("insert")}convert(t,e,n,s={}){const l=this._createConversionApi(n,void 0,s);this._convertInsert(t,l);for(const[h,p]of e)this._convertMarkerAdd(h,p,l);l.consumable.verifyAllConsumed("insert")}convertSelection(t,e,n){const s=this._createConversionApi(n);this.fire("cleanSelection",{selection:t},s);const l=t.getFirstPosition().root;if(!s.mapper.toViewElement(l))return;const h=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this._addConsumablesForSelection(s.consumable,t,h),this.fire("selection",{selection:t},s),t.isCollapsed){for(const p of h)if(s.consumable.test(t,"addMarker:"+p.name)){const b=p.getRange();if(!O0(t.getFirstPosition(),p,s.mapper))continue;this.fire(`addMarker:${p.name}`,{item:t,markerName:p.name,markerRange:b},s)}for(const p of t.getAttributeKeys())if(s.consumable.test(t,"attribute:"+p)){const b={item:t,range:t.getFirstRange(),attributeKey:p,attributeOldValue:null,attributeNewValue:t.getAttribute(p)};this.fire(`attribute:${p}:$text`,b,s)}}}_convertInsert(t,e,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(e.consumable,t);for(const s of Array.from(t.getWalker({shallow:!0})).map(Kp))this._testAndFire("insert",s,e)}_convertRemove(t,e,n,s){this.fire(`remove:${n}`,{position:t,length:e},s)}_convertAttribute(t,e,n,s,l){this._addConsumablesForRange(l.consumable,t,`attribute:${e}`);for(const h of t){const p={item:h.item,range:wt._createFromPositionAndShift(h.previousPosition,h.length),attributeKey:e,attributeOldValue:n,attributeNewValue:s};this._testAndFire(`attribute:${e}`,p,l)}}_convertReinsert(t,e){const n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);for(const s of n.map(Kp))this._testAndFire("insert",Qp(wu({},s),{reconversion:!0}),e)}_convertMarkerAdd(t,e,n){if("$graveyard"==e.root.rootName)return;const s=`addMarker:${t}`;if(n.consumable.add(e,s),this.fire(s,{markerName:t,markerRange:e},n),n.consumable.consume(e,s)){this._addConsumablesForRange(n.consumable,e,s);for(const l of e.getItems()){if(!n.consumable.test(l,s))continue;const h={item:l,range:wt._createOn(l),markerName:t,markerRange:e};this.fire(s,h,n)}}}_convertMarkerRemove(t,e,n){"$graveyard"!=e.root.rootName&&this.fire(`removeMarker:${t}`,{markerName:t,markerRange:e},n)}_reduceChanges(t){const e={changes:t};return this.fire("reduceChanges",e),e.changes}_addConsumablesForInsert(t,e){for(const n of e){const s=n.item;if(null===t.test(s,"insert")){t.add(s,"insert");for(const l of s.getAttributeKeys())t.add(s,"attribute:"+l)}}return t}_addConsumablesForRange(t,e,n){for(const s of e.getItems())t.add(s,n);return t}_addConsumablesForSelection(t,e,n){t.add(e,"selection");for(const s of n)t.add(e,"addMarker:"+s.name);for(const s of e.getAttributeKeys())t.add(e,"attribute:"+s);return t}_testAndFire(t,e,n){const s=`${t}:${(A=e).item.is("element")?A.item.name:"$text"}`,l=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,h=this._firedEventsMap.get(n),p=h.get(l);var A;if(p){if(p.has(s))return;p.add(s)}else h.set(l,new Set([s]));this.fire(s,e,n)}_testAndFireAddAttributes(t,e){const n={item:t,range:wt._createOn(t)};for(const s of n.item.getAttributeKeys())n.attributeKey=s,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(s),this._testAndFire(`attribute:${s}`,n,e)}_createConversionApi(t,e=new Set,n={}){const s=Qp(wu({},this._conversionApi),{consumable:new I0,writer:t,options:n,convertItem:l=>this._convertInsert(wt._createOn(l),s),convertChildren:l=>this._convertInsert(wt._createIn(l),s,{doNotAddConsumables:!0}),convertAttributes:l=>this._testAndFireAddAttributes(l,s),canReuseView:l=>!e.has(s.mapper.toModelElement(l))});return this._firedEventsMap.set(s,new Map),s}}function O0(r,t,e){const n=t.getRange(),s=Array.from(r.getAncestors());return s.shift(),s.reverse(),!s.some(l=>{if(n.containsItem(l))return!!e.toViewElement(l).getCustomProperty("addHighlight")})}function Kp(r){return{item:r.item,range:wt._createFromPositionAndShift(r.previousPosition,r.length)}}class Pi extends(ie(gn)){constructor(...t){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],t.length&&this.setTo(...t)}get anchor(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}get focus(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const s of t._ranges)if(e.isEqual(s)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new wt(t.start,t.end)}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?new wt(t.start,t.end):null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?new wt(t.start,t.end):null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}setTo(...t){let[e,n,s]=t;if("object"==typeof n&&(s=n,n=void 0),null===e)this._setRanges([]);else if(e instanceof Pi)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof wt)this._setRanges([e],!!s&&!!s.backward);else if(e instanceof Dt)this._setRanges([new wt(e)]);else if(e instanceof Bn){const l=!!s&&!!s.backward;let h;if("in"==n)h=wt._createIn(e);else if("on"==n)h=wt._createOn(e);else{if(void 0===n)throw new W("model-selection-setto-required-second-parameter",[this,e]);h=new wt(Dt._createAt(e,n))}this._setRanges([h],l)}else{if(!ti(e))throw new W("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,s&&!!s.backward)}}_setRanges(t,e=!1){const n=Array.from(t),s=n.some(l=>{if(!(l instanceof wt))throw new W("model-selection-set-ranges-not-range",[this,t]);return this._ranges.every(h=>!h.isEqual(l))});(n.length!==this._ranges.length||s)&&(this._replaceAllRanges(n),this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0}))}setFocus(t,e){if(null===this.anchor)throw new W("model-selection-setfocus-no-ranges",[this,t]);const n=Dt._createAt(t,e);if("same"==n.compareWith(this.focus))return;const s=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(s)?(this._pushRange(new wt(n,s)),this._lastRangeBackward=!0):(this._pushRange(new wt(s,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(t){return this._attrs.has(t)}removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const t=new WeakSet;for(const e of this.getRanges()){const n=$p(e.start,t);F0(n,e)&&(yield n);for(const l of e.getWalker()){const h=l.item;"elementEnd"==l.type&&B0(h,t,e)&&(yield h)}const s=$p(e.end,t);z0(s,e)&&(yield s)}}containsEntireContent(t=this.anchor.root){const e=Dt._createAt(t,0),n=Dt._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new wt(t.start,t.end))}_checkRange(t){for(let e=0;e0;)this._popRange()}_popRange(){this._ranges.pop()}}function Jp(r,t){return!t.has(r)&&(t.add(r),r.root.document.model.schema.isBlock(r)&&!!r.parent)}function B0(r,t,e){return Jp(r,t)&&Au(r,e)}function $p(r,t){const e=r.parent.root.document.model.schema,n=r.parent.getAncestors({parentFirst:!0,includeSelf:!0});let s=!1;const l=n.find(h=>!s&&(s=e.isLimit(h),!s&&Jp(h,t)));return n.forEach(h=>t.add(h)),l}function Au(r,t){const e=function(n){const s=n.root.document.model.schema;let l=n.parent;for(;l;){if(s.isBlock(l))return l;l=l.parent}}(r);return!e||!t.containsRange(wt._createOn(e),!0)}function F0(r,t){return!!r&&(!(!t.isCollapsed&&!r.isEmpty)||!t.start.isTouching(Dt._createAt(r,r.maxOffset))&&Au(r,t))}function z0(r,t){return!!r&&(!(!t.isCollapsed&&!r.isEmpty)||!t.end.isTouching(Dt._createAt(r,0))&&Au(r,t))}Pi.prototype.is=function(r){return"selection"===r||"model:selection"===r};class Ni extends(ie(wt)){constructor(t,e){super(t,e),R0.call(this)}detach(){this.stopListening()}toRange(){return new wt(this.start,this.end)}static fromRange(t){return new Ni(t.start,t.end)}}function R0(){this.listenTo(this.root.document.model,"applyOperation",(r,t)=>{const e=t[0];e.isDocumentOperation&&Z0.call(this,e)},{priority:"low"})}function Z0(r){const t=this.getTransformedByOperation(r),e=wt._createFromRanges(t),n=!e.isEqual(this),s=function(h,p){switch(p.type){case"insert":return h.containsPosition(p.position);case"move":case"remove":case"reinsert":case"merge":return h.containsPosition(p.sourcePosition)||h.start.isEqual(p.sourcePosition)||h.containsPosition(p.targetPosition);case"split":return h.containsPosition(p.splitPosition)||h.containsPosition(p.insertionPosition)}return!1}(this,r);let l=null;if(n){"$graveyard"==e.root.rootName&&(l="remove"==r.type?r.sourcePosition:r.deletionPosition);const h=this.toRange();this.start=e.start,this.end=e.end,this.fire("change:range",h,{deletionPosition:l})}else s&&this.fire("change:content",this.toRange(),{deletionPosition:l})}Ni.prototype.is=function(r){return"liveRange"===r||"model:liveRange"===r||"range"==r||"model:range"===r};const Tc="selection:";class rn extends(ie(gn)){constructor(t){super(),this._selection=new U0(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(t){this._selection.observeMarkers(t)}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(...t){this._selection.setTo(...t)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return Tc+t}static _isStoreAttributeKey(t){return t.startsWith(Tc)}}rn.prototype.is=function(r){return"selection"===r||"model:selection"==r||"documentSelection"==r||"model:documentSelection"==r};class U0 extends Pi{constructor(t){super(),this.markers=new di({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=t.model,this._document=t,this.listenTo(this._model,"applyOperation",(e,n)=>{const s=n[0];s.isDocumentOperation&&"marker"!=s.type&&"rename"!=s.type&&"noop"!=s.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(e,n,s,l)=>{this._updateMarker(n,l)}),this.listenTo(this._document,"change",(e,n)=>{!function(s,l){const h=s.document.differ;for(const p of h.getChanges()){if("insert"!=p.type)continue;const b=p.position.parent;p.length===b.maxOffset&&s.enqueueChange(l,A=>{const C=Array.from(b.getAttributeKeys()).filter(E=>E.startsWith(Tc));for(const E of C)A.removeAttribute(E,b)})}}(this._model,n)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=l.deletionPosition;const h=this._ranges.indexOf(e);this._ranges.splice(h,1),e.detach()}}),e}updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const s of this._model.markers){const l=s.name.split(":",1)[0];if(!this._observedMarkers.has(l))continue;const h=s.getRange();for(const p of this.getRanges())h.containsRange(p,!p.isCollapsed)&&t.push(s)}const n=Array.from(this.markers);for(const s of t)this.markers.has(s)||(this.markers.add(s),e=!0);for(const s of Array.from(this.markers))t.includes(s)||(this.markers.remove(s),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let s=!1;const l=Array.from(this.markers),h=this.markers.has(t);if(e){let p=!1;for(const b of this.getRanges())if(e.containsRange(b,!b.isCollapsed)){p=!0;break}p&&!h?(this.markers.add(t),s=!0):!p&&h&&(this.markers.remove(t),s=!0)}else h&&(this.markers.remove(t),s=!0);s&&this.fire("change:marker",{oldMarkers:l,directChange:!1})}_updateAttributes(t){const e=ri(this._getSurroundingAttributes()),n=ri(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[l,h]of this._attributePriority)"low"==h&&(this._attrs.delete(l),this._attributePriority.delete(l));this._setAttributesTo(e);const s=[];for(const[l,h]of this.getAttributes())n.has(l)&&n.get(l)===h||s.push(l);for(const[l]of n)this.hasAttribute(l)||s.push(l);s.length>0&&this.fire("change:attribute",{attributeKeys:s,directChange:!1})}_setAttribute(t,e,n=!0){const s=n?"normal":"low";return("low"!=s||"normal"!=this._attributePriority.get(t))&&super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,s),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return!("low"==n&&"normal"==this._attributePriority.get(t)||(this._attributePriority.set(t,n),!super.hasAttribute(t)||(this._attrs.delete(t),0)))}_setAttributesTo(t){const e=new Set;for(const[n,s]of this.getAttributes())t.get(n)!==s&&this._removeAttribute(n,!1);for(const[n,s]of t)this._setAttribute(n,s,!1)&&e.add(n);return e}*getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())e.startsWith(Tc)&&(yield[e.substr(10),t.getAttribute(e)])}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;if("$graveyard"==t.root.rootName)return null;let n=null;if(this.isCollapsed){const s=t.textNode?t.textNode:t.nodeBefore,l=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=pa(s,e)),n||(n=pa(l,e)),!this.isGravityOverridden&&!n){let h=s;for(;h&&!n;)h=h.previousSibling,n=pa(h,e)}if(!n){let h=l;for(;h&&!n;)h=h.nextSibling,n=pa(h,e)}n||(n=this.getStoredAttributes())}else{const s=this.getFirstRange();for(const l of s){if(l.item.is("element")&&e.isObject(l.item)){n=pa(l.item,e);break}if("text"==l.type){n=l.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function pa(r,t){if(!r)return null;if(r instanceof Mi||r instanceof _e)return r.getAttributes();if(!t.isInline(r))return null;if(!t.isObject(r))return[];const e=[];for(const[n,s]of r.getAttributes())t.checkAttribute("$text",n)&&!1!==t.getAttributeProperties(n).copyFromObject&&e.push([n,s]);return e}class tg{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}class j0 extends tg{elementToElement(t){return this.add(function(e){const n=ng(e.model),s=ga(e.view,"container");return n.attributes.length&&(n.children=!0),l=>{l.on(`insert:${n.name}`,function(h,p=q0){return(b,A,C)=>{if(!p(A.item,C.consumable,{preflight:!0}))return;const E=h(A.item,C,A);if(!E)return;p(A.item,C.consumable);const P=C.mapper.toViewPosition(A.range.start);C.mapper.bindElements(A.item,E),C.writer.insert(P,E),C.convertAttributes(A.item),lg(E,A.item.getChildren(),C,{reconversion:A.reconversion})}}(s,ag(n)),{priority:e.converterPriority||"normal"}),(n.children||n.attributes.length)&&l.on("reduceChanges",sg(n),{priority:"low"})}}(t))}elementToStructure(t){return this.add(function(e){const n=ng(e.model),s=ga(e.view,"container");return n.children=!0,l=>{if(l._conversionApi.schema.checkChild(n.name,"$text"))throw new W("conversion-element-to-structure-disallowed-text",l,{elementName:n.name});var h,p;l.on(`insert:${n.name}`,(h=s,p=ag(n),(b,A,C)=>{if(!p(A.item,C.consumable,{preflight:!0}))return;const E=new Map;var j,Y,$;C.writer._registerSlotFactory((j=A.item,Y=E,$=C,(st,ft)=>{const At=st.createContainerElement("$slot");let Ft=null;if("children"===ft)Ft=Array.from(j.getChildren());else{if("function"!=typeof ft)throw new W("conversion-slot-mode-unknown",$.dispatcher,{modeOrFilter:ft});Ft=Array.from(j.getChildren()).filter(jt=>ft(jt))}return Y.set(At,Ft),At}));const P=h(A.item,C,A);if(C.writer._clearSlotFactory(),!P)return;(function(j,Y,$){const st=Array.from(Y.values()).flat(),ft=new Set(st);if(ft.size!=st.length)throw new W("conversion-slot-filter-overlap",$.dispatcher,{element:j});if(ft.size!=j.childCount)throw new W("conversion-slot-filter-incomplete",$.dispatcher,{element:j})})(A.item,E,C),p(A.item,C.consumable);const F=C.mapper.toViewPosition(A.range.start);C.mapper.bindElements(A.item,P),C.writer.insert(F,P),C.convertAttributes(A.item),function(j,Y,$,st){$.mapper.on("modelToViewPosition",Ft,{priority:"highest"});let ft=null,At=null;for([ft,At]of Y)lg(j,At,$,st),$.writer.move($.writer.createRangeIn(ft),$.writer.createPositionBefore(ft)),$.writer.remove(ft);function Ft(jt,ae){const ze=At.indexOf(ae.modelPosition.nodeAfter);ze<0||(ae.viewPosition=ae.mapper.findPositionIn(ft,ze))}$.mapper.off("modelToViewPosition",Ft)}(P,E,C,{reconversion:A.reconversion})}),{priority:e.converterPriority||"normal"}),l.on("reduceChanges",sg(n),{priority:"low"})}}(t))}attributeToElement(t){return this.add(function(e){let n=(e=pn(e)).model;"string"==typeof n&&(n={key:n});let s=`attribute:${n.key}`;if(n.name&&(s+=":"+n.name),n.values)for(const h of n.values)e.view[h]=ga(e.view[h],"attribute");else e.view=ga(e.view,"attribute");const l=og(e);return h=>{var p;h.on(s,(p=l,(b,A,C)=>{if(!C.consumable.test(A.item,b.name))return;const E=p(A.attributeOldValue,C,A),P=p(A.attributeNewValue,C,A);if(!E&&!P)return;C.consumable.consume(A.item,b.name);const F=C.writer;if(A.item instanceof Pi||A.item instanceof rn)F.wrap(F.document.selection.getFirstRange(),P);else{let Y=C.mapper.toViewRange(A.range);null!==A.attributeOldValue&&E&&(Y=F.unwrap(Y,E)),null!==A.attributeNewValue&&P&&F.wrap(Y,P)}}),{priority:e.converterPriority||"normal"})}}(t))}attributeToAttribute(t){return this.add(function(e){let n=(e=pn(e)).model;"string"==typeof n&&(n={key:n});let s=`attribute:${n.key}`;if(n.name&&(s+=":"+n.name),n.values)for(const h of n.values)e.view[h]=rg(e.view[h]);else e.view=rg(e.view);const l=og(e);return h=>{var p;h.on(s,(p=l,(b,A,C)=>{if(!C.consumable.test(A.item,b.name))return;const E=p(A.attributeOldValue,C,A),P=p(A.attributeNewValue,C,A);if(!E&&!P)return;C.consumable.consume(A.item,b.name);const F=C.mapper.toViewElement(A.item),j=C.writer;if(!F)throw new W("conversion-attribute-to-attribute-on-text",C.dispatcher,A);if(null!==A.attributeOldValue&&E)if("class"==E.key){const Y=Ze(E.value);for(const $ of Y)j.removeClass($,F)}else if("style"==E.key){const Y=Object.keys(E.value);for(const $ of Y)j.removeStyle($,F)}else j.removeAttribute(E.key,F);if(null!==A.attributeNewValue&&P)if("class"==P.key){const Y=Ze(P.value);for(const $ of Y)j.addClass($,F)}else if("style"==P.key){const Y=Object.keys(P.value);for(const $ of Y)j.setStyle($,P.value[$],F)}else j.setAttribute(P.key,P.value,F)}),{priority:e.converterPriority||"normal"})}}(t))}markerToElement(t){return this.add(function(e){const n=ga(e.view,"ui");return s=>{var l;s.on(`addMarker:${e.model}`,(l=n,(h,p,b)=>{p.isOpening=!0;const A=l(p,b);p.isOpening=!1;const C=l(p,b);if(!A||!C)return;const E=p.markerRange;if(E.isCollapsed&&!b.consumable.consume(E,h.name))return;for(const j of E)if(!b.consumable.consume(j.item,h.name))return;const P=b.mapper,F=b.writer;F.insert(P.toViewPosition(E.start),A),b.mapper.bindElementToMarker(A,p.markerName),E.isCollapsed||(F.insert(P.toViewPosition(E.end),C),b.mapper.bindElementToMarker(C,p.markerName)),h.stop()}),{priority:e.converterPriority||"normal"}),s.on(`removeMarker:${e.model}`,(h,p,b)=>{const A=b.mapper.markerNameToElements(p.markerName);if(A){for(const C of A)b.mapper.unbindElementFromMarkerName(C,p.markerName),b.writer.clear(b.writer.createRangeOn(C),C);b.writer.clearClonedElementsGroup(p.markerName),h.stop()}},{priority:e.converterPriority||"normal"})}}(t))}markerToHighlight(t){return this.add((e=t,n=>{var s,l;n.on(`addMarker:${e.model}`,(s=e.view,(l,h,p)=>{if(!h.item||!(h.item instanceof Pi||h.item instanceof rn||h.item.is("$textProxy")))return;const b=xu(s,h,p);if(!b||!p.consumable.consume(h.item,l.name))return;const A=p.writer,C=eg(A,b);if(h.item instanceof Pi||h.item instanceof rn)A.wrap(A.document.selection.getFirstRange(),C);else{const P=p.mapper.toViewRange(h.range),F=A.wrap(P,C);for(const j of F.getItems())if(j.is("attributeElement")&&j.isSimilar(C)){p.mapper.bindElementToMarker(j,h.markerName);break}}}),{priority:e.converterPriority||"normal"}),n.on(`addMarker:${e.model}`,(l=e.view,(h,p,b)=>{if(!(p.item&&p.item instanceof me))return;const A=xu(l,p,b);if(!A||!b.consumable.test(p.item,h.name))return;const C=b.mapper.toViewElement(p.item);if(C&&C.getCustomProperty("addHighlight")){b.consumable.consume(p.item,h.name);for(const E of wt._createIn(p.item))b.consumable.consume(E.item,h.name);C.getCustomProperty("addHighlight")(C,A,b.writer),b.mapper.bindElementToMarker(C,p.markerName)}}),{priority:e.converterPriority||"normal"}),n.on(`removeMarker:${e.model}`,function(l){return(h,p,b)=>{if(p.markerRange.isCollapsed)return;const A=xu(l,p,b);if(!A)return;const C=eg(b.writer,A),E=b.mapper.markerNameToElements(p.markerName);if(E){for(const P of E)b.mapper.unbindElementFromMarkerName(P,p.markerName),P.is("attributeElement")?b.writer.unwrap(b.writer.createRangeOn(P),C):P.getCustomProperty("removeHighlight")(P,A.id,b.writer);b.writer.clearClonedElementsGroup(p.markerName),h.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}));var e}markerToData(t){return this.add(function(e){const n=(e=pn(e)).model;let s=e.view;return s||(s=l=>({group:n,name:l.substr(e.model.length+1)})),l=>{var h,p;l.on(`addMarker:${n}`,(h=s,(p,b,A)=>{const C=h(b.markerName,A);if(!C)return;const E=b.markerRange;A.consumable.consume(E,p.name)&&(ig(E,!1,A,b,C),ig(E,!0,A,b,C),p.stop())}),{priority:e.converterPriority||"normal"}),l.on(`removeMarker:${n}`,(p=s,(b,A,C)=>{const E=p(A.markerName,C);if(!E)return;const P=C.mapper.markerNameToElements(A.markerName);if(P){for(const j of P)C.mapper.unbindElementFromMarkerName(j,A.markerName),j.is("containerElement")?(F(`data-${E.group}-start-before`,j),F(`data-${E.group}-start-after`,j),F(`data-${E.group}-end-before`,j),F(`data-${E.group}-end-after`,j)):C.writer.clear(C.writer.createRangeOn(j),j);C.writer.clearClonedElementsGroup(A.markerName),b.stop()}function F(j,Y){if(Y.hasAttribute(j)){const $=new Set(Y.getAttribute(j).split(","));$.delete(E.name),0==$.size?C.writer.removeAttribute(j,Y):C.writer.setAttribute(j,Array.from($).join(","),Y)}}}),{priority:e.converterPriority||"normal"})}}(t))}}function eg(r,t){const e=r.createAttributeElement("span",t.attributes);return t.classes&&e._addClass(t.classes),"number"==typeof t.priority&&(e._priority=t.priority),e._id=t.id,e}function ig(r,t,e,n,s){const l=t?r.start:r.end,h=l.nodeAfter&&l.nodeAfter.is("element")?l.nodeAfter:null,p=l.nodeBefore&&l.nodeBefore.is("element")?l.nodeBefore:null;if(h||p){let b,A;t&&h||!t&&!p?(b=h,A=!0):(b=p,A=!1);const C=e.mapper.toViewElement(b);if(C)return void function(E,P,F,j,Y,$){const st=`data-${$.group}-${P?"start":"end"}-${F?"before":"after"}`,ft=E.hasAttribute(st)?E.getAttribute(st).split(","):[];ft.unshift($.name),j.writer.setAttribute(st,ft.join(","),E),j.mapper.bindElementToMarker(E,Y.markerName)}(C,t,A,e,n,s)}!function(b,A,C,E,P){const Y=C.writer.createUIElement(`${P.group}-${A?"start":"end"}`,P.name?{name:P.name}:null);C.writer.insert(b,Y),C.mapper.bindElementToMarker(Y,E.markerName)}(e.mapper.toViewPosition(l),t,e,n,s)}function ng(r){return"string"==typeof r&&(r={name:r}),{name:r.name,attributes:r.attributes?Ze(r.attributes):[],children:!!r.children}}function ga(r,t){return"function"==typeof r?r:(e,n)=>function(s,l,h){let p;"string"==typeof s&&(s={name:s});const b=l.writer,A=Object.assign({},s.attributes);if(p="container"==h?b.createContainerElement(s.name,A):"attribute"==h?b.createAttributeElement(s.name,A,{priority:s.priority||Nn.DEFAULT_PRIORITY}):b.createUIElement(s.name,A),s.styles){const C=Object.keys(s.styles);for(const E of C)b.setStyle(E,s.styles[E],p)}if(s.classes){const C=s.classes;if("string"==typeof C)b.addClass(C,p);else for(const E of C)b.addClass(E,p)}return p}(r,n,t)}function og(r){return r.model.values?(t,e,n)=>{const s=r.view[t];return s?s(t,e,n):null}:r.view}function rg(r){return"string"==typeof r?t=>({key:r,value:t}):"object"==typeof r?r.value?()=>r:t=>({key:r.key,value:t}):r}function xu(r,t,e){const n="function"==typeof r?r(t,e):r;return n?(n.priority||(n.priority=10),n.id||(n.id=t.markerName),n):null}function sg(r){const t=(e=r,(n,s)=>{if(!n.is("element",e.name))return!1;if("attribute"==s.type){if(e.attributes.includes(s.attributeKey))return!0}else if(e.children)return!0;return!1});var e;return(e,n)=>{const s=[];n.reconvertedElements||(n.reconvertedElements=new Set);for(const l of n.changes){const h="attribute"==l.type?l.range.start.nodeAfter:l.position.parent;if(h&&t(h,l)){if(!n.reconvertedElements.has(h)){n.reconvertedElements.add(h);const p=Dt._createBefore(h);let b=s.length;for(let A=s.length-1;A>=0;A--){const C=s[A],E=("attribute"==C.type?C.range.start:C.position).compareWith(p);if("before"==E||"remove"==C.type&&"same"==E)break;b=A}s.splice(b,0,{type:"remove",name:h.name,position:p,length:1},{type:"reinsert",name:h.name,position:p,length:1})}}else s.push(l)}n.changes=s}}function ag(r){return(t,e,n={})=>{const s=["insert"];for(const l of r.attributes)t.hasAttribute(l)&&s.push(`attribute:${l}`);return!!s.every(l=>e.test(t,l))&&(n.preflight||s.forEach(l=>e.consume(t,l)),!0)}}function lg(r,t,e,n){for(const s of t)V0(r.root,s,e,n)||e.convertItem(s)}function V0(r,t,e,n){const{writer:s,mapper:l}=e;if(!n.reconversion)return!1;const h=l.toViewElement(t);return!(!h||h.root==r||!e.canReuseView(h)||(s.move(s.createRangeOn(h),l.toViewPosition(Dt._createBefore(t))),0))}function q0(r,t,{preflight:e}={}){return e?t.test(r,"insert"):t.consume(r,"insert")}function cg(r){const{schema:t,document:e}=r.model;for(const n of e.getRoots())if(n.isEmpty&&!t.checkChild(n,"$text")&&t.checkChild(n,"paragraph"))return r.insertElement("paragraph",n),!0;return!1}function dg(r,t,e){const n=e.createContext(r);return!!e.checkChild(n,"paragraph")&&!!e.checkChild(n.push("paragraph"),t)}function hg(r,t){const e=t.createElement("paragraph");return t.insert(e,r),t.createPositionAt(e,0)}var Y0=Object.defineProperty,H0=Object.defineProperties,G0=Object.getOwnPropertyDescriptors,ug=Object.getOwnPropertySymbols,W0=Object.prototype.hasOwnProperty,Q0=Object.prototype.propertyIsEnumerable,pg=(r,t,e)=>t in r?Y0(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class X0 extends tg{elementToElement(t){return this.add(gg(t))}elementToAttribute(t){return this.add(function(e){mg(e=pn(e));const n=fg(e,!1),s=Cu(e.view),l=s?`element:${s}`:"element";return h=>{h.on(l,n,{priority:e.converterPriority||"low"})}}(t))}attributeToAttribute(t){return this.add(function(e){let n=null;("string"==typeof(e=pn(e)).view||e.view.key)&&(n=function(l){"string"==typeof l.view&&(l.view={key:l.view});const h=l.view.key;let p;return p="class"==h||"style"==h?{["class"==h?"classes":"styles"]:l.view.value}:{attributes:{[h]:void 0===l.view.value?/[\s\S]*/:l.view.value}},l.view.name&&(p.name=l.view.name),l.view=p,h}(e)),mg(e,n);const s=fg(e,!0);return l=>{l.on("element",s,{priority:e.converterPriority||"low"})}}(t))}elementToMarker(t){return this.add(function(e){const n=(h=e.model,(p,b)=>{const A="string"==typeof h?h:h(p,b);return b.writer.createElement("$marker",{"data-name":A})});var h,s;return gg((s=((h,p)=>{for(var b in p||(p={}))W0.call(p,b)&&pg(h,b,p[b]);if(ug)for(var b of ug(p))Q0.call(p,b)&&pg(h,b,p[b]);return h})({},e),H0(s,G0({model:n}))))}(t))}dataToMarker(t){return this.add(function(e){(e=pn(e)).model||(e.model=h=>h?e.view+":"+h:e.view);const n={view:e.view,model:e.model},s=yu(bg(n,"start")),l=yu(bg(n,"end"));return h=>{h.on(`element:${e.view}-start`,s,{priority:e.converterPriority||"normal"}),h.on(`element:${e.view}-end`,l,{priority:e.converterPriority||"normal"});const p=It.low,b=It.highest,A=It.get(e.converterPriority)/b;var C;h.on("element",(C=n,(E,P,F)=>{const j=`data-${C.view}`;function Y($,st){for(const ft of st){const At=C.model(ft,F),Ft=F.writer.createElement("$marker",{"data-name":At});F.writer.insert(Ft,$),P.modelCursor=P.modelCursor.isEqual($)?P.modelCursor.getShiftedBy(1):P.modelCursor._getTransformedByInsertion($,1),P.modelRange=P.modelRange._getTransformedByInsertion($,1)[0]}}(F.consumable.test(P.viewItem,{attributes:j+"-end-after"})||F.consumable.test(P.viewItem,{attributes:j+"-start-after"})||F.consumable.test(P.viewItem,{attributes:j+"-end-before"})||F.consumable.test(P.viewItem,{attributes:j+"-start-before"}))&&(P.modelRange||Object.assign(P,F.convertChildren(P.viewItem,P.modelCursor)),F.consumable.consume(P.viewItem,{attributes:j+"-end-after"})&&Y(P.modelRange.end,P.viewItem.getAttribute(j+"-end-after").split(",")),F.consumable.consume(P.viewItem,{attributes:j+"-start-after"})&&Y(P.modelRange.end,P.viewItem.getAttribute(j+"-start-after").split(",")),F.consumable.consume(P.viewItem,{attributes:j+"-end-before"})&&Y(P.modelRange.start,P.viewItem.getAttribute(j+"-end-before").split(",")),F.consumable.consume(P.viewItem,{attributes:j+"-start-before"})&&Y(P.modelRange.start,P.viewItem.getAttribute(j+"-start-before").split(",")))}),{priority:p+A})}}(t))}}function gg(r){const t=yu(r=pn(r)),e=Cu(r.view),n=e?`element:${e}`:"element";return s=>{s.on(n,t,{priority:r.converterPriority||"normal"})}}function Cu(r){return"string"==typeof r?r:"object"==typeof r&&"string"==typeof r.name?r.name:null}function yu(r){const t=new Ti(r.view);return(e,n,s)=>{const l=t.match(n.viewItem);if(!l)return;const h=l.match;if(h.name=!0,!s.consumable.test(n.viewItem,h))return;const p=(C=s,(b=r.model)instanceof Function?b(n.viewItem,C):C.writer.createElement(b));var b,C;p&&s.safeInsert(p,n.modelCursor)&&(s.consumable.consume(n.viewItem,h),s.convertChildren(n.viewItem,p),s.updateConversionResult(p,n))}}function mg(r,t=null){r.model={key:"object"!=typeof r.model?r.model:r.model.key,value:"object"!=typeof r.model||void 0===r.model.value?null===t||(l=>l.getAttribute(t)):r.model.value}}function fg(r,t){const e=new Ti(r.view);return(n,s,l)=>{if(!s.modelRange&&t)return;const h=e.match(s.viewItem);if(!h||(function(C,E){const P="function"==typeof C?C(E):C;return!("object"==typeof P&&!Cu(P)||P.classes||P.attributes||P.styles)}(r.view,s.viewItem)?h.match.name=!0:delete h.match.name,!l.consumable.test(s.viewItem,h.match)))return;const p=r.model.key,b="function"==typeof r.model.value?r.model.value(s.viewItem,l):r.model.value;null!==b&&(s.modelRange||Object.assign(s,l.convertChildren(s.viewItem,s.modelCursor)),function(C,E,P,F){let j=!1;for(const Y of Array.from(C.getItems({shallow:P})))F.schema.checkAttribute(Y,E.key)&&(j=!0,Y.hasAttribute(E.key)||F.writer.setAttribute(E.key,E.value,Y));return j}(s.modelRange,{key:p,value:b},t,l)&&(l.consumable.test(s.viewItem,{name:!0})&&(h.match.name=!0),l.consumable.consume(s.viewItem,h.match)))}}function bg(r,t){return{view:`${r.view}-${t}`,model:(e,n)=>{const s=e.getAttribute("name"),l=r.model(s,n);return n.writer.createElement("$marker",{"data-name":l})}}}function vg(r,t){return r.isCollapsed?function(e,n){const s=e.start,l=n.getNearestSelectionRange(s);if(!l){const p=s.getAncestors().reverse().find(b=>n.isObject(b));return p?wt._createOn(p):null}if(!l.isCollapsed)return l;const h=l.start;return s.isEqual(h)?null:new wt(h)}(r,t):function(e,n){const{start:s,end:l}=e,h=n.checkChild(s,"$text"),p=n.checkChild(l,"$text"),b=n.getLimitElement(s),A=n.getLimitElement(l);if(b===A){if(h&&p)return null;if(function(P,F,j){const Y=P.nodeAfter&&!j.isLimit(P.nodeAfter)||j.checkChild(P,"$text"),$=F.nodeBefore&&!j.isLimit(F.nodeBefore)||j.checkChild(F,"$text");return Y||$}(s,l,n)){const P=s.nodeAfter&&n.isSelectable(s.nodeAfter)?null:n.getNearestSelectionRange(s,"forward"),F=l.nodeBefore&&n.isSelectable(l.nodeBefore)?null:n.getNearestSelectionRange(l,"backward");return new wt(P?P.start:s,F?F.end:l)}}const C=b&&!b.is("rootElement"),E=A&&!A.is("rootElement");if(C||E){const P=s.nodeAfter&&l.nodeBefore&&s.nodeAfter.parent===l.nodeBefore.parent,F=C&&(!P||!_g(s.nodeAfter,n)),j=E&&(!P||!_g(l.nodeBefore,n));let Y=s,$=l;return F&&(Y=Dt._createBefore(kg(b,n))),j&&($=Dt._createAfter(kg(A,n))),new wt(Y,$)}return null}(r,t)}function kg(r,t){let e=r,n=e;for(;t.isLimit(n)&&n.parent;)e=n,n=n.parent;return e}function _g(r,t){return r&&t.isSelectable(r)}class J0 extends(ne()){constructor(t,e){super(),this.model=t,this.view=new ku(e),this.mapper=new Hp,this.downcastDispatcher=new Xp({mapper:this.mapper,schema:t.schema});const n=this.model.document,s=n.selection,l=this.model.markers;var h,p,b,A,C;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(n,"change",()=>{this.view.change(A=>{this.downcastDispatcher.convertChanges(n.differ,l,A),this.downcastDispatcher.convertSelection(s,l,A)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(A=this.model,C=this.mapper,(E,P)=>{const F=P.newSelection,j=[];for(const $ of F.getRanges())j.push(C.toModelRange($));const Y=A.createSelection(j,{backward:F.isBackward});Y.isEqual(A.document.selection)||A.change($=>{$.setSelection(Y)})})),this.listenTo(this.view.document,"beforeinput",(h=this.mapper,p=this.model.schema,b=this.view,(A,C)=>{if(!b.document.isComposing||it.isAndroid)for(let E=0;E{if(!E.consumable.consume(C.item,A.name))return;const P=E.writer,F=E.mapper.toViewPosition(C.range.start),j=P.createText(C.item.data);P.insert(F,j)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(A,C,E)=>{E.convertAttributes(C.item),C.reconversion||!C.item.is("element")||C.item.isEmpty||E.convertChildren(C.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(A,C,E)=>{const P=E.mapper.toViewPosition(C.position),F=C.position.getShiftedBy(C.length),j=E.mapper.toViewPosition(F,{isPhantom:!0}),Y=E.writer.createRange(P,j),$=E.writer.remove(Y.getTrimmed());for(const st of E.writer.createRangeIn($).getItems())E.mapper.unbindViewElement(st,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(A,C,E)=>{const P=E.writer,F=P.document.selection;for(const j of F.getRanges())j.isCollapsed&&j.end.parent.isAttached()&&E.writer.mergeAttributes(j.start);P.setSelection(null)}),this.downcastDispatcher.on("selection",(A,C,E)=>{const P=C.selection;if(P.isCollapsed||!E.consumable.consume(P,"selection"))return;const F=[];for(const j of P.getRanges())F.push(E.mapper.toViewRange(j));E.writer.setSelection(F,{backward:P.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(A,C,E)=>{const P=C.selection;if(!P.isCollapsed||!E.consumable.consume(P,"selection"))return;const F=E.writer,j=P.getFirstPosition(),Y=E.mapper.toViewPosition(j),$=F.breakAttributes(Y);F.setSelection($)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(A=>{if("$graveyard"==A.rootName)return null;const C=new lc(this.view.document,A.name);return C.rootName=A.rootName,this.mapper.bindElements(A,C),C})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(t){const e="string"==typeof t?t:t.name,n=this.model.markers.get(e);if(!n)throw new W("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:e});this.model.change(()=>{this.model.markers._refresh(n)})}reconvertItem(t){this.model.change(()=>{this.model.document.differ._refreshItem(t)})}}class ma{constructor(){this._consumables=new Map}add(t,e){let n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new $0(t),this._consumables.set(t,n)),n.add(e))}test(t,e){const n=this._consumables.get(t);return void 0===n?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}consume(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}revert(t,e){const n=this._consumables.get(t);void 0!==n&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}static consumablesFromElement(t){const e={element:t,name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();for(const h of n)"style"!=h&&"class"!=h&&e.attributes.push(h);const s=t.getClassNames();for(const h of s)e.classes.push(h);const l=t.getStyleNames();for(const h of l)e.styles.push(h);return e}static createFrom(t,e){if(e||(e=new ma),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,ma.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=ma.createFrom(n,e);return e}}const Sc=["attributes","classes","styles"];class $0{constructor(t){this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(t){t.name&&(this._canConsumeName=!0);for(const e of Sc)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e of Sc)if(e in t){const n=this._test(e,t[e]);if(!0!==n)return n}return!0}consume(t){t.name&&(this._canConsumeName=!1);for(const e of Sc)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e of Sc)e in t&&this._revert(e,t[e])}_add(t,e){const n=Ut(e)?e:[e],s=this._consumables[t];for(const l of n){if("attributes"===t&&("class"===l||"style"===l))throw new W("viewconsumable-invalid-attribute",this);if(s.set(l,!0),"styles"===t)for(const h of this.element.document.stylesProcessor.getRelatedStyles(l))s.set(h,!0)}}_test(t,e){const n=Ut(e)?e:[e],s=this._consumables[t];for(const l of n)if("attributes"!==t||"class"!==l&&"style"!==l){const h=s.get(l);if(void 0===h)return null;if(!h)return!1}else{const h="class"==l?"classes":"styles",p=this._test(h,[...this._consumables[h].keys()]);if(!0!==p)return p}return!0}_consume(t,e){const n=Ut(e)?e:[e],s=this._consumables[t];for(const l of n)if("attributes"!==t||"class"!==l&&"style"!==l){if(s.set(l,!1),"styles"==t)for(const h of this.element.document.stylesProcessor.getRelatedStyles(l))s.set(h,!1)}else{const h="class"==l?"classes":"styles";this._consume(h,[...this._consumables[h].keys()])}}_revert(t,e){const n=Ut(e)?e:[e],s=this._consumables[t];for(const l of n)if("attributes"!==t||"class"!==l&&"style"!==l)!1===s.get(l)&&s.set(l,!0);else{const h="class"==l?"classes":"styles";this._revert(h,[...this._consumables[h].keys()])}}}class t_ extends(ne()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(t,e)=>{e[0]=new Xo(e[0])},{priority:"highest"}),this.on("checkChild",(t,e)=>{e[0]=new Xo(e[0]),e[1]=this.getDefinition(e[1])},{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new W("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}extend(t,e){if(!this._sourceDefinitions[t])throw new W("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(t){let e;return e="string"==typeof t?t:"is"in t&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}isRegistered(t){return!!this.getDefinition(t)}isBlock(t){const e=this.getDefinition(t);return!(!e||!e.isBlock)}isLimit(t){const e=this.getDefinition(t);return!(!e||!e.isLimit&&!e.isObject)}isObject(t){const e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}isInline(t){const e=this.getDefinition(t);return!(!e||!e.isInline)}isSelectable(t){const e=this.getDefinition(t);return!(!e||!e.isSelectable&&!e.isObject)}isContent(t){const e=this.getDefinition(t);return!(!e||!e.isContent&&!e.isObject)}checkChild(t,e){return!!e&&this._checkContextMatch(e,t)}checkAttribute(t,e){const n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}checkMerge(t,e){if(t instanceof Dt){const n=t.nodeBefore,s=t.nodeAfter;if(!(n instanceof me))throw new W("schema-check-merge-no-element-before",this);if(!(s instanceof me))throw new W("schema-check-merge-no-element-after",this);return this.checkMerge(n,s)}for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t){this.on("checkChild",(e,[n,s])=>{if(!s)return;const l=t(n,s);"boolean"==typeof l&&(e.stop(),e.return=l)},{priority:"high"})}addAttributeCheck(t){this.on("checkAttribute",(e,[n,s])=>{const l=t(n,s);"boolean"==typeof l&&(e.stop(),e.return=l)},{priority:"high"})}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||{}}getLimitElement(t){let e;for(e=t instanceof Dt?t.parent:(t instanceof wt?[t]:Array.from(t.getRanges())).reduce((n,s)=>{const l=s.getCommonAncestor();return n?n.getCommonAncestor(l,{includeSelf:!0}):l},null);!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const n=[...t.getFirstPosition().getAncestors(),new _e("",t.getAttributes())];return this.checkAttribute(n,e)}{const n=t.getRanges();for(const s of n)for(const l of s)if(this.checkAttribute(l.item,e))return!0}return!1}*getValidRanges(t,e){t=function*(n){for(const s of n)yield*s.getMinimalFlatRanges()}(t);for(const n of t)yield*this._getValidRangesForRange(n,e)}getNearestSelectionRange(t,e="both"){if("$graveyard"==t.root.rootName)return null;if(this.checkChild(t,"$text"))return new wt(t);let n,s;const l=t.getAncestors().reverse().find(h=>this.isLimit(h))||t.root;"both"!=e&&"backward"!=e||(n=new Li({boundaries:wt._createIn(l),startPosition:t,direction:"backward"})),"both"!=e&&"forward"!=e||(s=new Li({boundaries:wt._createIn(l),startPosition:t}));for(const h of function*(p,b){let A=!1;for(;!A;){if(A=!0,p){const C=p.next();C.done||(A=!1,yield{walker:p,value:C.value})}if(b){const C=b.next();C.done||(A=!1,yield{walker:b,value:C.value})}}}(n,s)){const b=h.value;if(b.type==(h.walker==n?"elementEnd":"elementStart")&&this.isObject(b.item))return wt._createOn(b.item);if(this.checkChild(b.nextPosition,"$text"))return new wt(b.nextPosition)}return null}findAllowedParent(t,e){let n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}setAllowedAttributes(t,e,n){const s=n.model;for(const[l,h]of Object.entries(e))s.schema.checkAttribute(t,l)&&n.setAttribute(l,h,t)}removeDisallowedAttributes(t,e){for(const n of t)if(n.is("$text"))wg(this,n,e);else{const s=wt._createIn(n).getPositions();for(const l of s)wg(this,l.nodeBefore||l.parent,e)}}getAttributesWithProperty(t,e,n){const s={};for(const[l,h]of t.getAttributes()){const p=this.getAttributeProperties(l);void 0!==p[e]&&(void 0!==n&&n!==p[e]||(s[l]=h))}return s}createContext(t){return new Xo(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const s of n)t[s]=e_(e[s],s);for(const s of n)i_(t,s);for(const s of n)n_(t,s);for(const s of n)o_(t,s);for(const s of n)r_(t,s),s_(t,s);for(const s of n)a_(t,s),l_(t,s),c_(t,s);this._compiledDefinitions=t}_checkContextMatch(t,e,n=e.length-1){const s=e.getItem(n);if(t.allowIn.includes(s.name)){if(0==n)return!0;{const l=this.getDefinition(s);return this._checkContextMatch(l,e,n-1)}}return!1}*_getValidRangesForRange(t,e){let n=t.start,s=t.start;for(const l of t.getItems({shallow:!0}))l.is("element")&&(yield*this._getValidRangesForRange(wt._createIn(l),e)),this.checkAttribute(l,e)||(n.isEqual(s)||(yield new wt(n,s)),n=Dt._createAfter(l)),s=Dt._createAfter(l);n.isEqual(s)||(yield new wt(n,s))}}class Xo{constructor(t){if(t instanceof Xo)return t;let e;e="string"==typeof t?[t]:Array.isArray(t)?t:t.getAncestors({includeSelf:!0}),this._items=e.map(h_)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){const e=new Xo([t]);return e._items=[...this._items,...e._items],e}getItem(t){return this._items[t]}*getNames(){yield*this._items.map(t=>t.name)}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function e_(r,t){const e={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(n,s){for(const l of n){const h=Object.keys(l).filter(p=>p.startsWith("is"));for(const p of h)s[p]=!!l[p]}}(r,e),Ko(r,e,"allowIn"),Ko(r,e,"allowContentOf"),Ko(r,e,"allowWhere"),Ko(r,e,"allowAttributes"),Ko(r,e,"allowAttributesOf"),Ko(r,e,"allowChildren"),Ko(r,e,"inheritTypesFrom"),function(n,s){for(const l of n){const h=l.inheritAllFrom;h&&(s.allowContentOf.push(h),s.allowWhere.push(h),s.allowAttributesOf.push(h),s.inheritTypesFrom.push(h))}}(r,e),e}function i_(r,t){const e=r[t];for(const n of e.allowChildren){const s=r[n];s&&s.allowIn.push(t)}e.allowChildren.length=0}function n_(r,t){for(const e of r[t].allowContentOf)r[e]&&d_(r,e).forEach(n=>{n.allowIn.push(t)});delete r[t].allowContentOf}function o_(r,t){for(const e of r[t].allowWhere){const n=r[e];n&&r[t].allowIn.push(...n.allowIn)}delete r[t].allowWhere}function r_(r,t){for(const e of r[t].allowAttributesOf){const n=r[e];n&&r[t].allowAttributes.push(...n.allowAttributes)}delete r[t].allowAttributesOf}function s_(r,t){const e=r[t];for(const n of e.inheritTypesFrom){const s=r[n];if(s){const l=Object.keys(s).filter(h=>h.startsWith("is"));for(const h of l)h in e||(e[h]=s[h])}}delete e.inheritTypesFrom}function a_(r,t){const e=r[t],n=e.allowIn.filter(s=>r[s]);e.allowIn=Array.from(new Set(n))}function l_(r,t){const e=r[t];for(const n of e.allowIn)r[n].allowChildren.push(t)}function c_(r,t){const e=r[t];e.allowAttributes=Array.from(new Set(e.allowAttributes))}function Ko(r,t,e){for(const n of r){const s=n[e];"string"==typeof s?t[e].push(s):Array.isArray(s)&&t[e].push(...s)}}function d_(r,t){const e=r[t];return(n=r,Object.keys(n).map(s=>n[s])).filter(s=>s.allowIn.includes(e.name));var n}function h_(r){return"string"==typeof r||r.is("documentFragment")?{name:"string"==typeof r?r:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:r.is("element")?r.name:"$text",*getAttributeKeys(){yield*r.getAttributeKeys()},getAttribute:t=>r.getAttribute(t)}}function wg(r,t,e){for(const n of t.getAttributeKeys())r.checkAttribute(t,n)||e.removeAttribute(n,t)}var u_=Object.defineProperty,p_=Object.defineProperties,g_=Object.getOwnPropertyDescriptors,Ag=Object.getOwnPropertySymbols,m_=Object.prototype.hasOwnProperty,f_=Object.prototype.propertyIsEnumerable,xg=(r,t,e)=>t in r?u_(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class b_ extends(ie()){constructor(t){var e;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(e=((n,s)=>{for(var l in s||(s={}))m_.call(s,l)&&xg(n,l,s[l]);if(Ag)for(var l of Ag(s))f_.call(s,l)&&xg(n,l,s[l]);return n})({},t),p_(e,g_({consumable:null,writer:null,store:null,convertItem:(n,s)=>this._convertItem(n,s),convertChildren:(n,s)=>this._convertChildren(n,s),safeInsert:(n,s)=>this._safeInsert(n,s),updateConversionResult:(n,s)=>this._updateConversionResult(n,s),splitToAllowedParent:(n,s)=>this._splitToAllowedParent(n,s),getSplitParts:n=>this._getSplitParts(n),keepEmptyElement:n=>this._keepEmptyElement(n)})))}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=function(h,p){let b;for(const A of new Xo(h)){const C={};for(const P of A.getAttributeKeys())C[P]=A.getAttribute(P);const E=p.createElement(A.name,C);b&&p.insert(E,b),b=Dt._createAt(E,0)}return b}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=ma.createFrom(t),this.conversionApi.store={};const{modelRange:s}=this._convertItem(t,this._modelCursor),l=e.createDocumentFragment();if(s){this._removeEmptyElements();for(const h of Array.from(this._modelCursor.parent.getChildren()))e.append(h,l);l.markers=function(h,p){const b=new Set,A=new Map,C=wt._createIn(h).getItems();for(const E of C)E.is("element","$marker")&&b.add(E);for(const E of b){const P=E.getAttribute("data-name"),F=p.createPositionBefore(E);A.has(P)?A.get(P).end=F.clone():A.set(P,new wt(F.clone())),p.remove(E)}return A}(l,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,l}_convertItem(t,e){const n={viewItem:t,modelCursor:e,modelRange:null};if(t.is("element")?this.fire(`element:${t.name}`,n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof wt))throw new W("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:Dt._createAt(e,0);const s=new wt(n);for(const l of Array.from(t.getChildren())){const h=this._convertItem(l,n);h.modelRange instanceof wt&&(s.end=h.modelRange.end,n=h.modelCursor)}return{modelRange:s,modelCursor:n}}_safeInsert(t,e){const n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}_updateConversionResult(t,e){const n=this._getSplitParts(t),s=this.conversionApi.writer;e.modelRange||(e.modelRange=s.createRange(s.createPositionBefore(t),s.createPositionAfter(n[n.length-1])));const l=this._cursorParents.get(t);e.modelCursor=l?s.createPositionAt(l,0):e.modelRange.end}_splitToAllowedParent(t,e){const{schema:n,writer:s}=this.conversionApi;let l=n.findAllowedParent(e,t);if(l){if(l===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(l)&&(l=null)}if(!l)return dg(e,t,n)?{position:hg(e,s)}:null;const h=this.conversionApi.writer.split(e,l),p=[];for(const A of h.range.getWalker())if("elementEnd"==A.type)p.push(A.item);else{const C=p.pop();this._registerSplitPair(C,A.item)}const b=h.range.end.parent;return this._cursorParents.set(t,b),{position:h.position,cursorParent:b}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){let e;return e=this._splitParts.has(t)?this._splitParts.get(t):[t],e}_keepEmptyElement(t){this._emptyElementsToKeep.add(t)}_removeEmptyElements(){let t=!1;for(const e of this._splitParts.keys())e.isEmpty&&!this._emptyElementsToKeep.has(e)&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}class v_{getHtml(t){const e=Yt.document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class k_{constructor(t){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new ha(t,{renderingMode:"data"}),this.htmlWriter=new v_}toData(t){const e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this.domConverter.domToView(e,{skipComments:this.skipComments})}registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t)}useFillerType(t){this.domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp"}_toDom(t){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t=`${t}`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),s=e.body.childNodes;for(;s.length>0;)n.appendChild(s[0]);return n}}class __ extends(ie()){constructor(t,e){super(),this.model=t,this.mapper=new Hp,this.downcastDispatcher=new Xp({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",(n,s,l)=>{if(!l.consumable.consume(s.item,n.name))return;const h=l.writer,p=l.mapper.toViewPosition(s.range.start),b=h.createText(s.item.data);h.insert(p,b)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(n,s,l)=>{l.convertAttributes(s.item),s.reconversion||!s.item.is("element")||s.item.isEmpty||l.convertChildren(s.item)},{priority:"lowest"}),this.upcastDispatcher=new b_({schema:t.schema}),this.viewDocument=new Or(e),this.stylesProcessor=e,this.htmlProcessor=new k_(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new qh(this.viewDocument),this.upcastDispatcher.on("text",(n,s,{schema:l,consumable:h,writer:p})=>{let b=s.modelCursor;if(!h.test(s.viewItem))return;if(!l.checkChild(b,"$text")){if(!dg(b,"$text",l)||0==s.viewItem.data.trim().length)return;const C=b.nodeBefore;b=hg(b,p),C&&C.is("element","$marker")&&(p.move(p.createRangeOn(C),b),b=p.createPositionAfter(C))}h.consume(s.viewItem);const A=p.createText(s.viewItem.data);p.insert(A,b),s.modelRange=p.createRange(b,b.getShiftedBy(A.offsetSize)),s.modelCursor=s.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(n,s,l)=>{if(!s.modelRange&&l.consumable.consume(s.viewItem,{name:!0})){const{modelRange:h,modelCursor:p}=l.convertChildren(s.viewItem,s.modelCursor);s.modelRange=h,s.modelCursor=p}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(n,s,l)=>{if(!s.modelRange&&l.consumable.consume(s.viewItem,{name:!0})){const{modelRange:h,modelCursor:p}=l.convertChildren(s.viewItem,s.modelCursor);s.modelRange=h,s.modelCursor=p}},{priority:"lowest"}),ne().prototype.decorate.call(this,"init"),ne().prototype.decorate.call(this,"set"),ne().prototype.decorate.call(this,"get"),ne().prototype.decorate.call(this,"toView"),ne().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},cg)},{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new W("datacontroller-get-non-existent-root",this);const s=this.model.document.getRoot(e);return s.isAttached()||kt("datacontroller-get-detached-root",this),"empty"!==n||this.model.hasContent(s,{ignoreWhitespaces:!0})?this.stringify(s,t):""}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,s=this._viewWriter;this.mapper.clearBindings();const l=wt._createIn(t),h=new fo(n);this.mapper.bindElements(t,h);const p=t.is("documentFragment")?t.markers:function(b){const A=[],C=b.root.document;if(!C)return new Map;const E=wt._createIn(b);for(const P of C.model.markers){const F=P.getRange(),j=F.isCollapsed,Y=F.start.isEqual(E.start)||F.end.isEqual(E.end);if(j&&Y)A.push([P.name,F]);else{const $=E.getIntersection(F);$&&A.push([P.name,$])}}return A.sort(([P,F],[j,Y])=>{if("after"!==F.end.compareWith(Y.start))return 1;if("before"!==F.start.compareWith(Y.end))return-1;switch(F.start.compareWith(Y.start)){case"before":return 1;case"after":return-1;default:switch(F.end.compareWith(Y.end)){case"before":return 1;case"after":return-1;default:return j.localeCompare(P)}}}),new Map(A)}(t);return this.downcastDispatcher.convert(l,p,s,e),h}init(t){if(this.model.document.version)throw new W("datacontroller-init-document-not-empty",this);let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new W("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},n=>{for(const s of Object.keys(e)){const l=this.model.document.getRoot(s);n.insert(this.parse(e[s],l),l,0)}}),Promise.resolve()}set(t,e={}){let n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new W("datacontroller-set-non-existent-root",this);this.model.enqueueChange(e.batchType||{},s=>{s.setSelection(null),s.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const l of Object.keys(n)){const h=this.model.document.getRoot(l);s.remove(s.createRangeIn(h)),s.insert(this.parse(n[l],h),h,0)}})}parse(t,e="$root"){const n=this.processor.toView(t);return this.toModel(n,e)}toModel(t,e="$root"){return this.model.change(n=>this.upcastDispatcher.convert(t,n,e))}addStyleProcessorRules(t){t(this.stylesProcessor)}registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRoot(e))return!1;return!0}}class w_{constructor(t,e){this._helpers=new Map,this._downcast=Ze(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Ze(e),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(t,e){const n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new W("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new W("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of Eu(t))this.for("upcast").elementToElement({model:e,view:n,converterPriority:t.converterPriority})}attributeToElement(t){this.for("downcast").attributeToElement(t);for(const{model:e,view:n}of Eu(t))this.for("upcast").elementToAttribute({view:n,model:e,converterPriority:t.converterPriority})}attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);for(const{model:e,view:n}of Eu(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new W("conversion-group-exists",this);const s=n?new j0(e):new X0(e);this._helpers.set(t,s)}}function*Eu(r){if(r.model.values)for(const t of r.model.values){const e={key:r.model.key,value:t},n=r.view[t],s=r.upcastAlso?r.upcastAlso[t]:void 0;yield*Cg(e,n,s)}else yield*Cg(r.model,r.view,r.upcastAlso)}function*Cg(r,t,e){if(yield{model:r,view:t},e)for(const n of Ze(e))yield{model:r,view:n}}class Oi{constructor(t){this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t,e){return new this(t.baseVersion)}}function Tu(r,t){const e=Eg(t),n=e.reduce((h,p)=>h+p.offsetSize,0),s=r.parent;va(r);const l=r.index;return s._insertChild(l,e),ba(s,l+e.length),ba(s,l),new wt(r,r.getShiftedBy(n))}function yg(r){if(!r.isFlat)throw new W("operation-utils-remove-range-not-flat",this);const t=r.start.parent;va(r.start),va(r.end);const e=t._removeChildren(r.start.index,r.end.index-r.start.index);return ba(t,r.start.index),e}function fa(r,t){if(!r.isFlat)throw new W("operation-utils-move-range-not-flat",this);const e=yg(r);return Tu(t=t._getTransformedByDeletion(r.start,r.end.offset-r.start.offset),e)}function Eg(r){const t=[];!function e(n){if("string"==typeof n)t.push(new _e(n));else if(n instanceof Mi)t.push(new _e(n.data,n.getAttributes()));else if(n instanceof Bn)t.push(n);else if(ti(n))for(const s of n)e(s)}(r);for(let e=1;et.maxOffset)throw new W("move-operation-nodes-do-not-exist",this);if(t===e&&n=n&&this.targetPosition.path[l]n._clone(!0))),e=new Je(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const e=new Dt(this.position.root.document.graveyard,[0]);return new ge(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffsete._clone(!0))),Tu(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const l of t.nodes)n.push(l.name?me.fromJSON(l):_e.fromJSON(l));const s=new Je(Dt.fromJSON(t.position,e),n,t.baseVersion);return s.shouldReceiveAttributes=t.shouldReceiveAttributes,s}}class Se extends Oi{constructor(t,e,n,s,l){super(l),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=s?s.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new Dt(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new wt(this.splitPosition,t)}get affectedSelectable(){const t=[wt._createFromPositionAndShift(this.splitPosition,0),wt._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&t.push(wt._createFromPositionAndShift(this.graveyardPosition,0)),t}clone(){return new Se(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=new Dt(this.splitPosition.root.document.graveyard,[0]);return new Be(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent;if(!t||t.maxOffset{if(r.key===t.key&&r.range.start.hasSameParentAs(t.range.start)){const n=r.range.getDifference(t.range).map(l=>new Ue(l,r.key,r.oldValue,r.newValue,0)),s=r.range.getIntersection(t.range);return s&&e.aIsStrong&&n.push(new Ue(s,t.key,t.newValue,r.newValue,0)),0==n.length?[new Ve(0)]:n}return[r]}),de(Ue,Je,(r,t)=>{if(r.range.start.hasSameParentAs(t.position)&&r.range.containsPosition(t.position)){const e=r.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(n=>new Ue(n,r.key,r.oldValue,r.newValue,r.baseVersion));if(t.shouldReceiveAttributes){const n=Lg(t,r.key,r.oldValue);n&&e.unshift(n)}return e}return r.range=r.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[r]}),de(Ue,Be,(r,t)=>{const e=[];r.range.start.hasSameParentAs(t.deletionPosition)&&(r.range.containsPosition(t.deletionPosition)||r.range.start.isEqual(t.deletionPosition))&&e.push(wt._createFromPositionAndShift(t.graveyardPosition,1));const n=r.range._getTransformedByMergeOperation(t);return n.isCollapsed||e.push(n),e.map(s=>new Ue(s,r.key,r.oldValue,r.newValue,r.baseVersion))}),de(Ue,ge,(r,t)=>function(n,s){const l=wt._createFromPositionAndShift(s.sourcePosition,s.howMany);let h=null,p=[];l.containsRange(n,!0)?h=n:n.start.hasSameParentAs(l.start)?(p=n.getDifference(l),h=n.getIntersection(l)):p=[n];const b=[];for(let A of p){A=A._getTransformedByDeletion(s.sourcePosition,s.howMany);const C=s.getMovedRangeStart(),E=A.start.hasSameParentAs(C),P=A._getTransformedByInsertion(C,s.howMany,E);b.push(...P)}return h&&b.push(h._getTransformedByMove(s.sourcePosition,s.targetPosition,s.howMany,!1)[0]),b}(r.range,t).map(n=>new Ue(n,r.key,r.oldValue,r.newValue,r.baseVersion))),de(Ue,Se,(r,t)=>{if(r.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||r.range.end.offset++,[r];if(r.range.start.hasSameParentAs(t.splitPosition)&&r.range.containsPosition(t.splitPosition)){const e=r.clone();return e.range=new wt(t.moveTargetPosition.clone(),r.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),r.range.end=t.splitPosition.clone(),r.range.end.stickiness="toPrevious",[r,e]}return r.range=r.range._getTransformedBySplitOperation(t),[r]}),de(Je,Ue,(r,t)=>{const e=[r];if(r.shouldReceiveAttributes&&r.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(r.position)){const n=Lg(r,t.key,t.newValue);n&&e.push(n)}return e}),de(Je,Je,(r,t,e)=>(r.position.isEqual(t.position)&&e.aIsStrong||(r.position=r.position._getTransformedByInsertOperation(t)),[r])),de(Je,ge,(r,t)=>(r.position=r.position._getTransformedByMoveOperation(t),[r])),de(Je,Se,(r,t)=>(r.position=r.position._getTransformedBySplitOperation(t),[r])),de(Je,Be,(r,t)=>(r.position=r.position._getTransformedByMergeOperation(t),[r])),de(_i,Je,(r,t)=>(r.oldRange&&(r.oldRange=r.oldRange._getTransformedByInsertOperation(t)[0]),r.newRange&&(r.newRange=r.newRange._getTransformedByInsertOperation(t)[0]),[r])),de(_i,_i,(r,t,e)=>{if(r.name==t.name){if(!e.aIsStrong)return[new Ve(0)];r.oldRange=t.newRange?t.newRange.clone():null}return[r]}),de(_i,Be,(r,t)=>(r.oldRange&&(r.oldRange=r.oldRange._getTransformedByMergeOperation(t)),r.newRange&&(r.newRange=r.newRange._getTransformedByMergeOperation(t)),[r])),de(_i,ge,(r,t,e)=>{if(r.oldRange&&(r.oldRange=wt._createFromRanges(r.oldRange._getTransformedByMoveOperation(t))),r.newRange){if(e.abRelation){const n=wt._createFromRanges(r.newRange._getTransformedByMoveOperation(t));if("left"==e.abRelation.side&&t.targetPosition.isEqual(r.newRange.start))return r.newRange.end=n.end,r.newRange.start.path=e.abRelation.path,[r];if("right"==e.abRelation.side&&t.targetPosition.isEqual(r.newRange.end))return r.newRange.start=n.start,r.newRange.end.path=e.abRelation.path,[r]}r.newRange=wt._createFromRanges(r.newRange._getTransformedByMoveOperation(t))}return[r]}),de(_i,Se,(r,t,e)=>{if(r.oldRange&&(r.oldRange=r.oldRange._getTransformedBySplitOperation(t)),r.newRange){if(e.abRelation){const n=r.newRange._getTransformedBySplitOperation(t);return r.newRange.start.isEqual(t.splitPosition)&&e.abRelation.wasStartBeforeMergedElement?r.newRange.start=Dt._createAt(t.insertionPosition):r.newRange.start.isEqual(t.splitPosition)&&!e.abRelation.wasInLeftElement&&(r.newRange.start=Dt._createAt(t.moveTargetPosition)),r.newRange.end=r.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasInRightElement?Dt._createAt(t.moveTargetPosition):r.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasEndBeforeMergedElement?Dt._createAt(t.insertionPosition):n.end,[r]}r.newRange=r.newRange._getTransformedBySplitOperation(t)}return[r]}),de(Be,Je,(r,t)=>(r.sourcePosition.hasSameParentAs(t.position)&&(r.howMany+=t.howMany),r.sourcePosition=r.sourcePosition._getTransformedByInsertOperation(t),r.targetPosition=r.targetPosition._getTransformedByInsertOperation(t),[r])),de(Be,Be,(r,t,e)=>{if(r.sourcePosition.isEqual(t.sourcePosition)&&r.targetPosition.isEqual(t.targetPosition)){if(e.bWasUndone){const n=t.graveyardPosition.path.slice();return n.push(0),r.sourcePosition=new Dt(t.graveyardPosition.root,n),r.howMany=0,[r]}return[new Ve(0)]}if(r.sourcePosition.isEqual(t.sourcePosition)&&!r.targetPosition.isEqual(t.targetPosition)&&!e.bWasUndone&&"splitAtSource"!=e.abRelation){const n="$graveyard"==r.targetPosition.root.rootName,s="$graveyard"==t.targetPosition.root.rootName;if(s&&!n||(!n||s)&&e.aIsStrong){const l=t.targetPosition._getTransformedByMergeOperation(t),h=r.targetPosition._getTransformedByMergeOperation(t);return[new ge(l,r.howMany,h,0)]}return[new Ve(0)]}return r.sourcePosition.hasSameParentAs(t.targetPosition)&&(r.howMany+=t.howMany),r.sourcePosition=r.sourcePosition._getTransformedByMergeOperation(t),r.targetPosition=r.targetPosition._getTransformedByMergeOperation(t),r.graveyardPosition.isEqual(t.graveyardPosition)&&e.aIsStrong||(r.graveyardPosition=r.graveyardPosition._getTransformedByMergeOperation(t)),[r]}),de(Be,ge,(r,t,e)=>{const n=wt._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!e.bWasUndone&&!e.forceWeakRemove&&r.deletionPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(r.sourcePosition)?[new Ve(0)]:(r.sourcePosition.hasSameParentAs(t.targetPosition)&&(r.howMany+=t.howMany),r.sourcePosition.hasSameParentAs(t.sourcePosition)&&(r.howMany-=t.howMany),r.sourcePosition=r.sourcePosition._getTransformedByMoveOperation(t),r.targetPosition=r.targetPosition._getTransformedByMoveOperation(t),r.graveyardPosition.isEqual(t.targetPosition)||(r.graveyardPosition=r.graveyardPosition._getTransformedByMoveOperation(t)),[r])}),de(Be,Se,(r,t,e)=>{if(t.graveyardPosition&&(r.graveyardPosition=r.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),r.deletionPosition.isEqual(t.graveyardPosition)&&(r.howMany=t.howMany)),r.targetPosition.isEqual(t.splitPosition)){const n=0!=t.howMany,s=t.graveyardPosition&&r.deletionPosition.isEqual(t.graveyardPosition);if(n||s||"mergeTargetNotMoved"==e.abRelation)return r.sourcePosition=r.sourcePosition._getTransformedBySplitOperation(t),[r]}if(r.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==e.abRelation)return r.howMany=0,r.targetPosition=r.targetPosition._getTransformedBySplitOperation(t),[r];if("mergeSameElement"==e.abRelation||r.sourcePosition.offset>0)return r.sourcePosition=t.moveTargetPosition.clone(),r.targetPosition=r.targetPosition._getTransformedBySplitOperation(t),[r]}return r.sourcePosition.hasSameParentAs(t.splitPosition)&&(r.howMany=t.splitPosition.offset),r.sourcePosition=r.sourcePosition._getTransformedBySplitOperation(t),r.targetPosition=r.targetPosition._getTransformedBySplitOperation(t),[r]}),de(ge,Je,(r,t)=>{const e=wt._createFromPositionAndShift(r.sourcePosition,r.howMany)._getTransformedByInsertOperation(t,!1)[0];return r.sourcePosition=e.start,r.howMany=e.end.offset-e.start.offset,r.targetPosition.isEqual(t.position)||(r.targetPosition=r.targetPosition._getTransformedByInsertOperation(t)),[r]}),de(ge,ge,(r,t,e)=>{const n=wt._createFromPositionAndShift(r.sourcePosition,r.howMany),s=wt._createFromPositionAndShift(t.sourcePosition,t.howMany);let l,h=e.aIsStrong,p=!e.aIsStrong;if("insertBefore"==e.abRelation||"insertAfter"==e.baRelation?p=!0:"insertAfter"!=e.abRelation&&"insertBefore"!=e.baRelation||(p=!1),l=r.targetPosition.isEqual(t.targetPosition)&&p?r.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):r.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Pg(r,t)&&Pg(t,r))return[t.getReversed()];if(n.containsPosition(t.targetPosition)&&n.containsRange(s,!0))return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),qr([n],l);if(s.containsPosition(r.targetPosition)&&s.containsRange(n,!0))return n.start=n.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),n.end=n.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),qr([n],l);const b=qe(r.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==b||"extension"==b)return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),qr([n],l);"remove"!=r.type||"remove"==t.type||e.aWasUndone||e.forceWeakRemove?"remove"==r.type||"remove"!=t.type||e.bWasUndone||e.forceWeakRemove||(h=!1):h=!0;const A=[],C=n.getDifference(s);for(const P of C){P.start=P.start._getTransformedByDeletion(t.sourcePosition,t.howMany),P.end=P.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const F="same"==qe(P.start.getParentPath(),t.getMovedRangeStart().getParentPath()),j=P._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,F);A.push(...j)}const E=n.getIntersection(s);return null!==E&&h&&(E.start=E.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),E.end=E.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===A.length?A.push(E):1==A.length?s.start.isBefore(n.start)||s.start.isEqual(n.start)?A.unshift(E):A.push(E):A.splice(1,0,E)),0===A.length?[new Ve(r.baseVersion)]:qr(A,l)}),de(ge,Se,(r,t,e)=>{let n=r.targetPosition.clone();r.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=e.abRelation||(n=r.targetPosition._getTransformedBySplitOperation(t));const s=wt._createFromPositionAndShift(r.sourcePosition,r.howMany);if(s.end.isEqual(t.insertionPosition))return t.graveyardPosition||r.howMany++,r.targetPosition=n,[r];if(s.start.hasSameParentAs(t.splitPosition)&&s.containsPosition(t.splitPosition)){let h=new wt(t.splitPosition,s.end);return h=h._getTransformedBySplitOperation(t),qr([new wt(s.start,t.splitPosition),h],n)}r.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==e.abRelation&&(n=t.moveTargetPosition),r.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==e.abRelation&&(n=r.targetPosition);const l=[s._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const h=s.start.isEqual(t.graveyardPosition)||s.containsPosition(t.graveyardPosition);r.howMany>1&&h&&!e.aWasUndone&&l.push(wt._createFromPositionAndShift(t.insertionPosition,1))}return qr(l,n)}),de(ge,Be,(r,t,e)=>{const n=wt._createFromPositionAndShift(r.sourcePosition,r.howMany);if(t.deletionPosition.hasSameParentAs(r.sourcePosition)&&n.containsPosition(t.sourcePosition))if("remove"!=r.type||e.forceWeakRemove){if(1==r.howMany)return e.bWasUndone?(r.sourcePosition=t.graveyardPosition.clone(),r.targetPosition=r.targetPosition._getTransformedByMergeOperation(t),[r]):[new Ve(0)]}else if(!e.aWasUndone){const l=[];let h=t.graveyardPosition.clone(),p=t.targetPosition._getTransformedByMergeOperation(t);r.howMany>1&&(l.push(new ge(r.sourcePosition,r.howMany-1,r.targetPosition,0)),h=h._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany-1),p=p._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany-1));const b=t.deletionPosition._getCombined(r.sourcePosition,r.targetPosition),A=new ge(h,1,b,0),C=A.getMovedRangeStart().path.slice();C.push(0);const E=new Dt(A.targetPosition.root,C);p=p._getTransformedByMove(h,b,1);const P=new ge(p,t.howMany,E,0);return l.push(A),l.push(P),l}const s=wt._createFromPositionAndShift(r.sourcePosition,r.howMany)._getTransformedByMergeOperation(t);return r.sourcePosition=s.start,r.howMany=s.end.offset-s.start.offset,r.targetPosition=r.targetPosition._getTransformedByMergeOperation(t),[r]}),de(wi,Je,(r,t)=>(r.position=r.position._getTransformedByInsertOperation(t),[r])),de(wi,Be,(r,t)=>r.position.isEqual(t.deletionPosition)?(r.position=t.graveyardPosition.clone(),r.position.stickiness="toNext",[r]):(r.position=r.position._getTransformedByMergeOperation(t),[r])),de(wi,ge,(r,t)=>(r.position=r.position._getTransformedByMoveOperation(t),[r])),de(wi,wi,(r,t,e)=>{if(r.position.isEqual(t.position)){if(!e.aIsStrong)return[new Ve(0)];r.oldName=t.newName}return[r]}),de(wi,Se,(r,t)=>{if("same"==qe(r.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){const e=new wi(r.position.getShiftedBy(1),r.oldName,r.newName,0);return[r,e]}return r.position=r.position._getTransformedBySplitOperation(t),[r]}),de(zn,zn,(r,t,e)=>{if(r.root===t.root&&r.key===t.key){if(!e.aIsStrong||r.newValue===t.newValue)return[new Ve(0)];r.oldValue=t.newValue}return[r]}),de(mn,mn,(r,t)=>r.rootName===t.rootName&&r.isAdd===t.isAdd?[new Ve(0)]:[r]),de(Se,Je,(r,t)=>(r.splitPosition.hasSameParentAs(t.position)&&r.splitPosition.offset{if(!r.graveyardPosition&&!e.bWasUndone&&r.splitPosition.hasSameParentAs(t.sourcePosition)){const n=t.graveyardPosition.path.slice();n.push(0);const s=new Dt(t.graveyardPosition.root,n),l=Se.getInsertionPosition(new Dt(t.graveyardPosition.root,n)),h=new Se(s,0,l,null,0);return r.splitPosition=r.splitPosition._getTransformedByMergeOperation(t),r.insertionPosition=Se.getInsertionPosition(r.splitPosition),r.graveyardPosition=h.insertionPosition.clone(),r.graveyardPosition.stickiness="toNext",[h,r]}return r.splitPosition.hasSameParentAs(t.deletionPosition)&&!r.splitPosition.isAfter(t.deletionPosition)&&r.howMany--,r.splitPosition.hasSameParentAs(t.targetPosition)&&(r.howMany+=t.howMany),r.splitPosition=r.splitPosition._getTransformedByMergeOperation(t),r.insertionPosition=Se.getInsertionPosition(r.splitPosition),r.graveyardPosition&&(r.graveyardPosition=r.graveyardPosition._getTransformedByMergeOperation(t)),[r]}),de(Se,ge,(r,t,e)=>{const n=wt._createFromPositionAndShift(t.sourcePosition,t.howMany);if(r.graveyardPosition){const l=n.start.isEqual(r.graveyardPosition)||n.containsPosition(r.graveyardPosition);if(!e.bWasUndone&&l){const h=r.splitPosition._getTransformedByMoveOperation(t),p=r.graveyardPosition._getTransformedByMoveOperation(t),b=p.path.slice();b.push(0);const A=new Dt(p.root,b);return[new ge(h,r.howMany,A,0)]}r.graveyardPosition=r.graveyardPosition._getTransformedByMoveOperation(t)}const s=r.splitPosition.isEqual(t.targetPosition);if(s&&("insertAtSource"==e.baRelation||"splitBefore"==e.abRelation))return r.howMany+=t.howMany,r.splitPosition=r.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),r.insertionPosition=Se.getInsertionPosition(r.splitPosition),[r];if(s&&e.abRelation&&e.abRelation.howMany){const{howMany:l,offset:h}=e.abRelation;return r.howMany+=l,r.splitPosition=r.splitPosition.getShiftedBy(h),[r]}return r.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(r.splitPosition)?(r.howMany-=t.howMany-(r.splitPosition.offset-t.sourcePosition.offset),r.splitPosition.hasSameParentAs(t.targetPosition)&&r.splitPosition.offset{if(r.splitPosition.isEqual(t.splitPosition)){if(!r.graveyardPosition&&!t.graveyardPosition)return[new Ve(0)];if(r.graveyardPosition&&t.graveyardPosition&&r.graveyardPosition.isEqual(t.graveyardPosition))return[new Ve(0)];if("splitBefore"==e.abRelation)return r.howMany=0,r.graveyardPosition=r.graveyardPosition._getTransformedBySplitOperation(t),[r]}if(r.graveyardPosition&&t.graveyardPosition&&r.graveyardPosition.isEqual(t.graveyardPosition)){const n="$graveyard"==r.splitPosition.root.rootName,s="$graveyard"==t.splitPosition.root.rootName;if(s&&!n||(!n||s)&&e.aIsStrong){const l=[];return t.howMany&&l.push(new ge(t.moveTargetPosition,t.howMany,t.splitPosition,0)),r.howMany&&l.push(new ge(r.splitPosition,r.howMany,r.moveTargetPosition,0)),l}return[new Ve(0)]}if(r.graveyardPosition&&(r.graveyardPosition=r.graveyardPosition._getTransformedBySplitOperation(t)),r.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==e.abRelation)return r.howMany++,[r];if(t.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==e.baRelation){const n=t.insertionPosition.path.slice();n.push(0);const s=new Dt(t.insertionPosition.root,n);return[r,new ge(r.insertionPosition,1,s,0)]}return r.splitPosition.hasSameParentAs(t.splitPosition)&&r.splitPosition.offset{const e=t[0];e.isDocumentOperation&&T_.call(this,e)},{priority:"low"})}function T_(r){const t=this.getTransformedByOperation(r);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}ii.prototype.is=function(r){return"livePosition"===r||"model:livePosition"===r||"position"==r||"model:position"===r};class Yr{constructor(t={}){"string"==typeof t&&(t="transparent"===t?{isUndoable:!1}:{},kt("batch-constructor-deprecated-string-type"));const{isUndoable:e=!0,isLocal:n=!0,isUndo:s=!1,isTyping:l=!1}=t;this.operations=[],this.isUndoable=e,this.isLocal=n,this.isUndo=s,this.isTyping=l}get type(){return kt("batch-type-deprecated"),"default"}get baseVersion(){for(const t of this.operations)if(null!==t.baseVersion)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}var S_=Object.defineProperty,I_=Object.defineProperties,D_=Object.getOwnPropertyDescriptors,Ng=Object.getOwnPropertySymbols,M_=Object.prototype.hasOwnProperty,L_=Object.prototype.propertyIsEnumerable,Og=(r,t,e)=>t in r?S_(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Bg=(r,t)=>{for(var e in t||(t={}))M_.call(t,e)&&Og(r,e,t[e]);if(Ng)for(var e of Ng(t))L_.call(t,e)&&Og(r,e,t[e]);return r};class P_{constructor(t){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=t}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(t){const e=t;switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const n of e.range.getItems({shallow:!0}))this._isInInsertedElement(n.parent)||this._markAttribute(n);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const n=this._isInInsertedElement(e.sourcePosition.parent),s=this._isInInsertedElement(e.targetPosition.parent);n||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),s||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const n=wt._createFromPositionAndShift(e.position,1);for(const s of this._markerCollection.getMarkersIntersectingRange(n)){const l=s.getData();this.bufferMarkerChange(s.name,l,l)}break}case"split":{const n=e.splitPosition.parent;this._isInInsertedElement(n)||this._markRemove(n,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{const n=e.sourcePosition.parent;this._isInInsertedElement(n.parent)||this._markRemove(n.parent,n.startOffset,1),this._markInsert(e.graveyardPosition.parent,e.graveyardPosition.offset,1);const l=e.targetPosition.parent;this._isInInsertedElement(l)||this._markInsert(l,e.targetPosition.offset,n.maxOffset);break}case"detachRoot":case"addRoot":{const n=e.affectedSelectable;if(!n._isLoaded||n.isAttached()==e.isAdd)return;this._bufferRootStateChange(e.rootName,e.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":if(!e.root._isLoaded)return;this._bufferRootAttributeChange(e.root.rootName,e.key,e.oldValue,e.newValue)}this._cachedChanges=null}bufferMarkerChange(t,e,n){e.range&&e.range.root.is("rootElement")&&!e.range.root._isLoaded&&(e.range=null),n.range&&n.range.root.is("rootElement")&&!n.range.root._isLoaded&&(n.range=null);let s=this._changedMarkers.get(t);s?s.newMarkerData=n:(s={newMarkerData:n,oldMarkerData:e},this._changedMarkers.set(t,s)),null==s.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(t)}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.oldMarkerData.range&&t.push({name:e,range:n.oldMarkerData.range});return t}getMarkersToAdd(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.newMarkerData.range&&t.push({name:e,range:n.newMarkerData.range});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map(([t,e])=>({name:t,data:{oldRange:e.oldMarkerData.range,newRange:e.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0||this._changedRoots.size>0)return!0;for(const{newMarkerData:t,oldMarkerData:e}of this._changedMarkers.values()){if(t.affectsData!==e.affectsData)return!0;if(t.affectsData){const n=t.range&&!e.range,s=!t.range&&e.range,l=t.range&&e.range&&!t.range.isEqual(e.range);if(n||s||l)return!0}}return!1}getChanges(t={}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const n of this._changesInElement.keys()){const s=this._changesInElement.get(n).sort((C,E)=>C.offset===E.offset?C.type!=E.type?"remove"==C.type?-1:1:0:C.offsetn.position.root!=s.position.root?n.position.root.rootNamen);for(const n of e)delete n.changeCount,"attribute"==n.type&&(delete n.position,delete n.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(O_),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(t=>{const e=Bg({},t);return void 0!==e.state&&delete e.attributes,e})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(t,e){if(!this._changedRoots.has(t))return void this._changedRoots.set(t,{name:t,state:e?"attached":"detached"});const n=this._changedRoots.get(t);void 0!==n.state?(delete n.state,void 0===n.attributes&&this._changedRoots.delete(t)):n.state=e?"attached":"detached"}_bufferRootAttributeChange(t,e,n,s){const l=this._changedRoots.get(t)||{name:t},h=l.attributes||{};if(h[e]){const p=h[e];s===p.oldValue?delete h[e]:p.newValue=s}else h[e]={oldValue:n,newValue:s};0===Object.entries(h).length?(delete l.attributes,void 0===l.state&&this._changedRoots.delete(t)):(l.attributes=h,this._changedRoots.set(t,l))}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);const e=wt._createOn(t);for(const n of this._markerCollection.getMarkersIntersectingRange(e)){const s=n.getData();this.bufferMarkerChange(n.name,s,s)}this._cachedChanges=null}_bufferRootLoad(t){if(t.isAttached()){this._bufferRootStateChange(t.rootName,!0),this._markInsert(t,0,t.maxOffset);for(const n of t.getAttributeKeys())this._bufferRootAttributeChange(t.rootName,n,null,t.getAttribute(n));for(const n of this._markerCollection)if(n.getRange().root==t){const s=n.getData();this.bufferMarkerChange(n.name,(e=Bg({},s),I_(e,D_({range:null}))),s)}var e}}_markInsert(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const s={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,s)}_markRemove(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const s={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,s),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshot(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let s=0;sn.offset){if(s>l){const h={type:"attribute",offset:l,howMany:s-l,count:this._changeCount++};this._handleChange(h,e),e.push(h)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offsetl?(t.nodesToHandle=s-l,t.offset=l):t.nodesToHandle=0);if("remove"==n.type&&t.offsetn.offset){const h={type:"attribute",offset:n.offset,howMany:s-n.offset,count:this._changeCount++};this._handleChange(h,e),e.push(h),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==n.type&&(t.offset>=n.offset&&s<=l?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&s>=l&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n){return{type:"insert",position:Dt._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(t,e,n){return{type:"remove",position:Dt._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const s=[];n=new Map(n);for(const[l,h]of e){const p=n.has(l)?n.get(l):null;p!==h&&s.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:l,attributeOldValue:h,attributeNewValue:p,changeCount:this._changeCount++}),n.delete(l)}for(const[l,h]of n)s.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:l,attributeOldValue:null,attributeNewValue:h,changeCount:this._changeCount++});return s}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),s=t.startOffset;if(n)for(const l of n)if("insert"==l.type&&s>=l.offset&&sn){for(let h=0;hthis._version+1&&this._gaps.set(this._version,t),this._version=t}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(t){if(t.baseVersion!==this.version)throw new W("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}getOperations(t,e=this.version){if(!this._operations.length)return[];const n=this._operations[0];void 0===t&&(t=n.baseVersion);let s=e-1;for(const[p,b]of this._gaps)t>p&&tp&&sthis.lastOperation.baseVersion)return[];let l=this._baseVersionToOperationIndex.get(t);void 0===l&&(l=0);let h=this._baseVersionToOperationIndex.get(s);return void 0===h&&(h=this._operations.length-1),this._operations.slice(l,h+1)}getOperation(t){const e=this._baseVersionToOperationIndex.get(t);if(void 0!==e)return this._operations[e]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class Ic extends me{constructor(t,e,n="main"){super(e),this._isAttached=!0,this._isLoaded=!0,this._document=t,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}Ic.prototype.is=function(r,t){return t?t===this.name&&("rootElement"===r||"model:rootElement"===r||"element"===r||"model:element"===r):"rootElement"===r||"model:rootElement"===r||"element"===r||"model:element"===r||"node"===r||"model:node"===r};var F_=Object.defineProperty,z_=Object.defineProperties,R_=Object.getOwnPropertyDescriptors,zg=Object.getOwnPropertySymbols,Z_=Object.prototype.hasOwnProperty,U_=Object.prototype.propertyIsEnumerable,Rg=(r,t,e)=>t in r?F_(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Zg=(r,t)=>{for(var e in t||(t={}))Z_.call(t,e)&&Rg(r,e,t[e]);if(zg)for(var e of zg(t))U_.call(t,e)&&Rg(r,e,t[e]);return r},Ug=(r,t)=>z_(r,R_(t));const jg="$graveyard";class j_ extends(ie()){constructor(t){super(),this.model=t,this.history=new B_,this.selection=new rn(this),this.roots=new di({idProperty:"rootName"}),this.differ=new P_(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",jg),this.listenTo(t,"applyOperation",(e,n)=>{const s=n[0];s.isDocumentOperation&&this.differ.bufferOperation(s)},{priority:"high"}),this.listenTo(t,"applyOperation",(e,n)=>{const s=n[0];s.isDocumentOperation&&this.history.addOperation(s)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(t.markers,"update",(e,n,s,l,h)=>{const p=Ug(Zg({},n.getData()),{range:l});this.differ.bufferMarkerChange(n.name,h,p),null===s&&n.on("change",(b,A)=>{const C=n.getData();this.differ.bufferMarkerChange(n.name,Ug(Zg({},C),{range:A}),C)})}),this.registerPostFixer(e=>{let n=!1;for(const s of this.roots)s.isAttached()||s.isEmpty||(e.remove(e.createRangeIn(s)),n=!0);for(const s of this.model.markers)s.getRange().root.isAttached()||(e.removeMarker(s),n=!0);return n})}get version(){return this.history.version}set version(t){this.history.version=t}get graveyard(){return this.getRoot(jg)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new W("model-document-createroot-name-exists",this,{name:e});const n=new Ic(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(t=!1){return this.getRoots(t).map(e=>e.rootName)}getRoots(t=!1){return this.roots.filter(e=>e!=this.graveyard&&(t||e.isAttached())&&e._isLoaded)}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=Xl(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const t=this.getRoots();return t.length?t[0]:this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,s=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(s)||e.createRange(s)}_validateSelectionRange(t){return Vg(t.start)&&Vg(t.end)}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),e=n(t),e)break}while(e)}}function Vg(r){const t=r.textNode;if(t){const e=t.data,n=r.offset-t.startOffset;return!Fs(e,n)&&!zs(e,n)}return!0}var V_=Object.defineProperty,q_=Object.defineProperties,Y_=Object.getOwnPropertyDescriptors,qg=Object.getOwnPropertySymbols,H_=Object.prototype.hasOwnProperty,G_=Object.prototype.propertyIsEnumerable,Yg=(r,t,e)=>t in r?V_(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class W_ extends(ie()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){return this._markers.has(t instanceof Hr?t.name:t)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,s=!1){const l=t instanceof Hr?t.name:t;if(l.includes(","))throw new W("markercollection-incorrect-marker-name",this);const h=this._markers.get(l);if(h){const C=h.getData(),E=h.getRange();let P=!1;return E.isEqual(e)||(h._attachLiveRange(Ni.fromRange(e)),P=!0),n!=h.managedUsingOperations&&(h._managedUsingOperations=n,P=!0),"boolean"==typeof s&&s!=h.affectsData&&(h._affectsData=s,P=!0),P&&this.fire(`update:${l}`,h,E,e,C),h}const p=Ni.fromRange(e),b=new Hr(l,p,n,s);var A;return this._markers.set(l,b),this.fire(`update:${l}`,b,null,e,(A=((C,E)=>{for(var P in E||(E={}))H_.call(E,P)&&Yg(C,P,E[P]);if(qg)for(var P of qg(E))G_.call(E,P)&&Yg(C,P,E[P]);return C})({},b.getData()),q_(A,Y_({range:null})))),b}_remove(t){const e=t instanceof Hr?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire(`update:${e}`,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}_refresh(t){const e=t instanceof Hr?t.name:t,n=this._markers.get(e);if(!n)throw new W("markercollection-refresh-marker-not-exists",this);const s=n.getRange();this.fire(`update:${e}`,n,s,s,n.getData())}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&&(yield e)}*getMarkersIntersectingRange(t){for(const e of this)null!==e.getRange().getIntersection(t)&&(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&&(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}class Hr extends(ie(gn)){constructor(t,e,n,s){super(),this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=s}get managedUsingOperations(){if(!this._liveRange)throw new W("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new W("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new W("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new W("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new W("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Hr.prototype.is=function(r){return"marker"===r||"model:marker"===r};class Q_ extends Oi{constructor(t,e){super(null),this.sourcePosition=t.clone(),this.howMany=e}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t}_validate(){if(this.sourcePosition.root.document)throw new W("detach-operation-on-document-node",this)}_execute(){yg(wt._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Rn extends gn{constructor(t){super(),this.markers=new Map,this._children=new Wo,t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)e.push(n.name?me.fromJSON(n):_e.fromJSON(n));return new Rn(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n="string"==typeof(s=e)?[new _e(s)]:(ti(s)||(s=[s]),Array.from(s).map(l=>"string"==typeof l?new _e(l):l instanceof Mi?new _e(l.data,l.getAttributes()):l));var s;for(const s of n)null!==s.parent&&s._remove(),s.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const s of n)s.parent=null;return n}}Rn.prototype.is=function(r){return"documentFragment"===r||"model:documentFragment"===r};class X_{constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new _e(t,e)}createElement(t,e){return new me(t,e)}createDocumentFragment(){return new Rn}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof _e&&""==t.data)return;const s=Dt._createAt(e,n);if(t.parent){if(Wg(t.root,s.root))return void this.move(wt._createOn(t),s);if(t.root.document)throw new W("model-writer-insert-forbidden-move",this);this.remove(t)}const h=new Je(s,t,s.root.document?s.root.document.version:null);if(t instanceof _e&&(h.shouldReceiveAttributes=!0),this.batch.addOperation(h),this.model.applyOperation(h),t instanceof Rn)for(const[p,b]of t.markers){const A=Dt._createAt(b.root,0),C={range:new wt(b.start._getCombined(A,s),b.end._getCombined(A,s)),usingOperation:!0,affectsData:!0};this.model.markers.has(p)?this.updateMarker(p,C):this.addMarker(p,C)}}insertText(t,e,n,s){e instanceof Rn||e instanceof me||e instanceof Dt?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,s)}insertElement(t,e,n,s){e instanceof Rn||e instanceof me||e instanceof Dt?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,s)}append(t,e){this.insert(t,e,"end")}appendText(t,e,n){e instanceof Rn||e instanceof me?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof Rn||e instanceof me?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof wt){const s=n.getMinimalFlatRanges();for(const l of s)Hg(this,t,e,l)}else Gg(this,t,e,n)}setAttributes(t,e){for(const[n,s]of ri(t))this.setAttribute(n,s,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof wt){const n=e.getMinimalFlatRanges();for(const s of n)Hg(this,t,null,s)}else Gg(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=n=>{for(const s of n.getAttributeKeys())this.removeAttribute(s,n)};if(t instanceof wt)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof wt))throw new W("writer-move-invalid-range",this);if(!t.isFlat)throw new W("writer-move-range-not-flat",this);const s=Dt._createAt(e,n);if(s.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!Wg(t.root,s.root))throw new W("writer-move-different-document",this);const h=new ge(t.start,t.end.offset-t.start.offset,s,t.root.document?t.root.document.version:null);this.batch.addOperation(h),this.model.applyOperation(h)}remove(t){this._assertWriterUsedCorrectly();const e=(t instanceof wt?t:wt._createOn(t)).getMinimalFlatRanges().reverse();for(const n of e)this._addOperationForAffectedMarkers("move",n),K_(n.start,n.end.offset-n.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof me))throw new W("writer-merge-no-element-before",this);if(!(n instanceof me))throw new W("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n)}createPositionAt(t,e){return this.model.createPositionAt(t,e)}createPositionAfter(t){return this.model.createPositionAfter(t)}createPositionBefore(t){return this.model.createPositionBefore(t)}createRange(t,e){return this.model.createRange(t,e)}createRangeIn(t){return this.model.createRangeIn(t)}createRangeOn(t){return this.model.createRangeOn(t)}createSelection(...t){return this.model.createSelection(...t)}_mergeDetached(t){const e=t.nodeBefore,n=t.nodeAfter;this.move(wt._createIn(n),Dt._createAt(e,"end")),this.remove(n)}_merge(t){const e=Dt._createAt(t.nodeBefore,"end"),n=Dt._createAt(t.nodeAfter,0),l=new Dt(t.root.document.graveyard,[0]),p=new Be(n,t.nodeAfter.maxOffset,e,l,t.root.document.version);this.batch.addOperation(p),this.model.applyOperation(p)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof me))throw new W("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,s=new wi(Dt._createBefore(t),t.name,e,n);this.batch.addOperation(s),this.model.applyOperation(s)}split(t,e){this._assertWriterUsedCorrectly();let n,s,l=t.parent;if(!l.parent)throw new W("writer-split-element-no-parent",this);if(e||(e=l.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new W("writer-split-invalid-limit-element",this);do{const h=l.root.document?l.root.document.version:null,p=l.maxOffset-t.offset,b=Se.getInsertionPosition(t),A=new Se(t,p,b,null,h);this.batch.addOperation(A),this.model.applyOperation(A),n||s||(n=l,s=t.parent.nextSibling),l=(t=this.createPositionAfter(t.parent)).parent}while(l!==e);return{position:t,range:new wt(Dt._createAt(n,"end"),Dt._createAt(s,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new W("writer-wrap-range-not-flat",this);const n=e instanceof me?e:new me(e);if(n.childCount>0)throw new W("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new W("writer-wrap-element-attached",this);this.insert(n,t.start);const s=new wt(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(s,Dt._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new W("writer-unwrap-element-no-parent",this);this.move(wt._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new W("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,s=e.range,l=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new W("writer-addmarker-marker-exists",this);if(!s)throw new W("writer-addmarker-no-range",this);return n?(ka(this,t,null,s,l),this.model.markers.get(t)):this.model.markers._set(t,s,n,l)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n="string"==typeof t?t:t.name,s=this.model.markers.get(n);if(!s)throw new W("writer-updatemarker-marker-not-exists",this);if(!e)return kt("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(s);const l="boolean"==typeof e.usingOperation,h="boolean"==typeof e.affectsData,p=h?e.affectsData:s.affectsData;if(!l&&!e.range&&!h)throw new W("writer-updatemarker-wrong-options",this);const b=s.getRange(),A=e.range?e.range:b;l&&e.usingOperation!==s.managedUsingOperations?e.usingOperation?ka(this,n,null,A,p):(ka(this,n,b,null,p),this.model.markers._set(n,A,void 0,p)):s.managedUsingOperations?ka(this,n,b,A,p):this.model.markers._set(n,A,void 0,p)}removeMarker(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new W("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);n.managedUsingOperations?ka(this,e,n.getRange(),null,n.affectsData):this.model.markers._remove(e)}addRoot(t,e="$root"){this._assertWriterUsedCorrectly();const n=this.model.document.getRoot(t);if(n&&n.isAttached())throw new W("writer-addroot-root-exists",this);const s=this.model.document,l=new mn(t,e,!0,s,s.version);return this.batch.addOperation(l),this.model.applyOperation(l),this.model.document.getRoot(t)}detachRoot(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?this.model.document.getRoot(t):t;if(!e||!e.isAttached())throw new W("writer-detachroot-no-root",this);for(const l of this.model.markers)l.getRange().root===e&&this.removeMarker(l);for(const l of e.getAttributeKeys())this.removeAttribute(l,e);this.remove(this.createRangeIn(e));const n=this.model.document,s=new mn(e.rootName,e.name,!1,n,n.version);this.batch.addOperation(s),this.model.applyOperation(s)}setSelection(...t){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...t)}setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else for(const[n,s]of ri(t))this._setSelectionAttribute(n,s)}removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else for(const e of t)this._removeSelectionAttribute(e)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t)}_setSelectionAttribute(t,e){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const s=rn._getStoreAttributeKey(t);this.setAttribute(s,e,n.anchor.parent)}n._setAttribute(t,e)}_removeSelectionAttribute(t){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const n=rn._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new W("writer-incorrect-use",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const s=n.getRange();let l=!1;if("move"===t){const h=e;l=h.containsPosition(s.start)||h.start.isEqual(s.start)||h.containsPosition(s.end)||h.end.isEqual(s.end)}else{const b=e.nodeAfter;l=s.start.parent==e.nodeBefore&&s.start.isAtEnd||s.end.parent==b&&0==s.end.offset||s.end.nodeAfter==b||s.start.nodeAfter==b}l&&this.updateMarker(n.name,{range:s})}}}function Hg(r,t,e,n){const s=r.model,l=s.document;let h,p,b,A=n.start;for(const E of n.getWalker({shallow:!0}))b=E.item.getAttribute(t),h&&p!=b&&(p!=e&&C(),A=h),h=E.nextPosition,p=b;function C(){const E=new wt(A,h),F=new Ue(E,t,p,e,E.root.document?l.version:null);r.batch.addOperation(F),s.applyOperation(F)}h instanceof Dt&&h!=A&&p!=e&&C()}function Gg(r,t,e,n){const s=r.model,l=s.document,h=n.getAttribute(t);let p,b;h!=e&&(n.root===n?b=new zn(n,t,h,e,n.document?l.version:null):(p=new wt(Dt._createBefore(n),r.createPositionAfter(n)),b=new Ue(p,t,h,e,p.root.document?l.version:null)),r.batch.addOperation(b),s.applyOperation(b))}function ka(r,t,e,n,s){const l=r.model,p=new _i(t,e,n,l.markers,!!s,l.document.version);r.batch.addOperation(p),l.applyOperation(p)}function K_(r,t,e,n){let s;if(r.root.document){const l=n.document,h=new Dt(l.graveyard,[0]);s=new ge(r,t,h,l.version)}else s=new Q_(r,t);e.addOperation(s),n.applyOperation(s)}function Wg(r,t){return r===t||r instanceof Ic&&t instanceof Ic}function J_(r,t,e={}){if(t.isCollapsed)return;const n=t.getFirstRange();if("$graveyard"==n.root.rootName)return;const s=r.schema;r.change(l=>{if(!e.doNotResetEntireContent&&function(A,C){const E=A.getLimitElement(C);if(!C.containsEntireContent(E))return!1;const P=C.getFirstRange();return P.start.parent!=P.end.parent&&A.checkChild(E,"paragraph")}(s,t))return void function(A,C){const E=A.model.schema.getLimitElement(C);A.remove(A.createRangeIn(E)),Kg(A,A.createPositionAt(E,0),C)}(l,t);const h={};if(!e.doNotAutoparagraph){const A=t.getSelectedElement();A&&Object.assign(h,s.getAttributesWithProperty(A,"copyOnReplace",!0))}const[p,b]=function(A){const C=A.root.document.model,E=A.start;let P=A.end;if(C.hasContent(A,{ignoreMarkers:!0})){const F=function(j){const Y=j.parent,$=Y.root.document.model.schema,st=Y.getAncestors({parentFirst:!0,includeSelf:!0});for(const ft of st){if($.isLimit(ft))return null;if($.isBlock(ft))return ft}}(P);if(F&&P.isTouching(C.createPositionAt(F,0))){const j=C.createSelection(A);C.modifySelection(j,{direction:"backward"});const Y=j.getLastPosition(),$=C.createRange(Y,P);C.hasContent($,{ignoreMarkers:!0})||(P=Y)}}return[ii.fromPosition(E,"toPrevious"),ii.fromPosition(P,"toNext")]}(n);p.isTouching(b)||l.remove(l.createRange(p,b)),e.leaveUnmerged||(function(A,C,E){const P=A.model;if(!Iu(A.model.schema,C,E))return;const[F,j]=function(Y,$){const st=Y.getAncestors(),ft=$.getAncestors();let At=0;for(;st[At]&&st[At]==ft[At];)At++;return[st[At],ft[At]]}(C,E);!F||!j||(!P.hasContent(F,{ignoreMarkers:!0})&&P.hasContent(j,{ignoreMarkers:!0})?Xg(A,C,E,F.parent):Qg(A,C,E,F.parent))}(l,p,b),s.removeDisallowedAttributes(p.parent.getChildren(),l)),Jg(l,t,p),!e.doNotAutoparagraph&&function(A,C){const E=A.checkChild(C,"$text"),P=A.checkChild(C,"paragraph");return!E&&P}(s,p)&&Kg(l,p,t,h),p.detach(),b.detach()})}function Qg(r,t,e,n){const s=t.parent,l=e.parent;if(s!=n&&l!=n){for(t=r.createPositionAfter(s),(e=r.createPositionBefore(l)).isEqual(t)||r.insert(l,t),r.merge(t);e.parent.isEmpty;){const h=e.parent;e=r.createPositionBefore(h),r.remove(h)}Iu(r.model.schema,t,e)&&Qg(r,t,e,n)}}function Xg(r,t,e,n){const s=t.parent,l=e.parent;if(s!=n&&l!=n){for(t=r.createPositionAfter(s),(e=r.createPositionBefore(l)).isEqual(t)||r.insert(s,e);t.parent.isEmpty;){const h=t.parent;t=r.createPositionBefore(h),r.remove(h)}e=r.createPositionBefore(l),function(h,p){const b=p.nodeBefore,A=p.nodeAfter;b.name!=A.name&&h.rename(b,A.name),h.clearAttributes(b),h.setAttributes(Object.fromEntries(A.getAttributes()),b),h.merge(p)}(r,e),Iu(r.model.schema,t,e)&&Xg(r,t,e,n)}}function Iu(r,t,e){const n=t.parent,s=e.parent;return n!=s&&!r.isLimit(n)&&!r.isLimit(s)&&function(l,h,p){const b=new wt(l,h);for(const A of b.getWalker())if(p.isLimit(A.item))return!1;return!0}(t,e,r)}function Kg(r,t,e,n={}){const s=r.createElement("paragraph");r.model.schema.setAllowedAttributes(s,n,r),r.insert(s,t),Jg(r,e,r.createPositionAt(s,0))}function Jg(r,t,e){t instanceof rn?r.setSelection(e):t.setTo(e)}function $g(r,t){const e=[];Array.from(r.getItems({direction:"backward"})).map(n=>t.createRangeOn(n)).filter(n=>(n.start.isAfter(r.start)||n.start.isEqual(r.start))&&(n.end.isBefore(r.end)||n.end.isEqual(r.end))).forEach(n=>{e.push(n.start.parent),t.remove(n)}),e.forEach(n=>{let s=n;for(;s.parent&&s.isEmpty;){const l=t.createRangeOn(s);s=s.parent,t.remove(l)}})}class $_{constructor(t,e,n){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=e.createDocumentFragment(),this._documentFragmentPosition=e.createPositionAt(this._documentFragment,0)}handleNodes(t){for(const e of Array.from(t))this._handleNode(e);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(t){const e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new W("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?wt._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new wt(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){if(this.schema.isObject(t))return void this._handleObject(t);let e=this._checkAndAutoParagraphToAllowedPosition(t);e||(e=this._checkAndSplitToAllowedPosition(t),e)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this._handleDisallowedNode(t)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=ii.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleObject(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}_handleDisallowedNode(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new W("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this._nodeToSelect=this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?t:null,this._filterAttributesOf.push(t)}_setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=ii.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=ii.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof me&&this._canMergeLeft(t)))return;const e=ii._createBefore(t);e.stickiness="toNext";const n=ii.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=ii._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=ii._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_mergeOnRight(){const t=this._lastNode;if(!(t instanceof me&&this._canMergeRight(t)))return;const e=ii._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new W("insertcontent-invalid-insertion-position",this);this.position=Dt._createAt(e.nodeBefore,"end");const n=ii.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=ii._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=ii._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_canMergeLeft(t){const e=t.previousSibling;return e instanceof me&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof me&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_tryAutoparagraphing(t){const e=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,e)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e))}_checkAndAutoParagraphToAllowedPosition(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();const e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){const n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===e&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const n=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=n,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function tm(r,t,e="auto"){const n=r.getSelectedElement();if(n&&t.schema.isObject(n)&&!t.schema.isInline(n))return"before"==e||"after"==e?t.createRange(t.createPositionAt(n,e)):t.createRangeOn(n);const s=Oe(r.getSelectedBlocks());if(!s)return t.createRange(r.focus);if(s.isEmpty)return t.createRange(t.createPositionAt(s,0));const l=t.createPositionAfter(s);return r.focus.isTouching(l)?t.createRange(l):t.createRange(t.createPositionBefore(s))}const ew=' ,.?!:;"-()';function iw(r,t){const{isForward:e,walker:n,unit:s,schema:l,treatEmojiAsSingleUnit:h}=r,{type:p,item:b,nextPosition:A}=t;if("text"==p)return"word"===r.unit?function(C,E){let P=C.position.textNode;for(P||(P=E?C.position.nodeAfter:C.position.nodeBefore);P&&P.is("$text");){const F=C.position.offset-P.startOffset;if(rw(P,F,E))P=E?C.position.nodeAfter:C.position.nodeBefore;else{if(ow(P.data,F,E))break;C.next()}}return C.position}(n,e):function(C,E,P){const F=C.position.textNode;if(F){const j=F.data;let Y=C.position.offset-F.startOffset;for(;Fs(j,Y)||"character"==E&&zs(j,Y)||P&&bl(j,Y);)C.next(),Y=C.position.offset-F.startOffset}return C.position}(n,s,h);if(p==(e?"elementStart":"elementEnd")){if(l.isSelectable(b))return Dt._createAt(b,e?"after":"before");if(l.checkChild(A,"$text"))return A}else{if(l.isLimit(b))return void n.skip(()=>!0);if(l.checkChild(A,"$text"))return A}}function nw(r,t){const n=Dt._createAt(r.root,t?"end":0);return t?new wt(r,n):new wt(n,r)}function ow(r,t,e){return ew.includes(r.charAt(t+(e?0:-1)))}function rw(r,t,e){return t===(e?r.offsetSize:0)}class sw extends(ne()){constructor(){super(),this.markers=new W_,this.document=new j_(this),this.schema=new t_,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(t=>this.decorate(t)),this.on("applyOperation",(t,e)=>{e[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((t,e)=>{if("$marker"===e.name)return!0}),function K0(r){r.document.registerPostFixer(t=>function(e,n){const s=n.document.selection,l=n.schema,h=[];let p=!1;for(const b of s.getRanges()){const A=vg(b,l);A&&!A.isEqual(b)?(h.push(A),p=!0):h.push(b)}return p&&e.setSelection(function(b){const A=[...b],C=new Set;let E=1;for(;E!C.has(F))}(h),{backward:s.isBackward}),!1}(t,r))}(this),this.document.registerPostFixer(cg),this.on("insertContent",(t,[e,n])=>{var s,l,h;t.return=(l=e,h=n,(s=this).change(p=>{const b=h||s.document.selection;b.isCollapsed||s.deleteContent(b,{doNotAutoparagraph:!0});const A=new $_(s,p,b.anchor),C=[];let E;if(l.is("documentFragment")){if(l.markers.size){const j=[];for(const[Y,$]of l.markers){const{start:st,end:ft}=$,At=st.isEqual(ft);j.push({position:st,name:Y,isCollapsed:At},{position:ft,name:Y,isCollapsed:At})}j.sort(({position:Y},{position:$})=>Y.isBefore($)?1:-1);for(const{position:Y,name:$,isCollapsed:st}of j){let ft=null,At=null;const Ft=Y.parent===l&&Y.isAtStart;Ft||Y.parent===l&&Y.isAtEnd?st&&(At=Ft?"start":"end"):(ft=p.createElement("$marker"),p.insert(ft,Y)),C.push({name:$,element:ft,collapsed:At})}}E=l.getChildren()}else E=[l];A.handleNodes(E);let P=A.getSelectionRange();if(l.is("documentFragment")&&C.length){const j=P?Ni.fromRange(P):null,Y={};for(let $=C.length-1;$>=0;$--){const{name:st,element:ft,collapsed:At}=C[$],Ft=!Y[st];if(Ft&&(Y[st]=[]),ft){const jt=p.createPositionAt(ft,"before");Y[st].push(jt),p.remove(ft)}else{const jt=A.getAffectedRange();if(!jt){At&&Y[st].push(A.position);continue}Y[st].push(At?jt[At]:Ft?jt.start:jt.end)}}for(const[$,[st,ft]]of Object.entries(Y))st&&ft&&st.root===ft.root&&p.addMarker($,{usingOperation:!0,affectsData:!0,range:new wt(st,ft)});j&&(P=j.toRange(),j.detach())}P&&(b instanceof rn?p.setSelection(P):b.setTo(P));const F=A.getAffectedRange()||s.createRange(b.anchor);return A.destroy(),F}))}),this.on("insertObject",(t,[e,n,s])=>{t.return=function tw(r,t,e,n={}){if(!r.schema.isObject(t))throw new W("insertobject-element-not-an-object",r,{object:t});const s=e||r.document.selection;let l=s;n.findOptimalPosition&&r.schema.isBlock(t)&&(l=r.createSelection(tm(s,r,n.findOptimalPosition)));const h=Oe(s.getSelectedBlocks()),p={};return h&&Object.assign(p,r.schema.getAttributesWithProperty(h,"copyOnReplace",!0)),r.change(b=>{l.isCollapsed||r.deleteContent(l,{doNotAutoparagraph:!0});let A=t;const C=l.anchor.parent;!r.schema.checkChild(C,t)&&r.schema.checkChild(C,"paragraph")&&r.schema.checkChild("paragraph",t)&&(A=b.createElement("paragraph"),b.insert(t,A)),r.schema.setAllowedAttributes(A,p,b);const E=r.insertContent(A,l);return E.isCollapsed||n.setSelection&&function(P,F,j,Y){const $=P.model;if("on"==j)return void P.setSelection(F,"on");if("after"!=j)throw new W("insertobject-invalid-place-parameter-value",$);let st=F.nextSibling;$.schema.isInline(F)?P.setSelection(F,"after"):(!(st&&$.schema.checkChild(st,"$text"))&&$.schema.checkChild(F.parent,"paragraph")&&(st=P.createElement("paragraph"),$.schema.setAllowedAttributes(st,Y,P),$.insertContent(st,P.createPositionAfter(F))),st&&P.setSelection(st,0))}(b,t,n.setSelection,p),E})}(this,e,n,s)}),this.on("canEditAt",t=>{const e=!this.document.isReadOnly;t.return=e,e||t.stop()})}change(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Yr,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(e){W.rethrowUnexpectedError(e,this)}}enqueueChange(t,e){try{t?"function"==typeof t?(e=t,t=new Yr):t instanceof Yr||(t=new Yr(t)):t=new Yr,this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(n){W.rethrowUnexpectedError(n,this)}}applyOperation(t){t._execute()}insertContent(t,e,n,...s){const l=Du(e,n);return this.fire("insertContent",[t,l,n,...s])}insertObject(t,e,n,s,...l){const h=Du(e,n);return this.fire("insertObject",[t,h,s,s,...l])}deleteContent(t,e){J_(this,t,e)}modifySelection(t,e){!function(n,s,l={}){const h=n.schema,p="backward"!=l.direction,b=l.unit?l.unit:"character",A=!!l.treatEmojiAsSingleUnit,E=new Li({boundaries:nw(s.focus,p),singleCharacters:!0,direction:p?"forward":"backward"}),P={walker:E,schema:h,isForward:p,unit:b,treatEmojiAsSingleUnit:A};let F;for(;F=E.next();){if(F.done)return;const j=iw(P,F.value);if(j)return void(s instanceof rn?n.change(Y=>{Y.setSelectionFocus(j)}):s.setFocus(j))}}(this,t,e)}getSelectedContent(t){return n=t,this.change(s=>{const l=s.createDocumentFragment(),h=n.getFirstRange();if(!h||h.isCollapsed)return l;const p=h.start.root,b=h.start.getCommonPath(h.end),A=p.getNodeByPath(b);let C;C=h.start.parent==h.end.parent?h:s.createRange(s.createPositionAt(A,h.start.path[b.length]),s.createPositionAt(A,h.end.path[b.length]+1));const E=C.end.offset-C.start.offset;for(const P of C.getItems({shallow:!0}))P.is("$textProxy")?s.appendText(P.data,P.getAttributes(),l):s.append(s.cloneElement(P,!0),l);if(C!=h){const P=h._getTransformedByMove(C.start,s.createPositionAt(l,0),E)[0],F=s.createRange(s.createPositionAt(l,0),P.start);$g(s.createRange(P.end,s.createPositionAt(l,"end")),s),$g(F,s)}return l});var n}hasContent(t,e={}){const n=t instanceof wt?t:wt._createIn(t);if(n.isCollapsed)return!1;const{ignoreWhitespaces:s=!1,ignoreMarkers:l=!1}=e;if(!l)for(const h of this.markers.getMarkersIntersectingRange(n))if(h.affectsData)return!0;for(const h of n.getItems())if(this.schema.isContent(h)&&(!h.is("$textProxy")||!s||-1!==h.data.search(/\S/)))return!0;return!1}canEditAt(t){const e=Du(t);return this.fire("canEditAt",[e])}createPositionFromPath(t,e,n){return new Dt(t,e,n)}createPositionAt(t,e){return Dt._createAt(t,e)}createPositionAfter(t){return Dt._createAfter(t)}createPositionBefore(t){return Dt._createBefore(t)}createRange(t,e){return new wt(t,e)}createRangeIn(t){return wt._createIn(t)}createRangeOn(t){return wt._createOn(t)}createSelection(...t){return new Pi(...t)}createBatch(t){return new Yr(t)}createOperationFromJSON(t){return A_.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){this._currentWriter=new X_(this,this._pendingChanges[0].batch);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return t}}function Du(r,t){if(r)return r instanceof Pi||r instanceof rn?r:r instanceof Bn?t||0===t?new Pi(r,t):r.is("rootElement")?new Pi(r,"in"):new Pi(r,"on"):new Pi(r)}class aw extends un{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(t){this.fire(t.type,t)}}class Mu extends un{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(t){this.fire(t.type,t)}}class ko{constructor(t){this.document=t}createDocumentFragment(t){return new fo(this.document,t)}createElement(t,e,n){return new hi(this.document,t,e,n)}createText(t){return new ke(this.document,t)}clone(t,e=!1){return t._clone(e)}appendChild(t,e){return e._appendChild(t)}insertChild(t,e,n){return n._insertChild(t,e)}removeChildren(t,e,n){return n._removeChildren(t,e)}remove(t){const e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}replace(t,e){const n=t.parent;if(n){const s=n.getChildIndex(t);return this.removeChildren(s,1,n),this.insertChild(s,e,n),!0}return!1}unwrapElement(t){const e=t.parent;if(e){const n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}rename(t,e){const n=new hi(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){Ie(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}createPositionAt(t,e){return Bt._createAt(t,e)}createPositionAfter(t){return Bt._createAfter(t)}createPositionBefore(t){return Bt._createBefore(t)}createRange(t,e){return new Gt(t,e)}createRangeOn(t){return Gt._createOn(t)}createRangeIn(t){return Gt._createIn(t)}createSelection(...t){return new Ii(...t)}}class lw{constructor(){this._commands=new Map}add(t,e){this._commands.set(t,e)}get(t){return this._commands.get(t)}execute(t,...e){const n=this.get(t);if(!n)throw new W("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}class cw extends(ne()){constructor(t={}){super();const e=this.constructor;this._context=t.context||new Yl({language:t.language||e.defaultConfig&&e.defaultConfig.language}),this._context._addEditor(this,!t.context);const s=Array.from(e.builtinPlugins||[]);this.config=new $a(t,e.defaultConfig),this.config.define("plugins",s),this.config.define(this._context._getEditorConfig()),this.plugins=new ql(this,s,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new lw,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new sw,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const l=new Rh;this.data=new __(this.model,l),this.editing=new J0(this.model,l),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new w_([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new ah(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new W("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new W("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)||(this._readOnlyLocks.add(t),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new W("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)&&(this._readOnlyLocks.delete(t),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],s=t.get("extraPlugins")||[],l=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(s),n,l)}destroy(){let t=Promise.resolve();return"initializing"==this.state&&(t=new Promise(e=>this.once("ready",e))),t.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(t,...e){try{return this.commands.execute(t,...e)}catch(n){W.rethrowUnexpectedError(n,this)}}focus(){this.editing.view.focus()}static create(...t){throw new Error("This is an abstract method.")}}function Dc(r){return class extends r{setData(t){this.data.set(t)}getData(t){return this.data.get(t)}}}{const r=Dc(Object);Dc.setData=r.prototype.setData,Dc.getData=r.prototype.getData}function Lu(r){return class extends r{updateSourceElement(t){if(!this.sourceElement)throw new W("editor-missing-sourceelement",this);const e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;if(!e&&!n)return void al(this.sourceElement,"");const s="string"==typeof t?t:this.data.get();al(this.sourceElement,s)}}}Lu.updateSourceElement=Lu(Object).prototype.updateSourceElement;class em extends Er{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new di({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if("string"!=typeof t)throw new W("pendingactions-add-invalid-message",this);const e=new(ne());return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const Ae={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',history:'',image:'',imageUpload:'',imageAssetManager:'',imageUrl:'',lowVision:'\n',textAlternative:'',loupe:'',importExport:'',paragraph:'',plus:'',text:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:'',quote:'',threeVerticalDots:'',dragIndicator:''};var im=lt(5542);Rt()(im.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const{threeVerticalDots:nm}=Ae,hw={alignLeft:Ae.alignLeft,bold:Ae.bold,importExport:Ae.importExport,paragraph:Ae.paragraph,plus:Ae.plus,text:Ae.text,threeVerticalDots:Ae.threeVerticalDots,pilcrow:Ae.pilcrow,dragIndicator:Ae.dragIndicator};class Pu extends Wt{constructor(t,e){super(t);const n=this.bindTemplate,s=this.t;this.options=e||{},this.set("ariaLabel",s("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Ye,this.keystrokes=new vi,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new uw(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const l="rtl"===t.uiLanguageDirection;this._focusCycler=new en({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[l?"arrowright":"arrowleft","arrowup"],focusNext:[l?"arrowleft":"arrowright","arrowdown"]}});const h=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var p;this.options.shouldGroupWhenFull&&this.options.isFloating&&h.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:h,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(p=this,p.bindTemplate.to(b=>{b.target===p.element&&b.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new gw(this):new pw(this)}render(){super.render(),this.focusTracker.add(this.element);for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",(t,e)=>{this.focusTracker.add(e.element)}),this.items.on("remove",(t,e)=>{this.focusTracker.remove(e.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e,n){this.items.addMany(this._buildItemsFromConfig(t,e,n))}_buildItemsFromConfig(t,e,n){const s=Zl(t),l=n||s.removeItems;return this._cleanItemsConfiguration(s.items,e,l).map(h=>te(h)?this._createNestedToolbarDropdown(h,e,l):"|"===h?new Bl:"-"===h?new nh:e.create(h)).filter(h=>!!h)}_cleanItemsConfiguration(t,e,n){const s=t.filter((l,h,p)=>"|"===l||-1===n.indexOf(l)&&("-"===l?!this.options.shouldGroupWhenFull||(kt("toolbarview-line-break-ignored-when-grouping-items",p),!1):!(!te(l)&&!e.has(l)&&(kt("toolbarview-item-unavailable",{item:l}),1))));return this._cleanSeparatorsAndLineBreaks(s)}_cleanSeparatorsAndLineBreaks(t){const e=h=>"-"!==h&&"|"!==h,n=t.length,s=t.findIndex(e);if(-1===s)return[];const l=n-t.slice().reverse().findIndex(e);return t.slice(s,l).filter((h,p,b)=>!!e(h)||!(p>0&&b[p-1]===h))}_createNestedToolbarDropdown(t,e,n){let{label:s,icon:l,items:h,tooltip:p=!0,withText:b=!1}=t;if(h=this._cleanItemsConfiguration(h,e,n),!h.length)return null;const A=Zn(this.locale);return s||kt("toolbarview-nested-toolbar-dropdown-missing-label",t),A.class="ck-toolbar__nested-toolbar-dropdown",A.buttonView.set({label:s,tooltip:p,withText:!!b}),!1!==l?A.buttonView.icon=hw[l]||l||nm:A.buttonView.withText=!0,Ou(A,()=>A.toolbarView._buildItemsFromConfig(h,e,n)),A}}class uw extends Wt{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class pw{constructor(t){const e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using(n=>n),t.focusables.bindTo(t.items).using(n=>n),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class gw{constructor(t){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),t.itemsView.children.bindTo(this.ungroupedItems).using(e=>e),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),t.children.on("change",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(e,n)=>{const s=n.index,l=Array.from(n.added);for(const h of n.removed)s>=this.ungroupedItems.length?this.groupedItems.remove(h):this.ungroupedItems.remove(h);for(let h=s;hthis.ungroupedItems.length?this.groupedItems.add(p,h-this.ungroupedItems.length):this.ungroupedItems.add(p,h)}this._updateGrouping()}),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!In(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const t=this.groupedItems.length;let e;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new le(t.lastChild),s=new le(t);if(!this.cachedPadding){const l=Yt.window.getComputedStyle(t);this.cachedPadding=Number.parseInt(l["ltr"===e?"paddingRight":"paddingLeft"])}return"ltr"===e?n.right>s.right-this.cachedPadding:n.left{t&&t===e.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),t=e.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(t){t.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Bl),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const t=this.viewLocale,e=t.t,n=Zn(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",Ou(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:nm}),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(t=>{this.viewFocusables.add(t)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class Nu extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",e.if("isVisible","ck-hidden",n=>!n)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class om extends Wt{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class Mc extends Wt{constructor(t,e=new js){super(t);const n=this.bindTemplate,s=new sm(t);this.set({label:"",isVisible:!0}),this.labelView=e,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,s]),s.set({role:"group",ariaLabelledBy:e.id}),s.focusTracker.destroy(),s.keystrokes.destroy(),this.items=s.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",n.if("isVisible","ck-hidden",l=>!l)]},children:this.children})}focus(){if(this.items){const t=this.items.find(e=>!(e instanceof om));t&&t.focus()}}}var rm=lt(1046);Rt()(rm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class sm extends Wt{constructor(t){super(t),this._listItemGroupToChangeListeners=new WeakMap;const e=this.bindTemplate;this.focusables=new Ri,this.items=this.createCollection(),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusCycler=new en({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:e.to("role"),"aria-label":e.to("ariaLabel"),"aria-labelledby":e.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const t of this.items)t instanceof Mc?this._registerFocusableItemsGroup(t):t instanceof Nu&&this._registerFocusableListItem(t);this.items.on("change",(t,e)=>{for(const n of e.removed)n instanceof Mc?this._deregisterFocusableItemsGroup(n):this._deregisterFocusableListItem(n);for(const n of Array.from(e.added).reverse())n instanceof Mc?this._registerFocusableItemsGroup(n,e.index):this._registerFocusableListItem(n,e.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(t,e){this.focusTracker.add(t.element),this.focusables.add(t,e)}_deregisterFocusableListItem(t){this.focusTracker.remove(t.element),this.focusables.remove(t)}_getOnGroupItemsChangeCallback(t){return(e,n)=>{for(const s of n.removed)this._deregisterFocusableListItem(s);for(const s of Array.from(n.added).reverse())this._registerFocusableListItem(s,this.items.getIndex(t)+n.index)}}_registerFocusableItemsGroup(t,e){Array.from(t.items).forEach((s,l)=>{this._registerFocusableListItem(s,void 0!==e?e+l:void 0)});const n=this._getOnGroupItemsChangeCallback(t);this._listItemGroupToChangeListeners.set(t,n),t.items.on("change",n)}_deregisterFocusableItemsGroup(t){for(const e of t.items)this._deregisterFocusableListItem(e);t.items.off("change",this._listItemGroupToChangeListeners.get(t)),this._listItemGroupToChangeListeners.delete(t)}}var am=lt(7686);Rt()(am.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Lc extends Wt{constructor(t,e){super(t);const n=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(e),this.arrowView=this._createArrowView(),this.keystrokes=new vi,this.focusTracker=new Ye,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",s=>!s),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(t,e)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),e())}),this.keystrokes.set("arrowleft",(t,e)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),e())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(t){const e=t||new ve;return t||e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const t=new ve,e=t.bindTemplate;return t.icon=Qs,t.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":e.to("isOn"),"aria-haspopup":!0,"aria-expanded":e.to("isOn",n=>String(n))}}),t.bind("isEnabled").to(this),t.bind("label").to(this),t.bind("tooltip").to(this),t.delegate("execute").to(this,"open"),t}}var lm=lt(7339);Rt()(lm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var cm=lt(3949);function Zn(r,t=ih){const e="function"==typeof t?new t(r):t,n=new eh(r),s=new Ws(r,e,n);return e.bind("isEnabled").to(s),e instanceof Lc?e.arrowView.bind("isOn").to(s,"isOpen"):e.bind("isOn").to(s,"isOpen"),(h=l=s).on("render",()=>{et({emitter:h,activator:()=>h.isOpen,callback:()=>{h.isOpen=!1},contextElements:()=>[h.element,...h.focusTracker._elements]})}),function(h){h.on("execute",p=>{p.source instanceof xr||(h.isOpen=!1)})}(l),function(h){h.focusTracker.on("change:isFocused",(p,b,A)=>{h.isOpen&&!A&&(h.isOpen=!1)})}(l),function(h){h.keystrokes.set("arrowdown",(p,b)=>{h.isOpen&&(h.panelView.focus(),b())}),h.keystrokes.set("arrowup",(p,b)=>{h.isOpen&&(h.panelView.focusLast(),b())})}(l),function(h){h.on("change:isOpen",(p,b,A)=>{if(A)return;const C=h.panelView.element;C&&C.contains(Yt.document.activeElement)&&h.buttonView.focus()})}(l),function(h){h.on("change:isOpen",(p,b,A)=>{A&&h.panelView.focus()},{priority:"low"})}(l),s;var l,h}function Ou(r,t,e={}){r.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),r.isOpen?dm(r,t,e):r.once("change:isOpen",()=>dm(r,t,e),{priority:"highest"}),e.enableActiveItemFocusOnDropdownOpen&&pm(r,()=>r.toolbarView.items.find(n=>n.isOn))}function dm(r,t,e){const n=r.locale,s=n.t,l=r.toolbarView=new Pu(n),h="function"==typeof t?t():t;l.ariaLabel=e.ariaLabel||s("Dropdown toolbar"),e.maxWidth&&(l.maxWidth=e.maxWidth),e.class&&(l.class=e.class),e.isCompact&&(l.isCompact=e.isCompact),e.isVertical&&(l.isVertical=!0),h instanceof Ri?l.items.bindTo(h).using(p=>p):l.items.addMany(h),r.panelView.children.add(l),l.items.delegate("execute").to(r)}function hm(r,t,e={}){r.isOpen?um(r,t,e):r.once("change:isOpen",()=>um(r,t,e),{priority:"highest"}),pm(r,()=>r.listView.items.find(n=>n instanceof Nu&&n.children.first.isOn))}function um(r,t,e){const n=r.locale,s=r.listView=new sm(n),l="function"==typeof t?t():t;s.ariaLabel=e.ariaLabel,s.role=e.role,gm(r,s.items,l,n),r.panelView.children.add(s),s.items.delegate("execute").to(r)}function pm(r,t){r.on("change:isOpen",()=>{if(!r.isOpen)return;const e=t();e&&("function"==typeof e.focus?e.focus():kt("ui-dropdown-focus-child-on-open-child-missing-focus",{view:e}))},{priority:It.low-10})}function gm(r,t,e,n){t.bindTo(e).using(s=>{if("separator"===s.type)return new om(n);if("group"===s.type){const l=new Mc(n);return l.set({label:s.label}),gm(r,l.items,s.items,n),l.items.delegate("execute").to(r),l}if("button"===s.type||"switchbutton"===s.type){const l=new Nu(n);let h;return"button"===s.type?(h=new ve(n),h.extendTemplate({attributes:{"aria-checked":h.bindTemplate.to("isOn")}})):h=new xr(n),h.bind(...Object.keys(s.model)).to(s.model),h.delegate("execute").to(l),l.children.add(h),l}return null})}Rt()(cm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Pc=(r,t,e)=>{const n=new th(r.locale);return n.set({id:t,ariaDescribedById:e}),n.bind("isReadOnly").to(r,"isEnabled",s=>!s),n.bind("hasError").to(r,"errorText",s=>!!s),n.on("input",()=>{r.errorText=null}),r.bind("isEmpty","isFocused","placeholder").to(n),n},_a=(r,t=0,e=1)=>r>e?e:rMath.round(e*r)/e,Bu=r=>("#"===r[0]&&(r=r.substring(1)),r.length<6?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?ni(parseInt(r[3]+r[3],16)/255,2):1}:{r:parseInt(r.substring(0,2),16),g:parseInt(r.substring(2,4),16),b:parseInt(r.substring(4,6),16),a:8===r.length?ni(parseInt(r.substring(6,8),16)/255,2):1}),Fu=r=>{const{h:t,s:e,l:n}=(({h:r,s:t,v:e,a:n})=>{const s=(200-t)*e/100;return{h:ni(r),s:ni(s>0&&s<200?t*e/100/(s<=100?s:200-s)*100:0),l:ni(s/2),a:ni(n,2)}})(r);return`hsl(${t}, ${e}%, ${n}%)`},Nc=r=>{const t=r.toString(16);return t.length<2?"0"+t:t},mm=(r,t)=>{if(r===t)return!0;for(const e in r)if(r[e]!==t[e])return!1;return!0},fm={},bm=r=>{let t=fm[r];return t||(t=document.createElement("template"),t.innerHTML=r,fm[r]=t),t},zu=(r,t,e)=>{r.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let Gr=!1;const Ru=r=>"touches"in r,vm=(r,t)=>{const e=Ru(t)?t.touches[0]:t,n=r.el.getBoundingClientRect();zu(r.el,"move",r.getMove({x:_a((e.pageX-(n.left+window.pageXOffset))/n.width),y:_a((e.pageY-(n.top+window.pageYOffset))/n.height)}))};class km{constructor(t,e,n,s){const l=bm(`
`);t.appendChild(l.content.cloneNode(!0));const h=t.querySelector(`[part=${e}]`);h.addEventListener("mousedown",this),h.addEventListener("touchstart",this),h.addEventListener("keydown",this),this.el=h,this.xy=s,this.nodes=[h.firstChild,h]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(Gr?"touchmove":"mousemove",this),e(Gr?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),e=t,Gr&&!Ru(e)||(Gr||(Gr=Ru(e)),0)||!Gr&&0!=t.button)return;this.el.focus(),vm(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),vm(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((e,n)=>{const s=n.keyCode;s>40||e.xy&&s<37||s<33||(n.preventDefault(),zu(e.el,"move",e.getMove({x:39===s?.01:37===s?-.01:34===s?.05:33===s?-.05:35===s?1:36===s?-1:0,y:40===s?.01:38===s?-.01:0},!0)))})(this,t)}var e}style(t){t.forEach((e,n)=>{for(const s in e)this.nodes[n].style.setProperty(s,e[s])})}}class xw extends km{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:t/360*100+"%",color:Fu({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${ni(t)}`)}getMove(t,e){return{h:e?_a(this.h+360*t.x,0,360):360*t.x}}}class Cw extends km{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:100-t.v+"%",left:`${t.s}%`,color:Fu(t)},{"background-color":Fu({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${ni(t.s)}%, Brightness ${ni(t.v)}%`)}getMove(t,e){return{s:e?_a(this.hsva.s+100*t.x,0,100):100*t.x,v:e?_a(this.hsva.v-100*t.y,0,100):Math.round(100-100*t.y)}}}const Oc=Symbol("same"),Zu=Symbol("color"),_m=Symbol("hsva"),Uu=Symbol("update"),wm=Symbol("parts"),Am=Symbol("css"),xm=Symbol("sliders");class yw extends HTMLElement{static get observedAttributes(){return["color"]}get[Am](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[xm](){return[Cw,xw]}get color(){return this[Zu]}set color(t){if(!this[Oc](t)){const e=this.colorModel.toHsva(t);this[Uu](e),this[Zu]=t}}constructor(){super();const t=bm(``),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[wm]=this[xm].map(n=>new n(e))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const s=this.colorModel.fromAttr(n);this[Oc](s)||(this.color=s)}handleEvent(t){const e=this[_m],n={...e,...t.detail};let s;this[Uu](n),mm(n,e)||this[Oc](s=this.colorModel.fromHsva(n))||(this[Zu]=s,zu(this,"color-changed",{value:s}))}[Oc](t){return this.color&&this.colorModel.equal(t,this.color)}[Uu](t){this[_m]=t,this[wm].forEach(e=>e.update(t))}}const Ew={defaultColor:"#000",toHsva:r=>(({r,g:t,b:e,a:n})=>{const s=Math.max(r,t,e),l=s-Math.min(r,t,e),h=l?s===r?(t-e)/l:s===t?2+(e-r)/l:4+(r-t)/l:0;return{h:ni(60*(h<0?h+6:h)),s:ni(s?l/s*100:0),v:ni(s/255*100),a:n}})(Bu(r)),fromHsva:({h:r,s:t,v:e})=>(({r,g:t,b:e,a:n})=>{const s=n<1?Nc(ni(255*n)):"";return"#"+Nc(r)+Nc(t)+Nc(e)+s})((({h:r,s:t,v:e,a:n})=>{r=r/360*6,t/=100,e/=100;const s=Math.floor(r),l=e*(1-t),h=e*(1-(r-s)*t),p=e*(1-(1-r+s)*t),b=s%6;return{r:ni(255*[e,h,l,l,p,e][b]),g:ni(255*[p,e,e,h,l,l][b]),b:ni(255*[l,l,p,e,e,h][b]),a:ni(n,2)}})({h:r,s:t,v:e,a:1})),equal:(r,t)=>r.toLowerCase()===t.toLowerCase()||mm(Bu(r),Bu(t)),fromAttr:r=>r};class Tw extends yw{get colorModel(){return Ew}}customElements.define("hex-color-picker",class extends Tw{});var Cm=lt(3398);Rt()(Cm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ne(di);var ym=lt(4157);Rt()(ym.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Dw{constructor(t){this._components=new Map,this.editor=t}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){this._components.set(ju(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new W("componentfactory-item-missing",this,{name:t});return this._components.get(ju(t)).callback(this.editor.locale)}has(t){return this._components.has(ju(t))}}function ju(r){return String(r).toLowerCase()}var Em=lt(8793);Rt()(Em.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Lw=Object.defineProperty,Tm=Object.getOwnPropertySymbols,Pw=Object.prototype.hasOwnProperty,Nw=Object.prototype.propertyIsEnumerable,Sm=(r,t,e)=>t in r?Lw(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,pe=(r,t)=>{for(var e in t||(t={}))Pw.call(t,e)&&Sm(r,e,t[e]);if(Tm)for(var e of Tm(t))Nw.call(t,e)&&Sm(r,e,t[e]);return r};const Im=hn("px"),Dm=Yt.document.body,Ow={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},Vu=class extends Wt{constructor(r){super(r);const t=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",t.to("position",e=>`ck-balloon-panel_${e}`),t.if("isVisible","ck-balloon-panel_visible"),t.if("withArrow","ck-balloon-panel_with-arrow"),t.to("class")],style:{top:t.to("top",Im),left:t.to("left",Im)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(r){this.show();const t=Vu.defaultPositions,e=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast,t.viewportStickyNorth],limiter:Dm,fitInViewport:!0},r),n=Vu._getOptimalPosition(e)||Ow,s=parseInt(n.left),l=parseInt(n.top),h=n.name,p=n.config||{},{withArrow:b=!0}=p;this.top=l,this.left=s,this.position=h,this.withArrow=b}pin(r){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(r):this._stopPinning()},this._startPinning(r),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(r){this.attachTo(r);const t=qu(r.target),e=r.limiter?qu(r.limiter):Dm;this.listenTo(Yt.document,"scroll",(n,s)=>{const l=s.target,h=t&&l.contains(t),p=e&&l.contains(e);!h&&!p&&t&&e||this.attachTo(r)},{useCapture:!0}),this.listenTo(Yt.window,"resize",()=>{this.attachTo(r)})}_stopPinning(){this.stopListening(Yt.document,"scroll"),this.stopListening(Yt.window,"resize")}};let Ai=Vu;function qu(r){return Sn(r)?r:dn(r)?r.commonAncestorContainer:"function"==typeof r?qu(r()):null}function Mm(r={}){const{sideOffset:t=Ai.arrowSideOffset,heightOffset:e=Ai.arrowHeightOffset,stickyVerticalOffset:n=Ai.stickyVerticalOffset,config:s}=r;return{northWestArrowSouthWest:(p,b)=>pe({top:l(p,b),left:p.left-t,name:"arrow_sw"},s&&{config:s}),northWestArrowSouthMiddleWest:(p,b)=>pe({top:l(p,b),left:p.left-.25*b.width-t,name:"arrow_smw"},s&&{config:s}),northWestArrowSouth:(p,b)=>pe({top:l(p,b),left:p.left-b.width/2,name:"arrow_s"},s&&{config:s}),northWestArrowSouthMiddleEast:(p,b)=>pe({top:l(p,b),left:p.left-.75*b.width+t,name:"arrow_sme"},s&&{config:s}),northWestArrowSouthEast:(p,b)=>pe({top:l(p,b),left:p.left-b.width+t,name:"arrow_se"},s&&{config:s}),northArrowSouthWest:(p,b)=>pe({top:l(p,b),left:p.left+p.width/2-t,name:"arrow_sw"},s&&{config:s}),northArrowSouthMiddleWest:(p,b)=>pe({top:l(p,b),left:p.left+p.width/2-.25*b.width-t,name:"arrow_smw"},s&&{config:s}),northArrowSouth:(p,b)=>pe({top:l(p,b),left:p.left+p.width/2-b.width/2,name:"arrow_s"},s&&{config:s}),northArrowSouthMiddleEast:(p,b)=>pe({top:l(p,b),left:p.left+p.width/2-.75*b.width+t,name:"arrow_sme"},s&&{config:s}),northArrowSouthEast:(p,b)=>pe({top:l(p,b),left:p.left+p.width/2-b.width+t,name:"arrow_se"},s&&{config:s}),northEastArrowSouthWest:(p,b)=>pe({top:l(p,b),left:p.right-t,name:"arrow_sw"},s&&{config:s}),northEastArrowSouthMiddleWest:(p,b)=>pe({top:l(p,b),left:p.right-.25*b.width-t,name:"arrow_smw"},s&&{config:s}),northEastArrowSouth:(p,b)=>pe({top:l(p,b),left:p.right-b.width/2,name:"arrow_s"},s&&{config:s}),northEastArrowSouthMiddleEast:(p,b)=>pe({top:l(p,b),left:p.right-.75*b.width+t,name:"arrow_sme"},s&&{config:s}),northEastArrowSouthEast:(p,b)=>pe({top:l(p,b),left:p.right-b.width+t,name:"arrow_se"},s&&{config:s}),southWestArrowNorthWest:p=>pe({top:h(p),left:p.left-t,name:"arrow_nw"},s&&{config:s}),southWestArrowNorthMiddleWest:(p,b)=>pe({top:h(p),left:p.left-.25*b.width-t,name:"arrow_nmw"},s&&{config:s}),southWestArrowNorth:(p,b)=>pe({top:h(p),left:p.left-b.width/2,name:"arrow_n"},s&&{config:s}),southWestArrowNorthMiddleEast:(p,b)=>pe({top:h(p),left:p.left-.75*b.width+t,name:"arrow_nme"},s&&{config:s}),southWestArrowNorthEast:(p,b)=>pe({top:h(p),left:p.left-b.width+t,name:"arrow_ne"},s&&{config:s}),southArrowNorthWest:p=>pe({top:h(p),left:p.left+p.width/2-t,name:"arrow_nw"},s&&{config:s}),southArrowNorthMiddleWest:(p,b)=>pe({top:h(p),left:p.left+p.width/2-.25*b.width-t,name:"arrow_nmw"},s&&{config:s}),southArrowNorth:(p,b)=>pe({top:h(p),left:p.left+p.width/2-b.width/2,name:"arrow_n"},s&&{config:s}),southArrowNorthMiddleEast:(p,b)=>pe({top:h(p),left:p.left+p.width/2-.75*b.width+t,name:"arrow_nme"},s&&{config:s}),southArrowNorthEast:(p,b)=>pe({top:h(p),left:p.left+p.width/2-b.width+t,name:"arrow_ne"},s&&{config:s}),southEastArrowNorthWest:p=>pe({top:h(p),left:p.right-t,name:"arrow_nw"},s&&{config:s}),southEastArrowNorthMiddleWest:(p,b)=>pe({top:h(p),left:p.right-.25*b.width-t,name:"arrow_nmw"},s&&{config:s}),southEastArrowNorth:(p,b)=>pe({top:h(p),left:p.right-b.width/2,name:"arrow_n"},s&&{config:s}),southEastArrowNorthMiddleEast:(p,b)=>pe({top:h(p),left:p.right-.75*b.width+t,name:"arrow_nme"},s&&{config:s}),southEastArrowNorthEast:(p,b)=>pe({top:h(p),left:p.right-b.width+t,name:"arrow_ne"},s&&{config:s}),westArrowEast:(p,b)=>pe({top:p.top+p.height/2-b.height/2,left:p.left-b.width-e,name:"arrow_e"},s&&{config:s}),eastArrowWest:(p,b)=>pe({top:p.top+p.height/2-b.height/2,left:p.right+e,name:"arrow_w"},s&&{config:s}),viewportStickyNorth:(p,b,A,C)=>{const E=C||A;return p.getIntersection(E)?E.height-p.height>n?null:{top:E.top+n,left:p.left+p.width/2-b.width/2,name:"arrowless",config:pe({withArrow:!1},s)}:null}};function l(p,b){return p.top-b.height-e}function h(p){return p.bottom+e}}Ai.arrowSideOffset=25,Ai.arrowHeightOffset=10,Ai.stickyVerticalOffset=20,Ai._getOptimalPosition=Ls,Ai.defaultPositions=Mm();var Lm=lt(3332);Rt()(Lm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Pm="ck-tooltip",xi=class extends(bi()){constructor(r){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,xi._editors.add(r),xi._instance)return xi._instance;xi._instance=this,this.tooltipTextView=new Wt(r.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new Ai(r.locale),this.balloonPanelView.class=Pm,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=Go(this._pinTooltip,600),this.listenTo(Yt.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Yt.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Yt.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Yt.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Yt.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(r){const t=r.ui.view&&r.ui.view.body;xi._editors.delete(r),this.stopListening(r.ui),t&&t.has(this.balloonPanelView)&&t.remove(this.balloonPanelView),xi._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),xi._instance=null)}static getPositioningFunctions(r){const t=xi.defaultBalloonPositions;return{s:[t.southArrowNorth,t.southArrowNorthEast,t.southArrowNorthWest],n:[t.northArrowSouth],e:[t.eastArrowWest],w:[t.westArrowEast],sw:[t.southArrowNorthEast],se:[t.southArrowNorthWest]}[r]}_onEnterOrFocus(r,{target:t}){const e=Yu(t);var n;e&&e!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(e,{text:(n=e).dataset.ckeTooltipText,position:n.dataset.ckeTooltipPosition||"s",cssClass:n.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(r,{target:t,relatedTarget:e}){if("mouseleave"===r.name){if(!Sn(t)||this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;const n=Yu(t),s=Yu(e);n&&n!==s&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(r,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(r,{text:t,position:e,cssClass:n}){const s=Oe(xi._editors.values()).ui.view.body;s.has(this.balloonPanelView)||s.add(this.balloonPanelView),this.tooltipTextView.text=t,this.balloonPanelView.pin({target:r,positions:xi.getPositioningFunctions(e)}),this._resizeObserver=new Ro(r,()=>{In(r)||this._unpinTooltip()}),this.balloonPanelView.class=[Pm,n].filter(l=>l).join(" ");for(const l of xi._editors)this.listenTo(l.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=r,this._currentTooltipPosition=e}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const r of xi._editors)this.stopListening(r.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){In(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:xi.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}};let Bc=xi;function Yu(r){return Sn(r)?r.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}Bc.defaultBalloonPositions=Mm({heightOffset:5,sideOffset:13}),Bc._editors=new Set,Bc._instance=null;const Fc=function(r,t,e){var n=!0,s=!0;if("function"!=typeof r)throw new TypeError("Expected a function");return te(e)&&(n="leading"in e?!!e.leading:n,s="trailing"in e?!!e.trailing:s),Go(r,t,{leading:n,maxWait:t,trailing:s})};var Fw=Object.defineProperty,Nm=Object.getOwnPropertySymbols,zw=Object.prototype.hasOwnProperty,Rw=Object.prototype.propertyIsEnumerable,Om=(r,t,e)=>t in r?Fw(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class qw extends(bi()){constructor(t){super(),this.editor=t,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Fc(this._showBalloon.bind(this),50,{leading:!0}),t.on("ready",this._handleEditorReady.bind(this))}destroy(){const t=this._balloonView;t&&(t.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const t=this.editor;(t.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(e){function n(F){return F.length>=40&&F.length<=255?"VALID":"INVALID"}if(!e)return"INVALID";let s="";try{s=atob(e)}catch{return"INVALID"}const l=s.split("-"),h=l[0],p=l[1];if(!p)return n(e);try{atob(p)}catch{try{if(atob(h),!atob(h).length)return n(e)}catch{return n(e)}}if(h.length<40||h.length>255)return"INVALID";let b="";try{atob(h),b=atob(p)}catch{return"INVALID"}if(8!==b.length)return"INVALID";const A=Number(b.substring(0,4)),C=Number(b.substring(4,6))-1,E=Number(b.substring(6,8)),P=new Date(A,C,E);return P<$e||isNaN(Number(P))?"INVALID":"VALID"}(t.config.get("licenseKey")))&&t.ui.view&&(t.ui.focusTracker.on("change:isFocused",(e,n,s)=>{this._updateLastFocusedEditableElement(),s?this._showBalloon():this._hideBalloon()}),t.ui.focusTracker.on("change:focusedElement",(e,n,s)=>{this._updateLastFocusedEditableElement(),s&&this._showBalloon()}),t.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const t=this.editor,e=this._balloonView=new Ai,n=Fm(t),s=new Yw(t.locale,n.label);e.content.add(s),e.set({class:"ck-powered-by-balloon"}),t.ui.view.body.add(e),t.ui.focusTracker.add(e.element),this._balloonView=e}_showBalloon(){if(!this._lastFocusedEditableElement)return;const t=function(e,n){const s=Fm(e);var p;return{target:n,positions:["right"===s.side?Bm(n,p=s,(b,A)=>b.left+b.width-A.width-p.horizontalOffset):function(h,p){return Bm(h,p,b=>b.left+p.horizontalOffset)}(n,s)]}}(this.editor,this._lastFocusedEditableElement);t&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(t))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const t=this.editor,n=t.ui.focusTracker.focusedElement;if(!t.ui.focusTracker.isFocused||!n)return void(this._lastFocusedEditableElement=null);const s=Array.from(t.ui.getEditableElementsNames()).map(l=>t.ui.getEditableElement(l));this._lastFocusedEditableElement=s.includes(n)?n:s[0]}}class Yw extends Wt{constructor(t,e){super(t);const n=new Dn,s=this.bindTemplate;n.set({content:'\n',isColorInherited:!1}),n.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...e?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[e]}]:[],n],on:{dragstart:s.to(l=>l.preventDefault())}}]})}}function Bm(r,t,e){return(n,s)=>{const l=new le(r);if(l.width<350||l.height<50)return null;let h;h="inside"===t.position?l.bottom-s.height:l.bottom-s.height/2,h-=t.verticalOffset;const p=e(l,s),b=n.clone().moveTo(p,h).getIntersection(s.clone().moveTo(p,h)).getVisible();return!b||b.getArea(){for(var e in t||(t={}))zw.call(t,e)&&Om(r,e,t[e]);if(Nm)for(var e of Nm(t))Rw.call(t,e)&&Om(r,e,t[e]);return r})({position:e,label:"Powered by",verticalOffset:"inside"===e?5:0,horizontalOffset:5,side:"ltr"===r.locale.contentLanguageDirection?"right":"left"},t)}var zm=lt(3210);Rt()(zm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gw{constructor(t){this.editor=t}announce(t,e,n="polite"){const s=this.editor;this.view||(this.view=new Ww(s.locale),s.ui.view.body.add(this.view));let l=this.view.regionViews.find(h=>h.regionName===t);l||(l=new Qw(this.view.locale),this.view.regionViews.add(l)),l.set({regionName:t,text:e,politeness:n})}}class Ww extends Wt{constructor(t){super(t),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class Qw extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.set("regionName",""),this.set("text",""),this.set("politeness","polite"),this.setTemplate({tag:"div",attributes:{role:"region","data-region":e.to("regionName"),"aria-live":e.to("politeness")},children:[{text:e.to("text")}]})}}var Xw=Object.defineProperty,Rm=Object.getOwnPropertySymbols,Kw=Object.prototype.hasOwnProperty,Jw=Object.prototype.propertyIsEnumerable,Zm=(r,t,e)=>t in r?Xw(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class $w extends(ne()){constructor(t){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const e=t.editing.view;this.editor=t,this.componentFactory=new Dw(t),this.focusTracker=new Ye,this.tooltipManager=new Bc(t),this.poweredBy=new qw(t),this.ariaLiveAnnouncer=new Gw(t),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(e.document,"layoutChanged",this.update.bind(this)),this.listenTo(e,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null,this.editor.keystrokes.stopListening(t);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor),this.focusTracker.add(e);const n=()=>{this.editor.editing.view.getDomRoot(t)||this.editor.keystrokes.listenTo(e)};this.isReady?n():this.once("ready",n)}removeEditableElement(t){const e=this._editableElementsMap.get(t);e&&(this._editableElementsMap.delete(t),this.editor.keystrokes.stopListening(e),this.focusTracker.remove(e),e.ckeditorInstance=null)}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(t,e={}){t.isRendered?(this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)):t.once("render",()=>{this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)}),this._focusableToolbarDefinitions.push({toolbarView:t,options:e})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;const n=t.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}_initFocusTracking(){const t=this.editor,e=t.editing.view;let n,s;t.keystrokes.set("Alt+F10",(l,h)=>{const p=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(p)&&!Array.from(e.domRoots.values()).includes(p)&&(n=p);const b=this._getCurrentFocusedToolbarDefinition();b&&s||(s=this._getFocusableCandidateToolbarDefinitions());for(let A=0;A{const p=this._getCurrentFocusedToolbarDefinition();p&&(n?(n.focus(),n=null):t.editing.view.focus(),p.options.afterBlur&&p.options.afterBlur(),h())})}_getFocusableCandidateToolbarDefinitions(){const t=[];for(const e of this._focusableToolbarDefinitions){const{toolbarView:n,options:s}=e;(In(n.element)||s.beforeFocus)&&t.push(e)}return t.sort((e,n)=>Um(e)-Um(n)),t}_getCurrentFocusedToolbarDefinition(){for(const t of this._focusableToolbarDefinitions)if(t.toolbarView.element&&t.toolbarView.element.contains(this.focusTracker.focusedElement))return t;return null}_focusFocusableCandidateToolbar(t){const{toolbarView:e,options:{beforeFocus:n}}=t;return n&&n(),!!In(e.element)&&(e.focus(),!0)}_handleScrollToTheSelection(t,e){const n=((s,l)=>{for(var h in l||(l={}))Kw.call(l,h)&&Zm(s,h,l[h]);if(Rm)for(var h of Rm(l))Jw.call(l,h)&&Zm(s,h,l[h]);return s})({top:0,bottom:0,left:0,right:0},this.viewportOffset);e.viewportOffset.top+=n.top,e.viewportOffset.bottom+=n.bottom,e.viewportOffset.left+=n.left,e.viewportOffset.right+=n.right}}function Um(r){const{toolbarView:t,options:e}=r;let n=10;return In(t.element)&&n--,e.isContextual&&n--,n}var jm=lt(9688);Rt()(jm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class e1 extends Wt{constructor(t){super(t),this.body=new Gd(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class n1 extends e1{constructor(t){super(t),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const t=this.t,e=new js;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}class o1 extends Wt{constructor(t,e,n){super(t),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const t=this._editingView;function e(n){t.change(s=>{const l=t.document.getRoot(n.name);s.addClass(n.isFocused?"ck-focused":"ck-blurred",l),s.removeClass(n.isFocused?"ck-blurred":"ck-focused",l)})}t.isRenderingInProgress?function n(s){t.once("change:isRenderingInProgress",(l,h,p)=>{p?n(s):e(s)})}(this):e(this)}}class r1 extends o1{constructor(t,e,n,s={}){super(t,e,n);const l=t.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=s.label||(()=>l("Editor editing area: %0",this.name))}render(){super.render();const t=this._editingView;t.change(e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this._generateLabel(this),n)})}}var Vm=lt(8847);Rt()(Vm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Hu extends Er{static get pluginName(){return"Notification"}init(){this.on("show:warning",(t,e)=>{window.alert(e.message)},{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){this.fire(t.namespace?`show:${t.type}:${t.namespace}`:`show:${t.type}`,{message:t.message,type:t.type,title:t.title||""})}}class qm extends(ne()){constructor(t,e){super(),e&&On(this,e),t&&this.set(t)}}var Ym=lt(4650);Rt()(Ym.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Hm=lt(7676);Rt()(Hm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const zc=hn("px");class Rc extends Lt{constructor(t){super(t),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const e=this.editor.editing.view,n=e.document.selection.editableElement;return n?e.domConverter.mapViewToDom(n.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this._view||this._createPanelView(),this.hasView(t.view))throw new W("contextualballoon-add-view-exist",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));const n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}remove(t){if(!this.hasView(t))throw new W("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new W("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}_createPanelView(){this._view=new Ai(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find(e=>e[1]===t)[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new c1(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(n,s)=>!s&&n>1),t.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(n,s)=>{if(s<2)return"";const l=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("%0 of %1",[l,s])}),t.buttonNextView.on("execute",()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),t.buttonPrevView.on("execute",()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),t}_createFakePanelsView(){const t=new d1(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,n)=>!n&&e>=2?Math.min(e-1,2):0),t.listenTo(this.view,"change:top",()=>t.updatePosition()),t.listenTo(this.view,"change:left",()=>t.updatePosition()),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:s=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}_getBalloonPosition(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}}class c1 extends Wt{constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Ye,this.buttonPrevView=this._createButtonView(e("Previous"),''),this.buttonNextView=this._createButtonView(e("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",s=>s?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new ve(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class d1 extends Wt{constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",s=>s?"":"ck-hidden")],style:{top:n.to("top",zc),left:n.to("left",zc),width:n.to("width",zc),height:n.to("height",zc)}},children:this.content}),this.on("change:numberOfPanels",(s,l,h,p)=>{h>p?this._addPanels(h-p):this._removePanels(p-h),this.updatePosition()})}_addPanels(t){for(;t--;){const e=new Wt;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(t){for(;t--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:s}=new le(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:s})}}}var Gm=lt(5868);Rt()(Gm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Wr=hn("px");class u1 extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new Ei({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",n=>n?"block":"none"),height:e.to("isSticky",n=>n?Wr(this._contentPanelRect.height):null)}}}).render(),this._contentPanel=new Ei({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",e.if("isSticky","ck-sticky-panel__content_sticky"),e.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:e.to("isSticky",n=>n?Wr(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:e.to("_stickyTopOffset",n=>n&&Wr(n)),bottom:e.to("_stickyBottomOffset",n=>n&&Wr(n)),marginLeft:e.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(Yt.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const t=new le(this.limiterElement);let e=t.getVisible();if(e){const n=new le(Yt.window);n.top+=this.viewportTopOffset,n.height-=this.viewportTopOffset,e=e.getIntersection(n)}if(e&&t.tope.bottom){const s=Math.max(t.bottom-e.bottom,0)+this.limiterBottomOffset;t.bottom-s>t.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(s):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset{this.reset(),this.focus(),this.fire("reset")}),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",l=>!l),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class g1 extends Wt{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",t.if("isVisible","ck-hidden",e=>!e)],tabindex:-1},children:[{tag:"span",children:[{text:[t.to("primaryText")]}]},{tag:"span",children:[{text:[t.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class m1 extends Wt{constructor(t){super(t),this.children=this.createCollection(),this.focusTracker=new Ye,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new en({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const t of this.children)this.focusTracker.add(t.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var Wm=/[\\^$.*+?()[\]{}|]/g,f1=RegExp(Wm.source);const Qm=function(r){return(r=$s(r))&&f1.test(r)?r.replace(Wm,"\\$&"):r};var Xm=lt(6770);Rt()(Xm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var v1=Object.defineProperty,Km=Object.getOwnPropertySymbols,k1=Object.prototype.hasOwnProperty,_1=Object.prototype.propertyIsEnumerable,Jm=(r,t,e)=>t in r?v1(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class w1 extends Wt{constructor(t,e){super(t),this._config=e,this.filteredView=e.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new Ye,this.keystrokes=new vi,this.resultsView=new m1(t),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),e.infoView&&e.infoView.instance?this.infoView=e.infoView.instance:(this.infoView=new g1,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new en({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(n,{resultsCount:s,totalItemsCount:l})=>{this.resultsCount=s,this.totalItemsCount=l}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",e.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const t=e=>e.stopPropagation();for(const e of this.focusableChildren)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(t){const e=t?new RegExp(Qm(t),"ig"):null,n=this.filteredView.filter(e);this.fire("search",((s,l)=>{for(var h in l||(l={}))k1.call(l,h)&&Jm(s,h,l[h]);if(Km)for(var h of Km(l))_1.call(l,h)&&Jm(s,h,l[h]);return s})({query:t},n))}_createSearchTextQueryView(){const t=new p1(this.locale,this._config.queryView);return this.listenTo(t.fieldView,"input",()=>{this.search(t.fieldView.element.value)}),t.on("reset",()=>this.reset()),t.bind("isEnabled").to(this),t}_enableDefaultInfoViewBehavior(){const t=this.locale.t,e=this.infoView;function n(s,{query:l,resultsCount:h,totalItemsCount:p}){return"function"==typeof s?s(l,h,p):s}this.on("search",(s,l)=>{if(l.resultsCount)e.set({isVisible:!1});else{const h=this._config.infoView&&this._config.infoView.text;let p,b;l.totalItemsCount?h&&h.notFound?(p=h.notFound.primary,b=h.notFound.secondary):(p=t("No results found"),b=""):h&&h.noSearchableItems?(p=h.noSearchableItems.primary,b=h.noSearchableItems.secondary):(p=t("No searchable items"),b=""),e.set({primaryText:n(p,l),secondaryText:n(b,l),isVisible:!0})}})}}var $m=lt(8157);Rt()($m.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Gu=class extends w1{constructor(r,t){super(r,t),this._config=t;const e=hn("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const n=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[n.if("isVisible","ck-hidden",s=>!s),n.to("_position",s=>`ck-search__results_${s}`)],style:{width:n.to("_width",e)}}}),this.focusTracker.on("change:isFocused",(s,l,h)=>{this._updateResultsVisibility(),h?this.resultsView.element.scrollTop=0:t.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(s,l)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,l())}),this.listenTo(Yt.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(s,{value:l})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=l,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new le(this.queryView.fieldView.element).width;const r=Gu._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:Gu.defaultResultsPositions});this.resultsView._position=r?r.name:"s"}_updateResultsVisibility(){this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&this.queryView.fieldView.element.value.length>=(void 0===this._config.queryMinChars?0:this._config.queryMinChars)}};let tf=Gu;tf.defaultResultsPositions=[r=>({top:r.bottom,left:r.left,name:"s"}),(r,t)=>({top:r.top-t.height,left:r.left,name:"n"})],tf._getOptimalPosition=Ls;var ef=lt(8960);Rt()(ef.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var nf=lt(8010);Rt()(nf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class y1 extends Wt{constructor(t,e){super(t);const n=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),e&&this.children.addMany(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",n.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:n.if("isCollapsed","hidden"),"aria-labelledby":n.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}focus(){this.buttonView.focus()}_createButtonView(){const t=new ve(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:Qs}),t.extendTemplate({attributes:{"aria-expanded":e.to("isOn",n=>String(n))}}),t.bind("label").to(this),t.bind("isOn").to(this,"isCollapsed",n=>!n),t.on("execute",()=>{this.isCollapsed=!this.isCollapsed}),t}}var of=lt(498);Rt()(of.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hn("px");var rf=lt(9695);Rt()(rf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hn("px"),hn("px");class S1 extends $w{constructor(t,e){super(t),this.view=e,this._toolbarConfig=Zl(t.config.get("toolbar")),this._elementReplacer=new rs,this.listenTo(t.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(t){const n=this.view,s=this.editor.editing.view,l=n.editable,h=s.document.getRoot();l.name=h.rootName,n.render();const p=l.element;this.setEditableElement(l.name,p),n.editable.bind("isFocused").to(this.focusTracker),s.attachDomRoot(p),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:e})=>e||0),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),s=t.sourceElement;let l;const h=t.config.get("placeholder");h&&(l="string"==typeof h?h:h[this.view.editable.name]),!l&&s&&"textarea"===s.tagName.toLowerCase()&&(l=s.getAttribute("placeholder")),l&&(n.placeholder=l),Wl({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(t,e,n){const s=this.view.stickyPanel;if(s.isSticky){const l=new le(s.element).height;e.viewportOffset.top+=l}else{const l=()=>{this.editor.editing.view.scrollToTheSelection(n)};this.listenTo(s,"change:isSticky",l),setTimeout(()=>{this.stopListening(s,"change:isSticky",l)},20)}}}var sf=lt(3143);Rt()(sf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class D1 extends n1{constructor(t,e,n={}){super(t),this.stickyPanel=new u1(t),this.toolbar=new Pu(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new r1(t,e)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class af{constructor(t){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof t.crashNumberLimit?t.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof t.minimumNonErrorTimePeriod?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{const n="error"in e?e.error:e.reason;n instanceof Error&&this._handleError(n,e)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){this._listeners[t]=this._listeners[t].filter(n=>n!==e)}_fire(t,...e){const n=this._listeners[t]||[];for(const s of n)s.apply(this,[null,...e])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e instanceof ErrorEvent?e.filename:void 0,lineno:e instanceof ErrorEvent?e.lineno:void 0,colno:e instanceof ErrorEvent?e.colno:void 0,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(t){return t.is&&t.is("CKEditorError")&&null!=t.context&&"ready"===this.state&&this._isErrorComingFromThisItem(t)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function Wu(r,t=new Set){const e=[r],n=new Set;let s=0;for(;e.length>s;){const l=e[s++];if(!n.has(l)&&M1(l)&&!t.has(l))if(n.add(l),Symbol.iterator in l)try{for(const h of l)e.push(h)}catch{}else for(const h in l)"defaultValue"!==h&&e.push(l[h])}return n}function M1(r){const t=Object.prototype.toString.call(r),e=typeof r;return!("number"===e||"boolean"===e||"string"===e||"symbol"===e||"function"===e||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==r||r._watchdogExcluded||r instanceof EventTarget||r instanceof Event)}function lf(r,t,e=new Set){if(r===t&&"object"==typeof(n=r)&&null!==n)return!0;var n;const s=Wu(r,e),l=Wu(t,e);for(const h of s)if(l.has(h))return!0;return!1}var L1=Object.defineProperty,P1=Object.defineProperties,N1=Object.getOwnPropertyDescriptors,Zc=Object.getOwnPropertySymbols,cf=Object.prototype.hasOwnProperty,df=Object.prototype.propertyIsEnumerable,hf=(r,t,e)=>t in r?L1(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Qu=(r,t)=>{for(var e in t||(t={}))cf.call(t,e)&&hf(r,e,t[e]);if(Zc)for(var e of Zc(t))df.call(t,e)&&hf(r,e,t[e]);return r};class uf extends af{constructor(t,e={}){super(e),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Fc(this._save.bind(this),"number"==typeof e.saveInterval?e.saveInterval:5e3),t&&(this._creator=(n,s)=>t.create(n,s)),this._destructor=n=>n.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(t=>{console.error("An error happened during the editor destroying.",t)}).then(()=>{const t={},e=[],n=this._config.rootsAttributes||{},s={};for(const[b,A]of Object.entries(this._data.roots))A.isLoaded?(t[b]="",s[b]=n[b]||{}):e.push(b);const l=(h=Qu({},this._config),P1(h,N1({extraPlugins:this._config.extraPlugins||[],lazyRoots:e,rootsAttributes:s,_watchdogInitialData:this._data})));var h;return delete l.initialData,l.extraPlugins.push(O1),this._initUsingData?this.create(t,l,l.context):Sn(this._elementOrData)?this.create(this._elementOrData,l,l.context):this.create(this._editables,l,l.context)}).then(()=>{this._fire("restart")})}create(t=this._elementOrData,e=this._config,n){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=t,this._initUsingData="string"==typeof t||Object.keys(t).length>0&&"string"==typeof Object.values(t)[0],this._config=this._cloneEditorConfiguration(e)||{},this._config.context=n,this._creator(t,this._config))).then(s=>{this._editor=s,s.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=s.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)})}_save(){const t=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=t}catch(e){console.error(e,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(t){this._excludedProps=t}_getData(){const t=this._editor,e=t.model.document.roots.filter(p=>p.isAttached()&&"$graveyard"!=p.rootName),{plugins:n}=t,s=n.has("CommentsRepository")&&n.get("CommentsRepository"),l=n.has("TrackChanges")&&n.get("TrackChanges"),h={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};e.forEach(p=>{h.roots[p.rootName]={content:JSON.stringify(Array.from(p.getChildren())),attributes:JSON.stringify(Array.from(p.getAttributes())),isLoaded:p._isLoaded}});for(const p of t.model.markers)p._affectsData&&(h.markers[p.name]={rangeJSON:p.getRange().toJSON(),usingOperation:p._managedUsingOperations,affectsData:p._affectsData});return s&&(h.commentThreads=JSON.stringify(s.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),l&&(h.suggestions=JSON.stringify(l.getSuggestions({toJSON:!0,skipNotAttached:!0}))),h}_getEditables(){const t={};for(const e of this.editor.model.document.getRootNames()){const n=this.editor.ui.getEditableElement(e);n&&(t[e]=n)}return t}_isErrorComingFromThisItem(t){return lf(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return Ss(t,(e,n)=>Sn(e)||"context"===n?e:void 0)}}class O1{constructor(t){this.editor=t,this._data=t.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",t=>{t.stop(),this.editor.model.enqueueChange({isUndoable:!1},e=>{this._restoreCollaborationData(),this._restoreEditorData(e)}),this.editor.data.fire("ready")},{priority:999})}_createNode(t,e){if("name"in e){const n=t.createElement(e.name,e.attributes);if(e.children)for(const s of e.children)n._appendChild(this._createNode(t,s));return n}return t.createText(e.data,e.attributes)}_restoreEditorData(t){const e=this.editor;Object.entries(this._data.roots).forEach(([n,{content:s,attributes:l}])=>{const h=JSON.parse(s),p=JSON.parse(l),b=e.model.document.getRoot(n);for(const[A,C]of p)t.setAttribute(A,C,b);for(const A of h){const C=this._createNode(t,A);t.insert(C,b,"end")}}),Object.entries(this._data.markers).forEach(([n,s])=>{const{document:l}=e.model,h=s,{rangeJSON:{start:p,end:b}}=h,A=((j,Y)=>{var $={};for(var st in j)cf.call(j,st)&&Y.indexOf(st)<0&&($[st]=j[st]);if(null!=j&&Zc)for(var st of Zc(j))Y.indexOf(st)<0&&df.call(j,st)&&($[st]=j[st]);return $})(h,["rangeJSON"]),C=l.getRoot(p.root),E=t.createPositionFromPath(C,p.path,p.stickiness),P=t.createPositionFromPath(C,b.path,b.stickiness),F=t.createRange(E,P);t.addMarker(n,Qu({range:F},A))})}_restoreCollaborationData(){const t=JSON.parse(this._data.commentThreads),e=JSON.parse(this._data.suggestions);t.forEach(n=>{const s=this.editor.config.get("collaboration.channelId"),l=this.editor.plugins.get("CommentsRepository");l.hasCommentThread(n.threadId)&&l.getCommentThread(n.threadId).remove(),l.addCommentThread(Qu({channelId:s},n))}),e.forEach(n=>{const s=this.editor.plugins.get("TrackChangesEditing");s.hasSuggestion(n.id)?s.getSuggestion(n.id).attributes=n.attributes:s.addSuggestionData(n)})}}const wa=Symbol("MainQueueId");class B1{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){const n=t===wa;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());const s=Promise.all(n?this._queues.values():[this._queues.get(wa),this._queues.get(t)]).then(e),l=s.catch(()=>{});return this._queues.set(t,l),s.finally(()=>{this._activeActions--,this._queues.get(t)===l&&0===this._activeActions&&this._onEmptyCallbacks.forEach(h=>h())})}}function pf(r){return Array.isArray(r)?r:[r]}class Uc extends(Dc(Lu(cw))){constructor(t,e={}){if(!jc(t)&&void 0!==e.initialData)throw new W("editor-create-initial-data",null);var l,h;super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",jc(l=t)?(h=l)instanceof HTMLTextAreaElement?h.value:h.innerHTML:l),jc(t)&&(this.sourceElement=t),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),s=new D1(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new S1(this,s),function(l){if(!Ji(l.updateSourceElement))throw new W("attachtoform-missing-elementapi-interface",l);const h=l.sourceElement;if((p=h)&&"textarea"===p.tagName.toLowerCase()&&h.form){let p;const b=h.form,A=()=>l.updateSourceElement();Ji(b.submit)&&(p=b.submit,b.submit=()=>{A(),p.apply(b)}),b.addEventListener("submit",A),l.on("destroy",()=>{b.removeEventListener("submit",A),p&&(b.submit=p)})}var p}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise(n=>{const s=new this(t,e);n(s.initPlugins().then(()=>s.ui.init(jc(t)?t:null)).then(()=>s.data.init(s.config.get("initialData"))).then(()=>s.fire("ready")).then(()=>s))})}}function jc(r){return Sn(r)}Uc.Context=Yl,Uc.EditorWatchdog=uf,Uc.ContextWatchdog=class extends af{constructor(r,t={}){super(t),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new B1,this._watchdogConfig=t,this._creator=e=>r.create(e),this._destructor=e=>e.destroy(),this._actionQueues.onEmpty(()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))})}setCreator(r){this._creator=r}setDestructor(r){this._destructor=r}get context(){return this._context}create(r={}){return this._actionQueues.enqueue(wa,()=>(this._contextConfig=r,this._create()))}getItem(r){return this._getWatchdog(r)._item}getItemState(r){return this._getWatchdog(r).state}add(r){const t=pf(r);return Promise.all(t.map(e=>this._actionQueues.enqueue(e.id,()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let n;if(this._watchdogs.has(e.id))throw new Error(`Item with the given id is already added: '${e.id}'.`);if("editor"===e.type)return n=new uf(null,this._watchdogConfig),n.setCreator(e.creator),n._setExcludedProperties(this._contextProps),e.destructor&&n.setDestructor(e.destructor),this._watchdogs.set(e.id,n),n.on("error",(s,{error:l,causesRestart:h})=>{this._fire("itemError",{itemId:e.id,error:l}),h&&this._actionQueues.enqueue(e.id,()=>new Promise(p=>{const b=()=>{n.off("restart",b),this._fire("itemRestart",{itemId:e.id}),p()};n.on("restart",b)}))}),n.create(e.sourceElementOrData,e.config,this._context);throw new Error(`Not supported item type: '${e.type}'.`)})))}remove(r){const t=pf(r);return Promise.all(t.map(e=>this._actionQueues.enqueue(e,()=>{const n=this._getWatchdog(e);return this._watchdogs.delete(e),n.destroy()})))}destroy(){return this._actionQueues.enqueue(wa,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(wa,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(r=>{console.error("An error happened during destroying the context or items.",r)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(r=>(this._context=r,this._contextProps=Wu(this._context),Promise.all(Array.from(this._watchdogs.values()).map(t=>(t._setExcludedProperties(this._contextProps),t.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();const r=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(t=>t.destroy())).then(()=>this._destructor(r))})}_getWatchdog(r){const t=this._watchdogs.get(r);if(!t)throw new Error(`Item with the given id was not registered: ${r}.`);return t}_isErrorComingFromThisItem(r){for(const t of this._watchdogs.values())if(t._isErrorComingFromThisItem(r))return!1;return lf(this._context,r.context)}};class Aa extends un{constructor(t){super(t),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const e=this.document;function n(s){return(l,h)=>{h.preventDefault();const p=h.dropRange?[h.dropRange]:null,b=new xt(e,s);e.fire(b,{dataTransfer:h.dataTransfer,method:l.name,targetRanges:p,target:h.target,domEvent:h.domEvent}),b.stop.called&&h.stopPropagation()}}this.listenTo(e,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"dragover",n("dragging"),{priority:"low"})}onDomEvent(t){const s={dataTransfer:new Cc("clipboardData"in t?t.clipboardData:t.dataTransfer,{cacheFiles:"drop"==t.type||"paste"==t.type})};"drop"!=t.type&&"dragover"!=t.type||(s.dropRange=function(l,h){const p=h.target.ownerDocument,b=h.clientX,A=h.clientY;let C;return p.caretRangeFromPoint&&p.caretRangeFromPoint(b,A)?C=p.caretRangeFromPoint(b,A):h.rangeParent&&(C=p.createRange(),C.setStart(h.rangeParent,h.rangeOffset),C.collapse(!0)),C?l.domConverter.domRangeToView(C):null}(this.view,t)),this.fire(t.type,t,s)}}const gf=["figcaption","li"],mf=["ol","ul"];function ff(r){if(r.is("$text")||r.is("$textProxy"))return r.data;if(r.is("element","img")&&r.hasAttribute("alt"))return r.getAttribute("alt");if(r.is("element","br"))return"\n";let t="",e=null;for(const n of r.getChildren())t+=F1(n,e)+ff(n),e=n;return t}function F1(r,t){return t?r.is("element","li")&&!r.isEmpty&&r.getChild(0).is("containerElement")||mf.includes(r.name)&&mf.includes(t.name)?"\n\n":r.is("containerElement")||t.is("containerElement")?gf.includes(r.name)||gf.includes(t.name)?"\n":"\n\n":"":""}class fn extends Lt{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Aa),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(t,e,n){const s=this.editor.model.getSelectedContent(e);this.fire("outputTransformation",{dataTransfer:t,content:s,method:n})}_setupPasteDrop(){const t=this.editor,e=t.model,n=t.editing.view,s=n.document;this.listenTo(s,"clipboardInput",(l,h)=>{"paste"!=h.method||t.model.canEditAt(t.model.document.selection)||l.stop()},{priority:"highest"}),this.listenTo(s,"clipboardInput",(l,h)=>{const p=h.dataTransfer;let b;if(h.content)b=h.content;else{let E="";p.getData("text/html")?E=p.getData("text/html").replace(/(\s+)<\/span>/g,(F,j)=>1==j.length?" ":j).replace(//g,""):p.getData("text/plain")&&(((A=(A=p.getData("text/plain")).replace(/&/g,"&").replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/\t/g,"    ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||A.includes("
"))&&(A=`

${A}

`),E=A),b=this.editor.data.htmlProcessor.toView(E)}var A;const C=new xt(this,"inputTransformation");this.fire(C,{content:b,dataTransfer:p,targetRanges:h.targetRanges,method:h.method}),C.stop.called&&l.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(l,h)=>{if(h.content.isEmpty)return;const p=this.editor.data.toModel(h.content,"$clipboardHolder");0!=p.childCount&&(l.stop(),e.change(()=>{this.fire("contentInsertion",{content:p,method:h.method,dataTransfer:h.dataTransfer,targetRanges:h.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(l,h)=>{h.resultRange=e.insertContent(h.content)},{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document,s=(l,h)=>{const p=h.dataTransfer;h.preventDefault(),this._fireOutputTransformationEvent(p,e.selection,l.name)};this.listenTo(n,"copy",s,{priority:"low"}),this.listenTo(n,"cut",(l,h)=>{t.model.canEditAt(t.model.document.selection)?s(l,h):h.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(l,h)=>{const p=t.data.toView(h.content);n.fire("clipboardOutput",{dataTransfer:h.dataTransfer,content:p,method:h.method})},{priority:"low"}),this.listenTo(n,"clipboardOutput",(l,h)=>{h.content.isEmpty||(h.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(h.content)),h.dataTransfer.setData("text/plain",ff(h.content))),"cut"==h.method&&t.model.deleteContent(e.selection)},{priority:"low"})}}class bf{constructor(t,e=20){this._batch=null,this.model=t,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(n,s)=>{s.isLocal&&s.isUndoable&&s!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(t){this._size+=t,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t=!1){this.isLocked&&!t||(this._batch=null,this._size=0)}}class z1 extends Jt{constructor(t,e){super(t),this._buffer=new bf(t.model,e),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,s=t.text||"",l=s.length;let h=n.selection;if(t.selection?h=t.selection:t.range&&(h=e.createSelection(t.range)),!e.canEditAt(h))return;const p=t.resultRange;e.enqueueChange(this._buffer.batch,b=>{this._buffer.lock();const A=Array.from(n.selection.getAttributes());e.deleteContent(h),s&&e.insertContent(b.createText(s,A),h),p?b.setSelection(p):h.is("documentSelection")||b.setSelection(h),this._buffer.unlock(),this._buffer.input(l)})}}const vf=["insertText","insertReplacementText"];class R1 extends Vi{constructor(t){super(t),this.focusObserver=t.getObserver(Vr),it.isAndroid&&vf.push("insertCompositionText");const e=t.document;e.on("beforeinput",(n,s)=>{if(!this.isEnabled)return;const{data:l,targetRanges:h,inputType:p,domEvent:b}=s;if(!vf.includes(p))return;this.focusObserver.flush();const A=new xt(e,"insertText");e.fire(A,new bo(t,b,{text:l,selection:t.createSelection(h)})),A.stop.called&&n.stop()}),e.on("compositionend",(n,{data:s,domEvent:l})=>{this.isEnabled&&!it.isAndroid&&s&&e.fire("insertText",new bo(t,l,{text:s,selection:e.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class kf extends Lt{static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,s=e.document.selection;n.addObserver(R1);const l=new z1(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",l),t.commands.add("input",l),this.listenTo(n.document,"insertText",(h,p)=>{n.document.isComposing||p.preventDefault();const{text:b,selection:A,resultRange:C}=p,E=Array.from(A.getRanges()).map(j=>t.editing.mapper.toModelRange(j));let P=b;if(it.isAndroid){const j=Array.from(E[0].getItems()).reduce((Y,$)=>Y+($.is("$textProxy")?$.data:""),"");j&&(j.length<=P.length?P.startsWith(j)&&(P=P.substring(j.length),E[0].start=E[0].start.getShiftedBy(j.length)):j.startsWith(P)&&(E[0].start=E[0].start.getShiftedBy(P.length),P=""))}const F={text:P,selection:e.createSelection(E)};C&&(F.resultRange=t.editing.mapper.toModelRange(C)),t.execute("insertText",F),n.scrollToTheSelection()}),it.isAndroid?this.listenTo(n.document,"keydown",(h,p)=>{!s.isCollapsed&&229==p.keyCode&&n.document.isComposing&&_f(e,l)}):this.listenTo(n.document,"compositionstart",()=>{s.isCollapsed||_f(e,l)})}}function _f(r,t){if(!t.isEnabled)return;const e=t.buffer;e.lock(),r.enqueueChange(e.batch,()=>{r.deleteContent(r.document.selection)}),e.unlock()}class wf extends Jt{constructor(t,e){super(t),this.direction=e,this._buffer=new bf(t.model,t.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,s=>{this._buffer.lock();const l=s.createSelection(t.selection||n.selection);if(!e.canEditAt(l))return;const h=t.sequence||1,p=l.isCollapsed;if(l.isCollapsed&&e.modifySelection(l,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(h))return void this._replaceEntireContentWithParagraph(s);if(this._shouldReplaceFirstBlockWithParagraph(l,h))return void this.editor.execute("paragraph",{selection:l});if(l.isCollapsed)return;let b=0;l.getFirstRange().getMinimalFlatRanges().forEach(A=>{b+=yo(A.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),e.deleteContent(l,{doNotResetEntireContent:p,direction:this.direction}),this._buffer.input(b),s.setSelection(l),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,s=e.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(s)||!e.schema.checkChild(s,"paragraph"))return!1;const l=s.getChild(0);return!l||!l.is("element","paragraph")}_replaceEntireContentWithParagraph(t){const e=this.editor.model,s=e.schema.getLimitElement(e.document.selection),l=t.createElement("paragraph");t.remove(t.createRangeIn(s)),t.insert(l,s),t.setSelection(l,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||"backward"!=this.direction||!t.isCollapsed)return!1;const s=t.getFirstPosition(),l=n.schema.getLimitElement(s),h=l.getChild(0);return s.parent==h&&!!t.containsEntireContent(h)&&!!n.schema.checkChild(l,"paragraph")&&"paragraph"!=h.name}}const _o="selection",Qr="backward",xa="forward",xf={deleteContent:{unit:_o,direction:Qr},deleteContentBackward:{unit:"codePoint",direction:Qr},deleteWordBackward:{unit:"word",direction:Qr},deleteHardLineBackward:{unit:_o,direction:Qr},deleteSoftLineBackward:{unit:_o,direction:Qr},deleteContentForward:{unit:"character",direction:xa},deleteWordForward:{unit:"word",direction:xa},deleteHardLineForward:{unit:_o,direction:xa},deleteSoftLineForward:{unit:_o,direction:xa}};class Z1 extends Vi{constructor(t){super(t);const e=t.document;let n=0;e.on("keydown",()=>{n++}),e.on("keyup",()=>{n=0}),e.on("beforeinput",(s,l)=>{if(!this.isEnabled)return;const{targetRanges:h,domEvent:p,inputType:b}=l,A=xf[b];if(!A)return;const C={direction:A.direction,unit:A.unit,sequence:n};C.unit==_o&&(C.selectionToRemove=t.createSelection(h[0])),"deleteContentBackward"===b&&(it.isAndroid&&(C.sequence=1),function(P){if(1!=P.length||P[0].isCollapsed)return!1;const F=P[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let j=0;for(const{nextPosition:Y}of F){if(Y.parent.is("$text")){const $=Y.parent.data,st=Y.offset;if(Fs($,st)||zs($,st)||bl($,st))continue;j++}else j++;if(j>1)return!0}return!1}(h)&&(C.unit=_o,C.selectionToRemove=t.createSelection(h)));const E=new go(e,"delete",h[0]);e.fire(E,new bo(t,p,C)),E.stop.called&&s.stop()}),it.isBlink&&function(s){const l=s.view,h=l.document;let p=null,b=!1;function A(E){return E==se.backspace||E==se.delete}function C(E){return E==se.backspace?Qr:xa}h.on("keydown",(E,{keyCode:P})=>{p=P,b=!1}),h.on("keyup",(E,{keyCode:P,domEvent:F})=>{const j=h.selection,Y=s.isEnabled&&P==p&&A(P)&&!j.isCollapsed&&!b;if(p=null,Y){const $=j.getFirstRange(),st=new go(h,"delete",$),ft={unit:_o,direction:C(P),selectionToRemove:j};h.fire(st,new bo(l,F,ft))}}),h.on("beforeinput",(E,{inputType:P})=>{const F=xf[P];A(p)&&F&&F.direction==C(p)&&(b=!0)},{priority:"high"}),h.on("beforeinput",(E,{inputType:P,data:F})=>{p==se.delete&&"insertText"==P&&"\x7f"==F&&E.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class Un extends Lt{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,s=t.model.document;e.addObserver(Z1),this._undoOnBackspace=!1;const l=new wf(t,"forward");t.commands.add("deleteForward",l),t.commands.add("forwardDelete",l),t.commands.add("delete",new wf(t,"backward")),this.listenTo(n,"delete",(h,p)=>{n.isComposing||p.preventDefault();const{direction:b,sequence:A,selectionToRemove:C,unit:E}=p,P="forward"===b?"deleteForward":"delete",F={sequence:A};if("selection"==E){const j=Array.from(C.getRanges()).map(Y=>t.editing.mapper.toModelRange(Y));F.selection=t.model.createSelection(j)}else F.unit=E;t.execute(P,F),e.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(h,p)=>{this._undoOnBackspace&&"backward"==p.direction&&1==p.sequence&&"codePoint"==p.unit&&(this._undoOnBackspace=!1,t.execute("undo"),p.preventDefault(),h.stop())},{context:"$capture"}),this.listenTo(s,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class U1 extends Lt{static get requires(){return[kf,Un]}static get pluginName(){return"Typing"}}function Cf(r,t){let e=r.start;return{text:Array.from(r.getWalker({ignoreElementEnd:!1})).reduce((n,{item:s})=>s.is("$text")||s.is("$textProxy")?n+s.data:(e=t.createPositionAfter(s),""),""),range:t.createRange(e,r.end)}}class yf extends(ne()){constructor(t,e){super(),this.model=t,this.testCallback=e,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",(e,{directChange:n})=>{n&&(t.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(t,"change:data",(e,n)=>{!n.isUndo&&n.isLocal&&this._evaluateTextBeforeSelection("data",{batch:n})})}_evaluateTextBeforeSelection(t,e={}){const n=this.model,s=n.document.selection,l=n.createRange(n.createPositionAt(s.focus.parent,0),s.focus),{text:h,range:p}=Cf(l,n),b=this.testCallback(h);if(!b&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!b,b){const A=Object.assign(e,{text:h,range:p});"object"==typeof b&&Object.assign(A,b),this.fire(`matched:${t}`,A)}}}class Ef extends Lt{constructor(t){super(t),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const t=this.editor,s=t.locale,l=t.model.document.selection;this.listenTo(t.editing.view.document,"arrowKey",(h,p)=>{if(!l.isCollapsed||p.shiftKey||p.altKey||p.ctrlKey)return;const b=p.keyCode==se.arrowright,A=p.keyCode==se.arrowleft;if(!b&&!A)return;const C=s.contentLanguageDirection;let E=!1;E="ltr"===C&&b||"rtl"===C&&A?this._handleForwardMovement(p):this._handleBackwardMovement(p),!0===E&&h.stop()},{context:"$text",priority:"highest"}),this.listenTo(l,"change:range",(h,p)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!p.directChange&&Yi(l.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model,s=n.document.selection,l=s.getFirstPosition();return!(this._isGravityOverridden||l.isAtStart&&jn(s,e)||!Yi(l,e)||(ya(t),jn(s,e)&&Yi(l,e,!0)?Ca(n,e):this._overrideGravity(),0))}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,s=n.document.selection,l=s.getFirstPosition();return this._isGravityOverridden?(ya(t),this._restoreGravity(),Yi(l,e,!0)?Ca(n,e):Vc(n,e,l),!0):l.isAtStart?!!jn(s,e)&&(ya(t),Vc(n,e,l),!0):!jn(s,e)&&Yi(l,e,!0)?(ya(t),Vc(n,e,l),!0):!!Tf(l,e)&&(l.isAtEnd&&!jn(s,e)&&Yi(l,e)?(ya(t),Vc(n,e,l),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,s=t.editing.view.document;t.editing.view.addObserver(Mu);let l=!1;this.listenTo(s,"mousedown",()=>{l=!0}),this.listenTo(s,"selectionChange",()=>{const h=this.attributes;if(!l||(l=!1,!n.isCollapsed)||!jn(n,h))return;const p=n.getFirstPosition();Yi(p,h)&&(p.isAtStart||Yi(p,h,!0)?Ca(e,h):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection,n=this.attributes;this.listenTo(t,"insertContent",()=>{const s=e.getFirstPosition();jn(e,n)&&Yi(s,n)&&Ca(t,n)},{priority:"low"})}_handleDeleteContentAfterNode(){const t=this.editor,e=t.model,n=e.document.selection;let l=!1,h=!1;this.listenTo(t.editing.view.document,"delete",(p,b)=>{l="backward"===b.direction},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{if(!l)return;const p=n.getFirstPosition();h=jn(n,this.attributes)&&!Tf(p,this.attributes)},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{l&&(l=!1,h||t.model.enqueueChange(()=>{const p=n.getFirstPosition();jn(n,this.attributes)&&Yi(p,this.attributes)&&(p.isAtStart||Yi(p,this.attributes,!0)?Ca(e,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(t=>t.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function jn(r,t){for(const e of t)if(r.hasAttribute(e))return!0;return!1}function Vc(r,t,e){const n=e.nodeBefore;r.change(s=>{if(n){const l=[],h=r.schema.isObject(n)&&r.schema.isInline(n);for(const[p,b]of n.getAttributes())!r.schema.checkAttribute("$text",p)||h&&!1===r.schema.getAttributeProperties(p).copyFromObject||l.push([p,b]);s.setSelectionAttribute(l)}else s.removeSelectionAttribute(t)})}function Ca(r,t){r.change(e=>{e.removeSelectionAttribute(t)})}function ya(r){r.preventDefault()}function Tf(r,t){return Yi(r.getShiftedBy(-1),t)}function Yi(r,t,e=!1){const{nodeBefore:n,nodeAfter:s}=r;for(const l of t){const h=n?n.getAttribute(l):void 0,p=s?s.getAttribute(l):void 0;if((!e||void 0!==h&&void 0!==p)&&p!==h)return!0}return!1}const Sf={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:Xr('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:Xr("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:Xr("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:Xr('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:Xr('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:Xr("'"),to:[null,"\u201a",null,"\u2019"]}},If={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},j1=["symbols","mathematical","typography","quotes"];function V1(r){return"string"==typeof r?new RegExp(`(${Qm(r)})$`):r}function q1(r){return"string"==typeof r?()=>[r]:r instanceof Array?()=>r:r}function Y1(r){return(r.textNode?r.textNode:r.nodeAfter).getAttributes()}function Xr(r){return new RegExp(`(^|\\s)(${r})([^${r}]*)(${r})$`)}function qc(r,t,e,n){return n.createRange(Df(r,t,e,!0,n),Df(r,t,e,!1,n))}function Df(r,t,e,n,s){let l=r.textNode||(n?r.nodeBefore:r.nodeAfter),h=null;for(;l&&l.getAttribute(t)==e;)h=l,l=n?l.previousSibling:l.nextSibling;return h?s.createPositionAt(h,n?"before":"after"):r}function*Mf(r,t){for(const e of t)e&&r.getAttributeProperties(e[0]).copyOnEnter&&(yield e)}class H1 extends Jt{execute(){this.editor.model.change(t=>{this.enterBlock(t),this.fire("afterExecute",{writer:t})})}enterBlock(t){const e=this.editor.model,n=e.document.selection,s=e.schema,l=n.isCollapsed,h=n.getFirstRange(),p=h.start.parent,b=h.end.parent;if(s.isLimit(p)||s.isLimit(b))return l||p!=b||e.deleteContent(n),!1;if(l){const A=Mf(t.model.schema,n.getAttributes());return Lf(t,h.start),t.setSelectionAttribute(A),!0}{const A=!(h.start.isAtStart&&h.end.isAtEnd),C=p==b;if(e.deleteContent(n,{leaveUnmerged:A}),A){if(C)return Lf(t,n.focus),!0;t.setSelection(b,0)}}return!1}}function Lf(r,t){r.split(t),r.setSelection(t.parent.nextSibling,0)}const G1={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class Pf extends Vi{constructor(t){super(t);const e=this.document;let n=!1;e.on("keydown",(s,l)=>{n=l.shiftKey}),e.on("beforeinput",(s,l)=>{if(!this.isEnabled)return;let h=l.inputType;it.isSafari&&n&&"insertParagraph"==h&&(h="insertLineBreak");const p=l.domEvent,b=G1[h];if(!b)return;const A=new go(e,"enter",l.targetRanges[0]);e.fire(A,new bo(t,p,{isSoft:b.isSoft})),A.stop.called&&s.stop()})}observe(){}stopObserving(){}}class Yc extends Lt{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(Pf),t.commands.add("enter",new H1(t)),this.listenTo(n,"enter",(s,l)=>{n.isComposing||l.preventDefault(),l.isSoft||(t.execute("enter"),e.scrollToTheSelection())},{priority:"low"})}}class W1 extends Jt{execute(){const t=this.editor.model,e=t.document;t.change(n=>{(function(s,l,h){const p=h.isCollapsed,b=h.getFirstRange(),C=b.end.parent,E=b.start.parent==C;if(p){const P=Mf(s.schema,h.getAttributes());Nf(s,l,b.end),l.removeSelectionAttribute(h.getAttributeKeys()),l.setSelectionAttribute(P)}else{const P=!(b.start.isAtStart&&b.end.isAtEnd);s.deleteContent(h,{leaveUnmerged:P}),E?Nf(s,l,h.focus):P&&l.setSelection(C,0)}})(t,n,e.selection),this.fire("afterExecute",{writer:n})})}refresh(){const t=this.editor.model;this.isEnabled=function(n,s){if(s.rangeCount>1)return!1;const l=s.anchor;if(!l||!n.checkChild(l,"softBreak"))return!1;const h=s.getFirstRange(),p=h.start.parent,b=h.end.parent;return!((Xu(p,n)||Xu(b,n))&&p!==b)}(t.schema,t.document.selection)}}function Nf(r,t,e){const n=t.createElement("softBreak");r.insertContent(n,e),t.setSelection(n,"after")}function Xu(r,t){return!r.is("rootElement")&&(t.isLimit(r)||Xu(r.parent,t))}class Q1 extends Lt{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,n=t.conversion,s=t.editing.view,l=s.document;t.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(h,{writer:p})=>p.createEmptyElement("br")}),s.addObserver(Pf),t.commands.add("shiftEnter",new W1(t)),this.listenTo(l,"enter",(h,p)=>{l.isComposing||p.preventDefault(),p.isSoft&&(t.execute("shiftEnter"),s.scrollToTheSelection())},{priority:"low"})}}class X1 extends(ie()){constructor(){super(...arguments),this._stack=[]}add(t,e){const n=this._stack,s=n[0];this._insertDescriptor(t);const l=n[0];s===l||Ku(s,l)||this.fire("change:top",{oldDescriptor:s,newDescriptor:l,writer:e})}remove(t,e){const n=this._stack,s=n[0];this._removeDescriptor(t);const l=n[0];s===l||Ku(s,l)||this.fire("change:top",{oldDescriptor:s,newDescriptor:l,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex(l=>l.id===t.id);if(Ku(t,e[n]))return;n>-1&&e.splice(n,1);let s=0;for(;e[s]&&K1(e[s],t);)s++;e.splice(s,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex(s=>s.id===t);n>-1&&e.splice(n,1)}}function Ku(r,t){return r&&t&&r.priority==t.priority&&Hc(r.classes)==Hc(t.classes)}function K1(r,t){return r.priority>t.priority||!(r.priorityHc(t.classes)}function Hc(r){return Array.isArray(r)?r.sort().join(","):r}const J1='',$1="ck-widget",Of="ck-widget_selected";function He(r){return!!r.is("element")&&!!r.getCustomProperty("widget")}function Ju(r,t,e={}){if(!r.is("containerElement"))throw new W("widget-to-widget-wrong-element-type",null,{element:r});return t.setAttribute("contenteditable","false",r),t.addClass($1,r),t.setCustomProperty("widget",!0,r),r.getFillerOffset=iA,t.setCustomProperty("widgetLabel",[],r),e.label&&(s=e.label,r.getCustomProperty("widgetLabel").push(s)),e.hasSelectionHandle&&function(n,s){const l=s.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(h){const p=this.toDomElement(h),b=new Dn;return b.set("content",J1),b.render(),p.appendChild(b.element),p});s.insert(s.createPositionAt(n,0),l),s.addClass(["ck-widget_with-selection-handle"],n)}(r,t),Bf(r,t),r;var s}function tA(r,t,e){if(t.classes&&e.addClass(Ze(t.classes),r),t.attributes)for(const n in t.attributes)e.setAttribute(n,t.attributes[n],r)}function eA(r,t,e){if(t.classes&&e.removeClass(Ze(t.classes),r),t.attributes)for(const n in t.attributes)e.removeAttribute(n,r)}function Bf(r,t,e=tA,n=eA){const s=new X1;s.on("change:top",(l,h)=>{h.oldDescriptor&&n(r,h.oldDescriptor,h.writer),h.newDescriptor&&e(r,h.newDescriptor,h.writer)}),t.setCustomProperty("addHighlight",(l,h,p)=>s.add(h,p),r),t.setCustomProperty("removeHighlight",(l,h,p)=>s.remove(h,p),r)}function Ff(r,t,e={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],r),t.setAttribute("role","textbox",r),e.label&&t.setAttribute("aria-label",e.label,r),t.setAttribute("contenteditable",r.isReadOnly?"false":"true",r),r.on("change:isReadOnly",(n,s,l)=>{t.setAttribute("contenteditable",l?"false":"true",r)}),r.on("change:isFocused",(n,s,l)=>{l?t.addClass("ck-editor__nested-editable_focused",r):t.removeClass("ck-editor__nested-editable_focused",r)}),Bf(r,t),r}function zf(r,t){const e=r.getSelectedElement();if(e){const n=wo(r);if(n)return t.createRange(t.createPositionAt(e,n))}return tm(r,t)}function iA(){return null}const Vn="widget-type-around";function Jo(r,t,e){return!!r&&He(r)&&!e.isInline(t)}function wo(r){return r.getAttribute(Vn)}var Rf=lt(4921);Rt()(Rf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Zf=["before","after"],oA=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,Uf="ck-widget__type-around_disabled";class rA extends Lt{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Yc,Un]}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",(n,s,l)=>{e.change(h=>{for(const p of e.document.roots)l?h.removeClass(Uf,p):h.addClass(Uf,p)}),l||t.model.change(h=>{h.removeSelectionAttribute(Vn)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,s=n.editing.view,l=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:l}),s.focus(),s.scrollToTheSelection()}_listenToIfEnabled(t,e,n,s){this.listenTo(t,e,(...l)=>{this.isEnabled&&n(...l)},s)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=wo(t);if(!e)return!1;const n=t.getSelectedElement();return this._insertParagraph(n,e),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,s={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",(l,h,p)=>{const b=p.mapper.toViewElement(h.item);b&&Jo(b,h.item,e)&&(function(A,C,E){const P=A.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(F){const j=this.toDomElement(F);return function(Y,$){for(const st of Zf){const ft=new Ei({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${st}`],title:$[st],"aria-hidden":"true"},children:[Y.ownerDocument.importNode(oA,!0)]});Y.appendChild(ft.render())}}(j,C),function(Y){const $=new Ei({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Y.appendChild($.render())}(j),j});A.insert(A.createPositionAt(E,"end"),P)}(p.writer,s,b),b.getCustomProperty("widgetLabel").push(()=>this.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,s=e.schema;function h(p){return`ck-widget_type-around_show-fake-caret_${p}`}this._listenToIfEnabled(t.editing.view.document,"arrowKey",(p,b)=>{this._handleArrowKeyPress(p,b)},{context:[He,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",(p,b)=>{b.directChange&&t.model.change(A=>{A.removeSelectionAttribute(Vn)})}),this._listenToIfEnabled(e.document,"change:data",()=>{const p=n.getSelectedElement();p&&Jo(t.editing.mapper.toViewElement(p),p,s)||t.model.change(b=>{b.removeSelectionAttribute(Vn)})}),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(p,b,A)=>{const C=A.writer;if(this._currentFakeCaretModelElement){const j=A.mapper.toViewElement(this._currentFakeCaretModelElement);j&&(C.removeClass(Zf.map(h),j),this._currentFakeCaretModelElement=null)}const E=b.selection.getSelectedElement();if(!E)return;const P=A.mapper.toViewElement(E);if(!Jo(P,E,s))return;const F=wo(b.selection);F&&(C.addClass(h(F),P),this._currentFakeCaretModelElement=E)}),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(p,b,A)=>{A||t.model.change(C=>{C.removeSelectionAttribute(Vn)})})}_handleArrowKeyPress(t,e){const n=this.editor,s=n.model,l=s.document.selection,h=s.schema,p=n.editing.view,b=function(E,P){const F=Ns(E,P);return"down"===F||"right"===F}(e.keyCode,n.locale.contentLanguageDirection),A=p.document.selection.getSelectedElement();let C;Jo(A,n.editing.mapper.toModelElement(A),h)?C=this._handleArrowKeyPressOnSelectedWidget(b):l.isCollapsed?C=this._handleArrowKeyPressWhenSelectionNextToAWidget(b):e.shiftKey||(C=this._handleArrowKeyPressWhenNonCollapsedSelection(b)),C&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=wo(e.document.selection);return e.change(s=>n?n!==(t?"after":"before")&&(s.removeSelectionAttribute(Vn),!0):(s.setSelectionAttribute(Vn,t?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,s=n.schema,l=e.plugins.get("Widget"),h=l._getObjectElementNextToSelection(t);return!!Jo(e.editing.mapper.toViewElement(h),h,s)&&(n.change(p=>{l._setSelectionOverElement(h),p.setSelectionAttribute(Vn,t?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,s=n.schema,l=e.editing.mapper,h=n.document.selection,p=t?h.getLastPosition().nodeBefore:h.getFirstPosition().nodeAfter;return!!Jo(l.toViewElement(p),p,s)&&(n.change(b=>{b.setSelection(p,"on"),b.setSelectionAttribute(Vn,t?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",(n,s)=>{const l=s.domTarget.closest(".ck-widget__type-around__button");if(!l)return;const h=l.classList.contains("ck-widget__type-around__button_before")?"before":"after",p=function(A,C){const E=A.closest(".ck-widget");return C.mapDomToView(E)}(l,e.domConverter),b=t.editing.mapper.toModelElement(p);this._insertParagraph(b,h),s.preventDefault(),n.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection;this._listenToIfEnabled(t.editing.view.document,"enter",(s,l)=>{if("atTarget"!=s.eventPhase)return;const h=e.getSelectedElement(),p=t.editing.mapper.toViewElement(h),b=t.model.schema;let A;this._insertParagraphAccordingToFakeCaretPosition()?A=!0:Jo(p,h,b)&&(this._insertParagraph(h,l.isSoft?"before":"after"),A=!0),A&&(l.preventDefault(),s.stop())},{context:He})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(e,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection)},{priority:"high"}),it.isAndroid?this._listenToIfEnabled(t,"keydown",(e,n)=>{229==n.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(t,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,n=t.model,s=n.schema;this._listenToIfEnabled(t.editing.view.document,"delete",(l,h)=>{if("atTarget"!=l.eventPhase)return;const p=wo(n.document.selection);if(!p)return;const b=h.direction,A=n.document.selection.getSelectedElement(),C="forward"==b;if("before"===p===C)t.execute("delete",{selection:n.createSelection(A,"on")});else{const E=s.getNearestSelectionRange(n.createPositionAt(A,p),b);if(E)if(E.isCollapsed){const P=n.createSelection(E.start);if(n.modifySelection(P,{direction:b}),P.focus.isEqual(E.start)){const F=function(j,Y){let $=Y;for(const st of Y.getAncestors({parentFirst:!0})){if(st.childCount>1||j.isLimit(st))break;$=st}return $}(s,E.start.parent);n.deleteContent(n.createSelection(F,"on"),{doNotAutoparagraph:!0})}else n.change(F=>{F.setSelection(E),t.execute(C?"deleteForward":"delete")})}else n.change(P=>{P.setSelection(E),t.execute(C?"deleteForward":"delete")})}h.preventDefault(),l.stop()},{context:He})}_enableInsertContentIntegration(){const e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(s,[l,h])=>{if(h&&!h.is("documentSelection"))return;const p=wo(n);return p?(s.stop(),e.change(b=>{const A=n.getSelectedElement(),C=e.createPositionAt(A,p),E=b.createSelection(C),P=e.insertContent(l,E);return b.setSelection(E),P})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(n,s)=>{const[,l,h={}]=s;if(l&&!l.is("documentSelection"))return;const p=wo(e);p&&(h.findOptimalPosition=p,s[3]=h)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"deleteContent",(n,[s])=>{s&&!s.is("documentSelection")||wo(e)&&n.stop()},{priority:"high"})}}function jf(r,t,e){const n=r.schema,s=r.createRangeIn(t.root),l="forward"==e?"elementStart":"elementEnd";for(const{previousPosition:h,item:p,type:b}of s.getWalker({startPosition:t,direction:e})){if(n.isLimit(p)&&!n.isInline(p))return h;if(b==l&&n.isBlock(p))return null}return null}function Vf(r,t,e){const n="backward"==e?t.end:t.start;if(r.checkChild(n,"$text"))return n;for(const{nextPosition:s}of t.getWalker({direction:e}))if(r.checkChild(s,"$text"))return s;return null}var qf=lt(3488);Rt()(qf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ea extends Lt{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[rA,Un]}init(){const t=this.editor,e=t.editing.view,n=e.document;this.editor.editing.downcastDispatcher.on("selection",(s,l,h)=>{const p=h.writer,b=l.selection;if(b.isCollapsed)return;const A=b.getSelectedElement();if(!A)return;const C=t.editing.mapper.toViewElement(A);var E;He(C)&&h.consumable.consume(b,"selection")&&p.setSelection(p.createRangeOn(C),{fake:!0,label:(E=C,E.getCustomProperty("widgetLabel").reduce((P,F)=>"function"==typeof F?P?P+". "+F():F():P?P+". "+F:F,""))})}),this.editor.editing.downcastDispatcher.on("selection",(s,l,h)=>{this._clearPreviouslySelectedWidgets(h.writer);const p=h.writer,b=p.document.selection;let A=null;for(const C of b.getRanges())for(const E of C){const P=E.item;He(P)&&!lA(P,A)&&(p.addClass(Of,P),this._previouslySelected.add(P),A=P)}},{priority:"low"}),e.addObserver(Mu),this.listenTo(n,"mousedown",(...s)=>this._onMousedown(...s)),this.listenTo(n,"arrowKey",(...s)=>{this._handleSelectionChangeOnArrowKeyPress(...s)},{context:[He,"$text"]}),this.listenTo(n,"arrowKey",(...s)=>{this._preventDefaultOnArrowKeyPress(...s)},{context:"$root"}),this.listenTo(n,"arrowKey",function sA(r){const t=r.model;return(e,n)=>{const l=n.keyCode==se.arrowdown,h=n.shiftKey,p=t.document.selection;if(n.keyCode!=se.arrowup&&!l)return;const b=l;if(h&&!(C=p).isCollapsed&&C.isBackward==b)return;var C;const A=function(C,E,P){const F=C.model;if(P){const j=E.isCollapsed?E.focus:E.getLastPosition(),Y=jf(F,j,"forward");if(!Y)return null;const $=F.createRange(j,Y),st=Vf(F.schema,$,"backward");return st?F.createRange(j,st):null}{const j=E.isCollapsed?E.focus:E.getFirstPosition(),Y=jf(F,j,"backward");if(!Y)return null;const $=F.createRange(Y,j),st=Vf(F.schema,$,"forward");return st?F.createRange(st,j):null}}(r,p,b);if(A){if(A.isCollapsed&&(p.isCollapsed||h))return;(A.isCollapsed||function(C,E,P){const F=C.model,j=C.view.domConverter;if(P){const At=F.createSelection(E.start);F.modifySelection(At),At.focus.isAtEnd||E.start.isEqual(At.focus)||(E=F.createRange(At.focus,E.end))}const Y=C.mapper.toViewRange(E),$=j.viewRangeToDom(Y),st=le.getDomRangeRects($);let ft;for(const At of st)if(void 0!==ft){if(Math.round(At.top)>=ft)return!1;ft=Math.max(ft,Math.round(At.bottom))}else ft=Math.round(At.bottom);return!0}(r,A,b))&&(t.change(C=>{const E=b?A.end:A.start;if(h){const P=t.createSelection(p.anchor);P.setFocus(E),C.setSelection(P)}else C.setSelection(E)}),e.stop(),n.preventDefault(),n.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",(s,l)=>{this._handleDelete("forward"==l.direction)&&(l.preventDefault(),s.stop())},{context:"$root"})}_onMousedown(t,e){const n=this.editor,s=n.editing.view,l=s.document;let h=e.target;if(e.domEvent.detail>=3)return void(this._selectBlockContent(h)&&e.preventDefault());if(function(b){let A=b;for(;A;){if(A.is("editableElement")&&!A.is("rootElement"))return!0;if(He(A))return!1;A=A.parent}return!1}(h)||!He(h)&&(h=h.findAncestor(He),!h))return;it.isAndroid&&e.preventDefault(),l.isFocused||s.focus();const p=n.editing.mapper.toModelElement(h);this._setSelectionOverElement(p)}_selectBlockContent(t){const e=this.editor,n=e.model,s=e.editing.mapper,l=n.schema,h=s.findMappedViewAncestor(this.editor.editing.view.createPositionAt(t,0)),p=function(b,A){for(const C of b.getAncestors({includeSelf:!0,parentFirst:!0})){if(A.checkChild(C,"$text"))return C;if(A.isLimit(C)&&!A.isObject(C))break}return null}(s.toModelElement(h),n.schema);return!!p&&(n.change(b=>{const A=l.isLimit(p)?null:function(P,F){const j=new Li({startPosition:P});for(const{item:Y}of j){if(F.isLimit(Y)||!Y.is("element"))return null;if(F.checkChild(Y,"$text"))return Y}return null}(b.createPositionAfter(p),l),C=b.createPositionAt(p,0),E=A?b.createPositionAt(A,0):b.createPositionAt(p,"end");b.setSelection(b.createRange(C,E))}),!0)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,s=this.editor.model,l=s.schema,h=s.document.selection,p=h.getSelectedElement(),b=Ns(n,this.editor.locale.contentLanguageDirection),A="down"==b||"right"==b,C="up"==b||"down"==b;if(p&&l.isObject(p)){const P=A?h.getLastPosition():h.getFirstPosition(),F=l.getNearestSelectionRange(P,A?"forward":"backward");return void(F&&(s.change(j=>{j.setSelection(F)}),e.preventDefault(),t.stop()))}if(!h.isCollapsed&&!e.shiftKey){const P=h.getFirstPosition(),F=h.getLastPosition(),j=P.nodeAfter,Y=F.nodeBefore;return void((j&&l.isObject(j)||Y&&l.isObject(Y))&&(s.change($=>{$.setSelection(A?F:P)}),e.preventDefault(),t.stop()))}if(!h.isCollapsed)return;const E=this._getObjectElementNextToSelection(A);if(E&&l.isObject(E)){if(l.isInline(E)&&C)return;this._setSelectionOverElement(E),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,s=n.schema,l=n.document.selection.getSelectedElement();l&&s.isObject(l)&&(e.preventDefault(),t.stop())}_handleDelete(t){const e=this.editor.model.document.selection;if(!this.editor.model.canEditAt(e)||!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change(s=>{let l=e.anchor.parent;for(;l.isEmpty;){const h=l;l=h.parent,s.remove(h)}this._setSelectionOverElement(n)}),!0):void 0}_setSelectionOverElement(t){this.editor.model.change(e=>{e.setSelection(e.createRangeOn(t))})}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,s=e.document.selection,l=e.createSelection(s);if(e.modifySelection(l,{direction:t?"forward":"backward"}),l.isEqual(s))return null;const h=t?l.focus.nodeBefore:l.focus.nodeAfter;return h&&n.isObject(h)?h:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(Of,e);this._previouslySelected.clear()}}function lA(r,t){return!!t&&Array.from(r.getAncestors()).includes(t)}class Gc extends Lt{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[Rc]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",n=>{(function(s){const l=s.getSelectedElement();return!(!l||!He(l))})(t.editing.view.document.selection)&&n.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:s,balloonClassName:l="ck-toolbar-container"}){if(!n.length)return void kt("widget-toolbar-no-items",{toolbarId:t});const h=this.editor,p=h.t,b=new Pu(h.locale);if(b.ariaLabel=e||p("Widget toolbar"),this._toolbarDefinitions.has(t))throw new W("widget-toolbar-duplicated",this,{toolbarId:t});const A={view:b,getRelatedElement:s,balloonClassName:l,itemsConfig:n,initialized:!1};h.ui.addToolbar(b,{isContextual:!0,beforeFocus:()=>{const C=s(h.editing.view.document.selection);C&&this._showToolbar(A,C)},afterBlur:()=>{this._hideToolbar(A)}}),this._toolbarDefinitions.set(t,A)}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const s of this._toolbarDefinitions.values()){const l=s.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&l)if(this.editor.ui.focusTracker.isFocused){const h=l.getAncestors().length;h>t&&(t=h,e=l,n=s)}else this._isToolbarVisible(s)&&this._hideToolbar(s);else this._isToolbarInBalloon(s)&&this._hideToolbar(s)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?Yf(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:t.view,position:Hf(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const n of this._toolbarDefinitions.values())if(this._isToolbarVisible(n)){const s=n.getRelatedElement(this.editor.editing.view.document.selection);Yf(this.editor,s)}}))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function Yf(r,t){const e=r.plugins.get("ContextualBalloon"),n=Hf(r,t);e.updatePosition(n)}function Hf(r,t){const n=Ai.defaultPositions;return{target:r.editing.view.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}ne(),ne();var Gf=lt(8506);Rt()(Gf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const $u=hn("px");class dA extends Wt{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",t.if("isVisible","ck-hidden",e=>!e)],style:{left:t.to("left",e=>$u(e)),top:t.to("top",e=>$u(e)),width:t.to("width",e=>$u(e))}}})}}class Wc extends Lt{constructor(){super(...arguments),this.removeDropMarkerDelayed=Bs(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Fc(t=>this._updateDropMarker(t),40),this._reconvertMarkerThrottled=Fc(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new dA,this._domEmitter=new(bi()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:t}of this._scrollables.values())t.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(t,e,n,s,l,h){this.removeDropMarkerDelayed.cancel();const p=Wf(this.editor,t,e,n,s,l,h);if(p)return h&&h.containsRange(p)?this.removeDropMarker():void this._updateDropMarkerThrottled(p)}getFinalDropRange(t,e,n,s,l,h){const p=Wf(this.editor,t,e,n,s,l,h);return this.removeDropMarker(),p}removeDropMarker(){const t=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,t.markers.has("drop-target")&&t.change(e=>{e.removeMarker("drop-target")})}_setupDropMarker(){const t=this.editor;t.ui.view.body.add(this._dropTargetLineView),t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);e.markerRange.isCollapsed?this._updateDropTargetLine(e.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change(s=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||s.updateMarker("drop-target",{range:t}):s.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(t){return t.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(e){const n=this.toDomElement(e);return n.append("\u2060",e.createElement("span"),"\u2060"),n})}_updateDropTargetLine(t){const e=this.editor.editing,n=t.start.nodeBefore,s=t.start.nodeAfter,l=t.start.parent,h=n?e.mapper.toViewElement(n):null,p=h?e.view.domConverter.mapViewToDom(h):null,b=s?e.mapper.toViewElement(s):null,A=b?e.view.domConverter.mapViewToDom(b):null,C=e.mapper.toViewElement(l),E=e.view.domConverter.mapViewToDom(C),P=this._getScrollableRect(C),{scrollX:F,scrollY:j}=Yt.window,Y=p?new le(p):null,$=A?new le(A):null,st=new le(E).excludeScrollbarsAndBorders(),ft=Y?Y.bottom:st.top,At=$?$.top:st.bottom,Ft=Yt.window.getComputedStyle(E),jt=ft<=At?(ft+At)/2:At;if(P.topp.schema.checkChild(E,P))){if(p.schema.checkChild(E,"$text"))return p.createRange(E);if(C)return Qc(r,Xf(r,C.parent),n,s)}}}else if(p.schema.isInline(A))return Qc(r,A,n,s);if(p.schema.isBlock(A))return Qc(r,A,n,s);if(p.schema.checkChild(A,"$block")){const C=Array.from(A.getChildren()).filter(F=>F.is("element")&&!hA(r,F));let E=0,P=C.length;if(0==P)return p.createRange(p.createPositionAt(A,"end"));for(;Et in r?uA(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class bA extends Lt{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(bi())}static get pluginName(){return"DragDropBlockToolbar"}init(){const t=this.editor;if(this.listenTo(t,"change:isReadOnly",(e,n,s)=>{s?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),it.isAndroid&&this.forceDisabled("noAndroidSupport"),t.plugins.has("BlockToolbar")){const e=t.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(e,"dragstart",(n,s)=>this._handleBlockDragStart(s)),this._domEmitter.listenTo(Yt.document,"dragover",(n,s)=>this._handleBlockDragging(s)),this._domEmitter.listenTo(Yt.document,"drop",(n,s)=>this._handleBlockDragging(s)),this._domEmitter.listenTo(Yt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&e.setAttribute("draggable","true"),this.on("change:isEnabled",(n,s,l)=>{e.setAttribute("draggable",l?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(t){if(!this.isEnabled)return;const e=this.editor.model,s=this.editor.editing.view,l=Array.from(e.document.selection.getSelectedBlocks()),h=e.createRange(e.createPositionBefore(l[0]),e.createPositionAfter(l[l.length-1]));e.change(p=>p.setSelection(h)),this._isBlockDragging=!0,s.focus(),s.getObserver(Aa).onDomEvent(t)}_handleBlockDragging(t){if(!this.isEnabled||!this._isBlockDragging)return;const e=t.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),n=t.clientY,s=document.elementFromPoint(e,n),l=this.editor.editing.view;var h;s&&s.closest(".ck-editor__editable")&&l.getObserver(Aa).onDomEvent((h=((b,A)=>{for(var C in A||(A={}))mA.call(A,C)&&Jf(b,C,A[C]);if(Kf)for(var C of Kf(A))fA.call(A,C)&&Jf(b,C,A[C]);return b})({},t),pA(h,gA({type:t.type,dataTransfer:t.dataTransfer,target:s,clientX:e,clientY:n,preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var $f=lt(903);Rt()($f.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class kA extends Lt{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=Bs(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(bi())}static get pluginName(){return"DragDrop"}static get requires(){return[fn,Ea,Wc,bA]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(Aa),e.addObserver(Mu),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",(n,s,l)=>{l?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(n,s,l)=>{l||this._finalizeDragging(!1)}),it.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=t.editing.view,s=n.document,l=t.plugins.get(Wc);this.listenTo(s,"dragstart",(h,p)=>{if(p.target&&p.target.is("editableElement")||(this._prepareDraggedRange(p.target),!this._draggedRange))return void p.preventDefault();this._draggingUid=Mt(),p.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",p.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const b=e.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(p.dataTransfer,b,"dragstart");const{dataTransfer:A,domTarget:C,domEvent:E}=p,{clientX:P}=E;this._updatePreview({dataTransfer:A,domTarget:C,clientX:P}),p.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(s,"dragend",(h,p)=>{this._finalizeDragging(!p.dataTransfer.isCanceled&&"move"==p.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(Yt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(s,"dragenter",()=>{this.isEnabled&&n.focus()}),this.listenTo(s,"dragleave",()=>{l.removeDropMarkerDelayed()}),this.listenTo(s,"dragging",(h,p)=>{if(!this.isEnabled)return void(p.dataTransfer.dropEffect="none");const{clientX:b,clientY:A}=p.domEvent;l.updateDropMarker(p.target,p.targetRanges,b,A,this._blockMode,this._draggedRange),this._draggedRange||(p.dataTransfer.dropEffect="copy"),it.isGecko||("copy"==p.dataTransfer.effectAllowed?p.dataTransfer.dropEffect="copy":["all","copyMove"].includes(p.dataTransfer.effectAllowed)&&(p.dataTransfer.dropEffect="move")),h.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get(Wc);this.listenTo(e,"clipboardInput",(s,l)=>{if("drop"!=l.method)return;const{clientX:h,clientY:p}=l.domEvent,b=n.getFinalDropRange(l.target,l.targetRanges,h,p,this._blockMode,this._draggedRange);return b?(this._draggedRange&&this._draggingUid!=l.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==tb(l.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(b,!0)?(this._finalizeDragging(!1),void s.stop()):void(l.targetRanges=[t.editing.mapper.toViewRange(b)])):(this._finalizeDragging(!1),void s.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(fn);t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const s=n.targetRanges.map(l=>this.editor.editing.mapper.toModelRange(l));this.editor.model.change(l=>l.setSelection(s))},{priority:"high"}),t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const s="move"==tb(n.dataTransfer);this._finalizeDragging((!n.resultRange||!n.resultRange.isCollapsed)&&s)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",(s,l)=>{if(it.isAndroid||!l)return;this._clearDraggableAttributesDelayed.cancel();let h=eb(l.target);if(it.isBlink&&!t.isReadOnly&&!h&&!n.selection.isCollapsed){const p=n.selection.getSelectedElement();p&&He(p)||(h=n.selection.editableElement)}h&&(e.change(p=>{p.setAttribute("draggable","true",h)}),this._draggableElement=t.editing.mapper.toModelElement(h))}),this.listenTo(n,"mouseup",()=>{it.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change(e=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(t){const e=this.editor,n=e.model;e.plugins.get(Wc).removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(t&&this.isEnabled&&n.change(s=>{const l=n.createSelection(this._draggedRange);n.deleteContent(l,{doNotAutoparagraph:!0});const h=l.getFirstPosition().parent;h.isEmpty&&!n.schema.checkChild(h,"$text")&&n.schema.checkChild(h,"paragraph")&&s.insertElement("paragraph",h,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(t){const e=this.editor,n=e.model,s=n.document.selection,l=t?eb(t):null;if(l){const A=e.editing.mapper.toModelElement(l);return this._draggedRange=Ni.fromRange(n.createRangeOn(A)),this._blockMode=n.schema.isBlock(A),void(e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(s.isCollapsed&&!s.getFirstPosition().parent.isEmpty)return;const h=Array.from(s.getSelectedBlocks()),p=s.getFirstRange();if(0==h.length)return void(this._draggedRange=Ni.fromRange(p));const b=ib(n,h);if(h.length>1)this._draggedRange=Ni.fromRange(b),this._blockMode=!0;else if(1==h.length){const A=p.start.isTouching(b.start)&&p.end.isTouching(b.end);this._draggedRange=Ni.fromRange(A?b:p),this._blockMode=A}n.change(A=>A.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:t,domTarget:e,clientX:n}){const s=this.editor.editing.view,h=s.domConverter.mapViewToDom(s.document.selection.editableElement),p=Yt.window.getComputedStyle(h);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=yn(Yt.document,"div",{style:"position: fixed; left: -999999px;"}),Yt.document.body.appendChild(this._previewContainer));const b=new le(h);if(h.contains(e))return;const A=parseFloat(p.paddingLeft),C=yn(Yt.document,"div");C.className="ck ck-content",C.style.width=p.width,C.style.paddingLeft=`${b.left-n+A}px`,it.isiOS&&(C.style.backgroundColor="white"),C.innerHTML=t.getData("text/html"),t.setDragImage(C,0,0),this._previewContainer.appendChild(C)}}function tb(r){return it.isGecko?r.dropEffect:["all","copyMove"].includes(r.effectAllowed)?"move":"copy"}function eb(r){if(r.is("editableElement"))return null;if(r.hasClass("ck-widget__selection-handle"))return r.findAncestor(He);if(He(r))return r;const t=r.findAncestor(e=>He(e)||e.is("editableElement"));return He(t)?t:null}function ib(r,t){const e=t[0],n=t[t.length-1],s=e.getCommonAncestor(n),l=r.createPositionBefore(e),h=r.createPositionAfter(n);if(s&&s.is("element")&&!r.schema.isLimit(s)){const p=r.createRangeOn(s),b=l.isTouching(p.start),A=h.isTouching(p.end);if(b&&A)return ib(r,[s])}return r.createRange(l,h)}class _A extends Lt{static get pluginName(){return"PastePlainText"}static get requires(){return[fn]}init(){const t=this.editor,e=t.model,n=t.editing.view,s=n.document,l=e.document.selection;let h=!1;n.addObserver(Aa),this.listenTo(s,"keydown",(p,b)=>{h=b.shiftKey}),t.plugins.get(fn).on("contentInsertion",(p,b)=>{(h||function(A,C){if(A.childCount>1)return!1;const E=A.getChild(0);return!C.isObject(E)&&0==Array.from(E.getAttributeKeys()).length}(b.content,e.schema))&&e.change(A=>{const C=Array.from(l.getAttributes()).filter(([P])=>e.schema.getAttributeProperties(P).isFormatting);l.isCollapsed||e.deleteContent(l,{doNotAutoparagraph:!0}),C.push(...l.getAttributes());const E=A.createRangeIn(b.content);for(const P of E.getItems())P.is("$textProxy")&&A.setAttributes(C,P)})})}}class nb extends Lt{static get pluginName(){return"Clipboard"}static get requires(){return[fn,kA,_A]}}class wA extends Jt{constructor(t){super(t),this.affectsData=!1}execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!ob(t.schema,n))do{if(n=n.parent,!n)return}while(!ob(t.schema,n));t.change(s=>{s.setSelection(n,"in")})}}function ob(r,t){return r.isLimit(t)&&(r.checkChild(t,"$text")||r.checkChild(t,"paragraph"))}const AA=Vo("Ctrl+A");class xA extends Lt{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new wA(t)),this.listenTo(e,"keydown",(n,s)=>{so(s)===AA&&(t.execute("selectAll"),s.preventDefault())})}}class CA extends Lt{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",e=>{const n=t.commands.get("selectAll"),s=new ve(e);return s.set({label:(0,e.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),s.bind("isEnabled").to(n,"isEnabled"),this.listenTo(s,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),s})}}class yA extends Lt{static get requires(){return[xA,CA]}static get pluginName(){return"SelectAll"}}var EA=Object.defineProperty,rb=Object.getOwnPropertySymbols,TA=Object.prototype.hasOwnProperty,SA=Object.prototype.propertyIsEnumerable,sb=(r,t,e)=>t in r?EA(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class ab extends Jt{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,n)=>{n[1]=((l,h)=>{for(var p in h||(h={}))TA.call(h,p)&&sb(l,p,h[p]);if(rb)for(var p of rb(h))SA.call(h,p)&&sb(l,p,h[p]);return l})({},n[1]);const s=n[1];s.batchType||(s.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,n)=>{n[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const s=this.editor.model,l=s.document,h=[],p=t.map(A=>A.getTransformedByOperations(n)),b=p.flat();for(const A of p){const C=A.filter(E=>E.root!=l.graveyard).filter(E=>!DA(E,b));C.length&&(IA(C),h.push(C[0]))}h.length&&s.change(A=>{A.setSelection(h,{backward:e})})}_undo(t,e){const n=this.editor.model,s=n.document;this._createdBatches.add(e);const l=t.operations.slice().filter(h=>h.isDocumentOperation);l.reverse();for(const h of l){const b=Array.from(s.history.getOperations(h.baseVersion+1)),A=C_([h.getReversed()],b,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let C of A){const E=C.affectedSelectable;E&&!n.canEditAt(E)&&(C=new Ve(C.baseVersion)),e.addOperation(C),n.applyOperation(C),s.history.setOperationAsUndone(h,C)}}}}function IA(r){r.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;te!==r&&e.containsRange(r,!0))}class MA extends ab{execute(t=null){const e=t?this._stack.findIndex(l=>l.batch==t):this._stack.length-1,n=this._stack.splice(e,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(n.batch,s);const l=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,l)}),this.fire("revert",n.batch,s),this.refresh()}}class LA extends ab{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const s=this.editor.model.document.history.getOperations(t.batch.operations[t.batch.operations.length-1].baseVersion+1);this._restoreSelection(t.selection.ranges,t.selection.isBackward,s),this._undo(t.batch,e)}),this.refresh()}}class PA extends Lt{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const t=this.editor;this._undoCommand=new MA(t),this._redoCommand=new LA(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(e,n)=>{const s=n[0];if(!s.isDocumentOperation)return;const l=s.batch,h=this._redoCommand.createdBatches.has(l),p=this._undoCommand.createdBatches.has(l);this._batchRegistry.has(l)||(this._batchRegistry.add(l),l.isUndoable&&(h?this._undoCommand.addBatch(l):p||(this._undoCommand.addBatch(l),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,n,s)=>{this._redoCommand.addBatch(s)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}const lb='',cb='';class NA extends Lt{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,s="ltr"==e.uiLanguageDirection?lb:cb,l="ltr"==e.uiLanguageDirection?cb:lb;this._addButton("undo",n("Undo"),"CTRL+Z",s),this._addButton("redo",n("Redo"),"CTRL+Y",l)}_addButton(t,e,n,s){const l=this.editor;l.ui.componentFactory.add(t,h=>{const p=l.commands.get(t),b=new ve(h);return b.set({label:e,icon:s,keystroke:n,tooltip:!0}),b.bind("isEnabled").to(p,"isEnabled"),this.listenTo(b,"execute",()=>{l.execute(t),l.editing.view.focus()}),b})}}class db extends Lt{static get requires(){return[PA,NA]}static get pluginName(){return"Undo"}}class OA extends(ne()){constructor(){super();const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return this.total=t.size,new Promise((n,s)=>{e.onload=()=>{const l=e.result;this._data=l,n(l)},e.onerror=()=>{s("error")},e.onabort=()=>{s("aborted")},this._reader.readAsDataURL(t)})}abort(){this._reader.abort()}}class sn extends Lt{constructor(){super(...arguments),this.loaders=new di,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[em]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(t,e)=>e?t/e*100:0)}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return kt("filerepository-no-upload-adapter"),null;const e=new hb(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then(n=>{this._loadersMap.set(n,e)}).catch(()=>{}),e.on("change:uploaded",()=>{let n=0;for(const s of this.loaders)n+=s.uploaded;this.uploaded=n}),e.on("change:uploadTotal",()=>{let n=0;for(const s of this.loaders)s.uploadTotal&&(n+=s.uploadTotal);this.uploadTotal=n}),e}destroyLoader(t){const e=t instanceof hb?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach((n,s)=>{n===e&&this._loadersMap.delete(s)})}_updatePendingAction(){const t=this.editor.plugins.get(em);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=s=>`${e("Upload in progress")} ${parseInt(s)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}class hb extends(ne()){constructor(t,e){super(),this.id=Mt(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new OA,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(n,s)=>s?n/s*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(t=>this._filePromiseWrapper?t:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new W("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(t=>this._reader.read(t)).then(t=>{if("reading"!==this.status)throw this.status;return this.status="idle",t}).catch(t=>{throw"aborted"===t?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:t)})}upload(){if("idle"!=this.status)throw new W("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(t=>(this.uploadResponse=t,this.status="idle",t)).catch(t=>{throw"aborted"===this.status?"aborted":(this.status="error",t)})}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise((n,s)=>{e.rejecter=s,e.isFulfilled=!1,t.then(l=>{e.isFulfilled=!0,n(l)}).catch(l=>{e.isFulfilled=!0,s(l)})}),e}}class BA extends ve{constructor(t){super(t),this.buttonView=this,this._fileInputView=new FA(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",()=>{this._fileInputView.open()}),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}class FA extends Wt{constructor(t){super(t),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const ub="ckCsrfToken";class RA{constructor(t,e,n){this.loader=t,this.url=e,this.t=n}upload(){return this.loader.file.then(t=>new Promise((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}_initListeners(t,e,n){const s=this.xhr,l=this.loader,h=(0,this.t)("Cannot upload file:")+` ${n.name}.`;s.addEventListener("error",()=>e(h)),s.addEventListener("abort",()=>e()),s.addEventListener("load",()=>{const p=s.response;if(!p||!p.uploaded)return e(p&&p.error&&p.error.message?p.error.message:h);t({default:p.url})}),s.upload&&s.upload.addEventListener("progress",p=>{p.lengthComputable&&(l.uploadTotal=p.total,l.uploaded=p.loaded)})}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",function zA(){let r=function(n){n=n.toLowerCase();const s=document.cookie.split(";");for(const l of s){const h=l.split("=");if(decodeURIComponent(h[0].trim().toLowerCase())===n)return decodeURIComponent(h[1])}return null}(ub);var e;return r&&40==r.length||(r=function(n){let s="";const l=new Uint8Array(40);window.crypto.getRandomValues(l);for(let h=0;h.5?p.toUpperCase():p}return s}(),e=r,document.cookie=encodeURIComponent(ub)+"="+encodeURIComponent(e)+";path=/"),r}()),this.xhr.send(e)}}function Ao(r,t,e,n){let s,l=null;"function"==typeof n?s=n:(l=r.commands.get(n),s=()=>{r.execute(n)}),r.model.document.on("change:data",(h,p)=>{if(l&&!l.isEnabled||!t.isEnabled)return;const b=Oe(r.model.document.selection.getRanges());if(!b.isCollapsed||p.isUndo||!p.isLocal)return;const A=Array.from(r.model.document.differ.getChanges()),C=A[0];if(1!=A.length||"insert"!==C.type||"$text"!=C.name||1!=C.length)return;const E=C.position.parent;if(E.is("element","codeBlock")||E.is("element","listItem")&&"function"!=typeof n&&!["numberedList","bulletedList","todoList"].includes(n)||l&&!0===l.value)return;const P=E.getChild(0),F=r.model.createRangeOn(P);if(!F.containsRange(b)&&!b.end.isEqual(F.end))return;const j=e.exec(P.data.substr(0,b.end.offset));j&&r.model.enqueueChange(Y=>{const $=Y.createPositionAt(E,0),st=Y.createPositionAt(E,j[0].length),ft=new Ni($,st);if(!1!==s({match:j})){Y.remove(ft);const At=r.model.document.selection.getFirstRange(),Ft=Y.createRangeIn(E);!E.isEmpty||Ft.isEqual(At)||Ft.containsRange(At,!0)||Y.remove(E)}ft.detach(),r.model.enqueueChange(()=>{r.plugins.get("Delete").requestUndoOnBackspace()})})})}function Kr(r,t,e,n){let s,l;e instanceof RegExp?s=e:l=e,l=l||(h=>{let p;const b=[],A=[];for(;null!==(p=s.exec(h))&&!(p&&p.length<4);){let{index:C,1:E,2:P,3:F}=p;C+=p[0].length-(E+P+F).length;const $=[C+E.length+P.length,C+E.length+P.length+F.length];b.push([C,C+E.length]),b.push($),A.push([C+E.length,C+E.length+P.length])}return{remove:b,format:A}}),r.model.document.on("change:data",(h,p)=>{if(p.isUndo||!p.isLocal||!t.isEnabled)return;const b=r.model,A=b.document.selection;if(!A.isCollapsed)return;const C=Array.from(b.document.differ.getChanges()),E=C[0];if(1!=C.length||"insert"!==E.type||"$text"!=E.name||1!=E.length)return;const P=A.focus,F=P.parent,{text:j,range:Y}=function(At,Ft){let jt=At.start;return{text:Array.from(At.getItems()).reduce((ce,ze)=>!ze.is("$text")&&!ze.is("$textProxy")||ze.getAttribute("code")?(jt=Ft.createPositionAfter(ze),""):ce+ze.data,""),range:Ft.createRange(jt,At.end)}}(b.createRange(b.createPositionAt(F,0),P),b),$=l(j),st=gb(Y.start,$.format,b),ft=gb(Y.start,$.remove,b);st.length&&ft.length&&b.enqueueChange(At=>{if(!1!==n(At,st)){for(const Ft of ft.reverse())At.remove(Ft);b.enqueueChange(()=>{r.plugins.get("Delete").requestUndoOnBackspace()})}})})}function gb(r,t,e){return t.filter(n=>void 0!==n[0]&&void 0!==n[1]).map(n=>e.createRange(r.getShiftedBy(n[0]),r.getShiftedBy(n[1])))}function Xc(r,t){return(e,n)=>{if(!r.commands.get(t).isEnabled)return!1;const s=r.model.schema.getValidRanges(n,t);for(const l of s)e.setAttribute(t,!0,l);e.removeSelectionAttribute(t)}}class mb extends Jt{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,s=void 0===t.forceValue?!this.value:t.forceValue;e.change(l=>{if(n.isCollapsed)s?l.setSelectionAttribute(this.attributeKey,!0):l.removeSelectionAttribute(this.attributeKey);else{const h=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const p of h)s?l.setAttribute(this.attributeKey,s,p):l.removeAttribute(this.attributeKey,p)}})}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const s of n.getRanges())for(const l of s.getItems())if(e.checkAttribute(l,this.attributeKey))return l.hasAttribute(this.attributeKey);return!1}}const Jr="bold";class ZA extends Lt{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Jr}),t.model.schema.setAttributeProperties(Jr,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Jr,view:"strong",upcastAlso:["b",e=>{const n=e.getStyle("font-weight");return n&&("bold"==n||Number(n)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(Jr,new mb(t,Jr)),t.keystrokes.set("CTRL+B",Jr)}}const tp="bold";class UA extends Lt{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(tp,n=>{const s=t.commands.get(tp),l=new ve(n);return l.set({label:e("Bold"),icon:Ae.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute(tp),t.editing.view.focus()}),l})}}var fb=lt(8603);Rt()(fb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const $r="italic";class VA extends Lt{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:$r}),t.model.schema.setAttributeProperties($r,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:$r,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add($r,new mb(t,$r)),t.keystrokes.set("CTRL+I",$r)}}const ep="italic";class qA extends Lt{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(ep,n=>{const s=t.commands.get(ep),l=new ve(n);return l.set({label:e("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute(ep),t.editing.view.focus()}),l})}}class YA extends Jt{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,l=Array.from(e.document.selection.getSelectedBlocks()),h=void 0===t.forceValue?!this.value:t.forceValue;e.change(p=>{if(h){const b=l.filter(A=>Kc(A)||vb(n,A));this._applyQuote(p,b)}else this._removeQuote(p,l.filter(Kc))})}_getValue(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!Kc(t))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.schema,n=Oe(this.editor.model.document.selection.getSelectedBlocks());return!!n&&vb(e,n)}_removeQuote(t,e){bb(t,e).reverse().forEach(n=>{if(n.start.isAtStart&&n.end.isAtEnd)return void t.unwrap(n.start.parent);if(n.start.isAtStart){const l=t.createPositionBefore(n.start.parent);return void t.move(n,l)}n.end.isAtEnd||t.split(n.end);const s=t.createPositionAfter(n.end.parent);t.move(n,s)})}_applyQuote(t,e){const n=[];bb(t,e).reverse().forEach(s=>{let l=Kc(s.start);l||(l=t.createElement("blockQuote"),t.wrap(s,l)),n.push(l)}),n.reverse().reduce((s,l)=>s.nextSibling==l?(t.merge(t.createPositionAfter(s)),s):l)}}function Kc(r){return"blockQuote"==r.parent.name?r.parent:null}function bb(r,t){let e,n=0;const s=[];for(;n{const p=t.model.document.differ.getChanges();for(const b of p)if("insert"==b.type){const A=b.position.nodeAfter;if(!A)continue;if(A.is("element","blockQuote")&&A.isEmpty)return h.remove(A),!0;if(A.is("element","blockQuote")&&!e.checkChild(b.position,A))return h.unwrap(A),!0;if(A.is("element")){const C=h.createRangeIn(A);for(const E of C.getItems())if(E.is("element","blockQuote")&&!e.checkChild(h.createPositionBefore(E),E))return h.unwrap(E),!0}}else if("remove"==b.type){const A=b.position.parent;if(A.is("element","blockQuote")&&A.isEmpty)return h.remove(A),!0}return!1});const n=this.editor.editing.view.document,s=t.model.document.selection,l=t.commands.get("blockQuote");this.listenTo(n,"enter",(h,p)=>{!s.isCollapsed||!l.value||s.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),p.preventDefault(),h.stop())},{context:"blockquote"}),this.listenTo(n,"delete",(h,p)=>{if("backward"!=p.direction||!s.isCollapsed||!l.value)return;const b=s.getLastPosition().parent;b.isEmpty&&!b.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),p.preventDefault(),h.stop())},{context:"blockquote"})}}var kb=lt(3062);Rt()(kb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class WA extends Lt{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",n=>{const s=t.commands.get("blockQuote"),l=new ve(n);return l.set({label:e("Block quote"),icon:Ae.quote,tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute("blockQuote"),t.editing.view.focus()}),l})}}class QA extends Lt{static get pluginName(){return"CKBoxUI"}afterInit(){const t=this.editor,e=t.commands.get("ckbox");if(!e)return;const n=t.t;if(t.ui.componentFactory.add("ckbox",s=>{const l=new ve(s);return l.set({label:n("Open file manager"),icon:'',tooltip:!0}),l.bind("isOn","isEnabled").to(e,"value","isEnabled"),l.on("execute",()=>{t.execute("ckbox")}),l}),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI");s.registerIntegration({name:"assetManager",observable:e,buttonViewCreator:()=>{const l=this.editor.ui.componentFactory.create("ckbox");return l.icon=Ae.imageAssetManager,l.bind("label").to(s,"isImageSelected",h=>n(h?"Replace image with file manager":"Insert image with file manager")),l},formViewCreator:()=>{const l=this.editor.ui.componentFactory.create("ckbox");return l.icon=Ae.imageAssetManager,l.withText=!0,l.bind("label").to(s,"isImageSelected",h=>n(h?"Replace with file manager":"Insert with file manager")),l.on("execute",()=>{s.dropdownView.isOpen=!1}),l}})}}}var XA=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],Ta=r=>{let t=0;for(let e=0;e{let t=r/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},np=r=>{let t=Math.max(0,Math.min(1,r));return t<=.0031308?Math.trunc(12.92*t*255+.5):Math.trunc(255*(1.055*Math.pow(t,.4166666666666667)-.055)+.5)},op=(r,t)=>(r<0?-1:1)*Math.pow(Math.abs(r),t),_b=class extends Error{constructor(r){super(r),this.name="ValidationError",this.message=r}},JA=r=>{let t=r>>8&255,e=255&r;return[ip(r>>16),ip(t),ip(e)]},$A=(r,t)=>{let e=Math.floor(r/361),n=Math.floor(r/19)%19,s=r%19;return[op((e-9)/9,2)*t,op((n-9)/9,2)*t,op((s-9)/9,2)*t]},ex=Object.defineProperty,wb=Object.getOwnPropertySymbols,ix=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,Ab=(r,t,e)=>t in r?ex(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;function xb(r){const t=[];let e=0;for(const s in r){const l=parseInt(s,10);isNaN(l)||(l>e&&(e=l),t.push(`${r[s]} ${s}w`))}const n=[{srcset:t.join(","),sizes:`(max-width: ${e}px) 100vw, ${e}px`,type:"image/webp"}];return{imageFallbackUrl:r.default,imageSources:n}}function Cb({url:r,method:t="GET",data:e,onUploadProgress:n,signal:s,authorization:l}){const h=new XMLHttpRequest;h.open(t,r.toString()),h.setRequestHeader("Authorization",l),h.setRequestHeader("CKBox-Version","CKEditor 5"),h.responseType="json";const p=()=>{h.abort()};return new Promise((b,A)=>{s.throwIfAborted(),s.addEventListener("abort",p),h.addEventListener("loadstart",()=>{s.addEventListener("abort",p)}),h.addEventListener("loadend",()=>{s.removeEventListener("abort",p)}),h.addEventListener("error",()=>{A()}),h.addEventListener("abort",()=>{A()}),h.addEventListener("load",()=>{const C=h.response;if(!C||C.statusCode>=400)return A(C&&C.message);b(C)}),n&&h.upload.addEventListener("progress",C=>{n(C)}),h.send(e)})}const ox={"image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};var sx=Object.defineProperty,yb=Object.getOwnPropertySymbols,ax=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,Eb=(r,t,e)=>t in r?sx(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Tb=(r,t)=>{for(var e in t||(t={}))ax.call(t,e)&&Eb(r,e,t[e]);if(yb)for(var e of yb(t))lx.call(t,e)&&Eb(r,e,t[e]);return r};class cx extends Jt{constructor(t){super(t),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");return!(!t.isEnabled&&!e.isEnabled)}_prepareOptions(){const t=this.editor.config.get("ckbox");return{theme:t.theme,language:t.language,tokenUrl:t.tokenUrl,serviceOrigin:t.serviceOrigin,forceDemoLabel:t.forceDemoLabel,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:e=>this.fire("ckbox:choose",e)}}}_initListeners(){const t=this.editor,e=t.model,n=!t.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=yn(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null,t.editing.view.focus())}),this.on("ckbox:choose",(s,l)=>{if(!this.isEnabled)return;const h=t.commands.get("insertImage"),p=t.commands.get("link"),b=function({assets:C,isImageAllowed:E,isLinkAllowed:P}){return C.map(F=>function(j){const Y=j.data.metadata;return!!Y&&Y.width&&Y.height}(F)?{id:F.data.id,type:"image",attributes:dx(F)}:{id:F.data.id,type:"link",attributes:hx(F)}).filter(F=>"image"===F.type?E:P)}({assets:l,isImageAllowed:h.isEnabled,isLinkAllowed:p.isEnabled}),A=b.length;0!==A&&(e.change(C=>{for(const E of b)this._insertAsset(E,E===b[A-1],C,1===A),n&&(setTimeout(()=>this._chosenAssets.delete(E),1e3),this._chosenAssets.add(E))}),t.editing.view.focus())}),this.listenTo(t,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(t,e,n,s){const l=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),"image"===t.type?this._insertImage(t):this._insertLink(t,n,s),e||n.setSelection(l.getLastPosition())}_insertImage(t){const e=this.editor,{imageFallbackUrl:n,imageSources:s,imageTextAlternative:l,imageWidth:h,imageHeight:p,imagePlaceholder:b}=t.attributes;e.execute("insertImage",{source:Tb({src:n,sources:s,alt:l,width:h,height:p},b?{placeholder:b}:null)})}_insertLink(t,e,n){const s=this.editor,l=s.model,h=l.document.selection,{linkName:p,linkHref:b}=t.attributes;if(h.isCollapsed){const A=ri(h.getAttributes()),C=e.createText(p,A);if(!n){const P=h.getLastPosition(),F=P.parent;"paragraph"===F.name&&F.isEmpty||s.execute("insertParagraph",{position:P});const j=l.insertContent(C);return e.setSelection(j),void s.execute("link",b)}const E=l.insertContent(C);e.setSelection(E)}s.execute("link",b)}}function dx(r){const{imageFallbackUrl:t,imageSources:e}=xb(r.data.imageUrls),{description:n,width:s,height:l,blurHash:h}=r.data.metadata,p=function(b){if(b)try{const A="32px",C=document.createElement("canvas");C.setAttribute("width",A),C.setAttribute("height",A);const E=C.getContext("2d");if(!E)return;const P=E.createImageData(32,32),F=((r,t,e,n)=>{(r=>{if(!r||r.length<6)throw new _b("The blurhash string must be at least 6 characters");let t=Ta(r[0]),e=Math.floor(t/9)+1,n=t%9+1;if(r.length!==4+2*n*e)throw new _b(`blurhash length mismatch: length is ${r.length} but it should be ${4+2*n*e}`)})(r),n|=1;let s=Ta(r[0]),l=Math.floor(s/9)+1,h=s%9+1,p=(Ta(r[1])+1)/166,b=new Array(h*l);for(let E=0;Enew Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class Sb extends Lt{static get pluginName(){return"CKBoxUtils"}static get requires(){return["CloudServices"]}init(){return rp(this,null,function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;t.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:t.locale.uiLanguage,theme:"lark",tokenUrl:t.config.get("cloudServices.tokenUrl")});const s=t.plugins.get("CloudServices"),l=t.config.get("cloudServices.tokenUrl"),h=t.config.get("ckbox.tokenUrl");if(!h)throw new W("ckbox-plugin-missing-token-url",this);this._token=h==l?s.token:yield s.registerTokenUrl(h)})}getToken(){return this._token}getWorkspaceId(){const t=(0,this.editor.t)("Cannot access default workspace."),e=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),n=function(s,l){const[,h]=s.value.split("."),p=JSON.parse(atob(h)),b=p.auth&&p.auth.ckbox&&p.auth.ckbox.workspaces||[p.aud];return l?"superadmin"==(p.auth&&p.auth.ckbox&&p.auth.ckbox.role)||b.includes(l)?l:null:b[0]}(this._token,e);if(null==n)throw Pt("ckbox-access-default-workspace-error"),t;return n}getCategoryIdForFile(t,e){return rp(this,null,function*(){const n=(0,this.editor.t)("Cannot determine a category for the uploaded file."),s=this.editor.config.get("ckbox.defaultUploadCategories"),l=this._getAvailableCategories(e),h="string"==typeof t?(p=yield function rx(r,t){return e=this,s=function*(){try{const l=yield fetch(r,((h,p)=>{for(var b in p||(p={}))ix.call(p,b)&&Ab(h,b,p[b]);if(wb)for(var b of wb(p))nx.call(p,b)&&Ab(h,b,p[b]);return h})({method:"HEAD",cache:"force-cache"},t));return l.ok&&l.headers.get("content-type")||""}catch{return""}},new Promise((l,h)=>{var p=C=>{try{A(s.next(C))}catch(E){h(E)}},b=C=>{try{A(s.throw(C))}catch(E){h(E)}},A=C=>C.done?l(C.value):Promise.resolve(C.value).then(p,b);A((s=s.apply(e,null)).next())});var e,s}(t,e),ox[p]):function(C){const E=C.name,P=new RegExp("\\.(?[^.]+)$");return E.match(P).groups.ext.toLowerCase()}(t);var p;const b=yield l;if(!b)throw n;if(s){const C=Object.keys(s).find(E=>s[E].find(P=>P.toLowerCase()==h));if(C){const E=b.find(P=>P.id===C||P.name===C);if(!E)throw n;return E.id}}const A=b.find(C=>C.extensions.find(E=>E.toLowerCase()==h));if(!A)throw n;return A.id})}_getAvailableCategories(t){return rp(this,null,function*(){const e=this.editor,n=this._token,{signal:s}=t,l=e.config.get("ckbox.serviceOrigin"),h=this.getWorkspaceId();try{const b=[];let A,C=0;do{const E=yield p(C);b.push(...E.items),A=E.totalCount-(C+50),C+=50}while(A>0);return b}catch{return s.throwIfAborted(),void Pt("ckbox-fetch-category-http-error")}function p(b){const A=new URL("categories",l);return A.searchParams.set("limit",50..toString()),A.searchParams.set("offset",b.toString()),A.searchParams.set("workspaceId",h),Cb({url:A,signal:s,authorization:n.value})}})}}var sp=(r,t,e)=>new Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class px extends Lt{static get requires(){return["ImageUploadEditing","ImageUploadProgress",sn,Ib]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return sp(this,null,function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;const s=t.plugins.get(sn),l=t.plugins.get(Sb);s.createUploadAdapter=b=>new gx(b,t,l);const h=!t.config.get("ckbox.ignoreDataId"),p=t.plugins.get("ImageUploadEditing");h&&p.on("uploadComplete",(b,{imageElement:A,data:C})=>{t.model.change(E=>{E.setAttribute("ckboxImageId",C.ckboxImageId,A)})})})}}class gx{constructor(t,e,n){this.loader=t,this.token=n.getToken(),this.ckboxUtils=n,this.editor=e,this.controller=new AbortController,this.serviceOrigin=e.config.get("ckbox.serviceOrigin")}upload(){return sp(this,null,function*(){const t=this.ckboxUtils,e=this.editor.t,n=yield this.loader.file,s=yield t.getCategoryIdForFile(n,{signal:this.controller.signal}),l=new URL("assets",this.serviceOrigin),h=new FormData;return l.searchParams.set("workspaceId",t.getWorkspaceId()),h.append("categoryId",s),h.append("file",n),Cb({method:"POST",url:l,data:h,onUploadProgress:p=>{p.lengthComputable&&(this.loader.uploadTotal=p.total,this.loader.uploaded=p.loaded)},signal:this.controller.signal,authorization:this.token.value}).then(p=>sp(this,null,function*(){const b=xb(p.imageUrls);return{ckboxImageId:p.id,default:b.imageFallbackUrl,sources:b.imageSources}})).catch(()=>{const p=e("Cannot upload file:")+` ${n.name}.`;return Promise.reject(p)})})}abort(){this.controller.abort()}}class Ib extends Lt{static get pluginName(){return"CKBoxEditing"}static get requires(){return["LinkEditing","PictureEditing",px,Sb]}init(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;(e||n)&&(this._checkImagePlugins(),t.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),n&&t.commands.add("ckbox",new cx(t)))}_checkImagePlugins(){const t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||Pt("ckbox-plugin-image-feature-missing",t)}_initSchema(){const t=this.editor.model.schema;t.extend("$text",{allowAttributes:"ckboxLinkId"}),t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.addAttributeCheck((e,n)=>{if(!e.last.getAttribute("linkHref")&&"ckboxLinkId"===n)return!1})}_initConversion(){const t=this.editor;t.conversion.for("downcast").add(n=>{n.on("attribute:ckboxLinkId:imageBlock",(s,l,h)=>{const{writer:p,mapper:b,consumable:A}=h;if(!A.consume(l.item,s.name))return;const C=[...b.toViewElement(l.item).getChildren()].find(E=>"a"===E.name);C&&(l.item.hasAttribute("ckboxLinkId")?p.setAttribute("data-ckbox-resource-id",l.item.getAttribute("ckboxLinkId"),C):p.removeAttribute("data-ckbox-resource-id",C))},{priority:"low"}),n.on("attribute:ckboxLinkId",(s,l,h)=>{const{writer:p,mapper:b,consumable:A}=h;if(A.consume(l.item,s.name)){if(l.attributeOldValue){const C=Db(p,l.attributeOldValue);p.unwrap(b.toViewRange(l.range),C)}if(l.attributeNewValue){const C=Db(p,l.attributeNewValue);l.item.is("selection")?p.wrap(p.document.selection.getFirstRange(),C):p.wrap(b.toViewRange(l.range),C)}}},{priority:"low"})}),t.conversion.for("upcast").add(n=>{n.on("element:a",(s,l,h)=>{const{writer:p,consumable:b}=h;if(!l.viewItem.getAttribute("href")||!b.consume(l.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const A=l.viewItem.getAttribute("data-ckbox-resource-id");if(A)if(l.modelRange)for(let C of l.modelRange.getItems())C.is("$textProxy")&&(C=C.textNode),fx(C)&&p.setAttribute("ckboxLinkId",A,C);else p.setAttribute("ckboxLinkId",A,l.modelCursor.nodeBefore||l.modelCursor.parent)},{priority:"low"})}),t.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),t.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:n=>n.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}});const e=t.commands.get("replaceImageSource");e&&this.listenTo(e,"cleanupImage",(n,[s,l])=>{s.removeAttribute("ckboxImageId",l)})}_initFixers(){const t=this.editor,e=t.model,n=e.document.selection;var s;e.document.registerPostFixer((s=t,l=>{let h=!1;const p=s.model,b=s.commands.get("ckbox");if(!b)return h;for(const A of p.document.differ.getChanges()){if("insert"!==A.type&&"attribute"!==A.type)continue;const C="insert"===A.type?new wt(A.position,A.position.getShiftedBy(A.length)):A.range,E="attribute"===A.type&&"linkHref"===A.attributeKey&&null===A.attributeNewValue;for(const P of C.getItems()){if(E&&P.hasAttribute("ckboxLinkId")){l.removeAttribute("ckboxLinkId",P),h=!0;continue}const F=mx(P,b._chosenAssets);for(const j of F){const Y="image"===j.type?"ckboxImageId":"ckboxLinkId";j.id!==P.getAttribute(Y)&&(l.setAttribute(Y,j.id,P),h=!0)}}}return h})),e.document.registerPostFixer(function(s){return l=>!(s.hasAttribute("linkHref")||!s.hasAttribute("ckboxLinkId")||(l.removeSelectionAttribute("ckboxLinkId"),0))}(n))}}function mx(r,t){const e=r.is("element","imageInline")||r.is("element","imageBlock"),n=r.hasAttribute("linkHref");return[...t].filter(s=>"image"===s.type&&e?s.attributes.imageFallbackUrl===r.getAttribute("src"):"link"===s.type&&n?s.attributes.linkHref===r.getAttribute("linkHref"):void 0)}function Db(r,t){const e=r.createAttributeElement("a",{"data-ckbox-resource-id":t},{priority:5});return r.setCustomProperty("link",!0,e),e}function fx(r){return!!r.is("$text")||!(!r.is("element","imageInline")&&!r.is("element","imageBlock"))}var Mb=lt(443);Rt()(Mb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class vx extends Lt{static get pluginName(){return"CKFinderUI"}init(){const t=this.editor,n=t.t;if(t.ui.componentFactory.add("ckfinder",s=>{const l=t.commands.get("ckfinder"),h=new ve(s);return h.set({label:n("Insert image or file"),icon:'',tooltip:!0}),h.bind("isEnabled").to(l),h.on("execute",()=>{t.execute("ckfinder"),t.editing.view.focus()}),h}),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI"),l=t.commands.get("ckfinder");s.registerIntegration({name:"assetManager",observable:l,buttonViewCreator:()=>{const h=this.editor.ui.componentFactory.create("ckfinder");return h.icon=Ae.imageAssetManager,h.bind("label").to(s,"isImageSelected",p=>n(p?"Replace image with file manager":"Insert image with file manager")),h},formViewCreator:()=>{const h=this.editor.ui.componentFactory.create("ckfinder");return h.icon=Ae.imageAssetManager,h.withText=!0,h.bind("label").to(s,"isImageSelected",p=>n(p?"Replace with file manager":"Insert with file manager")),h.on("execute",()=>{s.dropdownView.isOpen=!1}),h}})}}}class kx extends Jt{constructor(t){super(t),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}execute(){const t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new W("ckfinder-unknown-openermethod",t);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const s=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=l=>{s&&s(l),l.on("files:choose",h=>{const p=h.data.files.toArray(),b=p.filter(E=>!E.isImage()),A=p.filter(E=>E.isImage());for(const E of b)t.execute("link",E.getUrl());const C=[];for(const E of A){const P=E.getUrl();C.push(P||l.request("file:getProxyUrl",{file:E}))}C.length&&Lb(t,C)}),l.on("file:choose:resizedImage",h=>{const p=h.data.resizedUrl;if(p)Lb(t,[p]);else{const b=t.plugins.get("Notification"),A=t.locale.t;b.showWarning(A("Could not obtain resized image URL."),{title:A("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[e](n)}}function Lb(r,t){if(r.commands.get("insertImage").isEnabled)r.execute("insertImage",{source:t});else{const e=r.plugins.get("Notification"),n=r.locale.t;e.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class _x extends Lt{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Hu,"LinkEditing"]}init(){const t=this.editor;if(!t.plugins.has("ImageBlockEditing")&&!t.plugins.has("ImageInlineEditing"))throw new W("ckfinder-missing-image-plugin",t);t.commands.add("ckfinder",new kx(t))}}class wx extends Lt{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",sn]}init(){const t=this.editor,e=t.plugins.get("CloudServices"),n=e.token,s=e.uploadUrl;if(!n)return;const l=t.plugins.get("CloudServicesCore");this._uploadGateway=l.createUploadGateway(n,s),t.plugins.get(sn).createUploadAdapter=h=>new Ax(this._uploadGateway,h)}}class Ax{constructor(t,e){this.uploadGateway=t,this.loader=e}upload(){return this.loader.file.then(t=>(this.fileUploader=this.uploadGateway.upload(t),this.fileUploader.on("progress",(e,n)=>{this.loader.uploadTotal=n.total,this.loader.uploaded=n.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class xx extends Jt{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=Oe(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Pb(e,t.schema)}execute(t={}){const e=this.editor.model,s=t.selection||e.document.selection;e.canEditAt(s)&&e.change(l=>{const h=s.getSelectedBlocks();for(const p of h)!p.is("element","paragraph")&&Pb(p,e.schema)&&l.rename(p,"paragraph")})}}function Pb(r,t){return t.checkChild(r.parent,"paragraph")&&!t.isObject(r)}class Cx extends Jt{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}execute(t){const e=this.editor.model,n=t.attributes;let s=t.position;e.canEditAt(s)&&e.change(l=>{if(s=this._findPositionToInsertParagraph(s,l),!s)return;const h=l.createElement("paragraph");n&&e.schema.setAllowedAttributes(h,n,l),e.insertContent(h,s),l.setSelection(h,"in")})}_findPositionToInsertParagraph(t,e){const n=this.editor.model;if(n.schema.checkChild(t,"paragraph"))return t;const s=n.schema.findAllowedParent(t,"paragraph");if(!s)return null;const l=t.parent,h=n.schema.checkChild(l,"$text");return l.isEmpty||h&&t.isAtEnd?n.createPositionAfter(l):!l.isEmpty&&h&&t.isAtStart?n.createPositionBefore(l):e.split(t,s).position}}const Nb=class extends Lt{static get pluginName(){return"Paragraph"}init(){const r=this.editor,t=r.model;r.commands.add("paragraph",new xx(r)),r.commands.add("insertParagraph",new Cx(r)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),r.conversion.elementToElement({model:"paragraph",view:"p"}),r.conversion.for("upcast").elementToElement({model:(e,{writer:n})=>Nb.paragraphLikeElements.has(e.name)?e.isEmpty?null:n.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let ap=Nb;ap.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class yx extends Jt{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some(e=>Ob(t,e,this.editor.model.schema))}execute(t){const e=this.editor.model,n=e.document,s=t.value;e.change(l=>{const h=Array.from(n.selection.getSelectedBlocks()).filter(p=>Ob(p,s,e.schema));for(const p of h)p.is("element",s)||l.rename(p,s)})}}function Ob(r,t,e){return e.checkChild(r.parent,t)&&!e.isObject(r)}const Bb="paragraph";class Ex extends Lt{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[ap]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const s of e)"paragraph"!==s.model&&(t.model.schema.register(s.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(s),n.push(s.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new yx(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",(s,l)=>{const h=t.model.document.selection.getFirstPosition().parent;n.some(p=>h.is("element",p.model))&&!h.is("element",Bb)&&0===h.childCount&&l.writer.rename(h,Bb)})}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:It.low+1})}}var Fb=lt(8733);Rt()(Fb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Sx extends Lt{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=function(h){const p=h.t,b={Paragraph:p("Paragraph"),"Heading 1":p("Heading 1"),"Heading 2":p("Heading 2"),"Heading 3":p("Heading 3"),"Heading 4":p("Heading 4"),"Heading 5":p("Heading 5"),"Heading 6":p("Heading 6")};return h.config.get("heading.options").map(A=>{const C=b[A.title];return C&&C!=A.title&&(A.title=C),A})}(t),s=e("Choose heading"),l=e("Heading");t.ui.componentFactory.add("heading",h=>{const p={},b=new di,A=t.commands.get("heading"),C=t.commands.get("paragraph"),E=[A];for(const F of n){const j={type:"button",model:new qm({label:F.title,class:F.class,role:"menuitemradio",withText:!0})};"paragraph"===F.model?(j.model.bind("isOn").to(C,"value"),j.model.set("commandName","paragraph"),E.push(C)):(j.model.bind("isOn").to(A,"value",Y=>Y===F.model),j.model.set({commandName:"heading",commandValue:F.model})),b.add(j),p[F.model]=F.title}const P=Zn(h);return hm(P,b,{ariaLabel:l,role:"menu"}),P.buttonView.set({ariaLabel:l,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:l}),P.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),P.bind("isEnabled").toMany(E,"isEnabled",(...F)=>F.some(j=>j)),P.buttonView.bind("label").to(A,"value",C,"value",(F,j)=>{const Y=F||j&&"paragraph";return"boolean"==typeof Y?s:p[Y]?p[Y]:s}),this.listenTo(P,"execute",F=>{const{commandName:j,commandValue:Y}=F.source;t.execute(j,Y?{value:Y}:void 0),t.editing.view.focus()}),P})}}function zb(r){return r.createContainerElement("figure",{class:"image"},[r.createEmptyElement("img"),r.createSlot("children")])}function Rb(r,t){const e=r.plugins.get("ImageUtils"),n=r.plugins.has("ImageInlineEditing")&&r.plugins.has("ImageBlockEditing");return l=>e.isInlineImageView(l)?n&&("block"==l.getStyle("display")||l.findAncestor(e.isBlockImageView)?"imageBlock":"imageInline")!==t?null:function s(l){const h={name:!0};return l.hasAttribute("src")&&(h.attributes=["src"]),h}(l):null}function lp(r,t){const e=Oe(t.getSelectedBlocks());return!e||r.isObject(e)||e.isEmpty&&"listItem"!=e.name?"imageBlock":"imageInline"}function Jc(r){return r&&r.endsWith("px")?parseInt(r):null}function Zb(r){const t=Jc(r.getStyle("width")),e=Jc(r.getStyle("height"));return!(!t||!e)}var Ix=Object.defineProperty,Ub=Object.getOwnPropertySymbols,Dx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,jb=(r,t,e)=>t in r?Ix(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Vb=(r,t)=>{for(var e in t||(t={}))Dx.call(t,e)&&jb(r,e,t[e]);if(Ub)for(var e of Ub(t))Mx.call(t,e)&&jb(r,e,t[e]);return r};const Lx=/^(image|image-inline)$/;class Ci extends Lt{constructor(){super(...arguments),this._domEmitter=new(bi())}static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null,s={}){const l=this.editor,h=l.model,p=h.document.selection,b=qb(l,e||p,n);t=Vb(Vb({},Object.fromEntries(p.getAttributes())),t);for(const A in t)h.schema.checkAttribute(b,A)||delete t[A];return h.change(A=>{const{setImageSizes:C=!0}=s,E=A.createElement(b,t);return h.insertObject(E,e,null,{setSelection:"on",findOptimalPosition:e||"imageInline"==b?void 0:"auto"}),E.parent?(C&&this.setImageNaturalSizeAttributes(E),E):null})}setImageNaturalSizeAttributes(t){const e=t.getAttribute("src");e&&(t.getAttribute("width")||t.getAttribute("height")||this.editor.model.change(n=>{const s=new Yt.window.Image;this._domEmitter.listenTo(s,"load",()=>{t.getAttribute("width")||t.getAttribute("height")||this.editor.model.enqueueChange(n.batch,l=>{l.setAttribute("width",s.naturalWidth,t),l.setAttribute("height",s.naturalHeight,t)}),this._domEmitter.stopListening(s,"load")}),s.src=e}))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let s=e.parent;for(;s;){if(s.is("element")&&this.isImageWidget(s))return s;s=s.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:Lx})}isImageAllowed(){const t=this.editor.model.document.selection;return function(e,n){if("imageBlock"==qb(e,n,null)){const l=function(h,p){const A=zf(h,p).start.parent;return A.isEmpty&&!A.is("element","$root")?A.parent:A}(n,e.model);if(e.model.schema.checkChild(l,"imageBlock"))return!0}else if(e.model.schema.checkChild(n.focus,"imageInline"))return!0;return!1}(this.editor,t)&&[...t.focus.getAncestors()].every(n=>!n.is("element","imageBlock"))}toImageWidget(t,e,n){return e.setCustomProperty("image",!0,t),Ju(t,e,{label:()=>{const s=this.findViewImgElement(t).getAttribute("alt");return s?`${s} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&He(t)}isBlockImage(t){return!!t&&t.is("element","imageBlock")}isInlineImage(t){return!!t&&t.is("element","imageInline")}findViewImgElement(t){if(this.isInlineImageView(t))return t;const e=this.editor.editing.view;for(const{item:n}of e.createRangeIn(t))if(this.isInlineImageView(n))return n}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function qb(r,t,e){const n=r.model.schema,s=r.config.get("image.insert.type");return r.plugins.has("ImageBlockEditing")?r.plugins.has("ImageInlineEditing")?e||("inline"===s?"imageInline":"auto"!==s?"imageBlock":t.is("selection")?lp(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class Px extends Jt{refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.value=!(!this.isEnabled||!t.hasAttribute("alt"))&&t.getAttribute("alt")}execute(t){const e=this.editor,n=e.plugins.get("ImageUtils"),s=e.model,l=n.getClosestSelectedImageElement(s.document.selection);s.change(h=>{h.setAttribute("alt",t.newValue,l)})}}class Nx extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Px(this.editor))}}var Yb=lt(1905);Rt()(Yb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Hb=lt(6764);Rt()(Hb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Fx extends Wt{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Ye,this.keystrokes=new vi,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._focusables=new Ri,this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),L({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}_createLabeledInputView(){const t=this.locale.t,e=new Cr(this.locale,Pc);return e.label=t("Text alternative"),e}}function Gb(r){const t=r.editing.view,e=Ai.defaultPositions,n=r.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(t.document.selection)),positions:[e.northArrowSouth,e.northArrowSouthWest,e.northArrowSouthEast,e.southArrowNorth,e.southArrowNorthWest,e.southArrowNorthEast,e.viewportStickyNorth]}}class zx extends Lt{static get requires(){return[Rc]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",n=>{const s=t.commands.get("imageTextAlternative"),l=new ve(n);return l.set({label:e("Change image text alternative"),icon:Ae.textAlternative,tooltip:!0}),l.bind("isEnabled").to(s,"isEnabled"),l.bind("isOn").to(s,"value",h=>!!h),this.listenTo(l,"execute",()=>{this._showForm()}),l})}_createForm(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(ct(Fx))(t.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(s,l)=>{this._hideForm(!0),l()}),this.listenTo(t.ui,"update",()=>{n.getClosestSelectedImageWidget(e.selection)?this._isVisible&&function(s){const l=s.plugins.get("ContextualBalloon");if(s.plugins.get("ImageUtils").getClosestSelectedImageWidget(s.editing.view.document.selection)){const h=Gb(s);l.updatePosition(h)}}(t):this._hideForm(!0)}),et({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Gb(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class Wb extends Lt{static get requires(){return[Nx,zx]}static get pluginName(){return"ImageTextAlternative"}}function Qb(r,t){const e=(n,s,l)=>{if(!l.consumable.consume(s.item,n.name))return;const h=l.writer,p=l.mapper.toViewElement(s.item),b=r.findViewImgElement(p);null===s.attributeNewValue?(h.removeAttribute("srcset",b),h.removeAttribute("sizes",b)):s.attributeNewValue&&(h.setAttribute("srcset",s.attributeNewValue,b),h.setAttribute("sizes","100vw",b))};return n=>{n.on(`attribute:srcset:${t}`,e)}}function $c(r,t,e){const n=(s,l,h)=>{if(!h.consumable.consume(l.item,s.name))return;const p=h.writer,b=h.mapper.toViewElement(l.item),A=r.findViewImgElement(b);p.setAttribute(l.attributeKey,l.attributeNewValue||"",A)};return s=>{s.on(`attribute:${e}:${t}`,n)}}class Xb extends Vi{observe(t){this.listenTo(t,"load",(e,n)=>{const s=n.target;this.checkShouldIgnoreEventFromTarget(s)||"IMG"==s.tagName&&this._fireEvents(n)},{useCapture:!0})}stopObserving(t){this.stopListening(t)}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}var Rx=Object.defineProperty,Kb=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Ux=Object.prototype.propertyIsEnumerable,Jb=(r,t,e)=>t in r?Rx(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,td=(r,t)=>{for(var e in t||(t={}))Zx.call(t,e)&&Jb(r,e,t[e]);if(Kb)for(var e of Kb(t))Ux.call(t,e)&&Jb(r,e,t[e]);return r};class jx extends Jt{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||"block"===e&&kt("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===e&&kt("image-inline-plugin-required")}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=Ze(t.source),n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageUtils"),l=Object.fromEntries(n.getAttributes());e.forEach((h,p)=>{const b=n.getSelectedElement();if("string"==typeof h&&(h={src:h}),p&&b&&s.isImage(b)){const A=this.editor.model.createPositionAfter(b);s.insertImage(td(td({},h),l),A)}else s.insertImage(td(td({},h),l))})}}class Vx extends Jt{constructor(t){super(t),this.decorate("cleanupImage")}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=t.isImage(e),this.value=this.isEnabled?e.getAttribute("src"):null}execute(t){const e=this.editor.model.document.selection.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");this.editor.model.change(s=>{s.setAttribute("src",t.source,e),this.cleanupImage(s,e),n.setImageNaturalSizeAttributes(e)})}cleanupImage(t,e){t.removeAttribute("srcset",e),t.removeAttribute("sizes",e),t.removeAttribute("sources",e),t.removeAttribute("width",e),t.removeAttribute("height",e),t.removeAttribute("alt",e)}}class cp extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(Xb),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new jx(t),s=new Vx(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",s),t.commands.add("imageInsert",n)}}class $b extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils"),s="imageBlock"===t?"figure":"img";function l(h,p,b,A){h.on(`attribute:${p}:${t}`,(C,E,P)=>{if(!P.consumable.consume(E.item,C.name))return;const F=P.writer,j=P.mapper.toViewElement(E.item),Y=n.findViewImgElement(j);if(null!==E.attributeNewValue?F.setAttribute(b,E.attributeNewValue,Y):F.removeAttribute(b,Y),E.item.hasAttribute("sources"))return;const $=E.item.hasAttribute("resizedWidth");if("imageInline"===t&&!$&&!A)return;const st=E.item.getAttribute("width"),ft=E.item.getAttribute("height");st&&ft&&F.setStyle("aspect-ratio",`${st}/${ft}`,Y)})}e.conversion.for("upcast").attributeToAttribute({view:{name:s,styles:{width:/.+/}},model:{key:"width",value:h=>Zb(h)?Jc(h.getStyle("width")):null}}).attributeToAttribute({view:{name:s,key:"width"},model:"width"}).attributeToAttribute({view:{name:s,styles:{height:/.+/}},model:{key:"height",value:h=>Zb(h)?Jc(h.getStyle("height")):null}}).attributeToAttribute({view:{name:s,key:"height"},model:"height"}),e.conversion.for("editingDowncast").add(h=>{l(h,"width","width",!0),l(h,"height","height",!0)}),e.conversion.for("dataDowncast").add(h=>{l(h,"width","width",!1),l(h,"height","height",!1)})}}class tv extends Jt{constructor(t,e){super(t),this._modelElementName=e}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled="imageBlock"===this._modelElementName?t.isInlineImage(e):t.isBlockImage(e)}execute(t={}){const n=this.editor.model,s=this.editor.plugins.get("ImageUtils"),l=s.getClosestSelectedImageElement(n.document.selection),h=Object.fromEntries(l.getAttributes());return h.src||h.uploadId?n.change(p=>{const{setImageSizes:b=!0}=t,A=Array.from(n.markers).filter(P=>P.getRange().containsItem(l)),C=s.insertImage(h,n.createSelection(l,"on"),this._modelElementName,{setImageSizes:b});if(!C)return null;const E=p.createRangeOn(C);for(const P of A){const F=P.getRange(),j="$graveyard"!=F.root.rootName?F.getJoined(E,!0):E;p.updateMarker(P,{range:j})}return{oldElement:l,newElement:C}}):null}}var ev=lt(2873);Rt()(ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class iv extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const t=this.editor.model.schema;t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["placeholder"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("editingDowncast").add(s=>{s.on("attribute:placeholder",(l,h,p)=>{if(!p.consumable.test(h.item,l.name)||!h.item.is("element","imageBlock")&&!h.item.is("element","imageInline"))return;p.consumable.consume(h.item,l.name);const b=p.writer,A=p.mapper.toViewElement(h.item),C=n.findViewImgElement(A);h.attributeNewValue?(b.addClass("image_placeholder",C),b.setStyle("background-image",`url(${h.attributeNewValue})`,C),b.setCustomProperty("editingPipeline:doNotReuseOnce",!0,C)):(b.removeClass("image_placeholder",C),b.removeStyle("background-image",C))})})}_setupLoadListener(){const t=this.editor,e=t.model,n=t.editing,s=n.view,l=t.plugins.get("ImageUtils");s.addObserver(Xb),this.listenTo(s.document,"imageLoaded",(h,p)=>{const b=s.domConverter.mapDomToView(p.target);if(!b)return;const A=l.getImageWidgetFromImageView(b);if(!A)return;const C=n.mapper.toModelElement(A);C&&C.hasAttribute("placeholder")&&e.enqueueChange({isUndoable:!1},E=>{E.removeAttribute("placeholder",C)})})}}class nv extends Lt{static get requires(){return[cp,$b,Ci,iv,fn]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new tv(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,s=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:h})=>zb(h)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:h})=>s.toImageWidget(zb(h),h,e("image widget"))}),n.for("downcast").add($c(s,"imageBlock","src")).add($c(s,"imageBlock","alt")).add(Qb(s,"imageBlock")),n.for("upcast").elementToElement({view:Rb(t,"imageBlock"),model:(l,{writer:h})=>h.createElement("imageBlock",l.hasAttribute("src")?{src:l.getAttribute("src")}:void 0)}).add(function(l){const h=(p,b,A)=>{if(!A.consumable.test(b.viewItem,{name:!0,classes:"image"}))return;const C=l.findViewImgElement(b.viewItem);if(!C||!A.consumable.test(C,{name:!0}))return;A.consumable.consume(b.viewItem,{name:!0,classes:"image"});const E=Oe(A.convertItem(C,b.modelCursor).modelRange.getItems());E?(A.convertChildren(b.viewItem,E),A.updateConversionResult(E,b)):A.consumable.revert(b.viewItem,{name:!0,classes:"image"})};return p=>{p.on("element:figure",h)}}(s))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,s=t.plugins.get("ImageUtils"),l=t.plugins.get("ClipboardPipeline");this.listenTo(l,"inputTransformation",(h,p)=>{const b=Array.from(p.content.getChildren());let A;if(!b.every(s.isInlineImageView))return;A=p.targetRanges?t.editing.mapper.toModelRange(p.targetRanges[0]):e.document.selection.getFirstRange();const C=e.createSelection(A);if("imageBlock"===lp(e.schema,C)){const E=new ko(n.document),P=b.map(F=>E.createElement("figure",{class:"image"},F));p.content=E.createDocumentFragment(P)}}),this.listenTo(l,"contentInsertion",(h,p)=>{"paste"===p.method&&e.change(b=>{const A=b.createRangeIn(p.content);for(const C of A.getItems())C.is("element","imageBlock")&&s.setImageNaturalSizeAttributes(C)})})}}var ov=lt(3535);Rt()(ov.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Hx extends Wt{constructor(t,e=[]){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri,this.children=this.createCollection(),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const n of e)this.children.add(n),this._focusables.add(n),n instanceof y1&&this._focusables.addMany(n.children);if(this._focusables.length>1)for(const n of this._focusables)Gx(n)&&(n.focusCycler.on("forwardCycle",s=>{this._focusCycler.focusNext(),s.stop()}),n.focusCycler.on("backwardCycle",s=>{this._focusCycler.focusPrevious(),s.stop()}));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),L({view:this});for(const e of this._focusables)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}function Gx(r){return"focusCycler"in r}class rv extends Lt{constructor(t){super(t),this._integrations=new Map,t.config.define("image.insert.integrations",["upload","assetManager","url"])}static get pluginName(){return"ImageInsertUI"}static get requires(){return[Ci]}init(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(t.model.document,"change",()=>{this.isImageSelected=n.isImage(e.getSelectedElement())});const s=l=>this._createToolbarComponent(l);t.ui.componentFactory.add("insertImage",s),t.ui.componentFactory.add("imageInsert",s)}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:s,requiresForm:l}){this._integrations.has(t)&&kt("image-insert-integration-exists",{name:t}),this._integrations.set(t,{observable:e,buttonViewCreator:n,formViewCreator:s,requiresForm:!!l})}_createToolbarComponent(t){const e=this.editor,n=t.t,s=this._prepareIntegrations();if(!s.length)return null;let l;const h=s[0];if(1==s.length){if(!h.requiresForm)return h.buttonViewCreator(!0);l=h.buttonViewCreator(!0)}else{const A=h.buttonViewCreator(!1);l=new Lc(t,A),l.tooltip=!0,l.bind("label").to(this,"isImageSelected",C=>n(C?"Replace image":"Insert image"))}const p=this.dropdownView=Zn(t,l),b=s.map(({observable:A})=>A);return p.bind("isEnabled").toMany(b,"isEnabled",(...A)=>A.some(C=>C)),p.once("change:isOpen",()=>{const A=s.map(({formViewCreator:E})=>E(1==s.length)),C=new Hx(e.locale,A);p.panelView.children.add(C)}),p}_prepareIntegrations(){const t=this.editor.config.get("image.insert.integrations"),e=[];if(!t.length)return kt("image-insert-integrations-not-specified"),e;for(const n of t)this._integrations.has(n)?e.push(this._integrations.get(n)):["upload","assetManager","url"].includes(n)||kt("image-insert-unknown-integration",{item:n});return e.length||kt("image-insert-integrations-not-registered"),e}}var sv=lt(3508);Rt()(sv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Qx extends Lt{static get requires(){return[nv,Ea,Wb,rv]}static get pluginName(){return"ImageBlock"}}class Xx extends Lt{static get requires(){return[cp,$b,Ci,iv,fn]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck((n,s)=>{if(n.endsWith("caption")&&"imageInline"===s.name)return!1}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new tv(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,s=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(l,{writer:h})=>h.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(l,{writer:h})=>{return s.toImageWidget((p=h).createContainerElement("span",{class:"image-inline"},p.createEmptyElement("img")),h,e("image widget"));var p}}),n.for("downcast").add($c(s,"imageInline","src")).add($c(s,"imageInline","alt")).add(Qb(s,"imageInline")),n.for("upcast").elementToElement({view:Rb(t,"imageInline"),model:(l,{writer:h})=>h.createElement("imageInline",l.hasAttribute("src")?{src:l.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,s=t.plugins.get("ImageUtils"),l=t.plugins.get("ClipboardPipeline");this.listenTo(l,"inputTransformation",(h,p)=>{const b=Array.from(p.content.getChildren());let A;if(!b.every(s.isBlockImageView))return;A=p.targetRanges?t.editing.mapper.toModelRange(p.targetRanges[0]):e.document.selection.getFirstRange();const C=e.createSelection(A);if("imageInline"===lp(e.schema,C)){const E=new ko(n.document),P=b.map(F=>1===F.childCount?(Array.from(F.getAttributes()).forEach(j=>E.setAttribute(...j,s.findViewImgElement(F))),F.getChild(0)):F);p.content=E.createDocumentFragment(P)}}),this.listenTo(l,"contentInsertion",(h,p)=>{"paste"===p.method&&e.change(b=>{const A=b.createRangeIn(p.content);for(const C of A.getItems())C.is("element","imageInline")&&s.setImageNaturalSizeAttributes(C)})})}}class Kx extends Lt{static get requires(){return[Xx,Ea,Wb,rv]}static get pluginName(){return"ImageInline"}}class av extends Lt{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Ci]}getCaptionFromImageModelElement(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(t){const e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(t){const e=this.editor.plugins.get("ImageUtils");return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}}class Jx extends Jt{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(nv))return this.isEnabled=!1,void(this.value=!1);const s=t.model.document.selection,l=s.getSelectedElement();if(!l){const h=e.getCaptionFromModelSelection(s);return this.isEnabled=!!h,void(this.value=!!h)}this.isEnabled=n.isImage(l),this.value=!!this.isEnabled&&!!e.getCaptionFromImageModelElement(l)}execute(t={}){const{focusCaptionOnShow:e}=t;this.editor.model.change(n=>{this.value?this._hideImageCaption(n):this._showImageCaption(n,e)})}_showImageCaption(t,e){const n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageCaptionEditing"),l=this.editor.plugins.get("ImageUtils");let h=n.getSelectedElement();const p=s._getSavedCaption(h);l.isInlineImage(h)&&(this.editor.execute("imageTypeBlock"),h=n.getSelectedElement());const b=p||t.createElement("caption");t.append(b,h),e&&t.setSelection(b,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,s=e.plugins.get("ImageCaptionEditing"),l=e.plugins.get("ImageCaptionUtils");let h,p=n.getSelectedElement();p?h=l.getCaptionFromImageModelElement(p):(h=l.getCaptionFromModelSelection(n),p=h.parent),s._saveCaption(p,h),t.setSelection(p,"on"),t.remove(h)}}class $x extends Lt{constructor(t){super(t),this._savedCaptionsMap=new WeakMap}static get requires(){return[Ci,av]}static get pluginName(){return"ImageCaptionEditing"}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new Jx(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),s=t.plugins.get("ImageCaptionUtils"),l=t.t;t.conversion.for("upcast").elementToElement({view:h=>s.matchImageCaptionViewElement(h),model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(h,{writer:p})=>n.isBlockImage(h.parent)?p.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(h,{writer:p})=>{if(!n.isBlockImage(h.parent))return null;const b=p.createEditableElement("figcaption");p.setCustomProperty("imageCaption",!0,b),b.placeholder=l("Enter image caption"),Wl({view:e,element:b,keepOnFocus:!0});const A=h.parent.getAttribute("alt");return Ff(b,p,{label:A?l("Caption for image: %0",[A]):l("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),s=t.commands.get("imageTypeInline"),l=t.commands.get("imageTypeBlock"),h=p=>{if(!p.return)return;const{oldElement:b,newElement:A}=p.return;if(!b)return;if(e.isBlockImage(b)){const E=n.getCaptionFromImageModelElement(b);if(E)return void this._saveCaption(A,E)}const C=this._getSavedCaption(b);C&&this._saveCaption(A,C)};s&&this.listenTo(s,"execute",h,{priority:"low"}),l&&this.listenTo(l,"execute",h,{priority:"low"})}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?me.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}_registerCaptionReconversion(){const t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),s=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",()=>{const l=e.document.differ.getChanges();for(const h of l){if("alt"!==h.attributeKey)continue;const p=h.range.start.nodeAfter;if(n.isBlockImage(p)){const b=s.getCaptionFromImageModelElement(p);if(!b)return;t.editing.reconvertItem(b)}}})}}class tC extends Lt{static get requires(){return[av]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),s=t.t;t.ui.componentFactory.add("toggleImageCaption",l=>{const h=t.commands.get("toggleImageCaption"),p=new ve(l);return p.set({icon:Ae.caption,tooltip:!0,isToggleable:!0}),p.bind("isOn","isEnabled").to(h,"value","isEnabled"),p.bind("label").to(h,"value",b=>s(b?"Toggle caption off":"Toggle caption on")),this.listenTo(p,"execute",()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const b=n.getCaptionFromModelSelection(t.model.document.selection);if(b){const A=t.editing.mapper.toViewElement(b);e.scrollToTheSelection(),e.change(C=>{C.addClass("image__caption_highlighted",A)})}t.editing.view.focus()}),p})}}var lv=lt(2640);function cv(r){const t=r.map(e=>e.replace("+","\\+"));return new RegExp(`^image\\/(${t.join("|")})$`)}function iC(r){return new Promise((t,e)=>{const n=r.getAttribute("src");fetch(n).then(s=>s.blob()).then(s=>{const l=dv(s,n),h=l.replace("image/",""),p=new File([s],`image.${h}`,{type:l});t(p)}).catch(s=>{return s&&"TypeError"===s.name?(l=n,(h=l,new Promise((p,b)=>{const A=Yt.document.createElement("img");A.addEventListener("load",()=>{const C=Yt.document.createElement("canvas");C.width=A.width,C.height=A.height,C.getContext("2d").drawImage(A,0,0),C.toBlob(E=>E?p(E):b())}),A.addEventListener("error",()=>b()),A.src=h})).then(h=>{const p=dv(h,l),b=p.replace("image/","");return new File([h],`image.${b}`,{type:p})})).then(t).catch(e):e(s);var l,h})})}function dv(r,t){return r.type?r.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}Rt()(lv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class nC extends Lt{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=s=>{const l=new BA(s),h=t.commands.get("uploadImage"),p=t.config.get("image.upload.types"),b=cv(p);return l.set({acceptedType:p.map(A=>`image/${A}`).join(","),allowMultipleFiles:!0,label:e("Upload image from computer"),icon:Ae.imageUpload,tooltip:!0}),l.bind("isEnabled").to(h),l.on("done",(A,C)=>{const E=Array.from(C).filter(P=>b.test(P.type));E.length&&(t.execute("uploadImage",{file:E}),t.editing.view.focus())}),l};if(t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI"),l=t.commands.get("uploadImage");s.registerIntegration({name:"upload",observable:l,buttonViewCreator:()=>{const h=t.ui.componentFactory.create("uploadImage");return h.bind("label").to(s,"isImageSelected",p=>e(p?"Replace image from computer":"Upload image from computer")),h},formViewCreator:()=>{const h=t.ui.componentFactory.create("uploadImage");return h.withText=!0,h.bind("label").to(s,"isImageSelected",p=>e(p?"Replace from computer":"Upload from computer")),h.on("execute",()=>{s.dropdownView.isOpen=!1}),h}})}}}var hv=lt(3689);Rt()(hv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var uv=lt(4036);Rt()(uv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pv=lt(3773);Rt()(pv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class aC extends Lt{constructor(t){super(t),this.uploadStatusChange=(e,n,s)=>{const l=this.editor,h=n.item,p=h.getAttribute("uploadId");if(!s.consumable.consume(n.item,e.name))return;const b=l.plugins.get("ImageUtils"),A=l.plugins.get(sn),C=p?n.attributeNewValue:null,E=this.placeholder,P=l.editing.mapper.toViewElement(h),F=s.writer;if("reading"==C)return gv(P,F),void mv(b,E,P,F);if("uploading"==C){const j=A.loaders.get(p);return gv(P,F),void(j?(fv(P,F),function(Y,$,st,ft){const At=function(Ft){const jt=Ft.createUIElement("div",{class:"ck-progress-bar"});return Ft.setCustomProperty("progressBar",!0,jt),jt}($);$.insert($.createPositionAt(Y,"end"),At),st.on("change:uploadedPercent",(Ft,jt,ae)=>{ft.change(ce=>{ce.setStyle("width",ae+"%",At)})})}(P,F,j,l.editing.view),function(Y,$,st,ft){if(ft.data){const At=Y.findViewImgElement($);st.setAttribute("src",ft.data,At)}}(b,P,F,j)):mv(b,E,P,F))}"complete"==C&&A.loaders.get(p)&&function(j,Y,$){const st=Y.createUIElement("div",{class:"ck-image-upload-complete-icon"});Y.insert(Y.createPositionAt(j,"end"),st),setTimeout(()=>{$.change(ft=>ft.remove(ft.createRangeOn(st)))},3e3)}(P,F,l.editing.view),vv(P,F,"progressBar"),fv(P,F),F.removeClass("ck-appear",P)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function gv(r,t){r.hasClass("ck-appear")||t.addClass("ck-appear",r)}function mv(r,t,e,n){e.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",e);const s=r.findViewImgElement(e);s.getAttribute("src")!==t&&n.setAttribute("src",t,s),bv(e,"placeholder")||n.insert(n.createPositionAfter(s),function(l){const h=l.createUIElement("div",{class:"ck-upload-placeholder-loader"});return l.setCustomProperty("placeholder",!0,h),h}(n))}function fv(r,t){r.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",r),vv(r,t,"placeholder")}function bv(r,t){for(const e of r.getChildren())if(e.getCustomProperty(t))return e}function vv(r,t,e){const n=bv(r,e);n&&t.remove(t.createRangeOn(n))}var lC=Object.defineProperty,cC=Object.defineProperties,dC=Object.getOwnPropertyDescriptors,kv=Object.getOwnPropertySymbols,hC=Object.prototype.hasOwnProperty,uC=Object.prototype.propertyIsEnumerable,_v=(r,t,e)=>t in r?lC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class pC extends Jt{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=Ze(t.file),n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageUtils"),l=Object.fromEntries(n.getAttributes());e.forEach((h,p)=>{const b=n.getSelectedElement();if(p&&b&&s.isImage(b)){const A=this.editor.model.createPositionAfter(b);this._uploadImage(h,l,A)}else this._uploadImage(h,l)})}_uploadImage(t,e,n){const s=this.editor,l=s.plugins.get(sn).createLoader(t),h=s.plugins.get("ImageUtils");var p;l&&h.insertImage((p=((A,C)=>{for(var E in C||(C={}))hC.call(C,E)&&_v(A,E,C[E]);if(kv)for(var E of kv(C))uC.call(C,E)&&_v(A,E,C[E]);return A})({},e),cC(p,dC({uploadId:l.id}))),n)}}class gC extends Lt{constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[sn,Hu,fn,Ci]}static get pluginName(){return"ImageUploadEditing"}init(){const t=this.editor,e=t.model.document,n=t.conversion,s=t.plugins.get(sn),l=t.plugins.get("ImageUtils"),h=t.plugins.get("ClipboardPipeline"),p=cv(t.config.get("image.upload.types")),b=new pC(t);t.commands.add("uploadImage",b),t.commands.add("imageUpload",b),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(A,C)=>{if(E=C.dataTransfer,Array.from(E.types).includes("text/html")&&""!==E.getData("text/html"))return;var E;const P=Array.from(C.dataTransfer.files).filter(F=>!!F&&p.test(F.type));P.length&&(A.stop(),t.model.change(F=>{C.targetRanges&&F.setSelection(C.targetRanges.map(j=>t.editing.mapper.toModelRange(j))),t.execute("uploadImage",{file:P})}))}),this.listenTo(h,"inputTransformation",(A,C)=>{const E=Array.from(t.editing.view.createRangeIn(C.content)).map(F=>F.item).filter(F=>{return!(!l.isInlineImageView(Y=F)||!Y.getAttribute("src")||!Y.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!Y.getAttribute("src").match(/^blob:/g)||F.getAttribute("uploadProcessed"));var Y}).map(F=>({promise:iC(F),imageElement:F}));if(!E.length)return;const P=new ko(t.editing.view.document);for(const F of E){P.setAttribute("uploadProcessed",!0,F.imageElement);const j=s.createLoader(F.promise);j&&(P.setAttribute("src","",F.imageElement),P.setAttribute("uploadId",j.id,F.imageElement))}}),t.editing.view.document.on("dragover",(A,C)=>{C.preventDefault()}),e.on("change",()=>{const A=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),C=new Set;for(const E of A)if("insert"==E.type&&"$text"!=E.name){const P=E.position.nodeAfter,F="$graveyard"==E.position.root.rootName;for(const j of mC(t,P)){const Y=j.getAttribute("uploadId");if(!Y)continue;const $=s.loaders.get(Y);$&&(F?C.has(Y)||$.abort():(C.add(Y),this._uploadImageElements.set(Y,j),"idle"==$.status&&this._readAndUpload($)))}}}),this.on("uploadComplete",(A,{imageElement:C,data:E})=>{const P=E.urls?E.urls:E;this.editor.model.change(F=>{F.setAttribute("src",P.default,C),this._parseAndSetSrcsetAttributeOnImage(P,C,F),l.setImageNaturalSizeAttributes(C)})},{priority:"low"})}afterInit(){const t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(t){const e=this.editor,n=e.model,s=e.locale.t,l=e.plugins.get(sn),h=e.plugins.get(Hu),p=e.plugins.get("ImageUtils"),b=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},C=>{C.setAttribute("uploadStatus","reading",b.get(t.id))}),t.read().then(()=>{const C=t.upload(),E=b.get(t.id);if(it.isSafari){const P=e.editing.mapper.toViewElement(E),F=p.findViewImgElement(P);e.editing.view.once("render",()=>{if(!F.parent)return;const j=e.editing.view.domConverter.mapViewToDom(F.parent);if(!j)return;const Y=j.style.display;j.style.display="none",j._ckHack=j.offsetHeight,j.style.display=Y})}return n.enqueueChange({isUndoable:!1},P=>{P.setAttribute("uploadStatus","uploading",E)}),C}).then(C=>{n.enqueueChange({isUndoable:!1},E=>{const P=b.get(t.id);E.setAttribute("uploadStatus","complete",P),this.fire("uploadComplete",{data:C,imageElement:P})}),A()}).catch(C=>{if("error"!==t.status&&"aborted"!==t.status)throw C;"error"==t.status&&C&&h.showWarning(C,{title:s("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},E=>{E.remove(b.get(t.id))}),A()});function A(){n.enqueueChange({isUndoable:!1},C=>{const E=b.get(t.id);C.removeAttribute("uploadId",E),C.removeAttribute("uploadStatus",E),b.delete(t.id)}),l.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let s=0;const l=Object.keys(t).filter(h=>{const p=parseInt(h,10);if(!isNaN(p))return s=Math.max(s,p),!0}).map(h=>`${t[h]} ${h}w`).join(", ");if(""!=l){const h={srcset:l};e.hasAttribute("width")||e.hasAttribute("height")||(h.width=s),n.setAttributes(h,e)}}}function mC(r,t){const e=r.plugins.get("ImageUtils");return Array.from(r.model.createRangeOn(t)).filter(n=>e.isImage(n.item)).map(n=>n.item)}var wv=lt(6270);Rt()(wv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class bC extends Jt{constructor(t,e){super(t),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(e.map(n=>{if(n.isDefault)for(const s of n.modelElements)this._defaultStyles[s]=n.name;return[n.name,n]}))}refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.value=!!this.isEnabled&&(t.hasAttribute("imageStyle")?t.getAttribute("imageStyle"):this._defaultStyles[t.name])}execute(t={}){const e=this.editor,n=e.model,s=e.plugins.get("ImageUtils");n.change(l=>{const h=t.value,{setImageSizes:p=!0}=t;let b=s.getClosestSelectedImageElement(n.document.selection);h&&this.shouldConvertImageType(h,b)&&(this.editor.execute(s.isBlockImage(b)?"imageTypeInline":"imageTypeBlock",{setImageSizes:p}),b=s.getClosestSelectedImageElement(n.document.selection)),!h||this._styles.get(h).isDefault?l.removeAttribute("imageStyle",b):l.setAttribute("imageStyle",h,b),p&&s.setImageNaturalSizeAttributes(b)})}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}var vC=Object.defineProperty,Av=Object.getOwnPropertySymbols,kC=Object.prototype.hasOwnProperty,_C=Object.prototype.propertyIsEnumerable,xv=(r,t,e)=>t in r?vC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Cv=(r,t)=>{for(var e in t||(t={}))kC.call(t,e)&&xv(r,e,t[e]);if(Av)for(var e of Av(t))_C.call(t,e)&&xv(r,e,t[e]);return r};const{objectFullWidth:wC,objectInline:yv,objectLeft:Ev,objectRight:dp,objectCenter:hp,objectBlockLeft:Tv,objectBlockRight:Sv}=Ae,ed={get inline(){return{name:"inline",title:"In line",icon:yv,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Ev,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Tv,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:hp,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:dp,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Sv,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:hp,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:dp,modelElements:["imageBlock"],className:"image-style-side"}}},Iv={full:wC,left:Tv,right:Sv,center:hp,inlineLeft:Ev,inlineRight:dp,inline:yv},Dv=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function Mv(r){kt("image-style-configuration-definition-invalid",r)}const up={normalizeStyles:function(r){return(r.configuredStyles.options||[]).map(t=>{return"string"==typeof(e="string"==typeof(e=t)?ed[e]?Cv({},ed[e]):{name:e}:function(n,s){const l=Cv({},s);for(const h in n)Object.prototype.hasOwnProperty.call(s,h)||(l[h]=n[h]);return l}(ed[e.name],e)).icon&&(e.icon=Iv[e.icon]||e.icon),e;var e}).filter(t=>function(e,{isBlockPluginLoaded:n,isInlinePluginLoaded:s}){const{modelElements:l,name:h}=e;if(!(l&&l.length&&h))return Mv({style:e}),!1;{const p=[n?"imageBlock":null,s?"imageInline":null];if(!l.some(b=>p.includes(b)))return kt("image-style-missing-dependency",{style:e,missingPlugins:l.map(b=>"imageBlock"===b?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(t,r))},getDefaultStylesConfiguration:function(r,t){return r&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:r?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(r){return r.has("ImageBlockEditing")&&r.has("ImageInlineEditing")?[...Dv]:[]},warnInvalidStyle:Mv,DEFAULT_OPTIONS:ed,DEFAULT_ICONS:Iv,DEFAULT_DROPDOWN_DEFINITIONS:Dv};function Lv(r,t){for(const e of t)if(e.name===r)return e}class Pv extends Lt{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Ci]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=up,n=this.editor,s=n.plugins.has("ImageBlockEditing"),l=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(s,l)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:s,isInlinePluginLoaded:l}),this._setupConversion(s,l),this._setupPostFixer(),n.commands.add("imageStyle",new bC(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,s=n.model.schema,l=(h=this.normalizedStyles,(b,A,C)=>{if(!C.consumable.consume(A.item,b.name))return;const E=Lv(A.attributeNewValue,h),P=Lv(A.attributeOldValue,h),F=C.mapper.toViewElement(A.item),j=C.writer;P&&j.removeClass(P.className,F),E&&j.addClass(E.className,F)});var h;const p=function(b){const A={imageInline:b.filter(C=>!C.isDefault&&C.modelElements.includes("imageInline")),imageBlock:b.filter(C=>!C.isDefault&&C.modelElements.includes("imageBlock"))};return(C,E,P)=>{if(!E.modelRange)return;const F=E.viewItem,j=Oe(E.modelRange.getItems());if(j&&P.schema.checkAttribute(j,"imageStyle"))for(const Y of A[j.name])P.consumable.consume(F,{classes:Y.className})&&P.writer.setAttribute("imageStyle",Y.name,j)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",l),n.data.downcastDispatcher.on("attribute:imageStyle",l),t&&(s.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",p,{priority:"low"})),e&&(s.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",p,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(Ci),s=new Map(this.normalizedStyles.map(l=>[l.name,l]));e.registerPostFixer(l=>{let h=!1;for(const p of e.differ.getChanges())if("insert"==p.type||"attribute"==p.type&&"imageStyle"==p.attributeKey){let b="insert"==p.type?p.position.nodeAfter:p.range.start.nodeAfter;if(b&&b.is("element","paragraph")&&b.childCount>0&&(b=b.getChild(0)),!n.isImage(b))continue;const A=b.getAttribute("imageStyle");if(!A)continue;const C=s.get(A);C&&C.modelElements.includes(b.name)||(l.removeAttribute("imageStyle",b),h=!0)}return h})}}var Nv=lt(5083);Rt()(Nv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xC extends Lt{static get requires(){return[Pv]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=Ov(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const l of n)this._createButton(l);const s=Ov([...e.filter(te),...up.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const l of s)this._createDropdown(l,n)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,s=>{let l;const{defaultItem:h,items:p,title:b}=t,A=p.filter(F=>e.find(({name:j})=>Bv(j)===F)).map(F=>{const j=n.create(F);return F===h&&(l=j),j});p.length!==A.length&&up.warnInvalidStyle({dropdown:t});const C=Zn(s,Lc),E=C.buttonView,P=E.arrowView;return Ou(C,A,{enableActiveItemFocusOnDropdownOpen:!0}),E.set({label:Fv(b,l.label),class:null,tooltip:!0}),P.unbind("label"),P.set({label:b}),E.bind("icon").toMany(A,"isOn",(...F)=>{const j=F.findIndex(Pn);return j<0?l.icon:A[j].icon}),E.bind("label").toMany(A,"isOn",(...F)=>{const j=F.findIndex(Pn);return Fv(b,j<0?l.label:A[j].label)}),E.bind("isOn").toMany(A,"isOn",(...F)=>F.some(Pn)),E.bind("class").toMany(A,"isOn",(...F)=>F.some(Pn)?"ck-splitbutton_flatten":void 0),E.on("execute",()=>{A.some(({isOn:F})=>F)?C.isOpen=!C.isOpen:l.fire("execute")}),C.bind("isEnabled").toMany(A,"isEnabled",(...F)=>F.some(Pn)),this.listenTo(C,"execute",()=>{this.editor.editing.view.focus()}),C})}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(Bv(e),n=>{const s=this.editor.commands.get("imageStyle"),l=new ve(n);return l.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),l.bind("isEnabled").to(s,"isEnabled"),l.bind("isOn").to(s,"value",h=>h===e),l.on("execute",this._executeCommand.bind(this,e)),l})}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function Ov(r,t){for(const e of r)t[e.title]&&(e.title=t[e.title]);return r}function Bv(r){return`imageStyle:${r}`}function Fv(r,t){return(r?r+": ":"")+t}class CC extends Lt{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new Vl(t)),t.commands.add("outdent",new Vl(t))}}const zv='',Rv='';class yC extends Lt{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,s="ltr"==e.uiLanguageDirection?zv:Rv,l="ltr"==e.uiLanguageDirection?Rv:zv;this._defineButton("indent",n("Increase indent"),s),this._defineButton("outdent",n("Decrease indent"),l)}_defineButton(t,e,n){const s=this.editor;s.ui.componentFactory.add(t,l=>{const h=s.commands.get(t),p=new ve(l);return p.set({label:e,icon:n,tooltip:!0}),p.bind("isEnabled").to(h,"isEnabled"),this.listenTo(p,"execute",()=>{s.execute(t),s.editing.view.focus()}),p})}}class EC{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach(e=>this._definitions.add(e)):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",(e,n,s)=>{if(!s.consumable.test(n.item,"attribute:linkHref")||!n.item.is("selection")&&!s.schema.isInline(n.item))return;const l=s.writer,h=l.document.selection;for(const p of this._definitions){const b=l.createAttributeElement("a",p.attributes,{priority:5});p.classes&&l.addClass(p.classes,b);for(const A in p.styles)l.setStyle(A,p.styles[A],b);l.setCustomProperty("link",!0,b),p.callback(n.attributeNewValue)?n.item.is("selection")?l.wrap(h.getFirstRange(),b):l.wrap(s.mapper.toViewRange(n.range),b):l.unwrap(s.mapper.toViewRange(n.range),b)}},{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",(e,n,{writer:s,mapper:l})=>{const h=l.toViewElement(n.item),p=Array.from(h.getChildren()).find(b=>b.is("element","a"));for(const b of this._definitions){const A=ri(b.attributes);if(b.callback(n.attributeNewValue)){for(const[C,E]of A)"class"===C?s.addClass(E,p):s.setAttribute(C,E,p);b.classes&&s.addClass(b.classes,p);for(const C in b.styles)s.setStyle(C,b.styles[C],p)}else{for(const[C,E]of A)"class"===C?s.removeClass(E,p):s.removeAttribute(C,p);b.classes&&s.removeClass(b.classes,p);for(const C in b.styles)s.removeStyle(C,p)}}})}}}var SC=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Zv=function(r){return SC.test(r)};var Uv="\\ud800-\\udfff",DC="["+Uv+"]",pp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",gp="\\ud83c[\\udffb-\\udfff]",jv="[^"+Uv+"]",Vv="(?:\\ud83c[\\udde6-\\uddff]){2}",qv="[\\ud800-\\udbff][\\udc00-\\udfff]",Yv="(?:"+pp+"|"+gp+")?",Hv="[\\ufe0e\\ufe0f]?",MC=Hv+Yv+"(?:\\u200d(?:"+[jv,Vv,qv].join("|")+")"+Hv+Yv+")*",LC="(?:"+[jv+pp+"?",pp,Vv,qv,DC].join("|")+")",PC=RegExp(gp+"(?="+gp+")|"+LC+MC,"g");const BC=function(t){t=$s(t);var e=Zv(t)?function(r){return Zv(r)?function(r){return r.match(PC)||[]}(r):function(r){return r.split("")}(r)}(t):void 0,n=e?e[0]:t.charAt(0),s=e?function(r,t,e){var n=r.length;return ec(r,1,e=void 0===e?n:e)}(e).join(""):t.slice(1);return n.toUpperCase()+s},FC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,zC=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,RC=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,ZC=/^((\w+:(\/{2,})?)|(\W))/i,mp="Ctrl+K";function Gv(r,{writer:t}){const e=t.createAttributeElement("a",{href:r},{priority:5});return t.setCustomProperty("link",!0,e),e}function Wv(r){const t=String(r);return t.replace(FC,"").match(zC)?t:"#"}function fp(r,t){return!!r&&t.checkAttribute(r.name,"linkHref")}function bp(r,t){const e=RC.test(r)?"mailto:":t,s=!!e&&!Qv(r);return r&&s?e+r:r}function Qv(r){return ZC.test(r)}function Xv(r){window.open(r,"_blank","noopener")}class UC extends Jt{constructor(){super(...arguments),this.manualDecorators=new di,this.automaticDecorators=new EC}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||Oe(e.getSelectedBlocks());fp(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));for(const s of this.manualDecorators)s.value=this._getDecoratorStateFromModel(s.id)}execute(t,e={}){const n=this.editor.model,s=n.document.selection,l=[],h=[];for(const p in e)e[p]?l.push(p):h.push(p);n.change(p=>{if(s.isCollapsed){const b=s.getFirstPosition();if(s.hasAttribute("linkHref")){const A=Kv(s);let C=qc(b,"linkHref",s.getAttribute("linkHref"),n);s.getAttribute("linkHref")===A&&(C=this._updateLinkContent(n,p,C,t)),p.setAttribute("linkHref",t,C),l.forEach(E=>{p.setAttribute(E,!0,C)}),h.forEach(E=>{p.removeAttribute(E,C)}),p.setSelection(p.createPositionAfter(C.end.nodeBefore))}else if(""!==t){const A=ri(s.getAttributes());A.set("linkHref",t),l.forEach(E=>{A.set(E,!0)});const{end:C}=n.insertContent(p.createText(t,A),b);p.setSelection(C)}["linkHref",...l,...h].forEach(A=>{p.removeSelectionAttribute(A)})}else{const b=n.schema.getValidRanges(s.getRanges(),"linkHref"),A=[];for(const E of s.getSelectedBlocks())n.schema.checkAttribute(E,"linkHref")&&A.push(p.createRangeOn(E));const C=A.slice();for(const E of b)this._isRangeToUpdate(E,A)&&C.push(E);for(const E of C){let P=E;if(1===C.length){const F=Kv(s);s.getAttribute("linkHref")===F&&(P=this._updateLinkContent(n,p,E,t),p.setSelection(p.createSelection(P)))}p.setAttribute("linkHref",t,P),l.forEach(F=>{p.setAttribute(F,!0,P)}),h.forEach(F=>{p.removeAttribute(F,P)})}}})}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,s=n.getSelectedElement();return fp(s,e.schema)?s.getAttribute(t):n.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}_updateLinkContent(t,e,n,s){const l=e.createText(s,{linkHref:s});return t.insertContent(l,n)}}function Kv(r){if(r.isCollapsed){const t=r.getFirstPosition();return t.textNode&&t.textNode.data}{const t=Array.from(r.getFirstRange().getItems());if(t.length>1)return null;const e=t[0];return e.is("$text")||e.is("$textProxy")?e.data:null}}class jC extends Jt{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();this.isEnabled=fp(n,t.schema)?t.schema.checkAttribute(n,"linkHref"):t.schema.checkAttributeInSelection(e,"linkHref")}execute(){const e=this.editor.model,n=e.document.selection,s=this.editor.commands.get("link");e.change(l=>{const h=n.isCollapsed?[qc(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const p of h)if(l.removeAttribute("linkHref",p),s)for(const b of s.manualDecorators)l.removeAttribute(b.id,p)})}}class VC extends(ne()){constructor({id:t,label:e,attributes:n,classes:s,styles:l,defaultValue:h}){super(),this.id=t,this.set("value",void 0),this.defaultValue=h,this.label=e,this.attributes=n,this.classes=s,this.styles=l}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Jv=lt(9773);Rt()(Jv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var YC=Object.defineProperty,$v=Object.getOwnPropertySymbols,HC=Object.prototype.hasOwnProperty,GC=Object.prototype.propertyIsEnumerable,tk=(r,t,e)=>t in r?YC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,WC=(r,t)=>{for(var e in t||(t={}))HC.call(t,e)&&tk(r,e,t[e]);if($v)for(var e of $v(t))GC.call(t,e)&&tk(r,e,t[e]);return r};const ek="automatic",QC=/^(https?:)?\/\//;class ik extends Lt{static get pluginName(){return"LinkEditing"}static get requires(){return[Ef,kf,fn]}constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Gv}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(n,s)=>Gv(Wv(n),s)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:n=>n.getAttribute("href")}}),t.commands.add("link",new UC(t)),t.commands.add("unlink",new jC(t));const e=function(n,s){const l={"Open in a new tab":n("Open in a new tab"),Downloadable:n("Downloadable")};return s.forEach(h=>("label"in h&&l[h.label]&&(h.label=l[h.label]),h)),s}(t.t,function(n){const s=[];if(n)for(const[l,h]of Object.entries(n)){const p=Object.assign({},h,{id:`link${BC(l)}`});s.push(p)}return s}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter(n=>n.mode===ek)),this._enableManualDecorators(e.filter(n=>"manual"===n.mode)),t.plugins.get(Ef).registerAttribute("linkHref"),function(n,s,l,h){const p=n.editing.view,b=new Set;p.document.registerPostFixer(A=>{const C=n.model.document.selection;let E=!1;if(C.hasAttribute(s)){const P=qc(C.getFirstPosition(),s,C.getAttribute(s),n.model),F=n.editing.mapper.toViewRange(P);for(const j of F.getItems())j.is("element","a")&&!j.hasClass(h)&&(A.addClass(h,j),b.add(j),E=!0)}return E}),n.conversion.for("editingDowncast").add(A=>{function C(){p.change(E=>{for(const P of b.values())E.removeClass(h,P),b.delete(P)})}A.on("insert",C,{priority:"highest"}),A.on("remove",C,{priority:"highest"}),A.on("attribute",C,{priority:"highest"}),A.on("selection",C,{priority:"highest"})})}(t,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:ek,callback:s=>!!s&&QC.test(s),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach(s=>{e.model.schema.extend("$text",{allowAttributes:s.id});const l=new VC(s);n.add(l),e.conversion.for("downcast").attributeToElement({model:l.id,view:(h,{writer:p,schema:b},{item:A})=>{if((A.is("selection")||b.isInline(A))&&h){const C=p.createAttributeElement("a",l.attributes,{priority:5});l.classes&&p.addClass(l.classes,C);for(const E in l.styles)p.setStyle(E,l.styles[E],C);return p.setCustomProperty("link",!0,C),C}}}),e.conversion.for("upcast").elementToAttribute({view:WC({name:"a"},l._createPattern()),model:{key:l.id}})})}_enableLinkOpen(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",(n,s)=>{if(!(it.isMac?s.domEvent.metaKey:s.domEvent.ctrlKey))return;let l=s.domTarget;if("a"!=l.tagName.toLowerCase()&&(l=l.closest("a")),!l)return;const h=l.getAttribute("href");h&&(n.stop(),s.preventDefault(),Xv(h))},{context:"$capture"}),this.listenTo(e,"keydown",(n,s)=>{const l=t.commands.get("link").value;l&&s.keyCode===se.enter&&s.altKey&&(n.stop(),Xv(l))})}_enableSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(e,"change:attribute",(n,{attributeKeys:s})=>{s.includes("linkHref")&&!e.hasAttribute("linkHref")&&t.change(l=>{var h;!function(p,b){p.removeSelectionAttribute("linkHref");for(const A of b)p.removeSelectionAttribute(A)}(l,(h=t.schema,h.getDefinition("$text").allowAttributes.filter(p=>p.startsWith("link"))))})})}_enableClipboardIntegration(){const t=this.editor,e=t.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(t.plugins.get("ClipboardPipeline"),"contentInsertion",(s,l)=>{e.change(h=>{const p=h.createRangeIn(l.content);for(const b of p.getItems())if(b.hasAttribute("linkHref")){const A=bp(b.getAttribute("linkHref"),n);h.setAttribute("linkHref",A,b)}})})}}var nk=lt(7754);Rt()(nk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class KC extends Wt{constructor(t,e){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri;const n=t.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const s=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&s.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:s,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((t,e)=>(t[e.name]=e.isOn,t),{})}render(){super.render(),L({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new Cr(this.locale,Pc);return e.label=t("Link URL"),e}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const s=new xr(this.locale);s.set({name:n.id,label:n.label,withText:!0}),s.bind("isOn").toMany([n,t],"value",(l,h)=>void 0===h&&void 0===l?!!n.defaultValue:!!l),s.on("execute",()=>{n.set("value",!s.isOn)}),e.add(s)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const n=new Wt;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(s=>({tag:"li",children:[s],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(n)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var ok=lt(2347);Rt()(ok.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class $C extends Wt{constructor(t){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri;const e=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("Unlink"),'',"unlink"),this.editButtonView=this._createButton(e("Edit link"),Ae.pencil,"edit"),this.set("href",void 0),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const s=new ve(this.locale);return s.set({label:t,icon:e,tooltip:!0}),s.delegate("execute").to(this,n),s}_createPreviewButton(){const t=new ve(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",s=>s&&Wv(s)),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",s=>s||n("This link has no URL")),t.bind("isEnabled").to(this,"href",s=>!!s),t.template.tag="a",t.template.eventListeners={},t}}const bn="link-ui";class ty extends Lt{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[Rc]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(aw),this._balloon=t.plugins.get(Rc),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:bn,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:bn,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const t=this.editor,e=new $C(t.locale),n=t.commands.get("link"),s=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(s),this.listenTo(e,"edit",()=>{this._addFormView()}),this.listenTo(e,"unlink",()=>{t.execute("unlink"),this._hideUI()}),e.keystrokes.set("Esc",(l,h)=>{this._hideUI(),h()}),e.keystrokes.set(mp,(l,h)=>{this._addFormView(),h()}),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),s=new(ct(KC))(t.locale,e);return s.urlInputView.fieldView.bind("value").to(e,"value"),s.urlInputView.bind("isEnabled").to(e,"isEnabled"),s.saveButtonView.bind("isEnabled").to(e),this.listenTo(s,"submit",()=>{const{value:l}=s.urlInputView.fieldView.element,h=bp(l,n);t.execute("link",h,s.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(s,"cancel",()=>{this._closeFormView()}),s.keystrokes.set("Esc",(l,h)=>{this._closeFormView(),h()}),s}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link"),n=t.t;t.ui.componentFactory.add("link",s=>{const l=new ve(s);return l.isEnabled=!0,l.label=n("Link"),l.icon='',l.keystroke=mp,l.tooltip=!0,l.isToggleable=!0,l.bind("isEnabled").to(e,"isEnabled"),l.bind("isOn").to(e,"value",h=>!!h),this.listenTo(l,"execute",()=>this._showUI(!0)),l})}_enableBalloonActivators(){const t=this.editor;this.listenTo(t.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),t.keystrokes.set(mp,(n,s)=>{s(),t.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())},{priority:"high"}),this.editor.keystrokes.set("Esc",(t,e)=>{this._isUIVisible&&(this._hideUI(),e())}),et({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=t.value||""}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),s=h();const l=()=>{const p=this._getSelectedLinkElement(),b=h();n&&!p||!n&&b!==s?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=p,s=b};function h(){return e.selection.focus.getAncestors().reverse().find(p=>p.is("element"))}this.listenTo(t.ui,"update",l),this.listenTo(this._balloon,"change:visibleView",l)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return!!this.formView&&this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,n=t.document;let s;if(this.editor.model.markers.has(bn)){const l=Array.from(this.editor.editing.mapper.markerNameToElements(bn)),h=t.createRange(t.createPositionBefore(l[0]),t.createPositionAfter(l[l.length-1]));s=t.domConverter.viewRangeToDom(h)}else s=()=>{const l=this._getSelectedLinkElement();return l?t.domConverter.mapViewToDom(l):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:s}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&He(n))return vp(e.getFirstPosition());{const s=e.getFirstRange().getTrimmed(),l=vp(s.start),h=vp(s.end);return l&&l==h&&t.createRangeIn(l).getTrimmed().isEqual(s)?l:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change(e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(bn))e.updateMarker(bn,{range:n});else if(n.start.isAtEnd){const s=n.start.getLastMatchingPosition(({item:l})=>!t.schema.isContent(l),{boundaries:n});e.addMarker(bn,{usingOperation:!1,affectsData:!1,range:e.createRange(s,n.end)})}else e.addMarker(bn,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(bn)&&t.change(e=>{e.removeMarker(bn)})}}function vp(r){return r.getAncestors().find(t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e})||null}const rk=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class ey extends Lt{static get requires(){return[Un,ik]}static get pluginName(){return"AutoLink"}init(){const t=this.editor.model.document.selection;t.on("change:range",()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(t,e){return e.textNode&&e.textNode.hasAttribute("linkHref")?qc(e,"linkHref",e.textNode.getAttribute("linkHref"),t):null}_selectEntireLinks(t,e){const n=this.editor.model,s=n.document.selection,l=s.getFirstPosition(),h=s.getLastPosition();let p=e.getJoined(this._expandLinkRange(n,l)||e);p&&(p=p.getJoined(this._expandLinkRange(n,h)||e)),p&&(p.start.isBefore(l)||p.end.isAfter(h))&&t.setSelection(p)}_enablePasteLinking(){const t=this.editor,e=t.model,n=e.document.selection,s=t.plugins.get("ClipboardPipeline"),l=t.commands.get("link");s.on("inputTransformation",(h,p)=>{if(!this.isEnabled||!l.isEnabled||n.isCollapsed||n.rangeCount>1)return;const b=n.getFirstRange(),A=p.dataTransfer.getData("text/plain");if(!A)return;const C=A.match(rk);C&&C[2]===A&&(e.change(E=>{this._selectEntireLinks(E,b),l.execute(A)}),h.stop())},{priority:"high"})}_enableTypingHandling(){const t=this.editor,e=new yf(t.model,n=>{if(!((l=n).length>4&&" "===l[l.length-1]&&" "!==l[l.length-2]))return;var l;const s=sk(n.substr(0,n.length-1));return s?{url:s}:void 0});e.on("matched:data",(n,s)=>{const{batch:l,range:h,url:p}=s;if(!l.isTyping)return;const b=h.end.getShiftedBy(-1),A=b.getShiftedBy(-p.length),C=t.model.createRange(A,b);this._applyAutoLink(p,C)}),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",()=>{const s=e.document.selection.getFirstPosition();if(!s.parent.previousSibling)return;const l=e.createRangeIn(s.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(l)})}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",()=>{const s=e.document.selection.getFirstPosition(),l=e.createRange(e.createPositionAt(s.parent,0),s.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(l)})}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:s}=Cf(t,e),l=sk(n);if(l){const h=e.createRange(s.end.getShiftedBy(-l.length),s.end);this._applyAutoLink(l,h)}}_applyAutoLink(t,e){const n=this.editor.model,s=bp(t,this.editor.config.get("link.defaultProtocol"));var h;this.isEnabled&&(h=n).schema.checkAttributeInSelection(h.createSelection(e),"linkHref")&&Qv(s)&&!function(l){const h=l.start.nodeAfter;return!!h&&h.hasAttribute("linkHref")}(e)&&this._persistAutoLink(s,e)}_persistAutoLink(t,e){const n=this.editor.model,s=this.editor.plugins.get("Delete");n.enqueueChange(l=>{l.setAttribute("linkHref",t,e),n.enqueueChange(()=>{s.requestUndoOnBackspace()})})}}function sk(r){const t=rk.exec(r);return t?t[2]:null}var ak=lt(111);Rt()(ak.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var lk=lt(5730);Rt()(lk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var ck=lt(4564);function dk(r,t,e,n){const s=t.parent,l=e.mapper,h=e.writer;let p=l.toViewPosition(n.createPositionBefore(r));const b=uk(r.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:r.getAttribute("listIndent")}),A=r.previousSibling;if(b&&b.getAttribute("listIndent")==r.getAttribute("listIndent")){const C=l.toViewElement(b);p=h.breakContainer(h.createPositionAfter(C))}else if(A&&"listItem"==A.name){p=l.toViewPosition(n.createPositionAt(A,"end"));const C=l.findMappedViewAncestor(p),E=function(P){for(const F of P.getChildren())if("ul"==F.name||"ol"==F.name)return F;return null}(C);p=E?h.createPositionBefore(E):h.createPositionAt(C,"end")}else p=l.toViewPosition(n.createPositionBefore(r));if(p=hk(p),h.insert(p,s),A&&"listItem"==A.name){const C=l.toViewElement(A),E=h.createRange(h.createPositionAt(C,0),p).getWalker({ignoreElementEnd:!0});for(const P of E)if(P.item.is("element","li")){const F=h.breakContainer(h.createPositionBefore(P.item)),j=P.item.parent,Y=h.createPositionAt(t,"end");Hi(h,Y.nodeBefore,Y.nodeAfter),h.move(h.createRangeOn(j),Y),E._position=F}}else{const C=s.nextSibling;if(C&&(C.is("element","ul")||C.is("element","ol"))){let E=null;for(const P of C.getChildren()){const F=l.toModelElement(P);if(!(F&&F.getAttribute("listIndent")>r.getAttribute("listIndent")))break;E=P}E&&(h.breakContainer(h.createPositionAfter(E)),h.move(h.createRangeOn(E.parent),h.createPositionAt(t,"end")))}}Hi(h,s,s.nextSibling),Hi(h,s.previousSibling,s)}function Hi(r,t,e){return!t||!e||"ul"!=t.name&&"ol"!=t.name||t.name!=e.name||t.getAttribute("class")!==e.getAttribute("class")?null:r.mergeContainers(r.createPositionAfter(t))}function hk(r){return r.getLastMatchingPosition(t=>t.item.is("uiElement"))}function uk(r,t){const e=!!t.sameIndent,n=!!t.smallerIndent,s=t.listIndent;let l=r;for(;l&&"listItem"==l.name;){const h=l.getAttribute("listIndent");if(e&&s==h||n&&s>h)return l;l="forward"===t.direction?l.nextSibling:l.previousSibling}return null}function pk(r,t,e,n){r.ui.componentFactory.add(t,s=>{const l=r.commands.get(t),h=new ve(s);return h.set({label:e,icon:n,tooltip:!0,isToggleable:!0}),h.bind("isOn","isEnabled").to(l,"value","isEnabled"),h.on("execute",()=>{r.execute(t),r.editing.view.focus()}),h})}function kp(r,t){const e=[],n=r.parent,s={ignoreElementEnd:!1,startPosition:r,shallow:!0,direction:t},l=n.getAttribute("listIndent"),h=[...new Li(s)].filter(p=>p.item.is("element")).map(p=>p.item);for(const p of h){if(!p.is("element","listItem")||p.getAttribute("listIndent")l)){if(p.getAttribute("listType")!==n.getAttribute("listType")||p.getAttribute("listStyle")!==n.getAttribute("listStyle")||p.getAttribute("listReversed")!==n.getAttribute("listReversed")||p.getAttribute("listStart")!==n.getAttribute("listStart"))break;"backward"===t?e.unshift(p):e.push(p)}}return e}Rt()(ck.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const sy=["disc","circle","square"],ay=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function ly(){const r=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||r?0:sc.call(this)}class cy extends Lt{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;pk(this.editor,"numberedList",t("Numbered List"),''),pk(this.editor,"bulletedList",t("Bulleted List"),'')}}const dy={},hy={},uy={},py=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:r,typeAttribute:t,listType:e}of py)dy[r]=e,hy[r]=t,t&&(uy[t]=r);var gk=lt(6082);Rt()(gk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var mk=lt(2417);Rt()(mk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class fk extends Jt{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model;let n=Array.from(t.document.selection.getSelectedBlocks());t.change(s=>{const l=n[n.length-1];let h=l.nextSibling;for(;h&&"listItem"==h.name&&h.getAttribute("listIndent")>l.getAttribute("listIndent");)n.push(h),h=h.nextSibling;this._indentBy<0&&(n=n.reverse());for(const p of n){const b=p.getAttribute("listIndent")+this._indentBy;b<0?s.rename(p,"paragraph"):s.setAttribute("listIndent",b,p)}this.fire("_executeCleanup",n)})}_checkEnabled(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let s=t.previousSibling;for(;s&&s.is("element","listItem")&&s.getAttribute("listIndent")>=e;){if(s.getAttribute("listIndent")==e)return s.getAttribute("listType")==n;s=s.previousSibling}return!1}return!0}}class bk extends Jt{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,s=Array.from(e.document.selection.getSelectedBlocks()).filter(h=>kk(h,e.schema)),l=void 0!==t.forceValue?!t.forceValue:this.value;e.change(h=>{if(l){let p=s[s.length-1].nextSibling,b=Number.POSITIVE_INFINITY,A=[];for(;p&&"listItem"==p.name&&0!==p.getAttribute("listIndent");){const C=p.getAttribute("listIndent");C=e;)l>s.getAttribute("listIndent")&&(l=s.getAttribute("listIndent")),s.getAttribute("listIndent")==l&&r[t?"unshift":"push"](s),s=s[t?"previousSibling":"nextSibling"]}}function kk(r,t){return t.checkChild(r.parent,"listItem")&&!t.isObject(r)}class fy extends Lt{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(t){return sy.includes(e=t)?"bulleted":ay.includes(e)?"numbered":null;var e}getSelectedListItems(t){return function(e){let n=[...e.document.selection.getSelectedBlocks()].filter(s=>s.is("element","listItem")).map(s=>{const l=e.change(h=>h.createPositionAt(s,0));return[...kp(l,"backward"),...kp(l,"forward")]}).flat();return n=[...new Set(n)],n}(t)}getSiblingNodes(t,e){return kp(t,e)}}function _k(r){return(t,e,n)=>{const s=n.consumable;if(!s.test(e.item,"insert")||!s.test(e.item,"attribute:listType")||!s.test(e.item,"attribute:listIndent"))return;s.consume(e.item,"insert"),s.consume(e.item,"attribute:listType"),s.consume(e.item,"attribute:listIndent");const l=e.item;dk(l,function ry(r,t){const e=t.mapper,n=t.writer,s="numbered"==r.getAttribute("listType")?"ol":"ul",l=function(p){const b=p.createContainerElement("li");return b.getFillerOffset=ly,b}(n),h=n.createContainerElement(s,null);return n.insert(n.createPositionAt(h,0),l),e.bindElements(r,l),l}(l,n),n,r)}}const by=(r,t,e)=>{if(!e.consumable.test(t.item,r.name))return;const n=e.mapper.toViewElement(t.item),s=e.writer;s.breakContainer(s.createPositionBefore(n)),s.breakContainer(s.createPositionAfter(n)),s.rename("numbered"==t.attributeNewValue?"ol":"ul",n.parent)},vy=(r,t,e)=>{e.consumable.consume(t.item,r.name);const n=e.mapper.toViewElement(t.item).parent,s=e.writer;Hi(s,n,n.nextSibling),Hi(s,n.previousSibling,n)},wk=(r,t,e)=>{if(e.consumable.test(t.item,r.name)&&"listItem"!=t.item.name){let n=e.mapper.toViewPosition(t.range.start);const s=e.writer,l=[];for(;("ul"==n.parent.name||"ol"==n.parent.name)&&(n=s.breakContainer(n),"li"==n.parent.name);){const h=n,p=s.createPositionAt(n.parent,"end");if(!h.isEqual(p)){const b=s.remove(s.createRange(h,p));l.push(b)}n=s.createPositionAfter(n.parent)}if(l.length>0){for(let h=0;h0){const b=Hi(s,p,p.nextSibling);b&&b.parent==p&&n.offset--}}Hi(s,n.nodeBefore,n.nodeAfter)}}},ky=(r,t,e)=>{const n=e.mapper.toViewPosition(t.position);Hi(e.writer,n.nodeBefore,n.nodeAfter)},_y=(r,t,e)=>{if(e.consumable.consume(t.viewItem,{name:!0})){const n=e.writer,s=n.createElement("listItem"),l=function(b){let A=0,C=b.parent;for(;C;){if(C.is("element","li"))A++;else{const E=C.previousSibling;E&&E.is("element","li")&&A++}C=C.parent}return A}(t.viewItem);if(n.setAttribute("listIndent",l,s),n.setAttribute("listType",t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted",s),!e.safeInsert(s,t.modelCursor))return;const p=function(b,A,C){const{writer:E,schema:P}=C;let F=E.createPositionAfter(b);for(const j of A)if("ul"==j.name||"ol"==j.name)F=C.convertItem(j,F).modelCursor;else{const Y=C.convertItem(j,E.createPositionAt(b,"end")),$=Y.modelRange.start.nodeAfter;$&&$.is("element")&&!P.checkChild(b,$.name)&&(b=Y.modelCursor.parent.is("element","listItem")?Y.modelCursor.parent:xy(Y.modelCursor),F=E.createPositionAfter(b))}return F}(s,t.viewItem.getChildren(),e);t.modelRange=n.createRange(t.modelCursor,p),e.updateConversionResult(s,t)}},Ak=(r,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){const n=Array.from(t.viewItem.getChildren());for(const s of n)!s.is("element","li")&&!ts(s)&&s._remove()}},wy=(r,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;const n=[...t.viewItem.getChildren()];let s=!1;for(const l of n)s&&!ts(l)&&l._remove(),ts(l)&&(s=!0)}};function xk(r){return(t,e)=>{if(e.isPhantom)return;const n=e.modelPosition.nodeBefore;if(n&&n.is("element","listItem")){const s=e.mapper.toViewElement(n),l=s.getAncestors().find(ts),h=r.createPositionAt(s,0).getWalker();for(const p of h){if("elementStart"==p.type&&p.item.is("element","li")){e.viewPosition=p.previousPosition;break}if("elementEnd"==p.type&&p.item==l){e.viewPosition=p.nextPosition;break}}}}}const Ay=function(r,[t,e]){let s,l=t.is("documentFragment")?t.getChild(0):t;if(s=e?this.createSelection(e):this.document.selection,l&&l.is("element","listItem")){const h=s.getFirstPosition();let p=null;if(h.parent.is("element","listItem")?p=h.parent:h.nodeBefore&&h.nodeBefore.is("element","listItem")&&(p=h.nodeBefore),p){const b=p.getAttribute("listIndent");if(b>0)for(;l&&l.is("element","listItem");)l._setAttribute("listIndent",l.getAttribute("listIndent")+b),l=l.nextSibling}}};function xy(r){const t=new Li({startPosition:r});let e;do{e=t.next()}while(!e.value.item.is("element","listItem"));return e.value.item}function Ck(r,t,e,n,s,l){const h=uk(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:r}),p=s.mapper,b=s.writer,A=h?h.getAttribute("listIndent"):null;let C;if(h)if(A==r){const E=p.toViewElement(h).parent;C=b.createPositionAfter(E)}else{const E=l.createPositionAt(h,"end");C=p.toViewPosition(E)}else C=e;C=hk(C);for(const E of[...n.getChildren()])ts(E)&&(C=b.move(b.createRangeOn(E),C).end,Hi(b,E,E.nextSibling),Hi(b,E.previousSibling,E))}function ts(r){return r.is("element","ol")||r.is("element","ul")}class Cy extends Lt{static get pluginName(){return"ListEditing"}static get requires(){return[Yc,Un,fy]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;var s;t.model.document.registerPostFixer(h=>function(p,b){const A=p.document.differ.getChanges(),C=new Map;let E=!1;for(const Y of A)if("insert"==Y.type&&"listItem"==Y.name)P(Y.position);else if("insert"==Y.type&&"listItem"!=Y.name){if("$text"!=Y.name){const $=Y.position.nodeAfter;$.hasAttribute("listIndent")&&(b.removeAttribute("listIndent",$),E=!0),$.hasAttribute("listType")&&(b.removeAttribute("listType",$),E=!0),$.hasAttribute("listStyle")&&(b.removeAttribute("listStyle",$),E=!0),$.hasAttribute("listReversed")&&(b.removeAttribute("listReversed",$),E=!0),$.hasAttribute("listStart")&&(b.removeAttribute("listStart",$),E=!0);for(const st of Array.from(p.createRangeIn($)).filter(ft=>ft.item.is("element","listItem")))P(st.previousPosition)}P(Y.position.getShiftedBy(Y.length))}else"remove"==Y.type&&"listItem"==Y.name?P(Y.position):("attribute"==Y.type&&"listIndent"==Y.attributeKey||"attribute"==Y.type&&"listType"==Y.attributeKey)&&P(Y.range.start);for(const Y of C.values())F(Y),j(Y);return E;function P(Y){const $=Y.nodeBefore;if($&&$.is("element","listItem")){let st=$;if(C.has(st))return;for(let ft=st.previousSibling;ft&&ft.is("element","listItem");ft=st.previousSibling)if(st=ft,C.has(st))return;C.set($,st)}else{const st=Y.nodeAfter;st&&st.is("element","listItem")&&C.set(st,st)}}function F(Y){let $=0,st=null;for(;Y&&Y.is("element","listItem");){const ft=Y.getAttribute("listIndent");if(ft>$){let At;null===st?(st=ft-$,At=$):(st>ft&&(st=ft),At=ft-st),b.setAttribute("listIndent",At,Y),E=!0}else st=null,$=Y.getAttribute("listIndent")+1;Y=Y.nextSibling}}function j(Y){let $=[],st=null;for(;Y&&Y.is("element","listItem");){const ft=Y.getAttribute("listIndent");if(st&&st.getAttribute("listIndent")>ft&&($=$.slice(0,ft+1)),0!=ft)if($[ft]){const At=$[ft];Y.getAttribute("listType")!=At&&(b.setAttribute("listType",At,Y),E=!0)}else $[ft]=Y.getAttribute("listType");st=Y,Y=Y.nextSibling}}}(t.model,h)),n.mapper.registerViewToModelLength("li",_p),e.mapper.registerViewToModelLength("li",_p),n.mapper.on("modelToViewPosition",xk(n.view)),n.mapper.on("viewToModelPosition",(s=t.model,(h,p)=>{const b=p.viewPosition,A=b.parent,C=p.mapper;if("ul"==A.name||"ol"==A.name){if(b.isAtEnd){const E=C.toModelElement(b.nodeBefore),P=C.getModelLength(b.nodeBefore);p.modelPosition=s.createPositionBefore(E).getShiftedBy(P)}else{const E=C.toModelElement(b.nodeAfter);p.modelPosition=s.createPositionBefore(E)}h.stop()}else if("li"==A.name&&b.nodeBefore&&("ul"==b.nodeBefore.name||"ol"==b.nodeBefore.name)){const E=C.toModelElement(A);let P=1,F=b.nodeBefore;for(;F&&ts(F);)P+=C.getModelLength(F),F=F.previousSibling;p.modelPosition=s.createPositionBefore(E).getShiftedBy(P),h.stop()}})),e.mapper.on("modelToViewPosition",xk(n.view)),t.conversion.for("editingDowncast").add(h=>{var p;h.on("insert",wk,{priority:"high"}),h.on("insert:listItem",_k(t.model)),h.on("attribute:listType:listItem",by,{priority:"high"}),h.on("attribute:listType:listItem",vy,{priority:"low"}),h.on("attribute:listIndent:listItem",(p=t.model,(b,A,C)=>{if(!C.consumable.consume(A.item,"attribute:listIndent"))return;const E=C.mapper.toViewElement(A.item),P=C.writer;P.breakContainer(P.createPositionBefore(E)),P.breakContainer(P.createPositionAfter(E));const F=E.parent,j=F.previousSibling,Y=P.createRangeOn(F);P.remove(Y),j&&j.nextSibling&&Hi(P,j,j.nextSibling),Ck(A.attributeOldValue+1,A.range.start,Y.start,E,C,p),dk(A.item,E,C,p);for(const $ of A.item.getChildren())C.consumable.consume($,"insert")})),h.on("remove:listItem",function(p){return(b,A,C)=>{const E=C.mapper.toViewPosition(A.position).getLastMatchingPosition(st=>!st.item.is("element","li")).nodeAfter,P=C.writer;P.breakContainer(P.createPositionBefore(E)),P.breakContainer(P.createPositionAfter(E));const F=E.parent,j=F.previousSibling,Y=P.createRangeOn(F),$=P.remove(Y);j&&j.nextSibling&&Hi(P,j,j.nextSibling),Ck(C.mapper.toModelElement(E).getAttribute("listIndent")+1,A.position,Y.start,E,C,p);for(const st of P.createRangeIn($).getItems())C.mapper.unbindViewElement(st);b.stop()}}(t.model)),h.on("remove",ky,{priority:"low"})}),t.conversion.for("dataDowncast").add(h=>{h.on("insert",wk,{priority:"high"}),h.on("insert:listItem",_k(t.model))}),t.conversion.for("upcast").add(h=>{h.on("element:ul",Ak,{priority:"high"}),h.on("element:ol",Ak,{priority:"high"}),h.on("element:li",wy,{priority:"high"}),h.on("element:li",_y)}),t.model.on("insertContent",Ay,{priority:"high"}),t.commands.add("numberedList",new bk(t,"numbered")),t.commands.add("bulletedList",new bk(t,"bulleted")),t.commands.add("indentList",new fk(t,"forward")),t.commands.add("outdentList",new fk(t,"backward"));const l=n.view.document;this.listenTo(l,"enter",(h,p)=>{const b=this.editor.model.document,A=b.selection.getLastPosition().parent;b.selection.isCollapsed&&"listItem"==A.name&&A.isEmpty&&(this.editor.execute("outdentList"),p.preventDefault(),h.stop())},{context:"li"}),this.listenTo(l,"delete",(h,p)=>{if("backward"!==p.direction)return;const b=this.editor.model.document.selection;if(!b.isCollapsed)return;const A=b.getFirstPosition();if(!A.isAtStart)return;const C=A.parent;"listItem"===C.name&&(C.previousSibling&&"listItem"===C.previousSibling.name||(this.editor.execute("outdentList"),p.preventDefault(),h.stop()))},{context:"li"}),this.listenTo(t.editing.view.document,"tab",(h,p)=>{const b=p.shiftKey?"outdentList":"indentList";this.editor.commands.get(b).isEnabled&&(t.execute(b),p.stopPropagation(),p.preventDefault(),h.stop())},{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function _p(r){let t=1;for(const e of r.getChildren())if("ul"==e.name||"ol"==e.name)for(const n of e.getChildren())t+=_p(n);return t}Vo("Ctrl+Enter");var yk=lt(1199);function Ek(r,t){const e=(n,s,l)=>{if(!l.consumable.consume(s.item,n.name))return;const h=s.attributeNewValue,p=l.writer,b=l.mapper.toViewElement(s.item),A=[...b.getChildren()].find(E=>E.getCustomProperty("media-content"));p.remove(A);const C=r.getMediaViewElement(p,h,t);p.insert(p.createPositionAt(b,0),C)};return n=>{n.on("attribute:url:media",e)}}function Tk(r,t,e,n){return r.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(r,e,n),r.createSlot()])}function Sk(r){const t=r.getSelectedElement();return t&&t.is("element","media")?t:null}function Ik(r,t,e,n){r.change(s=>{const l=s.createElement("media",{url:t});r.insertObject(l,e,null,{setSelection:"on",findOptimalPosition:n?"auto":void 0})})}Rt()(yk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Vo("Ctrl+Enter");class Ey extends Jt{refresh(){const t=this.editor.model,e=t.document.selection,n=Sk(e);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=function(s){const l=s.getSelectedElement();return!!l&&"media"===l.name}(e)||function(s,l){let p=zf(s,l).start.parent;return p.isEmpty&&!l.schema.isLimit(p)&&(p=p.parent),l.schema.checkChild(p,"media")}(e,t)}execute(t){const e=this.editor.model,n=e.document.selection,s=Sk(n);s?e.change(l=>{l.setAttribute("url",t,s)}):Ik(e,t,n,!0)}}class Ty{constructor(t,e){const n=e.providers,s=e.extraProviders||[],l=new Set(e.removeProviders),h=n.concat(s).filter(p=>{const b=p.name;return b?!l.has(b):(kt("media-embed-no-provider-name",{provider:p}),!1)});this.locale=t,this.providerDefinitions=h}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new Dk(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,s=Ze(e.url);for(const l of s){const h=this._getUrlMatches(t,l);if(h)return new Dk(this.locale,t,h,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let s=t.replace(/^https?:\/\//,"");return n=s.match(e),n||(s=s.replace(/^www\./,""),n=s.match(e),n||null)}}class Dk{constructor(t,e,n,s){this.url=this._getValidUrl(e),this._locale=t,this._match=n,this._previewRenderer=s}getViewElement(t,e){const n={};let s;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const l=this._getPreviewHtml(e);s=t.createRawElement("div",n,(h,p)=>{p.setContentOf(h,l)})}else this.url&&(n.url=this.url),s=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,s),s}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new Dn,e=this._locale.t;return t.content='',t.viewBox="0 0 64 42",new Ei({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}var Mk=lt(7442);Rt()(Mk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class id extends Lt{constructor(t){super(t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:e=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:e=>{const s=e[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new Ty(t.locale,t.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,s=t.conversion,l=t.config.get("mediaEmbed.previewsInData"),h=t.config.get("mediaEmbed.elementName"),p=this.registry;t.commands.add("mediaEmbed",new Ey(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),s.for("dataDowncast").elementToStructure({model:"media",view:(b,{writer:A})=>{const C=b.getAttribute("url");return Tk(A,p,C,{elementName:h,renderMediaPreview:!!C&&l})}}),s.for("dataDowncast").add(Ek(p,{elementName:h,renderMediaPreview:l})),s.for("editingDowncast").elementToStructure({model:"media",view:(b,{writer:A})=>{const C=b.getAttribute("url");return E=Tk(A,p,C,{elementName:h,renderForEditingView:!0}),P=A,F=n("media widget"),P.setCustomProperty("media",!0,E),Ju(E,P,{label:F});var E,P,F}}),s.for("editingDowncast").add(Ek(p,{elementName:h,renderForEditingView:!0})),s.for("upcast").elementToElement({view:b=>["oembed",h].includes(b.name)&&b.getAttribute("url")?{name:!0}:null,model:(b,{writer:A})=>{const C=b.getAttribute("url");return p.hasMedia(C)?A.createElement("media",{url:C}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(b,{writer:A})=>{const C=b.getAttribute("data-oembed-url");return p.hasMedia(C)?A.createElement("media",{url:C}):null}}).add(b=>{b.on("element:figure",(A,C,E)=>{if(!E.consumable.consume(C.viewItem,{name:!0,classes:"media"}))return;const{modelRange:P,modelCursor:F}=E.convertChildren(C.viewItem,C.modelCursor);C.modelRange=P,C.modelCursor=F,Oe(P.getItems())||E.consumable.revert(C.viewItem,{name:!0,classes:"media"})})})}}const Iy=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class Dy extends Lt{constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[nb,Un,db]}static get pluginName(){return"AutoMediaEmbed"}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{const s=e.selection.getFirstRange(),l=ii.fromPosition(s.start);l.stickiness="toPrevious";const h=ii.fromPosition(s.end);h.stickiness="toNext",e.once("change:data",()=>{this._embedMediaBetweenPositions(l,h),l.detach(),h.detach()},{priority:"high"})}),t.commands.get("undo").on("execute",()=>{this._timeoutId&&(Yt.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,s=n.plugins.get(id).registry,l=new Ni(t,e),h=l.getWalker({ignoreElementEnd:!0});let p="";for(const b of h)b.item.is("$textProxy")&&(p+=b.item.data);p=p.trim(),p.match(Iy)&&s.hasMedia(p)&&n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=ii.fromPosition(t),this._timeoutId=Yt.window.setTimeout(()=>{n.model.change(b=>{this._timeoutId=null,b.remove(l),l.detach();let A=null;"$graveyard"!==this._positionToInsert.root.rootName&&(A=this._positionToInsert),Ik(n.model,p,A,!1),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get(Un).requestUndoOnBackspace()},100)):l.detach()}}var Lk=lt(9292);Rt()(Lk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ly extends Wt{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Ye,this.keystrokes=new vi,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",s=>!!s),this.cancelButtonView=this._createButton(n("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._focusables=new Ri,this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),L({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Cr(this.locale,Pc),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()}),e}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}}class Py extends Lt{static get requires(){return[id]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",n=>{const s=Zn(n);return this._setUpDropdown(s,e),s})}_setUpDropdown(t,e){const n=this.editor,s=n.t,l=t.buttonView,h=n.plugins.get(id).registry;t.once("change:isOpen",()=>{const p=new(ct(Ly))((b=n.t,A=h,[C=>{if(!C.url.length)return b("The URL must not be empty.")},C=>{if(!A.hasMedia(C.url))return b("This media URL is not supported.")}]),n.locale);var b,A;t.panelView.children.add(p),l.on("open",()=>{p.disableCssTransitions(),p.url=e.value||"",p.urlInputView.fieldView.select(),p.enableCssTransitions()},{priority:"low"}),t.on("submit",()=>{p.isValid()&&(n.execute("mediaEmbed",p.url),n.editing.view.focus())}),t.on("change:isOpen",()=>p.resetFormStatus()),t.on("cancel",()=>{n.editing.view.focus()}),p.delegate("submit","cancel").to(t),p.urlInputView.fieldView.bind("value").to(e,"value"),p.urlInputView.bind("isEnabled").to(e,"isEnabled")}),t.bind("isEnabled").to(e),l.set({label:s("Insert media"),icon:'',tooltip:!0})}}var Pk=lt(4652);function By(r){if(r.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(r){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return r;default:return null}}function Nk(r,t,e){const n=t.parent,s=e.createElement(r.type),l=n.getChildIndex(t)+1;return e.insertChild(l,s,n),r.style&&e.setStyle("list-style-type",r.style,s),r.startIndex&&r.startIndex>1&&e.setAttribute("start",r.startIndex,s),s}function Fy(r){const t={},e=r.getStyle("mso-list");if(e){const n=e.match(/(^|\s{1,100})l(\d+)/i),s=e.match(/\s{0,100}lfo(\d+)/i),l=e.match(/\s{0,100}level(\d+)/i);n&&s&&l&&(t.id=n[2],t.order=s[1],t.indent=parseInt(l[1]))}return t}function Ry(r){return btoa(r.match(/\w{2}/g).map(t=>String.fromCharCode(parseInt(t,16))).join(""))}Rt()(Pk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Zy=//i,Uy=/xmlns:o="urn:schemas-microsoft-com/i;class jy{constructor(t){this.document=t}isActive(t){return Zy.test(t)||Uy.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;(function Oy(r,t){if(!r.childCount)return;const e=new ko(r.document),n=function(h,p){const b=p.createRangeIn(h),A=new Ti({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),C=[];for(const E of b)if("elementStart"===E.type&&A.match(E.item)){const P=Fy(E.item);C.push({element:E.item,id:P.id,order:P.order,indent:P.indent})}return C}(r,e);if(!n.length)return;let s=null,l=1;n.forEach((h,p)=>{const b=function(j,Y){if(!j)return!0;if(j.id!==Y.id)return Y.indent-j.indent!=1;const $=Y.element.previousSibling;return!$||!((st=$).is("element","ol")||st.is("element","ul"));var st}(n[p-1],h),C=(P=h,(E=b?null:n[p-1])?P.indent-E.indent:P.indent-1);var E,P;if(b&&(s=null,l=1),!s||0!==C){const j=function(Y,$){const ft=/mso-level-number-format:([^;]{0,100});/gi,At=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,Ft=new RegExp(`@list l${Y.id}:level${Y.indent}\\s*({[^}]*)`,"gi").exec($);let jt="decimal",ae="ol",ce=null;if(Ft&&Ft[1]){const ze=ft.exec(Ft[1]);if(ze&&ze[1]&&(jt=ze[1].trim(),ae="bullet"!==jt&&"image"!==jt?"ol":"ul"),"bullet"===jt){const Re=function(is){const vn=function(qn){if(qn.getChild(0).is("$text"))return null;for(const Yn of qn.getChildren()){if(!Yn.is("element","span"))continue;const ir=Yn.getChild(0);if(ir)return ir.is("$text")?ir:ir.getChild(0)}return null}(is);if(!vn)return null;const Gi=vn._data;return"o"===Gi?"circle":"\xb7"===Gi?"disc":"\xa7"===Gi?"square":null}(Y.element);Re&&(jt=Re)}else{const Re=At.exec(Ft[1]);Re&&Re[1]&&(ce=parseInt(Re[1]))}}return{type:ae,startIndex:ce,style:By(jt)}}(h,t);if(s)if(h.indent>l){const Y=s.getChild(s.childCount-1),$=Y.getChild(Y.childCount-1);s=Nk(j,$,e),l+=1}else h.indentl.indexOf(j)>-1)?C.push(P):P.getAttribute("src")||C.push(P)}for(const E of C)p.remove(E)})(n,r,e),function(l,h,p){const b=p.createRangeIn(h),A=[];for(const P of b)if("elementStart"==P.type&&P.item.is("element","v:shape")){const F=P.item.getAttribute("id");if(l.includes(F))continue;C(P.item.parent.getChildren(),F)||A.push(P.item)}for(const P of A){const F={src:E(P)};P.hasAttribute("alt")&&(F.alt=P.getAttribute("alt"));const j=p.createElement("img",F);p.insertChild(P.index+1,j,P.parent)}function C(P,F){for(const j of P)if(j.is("element")&&("img"==j.name&&j.getAttribute("v:shapes")==F||C(j.getChildren(),F)))return!0;return!1}function E(P){for(const F of P.getChildren())if(F.is("element")&&F.getAttribute("src"))return F.getAttribute("src")}}(n,r,e),function(l,h){const p=h.createRangeIn(l),b=new Ti({name:/v:(.+)/}),A=[];for(const C of p)"elementStart"==C.type&&b.match(C.item)&&A.push(C.item);for(const C of A)h.remove(C)}(r,e);const s=function(l,h){const p=h.createRangeIn(l),b=new Ti({name:"img"}),A=[];for(const C of p)C.item.is("element")&&b.match(C.item)&&C.item.getAttribute("src").startsWith("file://")&&A.push(C.item);return A}(r,e);s.length&&function(l,h,p){if(l.length===h.length)for(let b=0;bh.is("element")&&!n.includes(h.name)&&!s.includes(h.name),{direction:t}),"forward"==t?l.nodeAfter:l.nodeBefore}function Bk(r,t){return!!r&&r.is("element")&&t.includes(r.name)}const Vy=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class qy{constructor(t){this.document=t}isActive(t){return Vy.test(t)}execute(t){const e=new ko(this.document),{body:n}=t._parsedData;(function(s,l){for(const h of s.getChildren())if(h.is("element","b")&&"normal"===h.getStyle("font-weight")){const p=s.getChildIndex(h);l.remove(h),l.insertChild(p,h.getChildren(),s)}})(n,e),function(s,l){for(const h of l.createRangeIn(s)){const p=h.item;if(p.is("element","li")){const b=p.getChild(0);b&&b.is("element","p")&&l.unwrapElement(b)}}}(n,e),function(s,l){const h=new Or(l.document.stylesProcessor),p=new ha(h,{renderingMode:"data"}),b=p.blockElements,A=p.inlineObjectElements,C=[];for(const E of l.createRangeIn(s)){const P=E.item;if(P.is("element","br")){const F=Ok(P,"forward",l,{blockElements:b,inlineObjectElements:A}),j=Ok(P,"backward",l,{blockElements:b,inlineObjectElements:A}),Y=Bk(F,b);(Bk(j,b)||Y)&&C.push(P)}}for(const E of C)E.hasClass("Apple-interchange-newline")?l.remove(E):l.replace(E,l.createElement("p"))}(n,e),t.content=n}}const Yy=/(\s+)<\/span>/g,(t,e)=>1===e.length?" ":Array(e.length+1).join("\xa0 ").substr(0,e.length))}function Fe(r,t,e,n,s=1){null!=t&&null!=s&&t>s?n.setAttribute(r,t,e):n.removeAttribute(r,e)}function $o(r,t,e={}){const n=r.createElement("tableCell",e);return r.insertElement("paragraph",n),r.insert(n,t),n}function wp(r,t){const n=parseInt(t.parent.parent.getAttribute("headingColumns")||"0"),{column:s}=r.getCellLocation(t);return!!n&&s{t.on(`element:${r}`,(e,n,{writer:s})=>{if(!n.modelRange)return;const l=n.modelRange.start.nodeAfter,h=s.createPositionAt(l,0);if(n.viewItem.isEmpty)return void s.insertElement("paragraph",h);const p=Array.from(l.getChildren());if(p.every(b=>b.is("element","$marker"))){const b=s.createElement("paragraph");s.insert(b,s.createPositionAt(l,0));for(const A of p)s.move(s.createRangeOn(A),s.createPositionAt(b,"end"))}},{priority:"low"})}}function Qy(r){let t=0,e=0;const n=Array.from(r.getChildren()).filter(s=>"th"===s.name||"td"===s.name);for(;e1||h>1)&&this._recordSpans(s,h,l),this._shouldSkipSlot()||(e=this._formatOutValue(s)),this._nextCellAtColumn=this._column+l}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}skipRow(t){this._skipRows.add(t)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(t,e=this._row,n=this._column){return{done:!1,value:new Xy(this,t,e,n)}}_shouldSkipSlot(){return this._skipRows.has(this._row)||this._rowthis._endColumn}_getSpanned(){const t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}_recordSpans(t,e,n){const s={cell:t,row:this._row,column:this._column};for(let l=this._row;l0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const t=this._getRowLength(0);for(let e=this._startRow;!this._jumpedToStartRow;e--)t===this._getRowLength(e)&&(this._row=e,this._rowIndex=e,this._jumpedToStartRow=!0)}_getRowLength(t){return[...this._table.getChild(t).getChildren()].reduce((e,n)=>e+parseInt(n.getAttribute("colspan")||"1"),0)}}class Xy{constructor(t,e,n,s){this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=s,this._cellIndex=t._cellIndex,this._rowIndex=t._rowIndex,this._table=t._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Rk(r,t){return(e,{writer:n})=>{const s=e.getAttribute("headingRows")||0,l=n.createContainerElement("table",null,[]),h=n.createContainerElement("figure",{class:"table"},l);s>0&&n.insert(n.createPositionAt(l,"end"),n.createContainerElement("thead",null,n.createSlot(p=>p.is("element","tableRow")&&p.indexp.is("element","tableRow")&&p.index>=s)));for(const{positionOffset:p,filter:b}of t.additionalSlots)n.insert(n.createPositionAt(l,p),n.createSlot(b));return n.insert(n.createPositionAt(l,"after"),n.createSlot(p=>!p.is("element","tableRow")&&!t.additionalSlots.some(({filter:b})=>b(p)))),t.asWidget?((b=n).setCustomProperty("table",!0,p=h),Ju(p,b,{hasSelectionHandle:!0})):h;var p,b}}function Zk(r={}){return(t,{writer:e})=>{const n=t.parent,s=n.parent,l=s.getChildIndex(n),h=new xe(s,{row:l}),p=s.getAttribute("headingRows")||0,b=s.getAttribute("headingColumns")||0;let A=null;for(const C of h)if(C.cell==t){const E=C.row{if(!t.parent.is("element","tableCell")||!jk(t))return null;if(r.asWidget)return e.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const n=e.createContainerElement("p");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}}function jk(r){return 1==r.parent.childCount&&!!r.getAttributeKeys().next().done}class Ky extends Jt{refresh(){const t=this.editor.model;this.isEnabled=function(s,l){const h=s.getFirstPosition().parent;return l.checkChild(h===h.root?h:h.parent,"table")}(t.document.selection,t.schema)}execute(t={}){const e=this.editor,n=e.model,s=e.plugins.get("TableUtils"),l=e.config.get("table.defaultHeadings.rows"),h=e.config.get("table.defaultHeadings.columns");void 0===t.headingRows&&l&&(t.headingRows=l),void 0===t.headingColumns&&h&&(t.headingColumns=h),n.change(p=>{const b=s.createTable(p,t);n.insertObject(b,null,null,{findOptimalPosition:"auto"}),p.setSelection(p.createPositionAt(b.getNodeByPath([0,0,0]),0))})}}class Vk extends Jt{constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),s="above"===this.order,l=n.getSelectionAffectedTableCells(e),h=n.getRowIndexes(l),p=s?h.first:h.last,b=l[0].findAncestor("table");n.insertRows(b,{at:s?p:p+1,copyStructureFromAbove:!s})}}class qk extends Jt{constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),s="left"===this.order,l=n.getSelectionAffectedTableCells(e),h=n.getColumnIndexes(l),p=s?h.first:h.last,b=l[0].findAncestor("table");n.insertColumns(b,{columns:1,at:s?p:p+1})}}class Yk extends Jt{constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===t.length}execute(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?t.splitCellHorizontally(e,2):t.splitCellVertically(e,2)}}function Hk(r,t,e){const{startRow:n,startColumn:s,endRow:l,endColumn:h}=t,p=e.createElement("table"),b=l-n+1;for(let C=0;C0&&Fe("headingRows",Y-P,C,j,0);const $=parseInt(E.getAttribute("headingColumns")||"0");$>0&&Fe("headingColumns",$-F,C,j,0)}(p,r,n,s,e),p}function Gk(r,t,e=0){const n=[],s=new xe(r,{startRow:e,endRow:t-1});for(const l of s){const{row:h,cellHeight:p}=l;h1&&(p.rowspan=b);const A=parseInt(r.getAttribute("colspan")||"1");A>1&&(p.colspan=A);const C=l+h,E=[...new xe(s,{startRow:l,endRow:C,includeAllSlots:!0})];let P,F=null;for(const j of E){const{row:Y,column:$,cell:st}=j;st===r&&void 0===P&&(P=$),void 0!==P&&P===$&&Y===C&&(F=$o(e,j.getPositionBefore(),p))}return Fe("rowspan",h,r,e),F}function Qk(r,t){const e=[],n=new xe(r);for(const s of n){const{column:l,cellWidth:h}=s;l1&&(l.colspan=h);const p=parseInt(r.getAttribute("rowspan")||"1");p>1&&(l.rowspan=p);const b=$o(n,n.createPositionAfter(r),l);return Fe("colspan",s,r,n),b}function Kk(r,t,e,n,s,l){const h=parseInt(r.getAttribute("colspan")||"1"),p=parseInt(r.getAttribute("rowspan")||"1");e+h-1>s&&Fe("colspan",s-e+1,r,l,1),t+p-1>n&&Fe("rowspan",n-t+1,r,l,1)}function Ap(r,t){const e=t.getColumns(r),n=new Array(e).fill(0);for(const{column:l}of new xe(r))n[l]++;const s=n.reduce((l,h,p)=>h?l:[...l,p],[]);return s.length>0&&(t.removeColumns(r,{at:s[s.length-1]}),!0)}function xp(r,t){const e=[],n=t.getRows(r);for(let s=0;s0&&(t.removeRows(r,{at:e[e.length-1]}),!0)}function Cp(r,t){Ap(r,t)||xp(r,t)}function Jk(r,t){const e=Array.from(new xe(r,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));return e.every(({cellHeight:s})=>1===s)?t.lastRow:t.lastRow+(e[0].cellHeight-1)}function $k(r,t){const e=Array.from(new xe(r,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));return e.every(({cellWidth:s})=>1===s)?t.lastColumn:t.lastColumn+(e[0].cellWidth-1)}class nd extends Jt{constructor(t,e){super(t),this.direction=e.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}execute(){const t=this.editor.model,e=t.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(e.selection)[0],s=this.value,l=this.direction;t.change(h=>{const p="right"==l||"down"==l,b=p?n:s,A=p?s:n,C=A.parent;var Y,$,st;$=b,st=h,t0(Y=A)||(t0($)&&st.remove(st.createRangeIn($)),st.move(st.createRangeIn(Y),st.createPositionAt($,"end"))),st.remove(Y);const E=this.isHorizontal?"colspan":"rowspan",P=parseInt(n.getAttribute(E)||"1"),F=parseInt(s.getAttribute(E)||"1");h.setAttribute(E,P+F,b),h.setSelection(h.createRangeIn(b));const j=this.editor.plugins.get("TableUtils");Cp(C.findAncestor("table"),j)})}_getMergeableCell(){const t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(!n)return;const s=this.isHorizontal?function(p,b,A){const P="right"==b?p.nextSibling:p.previousSibling,F=(p.parent.parent.getAttribute("headingColumns")||0)>0;if(!P)return;const j="right"==b?p:P,Y="right"==b?P:p,{column:$}=A.getCellLocation(j),{column:st}=A.getCellLocation(Y),ft=parseInt(j.getAttribute("colspan")||"1"),At=wp(A,j),Ft=wp(A,Y);return F&&At!=Ft?void 0:$+ft===st?P:void 0}(n,this.direction,e):function(p,b,A){const C=p.parent,E=C.parent,P=E.getChildIndex(C);if("down"==b&&P===A.getRows(E)-1||"up"==b&&0===P)return null;const F=parseInt(p.getAttribute("rowspan")||"1"),j=E.getAttribute("headingRows")||0;if(j&&("down"==b&&P+F===j||"up"==b&&P===j))return null;const st=parseInt(p.getAttribute("rowspan")||"1"),ft="down"==b?P+st:P,At=[...new xe(E,{endRow:ft})],jt=At.find(ce=>ce.cell===p).column,ae=At.find(({row:ce,cellHeight:ze,column:Re})=>Re===jt&&("down"==b?ce===ft:ft===ce+ze));return ae&&ae.cell?ae.cell:null}(n,this.direction,e);if(!s)return;const l=this.isHorizontal?"rowspan":"colspan",h=parseInt(n.getAttribute(l)||"1");return parseInt(s.getAttribute(l)||"1")===h?s:void 0}}function t0(r){const t=r.getChild(0);return 1==r.childCount&&t.is("element","paragraph")&&t.isEmpty}class Jy extends Jt{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const s=n.findAncestor("table"),l=t.getRows(s)-1,h=t.getRowIndexes(e);this.isEnabled=!(0===h.first&&h.last===l)}else this.isEnabled=!1}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),s=e.getRowIndexes(n),l=n[0],h=l.findAncestor("table"),p=e.getCellLocation(l).column;t.change(b=>{e.removeRows(h,{at:s.first,rows:s.last-s.first+1});const C=function(E,P,F,j){const Y=E.getChild(Math.min(P,j-1));let $=Y.getChild(0),st=0;for(const ft of Y.getChildren()){if(st>F)return $;$=ft,st+=parseInt(ft.getAttribute("colspan")||"1")}return $}(h,s.first,p,e.getRows(h));b.setSelection(b.createPositionAt(C,0))})}}class $y extends Jt{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const s=n.findAncestor("table"),l=t.getColumns(s),{first:h,last:p}=t.getColumnIndexes(e);this.isEnabled=p-hb.cell===e).column,last:l.find(b=>b.cell===n).column},p=(b=l,A=e,C=n,E=h,parseInt(C.getAttribute("colspan")||"1")>1?C:A.previousSibling||C.nextSibling?C.nextSibling||A.previousSibling:E.first?b.reverse().find(({column:F})=>FF>E.last).cell);var b,A,C,E;this.editor.model.change(b=>{t.removeColumns(s,{at:h.first,columns:h.last-h.first+1}),b.setSelection(b.createPositionAt(p,0))})}}class t2 extends Jt{refresh(){const n=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),s=n.length>0;this.isEnabled=s,this.value=s&&n.every(l=>this._isInHeading(l,l.parent.parent))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,s=e.getSelectionAffectedTableCells(n.document.selection),l=s[0].findAncestor("table"),{first:h,last:p}=e.getRowIndexes(s),b=this.value?h:p+1,A=l.getAttribute("headingRows")||0;n.change(C=>{if(b){const E=Gk(l,b,b>A?A:0);for(const{cell:P}of E)Wk(P,b,C)}Fe("headingRows",b,l,C,0)})}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index0;this.isEnabled=s,this.value=s&&n.every(l=>wp(e,l))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,s=e.getSelectionAffectedTableCells(n.document.selection),l=s[0].findAncestor("table"),{first:h,last:p}=e.getColumnIndexes(s),b=this.value?h:p+1;n.change(A=>{if(b){const C=Qk(l,b);for(const{cell:E,column:P}of C)Xk(E,P,b,A)}Fe("headingColumns",b,l,A,0)})}}class si extends Lt{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,s=n.getChildIndex(e),l=new xe(n,{row:s});for(const{cell:h,row:p,column:b}of l)if(h===t)return{row:p,column:b}}createTable(t,e){const n=t.createElement("table"),s=e.rows||2,l=e.columns||2;return yp(t,n,0,s,l),e.headingRows&&Fe("headingRows",Math.min(e.headingRows,s),n,t,0),e.headingColumns&&Fe("headingColumns",Math.min(e.headingColumns,l),n,t,0),n}insertRows(t,e={}){const n=this.editor.model,s=e.at||0,l=e.rows||1,h=void 0!==e.copyStructureFromAbove,p=e.copyStructureFromAbove?s-1:s,b=this.getRows(t),A=this.getColumns(t);if(s>b)throw new W("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change(C=>{const E=t.getAttribute("headingRows")||0;if(E>s&&Fe("headingRows",E+l,t,C,0),!h&&(0===s||s===b))return void yp(C,t,s,l,A);const P=h?Math.max(s,p):s,F=new xe(t,{endRow:P}),j=new Array(A).fill(1);for(const{row:Y,column:$,cellHeight:st,cellWidth:ft,cell:At}of F){const Ft=Y+st-1,jt=Y<=p&&p<=Ft;Y0&&$o(C,At,ft>1?{colspan:ft}:void 0),st+=Math.abs(ft)-1}}})}insertColumns(t,e={}){const s=e.at||0,l=e.columns||1;this.editor.model.change(h=>{const p=t.getAttribute("headingColumns");sl-1)throw new W("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});n.change(b=>{const A={first:h,last:p},{cellsToMove:C,cellsToTrim:E}=function(P,{first:F,last:j}){const Y=new Map,$=[];for(const{row:st,column:ft,cellHeight:At,cell:Ft}of new xe(P,{endRow:j})){const jt=st+At-1;if(st>=F&&st<=j&&jt>j&&Y.set(ft,{cell:Ft,rowspan:At-(j-st+1)}),st=F){let ae;ae=jt>=j?j-F+1:jt-F+1,$.push({cell:Ft,rowspan:At-ae})}}return{cellsToMove:Y,cellsToTrim:$}}(t,A);C.size&&function(P,F,j,Y){const st=[...new xe(P,{includeAllSlots:!0,row:F})],ft=P.getChild(F);let At;for(const{column:Ft,cell:jt,isAnchor:ae}of st)if(j.has(Ft)){const{cell:ce,rowspan:ze}=j.get(Ft),Re=At?Y.createPositionAfter(At):Y.createPositionAt(ft,0);Y.move(Y.createRangeOn(ce),Re),Fe("rowspan",ze,ce,Y),At=ce}else ae&&(At=jt)}(t,p+1,C,b);for(let P=p;P>=h;P--)b.remove(t.getChild(P));for(const{rowspan:P,cell:F}of E)Fe("rowspan",P,F,b);(function(P,{first:F,last:j},Y){const $=P.getAttribute("headingRows")||0;F<$&&Fe("headingRows",j<$?$-(j-F+1):F,P,Y,0)})(t,A,b),Ap(t,this)||xp(t,this)})}removeColumns(t,e){const s=e.at,h=e.at+(e.columns||1)-1;this.editor.model.change(p=>{!function(A,C,E){const P=A.getAttribute("headingColumns")||0;if(P&&C.firste.is("element","tableColumnGroup"))}(r);return t?Array.from(t.getChildren()):[]}(t);for(let A=h;A>=s;A--){for(const{cell:C,column:E,cellWidth:P}of[...new xe(t)])E<=A&&P>1&&E+P>A?Fe("colspan",P-1,C,p):E===A&&p.remove(C);if(b[A]){const C=0===A?b[1]:b[A-1],E=parseFloat(b[A].getAttribute("columnWidth")),P=parseFloat(C.getAttribute("columnWidth"));p.remove(b[A]),p.setAttribute("columnWidth",E+P+"%",C)}}xp(t,this)||Ap(t,this)})}splitCellVertically(t,e=2){const n=this.editor.model,s=t.parent.parent,l=parseInt(t.getAttribute("rowspan")||"1"),h=parseInt(t.getAttribute("colspan")||"1");n.change(p=>{if(h>1){const{newCellsSpan:b,updatedSpan:A}=e0(h,e);Fe("colspan",A,t,p);const C={};b>1&&(C.colspan=b),l>1&&(C.rowspan=l),es(h>e?e-1:h-1,p,p.createPositionAfter(t),C)}if(hj===t),E=A.filter(({cell:j,cellWidth:Y,column:$})=>j!==t&&$===C||$C);for(const{cell:j,cellWidth:Y}of E)p.setAttribute("colspan",Y+b,j);const P={};l>1&&(P.rowspan=l),es(b,p,p.createPositionAfter(t),P);const F=s.getAttribute("headingColumns")||0;F>C&&Fe("headingColumns",F+b,s,p)}})}splitCellHorizontally(t,e=2){const n=this.editor.model,s=t.parent,l=s.parent,h=l.getChildIndex(s),p=parseInt(t.getAttribute("rowspan")||"1"),b=parseInt(t.getAttribute("colspan")||"1");n.change(A=>{if(p>1){const C=[...new xe(l,{startRow:h,endRow:h+p-1,includeAllSlots:!0})],{newCellsSpan:E,updatedSpan:P}=e0(p,e);Fe("rowspan",P,t,A);const{column:F}=C.find(({cell:Y})=>Y===t),j={};E>1&&(j.rowspan=E),b>1&&(j.colspan=b);for(const Y of C){const{column:$,row:st}=Y;st>=h+P&&$===F&&(st+h+P)%E==0&&es(1,A,Y.getPositionBefore(),j)}}if(ph&&A.setAttribute("rowspan",Y+C,j);const P={};b>1&&(P.colspan=b),yp(A,l,h+1,C,1,P);const F=l.getAttribute("headingRows")||0;F>h&&Fe("headingRows",F+C,l,A)}})}getColumns(t){return[...t.getChild(0).getChildren()].reduce((e,n)=>e+parseInt(n.getAttribute("colspan")||"1"),0)}getRows(t){return Array.from(t.getChildren()).reduce((e,n)=>n.is("element","tableRow")?e+1:e,0)}createTableWalker(t,e={}){return new xe(t,e)}getSelectedTableCells(t){const e=[];for(const n of this.sortRanges(t.getRanges())){const s=n.getContainedElement();s&&s.is("element","tableCell")&&e.push(s)}return e}getTableCellsContainingSelection(t){const e=[];for(const n of t.getRanges()){const s=n.start.findAncestor("tableCell");s&&e.push(s)}return e}getSelectionAffectedTableCells(t){const e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}getRowIndexes(t){const e=t.map(n=>n.parent.index);return this._getFirstLastIndexesObject(e)}getColumnIndexes(t){const e=t[0].findAncestor("table"),n=[...new xe(e)].filter(s=>t.includes(s.cell)).map(s=>s.column);return this._getFirstLastIndexesObject(n)}isSelectionRectangular(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;const e=new Set,n=new Set;let s=0;for(const h of t){const{row:p,column:b}=this.getCellLocation(h),A=parseInt(h.getAttribute("rowspan"))||1,C=parseInt(h.getAttribute("colspan"))||1;e.add(p),n.add(b),A>1&&e.add(p+A-1),C>1&&n.add(b+C-1),s+=A*C}return function(h,p){const b=Array.from(h.values()),A=Array.from(p.values());return(Math.max(...b)-Math.min(...b)+1)*(Math.max(...A)-Math.min(...A)+1)}(e,n)==s}sortRanges(t){return Array.from(t).sort(r2)}_getFirstLastIndexesObject(t){const e=t.sort((n,s)=>n-s);return{first:e[0],last:e[e.length-1]}}_areCellInTheSameTableSection(t){const e=t[0].findAncestor("table"),n=this.getRowIndexes(t),s=parseInt(e.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,s))return!1;const l=this.getColumnIndexes(t),h=parseInt(e.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(l,h)}_areIndexesInSameSection({first:t,last:e},n){return t{const s=e.getSelectedTableCells(t.document.selection),l=s.shift(),{mergeWidth:h,mergeHeight:p}=function(b,A,C){let E=0,P=0;for(const st of A){const{row:ft,column:At}=C.getCellLocation(st);E=o0(st,At,E,"colspan"),P=o0(st,ft,P,"rowspan")}const{row:F,column:j}=C.getCellLocation(b);return{mergeWidth:E-j,mergeHeight:P-F}}(l,s,e);Fe("colspan",h,l,n),Fe("rowspan",p,l,n);for(const b of s)a2(b,l,n);Cp(l.findAncestor("table"),e),n.setSelection(l,"in")})}}function a2(r,t,e){n0(r)||(n0(t)&&e.remove(e.createRangeIn(t)),e.move(e.createRangeIn(r),e.createPositionAt(t,"end"))),e.remove(r)}function n0(r){const t=r.getChild(0);return 1==r.childCount&&t.is("element","paragraph")&&t.isEmpty}function o0(r,t,e,n){const s=parseInt(r.getAttribute(n)||"1");return Math.max(e,t+s)}class l2 extends Jt{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),s=e.getRowIndexes(n),l=n[0].findAncestor("table"),h=[];for(let p=s.first;p<=s.last;p++)for(const b of l.getChild(p).getChildren())h.push(t.createRangeOn(b));t.change(p=>{p.setSelection(h)})}}class c2 extends Jt{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),s=n[0],l=n.pop(),h=s.findAncestor("table"),p=t.getCellLocation(s),b=t.getCellLocation(l),A=Math.min(p.column,b.column),C=Math.max(p.column,b.column),E=[];for(const P of new xe(h,{startColumn:A,endColumn:C}))E.push(e.createRangeOn(P.cell));e.change(P=>{P.setSelection(E)})}}function h2(r,t){let e=!1;const n=function(s){const l=parseInt(s.getAttribute("headingRows")||"0"),h=Array.from(s.getChildren()).reduce((b,A)=>A.is("element","tableRow")?b+1:b,0),p=[];for(const{row:b,cell:A,cellHeight:C}of new xe(s)){if(C<2)continue;const E=bE&&p.push({cell:A,rowspan:E-b})}return p}(r);if(n.length){e=!0;for(const s of n)Fe("rowspan",s.rowspan,s.cell,t,1)}return e}function u2(r,t){let e=!1;const n=function(p){const b=new Array(p.childCount).fill(0);for(const{rowIndex:A}of new xe(p,{includeAllSlots:!0}))b[A]++;return b}(r),s=[];for(const[p,b]of n.entries())!b&&r.getChild(p).is("element","tableRow")&&s.push(p);if(s.length){e=!0;for(const p of s.reverse())t.remove(r.getChild(p)),n.splice(p,1)}const l=n.filter((p,b)=>r.getChild(b).is("element","tableRow")),h=l[0];if(!l.every(p=>p===h)){const p=l.reduce((b,A)=>A>b?A:b,0);for(const[b,A]of l.entries()){const C=p-A;if(C){for(let E=0;En.is("$text"));for(const n of e)t.wrap(t.createRangeOn(n),"paragraph");return!!e.length}function f2(r){return!!r.position.parent.is("element","tableCell")&&("insert"==r.type&&"$text"==r.name||"remove"==r.type)}function b2(r,t){if(!r.is("element","paragraph"))return!1;const e=t.toViewElement(r);return!!e&&jk(r)!==e.is("element","span")}var s0=lt(3881);Rt()(s0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class k2 extends Lt{constructor(t){super(t),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[si]}init(){const t=this.editor,e=t.model,n=e.schema,s=t.conversion,l=t.plugins.get(si);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),s.for("upcast").add(h=>{h.on("element:figure",(p,b,A)=>{if(!A.consumable.test(b.viewItem,{name:!0,classes:"table"}))return;const C=function(P){for(const F of P.getChildren())if(F.is("element","table"))return F}(b.viewItem);if(!C||!A.consumable.test(C,{name:!0}))return;A.consumable.consume(b.viewItem,{name:!0,classes:"table"});const E=Oe(A.convertItem(C,b.modelCursor).modelRange.getItems());E?(A.convertChildren(b.viewItem,A.writer.createPositionAt(E,"end")),A.updateConversionResult(E,b)):A.consumable.revert(b.viewItem,{name:!0,classes:"table"})})}),s.for("upcast").add(function Wy(){return r=>{r.on("element:table",(t,e,n)=>{const s=e.viewItem;if(!n.consumable.test(s,{name:!0}))return;const{rows:l,headingRows:h,headingColumns:p}=function(C){let E,P=0;const F=[],j=[];let Y;for(const $ of Array.from(C.getChildren())){if("tbody"!==$.name&&"thead"!==$.name&&"tfoot"!==$.name)continue;"thead"!==$.name||Y||(Y=$);const st=Array.from($.getChildren()).filter(ft=>ft.is("element","tr"));for(const ft of st)if(Y&&$===Y||"tbody"===$.name&&Array.from(ft.getChildren()).length&&Array.from(ft.getChildren()).every(At=>At.is("element","th")))P++,F.push(ft);else{j.push(ft);const At=Qy(ft);(!E||Atn.convertItem(C,n.writer.createPositionAt(A,"end"))),n.convertChildren(s,n.writer.createPositionAt(A,"end")),A.isEmpty){const C=n.writer.createElement("tableRow");n.writer.insert(C,n.writer.createPositionAt(A,"end")),$o(n.writer,n.writer.createPositionAt(C,"end"))}n.updateConversionResult(A,e)}})}}()),s.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Rk(l,{asWidget:!0,additionalSlots:this._additionalSlots})}),s.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Rk(l,{additionalSlots:this._additionalSlots})}),s.for("upcast").elementToElement({model:"tableRow",view:"tr"}),s.for("upcast").add(h=>{h.on("element:tr",(p,b)=>{b.viewItem.isEmpty&&0==b.modelCursor.index&&p.stop()},{priority:"high"})}),s.for("downcast").elementToElement({model:"tableRow",view:(h,{writer:p})=>h.isEmpty?p.createEmptyElement("tr"):p.createContainerElement("tr")}),s.for("upcast").elementToElement({model:"tableCell",view:"td"}),s.for("upcast").elementToElement({model:"tableCell",view:"th"}),s.for("upcast").add(zk("td")),s.for("upcast").add(zk("th")),s.for("editingDowncast").elementToElement({model:"tableCell",view:Zk({asWidget:!0})}),s.for("dataDowncast").elementToElement({model:"tableCell",view:Zk()}),s.for("editingDowncast").elementToElement({model:"paragraph",view:Uk({asWidget:!0}),converterPriority:"high"}),s.for("dataDowncast").elementToElement({model:"paragraph",view:Uk(),converterPriority:"high"}),s.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),s.for("upcast").attributeToAttribute({model:{key:"colspan",value:a0("colspan")},view:"colspan"}),s.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),s.for("upcast").attributeToAttribute({model:{key:"rowspan",value:a0("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new Ky(t)),t.commands.add("insertTableRowAbove",new Vk(t,{order:"above"})),t.commands.add("insertTableRowBelow",new Vk(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new qk(t,{order:"left"})),t.commands.add("insertTableColumnRight",new qk(t,{order:"right"})),t.commands.add("removeTableRow",new Jy(t)),t.commands.add("removeTableColumn",new $y(t)),t.commands.add("splitTableCellVertically",new Yk(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new Yk(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new s2(t)),t.commands.add("mergeTableCellRight",new nd(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new nd(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new nd(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new nd(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new e2(t)),t.commands.add("setTableRowHeader",new t2(t)),t.commands.add("selectTableRow",new l2(t)),t.commands.add("selectTableColumn",new c2(t)),function d2(r){r.document.registerPostFixer(t=>function(e,n){const s=n.document.differ.getChanges();let l=!1;const h=new Set;for(const p of s){let b=null;"insert"==p.type&&"table"==p.name&&(b=p.position.nodeAfter),"insert"!=p.type&&"remove"!=p.type||"tableRow"!=p.name&&"tableCell"!=p.name||(b=p.position.findAncestor("table")),p2(p)&&(b=p.range.start.findAncestor("table")),b&&!h.has(b)&&(l=h2(b,e)||l,l=u2(b,e)||l,h.add(b))}return l}(t,r))}(e),function g2(r){r.document.registerPostFixer(t=>function(e,n){const s=n.document.differ.getChanges();let l=!1;for(const h of s)"insert"==h.type&&"table"==h.name&&(l=m2(h.position.nodeAfter,e)||l),"insert"==h.type&&"tableRow"==h.name&&(l=r0(h.position.nodeAfter,e)||l),"insert"==h.type&&"tableCell"==h.name&&(l=Ep(h.position.nodeAfter,e)||l),"remove"!=h.type&&"insert"!=h.type||!f2(h)||(l=Ep(h.position.parent,e)||l);return l}(t,r))}(e),this.listenTo(e.document,"change:data",()=>{(function(h,p){const b=h.document.differ;for(const A of b.getChanges()){let C,E=!1;if("attribute"==A.type){const Y=A.range.start.nodeAfter;if(!Y||!Y.is("element","table")||"headingRows"!=A.attributeKey&&"headingColumns"!=A.attributeKey)continue;C=Y,E="headingRows"==A.attributeKey}else"tableRow"!=A.name&&"tableCell"!=A.name||(C=A.position.findAncestor("table"),E="tableRow"==A.name);if(!C)continue;const P=C.getAttribute("headingRows")||0,F=C.getAttribute("headingColumns")||0,j=new xe(C);for(const Y of j){const $=Y.rowb2(P,p.mapper));for(const P of E)p.reconvertItem(P)}}(e,t.editing)})}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function a0(r){return t=>{const e=parseInt(t.getAttribute(r));return Number.isNaN(e)||e<=0?null:e}}var l0=lt(1613);Rt()(l0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class w2 extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new vi,this.focusTracker=new Ye,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(n,s)=>`${s} \xd7 ${n}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":e.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:e.to("label")}]}],on:{mousedown:e.to(n=>{n.preventDefault()}),click:e.to(()=>{this.fire("execute")})}}),this.on("boxover",(n,s)=>{const{row:l,column:h}=s.target.dataset;this.items.get(10*(parseInt(l,10)-1)+(parseInt(h,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(n,s,l)=>{if(!l)return;const{row:h,column:p}=l.dataset;this.set({rows:parseInt(h),columns:parseInt(p)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:t,focusTracker:e,gridItems:n,numberOfColumns:s,uiLanguageDirection:l}){const h="number"==typeof s?()=>s:s;function p(C){return E=>{const P=n.find(Y=>Y.element===e.focusedElement),F=n.getIndex(P),j=C(F,n);n.get(j).focus(),E.stopPropagation(),E.preventDefault()}}function b(C,E){return C===E-1?0:C+1}function A(C,E){return 0===C?E-1:C-1}t.set("arrowright",p((C,E)=>"rtl"===l?A(C,E.length):b(C,E.length))),t.set("arrowleft",p((C,E)=>"rtl"===l?b(C,E.length):A(C,E.length))),t.set("arrowup",p((C,E)=>{let P=C-h();return P<0&&(P=C+h()*Math.floor(E.length/h()),P>E.length-1&&(P-=h())),P})),t.set("arrowdown",p((C,E)=>{let P=C+h();return P>E.length-1&&(P=C%h()),P}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map((n,s)=>{const l=Math.floor(s/10){const l=t.commands.get("insertTable"),h=Zn(s);let p;return h.bind("isEnabled").to(l),h.buttonView.set({icon:'',label:e("Insert table"),tooltip:!0}),h.on("change:isOpen",()=>{p||(p=new w2(s),h.panelView.children.add(p),p.delegate("execute").to(h),h.on("execute",()=>{t.execute("insertTable",{rows:p.rows,columns:p.columns}),t.editing.view.focus()}))}),h}),t.ui.componentFactory.add("tableColumn",s=>{const l=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:e("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:e("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:e("Select column")}}];return this._prepareDropdown(e("Column"),'',l,s)}),t.ui.componentFactory.add("tableRow",s=>{const l=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:e("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:e("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:e("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:e("Select row")}}];return this._prepareDropdown(e("Row"),'',l,s)}),t.ui.componentFactory.add("mergeTableCells",s=>{const l=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:e("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(e("Merge cells"),'',l,s)})}_prepareDropdown(t,e,n,s){const l=this.editor,h=Zn(s),p=this._fillDropdownWithListOptions(h,n);return h.buttonView.set({label:t,icon:e,tooltip:!0}),h.bind("isEnabled").toMany(p,"isEnabled",(...b)=>b.some(A=>A)),this.listenTo(h,"execute",b=>{l.execute(b.source.commandName),b.source instanceof xr||l.editing.view.focus()}),h}_prepareMergeSplitButtonDropdown(t,e,n,s){const l=this.editor,h=Zn(s,Lc),p="mergeTableCells",b=l.commands.get(p),A=this._fillDropdownWithListOptions(h,n);return h.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),h.bind("isEnabled").toMany([b,...A],"isEnabled",(...C)=>C.some(E=>E)),this.listenTo(h.buttonView,"execute",()=>{l.execute(p),l.editing.view.focus()}),this.listenTo(h,"execute",C=>{l.execute(C.source.commandName),l.editing.view.focus()}),h}_fillDropdownWithListOptions(t,e){const n=this.editor,s=[],l=new di;for(const h of e)x2(h,n,s,l);return hm(t,l),s}}function x2(r,t,e,n){if("button"===r.type||"switchbutton"===r.type){const s=r.model=new qm(r.model),{commandName:l,bindIsOn:h}=r.model,p=t.commands.get(l);e.push(p),s.set({commandName:l}),s.bind("isEnabled").to(p),h&&s.bind("isOn").to(p,"value"),s.set({withText:!0})}n.add(r)}var c0=lt(6945);Rt()(c0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class tr extends Lt{static get pluginName(){return"TableSelection"}static get requires(){return[si,si]}init(){const t=this.editor,n=t.editing.view;this.listenTo(t.model,"deleteContent",(s,l)=>this._handleDeleteContent(s,l),{priority:"high"}),this.listenTo(n.document,"insertText",(s,l)=>this._handleInsertTextEvent(s,l),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const n=this.editor.plugins.get(si).getSelectedTableCells(this.editor.model.document.selection);return 0==n.length?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(si),e=this.getSelectedTableCells();return e?this.editor.model.change(n=>{const s=n.createDocumentFragment(),{first:l,last:h}=t.getColumnIndexes(e),{first:p,last:b}=t.getRowIndexes(e),A=e[0].findAncestor("table");let C=b,E=h;if(t.isSelectionRectangular(e)){const F={firstColumn:l,lastColumn:h,firstRow:p,lastRow:b};C=Jk(A,F),E=$k(A,F)}const P=Hk(A,{startRow:p,startColumn:l,endRow:C,endColumn:E},n);return n.insert(P,s,0),s}):null}setCellSelection(t,e){const n=this._getCellsToSelect(t,e);this.editor.model.change(s=>{s.setSelection(n.cells.map(l=>s.createRangeOn(l)),{backward:n.backward})})}getFocusCell(){const t=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}getAnchorCell(){const t=Oe(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add(n=>n.on("selection",(s,l,h)=>{const p=h.writer;!function(C){for(const E of e)C.removeClass("ck-editor__editable_selected",E);e.clear()}(p);const b=this.getSelectedTableCells();if(!b)return;for(const C of b){const E=h.mapper.toViewElement(C);p.addClass("ck-editor__editable_selected",E),e.add(E)}const A=h.mapper.toViewElement(b[b.length-1]);p.setSelection(A,0)},{priority:"lowest"}))}_enablePluginDisabling(){const t=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const e=this.getSelectedTableCells();if(!e)return;t.model.change(n=>{const s=n.createPositionAt(e[0],0),l=t.model.schema.getNearestSelectionRange(s);n.setSelection(l)})}})}_handleDeleteContent(t,e){const n=this.editor.plugins.get(si),s=e[0],l=e[1],h=this.editor.model,p=!l||"backward"==l.direction,b=n.getSelectedTableCells(s);b.length&&(t.stop(),h.change(A=>{const C=b[p?b.length-1:0];h.change(P=>{for(const F of b)h.deleteContent(P.createSelection(F,"in"))});const E=h.schema.getNearestSelectionRange(A.createPositionAt(C,0));s.is("documentSelection")?A.setSelection(E):s.setTo(E)}))}_handleInsertTextEvent(t,e){const n=this.editor,s=this.getSelectedTableCells();if(!s)return;const l=n.editing.view,h=n.editing.mapper,p=s.map(b=>l.createRangeOn(h.toViewElement(b)));e.selection=l.createSelection(p)}_getCellsToSelect(t,e){const n=this.editor.plugins.get("TableUtils"),s=n.getCellLocation(t),l=n.getCellLocation(e),h=Math.min(s.row,l.row),p=Math.max(s.row,l.row),b=Math.min(s.column,l.column),A=Math.max(s.column,l.column),C=new Array(p-h+1).fill(null).map(()=>[]),E={startRow:h,endRow:p,startColumn:b,endColumn:A};for(const{row:j,cell:Y}of new xe(t.findAncestor("table"),E))C[j-h].push(Y);const P=l.rowj.reverse()),{cells:C.flat(),backward:P||F}}}class y2 extends Lt{static get pluginName(){return"TableClipboard"}static get requires(){return[tr,si]}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"copy",(n,s)=>this._onCopyCut(n,s)),this.listenTo(e,"cut",(n,s)=>this._onCopyCut(n,s)),this.listenTo(t.model,"insertContent",(n,[s,l])=>this._onInsertContent(n,s,l),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(t,e){const n=this.editor.plugins.get(tr);if(!n.getSelectedTableCells()||"cut"==t.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;e.preventDefault(),t.stop();const l=this.editor.editing.view.document,h=this.editor.data.toView(n.getSelectionAsFragment());l.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:h,method:t.name})}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const s=this.editor.model,l=this.editor.plugins.get(si);let h=this.getTableIfOnlyTableInContent(e,s);if(!h)return;const p=l.getSelectionAffectedTableCells(s.document.selection);p.length?(t.stop(),s.change(b=>{const A={width:l.getColumns(h),height:l.getRows(h)},C=function($,st,ft,At){const Ft=$[0].findAncestor("table"),jt=At.getColumnIndexes($),ae=At.getRowIndexes($),ce={firstColumn:jt.first,lastColumn:jt.last,firstRow:ae.first,lastRow:ae.last},ze=1===$.length;return ze&&(ce.lastRow+=st.height-1,ce.lastColumn+=st.width-1,function(Re,is,vn,Gi){const qn=Gi.getColumns(Re),Yn=Gi.getRows(Re);vn>qn&&Gi.insertColumns(Re,{at:qn,columns:vn-qn}),is>Yn&&Gi.insertRows(Re,{at:Yn,rows:is-Yn})}(Ft,ce.lastRow+1,ce.lastColumn+1,At)),ze||!At.isSelectionRectangular($)?function(Re,is,vn){const{firstRow:Gi,lastRow:qn,firstColumn:Yn,lastColumn:ir}=is,T0={first:Gi,last:qn},S0={first:Yn,last:ir};Sp(Re,Yn,T0,vn),Sp(Re,ir+1,T0,vn),Tp(Re,Gi,S0,vn),Tp(Re,qn+1,S0,vn,Gi)}(Ft,ce,ft):(ce.lastRow=Jk(Ft,ce),ce.lastColumn=$k(Ft,ce)),ce}(p,A,b,l),P=C.lastColumn-C.firstColumn+1,F={startRow:0,startColumn:0,endRow:Math.min(C.lastRow-C.firstRow+1,A.height)-1,endColumn:Math.min(P,A.width)-1};h=Hk(h,F,b);const j=p[0].findAncestor("table"),Y=this._replaceSelectedCellsWithPasted(h,A,j,C,b);if(this.editor.plugins.get("TableSelection").isEnabled){const $=l.sortRanges(Y.map(st=>b.createRangeOn(st)));b.setSelection($)}else b.setSelection(Y[0],0)})):Cp(h,l)}_replaceSelectedCellsWithPasted(t,e,n,s,l){const{width:h,height:p}=e,b=function($,st,ft){const At=new Array(ft).fill(null).map(()=>new Array(st).fill(null));for(const{column:Ft,row:jt,cell:ae}of new xe($))At[jt][Ft]=ae;return At}(t,h,p),A=[...new xe(n,{startRow:s.firstRow,endRow:s.lastRow,startColumn:s.firstColumn,endColumn:s.lastColumn,includeAllSlots:!0})],C=[];let E;for(const $ of A){const{row:st,column:ft}=$;ft===s.firstColumn&&(E=$.getPositionBefore());const jt=b[(st-s.firstRow)%p][(ft-s.firstColumn)%h],ae=jt?l.cloneElement(jt):null,ce=this._replaceTableSlotCell($,ae,E,l);ce&&(Kk(ce,st,ft,s.lastRow,s.lastColumn,l),C.push(ce),E=l.createPositionAfter(ce))}const P=parseInt(n.getAttribute("headingRows")||"0"),F=parseInt(n.getAttribute("headingColumns")||"0"),Y=s.firstColumnd0(l,h,e)).map(({cell:l})=>Wk(l,t,n))}function Sp(r,t,e,n){if(!(t<1))return Qk(r,t).filter(({row:s,cellHeight:l})=>d0(s,l,e)).map(({cell:s,column:l})=>Xk(s,l,t,n))}function d0(r,t,e){const n=r+t-1,{first:s,last:l}=e;return r>=s&&r<=l||r=s}class E2 extends Lt{static get pluginName(){return"TableKeyboard"}static get requires(){return[tr,si]}init(){const t=this.editor.editing.view.document;this.listenTo(t,"arrowKey",(...e)=>this._onArrowKey(...e),{context:"table"}),this.listenTo(t,"tab",(...e)=>this._handleTabOnSelectedTable(...e),{context:"figure"}),this.listenTo(t,"tab",(...e)=>this._handleTab(...e),{context:["th","td"]})}_handleTabOnSelectedTable(t,e){const n=this.editor,s=n.model.document.selection.getSelectedElement();s&&s.is("element","table")&&(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change(l=>{l.setSelection(l.createRangeIn(s.getChild(0).getChild(0)))}))}_handleTab(t,e){const n=this.editor,s=this.editor.plugins.get(si),l=this.editor.plugins.get("TableSelection"),p=!e.shiftKey;let b=s.getTableCellsContainingSelection(n.model.document.selection)[0];if(b||(b=l.getFocusCell()),!b)return;e.preventDefault(),e.stopPropagation(),t.stop();const A=b.parent,C=A.parent,E=C.getChildIndex(A),P=A.getChildIndex(b),F=0===P;if(!p&&F&&0===E)return void n.model.change(st=>{st.setSelection(st.createRangeOn(C))});const j=P===A.childCount-1,Y=E===s.getRows(C)-1;if(p&&Y&&j&&(n.execute("insertTableRowBelow"),E===s.getRows(C)-1))return void n.model.change(st=>{st.setSelection(st.createRangeOn(C))});let $;if(p&&j)$=C.getChild(E+1).getChild(0);else if(!p&&F){const st=C.getChild(E-1);$=st.getChild(st.childCount-1)}else $=A.getChild(P+(p?1:-1));n.model.change(st=>{st.setSelection(st.createRangeIn($))})}_onArrowKey(t,e){const s=Ns(e.keyCode,this.editor.locale.contentLanguageDirection);this._handleArrowKeys(s,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.plugins.get(si),s=this.editor.plugins.get("TableSelection"),l=this.editor.model,h=l.document.selection,p=["right","down"].includes(t),b=n.getSelectedTableCells(h);if(b.length){let C;return C=e?s.getFocusCell():p?b[b.length-1]:b[0],this._navigateFromCellInDirection(C,t,e),!0}const A=h.focus.findAncestor("tableCell");if(!A)return!1;if(!h.isCollapsed)if(e){if(h.isBackward==p&&!h.containsEntireContent(A))return!1}else{const C=h.getSelectedElement();if(!C||!l.schema.isObject(C))return!1}return!!this._isSelectionAtCellEdge(h,A,p)&&(this._navigateFromCellInDirection(A,t,e),!0)}_isSelectionAtCellEdge(t,e,n){const s=this.editor.model,l=this.editor.model.schema,h=n?t.getLastPosition():t.getFirstPosition();if(!l.getLimitElement(h).is("element","tableCell"))return s.createPositionAt(e,n?"end":0).isTouching(h);const p=s.createSelection(h);return s.modifySelection(p,{direction:n?"forward":"backward"}),h.isEqual(p.focus)}_navigateFromCellInDirection(t,e,n=!1){const s=this.editor.model,l=t.findAncestor("table"),h=[...new xe(l,{includeAllSlots:!0})],{row:p,column:b}=h[h.length-1],A=h.find(({cell:Y})=>Y==t);let{row:C,column:E}=A;switch(e){case"left":E--;break;case"up":C--;break;case"right":E+=A.cellWidth;break;case"down":C+=A.cellHeight}if(C<0||C>p||E<0&&C<=0||E>b&&C>=p)return void s.change(Y=>{Y.setSelection(Y.createRangeOn(l))});E<0?(E=n?0:b,C--):E>b&&(E=n?b:0,C++);const P=h.find(Y=>Y.row==C&&Y.column==E).cell,F=["right","down"].includes(e),j=this.editor.plugins.get("TableSelection");if(n&&j.isEnabled){const Y=j.getAnchorCell()||t;j.setCellSelection(Y,P)}else{const Y=s.createPositionAt(P,F?0:"end");s.change($=>{$.setSelection(Y)})}}}class T2 extends un{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(t){this.fire(t.type,t)}}class S2 extends Lt{static get pluginName(){return"TableMouse"}static get requires(){return[tr,si]}init(){this.editor.editing.view.addObserver(T2),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(si);let n=!1;const s=t.plugins.get(tr);this.listenTo(t.editing.view.document,"mousedown",(l,h)=>{const p=t.model.document.selection;if(!this.isEnabled||!s.isEnabled||!h.domEvent.shiftKey)return;const b=s.getAnchorCell()||e.getTableCellsContainingSelection(p)[0];if(!b)return;const A=this._getModelTableCellFromDomEvent(h);A&&h0(b,A)&&(n=!0,s.setCellSelection(b,A),h.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{n=!1}),this.listenTo(t.editing.view.document,"selectionChange",l=>{n&&l.stop()},{priority:"highest"})}_enableMouseDragSelection(){const t=this.editor;let e,n,s=!1,l=!1;const h=t.plugins.get(tr);this.listenTo(t.editing.view.document,"mousedown",(p,b)=>{this.isEnabled&&h.isEnabled&&(b.domEvent.shiftKey||b.domEvent.ctrlKey||b.domEvent.altKey||(e=this._getModelTableCellFromDomEvent(b)))}),this.listenTo(t.editing.view.document,"mousemove",(p,b)=>{if(!b.domEvent.buttons||!e)return;const A=this._getModelTableCellFromDomEvent(b);A&&h0(e,A)&&(n=A,s||n==e||(s=!0)),s&&(l=!0,h.setCellSelection(e,n),b.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{s=!1,l=!1,e=null,n=null}),this.listenTo(t.editing.view.document,"selectionChange",p=>{l&&p.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(t){const n=this.editor.editing.view.createPositionAt(t.target,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function h0(r,t){return r.parent.parent==t.parent.parent}var u0=lt(6306);function D2(r){const t=r.getSelectedElement();return t&&p0(t)?t:null}function M2(r){const t=r.getFirstPosition();if(!t)return null;let e=t.parent;for(;e;){if(e.is("element")&&p0(e))return e;e=e.parent}return null}function p0(r){return!!r.getCustomProperty("table")&&He(r)}Rt()(u0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var g0=lt(7368);Rt()(g0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var m0=lt(9247);Rt()(m0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var f0=lt(4070);Rt()(f0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var b0=lt(6237);Rt()(b0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var v0=lt(5087);Rt()(v0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var k0=lt(7341);Rt()(k0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var _0=lt(2128);Rt()(_0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var w0=lt(4101);Rt()(w0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Z2=Object.defineProperty,A0=Object.getOwnPropertySymbols,U2=Object.prototype.hasOwnProperty,j2=Object.prototype.propertyIsEnumerable,x0=(r,t,e)=>t in r?Z2(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,C0=(r,t)=>{for(var e in t||(t={}))U2.call(t,e)&&x0(r,e,t[e]);if(A0)for(var e of A0(t))j2.call(t,e)&&x0(r,e,t[e]);return r};const V2={autoRefresh:!0};class Ip extends(ne()){constructor(t,e={}){if(super(),!t)throw new W("token-missing-token-url",this);e.initValue&&this._validateTokenValue(e.initValue),this.set("value",e.initValue),this._refresh="function"==typeof t?t:()=>{return n=t,new Promise((s,l)=>{const h=new XMLHttpRequest;h.open("GET",n),h.addEventListener("load",()=>{const p=h.status,b=h.response;return p<200||p>299?l(new W("token-cannot-download-new-token",null)):s(b)}),h.addEventListener("error",()=>l(new Error("Network Error"))),h.addEventListener("abort",()=>l(new Error("Abort"))),h.send()});var n},this._options=C0(C0({},V2),e)}init(){return new Promise((t,e)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),t(this)):this.refreshToken().then(t).catch(e)})}refreshToken(){return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(t){const e="string"==typeof t,n=!/^".*"$/.test(t),s=e&&3===t.split(".").length;if(!n||!s)throw new W("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{const[,t]=this.value.split("."),{exp:e}=JSON.parse(atob(t));return e?Math.floor((1e3*e-Date.now())/2):36e5}catch{return 36e5}}static create(t,e={}){return new Ip(t,e).init()}}const Dp=/^data:(\S*?);base64,/;class q2 extends(ie()){constructor(t,e,n){if(super(),!t)throw new W("fileuploader-missing-file",null);if(!e)throw new W("fileuploader-missing-token",null);if(!n)throw new W("fileuploader-missing-api-address",null);this.file=function(s){if("string"!=typeof s)return!1;const l=s.match(Dp);return!(!l||!l.length)}(t)?function(s,l=512){try{const h=s.match(Dp)[1],p=atob(s.replace(Dp,"")),b=[];for(let A=0;At(n)),this}onError(t){return this.once("error",(e,n)=>t(n)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const t=new XMLHttpRequest;t.open("POST",this._apiAddress),t.setRequestHeader("Authorization",this._token.value),t.responseType="json",this.xhr=t}_attachXHRListeners(){const t=this.xhr,e=n=>()=>this.fire("error",n);t.addEventListener("error",e("Network Error")),t.addEventListener("abort",e("Abort")),t.upload&&t.upload.addEventListener("progress",n=>{n.lengthComputable&&this.fire("progress",{total:n.total,uploaded:n.loaded})}),t.addEventListener("load",()=>{const n=t.status,s=t.response;if(n<200||n>299)return this.fire("error",s.message||s.error)})}_sendRequest(){const t=new FormData,e=this.xhr;return t.append("file",this.file),new Promise((n,s)=>{e.addEventListener("load",()=>{const l=e.status,h=e.response;return l<200||l>299?s(h.message?new W("fileuploader-uploading-data-failed",this,{message:h.message}):h.error):n(h)}),e.addEventListener("error",()=>s(new Error("Network Error"))),e.addEventListener("abort",()=>s(new Error("Abort"))),e.send(t)})}}class Y2{constructor(t,e){if(!t)throw new W("uploadgateway-missing-token",null);if(!e)throw new W("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=e}upload(t){return new q2(t,this._token,this._apiAddress)}}class H2 extends Er{static get pluginName(){return"CloudServicesCore"}createToken(t,e){return new Ip(t,e)}createUploadGateway(t,e){return new Y2(t,e)}}var E0=(r,t,e)=>new Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class Mp extends Uc{}Mp.builtinPlugins=[class extends Lt{static get requires(){return[nb,Yc,yA,Q1,U1,db]}static get pluginName(){return"Essentials"}},class extends Lt{static get requires(){return[sn]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const r=this.editor.config.get("ckfinder.uploadUrl");r&&(this.editor.plugins.get(sn).createUploadAdapter=t=>new RA(t,r,this.editor.t))}},class extends Lt{static get requires(){return[Un]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const r=this.editor.commands;r.get("bulletedList")&&Ao(this.editor,this,/^[*-]\s$/,"bulletedList"),r.get("numberedList")&&Ao(this.editor,this,/^1[.|)]\s$/,"numberedList"),r.get("todoList")&&Ao(this.editor,this,/^\[\s?\]\s$/,"todoList"),r.get("checkTodoList")&&Ao(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const r=this.editor.commands;if(r.get("bold")){const t=Xc(this.editor,"bold");Kr(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),Kr(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(r.get("italic")){const t=Xc(this.editor,"italic");Kr(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,t),Kr(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,t)}if(r.get("code")){const t=Xc(this.editor,"code");Kr(this.editor,this,/(`)([^`]+)(`)$/g,t)}if(r.get("strikethrough")){const t=Xc(this.editor,"strikethrough");Kr(this.editor,this,/(~~)([^~]+)(~~)$/g,t)}}_addHeadingAutoformats(){const r=this.editor.commands.get("heading");r&&r.modelElements.filter(t=>t.match(/^heading[1-6]$/)).forEach(t=>{const n=new RegExp(`^(#{${t[7]}})\\s$`);Ao(this.editor,this,n,()=>{if(!r.isEnabled||r.value===t)return!1;this.editor.execute("heading",{value:t})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Ao(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const r=this.editor,t=r.model.document.selection;r.commands.get("codeBlock")&&Ao(r,this,/^```$/,()=>{if(t.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Ao(this.editor,this,/^---$/,"horizontalLine")}},class extends Lt{static get requires(){return[ZA,UA]}static get pluginName(){return"Bold"}},class extends Lt{static get requires(){return[VA,qA]}static get pluginName(){return"Italic"}},class extends Lt{static get requires(){return[HA,WA]}static get pluginName(){return"BlockQuote"}},class extends Lt{static get pluginName(){return"CKBox"}static get requires(){return[Ib,QA]}},class extends Lt{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",_x,vx]}},class extends Er{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[H2]}init(){return E0(this,null,function*(){const r=this.context.config.get("cloudServices")||{};for(const[e,n]of Object.entries(r))this[e]=n;if(!this.tokenUrl)return void(this.token=null);const t=this.context.plugins.get("CloudServicesCore");this.token=yield t.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(r){return E0(this,null,function*(){if(this._tokens.has(r))return this.getTokenFor(r);const t=this.context.plugins.get("CloudServicesCore"),e=yield t.createToken(r).init();return this._tokens.set(r,e),e})}getTokenFor(r){const t=this._tokens.get(r);if(!t)throw new W("cloudservices-token-not-registered",this);return t}destroy(){super.destroy();for(const r of this._tokens.values())r.destroy()}},class extends Lt{static get pluginName(){return"EasyImage"}static get requires(){return[wx,"ImageUpload"]}init(){const r=this.editor;r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||kt("easy-image-image-feature-missing",r)}},class extends Lt{static get requires(){return[Ex,Sx]}static get pluginName(){return"Heading"}},class extends Lt{static get requires(){return[Qx,Kx]}static get pluginName(){return"Image"}},class extends Lt{static get requires(){return[$x,tC]}static get pluginName(){return"ImageCaption"}},class extends Lt{static get requires(){return[Pv,xC]}static get pluginName(){return"ImageStyle"}},class extends Lt{static get requires(){return[Gc,Ci]}static get pluginName(){return"ImageToolbar"}afterInit(){const r=this.editor,t=r.t,e=r.plugins.get(Gc),n=r.plugins.get("ImageUtils");var s;e.register("image",{ariaLabel:t("Image toolbar"),items:(s=r.config.get("image.toolbar")||[],s.map(l=>te(l)?l.name:l)),getRelatedElement:l=>n.getClosestSelectedImageWidget(l)})}},class extends Lt{static get pluginName(){return"ImageUpload"}static get requires(){return[gC,nC,aC]}},class extends Lt{static get pluginName(){return"Indent"}static get requires(){return[CC,yC]}},class extends Lt{static get requires(){return[ik,ty,ey]}static get pluginName(){return"Link"}},class extends Lt{static get requires(){return[Cy,cy]}static get pluginName(){return"List"}},class extends Lt{static get requires(){return[id,Py,Dy,Ea]}static get pluginName(){return"MediaEmbed"}},ap,class extends Lt{static get pluginName(){return"PasteFromOffice"}static get requires(){return[fn]}init(){const r=this.editor,t=r.plugins.get("ClipboardPipeline"),e=r.editing.view.document,n=[];n.push(new jy(e)),n.push(new qy(e)),n.push(new Hy(e)),t.on("inputTransformation",(s,l)=>{if(l._isTransformedWithPasteFromOffice||r.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const h=l.dataTransfer.getData("text/html"),p=n.find(b=>b.isActive(h));p&&(l._parsedData||(l._parsedData=function Gy(r,t){const e=new DOMParser,n=Fk(Fk(function(b){const E=b.indexOf("");if(E<0)return b;const P=b.indexOf("",E+7);return b.substring(0,E+7)+(P>=0?b.substring(P):"")}(r=(r=r.replace(//g,""):p.getData("text/plain")&&(((A=(A=p.getData("text/plain")).replace(/&/g,"&").replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/\t/g,"    ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||A.includes("
"))&&(A=`

${A}

`),E=A),b=this.editor.data.htmlProcessor.toView(E)}var A;const C=new xt(this,"inputTransformation");this.fire(C,{content:b,dataTransfer:p,targetRanges:h.targetRanges,method:h.method}),C.stop.called&&l.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(l,h)=>{if(h.content.isEmpty)return;const p=this.editor.data.toModel(h.content,"$clipboardHolder");0!=p.childCount&&(l.stop(),e.change(()=>{this.fire("contentInsertion",{content:p,method:h.method,dataTransfer:h.dataTransfer,targetRanges:h.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(l,h)=>{h.resultRange=e.insertContent(h.content)},{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document,s=(l,h)=>{const p=h.dataTransfer;h.preventDefault(),this._fireOutputTransformationEvent(p,e.selection,l.name)};this.listenTo(n,"copy",s,{priority:"low"}),this.listenTo(n,"cut",(l,h)=>{t.model.canEditAt(t.model.document.selection)?s(l,h):h.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(l,h)=>{const p=t.data.toView(h.content);n.fire("clipboardOutput",{dataTransfer:h.dataTransfer,content:p,method:h.method})},{priority:"low"}),this.listenTo(n,"clipboardOutput",(l,h)=>{h.content.isEmpty||(h.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(h.content)),h.dataTransfer.setData("text/plain",ff(h.content))),"cut"==h.method&&t.model.deleteContent(e.selection)},{priority:"low"})}}class bf{constructor(t,e=20){this._batch=null,this.model=t,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(n,s)=>{s.isLocal&&s.isUndoable&&s!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(t){this._size+=t,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t=!1){this.isLocked&&!t||(this._batch=null,this._size=0)}}class z1 extends Jt{constructor(t,e){super(t),this._buffer=new bf(t.model,e),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,s=t.text||"",l=s.length;let h=n.selection;if(t.selection?h=t.selection:t.range&&(h=e.createSelection(t.range)),!e.canEditAt(h))return;const p=t.resultRange;e.enqueueChange(this._buffer.batch,b=>{this._buffer.lock();const A=Array.from(n.selection.getAttributes());e.deleteContent(h),s&&e.insertContent(b.createText(s,A),h),p?b.setSelection(p):h.is("documentSelection")||b.setSelection(h),this._buffer.unlock(),this._buffer.input(l)})}}const vf=["insertText","insertReplacementText"];class R1 extends Vi{constructor(t){super(t),this.focusObserver=t.getObserver(Vr),it.isAndroid&&vf.push("insertCompositionText");const e=t.document;e.on("beforeinput",(n,s)=>{if(!this.isEnabled)return;const{data:l,targetRanges:h,inputType:p,domEvent:b}=s;if(!vf.includes(p))return;this.focusObserver.flush();const A=new xt(e,"insertText");e.fire(A,new bo(t,b,{text:l,selection:t.createSelection(h)})),A.stop.called&&n.stop()}),e.on("compositionend",(n,{data:s,domEvent:l})=>{this.isEnabled&&!it.isAndroid&&s&&e.fire("insertText",new bo(t,l,{text:s,selection:e.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class kf extends Lt{static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,s=e.document.selection;n.addObserver(R1);const l=new z1(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",l),t.commands.add("input",l),this.listenTo(n.document,"insertText",(h,p)=>{n.document.isComposing||p.preventDefault();const{text:b,selection:A,resultRange:C}=p,E=Array.from(A.getRanges()).map(j=>t.editing.mapper.toModelRange(j));let P=b;if(it.isAndroid){const j=Array.from(E[0].getItems()).reduce((Y,$)=>Y+($.is("$textProxy")?$.data:""),"");j&&(j.length<=P.length?P.startsWith(j)&&(P=P.substring(j.length),E[0].start=E[0].start.getShiftedBy(j.length)):j.startsWith(P)&&(E[0].start=E[0].start.getShiftedBy(P.length),P=""))}const F={text:P,selection:e.createSelection(E)};C&&(F.resultRange=t.editing.mapper.toModelRange(C)),t.execute("insertText",F),n.scrollToTheSelection()}),it.isAndroid?this.listenTo(n.document,"keydown",(h,p)=>{!s.isCollapsed&&229==p.keyCode&&n.document.isComposing&&_f(e,l)}):this.listenTo(n.document,"compositionstart",()=>{s.isCollapsed||_f(e,l)})}}function _f(r,t){if(!t.isEnabled)return;const e=t.buffer;e.lock(),r.enqueueChange(e.batch,()=>{r.deleteContent(r.document.selection)}),e.unlock()}class wf extends Jt{constructor(t,e){super(t),this.direction=e,this._buffer=new bf(t.model,t.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,s=>{this._buffer.lock();const l=s.createSelection(t.selection||n.selection);if(!e.canEditAt(l))return;const h=t.sequence||1,p=l.isCollapsed;if(l.isCollapsed&&e.modifySelection(l,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(h))return void this._replaceEntireContentWithParagraph(s);if(this._shouldReplaceFirstBlockWithParagraph(l,h))return void this.editor.execute("paragraph",{selection:l});if(l.isCollapsed)return;let b=0;l.getFirstRange().getMinimalFlatRanges().forEach(A=>{b+=yo(A.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),e.deleteContent(l,{doNotResetEntireContent:p,direction:this.direction}),this._buffer.input(b),s.setSelection(l),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,s=e.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(s)||!e.schema.checkChild(s,"paragraph"))return!1;const l=s.getChild(0);return!l||!l.is("element","paragraph")}_replaceEntireContentWithParagraph(t){const e=this.editor.model,s=e.schema.getLimitElement(e.document.selection),l=t.createElement("paragraph");t.remove(t.createRangeIn(s)),t.insert(l,s),t.setSelection(l,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||"backward"!=this.direction||!t.isCollapsed)return!1;const s=t.getFirstPosition(),l=n.schema.getLimitElement(s),h=l.getChild(0);return s.parent==h&&!!t.containsEntireContent(h)&&!!n.schema.checkChild(l,"paragraph")&&"paragraph"!=h.name}}const _o="selection",Qr="backward",xa="forward",xf={deleteContent:{unit:_o,direction:Qr},deleteContentBackward:{unit:"codePoint",direction:Qr},deleteWordBackward:{unit:"word",direction:Qr},deleteHardLineBackward:{unit:_o,direction:Qr},deleteSoftLineBackward:{unit:_o,direction:Qr},deleteContentForward:{unit:"character",direction:xa},deleteWordForward:{unit:"word",direction:xa},deleteHardLineForward:{unit:_o,direction:xa},deleteSoftLineForward:{unit:_o,direction:xa}};class Z1 extends Vi{constructor(t){super(t);const e=t.document;let n=0;e.on("keydown",()=>{n++}),e.on("keyup",()=>{n=0}),e.on("beforeinput",(s,l)=>{if(!this.isEnabled)return;const{targetRanges:h,domEvent:p,inputType:b}=l,A=xf[b];if(!A)return;const C={direction:A.direction,unit:A.unit,sequence:n};C.unit==_o&&(C.selectionToRemove=t.createSelection(h[0])),"deleteContentBackward"===b&&(it.isAndroid&&(C.sequence=1),function(P){if(1!=P.length||P[0].isCollapsed)return!1;const F=P[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let j=0;for(const{nextPosition:Y}of F){if(Y.parent.is("$text")){const $=Y.parent.data,st=Y.offset;if(Fs($,st)||zs($,st)||bl($,st))continue;j++}else j++;if(j>1)return!0}return!1}(h)&&(C.unit=_o,C.selectionToRemove=t.createSelection(h)));const E=new go(e,"delete",h[0]);e.fire(E,new bo(t,p,C)),E.stop.called&&s.stop()}),it.isBlink&&function(s){const l=s.view,h=l.document;let p=null,b=!1;function A(E){return E==se.backspace||E==se.delete}function C(E){return E==se.backspace?Qr:xa}h.on("keydown",(E,{keyCode:P})=>{p=P,b=!1}),h.on("keyup",(E,{keyCode:P,domEvent:F})=>{const j=h.selection,Y=s.isEnabled&&P==p&&A(P)&&!j.isCollapsed&&!b;if(p=null,Y){const $=j.getFirstRange(),st=new go(h,"delete",$),ft={unit:_o,direction:C(P),selectionToRemove:j};h.fire(st,new bo(l,F,ft))}}),h.on("beforeinput",(E,{inputType:P})=>{const F=xf[P];A(p)&&F&&F.direction==C(p)&&(b=!0)},{priority:"high"}),h.on("beforeinput",(E,{inputType:P,data:F})=>{p==se.delete&&"insertText"==P&&"\x7f"==F&&E.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class Un extends Lt{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,s=t.model.document;e.addObserver(Z1),this._undoOnBackspace=!1;const l=new wf(t,"forward");t.commands.add("deleteForward",l),t.commands.add("forwardDelete",l),t.commands.add("delete",new wf(t,"backward")),this.listenTo(n,"delete",(h,p)=>{n.isComposing||p.preventDefault();const{direction:b,sequence:A,selectionToRemove:C,unit:E}=p,P="forward"===b?"deleteForward":"delete",F={sequence:A};if("selection"==E){const j=Array.from(C.getRanges()).map(Y=>t.editing.mapper.toModelRange(Y));F.selection=t.model.createSelection(j)}else F.unit=E;t.execute(P,F),e.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(h,p)=>{this._undoOnBackspace&&"backward"==p.direction&&1==p.sequence&&"codePoint"==p.unit&&(this._undoOnBackspace=!1,t.execute("undo"),p.preventDefault(),h.stop())},{context:"$capture"}),this.listenTo(s,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class U1 extends Lt{static get requires(){return[kf,Un]}static get pluginName(){return"Typing"}}function Cf(r,t){let e=r.start;return{text:Array.from(r.getWalker({ignoreElementEnd:!1})).reduce((n,{item:s})=>s.is("$text")||s.is("$textProxy")?n+s.data:(e=t.createPositionAfter(s),""),""),range:t.createRange(e,r.end)}}class yf extends(ne()){constructor(t,e){super(),this.model=t,this.testCallback=e,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",(e,{directChange:n})=>{n&&(t.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(t,"change:data",(e,n)=>{!n.isUndo&&n.isLocal&&this._evaluateTextBeforeSelection("data",{batch:n})})}_evaluateTextBeforeSelection(t,e={}){const n=this.model,s=n.document.selection,l=n.createRange(n.createPositionAt(s.focus.parent,0),s.focus),{text:h,range:p}=Cf(l,n),b=this.testCallback(h);if(!b&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!b,b){const A=Object.assign(e,{text:h,range:p});"object"==typeof b&&Object.assign(A,b),this.fire(`matched:${t}`,A)}}}class Ef extends Lt{constructor(t){super(t),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const t=this.editor,s=t.locale,l=t.model.document.selection;this.listenTo(t.editing.view.document,"arrowKey",(h,p)=>{if(!l.isCollapsed||p.shiftKey||p.altKey||p.ctrlKey)return;const b=p.keyCode==se.arrowright,A=p.keyCode==se.arrowleft;if(!b&&!A)return;const C=s.contentLanguageDirection;let E=!1;E="ltr"===C&&b||"rtl"===C&&A?this._handleForwardMovement(p):this._handleBackwardMovement(p),!0===E&&h.stop()},{context:"$text",priority:"highest"}),this.listenTo(l,"change:range",(h,p)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!p.directChange&&Yi(l.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model,s=n.document.selection,l=s.getFirstPosition();return!(this._isGravityOverridden||l.isAtStart&&jn(s,e)||!Yi(l,e)||(ya(t),jn(s,e)&&Yi(l,e,!0)?Ca(n,e):this._overrideGravity(),0))}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,s=n.document.selection,l=s.getFirstPosition();return this._isGravityOverridden?(ya(t),this._restoreGravity(),Yi(l,e,!0)?Ca(n,e):Vc(n,e,l),!0):l.isAtStart?!!jn(s,e)&&(ya(t),Vc(n,e,l),!0):!jn(s,e)&&Yi(l,e,!0)?(ya(t),Vc(n,e,l),!0):!!Tf(l,e)&&(l.isAtEnd&&!jn(s,e)&&Yi(l,e)?(ya(t),Vc(n,e,l),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,s=t.editing.view.document;t.editing.view.addObserver(Mu);let l=!1;this.listenTo(s,"mousedown",()=>{l=!0}),this.listenTo(s,"selectionChange",()=>{const h=this.attributes;if(!l||(l=!1,!n.isCollapsed)||!jn(n,h))return;const p=n.getFirstPosition();Yi(p,h)&&(p.isAtStart||Yi(p,h,!0)?Ca(e,h):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection,n=this.attributes;this.listenTo(t,"insertContent",()=>{const s=e.getFirstPosition();jn(e,n)&&Yi(s,n)&&Ca(t,n)},{priority:"low"})}_handleDeleteContentAfterNode(){const t=this.editor,e=t.model,n=e.document.selection;let l=!1,h=!1;this.listenTo(t.editing.view.document,"delete",(p,b)=>{l="backward"===b.direction},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{if(!l)return;const p=n.getFirstPosition();h=jn(n,this.attributes)&&!Tf(p,this.attributes)},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{l&&(l=!1,h||t.model.enqueueChange(()=>{const p=n.getFirstPosition();jn(n,this.attributes)&&Yi(p,this.attributes)&&(p.isAtStart||Yi(p,this.attributes,!0)?Ca(e,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(t=>t.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function jn(r,t){for(const e of t)if(r.hasAttribute(e))return!0;return!1}function Vc(r,t,e){const n=e.nodeBefore;r.change(s=>{if(n){const l=[],h=r.schema.isObject(n)&&r.schema.isInline(n);for(const[p,b]of n.getAttributes())!r.schema.checkAttribute("$text",p)||h&&!1===r.schema.getAttributeProperties(p).copyFromObject||l.push([p,b]);s.setSelectionAttribute(l)}else s.removeSelectionAttribute(t)})}function Ca(r,t){r.change(e=>{e.removeSelectionAttribute(t)})}function ya(r){r.preventDefault()}function Tf(r,t){return Yi(r.getShiftedBy(-1),t)}function Yi(r,t,e=!1){const{nodeBefore:n,nodeAfter:s}=r;for(const l of t){const h=n?n.getAttribute(l):void 0,p=s?s.getAttribute(l):void 0;if((!e||void 0!==h&&void 0!==p)&&p!==h)return!0}return!1}const Sf={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:Xr('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:Xr("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:Xr("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:Xr('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:Xr('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:Xr("'"),to:[null,"\u201a",null,"\u2019"]}},If={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},j1=["symbols","mathematical","typography","quotes"];function V1(r){return"string"==typeof r?new RegExp(`(${Qm(r)})$`):r}function q1(r){return"string"==typeof r?()=>[r]:r instanceof Array?()=>r:r}function Y1(r){return(r.textNode?r.textNode:r.nodeAfter).getAttributes()}function Xr(r){return new RegExp(`(^|\\s)(${r})([^${r}]*)(${r})$`)}function qc(r,t,e,n){return n.createRange(Df(r,t,e,!0,n),Df(r,t,e,!1,n))}function Df(r,t,e,n,s){let l=r.textNode||(n?r.nodeBefore:r.nodeAfter),h=null;for(;l&&l.getAttribute(t)==e;)h=l,l=n?l.previousSibling:l.nextSibling;return h?s.createPositionAt(h,n?"before":"after"):r}function*Mf(r,t){for(const e of t)e&&r.getAttributeProperties(e[0]).copyOnEnter&&(yield e)}class H1 extends Jt{execute(){this.editor.model.change(t=>{this.enterBlock(t),this.fire("afterExecute",{writer:t})})}enterBlock(t){const e=this.editor.model,n=e.document.selection,s=e.schema,l=n.isCollapsed,h=n.getFirstRange(),p=h.start.parent,b=h.end.parent;if(s.isLimit(p)||s.isLimit(b))return l||p!=b||e.deleteContent(n),!1;if(l){const A=Mf(t.model.schema,n.getAttributes());return Lf(t,h.start),t.setSelectionAttribute(A),!0}{const A=!(h.start.isAtStart&&h.end.isAtEnd),C=p==b;if(e.deleteContent(n,{leaveUnmerged:A}),A){if(C)return Lf(t,n.focus),!0;t.setSelection(b,0)}}return!1}}function Lf(r,t){r.split(t),r.setSelection(t.parent.nextSibling,0)}const G1={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class Pf extends Vi{constructor(t){super(t);const e=this.document;let n=!1;e.on("keydown",(s,l)=>{n=l.shiftKey}),e.on("beforeinput",(s,l)=>{if(!this.isEnabled)return;let h=l.inputType;it.isSafari&&n&&"insertParagraph"==h&&(h="insertLineBreak");const p=l.domEvent,b=G1[h];if(!b)return;const A=new go(e,"enter",l.targetRanges[0]);e.fire(A,new bo(t,p,{isSoft:b.isSoft})),A.stop.called&&s.stop()})}observe(){}stopObserving(){}}class Yc extends Lt{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(Pf),t.commands.add("enter",new H1(t)),this.listenTo(n,"enter",(s,l)=>{n.isComposing||l.preventDefault(),l.isSoft||(t.execute("enter"),e.scrollToTheSelection())},{priority:"low"})}}class W1 extends Jt{execute(){const t=this.editor.model,e=t.document;t.change(n=>{(function(s,l,h){const p=h.isCollapsed,b=h.getFirstRange(),C=b.end.parent,E=b.start.parent==C;if(p){const P=Mf(s.schema,h.getAttributes());Nf(s,l,b.end),l.removeSelectionAttribute(h.getAttributeKeys()),l.setSelectionAttribute(P)}else{const P=!(b.start.isAtStart&&b.end.isAtEnd);s.deleteContent(h,{leaveUnmerged:P}),E?Nf(s,l,h.focus):P&&l.setSelection(C,0)}})(t,n,e.selection),this.fire("afterExecute",{writer:n})})}refresh(){const t=this.editor.model;this.isEnabled=function(n,s){if(s.rangeCount>1)return!1;const l=s.anchor;if(!l||!n.checkChild(l,"softBreak"))return!1;const h=s.getFirstRange(),p=h.start.parent,b=h.end.parent;return!((Xu(p,n)||Xu(b,n))&&p!==b)}(t.schema,t.document.selection)}}function Nf(r,t,e){const n=t.createElement("softBreak");r.insertContent(n,e),t.setSelection(n,"after")}function Xu(r,t){return!r.is("rootElement")&&(t.isLimit(r)||Xu(r.parent,t))}class Q1 extends Lt{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,n=t.conversion,s=t.editing.view,l=s.document;t.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(h,{writer:p})=>p.createEmptyElement("br")}),s.addObserver(Pf),t.commands.add("shiftEnter",new W1(t)),this.listenTo(l,"enter",(h,p)=>{l.isComposing||p.preventDefault(),p.isSoft&&(t.execute("shiftEnter"),s.scrollToTheSelection())},{priority:"low"})}}class X1 extends(ie()){constructor(){super(...arguments),this._stack=[]}add(t,e){const n=this._stack,s=n[0];this._insertDescriptor(t);const l=n[0];s===l||Ku(s,l)||this.fire("change:top",{oldDescriptor:s,newDescriptor:l,writer:e})}remove(t,e){const n=this._stack,s=n[0];this._removeDescriptor(t);const l=n[0];s===l||Ku(s,l)||this.fire("change:top",{oldDescriptor:s,newDescriptor:l,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex(l=>l.id===t.id);if(Ku(t,e[n]))return;n>-1&&e.splice(n,1);let s=0;for(;e[s]&&K1(e[s],t);)s++;e.splice(s,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex(s=>s.id===t);n>-1&&e.splice(n,1)}}function Ku(r,t){return r&&t&&r.priority==t.priority&&Hc(r.classes)==Hc(t.classes)}function K1(r,t){return r.priority>t.priority||!(r.priorityHc(t.classes)}function Hc(r){return Array.isArray(r)?r.sort().join(","):r}const J1='',$1="ck-widget",Of="ck-widget_selected";function He(r){return!!r.is("element")&&!!r.getCustomProperty("widget")}function Ju(r,t,e={}){if(!r.is("containerElement"))throw new W("widget-to-widget-wrong-element-type",null,{element:r});return t.setAttribute("contenteditable","false",r),t.addClass($1,r),t.setCustomProperty("widget",!0,r),r.getFillerOffset=iA,t.setCustomProperty("widgetLabel",[],r),e.label&&(s=e.label,r.getCustomProperty("widgetLabel").push(s)),e.hasSelectionHandle&&function(n,s){const l=s.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(h){const p=this.toDomElement(h),b=new Dn;return b.set("content",J1),b.render(),p.appendChild(b.element),p});s.insert(s.createPositionAt(n,0),l),s.addClass(["ck-widget_with-selection-handle"],n)}(r,t),Bf(r,t),r;var s}function tA(r,t,e){if(t.classes&&e.addClass(Ze(t.classes),r),t.attributes)for(const n in t.attributes)e.setAttribute(n,t.attributes[n],r)}function eA(r,t,e){if(t.classes&&e.removeClass(Ze(t.classes),r),t.attributes)for(const n in t.attributes)e.removeAttribute(n,r)}function Bf(r,t,e=tA,n=eA){const s=new X1;s.on("change:top",(l,h)=>{h.oldDescriptor&&n(r,h.oldDescriptor,h.writer),h.newDescriptor&&e(r,h.newDescriptor,h.writer)}),t.setCustomProperty("addHighlight",(l,h,p)=>s.add(h,p),r),t.setCustomProperty("removeHighlight",(l,h,p)=>s.remove(h,p),r)}function Ff(r,t,e={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],r),t.setAttribute("role","textbox",r),e.label&&t.setAttribute("aria-label",e.label,r),t.setAttribute("contenteditable",r.isReadOnly?"false":"true",r),r.on("change:isReadOnly",(n,s,l)=>{t.setAttribute("contenteditable",l?"false":"true",r)}),r.on("change:isFocused",(n,s,l)=>{l?t.addClass("ck-editor__nested-editable_focused",r):t.removeClass("ck-editor__nested-editable_focused",r)}),Bf(r,t),r}function zf(r,t){const e=r.getSelectedElement();if(e){const n=wo(r);if(n)return t.createRange(t.createPositionAt(e,n))}return tm(r,t)}function iA(){return null}const Vn="widget-type-around";function Jo(r,t,e){return!!r&&He(r)&&!e.isInline(t)}function wo(r){return r.getAttribute(Vn)}var Rf=lt(4921);Rt()(Rf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Zf=["before","after"],oA=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,Uf="ck-widget__type-around_disabled";class rA extends Lt{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Yc,Un]}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",(n,s,l)=>{e.change(h=>{for(const p of e.document.roots)l?h.removeClass(Uf,p):h.addClass(Uf,p)}),l||t.model.change(h=>{h.removeSelectionAttribute(Vn)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,s=n.editing.view,l=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:l}),s.focus(),s.scrollToTheSelection()}_listenToIfEnabled(t,e,n,s){this.listenTo(t,e,(...l)=>{this.isEnabled&&n(...l)},s)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=wo(t);if(!e)return!1;const n=t.getSelectedElement();return this._insertParagraph(n,e),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,s={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",(l,h,p)=>{const b=p.mapper.toViewElement(h.item);b&&Jo(b,h.item,e)&&(function(A,C,E){const P=A.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(F){const j=this.toDomElement(F);return function(Y,$){for(const st of Zf){const ft=new Ei({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${st}`],title:$[st],"aria-hidden":"true"},children:[Y.ownerDocument.importNode(oA,!0)]});Y.appendChild(ft.render())}}(j,C),function(Y){const $=new Ei({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Y.appendChild($.render())}(j),j});A.insert(A.createPositionAt(E,"end"),P)}(p.writer,s,b),b.getCustomProperty("widgetLabel").push(()=>this.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,s=e.schema;function h(p){return`ck-widget_type-around_show-fake-caret_${p}`}this._listenToIfEnabled(t.editing.view.document,"arrowKey",(p,b)=>{this._handleArrowKeyPress(p,b)},{context:[He,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",(p,b)=>{b.directChange&&t.model.change(A=>{A.removeSelectionAttribute(Vn)})}),this._listenToIfEnabled(e.document,"change:data",()=>{const p=n.getSelectedElement();p&&Jo(t.editing.mapper.toViewElement(p),p,s)||t.model.change(b=>{b.removeSelectionAttribute(Vn)})}),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(p,b,A)=>{const C=A.writer;if(this._currentFakeCaretModelElement){const j=A.mapper.toViewElement(this._currentFakeCaretModelElement);j&&(C.removeClass(Zf.map(h),j),this._currentFakeCaretModelElement=null)}const E=b.selection.getSelectedElement();if(!E)return;const P=A.mapper.toViewElement(E);if(!Jo(P,E,s))return;const F=wo(b.selection);F&&(C.addClass(h(F),P),this._currentFakeCaretModelElement=E)}),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(p,b,A)=>{A||t.model.change(C=>{C.removeSelectionAttribute(Vn)})})}_handleArrowKeyPress(t,e){const n=this.editor,s=n.model,l=s.document.selection,h=s.schema,p=n.editing.view,b=function(E,P){const F=Ns(E,P);return"down"===F||"right"===F}(e.keyCode,n.locale.contentLanguageDirection),A=p.document.selection.getSelectedElement();let C;Jo(A,n.editing.mapper.toModelElement(A),h)?C=this._handleArrowKeyPressOnSelectedWidget(b):l.isCollapsed?C=this._handleArrowKeyPressWhenSelectionNextToAWidget(b):e.shiftKey||(C=this._handleArrowKeyPressWhenNonCollapsedSelection(b)),C&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=wo(e.document.selection);return e.change(s=>n?n!==(t?"after":"before")&&(s.removeSelectionAttribute(Vn),!0):(s.setSelectionAttribute(Vn,t?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,s=n.schema,l=e.plugins.get("Widget"),h=l._getObjectElementNextToSelection(t);return!!Jo(e.editing.mapper.toViewElement(h),h,s)&&(n.change(p=>{l._setSelectionOverElement(h),p.setSelectionAttribute(Vn,t?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,s=n.schema,l=e.editing.mapper,h=n.document.selection,p=t?h.getLastPosition().nodeBefore:h.getFirstPosition().nodeAfter;return!!Jo(l.toViewElement(p),p,s)&&(n.change(b=>{b.setSelection(p,"on"),b.setSelectionAttribute(Vn,t?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",(n,s)=>{const l=s.domTarget.closest(".ck-widget__type-around__button");if(!l)return;const h=l.classList.contains("ck-widget__type-around__button_before")?"before":"after",p=function(A,C){const E=A.closest(".ck-widget");return C.mapDomToView(E)}(l,e.domConverter),b=t.editing.mapper.toModelElement(p);this._insertParagraph(b,h),s.preventDefault(),n.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection;this._listenToIfEnabled(t.editing.view.document,"enter",(s,l)=>{if("atTarget"!=s.eventPhase)return;const h=e.getSelectedElement(),p=t.editing.mapper.toViewElement(h),b=t.model.schema;let A;this._insertParagraphAccordingToFakeCaretPosition()?A=!0:Jo(p,h,b)&&(this._insertParagraph(h,l.isSoft?"before":"after"),A=!0),A&&(l.preventDefault(),s.stop())},{context:He})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(e,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection)},{priority:"high"}),it.isAndroid?this._listenToIfEnabled(t,"keydown",(e,n)=>{229==n.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(t,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,n=t.model,s=n.schema;this._listenToIfEnabled(t.editing.view.document,"delete",(l,h)=>{if("atTarget"!=l.eventPhase)return;const p=wo(n.document.selection);if(!p)return;const b=h.direction,A=n.document.selection.getSelectedElement(),C="forward"==b;if("before"===p===C)t.execute("delete",{selection:n.createSelection(A,"on")});else{const E=s.getNearestSelectionRange(n.createPositionAt(A,p),b);if(E)if(E.isCollapsed){const P=n.createSelection(E.start);if(n.modifySelection(P,{direction:b}),P.focus.isEqual(E.start)){const F=function(j,Y){let $=Y;for(const st of Y.getAncestors({parentFirst:!0})){if(st.childCount>1||j.isLimit(st))break;$=st}return $}(s,E.start.parent);n.deleteContent(n.createSelection(F,"on"),{doNotAutoparagraph:!0})}else n.change(F=>{F.setSelection(E),t.execute(C?"deleteForward":"delete")})}else n.change(P=>{P.setSelection(E),t.execute(C?"deleteForward":"delete")})}h.preventDefault(),l.stop()},{context:He})}_enableInsertContentIntegration(){const e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(s,[l,h])=>{if(h&&!h.is("documentSelection"))return;const p=wo(n);return p?(s.stop(),e.change(b=>{const A=n.getSelectedElement(),C=e.createPositionAt(A,p),E=b.createSelection(C),P=e.insertContent(l,E);return b.setSelection(E),P})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(n,s)=>{const[,l,h={}]=s;if(l&&!l.is("documentSelection"))return;const p=wo(e);p&&(h.findOptimalPosition=p,s[3]=h)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"deleteContent",(n,[s])=>{s&&!s.is("documentSelection")||wo(e)&&n.stop()},{priority:"high"})}}function jf(r,t,e){const n=r.schema,s=r.createRangeIn(t.root),l="forward"==e?"elementStart":"elementEnd";for(const{previousPosition:h,item:p,type:b}of s.getWalker({startPosition:t,direction:e})){if(n.isLimit(p)&&!n.isInline(p))return h;if(b==l&&n.isBlock(p))return null}return null}function Vf(r,t,e){const n="backward"==e?t.end:t.start;if(r.checkChild(n,"$text"))return n;for(const{nextPosition:s}of t.getWalker({direction:e}))if(r.checkChild(s,"$text"))return s;return null}var qf=lt(3488);Rt()(qf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ea extends Lt{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[rA,Un]}init(){const t=this.editor,e=t.editing.view,n=e.document;this.editor.editing.downcastDispatcher.on("selection",(s,l,h)=>{const p=h.writer,b=l.selection;if(b.isCollapsed)return;const A=b.getSelectedElement();if(!A)return;const C=t.editing.mapper.toViewElement(A);var E;He(C)&&h.consumable.consume(b,"selection")&&p.setSelection(p.createRangeOn(C),{fake:!0,label:(E=C,E.getCustomProperty("widgetLabel").reduce((P,F)=>"function"==typeof F?P?P+". "+F():F():P?P+". "+F:F,""))})}),this.editor.editing.downcastDispatcher.on("selection",(s,l,h)=>{this._clearPreviouslySelectedWidgets(h.writer);const p=h.writer,b=p.document.selection;let A=null;for(const C of b.getRanges())for(const E of C){const P=E.item;He(P)&&!lA(P,A)&&(p.addClass(Of,P),this._previouslySelected.add(P),A=P)}},{priority:"low"}),e.addObserver(Mu),this.listenTo(n,"mousedown",(...s)=>this._onMousedown(...s)),this.listenTo(n,"arrowKey",(...s)=>{this._handleSelectionChangeOnArrowKeyPress(...s)},{context:[He,"$text"]}),this.listenTo(n,"arrowKey",(...s)=>{this._preventDefaultOnArrowKeyPress(...s)},{context:"$root"}),this.listenTo(n,"arrowKey",function sA(r){const t=r.model;return(e,n)=>{const l=n.keyCode==se.arrowdown,h=n.shiftKey,p=t.document.selection;if(n.keyCode!=se.arrowup&&!l)return;const b=l;if(h&&!(C=p).isCollapsed&&C.isBackward==b)return;var C;const A=function(C,E,P){const F=C.model;if(P){const j=E.isCollapsed?E.focus:E.getLastPosition(),Y=jf(F,j,"forward");if(!Y)return null;const $=F.createRange(j,Y),st=Vf(F.schema,$,"backward");return st?F.createRange(j,st):null}{const j=E.isCollapsed?E.focus:E.getFirstPosition(),Y=jf(F,j,"backward");if(!Y)return null;const $=F.createRange(Y,j),st=Vf(F.schema,$,"forward");return st?F.createRange(st,j):null}}(r,p,b);if(A){if(A.isCollapsed&&(p.isCollapsed||h))return;(A.isCollapsed||function(C,E,P){const F=C.model,j=C.view.domConverter;if(P){const At=F.createSelection(E.start);F.modifySelection(At),At.focus.isAtEnd||E.start.isEqual(At.focus)||(E=F.createRange(At.focus,E.end))}const Y=C.mapper.toViewRange(E),$=j.viewRangeToDom(Y),st=le.getDomRangeRects($);let ft;for(const At of st)if(void 0!==ft){if(Math.round(At.top)>=ft)return!1;ft=Math.max(ft,Math.round(At.bottom))}else ft=Math.round(At.bottom);return!0}(r,A,b))&&(t.change(C=>{const E=b?A.end:A.start;if(h){const P=t.createSelection(p.anchor);P.setFocus(E),C.setSelection(P)}else C.setSelection(E)}),e.stop(),n.preventDefault(),n.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",(s,l)=>{this._handleDelete("forward"==l.direction)&&(l.preventDefault(),s.stop())},{context:"$root"})}_onMousedown(t,e){const n=this.editor,s=n.editing.view,l=s.document;let h=e.target;if(e.domEvent.detail>=3)return void(this._selectBlockContent(h)&&e.preventDefault());if(function(b){let A=b;for(;A;){if(A.is("editableElement")&&!A.is("rootElement"))return!0;if(He(A))return!1;A=A.parent}return!1}(h)||!He(h)&&(h=h.findAncestor(He),!h))return;it.isAndroid&&e.preventDefault(),l.isFocused||s.focus();const p=n.editing.mapper.toModelElement(h);this._setSelectionOverElement(p)}_selectBlockContent(t){const e=this.editor,n=e.model,s=e.editing.mapper,l=n.schema,h=s.findMappedViewAncestor(this.editor.editing.view.createPositionAt(t,0)),p=function(b,A){for(const C of b.getAncestors({includeSelf:!0,parentFirst:!0})){if(A.checkChild(C,"$text"))return C;if(A.isLimit(C)&&!A.isObject(C))break}return null}(s.toModelElement(h),n.schema);return!!p&&(n.change(b=>{const A=l.isLimit(p)?null:function(P,F){const j=new Li({startPosition:P});for(const{item:Y}of j){if(F.isLimit(Y)||!Y.is("element"))return null;if(F.checkChild(Y,"$text"))return Y}return null}(b.createPositionAfter(p),l),C=b.createPositionAt(p,0),E=A?b.createPositionAt(A,0):b.createPositionAt(p,"end");b.setSelection(b.createRange(C,E))}),!0)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,s=this.editor.model,l=s.schema,h=s.document.selection,p=h.getSelectedElement(),b=Ns(n,this.editor.locale.contentLanguageDirection),A="down"==b||"right"==b,C="up"==b||"down"==b;if(p&&l.isObject(p)){const P=A?h.getLastPosition():h.getFirstPosition(),F=l.getNearestSelectionRange(P,A?"forward":"backward");return void(F&&(s.change(j=>{j.setSelection(F)}),e.preventDefault(),t.stop()))}if(!h.isCollapsed&&!e.shiftKey){const P=h.getFirstPosition(),F=h.getLastPosition(),j=P.nodeAfter,Y=F.nodeBefore;return void((j&&l.isObject(j)||Y&&l.isObject(Y))&&(s.change($=>{$.setSelection(A?F:P)}),e.preventDefault(),t.stop()))}if(!h.isCollapsed)return;const E=this._getObjectElementNextToSelection(A);if(E&&l.isObject(E)){if(l.isInline(E)&&C)return;this._setSelectionOverElement(E),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,s=n.schema,l=n.document.selection.getSelectedElement();l&&s.isObject(l)&&(e.preventDefault(),t.stop())}_handleDelete(t){const e=this.editor.model.document.selection;if(!this.editor.model.canEditAt(e)||!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change(s=>{let l=e.anchor.parent;for(;l.isEmpty;){const h=l;l=h.parent,s.remove(h)}this._setSelectionOverElement(n)}),!0):void 0}_setSelectionOverElement(t){this.editor.model.change(e=>{e.setSelection(e.createRangeOn(t))})}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,s=e.document.selection,l=e.createSelection(s);if(e.modifySelection(l,{direction:t?"forward":"backward"}),l.isEqual(s))return null;const h=t?l.focus.nodeBefore:l.focus.nodeAfter;return h&&n.isObject(h)?h:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(Of,e);this._previouslySelected.clear()}}function lA(r,t){return!!t&&Array.from(r.getAncestors()).includes(t)}class Gc extends Lt{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[Rc]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",n=>{(function(s){const l=s.getSelectedElement();return!(!l||!He(l))})(t.editing.view.document.selection)&&n.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:s,balloonClassName:l="ck-toolbar-container"}){if(!n.length)return void kt("widget-toolbar-no-items",{toolbarId:t});const h=this.editor,p=h.t,b=new Pu(h.locale);if(b.ariaLabel=e||p("Widget toolbar"),this._toolbarDefinitions.has(t))throw new W("widget-toolbar-duplicated",this,{toolbarId:t});const A={view:b,getRelatedElement:s,balloonClassName:l,itemsConfig:n,initialized:!1};h.ui.addToolbar(b,{isContextual:!0,beforeFocus:()=>{const C=s(h.editing.view.document.selection);C&&this._showToolbar(A,C)},afterBlur:()=>{this._hideToolbar(A)}}),this._toolbarDefinitions.set(t,A)}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const s of this._toolbarDefinitions.values()){const l=s.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&l)if(this.editor.ui.focusTracker.isFocused){const h=l.getAncestors().length;h>t&&(t=h,e=l,n=s)}else this._isToolbarVisible(s)&&this._hideToolbar(s);else this._isToolbarInBalloon(s)&&this._hideToolbar(s)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?Yf(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:t.view,position:Hf(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const n of this._toolbarDefinitions.values())if(this._isToolbarVisible(n)){const s=n.getRelatedElement(this.editor.editing.view.document.selection);Yf(this.editor,s)}}))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function Yf(r,t){const e=r.plugins.get("ContextualBalloon"),n=Hf(r,t);e.updatePosition(n)}function Hf(r,t){const n=Ai.defaultPositions;return{target:r.editing.view.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}ne(),ne();var Gf=lt(8506);Rt()(Gf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const $u=hn("px");class dA extends Wt{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",t.if("isVisible","ck-hidden",e=>!e)],style:{left:t.to("left",e=>$u(e)),top:t.to("top",e=>$u(e)),width:t.to("width",e=>$u(e))}}})}}class Wc extends Lt{constructor(){super(...arguments),this.removeDropMarkerDelayed=Bs(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Fc(t=>this._updateDropMarker(t),40),this._reconvertMarkerThrottled=Fc(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new dA,this._domEmitter=new(bi()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:t}of this._scrollables.values())t.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(t,e,n,s,l,h){this.removeDropMarkerDelayed.cancel();const p=Wf(this.editor,t,e,n,s,l,h);if(p)return h&&h.containsRange(p)?this.removeDropMarker():void this._updateDropMarkerThrottled(p)}getFinalDropRange(t,e,n,s,l,h){const p=Wf(this.editor,t,e,n,s,l,h);return this.removeDropMarker(),p}removeDropMarker(){const t=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,t.markers.has("drop-target")&&t.change(e=>{e.removeMarker("drop-target")})}_setupDropMarker(){const t=this.editor;t.ui.view.body.add(this._dropTargetLineView),t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);e.markerRange.isCollapsed?this._updateDropTargetLine(e.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change(s=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||s.updateMarker("drop-target",{range:t}):s.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(t){return t.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(e){const n=this.toDomElement(e);return n.append("\u2060",e.createElement("span"),"\u2060"),n})}_updateDropTargetLine(t){const e=this.editor.editing,n=t.start.nodeBefore,s=t.start.nodeAfter,l=t.start.parent,h=n?e.mapper.toViewElement(n):null,p=h?e.view.domConverter.mapViewToDom(h):null,b=s?e.mapper.toViewElement(s):null,A=b?e.view.domConverter.mapViewToDom(b):null,C=e.mapper.toViewElement(l),E=e.view.domConverter.mapViewToDom(C),P=this._getScrollableRect(C),{scrollX:F,scrollY:j}=Yt.window,Y=p?new le(p):null,$=A?new le(A):null,st=new le(E).excludeScrollbarsAndBorders(),ft=Y?Y.bottom:st.top,At=$?$.top:st.bottom,Ft=Yt.window.getComputedStyle(E),jt=ft<=At?(ft+At)/2:At;if(P.topp.schema.checkChild(E,P))){if(p.schema.checkChild(E,"$text"))return p.createRange(E);if(C)return Qc(r,Xf(r,C.parent),n,s)}}}else if(p.schema.isInline(A))return Qc(r,A,n,s);if(p.schema.isBlock(A))return Qc(r,A,n,s);if(p.schema.checkChild(A,"$block")){const C=Array.from(A.getChildren()).filter(F=>F.is("element")&&!hA(r,F));let E=0,P=C.length;if(0==P)return p.createRange(p.createPositionAt(A,"end"));for(;Et in r?uA(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class bA extends Lt{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(bi())}static get pluginName(){return"DragDropBlockToolbar"}init(){const t=this.editor;if(this.listenTo(t,"change:isReadOnly",(e,n,s)=>{s?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),it.isAndroid&&this.forceDisabled("noAndroidSupport"),t.plugins.has("BlockToolbar")){const e=t.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(e,"dragstart",(n,s)=>this._handleBlockDragStart(s)),this._domEmitter.listenTo(Yt.document,"dragover",(n,s)=>this._handleBlockDragging(s)),this._domEmitter.listenTo(Yt.document,"drop",(n,s)=>this._handleBlockDragging(s)),this._domEmitter.listenTo(Yt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&e.setAttribute("draggable","true"),this.on("change:isEnabled",(n,s,l)=>{e.setAttribute("draggable",l?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(t){if(!this.isEnabled)return;const e=this.editor.model,s=this.editor.editing.view,l=Array.from(e.document.selection.getSelectedBlocks()),h=e.createRange(e.createPositionBefore(l[0]),e.createPositionAfter(l[l.length-1]));e.change(p=>p.setSelection(h)),this._isBlockDragging=!0,s.focus(),s.getObserver(Aa).onDomEvent(t)}_handleBlockDragging(t){if(!this.isEnabled||!this._isBlockDragging)return;const e=t.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),n=t.clientY,s=document.elementFromPoint(e,n),l=this.editor.editing.view;var h;s&&s.closest(".ck-editor__editable")&&l.getObserver(Aa).onDomEvent((h=((b,A)=>{for(var C in A||(A={}))mA.call(A,C)&&Jf(b,C,A[C]);if(Kf)for(var C of Kf(A))fA.call(A,C)&&Jf(b,C,A[C]);return b})({},t),pA(h,gA({type:t.type,dataTransfer:t.dataTransfer,target:s,clientX:e,clientY:n,preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var $f=lt(903);Rt()($f.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class kA extends Lt{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=Bs(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(bi())}static get pluginName(){return"DragDrop"}static get requires(){return[fn,Ea,Wc,bA]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(Aa),e.addObserver(Mu),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",(n,s,l)=>{l?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(n,s,l)=>{l||this._finalizeDragging(!1)}),it.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=t.editing.view,s=n.document,l=t.plugins.get(Wc);this.listenTo(s,"dragstart",(h,p)=>{if(p.target&&p.target.is("editableElement")||(this._prepareDraggedRange(p.target),!this._draggedRange))return void p.preventDefault();this._draggingUid=Mt(),p.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",p.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const b=e.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(p.dataTransfer,b,"dragstart");const{dataTransfer:A,domTarget:C,domEvent:E}=p,{clientX:P}=E;this._updatePreview({dataTransfer:A,domTarget:C,clientX:P}),p.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(s,"dragend",(h,p)=>{this._finalizeDragging(!p.dataTransfer.isCanceled&&"move"==p.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(Yt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(s,"dragenter",()=>{this.isEnabled&&n.focus()}),this.listenTo(s,"dragleave",()=>{l.removeDropMarkerDelayed()}),this.listenTo(s,"dragging",(h,p)=>{if(!this.isEnabled)return void(p.dataTransfer.dropEffect="none");const{clientX:b,clientY:A}=p.domEvent;l.updateDropMarker(p.target,p.targetRanges,b,A,this._blockMode,this._draggedRange),this._draggedRange||(p.dataTransfer.dropEffect="copy"),it.isGecko||("copy"==p.dataTransfer.effectAllowed?p.dataTransfer.dropEffect="copy":["all","copyMove"].includes(p.dataTransfer.effectAllowed)&&(p.dataTransfer.dropEffect="move")),h.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get(Wc);this.listenTo(e,"clipboardInput",(s,l)=>{if("drop"!=l.method)return;const{clientX:h,clientY:p}=l.domEvent,b=n.getFinalDropRange(l.target,l.targetRanges,h,p,this._blockMode,this._draggedRange);return b?(this._draggedRange&&this._draggingUid!=l.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==tb(l.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(b,!0)?(this._finalizeDragging(!1),void s.stop()):void(l.targetRanges=[t.editing.mapper.toViewRange(b)])):(this._finalizeDragging(!1),void s.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(fn);t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const s=n.targetRanges.map(l=>this.editor.editing.mapper.toModelRange(l));this.editor.model.change(l=>l.setSelection(s))},{priority:"high"}),t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const s="move"==tb(n.dataTransfer);this._finalizeDragging((!n.resultRange||!n.resultRange.isCollapsed)&&s)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",(s,l)=>{if(it.isAndroid||!l)return;this._clearDraggableAttributesDelayed.cancel();let h=eb(l.target);if(it.isBlink&&!t.isReadOnly&&!h&&!n.selection.isCollapsed){const p=n.selection.getSelectedElement();p&&He(p)||(h=n.selection.editableElement)}h&&(e.change(p=>{p.setAttribute("draggable","true",h)}),this._draggableElement=t.editing.mapper.toModelElement(h))}),this.listenTo(n,"mouseup",()=>{it.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change(e=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(t){const e=this.editor,n=e.model;e.plugins.get(Wc).removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(t&&this.isEnabled&&n.change(s=>{const l=n.createSelection(this._draggedRange);n.deleteContent(l,{doNotAutoparagraph:!0});const h=l.getFirstPosition().parent;h.isEmpty&&!n.schema.checkChild(h,"$text")&&n.schema.checkChild(h,"paragraph")&&s.insertElement("paragraph",h,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(t){const e=this.editor,n=e.model,s=n.document.selection,l=t?eb(t):null;if(l){const A=e.editing.mapper.toModelElement(l);return this._draggedRange=Ni.fromRange(n.createRangeOn(A)),this._blockMode=n.schema.isBlock(A),void(e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(s.isCollapsed&&!s.getFirstPosition().parent.isEmpty)return;const h=Array.from(s.getSelectedBlocks()),p=s.getFirstRange();if(0==h.length)return void(this._draggedRange=Ni.fromRange(p));const b=ib(n,h);if(h.length>1)this._draggedRange=Ni.fromRange(b),this._blockMode=!0;else if(1==h.length){const A=p.start.isTouching(b.start)&&p.end.isTouching(b.end);this._draggedRange=Ni.fromRange(A?b:p),this._blockMode=A}n.change(A=>A.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:t,domTarget:e,clientX:n}){const s=this.editor.editing.view,h=s.domConverter.mapViewToDom(s.document.selection.editableElement),p=Yt.window.getComputedStyle(h);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=yn(Yt.document,"div",{style:"position: fixed; left: -999999px;"}),Yt.document.body.appendChild(this._previewContainer));const b=new le(h);if(h.contains(e))return;const A=parseFloat(p.paddingLeft),C=yn(Yt.document,"div");C.className="ck ck-content",C.style.width=p.width,C.style.paddingLeft=`${b.left-n+A}px`,it.isiOS&&(C.style.backgroundColor="white"),C.innerHTML=t.getData("text/html"),t.setDragImage(C,0,0),this._previewContainer.appendChild(C)}}function tb(r){return it.isGecko?r.dropEffect:["all","copyMove"].includes(r.effectAllowed)?"move":"copy"}function eb(r){if(r.is("editableElement"))return null;if(r.hasClass("ck-widget__selection-handle"))return r.findAncestor(He);if(He(r))return r;const t=r.findAncestor(e=>He(e)||e.is("editableElement"));return He(t)?t:null}function ib(r,t){const e=t[0],n=t[t.length-1],s=e.getCommonAncestor(n),l=r.createPositionBefore(e),h=r.createPositionAfter(n);if(s&&s.is("element")&&!r.schema.isLimit(s)){const p=r.createRangeOn(s),b=l.isTouching(p.start),A=h.isTouching(p.end);if(b&&A)return ib(r,[s])}return r.createRange(l,h)}class _A extends Lt{static get pluginName(){return"PastePlainText"}static get requires(){return[fn]}init(){const t=this.editor,e=t.model,n=t.editing.view,s=n.document,l=e.document.selection;let h=!1;n.addObserver(Aa),this.listenTo(s,"keydown",(p,b)=>{h=b.shiftKey}),t.plugins.get(fn).on("contentInsertion",(p,b)=>{(h||function(A,C){if(A.childCount>1)return!1;const E=A.getChild(0);return!C.isObject(E)&&0==Array.from(E.getAttributeKeys()).length}(b.content,e.schema))&&e.change(A=>{const C=Array.from(l.getAttributes()).filter(([P])=>e.schema.getAttributeProperties(P).isFormatting);l.isCollapsed||e.deleteContent(l,{doNotAutoparagraph:!0}),C.push(...l.getAttributes());const E=A.createRangeIn(b.content);for(const P of E.getItems())P.is("$textProxy")&&A.setAttributes(C,P)})})}}class nb extends Lt{static get pluginName(){return"Clipboard"}static get requires(){return[fn,kA,_A]}}class wA extends Jt{constructor(t){super(t),this.affectsData=!1}execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!ob(t.schema,n))do{if(n=n.parent,!n)return}while(!ob(t.schema,n));t.change(s=>{s.setSelection(n,"in")})}}function ob(r,t){return r.isLimit(t)&&(r.checkChild(t,"$text")||r.checkChild(t,"paragraph"))}const AA=Vo("Ctrl+A");class xA extends Lt{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new wA(t)),this.listenTo(e,"keydown",(n,s)=>{so(s)===AA&&(t.execute("selectAll"),s.preventDefault())})}}class CA extends Lt{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",e=>{const n=t.commands.get("selectAll"),s=new ve(e);return s.set({label:(0,e.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),s.bind("isEnabled").to(n,"isEnabled"),this.listenTo(s,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),s})}}class yA extends Lt{static get requires(){return[xA,CA]}static get pluginName(){return"SelectAll"}}var EA=Object.defineProperty,rb=Object.getOwnPropertySymbols,TA=Object.prototype.hasOwnProperty,SA=Object.prototype.propertyIsEnumerable,sb=(r,t,e)=>t in r?EA(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class ab extends Jt{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,n)=>{n[1]=((l,h)=>{for(var p in h||(h={}))TA.call(h,p)&&sb(l,p,h[p]);if(rb)for(var p of rb(h))SA.call(h,p)&&sb(l,p,h[p]);return l})({},n[1]);const s=n[1];s.batchType||(s.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,n)=>{n[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const s=this.editor.model,l=s.document,h=[],p=t.map(A=>A.getTransformedByOperations(n)),b=p.flat();for(const A of p){const C=A.filter(E=>E.root!=l.graveyard).filter(E=>!DA(E,b));C.length&&(IA(C),h.push(C[0]))}h.length&&s.change(A=>{A.setSelection(h,{backward:e})})}_undo(t,e){const n=this.editor.model,s=n.document;this._createdBatches.add(e);const l=t.operations.slice().filter(h=>h.isDocumentOperation);l.reverse();for(const h of l){const b=Array.from(s.history.getOperations(h.baseVersion+1)),A=C_([h.getReversed()],b,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let C of A){const E=C.affectedSelectable;E&&!n.canEditAt(E)&&(C=new Ve(C.baseVersion)),e.addOperation(C),n.applyOperation(C),s.history.setOperationAsUndone(h,C)}}}}function IA(r){r.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;te!==r&&e.containsRange(r,!0))}class MA extends ab{execute(t=null){const e=t?this._stack.findIndex(l=>l.batch==t):this._stack.length-1,n=this._stack.splice(e,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(n.batch,s);const l=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,l)}),this.fire("revert",n.batch,s),this.refresh()}}class LA extends ab{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const s=this.editor.model.document.history.getOperations(t.batch.operations[t.batch.operations.length-1].baseVersion+1);this._restoreSelection(t.selection.ranges,t.selection.isBackward,s),this._undo(t.batch,e)}),this.refresh()}}class PA extends Lt{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const t=this.editor;this._undoCommand=new MA(t),this._redoCommand=new LA(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(e,n)=>{const s=n[0];if(!s.isDocumentOperation)return;const l=s.batch,h=this._redoCommand.createdBatches.has(l),p=this._undoCommand.createdBatches.has(l);this._batchRegistry.has(l)||(this._batchRegistry.add(l),l.isUndoable&&(h?this._undoCommand.addBatch(l):p||(this._undoCommand.addBatch(l),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,n,s)=>{this._redoCommand.addBatch(s)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}const lb='',cb='';class NA extends Lt{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,s="ltr"==e.uiLanguageDirection?lb:cb,l="ltr"==e.uiLanguageDirection?cb:lb;this._addButton("undo",n("Undo"),"CTRL+Z",s),this._addButton("redo",n("Redo"),"CTRL+Y",l)}_addButton(t,e,n,s){const l=this.editor;l.ui.componentFactory.add(t,h=>{const p=l.commands.get(t),b=new ve(h);return b.set({label:e,icon:s,keystroke:n,tooltip:!0}),b.bind("isEnabled").to(p,"isEnabled"),this.listenTo(b,"execute",()=>{l.execute(t),l.editing.view.focus()}),b})}}class db extends Lt{static get requires(){return[PA,NA]}static get pluginName(){return"Undo"}}class OA extends(ne()){constructor(){super();const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return this.total=t.size,new Promise((n,s)=>{e.onload=()=>{const l=e.result;this._data=l,n(l)},e.onerror=()=>{s("error")},e.onabort=()=>{s("aborted")},this._reader.readAsDataURL(t)})}abort(){this._reader.abort()}}class sn extends Lt{constructor(){super(...arguments),this.loaders=new di,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[em]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(t,e)=>e?t/e*100:0)}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return kt("filerepository-no-upload-adapter"),null;const e=new hb(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then(n=>{this._loadersMap.set(n,e)}).catch(()=>{}),e.on("change:uploaded",()=>{let n=0;for(const s of this.loaders)n+=s.uploaded;this.uploaded=n}),e.on("change:uploadTotal",()=>{let n=0;for(const s of this.loaders)s.uploadTotal&&(n+=s.uploadTotal);this.uploadTotal=n}),e}destroyLoader(t){const e=t instanceof hb?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach((n,s)=>{n===e&&this._loadersMap.delete(s)})}_updatePendingAction(){const t=this.editor.plugins.get(em);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=s=>`${e("Upload in progress")} ${parseInt(s)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}class hb extends(ne()){constructor(t,e){super(),this.id=Mt(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new OA,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(n,s)=>s?n/s*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(t=>this._filePromiseWrapper?t:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new W("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(t=>this._reader.read(t)).then(t=>{if("reading"!==this.status)throw this.status;return this.status="idle",t}).catch(t=>{throw"aborted"===t?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:t)})}upload(){if("idle"!=this.status)throw new W("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(t=>(this.uploadResponse=t,this.status="idle",t)).catch(t=>{throw"aborted"===this.status?"aborted":(this.status="error",t)})}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise((n,s)=>{e.rejecter=s,e.isFulfilled=!1,t.then(l=>{e.isFulfilled=!0,n(l)}).catch(l=>{e.isFulfilled=!0,s(l)})}),e}}class BA extends ve{constructor(t){super(t),this.buttonView=this,this._fileInputView=new FA(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",()=>{this._fileInputView.open()}),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}class FA extends Wt{constructor(t){super(t),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const ub="ckCsrfToken";class RA{constructor(t,e,n){this.loader=t,this.url=e,this.t=n}upload(){return this.loader.file.then(t=>new Promise((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}_initListeners(t,e,n){const s=this.xhr,l=this.loader,h=(0,this.t)("Cannot upload file:")+` ${n.name}.`;s.addEventListener("error",()=>e(h)),s.addEventListener("abort",()=>e()),s.addEventListener("load",()=>{const p=s.response;if(!p||!p.uploaded)return e(p&&p.error&&p.error.message?p.error.message:h);t({default:p.url})}),s.upload&&s.upload.addEventListener("progress",p=>{p.lengthComputable&&(l.uploadTotal=p.total,l.uploaded=p.loaded)})}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",function zA(){let r=function(n){n=n.toLowerCase();const s=document.cookie.split(";");for(const l of s){const h=l.split("=");if(decodeURIComponent(h[0].trim().toLowerCase())===n)return decodeURIComponent(h[1])}return null}(ub);var e;return r&&40==r.length||(r=function(n){let s="";const l=new Uint8Array(40);window.crypto.getRandomValues(l);for(let h=0;h.5?p.toUpperCase():p}return s}(),e=r,document.cookie=encodeURIComponent(ub)+"="+encodeURIComponent(e)+";path=/"),r}()),this.xhr.send(e)}}function Ao(r,t,e,n){let s,l=null;"function"==typeof n?s=n:(l=r.commands.get(n),s=()=>{r.execute(n)}),r.model.document.on("change:data",(h,p)=>{if(l&&!l.isEnabled||!t.isEnabled)return;const b=Oe(r.model.document.selection.getRanges());if(!b.isCollapsed||p.isUndo||!p.isLocal)return;const A=Array.from(r.model.document.differ.getChanges()),C=A[0];if(1!=A.length||"insert"!==C.type||"$text"!=C.name||1!=C.length)return;const E=C.position.parent;if(E.is("element","codeBlock")||E.is("element","listItem")&&"function"!=typeof n&&!["numberedList","bulletedList","todoList"].includes(n)||l&&!0===l.value)return;const P=E.getChild(0),F=r.model.createRangeOn(P);if(!F.containsRange(b)&&!b.end.isEqual(F.end))return;const j=e.exec(P.data.substr(0,b.end.offset));j&&r.model.enqueueChange(Y=>{const $=Y.createPositionAt(E,0),st=Y.createPositionAt(E,j[0].length),ft=new Ni($,st);if(!1!==s({match:j})){Y.remove(ft);const At=r.model.document.selection.getFirstRange(),Ft=Y.createRangeIn(E);!E.isEmpty||Ft.isEqual(At)||Ft.containsRange(At,!0)||Y.remove(E)}ft.detach(),r.model.enqueueChange(()=>{r.plugins.get("Delete").requestUndoOnBackspace()})})})}function Kr(r,t,e,n){let s,l;e instanceof RegExp?s=e:l=e,l=l||(h=>{let p;const b=[],A=[];for(;null!==(p=s.exec(h))&&!(p&&p.length<4);){let{index:C,1:E,2:P,3:F}=p;C+=p[0].length-(E+P+F).length;const $=[C+E.length+P.length,C+E.length+P.length+F.length];b.push([C,C+E.length]),b.push($),A.push([C+E.length,C+E.length+P.length])}return{remove:b,format:A}}),r.model.document.on("change:data",(h,p)=>{if(p.isUndo||!p.isLocal||!t.isEnabled)return;const b=r.model,A=b.document.selection;if(!A.isCollapsed)return;const C=Array.from(b.document.differ.getChanges()),E=C[0];if(1!=C.length||"insert"!==E.type||"$text"!=E.name||1!=E.length)return;const P=A.focus,F=P.parent,{text:j,range:Y}=function(At,Ft){let jt=At.start;return{text:Array.from(At.getItems()).reduce((ce,ze)=>!ze.is("$text")&&!ze.is("$textProxy")||ze.getAttribute("code")?(jt=Ft.createPositionAfter(ze),""):ce+ze.data,""),range:Ft.createRange(jt,At.end)}}(b.createRange(b.createPositionAt(F,0),P),b),$=l(j),st=gb(Y.start,$.format,b),ft=gb(Y.start,$.remove,b);st.length&&ft.length&&b.enqueueChange(At=>{if(!1!==n(At,st)){for(const Ft of ft.reverse())At.remove(Ft);b.enqueueChange(()=>{r.plugins.get("Delete").requestUndoOnBackspace()})}})})}function gb(r,t,e){return t.filter(n=>void 0!==n[0]&&void 0!==n[1]).map(n=>e.createRange(r.getShiftedBy(n[0]),r.getShiftedBy(n[1])))}function Xc(r,t){return(e,n)=>{if(!r.commands.get(t).isEnabled)return!1;const s=r.model.schema.getValidRanges(n,t);for(const l of s)e.setAttribute(t,!0,l);e.removeSelectionAttribute(t)}}class mb extends Jt{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,s=void 0===t.forceValue?!this.value:t.forceValue;e.change(l=>{if(n.isCollapsed)s?l.setSelectionAttribute(this.attributeKey,!0):l.removeSelectionAttribute(this.attributeKey);else{const h=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const p of h)s?l.setAttribute(this.attributeKey,s,p):l.removeAttribute(this.attributeKey,p)}})}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const s of n.getRanges())for(const l of s.getItems())if(e.checkAttribute(l,this.attributeKey))return l.hasAttribute(this.attributeKey);return!1}}const Jr="bold";class ZA extends Lt{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Jr}),t.model.schema.setAttributeProperties(Jr,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Jr,view:"strong",upcastAlso:["b",e=>{const n=e.getStyle("font-weight");return n&&("bold"==n||Number(n)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(Jr,new mb(t,Jr)),t.keystrokes.set("CTRL+B",Jr)}}const tp="bold";class UA extends Lt{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(tp,n=>{const s=t.commands.get(tp),l=new ve(n);return l.set({label:e("Bold"),icon:Ae.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute(tp),t.editing.view.focus()}),l})}}var fb=lt(8603);Rt()(fb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const $r="italic";class VA extends Lt{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:$r}),t.model.schema.setAttributeProperties($r,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:$r,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add($r,new mb(t,$r)),t.keystrokes.set("CTRL+I",$r)}}const ep="italic";class qA extends Lt{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(ep,n=>{const s=t.commands.get(ep),l=new ve(n);return l.set({label:e("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute(ep),t.editing.view.focus()}),l})}}class YA extends Jt{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,l=Array.from(e.document.selection.getSelectedBlocks()),h=void 0===t.forceValue?!this.value:t.forceValue;e.change(p=>{if(h){const b=l.filter(A=>Kc(A)||vb(n,A));this._applyQuote(p,b)}else this._removeQuote(p,l.filter(Kc))})}_getValue(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!Kc(t))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.schema,n=Oe(this.editor.model.document.selection.getSelectedBlocks());return!!n&&vb(e,n)}_removeQuote(t,e){bb(t,e).reverse().forEach(n=>{if(n.start.isAtStart&&n.end.isAtEnd)return void t.unwrap(n.start.parent);if(n.start.isAtStart){const l=t.createPositionBefore(n.start.parent);return void t.move(n,l)}n.end.isAtEnd||t.split(n.end);const s=t.createPositionAfter(n.end.parent);t.move(n,s)})}_applyQuote(t,e){const n=[];bb(t,e).reverse().forEach(s=>{let l=Kc(s.start);l||(l=t.createElement("blockQuote"),t.wrap(s,l)),n.push(l)}),n.reverse().reduce((s,l)=>s.nextSibling==l?(t.merge(t.createPositionAfter(s)),s):l)}}function Kc(r){return"blockQuote"==r.parent.name?r.parent:null}function bb(r,t){let e,n=0;const s=[];for(;n{const p=t.model.document.differ.getChanges();for(const b of p)if("insert"==b.type){const A=b.position.nodeAfter;if(!A)continue;if(A.is("element","blockQuote")&&A.isEmpty)return h.remove(A),!0;if(A.is("element","blockQuote")&&!e.checkChild(b.position,A))return h.unwrap(A),!0;if(A.is("element")){const C=h.createRangeIn(A);for(const E of C.getItems())if(E.is("element","blockQuote")&&!e.checkChild(h.createPositionBefore(E),E))return h.unwrap(E),!0}}else if("remove"==b.type){const A=b.position.parent;if(A.is("element","blockQuote")&&A.isEmpty)return h.remove(A),!0}return!1});const n=this.editor.editing.view.document,s=t.model.document.selection,l=t.commands.get("blockQuote");this.listenTo(n,"enter",(h,p)=>{!s.isCollapsed||!l.value||s.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),p.preventDefault(),h.stop())},{context:"blockquote"}),this.listenTo(n,"delete",(h,p)=>{if("backward"!=p.direction||!s.isCollapsed||!l.value)return;const b=s.getLastPosition().parent;b.isEmpty&&!b.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),p.preventDefault(),h.stop())},{context:"blockquote"})}}var kb=lt(3062);Rt()(kb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class WA extends Lt{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",n=>{const s=t.commands.get("blockQuote"),l=new ve(n);return l.set({label:e("Block quote"),icon:Ae.quote,tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute("blockQuote"),t.editing.view.focus()}),l})}}class QA extends Lt{static get pluginName(){return"CKBoxUI"}afterInit(){const t=this.editor,e=t.commands.get("ckbox");if(!e)return;const n=t.t;if(t.ui.componentFactory.add("ckbox",s=>{const l=new ve(s);return l.set({label:n("Open file manager"),icon:'',tooltip:!0}),l.bind("isOn","isEnabled").to(e,"value","isEnabled"),l.on("execute",()=>{t.execute("ckbox")}),l}),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI");s.registerIntegration({name:"assetManager",observable:e,buttonViewCreator:()=>{const l=this.editor.ui.componentFactory.create("ckbox");return l.icon=Ae.imageAssetManager,l.bind("label").to(s,"isImageSelected",h=>n(h?"Replace image with file manager":"Insert image with file manager")),l},formViewCreator:()=>{const l=this.editor.ui.componentFactory.create("ckbox");return l.icon=Ae.imageAssetManager,l.withText=!0,l.bind("label").to(s,"isImageSelected",h=>n(h?"Replace with file manager":"Insert with file manager")),l.on("execute",()=>{s.dropdownView.isOpen=!1}),l}})}}}var XA=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],Ta=r=>{let t=0;for(let e=0;e{let t=r/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},np=r=>{let t=Math.max(0,Math.min(1,r));return t<=.0031308?Math.trunc(12.92*t*255+.5):Math.trunc(255*(1.055*Math.pow(t,.4166666666666667)-.055)+.5)},op=(r,t)=>(r<0?-1:1)*Math.pow(Math.abs(r),t),_b=class extends Error{constructor(r){super(r),this.name="ValidationError",this.message=r}},JA=r=>{let t=r>>8&255,e=255&r;return[ip(r>>16),ip(t),ip(e)]},$A=(r,t)=>{let e=Math.floor(r/361),n=Math.floor(r/19)%19,s=r%19;return[op((e-9)/9,2)*t,op((n-9)/9,2)*t,op((s-9)/9,2)*t]},ex=Object.defineProperty,wb=Object.getOwnPropertySymbols,ix=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,Ab=(r,t,e)=>t in r?ex(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;function xb(r){const t=[];let e=0;for(const s in r){const l=parseInt(s,10);isNaN(l)||(l>e&&(e=l),t.push(`${r[s]} ${s}w`))}const n=[{srcset:t.join(","),sizes:`(max-width: ${e}px) 100vw, ${e}px`,type:"image/webp"}];return{imageFallbackUrl:r.default,imageSources:n}}function Cb({url:r,method:t="GET",data:e,onUploadProgress:n,signal:s,authorization:l}){const h=new XMLHttpRequest;h.open(t,r.toString()),h.setRequestHeader("Authorization",l),h.setRequestHeader("CKBox-Version","CKEditor 5"),h.responseType="json";const p=()=>{h.abort()};return new Promise((b,A)=>{s.throwIfAborted(),s.addEventListener("abort",p),h.addEventListener("loadstart",()=>{s.addEventListener("abort",p)}),h.addEventListener("loadend",()=>{s.removeEventListener("abort",p)}),h.addEventListener("error",()=>{A()}),h.addEventListener("abort",()=>{A()}),h.addEventListener("load",()=>{const C=h.response;if(!C||C.statusCode>=400)return A(C&&C.message);b(C)}),n&&h.upload.addEventListener("progress",C=>{n(C)}),h.send(e)})}const ox={"image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};var sx=Object.defineProperty,yb=Object.getOwnPropertySymbols,ax=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,Eb=(r,t,e)=>t in r?sx(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Tb=(r,t)=>{for(var e in t||(t={}))ax.call(t,e)&&Eb(r,e,t[e]);if(yb)for(var e of yb(t))lx.call(t,e)&&Eb(r,e,t[e]);return r};class cx extends Jt{constructor(t){super(t),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");return!(!t.isEnabled&&!e.isEnabled)}_prepareOptions(){const t=this.editor.config.get("ckbox");return{theme:t.theme,language:t.language,tokenUrl:t.tokenUrl,serviceOrigin:t.serviceOrigin,forceDemoLabel:t.forceDemoLabel,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:e=>this.fire("ckbox:choose",e)}}}_initListeners(){const t=this.editor,e=t.model,n=!t.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=yn(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null,t.editing.view.focus())}),this.on("ckbox:choose",(s,l)=>{if(!this.isEnabled)return;const h=t.commands.get("insertImage"),p=t.commands.get("link"),b=function({assets:C,isImageAllowed:E,isLinkAllowed:P}){return C.map(F=>function(j){const Y=j.data.metadata;return!!Y&&Y.width&&Y.height}(F)?{id:F.data.id,type:"image",attributes:dx(F)}:{id:F.data.id,type:"link",attributes:hx(F)}).filter(F=>"image"===F.type?E:P)}({assets:l,isImageAllowed:h.isEnabled,isLinkAllowed:p.isEnabled}),A=b.length;0!==A&&(e.change(C=>{for(const E of b)this._insertAsset(E,E===b[A-1],C,1===A),n&&(setTimeout(()=>this._chosenAssets.delete(E),1e3),this._chosenAssets.add(E))}),t.editing.view.focus())}),this.listenTo(t,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(t,e,n,s){const l=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),"image"===t.type?this._insertImage(t):this._insertLink(t,n,s),e||n.setSelection(l.getLastPosition())}_insertImage(t){const e=this.editor,{imageFallbackUrl:n,imageSources:s,imageTextAlternative:l,imageWidth:h,imageHeight:p,imagePlaceholder:b}=t.attributes;e.execute("insertImage",{source:Tb({src:n,sources:s,alt:l,width:h,height:p},b?{placeholder:b}:null)})}_insertLink(t,e,n){const s=this.editor,l=s.model,h=l.document.selection,{linkName:p,linkHref:b}=t.attributes;if(h.isCollapsed){const A=ri(h.getAttributes()),C=e.createText(p,A);if(!n){const P=h.getLastPosition(),F=P.parent;"paragraph"===F.name&&F.isEmpty||s.execute("insertParagraph",{position:P});const j=l.insertContent(C);return e.setSelection(j),void s.execute("link",b)}const E=l.insertContent(C);e.setSelection(E)}s.execute("link",b)}}function dx(r){const{imageFallbackUrl:t,imageSources:e}=xb(r.data.imageUrls),{description:n,width:s,height:l,blurHash:h}=r.data.metadata,p=function(b){if(b)try{const A="32px",C=document.createElement("canvas");C.setAttribute("width",A),C.setAttribute("height",A);const E=C.getContext("2d");if(!E)return;const P=E.createImageData(32,32),F=((r,t,e,n)=>{(r=>{if(!r||r.length<6)throw new _b("The blurhash string must be at least 6 characters");let t=Ta(r[0]),e=Math.floor(t/9)+1,n=t%9+1;if(r.length!==4+2*n*e)throw new _b(`blurhash length mismatch: length is ${r.length} but it should be ${4+2*n*e}`)})(r),n|=1;let s=Ta(r[0]),l=Math.floor(s/9)+1,h=s%9+1,p=(Ta(r[1])+1)/166,b=new Array(h*l);for(let E=0;Enew Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class Sb extends Lt{static get pluginName(){return"CKBoxUtils"}static get requires(){return["CloudServices"]}init(){return rp(this,null,function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;t.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:t.locale.uiLanguage,theme:"lark",tokenUrl:t.config.get("cloudServices.tokenUrl")});const s=t.plugins.get("CloudServices"),l=t.config.get("cloudServices.tokenUrl"),h=t.config.get("ckbox.tokenUrl");if(!h)throw new W("ckbox-plugin-missing-token-url",this);this._token=h==l?s.token:yield s.registerTokenUrl(h)})}getToken(){return this._token}getWorkspaceId(){const t=(0,this.editor.t)("Cannot access default workspace."),e=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),n=function(s,l){const[,h]=s.value.split("."),p=JSON.parse(atob(h)),b=p.auth&&p.auth.ckbox&&p.auth.ckbox.workspaces||[p.aud];return l?"superadmin"==(p.auth&&p.auth.ckbox&&p.auth.ckbox.role)||b.includes(l)?l:null:b[0]}(this._token,e);if(null==n)throw Pt("ckbox-access-default-workspace-error"),t;return n}getCategoryIdForFile(t,e){return rp(this,null,function*(){const n=(0,this.editor.t)("Cannot determine a category for the uploaded file."),s=this.editor.config.get("ckbox.defaultUploadCategories"),l=this._getAvailableCategories(e),h="string"==typeof t?(p=yield function rx(r,t){return e=this,s=function*(){try{const l=yield fetch(r,((h,p)=>{for(var b in p||(p={}))ix.call(p,b)&&Ab(h,b,p[b]);if(wb)for(var b of wb(p))nx.call(p,b)&&Ab(h,b,p[b]);return h})({method:"HEAD",cache:"force-cache"},t));return l.ok&&l.headers.get("content-type")||""}catch{return""}},new Promise((l,h)=>{var p=C=>{try{A(s.next(C))}catch(E){h(E)}},b=C=>{try{A(s.throw(C))}catch(E){h(E)}},A=C=>C.done?l(C.value):Promise.resolve(C.value).then(p,b);A((s=s.apply(e,null)).next())});var e,s}(t,e),ox[p]):function(C){const E=C.name,P=new RegExp("\\.(?[^.]+)$");return E.match(P).groups.ext.toLowerCase()}(t);var p;const b=yield l;if(!b)throw n;if(s){const C=Object.keys(s).find(E=>s[E].find(P=>P.toLowerCase()==h));if(C){const E=b.find(P=>P.id===C||P.name===C);if(!E)throw n;return E.id}}const A=b.find(C=>C.extensions.find(E=>E.toLowerCase()==h));if(!A)throw n;return A.id})}_getAvailableCategories(t){return rp(this,null,function*(){const e=this.editor,n=this._token,{signal:s}=t,l=e.config.get("ckbox.serviceOrigin"),h=this.getWorkspaceId();try{const b=[];let A,C=0;do{const E=yield p(C);b.push(...E.items),A=E.totalCount-(C+50),C+=50}while(A>0);return b}catch{return s.throwIfAborted(),void Pt("ckbox-fetch-category-http-error")}function p(b){const A=new URL("categories",l);return A.searchParams.set("limit",50..toString()),A.searchParams.set("offset",b.toString()),A.searchParams.set("workspaceId",h),Cb({url:A,signal:s,authorization:n.value})}})}}var sp=(r,t,e)=>new Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class px extends Lt{static get requires(){return["ImageUploadEditing","ImageUploadProgress",sn,Ib]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return sp(this,null,function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;const s=t.plugins.get(sn),l=t.plugins.get(Sb);s.createUploadAdapter=b=>new gx(b,t,l);const h=!t.config.get("ckbox.ignoreDataId"),p=t.plugins.get("ImageUploadEditing");h&&p.on("uploadComplete",(b,{imageElement:A,data:C})=>{t.model.change(E=>{E.setAttribute("ckboxImageId",C.ckboxImageId,A)})})})}}class gx{constructor(t,e,n){this.loader=t,this.token=n.getToken(),this.ckboxUtils=n,this.editor=e,this.controller=new AbortController,this.serviceOrigin=e.config.get("ckbox.serviceOrigin")}upload(){return sp(this,null,function*(){const t=this.ckboxUtils,e=this.editor.t,n=yield this.loader.file,s=yield t.getCategoryIdForFile(n,{signal:this.controller.signal}),l=new URL("assets",this.serviceOrigin),h=new FormData;return l.searchParams.set("workspaceId",t.getWorkspaceId()),h.append("categoryId",s),h.append("file",n),Cb({method:"POST",url:l,data:h,onUploadProgress:p=>{p.lengthComputable&&(this.loader.uploadTotal=p.total,this.loader.uploaded=p.loaded)},signal:this.controller.signal,authorization:this.token.value}).then(p=>sp(this,null,function*(){const b=xb(p.imageUrls);return{ckboxImageId:p.id,default:b.imageFallbackUrl,sources:b.imageSources}})).catch(()=>{const p=e("Cannot upload file:")+` ${n.name}.`;return Promise.reject(p)})})}abort(){this.controller.abort()}}class Ib extends Lt{static get pluginName(){return"CKBoxEditing"}static get requires(){return["LinkEditing","PictureEditing",px,Sb]}init(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;(e||n)&&(this._checkImagePlugins(),t.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),n&&t.commands.add("ckbox",new cx(t)))}_checkImagePlugins(){const t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||Pt("ckbox-plugin-image-feature-missing",t)}_initSchema(){const t=this.editor.model.schema;t.extend("$text",{allowAttributes:"ckboxLinkId"}),t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.addAttributeCheck((e,n)=>{if(!e.last.getAttribute("linkHref")&&"ckboxLinkId"===n)return!1})}_initConversion(){const t=this.editor;t.conversion.for("downcast").add(n=>{n.on("attribute:ckboxLinkId:imageBlock",(s,l,h)=>{const{writer:p,mapper:b,consumable:A}=h;if(!A.consume(l.item,s.name))return;const C=[...b.toViewElement(l.item).getChildren()].find(E=>"a"===E.name);C&&(l.item.hasAttribute("ckboxLinkId")?p.setAttribute("data-ckbox-resource-id",l.item.getAttribute("ckboxLinkId"),C):p.removeAttribute("data-ckbox-resource-id",C))},{priority:"low"}),n.on("attribute:ckboxLinkId",(s,l,h)=>{const{writer:p,mapper:b,consumable:A}=h;if(A.consume(l.item,s.name)){if(l.attributeOldValue){const C=Db(p,l.attributeOldValue);p.unwrap(b.toViewRange(l.range),C)}if(l.attributeNewValue){const C=Db(p,l.attributeNewValue);l.item.is("selection")?p.wrap(p.document.selection.getFirstRange(),C):p.wrap(b.toViewRange(l.range),C)}}},{priority:"low"})}),t.conversion.for("upcast").add(n=>{n.on("element:a",(s,l,h)=>{const{writer:p,consumable:b}=h;if(!l.viewItem.getAttribute("href")||!b.consume(l.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const A=l.viewItem.getAttribute("data-ckbox-resource-id");if(A)if(l.modelRange)for(let C of l.modelRange.getItems())C.is("$textProxy")&&(C=C.textNode),fx(C)&&p.setAttribute("ckboxLinkId",A,C);else p.setAttribute("ckboxLinkId",A,l.modelCursor.nodeBefore||l.modelCursor.parent)},{priority:"low"})}),t.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),t.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:n=>n.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}});const e=t.commands.get("replaceImageSource");e&&this.listenTo(e,"cleanupImage",(n,[s,l])=>{s.removeAttribute("ckboxImageId",l)})}_initFixers(){const t=this.editor,e=t.model,n=e.document.selection;var s;e.document.registerPostFixer((s=t,l=>{let h=!1;const p=s.model,b=s.commands.get("ckbox");if(!b)return h;for(const A of p.document.differ.getChanges()){if("insert"!==A.type&&"attribute"!==A.type)continue;const C="insert"===A.type?new wt(A.position,A.position.getShiftedBy(A.length)):A.range,E="attribute"===A.type&&"linkHref"===A.attributeKey&&null===A.attributeNewValue;for(const P of C.getItems()){if(E&&P.hasAttribute("ckboxLinkId")){l.removeAttribute("ckboxLinkId",P),h=!0;continue}const F=mx(P,b._chosenAssets);for(const j of F){const Y="image"===j.type?"ckboxImageId":"ckboxLinkId";j.id!==P.getAttribute(Y)&&(l.setAttribute(Y,j.id,P),h=!0)}}}return h})),e.document.registerPostFixer(function(s){return l=>!(s.hasAttribute("linkHref")||!s.hasAttribute("ckboxLinkId")||(l.removeSelectionAttribute("ckboxLinkId"),0))}(n))}}function mx(r,t){const e=r.is("element","imageInline")||r.is("element","imageBlock"),n=r.hasAttribute("linkHref");return[...t].filter(s=>"image"===s.type&&e?s.attributes.imageFallbackUrl===r.getAttribute("src"):"link"===s.type&&n?s.attributes.linkHref===r.getAttribute("linkHref"):void 0)}function Db(r,t){const e=r.createAttributeElement("a",{"data-ckbox-resource-id":t},{priority:5});return r.setCustomProperty("link",!0,e),e}function fx(r){return!!r.is("$text")||!(!r.is("element","imageInline")&&!r.is("element","imageBlock"))}var Mb=lt(443);Rt()(Mb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class vx extends Lt{static get pluginName(){return"CKFinderUI"}init(){const t=this.editor,n=t.t;if(t.ui.componentFactory.add("ckfinder",s=>{const l=t.commands.get("ckfinder"),h=new ve(s);return h.set({label:n("Insert image or file"),icon:'',tooltip:!0}),h.bind("isEnabled").to(l),h.on("execute",()=>{t.execute("ckfinder"),t.editing.view.focus()}),h}),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI"),l=t.commands.get("ckfinder");s.registerIntegration({name:"assetManager",observable:l,buttonViewCreator:()=>{const h=this.editor.ui.componentFactory.create("ckfinder");return h.icon=Ae.imageAssetManager,h.bind("label").to(s,"isImageSelected",p=>n(p?"Replace image with file manager":"Insert image with file manager")),h},formViewCreator:()=>{const h=this.editor.ui.componentFactory.create("ckfinder");return h.icon=Ae.imageAssetManager,h.withText=!0,h.bind("label").to(s,"isImageSelected",p=>n(p?"Replace with file manager":"Insert with file manager")),h.on("execute",()=>{s.dropdownView.isOpen=!1}),h}})}}}class kx extends Jt{constructor(t){super(t),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}execute(){const t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new W("ckfinder-unknown-openermethod",t);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const s=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=l=>{s&&s(l),l.on("files:choose",h=>{const p=h.data.files.toArray(),b=p.filter(E=>!E.isImage()),A=p.filter(E=>E.isImage());for(const E of b)t.execute("link",E.getUrl());const C=[];for(const E of A){const P=E.getUrl();C.push(P||l.request("file:getProxyUrl",{file:E}))}C.length&&Lb(t,C)}),l.on("file:choose:resizedImage",h=>{const p=h.data.resizedUrl;if(p)Lb(t,[p]);else{const b=t.plugins.get("Notification"),A=t.locale.t;b.showWarning(A("Could not obtain resized image URL."),{title:A("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[e](n)}}function Lb(r,t){if(r.commands.get("insertImage").isEnabled)r.execute("insertImage",{source:t});else{const e=r.plugins.get("Notification"),n=r.locale.t;e.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class _x extends Lt{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Hu,"LinkEditing"]}init(){const t=this.editor;if(!t.plugins.has("ImageBlockEditing")&&!t.plugins.has("ImageInlineEditing"))throw new W("ckfinder-missing-image-plugin",t);t.commands.add("ckfinder",new kx(t))}}class wx extends Lt{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",sn]}init(){const t=this.editor,e=t.plugins.get("CloudServices"),n=e.token,s=e.uploadUrl;if(!n)return;const l=t.plugins.get("CloudServicesCore");this._uploadGateway=l.createUploadGateway(n,s),t.plugins.get(sn).createUploadAdapter=h=>new Ax(this._uploadGateway,h)}}class Ax{constructor(t,e){this.uploadGateway=t,this.loader=e}upload(){return this.loader.file.then(t=>(this.fileUploader=this.uploadGateway.upload(t),this.fileUploader.on("progress",(e,n)=>{this.loader.uploadTotal=n.total,this.loader.uploaded=n.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class xx extends Jt{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=Oe(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Pb(e,t.schema)}execute(t={}){const e=this.editor.model,s=t.selection||e.document.selection;e.canEditAt(s)&&e.change(l=>{const h=s.getSelectedBlocks();for(const p of h)!p.is("element","paragraph")&&Pb(p,e.schema)&&l.rename(p,"paragraph")})}}function Pb(r,t){return t.checkChild(r.parent,"paragraph")&&!t.isObject(r)}class Cx extends Jt{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}execute(t){const e=this.editor.model,n=t.attributes;let s=t.position;e.canEditAt(s)&&e.change(l=>{if(s=this._findPositionToInsertParagraph(s,l),!s)return;const h=l.createElement("paragraph");n&&e.schema.setAllowedAttributes(h,n,l),e.insertContent(h,s),l.setSelection(h,"in")})}_findPositionToInsertParagraph(t,e){const n=this.editor.model;if(n.schema.checkChild(t,"paragraph"))return t;const s=n.schema.findAllowedParent(t,"paragraph");if(!s)return null;const l=t.parent,h=n.schema.checkChild(l,"$text");return l.isEmpty||h&&t.isAtEnd?n.createPositionAfter(l):!l.isEmpty&&h&&t.isAtStart?n.createPositionBefore(l):e.split(t,s).position}}const Nb=class extends Lt{static get pluginName(){return"Paragraph"}init(){const r=this.editor,t=r.model;r.commands.add("paragraph",new xx(r)),r.commands.add("insertParagraph",new Cx(r)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),r.conversion.elementToElement({model:"paragraph",view:"p"}),r.conversion.for("upcast").elementToElement({model:(e,{writer:n})=>Nb.paragraphLikeElements.has(e.name)?e.isEmpty?null:n.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let ap=Nb;ap.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class yx extends Jt{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some(e=>Ob(t,e,this.editor.model.schema))}execute(t){const e=this.editor.model,n=e.document,s=t.value;e.change(l=>{const h=Array.from(n.selection.getSelectedBlocks()).filter(p=>Ob(p,s,e.schema));for(const p of h)p.is("element",s)||l.rename(p,s)})}}function Ob(r,t,e){return e.checkChild(r.parent,t)&&!e.isObject(r)}const Bb="paragraph";class Ex extends Lt{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[ap]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const s of e)"paragraph"!==s.model&&(t.model.schema.register(s.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(s),n.push(s.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new yx(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",(s,l)=>{const h=t.model.document.selection.getFirstPosition().parent;n.some(p=>h.is("element",p.model))&&!h.is("element",Bb)&&0===h.childCount&&l.writer.rename(h,Bb)})}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:It.low+1})}}var Fb=lt(8733);Rt()(Fb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Sx extends Lt{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=function(h){const p=h.t,b={Paragraph:p("Paragraph"),"Heading 1":p("Heading 1"),"Heading 2":p("Heading 2"),"Heading 3":p("Heading 3"),"Heading 4":p("Heading 4"),"Heading 5":p("Heading 5"),"Heading 6":p("Heading 6")};return h.config.get("heading.options").map(A=>{const C=b[A.title];return C&&C!=A.title&&(A.title=C),A})}(t),s=e("Choose heading"),l=e("Heading");t.ui.componentFactory.add("heading",h=>{const p={},b=new di,A=t.commands.get("heading"),C=t.commands.get("paragraph"),E=[A];for(const F of n){const j={type:"button",model:new qm({label:F.title,class:F.class,role:"menuitemradio",withText:!0})};"paragraph"===F.model?(j.model.bind("isOn").to(C,"value"),j.model.set("commandName","paragraph"),E.push(C)):(j.model.bind("isOn").to(A,"value",Y=>Y===F.model),j.model.set({commandName:"heading",commandValue:F.model})),b.add(j),p[F.model]=F.title}const P=Zn(h);return hm(P,b,{ariaLabel:l,role:"menu"}),P.buttonView.set({ariaLabel:l,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:l}),P.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),P.bind("isEnabled").toMany(E,"isEnabled",(...F)=>F.some(j=>j)),P.buttonView.bind("label").to(A,"value",C,"value",(F,j)=>{const Y=F||j&&"paragraph";return"boolean"==typeof Y?s:p[Y]?p[Y]:s}),this.listenTo(P,"execute",F=>{const{commandName:j,commandValue:Y}=F.source;t.execute(j,Y?{value:Y}:void 0),t.editing.view.focus()}),P})}}function zb(r){return r.createContainerElement("figure",{class:"image"},[r.createEmptyElement("img"),r.createSlot("children")])}function Rb(r,t){const e=r.plugins.get("ImageUtils"),n=r.plugins.has("ImageInlineEditing")&&r.plugins.has("ImageBlockEditing");return l=>e.isInlineImageView(l)?n&&("block"==l.getStyle("display")||l.findAncestor(e.isBlockImageView)?"imageBlock":"imageInline")!==t?null:function s(l){const h={name:!0};return l.hasAttribute("src")&&(h.attributes=["src"]),h}(l):null}function lp(r,t){const e=Oe(t.getSelectedBlocks());return!e||r.isObject(e)||e.isEmpty&&"listItem"!=e.name?"imageBlock":"imageInline"}function Jc(r){return r&&r.endsWith("px")?parseInt(r):null}function Zb(r){const t=Jc(r.getStyle("width")),e=Jc(r.getStyle("height"));return!(!t||!e)}var Ix=Object.defineProperty,Ub=Object.getOwnPropertySymbols,Dx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,jb=(r,t,e)=>t in r?Ix(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Vb=(r,t)=>{for(var e in t||(t={}))Dx.call(t,e)&&jb(r,e,t[e]);if(Ub)for(var e of Ub(t))Mx.call(t,e)&&jb(r,e,t[e]);return r};const Lx=/^(image|image-inline)$/;class Ci extends Lt{constructor(){super(...arguments),this._domEmitter=new(bi())}static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null,s={}){const l=this.editor,h=l.model,p=h.document.selection,b=qb(l,e||p,n);t=Vb(Vb({},Object.fromEntries(p.getAttributes())),t);for(const A in t)h.schema.checkAttribute(b,A)||delete t[A];return h.change(A=>{const{setImageSizes:C=!0}=s,E=A.createElement(b,t);return h.insertObject(E,e,null,{setSelection:"on",findOptimalPosition:e||"imageInline"==b?void 0:"auto"}),E.parent?(C&&this.setImageNaturalSizeAttributes(E),E):null})}setImageNaturalSizeAttributes(t){const e=t.getAttribute("src");e&&(t.getAttribute("width")||t.getAttribute("height")||this.editor.model.change(n=>{const s=new Yt.window.Image;this._domEmitter.listenTo(s,"load",()=>{t.getAttribute("width")||t.getAttribute("height")||this.editor.model.enqueueChange(n.batch,l=>{l.setAttribute("width",s.naturalWidth,t),l.setAttribute("height",s.naturalHeight,t)}),this._domEmitter.stopListening(s,"load")}),s.src=e}))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let s=e.parent;for(;s;){if(s.is("element")&&this.isImageWidget(s))return s;s=s.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:Lx})}isImageAllowed(){const t=this.editor.model.document.selection;return function(e,n){if("imageBlock"==qb(e,n,null)){const l=function(h,p){const A=zf(h,p).start.parent;return A.isEmpty&&!A.is("element","$root")?A.parent:A}(n,e.model);if(e.model.schema.checkChild(l,"imageBlock"))return!0}else if(e.model.schema.checkChild(n.focus,"imageInline"))return!0;return!1}(this.editor,t)&&[...t.focus.getAncestors()].every(n=>!n.is("element","imageBlock"))}toImageWidget(t,e,n){return e.setCustomProperty("image",!0,t),Ju(t,e,{label:()=>{const s=this.findViewImgElement(t).getAttribute("alt");return s?`${s} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&He(t)}isBlockImage(t){return!!t&&t.is("element","imageBlock")}isInlineImage(t){return!!t&&t.is("element","imageInline")}findViewImgElement(t){if(this.isInlineImageView(t))return t;const e=this.editor.editing.view;for(const{item:n}of e.createRangeIn(t))if(this.isInlineImageView(n))return n}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function qb(r,t,e){const n=r.model.schema,s=r.config.get("image.insert.type");return r.plugins.has("ImageBlockEditing")?r.plugins.has("ImageInlineEditing")?e||("inline"===s?"imageInline":"auto"!==s?"imageBlock":t.is("selection")?lp(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class Px extends Jt{refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.value=!(!this.isEnabled||!t.hasAttribute("alt"))&&t.getAttribute("alt")}execute(t){const e=this.editor,n=e.plugins.get("ImageUtils"),s=e.model,l=n.getClosestSelectedImageElement(s.document.selection);s.change(h=>{h.setAttribute("alt",t.newValue,l)})}}class Nx extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Px(this.editor))}}var Yb=lt(1905);Rt()(Yb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Hb=lt(6764);Rt()(Hb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Fx extends Wt{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Ye,this.keystrokes=new vi,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._focusables=new Ri,this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),L({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}_createLabeledInputView(){const t=this.locale.t,e=new Cr(this.locale,Pc);return e.label=t("Text alternative"),e}}function Gb(r){const t=r.editing.view,e=Ai.defaultPositions,n=r.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(t.document.selection)),positions:[e.northArrowSouth,e.northArrowSouthWest,e.northArrowSouthEast,e.southArrowNorth,e.southArrowNorthWest,e.southArrowNorthEast,e.viewportStickyNorth]}}class zx extends Lt{static get requires(){return[Rc]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",n=>{const s=t.commands.get("imageTextAlternative"),l=new ve(n);return l.set({label:e("Change image text alternative"),icon:Ae.textAlternative,tooltip:!0}),l.bind("isEnabled").to(s,"isEnabled"),l.bind("isOn").to(s,"value",h=>!!h),this.listenTo(l,"execute",()=>{this._showForm()}),l})}_createForm(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(ct(Fx))(t.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(s,l)=>{this._hideForm(!0),l()}),this.listenTo(t.ui,"update",()=>{n.getClosestSelectedImageWidget(e.selection)?this._isVisible&&function(s){const l=s.plugins.get("ContextualBalloon");if(s.plugins.get("ImageUtils").getClosestSelectedImageWidget(s.editing.view.document.selection)){const h=Gb(s);l.updatePosition(h)}}(t):this._hideForm(!0)}),et({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Gb(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class Wb extends Lt{static get requires(){return[Nx,zx]}static get pluginName(){return"ImageTextAlternative"}}function Qb(r,t){const e=(n,s,l)=>{if(!l.consumable.consume(s.item,n.name))return;const h=l.writer,p=l.mapper.toViewElement(s.item),b=r.findViewImgElement(p);null===s.attributeNewValue?(h.removeAttribute("srcset",b),h.removeAttribute("sizes",b)):s.attributeNewValue&&(h.setAttribute("srcset",s.attributeNewValue,b),h.setAttribute("sizes","100vw",b))};return n=>{n.on(`attribute:srcset:${t}`,e)}}function $c(r,t,e){const n=(s,l,h)=>{if(!h.consumable.consume(l.item,s.name))return;const p=h.writer,b=h.mapper.toViewElement(l.item),A=r.findViewImgElement(b);p.setAttribute(l.attributeKey,l.attributeNewValue||"",A)};return s=>{s.on(`attribute:${e}:${t}`,n)}}class Xb extends Vi{observe(t){this.listenTo(t,"load",(e,n)=>{const s=n.target;this.checkShouldIgnoreEventFromTarget(s)||"IMG"==s.tagName&&this._fireEvents(n)},{useCapture:!0})}stopObserving(t){this.stopListening(t)}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}var Rx=Object.defineProperty,Kb=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Ux=Object.prototype.propertyIsEnumerable,Jb=(r,t,e)=>t in r?Rx(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,td=(r,t)=>{for(var e in t||(t={}))Zx.call(t,e)&&Jb(r,e,t[e]);if(Kb)for(var e of Kb(t))Ux.call(t,e)&&Jb(r,e,t[e]);return r};class jx extends Jt{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||"block"===e&&kt("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===e&&kt("image-inline-plugin-required")}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=Ze(t.source),n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageUtils"),l=Object.fromEntries(n.getAttributes());e.forEach((h,p)=>{const b=n.getSelectedElement();if("string"==typeof h&&(h={src:h}),p&&b&&s.isImage(b)){const A=this.editor.model.createPositionAfter(b);s.insertImage(td(td({},h),l),A)}else s.insertImage(td(td({},h),l))})}}class Vx extends Jt{constructor(t){super(t),this.decorate("cleanupImage")}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=t.isImage(e),this.value=this.isEnabled?e.getAttribute("src"):null}execute(t){const e=this.editor.model.document.selection.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");this.editor.model.change(s=>{s.setAttribute("src",t.source,e),this.cleanupImage(s,e),n.setImageNaturalSizeAttributes(e)})}cleanupImage(t,e){t.removeAttribute("srcset",e),t.removeAttribute("sizes",e),t.removeAttribute("sources",e),t.removeAttribute("width",e),t.removeAttribute("height",e),t.removeAttribute("alt",e)}}class cp extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(Xb),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new jx(t),s=new Vx(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",s),t.commands.add("imageInsert",n)}}class $b extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils"),s="imageBlock"===t?"figure":"img";function l(h,p,b,A){h.on(`attribute:${p}:${t}`,(C,E,P)=>{if(!P.consumable.consume(E.item,C.name))return;const F=P.writer,j=P.mapper.toViewElement(E.item),Y=n.findViewImgElement(j);if(null!==E.attributeNewValue?F.setAttribute(b,E.attributeNewValue,Y):F.removeAttribute(b,Y),E.item.hasAttribute("sources"))return;const $=E.item.hasAttribute("resizedWidth");if("imageInline"===t&&!$&&!A)return;const st=E.item.getAttribute("width"),ft=E.item.getAttribute("height");st&&ft&&F.setStyle("aspect-ratio",`${st}/${ft}`,Y)})}e.conversion.for("upcast").attributeToAttribute({view:{name:s,styles:{width:/.+/}},model:{key:"width",value:h=>Zb(h)?Jc(h.getStyle("width")):null}}).attributeToAttribute({view:{name:s,key:"width"},model:"width"}).attributeToAttribute({view:{name:s,styles:{height:/.+/}},model:{key:"height",value:h=>Zb(h)?Jc(h.getStyle("height")):null}}).attributeToAttribute({view:{name:s,key:"height"},model:"height"}),e.conversion.for("editingDowncast").add(h=>{l(h,"width","width",!0),l(h,"height","height",!0)}),e.conversion.for("dataDowncast").add(h=>{l(h,"width","width",!1),l(h,"height","height",!1)})}}class tv extends Jt{constructor(t,e){super(t),this._modelElementName=e}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled="imageBlock"===this._modelElementName?t.isInlineImage(e):t.isBlockImage(e)}execute(t={}){const n=this.editor.model,s=this.editor.plugins.get("ImageUtils"),l=s.getClosestSelectedImageElement(n.document.selection),h=Object.fromEntries(l.getAttributes());return h.src||h.uploadId?n.change(p=>{const{setImageSizes:b=!0}=t,A=Array.from(n.markers).filter(P=>P.getRange().containsItem(l)),C=s.insertImage(h,n.createSelection(l,"on"),this._modelElementName,{setImageSizes:b});if(!C)return null;const E=p.createRangeOn(C);for(const P of A){const F=P.getRange(),j="$graveyard"!=F.root.rootName?F.getJoined(E,!0):E;p.updateMarker(P,{range:j})}return{oldElement:l,newElement:C}}):null}}var ev=lt(2873);Rt()(ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class iv extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const t=this.editor.model.schema;t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["placeholder"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("editingDowncast").add(s=>{s.on("attribute:placeholder",(l,h,p)=>{if(!p.consumable.test(h.item,l.name)||!h.item.is("element","imageBlock")&&!h.item.is("element","imageInline"))return;p.consumable.consume(h.item,l.name);const b=p.writer,A=p.mapper.toViewElement(h.item),C=n.findViewImgElement(A);h.attributeNewValue?(b.addClass("image_placeholder",C),b.setStyle("background-image",`url(${h.attributeNewValue})`,C),b.setCustomProperty("editingPipeline:doNotReuseOnce",!0,C)):(b.removeClass("image_placeholder",C),b.removeStyle("background-image",C))})})}_setupLoadListener(){const t=this.editor,e=t.model,n=t.editing,s=n.view,l=t.plugins.get("ImageUtils");s.addObserver(Xb),this.listenTo(s.document,"imageLoaded",(h,p)=>{const b=s.domConverter.mapDomToView(p.target);if(!b)return;const A=l.getImageWidgetFromImageView(b);if(!A)return;const C=n.mapper.toModelElement(A);C&&C.hasAttribute("placeholder")&&e.enqueueChange({isUndoable:!1},E=>{E.removeAttribute("placeholder",C)})})}}class nv extends Lt{static get requires(){return[cp,$b,Ci,iv,fn]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new tv(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,s=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:h})=>zb(h)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:h})=>s.toImageWidget(zb(h),h,e("image widget"))}),n.for("downcast").add($c(s,"imageBlock","src")).add($c(s,"imageBlock","alt")).add(Qb(s,"imageBlock")),n.for("upcast").elementToElement({view:Rb(t,"imageBlock"),model:(l,{writer:h})=>h.createElement("imageBlock",l.hasAttribute("src")?{src:l.getAttribute("src")}:void 0)}).add(function(l){const h=(p,b,A)=>{if(!A.consumable.test(b.viewItem,{name:!0,classes:"image"}))return;const C=l.findViewImgElement(b.viewItem);if(!C||!A.consumable.test(C,{name:!0}))return;A.consumable.consume(b.viewItem,{name:!0,classes:"image"});const E=Oe(A.convertItem(C,b.modelCursor).modelRange.getItems());E?(A.convertChildren(b.viewItem,E),A.updateConversionResult(E,b)):A.consumable.revert(b.viewItem,{name:!0,classes:"image"})};return p=>{p.on("element:figure",h)}}(s))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,s=t.plugins.get("ImageUtils"),l=t.plugins.get("ClipboardPipeline");this.listenTo(l,"inputTransformation",(h,p)=>{const b=Array.from(p.content.getChildren());let A;if(!b.every(s.isInlineImageView))return;A=p.targetRanges?t.editing.mapper.toModelRange(p.targetRanges[0]):e.document.selection.getFirstRange();const C=e.createSelection(A);if("imageBlock"===lp(e.schema,C)){const E=new ko(n.document),P=b.map(F=>E.createElement("figure",{class:"image"},F));p.content=E.createDocumentFragment(P)}}),this.listenTo(l,"contentInsertion",(h,p)=>{"paste"===p.method&&e.change(b=>{const A=b.createRangeIn(p.content);for(const C of A.getItems())C.is("element","imageBlock")&&s.setImageNaturalSizeAttributes(C)})})}}var ov=lt(3535);Rt()(ov.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Hx extends Wt{constructor(t,e=[]){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri,this.children=this.createCollection(),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const n of e)this.children.add(n),this._focusables.add(n),n instanceof y1&&this._focusables.addMany(n.children);if(this._focusables.length>1)for(const n of this._focusables)Gx(n)&&(n.focusCycler.on("forwardCycle",s=>{this._focusCycler.focusNext(),s.stop()}),n.focusCycler.on("backwardCycle",s=>{this._focusCycler.focusPrevious(),s.stop()}));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),L({view:this});for(const e of this._focusables)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}function Gx(r){return"focusCycler"in r}class rv extends Lt{constructor(t){super(t),this._integrations=new Map,t.config.define("image.insert.integrations",["upload","assetManager","url"])}static get pluginName(){return"ImageInsertUI"}static get requires(){return[Ci]}init(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(t.model.document,"change",()=>{this.isImageSelected=n.isImage(e.getSelectedElement())});const s=l=>this._createToolbarComponent(l);t.ui.componentFactory.add("insertImage",s),t.ui.componentFactory.add("imageInsert",s)}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:s,requiresForm:l}){this._integrations.has(t)&&kt("image-insert-integration-exists",{name:t}),this._integrations.set(t,{observable:e,buttonViewCreator:n,formViewCreator:s,requiresForm:!!l})}_createToolbarComponent(t){const e=this.editor,n=t.t,s=this._prepareIntegrations();if(!s.length)return null;let l;const h=s[0];if(1==s.length){if(!h.requiresForm)return h.buttonViewCreator(!0);l=h.buttonViewCreator(!0)}else{const A=h.buttonViewCreator(!1);l=new Lc(t,A),l.tooltip=!0,l.bind("label").to(this,"isImageSelected",C=>n(C?"Replace image":"Insert image"))}const p=this.dropdownView=Zn(t,l),b=s.map(({observable:A})=>A);return p.bind("isEnabled").toMany(b,"isEnabled",(...A)=>A.some(C=>C)),p.once("change:isOpen",()=>{const A=s.map(({formViewCreator:E})=>E(1==s.length)),C=new Hx(e.locale,A);p.panelView.children.add(C)}),p}_prepareIntegrations(){const t=this.editor.config.get("image.insert.integrations"),e=[];if(!t.length)return kt("image-insert-integrations-not-specified"),e;for(const n of t)this._integrations.has(n)?e.push(this._integrations.get(n)):["upload","assetManager","url"].includes(n)||kt("image-insert-unknown-integration",{item:n});return e.length||kt("image-insert-integrations-not-registered"),e}}var sv=lt(3508);Rt()(sv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Qx extends Lt{static get requires(){return[nv,Ea,Wb,rv]}static get pluginName(){return"ImageBlock"}}class Xx extends Lt{static get requires(){return[cp,$b,Ci,iv,fn]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck((n,s)=>{if(n.endsWith("caption")&&"imageInline"===s.name)return!1}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new tv(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,s=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(l,{writer:h})=>h.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(l,{writer:h})=>{return s.toImageWidget((p=h).createContainerElement("span",{class:"image-inline"},p.createEmptyElement("img")),h,e("image widget"));var p}}),n.for("downcast").add($c(s,"imageInline","src")).add($c(s,"imageInline","alt")).add(Qb(s,"imageInline")),n.for("upcast").elementToElement({view:Rb(t,"imageInline"),model:(l,{writer:h})=>h.createElement("imageInline",l.hasAttribute("src")?{src:l.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,s=t.plugins.get("ImageUtils"),l=t.plugins.get("ClipboardPipeline");this.listenTo(l,"inputTransformation",(h,p)=>{const b=Array.from(p.content.getChildren());let A;if(!b.every(s.isBlockImageView))return;A=p.targetRanges?t.editing.mapper.toModelRange(p.targetRanges[0]):e.document.selection.getFirstRange();const C=e.createSelection(A);if("imageInline"===lp(e.schema,C)){const E=new ko(n.document),P=b.map(F=>1===F.childCount?(Array.from(F.getAttributes()).forEach(j=>E.setAttribute(...j,s.findViewImgElement(F))),F.getChild(0)):F);p.content=E.createDocumentFragment(P)}}),this.listenTo(l,"contentInsertion",(h,p)=>{"paste"===p.method&&e.change(b=>{const A=b.createRangeIn(p.content);for(const C of A.getItems())C.is("element","imageInline")&&s.setImageNaturalSizeAttributes(C)})})}}class Kx extends Lt{static get requires(){return[Xx,Ea,Wb,rv]}static get pluginName(){return"ImageInline"}}class av extends Lt{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Ci]}getCaptionFromImageModelElement(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(t){const e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(t){const e=this.editor.plugins.get("ImageUtils");return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}}class Jx extends Jt{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(nv))return this.isEnabled=!1,void(this.value=!1);const s=t.model.document.selection,l=s.getSelectedElement();if(!l){const h=e.getCaptionFromModelSelection(s);return this.isEnabled=!!h,void(this.value=!!h)}this.isEnabled=n.isImage(l),this.value=!!this.isEnabled&&!!e.getCaptionFromImageModelElement(l)}execute(t={}){const{focusCaptionOnShow:e}=t;this.editor.model.change(n=>{this.value?this._hideImageCaption(n):this._showImageCaption(n,e)})}_showImageCaption(t,e){const n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageCaptionEditing"),l=this.editor.plugins.get("ImageUtils");let h=n.getSelectedElement();const p=s._getSavedCaption(h);l.isInlineImage(h)&&(this.editor.execute("imageTypeBlock"),h=n.getSelectedElement());const b=p||t.createElement("caption");t.append(b,h),e&&t.setSelection(b,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,s=e.plugins.get("ImageCaptionEditing"),l=e.plugins.get("ImageCaptionUtils");let h,p=n.getSelectedElement();p?h=l.getCaptionFromImageModelElement(p):(h=l.getCaptionFromModelSelection(n),p=h.parent),s._saveCaption(p,h),t.setSelection(p,"on"),t.remove(h)}}class $x extends Lt{constructor(t){super(t),this._savedCaptionsMap=new WeakMap}static get requires(){return[Ci,av]}static get pluginName(){return"ImageCaptionEditing"}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new Jx(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),s=t.plugins.get("ImageCaptionUtils"),l=t.t;t.conversion.for("upcast").elementToElement({view:h=>s.matchImageCaptionViewElement(h),model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(h,{writer:p})=>n.isBlockImage(h.parent)?p.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(h,{writer:p})=>{if(!n.isBlockImage(h.parent))return null;const b=p.createEditableElement("figcaption");p.setCustomProperty("imageCaption",!0,b),b.placeholder=l("Enter image caption"),Wl({view:e,element:b,keepOnFocus:!0});const A=h.parent.getAttribute("alt");return Ff(b,p,{label:A?l("Caption for image: %0",[A]):l("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),s=t.commands.get("imageTypeInline"),l=t.commands.get("imageTypeBlock"),h=p=>{if(!p.return)return;const{oldElement:b,newElement:A}=p.return;if(!b)return;if(e.isBlockImage(b)){const E=n.getCaptionFromImageModelElement(b);if(E)return void this._saveCaption(A,E)}const C=this._getSavedCaption(b);C&&this._saveCaption(A,C)};s&&this.listenTo(s,"execute",h,{priority:"low"}),l&&this.listenTo(l,"execute",h,{priority:"low"})}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?me.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}_registerCaptionReconversion(){const t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),s=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",()=>{const l=e.document.differ.getChanges();for(const h of l){if("alt"!==h.attributeKey)continue;const p=h.range.start.nodeAfter;if(n.isBlockImage(p)){const b=s.getCaptionFromImageModelElement(p);if(!b)return;t.editing.reconvertItem(b)}}})}}class tC extends Lt{static get requires(){return[av]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),s=t.t;t.ui.componentFactory.add("toggleImageCaption",l=>{const h=t.commands.get("toggleImageCaption"),p=new ve(l);return p.set({icon:Ae.caption,tooltip:!0,isToggleable:!0}),p.bind("isOn","isEnabled").to(h,"value","isEnabled"),p.bind("label").to(h,"value",b=>s(b?"Toggle caption off":"Toggle caption on")),this.listenTo(p,"execute",()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const b=n.getCaptionFromModelSelection(t.model.document.selection);if(b){const A=t.editing.mapper.toViewElement(b);e.scrollToTheSelection(),e.change(C=>{C.addClass("image__caption_highlighted",A)})}t.editing.view.focus()}),p})}}var lv=lt(2640);function cv(r){const t=r.map(e=>e.replace("+","\\+"));return new RegExp(`^image\\/(${t.join("|")})$`)}function iC(r){return new Promise((t,e)=>{const n=r.getAttribute("src");fetch(n).then(s=>s.blob()).then(s=>{const l=dv(s,n),h=l.replace("image/",""),p=new File([s],`image.${h}`,{type:l});t(p)}).catch(s=>{return s&&"TypeError"===s.name?(l=n,(h=l,new Promise((p,b)=>{const A=Yt.document.createElement("img");A.addEventListener("load",()=>{const C=Yt.document.createElement("canvas");C.width=A.width,C.height=A.height,C.getContext("2d").drawImage(A,0,0),C.toBlob(E=>E?p(E):b())}),A.addEventListener("error",()=>b()),A.src=h})).then(h=>{const p=dv(h,l),b=p.replace("image/","");return new File([h],`image.${b}`,{type:p})})).then(t).catch(e):e(s);var l,h})})}function dv(r,t){return r.type?r.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}Rt()(lv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class nC extends Lt{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=s=>{const l=new BA(s),h=t.commands.get("uploadImage"),p=t.config.get("image.upload.types"),b=cv(p);return l.set({acceptedType:p.map(A=>`image/${A}`).join(","),allowMultipleFiles:!0,label:e("Upload image from computer"),icon:Ae.imageUpload,tooltip:!0}),l.bind("isEnabled").to(h),l.on("done",(A,C)=>{const E=Array.from(C).filter(P=>b.test(P.type));E.length&&(t.execute("uploadImage",{file:E}),t.editing.view.focus())}),l};if(t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI"),l=t.commands.get("uploadImage");s.registerIntegration({name:"upload",observable:l,buttonViewCreator:()=>{const h=t.ui.componentFactory.create("uploadImage");return h.bind("label").to(s,"isImageSelected",p=>e(p?"Replace image from computer":"Upload image from computer")),h},formViewCreator:()=>{const h=t.ui.componentFactory.create("uploadImage");return h.withText=!0,h.bind("label").to(s,"isImageSelected",p=>e(p?"Replace from computer":"Upload from computer")),h.on("execute",()=>{s.dropdownView.isOpen=!1}),h}})}}}var hv=lt(3689);Rt()(hv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var uv=lt(4036);Rt()(uv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pv=lt(3773);Rt()(pv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class aC extends Lt{constructor(t){super(t),this.uploadStatusChange=(e,n,s)=>{const l=this.editor,h=n.item,p=h.getAttribute("uploadId");if(!s.consumable.consume(n.item,e.name))return;const b=l.plugins.get("ImageUtils"),A=l.plugins.get(sn),C=p?n.attributeNewValue:null,E=this.placeholder,P=l.editing.mapper.toViewElement(h),F=s.writer;if("reading"==C)return gv(P,F),void mv(b,E,P,F);if("uploading"==C){const j=A.loaders.get(p);return gv(P,F),void(j?(fv(P,F),function(Y,$,st,ft){const At=function(Ft){const jt=Ft.createUIElement("div",{class:"ck-progress-bar"});return Ft.setCustomProperty("progressBar",!0,jt),jt}($);$.insert($.createPositionAt(Y,"end"),At),st.on("change:uploadedPercent",(Ft,jt,ae)=>{ft.change(ce=>{ce.setStyle("width",ae+"%",At)})})}(P,F,j,l.editing.view),function(Y,$,st,ft){if(ft.data){const At=Y.findViewImgElement($);st.setAttribute("src",ft.data,At)}}(b,P,F,j)):mv(b,E,P,F))}"complete"==C&&A.loaders.get(p)&&function(j,Y,$){const st=Y.createUIElement("div",{class:"ck-image-upload-complete-icon"});Y.insert(Y.createPositionAt(j,"end"),st),setTimeout(()=>{$.change(ft=>ft.remove(ft.createRangeOn(st)))},3e3)}(P,F,l.editing.view),vv(P,F,"progressBar"),fv(P,F),F.removeClass("ck-appear",P)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function gv(r,t){r.hasClass("ck-appear")||t.addClass("ck-appear",r)}function mv(r,t,e,n){e.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",e);const s=r.findViewImgElement(e);s.getAttribute("src")!==t&&n.setAttribute("src",t,s),bv(e,"placeholder")||n.insert(n.createPositionAfter(s),function(l){const h=l.createUIElement("div",{class:"ck-upload-placeholder-loader"});return l.setCustomProperty("placeholder",!0,h),h}(n))}function fv(r,t){r.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",r),vv(r,t,"placeholder")}function bv(r,t){for(const e of r.getChildren())if(e.getCustomProperty(t))return e}function vv(r,t,e){const n=bv(r,e);n&&t.remove(t.createRangeOn(n))}var lC=Object.defineProperty,cC=Object.defineProperties,dC=Object.getOwnPropertyDescriptors,kv=Object.getOwnPropertySymbols,hC=Object.prototype.hasOwnProperty,uC=Object.prototype.propertyIsEnumerable,_v=(r,t,e)=>t in r?lC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class pC extends Jt{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=Ze(t.file),n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageUtils"),l=Object.fromEntries(n.getAttributes());e.forEach((h,p)=>{const b=n.getSelectedElement();if(p&&b&&s.isImage(b)){const A=this.editor.model.createPositionAfter(b);this._uploadImage(h,l,A)}else this._uploadImage(h,l)})}_uploadImage(t,e,n){const s=this.editor,l=s.plugins.get(sn).createLoader(t),h=s.plugins.get("ImageUtils");var p;l&&h.insertImage((p=((A,C)=>{for(var E in C||(C={}))hC.call(C,E)&&_v(A,E,C[E]);if(kv)for(var E of kv(C))uC.call(C,E)&&_v(A,E,C[E]);return A})({},e),cC(p,dC({uploadId:l.id}))),n)}}class gC extends Lt{constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[sn,Hu,fn,Ci]}static get pluginName(){return"ImageUploadEditing"}init(){const t=this.editor,e=t.model.document,n=t.conversion,s=t.plugins.get(sn),l=t.plugins.get("ImageUtils"),h=t.plugins.get("ClipboardPipeline"),p=cv(t.config.get("image.upload.types")),b=new pC(t);t.commands.add("uploadImage",b),t.commands.add("imageUpload",b),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(A,C)=>{if(E=C.dataTransfer,Array.from(E.types).includes("text/html")&&""!==E.getData("text/html"))return;var E;const P=Array.from(C.dataTransfer.files).filter(F=>!!F&&p.test(F.type));P.length&&(A.stop(),t.model.change(F=>{C.targetRanges&&F.setSelection(C.targetRanges.map(j=>t.editing.mapper.toModelRange(j))),t.execute("uploadImage",{file:P})}))}),this.listenTo(h,"inputTransformation",(A,C)=>{const E=Array.from(t.editing.view.createRangeIn(C.content)).map(F=>F.item).filter(F=>{return!(!l.isInlineImageView(Y=F)||!Y.getAttribute("src")||!Y.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!Y.getAttribute("src").match(/^blob:/g)||F.getAttribute("uploadProcessed"));var Y}).map(F=>({promise:iC(F),imageElement:F}));if(!E.length)return;const P=new ko(t.editing.view.document);for(const F of E){P.setAttribute("uploadProcessed",!0,F.imageElement);const j=s.createLoader(F.promise);j&&(P.setAttribute("src","",F.imageElement),P.setAttribute("uploadId",j.id,F.imageElement))}}),t.editing.view.document.on("dragover",(A,C)=>{C.preventDefault()}),e.on("change",()=>{const A=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),C=new Set;for(const E of A)if("insert"==E.type&&"$text"!=E.name){const P=E.position.nodeAfter,F="$graveyard"==E.position.root.rootName;for(const j of mC(t,P)){const Y=j.getAttribute("uploadId");if(!Y)continue;const $=s.loaders.get(Y);$&&(F?C.has(Y)||$.abort():(C.add(Y),this._uploadImageElements.set(Y,j),"idle"==$.status&&this._readAndUpload($)))}}}),this.on("uploadComplete",(A,{imageElement:C,data:E})=>{const P=E.urls?E.urls:E;this.editor.model.change(F=>{F.setAttribute("src",P.default,C),this._parseAndSetSrcsetAttributeOnImage(P,C,F),l.setImageNaturalSizeAttributes(C)})},{priority:"low"})}afterInit(){const t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(t){const e=this.editor,n=e.model,s=e.locale.t,l=e.plugins.get(sn),h=e.plugins.get(Hu),p=e.plugins.get("ImageUtils"),b=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},C=>{C.setAttribute("uploadStatus","reading",b.get(t.id))}),t.read().then(()=>{const C=t.upload(),E=b.get(t.id);if(it.isSafari){const P=e.editing.mapper.toViewElement(E),F=p.findViewImgElement(P);e.editing.view.once("render",()=>{if(!F.parent)return;const j=e.editing.view.domConverter.mapViewToDom(F.parent);if(!j)return;const Y=j.style.display;j.style.display="none",j._ckHack=j.offsetHeight,j.style.display=Y})}return n.enqueueChange({isUndoable:!1},P=>{P.setAttribute("uploadStatus","uploading",E)}),C}).then(C=>{n.enqueueChange({isUndoable:!1},E=>{const P=b.get(t.id);E.setAttribute("uploadStatus","complete",P),this.fire("uploadComplete",{data:C,imageElement:P})}),A()}).catch(C=>{if("error"!==t.status&&"aborted"!==t.status)throw C;"error"==t.status&&C&&h.showWarning(C,{title:s("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},E=>{E.remove(b.get(t.id))}),A()});function A(){n.enqueueChange({isUndoable:!1},C=>{const E=b.get(t.id);C.removeAttribute("uploadId",E),C.removeAttribute("uploadStatus",E),b.delete(t.id)}),l.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let s=0;const l=Object.keys(t).filter(h=>{const p=parseInt(h,10);if(!isNaN(p))return s=Math.max(s,p),!0}).map(h=>`${t[h]} ${h}w`).join(", ");if(""!=l){const h={srcset:l};e.hasAttribute("width")||e.hasAttribute("height")||(h.width=s),n.setAttributes(h,e)}}}function mC(r,t){const e=r.plugins.get("ImageUtils");return Array.from(r.model.createRangeOn(t)).filter(n=>e.isImage(n.item)).map(n=>n.item)}var wv=lt(6270);Rt()(wv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class bC extends Jt{constructor(t,e){super(t),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(e.map(n=>{if(n.isDefault)for(const s of n.modelElements)this._defaultStyles[s]=n.name;return[n.name,n]}))}refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.value=!!this.isEnabled&&(t.hasAttribute("imageStyle")?t.getAttribute("imageStyle"):this._defaultStyles[t.name])}execute(t={}){const e=this.editor,n=e.model,s=e.plugins.get("ImageUtils");n.change(l=>{const h=t.value,{setImageSizes:p=!0}=t;let b=s.getClosestSelectedImageElement(n.document.selection);h&&this.shouldConvertImageType(h,b)&&(this.editor.execute(s.isBlockImage(b)?"imageTypeInline":"imageTypeBlock",{setImageSizes:p}),b=s.getClosestSelectedImageElement(n.document.selection)),!h||this._styles.get(h).isDefault?l.removeAttribute("imageStyle",b):l.setAttribute("imageStyle",h,b),p&&s.setImageNaturalSizeAttributes(b)})}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}var vC=Object.defineProperty,Av=Object.getOwnPropertySymbols,kC=Object.prototype.hasOwnProperty,_C=Object.prototype.propertyIsEnumerable,xv=(r,t,e)=>t in r?vC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Cv=(r,t)=>{for(var e in t||(t={}))kC.call(t,e)&&xv(r,e,t[e]);if(Av)for(var e of Av(t))_C.call(t,e)&&xv(r,e,t[e]);return r};const{objectFullWidth:wC,objectInline:yv,objectLeft:Ev,objectRight:dp,objectCenter:hp,objectBlockLeft:Tv,objectBlockRight:Sv}=Ae,ed={get inline(){return{name:"inline",title:"In line",icon:yv,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Ev,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Tv,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:hp,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:dp,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Sv,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:hp,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:dp,modelElements:["imageBlock"],className:"image-style-side"}}},Iv={full:wC,left:Tv,right:Sv,center:hp,inlineLeft:Ev,inlineRight:dp,inline:yv},Dv=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function Mv(r){kt("image-style-configuration-definition-invalid",r)}const up={normalizeStyles:function(r){return(r.configuredStyles.options||[]).map(t=>{return"string"==typeof(e="string"==typeof(e=t)?ed[e]?Cv({},ed[e]):{name:e}:function(n,s){const l=Cv({},s);for(const h in n)Object.prototype.hasOwnProperty.call(s,h)||(l[h]=n[h]);return l}(ed[e.name],e)).icon&&(e.icon=Iv[e.icon]||e.icon),e;var e}).filter(t=>function(e,{isBlockPluginLoaded:n,isInlinePluginLoaded:s}){const{modelElements:l,name:h}=e;if(!(l&&l.length&&h))return Mv({style:e}),!1;{const p=[n?"imageBlock":null,s?"imageInline":null];if(!l.some(b=>p.includes(b)))return kt("image-style-missing-dependency",{style:e,missingPlugins:l.map(b=>"imageBlock"===b?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(t,r))},getDefaultStylesConfiguration:function(r,t){return r&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:r?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(r){return r.has("ImageBlockEditing")&&r.has("ImageInlineEditing")?[...Dv]:[]},warnInvalidStyle:Mv,DEFAULT_OPTIONS:ed,DEFAULT_ICONS:Iv,DEFAULT_DROPDOWN_DEFINITIONS:Dv};function Lv(r,t){for(const e of t)if(e.name===r)return e}class Pv extends Lt{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Ci]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=up,n=this.editor,s=n.plugins.has("ImageBlockEditing"),l=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(s,l)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:s,isInlinePluginLoaded:l}),this._setupConversion(s,l),this._setupPostFixer(),n.commands.add("imageStyle",new bC(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,s=n.model.schema,l=(h=this.normalizedStyles,(b,A,C)=>{if(!C.consumable.consume(A.item,b.name))return;const E=Lv(A.attributeNewValue,h),P=Lv(A.attributeOldValue,h),F=C.mapper.toViewElement(A.item),j=C.writer;P&&j.removeClass(P.className,F),E&&j.addClass(E.className,F)});var h;const p=function(b){const A={imageInline:b.filter(C=>!C.isDefault&&C.modelElements.includes("imageInline")),imageBlock:b.filter(C=>!C.isDefault&&C.modelElements.includes("imageBlock"))};return(C,E,P)=>{if(!E.modelRange)return;const F=E.viewItem,j=Oe(E.modelRange.getItems());if(j&&P.schema.checkAttribute(j,"imageStyle"))for(const Y of A[j.name])P.consumable.consume(F,{classes:Y.className})&&P.writer.setAttribute("imageStyle",Y.name,j)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",l),n.data.downcastDispatcher.on("attribute:imageStyle",l),t&&(s.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",p,{priority:"low"})),e&&(s.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",p,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(Ci),s=new Map(this.normalizedStyles.map(l=>[l.name,l]));e.registerPostFixer(l=>{let h=!1;for(const p of e.differ.getChanges())if("insert"==p.type||"attribute"==p.type&&"imageStyle"==p.attributeKey){let b="insert"==p.type?p.position.nodeAfter:p.range.start.nodeAfter;if(b&&b.is("element","paragraph")&&b.childCount>0&&(b=b.getChild(0)),!n.isImage(b))continue;const A=b.getAttribute("imageStyle");if(!A)continue;const C=s.get(A);C&&C.modelElements.includes(b.name)||(l.removeAttribute("imageStyle",b),h=!0)}return h})}}var Nv=lt(5083);Rt()(Nv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xC extends Lt{static get requires(){return[Pv]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=Ov(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const l of n)this._createButton(l);const s=Ov([...e.filter(te),...up.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const l of s)this._createDropdown(l,n)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,s=>{let l;const{defaultItem:h,items:p,title:b}=t,A=p.filter(F=>e.find(({name:j})=>Bv(j)===F)).map(F=>{const j=n.create(F);return F===h&&(l=j),j});p.length!==A.length&&up.warnInvalidStyle({dropdown:t});const C=Zn(s,Lc),E=C.buttonView,P=E.arrowView;return Ou(C,A,{enableActiveItemFocusOnDropdownOpen:!0}),E.set({label:Fv(b,l.label),class:null,tooltip:!0}),P.unbind("label"),P.set({label:b}),E.bind("icon").toMany(A,"isOn",(...F)=>{const j=F.findIndex(Pn);return j<0?l.icon:A[j].icon}),E.bind("label").toMany(A,"isOn",(...F)=>{const j=F.findIndex(Pn);return Fv(b,j<0?l.label:A[j].label)}),E.bind("isOn").toMany(A,"isOn",(...F)=>F.some(Pn)),E.bind("class").toMany(A,"isOn",(...F)=>F.some(Pn)?"ck-splitbutton_flatten":void 0),E.on("execute",()=>{A.some(({isOn:F})=>F)?C.isOpen=!C.isOpen:l.fire("execute")}),C.bind("isEnabled").toMany(A,"isEnabled",(...F)=>F.some(Pn)),this.listenTo(C,"execute",()=>{this.editor.editing.view.focus()}),C})}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(Bv(e),n=>{const s=this.editor.commands.get("imageStyle"),l=new ve(n);return l.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),l.bind("isEnabled").to(s,"isEnabled"),l.bind("isOn").to(s,"value",h=>h===e),l.on("execute",this._executeCommand.bind(this,e)),l})}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function Ov(r,t){for(const e of r)t[e.title]&&(e.title=t[e.title]);return r}function Bv(r){return`imageStyle:${r}`}function Fv(r,t){return(r?r+": ":"")+t}class CC extends Lt{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new Vl(t)),t.commands.add("outdent",new Vl(t))}}const zv='',Rv='';class yC extends Lt{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,s="ltr"==e.uiLanguageDirection?zv:Rv,l="ltr"==e.uiLanguageDirection?Rv:zv;this._defineButton("indent",n("Increase indent"),s),this._defineButton("outdent",n("Decrease indent"),l)}_defineButton(t,e,n){const s=this.editor;s.ui.componentFactory.add(t,l=>{const h=s.commands.get(t),p=new ve(l);return p.set({label:e,icon:n,tooltip:!0}),p.bind("isEnabled").to(h,"isEnabled"),this.listenTo(p,"execute",()=>{s.execute(t),s.editing.view.focus()}),p})}}class EC{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach(e=>this._definitions.add(e)):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",(e,n,s)=>{if(!s.consumable.test(n.item,"attribute:linkHref")||!n.item.is("selection")&&!s.schema.isInline(n.item))return;const l=s.writer,h=l.document.selection;for(const p of this._definitions){const b=l.createAttributeElement("a",p.attributes,{priority:5});p.classes&&l.addClass(p.classes,b);for(const A in p.styles)l.setStyle(A,p.styles[A],b);l.setCustomProperty("link",!0,b),p.callback(n.attributeNewValue)?n.item.is("selection")?l.wrap(h.getFirstRange(),b):l.wrap(s.mapper.toViewRange(n.range),b):l.unwrap(s.mapper.toViewRange(n.range),b)}},{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",(e,n,{writer:s,mapper:l})=>{const h=l.toViewElement(n.item),p=Array.from(h.getChildren()).find(b=>b.is("element","a"));for(const b of this._definitions){const A=ri(b.attributes);if(b.callback(n.attributeNewValue)){for(const[C,E]of A)"class"===C?s.addClass(E,p):s.setAttribute(C,E,p);b.classes&&s.addClass(b.classes,p);for(const C in b.styles)s.setStyle(C,b.styles[C],p)}else{for(const[C,E]of A)"class"===C?s.removeClass(E,p):s.removeAttribute(C,p);b.classes&&s.removeClass(b.classes,p);for(const C in b.styles)s.removeStyle(C,p)}}})}}}var SC=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Zv=function(r){return SC.test(r)};var Uv="\\ud800-\\udfff",DC="["+Uv+"]",pp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",gp="\\ud83c[\\udffb-\\udfff]",jv="[^"+Uv+"]",Vv="(?:\\ud83c[\\udde6-\\uddff]){2}",qv="[\\ud800-\\udbff][\\udc00-\\udfff]",Yv="(?:"+pp+"|"+gp+")?",Hv="[\\ufe0e\\ufe0f]?",MC=Hv+Yv+"(?:\\u200d(?:"+[jv,Vv,qv].join("|")+")"+Hv+Yv+")*",LC="(?:"+[jv+pp+"?",pp,Vv,qv,DC].join("|")+")",PC=RegExp(gp+"(?="+gp+")|"+LC+MC,"g");const BC=function(t){t=$s(t);var e=Zv(t)?function(r){return Zv(r)?function(r){return r.match(PC)||[]}(r):function(r){return r.split("")}(r)}(t):void 0,n=e?e[0]:t.charAt(0),s=e?function(r,t,e){var n=r.length;return ec(r,1,e=void 0===e?n:e)}(e).join(""):t.slice(1);return n.toUpperCase()+s},FC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,zC=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,RC=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,ZC=/^((\w+:(\/{2,})?)|(\W))/i,mp="Ctrl+K";function Gv(r,{writer:t}){const e=t.createAttributeElement("a",{href:r},{priority:5});return t.setCustomProperty("link",!0,e),e}function Wv(r){const t=String(r);return t.replace(FC,"").match(zC)?t:"#"}function fp(r,t){return!!r&&t.checkAttribute(r.name,"linkHref")}function bp(r,t){const e=RC.test(r)?"mailto:":t,s=!!e&&!Qv(r);return r&&s?e+r:r}function Qv(r){return ZC.test(r)}function Xv(r){window.open(r,"_blank","noopener")}class UC extends Jt{constructor(){super(...arguments),this.manualDecorators=new di,this.automaticDecorators=new EC}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||Oe(e.getSelectedBlocks());fp(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));for(const s of this.manualDecorators)s.value=this._getDecoratorStateFromModel(s.id)}execute(t,e={}){const n=this.editor.model,s=n.document.selection,l=[],h=[];for(const p in e)e[p]?l.push(p):h.push(p);n.change(p=>{if(s.isCollapsed){const b=s.getFirstPosition();if(s.hasAttribute("linkHref")){const A=Kv(s);let C=qc(b,"linkHref",s.getAttribute("linkHref"),n);s.getAttribute("linkHref")===A&&(C=this._updateLinkContent(n,p,C,t)),p.setAttribute("linkHref",t,C),l.forEach(E=>{p.setAttribute(E,!0,C)}),h.forEach(E=>{p.removeAttribute(E,C)}),p.setSelection(p.createPositionAfter(C.end.nodeBefore))}else if(""!==t){const A=ri(s.getAttributes());A.set("linkHref",t),l.forEach(E=>{A.set(E,!0)});const{end:C}=n.insertContent(p.createText(t,A),b);p.setSelection(C)}["linkHref",...l,...h].forEach(A=>{p.removeSelectionAttribute(A)})}else{const b=n.schema.getValidRanges(s.getRanges(),"linkHref"),A=[];for(const E of s.getSelectedBlocks())n.schema.checkAttribute(E,"linkHref")&&A.push(p.createRangeOn(E));const C=A.slice();for(const E of b)this._isRangeToUpdate(E,A)&&C.push(E);for(const E of C){let P=E;if(1===C.length){const F=Kv(s);s.getAttribute("linkHref")===F&&(P=this._updateLinkContent(n,p,E,t),p.setSelection(p.createSelection(P)))}p.setAttribute("linkHref",t,P),l.forEach(F=>{p.setAttribute(F,!0,P)}),h.forEach(F=>{p.removeAttribute(F,P)})}}})}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,s=n.getSelectedElement();return fp(s,e.schema)?s.getAttribute(t):n.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}_updateLinkContent(t,e,n,s){const l=e.createText(s,{linkHref:s});return t.insertContent(l,n)}}function Kv(r){if(r.isCollapsed){const t=r.getFirstPosition();return t.textNode&&t.textNode.data}{const t=Array.from(r.getFirstRange().getItems());if(t.length>1)return null;const e=t[0];return e.is("$text")||e.is("$textProxy")?e.data:null}}class jC extends Jt{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();this.isEnabled=fp(n,t.schema)?t.schema.checkAttribute(n,"linkHref"):t.schema.checkAttributeInSelection(e,"linkHref")}execute(){const e=this.editor.model,n=e.document.selection,s=this.editor.commands.get("link");e.change(l=>{const h=n.isCollapsed?[qc(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const p of h)if(l.removeAttribute("linkHref",p),s)for(const b of s.manualDecorators)l.removeAttribute(b.id,p)})}}class VC extends(ne()){constructor({id:t,label:e,attributes:n,classes:s,styles:l,defaultValue:h}){super(),this.id=t,this.set("value",void 0),this.defaultValue=h,this.label=e,this.attributes=n,this.classes=s,this.styles=l}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Jv=lt(9773);Rt()(Jv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var YC=Object.defineProperty,$v=Object.getOwnPropertySymbols,HC=Object.prototype.hasOwnProperty,GC=Object.prototype.propertyIsEnumerable,tk=(r,t,e)=>t in r?YC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,WC=(r,t)=>{for(var e in t||(t={}))HC.call(t,e)&&tk(r,e,t[e]);if($v)for(var e of $v(t))GC.call(t,e)&&tk(r,e,t[e]);return r};const ek="automatic",QC=/^(https?:)?\/\//;class ik extends Lt{static get pluginName(){return"LinkEditing"}static get requires(){return[Ef,kf,fn]}constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Gv}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(n,s)=>Gv(Wv(n),s)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:n=>n.getAttribute("href")}}),t.commands.add("link",new UC(t)),t.commands.add("unlink",new jC(t));const e=function(n,s){const l={"Open in a new tab":n("Open in a new tab"),Downloadable:n("Downloadable")};return s.forEach(h=>("label"in h&&l[h.label]&&(h.label=l[h.label]),h)),s}(t.t,function(n){const s=[];if(n)for(const[l,h]of Object.entries(n)){const p=Object.assign({},h,{id:`link${BC(l)}`});s.push(p)}return s}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter(n=>n.mode===ek)),this._enableManualDecorators(e.filter(n=>"manual"===n.mode)),t.plugins.get(Ef).registerAttribute("linkHref"),function(n,s,l,h){const p=n.editing.view,b=new Set;p.document.registerPostFixer(A=>{const C=n.model.document.selection;let E=!1;if(C.hasAttribute(s)){const P=qc(C.getFirstPosition(),s,C.getAttribute(s),n.model),F=n.editing.mapper.toViewRange(P);for(const j of F.getItems())j.is("element","a")&&!j.hasClass(h)&&(A.addClass(h,j),b.add(j),E=!0)}return E}),n.conversion.for("editingDowncast").add(A=>{function C(){p.change(E=>{for(const P of b.values())E.removeClass(h,P),b.delete(P)})}A.on("insert",C,{priority:"highest"}),A.on("remove",C,{priority:"highest"}),A.on("attribute",C,{priority:"highest"}),A.on("selection",C,{priority:"highest"})})}(t,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:ek,callback:s=>!!s&&QC.test(s),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach(s=>{e.model.schema.extend("$text",{allowAttributes:s.id});const l=new VC(s);n.add(l),e.conversion.for("downcast").attributeToElement({model:l.id,view:(h,{writer:p,schema:b},{item:A})=>{if((A.is("selection")||b.isInline(A))&&h){const C=p.createAttributeElement("a",l.attributes,{priority:5});l.classes&&p.addClass(l.classes,C);for(const E in l.styles)p.setStyle(E,l.styles[E],C);return p.setCustomProperty("link",!0,C),C}}}),e.conversion.for("upcast").elementToAttribute({view:WC({name:"a"},l._createPattern()),model:{key:l.id}})})}_enableLinkOpen(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",(n,s)=>{if(!(it.isMac?s.domEvent.metaKey:s.domEvent.ctrlKey))return;let l=s.domTarget;if("a"!=l.tagName.toLowerCase()&&(l=l.closest("a")),!l)return;const h=l.getAttribute("href");h&&(n.stop(),s.preventDefault(),Xv(h))},{context:"$capture"}),this.listenTo(e,"keydown",(n,s)=>{const l=t.commands.get("link").value;l&&s.keyCode===se.enter&&s.altKey&&(n.stop(),Xv(l))})}_enableSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(e,"change:attribute",(n,{attributeKeys:s})=>{s.includes("linkHref")&&!e.hasAttribute("linkHref")&&t.change(l=>{var h;!function(p,b){p.removeSelectionAttribute("linkHref");for(const A of b)p.removeSelectionAttribute(A)}(l,(h=t.schema,h.getDefinition("$text").allowAttributes.filter(p=>p.startsWith("link"))))})})}_enableClipboardIntegration(){const t=this.editor,e=t.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(t.plugins.get("ClipboardPipeline"),"contentInsertion",(s,l)=>{e.change(h=>{const p=h.createRangeIn(l.content);for(const b of p.getItems())if(b.hasAttribute("linkHref")){const A=bp(b.getAttribute("linkHref"),n);h.setAttribute("linkHref",A,b)}})})}}var nk=lt(7754);Rt()(nk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class KC extends Wt{constructor(t,e){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri;const n=t.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const s=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&s.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:s,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((t,e)=>(t[e.name]=e.isOn,t),{})}render(){super.render(),L({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new Cr(this.locale,Pc);return e.label=t("Link URL"),e}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const s=new xr(this.locale);s.set({name:n.id,label:n.label,withText:!0}),s.bind("isOn").toMany([n,t],"value",(l,h)=>void 0===h&&void 0===l?!!n.defaultValue:!!l),s.on("execute",()=>{n.set("value",!s.isOn)}),e.add(s)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const n=new Wt;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(s=>({tag:"li",children:[s],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(n)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var ok=lt(2347);Rt()(ok.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class $C extends Wt{constructor(t){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri;const e=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("Unlink"),'',"unlink"),this.editButtonView=this._createButton(e("Edit link"),Ae.pencil,"edit"),this.set("href",void 0),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const s=new ve(this.locale);return s.set({label:t,icon:e,tooltip:!0}),s.delegate("execute").to(this,n),s}_createPreviewButton(){const t=new ve(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",s=>s&&Wv(s)),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",s=>s||n("This link has no URL")),t.bind("isEnabled").to(this,"href",s=>!!s),t.template.tag="a",t.template.eventListeners={},t}}const bn="link-ui";class ty extends Lt{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[Rc]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(aw),this._balloon=t.plugins.get(Rc),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:bn,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:bn,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const t=this.editor,e=new $C(t.locale),n=t.commands.get("link"),s=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(s),this.listenTo(e,"edit",()=>{this._addFormView()}),this.listenTo(e,"unlink",()=>{t.execute("unlink"),this._hideUI()}),e.keystrokes.set("Esc",(l,h)=>{this._hideUI(),h()}),e.keystrokes.set(mp,(l,h)=>{this._addFormView(),h()}),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),s=new(ct(KC))(t.locale,e);return s.urlInputView.fieldView.bind("value").to(e,"value"),s.urlInputView.bind("isEnabled").to(e,"isEnabled"),s.saveButtonView.bind("isEnabled").to(e),this.listenTo(s,"submit",()=>{const{value:l}=s.urlInputView.fieldView.element,h=bp(l,n);t.execute("link",h,s.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(s,"cancel",()=>{this._closeFormView()}),s.keystrokes.set("Esc",(l,h)=>{this._closeFormView(),h()}),s}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link"),n=t.t;t.ui.componentFactory.add("link",s=>{const l=new ve(s);return l.isEnabled=!0,l.label=n("Link"),l.icon='',l.keystroke=mp,l.tooltip=!0,l.isToggleable=!0,l.bind("isEnabled").to(e,"isEnabled"),l.bind("isOn").to(e,"value",h=>!!h),this.listenTo(l,"execute",()=>this._showUI(!0)),l})}_enableBalloonActivators(){const t=this.editor;this.listenTo(t.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),t.keystrokes.set(mp,(n,s)=>{s(),t.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())},{priority:"high"}),this.editor.keystrokes.set("Esc",(t,e)=>{this._isUIVisible&&(this._hideUI(),e())}),et({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=t.value||""}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),s=h();const l=()=>{const p=this._getSelectedLinkElement(),b=h();n&&!p||!n&&b!==s?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=p,s=b};function h(){return e.selection.focus.getAncestors().reverse().find(p=>p.is("element"))}this.listenTo(t.ui,"update",l),this.listenTo(this._balloon,"change:visibleView",l)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return!!this.formView&&this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,n=t.document;let s;if(this.editor.model.markers.has(bn)){const l=Array.from(this.editor.editing.mapper.markerNameToElements(bn)),h=t.createRange(t.createPositionBefore(l[0]),t.createPositionAfter(l[l.length-1]));s=t.domConverter.viewRangeToDom(h)}else s=()=>{const l=this._getSelectedLinkElement();return l?t.domConverter.mapViewToDom(l):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:s}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&He(n))return vp(e.getFirstPosition());{const s=e.getFirstRange().getTrimmed(),l=vp(s.start),h=vp(s.end);return l&&l==h&&t.createRangeIn(l).getTrimmed().isEqual(s)?l:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change(e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(bn))e.updateMarker(bn,{range:n});else if(n.start.isAtEnd){const s=n.start.getLastMatchingPosition(({item:l})=>!t.schema.isContent(l),{boundaries:n});e.addMarker(bn,{usingOperation:!1,affectsData:!1,range:e.createRange(s,n.end)})}else e.addMarker(bn,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(bn)&&t.change(e=>{e.removeMarker(bn)})}}function vp(r){return r.getAncestors().find(t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e})||null}const rk=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class ey extends Lt{static get requires(){return[Un,ik]}static get pluginName(){return"AutoLink"}init(){const t=this.editor.model.document.selection;t.on("change:range",()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(t,e){return e.textNode&&e.textNode.hasAttribute("linkHref")?qc(e,"linkHref",e.textNode.getAttribute("linkHref"),t):null}_selectEntireLinks(t,e){const n=this.editor.model,s=n.document.selection,l=s.getFirstPosition(),h=s.getLastPosition();let p=e.getJoined(this._expandLinkRange(n,l)||e);p&&(p=p.getJoined(this._expandLinkRange(n,h)||e)),p&&(p.start.isBefore(l)||p.end.isAfter(h))&&t.setSelection(p)}_enablePasteLinking(){const t=this.editor,e=t.model,n=e.document.selection,s=t.plugins.get("ClipboardPipeline"),l=t.commands.get("link");s.on("inputTransformation",(h,p)=>{if(!this.isEnabled||!l.isEnabled||n.isCollapsed||n.rangeCount>1)return;const b=n.getFirstRange(),A=p.dataTransfer.getData("text/plain");if(!A)return;const C=A.match(rk);C&&C[2]===A&&(e.change(E=>{this._selectEntireLinks(E,b),l.execute(A)}),h.stop())},{priority:"high"})}_enableTypingHandling(){const t=this.editor,e=new yf(t.model,n=>{if(!((l=n).length>4&&" "===l[l.length-1]&&" "!==l[l.length-2]))return;var l;const s=sk(n.substr(0,n.length-1));return s?{url:s}:void 0});e.on("matched:data",(n,s)=>{const{batch:l,range:h,url:p}=s;if(!l.isTyping)return;const b=h.end.getShiftedBy(-1),A=b.getShiftedBy(-p.length),C=t.model.createRange(A,b);this._applyAutoLink(p,C)}),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",()=>{const s=e.document.selection.getFirstPosition();if(!s.parent.previousSibling)return;const l=e.createRangeIn(s.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(l)})}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",()=>{const s=e.document.selection.getFirstPosition(),l=e.createRange(e.createPositionAt(s.parent,0),s.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(l)})}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:s}=Cf(t,e),l=sk(n);if(l){const h=e.createRange(s.end.getShiftedBy(-l.length),s.end);this._applyAutoLink(l,h)}}_applyAutoLink(t,e){const n=this.editor.model,s=bp(t,this.editor.config.get("link.defaultProtocol"));var h;this.isEnabled&&(h=n).schema.checkAttributeInSelection(h.createSelection(e),"linkHref")&&Qv(s)&&!function(l){const h=l.start.nodeAfter;return!!h&&h.hasAttribute("linkHref")}(e)&&this._persistAutoLink(s,e)}_persistAutoLink(t,e){const n=this.editor.model,s=this.editor.plugins.get("Delete");n.enqueueChange(l=>{l.setAttribute("linkHref",t,e),n.enqueueChange(()=>{s.requestUndoOnBackspace()})})}}function sk(r){const t=rk.exec(r);return t?t[2]:null}var ak=lt(111);Rt()(ak.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var lk=lt(5730);Rt()(lk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var ck=lt(4564);function dk(r,t,e,n){const s=t.parent,l=e.mapper,h=e.writer;let p=l.toViewPosition(n.createPositionBefore(r));const b=uk(r.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:r.getAttribute("listIndent")}),A=r.previousSibling;if(b&&b.getAttribute("listIndent")==r.getAttribute("listIndent")){const C=l.toViewElement(b);p=h.breakContainer(h.createPositionAfter(C))}else if(A&&"listItem"==A.name){p=l.toViewPosition(n.createPositionAt(A,"end"));const C=l.findMappedViewAncestor(p),E=function(P){for(const F of P.getChildren())if("ul"==F.name||"ol"==F.name)return F;return null}(C);p=E?h.createPositionBefore(E):h.createPositionAt(C,"end")}else p=l.toViewPosition(n.createPositionBefore(r));if(p=hk(p),h.insert(p,s),A&&"listItem"==A.name){const C=l.toViewElement(A),E=h.createRange(h.createPositionAt(C,0),p).getWalker({ignoreElementEnd:!0});for(const P of E)if(P.item.is("element","li")){const F=h.breakContainer(h.createPositionBefore(P.item)),j=P.item.parent,Y=h.createPositionAt(t,"end");Hi(h,Y.nodeBefore,Y.nodeAfter),h.move(h.createRangeOn(j),Y),E._position=F}}else{const C=s.nextSibling;if(C&&(C.is("element","ul")||C.is("element","ol"))){let E=null;for(const P of C.getChildren()){const F=l.toModelElement(P);if(!(F&&F.getAttribute("listIndent")>r.getAttribute("listIndent")))break;E=P}E&&(h.breakContainer(h.createPositionAfter(E)),h.move(h.createRangeOn(E.parent),h.createPositionAt(t,"end")))}}Hi(h,s,s.nextSibling),Hi(h,s.previousSibling,s)}function Hi(r,t,e){return!t||!e||"ul"!=t.name&&"ol"!=t.name||t.name!=e.name||t.getAttribute("class")!==e.getAttribute("class")?null:r.mergeContainers(r.createPositionAfter(t))}function hk(r){return r.getLastMatchingPosition(t=>t.item.is("uiElement"))}function uk(r,t){const e=!!t.sameIndent,n=!!t.smallerIndent,s=t.listIndent;let l=r;for(;l&&"listItem"==l.name;){const h=l.getAttribute("listIndent");if(e&&s==h||n&&s>h)return l;l="forward"===t.direction?l.nextSibling:l.previousSibling}return null}function pk(r,t,e,n){r.ui.componentFactory.add(t,s=>{const l=r.commands.get(t),h=new ve(s);return h.set({label:e,icon:n,tooltip:!0,isToggleable:!0}),h.bind("isOn","isEnabled").to(l,"value","isEnabled"),h.on("execute",()=>{r.execute(t),r.editing.view.focus()}),h})}function kp(r,t){const e=[],n=r.parent,s={ignoreElementEnd:!1,startPosition:r,shallow:!0,direction:t},l=n.getAttribute("listIndent"),h=[...new Li(s)].filter(p=>p.item.is("element")).map(p=>p.item);for(const p of h){if(!p.is("element","listItem")||p.getAttribute("listIndent")l)){if(p.getAttribute("listType")!==n.getAttribute("listType")||p.getAttribute("listStyle")!==n.getAttribute("listStyle")||p.getAttribute("listReversed")!==n.getAttribute("listReversed")||p.getAttribute("listStart")!==n.getAttribute("listStart"))break;"backward"===t?e.unshift(p):e.push(p)}}return e}Rt()(ck.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const sy=["disc","circle","square"],ay=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function ly(){const r=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||r?0:sc.call(this)}class cy extends Lt{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;pk(this.editor,"numberedList",t("Numbered List"),''),pk(this.editor,"bulletedList",t("Bulleted List"),'')}}const dy={},hy={},uy={},py=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:r,typeAttribute:t,listType:e}of py)dy[r]=e,hy[r]=t,t&&(uy[t]=r);var gk=lt(6082);Rt()(gk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var mk=lt(2417);Rt()(mk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class fk extends Jt{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model;let n=Array.from(t.document.selection.getSelectedBlocks());t.change(s=>{const l=n[n.length-1];let h=l.nextSibling;for(;h&&"listItem"==h.name&&h.getAttribute("listIndent")>l.getAttribute("listIndent");)n.push(h),h=h.nextSibling;this._indentBy<0&&(n=n.reverse());for(const p of n){const b=p.getAttribute("listIndent")+this._indentBy;b<0?s.rename(p,"paragraph"):s.setAttribute("listIndent",b,p)}this.fire("_executeCleanup",n)})}_checkEnabled(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let s=t.previousSibling;for(;s&&s.is("element","listItem")&&s.getAttribute("listIndent")>=e;){if(s.getAttribute("listIndent")==e)return s.getAttribute("listType")==n;s=s.previousSibling}return!1}return!0}}class bk extends Jt{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,s=Array.from(e.document.selection.getSelectedBlocks()).filter(h=>kk(h,e.schema)),l=void 0!==t.forceValue?!t.forceValue:this.value;e.change(h=>{if(l){let p=s[s.length-1].nextSibling,b=Number.POSITIVE_INFINITY,A=[];for(;p&&"listItem"==p.name&&0!==p.getAttribute("listIndent");){const C=p.getAttribute("listIndent");C=e;)l>s.getAttribute("listIndent")&&(l=s.getAttribute("listIndent")),s.getAttribute("listIndent")==l&&r[t?"unshift":"push"](s),s=s[t?"previousSibling":"nextSibling"]}}function kk(r,t){return t.checkChild(r.parent,"listItem")&&!t.isObject(r)}class fy extends Lt{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(t){return sy.includes(e=t)?"bulleted":ay.includes(e)?"numbered":null;var e}getSelectedListItems(t){return function(e){let n=[...e.document.selection.getSelectedBlocks()].filter(s=>s.is("element","listItem")).map(s=>{const l=e.change(h=>h.createPositionAt(s,0));return[...kp(l,"backward"),...kp(l,"forward")]}).flat();return n=[...new Set(n)],n}(t)}getSiblingNodes(t,e){return kp(t,e)}}function _k(r){return(t,e,n)=>{const s=n.consumable;if(!s.test(e.item,"insert")||!s.test(e.item,"attribute:listType")||!s.test(e.item,"attribute:listIndent"))return;s.consume(e.item,"insert"),s.consume(e.item,"attribute:listType"),s.consume(e.item,"attribute:listIndent");const l=e.item;dk(l,function ry(r,t){const e=t.mapper,n=t.writer,s="numbered"==r.getAttribute("listType")?"ol":"ul",l=function(p){const b=p.createContainerElement("li");return b.getFillerOffset=ly,b}(n),h=n.createContainerElement(s,null);return n.insert(n.createPositionAt(h,0),l),e.bindElements(r,l),l}(l,n),n,r)}}const by=(r,t,e)=>{if(!e.consumable.test(t.item,r.name))return;const n=e.mapper.toViewElement(t.item),s=e.writer;s.breakContainer(s.createPositionBefore(n)),s.breakContainer(s.createPositionAfter(n)),s.rename("numbered"==t.attributeNewValue?"ol":"ul",n.parent)},vy=(r,t,e)=>{e.consumable.consume(t.item,r.name);const n=e.mapper.toViewElement(t.item).parent,s=e.writer;Hi(s,n,n.nextSibling),Hi(s,n.previousSibling,n)},wk=(r,t,e)=>{if(e.consumable.test(t.item,r.name)&&"listItem"!=t.item.name){let n=e.mapper.toViewPosition(t.range.start);const s=e.writer,l=[];for(;("ul"==n.parent.name||"ol"==n.parent.name)&&(n=s.breakContainer(n),"li"==n.parent.name);){const h=n,p=s.createPositionAt(n.parent,"end");if(!h.isEqual(p)){const b=s.remove(s.createRange(h,p));l.push(b)}n=s.createPositionAfter(n.parent)}if(l.length>0){for(let h=0;h0){const b=Hi(s,p,p.nextSibling);b&&b.parent==p&&n.offset--}}Hi(s,n.nodeBefore,n.nodeAfter)}}},ky=(r,t,e)=>{const n=e.mapper.toViewPosition(t.position);Hi(e.writer,n.nodeBefore,n.nodeAfter)},_y=(r,t,e)=>{if(e.consumable.consume(t.viewItem,{name:!0})){const n=e.writer,s=n.createElement("listItem"),l=function(b){let A=0,C=b.parent;for(;C;){if(C.is("element","li"))A++;else{const E=C.previousSibling;E&&E.is("element","li")&&A++}C=C.parent}return A}(t.viewItem);if(n.setAttribute("listIndent",l,s),n.setAttribute("listType",t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted",s),!e.safeInsert(s,t.modelCursor))return;const p=function(b,A,C){const{writer:E,schema:P}=C;let F=E.createPositionAfter(b);for(const j of A)if("ul"==j.name||"ol"==j.name)F=C.convertItem(j,F).modelCursor;else{const Y=C.convertItem(j,E.createPositionAt(b,"end")),$=Y.modelRange.start.nodeAfter;$&&$.is("element")&&!P.checkChild(b,$.name)&&(b=Y.modelCursor.parent.is("element","listItem")?Y.modelCursor.parent:xy(Y.modelCursor),F=E.createPositionAfter(b))}return F}(s,t.viewItem.getChildren(),e);t.modelRange=n.createRange(t.modelCursor,p),e.updateConversionResult(s,t)}},Ak=(r,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){const n=Array.from(t.viewItem.getChildren());for(const s of n)!s.is("element","li")&&!ts(s)&&s._remove()}},wy=(r,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;const n=[...t.viewItem.getChildren()];let s=!1;for(const l of n)s&&!ts(l)&&l._remove(),ts(l)&&(s=!0)}};function xk(r){return(t,e)=>{if(e.isPhantom)return;const n=e.modelPosition.nodeBefore;if(n&&n.is("element","listItem")){const s=e.mapper.toViewElement(n),l=s.getAncestors().find(ts),h=r.createPositionAt(s,0).getWalker();for(const p of h){if("elementStart"==p.type&&p.item.is("element","li")){e.viewPosition=p.previousPosition;break}if("elementEnd"==p.type&&p.item==l){e.viewPosition=p.nextPosition;break}}}}}const Ay=function(r,[t,e]){let s,l=t.is("documentFragment")?t.getChild(0):t;if(s=e?this.createSelection(e):this.document.selection,l&&l.is("element","listItem")){const h=s.getFirstPosition();let p=null;if(h.parent.is("element","listItem")?p=h.parent:h.nodeBefore&&h.nodeBefore.is("element","listItem")&&(p=h.nodeBefore),p){const b=p.getAttribute("listIndent");if(b>0)for(;l&&l.is("element","listItem");)l._setAttribute("listIndent",l.getAttribute("listIndent")+b),l=l.nextSibling}}};function xy(r){const t=new Li({startPosition:r});let e;do{e=t.next()}while(!e.value.item.is("element","listItem"));return e.value.item}function Ck(r,t,e,n,s,l){const h=uk(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:r}),p=s.mapper,b=s.writer,A=h?h.getAttribute("listIndent"):null;let C;if(h)if(A==r){const E=p.toViewElement(h).parent;C=b.createPositionAfter(E)}else{const E=l.createPositionAt(h,"end");C=p.toViewPosition(E)}else C=e;C=hk(C);for(const E of[...n.getChildren()])ts(E)&&(C=b.move(b.createRangeOn(E),C).end,Hi(b,E,E.nextSibling),Hi(b,E.previousSibling,E))}function ts(r){return r.is("element","ol")||r.is("element","ul")}class Cy extends Lt{static get pluginName(){return"ListEditing"}static get requires(){return[Yc,Un,fy]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;var s;t.model.document.registerPostFixer(h=>function(p,b){const A=p.document.differ.getChanges(),C=new Map;let E=!1;for(const Y of A)if("insert"==Y.type&&"listItem"==Y.name)P(Y.position);else if("insert"==Y.type&&"listItem"!=Y.name){if("$text"!=Y.name){const $=Y.position.nodeAfter;$.hasAttribute("listIndent")&&(b.removeAttribute("listIndent",$),E=!0),$.hasAttribute("listType")&&(b.removeAttribute("listType",$),E=!0),$.hasAttribute("listStyle")&&(b.removeAttribute("listStyle",$),E=!0),$.hasAttribute("listReversed")&&(b.removeAttribute("listReversed",$),E=!0),$.hasAttribute("listStart")&&(b.removeAttribute("listStart",$),E=!0);for(const st of Array.from(p.createRangeIn($)).filter(ft=>ft.item.is("element","listItem")))P(st.previousPosition)}P(Y.position.getShiftedBy(Y.length))}else"remove"==Y.type&&"listItem"==Y.name?P(Y.position):("attribute"==Y.type&&"listIndent"==Y.attributeKey||"attribute"==Y.type&&"listType"==Y.attributeKey)&&P(Y.range.start);for(const Y of C.values())F(Y),j(Y);return E;function P(Y){const $=Y.nodeBefore;if($&&$.is("element","listItem")){let st=$;if(C.has(st))return;for(let ft=st.previousSibling;ft&&ft.is("element","listItem");ft=st.previousSibling)if(st=ft,C.has(st))return;C.set($,st)}else{const st=Y.nodeAfter;st&&st.is("element","listItem")&&C.set(st,st)}}function F(Y){let $=0,st=null;for(;Y&&Y.is("element","listItem");){const ft=Y.getAttribute("listIndent");if(ft>$){let At;null===st?(st=ft-$,At=$):(st>ft&&(st=ft),At=ft-st),b.setAttribute("listIndent",At,Y),E=!0}else st=null,$=Y.getAttribute("listIndent")+1;Y=Y.nextSibling}}function j(Y){let $=[],st=null;for(;Y&&Y.is("element","listItem");){const ft=Y.getAttribute("listIndent");if(st&&st.getAttribute("listIndent")>ft&&($=$.slice(0,ft+1)),0!=ft)if($[ft]){const At=$[ft];Y.getAttribute("listType")!=At&&(b.setAttribute("listType",At,Y),E=!0)}else $[ft]=Y.getAttribute("listType");st=Y,Y=Y.nextSibling}}}(t.model,h)),n.mapper.registerViewToModelLength("li",_p),e.mapper.registerViewToModelLength("li",_p),n.mapper.on("modelToViewPosition",xk(n.view)),n.mapper.on("viewToModelPosition",(s=t.model,(h,p)=>{const b=p.viewPosition,A=b.parent,C=p.mapper;if("ul"==A.name||"ol"==A.name){if(b.isAtEnd){const E=C.toModelElement(b.nodeBefore),P=C.getModelLength(b.nodeBefore);p.modelPosition=s.createPositionBefore(E).getShiftedBy(P)}else{const E=C.toModelElement(b.nodeAfter);p.modelPosition=s.createPositionBefore(E)}h.stop()}else if("li"==A.name&&b.nodeBefore&&("ul"==b.nodeBefore.name||"ol"==b.nodeBefore.name)){const E=C.toModelElement(A);let P=1,F=b.nodeBefore;for(;F&&ts(F);)P+=C.getModelLength(F),F=F.previousSibling;p.modelPosition=s.createPositionBefore(E).getShiftedBy(P),h.stop()}})),e.mapper.on("modelToViewPosition",xk(n.view)),t.conversion.for("editingDowncast").add(h=>{var p;h.on("insert",wk,{priority:"high"}),h.on("insert:listItem",_k(t.model)),h.on("attribute:listType:listItem",by,{priority:"high"}),h.on("attribute:listType:listItem",vy,{priority:"low"}),h.on("attribute:listIndent:listItem",(p=t.model,(b,A,C)=>{if(!C.consumable.consume(A.item,"attribute:listIndent"))return;const E=C.mapper.toViewElement(A.item),P=C.writer;P.breakContainer(P.createPositionBefore(E)),P.breakContainer(P.createPositionAfter(E));const F=E.parent,j=F.previousSibling,Y=P.createRangeOn(F);P.remove(Y),j&&j.nextSibling&&Hi(P,j,j.nextSibling),Ck(A.attributeOldValue+1,A.range.start,Y.start,E,C,p),dk(A.item,E,C,p);for(const $ of A.item.getChildren())C.consumable.consume($,"insert")})),h.on("remove:listItem",function(p){return(b,A,C)=>{const E=C.mapper.toViewPosition(A.position).getLastMatchingPosition(st=>!st.item.is("element","li")).nodeAfter,P=C.writer;P.breakContainer(P.createPositionBefore(E)),P.breakContainer(P.createPositionAfter(E));const F=E.parent,j=F.previousSibling,Y=P.createRangeOn(F),$=P.remove(Y);j&&j.nextSibling&&Hi(P,j,j.nextSibling),Ck(C.mapper.toModelElement(E).getAttribute("listIndent")+1,A.position,Y.start,E,C,p);for(const st of P.createRangeIn($).getItems())C.mapper.unbindViewElement(st);b.stop()}}(t.model)),h.on("remove",ky,{priority:"low"})}),t.conversion.for("dataDowncast").add(h=>{h.on("insert",wk,{priority:"high"}),h.on("insert:listItem",_k(t.model))}),t.conversion.for("upcast").add(h=>{h.on("element:ul",Ak,{priority:"high"}),h.on("element:ol",Ak,{priority:"high"}),h.on("element:li",wy,{priority:"high"}),h.on("element:li",_y)}),t.model.on("insertContent",Ay,{priority:"high"}),t.commands.add("numberedList",new bk(t,"numbered")),t.commands.add("bulletedList",new bk(t,"bulleted")),t.commands.add("indentList",new fk(t,"forward")),t.commands.add("outdentList",new fk(t,"backward"));const l=n.view.document;this.listenTo(l,"enter",(h,p)=>{const b=this.editor.model.document,A=b.selection.getLastPosition().parent;b.selection.isCollapsed&&"listItem"==A.name&&A.isEmpty&&(this.editor.execute("outdentList"),p.preventDefault(),h.stop())},{context:"li"}),this.listenTo(l,"delete",(h,p)=>{if("backward"!==p.direction)return;const b=this.editor.model.document.selection;if(!b.isCollapsed)return;const A=b.getFirstPosition();if(!A.isAtStart)return;const C=A.parent;"listItem"===C.name&&(C.previousSibling&&"listItem"===C.previousSibling.name||(this.editor.execute("outdentList"),p.preventDefault(),h.stop()))},{context:"li"}),this.listenTo(t.editing.view.document,"tab",(h,p)=>{const b=p.shiftKey?"outdentList":"indentList";this.editor.commands.get(b).isEnabled&&(t.execute(b),p.stopPropagation(),p.preventDefault(),h.stop())},{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function _p(r){let t=1;for(const e of r.getChildren())if("ul"==e.name||"ol"==e.name)for(const n of e.getChildren())t+=_p(n);return t}Vo("Ctrl+Enter");var yk=lt(1199);function Ek(r,t){const e=(n,s,l)=>{if(!l.consumable.consume(s.item,n.name))return;const h=s.attributeNewValue,p=l.writer,b=l.mapper.toViewElement(s.item),A=[...b.getChildren()].find(E=>E.getCustomProperty("media-content"));p.remove(A);const C=r.getMediaViewElement(p,h,t);p.insert(p.createPositionAt(b,0),C)};return n=>{n.on("attribute:url:media",e)}}function Tk(r,t,e,n){return r.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(r,e,n),r.createSlot()])}function Sk(r){const t=r.getSelectedElement();return t&&t.is("element","media")?t:null}function Ik(r,t,e,n){r.change(s=>{const l=s.createElement("media",{url:t});r.insertObject(l,e,null,{setSelection:"on",findOptimalPosition:n?"auto":void 0})})}Rt()(yk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Vo("Ctrl+Enter");class Ey extends Jt{refresh(){const t=this.editor.model,e=t.document.selection,n=Sk(e);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=function(s){const l=s.getSelectedElement();return!!l&&"media"===l.name}(e)||function(s,l){let p=zf(s,l).start.parent;return p.isEmpty&&!l.schema.isLimit(p)&&(p=p.parent),l.schema.checkChild(p,"media")}(e,t)}execute(t){const e=this.editor.model,n=e.document.selection,s=Sk(n);s?e.change(l=>{l.setAttribute("url",t,s)}):Ik(e,t,n,!0)}}class Ty{constructor(t,e){const n=e.providers,s=e.extraProviders||[],l=new Set(e.removeProviders),h=n.concat(s).filter(p=>{const b=p.name;return b?!l.has(b):(kt("media-embed-no-provider-name",{provider:p}),!1)});this.locale=t,this.providerDefinitions=h}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new Dk(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,s=Ze(e.url);for(const l of s){const h=this._getUrlMatches(t,l);if(h)return new Dk(this.locale,t,h,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let s=t.replace(/^https?:\/\//,"");return n=s.match(e),n||(s=s.replace(/^www\./,""),n=s.match(e),n||null)}}class Dk{constructor(t,e,n,s){this.url=this._getValidUrl(e),this._locale=t,this._match=n,this._previewRenderer=s}getViewElement(t,e){const n={};let s;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const l=this._getPreviewHtml(e);s=t.createRawElement("div",n,(h,p)=>{p.setContentOf(h,l)})}else this.url&&(n.url=this.url),s=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,s),s}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new Dn,e=this._locale.t;return t.content='',t.viewBox="0 0 64 42",new Ei({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}var Mk=lt(7442);Rt()(Mk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class id extends Lt{constructor(t){super(t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:e=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:e=>{const s=e[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new Ty(t.locale,t.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,s=t.conversion,l=t.config.get("mediaEmbed.previewsInData"),h=t.config.get("mediaEmbed.elementName"),p=this.registry;t.commands.add("mediaEmbed",new Ey(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),s.for("dataDowncast").elementToStructure({model:"media",view:(b,{writer:A})=>{const C=b.getAttribute("url");return Tk(A,p,C,{elementName:h,renderMediaPreview:!!C&&l})}}),s.for("dataDowncast").add(Ek(p,{elementName:h,renderMediaPreview:l})),s.for("editingDowncast").elementToStructure({model:"media",view:(b,{writer:A})=>{const C=b.getAttribute("url");return E=Tk(A,p,C,{elementName:h,renderForEditingView:!0}),P=A,F=n("media widget"),P.setCustomProperty("media",!0,E),Ju(E,P,{label:F});var E,P,F}}),s.for("editingDowncast").add(Ek(p,{elementName:h,renderForEditingView:!0})),s.for("upcast").elementToElement({view:b=>["oembed",h].includes(b.name)&&b.getAttribute("url")?{name:!0}:null,model:(b,{writer:A})=>{const C=b.getAttribute("url");return p.hasMedia(C)?A.createElement("media",{url:C}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(b,{writer:A})=>{const C=b.getAttribute("data-oembed-url");return p.hasMedia(C)?A.createElement("media",{url:C}):null}}).add(b=>{b.on("element:figure",(A,C,E)=>{if(!E.consumable.consume(C.viewItem,{name:!0,classes:"media"}))return;const{modelRange:P,modelCursor:F}=E.convertChildren(C.viewItem,C.modelCursor);C.modelRange=P,C.modelCursor=F,Oe(P.getItems())||E.consumable.revert(C.viewItem,{name:!0,classes:"media"})})})}}const Iy=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class Dy extends Lt{constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[nb,Un,db]}static get pluginName(){return"AutoMediaEmbed"}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{const s=e.selection.getFirstRange(),l=ii.fromPosition(s.start);l.stickiness="toPrevious";const h=ii.fromPosition(s.end);h.stickiness="toNext",e.once("change:data",()=>{this._embedMediaBetweenPositions(l,h),l.detach(),h.detach()},{priority:"high"})}),t.commands.get("undo").on("execute",()=>{this._timeoutId&&(Yt.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,s=n.plugins.get(id).registry,l=new Ni(t,e),h=l.getWalker({ignoreElementEnd:!0});let p="";for(const b of h)b.item.is("$textProxy")&&(p+=b.item.data);p=p.trim(),p.match(Iy)&&s.hasMedia(p)&&n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=ii.fromPosition(t),this._timeoutId=Yt.window.setTimeout(()=>{n.model.change(b=>{this._timeoutId=null,b.remove(l),l.detach();let A=null;"$graveyard"!==this._positionToInsert.root.rootName&&(A=this._positionToInsert),Ik(n.model,p,A,!1),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get(Un).requestUndoOnBackspace()},100)):l.detach()}}var Lk=lt(9292);Rt()(Lk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ly extends Wt{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Ye,this.keystrokes=new vi,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",s=>!!s),this.cancelButtonView=this._createButton(n("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._focusables=new Ri,this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),L({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Cr(this.locale,Pc),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()}),e}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}}class Py extends Lt{static get requires(){return[id]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",n=>{const s=Zn(n);return this._setUpDropdown(s,e),s})}_setUpDropdown(t,e){const n=this.editor,s=n.t,l=t.buttonView,h=n.plugins.get(id).registry;t.once("change:isOpen",()=>{const p=new(ct(Ly))((b=n.t,A=h,[C=>{if(!C.url.length)return b("The URL must not be empty.")},C=>{if(!A.hasMedia(C.url))return b("This media URL is not supported.")}]),n.locale);var b,A;t.panelView.children.add(p),l.on("open",()=>{p.disableCssTransitions(),p.url=e.value||"",p.urlInputView.fieldView.select(),p.enableCssTransitions()},{priority:"low"}),t.on("submit",()=>{p.isValid()&&(n.execute("mediaEmbed",p.url),n.editing.view.focus())}),t.on("change:isOpen",()=>p.resetFormStatus()),t.on("cancel",()=>{n.editing.view.focus()}),p.delegate("submit","cancel").to(t),p.urlInputView.fieldView.bind("value").to(e,"value"),p.urlInputView.bind("isEnabled").to(e,"isEnabled")}),t.bind("isEnabled").to(e),l.set({label:s("Insert media"),icon:'',tooltip:!0})}}var Pk=lt(4652);function By(r){if(r.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(r){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return r;default:return null}}function Nk(r,t,e){const n=t.parent,s=e.createElement(r.type),l=n.getChildIndex(t)+1;return e.insertChild(l,s,n),r.style&&e.setStyle("list-style-type",r.style,s),r.startIndex&&r.startIndex>1&&e.setAttribute("start",r.startIndex,s),s}function Fy(r){const t={},e=r.getStyle("mso-list");if(e){const n=e.match(/(^|\s{1,100})l(\d+)/i),s=e.match(/\s{0,100}lfo(\d+)/i),l=e.match(/\s{0,100}level(\d+)/i);n&&s&&l&&(t.id=n[2],t.order=s[1],t.indent=parseInt(l[1]))}return t}function Ry(r){return btoa(r.match(/\w{2}/g).map(t=>String.fromCharCode(parseInt(t,16))).join(""))}Rt()(Pk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Zy=//i,Uy=/xmlns:o="urn:schemas-microsoft-com/i;class jy{constructor(t){this.document=t}isActive(t){return Zy.test(t)||Uy.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;(function Oy(r,t){if(!r.childCount)return;const e=new ko(r.document),n=function(h,p){const b=p.createRangeIn(h),A=new Ti({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),C=[];for(const E of b)if("elementStart"===E.type&&A.match(E.item)){const P=Fy(E.item);C.push({element:E.item,id:P.id,order:P.order,indent:P.indent})}return C}(r,e);if(!n.length)return;let s=null,l=1;n.forEach((h,p)=>{const b=function(j,Y){if(!j)return!0;if(j.id!==Y.id)return Y.indent-j.indent!=1;const $=Y.element.previousSibling;return!$||!((st=$).is("element","ol")||st.is("element","ul"));var st}(n[p-1],h),C=(P=h,(E=b?null:n[p-1])?P.indent-E.indent:P.indent-1);var E,P;if(b&&(s=null,l=1),!s||0!==C){const j=function(Y,$){const ft=/mso-level-number-format:([^;]{0,100});/gi,At=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,Ft=new RegExp(`@list l${Y.id}:level${Y.indent}\\s*({[^}]*)`,"gi").exec($);let jt="decimal",ae="ol",ce=null;if(Ft&&Ft[1]){const ze=ft.exec(Ft[1]);if(ze&&ze[1]&&(jt=ze[1].trim(),ae="bullet"!==jt&&"image"!==jt?"ol":"ul"),"bullet"===jt){const Re=function(is){const vn=function(qn){if(qn.getChild(0).is("$text"))return null;for(const Yn of qn.getChildren()){if(!Yn.is("element","span"))continue;const ir=Yn.getChild(0);if(ir)return ir.is("$text")?ir:ir.getChild(0)}return null}(is);if(!vn)return null;const Gi=vn._data;return"o"===Gi?"circle":"\xb7"===Gi?"disc":"\xa7"===Gi?"square":null}(Y.element);Re&&(jt=Re)}else{const Re=At.exec(Ft[1]);Re&&Re[1]&&(ce=parseInt(Re[1]))}}return{type:ae,startIndex:ce,style:By(jt)}}(h,t);if(s)if(h.indent>l){const Y=s.getChild(s.childCount-1),$=Y.getChild(Y.childCount-1);s=Nk(j,$,e),l+=1}else h.indentl.indexOf(j)>-1)?C.push(P):P.getAttribute("src")||C.push(P)}for(const E of C)p.remove(E)})(n,r,e),function(l,h,p){const b=p.createRangeIn(h),A=[];for(const P of b)if("elementStart"==P.type&&P.item.is("element","v:shape")){const F=P.item.getAttribute("id");if(l.includes(F))continue;C(P.item.parent.getChildren(),F)||A.push(P.item)}for(const P of A){const F={src:E(P)};P.hasAttribute("alt")&&(F.alt=P.getAttribute("alt"));const j=p.createElement("img",F);p.insertChild(P.index+1,j,P.parent)}function C(P,F){for(const j of P)if(j.is("element")&&("img"==j.name&&j.getAttribute("v:shapes")==F||C(j.getChildren(),F)))return!0;return!1}function E(P){for(const F of P.getChildren())if(F.is("element")&&F.getAttribute("src"))return F.getAttribute("src")}}(n,r,e),function(l,h){const p=h.createRangeIn(l),b=new Ti({name:/v:(.+)/}),A=[];for(const C of p)"elementStart"==C.type&&b.match(C.item)&&A.push(C.item);for(const C of A)h.remove(C)}(r,e);const s=function(l,h){const p=h.createRangeIn(l),b=new Ti({name:"img"}),A=[];for(const C of p)C.item.is("element")&&b.match(C.item)&&C.item.getAttribute("src").startsWith("file://")&&A.push(C.item);return A}(r,e);s.length&&function(l,h,p){if(l.length===h.length)for(let b=0;bh.is("element")&&!n.includes(h.name)&&!s.includes(h.name),{direction:t}),"forward"==t?l.nodeAfter:l.nodeBefore}function Bk(r,t){return!!r&&r.is("element")&&t.includes(r.name)}const Vy=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class qy{constructor(t){this.document=t}isActive(t){return Vy.test(t)}execute(t){const e=new ko(this.document),{body:n}=t._parsedData;(function(s,l){for(const h of s.getChildren())if(h.is("element","b")&&"normal"===h.getStyle("font-weight")){const p=s.getChildIndex(h);l.remove(h),l.insertChild(p,h.getChildren(),s)}})(n,e),function(s,l){for(const h of l.createRangeIn(s)){const p=h.item;if(p.is("element","li")){const b=p.getChild(0);b&&b.is("element","p")&&l.unwrapElement(b)}}}(n,e),function(s,l){const h=new Or(l.document.stylesProcessor),p=new ha(h,{renderingMode:"data"}),b=p.blockElements,A=p.inlineObjectElements,C=[];for(const E of l.createRangeIn(s)){const P=E.item;if(P.is("element","br")){const F=Ok(P,"forward",l,{blockElements:b,inlineObjectElements:A}),j=Ok(P,"backward",l,{blockElements:b,inlineObjectElements:A}),Y=Bk(F,b);(Bk(j,b)||Y)&&C.push(P)}}for(const E of C)E.hasClass("Apple-interchange-newline")?l.remove(E):l.replace(E,l.createElement("p"))}(n,e),t.content=n}}const Yy=/(\s+)<\/span>/g,(t,e)=>1===e.length?" ":Array(e.length+1).join("\xa0 ").substr(0,e.length))}function Fe(r,t,e,n,s=1){null!=t&&null!=s&&t>s?n.setAttribute(r,t,e):n.removeAttribute(r,e)}function $o(r,t,e={}){const n=r.createElement("tableCell",e);return r.insertElement("paragraph",n),r.insert(n,t),n}function wp(r,t){const n=parseInt(t.parent.parent.getAttribute("headingColumns")||"0"),{column:s}=r.getCellLocation(t);return!!n&&s{t.on(`element:${r}`,(e,n,{writer:s})=>{if(!n.modelRange)return;const l=n.modelRange.start.nodeAfter,h=s.createPositionAt(l,0);if(n.viewItem.isEmpty)return void s.insertElement("paragraph",h);const p=Array.from(l.getChildren());if(p.every(b=>b.is("element","$marker"))){const b=s.createElement("paragraph");s.insert(b,s.createPositionAt(l,0));for(const A of p)s.move(s.createRangeOn(A),s.createPositionAt(b,"end"))}},{priority:"low"})}}function Qy(r){let t=0,e=0;const n=Array.from(r.getChildren()).filter(s=>"th"===s.name||"td"===s.name);for(;e1||h>1)&&this._recordSpans(s,h,l),this._shouldSkipSlot()||(e=this._formatOutValue(s)),this._nextCellAtColumn=this._column+l}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}skipRow(t){this._skipRows.add(t)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(t,e=this._row,n=this._column){return{done:!1,value:new Xy(this,t,e,n)}}_shouldSkipSlot(){return this._skipRows.has(this._row)||this._rowthis._endColumn}_getSpanned(){const t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}_recordSpans(t,e,n){const s={cell:t,row:this._row,column:this._column};for(let l=this._row;l0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const t=this._getRowLength(0);for(let e=this._startRow;!this._jumpedToStartRow;e--)t===this._getRowLength(e)&&(this._row=e,this._rowIndex=e,this._jumpedToStartRow=!0)}_getRowLength(t){return[...this._table.getChild(t).getChildren()].reduce((e,n)=>e+parseInt(n.getAttribute("colspan")||"1"),0)}}class Xy{constructor(t,e,n,s){this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=s,this._cellIndex=t._cellIndex,this._rowIndex=t._rowIndex,this._table=t._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Rk(r,t){return(e,{writer:n})=>{const s=e.getAttribute("headingRows")||0,l=n.createContainerElement("table",null,[]),h=n.createContainerElement("figure",{class:"table"},l);s>0&&n.insert(n.createPositionAt(l,"end"),n.createContainerElement("thead",null,n.createSlot(p=>p.is("element","tableRow")&&p.indexp.is("element","tableRow")&&p.index>=s)));for(const{positionOffset:p,filter:b}of t.additionalSlots)n.insert(n.createPositionAt(l,p),n.createSlot(b));return n.insert(n.createPositionAt(l,"after"),n.createSlot(p=>!p.is("element","tableRow")&&!t.additionalSlots.some(({filter:b})=>b(p)))),t.asWidget?((b=n).setCustomProperty("table",!0,p=h),Ju(p,b,{hasSelectionHandle:!0})):h;var p,b}}function Zk(r={}){return(t,{writer:e})=>{const n=t.parent,s=n.parent,l=s.getChildIndex(n),h=new xe(s,{row:l}),p=s.getAttribute("headingRows")||0,b=s.getAttribute("headingColumns")||0;let A=null;for(const C of h)if(C.cell==t){const E=C.row{if(!t.parent.is("element","tableCell")||!jk(t))return null;if(r.asWidget)return e.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const n=e.createContainerElement("p");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}}function jk(r){return 1==r.parent.childCount&&!!r.getAttributeKeys().next().done}class Ky extends Jt{refresh(){const t=this.editor.model;this.isEnabled=function(s,l){const h=s.getFirstPosition().parent;return l.checkChild(h===h.root?h:h.parent,"table")}(t.document.selection,t.schema)}execute(t={}){const e=this.editor,n=e.model,s=e.plugins.get("TableUtils"),l=e.config.get("table.defaultHeadings.rows"),h=e.config.get("table.defaultHeadings.columns");void 0===t.headingRows&&l&&(t.headingRows=l),void 0===t.headingColumns&&h&&(t.headingColumns=h),n.change(p=>{const b=s.createTable(p,t);n.insertObject(b,null,null,{findOptimalPosition:"auto"}),p.setSelection(p.createPositionAt(b.getNodeByPath([0,0,0]),0))})}}class Vk extends Jt{constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),s="above"===this.order,l=n.getSelectionAffectedTableCells(e),h=n.getRowIndexes(l),p=s?h.first:h.last,b=l[0].findAncestor("table");n.insertRows(b,{at:s?p:p+1,copyStructureFromAbove:!s})}}class qk extends Jt{constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),s="left"===this.order,l=n.getSelectionAffectedTableCells(e),h=n.getColumnIndexes(l),p=s?h.first:h.last,b=l[0].findAncestor("table");n.insertColumns(b,{columns:1,at:s?p:p+1})}}class Yk extends Jt{constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===t.length}execute(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?t.splitCellHorizontally(e,2):t.splitCellVertically(e,2)}}function Hk(r,t,e){const{startRow:n,startColumn:s,endRow:l,endColumn:h}=t,p=e.createElement("table"),b=l-n+1;for(let C=0;C0&&Fe("headingRows",Y-P,C,j,0);const $=parseInt(E.getAttribute("headingColumns")||"0");$>0&&Fe("headingColumns",$-F,C,j,0)}(p,r,n,s,e),p}function Gk(r,t,e=0){const n=[],s=new xe(r,{startRow:e,endRow:t-1});for(const l of s){const{row:h,cellHeight:p}=l;h1&&(p.rowspan=b);const A=parseInt(r.getAttribute("colspan")||"1");A>1&&(p.colspan=A);const C=l+h,E=[...new xe(s,{startRow:l,endRow:C,includeAllSlots:!0})];let P,F=null;for(const j of E){const{row:Y,column:$,cell:st}=j;st===r&&void 0===P&&(P=$),void 0!==P&&P===$&&Y===C&&(F=$o(e,j.getPositionBefore(),p))}return Fe("rowspan",h,r,e),F}function Qk(r,t){const e=[],n=new xe(r);for(const s of n){const{column:l,cellWidth:h}=s;l1&&(l.colspan=h);const p=parseInt(r.getAttribute("rowspan")||"1");p>1&&(l.rowspan=p);const b=$o(n,n.createPositionAfter(r),l);return Fe("colspan",s,r,n),b}function Kk(r,t,e,n,s,l){const h=parseInt(r.getAttribute("colspan")||"1"),p=parseInt(r.getAttribute("rowspan")||"1");e+h-1>s&&Fe("colspan",s-e+1,r,l,1),t+p-1>n&&Fe("rowspan",n-t+1,r,l,1)}function Ap(r,t){const e=t.getColumns(r),n=new Array(e).fill(0);for(const{column:l}of new xe(r))n[l]++;const s=n.reduce((l,h,p)=>h?l:[...l,p],[]);return s.length>0&&(t.removeColumns(r,{at:s[s.length-1]}),!0)}function xp(r,t){const e=[],n=t.getRows(r);for(let s=0;s0&&(t.removeRows(r,{at:e[e.length-1]}),!0)}function Cp(r,t){Ap(r,t)||xp(r,t)}function Jk(r,t){const e=Array.from(new xe(r,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));return e.every(({cellHeight:s})=>1===s)?t.lastRow:t.lastRow+(e[0].cellHeight-1)}function $k(r,t){const e=Array.from(new xe(r,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));return e.every(({cellWidth:s})=>1===s)?t.lastColumn:t.lastColumn+(e[0].cellWidth-1)}class nd extends Jt{constructor(t,e){super(t),this.direction=e.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}execute(){const t=this.editor.model,e=t.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(e.selection)[0],s=this.value,l=this.direction;t.change(h=>{const p="right"==l||"down"==l,b=p?n:s,A=p?s:n,C=A.parent;var Y,$,st;$=b,st=h,t0(Y=A)||(t0($)&&st.remove(st.createRangeIn($)),st.move(st.createRangeIn(Y),st.createPositionAt($,"end"))),st.remove(Y);const E=this.isHorizontal?"colspan":"rowspan",P=parseInt(n.getAttribute(E)||"1"),F=parseInt(s.getAttribute(E)||"1");h.setAttribute(E,P+F,b),h.setSelection(h.createRangeIn(b));const j=this.editor.plugins.get("TableUtils");Cp(C.findAncestor("table"),j)})}_getMergeableCell(){const t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(!n)return;const s=this.isHorizontal?function(p,b,A){const P="right"==b?p.nextSibling:p.previousSibling,F=(p.parent.parent.getAttribute("headingColumns")||0)>0;if(!P)return;const j="right"==b?p:P,Y="right"==b?P:p,{column:$}=A.getCellLocation(j),{column:st}=A.getCellLocation(Y),ft=parseInt(j.getAttribute("colspan")||"1"),At=wp(A,j),Ft=wp(A,Y);return F&&At!=Ft?void 0:$+ft===st?P:void 0}(n,this.direction,e):function(p,b,A){const C=p.parent,E=C.parent,P=E.getChildIndex(C);if("down"==b&&P===A.getRows(E)-1||"up"==b&&0===P)return null;const F=parseInt(p.getAttribute("rowspan")||"1"),j=E.getAttribute("headingRows")||0;if(j&&("down"==b&&P+F===j||"up"==b&&P===j))return null;const st=parseInt(p.getAttribute("rowspan")||"1"),ft="down"==b?P+st:P,At=[...new xe(E,{endRow:ft})],jt=At.find(ce=>ce.cell===p).column,ae=At.find(({row:ce,cellHeight:ze,column:Re})=>Re===jt&&("down"==b?ce===ft:ft===ce+ze));return ae&&ae.cell?ae.cell:null}(n,this.direction,e);if(!s)return;const l=this.isHorizontal?"rowspan":"colspan",h=parseInt(n.getAttribute(l)||"1");return parseInt(s.getAttribute(l)||"1")===h?s:void 0}}function t0(r){const t=r.getChild(0);return 1==r.childCount&&t.is("element","paragraph")&&t.isEmpty}class Jy extends Jt{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const s=n.findAncestor("table"),l=t.getRows(s)-1,h=t.getRowIndexes(e);this.isEnabled=!(0===h.first&&h.last===l)}else this.isEnabled=!1}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),s=e.getRowIndexes(n),l=n[0],h=l.findAncestor("table"),p=e.getCellLocation(l).column;t.change(b=>{e.removeRows(h,{at:s.first,rows:s.last-s.first+1});const C=function(E,P,F,j){const Y=E.getChild(Math.min(P,j-1));let $=Y.getChild(0),st=0;for(const ft of Y.getChildren()){if(st>F)return $;$=ft,st+=parseInt(ft.getAttribute("colspan")||"1")}return $}(h,s.first,p,e.getRows(h));b.setSelection(b.createPositionAt(C,0))})}}class $y extends Jt{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const s=n.findAncestor("table"),l=t.getColumns(s),{first:h,last:p}=t.getColumnIndexes(e);this.isEnabled=p-hb.cell===e).column,last:l.find(b=>b.cell===n).column},p=(b=l,A=e,C=n,E=h,parseInt(C.getAttribute("colspan")||"1")>1?C:A.previousSibling||C.nextSibling?C.nextSibling||A.previousSibling:E.first?b.reverse().find(({column:F})=>FF>E.last).cell);var b,A,C,E;this.editor.model.change(b=>{t.removeColumns(s,{at:h.first,columns:h.last-h.first+1}),b.setSelection(b.createPositionAt(p,0))})}}class t2 extends Jt{refresh(){const n=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),s=n.length>0;this.isEnabled=s,this.value=s&&n.every(l=>this._isInHeading(l,l.parent.parent))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,s=e.getSelectionAffectedTableCells(n.document.selection),l=s[0].findAncestor("table"),{first:h,last:p}=e.getRowIndexes(s),b=this.value?h:p+1,A=l.getAttribute("headingRows")||0;n.change(C=>{if(b){const E=Gk(l,b,b>A?A:0);for(const{cell:P}of E)Wk(P,b,C)}Fe("headingRows",b,l,C,0)})}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index0;this.isEnabled=s,this.value=s&&n.every(l=>wp(e,l))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,s=e.getSelectionAffectedTableCells(n.document.selection),l=s[0].findAncestor("table"),{first:h,last:p}=e.getColumnIndexes(s),b=this.value?h:p+1;n.change(A=>{if(b){const C=Qk(l,b);for(const{cell:E,column:P}of C)Xk(E,P,b,A)}Fe("headingColumns",b,l,A,0)})}}class si extends Lt{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,s=n.getChildIndex(e),l=new xe(n,{row:s});for(const{cell:h,row:p,column:b}of l)if(h===t)return{row:p,column:b}}createTable(t,e){const n=t.createElement("table"),s=e.rows||2,l=e.columns||2;return yp(t,n,0,s,l),e.headingRows&&Fe("headingRows",Math.min(e.headingRows,s),n,t,0),e.headingColumns&&Fe("headingColumns",Math.min(e.headingColumns,l),n,t,0),n}insertRows(t,e={}){const n=this.editor.model,s=e.at||0,l=e.rows||1,h=void 0!==e.copyStructureFromAbove,p=e.copyStructureFromAbove?s-1:s,b=this.getRows(t),A=this.getColumns(t);if(s>b)throw new W("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change(C=>{const E=t.getAttribute("headingRows")||0;if(E>s&&Fe("headingRows",E+l,t,C,0),!h&&(0===s||s===b))return void yp(C,t,s,l,A);const P=h?Math.max(s,p):s,F=new xe(t,{endRow:P}),j=new Array(A).fill(1);for(const{row:Y,column:$,cellHeight:st,cellWidth:ft,cell:At}of F){const Ft=Y+st-1,jt=Y<=p&&p<=Ft;Y0&&$o(C,At,ft>1?{colspan:ft}:void 0),st+=Math.abs(ft)-1}}})}insertColumns(t,e={}){const s=e.at||0,l=e.columns||1;this.editor.model.change(h=>{const p=t.getAttribute("headingColumns");sl-1)throw new W("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});n.change(b=>{const A={first:h,last:p},{cellsToMove:C,cellsToTrim:E}=function(P,{first:F,last:j}){const Y=new Map,$=[];for(const{row:st,column:ft,cellHeight:At,cell:Ft}of new xe(P,{endRow:j})){const jt=st+At-1;if(st>=F&&st<=j&&jt>j&&Y.set(ft,{cell:Ft,rowspan:At-(j-st+1)}),st=F){let ae;ae=jt>=j?j-F+1:jt-F+1,$.push({cell:Ft,rowspan:At-ae})}}return{cellsToMove:Y,cellsToTrim:$}}(t,A);C.size&&function(P,F,j,Y){const st=[...new xe(P,{includeAllSlots:!0,row:F})],ft=P.getChild(F);let At;for(const{column:Ft,cell:jt,isAnchor:ae}of st)if(j.has(Ft)){const{cell:ce,rowspan:ze}=j.get(Ft),Re=At?Y.createPositionAfter(At):Y.createPositionAt(ft,0);Y.move(Y.createRangeOn(ce),Re),Fe("rowspan",ze,ce,Y),At=ce}else ae&&(At=jt)}(t,p+1,C,b);for(let P=p;P>=h;P--)b.remove(t.getChild(P));for(const{rowspan:P,cell:F}of E)Fe("rowspan",P,F,b);(function(P,{first:F,last:j},Y){const $=P.getAttribute("headingRows")||0;F<$&&Fe("headingRows",j<$?$-(j-F+1):F,P,Y,0)})(t,A,b),Ap(t,this)||xp(t,this)})}removeColumns(t,e){const s=e.at,h=e.at+(e.columns||1)-1;this.editor.model.change(p=>{!function(A,C,E){const P=A.getAttribute("headingColumns")||0;if(P&&C.firste.is("element","tableColumnGroup"))}(r);return t?Array.from(t.getChildren()):[]}(t);for(let A=h;A>=s;A--){for(const{cell:C,column:E,cellWidth:P}of[...new xe(t)])E<=A&&P>1&&E+P>A?Fe("colspan",P-1,C,p):E===A&&p.remove(C);if(b[A]){const C=0===A?b[1]:b[A-1],E=parseFloat(b[A].getAttribute("columnWidth")),P=parseFloat(C.getAttribute("columnWidth"));p.remove(b[A]),p.setAttribute("columnWidth",E+P+"%",C)}}xp(t,this)||Ap(t,this)})}splitCellVertically(t,e=2){const n=this.editor.model,s=t.parent.parent,l=parseInt(t.getAttribute("rowspan")||"1"),h=parseInt(t.getAttribute("colspan")||"1");n.change(p=>{if(h>1){const{newCellsSpan:b,updatedSpan:A}=e0(h,e);Fe("colspan",A,t,p);const C={};b>1&&(C.colspan=b),l>1&&(C.rowspan=l),es(h>e?e-1:h-1,p,p.createPositionAfter(t),C)}if(hj===t),E=A.filter(({cell:j,cellWidth:Y,column:$})=>j!==t&&$===C||$C);for(const{cell:j,cellWidth:Y}of E)p.setAttribute("colspan",Y+b,j);const P={};l>1&&(P.rowspan=l),es(b,p,p.createPositionAfter(t),P);const F=s.getAttribute("headingColumns")||0;F>C&&Fe("headingColumns",F+b,s,p)}})}splitCellHorizontally(t,e=2){const n=this.editor.model,s=t.parent,l=s.parent,h=l.getChildIndex(s),p=parseInt(t.getAttribute("rowspan")||"1"),b=parseInt(t.getAttribute("colspan")||"1");n.change(A=>{if(p>1){const C=[...new xe(l,{startRow:h,endRow:h+p-1,includeAllSlots:!0})],{newCellsSpan:E,updatedSpan:P}=e0(p,e);Fe("rowspan",P,t,A);const{column:F}=C.find(({cell:Y})=>Y===t),j={};E>1&&(j.rowspan=E),b>1&&(j.colspan=b);for(const Y of C){const{column:$,row:st}=Y;st>=h+P&&$===F&&(st+h+P)%E==0&&es(1,A,Y.getPositionBefore(),j)}}if(ph&&A.setAttribute("rowspan",Y+C,j);const P={};b>1&&(P.colspan=b),yp(A,l,h+1,C,1,P);const F=l.getAttribute("headingRows")||0;F>h&&Fe("headingRows",F+C,l,A)}})}getColumns(t){return[...t.getChild(0).getChildren()].reduce((e,n)=>e+parseInt(n.getAttribute("colspan")||"1"),0)}getRows(t){return Array.from(t.getChildren()).reduce((e,n)=>n.is("element","tableRow")?e+1:e,0)}createTableWalker(t,e={}){return new xe(t,e)}getSelectedTableCells(t){const e=[];for(const n of this.sortRanges(t.getRanges())){const s=n.getContainedElement();s&&s.is("element","tableCell")&&e.push(s)}return e}getTableCellsContainingSelection(t){const e=[];for(const n of t.getRanges()){const s=n.start.findAncestor("tableCell");s&&e.push(s)}return e}getSelectionAffectedTableCells(t){const e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}getRowIndexes(t){const e=t.map(n=>n.parent.index);return this._getFirstLastIndexesObject(e)}getColumnIndexes(t){const e=t[0].findAncestor("table"),n=[...new xe(e)].filter(s=>t.includes(s.cell)).map(s=>s.column);return this._getFirstLastIndexesObject(n)}isSelectionRectangular(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;const e=new Set,n=new Set;let s=0;for(const h of t){const{row:p,column:b}=this.getCellLocation(h),A=parseInt(h.getAttribute("rowspan"))||1,C=parseInt(h.getAttribute("colspan"))||1;e.add(p),n.add(b),A>1&&e.add(p+A-1),C>1&&n.add(b+C-1),s+=A*C}return function(h,p){const b=Array.from(h.values()),A=Array.from(p.values());return(Math.max(...b)-Math.min(...b)+1)*(Math.max(...A)-Math.min(...A)+1)}(e,n)==s}sortRanges(t){return Array.from(t).sort(r2)}_getFirstLastIndexesObject(t){const e=t.sort((n,s)=>n-s);return{first:e[0],last:e[e.length-1]}}_areCellInTheSameTableSection(t){const e=t[0].findAncestor("table"),n=this.getRowIndexes(t),s=parseInt(e.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,s))return!1;const l=this.getColumnIndexes(t),h=parseInt(e.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(l,h)}_areIndexesInSameSection({first:t,last:e},n){return t{const s=e.getSelectedTableCells(t.document.selection),l=s.shift(),{mergeWidth:h,mergeHeight:p}=function(b,A,C){let E=0,P=0;for(const st of A){const{row:ft,column:At}=C.getCellLocation(st);E=o0(st,At,E,"colspan"),P=o0(st,ft,P,"rowspan")}const{row:F,column:j}=C.getCellLocation(b);return{mergeWidth:E-j,mergeHeight:P-F}}(l,s,e);Fe("colspan",h,l,n),Fe("rowspan",p,l,n);for(const b of s)a2(b,l,n);Cp(l.findAncestor("table"),e),n.setSelection(l,"in")})}}function a2(r,t,e){n0(r)||(n0(t)&&e.remove(e.createRangeIn(t)),e.move(e.createRangeIn(r),e.createPositionAt(t,"end"))),e.remove(r)}function n0(r){const t=r.getChild(0);return 1==r.childCount&&t.is("element","paragraph")&&t.isEmpty}function o0(r,t,e,n){const s=parseInt(r.getAttribute(n)||"1");return Math.max(e,t+s)}class l2 extends Jt{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),s=e.getRowIndexes(n),l=n[0].findAncestor("table"),h=[];for(let p=s.first;p<=s.last;p++)for(const b of l.getChild(p).getChildren())h.push(t.createRangeOn(b));t.change(p=>{p.setSelection(h)})}}class c2 extends Jt{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),s=n[0],l=n.pop(),h=s.findAncestor("table"),p=t.getCellLocation(s),b=t.getCellLocation(l),A=Math.min(p.column,b.column),C=Math.max(p.column,b.column),E=[];for(const P of new xe(h,{startColumn:A,endColumn:C}))E.push(e.createRangeOn(P.cell));e.change(P=>{P.setSelection(E)})}}function h2(r,t){let e=!1;const n=function(s){const l=parseInt(s.getAttribute("headingRows")||"0"),h=Array.from(s.getChildren()).reduce((b,A)=>A.is("element","tableRow")?b+1:b,0),p=[];for(const{row:b,cell:A,cellHeight:C}of new xe(s)){if(C<2)continue;const E=bE&&p.push({cell:A,rowspan:E-b})}return p}(r);if(n.length){e=!0;for(const s of n)Fe("rowspan",s.rowspan,s.cell,t,1)}return e}function u2(r,t){let e=!1;const n=function(p){const b=new Array(p.childCount).fill(0);for(const{rowIndex:A}of new xe(p,{includeAllSlots:!0}))b[A]++;return b}(r),s=[];for(const[p,b]of n.entries())!b&&r.getChild(p).is("element","tableRow")&&s.push(p);if(s.length){e=!0;for(const p of s.reverse())t.remove(r.getChild(p)),n.splice(p,1)}const l=n.filter((p,b)=>r.getChild(b).is("element","tableRow")),h=l[0];if(!l.every(p=>p===h)){const p=l.reduce((b,A)=>A>b?A:b,0);for(const[b,A]of l.entries()){const C=p-A;if(C){for(let E=0;En.is("$text"));for(const n of e)t.wrap(t.createRangeOn(n),"paragraph");return!!e.length}function f2(r){return!!r.position.parent.is("element","tableCell")&&("insert"==r.type&&"$text"==r.name||"remove"==r.type)}function b2(r,t){if(!r.is("element","paragraph"))return!1;const e=t.toViewElement(r);return!!e&&jk(r)!==e.is("element","span")}var s0=lt(3881);Rt()(s0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class k2 extends Lt{constructor(t){super(t),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[si]}init(){const t=this.editor,e=t.model,n=e.schema,s=t.conversion,l=t.plugins.get(si);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),s.for("upcast").add(h=>{h.on("element:figure",(p,b,A)=>{if(!A.consumable.test(b.viewItem,{name:!0,classes:"table"}))return;const C=function(P){for(const F of P.getChildren())if(F.is("element","table"))return F}(b.viewItem);if(!C||!A.consumable.test(C,{name:!0}))return;A.consumable.consume(b.viewItem,{name:!0,classes:"table"});const E=Oe(A.convertItem(C,b.modelCursor).modelRange.getItems());E?(A.convertChildren(b.viewItem,A.writer.createPositionAt(E,"end")),A.updateConversionResult(E,b)):A.consumable.revert(b.viewItem,{name:!0,classes:"table"})})}),s.for("upcast").add(function Wy(){return r=>{r.on("element:table",(t,e,n)=>{const s=e.viewItem;if(!n.consumable.test(s,{name:!0}))return;const{rows:l,headingRows:h,headingColumns:p}=function(C){let E,P=0;const F=[],j=[];let Y;for(const $ of Array.from(C.getChildren())){if("tbody"!==$.name&&"thead"!==$.name&&"tfoot"!==$.name)continue;"thead"!==$.name||Y||(Y=$);const st=Array.from($.getChildren()).filter(ft=>ft.is("element","tr"));for(const ft of st)if(Y&&$===Y||"tbody"===$.name&&Array.from(ft.getChildren()).length&&Array.from(ft.getChildren()).every(At=>At.is("element","th")))P++,F.push(ft);else{j.push(ft);const At=Qy(ft);(!E||Atn.convertItem(C,n.writer.createPositionAt(A,"end"))),n.convertChildren(s,n.writer.createPositionAt(A,"end")),A.isEmpty){const C=n.writer.createElement("tableRow");n.writer.insert(C,n.writer.createPositionAt(A,"end")),$o(n.writer,n.writer.createPositionAt(C,"end"))}n.updateConversionResult(A,e)}})}}()),s.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Rk(l,{asWidget:!0,additionalSlots:this._additionalSlots})}),s.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Rk(l,{additionalSlots:this._additionalSlots})}),s.for("upcast").elementToElement({model:"tableRow",view:"tr"}),s.for("upcast").add(h=>{h.on("element:tr",(p,b)=>{b.viewItem.isEmpty&&0==b.modelCursor.index&&p.stop()},{priority:"high"})}),s.for("downcast").elementToElement({model:"tableRow",view:(h,{writer:p})=>h.isEmpty?p.createEmptyElement("tr"):p.createContainerElement("tr")}),s.for("upcast").elementToElement({model:"tableCell",view:"td"}),s.for("upcast").elementToElement({model:"tableCell",view:"th"}),s.for("upcast").add(zk("td")),s.for("upcast").add(zk("th")),s.for("editingDowncast").elementToElement({model:"tableCell",view:Zk({asWidget:!0})}),s.for("dataDowncast").elementToElement({model:"tableCell",view:Zk()}),s.for("editingDowncast").elementToElement({model:"paragraph",view:Uk({asWidget:!0}),converterPriority:"high"}),s.for("dataDowncast").elementToElement({model:"paragraph",view:Uk(),converterPriority:"high"}),s.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),s.for("upcast").attributeToAttribute({model:{key:"colspan",value:a0("colspan")},view:"colspan"}),s.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),s.for("upcast").attributeToAttribute({model:{key:"rowspan",value:a0("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new Ky(t)),t.commands.add("insertTableRowAbove",new Vk(t,{order:"above"})),t.commands.add("insertTableRowBelow",new Vk(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new qk(t,{order:"left"})),t.commands.add("insertTableColumnRight",new qk(t,{order:"right"})),t.commands.add("removeTableRow",new Jy(t)),t.commands.add("removeTableColumn",new $y(t)),t.commands.add("splitTableCellVertically",new Yk(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new Yk(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new s2(t)),t.commands.add("mergeTableCellRight",new nd(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new nd(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new nd(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new nd(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new e2(t)),t.commands.add("setTableRowHeader",new t2(t)),t.commands.add("selectTableRow",new l2(t)),t.commands.add("selectTableColumn",new c2(t)),function d2(r){r.document.registerPostFixer(t=>function(e,n){const s=n.document.differ.getChanges();let l=!1;const h=new Set;for(const p of s){let b=null;"insert"==p.type&&"table"==p.name&&(b=p.position.nodeAfter),"insert"!=p.type&&"remove"!=p.type||"tableRow"!=p.name&&"tableCell"!=p.name||(b=p.position.findAncestor("table")),p2(p)&&(b=p.range.start.findAncestor("table")),b&&!h.has(b)&&(l=h2(b,e)||l,l=u2(b,e)||l,h.add(b))}return l}(t,r))}(e),function g2(r){r.document.registerPostFixer(t=>function(e,n){const s=n.document.differ.getChanges();let l=!1;for(const h of s)"insert"==h.type&&"table"==h.name&&(l=m2(h.position.nodeAfter,e)||l),"insert"==h.type&&"tableRow"==h.name&&(l=r0(h.position.nodeAfter,e)||l),"insert"==h.type&&"tableCell"==h.name&&(l=Ep(h.position.nodeAfter,e)||l),"remove"!=h.type&&"insert"!=h.type||!f2(h)||(l=Ep(h.position.parent,e)||l);return l}(t,r))}(e),this.listenTo(e.document,"change:data",()=>{(function(h,p){const b=h.document.differ;for(const A of b.getChanges()){let C,E=!1;if("attribute"==A.type){const Y=A.range.start.nodeAfter;if(!Y||!Y.is("element","table")||"headingRows"!=A.attributeKey&&"headingColumns"!=A.attributeKey)continue;C=Y,E="headingRows"==A.attributeKey}else"tableRow"!=A.name&&"tableCell"!=A.name||(C=A.position.findAncestor("table"),E="tableRow"==A.name);if(!C)continue;const P=C.getAttribute("headingRows")||0,F=C.getAttribute("headingColumns")||0,j=new xe(C);for(const Y of j){const $=Y.rowb2(P,p.mapper));for(const P of E)p.reconvertItem(P)}}(e,t.editing)})}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function a0(r){return t=>{const e=parseInt(t.getAttribute(r));return Number.isNaN(e)||e<=0?null:e}}var l0=lt(1613);Rt()(l0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class w2 extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new vi,this.focusTracker=new Ye,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(n,s)=>`${s} \xd7 ${n}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":e.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:e.to("label")}]}],on:{mousedown:e.to(n=>{n.preventDefault()}),click:e.to(()=>{this.fire("execute")})}}),this.on("boxover",(n,s)=>{const{row:l,column:h}=s.target.dataset;this.items.get(10*(parseInt(l,10)-1)+(parseInt(h,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(n,s,l)=>{if(!l)return;const{row:h,column:p}=l.dataset;this.set({rows:parseInt(h),columns:parseInt(p)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:t,focusTracker:e,gridItems:n,numberOfColumns:s,uiLanguageDirection:l}){const h="number"==typeof s?()=>s:s;function p(C){return E=>{const P=n.find(Y=>Y.element===e.focusedElement),F=n.getIndex(P),j=C(F,n);n.get(j).focus(),E.stopPropagation(),E.preventDefault()}}function b(C,E){return C===E-1?0:C+1}function A(C,E){return 0===C?E-1:C-1}t.set("arrowright",p((C,E)=>"rtl"===l?A(C,E.length):b(C,E.length))),t.set("arrowleft",p((C,E)=>"rtl"===l?b(C,E.length):A(C,E.length))),t.set("arrowup",p((C,E)=>{let P=C-h();return P<0&&(P=C+h()*Math.floor(E.length/h()),P>E.length-1&&(P-=h())),P})),t.set("arrowdown",p((C,E)=>{let P=C+h();return P>E.length-1&&(P=C%h()),P}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map((n,s)=>{const l=Math.floor(s/10){const l=t.commands.get("insertTable"),h=Zn(s);let p;return h.bind("isEnabled").to(l),h.buttonView.set({icon:'',label:e("Insert table"),tooltip:!0}),h.on("change:isOpen",()=>{p||(p=new w2(s),h.panelView.children.add(p),p.delegate("execute").to(h),h.on("execute",()=>{t.execute("insertTable",{rows:p.rows,columns:p.columns}),t.editing.view.focus()}))}),h}),t.ui.componentFactory.add("tableColumn",s=>{const l=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:e("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:e("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:e("Select column")}}];return this._prepareDropdown(e("Column"),'',l,s)}),t.ui.componentFactory.add("tableRow",s=>{const l=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:e("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:e("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:e("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:e("Select row")}}];return this._prepareDropdown(e("Row"),'',l,s)}),t.ui.componentFactory.add("mergeTableCells",s=>{const l=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:e("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(e("Merge cells"),'',l,s)})}_prepareDropdown(t,e,n,s){const l=this.editor,h=Zn(s),p=this._fillDropdownWithListOptions(h,n);return h.buttonView.set({label:t,icon:e,tooltip:!0}),h.bind("isEnabled").toMany(p,"isEnabled",(...b)=>b.some(A=>A)),this.listenTo(h,"execute",b=>{l.execute(b.source.commandName),b.source instanceof xr||l.editing.view.focus()}),h}_prepareMergeSplitButtonDropdown(t,e,n,s){const l=this.editor,h=Zn(s,Lc),p="mergeTableCells",b=l.commands.get(p),A=this._fillDropdownWithListOptions(h,n);return h.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),h.bind("isEnabled").toMany([b,...A],"isEnabled",(...C)=>C.some(E=>E)),this.listenTo(h.buttonView,"execute",()=>{l.execute(p),l.editing.view.focus()}),this.listenTo(h,"execute",C=>{l.execute(C.source.commandName),l.editing.view.focus()}),h}_fillDropdownWithListOptions(t,e){const n=this.editor,s=[],l=new di;for(const h of e)x2(h,n,s,l);return hm(t,l),s}}function x2(r,t,e,n){if("button"===r.type||"switchbutton"===r.type){const s=r.model=new qm(r.model),{commandName:l,bindIsOn:h}=r.model,p=t.commands.get(l);e.push(p),s.set({commandName:l}),s.bind("isEnabled").to(p),h&&s.bind("isOn").to(p,"value"),s.set({withText:!0})}n.add(r)}var c0=lt(6945);Rt()(c0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class tr extends Lt{static get pluginName(){return"TableSelection"}static get requires(){return[si,si]}init(){const t=this.editor,n=t.editing.view;this.listenTo(t.model,"deleteContent",(s,l)=>this._handleDeleteContent(s,l),{priority:"high"}),this.listenTo(n.document,"insertText",(s,l)=>this._handleInsertTextEvent(s,l),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const n=this.editor.plugins.get(si).getSelectedTableCells(this.editor.model.document.selection);return 0==n.length?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(si),e=this.getSelectedTableCells();return e?this.editor.model.change(n=>{const s=n.createDocumentFragment(),{first:l,last:h}=t.getColumnIndexes(e),{first:p,last:b}=t.getRowIndexes(e),A=e[0].findAncestor("table");let C=b,E=h;if(t.isSelectionRectangular(e)){const F={firstColumn:l,lastColumn:h,firstRow:p,lastRow:b};C=Jk(A,F),E=$k(A,F)}const P=Hk(A,{startRow:p,startColumn:l,endRow:C,endColumn:E},n);return n.insert(P,s,0),s}):null}setCellSelection(t,e){const n=this._getCellsToSelect(t,e);this.editor.model.change(s=>{s.setSelection(n.cells.map(l=>s.createRangeOn(l)),{backward:n.backward})})}getFocusCell(){const t=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}getAnchorCell(){const t=Oe(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add(n=>n.on("selection",(s,l,h)=>{const p=h.writer;!function(C){for(const E of e)C.removeClass("ck-editor__editable_selected",E);e.clear()}(p);const b=this.getSelectedTableCells();if(!b)return;for(const C of b){const E=h.mapper.toViewElement(C);p.addClass("ck-editor__editable_selected",E),e.add(E)}const A=h.mapper.toViewElement(b[b.length-1]);p.setSelection(A,0)},{priority:"lowest"}))}_enablePluginDisabling(){const t=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const e=this.getSelectedTableCells();if(!e)return;t.model.change(n=>{const s=n.createPositionAt(e[0],0),l=t.model.schema.getNearestSelectionRange(s);n.setSelection(l)})}})}_handleDeleteContent(t,e){const n=this.editor.plugins.get(si),s=e[0],l=e[1],h=this.editor.model,p=!l||"backward"==l.direction,b=n.getSelectedTableCells(s);b.length&&(t.stop(),h.change(A=>{const C=b[p?b.length-1:0];h.change(P=>{for(const F of b)h.deleteContent(P.createSelection(F,"in"))});const E=h.schema.getNearestSelectionRange(A.createPositionAt(C,0));s.is("documentSelection")?A.setSelection(E):s.setTo(E)}))}_handleInsertTextEvent(t,e){const n=this.editor,s=this.getSelectedTableCells();if(!s)return;const l=n.editing.view,h=n.editing.mapper,p=s.map(b=>l.createRangeOn(h.toViewElement(b)));e.selection=l.createSelection(p)}_getCellsToSelect(t,e){const n=this.editor.plugins.get("TableUtils"),s=n.getCellLocation(t),l=n.getCellLocation(e),h=Math.min(s.row,l.row),p=Math.max(s.row,l.row),b=Math.min(s.column,l.column),A=Math.max(s.column,l.column),C=new Array(p-h+1).fill(null).map(()=>[]),E={startRow:h,endRow:p,startColumn:b,endColumn:A};for(const{row:j,cell:Y}of new xe(t.findAncestor("table"),E))C[j-h].push(Y);const P=l.rowj.reverse()),{cells:C.flat(),backward:P||F}}}class y2 extends Lt{static get pluginName(){return"TableClipboard"}static get requires(){return[tr,si]}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"copy",(n,s)=>this._onCopyCut(n,s)),this.listenTo(e,"cut",(n,s)=>this._onCopyCut(n,s)),this.listenTo(t.model,"insertContent",(n,[s,l])=>this._onInsertContent(n,s,l),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(t,e){const n=this.editor.plugins.get(tr);if(!n.getSelectedTableCells()||"cut"==t.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;e.preventDefault(),t.stop();const l=this.editor.editing.view.document,h=this.editor.data.toView(n.getSelectionAsFragment());l.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:h,method:t.name})}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const s=this.editor.model,l=this.editor.plugins.get(si);let h=this.getTableIfOnlyTableInContent(e,s);if(!h)return;const p=l.getSelectionAffectedTableCells(s.document.selection);p.length?(t.stop(),s.change(b=>{const A={width:l.getColumns(h),height:l.getRows(h)},C=function($,st,ft,At){const Ft=$[0].findAncestor("table"),jt=At.getColumnIndexes($),ae=At.getRowIndexes($),ce={firstColumn:jt.first,lastColumn:jt.last,firstRow:ae.first,lastRow:ae.last},ze=1===$.length;return ze&&(ce.lastRow+=st.height-1,ce.lastColumn+=st.width-1,function(Re,is,vn,Gi){const qn=Gi.getColumns(Re),Yn=Gi.getRows(Re);vn>qn&&Gi.insertColumns(Re,{at:qn,columns:vn-qn}),is>Yn&&Gi.insertRows(Re,{at:Yn,rows:is-Yn})}(Ft,ce.lastRow+1,ce.lastColumn+1,At)),ze||!At.isSelectionRectangular($)?function(Re,is,vn){const{firstRow:Gi,lastRow:qn,firstColumn:Yn,lastColumn:ir}=is,T0={first:Gi,last:qn},S0={first:Yn,last:ir};Sp(Re,Yn,T0,vn),Sp(Re,ir+1,T0,vn),Tp(Re,Gi,S0,vn),Tp(Re,qn+1,S0,vn,Gi)}(Ft,ce,ft):(ce.lastRow=Jk(Ft,ce),ce.lastColumn=$k(Ft,ce)),ce}(p,A,b,l),P=C.lastColumn-C.firstColumn+1,F={startRow:0,startColumn:0,endRow:Math.min(C.lastRow-C.firstRow+1,A.height)-1,endColumn:Math.min(P,A.width)-1};h=Hk(h,F,b);const j=p[0].findAncestor("table"),Y=this._replaceSelectedCellsWithPasted(h,A,j,C,b);if(this.editor.plugins.get("TableSelection").isEnabled){const $=l.sortRanges(Y.map(st=>b.createRangeOn(st)));b.setSelection($)}else b.setSelection(Y[0],0)})):Cp(h,l)}_replaceSelectedCellsWithPasted(t,e,n,s,l){const{width:h,height:p}=e,b=function($,st,ft){const At=new Array(ft).fill(null).map(()=>new Array(st).fill(null));for(const{column:Ft,row:jt,cell:ae}of new xe($))At[jt][Ft]=ae;return At}(t,h,p),A=[...new xe(n,{startRow:s.firstRow,endRow:s.lastRow,startColumn:s.firstColumn,endColumn:s.lastColumn,includeAllSlots:!0})],C=[];let E;for(const $ of A){const{row:st,column:ft}=$;ft===s.firstColumn&&(E=$.getPositionBefore());const jt=b[(st-s.firstRow)%p][(ft-s.firstColumn)%h],ae=jt?l.cloneElement(jt):null,ce=this._replaceTableSlotCell($,ae,E,l);ce&&(Kk(ce,st,ft,s.lastRow,s.lastColumn,l),C.push(ce),E=l.createPositionAfter(ce))}const P=parseInt(n.getAttribute("headingRows")||"0"),F=parseInt(n.getAttribute("headingColumns")||"0"),Y=s.firstColumnd0(l,h,e)).map(({cell:l})=>Wk(l,t,n))}function Sp(r,t,e,n){if(!(t<1))return Qk(r,t).filter(({row:s,cellHeight:l})=>d0(s,l,e)).map(({cell:s,column:l})=>Xk(s,l,t,n))}function d0(r,t,e){const n=r+t-1,{first:s,last:l}=e;return r>=s&&r<=l||r=s}class E2 extends Lt{static get pluginName(){return"TableKeyboard"}static get requires(){return[tr,si]}init(){const t=this.editor.editing.view.document;this.listenTo(t,"arrowKey",(...e)=>this._onArrowKey(...e),{context:"table"}),this.listenTo(t,"tab",(...e)=>this._handleTabOnSelectedTable(...e),{context:"figure"}),this.listenTo(t,"tab",(...e)=>this._handleTab(...e),{context:["th","td"]})}_handleTabOnSelectedTable(t,e){const n=this.editor,s=n.model.document.selection.getSelectedElement();s&&s.is("element","table")&&(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change(l=>{l.setSelection(l.createRangeIn(s.getChild(0).getChild(0)))}))}_handleTab(t,e){const n=this.editor,s=this.editor.plugins.get(si),l=this.editor.plugins.get("TableSelection"),p=!e.shiftKey;let b=s.getTableCellsContainingSelection(n.model.document.selection)[0];if(b||(b=l.getFocusCell()),!b)return;e.preventDefault(),e.stopPropagation(),t.stop();const A=b.parent,C=A.parent,E=C.getChildIndex(A),P=A.getChildIndex(b),F=0===P;if(!p&&F&&0===E)return void n.model.change(st=>{st.setSelection(st.createRangeOn(C))});const j=P===A.childCount-1,Y=E===s.getRows(C)-1;if(p&&Y&&j&&(n.execute("insertTableRowBelow"),E===s.getRows(C)-1))return void n.model.change(st=>{st.setSelection(st.createRangeOn(C))});let $;if(p&&j)$=C.getChild(E+1).getChild(0);else if(!p&&F){const st=C.getChild(E-1);$=st.getChild(st.childCount-1)}else $=A.getChild(P+(p?1:-1));n.model.change(st=>{st.setSelection(st.createRangeIn($))})}_onArrowKey(t,e){const s=Ns(e.keyCode,this.editor.locale.contentLanguageDirection);this._handleArrowKeys(s,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.plugins.get(si),s=this.editor.plugins.get("TableSelection"),l=this.editor.model,h=l.document.selection,p=["right","down"].includes(t),b=n.getSelectedTableCells(h);if(b.length){let C;return C=e?s.getFocusCell():p?b[b.length-1]:b[0],this._navigateFromCellInDirection(C,t,e),!0}const A=h.focus.findAncestor("tableCell");if(!A)return!1;if(!h.isCollapsed)if(e){if(h.isBackward==p&&!h.containsEntireContent(A))return!1}else{const C=h.getSelectedElement();if(!C||!l.schema.isObject(C))return!1}return!!this._isSelectionAtCellEdge(h,A,p)&&(this._navigateFromCellInDirection(A,t,e),!0)}_isSelectionAtCellEdge(t,e,n){const s=this.editor.model,l=this.editor.model.schema,h=n?t.getLastPosition():t.getFirstPosition();if(!l.getLimitElement(h).is("element","tableCell"))return s.createPositionAt(e,n?"end":0).isTouching(h);const p=s.createSelection(h);return s.modifySelection(p,{direction:n?"forward":"backward"}),h.isEqual(p.focus)}_navigateFromCellInDirection(t,e,n=!1){const s=this.editor.model,l=t.findAncestor("table"),h=[...new xe(l,{includeAllSlots:!0})],{row:p,column:b}=h[h.length-1],A=h.find(({cell:Y})=>Y==t);let{row:C,column:E}=A;switch(e){case"left":E--;break;case"up":C--;break;case"right":E+=A.cellWidth;break;case"down":C+=A.cellHeight}if(C<0||C>p||E<0&&C<=0||E>b&&C>=p)return void s.change(Y=>{Y.setSelection(Y.createRangeOn(l))});E<0?(E=n?0:b,C--):E>b&&(E=n?b:0,C++);const P=h.find(Y=>Y.row==C&&Y.column==E).cell,F=["right","down"].includes(e),j=this.editor.plugins.get("TableSelection");if(n&&j.isEnabled){const Y=j.getAnchorCell()||t;j.setCellSelection(Y,P)}else{const Y=s.createPositionAt(P,F?0:"end");s.change($=>{$.setSelection(Y)})}}}class T2 extends un{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(t){this.fire(t.type,t)}}class S2 extends Lt{static get pluginName(){return"TableMouse"}static get requires(){return[tr,si]}init(){this.editor.editing.view.addObserver(T2),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(si);let n=!1;const s=t.plugins.get(tr);this.listenTo(t.editing.view.document,"mousedown",(l,h)=>{const p=t.model.document.selection;if(!this.isEnabled||!s.isEnabled||!h.domEvent.shiftKey)return;const b=s.getAnchorCell()||e.getTableCellsContainingSelection(p)[0];if(!b)return;const A=this._getModelTableCellFromDomEvent(h);A&&h0(b,A)&&(n=!0,s.setCellSelection(b,A),h.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{n=!1}),this.listenTo(t.editing.view.document,"selectionChange",l=>{n&&l.stop()},{priority:"highest"})}_enableMouseDragSelection(){const t=this.editor;let e,n,s=!1,l=!1;const h=t.plugins.get(tr);this.listenTo(t.editing.view.document,"mousedown",(p,b)=>{this.isEnabled&&h.isEnabled&&(b.domEvent.shiftKey||b.domEvent.ctrlKey||b.domEvent.altKey||(e=this._getModelTableCellFromDomEvent(b)))}),this.listenTo(t.editing.view.document,"mousemove",(p,b)=>{if(!b.domEvent.buttons||!e)return;const A=this._getModelTableCellFromDomEvent(b);A&&h0(e,A)&&(n=A,s||n==e||(s=!0)),s&&(l=!0,h.setCellSelection(e,n),b.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{s=!1,l=!1,e=null,n=null}),this.listenTo(t.editing.view.document,"selectionChange",p=>{l&&p.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(t){const n=this.editor.editing.view.createPositionAt(t.target,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function h0(r,t){return r.parent.parent==t.parent.parent}var u0=lt(6306);function D2(r){const t=r.getSelectedElement();return t&&p0(t)?t:null}function M2(r){const t=r.getFirstPosition();if(!t)return null;let e=t.parent;for(;e;){if(e.is("element")&&p0(e))return e;e=e.parent}return null}function p0(r){return!!r.getCustomProperty("table")&&He(r)}Rt()(u0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var g0=lt(7368);Rt()(g0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var m0=lt(9247);Rt()(m0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var f0=lt(4070);Rt()(f0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var b0=lt(6237);Rt()(b0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var v0=lt(5087);Rt()(v0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var k0=lt(7341);Rt()(k0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var _0=lt(2128);Rt()(_0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var w0=lt(4101);Rt()(w0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Z2=Object.defineProperty,A0=Object.getOwnPropertySymbols,U2=Object.prototype.hasOwnProperty,j2=Object.prototype.propertyIsEnumerable,x0=(r,t,e)=>t in r?Z2(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,C0=(r,t)=>{for(var e in t||(t={}))U2.call(t,e)&&x0(r,e,t[e]);if(A0)for(var e of A0(t))j2.call(t,e)&&x0(r,e,t[e]);return r};const V2={autoRefresh:!0};class Ip extends(ne()){constructor(t,e={}){if(super(),!t)throw new W("token-missing-token-url",this);e.initValue&&this._validateTokenValue(e.initValue),this.set("value",e.initValue),this._refresh="function"==typeof t?t:()=>{return n=t,new Promise((s,l)=>{const h=new XMLHttpRequest;h.open("GET",n),h.addEventListener("load",()=>{const p=h.status,b=h.response;return p<200||p>299?l(new W("token-cannot-download-new-token",null)):s(b)}),h.addEventListener("error",()=>l(new Error("Network Error"))),h.addEventListener("abort",()=>l(new Error("Abort"))),h.send()});var n},this._options=C0(C0({},V2),e)}init(){return new Promise((t,e)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),t(this)):this.refreshToken().then(t).catch(e)})}refreshToken(){return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(t){const e="string"==typeof t,n=!/^".*"$/.test(t),s=e&&3===t.split(".").length;if(!n||!s)throw new W("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{const[,t]=this.value.split("."),{exp:e}=JSON.parse(atob(t));return e?Math.floor((1e3*e-Date.now())/2):36e5}catch{return 36e5}}static create(t,e={}){return new Ip(t,e).init()}}const Dp=/^data:(\S*?);base64,/;class q2 extends(ie()){constructor(t,e,n){if(super(),!t)throw new W("fileuploader-missing-file",null);if(!e)throw new W("fileuploader-missing-token",null);if(!n)throw new W("fileuploader-missing-api-address",null);this.file=function(s){if("string"!=typeof s)return!1;const l=s.match(Dp);return!(!l||!l.length)}(t)?function(s,l=512){try{const h=s.match(Dp)[1],p=atob(s.replace(Dp,"")),b=[];for(let A=0;At(n)),this}onError(t){return this.once("error",(e,n)=>t(n)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const t=new XMLHttpRequest;t.open("POST",this._apiAddress),t.setRequestHeader("Authorization",this._token.value),t.responseType="json",this.xhr=t}_attachXHRListeners(){const t=this.xhr,e=n=>()=>this.fire("error",n);t.addEventListener("error",e("Network Error")),t.addEventListener("abort",e("Abort")),t.upload&&t.upload.addEventListener("progress",n=>{n.lengthComputable&&this.fire("progress",{total:n.total,uploaded:n.loaded})}),t.addEventListener("load",()=>{const n=t.status,s=t.response;if(n<200||n>299)return this.fire("error",s.message||s.error)})}_sendRequest(){const t=new FormData,e=this.xhr;return t.append("file",this.file),new Promise((n,s)=>{e.addEventListener("load",()=>{const l=e.status,h=e.response;return l<200||l>299?s(h.message?new W("fileuploader-uploading-data-failed",this,{message:h.message}):h.error):n(h)}),e.addEventListener("error",()=>s(new Error("Network Error"))),e.addEventListener("abort",()=>s(new Error("Abort"))),e.send(t)})}}class Y2{constructor(t,e){if(!t)throw new W("uploadgateway-missing-token",null);if(!e)throw new W("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=e}upload(t){return new q2(t,this._token,this._apiAddress)}}class H2 extends Er{static get pluginName(){return"CloudServicesCore"}createToken(t,e){return new Ip(t,e)}createUploadGateway(t,e){return new Y2(t,e)}}var E0=(r,t,e)=>new Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class Mp extends Uc{}Mp.builtinPlugins=[class extends Lt{static get requires(){return[nb,Yc,yA,Q1,U1,db]}static get pluginName(){return"Essentials"}},class extends Lt{static get requires(){return[sn]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const r=this.editor.config.get("ckfinder.uploadUrl");r&&(this.editor.plugins.get(sn).createUploadAdapter=t=>new RA(t,r,this.editor.t))}},class extends Lt{static get requires(){return[Un]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const r=this.editor.commands;r.get("bulletedList")&&Ao(this.editor,this,/^[*-]\s$/,"bulletedList"),r.get("numberedList")&&Ao(this.editor,this,/^1[.|)]\s$/,"numberedList"),r.get("todoList")&&Ao(this.editor,this,/^\[\s?\]\s$/,"todoList"),r.get("checkTodoList")&&Ao(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const r=this.editor.commands;if(r.get("bold")){const t=Xc(this.editor,"bold");Kr(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),Kr(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(r.get("italic")){const t=Xc(this.editor,"italic");Kr(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,t),Kr(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,t)}if(r.get("code")){const t=Xc(this.editor,"code");Kr(this.editor,this,/(`)([^`]+)(`)$/g,t)}if(r.get("strikethrough")){const t=Xc(this.editor,"strikethrough");Kr(this.editor,this,/(~~)([^~]+)(~~)$/g,t)}}_addHeadingAutoformats(){const r=this.editor.commands.get("heading");r&&r.modelElements.filter(t=>t.match(/^heading[1-6]$/)).forEach(t=>{const n=new RegExp(`^(#{${t[7]}})\\s$`);Ao(this.editor,this,n,()=>{if(!r.isEnabled||r.value===t)return!1;this.editor.execute("heading",{value:t})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Ao(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const r=this.editor,t=r.model.document.selection;r.commands.get("codeBlock")&&Ao(r,this,/^```$/,()=>{if(t.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Ao(this.editor,this,/^---$/,"horizontalLine")}},class extends Lt{static get requires(){return[ZA,UA]}static get pluginName(){return"Bold"}},class extends Lt{static get requires(){return[VA,qA]}static get pluginName(){return"Italic"}},class extends Lt{static get requires(){return[HA,WA]}static get pluginName(){return"BlockQuote"}},class extends Lt{static get pluginName(){return"CKBox"}static get requires(){return[Ib,QA]}},class extends Lt{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",_x,vx]}},class extends Er{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[H2]}init(){return E0(this,null,function*(){const r=this.context.config.get("cloudServices")||{};for(const[e,n]of Object.entries(r))this[e]=n;if(!this.tokenUrl)return void(this.token=null);const t=this.context.plugins.get("CloudServicesCore");this.token=yield t.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(r){return E0(this,null,function*(){if(this._tokens.has(r))return this.getTokenFor(r);const t=this.context.plugins.get("CloudServicesCore"),e=yield t.createToken(r).init();return this._tokens.set(r,e),e})}getTokenFor(r){const t=this._tokens.get(r);if(!t)throw new W("cloudservices-token-not-registered",this);return t}destroy(){super.destroy();for(const r of this._tokens.values())r.destroy()}},class extends Lt{static get pluginName(){return"EasyImage"}static get requires(){return[wx,"ImageUpload"]}init(){const r=this.editor;r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||kt("easy-image-image-feature-missing",r)}},class extends Lt{static get requires(){return[Ex,Sx]}static get pluginName(){return"Heading"}},class extends Lt{static get requires(){return[Qx,Kx]}static get pluginName(){return"Image"}},class extends Lt{static get requires(){return[$x,tC]}static get pluginName(){return"ImageCaption"}},class extends Lt{static get requires(){return[Pv,xC]}static get pluginName(){return"ImageStyle"}},class extends Lt{static get requires(){return[Gc,Ci]}static get pluginName(){return"ImageToolbar"}afterInit(){const r=this.editor,t=r.t,e=r.plugins.get(Gc),n=r.plugins.get("ImageUtils");var s;e.register("image",{ariaLabel:t("Image toolbar"),items:(s=r.config.get("image.toolbar")||[],s.map(l=>te(l)?l.name:l)),getRelatedElement:l=>n.getClosestSelectedImageWidget(l)})}},class extends Lt{static get pluginName(){return"ImageUpload"}static get requires(){return[gC,nC,aC]}},class extends Lt{static get pluginName(){return"Indent"}static get requires(){return[CC,yC]}},class extends Lt{static get requires(){return[ik,ty,ey]}static get pluginName(){return"Link"}},class extends Lt{static get requires(){return[Cy,cy]}static get pluginName(){return"List"}},class extends Lt{static get requires(){return[id,Py,Dy,Ea]}static get pluginName(){return"MediaEmbed"}},ap,class extends Lt{static get pluginName(){return"PasteFromOffice"}static get requires(){return[fn]}init(){const r=this.editor,t=r.plugins.get("ClipboardPipeline"),e=r.editing.view.document,n=[];n.push(new jy(e)),n.push(new qy(e)),n.push(new Hy(e)),t.on("inputTransformation",(s,l)=>{if(l._isTransformedWithPasteFromOffice||r.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const h=l.dataTransfer.getData("text/html"),p=n.find(b=>b.isActive(h));p&&(l._parsedData||(l._parsedData=function Gy(r,t){const e=new DOMParser,n=Fk(Fk(function(b){const E=b.indexOf("");if(E<0)return b;const P=b.indexOf("",E+7);return b.substring(0,E+7)+(P>=0?b.substring(P):"")}(r=(r=r.replace(/ - + @@ -37,5 +37,5 @@ - + diff --git a/bn-BN/main.564757f70d749b54.js b/bn-BN/main.564757f70d749b54.js deleted file mode 100644 index 0d00c21..0000000 --- a/bn-BN/main.564757f70d749b54.js +++ /dev/null @@ -1,3 +0,0 @@ -globalThis.$localize=Object.assign(globalThis.$localize || {},{locale:"bn-BN"}); -"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val));if(i===0||n===1)return 1;return 5}global.ng.common.locales["bn"]=["bn",[["AM","PM"],u,u],u,[["\u09B0","\u09B8\u09CB","\u09AE","\u09AC\u09C1","\u09AC\u09C3","\u09B6\u09C1","\u09B6"],["\u09B0\u09AC\u09BF","\u09B8\u09CB\u09AE","\u09AE\u0999\u09CD\u0997\u09B2","\u09AC\u09C1\u09A7","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF","\u09B6\u09C1\u0995\u09CD\u09B0","\u09B6\u09A8\u09BF"],["\u09B0\u09AC\u09BF\u09AC\u09BE\u09B0","\u09B8\u09CB\u09AE\u09AC\u09BE\u09B0","\u09AE\u0999\u09CD\u0997\u09B2\u09AC\u09BE\u09B0","\u09AC\u09C1\u09A7\u09AC\u09BE\u09B0","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF\u09AC\u09BE\u09B0","\u09B6\u09C1\u0995\u09CD\u09B0\u09AC\u09BE\u09B0","\u09B6\u09A8\u09BF\u09AC\u09BE\u09B0"],["\u09B0\u0983","\u09B8\u09CB\u0983","\u09AE\u0983","\u09AC\u09C1\u0983","\u09AC\u09C3\u0983","\u09B6\u09C1\u0983","\u09B6\u09A8\u09BF"]],u,[["\u099C\u09BE","\u09AB\u09C7","\u09AE\u09BE","\u098F","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1","\u0986","\u09B8\u09C7","\u0985","\u09A8","\u09A1\u09BF"],["\u099C\u09BE\u09A8\u09C1","\u09AB\u09C7\u09AC","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"],["\u099C\u09BE\u09A8\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"]],[["\u099C\u09BE","\u09AB\u09C7","\u09AE\u09BE","\u098F","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1","\u0986","\u09B8\u09C7","\u0985","\u09A8","\u09A1\u09BF"],["\u099C\u09BE\u09A8\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"],u],[["\u0996\u09CD\u09B0\u09BF\u09B8\u09CD\u099F\u09AA\u09C2\u09B0\u09CD\u09AC","\u0996\u09C3\u09B7\u09CD\u099F\u09BE\u09AC\u09CD\u09A6"],u,["\u0996\u09CD\u09B0\u09BF\u09B8\u09CD\u099F\u09AA\u09C2\u09B0\u09CD\u09AC","\u0996\u09CD\u09B0\u09C0\u09B7\u09CD\u099F\u09BE\u09AC\u09CD\u09A6"]],0,[6,0],["d/M/yy","d MMM, y","d MMMM, y","EEEE, d MMMM, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##,##0.###","#,##,##0%","#,##,##0.00\xA4","#E0"],"BDT","\u09F3","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6\u09C0 \u099F\u09BE\u0995\u09BE",{"BDT":["\u09F3"],"BYN":[u,"\u0440."],"JPY":["JP\xA5","\xA5"],"PHP":[u,"\u20B1"],"THB":["\u0E3F"],"TWD":["NT$"],"USD":["US$","$"]},"ltr",plural,[[["\u09AD\u09CB\u09B0","\u09B8\u0995\u09BE\u09B2","\u09A6\u09C1\u09AA\u09C1\u09B0","\u09AC\u09BF\u0995\u09BE\u09B2","\u09B8\u09A8\u09CD\u09A7\u09CD\u09AF\u09BE","\u09B0\u09BE\u09A4\u09CD\u09B0\u09BF"],u,["\u09AD\u09CB\u09B0","\u09B8\u0995\u09BE\u09B2","\u09A6\u09C1\u09AA\u09C1\u09B0","\u09AC\u09BF\u0995\u09BE\u09B2","\u09B8\u09A8\u09CD\u09A7\u09CD\u09AF\u09BE","\u09B0\u09BE\u09A4\u09CD\u09B0\u09BF\u09A4\u09C7"]],[["\u09AD\u09CB\u09B0","\u09B8\u0995\u09BE\u09B2","\u09A6\u09C1\u09AA\u09C1\u09B0","\u09AC\u09BF\u0995\u09BE\u09B2","\u09B8\u09A8\u09CD\u09A7\u09CD\u09AF\u09BE","\u09B0\u09BE\u09A4\u09CD\u09B0\u09BF"],u,u],[["04:00","06:00"],["06:00","12:00"],["12:00","16:00"],["16:00","18:00"],["18:00","20:00"],["20:00","04:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);; -(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[179],{8743:(ft,Ie,C)=>{"use strict";C.d(Ie,{Ic:()=>l,Ym:()=>Z,e6:()=>te});var e=C(6825);function l(ce,_e,Re){return(0,e.X$)(ce,[(0,e.SB)("loading",(0,e.oB)({opacity:.1})),(0,e.SB)("loaded",(0,e.oB)({opacity:1})),(0,e.eR)(_e+" => "+Re,[(0,e.jt)(".5s")]),(0,e.eR)(Re+" => "+_e,[(0,e.jt)("0.1s")])])}function Z(ce,_e){return(0,e.X$)(ce,[(0,e.SB)("void",(0,e.oB)({transform:`translateX(${"left"==_e?"-100%":"100%"})`})),(0,e.eR)(":enter",[(0,e.jt)("300ms",(0,e.oB)({transform:"translateX(0)"}))])])}function te(ce){return(0,e.X$)(ce,[(0,e.eR)(":enter",[(0,e.oB)({transformOrigin:"top",transform:"rotateX(-90deg)"}),(0,e.jt)("400ms",(0,e.oB)({transform:"rotateX(0deg)"}))])])}},2350:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>e});class e{getErrorKey(D){return D+":error"}getMultiErrorKey(D,I){return D+":error:"+I}}},2159:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>ue});var e=C(8637),l=C(6405),D=C(7613),I=C(8743),S=C(3108),w=C(5879),n=C(30),Z=C(1662),ee=C(6945),re=C(8675);let ue=(()=>{class se extends e.H{constructor(oe,ce,_e,Re){super(oe,ce,_e),this.popup=Re,this.Layout=l.A,this.StringUtil=D.m,this.breadcrumbItems=[],this.layout=l.A.GRID,this.breadcrumbItems=this.getBreadcrumbItems()}ngOnInit(){let oe=this.getConfig().searchEndpoint,ce=S.n.retrieve(oe);this.layout=null!=ce?parseInt(ce):this.getConfig().defaultLayout,this.initialize()}onLayoutSelected(oe){this.layout=oe,S.n.put(this.getConfig().searchEndpoint,this.layout.toString())}openUpsertComponent(oe){let ce=this.getUpsertComponent();null!=ce&&(this.popup.open(ce,{id:oe}),this.popup.onCompleted.subscribe(_e=>{this.ngOnInit(),null!=_e&&this.onUpsertSuccess(_e),console.log("onSuccess. closing dialog")}),this.popup.onCanceled.subscribe(()=>{console.log("onCanceled. closing dialog")}))}onUpsertClick(oe){if(this.getConfig().upsertOnDialog)this.openUpsertComponent(oe);else{let ce=this.getRoutes();if(null==ce)return;let _e=null==oe?ce.create:ce.update(oe);this.router.navigate([_e],{queryParams:null!=oe?ce.params:{}})}}onUpsertSuccess(oe){console.log("onUpsertSuccess",oe)}static#e=this.\u0275fac=function(ce){return new(ce||se)(w.Y36(n.Y),w.Y36(Z.F0),w.Y36(ee.z),w.Y36(re.x))};static#t=this.\u0275cmp=w.Xpm({type:se,selectors:[["ng-component"]],features:[w.qOj],decls:0,vars:0,template:function(ce,_e){},encapsulation:2,data:{animation:[(0,I.Ym)("onGrid","left"),(0,I.Ym)("onColumn","right")]}})}return se})()},9870:(ft,Ie,C)=>{"use strict";C.d(Ie,{n:()=>ee});var e=C(8637),l=C(5879),D=C(7700),I=C(8743),S=C(1855),w=C(30),n=C(1662),Z=C(6945);let ee=(()=>{class re extends e.H{constructor(se,te,oe,ce,_e){super(se,te,oe),this.route=ce,this.dialogData=_e,this.breadcrumbItems=[],this.onCanceled=new l.vpe,this.onCompleted=new l.vpe,this.filterData=null,this.exId=null,this.dialogUpsert=!1,this.breadcrumbItems=this.getBreadcrumbItems(),this.dialogUpsert=null!=_e.dialogUpsert}ngOnInit(){this.loading=!1,this.route.queryParams.subscribe(se=>{this.filterData=(0,S.OP)(se)}),this.route.paramMap.subscribe(se=>{let te=se.get("id");if(null==te&&(te=this.dialogData?.id),null!=te){let oe=parseInt(te);isNaN(oe)||(this.exId=oe,this.initialize(this.exId))}})}navigateToListPage(se=null){this.router.navigate([this.getListPageRoute()],{queryParams:null==this.filterData?null:(0,S.oZ)(this.filterData)}).then(se)}onSuccess(se){this.loading=!1,this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCompleted.emit(se):this.navigateToListPage()}onCancel(){this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCanceled.emit():this.navigate(this.getListPageRoute(),se=>{})}static#e=this.\u0275fac=function(te){return new(te||re)(l.Y36(w.Y),l.Y36(n.F0),l.Y36(Z.z),l.Y36(n.gz),l.Y36(D.WI))};static#t=this.\u0275cmp=l.Xpm({type:re,selectors:[["ng-component"]],outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[l.qOj],decls:0,vars:0,template:function(te,oe){},encapsulation:2,data:{animation:[(0,I.e6)("loaded")]}})}return re})()},8637:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>ue});var e=C(3674),l=C(2350),D=C(7613),I=C(553),S=C(8743),w=C(190),n=C(5879),Z=C(30),ee=C(1662),re=C(6945);let ue=(()=>{class se extends l.R{constructor(oe,ce,_e){super(),this.eventBus=oe,this.router=ce,this.subContainer=_e,this.translations=w.I,this.loading=!0,this.swipeCoord=[0,0],this.swipeTime=0,this.SWIPE_START="swipe-action-start",this.SWIPE_END="swipe-action-end",this.SWIPE_LEFT="swipe-left",this.SWIPE_RIGHT="swipe-right"}subscribe(oe,ce,_e){this.subContainer.hasKey(oe)&&this.subContainer.disposeSubscription(oe);let Re=this.eventBus.on(oe).subscribe(mt=>{null!=ce?this.router.navigate([ce]).then(Ge=>{_e(Ge,mt)}):_e(!1,mt)});return this.subContainer.add(oe,Re),Re}reloadRoute(){this.navigate(this.router.url,oe=>{})}reloadRouteByUrl(){this.navigateByUrl(this.router.url,oe=>{})}navigate(oe,ce){oe==this.router.url&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload"),null!=oe&&this.router.navigate([oe]).then(_e=>ce(_e))}navigateByUrl(oe,ce){oe==this.router.url&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload"),null!=oe&&this.router.navigateByUrl(oe).then(_e=>ce(_e))}goHomeAndDoABarrelRoll(oe){this.router.navigateByUrl("").then(ce=>oe)}ngOnDestroy(){this.subContainer.disposeForComponent(this.constructor.name)}isInvalidInput(oe){return e.w.isInvalidInput(oe)}getFormError(oe,ce){return e.w.getFormError(oe,ce)}componentKey(oe){return this.componentName()+":"+oe}globalKey(oe){return"global:"+oe}firstWord(oe){return D.m.firstWord(oe)}errMsg(oe,ce,_e,Re){let mt=oe.controls[ce];return mt.touched&&mt.errors?Re:null}initSeoItems(oe,ce,_e,Re,mt,Ge,Lt,je,Tt){oe.setTitle(_e),ce.addTags([{name:"keywords",content:mt.join(",")},{name:"description",description:Re},{name:"robots",content:Ge??"index, follow"},{property:"og:type",content:Lt??"article"},{property:"og:title",content:_e},{property:"og:description",content:Re},{property:"og:image",content:je??""},{property:"og:url",content:Tt},{property:"og:site_name",content:I.N.app_name}])}getPermalink(){return I.N.app_url+this.router.url}swipe(oe,ce,_e){const Re=[oe.changedTouches[0].clientX,oe.changedTouches[0].clientY],mt=(new Date).getTime();if(ce===this.SWIPE_START)this.swipeCoord=Re,this.swipeTime=mt;else if(ce===this.SWIPE_END){const Ge=[Re[0]-this.swipeCoord[0],Re[1]-this.swipeCoord[1]];mt-this.swipeTime<1e3&&Math.abs(Ge[0])>30&&Math.abs(Ge[0])>Math.abs(3*Ge[1])&&this.eventBus.publish(_e,Ge[0]<0?this.SWIPE_RIGHT:this.SWIPE_LEFT)}}static#e=this.\u0275fac=function(ce){return new(ce||se)(n.Y36(Z.Y),n.Y36(ee.F0),n.Y36(re.z))};static#t=this.\u0275cmp=n.Xpm({type:se,selectors:[["ng-component"]],features:[n.qOj],decls:0,vars:0,template:function(ce,_e){},encapsulation:2,data:{animation:[(0,S.Ic)("dataLoaded","loading","loaded")]}})}return se})()},2495:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>D});var e=C(553),l=C(5879);class D{constructor(){}static#e=this.API_VERSION_1="/api/v1";static#t=this.API_VERSION_2="/api/v2";static toParamString(S){let w="";for(let n in S)null!=S[n]&&(w+=""===w?"?":"&",w=w+n+"="+this.convertToString(S[n]));return w}static convertToString(S){return S instanceof Date?S.toISOString():S.toString()}static#n=this.FILES={FILE_ENDPOINT:e.N.base_url+D.API_VERSION_2+"/files",IMAGE_ENDPOINT:e.N.base_url+D.API_VERSION_2+"/images",IMAGE_ENDPOINT_ADMIN:e.N.base_url+D.API_VERSION_2+"/admin/images",IMAGE_UPLOAD_ENDPOINT_BULK:e.N.base_url+D.API_VERSION_2+"/images/bulk",FILE_ENDPOINT_ADMIN:e.N.base_url+D.API_VERSION_2+"/admin/files",SEARCH:(S,w)=>S.concat(D.toParamString(w)),CREATE(){return this.FILE_ENDPOINT},UPLOAD(S){return this.IMAGE_UPLOAD_ENDPOINT_BULK.concat(D.toParamString(S))},GET(S){return this.FILE_ENDPOINT+"/"+S},UPDATE(S){return this.FILE_ENDPOINT+"/"+S}};static#i=this.\u0275fac=function(w){return new(w||D)};static#r=this.\u0275prov=l.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}},8674:(ft,Ie,C)=>{"use strict";function e(I){const S={};for(const w in I)Object.prototype.hasOwnProperty.call(I,w)&&(S[w]=I[w]instanceof Date?I[w].toISOString():"object"==typeof I[w]&&null!==I[w]?e(I[w]):I[w]);return S}C.d(Ie,{GN:()=>e,Q3:()=>l});const l=I=>{const S={};return I.forEach((w,n)=>{S[n]=w}),S}},6542:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>e});let e={content:[],pageable:{sort:{sorted:!1,unsorted:!1,empty:!1},pageNumber:0,pageSize:10,offset:0,paged:!1,unpaged:!1},totalPages:0,totalElements:0,last:!1,first:!0,sort:{sorted:!1,unsorted:!1,empty:!1},numberOfElements:0,size:10,number:0,empty:!0}},1547:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>S});var e=C(2350),l=C(5879),D=C(8480),I=C(5462);let S=(()=>{class w extends e.R{constructor(Z,ee){super(),this.authService=Z,this.notifier=ee}handleError(Z,ee,re){401===Z.status||0===Z.status||504===Z.status?(console.log("Refreshing token",Z),this.authService.refreshToken(ee)):(console.log("Other error",Z),re(Z))}static#e=this.\u0275fac=function(ee){return new(ee||w)(l.LFG(D.e),l.LFG(I.l))};static#t=this.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})()},6945:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>l});var e=C(5879);let l=(()=>{class D{constructor(){this.subs=new Map}getKeys(){return this.subs}add(S,w){null==S||null==w||this.subs.has(S)||this.subs.set(S,w)}hasKey(S){return this.subs.has(S)}dispose(){this.subs.forEach(S=>S.unsubscribe()),this.subs.clear()}disposeSubscription(S){this.subs.get(S)?.unsubscribe(),this.subs.delete(S)}disposeNonGlobal(){this.subs.forEach((S,w)=>{w.startsWith("global:")||(S.unsubscribe(),this.subs.delete(w))})}disposeForComponent(S){this.subs.forEach((w,n)=>{n.startsWith(S)&&(w.unsubscribe(),this.subs.delete(n))})}static#e=this.\u0275fac=function(w){return new(w||D)};static#t=this.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},6032:(ft,Ie,C)=>{"use strict";C.d(Ie,{s:()=>I});var e=C(2495),l=C(553),D=C(5879);class I extends e.O{constructor(){super()}static#e=this.CRUDEXAMPLES={CRUDEXAMPLE_ENDPOINT:l.N.base_url+"/api/v1/crudexamples",CRUDEXAMPLE_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/crudexamples",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.CRUDEXAMPLE_ENDPOINT},GET(w){return this.CRUDEXAMPLE_ENDPOINT+"/"+w},UPDATE(w){return this.CRUDEXAMPLE_ENDPOINT+"/"+w}};static#t=this.LABELS={LABEL_ENDPOINT_POLLBOX:l.N.base_url+"/api/v1/public/labels/POLLBOX/children",LABEL_ENDPOINT:l.N.base_url+"/api/v1/labels",LABEL_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/labels",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.LABEL_ENDPOINT},GET(w){return this.LABEL_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LABEL_ENDPOINT+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LABEL_ENDPOINT+"/"+w}};static#n=this.FEEDBACKS={FEEDBACK_ENDPOINT:l.N.base_url+"/api/v2/feedbacks",FEEDBACK_ENDPOINT_ADMIN:l.N.base_url+"/api/v2/admin/feedbacks",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.FEEDBACK_ENDPOINT},GET(w){return this.FEEDBACK_ENDPOINT+"/"+w},UPDATE(w){return this.FEEDBACK_ENDPOINT+"/"+w},TAKE_ACTION(w){return this.FEEDBACK_ENDPOINT_ADMIN+"/"+w+"/action"}};static#i=this.POPTIONS={POPTION_ENDPOINT:l.N.base_url+"/api/v1/poll-options",POPTION_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-options",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.POPTION_ENDPOINT},GET(w){return this.POPTION_ENDPOINT+"/"+w},UPDATE(w){return this.POPTION_ENDPOINT+"/"+w}};static#r=this.ACVALIDATIONTOKENS={ACVALIDATIONTOKEN_ENDPOINT:l.N.base_url+"/api/v1/validation-tokens",ACVALIDATIONTOKEN_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/validation-tokens",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.ACVALIDATIONTOKEN_ENDPOINT},GET(w){return this.ACVALIDATIONTOKEN_ENDPOINT+"/"+w},UPDATE(w){return this.ACVALIDATIONTOKEN_ENDPOINT+"/"+w}};static#o=this.LOCATIONTYPES={LOCATIONTYPE_ENDPOINT:l.N.base_url+"/api/v1/location-types",LOCATIONTYPE_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/location-types",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.LOCATIONTYPE_ENDPOINT},GET(w){return this.LOCATIONTYPE_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LOCATIONTYPE_ENDPOINT+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LOCATIONTYPE_ENDPOINT+"/"+w}};static#s=this.LOCATIONS={LOCATION_ENDPOINT:l.N.base_url+"/api/v1/locations",LOCATION_ENDPOINT_V2:l.N.base_url+"/api/v2/locations",LOCATION_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/locations",SEARCH:(w,n)=>w+"/child-locations".concat(e.O.toParamString(n)),GET_LOCATIONS_FOR_TYPE:(w,n)=>w+"/"+n+"/locations",CREATE(){return this.LOCATION_ENDPOINT},GET(w){return this.LOCATION_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LOCATION_ENDPOINT_V2+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LOCATION_ENDPOINT+"/"+w}};static#a=this.ADDRESSS={ADDRESS_ENDPOINT:l.N.base_url+"/api/v1/global-addresss",ADDRESS_ENDPOINT_V2:l.N.base_url+"/api/v2/global-addresses",ADDRESS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/global-addresss",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.ADDRESS_ENDPOINT},GET(w){return this.ADDRESS_ENDPOINT_V2+"/"+w},UPDATE(w){return this.ADDRESS_ENDPOINT+"/"+w}};static#l=this.\u0275fac=function(n){return new(n||I)};static#c=this.\u0275prov=D.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}},6405:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>e});var e=function(l){return l[l.GRID=0]="GRID",l[l.COLUMN=1]="COLUMN",l}(e||{})},190:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>l,s:()=>D});var e=function(I){return I.CAN_MANAGE_INVENTORY="CAN_MANAGE_INVENTORY",I.ADMINISTRATION="ADMINISTRATION",I.ACCESS_USER_RESOURCES="ACCESS_USER_RESOURCES",I.CAN_TAKE_EXAM="CAN_TAKE_EXAM",I}(e||{});const l={Dashboard:"\u09A1\u09CD\u09AF\u09BE\u09B6\u09AC\u09CB\u09B0\u09CD\u09A1",Inventory:"\u0987\u09A8\u09AD\u09C7\u09A8\u09CD\u099F\u09B0\u09BF",Stocks:"\u09B8\u09CD\u099F\u0995",Products:"\u09AA\u09A3\u09CD\u09AF",Categories:"\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF",Brands:"\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1\u0997\u09C1\u09B2\u09CB",Variations:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AD\u09C7\u09B0\u09BF\u09DF\u09C7\u09B6\u09A8",Sales:"\u09AC\u09BF\u0995\u09CD\u09B0\u09BF\u09B8\u09AE\u09C2\u09B9",Orders:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0",Customers:"\u0995\u09BE\u09B8\u09CD\u099F\u09AE\u09BE\u09B0","My Contents":"\u0986\u09AE\u09BE\u09B0 \u0995\u09A8\u099F\u09C7\u09A8\u09CD\u099F\u09B8","Uploaded Files":"\u0986\u09AA\u09B2\u09CB\u09A1 \u0995\u09B0\u09BE \u09AB\u09BE\u0987\u09B2\u09B8\u09AE\u09C2\u09B9",PollBox:"\u09AA\u09CB\u09B2 \u09AC\u0995\u09CD\u09B8",Questionnaires:"\u09AA\u09CD\u09B0\u09B6\u09CD\u09A8\u09CB\u09A4\u09CD\u09A4\u09B0\u09C0 \u09B8\u09AE\u09C2\u09B9",Polls:"\u09AA\u09CB\u09B2\u09B8\u09AE\u09C2\u09B9","Poll Options":"\u09AA\u09CB\u09B2 \u0985\u09AA\u09B6\u09A8\u09B8\u09AE\u09C2\u09B9",Votes:"\u09AD\u09CB\u099F\u09B8\u09AE\u09C2\u09B9","Filterable Attributes":"\u09AB\u09BF\u09B2\u09CD\u099F\u09BE\u09B0 \u0995\u09B0\u09BE \u09AF\u09BE\u09DF \u098F\u09AE\u09A8 \u09AC\u09C8\u09B6\u09BF\u09B7\u09CD\u099F\u09CD\u09AF\u09B8\u09AE\u09C2\u09B9",Stores:"\u09B8\u09CD\u099F\u09CB\u09B0\u09B8\u09AE\u09C2\u09B9","My Wallet":"\u0986\u09AE\u09BE\u09B0 \u0993\u09DF\u09BE\u09B2\u09C7\u099F","Validation Tokens":"\u09AD\u09CD\u09AF\u09BE\u09B2\u09BF\u09A1\u09C7\u09B6\u09A8 \u099F\u09CB\u0995\u09C7\u09A8\u09B8\u09AE\u09C2\u09B9","Activity Logs":"\u0985\u09CD\u09AF\u09BE\u0995\u09CD\u099F\u09BF\u09AD\u09BF\u099F\u09BF \u09B2\u0997\u09B8\u09AE\u09C2\u09B9","Location Types":"\u09B8\u09CD\u09A5\u09BE\u09A8\u09C7\u09B0 \u09A7\u09B0\u09A3\u09B8\u09AE\u09C2\u09B9","Crud Examples":"\u0995\u09CD\u09B0\u09BE\u09A1 \u0989\u09A6\u09BE\u09B9\u09B0\u09A3\u09B8\u09AE\u09C2\u09B9",Specifications:"\u09AC\u09C8\u09B6\u09BF\u09B7\u09CD\u099F\u09CD\u09AF\u0997\u09C1\u09B2\u09CB",Astha:"\u0986\u09B8\u09CD\u09A5\u09BE",Social:"\u09B8\u09BE\u09AE\u09BE\u099C\u09BF\u0995",Notifications:"\u09A8\u09CB\u099F\u09BF\u09AB\u09BF\u0995\u09C7\u09B6\u09A8\u09B8\u09AE\u09C2\u09B9",Feedbacks:"\u09AB\u09BF\u09A1\u09AC\u09CD\u09AF\u09BE\u0995\u09B8\u09AE\u09C2\u09B9",Wallet:"\u0993\u09DF\u09BE\u09B2\u09C7\u099F",Administration:"\u09AA\u09CD\u09B0\u09B6\u09BE\u09B8\u09A8",Labels:"\u09B2\u09C7\u09AC\u09C7\u09B2\u09B8\u09AE\u09C2\u09B9",Users:"\u09AC\u09CD\u09AF\u09BE\u09AC\u09B9\u09BE\u09B0\u0995\u09BE\u09B0\u09C0\u0997\u09A8",Lockouts:"\u09B2\u0995\u0986\u0989\u099F\u09B8\u09AE\u09C2\u09B9",Locations:"\u09B8\u09CD\u09A5\u09BE\u09A8\u09B8\u09AE\u09C2\u09B9",Addresses:"\u09A0\u09BF\u0995\u09BE\u09A8\u09BE\u09B8\u09AE\u09C2\u09B9","Search..":"\u0996\u09C1\u0981\u099C\u09C1\u09A8","Enter Quantity":"\u09AA\u09B0\u09BF\u09AE\u09BE\u09A3 \u09B2\u09BF\u0996\u09C1\u09A8","Unit Price":"\u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF \u09B2\u09BF\u0996\u09C1\u09A8","Enter Retail Price":"\u09AC\u09BF\u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF \u09B2\u09BF\u0996\u09C1\u09A8","Enter Discount":"\u09A1\u09BF\u09B8\u0995\u09BE\u0989\u09A8\u09CD\u099F \u09B2\u09BF\u0996\u09C1\u09A8","Enter Cashback (%)":"\u0995\u09CD\u09AF\u09BE\u09B6\u09AC\u09CD\u09AF\u09BE\u0995 \u09B2\u09BF\u0996\u09C1\u09A8 (%)","Enter Name":"\u09A8\u09BE\u09AE \u09B2\u09BF\u0996\u09C1\u09A8","Enter Title":"\u099F\u09BE\u0987\u099F\u09C7\u09B2 \u09B2\u09BF\u0996\u09C1\u09A8",Images:"\u099B\u09AC\u09BF\u09B8\u09AE\u09C2\u09B9",Image:"\u099B\u09AC\u09BF","Search Brand":"\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1 \u0996\u09C1\u0981\u099C\u09C1\u09A8","Search Category..":"\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Search Variations..":"\u09AD\u09CD\u09AF\u09BE\u09B0\u09BF\u09DF\u09C7\u09B6\u09A8 \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Search Attributes..":"\u09AC\u09C8\u09B6\u09BF\u09B7\u09CD\u099F\u09CD\u09AF \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Search Customer..":"\u0995\u09BE\u09B8\u09CD\u099F\u09AE\u09BE\u09B0 \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Search Stock..":"\u09B8\u09CD\u099F\u0995 \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Enter Phone":"\u09AB\u09CB\u09A8 \u09A8\u09BE\u09AE\u09CD\u09AC\u09BE\u09B0 \u09B2\u09BF\u0996\u09C1\u09A8","Search Store..":"\u09B8\u09CD\u099F\u09CB\u09B0 \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Enter Description":"\u09AC\u09BF\u09AC\u09B0\u09A3 \u09B2\u09BF\u0996\u09C1\u09A8",Logo:"\u09B2\u09CB\u0997\u09CB","Select File":"\u09AB\u09BE\u0987\u09B2 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8","Feedback Actions":"\u09AB\u09BF\u09A1\u09AC\u09CD\u09AF\u09BE\u0995\u09C7\u09B0 \u09AA\u09CD\u09B0\u09A4\u09BF\u0995\u09CD\u09B0\u09BF\u09DF\u09BE\u0997\u09C1\u09B2\u09CB",Upsert:"\u09A4\u09C8\u09B0\u09BF/\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8","My Sales":"\u0986\u09AE\u09BE\u09B0 \u09AC\u09BF\u0995\u09CD\u09B0\u09BF\u09A4 \u09AA\u09A3\u09CD\u09AF\u09B8\u09AE\u09C2\u09B9","Products in Stock":"\u09B8\u09CD\u099F\u0995\u09C7 \u09A5\u09BE\u0995\u09BE \u09AA\u09A3\u09CD\u09AF\u09B8\u09AE\u09C2\u09B9","All Products":"\u09B8\u0995\u09B2 \u09AA\u09A3\u09CD\u09AF","My Customers":"\u0986\u09AE\u09BE\u09B0 \u0995\u09BE\u09B8\u09CD\u099F\u09AE\u09BE\u09B0\u0997\u09A8",$:"\u09F3"},D=[{title:l.Dashboard,expanded:!0,icon:"fab fa-dashcube",items:[{title:l.Dashboard,icon:"bx bx-home-circle",link:"/admin/dashboard",selected:!1,children:[],permissions:[e.ACCESS_USER_RESOURCES]}]},{title:l.PollBox,expanded:!0,icon:"fa fa-poll",items:[{title:l.Questionnaires,icon:"fa fa-poll",link:"/admin/questionnaires",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l.Polls,icon:"fa fa-poll",link:"/admin/polls",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l["Poll Options"],icon:"fa fa-poll",link:"/admin/poll-options",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l.Votes,icon:"fa fa-poll",link:"/admin/votes",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Inventory,expanded:!0,icon:"fa fa-cubes",items:[{title:l.Stocks,icon:"fa fa-cubes",link:"/admin/inventory/stocks",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Products,icon:"fa fa-cubes",link:"/admin/inventory/products",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Categories,icon:"fa fa-folder",link:"/admin/inventory/categories",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Brands,icon:"fa fa-tags",link:"/admin/inventory/brands",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Variations,icon:"fa fa-trademark",link:"/admin/inventory/variations",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Specifications,icon:"fa fa-cube",link:"/admin/inventory/product-specifications",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Filterable Attributes"],icon:"fa fa-filter",link:"/admin/inventory/filterable-attributes",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Stores,icon:"fa fa-filter",link:"/admin/inventory/vendors",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Sales,expanded:!0,icon:"fa fa-shopping-cart",items:[{title:l.Orders,icon:"fa fa-shopping-cart",link:"/admin/sales/orders",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Customers,icon:"fa fa-user",link:"/admin/sales/customers",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]}]},{title:l["My Contents"],expanded:!0,icon:"fa fa-file",items:[{title:l["Uploaded Files"],icon:"fa fa-file",link:"/cms/files",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]}]},{title:l.Astha,expanded:!0,icon:"fa fa-heart",items:[{title:l["Uploaded Files"],icon:"fa fa-filter",link:"/admin/inventory/attributes",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Social,expanded:!0,icon:"fa fa-users",items:[{title:l.Notifications,icon:"fa fa-filter",link:"/admin/notifications",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Feedbacks,icon:"fa fa-filter",link:"/admin/feedbacks",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Wallet,expanded:!0,icon:"fa fa-wallet",items:[{title:l["My Wallet"],icon:"fa fa-wallet",link:"/admin/accounts/wallet",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Administration,expanded:!0,icon:"fas fa-cogs",items:[{title:l.Labels,icon:"fas fa-tag",link:"/admin/labels",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Users,icon:"fas fa-users",link:"/admin/users",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Validation Tokens"],icon:"fas fa-tag",link:"/admin/users/validation-tokens",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Activity Logs"],icon:"fas fa-tag",link:"/admin/users/activity-logs",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Lockouts,icon:"fas fa-tag",link:"/admin/users/request-credentials/lockouts",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Location Types"],icon:"fas fa-tag",link:"/admin/location-types",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Locations,icon:"fas fa-tag",link:"/admin/locations",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Addresses,icon:"fas fa-tag",link:"/admin/addresses",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Crud Examples"],icon:"fas fa-tag",link:"/admin/crudexamples",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]}]},2071:(ft,Ie,C)=>{"use strict";C.d(Ie,{B:()=>Be});var e=C(5879),l=C(8637),D=C(6223),I=C(2096),S=C(7259),w=C(30),n=C(1662),Z=C(6945),ee=C(1547),re=C(1259),ue=C(8480),se=C(5462),te=C(9862);let oe=(()=>{class Ee extends ee.b{constructor(me,tt,he,Ze){super(me,tt),this.http=he,this.eventBus=Ze}searchVendors(me,tt){const he=S.Z.VENDORS.SEARCH_VENDORS();return this.http.get(re.e.VENDORS.SEARCH({q:tt,flagship:me})).subscribe(Ze=>{this.eventBus.publish(he,Ze)},Ze=>{this.eventBus.publish(S.Z.VENDORS.FETCH_ERROR(),Ze)}),he}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.LFG(ue.e),e.LFG(se.l),e.LFG(te.eN),e.LFG(w.Y))};static#t=this.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();var ce=C(2951),_e=C(6814),Re=C(7700),mt=C(2296),Ge=C(469);function Lt(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"zxing-scanner",12),e.NdJ("scanSuccess",function(he){e.CHM(me);const Ze=e.oxw(2);return e.KtG(Ze.onScanSuccess(he))})("scanFailure",function(he){e.CHM(me);const Ze=e.oxw(2);return e.KtG(Ze.onScanFailure(he))}),e.qZA()}if(2&Ee){const me=e.oxw(2);e.Q6J("formats",me.allowedFormats)}}function je(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",7)(1,"div",13)(2,"label",14),e._uU(3,"Selected Shop"),e.qZA(),e._UZ(4,"input",15),e.qZA()()),2&Ee){const me=e.oxw(2);e.xp6(4),e.Q6J("value",me.scannedCode.name)}}function Tt(Ee,$e){1&Ee&&(e.TgZ(0,"div",23)(1,"span"),e._uU(2,"Minimum 10 to maximum 1000 can be redeemed."),e.qZA()())}function xt(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"div")(1,"div",16)(2,"h2"),e._uU(3,"Enter amount"),e.qZA(),e.TgZ(4,"div",7)(5,"div",13)(6,"label",17),e._uU(7,"Points"),e.qZA(),e._UZ(8,"input",18),e.qZA()(),e.YNc(9,Tt,3,0,"div",19),e.qZA(),e.TgZ(10,"div",20)(11,"button",21),e.NdJ("click",function(){e.CHM(me);const he=e.oxw(2);return e.KtG(he.redeem())}),e._UZ(12,"i",22),e._uU(13," REDEEM "),e.qZA()()()}if(2&Ee){const me=e.oxw(2);e.xp6(9),e.Q6J("ngIf",me.isInvalidInput(me.redeemForm.controls.points)),e.xp6(2),e.Q6J("disabled",me.redeemForm.invalid)}}function St(Ee,$e){if(1&Ee&&(e.TgZ(0,"div")(1,"mat-dialog-content",1),e._UZ(2,"section",2),e.TgZ(3,"form",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"p"),e._uU(8,"Scan QR to choose a shop"),e.qZA(),e.TgZ(9,"div",7),e.YNc(10,Lt,1,1,"zxing-scanner",8),e.YNc(11,je,5,1,"div",9),e.qZA()(),e.YNc(12,xt,14,2,"div",0),e.qZA()()()(),e.TgZ(13,"mat-dialog-actions",10)(14,"button",11),e._uU(15,"CANCEL"),e.qZA()()()),2&Ee){const me=e.oxw();e.xp6(3),e.Q6J("formGroup",me.redeemForm),e.xp6(7),e.Q6J("ngIf",null==me.scannedCode),e.xp6(1),e.Q6J("ngIf",null!=me.scannedCode),e.xp6(1),e.Q6J("ngIf",null!=me.scannedCode)}}function Zt(Ee,$e){if(1&Ee&&(e.TgZ(0,"div")(1,"h2",24),e._uU(2),e.qZA(),e.TgZ(3,"mat-dialog-content",1),e._uU(4),e.qZA(),e.TgZ(5,"mat-dialog-actions",10)(6,"button",11),e._uU(7,"CLOSE"),e.qZA()()()),2&Ee){const me=e.oxw();e.xp6(2),e.hij("Congratulations! Pay TK",me.redemption.discount_amount," less."),e.xp6(2),e.AsE(" You have successfully redeemed ",me.redemption.points," points. You got TK",me.redemption.discount_amount," discount from Astha loyalty points. ")}}let yt=(()=>{class Ee extends l.H{constructor(me,tt,he,Ze,rt,bt){super(me,tt,he),this.vendorService=Ze,this.leaderboardService=rt,this.notifier=bt,this.availablePoints=0,this.redemption=null,this.vendors=[],this.redeemForm=new D.cw({vendor:new D.NI("",D.kI.min(1)),points:new D.NI("",[D.kI.required,D.kI.min(100),D.kI.max(1e3)])}),this.allowedFormats=[11,7,4,5],this.scannedCode=null}componentName(){return"RedeemComponent"}ngOnInit(){}redeem(){if(null==this.scannedCode)return;let me=this.componentKey(S.Z.LEADERBOARDS.REDEEM_SUCCESS());this.leaderboardService.redeem(me,this.mapToRedeemReq(this.redeemForm)),this.subscribe(me,null,(tt,he)=>{this.redemption=he.data}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Failed!",he.data.error.message)})}searchVendors(){const tt=this.vendorService.searchVendors(!1,this.redeemForm.controls.vendor.value||"");this.subscribe(tt,null,(he,Ze)=>{this.vendors=Ze.data.content})}getVendors(){return(0,I.of)(this.vendors)}mapToRedeemReq(me){return{vendor_uuid:this.scannedCode?.uuid+"",points:me.controls.points.value}}onScanSuccess(me){try{this.scannedCode=JSON.parse(me)}catch(tt){this.notifier.warning("Invalid QR",String(tt))}}onScanFailure(me){console.log(me)}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.Y36(w.Y),e.Y36(n.F0),e.Y36(Z.z),e.Y36(oe),e.Y36(ce.S),e.Y36(se.l))};static#t=this.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-redeem"]],inputs:{availablePoints:"availablePoints"},features:[e.qOj],decls:2,vars:2,consts:[[4,"ngIf"],[1,"mat-typography"],["id","post_review_section"],["action","POST",3,"formGroup"],[1,"review-r-d-input-fields","pt-4"],[1,"container"],[1,"pros-area","mt-4"],[1,"pros-single-item-content","d-flex","align-items-end"],[3,"formats","scanSuccess","scanFailure",4,"ngIf"],["class","pros-single-item-content d-flex align-items-end",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],[3,"formats","scanSuccess","scanFailure"],[1,"fields"],["for","selected-vendor",1,"form-label"],["type","text","id","selected-vendor","required","required","readonly","",1,"form-control",3,"value"],[1,"cons-area","mt-4"],["for","points",1,"form-label"],["type","number","id","points","placeholder","Enter the amount you want to redeem","formControlName","points","required","required","min","3",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[1,"text-warning"],["mat-dialog-title",""]],template:function(tt,he){1&tt&&(e.YNc(0,St,16,4,"div",0),e.YNc(1,Zt,8,3,"div",0)),2&tt&&(e.Q6J("ngIf",null==he.redemption),e.xp6(1),e.Q6J("ngIf",null!=he.redemption))},dependencies:[_e.O5,D._Y,D.Fj,D.wV,D.JJ,D.JL,D.Q7,D.qQ,D.sg,D.u,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.S]})}return Ee})();var un=C(8174),Jt=C(1822),tn=C(4736);function wn(Ee,$e){1&Ee&&e._UZ(0,"util-progress",18),2&Ee&&e.Q6J("bar",!0)}function Ln(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"div",11)(1,"h3"),e._uU(2),e.qZA(),e.TgZ(3,"div",19),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.showLoyaltyPointHint())}),e.TgZ(4,"h5"),e._uU(5,"Redeemable"),e.qZA(),e.TgZ(6,"i"),e._uU(7,"(?)"),e.qZA()()()}if(2&Ee){const me=e.oxw();e.xp6(2),e.Oqu(null==me.wallet?null:me.wallet.loyalty_points)}}function Yn(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",11)(1,"h3"),e._uU(2),e.qZA(),e.TgZ(3,"h5"),e._uU(4,"Achieved Badge"),e.qZA()()),2&Ee){const me=e.oxw();e.xp6(2),e.Oqu(me.getCurrentBadgeTitle())}}function ti(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"a",20),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.openRedeemDialog())}),e._uU(1,"Redeem"),e.qZA()}}function gi(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.ALo(3,"date"),e.qZA(),e.TgZ(4,"td"),e._uU(5),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA(),e.TgZ(8,"td"),e._uU(9),e.qZA(),e.TgZ(10,"td"),e._uU(11),e.TgZ(12,"span",26),e.NdJ("click",function(){const Ze=e.CHM(me).$implicit,rt=e.oxw(3);return e.KtG(rt.copyToClipboard(Ze.trnx_id))}),e._uU(13,"COPY"),e.qZA()()()}if(2&Ee){const me=$e.$implicit;e.xp6(2),e.Oqu(e.xi3(3,5,me.created_at,"dd-MM-yyyy hh:m:s")),e.xp6(3),e.Oqu(me.description),e.xp6(2),e.Oqu(me.amount),e.xp6(2),e.Oqu(me.type),e.xp6(2),e.hij("",me.trnx_id," ")}}function Rn(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",23)(1,"table",24)(2,"thead")(3,"tr")(4,"th"),e._uU(5,"Date"),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Desc."),e.qZA(),e.TgZ(8,"th"),e._uU(9,"Amount"),e.qZA(),e.TgZ(10,"th"),e._uU(11,"Type"),e.qZA(),e.TgZ(12,"th"),e._uU(13,"Tnx"),e.qZA()()(),e.TgZ(14,"tbody"),e.YNc(15,gi,14,8,"tr",25),e.qZA()()()),2&Ee){const me=e.oxw(2);e.xp6(15),e.Q6J("ngForOf",null==me.wallet?null:me.wallet.recent_transactions)}}function dt(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"h4",4),e._uU(4,"Recent Transactions"),e.qZA(),e.TgZ(5,"div",21),e.YNc(6,Rn,16,1,"div",22),e.qZA()()()()),2&Ee){const me=e.oxw();e.xp6(6),e.Q6J("ngIf",me.showRecentTransactions)}}const at=function(Ee){return[Ee]};let Be=(()=>{class Ee extends l.H{constructor(me,tt,he,Ze,rt,bt,Nt,Qt,nn){super(tt,he,Ze),this.location=me,this.authService=rt,this.notifier=bt,this.dialog=Nt,this.leaderboardService=Qt,this.walletService=nn,this.username=null,this.leaderboard=null,this.wallet=null,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe,this.showRecentTransactions=!1,null==this.username&&(this.username=this.getAuthUsername())}componentName(){return"LeaderboardComponent"}ngOnInit(){null==this.leaderboard&&this.fetchLeaderboard(),null==this.wallet&&this.fetchWallet()}getAuth(){return this.authService.getAuth()}getAuthUsername(){return this.getAuth().username}isMyProfile(){return!!this.authService.isAuthenticated()&&this.getAuthUsername()===this.username}fetchLeaderboard(){if(this.loading=!0,null==this.username)return;let me=this.componentKey(S.Z.LEADERBOARDS.FETCH_LEADERBOARD(this.username));this.leaderboardService.fetchLeaderboard(me,this.username),this.subscribe(me,null,(tt,he)=>{this.leaderboard=he.data,this.loading=!1}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Error",he.data.error.message)})}fetchWallet(){this.loading=!0;let me=this.componentKey(S.Z.WALLET.FETCH_MY_WALLET());this.walletService.fetchWallet(me,{}),this.subscribe(me,null,(tt,he)=>{this.wallet=he.data,this.loading=!1}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Error",he.data.error.message)})}getRedeemedAmount(){return null==this.leaderboard?0:this.leaderboard.points-this.leaderboard.available_points}openRedeemDialog(){if(!this.authService.isAuthenticated())return void this.router.navigate(["/login"]);const me=this.dialog.open(yt);let tt=me.componentInstance,he=this.leaderboard?.available_points;tt.availablePoints=null==he?0:he,me.afterClosed().subscribe(Ze=>{this.ngOnInit(),console.log(`Dialog result: ${Ze}`)})}showLoyaltyPointHint(){this.notifier.info("Loyalty point updates every 100 threshold.","When you earn points on app, it's immediately added to your total points. But your loyalty points account is updated when you reach every 100 points threshold.")}getCurrentBadgeTitle(){return null==this.leaderboard?.current_badge?"N/A":this.leaderboard.current_badge.title}getBadgeCount(){return null==this.leaderboard?0:this.leaderboard.badges.length}copyToClipboard(me){un.g.copyToClipboard(me),this.notifier.info("Copied","Copied to clipboard")}onCloseClick(){this.onCanceled.emit()}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.Y36(_e.Ye),e.Y36(w.Y),e.Y36(n.F0),e.Y36(Z.z),e.Y36(ue.e),e.Y36(se.l),e.Y36(Re.uw),e.Y36(ce.S),e.Y36(Jt.X))};static#t=this.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-leaderboard"]],inputs:{username:"username",leaderboard:"leaderboard",wallet:"wallet"},features:[e.qOj],decls:46,vars:13,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"card"],[1,"card-body"],[1,"card-title"],["alt","Leaderboard",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"card-subtitle","font-14","text-muted"],["href","javascript:void(0);",3,"routerLink"],[1,"card-text","text-warning","mt-2"],[1,"card-body","col-12"],[1,"table"],[1,"text-center"],["class","text-center",4,"ngIf"],[1,"float-end"],["href","javascript: void(0);",1,"card-link","text-danger","pe-3",3,"click"],["href","javascript: void(0);",1,"card-link","text-primary","pe-3",3,"click"],["href","javascript: void(0);","class","btn btn-outline-info waves-effect waves-light",3,"click",4,"ngIf"],["class","row",4,"ngIf"],[3,"bar"],[3,"click"],["href","javascript: void(0);",1,"btn","btn-outline-info","waves-effect","waves-light",3,"click"],[1,"table-responsive"],["class","table table-bordered table-striped table-nowrap mb-0",4,"ngIf"],[1,"table","table-bordered","table-striped","table-nowrap","mb-0"],[1,"table","table-condensed","mt-2"],[4,"ngFor","ngForOf"],[1,"btn-copy",3,"click"]],template:function(tt,he){1&tt&&(e.YNc(0,wn,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),e._UZ(5,"img",5),e._uU(6," \xa0Leaderboard "),e.qZA(),e.TgZ(7,"h6",6)(8,"a",7),e._uU(9),e.qZA(),e.TgZ(10,"p",8),e._uU(11,"Redeemable point updates every 100 threshold."),e.qZA()()(),e.TgZ(12,"div",9)(13,"table",10)(14,"tbody")(15,"tr")(16,"td")(17,"div",11)(18,"h3"),e._uU(19),e.qZA(),e.TgZ(20,"h5"),e._uU(21,"Points"),e.qZA()()(),e.TgZ(22,"td"),e.YNc(23,Ln,8,1,"div",12),e.YNc(24,Yn,5,1,"div",12),e.qZA()(),e.TgZ(25,"tr")(26,"td")(27,"div",11)(28,"h3"),e._uU(29),e.qZA(),e.TgZ(30,"h5"),e._uU(31,"Total Redeemed"),e.qZA()()(),e.TgZ(32,"td")(33,"div",11)(34,"h3"),e._uU(35),e.qZA(),e.TgZ(36,"h5"),e._uU(37,"No of Badges"),e.qZA()()()()()()(),e.TgZ(38,"div",3)(39,"div",13)(40,"a",14),e.NdJ("click",function(){return he.onCloseClick()}),e._uU(41,"Close"),e.qZA(),e.TgZ(42,"a",15),e.NdJ("click",function(){return he.showRecentTransactions=!he.showRecentTransactions}),e._uU(43,"Transactions"),e.qZA(),e.YNc(44,ti,2,0,"a",16),e.qZA()()()(),e.YNc(45,dt,7,1,"div",17)),2&tt&&(e.Q6J("ngIf",he.loading),e.xp6(5),e.s9C("src",null==he.leaderboard?null:he.leaderboard.avatar,e.LSH),e.xp6(3),e.Q6J("routerLink",e.VKq(11,at,"/u/"+he.username)),e.xp6(1),e.hij("@",he.username,""),e.xp6(10),e.Oqu(null==he.leaderboard?null:he.leaderboard.points),e.xp6(4),e.Q6J("ngIf",he.isMyProfile()),e.xp6(1),e.Q6J("ngIf",!he.isMyProfile()),e.xp6(5),e.Oqu(he.getRedeemedAmount()),e.xp6(6),e.Oqu(he.getBadgeCount()),e.xp6(9),e.Q6J("ngIf",he.isMyProfile()),e.xp6(1),e.Q6J("ngIf",he.showRecentTransactions))},dependencies:[_e.sg,_e.O5,n.rH,tn.t,_e.uU],styles:[".leaderboard[_ngcontent-%COMP%]{background:#211e1e}.leaderboard[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .leaderboard[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f5f5f5}mat-dialog-content[_ngcontent-%COMP%]{padding-bottom:10px}mat-grid-tile[_ngcontent-%COMP%]{border:1px dashed whitesmoke}mat-grid-tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#44d62c}.btn-redeem[_ngcontent-%COMP%]{color:#44d62c}.info[_ngcontent-%COMP%]{margin-bottom:10px;font-size:.7em}.username[_ngcontent-%COMP%]{color:#44d62c}.header-avatar[_ngcontent-%COMP%]{max-height:50px;max-width:50px}.tnx-section[_ngcontent-%COMP%]{font-size:.8em;color:#f5f5f5;max-width:60%!important}.tnx-section[_ngcontent-%COMP%] .tnx-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.tnx-section[_ngcontent-%COMP%] .tnx-header-action[_ngcontent-%COMP%]{color:#44d62c}.tnx-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .tnx-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:.9em;color:#f5f5f5}.tnx-section[_ngcontent-%COMP%] .btn-copy[_ngcontent-%COMP%]{color:#44d62c;font-size:.8em}"]})}return Ee})()},2951:(ft,Ie,C)=>{"use strict";C.d(Ie,{S:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchLeaderboard(ue,se){this.http.get(l.e.LEADERBOARDS.FETCH_LEADERBOARD(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchLeaderboard(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}redeem(ue,se){this.http.post(l.e.LEADERBOARDS.REDEEM(),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.redeem(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}fetchRecentAchievements(ue,se){this.http.get(l.e.LEADERBOARDS.FETCH_RECENT_ACHIEVEMENTS(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchRecentAchievements(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},1822:(ft,Ie,C)=>{"use strict";C.d(Ie,{X:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchWallet(ue,se,te=null){let oe=null==te?l.e.WALLET.FETCH_MY_WALLET(se):l.e.WALLET.FETCH_USER_WALLET(te,se);this.http.get(oe).subscribe(ce=>{this.eventBus.publish(ue,ce)},ce=>{this.eventBus.publish(ue,ce)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},7222:(ft,Ie,C)=>{"use strict";C.d(Ie,{o:()=>I});var e=C(2495),l=C(553),D=C(5879);let I=(()=>{class S extends e.O{constructor(){super()}static#e=this.AUTH={LOGIN:n=>l.N.base_url+"/oauth/token"+e.O.toParamString(n),REFRESH_TOKEN:n=>l.N.base_url+"/oauth/token"+e.O.toParamString(n)};static#t=this.REGISTER={SEND_OTP:n=>l.N.base_url+"/api/v1/register/verify"+e.O.toParamString(n),REGISTER:n=>l.N.base_url+"/api/v1/register"+e.O.toParamString(n)};static#n=this.RESET_PASSWORD={REQUEST_TOKEN:n=>l.N.base_url+"/api/v1/reset_password"+e.O.toParamString(n),RESET_PASSWORD:n=>l.N.base_url+"/api/v1/reset_password"+e.O.toParamString(n)};static#i=this.\u0275fac=function(Z){return new(Z||S)};static#r=this.\u0275prov=D.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},7043:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{AuthModule:()=>Ze});var e=C(6814),l=C(1662),D=C(6223),I=C(7259),S=C(8637),w=C(5879),n=C(8480),Z=C(5462),ee=C(30),re=C(6945);const ue=function(){return["/reset-password"]};let se=(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(nn,Dn,Ot),this.authService=Nt,this.notifier=Qt,this.loginForm=new D.cw({username:new D.NI("",D.kI.required),password:new D.NI("",D.kI.required)})}componentName(){return"LoginComponent"}ngOnInit(){this.authService.isAuthenticated()&&this.navigateByUrl("/",Nt=>{})}login(){let Nt=this.componentKey(I.Z.AUTH.LOGIN_SUCCESS);this.authService.login(Nt,this.loginForm.value.username,this.loginForm.value.password),this.subscribe(Nt,null,Qt=>{this.navigate("/",nn=>{this.notifier.success("Success!","Successfully logged in.")})}),this.subscribe(this.getMultiErrorKey(Nt,1),"/auth/login",Qt=>{this.notifier.error("Something went wrong!","Error happened on server.")}),this.subscribe(this.getMultiErrorKey(Nt,2),"/auth/login",Qt=>{this.notifier.warning("Login Failed!","Wrong credentials or missing access rights to application.")})}isAuthenticated(){return this.authService.isAuthenticated()}forgotPassword(){this.notifier.info("Later!","Will be implemented later!")}register(){this.notifier.info("Later!","Will be implemented later!")}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-login"]],features:[w.qOj],decls:84,vars:4,consts:[["lang","en"],["charset","utf-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],["content","Premium Multipurpose Admin & Dashboard Template","name","description"],["content","Themesbrand","name","author"],["rel","shortcut icon","href","/assets/apanel/images/favicon.ico"],["href","/assets/apanel/css/bootstrap.min.css","id","bootstrap-style","rel","stylesheet","type","text/css"],["href","/assets/apanel/css/icons.min.css","rel","stylesheet","type","text/css"],["href","/assets/apanel/css/app.min.css","id","app-style","rel","stylesheet","type","text/css"],[1,"account-pages","my-5","pt-sm-5"],[1,"container"],[1,"row","justify-content-center"],[1,"col-md-8","col-lg-6","col-xl-5"],[1,"card","overflow-hidden"],[1,"bg-primary-subtle"],[1,"row"],[1,"col-7"],[1,"text-primary","p-4"],[1,"text-primary"],[1,"col-5","align-self-end"],["src","/assets/apanel/images/profile-img.png","alt","",1,"img-fluid"],[1,"card-body","pt-0"],[1,"auth-logo"],["href","index.html",1,"auth-logo-light"],[1,"avatar-md","profile-user-wid","mb-4"],[1,"avatar-title","rounded-circle","bg-light"],["src","/assets/apanel/images/logos/astha.svg","alt","","height","34",1,"rounded-circle"],["href","index.html",1,"auth-logo-dark"],[1,"p-2"],[1,"form-horizontal",3,"formGroup","ngSubmit"],[1,"mb-3"],["for","username",1,"form-label"],["type","text","id","username","formControlName","username","placeholder","Enter username",1,"form-control"],[1,"form-label"],[1,"input-group","auth-pass-inputgroup"],["type","password","placeholder","Enter password","formControlName","password","aria-label","Password","aria-describedby","password-addon",1,"form-control"],["type","button","id","password-addon",1,"btn","btn-light"],[1,"mdi","mdi-eye-outline"],[1,"form-check"],["type","checkbox","id","remember-check","checked","checked",1,"form-check-input"],["for","remember-check",1,"form-check-label"],[1,"mt-3","d-grid"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"disabled"],[1,"mt-4","text-center"],[1,"font-size-14","mb-3"],[1,"list-inline"],[1,"list-inline-item"],["href","javascript::void()",1,"social-list-item","bg-primary","text-white","border-primary"],[1,"mdi","mdi-facebook"],["href","javascript::void()",1,"social-list-item","bg-info","text-white","border-info"],[1,"mdi","mdi-twitter"],["href","javascript::void()",1,"social-list-item","bg-danger","text-white","border-danger"],[1,"mdi","mdi-google"],["href","javascript::void()",1,"text-muted",3,"routerLink"],[1,"mdi","mdi-lock","me-1"],[1,"mt-5","text-center"],["href","javascript::void()","routerLink","/sign-up",1,"fw-medium","text-primary"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"html",0)(1,"head"),w._UZ(2,"meta",1),w.TgZ(3,"title"),w._uU(4,"Login | Servicito"),w.qZA(),w._UZ(5,"meta",2)(6,"meta",3)(7,"meta",4)(8,"link",5)(9,"link",6)(10,"link",7)(11,"link",8),w.qZA(),w.TgZ(12,"body")(13,"div",9)(14,"div",10)(15,"div",11)(16,"div",12)(17,"div",13)(18,"div",14)(19,"div",15)(20,"div",16)(21,"div",17)(22,"h5",18),w._uU(23,"Welcome Back !"),w.qZA(),w.TgZ(24,"p"),w._uU(25,"Sign in to continue to Servicito."),w.qZA()()(),w.TgZ(26,"div",19),w._UZ(27,"img",20),w.qZA()()(),w.TgZ(28,"div",21)(29,"div",22)(30,"a",23)(31,"div",24)(32,"span",25),w._UZ(33,"img",26),w.qZA()()(),w.TgZ(34,"a",27)(35,"div",24)(36,"span",25),w._UZ(37,"img",26),w.qZA()()()(),w.TgZ(38,"div",28)(39,"form",29),w.NdJ("ngSubmit",function(){return nn.login()}),w.TgZ(40,"div",30)(41,"label",31),w._uU(42,"Username"),w.qZA(),w._UZ(43,"input",32),w.qZA(),w.TgZ(44,"div",30)(45,"label",33),w._uU(46,"Password"),w.qZA(),w.TgZ(47,"div",34),w._UZ(48,"input",35),w.TgZ(49,"button",36),w._UZ(50,"i",37),w.qZA()()(),w.TgZ(51,"div",38),w._UZ(52,"input",39),w.TgZ(53,"label",40),w._uU(54," Remember me "),w.qZA()(),w.TgZ(55,"div",41)(56,"button",42),w._uU(57,"Log In "),w.qZA()(),w.TgZ(58,"div",43)(59,"h5",44),w._uU(60,"Sign in with"),w.qZA(),w.TgZ(61,"ul",45)(62,"li",46)(63,"a",47),w._UZ(64,"i",48),w.qZA()(),w.TgZ(65,"li",46)(66,"a",49),w._UZ(67,"i",50),w.qZA()(),w.TgZ(68,"li",46)(69,"a",51),w._UZ(70,"i",52),w.qZA()()()(),w.TgZ(71,"div",43)(72,"a",53),w._UZ(73,"i",54),w._uU(74," Forgot your password?"),w.qZA()()()()()(),w.TgZ(75,"div",55)(76,"div")(77,"p"),w._uU(78,"Don't have an account ? "),w.TgZ(79,"a",56),w._uU(80," Signup now "),w.qZA()(),w.TgZ(81,"p"),w._uU(82,"\xa9 "),w._uU(83," servicito "),w.qZA()()()()()()()()()),2&Qt&&(w.xp6(39),w.Q6J("formGroup",nn.loginForm),w.xp6(17),w.Q6J("disabled",!nn.loginForm.valid),w.xp6(16),w.Q6J("routerLink",w.DdM(3,ue)))},dependencies:[l.rH,D._Y,D.Fj,D.JJ,D.JL,D.sg,D.u]})}return rt})();var te=function(rt){return rt[rt.INIT_VERIFICATION=0]="INIT_VERIFICATION",rt[rt.WAITING_FOR_CODE=1]="WAITING_FOR_CODE",rt[rt.VERIFIED=2]="VERIFIED",rt}(te||{}),oe=C(1547),ce=C(7222),_e=C(9862);let Re=(()=>{class rt extends oe.b{constructor(Nt,Qt,nn,Dn){super(Nt,Qt),this.http=nn,this.eventBus=Dn}sendOtp(Nt,Qt){this.http.post(ce.o.REGISTER.SEND_OTP({identity:Qt}),null).subscribe(nn=>{this.eventBus.publish(Nt,nn)},nn=>{this.eventBus.publish(this.getErrorKey(Nt),nn)})}register(Nt,Qt,nn){0===Qt.email?.trim().length&&(Qt.email=null),this.http.post(ce.o.REGISTER.REGISTER({token:nn}),Qt).subscribe(Dn=>{this.authService.setAuth(Dn),this.eventBus.publish(Nt,Dn)},Dn=>{this.eventBus.publish(this.getErrorKey(Nt),Dn)})}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.LFG(n.e),w.LFG(Z.l),w.LFG(_e.eN),w.LFG(ee.Y))};static#t=this.\u0275prov=w.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();function mt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Phone number should be 11 digits!"),w.qZA()())}function Ge(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"div",14),w.YNc(2,mt,3,0,"div",15),w.qZA(),w.TgZ(3,"div",16)(4,"span",17),w._uU(5,"+88"),w.qZA(),w._UZ(6,"input",18),w.qZA(),w.TgZ(7,"div",19)(8,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.sendOtp())}),w._uU(9,"Send OTP"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.phone)),w.xp6(4),w.Q6J("formControl",Nt.phone)}}function Lt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"OTP should be 6 digits!"),w.qZA()())}function je(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"div",14),w.YNc(2,Lt,3,0,"div",15),w.qZA(),w.TgZ(3,"div",16)(4,"span",17),w._uU(5,"OTP"),w.qZA(),w._UZ(6,"input",22),w.qZA(),w.TgZ(7,"div",19)(8,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.verifyOtp())}),w._uU(9,"Verify"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.otp)),w.xp6(4),w.Q6J("formControl",Nt.otp)}}function Tt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Name must be at least 3 characters!"),w.qZA()())}function xt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Must provide a valid username and should between least 6-20 characters!"),w.qZA()())}function St(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Name select a gender!"),w.qZA()())}function Zt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Invalid email!"),w.qZA()())}function yt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Password length must be at least 6!"),w.qZA()())}function un(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Password length must be at least 6!"),w.qZA()())}function Jt(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"form",23)(2,"div",24)(3,"span",17),w._UZ(4,"i",25),w.qZA(),w._UZ(5,"input",26),w.qZA(),w.TgZ(6,"div",14),w.YNc(7,Tt,3,0,"div",15),w.qZA(),w.TgZ(8,"div",24)(9,"span",17),w._UZ(10,"i",25),w.qZA(),w._UZ(11,"input",27),w.qZA(),w.TgZ(12,"div",14),w.YNc(13,xt,3,0,"div",15),w.qZA(),w.TgZ(14,"div")(15,"div",28),w._UZ(16,"input",29),w.TgZ(17,"label",30),w._uU(18," Male "),w.qZA()(),w.TgZ(19,"div",28),w._UZ(20,"input",31),w.TgZ(21,"label",32),w._uU(22," Female "),w.qZA()(),w.TgZ(23,"div",28),w._UZ(24,"input",33),w.TgZ(25,"label",34),w._uU(26," Other "),w.qZA()(),w.TgZ(27,"div",14),w.YNc(28,St,3,0,"div",15),w.qZA()(),w.TgZ(29,"div",16)(30,"span",17),w._uU(31,"@"),w.qZA(),w._UZ(32,"input",35),w.TgZ(33,"div",14),w.YNc(34,Zt,3,0,"div",15),w.qZA()(),w.TgZ(35,"div",24)(36,"span",17),w._UZ(37,"i",36),w.qZA(),w._UZ(38,"input",37),w.TgZ(39,"div",14),w.YNc(40,yt,3,0,"div",15),w.qZA()(),w.TgZ(41,"div",24)(42,"span",17),w._UZ(43,"i",36),w.qZA(),w._UZ(44,"input",38),w.TgZ(45,"div",14),w.YNc(46,un,3,0,"div",15),w.qZA()(),w.TgZ(47,"div",19)(48,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.register())}),w._uU(49,"submit"),w.qZA()()()()}if(2&rt){const Nt=w.oxw();w.xp6(1),w.Q6J("formGroup",Nt.registrationForm),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.name)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.username)),w.xp6(15),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.gender)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.email)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.password)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.confirmPassword))}}const tn=function(){return["/login"]};let wn=(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(Nt,Qt,nn),this.notifier=Dn,this.registrationService=Ot,this.step=te.INIT_VERIFICATION,this.phone=new D.NI("",[D.kI.required,D.kI.minLength(11),D.kI.maxLength(11)]),this.otp=new D.NI("",[D.kI.required,D.kI.minLength(6)]),this.registrationForm=new D.cw({name:new D.NI("",[D.kI.required,D.kI.minLength(3)]),gender:new D.NI("",[D.kI.required]),email:new D.NI("",[D.kI.email]),password:new D.NI("",[D.kI.required,D.kI.minLength(6)]),confirmPassword:new D.NI("",[D.kI.required,D.kI.minLength(6)]),username:new D.NI("",[D.kI.required,D.kI.minLength(6)])})}componentName(){return"RegistrationComponent"}ngOnInit(){this.registerSubscriptions()}isVerified(){return this.step===te.VERIFIED}isInitiating(){return this.step===te.INIT_VERIFICATION}isWaitingForCode(){return this.step===te.WAITING_FOR_CODE}sendOtp(){if(this.phone.invalid||null==this.phone.value)return void this.notifier.warning("Warning","Phone number should be 11 digits!");let Nt=this.phone.value;this.notifier.log(Nt);let Qt=this.componentKey(I.Z.REGISTRATION.OTP_SENT);this.registrationService.sendOtp(Qt,Nt),this.subscribe(Qt,null,(nn,Dn)=>{this.registrationForm.controls.username.setValue(this.phone.value),this.notifier.success("OTP Sent!","We've sent you an OTP. You need to provide the OTP here."),this.notifier.log(Dn),this.step=te.WAITING_FOR_CODE}),this.subscribe(this.getErrorKey(Qt),null,(nn,Dn)=>{this.notifier.warning("Failed",Dn.data.error.message)}),this.notifier.log(this.phone.value)}registerSubscriptions(){this.onRegisterEvent()}onRegisterEvent(){}verifyOtp(){this.otp.invalid||(this.step=te.VERIFIED)}register(){if(this.registrationForm.invalid)return void this.notifier.warning("Incorrect inputs!","Please fill the form correctly.");if(null==this.otp.value)return void this.notifier.warning("OTP Invalid!","Please enter OTP.");let Nt=this.prepare(this.registrationForm.value),Qt=this.componentKey(I.Z.REGISTRATION.REGISTER_SUCCESS);this.registrationService.register(Qt,Nt,this.otp.value),this.subscribe(Qt,"/choose-interests",(nn,Dn)=>{this.notifier.success("SUCCESS!","You've been successfully registered!")}),this.subscribe(this.getErrorKey(Qt),"/sign-up",(nn,Dn)=>{this.notifier.warning("Registration Failed!",Dn.data.error.message)})}prepare(Nt){return{email:Nt.email,gender:Nt.gender,name:Nt.name,password:Nt.password,phone:this.phone.value,role:"User",username:Nt.username}}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z),w.Y36(Z.l),w.Y36(Re))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-registration"]],features:[w.qOj],decls:25,vars:5,consts:[[1,"login-page-hero-section","py-4"],[1,"container"],["src","assets/img/login-page-images/login-hero-page.png","alt","astha login page"],[1,"login-form-section","pb-5","px-3"],[1,"row"],[1,"col-12"],[1,"section-title"],["class","astha-login-form-area",4,"ngIf"],[1,"login-area","mt-5"],[1,"text-center","text-white"],[1,"btn-login",3,"routerLink"],[1,"copyright-area","pb-5"],[1,"col-12","text-center"],[1,"astha-login-form-area"],[1,"err-msg"],["class","text-warning",4,"ngIf"],[1,"input-group","flex-nowrap"],[1,"input-group-text"],["type","text","placeholder","Enter phone number",1,"form-control",3,"formControl"],[1,"btn-action"],["type","submit",1,"btn-sign-up",3,"click"],[1,"text-warning"],["type","text","placeholder","Enter OTP",1,"form-control",3,"formControl"],["action","POST",3,"formGroup"],[1,"input-group"],[1,"flaticon-user"],["type","text","placeholder","Your name","formControlName","name","required","required","min","3",1,"form-control"],["type","text","name","username","placeholder","Username","formControlName","username","required","required","min","3",1,"form-control"],[1,"form-check"],["type","radio","name","gender","id","exampleRadios1","value","MALE","formControlName","gender","checked","",1,"form-check-input"],["for","exampleRadios1",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios2","value","FEMALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios2",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios3","value","OTHER","formControlName","gender",1,"form-check-input"],["for","exampleRadios3",1,"form-check-label"],["type","email","name","email","placeholder","Email ID","formControlName","email",1,"form-control"],[1,"icon-home-outline"],["type","password","name","password","placeholder","Password","formControlName","password","min","6",1,"form-control"],["type","password","name","confirmPassword","placeholder","Confirm Password","formControlName","confirmPassword","min","6",1,"form-control"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"section",0)(1,"div",1),w._UZ(2,"img",2),w.qZA()(),w.TgZ(3,"section",3)(4,"div",1)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1"),w._uU(9,"sign up"),w.qZA()()(),w.TgZ(10,"div",5),w.YNc(11,Ge,10,2,"div",7),w.YNc(12,je,10,2,"div",7),w.YNc(13,Jt,50,7,"div",7),w.qZA(),w.TgZ(14,"div",8)(15,"h4",9),w._uU(16,"Already Registered?"),w.qZA(),w.TgZ(17,"a",10),w._uU(18,"Login"),w.qZA()()()()(),w.TgZ(19,"section",11)(20,"div",1)(21,"div",4)(22,"div",12)(23,"h5"),w._uU(24,"\xa9 SERVICITO LTD"),w.qZA()()()()()),2&Qt&&(w.xp6(11),w.Q6J("ngIf",nn.isInitiating()),w.xp6(1),w.Q6J("ngIf",nn.isWaitingForCode()),w.xp6(1),w.Q6J("ngIf",nn.isVerified()),w.xp6(4),w.Q6J("routerLink",w.DdM(4,tn)))},dependencies:[e.O5,l.rH,D._Y,D.Fj,D._,D.JJ,D.JL,D.Q7,D.oH,D.sg,D.u],styles:[".login-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.err-msg[_ngcontent-%COMP%]{margin-bottom:30px}.login-area[_ngcontent-%COMP%] .btn-login[_ngcontent-%COMP%]{margin-top:20px;border:1px solid #44d62c;border-radius:2em;color:#44d62c;padding:5px 50px}.btn-action[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.btn-sign-up[_ngcontent-%COMP%]{margin-top:10px;border:1px solid #44d62c;border-radius:2em;color:#000;background-color:#44d62c;padding:10px 70px}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;color:#fff}.login-page-hero-section[_ngcontent-%COMP%]{text-align:center}.login-page-hero-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70%;height:200px}section.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-transform:capitalize;font-weight:600;font-size:35px}.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin-bottom:35px}.astha-login-form-area[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{padding:0;background:none;border:0;color:#98a0ac;font-size:18px}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:0;width:100%;text-transform:capitalize;border-radius:20px;background:#3961ED;color:#fff;font-size:22px;font-weight:600;padding:12px 20px;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{opacity:.7;letter-spacing:.05em}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:0}[placeholder][_ngcontent-%COMP%]:focus::-webkit-input-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus::-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-ms-input-placeholder{opacity:0}textarea[_ngcontent-%COMP%]:focus, input[type=text][_ngcontent-%COMP%]:focus, input[type=password][_ngcontent-%COMP%]:focus, input[type=email][_ngcontent-%COMP%]:focus, .uneditable-input[_ngcontent-%COMP%]:focus{border-color:transparent;box-shadow:0 1px 1px transparent;outline:0 none}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#b3b8c1;text-transform:capitalize}.astha-login-form-area[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border-bottom:2px solid #F0F1F3;margin-bottom:30px;padding:5px}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]{color:#778fd4;text-transform:capitalize;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]:hover{color:#333}.login-form-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;color:#b9bec6}.astha-ls-social-area[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;grid-gap:30px}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;border:2px solid #F0F2F4;padding:20px;font-size:25px;border-radius:20px;color:#3961ee;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#333;border-color:#333}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;text-transform:capitalize;color:#9198a4}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#3961ed}@media (max-width: 480px){.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:12px;border-radius:12px}.astha-ls-social-area[_ngcontent-%COMP%]{grid-gap:15px}}"]})}return rt})();var Ln=C(617);function Yn(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Username must be at least 6 characters!"),w.qZA()())}function ti(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",14)(1,"div",15)(2,"span",16),w._uU(3,"+88"),w.qZA(),w._UZ(4,"input",17),w.qZA(),w.TgZ(5,"div",18),w.YNc(6,Yn,3,0,"div",19),w.qZA(),w.TgZ(7,"div",20)(8,"button",21),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.requestToken())}),w._uU(9,"Send OTP"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(4),w.Q6J("formControl",Nt.username),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.username))}}function gi(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Name must be 11 characters!"),w.qZA()())}function Rn(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Token must be 5 characters!"),w.qZA()())}function dt(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"New must be at least 8 characters!"),w.qZA()())}function at(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",14)(1,"div",15)(2,"span",16),w._UZ(3,"i",23),w.qZA(),w._UZ(4,"input",24),w.qZA(),w.TgZ(5,"div",18),w.YNc(6,gi,3,0,"div",19),w.qZA(),w.TgZ(7,"div",15)(8,"span",16),w._uU(9,"OTP"),w.qZA(),w._UZ(10,"input",25),w.qZA(),w.TgZ(11,"div",18),w.YNc(12,Rn,3,0,"div",19),w.qZA(),w.TgZ(13,"div",15)(14,"span",16)(15,"mat-icon"),w._uU(16,"lock"),w.qZA()(),w._UZ(17,"input",26),w.qZA(),w.TgZ(18,"div",18),w.YNc(19,dt,3,0,"div",19),w.qZA(),w.TgZ(20,"div",20)(21,"button",27),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.resetPassword())}),w._uU(22,"Verify"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(4),w.Q6J("formControl",Nt.username),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.username)),w.xp6(4),w.Q6J("formControl",Nt.token),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.token)),w.xp6(5),w.Q6J("formControl",Nt.password),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.password)),w.xp6(2),w.Q6J("disabled",Nt.isVerifyButtonDisabled())}}const Be=function(){return["/login"]},Ee=function(){return["/sign-up"]},me=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"login",component:se},{path:"sign-up",component:wn},{path:"reset-password",component:(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(Nt,Qt,nn),this.notifier=Dn,this.authService=Ot,this.step=te.INIT_VERIFICATION,this.token=new D.NI("",[D.kI.required,D.kI.minLength(5)]),this.username=new D.NI("",[D.kI.required,D.kI.minLength(6),D.kI.maxLength(11)]),this.password=new D.NI("",[D.kI.required,D.kI.minLength(6)]),this.tokenValidity=new Date}componentName(){return"ResetPasswordComponent"}ngOnInit(){}isVerified(){return this.step===te.VERIFIED}isInitiating(){return this.step===te.INIT_VERIFICATION}isWaitingForCode(){return this.step===te.WAITING_FOR_CODE}requestToken(){if(this.username.invalid)return void this.notifier.warning("Warning","Username must be at least 6 characters!");let Nt=this.username.value;this.notifier.log(Nt);let Qt=this.componentKey(I.Z.RESET_PASSWORD.TOKEN_REQUESTED);this.authService.requestPasswordResetToken(Qt,Nt),this.subscribe(Qt,null,(nn,Dn)=>{this.step=te.WAITING_FOR_CODE;let Ot=Dn.data;this.tokenValidity=new Date((new Date).getMilliseconds()+Ot.tokenValidityMillis)}),this.subscribe(this.getErrorKey(Qt),null,(nn,Dn)=>{this.notifier.warning("Failed!",Dn.data.error.message)}),this.notifier.log(Nt)}verifyOtp(){this.step=te.VERIFIED}resetPassword(){let Nt=this.componentKey(I.Z.RESET_PASSWORD.RESET_SUCCESS);this.authService.resetPassword(Nt,this.token.value,this.username.value,this.password.value),this.subscribe(Nt,"/login",(Qt,nn)=>{this.notifier.success("Success!","Password has been reset successfully. Please login to continue.")}),this.subscribe(this.getErrorKey(Nt),null,(Qt,nn)=>{this.notifier.warning("Failed!",nn.data.error.message)})}isVerifyButtonDisabled(){return this.username.invalid||this.token.invalid||this.password.invalid}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z),w.Y36(Z.l),w.Y36(n.e))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-reset-password"]],features:[w.qOj],decls:30,vars:6,consts:[[1,"login-page-hero-section"],[1,"container"],["src","assets/img/login-page-images/login-hero-page.png","alt","astha login page"],[1,"login-form-section","mt-4","px-3"],[1,"row"],[1,"col-12"],[1,"section-title"],["class","astha-login-form-area",4,"ngIf"],[1,"reg-login-section","mt-5"],[1,"login-area"],[1,"text-center","text-white"],[1,"btn-login",3,"routerLink"],[1,"copyright-area","mt-5","pb-5"],[1,"col-12","text-center"],[1,"astha-login-form-area"],[1,"input-group","flex-nowrap"],[1,"input-group-text"],["type","text","placeholder","Enter phone number","required","required",1,"form-control",3,"formControl"],[1,"err-msg"],["class","text-warning",4,"ngIf"],[1,"btn-action"],["type","submit",1,"btn-reset",3,"click"],[1,"text-warning"],[1,"flaticon-user"],["type","text","placeholder","Enter OTP","required","required","readonly","",1,"form-control",3,"formControl"],["type","text","placeholder","Enter OTP","required","required",1,"form-control",3,"formControl"],["type","text","placeholder","Enter new password","required","required",1,"form-control",3,"formControl"],["type","submit",1,"btn-reset",3,"disabled","click"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"section",0)(1,"div",1),w._UZ(2,"img",2),w.qZA()(),w.TgZ(3,"section",3)(4,"div",1)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1"),w._uU(9,"Reset Password"),w.qZA()()(),w.TgZ(10,"div",5),w.YNc(11,ti,10,2,"div",7),w.YNc(12,at,23,7,"div",7),w.qZA()()()(),w.TgZ(13,"section",8)(14,"div",9)(15,"h5",10),w._uU(16,"Already Registered?"),w.qZA(),w.TgZ(17,"a",11),w._uU(18,"Login"),w.qZA()(),w.TgZ(19,"div",9)(20,"h5",10),w._uU(21,"Don't have an account yet?"),w.qZA(),w.TgZ(22,"a",11),w._uU(23,"Sign Up"),w.qZA()()(),w.TgZ(24,"section",12)(25,"div",1)(26,"div",4)(27,"div",13)(28,"h5"),w._uU(29,"\xa9 SERVICITO LTD"),w.qZA()()()()()),2&Qt&&(w.xp6(11),w.Q6J("ngIf",nn.isInitiating()),w.xp6(1),w.Q6J("ngIf",nn.isWaitingForCode()),w.xp6(5),w.Q6J("routerLink",w.DdM(4,Be)),w.xp6(5),w.Q6J("routerLink",w.DdM(5,Ee)))},dependencies:[e.O5,l.rH,D.Fj,D.JJ,D.Q7,D.oH,Ln.Hw],styles:[".reg-login-section[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly;align-items:baseline}.login-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.login-area[_ngcontent-%COMP%] .btn-login[_ngcontent-%COMP%]{margin-top:20px;border:1px solid #44d62c;border-radius:2em;color:#44d62c;padding:5px 50px}.btn-action[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.btn-reset[_ngcontent-%COMP%]{margin-top:10px;border:1px solid #44d62c;border-radius:2em;color:#000;background-color:#44d62c;padding:10px 70px}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;color:#fff}.login-page-hero-section[_ngcontent-%COMP%]{text-align:center}.login-page-hero-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70%;height:200px}section.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-transform:capitalize;font-weight:600;font-size:35px}.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin-bottom:35px}.astha-login-form-area[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{padding:0;background:none;border:0;color:#98a0ac;font-size:18px}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:0;width:100%;text-transform:capitalize;border-radius:20px;background:#3961ED;color:#fff;font-size:22px;font-weight:600;padding:12px 20px;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;cursor:pointer;opacity:1}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{opacity:.7;letter-spacing:.05em}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:0}[placeholder][_ngcontent-%COMP%]:focus::-webkit-input-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus::-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-ms-input-placeholder{opacity:0}textarea[_ngcontent-%COMP%]:focus, input[type=text][_ngcontent-%COMP%]:focus, input[type=password][_ngcontent-%COMP%]:focus, input[type=email][_ngcontent-%COMP%]:focus, .uneditable-input[_ngcontent-%COMP%]:focus{border-color:transparent;box-shadow:0 1px 1px transparent;outline:0 none}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#b3b8c1;text-transform:capitalize}.astha-login-form-area[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border-bottom:2px solid #F0F1F3;padding:5px}.err-msg[_ngcontent-%COMP%]{margin-bottom:30px}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]{color:#778fd4;text-transform:capitalize;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]:hover{color:#333}.login-form-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;color:#b9bec6}.astha-ls-social-area[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;grid-gap:30px}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;border:2px solid #F0F2F4;padding:20px;font-size:25px;border-radius:20px;color:#3961ee;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#333;border-color:#333}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;text-transform:capitalize;color:#9198a4}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#3961ed}@media (max-width: 480px){.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:12px;border-radius:12px}.astha-ls-social-area[_ngcontent-%COMP%]{grid-gap:15px}}"]})}return rt})()}];let tt=(()=>{class rt{static#e=this.\u0275fac=function(Qt){return new(Qt||rt)};static#t=this.\u0275mod=w.oAB({type:rt});static#n=this.\u0275inj=w.cJS({imports:[l.Bz.forChild(me),l.Bz]})}return rt})();var he=C(9890);let Ze=(()=>{class rt{static#e=this.\u0275fac=function(Qt){return new(Qt||rt)};static#t=this.\u0275mod=w.oAB({type:rt});static#n=this.\u0275inj=w.cJS({providers:[{provide:_e.TP,useClass:he.I,multi:!0}],imports:[e.ez,tt,D.UX,Ln.Ps]})}return rt})()},9890:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>S});var e=C(9862),l=C(5879),D=C(8480),I=C(1662);let S=(()=>{class w{constructor(Z,ee){this.authService=Z,this.router=ee,this.tryCount=0}intercept(Z,ee){let re=this.authService.getAccessToken();return null===re||0===re.trim().length||"OPTIONS"===Z.method?ee.handle(Z):ee.handle(this.applyCredentials(Z,re))}navigateByUrl(Z,ee){null!=Z&&this.router.navigateByUrl(Z).then(re=>ee(re))}static isAuthError(Z){return Z instanceof e.UA&&(401===Z.status||0===Z.status)}static isAccessTokenExpired(Z){return Z instanceof e.UA&&401===Z.status&&Z.error.error_description.startsWith("Access token expired")?(console.log("Access token expired",Z),!0):(console.log("Access token not expired",Z),!1)}applyCredentials(Z,ee){return Z.clone({headers:this.authService.getAuthHeadersFromToken(ee)})}static#e=this.\u0275fac=function(ee){return new(ee||w)(l.LFG(D.e),l.LFG(I.F0))};static#t=this.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac})}return w})()},9538:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>I});var e=C(5879),l=C(1662),D=C(8480);let I=(()=>{class S{constructor(n,Z){this.router=n,this.authService=Z}canActivate(n,Z){return!!this.authService.isAuthenticated()||(this.router.navigate(["/login"]).then(ee=>console.log(n)),!1)}static#e=this.\u0275fac=function(Z){return new(Z||S)(e.LFG(l.F0),e.LFG(D.e))};static#t=this.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},8480:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>te});var e=C(9862),l=C(3108),D=C(553),I=C(7222),S=C(7259);class w extends Error{}w.prototype.name="InvalidTokenError";var re=C(5879),ue=C(30),se=C(6945);let te=(()=>{class oe{constructor(_e,Re,mt){this.http=_e,this.eventBus=Re,this.subContainer=mt,this.refreshToken$=this.http.post(this.getRefreshTokenUrl(),null)}login(_e,Re,mt){const Ge=this.getLoginUrl(Re,mt);this.http.post(Ge,null).subscribe(je=>{this.setAuth(je),this.eventBus.publish(_e,je)},je=>{this.eventBus.publish(je.status>=500||0==je.status?_e+":error:1":_e+":error:2",je)})}setAuth(_e){l.n.putAuth(_e)}isAuthenticated(){return!!l.n.retrieve(l.n.KEYS.accessToken)}isAdmin(){return"admin"==this.getAuth().username}getAuthorities(){return function ee(oe,ce){if("string"!=typeof oe)throw new w("Invalid token specified: must be a string");ce||(ce={});const _e=!0===ce.header?0:1,Re=oe.split(".")[_e];if("string"!=typeof Re)throw new w(`Invalid token specified: missing part #${_e+1}`);let mt;try{mt=function Z(oe){let ce=oe.replace(/-/g,"+").replace(/_/g,"/");switch(ce.length%4){case 0:break;case 2:ce+="==";break;case 3:ce+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function n(oe){return decodeURIComponent(atob(oe).replace(/(.)/g,(ce,_e)=>{let Re=_e.charCodeAt(0).toString(16).toUpperCase();return Re.length<2&&(Re="0"+Re),"%"+Re}))}(ce)}catch{return atob(ce)}}(Re)}catch(Ge){throw new w(`Invalid token specified: invalid base64 for part #${_e+1} (${Ge.message})`)}try{return JSON.parse(mt)}catch(Ge){throw new w(`Invalid token specified: invalid json for part #${_e+1} (${Ge.message})`)}}(this.getAccessToken()).authorities}hasPrivilege(_e){const Re=this.getAuthorities();return!!Re&&Re.includes(_e)}logout(){let _e=this.globalKey(S.Z.AUTH.LOGOUT);return this.isAuthenticated()&&(l.n.clear(),this.eventBus.publish(_e,null)),this.subContainer.disposeNonGlobal(),location.reload(),console.log("Logged out! Disposing non-global subscriptions.."),console.log(Array.from(this.subContainer.getKeys().keys())),_e}globalKey(_e){return"global:"+_e}getAuth(){return l.n.getAuth()}getFirstName(){if(!this.isAuthenticated())return"";const _e=this.getAuth().name.split(" ");return _e.length<1?"":_e[0]}getAccessToken(){return l.n.retrieve(l.n.KEYS.accessToken)}getRefreshToken(){return l.n.retrieve(l.n.KEYS.refreshToken)}getLoginUrl(_e,Re){return I.o.AUTH.LOGIN({grant_type:"password",client_id:D.N.client_id,client_secret:D.N.client_secret,username:_e,password:Re})}getRefreshTokenUrl(){return I.o.AUTH.REFRESH_TOKEN({grant_type:"refresh_token",client_id:D.N.client_id,client_secret:D.N.client_secret,refresh_token:this.getRefreshToken()})}refreshToken(_e){this.refreshToken$.subscribe(Re=>{l.n.putAuth(Re),console.log("Token refreshed!"),_e(Re)},Re=>{this.logout()})}getAuthHeaders(){return new e.WM({Authorization:"Bearer "+this.getAccessToken()})}getAuthHeadersFromToken(_e){return new e.WM({Authorization:"Bearer "+_e})}requestPasswordResetToken(_e,Re){this.http.get(I.o.RESET_PASSWORD.REQUEST_TOKEN({username:Re})).subscribe(mt=>{this.eventBus.publish(_e,mt)},mt=>{this.eventBus.publish(S.Z.RESET_PASSWORD.RESET_PASSWORD_ERROR,mt)})}resetPassword(_e,Re,mt,Ge){this.http.post(I.o.RESET_PASSWORD.REQUEST_TOKEN({token:Re,username:mt,password:Ge}),null).subscribe(Lt=>{this.eventBus.publish(_e,Lt)},Lt=>{this.eventBus.publish(_e+"error",Lt)})}static#e=this.\u0275fac=function(Re){return new(Re||oe)(re.LFG(e.eN),re.LFG(ue.Y),re.LFG(se.z))};static#t=this.\u0275prov=re.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},5239:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}deleteAccount(ue){this.http.delete(l.e.USER.DELETE_ME()).subscribe(se=>{this.eventBus.publish(ue,se)},se=>{this.handleError(se,te=>{this.deleteAccount(ue)},te=>{this.eventBus.publish(this.getErrorKey(ue),te)})})}searchUsers(ue,se){this.http.get(l.e.USER.SEARCH(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.searchUsers(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9797:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{CmsModule:()=>ue});var e=C(6814),l=C(1662),D=C(5879),I=C(9661);const w=[{path:"files",component:(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275cmp=D.Xpm({type:se,selectors:[["app-file"]],decls:1,vars:0,template:function(ce,_e){1&ce&&D._UZ(0,"app-file-list")},dependencies:[I.E]})}return se})()}];let n=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=D.oAB({type:se});static#n=this.\u0275inj=D.cJS({imports:[l.Bz.forChild(w),l.Bz]})}return se})();var Z=C(7151),ee=C(6223),re=C(7700);let ue=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=D.oAB({type:se});static#n=this.\u0275inj=D.cJS({providers:[{provide:re.WI,useValue:{}}],imports:[e.ez,ee.UX,n,Z.g]})}return se})()},9661:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>Ve});var e=C(5879),l=C(6405),D=C(6032);let I={defaultLayout:l.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:D.s.FILES.FILE_ENDPOINT,imageEndpoint:D.s.FILES.IMAGE_ENDPOINT,delEndpoint:D.s.FILES.FILE_ENDPOINT,imgDelEndpoint:D.s.FILES.IMAGE_ENDPOINT},S={list:"/cms/files",create:"/cms/files/create",update(ct){return null==ct?this.create:"/admin/files/"+ct+"/update"}};var w=C(6542),n=C(7700),Z=C(1855),ee=C(7259),re=C(6223),ue=C(9870),se=C(8637),te=C(30),oe=C(1662),ce=C(6945),_e=C(9230),Re=C(5462),mt=C(6814),Ge=C(4736);function Lt(ct,Ct){1&ct&&e._UZ(0,"util-progress",10),2&ct&&e.Q6J("bar",!0)}function je(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"img",15),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(2);return e.KtG(ot.removeImage(Oe))}),e.qZA()}2&ct&&e.s9C("src",Ct.$implicit.previewUrl,e.LSH)}function Tt(ct,Ct){if(1&ct&&(e.TgZ(0,"div",11)(1,"small",12),e.SDv(2,13),e.qZA(),e._UZ(3,"br"),e.YNc(4,je,1,1,"img",14),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(4),e.Q6J("ngForOf",Ce.uploadFiles)}}function xt(ct,Ct){if(1&ct&&(e.TgZ(0,"h6",16),e._uU(1),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(1),e.Oqu(Ce.msg)}}let St=(()=>{class ct extends se.H{componentName(){return"ImageUploaderComponent"}constructor(Ce,J,ae,Oe,ot){super(Ce,J,ae),this.fileService=Oe,this.notifier=ot,this.title="Upload Images",this.msg="",this.multiSelect=!1,this.uploadFiles=[],this.required=!1,this.images=[],this.onUploaded=new e.vpe,this.loading=!1,null==this.uniqueNamespace&&(this.uniqueNamespace=this.getUniqueId(4))}ngOnInit(){console.log(this.images)}uploadImages(){if(0==this.uploadFiles.length)return void(this.required?this.msg="File not selected":this.onUploaded.emit(this.images));console.log("uploading images.."),this.loading=!0;let Ce=[];this.uploadFiles.forEach(ae=>{Ce.push(ae.file)});let J=this.componentKey(ee.Z.FILES.IMAGE_UPLOAD(this.uniqueNamespace+"-img"));this.fileService.uploadImagesV2(J,Ce),this.subscribe(J,null,(ae,Oe)=>{this.images=Oe.data,this.loading=!1,this.onUploaded.emit(this.images),console.log("Uploaded successfully!"),console.log(this.images)})}onImageSelected(Ce){if(Ce.target.files&&Ce.target.files[0]){if(null==Ce.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let ae={file:Ce.target.files[0],previewUrl:null};const Oe=new FileReader;Oe.readAsDataURL(Ce.target.files[0]),Oe.onload=Se=>{let Ft=Se.target?.result;null!=Ft&&(ae.previewUrl=Ft,this.multiSelect||(console.log("resetting images"),this.images=[],console.log(this.images),this.uploadFiles=[]),this.uploadFiles.push(ae),this.msg="")}}}removeImage(Ce){let J=this.uploadFiles.map(ae=>ae.previewUrl).indexOf(Ce.previewUrl);this.uploadFiles.splice(J,1)}removeExImage(Ce){let J=this.images.indexOf(Ce);this.images.splice(J)}getUniqueId(Ce){const J=[];for(let ae=0;ae0),e.xp6(2),e.Oqu(ae.title),e.xp6(5),e.Q6J("ngIf",ae.msg.length>0))},dependencies:[mt.sg,mt.O5,Ge.t]})}return ct})();function Zt(ct,Ct){1&ct&&e._UZ(0,"util-progress",11),2&ct&&e.Q6J("bar",!0)}let yt=(()=>{class ct extends ue.n{constructor(Ce,J,ae,Oe,ot,Se,Ft){super(Ce,J,ae,Oe,Ft),this.fileService=ot,this.notifier=Se,this.config=I,this.fileForm=new re.cw({image:new re.NI(null)})}componentName(){return"FileUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Files",link:"/admin/files",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(Ce){this.loading=!0;let J=this.componentKey(ee.Z.FILES.GET(Ce));this.fileService.fetchSingle(J,Ce),this.subscribe(J,null,(ae,Oe)=>{this.loading=!1,this.populateForm(Oe.data)}),this.subscribe(this.getErrorKey(J),null,(ae,Oe)=>{console.log(Oe.data),this.loading=!1})}getExImages(){return[{image_url:this.fileForm.controls.image.value,thumb_url:this.fileForm.controls.image.value}]}onSubmit(){this.fileForm.valid&&this.uploadComponent.uploadImages()}onImgUploaded(Ce){Ce.length>0&&this.fileForm.controls.image.setValue(Ce[0].thumb_url),setTimeout(()=>{this.onCompleted.emit(Ce)},500)}getConfig(){return this.config}getListPageRoute(){return S.list}populateForm(Ce){}static#e=this.\u0275fac=function(J){return new(J||ct)(e.Y36(te.Y),e.Y36(oe.F0),e.Y36(ce.z),e.Y36(oe.gz),e.Y36(_e.I),e.Y36(Re.l),e.Y36(n.WI))};static#t=this.\u0275cmp=e.Xpm({type:ct,selectors:[["app-file-upsert"]],viewQuery:function(J,ae){if(1&J&&e.Gf(St,5),2&J){let Oe;e.iGM(Oe=e.CRH())&&(ae.uploadComponent=Oe.first)}},features:[e.qOj],decls:14,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[3,"title","multiSelect","images","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(J,ae){1&J&&(e.YNc(0,Zt,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update File"),e.qZA(),e.TgZ(7,"form",6)(8,"app-image-uploader-v2",7),e.NdJ("onUploaded",function(ot){return ae.onImgUploaded(ot)}),e.qZA(),e.TgZ(9,"div",8)(10,"button",9),e.NdJ("click",function(){return ae.onCancel()}),e._uU(11," Cancel "),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return ae.onSubmit()}),e._uU(13," Submit "),e.qZA()()()()()()()),2&J&&(e.Q6J("ngIf",ae.loading),e.xp6(7),e.Q6J("formGroup",ae.fileForm),e.xp6(1),e.s9C("title",ae.translations["Select File"]),e.Q6J("multiSelect",!0)("images",ae.getExImages())("required",!0),e.xp6(4),e.Q6J("ngClass",ae.fileForm.valid?"":"disabled"))},dependencies:[mt.mk,mt.O5,re._Y,re.JL,re.sg,Ge.t,St]})}return ct})();var un=C(8174),Jt=C(2159),tn=C(8480),wn=C(8675),Ln=C(1836),Yn=C(6075),ti=C(9582),gi=C(2770);function Rn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",11)(1,"div",12)(2,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onCloseClicked())}),e._UZ(3,"i",14),e.qZA()()()}}function dt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",15)(1,"button",16),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.useSelectedFiles())}),e.TgZ(2,"span"),e.SDv(3,17),e.qZA()(),e.TgZ(4,"button",18),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.clearSelection())}),e.TgZ(5,"span"),e.SDv(6,19),e.qZA()()()}}function at(ct,Ct){1&ct&&e._UZ(0,"util-progress",20),2&ct&&e.Q6J("bar",!0)}function Be(ct,Ct){1&ct&&(e.TgZ(0,"h4",32),e.SDv(1,33),e.qZA())}function Ee(ct,Ct){1&ct&&(e.TgZ(0,"h4",34),e.SDv(1,35),e.qZA())}function $e(ct,Ct){if(1&ct&&(e.TgZ(0,"div",21)(1,"div",22)(2,"div",0)(3,"div",23)(4,"div",24)(5,"h1",25),e._UZ(6,"i",26),e.qZA(),e.YNc(7,Be,2,0,"h4",27),e.YNc(8,Ee,2,0,"h4",28),e.qZA()()(),e.TgZ(9,"div",29)(10,"div",30)(11,"div"),e._UZ(12,"img",31),e.qZA()()()()()),2&ct){const Ce=e.oxw();e.xp6(7),e.Q6J("ngIf",Ce.loading),e.xp6(1),e.Q6J("ngIf",!Ce.loading)}}function me(ct,Ct){1&ct&&(e.TgZ(0,"th"),e.SDv(1,50),e.qZA())}function tt(ct,Ct){1&ct&&(e.TgZ(0,"th"),e.SDv(1,51),e.qZA())}function he(ct,Ct){if(1&ct&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&ct){const Ce=e.oxw().$implicit;e.xp6(1),e.Oqu(Ce.created_by)}}function Ze(ct,Ct){1&ct&&e._UZ(0,"td",52)}function rt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,he,2,1,"td",8),e.TgZ(4,"td")(5,"a",13),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.onUpsertClick(Oe.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td")(8,"small"),e._uU(9),e.ALo(10,"readableDate"),e.qZA()(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td",52)(16,"a",53),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.onUpsertClick(Oe.id))}),e._UZ(17,"i",54),e.qZA()(),e.YNc(18,Ze,1,0,"td",55),e.qZA()}if(2&ct){const Ce=Ct.$implicit,J=e.oxw(3);e.xp6(2),e.Oqu(Ce.id),e.xp6(1),e.Q6J("ngIf",J.config.showUserFilter),e.xp6(3),e.hij(" ",Ce.image_url," "),e.xp6(3),e.Oqu(e.lcZ(10,6,Ce.created_at)),e.xp6(4),e.Oqu(e.lcZ(14,8,Ce.updated_at)),e.xp6(5),e.Q6J("ngIf",J.config.showDeleteButton)}}function bt(ct,Ct){if(1&ct&&(e.TgZ(0,"div",0)(1,"div",11)(2,"div",38)(3,"div",39)(4,"p",40),e.SDv(5,41),e.qZA(),e.TgZ(6,"div",42)(7,"table",43)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,44),e.qZA(),e.YNc(12,me,2,0,"th",8),e.TgZ(13,"th"),e.SDv(14,45),e.qZA(),e.TgZ(15,"th"),e.SDv(16,46),e.qZA(),e.TgZ(17,"th"),e.SDv(18,47),e.qZA(),e.TgZ(19,"th"),e.SDv(20,48),e.qZA(),e.YNc(21,tt,2,0,"th",8),e.qZA()(),e.TgZ(22,"tbody"),e.YNc(23,rt,19,10,"tr",49),e.qZA()()()()()()()),2&ct){const Ce=e.oxw(2);e.Q6J("@dataLoaded",Ce.loading?"loading":"loaded")("@onColumn",Ce.layout==Ce.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",Ce.config.showUserFilter),e.xp6(9),e.Q6J("ngIf",Ce.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",Ce.images.content)}}function Nt(ct,Ct){if(1&ct&&e._UZ(0,"img",68),2&ct){const Ce=e.oxw().$implicit;e.s9C("src",Ce.image_url,e.LSH)}}function Qt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",69),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw().$implicit,Oe=e.oxw(3);return e.KtG(Oe.toggleFileSelection(ae))}),e.TgZ(1,"h6",70)(2,"span"),e.SDv(3,71),e.qZA(),e._uU(4),e.qZA()()}if(2&ct){const Ce=e.oxw().$implicit;e.xp6(4),e.hij(" ",Ce.created_by," ")}}function nn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",65)(1,"app-delete",72),e.NdJ("deleteItemEvent",function(ae){e.CHM(Ce);const Oe=e.oxw(4);return e.KtG(Oe.onDeleted(ae))}),e.qZA()()}if(2&ct){const Ce=e.oxw().$implicit,J=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",J.config.imgDelEndpoint+"/"+Ce.id+"/delete")("look","bx")}}function Dn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",58)(1,"div",59)(2,"div",60),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.toggleFileSelection(Oe))}),e.TgZ(3,"a"),e.YNc(4,Nt,1,1,"img",61),e.qZA()(),e.YNc(5,Qt,5,1,"div",62),e.TgZ(6,"div",63)(7,"div",64)(8,"div",65)(9,"a",13),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.TextUtility.copyToClipboard(Oe.image_url))}),e._UZ(10,"i",66),e.qZA()(),e.YNc(11,nn,2,2,"div",67),e.qZA()()()()}if(2&ct){const Ce=Ct.$implicit,J=e.oxw(3);e.xp6(1),e.Q6J("ngClass",J.isSelected(Ce)?"border-3 border-success":""),e.xp6(3),e.Q6J("ngIf",Ce.image_url),e.xp6(1),e.Q6J("ngIf",J.isAdmin()),e.xp6(6),e.Q6J("ngIf",J.config.showDeleteButton)}}function Ot(ct,Ct){if(1&ct&&(e.TgZ(0,"div",56),e.YNc(1,Dn,12,4,"div",57),e.qZA()),2&ct){const Ce=e.oxw(2);e.Q6J("@dataLoaded",Ce.loading?"loading":"loaded")("@onGrid",Ce.layout==Ce.Layout.GRID)("ngClass",Ce.isWithinDialog()?"ms-2 me-2":""),e.xp6(1),e.Q6J("ngForOf",null==Ce.images?null:Ce.images.content)}}function rn(ct,Ct){if(1&ct&&(e.TgZ(0,"div"),e.YNc(1,bt,24,5,"div",36),e.YNc(2,Ot,2,4,"div",37),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(1),e.Q6J("ngIf",Ce.layout===Ce.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",Ce.layout===Ce.Layout.GRID)}}function vn(ct,Ct){if(1&ct&&e._UZ(0,"app-pagination",73),2&ct){const Ce=e.oxw();e.Q6J("page",Ce.images)}}function ei(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",83)(1,"button",16),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw(2);return e.KtG(ae.useSelectedFiles())}),e.TgZ(2,"span"),e.SDv(3,84),e.qZA()(),e.TgZ(4,"button",18),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw(2);return e.KtG(ae.clearSelection())}),e.TgZ(5,"span"),e.SDv(6,85),e.qZA()()()}}function Wn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",74)(1,"div",75),e.YNc(2,ei,7,0,"div",76),e.TgZ(3,"div",77)(4,"nav",78)(5,"ul",79)(6,"li",80)(7,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onPreviousClick())}),e.SDv(8,81),e.qZA()(),e.TgZ(9,"li",80)(10,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onNextClick())}),e.SDv(11,82),e.qZA()()()()()()()}if(2&ct){const Ce=e.oxw();e.xp6(2),e.Q6J("ngIf",Ce.isAnySelected()),e.xp6(5),e.Gre("page-link ",Ce.images.first?"disabled":"",""),e.xp6(3),e.Gre("page-link ",Ce.images.last?"disabled":"","")}}let Ve=(()=>{class ct extends Jt.R{componentName(){return"FileListComponent"}constructor(Ce,J,ae,Oe,ot,Se,Ft,lt,Bt){super(Ce,J,ae,ot),this.authService=Oe,this.activatedRoute=Se,this.fileService=Ft,this.notifier=lt,this.dialogData=Bt,this.config=I,this.images=w.H,this.selectedFiles=new Map,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe,this.TextUtility=un.g,Oe.isAdmin()&&(this.config.searchEndpoint=D.s.FILES.FILE_ENDPOINT_ADMIN,this.config.imageEndpoint=D.s.FILES.IMAGE_ENDPOINT_ADMIN),this.fileRequisitionDef=Bt.fileRequisitionDef}isAdmin(){return this.authService.isAdmin()}isWithinDialog(){return null!=this.fileRequisitionDef}initialize(){this.isWithinDialog()?(this.filterData=Z.M9,this.fetchWith(this.filterData)):this.activatedRoute.queryParams.subscribe(Ce=>{this.filterData=(0,Z.OP)(Ce,12),this.fetchWith(this.filterData)})}onFilterClick(Ce){this.filterData=Ce,this.fetchWith(this.filterData)}onNextClick(){this.filterData={...this.filterData,page:this.filterData.page+1},this.fetchWith(this.filterData)}onPreviousClick(){this.filterData={...this.filterData,page:this.filterData.page-1},this.fetchWith(this.filterData)}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Files",link:null,active:!0}]}fetchWith(Ce){this.fetchImages({username:Ce.username,from_date:Ce.fromDate,to_date:Ce.toDate,page:Ce.page,size:Ce.size})}fetchImages(Ce){this.loading=!0;const J=this.componentKey(ee.Z.FILES.SEARCH_IMAGES(Ce));this.fileService.search(J,this.config.imageEndpoint,Ce),this.subscribe(J,null,(ae,Oe)=>{this.images=Oe.data,this.loading=!1}),this.subscribe(this.getErrorKey(J),null,(ae,Oe)=>{this.notifier.error("Error",Oe.data.error.message)})}onDeleted(Ce){Ce&&(this.notifier.success("Success","File is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:S.create,update:Ce=>S.update(Ce),params:{}}}getUpsertComponent(){return yt}isSelected(Ce){return 1==this.selectedFiles.get(Ce)}useSelectedFiles(){let Ce=Array.from(this.selectedFiles.entries()).filter(([J,ae])=>ae).map(([J,ae])=>J);this.clearSelection(),this.onCompleted.emit(Ce)}clearSelection(){this.selectedFiles=new Map}isAnySelected(){return Array.from(this.selectedFiles.values()).some(Ce=>Ce)}toggleFileSelection(Ce){this.fileRequisitionDef.multiSelect||this.selectedFiles.clear(),this.selectedFiles.set(Ce,!this.isSelected(Ce))}onCloseClicked(){this.clearSelection(),this.onCanceled.emit()}static#e=this.\u0275fac=function(J){return new(J||ct)(e.Y36(te.Y),e.Y36(oe.F0),e.Y36(ce.z),e.Y36(tn.e),e.Y36(wn.x),e.Y36(oe.gz),e.Y36(_e.I),e.Y36(Re.l),e.Y36(n.WI))};static#t=this.\u0275cmp=e.Xpm({type:ct,selectors:[["app-file-list"]],inputs:{fileRequisitionDef:"fileRequisitionDef"},outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[e.qOj],decls:13,vars:9,consts:function(){let Ce,J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An,jn,ai,di,oi;return Ce="\u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",J="\u09B8\u09BF\u09B2\u09C7\u0995\u09B6\u09A8 \u09AE\u09C1\u099B\u09C1\u09A8",ae="\u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09A5\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE \u0995\u09B0\u09C1\u09A8..",Oe="\u0995\u09CB\u09A8 \u0986\u0987\u099F\u09C7\u09AE \u09A8\u09C7\u0987",ot="\u0986\u09AE\u09BE\u09B0 \u09A4\u09C8\u09B0\u09BF\u0995\u09C3\u09A4 \u09AB\u09BE\u0987\u09B2\u09B8\u09AE\u09C2\u09B9",Se="Id",Ft="\u09B6\u09BF\u09B0\u09CB\u09A8\u09BE\u09AE",lt="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",Bt="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",Ut="\u0986\u09AA\u09A1\u09C7\u099F",fn="\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",gn="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",An="\u0986\u09AA\u09B2\u09CB\u09A1 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",jn="\u09AA\u09C2\u09B0\u09CD\u09AC\u09AC\u09B0\u09CD\u09A4\u09C0",ai="\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",di="\u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",oi="\u09B8\u09BF\u09B2\u09C7\u0995\u09B6\u09A8 \u09AE\u09C1\u099B\u09C1\u09A8",[[1,"row"],[1,"col-sm-12"],["class","col-12",4,"ngIf"],[1,"card","card-body"],[3,"addBtnText","useParamNavigation","addButtonClick","filterClick"],["class","col-sm-auto mt-3",4,"ngIf"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page",4,"ngIf"],["class","row ms-2 me-2",4,"ngIf"],[1,"col-12"],[1,"flex-fill","float-end","mt-2","me-2"],["href","javascript: void(0);",3,"click"],[1,"bx","bxs-x-circle","text-danger"],[1,"col-sm-auto","mt-3"],["type","button",1,"btn","btn-success","w-md","me-3",3,"click"],Ce,["type","button",1,"btn","btn-warning","w-md",3,"click"],J,[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],ae,[1,"text-uppercase"],Oe,["class","row",4,"ngIf"],["class","row",3,"ngClass",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],ot,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],Se,Ft,lt,Bt,Ut,[4,"ngFor","ngForOf"],fn,gn,[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"row",3,"ngClass"],["class","col-xxl-2 col-xl-3 col-sm-4 col-6",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4","col-6"],[1,"card","text-center",3,"ngClass"],[1,"image-container",3,"click"],["class","card-img-top img-fluid center-cropped-image","alt","Card image cap",3,"src",4,"ngIf"],["class","card-body",3,"click",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-copy","text-success"],["class","flex-fill",4,"ngIf"],["alt","Card image cap",1,"card-img-top","img-fluid","center-cropped-image",3,"src"],[1,"card-body",3,"click"],[1,"font-size-10","text-info"],An,[3,"requestUrl","look","deleteItemEvent"],[3,"page"],[1,"row","ms-2","me-2"],[1,"col-lg-12","grid-margin","stretch-card","mt-3"],["class","col-sm-auto float-start",4,"ngIf"],[1,"float-end"],["aria-label","Page navigation example"],[1,"pagination"],[1,"page-item"],jn,ai,[1,"col-sm-auto","float-start"],di,oi]},template:function(J,ae){1&J&&(e.TgZ(0,"div",0),e._UZ(1,"div",1),e.qZA(),e.TgZ(2,"div",0),e.YNc(3,Rn,4,0,"div",2),e.TgZ(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return ae.onUpsertClick(null)})("filterClick",function(ot){return ae.onFilterClick(ot)}),e.qZA(),e.YNc(7,dt,7,0,"div",5),e.qZA()(),e.YNc(8,at,1,1,"util-progress",6),e.YNc(9,$e,13,2,"div",7),e.YNc(10,rn,3,2,"div",8),e.YNc(11,vn,1,1,"app-pagination",9),e.YNc(12,Wn,12,7,"div",10),e.qZA()),2&J&&(e.xp6(3),e.Q6J("ngIf",ae.isWithinDialog()),e.xp6(3),e.Q6J("addBtnText","Upload")("useParamNavigation",!1),e.xp6(1),e.Q6J("ngIf",ae.isAnySelected()),e.xp6(1),e.Q6J("ngIf",ae.loading),e.xp6(1),e.Q6J("ngIf",ae.images.empty),e.xp6(1),e.Q6J("ngIf",!ae.images.empty),e.xp6(1),e.Q6J("ngIf",!ae.isWithinDialog()),e.xp6(1),e.Q6J("ngIf",ae.isWithinDialog()))},dependencies:[mt.mk,mt.sg,mt.O5,Ge.t,Ln.Q,Yn.D,ti.T,gi.G],styles:[".image-container[_ngcontent-%COMP%]{width:100%;height:200px;overflow:hidden;position:relative}.center-cropped-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;object-position:center}"]})}return ct})()},9230:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>ee});var e=C(1547),l=C(6032),D=C(2495),I=C(5879),S=C(8480),w=C(5462),n=C(9862),Z=C(30);let ee=(()=>{class re extends e.b{constructor(se,te,oe,ce){super(se,te),this.http=oe,this.eventBusService=ce}search(se,te,oe){let ce=l.s.FILES.SEARCH(te,oe);this.http.get(ce).subscribe(_e=>{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.search(se,te,oe)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}fetchSingle(se,te){this.http.get(l.s.FILES.GET(te)).subscribe(oe=>{this.eventBusService.publish(se,oe)},oe=>{this.handleError(oe,ce=>{this.fetchSingle(se,te)},ce=>{this.eventBusService.publish(this.getErrorKey(se),ce)})})}upsert(se,te,oe){let ce=null==oe?l.s.FILES.CREATE():l.s.FILES.UPDATE(oe);(null==oe?this.http.post(ce,te):this.http.patch(ce,te)).subscribe(Re=>{this.eventBusService.publish(se,Re)},Re=>{this.handleError(Re,mt=>{this.upsert(se,te,oe)},mt=>{this.eventBusService.publish(this.getErrorKey(se),mt)})})}upload(se){const te=new FormData;for(let ce=0;ce{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.uploadImages(se,te)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}uploadImagesV2(se,te){const oe=new FormData;for(let _e=0;_e{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.uploadImagesV2(se,te)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}static#e=this.\u0275fac=function(te){return new(te||re)(I.LFG(S.e),I.LFG(w.l),I.LFG(n.eN),I.LFG(Z.Y))};static#t=this.\u0275prov=I.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})()},1715:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>re});var e=C(1547),l=C(2495),D=C(553),I=C(5879);let S=(()=>{class ue extends l.O{constructor(){super()}static#e=this.NOTIFICATIONS={CREATE:()=>D.N.base_url+"/api/v1/notifications",GET:te=>D.N.base_url+"/api/v1/notifications/"+te,UPDATE:te=>D.N.base_url+"/api/v1/notifications/"+te,COUNT_UNREAD:te=>D.N.base_url+"/api/v1/notifications/unread/count"+l.O.toParamString(te),INCREASE_VIEW_COUNT:te=>D.N.base_url+"/api/v1/notifications/view/count/"+te,INCREASE_CLICK_COUNT:te=>D.N.base_url+"/api/v1/notifications/click/count/"+te,MARK_READ:te=>D.N.base_url+"/api/v1/notifications/mark-read"+l.O.toParamString(te),MAKE_STICKY:te=>D.N.base_url+"/api/v1/notifications/make-sticky"+l.O.toParamString(te),RESPOND:te=>D.N.base_url+"/api/v1/notifications/"+te+"/respond",FETCH_MY_NOTIFICATIONS:te=>D.N.base_url+"/api/v1/my-notifications"+l.O.toParamString(te),SEARCH:te=>D.N.base_url+"/api/v1/notifications"+l.O.toParamString(te)};static#t=this.\u0275fac=function(oe){return new(oe||ue)};static#n=this.\u0275prov=I.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})();var w=C(8480),n=C(5462),Z=C(9862),ee=C(30);let re=(()=>{class ue extends e.b{constructor(te,oe,ce,_e){super(te,oe),this.http=ce,this.eventBus=_e}searchNotifications(te,oe){this.http.get(S.NOTIFICATIONS.SEARCH(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.searchNotifications(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}fetchSingle(te,oe){this.http.get(S.NOTIFICATIONS.GET(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.fetchSingle(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}fetchMyNotifications(te,oe){this.http.get(S.NOTIFICATIONS.FETCH_MY_NOTIFICATIONS(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.fetchMyNotifications(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}markRead(te,oe,ce,_e){this.http.post(S.NOTIFICATIONS.MARK_READ({id:ce,read:_e}),null).subscribe(Re=>{this.eventBus.publish(te,Re),this.eventBus.publish(oe,Re)},Re=>{this.handleError(Re,mt=>{this.markRead(te,oe,ce,_e)},mt=>{this.eventBus.publish(this.getErrorKey(te),mt)})})}makeSticky(te,oe,ce){this.http.post(S.NOTIFICATIONS.MAKE_STICKY({id:oe,sticky:ce}),null).subscribe(_e=>{this.eventBus.publish(te,_e)},_e=>{this.handleError(_e,Re=>{this.makeSticky(te,oe,ce)},Re=>{this.eventBus.publish(this.getErrorKey(te),Re)})})}respond(te,oe,ce){this.http.post(S.NOTIFICATIONS.RESPOND(oe),ce).subscribe(_e=>{this.eventBus.publish(te,_e)},_e=>{this.handleError(_e,Re=>{this.respond(te,oe,ce)},Re=>{this.eventBus.publish(this.getErrorKey(te),Re)})})}countUnread(te){this.http.get(S.NOTIFICATIONS.COUNT_UNREAD({})).subscribe(oe=>{this.eventBus.publish(te,oe)},oe=>{this.handleError(oe,ce=>{this.countUnread(te)},ce=>{this.eventBus.publish(this.getErrorKey(te),ce)})})}increaseViewCount(te,oe){this.http.patch(S.NOTIFICATIONS.INCREASE_VIEW_COUNT(oe),{}).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.increaseViewCount(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}increaseClickCount(te,oe){this.http.patch(S.NOTIFICATIONS.INCREASE_CLICK_COUNT(oe),{}).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.increaseClickCount(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}upsert(te,oe,ce){let _e=null==ce?S.NOTIFICATIONS.CREATE():S.NOTIFICATIONS.UPDATE(ce);(null==ce?this.http.post(_e,oe):this.http.patch(_e,oe)).subscribe(mt=>{this.eventBus.publish(te,mt)},mt=>{this.handleError(mt,Ge=>{this.upsert(te,oe,ce)},Ge=>{this.eventBus.publish(this.getErrorKey(te),Ge)})})}static#e=this.\u0275fac=function(oe){return new(oe||ue)(I.LFG(w.e),I.LFG(n.l),I.LFG(Z.eN),I.LFG(ee.Y))};static#t=this.\u0275prov=I.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})()},1989:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{SocialModule:()=>te});var e=C(6814),l=C(1662),D=C(5879);const I=[];let S=(()=>{class oe{static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=D.oAB({type:oe});static#n=this.\u0275inj=D.cJS({imports:[l.Bz.forChild(I),l.Bz]})}return oe})();var w=C(9862),n=C(9890),Z=C(3365),ee=C(7151),re=C(5195),ue=C(6223),se=C(9299);let te=(()=>{class oe{static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=D.oAB({type:oe});static#n=this.\u0275inj=D.cJS({providers:[{provide:w.TP,useClass:n.I,multi:!0}],imports:[e.ez,S,Z.TU,ee.g,re.QW,ue.u5,se.d,ue.UX]})}return oe})()},6075:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>Zt});var e=C(5879),l=C(8637),D=C(6676),S=C(2739),w=C(1855),n=C(8674),Z=C(30),ee=C(1662),re=C(6945),ue=C(8480),se=C(6814),te=C(9277),oe=C(6223),ce=C(9432);function _e(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",4)(1,"button",28),e.NdJ("click",function(){e.CHM(Jt);const wn=e.oxw();return e.KtG(wn.onAddButtonClick())}),e._UZ(2,"i",29),e.TgZ(3,"span"),e.SDv(4,30),e.qZA()()()}}const Re=function(){return{standalone:!0}};function mt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"input",34),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.qZA()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.s9C("placeholder",Jt.placeholder),e.Q6J("ngModel",tn.filterData.extra[Jt.name])("ngModelOptions",e.DdM(3,Re))}}function Ge(yt,un){if(1&yt&&(e.TgZ(0,"option",36),e._uU(1),e.qZA()),2&yt){const Jt=un.$implicit;e.s9C("value",Jt.value),e.xp6(1),e.hij(" ",Jt.label," ")}}function Lt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"select",35),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.TgZ(1,"option",36),e._uU(2),e.qZA(),e.YNc(3,Ge,2,2,"option",37),e.qZA()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.Q6J("name",Jt.name)("ngModel",tn.filterData.extra[Jt.name]),e.xp6(1),e.s9C("value",null),e.xp6(1),e.Oqu(Jt.placeholder),e.xp6(1),e.Q6J("ngForOf",Jt.options)}}const je=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}};function Tt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",6)(1,"input",38),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.qZA()()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.xp6(1),e.s9C("id",Jt.name),e.Q6J("bsConfig",e.DdM(5,je))("name",Jt.name)("ngModel",tn.filterData.extra[Jt.name])("ngModelOptions",e.DdM(6,Re))}}function xt(yt,un){if(1&yt&&(e.TgZ(0,"div",4)(1,"label",5),e._uU(2),e.qZA(),e.YNc(3,mt,1,4,"input",31),e.YNc(4,Lt,4,5,"select",32),e.YNc(5,Tt,2,7,"div",33),e.qZA()),2&yt){const Jt=un.$implicit;e.xp6(2),e.Oqu(Jt.label),e.xp6(1),e.Q6J("ngIf","text"===Jt.type),e.xp6(1),e.Q6J("ngIf","dropdown"===Jt.type),e.xp6(1),e.Q6J("ngIf","date"===Jt.type)}}function St(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",39)(1,"app-user-filter",40),e.NdJ("selected",function(wn){e.CHM(Jt);const Ln=e.oxw();return e.KtG(Ln.filterData.username=wn)}),e.qZA()()}if(2&yt){const Jt=e.oxw();e.xp6(1),e.Q6J("username",Jt.filterData.username)}}let Zt=(()=>{class yt extends l.H{constructor(Jt,tn,wn,Ln,Yn){super(Jt,tn,wn),this.activatedRoute=Ln,this.authService=Yn,this.useParamNavigation=!0,this.showAddBtn=!0,this.addBtnText="Add New",this.addButtonRoute=null,this.extraFields=[],this.filterClick=new e.vpe,this.addButtonClick=new e.vpe,this.filterData=w.M9}componentName(){return"BasicFilterComponent"}ngOnInit(){this.filterData.extra=this.filterFieldsAsParams(),this.useParamNavigation&&this.activatedRoute.queryParams.subscribe(Jt=>{null!=this.filterData.fromDate&&null!=this.filterData.toDate?(this.filterData.fromDate=D(this.filterData.fromDate).toDate(),this.filterData.toDate=D(this.filterData.toDate).toDate()):(this.filterData.fromDate=new Date(0),this.filterData.toDate=new Date);let tn=this.filterFieldsAsParams();this.filterData=(0,w.OP)(Jt,10,tn)})}filterFieldsAsParams(){return Object.fromEntries(this.extraFields.map(Jt=>[Jt.name,Jt.value]))}onFilterClick(){this.useParamNavigation?this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{username:this.filterData.username,query:this.filterData.query,from_date:this.filterData.fromDate.toISOString(),to_date:this.filterData.toDate.toISOString(),page:this.filterData.page,size:this.filterData.size,...(0,n.GN)(this.filterData.extra)},queryParamsHandling:"merge"}).then(Jt=>{}):this.filterClick.emit(this.filterData)}isAdmin(){return this.authService.isAdmin()}onAddButtonClick(){this.addButtonClick.emit()}filterForToday(){this.filterData.fromDate=S.b.getDayStart(new Date),this.filterData.toDate=S.b.getDayEnd(new Date),this.onFilterClick()}filterForYesterday(){this.filterData.fromDate=S.b.getDayStart(S.b.addDays(new Date,-1)),this.filterData.toDate=S.b.getDayEnd(S.b.addDays(new Date,-1)),this.onFilterClick()}filterForLast7Days(){this.filterData.fromDate=S.b.last7DaysRange(new Date).start,this.filterData.toDate=S.b.last7DaysRange(new Date).end,this.onFilterClick()}filterForThisMonth(){this.filterData.fromDate=S.b.monthRange(new Date).start,this.filterData.toDate=S.b.monthRange(new Date).end,this.onFilterClick()}filterForLastMonth(){this.filterData.fromDate=S.b.monthRange(S.b.addMonths(new Date,-1)).start,this.filterData.toDate=S.b.monthRange(S.b.addMonths(new Date,-1)).end,this.onFilterClick()}filterForThisYear(){this.filterData.fromDate=S.b.yearRange(new Date).start,this.filterData.toDate=S.b.yearRange(new Date).end,this.onFilterClick()}filterForLastYear(){this.filterData.fromDate=S.b.yearRange(S.b.addYears(new Date,-1)).start,this.filterData.toDate=S.b.yearRange(S.b.addYears(new Date,-1)).end,this.onFilterClick()}clearFilter(){this.filterData.query=null,this.filterData.username=null,this.filterData.fromDate=S.b.getDayStart(new Date(0)),this.filterData.toDate=S.b.getDayEnd(new Date),this.filterData.page=0,this.filterData.size=10,this.filterData.extra=this.filterFieldsAsParams(),this.onFilterClick()}static#e=this.\u0275fac=function(tn){return new(tn||yt)(e.Y36(Z.Y),e.Y36(ee.F0),e.Y36(re.z),e.Y36(ee.gz),e.Y36(ue.e))};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["app-basic-filter"]],inputs:{useParamNavigation:"useParamNavigation",showAddBtn:"showAddBtn",addBtnText:"addBtnText",addButtonRoute:"addButtonRoute",extraFields:"extraFields"},outputs:{filterClick:"filterClick",addButtonClick:"addButtonClick"},features:[e.qOj],decls:41,vars:15,consts:function(){let Jt,tn,wn,Ln,Yn,ti,gi,Rn,dt,at;return Jt="\u09AB\u09BF\u09B2\u09CD\u099F\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tn="\u0986\u099C",wn="\u0997\u09A4\u0995\u09BE\u09B2",Ln="\u0997\u09A4 \u09ED \u09A6\u09BF\u09A8",Yn="\u098F\u0987 \u09AE\u09BE\u09B8",ti="\u0997\u09A4 \u09AE\u09BE\u09B8",gi="\u098F\u0987 \u09AC\u099B\u09B0",Rn="\u0997\u09A4 \u09AC\u099B\u09B0",dt="\u09AA\u09B0\u09BF\u09B7\u09CD\u0995\u09BE\u09B0",at="\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",[[1,"row","gy-2","gx-3","align-items-center"],["class","col-sm-auto",4,"ngIf"],["class","col-sm-auto",4,"ngFor","ngForOf"],["class","col-sm-2",4,"ngIf"],[1,"col-sm-auto"],["for","fromDate",1,"visually-hidden"],[1,"input-group"],["bsDatepicker","","id","fromDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","maxDate","ngModelChange"],["for","toDate",1,"visually-hidden"],["bsDatepicker","","id","toDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","minDate","ngModelChange"],[1,"col-sm-auto","btn-group"],["type","button",1,"btn","btn-primary",3,"click"],[1,"ms-2","me-2"],Jt,["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split"],[1,"mdi","mdi-chevron-down"],[1,"dropdown-menu"],["href","javascript: void(0);",1,"dropdown-item",3,"click"],tn,wn,Ln,[1,"dropdown-divider"],Yn,ti,gi,Rn,["type","button",1,"btn","btn-outline-primary",3,"click"],dt,["type","button",1,"btn","btn-success","w-md",3,"click"],[1,"mdi","mdi-plus-circle","me-2"],at,["type","text","class","form-control","id","title-input",3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],["id","formrow-inputState","class","form-select",3,"name","ngModel","ngModelChange",4,"ngIf"],["class","input-group",4,"ngIf"],["type","text","id","title-input",1,"form-control",3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["id","formrow-inputState",1,"form-select",3,"name","ngModel","ngModelChange"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["bsDatepicker","",1,"form-control",3,"id","bsConfig","name","ngModel","ngModelOptions","ngModelChange"],[1,"col-sm-2"],[3,"username","selected"]]},template:function(tn,wn){1&tn&&(e.TgZ(0,"form",0),e.YNc(1,_e,5,0,"div",1),e.YNc(2,xt,6,4,"div",2),e.YNc(3,St,2,1,"div",3),e.TgZ(4,"div",4)(5,"label",5),e._uU(6,"From"),e.qZA(),e.TgZ(7,"div",6)(8,"input",7),e.NdJ("ngModelChange",function(Yn){return wn.filterData.fromDate=Yn}),e.qZA()()(),e.TgZ(9,"div",4)(10,"label",8),e._uU(11,"To"),e.qZA(),e.TgZ(12,"div",6)(13,"input",9),e.NdJ("ngModelChange",function(Yn){return wn.filterData.toDate=Yn}),e.qZA()()(),e.TgZ(14,"div",10)(15,"button",11),e.NdJ("click",function(){return wn.onFilterClick()}),e.TgZ(16,"span",12),e.SDv(17,13),e.qZA()(),e.TgZ(18,"button",14),e._UZ(19,"i",15),e.qZA(),e.TgZ(20,"div",16)(21,"a",17),e.NdJ("click",function(){return wn.filterForToday()}),e.SDv(22,18),e.qZA(),e.TgZ(23,"a",17),e.NdJ("click",function(){return wn.filterForYesterday()}),e.SDv(24,19),e.qZA(),e.TgZ(25,"a",17),e.NdJ("click",function(){return wn.filterForLast7Days()}),e.SDv(26,20),e.qZA(),e._UZ(27,"div",21),e.TgZ(28,"a",17),e.NdJ("click",function(){return wn.filterForThisMonth()}),e.SDv(29,22),e.qZA(),e.TgZ(30,"a",17),e.NdJ("click",function(){return wn.filterForLastMonth()}),e.SDv(31,23),e.qZA(),e._UZ(32,"div",21),e.TgZ(33,"a",17),e.NdJ("click",function(){return wn.filterForThisYear()}),e.SDv(34,24),e.qZA(),e.TgZ(35,"a",17),e.NdJ("click",function(){return wn.filterForLastYear()}),e.SDv(36,25),e.qZA()()(),e.TgZ(37,"div",4)(38,"button",26),e.NdJ("click",function(){return wn.clearFilter()}),e.TgZ(39,"span",12),e.SDv(40,27),e.qZA()()()()),2&tn&&(e.xp6(1),e.Q6J("ngIf",wn.showAddBtn),e.xp6(1),e.Q6J("ngForOf",wn.extraFields),e.xp6(1),e.Q6J("ngIf",wn.isAdmin()),e.xp6(5),e.Q6J("bsConfig",e.DdM(11,je))("ngModel",wn.filterData.fromDate)("ngModelOptions",e.DdM(12,Re))("maxDate",wn.filterData.toDate),e.xp6(5),e.Q6J("bsConfig",e.DdM(13,je))("ngModel",wn.filterData.toDate)("ngModelOptions",e.DdM(14,Re))("minDate",wn.filterData.fromDate))},dependencies:[se.sg,se.O5,te.Np,te.Y5,oe._Y,oe.YN,oe.Kr,oe.Fj,oe.EJ,oe.JJ,oe.JL,oe.On,oe.F,ce.R]})}return yt})()},1855:(ft,Ie,C)=>{"use strict";C.d(Ie,{M9:()=>I,OP:()=>n,oZ:()=>w});var e=C(6676),D=C(2739);const I={query:null,fromDate:D.b.getDayStart(new Date(0)),toDate:D.b.getDayEnd(new Date),username:null,page:0,size:10,extra:{}};function w(ee){return{query:ee.query,username:ee.username,from_date:ee.fromDate.toISOString(),to_date:ee.toDate.toISOString(),page:ee.page,size:ee.size,...ee.extra}}function n(ee,re=10,ue={}){let se=ee.query,te=ee.username,oe=new Date(0),ce=new Date;return null!=ee.from_date&&null!=ee.to_date&&(oe=e(ee.from_date).toDate(),ce=e(ee.to_date).toDate()),{query:se,fromDate:oe,toDate:ce,username:null!=te&&te.length>0?te:null,page:ee.page?ee.page:0,size:ee.size?ee.size:re,extra:Z(ue,ee,["query","username","from_date","to_date","page","size"])}}function Z(ee,re,ue){return Object.keys(re).forEach(se=>{if(!ue.includes(se)){const te=re[se];if("string"==typeof te){const oe=Date.parse(te);ee[se]=isNaN(oe)||/^\d+$/.test(te)?"true"===te.toLowerCase()||"false"===te.toLowerCase()?"true"===te.toLowerCase():isNaN(Number(te))?te:Number(te):new Date(oe)}else ee[se]=te}}),ee}},9582:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>oe});var e=C(5879),l=C(8637),D=C(30),I=C(1662),S=C(6945),w=C(5462),n=C(1547),Z=C(8480),ee=C(9862);let re=(()=>{class ce extends n.b{constructor(Re,mt,Ge,Lt){super(Re,mt),this.http=Ge,this.eventBus=Lt}deleteItem(Re,mt){this.http.delete(mt).subscribe(Ge=>{this.eventBus.publish(Re,Ge)},Ge=>{this.handleError(Ge,Lt=>{this.deleteItem(Re,mt)},Lt=>{this.eventBus.publish(this.getErrorKey(Re),Lt)})})}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.LFG(Z.e),e.LFG(w.l),e.LFG(ee.eN),e.LFG(D.Y))};static#t=this.\u0275prov=e.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();var ue=C(6814);function se(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"a",2),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw();return e.KtG(Ge.deleteItem())}),e._UZ(1,"i",3),e.qZA()}}function te(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"a",4),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw();return e.KtG(Ge.deleteItem())}),e._UZ(1,"i",5),e.qZA()}}let oe=(()=>{class ce extends l.H{componentName(){return"DeleteComponent"}constructor(Re,mt,Ge,Lt,je){super(Re,mt,Ge),this.notifier=Lt,this.deleteService=je,this.deleteItemEvent=new e.vpe,this.look="fa"}ngOnInit(){}deleteItem(){if(!confirm("Are you sure to continue?"))return;let mt=this.componentKey(this.requestUrl);this.deleteService.deleteItem(mt,this.requestUrl),this.subscribe(mt,null,(Ge,Lt)=>{this.deleteItemEvent.emit(!0)}),this.subscribe(this.getErrorKey(mt),null,(Ge,Lt)=>{this.notifier.error("Error!",Lt.data.error.message),this.deleteItemEvent.emit(!1)})}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(D.Y),e.Y36(I.F0),e.Y36(S.z),e.Y36(w.l),e.Y36(re))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["app-delete"]],inputs:{requestUrl:"requestUrl",look:"look"},outputs:{deleteItemEvent:"deleteItemEvent"},features:[e.qOj],decls:2,vars:2,consts:[["class","btn btn-outline-danger btn-sm","title","Delete",3,"click",4,"ngIf"],["href","javascript: void(0);",3,"click",4,"ngIf"],["title","Delete",1,"btn","btn-outline-danger","btn-sm",3,"click"],[1,"fas","fa-trash"],["href","javascript: void(0);",3,"click"],["title","Delete",1,"bx","bx-trash","text-danger"]],template:function(mt,Ge){1&mt&&(e.YNc(0,se,2,0,"a",0),e.YNc(1,te,2,0,"a",1)),2&mt&&(e.Q6J("ngIf","fa"==Ge.look),e.xp6(1),e.Q6J("ngIf","bx"==Ge.look))},dependencies:[ue.O5]})}return ce})()},1836:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q:()=>_e});var e=C(5879),l=C(6542),D=C(8637),I=C(30),S=C(1662),w=C(6945),n=C(6814);function Z(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-4))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-4)}}function ee(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-3))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-3)}}function re(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-2))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-2)}}function ue(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-1))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-1)}}function se(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+1))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+1)}}function te(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+2))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+2)}}function oe(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+3))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+3)}}function ce(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+4))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+4)}}let _e=(()=>{class Re extends D.H{componentName(){return"PaginationComponent"}constructor(Ge,Lt,je,Tt){super(Ge,Lt,je),this.activatedRoute=Tt,this.page=l.H,this.pageNumber=0,this.pageSize=10,this.onPageChanged=new e.vpe}ngOnInit(){this.activatedRoute.queryParams.subscribe(Ge=>{let je=Ge.size;this.pageNumber=parseInt(Ge.page??this.page.number),this.pageSize=parseInt(je??this.page.size),this.onPageChanged.emit(Ge)})}processParams(Ge){let Lt={};for(let je of Object.entries(Ge))Lt[je[0]]=je[1];return Lt}onPageSelected(Ge){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:Ge,size:this.pageSize},queryParamsHandling:"merge"}).then(Lt=>{})}onNextClick(){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:this.pageNumber+1,size:this.pageSize},queryParamsHandling:"merge"}).then(Ge=>{})}onPreviousClick(){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:this.pageNumber-1,size:this.pageSize},queryParamsHandling:"merge"}).then(Ge=>{})}static#e=this.\u0275fac=function(Lt){return new(Lt||Re)(e.Y36(I.Y),e.Y36(S.F0),e.Y36(w.z),e.Y36(S.gz))};static#t=this.\u0275cmp=e.Xpm({type:Re,selectors:[["app-pagination"]],inputs:{page:"page"},outputs:{onPageChanged:"onPageChanged"},features:[e.qOj],decls:30,vars:15,consts:function(){let Ge,Lt;return Ge="\u09AA\u09C2\u09B0\u09CD\u09AC\u09AC\u09B0\u09CD\u09A4\u09C0",Lt="\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",[[1,"row"],[1,"col-lg-12","grid-margin","stretch-card"],[1,"float-end"],["aria-label","Page navigation example"],[1,"pagination"],[1,"page-item"],["href","javascript: void(0);",3,"click"],Ge,["href","javascript: void(0);","class","page-link",3,"click",4,"ngIf"],["href","javascript: void(0);",1,"page-link","active",3,"click"],Lt,["href","javascript: void(0);",1,"page-link",3,"click"]]},template:function(Lt,je){1&Lt&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"nav",3)(4,"ul",4)(5,"li",5)(6,"a",6),e.NdJ("click",function(){return je.onPreviousClick()}),e.SDv(7,7),e.qZA()(),e.TgZ(8,"li",5),e.YNc(9,Z,2,1,"a",8),e.qZA(),e.TgZ(10,"li",5),e.YNc(11,ee,2,1,"a",8),e.qZA(),e.TgZ(12,"li",5),e.YNc(13,re,2,1,"a",8),e.qZA(),e.TgZ(14,"li",5),e.YNc(15,ue,2,1,"a",8),e.qZA(),e.TgZ(16,"li",5)(17,"a",9),e.NdJ("click",function(){return je.onPageSelected(je.page.number)}),e._uU(18),e.qZA()(),e.TgZ(19,"li",5),e.YNc(20,se,2,1,"a",8),e.qZA(),e.TgZ(21,"li",5),e.YNc(22,te,2,1,"a",8),e.qZA(),e.TgZ(23,"li",5),e.YNc(24,oe,2,1,"a",8),e.qZA(),e.TgZ(25,"li",5),e.YNc(26,ce,2,1,"a",8),e.qZA(),e.TgZ(27,"li",5)(28,"a",6),e.NdJ("click",function(){return je.onNextClick()}),e.SDv(29,10),e.qZA()()()()()()()),2&Lt&&(e.xp6(6),e.Gre("page-link ",je.page.first?"disabled":"",""),e.xp6(3),e.Q6J("ngIf",je.page.number>3),e.xp6(2),e.Q6J("ngIf",je.page.number>2),e.xp6(2),e.Q6J("ngIf",je.page.number>1),e.xp6(2),e.Q6J("ngIf",je.page.number>0),e.xp6(3),e.Oqu(je.page.number),e.xp6(2),e.Q6J("ngIf",je.page.number+1{"use strict";C.d(Ie,{x:()=>D});var e=C(5879),l=C(7700);let D=(()=>{class S{constructor(n){this.dialog=n,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe}openWithConfig(n,Z){const ee=this.dialog.open(n,Z);let re=ee.componentInstance;return re.onCanceled.subscribe(()=>{this.onCanceled.emit(),ee.close()}),re.onCompleted.subscribe(ue=>{this.onCompleted.emit(ue),ee.close()}),ee}open(n,Z){console.log(window.innerWidth,window.innerHeight);let re=function I(){let S=window.innerWidth;return S>=1600?60:S>=1400?50:S>=1200||S>=992?40:S>=768?70:80}(),ue={disableClose:!0,maxHeight:70*window.innerHeight/100+"px",width:window.innerWidth*re/100+"px",data:Z};return this.openWithConfig(n,ue)}static#e=this.\u0275fac=function(Z){return new(Z||S)(e.LFG(l.uw))};static#t=this.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},4736:(ft,Ie,C)=>{"use strict";C.d(Ie,{t:()=>se});var e=C(5879),l=C(6814),D=C(5940),I=C(6007);function S(te,oe){if(1&te&&(e.TgZ(0,"div")(1,"h5",1),e._uU(2),e.qZA()()),2&te){const ce=e.oxw();e.xp6(2),e.Oqu(ce.message)}}function w(te,oe){1&te&&e._UZ(0,"mat-progress-bar",4)}function n(te,oe){if(1&te&&(e.TgZ(0,"div",5),e._UZ(1,"mat-spinner",6),e.qZA()),2&te){const ce=e.oxw(2);e.vpz("padding: ",ce.padding,"px 0 ",ce.padding,"px 0;"),e.xp6(1),e.Q6J("diameter",ce.size)}}function Z(te,oe){if(1&te&&(e.TgZ(0,"div"),e.YNc(1,w,1,0,"mat-progress-bar",2),e.YNc(2,n,2,5,"div",3),e.qZA()),2&te){const ce=e.oxw();e.xp6(1),e.Q6J("ngIf",ce.bar),e.xp6(1),e.Q6J("ngIf",!ce.bar)}}function ee(te,oe){if(1&te&&e._UZ(0,"mat-progress-bar",8),2&te){const ce=e.oxw(2);e.Q6J("value",ce.determinateValue)}}function re(te,oe){if(1&te&&(e.TgZ(0,"div",5),e._UZ(1,"mat-spinner",9),e.qZA()),2&te){const ce=e.oxw(2);e.vpz("padding: ",ce.padding,"px 0 ",ce.padding,"px 0;"),e.xp6(1),e.Q6J("diameter",ce.size)("value",ce.determinateValue)}}function ue(te,oe){if(1&te&&(e.TgZ(0,"div"),e.YNc(1,ee,1,1,"mat-progress-bar",7),e.YNc(2,re,2,6,"div",3),e.qZA()),2&te){const ce=e.oxw();e.xp6(1),e.Q6J("ngIf",ce.bar),e.xp6(1),e.Q6J("ngIf",!ce.bar)}}let se=(()=>{class te{constructor(){this.size=50,this.padding=20,this.bar=!1,this.determinate=!1,this.determinateValue=0,this.message=null}ngOnInit(){}static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275cmp=e.Xpm({type:te,selectors:[["util-progress"]],inputs:{size:"size",padding:"padding",bar:"bar",determinate:"determinate",determinateValue:"determinateValue",message:"message"},decls:3,vars:3,consts:[[4,"ngIf"],[1,"loading-msg"],["mode","indeterminate",4,"ngIf"],["class","progress-section",3,"style",4,"ngIf"],["mode","indeterminate"],[1,"progress-section"],["mode","indeterminate",3,"diameter"],["mode","determinate",3,"value",4,"ngIf"],["mode","determinate",3,"value"],["mode","determinate",3,"diameter","value"]],template:function(_e,Re){1&_e&&(e.YNc(0,S,3,1,"div",0),e.YNc(1,Z,3,2,"div",0),e.YNc(2,ue,3,2,"div",0)),2&_e&&(e.Q6J("ngIf",null!=Re.message),e.xp6(1),e.Q6J("ngIf",!Re.determinate),e.xp6(1),e.Q6J("ngIf",Re.determinate))},dependencies:[l.O5,D.Ou,I.pW],styles:[".progress-section[_ngcontent-%COMP%]{display:grid;place-items:center}.loading-msg[_ngcontent-%COMP%]{font-size:1em;margin-bottom:20px}"]})}return te})()},9432:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>ce});var e=C(5879),l=C(8637),D=C(7259),I=C(8174),S=C(30),w=C(1662),n=C(6945),Z=C(5239),ee=C(6814),re=C(6223),ue=C(4807),se=C(4736);function te(_e,Re){1&_e&&e._UZ(0,"util-progress",3),2&_e&&e.Q6J("bar",!0)}const oe=function(){return{standalone:!0}};let ce=(()=>{class _e extends l.H{componentName(){return"UserFilterComponent"}constructor(mt,Ge,Lt,je){super(mt,Ge,Lt),this.userService=je,this.users=[],this.username=null,this.selected=new e.vpe}ngOnInit(){this.loading=!1,this.searchUsers({page:0,size:20,q:null,slice:!0})}onUserSelected(mt){this.selected.emit(this.username)}searchUsersForEvent(mt){let Ge=I.g.removeSpecialCharacters(mt.target?.value);Ge.length>2&&this.searchUsers({page:0,size:20,q:Ge,slice:!0})}searchUsers(mt){this.loading=!0;let Ge=this.componentKey(D.Z.USERS.SEARCH_USERS());this.userService.searchUsers(Ge,mt),this.subscribe(Ge,null,(Lt,je)=>{this.users=je.data.content,this.loading=!1})}static#e=this.\u0275fac=function(Ge){return new(Ge||_e)(e.Y36(S.Y),e.Y36(w.F0),e.Y36(n.z),e.Y36(Z.K))};static#t=this.\u0275cmp=e.Xpm({type:_e,selectors:[["app-user-filter"]],inputs:{username:"username"},outputs:{selected:"selected"},features:[e.qOj],decls:4,vars:8,consts:[["for","autoSizingInput",1,"visually-hidden"],[3,"bar",4,"ngIf"],["id","autoSizingInput","bindLabel","label","bindValue","username","placeholder","User",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]],template:function(Ge,Lt){1&Ge&&(e.TgZ(0,"label",0),e._uU(1,"User"),e.qZA(),e.YNc(2,te,1,1,"util-progress",1),e.TgZ(3,"ng-select",2),e.NdJ("keyup",function(Tt){return Lt.searchUsersForEvent(Tt)})("ngModelChange",function(Tt){return Lt.username=Tt})("change",function(Tt){return Lt.onUserSelected(Tt)}),e.qZA()),2&Ge&&(e.xp6(2),e.Q6J("ngIf",Lt.loading),e.xp6(1),e.Q6J("items",Lt.users)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",Lt.username)("ngModelOptions",e.DdM(7,oe)))},dependencies:[ee.O5,re.JJ,re.On,ue.w9,se.t]})}return _e})()},2770:(ft,Ie,C)=>{"use strict";C.d(Ie,{G:()=>I});var e=C(6814),l=C(2739),D=C(5879);let I=(()=>{class S{transform(n,Z=!1){if(null==n)return null;let ee="MMM dd, yyyy hh:mm a";if(!Z)return new e.uU("en-US").transform(n,ee);let re=l.b.getDuration(new Date,new Date(n));return re>432e5?new e.uU("en-US").transform(n,ee):l.b.msToReadableTime(re,!1)}static#e=this.\u0275fac=function(Z){return new(Z||S)};static#t=this.\u0275pipe=D.Yjl({name:"readableDate",type:S,pure:!0})}return S})()},8174:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>e});class e{static copyToClipboard(D){const I=document.createElement("textarea");I.style.position="fixed",I.style.left="0",I.style.top="0",I.style.opacity="0",I.value=D,document.body.appendChild(I),I.focus(),I.select(),document.execCommand("copy"),document.body.removeChild(I)}static findHashtags(D,I){let S=D.split(" ").filter(w=>w.startsWith("#"));return I?S.map(w=>w.replace("#","")):S}static removeSpecialCharacters(D,I=!0){return D.replace(I?/[^a-zA-Z0-9\s]/g:/[^a-zA-Z0-9]/g,"")}static slugify(D){return null==D?"":D.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}static codify(D){return null==D?"":D.toString().toUpperCase().replace(/\s+/g,"_").replace(/[^\w\_]+/g,"").replace(/\_\_+/g,"_").replace(/^_+/,"").replace(/_+$/,"")}static randomString(D){let I="";for(let n=0;n{"use strict";C.d(Ie,{b:()=>e,e:()=>l});class e{static getDuration(I,S){return Math.abs(I.getTime()-S.getTime())}static addDays(I,S){return new Date(I.getTime()+24*S*60*60*1e3)}static addMonths(I,S){return new Date(I.setMonth(I.getMonth()+S))}static addYears(I,S){return new Date(I.setFullYear(I.getFullYear()+S))}static weekRange(I){let S=I.getDay()||7;return 1!==S&&I.setHours(-24*(S-1)),{start:new Date(I.getFullYear(),I.getMonth(),I.getDate()),end:new Date(I.getFullYear(),I.getMonth(),I.getDate()+6)}}static last7DaysRange(I){return{start:this.addDays(I,-7),end:I}}static monthRange(I){return{start:new Date(I.getFullYear(),I.getMonth(),1),end:new Date(I.getFullYear(),I.getMonth()+1,0)}}static yearRange(I){return{start:new Date(I.getFullYear(),0,1),end:new Date(I.getFullYear(),11,31)}}static msToTime(I){let S=Math.floor(I%1e3/100),w=Math.floor(I/1e3%60),n=Math.floor(I/6e4%60),Z=Math.floor(I/36e5%24);return{h:Z<10?"0"+Z:Z+"",m:n<10?"0"+n:n+"",s:w<10?"0"+w:w+"",ms:S+""}}static msToReadableTime(I,S){let w=this.msToTime(I);if("00"===w.h&&"00"===w.m)return"just now";let n="";return"00"!==w.h&&(n=w.h+" h "),n=n+""+w.m+" min",S&&(n=" "+n+" sec"),n+" ago"}static calculateRange(I){switch(I){case"TODAY":{let S=new Date;return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(S)}}case"YESTERDAY":{let S=this.getDayBefore(new Date,1);return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(S)}}case"THIS_WEEK":{let S=this.getDayBefore(new Date,7);return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(new Date)}}case"THIS_MONTH":{let S=this.getFirstAndLastDayOfMonth(new Date);return{fromDate:S.firstDay,toDate:S.lastDay}}case"LAST_MONTH":{let S=new Date;S.setMonth(S.getMonth()-1);let w=this.getFirstAndLastDayOfMonth(S);return{fromDate:w.firstDay,toDate:w.lastDay}}}return null}static getDayBefore(I,S){return new Date(I.getTime()-24*S*60*60*1e3)}static getDayStart(I){return I.setHours(0,0,0,0),I}static getDayEnd(I){return I.setHours(23,59,59,999),I}static getFirstAndLastDayOfMonth(I){const S=new Date(I.getFullYear(),I.getMonth(),1),w=new Date(I.getFullYear(),I.getMonth()+1,0);return{firstDay:this.getDayStart(S),lastDay:this.getDayEnd(w)}}static dateFromMonth(I){const S=l.map(n=>n.value).findIndex(n=>n.toLowerCase()===I.toLowerCase()),w=new Date;return w.setUTCMonth(-1!==S?S:(new Date).getMonth()),w.setUTCDate(1),w.setUTCHours(0,0,0,0),w}}let l=[{title:"January",value:"january"},{title:"February",value:"february"},{title:"March",value:"march"},{title:"April",value:"april"},{title:"May",value:"may"},{title:"June",value:"june"},{title:"July",value:"july"},{title:"August",value:"august"},{title:"September",value:"september"},{title:"October",value:"october"},{title:"November",value:"november"},{title:"December",value:"december"}]},7151:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>re});var e=C(6814),l=C(5940),D=C(6007),I=C(9277),S=C(6223),w=C(4807),n=C(7700),Z=C(9299),ee=C(5879);let re=(()=>{class ue{static#e=this.\u0275fac=function(oe){return new(oe||ue)};static#t=this.\u0275mod=ee.oAB({type:ue});static#n=this.\u0275inj=ee.cJS({providers:[{provide:n.WI,useValue:{}},{provide:n.so,useValue:{}}],imports:[e.ez,l.Cq,D.Cv,I.kn,S.u5,w.A0,S.UX,Z.d]})}return ue})()},8914:(ft,Ie,C)=>{"use strict";C.d(Ie,{$:()=>e});const e=[{id:1,title:"TODAY",code:"TODAY"},{id:2,title:"YESTERDAY",code:"YESTERDAY"},{id:4,title:"THIS WEEK",code:"THIS_WEEK"},{id:4,title:"THIS MONTH",code:"THIS_MONTH"}]},6929:(ft,Ie,C)=>{"use strict";C.d(Ie,{v:()=>S});var e=C(5879),l=C(6814);function D(w,n){if(1&w){const Z=e.EpF();e.TgZ(0,"li",3),e.NdJ("click",function(){const ue=e.CHM(Z).$implicit,se=e.oxw();return e.KtG(se.onMenuItemClick(ue))}),e.TgZ(1,"a"),e._uU(2),e.qZA()()}if(2&w){const Z=n.$implicit;e.xp6(2),e.Oqu(Z.title)}}const I=function(w){return{"product-menu-bar":w}};let S=(()=>{class w{constructor(){this.showMenubar=!1,this.top=0,this.items=[],this.menuItemClick=new e.vpe}ngOnInit(){}onMenuItemClick(Z){this.menuItemClick.emit(Z)}static#e=this.\u0275fac=function(ee){return new(ee||w)};static#t=this.\u0275cmp=e.Xpm({type:w,selectors:[["app-menubox"]],inputs:{showMenubar:"showMenubar",top:"top",items:"items"},outputs:{menuItemClick:"menuItemClick"},decls:4,vars:7,consts:[[3,"ngClass"],[1,"productMenuBox"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(ee,re){1&ee&&(e.TgZ(0,"div",0)(1,"div",1)(2,"ul"),e.YNc(3,D,3,1,"li",2),e.qZA()()()),2&ee&&(e.Q6J("ngClass",e.VKq(5,I,re.showMenubar)),e.xp6(1),e.Jzz("top:",re.top,"px"),e.xp6(2),e.Q6J("ngForOf",re.items))},dependencies:[l.mk,l.sg],styles:['.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:250px;margin-top:10px;padding:0 10px;list-style:none;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return w})()},9029:(ft,Ie,C)=>{"use strict";C.d(Ie,{d:()=>w});var e=C(5879),l=C(7613),D=C(6814);const I=function(n){return{"background-image":n}};function S(n,Z){if(1&n){const ee=e.EpF();e.TgZ(0,"div",1,2),e.NdJ("click",function(){e.CHM(ee);const ue=e.oxw();return e.KtG(ue.onItemClick(ue.product))}),e.TgZ(2,"div",3)(3,"p",4),e._UZ(4,"i",5),e._uU(5),e.qZA(),e.TgZ(6,"h4")(7,"a",6),e.NdJ("click",function(){e.CHM(ee);const ue=e.oxw();return e.KtG(ue.onItemClick(ue.product))}),e.TgZ(8,"span",7),e._uU(9),e.qZA()()()()()}if(2&n){const ee=e.oxw();e.Q6J("ngStyle",e.VKq(3,I,"url("+ee.product.image+")")),e.xp6(5),e.hij(" ",ee.product.average_rating.toFixed(1),"/10 This week"),e.xp6(4),e.Oqu(ee.product.product_name)}}let w=(()=>{class n{constructor(){this.product=null,this.onClick=new e.vpe}ngOnInit(){}takeOnly(ee){return ee.length<25?ee:l.m.takeOnly(ee,25)+".."}onItemClick(ee){this.onClick.emit(ee)}static#e=this.\u0275fac=function(re){return new(re||n)};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["app-single-product-item"]],inputs:{product:"product"},outputs:{onClick:"onClick"},decls:1,vars:1,consts:[["class","single-product-area item",3,"ngStyle","click",4,"ngIf"],[1,"single-product-area","item",3,"ngStyle","click"],["el",""],[1,"product-content","text-light","align-items-end"],[2,"color","ghostwhite","text-shadow","1px 1px black"],[1,"flaticon-star-1",2,"font-size","1em"],[3,"click"],[1,"excerpt"]],template:function(re,ue){1&re&&e.YNc(0,S,10,5,"div",0),2&re&&e.Q6J("ngIf",null!=ue.product)},dependencies:[D.O5,D.PC],styles:[".single-product-area[_ngcontent-%COMP%]{object-fit:cover;background-size:cover;display:flex;justify-content:flex-end;flex-direction:column;border-radius:0}.product-content[_ngcontent-%COMP%]{border-radius:0;height:90px;background-color:transparent;background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}@media screen and (max-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:160px}}@media screen and (min-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:165px}}"]})}return n})()},5159:(ft,Ie,C)=>{"use strict";C.d(Ie,{q:()=>oe});var e=C(5879),l=C(8637),D=C(30),I=C(1662),S=C(6945),w=C(6814),n=C(8468);function Z(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",7),e.TgZ(2,"span",8),e._uU(3),e.qZA()()}if(2&ce){const Re=e.oxw(2).$implicit,mt=e.oxw();e.xp6(1),e.s9C("src",Re.img,e.LSH),e.xp6(2),e.Oqu(mt.firstWord(Re.title))}}function ee(ce,_e){1&ce&&e._UZ(0,"img",12),2&ce&&e.s9C("src",_e.$implicit,e.LSH)}function re(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",7),e.TgZ(2,"span",8),e._uU(3),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,ee,1,1,"img",11),e.qZA()()}if(2&ce){const Re=e.oxw(2).$implicit,mt=e.oxw();e.xp6(1),e.s9C("src",Re.img,e.LSH),e.xp6(2),e.Oqu(mt.firstWord(Re.title)),e.xp6(2),e.Q6J("ngForOf",Re.badges)}}function ue(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",12),e.qZA()}if(2&ce){const Re=e.oxw(2).$implicit;e.xp6(1),e.s9C("src",Re.img,e.LSH)}}function se(ce,_e){if(1&ce&&(e.YNc(0,Z,4,2,"div",3),e.YNc(1,re,6,3,"div",4),e.YNc(2,ue,2,1,"div",5)),2&ce){const Re=e.oxw(2);e.Q6J("ngIf","reviewers"===Re.design),e.xp6(1),e.Q6J("ngIf","achievements"===Re.design),e.xp6(1),e.Q6J("ngIf","youtube-reviews"===Re.design)}}function te(ce,_e){1&ce&&e.YNc(0,se,3,3,"ng-template",2)}let oe=(()=>{class ce extends l.H{constructor(Re,mt,Ge){super(Re,mt,Ge),this.carouselOptions={loop:!0,items:4,smartSpeed:500,autoplay:!1,autoWidth:!0,margin:10,nav:!1,dots:!1,responsive:{0:{items:5},480:{items:5},600:{items:7},800:{items:8},1200:{items:10}}},this.items=[],this.design="reviewers",this.itemClick=new e.vpe}componentName(){return"SmallCarouselComponent"}ngOnInit(){}onItemClick(Re){this.itemClick.emit(Re)}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(D.Y),e.Y36(I.F0),e.Y36(S.z))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["app-small-carousel"]],inputs:{items:"items",design:"design"},outputs:{itemClick:"itemClick"},features:[e.qOj],decls:2,vars:2,consts:[[3,"options"],[4,"ngFor","ngForOf"],["carouselSlide",""],["class","item single-reviewers-area text-center small-carousel",3,"click",4,"ngIf"],["class","item single-reviewers-area text-center small-carousel mb-5",3,"click",4,"ngIf"],["class","item youtube-reviews single-review-area text-center",3,"click",4,"ngIf"],[1,"item","single-reviewers-area","text-center","small-carousel",3,"click"],["alt","",1,"carousel-img",3,"src"],[1,"user-name"],[1,"item","single-reviewers-area","text-center","small-carousel","mb-5",3,"click"],[1,"acchievement-rating","my-2"],["alt","",3,"src",4,"ngFor","ngForOf"],["alt","",3,"src"],[1,"item","youtube-reviews","single-review-area","text-center",3,"click"]],template:function(mt,Ge){1&mt&&(e.TgZ(0,"owl-carousel-o",0),e.YNc(1,te,1,0,null,1),e.qZA()),2&mt&&(e.Q6J("options",Ge.carouselOptions),e.xp6(1),e.Q6J("ngForOf",Ge.items))},dependencies:[w.sg,w.O5,n.Fy,n.Mp],styles:[".carousel-img[_ngcontent-%COMP%]{height:100%}.acchievement-rating[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:25px}.acchievement-rating[_ngcontent-%COMP%]{display:flex;justify-content:center}.small-carousel[_ngcontent-%COMP%]{margin-bottom:30px}.user-name[_ngcontent-%COMP%]{display:block;max-width:64px;justify-content:center}"]})}return ce})()},2177:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>$e});var e=C(8637),l=C(7259),D=C(8914),I=C(2739),S=C(553),w=C(5879),n=C(8480),Z=C(5462),ee=C(30),re=C(1662),ue=C(6945),se=C(1081),te=C(9491),oe=C(2951),ce=C(6593),_e=C(6814),Re=C(4736),mt=C(5159),Ge=C(2498),Lt=C(7613),je=C(8468),Tt=C(9029);function xt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-single-product-item",3),w.NdJ("onClick",function(){w.CHM(he);const rt=w.oxw().$implicit,bt=w.oxw();return w.KtG(bt.onItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw().$implicit;w.Q6J("product",he)}}function St(me,tt){1&me&&w.YNc(0,xt,1,1,"ng-template",2)}let Zt=(()=>{class me{constructor(){this.carouselOptions={loop:!1,items:6,smartSpeed:500,autoplay:!1,autoWidth:!1,margin:0,nav:!1,dots:!1,stagePadding:10,responsive:{0:{items:2,stagePadding:10},480:{items:2,stagePadding:20},576:{items:3},600:{items:3},800:{items:5},1200:{items:6}}},this.items=[],this.itemClick=new w.vpe}ngOnInit(){}onItemClick(he){this.itemClick.emit(he)}takeOnly(he){return he.length<25?he:Lt.m.takeOnly(he,25)+".."}static#e=this.\u0275fac=function(Ze){return new(Ze||me)};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-product-carousel"]],inputs:{items:"items"},outputs:{itemClick:"itemClick"},decls:2,vars:2,consts:[[3,"options"],[4,"ngFor","ngForOf"],["carouselSlide",""],[3,"product","onClick"]],template:function(Ze,rt){1&Ze&&(w.TgZ(0,"owl-carousel-o",0),w.YNc(1,St,1,0,null,1),w.qZA()),2&Ze&&(w.Q6J("options",rt.carouselOptions),w.xp6(1),w.Q6J("ngForOf",rt.items))},dependencies:[_e.sg,je.Fy,je.Mp,Tt.d],styles:[".single-product-area[_ngcontent-%COMP%]{object-fit:cover;background-size:cover;display:flex;justify-content:flex-end;flex-direction:column;border-radius:0}.product-content[_ngcontent-%COMP%]{min-height:108px;border-radius:0;background-color:transparent;background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}@media screen and (max-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:160px}}@media screen and (min-width: 400px){.single-product-area[_ngcontent-%COMP%]{min-height:300px}}"]})}return me})();function yt(me,tt){1&me&&w._UZ(0,"util-progress")}function un(me,tt){if(1&me&&(w.TgZ(0,"div"),w._uU(1," No Items for period: "),w._UZ(2,"br"),w._uU(3),w.qZA()),2&me){const he=w.oxw();w.xp6(3),w.hij("",he.period," ")}}function Jt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-product-carousel",12),w.NdJ("itemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onProductItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("items",he.products)}}const tn=function(me){return{"product-menu-bar":me}};let wn=(()=>{class me extends e.H{constructor(he,Ze,rt,bt,Nt,Qt){super(rt,bt,Nt),this.authService=he,this.notifier=Ze,this.productService=Qt,this.title="",this.attrId=null,this.productsLoaded=new w.vpe,this.products=[],this.period="THIS MONTH",this.showMenubar=!1}componentName(){return"ProductListComponent"}ngOnInit(){let he=I.b.calculateRange("THIS_MONTH");this.fetchTopProducts({attribute_id:this.attrId,from_date:he?.fromDate,to_date:he?.toDate})}onProductItemClick(he){this.navigate("products/"+he.product_id+"/"+he.product_slug,Ze=>{console.log("Product Details: "+he.product_slug)})}onMenuClick(he){this.showMenubar=!this.showMenubar}onMenuItemClick(he){this.showMenubar=!1,this.period=he.replace("_"," ");let Ze=I.b.calculateRange(he);this.fetchTopProducts({attribute_id:this.attrId,from_date:Ze?.fromDate,to_date:Ze?.toDate})}fetchTopProducts(he){this.loading=!0;const Ze=this.componentKey(l.Z.PRODUCTS.PRODUCTS_LOADED(this.attrId));this.productService.fetchTopProducts(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.products=bt.data,this.loading=!1,this.productsLoaded.emit(!0)}),this.subscribe(this.getErrorKey(Ze),null,(rt,bt)=>{this.notifier.log(bt.data)})}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(re.F0),w.Y36(ue.z),w.Y36(Ge.M))};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-product-list"]],inputs:{title:"title",attrId:"attrId"},outputs:{productsLoaded:"productsLoaded"},features:[w.qOj],decls:29,vars:8,consts:[[1,"product-section","pt-4","mb-1"],[1,"container"],[1,"row","align-items-center","mb-3"],[1,"col-7"],[1,"col-5"],[1,"product-header-right","d-flex","justify-content-between"],[3,"click"],[3,"ngClass"],["src","assets/img/FunnelSimple.png","alt","",3,"click"],[1,"productMenuBox"],[4,"ngIf"],[3,"items","itemClick",4,"ngIf"],[3,"items","itemClick"]],template:function(Ze,rt){1&Ze&&(w.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5"),w._uU(5),w.qZA()(),w.TgZ(6,"div",4)(7,"div",5)(8,"h5",6),w.NdJ("click",function(Nt){return rt.onMenuClick(Nt)}),w._uU(9),w.qZA(),w.TgZ(10,"div",7)(11,"img",8),w.NdJ("click",function(Nt){return rt.onMenuClick(Nt)}),w.qZA(),w.TgZ(12,"div",9)(13,"ul")(14,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("TODAY")}),w.TgZ(15,"a"),w._uU(16,"Today"),w.qZA()(),w.TgZ(17,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("THIS_WEEK")}),w.TgZ(18,"a"),w._uU(19,"This Week"),w.qZA()(),w.TgZ(20,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("THIS_MONTH")}),w.TgZ(21,"a"),w._uU(22,"This Month"),w.qZA()(),w.TgZ(23,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("LAST_MONTH")}),w.TgZ(24,"a"),w._uU(25,"Last Month"),w.qZA()()()()()()()(),w.YNc(26,yt,1,0,"util-progress",10),w.YNc(27,un,4,1,"div",10),w.YNc(28,Jt,1,1,"app-product-carousel",11),w.qZA()()),2&Ze&&(w.xp6(5),w.hij("Top items for ",rt.title,""),w.xp6(4),w.Oqu(rt.period),w.xp6(1),w.Q6J("ngClass",w.VKq(6,tn,rt.showMenubar)),w.xp6(16),w.Q6J("ngIf",rt.loading),w.xp6(1),w.Q6J("ngIf",!rt.loading&&0===rt.products.length),w.xp6(1),w.Q6J("ngIf",!rt.loading))},dependencies:[_e.mk,_e.O5,Re.t,Zt],styles:['.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:250px;margin-top:10px;padding:0 10px;list-style:none;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7}.product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return me})();var Ln=C(6929);function Yn(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}function ti(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-menubox",22),w.NdJ("menuItemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onReviewersMenuItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("showMenubar",he.showReviewersMenu)("items",he.getMenuItems())}}function gi(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}const Rn=function(me){return{active:me}};function dt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"li",23),w.NdJ("click",function(){const bt=w.CHM(he).$implicit,Nt=w.oxw();return w.KtG(Nt.loadAttributes([bt]))}),w.TgZ(1,"a",24),w._uU(2),w.qZA()()}if(2&me){const he=tt.$implicit,Ze=w.oxw();w.Q6J("ngClass",w.VKq(2,Rn,Ze.selectedInterestItem===he.id)),w.xp6(2),w.Oqu(he.name)}}function at(me,tt){if(1&me&&w._UZ(0,"app-product-list",25),2&me){const he=tt.$implicit;w.Q6J("title",he.name)("attrId",he.id)}}function Be(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-menubox",22),w.NdJ("menuItemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onAchievementsMenuItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("showMenubar",he.showAchievementsMenu)("items",he.getMenuItems())}}function Ee(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}let $e=(()=>{class me extends e.H{constructor(he,Ze,rt,bt,Nt,Qt,nn,Dn,Ot,rn){super(rt,bt,Nt),this.authService=he,this.notifier=Ze,this.categoryService=Qt,this.reviewService=nn,this.leaderboardService=Dn,this.seoTitle=Ot,this.seoMeta=rn,this.interestsAttrLoading=!0,this.recentReviews=null,this.recentReviewers=[],this.reviewersLoading=!0,this.reviewersPeriod="THIS WEEK",this.showReviewersMenu=!1,this.recentAchievements=null,this.achievements=[],this.achievementsLoading=!0,this.achievementsPeriod="THIS WEEK",this.showAchievementsMenu=!1,this.userInterests=[],this.attributes=[],this.selectedInterestItem=null}componentName(){return"HomeComponent"}ngOnInit(){this.router.navigate(["/admin/dashboard"]).then(Ze=>{}),this.fetchInterests();let he=I.b.calculateRange(this.reviewersPeriod.replace(" ","_"));this.fetchRecentReviews({page:0,from_date:he?.fromDate,to_date:he?.toDate,slice:!0}),this.fetchAchievements({from_date:he?.fromDate,to_date:he?.toDate}),this.resolveSeo()}fetchRecentReviews(he){this.reviewersLoading=!0;let Ze=this.componentKey(l.Z.REVIEWS.FETCH_RECENT_REVIEWS());this.reviewService.fetchRecentReviews(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.recentReviews=bt.data,this.recentReviewers=me.mapToCarouselItems(bt.data),this.reviewersLoading=!1})}fetchAchievements(he){this.achievementsLoading=!0;let Ze=this.componentKey(l.Z.LEADERBOARDS.FETCH_RECENT_ACHIEVEMENTS());this.leaderboardService.fetchRecentAchievements(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.recentAchievements=bt.data,this.achievements=me.mapAchievementsToCarouselItems(bt.data),this.achievementsLoading=!1})}onRecentReviewerItemClick(he){let Ze=this.recentReviews?.content.filter(bt=>bt.id===he.id);if(null==Ze||0===Ze.length)return;let rt=Ze[0];this.navigate("/reviews/"+rt?.product_slug+"/"+rt?.slug+"/"+rt?.post_id,bt=>{})}onRecentAchievementsItemClick(he){let Ze=this.recentAchievements?.content.filter(bt=>bt.id===he.id);null!=Ze&&0!==Ze.length&&this.navigate("/u/"+Ze[0].achieved_by_username,bt=>{})}fetchInterests(){if(!this.authService.isAuthenticated())return void this.fetchRootCategories();let he=this.componentKey(l.Z.CATEGORIES.FETCH_INTERESTS());this.categoryService.fetchInterests(he),this.subscribe(he,null,(Ze,rt)=>{this.userInterests=rt.data.map(Nt=>Nt.category),this.loadAttributes(this.userInterests)})}fetchRootCategories(){let he=this.componentKey(l.Z.CATEGORIES.LOADED_ROOT_CATEGORIES());this.categoryService.loadCategories(he,null,null),this.subscribe(he,null,(Ze,rt)=>{this.userInterests=rt.data.content,this.loadAttributes(this.userInterests)})}loadAttributes(he){this.selectedInterestItem=1==he.length?he[0].id:null;let Ze=he.map(bt=>bt.id),rt=this.componentKey(l.Z.CATEGORIES.LOADED_CATEGORY_ATTRIBUTES(Ze));this.categoryService.loadAttributes(rt,Ze),this.subscribe(rt,null,(bt,Nt)=>{this.attributes=Nt.data,this.interestsAttrLoading=!1}),this.notifier.log("Initiate attributes for interests (unimplemented)")}onSearchBoxClicked(he){this.navigate("/search",Ze=>{})}static mapToCarouselItems(he){return he.content.map(Ze=>({id:Ze?.id,slug:Ze?.slug,title:Ze?.posted_by_name,img:null!=Ze?.posted_by_avatar?Ze?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+Ze.id+"/"+Ze.post_id,badges:[]}))}static mapAchievementsToCarouselItems(he){return he.content.map(Ze=>({id:Ze?.id,slug:"",title:Ze?.badge_name,img:null!=Ze?.achieved_by_avatar?Ze?.achieved_by_avatar:"assets/img/default-avatar.png",url:"/u/"+Ze.achieved_by_username,badges:Array(Ze?.total_badge_count).fill("assets/img/recent-acchievements/rating/badge1.png")}))}getMenuItems(){return D.$}onReviewersMenuItemClick(he){this.showReviewersMenu&&(this.showReviewersMenu=!1),this.reviewersPeriod=he.title;let Ze=I.b.calculateRange(he.code);this.fetchRecentReviews({page:0,from_date:Ze?.fromDate,to_date:Ze?.toDate,slice:!0})}onAchievementsMenuItemClick(he){console.log(he),this.showAchievementsMenu&&(this.showAchievementsMenu=!1),this.achievementsPeriod=he.title;let Ze=I.b.calculateRange(he.code);console.log(Ze?.fromDate),console.log(Ze?.toDate),this.fetchAchievements({from_date:Ze?.fromDate,to_date:Ze?.toDate})}onReviewersMenuClick(){this.showReviewersMenu=!this.showReviewersMenu}onAchievementsMenuClick(){this.showAchievementsMenu=!this.showAchievementsMenu}resolveSeo(){this.initSeoItems(this.seoTitle,this.seoMeta,S.N.app_name,"Blockchain based community oriented product quality assurance platform through review and rating.",[],"index","website","",S.N.app_url)}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(re.F0),w.Y36(ue.z),w.Y36(se.H),w.Y36(te.F),w.Y36(oe.S),w.Y36(ce.Dx),w.Y36(ce.h_))};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-home"]],features:[w.qOj],decls:39,vars:17,consts:[[3,"bar",4,"ngIf"],[1,"search-area",3,"click"],[1,"container"],[1,"search-box","d-flex","justify-content-center"],[1,"search"],["type","text","placeholder","Search for products, jobs anything","name","",1,"search-input"],["href","#",1,"search-icon"],[1,"icon-search"],[1,"reviewers-section","py-2","mt-3"],[1,"reviewers-content","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items","design","itemClick"],[1,"category-area","pt-3","mt-2","scrollable"],[1,"list-inline","list-unstyled"],[1,"list-inline-item",3,"ngClass"],["href","#",3,"click"],["class","list-inline-item",3,"ngClass","click",4,"ngFor","ngForOf"],[3,"title","attrId",4,"ngFor","ngForOf"],[1,"acchievements-section","py-3","mt-3"],[1,"acchievements-content","d-flex","justify-content-between","pb-3",3,"click"],[3,"bar"],[3,"showMenubar","items","menuItemClick"],[1,"list-inline-item",3,"ngClass","click"],["href","#"],[3,"title","attrId"]],template:function(Ze,rt){1&Ze&&(w.YNc(0,Yn,1,1,"util-progress",0),w.TgZ(1,"div")(2,"section",1),w.NdJ("click",function(Nt){return rt.onSearchBoxClicked(Nt)}),w.TgZ(3,"div",2)(4,"div",3)(5,"div",4),w._UZ(6,"input",5),w.TgZ(7,"a",6),w._UZ(8,"i",7),w.qZA()()()()(),w.TgZ(9,"section",8)(10,"div",2)(11,"div",9),w.NdJ("click",function(){return rt.onReviewersMenuClick()}),w.TgZ(12,"h5"),w._uU(13,"RECENT REVIEWERS"),w.qZA(),w.TgZ(14,"h5"),w._uU(15),w.qZA(),w._UZ(16,"img",10),w.qZA(),w.YNc(17,ti,1,2,"app-menubox",11),w.TgZ(18,"app-small-carousel",12),w.NdJ("itemClick",function(Nt){return rt.onRecentReviewerItemClick(Nt)}),w.qZA(),w.YNc(19,gi,1,1,"util-progress",0),w.qZA()(),w.TgZ(20,"section",13)(21,"div",2)(22,"ul",14)(23,"li",15)(24,"a",16),w.NdJ("click",function(){return rt.loadAttributes(rt.userInterests)}),w._uU(25,"All"),w.qZA()(),w.YNc(26,dt,3,4,"li",17),w.qZA()()(),w.YNc(27,at,1,2,"app-product-list",18),w.TgZ(28,"section",19)(29,"div",2)(30,"div",20),w.NdJ("click",function(){return rt.onAchievementsMenuClick()}),w.TgZ(31,"h5"),w._uU(32,"RECENT ACHIEVEMENTS"),w.qZA(),w.TgZ(33,"h5"),w._uU(34),w.qZA(),w._UZ(35,"img",10),w.qZA(),w.YNc(36,Be,1,2,"app-menubox",11),w.TgZ(37,"app-small-carousel",12),w.NdJ("itemClick",function(Nt){return rt.onRecentAchievementsItemClick(Nt)}),w.qZA(),w.YNc(38,Ee,1,1,"util-progress",0),w.qZA()()()),2&Ze&&(w.Q6J("ngIf",rt.interestsAttrLoading),w.xp6(1),w.Q6J("@dataLoaded",rt.interestsAttrLoading?"loading":"loaded"),w.xp6(14),w.Oqu(rt.reviewersPeriod),w.xp6(2),w.Q6J("ngIf",!rt.reviewersLoading),w.xp6(1),w.Q6J("items",rt.recentReviewers)("design","reviewers"),w.xp6(1),w.Q6J("ngIf",rt.reviewersLoading),w.xp6(4),w.Q6J("ngClass",w.VKq(15,Rn,null===rt.selectedInterestItem)),w.xp6(3),w.Q6J("ngForOf",rt.userInterests),w.xp6(1),w.Q6J("ngForOf",rt.attributes),w.xp6(7),w.Oqu(rt.reviewersPeriod),w.xp6(2),w.Q6J("ngIf",!rt.achievementsLoading),w.xp6(1),w.Q6J("items",rt.achievements)("design","achievements"),w.xp6(1),w.Q6J("ngIf",rt.achievementsLoading))},dependencies:[_e.mk,_e.sg,_e.O5,Re.t,mt.q,wn,Ln.v],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.list-inline-item[_ngcontent-%COMP%]{margin-right:1.5rem}.list-group-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#000}.category-area[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1.12em!important}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{height:auto;position:relative}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:40px;width:95%}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:16px;position:absolute;height:auto;width:auto;top:50%;left:12px;margin-top:-9px;display:inline-block}.reviewers-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#44d62c;letter-spacing:.05em}"]})}return me})()},1081:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}searchCategories(ue,se){this.http.get(l.e.CATEGORIES.SEARCH(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.notifier.log(te)})}loadCategories(ue,se,te){null==te&&(te=""),this.http.get(l.e.CATEGORIES.SEARCH(null==se?{q:te}:{parent_id:se,q:te})).subscribe(ce=>{this.eventBusService.publish(ue,ce)},ce=>{this.notifier.log(ce)})}saveInterests(ue,se){let te=se.map(oe=>oe.id);this.http.post(l.e.CATEGORIES.SAVE_INTERESTS(),{category_ids:te}).subscribe(oe=>{this.eventBusService.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.saveInterests(ue,se)},ce=>{this.eventBusService.publish(this.getErrorKey(ue),ce)})})}fetchInterests(ue){this.http.get(l.e.CATEGORIES.FETCH_INTERESTS()).subscribe(se=>{this.eventBusService.publish(ue,se)},se=>{this.notifier.log(se)})}loadAttributes(ue,se){this.http.get(l.e.CATEGORIES.FETCH_ATTRIBUTES({category_ids:se})).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.notifier.log(te)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},2498:(ft,Ie,C)=>{"use strict";C.d(Ie,{M:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}search(ue,se){this.http.get(l.e.PRODUCTS.SEARCH(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.search(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}searchBrands(ue,se){this.http.get(l.e.PRODUCTS.SEARCH_BRANDS(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.searchBrands(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchTopProducts(ue,se){this.http.get(l.e.PRODUCTS.GET_TOP_PRODUCTS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchTopProducts(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchDetails(ue,se){this.http.get(l.e.PRODUCTS.GET_DETAILS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchDetails(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchAvgRatings(ue,se){this.http.get(l.e.REVIEWS.FETCH_AVG_RATINGS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchAvgRatings(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9491:(ft,Ie,C)=>{"use strict";C.d(Ie,{F:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchRecentReviews(ue,se){this.http.get(l.e.REVIEWS.FETCH_RECENT_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchRecentReviews(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}loadReviewAttributes(ue,se){this.notifier.log("Loading attrs for product: "+se),this.http.get(l.e.ATTRIBUTES.GET_ATTRS_FOR_PRODUCT(se,{})).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.loadReviewAttributes(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}createReview(ue,se){this.http.post(l.e.REVIEWS.CREATE_REVIEW({}),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.createReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}updateReview(ue,se,te){this.http.patch(l.e.REVIEWS.UPDATE_REVIEW(se,{}),te).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.updateReview(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}fetchMyReview(ue,se){this.http.get(l.e.REVIEWS.FETCH_MY_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchMyReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}fetchReview(ue,se,te){return this.http.get(l.e.REVIEWS.FETCH_REVIEW(se,te)).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchReview(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})}),ue}fetchProductReviews(ue,se,te){this.http.get(l.e.REVIEWS.FETCH_PRODUCT_REVIEWS(se,te),{}).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchProductReviews(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}fetchUserReviews(ue,se,te){this.http.get(l.e.REVIEWS.FETCH_USER_REVIEWS(se,te),{}).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchUserReviews(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}verifyReview(ue,se){this.http.post(l.e.REVIEWS.SEND_VERIFICATION_REQUEST(),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.verifyReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}getVerificationForReview(ue,se){this.http.get(l.e.REVIEWS.GET_VERIFICATION_FOR_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.getVerificationForReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}reconsiderVerification(ue,se){this.http.patch(l.e.REVIEWS.RECONSIDER_VERIFICATION(se),null).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.reconsiderVerification(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},1259:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>I});var e=C(2495),l=C(553),D=C(5879);class I extends e.O{constructor(){super()}static#e=this.CATEGORIES={SEARCH:w=>l.N.base_url+"/api/v1/public/categories"+e.O.toParamString(w),SAVE_INTERESTS:()=>l.N.base_url+"/api/v1/user-interests",FETCH_INTERESTS:()=>l.N.base_url+"/api/v1/user-interests/my-interests",FETCH_ATTRIBUTES:w=>l.N.base_url+"/api/v1/public/categories/attributes"+e.O.toParamString(w)};static#t=this.PRODUCTS={SEARCH:w=>l.N.base_url+"/api/v1/public/products"+e.O.toParamString(w),SEARCH_BRANDS:w=>l.N.base_url+"/api/v1/public/brands"+e.O.toParamString(w),GET_TOP_PRODUCTS:w=>l.N.base_url+"/api/v1/public/ratings/top-rated-products"+e.O.toParamString(w),GET_DETAILS:w=>l.N.base_url+"/api/v2/public/products/"+w};static#n=this.VENDORS={SEARCH:w=>l.N.base_url+"/api/v1/public/vendors"+e.O.toParamString(w)};static#i=this.ATTRIBUTES={GET_ATTRS_FOR_PRODUCT:(w,n)=>l.N.base_url+"/api/v1/public/products/"+w+"/attributes"+e.O.toParamString(n)};static#r=this.REVIEWS={FETCH_RECENT_REVIEW:w=>l.N.base_url+"/api/v1/public/reviews/recent-reviews"+e.O.toParamString(w),CREATE_REVIEW:w=>l.N.base_url+"/api/v1/reviews"+e.O.toParamString(w),UPDATE_REVIEW:(w,n)=>l.N.base_url+"/api/v1/reviews/"+w+e.O.toParamString(n),FETCH_MY_REVIEW:w=>l.N.base_url+"/api/v1/products/"+w+"/my-review",FETCH_REVIEW:(w,n)=>l.N.base_url+"/api/v2/public/"+w+"/reviews/"+n,FETCH_PRODUCT_REVIEWS:(w,n)=>l.N.base_url+"/api/v1/public/products/"+w+"/reviews"+e.O.toParamString(n),FETCH_USER_REVIEWS:(w,n)=>l.N.base_url+"/api/v1/public/users/"+w+"/reviews"+e.O.toParamString(n),FETCH_AVG_RATINGS:w=>l.N.base_url+"/api/v1/public/products/"+w+"/avg_ratings",SEND_VERIFICATION_REQUEST:()=>l.N.base_url+"/api/v1/review-verifications",GET_VERIFICATION_FOR_REVIEW:w=>l.N.base_url+"/api/v1/public/reviews/"+w+"/verification",RECONSIDER_VERIFICATION:w=>l.N.base_url+"/api/v1/review-verifications/"+w+"/apply-for-reconsideration"};static#o=this.POSTS={FETCH_COMMENTS:(w,n)=>l.N.base_url+"/api/v1/social/posts/"+w+"/comments"+e.O.toParamString(n),SUBMIT_POST:()=>l.N.base_url+"/api/v1/social/posts",UPDATE_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,DELETE_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,REACT_TO_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w+"/reactions",FETCH_NEWS_FEED_POSTS:w=>l.N.base_url+"/api/v1/social/posts"+e.O.toParamString(w),FETCH_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,FETCH_POST_REACTIONS:(w,n)=>l.N.base_url+"/api/v1/social/posts/"+w+"/reactions"+e.O.toParamString(n),FETCH_REACTIONS:w=>l.N.base_url+"/api/v1/social/reactions"+e.O.toParamString(w),FETCH_USER_POSTS:(w,n)=>l.N.base_url+"/api/v1/public/social/users/"+w+"/posts"+e.O.toParamString(n),FETCH_TRENDING_TAGS:w=>l.N.base_url+"/api/v1/public/social/posts/trending-tags"+e.O.toParamString(w),POST_REVIEW_REPORT:()=>l.N.base_url+"/api/v1/report-reviews",GET_REPORT_DETAILS_FOR_POST:w=>l.N.base_url+"/api/v1/report-reviews/my-reports/for-post/"+w,GET_REPORT_COUNT_FOR_POST:w=>l.N.base_url+"/api/v1/report-reviews/my-reports/for-post/"+w+"/count"};static#s=this.NOTIFICATIONS={COUNT_UNREAD:w=>l.N.base_url+"/api/v1/notifications/unread/count"+e.O.toParamString(w),MARK_READ:w=>l.N.base_url+"/api/v1/notifications/mark-read"+e.O.toParamString(w),FETCH_MY_NOTIFICATIONS:w=>l.N.base_url+"/api/v1/my-notifications"+e.O.toParamString(w),DELETE:()=>l.N.base_url+"/api/v1/notifications/"};static#a=this.LEADERBOARDS={FETCH_LEADERBOARD:w=>l.N.base_url+"/api/v1/leaderboards/"+w+"/leaderboard",REDEEM:()=>l.N.base_url+"/api/v1/redeems",FETCH_RECENT_ACHIEVEMENTS:w=>l.N.base_url+"/api/v1/public/latest-achievements"+e.O.toParamString(w)};static#l=this.WALLET={FETCH_MY_WALLET:w=>l.N.base_url+"/api/v1/my-wallet"+e.O.toParamString(w),FETCH_USER_WALLET:(w,n)=>l.N.base_url+"/api/v1/admin/wallets/user-wallet/"+w+"/"+e.O.toParamString(n)};static#c=this.USER={FETCH_FOLLOW_STATS:w=>l.N.base_url+"/api/v1/follows/"+w+"/stats",FOLLOW_A_USER:w=>l.N.base_url+"/api/v1/follows/follow/"+w,UNFOLLOW_A_USER:w=>l.N.base_url+"/api/v1/follows/unfollow/"+w,GET_MY_FOLLOWERS:()=>l.N.base_url+"/api/v1/follows/my-followers",GET_MY_FOLLOWING:()=>l.N.base_url+"/api/v1/follows/following",GET_MY_PROFILE:()=>l.N.base_url+"/api/v1/my-profile",UPDATE_MY_PROFILE:()=>l.N.base_url+"/api/v1/my-profile",DELETE_ME:()=>l.N.base_url+"/api/v1/users/delete-me",SEARCH:w=>l.N.base_url+"/api/v1/admin/users"+e.O.toParamString(w)};static#d=this.ACTIVITY_LOGS={ADMIN_SEARCH:w=>l.N.base_url+"/api/v1/admin/activity-logs"+e.O.toParamString(w)};static#u=this.REQUEST_CREDENTIALS={ADMIN_SEARCH_LOCKOUTS:w=>l.N.base_url+"/api/v1/admin/request-credentials/lockouts"+e.O.toParamString(w)};static#h=this.QUESTIONNAIRES={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/questionnaires",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/questionnaires",SEARCH:(w,n)=>w+e.O.toParamString(n),GET_DETAILS:w=>l.N.base_url+"/api/v1/questionnaires/"+w,DELETE:()=>l.N.base_url+"/api/v1/questionnaires/",CREATE:()=>l.N.base_url+"/api/v1/questionnaires",UPDATE:w=>l.N.base_url+"/api/v1/questionnaires/"+w,TOGGLE_APPROVAL:(w,n)=>l.N.base_url+"/api/v1/questionnaires/"+w+"/toggle-approval"+e.O.toParamString(n),RESULT_SHEET:w=>l.N.base_url+"/api/v1/questionnaires/"+w+"/result-sheet"};static#f=this.POLLS={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/polls",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/polls",SEARCH:(w,n)=>w+e.O.toParamString(n),GET_DETAILS:w=>l.N.base_url+"/api/v1/polls/"+w,CREATE:()=>l.N.base_url+"/api/v1/polls",DELETE:()=>l.N.base_url+"/api/v1/polls/",UPDATE:w=>l.N.base_url+"/api/v1/polls/"+w};static#p=this.VOTES={SEARCH:w=>l.N.base_url+"/api/v1/admin/votes"+e.O.toParamString(w),FETCH_USER_VOTE_STATS:w=>l.N.base_url+"/api/v1/admin/votes/user-vote-count-stats"+e.O.toParamString(w),FETCH_POLL_VOTE_STATS:w=>l.N.base_url+"/api/v1/admin/votes/poll-vote-count-stats"+e.O.toParamString(w)};static#_=this.POLL_STATISTICS={OVERVIEW_STATS_ENDPOINT:l.N.base_url+"/api/v1/poll-stats/overview",OVERVIEW_STATS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-stats/overview",DATE_WISE_POLL_COUNTS_ENDPOINT:l.N.base_url+"/api/v1/poll-stats/date-wise-poll-counts",DATE_WISE_POLL_COUNTS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-stats/date-wise-poll-counts",OVERVIEW_STATS:(w,n)=>w+e.O.toParamString(n),DATE_WISE_POLL_COUNTS:(w,n)=>w+e.O.toParamString(n)};static#m=this.POLL_OPTIONS={SEARCH:w=>l.N.base_url+"/api/v1/poll-options"+e.O.toParamString(w),CREATE:()=>l.N.base_url+"/api/v1/poll-options",DELETE:()=>l.N.base_url+"/api/v1/poll-options/",UPDATE:w=>l.N.base_url+"/api/v1/poll-options/"+w};static#g=this.LABELS={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/labels",SEARCH_ENDPOINT_FOR_POLLBOX:l.N.base_url+"/api/v1/public/labels/POLLBOX/children",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/labels",SEARCH:(w,n)=>w+e.O.toParamString(n),CREATE:()=>l.N.base_url+"/api/v1/labels",UPDATE:w=>l.N.base_url+"/api/v1/labels/"+w};static#v=this.\u0275fac=function(n){return new(n||I)};static#b=this.\u0275prov=D.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}},9310:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{WebAppModule:()=>Id});var e=C(6814),l=C(1662),D=C(2177),I=C(8637),S=C(7259),w=C(7613),n=C(5879),Z=C(6223),ee=function(F){return F.RATING="RATING",F.PROVOKE_REVIEW="PROVOKE_REVIEW",F.REVIEW="REVIEW",F.PROVOKE_IMAGE_UPLOAD="PROVOKE_IMAGE_UPLOAD",F.IMAGE_UPLOAD="IMAGE_UPLOAD",F.FINISHED_DIALOG="FINISHED_DIALOG",F.SUBMIT_ERROR="SUBMIT_ERROR",F}(ee||{}),re=C(30),ue=C(6945),se=C(9491),te=C(5462),oe=C(8214),ce=C(2951),_e=C(8480),Re=C(7700),mt=C(2296),Ge=C(4736);function Lt(F,Xe){if(1&F&&n._UZ(0,"img",5),2&F){const g=n.oxw();n.s9C("src",g.img,n.LSH)}}function je(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",10)(1,"button",11),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onBtnClick(!1))}),n._uU(2),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(2),n.Oqu(g.negativeBtnTxt)}}function Tt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"a",12),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onBtnClick(!0))}),n._uU(1),n.qZA()}if(2&F){const g=n.oxw(2);n.xp6(1),n.Oqu(g.positiveBtnText)}}function xt(F,Xe){if(1&F&&(n.TgZ(0,"section",6)(1,"div",7),n.YNc(2,je,3,1,"div",8),n.YNc(3,Tt,2,1,"a",9),n.qZA()()),2&F){const g=n.oxw();n.xp6(2),n.Q6J("ngIf",null!=g.negativeBtnTxt),n.xp6(1),n.Q6J("ngIf",null!=g.positiveBtnText)}}let St=(()=>{class F{constructor(){this.step=2,this.img=null,this.title="",this.message="",this.positiveBtnText=null,this.negativeBtnTxt=null,this.titleColor="#44d62c",this.msgColor="#FFFFFF",this.onPositiveBtn=new n.vpe,this.onNegativeBtn=new n.vpe}ngOnInit(){}onBtnClick(g){g?this.onPositiveBtn.emit():this.onNegativeBtn.emit()}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-notice-view"]],inputs:{step:"step",img:"img",title:"title",message:"message",positiveBtnText:"positiveBtnText",negativeBtnTxt:"negativeBtnTxt",titleColor:"titleColor",msgColor:"msgColor"},outputs:{onPositiveBtn:"onPositiveBtn",onNegativeBtn:"onNegativeBtn"},decls:10,vars:10,consts:[[1,"notification-area","review-rdi","pb-4"],[1,"notify-image-area","text-center"],["alt","describe img","class","img-scale-half",3,"src",4,"ngIf"],[1,"notify-content"],["class","call-to-ac-area review-ro pb-3",4,"ngIf"],["alt","describe img",1,"img-scale-half",3,"src"],[1,"call-to-ac-area","review-ro","pb-3"],[1,"container","d-flex","justify-content-around","align-items-center"],["class","skip-btn",4,"ngIf"],["class","boxed-btn",3,"click",4,"ngIf"],[1,"skip-btn"],[3,"click"],[1,"boxed-btn",3,"click"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1),n.YNc(2,Lt,1,1,"img",2),n.TgZ(3,"p"),n._uU(4),n.qZA()(),n.TgZ(5,"div",3),n._UZ(6,"h2"),n.TgZ(7,"p"),n._uU(8),n.qZA()()(),n.YNc(9,xt,4,2,"section",4)),2&L&&(n.xp6(2),n.Q6J("ngIf",null!=R.img),n.xp6(1),n.Jzz("color: ",R.titleColor,";"),n.xp6(1),n.Oqu(R.title),n.xp6(3),n.Jzz("color: ",R.msgColor,";"),n.xp6(1),n.Oqu(R.message),n.xp6(1),n.Q6J("ngIf",null!=R.positiveBtnText||null!=R.negativeBtnTxt))},dependencies:[e.O5],styles:['@charset "UTF-8";.img-scale-half[_ngcontent-%COMP%]{transform:scale(.5);filter:progid:DXImageTransform.Microsoft.Matrix(M11=.9999619230641713,M12=-.008726535498373935,M21=.008726535498373935,M22=.9999619230641713,SizingMethod="auto expand")}']})}return F})();function Zt(F,Xe){1&F&&n._UZ(0,"util-progress",10),2&F&&n.Q6J("padding",50)}function yt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",21)(1,"div",22)(2,"div",23)(3,"button",24),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.updateRating(!0,ye.id))}),n._UZ(4,"i",25),n.qZA(),n._UZ(5,"input",26),n.TgZ(6,"button",24),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.updateRating(!1,ye.id))}),n._UZ(7,"i",27),n.qZA()(),n.TgZ(8,"p"),n._UZ(9,"i",28),n.qZA(),n.TgZ(10,"h5"),n._uU(11),n.qZA()()()}if(2&F){const g=Xe.$implicit;n.xp6(5),n.Q6J("formControlName",g.id),n.xp6(6),n.Oqu(g.name)}}function un(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",11)(1,"div",12)(2,"div",13)(3,"div",14)(4,"div",15)(5,"div",16)(6,"h5",17),n._uU(7,"AVG RATING"),n.qZA(),n.TgZ(8,"h2"),n._uU(9),n.qZA()()(),n.YNc(10,yt,12,2,"div",18),n.qZA()(),n.TgZ(11,"button",19),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("PROVOKE_REVIEW"))}),n._UZ(12,"i",20),n._uU(13," done "),n.qZA()()()}if(2&F){const g=n.oxw(3);n.xp6(9),n.Oqu(g.calculateAverageRating()),n.xp6(1),n.Q6J("ngForOf",g.attrs)}}function Jt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notice-view",29),n.NdJ("onPositiveBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("REVIEW"))})("onNegativeBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n.qZA()}2&F&&n.Q6J("img","assets/img/review-rating-only-images/reviews.png")("title","You can earn 3 more points!")("message","If you write your experience and thought about this product in short, you can earn 5 more points. This will take just a minute.")("positiveBtnText","ADD REVIEW")("negativeBtnTxt","JUST SUBMIT RATING")}function tn(F,Xe){if(1&F&&(n.TgZ(0,"div",58)(1,"h5"),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",39),n.qZA()()),2&F){const g=Xe.$implicit,L=n.oxw(4);n.xp6(2),n.Oqu(g.name),n.xp6(2),n.Oqu(L.getRatingForAttr(g.id))}}function wn(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Name must be at least 4 characters!"),n.qZA()())}function Ln(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Must not be empty or above 511 characters"),n.qZA()())}function Yn(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Must not be empty or above 511 characters"),n.qZA()())}function ti(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"header",30)(2,"div",31)(3,"div",32)(4,"h2"),n._uU(5,"Your Ratings"),n.qZA()(),n.TgZ(6,"div",33)(7,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.editRating())}),n._UZ(8,"i",35),n._uU(9," edit"),n.qZA()()()(),n.TgZ(10,"section",36)(11,"div",37)(12,"div",38)(13,"div",16)(14,"h5"),n._uU(15,"Avg Rating"),n.qZA(),n.TgZ(16,"p"),n._uU(17),n._UZ(18,"i",39),n.qZA()(),n.YNc(19,tn,6,2,"div",40),n.qZA()()(),n.TgZ(20,"div",41)(21,"div",37)(22,"div",42)(23,"h4",17),n._uU(24,"REVIEW TITLE"),n.qZA(),n.TgZ(25,"div",43)(26,"div",44)(27,"label",45),n._uU(28,"A nice title makes your review interesting."),n.qZA(),n._UZ(29,"textarea",46),n.qZA()(),n.YNc(30,wn,3,0,"div",47),n.qZA(),n.TgZ(31,"div",48)(32,"h4",17),n._uU(33,"POSITIVE EXPERIENCE"),n.qZA(),n.TgZ(34,"div",43)(35,"div",44)(36,"label",49),n._uU(37,"Write your positive experience with this item."),n.qZA(),n._UZ(38,"textarea",50),n.qZA()(),n.YNc(39,Ln,3,0,"div",47),n.qZA(),n.TgZ(40,"div",51)(41,"h4",17),n._uU(42,"NEGATIVE EXPERIENCE"),n.qZA(),n.TgZ(43,"div",52)(44,"div",44)(45,"label",53),n._uU(46,"If you had any negative experience with this item, please feel free to mention here"),n.qZA(),n._UZ(47,"textarea",54),n.qZA()(),n.YNc(48,Yn,3,0,"div",47),n.qZA(),n.TgZ(49,"div",55)(50,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.prevStep("PROVOKE_REVIEW"))}),n._uU(51,"BACK"),n.qZA(),n._uU(52,"\xa0\xa0 "),n.TgZ(53,"button",56),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("PROVOKE_IMAGE_UPLOAD"))}),n._UZ(54,"i",57),n._uU(55," SUBMIT "),n.qZA()()()()()}if(2&F){const g=n.oxw(3);n.xp6(17),n.Oqu(g.calculateAverageRating()),n.xp6(2),n.Q6J("ngForOf",g.attrs),n.xp6(11),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.title)),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.pros)),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.cons)),n.xp6(5),n.Q6J("disabled",g.postReviewForm.invalid)}}function gi(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notice-view",29),n.NdJ("onPositiveBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("IMAGE_UPLOAD"))})("onNegativeBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n.qZA()}2&F&&n.Q6J("img","assets/img/review-r-d-page/describe.png")("title","Wonderful! want 5 more points?")("message","Adding an image with your review makes it more attractive and trustworthy. You'll get 5 more points and also a chance to verify your review.")("positiveBtnText","UPLOAD")("negativeBtnTxt","JUST SUBMIT")}function Rn(F,Xe){if(1&F&&(n.TgZ(0,"div",58)(1,"h5"),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",39),n.qZA()()),2&F){const g=Xe.$implicit,L=n.oxw(4);n.xp6(2),n.Oqu(g.name),n.xp6(2),n.Oqu(L.getRatingForAttr(g.id))}}function dt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",67),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.removeExImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit,n.LSH)}function at(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",67),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Be(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"header",30)(2,"div",31)(3,"div",32)(4,"h2"),n._uU(5,"Your Ratings"),n.qZA()(),n.TgZ(6,"div",33)(7,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.editRating())}),n._UZ(8,"i",35),n._uU(9," edit"),n.qZA()()()(),n.TgZ(10,"section",36)(11,"div",37)(12,"div",38)(13,"div",16)(14,"h5"),n._uU(15,"Avg Rating"),n.qZA(),n.TgZ(16,"p"),n._uU(17),n._UZ(18,"i",39),n.qZA()(),n.YNc(19,Rn,6,2,"div",40),n.qZA()()(),n.TgZ(20,"section",60)(21,"div",37)(22,"h4",17),n._uU(23,"UPLOAD IMAGES"),n.qZA(),n.TgZ(24,"div",61)(25,"div"),n.YNc(26,dt,1,1,"img",62),n.YNc(27,at,1,1,"img",62),n.qZA(),n.TgZ(28,"label",63),n._UZ(29,"i",64),n.qZA(),n.TgZ(30,"input",65),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(3);return n.KtG(ye.onImageSelected(R))}),n.qZA()()(),n.TgZ(31,"div",55)(32,"button",66),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n._UZ(33,"i",57),n._uU(34," finish "),n.qZA()()()()}if(2&F){const g=n.oxw(3);n.xp6(17),n.Oqu(g.calculateAverageRating()),n.xp6(2),n.Q6J("ngForOf",g.attrs),n.xp6(7),n.Q6J("ngForOf",g.review.thumbs),n.xp6(1),n.Q6J("ngForOf",g.uploadFiles)}}function Ee(F,Xe){if(1&F&&(n.TgZ(0,"form",7),n.YNc(1,Zt,1,1,"util-progress",8),n.YNc(2,un,14,2,"section",5),n.YNc(3,Jt,1,5,"app-notice-view",9),n.YNc(4,ti,56,6,"div",0),n.YNc(5,gi,1,5,"app-notice-view",9),n.YNc(6,Be,35,4,"div",0),n.qZA()),2&F){const g=n.oxw(2);n.Q6J("formGroup",g.postReviewForm),n.xp6(1),n.Q6J("ngIf",g.ratingLoading),n.xp6(1),n.Q6J("ngIf",g.isStep("RATING")&&!g.ratingLoading),n.xp6(1),n.Q6J("ngIf",g.isStep("PROVOKE_REVIEW")),n.xp6(1),n.Q6J("ngIf",g.isStep("REVIEW")),n.xp6(1),n.Q6J("ngIf",g.isStep("PROVOKE_IMAGE_UPLOAD")),n.xp6(1),n.Q6J("ngIf",g.isStep("IMAGE_UPLOAD"))}}function $e(F,Xe){if(1&F&&(n.TgZ(0,"section",11)(1,"div",37)(2,"div",68),n._UZ(3,"img",69),n.TgZ(4,"p"),n._uU(5),n.qZA()(),n.TgZ(6,"div",70),n._UZ(7,"util-progress",71)(8,"hr"),n.TgZ(9,"h2"),n._uU(10,"A pigeon is carrying your review to us. Give it a bit of time."),n.qZA(),n._UZ(11,"p"),n.qZA()()()),2&F){const g=n.oxw(2);n.xp6(5),n.Oqu(g.reviewSubmitMessage),n.xp6(2),n.Q6J("determinate",!0)("bar",!0)("determinateValue",g.reviewSubmitProgress)}}function me(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",72),2&F){const g=n.oxw(2);n.Q6J("img","assets/img/review-r-d-i-page/achievement.png")("title","Congratulations! You've earned "+g.review.weight+" points.")("message","Your review has been successfully submitted. We thank you for your contributions to help this community out. We love you for your effort.")}}function tt(F,Xe){if(1&F&&(n.TgZ(0,"mat-dialog-content")(1,"div",2),n._UZ(2,"i",3),n.qZA(),n.YNc(3,Ee,7,7,"form",4),n.YNc(4,$e,12,4,"section",5),n.YNc(5,me,1,3,"app-notice-view",6),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("ngIf",0===g.reviewSubmitProgress),n.xp6(1),n.Q6J("ngIf",g.reviewSubmitProgress>0&&g.reviewSubmitProgress<100),n.xp6(1),n.Q6J("ngIf",g.isStep("FINISHED_DIALOG")&&100===g.reviewSubmitProgress)}}function he(F,Xe){if(1&F&&(n.TgZ(0,"mat-dialog-content")(1,"div",2),n._UZ(2,"i",3),n.qZA(),n._UZ(3,"app-notice-view",73),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("img","assets/img/scenario-page-image/idea.png")("title","Something went wrong!")("message",g.errorMsg)("titleColor","#ff042f")}}function Ze(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",74)(1,"button",75),n._uU(2,"Close"),n.qZA()())}let rt=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R),this.reviewService=ye,this.notifier=Dt,this.fileUploadService=Mn,this.leaderboardService=vi,this.auth=Fo,this.productId=0,this.stepDoneNavigateTo=null,this.onReviewPosted=new n.vpe,this.step=ee.RATING,this.attrs=[],this.uploadFiles=[],this.ratingLoading=!0,this.reviewSubmitProgress=0,this.reviewSubmitMessage="Please wait..",this.review={id:null,photos:[],thumbs:[],title:"",pros:"",cons:"",content:"",product_id:0,product_slug:"",ratings:[],weight:null,posted_by_name:null,average_rating:null,created_at:null,updated_at:null,post:null,verification_status:null,verified_by:null,verification_reconsiderable:!1,chained:!1,hash:"",product_name:"",slug:""},this.errorMsg="",this.ratingsFormGroup=new Z.cw({}),this.postReviewForm=new Z.cw({title:new Z.NI(this.review.title,[Z.kI.required,Z.kI.minLength(4)]),pros:new Z.NI(this.review.pros,[Z.kI.required,Z.kI.maxLength(511)]),cons:new Z.NI(this.review.cons,[Z.kI.required,Z.kI.maxLength(511)]),ratings:this.ratingsFormGroup})}componentName(){return"PostReviewComponent"}ngOnInit(){this.initFormState(),this.loadAttrs()}initFormState(){this.postReviewForm.controls.title.setValue(this.review.title),this.postReviewForm.controls.pros.setValue(this.review.pros),this.postReviewForm.controls.cons.setValue(this.review.cons)}nextStep(g){let L=g;L===ee.PROVOKE_IMAGE_UPLOAD&&this.postReviewForm.invalid||(this.step=L,this.notifier.log(this.postReviewForm.value),null!=this.stepDoneNavigateTo&&this.navigateByUrl(this.stepDoneNavigateTo,R=>{}),this.notifier.log("Step "+L+" completed."),this.notifier.log("Step "+(L+1)+" started!"))}prevStep(g){this.step=g}loadAttrs(){let g=this.componentKey(S.Z.ATTRS.ATTR_FOR_PRODUCT_LOADED(this.productId));this.reviewService.loadReviewAttributes(g,this.productId),this.subscribe(g,null,(L,R)=>{this.attrs=R.data,this.initiateReviewForm(this.attrs),this.ratingLoading=!1})}initiateReviewForm(g){g.forEach(L=>{this.ratingsFormGroup.addControl(String(L.id),new Z.NI(this.findRatingForAttr(L.id),Z.kI.required))})}findRatingForAttr(g){let L=this.review.ratings.filter(R=>R.attr_id===g).map(R=>R.value);return 0===L.length?0:L[0]}updateRating(g,L){let R=this.ratingsFormGroup.controls[L].value;if(g){if(R>=10)return void this.ratingsFormGroup.controls[String(L)].setValue(10);this.ratingsFormGroup.controls[String(L)].setValue(++R)}else{if(R<=0)return void this.ratingsFormGroup.controls[String(L)].setValue(0);this.ratingsFormGroup.controls[String(L)].setValue(--R)}}editRating(){this.step=ee.RATING}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Mn=>{let vi=Mn.target?.result;null!=vi&&(R.previewUrl=vi,this.uploadFiles.push(R))}}}initiatePostReview(){if(this.uploadFiles.length>0)return this.progress(20,"Preparing images.."),void this.uploadImages();this.progress(20,"Submitting review.."),this.postReview()}uploadImages(){console.log("uploading images..");let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.productId+"-review-img"));this.fileUploadService.uploadImages(L,g),this.progress(30,"Uploading Images.."),this.subscribe(L,null,(R,ye)=>{let Dt=ye.data;Dt.map(Mn=>Mn.image_url).forEach(Mn=>{this.review.photos.push(Mn)}),Dt.map(Mn=>Mn.thumb_url).forEach(Mn=>{this.review.thumbs.push(Mn)}),this.postReview(),this.progress(50,"Preparing review..")})}progress(g,L){this.reviewSubmitProgress=g,this.reviewSubmitMessage=L}postReview(){this.review.product_id=this.productId,this.review.title=this.postReviewForm.controls.title.value||"",this.review.pros=this.postReviewForm.controls.pros.value||"",this.review.cons=this.postReviewForm.controls.cons.value||"",this.review.ratings=F.prepareRating(this.postReviewForm.value.ratings),this.notifier.log("Submitting review.."),this.submitReview(this.productId,this.review),this.progress(60,"Submitting review..")}submitReview(g,L){let R=this.componentKey(S.Z.REVIEWS.POST_REVIEW(g));null==L.id?this.reviewService.createReview(R,this.review):this.reviewService.updateReview(R,L.id,L),this.subscribe(R,null,(ye,Dt)=>{this.reviewSubmitProgress=100,this.review=Dt.data,this.notifier.log(this.review);let Mn=this.globalKey(S.Z.REVIEWS.MY_REVIEW_POSTED(this.productId));this.eventBus.publish(Mn,this.review),this.nextStep(ee.FINISHED_DIALOG),this.onReviewPosted.emit(this.review),this.fetchLeaderboard()}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{let Mn=Dt.data;403===Mn.status&&(this.nextStep(ee.SUBMIT_ERROR),this.errorMsg=Mn.error.message)})}static prepareRating(g){let L=[];for(let R in g)L.push({attr_id:parseInt(R),attr_name:"",value:g[R],id:null,created_at:null,updated_at:null});return L}calculateAverageRating(){let g=F.prepareRating(this.postReviewForm.value.ratings),L=g.map(ye=>ye.value);return 0==L.length?"0":(L.reduce((ye,Dt)=>ye+Dt)/g.length).toFixed(1)}isStep(g){return this.step===g}fetchLeaderboard(){let g=this.componentKey(S.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.leaderboardService.fetchLeaderboard(g,this.auth.getAuth().username),this.subscribe(g,null,(L,R)=>{let ye=R.data,Dt=this.globalKey(S.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.eventBus.publish(Dt,ye)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}removeExImage(g){let L=this.review.thumbs.indexOf(g);this.review.thumbs.splice(L),this.review.photos.splice(L)}getRatingForAttr(g){return this.ratingsFormGroup.controls[String(g)].value||0}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(te.l),n.Y36(oe.J),n.Y36(ce.S),n.Y36(_e.e))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-review"]],inputs:{productId:"productId",stepDoneNavigateTo:"stepDoneNavigateTo"},outputs:{onReviewPosted:"onReviewPosted"},features:[n.qOj],decls:3,vars:3,consts:[[4,"ngIf"],["align","end",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[3,"formGroup",4,"ngIf"],["class","blog-post-area review-rdo mt-4",4,"ngIf"],[3,"img","title","message",4,"ngIf"],[3,"formGroup"],[3,"padding",4,"ngIf"],[3,"img","title","message","positiveBtnText","negativeBtnTxt","onPositiveBtn","onNegativeBtn",4,"ngIf"],[3,"padding"],[1,"blog-post-area","review-rdo","mt-4"],["formGroupName","ratings",1,"container"],[1,"all-avarage-rating","py-2"],[1,"row","g-4"],[1,"col-12"],[1,"single-rating-star"],[1,"title"],["class","col-6",4,"ngFor","ngForOf"],[1,"boxed-btn","mt-4",3,"click"],[1,"flaticon-checked"],[1,"col-6"],[1,"single-rating-star","d-flex","align-items-center"],[1,"number-input"],[3,"click"],[1,"flaticon-up-arrow-angle"],["min","0","max","10","value","0","type","number",1,"quantity",3,"formControlName"],[1,"flaticon-down-arrow"],[1,"flaticon-star"],[3,"img","title","message","positiveBtnText","negativeBtnTxt","onPositiveBtn","onNegativeBtn"],[1,"header-area","review-rdi"],[1,"container","d-flex","justify-content-between","align-items-center"],[1,"header-left"],[1,"header-right"],[1,"edit-boxed-inline-btn",3,"click"],[1,"flaticon-pen"],[1,"blog-post-area","review-rdi","mt-2"],[1,"container"],[1,"all-avarage-rating","d-flex","py-2","scrollable"],[1,"flaticon-star-1"],["class","single-rating-star col-sm-3 single-rating-star-margin-left",4,"ngFor","ngForOf"],[1,"review-r-d-input-fields"],[1,"pros-area"],[1,"pros-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","title",1,"form-label"],["name","pros","id","title","rows","1","placeholder","Write title","formControlName","title",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"pros-area","mt-4"],["for","pros",1,"form-label"],["name","pros","id","pros","rows","3","placeholder","Write positive experience","formControlName","pros",1,"form-control"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],["for","cons",1,"form-label"],["name","cons","id","cons","rows","3","placeholder","Write negative experience","formControlName","cons",1,"form-control"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[1,"single-rating-star","col-sm-3","single-rating-star-margin-left"],[1,"text-warning"],[1,"upload-img-area","review-rdi","pt-4"],[1,"post-last-step-gallery"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],["type","submit",1,"boxed-btn",3,"click"],["alt","",1,"m-1",3,"src","click"],[1,"notify-image-area","text-center","py-4"],["src","../../../../../../assets/img/review-r-d-i-page/achievement.png","alt","describe img",1,"img-scale-half"],[1,"notify-content"],[3,"determinate","bar","determinateValue"],[3,"img","title","message"],[3,"img","title","message","titleColor"],["align","end"],["mat-button","","mat-dialog-close","","cdkfocusinitial",""]],template:function(L,R){1&L&&(n.YNc(0,tt,6,3,"mat-dialog-content",0),n.YNc(1,he,4,4,"mat-dialog-content",0),n.YNc(2,Ze,3,0,"mat-dialog-actions",1)),2&L&&(n.Q6J("ngIf",!R.isStep("SUBMIT_ERROR")),n.xp6(1),n.Q6J("ngIf",R.isStep("SUBMIT_ERROR")),n.xp6(1),n.Q6J("ngIf",R.isStep("FINISHED_DIALOG")&&100===R.reviewSubmitProgress))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.wV,Z.JJ,Z.JL,Z.qQ,Z.Fd,Z.sg,Z.u,Z.x0,Re.ZT,Re.xY,Re.H8,mt.lW,Ge.t,St],styles:['@charset "UTF-8";.title[_ngcontent-%COMP%]{color:#44d62c;margin:0}textarea[_ngcontent-%COMP%]{border:1px dotted #44d62c}.edit-boxed-inline-btn[_ngcontent-%COMP%]{font-size:13px;height:35px;width:100px}.scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.single-rating-star-margin-left[_ngcontent-%COMP%]{margin-left:20px}.autocomplete-input[_ngcontent-%COMP%]{width:100%}.img-scale-half[_ngcontent-%COMP%]{transform:scale(.5);filter:progid:DXImageTransform.Microsoft.Matrix(M11=.9999619230641713,M12=-.008726535498373935,M21=.008726535498373935,M22=.9999619230641713,SizingMethod="auto expand")}.upload-img-area[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:20px 0}.edit-boxed-inline-btn[_ngcontent-%COMP%]{height:auto}']})}return F})();var bt=C(8914),Nt=C(2739),Qt=C(2498),nn=C(6593),Dn=C(5159),Ot=function(F){return F.LIKE="LIKE",F.LOVE="LOVE",F.HAHA="HAHA",F.WOW="WOW",F.SAD="SAD",F.ANGRY="ANGRY",F}(Ot||{}),rn=C(1547),vn=C(1259),ei=C(9862);let Wn=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}fetchPosts(g,L){this.http.get(vn.e.POSTS.FETCH_NEWS_FEED_POSTS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchPosts(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchPost(g,L){this.http.get(vn.e.POSTS.FETCH_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchPost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchComments(g,L){this.http.get(vn.e.POSTS.FETCH_COMMENTS(L,{})).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchComments(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}submitPost(g,L){this.http.post(vn.e.POSTS.SUBMIT_POST(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.submitPost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}updatePost(g,L){null!=L.id&&this.http.patch(vn.e.POSTS.UPDATE_POST(L.id),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.updatePost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}deletePost(g,L){this.http.delete(vn.e.POSTS.DELETE_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.deletePost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}react(g,L,R){this.http.post(vn.e.POSTS.REACT_TO_POST(L),{post_id:L,reaction_type:R}).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.react(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchPostReactions(g,L,R){this.http.get(vn.e.POSTS.FETCH_POST_REACTIONS(L,R)).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.fetchPostReactions(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchReactions(g,L){this.http.get(vn.e.POSTS.FETCH_REACTIONS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchReactions(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchUserPosts(g,L,R){this.http.get(vn.e.POSTS.FETCH_USER_POSTS(L,R)).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.fetchUserPosts(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchTrendingTags(g,L){this.http.get(vn.e.POSTS.FETCH_TRENDING_TAGS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();var Ve=C(3680),ct=C(8484),Ct=C(7131),Ce=C(4300),J=C(9388),ae=C(7394),Oe=C(8645),ot=C(2438),Se=C(2096),Ft=C(3019),lt=C(6232),Bt=C(5592),Ut=C(4825),fn=C(7921),gn=C(3997),An=C(9773),jn=C(8180),ai=C(4664),di=C(836),oi=C(2181),Jn=C(6825),qt=C(2605),_t=C(6672),G=C(2831),U=C(6028);function ve(F,Xe){}const Pe=function(F){return{animationDuration:F}},ut=function(F,Xe){return{value:F,params:Xe}};function We(F,Xe){1&F&&n.Hsn(0)}const ze=["*"],be=["tabListContainer"],Te=["tabList"],He=["tabListInner"],Wt=["nextPaginator"],Pn=["previousPaginator"],wt=["tabBodyWrapper"],Yt=["tabHeader"];function fe(F,Xe){}function Mt(F,Xe){if(1&F&&n.YNc(0,fe,0,0,"ng-template",14),2&F){const g=n.oxw().$implicit;n.Q6J("cdkPortalOutlet",g.templateLabel)}}function Vt(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw().$implicit;n.Oqu(g.textLabel)}}function ht(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6,7),n.NdJ("click",function(){const R=n.CHM(g),ye=R.$implicit,Dt=R.index,Mn=n.oxw(),vi=n.MAs(1);return n.KtG(Mn._handleClick(ye,vi,Dt))})("cdkFocusChange",function(R){const Dt=n.CHM(g).index,Mn=n.oxw();return n.KtG(Mn._tabFocusChanged(R,Dt))}),n._UZ(2,"span",8)(3,"div",9),n.TgZ(4,"span",10)(5,"span",11),n.YNc(6,Mt,1,1,"ng-template",12),n.YNc(7,Vt,1,1,"ng-template",null,13,n.W1O),n.qZA()()()}if(2&F){const g=Xe.$implicit,L=Xe.index,R=n.MAs(1),ye=n.MAs(8),Dt=n.oxw();n.ekj("mdc-tab--active",Dt.selectedIndex===L),n.Q6J("id",Dt._getTabLabelId(L))("ngClass",g.labelClass)("disabled",g.disabled)("fitInkBarToContent",Dt.fitInkBarToContent),n.uIk("tabIndex",Dt._getTabIndex(L))("aria-posinset",L+1)("aria-setsize",Dt._tabs.length)("aria-controls",Dt._getTabContentId(L))("aria-selected",Dt.selectedIndex===L)("aria-label",g.ariaLabel||null)("aria-labelledby",!g.ariaLabel&&g.ariaLabelledby?g.ariaLabelledby:null),n.xp6(3),n.Q6J("matRippleTrigger",R)("matRippleDisabled",g.disabled||Dt.disableRipple),n.xp6(3),n.Q6J("ngIf",g.templateLabel)("ngIfElse",ye)}}function st(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-tab-body",15),n.NdJ("_onCentered",function(){n.CHM(g);const R=n.oxw();return n.KtG(R._removeTabBodyWrapperHeight())})("_onCentering",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye._setTabBodyWrapperHeight(R))}),n.qZA()}if(2&F){const g=Xe.$implicit,L=Xe.index,R=n.oxw();n.ekj("mat-mdc-tab-body-active",R.selectedIndex===L),n.Q6J("id",R._getTabContentId(L))("ngClass",g.bodyClass)("content",g.content)("position",g.position)("origin",g.origin)("animationDuration",R.animationDuration)("preserveContent",R.preserveContent),n.uIk("tabindex",null!=R.contentTabIndex&&R.selectedIndex===L?R.contentTabIndex:null)("aria-labelledby",R._getTabLabelId(L))("aria-hidden",R.selectedIndex!==L)}}const _n={translateTab:(0,Jn.X$)("translateTab",[(0,Jn.SB)("center, void, left-origin-center, right-origin-center",(0,Jn.oB)({transform:"none"})),(0,Jn.SB)("left",(0,Jn.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Jn.SB)("right",(0,Jn.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Jn.eR)("* => left, * => right, left => center, right => center",(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Jn.eR)("void => left-origin-center",[(0,Jn.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Jn.eR)("void => right-origin-center",[(0,Jn.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let En=(()=>{class F extends ct.Pl{constructor(g,L,R,ye){super(g,L,ye),this._host=R,this._centeringSub=ae.w0.EMPTY,this._leavingSub=ae.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,fn.O)(this._host._isCenterPosition(this._host._position))).subscribe(g=>{g&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36((0,n.Gpc)(()=>ni)),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabBodyHost",""]],features:[n.qOj]})}return F})(),On=(()=>{class F{set position(g){this._positionIndex=g,this._computePositionAnimationState()}constructor(g,L,R){this._elementRef=g,this._dir=L,this._dirChangeSubscription=ae.w0.EMPTY,this._translateTabComplete=new Oe.x,this._onCentering=new n.vpe,this._beforeCentering=new n.vpe,this._afterLeavingCenter=new n.vpe,this._onCentered=new n.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,L&&(this._dirChangeSubscription=L.change.subscribe(ye=>{this._computePositionAnimationState(ye),R.markForCheck()})),this._translateTabComplete.pipe((0,gn.x)((ye,Dt)=>ye.fromState===Dt.fromState&&ye.toState===Dt.toState)).subscribe(ye=>{this._isCenterPosition(ye.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ye.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(g){const L=this._isCenterPosition(g.toState);this._beforeCentering.emit(L),L&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(g){return"center"==g||"left-origin-center"==g||"right-origin-center"==g}_computePositionAnimationState(g=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==g?"left":"right":this._positionIndex>0?"ltr"==g?"right":"left":"center"}_computePositionFromOrigin(g){const L=this._getLayoutDirection();return"ltr"==L&&g<=0||"rtl"==L&&g>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(J.Is,8),n.Y36(n.sBO))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}return F})(),ni=(()=>{class F extends On{constructor(g,L,R){super(g,L,R)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(J.Is,8),n.Y36(n.sBO))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-body"]],viewQuery:function(L,R){if(1&L&&n.Gf(ct.Pl,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R._portalHost=ye.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[n.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0,1),n.NdJ("@translateTab.start",function(Dt){return R._onTranslateTabStarted(Dt)})("@translateTab.done",function(Dt){return R._translateTabComplete.next(Dt)}),n.YNc(2,ve,0,0,"ng-template",2),n.qZA()),2&L&&n.Q6J("@translateTab",n.WLB(3,ut,R._position,n.VKq(1,Pe,R.animationDuration)))},dependencies:[En],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[_n.translateTab]}})}return F})();const Vn=new n.OlP("MatTabContent");let fr=(()=>{class F{constructor(g){this.template=g}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.Rgc))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabContent",""]],features:[n._Bn([{provide:Vn,useExisting:F}])]})}return F})();const ki=new n.OlP("MatTabLabel"),Kr=new n.OlP("MAT_TAB");let vr=(()=>{class F extends ct.ig{constructor(g,L,R){super(g,L),this._closestTab=R}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(Kr,8))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[n._Bn([{provide:ki,useExisting:F}]),n.qOj]})}return F})();const Bi="mdc-tab-indicator--active",co="mdc-tab-indicator--no-transition";class Ji{constructor(Xe){this._items=Xe}hide(){this._items.forEach(Xe=>Xe.deactivateInkBar())}alignToElement(Xe){const g=this._items.find(R=>R.elementRef.nativeElement===Xe),L=this._currentItem;if(g!==L&&(L?.deactivateInkBar(),g)){const R=L?.elementRef.nativeElement.getBoundingClientRect?.();g.activateInkBar(R),this._currentItem=g}}}function tr(F){return class extends F{constructor(...Xe){super(...Xe),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Xe){const g=(0,qt.Ig)(Xe);this._fitToContent!==g&&(this._fitToContent=g,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Xe){const g=this.elementRef.nativeElement;if(!Xe||!g.getBoundingClientRect||!this._inkBarContentElement)return void g.classList.add(Bi);const L=g.getBoundingClientRect(),R=Xe.width/L.width,ye=Xe.left-L.left;g.classList.add(co),this._inkBarContentElement.style.setProperty("transform",`translateX(${ye}px) scaleX(${R})`),g.getBoundingClientRect(),g.classList.remove(co),g.classList.add(Bi),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Bi)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Xe=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=Xe.createElement("span"),this._inkBarContentElement=Xe.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const pr=(0,Ve.Id)(class{}),$n=tr((()=>{class F extends pr{constructor(g){super(),this.elementRef=g}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq))};static#t=this.\u0275dir=n.lG2({type:F,features:[n.qOj]})}return F})());let yo=(()=>{class F extends $n{static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(L,R){2&L&&(n.uIk("aria-disabled",!!R.disabled),n.ekj("mat-mdc-tab-disabled",R.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[n.qOj]})}return F})();const Fr=(0,Ve.Id)(class{}),uo=new n.OlP("MAT_TAB_GROUP");let ho=(()=>{class F extends Fr{get content(){return this._contentPortal}constructor(g,L){super(),this._viewContainerRef=g,this._closestTabGroup=L,this.textLabel="",this._contentPortal=null,this._stateChanges=new Oe.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(g){(g.hasOwnProperty("textLabel")||g.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ct.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(g){g&&g._closestTab===this&&(this._templateLabel=g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.s_b),n.Y36(uo,8))};static#t=this.\u0275dir=n.lG2({type:F,viewQuery:function(L,R){if(1&L&&n.Gf(n.Rgc,7),2&L){let ye;n.iGM(ye=n.CRH())&&(R._implicitContent=ye.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[n.qOj,n.TTD]})}return F})(),to=(()=>{class F extends ho{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(g){this._setTemplateLabelInput(g)}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab"]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,fr,7,n.Rgc),n.Suo(ye,vr,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._explicitContent=Dt.first),n.iGM(Dt=n.CRH())&&(R.templateLabel=Dt.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[n._Bn([{provide:Kr,useExisting:F}]),n.qOj],ngContentSelectors:ze,decls:1,vars:0,template:function(L,R){1&L&&(n.F$t(),n.YNc(0,We,1,0,"ng-template"))},encapsulation:2})}return F})();const yr=(0,G.i$)({passive:!0});let xl=(()=>{class F{get disablePagination(){return this._disablePagination}set disablePagination(g){this._disablePagination=(0,qt.Ig)(g)}get selectedIndex(){return this._selectedIndex}set selectedIndex(g){g=(0,qt.su)(g),this._selectedIndex!=g&&(this._selectedIndexChanged=!0,this._selectedIndex=g,this._keyManager&&this._keyManager.updateActiveItem(g))}constructor(g,L,R,ye,Dt,Mn,vi){this._elementRef=g,this._changeDetectorRef=L,this._viewportRuler=R,this._dir=ye,this._ngZone=Dt,this._platform=Mn,this._animationMode=vi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Oe.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Oe.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new n.vpe,this.indexFocused=new n.vpe,Dt.runOutsideAngular(()=>{(0,ot.R)(g.nativeElement,"mouseleave").pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,ot.R)(this._previousPaginator.nativeElement,"touchstart",yr).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ot.R)(this._nextPaginator.nativeElement,"touchstart",yr).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const g=this._dir?this._dir.change:(0,Se.of)("ltr"),L=this._viewportRuler.change(150),R=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ce.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,jn.q)(1)).subscribe(R),(0,Ft.T)(g,L,this._items.changes,this._itemsResized()).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),R()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(ye=>{this.indexFocused.emit(ye),this._setTabFocus(ye)})}_itemsResized(){return"function"!=typeof ResizeObserver?lt.E:this._items.changes.pipe((0,fn.O)(this._items),(0,ai.w)(g=>new Bt.y(L=>this._ngZone.runOutsideAngular(()=>{const R=new ResizeObserver(ye=>L.next(ye));return g.forEach(ye=>R.observe(ye.elementRef.nativeElement)),()=>{R.disconnect()}}))),(0,di.T)(1),(0,oi.h)(g=>g.some(L=>L.contentRect.width>0&&L.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(g){if(!(0,U.Vb)(g))switch(g.keyCode){case U.K5:case U.L_:if(this.focusIndex!==this.selectedIndex){const L=this._items.get(this.focusIndex);L&&!L.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(g))}break;default:this._keyManager.onKeydown(g)}}_onContentChanges(){const g=this._elementRef.nativeElement.textContent;g!==this._currentTextContent&&(this._currentTextContent=g||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(g){!this._isValidIndex(g)||this.focusIndex===g||!this._keyManager||this._keyManager.setActiveItem(g)}_isValidIndex(g){return!this._items||!!this._items.toArray()[g]}_setTabFocus(g){if(this._showPaginationControls&&this._scrollToLabel(g),this._items&&this._items.length){this._items.toArray()[g].focus();const L=this._tabListContainer.nativeElement;L.scrollLeft="ltr"==this._getLayoutDirection()?0:L.scrollWidth-L.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const g=this.scrollDistance,L="ltr"===this._getLayoutDirection()?-g:g;this._tabList.nativeElement.style.transform=`translateX(${Math.round(L)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(g){this._scrollTo(g)}_scrollHeader(g){return this._scrollTo(this._scrollDistance+("before"==g?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(g){this._stopInterval(),this._scrollHeader(g)}_scrollToLabel(g){if(this.disablePagination)return;const L=this._items?this._items.toArray()[g]:null;if(!L)return;const R=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ye,offsetWidth:Dt}=L.elementRef.nativeElement;let Mn,vi;"ltr"==this._getLayoutDirection()?(Mn=ye,vi=Mn+Dt):(vi=this._tabListInner.nativeElement.offsetWidth-ye,Mn=vi-Dt);const Fo=this.scrollDistance,Ya=this.scrollDistance+R;MnYa&&(this.scrollDistance+=Math.min(vi-Ya,Mn-Fo))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const g=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;g||(this.scrollDistance=0),g!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=g}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const g=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,L=g?g.elementRef.nativeElement:null;L?this._inkBar.alignToElement(L):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(g,L){L&&null!=L.button&&0!==L.button||(this._stopInterval(),(0,Ut.H)(650,100).pipe((0,An.R)((0,Ft.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:R,distance:ye}=this._scrollHeader(g);(0===ye||ye>=R)&&this._stopInterval()}))}_scrollTo(g){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const L=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(L,g)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:L,distance:this._scrollDistance}}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{disablePagination:"disablePagination"}})}return F})(),So=(()=>{class F extends xl{get disableRipple(){return this._disableRipple}set disableRipple(g){this._disableRipple=(0,qt.Ig)(g)}constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,ye,Dt,Mn,vi),this._disableRipple=!1}_itemSelected(g){g.preventDefault()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{disableRipple:"disableRipple"},features:[n.qOj]})}return F})(),Ws=(()=>{class F extends So{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,ye,Dt,Mn,vi)}ngAfterContentInit(){this._inkBar=new Ji(this._items),super.ngAfterContentInit()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-header"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,yo,4),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._items=Dt)}},viewQuery:function(L,R){if(1&L&&(n.Gf(be,7),n.Gf(Te,7),n.Gf(He,7),n.Gf(Wt,5),n.Gf(Pn,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R._tabListContainer=ye.first),n.iGM(ye=n.CRH())&&(R._tabList=ye.first),n.iGM(ye=n.CRH())&&(R._tabListInner=ye.first),n.iGM(ye=n.CRH())&&(R._nextPaginator=ye.first),n.iGM(ye=n.CRH())&&(R._previousPaginator=ye.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(L,R){2&L&&n.ekj("mat-mdc-tab-header-pagination-controls-enabled",R._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==R._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[n.qOj],ngContentSelectors:ze,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"button",0,1),n.NdJ("click",function(){return R._handlePaginatorClick("before")})("mousedown",function(Dt){return R._handlePaginatorPress("before",Dt)})("touchend",function(){return R._stopInterval()}),n._UZ(2,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),n.TgZ(5,"div",5,6),n.NdJ("cdkObserveContent",function(){return R._onContentChanges()}),n.TgZ(7,"div",7,8),n.Hsn(9),n.qZA()()(),n.TgZ(10,"button",9,10),n.NdJ("mousedown",function(Dt){return R._handlePaginatorPress("after",Dt)})("click",function(){return R._handlePaginatorClick("after")})("touchend",function(){return R._stopInterval()}),n._UZ(12,"div",2),n.qZA()),2&L&&(n.ekj("mat-mdc-tab-header-pagination-disabled",R._disableScrollBefore),n.Q6J("matRippleDisabled",R._disableScrollBefore||R.disableRipple)("disabled",R._disableScrollBefore||null),n.xp6(3),n.ekj("_mat-animation-noopable","NoopAnimations"===R._animationMode),n.xp6(7),n.ekj("mat-mdc-tab-header-pagination-disabled",R._disableScrollAfter),n.Q6J("matRippleDisabled",R._disableScrollAfter||R.disableRipple)("disabled",R._disableScrollAfter||null))},dependencies:[Ve.wG,Ct.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return F})();const Ds=new n.OlP("MAT_TABS_CONFIG");let $s=0;const Uo=(0,Ve.pj)((0,Ve.Kr)(class{constructor(F){this._elementRef=F}}),"primary");let Jr=(()=>{class F extends Uo{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(g){this._dynamicHeight=(0,qt.Ig)(g)}get selectedIndex(){return this._selectedIndex}set selectedIndex(g){this._indexToSelect=(0,qt.su)(g,null)}get animationDuration(){return this._animationDuration}set animationDuration(g){this._animationDuration=/^\d+$/.test(g+"")?g+"ms":g}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(g){this._contentTabIndex=(0,qt.su)(g,null)}get disablePagination(){return this._disablePagination}set disablePagination(g){this._disablePagination=(0,qt.Ig)(g)}get preserveContent(){return this._preserveContent}set preserveContent(g){this._preserveContent=(0,qt.Ig)(g)}get backgroundColor(){return this._backgroundColor}set backgroundColor(g){const L=this._elementRef.nativeElement.classList;L.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),g&&L.add("mat-tabs-with-background",`mat-background-${g}`),this._backgroundColor=g}constructor(g,L,R,ye){super(g),this._changeDetectorRef=L,this._animationMode=ye,this._tabs=new n.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ae.w0.EMPTY,this._tabLabelSubscription=ae.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new n.vpe,this.focusChange=new n.vpe,this.animationDone=new n.vpe,this.selectedTabChange=new n.vpe(!0),this._groupId=$s++,this.animationDuration=R&&R.animationDuration?R.animationDuration:"500ms",this.disablePagination=!(!R||null==R.disablePagination)&&R.disablePagination,this.dynamicHeight=!(!R||null==R.dynamicHeight)&&R.dynamicHeight,this.contentTabIndex=R?.contentTabIndex??null,this.preserveContent=!!R?.preserveContent}ngAfterContentChecked(){const g=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=g){const L=null==this._selectedIndex;if(!L){this.selectedTabChange.emit(this._createChangeEvent(g));const R=this._tabBodyWrapper.nativeElement;R.style.minHeight=R.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((R,ye)=>R.isActive=ye===g),L||(this.selectedIndexChange.emit(g),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((L,R)=>{L.position=R-g,null!=this._selectedIndex&&0==L.position&&!L.origin&&(L.origin=g-this._selectedIndex)}),this._selectedIndex!==g&&(this._selectedIndex=g,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const g=this._clampTabIndex(this._indexToSelect);if(g===this._selectedIndex){const L=this._tabs.toArray();let R;for(let ye=0;ye{L[g].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(g))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,fn.O)(this._allTabs)).subscribe(g=>{this._tabs.reset(g.filter(L=>L._closestTabGroup===this||!L._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(g){const L=this._tabHeader;L&&(L.focusIndex=g)}_focusChanged(g){this._lastFocusedTabIndex=g,this.focusChange.emit(this._createChangeEvent(g))}_createChangeEvent(g){const L=new kr;return L.index=g,this._tabs&&this._tabs.length&&(L.tab=this._tabs.toArray()[g]),L}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Ft.T)(...this._tabs.map(g=>g._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(g){return Math.min(this._tabs.length-1,Math.max(g||0,0))}_getTabLabelId(g){return`mat-tab-label-${this._groupId}-${g}`}_getTabContentId(g){return`mat-tab-content-${this._groupId}-${g}`}_setTabBodyWrapperHeight(g){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const L=this._tabBodyWrapper.nativeElement;L.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(L.style.height=g+"px")}_removeTabBodyWrapperHeight(){const g=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=g.clientHeight,g.style.height="",this.animationDone.emit()}_handleClick(g,L,R){L.focusIndex=R,g.disabled||(this.selectedIndex=R)}_getTabIndex(g){return g===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(g,L){g&&"mouse"!==g&&"touch"!==g&&(this._tabHeader.focusIndex=L)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ds,8),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[n.qOj]})}return F})(),ga=(()=>{class F extends Jr{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(g){this._fitInkBarToContent=(0,qt.Ig)(g),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(g){this._stretchTabs=(0,qt.Ig)(g)}constructor(g,L,R,ye){super(g,L,R,ye),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!R||null==R.fitInkBarToContent)&&R.fitInkBarToContent,this.stretchTabs=!R||null==R.stretchTabs||R.stretchTabs}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ds,8),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-group"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,to,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._allTabs=Dt)}},viewQuery:function(L,R){if(1&L&&(n.Gf(wt,5),n.Gf(Yt,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R._tabBodyWrapper=ye.first),n.iGM(ye=n.CRH())&&(R._tabHeader=ye.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(L,R){2&L&&(n.Udp("--mat-tab-animation-duration",R.animationDuration),n.ekj("mat-mdc-tab-group-dynamic-height",R.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===R.headerPosition)("mat-mdc-tab-group-stretch-tabs",R.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[n._Bn([{provide:uo,useExisting:F}]),n.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-tab-header",0,1),n.NdJ("indexFocused",function(Dt){return R._focusChanged(Dt)})("selectFocusedIndex",function(Dt){return R.selectedIndex=Dt}),n.YNc(2,ht,9,17,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.YNc(5,st,1,12,"mat-tab-body",5),n.qZA()),2&L&&(n.Q6J("selectedIndex",R.selectedIndex||0)("disableRipple",R.disableRipple)("disablePagination",R.disablePagination),n.xp6(2),n.Q6J("ngForOf",R._tabs),n.xp6(1),n.ekj("_mat-animation-noopable","NoopAnimations"===R._animationMode),n.xp6(2),n.Q6J("ngForOf",R._tabs))},dependencies:[e.mk,e.sg,e.O5,ct.Pl,Ve.wG,Ce.kH,ni,yo,Ws],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return F})();class kr{}let Li=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[e.ez,Ve.BQ,ct.eL,Ve.si,Ct.Q8,Ce.rt,Ve.BQ]})}return F})();var Yr=C(2770);function dr(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw();n.hij(" ALL (",g.reactions.length,") ")}}function Ha(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h3",7),n._uU(2,"Empty"),n.qZA()())}function wr(F,Xe){if(1&F&&(n.TgZ(0,"section",9)(1,"div",10)(2,"div",11)(3,"div",12),n._UZ(4,"img",13),n.TgZ(5,"div",14)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small"),n._uU(9,"Reacted "),n.TgZ(10,"span",15),n._uU(11),n.qZA(),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()()()()()),2&F){const g=Xe.$implicit;n.xp6(4),n.s9C("src",g.reacted_by_photo,n.LSH),n.xp6(3),n.Oqu(g.reacted_by),n.xp6(4),n.Oqu(g.reaction_type),n.xp6(1),n.hij(" ",n.xi3(13,4,g.updated_at,!0),"")}}function al(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,wr,14,7,"section",8),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.reactions)}}function Vr(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw().$implicit,L=n.oxw();n.AsE(" ",g," (",L.filterReactions(g).length,") ")}}function Es(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h3",7),n._uU(2,"Empty"),n.qZA()())}function Js(F,Xe){if(1&F&&(n.TgZ(0,"section",9)(1,"div",10)(2,"div",11)(3,"div",12),n._UZ(4,"img",13),n.TgZ(5,"div",14)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small"),n._uU(9,"Reacted "),n.TgZ(10,"span",15),n._uU(11),n.qZA(),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()()()()()),2&F){const g=Xe.$implicit,L=n.oxw(2).$implicit;n.xp6(4),n.s9C("src",g.reacted_by_photo,n.LSH),n.xp6(3),n.Oqu(g.reacted_by),n.xp6(4),n.Oqu(L),n.xp6(1),n.hij(" on: ",n.xi3(13,4,g.updated_at,!0),"")}}function ll(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Js,14,7,"section",8),n.qZA()),2&F){const g=n.oxw().$implicit,L=n.oxw();n.xp6(1),n.Q6J("ngForOf",L.filterReactions(g))}}function er(F,Xe){if(1&F&&(n.TgZ(0,"mat-tab"),n.YNc(1,Vr,1,2,"ng-template",2),n.YNc(2,Es,3,0,"div",3),n.YNc(3,ll,2,1,"div",3),n.qZA()),2&F){const g=Xe.$implicit,L=n.oxw();n.xp6(2),n.Q6J("ngIf",0===L.filterReactions(g).length),n.xp6(1),n.Q6J("ngIf",L.filterReactions(g).length>0)}}let qn=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.postService=ye,this.postId=0,this.reactions=[]}componentName(){return"ReactionViewComponent"}ngOnInit(){this.fetchReactions(this.postId)}getReactionTypes(){let g=[];for(let L in Ot)g.push(L);return g}filterReactions(g){return this.reactions.filter(L=>L.reaction_type===g)}fetchReactions(g){let L=this.componentKey(S.Z.POSTS.FETCH_POST_REACTIONS(g));this.postService.fetchPostReactions(L,g,{slice:!0}),this.subscribe(L,null,(R,ye)=>{this.reactions=ye.data})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-reaction-view"]],inputs:{postId:"postId"},features:[n.qOj],decls:10,vars:3,consts:[[1,"dialog-content"],["mat-align-tabs","start"],["mat-tab-label",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["align","end"],["mat-button","","mat-dialog-close",""],[1,"txt-no-data"],["class","blog-post-area blog-post-area-comment bdr-top mt-2",4,"ngFor","ngForOf"],[1,"blog-post-area","blog-post-area-comment","bdr-top","mt-2"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","py-1"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"image-rounded",3,"src"],[1,"content","ms-2"],[2,"color","#44d62c"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-dialog-content",0)(1,"mat-tab-group",1)(2,"mat-tab"),n.YNc(3,dr,1,1,"ng-template",2),n.YNc(4,Ha,3,0,"div",3),n.YNc(5,al,2,1,"div",3),n.qZA(),n.YNc(6,er,4,2,"mat-tab",4),n.qZA()(),n.TgZ(7,"mat-dialog-actions",5)(8,"button",6),n._uU(9,"Close"),n.qZA()()),2&L&&(n.xp6(4),n.Q6J("ngIf",0===R.reactions.length),n.xp6(1),n.Q6J("ngIf",R.reactions.length>0),n.xp6(1),n.Q6J("ngForOf",R.getReactionTypes()))},dependencies:[e.sg,e.O5,Re.ZT,Re.xY,Re.H8,mt.lW,vr,to,ga,Yr.G],styles:[".dialog-content[_ngcontent-%COMP%]{min-height:200px;padding:0}.image-rounded[_ngcontent-%COMP%]{width:100px;height:100px;position:relative;overflow:hidden;border-radius:50%}img[_ngcontent-%COMP%]{display:inline;margin:0 auto;height:100%;width:auto}.txt-no-data[_ngcontent-%COMP%]{margin-top:50px;text-align:center}"]})}return F})();var bi=C(617);function _r(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("message","Submitting. Please wait..")}function wo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",29),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function jo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"label",30),n._UZ(2,"i",31),n.qZA(),n.TgZ(3,"input",32),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onImageSelected(R))}),n.qZA()()}}function no(F,Xe){1&F&&(n.TgZ(0,"div",33)(1,"small"),n._uU(2,"Minimum 1 document is needed."),n.qZA()())}function Ao(F,Xe){1&F&&(n.TgZ(0,"div",34)(1,"small"),n._uU(2,"Comment should be at least 20 characters."),n.qZA()())}function nr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6)(1,"form",7)(2,"div",8),n._UZ(3,"input",9),n.TgZ(4,"label",10),n._uU(5,"Add to Blockchain\xa0"),n.qZA(),n.TgZ(6,"small",11),n._uU(7,"If your review is added to the blockchain, you won't be able to further modify or delete this review in future."),n.qZA()(),n.TgZ(8,"section",12)(9,"h5",13),n._uU(10,"UPLOAD DOCUMENTS"),n.qZA(),n.TgZ(11,"small",14),n._uU(12,"Upload related documents."),n.qZA(),n.TgZ(13,"div",15)(14,"div"),n.YNc(15,wo,1,1,"img",16),n.qZA(),n.YNc(16,jo,4,0,"div",17),n.qZA(),n.YNc(17,no,3,0,"div",18),n.qZA(),n.TgZ(18,"div",19)(19,"h5",13),n._uU(20,"YOUR COMMENT/DESCRIPTION"),n.qZA(),n.TgZ(21,"div",20)(22,"div",21)(23,"label",22),n._uU(24,"Share related information about your purchase."),n.qZA(),n._UZ(25,"textarea",23),n.qZA()(),n.YNc(26,Ao,3,0,"div",24),n.qZA(),n.TgZ(27,"div",25)(28,"button",26),n._uU(29,"CANCEL"),n.qZA(),n._uU(30,"\xa0\xa0 "),n.TgZ(31,"button",27),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitVerificationRequest())}),n._UZ(32,"i",28),n._uU(33," SUBMIT "),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("formGroup",g.verificationForm),n.xp6(14),n.Q6J("ngForOf",g.uploadFiles),n.xp6(1),n.Q6J("ngIf",g.uploadFiles.length<3),n.xp6(1),n.Q6J("ngIf",g.isInvalidFileCount()),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.verificationForm.controls.comment)),n.xp6(5),n.Q6J("disabled",g.verificationForm.invalid||0===g.uploadFiles.length)}}function ps(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",5),2&F){const g=n.oxw();n.Q6J("message",g.completionMsg)}}function va(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",35)(1,"button",36),n._uU(2,"CLOSE"),n.qZA()())}let Ti=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.fileUploadService=ye,this.notifier=Dt,this.reviewService=Mn,this.reviewId=0,this.uploadFiles=[],this.verificationForm=new Z.cw({add_to_block_chain:new Z.NI(""),comment:new Z.NI("",[Z.kI.required,Z.kI.minLength(20)])}),this.completionMsg=null}componentName(){return"VerifyReviewComponent"}ngOnInit(){this.loading=!1}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}uploadImages(){this.loading=!0;let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.reviewId+"-verif-img"));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{let Mn=ye.data.map(vi=>vi.image_url);this.submitRequest(Mn)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}submitVerificationRequest(){this.notifier.log(this.verificationForm),this.uploadImages()}submitRequest(g){if(null==this.reviewId)return;this.loading=!0;let R={review_id:this.reviewId,add_to_block_chain:""!==this.verificationForm.controls.add_to_block_chain.value,comment:this.verificationForm.controls.comment.value,document_1:g.length>0?g[0]:"",document_2:g.length>1?g[1]:null,document_3:g.length>2?g[2]:null};const ye=this.componentKey(S.Z.REVIEWS.SEND_VERIFICATION_REQUEST(this.reviewId));this.reviewService.verifyReview(ye,R),this.subscribe(ye,null,(Dt,Mn)=>{this.loading=!1,this.notifier.success("Success","Request Sent."),this.completionMsg="Your request has been successfully submitted. You'll be notified once your request is reviewed."}),this.subscribe(this.getErrorKey(ye),null,(Dt,Mn)=>{this.loading=!1;let vi=Mn.data;this.completionMsg=vi.error.message,this.notifier.warning("Failed!",vi.error.message)})}isInvalidFileCount(){return 0===this.uploadFiles.length||this.uploadFiles.length>3}showInfo(){this.notifier.info("Info!","Upload related documents as a proof. For example invoice, payment slip etc.\n This will help us determine the authenticity of your affiliation with the item.",()=>{},1e4)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(oe.J),n.Y36(te.l),n.Y36(se.F))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-verify-review"]],inputs:{reviewId:"reviewId"},features:[n.qOj],decls:10,vars:4,consts:[["mat-dialog-title",""],[2,"float","right",3,"click"],[3,"message",4,"ngIf"],["class","review-r-d-input-fields",4,"ngIf"],["align","end",4,"ngIf"],[3,"message"],[1,"review-r-d-input-fields"],[3,"formGroup"],[1,"input-group","bdr-b","bdr-top"],["id","chk_add_to_block_chain","type","checkbox","name","add_to_block_chain","formControlName","add_to_block_chain",1,"form-check"],["for","chk_add_to_block_chain",1,"form-check-label","ms-2",2,"align-self","center"],[1,"field-subtitle","pb-2"],[1,"upload-img-area","review-rdi","pt-4","bdr-b","pb-4"],[1,"field-title"],[1,"field-subtitle"],[1,"post-last-step-gallery","mt-2"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","text-warning mt-1",4,"ngIf"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","cons",1,"form-label","field-subtitle"],["name","comment","id","cons","rows","3","placeholder","Enter description here..","formControlName","comment",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["mat-dialog-close","",1,"edit-boxed-inline-btn"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],["alt","",1,"m-1",3,"src","click"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],[1,"text-warning","mt-1"],[1,"text-warning"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"h5"),n._uU(2,"REQUEST VERIFICATION "),n.TgZ(3,"mat-icon",1),n.NdJ("click",function(){return R.showInfo()}),n._uU(4,"info"),n.qZA()()(),n.TgZ(5,"mat-dialog-content"),n.YNc(6,_r,1,1,"util-progress",2),n.YNc(7,nr,34,6,"div",3),n.YNc(8,ps,1,1,"app-notice-view",2),n.qZA(),n.YNc(9,va,3,0,"mat-dialog-actions",4)),2&L&&(n.xp6(6),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&null==R.completionMsg),n.xp6(1),n.Q6J("ngIf",!R.loading&&null!=R.completionMsg),n.xp6(1),n.Q6J("ngIf",null!=R.completionMsg))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.Wl,Z.JJ,Z.JL,Z.sg,Z.u,bi.Hw,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.t,St],styles:[".field-title[_ngcontent-%COMP%]{color:#44d62c}.field-subtitle[_ngcontent-%COMP%]{color:#f5f5f5;font-size:.8em}.dialog-subtitle[_ngcontent-%COMP%]{font-size:.8em;color:#01b9b9}"]})}return F})();function qs(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function ba(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)}function Qs(F,Xe){1&F&&(n.TgZ(0,"mat-icon",20),n._uU(1,"check_circle "),n.qZA())}function wi(F,Xe){1&F&&(n.TgZ(0,"div"),n._UZ(1,"img",21),n.TgZ(2,"small"),n._uU(3,"Added to Blockchain"),n.qZA()())}function Oo(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_1,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_1,n.LSH)}}function Ko(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_2,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_2,n.LSH)}}function or(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_3,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_3,n.LSH)}}function Xs(F,Xe){if(1&F&&(n.TgZ(0,"section",25)(1,"div",8)(2,"div",26)(3,"div",27)(4,"h6",28),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.TgZ(7,"p")(8,"span",29),n._uU(9),n.qZA(),n._uU(10),n.qZA(),n.TgZ(11,"h6",28),n._uU(12),n.qZA()()()()()),2&F){const g=Xe.$implicit;n.xp6(5),n.hij("On ",n.xi3(6,4,null==g?null:g.updated_at,!0),""),n.xp6(4),n.Oqu(null==g?null:g.action_taken_by_name),n.xp6(1),n.hij(" marked this review as ",null==g?null:g.status,""),n.xp6(2),n.hij(" ",null==g?null:g.reason," ")}}function Ml(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-dialog-actions",30)(1,"a",31),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.applyForReconsideration())}),n._uU(2,"APPLY FOR RECONSIDERATION"),n.qZA()()}}function Sr(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"section",7)(2,"div",8)(3,"div",9)(4,"div",10),n.YNc(5,Qs,2,0,"mat-icon",11),n.TgZ(6,"div",12)(7,"h4"),n._uU(8,"\xa0Verification Details"),n.qZA(),n.TgZ(9,"small",13),n._uU(10),n.qZA(),n.YNc(11,wi,4,0,"div",4),n.qZA()()(),n.TgZ(12,"div",14)(13,"p"),n._uU(14),n.qZA(),n.TgZ(15,"div",15),n.YNc(16,Oo,3,2,"div",16),n.YNc(17,Ko,3,2,"div",16),n.YNc(18,or,3,2,"div",16),n.qZA()()()(),n.TgZ(19,"section",17)(20,"h5"),n._uU(21,"Change Logs"),n.qZA()(),n.YNc(22,Xs,13,7,"section",18),n.YNc(23,Ml,3,0,"mat-dialog-actions",19),n.qZA()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",g.isVerified()),n.xp6(5),n.Oqu(null==g.verification?null:g.verification.status),n.xp6(1),n.Q6J("ngIf",null==g.verification||null==g.verification.review?null:g.verification.review.chained),n.xp6(3),n.Oqu(null==g.verification?null:g.verification.comment),n.xp6(2),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_1)),n.xp6(1),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_2)),n.xp6(1),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_3)),n.xp6(4),n.Q6J("ngForOf",null==g.verification?null:g.verification.actions),n.xp6(1),n.Q6J("ngIf",g.isReconsiderable())}}let jr=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.reviewService=ye,this.auth=Dt,this.notifier=Mn,this.reviewId=null,this.verification=null}componentName(){return"VerificationDetailsComponent"}ngOnInit(){this.fetchVerificationForReview()}fetchVerificationForReview(){if(null==this.reviewId)return;this.loading=!0;let g=this.componentKey(S.Z.REVIEWS.GET_VERIFICATION_FOR_REVIEW(this.reviewId));this.reviewService.getVerificationForReview(g,this.reviewId),this.subscribe(g,null,(L,R)=>{this.verification=R.data,console.log(this.verification),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}isVerified(){return"VERIFIED"===this.verification?.status}isReconsiderable(){return!this.verification?.already_reconsidered&&"REJECTED"===this.verification?.status}applyForReconsideration(){if(null==this.verification||!confirm("Do you want to send reconsideration request?"))return;let g=this.componentKey(S.Z.REVIEWS.RECONSIDER_VERIFICATION(this.verification.id));this.reviewService.reconsiderVerification(g,this.verification.id),this.subscribe(g,null,(L,R)=>{this.verification=R.data,this.notifier.success("Success","Request sent for reconsideration.")}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error","Could not send request for reconsideration.")})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-verification-details"]],inputs:{reviewId:"reviewId"},features:[n.qOj],decls:5,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[4,"ngIf"],[3,"bar"],[3,"padding"],[1,"blog-post-area","bdr-b"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","mb-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["class","verified-icon profile-img-rounded","aria-hidden","false","aria-label","View Product",4,"ngIf"],[1,"content"],[1,"verification-status"],[1,"blog-post-content","pb-3"],[1,"product-gallery","mt-2"],["class","single-product-item",4,"ngIf"],[1,"container","bdr-b","my-2","pb-1"],["class","blog-post-area blog-post-area-comment mt-2 bdr-b",4,"ngFor","ngForOf"],["align","end",4,"ngIf"],["aria-hidden","false","aria-label","View Product",1,"verified-icon","profile-img-rounded"],["src","assets/icons/blockchain.svg",2,"height","16px","width","auto","margin-right","10px"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],[1,"blog-post-area","blog-post-area-comment","mt-2","bdr-b"],[1,"blog-post-content"],[1,"comments-comment-item-content"],[2,"color","gray"],[1,"action-taken-by-name"],["align","end"],[3,"click"]],template:function(L,R){1&L&&(n.YNc(0,qs,1,1,"util-progress",0),n.YNc(1,ba,1,1,"util-progress",1),n.TgZ(2,"div",2),n._UZ(3,"i",3),n.qZA(),n.YNc(4,Sr,24,9,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(3),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,bi.Hw,Re.ZT,Re.H8,Ge.t,Yr.G],styles:[".action-taken-by-name[_ngcontent-%COMP%], .verified-icon[_ngcontent-%COMP%]{color:#44d62c}a[_ngcontent-%COMP%]{color:#44d62c;font-size:1em}.verification-status[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})();var xo=C(8174);let _s=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}reportReview(g,L){this.http.post(vn.e.POSTS.POST_REVIEW_REPORT(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}getReportCategories(){return[{name:"NUDITY OR SEXUAL ACTIVITY",value:"NUDITY_OR_SEXUAL_ACTIVITY"},{name:"HARASSMENT OR BULLYING",value:"HARASSMENT_OR_BULLYING"},{name:"OFFENSIVE",value:"OFFENSIVE"},{name:"FALSE INFORMATION",value:"FALSE_INFORMATION"},{name:"SPAM",value:"SPAM"},{name:"VIOLENCE",value:"VIOLENCE"},{name:"HATE SPEECH",value:"HATE_SPEECH"}]}getReportsForPost(g,L){this.http.get(vn.e.POSTS.GET_REPORT_DETAILS_FOR_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}getReportCountForPost(g,L){this.http.get(vn.e.POSTS.GET_REPORT_COUNT_FOR_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();var Ai=C(9157),Jo=C(8525);function Io(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("message","Submitting. Please wait..")}function Ys(F,Xe){if(1&F&&(n.TgZ(0,"mat-option",28),n._uU(1),n.qZA()),2&F){const g=Xe.$implicit;n.Q6J("value",g.value),n.xp6(1),n.hij(" ",g.name," ")}}function fo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",29),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Zr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"label",30),n._UZ(2,"i",31),n.qZA(),n.TgZ(3,"input",32),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onImageSelected(R))}),n.qZA()()}}function ms(F,Xe){1&F&&(n.TgZ(0,"div",33)(1,"small"),n._uU(2,"Minimum 1 document is needed."),n.qZA()())}function Co(F,Xe){1&F&&(n.TgZ(0,"div",34)(1,"small"),n._uU(2,"Comment should be at least 20 characters."),n.qZA()())}function Br(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6)(1,"form",7)(2,"mat-form-field",8)(3,"mat-label"),n._uU(4,"Report Category"),n.qZA(),n.TgZ(5,"mat-select",9),n.YNc(6,Ys,2,2,"mat-option",10),n.qZA()(),n.TgZ(7,"section",11)(8,"h5",12),n._uU(9,"UPLOAD DOCUMENTS"),n.qZA(),n.TgZ(10,"small",13),n._uU(11,"Upload related documents."),n.qZA(),n.TgZ(12,"div",14)(13,"div"),n.YNc(14,fo,1,1,"img",15),n.qZA(),n.YNc(15,Zr,4,0,"div",16),n.qZA(),n.YNc(16,ms,3,0,"div",17),n.qZA(),n.TgZ(17,"div",18)(18,"h5",12),n._uU(19,"YOUR COMMENT/DESCRIPTION"),n.qZA(),n.TgZ(20,"div",19)(21,"div",20)(22,"label",21),n._uU(23,"Share related information about your purchase."),n.qZA(),n._UZ(24,"textarea",22),n.qZA()(),n.YNc(25,Co,3,0,"div",23),n.qZA(),n.TgZ(26,"div",24)(27,"button",25),n._uU(28,"CANCEL"),n.qZA(),n._uU(29,"\xa0\xa0 "),n.TgZ(30,"button",26),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitVerificationRequest())}),n._UZ(31,"i",27),n._uU(32," SUBMIT "),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("formGroup",g.reportPostForm),n.xp6(5),n.Q6J("ngForOf",g.postCategory),n.xp6(8),n.Q6J("ngForOf",g.uploadFiles),n.xp6(1),n.Q6J("ngIf",g.uploadFiles.length<1),n.xp6(1),n.Q6J("ngIf",g.isInvalidFileCount()),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.reportPostForm.controls.description)),n.xp6(5),n.Q6J("disabled",g.reportPostForm.invalid||0===g.uploadFiles.length)}}function ea(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",5),2&F){const g=n.oxw();n.Q6J("message",g.completionMsg)}}function po(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",35)(1,"button",36),n._uU(2,"CLOSE"),n.qZA()())}let io=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.fileUploadService=ye,this.notifier=Dt,this.postReportService=Mn,this.reviewId=0,this.postId=0,this.uploadFiles=[],this.postCategory=this.postReportService.getReportCategories(),this.reportPostForm=new Z.cw({description:new Z.NI("",[Z.kI.required,Z.kI.minLength(20)]),category:new Z.NI("")}),this.completionMsg=null,this.selectedCategory=null}componentName(){return"PostReportComponent"}ngOnInit(){this.loading=!1}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}uploadImages(){this.loading=!0;let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.reviewId+"-verif-img"));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{let Mn=ye.data.map(vi=>vi.image_url);this.submitRequest(Mn)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}submitVerificationRequest(){this.notifier.log(this.reportPostForm),this.uploadImages()}submitRequest(g){if(null==this.reviewId)return;this.loading=!0;let L={post_id:this.postId,description:this.reportPostForm.controls.description.value,image:g.length>0?g[0]:"",category:this.reportPostForm.controls.category.value};const R=this.componentKey(S.Z.REVIEWS.POST_REVIEW_REPORT(this.reviewId));this.postReportService.reportReview(R,L),this.subscribe(R,null,(ye,Dt)=>{this.loading=!1,this.notifier.success("Success","Request Sent."),this.completionMsg="Your report has been successfully submitted. You'll be notified once your report is reviewed."}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{this.loading=!1;let Mn=Dt.data;this.completionMsg=Mn.error.message,this.notifier.warning("Failed!",Mn.error.message)})}isInvalidFileCount(){return 0===this.uploadFiles.length||this.uploadFiles.length>3}showInfo(){this.notifier.info("Info!","Upload related documents as a proof. For example invoice, payment slip etc.\n This will help us determine the authenticity of your affiliation with the item.",()=>{},1e4)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(oe.J),n.Y36(te.l),n.Y36(_s))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-report"]],inputs:{reviewId:"reviewId",postId:"postId"},features:[n.qOj],decls:10,vars:4,consts:[["mat-dialog-title",""],[2,"float","right",3,"click"],[3,"message",4,"ngIf"],["class","review-r-d-input-fields",4,"ngIf"],["align","end",4,"ngIf"],[3,"message"],[1,"review-r-d-input-fields"],[3,"formGroup"],["appearance","fill",1,"post-category"],["formControlName","category"],[3,"value",4,"ngFor","ngForOf"],[1,"upload-img-area","review-rdi","pt-4","bdr-b","pb-4"],[1,"field-title"],[1,"field-subtitle"],[1,"post-last-step-gallery","mt-2"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","text-warning mt-1",4,"ngIf"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","cons",1,"form-label","field-subtitle"],["name","comment","id","cons","rows","3","placeholder","Enter description here..","formControlName","description",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["mat-dialog-close","",1,"edit-boxed-inline-btn"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[3,"value"],["alt","",1,"m-1",3,"src","click"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],[1,"text-warning","mt-1"],[1,"text-warning"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"h5"),n._uU(2,"REPORT POST "),n.TgZ(3,"mat-icon",1),n.NdJ("click",function(){return R.showInfo()}),n._uU(4,"info"),n.qZA()()(),n.TgZ(5,"mat-dialog-content"),n.YNc(6,Io,1,1,"util-progress",2),n.YNc(7,Br,33,7,"div",3),n.YNc(8,ea,1,1,"app-notice-view",2),n.qZA(),n.YNc(9,po,3,0,"mat-dialog-actions",4)),2&L&&(n.xp6(6),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&null==R.completionMsg),n.xp6(1),n.Q6J("ngIf",!R.loading&&null!=R.completionMsg),n.xp6(1),n.Q6J("ngIf",null!=R.completionMsg))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.JJ,Z.JL,Z.sg,Z.u,bi.Hw,Ai.KE,Ai.hX,Ve.ey,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.t,Jo.gD,St],styles:[".field-title[_ngcontent-%COMP%]{color:#44d62c}.field-subtitle[_ngcontent-%COMP%]{color:#f5f5f5;font-size:.8em}.dialog-subtitle[_ngcontent-%COMP%]{font-size:.8em;color:#01b9b9}.post-category[_ngcontent-%COMP%]{width:100%} .mat-form-field-appearance-fill .mat-form-field-flex{background-color:#444}"]})}return F})();function qo(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function Ss(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)}function ya(F,Xe){1&F&&(n.TgZ(0,"mat-icon",19),n._uU(1,"check_circle "),n.qZA())}function sr(F,Xe){if(1&F&&(n.TgZ(0,"div",20)(1,"a",21),n._UZ(2,"img",22),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.report?null:g.report.image,n.LSH),n.xp6(1),n.s9C("src",null==g.report?null:g.report.image,n.LSH)}}function Oa(F,Xe){if(1&F&&(n.TgZ(0,"section",23)(1,"div",8)(2,"div",24)(3,"div",25)(4,"h6",26),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.TgZ(7,"p")(8,"span",27),n._uU(9),n.qZA(),n._uU(10),n.qZA(),n.TgZ(11,"h6",26),n._uU(12),n.qZA()()()()()),2&F){const g=Xe.$implicit;n.xp6(5),n.hij("On ",n.xi3(6,4,g.updated_at,!0),""),n.xp6(4),n.Oqu(g.action_taken_by_name),n.xp6(1),n.hij(" has taken action ",null==g?null:g.status,""),n.xp6(2),n.hij(" ",null==g?null:g.comment," ")}}function Ua(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"section",7)(2,"div",8)(3,"div",9)(4,"div",10),n.YNc(5,ya,2,0,"mat-icon",11),n.TgZ(6,"div",12)(7,"h4"),n._uU(8,"\xa0Report Details"),n.qZA(),n.TgZ(9,"small",13),n._uU(10),n.qZA()()()(),n.TgZ(11,"div",14)(12,"p"),n._uU(13),n.qZA(),n.TgZ(14,"div",15),n.YNc(15,sr,3,2,"div",16),n.qZA()()()(),n.TgZ(16,"section",17)(17,"h5"),n._uU(18,"Change Logs"),n.qZA()(),n.YNc(19,Oa,13,7,"section",18),n.qZA()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",g.hasReport()),n.xp6(5),n.hij("Status: ",null==g.report?null:g.report.status,""),n.xp6(3),n.Oqu(null==g.report?null:g.report.description),n.xp6(2),n.Q6J("ngIf",null!=(null==g.report?null:g.report.image)),n.xp6(4),n.Q6J("ngForOf",null==g.report?null:g.report.actions)}}let Ia=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.reviewService=ye,this.postReportService=Dt,this.auth=Mn,this.notifier=vi,this.reviewId=null,this.postId=null,this.report=null}componentName(){return"ReportDetailsComponent"}ngOnInit(){this.fetchReportDetails()}fetchReportDetails(){if(null==this.postId)return;this.loading=!0;let g=this.componentKey(S.Z.REVIEWS.GET_REPORT_DETAILS_FOR_REVIEW(this.reviewId));this.postReportService.getReportsForPost(g,this.postId),this.subscribe(g,null,(L,R)=>{let ye=R.data;ye.empty||(this.report=ye.content[0]),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}hasReport(){return null!=this.report}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(_s),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-report-details"]],inputs:{reviewId:"reviewId",postId:"postId"},features:[n.qOj],decls:5,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[4,"ngIf"],[3,"bar"],[3,"padding"],[1,"blog-post-area","bdr-b"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","mb-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["class","verified-icon profile-img-rounded","aria-hidden","false","aria-label","View Product",4,"ngIf"],[1,"content"],[1,"verification-status"],[1,"blog-post-content","pb-3"],[1,"product-gallery","mt-2"],["class","single-product-item",4,"ngIf"],[1,"container","bdr-b","my-2","pb-1"],["class","blog-post-area blog-post-area-comment mt-2 bdr-b",4,"ngFor","ngForOf"],["aria-hidden","false","aria-label","View Product",1,"verified-icon","profile-img-rounded"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],[1,"blog-post-area","blog-post-area-comment","mt-2","bdr-b"],[1,"blog-post-content"],[1,"comments-comment-item-content"],[2,"color","gray"],[1,"action-taken-by-name"]],template:function(L,R){1&L&&(n.YNc(0,qo,1,1,"util-progress",0),n.YNc(1,Ss,1,1,"util-progress",1),n.TgZ(2,"div",2),n._UZ(3,"i",3),n.qZA(),n.YNc(4,Ua,20,5,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(3),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,bi.Hw,Re.ZT,Ge.t,Yr.G],styles:[".action-taken-by-name[_ngcontent-%COMP%], .verified-icon[_ngcontent-%COMP%]{color:#44d62c}a[_ngcontent-%COMP%]{color:#44d62c;font-size:1em}.verification-status[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})();function ta(F,Xe){if(1&F&&(n.TgZ(0,"div",1)(1,"small",5),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",3),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(2),n.Oqu(null==g?null:g.attr_name),n.xp6(2),n.Oqu(null==g||null==g.value?null:g.value.toFixed(1))}}const na=function(F){return{"justify-content-around":F}};let Ae=(()=>{class F{constructor(){this.avgRating=0,this.ratings=[]}ngOnInit(){}getAvgRating(){return this.avgRating?.toFixed(1)}getRatings(){return null==this.ratings?[]:this.ratings}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-rating-view"]],inputs:{avgRating:"avgRating",ratings:"ratings"},decls:8,vars:5,consts:[[1,"all-avarage-rating","d-flex","py-3","scrollable",3,"ngClass"],[1,"single-rating-star"],[1,"avg"],[1,"icon-star"],["class","single-rating-star",4,"ngFor","ngForOf"],[1,"attr-name"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"div",1)(2,"small",2),n._uU(3,"Avg Rating"),n.qZA(),n.TgZ(4,"p",2),n._uU(5),n._UZ(6,"i",3),n.qZA()(),n.YNc(7,ta,6,2,"div",4),n.qZA()),2&L&&(n.Q6J("ngClass",n.VKq(3,na,R.getRatings().length<4)),n.xp6(5),n.Oqu(R.getAvgRating()),n.xp6(2),n.Q6J("ngForOf",R.getRatings()))},dependencies:[e.mk,e.sg],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.single-rating-star[_ngcontent-%COMP%]{margin-right:10px;padding-right:10px}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.5em!important}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff;font-size:10px!important;align-content:center}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}"]})}return F})();const Fe=function(F){return{"hide-reaction-box":F}};let le=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt){super(g,L,R),this.postService=ye,this.notifier=Dt,this.postId=null,this.onReacted=new n.vpe,this.reactionPostId=0}componentName(){return"ReactionComponent"}ngOnInit(){this.reactionPostId=0}onReactionItemClick(g){if(null==this.postId)return;let L=Ot[g],R=this.componentKey(S.Z.POSTS.SUBMIT_REACTION(this.postId));this.postService.react(R,this.postId,L);let ye=this.subscribe(R,null,(Dt,Mn)=>{this.onReacted.emit(L),ye?.unsubscribe(),this.reactionPostId=null==this.postId?0:this.postId,setTimeout(()=>{this.reactionPostId=0},5e3)});this.notifier.log("Reaction submitted: "+L)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-reaction"]],inputs:{postId:"postId"},outputs:{onReacted:"onReacted"},features:[n.qOj],decls:27,vars:6,consts:[[1,"box"],["type","checkbox",1,"field-reactions",3,"id"],[1,"text-desc"],[1,"btn-react",3,"for"],[1,"icon-smile"],[3,"ngClass"],[1,"toolbox"],[1,"overlay",3,"for"],[1,"reaction-like",3,"click"],[1,"legend-reaction"],[1,"reaction-love",3,"click"],[1,"reaction-haha",3,"click"],[1,"reaction-wow",3,"click"],[1,"reaction-sad",3,"click"],[1,"reaction-angry",3,"click"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0),n._UZ(1,"input",1),n.TgZ(2,"h3",2),n._uU(3,"Press space and after tab key to navigation"),n.qZA(),n.TgZ(4,"label",3),n._UZ(5,"i",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6)(8,"label",7),n.TgZ(9,"button",8),n.NdJ("click",function(){return R.onReactionItemClick("LIKE")}),n.TgZ(10,"span",9),n._uU(11,"Like"),n.qZA()(),n.TgZ(12,"button",10),n.NdJ("click",function(){return R.onReactionItemClick("LOVE")}),n.TgZ(13,"span",9),n._uU(14,"Love"),n.qZA()(),n.TgZ(15,"button",11),n.NdJ("click",function(){return R.onReactionItemClick("HAHA")}),n.TgZ(16,"span",9),n._uU(17,"Haha"),n.qZA()(),n.TgZ(18,"button",12),n.NdJ("click",function(){return R.onReactionItemClick("WOW")}),n.TgZ(19,"span",9),n._uU(20,"Wow"),n.qZA()(),n.TgZ(21,"button",13),n.NdJ("click",function(){return R.onReactionItemClick("SAD")}),n.TgZ(22,"span",9),n._uU(23,"Sad"),n.qZA()(),n.TgZ(24,"button",14),n.NdJ("click",function(){return R.onReactionItemClick("ANGRY")}),n.TgZ(25,"span",9),n._uU(26,"Angry"),n.qZA()()()()),2&L&&(n.xp6(1),n.MGl("id","like",R.postId,""),n.xp6(3),n.MGl("for","like",R.postId,""),n.xp6(2),n.Q6J("ngClass",n.VKq(4,Fe,R.reactionPostId===R.postId)),n.xp6(2),n.MGl("for","like",R.postId,""))},dependencies:[e.mk],styles:[".btn-react[_ngcontent-%COMP%]{font-size:20px;text-transform:uppercase;font-weight:600;letter-spacing:.05em;color:#fff;cursor:pointer;transition:.3s}.btn-react[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{opacity:.5}*[_ngcontent-%COMP%]{padding:0;margin:0}body[_ngcontent-%COMP%]{background:#e9eaed;font-family:arial,sans-serif}.field-reactions[_ngcontent-%COMP%]:checked:focus ~ .text-desc[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%], [class*=reaction-][_ngcontent-%COMP%], .text-desc[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);overflow:hidden;position:absolute;top:0;left:0}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%], .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:focus ~ .text-desc[_ngcontent-%COMP%]{clip:auto;overflow:visible;opacity:1}.main-title[_ngcontent-%COMP%]{background:#3a5795;padding:10px;color:#fff;text-align:center;font-size:16px;text-shadow:1px 1px 3px rgba(0,0,0,.3)}.text-desc[_ngcontent-%COMP%]{font-weight:400;text-align:center;transform:translateY(-50px);white-space:nowrap;font-size:13px;width:100%}[class*=reaction-][_ngcontent-%COMP%]{border:none;background-image:url(http://deividmarques.github.io/facebook-reactions-css/assets/images/facebook-reactions.png);background-color:transparent;display:block;cursor:pointer;height:48px;position:absolute;width:48px;z-index:11;top:-21px;transform-origin:50% 100%;transform:scale(.1);transition:all .3s;outline:none;will-change:transform;opacity:0}.box[_ngcontent-%COMP%]{position:relative}.overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:9;visibility:hidden}.field-reactions[_ngcontent-%COMP%]:focus ~ .label-reactions[_ngcontent-%COMP%]{border-color:#5890ff4d}.field-reactions[_ngcontent-%COMP%]:checked:focus ~ .label-reactions[_ngcontent-%COMP%]{border-color:transparent}.label-reactions[_ngcontent-%COMP%]{background:url(https://cdn4.iconfinder.com/data/icons/facebook-likes/100/1.png) no-repeat 0 0;border:2px dotted transparent;display:block;height:100px;margin:0 auto;width:100px;color:transparent;cursor:pointer}.toolbox[_ngcontent-%COMP%]{background:#fff;height:52px;box-shadow:0 0 0 1px #00000014,0 2px 2px #00000026;width:300px;border-radius:40px;top:-50px;left:0;position:absolute;visibility:hidden;opacity:0;transition:opacity .15s}.legend-reaction[_ngcontent-%COMP%]{background:rgba(0,0,0,.75);border-radius:10px;box-sizing:border-box;color:#fff;display:inline-block;font-size:11px;text-overflow:ellipsis;font-weight:700;line-height:20px;max-width:100%;opacity:0;overflow:hidden;padding:0 6px;transition:opacity 50ms ease;left:50%;position:absolute;text-align:center;top:-28px;transform:translate(-50%)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]{transform:scale(.8) translateY(-40px)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:hover, .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:focus{transition:all .2s ease-in;transform:scale(1) translateY(-35px)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:hover .legend-reaction[_ngcontent-%COMP%], .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:focus .legend-reaction[_ngcontent-%COMP%]{opacity:1}.box[_ngcontent-%COMP%]:hover .toolbox[_ngcontent-%COMP%]{opacity:1}.box[_ngcontent-%COMP%]:hover .toolbox[_ngcontent-%COMP%]{visibility:visible}.box[_ngcontent-%COMP%]:hover .reaction-love[_ngcontent-%COMP%]{transition-delay:.06s}.box[_ngcontent-%COMP%]:hover .reaction-haha[_ngcontent-%COMP%]{transition-delay:.09s}.box[_ngcontent-%COMP%]:hover .reaction-wow[_ngcontent-%COMP%]{transition-delay:.12s}.box[_ngcontent-%COMP%]:hover .reaction-sad[_ngcontent-%COMP%]{transition-delay:.15s}.box[_ngcontent-%COMP%]:hover .reaction-angry[_ngcontent-%COMP%]{transition-delay:.18s}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]{transform:scale(.8) translateY(-40px)}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:hover, .field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:focus{transition:all .2s ease-in;transform:scale(1) translateY(-35px)}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:hover .legend-reaction[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:focus .legend-reaction[_ngcontent-%COMP%]{opacity:1}.field-reactions[_ngcontent-%COMP%]:checked ~ .toolbox[_ngcontent-%COMP%]{opacity:1}.field-reactions[_ngcontent-%COMP%]:checked ~ .toolbox[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:checked ~ .overlay[_ngcontent-%COMP%]{visibility:visible}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-love[_ngcontent-%COMP%]{transition-delay:.03s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-haha[_ngcontent-%COMP%]{transition-delay:.09s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-wow[_ngcontent-%COMP%]{transition-delay:.12s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-sad[_ngcontent-%COMP%]{transition-delay:.15s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-angry[_ngcontent-%COMP%]{transition-delay:.18s}.reaction-like[_ngcontent-%COMP%]{left:0;background-position:0 -144px}.reaction-love[_ngcontent-%COMP%]{background-position:-48px 0;left:50px}.reaction-haha[_ngcontent-%COMP%]{background-position:-96px 0;left:100px}.reaction-wow[_ngcontent-%COMP%]{background-position:-144px 0;left:150px}.reaction-sad[_ngcontent-%COMP%]{background-position:-192px 0;left:200px}.reaction-angry[_ngcontent-%COMP%]{background-position:-240px 0;left:250px}.hide-reaction-box[_ngcontent-%COMP%]{display:none}"]})}return F})();function Qe(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",30),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onBlockChainMarkClick())}),n.qZA()}}function Ht(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-icon",31),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onVerifiedMarkClick())}),n._uU(1,"check_circle "),n.qZA()}}function Qn(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-icon",32),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDialog())}),n._uU(1,"check_circle "),n.qZA()}}function Ni(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDialog())}),n.TgZ(1,"a"),n._uU(2,"VERIFY"),n.qZA()()}}function Zo(F,Xe){1&F&&(n.TgZ(0,"small",34),n._uU(1,"RECONSIDER?"),n.qZA())}function Cl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDetails())}),n.TgZ(1,"a"),n._uU(2),n.YNc(3,Zo,2,0,"small",33),n.qZA()()}if(2&F){const g=n.oxw();n.xp6(2),n.hij(" VERIFICATION STATUS: ",null==g.review?null:g.review.verification_status," "),n.xp6(1),n.Q6J("ngIf",null==g.review?null:g.review.verification_reconsiderable)}}function ia(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onEditReviewClick())}),n.TgZ(1,"a"),n._uU(2,"EDIT REVIEW"),n.qZA()()}}function sc(F,Xe){if(1&F&&(n.TgZ(0,"div",38)(1,"a",39),n._UZ(2,"img",40),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function Lr(F,Xe){1&F&&(n.TgZ(0,"div",38)(1,"a",41),n._uU(2,"View All"),n.qZA()())}function Tl(F,Xe){if(1&F&&(n.TgZ(0,"div",35),n.YNc(1,sc,3,2,"div",36),n.YNc(2,Lr,3,0,"div",37),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.takeReviewThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.review.thumbs.length>3)}}const Dl=function(F){return{"background-tint":F}},Qo=function(F){return[F]},kc=function(F){return{"product-menu-bar":F}};let El=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R),this.reviewService=ye,this.dialog=Dt,this.auth=Mn,this.notifier=vi,this.reportService=Fo,this.review=null,this.tinted=!1,this.showMenuBox=!1}componentName(){return"SingleReviewItemComponent"}ngOnInit(){}onReacted(g){this.reloadReview()}reloadReview(){if(null==this.review||null==this.review.id)return;let g=this.componentKey(S.Z.REVIEWS.LOAD_REVIEW(this.review.slug));this.reviewService.fetchReview(g,this.review?.product_slug,this.review?.slug),this.subscribe(g,null,(L,R)=>{this.review=R.data})}takeReviewThumbs(g){return null==this.review||g<1?[]:this.review.thumbs.length{console.log(`Dialog result: ${ye}`)})}onItemClick(g){this.showMenuBox=!this.showMenuBox}openReviewDetails(){this.showMenuBox?this.showMenuBox=!1:this.navigate("/reviews/"+this.review?.product_slug+"/"+this.review?.slug+"/"+this.review?.post?.id,g=>{})}onEditReviewClick(){null!=this.review&&("VERIFIED"===this.review.verification_status?this.showVerifiedReviewEditWarning():this.openEditReviewDialog())}showVerifiedReviewEditWarning(){const g=this.dialog.open(St);let L=g.componentInstance;L.title="YOU'RE EDITING A VERIFIED REVIEW!!",L.message="\n If you update a verified review, it'll cause this review to be unverified automatically.\n In this case you'll need to apply for verification again.\n ",L.positiveBtnText="EDIT",L.negativeBtnTxt="CANCEL",L.onPositiveBtn.subscribe(()=>{this.openEditReviewDialog(),g.close()}),L.onNegativeBtn.subscribe(()=>{g.close()}),g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}openEditReviewDialog(){if(null==this.review)return;const g=this.dialog.open(rt);let L=g.componentInstance;L.review=this.review,L.productId=this.review.product_id,g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}isMine(){if(!this.auth.isAuthenticated())return!1;const g=this.auth.getAuth();return this.review?.post?.posted_by_username===g.username}canRequestVerification(){return this.isMine()&&null==this.review?.verification_status}hasVerification(){return this.isMine()&&null!=this.review?.verification_status}isVerified(){return"VERIFIED"===this.review?.verification_status}openVerificationDialog(){if(null==this.review)return;if(null!=this.review.verification_status)return void this.openVerificationDetails();const g=this.dialog.open(Ti);g.componentInstance.reviewId=this.review.id,g.afterClosed().subscribe(R=>{this.reloadReview()})}resolveReportView(){if(null==this.review?.post)return;let g=this.componentKey(S.Z.REVIEWS.GET_REPORT_EXISTS(this.review?.post.id));this.reportService.getReportCountForPost(g,this.review.post.id),this.subscribe(g,null,(L,R)=>{R.data>0?this.openReportDetails():this.openReportDialog(),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}openReportDialog(){if(null==this.review?.post)return;const g=this.dialog.open(io),L=g.componentInstance;L.reviewId=this.review.id,L.postId=this.review.post?.id,g.afterClosed().subscribe(R=>{this.reloadReview()})}onVerifiedMarkClick(){this.notifier.success("Verified Review","This review has been verified by "+this.review?.verified_by)}openVerificationDetails(){if(null==this.review)return;const g=this.dialog.open(jr);g.componentInstance.reviewId=this.review.id,g.afterClosed().subscribe(R=>{})}openReportDetails(){if(null==this.review?.post)return;const g=this.dialog.open(Ia),L=g.componentInstance;L.reviewId=this.review.id,L.postId=this.review.post.id,g.afterClosed().subscribe(R=>{})}isBlockChained(){return null!=this.review&&this.review.chained}onBlockChainMarkClick(){if(null==this.review)return;let g=this.review.hash;this.notifier.info("Info","Blockchain Digest: "+g,()=>{xo.g.copyToClipboard(g)},5e3)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(Re.uw),n.Y36(_e.e),n.Y36(te.l),n.Y36(_s))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-single-review-item"]],inputs:{review:"review",tinted:"tinted"},features:[n.qOj],decls:55,vars:36,consts:[[1,"blog-post-area","mt-4",3,"ngClass"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","my-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"profile-img","profile-img-rounded",3,"src","routerLink"],[1,"content","ms-2"],[3,"routerLink"],[1,"user-name"],[1,"top-icons-area","pt-2"],["style","height: 16px; width: auto; margin-right: 10px;","src","assets/icons/blockchain.svg",3,"click",4,"ngIf"],["class","verified-icon","aria-hidden","false","aria-label","View Product",3,"click",4,"ngIf"],["class","unverified-icon","aria-hidden","false","aria-label","View Product",3,"click",4,"ngIf"],["aria-hidden","false","aria-label","View Product",1,"inventory-icon",3,"routerLink"],[3,"ngClass","click"],[1,"icon-dot-3"],[1,"productMenuBox"],[3,"click",4,"ngIf"],[3,"click"],[3,"avgRating","ratings"],[1,"blog-post-content","py-2",3,"click"],[2,"color","green"],[2,"color","darkgoldenrod"],["class","product-gallery",4,"ngIf"],[1,"blog-post-comment-section","d-flex","justify-content-around","bdr-b","py-3","mt-2"],[1,"react","d-flex","align-items-center"],[3,"postId","onReacted"],[1,"comment","d-flex","align-items-center",3,"click"],[1,"icon-chat"],[1,"share","d-flex","align-items-center"],[1,"icon-paper-plane"],["src","assets/icons/blockchain.svg",2,"height","16px","width","auto","margin-right","10px",3,"click"],["aria-hidden","false","aria-label","View Product",1,"verified-icon",3,"click"],["aria-hidden","false","aria-label","View Product",1,"unverified-icon",3,"click"],["style","color: #4AD295;",4,"ngIf"],[2,"color","#4AD295"],[1,"product-gallery"],["class","single-product-item",4,"ngFor","ngForOf"],["class","single-product-item",4,"ngIf"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],["href","#"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),n._UZ(4,"img",4),n.TgZ(5,"div",5)(6,"a",6)(7,"h4",7),n._uU(8),n.qZA()(),n.TgZ(9,"p"),n._uU(10),n.ALo(11,"readableDate"),n.qZA()()(),n.TgZ(12,"div",8),n.YNc(13,Qe,1,0,"img",9),n.YNc(14,Ht,2,0,"mat-icon",10),n.YNc(15,Qn,2,0,"mat-icon",11),n.TgZ(16,"mat-icon",12),n._uU(17,"inventory_2 "),n.qZA(),n.TgZ(18,"div",13),n.NdJ("click",function(Dt){return R.onItemClick(Dt)}),n._UZ(19,"i",14),n.TgZ(20,"div",15)(21,"ul"),n.YNc(22,Ni,3,0,"li",16),n.YNc(23,Cl,4,2,"li",16),n.YNc(24,ia,3,0,"li",16),n.TgZ(25,"li",17),n.NdJ("click",function(){return R.resolveReportView()}),n.TgZ(26,"a"),n._uU(27,"REPORT"),n.qZA()()()()()()(),n._UZ(28,"app-rating-view",18),n.TgZ(29,"div",19),n.NdJ("click",function(){return R.openReviewDetails()}),n.TgZ(30,"h5"),n._uU(31),n.qZA(),n.TgZ(32,"p",20),n._uU(33,"Pros"),n.qZA(),n.TgZ(34,"p"),n._uU(35),n.qZA(),n._UZ(36,"br"),n.TgZ(37,"p",21),n._uU(38,"Cons"),n.qZA(),n.TgZ(39,"p"),n._uU(40),n.qZA()(),n.YNc(41,Tl,3,2,"div",22),n.qZA(),n.TgZ(42,"div",23)(43,"div",24)(44,"app-reaction",25),n.NdJ("onReacted",function(Dt){return R.onReacted(Dt)}),n.qZA(),n.TgZ(45,"h4",17),n.NdJ("click",function(Dt){return R.onReactionCountClick(Dt)}),n._uU(46),n.qZA()(),n.TgZ(47,"div",26),n.NdJ("click",function(){return R.openReviewDetails()}),n._UZ(48,"i",27),n.TgZ(49,"h4"),n._uU(50),n.qZA(),n._UZ(51,"h4"),n.qZA(),n.TgZ(52,"div",28),n._UZ(53,"i",29)(54,"h4"),n.qZA()()()),2&L&&(n.Q6J("ngClass",n.VKq(26,Dl,R.tinted)),n.xp6(4),n.s9C("src",null!=(null==R.review||null==R.review.post?null:R.review.post.posted_by_photo)?null==R.review||null==R.review.post?null:R.review.post.posted_by_photo:"assets/img/default-avatar.png",n.LSH),n.Q6J("routerLink",n.VKq(28,Qo,"/u/"+(null==R.review||null==R.review.post?null:R.review.post.posted_by_username))),n.xp6(2),n.Q6J("routerLink",n.VKq(30,Qo,"/u/"+(null==R.review||null==R.review.post?null:R.review.post.posted_by_username))),n.xp6(2),n.Oqu(null==R.review?null:R.review.posted_by_name),n.xp6(2),n.Oqu(n.xi3(11,23,null==R.review?null:R.review.updated_at,!0)),n.xp6(3),n.Q6J("ngIf",R.isBlockChained()),n.xp6(1),n.Q6J("ngIf",R.isVerified()),n.xp6(1),n.Q6J("ngIf",R.isMine()&&!R.isVerified()),n.xp6(1),n.Q6J("routerLink",n.VKq(32,Qo,"/products/"+(null==R.review?null:R.review.product_id)+"/"+(null==R.review?null:R.review.product_slug))),n.xp6(2),n.Q6J("ngClass",n.VKq(34,kc,R.showMenuBox)),n.xp6(4),n.Q6J("ngIf",R.canRequestVerification()),n.xp6(1),n.Q6J("ngIf",R.hasVerification()),n.xp6(1),n.Q6J("ngIf",R.isMine()),n.xp6(4),n.Q6J("avgRating",null==R.review?null:R.review.average_rating)("ratings",null==R.review?null:R.review.ratings),n.xp6(3),n.Oqu(null==R.review?null:R.review.title),n.xp6(4),n.Oqu(null==R.review?null:R.review.pros),n.xp6(5),n.Oqu(null==R.review?null:R.review.cons),n.xp6(1),n.Q6J("ngIf",null!=R.review&&R.review.thumbs.length>0),n.xp6(3),n.Q6J("postId",null==R.review||null==R.review.post?null:R.review.post.id),n.xp6(2),n.hij("(",null==R.review||null==R.review.post||null==R.review.post.reaction_stats?null:R.review.post.reaction_stats.total,")"),n.xp6(4),n.hij("(",null==R.review||null==R.review.post||null==R.review.post.reaction_stats?null:R.review.post.reaction_stats.comments,")"))},dependencies:[e.mk,e.sg,e.O5,l.rH,bi.Hw,Ae,le,Yr.G],styles:['.blog-post-area[_ngcontent-%COMP%] .blog-post-top-left[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.7rem}.user-name[_ngcontent-%COMP%]{color:#44d62c!important}.top-icons-area[_ngcontent-%COMP%]{display:flex}.inventory-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0}.verified-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0;color:#44d62c}.unverified-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0;color:gray}.flaticon-more[_ngcontent-%COMP%]{font-size:1.3em}.view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none;position:relative;cursor:pointer}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:10px;padding:0 10px;list-style:none;width:250px;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return F})();function wa(F,Xe){1&F&&n._UZ(0,"util-progress",7),2&F&&n.Q6J("bar",!0)}function Xo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",8)(1,"div",4)(2,"div",9)(3,"div",10)(4,"label",11)(5,"small"),n._uU(6,"From"),n.qZA()(),n._UZ(7,"input",12),n.qZA(),n.TgZ(8,"div",10)(9,"label",13)(10,"small"),n._uU(11,"To"),n.qZA()(),n.TgZ(12,"input",14),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.qZA()()(),n.TgZ(13,"div",15)(14,"div",16)(15,"div",17)(16,"label",18)(17,"small"),n._uU(18,"Verification"),n.qZA()(),n.TgZ(19,"select",19),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(20,"option",20),n._uU(21,"Choose"),n.qZA(),n.TgZ(22,"option",21),n._uU(23,"All Reviews"),n.qZA(),n.TgZ(24,"option",22),n._uU(25,"Only Verified"),n.qZA()()()(),n.TgZ(26,"div",16)(27,"div",17)(28,"label",23)(29,"small"),n._uU(30,"Rating"),n.qZA()(),n.TgZ(31,"select",24),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(32,"option",20),n._uU(33,"Choose"),n.qZA(),n.TgZ(34,"option",25),n._uU(35,"1"),n.qZA(),n.TgZ(36,"option",26),n._uU(37,"2"),n.qZA(),n.TgZ(38,"option",27),n._uU(39,"3"),n.qZA(),n.TgZ(40,"option",28),n._uU(41,"4"),n.qZA(),n.TgZ(42,"option",29),n._uU(43,"5"),n.qZA(),n.TgZ(44,"option",30),n._uU(45,"6"),n.qZA(),n.TgZ(46,"option",31),n._uU(47,"7"),n.qZA(),n.TgZ(48,"option",32),n._uU(49,"8"),n.qZA(),n.TgZ(50,"option",33),n._uU(51,"9"),n.qZA(),n.TgZ(52,"option",34),n._uU(53,"10"),n.qZA()()()(),n.TgZ(54,"div",16)(55,"div",17)(56,"label",35)(57,"small"),n._uU(58,"Sort"),n.qZA()(),n.TgZ(59,"select",36),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(60,"option",20),n._uU(61,"Choose"),n.qZA(),n.TgZ(62,"option",37),n._uU(63,"Ascending"),n.qZA(),n.TgZ(64,"option",38),n._uU(65,"Descending"),n.qZA()()()()()()()}if(2&F){const g=n.oxw();n.xp6(7),n.Q6J("formControl",g.fromDateFilter),n.xp6(5),n.Q6J("formControl",g.toDateFilter),n.xp6(7),n.Q6J("formControl",g.verificationFilter),n.xp6(1),n.Q6J("selected",""===g.verificationFilter.value),n.xp6(11),n.Q6J("formControl",g.ratingFilter),n.xp6(1),n.Q6J("selected",""===g.ratingFilter.value),n.xp6(27),n.Q6J("formControl",g.sortFilter),n.xp6(1),n.Q6J("selected",""===g.sortFilter.value)}}function Pr(F,Xe){1&F&&n._UZ(0,"util-progress",39),2&F&&n.Q6J("padding",50)}function Ms(F,Xe){if(1&F&&(n.TgZ(0,"div"),n._UZ(1,"app-single-review-item",41),n.qZA()),2&F){const g=Xe.$implicit;n.xp6(1),n.Q6J("review",g)}}function As(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Ms,2,1,"div",40),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.reviews?null:g.reviews.content)}}function qr(F,Xe){1&F&&(n.TgZ(0,"a",42),n._uU(1," View All Reviews "),n.qZA())}let Bs=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.eventBus=g,this.router=L,this.subContainer=R,this.reviewService=ye,this.productId=0,this.username=null,this.reviews=null,this.verificationFilter=new Z.NI(""),this.ratingFilter=new Z.NI(""),this.sortFilter=new Z.NI(""),this.fromDateFilter=new Z.NI(""),this.toDateFilter=new Z.NI("")}componentName(){return"ReviewListComponent"}ngOnInit(){this.fetchReviews({})}fetchReviews(g){null!=this.productId&&this.productId>0?this.fetchProductReviews(g):null!=this.username&&this.fetchUserReviews(g)}fetchProductReviews(g){this.loading=!0;let L=this.componentKey(S.Z.REVIEWS.LOADED_PRODUCT_REVIEWS(this.productId));this.reviewService.fetchProductReviews(L,this.productId,g),this.subscribe(L,null,(R,ye)=>{this.reviews=ye.data,this.loading=!1})}fetchUserReviews(g){if(null==this.username)return;this.loading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_USER_REVIEWS(this.username));this.reviewService.fetchUserReviews(L,this.username,g),this.subscribe(L,null,(R,ye)=>{this.reviews=ye.data,this.loading=!1})}onFilterChange(g){this.fetchReviews({verification_status:null==this.verificationFilter.value?"":this.verificationFilter.value,rating:null==this.ratingFilter.value?"":this.ratingFilter.value,sort_direction:null==this.sortFilter.value?"":this.sortFilter.value,from_date:""===this.fromDateFilter.value?"":new Date(this.fromDateFilter.value?this.fromDateFilter.value:""),to_date:""===this.toDateFilter.value?"":new Date(this.toDateFilter.value?this.toDateFilter.value:"")})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-review-list"]],inputs:{productId:"productId",username:"username"},features:[n.qOj],decls:7,vars:5,consts:[[3,"bar",4,"ngIf"],["class","select-category-area pt-4",4,"ngIf"],[3,"padding",4,"ngIf"],[4,"ngIf"],[1,"container"],[1,"view-all-reviews","pb-3","text-end"],["href","#",4,"ngIf"],[3,"bar"],[1,"select-category-area","pt-4"],[1,"date-filters","mb-2"],[1,"single-date-filter"],["for","from_date"],["id","from_date","type","date","name","from_date",3,"formControl"],["for","to_date"],["id","to_date","type","date","name","to_date",3,"formControl","change"],[1,"row"],[1,"col"],[1,"single-category-item"],["for","verification"],["id","verification","aria-label","Taste",1,"form-select",3,"formControl","change"],["value","",3,"selected"],["value",""],["value","VERIFIED"],["for","rating"],["id","rating","aria-label","1",1,"form-select",3,"formControl","change"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["value","8"],["value","9"],["value","10"],["for","sort"],["id","sort","aria-label","Select",1,"form-select",3,"formControl","change"],["value","ASC"],["value","DESC"],[3,"padding"],[4,"ngFor","ngForOf"],[3,"review"],["href","#"]],template:function(L,R){1&L&&(n.YNc(0,wa,1,1,"util-progress",0),n.YNc(1,Xo,66,8,"section",1),n.YNc(2,Pr,1,1,"util-progress",2),n.YNc(3,As,2,1,"div",3),n.TgZ(4,"div",4)(5,"div",5),n.YNc(6,qr,2,0,"a",6),n.qZA()()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(3),n.Q6J("ngIf",!(null!=R.reviews&&R.reviews.last)))},dependencies:[e.sg,e.O5,Z.YN,Z.Kr,Z.Fj,Z.EJ,Z.JJ,Z.oH,Ge.t,El],styles:["input[type=date][_ngcontent-%COMP%]{color:gray!important;background-color:#444;max-width:100%;padding:5px 10px;border-radius:.25em;border:.5px solid black;margin-top:5px}.single-date-filter[_ngcontent-%COMP%]{display:flex;flex-direction:column}.date-filters[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]})}return F})();var Ro=C(6929);function Va(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("padding",70)}function Sl(F,Xe){if(1&F&&(n.TgZ(0,"div",30)(1,"div",31)(2,"h2",32),n._uU(3),n.qZA(),n.TgZ(4,"h3"),n._uU(5),n.qZA(),n.TgZ(6,"span",32),n._uU(7),n.qZA()()()),2&F){const g=n.oxw();n.xp6(3),n.Oqu(g.product.name),n.xp6(2),n.Oqu(g.product.vendor_name),n.xp6(2),n.Oqu(g.product.description)}}function Gl(F,Xe){1&F&&n._UZ(0,"util-progress",33),2&F&&n.Q6J("size",30)("padding",70)}function Hs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",34)(1,"div",4)(2,"div",35),n._UZ(3,"img",36),n.TgZ(4,"div",37)(5,"h4"),n._uU(6),n.qZA(),n.TgZ(7,"p"),n._uU(8,"Your opinion matters. Let's help our community by posting a review."),n.qZA()()(),n.TgZ(9,"div",38)(10,"a",39),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openPostReviewDialog())}),n._UZ(11,"i",40),n.TgZ(12,"h4"),n._uU(13," Post a review"),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(3),n.s9C("src",g.isLoggedIn()?g.getAvatar():"assets/img/default-avatar.png",n.LSH),n.s9C("alt",g.getAuth().name),n.xp6(3),n.hij("Hey, ",g.getAuth().name,"")}}function ja(F,Xe){if(1&F&&n._UZ(0,"app-single-review-item",44),2&F){const g=n.oxw(2);n.Q6J("review",g.myReview)("tinted",!0)}}function es(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"h5",9),n._uU(2,"YOUR REVIEW"),n.qZA(),n.TgZ(3,"div",41),n._UZ(4,"div",42),n.YNc(5,ja,1,2,"app-single-review-item",43),n.qZA()()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",null!=g.myReview)}}function ts(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",45),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCriticReviewsMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showCriticReviewsMenu)("items",g.getMenuItems())}}function Wl(F,Xe){1&F&&n._UZ(0,"util-progress",46),2&F&&n.Q6J("bar",!0)}function gs(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}const ns=function(F){return{"background-image":F}};let vc=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){super(g,L,R),this.auth=Dt,this.reviewService=Mn,this.notifier=vi,this.productService=Fo,this.dialog=Ya,this.seoTitle=Rd,this.seoMeta=kd,this.carouselItems=[],this.productId=0,this.productSlug="",this.myReview=null,this.avgRatings=[],this.product=null,this.myReviewLoading=!1,this.criticReviews=null,this.criticReviewers=[],this.criticReviewsPeriod="THIS MONTH",this.criticReviewsLoading=!1,this.showCriticReviewsMenu=!1,this.badgeForCritic="Critic",this.productId=ye.snapshot.params.id,this.productSlug=ye.snapshot.params.slug}componentName(){return"ProductDetailsComponent"}ngOnInit(){this.registerSubscriptions(),this.fetchProductDetails()}fetchProductDetails(){let g=this.componentKey(S.Z.PRODUCTS.PRODUCT_DETAILS_LOADED(this.productSlug));this.productService.fetchDetails(g,this.productSlug),this.subscribe(g,null,(L,R)=>{this.product=R.data,this.resolveSeo(this.product),this.fetchAvgRating(this.productId),this.auth.isAuthenticated()&&this.fetchMyReview(this.productId);let ye=Nt.b.calculateRange(this.criticReviewsPeriod.replace(" ","_"));this.fetchCriticReviews({page:0,from_date:ye?.fromDate,to_date:ye?.toDate,slice:!0,badge:this.badgeForCritic})})}fetchMyReview(g){this.myReviewLoading=!0;let L=this.componentKey(S.Z.REVIEWS.LOAD_MY_REVIEW(g));this.reviewService.fetchMyReview(L,this.productId),this.subscribe(L,null,(R,ye)=>{this.myReview=ye.data,this.myReviewLoading=!1}),this.subscribe(this.getErrorKey(L),null,(R,ye)=>{this.myReviewLoading=!1})}fetchAvgRating(g){let L=this.componentKey(S.Z.REVIEWS.LOADED_PRODUCT_AVG_RATINGS());this.productService.fetchAvgRatings(L,g),this.subscribe(L,null,(R,ye)=>{this.avgRatings=ye.data})}getMenuItems(){return bt.$}fetchCriticReviews(g){this.criticReviewsLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_CRITIC_REVIEWS());this.reviewService.fetchProductReviews(L,this.productId,g),this.subscribe(L,null,(R,ye)=>{this.criticReviews=ye.data,this.criticReviewers=F.mapToCarouselItems(ye.data),this.criticReviewsLoading=!1})}static mapToCarouselItems(g){return g.content.map(L=>({id:L?.id,slug:L?.slug,title:L?.posted_by_name,img:null!=L?.posted_by_avatar?L?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+L.id+"/"+L.post_id,badges:[]}))}onCriticReviewsMenuItemClick(g){this.showCriticReviewsMenu&&(this.showCriticReviewsMenu=!1),this.criticReviewsPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic})}isLoggedIn(){return this.auth.isAuthenticated()}registerSubscriptions(){let g=this.globalKey(S.Z.REVIEWS.MY_REVIEW_POSTED(this.productId));this.subscribe(g,null,(L,R)=>{this.myReview=R.data,this.myReviewLoading=!1})}onUserItemClick(g){this.notifier.log(g)}strSubstring(g,L){let R=w.m.takeOnly(g,L);return null!=g&&g.length>L&&(R+="..See More.."),R}getAuth(){return this.auth.getAuth()}getAvatar(){return this.getAuth().avatar??"assets/img/default-avatar.png"}openPostReviewDialog(){if(!this.auth.isAuthenticated())return void this.router.navigate(["/login"]);const g=this.dialog.open(rt,{disableClose:!0});g.componentInstance.productId=this.productId,g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}resolveSeo(g){null!=g&&this.initSeoItems(this.seoTitle,this.seoMeta,"Review - Rating for "+g.name,g.description,["Buy "+g.name," review,"+g.name," rating, where to buy"],null,null,g?.cover_photo,this.getPermalink())}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(_e.e),n.Y36(se.F),n.Y36(te.l),n.Y36(Qt.M),n.Y36(Re.uw),n.Y36(nn.Dx),n.Y36(nn.h_))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-product-details"]],features:[n.qOj],decls:56,vars:19,consts:[[1,"product-single-post",3,"ngStyle"],[3,"padding",4,"ngIf"],["class","container d-flex align-items-end h-100 blurry-background",4,"ngIf"],["id","my_review",1,"rating-reviews-area","bdr-b","blog-post-area"],[1,"container"],[3,"ratings","avgRating"],[3,"size","padding",4,"ngIf"],["class","comunity-post-area pt-4 pb-3 mt-3 bdr-top",4,"ngIf"],[4,"ngIf"],[1,"section-header"],[1,"reviewers-section","pb-2","mt-2","bdr-b"],[1,"reviewers-content","section-title","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items"],[3,"bar",4,"ngIf"],[1,"bdr-top","mt-4"],[1,"container","section-header"],[3,"productId"],[1,"youtube-reviews-section","bdr-b","bdr-top","mb-5","pb-3"],[1,"section-title","d-flex","justify-content-between","my-4"],[3,"items","design"],[1,"owl-carousel","youtube-reviews"],[1,"item","single-review-area"],["src","../../../../../assets/img/youtube-reviews/youtube-review.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-2.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-3.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-4.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-5.png","alt",""],[3,"padding"],[1,"container","d-flex","align-items-end","h-100","blurry-background"],[1,"recipe-content","pb-4"],[1,"excerpt"],[3,"size","padding"],[1,"comunity-post-area","pt-4","pb-3","mt-3","bdr-top"],[1,"comunity-post","d-flex","mb-4"],[1,"profile-img-bg","profile-img-rounded",3,"src","alt"],[1,"content","ms-3"],[1,"comunity-add-post","d-flex","justify-content-end","align-items-center"],[1,"d-flex","align-items-center",3,"click"],[1,"flaticon-plus"],[1,"row","bdr-top","mb-3"],[1,"section-title","ms-2"],[3,"review","tinted",4,"ngIf"],[3,"review","tinted"],[3,"showMenubar","items","menuItemClick"],[3,"bar"]],template:function(L,R){1&L&&(n.TgZ(0,"div")(1,"section",0),n.YNc(2,Va,1,1,"util-progress",1),n.YNc(3,Sl,8,3,"div",2),n.qZA(),n.TgZ(4,"section",3)(5,"div",4),n._UZ(6,"app-rating-view",5),n.YNc(7,Gl,1,2,"util-progress",6),n.YNc(8,Hs,14,3,"section",7),n.qZA(),n.YNc(9,es,6,1,"div",8),n.qZA(),n.TgZ(10,"h5",9),n._uU(11,"CRITIC REVIEWS"),n.qZA(),n.TgZ(12,"section",10)(13,"div",4)(14,"div",11),n.NdJ("click",function(){return R.showCriticReviewsMenu=!R.showCriticReviewsMenu}),n.TgZ(15,"h6"),n._uU(16,"CHOOSE PERIOD"),n.qZA(),n.TgZ(17,"a")(18,"h5"),n._uU(19),n.qZA()(),n._UZ(20,"img",12),n.qZA(),n.YNc(21,ts,1,2,"app-menubox",13),n._UZ(22,"app-small-carousel",14),n.YNc(23,Wl,1,1,"util-progress",15),n.YNc(24,gs,3,0,"div",8),n.qZA()(),n.TgZ(25,"section",16)(26,"h5",17),n._uU(27,"USER REVIEWS"),n.qZA(),n._UZ(28,"app-review-list",18),n.qZA(),n.TgZ(29,"section",19)(30,"div",4)(31,"div",20)(32,"h5"),n._uU(33,"REVIEWS ON YOUTUBE"),n.qZA(),n.TgZ(34,"h5"),n._uU(35,"VIEW ALL"),n.qZA()(),n._UZ(36,"app-small-carousel",21),n.TgZ(37,"div",22)(38,"div",23),n._UZ(39,"img",24),n.qZA(),n.TgZ(40,"div",23),n._UZ(41,"img",25),n.qZA(),n.TgZ(42,"div",23),n._UZ(43,"img",26),n.qZA(),n.TgZ(44,"div",23),n._UZ(45,"img",27),n.qZA(),n.TgZ(46,"div",23),n._UZ(47,"img",28),n.qZA(),n.TgZ(48,"div",23),n._UZ(49,"img",25),n.qZA(),n.TgZ(50,"div",23),n._UZ(51,"img",26),n.qZA(),n.TgZ(52,"div",23),n._UZ(53,"img",27),n.qZA(),n.TgZ(54,"div",23),n._UZ(55,"img",28),n.qZA()()()()()),2&L&&(n.Q6J("@dataLoaded",null==R.product?"loading":"loaded"),n.xp6(1),n.Q6J("ngStyle",n.VKq(17,ns,"url("+(null==R.product?null:R.product.cover_photo)+")")),n.xp6(1),n.Q6J("ngIf",null==R.product),n.xp6(1),n.Q6J("ngIf",null!=R.product),n.xp6(3),n.Q6J("ratings",R.avgRatings)("avgRating",null==R.product?null:R.product.average_rating),n.xp6(1),n.Q6J("ngIf",R.myReviewLoading),n.xp6(1),n.Q6J("ngIf",!R.isLoggedIn()||null==R.myReview&&!R.myReviewLoading),n.xp6(1),n.Q6J("ngIf",R.isLoggedIn()&&0==R.myReviewLoading),n.xp6(10),n.Oqu(R.criticReviewsPeriod),n.xp6(2),n.Q6J("ngIf",!R.criticReviewsLoading),n.xp6(1),n.Q6J("items",R.criticReviewers),n.xp6(1),n.Q6J("ngIf",R.criticReviewsLoading),n.xp6(1),n.Q6J("ngIf",!R.criticReviewsLoading&&0===R.criticReviewers.length),n.xp6(4),n.Q6J("productId",R.productId),n.xp6(8),n.Q6J("items",R.carouselItems)("design","youtube-reviews"))},dependencies:[e.O5,e.PC,Ge.t,Dn.q,El,Ae,Bs,Ro.v],styles:[".blurry-background[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}.section-header[_ngcontent-%COMP%]{padding:1em;font-weight:700}"]})}return F})();var Os=function(F){return F.STATUS="STATUS",F.USER_REVIEW="USER_REVIEW",F}(Os||{}),Is=function(F){return F.STATUS="STATUS",F.USER_REVIEW="USER_REVIEW",F.REACTION="REACTION",F}(Is||{});function Za(F,Xe){1&F&&(n.TgZ(0,"span"),n._uU(1,"public"),n.qZA())}function za(F,Xe){1&F&&(n.TgZ(0,"span"),n._uU(1,"followers"),n.qZA())}function $l(F,Xe){1&F&&(n.TgZ(0,"div",29),n._UZ(1,"util-progress",30),n.qZA()),2&F&&(n.xp6(1),n.Q6J("bar",!0)("determinate",!1))}function Tr(F,Xe){if(1&F&&n._UZ(0,"textarea",31),2&F){const g=n.oxw(2);n.Q6J("formControl",g.content)}}function Lc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",32),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeExImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit,n.LSH)}function Kl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",32),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Rs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"h2"),n._uU(3,"Create a Post"),n.qZA(),n.TgZ(4,"a",4),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onCancel.emit(!0))}),n._UZ(5,"i",5),n.qZA()(),n.TgZ(6,"div",6)(7,"a",7),n._UZ(8,"img",8),n.qZA(),n.TgZ(9,"div",9)(10,"span",10),n._uU(11),n.qZA(),n.TgZ(12,"div",11),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.pr.is_public=!R.pr.is_public)}),n.TgZ(13,"a"),n._UZ(14,"i",12),n.YNc(15,Za,2,0,"span",13),n.YNc(16,za,2,0,"span",13),n._UZ(17,"i",14),n.qZA()()()(),n.TgZ(18,"div",15)(19,"form",16),n.YNc(20,$l,2,2,"div",17),n.YNc(21,Tr,1,1,"textarea",18),n.TgZ(22,"section",19)(23,"div",20)(24,"div",21)(25,"div"),n.YNc(26,Lc,1,1,"img",22),n.YNc(27,Kl,1,1,"img",22),n.qZA(),n.TgZ(28,"input",23),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onImageSelected(R))}),n.qZA()()()(),n.TgZ(29,"div",24)(30,"div",25)(31,"label",26),n._UZ(32,"i",27),n.qZA()(),n.TgZ(33,"button",28),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submit())}),n._uU(34,"post"),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(8),n.s9C("src",g.getAuth().avatar,n.LSH),n.xp6(3),n.Oqu(g.getAuth().name),n.xp6(4),n.Q6J("ngIf",g.pr.is_public),n.xp6(1),n.Q6J("ngIf",!g.pr.is_public),n.xp6(4),n.Q6J("ngIf",g.loading),n.xp6(1),n.Q6J("ngIf",!g.loading),n.xp6(5),n.Q6J("ngForOf",null==g.pr?null:g.pr.thumbs),n.xp6(1),n.Q6J("ngForOf",g.uploadFiles)}}function xa(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",33)(1,"div",20)(2,"div",34)(3,"input",35),n.NdJ("keyup.enter",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitPost())}),n.qZA(),n.TgZ(4,"a",36),n._UZ(5,"i",37),n.qZA(),n.TgZ(6,"a",38),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitPost())}),n._UZ(7,"i",39),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(3),n.Q6J("formControl",g.content)}}let Ga=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.notifier=ye,this.postService=Dt,this.auth=Mn,this.fileUploadService=vi,this.commentBox=!1,this.onPosted=new n.vpe,this.onCancel=new n.vpe,this.post=null,this.pr={id:null,parent_id:null,content:"",images:[],thumbs:[],type:"STATUS",hashtags:[],is_public:!0},this.content=new Z.NI("",[Z.kI.required,Z.kI.minLength(1)]),this.uploadFiles=[]}componentName(){return"PostBoxComponent"}ngOnInit(){this.loading=!1}ngAfterViewInit(){setTimeout(()=>{null!=this.post&&(this.pr.id=this.post.id,this.pr.images=this.post.images,this.pr.thumbs=this.post.thumbs,this.pr.content=this.post.content,this.content.setValue(this.pr.content))},200)}uploadImages(){console.log("uploading images..");let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD("post:"+this.pr?.id));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{this.notifier.log(ye.data);let Dt=ye.data;Dt.map(Mn=>Mn.image_url).forEach(Mn=>{this.pr.images.push(Mn)}),Dt.map(Mn=>Mn.thumb_url).forEach(Mn=>{this.pr.thumbs.push(Mn)}),this.submitPost()})}submit(){this.loading=!0,this.uploadFiles.length>0?this.uploadImages():this.submitPost()}submitPost(){if(!this.content.valid)return void this.notifier.warning("Invalid!","Need to input a valid comment.\n"+this.content.value);this.pr.parent_id=null==this.parentId?null:this.parentId,this.pr.content=this.content.value,this.pr.hashtags=xo.g.findHashtags(this.pr.content,!0);let g=this.componentKey(S.Z.POSTS.SUBMIT_POST(this.pr.parent_id,this.pr.content));null==this.pr.id?this.postService.submitPost(g,this.pr):this.postService.updatePost(g,this.pr),this.subscribe(g,null,(L,R)=>{this.onPosted.emit(R.data),this.content.setValue(""),this.loading=!1})}getAuth(){return this.auth.getAuth()}onImageSelected(g){if(this.uploadFiles.length>=3)this.notifier.info("Operation not allowed!","You can upload 3 photos in a post.");else if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}removeExImage(g){if(null==this.pr)return;let L=this.pr.thumbs.indexOf(g);this.pr.thumbs.splice(L),this.pr.images.splice(L)}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(te.l),n.Y36(Wn),n.Y36(_e.e),n.Y36(oe.J))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-box"]],inputs:{commentBox:"commentBox",parentId:"parentId",post:"post"},outputs:{onPosted:"onPosted",onCancel:"onCancel"},features:[n.qOj],decls:2,vars:2,consts:[["class","create-post-box",4,"ngIf"],["class","comment-box-area",4,"ngIf"],[1,"create-post-box"],[1,"cpb-top-area"],[1,"cancel-post",3,"click"],[1,"icon-cancel"],[1,"cpb-user-info-area"],["href","#",1,"cpb-user-avater"],["alt","astha create post user avater",3,"src"],[1,"cpb-user-info-wrapper"],[1,"user-name"],[1,"select-audions",3,"click"],[1,"icon-globe"],[4,"ngIf"],[1,"icon-down-dir"],[1,"cpb-write-post-area"],["method","post"],["class","my-5",4,"ngIf"],["autofocus","","name","message","id","message","rows","5","placeholder","what do you want to talk about?",3,"formControl",4,"ngIf"],[1,"upload-img-area","review-rdi","pt-4"],[1,"container"],[1,"post-last-step-gallery"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],["type","file","id","image-upload",3,"change"],[1,"cpb-share-creation-state-bottom"],[1,"share-creation-state-icon"],["for","image-upload"],[1,"icon-picture"],["type","button",3,"click"],[1,"my-5"],[3,"bar","determinate"],["autofocus","","name","message","id","message","rows","5","placeholder","what do you want to talk about?",3,"formControl"],["alt","",1,"m-1",3,"src","click"],[1,"comment-box-area"],[1,"write-comment-box"],["type","text","name","commentbox","id","commentbox","placeholder","Enter your comment","required","required",3,"formControl","keyup.enter"],[1,"upload-item"],[1,"icon-folder-add"],[1,"submit-icon",3,"click"],[1,"icon-paper-plane"]],template:function(L,R){1&L&&(n.YNc(0,Rs,35,8,"div",0),n.YNc(1,xa,8,1,"section",1)),2&L&&(n.Q6J("ngIf",!R.commentBox),n.xp6(1),n.Q6J("ngIf",R.commentBox))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.JJ,Z.JL,Z.Q7,Z.oH,Ge.t,Z.F],styles:[".write-comment-box[_ngcontent-%COMP%]{position:relative;margin-left:44px;border-radius:30px;display:flex;align-items:center;margin-top:30px}.write-comment-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;min-height:50px!important;border-radius:30px;padding:0 30px 0 35px;font-size:14px;font-weight:300;color:#c0bfbf;transition:width .4s linear;line-height:20px;border:0;outline:0;background:#3A3B3C;letter-spacing:.01em}.upload-item[_ngcontent-%COMP%], .submit-icon[_ngcontent-%COMP%]{position:absolute!important;right:15px;top:13px;cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.upload-item[_ngcontent-%COMP%]{right:auto;left:8px;top:12px;color:#fff}.submit-icon[_ngcontent-%COMP%]:hover{opacity:.5}.submit-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}.share-creation-state-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2em}.btn-comment-send[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .create-post-box[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f5f5f5}.view-more[_ngcontent-%COMP%]{display:flex;justify-content:center}.comunity-add-post.cpb[_ngcontent-%COMP%]{position:relative}.create-post-box[_ngcontent-%COMP%]{position:absolute;max-width:550px;background:#1D2226;z-index:9;border-radius:10px;left:0;right:0;margin:0 20px;top:10%}#message[_ngcontent-%COMP%]:focus{padding:10px;background:red}.cpb-top-area[_ngcontent-%COMP%]{position:relative;padding:20px 15px;display:flex;justify-content:space-between;border-bottom:1px solid #383D40}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0;border:1px solid;border-radius:5px}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%]:hover{opacity:.5}.cpb-user-avater[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:48px;height:48px;object-fit:cover;border-radius:50%;box-sizing:border-box}.cpb-user-info-area[_ngcontent-%COMP%]{display:flex;gap:15px;padding:15px}.cpb-user-info-wrapper[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-size:16px;text-transform:capitalize}.select-audions[_ngcontent-%COMP%]{border:1px solid whitesmoke;padding:2px 0 3px;margin-top:10px;font-size:15px;text-transform:capitalize;border-radius:50px}.select-audions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff!important;display:flex;align-items:center;justify-content:space-between}.select-audions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0!important;font-size:20px!important}.cpb-write-post-area[_ngcontent-%COMP%]{padding:0 15px}.cpb-write-post-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;background:transparent!important;border:0;min-height:125px;padding:10px}.cpb-write-post-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::placeholder{font-size:18px;line-height:1.3}textarea[_ngcontent-%COMP%]:focus{border:0;outline:0 none;background-color:transparent}.cpb-share-creation-state-bottom[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:15px;align-items:center}.cpb-share-creation-state-bottom[_ngcontent-%COMP%] button[type=button][_ngcontent-%COMP%]{border:0;text-transform:uppercase;font-weight:700;padding:8px 25px;background:#383D40;color:#fff;border-radius:30px;margin:15px 0;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.cpb-upload-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .share-creation-state-icon[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:0!important;cursor:pointer;transition:.3s}.share-creation-state-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block}.share-creation-state-icon[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.5}"]})}return F})();function Wa(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("size",30)}function bc(F,Xe){if(1&F&&n._UZ(0,"app-post",6),2&F){const g=Xe.$implicit,L=n.oxw(2);n.Q6J("post",g)("highlighted",(null==g?null:g.id)===L.latestCommentId)("isComment",!0)}}function ra(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"app-post-box",4),n.NdJ("onPosted",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCommentSubmitted(R))}),n.qZA(),n.YNc(2,bc,1,3,"app-post",5),n.qZA()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("commentBox",!0)("parentId",g.postId),n.xp6(1),n.Q6J("ngForOf",g.comments)}}let Al=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.postService=Dt,this.notifier=Mn,this.postId=null,this.comments=[]}componentName(){return"ConversationAreaComponent"}ngOnInit(){this.notifier.log("post id: "+this.postId),null!=this.postId&&this.loadComments(this.postId)}loadComments(g){const L=this.componentKey(S.Z.POSTS.FETCH_COMMENTS(g));this.postService.fetchComments(L,g),this.subscribe(L,null,(R,ye)=>{this.comments=ye.data.content,this.loading=!1})}onCommentSubmitted(g){this.latestCommentId=g.id,this.comments.unshift(g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-conversation-area"]],inputs:{postId:"postId"},features:[n.qOj],decls:3,vars:2,consts:[[1,"conversation-area"],[3,"size",4,"ngIf"],[4,"ngIf"],[3,"size"],[3,"commentBox","parentId","onPosted"],[3,"post","highlighted","isComment",4,"ngFor","ngForOf"],[3,"post","highlighted","isComment"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0),n.YNc(1,Wa,1,1,"util-progress",1),n.YNc(2,ra,3,3,"div",2),n.qZA()),2&L&&(n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading))},styles:[".conversation-area[_ngcontent-%COMP%]{padding-bottom:20px}"]})}return F})(),is=(()=>{class F{transform(g){let L;if(-1!==g.indexOf("#")){L=g+" ";const R=L.match(/#(.*?) /g);if(null==R)return g;for(let ye=0;ye'+Dt+""),L=L.replace("{{link}}",Mn)}}else L=g;return L}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275pipe=n.Yjl({name:"hashtag",type:F,pure:!0})}return F})();const ro=function(F){return[F]};function K(F,Xe){if(1&F&&(n.TgZ(0,"div",26)(1,"a",27),n._uU(2),n.qZA(),n._uU(3),n.TgZ(4,"h6",28),n._uU(5),n.ALo(6,"readableDate"),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.VKq(7,ro,"/u/"+(null==g.localMetaData?null:g.localMetaData.actorUsername))),n.xp6(1),n.Oqu(null==g.localMetaData?null:g.localMetaData.actorName),n.xp6(1),n.hij(" ",g.localMetaData.message," "),n.xp6(2),n.Oqu(n.xi3(6,4,g.localMetaData.timestamp,!0))}}function Ue(F,Xe){if(1&F&&(n.TgZ(0,"li")(1,"a",29),n._uU(2,"VIEW FULL REVIEW"),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.VKq(1,ro,"/reviews/"+g.getMetaData(g.post,"review_id"))+"/"+(null==g.post?null:g.post.id))}}function ge(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.editPost(R.post))}),n._uU(2,"EDIT POST"),n.qZA()()}}function Ne(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.deletePost(R.post))}),n._uU(2,"MOVE TO TRASH"),n.qZA()()}}function kt(F,Xe){1&F&&(n.TgZ(0,"li")(1,"a"),n._uU(2,"REPORT"),n.qZA()())}function pn(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"a")(1,"img",30),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.openPostDetailsPage(R.post))}),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(1),n.s9C("src",g.getFirstImage(),n.LSH)}}function Sn(F,Xe){if(1&F&&(n.TgZ(0,"div",35)(1,"h5",36),n._UZ(2,"i",37),n._uU(3),n.qZA(),n.TgZ(4,"h6",38),n._uU(5,"AVG RATING"),n.qZA()()),2&F){const g=n.oxw(3);n.xp6(1),n.Q6J("routerLink",n.VKq(2,ro,"/reviews/"+g.getMetaData(g.post,"review_id"))+"/"+(null==g.post?null:g.post.id)),n.xp6(2),n.hij("\xa0",g.getAvgRating(),"/10 ")}}function li(F,Xe){if(1&F&&(n.TgZ(0,"div",39)(1,"a",36)(2,"h5"),n._uU(3),n.qZA()(),n.TgZ(4,"h6",38),n._uU(5,"ITEM"),n.qZA()()),2&F){const g=n.oxw(3);let L;n.xp6(1),n.Q6J("routerLink",n.VKq(2,ro,"/products/"+g.getMetaData(g.post,"product_id"))),n.xp6(2),n.Oqu(null==(L=g.getProductName())?null:L.toUpperCase())}}function ur(F,Xe){if(1&F&&(n.TgZ(0,"div",31)(1,"div",32),n.YNc(2,Sn,6,4,"div",33),n.YNc(3,li,6,4,"div",34),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(2),n.Q6J("ngIf",null!=g.getAvgRating()),n.xp6(1),n.Q6J("ngIf",null!=g.getProductName())}}function hr(F,Xe){if(1&F&&(n.TgZ(0,"div",43)(1,"a",44),n._UZ(2,"img",45),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function ar(F,Xe){1&F&&(n.TgZ(0,"div",43)(1,"a",46),n._uU(2,"View All"),n.qZA()())}function xi(F,Xe){if(1&F&&(n.TgZ(0,"div",40),n.YNc(1,hr,3,2,"div",41),n.YNc(2,ar,3,0,"div",42),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",g.takePostThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>3)}}const Ar=function(F){return{"product-menu-bar":F}};function Nr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",2),n.YNc(1,K,7,9,"div",3),n.TgZ(2,"div",4)(3,"div",5)(4,"div",6),n._UZ(5,"img",7),n.TgZ(6,"div",8)(7,"h4")(8,"a",9),n._uU(9),n.qZA()(),n.TgZ(10,"p"),n._uU(11),n.ALo(12,"readableDate"),n.qZA()()(),n.TgZ(13,"div",10),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onItemClick(R))}),n._UZ(14,"i",11),n.TgZ(15,"div",12)(16,"ul"),n.YNc(17,Ue,3,3,"li",13),n.YNc(18,ge,3,0,"li",13),n.YNc(19,Ne,3,0,"li",13),n.YNc(20,kt,3,0,"li",13),n.qZA()()()(),n.YNc(21,pn,2,1,"a",13),n.TgZ(22,"div",14),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openPostDetailsPage(R.post))}),n.YNc(23,ur,4,2,"div",15),n._UZ(24,"p",16),n.ALo(25,"hashtag"),n.YNc(26,xi,3,2,"div",17),n.qZA()(),n.TgZ(27,"div",18)(28,"div",19)(29,"app-reaction",20),n.NdJ("onReacted",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onReacted(R))}),n.qZA(),n.TgZ(30,"h4",21),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onReactionCountClick(R))}),n._uU(31),n.qZA()(),n.TgZ(32,"div",22),n._UZ(33,"i",23),n.TgZ(34,"h4"),n._uU(35),n.qZA(),n._UZ(36,"h4"),n.qZA(),n.TgZ(37,"div",24),n._UZ(38,"i",25)(39,"h4"),n.qZA()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngIf",null!=g.localMetaData&&null!=g.localMetaData.message),n.xp6(4),n.s9C("src",null!=(null==g.post?null:g.post.posted_by_photo)?null==g.post?null:g.post.posted_by_photo:"assets/img/default-avatar.png",n.LSH),n.Q6J("routerLink",n.VKq(24,ro,"/u/"+(null==g.post?null:g.post.posted_by_username))),n.xp6(3),n.Q6J("routerLink",n.VKq(26,ro,"/u/"+(null==g.post?null:g.post.posted_by_username))),n.xp6(1),n.Oqu(null==g.post?null:g.post.posted_by_name),n.xp6(2),n.Oqu(n.xi3(12,19,null==g.post?null:g.post.updated_at,!0)),n.xp6(2),n.Q6J("ngClass",n.VKq(28,Ar,g.showPostMenu)),n.xp6(4),n.Q6J("ngIf",null!=g.getMetaData(g.post,"review_id")),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",1===(null==g.post||null==g.post.images?null:g.post.images.length)),n.xp6(2),n.Q6J("ngIf",g.isShowMetaSection()),n.xp6(1),n.Q6J("innerHTML",n.lcZ(25,22,g.getContent()),n.oJD),n.xp6(2),n.Q6J("ngIf",g.getThumbLength()>1),n.xp6(3),n.Q6J("postId",null==g.post?null:g.post.id),n.xp6(2),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.total,")"),n.xp6(1),n.Q6J("routerLink",n.VKq(30,ro,"/posts/"+(null==g.post?null:g.post.id))),n.xp6(3),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.comments,")")}}function mr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.editPost(R.post))}),n._uU(2,"EDIT POST"),n.qZA()()}}function vs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.deletePost(R.post))}),n._uU(2,"MOVE TO TRASH"),n.qZA()()}}function bs(F,Xe){if(1&F&&(n.TgZ(0,"div",43)(1,"a",44),n._UZ(2,"img",45),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function $a(F,Xe){1&F&&(n.TgZ(0,"div",43)(1,"a",46),n._uU(2,"View All"),n.qZA()())}function Ui(F,Xe){if(1&F&&(n.TgZ(0,"div",40),n.YNc(1,bs,3,2,"div",41),n.YNc(2,$a,3,0,"div",42),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",g.takePostThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>3)}}function Ma(F,Xe){if(1&F&&(n.TgZ(0,"small"),n._uU(1),n.qZA()),2&F){const g=n.oxw(3);n.xp6(1),n.hij("(",g.getTotalComments(),")")}}function Qr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",58)(1,"a",59)(2,"app-reaction",20),n.NdJ("onReacted",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onReacted(R))}),n.qZA(),n.TgZ(3,"h5",60),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onReactionCountClick(R))}),n._uU(4),n.qZA()(),n.TgZ(5,"a",61),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onReplyClick(null==R.post?null:R.post.id))}),n._uU(6,"Reply "),n.YNc(7,Ma,2,1,"small",13),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(2),n.Q6J("postId",null==g.post?null:g.post.id),n.xp6(2),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.total,")"),n.xp6(3),n.Q6J("ngIf",g.getTotalComments())}}function zr(F,Xe){if(1&F&&(n.TgZ(0,"div",62),n._UZ(1,"app-conversation-area",63),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("postId",null==g.post?null:g.post.id)}}const Qi=function(F){return{"post-highlighted":F}};function yi(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",47)(1,"div",4)(2,"div",48)(3,"a",49),n._UZ(4,"img",50),n.qZA(),n.TgZ(5,"div",51)(6,"div",52)(7,"div",53)(8,"span")(9,"b"),n._uU(10),n.qZA()(),n.TgZ(11,"h6",38),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()(),n.TgZ(14,"div",10),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onItemClick(R))}),n._UZ(15,"i",11),n.TgZ(16,"div",12)(17,"ul"),n.YNc(18,mr,3,0,"li",13),n.YNc(19,vs,3,0,"li",13),n.TgZ(20,"li")(21,"a"),n._uU(22,"REPORT"),n.qZA()()()()()()(),n.TgZ(23,"div",54)(24,"div",55)(25,"p"),n._uU(26),n.qZA(),n.YNc(27,Ui,3,2,"div",17),n.qZA(),n.YNc(28,Qr,8,3,"div",56),n.YNc(29,zr,2,1,"div",57),n.qZA()()()}if(2&F){const g=n.oxw();n.Q6J("ngClass",n.VKq(14,Qi,g.highlighted)),n.xp6(4),n.s9C("src",null==g.post?null:g.post.posted_by_photo,n.LSH),n.xp6(6),n.Oqu(null==g.post?null:g.post.posted_by_name),n.xp6(2),n.Oqu(n.xi3(13,11,null==g.post?null:g.post.updated_at,!0)),n.xp6(2),n.Q6J("ngClass",n.VKq(16,Ar,g.showPostMenu)),n.xp6(4),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(7),n.Oqu(null==g.post?null:g.post.content),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>0),n.xp6(1),n.Q6J("ngIf",g.isReplyEnabled()),n.xp6(1),n.Q6J("ngIf",g.replyToPostId===(null==g.post?null:g.post.id))}}let oa=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.postService=ye,this.dialog=Dt,this.auth=Mn,this.notifier=vi,this.isComment=!1,this.fullVersion=!1,this.post=null,this.highlighted=!1,this.showPostMenu=!1,this.replyToPostId=0,this.onDeletePost=new n.vpe}componentName(){return"PostComponent"}ngOnInit(){}onReacted(g){this.reloadPost()}takePostThumbs(g){return null==this.post||g<1?[]:this.post.thumbs.length{this.post=R.data})}onReactionCountClick(g){console.log("reactions clicked");const L=this.dialog.open(qn);null!=this.post&&(L.componentInstance.postId=this.post?.id),L.afterClosed().subscribe(ye=>{console.log(`Dialog result: ${ye}`)})}onItemClick(g){this.showPostMenu=!this.showPostMenu}isMyPost(){return!!this.auth.isAuthenticated()&&this.auth.getAuth().username==this.post?.posted_by_username}getAvgRating(){let g=this.getMetaData(this.post,"average_rating");if(null==g)return null;try{return parseFloat(g).toFixed(1)}catch{return null}}getProductName(){let g=this.getMetaData(this.post,"product_name");return w.m.takeOnly(g,20)}getMetaData(g,L){let R=g?.meta_data;return null==R?null:R[L]}isShowMetaSection(){return null!=this.post?.meta_data&&this.post.type===Os.USER_REVIEW}editPost(g){null!=g&&this.openPostBox(g)}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g,R.parentId=g?.parent_id,R.onPosted.subscribe(ye=>{this.reloadPost(),L.close()}),R.onCancel.subscribe(ye=>{L.close()})}openPostDetailsPage(g){this.showPostMenu?this.showPostMenu=!1:null!=g&&this.navigate("/posts/"+g.id,L=>{})}deletePost(g){if(null==g||!confirm("Are you sure you want to delete this post?"))return;let R=this.componentKey(S.Z.POSTS.DELETE_POST(g.id));this.postService.deletePost(R,g.id),this.subscribe(R,null,(ye,Dt)=>{this.notifier.success("Deleted!","Post is deleted."),this.reloadRoute()}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{this.notifier.error("Error!",Dt.data.error.message)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn),n.Y36(Re.uw),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post"]],inputs:{isComment:"isComment",fullVersion:"fullVersion",post:"post",localMetaData:"localMetaData",highlighted:"highlighted"},outputs:{onDeletePost:"onDeletePost"},features:[n.qOj],decls:2,vars:2,consts:[["class","blog-post-area bdr-top mt-4",4,"ngIf"],["class","blog-post-area blog-post-area-comment mt-2",3,"ngClass",4,"ngIf"],[1,"blog-post-area","bdr-top","mt-4"],["class","container post-meta",4,"ngIf"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","my-4","px-3"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"profile-img","profile-img-rounded",3,"routerLink","src"],[1,"content","ms-2"],[1,"user-name",3,"routerLink"],[1,"view-details","pt-2",3,"ngClass","click"],[1,"icon-dot-3"],[1,"productMenuBox"],[4,"ngIf"],[1,"blog-post-content","px-3","pb-3",3,"click"],["class","blog-post-meta py-3",4,"ngIf"],[3,"innerHTML"],["class","product-gallery",4,"ngIf"],[1,"blog-post-comment-section","d-flex","justify-content-around","bdr-top","bdr-b","py-3","mt-2","mb-3"],[1,"react","d-flex","align-items-center"],[3,"postId","onReacted"],[3,"click"],[1,"comment","d-flex","align-items-center",3,"routerLink"],[1,"icon-chat"],[1,"share","d-flex","align-items-center"],[1,"icon-paper-plane"],[1,"container","post-meta"],[1,"actor-name","user-name",3,"routerLink"],[1,"mt-1",2,"color","gray"],[3,"routerLink"],[1,"w-100","mb-2",3,"src","click"],[1,"blog-post-meta","py-3"],[1,"row","align-items-center","mb-2"],["class","col-6 rating",4,"ngIf"],["class","col-6 col-sm-4",4,"ngIf"],[1,"col-6","rating"],[1,"post-info-links",3,"routerLink"],[1,"icon-star"],[2,"color","gray"],[1,"col-6","col-sm-4"],[1,"product-gallery"],["class","single-product-item",4,"ngFor","ngForOf"],["class","single-product-item",4,"ngIf"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],["href","#"],[1,"blog-post-area","blog-post-area-comment","mt-2",3,"ngClass"],[1,"blog-post-top","d-flex","justify-content-between","my-4","comment-header"],["href","#",1,"comments-user-avater"],["alt","astha",3,"src"],[1,"comments-post-meta-profile-info-wrapper"],[1,"blog-post-top-left"],[1,"content"],[1,"blog-post-content"],[1,"comments-comment-item-content"],["class","comment-social-activity",4,"ngIf"],["class","nested-comment-box",4,"ngIf"],[1,"comment-social-activity"],[1,"react","d-flex"],[1,"mt-1",3,"click"],[1,"btn-reply-post",3,"click"],[1,"nested-comment-box"],[1,"conversation-area",3,"postId"]],template:function(L,R){1&L&&(n.YNc(0,Nr,40,32,"section",0),n.YNc(1,yi,30,18,"section",1)),2&L&&(n.Q6J("ngIf",!R.isComment),n.xp6(1),n.Q6J("ngIf",R.isComment))},dependencies:[e.mk,e.sg,e.O5,l.rH,le,Al,Yr.G,is],styles:['@keyframes _ngcontent-%COMP%_anim-highlight{0%{opacity:.5;background-color:#52575e}to{opacity:1;background-color:#202020}}.post-highlighted[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_anim-highlight;animation-duration:4s}.product-gallery[_ngcontent-%COMP%]{display:flex;grid-gap:20px;align-items:center;margin-top:20px}.btn-reply-post[_ngcontent-%COMP%]{position:absolute;right:20px;color:#44d62c}.blog-post-area[_ngcontent-%COMP%] .blog-post-top-left[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.7rem}.post-meta[_ngcontent-%COMP%]{padding-top:20px}a[_ngcontent-%COMP%]{color:#44d62c}.post-info-links[_ngcontent-%COMP%]{color:#f5f5f5!important;font-weight:800}.view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none;position:relative;cursor:pointer}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:10px;padding:0 10px;list-style:none;width:250px;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}.comment-header[_ngcontent-%COMP%]{margin-bottom:0!important}.comments-comment-item-content[_ngcontent-%COMP%]{background:#3A3B3C;padding:0 12px 15px;border-radius:0 0 10px 10px;-webkit-border-radius:0px 0px 10px 10px;-moz-border-radius:0px 0px 10px 10px;-ms-border-radius:0px 0px 10px 10px;-o-border-radius:0px 0px 10px 10px;margin-left:44px}.comments-user-avater[_ngcontent-%COMP%]{flex-shrink:0;align-self:flex-start;width:40px;height:40px}.comments-user-avater[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;object-fit:cover}.comments-post-meta-profile-info-wrapper[_ngcontent-%COMP%]{flex-grow:1;display:flex;justify-content:space-between;align-items:center;background:#3A3B3C;padding:8px 12px;border-radius:0 10px 0 0;margin-left:4px}.btn-reply-post[_ngcontent-%COMP%]{position:relative;right:auto!important;cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.btn-reply-post[_ngcontent-%COMP%]:hover{opacity:.5}.comment-social-activity[_ngcontent-%COMP%] app-reaction[_ngcontent-%COMP%]{width:25px}.comment-social-activity[_ngcontent-%COMP%] .react[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:14px!important;display:flex;align-items:center;margin-left:2px}.comment-social-activity[_ngcontent-%COMP%]{margin-top:5px;margin-left:55px;display:flex;gap:12px;align-items:center}']})}return F})();const cl=function(F){return{active:F}};function _o(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",4),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.onClick(ye))}),n.TgZ(1,"a"),n._uU(2),n.qZA()()}if(2&F){const g=Xe.$implicit,L=n.oxw();n.Q6J("ngClass",n.VKq(2,cl,L.selectedTabId===g.id)),n.xp6(2),n.Oqu(g.title)}}let Wi=(()=>{class F extends I.H{constructor(g,L,R){super(g,L,R),this.tabHeaders=[],this.selectedTabId=0,this.onSelect=new n.vpe,this.panelClass="active"}componentName(){return"TabHeaderComponent"}ngOnInit(){}onClick(g){this.selectedTabId=g.id,this.onSelect.emit(g.id)}trackbyFn(g,L){return g}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-tab-header"]],inputs:{tabHeaders:"tabHeaders",selectedTabId:"selectedTabId",panelClass:"panelClass"},outputs:{onSelect:"onSelect"},features:[n.qOj],decls:4,vars:2,consts:[[1,"tab-header","mt-2","scrollable"],[1,"container"],[1,"list-inline","list-unstyled"],["class","list-inline-item",3,"ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list-inline-item",3,"ngClass","click"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1)(2,"ul",2),n.YNc(3,_o,3,4,"li",3),n.qZA()()()),2&L&&(n.xp6(3),n.Q6J("ngForOf",R.tabHeaders)("ngForTrackBy",R.trackbyFn))},dependencies:[e.mk,e.sg],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.list-inline-item[_ngcontent-%COMP%]{margin-right:1.5rem}.list-group-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#000}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1.12em!important;text-decoration:none;color:#fff;text-transform:uppercase;font-weight:600;letter-spacing:.05em;transition:all .5s}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#f7f7f7}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background:#44d62c;padding:5px 12px;border-radius:16px}"]})}return F})();function Xi(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function dl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",30),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onIStoriesMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showStoriesMenu)("items",g.getMenuItems())}}function ko(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function rs(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}function ul(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",30),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCriticReviewsMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showCriticReviewsMenu)("items",g.getMenuItems())}}function Pc(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function Us(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}const Vs=function(F,Xe,g,L){return{actorName:F,actorUsername:Xe,message:g,timestamp:L}};function Nc(F,Xe){if(1&F&&(n.TgZ(0,"div"),n._UZ(1,"app-post",31),n.qZA()),2&F){const g=Xe.$implicit,L=n.oxw();n.xp6(1),n.Q6J("post",g.post)("localMetaData",n.l5B(2,Vs,g.actorName,g.actorUsername,L.getMessage(g),g.timestamp))}}function ac(F,Xe){1&F&&n._UZ(0,"util-progress",32),2&F&&n.Q6J("padding",70)}let To=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya){super(g,L,R),this.postService=Dt,this.auth=Mn,this.dialog=vi,this.reviewService=Fo,this.notifier=Ya,this.interestingStories=null,this.iStories=[],this.iStoriesPeriod="THIS MONTH",this.iStoriesLoading=!1,this.showStoriesMenu=!1,this.criticReviews=null,this.criticReviewers=[],this.criticReviewsPeriod="THIS MONTH",this.criticReviewsLoading=!1,this.showCriticReviewsMenu=!1,this.badgeForCritic="Critic",this.youtubeReviews=[],this.page=0,this.statusPosts=[],this.reviewPosts=[],this.reactions=[],this.newsfeedItems=[],this.trendingHashtags=[],this.selectedHashtag=null,this.selectedHashtag=ye.snapshot.queryParams.hashtag}componentName(){return"NewsfeedComponent"}ngOnInit(){let g=Nt.b.calculateRange(this.iStoriesPeriod.replace(" ","_"));this.fetchInterestingStories({page:0,from_date:g?.fromDate,to_date:g?.toDate,slice:!0});let L=Nt.b.calculateRange(this.criticReviewsPeriod.replace(" ","_"));this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic}),this.fetchYoutubeReviews(),this.fetchTrendingHashtags(),this.fetchNewsfeedItems(this.selectedHashtag,this.page)}fetchCriticReviews(g){this.criticReviewsLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_CRITIC_REVIEWS());this.reviewService.fetchRecentReviews(L,g),this.subscribe(L,null,(R,ye)=>{this.criticReviews=ye.data,this.criticReviewers=F.mapToCarouselItems(ye.data),this.criticReviewsLoading=!1})}fetchInterestingStories(g){this.iStoriesLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_INTERESTING_STORIES());this.reviewService.fetchRecentReviews(L,g),this.subscribe(L,null,(R,ye)=>{this.interestingStories=ye.data,this.iStories=F.mapToCarouselItems(ye.data),this.iStoriesLoading=!1})}static mapToCarouselItems(g){return g.content.map(L=>({id:L?.id,slug:L?.slug,title:L?.posted_by_name,img:null!=L?.posted_by_avatar?L?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+L.id+"/"+L.post_id,badges:[]}))}fetchYoutubeReviews(){this.youtubeReviews=[{id:1,title:null,slug:"",img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,title:null,slug:"",img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]}]}fetchNewsfeedItems(g,L){this.loading=!0;const R=this.componentKey(S.Z.POSTS.FETCH_NEWS_FEED_POSTS(Os.STATUS));this.postService.fetchPosts(R,{page:L,size:5,type:Os.STATUS,hashtag:g}),this.subscribe(R,null,(Dt,Mn)=>{this.statusPosts=Mn.data.content,this.addToNewsfeed(Is.STATUS,this.statusPosts),this.loading=!1});const ye=this.componentKey(S.Z.POSTS.FETCH_NEWS_FEED_POSTS(Os.USER_REVIEW));if(this.postService.fetchPosts(ye,{page:L,size:5,type:Os.USER_REVIEW,hashtag:g}),this.subscribe(ye,null,(Dt,Mn)=>{this.reviewPosts=Mn.data.content,this.addToNewsfeed(Is.USER_REVIEW,this.reviewPosts),this.loading=!1}),null==g||0===g?.length){const Dt=this.componentKey(S.Z.POSTS.FETCH_REACTIONS());this.postService.fetchReactions(Dt,{page:L,slice:!1}),this.subscribe(Dt,null,(Mn,vi)=>{this.reactions=vi.data.content,this.addReactionsToNewsfeed(this.reactions)})}}addToNewsfeed(g,L){L.map(R=>{this.newsfeedItems.push({timestamp:R.updated_at,actionType:g,actorName:R.posted_by_name,actorUsername:R.posted_by_username,post:R})}),this.sortNewsfeedItems()}addReactionsToNewsfeed(g){g.map(L=>{this.newsfeedItems.push({timestamp:L.updated_at,actionType:Is.REACTION,actorName:L.reacted_by_name,actorUsername:L.reacted_by_username,post:L.post})}),this.sortNewsfeedItems()}sortNewsfeedItems(){this.newsfeedItems=this.newsfeedItems.sort((g,L)=>new Date(L.timestamp).getTime()-new Date(g.timestamp).getTime())}getMessage(g){return g.actionType===Is.REACTION?"reacted.":g.actionType===Is.USER_REVIEW?"posted a review.":null}onViewMoreClick(){this.fetchNewsfeedItems(null,++this.page)}reloadNewsfeed(){this.newsfeedItems=[],this.fetchNewsfeedItems(null,0)}getAuth(){return this.auth.getAuth()}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g;const ye=R.onPosted.subscribe(Mn=>{ye.unsubscribe(),L.close()}),Dt=R.onCancel.subscribe(Mn=>{Dt.unsubscribe(),L.close()});L.afterClosed().subscribe(Mn=>{this.reloadRouteByUrl()})}getMenuItems(){return bt.$}onIStoriesMenuItemClick(g){this.showStoriesMenu&&(this.showStoriesMenu=!1),this.iStoriesPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchInterestingStories({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0})}onCriticReviewsMenuItemClick(g){this.showCriticReviewsMenu&&(this.showCriticReviewsMenu=!1),this.criticReviewsPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic})}getTabHeaders(){return this.trendingHashtags.map((g,L)=>({id:L,title:"#"+g.name}))}getSelectedHashtag(){return-1}onHashtagSelected(g){let L=this.trendingHashtags[g].name.replace("#","");L!==this.selectedHashtag?(this.selectedHashtag=L,this.router.navigateByUrl("/newsfeed?hashtag="+this.selectedHashtag),this.newsfeedItems=[],this.fetchNewsfeedItems(this.selectedHashtag,0)):this.navigateByUrl("/newsfeed",R=>{this.reloadRouteByUrl()})}fetchTrendingHashtags(){let g=this.componentKey(S.Z.POSTS.FETCH_TRENDING_HASHTAGS());this.postService.fetchTrendingTags(g,{}),this.subscribe(g,null,(L,R)=>{this.trendingHashtags=R.data}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.log(R.data)})}onStoriesItemClick(g){if(null==this.interestingStories)return;let L=this.interestingStories.content.find(R=>R.id==g.id);this.navigate("/reviews/"+L?.product_slug+"/"+L?.slug+"/"+L?.post_id,R=>{})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(_e.e),n.Y36(Re.uw),n.Y36(se.F),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-newsfeed"]],features:[n.qOj],decls:62,vars:20,consts:[[3,"bar",4,"ngIf"],[1,"reviewers-section","py-2","mt-3"],[1,"container"],[1,"reviewers-content","section-title","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items","itemClick"],[4,"ngIf"],[1,"comunity-post-area","pt-4","pb-3","mt-3","bdr-top"],[1,"comunity-post","d-flex","mb-4"],["alt","",1,"profile-img-rounded",3,"src"],[1,"content","ms-3"],[1,"closs-post"],[1,"icon-cancel-1"],[1,"comunity-add-post","cpb","d-flex","justify-content-end","align-items-center"],[1,"d-flex","align-items-center",3,"click"],[1,"icon-plus-2"],[1,"reviewers-section","py-2","mt-3","bdr-b"],[3,"items"],[1,"container","mt-4","bdr-b"],[3,"tabHeaders","selectedTabId","onSelect"],[4,"ngFor","ngForOf"],[3,"padding",4,"ngIf"],[1,"section-title","view-more","my-4","container"],[3,"click"],[1,"youtube-reviews-section","bdr-b","mb-5","pb-3"],[1,"section-title","d-flex","justify-content-between","my-4"],["href","#"],[3,"design","items"],[3,"bar"],[3,"showMenubar","items","menuItemClick"],[3,"post","localMetaData"],[3,"padding"]],template:function(L,R){1&L&&(n.YNc(0,Xi,1,1,"util-progress",0),n.TgZ(1,"div")(2,"section",1)(3,"div",2)(4,"div",3),n.NdJ("click",function(){return R.showStoriesMenu=!R.showStoriesMenu}),n.TgZ(5,"h5"),n._uU(6,"INTERESTING STORIES"),n.qZA(),n.TgZ(7,"a")(8,"h5"),n._uU(9),n.qZA()(),n._UZ(10,"img",4),n.qZA(),n.YNc(11,dl,1,2,"app-menubox",5),n.TgZ(12,"app-small-carousel",6),n.NdJ("itemClick",function(Dt){return R.onStoriesItemClick(Dt)}),n.qZA(),n.YNc(13,ko,1,1,"util-progress",0),n.YNc(14,rs,3,0,"div",7),n.qZA()(),n.TgZ(15,"section",8)(16,"div",2)(17,"div",9),n._UZ(18,"img",10),n.TgZ(19,"div",11)(20,"h4"),n._uU(21),n.qZA(),n.TgZ(22,"p"),n._uU(23,"Share your thoughts with the community and connect with people."),n.qZA()(),n.TgZ(24,"div",12),n._UZ(25,"i",13),n.qZA()(),n.TgZ(26,"div",14)(27,"a",15),n.NdJ("click",function(){return R.openPostBox(null)}),n._UZ(28,"i",16),n.TgZ(29,"h4"),n._uU(30,"Post a status"),n.qZA()()()()(),n.TgZ(31,"section",17)(32,"div",2)(33,"div",3),n.NdJ("click",function(){return R.showCriticReviewsMenu=!R.showCriticReviewsMenu}),n.TgZ(34,"h5"),n._uU(35,"CRITIC REVIEWS"),n.qZA(),n.TgZ(36,"a")(37,"h5"),n._uU(38),n.qZA()(),n._UZ(39,"img",4),n.qZA(),n.YNc(40,ul,1,2,"app-menubox",5),n._UZ(41,"app-small-carousel",18),n.YNc(42,Pc,1,1,"util-progress",0),n.YNc(43,Us,3,0,"div",7),n.qZA()(),n.TgZ(44,"div",19)(45,"h5"),n._uU(46,"TRENDING TAGS"),n.qZA(),n.TgZ(47,"app-tab-header",20),n.NdJ("onSelect",function(Dt){return R.onHashtagSelected(Dt)}),n.qZA()(),n.TgZ(48,"div"),n.YNc(49,Nc,2,7,"div",21),n.YNc(50,ac,1,1,"util-progress",22),n.TgZ(51,"div",23)(52,"a",24),n.NdJ("click",function(){return R.onViewMoreClick()}),n._uU(53,"VIEW MORE.."),n.qZA()()(),n.TgZ(54,"section",25)(55,"div",2)(56,"div",26)(57,"h3"),n._uU(58,"Youtube Reviews"),n.qZA(),n.TgZ(59,"a",27),n._uU(60,"View all"),n.qZA()(),n._UZ(61,"app-small-carousel",28),n.qZA()()()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("@dataLoaded",R.loading?"loading":"loaded"),n.xp6(8),n.Oqu(R.iStoriesPeriod),n.xp6(2),n.Q6J("ngIf",!R.iStoriesLoading),n.xp6(1),n.Q6J("items",R.iStories),n.xp6(1),n.Q6J("ngIf",R.iStoriesLoading),n.xp6(1),n.Q6J("ngIf",!R.iStoriesLoading&&0===R.iStories.length),n.xp6(4),n.s9C("src",R.getAuth().avatar,n.LSH),n.xp6(3),n.hij("Hey, ",R.getAuth().name,""),n.xp6(17),n.Oqu(R.criticReviewsPeriod),n.xp6(2),n.Q6J("ngIf",!R.criticReviewsLoading),n.xp6(1),n.Q6J("items",R.criticReviewers),n.xp6(1),n.Q6J("ngIf",R.criticReviewsLoading),n.xp6(1),n.Q6J("ngIf",!R.criticReviewsLoading&&0===R.criticReviewers.length),n.xp6(4),n.Q6J("tabHeaders",R.getTabHeaders())("selectedTabId",R.getSelectedHashtag()),n.xp6(2),n.Q6J("ngForOf",R.newsfeedItems),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(11),n.Q6J("design","youtube-reviews")("items",R.youtubeReviews))},dependencies:[e.sg,e.O5,Ge.t,Dn.q,oa,Wi,Ro.v]})}return F})();var nd=C(1081);function lc(F,Xe){1&F&&(n.TgZ(0,"span",7),n.Hsn(1,1),n.qZA())}function Ei(F,Xe){1&F&&(n.TgZ(0,"span",8),n.Hsn(1,2),n.qZA())}const Ca=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ks=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function cc(F,Xe){1&F&&(n.ynx(0),n._UZ(1,"span",8),n.BQk())}function hl(F,Xe){1&F&&(n.TgZ(0,"span",9),n.Hsn(1),n.qZA())}function od(F,Xe){1&F&&(n.ynx(0),n.Hsn(1,1),n.BQk())}function Mo(F,Xe){1&F&&n.Hsn(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function Ka(F,Xe){1&F&&n._UZ(0,"span",12)}function aa(F,Xe){if(1&F&&(n.ynx(0),n.YNc(1,Mo,1,0,"ng-content",10),n.YNc(2,Ka,1,0,"ng-template",null,11,n.W1O),n.BQk()),2&F){const g=n.MAs(3),L=n.oxw();n.xp6(1),n.Q6J("ngIf",L.contentEditInput)("ngIfElse",g)}}function Ol(F,Xe){1&F&&(n.TgZ(0,"span",13),n.Hsn(1,3),n.qZA())}const kn=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Fi=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],Jl=["*"],en=new n.OlP("mat-chips-default-options"),so=new n.OlP("MatChipAvatar"),gt=new n.OlP("MatChipTrailingIcon"),la=new n.OlP("MatChipRemove"),Ra=new n.OlP("MatChip");class Ls{}const os=(0,Ve.sb)(Ls,-1);let ss=(()=>{class F extends os{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(g){this._disabled=(0,qt.Ig)(g)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(g,L){super(),this._elementRef=g,this._parentChip=L,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===g.nativeElement.nodeName&&g.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(g){!this.disabled&&this.isInteractive&&this._isPrimary&&(g.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(g){(g.keyCode===U.K5||g.keyCode===U.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(g.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(Ra))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(L,R){1&L&&n.NdJ("click",function(Dt){return R._handleClick(Dt)})("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&(n.uIk("tabindex",R._getTabindex())("disabled",R._getDisabledAttribute())("aria-disabled",R.disabled),n.ekj("mdc-evolution-chip__action--primary",R._isPrimary)("mdc-evolution-chip__action--presentational",!R.isInteractive)("mdc-evolution-chip__action--trailing",!R._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[n.qOj]})}return F})(),ka=(()=>{class F extends ss{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(g){this.disabled||(g.stopPropagation(),g.preventDefault(),this._parentChip.remove())}_handleKeydown(g){(g.keyCode===U.K5||g.keyCode===U.L_)&&!this.disabled&&(g.stopPropagation(),g.preventDefault(),this._parentChip.remove())}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(L,R){2&L&&n.uIk("aria-hidden",null)},features:[n._Bn([{provide:la,useExisting:F}]),n.qOj]})}return F})(),ys=0;const W=(0,Ve.sb)((0,Ve.pj)((0,Ve.Kr)((0,Ve.Id)(class{constructor(F){this._elementRef=F}})),"primary"),-1);let ne=(()=>{class F extends W{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(g){this._value=g}get removable(){return this._removable}set removable(g){this._removable=(0,qt.Ig)(g)}get highlighted(){return this._highlighted}set highlighted(g){this._highlighted=(0,qt.Ig)(g)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(g){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,g)}constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(L),this._changeDetectorRef=g,this._ngZone=R,this._focusMonitor=ye,this._globalRippleOptions=vi,this._onFocus=new Oe.x,this._onBlur=new Oe.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+ys++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new n.vpe,this.destroyed=new n.vpe,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=(0,n.f3M)(Ve.Fq),this._document=Dt,this._animationsDisabled="NoopAnimations"===Mn,null!=Fo&&(this.tabIndex=parseInt(Fo)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const g=this._elementRef.nativeElement;this._isBasicChip=g.hasAttribute(this.basicChipAttrName)||g.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,Ft.T)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(g){(g.keyCode===U.ZH||g.keyCode===U.yY)&&(g.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(g){return this._getActions().find(L=>{const R=L._elementRef.nativeElement;return R===g||R.contains(g)})}_getActions(){const g=[];return this.primaryAction&&g.push(this.primaryAction),this.removeIcon&&g.push(this.removeIcon),this.trailingIcon&&g.push(this.trailingIcon),g}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(g=>{const L=null!==g;L!==this._hasFocusInternal&&(this._hasFocusInternal=L,L?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,jn.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Ce.tE),n.Y36(e.K0),n.Y36(n.QbO,8),n.Y36(Ve.Y2,8),n.$8M("tabindex"))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,so,5),n.Suo(ye,gt,5),n.Suo(ye,la,5),n.Suo(ye,so,5),n.Suo(ye,gt,5),n.Suo(ye,la,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.leadingIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R.trailingIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R.removeIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R._allLeadingIcons=Dt),n.iGM(Dt=n.CRH())&&(R._allTrailingIcons=Dt),n.iGM(Dt=n.CRH())&&(R._allRemoveIcons=Dt)}},viewQuery:function(L,R){if(1&L&&n.Gf(ss,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R.primaryAction=ye.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&(n.Ikx("id",R.id),n.uIk("role",R.role)("tabindex",R.role?R.tabIndex:null)("aria-label",R.ariaLabel),n.ekj("mdc-evolution-chip",!R._isBasicChip)("mdc-evolution-chip--disabled",R.disabled)("mdc-evolution-chip--with-trailing-action",R._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",R.leadingIcon)("mdc-evolution-chip--with-primary-icon",R.leadingIcon)("mdc-evolution-chip--with-avatar",R.leadingIcon)("mat-mdc-chip-with-avatar",R.leadingIcon)("mat-mdc-chip-highlighted",R.highlighted)("mat-mdc-chip-disabled",R.disabled)("mat-mdc-basic-chip",R._isBasicChip)("mat-mdc-standard-chip",!R._isBasicChip)("mat-mdc-chip-with-trailing-icon",R._hasTrailingIcon())("_mat-animation-noopable",R._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[n._Bn([{provide:Ra,useExisting:F}]),n.qOj],ngContentSelectors:ks,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(L,R){1&L&&(n.F$t(Ca),n._UZ(0,"span",0),n.TgZ(1,"span",1)(2,"span",2),n.YNc(3,lc,2,0,"span",3),n.TgZ(4,"span",4),n.Hsn(5),n._UZ(6,"span",5),n.qZA()()(),n.YNc(7,Ei,2,0,"span",6)),2&L&&(n.xp6(2),n.Q6J("isInteractive",!1),n.xp6(1),n.Q6J("ngIf",R.leadingIcon),n.xp6(4),n.Q6J("ngIf",R._hasTrailingIcon()))},dependencies:[e.O5,ss],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return F})(),xe=(()=>{class F{constructor(g,L){this._elementRef=g,this._document=L}initialize(g){this.getNativeElement().focus(),this.setValue(g)}getNativeElement(){return this._elementRef.nativeElement}setValue(g){this.getNativeElement().textContent=g,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const g=this._document.createRange();g.selectNodeContents(this.getNativeElement()),g.collapse(!1);const L=window.getSelection();L.removeAllRanges(),L.addRange(g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return F})(),qe=(()=>{class F extends ne{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R,ye,Dt,Mn,vi,Fo),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new n.vpe,this._isEditing=!1,this.role="row",this._onBlur.pipe((0,An.R)(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(g){g.keyCode!==U.K5||this.disabled?this._isEditing?g.stopPropagation():super._handleKeydown(g):this._isEditing?(g.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(g)}_handleDoubleclick(g){!this.disabled&&this.editable&&this._startEditing(g)}_startEditing(g){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(g.target)===this.removeIcon)return;const L=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(L),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Ce.tE),n.Y36(e.K0),n.Y36(n.QbO,8),n.Y36(Ve.Y2,8),n.$8M("tabindex"))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,xe,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.contentEditInput=Dt.first)}},viewQuery:function(L,R){if(1&L&&n.Gf(xe,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R.defaultEditInput=ye.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(L,R){1&L&&n.NdJ("focus",function(Dt){return R._handleFocus(Dt)})("dblclick",function(Dt){return R._handleDoubleclick(Dt)}),2&L&&(n.Ikx("id",R.id),n.uIk("tabindex",R.disabled?null:-1)("aria-label",null)("aria-description",null)("role",R.role),n.ekj("mat-mdc-chip-with-avatar",R.leadingIcon)("mat-mdc-chip-disabled",R.disabled)("mat-mdc-chip-editing",R._isEditing)("mat-mdc-chip-editable",R.editable)("mdc-evolution-chip--disabled",R.disabled)("mdc-evolution-chip--with-trailing-action",R._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",R.leadingIcon)("mdc-evolution-chip--with-primary-icon",R.leadingIcon)("mdc-evolution-chip--with-avatar",R.leadingIcon)("mat-mdc-chip-highlighted",R.highlighted)("mat-mdc-chip-with-trailing-icon",R._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[n._Bn([{provide:ne,useExisting:F},{provide:Ra,useExisting:F}]),n.qOj],ngContentSelectors:Fi,decls:10,vars:12,consts:[[4,"ngIf"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(L,R){1&L&&(n.F$t(kn),n.YNc(0,cc,2,0,"ng-container",0),n.TgZ(1,"span",1),n.YNc(2,hl,2,0,"span",2),n.TgZ(3,"span",3),n.YNc(4,od,2,0,"ng-container",4),n.YNc(5,aa,4,2,"ng-container",4),n._UZ(6,"span",5),n.qZA()(),n.YNc(7,Ol,2,0,"span",6),n.TgZ(8,"span",7),n._uU(9),n.qZA()),2&L&&(n.Q6J("ngIf",!R._isEditing),n.xp6(1),n.Q6J("tabIndex",R.tabIndex)("disabled",R.disabled),n.uIk("aria-label",R.ariaLabel)("aria-describedby",R._ariaDescriptionId),n.xp6(1),n.Q6J("ngIf",R.leadingIcon),n.xp6(1),n.Q6J("ngSwitch",R._isEditing),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(2),n.Q6J("ngIf",R._hasTrailingIcon()),n.xp6(1),n.Q6J("id",R._ariaDescriptionId),n.xp6(1),n.Oqu(R.ariaDescription))},dependencies:[e.O5,e.RF,e.n9,ss,xe],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return F})();class Pt{constructor(Xe){}}const mn=(0,Ve.sb)(Pt);let hn=(()=>{class F extends mn{get chipFocusChanges(){return this._getChipStream(g=>g._onFocus)}get chipDestroyedChanges(){return this._getChipStream(g=>g.destroyed)}get disabled(){return this._disabled}set disabled(g){this._disabled=(0,qt.Ig)(g),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(g){this._explicitRole=g}get focused(){return this._hasFocusedChip()}constructor(g,L,R){super(g),this._elementRef=g,this._changeDetectorRef=L,this._dir=R,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Oe.x,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new n.n_E}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(g=>g._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(g=>{g.disabled=this._disabled,g._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(g){this._originatesFromChip(g)&&this._keyManager.onKeydown(g)}_isValidIndex(g){return g>=0&&gthis.tabIndex=g)}}_getChipStream(g){return this._chips.changes.pipe((0,fn.O)(null),(0,ai.w)(()=>(0,Ft.T)(...this._chips.map(g))))}_originatesFromChip(g){let L=g.target;for(;L&&L!==this._elementRef.nativeElement;){if(L.classList.contains("mat-mdc-chip"))return!0;L=L.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe((0,fn.O)(this._chips)).subscribe(g=>{const L=[];g.forEach(R=>R._getActions().forEach(ye=>L.push(ye))),this._chipActions.reset(L),this._chipActions.notifyOnChanges()}),this._keyManager=new Ce.Em(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(g=>this._skipPredicate(g)),this.chipFocusChanges.pipe((0,An.R)(this._destroyed)).subscribe(({chip:g})=>{const L=g._getSourceAction(document.activeElement);L&&this._keyManager.updateActiveItem(L)}),this._dir?.change.pipe((0,An.R)(this._destroyed)).subscribe(g=>this._keyManager.withHorizontalOrientation(g))}_skipPredicate(g){return!g.isInteractive||g.disabled}_trackChipSetChanges(){this._chips.changes.pipe((0,fn.O)(null),(0,An.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe((0,An.R)(this._destroyed)).subscribe(g=>{const R=this._chips.toArray().indexOf(g.chip);this._isValidIndex(R)&&g.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=R)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const g=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),L=this._chips.toArray()[g];L.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():L.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(J.Is,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-set"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,ne,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._chips=Dt)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&n.uIk("role",R.role)},inputs:{disabled:"disabled",role:"role"},features:[n.qOj],ngContentSelectors:Jl,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return F})();class $i{constructor(Xe,g){this.source=Xe,this.value=g}}class mi extends hn{constructor(Xe,g,L,R,ye,Dt,Mn){super(Xe,g,L),this._defaultErrorStateMatcher=R,this._parentForm=ye,this._parentFormGroup=Dt,this.ngControl=Mn,this.stateChanges=new Oe.x}}const Ps=(0,Ve.FD)(mi);let fl=(()=>{class F extends Ps{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(g){this._disabled=(0,qt.Ig)(g),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(g){this._placeholder=g,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(Z.kI.required)??!1}set required(g){this._required=(0,qt.Ig)(g),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(g){this._value=g}get chipBlurChanges(){return this._getChipStream(g=>g._onBlur)}constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,Mn,ye,Dt,vi),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new n.vpe,this.valueChange=new n.vpe,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),(0,Ft.T)(this.chipFocusChanges,this._chips.changes).pipe((0,An.R)(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(g){this._chipInput=g,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(g){!this.disabled&&!this._originatesFromChip(g)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(g){this._ariaDescribedbyIds=g,this._chipInput?.setDescribedByIds(g)}writeValue(g){this._value=g}registerOnChange(g){this._onChange=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this.disabled=g,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(g){g.keyCode===U.Mf?this._chipInput.focused&&(0,U.Vb)(g,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(g.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(g),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const g=this._chips.length?this._chips.toArray().map(L=>L.value):[];this._value=g,this.change.emit(new $i(this,g)),this.valueChange.emit(g),this._onChange(g),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(J.Is,8),n.Y36(Z.F,8),n.Y36(Z.sg,8),n.Y36(Ve.rD),n.Y36(Z.a5,10))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-grid"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,qe,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._chips=Dt)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(L,R){1&L&&n.NdJ("focus",function(){return R.focus()})("blur",function(){return R._blur()}),2&L&&(n.Ikx("tabIndex",R._chips&&0===R._chips.length?-1:R.tabIndex),n.uIk("role",R.role)("aria-disabled",R.disabled.toString())("aria-invalid",R.errorState),n.ekj("mat-mdc-chip-list-disabled",R.disabled)("mat-mdc-chip-list-invalid",R.errorState)("mat-mdc-chip-list-required",R.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[n._Bn([{provide:Ai.Eo,useExisting:F}]),n.qOj],ngContentSelectors:Jl,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return F})(),Rl=0,Ja=(()=>{class F{set chipGrid(g){g&&(this._chipGrid=g,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(g){this._addOnBlur=(0,qt.Ig)(g)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(g){this._disabled=(0,qt.Ig)(g)}get empty(){return!this.inputElement.value}constructor(g,L,R){this._elementRef=g,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new n.vpe,this.placeholder="",this.id="mat-mdc-chip-list-input-"+Rl++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=L.separatorKeyCodes,R&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(g){if(g){if(g.keyCode===U.ZH&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void g.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(g)}_keyup(g){!this._focusLastChipOnBackspace&&g.keyCode===U.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,g.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(g){(!g||this._isSeparatorKey(g))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),g?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(g){const L=this._elementRef.nativeElement;g.length?L.setAttribute("aria-describedby",g.join(" ")):L.removeAttribute("aria-describedby")}_isSeparatorKey(g){return!(0,U.Vb)(g)&&new Set(this.separatorKeyCodes).has(g.keyCode)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(en),n.Y36(Ai.G_,8))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._keydown(Dt)})("keyup",function(Dt){return R._keyup(Dt)})("blur",function(){return R._blur()})("focus",function(){return R._focus()})("input",function(){return R._onInput()}),2&L&&(n.Ikx("id",R.id),n.uIk("disabled",R.disabled||null)("placeholder",R.placeholder||null)("aria-invalid",R._chipGrid&&R._chipGrid.ngControl?R._chipGrid.ngControl.invalid:null)("aria-required",R._chipGrid&&R._chipGrid.required||null)("required",R._chipGrid&&R._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[n.TTD]})}return F})(),Md=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[Ve.rD,{provide:en,useValue:{separatorKeyCodes:[U.K5]}}],imports:[Ve.BQ,e.ez,Ve.si,Ve.BQ]})}return F})();var Do=C(3651),qa=C(4911),xr=C(7398),dc=C(9397),Ec=C(5177);const sd=["panel"];function uc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",0,1),n.NdJ("@panelAnimation.done",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye._animationDone.next(R))}),n.Hsn(2),n.qZA()}if(2&F){const g=Xe.id,L=n.oxw();n.Q6J("id",L.id)("ngClass",L._classList)("@panelAnimation",L.isOpen?"visible":"hidden"),n.uIk("aria-label",L.ariaLabel||null)("aria-labelledby",L._getPanelAriaLabelledby(g))}}const hc=["*"],Qa=(0,Jn.X$)("panelAnimation",[(0,Jn.SB)("void, hidden",(0,Jn.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,Jn.eR)(":enter, hidden => visible",[(0,Jn.ru)([(0,Jn.jt)("0.03s linear",(0,Jn.oB)({opacity:1})),(0,Jn.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,Jn.oB)({transform:"scaleY(1)"}))])]),(0,Jn.eR)(":leave, visible => hidden",[(0,Jn.jt)("0.075s linear",(0,Jn.oB)({opacity:0}))])]);let js=0;class pl{constructor(Xe,g){this.source=Xe,this.option=g}}const ad=(0,Ve.Kr)(class{}),Pi=new n.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Xa(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let ld=(()=>{class F extends ad{get isOpen(){return this._isOpen&&this.showPanel}_setColor(g){this._color=g,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(g){this._autoActiveFirstOption=(0,qt.Ig)(g)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(g){this._autoSelectActiveOption=(0,qt.Ig)(g)}get requireSelection(){return this._requireSelection}set requireSelection(g){this._requireSelection=(0,qt.Ig)(g)}set classList(g){this._classList=g&&g.length?(0,qt.du)(g).reduce((L,R)=>(L[R]=!0,L),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(g,L,R,ye){super(),this._changeDetectorRef=g,this._elementRef=L,this._defaults=R,this._activeOptionChanges=ae.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new n.vpe,this.opened=new n.vpe,this.closed=new n.vpe,this.optionActivated=new n.vpe,this._classList={},this.id="mat-autocomplete-"+js++,this.inertGroups=ye?.SAFARI||!1,this._autoActiveFirstOption=!!R.autoActiveFirstOption,this._autoSelectActiveOption=!!R.autoSelectActiveOption,this._requireSelection=!!R.requireSelection}ngAfterContentInit(){this._keyManager=new Ce.s1(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(g=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[g]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(g){this.panel&&(this.panel.nativeElement.scrollTop=g)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(g){const L=new pl(this,g);this.optionSelected.emit(L)}_getPanelAriaLabelledby(g){return this.ariaLabel?null:this.ariaLabelledby?(g?g+" ":"")+this.ariaLabelledby:g}_setVisibilityClasses(g){g[this._visibleClass]=this.showPanel,g[this._hiddenClass]=!this.showPanel}_setThemeClasses(g){g["mat-primary"]="primary"===this._color,g["mat-warn"]="warn"===this._color,g["mat-accent"]="accent"===this._color}_skipPredicate(g){return g.disabled}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(Pi),n.Y36(G.t4))};static#t=this.\u0275dir=n.lG2({type:F,viewQuery:function(L,R){if(1&L&&(n.Gf(n.Rgc,7),n.Gf(sd,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R.template=ye.first),n.iGM(ye=n.CRH())&&(R.panel=ye.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[n.qOj]})}return F})(),Sc=(()=>{class F extends ld{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new n.vpe,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(g){this._hideSingleSelectionIndicator=(0,qt.Ig)(g),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const g of this.options)g._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(g){return!1}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-autocomplete"]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,Ve.K7,5),n.Suo(ye,Ve.ey,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.optionGroups=Dt),n.iGM(Dt=n.CRH())&&(R.options=Dt)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[n._Bn([{provide:Ve.HF,useExisting:F}]),n.qOj],ngContentSelectors:hc,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(L,R){1&L&&(n.F$t(),n.YNc(0,uc,3,5,"ng-template"))},dependencies:[e.mk],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Qa]},changeDetection:0})}return F})();const Td={provide:Z.JU,useExisting:(0,n.Gpc)(()=>Bc),multi:!0},ca=new n.OlP("mat-autocomplete-scroll-strategy"),Dd={provide:ca,deps:[Do.aV],useFactory:function zd(F){return()=>F.scrollStrategies.reposition()}};let Lo=(()=>{class F{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(g){this._autocompleteDisabled=(0,qt.Ig)(g)}constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){this._element=g,this._overlay=L,this._viewContainerRef=R,this._zone=ye,this._changeDetectorRef=Dt,this._dir=vi,this._formField=Fo,this._document=Ya,this._viewportRuler=Rd,this._defaults=kd,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=ae.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Oe.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,qa.P)(()=>{const tc=this.autocomplete?this.autocomplete.options:null;return tc?tc.changes.pipe((0,fn.O)(tc),(0,ai.w)(()=>(0,Ft.T)(...tc.map(Iu=>Iu.onSelectionChange)))):this._zone.onStable.pipe((0,jn.q)(1),(0,ai.w)(()=>this.optionSelections))}),this._handlePanelKeydown=tc=>{(tc.keyCode===U.hY&&!(0,U.Vb)(tc)||tc.keyCode===U.LH&&(0,U.Vb)(tc,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),tc.stopPropagation(),tc.preventDefault())},this._trackedModal=null,this._scrollStrategy=Mn}ngAfterViewInit(){const g=this._getWindow();typeof g<"u"&&this._zone.runOutsideAngular(()=>g.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(g){g.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const g=this._getWindow();typeof g<"u"&&g.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&(0,Ce.Zf)(this._trackedModal,"aria-owns",this.autocomplete.id)}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&(0,Ce.iD)(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Ft.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,oi.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,oi.h)(()=>this._overlayAttached)):(0,Se.of)()).pipe((0,xr.U)(g=>g instanceof Ve.rN?g:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Ft.T)((0,ot.R)(this._document,"click"),(0,ot.R)(this._document,"auxclick"),(0,ot.R)(this._document,"touchend")).pipe((0,oi.h)(g=>{const L=(0,G.sA)(g),R=this._formField?this._formField._elementRef.nativeElement:null,ye=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&L!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!R||!R.contains(L))&&(!ye||!ye.contains(L))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(L)}))}writeValue(g){Promise.resolve(null).then(()=>this._assignOptionValue(g))}registerOnChange(g){this._onChange=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this._element.nativeElement.disabled=g}_handleKeydown(g){const L=g.keyCode,R=(0,U.Vb)(g);if(L===U.hY&&!R&&g.preventDefault(),this.activeOption&&L===U.K5&&this.panelOpen&&!R)this.activeOption._selectViaInteraction(),this._resetActiveItem(),g.preventDefault();else if(this.autocomplete){const ye=this.autocomplete._keyManager.activeItem,Dt=L===U.LH||L===U.JH;L===U.Mf||Dt&&!R&&this.panelOpen?this.autocomplete._keyManager.onKeydown(g):Dt&&this._canOpen()&&this.openPanel(),(Dt||this.autocomplete._keyManager.activeItem!==ye)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(g){let L=g.target,R=L.value;"number"===L.type&&(R=""==R?null:parseFloat(R)),this._previousValue!==R&&(this._previousValue=R,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(R),R||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===g.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(g=!1){this._formField&&"auto"===this._formField.floatLabel&&(g?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const g=this._zone.onStable.pipe((0,jn.q)(1)),L=this.autocomplete.options.changes.pipe((0,dc.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Ec.g)(0));return(0,Ft.T)(g,L).pipe((0,ai.w)(()=>(this._zone.run(()=>{const R=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),R!==this.panelOpen&&(this.panelOpen?(this._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,jn.q)(1)).subscribe(R=>this._setValueAndClose(R))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(g){const L=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(g):g;this._updateNativeInputValue(L??"")}_updateNativeInputValue(g){this._formField?this._formField._control.value=g:this._element.nativeElement.value=g,this._previousValue=g}_setValueAndClose(g){const L=this.autocomplete,R=g?g.source:this._pendingAutoselectedOption;R?(this._clearPreviousSelectedOption(R),this._assignOptionValue(R.value),this._onChange(R.value),L._emitSelectEvent(R),this._element.nativeElement.focus()):L.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),L._animationDone?L._animationDone.pipe((0,jn.q)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(g,L){this.autocomplete?.options?.forEach(R=>{R!==g&&R.selected&&R.deselect(L)})}_attachOverlay(){let g=this._overlayRef;g?(this._positionStrategy.setOrigin(this._getConnectedElement()),g.updateSize({width:this._getPanelWidth()})):(this._portal=new ct.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),g=this._overlay.create(this._getOverlayConfig()),this._overlayRef=g,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&g&&g.updateSize({width:this._getPanelWidth()})})),g&&!g.hasAttached()&&(g.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const L=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&L!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const g=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=g.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=g.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Do.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const g=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(g),this._positionStrategy=g,g}_setStrategyPositions(g){const L=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],R=this._aboveClass,ye=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:R},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:R}];let Dt;Dt="above"===this.position?ye:"below"===this.position?L:[...L,...ye],g.withPositions(Dt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const g=this.autocomplete;if(g.autoActiveFirstOption){let L=-1;for(let R=0;R .cdk-overlay-container [aria-modal="true"]');if(!g)return;const L=this.autocomplete.id;this._trackedModal&&(0,Ce.iD)(this._trackedModal,"aria-owns",L),(0,Ce.Zf)(g,"aria-owns",L),this._trackedModal=g}_clearFromModal(){this._trackedModal&&((0,Ce.iD)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(Do.aV),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(ca),n.Y36(J.Is,8),n.Y36(Ai.G_,9),n.Y36(e.K0,8),n.Y36(_t.rL),n.Y36(Pi,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[n.TTD]})}return F})(),Bc=(()=>{class F extends Lo{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(L,R){1&L&&n.NdJ("focusin",function(){return R._handleFocus()})("blur",function(){return R._onTouched()})("input",function(Dt){return R._handleInput(Dt)})("keydown",function(Dt){return R._handleKeydown(Dt)})("click",function(){return R._handleClick()}),2&L&&n.uIk("autocomplete",R.autocompleteAttribute)("role",R.autocompleteDisabled?null:"combobox")("aria-autocomplete",R.autocompleteDisabled?null:"list")("aria-activedescendant",R.panelOpen&&R.activeOption?R.activeOption.id:null)("aria-expanded",R.autocompleteDisabled?null:R.panelOpen.toString())("aria-controls",R.autocompleteDisabled||!R.panelOpen||null==R.autocomplete?null:R.autocomplete.id)("aria-haspopup",R.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[n._Bn([Td]),n.qOj]})}return F})(),Ta=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[Dd],imports:[Do.U8,Ve.Ng,Ve.BQ,e.ez,_t.ZD,Ve.Ng,Ve.BQ]})}return F})();function Ed(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-chip-row",11),n.NdJ("removed",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.removeInterest(ye))}),n._uU(1),n.TgZ(2,"button",12)(3,"mat-icon"),n._uU(4,"cancel"),n.qZA()()()}if(2&F){const g=Xe.$implicit;n.xp6(1),n.hij(" ",g.name," "),n.xp6(1),n.uIk("aria-label","remove "+g.name)}}function yc(F,Xe){if(1&F&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&F){const g=Xe.$implicit;n.Q6J("value",g),n.xp6(1),n.hij(" ",g.name," ")}}let ql=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt){super(g,L,R),this.categoryService=ye,this.notifier=Dt,this.categories=[],this.selectedCategories=[],this.searchInputCtl=new Z.NI,this.separatorKeysCodes=[U.K5,U.OC],this.message=""}componentName(){return"ChooseInterestComponent"}ngOnInit(){this.loadCategories(null,null),this.loadMyInterests()}getAutoCompleteItems(){return(0,Se.of)(this.categories)}loadCategories(g,L){this.notifier.log("Loading child categories for: "+g);let R=null==g?S.Z.CATEGORIES.LOADED_ROOT_CATEGORIES():S.Z.CATEGORIES.LOADED_CHILD_CATEGORIES();R=this.componentKey(R),this.categoryService.loadCategories(R,g,L),this.subscribe(R,null,(ye,Dt)=>{this.categories=Dt.data.content,this.notifier.log(this.categories)})}chooseInterest(g){this.selectedCategories.map(L=>L.id).indexOf(g.id)>-1||this.selectedCategories.push(g)}removeInterest(g){let L=this.selectedCategories.map(R=>R.id).indexOf(g.id);this.selectedCategories.splice(L,1)}saveInterests(){let g=this.componentKey(S.Z.CATEGORIES.INTERESTS_SAVED());this.categoryService.saveInterests(g,this.selectedCategories),this.subscribe(g,"/",(L,R)=>{this.notifier.success("Success!","Interests Saved!"),this.notifier.log(R.data)}),this.subscribe(this.getErrorKey(g),"/",(L,R)=>{this.notifier.error("Failed!","Could not save interests!"),this.notifier.log(R.data)})}loadMyInterests(){let g=this.componentKey(S.Z.CATEGORIES.FETCH_INTERESTS());this.categoryService.fetchInterests(g),this.subscribe(g,null,(L,R)=>{this.selectedCategories=R.data.map(Dt=>Dt.category),0===this.selectedCategories.length&&(this.selectedCategories=this.categories,this.message="No interests found on your profile. So we automatically filled some items for you. You can remove, search for new items for interest profile.")})}add(g){}selected(g){this.chooseInterest(g.option.value),this.searchInputCtl.setValue("")}searchInputChange(){this.loadCategories(null,this.searchInputCtl.value)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(nd.H),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-choose-interest"]],features:[n.qOj],decls:15,vars:9,consts:[[1,"row","col-sm-12","ps-2"],[1,"example-chip-list"],["aria-label","Fruit selection"],["chipGrid",""],[3,"removed",4,"ngFor","ngForOf"],["placeholder","Search Interests...",3,"formControl","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","matChipInputTokenEnd","input"],["searchInput",""],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"btn","btn-success",3,"click"],[3,"removed"],["matChipRemove",""],[3,"value"]],template:function(L,R){if(1&L&&(n.TgZ(0,"div",0)(1,"em"),n._uU(2),n.qZA(),n.TgZ(3,"mat-form-field",1)(4,"mat-chip-grid",2,3),n.YNc(6,Ed,5,2,"mat-chip-row",4),n.qZA(),n.TgZ(7,"input",5,6),n.NdJ("matChipInputTokenEnd",function(Dt){return R.add(Dt)})("input",function(){return R.searchInputChange()}),n.qZA(),n.TgZ(9,"mat-autocomplete",7,8),n.NdJ("optionSelected",function(Dt){return R.selected(Dt)}),n.YNc(11,yc,2,2,"mat-option",9),n.ALo(12,"async"),n.qZA()(),n.TgZ(13,"button",10),n.NdJ("click",function(){return R.saveInterests()}),n._uU(14,"SAVE INTERESTS"),n.qZA()()),2&L){const ye=n.MAs(5),Dt=n.MAs(10);n.xp6(2),n.Oqu(R.message),n.xp6(4),n.Q6J("ngForOf",R.selectedCategories),n.xp6(1),n.Q6J("formControl",R.searchInputCtl)("matChipInputFor",ye)("matAutocomplete",Dt)("matChipInputSeparatorKeyCodes",R.separatorKeysCodes),n.xp6(4),n.Q6J("ngForOf",n.lcZ(12,7,R.getAutoCompleteItems()))}},dependencies:[e.sg,Z.Fj,Z.JJ,Z.oH,fl,Ja,ka,qe,bi.Hw,Ai.KE,Sc,Ve.ey,Bc,e.Ov],styles:[".interests-chip-list[_ngcontent-%COMP%]{width:100%;padding:10px}"]})}return F})(),wc=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}fetchFollowStats(g,L){this.http.get(vn.e.USER.FETCH_FOLLOW_STATS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchFollowStats(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}followUser(g,L,R){this.http.post(vn.e.USER.FOLLOW_A_USER(L),{message:R}).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.followUser(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}unfollowUser(g,L){this.http.post(vn.e.USER.UNFOLLOW_A_USER(L),null).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.unfollowUser(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}getFollowers(g,L){let R=L?vn.e.USER.GET_MY_FOLLOWING():vn.e.USER.GET_MY_FOLLOWERS();this.http.get(R).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.getFollowers(g,L)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}getMyProfile(g){this.http.get(vn.e.USER.GET_MY_PROFILE()).subscribe(L=>{this.eventBus.publish(g,L)},L=>{this.handleError(L,R=>{this.getMyProfile(g)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})})}updateProfile(g,L){this.http.patch(vn.e.USER.UPDATE_MY_PROFILE(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.updateProfile(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();function kl(F,Xe){1&F&&n._UZ(0,"util-progress",4),2&F&&n.Q6J("bar",!0)}function Ql(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",5),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.onItemClick(ye))}),n.TgZ(1,"div",6),n.NdJ("touchstart",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.swipe(R,ye.SWIPE_START,ye.swipeKey))})("touchend",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.swipe(R,ye.SWIPE_END,ye.swipeKey))}),n.TgZ(2,"div",7)(3,"div",8),n._UZ(4,"img",9),n.TgZ(5,"div",10)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small")(9,"span",11),n._uU(10),n.qZA()()()()()()()}if(2&F){const g=Xe.$implicit;n.xp6(4),n.s9C("src",g.avatar,n.LSH),n.xp6(3),n.Oqu(g.name),n.xp6(3),n.hij("@",g.username,"")}}let Ac=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.userService=ye,this.isFollowing=!1,this.followers=[],this.itemClick=new n.vpe,this.swipeKey=this.componentKey("swipe")}componentName(){return"FollowersComponent"}ngOnInit(){this.loadFollowers(this.isFollowing?1:2),this.registerSwipe()}getTabHeaders(){let g=[];return g.push({id:1,title:"Following"}),g.push({id:2,title:"Followers"}),g}onTabSelected(g){this.loadFollowers(g)}loadFollowers(g){this.loading=!0;let L=1===g,R=this.componentKey(S.Z.USERS.GET_MY_FOLLOWERS());this.userService.getFollowers(R,L),this.subscribe(R,null,(ye,Dt)=>{this.followers=Dt.data.content,this.loading=!1})}onItemClick(g){this.router.navigateByUrl("/profile",{skipLocationChange:!0}).then(()=>{this.navigate("/u/"+g.username,L=>{}),this.itemClick.emit(!0)})}registerSwipe(){this.subscribe(this.swipeKey,null,(g,L)=>{L.data===this.SWIPE_RIGHT?(this.isFollowing=!1,this.onTabSelected(2)):(this.isFollowing=!0,this.onTabSelected(1))})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(wc))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-followers"]],inputs:{isFollowing:"isFollowing"},outputs:{itemClick:"itemClick"},features:[n.qOj],decls:4,vars:4,consts:[["id","followers"],[3,"tabHeaders","selectedTabId","onSelect"],[3,"bar",4,"ngIf"],["class","blog-post-area blog-post-area-comment bdr-top mt-2",3,"click",4,"ngFor","ngForOf"],[3,"bar"],[1,"blog-post-area","blog-post-area-comment","bdr-top","mt-2",3,"click"],[1,"container",3,"touchstart","touchend"],[1,"blog-post-top","d-flex","justify-content-between","py-1"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"image-rounded",3,"src"],[1,"content","ms-2"],[2,"color","#44d62c"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"app-tab-header",1),n.NdJ("onSelect",function(Dt){return R.onTabSelected(Dt)}),n.qZA(),n.YNc(2,kl,1,1,"util-progress",2),n.YNc(3,Ql,11,3,"section",3),n.qZA()),2&L&&(n.xp6(1),n.Q6J("tabHeaders",R.getTabHeaders())("selectedTabId",R.isFollowing?1:2),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngForOf",R.followers))},dependencies:[e.sg,e.O5,Ge.t,Wi],styles:["#followers[_ngcontent-%COMP%]{background:black}"]})}return F})();function Hc(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function Eo(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)("size",30)("message","Loading profile..")}function Xl(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"This field is required!"),n.qZA()())}function cd(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Select a gender!"),n.qZA()())}function fc(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Invalid!"),n.qZA()())}function xc(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Select a gender!"),n.qZA()())}function Po(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Invalid religion!"),n.qZA()())}function da(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",7)(1,"div",8)(2,"form",9)(3,"div",10)(4,"div",11),n._UZ(5,"img",12),n.TgZ(6,"div",13)(7,"input",14),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onImageSelected(R))}),n.qZA()()()(),n.TgZ(8,"div",15)(9,"label",16),n._uU(10,"Public Profile?"),n.TgZ(11,"span",17),n._uU(12,"*"),n.qZA(),n._uU(13,"\xa0\xa0"),n.qZA(),n._UZ(14,"input",18),n.qZA(),n.TgZ(15,"div")(16,"h5",19),n._uU(17,"BIRTHDAY"),n.TgZ(18,"span",17),n._uU(19,"*"),n.qZA()(),n._UZ(20,"input",20),n.qZA(),n.YNc(21,Xl,3,0,"div",21),n.TgZ(22,"div",22)(23,"h5",19),n._uU(24,"SELECT GENDER"),n.TgZ(25,"span",17),n._uU(26,"*"),n.qZA()(),n.TgZ(27,"div",23),n._UZ(28,"input",24),n.TgZ(29,"label",25),n._uU(30," Male "),n.qZA()(),n.TgZ(31,"div",23),n._UZ(32,"input",26),n.TgZ(33,"label",27),n._uU(34," Female "),n.qZA()(),n.TgZ(35,"div",23),n._UZ(36,"input",28),n.TgZ(37,"label",29),n._uU(38," Other "),n.qZA()(),n.YNc(39,cd,3,0,"div",21),n.qZA(),n.TgZ(40,"div")(41,"h5",19),n._uU(42,"MARITAL STATUS"),n.qZA(),n.TgZ(43,"select",30)(44,"option",31),n._uU(45,"Married"),n.qZA(),n.TgZ(46,"option",32),n._uU(47,"Unmarried"),n.qZA(),n.TgZ(48,"option",33),n._uU(49,"Divorced"),n.qZA(),n.TgZ(50,"option",34),n._uU(51,"Separated"),n.qZA(),n.TgZ(52,"option",35),n._uU(53,"Widower"),n.qZA(),n.TgZ(54,"option",36),n._uU(55,"Widow"),n.qZA(),n.TgZ(56,"option",37),n._uU(57,"Other"),n.qZA()(),n.YNc(58,fc,3,0,"div",21),n.qZA(),n.TgZ(59,"h5",19),n._uU(60,"BLOOD GROUP"),n.qZA(),n.TgZ(61,"div",38)(62,"div",23),n._UZ(63,"input",39),n.TgZ(64,"label",40),n._uU(65," A+ "),n.qZA()(),n.TgZ(66,"div",23),n._UZ(67,"input",41),n.TgZ(68,"label",42),n._uU(69," A- "),n.qZA()(),n.TgZ(70,"div",23),n._UZ(71,"input",43),n.TgZ(72,"label",44),n._uU(73," B+ "),n.qZA()(),n.TgZ(74,"div",23),n._UZ(75,"input",45),n.TgZ(76,"label",46),n._uU(77," B- "),n.qZA()(),n.TgZ(78,"div",23),n._UZ(79,"input",47),n.TgZ(80,"label",48),n._uU(81," AB+ "),n.qZA()(),n.TgZ(82,"div",23),n._UZ(83,"input",49),n.TgZ(84,"label",50),n._uU(85," AB- "),n.qZA()(),n.TgZ(86,"div",23),n._UZ(87,"input",51),n.TgZ(88,"label",52),n._uU(89," O+ "),n.qZA()(),n.TgZ(90,"div",23),n._UZ(91,"input",53),n.TgZ(92,"label",54),n._uU(93," O- "),n.qZA()(),n.YNc(94,xc,3,0,"div",21),n.qZA(),n.TgZ(95,"div")(96,"h5",19),n._uU(97,"RELIGION"),n.qZA(),n.TgZ(98,"select",55)(99,"option",56),n._uU(100,"Islam"),n.qZA(),n.TgZ(101,"option",57),n._uU(102,"Hindu"),n.qZA(),n.TgZ(103,"option",58),n._uU(104,"Buddhist"),n.qZA(),n.TgZ(105,"option",59),n._uU(106,"Christian"),n.qZA(),n.TgZ(107,"option",60),n._uU(108,"Humanity"),n.qZA(),n.TgZ(109,"option",61),n._uU(110,"Other"),n.qZA()(),n.YNc(111,Po,3,0,"div",21),n.qZA(),n.TgZ(112,"mat-dialog-actions",62)(113,"button",63),n._uU(114,"CANCEL"),n.qZA(),n.TgZ(115,"button",64),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.updateProfile())}),n._uU(116,"UPDATE "),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(2),n.Q6J("formGroup",g.profileForm),n.xp6(3),n.s9C("src",g.hasProfilePhoto()?null==g.profile?null:g.profile.photo:"assets/img/default-avatar.png",n.LSH),n.xp6(16),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.birthday)),n.xp6(18),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.gender)),n.xp6(19),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.marital_status)),n.xp6(36),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.gender)),n.xp6(17),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.religion)),n.xp6(4),n.Q6J("mat-dialog-close",!0)("disabled",g.profileForm.invalid)}}let Ll=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya){super(L,R,ye),this.location=g,this.notifier=Dt,this.userService=Mn,this.auth=vi,this.datePipe=Fo,this.fileUploadService=Ya,this.userId=null,this.profileForm=new Z.cw({gender:new Z.NI("",[Z.kI.required]),birthday:new Z.NI("",[Z.kI.required]),public:new Z.NI(!1),blood_group:new Z.NI(""),marital_status:new Z.NI(""),religion:new Z.NI(""),use_photo_as_avatar:new Z.NI("")}),this.profile=null,this.uploadFiles=[]}componentName(){return"UpdateProfileComponent"}ngOnInit(){this.fetchMyProfile()}fetchMyProfile(){this.loading=!0;let g=this.componentKey(S.Z.USERS.GET_MY_PROFILE());this.userService.getMyProfile(g),this.subscribe(g,null,(L,R)=>{this.profile=R.data,this.loading=!1,this.updateForm(this.profile)}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{let ye=R.data;404==ye.error.code&&(this.loading=!1,this.notifier.info("No profile","Fill the form to create your profile ")),this.notifier.log(ye)})}updateProfile(){let g=this.mapToProfile(this.profileForm.value),L=this.componentKey(S.Z.USERS.UPDATE_MY_PROFILE());this.userService.updateProfile(L,g),this.subscribe(L,null,(R,ye)=>{this.profile=ye.data}),this.subscribe(this.getErrorKey(L),null,(R,ye)=>{this.notifier.log(ye.data)})}mapToProfile(g){return{gender:g.gender,birthday:new Date(g.birthday),blood_group:""===g.blood_group?null:g.blood_group,marital_status:""===g.marital_status?null:g.marital_status,religion:""===g.religion?null:g.religion,public:""!==g.public,use_photo_as_avatar:!0,photo:null==this.profile?.photo?null:this.profile.photo,user_id:this.auth.getAuth().id}}updateForm(g){null!=g&&(this.profileForm.controls.public.setValue(g.public),this.profileForm.controls.birthday.setValue(this.datePipe.transform(g.birthday,"yyyy-MM-dd")),this.profileForm.controls.gender.setValue(g.gender),this.profileForm.controls.marital_status.setValue(g.marital_status),this.profileForm.controls.blood_group.setValue(g.blood_group),this.profileForm.controls.religion.setValue(g.religion))}hasProfilePhoto(){return null!=this.profile?.photo&&""!==this.profile?.photo.trim()}onImageSelected(g){if(this.uploadFiles.length>=3)this.notifier.info("Operation not allowed!","You can upload 3 photos in a post.");else if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R),this.uploadPhoto())}}}uploadPhoto(){this.loading=!0;let g=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.userId+""));this.fileUploadService.uploadImages(g,this.uploadFiles.map(L=>L.file)),this.subscribe(g,null,(L,R)=>{this.loading=!1,null!=this.profile&&(this.profile.photo=R.data[0].thumb_url)}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.loading=!1,this.notifier.error("Error",R.data.error.message)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(e.Ye),n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(te.l),n.Y36(wc),n.Y36(_e.e),n.Y36(e.uU),n.Y36(oe.J))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-update-profile"]],inputs:{userId:"userId"},features:[n.qOj],decls:6,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding","size","message",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],["class","login-form-section",4,"ngIf"],[3,"bar"],[3,"padding","size","message"],[1,"login-form-section"],[1,"astha-login-form-area"],["action","POST",3,"formGroup"],[1,"profile-picture-area","text-center"],[1,"profile-avater"],["alt","",1,"profile-avatar-new","profile-img-rounded",3,"src"],[1,"upload-img-area"],["type","file","id","image-upload",3,"change"],[1,"input-group"],["for","public",1,"form-check-label"],[1,"astaric-required"],["id","public","type","checkbox","name","public","formControlName","public",1,"form-check"],[1,"update-profile-label"],["type","date","name","birthday","placeholder","Birthday","formControlName","birthday","required","required",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"input-group","d-inline"],[1,"form-check"],["type","radio","name","gender","id","exampleRadios1","value","MALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios1",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios2","value","FEMALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios2",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios3","value","OTHER","formControlName","gender",1,"form-check-input"],["for","exampleRadios3",1,"form-check-label"],["name","marital_status","formControlName","marital_status",1,"form-select"],["value","MARRIED"],["value","UNMARRIED"],["value","DIVORCED"],["value","SEPARATED"],["value","WIDOWER"],["value","WIDOW"],["value","OTHERS"],[1,"input-group","form-check-inline"],["type","radio","name","blood_group","id","bg1","value","A_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg1",1,"form-check-label"],["type","radio","name","blood_group","id","bg2","value","A_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg2",1,"form-check-label"],["type","radio","name","blood_group","id","bg3","value","B_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg3",1,"form-check-label"],["type","radio","name","blood_group","id","bg4","value","B_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg4",1,"form-check-label"],["type","radio","name","blood_group","id","bg5","value","AB_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg5",1,"form-check-label"],["type","radio","name","blood_group","id","bg6","value","AB_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg6",1,"form-check-label"],["type","radio","name","blood_group","id","bg7","value","O_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg7",1,"form-check-label"],["type","radio","name","blood_group","id","bg8","value","O_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg8",1,"form-check-label"],["name","religion","formControlName","religion",1,"form-select"],["value","ISLAM"],["value","HINDU"],["value","BUDDHIST"],["value","CHRISTIAN"],["value","HUMANITY"],["value","OTHER"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close","disabled","click"],[1,"text-warning"]],template:function(L,R){1&L&&(n.YNc(0,Hc,1,1,"util-progress",0),n.YNc(1,Eo,1,3,"util-progress",1),n.TgZ(2,"div")(3,"div",2),n._UZ(4,"i",3),n.qZA()(),n.YNc(5,da,117,9,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(4),n.Q6J("ngIf",!R.loading))},dependencies:[e.O5,Z._Y,Z.YN,Z.Kr,Z.Fj,Z.Wl,Z.EJ,Z._,Z.JJ,Z.JL,Z.Q7,Z.sg,Z.u,Re.ZT,Re.H8,mt.lW,Ge.t],styles:[".update-profile-label[_ngcontent-%COMP%]{color:#44d62c;margin:20px 0 5px}input[type=date][_ngcontent-%COMP%]{color:#000!important}.astaric-required[_ngcontent-%COMP%]{color:red}.action-buttons[_ngcontent-%COMP%]{margin-top:20px;padding-bottom:20px;display:flex;flex-direction:row;align-content:center;justify-content:space-between}.form-check[_ngcontent-%COMP%]{margin-right:20px}.profile-avatar-new[_ngcontent-%COMP%]{height:70px;width:70px;margin-bottom:10px;object-fit:cover}.profile-picture-area[_ngcontent-%COMP%]{margin-bottom:20px}.upload-img-area[_ngcontent-%COMP%]{font-size:12px}.btn-change-photo[_ngcontent-%COMP%]{color:#44d62c;margin-bottom:20px}"]})}return F})();var as=C(2071),pc=C(1822);function ir(F,Xe){1&F&&n._UZ(0,"util-progress")}function k(F,Xe){1&F&&n._UZ(0,"app-post",2),2&F&&n.Q6J("post",Xe.$implicit)}function j(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,k,1,1,"app-post",1),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.posts?null:g.posts.content)}}let pe=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.postService=ye,this.username=null,this.posts=null}componentName(){return"PostListComponent"}ngOnInit(){this.fetchPosts()}fetchPosts(){if(null==this.username)return;this.loading=!0;let g=this.componentKey(S.Z.POSTS.FETCH_USER_POSTS(this.username));this.postService.fetchUserPosts(g,this.username,{}),this.subscribe(g,null,(L,R)=>{this.posts=R.data,this.loading=!1})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-list"]],inputs:{username:"username"},features:[n.qOj],decls:2,vars:2,consts:[[4,"ngIf"],[3,"post",4,"ngFor","ngForOf"],[3,"post"]],template:function(L,R){1&L&&(n.YNc(0,ir,1,0,"util-progress",0),n.YNc(1,j,2,1,"div",0)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,Ge.t,oa]})}return F})();function ke(F,Xe){1&F&&(n.TgZ(0,"mat-icon",2),n._uU(1,"reviews"),n.qZA(),n._uU(2," Reviews "))}function nt(F,Xe){1&F&&(n.TgZ(0,"mat-icon",2),n._uU(1,"dynamic_feed"),n.qZA(),n._uU(2," Posts "))}let Kt=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.username=null}componentName(){return"UserResourcesComponent"}ngOnInit(){}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-user-resources"]],inputs:{username:"username"},features:[n.qOj],decls:7,vars:2,consts:[["mat-tab-label",""],[3,"username"],[1,"example-tab-icon"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-tab-group")(1,"mat-tab"),n.YNc(2,ke,3,0,"ng-template",0),n._UZ(3,"app-review-list",1),n.qZA(),n.TgZ(4,"mat-tab"),n.YNc(5,nt,3,0,"ng-template",0),n._UZ(6,"app-post-list",1),n.qZA()()),2&L&&(n.xp6(3),n.Q6J("username",R.username),n.xp6(3),n.Q6J("username",R.username))},dependencies:[bi.Hw,vr,to,ga,Bs,pe],styles:[".example-tab-icon[_ngcontent-%COMP%]{margin-right:8px} mat-tab-header{align-self:center}"]})}return F})();function xn(F,Xe){1&F&&n._UZ(0,"util-progress",26),2&F&&n.Q6J("bar",!0)}function Mi(F,Xe){1&F&&n._UZ(0,"img",28)}function Oi(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Mi,1,0,"img",27),n.TgZ(2,"h5"),n._uU(3),n.qZA()()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.leaderboard?null:g.leaderboard.badges),n.xp6(2),n.Oqu(null==g.leaderboard||null==g.leaderboard.current_badge?null:g.leaderboard.current_badge.title)}}function Hr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",33),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.unfollow(R.username))}),n._uU(1,"Pending"),n.qZA()}}function ws(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.unfollow(R.username))}),n._uU(1,"Following"),n.qZA()}}function tl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.follow(R.username))}),n._uU(1,"Follow"),n.qZA()}}function Zs(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Hr,2,0,"span",31),n.YNc(2,ws,2,0,"span",32),n.YNc(3,tl,2,0,"span",30),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngIf","PENDING"===(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf","ACCEPTED"===(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf","REJECTED"===(null==g.followStats?null:g.followStats.my_follow_state))}}function Uc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.follow(R.username))}),n._uU(1,"Follow"),n.qZA()}}function ls(F,Xe){if(1&F&&(n.TgZ(0,"button",29),n.YNc(1,Zs,4,3,"div",16),n.YNc(2,Uc,2,0,"span",30),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngIf",null!=(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf",null==(null==g.followStats?null:g.followStats.my_follow_state))}}let Gd=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){super(L,R,ye),this.location=g,this.authService=Dt,this.notifier=Mn,this.leaderboardService=vi,this.walletService=Fo,this.dialog=Ya,this.userService=Rd,this.leaderboard=null,this.followStats=null,this.username=null,this.username=kd.snapshot.params.username}componentName(){return"ProfileComponent"}ngOnInit(){null==this.username&&(this.username=this.getAuthUsername()),this.fetchLeaderboard(),this.fetchFollowStats()}getAuthUsername(){return this.getAuth().username}goBack(){this.location.back()}isLoadComplete(){return null!=this.leaderboard}myProfile(){return this.username===this.getAuthUsername()}getAuth(){return this.authService.getAuth()}fetchLeaderboard(){if(null==this.username)return;let g=this.componentKey(S.Z.LEADERBOARDS.FETCH_LEADERBOARD(this.username));this.leaderboardService.fetchLeaderboard(g,this.username),this.subscribe(g,null,(L,R)=>{this.leaderboard=R.data})}getBadgeCount(){return null==this.leaderboard?0:this.leaderboard.badges.length}fetchFollowStats(){if(null==this.username)return;let g=this.componentKey(S.Z.USERS.FETCH_FOLLOW_STATS(this.username));this.userService.fetchFollowStats(g,this.username),this.subscribe(g,null,(L,R)=>{this.followStats=R.data})}follow(g){if(null==g)return;const L=this.componentKey(S.Z.USERS.FOLLOW_USER(g));this.userService.followUser(L,g,""),this.subscribe(L,null,(R,ye)=>{let Dt=ye.data;this.notifier.log(this.followStats),this.followStats&&(this.followStats.my_follow_state=Dt.state)})}unfollow(g){if(null==g)return;const L=this.componentKey(S.Z.USERS.UNFOLLOW_USER(g));this.userService.unfollowUser(L,g),this.subscribe(L,null,(R,ye)=>{this.followStats&&(this.followStats.my_follow_state=null)})}isMyProfile(){return!!this.authService.isAuthenticated()&&this.getAuthUsername()===this.username}openFollowingDialog(g){if(!this.isMyProfile())return;const L=this.dialog.open(Ac);let R=L.componentInstance;R.isFollowing=g,R.itemClick.subscribe(ye=>{L.close()}),L.afterClosed().subscribe(ye=>{this.reloadRoute()})}openLeaderboard(){if(null==this.leaderboard)return;let L=this.dialog.open(as.B,{width:"600px"}).componentInstance;L.leaderboard=this.leaderboard,L.username=this.username}openUpdateProfileDialog(){if(!this.isMyProfile())return;this.dialog.open(Ll).afterClosed().subscribe(R=>{this.reloadRoute()})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(e.Ye),n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(_e.e),n.Y36(te.l),n.Y36(ce.S),n.Y36(pc.X),n.Y36(Re.uw),n.Y36(wc),n.Y36(l.gz))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-profile"]],features:[n.qOj],decls:44,vars:11,consts:[[3,"bar",4,"ngIf"],[1,"header-area","px-3","py-1"],[1,"container"],[1,"row","align-items-center"],[1,"col-4"],[1,"header-left"],[3,"click"],[1,"icon-left-small"],[1,"site-logo"],[1,"edit-profile-section","right",3,"click"],[1,"icon-edit",2,"font-size","1.2em"],[1,"profile-section","py-2"],[1,"profile-picture-area","text-center"],[1,"profile-avater"],["alt","",1,"profile-avatar-new","profile-img-rounded",2,"min-height","100px",3,"src"],[1,"author-name"],[4,"ngIf"],[1,"username"],[1,"action-area"],[1,"col-4","text-center",3,"click"],["class","btn btn-outline-light",4,"ngIf"],[1,"col-5","text-center",3,"click"],[1,"scans-users-codes-area"],[1,"row",2,"padding","0 5% 0 5%"],[1,"btn","btn-outline-light",3,"click"],[3,"username"],[3,"bar"],["src","assets/img/recent-acchievements/rating/badge1.png",4,"ngFor","ngForOf"],["src","assets/img/recent-acchievements/rating/badge1.png"],[1,"btn","btn-outline-light"],[3,"click",4,"ngIf"],["class","btn-selected-not-yet",3,"click",4,"ngIf"],["class","btn-selected",3,"click",4,"ngIf"],[1,"btn-selected-not-yet",3,"click"],[1,"btn-selected",3,"click"]],template:function(L,R){1&L&&(n.YNc(0,xn,1,1,"util-progress",0),n.TgZ(1,"div")(2,"header",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"a",6),n.NdJ("click",function(){return R.goBack()}),n._UZ(8,"i",7),n.qZA()()(),n.TgZ(9,"div",4)(10,"div",8)(11,"h3"),n._uU(12,"Profile"),n.qZA()()(),n.TgZ(13,"div",4)(14,"div",9),n.NdJ("click",function(){return R.openUpdateProfileDialog()}),n._UZ(15,"i",10),n.qZA()()()()(),n.TgZ(16,"div",11)(17,"div",2)(18,"div",12)(19,"div",13),n._UZ(20,"img",14),n.qZA(),n.TgZ(21,"div",15),n.YNc(22,Oi,4,2,"div",16),n.TgZ(23,"h2"),n._uU(24),n.qZA(),n.TgZ(25,"span",17),n._uU(26),n.qZA()()(),n.TgZ(27,"div",18)(28,"div",19),n.NdJ("click",function(){return R.openFollowingDialog(!0)}),n.TgZ(29,"h2"),n._uU(30),n.qZA(),n.TgZ(31,"h4"),n._uU(32,"Following"),n.qZA()(),n.YNc(33,ls,3,2,"button",20),n.TgZ(34,"div",21),n.NdJ("click",function(){return R.openFollowingDialog(!1)}),n.TgZ(35,"h2"),n._uU(36),n.qZA(),n.TgZ(37,"h4"),n._uU(38,"Followers"),n.qZA()()(),n.TgZ(39,"div",22)(40,"div",23)(41,"button",24),n.NdJ("click",function(){return R.openLeaderboard()}),n._uU(42),n.qZA()()()()(),n._UZ(43,"app-user-resources",25),n.qZA()),2&L&&(n.Q6J("ngIf",!R.isLoadComplete()),n.xp6(1),n.Q6J("@dataLoaded",R.isLoadComplete()?"loaded":"loading"),n.xp6(19),n.s9C("src",null!=(null==R.leaderboard?null:R.leaderboard.avatar)?null==R.leaderboard?null:R.leaderboard.avatar:"assets/img/default-avatar.png",n.LSH),n.xp6(2),n.Q6J("ngIf",R.getBadgeCount()>0),n.xp6(2),n.Oqu(null==R.leaderboard?null:R.leaderboard.name),n.xp6(2),n.hij("@",R.username,""),n.xp6(4),n.Oqu(null==R.followStats?null:R.followStats.following_count),n.xp6(3),n.Q6J("ngIf",null!=R.leaderboard),n.xp6(3),n.Oqu(null==R.followStats?null:R.followStats.followers_count),n.xp6(6),n.hij("EARNED POINTS: ",null==R.leaderboard?null:R.leaderboard.points," (?)"),n.xp6(1),n.Q6J("username",R.username))},dependencies:[e.sg,e.O5,Ge.t,Kt],styles:['img[_ngcontent-%COMP%]{max-width:100%;height:auto}body[_ngcontent-%COMP%]{background-color:var(--body-color);color:#222126}.header-area[_ngcontent-%COMP%] .header-left[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .header-area[_ngcontent-%COMP%] .site-logo[_ngcontent-%COMP%]{color:#f5f5f5}.header-area[_ngcontent-%COMP%] .site-logo[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center;font-size:22px;font-weight:600}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%]{margin-top:15px}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:25px;font-weight:600}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--light-gray);font-size:var(--font-size-14px)}.profile-section[_ngcontent-%COMP%] .profile-avater[_ngcontent-%COMP%]{position:relative;display:inline-block}.profile-avatar-new[_ngcontent-%COMP%]{display:inline;margin:0 auto;height:60px!important;width:100px!important;object-fit:cover}.profile-section[_ngcontent-%COMP%] .profile-avater[_ngcontent-%COMP%]:after{position:absolute;content:"";left:0;top:0;width:100%;height:100%;border:3px solid #756CB5;z-index:2;display:inline-block;border-radius:50%}.scans-users-codes-area[_ngcontent-%COMP%]{border-top:1px solid var(--light-gray);padding-top:20px;margin-bottom:20px}.scans-users-codes-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--light-gray);font-size:var(--font-size-14px);text-transform:capitalize}.author-name[_ngcontent-%COMP%] .username[_ngcontent-%COMP%]{color:#44d62c}.scans-users-codes-area[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{color:#f5f5f5}.action-area[_ngcontent-%COMP%]{margin:10px 0 0 10px;display:flex;justify-content:center;flex-direction:row}.action-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin:10px;min-width:25%}.btn-selected[_ngcontent-%COMP%]{color:#44d62c;font-size:.8em}.btn-selected-not-yet[_ngcontent-%COMP%]{color:orange;outline-color:orange;font-size:.8em}.edit-profile-section[_ngcontent-%COMP%]{float:right}']})}return F})();var _c=C(9538);function Sd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function Eu(F,Xe){if(1&F&&n._UZ(0,"app-single-review-item",4),2&F){const g=n.oxw();n.Q6J("review",g.review)}}let Ad=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.reviewService=Dt,this.seoTitle=Mn,this.seoMeta=vi,this.productSlug="",this.reviewSlug="",this.postId=0,this.review=null,this.productSlug=ye.snapshot.params.productSlug,this.reviewSlug=ye.snapshot.params.reviewSlug,this.postId=ye.snapshot.params.postId}componentName(){return"ReviewDetailsComponent"}ngOnInit(){let g=this.componentKey(S.Z.REVIEWS.LOAD_REVIEW(this.reviewSlug));this.reviewService.fetchReview(g,this.productSlug,this.reviewSlug),this.subscribe(g,null,(L,R)=>{this.review=R.data,this.resolveSeo(this.review),this.loading=!1})}resolveSeo(g){null!=g&&super.initSeoItems(this.seoTitle,this.seoMeta,g.title,g.pros+", "+g.cons,[g.product_name+" review","Rating for "+g.product_name],null,null,this.getCoverPhoto(g),this.getPermalink())}getCoverPhoto(g){return null==g.photos||0==g.photos.length?null:g.photos[0]}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(se.F),n.Y36(nn.Dx),n.Y36(nn.h_))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-review-details"]],features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"review",4,"ngIf"],[3,"postId"],[3,"bar"],[3,"review"]],template:function(L,R){1&L&&(n.YNc(0,Sd,1,1,"util-progress",0),n.YNc(1,Eu,1,1,"app-single-review-item",1),n._UZ(2,"app-conversation-area",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("postId",R.postId))},dependencies:[e.O5,Ge.t,El,Al]})}return F})();function Wd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function Pl(F,Xe){if(1&F&&n._UZ(0,"app-post",4),2&F){const g=n.oxw();n.Q6J("post",g.post)("fullVersion",!0)}}let ua=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.postService=Dt,this.dialog=Mn,this.postId=0,this.post=null,this.postId=ye.snapshot.params.postId}componentName(){return"PostDetailsComponent"}ngOnInit(){this.loadData(this.postId)}loadData(g){this.loading=!0;const L=this.componentKey(S.Z.POSTS.FETCH_POST(g));this.postService.fetchPost(L,this.postId),this.subscribe(L,null,(R,ye)=>{this.post=ye.data,this.loading=!1})}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g,R.onPosted.subscribe(ye=>{this.post=ye,L.close()}),R.onCancel.subscribe(ye=>{L.close()})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(Re.uw))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-details"]],inputs:{postId:"postId",post:"post"},features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"post","fullVersion",4,"ngIf"],[3,"postId"],[3,"bar"],[3,"post","fullVersion"]],template:function(L,R){1&L&&(n.YNc(0,Wd,1,1,"util-progress",0),n.YNc(1,Pl,1,2,"app-post",1),n._UZ(2,"app-conversation-area",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("postId",R.postId))},dependencies:[e.O5,Ge.t,oa,Al]})}return F})();var Or=C(9029);function Vc(F,Xe){1&F&&n._UZ(0,"util-progress",18),2&F&&n.Q6J("bar",!0)}function zo(F,Xe){1&F&&(n.TgZ(0,"em",19),n._uU(1,"Write at least 3 characters to start searching"),n.qZA())}function zi(F,Xe){1&F&&n._UZ(0,"util-progress",20),2&F&&n.Q6J("padding",100)}function Nl(F,Xe){1&F&&(n.TgZ(0,"div",21),n._UZ(1,"i",22),n.TgZ(2,"h3",23),n._uU(3,"Search for products"),n.qZA()())}function La(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-single-product-item",26),n.NdJ("onClick",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.onProductClick(ye))}),n.qZA()}2&F&&n.Q6J("product",Xe.$implicit)}function $d(F,Xe){if(1&F&&(n.TgZ(0,"div",24),n.YNc(1,La,1,1,"app-single-product-item",25),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.products)}}let mc=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.productService=ye,this.query=new Z.NI(""),this.productPage=null,this.products=[],this.filters={q:"",brand_id:null,category_id:null,min_retail_price:0,max_retail_price:9e4},this.showFilter=!1}componentName(){return"SearchComponent"}ngOnInit(){this.loading=!1,F.setDefaultFocus()}onQueryEntering(g){this.query.value.length<3||(this.filters.q=this.query.value,this.searchProducts())}static setDefaultFocus(){document.getElementById("search-input")?.focus()}searchProducts(){this.loading=!0;let g=this.componentKey(S.Z.PRODUCTS.SEARCH_PRODUCTS());this.productService.search(g,this.filters),this.subscribe(g,null,(L,R)=>{this.products=this.mapToSlice(R.data.content),this.loading=!1})}onProductClick(g){this.navigate("/products/"+g.product_id+"/"+g.product_slug,L=>{console.log(g)})}toggleFilter(){this.showFilter=!this.showFilter}onFilter(g){g.q=this.query.value,this.filters=g,this.searchProducts()}mapToSlice(g){let L=[];return g.forEach(R=>{L.push({image:R.cover_photo,description:R.description,product_id:R.id,product_name:R.name,product_slug:R.slug,average_rating:R.average_rating})}),L}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Qt.M))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-search"]],features:[n.qOj],decls:24,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"search-area"],[1,"container"],[1,"search-box","d-flex","justify-content-center"],[1,"search"],["type","text","id","search-input","placeholder","Search for products, jobs anything",1,"search-input",3,"formControl","input"],["href","#",1,"search-icon"],[1,"flaticon-search-interface-symbol"],["style","padding: 0 0 0 2px",4,"ngIf"],[1,"product-section","pt-4","mb-1"],[1,"row","align-items-center","mb-3"],[1,"col-7"],[1,"col-5",3,"click"],[1,"product-header-right","d-flex","justify-content-between"],["src","../../../../../assets/img/FunnelSimple.png","alt",""],[3,"padding",4,"ngIf"],["class","centerize",4,"ngIf"],["class","product-list-area",4,"ngIf"],[3,"bar"],[2,"padding","0 0 0 2px"],[3,"padding"],[1,"centerize"],[1,"flaticon-search-interface-symbol",2,"font-size","4em"],[1,"mt-3"],[1,"product-list-area"],["class","item",3,"product","onClick",4,"ngFor","ngForOf"],[1,"item",3,"product","onClick"]],template:function(L,R){1&L&&(n.YNc(0,Vc,1,1,"util-progress",0),n.TgZ(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"input",5),n.NdJ("input",function(Dt){return R.onQueryEntering(Dt)}),n.qZA(),n.TgZ(6,"a",6),n._UZ(7,"i",7),n.qZA()()(),n.YNc(8,zo,2,0,"em",8),n.qZA()(),n.TgZ(9,"section",9)(10,"div",2)(11,"div",10)(12,"div",11)(13,"h5"),n._uU(14,"Search Results"),n.qZA()(),n.TgZ(15,"div",12),n.NdJ("click",function(){return R.toggleFilter()}),n.TgZ(16,"div",13)(17,"h5"),n._uU(18,"Filter"),n.qZA(),n._UZ(19,"img",14),n.qZA()()(),n._UZ(20,"div"),n.qZA(),n.YNc(21,zi,1,1,"util-progress",15),n.YNc(22,Nl,4,0,"div",16),n.YNc(23,$d,2,1,"div",17),n.qZA()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(5),n.Q6J("formControl",R.query),n.xp6(3),n.Q6J("ngIf",R.query.value.length>0&&R.query.value.length<3),n.xp6(12),n.Q6J("@dataLoaded",R.showFilter?"loaded":"loading"),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&0===R.products.length),n.xp6(1),n.Q6J("ngIf",R.products.length>0))},dependencies:[e.sg,e.O5,Z.Fj,Z.JJ,Z.oH,Ge.t,Or.d],styles:[".product-list-area[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center;align-items:stretch;align-content:space-between}.product-list-area[_ngcontent-%COMP%]:after{display:block;margin:10px;flex:999 999 auto}.item[_ngcontent-%COMP%]{flex:0 0 auto;margin:10px}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{height:auto;position:relative}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:40px;width:95%}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:16px;position:absolute;height:auto;width:auto;top:50%;left:12px;margin-top:-9px;display:inline-block}"]})}return F})();var jc=C(1715),_l=C(5195);function Su(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.itemClick(R.notification))}),n.qZA()}if(2&F){const g=n.oxw(2);n.s9C("src",g.notification.image,n.LSH),n.s9C("alt",g.notification.title)}}function nu(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onActionRead(R.notification.id,!0))}),n._uU(1,"MARK READ"),n.qZA()}}function Pa(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onActionRead(R.notification.id,!1))}),n._uU(1,"MARK UNREAD"),n.qZA()}}const ao=function(F){return{read:F}};function Zc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-card",1)(1,"mat-card-title-group")(2,"mat-card-title",2),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.itemClick(R.notification))}),n._uU(3),n.qZA(),n.TgZ(4,"mat-card-subtitle"),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.YNc(7,Su,1,2,"img",3),n.qZA(),n.TgZ(8,"mat-card-content",2),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.itemClick(R.notification))}),n._uU(9),n.qZA(),n.TgZ(10,"mat-card-actions",4),n.YNc(11,nu,2,0,"button",5),n.YNc(12,Pa,2,0,"button",5),n.qZA()()}if(2&F){const g=n.oxw();n.Q6J("ngClass",n.VKq(10,ao,g.notification.read)),n.xp6(3),n.hij(" ",g.notification.title," "),n.xp6(2),n.Oqu(n.xi3(6,7,g.notification.created_at,!0)),n.xp6(2),n.Q6J("ngIf",null!=g.notification.image),n.xp6(2),n.hij(" ",g.notification.description," "),n.xp6(2),n.Q6J("ngIf",!g.notification.read),n.xp6(1),n.Q6J("ngIf",g.notification.read)}}let Go=(()=>{class F extends I.H{constructor(g,L,R){super(g,L,R),this.notification=null,this.notificationItemClick=new n.vpe,this.onMarkRead=new n.vpe}componentName(){return"NotificationComponent"}ngOnInit(){}itemClick(g){null!=g&&this.notificationItemClick.emit(g)}onActionRead(g,L){this.onMarkRead.emit({notificationId:g,read:L})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-notification"]],inputs:{notification:"notification"},outputs:{notificationItemClick:"notificationItemClick",onMarkRead:"onMarkRead"},features:[n.qOj],decls:1,vars:1,consts:[["class","notification-card",3,"ngClass",4,"ngIf"],[1,"notification-card",3,"ngClass"],[3,"click"],["class","card-img-sm-cover","mat-card-sm-image","",3,"src","alt","click",4,"ngIf"],["align","end"],["mat-button","",3,"click",4,"ngIf"],["mat-card-sm-image","",1,"card-img-sm-cover",3,"src","alt","click"],["mat-button","",3,"click"]],template:function(L,R){1&L&&n.YNc(0,Zc,13,12,"mat-card",0),2&L&&n.Q6J("ngIf",R.notification)},dependencies:[e.mk,e.O5,_l.a8,_l.hq,_l.dn,_l.vP,_l.$j,_l.n5,_l.C1,Yr.G],styles:[".notification-card[_ngcontent-%COMP%]{max-width:100%;margin-bottom:8px;font-family:Poppins,sans-serif}.read[_ngcontent-%COMP%]{color:#9d9d9d}mat-card-title[_ngcontent-%COMP%]{font-size:1em}mat-card-subtitle[_ngcontent-%COMP%]{font-size:.7em;color:gray}mat-card-content[_ngcontent-%COMP%]{font-size:.8em}.card-img-sm-cover[_ngcontent-%COMP%]{object-fit:cover;width:50px;height:50px;border-radius:10%;overflow:hidden}"]})}return F})();function Kd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function zc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notification",8),n.NdJ("notificationItemClick",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onNotificationItemClick(R))})("onMarkRead",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onMarkRead(R))}),n.qZA()}2&F&&n.Q6J("notification",Xe.$implicit)}function Jd(F,Xe){1&F&&(n.TgZ(0,"div",9),n._UZ(1,"i",10),n.TgZ(2,"h4",11),n._uU(3,"No notifications yet!"),n.qZA()())}function nl(F,Xe){if(1&F&&(n.TgZ(0,"div",4)(1,"h5",5),n._uU(2,"MY NOTIFICATIONS"),n.qZA(),n.YNc(3,zc,1,1,"app-notification",6),n.YNc(4,Jd,4,0,"div",7),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("ngForOf",null==g.notifications?null:g.notifications.content),n.xp6(1),n.Q6J("ngIf",!g.loading&&0===(null==g.notifications?null:g.notifications.numberOfElements))}}function Gc(F,Xe){1&F&&n._UZ(0,"util-progress",12),2&F&&n.Q6J("padding",70)}const ml=[{path:"",component:D.O},{path:"products/:id/:slug",component:vc},{path:"newsfeed",component:To,canActivate:[_c.P]},{path:"choose-interests",component:ql,canActivate:[_c.P]},{path:"profile",component:Gd,canActivate:[_c.P]},{path:"u/:username",component:Gd,canActivate:[_c.P]},{path:"reviews/:productSlug/:reviewSlug/:postId",component:Ad,canActivate:[_c.P]},{path:"posts/:postId",component:ua,canActivate:[_c.P]},{path:"search",component:mc},{path:"notifications",component:(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.notificationService=ye,this.notifications=null,this.params={page:0}}componentName(){return"MyNotificationsComponent"}ngOnInit(){this.fetchNotifications(this.params)}fetchNotifications(g){this.loading=!0;let L=this.componentKey(S.Z.NOTIFICATIONS.FETCH_MY_NOTIFICATIONS());this.notificationService.fetchMyNotifications(L,g),this.subscribe(L,null,(R,ye)=>{this.notifications=ye.data,this.loading=!1})}onNotificationItemClick(g){""!==g.redirect_url&&this.router.navigateByUrl(g.redirect_url)}onMarkRead(g){let L=this.componentKey(S.Z.NOTIFICATIONS.MARK_READ()),R=this.globalKey(S.Z.NOTIFICATIONS.COUNT_UNREAD());this.notificationService.markRead(L,R,g.notificationId,g.read),this.subscribe(L,null,(ye,Dt)=>{this.fetchNotifications(this.params)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(jc.g))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-my-notifications"]],features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],["class","notification-area mx-2",4,"ngIf"],[3,"padding",4,"ngIf"],[3,"bar"],[1,"notification-area","mx-2"],[1,"page-title","mb-2","bdr-top","pt-2"],[3,"notification","notificationItemClick","onMarkRead",4,"ngFor","ngForOf"],["class","centerize",4,"ngIf"],[3,"notification","notificationItemClick","onMarkRead"],[1,"centerize"],[1,"icon-pencil",2,"font-size","2em"],[1,"mt-3"],[3,"padding"]],template:function(L,R){1&L&&(n.YNc(0,Kd,1,1,"util-progress",0),n.YNc(1,nl,5,2,"div",1),n.YNc(2,Gc,1,1,"util-progress",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("ngIf",R.loading))},dependencies:[e.sg,e.O5,Ge.t,Go],styles:[".page-title[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})(),canActivate:[_c.P]}];let Oc=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[l.Bz.forChild(ml),l.Bz]})}return F})();var Au=C(8468);let Mc=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({})}return F})(),Bn=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[Ve.BQ,Ai.lN,Ai.lN,Mc,Ve.BQ]})}return F})();var ri=C(7151),Hn=C(469);let Od=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[Ve.uc,Ve.BQ,Ve.uc,Ve.BQ]})}return F})();var Tc=C(1989);let Id=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[e.uU],imports:[e.ez,Oc,Z.UX,Au.bB,Md,bi.Ps,Ai.lN,Ta,Ve.Ng,Re.Is,mt.ot,Bn,ri.g,Hn.f,Li,Od,_l.QW,Jo.LD,Z.u5,Tc.SocialModule]})}return F})();n.B6R(Al,[e.sg,e.O5,Ge.t,oa,Ga],[])},30:(ft,Ie,C)=>{"use strict";C.d(Ie,{Y:()=>D});var e=C(5879),l=C(5806);let D=(()=>{class I{constructor(w){this.eventBus=w}publish(w,n){this.eventBus.cast(w,n)}on(w){return this.eventBus.on(w)}static#e=this.\u0275fac=function(n){return new(n||I)(e.LFG(l.F))};static#t=this.\u0275prov=e.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},7259:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>l});var e=C(2495);let l=(()=>{class D{static#e=this.ERRORS={HTTP_UNAUTHORIZED_ERROR:"error:http:unauthorized"};static#t=this.AUTH={LOGIN_SUCCESS:"auth:login:success",SERVER_ERROR:"auth:login:server_error",ERROR_INVALID_CREDENTIALS:"auth:login:invalid_credentials",LOGOUT:"auth:logout:success"};static#n=this.REGISTRATION={OTP_SENT:"register:otp:sent",OTP_SEND_ERROR:"register:otp:send-error",REGISTER_SUCCESS:"register:success",REGISTER_ERROR:"register:error"};static#i=this.RESET_PASSWORD={TOKEN_REQUESTED:"reset:otp:token-requested",RESET_SUCCESS:"reset:password:success",RESET_PASSWORD_ERROR:"reset:password:error"};static#r=this.CATEGORIES={LOADED_ROOT_CATEGORIES:()=>"categories:load:success:root",LOADED_CHILD_CATEGORIES:()=>"categories:load:success:child",INTERESTS_SAVED:()=>"categories:interests:saved",FETCH_INTERESTS:()=>"categories:interests:fetch",LOADED_CATEGORY_ATTRIBUTES:S=>"categories:attributes:cat"+S,SEARCH_CATEGORIES:()=>"categories:search",SEARCH_CATEGORIES_FOR_FILTER:()=>"categories:search:filter-search",GET_MULTIPLE:S=>"categories:get-multiple:"+S.join(",")};static#o=this.PRODUCT_CATEGORIES={SEARCH:S=>"categorys:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"categorys:upsert:"+S,GET:S=>"categorys:get-single:"+S};static#s=this.PRODUCTS={SEARCH_PRODUCTS:()=>"product:search",SEARCH_BRANDS:()=>"product:search-brands",PRODUCTS_LOADED:S=>"products:load:success:attr"+S,PRODUCT_DETAILS_LOADED:S=>"products:load:details:success:"+S};static#a=this.PRODUCTS_V2={SEARCH:S=>"products:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"products:upsert:"+S,GET:S=>"products:get-single:"+S,APPROVE:S=>"products:approve-single:"+S};static#l=this.ATTRS={ATTR_FOR_PRODUCT_LOADED:S=>"attrs:load:success:"+S};static#c=this.FILES={IMAGE_UPLOAD:S=>"files:upload:images:"+S,SEARCH:S=>"files:search:search".concat(e.O.toParamString(S)),SEARCH_IMAGES:S=>"files:images:search".concat(e.O.toParamString(S)),UPSERT:S=>"files:upsert:"+S,GET:S=>"files:get-single:"+S};static#d=this.REVIEWS={POST_REVIEW:S=>"reviews:create-review"+S,LOAD_MY_REVIEW:S=>"reviews:fetch-my-review:"+S,LOAD_REVIEW:S=>"reviews:fetch-review:"+S,LOADED_PRODUCT_REVIEWS:S=>"reviews:loaded-product-reviews:"+S,FETCH_USER_REVIEWS:S=>"reviews:loaded-user-reviews:"+S,LOADED_PRODUCT_AVG_RATINGS:()=>"reviews:loaded-product-ratings:avg",MY_REVIEW_POSTED:S=>"review:post:my-review:p:"+S,FETCH_RECENT_REVIEWS:()=>"reviews:recent-reviews",FETCH_CRITIC_REVIEWS:()=>"reviews:critic-reviews",FETCH_INTERESTING_STORIES:()=>"reviews:interesting-stories",CLOSE_SHOW_REVIEW_DIALOG:()=>"close-dialog",SEND_VERIFICATION_REQUEST:S=>"review:send-verification-request:"+S,POST_REVIEW_REPORT:S=>"report:send-report-reviews-request:"+S,GET_VERIFICATION_FOR_REVIEW:S=>"review:get-verification-for-review:"+S,RECONSIDER_VERIFICATION:S=>"review:reconsider-verification:"+S,GET_REPORT_DETAILS_FOR_REVIEW:S=>"report:report-review-details:"+S,GET_REPORT_EXISTS:S=>"report:report-exists-for-post:"+S};static#u=this.POSTS={FETCH_NEWS_FEED_POSTS:S=>"posts:posts:newsfeed:fetch"+S,FETCH_COMMENTS:S=>"posts:comments:fetch:"+S,FETCH_ERROR:()=>"posts:fetch:error",SUBMIT_ERROR:()=>"posts:submit:error",SUBMIT_POST:(S,w)=>"posts:submit:success:"+S+":c:"+w,SUBMIT_REACTION:S=>"reaction:submit:success:"+S,FETCH_POST:S=>"post:fetch:single:"+S,FETCH_POST_REACTIONS:S=>"post:fetch:reactions:for:"+S,FETCH_REACTIONS:()=>"post:fetch:reactions",FETCH_USER_POSTS:S=>"posts:fetch:user-posts:"+S,UPDATE_POST:()=>"post:update",DELETE_POST:S=>"post:delete:"+S,FETCH_TRENDING_HASHTAGS:()=>"posts:fetch-trending-hashtags"};static#h=this.NOTIFICATIONS={SEARCH:()=>"notifications:search",GET:S=>"notifications:get-single:"+S,UPSERT:S=>"notifications:upsert:"+S,RESPOND:S=>"notifications:respond:"+S,FETCH_MY_NOTIFICATIONS:()=>"notifications:fetch-my-notifications",MARK_READ:()=>"notifications:mark-read",MAKE_STICKY:()=>"notifications:make-sticky",INCREASE_VIEW_COUNT:S=>"notifications:increase-read-count-"+S,INCREASE_CLICK_COUNT:S=>"notifications:increase-click-count-"+S,COUNT_UNREAD:()=>"notifications:count-unread"};static#f=this.LEADERBOARDS={FETCH_LEADERBOARD:S=>"leaderboards:fetch:"+S,FETCH_MY_LEADERBOARD:()=>"leaderboards:fetch:self",FETCH_ERROR:()=>"leaderboards:fetch:error",REDEEM_SUCCESS:()=>"leaderboard:redeem:success",REDEEM_SUCCESS_NOTIFY_PROFILE:()=>"leaderboard:redeem:success:notify-profile",REDEEM_ERROR:()=>"leaderboard:redeem:error",FETCH_RECENT_ACHIEVEMENTS:()=>"leaderboard:achievements:fetch-recent"};static#p=this.VENDORS={SEARCH_VENDORS:()=>"vendors:search",FETCH_ERROR:()=>"vendors:fetch:error",SEARCH:S=>"vendors:search:search".concat(e.O.toParamString(S)),MY_VENDORS:S=>"vendors:my-vendors:search".concat(e.O.toParamString(S)),UPSERT:S=>"vendors:upsert:"+S,GET:S=>"vendors:get-single:"+S,TOGGLE_APPROVAL:S=>"vendors:toggle-approval:"+S};static#_=this.WALLET={FETCH_MY_WALLET:()=>"wallet:fetch-my-wallet:success",FETCH_ERROR:()=>"wallet:fetch:error"};static#m=this.USERS={FETCH_FOLLOW_STATS:S=>"follow:stats:"+S,FOLLOW_USER:S=>"follow:user:"+S,UNFOLLOW_USER:S=>"unfollow:user:"+S,GET_MY_FOLLOWERS:()=>"follow:followers:find-followers",GET_MY_PROFILE:()=>"user:profile:get-my-profile",UPDATE_MY_PROFILE:()=>"user:profile:update-my-profile",DELETE_ME:()=>"users:delete-me",SEARCH_USERS:()=>"users:search-users",SEARCH:S=>"users:search:search".concat(e.O.toParamString(S)),SEARCH_CUSTOMERS:S=>"users:search:search-customers".concat(e.O.toParamString(S)),UPSERT:S=>"users:upsert:"+S,GET:S=>"users:get-single:"+S};static#g=this.REQUEST_CREDENTIALS={ADMIN_SEARCH_LOCKOUTS:()=>"req:cred:admin-search-lockouts"};static#v=this.ACTIVITY_LOGS={ADMIN_SEARCH:()=>"activity:logs:admin-search"};static#b=this.POLL_STATS={OVERVIEW:()=>"poll:stats:overview",DATE_WISE_POLL_COUNT:()=>"poll:stats:date-wise-poll-count"};static#y=this.CRUDEXAMPLES={SEARCH:S=>"crudexamples:search:".concat(e.O.toParamString(S)),UPSERT:S=>"crudexamples:upsert:"+S,GET:S=>"crudexamples:get-single:"+S};static#w=this.QUESTIONNAIRES={SEARCH:()=>"questionnaires:search",GET_DETAILS:S=>"questionnaires:details"+S,UPDATE:S=>"questionnaires:update"+S,CREATE:S=>"questionnaires:create"+S,TOGGLE_APPROVAL:S=>"questionnaires:toggle-approval"+S,FETCH_RESULT_SHEET:S=>"questionnaires:result-sheet:"+S};static#x=this.POLLS={SEARCH:()=>"polls:search",GET_DETAILS:S=>"polls:details"+S,UPDATE:S=>"polls:update"+S,CREATE:S=>"polls:create"+S};static#M=this.VOTES={SEARCH:()=>"votes:search",FETCH_USER_VOTE_STATS:()=>"votes:user-vote-stats",FETCH_POLL_VOTE_STATS:()=>"votes:poll-vote-stats"};static#C=this.POLL_OPTIONS={SEARCH_LEGACY:()=>"poll-options:search",SEARCH:S=>"poptions:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"poptions:upsert:"+S,GET:S=>"poptions:get-single:"+S,GET_DETAILS:S=>"poll-options:details"+S,UPDATE:S=>"poll-options:update"+S,CREATE:S=>"poll-options:create"+S};static#T=this.LABELS_LEGACY={SEARCH:()=>"labels-legacy:search",GET_LABEL_TREE:S=>"labels-legacy:search"+S,GET_DETAILS:S=>"labels-legacy:details"+S,UPDATE:S=>"labels-legacy:update"+S,CREATE:S=>"labels-legacy:create"+S};static#D=this.LABELS={SEARCH:S=>"labels:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"labels:upsert:"+S,GET:S=>"labels:get-single:"+S,GET_MULTIPLE:S=>"labels:get-multiple:"+S.join(",")};static#E=this.FEEDBACKS={SEARCH:S=>"feedbacks:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"feedbacks:upsert:"+S,GET:S=>"feedbacks:get-single:"+S,TAKE_ACTION:S=>"feedbacks:take-action:"+S};static#S=this.ATTRIBUTES={SEARCH:S=>"attributes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"attributes:upsert:"+S,GET:S=>"attributes:get-single:"+S};static#A=this.FILTERABLEATTRIBUTES={SEARCH:S=>"filterableattributes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"filterableattributes:upsert:"+S,GET:S=>"filterableattributes:get-single:"+S};static#O=this.BRANDS={SEARCH:S=>"brands:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"brands:upsert:"+S,GET:S=>"brands:get-single:"+S};static#I=this.ACVALIDATIONTOKENS={SEARCH:S=>"acvalidationtokens:search:search".concat(e.O.toParamString(S))};static#R=this.VARIATIONS={SEARCH:S=>"variations:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"variations:upsert:"+S,GET:S=>"variations:get-single:"+S};static#k=this.PRODUCTSPECIFICATIONS={SEARCH:S=>"productspecifications:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"productspecifications:upsert:"+S,GET:S=>"productspecifications:get-single:"+S};static#L=this.STOCKS={SEARCH:S=>"stocks:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"stocks:upsert:"+S,GET:S=>"stocks:get-single:"+S,GET_BY_SKU:S=>"stocks:get-single-by-sky:"+S};static#P=this.LOCATIONTYPES={SEARCH:S=>"locationtypes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"locationtypes:upsert:"+S,GET:S=>"locationtypes:get-single:"+S};static#N=this.LOCATIONS={SEARCH:S=>"locations:search:search".concat(e.O.toParamString(S)),GET_BY_TYPE:S=>"locations:get-by-type:"+S,UPSERT:S=>"locations:upsert:"+S,GET:S=>"locations:get-single:"+S,GET_MULTIPLE:S=>"locations:get-multiple:"+S.join(",")};static#F=this.ADDRESSS={SEARCH:S=>"addresss:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"addresss:upsert:"+S,GET:S=>"addresss:get-single:"+S};static#Y=this.ORDERS={SEARCH:S=>"orders:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"orders:upsert:"+S,GET:S=>"orders:get-single:"+S,MAKE_PAYMENT:S=>"orders:make-payment:"+S,CONFIRM_ORDER:S=>"orders:confirm-order:"+S,CHANGE_ORDER_STATUS:(S,w)=>"orders:change-order-status:"+S+":"+w};static#B=this.CUSTOMERS={SEARCH:S=>"customers:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"customers:upsert:"+S,GET:S=>"customers:get-single:"+S}}return D})()},8214:(ft,Ie,C)=>{"use strict";C.d(Ie,{J:()=>Z});var e=C(2495),l=C(1547),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends l.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}upload(ue){const se=new FormData;for(let oe=0;oe{this.eventBusService.publish(ue,ce)},ce=>{this.eventBusService.publish(this.getErrorKey(ue),ce)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},5462:(ft,Ie,C)=>{"use strict";C.d(Ie,{l:()=>D});var e=C(2425),l=C(5879);let D=(()=>{class I{constructor(w){this.toastr=w}info(w,n,Z=(()=>{}),ee=2e3){this.show("info",w,n,Z,ee)}success(w,n,Z=(()=>{}),ee=2e3){this.show("success",w,n,Z,ee)}warning(w,n,Z=(()=>{}),ee=2e3){this.show("warning",w,n,Z,ee)}error(w,n,Z=(()=>{}),ee=2e3){this.show("error",w,n,Z,ee)}show(w,n,Z,ee=(()=>{}),re=5e3){let se,ue={disableTimeOut:!1,timeOut:re,closeButton:!0,extendedTimeOut:1e3,progressBar:!0,progressAnimation:"decreasing",enableHtml:!0,easing:"ease-in",easeTime:300,tapToDismiss:!0,toastComponent:e.FN,onActivateTick:!1,newestOnTop:!0};switch(w){case"success":se=this.toastr.success(Z,n,ue);break;case"error":se=this.toastr.error(Z,n,ue);break;case"warning":se=this.toastr.warning(Z,n,ue);break;case"info":se=this.toastr.info(Z,n,ue)}se.onTap.subscribe(te=>{ee()})}log(w){console.log(w)}static#e=this.\u0275fac=function(n){return new(n||I)(l.LFG(e._W))};static#t=this.\u0275prov=l.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},3108:(ft,Ie,C)=>{"use strict";C.d(Ie,{n:()=>D});var e=C(553),l=C(5879);let D=(()=>{class I{constructor(){}static#e=this.KEYS={clientId:"*&^%&%frgter^87i5",clientSecret:"V%$#reg%786v*7i6",accessToken:"B57UB5&ehyr&5b&*6",refreshToken:"INB*gege&U4^345%36^5u",authorities:"BUegeg&v3$76u%^&*",phone:"phone",name:"name",email:"email",id:"id",username:"username",jti:"Jjjsdb!*(&*@&#*&Y#"};static putAuth(w){localStorage.setItem(this.KEYS.id,w.id.toString()),localStorage.setItem(this.KEYS.accessToken,w.access_token),localStorage.setItem(this.KEYS.refreshToken,w.refresh_token),localStorage.setItem(this.KEYS.phone,w.phone),localStorage.setItem(this.KEYS.name,w.name),localStorage.setItem(this.KEYS.email,w.email),localStorage.setItem(this.KEYS.username,w.username),localStorage.setItem(this.KEYS.jti,w.jti)}static getAuth(){const w=this.retrieve(this.KEYS.username);return{id:parseInt(this.retrieve(this.KEYS.id)),access_token:this.retrieve(this.KEYS.accessToken),refresh_token:this.retrieve(this.KEYS.refreshToken),name:this.retrieve(this.KEYS.name),username:w,email:this.retrieve(this.KEYS.email),phone:this.retrieve(this.KEYS.phone),jti:this.retrieve(this.KEYS.jti),avatar:e.N.base_url+"/api/v1/public/users/"+w+"/avatar"}}static put(w,n){localStorage.setItem(w,n)}static retrieve(w){return localStorage.getItem(w)}static clear(){localStorage.clear()}static#t=this.\u0275fac=function(n){return new(n||I)};static#n=this.\u0275prov=l.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},7613:(ft,Ie,C)=>{"use strict";C.d(Ie,{m:()=>e});class e{static takeOnly(D,I,S=!1){null==D&&(D="");let w=D.substr(0,Math.min(I,D.length));return S&&D.length>I?w+"...":w}static firstWord(D){null==D&&(D="");let I=D.split(" ");return I.length>0?I[0]:""}}},3674:(ft,Ie,C)=>{"use strict";C.d(Ie,{w:()=>e});class e{static isInvalidInput(D){return D.invalid&&(D.touched||D.dirty)}static getFormError(D,I){return D.errors?.[I]}static isValidPhone(D){return new RegExp("^(\\+88|0088)?01[3-9]\\d{8}$").test(D)}}},553:(ft,Ie,C)=>{"use strict";C.d(Ie,{N:()=>e});const e={production:!0,app_name:"Astha App",app_url:"https://astha.app",base_url:"https://dev.astha.app",client_id:"client_id",api_version:"/api/v1/",client_secret:"client_secret",resizeRedirectionEnabled:!0,redirectionWindowWidth:800,redirectUrl:"https://web.astha.app"}},913:(ft,Ie,C)=>{"use strict";var e=C(6593),l=C(5879),D=C(1662),I=C(553),S=C(8637),w=C(7259),n=C(2071),Z=C(8480),ee=C(5462),re=C(30),ue=C(6945),se=C(2951),te=C(1822),oe=C(7700),ce=C(1715),_e=C(6814),Re=C(6929);function mt(p,y){if(1&p&&(l.TgZ(0,"span",24)(1,"span",25),l._uU(2),l.qZA()()),2&p){const u=l.oxw();l.xp6(2),l.hij(" ",u.wallet.loyalty_points," ")}}function Ge(p,y){if(1&p&&(l.TgZ(0,"span",26)(1,"span",25),l._uU(2),l.qZA()()),2&p){const u=l.oxw();l.xp6(2),l.Oqu(u.notificationCount)}}function Lt(p,y){1&p&&l._UZ(0,"img",27)}function je(p,y){if(1&p&&l._UZ(0,"img",28),2&p){const u=l.oxw();l.s9C("src",u.getAvatar(),l.LSH)}}const Tt=function(){return["/"]},xt=function(){return["/notifications"]};let St=(()=>{class p extends S.H{constructor(u,m,T,B,Q,Le,Je,At,jt){super(B,T,Q),this.authService=u,this.notifier=m,this.leaderboardService=Le,this.walletService=Je,this.dialog=At,this.notificationService=jt,this.notificationCount=0,this.leaderboard=null,this.wallet=null,this.showMenubar=!1,T.events.subscribe(dn=>{dn instanceof D.m2&&(this.registerSubscriptions(),this.reloadData())})}componentName(){return"HeaderComponent"}ngOnInit(){this.reloadData()}reloadData(){this.fetchLeaderboard()}registerSubscriptions(){this.subscribe(this.globalKey(w.Z.AUTH.LOGOUT),null,(u,m)=>{this.router.navigateByUrl("/login").then(T=>{this.leaderboard=null,this.wallet=null,this.notificationCount=0})}),this.subscribe(this.globalKey(w.Z.NOTIFICATIONS.COUNT_UNREAD()),null,(u,m)=>{this.countUnreadNotifications()})}countUnreadNotifications(){let u=this.componentKey(w.Z.NOTIFICATIONS.COUNT_UNREAD());this.notificationService.countUnread(u),this.subscribe(u,null,(m,T)=>{this.notificationCount=T.data})}fetchLeaderboard(){let u=this.globalKey(w.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.authenticated()&&this.leaderboardService.fetchLeaderboard(u,this.authService.getAuth().username),this.subscribe(u,null,(m,T)=>{this.leaderboard=T.data,this.fetchWallet(),this.countUnreadNotifications()})}fetchWallet(){let u=this.componentKey(w.Z.WALLET.FETCH_MY_WALLET());this.authenticated()&&this.walletService.fetchWallet(u,{}),this.subscribe(u,null,(m,T)=>{this.wallet=T.data})}authenticated(){return this.authService.isAuthenticated()}getAuth(){return this.authService.getAuth()}getUserTitle(){return this.authService.isAuthenticated()?this.authService.getFirstName():"Profile"}getStyleAttrForProgress(){return"width: "+this.leaderboard?.completed_percentage+"%"}getNextThresholdPoints(){return null==this.leaderboard?.next_badge?0:this.leaderboard.next_badge.threshold_points}getLeaderboardPoints(){return null==this.leaderboard?0:this.leaderboard.points}getAvatar(){let u=this.getAuth().avatar;return null==u||0===u.trim().length?"assets/img/default-avatar.png":u}onMenuClick(u){this.showMenubar=!this.showMenubar}getMenuItems(){let u=[];return u.push({id:1,title:"My Interests",code:"MY_PROFILE"}),u.push({id:2,title:"My Profile",code:"MY_PROFILE"}),this.isAuthenticated()?u.push({id:3,title:"Logout",code:"LOGOUT"}):u.push({id:3,title:"Login",code:"LOGIN"}),u}isAuthenticated(){return this.authService.isAuthenticated()}onMenuItemClick(u){switch(u.id){case 2:this.navigate("/profile",m=>{});break;case 1:this.navigate("/choose-interests",m=>{});break;case 3:if(!this.isAuthenticated())return void this.navigate("/login",()=>{});this.authService.logout(),this.navigate("/",m=>{this.notifier.warning("Logged out","You have been successfully logged out.",()=>{this.router.navigate(["login"]).then(T=>{})},3e3)})}}openLeaderboard(){null!=this.leaderboard&&(this.dialog.open(n.B,{width:"600px"}).componentInstance.leaderboard=this.leaderboard)}onWalletClick(){this.authenticated()?this.openLeaderboard():this.navigate("/login",u=>{})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(Z.e),l.Y36(ee.l),l.Y36(D.F0),l.Y36(re.Y),l.Y36(ue.z),l.Y36(se.S),l.Y36(te.X),l.Y36(oe.uw),l.Y36(ce.g))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-web-header"]],features:[l.qOj],decls:32,vars:19,consts:[[1,"header-area","p-3"],[1,"container"],[1,"row"],[1,"col-7"],[1,"header-left"],[3,"routerLink"],[1,"batch-are","d-flex","mt-2",3,"click"],["src","assets/img/header-images/batch.png","alt",""],[1,"header-progress"],[1,"progress-content","d-flex","justify-content-between","mb-1"],[1,"progress-count"],[1,"progress"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-warning"],[1,"col-5","d-flex","justify-content-end"],[1,"social-icons"],[3,"click"],[1,"icon-wallet"],["class","notification-badge-wallet",4,"ngIf"],[1,"icon-bell-alt"],["class","notification-badge",4,"ngIf"],[1,"avater-section",3,"click"],["class","profile-img profile-img-rounded","src","assets/img/default-avatar.png","alt","",4,"ngIf"],["class","profile-img profile-img-rounded","alt","",3,"src",4,"ngIf"],[3,"showMenubar","top","items","menuItemClick"],[1,"notification-badge-wallet"],["aria-hidden","true",1,"notification-badge-count"],[1,"notification-badge"],["src","assets/img/default-avatar.png","alt","",1,"profile-img","profile-img-rounded"],["alt","",1,"profile-img","profile-img-rounded",3,"src"]],template:function(m,T){1&m&&(l.TgZ(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"a",5)(6,"h2"),l._uU(7,"Astha"),l.qZA()(),l.TgZ(8,"div",6),l.NdJ("click",function(){return T.openLeaderboard()}),l._UZ(9,"img",7),l.TgZ(10,"div",8)(11,"div",9)(12,"span",10),l._uU(13),l.qZA(),l.TgZ(14,"span"),l._uU(15),l.qZA()(),l.TgZ(16,"div",11),l._UZ(17,"div",12),l.qZA()()()()(),l.TgZ(18,"div",13)(19,"div",14)(20,"a",15),l.NdJ("click",function(){return T.onWalletClick()}),l._UZ(21,"i",16),l.YNc(22,mt,3,1,"span",17),l.qZA(),l.TgZ(23,"a",5),l._UZ(24,"i",18),l.YNc(25,Ge,3,1,"span",19),l.qZA()(),l.TgZ(26,"a",20),l.NdJ("click",function(Q){return T.onMenuClick(Q)}),l.YNc(27,Lt,1,0,"img",21),l.YNc(28,je,1,1,"img",22),l.TgZ(29,"h4"),l._uU(30),l.qZA(),l.TgZ(31,"app-menubox",23),l.NdJ("menuItemClick",function(Q){return T.onMenuItemClick(Q)}),l.qZA()()()()()()),2&m&&(l.xp6(5),l.Q6J("routerLink",l.DdM(17,Tt)),l.xp6(8),l.AsE("",T.getLeaderboardPoints()," /",T.getNextThresholdPoints(),""),l.xp6(2),l.Oqu(null==T.leaderboard||null==T.leaderboard.next_badge?null:T.leaderboard.next_badge.title),l.xp6(2),l.Akn(T.getStyleAttrForProgress()),l.uIk("aria-valuenow",null==T.leaderboard?null:T.leaderboard.points),l.xp6(5),l.Q6J("ngIf",null!=T.wallet),l.xp6(1),l.Q6J("routerLink",l.DdM(18,xt)),l.xp6(2),l.Q6J("ngIf",T.notificationCount>0),l.xp6(2),l.Q6J("ngIf",!T.authenticated()),l.xp6(1),l.Q6J("ngIf",T.authenticated()),l.xp6(2),l.Oqu(T.getUserTitle()),l.xp6(1),l.Q6J("showMenubar",T.showMenubar)("top",70)("items",T.getMenuItems()))},dependencies:[_e.O5,D.rH,Re.v],styles:["a[_ngcontent-%COMP%]{color:#fff}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:20px;margin-top:2px;display:inline-block;margin-right:10px;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.5}.avater-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.avater-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]:hover{opacity:.5}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:relative;display:inline-block}.notification-badge[_ngcontent-%COMP%]{position:absolute;top:-2px;right:-2px;width:18px;height:18px;text-align:center;line-height:13px;transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:167ms;background-color:#cc1016;display:block;z-index:1;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%}.notification-badge-count[_ngcontent-%COMP%]{font-size:12px}.notification-badge-wallet[_ngcontent-%COMP%]{position:absolute;top:-2px;right:-2px;width:18px;height:18px;text-align:center;line-height:13px;transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:167ms;background-color:#406440;display:block;z-index:1;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%}"]})}return p})();const Zt=function(){return["/"]},yt=function(){return["/newsfeed"]},un=function(){return["/search"]},Jt=function(){return["/profile"]};let tn=(()=>{class p{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-web-footer"]],decls:18,vars:9,consts:[[1,"footer-menu-area"],[1,"container-fluid"],[3,"routerLink"],[1,"icon-home"],[1,"icon-newspaper"],[1,"icon-search"],[1,"icon-bell-alt"],[1,"icon-user-circle-o"]],template:function(m,T){1&m&&(l.TgZ(0,"section",0)(1,"div",1)(2,"ul")(3,"li")(4,"a",2),l._UZ(5,"i",3),l.qZA()(),l.TgZ(6,"li")(7,"a",2),l._UZ(8,"i",4),l.qZA()(),l.TgZ(9,"li")(10,"a",2),l._UZ(11,"i",5),l.qZA()(),l.TgZ(12,"li")(13,"a",2),l._UZ(14,"i",6),l.qZA()(),l.TgZ(15,"li")(16,"a",2),l._UZ(17,"i",7),l.qZA()()()()()),2&m&&(l.xp6(4),l.Q6J("routerLink",l.DdM(5,Zt)),l.xp6(3),l.Q6J("routerLink",l.DdM(6,yt)),l.xp6(3),l.Q6J("routerLink",l.DdM(7,un)),l.xp6(3),l.Q6J("routerLink","/notifications"),l.xp6(3),l.Q6J("routerLink",l.DdM(8,Jt)))},dependencies:[D.rH],styles:[".center[_ngcontent-%COMP%]{margin:auto;width:50%;padding:10px}.footer[_ngcontent-%COMP%]{position:fixed;left:0;bottom:0;width:100%;background-color:#1976d2;color:#fff;text-align:center}.middle-item[_ngcontent-%COMP%]{color:#44d62c}"]})}return p})(),wn=(()=>{class p{constructor(){this.title="Astha App",this.windowWidth=0}ngOnInit(){this.windowWidth=window.innerWidth,this.resolveRedirection()}onResize(u){this.windowWidth=window.innerWidth,this.resolveRedirection()}resolveRedirection(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-layout"]],hostBindings:function(m,T){1&m&&l.NdJ("resize",function(Q){return T.onResize(Q)},!1,l.Jf7)},decls:4,vars:0,consts:[["role","main",1,"content","bottom-toolbar-margin"]],template:function(m,T){1&m&&(l._UZ(0,"app-web-header"),l.TgZ(1,"div",0),l._UZ(2,"router-outlet"),l.qZA(),l._UZ(3,"app-web-footer"))},dependencies:[D.lC,St,tn]})}return p})();var Ln=C(6223),Yn=C(8675);const ti=["rightBarToggle"];function gi(p,y){1&p&&l._UZ(0,"span",36)}function Rn(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",37),l.NdJ("click",function(){l.CHM(u);const T=l.oxw();return l.KtG(T.clearSearch())}),l._UZ(1,"span",38),l.qZA()}}const dt=function(p){return[p]};let at=(()=>{class p extends S.H{componentName(){return"AdminHeaderComponent"}constructor(u,m,T,B,Q,Le,Je){super(u,m,T),this.authService=B,this.renderer=Q,this.popupService=Le,this.activatedRoute=Je,this.search=new Ln.NI,this.isAdmin=!1,this.authorities=[],this.auth=this.authService.getAuth(),this.isAdmin=this.authService.isAdmin(),this.authorities=B.getAuthorities()}hasPrivilege(u){return this.isAdmin||this.authorities.includes(u)}ngOnInit(){this.activatedRoute.queryParams.subscribe(u=>{this.search.setValue(u.query)})}onSearch(){const m=this.router.parseUrl(this.router.url).root.children.primary.segments.map(T=>T.path).join("/");this.router.navigate([m],{queryParams:{query:this.search.value},queryParamsHandling:"merge"}).then(T=>{})}clearSearch(){this.search.setValue(null),this.onSearch()}logout(){this.authService.logout()}initLeftMenuCollapse(){const u=document.body;u.classList.toggle("sidebar-enable"),window.innerWidth>=992?u.classList.toggle("vertical-collpsed"):u.classList.remove("vertical-collpsed"),u.classList.contains("vertical-collpsed")?this.renderer.addClass(u,"vertical-collpsed"):this.renderer.removeClass(u,"vertical-collpsed")}initRightSidebar(){const u=document.querySelector("body");this.renderer.listen(u,"click",m=>{m.target.closest(".right-bar-toggle, .right-bar")||this.renderer.removeClass(u,"right-bar-enabled")}),this.renderer.listen(document.querySelector(".right-bar-toggle"),"click",()=>{this.renderer.addClass(u,"right-bar-enabled")})}openLeaderboard(){let u=this.popupService.open(n.B,{id:null});u.componentInstance.onCanceled.subscribe(()=>{u.close()})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(re.Y),l.Y36(D.F0),l.Y36(ue.z),l.Y36(Z.e),l.Y36(l.Qsj),l.Y36(Yn.x),l.Y36(D.gz))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-header"]],viewQuery:function(m,T){if(1&m&&l.Gf(ti,5),2&m){let B;l.iGM(B=l.CRH())&&(T.rightBarToggle=B.first)}},features:[l.qOj],decls:42,vars:9,consts:function(){let u,m,T;return u="\u09AA\u09CD\u09B0\u09CB\u09AB\u09BE\u0987\u09B2",m="\u09B2\u09BF\u09A1\u09BE\u09B0\u09AC\u09CB\u09B0\u09CD\u09A1",T="\u09B2\u0997 \u0986\u0989\u099F",[["id","page-topbar"],[1,"navbar-header"],[1,"d-flex"],[1,"navbar-brand-box"],["routerLink","/admin",1,"logo","logo-dark"],[1,"logo-sm"],["src","assets/apanel/images/logos/astha.svg","alt","","height","36"],[1,"logo-lg"],["src","assets/apanel/images/logos/astha.svg","alt","","height","72"],["routerLink","/admin",1,"logo","logo-light"],["type","button","id","vertical-menu-btn",1,"btn","btn-sm","px-3","font-size-16","header-item","waves-effect",3,"click"],[1,"fa","fa-fw","fa-bars"],[1,"app-search","d-none","d-lg-block",3,"submit"],[1,"position-relative"],["type","text",1,"form-control",3,"placeholder","formControl"],["class","bx bx-search-alt",4,"ngIf"],["href","javascript: void(0);",3,"click",4,"ngIf"],[1,"dropdown","d-inline-block"],["type","button","id","page-header-user-dropdown","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","header-item","waves-effect"],["alt","Header Avatar",1,"rounded-circle","header-profile-user",3,"src"],["key","t-henry",1,"d-none","d-xl-inline-block","ms-1"],[1,"mdi","mdi-chevron-down","d-none","d-xl-inline-block"],[1,"dropdown-menu","dropdown-menu-end"],["href","javascript:void(0);",1,"dropdown-item",3,"routerLink"],[1,"bx","bx-user","font-size-16","align-middle","me-1"],["key","t-profile"],u,["href","javascript:void(0);",1,"dropdown-item",3,"click"],[1,"bx","bx-wallet","font-size-16","align-middle","me-1"],["key","t-my-wallet"],m,[1,"dropdown-divider"],["href","#",1,"dropdown-item","text-danger",3,"click"],[1,"bx","bx-power-off","font-size-16","align-middle","me-1","text-danger"],["key","t-logout"],T,[1,"bx","bx-search-alt"],["href","javascript: void(0);",3,"click"],[1,"bx","bx-x-circle","text-danger"]]},template:function(m,T){1&m&&(l.TgZ(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4)(5,"span",5),l._UZ(6,"img",6),l.qZA(),l.TgZ(7,"span",7),l._UZ(8,"img",8),l.qZA()(),l.TgZ(9,"a",9)(10,"span",5),l._UZ(11,"img",6),l.qZA(),l.TgZ(12,"span",7),l._UZ(13,"img",8),l.qZA()()(),l.TgZ(14,"button",10),l.NdJ("click",function(){return T.initLeftMenuCollapse()}),l._UZ(15,"i",11),l.qZA(),l.TgZ(16,"form",12),l.NdJ("submit",function(){return T.onSearch()}),l.TgZ(17,"div",13),l._UZ(18,"input",14),l.YNc(19,gi,1,0,"span",15),l.YNc(20,Rn,2,0,"a",16),l.qZA()()(),l.TgZ(21,"div",2)(22,"div",17)(23,"button",18),l._UZ(24,"img",19),l.TgZ(25,"span",20),l._uU(26),l.qZA(),l._UZ(27,"i",21),l.qZA(),l.TgZ(28,"div",22)(29,"a",23),l._UZ(30,"i",24),l.TgZ(31,"span",25),l.SDv(32,26),l.qZA()(),l.TgZ(33,"a",27),l.NdJ("click",function(){return T.openLeaderboard()}),l._UZ(34,"i",28),l.TgZ(35,"span",29),l.SDv(36,30),l.qZA()(),l._UZ(37,"div",31),l.TgZ(38,"a",32),l.NdJ("click",function(){return T.logout()}),l._UZ(39,"i",33),l.TgZ(40,"span",34),l.SDv(41,35),l.qZA()()()()()()()),2&m&&(l.xp6(18),l.s9C("placeholder",T.translations["Search.."]),l.Q6J("formControl",T.search),l.xp6(1),l.Q6J("ngIf",!T.search.value),l.xp6(1),l.Q6J("ngIf",T.search.value),l.xp6(4),l.s9C("src",T.auth.avatar,l.LSH),l.xp6(2),l.Oqu(T.auth.username),l.xp6(3),l.Q6J("routerLink",l.VKq(7,dt,"/u/"+T.auth.username)))},dependencies:[_e.O5,D.rH,Ln._Y,Ln.Fj,Ln.JJ,Ln.JL,Ln.F,Ln.oH],styles:["mat-toolbar[_ngcontent-%COMP%]{background:#004a9f;color:#fff}mat-sidenav[_ngcontent-%COMP%]{margin:16px;width:200px;border-right:none;background:#002b5c;color:#fff;border-radius:10px;padding:16px;text-align:center}.content[_ngcontent-%COMP%]{height:calc(100vh - 98px);border-radius:10px;margin:16px 16px 16px 32px;display:flex;justify-content:center;align-items:center;font-size:2rem;color:#d3d3d3}mat-sidenav-container[_ngcontent-%COMP%]{height:calc(100vh - 65px)}"]})}return p})(),Be=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-footer"]],decls:9,vars:0,consts:[[1,"footer"],[1,"container-fluid"],[1,"row"],[1,"col-sm-6"],["href","https://servicito.com"],[1,"text-sm-end","d-none","d-sm-block"]],template:function(m,T){1&m&&(l.TgZ(0,"footer",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),l._uU(5,"@servicito"),l.qZA()(),l.TgZ(6,"div",3)(7,"div",5),l._uU(8," admin@servicito.com "),l.qZA()()()()())}})}return p})(),Ee=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["admin-right-nav"]],decls:34,vars:0,consts:[[1,"right-bar"],["data-simplebar","",1,"h-100"],[1,"rightbar-title","d-flex","align-items-center","px-3","py-4"],[1,"m-0","me-2"],[1,"mt-0"],[1,"text-center","mb-0"],[1,"p-4"],[1,"mb-2"],["src","/assets/apanel/images/layouts/layout-1.jpg","alt","layout images",1,"img-thumbnail"],[1,"form-check","form-switch","mb-3"],["type","checkbox","id","light-mode-switch","checked","",1,"form-check-input","theme-choice"],["for","light-mode-switch",1,"form-check-label"],["src","/assets/apanel/images/layouts/layout-2.jpg","alt","layout images",1,"img-thumbnail"],["type","checkbox","id","dark-mode-switch",1,"form-check-input","theme-choice"],["for","dark-mode-switch",1,"form-check-label"],["src","/assets/apanel/images/layouts/layout-3.jpg","alt","layout images",1,"img-thumbnail"],["type","checkbox","id","rtl-mode-switch",1,"form-check-input","theme-choice"],["for","rtl-mode-switch",1,"form-check-label"],["src","/assets/apanel/images/layouts/layout-4.jpg","alt","layout images",1,"img-thumbnail"],[1,"form-check","form-switch","mb-5"],["type","checkbox","id","dark-rtl-mode-switch",1,"form-check-input","theme-choice"],["for","dark-rtl-mode-switch",1,"form-check-label"],[1,"rightbar-overlay"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3),l._uU(4,"Settings"),l.qZA()(),l._UZ(5,"hr",4),l.TgZ(6,"h6",5),l._uU(7,"Choose Layouts"),l.qZA(),l.TgZ(8,"div",6)(9,"div",7),l._UZ(10,"img",8),l.qZA(),l.TgZ(11,"div",9),l._UZ(12,"input",10),l.TgZ(13,"label",11),l._uU(14,"Light Mode"),l.qZA()(),l.TgZ(15,"div",7),l._UZ(16,"img",12),l.qZA(),l.TgZ(17,"div",9),l._UZ(18,"input",13),l.TgZ(19,"label",14),l._uU(20,"Dark Mode"),l.qZA()(),l.TgZ(21,"div",7),l._UZ(22,"img",15),l.qZA(),l.TgZ(23,"div",9),l._UZ(24,"input",16),l.TgZ(25,"label",17),l._uU(26,"RTL Mode"),l.qZA()(),l.TgZ(27,"div",7),l._UZ(28,"img",18),l.qZA(),l.TgZ(29,"div",19),l._UZ(30,"input",20),l.TgZ(31,"label",21),l._uU(32,"Dark RTL Mode"),l.qZA()()()()(),l._UZ(33,"div",22))}})}return p})();var $e=C(8743),me=C(190);let tt=(()=>{class p{transform(u){return "" + u + ""}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275pipe=l.Yjl({name:"appTranslate",type:p,pure:!0})}return p})();function he(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",9),l.NdJ("click",function(){l.CHM(u);const T=l.oxw().$implicit,B=l.oxw();return l.KtG(B.onMenuGroupClick(T.title))}),l._UZ(1,"i"),l.TgZ(2,"span",10),l._uU(3),l.ALo(4,"appTranslate"),l.qZA()()}if(2&p){const u=l.oxw().$implicit;l.xp6(1),l.Tol(u.icon),l.xp6(2),l.Oqu(l.lcZ(4,4,u.title))}}function Ze(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",15),l.NdJ("click",function(){l.CHM(u);const T=l.oxw().$implicit,B=l.oxw(3);return l.KtG(B.onMenuItemClick(T))}),l._uU(1),l.ALo(2,"appTranslate"),l.qZA()}if(2&p){const u=l.oxw().$implicit;l.Q6J("ngClass",u.selected?"text-primary":""),l.xp6(1),l.Oqu(l.lcZ(2,2,u.title))}}function rt(p,y){if(1&p&&(l.TgZ(0,"li",13),l.YNc(1,Ze,3,4,"a",14),l.qZA()),2&p){const u=y.$implicit,m=l.oxw(3);l.Q6J("ngClass",u.selected?"bg-primary-subtle":""),l.xp6(1),l.Q6J("ngIf",m.hasPermission(u))}}function bt(p,y){if(1&p&&(l.TgZ(0,"ul",11),l.YNc(1,rt,2,2,"li",12),l.qZA()),2&p){const u=l.oxw().$implicit;l.xp6(1),l.Q6J("ngForOf",u.items)}}function Nt(p,y){if(1&p&&(l.TgZ(0,"li"),l.YNc(1,he,5,6,"a",7),l.YNc(2,bt,2,1,"ul",8),l.qZA()),2&p){const u=y.$implicit,m=l.oxw();l.xp6(1),l.Q6J("ngIf",!m.shouldHide(u)),l.xp6(1),l.Q6J("ngIf",!m.shouldHide(u)&&u.expanded)}}let Qt=(()=>{class p{constructor(u,m,T){this.renderer=m,this.router=T,this.authorities=[],this.isMenuCollapsed=!1,this.menu=me.s,this.isTabletOrMobileScreen=window.innerWidth<=1280,this.isTabletScreen=window.innerWidth<=1280&&window.innerWidth>=992,this.isAdmin=u.isAdmin(),this.authorities=u.getAuthorities(),this.setActiveMenuItem(this.router.url),this.router.events.subscribe(B=>{B instanceof D.OD&&this.setActiveMenuItem(B.url)})}toggleLeftMenu(){if(!this.isTabletOrMobileScreen)return;const u=document.body;u.classList.toggle("sidebar-enable"),window.innerWidth<=992&&(u.classList.toggle("vertical-collpsed"),console.log(this.isMenuCollapsed),this.isMenuCollapsed=!this.isMenuCollapsed,console.log(this.isMenuCollapsed)),u.classList.contains("vertical-collpsed")?(this.renderer.addClass(u,"vertical-collpsed"),this.isMenuCollapsed=!0):(this.renderer.removeClass(u,"vertical-collpsed"),this.isMenuCollapsed=!1)}onMenuGroupClick(u){this.menu=this.menu.map(m=>(m.expanded=m.title==u&&!m.expanded,m))}expandSidebar(u){const m=document.body;console.log(this.isMenuCollapsed),this.isMenuCollapsed=!u,console.log(this.isMenuCollapsed),u?(m.classList.remove("sidebar-enable"),m.classList.remove("vertical-collpsed")):(m.classList.add("sidebar-enable"),m.classList.add("vertical-collpsed")),this.isTabletScreen&&!this.isMenuCollapsed&&(this.menu=this.menu.map(T=>(T.expanded=!0,T)))}setActiveMenuItem(u){this.menu=this.menu.map(m=>{let T=m.items.map(B=>(B.selected=u.includes(B.link),B));return m.items=T,m.expanded=T.some(B=>B.selected),m}),this.isTabletScreen&&this.expandSidebar(!1)}onMenuItemClick(u){this.router.navigateByUrl(u.link).then(m=>{})}hasPermission(u){return this.isAdmin||u.permissions.some(m=>this.authorities.includes(m))}shouldHide(u){return!u.items.some(m=>this.hasPermission(m))}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(Z.e),l.Y36(l.Qsj),l.Y36(D.F0))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["admin-left-nav"]],decls:7,vars:3,consts:function(){let u;return u="\u09AE\u09C7\u09A8\u09C1",[[1,"vertical-menu"],["data-simplebar","",1,"h-100"],["id","sidebar-menu"],["id","side-menu",1,"metismenu","list-unstyled"],["key","t-menu",1,"menu-title"],u,[4,"ngFor","ngForOf"],["href","javascript: void(0);","class","has-arrow waves-effect",3,"click",4,"ngIf"],["class","sub-menu","aria-expanded","true",4,"ngIf"],["href","javascript: void(0);",1,"has-arrow","waves-effect",3,"click"],["key","t-dashboards"],["aria-expanded","true",1,"sub-menu"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["href","javascript: void(0);","key","t-saas",3,"ngClass","click",4,"ngIf"],["href","javascript: void(0);","key","t-saas",3,"ngClass","click"]]},template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"ul",3)(4,"li",4),l.SDv(5,5),l.qZA(),l.YNc(6,Nt,3,2,"li",6),l.qZA()()()()),2&m&&(l.Q6J("@slideIn",!T.isMenuCollapsed)("@expanded",void 0),l.xp6(6),l.Q6J("ngForOf",T.menu))},dependencies:[_e.mk,_e.sg,_e.O5,tt],data:{animation:[(0,$e.e6)("expanded"),(0,$e.Ym)("slideIn","left")]}})}return p})(),nn=(()=>{class p{constructor(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-layout"]],decls:10,vars:0,consts:[["id","layout-wrapper"],[1,"main-content"],[1,"page-content"],[1,"container-fluid"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0),l._UZ(1,"app-admin-header")(2,"admin-left-nav"),l.TgZ(3,"div",1)(4,"div",0)(5,"div",2)(6,"div",3),l._UZ(7,"router-outlet"),l.qZA()()(),l._UZ(8,"app-admin-footer"),l.qZA()(),l._UZ(9,"admin-right-nav"))},dependencies:[D.lC,at,Be,Ee,Qt],styles:["mat-toolbar[_ngcontent-%COMP%]{background:#004a9f;color:#fff}mat-sidenav[_ngcontent-%COMP%]{margin:16px;width:200px;border-right:none;background:#002b5c;color:#fff;border-radius:10px;padding:16px;text-align:center}.content[_ngcontent-%COMP%]{height:calc(100vh - 130px);border-radius:10px;margin:16px 16px 16px 32px;padding:16px;overflow:auto}mat-sidenav-container[_ngcontent-%COMP%]{height:calc(100vh - 65px)}.menu-button[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:flex-start;font-size:1rem}.menu-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}.avatar[_ngcontent-%COMP%]{margin-top:16px;width:100px;height:100px;border-radius:50%}.name[_ngcontent-%COMP%]{margin-top:8px;font-weight:400}.designation[_ngcontent-%COMP%]{margin-top:2px;font-size:.7rem;color:#d3d3d3}mat-divider[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px;background-color:#ffffff80}"]})}return p})();var Dn=C(9538),Ot=C(5239);const vn=[{path:"",component:wn,loadChildren:()=>Promise.resolve().then(C.bind(C,9310)).then(p=>p.WebAppModule)},{path:"auth",loadChildren:()=>Promise.resolve().then(C.bind(C,7043)).then(p=>p.AuthModule)},{path:"social",loadChildren:()=>Promise.resolve().then(C.bind(C,1989)).then(p=>p.SocialModule)},{path:"admin",component:nn,loadChildren:()=>C.e(424).then(C.bind(C,2241)).then(p=>p.AdminModule),canActivate:[Dn.P]},{path:"request-account-deletion",component:(()=>{class p extends S.H{constructor(u,m,T,B,Q,Le){super(u,m,T),this.notifier=B,this.userService=Q,this.authService=Le,this.username=null,null==this.username&&(this.username=this.getAuthUsername())}componentName(){return"UserDeleteComponent"}ngOnInit(){null==this.username&&(this.username=this.getAuthUsername())}getAuthUsername(){return this.authService.getAuth().username}deleteMyAccount(){if(!confirm("Are you sure to continue?"))return;if(!this.authService.isAuthenticated())return void this.router.navigate(["/login"]);let m=this.componentKey(w.Z.USERS.DELETE_ME());this.userService.deleteAccount(m),this.subscribe(m,"/login",(T,B)=>{this.notifier.success("Deleted!","Your account is deleted."),this.authService.logout(),this.reloadRoute()}),this.subscribe(this.getErrorKey(m),null,(T,B)=>{this.notifier.error("Error!",B.data.error.message)})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(re.Y),l.Y36(D.F0),l.Y36(ue.z),l.Y36(ee.l),l.Y36(Ot.K),l.Y36(Z.e))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-user-delete"]],features:[l.qOj],decls:9,vars:1,consts:[[1,"d-flex","flex-column","align-items-center","justify-content-center",2,"height","100vh"],[1,"p-2","m-2","rounded-2"],[1,"p-2","m-2","bg-danger","text-white","rounded-2","border-0",3,"click"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1),l._uU(2," Are you sure you want to permanently delete your account? "),l.qZA(),l.TgZ(3,"div",1),l._uU(4," Account will be deleted for username: "),l.TgZ(5,"span"),l._uU(6),l.qZA()(),l.TgZ(7,"button",2),l.NdJ("click",function(){return T.deleteMyAccount()}),l._uU(8," Delete "),l.qZA()()),2&m&&(l.xp6(6),l.Oqu(T.username))}})}return p})()},{path:"cms",loadChildren:()=>Promise.resolve().then(C.bind(C,9797)).then(p=>p.CmsModule),component:nn,canActivate:[Dn.P]}];let ei=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[D.Bz.forRoot(vn,{scrollPositionRestoration:"enabled"}),D.Bz]})}return p})(),Wn=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-root"]],decls:1,vars:0,template:function(m,T){1&m&&l._UZ(0,"router-outlet")},dependencies:[D.lC]})}return p})();var Ve=C(7043),ct=C(9862),Ct=C(5806),Ce=C(6825);function ae(p){return new l.vHH(3e3,!1)}function It(p){switch(p.length){case 0:return new Ce.ZN;case 1:return p[0];default:return new Ce.ZE(p)}}function cn(p,y,u=new Map,m=new Map){const T=[],B=[];let Q=-1,Le=null;if(y.forEach(Je=>{const At=Je.get("offset"),jt=At==Q,dn=jt&&Le||new Map;Je.forEach((Cn,Tn)=>{let Un=Tn,Xn=Cn;if("offset"!==Tn)switch(Un=p.normalizePropertyName(Un,T),Xn){case Ce.k1:Xn=u.get(Tn);break;case Ce.l3:Xn=m.get(Tn);break;default:Xn=p.normalizeStyleValue(Tn,Un,Xn,T)}dn.set(Un,Xn)}),jt||B.push(dn),Le=dn,Q=At}),T.length)throw function ze(p){return new l.vHH(3502,!1)}();return B}function _n(p,y,u,m){switch(y){case"start":p.onStart(()=>m(u&&En(u,"start",p)));break;case"done":p.onDone(()=>m(u&&En(u,"done",p)));break;case"destroy":p.onDestroy(()=>m(u&&En(u,"destroy",p)))}}function En(p,y,u){const B=On(p.element,p.triggerName,p.fromState,p.toState,y||p.phaseName,u.totalTime??p.totalTime,!!u.disabled),Q=p._data;return null!=Q&&(B._data=Q),B}function On(p,y,u,m,T="",B=0,Q){return{element:p,triggerName:y,fromState:u,toState:m,phaseName:T,totalTime:B,disabled:!!Q}}function ni(p,y,u){let m=p.get(y);return m||p.set(y,m=u),m}function Vn(p){const y=p.indexOf(":");return[p.substring(1,y),p.slice(y+1)]}const fr=(()=>typeof document>"u"?null:document.documentElement)();function ki(p){const y=p.parentNode||p.host||null;return y===fr?null:y}let vr=null,Bi=!1;function _i(p,y){for(;y;){if(y===p)return!0;y=ki(y)}return!1}function bo(p,y,u){if(u)return Array.from(p.querySelectorAll(y));const m=p.querySelector(y);return m?[m]:[]}let br=(()=>{class p{validateStyleProperty(u){return function co(p){vr||(vr=function tr(){return typeof document<"u"?document.body:null}()||{},Bi=!!vr.style&&"WebkitAppearance"in vr.style);let y=!0;return vr.style&&!function Kr(p){return"ebkit"==p.substring(1,6)}(p)&&(y=p in vr.style,!y&&Bi&&(y="Webkit"+p.charAt(0).toUpperCase()+p.slice(1)in vr.style)),y}(u)}matchesElement(u,m){return!1}containsElement(u,m){return _i(u,m)}getParentElement(u){return ki(u)}query(u,m,T){return bo(u,m,T)}computeStyle(u,m,T){return T||""}animate(u,m,T,B,Q,Le=[],Je){return new Ce.ZN(T,B)}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),$n=(()=>{class p{static#e=this.NOOP=new br}return p})();const yo=1e3,ho="ng-enter",to="ng-leave",yr="ng-trigger",Gs=".ng-trigger",Ba="ng-animating",xl=".ng-animating";function So(p){if("number"==typeof p)return p;const y=p.match(/^(-?[\.\d]+)(m?s)/);return!y||y.length<2?0:Ws(parseFloat(y[1]),y[2])}function Ws(p,y){return"s"===y?p*yo:p}function Ds(p,y,u){return p.hasOwnProperty("duration")?p:function $s(p,y,u){let T,B=0,Q="";if("string"==typeof p){const Le=p.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Le)return y.push(ae()),{duration:0,delay:0,easing:""};T=Ws(parseFloat(Le[1]),Le[2]);const Je=Le[3];null!=Je&&(B=Ws(parseFloat(Je),Le[4]));const At=Le[5];At&&(Q=At)}else T=p;if(!u){let Le=!1,Je=y.length;T<0&&(y.push(function Oe(){return new l.vHH(3100,!1)}()),Le=!0),B<0&&(y.push(function ot(){return new l.vHH(3101,!1)}()),Le=!0),Le&&y.splice(Je,0,ae())}return{duration:T,delay:B,easing:Q}}(p,y,u)}function Uo(p,y={}){return Object.keys(p).forEach(u=>{y[u]=p[u]}),y}function Jr(p){const y=new Map;return Object.keys(p).forEach(u=>{y.set(u,p[u])}),y}function oo(p,y=new Map,u){if(u)for(let[m,T]of u)y.set(m,T);for(let[m,T]of p)y.set(m,T);return y}function fs(p,y,u){y.forEach((m,T)=>{const B=dr(T);u&&!u.has(T)&&u.set(T,p.style[B]),p.style[B]=m})}function Sa(p,y){y.forEach((u,m)=>{const T=dr(m);p.style[T]=""})}function Vo(p){return Array.isArray(p)?1==p.length?p[0]:(0,Ce.vP)(p):p}const Ks=new RegExp("{{\\s*(.+?)\\s*}}","g");function Aa(p){let y=[];if("string"==typeof p){let u;for(;u=Ks.exec(p);)y.push(u[1]);Ks.lastIndex=0}return y}function qi(p,y,u){const m=p.toString(),T=m.replace(Ks,(B,Q)=>{let Le=y[Q];return null==Le&&(u.push(function Ft(p){return new l.vHH(3003,!1)}()),Le=""),Le.toString()});return T==m?p:T}function Li(p){const y=[];let u=p.next();for(;!u.done;)y.push(u.value),u=p.next();return y}const Yr=/-+([a-z0-9])/g;function dr(p){return p.replace(Yr,(...y)=>y[1].toUpperCase())}function Vr(p,y,u){switch(y.type){case 7:return p.visitTrigger(y,u);case 0:return p.visitState(y,u);case 1:return p.visitTransition(y,u);case 2:return p.visitSequence(y,u);case 3:return p.visitGroup(y,u);case 4:return p.visitAnimate(y,u);case 5:return p.visitKeyframes(y,u);case 6:return p.visitStyle(y,u);case 8:return p.visitReference(y,u);case 9:return p.visitAnimateChild(y,u);case 10:return p.visitAnimateRef(y,u);case 11:return p.visitQuery(y,u);case 12:return p.visitStagger(y,u);default:throw function lt(p){return new l.vHH(3004,!1)}()}}function Es(p,y){return window.getComputedStyle(p)[y]}const wo="*";function jo(p,y){const u=[];return"string"==typeof p?p.split(/\s*,\s*/).forEach(m=>function no(p,y,u){if(":"==p[0]){const Je=function Ao(p,y){switch(p){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(u,m)=>parseFloat(m)>parseFloat(u);case":decrement":return(u,m)=>parseFloat(m) *"}}(p,u);if("function"==typeof Je)return void y.push(Je);p=Je}const m=p.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==m||m.length<4)return u.push(function U(p){return new l.vHH(3015,!1)}()),y;const T=m[1],B=m[2],Q=m[3];y.push(va(T,Q));"<"==B[0]&&!(T==wo&&Q==wo)&&y.push(va(Q,T))}(m,u,y)):u.push(p),u}const nr=new Set(["true","1"]),ps=new Set(["false","0"]);function va(p,y){const u=nr.has(p)||ps.has(p),m=nr.has(y)||ps.has(y);return(T,B)=>{let Q=p==wo||p==T,Le=y==wo||y==B;return!Q&&u&&"boolean"==typeof T&&(Q=T?nr.has(p):ps.has(p)),!Le&&m&&"boolean"==typeof B&&(Le=B?nr.has(y):ps.has(y)),Q&&Le}}const qs=new RegExp("s*:selfs*,?","g");function ba(p,y,u,m){return new wi(p).build(y,u,m)}class wi{constructor(y){this._driver=y}build(y,u,m){const T=new or(u);return this._resetContextStyleTimingState(T),Vr(this,Vo(y),T)}_resetContextStyleTimingState(y){y.currentQuerySelector="",y.collectedStyles=new Map,y.collectedStyles.set("",new Map),y.currentTime=0}visitTrigger(y,u){let m=u.queryCount=0,T=u.depCount=0;const B=[],Q=[];return"@"==y.name.charAt(0)&&u.errors.push(function Ut(){return new l.vHH(3006,!1)}()),y.definitions.forEach(Le=>{if(this._resetContextStyleTimingState(u),0==Le.type){const Je=Le,At=Je.name;At.toString().split(/\s*,\s*/).forEach(jt=>{Je.name=jt,B.push(this.visitState(Je,u))}),Je.name=At}else if(1==Le.type){const Je=this.visitTransition(Le,u);m+=Je.queryCount,T+=Je.depCount,Q.push(Je)}else u.errors.push(function fn(){return new l.vHH(3007,!1)}())}),{type:7,name:y.name,states:B,transitions:Q,queryCount:m,depCount:T,options:null}}visitState(y,u){const m=this.visitStyle(y.styles,u),T=y.options&&y.options.params||null;if(m.containsDynamicStyles){const B=new Set,Q=T||{};m.styles.forEach(Le=>{Le instanceof Map&&Le.forEach(Je=>{Aa(Je).forEach(At=>{Q.hasOwnProperty(At)||B.add(At)})})}),B.size&&(Li(B.values()),u.errors.push(function gn(p,y){return new l.vHH(3008,!1)}()))}return{type:0,name:y.name,style:m,options:T?{params:T}:null}}visitTransition(y,u){u.queryCount=0,u.depCount=0;const m=Vr(this,Vo(y.animation),u);return{type:1,matchers:jo(y.expr,u.errors),animation:m,queryCount:u.queryCount,depCount:u.depCount,options:Sr(y.options)}}visitSequence(y,u){return{type:2,steps:y.steps.map(m=>Vr(this,m,u)),options:Sr(y.options)}}visitGroup(y,u){const m=u.currentTime;let T=0;const B=y.steps.map(Q=>{u.currentTime=m;const Le=Vr(this,Q,u);return T=Math.max(T,u.currentTime),Le});return u.currentTime=T,{type:3,steps:B,options:Sr(y.options)}}visitAnimate(y,u){const m=function Ml(p,y){if(p.hasOwnProperty("duration"))return p;if("number"==typeof p)return jr(Ds(p,y).duration,0,"");const u=p;if(u.split(/\s+/).some(B=>"{"==B.charAt(0)&&"{"==B.charAt(1))){const B=jr(0,0,"");return B.dynamic=!0,B.strValue=u,B}const T=Ds(u,y);return jr(T.duration,T.delay,T.easing)}(y.timings,u.errors);u.currentAnimateTimings=m;let T,B=y.styles?y.styles:(0,Ce.oB)({});if(5==B.type)T=this.visitKeyframes(B,u);else{let Q=y.styles,Le=!1;if(!Q){Le=!0;const At={};m.easing&&(At.easing=m.easing),Q=(0,Ce.oB)(At)}u.currentTime+=m.duration+m.delay;const Je=this.visitStyle(Q,u);Je.isEmptyStep=Le,T=Je}return u.currentAnimateTimings=null,{type:4,timings:m,style:T,options:null}}visitStyle(y,u){const m=this._makeStyleAst(y,u);return this._validateStyleAst(m,u),m}_makeStyleAst(y,u){const m=[],T=Array.isArray(y.styles)?y.styles:[y.styles];for(let Le of T)"string"==typeof Le?Le===Ce.l3?m.push(Le):u.errors.push(new l.vHH(3002,!1)):m.push(Jr(Le));let B=!1,Q=null;return m.forEach(Le=>{if(Le instanceof Map&&(Le.has("easing")&&(Q=Le.get("easing"),Le.delete("easing")),!B))for(let Je of Le.values())if(Je.toString().indexOf("{{")>=0){B=!0;break}}),{type:6,styles:m,easing:Q,offset:y.offset,containsDynamicStyles:B,options:null}}_validateStyleAst(y,u){const m=u.currentAnimateTimings;let T=u.currentTime,B=u.currentTime;m&&B>0&&(B-=m.duration+m.delay),y.styles.forEach(Q=>{"string"!=typeof Q&&Q.forEach((Le,Je)=>{const At=u.collectedStyles.get(u.currentQuerySelector),jt=At.get(Je);let dn=!0;jt&&(B!=T&&B>=jt.startTime&&T<=jt.endTime&&(u.errors.push(function ai(p,y,u,m,T){return new l.vHH(3010,!1)}()),dn=!1),B=jt.startTime),dn&&At.set(Je,{startTime:B,endTime:T}),u.options&&function oc(p,y,u){const m=y.params||{},T=Aa(p);T.length&&T.forEach(B=>{m.hasOwnProperty(B)||u.push(function Se(p){return new l.vHH(3001,!1)}())})}(Le,u.options,u.errors)})})}visitKeyframes(y,u){const m={type:5,styles:[],options:null};if(!u.currentAnimateTimings)return u.errors.push(function di(){return new l.vHH(3011,!1)}()),m;let B=0;const Q=[];let Le=!1,Je=!1,At=0;const jt=y.steps.map(Ii=>{const Ri=this._makeStyleAst(Ii,u);let rr=null!=Ri.offset?Ri.offset:function Xs(p){if("string"==typeof p)return null;let y=null;if(Array.isArray(p))p.forEach(u=>{if(u instanceof Map&&u.has("offset")){const m=u;y=parseFloat(m.get("offset")),m.delete("offset")}});else if(p instanceof Map&&p.has("offset")){const u=p;y=parseFloat(u.get("offset")),u.delete("offset")}return y}(Ri.styles),Si=0;return null!=rr&&(B++,Si=Ri.offset=rr),Je=Je||Si<0||Si>1,Le=Le||Si0&&B{const rr=Cn>0?Ri==Tn?1:Cn*Ri:Q[Ri],Si=rr*ii;u.currentTime=Un+Xn.delay+Si,Xn.duration=Si,this._validateStyleAst(Ii,u),Ii.offset=rr,m.styles.push(Ii)}),m}visitReference(y,u){return{type:8,animation:Vr(this,Vo(y.animation),u),options:Sr(y.options)}}visitAnimateChild(y,u){return u.depCount++,{type:9,options:Sr(y.options)}}visitAnimateRef(y,u){return{type:10,animation:this.visitReference(y.animation,u),options:Sr(y.options)}}visitQuery(y,u){const m=u.currentQuerySelector,T=y.options||{};u.queryCount++,u.currentQuery=y;const[B,Q]=function Oo(p){const y=!!p.split(/\s*,\s*/).find(u=>":self"==u);return y&&(p=p.replace(qs,"")),p=p.replace(/@\*/g,Gs).replace(/@\w+/g,u=>Gs+"-"+u.slice(1)).replace(/:animating/g,xl),[p,y]}(y.selector);u.currentQuerySelector=m.length?m+" "+B:B,ni(u.collectedStyles,u.currentQuerySelector,new Map);const Le=Vr(this,Vo(y.animation),u);return u.currentQuery=null,u.currentQuerySelector=m,{type:11,selector:B,limit:T.limit||0,optional:!!T.optional,includeSelf:Q,animation:Le,originalSelector:y.selector,options:Sr(y.options)}}visitStagger(y,u){u.currentQuery||u.errors.push(function _t(){return new l.vHH(3013,!1)}());const m="full"===y.timings?{duration:0,delay:0,easing:"full"}:Ds(y.timings,u.errors,!0);return{type:12,animation:Vr(this,Vo(y.animation),u),timings:m,options:null}}}class or{constructor(y){this.errors=y,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Sr(p){return p?(p=Uo(p)).params&&(p.params=function Ko(p){return p?Uo(p):null}(p.params)):p={},p}function jr(p,y,u){return{duration:p,delay:y,easing:u}}function xo(p,y,u,m,T,B,Q=null,Le=!1){return{type:1,element:p,keyframes:y,preStyleProps:u,postStyleProps:m,duration:T,delay:B,totalTime:T+B,easing:Q,subTimeline:Le}}class _s{constructor(){this._map=new Map}get(y){return this._map.get(y)||[]}append(y,u){let m=this._map.get(y);m||this._map.set(y,m=[]),m.push(...u)}has(y){return this._map.has(y)}clear(){this._map.clear()}}const Io=new RegExp(":enter","g"),fo=new RegExp(":leave","g");function Zr(p,y,u,m,T,B=new Map,Q=new Map,Le,Je,At=[]){return(new ms).buildKeyframes(p,y,u,m,T,B,Q,Le,Je,At)}class ms{buildKeyframes(y,u,m,T,B,Q,Le,Je,At,jt=[]){At=At||new _s;const dn=new Br(y,u,At,T,B,jt,[]);dn.options=Je;const Cn=Je.delay?So(Je.delay):0;dn.currentTimeline.delayNextStep(Cn),dn.currentTimeline.setStyles([Q],null,dn.errors,Je),Vr(this,m,dn);const Tn=dn.timelines.filter(Un=>Un.containsAnimation());if(Tn.length&&Le.size){let Un;for(let Xn=Tn.length-1;Xn>=0;Xn--){const ii=Tn[Xn];if(ii.element===u){Un=ii;break}}Un&&!Un.allowOnlyTimelineStyles()&&Un.setStyles([Le],null,dn.errors,Je)}return Tn.length?Tn.map(Un=>Un.buildKeyframes()):[xo(u,[],[],[],0,Cn,"",!1)]}visitTrigger(y,u){}visitState(y,u){}visitTransition(y,u){}visitAnimateChild(y,u){const m=u.subInstructions.get(u.element);if(m){const T=u.createSubContext(y.options),B=u.currentTimeline.currentTime,Q=this._visitSubInstructions(m,T,T.options);B!=Q&&u.transformIntoNewTimeline(Q)}u.previousNode=y}visitAnimateRef(y,u){const m=u.createSubContext(y.options);m.transformIntoNewTimeline(),this._applyAnimationRefDelays([y.options,y.animation.options],u,m),this.visitReference(y.animation,m),u.transformIntoNewTimeline(m.currentTimeline.currentTime),u.previousNode=y}_applyAnimationRefDelays(y,u,m){for(const T of y){const B=T?.delay;if(B){const Q="number"==typeof B?B:So(qi(B,T?.params??{},u.errors));m.delayNextStep(Q)}}}_visitSubInstructions(y,u,m){let B=u.currentTimeline.currentTime;const Q=null!=m.duration?So(m.duration):null,Le=null!=m.delay?So(m.delay):null;return 0!==Q&&y.forEach(Je=>{const At=u.appendInstructionToTimeline(Je,Q,Le);B=Math.max(B,At.duration+At.delay)}),B}visitReference(y,u){u.updateOptions(y.options,!0),Vr(this,y.animation,u),u.previousNode=y}visitSequence(y,u){const m=u.subContextCount;let T=u;const B=y.options;if(B&&(B.params||B.delay)&&(T=u.createSubContext(B),T.transformIntoNewTimeline(),null!=B.delay)){6==T.previousNode.type&&(T.currentTimeline.snapshotCurrentStyles(),T.previousNode=Co);const Q=So(B.delay);T.delayNextStep(Q)}y.steps.length&&(y.steps.forEach(Q=>Vr(this,Q,T)),T.currentTimeline.applyStylesToKeyframe(),T.subContextCount>m&&T.transformIntoNewTimeline()),u.previousNode=y}visitGroup(y,u){const m=[];let T=u.currentTimeline.currentTime;const B=y.options&&y.options.delay?So(y.options.delay):0;y.steps.forEach(Q=>{const Le=u.createSubContext(y.options);B&&Le.delayNextStep(B),Vr(this,Q,Le),T=Math.max(T,Le.currentTimeline.currentTime),m.push(Le.currentTimeline)}),m.forEach(Q=>u.currentTimeline.mergeTimelineCollectedStyles(Q)),u.transformIntoNewTimeline(T),u.previousNode=y}_visitTiming(y,u){if(y.dynamic){const m=y.strValue;return Ds(u.params?qi(m,u.params,u.errors):m,u.errors)}return{duration:y.duration,delay:y.delay,easing:y.easing}}visitAnimate(y,u){const m=u.currentAnimateTimings=this._visitTiming(y.timings,u),T=u.currentTimeline;m.delay&&(u.incrementTime(m.delay),T.snapshotCurrentStyles());const B=y.style;5==B.type?this.visitKeyframes(B,u):(u.incrementTime(m.duration),this.visitStyle(B,u),T.applyStylesToKeyframe()),u.currentAnimateTimings=null,u.previousNode=y}visitStyle(y,u){const m=u.currentTimeline,T=u.currentAnimateTimings;!T&&m.hasCurrentStyleProperties()&&m.forwardFrame();const B=T&&T.easing||y.easing;y.isEmptyStep?m.applyEmptyStep(B):m.setStyles(y.styles,B,u.errors,u.options),u.previousNode=y}visitKeyframes(y,u){const m=u.currentAnimateTimings,T=u.currentTimeline.duration,B=m.duration,Le=u.createSubContext().currentTimeline;Le.easing=m.easing,y.styles.forEach(Je=>{Le.forwardTime((Je.offset||0)*B),Le.setStyles(Je.styles,Je.easing,u.errors,u.options),Le.applyStylesToKeyframe()}),u.currentTimeline.mergeTimelineCollectedStyles(Le),u.transformIntoNewTimeline(T+B),u.previousNode=y}visitQuery(y,u){const m=u.currentTimeline.currentTime,T=y.options||{},B=T.delay?So(T.delay):0;B&&(6===u.previousNode.type||0==m&&u.currentTimeline.hasCurrentStyleProperties())&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Co);let Q=m;const Le=u.invokeQuery(y.selector,y.originalSelector,y.limit,y.includeSelf,!!T.optional,u.errors);u.currentQueryTotal=Le.length;let Je=null;Le.forEach((At,jt)=>{u.currentQueryIndex=jt;const dn=u.createSubContext(y.options,At);B&&dn.delayNextStep(B),At===u.element&&(Je=dn.currentTimeline),Vr(this,y.animation,dn),dn.currentTimeline.applyStylesToKeyframe(),Q=Math.max(Q,dn.currentTimeline.currentTime)}),u.currentQueryIndex=0,u.currentQueryTotal=0,u.transformIntoNewTimeline(Q),Je&&(u.currentTimeline.mergeTimelineCollectedStyles(Je),u.currentTimeline.snapshotCurrentStyles()),u.previousNode=y}visitStagger(y,u){const m=u.parentContext,T=u.currentTimeline,B=y.timings,Q=Math.abs(B.duration),Le=Q*(u.currentQueryTotal-1);let Je=Q*u.currentQueryIndex;switch(B.duration<0?"reverse":B.easing){case"reverse":Je=Le-Je;break;case"full":Je=m.currentStaggerTime}const jt=u.currentTimeline;Je&&jt.delayNextStep(Je);const dn=jt.currentTime;Vr(this,y.animation,u),u.previousNode=y,m.currentStaggerTime=T.currentTime-dn+(T.startTime-m.currentTimeline.startTime)}}const Co={};class Br{constructor(y,u,m,T,B,Q,Le,Je){this._driver=y,this.element=u,this.subInstructions=m,this._enterClassName=T,this._leaveClassName=B,this.errors=Q,this.timelines=Le,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Co,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Je||new ea(this._driver,u,0),Le.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(y,u){if(!y)return;const m=y;let T=this.options;null!=m.duration&&(T.duration=So(m.duration)),null!=m.delay&&(T.delay=So(m.delay));const B=m.params;if(B){let Q=T.params;Q||(Q=this.options.params={}),Object.keys(B).forEach(Le=>{(!u||!Q.hasOwnProperty(Le))&&(Q[Le]=qi(B[Le],Q,this.errors))})}}_copyOptions(){const y={};if(this.options){const u=this.options.params;if(u){const m=y.params={};Object.keys(u).forEach(T=>{m[T]=u[T]})}}return y}createSubContext(y=null,u,m){const T=u||this.element,B=new Br(this._driver,T,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(T,m||0));return B.previousNode=this.previousNode,B.currentAnimateTimings=this.currentAnimateTimings,B.options=this._copyOptions(),B.updateOptions(y),B.currentQueryIndex=this.currentQueryIndex,B.currentQueryTotal=this.currentQueryTotal,B.parentContext=this,this.subContextCount++,B}transformIntoNewTimeline(y){return this.previousNode=Co,this.currentTimeline=this.currentTimeline.fork(this.element,y),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(y,u,m){const T={duration:u??y.duration,delay:this.currentTimeline.currentTime+(m??0)+y.delay,easing:""},B=new po(this._driver,y.element,y.keyframes,y.preStyleProps,y.postStyleProps,T,y.stretchStartingKeyframe);return this.timelines.push(B),T}incrementTime(y){this.currentTimeline.forwardTime(this.currentTimeline.duration+y)}delayNextStep(y){y>0&&this.currentTimeline.delayNextStep(y)}invokeQuery(y,u,m,T,B,Q){let Le=[];if(T&&Le.push(this.element),y.length>0){y=(y=y.replace(Io,"."+this._enterClassName)).replace(fo,"."+this._leaveClassName);let At=this._driver.query(this.element,y,1!=m);0!==m&&(At=m<0?At.slice(At.length+m,At.length):At.slice(0,m)),Le.push(...At)}return!B&&0==Le.length&&Q.push(function G(p){return new l.vHH(3014,!1)}()),Le}}class ea{constructor(y,u,m,T){this._driver=y,this.element=u,this.startTime=m,this._elementTimelineStylesLookup=T,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(u),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(u,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(y){const u=1===this._keyframes.size&&this._pendingStyles.size;this.duration||u?(this.forwardTime(this.currentTime+y),u&&this.snapshotCurrentStyles()):this.startTime+=y}fork(y,u){return this.applyStylesToKeyframe(),new ea(this._driver,y,u||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(y){this.applyStylesToKeyframe(),this.duration=y,this._loadKeyframe()}_updateStyle(y,u){this._localTimelineStyles.set(y,u),this._globalTimelineStyles.set(y,u),this._styleSummary.set(y,{time:this.currentTime,value:u})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(y){y&&this._previousKeyframe.set("easing",y);for(let[u,m]of this._globalTimelineStyles)this._backFill.set(u,m||Ce.l3),this._currentKeyframe.set(u,Ce.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(y,u,m,T){u&&this._previousKeyframe.set("easing",u);const B=T&&T.params||{},Q=function qo(p,y){const u=new Map;let m;return p.forEach(T=>{if("*"===T){m=m||y.keys();for(let B of m)u.set(B,Ce.l3)}else oo(T,u)}),u}(y,this._globalTimelineStyles);for(let[Le,Je]of Q){const At=qi(Je,B,m);this._pendingStyles.set(Le,At),this._localTimelineStyles.has(Le)||this._backFill.set(Le,this._globalTimelineStyles.get(Le)??Ce.l3),this._updateStyle(Le,At)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((y,u)=>{this._currentKeyframe.set(u,y)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((y,u)=>{this._currentKeyframe.has(u)||this._currentKeyframe.set(u,y)}))}snapshotCurrentStyles(){for(let[y,u]of this._localTimelineStyles)this._pendingStyles.set(y,u),this._updateStyle(y,u)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const y=[];for(let u in this._currentKeyframe)y.push(u);return y}mergeTimelineCollectedStyles(y){y._styleSummary.forEach((u,m)=>{const T=this._styleSummary.get(m);(!T||u.time>T.time)&&this._updateStyle(m,u.value)})}buildKeyframes(){this.applyStylesToKeyframe();const y=new Set,u=new Set,m=1===this._keyframes.size&&0===this.duration;let T=[];this._keyframes.forEach((Le,Je)=>{const At=oo(Le,new Map,this._backFill);At.forEach((jt,dn)=>{jt===Ce.k1?y.add(dn):jt===Ce.l3&&u.add(dn)}),m||At.set("offset",Je/this.duration),T.push(At)});const B=y.size?Li(y.values()):[],Q=u.size?Li(u.values()):[];if(m){const Le=T[0],Je=new Map(Le);Le.set("offset",0),Je.set("offset",1),T=[Le,Je]}return xo(this.element,T,B,Q,this.duration,this.startTime,this.easing,!1)}}class po extends ea{constructor(y,u,m,T,B,Q,Le=!1){super(y,u,Q.delay),this.keyframes=m,this.preStyleProps=T,this.postStyleProps=B,this._stretchStartingKeyframe=Le,this.timings={duration:Q.duration,delay:Q.delay,easing:Q.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let y=this.keyframes,{delay:u,duration:m,easing:T}=this.timings;if(this._stretchStartingKeyframe&&u){const B=[],Q=m+u,Le=u/Q,Je=oo(y[0]);Je.set("offset",0),B.push(Je);const At=oo(y[0]);At.set("offset",io(Le)),B.push(At);const jt=y.length-1;for(let dn=1;dn<=jt;dn++){let Cn=oo(y[dn]);const Tn=Cn.get("offset");Cn.set("offset",io((u+Tn*m)/Q)),B.push(Cn)}m=Q,u=0,T="",y=B}return xo(this.element,y,this.preStyleProps,this.postStyleProps,m,u,T,!0)}}function io(p,y=3){const u=Math.pow(10,y-1);return Math.round(p*u)/u}class ya{}const Oa=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Ua extends ya{normalizePropertyName(y,u){return dr(y)}normalizeStyleValue(y,u,m,T){let B="";const Q=m.toString().trim();if(Oa.has(u)&&0!==m&&"0"!==m)if("number"==typeof m)B="px";else{const Le=m.match(/^[+-]?[\d\.]+([a-z]*)$/);Le&&0==Le[1].length&&T.push(function Bt(p,y){return new l.vHH(3005,!1)}())}return Q+B}}function Ia(p,y,u,m,T,B,Q,Le,Je,At,jt,dn,Cn){return{type:0,element:p,triggerName:y,isRemovalTransition:T,fromState:u,fromStyles:B,toState:m,toStyles:Q,timelines:Le,queriedElements:Je,preStyleProps:At,postStyleProps:jt,totalTime:dn,errors:Cn}}const ta={};class na{constructor(y,u,m){this._triggerName=y,this.ast=u,this._stateStyles=m}match(y,u,m,T){return function Fe(p,y,u,m,T){return p.some(B=>B(y,u,m,T))}(this.ast.matchers,y,u,m,T)}buildStyles(y,u,m){let T=this._stateStyles.get("*");return void 0!==y&&(T=this._stateStyles.get(y?.toString())||T),T?T.buildStyles(u,m):new Map}build(y,u,m,T,B,Q,Le,Je,At,jt){const dn=[],Cn=this.ast.options&&this.ast.options.params||ta,Un=this.buildStyles(m,Le&&Le.params||ta,dn),Xn=Je&&Je.params||ta,ii=this.buildStyles(T,Xn,dn),Ii=new Set,Ri=new Map,rr=new Map,Si="void"===T,lr={params:le(Xn,Cn),delay:this.ast.options?.delay},gr=jt?[]:Zr(y,u,this.ast.animation,B,Q,Un,ii,lr,At,dn);let Cr=0;if(gr.forEach($o=>{Cr=Math.max($o.duration+$o.delay,Cr)}),dn.length)return Ia(u,this._triggerName,m,T,Si,Un,ii,[],[],Ri,rr,Cr,dn);gr.forEach($o=>{const Bo=$o.element,sl=ni(Ri,Bo,new Set);$o.preStyleProps.forEach(zs=>sl.add(zs));const Zl=ni(rr,Bo,new Set);$o.postStyleProps.forEach(zs=>Zl.add(zs)),Bo!==u&&Ii.add(Bo)});const $r=Li(Ii.values());return Ia(u,this._triggerName,m,T,Si,Un,ii,gr,$r,Ri,rr,Cr)}}function le(p,y){const u=Uo(y);for(const m in p)p.hasOwnProperty(m)&&null!=p[m]&&(u[m]=p[m]);return u}class Qe{constructor(y,u,m){this.styles=y,this.defaultParams=u,this.normalizer=m}buildStyles(y,u){const m=new Map,T=Uo(this.defaultParams);return Object.keys(y).forEach(B=>{const Q=y[B];null!==Q&&(T[B]=Q)}),this.styles.styles.forEach(B=>{"string"!=typeof B&&B.forEach((Q,Le)=>{Q&&(Q=qi(Q,T,u));const Je=this.normalizer.normalizePropertyName(Le,u);Q=this.normalizer.normalizeStyleValue(Le,Je,Q,u),m.set(Le,Q)})}),m}}class Qn{constructor(y,u,m){this.name=y,this.ast=u,this._normalizer=m,this.transitionFactories=[],this.states=new Map,u.states.forEach(T=>{this.states.set(T.name,new Qe(T.style,T.options&&T.options.params||{},m))}),Zo(this.states,"true","1"),Zo(this.states,"false","0"),u.transitions.forEach(T=>{this.transitionFactories.push(new na(y,T,this.states))}),this.fallbackTransition=function Ni(p,y,u){return new na(p,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Q,Le)=>!0],options:null,queryCount:0,depCount:0},y)}(y,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(y,u,m,T){return this.transitionFactories.find(Q=>Q.match(y,u,m,T))||null}matchStyles(y,u,m){return this.fallbackTransition.buildStyles(y,u,m)}}function Zo(p,y,u){p.has(y)?p.has(u)||p.set(u,p.get(y)):p.has(u)&&p.set(y,p.get(u))}const Cl=new _s;class ia{constructor(y,u,m){this.bodyNode=y,this._driver=u,this._normalizer=m,this._animations=new Map,this._playersById=new Map,this.players=[]}register(y,u){const m=[],B=ba(this._driver,u,m,[]);if(m.length)throw function be(p){return new l.vHH(3503,!1)}();this._animations.set(y,B)}_buildPlayer(y,u,m){const T=y.element,B=cn(this._normalizer,y.keyframes,u,m);return this._driver.animate(T,B,y.duration,y.delay,y.easing,[],!0)}create(y,u,m={}){const T=[],B=this._animations.get(y);let Q;const Le=new Map;if(B?(Q=Zr(this._driver,u,B,ho,to,new Map,new Map,m,Cl,T),Q.forEach(jt=>{const dn=ni(Le,jt.element,new Map);jt.postStyleProps.forEach(Cn=>dn.set(Cn,null))})):(T.push(function Te(){return new l.vHH(3300,!1)}()),Q=[]),T.length)throw function He(p){return new l.vHH(3504,!1)}();Le.forEach((jt,dn)=>{jt.forEach((Cn,Tn)=>{jt.set(Tn,this._driver.computeStyle(dn,Tn,Ce.l3))})});const At=It(Q.map(jt=>{const dn=Le.get(jt.element);return this._buildPlayer(jt,new Map,dn)}));return this._playersById.set(y,At),At.onDestroy(()=>this.destroy(y)),this.players.push(At),At}destroy(y){const u=this._getPlayer(y);u.destroy(),this._playersById.delete(y);const m=this.players.indexOf(u);m>=0&&this.players.splice(m,1)}_getPlayer(y){const u=this._playersById.get(y);if(!u)throw function Wt(p){return new l.vHH(3301,!1)}();return u}listen(y,u,m,T){const B=On(u,"","","");return _n(this._getPlayer(y),m,B,T),()=>{}}command(y,u,m,T){if("register"==m)return void this.register(y,T[0]);if("create"==m)return void this.create(y,u,T[0]||{});const B=this._getPlayer(y);switch(m){case"play":B.play();break;case"pause":B.pause();break;case"reset":B.reset();break;case"restart":B.restart();break;case"finish":B.finish();break;case"init":B.init();break;case"setPosition":B.setPosition(parseFloat(T[0]));break;case"destroy":this.destroy(y)}}}const sc="ng-animate-queued",Tl="ng-animate-disabled",El=[],wa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Xo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pr="__ng_removed";class Ms{get params(){return this.options.params}constructor(y,u=""){this.namespaceId=u;const m=y&&y.hasOwnProperty("value");if(this.value=function Gl(p){return p??null}(m?y.value:y),m){const B=Uo(y);delete B.value,this.options=B}else this.options={};this.options.params||(this.options.params={})}absorbOptions(y){const u=y.params;if(u){const m=this.options.params;Object.keys(u).forEach(T=>{null==m[T]&&(m[T]=u[T])})}}}const As="void",qr=new Ms(As);class Bs{constructor(y,u,m){this.id=y,this.hostElement=u,this._engine=m,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+y,gs(u,this._hostClassName)}listen(y,u,m,T){if(!this._triggers.has(u))throw function Pn(p,y){return new l.vHH(3302,!1)}();if(null==m||0==m.length)throw function wt(p){return new l.vHH(3303,!1)}();if(!function ja(p){return"start"==p||"done"==p}(m))throw function Yt(p,y){return new l.vHH(3400,!1)}();const B=ni(this._elementListeners,y,[]),Q={name:u,phase:m,callback:T};B.push(Q);const Le=ni(this._engine.statesByElement,y,new Map);return Le.has(u)||(gs(y,yr),gs(y,yr+"-"+u),Le.set(u,qr)),()=>{this._engine.afterFlush(()=>{const Je=B.indexOf(Q);Je>=0&&B.splice(Je,1),this._triggers.has(u)||Le.delete(u)})}}register(y,u){return!this._triggers.has(y)&&(this._triggers.set(y,u),!0)}_getTrigger(y){const u=this._triggers.get(y);if(!u)throw function fe(p){return new l.vHH(3401,!1)}();return u}trigger(y,u,m,T=!0){const B=this._getTrigger(u),Q=new Va(this.id,u,y);let Le=this._engine.statesByElement.get(y);Le||(gs(y,yr),gs(y,yr+"-"+u),this._engine.statesByElement.set(y,Le=new Map));let Je=Le.get(u);const At=new Ms(m,this.id);if(!(m&&m.hasOwnProperty("value"))&&Je&&At.absorbOptions(Je.options),Le.set(u,At),Je||(Je=qr),At.value!==As&&Je.value===At.value){if(!function Za(p,y){const u=Object.keys(p),m=Object.keys(y);if(u.length!=m.length)return!1;for(let T=0;T{Sa(y,ii),fs(y,Ii)})}return}const Cn=ni(this._engine.playersByElement,y,[]);Cn.forEach(Xn=>{Xn.namespaceId==this.id&&Xn.triggerName==u&&Xn.queued&&Xn.destroy()});let Tn=B.matchTransition(Je.value,At.value,y,At.params),Un=!1;if(!Tn){if(!T)return;Tn=B.fallbackTransition,Un=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:u,transition:Tn,fromState:Je,toState:At,player:Q,isFallbackTransition:Un}),Un||(gs(y,sc),Q.onStart(()=>{ns(y,sc)})),Q.onDone(()=>{let Xn=this.players.indexOf(Q);Xn>=0&&this.players.splice(Xn,1);const ii=this._engine.playersByElement.get(y);if(ii){let Ii=ii.indexOf(Q);Ii>=0&&ii.splice(Ii,1)}}),this.players.push(Q),Cn.push(Q),Q}deregister(y){this._triggers.delete(y),this._engine.statesByElement.forEach(u=>u.delete(y)),this._elementListeners.forEach((u,m)=>{this._elementListeners.set(m,u.filter(T=>T.name!=y))})}clearElementCache(y){this._engine.statesByElement.delete(y),this._elementListeners.delete(y);const u=this._engine.playersByElement.get(y);u&&(u.forEach(m=>m.destroy()),this._engine.playersByElement.delete(y))}_signalRemovalForInnerTriggers(y,u){const m=this._engine.driver.query(y,Gs,!0);m.forEach(T=>{if(T[Pr])return;const B=this._engine.fetchNamespacesByElement(T);B.size?B.forEach(Q=>Q.triggerLeaveAnimation(T,u,!1,!0)):this.clearElementCache(T)}),this._engine.afterFlushAnimationsDone(()=>m.forEach(T=>this.clearElementCache(T)))}triggerLeaveAnimation(y,u,m,T){const B=this._engine.statesByElement.get(y),Q=new Map;if(B){const Le=[];if(B.forEach((Je,At)=>{if(Q.set(At,Je.value),this._triggers.has(At)){const jt=this.trigger(y,At,As,T);jt&&Le.push(jt)}}),Le.length)return this._engine.markElementAsRemoved(this.id,y,!0,u,Q),m&&It(Le).onDone(()=>this._engine.processLeaveNode(y)),!0}return!1}prepareLeaveAnimationListeners(y){const u=this._elementListeners.get(y),m=this._engine.statesByElement.get(y);if(u&&m){const T=new Set;u.forEach(B=>{const Q=B.name;if(T.has(Q))return;T.add(Q);const Je=this._triggers.get(Q).fallbackTransition,At=m.get(Q)||qr,jt=new Ms(As),dn=new Va(this.id,Q,y);this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:Q,transition:Je,fromState:At,toState:jt,player:dn,isFallbackTransition:!0})})}}removeNode(y,u){const m=this._engine;if(y.childElementCount&&this._signalRemovalForInnerTriggers(y,u),this.triggerLeaveAnimation(y,u,!0))return;let T=!1;if(m.totalAnimations){const B=m.players.length?m.playersByQueriedElement.get(y):[];if(B&&B.length)T=!0;else{let Q=y;for(;Q=Q.parentNode;)if(m.statesByElement.get(Q)){T=!0;break}}}if(this.prepareLeaveAnimationListeners(y),T)m.markElementAsRemoved(this.id,y,!1,u);else{const B=y[Pr];(!B||B===wa)&&(m.afterFlush(()=>this.clearElementCache(y)),m.destroyInnerAnimations(y),m._onRemovalComplete(y,u))}}insertNode(y,u){gs(y,this._hostClassName)}drainQueuedTransitions(y){const u=[];return this._queue.forEach(m=>{const T=m.player;if(T.destroyed)return;const B=m.element,Q=this._elementListeners.get(B);Q&&Q.forEach(Le=>{if(Le.name==m.triggerName){const Je=On(B,m.triggerName,m.fromState.value,m.toState.value);Je._data=y,_n(m.player,Le.phase,Je,Le.callback)}}),T.markedForDestroy?this._engine.afterFlush(()=>{T.destroy()}):u.push(m)}),this._queue=[],u.sort((m,T)=>{const B=m.transition.ast.depCount,Q=T.transition.ast.depCount;return 0==B||0==Q?B-Q:this._engine.driver.containsElement(m.element,T.element)?1:-1})}destroy(y){this.players.forEach(u=>u.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,y)}}class Ro{_onRemovalComplete(y,u){this.onRemovalComplete(y,u)}constructor(y,u,m){this.bodyNode=y,this.driver=u,this._normalizer=m,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=(T,B)=>{}}get queuedPlayers(){const y=[];return this._namespaceList.forEach(u=>{u.players.forEach(m=>{m.queued&&y.push(m)})}),y}createNamespace(y,u){const m=new Bs(y,u,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,u)?this._balanceNamespaceList(m,u):(this.newHostElements.set(u,m),this.collectEnterElement(u)),this._namespaceLookup[y]=m}_balanceNamespaceList(y,u){const m=this._namespaceList,T=this.namespacesByHostElement;if(m.length-1>=0){let Q=!1,Le=this.driver.getParentElement(u);for(;Le;){const Je=T.get(Le);if(Je){const At=m.indexOf(Je);m.splice(At+1,0,y),Q=!0;break}Le=this.driver.getParentElement(Le)}Q||m.unshift(y)}else m.push(y);return T.set(u,y),y}register(y,u){let m=this._namespaceLookup[y];return m||(m=this.createNamespace(y,u)),m}registerTrigger(y,u,m){let T=this._namespaceLookup[y];T&&T.register(u,m)&&this.totalAnimations++}destroy(y,u){y&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const m=this._fetchNamespace(y);this.namespacesByHostElement.delete(m.hostElement);const T=this._namespaceList.indexOf(m);T>=0&&this._namespaceList.splice(T,1),m.destroy(u),delete this._namespaceLookup[y]}))}_fetchNamespace(y){return this._namespaceLookup[y]}fetchNamespacesByElement(y){const u=new Set,m=this.statesByElement.get(y);if(m)for(let T of m.values())if(T.namespaceId){const B=this._fetchNamespace(T.namespaceId);B&&u.add(B)}return u}trigger(y,u,m,T){if(Hs(u)){const B=this._fetchNamespace(y);if(B)return B.trigger(u,m,T),!0}return!1}insertNode(y,u,m,T){if(!Hs(u))return;const B=u[Pr];if(B&&B.setForRemoval){B.setForRemoval=!1,B.setForMove=!0;const Q=this.collectedLeaveElements.indexOf(u);Q>=0&&this.collectedLeaveElements.splice(Q,1)}if(y){const Q=this._fetchNamespace(y);Q&&Q.insertNode(u,m)}T&&this.collectEnterElement(u)}collectEnterElement(y){this.collectedEnterElements.push(y)}markElementAsDisabled(y,u){u?this.disabledNodes.has(y)||(this.disabledNodes.add(y),gs(y,Tl)):this.disabledNodes.has(y)&&(this.disabledNodes.delete(y),ns(y,Tl))}removeNode(y,u,m){if(Hs(u)){const T=y?this._fetchNamespace(y):null;T?T.removeNode(u,m):this.markElementAsRemoved(y,u,!1,m);const B=this.namespacesByHostElement.get(u);B&&B.id!==y&&B.removeNode(u,m)}else this._onRemovalComplete(u,m)}markElementAsRemoved(y,u,m,T,B){this.collectedLeaveElements.push(u),u[Pr]={namespaceId:y,setForRemoval:T,hasAnimation:m,removedBeforeQueried:!1,previousTriggersValues:B}}listen(y,u,m,T,B){return Hs(u)?this._fetchNamespace(y).listen(u,m,T,B):()=>{}}_buildInstruction(y,u,m,T,B){return y.transition.build(this.driver,y.element,y.fromState.value,y.toState.value,m,T,y.fromState.options,y.toState.options,u,B)}destroyInnerAnimations(y){let u=this.driver.query(y,Gs,!0);u.forEach(m=>this.destroyActiveAnimationsForElement(m)),0!=this.playersByQueriedElement.size&&(u=this.driver.query(y,xl,!0),u.forEach(m=>this.finishActiveQueriedAnimationOnElement(m)))}destroyActiveAnimationsForElement(y){const u=this.playersByElement.get(y);u&&u.forEach(m=>{m.queued?m.markedForDestroy=!0:m.destroy()})}finishActiveQueriedAnimationOnElement(y){const u=this.playersByQueriedElement.get(y);u&&u.forEach(m=>m.finish())}whenRenderingDone(){return new Promise(y=>{if(this.players.length)return It(this.players).onDone(()=>y());y()})}processLeaveNode(y){const u=y[Pr];if(u&&u.setForRemoval){if(y[Pr]=wa,u.namespaceId){this.destroyInnerAnimations(y);const m=this._fetchNamespace(u.namespaceId);m&&m.clearElementCache(y)}this._onRemovalComplete(y,u.setForRemoval)}y.classList?.contains(Tl)&&this.markElementAsDisabled(y,!1),this.driver.query(y,".ng-animate-disabled",!0).forEach(m=>{this.markElementAsDisabled(m,!1)})}flush(y=-1){let u=[];if(this.newHostElements.size&&(this.newHostElements.forEach((m,T)=>this._balanceNamespaceList(m,T)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let m=0;mm()),this._flushFns=[],this._whenQuietFns.length){const m=this._whenQuietFns;this._whenQuietFns=[],u.length?It(u).onDone(()=>{m.forEach(T=>T())}):m.forEach(T=>T())}}reportError(y){throw function Mt(p){return new l.vHH(3402,!1)}()}_flushAnimations(y,u){const m=new _s,T=[],B=new Map,Q=[],Le=new Map,Je=new Map,At=new Map,jt=new Set;this.disabledNodes.forEach(ci=>{jt.add(ci);const Di=this.driver.query(ci,".ng-animate-queued",!0);for(let Zi=0;Zi{const Zi=ho+Xn++;Un.set(Di,Zi),ci.forEach(Er=>gs(Er,Zi))});const ii=[],Ii=new Set,Ri=new Set;for(let ci=0;ciIi.add(Er)):Ri.add(Di))}const rr=new Map,Si=Wl(Cn,Array.from(Ii));Si.forEach((ci,Di)=>{const Zi=to+Xn++;rr.set(Di,Zi),ci.forEach(Er=>gs(Er,Zi))}),y.push(()=>{Tn.forEach((ci,Di)=>{const Zi=Un.get(Di);ci.forEach(Er=>ns(Er,Zi))}),Si.forEach((ci,Di)=>{const Zi=rr.get(Di);ci.forEach(Er=>ns(Er,Zi))}),ii.forEach(ci=>{this.processLeaveNode(ci)})});const lr=[],gr=[];for(let ci=this._namespaceList.length-1;ci>=0;ci--)this._namespaceList[ci].drainQueuedTransitions(u).forEach(Zi=>{const Er=Zi.player,_a=Zi.element;if(lr.push(Er),this.collectedEnterElements.length){const ma=_a[Pr];if(ma&&ma.setForMove){if(ma.previousTriggersValues&&ma.previousTriggersValues.has(Zi.triggerName)){const wl=ma.previousTriggersValues.get(Zi.triggerName),zl=this.statesByElement.get(Zi.element);if(zl&&zl.has(Zi.triggerName)){const xu=zl.get(Zi.triggerName);xu.value=wl,zl.set(Zi.triggerName,xu)}}return void Er.destroy()}}const ed=!dn||!this.driver.containsElement(dn,_a),yl=rr.get(_a),vd=Un.get(_a),Ho=this._buildInstruction(Zi,m,vd,yl,ed);if(Ho.errors&&Ho.errors.length)return void gr.push(Ho);if(ed)return Er.onStart(()=>Sa(_a,Ho.fromStyles)),Er.onDestroy(()=>fs(_a,Ho.toStyles)),void T.push(Er);if(Zi.isFallbackTransition)return Er.onStart(()=>Sa(_a,Ho.fromStyles)),Er.onDestroy(()=>fs(_a,Ho.toStyles)),void T.push(Er);const Zd=[];Ho.timelines.forEach(ma=>{ma.stretchStartingKeyframe=!0,this.disabledNodes.has(ma.element)||Zd.push(ma)}),Ho.timelines=Zd,m.append(_a,Ho.timelines),Q.push({instruction:Ho,player:Er,element:_a}),Ho.queriedElements.forEach(ma=>ni(Le,ma,[]).push(Er)),Ho.preStyleProps.forEach((ma,wl)=>{if(ma.size){let zl=Je.get(wl);zl||Je.set(wl,zl=new Set),ma.forEach((xu,Zu)=>zl.add(Zu))}}),Ho.postStyleProps.forEach((ma,wl)=>{let zl=At.get(wl);zl||At.set(wl,zl=new Set),ma.forEach((xu,Zu)=>zl.add(Zu))})});if(gr.length){const ci=[];gr.forEach(Di=>{ci.push(function ht(p,y){return new l.vHH(3505,!1)}())}),lr.forEach(Di=>Di.destroy()),this.reportError(ci)}const Cr=new Map,$r=new Map;Q.forEach(ci=>{const Di=ci.element;m.has(Di)&&($r.set(Di,Di),this._beforeAnimationBuild(ci.player.namespaceId,ci.instruction,Cr))}),T.forEach(ci=>{const Di=ci.element;this._getPreviousPlayers(Di,!1,ci.namespaceId,ci.triggerName,null).forEach(Er=>{ni(Cr,Di,[]).push(Er),Er.destroy()})});const $o=ii.filter(ci=>za(ci,Je,At)),Bo=new Map;ts(Bo,this.driver,Ri,At,Ce.l3).forEach(ci=>{za(ci,Je,At)&&$o.push(ci)});const Zl=new Map;Tn.forEach((ci,Di)=>{ts(Zl,this.driver,new Set(ci),Je,Ce.k1)}),$o.forEach(ci=>{const Di=Bo.get(ci),Zi=Zl.get(ci);Bo.set(ci,new Map([...Di?.entries()??[],...Zi?.entries()??[]]))});const zs=[],jd=[],gd={};Q.forEach(ci=>{const{element:Di,player:Zi,instruction:Er}=ci;if(m.has(Di)){if(jt.has(Di))return Zi.onDestroy(()=>fs(Di,Er.toStyles)),Zi.disabled=!0,Zi.overrideTotalTime(Er.totalTime),void T.push(Zi);let _a=gd;if($r.size>1){let yl=Di;const vd=[];for(;yl=yl.parentNode;){const Ho=$r.get(yl);if(Ho){_a=Ho;break}vd.push(yl)}vd.forEach(Ho=>$r.set(Ho,_a))}const ed=this._buildAnimation(Zi.namespaceId,Er,Cr,B,Zl,Bo);if(Zi.setRealPlayer(ed),_a===gd)zs.push(Zi);else{const yl=this.playersByElement.get(_a);yl&&yl.length&&(Zi.parentPlayer=It(yl)),T.push(Zi)}}else Sa(Di,Er.fromStyles),Zi.onDestroy(()=>fs(Di,Er.toStyles)),jd.push(Zi),jt.has(Di)&&T.push(Zi)}),jd.forEach(ci=>{const Di=B.get(ci.element);if(Di&&Di.length){const Zi=It(Di);ci.setRealPlayer(Zi)}}),T.forEach(ci=>{ci.parentPlayer?ci.syncPlayerEvents(ci.parentPlayer):ci.destroy()});for(let ci=0;ci!ed.destroyed);_a.length?vc(this,Di,_a):this.processLeaveNode(Di)}return ii.length=0,zs.forEach(ci=>{this.players.push(ci),ci.onDone(()=>{ci.destroy();const Di=this.players.indexOf(ci);this.players.splice(Di,1)}),ci.play()}),zs}afterFlush(y){this._flushFns.push(y)}afterFlushAnimationsDone(y){this._whenQuietFns.push(y)}_getPreviousPlayers(y,u,m,T,B){let Q=[];if(u){const Le=this.playersByQueriedElement.get(y);Le&&(Q=Le)}else{const Le=this.playersByElement.get(y);if(Le){const Je=!B||B==As;Le.forEach(At=>{At.queued||!Je&&At.triggerName!=T||Q.push(At)})}}return(m||T)&&(Q=Q.filter(Le=>!(m&&m!=Le.namespaceId||T&&T!=Le.triggerName))),Q}_beforeAnimationBuild(y,u,m){const B=u.element,Q=u.isRemovalTransition?void 0:y,Le=u.isRemovalTransition?void 0:u.triggerName;for(const Je of u.timelines){const At=Je.element,jt=At!==B,dn=ni(m,At,[]);this._getPreviousPlayers(At,jt,Q,Le,u.toState).forEach(Tn=>{const Un=Tn.getRealPlayer();Un.beforeDestroy&&Un.beforeDestroy(),Tn.destroy(),dn.push(Tn)})}Sa(B,u.fromStyles)}_buildAnimation(y,u,m,T,B,Q){const Le=u.triggerName,Je=u.element,At=[],jt=new Set,dn=new Set,Cn=u.timelines.map(Un=>{const Xn=Un.element;jt.add(Xn);const ii=Xn[Pr];if(ii&&ii.removedBeforeQueried)return new Ce.ZN(Un.duration,Un.delay);const Ii=Xn!==Je,Ri=function Os(p){const y=[];return Is(p,y),y}((m.get(Xn)||El).map(Cr=>Cr.getRealPlayer())).filter(Cr=>!!Cr.element&&Cr.element===Xn),rr=B.get(Xn),Si=Q.get(Xn),lr=cn(this._normalizer,Un.keyframes,rr,Si),gr=this._buildPlayer(Un,lr,Ri);if(Un.subTimeline&&T&&dn.add(Xn),Ii){const Cr=new Va(y,Le,Xn);Cr.setRealPlayer(gr),At.push(Cr)}return gr});At.forEach(Un=>{ni(this.playersByQueriedElement,Un.element,[]).push(Un),Un.onDone(()=>function Sl(p,y,u){let m=p.get(y);if(m){if(m.length){const T=m.indexOf(u);m.splice(T,1)}0==m.length&&p.delete(y)}return m}(this.playersByQueriedElement,Un.element,Un))}),jt.forEach(Un=>gs(Un,Ba));const Tn=It(Cn);return Tn.onDestroy(()=>{jt.forEach(Un=>ns(Un,Ba)),fs(Je,u.toStyles)}),dn.forEach(Un=>{ni(T,Un,[]).push(Tn)}),Tn}_buildPlayer(y,u,m){return u.length>0?this.driver.animate(y.element,u,y.duration,y.delay,y.easing,m):new Ce.ZN(y.duration,y.delay)}}class Va{constructor(y,u,m){this.namespaceId=y,this.triggerName=u,this.element=m,this._player=new Ce.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(y){this._containsRealPlayer||(this._player=y,this._queuedCallbacks.forEach((u,m)=>{u.forEach(T=>_n(y,m,void 0,T))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(y.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(y){this.totalTime=y}syncPlayerEvents(y){const u=this._player;u.triggerCallback&&y.onStart(()=>u.triggerCallback("start")),y.onDone(()=>this.finish()),y.onDestroy(()=>this.destroy())}_queueEvent(y,u){ni(this._queuedCallbacks,y,[]).push(u)}onDone(y){this.queued&&this._queueEvent("done",y),this._player.onDone(y)}onStart(y){this.queued&&this._queueEvent("start",y),this._player.onStart(y)}onDestroy(y){this.queued&&this._queueEvent("destroy",y),this._player.onDestroy(y)}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(y){this.queued||this._player.setPosition(y)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(y){const u=this._player;u.triggerCallback&&u.triggerCallback(y)}}function Hs(p){return p&&1===p.nodeType}function es(p,y){const u=p.style.display;return p.style.display=y??"none",u}function ts(p,y,u,m,T){const B=[];u.forEach(Je=>B.push(es(Je)));const Q=[];m.forEach((Je,At)=>{const jt=new Map;Je.forEach(dn=>{const Cn=y.computeStyle(At,dn,T);jt.set(dn,Cn),(!Cn||0==Cn.length)&&(At[Pr]=Xo,Q.push(At))}),p.set(At,jt)});let Le=0;return u.forEach(Je=>es(Je,B[Le++])),Q}function Wl(p,y){const u=new Map;if(p.forEach(Le=>u.set(Le,[])),0==y.length)return u;const T=new Set(y),B=new Map;function Q(Le){if(!Le)return 1;let Je=B.get(Le);if(Je)return Je;const At=Le.parentNode;return Je=u.has(At)?At:T.has(At)?1:Q(At),B.set(Le,Je),Je}return y.forEach(Le=>{const Je=Q(Le);1!==Je&&u.get(Je).push(Le)}),u}function gs(p,y){p.classList?.add(y)}function ns(p,y){p.classList?.remove(y)}function vc(p,y,u){It(u).onDone(()=>p.processLeaveNode(y))}function Is(p,y){for(let u=0;uT.add(B)):y.set(p,m),u.delete(p),!0}class $l{constructor(y,u,m){this.bodyNode=y,this._driver=u,this._normalizer=m,this._triggerCache={},this.onRemovalComplete=(T,B)=>{},this._transitionEngine=new Ro(y,u,m),this._timelineEngine=new ia(y,u,m),this._transitionEngine.onRemovalComplete=(T,B)=>this.onRemovalComplete(T,B)}registerTrigger(y,u,m,T,B){const Q=y+"-"+T;let Le=this._triggerCache[Q];if(!Le){const Je=[],jt=ba(this._driver,B,Je,[]);if(Je.length)throw function We(p,y){return new l.vHH(3404,!1)}();Le=function Ht(p,y,u){return new Qn(p,y,u)}(T,jt,this._normalizer),this._triggerCache[Q]=Le}this._transitionEngine.registerTrigger(u,T,Le)}register(y,u){this._transitionEngine.register(y,u)}destroy(y,u){this._transitionEngine.destroy(y,u)}onInsert(y,u,m,T){this._transitionEngine.insertNode(y,u,m,T)}onRemove(y,u,m){this._transitionEngine.removeNode(y,u,m)}disableAnimations(y,u){this._transitionEngine.markElementAsDisabled(y,u)}process(y,u,m,T){if("@"==m.charAt(0)){const[B,Q]=Vn(m);this._timelineEngine.command(B,u,Q,T)}else this._transitionEngine.trigger(y,u,m,T)}listen(y,u,m,T,B){if("@"==m.charAt(0)){const[Q,Le]=Vn(m);return this._timelineEngine.listen(Q,u,Le,B)}return this._transitionEngine.listen(y,u,m,T,B)}flush(y=-1){this._transitionEngine.flush(y)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(y){this._transitionEngine.afterFlushAnimationsDone(y)}}let Lc=(()=>{class p{static#e=this.initialStylesByElement=new WeakMap;constructor(u,m,T){this._element=u,this._startStyles=m,this._endStyles=T,this._state=0;let B=p.initialStylesByElement.get(u);B||p.initialStylesByElement.set(u,B=new Map),this._initialStyles=B}start(){this._state<1&&(this._startStyles&&fs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fs(this._element,this._initialStyles),this._endStyles&&(fs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(p.initialStylesByElement.delete(this._element),this._startStyles&&(Sa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sa(this._element,this._endStyles),this._endStyles=null),fs(this._element,this._initialStyles),this._state=3)}}return p})();function Kl(p){let y=null;return p.forEach((u,m)=>{(function Rs(p){return"display"===p||"position"===p})(m)&&(y=y||new Map,y.set(m,u))}),y}class xa{constructor(y,u,m,T){this.element=y,this.keyframes=u,this.options=m,this._specialStyles=T,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=m.duration,this._delay=m.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(y=>y()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const y=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,y,this.options),this._finalKeyframe=y.length?y[y.length-1]:new Map;const u=()=>this._onFinish();this.domPlayer.addEventListener("finish",u),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",u)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(y){const u=[];return y.forEach(m=>{u.push(Object.fromEntries(m))}),u}_triggerWebAnimation(y,u,m){return y.animate(this._convertKeyframesToObject(u),m)}onStart(y){this._originalOnStartFns.push(y),this._onStartFns.push(y)}onDone(y){this._originalOnDoneFns.push(y),this._onDoneFns.push(y)}onDestroy(y){this._onDestroyFns.push(y)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(y=>y()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(y=>y()),this._onDestroyFns=[])}setPosition(y){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=y*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const y=new Map;this.hasStarted()&&this._finalKeyframe.forEach((m,T)=>{"offset"!==T&&y.set(T,this._finished?m:Es(this.element,T))}),this.currentSnapshot=y}triggerCallback(y){const u="start"===y?this._onStartFns:this._onDoneFns;u.forEach(m=>m()),u.length=0}}class Ga{validateStyleProperty(y){return!0}validateAnimatableStyleProperty(y){return!0}matchesElement(y,u){return!1}containsElement(y,u){return _i(y,u)}getParentElement(y){return ki(y)}query(y,u,m){return bo(y,u,m)}computeStyle(y,u,m){return window.getComputedStyle(y)[u]}animate(y,u,m,T,B,Q=[]){const Je={duration:m,delay:T,fill:0==T?"both":"forwards"};B&&(Je.easing=B);const At=new Map,jt=Q.filter(Tn=>Tn instanceof xa);(function wr(p,y){return 0===p||0===y})(m,T)&&jt.forEach(Tn=>{Tn.currentSnapshot.forEach((Un,Xn)=>At.set(Xn,Un))});let dn=function ga(p){return p.length?p[0]instanceof Map?p:p.map(y=>Jr(y)):[]}(u).map(Tn=>oo(Tn));dn=function al(p,y,u){if(u.size&&y.length){let m=y[0],T=[];if(u.forEach((B,Q)=>{m.has(Q)||T.push(Q),m.set(Q,B)}),T.length)for(let B=1;BQ.set(Le,Es(p,Le)))}}return y}(y,dn,At);const Cn=function Tr(p,y){let u=null,m=null;return Array.isArray(y)&&y.length?(u=Kl(y[0]),y.length>1&&(m=Kl(y[y.length-1]))):y instanceof Map&&(u=Kl(y)),u||m?new Lc(p,u,m):null}(y,dn);return new xa(y,dn,Je,Cn)}}let Wa=(()=>{class p extends Ce._j{constructor(u,m){super(),this._nextAnimationId=0,this._renderer=u.createRenderer(m.body,{id:"0",encapsulation:l.ifc.None,styles:[],data:{animation:[]}})}build(u){const m=this._nextAnimationId.toString();this._nextAnimationId++;const T=Array.isArray(u)?(0,Ce.vP)(u):u;return Al(this._renderer,null,m,"register",[T]),new bc(m,this._renderer)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.FYo),l.LFG(_e.K0))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();class bc extends Ce.LC{constructor(y,u){super(),this._id=y,this._renderer=u}create(y,u){return new ra(this._id,y,u||{},this._renderer)}}class ra{constructor(y,u,m,T){this.id=y,this.element=u,this._renderer=T,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",m)}_listen(y,u){return this._renderer.listen(this.element,`@@${this.id}:${y}`,u)}_command(y,...u){return Al(this._renderer,this.element,this.id,y,u)}onDone(y){this._listen("done",y)}onStart(y){this._listen("start",y)}onDestroy(y){this._listen("destroy",y)}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(y){this._command("setPosition",y)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Al(p,y,u,m,T){return p.setProperty(y,`@@${u}:${m}`,T)}const ro="@.disabled";let K=(()=>{class p{constructor(u,m,T){this.delegate=u,this.engine=m,this._zone=T,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,m.onRemovalComplete=(B,Q)=>{const Le=Q?.parentNode(B);Le&&Q.removeChild(Le,B)}}createRenderer(u,m){const B=this.delegate.createRenderer(u,m);if(!(u&&m&&m.data&&m.data.animation)){let jt=this._rendererCache.get(B);return jt||(jt=new Ue("",B,this.engine,()=>this._rendererCache.delete(B)),this._rendererCache.set(B,jt)),jt}const Q=m.id,Le=m.id+"-"+this._currentId;this._currentId++,this.engine.register(Le,u);const Je=jt=>{Array.isArray(jt)?jt.forEach(Je):this.engine.registerTrigger(Q,Le,u,jt.name,jt)};return m.data.animation.forEach(Je),new ge(this,Le,B,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(u,m,T){u>=0&&um(T)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(B=>{const[Q,Le]=B;Q(Le)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([m,T]))}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()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.FYo),l.LFG($l),l.LFG(l.R0b))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();class Ue{constructor(y,u,m,T){this.namespaceId=y,this.delegate=u,this.engine=m,this._onDestroy=T}get data(){return this.delegate.data}destroyNode(y){this.delegate.destroyNode?.(y)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(y,u){return this.delegate.createElement(y,u)}createComment(y){return this.delegate.createComment(y)}createText(y){return this.delegate.createText(y)}appendChild(y,u){this.delegate.appendChild(y,u),this.engine.onInsert(this.namespaceId,u,y,!1)}insertBefore(y,u,m,T=!0){this.delegate.insertBefore(y,u,m),this.engine.onInsert(this.namespaceId,u,y,T)}removeChild(y,u,m){this.engine.onRemove(this.namespaceId,u,this.delegate)}selectRootElement(y,u){return this.delegate.selectRootElement(y,u)}parentNode(y){return this.delegate.parentNode(y)}nextSibling(y){return this.delegate.nextSibling(y)}setAttribute(y,u,m,T){this.delegate.setAttribute(y,u,m,T)}removeAttribute(y,u,m){this.delegate.removeAttribute(y,u,m)}addClass(y,u){this.delegate.addClass(y,u)}removeClass(y,u){this.delegate.removeClass(y,u)}setStyle(y,u,m,T){this.delegate.setStyle(y,u,m,T)}removeStyle(y,u,m){this.delegate.removeStyle(y,u,m)}setProperty(y,u,m){"@"==u.charAt(0)&&u==ro?this.disableAnimations(y,!!m):this.delegate.setProperty(y,u,m)}setValue(y,u){this.delegate.setValue(y,u)}listen(y,u,m){return this.delegate.listen(y,u,m)}disableAnimations(y,u){this.engine.disableAnimations(y,u)}}class ge extends Ue{constructor(y,u,m,T,B){super(u,m,T,B),this.factory=y,this.namespaceId=u}setProperty(y,u,m){"@"==u.charAt(0)?"."==u.charAt(1)&&u==ro?this.disableAnimations(y,m=void 0===m||!!m):this.engine.process(this.namespaceId,y,u.slice(1),m):this.delegate.setProperty(y,u,m)}listen(y,u,m){if("@"==u.charAt(0)){const T=function Ne(p){switch(p){case"body":return document.body;case"document":return document;case"window":return window;default:return p}}(y);let B=u.slice(1),Q="";return"@"!=B.charAt(0)&&([B,Q]=function kt(p){const y=p.indexOf(".");return[p.substring(0,y),p.slice(y+1)]}(B)),this.engine.listen(this.namespaceId,T,B,Q,Le=>{this.factory.scheduleListenerCallback(Le._data||-1,m,Le)})}return this.delegate.listen(y,u,m)}}const ur=[{provide:Ce._j,useClass:Wa},{provide:ya,useFactory:function Sn(){return new Ua}},{provide:$l,useClass:(()=>{class p extends $l{constructor(u,m,T,B){super(u.body,m,T)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_e.K0),l.LFG($n),l.LFG(ya),l.LFG(l.z2F))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})()},{provide:l.FYo,useFactory:function li(p,y,u){return new K(p,y,u)},deps:[e.se,$l,l.R0b]}],hr=[{provide:$n,useFactory:()=>new Ga},{provide:l.QbO,useValue:"BrowserAnimations"},...ur],ar=[{provide:$n,useClass:br},{provide:l.QbO,useValue:"NoopAnimations"},...ur];let xi=(()=>{class p{static withConfig(u){return{ngModule:p,providers:u.disableAnimations?ar:hr}}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:hr,imports:[e.b2]})}return p})();var vs=C(9310),bs=C(7151),$a=C(617),Ui=C(8645),Ma=C(2296),Qr=C(8484),zr=C(2831),Qi=C(8180),yi=C(9773),oa=C(4300),cl=C(1088),_o=C(3651),Wi=C(3680);function Xi(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"div",2)(1,"button",3),l.NdJ("click",function(){l.CHM(u);const T=l.oxw();return l.KtG(T.action())}),l._uU(2),l.qZA()()}if(2&p){const u=l.oxw();l.xp6(2),l.hij(" ",u.data.action," ")}}const dl=["label"];function ko(p,y){}const rs=Math.pow(2,31)-1;class ul{constructor(y,u){this._overlayRef=u,this._afterDismissed=new Ui.x,this._afterOpened=new Ui.x,this._onAction=new Ui.x,this._dismissedByAction=!1,this.containerInstance=y,y._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(y){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(y,rs))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Pc=new l.OlP("MatSnackBarData");class Us{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Vs=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return p})(),Nc=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return p})(),ac=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return p})(),To=(()=>{class p{constructor(u,m){this.snackBarRef=u,this.data=m}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(ul),l.Y36(Pc))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0),l._uU(1),l.qZA(),l.YNc(2,Xi,3,1,"div",1)),2&m&&(l.xp6(1),l.hij(" ",T.data.message,"\n"),l.xp6(1),l.Q6J("ngIf",T.hasAction))},dependencies:[_e.O5,Ma.lW,Vs,Nc,ac],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return p})();const nd={snackBarState:(0,Ce.X$)("state",[(0,Ce.SB)("void, hidden",(0,Ce.oB)({transform:"scale(0.8)",opacity:0})),(0,Ce.SB)("visible",(0,Ce.oB)({transform:"scale(1)",opacity:1})),(0,Ce.eR)("* => visible",(0,Ce.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Ce.eR)("* => void, * => hidden",(0,Ce.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Ce.oB)({opacity:0})))])};let lc=0,Ei=(()=>{class p extends Qr.en{constructor(u,m,T,B,Q){super(),this._ngZone=u,this._elementRef=m,this._changeDetectorRef=T,this._platform=B,this.snackBarConfig=Q,this._document=(0,l.f3M)(_e.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Ui.x,this._onExit=new Ui.x,this._onEnter=new Ui.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+lc++,this.attachDomPortal=Le=>{this._assertNotAttached();const Je=this._portalOutlet.attachDomPortal(Le);return this._afterPortalAttached(),Je},this._live="assertive"!==Q.politeness||Q.announcementMessage?"off"===Q.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(u){this._assertNotAttached();const m=this._portalOutlet.attachComponentPortal(u);return this._afterPortalAttached(),m}attachTemplatePortal(u){this._assertNotAttached();const m=this._portalOutlet.attachTemplatePortal(u);return this._afterPortalAttached(),m}onAnimationEnd(u){const{fromState:m,toState:T}=u;if(("void"===T&&"void"!==m||"hidden"===T)&&this._completeExit(),"visible"===T){const B=this._onEnter;this._ngZone.run(()=>{B.next(),B.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,Qi.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const u=this._elementRef.nativeElement,m=this.snackBarConfig.panelClass;m&&(Array.isArray(m)?m.forEach(T=>u.classList.add(T)):u.classList.add(m)),this._exposeToModals()}_exposeToModals(){const u=this._liveElementId,m=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let T=0;T{const m=u.getAttribute("aria-owns");if(m){const T=m.replace(this._liveElementId,"").trim();T.length>0?u.setAttribute("aria-owns",T):u.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const u=this._elementRef.nativeElement.querySelector("[aria-hidden]"),m=this._elementRef.nativeElement.querySelector("[aria-live]");if(u&&m){let T=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&u.contains(document.activeElement)&&(T=document.activeElement),u.removeAttribute("aria-hidden"),m.appendChild(u),T?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(zr.t4),l.Y36(Us))};static#t=this.\u0275dir=l.lG2({type:p,viewQuery:function(m,T){if(1&m&&l.Gf(Qr.Pl,7),2&m){let B;l.iGM(B=l.CRH())&&(T._portalOutlet=B.first)}},features:[l.qOj]})}return p})(),Ca=(()=>{class p extends Ei{_afterPortalAttached(){super._afterPortalAttached();const u=this._label.nativeElement,m="mdc-snackbar__label";u.classList.toggle(m,!u.querySelector(`.${m}`))}static#e=this.\u0275fac=function(){let u;return function(T){return(u||(u=l.n5z(p)))(T||p)}}();static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["mat-snack-bar-container"]],viewQuery:function(m,T){if(1&m&&l.Gf(dl,7),2&m){let B;l.iGM(B=l.CRH())&&(T._label=B.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(m,T){1&m&&l.WFA("@state.done",function(Q){return T.onAnimationEnd(Q)}),2&m&&l.d8E("@state",T._animationState)},features:[l.qOj],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),l.YNc(4,ko,0,0,"ng-template",4),l.qZA(),l._UZ(5,"div"),l.qZA()()),2&m&&(l.xp6(5),l.uIk("aria-live",T._live)("role",T._role)("id",T._liveElementId))},dependencies:[Qr.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[nd.snackBarState]}})}return p})(),ks=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[_o.U8,Qr.eL,_e.ez,Ma.ot,Wi.BQ,Wi.BQ]})}return p})();const rd=new l.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function id(){return new Us}});let sa=(()=>{class p{get _openedSnackBarRef(){const u=this._parentSnackBar;return u?u._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(u){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=u:this._snackBarRefAtThisLevel=u}constructor(u,m,T,B,Q,Le){this._overlay=u,this._live=m,this._injector=T,this._breakpointObserver=B,this._parentSnackBar=Q,this._defaultConfig=Le,this._snackBarRefAtThisLevel=null}openFromComponent(u,m){return this._attach(u,m)}openFromTemplate(u,m){return this._attach(u,m)}open(u,m="",T){const B={...this._defaultConfig,...T};return B.data={message:u,action:m},B.announcementMessage===u&&(B.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,B)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(u,m){const B=l.zs3.create({parent:m&&m.viewContainerRef&&m.viewContainerRef.injector||this._injector,providers:[{provide:Us,useValue:m}]}),Q=new Qr.C5(this.snackBarContainerComponent,m.viewContainerRef,B),Le=u.attach(Q);return Le.instance.snackBarConfig=m,Le.instance}_attach(u,m){const T={...new Us,...this._defaultConfig,...m},B=this._createOverlay(T),Q=this._attachSnackBarContainer(B,T),Le=new ul(Q,B);if(u instanceof l.Rgc){const Je=new Qr.UE(u,null,{$implicit:T.data,snackBarRef:Le});Le.instance=Q.attachTemplatePortal(Je)}else{const Je=this._createInjector(T,Le),At=new Qr.C5(u,void 0,Je),jt=Q.attachComponentPortal(At);Le.instance=jt.instance}return this._breakpointObserver.observe(cl.u3.HandsetPortrait).pipe((0,yi.R)(B.detachments())).subscribe(Je=>{B.overlayElement.classList.toggle(this.handsetCssClass,Je.matches)}),T.announcementMessage&&Q._onAnnounce.subscribe(()=>{this._live.announce(T.announcementMessage,T.politeness)}),this._animateSnackBar(Le,T),this._openedSnackBarRef=Le,this._openedSnackBarRef}_animateSnackBar(u,m){u.afterDismissed().subscribe(()=>{this._openedSnackBarRef==u&&(this._openedSnackBarRef=null),m.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{u.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):u.containerInstance.enter(),m.duration&&m.duration>0&&u.afterOpened().subscribe(()=>u._dismissAfter(m.duration))}_createOverlay(u){const m=new _o.X_;m.direction=u.direction;let T=this._overlay.position().global();const B="rtl"===u.direction,Q="left"===u.horizontalPosition||"start"===u.horizontalPosition&&!B||"end"===u.horizontalPosition&&B,Le=!Q&&"center"!==u.horizontalPosition;return Q?T.left("0"):Le?T.right("0"):T.centerHorizontally(),"top"===u.verticalPosition?T.top("0"):T.bottom("0"),m.positionStrategy=T,this._overlay.create(m)}_createInjector(u,m){return l.zs3.create({parent:u&&u.viewContainerRef&&u.viewContainerRef.injector||this._injector,providers:[{provide:ul,useValue:m},{provide:Pc,useValue:u.data}]})}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_o.aV),l.LFG(oa.Kd),l.LFG(l.zs3),l.LFG(cl.Yg),l.LFG(p,12),l.LFG(rd))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),cc=(()=>{class p extends sa{constructor(u,m,T,B,Q,Le){super(u,m,T,B,Q,Le),this.simpleSnackBarComponent=To,this.snackBarContainerComponent=Ca,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_o.aV),l.LFG(oa.Kd),l.LFG(l.zs3),l.LFG(cl.Yg),l.LFG(p,12),l.LFG(rd))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:ks})}return p})();var hl=C(4911),od=C(8504),Mo=C(2438),Ka=C(2096),aa=C(5211),Ol=C(5592),kn=C(2420);const Fi=new Ol.y(kn.Z);var Il=C(3019),en=C(7398),so=C(2181),gt=C(4664),la=C(3168),Ra=C(4674),Ls=C(4829),os=C(9360);const Fc={connector:()=>new Ui.x};function mo(p,y=Fc){const{connector:u}=y;return(0,os.e)((m,T)=>{const B=u();(0,Ls.Xf)(p(function ss(p){return new Ol.y(y=>p.subscribe(y))}(B))).subscribe(T),T.add(m.subscribe(B))})}var W=C(9397),ne=C(5177);const V="Service workers are disabled or not supported by this browser";class xe{constructor(y){if(this.serviceWorker=y,y){const m=(0,Mo.R)(y,"controllerchange").pipe((0,en.U)(()=>y.controller)),T=(0,hl.P)(()=>(0,Ka.of)(y.controller)),B=(0,aa.z)(T,m);this.worker=B.pipe((0,so.h)(jt=>!!jt)),this.registration=this.worker.pipe((0,gt.w)(()=>y.getRegistration()));const At=(0,Mo.R)(y,"message").pipe((0,en.U)(jt=>jt.data)).pipe((0,so.h)(jt=>jt&&jt.type)).pipe(function ys(p){return p?y=>mo(p)(y):y=>function ka(p,y){const u=(0,Ra.m)(p)?p:()=>p;return(0,Ra.m)(y)?mo(y,{connector:u}):m=>new la.c(m,u)}(new Ui.x)(y)}());At.connect(),this.events=At}else this.worker=this.events=this.registration=function ie(p){return(0,hl.P)(()=>(0,od._)(new Error(p)))}(V)}postMessage(y,u){return this.worker.pipe((0,Qi.q)(1),(0,W.b)(m=>{m.postMessage({action:y,...u})})).toPromise().then(()=>{})}postMessageWithOperation(y,u,m){const T=this.waitForOperationCompleted(m),B=this.postMessage(y,u);return Promise.all([B,T]).then(([,Q])=>Q)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(y){let u;return u="string"==typeof y?m=>m.type===y:m=>y.includes(m.type),this.events.pipe((0,so.h)(u))}nextEventOfType(y){return this.eventsOfType(y).pipe((0,Qi.q)(1))}waitForOperationCompleted(y){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,so.h)(u=>u.nonce===y),(0,Qi.q)(1),(0,en.U)(u=>{if(void 0!==u.result)return u.result;throw new Error(u.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let qe=(()=>{class p{get isEnabled(){return this.sw.isEnabled}constructor(u){if(this.sw=u,this.pushManager=null,this.subscriptionChanges=new Ui.x,!u.isEnabled)return this.messages=Fi,this.notificationClicks=Fi,void(this.subscription=Fi);this.messages=this.sw.eventsOfType("PUSH").pipe((0,en.U)(T=>T.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,en.U)(T=>T.data)),this.pushManager=this.sw.registration.pipe((0,en.U)(T=>T.pushManager));const m=this.pushManager.pipe((0,gt.w)(T=>T.getSubscription()));this.subscription=(0,Il.T)(m,this.subscriptionChanges)}requestSubscription(u){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(V));const m={userVisibleOnly:!0};let T=this.decodeBase64(u.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),B=new Uint8Array(new ArrayBuffer(T.length));for(let Q=0;QQ.subscribe(m)),(0,Qi.q)(1)).toPromise().then(Q=>(this.subscriptionChanges.next(Q),Q))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,Qi.q)(1),(0,gt.w)(m=>{if(null===m)throw new Error("Not subscribed to push notifications.");return m.unsubscribe().then(T=>{if(!T)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(V))}decodeBase64(u){return atob(u)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(xe))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),Pt=(()=>{class p{get isEnabled(){return this.sw.isEnabled}constructor(u){if(this.sw=u,!u.isEnabled)return this.versionUpdates=Fi,this.available=Fi,this.activated=Fi,void(this.unrecoverable=Fi);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,so.h)(m=>"VERSION_READY"===m.type),(0,en.U)(m=>({type:"UPDATE_AVAILABLE",current:m.currentVersion,available:m.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(V));const u=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:u},u)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(V));const u=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:u},u)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(xe))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();const mn=new l.OlP("NGSW_REGISTER_SCRIPT");function hn(p,y,u,m){return()=>{if(!(0,_e.NF)(m)||!("serviceWorker"in navigator)||!1===u.enabled)return;let T;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof u.registrationStrategy)T=u.registrationStrategy();else{const[Q,...Le]=(u.registrationStrategy||"registerWhenStable:30000").split(":");switch(Q){case"registerImmediately":T=(0,Ka.of)(null);break;case"registerWithDelay":T=on(+Le[0]||0);break;case"registerWhenStable":T=Le[0]?(0,Il.T)(ji(p),on(+Le[0])):ji(p);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${u.registrationStrategy}`)}}p.get(l.R0b).runOutsideAngular(()=>T.pipe((0,Qi.q)(1)).subscribe(()=>navigator.serviceWorker.register(y,{scope:u.scope}).catch(Q=>console.error("Service worker registration failed with:",Q))))}}function on(p){return(0,Ka.of)(null).pipe((0,ne.g)(p))}function ji(p){return p.get(l.z2F).isStable.pipe((0,so.h)(u=>u))}function Gr(p,y){return new xe((0,_e.NF)(y)&&!1!==p.enabled?navigator.serviceWorker:void 0)}class $i{}function mi(p,y={}){return(0,l.MR2)([qe,Pt,{provide:mn,useValue:p},{provide:$i,useValue:y},{provide:xe,useFactory:Gr,deps:[$i,l.Lbi]},{provide:l.ip1,useFactory:hn,deps:[l.zs3,mn,$i,l.Lbi],multi:!0}])}let Ps=(()=>{class p{static register(u,m={}){return{ngModule:p,providers:[mi(u,m)]}}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:[qe,Pt]})}return p})();var fl=C(2268),Rl=C(6232),Ja=C(4825);const{isArray:xd}=Array;function Md(p){return 1===p.length&&xd(p[0])?p[0]:p}var Do=C(8251);var dc=C(9940);function Ec(...p){const y=(0,dc.jO)(p),u=Md(p);return u.length?new Ol.y(m=>{let T=u.map(()=>[]),B=u.map(()=>!1);m.add(()=>{T=B=null});for(let Q=0;!m.closed&&Q{if(T[Q].push(Le),T.every(Je=>Je.length)){const Je=T.map(At=>At.shift());m.next(y?y(...Je):Je),T.some((At,jt)=>!At.length&&B[jt])&&m.complete()}},()=>{B[Q]=!0,!T[Q].length&&m.complete()}));return()=>{T=B=null}}):Rl.E}var uc=C(2737);function hc(...p){const y=(0,dc.jO)(p);return(0,os.e)((u,m)=>{const T=p.length,B=new Array(T);let Q=p.map(()=>!1),Le=!1;for(let Je=0;Je{B[Je]=At,!Le&&!Q[Je]&&(Q[Je]=!0,(Le=Q.every(uc.y))&&(Q=null))},kn.Z));u.subscribe((0,Do.x)(m,Je=>{if(Le){const At=[Je,...B];m.next(y?y(...At):At)}}))})}C(7921),C(3997),C(836),Math,Math,Math;const qu=["*"],Wf=["dialog"];function vt(p){return"string"==typeof p}function Gt(p){return null!=p}function Kn(p){return(p||document.body).getBoundingClientRect()}const Dr={animation:!0,transitionTimerDelayMs:5},hs=()=>{},{transitionTimerDelayMs:Vl}=Dr,ic=new Map,Cs=(p,y,u,m)=>{let T=m.context||{};const B=ic.get(y);if(B)switch(m.runningTransition){case"continue":return Rl.E;case"stop":p.run(()=>B.transition$.complete()),T=Object.assign(B.context,T),ic.delete(y)}const Q=u(y,m.animation,T)||hs;if(!m.animation||"none"===window.getComputedStyle(y).transitionProperty)return p.run(()=>Q()),(0,Ka.of)(void 0).pipe(function fi(p){return y=>new Ol.y(u=>y.subscribe({next:Q=>p.run(()=>u.next(Q)),error:Q=>p.run(()=>u.error(Q)),complete:()=>p.run(()=>u.complete())}))}(p));const Le=new Ui.x,Je=new Ui.x,At=Le.pipe(function sd(...p){return y=>(0,aa.z)(y,(0,Ka.of)(...p))}(!0));ic.set(y,{transition$:Le,complete:()=>{Je.next(),Je.complete()},context:T});const jt=function go(p){const{transitionDelay:y,transitionDuration:u}=window.getComputedStyle(p);return 1e3*(parseFloat(y)+parseFloat(u))}(y);return p.runOutsideAngular(()=>{const dn=(0,Mo.R)(y,"transitionend").pipe((0,yi.R)(At),(0,so.h)(({target:Tn})=>Tn===y));(function qa(...p){return 1===(p=Md(p)).length?(0,Ls.Xf)(p[0]):new Ol.y(function xr(p){return y=>{let u=[];for(let m=0;u&&!y.closed&&m{if(u){for(let B=0;B{ic.delete(y),p.run(()=>{Q(),Le.next(),Le.complete()})})}),Le.asObservable()};let P=(()=>{class p{constructor(){this.animation=Dr.animation}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),Jf=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),C_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),dh=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),E_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();var Wo=function(p){return p[p.Tab=9]="Tab",p[p.Enter=13]="Enter",p[p.Escape=27]="Escape",p[p.Space=32]="Space",p[p.PageUp=33]="PageUp",p[p.PageDown=34]="PageDown",p[p.End=35]="End",p[p.Home=36]="Home",p[p.ArrowLeft=37]="ArrowLeft",p[p.ArrowUp=38]="ArrowUp",p[p.ArrowRight=39]="ArrowRight",p[p.ArrowDown=40]="ArrowDown",p}(Wo||{});typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const I_=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Vp(p){const y=Array.from(p.querySelectorAll(I_)).filter(u=>-1!==u.tabIndex);return[y[0],y[y.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let yg=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),Kp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();class Ki{constructor(y,u,m){this.nodes=y,this.viewRef=u,this.componentRef=m}}let $_=(()=>{class p{constructor(u,m){this._el=u,this._zone=m}ngOnInit(){this._zone.onStable.asObservable().pipe((0,Qi.q)(1)).subscribe(()=>{Cs(this._zone,this._el.nativeElement,(u,m)=>{m&&Kn(u),u.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Cs(this._zone,this._el.nativeElement,({classList:u})=>u.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(m,T){2&m&&(l.Tol("modal-backdrop"+(T.backdropClass?" "+T.backdropClass:"")),l.ekj("show",!T.animation)("fade",T.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[l.jDz],decls:0,vars:0,template:function(m,T){},encapsulation:2})}return p})();class fh{update(y){}close(y){}dismiss(y){}}const K_=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Tg=["animation","backdropClass"];class hp{_applyWindowOptions(y,u){K_.forEach(m=>{Gt(u[m])&&(y[m]=u[m])})}_applyBackdropOptions(y,u){Tg.forEach(m=>{Gt(u[m])&&(y[m]=u[m])})}update(y){this._applyWindowOptions(this._windowCmptRef.instance,y),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,y)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,yi.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,yi.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(y,u,m,T){this._windowCmptRef=y,this._contentRef=u,this._backdropCmptRef=m,this._beforeDismiss=T,this._closed=new Ui.x,this._dismissed=new Ui.x,this._hidden=new Ui.x,y.instance.dismissEvent.subscribe(B=>{this.dismiss(B)}),this.result=new Promise((B,Q)=>{this._resolve=B,this._reject=Q}),this.result.then(null,()=>{})}close(y){this._windowCmptRef&&(this._closed.next(y),this._resolve(y),this._removeModalElements())}_dismiss(y){this._dismissed.next(y),this._reject(y),this._removeModalElements()}dismiss(y){if(this._windowCmptRef)if(this._beforeDismiss){const u=this._beforeDismiss();!function an(p){return p&&p.then}(u)?!1!==u&&this._dismiss(y):u.then(m=>{!1!==m&&this._dismiss(y)},()=>{})}else this._dismiss(y)}_removeModalElements(){const y=this._windowCmptRef.instance.hide(),u=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,Ka.of)(void 0);y.subscribe(()=>{const{nativeElement:m}=this._windowCmptRef.location;m.parentNode.removeChild(m),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),u.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:m}=this._backdropCmptRef.location;m.parentNode.removeChild(m),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Ec(y,u).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Vu=function(p){return p[p.BACKDROP_CLICK=0]="BACKDROP_CLICK",p[p.ESC=1]="ESC",p}(Vu||{});let Jp=(()=>{class p{constructor(u,m,T){this._document=u,this._elRef=m,this._zone=T,this._closed$=new Ui.x,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new l.vpe,this.shown=new Ui.x,this.hidden=new Ui.x}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":vt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(u){this.dismissEvent.emit(u)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,Qi.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:u}=this._elRef,m={animation:this.animation,runningTransition:"stop"},Q=Ec(Cs(this._zone,u,()=>u.classList.remove("show"),m),Cs(this._zone,this._dialogEl.nativeElement,()=>{},m));return Q.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),Q}_show(){const u={animation:this.animation,runningTransition:"continue"};Ec(Cs(this._zone,this._elRef.nativeElement,(B,Q)=>{Q&&Kn(B),B.classList.add("show")},u),Cs(this._zone,this._dialogEl.nativeElement,()=>{},u)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:u}=this._elRef;this._zone.runOutsideAngular(()=>{(0,Mo.R)(u,"keydown").pipe((0,yi.R)(this._closed$),(0,so.h)(T=>T.which===Wo.Escape)).subscribe(T=>{this.keyboard?requestAnimationFrame(()=>{T.defaultPrevented||this._zone.run(()=>this.dismiss(Vu.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let m=!1;(0,Mo.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,yi.R)(this._closed$),(0,W.b)(()=>m=!1),(0,gt.w)(()=>(0,Mo.R)(u,"mouseup").pipe((0,yi.R)(this._closed$),(0,Qi.q)(1))),(0,so.h)(({target:T})=>u===T)).subscribe(()=>{m=!0}),(0,Mo.R)(u,"click").pipe((0,yi.R)(this._closed$)).subscribe(({target:T})=>{u===T&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!m&&this._zone.run(()=>this.dismiss(Vu.BACKDROP_CLICK))),m=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:u}=this._elRef;if(!u.contains(document.activeElement)){const m=u.querySelector("[ngbAutofocus]"),T=Vp(u)[0];(m||T||u).focus()}}_restoreFocus(){const u=this._document.body,m=this._elWithFocus;let T;T=m&&m.focus&&u.contains(m)?m:u,this._zone.runOutsideAngular(()=>{setTimeout(()=>T.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Cs(this._zone,this._elRef.nativeElement,({classList:u})=>(u.add("modal-static"),()=>u.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(_e.K0),l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["ngb-modal-window"]],viewQuery:function(m,T){if(1&m&&l.Gf(Wf,7),2&m){let B;l.iGM(B=l.CRH())&&(T._dialogEl=B.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(m,T){2&m&&(l.uIk("aria-modal",!0)("aria-labelledby",T.ariaLabelledBy)("aria-describedby",T.ariaDescribedBy),l.Tol("modal d-block"+(T.windowClass?" "+T.windowClass:"")),l.ekj("fade",T.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[l.jDz],ngContentSelectors:qu,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(m,T){1&m&&(l.F$t(),l.TgZ(0,"div",0,1)(2,"div",2),l.Hsn(3),l.qZA()()),2&m&&l.Tol("modal-dialog"+(T.size?" modal-"+T.size:"")+(T.centered?" modal-dialog-centered":"")+T.fullscreenClass+(T.scrollable?" modal-dialog-scrollable":"")+(T.modalDialogClass?" "+T.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return p})(),Pf=(()=>{class p{constructor(u){this._document=u}hide(){const u=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),m=this._document.body,T=m.style,{overflow:B,paddingRight:Q}=T;if(u>0){const Le=parseFloat(window.getComputedStyle(m).paddingRight);T.paddingRight=`${Le+u}px`}return T.overflow="hidden",()=>{u>0&&(T.paddingRight=Q),T.overflow=B}}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_e.K0))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),J_=(()=>{class p{constructor(u,m,T,B,Q,Le,Je){this._applicationRef=u,this._injector=m,this._environmentInjector=T,this._document=B,this._scrollBar=Q,this._rendererFactory=Le,this._ngZone=Je,this._activeWindowCmptHasChanged=new Ui.x,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new l.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const At=this._windowCmpts[this._windowCmpts.length-1];((p,y,u,m=!1)=>{p.runOutsideAngular(()=>{const T=(0,Mo.R)(y,"focusin").pipe((0,yi.R)(u),(0,en.U)(B=>B.target));(0,Mo.R)(y,"keydown").pipe((0,yi.R)(u),(0,so.h)(B=>B.which===Wo.Tab),hc(T)).subscribe(([B,Q])=>{const[Le,Je]=Vp(y);(Q===Le||Q===y)&&B.shiftKey&&(Je.focus(),B.preventDefault()),Q===Je&&!B.shiftKey&&(Le.focus(),B.preventDefault())}),m&&(0,Mo.R)(y,"click").pipe((0,yi.R)(u),hc(T),(0,en.U)(B=>B[1])).subscribe(B=>B.focus())})})(this._ngZone,At.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(At.location.nativeElement)}})}_restoreScrollBar(){const u=this._scrollBarRestoreFn;u&&(this._scrollBarRestoreFn=null,u())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(u,m,T){const B=T.container instanceof HTMLElement?T.container:Gt(T.container)?this._document.querySelector(T.container):this._document.body,Q=this._rendererFactory.createRenderer(null,null);if(!B)throw new Error(`The specified modal container "${T.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const Le=new fh,Je=(u=T.injector||u).get(l.lqb,null)||this._environmentInjector,At=this._getContentRef(u,Je,m,Le,T);let jt=!1!==T.backdrop?this._attachBackdrop(B):void 0,dn=this._attachWindowComponent(B,At.nodes),Cn=new hp(dn,At,jt,T.beforeDismiss);return this._registerModalRef(Cn),this._registerWindowCmpt(dn),Cn.hidden.pipe((0,Qi.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(Q.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),Le.close=Tn=>{Cn.close(Tn)},Le.dismiss=Tn=>{Cn.dismiss(Tn)},Le.update=Tn=>{Cn.update(Tn)},Cn.update(T),1===this._modalRefs.length&&Q.addClass(this._document.body,"modal-open"),jt&&jt.instance&&jt.changeDetectorRef.detectChanges(),dn.changeDetectorRef.detectChanges(),Cn}get activeInstances(){return this._activeInstances}dismissAll(u){this._modalRefs.forEach(m=>m.dismiss(u))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(u){let m=(0,l.LMc)($_,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(m.hostView),u.appendChild(m.location.nativeElement),m}_attachWindowComponent(u,m){let T=(0,l.LMc)(Jp,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:m});return this._applicationRef.attachView(T.hostView),u.appendChild(T.location.nativeElement),T}_getContentRef(u,m,T,B,Q){return T?T instanceof l.Rgc?this._createFromTemplateRef(T,B):vt(T)?this._createFromString(T):this._createFromComponent(u,m,T,B,Q):new Ki([])}_createFromTemplateRef(u,m){const B=u.createEmbeddedView({$implicit:m,close(Q){m.close(Q)},dismiss(Q){m.dismiss(Q)}});return this._applicationRef.attachView(B),new Ki([B.rootNodes],B)}_createFromString(u){const m=this._document.createTextNode(`${u}`);return new Ki([[m]])}_createFromComponent(u,m,T,B,Q){const Le=l.zs3.create({providers:[{provide:fh,useValue:B}],parent:u}),Je=(0,l.LMc)(T,{environmentInjector:m,elementInjector:Le}),At=Je.location.nativeElement;return Q.scrollable&&At.classList.add("component-host-scrollable"),this._applicationRef.attachView(Je.hostView),new Ki([[At]],Je.hostView,Je)}_setAriaHidden(u){const m=u.parentElement;m&&u!==this._document.body&&(Array.from(m.children).forEach(T=>{T!==u&&"SCRIPT"!==T.nodeName&&(this._ariaHiddenValues.set(T,T.getAttribute("aria-hidden")),T.setAttribute("aria-hidden","true"))}),this._setAriaHidden(m))}_revertAriaHidden(){this._ariaHiddenValues.forEach((u,m)=>{u?m.setAttribute("aria-hidden",u):m.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(u){const m=()=>{const T=this._modalRefs.indexOf(u);T>-1&&(this._modalRefs.splice(T,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(u),this._activeInstances.emit(this._modalRefs),u.result.then(m,m)}_registerWindowCmpt(u){this._windowCmpts.push(u),this._activeWindowCmptHasChanged.next(),u.onDestroy(()=>{const m=this._windowCmpts.indexOf(u);m>-1&&(this._windowCmpts.splice(m,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.z2F),l.LFG(l.zs3),l.LFG(l.lqb),l.LFG(_e.K0),l.LFG(Pf),l.LFG(l.FYo),l.LFG(l.R0b))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),qp=(()=>{class p{constructor(u){this._ngbConfig=u,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(u){this._animation=u}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(P))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),Qp=(()=>{class p{constructor(u,m,T){this._injector=u,this._modalStack=m,this._config=T}open(u,m={}){const T={...this._config,animation:this._config.animation,...m};return this._modalStack.open(this._injector,u,T)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(u){this._modalStack.dismissAll(u)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.zs3),l.LFG(J_),l.LFG(qp))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),fp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:[Qp]})}return p})(),tm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),gp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),sm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),n_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),vp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),dm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),hm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),s_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),fm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();new l.OlP("live announcer delay",{providedIn:"root",factory:function Gg(){return 100}});let _m=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),l_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();const mm=[Jf,C_,dh,E_,yg,Kp,fp,tm,l_,gp,sm,n_,vp,dm,hm,s_,fm,_m];let Jg=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[mm,Jf,C_,dh,E_,yg,Kp,fp,tm,l_,gp,sm,n_,vp,dm,hm,s_,fm,_m]})}return p})();var X0=C(9797),gm=C(2425);let vm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p,bootstrap:[Wn]});static#n=this.\u0275inj=l.cJS({providers:[Ct.F,cc],imports:[e.b2,ei,Ve.AuthModule,bs.g,X0.CmsModule,vs.WebAppModule,ct.JF,xi,gm.Rh.forRoot(),$a.Ps,Ps.register("ngsw-worker.js",{enabled:I.N.production,registrationStrategy:"registerWhenStable:30000"}),Ps.register("ngsw-worker.js",{enabled:!(0,l.X6Q)(),registrationStrategy:"registerWhenStable:30000"}),fl.z8.forRoot(),Jg]})}return p})();e.q6().bootstrapModule(vm).catch(p=>console.error(p))},3274:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(D){return/^nm$/i.test(D)},meridiem:function(D,I,S){return D<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(D){return D+(1===D||8===D||D>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},1867:function(ft,Ie,C){!function(e){"use strict";var l=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},I=function(n){return function(Z,ee,re,ue){var se=l(Z),te=D[n][l(Z)];return 2===se&&(te=te[ee?0:1]),te.replace(/%d/i,Z)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"\u0645"===n},meridiem:function(n,Z,ee){return n<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:I("s"),ss:I("s"),m:I("m"),mm:I("m"),h:I("h"),hh:I("h"),d:I("d"),dd:I("d"),M:I("M"),MM:I("M"),y:I("y"),yy:I("y")},postformat:function(n){return n.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(C(6676))},7078:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(C(6676))},7776:function(ft,Ie,C){!function(e){"use strict";var l={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},D=function(Z){return 0===Z?0:1===Z?1:2===Z?2:Z%100>=3&&Z%100<=10?3:Z%100>=11?4:5},I={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(Z){return function(ee,re,ue,se){var te=D(ee),oe=I[Z][D(ee)];return 2===te&&(oe=oe[re?0:1]),oe.replace(/%d/i,ee)}},w=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:w,monthsShort:w,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(Z){return"\u0645"===Z},meridiem:function(Z,ee,re){return Z<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(Z){return Z.replace(/\u060c/g,",")},postformat:function(Z){return Z.replace(/\d/g,function(ee){return l[ee]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},6789:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(C(6676))},6897:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(w){return D[w]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(C(6676))},1585:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(C(6676))},2097:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},I=function(ee){return 0===ee?0:1===ee?1:2===ee?2:ee%100>=3&&ee%100<=10?3:ee%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},w=function(ee){return function(re,ue,se,te){var oe=I(re),ce=S[ee][I(re)];return 2===oe&&(ce=ce[ue?0:1]),ce.replace(/%d/i,re)}},n=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:n,monthsShort:n,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(ee){return"\u0645"===ee},meridiem:function(ee,re,ue){return ee<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:w("s"),ss:w("s"),m:w("m"),mm:w("m"),h:w("h"),hh:w("h"),d:w("d"),dd:w("d"),M:w("M"),MM:w("M"),y:w("y"),yy:w("y")},preparse:function(ee){return ee.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(re){return D[re]}).replace(/\u060c/g,",")},postformat:function(ee){return ee.replace(/\d/g,function(re){return l[re]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},5611:function(ft,Ie,C){!function(e){"use strict";var l={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(I){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(I)},meridiem:function(I,S,w){return I<4?"gec\u0259":I<12?"s\u0259h\u0259r":I<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(I){if(0===I)return I+"-\u0131nc\u0131";var S=I%10;return I+(l[S]||l[I%100-S]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},2459:function(ft,Ie,C){!function(e){"use strict";function D(S,w,n){return"m"===n?w?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?w?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function l(S,w){var n=S.split("_");return w%10==1&&w%100!=11?n[0]:w%10>=2&&w%10<=4&&(w%100<10||w%100>=20)?n[1]:n[2]}({ss:w?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:w?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:w?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n],+S)}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:D,mm:D,h:D,hh:D,d:"\u0434\u0437\u0435\u043d\u044c",dd:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,w,n){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,w){switch(w){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(C(6676))},1825:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var I=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===I?D+"-\u0432\u0438":2===I?D+"-\u0440\u0438":7===I||8===I?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(C(6676))},5918:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(C(6676))},9683:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===w?S<4?S:S+12:"\u09ad\u09cb\u09b0"===w||"\u09b8\u0995\u09be\u09b2"===w?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===w?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===w||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(C(6676))},4065:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===w&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===w&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===w?S+12:S},meridiem:function(S,w,n){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(C(6676))},1034:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},D={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===w&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===w&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===w?S+12:S},meridiem:function(S,w,n){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(C(6676))},7671:function(ft,Ie,C){!function(e){"use strict";function l(ce,_e,Re){return ce+" "+function S(ce,_e){return 2===_e?function w(ce){var _e={m:"v",b:"v",d:"z"};return void 0===_e[ce.charAt(0)]?ce:_e[ce.charAt(0)]+ce.substring(1)}(ce):ce}({mm:"munutenn",MM:"miz",dd:"devezh"}[Re],ce)}function I(ce){return ce>9?I(ce%10):ce}var n=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Z=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,te=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:te,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:te,monthsRegex:Z,monthsShortRegex:Z,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:l,h:"un eur",hh:"%d eur",d:"un devezh",dd:l,M:"ur miz",MM:l,y:"ur bloaz",yy:function D(ce){switch(I(ce)){case 1:case 3:case 4:case 5:case 9:return ce+" bloaz";default:return ce+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ce){return ce+(1===ce?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ce){return"g.m."===ce},meridiem:function(ce,_e,Re){return ce<12?"a.m.":"g.m."}})}(C(6676))},8153:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var n=I+" ";switch(w){case"ss":return n+(1===I?"sekunda":2===I||3===I||4===I?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return n+(1===I?"minuta":2===I||3===I||4===I?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return n+(1===I?"sat":2===I||3===I||4===I?"sata":"sati");case"dd":return n+(1===I?"dan":"dana");case"MM":return n+(1===I?"mjesec":2===I||3===I||4===I?"mjeseca":"mjeseci");case"yy":return n+(1===I?"godina":2===I||3===I||4===I?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:l,m:l,mm:l,h:l,hh:l,d:"dan",dd:l,M:"mjesec",MM:l,y:"godinu",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},4287:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,I){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===I||"W"===I)&&(S="a"),D+S},week:{dow:1,doy:4}})}(C(6676))},2616:function(ft,Ie,C){!function(e){"use strict";var l={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},D="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),I=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function w(ee){return ee>1&&ee<5&&1!=~~(ee/10)}function n(ee,re,ue,se){var te=ee+" ";switch(ue){case"s":return re||se?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return re||se?te+(w(ee)?"sekundy":"sekund"):te+"sekundami";case"m":return re?"minuta":se?"minutu":"minutou";case"mm":return re||se?te+(w(ee)?"minuty":"minut"):te+"minutami";case"h":return re?"hodina":se?"hodinu":"hodinou";case"hh":return re||se?te+(w(ee)?"hodiny":"hodin"):te+"hodinami";case"d":return re||se?"den":"dnem";case"dd":return re||se?te+(w(ee)?"dny":"dn\xed"):te+"dny";case"M":return re||se?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return re||se?te+(w(ee)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):te+"m\u011bs\xedci";case"y":return re||se?"rok":"rokem";case"yy":return re||se?te+(w(ee)?"roky":"let"):te+"lety"}}e.defineLocale("cs",{months:l,monthsShort:D,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7049:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(D){return D+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(D)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(D)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(C(6676))},9172:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(D){var S="";return D>20?S=40===D||50===D||60===D||80===D||100===D?"fed":"ain":D>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][D]),D+S},week:{dow:1,doy:4}})}(C(6676))},605:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},3395:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9835:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4013:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4570:function(ft,Ie,C){!function(e){"use strict";var l=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],D=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,w,n){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(C(6676))},1859:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(I,S){return I?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[I.month()]:this._monthsNominativeEl[I.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(I,S,w){return I>11?w?"\u03bc\u03bc":"\u039c\u039c":w?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(I){return"\u03bc"===(I+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(I,S){var w=this._calendarEl[I],n=S&&S.hours();return function l(I){return typeof Function<"u"&&I instanceof Function||"[object Function]"===Object.prototype.toString.call(I)}(w)&&(w=w.apply(S)),w.replace("{}",n%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(C(6676))},5785:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:0,doy:4}})}(C(6676))},3792:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")}})}(C(6676))},7651:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},1929:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},9818:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")}})}(C(6676))},6612:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:0,doy:6}})}(C(6676))},4900:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},2721:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6570:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(D){return"p"===D.charAt(0).toLowerCase()},meridiem:function(D,I,S){return D>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(C(6676))},1780:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},3468:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(C(6676))},4938:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(C(6676))},1148:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(C(6676))},1453:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[I+"sekundi",I+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[I+" minuti",I+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[I+" tunni",I+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[I+" kuu",I+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[I+" aasta",I+" aastat"]};return S?Z[w][2]?Z[w][2]:Z[w][1]:n?Z[w][0]:Z[w][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:"%d p\xe4eva",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4697:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},2900:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},D={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,w,n){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(w){return D[w]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(C(6676))},9775:function(ft,Ie,C){!function(e){"use strict";var l="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),D=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",l[7],l[8],l[9]];function I(n,Z,ee,re){var ue="";switch(ee){case"s":return re?"muutaman sekunnin":"muutama sekunti";case"ss":ue=re?"sekunnin":"sekuntia";break;case"m":return re?"minuutin":"minuutti";case"mm":ue=re?"minuutin":"minuuttia";break;case"h":return re?"tunnin":"tunti";case"hh":ue=re?"tunnin":"tuntia";break;case"d":return re?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":ue=re?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return re?"kuukauden":"kuukausi";case"MM":ue=re?"kuukauden":"kuukautta";break;case"y":return re?"vuoden":"vuosi";case"yy":ue=re?"vuoden":"vuotta"}return function S(n,Z){return n<10?Z?D[n]:l[n]:n}(n,re)+" "+ue}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:I,ss:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4282:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},4236:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2830:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,I){switch(I){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}}})}(C(6676))},1412:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,I){switch(I){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}},week:{dow:1,doy:4}})}(C(6676))},9361:function(ft,Ie,C){!function(e){"use strict";var I=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:I,monthsShortRegex:I,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(n,Z){switch(Z){case"D":return n+(1===n?"er":"");default:case"M":case"Q":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}},week:{dow:1,doy:4}})}(C(6676))},6984:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),D="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,w){return S?/-MMM-/.test(w)?D[S.month()]:l[S.month()]:l},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},3961:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Z){return Z+(1===Z?"d":Z%10==2?"na":"mh")},week:{dow:1,doy:4}})}(C(6676))},8849:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Z){return Z+(1===Z?"d":Z%10==2?"na":"mh")},week:{dow:1,doy:4}})}(C(6676))},4273:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(D){return 0===D.indexOf("un")?"n"+D:"en "+D},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},623:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[I+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",I+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[I+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",I+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[I+" \u0935\u0930\u093e\u0902\u0928\u0940",I+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[I+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",I+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[I+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",I+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[I+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",I+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return n?Z[w][0]:Z[w][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(I,S){return"D"===S?I+"\u0935\u0947\u0930":I},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(I,S){return 12===I&&(I=0),"\u0930\u093e\u0924\u0940"===S?I<4?I:I+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?I:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?I>12?I:I+12:"\u0938\u093e\u0902\u091c\u0947"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"\u0930\u093e\u0924\u0940":I<12?"\u0938\u0915\u093e\u0933\u0940\u0902":I<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":I<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(C(6676))},2696:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["thoddea sekondamni","thodde sekond"],ss:[I+" sekondamni",I+" sekond"],m:["eka mintan","ek minut"],mm:[I+" mintamni",I+" mintam"],h:["eka voran","ek vor"],hh:[I+" voramni",I+" voram"],d:["eka disan","ek dis"],dd:[I+" disamni",I+" dis"],M:["eka mhoinean","ek mhoino"],MM:[I+" mhoineamni",I+" mhoine"],y:["eka vorsan","ek voros"],yy:[I+" vorsamni",I+" vorsam"]};return n?Z[w][0]:Z[w][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(I,S){return"D"===S?I+"er":I},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(I,S){return 12===I&&(I=0),"rati"===S?I<4?I:I+12:"sokallim"===S?I:"donparam"===S?I>12?I:I+12:"sanje"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"rati":I<12?"sokallim":I<16?"donparam":I<20?"sanje":"rati"}})}(C(6676))},6928:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},D={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===w?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===w?S:"\u0aac\u0aaa\u0acb\u0ab0"===w?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(C(6676))},4804:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(D){return 2===D?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":D+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(D){return 2===D?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":D+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(D){return 2===D?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":D+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(D){return 2===D?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":D%10==0&&10!==D?D+" \u05e9\u05e0\u05d4":D+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(D){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(D)},meridiem:function(D,I,S){return D<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":D<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":D<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":D<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(C(6676))},3015:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},I=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:I,longMonthsParse:I,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(Z){return D[Z]})},postformat:function(n){return n.replace(/\d/g,function(Z){return l[Z]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(n,Z){return 12===n&&(n=0),"\u0930\u093e\u0924"===Z?n<4?n:n+12:"\u0938\u0941\u092c\u0939"===Z?n:"\u0926\u094b\u092a\u0939\u0930"===Z?n>=10?n:n+12:"\u0936\u093e\u092e"===Z?n+12:void 0},meridiem:function(n,Z,ee){return n<4?"\u0930\u093e\u0924":n<10?"\u0938\u0941\u092c\u0939":n<17?"\u0926\u094b\u092a\u0939\u0930":n<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(C(6676))},7134:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var n=I+" ";switch(w){case"ss":return n+(1===I?"sekunda":2===I||3===I||4===I?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return n+(1===I?"minuta":2===I||3===I||4===I?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return n+(1===I?"sat":2===I||3===I||4===I?"sata":"sati");case"dd":return n+(1===I?"dan":"dana");case"MM":return n+(1===I?"mjesec":2===I||3===I||4===I?"mjeseca":"mjeseci");case"yy":return n+(1===I?"godina":2===I||3===I||4===I?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:l,m:l,mm:l,h:l,hh:l,d:"dan",dd:l,M:"mjesec",MM:l,y:"godinu",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},670:function(ft,Ie,C){!function(e){"use strict";var l="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function D(w,n,Z,ee){var re=w;switch(Z){case"s":return ee||n?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return re+(ee||n)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(ee||n?" perc":" perce");case"mm":return re+(ee||n?" perc":" perce");case"h":return"egy"+(ee||n?" \xf3ra":" \xf3r\xe1ja");case"hh":return re+(ee||n?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(ee||n?" nap":" napja");case"dd":return re+(ee||n?" nap":" napja");case"M":return"egy"+(ee||n?" h\xf3nap":" h\xf3napja");case"MM":return re+(ee||n?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(ee||n?" \xe9v":" \xe9ve");case"yy":return re+(ee||n?" \xe9v":" \xe9ve")}return""}function I(w){return(w?"":"[m\xfalt] ")+"["+l[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(w){return"u"===w.charAt(1).toLowerCase()},meridiem:function(w,n,Z){return w<12?!0===Z?"de":"DE":!0===Z?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return I.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return I.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4523:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(D){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(D)},meridiem:function(D){return D<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":D<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":D<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(D,I){switch(I){case"DDD":case"w":case"W":case"DDDo":return 1===D?D+"-\u056b\u0576":D+"-\u0580\u0564";default:return D}},week:{dow:1,doy:7}})}(C(6676))},9233:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"siang"===I?D>=11?D:D+12:"sore"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"siang":D<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(C(6676))},4693:function(ft,Ie,C){!function(e){"use strict";function l(S){return S%100==11||S%10!=1}function D(S,w,n,Z){var ee=S+" ";switch(n){case"s":return w||Z?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return l(S)?ee+(w||Z?"sek\xfandur":"sek\xfandum"):ee+"sek\xfanda";case"m":return w?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return l(S)?ee+(w||Z?"m\xedn\xfatur":"m\xedn\xfatum"):w?ee+"m\xedn\xfata":ee+"m\xedn\xfatu";case"hh":return l(S)?ee+(w||Z?"klukkustundir":"klukkustundum"):ee+"klukkustund";case"d":return w?"dagur":Z?"dag":"degi";case"dd":return l(S)?w?ee+"dagar":ee+(Z?"daga":"d\xf6gum"):w?ee+"dagur":ee+(Z?"dag":"degi");case"M":return w?"m\xe1nu\xf0ur":Z?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return l(S)?w?ee+"m\xe1nu\xf0ir":ee+(Z?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):w?ee+"m\xe1nu\xf0ur":ee+(Z?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return w||Z?"\xe1r":"\xe1ri";case"yy":return l(S)?ee+(w||Z?"\xe1r":"\xe1rum"):ee+(w||Z?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:D,ss:D,m:D,mm:D,h:"klukkustund",hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},8118:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(D){return(/^[0-9].+$/.test(D)?"tra":"in")+" "+D},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},3936:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},6871:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(D,I){return"\u5143"===I[1]?1:parseInt(I[1]||D,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(D){return"\u5348\u5f8c"===D},meridiem:function(D,I,S){return D<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(D){return D.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(D){return this.week()!==D.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(D,I){switch(I){case"y":return 1===D?"\u5143\u5e74":D+"\u5e74";case"d":case"D":case"DDD":return D+"\u65e5";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(C(6676))},8710:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(D,I){return 12===D&&(D=0),"enjing"===I?D:"siyang"===I?D>=11?D:D+12:"sonten"===I||"ndalu"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"enjing":D<15?"siyang":D<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(C(6676))},7125:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(D){return D.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(I,S,w){return"\u10d8"===w?S+"\u10e8\u10d8":S+w+"\u10e8\u10d8"})},past:function(D){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(D)?D.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(D)?D.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):D},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(D){return 0===D?D:1===D?D+"-\u10da\u10d8":D<20||D<=100&&D%20==0||D%100==0?"\u10db\u10d4-"+D:D+"-\u10d4"},week:{dow:1,doy:7}})}(C(6676))},2461:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},7399:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},D={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,w,n){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},week:{dow:1,doy:4}})}(C(6676))},8720:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},D={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===w?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===w?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===w?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(C(6676))},5306:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\uc77c";case"M":return D+"\uc6d4";case"w":case"W":return D+"\uc8fc";default:return D}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(D){return"\uc624\ud6c4"===D},meridiem:function(D,I,S){return D<12?"\uc624\uc804":"\uc624\ud6c4"}})}(C(6676))},2995:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},I=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:I,monthsShort:I,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(w){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(w)},meridiem:function(w,n,Z){return w<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(w){return w.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(n){return D[n]}).replace(/\u060c/g,",")},postformat:function(w){return w.replace(/\d/g,function(n){return l[n]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},8779:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},2057:function(ft,Ie,C){!function(e){"use strict";function l(n,Z,ee,re){var ue={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return Z?ue[ee][0]:ue[ee][1]}function S(n){if(n=parseInt(n,10),isNaN(n))return!1;if(n<0)return!0;if(n<10)return 4<=n&&n<=7;if(n<100){var Z=n%10;return S(0===Z?n/10:Z)}if(n<1e4){for(;n>=10;)n/=10;return S(n)}return S(n/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function D(n){return S(n.substr(0,n.indexOf(" ")))?"a "+n:"an "+n},past:function I(n){return S(n.substr(0,n.indexOf(" ")))?"viru "+n:"virun "+n},s:"e puer Sekonnen",ss:"%d Sekonnen",m:l,mm:"%d Minutten",h:l,hh:"%d Stonnen",d:l,dd:"%d Deeg",M:l,MM:"%d M\xe9int",y:l,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7192:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(D){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===D},meridiem:function(D,I,S){return D<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(D){return"\u0e97\u0eb5\u0ec8"+D}})}(C(6676))},5430:function(ft,Ie,C){!function(e){"use strict";var l={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function I(ee,re,ue,se){return re?w(ue)[0]:se?w(ue)[1]:w(ue)[2]}function S(ee){return ee%10==0||ee>10&&ee<20}function w(ee){return l[ee].split("_")}function n(ee,re,ue,se){var te=ee+" ";return 1===ee?te+I(0,re,ue[0],se):re?te+(S(ee)?w(ue)[1]:w(ue)[0]):se?te+w(ue)[1]:te+(S(ee)?w(ue)[1]:w(ue)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function D(ee,re,ue,se){return re?"kelios sekund\u0117s":se?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:n,m:I,mm:n,h:I,hh:n,d:I,dd:n,M:I,MM:n,y:I,yy:n},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(ee){return ee+"-oji"},week:{dow:1,doy:4}})}(C(6676))},3363:function(ft,Ie,C){!function(e){"use strict";var l={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function D(Z,ee,re){return re?ee%10==1&&ee%100!=11?Z[2]:Z[3]:ee%10==1&&ee%100!=11?Z[0]:Z[1]}function I(Z,ee,re){return Z+" "+D(l[re],Z,ee)}function S(Z,ee,re){return D(l[re],Z,ee)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function w(Z,ee){return ee?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:I,m:S,mm:I,h:S,hh:I,d:S,dd:I,M:S,MM:I,y:S,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2939:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(I,S){return 1===I?S[0]:I>=2&&I<=4?S[1]:S[2]},translate:function(I,S,w){var n=l.words[w];return 1===w.length?S?n[0]:n[1]:I+" "+l.correctGrammaticalCase(I,n)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:"dan",dd:l.translate,M:"mjesec",MM:l.translate,y:"godinu",yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},8212:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},9718:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var I=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===I?D+"-\u0432\u0438":2===I?D+"-\u0440\u0438":7===I||8===I?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(C(6676))},561:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(D,I){return 12===D&&(D=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===I&&D>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===I||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===I?D+12:D},meridiem:function(D,I,S){return D<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":D<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":D<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":D<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(C(6676))},8929:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){switch(w){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return I+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return I+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return I+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return I+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return I+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return I+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return I}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(I){return"\u04ae\u0425"===I},meridiem:function(I,S,w){return I<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(I,S){switch(S){case"d":case"D":case"DDD":return I+" \u04e9\u0434\u04e9\u0440";default:return I}}})}(C(6676))},4880:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function I(w,n,Z,ee){var re="";if(n)switch(Z){case"s":re="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":re="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":re="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":re="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":re="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":re="%d \u0924\u093e\u0938";break;case"d":re="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":re="%d \u0926\u093f\u0935\u0938";break;case"M":re="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":re="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":re="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":re="%d \u0935\u0930\u094d\u0937\u0947"}else switch(Z){case"s":re="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":re="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":re="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":re="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":re="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":re="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":re="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":re="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":re="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":re="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":re="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":re="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return re.replace(/%d/i,w)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:I,ss:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},preparse:function(w){return w.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return D[n]})},postformat:function(w){return w.replace(/\d/g,function(n){return l[n]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(w,n){return 12===w&&(w=0),"\u092a\u0939\u093e\u091f\u0947"===n||"\u0938\u0915\u093e\u0933\u0940"===n?w:"\u0926\u0941\u092a\u093e\u0930\u0940"===n||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===n||"\u0930\u093e\u0924\u094d\u0930\u0940"===n?w>=12?w:w+12:void 0},meridiem:function(w,n,Z){return w>=0&&w<6?"\u092a\u0939\u093e\u091f\u0947":w<12?"\u0938\u0915\u093e\u0933\u0940":w<17?"\u0926\u0941\u092a\u093e\u0930\u0940":w<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(C(6676))},2074:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"tengahari"===I?D>=11?D:D+12:"petang"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(C(6676))},3193:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"tengahari"===I?D>=11?D:D+12:"petang"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(C(6676))},4082:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},2261:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},D={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},week:{dow:1,doy:4}})}(C(6676))},5273:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9874:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===w?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===w?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===w?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===w?S+12:void 0},meridiem:function(S,w,n){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(C(6676))},1484:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),I=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},1667:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),I=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},7262:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9679:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,I){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===I||"W"===I)&&(S="a"),D+S},week:{dow:1,doy:4}})}(C(6676))},6830:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},D={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===w?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===w?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===w?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(C(6676))},3616:function(ft,Ie,C){!function(e){"use strict";var l="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),D="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),I=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(Z){return Z%10<5&&Z%10>1&&~~(Z/10)%10!=1}function w(Z,ee,re){var ue=Z+" ";switch(re){case"ss":return ue+(S(Z)?"sekundy":"sekund");case"m":return ee?"minuta":"minut\u0119";case"mm":return ue+(S(Z)?"minuty":"minut");case"h":return ee?"godzina":"godzin\u0119";case"hh":return ue+(S(Z)?"godziny":"godzin");case"ww":return ue+(S(Z)?"tygodnie":"tygodni");case"MM":return ue+(S(Z)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return ue+(S(Z)?"lata":"lat")}}e.defineLocale("pl",{months:function(Z,ee){return Z?/D MMMM/.test(ee)?D[Z.month()]:l[Z.month()]:l},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:w,m:w,mm:w,h:w,hh:w,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:w,M:"miesi\u0105c",MM:w,y:"rok",yy:w},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2751:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(C(6676))},5138:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},7968:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var Z=" ";return(I%100>=20||I>=100&&I%100==0)&&(Z=" de "),I+Z+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[w]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:l,m:"un minut",mm:l,h:"o or\u0103",hh:l,d:"o zi",dd:l,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:l,M:"o lun\u0103",MM:l,y:"un an",yy:l},week:{dow:1,doy:7}})}(C(6676))},1828:function(ft,Ie,C){!function(e){"use strict";function D(w,n,Z){return"m"===Z?n?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":w+" "+function l(w,n){var Z=w.split("_");return n%10==1&&n%100!=11?Z[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?Z[1]:Z[2]}({ss:n?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:n?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[Z],+w)}var I=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:I,longMonthsParse:I,shortMonthsParse:I,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(w){if(w.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(w){if(w.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0447\u0430\u0441",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(w){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(w)},meridiem:function(w,n,Z){return w<4?"\u043d\u043e\u0447\u0438":w<12?"\u0443\u0442\u0440\u0430":w<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(w,n){switch(n){case"M":case"d":case"DDD":return w+"-\u0439";case"D":return w+"-\u0433\u043e";case"w":case"W":return w+"-\u044f";default:return w}},week:{dow:1,doy:4}})}(C(6676))},2188:function(ft,Ie,C){!function(e){"use strict";var l=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],D=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(C(6676))},6562:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7172:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(D){return D+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(D){return"\u0db4.\u0dc0."===D||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===D},meridiem:function(D,I,S){return D>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(C(6676))},9966:function(ft,Ie,C){!function(e){"use strict";var l="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),D="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function I(n){return n>1&&n<5}function S(n,Z,ee,re){var ue=n+" ";switch(ee){case"s":return Z||re?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return Z||re?ue+(I(n)?"sekundy":"sek\xfand"):ue+"sekundami";case"m":return Z?"min\xfata":re?"min\xfatu":"min\xfatou";case"mm":return Z||re?ue+(I(n)?"min\xfaty":"min\xfat"):ue+"min\xfatami";case"h":return Z?"hodina":re?"hodinu":"hodinou";case"hh":return Z||re?ue+(I(n)?"hodiny":"hod\xedn"):ue+"hodinami";case"d":return Z||re?"de\u0148":"d\u0148om";case"dd":return Z||re?ue+(I(n)?"dni":"dn\xed"):ue+"d\u0148ami";case"M":return Z||re?"mesiac":"mesiacom";case"MM":return Z||re?ue+(I(n)?"mesiace":"mesiacov"):ue+"mesiacmi";case"y":return Z||re?"rok":"rokom";case"yy":return Z||re?ue+(I(n)?"roky":"rokov"):ue+"rokmi"}}e.defineLocale("sk",{months:l,monthsShort:D,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7520:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z=I+" ";switch(w){case"s":return S||n?"nekaj sekund":"nekaj sekundami";case"ss":return Z+(1===I?S?"sekundo":"sekundi":2===I?S||n?"sekundi":"sekundah":I<5?S||n?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return Z+(1===I?S?"minuta":"minuto":2===I?S||n?"minuti":"minutama":I<5?S||n?"minute":"minutami":S||n?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return Z+(1===I?S?"ura":"uro":2===I?S||n?"uri":"urama":I<5?S||n?"ure":"urami":S||n?"ur":"urami");case"d":return S||n?"en dan":"enim dnem";case"dd":return Z+(1===I?S||n?"dan":"dnem":2===I?S||n?"dni":"dnevoma":S||n?"dni":"dnevi");case"M":return S||n?"en mesec":"enim mesecem";case"MM":return Z+(1===I?S||n?"mesec":"mesecem":2===I?S||n?"meseca":"mesecema":I<5?S||n?"mesece":"meseci":S||n?"mesecev":"meseci");case"y":return S||n?"eno leto":"enim letom";case"yy":return Z+(1===I?S||n?"leto":"letom":2===I?S||n?"leti":"letoma":I<5?S||n?"leta":"leti":S||n?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},5291:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(D){return"M"===D.charAt(0)},meridiem:function(D,I,S){return D<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7603:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(I,S){return I%10>=1&&I%10<=4&&(I%100<10||I%100>=20)?I%10==1?S[0]:S[1]:S[2]},translate:function(I,S,w,n){var ee,Z=l.words[w];return 1===w.length?"y"===w&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":n||S?Z[0]:Z[1]:(ee=l.correctGrammaticalCase(I,Z),"yy"===w&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===ee?I+" \u0433\u043e\u0434\u0438\u043d\u0430":I+" "+ee)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:l.translate,dd:l.translate,M:l.translate,MM:l.translate,y:l.translate,yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},450:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(I,S){return I%10>=1&&I%10<=4&&(I%100<10||I%100>=20)?I%10==1?S[0]:S[1]:S[2]},translate:function(I,S,w,n){var ee,Z=l.words[w];return 1===w.length?"y"===w&&S?"jedna godina":n||S?Z[0]:Z[1]:(ee=l.correctGrammaticalCase(I,Z),"yy"===w&&S&&"godinu"===ee?I+" godina":I+" "+ee)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:l.translate,dd:l.translate,M:l.translate,MM:l.translate,y:l.translate,yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},383:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(D,I,S){return D<11?"ekuseni":D<15?"emini":D<19?"entsambama":"ebusuku"},meridiemHour:function(D,I){return 12===D&&(D=0),"ekuseni"===I?D:"emini"===I?D>=11?D:D+12:"entsambama"===I||"ebusuku"===I?0===D?0:D+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(C(6676))},7221:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?":e":1===I||2===I?":a":":e")},week:{dow:1,doy:4}})}(C(6676))},1743:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(C(6676))},6351:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},D={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,w,n){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,w){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===w?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===w||"\u0b95\u0bbe\u0bb2\u0bc8"===w||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===w&&S>=10?S:S+12},week:{dow:0,doy:6}})}(C(6676))},9620:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===I?D<4?D:D+12:"\u0c09\u0c26\u0c2f\u0c02"===I?D:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===I?D>=10?D:D+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===I?D+12:void 0},meridiem:function(D,I,S){return D<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":D<10?"\u0c09\u0c26\u0c2f\u0c02":D<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":D<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(C(6676))},6278:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6987:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(I,S){return 12===I&&(I=0),"\u0448\u0430\u0431"===S?I<4?I:I+12:"\u0441\u0443\u0431\u04b3"===S?I:"\u0440\u04ef\u0437"===S?I>=11?I:I+12:"\u0431\u0435\u0433\u043e\u04b3"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"\u0448\u0430\u0431":I<11?"\u0441\u0443\u0431\u04b3":I<16?"\u0440\u04ef\u0437":I<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},9325:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(D){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===D},meridiem:function(D,I,S){return D<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(C(6676))},3485:function(ft,Ie,C){!function(e){"use strict";var l={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(I,S){switch(S){case"d":case"D":case"Do":case"DD":return I;default:if(0===I)return I+"'unjy";var w=I%10;return I+(l[w]||l[I%100-w]||l[I>=100?100:null])}},week:{dow:1,doy:7}})}(C(6676))},8148:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},9616:function(ft,Ie,C){!function(e){"use strict";var l="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(Z,ee,re,ue){var se=function w(Z){var ee=Math.floor(Z%1e3/100),re=Math.floor(Z%100/10),ue=Z%10,se="";return ee>0&&(se+=l[ee]+"vatlh"),re>0&&(se+=(""!==se?" ":"")+l[re]+"maH"),ue>0&&(se+=(""!==se?" ":"")+l[ue]),""===se?"pagh":se}(Z);switch(re){case"ss":return se+" lup";case"mm":return se+" tup";case"hh":return se+" rep";case"dd":return se+" jaj";case"MM":return se+" jar";case"yy":return se+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function D(Z){var ee=Z;return-1!==Z.indexOf("jaj")?ee.slice(0,-3)+"leS":-1!==Z.indexOf("jar")?ee.slice(0,-3)+"waQ":-1!==Z.indexOf("DIS")?ee.slice(0,-3)+"nem":ee+" pIq"},past:function I(Z){var ee=Z;return-1!==Z.indexOf("jaj")?ee.slice(0,-3)+"Hu\u2019":-1!==Z.indexOf("jar")?ee.slice(0,-3)+"wen":-1!==Z.indexOf("DIS")?ee.slice(0,-3)+"ben":ee+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4040:function(ft,Ie,C){!function(e){"use strict";var l={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(I,S,w){return I<12?w?"\xf6\xf6":"\xd6\xd6":w?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(I){return"\xf6s"===I||"\xd6S"===I},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(I,S){switch(S){case"d":case"D":case"Do":case"DD":return I;default:if(0===I)return I+"'\u0131nc\u0131";var w=I%10;return I+(l[w]||l[I%100-w]||l[I>=100?100:null])}},week:{dow:1,doy:7}})}(C(6676))},594:function(ft,Ie,C){!function(e){"use strict";function D(I,S,w,n){var Z={s:["viensas secunds","'iensas secunds"],ss:[I+" secunds",I+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[I+" m\xeduts",I+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[I+" \xfeoras",I+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[I+" ziuas",I+" ziuas"],M:["'n mes","'iens mes"],MM:[I+" mesen",I+" mesen"],y:["'n ar","'iens ar"],yy:[I+" ars",I+" ars"]};return n||S?Z[w][0]:Z[w][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(I){return"d'o"===I.toLowerCase()},meridiem:function(I,S,w){return I>11?w?"d'o":"D'O":w?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},3226:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(C(6676))},673:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(C(6676))},9580:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===I||"\u0633\u06d5\u06be\u06d5\u0631"===I||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===I?D:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===I||"\u0643\u06d5\u0686"===I?D+12:D>=11?D:D+12},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":w<900?"\u0633\u06d5\u06be\u06d5\u0631":w<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":w<1230?"\u0686\u06c8\u0634":w<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return D+"-\u06be\u06d5\u067e\u062a\u06d5";default:return D}},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(C(6676))},7270:function(ft,Ie,C){!function(e){"use strict";function D(n,Z,ee){return"m"===ee?Z?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===ee?Z?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":n+" "+function l(n,Z){var ee=n.split("_");return Z%10==1&&Z%100!=11?ee[0]:Z%10>=2&&Z%10<=4&&(Z%100<10||Z%100>=20)?ee[1]:ee[2]}({ss:Z?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:Z?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:Z?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[ee],+n)}function S(n){return function(){return n+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function I(n,Z){var ee={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===n?ee.nominative.slice(1,7).concat(ee.nominative.slice(0,1)):n?ee[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(Z)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(Z)?"genitive":"nominative"][n.day()]:ee.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:D,y:"\u0440\u0456\u043a",yy:D},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(n)},meridiem:function(n,Z,ee){return n<4?"\u043d\u043e\u0447\u0456":n<12?"\u0440\u0430\u043d\u043a\u0443":n<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(n,Z){switch(Z){case"M":case"d":case"DDD":case"w":case"W":return n+"-\u0439";case"D":return n+"-\u0433\u043e";default:return n}},week:{dow:1,doy:7}})}(C(6676))},1656:function(ft,Ie,C){!function(e){"use strict";var l=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],D=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(C(6676))},8744:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(C(6676))},8364:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(C(6676))},5049:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(D){return/^ch$/i.test(D)},meridiem:function(D,I,S){return D<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},5106:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6199:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(C(6676))},7280:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:D>=11?D:D+12},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(D){return D.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(D){return this.week()!==D.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u5468";default:return D}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(C(6676))},6860:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1200?"\u4e0a\u5348":1200===w?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},2335:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},482:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},6676:function(ft,Ie,C){(ft=C.nmd(ft)).exports=function(){"use strict";var e,_e;function l(){return e.apply(null,arguments)}function I(k){return k instanceof Array||"[object Array]"===Object.prototype.toString.call(k)}function S(k){return null!=k&&"[object Object]"===Object.prototype.toString.call(k)}function w(k,j){return Object.prototype.hasOwnProperty.call(k,j)}function n(k){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(k).length;var j;for(j in k)if(w(k,j))return!1;return!0}function Z(k){return void 0===k}function ee(k){return"number"==typeof k||"[object Number]"===Object.prototype.toString.call(k)}function re(k){return k instanceof Date||"[object Date]"===Object.prototype.toString.call(k)}function ue(k,j){var ke,pe=[],nt=k.length;for(ke=0;ke>>0;for(ke=0;ke0)for(pe=0;pe=0?pe?"+":"":"-")+Math.pow(10,Math.max(0,j-ke.length)).toString().substr(1)+ke}var dt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,at=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Be={},Ee={};function $e(k,j,pe,ke){var nt=ke;"string"==typeof ke&&(nt=function(){return this[ke]()}),k&&(Ee[k]=nt),j&&(Ee[j[0]]=function(){return Rn(nt.apply(this,arguments),j[1],j[2])}),pe&&(Ee[pe]=function(){return this.localeData().ordinal(nt.apply(this,arguments),k)})}function me(k){return k.match(/\[[\s\S]/)?k.replace(/^\[|\]$/g,""):k.replace(/\\/g,"")}function he(k,j){return k.isValid()?(j=Ze(j,k.localeData()),Be[j]=Be[j]||function tt(k){var pe,ke,j=k.match(dt);for(pe=0,ke=j.length;pe=0&&at.test(k);)k=k.replace(at,ke),at.lastIndex=0,pe-=1;return k}var Wn={};function Ve(k,j){var pe=k.toLowerCase();Wn[pe]=Wn[pe+"s"]=Wn[j]=k}function ct(k){return"string"==typeof k?Wn[k]||Wn[k.toLowerCase()]:void 0}function Ct(k){var pe,ke,j={};for(ke in k)w(k,ke)&&(pe=ct(ke))&&(j[pe]=k[ke]);return j}var Ce={};function J(k,j){Ce[k]=j}function Oe(k){return k%4==0&&k%100!=0||k%400==0}function ot(k){return k<0?Math.ceil(k)||0:Math.floor(k)}function Se(k){var j=+k,pe=0;return 0!==j&&isFinite(j)&&(pe=ot(j)),pe}function Ft(k,j){return function(pe){return null!=pe?(Bt(this,k,pe),l.updateOffset(this,j),this):lt(this,k)}}function lt(k,j){return k.isValid()?k._d["get"+(k._isUTC?"UTC":"")+j]():NaN}function Bt(k,j,pe){k.isValid()&&!isNaN(pe)&&("FullYear"===j&&Oe(k.year())&&1===k.month()&&29===k.date()?(pe=Se(pe),k._d["set"+(k._isUTC?"UTC":"")+j](pe,k.month(),Kr(pe,k.month()))):k._d["set"+(k._isUTC?"UTC":"")+j](pe))}var Te,gn=/\d/,An=/\d\d/,jn=/\d{3}/,ai=/\d{4}/,di=/[+-]?\d{6}/,oi=/\d\d?/,Jn=/\d\d\d\d?/,qt=/\d\d\d\d\d\d?/,_t=/\d{1,3}/,G=/\d{1,4}/,U=/[+-]?\d{1,6}/,ve=/\d+/,Pe=/[+-]?\d+/,ut=/Z|[+-]\d\d:?\d\d/gi,We=/Z|[+-]\d\d(?::?\d\d)?/gi,be=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function He(k,j,pe){Te[k]=Jt(j)?j:function(ke,nt){return ke&&pe?pe:j}}function Wt(k,j){return w(Te,k)?Te[k](j._strict,j._locale):new RegExp(function Pn(k){return wt(k.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(j,pe,ke,nt,Kt){return pe||ke||nt||Kt}))}(k))}function wt(k){return k.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Te={};var Yt={};function fe(k,j){var pe,nt,ke=j;for("string"==typeof k&&(k=[k]),ee(j)&&(ke=function(Kt,xn){xn[j]=Se(Kt)}),nt=k.length,pe=0;pe68?1900:2e3)};var Gs=Ft("FullYear",!0);function xl(k,j,pe,ke,nt,Kt,xn){var Mi;return k<100&&k>=0?(Mi=new Date(k+400,j,pe,ke,nt,Kt,xn),isFinite(Mi.getFullYear())&&Mi.setFullYear(k)):Mi=new Date(k,j,pe,ke,nt,Kt,xn),Mi}function So(k){var j,pe;return k<100&&k>=0?((pe=Array.prototype.slice.call(arguments))[0]=k+400,j=new Date(Date.UTC.apply(null,pe)),isFinite(j.getUTCFullYear())&&j.setUTCFullYear(k)):j=new Date(Date.UTC.apply(null,arguments)),j}function Ws(k,j,pe){var ke=7+j-pe;return-(7+So(k,0,ke).getUTCDay()-j)%7+ke-1}function Ds(k,j,pe,ke,nt){var Oi,Hr,Mi=1+7*(j-1)+(7+pe-ke)%7+Ws(k,ke,nt);return Mi<=0?Hr=yr(Oi=k-1)+Mi:Mi>yr(k)?(Oi=k+1,Hr=Mi-yr(k)):(Oi=k,Hr=Mi),{year:Oi,dayOfYear:Hr}}function $s(k,j,pe){var Kt,xn,ke=Ws(k.year(),j,pe),nt=Math.floor((k.dayOfYear()-ke-1)/7)+1;return nt<1?Kt=nt+Uo(xn=k.year()-1,j,pe):nt>Uo(k.year(),j,pe)?(Kt=nt-Uo(k.year(),j,pe),xn=k.year()+1):(xn=k.year(),Kt=nt),{week:Kt,year:xn}}function Uo(k,j,pe){var ke=Ws(k,j,pe),nt=Ws(k+1,j,pe);return(yr(k)-ke+nt)/7}$e("w",["ww",2],"wo","week"),$e("W",["WW",2],"Wo","isoWeek"),Ve("week","w"),Ve("isoWeek","W"),J("week",5),J("isoWeek",5),He("w",oi),He("ww",oi,An),He("W",oi),He("WW",oi,An),Mt(["w","ww","W","WW"],function(k,j,pe,ke){j[ke.substr(0,1)]=Se(k)});function Ks(k,j){return k.slice(j,7).concat(k.slice(0,j))}$e("d",0,"do","day"),$e("dd",0,0,function(k){return this.localeData().weekdaysMin(this,k)}),$e("ddd",0,0,function(k){return this.localeData().weekdaysShort(this,k)}),$e("dddd",0,0,function(k){return this.localeData().weekdays(this,k)}),$e("e",0,0,"weekday"),$e("E",0,0,"isoWeekday"),Ve("day","d"),Ve("weekday","e"),Ve("isoWeekday","E"),J("day",11),J("weekday",11),J("isoWeekday",11),He("d",oi),He("e",oi),He("E",oi),He("dd",function(k,j){return j.weekdaysMinRegex(k)}),He("ddd",function(k,j){return j.weekdaysShortRegex(k)}),He("dddd",function(k,j){return j.weekdaysRegex(k)}),Mt(["dd","ddd","dddd"],function(k,j,pe,ke){var nt=pe._locale.weekdaysParse(k,ke,pe._strict);null!=nt?j.d=nt:ce(pe).invalidWeekday=k}),Mt(["d","e","E"],function(k,j,pe,ke){j[ke]=Se(k)});var Aa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Li="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yr=be,dr=be,Ha=be;function Es(k,j,pe){var ke,nt,Kt,xn=k.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ke=0;ke<7;++ke)Kt=te([2e3,1]).day(ke),this._minWeekdaysParse[ke]=this.weekdaysMin(Kt,"").toLocaleLowerCase(),this._shortWeekdaysParse[ke]=this.weekdaysShort(Kt,"").toLocaleLowerCase(),this._weekdaysParse[ke]=this.weekdays(Kt,"").toLocaleLowerCase();return pe?"dddd"===j?-1!==(nt=ki.call(this._weekdaysParse,xn))?nt:null:"ddd"===j?-1!==(nt=ki.call(this._shortWeekdaysParse,xn))?nt:null:-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:"dddd"===j?-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._shortWeekdaysParse,xn))||-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:"ddd"===j?-1!==(nt=ki.call(this._shortWeekdaysParse,xn))||-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:-1!==(nt=ki.call(this._minWeekdaysParse,xn))||-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._shortWeekdaysParse,xn))?nt:null}function jo(){function k(ws,tl){return tl.length-ws.length}var Kt,xn,Mi,Oi,Hr,j=[],pe=[],ke=[],nt=[];for(Kt=0;Kt<7;Kt++)xn=te([2e3,1]).day(Kt),Mi=wt(this.weekdaysMin(xn,"")),Oi=wt(this.weekdaysShort(xn,"")),Hr=wt(this.weekdays(xn,"")),j.push(Mi),pe.push(Oi),ke.push(Hr),nt.push(Mi),nt.push(Oi),nt.push(Hr);j.sort(k),pe.sort(k),ke.sort(k),nt.sort(k),this._weekdaysRegex=new RegExp("^("+nt.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ke.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+pe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+j.join("|")+")","i")}function no(){return this.hours()%12||12}function nr(k,j){$e(k,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),j)})}function ps(k,j){return j._meridiemParse}$e("H",["HH",2],0,"hour"),$e("h",["hh",2],0,no),$e("k",["kk",2],0,function Ao(){return this.hours()||24}),$e("hmm",0,0,function(){return""+no.apply(this)+Rn(this.minutes(),2)}),$e("hmmss",0,0,function(){return""+no.apply(this)+Rn(this.minutes(),2)+Rn(this.seconds(),2)}),$e("Hmm",0,0,function(){return""+this.hours()+Rn(this.minutes(),2)}),$e("Hmmss",0,0,function(){return""+this.hours()+Rn(this.minutes(),2)+Rn(this.seconds(),2)}),nr("a",!0),nr("A",!1),Ve("hour","h"),J("hour",13),He("a",ps),He("A",ps),He("H",oi),He("h",oi),He("k",oi),He("HH",oi,An),He("hh",oi,An),He("kk",oi,An),He("hmm",Jn),He("hmmss",qt),He("Hmm",Jn),He("Hmmss",qt),fe(["H","HH"],cn),fe(["k","kk"],function(k,j,pe){var ke=Se(k);j[cn]=24===ke?0:ke}),fe(["a","A"],function(k,j,pe){pe._isPm=pe._locale.isPM(k),pe._meridiem=k}),fe(["h","hh"],function(k,j,pe){j[cn]=Se(k),ce(pe).bigHour=!0}),fe("hmm",function(k,j,pe){var ke=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke)),ce(pe).bigHour=!0}),fe("hmmss",function(k,j,pe){var ke=k.length-4,nt=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke,2)),j[En]=Se(k.substr(nt)),ce(pe).bigHour=!0}),fe("Hmm",function(k,j,pe){var ke=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke))}),fe("Hmmss",function(k,j,pe){var ke=k.length-4,nt=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke,2)),j[En]=Se(k.substr(nt))});var qs=Ft("Hours",!0);var Ko,Qs={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:vr,monthsShort:Bi,week:{dow:0,doy:6},weekdays:Aa,weekdaysMin:Li,weekdaysShort:qi,meridiemParse:/[ap]\.?m?\.?/i},wi={},Oo={};function or(k,j){var pe,ke=Math.min(k.length,j.length);for(pe=0;pe0;){if(nt=jr(Kt.slice(0,pe).join("-")))return nt;if(ke&&ke.length>=pe&&or(Kt,ke)>=pe-1)break;pe--}j++}return Ko}(k)}function Ys(k){var j,pe=k._a;return pe&&-2===ce(k).overflow&&(j=pe[st]<0||pe[st]>11?st:pe[It]<1||pe[It]>Kr(pe[ht],pe[st])?It:pe[cn]<0||pe[cn]>24||24===pe[cn]&&(0!==pe[_n]||0!==pe[En]||0!==pe[On])?cn:pe[_n]<0||pe[_n]>59?_n:pe[En]<0||pe[En]>59?En:pe[On]<0||pe[On]>999?On:-1,ce(k)._overflowDayOfYear&&(jIt)&&(j=It),ce(k)._overflowWeeks&&-1===j&&(j=ni),ce(k)._overflowWeekday&&-1===j&&(j=Vn),ce(k).overflow=j),k}var fo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ms=/Z|[+-]\d\d(?::?\d\d)?/,Co=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Br=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ea=/^\/?Date\((-?\d+)/i,po=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,io={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qo(k){var j,pe,Kt,xn,Mi,Oi,ke=k._i,nt=fo.exec(ke)||Zr.exec(ke),Hr=Co.length,ws=Br.length;if(nt){for(ce(k).iso=!0,j=0,pe=Hr;j7)&&(Oi=!0)):(Kt=k._locale._week.dow,xn=k._locale._week.doy,Hr=$s(Lr(),Kt,xn),pe=na(j.gg,k._a[ht],Hr.year),ke=na(j.w,Hr.week),null!=j.d?((nt=j.d)<0||nt>6)&&(Oi=!0):null!=j.e?(nt=j.e+Kt,(j.e<0||j.e>6)&&(Oi=!0)):nt=Kt),ke<1||ke>Uo(pe,Kt,xn)?ce(k)._overflowWeeks=!0:null!=Oi?ce(k)._overflowWeekday=!0:(Mi=Ds(pe,ke,nt,Kt,xn),k._a[ht]=Mi.year,k._dayOfYear=Mi.dayOfYear)}(k),null!=k._dayOfYear&&(xn=na(k._a[ht],nt[ht]),(k._dayOfYear>yr(xn)||0===k._dayOfYear)&&(ce(k)._overflowDayOfYear=!0),pe=So(xn,0,k._dayOfYear),k._a[st]=pe.getUTCMonth(),k._a[It]=pe.getUTCDate()),j=0;j<3&&null==k._a[j];++j)k._a[j]=ke[j]=nt[j];for(;j<7;j++)k._a[j]=ke[j]=null==k._a[j]?2===j?1:0:k._a[j];24===k._a[cn]&&0===k._a[_n]&&0===k._a[En]&&0===k._a[On]&&(k._nextDay=!0,k._a[cn]=0),k._d=(k._useUTC?So:xl).apply(null,ke),Kt=k._useUTC?k._d.getUTCDay():k._d.getDay(),null!=k._tzm&&k._d.setUTCMinutes(k._d.getUTCMinutes()-k._tzm),k._nextDay&&(k._a[cn]=24),k._w&&typeof k._w.d<"u"&&k._w.d!==Kt&&(ce(k).weekdayMismatch=!0)}}function Qe(k){if(k._f!==l.ISO_8601)if(k._f!==l.RFC_2822){k._a=[],ce(k).empty=!0;var pe,ke,nt,Kt,xn,Hr,ws,j=""+k._i,Mi=j.length,Oi=0;for(ws=(nt=Ze(k._f,k._locale).match(dt)||[]).length,pe=0;pe0&&ce(k).unusedInput.push(xn),j=j.slice(j.indexOf(ke)+ke.length),Oi+=ke.length),Ee[Kt]?(ke?ce(k).empty=!1:ce(k).unusedTokens.push(Kt),Vt(Kt,ke,k)):k._strict&&!ke&&ce(k).unusedTokens.push(Kt);ce(k).charsLeftOver=Mi-Oi,j.length>0&&ce(k).unusedInput.push(j),k._a[cn]<=12&&!0===ce(k).bigHour&&k._a[cn]>0&&(ce(k).bigHour=void 0),ce(k).parsedDateParts=k._a.slice(0),ce(k).meridiem=k._meridiem,k._a[cn]=function Ht(k,j,pe){var ke;return null==pe?j:null!=k.meridiemHour?k.meridiemHour(j,pe):(null!=k.isPM&&((ke=k.isPM(pe))&&j<12&&(j+=12),!ke&&12===j&&(j=0)),j)}(k._locale,k._a[cn],k._meridiem),null!==(Hr=ce(k).era)&&(k._a[ht]=k._locale.erasConvertYear(Hr,k._a[ht])),Fe(k),Ys(k)}else Ia(k);else qo(k)}function Cl(k){var j=k._i,pe=k._f;return k._locale=k._locale||Jo(k._l),null===j||void 0===pe&&""===j?mt({nullInput:!0}):("string"==typeof j&&(k._i=j=k._locale.preparse(j)),xt(j)?new Tt(Ys(j)):(re(j)?k._d=j:I(pe)?function Qn(k){var j,pe,ke,nt,Kt,xn,Mi=!1,Oi=k._f.length;if(0===Oi)return ce(k).invalidFormat=!0,void(k._d=new Date(NaN));for(nt=0;ntthis?this:k:mt()});function Qo(k,j){var pe,ke;if(1===j.length&&I(j[0])&&(j=j[0]),!j.length)return Lr();for(pe=j[0],ke=1;ke=0?new Date(k+400,j,pe)-dl:new Date(k,j,pe).valueOf()}function ul(k,j,pe){return k<100&&k>=0?Date.UTC(k+400,j,pe)-dl:Date.UTC(k,j,pe)}function Fi(k,j){return j.erasAbbrRegex(k)}function so(){var nt,Kt,k=[],j=[],pe=[],ke=[],xn=this.eras();for(nt=0,Kt=xn.length;nt(Kt=Uo(k,ke,nt))&&(j=Kt),ka.call(this,k,j,pe,ke,nt))}function ka(k,j,pe,ke,nt){var Kt=Ds(k,j,pe,ke,nt),xn=So(Kt.year,0,Kt.dayOfYear);return this.year(xn.getUTCFullYear()),this.month(xn.getUTCMonth()),this.date(xn.getUTCDate()),this}$e("N",0,0,"eraAbbr"),$e("NN",0,0,"eraAbbr"),$e("NNN",0,0,"eraAbbr"),$e("NNNN",0,0,"eraName"),$e("NNNNN",0,0,"eraNarrow"),$e("y",["y",1],"yo","eraYear"),$e("y",["yy",2],0,"eraYear"),$e("y",["yyy",3],0,"eraYear"),$e("y",["yyyy",4],0,"eraYear"),He("N",Fi),He("NN",Fi),He("NNN",Fi),He("NNNN",function Jl(k,j){return j.erasNameRegex(k)}),He("NNNNN",function Il(k,j){return j.erasNarrowRegex(k)}),fe(["N","NN","NNN","NNNN","NNNNN"],function(k,j,pe,ke){var nt=pe._locale.erasParse(k,ke,pe._strict);nt?ce(pe).era=nt:ce(pe).invalidEra=k}),He("y",ve),He("yy",ve),He("yyy",ve),He("yyyy",ve),He("yo",function en(k,j){return j._eraYearOrdinalRegex||ve}),fe(["y","yy","yyy","yyyy"],ht),fe(["yo"],function(k,j,pe,ke){var nt;pe._locale._eraYearOrdinalRegex&&(nt=k.match(pe._locale._eraYearOrdinalRegex)),j[ht]=pe._locale.eraYearOrdinalParse?pe._locale.eraYearOrdinalParse(k,nt):parseInt(k,10)}),$e(0,["gg",2],0,function(){return this.weekYear()%100}),$e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gt("gggg","weekYear"),gt("ggggg","weekYear"),gt("GGGG","isoWeekYear"),gt("GGGGG","isoWeekYear"),Ve("weekYear","gg"),Ve("isoWeekYear","GG"),J("weekYear",1),J("isoWeekYear",1),He("G",Pe),He("g",Pe),He("GG",oi,An),He("gg",oi,An),He("GGGG",G,ai),He("gggg",G,ai),He("GGGGG",U,di),He("ggggg",U,di),Mt(["gggg","ggggg","GGGG","GGGGG"],function(k,j,pe,ke){j[ke.substr(0,2)]=Se(k)}),Mt(["gg","GG"],function(k,j,pe,ke){j[ke]=l.parseTwoDigitYear(k)}),$e("Q",0,"Qo","quarter"),Ve("quarter","Q"),J("quarter",7),He("Q",gn),fe("Q",function(k,j){j[st]=3*(Se(k)-1)}),$e("D",["DD",2],"Do","date"),Ve("date","D"),J("date",9),He("D",oi),He("DD",oi,An),He("Do",function(k,j){return k?j._dayOfMonthOrdinalParse||j._ordinalParse:j._dayOfMonthOrdinalParseLenient}),fe(["D","DD"],It),fe("Do",function(k,j){j[It]=Se(k.match(oi)[0])});var W=Ft("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear"),Ve("dayOfYear","DDD"),J("dayOfYear",4),He("DDD",_t),He("DDDD",jn),fe(["DDD","DDDD"],function(k,j,pe){pe._dayOfYear=Se(k)}),$e("m",["mm",2],0,"minute"),Ve("minute","m"),J("minute",14),He("m",oi),He("mm",oi,An),fe(["m","mm"],_n);var V=Ft("Minutes",!1);$e("s",["ss",2],0,"second"),Ve("second","s"),J("second",15),He("s",oi),He("ss",oi,An),fe(["s","ss"],En);var xe,qe,ie=Ft("Seconds",!1);for($e("S",0,0,function(){return~~(this.millisecond()/100)}),$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$e(0,["SSS",3],0,"millisecond"),$e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ve("millisecond","ms"),J("millisecond",16),He("S",_t,gn),He("SS",_t,An),He("SSS",_t,jn),xe="SSSS";xe.length<=9;xe+="S")He(xe,ve);function Pt(k,j){j[On]=Se(1e3*("0."+k))}for(xe="S";xe.length<=9;xe+="S")fe(xe,Pt);qe=Ft("Milliseconds",!1),$e("z",0,0,"zoneAbbr"),$e("zz",0,0,"zoneName");var on=Tt.prototype;function $i(k){return k}on.add=Al,on.calendar=function pn(k,j){1===arguments.length&&(arguments[0]?K(arguments[0])?(k=arguments[0],j=void 0):function Ne(k){var nt,j=S(k)&&!n(k),pe=!1,ke=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(nt=0;ntpe.valueOf():pe.valueOf()9999?he(pe,j?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Jt(Date.prototype.toISOString)?j?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",he(pe,"Z")):he(pe,j?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},on.inspect=function $a(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var pe,ke,k="moment",j="";return this.isLocal()||(k=0===this.utcOffset()?"moment.utc":"moment.parseZone",j="Z"),pe="["+k+'("]',ke=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(pe+ke+"-MM-DD[T]HH:mm:ss.SSS"+j+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(on[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),on.toJSON=function lc(){return this.isValid()?this.toISOString():null},on.toString=function vs(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function Nc(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function Vs(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function id(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.eraName=function hl(){var k,j,pe,ke=this.localeData().eras();for(k=0,j=ke.length;kthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function za(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function $l(){return!!this.isValid()&&this._isUTC},on.isUtc=Tr,on.isUTC=Tr,on.zoneAbbr=function mn(){return this._isUTC?"UTC":""},on.zoneName=function hn(){return this._isUTC?"Coordinated Universal Time":""},on.dates=Zt("dates accessor is deprecated. Use date instead.",W),on.months=Zt("months accessor is deprecated. Use month instead",yo),on.years=Zt("years accessor is deprecated. Use year instead",Gs),on.zone=Zt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Wl(k,j){return null!=k?("string"!=typeof k&&(k=-k),this.utcOffset(k,j),this):-this.utcOffset()}),on.isDSTShifted=Zt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Za(){if(!Z(this._isDSTShifted))return this._isDSTShifted;var j,k={};return je(k,this),(k=Cl(k))._a?(j=k._isUTC?te(k._a):Lr(k._a),this._isDSTShifted=this.isValid()&&function Va(k,j,pe){var xn,ke=Math.min(k.length,j.length),nt=Math.abs(k.length-j.length),Kt=0;for(xn=0;xn0):this._isDSTShifted=!1,this._isDSTShifted});var mi=Ln.prototype;function Ps(k,j,pe,ke){var nt=Jo(),Kt=te().set(ke,j);return nt[pe](Kt,k)}function fl(k,j,pe){if(ee(k)&&(j=k,k=void 0),k=k||"",null!=j)return Ps(k,j,pe,"month");var ke,nt=[];for(ke=0;ke<12;ke++)nt[ke]=Ps(k,ke,pe,"month");return nt}function Rl(k,j,pe,ke){"boolean"==typeof k?(ee(j)&&(pe=j,j=void 0),j=j||""):(pe=j=k,k=!1,ee(j)&&(pe=j,j=void 0),j=j||"");var xn,nt=Jo(),Kt=k?nt._week.dow:0,Mi=[];if(null!=pe)return Ps(j,(pe+Kt)%7,ke,"day");for(xn=0;xn<7;xn++)Mi[xn]=Ps(j,(xn+Kt)%7,ke,"day");return Mi}mi.calendar=function gi(k,j,pe){var ke=this._calendar[k]||this._calendar.sameElse;return Jt(ke)?ke.call(j,pe):ke},mi.longDateFormat=function bt(k){var j=this._longDateFormat[k],pe=this._longDateFormat[k.toUpperCase()];return j||!pe?j:(this._longDateFormat[k]=pe.match(dt).map(function(ke){return"MMMM"===ke||"MM"===ke||"DD"===ke||"dddd"===ke?ke.slice(1):ke}).join(""),this._longDateFormat[k])},mi.invalidDate=function Qt(){return this._invalidDate},mi.ordinal=function Ot(k){return this._ordinal.replace("%d",k)},mi.preparse=$i,mi.postformat=$i,mi.relativeTime=function vn(k,j,pe,ke){var nt=this._relativeTime[pe];return Jt(nt)?nt(k,j,pe,ke):nt.replace(/%d/i,k)},mi.pastFuture=function ei(k,j){var pe=this._relativeTime[k>0?"future":"past"];return Jt(pe)?pe(j):pe.replace(/%s/i,j)},mi.set=function tn(k){var j,pe;for(pe in k)w(k,pe)&&(Jt(j=k[pe])?this[pe]=j:this["_"+pe]=j);this._config=k,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},mi.eras=function rd(k,j){var pe,ke,nt,Kt=this._eras||Jo("en")._eras;for(pe=0,ke=Kt.length;pe=0)return Kt[ke]},mi.erasConvertYear=function cc(k,j){var pe=k.since<=k.until?1:-1;return void 0===j?l(k.since).year():l(k.since).year()+(j-k.offset)*pe},mi.erasAbbrRegex=function Ol(k){return w(this,"_erasAbbrRegex")||so.call(this),k?this._erasAbbrRegex:this._erasRegex},mi.erasNameRegex=function aa(k){return w(this,"_erasNameRegex")||so.call(this),k?this._erasNameRegex:this._erasRegex},mi.erasNarrowRegex=function kn(k){return w(this,"_erasNarrowRegex")||so.call(this),k?this._erasNarrowRegex:this._erasRegex},mi.months=function _i(k,j){return k?I(this._months)?this._months[k.month()]:this._months[(this._months.isFormat||co).test(j)?"format":"standalone"][k.month()]:I(this._months)?this._months:this._months.standalone},mi.monthsShort=function bo(k,j){return k?I(this._monthsShort)?this._monthsShort[k.month()]:this._monthsShort[co.test(j)?"format":"standalone"][k.month()]:I(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},mi.monthsParse=function br(k,j,pe){var ke,nt,Kt;if(this._monthsParseExact)return pr.call(this,k,j,pe);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ke=0;ke<12;ke++){if(nt=te([2e3,ke]),pe&&!this._longMonthsParse[ke]&&(this._longMonthsParse[ke]=new RegExp("^"+this.months(nt,"").replace(".","")+"$","i"),this._shortMonthsParse[ke]=new RegExp("^"+this.monthsShort(nt,"").replace(".","")+"$","i")),!pe&&!this._monthsParse[ke]&&(Kt="^"+this.months(nt,"")+"|^"+this.monthsShort(nt,""),this._monthsParse[ke]=new RegExp(Kt.replace(".",""),"i")),pe&&"MMMM"===j&&this._longMonthsParse[ke].test(k))return ke;if(pe&&"MMM"===j&&this._shortMonthsParse[ke].test(k))return ke;if(!pe&&this._monthsParse[ke].test(k))return ke}},mi.monthsRegex=function ho(k){return this._monthsParseExact?(w(this,"_monthsRegex")||to.call(this),k?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=tr),this._monthsStrictRegex&&k?this._monthsStrictRegex:this._monthsRegex)},mi.monthsShortRegex=function uo(k){return this._monthsParseExact?(w(this,"_monthsRegex")||to.call(this),k?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=Ji),this._monthsShortStrictRegex&&k?this._monthsShortStrictRegex:this._monthsShortRegex)},mi.week=function Jr(k){return $s(k,this._week.dow,this._week.doy).week},mi.firstDayOfYear=function oo(){return this._week.doy},mi.firstDayOfWeek=function kr(){return this._week.dow},mi.weekdays=function wr(k,j){var pe=I(this._weekdays)?this._weekdays:this._weekdays[k&&!0!==k&&this._weekdays.isFormat.test(j)?"format":"standalone"];return!0===k?Ks(pe,this._week.dow):k?pe[k.day()]:pe},mi.weekdaysMin=function Vr(k){return!0===k?Ks(this._weekdaysMin,this._week.dow):k?this._weekdaysMin[k.day()]:this._weekdaysMin},mi.weekdaysShort=function al(k){return!0===k?Ks(this._weekdaysShort,this._week.dow):k?this._weekdaysShort[k.day()]:this._weekdaysShort},mi.weekdaysParse=function Js(k,j,pe){var ke,nt,Kt;if(this._weekdaysParseExact)return Es.call(this,k,j,pe);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ke=0;ke<7;ke++){if(nt=te([2e3,1]).day(ke),pe&&!this._fullWeekdaysParse[ke]&&(this._fullWeekdaysParse[ke]=new RegExp("^"+this.weekdays(nt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ke]=new RegExp("^"+this.weekdaysShort(nt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ke]=new RegExp("^"+this.weekdaysMin(nt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ke]||(Kt="^"+this.weekdays(nt,"")+"|^"+this.weekdaysShort(nt,"")+"|^"+this.weekdaysMin(nt,""),this._weekdaysParse[ke]=new RegExp(Kt.replace(".",""),"i")),pe&&"dddd"===j&&this._fullWeekdaysParse[ke].test(k))return ke;if(pe&&"ddd"===j&&this._shortWeekdaysParse[ke].test(k))return ke;if(pe&&"dd"===j&&this._minWeekdaysParse[ke].test(k))return ke;if(!pe&&this._weekdaysParse[ke].test(k))return ke}},mi.weekdaysRegex=function bi(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=Yr),this._weekdaysStrictRegex&&k?this._weekdaysStrictRegex:this._weekdaysRegex)},mi.weekdaysShortRegex=function _r(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=dr),this._weekdaysShortStrictRegex&&k?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},mi.weekdaysMinRegex=function wo(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ha),this._weekdaysMinStrictRegex&&k?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},mi.isPM=function va(k){return"p"===(k+"").toLowerCase().charAt(0)},mi.meridiem=function ba(k,j,pe){return k>11?pe?"pm":"PM":pe?"am":"AM"},xo("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(k){var j=k%10;return k+(1===Se(k%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")}}),l.lang=Zt("moment.lang is deprecated. Use moment.locale instead.",xo),l.langData=Zt("moment.langData is deprecated. Use moment.localeData instead.",Jo);var xr=Math.abs;function Ec(k,j,pe,ke){var nt=Rs(j,pe);return k._milliseconds+=ke*nt._milliseconds,k._days+=ke*nt._days,k._months+=ke*nt._months,k._bubble()}function hc(k){return k<0?Math.floor(k):Math.ceil(k)}function js(k){return 4800*k/146097}function pl(k){return 146097*k/4800}function Xa(k){return function(){return this.as(k)}}var ld=Xa("ms"),Sc=Xa("s"),Cd=Xa("m"),el=Xa("h"),Td=Xa("d"),Yc=Xa("w"),ca=Xa("M"),zd=Xa("Q"),Dd=Xa("y");function Ta(k){return function(){return this.isValid()?this._data[k]:NaN}}var Ed=Ta("milliseconds"),yc=Ta("seconds"),ql=Ta("minutes"),wc=Ta("hours"),kl=Ta("days"),Ql=Ta("months"),Ac=Ta("years");var Eo=Math.round,Xl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cd(k,j,pe,ke,nt){return nt.relativeTime(j||1,!!pe,k,ke)}var Ll=Math.abs;function as(k){return(k>0)-(k<0)||+k}function pc(){if(!this.isValid())return this.localeData().invalidDate();var ke,nt,Kt,xn,Oi,Hr,ws,tl,k=Ll(this._milliseconds)/1e3,j=Ll(this._days),pe=Ll(this._months),Mi=this.asSeconds();return Mi?(ke=ot(k/60),nt=ot(ke/60),k%=60,ke%=60,Kt=ot(pe/12),pe%=12,xn=k?k.toFixed(3).replace(/\.?0+$/,""):"",Oi=Mi<0?"-":"",Hr=as(this._months)!==as(Mi)?"-":"",ws=as(this._days)!==as(Mi)?"-":"",tl=as(this._milliseconds)!==as(Mi)?"-":"",Oi+"P"+(Kt?Hr+Kt+"Y":"")+(pe?Hr+pe+"M":"")+(j?ws+j+"D":"")+(nt||ke||k?"T":"")+(nt?tl+nt+"H":"")+(ke?tl+ke+"M":"")+(k?tl+xn+"S":"")):"P0D"}var ir=qr.prototype;return ir.isValid=function Ms(){return this._isValid},ir.abs=function dc(){var k=this._data;return this._milliseconds=xr(this._milliseconds),this._days=xr(this._days),this._months=xr(this._months),k.milliseconds=xr(k.milliseconds),k.seconds=xr(k.seconds),k.minutes=xr(k.minutes),k.hours=xr(k.hours),k.months=xr(k.months),k.years=xr(k.years),this},ir.add=function sd(k,j){return Ec(this,k,j,1)},ir.subtract=function uc(k,j){return Ec(this,k,j,-1)},ir.as=function ad(k){if(!this.isValid())return NaN;var j,pe,ke=this._milliseconds;if("month"===(k=ct(k))||"quarter"===k||"year"===k)switch(j=this._days+ke/864e5,pe=this._months+js(j),k){case"month":return pe;case"quarter":return pe/3;case"year":return pe/12}else switch(j=this._days+Math.round(pl(this._months)),k){case"week":return j/7+ke/6048e5;case"day":return j+ke/864e5;case"hour":return 24*j+ke/36e5;case"minute":return 1440*j+ke/6e4;case"second":return 86400*j+ke/1e3;case"millisecond":return Math.floor(864e5*j)+ke;default:throw new Error("Unknown unit "+k)}},ir.asMilliseconds=ld,ir.asSeconds=Sc,ir.asMinutes=Cd,ir.asHours=el,ir.asDays=Td,ir.asWeeks=Yc,ir.asMonths=ca,ir.asQuarters=zd,ir.asYears=Dd,ir.valueOf=function Pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Se(this._months/12):NaN},ir._bubble=function Qa(){var nt,Kt,xn,Mi,Oi,k=this._milliseconds,j=this._days,pe=this._months,ke=this._data;return k>=0&&j>=0&&pe>=0||k<=0&&j<=0&&pe<=0||(k+=864e5*hc(pl(pe)+j),j=0,pe=0),ke.milliseconds=k%1e3,nt=ot(k/1e3),ke.seconds=nt%60,Kt=ot(nt/60),ke.minutes=Kt%60,xn=ot(Kt/60),ke.hours=xn%24,j+=ot(xn/24),pe+=Oi=ot(js(j)),j-=hc(pl(Oi)),Mi=ot(pe/12),pe%=12,ke.days=j,ke.months=pe,ke.years=Mi,this},ir.clone=function Lo(){return Rs(this)},ir.get=function Bc(k){return k=ct(k),this.isValid()?this[k+"s"]():NaN},ir.milliseconds=Ed,ir.seconds=yc,ir.minutes=ql,ir.hours=wc,ir.days=kl,ir.weeks=function Hc(){return ot(this.days()/7)},ir.months=Ql,ir.years=Ac,ir.humanize=function da(k,j){if(!this.isValid())return this.localeData().invalidDate();var nt,Kt,pe=!1,ke=Xl;return"object"==typeof k&&(j=k,k=!1),"boolean"==typeof k&&(pe=k),"object"==typeof j&&(ke=Object.assign({},Xl,j),null!=j.s&&null==j.ss&&(ke.ss=j.s-1)),Kt=function fc(k,j,pe,ke){var nt=Rs(k).abs(),Kt=Eo(nt.as("s")),xn=Eo(nt.as("m")),Mi=Eo(nt.as("h")),Oi=Eo(nt.as("d")),Hr=Eo(nt.as("M")),ws=Eo(nt.as("w")),tl=Eo(nt.as("y")),Zs=Kt<=pe.ss&&["s",Kt]||Kt0,Zs[4]=ke,cd.apply(null,Zs)}(this,!pe,ke,nt=this.localeData()),pe&&(Kt=nt.pastFuture(+this,Kt)),nt.postformat(Kt)},ir.toISOString=pc,ir.toString=pc,ir.toJSON=pc,ir.locale=yi,ir.localeData=cl,ir.toIsoString=Zt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pc),ir.lang=oa,$e("X",0,0,"unix"),$e("x",0,0,"valueOf"),He("x",Pe),He("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",function(k,j,pe){pe._d=new Date(1e3*parseFloat(k))}),fe("x",function(k,j,pe){pe._d=new Date(Se(k))}),l.version="2.29.4",function D(k){e=k}(Lr),l.fn=on,l.min=function kc(){return Qo("isBefore",[].slice.call(arguments,0))},l.max=function El(){return Qo("isAfter",[].slice.call(arguments,0))},l.now=function(){return Date.now?Date.now():+new Date},l.utc=te,l.unix=function ji(k){return Lr(1e3*k)},l.months=function Ja(k,j){return fl(k,j,"months")},l.isDate=re,l.locale=xo,l.invalid=mt,l.duration=Rs,l.isMoment=xt,l.weekdays=function Md(k,j,pe){return Rl(k,j,pe,"weekdays")},l.parseZone=function Gr(){return Lr.apply(null,arguments).parseZone()},l.localeData=Jo,l.isDuration=Bs,l.monthsShort=function xd(k,j){return fl(k,j,"monthsShort")},l.weekdaysMin=function qa(k,j,pe){return Rl(k,j,pe,"weekdaysMin")},l.defineLocale=_s,l.updateLocale=function Ai(k,j){if(null!=j){var pe,ke,nt=Qs;null!=wi[k]&&null!=wi[k].parentLocale?wi[k].set(wn(wi[k]._config,j)):(null!=(ke=jr(k))&&(nt=ke._config),j=wn(nt,j),null==ke&&(j.abbr=k),(pe=new Ln(j)).parentLocale=wi[k],wi[k]=pe),xo(k)}else null!=wi[k]&&(null!=wi[k].parentLocale?(wi[k]=wi[k].parentLocale,k===xo()&&xo(k)):null!=wi[k]&&delete wi[k]);return wi[k]},l.locales=function Io(){return Yn(wi)},l.weekdaysShort=function Do(k,j,pe){return Rl(k,j,pe,"weekdaysShort")},l.normalizeUnits=ct,l.relativeTimeRounding=function xc(k){return void 0===k?Eo:"function"==typeof k&&(Eo=k,!0)},l.relativeTimeThreshold=function Po(k,j){return void 0!==Xl[k]&&(void 0===j?Xl[k]:(Xl[k]=j,"s"===k&&(Xl.ss=j-1),!0))},l.calendarFormat=function kt(k,j){var pe=k.diff(j,"days",!0);return pe<-6?"sameElse":pe<-1?"lastWeek":pe<0?"lastDay":pe<1?"sameDay":pe<2?"nextDay":pe<7?"nextWeek":"sameElse"},l.prototype=on,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l}()},5619:(ft,Ie,C)=>{"use strict";C.d(Ie,{X:()=>l});var e=C(8645);class l extends e.x{constructor(I){super(),this._value=I}get value(){return this.getValue()}_subscribe(I){const S=super._subscribe(I);return!S.closed&&I.next(this._value),S}getValue(){const{hasError:I,thrownError:S,_value:w}=this;if(I)throw S;return this._throwIfClosed(),w}next(I){super.next(this._value=I)}}},5592:(ft,Ie,C)=>{"use strict";C.d(Ie,{y:()=>Z});var e=C(305),l=C(7394),D=C(4850),I=C(8407),S=C(2653),w=C(4674),n=C(1441);let Z=(()=>{class se{constructor(oe){oe&&(this._subscribe=oe)}lift(oe){const ce=new se;return ce.source=this,ce.operator=oe,ce}subscribe(oe,ce,_e){const Re=function ue(se){return se&&se instanceof e.Lv||function re(se){return se&&(0,w.m)(se.next)&&(0,w.m)(se.error)&&(0,w.m)(se.complete)}(se)&&(0,l.Nn)(se)}(oe)?oe:new e.Hp(oe,ce,_e);return(0,n.x)(()=>{const{operator:mt,source:Ge}=this;Re.add(mt?mt.call(Re,Ge):Ge?this._subscribe(Re):this._trySubscribe(Re))}),Re}_trySubscribe(oe){try{return this._subscribe(oe)}catch(ce){oe.error(ce)}}forEach(oe,ce){return new(ce=ee(ce))((_e,Re)=>{const mt=new e.Hp({next:Ge=>{try{oe(Ge)}catch(Lt){Re(Lt),mt.unsubscribe()}},error:Re,complete:_e});this.subscribe(mt)})}_subscribe(oe){var ce;return null===(ce=this.source)||void 0===ce?void 0:ce.subscribe(oe)}[D.L](){return this}pipe(...oe){return(0,I.U)(oe)(this)}toPromise(oe){return new(oe=ee(oe))((ce,_e)=>{let Re;this.subscribe(mt=>Re=mt,mt=>_e(mt),()=>ce(Re))})}}return se.create=te=>new se(te),se})();function ee(se){var te;return null!==(te=se??S.config.Promise)&&void 0!==te?te:Promise}},8645:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>n});var e=C(5592),l=C(7394);const I=(0,C(2306).d)(ee=>function(){ee(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=C(9039),w=C(1441);let n=(()=>{class ee extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(ue){const se=new Z(this,this);return se.operator=ue,se}_throwIfClosed(){if(this.closed)throw new I}next(ue){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const se of this.currentObservers)se.next(ue)}})}error(ue){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=ue;const{observers:se}=this;for(;se.length;)se.shift().error(ue)}})}complete(){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:ue}=this;for(;ue.length;)ue.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var ue;return(null===(ue=this.observers)||void 0===ue?void 0:ue.length)>0}_trySubscribe(ue){return this._throwIfClosed(),super._trySubscribe(ue)}_subscribe(ue){return this._throwIfClosed(),this._checkFinalizedStatuses(ue),this._innerSubscribe(ue)}_innerSubscribe(ue){const{hasError:se,isStopped:te,observers:oe}=this;return se||te?l.Lc:(this.currentObservers=null,oe.push(ue),new l.w0(()=>{this.currentObservers=null,(0,S.P)(oe,ue)}))}_checkFinalizedStatuses(ue){const{hasError:se,thrownError:te,isStopped:oe}=this;se?ue.error(te):oe&&ue.complete()}asObservable(){const ue=new e.y;return ue.source=this,ue}}return ee.create=(re,ue)=>new Z(re,ue),ee})();class Z extends n{constructor(re,ue){super(),this.destination=re,this.source=ue}next(re){var ue,se;null===(se=null===(ue=this.destination)||void 0===ue?void 0:ue.next)||void 0===se||se.call(ue,re)}error(re){var ue,se;null===(se=null===(ue=this.destination)||void 0===ue?void 0:ue.error)||void 0===se||se.call(ue,re)}complete(){var re,ue;null===(ue=null===(re=this.destination)||void 0===re?void 0:re.complete)||void 0===ue||ue.call(re)}_subscribe(re){var ue,se;return null!==(se=null===(ue=this.source)||void 0===ue?void 0:ue.subscribe(re))&&void 0!==se?se:l.Lc}}},305:(ft,Ie,C)=>{"use strict";C.d(Ie,{Hp:()=>_e,Lv:()=>se});var e=C(4674),l=C(7394),D=C(2653),I=C(3894),S=C(2420);const w=ee("C",void 0,void 0);function ee(je,Tt,xt){return{kind:je,value:Tt,error:xt}}var re=C(7599),ue=C(1441);class se extends l.w0{constructor(Tt){super(),this.isStopped=!1,Tt?(this.destination=Tt,(0,l.Nn)(Tt)&&Tt.add(this)):this.destination=Lt}static create(Tt,xt,St){return new _e(Tt,xt,St)}next(Tt){this.isStopped?Ge(function Z(je){return ee("N",je,void 0)}(Tt),this):this._next(Tt)}error(Tt){this.isStopped?Ge(function n(je){return ee("E",void 0,je)}(Tt),this):(this.isStopped=!0,this._error(Tt))}complete(){this.isStopped?Ge(w,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Tt){this.destination.next(Tt)}_error(Tt){try{this.destination.error(Tt)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const te=Function.prototype.bind;function oe(je,Tt){return te.call(je,Tt)}class ce{constructor(Tt){this.partialObserver=Tt}next(Tt){const{partialObserver:xt}=this;if(xt.next)try{xt.next(Tt)}catch(St){Re(St)}}error(Tt){const{partialObserver:xt}=this;if(xt.error)try{xt.error(Tt)}catch(St){Re(St)}else Re(Tt)}complete(){const{partialObserver:Tt}=this;if(Tt.complete)try{Tt.complete()}catch(xt){Re(xt)}}}class _e extends se{constructor(Tt,xt,St){let Zt;if(super(),(0,e.m)(Tt)||!Tt)Zt={next:Tt??void 0,error:xt??void 0,complete:St??void 0};else{let yt;this&&D.config.useDeprecatedNextContext?(yt=Object.create(Tt),yt.unsubscribe=()=>this.unsubscribe(),Zt={next:Tt.next&&oe(Tt.next,yt),error:Tt.error&&oe(Tt.error,yt),complete:Tt.complete&&oe(Tt.complete,yt)}):Zt=Tt}this.destination=new ce(Zt)}}function Re(je){D.config.useDeprecatedSynchronousErrorHandling?(0,ue.O)(je):(0,I.h)(je)}function Ge(je,Tt){const{onStoppedNotification:xt}=D.config;xt&&re.z.setTimeout(()=>xt(je,Tt))}const Lt={closed:!0,next:S.Z,error:function mt(je){throw je},complete:S.Z}},7394:(ft,Ie,C)=>{"use strict";C.d(Ie,{Lc:()=>w,w0:()=>S,Nn:()=>n});var e=C(4674);const D=(0,C(2306).d)(ee=>function(ue){ee(this),this.message=ue?`${ue.length} errors occurred during unsubscription:\n${ue.map((se,te)=>`${te+1}) ${se.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ue});var I=C(9039);class S{constructor(re){this.initialTeardown=re,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let re;if(!this.closed){this.closed=!0;const{_parentage:ue}=this;if(ue)if(this._parentage=null,Array.isArray(ue))for(const oe of ue)oe.remove(this);else ue.remove(this);const{initialTeardown:se}=this;if((0,e.m)(se))try{se()}catch(oe){re=oe instanceof D?oe.errors:[oe]}const{_finalizers:te}=this;if(te){this._finalizers=null;for(const oe of te)try{Z(oe)}catch(ce){re=re??[],ce instanceof D?re=[...re,...ce.errors]:re.push(ce)}}if(re)throw new D(re)}}add(re){var ue;if(re&&re!==this)if(this.closed)Z(re);else{if(re instanceof S){if(re.closed||re._hasParent(this))return;re._addParent(this)}(this._finalizers=null!==(ue=this._finalizers)&&void 0!==ue?ue:[]).push(re)}}_hasParent(re){const{_parentage:ue}=this;return ue===re||Array.isArray(ue)&&ue.includes(re)}_addParent(re){const{_parentage:ue}=this;this._parentage=Array.isArray(ue)?(ue.push(re),ue):ue?[ue,re]:re}_removeParent(re){const{_parentage:ue}=this;ue===re?this._parentage=null:Array.isArray(ue)&&(0,I.P)(ue,re)}remove(re){const{_finalizers:ue}=this;ue&&(0,I.P)(ue,re),re instanceof S&&re._removeParent(this)}}S.EMPTY=(()=>{const ee=new S;return ee.closed=!0,ee})();const w=S.EMPTY;function n(ee){return ee instanceof S||ee&&"closed"in ee&&(0,e.m)(ee.remove)&&(0,e.m)(ee.add)&&(0,e.m)(ee.unsubscribe)}function Z(ee){(0,e.m)(ee)?ee():ee.unsubscribe()}},2653:(ft,Ie,C)=>{"use strict";C.d(Ie,{config:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3168:(ft,Ie,C)=>{"use strict";C.d(Ie,{c:()=>w});var e=C(5592),l=C(7394),D=C(6196),I=C(8251),S=C(9360);class w extends e.y{constructor(Z,ee){super(),this.source=Z,this.subjectFactory=ee,this._subject=null,this._refCount=0,this._connection=null,(0,S.A)(Z)&&(this.lift=Z.lift)}_subscribe(Z){return this.getSubject().subscribe(Z)}getSubject(){const Z=this._subject;return(!Z||Z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Z}=this;this._subject=this._connection=null,Z?.unsubscribe()}connect(){let Z=this._connection;if(!Z){Z=this._connection=new l.w0;const ee=this.getSubject();Z.add(this.source.subscribe((0,I.x)(ee,void 0,()=>{this._teardown(),ee.complete()},re=>{this._teardown(),ee.error(re)},()=>this._teardown()))),Z.closed&&(this._connection=null,Z=l.w0.EMPTY)}return Z}refCount(){return(0,D.x)()(this)}}},2572:(ft,Ie,C)=>{"use strict";C.d(Ie,{a:()=>re});var e=C(5592),l=C(7453),D=C(9666),I=C(2737),S=C(7400),w=C(9940),n=C(2714),Z=C(8251),ee=C(7103);function re(...te){const oe=(0,w.yG)(te),ce=(0,w.jO)(te),{args:_e,keys:Re}=(0,l.D)(te);if(0===_e.length)return(0,D.D)([],oe);const mt=new e.y(function ue(te,oe,ce=I.y){return _e=>{se(oe,()=>{const{length:Re}=te,mt=new Array(Re);let Ge=Re,Lt=Re;for(let je=0;je{const Tt=(0,D.D)(te[je],oe);let xt=!1;Tt.subscribe((0,Z.x)(_e,St=>{mt[je]=St,xt||(xt=!0,Lt--),Lt||_e.next(ce(mt.slice()))},()=>{--Ge||_e.complete()}))},_e)},_e)}}(_e,oe,Re?Ge=>(0,n.n)(Re,Ge):I.y));return ce?mt.pipe((0,S.Z)(ce)):mt}function se(te,oe,ce){te?(0,ee.f)(ce,te,oe):oe()}},5211:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>S});var e=C(7537),D=C(9940),I=C(9666);function S(...w){return function l(){return(0,e.J)(1)}()((0,I.D)(w,(0,D.yG)(w)))}},4911:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>D});var e=C(5592),l=C(4829);function D(I){return new e.y(S=>{(0,l.Xf)(I()).subscribe(S)})}},6232:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>l});const l=new(C(5592).y)(S=>S.complete())},9315:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>Z});var e=C(5592),l=C(7453),D=C(4829),I=C(9940),S=C(8251),w=C(7400),n=C(2714);function Z(...ee){const re=(0,I.jO)(ee),{args:ue,keys:se}=(0,l.D)(ee),te=new e.y(oe=>{const{length:ce}=ue;if(!ce)return void oe.complete();const _e=new Array(ce);let Re=ce,mt=ce;for(let Ge=0;Ge{Lt||(Lt=!0,mt--),_e[Ge]=je},()=>Re--,void 0,()=>{(!Re||!Lt)&&(mt||oe.next(se?(0,n.n)(se,_e):_e),oe.complete())}))}});return re?te.pipe((0,w.Z)(re)):te}},9666:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>xt});var e=C(4829),l=C(3093),D=C(9360);function I(St,Zt=0){return(0,D.e)((yt,un)=>{un.add(St.schedule(()=>yt.subscribe(un),Zt))})}var n=C(5592),ee=C(4971),re=C(4674),ue=C(7103);function te(St,Zt){if(!St)throw new Error("Iterable cannot be null");return new n.y(yt=>{(0,ue.f)(yt,Zt,()=>{const un=St[Symbol.asyncIterator]();(0,ue.f)(yt,Zt,()=>{un.next().then(Jt=>{Jt.done?yt.complete():yt.next(Jt.value)})},0,!0)})})}var oe=C(8382),ce=C(4026),_e=C(4266),Re=C(3664),mt=C(5726),Ge=C(9853),Lt=C(541);function xt(St,Zt){return Zt?function Tt(St,Zt){if(null!=St){if((0,oe.c)(St))return function S(St,Zt){return(0,e.Xf)(St).pipe(I(Zt),(0,l.Q)(Zt))}(St,Zt);if((0,_e.z)(St))return function Z(St,Zt){return new n.y(yt=>{let un=0;return Zt.schedule(function(){un===St.length?yt.complete():(yt.next(St[un++]),yt.closed||this.schedule())})})}(St,Zt);if((0,ce.t)(St))return function w(St,Zt){return(0,e.Xf)(St).pipe(I(Zt),(0,l.Q)(Zt))}(St,Zt);if((0,mt.D)(St))return te(St,Zt);if((0,Re.T)(St))return function se(St,Zt){return new n.y(yt=>{let un;return(0,ue.f)(yt,Zt,()=>{un=St[ee.h](),(0,ue.f)(yt,Zt,()=>{let Jt,tn;try{({value:Jt,done:tn}=un.next())}catch(wn){return void yt.error(wn)}tn?yt.complete():yt.next(Jt)},0,!0)}),()=>(0,re.m)(un?.return)&&un.return()})}(St,Zt);if((0,Lt.L)(St))return function je(St,Zt){return te((0,Lt.Q)(St),Zt)}(St,Zt)}throw(0,Ge.z)(St)}(St,Zt):(0,e.Xf)(St)}},2438:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>re});var e=C(4829),l=C(5592),D=C(1631),I=C(4266),S=C(4674),w=C(7400);const n=["addListener","removeListener"],Z=["addEventListener","removeEventListener"],ee=["on","off"];function re(ce,_e,Re,mt){if((0,S.m)(Re)&&(mt=Re,Re=void 0),mt)return re(ce,_e,Re).pipe((0,w.Z)(mt));const[Ge,Lt]=function oe(ce){return(0,S.m)(ce.addEventListener)&&(0,S.m)(ce.removeEventListener)}(ce)?Z.map(je=>Tt=>ce[je](_e,Tt,Re)):function se(ce){return(0,S.m)(ce.addListener)&&(0,S.m)(ce.removeListener)}(ce)?n.map(ue(ce,_e)):function te(ce){return(0,S.m)(ce.on)&&(0,S.m)(ce.off)}(ce)?ee.map(ue(ce,_e)):[];if(!Ge&&(0,I.z)(ce))return(0,D.z)(je=>re(je,_e,Re))((0,e.Xf)(ce));if(!Ge)throw new TypeError("Invalid event target");return new l.y(je=>{const Tt=(...xt)=>je.next(1Lt(Tt)})}function ue(ce,_e){return Re=>mt=>ce[Re](_e,mt)}},4829:(ft,Ie,C)=>{"use strict";C.d(Ie,{Xf:()=>te});var e=C(7582),l=C(4266),D=C(4026),I=C(5592),S=C(8382),w=C(5726),n=C(9853),Z=C(3664),ee=C(541),re=C(4674),ue=C(3894),se=C(4850);function te(je){if(je instanceof I.y)return je;if(null!=je){if((0,S.c)(je))return function oe(je){return new I.y(Tt=>{const xt=je[se.L]();if((0,re.m)(xt.subscribe))return xt.subscribe(Tt);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(je);if((0,l.z)(je))return function ce(je){return new I.y(Tt=>{for(let xt=0;xt{je.then(xt=>{Tt.closed||(Tt.next(xt),Tt.complete())},xt=>Tt.error(xt)).then(null,ue.h)})}(je);if((0,w.D)(je))return mt(je);if((0,Z.T)(je))return function Re(je){return new I.y(Tt=>{for(const xt of je)if(Tt.next(xt),Tt.closed)return;Tt.complete()})}(je);if((0,ee.L)(je))return function Ge(je){return mt((0,ee.Q)(je))}(je)}throw(0,n.z)(je)}function mt(je){return new I.y(Tt=>{(function Lt(je,Tt){var xt,St,Zt,yt;return(0,e.mG)(this,void 0,void 0,function*(){try{for(xt=(0,e.KL)(je);!(St=yield xt.next()).done;)if(Tt.next(St.value),Tt.closed)return}catch(un){Zt={error:un}}finally{try{St&&!St.done&&(yt=xt.return)&&(yield yt.call(xt))}finally{if(Zt)throw Zt.error}}Tt.complete()})})(je,Tt).catch(xt=>Tt.error(xt))})}},3019:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>w});var e=C(7537),l=C(4829),D=C(6232),I=C(9940),S=C(9666);function w(...n){const Z=(0,I.yG)(n),ee=(0,I._6)(n,1/0),re=n;return re.length?1===re.length?(0,l.Xf)(re[0]):(0,e.J)(ee)((0,S.D)(re,Z)):D.E}},2096:(ft,Ie,C)=>{"use strict";C.d(Ie,{of:()=>D});var e=C(9940),l=C(9666);function D(...I){const S=(0,e.yG)(I);return(0,l.D)(I,S)}},8504:(ft,Ie,C)=>{"use strict";C.d(Ie,{_:()=>D});var e=C(5592),l=C(4674);function D(I,S){const w=(0,l.m)(I)?I:()=>I,n=Z=>Z.error(w());return new e.y(S?Z=>S.schedule(n,0,Z):n)}},4825:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>S});var e=C(5592),l=C(6321),D=C(671);function S(w=0,n,Z=l.P){let ee=-1;return null!=n&&((0,D.K)(n)?Z=n:ee=n),new e.y(re=>{let ue=function I(w){return w instanceof Date&&!isNaN(w)}(w)?+w-Z.now():w;ue<0&&(ue=0);let se=0;return Z.schedule(function(){re.closed||(re.next(se++),0<=ee?this.schedule(void 0,ee):re.complete())},ue)})}},8251:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>l});var e=C(305);function l(I,S,w,n,Z){return new D(I,S,w,n,Z)}class D extends e.Lv{constructor(S,w,n,Z,ee,re){super(S),this.onFinalize=ee,this.shouldUnsubscribe=re,this._next=w?function(ue){try{w(ue)}catch(se){S.error(se)}}:super._next,this._error=Z?function(ue){try{Z(ue)}catch(se){S.error(se)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(ue){S.error(ue)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:w}=this;super.unsubscribe(),!w&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},9028:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>n});var e=C(6321),l=C(9360),D=C(4829),I=C(8251),w=C(4825);function n(Z,ee=e.z){return function S(Z){return(0,l.e)((ee,re)=>{let ue=!1,se=null,te=null,oe=!1;const ce=()=>{if(te?.unsubscribe(),te=null,ue){ue=!1;const Re=se;se=null,re.next(Re)}oe&&re.complete()},_e=()=>{te=null,oe&&re.complete()};ee.subscribe((0,I.x)(re,Re=>{ue=!0,se=Re,te||(0,D.Xf)(Z(Re)).subscribe(te=(0,I.x)(re,ce,_e))},()=>{oe=!0,(!ue||!te||te.closed)&&re.complete()}))})}(()=>(0,w.H)(Z,ee))}},6306:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>I});var e=C(4829),l=C(8251),D=C(9360);function I(S){return(0,D.e)((w,n)=>{let re,Z=null,ee=!1;Z=w.subscribe((0,l.x)(n,void 0,void 0,ue=>{re=(0,e.Xf)(S(ue,I(S)(w))),Z?(Z.unsubscribe(),Z=null,re.subscribe(n)):ee=!0})),ee&&(Z.unsubscribe(),Z=null,re.subscribe(n))})}},6328:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>D});var e=C(1631),l=C(4674);function D(I,S){return(0,l.m)(S)?(0,e.z)(I,S,1):(0,e.z)(I,1)}},3620:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>I});var e=C(6321),l=C(9360),D=C(8251);function I(S,w=e.z){return(0,l.e)((n,Z)=>{let ee=null,re=null,ue=null;const se=()=>{if(ee){ee.unsubscribe(),ee=null;const oe=re;re=null,Z.next(oe)}};function te(){const oe=ue+S,ce=w.now();if(ce{re=oe,ue=w.now(),ee||(ee=w.schedule(te,S),Z.add(ee))},()=>{se(),Z.complete()},void 0,()=>{re=ee=null}))})}},3572:(ft,Ie,C)=>{"use strict";C.d(Ie,{d:()=>D});var e=C(9360),l=C(8251);function D(I){return(0,e.e)((S,w)=>{let n=!1;S.subscribe((0,l.x)(w,Z=>{n=!0,w.next(Z)},()=>{n||w.next(I),w.complete()}))})}},5177:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>te});var e=C(6321),l=C(5211),D=C(8180),I=C(9360),S=C(8251),w=C(2420),Z=C(975),ee=C(1631),re=C(4829);function ue(oe,ce){return ce?_e=>(0,l.z)(ce.pipe((0,D.q)(1),function n(){return(0,I.e)((oe,ce)=>{oe.subscribe((0,S.x)(ce,w.Z))})}()),_e.pipe(ue(oe))):(0,ee.z)((_e,Re)=>(0,re.Xf)(oe(_e,Re)).pipe((0,D.q)(1),(0,Z.h)(_e)))}var se=C(4825);function te(oe,ce=e.z){const _e=(0,se.H)(oe,ce);return ue(()=>_e)}},3997:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>I});var e=C(2737),l=C(9360),D=C(8251);function I(w,n=e.y){return w=w??S,(0,l.e)((Z,ee)=>{let re,ue=!0;Z.subscribe((0,D.x)(ee,se=>{const te=n(se);(ue||!w(re,te))&&(ue=!1,re=te,ee.next(se))}))})}function S(w,n){return w===n}},2181:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>D});var e=C(9360),l=C(8251);function D(I,S){return(0,e.e)((w,n)=>{let Z=0;w.subscribe((0,l.x)(n,ee=>I.call(S,ee,Z++)&&n.next(ee)))})}},4716:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>l});var e=C(9360);function l(D){return(0,e.e)((I,S)=>{try{I.subscribe(S)}finally{S.add(D)}})}},1374:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>n});var e=C(6973),l=C(2181),D=C(8180),I=C(3572),S=C(3026),w=C(2737);function n(Z,ee){const re=arguments.length>=2;return ue=>ue.pipe(Z?(0,l.h)((se,te)=>Z(se,te,ue)):w.y,(0,D.q)(1),re?(0,I.d)(ee):(0,S.T)(()=>new e.K))}},7398:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>D});var e=C(9360),l=C(8251);function D(I,S){return(0,e.e)((w,n)=>{let Z=0;w.subscribe((0,l.x)(n,ee=>{n.next(I.call(S,ee,Z++))}))})}},975:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>l});var e=C(7398);function l(D){return(0,e.U)(()=>D)}},7537:(ft,Ie,C)=>{"use strict";C.d(Ie,{J:()=>D});var e=C(1631),l=C(2737);function D(I=1/0){return(0,e.z)(l.y,I)}},1631:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>Z});var e=C(7398),l=C(4829),D=C(9360),I=C(7103),S=C(8251),n=C(4674);function Z(ee,re,ue=1/0){return(0,n.m)(re)?Z((se,te)=>(0,e.U)((oe,ce)=>re(se,oe,te,ce))((0,l.Xf)(ee(se,te))),ue):("number"==typeof re&&(ue=re),(0,D.e)((se,te)=>function w(ee,re,ue,se,te,oe,ce,_e){const Re=[];let mt=0,Ge=0,Lt=!1;const je=()=>{Lt&&!Re.length&&!mt&&re.complete()},Tt=St=>mt{oe&&re.next(St),mt++;let Zt=!1;(0,l.Xf)(ue(St,Ge++)).subscribe((0,S.x)(re,yt=>{te?.(yt),oe?Tt(yt):re.next(yt)},()=>{Zt=!0},void 0,()=>{if(Zt)try{for(mt--;Re.length&&mtxt(yt)):xt(yt)}je()}catch(yt){re.error(yt)}}))};return ee.subscribe((0,S.x)(re,Tt,()=>{Lt=!0,je()})),()=>{_e?.()}}(se,te,ee,ue)))}},3093:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q:()=>I});var e=C(7103),l=C(9360),D=C(8251);function I(S,w=0){return(0,l.e)((n,Z)=>{n.subscribe((0,D.x)(Z,ee=>(0,e.f)(Z,S,()=>Z.next(ee),w),()=>(0,e.f)(Z,S,()=>Z.complete(),w),ee=>(0,e.f)(Z,S,()=>Z.error(ee),w)))})}},6196:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>D});var e=C(9360),l=C(8251);function D(){return(0,e.e)((I,S)=>{let w=null;I._refCount++;const n=(0,l.x)(S,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(w=null);const Z=I._connection,ee=w;w=null,Z&&(!ee||Z===ee)&&Z.unsubscribe(),S.unsubscribe()});I.subscribe(n),n.closed||(w=I.connect())})}},6424:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>D});var e=C(9360),l=C(9732);function D(I,S){return(0,e.e)((0,l.U)(I,S,arguments.length>=2,!0))}},9732:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>l});var e=C(8251);function l(D,I,S,w,n){return(Z,ee)=>{let re=S,ue=I,se=0;Z.subscribe((0,e.x)(ee,te=>{const oe=se++;ue=re?D(ue,te,oe):(re=!0,te),w&&ee.next(ue)},n&&(()=>{re&&ee.next(ue),ee.complete()})))}}},3020:(ft,Ie,C)=>{"use strict";C.d(Ie,{B:()=>S});var e=C(4829),l=C(8645),D=C(305),I=C(9360);function S(n={}){const{connector:Z=(()=>new l.x),resetOnError:ee=!0,resetOnComplete:re=!0,resetOnRefCountZero:ue=!0}=n;return se=>{let te,oe,ce,_e=0,Re=!1,mt=!1;const Ge=()=>{oe?.unsubscribe(),oe=void 0},Lt=()=>{Ge(),te=ce=void 0,Re=mt=!1},je=()=>{const Tt=te;Lt(),Tt?.unsubscribe()};return(0,I.e)((Tt,xt)=>{_e++,!mt&&!Re&&Ge();const St=ce=ce??Z();xt.add(()=>{_e--,0===_e&&!mt&&!Re&&(oe=w(je,ue))}),St.subscribe(xt),!te&&_e>0&&(te=new D.Hp({next:Zt=>St.next(Zt),error:Zt=>{mt=!0,Ge(),oe=w(Lt,ee,Zt),St.error(Zt)},complete:()=>{Re=!0,Ge(),oe=w(Lt,re),St.complete()}}),(0,e.Xf)(Tt).subscribe(te))})(se)}}function w(n,Z,...ee){if(!0===Z)return void n();if(!1===Z)return;const re=new D.Hp({next:()=>{re.unsubscribe(),n()}});return(0,e.Xf)(Z(...ee)).subscribe(re)}},836:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>l});var e=C(2181);function l(D){return(0,e.h)((I,S)=>D<=S)}},7921:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>I});var e=C(5211),l=C(9940),D=C(9360);function I(...S){const w=(0,l.yG)(S);return(0,D.e)((n,Z)=>{(w?(0,e.z)(S,n,w):(0,e.z)(S,n)).subscribe(Z)})}},4664:(ft,Ie,C)=>{"use strict";C.d(Ie,{w:()=>I});var e=C(4829),l=C(9360),D=C(8251);function I(S,w){return(0,l.e)((n,Z)=>{let ee=null,re=0,ue=!1;const se=()=>ue&&!ee&&Z.complete();n.subscribe((0,D.x)(Z,te=>{ee?.unsubscribe();let oe=0;const ce=re++;(0,e.Xf)(S(te,ce)).subscribe(ee=(0,D.x)(Z,_e=>Z.next(w?w(te,_e,ce,oe++):_e),()=>{ee=null,se()}))},()=>{ue=!0,se()}))})}},8180:(ft,Ie,C)=>{"use strict";C.d(Ie,{q:()=>I});var e=C(6232),l=C(9360),D=C(8251);function I(S){return S<=0?()=>e.E:(0,l.e)((w,n)=>{let Z=0;w.subscribe((0,D.x)(n,ee=>{++Z<=S&&(n.next(ee),S<=Z&&n.complete())}))})}},9773:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>S});var e=C(9360),l=C(8251),D=C(4829),I=C(2420);function S(w){return(0,e.e)((n,Z)=>{(0,D.Xf)(w).subscribe((0,l.x)(Z,()=>Z.complete(),I.Z)),!Z.closed&&n.subscribe(Z)})}},9397:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>S});var e=C(4674),l=C(9360),D=C(8251),I=C(2737);function S(w,n,Z){const ee=(0,e.m)(w)||n||Z?{next:w,error:n,complete:Z}:w;return ee?(0,l.e)((re,ue)=>{var se;null===(se=ee.subscribe)||void 0===se||se.call(ee);let te=!0;re.subscribe((0,D.x)(ue,oe=>{var ce;null===(ce=ee.next)||void 0===ce||ce.call(ee,oe),ue.next(oe)},()=>{var oe;te=!1,null===(oe=ee.complete)||void 0===oe||oe.call(ee),ue.complete()},oe=>{var ce;te=!1,null===(ce=ee.error)||void 0===ce||ce.call(ee,oe),ue.error(oe)},()=>{var oe,ce;te&&(null===(oe=ee.unsubscribe)||void 0===oe||oe.call(ee)),null===(ce=ee.finalize)||void 0===ce||ce.call(ee)}))}):I.y}},3026:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>I});var e=C(6973),l=C(9360),D=C(8251);function I(w=S){return(0,l.e)((n,Z)=>{let ee=!1;n.subscribe((0,D.x)(Z,re=>{ee=!0,Z.next(re)},()=>ee?Z.complete():Z.error(w())))})}function S(){return new e.K}},1954:(ft,Ie,C)=>{"use strict";C.d(Ie,{o:()=>S});var e=C(7394);class l extends e.w0{constructor(n,Z){super()}schedule(n,Z=0){return this}}const D={setInterval(w,n,...Z){const{delegate:ee}=D;return ee?.setInterval?ee.setInterval(w,n,...Z):setInterval(w,n,...Z)},clearInterval(w){const{delegate:n}=D;return(n?.clearInterval||clearInterval)(w)},delegate:void 0};var I=C(9039);class S extends l{constructor(n,Z){super(n,Z),this.scheduler=n,this.work=Z,this.pending=!1}schedule(n,Z=0){var ee;if(this.closed)return this;this.state=n;const re=this.id,ue=this.scheduler;return null!=re&&(this.id=this.recycleAsyncId(ue,re,Z)),this.pending=!0,this.delay=Z,this.id=null!==(ee=this.id)&&void 0!==ee?ee:this.requestAsyncId(ue,this.id,Z),this}requestAsyncId(n,Z,ee=0){return D.setInterval(n.flush.bind(n,this),ee)}recycleAsyncId(n,Z,ee=0){if(null!=ee&&this.delay===ee&&!1===this.pending)return Z;null!=Z&&D.clearInterval(Z)}execute(n,Z){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ee=this._execute(n,Z);if(ee)return ee;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,Z){let re,ee=!1;try{this.work(n)}catch(ue){ee=!0,re=ue||new Error("Scheduled action threw falsy error")}if(ee)return this.unsubscribe(),re}unsubscribe(){if(!this.closed){const{id:n,scheduler:Z}=this,{actions:ee}=Z;this.work=this.state=this.scheduler=null,this.pending=!1,(0,I.P)(ee,this),null!=n&&(this.id=this.recycleAsyncId(Z,n,null)),this.delay=null,super.unsubscribe()}}}},2631:(ft,Ie,C)=>{"use strict";C.d(Ie,{v:()=>D});var e=C(4552);class l{constructor(S,w=l.now){this.schedulerActionCtor=S,this.now=w}schedule(S,w=0,n){return new this.schedulerActionCtor(this,S).schedule(n,w)}}l.now=e.l.now;class D extends l{constructor(S,w=l.now){super(S,w),this.actions=[],this._active=!1}flush(S){const{actions:w}=this;if(this._active)return void w.push(S);let n;this._active=!0;do{if(n=S.execute(S.state,S.delay))break}while(S=w.shift());if(this._active=!1,n){for(;S=w.shift();)S.unsubscribe();throw n}}}},927:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>n});var e=C(1954),l=C(7394);const D={schedule(ee){let re=requestAnimationFrame,ue=cancelAnimationFrame;const{delegate:se}=D;se&&(re=se.requestAnimationFrame,ue=se.cancelAnimationFrame);const te=re(oe=>{ue=void 0,ee(oe)});return new l.w0(()=>ue?.(te))},requestAnimationFrame(...ee){const{delegate:re}=D;return(re?.requestAnimationFrame||requestAnimationFrame)(...ee)},cancelAnimationFrame(...ee){const{delegate:re}=D;return(re?.cancelAnimationFrame||cancelAnimationFrame)(...ee)},delegate:void 0};var S=C(2631);const n=new class w extends S.v{flush(re){this._active=!0;const ue=this._scheduled;this._scheduled=void 0;const{actions:se}=this;let te;re=re||se.shift();do{if(te=re.execute(re.state,re.delay))break}while((re=se[0])&&re.id===ue&&se.shift());if(this._active=!1,te){for(;(re=se[0])&&re.id===ue&&se.shift();)re.unsubscribe();throw te}}}(class I extends e.o{constructor(re,ue){super(re,ue),this.scheduler=re,this.work=ue}requestAsyncId(re,ue,se=0){return null!==se&&se>0?super.requestAsyncId(re,ue,se):(re.actions.push(this),re._scheduled||(re._scheduled=D.requestAnimationFrame(()=>re.flush(void 0))))}recycleAsyncId(re,ue,se=0){var te;if(null!=se?se>0:this.delay>0)return super.recycleAsyncId(re,ue,se);const{actions:oe}=re;null!=ue&&(null===(te=oe[oe.length-1])||void 0===te?void 0:te.id)!==ue&&(D.cancelAnimationFrame(ue),re._scheduled=void 0)}})},6410:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>oe});var e=C(1954);let D,l=1;const I={};function S(_e){return _e in I&&(delete I[_e],!0)}const w={setImmediate(_e){const Re=l++;return I[Re]=!0,D||(D=Promise.resolve()),D.then(()=>S(Re)&&_e()),Re},clearImmediate(_e){S(_e)}},{setImmediate:Z,clearImmediate:ee}=w,re={setImmediate(..._e){const{delegate:Re}=re;return(Re?.setImmediate||Z)(..._e)},clearImmediate(_e){const{delegate:Re}=re;return(Re?.clearImmediate||ee)(_e)},delegate:void 0};var se=C(2631);const oe=new class te extends se.v{flush(Re){this._active=!0;const mt=this._scheduled;this._scheduled=void 0;const{actions:Ge}=this;let Lt;Re=Re||Ge.shift();do{if(Lt=Re.execute(Re.state,Re.delay))break}while((Re=Ge[0])&&Re.id===mt&&Ge.shift());if(this._active=!1,Lt){for(;(Re=Ge[0])&&Re.id===mt&&Ge.shift();)Re.unsubscribe();throw Lt}}}(class ue extends e.o{constructor(Re,mt){super(Re,mt),this.scheduler=Re,this.work=mt}requestAsyncId(Re,mt,Ge=0){return null!==Ge&&Ge>0?super.requestAsyncId(Re,mt,Ge):(Re.actions.push(this),Re._scheduled||(Re._scheduled=re.setImmediate(Re.flush.bind(Re,void 0))))}recycleAsyncId(Re,mt,Ge=0){var Lt;if(null!=Ge?Ge>0:this.delay>0)return super.recycleAsyncId(Re,mt,Ge);const{actions:je}=Re;null!=mt&&(null===(Lt=je[je.length-1])||void 0===Lt?void 0:Lt.id)!==mt&&(re.clearImmediate(mt),Re._scheduled===mt&&(Re._scheduled=void 0))}})},6321:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>I,z:()=>D});var e=C(1954);const D=new(C(2631).v)(e.o),I=D},4552:(ft,Ie,C)=>{"use strict";C.d(Ie,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},7599:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>e});const e={setTimeout(l,D,...I){const{delegate:S}=e;return S?.setTimeout?S.setTimeout(l,D,...I):setTimeout(l,D,...I)},clearTimeout(l){const{delegate:D}=e;return(D?.clearTimeout||clearTimeout)(l)},delegate:void 0}},4971:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>l});const l=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(ft,Ie,C)=>{"use strict";C.d(Ie,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>l});const l=(0,C(2306).d)(D=>function(){D(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(ft,Ie,C)=>{"use strict";C.d(Ie,{_6:()=>w,jO:()=>I,yG:()=>S});var e=C(4674),l=C(671);function D(n){return n[n.length-1]}function I(n){return(0,e.m)(D(n))?n.pop():void 0}function S(n){return(0,l.K)(D(n))?n.pop():void 0}function w(n,Z){return"number"==typeof D(n)?n.pop():Z}},7453:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>S});const{isArray:e}=Array,{getPrototypeOf:l,prototype:D,keys:I}=Object;function S(n){if(1===n.length){const Z=n[0];if(e(Z))return{args:Z,keys:null};if(function w(n){return n&&"object"==typeof n&&l(n)===D}(Z)){const ee=I(Z);return{args:ee.map(re=>Z[re]),keys:ee}}}return{args:n,keys:null}}},9039:(ft,Ie,C)=>{"use strict";function e(l,D){if(l){const I=l.indexOf(D);0<=I&&l.splice(I,1)}}C.d(Ie,{P:()=>e})},2306:(ft,Ie,C)=>{"use strict";function e(l){const I=l(S=>{Error.call(S),S.stack=(new Error).stack});return I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I}C.d(Ie,{d:()=>e})},2714:(ft,Ie,C)=>{"use strict";function e(l,D){return l.reduce((I,S,w)=>(I[S]=D[w],I),{})}C.d(Ie,{n:()=>e})},1441:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>I,x:()=>D});var e=C(2653);let l=null;function D(S){if(e.config.useDeprecatedSynchronousErrorHandling){const w=!l;if(w&&(l={errorThrown:!1,error:null}),S(),w){const{errorThrown:n,error:Z}=l;if(l=null,n)throw Z}}else S()}function I(S){e.config.useDeprecatedSynchronousErrorHandling&&l&&(l.errorThrown=!0,l.error=S)}},7103:(ft,Ie,C)=>{"use strict";function e(l,D,I,S=0,w=!1){const n=D.schedule(function(){I(),w?l.add(this.schedule(null,S)):this.unsubscribe()},S);if(l.add(n),!w)return n}C.d(Ie,{f:()=>e})},2737:(ft,Ie,C)=>{"use strict";function e(l){return l}C.d(Ie,{y:()=>e})},4266:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>e});const e=l=>l&&"number"==typeof l.length&&"function"!=typeof l},5726:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>l});var e=C(4674);function l(D){return Symbol.asyncIterator&&(0,e.m)(D?.[Symbol.asyncIterator])}},4674:(ft,Ie,C)=>{"use strict";function e(l){return"function"==typeof l}C.d(Ie,{m:()=>e})},8382:(ft,Ie,C)=>{"use strict";C.d(Ie,{c:()=>D});var e=C(4850),l=C(4674);function D(I){return(0,l.m)(I[e.L])}},3664:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>D});var e=C(4971),l=C(4674);function D(I){return(0,l.m)(I?.[e.h])}},4026:(ft,Ie,C)=>{"use strict";C.d(Ie,{t:()=>l});var e=C(4674);function l(D){return(0,e.m)(D?.then)}},541:(ft,Ie,C)=>{"use strict";C.d(Ie,{L:()=>I,Q:()=>D});var e=C(7582),l=C(4674);function D(S){return(0,e.FC)(this,arguments,function*(){const n=S.getReader();try{for(;;){const{value:Z,done:ee}=yield(0,e.qq)(n.read());if(ee)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(Z)}}finally{n.releaseLock()}})}function I(S){return(0,l.m)(S?.getReader)}},671:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>l});var e=C(4674);function l(D){return D&&(0,e.m)(D.schedule)}},9360:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>l,e:()=>D});var e=C(4674);function l(I){return(0,e.m)(I?.lift)}function D(I){return S=>{if(l(S))return S.lift(function(w){try{return I(w,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>I});var e=C(7398);const{isArray:l}=Array;function I(S){return(0,e.U)(w=>function D(S,w){return l(w)?S(...w):S(w)}(S,w))}},2420:(ft,Ie,C)=>{"use strict";function e(){}C.d(Ie,{Z:()=>e})},8407:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>D,z:()=>l});var e=C(2737);function l(...I){return D(I)}function D(I){return 0===I.length?e.y:1===I.length?I[0]:function(w){return I.reduce((n,Z)=>Z(n),w)}}},3894:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>D});var e=C(2653),l=C(7599);function D(I){l.z.setTimeout(()=>{const{onUnhandledError:S}=e.config;if(!S)throw I;S(I)})}},9853:(ft,Ie,C)=>{"use strict";function e(l){return new TypeError(`You provided ${null!==l&&"object"==typeof l?"an invalid object":`'${l}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(Ie,{z:()=>e})},6700:(ft,Ie,C)=>{var e={"./af":3274,"./af.js":3274,"./ar":2097,"./ar-dz":1867,"./ar-dz.js":1867,"./ar-kw":7078,"./ar-kw.js":7078,"./ar-ly":7776,"./ar-ly.js":7776,"./ar-ma":6789,"./ar-ma.js":6789,"./ar-sa":6897,"./ar-sa.js":6897,"./ar-tn":1585,"./ar-tn.js":1585,"./ar.js":2097,"./az":5611,"./az.js":5611,"./be":2459,"./be.js":2459,"./bg":1825,"./bg.js":1825,"./bm":5918,"./bm.js":5918,"./bn":4065,"./bn-bd":9683,"./bn-bd.js":9683,"./bn.js":4065,"./bo":1034,"./bo.js":1034,"./br":7671,"./br.js":7671,"./bs":8153,"./bs.js":8153,"./ca":4287,"./ca.js":4287,"./cs":2616,"./cs.js":2616,"./cv":7049,"./cv.js":7049,"./cy":9172,"./cy.js":9172,"./da":605,"./da.js":605,"./de":4013,"./de-at":3395,"./de-at.js":3395,"./de-ch":9835,"./de-ch.js":9835,"./de.js":4013,"./dv":4570,"./dv.js":4570,"./el":1859,"./el.js":1859,"./en-au":5785,"./en-au.js":5785,"./en-ca":3792,"./en-ca.js":3792,"./en-gb":7651,"./en-gb.js":7651,"./en-ie":1929,"./en-ie.js":1929,"./en-il":9818,"./en-il.js":9818,"./en-in":6612,"./en-in.js":6612,"./en-nz":4900,"./en-nz.js":4900,"./en-sg":2721,"./en-sg.js":2721,"./eo":6570,"./eo.js":6570,"./es":1148,"./es-do":1780,"./es-do.js":1780,"./es-mx":3468,"./es-mx.js":3468,"./es-us":4938,"./es-us.js":4938,"./es.js":1148,"./et":1453,"./et.js":1453,"./eu":4697,"./eu.js":4697,"./fa":2900,"./fa.js":2900,"./fi":9775,"./fi.js":9775,"./fil":4282,"./fil.js":4282,"./fo":4236,"./fo.js":4236,"./fr":9361,"./fr-ca":2830,"./fr-ca.js":2830,"./fr-ch":1412,"./fr-ch.js":1412,"./fr.js":9361,"./fy":6984,"./fy.js":6984,"./ga":3961,"./ga.js":3961,"./gd":8849,"./gd.js":8849,"./gl":4273,"./gl.js":4273,"./gom-deva":623,"./gom-deva.js":623,"./gom-latn":2696,"./gom-latn.js":2696,"./gu":6928,"./gu.js":6928,"./he":4804,"./he.js":4804,"./hi":3015,"./hi.js":3015,"./hr":7134,"./hr.js":7134,"./hu":670,"./hu.js":670,"./hy-am":4523,"./hy-am.js":4523,"./id":9233,"./id.js":9233,"./is":4693,"./is.js":4693,"./it":3936,"./it-ch":8118,"./it-ch.js":8118,"./it.js":3936,"./ja":6871,"./ja.js":6871,"./jv":8710,"./jv.js":8710,"./ka":7125,"./ka.js":7125,"./kk":2461,"./kk.js":2461,"./km":7399,"./km.js":7399,"./kn":8720,"./kn.js":8720,"./ko":5306,"./ko.js":5306,"./ku":2995,"./ku.js":2995,"./ky":8779,"./ky.js":8779,"./lb":2057,"./lb.js":2057,"./lo":7192,"./lo.js":7192,"./lt":5430,"./lt.js":5430,"./lv":3363,"./lv.js":3363,"./me":2939,"./me.js":2939,"./mi":8212,"./mi.js":8212,"./mk":9718,"./mk.js":9718,"./ml":561,"./ml.js":561,"./mn":8929,"./mn.js":8929,"./mr":4880,"./mr.js":4880,"./ms":3193,"./ms-my":2074,"./ms-my.js":2074,"./ms.js":3193,"./mt":4082,"./mt.js":4082,"./my":2261,"./my.js":2261,"./nb":5273,"./nb.js":5273,"./ne":9874,"./ne.js":9874,"./nl":1667,"./nl-be":1484,"./nl-be.js":1484,"./nl.js":1667,"./nn":7262,"./nn.js":7262,"./oc-lnc":9679,"./oc-lnc.js":9679,"./pa-in":6830,"./pa-in.js":6830,"./pl":3616,"./pl.js":3616,"./pt":5138,"./pt-br":2751,"./pt-br.js":2751,"./pt.js":5138,"./ro":7968,"./ro.js":7968,"./ru":1828,"./ru.js":1828,"./sd":2188,"./sd.js":2188,"./se":6562,"./se.js":6562,"./si":7172,"./si.js":7172,"./sk":9966,"./sk.js":9966,"./sl":7520,"./sl.js":7520,"./sq":5291,"./sq.js":5291,"./sr":450,"./sr-cyrl":7603,"./sr-cyrl.js":7603,"./sr.js":450,"./ss":383,"./ss.js":383,"./sv":7221,"./sv.js":7221,"./sw":1743,"./sw.js":1743,"./ta":6351,"./ta.js":6351,"./te":9620,"./te.js":9620,"./tet":6278,"./tet.js":6278,"./tg":6987,"./tg.js":6987,"./th":9325,"./th.js":9325,"./tk":3485,"./tk.js":3485,"./tl-ph":8148,"./tl-ph.js":8148,"./tlh":9616,"./tlh.js":9616,"./tr":4040,"./tr.js":4040,"./tzl":594,"./tzl.js":594,"./tzm":673,"./tzm-latn":3226,"./tzm-latn.js":3226,"./tzm.js":673,"./ug-cn":9580,"./ug-cn.js":9580,"./uk":7270,"./uk.js":7270,"./ur":1656,"./ur.js":1656,"./uz":8364,"./uz-latn":8744,"./uz-latn.js":8744,"./uz.js":8364,"./vi":5049,"./vi.js":5049,"./x-pseudo":5106,"./x-pseudo.js":5106,"./yo":6199,"./yo.js":6199,"./zh-cn":7280,"./zh-cn.js":7280,"./zh-hk":6860,"./zh-hk.js":6860,"./zh-mo":2335,"./zh-mo.js":2335,"./zh-tw":482,"./zh-tw.js":482};function l(I){var S=D(I);return C(S)}function D(I){if(!C.o(e,I)){var S=new Error("Cannot find module '"+I+"'");throw S.code="MODULE_NOT_FOUND",S}return e[I]}l.keys=function(){return Object.keys(e)},l.resolve=D,ft.exports=l,l.id=6700},9334:()=>{},6825:(ft,Ie,C)=>{"use strict";C.d(Ie,{IO:()=>ce,LC:()=>l,SB:()=>ee,X$:()=>I,ZE:()=>mt,ZN:()=>Re,_j:()=>e,eR:()=>ue,jt:()=>S,k1:()=>Ge,l3:()=>D,oB:()=>Z,pV:()=>te,ru:()=>w,vP:()=>n});class e{}class l{}const D="*";function I(Lt,je){return{type:7,name:Lt,definitions:je,options:{}}}function S(Lt,je=null){return{type:4,styles:je,timings:Lt}}function w(Lt,je=null){return{type:3,steps:Lt,options:je}}function n(Lt,je=null){return{type:2,steps:Lt,options:je}}function Z(Lt){return{type:6,styles:Lt,offset:null}}function ee(Lt,je,Tt){return{type:0,name:Lt,styles:je,options:Tt}}function ue(Lt,je,Tt=null){return{type:1,expr:Lt,animation:je,options:Tt}}function te(Lt=null){return{type:9,options:Lt}}function ce(Lt,je,Tt=null){return{type:11,selector:Lt,animation:je,options:Tt}}class Re{constructor(je=0,Tt=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=je+Tt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(je=>je()),this._onDoneFns=[])}onStart(je){this._originalOnStartFns.push(je),this._onStartFns.push(je)}onDone(je){this._originalOnDoneFns.push(je),this._onDoneFns.push(je)}onDestroy(je){this._onDestroyFns.push(je)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(je=>je()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(je=>je()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(je){this._position=this.totalTime?je*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(je){const Tt="start"==je?this._onStartFns:this._onDoneFns;Tt.forEach(xt=>xt()),Tt.length=0}}class mt{constructor(je){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=je;let Tt=0,xt=0,St=0;const Zt=this.players.length;0==Zt?queueMicrotask(()=>this._onFinish()):this.players.forEach(yt=>{yt.onDone(()=>{++Tt==Zt&&this._onFinish()}),yt.onDestroy(()=>{++xt==Zt&&this._onDestroy()}),yt.onStart(()=>{++St==Zt&&this._onStart()})}),this.totalTime=this.players.reduce((yt,un)=>Math.max(yt,un.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(je=>je()),this._onDoneFns=[])}init(){this.players.forEach(je=>je.init())}onStart(je){this._onStartFns.push(je)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(je=>je()),this._onStartFns=[])}onDone(je){this._onDoneFns.push(je)}onDestroy(je){this._onDestroyFns.push(je)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(je=>je.play())}pause(){this.players.forEach(je=>je.pause())}restart(){this.players.forEach(je=>je.restart())}finish(){this._onFinish(),this.players.forEach(je=>je.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(je=>je.destroy()),this._onDestroyFns.forEach(je=>je()),this._onDestroyFns=[])}reset(){this.players.forEach(je=>je.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(je){const Tt=je*this.totalTime;this.players.forEach(xt=>{const St=xt.totalTime?Math.min(1,Tt/xt.totalTime):1;xt.setPosition(St)})}getPosition(){const je=this.players.reduce((Tt,xt)=>null===Tt||xt.totalTime>Tt.totalTime?xt:Tt,null);return null!=je?je.getPosition():0}beforeDestroy(){this.players.forEach(je=>{je.beforeDestroy&&je.beforeDestroy()})}triggerCallback(je){const Tt="start"==je?this._onStartFns:this._onDoneFns;Tt.forEach(xt=>xt()),Tt.length=0}}const Ge="!"},4300:(ft,Ie,C)=>{"use strict";C.d(Ie,{$s:()=>Jt,Em:()=>ti,Kd:()=>Bt,X6:()=>Ve,Zf:()=>je,iD:()=>Tt,ic:()=>Rn,kH:()=>jn,qV:()=>nn,qm:()=>Jn,rt:()=>qt,s1:()=>Yn,tE:()=>An,yG:()=>ct});var e=C(6814),l=C(5879),D=C(2831),I=C(8645),S=C(7394),w=C(5619),n=C(2096),Z=C(6028),ee=C(9397),re=C(3620),ue=C(2181),se=C(7398),te=C(8180),oe=C(836),ce=C(3997),_e=C(9773),Re=C(2605),mt=C(7131),Ge=C(1088);const Lt=" ";function je(_t,G,U){const ve=xt(_t,G);ve.some(Pe=>Pe.trim()==U.trim())||(ve.push(U.trim()),_t.setAttribute(G,ve.join(Lt)))}function Tt(_t,G,U){const Pe=xt(_t,G).filter(ut=>ut!=U.trim());Pe.length?_t.setAttribute(G,Pe.join(Lt)):_t.removeAttribute(G)}function xt(_t,G){return(_t.getAttribute(G)||"").match(/\S+/g)||[]}const Zt="cdk-describedby-message",yt="cdk-describedby-host";let un=0,Jt=(()=>{class _t{constructor(U,ve){this._platform=ve,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+un++,this._document=U,this._id=(0,l.f3M)(l.AFp)+"-"+un++}describe(U,ve,Pe){if(!this._canBeDescribed(U,ve))return;const ut=tn(ve,Pe);"string"!=typeof ve?(wn(ve,this._id),this._messageRegistry.set(ut,{messageElement:ve,referenceCount:0})):this._messageRegistry.has(ut)||this._createMessageElement(ve,Pe),this._isElementDescribedByMessage(U,ut)||this._addMessageReference(U,ut)}removeDescription(U,ve,Pe){if(!ve||!this._isElementNode(U))return;const ut=tn(ve,Pe);if(this._isElementDescribedByMessage(U,ut)&&this._removeMessageReference(U,ut),"string"==typeof ve){const We=this._messageRegistry.get(ut);We&&0===We.referenceCount&&this._deleteMessageElement(ut)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const U=this._document.querySelectorAll(`[${yt}="${this._id}"]`);for(let ve=0;ve0!=Pe.indexOf(Zt));U.setAttribute("aria-describedby",ve.join(" "))}_addMessageReference(U,ve){const Pe=this._messageRegistry.get(ve);je(U,"aria-describedby",Pe.messageElement.id),U.setAttribute(yt,this._id),Pe.referenceCount++}_removeMessageReference(U,ve){const Pe=this._messageRegistry.get(ve);Pe.referenceCount--,Tt(U,"aria-describedby",Pe.messageElement.id),U.removeAttribute(yt)}_isElementDescribedByMessage(U,ve){const Pe=xt(U,"aria-describedby"),ut=this._messageRegistry.get(ve),We=ut&&ut.messageElement.id;return!!We&&-1!=Pe.indexOf(We)}_canBeDescribed(U,ve){if(!this._isElementNode(U))return!1;if(ve&&"object"==typeof ve)return!0;const Pe=null==ve?"":`${ve}`.trim(),ut=U.getAttribute("aria-label");return!(!Pe||ut&&ut.trim()===Pe)}_isElementNode(U){return U.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(e.K0),l.LFG(D.t4))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function tn(_t,G){return"string"==typeof _t?`${G||""}/${_t}`:_t}function wn(_t,G){_t.id||(_t.id=`${Zt}-${G}-${un++}`)}class Ln{constructor(G){this._items=G,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new I.x,this._typeaheadSubscription=S.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=U=>U.disabled,this._pressedLetters=[],this.tabOut=new I.x,this.change=new I.x,G instanceof l.n_E&&(this._itemChangesSubscription=G.changes.subscribe(U=>{if(this._activeItem){const Pe=U.toArray().indexOf(this._activeItem);Pe>-1&&Pe!==this._activeItemIndex&&(this._activeItemIndex=Pe)}}))}skipPredicate(G){return this._skipPredicateFn=G,this}withWrap(G=!0){return this._wrap=G,this}withVerticalOrientation(G=!0){return this._vertical=G,this}withHorizontalOrientation(G){return this._horizontal=G,this}withAllowedModifierKeys(G){return this._allowedModifierKeys=G,this}withTypeAhead(G=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ee.b)(U=>this._pressedLetters.push(U)),(0,re.b)(G),(0,ue.h)(()=>this._pressedLetters.length>0),(0,se.U)(()=>this._pressedLetters.join(""))).subscribe(U=>{const ve=this._getItemsArray();for(let Pe=1;Pe!G[ut]||this._allowedModifierKeys.indexOf(ut)>-1);switch(U){case Z.Mf:return void this.tabOut.next();case Z.JH:if(this._vertical&&Pe){this.setNextItemActive();break}return;case Z.LH:if(this._vertical&&Pe){this.setPreviousItemActive();break}return;case Z.SV:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Z.oh:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Z.Sd:if(this._homeAndEnd&&Pe){this.setFirstItemActive();break}return;case Z.uR:if(this._homeAndEnd&&Pe){this.setLastItemActive();break}return;case Z.Ku:if(this._pageUpAndDown.enabled&&Pe){const ut=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ut>0?ut:0,1);break}return;case Z.VM:if(this._pageUpAndDown.enabled&&Pe){const ut=this._activeItemIndex+this._pageUpAndDown.delta,We=this._getItemsArray().length;this._setActiveItemByIndex(ut=Z.A&&U<=Z.Z||U>=Z.xE&&U<=Z.aO)&&this._letterKeyStream.next(String.fromCharCode(U))))}this._pressedLetters=[],G.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(G){const U=this._getItemsArray(),ve="number"==typeof G?G:U.indexOf(G);this._activeItem=U[ve]??null,this._activeItemIndex=ve}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(G){this._wrap?this._setActiveInWrapMode(G):this._setActiveInDefaultMode(G)}_setActiveInWrapMode(G){const U=this._getItemsArray();for(let ve=1;ve<=U.length;ve++){const Pe=(this._activeItemIndex+G*ve+U.length)%U.length;if(!this._skipPredicateFn(U[Pe]))return void this.setActiveItem(Pe)}}_setActiveInDefaultMode(G){this._setActiveItemByIndex(this._activeItemIndex+G,G)}_setActiveItemByIndex(G,U){const ve=this._getItemsArray();if(ve[G]){for(;this._skipPredicateFn(ve[G]);)if(!ve[G+=U])return;this.setActiveItem(G)}}_getItemsArray(){return this._items instanceof l.n_E?this._items.toArray():this._items}}class Yn extends Ln{setActiveItem(G){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(G),this.activeItem&&this.activeItem.setActiveStyles()}}class ti extends Ln{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(G){return this._origin=G,this}setActiveItem(G){super.setActiveItem(G),this.activeItem&&this.activeItem.focus(this._origin)}}let Rn=(()=>{class _t{constructor(U){this._platform=U}isDisabled(U){return U.hasAttribute("disabled")}isVisible(U){return function at(_t){return!!(_t.offsetWidth||_t.offsetHeight||"function"==typeof _t.getClientRects&&_t.getClientRects().length)}(U)&&"visible"===getComputedStyle(U).visibility}isTabbable(U){if(!this._platform.isBrowser)return!1;const ve=function dt(_t){try{return _t.frameElement}catch{return null}}(function Nt(_t){return _t.ownerDocument&&_t.ownerDocument.defaultView||window}(U));if(ve&&(-1===Ze(ve)||!this.isVisible(ve)))return!1;let Pe=U.nodeName.toLowerCase(),ut=Ze(U);return U.hasAttribute("contenteditable")?-1!==ut:!("iframe"===Pe||"object"===Pe||this._platform.WEBKIT&&this._platform.IOS&&!function rt(_t){let G=_t.nodeName.toLowerCase(),U="input"===G&&_t.type;return"text"===U||"password"===U||"select"===G||"textarea"===G}(U))&&("audio"===Pe?!!U.hasAttribute("controls")&&-1!==ut:"video"===Pe?-1!==ut&&(null!==ut||this._platform.FIREFOX||U.hasAttribute("controls")):U.tabIndex>=0)}isFocusable(U,ve){return function bt(_t){return!function Ee(_t){return function me(_t){return"input"==_t.nodeName.toLowerCase()}(_t)&&"hidden"==_t.type}(_t)&&(function Be(_t){let G=_t.nodeName.toLowerCase();return"input"===G||"select"===G||"button"===G||"textarea"===G}(_t)||function $e(_t){return function tt(_t){return"a"==_t.nodeName.toLowerCase()}(_t)&&_t.hasAttribute("href")}(_t)||_t.hasAttribute("contenteditable")||he(_t))}(U)&&!this.isDisabled(U)&&(ve?.ignoreVisibility||this.isVisible(U))}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function he(_t){if(!_t.hasAttribute("tabindex")||void 0===_t.tabIndex)return!1;let G=_t.getAttribute("tabindex");return!(!G||isNaN(parseInt(G,10)))}function Ze(_t){if(!he(_t))return null;const G=parseInt(_t.getAttribute("tabindex")||"",10);return isNaN(G)?-1:G}class Qt{get enabled(){return this._enabled}set enabled(G){this._enabled=G,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}constructor(G,U,ve,Pe,ut=!1){this._element=G,this._checker=U,this._ngZone=ve,this._document=Pe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ut||this.attachAnchors()}destroy(){const G=this._startAnchor,U=this._endAnchor;G&&(G.removeEventListener("focus",this.startAnchorListener),G.remove()),U&&(U.removeEventListener("focus",this.endAnchorListener),U.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(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusInitialElement(G)))})}focusFirstTabbableElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusFirstTabbableElement(G)))})}focusLastTabbableElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusLastTabbableElement(G)))})}_getRegionBoundary(G){const U=this._element.querySelectorAll(`[cdk-focus-region-${G}], [cdkFocusRegion${G}], [cdk-focus-${G}]`);return"start"==G?U.length?U[0]:this._getFirstTabbableElement(this._element):U.length?U[U.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(G){const U=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(U){if(!this._checker.isFocusable(U)){const ve=this._getFirstTabbableElement(U);return ve?.focus(G),!!ve}return U.focus(G),!0}return this.focusFirstTabbableElement(G)}focusFirstTabbableElement(G){const U=this._getRegionBoundary("start");return U&&U.focus(G),!!U}focusLastTabbableElement(G){const U=this._getRegionBoundary("end");return U&&U.focus(G),!!U}hasAttached(){return this._hasAttached}_getFirstTabbableElement(G){if(this._checker.isFocusable(G)&&this._checker.isTabbable(G))return G;const U=G.children;for(let ve=0;ve=0;ve--){const Pe=U[ve].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(U[ve]):null;if(Pe)return Pe}return null}_createAnchor(){const G=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,G),G.classList.add("cdk-visually-hidden"),G.classList.add("cdk-focus-trap-anchor"),G.setAttribute("aria-hidden","true"),G}_toggleAnchorTabIndex(G,U){G?U.setAttribute("tabindex","0"):U.removeAttribute("tabindex")}toggleAnchors(G){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}_executeOnStable(G){this._ngZone.isStable?G():this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(G)}}let nn=(()=>{class _t{constructor(U,ve,Pe){this._checker=U,this._ngZone=ve,this._document=Pe}create(U,ve=!1){return new Qt(U,this._checker,this._ngZone,this._document,ve)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(Rn),l.LFG(l.R0b),l.LFG(e.K0))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function Ve(_t){return 0===_t.buttons||0===_t.detail}function ct(_t){const G=_t.touches&&_t.touches[0]||_t.changedTouches&&_t.changedTouches[0];return!(!G||-1!==G.identifier||null!=G.radiusX&&1!==G.radiusX||null!=G.radiusY&&1!==G.radiusY)}const Ct=new l.OlP("cdk-input-modality-detector-options"),Ce={ignoreKeys:[Z.zL,Z.jx,Z.b2,Z.MW,Z.JU]},ae=(0,D.i$)({passive:!0,capture:!0});let Oe=(()=>{class _t{get mostRecentModality(){return this._modality.value}constructor(U,ve,Pe,ut){this._platform=U,this._mostRecentTarget=null,this._modality=new w.X(null),this._lastTouchMs=0,this._onKeydown=We=>{this._options?.ignoreKeys?.some(ze=>ze===We.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,D.sA)(We))},this._onMousedown=We=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ve(We)?"keyboard":"mouse"),this._mostRecentTarget=(0,D.sA)(We))},this._onTouchstart=We=>{ct(We)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,D.sA)(We))},this._options={...Ce,...ut},this.modalityDetected=this._modality.pipe((0,oe.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ce.x)()),U.isBrowser&&ve.runOutsideAngular(()=>{Pe.addEventListener("keydown",this._onKeydown,ae),Pe.addEventListener("mousedown",this._onMousedown,ae),Pe.addEventListener("touchstart",this._onTouchstart,ae)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ae),document.removeEventListener("mousedown",this._onMousedown,ae),document.removeEventListener("touchstart",this._onTouchstart,ae))}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4),l.LFG(l.R0b),l.LFG(e.K0),l.LFG(Ct,8))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();const ot=new l.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Se(){return null}}),Ft=new l.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let lt=0,Bt=(()=>{class _t{constructor(U,ve,Pe,ut){this._ngZone=ve,this._defaultOptions=ut,this._document=Pe,this._liveElement=U||this._createLiveElement()}announce(U,...ve){const Pe=this._defaultOptions;let ut,We;return 1===ve.length&&"number"==typeof ve[0]?We=ve[0]:[ut,We]=ve,this.clear(),clearTimeout(this._previousTimeout),ut||(ut=Pe&&Pe.politeness?Pe.politeness:"polite"),null==We&&Pe&&(We=Pe.duration),this._liveElement.setAttribute("aria-live",ut),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ze=>this._currentResolve=ze)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=U,"number"==typeof We&&(this._previousTimeout=setTimeout(()=>this.clear(),We)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const U="cdk-live-announcer-element",ve=this._document.getElementsByClassName(U),Pe=this._document.createElement("div");for(let ut=0;ut .cdk-overlay-container [aria-modal="true"]');for(let Pe=0;Pe{class _t{constructor(U,ve,Pe,ut,We){this._ngZone=U,this._platform=ve,this._inputModalityDetector=Pe,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 I.x,this._rootNodeFocusAndBlurListener=ze=>{for(let Te=(0,D.sA)(ze);Te;Te=Te.parentElement)"focus"===ze.type?this._onFocus(ze,Te):this._onBlur(ze,Te)},this._document=ut,this._detectionMode=We?.detectionMode||0}monitor(U,ve=!1){const Pe=(0,Re.fI)(U);if(!this._platform.isBrowser||1!==Pe.nodeType)return(0,n.of)();const ut=(0,D.kV)(Pe)||this._getDocument(),We=this._elementInfo.get(Pe);if(We)return ve&&(We.checkChildren=!0),We.subject;const ze={checkChildren:ve,subject:new I.x,rootNode:ut};return this._elementInfo.set(Pe,ze),this._registerGlobalListeners(ze),ze.subject}stopMonitoring(U){const ve=(0,Re.fI)(U),Pe=this._elementInfo.get(ve);Pe&&(Pe.subject.complete(),this._setClasses(ve),this._elementInfo.delete(ve),this._removeGlobalListeners(Pe))}focusVia(U,ve,Pe){const ut=(0,Re.fI)(U);ut===this._getDocument().activeElement?this._getClosestElementsInfo(ut).forEach(([ze,be])=>this._originChanged(ze,ve,be)):(this._setOrigin(ve),"function"==typeof ut.focus&&ut.focus(Pe))}ngOnDestroy(){this._elementInfo.forEach((U,ve)=>this.stopMonitoring(ve))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(U){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(U)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:U&&this._isLastInteractionFromInputLabel(U)?"mouse":"program"}_shouldBeAttributedToTouch(U){return 1===this._detectionMode||!!U?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(U,ve){U.classList.toggle("cdk-focused",!!ve),U.classList.toggle("cdk-touch-focused","touch"===ve),U.classList.toggle("cdk-keyboard-focused","keyboard"===ve),U.classList.toggle("cdk-mouse-focused","mouse"===ve),U.classList.toggle("cdk-program-focused","program"===ve)}_setOrigin(U,ve=!1){this._ngZone.runOutsideAngular(()=>{this._origin=U,this._originFromTouchInteraction="touch"===U&&ve,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(U,ve){const Pe=this._elementInfo.get(ve),ut=(0,D.sA)(U);!Pe||!Pe.checkChildren&&ve!==ut||this._originChanged(ve,this._getFocusOrigin(ut),Pe)}_onBlur(U,ve){const Pe=this._elementInfo.get(ve);!Pe||Pe.checkChildren&&U.relatedTarget instanceof Node&&ve.contains(U.relatedTarget)||(this._setClasses(ve),this._emitOrigin(Pe,null))}_emitOrigin(U,ve){U.subject.observers.length&&this._ngZone.run(()=>U.subject.next(ve))}_registerGlobalListeners(U){if(!this._platform.isBrowser)return;const ve=U.rootNode,Pe=this._rootNodeFocusListenerCount.get(ve)||0;Pe||this._ngZone.runOutsideAngular(()=>{ve.addEventListener("focus",this._rootNodeFocusAndBlurListener,gn),ve.addEventListener("blur",this._rootNodeFocusAndBlurListener,gn)}),this._rootNodeFocusListenerCount.set(ve,Pe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_e.R)(this._stopInputModalityDetector)).subscribe(ut=>{this._setOrigin(ut,!0)}))}_removeGlobalListeners(U){const ve=U.rootNode;if(this._rootNodeFocusListenerCount.has(ve)){const Pe=this._rootNodeFocusListenerCount.get(ve);Pe>1?this._rootNodeFocusListenerCount.set(ve,Pe-1):(ve.removeEventListener("focus",this._rootNodeFocusAndBlurListener,gn),ve.removeEventListener("blur",this._rootNodeFocusAndBlurListener,gn),this._rootNodeFocusListenerCount.delete(ve))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(U,ve,Pe){this._setClasses(U,ve),this._emitOrigin(Pe,ve),this._lastFocusOrigin=ve}_getClosestElementsInfo(U){const ve=[];return this._elementInfo.forEach((Pe,ut)=>{(ut===U||Pe.checkChildren&&ut.contains(U))&&ve.push([ut,Pe])}),ve}_isLastInteractionFromInputLabel(U){const{_mostRecentTarget:ve,mostRecentModality:Pe}=this._inputModalityDetector;if("mouse"!==Pe||!ve||ve===U||"INPUT"!==U.nodeName&&"TEXTAREA"!==U.nodeName||U.disabled)return!1;const ut=U.labels;if(ut)for(let We=0;We{class _t{constructor(U,ve){this._elementRef=U,this._focusMonitor=ve,this._focusOrigin=null,this.cdkFocusChange=new l.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const U=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(U,1===U.nodeType&&U.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ve=>{this._focusOrigin=ve,this.cdkFocusChange.emit(ve)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.Y36(l.SBq),l.Y36(An))};static#t=this.\u0275dir=l.lG2({type:_t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return _t})();const ai="cdk-high-contrast-black-on-white",di="cdk-high-contrast-white-on-black",oi="cdk-high-contrast-active";let Jn=(()=>{class _t{constructor(U,ve){this._platform=U,this._document=ve,this._breakpointSubscription=(0,l.f3M)(Ge.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const U=this._document.createElement("div");U.style.backgroundColor="rgb(1,2,3)",U.style.position="absolute",this._document.body.appendChild(U);const ve=this._document.defaultView||window,Pe=ve&&ve.getComputedStyle?ve.getComputedStyle(U):null,ut=(Pe&&Pe.backgroundColor||"").replace(/ /g,"");switch(U.remove(),ut){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const U=this._document.body.classList;U.remove(oi,ai,di),this._hasCheckedHighContrastMode=!0;const ve=this.getHighContrastMode();1===ve?U.add(oi,ai):2===ve&&U.add(oi,di)}}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4),l.LFG(e.K0))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),qt=(()=>{class _t{constructor(U){U._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(Jn))};static#t=this.\u0275mod=l.oAB({type:_t});static#n=this.\u0275inj=l.cJS({imports:[mt.Q8]})}return _t})()},9388:(ft,Ie,C)=>{"use strict";C.d(Ie,{Is:()=>n,Lv:()=>Z,vT:()=>ee});var e=C(5879),l=C(6814);const D=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function I(){return(0,e.f3M)(l.K0)}}),S=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function w(re){const ue=re?.toLowerCase()||"";return"auto"===ue&&typeof navigator<"u"&&navigator?.language?S.test(navigator.language)?"rtl":"ltr":"rtl"===ue?"rtl":"ltr"}let n=(()=>{class re{constructor(se){this.value="ltr",this.change=new e.vpe,se&&(this.value=w((se.body?se.body.dir:null)||(se.documentElement?se.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(te){return new(te||re)(e.LFG(D,8))};static#t=this.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),Z=(()=>{class re{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new e.vpe}get dir(){return this._dir}set dir(se){const te=this._dir;this._dir=w(se),this._rawDir=se,te!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275dir=e.lG2({type:re,selectors:[["","dir",""]],hostVars:1,hostBindings:function(te,oe){2&te&&e.uIk("dir",oe._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[e._Bn([{provide:n,useExisting:re}])]})}return re})(),ee=(()=>{class re{static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275mod=e.oAB({type:re});static#n=this.\u0275inj=e.cJS({})}return re})()},2605:(ft,Ie,C)=>{"use strict";C.d(Ie,{Eq:()=>S,HM:()=>w,Ig:()=>l,du:()=>Z,fI:()=>n,su:()=>D});var e=C(5879);function l(ee){return null!=ee&&"false"!=`${ee}`}function D(ee,re=0){return function I(ee){return!isNaN(parseFloat(ee))&&!isNaN(Number(ee))}(ee)?Number(ee):re}function S(ee){return Array.isArray(ee)?ee:[ee]}function w(ee){return null==ee?"":"string"==typeof ee?ee:`${ee}px`}function n(ee){return ee instanceof e.SBq?ee.nativeElement:ee}function Z(ee,re=/\s+/){const ue=[];if(null!=ee){const se=Array.isArray(ee)?ee:`${ee}`.split(re);for(const te of se){const oe=`${te}`.trim();oe&&ue.push(oe)}}return ue}},8337:(ft,Ie,C)=>{"use strict";C.d(Ie,{A8:()=>re,Ov:()=>Z});var e=C(8645),l=C(5879);class Z{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(te=!1,oe,ce=!0,_e){this._multiple=te,this._emitChanges=ce,this.compareWith=_e,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,oe&&oe.length&&(te?oe.forEach(Re=>this._markSelected(Re)):this._markSelected(oe[0]),this._selectedToEmit.length=0)}select(...te){this._verifyValueAssignment(te),te.forEach(ce=>this._markSelected(ce));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}deselect(...te){this._verifyValueAssignment(te),te.forEach(ce=>this._unmarkSelected(ce));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}setSelection(...te){this._verifyValueAssignment(te);const oe=this.selected,ce=new Set(te);te.forEach(Re=>this._markSelected(Re)),oe.filter(Re=>!ce.has(Re)).forEach(Re=>this._unmarkSelected(Re));const _e=this._hasQueuedChanges();return this._emitChangeEvent(),_e}toggle(te){return this.isSelected(te)?this.deselect(te):this.select(te)}clear(te=!0){this._unmarkAll();const oe=this._hasQueuedChanges();return te&&this._emitChangeEvent(),oe}isSelected(te){return this._selection.has(this._getConcreteValue(te))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(te){this._multiple&&this.selected&&this._selected.sort(te)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(te){te=this._getConcreteValue(te),this.isSelected(te)||(this._multiple||this._unmarkAll(),this.isSelected(te)||this._selection.add(te),this._emitChanges&&this._selectedToEmit.push(te))}_unmarkSelected(te){te=this._getConcreteValue(te),this.isSelected(te)&&(this._selection.delete(te),this._emitChanges&&this._deselectedToEmit.push(te))}_unmarkAll(){this.isEmpty()||this._selection.forEach(te=>this._unmarkSelected(te))}_verifyValueAssignment(te){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(te){if(this.compareWith){for(let oe of this._selection)if(this.compareWith(te,oe))return oe;return te}return te}}let re=(()=>{class se{constructor(){this._listeners=[]}notify(oe,ce){for(let _e of this._listeners)_e(oe,ce)}listen(oe){return this._listeners.push(oe),()=>{this._listeners=this._listeners.filter(ce=>oe!==ce)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275prov=l.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"})}return se})()},6028:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>Ee,JH:()=>Lt,JU:()=>w,K5:()=>S,Ku:()=>te,LH:()=>mt,L_:()=>se,MW:()=>Ft,Mf:()=>D,OC:()=>Bi,SV:()=>Ge,Sd:()=>_e,VM:()=>oe,Vb:()=>uo,Z:()=>Se,ZH:()=>l,aO:()=>gi,b2:()=>Fr,hY:()=>ue,jx:()=>n,oh:()=>Re,uR:()=>ce,xE:()=>Zt,yY:()=>St,zL:()=>Z});const l=8,D=9,S=13,w=16,n=17,Z=18,ue=27,se=32,te=33,oe=34,ce=35,_e=36,Re=37,mt=38,Ge=39,Lt=40,St=46,Zt=48,gi=57,Ee=65,Se=90,Ft=91,Bi=188,Fr=224;function uo(ho,...to){return to.length?to.some(yr=>ho[yr]):ho.altKey||ho.shiftKey||ho.ctrlKey||ho.metaKey}},1088:(ft,Ie,C)=>{"use strict";C.d(Ie,{Yg:()=>Lt,u3:()=>Tt});var e=C(5879),l=C(2605),D=C(8645),I=C(2572),S=C(5211),w=C(5592),n=C(8180),Z=C(836),ee=C(3620),re=C(7398),ue=C(7921),se=C(9773),te=C(2831);const ce=new Set;let _e,Re=(()=>{class xt{constructor(Zt,yt){this._platform=Zt,this._nonce=yt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ge}matchMedia(Zt){return(this._platform.WEBKIT||this._platform.BLINK)&&function mt(xt,St){if(!ce.has(xt))try{_e||(_e=document.createElement("style"),St&&(_e.nonce=St),_e.setAttribute("type","text/css"),document.head.appendChild(_e)),_e.sheet&&(_e.sheet.insertRule(`@media ${xt} {body{ }}`,0),ce.add(xt))}catch(Zt){console.error(Zt)}}(Zt,this._nonce),this._matchMedia(Zt)}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.LFG(te.t4),e.LFG(e.Ojb,8))};static#t=this.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"})}return xt})();function Ge(xt){return{matches:"all"===xt||""===xt,media:xt,addListener:()=>{},removeListener:()=>{}}}let Lt=(()=>{class xt{constructor(Zt,yt){this._mediaMatcher=Zt,this._zone=yt,this._queries=new Map,this._destroySubject=new D.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Zt){return je((0,l.Eq)(Zt)).some(un=>this._registerQuery(un).mql.matches)}observe(Zt){const un=je((0,l.Eq)(Zt)).map(tn=>this._registerQuery(tn).observable);let Jt=(0,I.a)(un);return Jt=(0,S.z)(Jt.pipe((0,n.q)(1)),Jt.pipe((0,Z.T)(1),(0,ee.b)(0))),Jt.pipe((0,re.U)(tn=>{const wn={matches:!1,breakpoints:{}};return tn.forEach(({matches:Ln,query:Yn})=>{wn.matches=wn.matches||Ln,wn.breakpoints[Yn]=Ln}),wn}))}_registerQuery(Zt){if(this._queries.has(Zt))return this._queries.get(Zt);const yt=this._mediaMatcher.matchMedia(Zt),Jt={observable:new w.y(tn=>{const wn=Ln=>this._zone.run(()=>tn.next(Ln));return yt.addListener(wn),()=>{yt.removeListener(wn)}}).pipe((0,ue.O)(yt),(0,re.U)(({matches:tn})=>({query:Zt,matches:tn})),(0,se.R)(this._destroySubject)),mql:yt};return this._queries.set(Zt,Jt),Jt}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.LFG(Re),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"})}return xt})();function je(xt){return xt.map(St=>St.split(",")).reduce((St,Zt)=>St.concat(Zt)).map(St=>St.trim())}const Tt={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)"}},7131:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q8:()=>ee,wD:()=>Z});var e=C(2605),l=C(5879),D=C(5592),I=C(8645),S=C(3620);let w=(()=>{class re{create(se){return typeof MutationObserver>"u"?null:new MutationObserver(se)}static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275prov=l.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),n=(()=>{class re{constructor(se){this._mutationObserverFactory=se,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((se,te)=>this._cleanupObserver(te))}observe(se){const te=(0,e.fI)(se);return new D.y(oe=>{const _e=this._observeElement(te).subscribe(oe);return()=>{_e.unsubscribe(),this._unobserveElement(te)}})}_observeElement(se){if(this._observedElements.has(se))this._observedElements.get(se).count++;else{const te=new I.x,oe=this._mutationObserverFactory.create(ce=>te.next(ce));oe&&oe.observe(se,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(se,{observer:oe,stream:te,count:1})}return this._observedElements.get(se).stream}_unobserveElement(se){this._observedElements.has(se)&&(this._observedElements.get(se).count--,this._observedElements.get(se).count||this._cleanupObserver(se))}_cleanupObserver(se){if(this._observedElements.has(se)){const{observer:te,stream:oe}=this._observedElements.get(se);te&&te.disconnect(),oe.complete(),this._observedElements.delete(se)}}static#e=this.\u0275fac=function(te){return new(te||re)(l.LFG(w))};static#t=this.\u0275prov=l.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),Z=(()=>{class re{get disabled(){return this._disabled}set disabled(se){this._disabled=(0,e.Ig)(se),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(se){this._debounce=(0,e.su)(se),this._subscribe()}constructor(se,te,oe){this._contentObserver=se,this._elementRef=te,this._ngZone=oe,this.event=new l.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const se=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?se.pipe((0,S.b)(this.debounce)):se).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(te){return new(te||re)(l.Y36(n),l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275dir=l.lG2({type:re,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return re})(),ee=(()=>{class re{static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275mod=l.oAB({type:re});static#n=this.\u0275inj=l.cJS({providers:[w]})}return re})()},3651:(ft,Ie,C)=>{"use strict";C.d(Ie,{pI:()=>ei,xu:()=>vn,aV:()=>Dn,X_:()=>un,Xj:()=>dt,U8:()=>ct,Iu:()=>at});var e=C(6672),l=C(6814),D=C(5879),I=C(2605),S=C(2831),w=C(2181),n=C(8180),Z=C(9773),ee=C(9360),re=C(8251),se=C(9388),te=C(8484),oe=C(8645),ce=C(7394),_e=C(3019),Re=C(6028);const mt=(0,S.Mq)();class Ge{constructor(J,ae){this._viewportRuler=J,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ae}attach(){}enable(){if(this._canBeEnabled()){const J=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=J.style.left||"",this._previousHTMLStyles.top=J.style.top||"",J.style.left=(0,I.HM)(-this._previousScrollPosition.left),J.style.top=(0,I.HM)(-this._previousScrollPosition.top),J.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const J=this._document.documentElement,Oe=J.style,ot=this._document.body.style,Se=Oe.scrollBehavior||"",Ft=ot.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,J.classList.remove("cdk-global-scrollblock"),mt&&(Oe.scrollBehavior=ot.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),mt&&(Oe.scrollBehavior=Se,ot.scrollBehavior=Ft)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ae=this._document.body,Oe=this._viewportRuler.getViewportSize();return ae.scrollHeight>Oe.height||ae.scrollWidth>Oe.width}}class je{constructor(J,ae,Oe,ot){this._scrollDispatcher=J,this._ngZone=ae,this._viewportRuler=Oe,this._config=ot,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(J){this._overlayRef=J}enable(){if(this._scrollSubscription)return;const J=this._scrollDispatcher.scrolled(0).pipe((0,w.h)(ae=>!ae||!this._overlayRef.overlayElement.contains(ae.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=J.subscribe(()=>{const ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ae-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=J.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Tt{enable(){}disable(){}attach(){}}function xt(Ce,J){return J.some(ae=>Ce.bottomae.bottom||Ce.rightae.right)}function St(Ce,J){return J.some(ae=>Ce.topae.bottom||Ce.leftae.right)}class Zt{constructor(J,ae,Oe,ot){this._scrollDispatcher=J,this._viewportRuler=ae,this._ngZone=Oe,this._config=ot,this._scrollSubscription=null}attach(J){this._overlayRef=J}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 ae=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Oe,height:ot}=this._viewportRuler.getViewportSize();xt(ae,[{width:Oe,height:ot,bottom:ot,right:Oe,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 yt=(()=>{class Ce{constructor(ae,Oe,ot,Se){this._scrollDispatcher=ae,this._viewportRuler=Oe,this._ngZone=ot,this.noop=()=>new Tt,this.close=Ft=>new je(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ft),this.block=()=>new Ge(this._viewportRuler,this._document),this.reposition=Ft=>new Zt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ft),this._document=Se}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(e.mF),D.LFG(e.rL),D.LFG(D.R0b),D.LFG(l.K0))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();class un{constructor(J){if(this.scrollStrategy=new Tt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,J){const ae=Object.keys(J);for(const Oe of ae)void 0!==J[Oe]&&(this[Oe]=J[Oe])}}}class wn{constructor(J,ae){this.connectionPair=J,this.scrollableViewProperties=ae}}let ti=(()=>{class Ce{constructor(ae){this._attachedOverlays=[],this._document=ae}ngOnDestroy(){this.detach()}add(ae){this.remove(ae),this._attachedOverlays.push(ae)}remove(ae){const Oe=this._attachedOverlays.indexOf(ae);Oe>-1&&this._attachedOverlays.splice(Oe,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),gi=(()=>{class Ce extends ti{constructor(ae,Oe){super(ae),this._ngZone=Oe,this._keydownListener=ot=>{const Se=this._attachedOverlays;for(let Ft=Se.length-1;Ft>-1;Ft--)if(Se[Ft]._keydownEvents.observers.length>0){const lt=Se[Ft]._keydownEvents;this._ngZone?this._ngZone.run(()=>lt.next(ot)):lt.next(ot);break}}}add(ae){super.add(ae),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0),D.LFG(D.R0b,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),Rn=(()=>{class Ce extends ti{constructor(ae,Oe,ot){super(ae),this._platform=Oe,this._ngZone=ot,this._cursorStyleIsSet=!1,this._pointerDownListener=Se=>{this._pointerDownEventTarget=(0,S.sA)(Se)},this._clickListener=Se=>{const Ft=(0,S.sA)(Se),lt="click"===Se.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ft;this._pointerDownEventTarget=null;const Bt=this._attachedOverlays.slice();for(let Ut=Bt.length-1;Ut>-1;Ut--){const fn=Bt[Ut];if(fn._outsidePointerEvents.observers.length<1||!fn.hasAttached())continue;if(fn.overlayElement.contains(Ft)||fn.overlayElement.contains(lt))break;const gn=fn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>gn.next(Se)):gn.next(Se)}}}add(ae){if(super.add(ae),!this._isAttached){const Oe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Oe)):this._addEventListeners(Oe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Oe.style.cursor,Oe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ae=this._document.body;ae.removeEventListener("pointerdown",this._pointerDownListener,!0),ae.removeEventListener("click",this._clickListener,!0),ae.removeEventListener("auxclick",this._clickListener,!0),ae.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ae.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ae){ae.addEventListener("pointerdown",this._pointerDownListener,!0),ae.addEventListener("click",this._clickListener,!0),ae.addEventListener("auxclick",this._clickListener,!0),ae.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0),D.LFG(S.t4),D.LFG(D.R0b,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),dt=(()=>{class Ce{constructor(ae,Oe){this._platform=Oe,this._document=ae}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ae="cdk-overlay-container";if(this._platform.isBrowser||(0,S.Oy)()){const ot=this._document.querySelectorAll(`.${ae}[platform="server"], .${ae}[platform="test"]`);for(let Se=0;Sethis._backdropClick.next(gn),this._backdropTransitionendHandler=gn=>{this._disposeBackdrop(gn.target)},this._keydownEvents=new oe.x,this._outsidePointerEvents=new oe.x,ot.scrollStrategy&&(this._scrollStrategy=ot.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ot.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(J){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ae=this._portalOutlet.attach(J);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,n.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),"function"==typeof ae?.onDestroy&&ae.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ae}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const J=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),J}dispose(){const J=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,J&&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(J){J!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=J,this.hasAttached()&&(J.attach(this),this.updatePosition()))}updateSize(J){this._config={...this._config,...J},this._updateElementSize()}setDirection(J){this._config={...this._config,direction:J},this._updateElementDirection()}addPanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!0)}removePanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!1)}getDirection(){const J=this._config.direction;return J?"string"==typeof J?J:J.value:"ltr"}updateScrollStrategy(J){J!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=J,this.hasAttached()&&(J.attach(this),J.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const J=this._pane.style;J.width=(0,I.HM)(this._config.width),J.height=(0,I.HM)(this._config.height),J.minWidth=(0,I.HM)(this._config.minWidth),J.minHeight=(0,I.HM)(this._config.minHeight),J.maxWidth=(0,I.HM)(this._config.maxWidth),J.maxHeight=(0,I.HM)(this._config.maxHeight)}_togglePointerEvents(J){this._pane.style.pointerEvents=J?"":"none"}_attachBackdrop(){const J="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(J)})}):this._backdropElement.classList.add(J)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const J=this._backdropElement;if(J){if(this._animationsDisabled)return void this._disposeBackdrop(J);J.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{J.addEventListener("transitionend",this._backdropTransitionendHandler)}),J.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(J)},500))}}_toggleClasses(J,ae,Oe){const ot=(0,I.Eq)(ae||[]).filter(Se=>!!Se);ot.length&&(Oe?J.classList.add(...ot):J.classList.remove(...ot))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const J=this._ngZone.onStable.pipe((0,Z.R)((0,_e.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()),J.unsubscribe())})})}_disposeScrollStrategy(){const J=this._scrollStrategy;J&&(J.disable(),J.detach&&J.detach())}_disposeBackdrop(J){J&&(J.removeEventListener("click",this._backdropClickHandler),J.removeEventListener("transitionend",this._backdropTransitionendHandler),J.remove(),this._backdropElement===J&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Be="cdk-overlay-connected-position-bounding-box",Ee=/([A-Za-z%]+)$/;class $e{get positions(){return this._preferredPositions}constructor(J,ae,Oe,ot,Se){this._viewportRuler=ae,this._document=Oe,this._platform=ot,this._overlayContainer=Se,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new oe.x,this._resizeSubscription=ce.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(J)}attach(J){this._validatePositions(),J.hostElement.classList.add(Be),this._overlayRef=J,this._boundingBox=J.hostElement,this._pane=J.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{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 J=this._originRect,ae=this._overlayRect,Oe=this._viewportRect,ot=this._containerRect,Se=[];let Ft;for(let lt of this._preferredPositions){let Bt=this._getOriginPoint(J,ot,lt),Ut=this._getOverlayPoint(Bt,ae,lt),fn=this._getOverlayFit(Ut,ae,Oe,lt);if(fn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(lt,Bt);this._canFitWithFlexibleDimensions(fn,Ut,Oe)?Se.push({position:lt,origin:Bt,overlayRect:ae,boundingBoxRect:this._calculateBoundingBoxRect(Bt,lt)}):(!Ft||Ft.overlayFit.visibleAreaBt&&(Bt=fn,lt=Ut)}return this._isPushed=!1,void this._applyPosition(lt.position,lt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ft.position,Ft.originPoint);this._applyPosition(Ft.position,Ft.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&me(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const J=this._lastPosition;if(J){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ae=this._getOriginPoint(this._originRect,this._containerRect,J);this._applyPosition(J,ae)}else this.apply()}withScrollableContainers(J){return this._scrollables=J,this}withPositions(J){return this._preferredPositions=J,-1===J.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(J){return this._viewportMargin=J,this}withFlexibleDimensions(J=!0){return this._hasFlexibleDimensions=J,this}withGrowAfterOpen(J=!0){return this._growAfterOpen=J,this}withPush(J=!0){return this._canPush=J,this}withLockedPosition(J=!0){return this._positionLocked=J,this}setOrigin(J){return this._origin=J,this}withDefaultOffsetX(J){return this._offsetX=J,this}withDefaultOffsetY(J){return this._offsetY=J,this}withTransformOriginOn(J){return this._transformOriginSelector=J,this}_getOriginPoint(J,ae,Oe){let ot,Se;if("center"==Oe.originX)ot=J.left+J.width/2;else{const Ft=this._isRtl()?J.right:J.left,lt=this._isRtl()?J.left:J.right;ot="start"==Oe.originX?Ft:lt}return ae.left<0&&(ot-=ae.left),Se="center"==Oe.originY?J.top+J.height/2:"top"==Oe.originY?J.top:J.bottom,ae.top<0&&(Se-=ae.top),{x:ot,y:Se}}_getOverlayPoint(J,ae,Oe){let ot,Se;return ot="center"==Oe.overlayX?-ae.width/2:"start"===Oe.overlayX?this._isRtl()?-ae.width:0:this._isRtl()?0:-ae.width,Se="center"==Oe.overlayY?-ae.height/2:"top"==Oe.overlayY?0:-ae.height,{x:J.x+ot,y:J.y+Se}}_getOverlayFit(J,ae,Oe,ot){const Se=he(ae);let{x:Ft,y:lt}=J,Bt=this._getOffset(ot,"x"),Ut=this._getOffset(ot,"y");Bt&&(Ft+=Bt),Ut&&(lt+=Ut);let An=0-lt,jn=lt+Se.height-Oe.height,ai=this._subtractOverflows(Se.width,0-Ft,Ft+Se.width-Oe.width),di=this._subtractOverflows(Se.height,An,jn),oi=ai*di;return{visibleArea:oi,isCompletelyWithinViewport:Se.width*Se.height===oi,fitsInViewportVertically:di===Se.height,fitsInViewportHorizontally:ai==Se.width}}_canFitWithFlexibleDimensions(J,ae,Oe){if(this._hasFlexibleDimensions){const ot=Oe.bottom-ae.y,Se=Oe.right-ae.x,Ft=tt(this._overlayRef.getConfig().minHeight),lt=tt(this._overlayRef.getConfig().minWidth);return(J.fitsInViewportVertically||null!=Ft&&Ft<=ot)&&(J.fitsInViewportHorizontally||null!=lt&<<=Se)}return!1}_pushOverlayOnScreen(J,ae,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:J.x+this._previousPushAmount.x,y:J.y+this._previousPushAmount.y};const ot=he(ae),Se=this._viewportRect,Ft=Math.max(J.x+ot.width-Se.width,0),lt=Math.max(J.y+ot.height-Se.height,0),Bt=Math.max(Se.top-Oe.top-J.y,0),Ut=Math.max(Se.left-Oe.left-J.x,0);let fn=0,gn=0;return fn=ot.width<=Se.width?Ut||-Ft:J.xai&&!this._isInitialRender&&!this._growAfterOpen&&(Ft=J.y-ai/2)}if("end"===ae.overlayX&&!ot||"start"===ae.overlayX&&ot)An=Oe.width-J.x+this._viewportMargin,fn=J.x-this._viewportMargin;else if("start"===ae.overlayX&&!ot||"end"===ae.overlayX&&ot)gn=J.x,fn=Oe.right-J.x;else{const jn=Math.min(Oe.right-J.x+Oe.left,J.x),ai=this._lastBoundingBoxSize.width;fn=2*jn,gn=J.x-jn,fn>ai&&!this._isInitialRender&&!this._growAfterOpen&&(gn=J.x-ai/2)}return{top:Ft,left:gn,bottom:lt,right:An,width:fn,height:Se}}_setBoundingBoxStyles(J,ae){const Oe=this._calculateBoundingBoxRect(J,ae);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const ot={};if(this._hasExactPosition())ot.top=ot.left="0",ot.bottom=ot.right=ot.maxHeight=ot.maxWidth="",ot.width=ot.height="100%";else{const Se=this._overlayRef.getConfig().maxHeight,Ft=this._overlayRef.getConfig().maxWidth;ot.height=(0,I.HM)(Oe.height),ot.top=(0,I.HM)(Oe.top),ot.bottom=(0,I.HM)(Oe.bottom),ot.width=(0,I.HM)(Oe.width),ot.left=(0,I.HM)(Oe.left),ot.right=(0,I.HM)(Oe.right),ot.alignItems="center"===ae.overlayX?"center":"end"===ae.overlayX?"flex-end":"flex-start",ot.justifyContent="center"===ae.overlayY?"center":"bottom"===ae.overlayY?"flex-end":"flex-start",Se&&(ot.maxHeight=(0,I.HM)(Se)),Ft&&(ot.maxWidth=(0,I.HM)(Ft))}this._lastBoundingBoxSize=Oe,me(this._boundingBox.style,ot)}_resetBoundingBoxStyles(){me(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){me(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(J,ae){const Oe={},ot=this._hasExactPosition(),Se=this._hasFlexibleDimensions,Ft=this._overlayRef.getConfig();if(ot){const fn=this._viewportRuler.getViewportScrollPosition();me(Oe,this._getExactOverlayY(ae,J,fn)),me(Oe,this._getExactOverlayX(ae,J,fn))}else Oe.position="static";let lt="",Bt=this._getOffset(ae,"x"),Ut=this._getOffset(ae,"y");Bt&&(lt+=`translateX(${Bt}px) `),Ut&&(lt+=`translateY(${Ut}px)`),Oe.transform=lt.trim(),Ft.maxHeight&&(ot?Oe.maxHeight=(0,I.HM)(Ft.maxHeight):Se&&(Oe.maxHeight="")),Ft.maxWidth&&(ot?Oe.maxWidth=(0,I.HM)(Ft.maxWidth):Se&&(Oe.maxWidth="")),me(this._pane.style,Oe)}_getExactOverlayY(J,ae,Oe){let ot={top:"",bottom:""},Se=this._getOverlayPoint(ae,this._overlayRect,J);return this._isPushed&&(Se=this._pushOverlayOnScreen(Se,this._overlayRect,Oe)),"bottom"===J.overlayY?ot.bottom=this._document.documentElement.clientHeight-(Se.y+this._overlayRect.height)+"px":ot.top=(0,I.HM)(Se.y),ot}_getExactOverlayX(J,ae,Oe){let Ft,ot={left:"",right:""},Se=this._getOverlayPoint(ae,this._overlayRect,J);return this._isPushed&&(Se=this._pushOverlayOnScreen(Se,this._overlayRect,Oe)),Ft=this._isRtl()?"end"===J.overlayX?"left":"right":"end"===J.overlayX?"right":"left","right"===Ft?ot.right=this._document.documentElement.clientWidth-(Se.x+this._overlayRect.width)+"px":ot.left=(0,I.HM)(Se.x),ot}_getScrollVisibility(){const J=this._getOriginRect(),ae=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(ot=>ot.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:St(J,Oe),isOriginOutsideView:xt(J,Oe),isOverlayClipped:St(ae,Oe),isOverlayOutsideView:xt(ae,Oe)}}_subtractOverflows(J,...ae){return ae.reduce((Oe,ot)=>Oe-Math.max(ot,0),J)}_getNarrowedViewportRect(){const J=this._document.documentElement.clientWidth,ae=this._document.documentElement.clientHeight,Oe=this._viewportRuler.getViewportScrollPosition();return{top:Oe.top+this._viewportMargin,left:Oe.left+this._viewportMargin,right:Oe.left+J-this._viewportMargin,bottom:Oe.top+ae-this._viewportMargin,width:J-2*this._viewportMargin,height:ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(J,ae){return"x"===ae?null==J.offsetX?this._offsetX:J.offsetX:null==J.offsetY?this._offsetY:J.offsetY}_validatePositions(){}_addPanelClasses(J){this._pane&&(0,I.Eq)(J).forEach(ae=>{""!==ae&&-1===this._appliedPanelClasses.indexOf(ae)&&(this._appliedPanelClasses.push(ae),this._pane.classList.add(ae))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(J=>{this._pane.classList.remove(J)}),this._appliedPanelClasses=[])}_getOriginRect(){const J=this._origin;if(J instanceof D.SBq)return J.nativeElement.getBoundingClientRect();if(J instanceof Element)return J.getBoundingClientRect();const ae=J.width||0,Oe=J.height||0;return{top:J.y,bottom:J.y+Oe,left:J.x,right:J.x+ae,height:Oe,width:ae}}}function me(Ce,J){for(let ae in J)J.hasOwnProperty(ae)&&(Ce[ae]=J[ae]);return Ce}function tt(Ce){if("number"!=typeof Ce&&null!=Ce){const[J,ae]=Ce.split(Ee);return ae&&"px"!==ae?null:parseFloat(J)}return Ce||null}function he(Ce){return{top:Math.floor(Ce.top),right:Math.floor(Ce.right),bottom:Math.floor(Ce.bottom),left:Math.floor(Ce.left),width:Math.floor(Ce.width),height:Math.floor(Ce.height)}}const bt="cdk-global-overlay-wrapper";class Nt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(J){const ae=J.getConfig();this._overlayRef=J,this._width&&!ae.width&&J.updateSize({width:this._width}),this._height&&!ae.height&&J.updateSize({height:this._height}),J.hostElement.classList.add(bt),this._isDisposed=!1}top(J=""){return this._bottomOffset="",this._topOffset=J,this._alignItems="flex-start",this}left(J=""){return this._xOffset=J,this._xPosition="left",this}bottom(J=""){return this._topOffset="",this._bottomOffset=J,this._alignItems="flex-end",this}right(J=""){return this._xOffset=J,this._xPosition="right",this}start(J=""){return this._xOffset=J,this._xPosition="start",this}end(J=""){return this._xOffset=J,this._xPosition="end",this}width(J=""){return this._overlayRef?this._overlayRef.updateSize({width:J}):this._width=J,this}height(J=""){return this._overlayRef?this._overlayRef.updateSize({height:J}):this._height=J,this}centerHorizontally(J=""){return this.left(J),this._xPosition="center",this}centerVertically(J=""){return this.top(J),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const J=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:ot,height:Se,maxWidth:Ft,maxHeight:lt}=Oe,Bt=!("100%"!==ot&&"100vw"!==ot||Ft&&"100%"!==Ft&&"100vw"!==Ft),Ut=!("100%"!==Se&&"100vh"!==Se||lt&&"100%"!==lt&&"100vh"!==lt),fn=this._xPosition,gn=this._xOffset,An="rtl"===this._overlayRef.getConfig().direction;let jn="",ai="",di="";Bt?di="flex-start":"center"===fn?(di="center",An?ai=gn:jn=gn):An?"left"===fn||"end"===fn?(di="flex-end",jn=gn):("right"===fn||"start"===fn)&&(di="flex-start",ai=gn):"left"===fn||"start"===fn?(di="flex-start",jn=gn):("right"===fn||"end"===fn)&&(di="flex-end",ai=gn),J.position=this._cssPosition,J.marginLeft=Bt?"0":jn,J.marginTop=Ut?"0":this._topOffset,J.marginBottom=this._bottomOffset,J.marginRight=Bt?"0":ai,ae.justifyContent=di,ae.alignItems=Ut?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const J=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement,Oe=ae.style;ae.classList.remove(bt),Oe.justifyContent=Oe.alignItems=J.marginTop=J.marginBottom=J.marginLeft=J.marginRight=J.position="",this._overlayRef=null,this._isDisposed=!0}}let Qt=(()=>{class Ce{constructor(ae,Oe,ot,Se){this._viewportRuler=ae,this._document=Oe,this._platform=ot,this._overlayContainer=Se}global(){return new Nt}flexibleConnectedTo(ae){return new $e(ae,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(e.rL),D.LFG(l.K0),D.LFG(S.t4),D.LFG(dt))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),nn=0,Dn=(()=>{class Ce{constructor(ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An,jn){this.scrollStrategies=ae,this._overlayContainer=Oe,this._componentFactoryResolver=ot,this._positionBuilder=Se,this._keyboardDispatcher=Ft,this._injector=lt,this._ngZone=Bt,this._document=Ut,this._directionality=fn,this._location=gn,this._outsideClickDispatcher=An,this._animationsModuleType=jn}create(ae){const Oe=this._createHostElement(),ot=this._createPaneElement(Oe),Se=this._createPortalOutlet(ot),Ft=new un(ae);return Ft.direction=Ft.direction||this._directionality.value,new at(Se,Oe,ot,Ft,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ae){const Oe=this._document.createElement("div");return Oe.id="cdk-overlay-"+nn++,Oe.classList.add("cdk-overlay-pane"),ae.appendChild(Oe),Oe}_createHostElement(){const ae=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ae),ae}_createPortalOutlet(ae){return this._appRef||(this._appRef=this._injector.get(D.z2F)),new te.u0(ae,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(yt),D.LFG(dt),D.LFG(D._Vd),D.LFG(Qt),D.LFG(gi),D.LFG(D.zs3),D.LFG(D.R0b),D.LFG(l.K0),D.LFG(se.Is),D.LFG(l.Ye),D.LFG(Rn),D.LFG(D.QbO,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();const Ot=[{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"}],rn=new D.OlP("cdk-connected-overlay-scroll-strategy");let vn=(()=>{class Ce{constructor(ae){this.elementRef=ae}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.Y36(D.SBq))};static#t=this.\u0275dir=D.lG2({type:Ce,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return Ce})(),ei=(()=>{class Ce{get offsetX(){return this._offsetX}set offsetX(ae){this._offsetX=ae,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ae){this._offsetY=ae,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ae){this._hasBackdrop=(0,I.Ig)(ae)}get lockPosition(){return this._lockPosition}set lockPosition(ae){this._lockPosition=(0,I.Ig)(ae)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ae){this._flexibleDimensions=(0,I.Ig)(ae)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ae){this._growAfterOpen=(0,I.Ig)(ae)}get push(){return this._push}set push(ae){this._push=(0,I.Ig)(ae)}constructor(ae,Oe,ot,Se,Ft){this._overlay=ae,this._dir=Ft,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ce.w0.EMPTY,this._attachSubscription=ce.w0.EMPTY,this._detachSubscription=ce.w0.EMPTY,this._positionSubscription=ce.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new D.vpe,this.positionChange=new D.vpe,this.attach=new D.vpe,this.detach=new D.vpe,this.overlayKeydown=new D.vpe,this.overlayOutsideClick=new D.vpe,this._templatePortal=new te.UE(Oe,ot),this._scrollStrategyFactory=Se,this.scrollStrategy=this._scrollStrategyFactory()}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(ae){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ae.origin&&this.open&&this._position.apply()),ae.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ot);const ae=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ae.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ae.detachments().subscribe(()=>this.detach.emit()),ae.keydownEvents().subscribe(Oe=>{this.overlayKeydown.next(Oe),Oe.keyCode===Re.hY&&!this.disableClose&&!(0,Re.Vb)(Oe)&&(Oe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Oe=>{this.overlayOutsideClick.next(Oe)})}_buildConfig(){const ae=this._position=this.positionStrategy||this._createPositionStrategy(),Oe=new un({direction:this._dir,positionStrategy:ae,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Oe.width=this.width),(this.height||0===this.height)&&(Oe.height=this.height),(this.minWidth||0===this.minWidth)&&(Oe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Oe.minHeight=this.minHeight),this.backdropClass&&(Oe.backdropClass=this.backdropClass),this.panelClass&&(Oe.panelClass=this.panelClass),Oe}_updatePositionStrategy(ae){const Oe=this.positions.map(ot=>({originX:ot.originX,originY:ot.originY,overlayX:ot.overlayX,overlayY:ot.overlayY,offsetX:ot.offsetX||this.offsetX,offsetY:ot.offsetY||this.offsetY,panelClass:ot.panelClass||void 0}));return ae.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Oe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ae=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ae),ae}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof vn?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(ae=>{this.backdropClick.emit(ae)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ue(Ce,J=!1){return(0,ee.e)((ae,Oe)=>{let ot=0;ae.subscribe((0,re.x)(Oe,Se=>{const Ft=Ce(Se,ot++);(Ft||J)&&Oe.next(Se),!Ft&&Oe.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(ae=>{this.positionChange.emit(ae),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.Y36(Dn),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(rn),D.Y36(se.Is,8))};static#t=this.\u0275dir=D.lG2({type:Ce,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"],standalone:!0,features:[D.TTD]})}return Ce})();const Ve={provide:rn,deps:[Dn],useFactory:function Wn(Ce){return()=>Ce.scrollStrategies.reposition()}};let ct=(()=>{class Ce{static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)};static#t=this.\u0275mod=D.oAB({type:Ce});static#n=this.\u0275inj=D.cJS({providers:[Dn,Ve],imports:[se.vT,te.eL,e.Cl,e.Cl]})}return Ce})()},2831:(ft,Ie,C)=>{"use strict";C.d(Ie,{Mq:()=>oe,Oy:()=>je,ht:()=>Ge,i$:()=>ue,kV:()=>mt,sA:()=>Lt,t4:()=>I});var e=C(5879),l=C(6814);let D;try{D=typeof Intl<"u"&&Intl.v8BreakIterator}catch{D=!1}let ee,te,_e,I=(()=>{class Tt{constructor(St){this._platformId=St,this.isBrowser=this._platformId?(0,l.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&&!D)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(Zt){return new(Zt||Tt)(e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"})}return Tt})();function ue(Tt){return function re(){if(null==ee&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ee=!0}))}finally{ee=ee||!1}return ee}()?Tt:!!Tt.capture}function oe(){if(null==te){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return te=!1,te;if("scrollBehavior"in document.documentElement.style)te=!0;else{const Tt=Element.prototype.scrollTo;te=!!Tt&&!/\{\s*\[native code\]\s*\}/.test(Tt.toString())}}return te}function mt(Tt){if(function Re(){if(null==_e){const Tt=typeof document<"u"?document.head:null;_e=!(!Tt||!Tt.createShadowRoot&&!Tt.attachShadow)}return _e}()){const xt=Tt.getRootNode?Tt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&xt instanceof ShadowRoot)return xt}return null}function Ge(){let Tt=typeof document<"u"&&document?document.activeElement:null;for(;Tt&&Tt.shadowRoot;){const xt=Tt.shadowRoot.activeElement;if(xt===Tt)break;Tt=xt}return Tt}function Lt(Tt){return Tt.composedPath?Tt.composedPath()[0]:Tt.target}function je(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(ft,Ie,C)=>{"use strict";C.d(Ie,{C5:()=>re,Pl:()=>Ge,UE:()=>ue,eL:()=>je,en:()=>te,ig:()=>Re,u0:()=>ce});var e=C(5879),l=C(6814);class ee{attach(St){return this._attachedHost=St,St.attach(this)}detach(){let St=this._attachedHost;null!=St&&(this._attachedHost=null,St.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(St){this._attachedHost=St}}class re extends ee{constructor(St,Zt,yt,un,Jt){super(),this.component=St,this.viewContainerRef=Zt,this.injector=yt,this.componentFactoryResolver=un,this.projectableNodes=Jt}}class ue extends ee{constructor(St,Zt,yt,un){super(),this.templateRef=St,this.viewContainerRef=Zt,this.context=yt,this.injector=un}get origin(){return this.templateRef.elementRef}attach(St,Zt=this.context){return this.context=Zt,super.attach(St)}detach(){return this.context=void 0,super.detach()}}class se extends ee{constructor(St){super(),this.element=St instanceof e.SBq?St.nativeElement:St}}class te{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(St){return St instanceof re?(this._attachedPortal=St,this.attachComponentPortal(St)):St instanceof ue?(this._attachedPortal=St,this.attachTemplatePortal(St)):this.attachDomPortal&&St instanceof se?(this._attachedPortal=St,this.attachDomPortal(St)):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(St){this._disposeFn=St}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ce extends te{constructor(St,Zt,yt,un,Jt){super(),this.outletElement=St,this._componentFactoryResolver=Zt,this._appRef=yt,this._defaultInjector=un,this.attachDomPortal=tn=>{const wn=tn.element,Ln=this._document.createComment("dom-portal");wn.parentNode.insertBefore(Ln,wn),this.outletElement.appendChild(wn),this._attachedPortal=tn,super.setDisposeFn(()=>{Ln.parentNode&&Ln.parentNode.replaceChild(wn,Ln)})},this._document=Jt}attachComponentPortal(St){const yt=(St.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(St.component);let un;return St.viewContainerRef?(un=St.viewContainerRef.createComponent(yt,St.viewContainerRef.length,St.injector||St.viewContainerRef.injector,St.projectableNodes||void 0),this.setDisposeFn(()=>un.destroy())):(un=yt.create(St.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(un.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(un.hostView),un.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(un)),this._attachedPortal=St,un}attachTemplatePortal(St){let Zt=St.viewContainerRef,yt=Zt.createEmbeddedView(St.templateRef,St.context,{injector:St.injector});return yt.rootNodes.forEach(un=>this.outletElement.appendChild(un)),yt.detectChanges(),this.setDisposeFn(()=>{let un=Zt.indexOf(yt);-1!==un&&Zt.remove(un)}),this._attachedPortal=St,yt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(St){return St.hostView.rootNodes[0]}}let Re=(()=>{class xt extends ue{constructor(Zt,yt){super(Zt,yt)}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.Y36(e.Rgc),e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:xt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]})}return xt})(),Ge=(()=>{class xt extends te{constructor(Zt,yt,un){super(),this._componentFactoryResolver=Zt,this._viewContainerRef=yt,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=Jt=>{const tn=Jt.element,wn=this._document.createComment("dom-portal");Jt.setAttachedHost(this),tn.parentNode.insertBefore(wn,tn),this._getRootNode().appendChild(tn),this._attachedPortal=Jt,super.setDisposeFn(()=>{wn.parentNode&&wn.parentNode.replaceChild(tn,wn)})},this._document=un}get portal(){return this._attachedPortal}set portal(Zt){this.hasAttached()&&!Zt&&!this._isInitialized||(this.hasAttached()&&super.detach(),Zt&&super.attach(Zt),this._attachedPortal=Zt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Zt){Zt.setAttachedHost(this);const yt=null!=Zt.viewContainerRef?Zt.viewContainerRef:this._viewContainerRef,Jt=(Zt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Zt.component),tn=yt.createComponent(Jt,yt.length,Zt.injector||yt.injector,Zt.projectableNodes||void 0);return yt!==this._viewContainerRef&&this._getRootNode().appendChild(tn.hostView.rootNodes[0]),super.setDisposeFn(()=>tn.destroy()),this._attachedPortal=Zt,this._attachedRef=tn,this.attached.emit(tn),tn}attachTemplatePortal(Zt){Zt.setAttachedHost(this);const yt=this._viewContainerRef.createEmbeddedView(Zt.templateRef,Zt.context,{injector:Zt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Zt,this._attachedRef=yt,this.attached.emit(yt),yt}_getRootNode(){const Zt=this._viewContainerRef.element.nativeElement;return Zt.nodeType===Zt.ELEMENT_NODE?Zt:Zt.parentNode}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(l.K0))};static#t=this.\u0275dir=e.lG2({type:xt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]})}return xt})(),je=(()=>{class xt{static#e=this.\u0275fac=function(yt){return new(yt||xt)};static#t=this.\u0275mod=e.oAB({type:xt});static#n=this.\u0275inj=e.cJS({})}return xt})()},6672:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cl:()=>Rn,ZD:()=>gi,mF:()=>je,rL:()=>St});var e=C(2605),l=C(5879),D=C(8645),I=C(2096),S=C(5592),w=C(2438),ee=(C(927),C(6410),C(9028)),re=C(2181),ue=C(2831),se=C(6814),te=C(9388);let je=(()=>{class dt{constructor(Be,Ee,$e){this._ngZone=Be,this._platform=Ee,this._scrolled=new D.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=$e}register(Be){this.scrollContainers.has(Be)||this.scrollContainers.set(Be,Be.elementScrolled().subscribe(()=>this._scrolled.next(Be)))}deregister(Be){const Ee=this.scrollContainers.get(Be);Ee&&(Ee.unsubscribe(),this.scrollContainers.delete(Be))}scrolled(Be=20){return this._platform.isBrowser?new S.y(Ee=>{this._globalSubscription||this._addGlobalListener();const $e=Be>0?this._scrolled.pipe((0,ee.e)(Be)).subscribe(Ee):this._scrolled.subscribe(Ee);return this._scrolledCount++,()=>{$e.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,I.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Be,Ee)=>this.deregister(Ee)),this._scrolled.complete()}ancestorScrolled(Be,Ee){const $e=this.getAncestorScrollContainers(Be);return this.scrolled(Ee).pipe((0,re.h)(me=>!me||$e.indexOf(me)>-1))}getAncestorScrollContainers(Be){const Ee=[];return this.scrollContainers.forEach(($e,me)=>{this._scrollableContainsElement(me,Be)&&Ee.push(me)}),Ee}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Be,Ee){let $e=(0,e.fI)(Ee),me=Be.getElementRef().nativeElement;do{if($e==me)return!0}while($e=$e.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Be=this._getWindow();return(0,w.R)(Be.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(Ee){return new(Ee||dt)(l.LFG(l.R0b),l.LFG(ue.t4),l.LFG(se.K0,8))};static#t=this.\u0275prov=l.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"})}return dt})(),St=(()=>{class dt{constructor(Be,Ee,$e){this._platform=Be,this._change=new D.x,this._changeListener=me=>{this._change.next(me)},this._document=$e,Ee.runOutsideAngular(()=>{if(Be.isBrowser){const me=this._getWindow();me.addEventListener("resize",this._changeListener),me.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Be=this._getWindow();Be.removeEventListener("resize",this._changeListener),Be.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Be={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Be}getViewportRect(){const Be=this.getViewportScrollPosition(),{width:Ee,height:$e}=this.getViewportSize();return{top:Be.top,left:Be.left,bottom:Be.top+$e,right:Be.left+Ee,height:$e,width:Ee}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Be=this._document,Ee=this._getWindow(),$e=Be.documentElement,me=$e.getBoundingClientRect();return{top:-me.top||Be.body.scrollTop||Ee.scrollY||$e.scrollTop||0,left:-me.left||Be.body.scrollLeft||Ee.scrollX||$e.scrollLeft||0}}change(Be=20){return Be>0?this._change.pipe((0,ee.e)(Be)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Be=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Be.innerWidth,height:Be.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(Ee){return new(Ee||dt)(l.LFG(ue.t4),l.LFG(l.R0b),l.LFG(se.K0,8))};static#t=this.\u0275prov=l.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"})}return dt})(),gi=(()=>{class dt{static#e=this.\u0275fac=function(Ee){return new(Ee||dt)};static#t=this.\u0275mod=l.oAB({type:dt});static#n=this.\u0275inj=l.cJS({})}return dt})(),Rn=(()=>{class dt{static#e=this.\u0275fac=function(Ee){return new(Ee||dt)};static#t=this.\u0275mod=l.oAB({type:dt});static#n=this.\u0275inj=l.cJS({imports:[te.vT,gi,te.vT,gi]})}return dt})()},6814:(ft,Ie,C)=>{"use strict";C.d(Ie,{Do:()=>_e,ED:()=>Ba,EM:()=>Ko,HT:()=>I,JF:()=>Sr,JJ:()=>er,K0:()=>w,Mn:()=>Yn,Mx:()=>Bi,NF:()=>qs,O5:()=>Fr,Ov:()=>Sa,PC:()=>Ds,PM:()=>ba,RF:()=>yr,S$:()=>te,Tn:()=>yt,UT:()=>ti,V_:()=>Z,Ye:()=>Re,ax:()=>br,b0:()=>ce,bD:()=>nr,ez:()=>Ao,mk:()=>tr,n9:()=>Gs,p6:()=>Oe,q:()=>D,sg:()=>br,tP:()=>$s,uU:()=>dr,w_:()=>S,x:()=>Zt});var e=C(5879);let l=null;function D(){return l}function I(K){l||(l=K)}class S{}const w=new e.OlP("DocumentToken");let n=(()=>{class K{historyGo(ge){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return(0,e.f3M)(ee)},providedIn:"platform"})}return K})();const Z=new e.OlP("Location Initialized");let ee=(()=>{class K extends n{constructor(){super(),this._doc=(0,e.f3M)(w),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(ge){const Ne=D().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("popstate",ge,!1),()=>Ne.removeEventListener("popstate",ge)}onHashChange(ge){const Ne=D().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("hashchange",ge,!1),()=>Ne.removeEventListener("hashchange",ge)}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(ge){this._location.pathname=ge}pushState(ge,Ne,kt){this._history.pushState(ge,Ne,kt)}replaceState(ge,Ne,kt){this._history.replaceState(ge,Ne,kt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ge=0){this._history.go(ge)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return new K},providedIn:"platform"})}return K})();function re(K,Ue){if(0==K.length)return Ue;if(0==Ue.length)return K;let ge=0;return K.endsWith("/")&&ge++,Ue.startsWith("/")&&ge++,2==ge?K+Ue.substring(1):1==ge?K+Ue:K+"/"+Ue}function ue(K){const Ue=K.match(/#|\?|$/),ge=Ue&&Ue.index||K.length;return K.slice(0,ge-("/"===K[ge-1]?1:0))+K.slice(ge)}function se(K){return K&&"?"!==K[0]?"?"+K:K}let te=(()=>{class K{historyGo(ge){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return(0,e.f3M)(ce)},providedIn:"root"})}return K})();const oe=new e.OlP("appBaseHref");let ce=(()=>{class K extends te{constructor(ge,Ne){super(),this._platformLocation=ge,this._removeListenerFns=[],this._baseHref=Ne??this._platformLocation.getBaseHrefFromDOM()??(0,e.f3M)(w).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ge){this._removeListenerFns.push(this._platformLocation.onPopState(ge),this._platformLocation.onHashChange(ge))}getBaseHref(){return this._baseHref}prepareExternalUrl(ge){return re(this._baseHref,ge)}path(ge=!1){const Ne=this._platformLocation.pathname+se(this._platformLocation.search),kt=this._platformLocation.hash;return kt&&ge?`${Ne}${kt}`:Ne}pushState(ge,Ne,kt,pn){const Sn=this.prepareExternalUrl(kt+se(pn));this._platformLocation.pushState(ge,Ne,Sn)}replaceState(ge,Ne,kt,pn){const Sn=this.prepareExternalUrl(kt+se(pn));this._platformLocation.replaceState(ge,Ne,Sn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ge=0){this._platformLocation.historyGo?.(ge)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(n),e.LFG(oe,8))};static#t=this.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})(),_e=(()=>{class K extends te{constructor(ge,Ne){super(),this._platformLocation=ge,this._baseHref="",this._removeListenerFns=[],null!=Ne&&(this._baseHref=Ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ge){this._removeListenerFns.push(this._platformLocation.onPopState(ge),this._platformLocation.onHashChange(ge))}getBaseHref(){return this._baseHref}path(ge=!1){let Ne=this._platformLocation.hash;return null==Ne&&(Ne="#"),Ne.length>0?Ne.substring(1):Ne}prepareExternalUrl(ge){const Ne=re(this._baseHref,ge);return Ne.length>0?"#"+Ne:Ne}pushState(ge,Ne,kt,pn){let Sn=this.prepareExternalUrl(kt+se(pn));0==Sn.length&&(Sn=this._platformLocation.pathname),this._platformLocation.pushState(ge,Ne,Sn)}replaceState(ge,Ne,kt,pn){let Sn=this.prepareExternalUrl(kt+se(pn));0==Sn.length&&(Sn=this._platformLocation.pathname),this._platformLocation.replaceState(ge,Ne,Sn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ge=0){this._platformLocation.historyGo?.(ge)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(n),e.LFG(oe,8))};static#t=this.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac})}return K})(),Re=(()=>{class K{constructor(ge){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ge;const Ne=this._locationStrategy.getBaseHref();this._basePath=function je(K){if(new RegExp("^(https?:)?//").test(K)){const[,ge]=K.split(/\/\/[^\/]+/);return ge}return K}(ue(Lt(Ne))),this._locationStrategy.onPopState(kt=>{this._subject.emit({url:this.path(!0),pop:!0,state:kt.state,type:kt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(ge=!1){return this.normalize(this._locationStrategy.path(ge))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ge,Ne=""){return this.path()==this.normalize(ge+se(Ne))}normalize(ge){return K.stripTrailingSlash(function Ge(K,Ue){if(!K||!Ue.startsWith(K))return Ue;const ge=Ue.substring(K.length);return""===ge||["/",";","?","#"].includes(ge[0])?ge:Ue}(this._basePath,Lt(ge)))}prepareExternalUrl(ge){return ge&&"/"!==ge[0]&&(ge="/"+ge),this._locationStrategy.prepareExternalUrl(ge)}go(ge,Ne="",kt=null){this._locationStrategy.pushState(kt,"",ge,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(ge+se(Ne)),kt)}replaceState(ge,Ne="",kt=null){this._locationStrategy.replaceState(kt,"",ge,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(ge+se(Ne)),kt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ge=0){this._locationStrategy.historyGo?.(ge)}onUrlChange(ge){return this._urlChangeListeners.push(ge),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ne=>{this._notifyUrlChangeListeners(Ne.url,Ne.state)})),()=>{const Ne=this._urlChangeListeners.indexOf(ge);this._urlChangeListeners.splice(Ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ge="",Ne){this._urlChangeListeners.forEach(kt=>kt(ge,Ne))}subscribe(ge,Ne,kt){return this._subject.subscribe({next:ge,error:Ne,complete:kt})}static#e=this.normalizeQueryParams=se;static#t=this.joinWithSlash=re;static#n=this.stripTrailingSlash=ue;static#i=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(te))};static#r=this.\u0275prov=e.Yz7({token:K,factory:function(){return function mt(){return new Re((0,e.LFG)(te))}()},providedIn:"root"})}return K})();function Lt(K){return K.replace(/\/index.html$/,"")}var xt=function(K){return K[K.Decimal=0]="Decimal",K[K.Percent=1]="Percent",K[K.Currency=2]="Currency",K[K.Scientific=3]="Scientific",K}(xt||{}),Zt=function(K){return K[K.Format=0]="Format",K[K.Standalone=1]="Standalone",K}(Zt||{}),yt=function(K){return K[K.Narrow=0]="Narrow",K[K.Abbreviated=1]="Abbreviated",K[K.Wide=2]="Wide",K[K.Short=3]="Short",K}(yt||{}),un=function(K){return K[K.Short=0]="Short",K[K.Medium=1]="Medium",K[K.Long=2]="Long",K[K.Full=3]="Full",K}(un||{}),Jt=function(K){return K[K.Decimal=0]="Decimal",K[K.Group=1]="Group",K[K.List=2]="List",K[K.PercentSign=3]="PercentSign",K[K.PlusSign=4]="PlusSign",K[K.MinusSign=5]="MinusSign",K[K.Exponential=6]="Exponential",K[K.SuperscriptingExponent=7]="SuperscriptingExponent",K[K.PerMille=8]="PerMille",K[K.Infinity=9]="Infinity",K[K.NaN=10]="NaN",K[K.TimeSeparator=11]="TimeSeparator",K[K.CurrencyDecimal=12]="CurrencyDecimal",K[K.CurrencyGroup=13]="CurrencyGroup",K}(Jt||{});function Yn(K,Ue,ge){const Ne=(0,e.cg1)(K),pn=Ot([Ne[e.wAp.DaysFormat],Ne[e.wAp.DaysStandalone]],Ue);return Ot(pn,ge)}function ti(K,Ue,ge){const Ne=(0,e.cg1)(K),pn=Ot([Ne[e.wAp.MonthsFormat],Ne[e.wAp.MonthsStandalone]],Ue);return Ot(pn,ge)}function at(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.DateFormat],Ue)}function Be(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.TimeFormat],Ue)}function Ee(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.DateTimeFormat],Ue)}function $e(K,Ue){const ge=(0,e.cg1)(K),Ne=ge[e.wAp.NumberSymbols][Ue];if(typeof Ne>"u"){if(Ue===Jt.CurrencyDecimal)return ge[e.wAp.NumberSymbols][Jt.Decimal];if(Ue===Jt.CurrencyGroup)return ge[e.wAp.NumberSymbols][Jt.Group]}return Ne}function Nt(K){if(!K[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${K[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ot(K,Ue){for(let ge=Ue;ge>-1;ge--)if(typeof K[ge]<"u")return K[ge];throw new Error("Locale data API: locale data undefined")}function rn(K){const[Ue,ge]=K.split(":");return{hours:+Ue,minutes:+ge}}const Ve=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ct={},Ct=/((?:[^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 Ce=function(K){return K[K.Short=0]="Short",K[K.ShortGMT=1]="ShortGMT",K[K.Long=2]="Long",K[K.Extended=3]="Extended",K}(Ce||{}),J=function(K){return K[K.FullYear=0]="FullYear",K[K.Month=1]="Month",K[K.Date=2]="Date",K[K.Hours=3]="Hours",K[K.Minutes=4]="Minutes",K[K.Seconds=5]="Seconds",K[K.FractionalSeconds=6]="FractionalSeconds",K[K.Day=7]="Day",K}(J||{}),ae=function(K){return K[K.DayPeriods=0]="DayPeriods",K[K.Days=1]="Days",K[K.Months=2]="Months",K[K.Eras=3]="Eras",K}(ae||{});function Oe(K,Ue,ge,Ne){let kt=function We(K){if(be(K))return K;if("number"==typeof K&&!isNaN(K))return new Date(K);if("string"==typeof K){if(K=K.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(K)){const[kt,pn=1,Sn=1]=K.split("-").map(li=>+li);return ot(kt,pn-1,Sn)}const ge=parseFloat(K);if(!isNaN(K-ge))return new Date(ge);let Ne;if(Ne=K.match(Ve))return function ze(K){const Ue=new Date(0);let ge=0,Ne=0;const kt=K[8]?Ue.setUTCFullYear:Ue.setFullYear,pn=K[8]?Ue.setUTCHours:Ue.setHours;K[9]&&(ge=Number(K[9]+K[10]),Ne=Number(K[9]+K[11])),kt.call(Ue,Number(K[1]),Number(K[2])-1,Number(K[3]));const Sn=Number(K[4]||0)-ge,li=Number(K[5]||0)-Ne,ur=Number(K[6]||0),hr=Math.floor(1e3*parseFloat("0."+(K[7]||0)));return pn.call(Ue,Sn,li,ur,hr),Ue}(Ne)}const Ue=new Date(K);if(!be(Ue))throw new Error(`Unable to convert "${K}" into a date`);return Ue}(K);Ue=Se(ge,Ue)||Ue;let li,Sn=[];for(;Ue;){if(li=Ct.exec(Ue),!li){Sn.push(Ue);break}{Sn=Sn.concat(li.slice(1));const ar=Sn.pop();if(!ar)break;Ue=ar}}let ur=kt.getTimezoneOffset();Ne&&(ur=ve(Ne,ur),kt=function ut(K,Ue,ge){const Ne=ge?-1:1,kt=K.getTimezoneOffset();return function Pe(K,Ue){return(K=new Date(K.getTime())).setMinutes(K.getMinutes()+Ue),K}(K,Ne*(ve(Ue,kt)-kt))}(kt,Ne,!0));let hr="";return Sn.forEach(ar=>{const xi=function U(K){if(G[K])return G[K];let Ue;switch(K){case"G":case"GG":case"GGG":Ue=gn(ae.Eras,yt.Abbreviated);break;case"GGGG":Ue=gn(ae.Eras,yt.Wide);break;case"GGGGG":Ue=gn(ae.Eras,yt.Narrow);break;case"y":Ue=Ut(J.FullYear,1,0,!1,!0);break;case"yy":Ue=Ut(J.FullYear,2,0,!0,!0);break;case"yyy":Ue=Ut(J.FullYear,3,0,!1,!0);break;case"yyyy":Ue=Ut(J.FullYear,4,0,!1,!0);break;case"Y":Ue=_t(1);break;case"YY":Ue=_t(2,!0);break;case"YYY":Ue=_t(3);break;case"YYYY":Ue=_t(4);break;case"M":case"L":Ue=Ut(J.Month,1,1);break;case"MM":case"LL":Ue=Ut(J.Month,2,1);break;case"MMM":Ue=gn(ae.Months,yt.Abbreviated);break;case"MMMM":Ue=gn(ae.Months,yt.Wide);break;case"MMMMM":Ue=gn(ae.Months,yt.Narrow);break;case"LLL":Ue=gn(ae.Months,yt.Abbreviated,Zt.Standalone);break;case"LLLL":Ue=gn(ae.Months,yt.Wide,Zt.Standalone);break;case"LLLLL":Ue=gn(ae.Months,yt.Narrow,Zt.Standalone);break;case"w":Ue=qt(1);break;case"ww":Ue=qt(2);break;case"W":Ue=qt(1,!0);break;case"d":Ue=Ut(J.Date,1);break;case"dd":Ue=Ut(J.Date,2);break;case"c":case"cc":Ue=Ut(J.Day,1);break;case"ccc":Ue=gn(ae.Days,yt.Abbreviated,Zt.Standalone);break;case"cccc":Ue=gn(ae.Days,yt.Wide,Zt.Standalone);break;case"ccccc":Ue=gn(ae.Days,yt.Narrow,Zt.Standalone);break;case"cccccc":Ue=gn(ae.Days,yt.Short,Zt.Standalone);break;case"E":case"EE":case"EEE":Ue=gn(ae.Days,yt.Abbreviated);break;case"EEEE":Ue=gn(ae.Days,yt.Wide);break;case"EEEEE":Ue=gn(ae.Days,yt.Narrow);break;case"EEEEEE":Ue=gn(ae.Days,yt.Short);break;case"a":case"aa":case"aaa":Ue=gn(ae.DayPeriods,yt.Abbreviated);break;case"aaaa":Ue=gn(ae.DayPeriods,yt.Wide);break;case"aaaaa":Ue=gn(ae.DayPeriods,yt.Narrow);break;case"b":case"bb":case"bbb":Ue=gn(ae.DayPeriods,yt.Abbreviated,Zt.Standalone,!0);break;case"bbbb":Ue=gn(ae.DayPeriods,yt.Wide,Zt.Standalone,!0);break;case"bbbbb":Ue=gn(ae.DayPeriods,yt.Narrow,Zt.Standalone,!0);break;case"B":case"BB":case"BBB":Ue=gn(ae.DayPeriods,yt.Abbreviated,Zt.Format,!0);break;case"BBBB":Ue=gn(ae.DayPeriods,yt.Wide,Zt.Format,!0);break;case"BBBBB":Ue=gn(ae.DayPeriods,yt.Narrow,Zt.Format,!0);break;case"h":Ue=Ut(J.Hours,1,-12);break;case"hh":Ue=Ut(J.Hours,2,-12);break;case"H":Ue=Ut(J.Hours,1);break;case"HH":Ue=Ut(J.Hours,2);break;case"m":Ue=Ut(J.Minutes,1);break;case"mm":Ue=Ut(J.Minutes,2);break;case"s":Ue=Ut(J.Seconds,1);break;case"ss":Ue=Ut(J.Seconds,2);break;case"S":Ue=Ut(J.FractionalSeconds,1);break;case"SS":Ue=Ut(J.FractionalSeconds,2);break;case"SSS":Ue=Ut(J.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ue=jn(Ce.Short);break;case"ZZZZZ":Ue=jn(Ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ue=jn(Ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ue=jn(Ce.Long);break;default:return null}return G[K]=Ue,Ue}(ar);hr+=xi?xi(kt,ge,ur):"''"===ar?"'":ar.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),hr}function ot(K,Ue,ge){const Ne=new Date(0);return Ne.setFullYear(K,Ue,ge),Ne.setHours(0,0,0),Ne}function Se(K,Ue){const ge=function wn(K){return(0,e.cg1)(K)[e.wAp.LocaleId]}(K);if(ct[ge]=ct[ge]||{},ct[ge][Ue])return ct[ge][Ue];let Ne="";switch(Ue){case"shortDate":Ne=at(K,un.Short);break;case"mediumDate":Ne=at(K,un.Medium);break;case"longDate":Ne=at(K,un.Long);break;case"fullDate":Ne=at(K,un.Full);break;case"shortTime":Ne=Be(K,un.Short);break;case"mediumTime":Ne=Be(K,un.Medium);break;case"longTime":Ne=Be(K,un.Long);break;case"fullTime":Ne=Be(K,un.Full);break;case"short":const kt=Se(K,"shortTime"),pn=Se(K,"shortDate");Ne=Ft(Ee(K,un.Short),[kt,pn]);break;case"medium":const Sn=Se(K,"mediumTime"),li=Se(K,"mediumDate");Ne=Ft(Ee(K,un.Medium),[Sn,li]);break;case"long":const ur=Se(K,"longTime"),hr=Se(K,"longDate");Ne=Ft(Ee(K,un.Long),[ur,hr]);break;case"full":const ar=Se(K,"fullTime"),xi=Se(K,"fullDate");Ne=Ft(Ee(K,un.Full),[ar,xi])}return Ne&&(ct[ge][Ue]=Ne),Ne}function Ft(K,Ue){return Ue&&(K=K.replace(/\{([^}]+)}/g,function(ge,Ne){return null!=Ue&&Ne in Ue?Ue[Ne]:ge})),K}function lt(K,Ue,ge="-",Ne,kt){let pn="";(K<0||kt&&K<=0)&&(kt?K=1-K:(K=-K,pn=ge));let Sn=String(K);for(;Sn.length0||li>-ge)&&(li+=ge),K===J.Hours)0===li&&-12===ge&&(li=12);else if(K===J.FractionalSeconds)return function Bt(K,Ue){return lt(K,3).substring(0,Ue)}(li,Ue);const ur=$e(Sn,Jt.MinusSign);return lt(li,Ue,ur,Ne,kt)}}function gn(K,Ue,ge=Zt.Format,Ne=!1){return function(kt,pn){return function An(K,Ue,ge,Ne,kt,pn){switch(ge){case ae.Months:return ti(Ue,kt,Ne)[K.getMonth()];case ae.Days:return Yn(Ue,kt,Ne)[K.getDay()];case ae.DayPeriods:const Sn=K.getHours(),li=K.getMinutes();if(pn){const hr=function Qt(K){const Ue=(0,e.cg1)(K);return Nt(Ue),(Ue[e.wAp.ExtraData][2]||[]).map(Ne=>"string"==typeof Ne?rn(Ne):[rn(Ne[0]),rn(Ne[1])])}(Ue),ar=function nn(K,Ue,ge){const Ne=(0,e.cg1)(K);Nt(Ne);const pn=Ot([Ne[e.wAp.ExtraData][0],Ne[e.wAp.ExtraData][1]],Ue)||[];return Ot(pn,ge)||[]}(Ue,kt,Ne),xi=hr.findIndex(Ar=>{if(Array.isArray(Ar)){const[Nr,mr]=Ar,vs=Sn>=Nr.hours&&li>=Nr.minutes,bs=Sn0?Math.floor(kt/60):Math.ceil(kt/60);switch(K){case Ce.Short:return(kt>=0?"+":"")+lt(Sn,2,pn)+lt(Math.abs(kt%60),2,pn);case Ce.ShortGMT:return"GMT"+(kt>=0?"+":"")+lt(Sn,1,pn);case Ce.Long:return"GMT"+(kt>=0?"+":"")+lt(Sn,2,pn)+":"+lt(Math.abs(kt%60),2,pn);case Ce.Extended:return 0===Ne?"Z":(kt>=0?"+":"")+lt(Sn,2,pn)+":"+lt(Math.abs(kt%60),2,pn);default:throw new Error(`Unknown zone width "${K}"`)}}}const ai=0,di=4;function Jn(K){return ot(K.getFullYear(),K.getMonth(),K.getDate()+(di-K.getDay()))}function qt(K,Ue=!1){return function(ge,Ne){let kt;if(Ue){const pn=new Date(ge.getFullYear(),ge.getMonth(),1).getDay()-1,Sn=ge.getDate();kt=1+Math.floor((Sn+pn)/7)}else{const pn=Jn(ge),Sn=function oi(K){const Ue=ot(K,ai,1).getDay();return ot(K,0,1+(Ue<=di?di:di+7)-Ue)}(pn.getFullYear()),li=pn.getTime()-Sn.getTime();kt=1+Math.round(li/6048e5)}return lt(kt,K,$e(Ne,Jt.MinusSign))}}function _t(K,Ue=!1){return function(ge,Ne){return lt(Jn(ge).getFullYear(),K,$e(Ne,Jt.MinusSign),Ue)}}const G={};function ve(K,Ue){K=K.replace(/:/g,"");const ge=Date.parse("Jan 01, 1970 00:00:00 "+K)/6e4;return isNaN(ge)?Ue:ge}function be(K){return K instanceof Date&&!isNaN(K.valueOf())}const Te=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Vn(K){const Ue=parseInt(K);if(isNaN(Ue))throw new Error("Invalid integer literal when parsing "+K);return Ue}function Bi(K,Ue){Ue=encodeURIComponent(Ue);for(const ge of K.split(";")){const Ne=ge.indexOf("="),[kt,pn]=-1==Ne?[ge,""]:[ge.slice(0,Ne),ge.slice(Ne+1)];if(kt.trim()===Ue)return decodeURIComponent(pn)}return null}const co=/\s+/,Ji=[];let tr=(()=>{class K{constructor(ge,Ne,kt,pn){this._iterableDiffers=ge,this._keyValueDiffers=Ne,this._ngEl=kt,this._renderer=pn,this.initialClasses=Ji,this.stateMap=new Map}set klass(ge){this.initialClasses=null!=ge?ge.trim().split(co):Ji}set ngClass(ge){this.rawClass="string"==typeof ge?ge.trim().split(co):ge}ngDoCheck(){for(const Ne of this.initialClasses)this._updateState(Ne,!0);const ge=this.rawClass;if(Array.isArray(ge)||ge instanceof Set)for(const Ne of ge)this._updateState(Ne,!0);else if(null!=ge)for(const Ne of Object.keys(ge))this._updateState(Ne,!!ge[Ne]);this._applyStateDiff()}_updateState(ge,Ne){const kt=this.stateMap.get(ge);void 0!==kt?(kt.enabled!==Ne&&(kt.changed=!0,kt.enabled=Ne),kt.touched=!0):this.stateMap.set(ge,{enabled:Ne,changed:!0,touched:!0})}_applyStateDiff(){for(const ge of this.stateMap){const Ne=ge[0],kt=ge[1];kt.changed?(this._toggleClass(Ne,kt.enabled),kt.changed=!1):kt.touched||(kt.enabled&&this._toggleClass(Ne,!1),this.stateMap.delete(Ne)),kt.touched=!1}}_toggleClass(ge,Ne){(ge=ge.trim()).length>0&&ge.split(co).forEach(kt=>{Ne?this._renderer.addClass(this._ngEl.nativeElement,kt):this._renderer.removeClass(this._ngEl.nativeElement,kt)})}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return K})();class pr{constructor(Ue,ge,Ne,kt){this.$implicit=Ue,this.ngForOf=ge,this.index=Ne,this.count=kt}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 br=(()=>{class K{set ngForOf(ge){this._ngForOf=ge,this._ngForOfDirty=!0}set ngForTrackBy(ge){this._trackByFn=ge}get ngForTrackBy(){return this._trackByFn}constructor(ge,Ne,kt){this._viewContainer=ge,this._template=Ne,this._differs=kt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(ge){ge&&(this._template=ge)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ge=this._ngForOf;!this._differ&&ge&&(this._differ=this._differs.find(ge).create(this.ngForTrackBy))}if(this._differ){const ge=this._differ.diff(this._ngForOf);ge&&this._applyChanges(ge)}}_applyChanges(ge){const Ne=this._viewContainer;ge.forEachOperation((kt,pn,Sn)=>{if(null==kt.previousIndex)Ne.createEmbeddedView(this._template,new pr(kt.item,this._ngForOf,-1,-1),null===Sn?void 0:Sn);else if(null==Sn)Ne.remove(null===pn?void 0:pn);else if(null!==pn){const li=Ne.get(pn);Ne.move(li,Sn),$n(li,kt)}});for(let kt=0,pn=Ne.length;kt{$n(Ne.get(kt.currentIndex),kt)})}static ngTemplateContextGuard(ge,Ne){return!0}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return K})();function $n(K,Ue){K.context.$implicit=Ue.item}let Fr=(()=>{class K{constructor(ge,Ne){this._viewContainer=ge,this._context=new uo,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ne}set ngIf(ge){this._context.$implicit=this._context.ngIf=ge,this._updateView()}set ngIfThen(ge){ho("ngIfThen",ge),this._thenTemplateRef=ge,this._thenViewRef=null,this._updateView()}set ngIfElse(ge){ho("ngIfElse",ge),this._elseTemplateRef=ge,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(ge,Ne){return!0}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return K})();class uo{constructor(){this.$implicit=null,this.ngIf=null}}function ho(K,Ue){if(Ue&&!Ue.createEmbeddedView)throw new Error(`${K} must be a TemplateRef, but received '${(0,e.AaK)(Ue)}'.`)}class to{constructor(Ue,ge){this._viewContainerRef=Ue,this._templateRef=ge,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ue){Ue&&!this._created?this.create():!Ue&&this._created&&this.destroy()}}let yr=(()=>{class K{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(ge){this._ngSwitch=ge,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ge){this._defaultViews.push(ge)}_matchCase(ge){const Ne=ge==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ne}_updateDefaultCases(ge){if(this._defaultViews.length>0&&ge!==this._defaultUsed){this._defaultUsed=ge;for(const Ne of this._defaultViews)Ne.enforceState(ge)}}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return K})(),Gs=(()=>{class K{constructor(ge,Ne,kt){this.ngSwitch=kt,kt._addCase(),this._view=new to(ge,Ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(yr,9))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return K})(),Ba=(()=>{class K{constructor(ge,Ne,kt){kt._addDefault(new to(ge,Ne))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(yr,9))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return K})(),Ds=(()=>{class K{constructor(ge,Ne,kt){this._ngEl=ge,this._differs=Ne,this._renderer=kt,this._ngStyle=null,this._differ=null}set ngStyle(ge){this._ngStyle=ge,!this._differ&&ge&&(this._differ=this._differs.find(ge).create())}ngDoCheck(){if(this._differ){const ge=this._differ.diff(this._ngStyle);ge&&this._applyChanges(ge)}}_setStyle(ge,Ne){const[kt,pn]=ge.split("."),Sn=-1===kt.indexOf("-")?void 0:e.JOm.DashCase;null!=Ne?this._renderer.setStyle(this._ngEl.nativeElement,kt,pn?`${Ne}${pn}`:Ne,Sn):this._renderer.removeStyle(this._ngEl.nativeElement,kt,Sn)}_applyChanges(ge){ge.forEachRemovedItem(Ne=>this._setStyle(Ne.key,null)),ge.forEachAddedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue)),ge.forEachChangedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return K})(),$s=(()=>{class K{constructor(ge){this._viewContainerRef=ge,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(ge){if(ge.ngTemplateOutlet||ge.ngTemplateOutletInjector){const Ne=this._viewContainerRef;if(this._viewRef&&Ne.remove(Ne.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:kt,ngTemplateOutletContext:pn,ngTemplateOutletInjector:Sn}=this;this._viewRef=Ne.createEmbeddedView(kt,pn,Sn?{injector:Sn}:void 0)}else this._viewRef=null}else this._viewRef&&ge.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]})}return K})();function Jr(K,Ue){return new e.vHH(2100,!1)}class ga{createSubscription(Ue,ge){return(0,e.rg0)(()=>Ue.subscribe({next:ge,error:Ne=>{throw Ne}}))}dispose(Ue){(0,e.rg0)(()=>Ue.unsubscribe())}}class kr{createSubscription(Ue,ge){return Ue.then(ge,Ne=>{throw Ne})}dispose(Ue){}}const oo=new kr,fs=new ga;let Sa=(()=>{class K{constructor(ge){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ge}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ge){return this._obj?ge!==this._obj?(this._dispose(),this.transform(ge)):this._latestValue:(ge&&this._subscribe(ge),this._latestValue)}_subscribe(ge){this._obj=ge,this._strategy=this._selectStrategy(ge),this._subscription=this._strategy.createSubscription(ge,Ne=>this._updateLatestValue(ge,Ne))}_selectStrategy(ge){if((0,e.QGY)(ge))return oo;if((0,e.F4k)(ge))return fs;throw Jr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ge,Ne){ge===this._obj&&(this._latestValue=Ne,this._ref.markForCheck())}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.sBO,16))};static#t=this.\u0275pipe=e.Yjl({name:"async",type:K,pure:!1,standalone:!0})}return K})();const Li=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Yr=new e.OlP("DATE_PIPE_DEFAULT_OPTIONS");let dr=(()=>{class K{constructor(ge,Ne,kt){this.locale=ge,this.defaultTimezone=Ne,this.defaultOptions=kt}transform(ge,Ne,kt,pn){if(null==ge||""===ge||ge!=ge)return null;try{return Oe(ge,Ne??this.defaultOptions?.dateFormat??"mediumDate",pn||this.locale,kt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Sn){throw Jr()}}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.soG,16),e.Y36(Li,24),e.Y36(Yr,24))};static#t=this.\u0275pipe=e.Yjl({name:"date",type:K,pure:!0,standalone:!0})}return K})(),er=(()=>{class K{constructor(ge){this._locale=ge}transform(ge,Ne,kt){if(!function _r(K){return!(null==K||""===K||K!=K)}(ge))return null;kt=kt||this._locale;try{return function cn(K,Ue,ge){return function ht(K,Ue,ge,Ne,kt,pn,Sn=!1){let li="",ur=!1;if(isFinite(K)){let hr=function On(K){let Ne,kt,pn,Sn,li,Ue=Math.abs(K)+"",ge=0;for((kt=Ue.indexOf("."))>-1&&(Ue=Ue.replace(".","")),(pn=Ue.search(/e/i))>0?(kt<0&&(kt=pn),kt+=+Ue.slice(pn+1),Ue=Ue.substring(0,pn)):kt<0&&(kt=Ue.length),pn=0;"0"===Ue.charAt(pn);pn++);if(pn===(li=Ue.length))Ne=[0],kt=1;else{for(li--;"0"===Ue.charAt(li);)li--;for(kt-=pn,Ne=[],Sn=0;pn<=li;pn++,Sn++)Ne[Sn]=Number(Ue.charAt(pn))}return kt>22&&(Ne=Ne.splice(0,21),ge=kt-1,kt=1),{digits:Ne,exponent:ge,integerLen:kt}}(K);Sn&&(hr=function En(K){if(0===K.digits[0])return K;const Ue=K.digits.length-K.integerLen;return K.exponent?K.exponent+=2:(0===Ue?K.digits.push(0,0):1===Ue&&K.digits.push(0),K.integerLen+=2),K}(hr));let ar=Ue.minInt,xi=Ue.minFrac,Ar=Ue.maxFrac;if(pn){const Ui=pn.match(Te);if(null===Ui)throw new Error(`${pn} is not a valid digit info`);const Ma=Ui[1],Qr=Ui[3],zr=Ui[5];null!=Ma&&(ar=Vn(Ma)),null!=Qr&&(xi=Vn(Qr)),null!=zr?Ar=Vn(zr):null!=Qr&&xi>Ar&&(Ar=xi)}!function ni(K,Ue,ge){if(Ue>ge)throw new Error(`The minimum number of digits after fraction (${Ue}) is higher than the maximum (${ge}).`);let Ne=K.digits,kt=Ne.length-K.integerLen;const pn=Math.min(Math.max(Ue,kt),ge);let Sn=pn+K.integerLen,li=Ne[Sn];if(Sn>0){Ne.splice(Math.max(K.integerLen,Sn));for(let xi=Sn;xi=5)if(Sn-1<0){for(let xi=0;xi>Sn;xi--)Ne.unshift(0),K.integerLen++;Ne.unshift(1),K.integerLen++}else Ne[Sn-1]++;for(;kt=hr?mr.pop():ur=!1),Ar>=10?1:0},0);ar&&(Ne.unshift(ar),K.integerLen++)}(hr,xi,Ar);let Nr=hr.digits,mr=hr.integerLen;const vs=hr.exponent;let bs=[];for(ur=Nr.every(Ui=>!Ui);mr0?bs=Nr.splice(mr,Nr.length):(bs=Nr,Nr=[0]);const $a=[];for(Nr.length>=Ue.lgSize&&$a.unshift(Nr.splice(-Ue.lgSize,Nr.length).join(""));Nr.length>Ue.gSize;)$a.unshift(Nr.splice(-Ue.gSize,Nr.length).join(""));Nr.length&&$a.unshift(Nr.join("")),li=$a.join($e(ge,Ne)),bs.length&&(li+=$e(ge,kt)+bs.join("")),vs&&(li+=$e(ge,Jt.Exponential)+"+"+vs)}else li=$e(ge,Jt.Infinity);return li=K<0&&!ur?Ue.negPre+li+Ue.negSuf:Ue.posPre+li+Ue.posSuf,li}(K,function _n(K,Ue="-"){const ge={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ne=K.split(";"),kt=Ne[0],pn=Ne[1],Sn=-1!==kt.indexOf(".")?kt.split("."):[kt.substring(0,kt.lastIndexOf("0")+1),kt.substring(kt.lastIndexOf("0")+1)],li=Sn[0],ur=Sn[1]||"";ge.posPre=li.substring(0,li.indexOf("#"));for(let ar=0;ar{class K{static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275mod=e.oAB({type:K});static#n=this.\u0275inj=e.cJS({})}return K})();const nr="browser",ps="server";function qs(K){return K===nr}function ba(K){return K===ps}let Ko=(()=>{class K{static#e=this.\u0275prov=(0,e.Yz7)({token:K,providedIn:"root",factory:()=>new or((0,e.LFG)(w),window)})}return K})();class or{constructor(Ue,ge){this.document=Ue,this.window=ge,this.offset=()=>[0,0]}setOffset(Ue){this.offset=Array.isArray(Ue)?()=>Ue:Ue}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ue){this.supportsScrolling()&&this.window.scrollTo(Ue[0],Ue[1])}scrollToAnchor(Ue){if(!this.supportsScrolling())return;const ge=function Xs(K,Ue){const ge=K.getElementById(Ue)||K.getElementsByName(Ue)[0];if(ge)return ge;if("function"==typeof K.createTreeWalker&&K.body&&"function"==typeof K.body.attachShadow){const Ne=K.createTreeWalker(K.body,NodeFilter.SHOW_ELEMENT);let kt=Ne.currentNode;for(;kt;){const pn=kt.shadowRoot;if(pn){const Sn=pn.getElementById(Ue)||pn.querySelector(`[name="${Ue}"]`);if(Sn)return Sn}kt=Ne.nextNode()}}return null}(this.document,Ue);ge&&(this.scrollToElement(ge),ge.focus())}setHistoryScrollRestoration(Ue){this.supportsScrolling()&&(this.window.history.scrollRestoration=Ue)}scrollToElement(Ue){const ge=Ue.getBoundingClientRect(),Ne=ge.left+this.window.pageXOffset,kt=ge.top+this.window.pageYOffset,pn=this.offset();this.window.scrollTo(Ne-pn[0],kt-pn[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Sr{}},9862:(ft,Ie,C)=>{"use strict";C.d(Ie,{JF:()=>Te,TP:()=>Nt,UA:()=>gi,WM:()=>te,eN:()=>dt});var e=C(5879),l=C(2096),D=C(9666),I=C(5592),S=C(6328),w=C(2181),n=C(7398),Z=C(4716),ee=C(4664),re=C(6814);class ue{}class se{}class te{constructor(st){this.normalizedNames=new Map,this.lazyUpdate=null,st?"string"==typeof st?this.lazyInit=()=>{this.headers=new Map,st.split("\n").forEach(It=>{const cn=It.indexOf(":");if(cn>0){const _n=It.slice(0,cn),En=_n.toLowerCase(),On=It.slice(cn+1).trim();this.maybeSetNormalizedName(_n,En),this.headers.has(En)?this.headers.get(En).push(On):this.headers.set(En,[On])}})}:typeof Headers<"u"&&st instanceof Headers?(this.headers=new Map,st.forEach((It,cn)=>{this.setHeaderEntries(cn,It)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(st).forEach(([It,cn])=>{this.setHeaderEntries(It,cn)})}:this.headers=new Map}has(st){return this.init(),this.headers.has(st.toLowerCase())}get(st){this.init();const It=this.headers.get(st.toLowerCase());return It&&It.length>0?It[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(st){return this.init(),this.headers.get(st.toLowerCase())||null}append(st,It){return this.clone({name:st,value:It,op:"a"})}set(st,It){return this.clone({name:st,value:It,op:"s"})}delete(st,It){return this.clone({name:st,value:It,op:"d"})}maybeSetNormalizedName(st,It){this.normalizedNames.has(It)||this.normalizedNames.set(It,st)}init(){this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(st=>this.applyUpdate(st)),this.lazyUpdate=null))}copyFrom(st){st.init(),Array.from(st.headers.keys()).forEach(It=>{this.headers.set(It,st.headers.get(It)),this.normalizedNames.set(It,st.normalizedNames.get(It))})}clone(st){const It=new te;return It.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,It.lazyUpdate=(this.lazyUpdate||[]).concat([st]),It}applyUpdate(st){const It=st.name.toLowerCase();switch(st.op){case"a":case"s":let cn=st.value;if("string"==typeof cn&&(cn=[cn]),0===cn.length)return;this.maybeSetNormalizedName(st.name,It);const _n=("a"===st.op?this.headers.get(It):void 0)||[];_n.push(...cn),this.headers.set(It,_n);break;case"d":const En=st.value;if(En){let On=this.headers.get(It);if(!On)return;On=On.filter(ni=>-1===En.indexOf(ni)),0===On.length?(this.headers.delete(It),this.normalizedNames.delete(It)):this.headers.set(It,On)}else this.headers.delete(It),this.normalizedNames.delete(It)}}setHeaderEntries(st,It){const cn=(Array.isArray(It)?It:[It]).map(En=>En.toString()),_n=st.toLowerCase();this.headers.set(_n,cn),this.maybeSetNormalizedName(st,_n)}forEach(st){this.init(),Array.from(this.normalizedNames.keys()).forEach(It=>st(this.normalizedNames.get(It),this.headers.get(It)))}}class ce{encodeKey(st){return Ge(st)}encodeValue(st){return Ge(st)}decodeKey(st){return decodeURIComponent(st)}decodeValue(st){return decodeURIComponent(st)}}const Re=/%(\d[a-f0-9])/gi,mt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ge(ht){return encodeURIComponent(ht).replace(Re,(st,It)=>mt[It]??st)}function Lt(ht){return`${ht}`}class je{constructor(st={}){if(this.updates=null,this.cloneFrom=null,this.encoder=st.encoder||new ce,st.fromString){if(st.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _e(ht,st){const It=new Map;return ht.length>0&&ht.replace(/^\?/,"").split("&").forEach(_n=>{const En=_n.indexOf("="),[On,ni]=-1==En?[st.decodeKey(_n),""]:[st.decodeKey(_n.slice(0,En)),st.decodeValue(_n.slice(En+1))],Vn=It.get(On)||[];Vn.push(ni),It.set(On,Vn)}),It}(st.fromString,this.encoder)}else st.fromObject?(this.map=new Map,Object.keys(st.fromObject).forEach(It=>{const cn=st.fromObject[It],_n=Array.isArray(cn)?cn.map(Lt):[Lt(cn)];this.map.set(It,_n)})):this.map=null}has(st){return this.init(),this.map.has(st)}get(st){this.init();const It=this.map.get(st);return It?It[0]:null}getAll(st){return this.init(),this.map.get(st)||null}keys(){return this.init(),Array.from(this.map.keys())}append(st,It){return this.clone({param:st,value:It,op:"a"})}appendAll(st){const It=[];return Object.keys(st).forEach(cn=>{const _n=st[cn];Array.isArray(_n)?_n.forEach(En=>{It.push({param:cn,value:En,op:"a"})}):It.push({param:cn,value:_n,op:"a"})}),this.clone(It)}set(st,It){return this.clone({param:st,value:It,op:"s"})}delete(st,It){return this.clone({param:st,value:It,op:"d"})}toString(){return this.init(),this.keys().map(st=>{const It=this.encoder.encodeKey(st);return this.map.get(st).map(cn=>It+"="+this.encoder.encodeValue(cn)).join("&")}).filter(st=>""!==st).join("&")}clone(st){const It=new je({encoder:this.encoder});return It.cloneFrom=this.cloneFrom||this,It.updates=(this.updates||[]).concat(st),It}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(st=>this.map.set(st,this.cloneFrom.map.get(st))),this.updates.forEach(st=>{switch(st.op){case"a":case"s":const It=("a"===st.op?this.map.get(st.param):void 0)||[];It.push(Lt(st.value)),this.map.set(st.param,It);break;case"d":if(void 0===st.value){this.map.delete(st.param);break}{let cn=this.map.get(st.param)||[];const _n=cn.indexOf(Lt(st.value));-1!==_n&&cn.splice(_n,1),cn.length>0?this.map.set(st.param,cn):this.map.delete(st.param)}}}),this.cloneFrom=this.updates=null)}}class xt{constructor(){this.map=new Map}set(st,It){return this.map.set(st,It),this}get(st){return this.map.has(st)||this.map.set(st,st.defaultValue()),this.map.get(st)}delete(st){return this.map.delete(st),this}has(st){return this.map.has(st)}keys(){return this.map.keys()}}function Zt(ht){return typeof ArrayBuffer<"u"&&ht instanceof ArrayBuffer}function yt(ht){return typeof Blob<"u"&&ht instanceof Blob}function un(ht){return typeof FormData<"u"&&ht instanceof FormData}class tn{constructor(st,It,cn,_n){let En;if(this.url=It,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=st.toUpperCase(),function St(ht){switch(ht){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||_n?(this.body=void 0!==cn?cn:null,En=_n):En=cn,En&&(this.reportProgress=!!En.reportProgress,this.withCredentials=!!En.withCredentials,En.responseType&&(this.responseType=En.responseType),En.headers&&(this.headers=En.headers),En.context&&(this.context=En.context),En.params&&(this.params=En.params)),this.headers||(this.headers=new te),this.context||(this.context=new xt),this.params){const On=this.params.toString();if(0===On.length)this.urlWithParams=It;else{const ni=It.indexOf("?");this.urlWithParams=It+(-1===ni?"?":niKr.set(vr,st.setHeaders[vr]),Vn)),st.setParams&&(fr=Object.keys(st.setParams).reduce((Kr,vr)=>Kr.set(vr,st.setParams[vr]),fr)),new tn(It,cn,En,{params:fr,headers:Vn,context:ki,reportProgress:ni,responseType:_n,withCredentials:On})}}var wn=function(ht){return ht[ht.Sent=0]="Sent",ht[ht.UploadProgress=1]="UploadProgress",ht[ht.ResponseHeader=2]="ResponseHeader",ht[ht.DownloadProgress=3]="DownloadProgress",ht[ht.Response=4]="Response",ht[ht.User=5]="User",ht}(wn||{});class Ln{constructor(st,It=200,cn="OK"){this.headers=st.headers||new te,this.status=void 0!==st.status?st.status:It,this.statusText=st.statusText||cn,this.url=st.url||null,this.ok=this.status>=200&&this.status<300}}class Yn extends Ln{constructor(st={}){super(st),this.type=wn.ResponseHeader}clone(st={}){return new Yn({headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}class ti extends Ln{constructor(st={}){super(st),this.type=wn.Response,this.body=void 0!==st.body?st.body:null}clone(st={}){return new ti({body:void 0!==st.body?st.body:this.body,headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}class gi extends Ln{constructor(st){super(st,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${st.url||"(unknown url)"}`:`Http failure response for ${st.url||"(unknown url)"}: ${st.status} ${st.statusText}`,this.error=st.error||null}}function Rn(ht,st){return{body:st,headers:ht.headers,context:ht.context,observe:ht.observe,params:ht.params,reportProgress:ht.reportProgress,responseType:ht.responseType,withCredentials:ht.withCredentials}}let dt=(()=>{class ht{constructor(It){this.handler=It}request(It,cn,_n={}){let En;if(It instanceof tn)En=It;else{let Vn,fr;Vn=_n.headers instanceof te?_n.headers:new te(_n.headers),_n.params&&(fr=_n.params instanceof je?_n.params:new je({fromObject:_n.params})),En=new tn(It,cn,void 0!==_n.body?_n.body:null,{headers:Vn,context:_n.context,params:fr,reportProgress:_n.reportProgress,responseType:_n.responseType||"json",withCredentials:_n.withCredentials})}const On=(0,l.of)(En).pipe((0,S.b)(Vn=>this.handler.handle(Vn)));if(It instanceof tn||"events"===_n.observe)return On;const ni=On.pipe((0,w.h)(Vn=>Vn instanceof ti));switch(_n.observe||"body"){case"body":switch(En.responseType){case"arraybuffer":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&!(Vn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Vn.body}));case"blob":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&!(Vn.body instanceof Blob))throw new Error("Response is not a Blob.");return Vn.body}));case"text":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&"string"!=typeof Vn.body)throw new Error("Response is not a string.");return Vn.body}));default:return ni.pipe((0,n.U)(Vn=>Vn.body))}case"response":return ni;default:throw new Error(`Unreachable: unhandled observe type ${_n.observe}}`)}}delete(It,cn={}){return this.request("DELETE",It,cn)}get(It,cn={}){return this.request("GET",It,cn)}head(It,cn={}){return this.request("HEAD",It,cn)}jsonp(It,cn){return this.request("JSONP",It,{params:(new je).append(cn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(It,cn={}){return this.request("OPTIONS",It,cn)}patch(It,cn,_n={}){return this.request("PATCH",It,Rn(_n,cn))}post(It,cn,_n={}){return this.request("POST",It,Rn(_n,cn))}put(It,cn,_n={}){return this.request("PUT",It,Rn(_n,cn))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(ue))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();function Ze(ht,st){return st(ht)}function rt(ht,st){return(It,cn)=>st.intercept(It,{handle:_n=>ht(_n,cn)})}const Nt=new e.OlP(""),Qt=new e.OlP(""),nn=new e.OlP("");function Dn(){let ht=null;return(st,It)=>{null===ht&&(ht=((0,e.f3M)(Nt,{optional:!0})??[]).reduceRight(rt,Ze));const cn=(0,e.f3M)(e.HDt),_n=cn.add();return ht(st,It).pipe((0,Z.x)(()=>cn.remove(_n)))}}let Ot=(()=>{class ht extends ue{constructor(It,cn){super(),this.backend=It,this.injector=cn,this.chain=null,this.pendingTasks=(0,e.f3M)(e.HDt)}handle(It){if(null===this.chain){const _n=Array.from(new Set([...this.injector.get(Qt),...this.injector.get(nn,[])]));this.chain=_n.reduceRight((En,On)=>function bt(ht,st,It){return(cn,_n)=>It.runInContext(()=>st(cn,En=>ht(En,_n)))}(En,On,this.injector),Ze)}const cn=this.pendingTasks.add();return this.chain(It,_n=>this.backend.handle(_n)).pipe((0,Z.x)(()=>this.pendingTasks.remove(cn)))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(se),e.LFG(e.lqb))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();const ot=/^\)\]\}',?\n/;let Ft=(()=>{class ht{constructor(It){this.xhrFactory=It}handle(It){if("JSONP"===It.method)throw new e.vHH(-2800,!1);const cn=this.xhrFactory;return(cn.\u0275loadImpl?(0,D.D)(cn.\u0275loadImpl()):(0,l.of)(null)).pipe((0,ee.w)(()=>new I.y(En=>{const On=cn.build();if(On.open(It.method,It.urlWithParams),It.withCredentials&&(On.withCredentials=!0),It.headers.forEach((Ji,tr)=>On.setRequestHeader(Ji,tr.join(","))),It.headers.has("Accept")||On.setRequestHeader("Accept","application/json, text/plain, */*"),!It.headers.has("Content-Type")){const Ji=It.detectContentTypeHeader();null!==Ji&&On.setRequestHeader("Content-Type",Ji)}if(It.responseType){const Ji=It.responseType.toLowerCase();On.responseType="json"!==Ji?Ji:"text"}const ni=It.serializeBody();let Vn=null;const fr=()=>{if(null!==Vn)return Vn;const Ji=On.statusText||"OK",tr=new te(On.getAllResponseHeaders()),_i=function Se(ht){return"responseURL"in ht&&ht.responseURL?ht.responseURL:/^X-Request-URL:/m.test(ht.getAllResponseHeaders())?ht.getResponseHeader("X-Request-URL"):null}(On)||It.url;return Vn=new Yn({headers:tr,status:On.status,statusText:Ji,url:_i}),Vn},ki=()=>{let{headers:Ji,status:tr,statusText:_i,url:bo}=fr(),pr=null;204!==tr&&(pr=typeof On.response>"u"?On.responseText:On.response),0===tr&&(tr=pr?200:0);let br=tr>=200&&tr<300;if("json"===It.responseType&&"string"==typeof pr){const $n=pr;pr=pr.replace(ot,"");try{pr=""!==pr?JSON.parse(pr):null}catch(yo){pr=$n,br&&(br=!1,pr={error:yo,text:pr})}}br?(En.next(new ti({body:pr,headers:Ji,status:tr,statusText:_i,url:bo||void 0})),En.complete()):En.error(new gi({error:pr,headers:Ji,status:tr,statusText:_i,url:bo||void 0}))},Kr=Ji=>{const{url:tr}=fr(),_i=new gi({error:Ji,status:On.status||0,statusText:On.statusText||"Unknown Error",url:tr||void 0});En.error(_i)};let vr=!1;const Bi=Ji=>{vr||(En.next(fr()),vr=!0);let tr={type:wn.DownloadProgress,loaded:Ji.loaded};Ji.lengthComputable&&(tr.total=Ji.total),"text"===It.responseType&&On.responseText&&(tr.partialText=On.responseText),En.next(tr)},co=Ji=>{let tr={type:wn.UploadProgress,loaded:Ji.loaded};Ji.lengthComputable&&(tr.total=Ji.total),En.next(tr)};return On.addEventListener("load",ki),On.addEventListener("error",Kr),On.addEventListener("timeout",Kr),On.addEventListener("abort",Kr),It.reportProgress&&(On.addEventListener("progress",Bi),null!==ni&&On.upload&&On.upload.addEventListener("progress",co)),On.send(ni),En.next({type:wn.Sent}),()=>{On.removeEventListener("error",Kr),On.removeEventListener("abort",Kr),On.removeEventListener("load",ki),On.removeEventListener("timeout",Kr),It.reportProgress&&(On.removeEventListener("progress",Bi),null!==ni&&On.upload&&On.upload.removeEventListener("progress",co)),On.readyState!==On.DONE&&On.abort()}})))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(re.JF))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();const lt=new e.OlP("XSRF_ENABLED"),Ut=new e.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),gn=new e.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class An{}let jn=(()=>{class ht{constructor(It,cn,_n){this.doc=It,this.platform=cn,this.cookieName=_n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const It=this.doc.cookie||"";return It!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,re.Mx)(It,this.cookieName),this.lastCookieString=It),this.lastToken}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(re.K0),e.LFG(e.Lbi),e.LFG(Ut))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();function ai(ht,st){const It=ht.url.toLowerCase();if(!(0,e.f3M)(lt)||"GET"===ht.method||"HEAD"===ht.method||It.startsWith("http://")||It.startsWith("https://"))return st(ht);const cn=(0,e.f3M)(An).getToken(),_n=(0,e.f3M)(gn);return null!=cn&&!ht.headers.has(_n)&&(ht=ht.clone({headers:ht.headers.set(_n,cn)})),st(ht)}var oi=function(ht){return ht[ht.Interceptors=0]="Interceptors",ht[ht.LegacyInterceptors=1]="LegacyInterceptors",ht[ht.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ht[ht.NoXsrfProtection=3]="NoXsrfProtection",ht[ht.JsonpSupport=4]="JsonpSupport",ht[ht.RequestsMadeViaParent=5]="RequestsMadeViaParent",ht[ht.Fetch=6]="Fetch",ht}(oi||{});function qt(...ht){const st=[dt,Ft,Ot,{provide:ue,useExisting:Ot},{provide:se,useExisting:Ft},{provide:Qt,useValue:ai,multi:!0},{provide:lt,useValue:!0},{provide:An,useClass:jn}];for(const It of ht)st.push(...It.\u0275providers);return(0,e.MR2)(st)}const G=new e.OlP("LEGACY_INTERCEPTOR_FN");function U(){return function Jn(ht,st){return{\u0275kind:ht,\u0275providers:st}}(oi.LegacyInterceptors,[{provide:G,useFactory:Dn},{provide:Qt,useExisting:G,multi:!0}])}let Te=(()=>{class ht{static#e=this.\u0275fac=function(cn){return new(cn||ht)};static#t=this.\u0275mod=e.oAB({type:ht});static#n=this.\u0275inj=e.cJS({providers:[qt(U())]})}return ht})()},5879:(ft,Ie,C)=>{"use strict";C.d(Ie,{$8M:()=>Wd,$WT:()=>Ha,$Z:()=>K_,AFp:()=>S_,ALo:()=>Qb,AaK:()=>se,Akn:()=>Cu,AsE:()=>mv,B6R:()=>oo,BQk:()=>Dm,CHM:()=>Jl,CRH:()=>_y,DdM:()=>Ub,EJc:()=>IC,EiD:()=>hs,EpF:()=>a1,F$t:()=>f1,F4k:()=>l1,FYo:()=>jp,FiY:()=>Wr,Gf:()=>fy,GfV:()=>Zp,GkF:()=>rv,Gpc:()=>ce,Gre:()=>z1,HDt:()=>Yy,Hsn:()=>p1,Ikx:()=>vv,JOm:()=>fa,JVY:()=>vu,JZr:()=>Lt,Jf7:()=>Uu,Jzz:()=>G1,KtG:()=>Il,L6k:()=>o,LAX:()=>i,LFG:()=>wt,LMc:()=>ZT,LSH:()=>b,Lbi:()=>Ef,Lck:()=>MM,MAs:()=>r1,MGl:()=>Em,MMx:()=>kb,MR2:()=>Rc,N_p:()=>Cv,NdJ:()=>sv,O4$:()=>dc,Ojb:()=>Jm,OlP:()=>Ut,Oqu:()=>_v,P3R:()=>Gn,PXZ:()=>sT,Q6J:()=>tv,QGY:()=>ov,QbO:()=>Km,Qsj:()=>P_,R0b:()=>jl,RDi:()=>ah,Rgc:()=>y_,SBq:()=>Vh,SDv:()=>Eb,Sil:()=>LC,Suo:()=>py,TTD:()=>xi,TgZ:()=>Mm,Tol:()=>O1,Udp:()=>hv,VKq:()=>Vb,VuI:()=>VT,W1O:()=>by,WFA:()=>av,WLB:()=>jb,X6Q:()=>pT,XFs:()=>Ce,Xpm:()=>kr,Xq5:()=>vm,Xts:()=>Ea,Y36:()=>fh,YKP:()=>Ib,YNc:()=>e1,Yjl:()=>qi,Yz7:()=>Nt,Z0I:()=>Ot,ZZ4:()=>e0,_Bn:()=>Ob,_UZ:()=>iv,_Vd:()=>Af,_c5:()=>OT,_uU:()=>F1,aQg:()=>t0,c2e:()=>Fy,cJS:()=>nn,cg1:()=>yv,d8E:()=>bv,dDg:()=>nT,dqk:()=>Ft,eBb:()=>t,eFA:()=>$y,eJc:()=>Yv,ekj:()=>fv,eoX:()=>Zy,evT:()=>zh,f3M:()=>fe,g9A:()=>Df,gHi:()=>Gp,h0i:()=>Uf,hGG:()=>IT,hij:()=>Om,iGM:()=>hy,ifc:()=>On,ip1:()=>Ny,jDz:()=>Lb,kEZ:()=>Zb,kL8:()=>ib,kcU:()=>sd,ktI:()=>lp,l5B:()=>zb,lG2:()=>Aa,lcZ:()=>Xb,lnq:()=>gv,lqb:()=>bu,lri:()=>Vy,mCW:()=>N,n5z:()=>_c,n_E:()=>Pm,oAB:()=>Vo,oJD:()=>f,oxw:()=>h1,pB0:()=>s,q3G:()=>Cs,qFp:()=>zT,qLn:()=>uh,qOj:()=>pm,qZA:()=>Cm,qbA:()=>Gb,qzn:()=>Hd,rWj:()=>jy,rg0:()=>pn,s9C:()=>lv,sBO:()=>_T,s_b:()=>Ym,soG:()=>Hm,tHW:()=>Mv,tb:()=>$v,tp0:()=>Na,uIk:()=>Cn,vHH:()=>je,vpe:()=>vo,vpz:()=>W1,wAp:()=>Tp,xi3:()=>ey,xp6:()=>Cg,ynx:()=>Tm,z2F:()=>Ap,z3N:()=>qc,zSh:()=>qf,zW0:()=>Kg,zs3:()=>Vd});var e=C(8645),l=C(7394),D=C(5592),I=C(3019),S=C(5619),w=C(2096),n=C(3020),Z=C(4664),ee=C(3997);function re(r){for(let a in r)if(r[a]===re)return a;throw Error("Could not find renamed property on target object.")}function ue(r,a){for(const d in a)a.hasOwnProperty(d)&&!r.hasOwnProperty(d)&&(r[d]=a[d])}function se(r){if("string"==typeof r)return r;if(Array.isArray(r))return"["+r.map(se).join(", ")+"]";if(null==r)return""+r;if(r.overriddenName)return`${r.overriddenName}`;if(r.name)return`${r.name}`;const a=r.toString();if(null==a)return""+a;const d=a.indexOf("\n");return-1===d?a:a.substring(0,d)}function te(r,a){return null==r||""===r?null===a?"":a:null==a||""===a?r:r+" "+a}const oe=re({__forward_ref__:re});function ce(r){return r.__forward_ref__=ce,r.toString=function(){return se(this())},r}function _e(r){return Re(r)?r():r}function Re(r){return"function"==typeof r&&r.hasOwnProperty(oe)&&r.__forward_ref__===ce}function mt(r){return r&&!!r.\u0275providers}const Lt="https://g.co/ng/security#xss";class je extends Error{constructor(a,d){super(function Tt(r,a){return`NG0${Math.abs(r)}${a?": "+a:""}`}(a,d)),this.code=a}}function xt(r){return"string"==typeof r?r:null==r?"":String(r)}function Jt(r,a){throw new je(-201,!1)}function he(r,a,d,_){throw new Error(`ASSERTION ERROR: ${r}`+(null==_?"":` [Expected=> ${d} ${_} ${a} <=Actual]`))}function Nt(r){return{token:r.token,providedIn:r.providedIn||null,factory:r.factory,value:void 0}}function nn(r){return{providers:r.providers||[],imports:r.imports||[]}}function Dn(r){return rn(r,Wn)||rn(r,ct)}function Ot(r){return null!==Dn(r)}function rn(r,a){return r.hasOwnProperty(a)?r[a]:null}function ei(r){return r&&(r.hasOwnProperty(Ve)||r.hasOwnProperty(Ct))?r[Ve]:null}const Wn=re({\u0275prov:re}),Ve=re({\u0275inj:re}),ct=re({ngInjectableDef:re}),Ct=re({ngInjectorDef:re});var Ce=function(r){return r[r.Default=0]="Default",r[r.Host=1]="Host",r[r.Self=2]="Self",r[r.SkipSelf=4]="SkipSelf",r[r.Optional=8]="Optional",r}(Ce||{});let J;function ae(){return J}function Oe(r){const a=J;return J=r,a}function ot(r,a,d){const _=Dn(r);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:d&Ce.Optional?null:void 0!==a?a:void Jt(se(r))}const Ft=globalThis;class Ut{constructor(a,d){this._desc=a,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof d?this.__NG_ELEMENT_ID__=d:void 0!==d&&(this.\u0275prov=Nt({token:this,providedIn:d.providedIn||"root",factory:d.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const U={},ve="__NG_DI_FLAG__",Pe="ngTempTokenPath",We=/\n/gm,be="__source";let Te;function Wt(r){const a=Te;return Te=r,a}function Pn(r,a=Ce.Default){if(void 0===Te)throw new je(-203,!1);return null===Te?ot(r,void 0,a):Te.get(r,a&Ce.Optional?null:void 0,a)}function wt(r,a=Ce.Default){return(ae()||Pn)(_e(r),a)}function fe(r,a=Ce.Default){return wt(r,Mt(a))}function Mt(r){return typeof r>"u"||"number"==typeof r?r:0|(r.optional&&8)|(r.host&&1)|(r.self&&2)|(r.skipSelf&&4)}function Vt(r){const a=[];for(let d=0;da){Y=A-1;break}}}for(;AA?"":x[Rt+1].toLowerCase();const ln=8&_?Xt:null;if(ln&&-1!==tr(ln,De,0)||2&_&&De!==Xt){if(yr(_))return!1;Y=!0}}}}else{if(!Y&&!yr(_)&&!yr(X))return!1;if(Y&&yr(X))continue;Y=!1,_=X|1&_}}return yr(_)||Y}function yr(r){return 0==(1&r)}function Gs(r,a,d,_){if(null===a)return-1;let x=0;if(_||!d){let A=!1;for(;x-1)for(d++;d0?'="'+z+'"':"")+"]"}else 8&_?x+="."+Y:4&_&&(x+=" "+Y);else""!==x&&!yr(Y)&&(a+=$s(A,x),x=""),_=Y,A=A||!yr(_);d++}return""!==x&&(a+=$s(A,x)),a}function kr(r){return _n(()=>{const a=al(r),d={...a,decls:r.decls,vars:r.vars,template:r.template,consts:r.consts||null,ngContentSelectors:r.ngContentSelectors,onPush:r.changeDetection===En.OnPush,directiveDefs:null,pipeDefs:null,dependencies:a.standalone&&r.dependencies||null,getStandaloneInjector:null,signals:r.signals??!1,data:r.data||{},encapsulation:r.encapsulation||On.Emulated,styles:r.styles||Vn,_:null,schemas:r.schemas||null,tView:null,id:""};Vr(d);const _=r.dependencies;return d.directiveDefs=Es(_,!1),d.pipeDefs=Es(_,!0),d.id=function ll(r){let a=0;const d=[r.selectors,r.ngContentSelectors,r.hostVars,r.hostAttrs,r.consts,r.vars,r.decls,r.encapsulation,r.standalone,r.signals,r.exportAs,JSON.stringify(r.inputs),JSON.stringify(r.outputs),Object.getOwnPropertyNames(r.type.prototype),!!r.contentQueries,!!r.viewQuery].join("|");for(const x of d)a=Math.imul(31,a)+x.charCodeAt(0)<<0;return a+=2147483648,"c"+a}(d),d})}function oo(r,a,d){const _=r.\u0275cmp;_.directiveDefs=Es(a,!1),_.pipeDefs=Es(d,!0)}function fs(r){return Li(r)||Yr(r)}function Sa(r){return null!==r}function Vo(r){return _n(()=>({type:r.type,bootstrap:r.bootstrap||Vn,declarations:r.declarations||Vn,imports:r.imports||Vn,exports:r.exports||Vn,transitiveCompileScopes:null,schemas:r.schemas||null,id:r.id||null}))}function Ks(r,a){if(null==r)return ni;const d={};for(const _ in r)if(r.hasOwnProperty(_)){let x=r[_],A=x;Array.isArray(x)&&(A=x[1],x=x[0]),d[x]=_,a&&(a[x]=A)}return d}function Aa(r){return _n(()=>{const a=al(r);return Vr(a),a})}function qi(r){return{type:r.type,name:r.name,factory:null,pure:!1!==r.pure,standalone:!0===r.standalone,onDestroy:r.type.prototype.ngOnDestroy||null}}function Li(r){return r[fr]||null}function Yr(r){return r[ki]||null}function dr(r){return r[Kr]||null}function Ha(r){const a=Li(r)||Yr(r)||dr(r);return null!==a&&a.standalone}function wr(r,a){const d=r[vr]||null;if(!d&&!0===a)throw new Error(`Type ${se(r)} does not have '\u0275mod' property.`);return d}function al(r){const a={};return{type:r.type,providersResolver:null,factory:null,hostBindings:r.hostBindings||null,hostVars:r.hostVars||0,hostAttrs:r.hostAttrs||null,contentQueries:r.contentQueries||null,declaredInputs:a,inputTransforms:null,inputConfig:r.inputs||ni,exportAs:r.exportAs||null,standalone:!0===r.standalone,signals:!0===r.signals,selectors:r.selectors||Vn,viewQuery:r.viewQuery||null,features:r.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ks(r.inputs,a),outputs:Ks(r.outputs)}}function Vr(r){r.features?.forEach(a=>a(r))}function Es(r,a){if(!r)return null;const d=a?dr:fs;return()=>("function"==typeof r?r():r).map(_=>d(_)).filter(Sa)}const er=0,qn=1,bi=2,_r=3,wo=4,jo=5,no=6,Ao=7,nr=8,ps=9,va=10,Ti=11,qs=12,ba=13,Qs=14,wi=15,Oo=16,Ko=17,or=18,Xs=19,Ml=20,Sr=21,jr=22,xo=23,_s=24,Ai=25,Io=1,Ys=2,fo=7,ms=9,Br=11;function po(r){return Array.isArray(r)&&"object"==typeof r[Io]}function io(r){return Array.isArray(r)&&!0===r[Io]}function qo(r){return 0!=(4&r.flags)}function Ss(r){return r.componentOffset>-1}function ya(r){return 1==(1&r.flags)}function sr(r){return!!r.template}function Oa(r){return 0!=(512&r[bi])}function Xo(r,a){return r.hasOwnProperty(Bi)?r[Bi]:null}let qr=null,Bs=!1;function Ro(r){const a=qr;return qr=r,a}const Va={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Gl(r){if(!Is(r)||r.dirty){if(!r.producerMustRecompute(r)&&!gs(r))return void(r.dirty=!1);r.producerRecomputeValue(r),r.dirty=!1}}function es(r){r.dirty=!0,function Hs(r){if(void 0===r.liveConsumerNode)return;const a=Bs;Bs=!0;try{for(const d of r.liveConsumerNode)d.dirty||es(d)}finally{Bs=a}}(r),r.consumerMarkedDirty?.(r)}function ts(r){return r&&(r.nextProducerIndex=0),Ro(r)}function Wl(r,a){if(Ro(a),r&&void 0!==r.producerNode&&void 0!==r.producerIndexOfThis&&void 0!==r.producerLastReadVersion){if(Is(r))for(let d=r.nextProducerIndex;dr.nextProducerIndex;)r.producerNode.pop(),r.producerLastReadVersion.pop(),r.producerIndexOfThis.pop()}}function gs(r){Za(r);for(let a=0;a0}function Za(r){r.producerNode??=[],r.producerIndexOfThis??=[],r.producerLastReadVersion??=[]}let Ga=null;function pn(r){const a=Ro(null);try{return r()}finally{Ro(a)}}const li=()=>{},ur=(()=>({...Va,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:r=>{r.schedule(r.ref)},hasRun:!1,cleanupFn:li}))();class ar{constructor(a,d,_){this.previousValue=a,this.currentValue=d,this.firstChange=_}isFirstChange(){return this.firstChange}}function xi(){return Ar}function Ar(r){return r.type.prototype.ngOnChanges&&(r.setInput=mr),Nr}function Nr(){const r=bs(this),a=r?.current;if(a){const d=r.previous;if(d===ni)r.previous=a;else for(let _ in a)d[_]=a[_];r.current=null,this.ngOnChanges(a)}}function mr(r,a,d,_){const x=this.declaredInputs[d],A=bs(r)||function $a(r,a){return r[vs]=a}(r,{previous:ni,current:null}),Y=A.current||(A.current={}),z=A.previous,X=z[x];Y[x]=new ar(X&&X.currentValue,a,z===ni),r[_]=a}xi.ngInherit=!0;const vs="__ngSimpleChanges__";function bs(r){return r[vs]||null}const Qr=function(r,a,d){},zr="svg";function yi(r){for(;Array.isArray(r);)r=r[er];return r}function cl(r,a){return yi(a[r])}function _o(r,a){return yi(a[r.index])}function Xi(r,a){return r.data[a]}function dl(r,a){return r[a]}function ko(r,a){const d=a[r];return po(d)?d:d[er]}function Us(r,a){return null==a?null:r[a]}function Vs(r){r[Ko]=0}function Nc(r){1024&r[bi]||(r[bi]|=1024,To(r,1))}function ac(r){1024&r[bi]&&(r[bi]&=-1025,To(r,-1))}function To(r,a){let d=r[_r];if(null===d)return;d[jo]+=a;let _=d;for(d=d[_r];null!==d&&(1===a&&1===_[jo]||-1===a&&0===_[jo]);)d[jo]+=a,_=d,d=d[_r]}function nd(r,a){if(256==(256&r[bi]))throw new je(911,!1);null===r[Sr]&&(r[Sr]=[]),r[Sr].push(a)}const Ei={lFrame:Ps(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function cc(){return Ei.bindingsEnabled}function hl(){return null!==Ei.skipHydrationRootTNode}function kn(){return Ei.lFrame.lView}function Fi(){return Ei.lFrame.tView}function Jl(r){return Ei.lFrame.contextLView=r,r[nr]}function Il(r){return Ei.lFrame.contextLView=null,r}function en(){let r=so();for(;null!==r&&64===r.type;)r=r.parent;return r}function so(){return Ei.lFrame.currentTNode}function gt(){const r=Ei.lFrame,a=r.currentTNode;return r.isParent?a:a.parent}function la(r,a){const d=Ei.lFrame;d.currentTNode=r,d.isParent=a}function Ra(){return Ei.lFrame.isParent}function Ls(){Ei.lFrame.isParent=!1}function mo(){const r=Ei.lFrame;let a=r.bindingRootIndex;return-1===a&&(a=r.bindingRootIndex=r.tView.bindingStartIndex),a}function ka(){return Ei.lFrame.bindingIndex}function W(){return Ei.lFrame.bindingIndex++}function ne(r){const a=Ei.lFrame,d=a.bindingIndex;return a.bindingIndex=a.bindingIndex+r,d}function ie(r){Ei.lFrame.inI18n=r}function xe(r,a){const d=Ei.lFrame;d.bindingIndex=d.bindingRootIndex=r,Pt(a)}function Pt(r){Ei.lFrame.currentDirectiveIndex=r}function mn(r){const a=Ei.lFrame.currentDirectiveIndex;return-1===a?null:r[a]}function hn(){return Ei.lFrame.currentQueryIndex}function on(r){Ei.lFrame.currentQueryIndex=r}function ji(r){const a=r[qn];return 2===a.type?a.declTNode:1===a.type?r[no]:null}function Gr(r,a,d){if(d&Ce.SkipSelf){let x=a,A=r;for(;!(x=x.parent,null!==x||d&Ce.Host||(x=ji(A),null===x||(A=A[Qs],10&x.type))););if(null===x)return!1;a=x,r=A}const _=Ei.lFrame=mi();return _.currentTNode=a,_.lView=r,!0}function $i(r){const a=mi(),d=r[qn];Ei.lFrame=a,a.currentTNode=d.firstChild,a.lView=r,a.tView=d,a.contextLView=r,a.bindingIndex=d.bindingStartIndex,a.inI18n=!1}function mi(){const r=Ei.lFrame,a=null===r?null:r.child;return null===a?Ps(r):a}function Ps(r){const a={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:r,child:null,inI18n:!1};return null!==r&&(r.child=a),a}function fl(){const r=Ei.lFrame;return Ei.lFrame=r.parent,r.currentTNode=null,r.lView=null,r}const Rl=fl;function Ja(){const r=fl();r.isParent=!0,r.tView=null,r.selectedIndex=-1,r.contextLView=null,r.elementDepthCount=0,r.currentDirectiveIndex=-1,r.currentNamespace=null,r.bindingRootIndex=-1,r.bindingIndex=-1,r.currentQueryIndex=0}function Do(){return Ei.lFrame.selectedIndex}function qa(r){Ei.lFrame.selectedIndex=r}function xr(){const r=Ei.lFrame;return Xi(r.tView,r.selectedIndex)}function dc(){Ei.lFrame.currentNamespace=zr}function sd(){!function uc(){Ei.lFrame.currentNamespace=null}()}let Qa=!0;function js(){return Qa}function pl(r){Qa=r}function Pi(r,a){for(let d=a.directiveStart,_=a.directiveEnd;d<_;d++){const A=r.data[d].type.prototype,{ngAfterContentInit:Y,ngAfterContentChecked:z,ngAfterViewInit:X,ngAfterViewChecked:De,ngOnDestroy:Ke}=A;Y&&(r.contentHooks??=[]).push(-d,Y),z&&((r.contentHooks??=[]).push(d,z),(r.contentCheckHooks??=[]).push(d,z)),X&&(r.viewHooks??=[]).push(-d,X),De&&((r.viewHooks??=[]).push(d,De),(r.viewCheckHooks??=[]).push(d,De)),null!=Ke&&(r.destroyHooks??=[]).push(d,Ke)}}function Xa(r,a,d){Cd(r,a,3,d)}function ld(r,a,d,_){(3&r[bi])===d&&Cd(r,a,d,_)}function Sc(r,a){let d=r[bi];(3&d)===a&&(d&=8191,d+=1,r[bi]=d)}function Cd(r,a,d,_){const A=_??-1,Y=a.length-1;let z=0;for(let X=void 0!==_?65535&r[Ko]:0;X=_)break}else a[X]<0&&(r[Ko]+=65536),(z>13>16&&(3&r[bi])===a&&(r[bi]+=8192,el(z,A)):el(z,A)}const Yc=-1;class ca{constructor(a,d,_){this.factory=a,this.resolving=!1,this.canSeeViewProviders=d,this.injectImpl=_}}function wc(r){return r!==Yc}function kl(r){return 32767&r}function Ac(r,a){let d=function Ql(r){return r>>16}(r),_=a;for(;d>0;)_=_[Qs],d--;return _}let Hc=!0;function Eo(r){const a=Hc;return Hc=r,a}const cd=255,fc=5;let xc=0;const Po={};function Ll(r,a){const d=pc(r,a);if(-1!==d)return d;const _=a[qn];_.firstCreatePass&&(r.injectorIndex=a.length,as(_.data,r),as(a,null),as(_.blueprint,null));const x=ir(r,a),A=r.injectorIndex;if(wc(x)){const Y=kl(x),z=Ac(x,a),X=z[qn].data;for(let De=0;De<8;De++)a[A+De]=z[Y+De]|X[Y+De]}return a[A+8]=x,A}function as(r,a){r.push(0,0,0,0,0,0,0,0,a)}function pc(r,a){return-1===r.injectorIndex||r.parent&&r.parent.injectorIndex===r.injectorIndex||null===a[r.injectorIndex+8]?-1:r.injectorIndex}function ir(r,a){if(r.parent&&-1!==r.parent.injectorIndex)return r.parent.injectorIndex;let d=0,_=null,x=a;for(;null!==x;){if(_=Ad(x),null===_)return Yc;if(d++,x=x[Qs],-1!==_.injectorIndex)return _.injectorIndex|d<<16}return Yc}function k(r,a,d){!function da(r,a,d){let _;"string"==typeof d?_=d.charCodeAt(0)||0:d.hasOwnProperty(co)&&(_=d[co]),null==_&&(_=d[co]=xc++);const x=_&cd;a.data[r+(x>>fc)]|=1<=0?a&cd:Gd:a}(d);if("function"==typeof A){if(!Gr(a,r,_))return _&Ce.Host?pe(x,0,_):ke(a,d,_,x);try{let Y;if(Y=A(_),null!=Y||_&Ce.Optional)return Y;Jt()}finally{Rl()}}else if("number"==typeof A){let Y=null,z=pc(r,a),X=Yc,De=_&Ce.Host?a[wi][no]:null;for((-1===z||_&Ce.SkipSelf)&&(X=-1===z?ir(r,a):a[z+8],X!==Yc&&tl(_,!1)?(Y=a[qn],z=kl(X),a=Ac(X,a)):z=-1);-1!==z;){const Ke=a[qn];if(ws(A,z,Ke.data)){const Rt=xn(z,a,d,Y,_,De);if(Rt!==Po)return Rt}X=a[z+8],X!==Yc&&tl(_,a[qn].data[z+8]===De)&&ws(A,z,a)?(Y=Ke,z=kl(X),a=Ac(X,a)):z=-1}}return x}function xn(r,a,d,_,x,A){const Y=a[qn],z=Y.data[r+8],Ke=Mi(z,Y,d,null==_?Ss(z)&&Hc:_!=Y&&0!=(3&z.type),x&Ce.Host&&A===z);return null!==Ke?Oi(a,Y,Ke,z):Po}function Mi(r,a,d,_,x){const A=r.providerIndexes,Y=a.data,z=1048575&A,X=r.directiveStart,Ke=A>>20,Xt=x?z+Ke:r.directiveEnd;for(let ln=_?z:z+Ke;ln=X&&In.type===d)return ln}if(x){const ln=Y[X];if(ln&&sr(ln)&&ln.type===d)return X}return null}function Oi(r,a,d,_){let x=r[d];const A=a.data;if(function zd(r){return r instanceof ca}(x)){const Y=x;Y.resolving&&function Zt(r,a){const d=a?`. Dependency path: ${a.join(" > ")} > ${r}`:"";throw new je(-200,`Circular dependency in DI detected for ${r}${d}`)}(function St(r){return"function"==typeof r?r.name||r.toString():"object"==typeof r&&null!=r&&"function"==typeof r.type?r.type.name||r.type.toString():xt(r)}(A[d]));const z=Eo(Y.canSeeViewProviders);Y.resolving=!0;const De=Y.injectImpl?Oe(Y.injectImpl):null;Gr(r,_,Ce.Default);try{x=r[d]=Y.factory(void 0,A,r,_),a.firstCreatePass&&d>=_.directiveStart&&function ad(r,a,d){const{ngOnChanges:_,ngOnInit:x,ngDoCheck:A}=a.type.prototype;if(_){const Y=Ar(a);(d.preOrderHooks??=[]).push(r,Y),(d.preOrderCheckHooks??=[]).push(r,Y)}x&&(d.preOrderHooks??=[]).push(0-r,x),A&&((d.preOrderHooks??=[]).push(r,A),(d.preOrderCheckHooks??=[]).push(r,A))}(d,A[d],a)}finally{null!==De&&Oe(De),Eo(z),Y.resolving=!1,Rl()}}return x}function ws(r,a,d){return!!(d[a+(r>>fc)]&1<{const a=r.prototype.constructor,d=a[Bi]||Sd(a),_=Object.prototype;let x=Object.getPrototypeOf(r.prototype).constructor;for(;x&&x!==_;){const A=x[Bi]||Sd(x);if(A&&A!==d)return A;x=Object.getPrototypeOf(x)}return A=>new A})}function Sd(r){return Re(r)?()=>{const a=Sd(_e(r));return a&&a()}:Xo(r)}function Ad(r){const a=r[qn],d=a.type;return 2===d?a.declTNode:1===d?r[no]:null}function Wd(r){return function j(r,a){if("class"===a)return r.classes;if("style"===a)return r.styles;const d=r.attrs;if(d){const _=d.length;let x=0;for(;x<_;){const A=d[x];if(bo(A))break;if(0===A)x+=2;else if("number"==typeof A)for(x++;x<_&&"string"==typeof d[x];)x++;else{if(A===a)return d[x+1];x+=2}}}return null}(en(),r)}const ua="__parameters__";function zi(r,a,d){return _n(()=>{const _=function zo(r){return function(...d){if(r){const _=r(...d);for(const x in _)this[x]=_[x]}}}(a);function x(...A){if(this instanceof x)return _.apply(this,A),this;const Y=new x(...A);return z.annotation=Y,z;function z(X,De,Ke){const Rt=X.hasOwnProperty(ua)?X[ua]:Object.defineProperty(X,ua,{value:[]})[ua];for(;Rt.length<=Ke;)Rt.push(null);return(Rt[Ke]=Rt[Ke]||[]).push(Y),X}}return d&&(x.prototype=Object.create(d.prototype)),x.prototype.ngMetadataName=r,x.annotationCls=x,x})}function Gc(r,a){r.forEach(d=>Array.isArray(d)?Gc(d,a):a(d))}function qd(r,a,d){a>=r.length?r.push(d):r.splice(a,0,d)}function ml(r,a){return a>=r.length-1?r.pop():r.splice(a,1)[0]}function Oc(r,a){const d=[];for(let _=0;_=0?r[1|_]=d:(_=~_,function pi(r,a,d,_){let x=r.length;if(x==a)r.push(d,_);else if(1===x)r.push(_,r[0]),r[0]=d;else{for(x--,r.push(r[x-1],r[x]);x>a;)r[x]=r[x-2],x--;r[a]=d,r[a+1]=_}}(r,_,a,d)),_}function Mc(r,a){const d=No(r,a);if(d>=0)return r[1|d]}function No(r,a){return function Ye(r,a,d){let _=0,x=r.length>>d;for(;x!==_;){const A=_+(x-_>>1),Y=r[A<a?x=A:_=A+1}return~(x<|^->||--!>|)/g,ef="\u200b$1\u200b";const au=new Map;let vh=0;const $u="__ngContext__";function rl(r,a){po(a)?(r[$u]=a[Xs],function nf(r){au.set(r[Xs],r)}(a)):r[$u]=a}let xh;function Mh(r,a){return xh(r,a)}function du(r){const a=r[_r];return io(a)?a[_r]:a}function nc(r){return lf(r[qs])}function Ch(r){return lf(r[wo])}function lf(r){for(;null!==r&&!io(r);)r=r[wo];return r}function uu(r,a,d,_,x){if(null!=_){let A,Y=!1;io(_)?A=_:po(_)&&(Y=!0,_=_[er]);const z=yi(_);0===r&&null!==d?null==x?lo(a,d,z):Jc(a,d,z,x||null,!0):1===r&&null!==d?Jc(a,d,z,x||null,!0):2===r?function Yu(r,a,d){const _=Pu(r,a);_&&function ud(r,a,d,_){r.removeChild(a,d,_)}(r,_,a,d)}(a,z,Y):3===r&&a.destroyNode(z),null!=A&&function Bu(r,a,d,_,x){const A=d[fo];A!==yi(d)&&uu(a,r,_,A,x);for(let z=Br;za.replace(Xh,ef))}(a))}function hu(r,a,d){return r.createElement(a,d)}function Dh(r,a){const d=r[ms],_=d.indexOf(a);ac(a),d.splice(_,1)}function Lu(r,a){if(r.length<=Br)return;const d=Br+a,_=r[d];if(_){const x=_[Oo];null!==x&&x!==r&&Dh(x,_),a>0&&(r[d-1][wo]=_[wo]);const A=ml(r,Br+a);!function cf(r,a){_u(r,a,a[Ti],2,null,null),a[er]=null,a[no]=null}(_[qn],_);const Y=A[or];null!==Y&&Y.detachView(A[qn]),_[_r]=null,_[wo]=null,_[bi]&=-129}return _}function eh(r,a){if(!(256&a[bi])){const d=a[Ti];a[xo]&&ns(a[xo]),a[_s]&&ns(a[_s]),d.destroyNode&&_u(r,a,d,3,null,null),function hf(r){let a=r[qs];if(!a)return Ld(r[qn],r);for(;a;){let d=null;if(po(a))d=a[qs];else{const _=a[Br];_&&(d=_)}if(!d){for(;a&&!a[wo]&&a!==r;)po(a)&&Ld(a[qn],a),a=a[_r];null===a&&(a=r),po(a)&&Ld(a[qn],a),d=a&&a[wo]}a=d}}(a)}}function Ld(r,a){if(!(256&a[bi])){a[bi]&=-129,a[bi]|=256,function ol(r,a){let d;if(null!=r&&null!=(d=r.destroyHooks))for(let _=0;_=0?_[Y]():_[-Y].unsubscribe(),A+=2}else d[A].call(_[d[A+1]]);null!==_&&(a[Ao]=null);const x=a[Sr];if(null!==x){a[Sr]=null;for(let A=0;A-1){const{encapsulation:A}=r.data[_.directiveStart+x];if(A===On.None||A===On.Emulated)return null}return _o(_,d)}}function Jc(r,a,d,_,x){r.insertBefore(a,d,_,x)}function lo(r,a,d){r.appendChild(a,d)}function fu(r,a,d,_,x){null!==_?Jc(r,a,d,_,x):lo(r,a,d)}function Pu(r,a){return r.parentNode(a)}function Eh(r,a,d){return Sh(r,a,d)}function th(r,a,d){return 40&r.type?_o(r,d):null}let nh,Yo,Ih,tu,Sh=th;function eu(r,a){Sh=r,nh=a}function Dc(r,a,d,_){const x=Pd(r,_,a),A=a[Ti],z=Eh(_.parent||a[no],_,a);if(null!=x)if(Array.isArray(d))for(let X=0;Xr,createScript:r=>r,createScriptURL:r=>r})}catch{}return Yo}()?.createHTML(r)||r}function ah(r){Ih=r}function Bd(){if(void 0!==Ih)return Ih;if(typeof document<"u")return document;throw new je(210,!1)}function lh(){if(void 0===tu&&(tu=null,Ft.trustedTypes))try{tu=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:r=>r,createScript:r=>r,createScriptURL:r=>r})}catch{}return tu}function mf(r){return lh()?.createHTML(r)||r}function gf(r){return lh()?.createScriptURL(r)||r}class gu{constructor(a){this.changingThisBreaksApplicationSecurity=a}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Lt})`}}class fd extends gu{getTypeName(){return"HTML"}}class vf extends gu{getTypeName(){return"Style"}}class kh extends gu{getTypeName(){return"Script"}}class Rp extends gu{getTypeName(){return"URL"}}class bf extends gu{getTypeName(){return"ResourceURL"}}function qc(r){return r instanceof gu?r.changingThisBreaksApplicationSecurity:r}function Hd(r,a){const d=function $f(r){return r instanceof gu&&r.getTypeName()||null}(r);if(null!=d&&d!==a){if("ResourceURL"===d&&"URL"===a)return!0;throw new Error(`Required a safe ${a}, got a ${d} (see ${Lt})`)}return d===a}function vu(r){return new fd(r)}function o(r){return new vf(r)}function t(r){return new kh(r)}function i(r){return new Rp(r)}function s(r){return new bf(r)}function c(r){const a=new v(r);return function M(){try{return!!(new window.DOMParser).parseFromString(Yd(""),"text/html")}catch{return!1}}()?new h(a):a}class h{constructor(a){this.inertDocumentHelper=a}getInertBodyElement(a){a=""+a;try{const d=(new window.DOMParser).parseFromString(Yd(a),"text/html").body;return null===d?this.inertDocumentHelper.getInertBodyElement(a):(d.removeChild(d.firstChild),d)}catch{return null}}}class v{constructor(a){this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(a){const d=this.inertDocument.createElement("template");return d.innerHTML=Yd(a),d}}const O=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function N(r){return(r=String(r)).match(O)?r:"unsafe:"+r}function $(r){const a={};for(const d of r.split(","))a[d]=!0;return a}function q(...r){const a={};for(const d of r)for(const _ in d)d.hasOwnProperty(_)&&(a[_]=!0);return a}const de=$("area,br,col,hr,img,wbr"),we=$("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),et=$("rp,rt"),Gt=q(de,q(we,$("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),q(et,$("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),q(et,we)),an=$("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zn=q(an,$("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Kn=$("script,style,template");class fi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(a){let d=a.firstChild,_=!0;for(;d;)if(d.nodeType===Node.ELEMENT_NODE?_=this.startElement(d):d.nodeType===Node.TEXT_NODE?this.chars(d.nodeValue):this.sanitizedSomething=!0,_&&d.firstChild)d=d.firstChild;else for(;d;){d.nodeType===Node.ELEMENT_NODE&&this.endElement(d);let x=this.checkClobberedElement(d,d.nextSibling);if(x){d=x;break}d=this.checkClobberedElement(d,d.parentNode)}return this.buf.join("")}startElement(a){const d=a.nodeName.toLowerCase();if(!Gt.hasOwnProperty(d))return this.sanitizedSomething=!0,!Kn.hasOwnProperty(d);this.buf.push("<"),this.buf.push(d);const _=a.attributes;for(let x=0;x<_.length;x++){const A=_.item(x),Y=A.name,z=Y.toLowerCase();if(!Zn.hasOwnProperty(z)){this.sanitizedSomething=!0;continue}let X=A.value;an[z]&&(X=N(X)),this.buf.push(" ",Y,'="',go(X),'"')}return this.buf.push(">"),!0}endElement(a){const d=a.nodeName.toLowerCase();Gt.hasOwnProperty(d)&&!de.hasOwnProperty(d)&&(this.buf.push(""))}chars(a){this.buf.push(go(a))}checkClobberedElement(a,d){if(d&&(a.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${a.outerHTML}`);return d}}const Gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vi=/([^\#-~ |!])/g;function go(r){return r.replace(/&/g,"&").replace(Gi,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(Vi,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}let Dr;function hs(r,a){let d=null;try{Dr=Dr||c(r);let _=a?String(a):"";d=Dr.getInertBodyElement(_);let x=5,A=_;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,_=A,A=d.innerHTML,d=Dr.getInertBodyElement(_)}while(_!==A);return Yd((new fi).sanitizeChildren(Vl(d)||d))}finally{if(d){const _=Vl(d)||d;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Vl(r){return"content"in r&&function ic(r){return r.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===r.nodeName}(r)?r.content:null}var Cs=function(r){return r[r.NONE=0]="NONE",r[r.HTML=1]="HTML",r[r.STYLE=2]="STYLE",r[r.SCRIPT=3]="SCRIPT",r[r.URL=4]="URL",r[r.RESOURCE_URL=5]="RESOURCE_URL",r}(Cs||{});function f(r){const a=pa();return a?mf(a.sanitize(Cs.HTML,r)||""):Hd(r,"HTML")?mf(qc(r)):hs(Bd(),xt(r))}function b(r){const a=pa();return a?a.sanitize(Cs.URL,r)||"":Hd(r,"URL")?qc(r):N(xt(r))}function P(r){const a=pa();if(a)return gf(a.sanitize(Cs.RESOURCE_URL,r)||"");if(Hd(r,"ResourceURL"))return gf(qc(r));throw new je(904,!1)}function Gn(r,a,d){return function yn(r,a){return"src"===a&&("embed"===r||"frame"===r||"iframe"===r||"media"===r||"script"===r)||"href"===a&&("base"===r||"link"===r)?P:b}(a,d)(r)}function pa(){const r=kn();return r&&r[va].sanitizer}const Ea=new Ut("ENVIRONMENT_INITIALIZER"),Lh=new Ut("INJECTOR",-1),yf=new Ut("INJECTOR_DEF_TYPES");class wf{get(a,d=U){if(d===U){const _=new Error(`NullInjectorError: No provider for ${se(a)}!`);throw _.name="NullInjectorError",_}return d}}function Rc(r){return{\u0275providers:r}}function Qc(...r){return{\u0275providers:ch(0,r),\u0275fromNgModule:!0}}function ch(r,...a){const d=[],_=new Set;let x;const A=Y=>{d.push(Y)};return Gc(a,Y=>{const z=Y;Kf(z,A,[],_)&&(x||=[],x.push(z))}),void 0!==x&&M_(x,A),d}function M_(r,a){for(let d=0;d{a(A,_)})}}function Kf(r,a,d,_){if(!(r=_e(r)))return!1;let x=null,A=ei(r);const Y=!A&&Li(r);if(A||Y){if(Y&&!Y.standalone)return!1;x=r}else{const X=r.ngModule;if(A=ei(X),!A)return!1;x=X}const z=_.has(x);if(Y){if(z)return!1;if(_.add(x),Y.dependencies){const X="function"==typeof Y.dependencies?Y.dependencies():Y.dependencies;for(const De of X)Kf(De,a,d,_)}}else{if(!A)return!1;{if(null!=A.imports&&!z){let De;_.add(x);try{Gc(A.imports,Ke=>{Kf(Ke,a,d,_)&&(De||=[],De.push(Ke))})}finally{}void 0!==De&&M_(De,a)}if(!z){const De=Xo(x)||(()=>new x);a({provide:x,useFactory:De,deps:Vn},x),a({provide:yf,useValue:x,multi:!0},x),a({provide:Ea,useValue:()=>wt(x),multi:!0},x)}const X=A.providers;if(null!=X&&!z){const De=r;xf(X,Ke=>{a(Ke,De)})}}}return x!==r&&void 0!==r.providers}function xf(r,a){for(let d of r)mt(d)&&(d=d.\u0275providers),Array.isArray(d)?xf(d,a):a(d)}const o0=re({provide:String,useValue:re});function Jf(r){return null!==r&&"object"==typeof r&&o0 in r}function Nh(r){return"function"==typeof r}const qf=new Ut("Set Injector scope."),Mf={},Cf={};let Fh;function kp(){return void 0===Fh&&(Fh=new wf),Fh}class bu{}class Tf extends bu{get destroyed(){return this._destroyed}constructor(a,d,_,x){super(),this.parent=d,this.source=_,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qf(a,Y=>this.processProvider(Y)),this.records.set(Lh,dh(void 0,this)),x.has("environment")&&this.records.set(bu,dh(void 0,this));const A=this.records.get(qf);null!=A&&"string"==typeof A.value&&this.scopes.add(A.value),this.injectorDefTypes=new Set(this.get(yf.multi,Vn,Ce.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const d of this._ngOnDestroyHooks)d.ngOnDestroy();const a=this._onDestroyHooks;this._onDestroyHooks=[];for(const d of a)d()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(a){return this.assertNotDestroyed(),this._onDestroyHooks.push(a),()=>this.removeOnDestroy(a)}runInContext(a){this.assertNotDestroyed();const d=Wt(this),_=Oe(void 0);try{return a()}finally{Wt(d),Oe(_)}}get(a,d=U,_=Ce.Default){if(this.assertNotDestroyed(),a.hasOwnProperty(Ji))return a[Ji](this);_=Mt(_);const A=Wt(this),Y=Oe(void 0);try{if(!(_&Ce.SkipSelf)){let X=this.records.get(a);if(void 0===X){const De=function Yh(r){return"function"==typeof r||"object"==typeof r&&r instanceof Ut}(a)&&Dn(a);X=De&&this.injectableDefInScope(De)?dh(T_(a),Mf):null,this.records.set(a,X)}if(null!=X)return this.hydrate(a,X)}return(_&Ce.Self?kp():this.parent).get(a,d=_&Ce.Optional&&d===U?null:d)}catch(z){if("NullInjectorError"===z.name){if((z[Pe]=z[Pe]||[]).unshift(se(a)),A)throw z;return function It(r,a,d,_){const x=r[Pe];throw a[be]&&x.unshift(a[be]),r.message=function cn(r,a,d,_=null){r=r&&"\n"===r.charAt(0)&&"\u0275"==r.charAt(1)?r.slice(2):r;let x=se(a);if(Array.isArray(a))x=a.map(se).join(" -> ");else if("object"==typeof a){let A=[];for(let Y in a)if(a.hasOwnProperty(Y)){let z=a[Y];A.push(Y+":"+("string"==typeof z?JSON.stringify(z):se(z)))}x=`{${A.join(", ")}}`}return`${d}${_?"("+_+")":""}[${x}]: ${r.replace(We,"\n ")}`}("\n"+r.message,x,d,_),r.ngTokenPath=x,r[Pe]=null,r}(z,a,"R3InjectorError",this.source)}throw z}finally{Oe(Y),Wt(A)}}resolveInjectorInitializers(){const a=Wt(this),d=Oe(void 0);try{const x=this.get(Ea.multi,Vn,Ce.Self);for(const A of x)A()}finally{Wt(a),Oe(d)}}toString(){const a=[],d=this.records;for(const _ of d.keys())a.push(se(_));return`R3Injector[${a.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new je(205,!1)}processProvider(a){let d=Nh(a=_e(a))?a:_e(a&&a.provide);const _=function a0(r){return Jf(r)?dh(void 0,r.useValue):dh(D_(r),Mf)}(a);if(Nh(a)||!0!==a.multi)this.records.get(d);else{let x=this.records.get(d);x||(x=dh(void 0,Mf,!0),x.factory=()=>Vt(x.multi),this.records.set(d,x)),d=a,x.multi.push(a)}this.records.set(d,_)}hydrate(a,d){return d.value===Mf&&(d.value=Cf,d.value=d.factory()),"object"==typeof d.value&&d.value&&function bl(r){return null!==r&&"object"==typeof r&&"function"==typeof r.ngOnDestroy}(d.value)&&this._ngOnDestroyHooks.add(d.value),d.value}injectableDefInScope(a){if(!a.providedIn)return!1;const d=_e(a.providedIn);return"string"==typeof d?"any"===d||this.scopes.has(d):this.injectorDefTypes.has(d)}removeOnDestroy(a){const d=this._onDestroyHooks.indexOf(a);-1!==d&&this._onDestroyHooks.splice(d,1)}}function T_(r){const a=Dn(r),d=null!==a?a.factory:Xo(r);if(null!==d)return d;if(r instanceof Ut)throw new je(204,!1);if(r instanceof Function)return function s0(r){const a=r.length;if(a>0)throw Oc(a,"?"),new je(204,!1);const d=function vn(r){return r&&(r[Wn]||r[ct])||null}(r);return null!==d?()=>d.factory(r):()=>new r}(r);throw new je(204,!1)}function D_(r,a,d){let _;if(Nh(r)){const x=_e(r);return Xo(x)||T_(x)}if(Jf(r))_=()=>_e(r.useValue);else if(function Wm(r){return!(!r||!r.useFactory)}(r))_=()=>r.useFactory(...Vt(r.deps||[]));else if(function Gm(r){return!(!r||!r.useExisting)}(r))_=()=>wt(_e(r.useExisting));else{const x=_e(r&&(r.useClass||r.provide));if(!function E_(r){return!!r.deps}(r))return Xo(x)||T_(x);_=()=>new x(...Vt(r.deps))}return _}function dh(r,a,d=!1){return{factory:r,value:a,multi:d?[]:void 0}}function Qf(r,a){for(const d of r)Array.isArray(d)?Qf(d,a):d&&mt(d)?Qf(d.\u0275providers,a):a(d)}const S_=new Ut("AppId",{providedIn:"root",factory:()=>$m}),$m="ng",Df=new Ut("Platform Initializer"),Ef=new Ut("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Km=new Ut("AnimationModuleType"),Jm=new Ut("CSP nonce",{providedIn:"root",factory:()=>Bd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let O_=(r,a,d)=>null;function np(r,a,d=!1){return O_(r,a,d)}class tg{}class R_{}class ig{resolveComponentFactory(a){throw function ng(r){const a=Error(`No component factory found for ${se(r)}.`);return a.ngComponent=r,a}(a)}}let Af=(()=>{class r{static#e=this.NULL=new ig}return r})();function rg(){return Uh(en(),kn())}function Uh(r,a){return new Vh(_o(r,a))}let Vh=(()=>{class r{constructor(d){this.nativeElement=d}static#e=this.__NG_ELEMENT_ID__=rg}return r})();function L_(r){return r instanceof Vh?r.nativeElement:r}class jp{}let P_=(()=>{class r{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function N_(){const r=kn(),d=ko(en().index,r);return(po(d)?d:r)[Ti]}()}return r})(),og=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>null})}return r})();class Zp{constructor(a){this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")}}const sg=new Zp("16.2.12"),zp={};function Gp(r){if(!ae()&&!function He(){return Te}())throw new je(-203,!1)}function dg(r,a=null,d=null,_){const x=ug(r,a,d,_);return x.resolveInjectorInitializers(),x}function ug(r,a=null,d=null,_,x=new Set){const A=[d||Vn,Qc(r)];return _=_||("object"==typeof r?void 0:se(r)),new Tf(A,a||kp(),_||null,x)}let Vd=(()=>{class r{static#e=this.THROW_IF_NOT_FOUND=U;static#t=this.NULL=new wf;static create(d,_){if(Array.isArray(d))return dg({name:""},_,d,"");{const x=d.name??"";return dg({name:x},d.parent,d.providers,x)}}static#n=this.\u0275prov=Nt({token:r,providedIn:"any",factory:()=>wt(Lh)});static#i=this.__NG_ELEMENT_ID__=-1}return r})();function F_(r){return r.ngOriginalError}class uh{constructor(){this._console=console}handleError(a){const d=this._findOriginalError(a);this._console.error("ERROR",a),d&&this._console.error("ORIGINAL ERROR",d)}_findOriginalError(a){let d=a&&F_(a);for(;d&&F_(d);)d=F_(d);return d||null}}let lp=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=Y_;static#t=this.__NG_ENV_ID__=d=>d}return r})();class v0 extends lp{constructor(a){super(),this._lView=a}onDestroy(a){return nd(this._lView,a),()=>function lc(r,a){if(null===r[Sr])return;const d=r[Sr].indexOf(a);-1!==d&&r[Sr].splice(d,1)}(this._lView,a)}}function Y_(){return new v0(kn())}function Xc(r){return a=>{setTimeout(r,void 0,a)}}const vo=class b0 extends e.x{constructor(a=!1){super(),this.__isAsync=a}emit(a){super.next(a)}subscribe(a,d,_){let x=a,A=d||(()=>null),Y=_;if(a&&"object"==typeof a){const X=a;x=X.next?.bind(X),A=X.error?.bind(X),Y=X.complete?.bind(X)}this.__isAsync&&(A=Xc(A),x&&(x=Xc(x)),Y&&(Y=Xc(Y)));const z=super.subscribe({next:x,error:A,complete:Y});return a instanceof l.w0&&a.add(z),z}};function cp(...r){}class jl{constructor({enableLongStackTrace:a=!1,shouldCoalesceEventChangeDetection:d=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vo(!1),this.onMicrotaskEmpty=new vo(!1),this.onStable=new vo(!1),this.onError=new vo(!1),typeof Zone>"u")throw new je(908,!1);Zone.assertZonePatched();const x=this;x._nesting=0,x._outer=x._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!_&&d,x.shouldCoalesceRunChangeDetection=_,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function B_(){const r="function"==typeof Ft.requestAnimationFrame;let a=Ft[r?"requestAnimationFrame":"setTimeout"],d=Ft[r?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&a&&d){const _=a[Zone.__symbol__("OriginalDelegate")];_&&(a=_);const x=d[Zone.__symbol__("OriginalDelegate")];x&&(d=x)}return{nativeRequestAnimationFrame:a,nativeCancelAnimationFrame:d}}().nativeRequestAnimationFrame,function If(r){const a=()=>{!function y0(r){r.isCheckStableRunning||-1!==r.lastRequestAnimationFrameId||(r.lastRequestAnimationFrameId=r.nativeRequestAnimationFrame.call(Ft,()=>{r.fakeTopEventTask||(r.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{r.lastRequestAnimationFrameId=-1,jh(r),r.isCheckStableRunning=!0,Of(r),r.isCheckStableRunning=!1},void 0,()=>{},()=>{})),r.fakeTopEventTask.invoke()}),jh(r))}(r)};r._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(d,_,x,A,Y,z)=>{if(function Zh(r){return!(!Array.isArray(r)||1!==r.length)&&!0===r[0].data?.__ignore_ng_zone__}(z))return d.invokeTask(x,A,Y,z);try{return Wp(r),d.invokeTask(x,A,Y,z)}finally{(r.shouldCoalesceEventChangeDetection&&"eventTask"===A.type||r.shouldCoalesceRunChangeDetection)&&a(),U_(r)}},onInvoke:(d,_,x,A,Y,z,X)=>{try{return Wp(r),d.invoke(x,A,Y,z,X)}finally{r.shouldCoalesceRunChangeDetection&&a(),U_(r)}},onHasTask:(d,_,x,A)=>{d.hasTask(x,A),_===x&&("microTask"==A.change?(r._hasPendingMicrotasks=A.microTask,jh(r),Of(r)):"macroTask"==A.change&&(r.hasPendingMacrotasks=A.macroTask))},onHandleError:(d,_,x,A)=>(d.handleError(x,A),r.runOutsideAngular(()=>r.onError.emit(A)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jl.isInAngularZone())throw new je(909,!1)}static assertNotInAngularZone(){if(jl.isInAngularZone())throw new je(909,!1)}run(a,d,_){return this._inner.run(a,d,_)}runTask(a,d,_,x){const A=this._inner,Y=A.scheduleEventTask("NgZoneEvent: "+x,a,fg,cp,cp);try{return A.runTask(Y,d,_)}finally{A.cancelTask(Y)}}runGuarded(a,d,_){return this._inner.runGuarded(a,d,_)}runOutsideAngular(a){return this._outer.run(a)}}const fg={};function Of(r){if(0==r._nesting&&!r.hasPendingMicrotasks&&!r.isStable)try{r._nesting++,r.onMicrotaskEmpty.emit(null)}finally{if(r._nesting--,!r.hasPendingMicrotasks)try{r.runOutsideAngular(()=>r.onStable.emit(null))}finally{r.isStable=!0}}}function jh(r){r.hasPendingMicrotasks=!!(r._hasPendingMicrotasks||(r.shouldCoalesceEventChangeDetection||r.shouldCoalesceRunChangeDetection)&&-1!==r.lastRequestAnimationFrameId)}function Wp(r){r._nesting++,r.isStable&&(r.isStable=!1,r.onUnstable.emit(null))}function U_(r){r._nesting--,Of(r)}class pg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vo,this.onMicrotaskEmpty=new vo,this.onStable=new vo,this.onError=new vo}run(a,d,_){return a.apply(d,_)}runGuarded(a,d,_){return a.apply(d,_)}runOutsideAngular(a){return a()}runTask(a,d,_,x){return a.apply(d,_)}}const V_=new Ut("",{providedIn:"root",factory:j_});function j_(){const r=fe(jl);let a=!0;const d=new D.y(x=>{a=r.isStable&&!r.hasPendingMacrotasks&&!r.hasPendingMicrotasks,r.runOutsideAngular(()=>{x.next(a),x.complete()})}),_=new D.y(x=>{let A;r.runOutsideAngular(()=>{A=r.onStable.subscribe(()=>{jl.assertNotInAngularZone(),queueMicrotask(()=>{!a&&!r.hasPendingMacrotasks&&!r.hasPendingMicrotasks&&(a=!0,x.next(!0))})})});const Y=r.onUnstable.subscribe(()=>{jl.assertInAngularZone(),a&&(a=!1,r.runOutsideAngular(()=>{x.next(!1)}))});return()=>{A.unsubscribe(),Y.unsubscribe()}});return(0,I.T)(d,_.pipe((0,n.B)()))}function Uu(r){return r.ownerDocument.defaultView}function zh(r){return r.ownerDocument}function pd(r){return r instanceof Function?r():r}let z_=(()=>{class r{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>new r})}return r})();function dp(r){for(;r;){r[bi]|=64;const a=du(r);if(Oa(r)&&!a)return r;r=a}return null}const vg=new Ut("",{providedIn:"root",factory:()=>!1});let kf=null;function Lf(r,a){return r[a]??Kp()}function W_(r,a){const d=Kp();d.producerNode?.length&&(r[a]=kf,d.lView=r,kf=Mg())}const up={...Va,consumerIsAlwaysLive:!0,consumerMarkedDirty:r=>{dp(r.lView)},lView:null};function Mg(){return Object.create(up)}function Kp(){return kf??=Mg(),kf}const Ki={};function Cg(r){$_(Fi(),kn(),Do()+r,!1)}function $_(r,a,d,_){if(!_)if(3==(3&a[bi])){const A=r.preOrderCheckHooks;null!==A&&Xa(a,A,d)}else{const A=r.preOrderHooks;null!==A&&ld(a,A,0,d)}qa(d)}function fh(r,a=Ce.Default){const d=kn();return null===d?wt(r,a):nt(en(),d,_e(r),a)}function K_(){throw new Error("invalid")}function hp(r,a,d,_,x,A,Y,z,X,De,Ke){const Rt=a.blueprint.slice();return Rt[er]=x,Rt[bi]=140|_,(null!==De||r&&2048&r[bi])&&(Rt[bi]|=2048),Vs(Rt),Rt[_r]=Rt[Qs]=r,Rt[nr]=d,Rt[va]=Y||r&&r[va],Rt[Ti]=z||r&&r[Ti],Rt[ps]=X||r&&r[ps]||null,Rt[no]=A,Rt[Xs]=function tf(){return vh++}(),Rt[jr]=Ke,Rt[Ml]=De,Rt[wi]=2==a.type?r[wi]:Rt,Rt}function Vu(r,a,d,_,x){let A=r.data[a];if(null===A)A=Jp(r,a,d,_,x),function V(){return Ei.lFrame.inI18n}()&&(A.flags|=32);else if(64&A.type){A.type=d,A.value=_,A.attrs=x;const Y=gt();A.injectorIndex=null===Y?-1:Y.injectorIndex}return la(A,!0),A}function Jp(r,a,d,_,x){const A=so(),Y=Ra(),X=r.data[a]=function Ag(r,a,d,_,x,A){let Y=a?a.injectorIndex:-1,z=0;return hl()&&(z|=128),{type:d,index:_,insertBeforeIndex:null,injectorIndex:Y,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:z,providerIndexes:0,value:x,attrs:A,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:a,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,Y?A:A&&A.parent,d,a,_,x);return null===r.firstChild&&(r.firstChild=X),null!==A&&(Y?null==A.child&&null!==X.parent&&(A.child=X):null===A.next&&(A.next=X,X.prev=A)),X}function Pf(r,a,d,_){if(0===d)return-1;const x=a.length;for(let A=0;AAi&&$_(r,a,Ai,!1),Qr(z?2:0,x);const De=z?A:null,Ke=ts(De);try{null!==De&&(De.dirty=!1),d(_,x)}finally{Wl(De,Ke)}}finally{z&&null===a[xo]&&W_(a,xo),qa(Y),Qr(z?3:1,x)}}function qp(r,a,d){if(qo(a)){const _=Ro(null);try{const A=a.directiveEnd;for(let Y=a.directiveStart;Ynull;function X_(r,a,d,_){for(let x in r)if(r.hasOwnProperty(x)){d=null===d?{}:d;const A=r[x];null===_?em(d,a,x,A):_.hasOwnProperty(x)&&em(d,a,_[x],A)}return d}function em(r,a,d,_){r.hasOwnProperty(d)?r[d].push(a,_):r[d]=[a,_]}function md(r,a,d,_,x,A,Y,z){const X=_o(a,d);let Ke,De=a.inputs;!z&&null!=De&&(Ke=De[_])?(lm(r,d,Ke,_,x),Ss(a)&&function tm(r,a){const d=ko(a,r);16&d[bi]||(d[bi]|=64)}(d,a.index)):3&a.type&&(_=function E0(r){return"class"===r?"className":"for"===r?"htmlFor":"formaction"===r?"formAction":"innerHtml"===r?"innerHTML":"readonly"===r?"readOnly":"tabindex"===r?"tabIndex":r}(_),x=null!=Y?Y(x,a.value||"",_):x,A.setProperty(X,_,x))}function mp(r,a,d,_){if(cc()){const x=null===_?null:{"":-1},A=function A0(r,a){const d=r.directiveRegistry;let _=null,x=null;if(d)for(let A=0;A0;){const d=r[--a];if("number"==typeof d&&d<0)return d}return 0})(Y)!=z&&Y.push(z),Y.push(d,_,A)}}(r,a,_,Pf(r,d,x.hostVars,Ki),x)}function wu(r,a,d,_,x,A){const Y=_o(r,a);!function om(r,a,d,_,x,A,Y){if(null==A)r.removeAttribute(a,x,d);else{const z=null==Y?xt(A):Y(A,_||"",x);r.setAttribute(a,x,z,d)}}(a[Ti],Y,A,r.value,d,_,x)}function sm(r,a,d,_,x,A){const Y=A[a];if(null!==Y)for(let z=0;z{class r{constructor(){this.all=new Set,this.queue=new Map}create(d,_,x){const A=typeof Zone>"u"?null:Zone.current,Y=function Sn(r,a,d){const _=Object.create(ur);d&&(_.consumerAllowSignalWrites=!0),_.fn=r,_.schedule=a;const x=Y=>{_.cleanupFn=Y};return _.ref={notify:()=>es(_),run:()=>{if(_.dirty=!1,_.hasRun&&!gs(_))return;_.hasRun=!0;const Y=ts(_);try{_.cleanupFn(),_.cleanupFn=li,_.fn(x)}finally{Wl(_,Y)}},cleanup:()=>_.cleanupFn()},_.ref}(d,De=>{this.all.has(De)&&this.queue.set(De,A)},x);let z;this.all.add(Y),Y.notify();const X=()=>{Y.cleanup(),z?.(),this.all.delete(Y),this.queue.delete(Y)};return z=_?.onDestroy(X),{destroy:X}}flush(){if(0!==this.queue.size)for(const[d,_]of this.queue)this.queue.delete(d),_?_.run(()=>d.run()):d.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>new r})}return r})();function r_(r,a,d){let _=d?r.styles:null,x=d?r.classes:null,A=0;if(null!==a)for(let Y=0;Y0){Vg(r,1);const x=d.components;null!==x&&Zg(r,x,1)}}function Zg(r,a,d){for(let _=0;_-1&&(Lu(a,_),ml(d,_))}this._attachedToViewContainer=!1}eh(this._lView[qn],this._lView)}onDestroy(a){nd(this._lView,a)}markForCheck(){dp(this._cdRefInjectingView||this._lView)}detach(){this._lView[bi]&=-129}reattach(){this._lView[bi]|=128}detectChanges(){o_(this._lView[qn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new je(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function uf(r,a){_u(r,a,a[Ti],2,null,null)}(this._lView[qn],this._lView)}attachToAppRef(a){if(this._attachedToViewContainer)throw new je(902,!1);this._appRef=a}}class B0 extends yp{constructor(a){super(a),this._view=a}detectChanges(){const a=this._view;o_(a[qn],a,a[nr],!1)}checkNoChanges(){}get context(){return null}}class s_ extends Af{constructor(a){super(),this.ngModule=a}resolveComponentFactory(a){const d=Li(a);return new wp(d,this.ngModule)}}function zg(r){const a=[];for(let d in r)r.hasOwnProperty(d)&&a.push({propName:r[d],templateName:d});return a}class U0{constructor(a,d){this.injector=a,this.parentInjector=d}get(a,d,_){_=Mt(_);const x=this.injector.get(a,zp,_);return x!==zp||d===zp?x:this.parentInjector.get(a,d,_)}}class wp extends R_{get inputs(){const a=this.componentDef,d=a.inputTransforms,_=zg(a.inputs);if(null!==d)for(const x of _)d.hasOwnProperty(x.propName)&&(x.transform=d[x.propName]);return _}get outputs(){return zg(this.componentDef.outputs)}constructor(a,d){super(),this.componentDef=a,this.ngModule=d,this.componentType=a.type,this.selector=function Jr(r){return r.map(Uo).join(",")}(a.selectors),this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[],this.isBoundToModule=!!d}create(a,d,_,x){let A=(x=x||this.ngModule)instanceof bu?x:x?.injector;A&&null!==this.componentDef.getStandaloneInjector&&(A=this.componentDef.getStandaloneInjector(A)||A);const Y=A?new U0(a,A):a,z=Y.get(jp,null);if(null===z)throw new je(407,!1);const Rt={rendererFactory:z,sanitizer:Y.get(og,null),effectManager:Y.get(Bg,null),afterRenderEventManager:Y.get(z_,null)},Xt=z.createRenderer(null,this.componentDef),ln=this.componentDef.selectors[0][0]||"div",In=_?function Q_(r,a,d,_){const A=_.get(vg,!1)||d===On.ShadowDom,Y=r.selectRootElement(a,A);return function Eg(r){Gh(r)}(Y),Y}(Xt,_,this.componentDef.encapsulation,Y):hu(Xt,ln,function H0(r){const a=r.toLowerCase();return"svg"===a?zr:"math"===a?"math":null}(ln)),Yi=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Fn=null;null!==In&&(Fn=np(In,Y,!0));const cr=pp(0,null,null,1,0,null,null,null,null,null,null),Ur=hp(null,cr,null,Yi,null,null,Rt,Xt,Y,null,Fn);let xs,wd;$i(Ur);try{const mh=this.componentDef;let Op,r0=null;mh.findHostDirectiveDefs?(Op=[],r0=new Map,mh.findHostDirectiveDefs(mh,Op,r0),Op.push(mh)):Op=[mh];const GT=function V0(r,a){const d=r[qn],_=Ai;return r[_]=a,Vu(d,_,2,"#host",null)}(Ur,In),WT=function j0(r,a,d,_,x,A,Y){const z=x[qn];!function Z0(r,a,d,_){for(const x of r)a.mergedAttrs=br(a.mergedAttrs,x.hostAttrs);null!==a.mergedAttrs&&(r_(a,a.mergedAttrs,!0),null!==d&&us(_,d,a))}(_,r,a,Y);let X=null;null!==a&&(X=np(a,x[ps]));const De=A.rendererFactory.createRenderer(a,d);let Ke=16;d.signals?Ke=4096:d.onPush&&(Ke=64);const Rt=hp(x,q_(d),null,Ke,x[r.index],r,A,De,null,null,X);return z.firstCreatePass&&gp(z,r,_.length-1),i_(x,Rt),x[r.index]=Rt}(GT,In,mh,Op,Ur,Rt,Xt);wd=Xi(cr,Ai),In&&function Gg(r,a,d,_){if(_)_i(r,d,["ng-version",sg.full]);else{const{attrs:x,classes:A}=function ga(r){const a=[],d=[];let _=1,x=2;for(;_0&&Fd(r,d,A.join(" "))}}(Xt,mh,In,_),void 0!==d&&function G0(r,a,d){const _=r.projection=[];for(let x=0;x=0;_--){const x=r[_];x.hostVars=a+=x.hostVars,x.hostAttrs=br(x.hostAttrs,d=br(d,x.hostAttrs))}}(_)}function a_(r){return r===ni?{}:r===Vn?[]:r}function $0(r,a){const d=r.viewQuery;r.viewQuery=d?(_,x)=>{a(_,x),d(_,x)}:a}function $g(r,a){const d=r.contentQueries;r.contentQueries=d?(_,x,A)=>{a(_,x,A),d(_,x,A)}:a}function K0(r,a){const d=r.hostBindings;r.hostBindings=d?(_,x)=>{a(_,x),d(_,x)}:a}function Kg(r){return a=>{a.findHostDirectiveDefs=l_,a.hostDirectives=(Array.isArray(r)?r:r()).map(d=>"function"==typeof d?{directive:_e(d),inputs:ni,outputs:ni}:{directive:_e(d.directive),inputs:mm(d.inputs),outputs:mm(d.outputs)})}}function l_(r,a,d){if(null!==r.hostDirectives)for(const _ of r.hostDirectives){const x=Yr(_.directive);Jg(x.declaredInputs,_.inputs),l_(x,a,d),d.set(x,_),a.push(x)}}function mm(r){if(void 0===r||0===r.length)return ni;const a={};for(let d=0;d(pl(!0),hu(_,x,function hc(){return Ei.lFrame.currentNamespace}()));function Tm(r,a,d){const _=kn(),x=Fi(),A=r+Ai,Y=x.firstCreatePass?function Lw(r,a,d,_,x){const A=a.consts,Y=Us(A,_),z=Vu(a,r,8,"ng-container",Y);return null!==Y&&r_(z,Y,!0),mp(a,d,z,Us(A,x)),null!==a.queries&&a.queries.elementStart(a,z),z}(A,x,_,a,d):x.data[A];la(Y,!0);const z=s1(x,_,Y,r);return _[A]=z,js()&&Dc(x,_,z,Y),rl(z,_),ya(Y)&&(Qp(x,_,Y),qp(x,Y,_)),null!=d&&fp(_,Y),Tm}function Dm(){let r=en();const a=Fi();return Ra()?Ls():(r=r.parent,la(r,!1)),a.firstCreatePass&&(Pi(a,r),qo(r)&&a.queries.elementEnd(r)),Dm}function rv(r,a,d){return Tm(r,a,d),Dm(),rv}let s1=(r,a,d,_)=>(pl(!0),Qu(a[Ti],""));function a1(){return kn()}function ov(r){return!!r&&"function"==typeof r.then}function l1(r){return!!r&&"function"==typeof r.subscribe}function sv(r,a,d,_){const x=kn(),A=Fi(),Y=en();return c1(A,x,x[Ti],Y,r,a,_),sv}function av(r,a){const d=en(),_=kn(),x=Fi();return c1(x,_,Fg(mn(x.data),d,_),d,r,a),av}function c1(r,a,d,_,x,A,Y){const z=ya(_),De=r.firstCreatePass&&Ng(r),Ke=a[nr],Rt=am(a);let Xt=!0;if(3&_.type||Y){const zn=_o(_,a),ui=Y?Y(zn):zn,Yi=Rt.length,Fn=Y?Ur=>Y(yi(Ur[_.index])):_.index;let cr=null;if(!Y&&z&&(cr=function Fw(r,a,d,_){const x=r.cleanup;if(null!=x)for(let A=0;AX?z[X]:null}"string"==typeof Y&&(A+=2)}return null}(r,a,x,_.index)),null!==cr)(cr.__ngLastListenerFn__||cr).__ngNextListenerFn__=A,cr.__ngLastListenerFn__=A,Xt=!1;else{A=u1(_,a,Ke,A,!1);const Ur=d.listen(ui,x,A);Rt.push(A,Ur),De&&De.push(x,Fn,Yi,Yi+1)}}else A=u1(_,a,Ke,A,!1);const ln=_.outputs;let In;if(Xt&&null!==ln&&(In=ln[x])){const zn=In.length;if(zn)for(let ui=0;ui-1?ko(r.index,a):a);let X=d1(a,d,_,Y),De=A.__ngNextListenerFn__;for(;De;)X=d1(a,d,De,Y)&&X,De=De.__ngNextListenerFn__;return x&&!1===X&&Y.preventDefault(),X}}function h1(r=1){return function xd(r){return(Ei.lFrame.contextLView=function Md(r,a){for(;r>0;)a=a[Qs],r--;return a}(r,Ei.lFrame.contextLView))[nr]}(r)}function Yw(r,a){let d=null;const _=function xl(r){const a=r.attrs;if(null!=a){const d=a.indexOf(5);if(!(1&d))return a[d+1]}return null}(r);for(let x=0;x>17&32767}function cv(r){return 2|r}function Bf(r){return(131068&r)>>2}function dv(r,a){return-131069&r|a<<2}function uv(r){return 1|r}function M1(r,a,d,_,x){const A=r[d+1],Y=null===a;let z=_?$h(A):Bf(A),X=!1;for(;0!==z&&(!1===X||Y);){const Ke=r[z+1];Zw(r[z],a)&&(X=!0,r[z+1]=_?uv(Ke):cv(Ke)),z=_?$h(Ke):Bf(Ke)}X&&(r[d+1]=_?cv(A):uv(A))}function Zw(r,a){return null===r||null==a||(Array.isArray(r)?r[1]:r)===a||!(!Array.isArray(r)||"string"!=typeof a)&&No(r,a)>=0}const rc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function C1(r){return r.substring(rc.key,rc.keyEnd)}function zw(r){return r.substring(rc.value,rc.valueEnd)}function T1(r,a){const d=rc.textEnd;return d===a?-1:(a=rc.keyEnd=function $w(r,a,d){for(;a32;)a++;return a}(r,rc.key=a,d),Mp(r,a,d))}function D1(r,a){const d=rc.textEnd;let _=rc.key=Mp(r,a,d);return d===_?-1:(_=rc.keyEnd=function Kw(r,a,d){let _;for(;a=65&&(-33&_)<=90||_>=48&&_<=57);)a++;return a}(r,_,d),_=S1(r,_,d),_=rc.value=Mp(r,_,d),_=rc.valueEnd=function Jw(r,a,d){let _=-1,x=-1,A=-1,Y=a,z=Y;for(;Y32&&(z=Y),A=x,x=_,_=-33&X}return z}(r,_,d),S1(r,_,d))}function E1(r){rc.key=0,rc.keyEnd=0,rc.value=0,rc.valueEnd=0,rc.textEnd=r.length}function Mp(r,a,d){for(;a=0;d=D1(a,d))k1(r,C1(a),zw(a))}function O1(r){Du(ix,zu,r,!0)}function zu(r,a){for(let d=function Gw(r){return E1(r),T1(r,Mp(r,0,rc.textEnd))}(a);d>=0;d=T1(a,d))Xr(r,C1(a),!0)}function Tu(r,a,d,_){const x=kn(),A=Fi(),Y=ne(2);A.firstUpdatePass&&R1(A,r,Y,_),a!==Ki&&Je(x,Y,a)&&L1(A,A.data[Do()],x,x[Ti],r,x[Y+1]=function ox(r,a){return null==r||""===r||("string"==typeof a?r+=a:"object"==typeof r&&(r=se(qc(r)))),r}(a,d),_,Y)}function Du(r,a,d,_){const x=Fi(),A=ne(2);x.firstUpdatePass&&R1(x,null,A,_);const Y=kn();if(d!==Ki&&Je(Y,A,d)){const z=x.data[Do()];if(N1(z,_)&&!I1(x,A)){let X=_?z.classesWithoutHost:z.stylesWithoutHost;null!==X&&(d=te(X,d||"")),nv(x,z,Y,d,_)}else!function rx(r,a,d,_,x,A,Y,z){x===Ki&&(x=Vn);let X=0,De=0,Ke=0=r.expandoStartIndex}function R1(r,a,d,_){const x=r.data;if(null===x[d+1]){const A=x[Do()],Y=I1(r,d);N1(A,_)&&null===a&&!Y&&(a=!1),a=function Qw(r,a,d,_){const x=mn(r);let A=_?a.residualClasses:a.residualStyles;if(null===x)0===(_?a.classBindings:a.styleBindings)&&(d=h_(d=pv(null,r,a,d,_),a.attrs,_),A=null);else{const Y=a.directiveStylingLast;if(-1===Y||r[Y]!==x)if(d=pv(x,r,a,d,_),null===A){let X=function Xw(r,a,d){const _=d?a.classBindings:a.styleBindings;if(0!==Bf(_))return r[$h(_)]}(r,a,_);void 0!==X&&Array.isArray(X)&&(X=pv(null,r,a,X[1],_),X=h_(X,a.attrs,_),function ex(r,a,d,_){r[$h(d?a.classBindings:a.styleBindings)]=_}(r,a,_,X))}else A=function tx(r,a,d){let _;const x=a.directiveEnd;for(let A=1+a.directiveStylingLast;A0)&&(De=!0)):Ke=d,x)if(0!==X){const Xt=$h(r[z+1]);r[_+1]=Sm(Xt,z),0!==Xt&&(r[Xt+1]=dv(r[Xt+1],_)),r[z+1]=function Hw(r,a){return 131071&r|a<<17}(r[z+1],_)}else r[_+1]=Sm(z,0),0!==z&&(r[z+1]=dv(r[z+1],_)),z=_;else r[_+1]=Sm(X,0),0===z?z=_:r[X+1]=dv(r[X+1],_),X=_;De&&(r[_+1]=cv(r[_+1])),M1(r,Ke,_,!0),M1(r,Ke,_,!1),function jw(r,a,d,_,x){const A=x?r.residualClasses:r.residualStyles;null!=A&&"string"==typeof a&&No(A,a)>=0&&(d[_+1]=uv(d[_+1]))}(a,Ke,r,_,A),Y=Sm(z,X),A?a.classBindings=Y:a.styleBindings=Y}(x,A,a,d,Y,_)}}function pv(r,a,d,_,x){let A=null;const Y=d.directiveEnd;let z=d.directiveStylingLast;for(-1===z?z=d.directiveStart:z++;z0;){const X=r[x],De=Array.isArray(X),Ke=De?X[1]:X,Rt=null===Ke;let Xt=d[x+1];Xt===Ki&&(Xt=Rt?Vn:void 0);let ln=Rt?Mc(Xt,_):Ke===_?Xt:void 0;if(De&&!Am(ln)&&(ln=Mc(X,_)),Am(ln)&&(z=ln,Y))return z;const In=r[x+1];x=Y?$h(In):Bf(In)}if(null!==a){let X=A?a.residualClasses:a.residualStyles;null!=X&&(z=Mc(X,_))}return z}function Am(r){return void 0!==r}function N1(r,a){return 0!=(r.flags&(a?8:16))}function F1(r,a=""){const d=kn(),_=Fi(),x=r+Ai,A=_.firstCreatePass?Vu(_,x,1,a,null):_.data[x],Y=Y1(_,d,A,a,r);d[x]=Y,js()&&Dc(_,d,Y,A),la(A,!1)}let Y1=(r,a,d,_,x)=>(pl(!0),ku(a[Ti],_));function _v(r){return Om("",r,""),_v}function Om(r,a,d){const _=kn(),x=Un(_,r,a,d);return x!==Ki&&ju(_,Do(),x),Om}function mv(r,a,d,_,x){const A=kn(),Y=Xn(A,r,a,d,_,x);return Y!==Ki&&ju(A,Do(),Y),mv}function gv(r,a,d,_,x,A,Y){const z=kn(),X=function ii(r,a,d,_,x,A,Y,z){const De=jt(r,ka(),d,x,Y);return ne(3),De?a+xt(d)+_+xt(x)+A+xt(Y)+z:Ki}(z,r,a,d,_,x,A,Y);return X!==Ki&&ju(z,Do(),X),gv}function z1(r,a,d){Du(Xr,zu,Un(kn(),r,a,d),!0)}function G1(r,a,d){Cu(Un(kn(),r,a,d))}function W1(r,a,d,_,x){Cu(Xn(kn(),r,a,d,_,x))}function vv(r,a,d){const _=kn();return Je(_,W(),a)&&md(Fi(),xr(),_,r,a,_[Ti],d,!0),vv}function bv(r,a,d){const _=kn();if(Je(_,W(),a)){const A=Fi(),Y=xr();md(A,Y,_,r,a,Fg(mn(A.data),Y,_),d,!0)}return bv}const Hf=void 0;var Cx=["en",[["a","p"],["AM","PM"],Hf],[["AM","PM"],Hf,Hf],[["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"]],Hf,[["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"]],Hf,[["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}",Hf,"{1} 'at' {0}",Hf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mx(r){const d=Math.floor(Math.abs(r)),_=r.toString().replace(/^[^.]*\.?/,"").length;return 1===d&&0===_?1:5}];let Cp={};function yv(r){const a=function Tx(r){return r.toLowerCase().replace(/_/g,"-")}(r);let d=rb(a);if(d)return d;const _=a.split("-")[0];if(d=rb(_),d)return d;if("en"===_)return Cx;throw new je(701,!1)}function ib(r){return yv(r)[Tp.PluralCase]}function rb(r){return r in Cp||(Cp[r]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[r]),Cp[r]}var Tp=function(r){return r[r.LocaleId=0]="LocaleId",r[r.DayPeriodsFormat=1]="DayPeriodsFormat",r[r.DayPeriodsStandalone=2]="DayPeriodsStandalone",r[r.DaysFormat=3]="DaysFormat",r[r.DaysStandalone=4]="DaysStandalone",r[r.MonthsFormat=5]="MonthsFormat",r[r.MonthsStandalone=6]="MonthsStandalone",r[r.Eras=7]="Eras",r[r.FirstDayOfWeek=8]="FirstDayOfWeek",r[r.WeekendRange=9]="WeekendRange",r[r.DateFormat=10]="DateFormat",r[r.TimeFormat=11]="TimeFormat",r[r.DateTimeFormat=12]="DateTimeFormat",r[r.NumberSymbols=13]="NumberSymbols",r[r.NumberFormats=14]="NumberFormats",r[r.CurrencyCode=15]="CurrencyCode",r[r.CurrencySymbol=16]="CurrencySymbol",r[r.CurrencyName=17]="CurrencyName",r[r.Currencies=18]="Currencies",r[r.Directionality=19]="Directionality",r[r.PluralCase=20]="PluralCase",r[r.ExtraData=21]="ExtraData",r}(Tp||{});const Dp="en-US",Im={marker:"element"},Rm={marker:"ICU"};var bd=function(r){return r[r.SHIFT=2]="SHIFT",r[r.APPEND_EAGERLY=1]="APPEND_EAGERLY",r[r.COMMENT=2]="COMMENT",r}(bd||{});let ob=Dp;function sb(r){(function tt(r,a){null==r&&he(a,r,null,"!=")})(r,"Expected localeId to be defined"),"string"==typeof r&&(ob=r.toLowerCase().replace(/_/g,"-"))}function ab(r,a,d){const _=a.insertBeforeIndex,x=Array.isArray(_)?_[0]:_;return null===x?th(r,0,d):yi(d[x])}function lb(r,a,d,_,x){const A=a.insertBeforeIndex;if(Array.isArray(A)){let Y=_,z=null;if(3&a.type||(z=Y,Y=x),null!==Y&&-1===a.componentOffset)for(let X=1;X1)for(let d=r.length-2;d>=0;d--){const _=r[d];db(_)||Ox(_,a)&&null===Ix(_)&&Rx(_,a.index)}}function db(r){return!(64&r.type)}function Ox(r,a){return db(a)||r.index>a.index}function Ix(r){const a=r.insertBeforeIndex;return Array.isArray(a)?a[0]:a}function Rx(r,a){const d=r.insertBeforeIndex;Array.isArray(d)?d[0]=a:(eu(ab,lb),r.insertBeforeIndex=a)}function Px(r,a,d){const _=Jp(r,d,64,null,null);return cb(a,_),_}function Vx(){const r=[];let d,_,a=-1;function A(z,X){a=0;const De=function km(r,a){const d=a[r.currentCaseLViewIndex];return null===d?d:d<0?~d:d}(z,X);_=null!==De?z.remove[De]:Vn}function Y(){if(a<_.length){const z=_[a++];return z>0?d[z]:(r.push(a,_),A(d[qn].data[~z],d),Y())}return 0===r.length?null:(_=r.pop(),a=r.pop(),Y())}return function x(z,X){for(d=X;r.length;)r.pop();return A(z.value,X),Y}}const Lm=/\ufffd(\d+):?\d*\ufffd/gi,Zx=/\ufffd(\d+)\ufffd/,bb=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,m_="\ufffd",zx=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Gx=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Wx=/\uE500/g;function yb(r,a,d,_,x,A,Y){const z=Pf(r,_,1,null);let X=z<d.length&&d.push(X)}return{type:_,mainBinding:x,cases:a,values:d}}function wv(r){if(!r)return[];let a=0;const d=[],_=[],x=/[{}]/g;let A;for(x.lastIndex=0;A=x.exec(r);){const z=A.index;if("}"==A[0]){if(d.pop(),0==d.length){const X=r.substring(a,z);bb.test(X)?_.push(tM(X)):_.push(X),a=z+1}}else{if(0==d.length){const X=r.substring(a,z);_.push(X),a=z+1}d.push("{")}}const Y=r.substring(a);return _.push(Y),_}function nM(r,a,d,_,x,A,Y,z){const X=[],De=[],Ke=[];a.cases.push(A),a.create.push(X),a.remove.push(De),a.update.push(Ke);const Xt=c(Bd()).getInertBodyElement(Y),ln=Vl(Xt)||Xt;return ln?Cb(r,a,d,_,X,De,Ke,ln,x,z,0):0}function Cb(r,a,d,_,x,A,Y,z,X,De,Ke){let Rt=0,Xt=z.firstChild;for(;Xt;){const ln=Pf(r,d,1,null);switch(Xt.nodeType){case Node.ELEMENT_NODE:const In=Xt,zn=In.tagName.toLowerCase();if(Gt.hasOwnProperty(zn)){xv(x,Im,zn,X,ln),r.data[ln]=zn;const cr=In.attributes;for(let Ur=0;Ur>>bd.SHIFT;let Rt=r[Ke];null===Rt&&(Rt=r[Ke]=(Y&bd.COMMENT)===bd.COMMENT?x.createComment(z):ku(x,z)),De&&null!==d&&Jc(x,d,Rt,_,!1)}})(x,X.create,Ke,z&&8&z.type?x[z.index]:null),ie(!0)}function Cv(){ie(!1)}function Eb(r,a,d){Mv(r,a,d),Cv()}function Tv(r,a,d,_,x){if(r=_e(r),Array.isArray(r))for(let A=0;A>20;if(Nh(r)||!r.multi){const ln=new ca(De,x,fh),In=Ev(X,a,x?Ke:Ke+Xt,Rt);-1===In?(k(Ll(z,Y),A,X),Dv(A,r,a.length),a.push(X),z.directiveStart++,z.directiveEnd++,x&&(z.providerIndexes+=1048576),d.push(ln),Y.push(ln)):(d[In]=ln,Y[In]=ln)}else{const ln=Ev(X,a,Ke+Xt,Rt),In=Ev(X,a,Ke,Ke+Xt),ui=In>=0&&d[In];if(x&&!ui||!x&&!(ln>=0&&d[ln])){k(Ll(z,Y),A,X);const Yi=function xM(r,a,d,_,x){const A=new ca(r,d,fh);return A.multi=[],A.index=a,A.componentProviders=0,Ab(A,x,_&&!d),A}(x?wM:yM,d.length,x,_,De);!x&&ui&&(d[In].providerFactory=Yi),Dv(A,r,a.length,0),a.push(X),z.directiveStart++,z.directiveEnd++,x&&(z.providerIndexes+=1048576),d.push(Yi),Y.push(Yi)}else Dv(A,r,ln>-1?ln:In,Ab(d[x?In:ln],De,!x&&_));!x&&_&&ui&&d[In].componentProviders++}}}function Dv(r,a,d,_){const x=Nh(a),A=function C_(r){return!!r.useClass}(a);if(x||A){const X=(A?_e(a.useClass):a).prototype.ngOnDestroy;if(X){const De=r.destroyHooks||(r.destroyHooks=[]);if(!x&&a.multi){const Ke=De.indexOf(d);-1===Ke?De.push(d,[_,X]):De[Ke+1].push(_,X)}else De.push(d,X)}}}function Ab(r,a,d){return d&&r.componentProviders++,r.multi.push(a)-1}function Ev(r,a,d,_){for(let x=d;x<_;x++)if(a[x]===r)return x;return-1}function yM(r,a,d,_){return Sv(this.multi,[])}function wM(r,a,d,_){const x=this.multi;let A;if(this.providerFactory){const Y=this.providerFactory.componentProviders,z=Oi(d,d[qn],this.providerFactory.index,_);A=z.slice(0,Y),Sv(x,A);for(let X=Y;X{d.providersResolver=(_,x)=>function bM(r,a,d){const _=Fi();if(_.firstCreatePass){const x=sr(r);Tv(d,_.data,_.blueprint,x,!0),Tv(a,_.data,_.blueprint,x,!1)}}(_,x?x(r):r,a)}}class Uf{}class Ib{}function MM(r,a){return new Av(r,a??null,[])}class Av extends Uf{constructor(a,d,_){super(),this._parent=d,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new s_(this);const x=wr(a);this._bootstrapComponents=pd(x.bootstrap),this._r3Injector=ug(a,d,[{provide:Uf,useValue:this},{provide:Af,useValue:this.componentFactoryResolver},..._],se(a),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(a)}get injector(){return this._r3Injector}destroy(){const a=this._r3Injector;!a.destroyed&&a.destroy(),this.destroyCbs.forEach(d=>d()),this.destroyCbs=null}onDestroy(a){this.destroyCbs.push(a)}}class Ov extends Ib{constructor(a){super(),this.moduleType=a}create(a){return new Av(this.moduleType,a,[])}}class Rb extends Uf{constructor(a){super(),this.componentFactoryResolver=new s_(this),this.instance=null;const d=new Tf([...a.providers,{provide:Uf,useValue:this},{provide:Af,useValue:this.componentFactoryResolver}],a.parent||kp(),a.debugName,new Set(["environment"]));this.injector=d,a.runEnvironmentInitializers&&d.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(a){this.injector.onDestroy(a)}}function kb(r,a,d=null){return new Rb({providers:r,parent:a,debugName:d,runEnvironmentInitializers:!0}).injector}let TM=(()=>{class r{constructor(d){this._injector=d,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(d){if(!d.standalone)return null;if(!this.cachedInjectors.has(d)){const _=ch(0,d.type),x=_.length>0?kb([_],this._injector,`Standalone[${d.type.name}]`):null;this.cachedInjectors.set(d,x)}return this.cachedInjectors.get(d)}ngOnDestroy(){try{for(const d of this.cachedInjectors.values())null!==d&&d.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Nt({token:r,providedIn:"environment",factory:()=>new r(wt(bu))})}return r})();function Lb(r){r.getStandaloneInjector=a=>a.get(TM).getOrCreateStandaloneInjector(r)}function Ub(r,a,d){const _=mo()+r,x=kn();return x[_]===Ki?Q(x,_,d?a.call(d):a()):Le(x,_)}function Vb(r,a,d,_){return Wb(kn(),mo(),r,a,d,_)}function jb(r,a,d,_,x){return $b(kn(),mo(),r,a,d,_,x)}function Zb(r,a,d,_,x,A){return function Kb(r,a,d,_,x,A,Y,z){const X=a+d;return jt(r,X,x,A,Y)?Q(r,X+3,z?_.call(z,x,A,Y):_(x,A,Y)):v_(r,X+3)}(kn(),mo(),r,a,d,_,x,A)}function zb(r,a,d,_,x,A,Y){return function Jb(r,a,d,_,x,A,Y,z,X){const De=a+d;return dn(r,De,x,A,Y,z)?Q(r,De+4,X?_.call(X,x,A,Y,z):_(x,A,Y,z)):v_(r,De+4)}(kn(),mo(),r,a,d,_,x,A,Y)}function Gb(r,a,d,_,x,A,Y,z){const X=mo()+r,De=kn(),Ke=dn(De,X,d,_,x,A);return Je(De,X+4,Y)||Ke?Q(De,X+5,z?a.call(z,d,_,x,A,Y):a(d,_,x,A,Y)):Le(De,X+5)}function v_(r,a){const d=r[a];return d===Ki?void 0:d}function Wb(r,a,d,_,x,A){const Y=a+d;return Je(r,Y,x)?Q(r,Y+1,A?_.call(A,x):_(x)):v_(r,Y+1)}function $b(r,a,d,_,x,A,Y){const z=a+d;return At(r,z,x,A)?Q(r,z+2,Y?_.call(Y,x,A):_(x,A)):v_(r,z+2)}function Qb(r,a){const d=Fi();let _;const x=r+Ai;d.firstCreatePass?(_=function YM(r,a){if(a)for(let d=a.length-1;d>=0;d--){const _=a[d];if(r===_.name)return _}}(a,d.pipeRegistry),d.data[x]=_,_.onDestroy&&(d.destroyHooks??=[]).push(x,_.onDestroy)):_=d.data[x];const A=_.factory||(_.factory=Xo(_.type)),z=Oe(fh);try{const X=Eo(!1),De=A();return Eo(X),function Ow(r,a,d,_){d>=r.data.length&&(r.data[d]=null,r.blueprint[d]=null),a[d]=_}(d,kn(),x,De),De}finally{Oe(z)}}function Xb(r,a,d){const _=r+Ai,x=kn(),A=dl(x,_);return b_(x,_)?Wb(x,mo(),a,A.transform,d,A):A.transform(d)}function ey(r,a,d,_){const x=r+Ai,A=kn(),Y=dl(A,x);return b_(A,x)?$b(A,mo(),a,Y.transform,d,_,Y):Y.transform(d,_)}function b_(r,a){return r[qn].data[a].pure}function VM(){return this._results[Symbol.iterator]()}class Pm{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new vo)}constructor(a=!1){this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const d=Pm.prototype;d[Symbol.iterator]||(d[Symbol.iterator]=VM)}get(a){return this._results[a]}map(a){return this._results.map(a)}filter(a){return this._results.filter(a)}find(a){return this._results.find(a)}reduce(a,d){return this._results.reduce(a,d)}forEach(a){this._results.forEach(a)}some(a){return this._results.some(a)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(a,d){const _=this;_.dirty=!1;const x=function nl(r){return r.flat(Number.POSITIVE_INFINITY)}(a);(this._changesDetected=!function Jd(r,a,d){if(r.length!==a.length)return!1;for(let _=0;_0&&(d[x-1][wo]=a),_{class r{static#e=this.__NG_ELEMENT_ID__=WM}return r})();const zM=y_,GM=class extends zM{constructor(a,d,_){super(),this._declarationLView=a,this._declarationTContainer=d,this.elementRef=_}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(a,d){return this.createEmbeddedViewImpl(a,d)}createEmbeddedViewImpl(a,d,_){const x=function jM(r,a,d,_){const x=a.tView,z=hp(r,x,d,4096&r[bi]?4096:16,null,a,null,null,null,_?.injector??null,_?.hydrationInfo??null);z[Oo]=r[a.index];const De=r[or];return null!==De&&(z[or]=De.createEmbeddedView(x)),cm(x,z,d),z}(this._declarationLView,this._declarationTContainer,a,{injector:d,hydrationInfo:_});return new yp(x)}};function WM(){return Nm(en(),kn())}function Nm(r,a){return 4&r.type?new GM(a,r,Uh(r,a)):null}let Ym=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=XM}return r})();function XM(){return ay(en(),kn())}const eC=Ym,oy=class extends eC{constructor(a,d,_){super(),this._lContainer=a,this._hostTNode=d,this._hostLView=_}get element(){return Uh(this._hostTNode,this._hostLView)}get injector(){return new ls(this._hostTNode,this._hostLView)}get parentInjector(){const a=ir(this._hostTNode,this._hostLView);if(wc(a)){const d=Ac(a,this._hostLView),_=kl(a);return new ls(d[qn].data[_+8],d)}return new ls(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(a){const d=sy(this._lContainer);return null!==d&&d[a]||null}get length(){return this._lContainer.length-Br}createEmbeddedView(a,d,_){let x,A;"number"==typeof _?x=_:null!=_&&(x=_.index,A=_.injector);const z=a.createEmbeddedViewImpl(d||{},A,null);return this.insertImpl(z,x,false),z}createComponent(a,d,_,x,A){const Y=a&&!function zc(r){return"function"==typeof r}(a);let z;if(Y)z=d;else{const zn=d||{};z=zn.index,_=zn.injector,x=zn.projectableNodes,A=zn.environmentInjector||zn.ngModuleRef}const X=Y?a:new wp(Li(a)),De=_||this.parentInjector;if(!A&&null==X.ngModule){const ui=(Y?De:this.parentInjector).get(bu,null);ui&&(A=ui)}Li(X.componentType??{});const ln=X.create(De,x,null,A);return this.insertImpl(ln.hostView,z,false),ln}insert(a,d){return this.insertImpl(a,d,!1)}insertImpl(a,d,_){const x=a._lView;if(function Pc(r){return io(r[_r])}(x)){const X=this.indexOf(a);if(-1!==X)this.detach(X);else{const De=x[_r],Ke=new oy(De,De[no],De[_r]);Ke.detach(Ke.indexOf(a))}}const Y=this._adjustIndex(d),z=this._lContainer;return ZM(z,x,Y,!_),a.attachToViewContainerRef(),qd(Rv(z),Y,a),a}move(a,d){return this.insert(a,d)}indexOf(a){const d=sy(this._lContainer);return null!==d?d.indexOf(a):-1}remove(a){const d=this._adjustIndex(a,-1),_=Lu(this._lContainer,d);_&&(ml(Rv(this._lContainer),d),eh(_[qn],_))}detach(a){const d=this._adjustIndex(a,-1),_=Lu(this._lContainer,d);return _&&null!=ml(Rv(this._lContainer),d)?new yp(_):null}_adjustIndex(a,d=0){return a??this.length+d}};function sy(r){return r[8]}function Rv(r){return r[8]||(r[8]=[])}function ay(r,a){let d;const _=a[r.index];return io(_)?d=_:(d=n_(_,a,null,r),a[r.index]=d,i_(a,d)),ly(d,a,r,_),new oy(d,r,a)}let ly=function cy(r,a,d,_){if(r[fo])return;let x;x=8&d.type?yi(_):function tC(r,a){const d=r[Ti],_=d.createComment(""),x=_o(a,r);return Jc(d,Pu(d,x),_,function pf(r,a){return r.nextSibling(a)}(d,x),!1),_}(a,d),r[fo]=x};class kv{constructor(a){this.queryList=a,this.matches=null}clone(){return new kv(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lv{constructor(a=[]){this.queries=a}createEmbeddedView(a){const d=a.queries;if(null!==d){const _=null!==a.contentQueries?a.contentQueries[0]:d.length,x=[];for(let A=0;A<_;A++){const Y=d.getByIndex(A);x.push(this.queries[Y.indexInDeclarationView].clone())}return new Lv(x)}return null}insertView(a){this.dirtyQueriesWithMatches(a)}detachView(a){this.dirtyQueriesWithMatches(a)}dirtyQueriesWithMatches(a){for(let d=0;d0)_.push(Y[z/2]);else{const De=A[z+1],Ke=a[-X];for(let Rt=Br;Rt{class r{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((d,_)=>{this.resolve=d,this.reject=_}),this.appInits=fe(Ny,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const d=[];for(const x of this.appInits){const A=x();if(ov(A))d.push(A);else if(l1(A)){const Y=new Promise((z,X)=>{A.subscribe({complete:z,error:X})});d.push(Y)}}const _=()=>{this.done=!0,this.resolve()};Promise.all(d).then(()=>{_()}).catch(x=>{this.reject(x)}),0===d.length&&_(),this.initialized=!0}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Fy=(()=>{class r{log(d){console.log(d)}warn(d){console.warn(d)}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})();const Hm=new Ut("LocaleId",{providedIn:"root",factory:()=>fe(Hm,Ce.Optional|Ce.SkipSelf)||function OC(){return typeof $localize<"u"&&$localize.locale||Dp}()}),IC=new Ut("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Yy=(()=>{class r{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new S.X(!1)}add(){this.hasPendingTasks.next(!0);const d=this.taskId++;return this.pendingTasks.add(d),d}remove(d){this.pendingTasks.delete(d),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();class kC{constructor(a,d){this.ngModuleFactory=a,this.componentFactories=d}}let LC=(()=>{class r{compileModuleSync(d){return new Ov(d)}compileModuleAsync(d){return Promise.resolve(this.compileModuleSync(d))}compileModuleAndAllComponentsSync(d){const _=this.compileModuleSync(d),A=pd(wr(d).declarations).reduce((Y,z)=>{const X=Li(z);return X&&Y.push(new wp(X)),Y},[]);return new kC(_,A)}compileModuleAndAllComponentsAsync(d){return Promise.resolve(this.compileModuleAndAllComponentsSync(d))}clearCache(){}clearCacheFor(d){}getModuleId(d){}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const Vy=new Ut(""),jy=new Ut("");let Gv,nT=(()=>{class r{constructor(d,_,x){this._ngZone=d,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gv||(function iT(r){Gv=r}(x),x.addToWindow(_)),this._watchAngularEvents(),d.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{jl.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let d=this._callbacks.pop();clearTimeout(d.timeoutId),d.doneCb(this._didWork)}this._didWork=!1});else{let d=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(d)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(d=>({source:d.source,creationLocation:d.creationLocation,data:d.data})):[]}addCallback(d,_,x){let A=-1;_&&_>0&&(A=setTimeout(()=>{this._callbacks=this._callbacks.filter(Y=>Y.timeoutId!==A),d(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:d,timeoutId:A,updateCb:x})}whenStable(d,_,x){if(x&&!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(d,_,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(d){this.registry.registerApplication(d,this)}unregisterApplication(d){this.registry.unregisterApplication(d)}findProviders(d,_,x){return[]}static#e=this.\u0275fac=function(_){return new(_||r)(wt(jl),wt(Zy),wt(jy))};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac})}return r})(),Zy=(()=>{class r{constructor(){this._applications=new Map}registerApplication(d,_){this._applications.set(d,_)}unregisterApplication(d){this._applications.delete(d)}unregisterAllApplications(){this._applications.clear()}getTestability(d){return this._applications.get(d)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(d,_=!0){return Gv?.findTestabilityInTree(this,d,_)??null}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})(),Kh=null;const zy=new Ut("AllowMultipleToken"),Wv=new Ut("PlatformDestroyListeners"),$v=new Ut("appBootstrapListener");class sT{constructor(a,d){this.name=a,this.token=d}}function $y(r,a,d=[]){const _=`Platform: ${a}`,x=new Ut(_);return(A=[])=>{let Y=Kv();if(!Y||Y.injector.get(zy,!1)){const z=[...d,...A,{provide:x,useValue:!0}];r?r(z):function aT(r){if(Kh&&!Kh.get(zy,!1))throw new je(400,!1);(function Gy(){!function bc(r){Ga=r}(()=>{throw new je(600,!1)})})(),Kh=r;const a=r.get(Jy);(function Wy(r){r.get(Df,null)?.forEach(d=>d())})(r)}(function Ky(r=[],a){return Vd.create({name:a,providers:[{provide:qf,useValue:"platform"},{provide:Wv,useValue:new Set([()=>Kh=null])},...r]})}(z,_))}return function cT(r){const a=Kv();if(!a)throw new je(401,!1);return a}()}}function Kv(){return Kh?.get(Jy)??null}let Jy=(()=>{class r{constructor(d){this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(d,_){const x=function dT(r="zone.js",a){return"noop"===r?new pg:"zone.js"===r?new jl(a):r}(_?.ngZone,function qy(r){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:r?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:r?.runCoalescing??!1}}({eventCoalescing:_?.ngZoneEventCoalescing,runCoalescing:_?.ngZoneRunCoalescing}));return x.run(()=>{const A=function CM(r,a,d){return new Av(r,a,d)}(d.moduleType,this.injector,function nw(r){return[{provide:jl,useFactory:r},{provide:Ea,multi:!0,useFactory:()=>{const a=fe(hT,{optional:!0});return()=>a.initialize()}},{provide:tw,useFactory:uT},{provide:V_,useFactory:j_}]}(()=>x)),Y=A.injector.get(uh,null);return x.runOutsideAngular(()=>{const z=x.onError.subscribe({next:X=>{Y.handleError(X)}});A.onDestroy(()=>{Vm(this._modules,A),z.unsubscribe()})}),function Qy(r,a,d){try{const _=d();return ov(_)?_.catch(x=>{throw a.runOutsideAngular(()=>r.handleError(x)),x}):_}catch(_){throw a.runOutsideAngular(()=>r.handleError(_)),_}}(Y,x,()=>{const z=A.injector.get(jv);return z.runInitializers(),z.donePromise.then(()=>(sb(A.injector.get(Hm,Dp)||Dp),this._moduleDoBootstrap(A),A))})})}bootstrapModule(d,_=[]){const x=Xy({},_);return function rT(r,a,d){const _=new Ov(d);return Promise.resolve(_)}(0,0,d).then(A=>this.bootstrapModuleFactory(A,x))}_moduleDoBootstrap(d){const _=d.injector.get(Ap);if(d._bootstrapComponents.length>0)d._bootstrapComponents.forEach(x=>_.bootstrap(x));else{if(!d.instance.ngDoBootstrap)throw new je(-403,!1);d.instance.ngDoBootstrap(_)}this._modules.push(d)}onDestroy(d){this._destroyListeners.push(d)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new je(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const d=this._injector.get(Wv,null);d&&(d.forEach(_=>_()),d.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(_){return new(_||r)(wt(Vd))};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})();function Xy(r,a){return Array.isArray(a)?a.reduce(Xy,r):{...r,...a}}let Ap=(()=>{class r{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=fe(tw),this.zoneIsStable=fe(V_),this.componentTypes=[],this.components=[],this.isStable=fe(Yy).hasPendingTasks.pipe((0,Z.w)(d=>d?(0,w.of)(!1):this.zoneIsStable),(0,ee.x)(),(0,n.B)()),this._injector=fe(bu)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(d,_){const x=d instanceof R_;if(!this._injector.get(jv).done)throw!x&&Ha(d),new je(405,!1);let Y;Y=x?d:this._injector.get(Af).resolveComponentFactory(d),this.componentTypes.push(Y.componentType);const z=function oT(r){return r.isBoundToModule}(Y)?void 0:this._injector.get(Uf),De=Y.create(Vd.NULL,[],_||Y.selector,z),Ke=De.location.nativeElement,Rt=De.injector.get(Vy,null);return Rt?.registerApplication(Ke),De.onDestroy(()=>{this.detachView(De.hostView),Vm(this.components,De),Rt?.unregisterApplication(Ke)}),this._loadComponent(De),De}tick(){if(this._runningTick)throw new je(101,!1);try{this._runningTick=!0;for(let d of this._views)d.detectChanges()}catch(d){this.internalErrorHandler(d)}finally{this._runningTick=!1}}attachView(d){const _=d;this._views.push(_),_.attachToAppRef(this)}detachView(d){const _=d;Vm(this._views,_),_.detachFromAppRef()}_loadComponent(d){this.attachView(d.hostView),this.tick(),this.components.push(d);const _=this._injector.get($v,[]);_.push(...this._bootstrapListeners),_.forEach(x=>x(d))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(d=>d()),this._views.slice().forEach(d=>d.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(d){return this._destroyListeners.push(d),()=>Vm(this._destroyListeners,d)}destroy(){if(this._destroyed)throw new je(406,!1);const d=this._injector;d.destroy&&!d.destroyed&&d.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Vm(r,a){const d=r.indexOf(a);d>-1&&r.splice(d,1)}const tw=new Ut("",{providedIn:"root",factory:()=>fe(uh).handleError.bind(void 0)});function uT(){const r=fe(jl),a=fe(uh);return d=>r.runOutsideAngular(()=>a.handleError(d))}let hT=(()=>{class r{constructor(){this.zone=fe(jl),this.applicationRef=fe(Ap)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function pT(){return!1}let _T=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=mT}return r})();function mT(r){return function gT(r,a,d){if(Ss(r)&&!d){const _=ko(r.index,a);return new yp(_,_)}return 47&r.type?new yp(a[wi],a):null}(en(),kn(),16==(16&r))}class sw{constructor(){}supports(a){return y(a)}create(a){return new MT(a)}}const xT=(r,a)=>a;class MT{constructor(a){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=a||xT}forEachItem(a){let d;for(d=this._itHead;null!==d;d=d._next)a(d)}forEachOperation(a){let d=this._itHead,_=this._removalsHead,x=0,A=null;for(;d||_;){const Y=!_||d&&d.currentIndex{Y=this._trackByFn(x,z),null!==d&&Object.is(d.trackById,Y)?(_&&(d=this._verifyReinsertion(d,z,Y,x)),Object.is(d.item,z)||this._addIdentityChange(d,z)):(d=this._mismatch(d,z,Y,x),_=!0),d=d._next,x++}),this.length=x;return this._truncate(d),this.collection=a,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;for(this._additionsHead=this._additionsTail=null,a=this._movesHead;null!==a;a=a._nextMoved)a.previousIndex=a.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(a,d,_,x){let A;return null===a?A=this._itTail:(A=a._prev,this._remove(a)),null!==(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(a.item,d)||this._addIdentityChange(a,d),this._reinsertAfter(a,A,x)):null!==(a=null===this._linkedRecords?null:this._linkedRecords.get(_,x))?(Object.is(a.item,d)||this._addIdentityChange(a,d),this._moveAfter(a,A,x)):a=this._addAfter(new CT(d,_),A,x),a}_verifyReinsertion(a,d,_,x){let A=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==A?a=this._reinsertAfter(A,a._prev,x):a.currentIndex!=x&&(a.currentIndex=x,this._addToMoves(a,x)),a}_truncate(a){for(;null!==a;){const d=a._next;this._addToRemovals(this._unlink(a)),a=d}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(a,d,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);const x=a._prevRemoved,A=a._nextRemoved;return null===x?this._removalsHead=A:x._nextRemoved=A,null===A?this._removalsTail=x:A._prevRemoved=x,this._insertAfter(a,d,_),this._addToMoves(a,_),a}_moveAfter(a,d,_){return this._unlink(a),this._insertAfter(a,d,_),this._addToMoves(a,_),a}_addAfter(a,d,_){return this._insertAfter(a,d,_),this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a,a}_insertAfter(a,d,_){const x=null===d?this._itHead:d._next;return a._next=x,a._prev=d,null===x?this._itTail=a:x._prev=a,null===d?this._itHead=a:d._next=a,null===this._linkedRecords&&(this._linkedRecords=new aw),this._linkedRecords.put(a),a.currentIndex=_,a}_remove(a){return this._addToRemovals(this._unlink(a))}_unlink(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);const d=a._prev,_=a._next;return null===d?this._itHead=_:d._next=_,null===_?this._itTail=d:_._prev=d,a}_addToMoves(a,d){return a.previousIndex===d||(this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a),a}_addToRemovals(a){return null===this._unlinkedRecords&&(this._unlinkedRecords=new aw),this._unlinkedRecords.put(a),a.currentIndex=null,a._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a),a}_addIdentityChange(a,d){return a.item=d,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a,a}}class CT{constructor(a,d){this.item=a,this.trackById=d,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 TT{constructor(){this._head=null,this._tail=null}add(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)}get(a,d){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===d||d<=_.currentIndex)&&Object.is(_.trackById,a))return _;return null}remove(a){const d=a._prevDup,_=a._nextDup;return null===d?this._head=_:d._nextDup=_,null===_?this._tail=d:_._prevDup=d,null===this._head}}class aw{constructor(){this.map=new Map}put(a){const d=a.trackById;let _=this.map.get(d);_||(_=new TT,this.map.set(d,_)),_.add(a)}get(a,d){const x=this.map.get(a);return x?x.get(a,d):null}remove(a){const d=a.trackById;return this.map.get(d).remove(a)&&this.map.delete(d),a}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function lw(r,a,d){const _=r.previousIndex;if(null===_)return _;let x=0;return d&&_{if(d&&d.key===x)this._maybeAddToChanges(d,_),this._appendAfter=d,d=d._next;else{const A=this._getOrCreateRecordForKey(x,_);d=this._insertBeforeOrAppend(d,A)}}),d){d._prev&&(d._prev._next=null),this._removalsHead=d;for(let _=d;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(a,d){if(a){const _=a._prev;return d._next=a,d._prev=_,a._prev=d,_&&(_._next=d),a===this._mapHead&&(this._mapHead=d),this._appendAfter=a,a}return this._appendAfter?(this._appendAfter._next=d,d._prev=this._appendAfter):this._mapHead=d,this._appendAfter=d,null}_getOrCreateRecordForKey(a,d){if(this._records.has(a)){const x=this._records.get(a);this._maybeAddToChanges(x,d);const A=x._prev,Y=x._next;return A&&(A._next=Y),Y&&(Y._prev=A),x._next=null,x._prev=null,x}const _=new ET(a);return this._records.set(a,_),_.currentValue=d,this._addToAdditions(_),_}_reset(){if(this.isDirty){let a;for(this._previousMapHead=this._mapHead,a=this._previousMapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(a,d){Object.is(d,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=d,this._addToChanges(a))}_addToAdditions(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:(this._additionsTail._nextAdded=a,this._additionsTail=a)}_addToChanges(a){null===this._changesHead?this._changesHead=this._changesTail=a:(this._changesTail._nextChanged=a,this._changesTail=a)}_forEach(a,d){a instanceof Map?a.forEach(d):Object.keys(a).forEach(_=>d(a[_],_))}}class ET{constructor(a){this.key=a,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 dw(){return new e0([new sw])}let e0=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:dw});constructor(d){this.factories=d}static create(d,_){if(null!=_){const x=_.factories.slice();d=d.concat(x)}return new r(d)}static extend(d){return{provide:r,useFactory:_=>r.create(d,_||dw()),deps:[[r,new Na,new Wr]]}}find(d){const _=this.factories.find(x=>x.supports(d));if(null!=_)return _;throw new je(901,!1)}}return r})();function uw(){return new t0([new cw])}let t0=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:uw});constructor(d){this.factories=d}static create(d,_){if(_){const x=_.factories.slice();d=d.concat(x)}return new r(d)}static extend(d){return{provide:r,useFactory:_=>r.create(d,_||uw()),deps:[[r,new Na,new Wr]]}}find(d){const _=this.factories.find(x=>x.supports(d));if(_)return _;throw new je(901,!1)}}return r})();const OT=$y(null,"core",[]);let IT=(()=>{class r{constructor(d){}static#e=this.\u0275fac=function(_){return new(_||r)(wt(Ap))};static#t=this.\u0275mod=Vo({type:r});static#n=this.\u0275inj=nn({})}return r})();function VT(r){return"boolean"==typeof r?r:null!=r&&"false"!==r}function ZT(r,a){const d=Li(r),_=a.elementInjector||kp();return new wp(d).create(_,a.projectableNodes,a.hostElement,a.environmentInjector)}function zT(r){const a=Li(r);if(!a)return null;const d=new wp(a);return{get selector(){return d.selector},get type(){return d.componentType},get inputs(){return d.inputs},get outputs(){return d.outputs},get ngContentSelectors(){return d.ngContentSelectors},get isStandalone(){return a.standalone},get isSignal(){return a.signals}}}},6223:(ft,Ie,C)=>{"use strict";C.d(Ie,{CE:()=>Js,Cf:()=>Re,EJ:()=>jo,F:()=>$n,Fd:()=>Ko,Fj:()=>oe,JJ:()=>vn,JL:()=>ei,JU:()=>Z,Kr:()=>qs,NI:()=>uo,Oe:()=>io,On:()=>Jr,Q7:()=>jr,UX:()=>na,Wl:()=>re,YN:()=>no,_:()=>Ks,_Y:()=>ga,a5:()=>nn,cw:()=>We,kI:()=>Lt,nD:()=>fo,oH:()=>dr,qQ:()=>Xs,qu:()=>sr,sg:()=>wr,u:()=>qn,u5:()=>ta,wV:()=>oo,x0:()=>Vr});var e=C(5879),l=C(6814),D=C(9666),I=C(9315),S=C(7398);let w=(()=>{class Ae{constructor(le,Qe){this._renderer=le,this._elementRef=Qe,this.onChange=Ht=>{},this.onTouched=()=>{}}setProperty(le,Qe){this._renderer.setProperty(this._elementRef.nativeElement,le,Qe)}registerOnTouched(le){this.onTouched=le}registerOnChange(le){this.onChange=le}setDisabledState(le){this.setProperty("disabled",le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:Ae})}return Ae})(),n=(()=>{class Ae extends w{static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.qOj]})}return Ae})();const Z=new e.OlP("NgValueAccessor"),ee={provide:Z,useExisting:(0,e.Gpc)(()=>re),multi:!0};let re=(()=>{class Ae extends n{writeValue(le){this.setProperty("checked",le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(Ni){return Ht.onChange(Ni.target.checked)})("blur",function(){return Ht.onTouched()})},features:[e._Bn([ee]),e.qOj]})}return Ae})();const ue={provide:Z,useExisting:(0,e.Gpc)(()=>oe),multi:!0},te=new e.OlP("CompositionEventMode");let oe=(()=>{class Ae extends w{constructor(le,Qe,Ht){super(le,Qe),this._compositionMode=Ht,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function se(){const Ae=(0,l.q)()?(0,l.q)().getUserAgent():"";return/android (\d+)/.test(Ae.toLowerCase())}())}writeValue(le){this.setProperty("value",le??"")}_handleInput(le){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(le)}_compositionStart(){this._composing=!0}_compositionEnd(le){this._composing=!1,this._compositionMode&&this.onChange(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(te,8))};static#t=this.\u0275dir=e.lG2({type:Ae,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(Qe,Ht){1&Qe&&e.NdJ("input",function(Ni){return Ht._handleInput(Ni.target.value)})("blur",function(){return Ht.onTouched()})("compositionstart",function(){return Ht._compositionStart()})("compositionend",function(Ni){return Ht._compositionEnd(Ni.target.value)})},features:[e._Bn([ue]),e.qOj]})}return Ae})();function ce(Ae){return null==Ae||("string"==typeof Ae||Array.isArray(Ae))&&0===Ae.length}function _e(Ae){return null!=Ae&&"number"==typeof Ae.length}const Re=new e.OlP("NgValidators"),mt=new e.OlP("NgAsyncValidators"),Ge=/^(?=.{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 Lt{static min(Fe){return je(Fe)}static max(Fe){return Tt(Fe)}static required(Fe){return xt(Fe)}static requiredTrue(Fe){return function St(Ae){return!0===Ae.value?null:{required:!0}}(Fe)}static email(Fe){return function Zt(Ae){return ce(Ae.value)||Ge.test(Ae.value)?null:{email:!0}}(Fe)}static minLength(Fe){return function yt(Ae){return Fe=>ce(Fe.value)||!_e(Fe.value)?null:Fe.value.length{if(ce(Qe.value))return null;const Ht=Qe.value;return Fe.test(Ht)?null:{pattern:{requiredPattern:le,actualValue:Ht}}}}(Fe)}static nullValidator(Fe){return null}static compose(Fe){return dt(Fe)}static composeAsync(Fe){return Be(Fe)}}function je(Ae){return Fe=>{if(ce(Fe.value)||ce(Ae))return null;const le=parseFloat(Fe.value);return!isNaN(le)&&le{if(ce(Fe.value)||ce(Ae))return null;const le=parseFloat(Fe.value);return!isNaN(le)&&le>Ae?{max:{max:Ae,actual:Fe.value}}:null}}function xt(Ae){return ce(Ae.value)?{required:!0}:null}function un(Ae){return Fe=>_e(Fe.value)&&Fe.value.length>Ae?{maxlength:{requiredLength:Ae,actualLength:Fe.value.length}}:null}function tn(Ae){return null}function wn(Ae){return null!=Ae}function Ln(Ae){return(0,e.QGY)(Ae)?(0,D.D)(Ae):Ae}function Yn(Ae){let Fe={};return Ae.forEach(le=>{Fe=null!=le?{...Fe,...le}:Fe}),0===Object.keys(Fe).length?null:Fe}function ti(Ae,Fe){return Fe.map(le=>le(Ae))}function Rn(Ae){return Ae.map(Fe=>function gi(Ae){return!Ae.validate}(Fe)?Fe:le=>Fe.validate(le))}function dt(Ae){if(!Ae)return null;const Fe=Ae.filter(wn);return 0==Fe.length?null:function(le){return Yn(ti(le,Fe))}}function at(Ae){return null!=Ae?dt(Rn(Ae)):null}function Be(Ae){if(!Ae)return null;const Fe=Ae.filter(wn);return 0==Fe.length?null:function(le){const Qe=ti(le,Fe).map(Ln);return(0,I.D)(Qe).pipe((0,S.U)(Yn))}}function Ee(Ae){return null!=Ae?Be(Rn(Ae)):null}function $e(Ae,Fe){return null===Ae?[Fe]:Array.isArray(Ae)?[...Ae,Fe]:[Ae,Fe]}function me(Ae){return Ae._rawValidators}function tt(Ae){return Ae._rawAsyncValidators}function he(Ae){return Ae?Array.isArray(Ae)?Ae:[Ae]:[]}function Ze(Ae,Fe){return Array.isArray(Ae)?Ae.includes(Fe):Ae===Fe}function rt(Ae,Fe){const le=he(Fe);return he(Ae).forEach(Ht=>{Ze(le,Ht)||le.push(Ht)}),le}function bt(Ae,Fe){return he(Fe).filter(le=>!Ze(Ae,le))}class Nt{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(Fe){this._rawValidators=Fe||[],this._composedValidatorFn=at(this._rawValidators)}_setAsyncValidators(Fe){this._rawAsyncValidators=Fe||[],this._composedAsyncValidatorFn=Ee(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Fe){this._onDestroyCallbacks.push(Fe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Fe=>Fe()),this._onDestroyCallbacks=[]}reset(Fe=void 0){this.control&&this.control.reset(Fe)}hasError(Fe,le){return!!this.control&&this.control.hasError(Fe,le)}getError(Fe,le){return this.control?this.control.getError(Fe,le):null}}class Qt extends Nt{get formDirective(){return null}get path(){return null}}class nn extends Nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dn{constructor(Fe){this._cd=Fe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let vn=(()=>{class Ae extends Dn{constructor(le){super(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(nn,2))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Qe,Ht){2&Qe&&e.ekj("ng-untouched",Ht.isUntouched)("ng-touched",Ht.isTouched)("ng-pristine",Ht.isPristine)("ng-dirty",Ht.isDirty)("ng-valid",Ht.isValid)("ng-invalid",Ht.isInvalid)("ng-pending",Ht.isPending)},features:[e.qOj]})}return Ae})(),ei=(()=>{class Ae extends Dn{constructor(le){super(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Qe,Ht){2&Qe&&e.ekj("ng-untouched",Ht.isUntouched)("ng-touched",Ht.isTouched)("ng-pristine",Ht.isPristine)("ng-dirty",Ht.isDirty)("ng-valid",Ht.isValid)("ng-invalid",Ht.isInvalid)("ng-pending",Ht.isPending)("ng-submitted",Ht.isSubmitted)},features:[e.qOj]})}return Ae})();const jn="VALID",ai="INVALID",di="PENDING",oi="DISABLED";function Jn(Ae){return(U(Ae)?Ae.validators:Ae)||null}function _t(Ae,Fe){return(U(Fe)?Fe.asyncValidators:Ae)||null}function U(Ae){return null!=Ae&&!Array.isArray(Ae)&&"object"==typeof Ae}function ve(Ae,Fe,le){const Qe=Ae.controls;if(!(Fe?Object.keys(Qe):Qe).length)throw new e.vHH(1e3,"");if(!Qe[le])throw new e.vHH(1001,"")}function Pe(Ae,Fe,le){Ae._forEachChild((Qe,Ht)=>{if(void 0===le[Ht])throw new e.vHH(1002,"")})}class ut{constructor(Fe,le){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Fe),this._assignAsyncValidators(le)}get validator(){return this._composedValidatorFn}set validator(Fe){this._rawValidators=this._composedValidatorFn=Fe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Fe){this._rawAsyncValidators=this._composedAsyncValidatorFn=Fe}get parent(){return this._parent}get valid(){return this.status===jn}get invalid(){return this.status===ai}get pending(){return this.status==di}get disabled(){return this.status===oi}get enabled(){return this.status!==oi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Fe){this._assignValidators(Fe)}setAsyncValidators(Fe){this._assignAsyncValidators(Fe)}addValidators(Fe){this.setValidators(rt(Fe,this._rawValidators))}addAsyncValidators(Fe){this.setAsyncValidators(rt(Fe,this._rawAsyncValidators))}removeValidators(Fe){this.setValidators(bt(Fe,this._rawValidators))}removeAsyncValidators(Fe){this.setAsyncValidators(bt(Fe,this._rawAsyncValidators))}hasValidator(Fe){return Ze(this._rawValidators,Fe)}hasAsyncValidator(Fe){return Ze(this._rawAsyncValidators,Fe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Fe={}){this.touched=!0,this._parent&&!Fe.onlySelf&&this._parent.markAsTouched(Fe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Fe=>Fe.markAllAsTouched())}markAsUntouched(Fe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(le=>{le.markAsUntouched({onlySelf:!0})}),this._parent&&!Fe.onlySelf&&this._parent._updateTouched(Fe)}markAsDirty(Fe={}){this.pristine=!1,this._parent&&!Fe.onlySelf&&this._parent.markAsDirty(Fe)}markAsPristine(Fe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(le=>{le.markAsPristine({onlySelf:!0})}),this._parent&&!Fe.onlySelf&&this._parent._updatePristine(Fe)}markAsPending(Fe={}){this.status=di,!1!==Fe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Fe.onlySelf&&this._parent.markAsPending(Fe)}disable(Fe={}){const le=this._parentMarkedDirty(Fe.onlySelf);this.status=oi,this.errors=null,this._forEachChild(Qe=>{Qe.disable({...Fe,onlySelf:!0})}),this._updateValue(),!1!==Fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Fe,skipPristineCheck:le}),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(Fe={}){const le=this._parentMarkedDirty(Fe.onlySelf);this.status=jn,this._forEachChild(Qe=>{Qe.enable({...Fe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Fe.emitEvent}),this._updateAncestors({...Fe,skipPristineCheck:le}),this._onDisabledChange.forEach(Qe=>Qe(!1))}_updateAncestors(Fe){this._parent&&!Fe.onlySelf&&(this._parent.updateValueAndValidity(Fe),Fe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Fe){this._parent=Fe}getRawValue(){return this.value}updateValueAndValidity(Fe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===jn||this.status===di)&&this._runAsyncValidator(Fe.emitEvent)),!1!==Fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Fe.onlySelf&&this._parent.updateValueAndValidity(Fe)}_updateTreeValidity(Fe={emitEvent:!0}){this._forEachChild(le=>le._updateTreeValidity(Fe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Fe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?oi:jn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Fe){if(this.asyncValidator){this.status=di,this._hasOwnPendingAsyncValidator=!0;const le=Ln(this.asyncValidator(this));this._asyncValidationSubscription=le.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:Fe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Fe,le={}){this.errors=Fe,this._updateControlsErrors(!1!==le.emitEvent)}get(Fe){let le=Fe;return null==le||(Array.isArray(le)||(le=le.split(".")),0===le.length)?null:le.reduce((Qe,Ht)=>Qe&&Qe._find(Ht),this)}getError(Fe,le){const Qe=le?this.get(le):this;return Qe&&Qe.errors?Qe.errors[Fe]:null}hasError(Fe,le){return!!this.getError(Fe,le)}get root(){let Fe=this;for(;Fe._parent;)Fe=Fe._parent;return Fe}_updateControlsErrors(Fe){this.status=this._calculateStatus(),Fe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Fe)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?oi:this.errors?ai:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(di)?di:this._anyControlsHaveStatus(ai)?ai:jn}_anyControlsHaveStatus(Fe){return this._anyControls(le=>le.status===Fe)}_anyControlsDirty(){return this._anyControls(Fe=>Fe.dirty)}_anyControlsTouched(){return this._anyControls(Fe=>Fe.touched)}_updatePristine(Fe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Fe.onlySelf&&this._parent._updatePristine(Fe)}_updateTouched(Fe={}){this.touched=this._anyControlsTouched(),this._parent&&!Fe.onlySelf&&this._parent._updateTouched(Fe)}_registerOnCollectionChange(Fe){this._onCollectionChange=Fe}_setUpdateStrategy(Fe){U(Fe)&&null!=Fe.updateOn&&(this._updateOn=Fe.updateOn)}_parentMarkedDirty(Fe){return!Fe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Fe){return null}_assignValidators(Fe){this._rawValidators=Array.isArray(Fe)?Fe.slice():Fe,this._composedValidatorFn=function qt(Ae){return Array.isArray(Ae)?at(Ae):Ae||null}(this._rawValidators)}_assignAsyncValidators(Fe){this._rawAsyncValidators=Array.isArray(Fe)?Fe.slice():Fe,this._composedAsyncValidatorFn=function G(Ae){return Array.isArray(Ae)?Ee(Ae):Ae||null}(this._rawAsyncValidators)}}class We extends ut{constructor(Fe,le,Qe){super(Jn(le),_t(Qe,le)),this.controls=Fe,this._initObservables(),this._setUpdateStrategy(le),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Fe,le){return this.controls[Fe]?this.controls[Fe]:(this.controls[Fe]=le,le.setParent(this),le._registerOnCollectionChange(this._onCollectionChange),le)}addControl(Fe,le,Qe={}){this.registerControl(Fe,le),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(Fe,le={}){this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),delete this.controls[Fe],this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}setControl(Fe,le,Qe={}){this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),delete this.controls[Fe],le&&this.registerControl(Fe,le),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(Fe){return this.controls.hasOwnProperty(Fe)&&this.controls[Fe].enabled}setValue(Fe,le={}){Pe(this,0,Fe),Object.keys(Fe).forEach(Qe=>{ve(this,!0,Qe),this.controls[Qe].setValue(Fe[Qe],{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le)}patchValue(Fe,le={}){null!=Fe&&(Object.keys(Fe).forEach(Qe=>{const Ht=this.controls[Qe];Ht&&Ht.patchValue(Fe[Qe],{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le))}reset(Fe={},le={}){this._forEachChild((Qe,Ht)=>{Qe.reset(Fe?Fe[Ht]:null,{onlySelf:!0,emitEvent:le.emitEvent})}),this._updatePristine(le),this._updateTouched(le),this.updateValueAndValidity(le)}getRawValue(){return this._reduceChildren({},(Fe,le,Qe)=>(Fe[Qe]=le.getRawValue(),Fe))}_syncPendingControls(){let Fe=this._reduceChildren(!1,(le,Qe)=>!!Qe._syncPendingControls()||le);return Fe&&this.updateValueAndValidity({onlySelf:!0}),Fe}_forEachChild(Fe){Object.keys(this.controls).forEach(le=>{const Qe=this.controls[le];Qe&&Fe(Qe,le)})}_setUpControls(){this._forEachChild(Fe=>{Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Fe){for(const[le,Qe]of Object.entries(this.controls))if(this.contains(le)&&Fe(Qe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(le,Qe,Ht)=>((Qe.enabled||this.disabled)&&(le[Ht]=Qe.value),le))}_reduceChildren(Fe,le){let Qe=Fe;return this._forEachChild((Ht,Qn)=>{Qe=le(Qe,Ht,Qn)}),Qe}_allControlsDisabled(){for(const Fe of Object.keys(this.controls))if(this.controls[Fe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Fe){return this.controls.hasOwnProperty(Fe)?this.controls[Fe]:null}}class Te extends We{}const Wt=new e.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Pn}),Pn="always";function wt(Ae,Fe){return[...Fe.path,Ae]}function Yt(Ae,Fe,le=Pn){ht(Ae,Fe),Fe.valueAccessor.writeValue(Ae.value),(Ae.disabled||"always"===le)&&Fe.valueAccessor.setDisabledState?.(Ae.disabled),function It(Ae,Fe){Fe.valueAccessor.registerOnChange(le=>{Ae._pendingValue=le,Ae._pendingChange=!0,Ae._pendingDirty=!0,"change"===Ae.updateOn&&_n(Ae,Fe)})}(Ae,Fe),function En(Ae,Fe){const le=(Qe,Ht)=>{Fe.valueAccessor.writeValue(Qe),Ht&&Fe.viewToModelUpdate(Qe)};Ae.registerOnChange(le),Fe._registerOnDestroy(()=>{Ae._unregisterOnChange(le)})}(Ae,Fe),function cn(Ae,Fe){Fe.valueAccessor.registerOnTouched(()=>{Ae._pendingTouched=!0,"blur"===Ae.updateOn&&Ae._pendingChange&&_n(Ae,Fe),"submit"!==Ae.updateOn&&Ae.markAsTouched()})}(Ae,Fe),function Vt(Ae,Fe){if(Fe.valueAccessor.setDisabledState){const le=Qe=>{Fe.valueAccessor.setDisabledState(Qe)};Ae.registerOnDisabledChange(le),Fe._registerOnDestroy(()=>{Ae._unregisterOnDisabledChange(le)})}}(Ae,Fe)}function fe(Ae,Fe,le=!0){const Qe=()=>{};Fe.valueAccessor&&(Fe.valueAccessor.registerOnChange(Qe),Fe.valueAccessor.registerOnTouched(Qe)),st(Ae,Fe),Ae&&(Fe._invokeOnDestroyCallbacks(),Ae._registerOnCollectionChange(()=>{}))}function Mt(Ae,Fe){Ae.forEach(le=>{le.registerOnValidatorChange&&le.registerOnValidatorChange(Fe)})}function ht(Ae,Fe){const le=me(Ae);null!==Fe.validator?Ae.setValidators($e(le,Fe.validator)):"function"==typeof le&&Ae.setValidators([le]);const Qe=tt(Ae);null!==Fe.asyncValidator?Ae.setAsyncValidators($e(Qe,Fe.asyncValidator)):"function"==typeof Qe&&Ae.setAsyncValidators([Qe]);const Ht=()=>Ae.updateValueAndValidity();Mt(Fe._rawValidators,Ht),Mt(Fe._rawAsyncValidators,Ht)}function st(Ae,Fe){let le=!1;if(null!==Ae){if(null!==Fe.validator){const Ht=me(Ae);if(Array.isArray(Ht)&&Ht.length>0){const Qn=Ht.filter(Ni=>Ni!==Fe.validator);Qn.length!==Ht.length&&(le=!0,Ae.setValidators(Qn))}}if(null!==Fe.asyncValidator){const Ht=tt(Ae);if(Array.isArray(Ht)&&Ht.length>0){const Qn=Ht.filter(Ni=>Ni!==Fe.asyncValidator);Qn.length!==Ht.length&&(le=!0,Ae.setAsyncValidators(Qn))}}}const Qe=()=>{};return Mt(Fe._rawValidators,Qe),Mt(Fe._rawAsyncValidators,Qe),le}function _n(Ae,Fe){Ae._pendingDirty&&Ae.markAsDirty(),Ae.setValue(Ae._pendingValue,{emitModelToViewChange:!1}),Fe.viewToModelUpdate(Ae._pendingValue),Ae._pendingChange=!1}function On(Ae,Fe){ht(Ae,Fe)}function Bi(Ae,Fe){if(!Ae.hasOwnProperty("model"))return!1;const le=Ae.model;return!!le.isFirstChange()||!Object.is(Fe,le.currentValue)}function Ji(Ae,Fe){Ae._syncPendingControls(),Fe.forEach(le=>{const Qe=le.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(le.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function tr(Ae,Fe){if(!Fe)return null;let le,Qe,Ht;return Array.isArray(Fe),Fe.forEach(Qn=>{Qn.constructor===oe?le=Qn:function co(Ae){return Object.getPrototypeOf(Ae.constructor)===n}(Qn)?Qe=Qn:Ht=Qn}),Ht||Qe||le||null}const pr={provide:Qt,useExisting:(0,e.Gpc)(()=>$n)},br=(()=>Promise.resolve())();let $n=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.callSetDisabledState=Ht,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new We({},at(le),Ee(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(le){br.then(()=>{const Qe=this._findContainer(le.path);le.control=Qe.registerControl(le.name,le.control),Yt(le.control,le,this.callSetDisabledState),le.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(le)})}getControl(le){return this.form.get(le.path)}removeControl(le){br.then(()=>{const Qe=this._findContainer(le.path);Qe&&Qe.removeControl(le.name),this._directives.delete(le)})}addFormGroup(le){br.then(()=>{const Qe=this._findContainer(le.path),Ht=new We({});On(Ht,le),Qe.registerControl(le.name,Ht),Ht.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(le){br.then(()=>{const Qe=this._findContainer(le.path);Qe&&Qe.removeControl(le.name)})}getFormGroup(le){return this.form.get(le.path)}updateModel(le,Qe){br.then(()=>{this.form.get(le.path).setValue(Qe)})}setValue(le){this.control.setValue(le)}onSubmit(le){return this.submitted=!0,Ji(this.form,this._directives),this.ngSubmit.emit(le),"dialog"===le?.target?.method}onReset(){this.resetForm()}resetForm(le=void 0){this.form.reset(le),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(le){return le.pop(),le.length?this.form.get(le):this.form}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("submit",function(Ni){return Ht.onSubmit(Ni)})("reset",function(){return Ht.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([pr]),e.qOj]})}return Ae})();function yo(Ae,Fe){const le=Ae.indexOf(Fe);le>-1&&Ae.splice(le,1)}function Fr(Ae){return"object"==typeof Ae&&null!==Ae&&2===Object.keys(Ae).length&&"value"in Ae&&"disabled"in Ae}const uo=class extends ut{constructor(Fe=null,le,Qe){super(Jn(le),_t(Qe,le)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Fe),this._setUpdateStrategy(le),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),U(le)&&(le.nonNullable||le.initialValueIsDefault)&&(this.defaultValue=Fr(Fe)?Fe.value:Fe)}setValue(Fe,le={}){this.value=this._pendingValue=Fe,this._onChange.length&&!1!==le.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==le.emitViewToModelChange)),this.updateValueAndValidity(le)}patchValue(Fe,le={}){this.setValue(Fe,le)}reset(Fe=this.defaultValue,le={}){this._applyFormState(Fe),this.markAsPristine(le),this.markAsUntouched(le),this.setValue(this.value,le),this._pendingChange=!1}_updateValue(){}_anyControls(Fe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Fe){this._onChange.push(Fe)}_unregisterOnChange(Fe){yo(this._onChange,Fe)}registerOnDisabledChange(Fe){this._onDisabledChange.push(Fe)}_unregisterOnDisabledChange(Fe){yo(this._onDisabledChange,Fe)}_forEachChild(Fe){}_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(Fe){Fr(Fe)?(this.value=this._pendingValue=Fe.value,Fe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Fe}};let yr=(()=>{class Ae extends Qt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.qOj]})}return Ae})();const $s={provide:nn,useExisting:(0,e.Gpc)(()=>Jr)},Uo=(()=>Promise.resolve())();let Jr=(()=>{class Ae extends nn{constructor(le,Qe,Ht,Qn,Ni,Zo){super(),this._changeDetectorRef=Ni,this.callSetDisabledState=Zo,this.control=new uo,this._registered=!1,this.name="",this.update=new e.vpe,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht),this.valueAccessor=tr(0,Qn)}ngOnChanges(le){if(this._checkForErrors(),!this._registered||"name"in le){if(this._registered&&(this._checkName(),this.formDirective)){const Qe=le.name.previousValue;this.formDirective.removeControl({name:Qe,path:this._getPath(Qe)})}this._setUpControl()}"isDisabled"in le&&this._updateDisabled(le),Bi(le,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}_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(){Yt(this.control,this,this.callSetDisabledState),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(le){Uo.then(()=>{this.control.setValue(le,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(le){const Qe=le.isDisabled.currentValue,Ht=0!==Qe&&(0,e.VuI)(Qe);Uo.then(()=>{Ht&&!this.control.disabled?this.control.disable():!Ht&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(le){return this._parent?wt(le,this._parent):[le]}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,9),e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(e.sBO,8),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([$s]),e.qOj,e.TTD]})}return Ae})(),ga=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Ae})();const kr={provide:Z,useExisting:(0,e.Gpc)(()=>oo),multi:!0};let oo=(()=>{class Ae extends n{writeValue(le){this.setProperty("value",le??"")}registerOnChange(le){this.onChange=Qe=>{le(""==Qe?null:parseFloat(Qe))}}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("input",function(Ni){return Ht.onChange(Ni.target.value)})("blur",function(){return Ht.onTouched()})},features:[e._Bn([kr]),e.qOj]})}return Ae})();const fs={provide:Z,useExisting:(0,e.Gpc)(()=>Ks),multi:!0};let Vo=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({})}return Ae})(),oc=(()=>{class Ae{constructor(){this._accessors=[]}add(le,Qe){this._accessors.push([le,Qe])}remove(le){for(let Qe=this._accessors.length-1;Qe>=0;--Qe)if(this._accessors[Qe][1]===le)return void this._accessors.splice(Qe,1)}select(le){this._accessors.forEach(Qe=>{this._isSameGroup(Qe,le)&&Qe[1]!==le&&Qe[1].fireUncheck(le.value)})}_isSameGroup(le,Qe){return!!le[0].control&&le[0]._parent===Qe._control._parent&&le[1].name===Qe.name}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:Vo})}return Ae})(),Ks=(()=>{class Ae extends n{constructor(le,Qe,Ht,Qn){super(le,Qe),this._registry=Ht,this._injector=Qn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,e.f3M)(Wt,{optional:!0})??Pn}ngOnInit(){this._control=this._injector.get(nn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(le){this._state=le===this.value,this.setProperty("checked",this._state)}registerOnChange(le){this._fn=le,this.onChange=()=>{le(this.value),this._registry.select(this)}}setDisabledState(le){(this.setDisabledStateFired||le||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",le),this.setDisabledStateFired=!0}fireUncheck(le){this.writeValue(le)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(oc),e.Y36(e.zs3))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(){return Ht.onChange()})("blur",function(){return Ht.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e._Bn([fs]),e.qOj]})}return Ae})();const Li=new e.OlP("NgModelWithFormControlWarning"),Yr={provide:nn,useExisting:(0,e.Gpc)(()=>dr)};let dr=(()=>{class Ae extends nn{set isDisabled(le){}static#e=this._ngModelWarningSentOnce=!1;constructor(le,Qe,Ht,Qn,Ni){super(),this._ngModelWarningConfig=Qn,this.callSetDisabledState=Ni,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(le),this._setAsyncValidators(Qe),this.valueAccessor=tr(0,Ht)}ngOnChanges(le){if(this._isControlChanged(le)){const Qe=le.form.previousValue;Qe&&fe(Qe,this,!1),Yt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Bi(le,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&fe(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}_isControlChanged(le){return le.hasOwnProperty("form")}static#t=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(Li,8),e.Y36(Wt,8))};static#n=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Yr]),e.qOj,e.TTD]})}return Ae})();const Ha={provide:Qt,useExisting:(0,e.Gpc)(()=>wr)};let wr=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.callSetDisabledState=Ht,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(le),this._setAsyncValidators(Qe)}ngOnChanges(le){this._checkFormPresent(),le.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(st(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(le){const Qe=this.form.get(le.path);return Yt(Qe,le,this.callSetDisabledState),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(le),Qe}getControl(le){return this.form.get(le.path)}removeControl(le){fe(le.control||null,le,!1),function _i(Ae,Fe){const le=Ae.indexOf(Fe);le>-1&&Ae.splice(le,1)}(this.directives,le)}addFormGroup(le){this._setUpFormContainer(le)}removeFormGroup(le){this._cleanUpFormContainer(le)}getFormGroup(le){return this.form.get(le.path)}addFormArray(le){this._setUpFormContainer(le)}removeFormArray(le){this._cleanUpFormContainer(le)}getFormArray(le){return this.form.get(le.path)}updateModel(le,Qe){this.form.get(le.path).setValue(Qe)}onSubmit(le){return this.submitted=!0,Ji(this.form,this.directives),this.ngSubmit.emit(le),"dialog"===le?.target?.method}onReset(){this.resetForm()}resetForm(le=void 0){this.form.reset(le),this.submitted=!1}_updateDomValue(){this.directives.forEach(le=>{const Qe=le.control,Ht=this.form.get(le.path);Qe!==Ht&&(fe(Qe||null,le),(Ae=>Ae instanceof uo)(Ht)&&(Yt(Ht,le,this.callSetDisabledState),le.control=Ht))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(le){const Qe=this.form.get(le.path);On(Qe,le),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(le){if(this.form){const Qe=this.form.get(le.path);Qe&&function ni(Ae,Fe){return st(Ae,Fe)}(Qe,le)&&Qe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ht(this.form,this),this._oldForm&&st(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroup",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("submit",function(Ni){return Ht.onSubmit(Ni)})("reset",function(){return Ht.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ha]),e.qOj,e.TTD]})}return Ae})();const al={provide:Qt,useExisting:(0,e.Gpc)(()=>Vr)};let Vr=(()=>{class Ae extends yr{constructor(le,Qe,Ht){super(),this.name=null,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht)}_checkParentType(){ll(this._parent)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[e._Bn([al]),e.qOj]})}return Ae})();const Es={provide:Qt,useExisting:(0,e.Gpc)(()=>Js)};let Js=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.name=null,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){ll(this._parent)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[e._Bn([Es]),e.qOj]})}return Ae})();function ll(Ae){return!(Ae instanceof Vr||Ae instanceof wr||Ae instanceof Js)}const er={provide:nn,useExisting:(0,e.Gpc)(()=>qn)};let qn=(()=>{class Ae extends nn{set isDisabled(le){}static#e=this._ngModelWarningSentOnce=!1;constructor(le,Qe,Ht,Qn,Ni){super(),this._ngModelWarningConfig=Ni,this._added=!1,this.name=null,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht),this.valueAccessor=tr(0,Qn)}ngOnChanges(le){this._added||this._setUpControl(),Bi(le,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}get path(){return wt(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._added=!0}static#t=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(Li,8))};static#n=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([er]),e.qOj,e.TTD]})}return Ae})();const bi={provide:Z,useExisting:(0,e.Gpc)(()=>jo),multi:!0};function _r(Ae,Fe){return null==Ae?`${Fe}`:(Fe&&"object"==typeof Fe&&(Fe="Object"),`${Ae}: ${Fe}`.slice(0,50))}let jo=(()=>{class Ae extends n{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(le){this._compareWith=le}writeValue(le){this.value=le;const Ht=_r(this._getOptionId(le),le);this.setProperty("value",Ht)}registerOnChange(le){this.onChange=Qe=>{this.value=this._getOptionValue(Qe),le(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(le){for(const Qe of this._optionMap.keys())if(this._compareWith(this._optionMap.get(Qe),le))return Qe;return null}_getOptionValue(le){const Qe=function wo(Ae){return Ae.split(":")[0]}(le);return this._optionMap.has(Qe)?this._optionMap.get(Qe):le}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(Ni){return Ht.onChange(Ni.target.value)})("blur",function(){return Ht.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([bi]),e.qOj]})}return Ae})(),no=(()=>{class Ae{constructor(le,Qe,Ht){this._element=le,this._renderer=Qe,this._select=Ht,this._select&&(this.id=this._select._registerOption())}set ngValue(le){null!=this._select&&(this._select._optionMap.set(this.id,le),this._setElementValue(_r(this.id,le)),this._select.writeValue(this._select.value))}set value(le){this._setElementValue(le),this._select&&this._select.writeValue(this._select.value)}_setElementValue(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(jo,9))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Ae})();const Ao={provide:Z,useExisting:(0,e.Gpc)(()=>Ti),multi:!0};function nr(Ae,Fe){return null==Ae?`${Fe}`:("string"==typeof Fe&&(Fe=`'${Fe}'`),Fe&&"object"==typeof Fe&&(Fe="Object"),`${Ae}: ${Fe}`.slice(0,50))}let Ti=(()=>{class Ae extends n{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(le){this._compareWith=le}writeValue(le){let Qe;if(this.value=le,Array.isArray(le)){const Ht=le.map(Qn=>this._getOptionId(Qn));Qe=(Qn,Ni)=>{Qn._setSelected(Ht.indexOf(Ni.toString())>-1)}}else Qe=(Ht,Qn)=>{Ht._setSelected(!1)};this._optionMap.forEach(Qe)}registerOnChange(le){this.onChange=Qe=>{const Ht=[],Qn=Qe.selectedOptions;if(void 0!==Qn){const Ni=Qn;for(let Zo=0;Zo{class Ae{constructor(le,Qe,Ht){this._element=le,this._renderer=Qe,this._select=Ht,this._select&&(this.id=this._select._registerOption(this))}set ngValue(le){null!=this._select&&(this._value=le,this._setElementValue(nr(this.id,le)),this._select.writeValue(this._select.value))}set value(le){this._select?(this._value=le,this._setElementValue(nr(this.id,le)),this._select.writeValue(this._select.value)):this._setElementValue(le)}_setElementValue(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}_setSelected(le){this._renderer.setProperty(this._element.nativeElement,"selected",le)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ti,9))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Ae})();function Qs(Ae){return"number"==typeof Ae?Ae:parseFloat(Ae)}let wi=(()=>{class Ae{constructor(){this._validator=tn}ngOnChanges(le){if(this.inputName in le){const Qe=this.normalizeInput(le[this.inputName].currentValue);this._enabled=this.enabled(Qe),this._validator=this._enabled?this.createValidator(Qe):tn,this._onChange&&this._onChange()}}validate(le){return this._validator(le)}registerOnValidatorChange(le){this._onChange=le}enabled(le){return null!=le}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.TTD]})}return Ae})();const Oo={provide:Re,useExisting:(0,e.Gpc)(()=>Ko),multi:!0};let Ko=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=le=>Qs(le),this.createValidator=le=>Tt(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("max",Ht._enabled?Ht.max:null)},inputs:{max:"max"},features:[e._Bn([Oo]),e.qOj]})}return Ae})();const or={provide:Re,useExisting:(0,e.Gpc)(()=>Xs),multi:!0};let Xs=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=le=>Qs(le),this.createValidator=le=>je(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("min",Ht._enabled?Ht.min:null)},inputs:{min:"min"},features:[e._Bn([or]),e.qOj]})}return Ae})();const Ml={provide:Re,useExisting:(0,e.Gpc)(()=>jr),multi:!0};let jr=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.VuI,this.createValidator=le=>xt}enabled(le){return le}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("required",Ht._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Ml]),e.qOj]})}return Ae})();const Ys={provide:Re,useExisting:(0,e.Gpc)(()=>fo),multi:!0};let fo=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=le=>function ba(Ae){return"number"==typeof Ae?Ae:parseInt(Ae,10)}(le),this.createValidator=le=>un(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("maxlength",Ht._enabled?Ht.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e._Bn([Ys]),e.qOj]})}return Ae})(),po=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[Vo]})}return Ae})();class io extends ut{constructor(Fe,le,Qe){super(Jn(le),_t(Qe,le)),this.controls=Fe,this._initObservables(),this._setUpdateStrategy(le),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Fe){return this.controls[this._adjustIndex(Fe)]}push(Fe,le={}){this.controls.push(Fe),this._registerControl(Fe),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}insert(Fe,le,Qe={}){this.controls.splice(Fe,0,le),this._registerControl(le),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(Fe,le={}){let Qe=this._adjustIndex(Fe);Qe<0&&(Qe=0),this.controls[Qe]&&this.controls[Qe]._registerOnCollectionChange(()=>{}),this.controls.splice(Qe,1),this.updateValueAndValidity({emitEvent:le.emitEvent})}setControl(Fe,le,Qe={}){let Ht=this._adjustIndex(Fe);Ht<0&&(Ht=0),this.controls[Ht]&&this.controls[Ht]._registerOnCollectionChange(()=>{}),this.controls.splice(Ht,1),le&&(this.controls.splice(Ht,0,le),this._registerControl(le)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Fe,le={}){Pe(this,0,Fe),Fe.forEach((Qe,Ht)=>{ve(this,!1,Ht),this.at(Ht).setValue(Qe,{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le)}patchValue(Fe,le={}){null!=Fe&&(Fe.forEach((Qe,Ht)=>{this.at(Ht)&&this.at(Ht).patchValue(Qe,{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le))}reset(Fe=[],le={}){this._forEachChild((Qe,Ht)=>{Qe.reset(Fe[Ht],{onlySelf:!0,emitEvent:le.emitEvent})}),this._updatePristine(le),this._updateTouched(le),this.updateValueAndValidity(le)}getRawValue(){return this.controls.map(Fe=>Fe.getRawValue())}clear(Fe={}){this.controls.length<1||(this._forEachChild(le=>le._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Fe.emitEvent}))}_adjustIndex(Fe){return Fe<0?Fe+this.length:Fe}_syncPendingControls(){let Fe=this.controls.reduce((le,Qe)=>!!Qe._syncPendingControls()||le,!1);return Fe&&this.updateValueAndValidity({onlySelf:!0}),Fe}_forEachChild(Fe){this.controls.forEach((le,Qe)=>{Fe(le,Qe)})}_updateValue(){this.value=this.controls.filter(Fe=>Fe.enabled||this.disabled).map(Fe=>Fe.value)}_anyControls(Fe){return this.controls.some(le=>le.enabled&&Fe(le))}_setUpControls(){this._forEachChild(Fe=>this._registerControl(Fe))}_allControlsDisabled(){for(const Fe of this.controls)if(Fe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Fe){Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange)}_find(Fe){return this.at(Fe)??null}}function ya(Ae){return!!Ae&&(void 0!==Ae.asyncValidators||void 0!==Ae.validators||void 0!==Ae.updateOn)}let sr=(()=>{class Ae{constructor(){this.useNonNullable=!1}get nonNullable(){const le=new Ae;return le.useNonNullable=!0,le}group(le,Qe=null){const Ht=this._reduceControls(le);let Qn={};return ya(Qe)?Qn=Qe:null!==Qe&&(Qn.validators=Qe.validator,Qn.asyncValidators=Qe.asyncValidator),new We(Ht,Qn)}record(le,Qe=null){const Ht=this._reduceControls(le);return new Te(Ht,Qe)}control(le,Qe,Ht){let Qn={};return this.useNonNullable?(ya(Qe)?Qn=Qe:(Qn.validators=Qe,Qn.asyncValidators=Ht),new uo(le,{...Qn,nonNullable:!0})):new uo(le,Qe,Ht)}array(le,Qe,Ht){const Qn=le.map(Ni=>this._createControl(Ni));return new io(Qn,Qe,Ht)}_reduceControls(le){const Qe={};return Object.keys(le).forEach(Ht=>{Qe[Ht]=this._createControl(le[Ht])}),Qe}_createControl(le){return le instanceof uo||le instanceof ut?le:Array.isArray(le)?this.control(le[0],le.length>1?le[1]:null,le.length>2?le[2]:null):this.control(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})(),ta=(()=>{class Ae{static withConfig(le){return{ngModule:Ae,providers:[{provide:Wt,useValue:le.callSetDisabledState??Pn}]}}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[po]})}return Ae})(),na=(()=>{class Ae{static withConfig(le){return{ngModule:Ae,providers:[{provide:Li,useValue:le.warnOnNgModelWithFormControl??"always"},{provide:Wt,useValue:le.callSetDisabledState??Pn}]}}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[po]})}return Ae})()},2296:(ft,Ie,C)=>{"use strict";C.d(Ie,{RK:()=>Rn,lW:()=>Zt,ot:()=>at});var e=C(2831),l=C(5879),D=C(4300),I=C(2605),S=C(3680);const w=["mat-button",""],n=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Z=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],oe=["mat-icon-button",""],ce=["*"],Ge=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Lt=(0,S.pj)((0,S.Id)((0,S.Kr)(class{constructor(Be){this._elementRef=Be}})));let je=(()=>{class Be extends Lt{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple($e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,$e)}get disableRipple(){return this._disableRipple}set disableRipple($e){this._disableRipple=(0,I.Ig)($e),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled($e){this._disabled=(0,I.Ig)($e),this._updateRippleDisabled()}constructor($e,me,tt,he){super($e),this._platform=me,this._ngZone=tt,this._animationMode=he,this._focusMonitor=(0,l.f3M)(D.tE),this._rippleLoader=(0,l.f3M)(S.Fq),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const Ze=$e.nativeElement.classList;for(const rt of Ge)this._hasHostAttributes(rt.selector)&&rt.mdcClasses.forEach(bt=>{Ze.add(bt)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus($e="program",me){$e?this._focusMonitor.focusVia(this._elementRef.nativeElement,$e,me):this._elementRef.nativeElement.focus(me)}_hasHostAttributes(...$e){return $e.some(me=>this._elementRef.nativeElement.hasAttribute(me))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(me){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Be,features:[l.qOj]})}return Be})(),Zt=(()=>{class Be extends je{constructor($e,me,tt,he){super($e,me,tt,he)}static#e=this.\u0275fac=function(me){return new(me||Be)(l.Y36(l.SBq),l.Y36(e.t4),l.Y36(l.R0b),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Be,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(me,tt){2&me&&(l.uIk("disabled",tt.disabled||null),l.ekj("_mat-animation-noopable","NoopAnimations"===tt._animationMode)("mat-unthemed",!tt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[l.qOj],attrs:w,ngContentSelectors:Z,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(me,tt){1&me&&(l.F$t(n),l._UZ(0,"span",0),l.Hsn(1),l.TgZ(2,"span",1),l.Hsn(3,1),l.qZA(),l.Hsn(4,2),l._UZ(5,"span",2)(6,"span",3)),2&me&&l.ekj("mdc-button__ripple",!tt._isFab)("mdc-fab__ripple",tt._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Be})(),Rn=(()=>{class Be extends je{constructor($e,me,tt,he){super($e,me,tt,he),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(me){return new(me||Be)(l.Y36(l.SBq),l.Y36(e.t4),l.Y36(l.R0b),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Be,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(me,tt){2&me&&(l.uIk("disabled",tt.disabled||null),l.ekj("_mat-animation-noopable","NoopAnimations"===tt._animationMode)("mat-unthemed",!tt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[l.qOj],attrs:oe,ngContentSelectors:ce,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(me,tt){1&me&&(l.F$t(),l._UZ(0,"span",0),l.Hsn(1),l._UZ(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Be})(),at=(()=>{class Be{static#e=this.\u0275fac=function(me){return new(me||Be)};static#t=this.\u0275mod=l.oAB({type:Be});static#n=this.\u0275inj=l.cJS({imports:[S.BQ,S.si,S.BQ]})}return Be})()},5195:(ft,Ie,C)=>{"use strict";C.d(Ie,{$j:()=>oe,C1:()=>se,QW:()=>Zt,a8:()=>re,dn:()=>te,hq:()=>ce,n5:()=>ue,vP:()=>Ge});var e=C(5879),l=C(6814),D=C(3680);const I=["*"],S=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],w=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]","*"],ee=new e.OlP("MAT_CARD_CONFIG");let re=(()=>{class yt{constructor(Jt){this.appearance=Jt?.appearance||"raised"}static#e=this.\u0275fac=function(tn){return new(tn||yt)(e.Y36(ee,8))};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(tn,wn){2&tn&&e.ekj("mat-mdc-card-outlined","outlined"===wn.appearance)("mdc-card--outlined","outlined"===wn.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:I,decls:1,vars:0,template:function(tn,wn){1&tn&&(e.F$t(),e.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return yt})(),ue=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return yt})(),se=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-mdc-card-title-group"],ngContentSelectors:w,decls:4,vars:0,template:function(tn,wn){1&tn&&(e.F$t(S),e.TgZ(0,"div"),e.Hsn(1),e.qZA(),e.Hsn(2,1),e.Hsn(3,2))},encapsulation:2,changeDetection:0})}return yt})(),te=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return yt})(),oe=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return yt})(),ce=(()=>{class yt{constructor(){this.align="start"}static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(tn,wn){2&tn&&e.ekj("mat-mdc-card-actions-align-end","end"===wn.align)},inputs:{align:"align"},exportAs:["matCardActions"]})}return yt})(),Ge=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-mdc-card-sm-image","mdc-card__media"]})}return yt})(),Zt=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275mod=e.oAB({type:yt});static#n=this.\u0275inj=e.cJS({imports:[D.BQ,l.ez,D.BQ]})}return yt})()},3680:(ft,Ie,C)=>{"use strict";C.d(Ie,{rD:()=>rt,K7:()=>fn,HF:()=>Ft,Y2:()=>J,BQ:()=>St,uc:()=>nn,ey:()=>di,Ng:()=>qt,rN:()=>jn,wG:()=>ae,Fq:()=>We,si:()=>Oe,CB:()=>oi,jH:()=>Jn,pj:()=>tn,Kr:()=>wn,Id:()=>Jt,FD:()=>Yn,dB:()=>ti,sb:()=>Ln});var e=C(5879),l=C(4300),D=C(9388),S=C(6814),w=C(2831),n=C(2605),Z=C(5592),ee=C(8645),re=C(6028);const te=["text"];function oe(ze,be){if(1&ze&&e._UZ(0,"mat-pseudo-checkbox",6),2&ze){const Te=e.oxw();e.Q6J("disabled",Te.disabled)("state",Te.selected?"checked":"unchecked")}}function ce(ze,be){if(1&ze&&e._UZ(0,"mat-pseudo-checkbox",7),2&ze){const Te=e.oxw();e.Q6J("disabled",Te.disabled)}}function _e(ze,be){if(1&ze&&(e.TgZ(0,"span",8),e._uU(1),e.qZA()),2&ze){const Te=e.oxw();e.xp6(1),e.hij("(",Te.group.label,")")}}const Re=[[["mat-icon"]],"*"],mt=["mat-icon","*"],xt=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Tt(){return!0}});let St=(()=>{class ze{constructor(Te,He,Wt){this._sanityChecks=He,this._document=Wt,this._hasDoneGlobalChecks=!1,Te._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Te){return!(0,w.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Te])}static#e=this.\u0275fac=function(He){return new(He||ze)(e.LFG(l.qm),e.LFG(xt,8),e.LFG(S.K0))};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[D.vT,D.vT]})}return ze})();function Jt(ze){return class extends ze{get disabled(){return this._disabled}set disabled(be){this._disabled=(0,n.Ig)(be)}constructor(...be){super(...be),this._disabled=!1}}}function tn(ze,be){return class extends ze{get color(){return this._color}set color(Te){const He=Te||this.defaultColor;He!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),He&&this._elementRef.nativeElement.classList.add(`mat-${He}`),this._color=He)}constructor(...Te){super(...Te),this.defaultColor=be,this.color=be}}}function wn(ze){return class extends ze{get disableRipple(){return this._disableRipple}set disableRipple(be){this._disableRipple=(0,n.Ig)(be)}constructor(...be){super(...be),this._disableRipple=!1}}}function Ln(ze,be=0){return class extends ze{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Te){this._tabIndex=null!=Te?(0,n.su)(Te):this.defaultTabIndex}constructor(...Te){super(...Te),this._tabIndex=be,this.defaultTabIndex=be}}}function Yn(ze){return class extends ze{updateErrorState(){const be=this.errorState,Pn=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Pn!==be&&(this.errorState=Pn,this.stateChanges.next())}constructor(...be){super(...be),this.errorState=!1}}}function ti(ze){return class extends ze{constructor(...be){super(...be),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Z.y(Te=>{this._isInitialized?this._notifySubscriber(Te):this._pendingSubscribers.push(Te)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(be){be.next(),be.complete()}}}let rt=(()=>{class ze{isErrorState(Te,He){return!!(Te&&Te.invalid&&(Te.touched||He&&He.submitted))}static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})(),nn=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St,St]})}return ze})();class Dn{constructor(be,Te,He,Wt=!1){this._renderer=be,this.element=Te,this.config=He,this._animationForciblyDisabledThroughCss=Wt,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ot=(0,w.i$)({passive:!0,capture:!0});class rn{constructor(){this._events=new Map,this._delegateEventHandler=be=>{const Te=(0,w.sA)(be);Te&&this._events.get(be.type)?.forEach((He,Wt)=>{(Wt===Te||Wt.contains(Te))&&He.forEach(Pn=>Pn.handleEvent(be))})}}addHandler(be,Te,He,Wt){const Pn=this._events.get(Te);if(Pn){const wt=Pn.get(He);wt?wt.add(Wt):Pn.set(He,new Set([Wt]))}else this._events.set(Te,new Map([[He,new Set([Wt])]])),be.runOutsideAngular(()=>{document.addEventListener(Te,this._delegateEventHandler,Ot)})}removeHandler(be,Te,He){const Wt=this._events.get(be);if(!Wt)return;const Pn=Wt.get(Te);Pn&&(Pn.delete(He),0===Pn.size&&Wt.delete(Te),0===Wt.size&&(this._events.delete(be),document.removeEventListener(be,this._delegateEventHandler,Ot)))}}const vn={enterDuration:225,exitDuration:150},Wn=(0,w.i$)({passive:!0,capture:!0}),Ve=["mousedown","touchstart"],ct=["mouseup","mouseleave","touchend","touchcancel"];class Ct{static#e=this._eventManager=new rn;constructor(be,Te,He,Wt){this._target=be,this._ngZone=Te,this._platform=Wt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Wt.isBrowser&&(this._containerElement=(0,n.fI)(He))}fadeInRipple(be,Te,He={}){const Wt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Pn={...vn,...He.animation};He.centered&&(be=Wt.left+Wt.width/2,Te=Wt.top+Wt.height/2);const wt=He.radius||function Ce(ze,be,Te){const He=Math.max(Math.abs(ze-Te.left),Math.abs(ze-Te.right)),Wt=Math.max(Math.abs(be-Te.top),Math.abs(be-Te.bottom));return Math.sqrt(He*He+Wt*Wt)}(be,Te,Wt),Yt=be-Wt.left,fe=Te-Wt.top,Mt=Pn.enterDuration,Vt=document.createElement("div");Vt.classList.add("mat-ripple-element"),Vt.style.left=Yt-wt+"px",Vt.style.top=fe-wt+"px",Vt.style.height=2*wt+"px",Vt.style.width=2*wt+"px",null!=He.color&&(Vt.style.backgroundColor=He.color),Vt.style.transitionDuration=`${Mt}ms`,this._containerElement.appendChild(Vt);const ht=window.getComputedStyle(Vt),It=ht.transitionDuration,cn="none"===ht.transitionProperty||"0s"===It||"0s, 0s"===It||0===Wt.width&&0===Wt.height,_n=new Dn(this,Vt,He,cn);Vt.style.transform="scale3d(1, 1, 1)",_n.state=0,He.persistent||(this._mostRecentTransientRipple=_n);let En=null;return!cn&&(Mt||Pn.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const On=()=>this._finishRippleTransition(_n),ni=()=>this._destroyRipple(_n);Vt.addEventListener("transitionend",On),Vt.addEventListener("transitioncancel",ni),En={onTransitionEnd:On,onTransitionCancel:ni}}),this._activeRipples.set(_n,En),(cn||!Mt)&&this._finishRippleTransition(_n),_n}fadeOutRipple(be){if(2===be.state||3===be.state)return;const Te=be.element,He={...vn,...be.config.animation};Te.style.transitionDuration=`${He.exitDuration}ms`,Te.style.opacity="0",be.state=2,(be._animationForciblyDisabledThroughCss||!He.exitDuration)&&this._finishRippleTransition(be)}fadeOutAll(){this._getActiveRipples().forEach(be=>be.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(be=>{be.config.persistent||be.fadeOut()})}setupTriggerEvents(be){const Te=(0,n.fI)(be);!this._platform.isBrowser||!Te||Te===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Te,Ve.forEach(He=>{Ct._eventManager.addHandler(this._ngZone,He,Te,this)}))}handleEvent(be){"mousedown"===be.type?this._onMousedown(be):"touchstart"===be.type?this._onTouchStart(be):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ct.forEach(Te=>{this._triggerElement.addEventListener(Te,this,Wn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(be){0===be.state?this._startFadeOutTransition(be):2===be.state&&this._destroyRipple(be)}_startFadeOutTransition(be){const Te=be===this._mostRecentTransientRipple,{persistent:He}=be.config;be.state=1,!He&&(!Te||!this._isPointerDown)&&be.fadeOut()}_destroyRipple(be){const Te=this._activeRipples.get(be)??null;this._activeRipples.delete(be),this._activeRipples.size||(this._containerRect=null),be===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),be.state=3,null!==Te&&(be.element.removeEventListener("transitionend",Te.onTransitionEnd),be.element.removeEventListener("transitioncancel",Te.onTransitionCancel)),be.element.remove()}_onMousedown(be){const Te=(0,l.X6)(be),He=this._lastTouchStartEvent&&Date.now(){!be.config.persistent&&(1===be.state||be.config.terminateOnPointerUp&&0===be.state)&&be.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const be=this._triggerElement;be&&(Ve.forEach(Te=>Ct._eventManager.removeHandler(Te,be,this)),this._pointerUpEventsRegistered&&ct.forEach(Te=>be.removeEventListener(Te,this,Wn)))}}const J=new e.OlP("mat-ripple-global-options");let ae=(()=>{class ze{get disabled(){return this._disabled}set disabled(Te){Te&&this.fadeOutAllNonPersistent(),this._disabled=Te,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Te){this._trigger=Te,this._setupTriggerEventsIfEnabled()}constructor(Te,He,Wt,Pn,wt){this._elementRef=Te,this._animationMode=wt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Pn||{},this._rippleRenderer=new Ct(this,He,Te,Wt)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Te,He=0,Wt){return"number"==typeof Te?this._rippleRenderer.fadeInRipple(Te,He,{...this.rippleConfig,...Wt}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Te})}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(w.t4),e.Y36(J,8),e.Y36(e.QbO,8))};static#t=this.\u0275dir=e.lG2({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(He,Wt){2&He&&e.ekj("mat-ripple-unbounded",Wt.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return ze})(),Oe=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St,St]})}return ze})(),ot=(()=>{class ze{constructor(Te){this._animationMode=Te,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(He,Wt){2&He&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Wt.state)("mat-pseudo-checkbox-checked","checked"===Wt.state)("mat-pseudo-checkbox-disabled",Wt.disabled)("mat-pseudo-checkbox-minimal","minimal"===Wt.appearance)("mat-pseudo-checkbox-full","full"===Wt.appearance)("_mat-animation-noopable","NoopAnimations"===Wt._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(He,Wt){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return ze})(),Se=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St]})}return ze})();const Ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),fn=new e.OlP("MatOptgroup");let An=0;class jn{constructor(be,Te=!1){this.source=be,this.isUserInput=Te}}let ai=(()=>{class ze{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Te){this._disabled=(0,n.Ig)(Te)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(Te,He,Wt,Pn){this._element=Te,this._changeDetectorRef=He,this._parent=Wt,this.group=Pn,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+An++,this.onSelectionChange=new e.vpe,this._stateChanges=new ee.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Te=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Te&&this._emitSelectionChangeEvent())}deselect(Te=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Te&&this._emitSelectionChangeEvent())}focus(Te,He){const Wt=this._getHostElement();"function"==typeof Wt.focus&&Wt.focus(He)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Te){(Te.keyCode===re.K5||Te.keyCode===re.L_)&&!(0,re.Vb)(Te)&&(this._selectViaInteraction(),Te.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Te=this.viewValue;Te!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Te)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Te=!1){this.onSelectionChange.emit(new jn(this,Te))}static#e=this.\u0275fac=function(He){e.$Z()};static#t=this.\u0275dir=e.lG2({type:ze,viewQuery:function(He,Wt){if(1&He&&e.Gf(te,7),2&He){let Pn;e.iGM(Pn=e.CRH())&&(Wt._text=Pn.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return ze})(),di=(()=>{class ze extends ai{constructor(Te,He,Wt,Pn){super(Te,He,Wt,Pn)}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ft,8),e.Y36(fn,8))};static#t=this.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(He,Wt){1&He&&e.NdJ("click",function(){return Wt._selectViaInteraction()})("keydown",function(wt){return Wt._handleKeydown(wt)}),2&He&&(e.Ikx("id",Wt.id),e.uIk("aria-selected",Wt.selected)("aria-disabled",Wt.disabled.toString()),e.ekj("mdc-list-item--selected",Wt.selected)("mat-mdc-option-multiple",Wt.multiple)("mat-mdc-option-active",Wt.active)("mdc-list-item--disabled",Wt.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:mt,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(He,Wt){1&He&&(e.F$t(Re),e.YNc(0,oe,1,2,"mat-pseudo-checkbox",0),e.Hsn(1),e.TgZ(2,"span",1,2),e.Hsn(4,1),e.qZA(),e.YNc(5,ce,1,1,"mat-pseudo-checkbox",3),e.YNc(6,_e,2,1,"span",4),e._UZ(7,"div",5)),2&He&&(e.Q6J("ngIf",Wt.multiple),e.xp6(5),e.Q6J("ngIf",!Wt.multiple&&Wt.selected&&!Wt.hideSingleSelectionIndicator),e.xp6(1),e.Q6J("ngIf",Wt.group&&Wt.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Wt._getHostElement())("matRippleDisabled",Wt.disabled||Wt.disableRipple))},dependencies:[ae,S.O5,ot],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return ze})();function oi(ze,be,Te){if(Te.length){let He=be.toArray(),Wt=Te.toArray(),Pn=0;for(let wt=0;wtTe+He?Math.max(0,ze-He+be):Te}let qt=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[Oe,S.ez,St,Se]})}return ze})();const _t={capture:!0},G=["focus","click","mouseenter","touchstart"],U="mat-ripple-loader-uninitialized",ve="mat-ripple-loader-class-name",Pe="mat-ripple-loader-centered",ut="mat-ripple-loader-disabled";let We=(()=>{class ze{constructor(){this._document=(0,e.f3M)(S.K0,{optional:!0}),this._animationMode=(0,e.f3M)(e.QbO,{optional:!0}),this._globalRippleOptions=(0,e.f3M)(J,{optional:!0}),this._platform=(0,e.f3M)(w.t4),this._ngZone=(0,e.f3M)(e.R0b),this._onInteraction=Te=>{if(!(Te.target instanceof HTMLElement))return;const Wt=Te.target.closest(`[${U}]`);Wt&&this.createRipple(Wt)},this._ngZone.runOutsideAngular(()=>{for(const Te of G)this._document?.addEventListener(Te,this._onInteraction,_t)})}ngOnDestroy(){for(const Te of G)this._document?.removeEventListener(Te,this._onInteraction,_t)}configureRipple(Te,He){Te.setAttribute(U,""),(He.className||!Te.hasAttribute(ve))&&Te.setAttribute(ve,He.className||""),He.centered&&Te.setAttribute(Pe,""),He.disabled&&Te.setAttribute(ut,"")}getRipple(Te){return Te.matRipple?Te.matRipple:this.createRipple(Te)}setDisabled(Te,He){const Wt=Te.matRipple;Wt?Wt.disabled=He:He?Te.setAttribute(ut,""):Te.removeAttribute(ut)}createRipple(Te){if(!this._document)return;Te.querySelector(".mat-ripple")?.remove();const He=this._document.createElement("span");He.classList.add("mat-ripple",Te.getAttribute(ve)),Te.append(He);const Wt=new ae(new e.SBq(He),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return Wt._isInitialized=!0,Wt.trigger=Te,Wt.centered=Te.hasAttribute(Pe),Wt.disabled=Te.hasAttribute(ut),this.attachRipple(Te,Wt),Wt}attachRipple(Te,He){Te.removeAttribute(U),Te.matRipple=He}static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})()},7700:(ft,Ie,C)=>{"use strict";C.d(Ie,{WI:()=>bt,uw:()=>ei,H8:()=>Ce,ZT:()=>Ve,xY:()=>Ct,Is:()=>ae,so:()=>Ze,uh:()=>ct});var e=C(3651),l=C(6814),D=C(5879),I=C(4300),S=C(2831),w=C(8484),n=C(6028),Z=C(8645),ee=C(4911),re=C(2096),ue=C(9388),se=C(7921);function te(Se,Ft){}class oe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let _e=(()=>{class Se extends w.en{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(),this._elementRef=lt,this._focusTrapFactory=Bt,this._config=fn,this._interactivityChecker=gn,this._ngZone=An,this._overlayRef=jn,this._focusMonitor=ai,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=di=>{this._portalOutlet.hasAttached();const oi=this._portalOutlet.attachDomPortal(di);return this._contentAttached(),oi},this._document=Ut,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(lt){this._portalOutlet.hasAttached();const Bt=this._portalOutlet.attachComponentPortal(lt);return this._contentAttached(),Bt}attachTemplatePortal(lt){this._portalOutlet.hasAttached();const Bt=this._portalOutlet.attachTemplatePortal(lt);return this._contentAttached(),Bt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(lt,Bt){this._interactivityChecker.isFocusable(lt)||(lt.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ut=()=>{lt.removeEventListener("blur",Ut),lt.removeEventListener("mousedown",Ut),lt.removeAttribute("tabindex")};lt.addEventListener("blur",Ut),lt.addEventListener("mousedown",Ut)})),lt.focus(Bt)}_focusByCssSelector(lt,Bt){let Ut=this._elementRef.nativeElement.querySelector(lt);Ut&&this._forceFocus(Ut,Bt)}_trapFocus(){const lt=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||lt.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Bt=>{Bt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const lt=this._config.restoreFocus;let Bt=null;if("string"==typeof lt?Bt=this._document.querySelector(lt):"boolean"==typeof lt?Bt=lt?this._elementFocusedBeforeDialogWasOpened:null:lt&&(Bt=lt),this._config.restoreFocus&&Bt&&"function"==typeof Bt.focus){const Ut=(0,S.ht)(),fn=this._elementRef.nativeElement;(!Ut||Ut===this._document.body||Ut===fn||fn.contains(Ut))&&(this._focusMonitor?(this._focusMonitor.focusVia(Bt,this._closeInteractionType),this._closeInteractionType=null):Bt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const lt=this._elementRef.nativeElement,Bt=(0,S.ht)();return lt===Bt||lt.contains(Bt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,S.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(oe),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["cdk-dialog-container"]],viewQuery:function(Bt,Ut){if(1&Bt&&D.Gf(w.Pl,7),2&Bt){let fn;D.iGM(fn=D.CRH())&&(Ut._portalOutlet=fn.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Bt,Ut){2&Bt&&D.uIk("id",Ut._config.id||null)("role",Ut._config.role)("aria-modal",Ut._config.ariaModal)("aria-labelledby",Ut._config.ariaLabel?null:Ut._ariaLabelledByQueue[0])("aria-label",Ut._config.ariaLabel)("aria-describedby",Ut._config.ariaDescribedBy||null)},features:[D.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Bt,Ut){1&Bt&&D.YNc(0,te,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return Se})();class Re{constructor(Ft,lt){this.overlayRef=Ft,this.config=lt,this.closed=new Z.x,this.disableClose=lt.disableClose,this.backdropClick=Ft.backdropClick(),this.keydownEvents=Ft.keydownEvents(),this.outsidePointerEvents=Ft.outsidePointerEvents(),this.id=lt.id,this.keydownEvents.subscribe(Bt=>{Bt.keyCode===n.hY&&!this.disableClose&&!(0,n.Vb)(Bt)&&(Bt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Ft.detachments().subscribe(()=>{!1!==lt.closeOnOverlayDetachments&&this.close()})}close(Ft,lt){if(this.containerInstance){const Bt=this.closed;this.containerInstance._closeInteractionType=lt?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),Bt.next(Ft),Bt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Ft="",lt=""){return this.overlayRef.updateSize({width:Ft,height:lt}),this}addPanelClass(Ft){return this.overlayRef.addPanelClass(Ft),this}removePanelClass(Ft){return this.overlayRef.removePanelClass(Ft),this}}const mt=new D.OlP("DialogScrollStrategy"),Ge=new D.OlP("DialogData"),Lt=new D.OlP("DefaultDialogConfig"),Tt={provide:mt,deps:[e.aV],useFactory:function je(Se){return()=>Se.scrollStrategies.block()}};let xt=0,St=(()=>{class Se{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(lt,Bt,Ut,fn,gn,An){this._overlay=lt,this._injector=Bt,this._defaultOptions=Ut,this._parentDialog=fn,this._overlayContainer=gn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z.x,this._afterOpenedAtThisLevel=new Z.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,ee.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,se.O)(void 0))),this._scrollStrategy=An}open(lt,Bt){(Bt={...this._defaultOptions||new oe,...Bt}).id=Bt.id||"cdk-dialog-"+xt++,Bt.id&&this.getDialogById(Bt.id);const fn=this._getOverlayConfig(Bt),gn=this._overlay.create(fn),An=new Re(gn,Bt),jn=this._attachContainer(gn,An,Bt);return An.containerInstance=jn,this._attachDialogContent(lt,An,jn,Bt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(An),An.closed.subscribe(()=>this._removeOpenDialog(An,!0)),this.afterOpened.next(An),An}closeAll(){Zt(this.openDialogs,lt=>lt.close())}getDialogById(lt){return this.openDialogs.find(Bt=>Bt.id===lt)}ngOnDestroy(){Zt(this._openDialogsAtThisLevel,lt=>{!1===lt.config.closeOnDestroy&&this._removeOpenDialog(lt,!1)}),Zt(this._openDialogsAtThisLevel,lt=>lt.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(lt){const Bt=new e.X_({positionStrategy:lt.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:lt.scrollStrategy||this._scrollStrategy(),panelClass:lt.panelClass,hasBackdrop:lt.hasBackdrop,direction:lt.direction,minWidth:lt.minWidth,minHeight:lt.minHeight,maxWidth:lt.maxWidth,maxHeight:lt.maxHeight,width:lt.width,height:lt.height,disposeOnNavigation:lt.closeOnNavigation});return lt.backdropClass&&(Bt.backdropClass=lt.backdropClass),Bt}_attachContainer(lt,Bt,Ut){const fn=Ut.injector||Ut.viewContainerRef?.injector,gn=[{provide:oe,useValue:Ut},{provide:Re,useValue:Bt},{provide:e.Iu,useValue:lt}];let An;Ut.container?"function"==typeof Ut.container?An=Ut.container:(An=Ut.container.type,gn.push(...Ut.container.providers(Ut))):An=_e;const jn=new w.C5(An,Ut.viewContainerRef,D.zs3.create({parent:fn||this._injector,providers:gn}),Ut.componentFactoryResolver);return lt.attach(jn).instance}_attachDialogContent(lt,Bt,Ut,fn){if(lt instanceof D.Rgc){const gn=this._createInjector(fn,Bt,Ut,void 0);let An={$implicit:fn.data,dialogRef:Bt};fn.templateContext&&(An={...An,..."function"==typeof fn.templateContext?fn.templateContext():fn.templateContext}),Ut.attachTemplatePortal(new w.UE(lt,null,An,gn))}else{const gn=this._createInjector(fn,Bt,Ut,this._injector),An=Ut.attachComponentPortal(new w.C5(lt,fn.viewContainerRef,gn,fn.componentFactoryResolver));Bt.componentRef=An,Bt.componentInstance=An.instance}}_createInjector(lt,Bt,Ut,fn){const gn=lt.injector||lt.viewContainerRef?.injector,An=[{provide:Ge,useValue:lt.data},{provide:Re,useValue:Bt}];return lt.providers&&("function"==typeof lt.providers?An.push(...lt.providers(Bt,lt,Ut)):An.push(...lt.providers)),lt.direction&&(!gn||!gn.get(ue.Is,null,{optional:!0}))&&An.push({provide:ue.Is,useValue:{value:lt.direction,change:(0,re.of)()}}),D.zs3.create({parent:gn||fn,providers:An})}_removeOpenDialog(lt,Bt){const Ut=this.openDialogs.indexOf(lt);Ut>-1&&(this.openDialogs.splice(Ut,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((fn,gn)=>{fn?gn.setAttribute("aria-hidden",fn):gn.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Bt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const lt=this._overlayContainer.getContainerElement();if(lt.parentElement){const Bt=lt.parentElement.children;for(let Ut=Bt.length-1;Ut>-1;Ut--){const fn=Bt[Ut];fn!==lt&&"SCRIPT"!==fn.nodeName&&"STYLE"!==fn.nodeName&&!fn.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(fn,fn.getAttribute("aria-hidden")),fn.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const lt=this._parentDialog;return lt?lt._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.LFG(e.aV),D.LFG(D.zs3),D.LFG(Lt,8),D.LFG(Se,12),D.LFG(e.Xj),D.LFG(mt))};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})();function Zt(Se,Ft){let lt=Se.length;for(;lt--;)Ft(Se[lt])}let yt=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275mod=D.oAB({type:Se});static#n=this.\u0275inj=D.cJS({providers:[St,Tt],imports:[e.U8,w.eL,I.rt,w.eL]})}return Se})();var un=C(2605),Jt=C(3019),tn=C(2181),wn=C(8180),Ln=C(3680);function ti(Se,Ft){}C(6825);class gi{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Rn="mdc-dialog--open",dt="mdc-dialog--opening",at="mdc-dialog--closing";let $e=(()=>{class Se extends _e{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(lt,Bt,Ut,fn,gn,An,jn,ai),this._animationStateChanged=new D.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(lt){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:lt})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(gi),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["ng-component"]],features:[D.qOj],decls:0,vars:0,template:function(Bt,Ut){},encapsulation:2})}return Se})();const me="--mat-dialog-transition-duration";function tt(Se){return null==Se?null:"number"==typeof Se?Se:Se.endsWith("ms")?(0,un.su)(Se.substring(0,Se.length-2)):Se.endsWith("s")?1e3*(0,un.su)(Se.substring(0,Se.length-1)):"0"===Se?0:null}let he=(()=>{class Se extends $e{constructor(lt,Bt,Ut,fn,gn,An,jn,ai,di){super(lt,Bt,Ut,fn,gn,An,jn,di),this._animationMode=ai,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?tt(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?tt(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(me,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dt,Rn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Rn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Rn),this._animationsEnabled?(this._hostElement.style.setProperty(me,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(at)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(dt,at)}_waitForAnimationToComplete(lt,Bt){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Bt,lt)}_requestAnimationFrame(lt){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(lt):lt()})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(gi),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(D.QbO,8),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Bt,Ut){2&Bt&&(D.Ikx("id",Ut._config.id),D.uIk("aria-modal",Ut._config.ariaModal)("role",Ut._config.role)("aria-labelledby",Ut._config.ariaLabel?null:Ut._ariaLabelledByQueue[0])("aria-label",Ut._config.ariaLabel)("aria-describedby",Ut._config.ariaDescribedBy||null),D.ekj("_mat-animation-noopable",!Ut._animationsEnabled))},features:[D.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Bt,Ut){1&Bt&&(D.TgZ(0,"div",0)(1,"div",1),D.YNc(2,ti,0,0,"ng-template",2),D.qZA()())},dependencies:[w.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return Se})();class Ze{constructor(Ft,lt,Bt){this._ref=Ft,this._containerInstance=Bt,this._afterOpened=new Z.x,this._beforeClosed=new Z.x,this._state=0,this.disableClose=lt.disableClose,this.id=Ft.id,Bt._animationStateChanged.pipe((0,tn.h)(Ut=>"opened"===Ut.state),(0,wn.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Bt._animationStateChanged.pipe((0,tn.h)(Ut=>"closed"===Ut.state),(0,wn.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ft.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Jt.T)(this.backdropClick(),this.keydownEvents().pipe((0,tn.h)(Ut=>Ut.keyCode===n.hY&&!this.disableClose&&!(0,n.Vb)(Ut)))).subscribe(Ut=>{this.disableClose||(Ut.preventDefault(),rt(this,"keydown"===Ut.type?"keyboard":"mouse"))})}close(Ft){this._result=Ft,this._containerInstance._animationStateChanged.pipe((0,tn.h)(lt=>"closing"===lt.state),(0,wn.q)(1)).subscribe(lt=>{this._beforeClosed.next(Ft),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),lt.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Ft){let lt=this._ref.config.positionStrategy;return Ft&&(Ft.left||Ft.right)?Ft.left?lt.left(Ft.left):lt.right(Ft.right):lt.centerHorizontally(),Ft&&(Ft.top||Ft.bottom)?Ft.top?lt.top(Ft.top):lt.bottom(Ft.bottom):lt.centerVertically(),this._ref.updatePosition(),this}updateSize(Ft="",lt=""){return this._ref.updateSize(Ft,lt),this}addPanelClass(Ft){return this._ref.addPanelClass(Ft),this}removePanelClass(Ft){return this._ref.removePanelClass(Ft),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function rt(Se,Ft,lt){return Se._closeInteractionType=Ft,Se.close(lt)}const bt=new D.OlP("MatMdcDialogData"),Nt=new D.OlP("mat-mdc-dialog-default-options"),Qt=new D.OlP("mat-mdc-dialog-scroll-strategy"),Dn={provide:Qt,deps:[e.aV],useFactory:function nn(Se){return()=>Se.scrollStrategies.block()}};let rn=0,vn=(()=>{class Se{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const lt=this._parentDialog;return lt?lt._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(lt,Bt,Ut,fn,gn,An,jn,ai,di,oi){this._overlay=lt,this._defaultOptions=Ut,this._parentDialog=fn,this._dialogRefConstructor=jn,this._dialogContainerType=ai,this._dialogDataToken=di,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z.x,this._afterOpenedAtThisLevel=new Z.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=gi,this.afterAllClosed=(0,ee.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,se.O)(void 0))),this._scrollStrategy=An,this._dialog=Bt.get(St)}open(lt,Bt){let Ut;(Bt={...this._defaultOptions||new gi,...Bt}).id=Bt.id||`${this._idPrefix}${rn++}`,Bt.scrollStrategy=Bt.scrollStrategy||this._scrollStrategy();const fn=this._dialog.open(lt,{...Bt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Bt},{provide:oe,useValue:Bt}]},templateContext:()=>({dialogRef:Ut}),providers:(gn,An,jn)=>(Ut=new this._dialogRefConstructor(gn,Bt,jn),Ut.updatePosition(Bt?.position),[{provide:this._dialogContainerType,useValue:jn},{provide:this._dialogDataToken,useValue:An.data},{provide:this._dialogRefConstructor,useValue:Ut}])});return Ut.componentRef=fn.componentRef,Ut.componentInstance=fn.componentInstance,this.openDialogs.push(Ut),this.afterOpened.next(Ut),Ut.afterClosed().subscribe(()=>{const gn=this.openDialogs.indexOf(Ut);gn>-1&&(this.openDialogs.splice(gn,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ut}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(lt){return this.openDialogs.find(Bt=>Bt.id===lt)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(lt){let Bt=lt.length;for(;Bt--;)lt[Bt].close()}static#e=this.\u0275fac=function(Bt){D.$Z()};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})(),ei=(()=>{class Se extends vn{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(lt,Bt,fn,An,jn,gn,Ze,he,bt,ai),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.LFG(e.aV),D.LFG(D.zs3),D.LFG(l.Ye,8),D.LFG(Nt,8),D.LFG(Qt),D.LFG(Se,12),D.LFG(e.Xj),D.LFG(D.QbO,8))};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})(),Wn=0,Ve=(()=>{class Se{constructor(lt,Bt,Ut){this.dialogRef=lt,this._elementRef=Bt,this._dialog=Ut,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=J(this._elementRef,this._dialog.openDialogs))}ngOnChanges(lt){const Bt=lt._matDialogClose||lt._matDialogCloseResult;Bt&&(this.dialogResult=Bt.currentValue)}_onButtonClick(lt){rt(this.dialogRef,0===lt.screenX&&0===lt.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(Ze,8),D.Y36(D.SBq),D.Y36(ei))};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Bt,Ut){1&Bt&&D.NdJ("click",function(gn){return Ut._onButtonClick(gn)}),2&Bt&&D.uIk("aria-label",Ut.ariaLabel||null)("type",Ut.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[D.TTD]})}return Se})(),ct=(()=>{class Se{constructor(lt,Bt,Ut){this._dialogRef=lt,this._elementRef=Bt,this._dialog=Ut,this.id="mat-mdc-dialog-title-"+Wn++}ngOnInit(){this._dialogRef||(this._dialogRef=J(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const lt=this._dialogRef?._containerInstance?._ariaLabelledByQueue;lt&&Promise.resolve().then(()=>{const Bt=lt.indexOf(this.id);Bt>-1&<.splice(Bt,1)})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(Ze,8),D.Y36(D.SBq),D.Y36(ei))};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(Bt,Ut){2&Bt&&D.Ikx("id",Ut.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return Se})(),Ct=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return Se})(),Ce=(()=>{class Se{constructor(){this.align="start"}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(Bt,Ut){2&Bt&&D.ekj("mat-mdc-dialog-actions-align-center","center"===Ut.align)("mat-mdc-dialog-actions-align-end","end"===Ut.align)},inputs:{align:"align"}})}return Se})();function J(Se,Ft){let lt=Se.nativeElement.parentElement;for(;lt&&!lt.classList.contains("mat-mdc-dialog-container");)lt=lt.parentElement;return lt?Ft.find(Bt=>Bt.id===lt.id):null}let ae=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275mod=D.oAB({type:Se});static#n=this.\u0275inj=D.cJS({providers:[ei,Dn],imports:[yt,e.U8,w.eL,Ln.BQ,Ln.BQ]})}return Se})()},9157:(ft,Ie,C)=>{"use strict";C.d(Ie,{G_:()=>fn,KE:()=>Jn,Eo:()=>Ft,lN:()=>qt,hX:()=>Nt});var e=C(5879),l=C(9388),D=C(2831),I=C(7394),S=C(8645),w=C(3019),n=C(9773),Z=C(5592),ee=C(2181),re=C(4552);class ue extends S.x{constructor(G=1/0,U=1/0,ve=re.l){super(),this._bufferSize=G,this._windowTime=U,this._timestampProvider=ve,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=U===1/0,this._bufferSize=Math.max(1,G),this._windowTime=Math.max(1,U)}next(G){const{isStopped:U,_buffer:ve,_infiniteTimeWindow:Pe,_timestampProvider:ut,_windowTime:We}=this;U||(ve.push(G),!Pe&&ve.push(ut.now()+We)),this._trimBuffer(),super.next(G)}_subscribe(G){this._throwIfClosed(),this._trimBuffer();const U=this._innerSubscribe(G),{_infiniteTimeWindow:ve,_buffer:Pe}=this,ut=Pe.slice();for(let We=0;Wethis._resizeSubject.next(U)))}observe(G){return this._elementObservables.has(G)||this._elementObservables.set(G,new Z.y(U=>{const ve=this._resizeSubject.subscribe(U);return this._resizeObserver?.observe(G,{box:this._box}),()=>{this._resizeObserver?.unobserve(G),ve.unsubscribe(),this._elementObservables.delete(G)}}).pipe((0,ee.h)(U=>U.some(ve=>ve.target===G)),function te(_t,G,U){let ve,Pe=!1;return _t&&"object"==typeof _t?({bufferSize:ve=1/0,windowTime:G=1/0,refCount:Pe=!1,scheduler:U}=_t):ve=_t??1/0,(0,se.B)({connector:()=>new ue(ve,G,U),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Pe})}({bufferSize:1,refCount:!0}),(0,n.R)(this._destroyed))),this._elementObservables.get(G)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let _e=(()=>{class _t{constructor(){this._observers=new Map,this._ngZone=(0,e.f3M)(e.R0b)}ngOnDestroy(){for(const[,U]of this._observers)U.destroy();this._observers.clear()}observe(U,ve){const Pe=ve?.box||"content-box";return this._observers.has(Pe)||this._observers.set(Pe,new ce(Pe)),this._observers.get(Pe).observe(U)}static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275prov=e.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();var Re=C(2605),mt=C(6825),Ge=C(6814),Lt=C(7131),je=C(3680);const Tt=["notch"],xt=["matFormFieldNotchedOutline",""],St=["*"],Zt=["textField"],yt=["iconPrefixContainer"],un=["textPrefixContainer"];function Jt(_t,G){1&_t&&e._UZ(0,"span",19)}function tn(_t,G){if(1&_t&&(e.TgZ(0,"label",17),e.Hsn(1,1),e.YNc(2,Jt,1,0,"span",18),e.qZA()),2&_t){const U=e.oxw(2);e.Q6J("floating",U._shouldLabelFloat())("monitorResize",U._hasOutline())("id",U._labelId),e.uIk("for",U._control.id),e.xp6(2),e.Q6J("ngIf",!U.hideRequiredMarker&&U._control.required)}}function wn(_t,G){if(1&_t&&e.YNc(0,tn,3,5,"label",16),2&_t){const U=e.oxw();e.Q6J("ngIf",U._hasFloatingLabel())}}function Ln(_t,G){1&_t&&e._UZ(0,"div",20)}function Yn(_t,G){}function ti(_t,G){if(1&_t&&e.YNc(0,Yn,0,0,"ng-template",22),2&_t){e.oxw(2);const U=e.MAs(1);e.Q6J("ngTemplateOutlet",U)}}function gi(_t,G){if(1&_t&&(e.TgZ(0,"div",21),e.YNc(1,ti,1,1,"ng-template",9),e.qZA()),2&_t){const U=e.oxw();e.Q6J("matFormFieldNotchedOutlineOpen",U._shouldLabelFloat()),e.xp6(1),e.Q6J("ngIf",!U._forceDisplayInfixLabel())}}function Rn(_t,G){1&_t&&(e.TgZ(0,"div",23,24),e.Hsn(2,2),e.qZA())}function dt(_t,G){1&_t&&(e.TgZ(0,"div",25,26),e.Hsn(2,3),e.qZA())}function at(_t,G){}function Be(_t,G){if(1&_t&&e.YNc(0,at,0,0,"ng-template",22),2&_t){e.oxw();const U=e.MAs(1);e.Q6J("ngTemplateOutlet",U)}}function Ee(_t,G){1&_t&&(e.TgZ(0,"div",27),e.Hsn(1,4),e.qZA())}function $e(_t,G){1&_t&&(e.TgZ(0,"div",28),e.Hsn(1,5),e.qZA())}function me(_t,G){1&_t&&e._UZ(0,"div",29)}function tt(_t,G){if(1&_t&&(e.TgZ(0,"div",30),e.Hsn(1,6),e.qZA()),2&_t){const U=e.oxw();e.Q6J("@transitionMessages",U._subscriptAnimationState)}}function he(_t,G){if(1&_t&&(e.TgZ(0,"mat-hint",34),e._uU(1),e.qZA()),2&_t){const U=e.oxw(2);e.Q6J("id",U._hintLabelId),e.xp6(1),e.Oqu(U.hintLabel)}}function Ze(_t,G){if(1&_t&&(e.TgZ(0,"div",31),e.YNc(1,he,2,2,"mat-hint",32),e.Hsn(2,7),e._UZ(3,"div",33),e.Hsn(4,8),e.qZA()),2&_t){const U=e.oxw();e.Q6J("@transitionMessages",U._subscriptAnimationState),e.xp6(1),e.Q6J("ngIf",U.hintLabel)}}const rt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Nt=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["mat-label"]]})}return _t})();const nn=new e.OlP("MatError");let Ot=0,rn=(()=>{class _t{constructor(){this.align="start",this.id="mat-mdc-hint-"+Ot++}static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(ve,Pe){2&ve&&(e.Ikx("id",Pe.id),e.uIk("align",null),e.ekj("mat-mdc-form-field-hint-end","end"===Pe.align))},inputs:{align:"align",id:"id"}})}return _t})();const vn=new e.OlP("MatPrefix"),Wn=new e.OlP("MatSuffix"),ct=new e.OlP("FloatingLabelParent");let Ct=(()=>{class _t{get floating(){return this._floating}set floating(U){this._floating=U,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(U){this._monitorResize=U,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(U){this._elementRef=U,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,e.f3M)(_e),this._ngZone=(0,e.f3M)(e.R0b),this._parent=(0,e.f3M)(ct),this._resizeSubscription=new I.w0}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Ce(_t){if(null!==_t.offsetParent)return _t.scrollWidth;const U=_t.cloneNode(!0);U.style.setProperty("position","absolute"),U.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(U);const ve=U.scrollWidth;return U.remove(),ve}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(ve,Pe){2&ve&&e.ekj("mdc-floating-label--float-above",Pe.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return _t})();const J="mdc-line-ripple--active",ae="mdc-line-ripple--deactivating";let Oe=(()=>{class _t{constructor(U,ve){this._elementRef=U,this._handleTransitionEnd=Pe=>{const ut=this._elementRef.nativeElement.classList,We=ut.contains(ae);"opacity"===Pe.propertyName&&We&&ut.remove(J,ae)},ve.runOutsideAngular(()=>{U.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const U=this._elementRef.nativeElement.classList;U.remove(ae),U.add(J)}deactivate(){this._elementRef.nativeElement.classList.add(ae)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return _t})(),ot=(()=>{class _t{constructor(U,ve){this._elementRef=U,this._ngZone=ve,this.open=!1}ngAfterViewInit(){const U=this._elementRef.nativeElement.querySelector(".mdc-floating-label");U?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(U.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>U.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(U){this._notch.nativeElement.style.width=this.open&&U?`calc(${U}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275cmp=e.Xpm({type:_t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(ve,Pe){if(1&ve&&e.Gf(Tt,5),2&ve){let ut;e.iGM(ut=e.CRH())&&(Pe._notch=ut.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(ve,Pe){2&ve&&e.ekj("mdc-notched-outline--notched",Pe.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:xt,ngContentSelectors:St,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(ve,Pe){1&ve&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1,2),e.Hsn(3),e.qZA(),e._UZ(4,"div",3))},encapsulation:2,changeDetection:0})}return _t})();const Se={transitionMessages:(0,mt.X$)("transitionMessages",[(0,mt.SB)("enter",(0,mt.oB)({opacity:1,transform:"translateY(0%)"})),(0,mt.eR)("void => enter",[(0,mt.oB)({opacity:0,transform:"translateY(-5px)"}),(0,mt.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ft=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t})}return _t})();const fn=new e.OlP("MatFormField"),gn=new e.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let An=0,Jn=(()=>{class _t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(U){this._hideRequiredMarker=(0,Re.Ig)(U)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(U){U!==this._floatLabel&&(this._floatLabel=U,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(U){const ve=this._appearance;this._appearance=U||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==ve&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(U){this._subscriptSizing=U||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(U){this._hintLabel=U,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(U){this._explicitFormFieldControl=U}constructor(U,ve,Pe,ut,We,ze,be,Te){this._elementRef=U,this._changeDetectorRef=ve,this._ngZone=Pe,this._dir=ut,this._platform=We,this._defaults=ze,this._animationMode=be,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+An++,this._hintLabelId="mat-mdc-hint-"+An++,this._subscriptAnimationState="",this._destroyed=new S.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,ze&&(ze.appearance&&(this.appearance=ze.appearance),this._hideRequiredMarker=!!ze?.hideRequiredMarker,ze.color&&(this.color=ze.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const U=this._control;U.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${U.controlType}`),U.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),U.ngControl&&U.ngControl.valueChanges&&U.ngControl.valueChanges.pipe((0,n.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(U=>!U._isText),this._hasTextPrefix=!!this._prefixChildren.find(U=>U._isText),this._hasIconSuffix=!!this._suffixChildren.find(U=>!U._isText),this._hasTextSuffix=!!this._suffixChildren.find(U=>U._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,w.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,n.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,n.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(U){const ve=this._control?this._control.ngControl:null;return ve&&ve[U]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let U=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&U.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ve=this._hintChildren?this._hintChildren.find(ut=>"start"===ut.align):null,Pe=this._hintChildren?this._hintChildren.find(ut=>"end"===ut.align):null;ve?U.push(ve.id):this._hintLabel&&U.push(this._hintLabelId),Pe&&U.push(Pe.id)}else this._errorChildren&&U.push(...this._errorChildren.map(ve=>ve.id));this._control.setDescribedByIds(U)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const U=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(U.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const ve=this._iconPrefixContainer?.nativeElement,Pe=this._textPrefixContainer?.nativeElement,ut=ve?.getBoundingClientRect().width??0,We=Pe?.getBoundingClientRect().width??0;U.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${ut+We}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const U=this._elementRef.nativeElement;if(U.getRootNode){const ve=U.getRootNode();return ve&&ve!==U}return document.documentElement.contains(U)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(l.Is),e.Y36(D.t4),e.Y36(gn,8),e.Y36(e.QbO,8),e.Y36(Ge.K0))};static#t=this.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-form-field"]],contentQueries:function(ve,Pe,ut){if(1&ve&&(e.Suo(ut,Nt,5),e.Suo(ut,Nt,7),e.Suo(ut,Ft,5),e.Suo(ut,vn,5),e.Suo(ut,Wn,5),e.Suo(ut,nn,5),e.Suo(ut,rn,5)),2&ve){let We;e.iGM(We=e.CRH())&&(Pe._labelChildNonStatic=We.first),e.iGM(We=e.CRH())&&(Pe._labelChildStatic=We.first),e.iGM(We=e.CRH())&&(Pe._formFieldControl=We.first),e.iGM(We=e.CRH())&&(Pe._prefixChildren=We),e.iGM(We=e.CRH())&&(Pe._suffixChildren=We),e.iGM(We=e.CRH())&&(Pe._errorChildren=We),e.iGM(We=e.CRH())&&(Pe._hintChildren=We)}},viewQuery:function(ve,Pe){if(1&ve&&(e.Gf(Zt,5),e.Gf(yt,5),e.Gf(un,5),e.Gf(Ct,5),e.Gf(ot,5),e.Gf(Oe,5)),2&ve){let ut;e.iGM(ut=e.CRH())&&(Pe._textField=ut.first),e.iGM(ut=e.CRH())&&(Pe._iconPrefixContainer=ut.first),e.iGM(ut=e.CRH())&&(Pe._textPrefixContainer=ut.first),e.iGM(ut=e.CRH())&&(Pe._floatingLabel=ut.first),e.iGM(ut=e.CRH())&&(Pe._notchedOutline=ut.first),e.iGM(ut=e.CRH())&&(Pe._lineRipple=ut.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(ve,Pe){2&ve&&e.ekj("mat-mdc-form-field-label-always-float",Pe._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Pe._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Pe._hasIconSuffix)("mat-form-field-invalid",Pe._control.errorState)("mat-form-field-disabled",Pe._control.disabled)("mat-form-field-autofilled",Pe._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Pe._animationMode)("mat-form-field-appearance-fill","fill"==Pe.appearance)("mat-form-field-appearance-outline","outline"==Pe.appearance)("mat-form-field-hide-placeholder",Pe._hasFloatingLabel()&&!Pe._shouldLabelFloat())("mat-focused",Pe._control.focused)("mat-primary","accent"!==Pe.color&&"warn"!==Pe.color)("mat-accent","accent"===Pe.color)("mat-warn","warn"===Pe.color)("ng-untouched",Pe._shouldForward("untouched"))("ng-touched",Pe._shouldForward("touched"))("ng-pristine",Pe._shouldForward("pristine"))("ng-dirty",Pe._shouldForward("dirty"))("ng-valid",Pe._shouldForward("valid"))("ng-invalid",Pe._shouldForward("invalid"))("ng-pending",Pe._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e._Bn([{provide:fn,useExisting:_t},{provide:ct,useExisting:_t}])],ngContentSelectors:bt,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(ve,Pe){1&ve&&(e.F$t(rt),e.YNc(0,wn,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.NdJ("click",function(We){return Pe._control.onContainerClick(We)}),e.YNc(4,Ln,1,0,"div",3),e.TgZ(5,"div",4),e.YNc(6,gi,2,2,"div",5),e.YNc(7,Rn,3,0,"div",6),e.YNc(8,dt,3,0,"div",7),e.TgZ(9,"div",8),e.YNc(10,Be,1,1,"ng-template",9),e.Hsn(11),e.qZA(),e.YNc(12,Ee,2,0,"div",10),e.YNc(13,$e,2,0,"div",11),e.qZA(),e.YNc(14,me,1,0,"div",12),e.qZA(),e.TgZ(15,"div",13),e.YNc(16,tt,2,1,"div",14),e.YNc(17,Ze,5,2,"div",15),e.qZA()),2&ve&&(e.xp6(2),e.ekj("mdc-text-field--filled",!Pe._hasOutline())("mdc-text-field--outlined",Pe._hasOutline())("mdc-text-field--no-label",!Pe._hasFloatingLabel())("mdc-text-field--disabled",Pe._control.disabled)("mdc-text-field--invalid",Pe._control.errorState),e.xp6(2),e.Q6J("ngIf",!Pe._hasOutline()&&!Pe._control.disabled),e.xp6(2),e.Q6J("ngIf",Pe._hasOutline()),e.xp6(1),e.Q6J("ngIf",Pe._hasIconPrefix),e.xp6(1),e.Q6J("ngIf",Pe._hasTextPrefix),e.xp6(2),e.Q6J("ngIf",!Pe._hasOutline()||Pe._forceDisplayInfixLabel()),e.xp6(2),e.Q6J("ngIf",Pe._hasTextSuffix),e.xp6(1),e.Q6J("ngIf",Pe._hasIconSuffix),e.xp6(1),e.Q6J("ngIf",!Pe._hasOutline()),e.xp6(1),e.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Pe.subscriptSizing),e.Q6J("ngSwitch",Pe._getDisplayedMessages()),e.xp6(1),e.Q6J("ngSwitchCase","error"),e.xp6(1),e.Q6J("ngSwitchCase","hint"))},dependencies:[Ge.O5,Ge.tP,Ge.RF,Ge.n9,rn,Ct,ot,Oe],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Se.transitionMessages]},changeDetection:0})}return _t})(),qt=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275mod=e.oAB({type:_t});static#n=this.\u0275inj=e.cJS({imports:[je.BQ,Ge.ez,Lt.Q8,je.BQ]})}return _t})()},617:(ft,Ie,C)=>{"use strict";C.d(Ie,{Hw:()=>Ee,Ps:()=>$e});var e=C(5879),l=C(3680),D=C(2605),I=C(6814),S=C(2096),w=C(8504),n=C(9315),Z=C(7394),ee=C(9397),re=C(7398),ue=C(6306),se=C(4716),te=C(3020),oe=C(8180),ce=C(9862),_e=C(6593);const Re=["*"];let mt;function Lt(me){return function Ge(){if(void 0===mt&&(mt=null,typeof window<"u")){const me=window;void 0!==me.trustedTypes&&(mt=me.trustedTypes.createPolicy("angular#components",{createHTML:tt=>tt}))}return mt}()?.createHTML(me)||me}function je(me){return Error(`Unable to find icon with the name "${me}"`)}function xt(me){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${me}".`)}function St(me){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${me}".`)}class Zt{constructor(tt,he,Ze){this.url=tt,this.svgText=he,this.options=Ze}}let yt=(()=>{class me{constructor(he,Ze,rt,bt){this._httpClient=he,this._sanitizer=Ze,this._errorHandler=bt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=rt}addSvgIcon(he,Ze,rt){return this.addSvgIconInNamespace("",he,Ze,rt)}addSvgIconLiteral(he,Ze,rt){return this.addSvgIconLiteralInNamespace("",he,Ze,rt)}addSvgIconInNamespace(he,Ze,rt,bt){return this._addSvgIconConfig(he,Ze,new Zt(rt,null,bt))}addSvgIconResolver(he){return this._resolvers.push(he),this}addSvgIconLiteralInNamespace(he,Ze,rt,bt){const Nt=this._sanitizer.sanitize(e.q3G.HTML,rt);if(!Nt)throw St(rt);const Qt=Lt(Nt);return this._addSvgIconConfig(he,Ze,new Zt("",Qt,bt))}addSvgIconSet(he,Ze){return this.addSvgIconSetInNamespace("",he,Ze)}addSvgIconSetLiteral(he,Ze){return this.addSvgIconSetLiteralInNamespace("",he,Ze)}addSvgIconSetInNamespace(he,Ze,rt){return this._addSvgIconSetConfig(he,new Zt(Ze,null,rt))}addSvgIconSetLiteralInNamespace(he,Ze,rt){const bt=this._sanitizer.sanitize(e.q3G.HTML,Ze);if(!bt)throw St(Ze);const Nt=Lt(bt);return this._addSvgIconSetConfig(he,new Zt("",Nt,rt))}registerFontClassAlias(he,Ze=he){return this._fontCssClassesByAlias.set(he,Ze),this}classNameForFontAlias(he){return this._fontCssClassesByAlias.get(he)||he}setDefaultFontSetClass(...he){return this._defaultFontSetClass=he,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(he){const Ze=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,he);if(!Ze)throw xt(he);const rt=this._cachedIconsByUrl.get(Ze);return rt?(0,S.of)(tn(rt)):this._loadSvgIconFromConfig(new Zt(he,null)).pipe((0,ee.b)(bt=>this._cachedIconsByUrl.set(Ze,bt)),(0,re.U)(bt=>tn(bt)))}getNamedSvgIcon(he,Ze=""){const rt=wn(Ze,he);let bt=this._svgIconConfigs.get(rt);if(bt)return this._getSvgFromConfig(bt);if(bt=this._getIconConfigFromResolvers(Ze,he),bt)return this._svgIconConfigs.set(rt,bt),this._getSvgFromConfig(bt);const Nt=this._iconSetConfigs.get(Ze);return Nt?this._getSvgFromIconSetConfigs(he,Nt):(0,w._)(je(rt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(he){return he.svgText?(0,S.of)(tn(this._svgElementFromConfig(he))):this._loadSvgIconFromConfig(he).pipe((0,re.U)(Ze=>tn(Ze)))}_getSvgFromIconSetConfigs(he,Ze){const rt=this._extractIconWithNameFromAnySet(he,Ze);if(rt)return(0,S.of)(rt);const bt=Ze.filter(Nt=>!Nt.svgText).map(Nt=>this._loadSvgIconSetFromConfig(Nt).pipe((0,ue.K)(Qt=>{const Dn=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Nt.url)} failed: ${Qt.message}`;return this._errorHandler.handleError(new Error(Dn)),(0,S.of)(null)})));return(0,n.D)(bt).pipe((0,re.U)(()=>{const Nt=this._extractIconWithNameFromAnySet(he,Ze);if(!Nt)throw je(he);return Nt}))}_extractIconWithNameFromAnySet(he,Ze){for(let rt=Ze.length-1;rt>=0;rt--){const bt=Ze[rt];if(bt.svgText&&bt.svgText.toString().indexOf(he)>-1){const Nt=this._svgElementFromConfig(bt),Qt=this._extractSvgIconFromSet(Nt,he,bt.options);if(Qt)return Qt}}return null}_loadSvgIconFromConfig(he){return this._fetchIcon(he).pipe((0,ee.b)(Ze=>he.svgText=Ze),(0,re.U)(()=>this._svgElementFromConfig(he)))}_loadSvgIconSetFromConfig(he){return he.svgText?(0,S.of)(null):this._fetchIcon(he).pipe((0,ee.b)(Ze=>he.svgText=Ze))}_extractSvgIconFromSet(he,Ze,rt){const bt=he.querySelector(`[id="${Ze}"]`);if(!bt)return null;const Nt=bt.cloneNode(!0);if(Nt.removeAttribute("id"),"svg"===Nt.nodeName.toLowerCase())return this._setSvgAttributes(Nt,rt);if("symbol"===Nt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Nt),rt);const Qt=this._svgElementFromString(Lt(""));return Qt.appendChild(Nt),this._setSvgAttributes(Qt,rt)}_svgElementFromString(he){const Ze=this._document.createElement("DIV");Ze.innerHTML=he;const rt=Ze.querySelector("svg");if(!rt)throw Error(" tag not found");return rt}_toSvgElement(he){const Ze=this._svgElementFromString(Lt("")),rt=he.attributes;for(let bt=0;btLt(Dn)),(0,se.x)(()=>this._inProgressUrlFetches.delete(Nt)),(0,te.B)());return this._inProgressUrlFetches.set(Nt,nn),nn}_addSvgIconConfig(he,Ze,rt){return this._svgIconConfigs.set(wn(he,Ze),rt),this}_addSvgIconSetConfig(he,Ze){const rt=this._iconSetConfigs.get(he);return rt?rt.push(Ze):this._iconSetConfigs.set(he,[Ze]),this}_svgElementFromConfig(he){if(!he.svgElement){const Ze=this._svgElementFromString(he.svgText);this._setSvgAttributes(Ze,he.options),he.svgElement=Ze}return he.svgElement}_getIconConfigFromResolvers(he,Ze){for(let rt=0;rttt?tt.pathname+tt.search:""}}}),dt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],at=dt.map(me=>`[${me}]`).join(", "),Be=/^url\(['"]?#(.*?)['"]?\)$/;let Ee=(()=>{class me extends Yn{get inline(){return this._inline}set inline(he){this._inline=(0,D.Ig)(he)}get svgIcon(){return this._svgIcon}set svgIcon(he){he!==this._svgIcon&&(he?this._updateSvgIcon(he):this._svgIcon&&this._clearSvgElement(),this._svgIcon=he)}get fontSet(){return this._fontSet}set fontSet(he){const Ze=this._cleanupFontValue(he);Ze!==this._fontSet&&(this._fontSet=Ze,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(he){const Ze=this._cleanupFontValue(he);Ze!==this._fontIcon&&(this._fontIcon=Ze,this._updateFontIconClasses())}constructor(he,Ze,rt,bt,Nt,Qt){super(he),this._iconRegistry=Ze,this._location=bt,this._errorHandler=Nt,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Z.w0.EMPTY,Qt&&(Qt.color&&(this.color=this.defaultColor=Qt.color),Qt.fontSet&&(this.fontSet=Qt.fontSet)),rt||he.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(he){if(!he)return["",""];const Ze=he.split(":");switch(Ze.length){case 1:return["",Ze[0]];case 2:return Ze;default:throw Error(`Invalid icon name: "${he}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const he=this._elementsWithExternalReferences;if(he&&he.size){const Ze=this._location.getPathname();Ze!==this._previousPath&&(this._previousPath=Ze,this._prependPathToReferences(Ze))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(he){this._clearSvgElement();const Ze=this._location.getPathname();this._previousPath=Ze,this._cacheChildrenWithExternalReferences(he),this._prependPathToReferences(Ze),this._elementRef.nativeElement.appendChild(he)}_clearSvgElement(){const he=this._elementRef.nativeElement;let Ze=he.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ze--;){const rt=he.childNodes[Ze];(1!==rt.nodeType||"svg"===rt.nodeName.toLowerCase())&&rt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const he=this._elementRef.nativeElement,Ze=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(rt=>rt.length>0);this._previousFontSetClass.forEach(rt=>he.classList.remove(rt)),Ze.forEach(rt=>he.classList.add(rt)),this._previousFontSetClass=Ze,this.fontIcon!==this._previousFontIconClass&&!Ze.includes("mat-ligature-font")&&(this._previousFontIconClass&&he.classList.remove(this._previousFontIconClass),this.fontIcon&&he.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(he){return"string"==typeof he?he.trim().split(" ")[0]:he}_prependPathToReferences(he){const Ze=this._elementsWithExternalReferences;Ze&&Ze.forEach((rt,bt)=>{rt.forEach(Nt=>{bt.setAttribute(Nt.name,`url('${he}#${Nt.value}')`)})})}_cacheChildrenWithExternalReferences(he){const Ze=he.querySelectorAll(at),rt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let bt=0;bt{const Qt=Ze[bt],nn=Qt.getAttribute(Nt),Dn=nn?nn.match(Be):null;if(Dn){let Ot=rt.get(Qt);Ot||(Ot=[],rt.set(Qt,Ot)),Ot.push({name:Nt,value:Dn[1]})}})}_updateSvgIcon(he){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),he){const[Ze,rt]=this._splitIconName(he);Ze&&(this._svgNamespace=Ze),rt&&(this._svgName=rt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(rt,Ze).pipe((0,oe.q)(1)).subscribe(bt=>this._setSvgElement(bt),bt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ze}:${rt}! ${bt.message}`))})}}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(e.Y36(e.SBq),e.Y36(yt),e.$8M("aria-hidden"),e.Y36(gi),e.Y36(e.qLn),e.Y36(ti,8))};static#t=this.\u0275cmp=e.Xpm({type:me,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Ze,rt){2&Ze&&(e.uIk("data-mat-icon-type",rt._usingFontIcon()?"font":"svg")("data-mat-icon-name",rt._svgName||rt.fontIcon)("data-mat-icon-namespace",rt._svgNamespace||rt.fontSet)("fontIcon",rt._usingFontIcon()?rt.fontIcon:null),e.ekj("mat-icon-inline",rt.inline)("mat-icon-no-color","primary"!==rt.color&&"accent"!==rt.color&&"warn"!==rt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:Re,decls:1,vars:0,template:function(Ze,rt){1&Ze&&(e.F$t(),e.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return me})(),$e=(()=>{class me{static#e=this.\u0275fac=function(Ze){return new(Ze||me)};static#t=this.\u0275mod=e.oAB({type:me});static#n=this.\u0275inj=e.cJS({imports:[l.BQ,l.BQ]})}return me})()},3365:(ft,Ie,C)=>{"use strict";C.d(Ie,{NW:()=>Ve,TU:()=>ct});var e=C(6814),l=C(5879),D=C(8645),I=C(2296),S=C(8525),w=C(9773),n=C(8180),Z=C(2605),ee=C(6028),re=C(2831),ue=C(4300),se=C(9388),te=C(3651),oe=C(6672),ce=C(8484),Re=(C(6825),C(3680));const mt=["tooltip"],je=new l.OlP("mat-tooltip-scroll-strategy"),xt={provide:je,deps:[te.aV],useFactory:function Tt(Ct){return()=>Ct.scrollStrategies.reposition({scrollThrottle:20})}},Zt=new l.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function St(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),un="tooltip-panel",Jt=(0,re.i$)({passive:!0});let gi=(()=>{class Ct{get position(){return this._position}set position(J){J!==this._position&&(this._position=J,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(J){this._positionAtOrigin=(0,Z.Ig)(J),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(J){this._disabled=(0,Z.Ig)(J),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(J){this._showDelay=(0,Z.su)(J)}get hideDelay(){return this._hideDelay}set hideDelay(J){this._hideDelay=(0,Z.su)(J),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(J){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=J?String(J).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(J){this._tooltipClass=J,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An){this._overlay=J,this._elementRef=ae,this._scrollDispatcher=Oe,this._viewContainerRef=ot,this._ngZone=Se,this._platform=Ft,this._ariaDescriber=lt,this._focusMonitor=Bt,this._dir=fn,this._defaultOptions=gn,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new D.x,this._scrollStrategy=Ut,this._document=An,gn&&(this._showDelay=gn.showDelay,this._hideDelay=gn.hideDelay,gn.position&&(this.position=gn.position),gn.positionAtOrigin&&(this.positionAtOrigin=gn.positionAtOrigin),gn.touchGestures&&(this.touchGestures=gn.touchGestures)),fn.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,w.R)(this._destroyed)).subscribe(J=>{J?"keyboard"===J&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const J=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ae,Oe])=>{J.removeEventListener(ae,Oe,Jt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(J,this.message,"tooltip"),this._focusMonitor.stopMonitoring(J)}show(J=this.showDelay,ae){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Oe=this._createOverlay(ae);this._detach(),this._portal=this._portal||new ce.C5(this._tooltipComponent,this._viewContainerRef);const ot=this._tooltipInstance=Oe.attach(this._portal).instance;ot._triggerElement=this._elementRef.nativeElement,ot._mouseLeaveHideDelay=this._hideDelay,ot.afterHidden().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ot.show(J)}hide(J=this.hideDelay){const ae=this._tooltipInstance;ae&&(ae.isVisible()?ae.hide(J):(ae._cancelPendingAnimations(),this._detach()))}toggle(J){this._isTooltipVisible()?this.hide():this.show(void 0,J)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(J){if(this._overlayRef){const ot=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!J)&&ot._origin instanceof l.SBq)return this._overlayRef;this._detach()}const ae=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Oe=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&J||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ae);return Oe.positionChanges.pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this._updateCurrentPositionClass(ot.connectionPair),this._tooltipInstance&&ot.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Oe,panelClass:`${this._cssClassPrefix}-${un}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this._isTooltipVisible()&&ot.keyCode===ee.hY&&!(0,ee.Vb)(ot)&&(ot.preventDefault(),ot.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(J){const ae=J.getConfig().positionStrategy,Oe=this._getOrigin(),ot=this._getOverlayPosition();ae.withPositions([this._addOffset({...Oe.main,...ot.main}),this._addOffset({...Oe.fallback,...ot.fallback})])}_addOffset(J){return J}_getOrigin(){const J=!this._dir||"ltr"==this._dir.value,ae=this.position;let Oe;"above"==ae||"below"==ae?Oe={originX:"center",originY:"above"==ae?"top":"bottom"}:"before"==ae||"left"==ae&&J||"right"==ae&&!J?Oe={originX:"start",originY:"center"}:("after"==ae||"right"==ae&&J||"left"==ae&&!J)&&(Oe={originX:"end",originY:"center"});const{x:ot,y:Se}=this._invertPosition(Oe.originX,Oe.originY);return{main:Oe,fallback:{originX:ot,originY:Se}}}_getOverlayPosition(){const J=!this._dir||"ltr"==this._dir.value,ae=this.position;let Oe;"above"==ae?Oe={overlayX:"center",overlayY:"bottom"}:"below"==ae?Oe={overlayX:"center",overlayY:"top"}:"before"==ae||"left"==ae&&J||"right"==ae&&!J?Oe={overlayX:"end",overlayY:"center"}:("after"==ae||"right"==ae&&J||"left"==ae&&!J)&&(Oe={overlayX:"start",overlayY:"center"});const{x:ot,y:Se}=this._invertPosition(Oe.overlayX,Oe.overlayY);return{main:Oe,fallback:{overlayX:ot,overlayY:Se}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,n.q)(1),(0,w.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(J){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=J,this._tooltipInstance._markForCheck())}_invertPosition(J,ae){return"above"===this.position||"below"===this.position?"top"===ae?ae="bottom":"bottom"===ae&&(ae="top"):"end"===J?J="start":"start"===J&&(J="end"),{x:J,y:ae}}_updateCurrentPositionClass(J){const{overlayY:ae,originX:Oe,originY:ot}=J;let Se;if(Se="center"===ae?this._dir&&"rtl"===this._dir.value?"end"===Oe?"left":"right":"start"===Oe?"left":"right":"bottom"===ae&&"top"===ot?"above":"below",Se!==this._currentPosition){const Ft=this._overlayRef;if(Ft){const lt=`${this._cssClassPrefix}-${un}-`;Ft.removePanelClass(lt+this._currentPosition),Ft.addPanelClass(lt+Se)}this._currentPosition=Se}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",J=>{let ae;this._setupPointerExitEventsIfNeeded(),void 0!==J.x&&void 0!==J.y&&(ae=J),this.show(void 0,ae)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",J=>{const ae=J.targetTouches?.[0],Oe=ae?{x:ae.clientX,y:ae.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,Oe),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const J=[];if(this._platformSupportsMouseEvents())J.push(["mouseleave",ae=>{const Oe=ae.relatedTarget;(!Oe||!this._overlayRef?.overlayElement.contains(Oe))&&this.hide()}],["wheel",ae=>this._wheelListener(ae)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ae=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};J.push(["touchend",ae],["touchcancel",ae])}this._addListeners(J),this._passiveListeners.push(...J)}_addListeners(J){J.forEach(([ae,Oe])=>{this._elementRef.nativeElement.addEventListener(ae,Oe,Jt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(J){if(this._isTooltipVisible()){const ae=this._document.elementFromPoint(J.clientX,J.clientY),Oe=this._elementRef.nativeElement;ae!==Oe&&!Oe.contains(ae)&&this.hide()}}_disableNativeGesturesIfNecessary(){const J=this.touchGestures;if("off"!==J){const ae=this._elementRef.nativeElement,Oe=ae.style;("on"===J||"INPUT"!==ae.nodeName&&"TEXTAREA"!==ae.nodeName)&&(Oe.userSelect=Oe.msUserSelect=Oe.webkitUserSelect=Oe.MozUserSelect="none"),("on"===J||!ae.draggable)&&(Oe.webkitUserDrag="none"),Oe.touchAction="none",Oe.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(ae){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Ct,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}})}return Ct})(),Rn=(()=>{class Ct extends gi{constructor(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An){super(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An),this._tooltipComponent=at,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(J){const Oe=!this._dir||"ltr"==this._dir.value;return"top"===J.originY?J.offsetY=-8:"bottom"===J.originY?J.offsetY=8:"start"===J.originX?J.offsetX=Oe?-8:8:"end"===J.originX&&(J.offsetX=Oe?8:-8),J}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(te.aV),l.Y36(l.SBq),l.Y36(oe.mF),l.Y36(l.s_b),l.Y36(l.R0b),l.Y36(re.t4),l.Y36(ue.$s),l.Y36(ue.tE),l.Y36(je),l.Y36(se.Is,8),l.Y36(Zt,8),l.Y36(e.K0))};static#t=this.\u0275dir=l.lG2({type:Ct,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(ae,Oe){2&ae&&l.ekj("mat-mdc-tooltip-disabled",Oe.disabled)},exportAs:["matTooltip"],features:[l.qOj]})}return Ct})(),dt=(()=>{class Ct{constructor(J,ae){this._changeDetectorRef=J,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new D.x,this._animationsDisabled="NoopAnimations"===ae}show(J){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},J)}hide(J){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},J)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:J}){(!J||!this._triggerElement.contains(J))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:J}){(J===this._showAnimation||J===this._hideAnimation)&&this._finalizeAnimation(J===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(J){J?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(J){const ae=this._tooltip.nativeElement,Oe=this._showAnimation,ot=this._hideAnimation;if(ae.classList.remove(J?ot:Oe),ae.classList.add(J?Oe:ot),this._isVisible=J,J&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Se=getComputedStyle(ae);("0s"===Se.getPropertyValue("animation-duration")||"none"===Se.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}J&&this._onShow(),this._animationsDisabled&&(ae.classList.add("_mat-animation-noopable"),this._finalizeAnimation(J))}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(l.sBO),l.Y36(l.QbO,8))};static#t=this.\u0275dir=l.lG2({type:Ct})}return Ct})(),at=(()=>{class Ct extends dt{constructor(J,ae,Oe){super(J,Oe),this._elementRef=ae,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const J=this._elementRef.nativeElement.getBoundingClientRect();return J.height>24&&J.width>=200}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Ct,selectors:[["mat-tooltip-component"]],viewQuery:function(ae,Oe){if(1&ae&&l.Gf(mt,7),2&ae){let ot;l.iGM(ot=l.CRH())&&(Oe._tooltip=ot.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ae,Oe){1&ae&&l.NdJ("mouseleave",function(Se){return Oe._handleMouseLeave(Se)}),2&ae&&l.Udp("zoom",Oe.isVisible()?1:null)},features:[l.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(ae,Oe){1&ae&&(l.TgZ(0,"div",0,1),l.NdJ("animationend",function(Se){return Oe._handleAnimationEnd(Se)}),l.TgZ(2,"div",2),l._uU(3),l.qZA()()),2&ae&&(l.ekj("mdc-tooltip--multiline",Oe._isMultiline),l.Q6J("ngClass",Oe.tooltipClass),l.xp6(3),l.Oqu(Oe.message))},dependencies:[e.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return Ct})(),Ee=(()=>{class Ct{static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275mod=l.oAB({type:Ct});static#n=this.\u0275inj=l.cJS({providers:[xt],imports:[ue.rt,e.ez,te.U8,Re.BQ,Re.BQ,oe.ZD]})}return Ct})();var $e=C(9157);function me(Ct,Ce){if(1&Ct&&(l.TgZ(0,"mat-option",19),l._uU(1),l.qZA()),2&Ct){const J=Ce.$implicit;l.Q6J("value",J),l.xp6(1),l.hij(" ",J," ")}}function tt(Ct,Ce){if(1&Ct){const J=l.EpF();l.TgZ(0,"mat-form-field",16)(1,"mat-select",17),l.NdJ("selectionChange",function(Oe){l.CHM(J);const ot=l.oxw(2);return l.KtG(ot._changePageSize(Oe.value))}),l.YNc(2,me,2,2,"mat-option",18),l.qZA()()}if(2&Ct){const J=l.oxw(2);l.Q6J("appearance",J._formFieldAppearance)("color",J.color),l.xp6(1),l.Q6J("value",J.pageSize)("disabled",J.disabled)("aria-labelledby",J._pageSizeLabelId)("panelClass",J.selectConfig.panelClass||"")("disableOptionCentering",J.selectConfig.disableOptionCentering),l.xp6(1),l.Q6J("ngForOf",J._displayedPageSizeOptions)}}function he(Ct,Ce){if(1&Ct&&(l.TgZ(0,"div",20),l._uU(1),l.qZA()),2&Ct){const J=l.oxw(2);l.xp6(1),l.Oqu(J.pageSize)}}function Ze(Ct,Ce){if(1&Ct&&(l.TgZ(0,"div",12)(1,"div",13),l._uU(2),l.qZA(),l.YNc(3,tt,3,8,"mat-form-field",14),l.YNc(4,he,2,1,"div",15),l.qZA()),2&Ct){const J=l.oxw();l.xp6(1),l.s9C("id",J._pageSizeLabelId),l.xp6(1),l.hij(" ",J._intl.itemsPerPageLabel," "),l.xp6(1),l.Q6J("ngIf",J._displayedPageSizeOptions.length>1),l.xp6(1),l.Q6J("ngIf",J._displayedPageSizeOptions.length<=1)}}function rt(Ct,Ce){if(1&Ct){const J=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){l.CHM(J);const Oe=l.oxw();return l.KtG(Oe.firstPage())}),l.O4$(),l.TgZ(1,"svg",7),l._UZ(2,"path",22),l.qZA()()}if(2&Ct){const J=l.oxw();l.Q6J("matTooltip",J._intl.firstPageLabel)("matTooltipDisabled",J._previousButtonsDisabled())("matTooltipPosition","above")("disabled",J._previousButtonsDisabled()),l.uIk("aria-label",J._intl.firstPageLabel)}}function bt(Ct,Ce){if(1&Ct){const J=l.EpF();l.O4$(),l.kcU(),l.TgZ(0,"button",23),l.NdJ("click",function(){l.CHM(J);const Oe=l.oxw();return l.KtG(Oe.lastPage())}),l.O4$(),l.TgZ(1,"svg",7),l._UZ(2,"path",24),l.qZA()()}if(2&Ct){const J=l.oxw();l.Q6J("matTooltip",J._intl.lastPageLabel)("matTooltipDisabled",J._nextButtonsDisabled())("matTooltipPosition","above")("disabled",J._nextButtonsDisabled()),l.uIk("aria-label",J._intl.lastPageLabel)}}let Nt=(()=>{class Ct{constructor(){this.changes=new D.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(J,ae,Oe)=>{if(0==Oe||0==ae)return`0 of ${Oe}`;const ot=J*ae;return`${ot+1} \u2013 ${ot<(Oe=Math.max(Oe,0))?Math.min(ot+ae,Oe):ot+ae} of ${Oe}`}}static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275prov=l.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"})}return Ct})();const nn={provide:Nt,deps:[[new l.FiY,new l.tp0,Nt]],useFactory:function Qt(Ct){return Ct||new Nt}},rn=new l.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),vn=(0,Re.Id)((0,Re.dB)(class{}));let ei=(()=>{class Ct extends vn{get pageIndex(){return this._pageIndex}set pageIndex(J){this._pageIndex=Math.max((0,Z.su)(J),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(J){this._length=(0,Z.su)(J),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(J){this._pageSize=Math.max((0,Z.su)(J),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(J){this._pageSizeOptions=(J||[]).map(ae=>(0,Z.su)(ae)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(J){this._hidePageSize=(0,Z.Ig)(J)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(J){this._showFirstLastButtons=(0,Z.Ig)(J)}constructor(J,ae,Oe){if(super(),this._intl=J,this._changeDetectorRef=ae,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new l.vpe,this._intlChanges=J.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Oe){const{pageSize:ot,pageSizeOptions:Se,hidePageSize:Ft,showFirstLastButtons:lt}=Oe;null!=ot&&(this._pageSize=ot),null!=Se&&(this._pageSizeOptions=Se),null!=Ft&&(this._hidePageSize=Ft),null!=lt&&(this._showFirstLastButtons=lt)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const J=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(J)}previousPage(){if(!this.hasPreviousPage())return;const J=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(J)}firstPage(){if(!this.hasPreviousPage())return;const J=this.pageIndex;this.pageIndex=0,this._emitPageEvent(J)}lastPage(){if(!this.hasNextPage())return;const J=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(J)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const J=this.getNumberOfPages()-1;return this.pageIndexJ-ae),this._changeDetectorRef.markForCheck())}_emitPageEvent(J){this.page.emit({previousPageIndex:J,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(ae){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Ct,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[l.qOj]})}return Ct})(),Wn=0,Ve=(()=>{class Ct extends ei{constructor(J,ae,Oe){super(J,ae,Oe),this._pageSizeLabelId="mat-paginator-page-size-label-"+Wn++,this._formFieldAppearance=Oe?.formFieldAppearance||"outline"}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(Nt),l.Y36(l.sBO),l.Y36(rn,8))};static#t=this.\u0275cmp=l.Xpm({type:Ct,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[l.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(ae,Oe){1&ae&&(l.TgZ(0,"div",0)(1,"div",1),l.YNc(2,Ze,5,4,"div",2),l.TgZ(3,"div",3)(4,"div",4),l._uU(5),l.qZA(),l.YNc(6,rt,3,5,"button",5),l.TgZ(7,"button",6),l.NdJ("click",function(){return Oe.previousPage()}),l.O4$(),l.TgZ(8,"svg",7),l._UZ(9,"path",8),l.qZA()(),l.kcU(),l.TgZ(10,"button",9),l.NdJ("click",function(){return Oe.nextPage()}),l.O4$(),l.TgZ(11,"svg",7),l._UZ(12,"path",10),l.qZA()(),l.YNc(13,bt,3,5,"button",11),l.qZA()()()),2&ae&&(l.xp6(2),l.Q6J("ngIf",!Oe.hidePageSize),l.xp6(3),l.hij(" ",Oe._intl.getRangeLabel(Oe.pageIndex,Oe.pageSize,Oe.length)," "),l.xp6(1),l.Q6J("ngIf",Oe.showFirstLastButtons),l.xp6(1),l.Q6J("matTooltip",Oe._intl.previousPageLabel)("matTooltipDisabled",Oe._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Oe._previousButtonsDisabled()),l.uIk("aria-label",Oe._intl.previousPageLabel),l.xp6(3),l.Q6J("matTooltip",Oe._intl.nextPageLabel)("matTooltipDisabled",Oe._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Oe._nextButtonsDisabled()),l.uIk("aria-label",Oe._intl.nextPageLabel),l.xp6(3),l.Q6J("ngIf",Oe.showFirstLastButtons))},dependencies:[e.sg,e.O5,I.RK,$e.KE,S.gD,Re.ey,Rn],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Ct})(),ct=(()=>{class Ct{static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275mod=l.oAB({type:Ct});static#n=this.\u0275inj=l.cJS({providers:[nn],imports:[e.ez,I.ot,S.LD,Ee]})}return Ct})()},6007:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cv:()=>ue,pW:()=>ee});var e=C(5879),D=(C(6814),C(3680)),I=C(2605);const S=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Z=(0,D.pj)(class{constructor(se){this._elementRef=se}},"primary");let ee=(()=>{class se extends Z{constructor(oe,ce,_e,Re,mt){super(oe),this._ngZone=ce,this._changeDetectorRef=_e,this._animationMode=Re,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._mode="determinate",this._transitionendHandler=Ge=>{0===this.animationEnd.observers.length||!Ge.target||!Ge.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===Re,mt&&(mt.color&&(this.color=this.defaultColor=mt.color),this.mode=mt.mode||this.mode)}get value(){return this._value}set value(oe){this._value=re((0,I.su)(oe)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(oe){this._bufferValue=re((0,I.su)(oe)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(oe){this._mode=oe,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(ce){return new(ce||se)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.QbO,8),e.Y36(S,8))};static#t=this.\u0275cmp=e.Xpm({type:se,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(ce,_e){2&ce&&(e.uIk("aria-valuenow",_e._isIndeterminate()?null:_e.value)("mode",_e.mode),e.ekj("_mat-animation-noopable",_e._isNoopAnimation)("mdc-linear-progress--animation-ready",!_e._isNoopAnimation)("mdc-linear-progress--indeterminate",_e._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(ce,_e){1&ce&&(e.TgZ(0,"div",0),e._UZ(1,"div",1)(2,"div",2),e.qZA(),e.TgZ(3,"div",3),e._UZ(4,"span",4),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"span",4),e.qZA()),2&ce&&(e.xp6(1),e.Udp("flex-basis",_e._getBufferBarFlexBasis()),e.xp6(2),e.Udp("transform",_e._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return se})();function re(se,te=0,oe=100){return Math.max(te,Math.min(oe,se))}let ue=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=e.oAB({type:se});static#n=this.\u0275inj=e.cJS({imports:[D.BQ]})}return se})()},5940:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cq:()=>oe,Ou:()=>se});var e=C(5879),l=C(3680),D=C(2605),I=C(6814);const S=["determinateSpinner"];function w(ce,_e){if(1&ce&&(e.O4$(),e.TgZ(0,"svg",11),e._UZ(1,"circle",12),e.qZA()),2&ce){const Re=e.oxw();e.uIk("viewBox",Re._viewBox()),e.xp6(1),e.Udp("stroke-dasharray",Re._strokeCircumference(),"px")("stroke-dashoffset",Re._strokeCircumference()/2,"px")("stroke-width",Re._circleStrokeWidth(),"%"),e.uIk("r",Re._circleRadius())}}const n=(0,l.pj)(class{constructor(ce){this._elementRef=ce}},"primary"),Z=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function ee(){return{diameter:re}}}),re=100;let se=(()=>{class ce extends n{constructor(Re,mt,Ge){super(Re),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=re,this._noopAnimations="NoopAnimations"===mt&&!!Ge&&!Ge._forceAnimations,Ge&&(Ge.color&&(this.color=this.defaultColor=Ge.color),Ge.diameter&&(this.diameter=Ge.diameter),Ge.strokeWidth&&(this.strokeWidth=Ge.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(Re){this._value=Math.max(0,Math.min(100,(0,D.su)(Re)))}get diameter(){return this._diameter}set diameter(Re){this._diameter=(0,D.su)(Re)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(Re){this._strokeWidth=(0,D.su)(Re)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const Re=2*this._circleRadius()+this.strokeWidth;return`0 0 ${Re} ${Re}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(e.SBq),e.Y36(e.QbO,8),e.Y36(Z))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(mt,Ge){if(1&mt&&e.Gf(S,5),2&mt){let Lt;e.iGM(Lt=e.CRH())&&(Ge._determinateCircle=Lt.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(mt,Ge){2&mt&&(e.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===Ge.mode?Ge.value:null)("mode",Ge.mode),e.Udp("width",Ge.diameter,"px")("height",Ge.diameter,"px")("--mdc-circular-progress-size",Ge.diameter+"px")("--mdc-circular-progress-active-indicator-width",Ge.diameter+"px"),e.ekj("_mat-animation-noopable",Ge._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===Ge.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(mt,Ge){if(1&mt&&(e.YNc(0,w,2,8,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.O4$(),e.TgZ(4,"svg",3),e._UZ(5,"circle",4),e.qZA()(),e.kcU(),e.TgZ(6,"div",5)(7,"div",6)(8,"div",7),e.GkF(9,8),e.qZA(),e.TgZ(10,"div",9),e.GkF(11,8),e.qZA(),e.TgZ(12,"div",10),e.GkF(13,8),e.qZA()()()),2&mt){const Lt=e.MAs(1);e.xp6(4),e.uIk("viewBox",Ge._viewBox()),e.xp6(1),e.Udp("stroke-dasharray",Ge._strokeCircumference(),"px")("stroke-dashoffset",Ge._strokeDashOffset(),"px")("stroke-width",Ge._circleStrokeWidth(),"%"),e.uIk("r",Ge._circleRadius()),e.xp6(4),e.Q6J("ngTemplateOutlet",Lt),e.xp6(2),e.Q6J("ngTemplateOutlet",Lt),e.xp6(2),e.Q6J("ngTemplateOutlet",Lt)}},dependencies:[I.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return ce})(),oe=(()=>{class ce{static#e=this.\u0275fac=function(mt){return new(mt||ce)};static#t=this.\u0275mod=e.oAB({type:ce});static#n=this.\u0275inj=e.cJS({imports:[I.ez,l.BQ]})}return ce})()},8525:(ft,Ie,C)=>{"use strict";C.d(Ie,{LD:()=>Qt,gD:()=>Nt});var e=C(3651),l=C(6814),D=C(5879),I=C(3680),S=C(9157),w=C(6672),n=C(4300),Z=C(9388),ee=C(2605),re=C(8337),ue=C(6028),se=C(6223),te=C(8645),oe=C(4911),ce=C(3019),_e=C(7921),Re=C(4664),mt=C(8180),Ge=C(2181),Lt=C(7398),je=C(3997),Tt=C(9773),xt=C(6825);const St=["trigger"],Zt=["panel"];function yt(nn,Dn){if(1&nn&&(D.TgZ(0,"span",10),D._uU(1),D.qZA()),2&nn){const Ot=D.oxw();D.xp6(1),D.Oqu(Ot.placeholder)}}function un(nn,Dn){if(1&nn&&(D.TgZ(0,"span",14),D._uU(1),D.qZA()),2&nn){const Ot=D.oxw(2);D.xp6(1),D.Oqu(Ot.triggerValue)}}function Jt(nn,Dn){1&nn&&D.Hsn(0,0,["*ngSwitchCase","true"])}function tn(nn,Dn){if(1&nn&&(D.TgZ(0,"span",11),D.YNc(1,un,2,1,"span",12),D.YNc(2,Jt,1,0,"ng-content",13),D.qZA()),2&nn){const Ot=D.oxw();D.Q6J("ngSwitch",!!Ot.customTrigger),D.xp6(2),D.Q6J("ngSwitchCase",!0)}}function wn(nn,Dn){if(1&nn){const Ot=D.EpF();D.O4$(),D.kcU(),D.TgZ(0,"div",15,16),D.NdJ("@transformPanel.done",function(vn){D.CHM(Ot);const ei=D.oxw();return D.KtG(ei._panelDoneAnimatingStream.next(vn.toState))})("keydown",function(vn){D.CHM(Ot);const ei=D.oxw();return D.KtG(ei._handleKeydown(vn))}),D.Hsn(2,1),D.qZA()}if(2&nn){const Ot=D.oxw();D.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Ot._getPanelTheme(),""),D.Q6J("ngClass",Ot.panelClass)("@transformPanel","showing"),D.uIk("id",Ot.id+"-panel")("aria-multiselectable",Ot.multiple)("aria-label",Ot.ariaLabel||null)("aria-labelledby",Ot._getPanelAriaLabelledby())}}const Ln=[[["mat-select-trigger"]],"*"],Yn=["mat-select-trigger","*"],ti={transformPanelWrap:(0,xt.X$)("transformPanelWrap",[(0,xt.eR)("* => void",(0,xt.IO)("@transformPanel",[(0,xt.pV)()],{optional:!0}))]),transformPanel:(0,xt.X$)("transformPanel",[(0,xt.SB)("void",(0,xt.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,xt.eR)("void => showing",(0,xt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,xt.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,xt.eR)("* => void",(0,xt.jt)("100ms linear",(0,xt.oB)({opacity:0})))])};let at=0;const Be=new D.OlP("mat-select-scroll-strategy"),$e=new D.OlP("MAT_SELECT_CONFIG"),me={provide:Be,deps:[e.aV],useFactory:function Ee(nn){return()=>nn.scrollStrategies.reposition()}},tt=new D.OlP("MatSelectTrigger");class he{constructor(Dn,Ot){this.source=Dn,this.value=Ot}}const Ze=(0,I.Kr)((0,I.sb)((0,I.Id)((0,I.FD)(class{constructor(nn,Dn,Ot,rn,vn){this._elementRef=nn,this._defaultErrorStateMatcher=Dn,this._parentForm=Ot,this._parentFormGroup=rn,this.ngControl=vn,this.stateChanges=new te.x}}))));let rt=(()=>{class nn extends Ze{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Ot){this._placeholder=Ot,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(se.kI.required)??!1}set required(Ot){this._required=(0,ee.Ig)(Ot),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Ot){this._multiple=(0,ee.Ig)(Ot)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Ot){this._disableOptionCentering=(0,ee.Ig)(Ot)}get compareWith(){return this._compareWith}set compareWith(Ot){this._compareWith=Ot,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Ot){this._assignValue(Ot)&&this._onChange(Ot)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Ot){this._typeaheadDebounceInterval=(0,ee.su)(Ot)}get id(){return this._id}set id(Ot){this._id=Ot||this._uid,this.stateChanges.next()}constructor(Ot,rn,vn,ei,Wn,Ve,ct,Ct,Ce,J,ae,Oe,ot,Se){super(Wn,ei,ct,Ct,J),this._viewportRuler=Ot,this._changeDetectorRef=rn,this._ngZone=vn,this._dir=Ve,this._parentFormField=Ce,this._liveAnnouncer=ot,this._defaultOptions=Se,this._panelOpen=!1,this._compareWith=(Ft,lt)=>Ft===lt,this._uid="mat-select-"+at++,this._triggerAriaLabelledBy=null,this._destroy=new te.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+at++,this._panelDoneAnimatingStream=new te.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,oe.P)(()=>{const Ft=this.options;return Ft?Ft.changes.pipe((0,_e.O)(Ft),(0,Re.w)(()=>(0,ce.T)(...Ft.map(lt=>lt.onSelectionChange)))):this._ngZone.onStable.pipe((0,mt.q)(1),(0,Re.w)(()=>this.optionSelectionChanges))}),this.openedChange=new D.vpe,this._openedStream=this.openedChange.pipe((0,Ge.h)(Ft=>Ft),(0,Lt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Ge.h)(Ft=>!Ft),(0,Lt.U)(()=>{})),this.selectionChange=new D.vpe,this.valueChange=new D.vpe,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Se?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Se.typeaheadDebounceInterval),this._scrollStrategyFactory=Oe,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ae)||0,this.id=this.id}ngOnInit(){this._selectionModel=new re.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,je.x)(),(0,Tt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Tt.R)(this._destroy)).subscribe(Ot=>{Ot.added.forEach(rn=>rn.select()),Ot.removed.forEach(rn=>rn.deselect())}),this.options.changes.pipe((0,_e.O)(null),(0,Tt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Ot=this._getTriggerAriaLabelledby(),rn=this.ngControl;if(Ot!==this._triggerAriaLabelledBy){const vn=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Ot,Ot?vn.setAttribute("aria-labelledby",Ot):vn.removeAttribute("aria-labelledby")}rn&&(this._previousControl!==rn.control&&(void 0!==this._previousControl&&null!==rn.disabled&&rn.disabled!==this.disabled&&(this.disabled=rn.disabled),this._previousControl=rn.control),this.updateErrorState())}ngOnChanges(Ot){(Ot.disabled||Ot.userAriaDescribedBy)&&this.stateChanges.next(),Ot.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const Ot=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Ot)return;const rn=`${this.id}-panel`;this._trackedModal&&(0,n.iD)(this._trackedModal,"aria-owns",rn),(0,n.Zf)(Ot,"aria-owns",rn),this._trackedModal=Ot}_clearFromModal(){this._trackedModal&&((0,n.iD)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Ot){this._assignValue(Ot)}registerOnChange(Ot){this._onChange=Ot}registerOnTouched(Ot){this._onTouched=Ot}setDisabledState(Ot){this.disabled=Ot,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Ot=this._selectionModel.selected.map(rn=>rn.viewValue);return this._isRtl()&&Ot.reverse(),Ot.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Ot){this.disabled||(this.panelOpen?this._handleOpenKeydown(Ot):this._handleClosedKeydown(Ot))}_handleClosedKeydown(Ot){const rn=Ot.keyCode,vn=rn===ue.JH||rn===ue.LH||rn===ue.oh||rn===ue.SV,ei=rn===ue.K5||rn===ue.L_,Wn=this._keyManager;if(!Wn.isTyping()&&ei&&!(0,ue.Vb)(Ot)||(this.multiple||Ot.altKey)&&vn)Ot.preventDefault(),this.open();else if(!this.multiple){const Ve=this.selected;Wn.onKeydown(Ot);const ct=this.selected;ct&&Ve!==ct&&this._liveAnnouncer.announce(ct.viewValue,1e4)}}_handleOpenKeydown(Ot){const rn=this._keyManager,vn=Ot.keyCode,ei=vn===ue.JH||vn===ue.LH,Wn=rn.isTyping();if(ei&&Ot.altKey)Ot.preventDefault(),this.close();else if(Wn||vn!==ue.K5&&vn!==ue.L_||!rn.activeItem||(0,ue.Vb)(Ot))if(!Wn&&this._multiple&&vn===ue.A&&Ot.ctrlKey){Ot.preventDefault();const Ve=this.options.some(ct=>!ct.disabled&&!ct.selected);this.options.forEach(ct=>{ct.disabled||(Ve?ct.select():ct.deselect())})}else{const Ve=rn.activeItemIndex;rn.onKeydown(Ot),this._multiple&&ei&&Ot.shiftKey&&rn.activeItem&&rn.activeItemIndex!==Ve&&rn.activeItem._selectViaInteraction()}else Ot.preventDefault(),rn.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,mt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Ot){if(this.options.forEach(rn=>rn.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Ot)Array.isArray(Ot),Ot.forEach(rn=>this._selectOptionByValue(rn)),this._sortValues();else{const rn=this._selectOptionByValue(Ot);rn?this._keyManager.updateActiveItem(rn):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Ot){const rn=this.options.find(vn=>{if(this._selectionModel.isSelected(vn))return!1;try{return null!=vn.value&&this._compareWith(vn.value,Ot)}catch{return!1}});return rn&&this._selectionModel.select(rn),rn}_assignValue(Ot){return!!(Ot!==this._value||this._multiple&&Array.isArray(Ot))&&(this.options&&this._setSelectionByValue(Ot),this._value=Ot,!0)}_skipPredicate(Ot){return Ot.disabled}_initKeyManager(){this._keyManager=new n.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Ot=(0,ce.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Tt.R)(Ot)).subscribe(rn=>{this._onSelect(rn.source,rn.isUserInput),rn.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ce.T)(...this.options.map(rn=>rn._stateChanges)).pipe((0,Tt.R)(Ot)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Ot,rn){const vn=this._selectionModel.isSelected(Ot);null!=Ot.value||this._multiple?(vn!==Ot.selected&&(Ot.selected?this._selectionModel.select(Ot):this._selectionModel.deselect(Ot)),rn&&this._keyManager.setActiveItem(Ot),this.multiple&&(this._sortValues(),rn&&this.focus())):(Ot.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Ot.value)),vn!==this._selectionModel.isSelected(Ot)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Ot=this.options.toArray();this._selectionModel.sort((rn,vn)=>this.sortComparator?this.sortComparator(rn,vn,Ot):Ot.indexOf(rn)-Ot.indexOf(vn)),this.stateChanges.next()}}_propagateChanges(Ot){let rn=null;rn=this.multiple?this.selected.map(vn=>vn.value):this.selected?this.selected.value:Ot,this._value=rn,this.valueChange.emit(rn),this._onChange(rn),this.selectionChange.emit(this._getChangeEvent(rn)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let Ot=-1;for(let rn=0;rn0}focus(Ot){this._elementRef.nativeElement.focus(Ot)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Ot=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Ot?Ot+" ":"")+this.ariaLabelledby:Ot}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Ot=this._parentFormField?.getLabelId();let rn=(Ot?Ot+" ":"")+this._valueId;return this.ariaLabelledby&&(rn+=" "+this.ariaLabelledby),rn}_panelDoneAnimating(Ot){this.openedChange.emit(Ot)}setDescribedByIds(Ot){Ot.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ot.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static#e=this.\u0275fac=function(rn){return new(rn||nn)(D.Y36(w.rL),D.Y36(D.sBO),D.Y36(D.R0b),D.Y36(I.rD),D.Y36(D.SBq),D.Y36(Z.Is,8),D.Y36(se.F,8),D.Y36(se.sg,8),D.Y36(S.G_,8),D.Y36(se.a5,10),D.$8M("tabindex"),D.Y36(Be),D.Y36(n.Kd),D.Y36($e,8))};static#t=this.\u0275dir=D.lG2({type:nn,viewQuery:function(rn,vn){if(1&rn&&(D.Gf(St,5),D.Gf(Zt,5),D.Gf(e.pI,5)),2&rn){let ei;D.iGM(ei=D.CRH())&&(vn.trigger=ei.first),D.iGM(ei=D.CRH())&&(vn.panel=ei.first),D.iGM(ei=D.CRH())&&(vn._overlayDir=ei.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[D.qOj,D.TTD]})}return nn})(),Nt=(()=>{class nn extends rt{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=Ot=>!this.panelOpen&&Ot.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Tt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(Ot){const rn=this.options.toArray()[Ot];if(rn){const vn=this.panel.nativeElement,ei=(0,I.CB)(Ot,this.options,this.optionGroups),Wn=rn._getHostElement();vn.scrollTop=0===Ot&&1===ei?0:(0,I.jH)(Wn.offsetTop,Wn.offsetHeight,vn.scrollTop,vn.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Ot){return new he(this,Ot)}_getOverlayWidth(Ot){return"auto"===this.panelWidth?(Ot instanceof e.xu?Ot.elementRef:Ot||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Ot){this._hideSingleSelectionIndicator=(0,ee.Ig)(Ot),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Ot of this.options)Ot._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(){let Ot;return function(vn){return(Ot||(Ot=D.n5z(nn)))(vn||nn)}}();static#t=this.\u0275cmp=D.Xpm({type:nn,selectors:[["mat-select"]],contentQueries:function(rn,vn,ei){if(1&rn&&(D.Suo(ei,tt,5),D.Suo(ei,I.ey,5),D.Suo(ei,I.K7,5)),2&rn){let Wn;D.iGM(Wn=D.CRH())&&(vn.customTrigger=Wn.first),D.iGM(Wn=D.CRH())&&(vn.options=Wn),D.iGM(Wn=D.CRH())&&(vn.optionGroups=Wn)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(rn,vn){1&rn&&D.NdJ("keydown",function(Wn){return vn._handleKeydown(Wn)})("focus",function(){return vn._onFocus()})("blur",function(){return vn._onBlur()}),2&rn&&(D.uIk("id",vn.id)("tabindex",vn.tabIndex)("aria-controls",vn.panelOpen?vn.id+"-panel":null)("aria-expanded",vn.panelOpen)("aria-label",vn.ariaLabel||null)("aria-required",vn.required.toString())("aria-disabled",vn.disabled.toString())("aria-invalid",vn.errorState)("aria-activedescendant",vn._getAriaActiveDescendant()),D.ekj("mat-mdc-select-disabled",vn.disabled)("mat-mdc-select-invalid",vn.errorState)("mat-mdc-select-required",vn.required)("mat-mdc-select-empty",vn.empty)("mat-mdc-select-multiple",vn.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[D._Bn([{provide:S.Eo,useExisting:nn},{provide:I.HF,useExisting:nn}]),D.qOj],ngContentSelectors:Yn,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(rn,vn){if(1&rn&&(D.F$t(Ln),D.TgZ(0,"div",0,1),D.NdJ("click",function(){return vn.toggle()}),D.TgZ(3,"div",2),D.YNc(4,yt,2,1,"span",3),D.YNc(5,tn,3,2,"span",4),D.qZA(),D.TgZ(6,"div",5)(7,"div",6),D.O4$(),D.TgZ(8,"svg",7),D._UZ(9,"path",8),D.qZA()()()(),D.YNc(10,wn,3,9,"ng-template",9),D.NdJ("backdropClick",function(){return vn.close()})("attach",function(){return vn._onAttached()})("detach",function(){return vn.close()})),2&rn){const ei=D.MAs(1);D.xp6(3),D.Q6J("ngSwitch",vn.empty),D.uIk("id",vn._valueId),D.xp6(1),D.Q6J("ngSwitchCase",!0),D.xp6(1),D.Q6J("ngSwitchCase",!1),D.xp6(5),D.Q6J("cdkConnectedOverlayPanelClass",vn._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",vn._scrollStrategy)("cdkConnectedOverlayOrigin",vn._preferredOverlayOrigin||ei)("cdkConnectedOverlayOpen",vn.panelOpen)("cdkConnectedOverlayPositions",vn._positions)("cdkConnectedOverlayWidth",vn._overlayWidth)}},dependencies:[l.mk,l.RF,l.n9,l.ED,e.pI,e.xu],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ti.transformPanel]},changeDetection:0})}return nn})(),Qt=(()=>{class nn{static#e=this.\u0275fac=function(rn){return new(rn||nn)};static#t=this.\u0275mod=D.oAB({type:nn});static#n=this.\u0275inj=D.cJS({providers:[me],imports:[l.ez,e.U8,I.Ng,I.BQ,w.ZD,S.lN,I.Ng,I.BQ]})}return nn})()},6593:(ft,Ie,C)=>{"use strict";C.d(Ie,{Dx:()=>Ve,H7:()=>ai,b2:()=>Ot,h_:()=>vn,q6:()=>Nt,se:()=>yt});var e=C(5879),l=C(6814);class D extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class I extends D{static makeCurrent(){(0,l.HT)(new I)}onAndCancel(ze,be,Te){return ze.addEventListener(be,Te),()=>{ze.removeEventListener(be,Te)}}dispatchEvent(ze,be){ze.dispatchEvent(be)}remove(ze){ze.parentNode&&ze.parentNode.removeChild(ze)}createElement(ze,be){return(be=be||this.getDefaultDocument()).createElement(ze)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ze){return ze.nodeType===Node.ELEMENT_NODE}isShadowRoot(ze){return ze instanceof DocumentFragment}getGlobalEventTarget(ze,be){return"window"===be?window:"document"===be?ze:"body"===be?ze.body:null}getBaseHref(ze){const be=function w(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==be?null:function Z(We){n=n||document.createElement("a"),n.setAttribute("href",We);const ze=n.pathname;return"/"===ze.charAt(0)?ze:`/${ze}`}(be)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(ze){return(0,l.Mx)(document.cookie,ze)}}let n,S=null,re=(()=>{class We{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Te){return new(Te||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const ue=new e.OlP("EventManagerPlugins");let se=(()=>{class We{constructor(be,Te){this._zone=Te,this._eventNameToPlugin=new Map,be.forEach(He=>{He.manager=this}),this._plugins=be.slice().reverse()}addEventListener(be,Te,He){return this._findPluginFor(Te).addEventListener(be,Te,He)}getZone(){return this._zone}_findPluginFor(be){let Te=this._eventNameToPlugin.get(be);if(Te)return Te;if(Te=this._plugins.find(Wt=>Wt.supports(be)),!Te)throw new e.vHH(5101,!1);return this._eventNameToPlugin.set(be,Te),Te}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(ue),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();class te{constructor(ze){this._doc=ze}}const oe="ng-app-id";let ce=(()=>{class We{constructor(be,Te,He,Wt={}){this.doc=be,this.appId=Te,this.nonce=He,this.platformId=Wt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,l.PM)(Wt),this.resetHostNodes()}addStyles(be){for(const Te of be)1===this.changeUsageCount(Te,1)&&this.onStyleAdded(Te)}removeStyles(be){for(const Te of be)this.changeUsageCount(Te,-1)<=0&&this.onStyleRemoved(Te)}ngOnDestroy(){const be=this.styleNodesInDOM;be&&(be.forEach(Te=>Te.remove()),be.clear());for(const Te of this.getAllStyles())this.onStyleRemoved(Te);this.resetHostNodes()}addHost(be){this.hostNodes.add(be);for(const Te of this.getAllStyles())this.addStyleToHost(be,Te)}removeHost(be){this.hostNodes.delete(be)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(be){for(const Te of this.hostNodes)this.addStyleToHost(Te,be)}onStyleRemoved(be){const Te=this.styleRef;Te.get(be)?.elements?.forEach(He=>He.remove()),Te.delete(be)}collectServerRenderedStyles(){const be=this.doc.head?.querySelectorAll(`style[${oe}="${this.appId}"]`);if(be?.length){const Te=new Map;return be.forEach(He=>{null!=He.textContent&&Te.set(He.textContent,He)}),Te}return null}changeUsageCount(be,Te){const He=this.styleRef;if(He.has(be)){const Wt=He.get(be);return Wt.usage+=Te,Wt.usage}return He.set(be,{usage:Te,elements:[]}),Te}getStyleElement(be,Te){const He=this.styleNodesInDOM,Wt=He?.get(Te);if(Wt?.parentNode===be)return He.delete(Te),Wt.removeAttribute(oe),Wt;{const Pn=this.doc.createElement("style");return this.nonce&&Pn.setAttribute("nonce",this.nonce),Pn.textContent=Te,this.platformIsServer&&Pn.setAttribute(oe,this.appId),Pn}}addStyleToHost(be,Te){const He=this.getStyleElement(be,Te);be.appendChild(He);const Wt=this.styleRef,Pn=Wt.get(Te)?.elements;Pn?Pn.push(He):Wt.set(Te,{elements:[He],usage:1})}resetHostNodes(){const be=this.hostNodes;be.clear(),be.add(this.doc.head)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0),e.LFG(e.AFp),e.LFG(e.Ojb,8),e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const _e={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/",math:"http://www.w3.org/1998/MathML/"},Re=/%COMP%/g,Tt=new e.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Zt(We,ze){return ze.map(be=>be.replace(Re,We))}let yt=(()=>{class We{constructor(be,Te,He,Wt,Pn,wt,Yt,fe=null){this.eventManager=be,this.sharedStylesHost=Te,this.appId=He,this.removeStylesOnCompDestroy=Wt,this.doc=Pn,this.platformId=wt,this.ngZone=Yt,this.nonce=fe,this.rendererByCompId=new Map,this.platformIsServer=(0,l.PM)(wt),this.defaultRenderer=new un(be,Pn,Yt,this.platformIsServer)}createRenderer(be,Te){if(!be||!Te)return this.defaultRenderer;this.platformIsServer&&Te.encapsulation===e.ifc.ShadowDom&&(Te={...Te,encapsulation:e.ifc.Emulated});const He=this.getOrCreateRenderer(be,Te);return He instanceof ti?He.applyToHost(be):He instanceof Yn&&He.applyStyles(),He}getOrCreateRenderer(be,Te){const He=this.rendererByCompId;let Wt=He.get(Te.id);if(!Wt){const Pn=this.doc,wt=this.ngZone,Yt=this.eventManager,fe=this.sharedStylesHost,Mt=this.removeStylesOnCompDestroy,Vt=this.platformIsServer;switch(Te.encapsulation){case e.ifc.Emulated:Wt=new ti(Yt,fe,Te,this.appId,Mt,Pn,wt,Vt);break;case e.ifc.ShadowDom:return new Ln(Yt,fe,be,Te,Pn,wt,this.nonce,Vt);default:Wt=new Yn(Yt,fe,Te,Mt,Pn,wt,Vt)}He.set(Te.id,Wt)}return Wt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(se),e.LFG(ce),e.LFG(e.AFp),e.LFG(Tt),e.LFG(l.K0),e.LFG(e.Lbi),e.LFG(e.R0b),e.LFG(e.Ojb))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();class un{constructor(ze,be,Te,He){this.eventManager=ze,this.doc=be,this.ngZone=Te,this.platformIsServer=He,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ze,be){return be?this.doc.createElementNS(_e[be]||be,ze):this.doc.createElement(ze)}createComment(ze){return this.doc.createComment(ze)}createText(ze){return this.doc.createTextNode(ze)}appendChild(ze,be){(wn(ze)?ze.content:ze).appendChild(be)}insertBefore(ze,be,Te){ze&&(wn(ze)?ze.content:ze).insertBefore(be,Te)}removeChild(ze,be){ze&&ze.removeChild(be)}selectRootElement(ze,be){let Te="string"==typeof ze?this.doc.querySelector(ze):ze;if(!Te)throw new e.vHH(-5104,!1);return be||(Te.textContent=""),Te}parentNode(ze){return ze.parentNode}nextSibling(ze){return ze.nextSibling}setAttribute(ze,be,Te,He){if(He){be=He+":"+be;const Wt=_e[He];Wt?ze.setAttributeNS(Wt,be,Te):ze.setAttribute(be,Te)}else ze.setAttribute(be,Te)}removeAttribute(ze,be,Te){if(Te){const He=_e[Te];He?ze.removeAttributeNS(He,be):ze.removeAttribute(`${Te}:${be}`)}else ze.removeAttribute(be)}addClass(ze,be){ze.classList.add(be)}removeClass(ze,be){ze.classList.remove(be)}setStyle(ze,be,Te,He){He&(e.JOm.DashCase|e.JOm.Important)?ze.style.setProperty(be,Te,He&e.JOm.Important?"important":""):ze.style[be]=Te}removeStyle(ze,be,Te){Te&e.JOm.DashCase?ze.style.removeProperty(be):ze.style[be]=""}setProperty(ze,be,Te){ze[be]=Te}setValue(ze,be){ze.nodeValue=be}listen(ze,be,Te){if("string"==typeof ze&&!(ze=(0,l.q)().getGlobalEventTarget(this.doc,ze)))throw new Error(`Unsupported event target ${ze} for event ${be}`);return this.eventManager.addEventListener(ze,be,this.decoratePreventDefault(Te))}decoratePreventDefault(ze){return be=>{if("__ngUnwrap__"===be)return ze;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ze(be)):ze(be))&&be.preventDefault()}}}function wn(We){return"TEMPLATE"===We.tagName&&void 0!==We.content}class Ln extends un{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){super(ze,Wt,Pn,Yt),this.sharedStylesHost=be,this.hostEl=Te,this.shadowRoot=Te.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const fe=Zt(He.id,He.styles);for(const Mt of fe){const Vt=document.createElement("style");wt&&Vt.setAttribute("nonce",wt),Vt.textContent=Mt,this.shadowRoot.appendChild(Vt)}}nodeOrShadowRoot(ze){return ze===this.hostEl?this.shadowRoot:ze}appendChild(ze,be){return super.appendChild(this.nodeOrShadowRoot(ze),be)}insertBefore(ze,be,Te){return super.insertBefore(this.nodeOrShadowRoot(ze),be,Te)}removeChild(ze,be){return super.removeChild(this.nodeOrShadowRoot(ze),be)}parentNode(ze){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ze)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Yn extends un{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){super(ze,Wt,Pn,wt),this.sharedStylesHost=be,this.removeStylesOnCompDestroy=He,this.styles=Yt?Zt(Yt,Te.styles):Te.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class ti extends Yn{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){const fe=He+"-"+Te.id;super(ze,be,Te,Wt,Pn,wt,Yt,fe),this.contentAttr=function xt(We){return"_ngcontent-%COMP%".replace(Re,We)}(fe),this.hostAttr=function St(We){return"_nghost-%COMP%".replace(Re,We)}(fe)}applyToHost(ze){this.applyStyles(),this.setAttribute(ze,this.hostAttr,"")}createElement(ze,be){const Te=super.createElement(ze,be);return super.setAttribute(Te,this.contentAttr,""),Te}}let gi=(()=>{class We extends te{constructor(be){super(be)}supports(be){return!0}addEventListener(be,Te,He){return be.addEventListener(Te,He,!1),()=>this.removeEventListener(be,Te,He)}removeEventListener(be,Te,He){return be.removeEventListener(Te,He)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const Rn=["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"},at={alt:We=>We.altKey,control:We=>We.ctrlKey,meta:We=>We.metaKey,shift:We=>We.shiftKey};let Be=(()=>{class We extends te{constructor(be){super(be)}supports(be){return null!=We.parseEventName(be)}addEventListener(be,Te,He){const Wt=We.parseEventName(Te),Pn=We.eventCallback(Wt.fullKey,He,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(be,Wt.domEventName,Pn))}static parseEventName(be){const Te=be.toLowerCase().split("."),He=Te.shift();if(0===Te.length||"keydown"!==He&&"keyup"!==He)return null;const Wt=We._normalizeKey(Te.pop());let Pn="",wt=Te.indexOf("code");if(wt>-1&&(Te.splice(wt,1),Pn="code."),Rn.forEach(fe=>{const Mt=Te.indexOf(fe);Mt>-1&&(Te.splice(Mt,1),Pn+=fe+".")}),Pn+=Wt,0!=Te.length||0===Wt.length)return null;const Yt={};return Yt.domEventName=He,Yt.fullKey=Pn,Yt}static matchEventFullKeyCode(be,Te){let He=dt[be.key]||be.key,Wt="";return Te.indexOf("code.")>-1&&(He=be.code,Wt="code."),!(null==He||!He)&&(He=He.toLowerCase()," "===He?He="space":"."===He&&(He="dot"),Rn.forEach(Pn=>{Pn!==He&&(0,at[Pn])(be)&&(Wt+=Pn+".")}),Wt+=He,Wt===Te)}static eventCallback(be,Te,He){return Wt=>{We.matchEventFullKeyCode(Wt,be)&&He.runGuarded(()=>Te(Wt))}}static _normalizeKey(be){return"esc"===be?"escape":be}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const Nt=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:l.bD},{provide:e.g9A,useValue:function he(){I.makeCurrent()},multi:!0},{provide:l.K0,useFactory:function rt(){return(0,e.RDi)(document),document},deps:[]}]),Qt=new e.OlP(""),nn=[{provide:e.rWj,useClass:class ee{addToWindow(ze){e.dqk.getAngularTestability=(Te,He=!0)=>{const Wt=ze.findTestabilityInTree(Te,He);if(null==Wt)throw new e.vHH(5103,!1);return Wt},e.dqk.getAllAngularTestabilities=()=>ze.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>ze.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(Te=>{const He=e.dqk.getAllAngularTestabilities();let Wt=He.length,Pn=!1;const wt=function(Yt){Pn=Pn||Yt,Wt--,0==Wt&&Te(Pn)};He.forEach(Yt=>{Yt.whenStable(wt)})})}findTestabilityInTree(ze,be,Te){return null==be?null:ze.getTestability(be)??(Te?(0,l.q)().isShadowRoot(be)?this.findTestabilityInTree(ze,be.host,!0):this.findTestabilityInTree(ze,be.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],Dn=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Ze(){return new e.qLn},deps:[]},{provide:ue,useClass:gi,multi:!0,deps:[l.K0,e.R0b,e.Lbi]},{provide:ue,useClass:Be,multi:!0,deps:[l.K0]},yt,ce,se,{provide:e.FYo,useExisting:yt},{provide:l.JF,useClass:re,deps:[]},[]];let Ot=(()=>{class We{constructor(be){}static withServerTransition(be){return{ngModule:We,providers:[{provide:e.AFp,useValue:be.appId}]}}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(Qt,12))};static#t=this.\u0275mod=e.oAB({type:We});static#n=this.\u0275inj=e.cJS({providers:[...Dn,...nn],imports:[l.ez,e.hGG]})}return We})(),vn=(()=>{class We{constructor(be){this._doc=be,this._dom=(0,l.q)()}addTag(be,Te=!1){return be?this._getOrCreateElement(be,Te):null}addTags(be,Te=!1){return be?be.reduce((He,Wt)=>(Wt&&He.push(this._getOrCreateElement(Wt,Te)),He),[]):[]}getTag(be){return be&&this._doc.querySelector(`meta[${be}]`)||null}getTags(be){if(!be)return[];const Te=this._doc.querySelectorAll(`meta[${be}]`);return Te?[].slice.call(Te):[]}updateTag(be,Te){if(!be)return null;Te=Te||this._parseSelector(be);const He=this.getTag(Te);return He?this._setMetaElementAttributes(be,He):this._getOrCreateElement(be,!0)}removeTag(be){this.removeTagElement(this.getTag(be))}removeTagElement(be){be&&this._dom.remove(be)}_getOrCreateElement(be,Te=!1){if(!Te){const Pn=this._parseSelector(be),wt=this.getTags(Pn).filter(Yt=>this._containsAttributes(be,Yt))[0];if(void 0!==wt)return wt}const He=this._dom.createElement("meta");return this._setMetaElementAttributes(be,He),this._doc.getElementsByTagName("head")[0].appendChild(He),He}_setMetaElementAttributes(be,Te){return Object.keys(be).forEach(He=>Te.setAttribute(this._getMetaKeyMap(He),be[He])),Te}_parseSelector(be){const Te=be.name?"name":"property";return`${Te}="${be[Te]}"`}_containsAttributes(be,Te){return Object.keys(be).every(He=>Te.getAttribute(this._getMetaKeyMap(He))===be[He])}_getMetaKeyMap(be){return ei[be]||be}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function rn(){return new vn((0,e.LFG)(l.K0))}(),He},providedIn:"root"})}return We})();const ei={httpEquiv:"http-equiv"};let Ve=(()=>{class We{constructor(be){this._doc=be}getTitle(){return this._doc.title}setTitle(be){this._doc.title=be||""}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function Wn(){return new Ve((0,e.LFG)(l.K0))}(),He},providedIn:"root"})}return We})();typeof window<"u"&&window;let ai=(()=>{class We{static#e=this.\u0275fac=function(Te){return new(Te||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new(Te||We):e.LFG(oi),He},providedIn:"root"})}return We})(),oi=(()=>{class We extends ai{constructor(be){super(),this._doc=be}sanitize(be,Te){if(null==Te)return null;switch(be){case e.q3G.NONE:return Te;case e.q3G.HTML:return(0,e.qzn)(Te,"HTML")?(0,e.z3N)(Te):(0,e.EiD)(this._doc,String(Te)).toString();case e.q3G.STYLE:return(0,e.qzn)(Te,"Style")?(0,e.z3N)(Te):Te;case e.q3G.SCRIPT:if((0,e.qzn)(Te,"Script"))return(0,e.z3N)(Te);throw new e.vHH(5200,!1);case e.q3G.URL:return(0,e.qzn)(Te,"URL")?(0,e.z3N)(Te):(0,e.mCW)(String(Te));case e.q3G.RESOURCE_URL:if((0,e.qzn)(Te,"ResourceURL"))return(0,e.z3N)(Te);throw new e.vHH(5201,!1);default:throw new e.vHH(5202,!1)}}bypassSecurityTrustHtml(be){return(0,e.JVY)(be)}bypassSecurityTrustStyle(be){return(0,e.L6k)(be)}bypassSecurityTrustScript(be){return(0,e.eBb)(be)}bypassSecurityTrustUrl(be){return(0,e.LAX)(be)}bypassSecurityTrustResourceUrl(be){return(0,e.pB0)(be)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function di(We){return new oi(We.get(l.K0))}(e.LFG(e.zs3)),He},providedIn:"root"})}return We})()},1662:(ft,Ie,C)=>{"use strict";C.d(Ie,{gz:()=>wr,m2:()=>yo,OD:()=>$n,F0:()=>zr,rH:()=>oa,Bz:()=>Jl,lC:()=>_r});var e=C(5879),l=C(5592),D=C(4674),S=C(9666),w=C(2096),n=C(5619),Z=C(2572),ee=C(6973),re=C(5211),ue=C(4911),se=C(8407),te=C(8504),oe=C(6232),ce=C(3168),_e=C(8645),Re=C(7394),mt=C(6814),Ge=C(7398),Lt=C(4664),je=C(8180),Tt=C(7921),xt=C(2181),St=C(1631),Zt=C(1374),yt=C(6328),un=C(9397),Jt=C(6306),tn=C(6424),wn=C(3572),Ln=C(9360),Yn=C(8251);function ti(W){return W<=0?()=>oe.E:(0,Ln.e)((ne,V)=>{let ie=[];ne.subscribe((0,Yn.x)(V,xe=>{ie.push(xe),W{for(const xe of ie)V.next(xe);V.complete()},void 0,()=>{ie=null}))})}var gi=C(3026),Rn=C(2737),at=C(975),Be=C(4716),Ee=C(6196),$e=C(9773),me=C(7537),tt=C(6593);const he="primary",Ze=Symbol("RouteTitle");class rt{constructor(ne){this.params=ne||{}}has(ne){return Object.prototype.hasOwnProperty.call(this.params,ne)}get(ne){if(this.has(ne)){const V=this.params[ne];return Array.isArray(V)?V[0]:V}return null}getAll(ne){if(this.has(ne)){const V=this.params[ne];return Array.isArray(V)?V:[V]}return[]}get keys(){return Object.keys(this.params)}}function bt(W){return new rt(W)}function Nt(W,ne,V){const ie=V.path.split("/");if(ie.length>W.length||"full"===V.pathMatch&&(ne.hasChildren()||ie.lengthie[qe]===xe)}return W===ne}function Ot(W){return W.length>0?W[W.length-1]:null}function rn(W){return function I(W){return!!W&&(W instanceof l.y||(0,D.m)(W.lift)&&(0,D.m)(W.subscribe))}(W)?W:(0,e.QGY)(W)?(0,S.D)(Promise.resolve(W)):(0,w.of)(W)}const vn={exact:function ct(W,ne,V){if(!lt(W.segments,ne.segments)||!ae(W.segments,ne.segments,V)||W.numberOfChildren!==ne.numberOfChildren)return!1;for(const ie in ne.children)if(!W.children[ie]||!ct(W.children[ie],ne.children[ie],V))return!1;return!0},subset:Ce},ei={exact:function Ve(W,ne){return nn(W,ne)},subset:function Ct(W,ne){return Object.keys(ne).length<=Object.keys(W).length&&Object.keys(ne).every(V=>Dn(W[V],ne[V]))},ignored:()=>!0};function Wn(W,ne,V){return vn[V.paths](W.root,ne.root,V.matrixParams)&&ei[V.queryParams](W.queryParams,ne.queryParams)&&!("exact"===V.fragment&&W.fragment!==ne.fragment)}function Ce(W,ne,V){return J(W,ne,ne.segments,V)}function J(W,ne,V,ie){if(W.segments.length>V.length){const xe=W.segments.slice(0,V.length);return!(!lt(xe,V)||ne.hasChildren()||!ae(xe,V,ie))}if(W.segments.length===V.length){if(!lt(W.segments,V)||!ae(W.segments,V,ie))return!1;for(const xe in ne.children)if(!W.children[xe]||!Ce(W.children[xe],ne.children[xe],ie))return!1;return!0}{const xe=V.slice(0,W.segments.length),qe=V.slice(W.segments.length);return!!(lt(W.segments,xe)&&ae(W.segments,xe,ie)&&W.children[he])&&J(W.children[he],ne,qe,ie)}}function ae(W,ne,V){return ne.every((ie,xe)=>ei[V](W[xe].parameters,ie.parameters))}class Oe{constructor(ne=new ot([],{}),V={},ie=null){this.root=ne,this.queryParams=V,this.fragment=ie}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}toString(){return gn.serialize(this)}}class ot{constructor(ne,V){this.segments=ne,this.children=V,this.parent=null,Object.values(V).forEach(ie=>ie.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return An(this)}}class Se{constructor(ne,V){this.path=ne,this.parameters=V}get parameterMap(){return this._parameterMap||(this._parameterMap=bt(this.parameters)),this._parameterMap}toString(){return G(this)}}function lt(W,ne){return W.length===ne.length&&W.every((V,ie)=>V.path===ne[ie].path)}let Ut=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return new fn},providedIn:"root"})}return W})();class fn{parse(ne){const V=new Pn(ne);return new Oe(V.parseRootSegment(),V.parseQueryParams(),V.parseFragment())}serialize(ne){const V=`/${jn(ne.root,!0)}`,ie=function ve(W){const ne=Object.keys(W).map(V=>{const ie=W[V];return Array.isArray(ie)?ie.map(xe=>`${di(V)}=${di(xe)}`).join("&"):`${di(V)}=${di(ie)}`}).filter(V=>!!V);return ne.length?`?${ne.join("&")}`:""}(ne.queryParams);return`${V}${ie}${"string"==typeof ne.fragment?`#${function oi(W){return encodeURI(W)}(ne.fragment)}`:""}`}}const gn=new fn;function An(W){return W.segments.map(ne=>G(ne)).join("/")}function jn(W,ne){if(!W.hasChildren())return An(W);if(ne){const V=W.children[he]?jn(W.children[he],!1):"",ie=[];return Object.entries(W.children).forEach(([xe,qe])=>{xe!==he&&ie.push(`${xe}:${jn(qe,!1)}`)}),ie.length>0?`${V}(${ie.join("//")})`:V}{const V=function Bt(W,ne){let V=[];return Object.entries(W.children).forEach(([ie,xe])=>{ie===he&&(V=V.concat(ne(xe,ie)))}),Object.entries(W.children).forEach(([ie,xe])=>{ie!==he&&(V=V.concat(ne(xe,ie)))}),V}(W,(ie,xe)=>xe===he?[jn(W.children[he],!1)]:[`${xe}:${jn(ie,!1)}`]);return 1===Object.keys(W.children).length&&null!=W.children[he]?`${An(W)}/${V[0]}`:`${An(W)}/(${V.join("//")})`}}function ai(W){return encodeURIComponent(W).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function di(W){return ai(W).replace(/%3B/gi,";")}function Jn(W){return ai(W).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qt(W){return decodeURIComponent(W)}function _t(W){return qt(W.replace(/\+/g,"%20"))}function G(W){return`${Jn(W.path)}${function U(W){return Object.keys(W).map(ne=>`;${Jn(ne)}=${Jn(W[ne])}`).join("")}(W.parameters)}`}const Pe=/^[^\/()?;#]+/;function ut(W){const ne=W.match(Pe);return ne?ne[0]:""}const We=/^[^\/()?;=#]+/,be=/^[^=?&#]+/,He=/^[^&#]+/;class Pn{constructor(ne){this.url=ne,this.remaining=ne}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ot([],{}):new ot([],this.parseChildren())}parseQueryParams(){const ne={};if(this.consumeOptional("?"))do{this.parseQueryParam(ne)}while(this.consumeOptional("&"));return ne}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ne=[];for(this.peekStartsWith("(")||ne.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ne.push(this.parseSegment());let V={};this.peekStartsWith("/(")&&(this.capture("/"),V=this.parseParens(!0));let ie={};return this.peekStartsWith("(")&&(ie=this.parseParens(!1)),(ne.length>0||Object.keys(V).length>0)&&(ie[he]=new ot(ne,V)),ie}parseSegment(){const ne=ut(this.remaining);if(""===ne&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(ne),new Se(qt(ne),this.parseMatrixParams())}parseMatrixParams(){const ne={};for(;this.consumeOptional(";");)this.parseParam(ne);return ne}parseParam(ne){const V=function ze(W){const ne=W.match(We);return ne?ne[0]:""}(this.remaining);if(!V)return;this.capture(V);let ie="";if(this.consumeOptional("=")){const xe=ut(this.remaining);xe&&(ie=xe,this.capture(ie))}ne[qt(V)]=qt(ie)}parseQueryParam(ne){const V=function Te(W){const ne=W.match(be);return ne?ne[0]:""}(this.remaining);if(!V)return;this.capture(V);let ie="";if(this.consumeOptional("=")){const Pt=function Wt(W){const ne=W.match(He);return ne?ne[0]:""}(this.remaining);Pt&&(ie=Pt,this.capture(ie))}const xe=_t(V),qe=_t(ie);if(ne.hasOwnProperty(xe)){let Pt=ne[xe];Array.isArray(Pt)||(Pt=[Pt],ne[xe]=Pt),Pt.push(qe)}else ne[xe]=qe}parseParens(ne){const V={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ie=ut(this.remaining),xe=this.remaining[ie.length];if("/"!==xe&&")"!==xe&&";"!==xe)throw new e.vHH(4010,!1);let qe;ie.indexOf(":")>-1?(qe=ie.slice(0,ie.indexOf(":")),this.capture(qe),this.capture(":")):ne&&(qe=he);const Pt=this.parseChildren();V[qe]=1===Object.keys(Pt).length?Pt[he]:new ot([],Pt),this.consumeOptional("//")}return V}peekStartsWith(ne){return this.remaining.startsWith(ne)}consumeOptional(ne){return!!this.peekStartsWith(ne)&&(this.remaining=this.remaining.substring(ne.length),!0)}capture(ne){if(!this.consumeOptional(ne))throw new e.vHH(4011,!1)}}function wt(W){return W.segments.length>0?new ot([],{[he]:W}):W}function Yt(W){const ne={};for(const ie of Object.keys(W.children)){const qe=Yt(W.children[ie]);if(ie===he&&0===qe.segments.length&&qe.hasChildren())for(const[Pt,mn]of Object.entries(qe.children))ne[Pt]=mn;else(qe.segments.length>0||qe.hasChildren())&&(ne[ie]=qe)}return function fe(W){if(1===W.numberOfChildren&&W.children[he]){const ne=W.children[he];return new ot(W.segments.concat(ne.segments),ne.children)}return W}(new ot(W.segments,ne))}function Mt(W){return W instanceof Oe}function ht(W){let ne;const xe=wt(function V(qe){const Pt={};for(const hn of qe.children){const on=V(hn);Pt[hn.outlet]=on}const mn=new ot(qe.url,Pt);return qe===W&&(ne=mn),mn}(W.root));return ne??xe}function st(W,ne,V,ie){let xe=W;for(;xe.parent;)xe=xe.parent;if(0===ne.length)return _n(xe,xe,xe,V,ie);const qe=function ni(W){if("string"==typeof W[0]&&1===W.length&&"/"===W[0])return new On(!0,0,W);let ne=0,V=!1;const ie=W.reduce((xe,qe,Pt)=>{if("object"==typeof qe&&null!=qe){if(qe.outlets){const mn={};return Object.entries(qe.outlets).forEach(([hn,on])=>{mn[hn]="string"==typeof on?on.split("/"):on}),[...xe,{outlets:mn}]}if(qe.segmentPath)return[...xe,qe.segmentPath]}return"string"!=typeof qe?[...xe,qe]:0===Pt?(qe.split("/").forEach((mn,hn)=>{0==hn&&"."===mn||(0==hn&&""===mn?V=!0:".."===mn?ne++:""!=mn&&xe.push(mn))}),xe):[...xe,qe]},[]);return new On(V,ne,ie)}(ne);if(qe.toRoot())return _n(xe,xe,new ot([],{}),V,ie);const Pt=function fr(W,ne,V){if(W.isAbsolute)return new Vn(ne,!0,0);if(!V)return new Vn(ne,!1,NaN);if(null===V.parent)return new Vn(V,!0,0);const ie=It(W.commands[0])?0:1;return function ki(W,ne,V){let ie=W,xe=ne,qe=V;for(;qe>xe;){if(qe-=xe,ie=ie.parent,!ie)throw new e.vHH(4005,!1);xe=ie.segments.length}return new Vn(ie,!1,xe-qe)}(V,V.segments.length-1+ie,W.numberOfDoubleDots)}(qe,xe,W),mn=Pt.processChildren?Bi(Pt.segmentGroup,Pt.index,qe.commands):vr(Pt.segmentGroup,Pt.index,qe.commands);return _n(xe,Pt.segmentGroup,mn,V,ie)}function It(W){return"object"==typeof W&&null!=W&&!W.outlets&&!W.segmentPath}function cn(W){return"object"==typeof W&&null!=W&&W.outlets}function _n(W,ne,V,ie,xe){let Pt,qe={};ie&&Object.entries(ie).forEach(([hn,on])=>{qe[hn]=Array.isArray(on)?on.map(ji=>`${ji}`):`${on}`}),Pt=W===ne?V:En(W,ne,V);const mn=wt(Yt(Pt));return new Oe(mn,qe,xe)}function En(W,ne,V){const ie={};return Object.entries(W.children).forEach(([xe,qe])=>{ie[xe]=qe===ne?V:En(qe,ne,V)}),new ot(W.segments,ie)}class On{constructor(ne,V,ie){if(this.isAbsolute=ne,this.numberOfDoubleDots=V,this.commands=ie,ne&&ie.length>0&&It(ie[0]))throw new e.vHH(4003,!1);const xe=ie.find(cn);if(xe&&xe!==Ot(ie))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Vn{constructor(ne,V,ie){this.segmentGroup=ne,this.processChildren=V,this.index=ie}}function vr(W,ne,V){if(W||(W=new ot([],{})),0===W.segments.length&&W.hasChildren())return Bi(W,ne,V);const ie=function co(W,ne,V){let ie=0,xe=ne;const qe={match:!1,pathIndex:0,commandIndex:0};for(;xe=V.length)return qe;const Pt=W.segments[xe],mn=V[ie];if(cn(mn))break;const hn=`${mn}`,on=ie0&&void 0===hn)break;if(hn&&on&&"object"==typeof on&&void 0===on.outlets){if(!bo(hn,on,Pt))return qe;ie+=2}else{if(!bo(hn,{},Pt))return qe;ie++}xe++}return{match:!0,pathIndex:xe,commandIndex:ie}}(W,ne,V),xe=V.slice(ie.commandIndex);if(ie.match&&ie.pathIndexqe!==he)&&W.children[he]&&1===W.numberOfChildren&&0===W.children[he].segments.length){const qe=Bi(W.children[he],ne,V);return new ot(W.segments,qe.children)}return Object.entries(ie).forEach(([qe,Pt])=>{"string"==typeof Pt&&(Pt=[Pt]),null!==Pt&&(xe[qe]=vr(W.children[qe],ne,Pt))}),Object.entries(W.children).forEach(([qe,Pt])=>{void 0===ie[qe]&&(xe[qe]=Pt)}),new ot(W.segments,xe)}}function Ji(W,ne,V){const ie=W.segments.slice(0,ne);let xe=0;for(;xe{"string"==typeof ie&&(ie=[ie]),null!==ie&&(ne[V]=Ji(new ot([],{}),0,ie))}),ne}function _i(W){const ne={};return Object.entries(W).forEach(([V,ie])=>ne[V]=`${ie}`),ne}function bo(W,ne,V){return W==V.path&&nn(ne,V.parameters)}const pr="imperative";class br{constructor(ne,V){this.id=ne,this.url=V}}class $n extends br{constructor(ne,V,ie="imperative",xe=null){super(ne,V),this.type=0,this.navigationTrigger=ie,this.restoredState=xe}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yo extends br{constructor(ne,V,ie){super(ne,V),this.urlAfterRedirects=ie,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Fr extends br{constructor(ne,V,ie,xe){super(ne,V),this.reason=ie,this.code=xe,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class uo extends br{constructor(ne,V,ie,xe){super(ne,V),this.reason=ie,this.code=xe,this.type=16}}class ho extends br{constructor(ne,V,ie,xe){super(ne,V),this.error=ie,this.target=xe,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class to extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yr extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gs extends br{constructor(ne,V,ie,xe,qe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.shouldActivate=qe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ba extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xl extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class So{constructor(ne){this.route=ne,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ws{constructor(ne){this.route=ne,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ds{constructor(ne){this.snapshot=ne,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $s{constructor(ne){this.snapshot=ne,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Uo{constructor(ne){this.snapshot=ne,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jr{constructor(ne){this.snapshot=ne,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ga{constructor(ne,V,ie){this.routerEvent=ne,this.position=V,this.anchor=ie,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class kr{}class oo{constructor(ne){this.url=ne}}class Sa{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Vo,this.attachRef=null}}let Vo=(()=>{class W{constructor(){this.contexts=new Map}onChildOutletCreated(V,ie){const xe=this.getOrCreateContext(V);xe.outlet=ie,this.contexts.set(V,xe)}onChildOutletDestroyed(V){const ie=this.getContext(V);ie&&(ie.outlet=null,ie.attachRef=null)}onOutletDeactivated(){const V=this.contexts;return this.contexts=new Map,V}onOutletReAttached(V){this.contexts=V}getOrCreateContext(V){let ie=this.getContext(V);return ie||(ie=new Sa,this.contexts.set(V,ie)),ie}getContext(V){return this.contexts.get(V)||null}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();class oc{constructor(ne){this._root=ne}get root(){return this._root.value}parent(ne){const V=this.pathFromRoot(ne);return V.length>1?V[V.length-2]:null}children(ne){const V=Ks(ne,this._root);return V?V.children.map(ie=>ie.value):[]}firstChild(ne){const V=Ks(ne,this._root);return V&&V.children.length>0?V.children[0].value:null}siblings(ne){const V=Aa(ne,this._root);return V.length<2?[]:V[V.length-2].children.map(xe=>xe.value).filter(xe=>xe!==ne)}pathFromRoot(ne){return Aa(ne,this._root).map(V=>V.value)}}function Ks(W,ne){if(W===ne.value)return ne;for(const V of ne.children){const ie=Ks(W,V);if(ie)return ie}return null}function Aa(W,ne){if(W===ne.value)return[ne];for(const V of ne.children){const ie=Aa(W,V);if(ie.length)return ie.unshift(ne),ie}return[]}class qi{constructor(ne,V){this.value=ne,this.children=V}toString(){return`TreeNode(${this.value})`}}function Li(W){const ne={};return W&&W.children.forEach(V=>ne[V.value.outlet]=V),ne}class Yr extends oc{constructor(ne,V){super(ne),this.snapshot=V,ll(this,ne)}toString(){return this.snapshot.toString()}}function dr(W,ne){const V=function Ha(W,ne){const Pt=new Es([],{},{},"",{},he,ne,null,{});return new Js("",new qi(Pt,[]))}(0,ne),ie=new n.X([new Se("",{})]),xe=new n.X({}),qe=new n.X({}),Pt=new n.X({}),mn=new n.X(""),hn=new wr(ie,xe,Pt,mn,qe,he,ne,V.root);return hn.snapshot=V.root,new Yr(new qi(hn,[]),V)}class wr{constructor(ne,V,ie,xe,qe,Pt,mn,hn){this.urlSubject=ne,this.paramsSubject=V,this.queryParamsSubject=ie,this.fragmentSubject=xe,this.dataSubject=qe,this.outlet=Pt,this.component=mn,this._futureSnapshot=hn,this.title=this.dataSubject?.pipe((0,Ge.U)(on=>on[Ze]))??(0,w.of)(void 0),this.url=ne,this.params=V,this.queryParams=ie,this.fragment=xe,this.data=qe}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,Ge.U)(ne=>bt(ne)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ge.U)(ne=>bt(ne)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function al(W,ne="emptyOnly"){const V=W.pathFromRoot;let ie=0;if("always"!==ne)for(ie=V.length-1;ie>=1;){const xe=V[ie],qe=V[ie-1];if(xe.routeConfig&&""===xe.routeConfig.path)ie--;else{if(qe.component)break;ie--}}return function Vr(W){return W.reduce((ne,V)=>({params:{...ne.params,...V.params},data:{...ne.data,...V.data},resolve:{...V.data,...ne.resolve,...V.routeConfig?.data,...V._resolvedData}}),{params:{},data:{},resolve:{}})}(V.slice(ie))}class Es{get title(){return this.data?.[Ze]}constructor(ne,V,ie,xe,qe,Pt,mn,hn,on){this.url=ne,this.params=V,this.queryParams=ie,this.fragment=xe,this.data=qe,this.outlet=Pt,this.component=mn,this.routeConfig=hn,this._resolve=on}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=bt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(ie=>ie.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Js extends oc{constructor(ne,V){super(V),this.url=ne,ll(this,V)}toString(){return er(this._root)}}function ll(W,ne){ne.value._routerState=W,ne.children.forEach(V=>ll(W,V))}function er(W){const ne=W.children.length>0?` { ${W.children.map(er).join(", ")} } `:"";return`${W.value}${ne}`}function qn(W){if(W.snapshot){const ne=W.snapshot,V=W._futureSnapshot;W.snapshot=V,nn(ne.queryParams,V.queryParams)||W.queryParamsSubject.next(V.queryParams),ne.fragment!==V.fragment&&W.fragmentSubject.next(V.fragment),nn(ne.params,V.params)||W.paramsSubject.next(V.params),function Qt(W,ne){if(W.length!==ne.length)return!1;for(let V=0;Vnn(V.parameters,ne[ie].parameters))}(W.url,ne.url);return V&&!(!W.parent!=!ne.parent)&&(!W.parent||bi(W.parent,ne.parent))}let _r=(()=>{class W{constructor(){this.activated=null,this._activatedRoute=null,this.name=he,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.parentContexts=(0,e.f3M)(Vo),this.location=(0,e.f3M)(e.s_b),this.changeDetector=(0,e.f3M)(e.sBO),this.environmentInjector=(0,e.f3M)(e.lqb),this.inputBinder=(0,e.f3M)(jo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(V){if(V.name){const{firstChange:ie,previousValue:xe}=V.name;if(ie)return;this.isTrackedInParentContexts(xe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(xe)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(V){return this.parentContexts.getContext(V)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const V=this.parentContexts.getContext(this.name);V?.route&&(V.attachRef?this.attach(V.attachRef,V.route):this.activateWith(V.route,V.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,!1);this.location.detach();const V=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(V.instance),V}attach(V,ie){this.activated=V,this._activatedRoute=ie,this.location.insert(V.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(V.instance)}deactivate(){if(this.activated){const V=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(V)}}activateWith(V,ie){if(this.isActivated)throw new e.vHH(4013,!1);this._activatedRoute=V;const xe=this.location,Pt=V.snapshot.component,mn=this.parentContexts.getOrCreateContext(this.name).children,hn=new wo(V,mn,xe.injector);this.activated=xe.createComponent(Pt,{index:xe.length,injector:hn,environmentInjector:ie??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275dir=e.lG2({type:W,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.TTD]})}return W})();class wo{constructor(ne,V,ie){this.route=ne,this.childContexts=V,this.parent=ie}get(ne,V){return ne===wr?this.route:ne===Vo?this.childContexts:this.parent.get(ne,V)}}const jo=new e.OlP("");let no=(()=>{class W{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(V){this.unsubscribeFromRouteData(V),this.subscribeToRouteData(V)}unsubscribeFromRouteData(V){this.outletDataSubscriptions.get(V)?.unsubscribe(),this.outletDataSubscriptions.delete(V)}subscribeToRouteData(V){const{activatedRoute:ie}=V,xe=(0,Z.a)([ie.queryParams,ie.params,ie.data]).pipe((0,Lt.w)(([qe,Pt,mn],hn)=>(mn={...qe,...Pt,...mn},0===hn?(0,w.of)(mn):Promise.resolve(mn)))).subscribe(qe=>{if(!V.isActivated||!V.activatedComponentRef||V.activatedRoute!==ie||null===ie.component)return void this.unsubscribeFromRouteData(V);const Pt=(0,e.qFp)(ie.component);if(Pt)for(const{templateName:mn}of Pt.inputs)V.activatedComponentRef.setInput(mn,qe[mn]);else this.unsubscribeFromRouteData(V)});this.outletDataSubscriptions.set(V,xe)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac})}return W})();function nr(W,ne,V){if(V&&W.shouldReuseRoute(ne.value,V.value.snapshot)){const ie=V.value;ie._futureSnapshot=ne.value;const xe=function ps(W,ne,V){return ne.children.map(ie=>{for(const xe of V.children)if(W.shouldReuseRoute(ie.value,xe.value.snapshot))return nr(W,ie,xe);return nr(W,ie)})}(W,ne,V);return new qi(ie,xe)}{if(W.shouldAttach(ne.value)){const qe=W.retrieve(ne.value);if(null!==qe){const Pt=qe.route;return Pt.value._futureSnapshot=ne.value,Pt.children=ne.children.map(mn=>nr(W,mn)),Pt}}const ie=function va(W){return new wr(new n.X(W.url),new n.X(W.params),new n.X(W.queryParams),new n.X(W.fragment),new n.X(W.data),W.outlet,W.component,W)}(ne.value),xe=ne.children.map(qe=>nr(W,qe));return new qi(ie,xe)}}const Ti="ngNavigationCancelingError";function qs(W,ne){const{redirectTo:V,navigationBehaviorOptions:ie}=Mt(ne)?{redirectTo:ne,navigationBehaviorOptions:void 0}:ne,xe=ba(!1,0,ne);return xe.url=V,xe.navigationBehaviorOptions=ie,xe}function ba(W,ne,V){const ie=new Error("NavigationCancelingError: "+(W||""));return ie[Ti]=!0,ie.cancellationCode=ne,V&&(ie.url=V),ie}function wi(W){return W&&W[Ti]}let Oo=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275cmp=e.Xpm({type:W,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:1,vars:0,template:function(ie,xe){1&ie&&e._UZ(0,"router-outlet")},dependencies:[_r],encapsulation:2})}return W})();function Jo(W){const ne=W.children&&W.children.map(Jo),V=ne?{...W,children:ne}:{...W};return!V.component&&!V.loadComponent&&(ne||V.loadChildren)&&V.outlet&&V.outlet!==he&&(V.component=Oo),V}function Io(W){return W.outlet||he}function fo(W){if(!W)return null;if(W.routeConfig?._injector)return W.routeConfig._injector;for(let ne=W.parent;ne;ne=ne.parent){const V=ne.routeConfig;if(V?._loadedInjector)return V._loadedInjector;if(V?._injector)return V._injector}return null}class Co{constructor(ne,V,ie,xe,qe){this.routeReuseStrategy=ne,this.futureState=V,this.currState=ie,this.forwardEvent=xe,this.inputBindingEnabled=qe}activate(ne){const V=this.futureState._root,ie=this.currState?this.currState._root:null;this.deactivateChildRoutes(V,ie,ne),qn(this.futureState.root),this.activateChildRoutes(V,ie,ne)}deactivateChildRoutes(ne,V,ie){const xe=Li(V);ne.children.forEach(qe=>{const Pt=qe.value.outlet;this.deactivateRoutes(qe,xe[Pt],ie),delete xe[Pt]}),Object.values(xe).forEach(qe=>{this.deactivateRouteAndItsChildren(qe,ie)})}deactivateRoutes(ne,V,ie){const xe=ne.value,qe=V?V.value:null;if(xe===qe)if(xe.component){const Pt=ie.getContext(xe.outlet);Pt&&this.deactivateChildRoutes(ne,V,Pt.children)}else this.deactivateChildRoutes(ne,V,ie);else qe&&this.deactivateRouteAndItsChildren(V,ie)}deactivateRouteAndItsChildren(ne,V){ne.value.component&&this.routeReuseStrategy.shouldDetach(ne.value.snapshot)?this.detachAndStoreRouteSubtree(ne,V):this.deactivateRouteAndOutlet(ne,V)}detachAndStoreRouteSubtree(ne,V){const ie=V.getContext(ne.value.outlet),xe=ie&&ne.value.component?ie.children:V,qe=Li(ne);for(const Pt of Object.keys(qe))this.deactivateRouteAndItsChildren(qe[Pt],xe);if(ie&&ie.outlet){const Pt=ie.outlet.detach(),mn=ie.children.onOutletDeactivated();this.routeReuseStrategy.store(ne.value.snapshot,{componentRef:Pt,route:ne,contexts:mn})}}deactivateRouteAndOutlet(ne,V){const ie=V.getContext(ne.value.outlet),xe=ie&&ne.value.component?ie.children:V,qe=Li(ne);for(const Pt of Object.keys(qe))this.deactivateRouteAndItsChildren(qe[Pt],xe);ie&&(ie.outlet&&(ie.outlet.deactivate(),ie.children.onOutletDeactivated()),ie.attachRef=null,ie.route=null)}activateChildRoutes(ne,V,ie){const xe=Li(V);ne.children.forEach(qe=>{this.activateRoutes(qe,xe[qe.value.outlet],ie),this.forwardEvent(new Jr(qe.value.snapshot))}),ne.children.length&&this.forwardEvent(new $s(ne.value.snapshot))}activateRoutes(ne,V,ie){const xe=ne.value,qe=V?V.value:null;if(qn(xe),xe===qe)if(xe.component){const Pt=ie.getOrCreateContext(xe.outlet);this.activateChildRoutes(ne,V,Pt.children)}else this.activateChildRoutes(ne,V,ie);else if(xe.component){const Pt=ie.getOrCreateContext(xe.outlet);if(this.routeReuseStrategy.shouldAttach(xe.snapshot)){const mn=this.routeReuseStrategy.retrieve(xe.snapshot);this.routeReuseStrategy.store(xe.snapshot,null),Pt.children.onOutletReAttached(mn.contexts),Pt.attachRef=mn.componentRef,Pt.route=mn.route.value,Pt.outlet&&Pt.outlet.attach(mn.componentRef,mn.route.value),qn(mn.route.value),this.activateChildRoutes(ne,null,Pt.children)}else{const mn=fo(xe.snapshot);Pt.attachRef=null,Pt.route=xe,Pt.injector=mn,Pt.outlet&&Pt.outlet.activateWith(xe,Pt.injector),this.activateChildRoutes(ne,null,Pt.children)}}else this.activateChildRoutes(ne,null,ie)}}class Br{constructor(ne){this.path=ne,this.route=this.path[this.path.length-1]}}class ea{constructor(ne,V){this.component=ne,this.route=V}}function po(W,ne,V){const ie=W._root;return Ss(ie,ne?ne._root:null,V,[ie.value])}function qo(W,ne){const V=Symbol(),ie=ne.get(W,V);return ie===V?"function"!=typeof W||(0,e.Z0I)(W)?ne.get(W):W:ie}function Ss(W,ne,V,ie,xe={canDeactivateChecks:[],canActivateChecks:[]}){const qe=Li(ne);return W.children.forEach(Pt=>{(function ya(W,ne,V,ie,xe={canDeactivateChecks:[],canActivateChecks:[]}){const qe=W.value,Pt=ne?ne.value:null,mn=V?V.getContext(W.value.outlet):null;if(Pt&&qe.routeConfig===Pt.routeConfig){const hn=function sr(W,ne,V){if("function"==typeof V)return V(W,ne);switch(V){case"pathParamsChange":return!lt(W.url,ne.url);case"pathParamsOrQueryParamsChange":return!lt(W.url,ne.url)||!nn(W.queryParams,ne.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bi(W,ne)||!nn(W.queryParams,ne.queryParams);default:return!bi(W,ne)}}(Pt,qe,qe.routeConfig.runGuardsAndResolvers);hn?xe.canActivateChecks.push(new Br(ie)):(qe.data=Pt.data,qe._resolvedData=Pt._resolvedData),Ss(W,ne,qe.component?mn?mn.children:null:V,ie,xe),hn&&mn&&mn.outlet&&mn.outlet.isActivated&&xe.canDeactivateChecks.push(new ea(mn.outlet.component,Pt))}else Pt&&Oa(ne,mn,xe),xe.canActivateChecks.push(new Br(ie)),Ss(W,null,qe.component?mn?mn.children:null:V,ie,xe)})(Pt,qe[Pt.value.outlet],V,ie.concat([Pt.value]),xe),delete qe[Pt.value.outlet]}),Object.entries(qe).forEach(([Pt,mn])=>Oa(mn,V.getContext(Pt),xe)),xe}function Oa(W,ne,V){const ie=Li(W),xe=W.value;Object.entries(ie).forEach(([qe,Pt])=>{Oa(Pt,xe.component?ne?ne.children.getContext(qe):null:ne,V)}),V.canDeactivateChecks.push(new ea(xe.component&&ne&&ne.outlet&&ne.outlet.isActivated?ne.outlet.component:null,xe))}function Ua(W){return"function"==typeof W}function Qn(W){return W instanceof ee.K||"EmptyError"===W?.name}const Ni=Symbol("INITIAL_VALUE");function Zo(){return(0,Lt.w)(W=>(0,Z.a)(W.map(ne=>ne.pipe((0,je.q)(1),(0,Tt.O)(Ni)))).pipe((0,Ge.U)(ne=>{for(const V of ne)if(!0!==V){if(V===Ni)return Ni;if(!1===V||V instanceof Oe)return V}return!0}),(0,xt.h)(ne=>ne!==Ni),(0,je.q)(1)))}function wa(W){return(0,se.z)((0,un.b)(ne=>{if(Mt(ne))throw qs(0,ne)}),(0,Ge.U)(ne=>!0===ne))}class Pr{constructor(ne){this.segmentGroup=ne||null}}class Ms{constructor(ne){this.urlTree=ne}}function As(W){return(0,te._)(new Pr(W))}function qr(W){return(0,te._)(new Ms(W))}class Va{constructor(ne,V){this.urlSerializer=ne,this.urlTree=V}noMatchError(ne){return new e.vHH(4002,!1)}lineralizeSegments(ne,V){let ie=[],xe=V.root;for(;;){if(ie=ie.concat(xe.segments),0===xe.numberOfChildren)return(0,w.of)(ie);if(xe.numberOfChildren>1||!xe.children[he])return(0,te._)(new e.vHH(4e3,!1));xe=xe.children[he]}}applyRedirectCommands(ne,V,ie){return this.applyRedirectCreateUrlTree(V,this.urlSerializer.parse(V),ne,ie)}applyRedirectCreateUrlTree(ne,V,ie,xe){const qe=this.createSegmentGroup(ne,V.root,ie,xe);return new Oe(qe,this.createQueryParams(V.queryParams,this.urlTree.queryParams),V.fragment)}createQueryParams(ne,V){const ie={};return Object.entries(ne).forEach(([xe,qe])=>{if("string"==typeof qe&&qe.startsWith(":")){const mn=qe.substring(1);ie[xe]=V[mn]}else ie[xe]=qe}),ie}createSegmentGroup(ne,V,ie,xe){const qe=this.createSegments(ne,V.segments,ie,xe);let Pt={};return Object.entries(V.children).forEach(([mn,hn])=>{Pt[mn]=this.createSegmentGroup(ne,hn,ie,xe)}),new ot(qe,Pt)}createSegments(ne,V,ie,xe){return V.map(qe=>qe.path.startsWith(":")?this.findPosParam(ne,qe,xe):this.findOrReturn(qe,ie))}findPosParam(ne,V,ie){const xe=ie[V.path.substring(1)];if(!xe)throw new e.vHH(4001,!1);return xe}findOrReturn(ne,V){let ie=0;for(const xe of V){if(xe.path===ne.path)return V.splice(ie),xe;ie++}return ne}}const Sl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gl(W,ne,V,ie,xe){const qe=Hs(W,ne,V);return qe.matched?(ie=function Ko(W,ne){return W.providers&&!W._injector&&(W._injector=(0,e.MMx)(W.providers,ne,`Route: ${W.path}`)),W._injector??ne}(ne,ie),function Xo(W,ne,V,ie){const xe=ne.canMatch;if(!xe||0===xe.length)return(0,w.of)(!0);const qe=xe.map(Pt=>{const mn=qo(Pt,W);return rn(function le(W){return W&&Ua(W.canMatch)}(mn)?mn.canMatch(ne,V):W.runInContext(()=>mn(ne,V)))});return(0,w.of)(qe).pipe(Zo(),wa())}(ie,ne,V).pipe((0,Ge.U)(Pt=>!0===Pt?qe:{...Sl}))):(0,w.of)(qe)}function Hs(W,ne,V){if(""===ne.path)return"full"===ne.pathMatch&&(W.hasChildren()||V.length>0)?{...Sl}:{matched:!0,consumedSegments:[],remainingSegments:V,parameters:{},positionalParamSegments:{}};const xe=(ne.matcher||Nt)(V,W,ne);if(!xe)return{...Sl};const qe={};Object.entries(xe.posParams??{}).forEach(([mn,hn])=>{qe[mn]=hn.path});const Pt=xe.consumed.length>0?{...qe,...xe.consumed[xe.consumed.length-1].parameters}:qe;return{matched:!0,consumedSegments:xe.consumed,remainingSegments:V.slice(xe.consumed.length),parameters:Pt,positionalParamSegments:xe.posParams??{}}}function ja(W,ne,V,ie){return V.length>0&&function Wl(W,ne,V){return V.some(ie=>ns(W,ne,ie)&&Io(ie)!==he)}(W,V,ie)?{segmentGroup:new ot(ne,ts(ie,new ot(V,W.children))),slicedSegments:[]}:0===V.length&&function gs(W,ne,V){return V.some(ie=>ns(W,ne,ie))}(W,V,ie)?{segmentGroup:new ot(W.segments,es(W,0,V,ie,W.children)),slicedSegments:V}:{segmentGroup:new ot(W.segments,W.children),slicedSegments:V}}function es(W,ne,V,ie,xe){const qe={};for(const Pt of ie)if(ns(W,V,Pt)&&!xe[Io(Pt)]){const mn=new ot([],{});qe[Io(Pt)]=mn}return{...xe,...qe}}function ts(W,ne){const V={};V[he]=ne;for(const ie of W)if(""===ie.path&&Io(ie)!==he){const xe=new ot([],{});V[Io(ie)]=xe}return V}function ns(W,ne,V){return(!(W.hasChildren()||ne.length>0)||"full"!==V.pathMatch)&&""===V.path}class Za{constructor(ne,V,ie,xe,qe,Pt,mn){this.injector=ne,this.configLoader=V,this.rootComponentType=ie,this.config=xe,this.urlTree=qe,this.paramsInheritanceStrategy=Pt,this.urlSerializer=mn,this.allowRedirects=!0,this.applyRedirects=new Va(this.urlSerializer,this.urlTree)}noMatchError(ne){return new e.vHH(4002,!1)}recognize(){const ne=ja(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ne,he).pipe((0,Jt.K)(V=>{if(V instanceof Ms)return this.allowRedirects=!1,this.urlTree=V.urlTree,this.match(V.urlTree);throw V instanceof Pr?this.noMatchError(V):V}),(0,Ge.U)(V=>{const ie=new Es([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},he,this.rootComponentType,null,{}),xe=new qi(ie,V),qe=new Js("",xe),Pt=function Vt(W,ne,V=null,ie=null){return st(ht(W),ne,V,ie)}(ie,[],this.urlTree.queryParams,this.urlTree.fragment);return Pt.queryParams=this.urlTree.queryParams,qe.url=this.urlSerializer.serialize(Pt),this.inheritParamsAndData(qe._root),{state:qe,tree:Pt}}))}match(ne){return this.processSegmentGroup(this.injector,this.config,ne.root,he).pipe((0,Jt.K)(ie=>{throw ie instanceof Pr?this.noMatchError(ie):ie}))}inheritParamsAndData(ne){const V=ne.value,ie=al(V,this.paramsInheritanceStrategy);V.params=Object.freeze(ie.params),V.data=Object.freeze(ie.data),ne.children.forEach(xe=>this.inheritParamsAndData(xe))}processSegmentGroup(ne,V,ie,xe){return 0===ie.segments.length&&ie.hasChildren()?this.processChildren(ne,V,ie):this.processSegment(ne,V,ie,ie.segments,xe,!0)}processChildren(ne,V,ie){const xe=[];for(const qe of Object.keys(ie.children))"primary"===qe?xe.unshift(qe):xe.push(qe);return(0,S.D)(xe).pipe((0,yt.b)(qe=>{const Pt=ie.children[qe],mn=function Ys(W,ne){const V=W.filter(ie=>Io(ie)===ne);return V.push(...W.filter(ie=>Io(ie)!==ne)),V}(V,qe);return this.processSegmentGroup(ne,mn,Pt,qe)}),(0,tn.R)((qe,Pt)=>(qe.push(...Pt),qe)),(0,wn.d)(null),function dt(W,ne){const V=arguments.length>=2;return ie=>ie.pipe(W?(0,xt.h)((xe,qe)=>W(xe,qe,ie)):Rn.y,ti(1),V?(0,wn.d)(ne):(0,gi.T)(()=>new ee.K))}(),(0,St.z)(qe=>{if(null===qe)return As(ie);const Pt=Tr(qe);return function za(W){W.sort((ne,V)=>ne.value.outlet===he?-1:V.value.outlet===he?1:ne.value.outlet.localeCompare(V.value.outlet))}(Pt),(0,w.of)(Pt)}))}processSegment(ne,V,ie,xe,qe,Pt){return(0,S.D)(V).pipe((0,yt.b)(mn=>this.processSegmentAgainstRoute(mn._injector??ne,V,mn,ie,xe,qe,Pt).pipe((0,Jt.K)(hn=>{if(hn instanceof Pr)return(0,w.of)(null);throw hn}))),(0,Zt.P)(mn=>!!mn),(0,Jt.K)(mn=>{if(Qn(mn))return function Os(W,ne,V){return 0===ne.length&&!W.children[V]}(ie,xe,qe)?(0,w.of)([]):As(ie);throw mn}))}processSegmentAgainstRoute(ne,V,ie,xe,qe,Pt,mn){return function vc(W,ne,V,ie){return!!(Io(W)===ie||ie!==he&&ns(ne,V,W))&&("**"===W.path||Hs(ne,W,V).matched)}(ie,xe,qe,Pt)?void 0===ie.redirectTo?this.matchSegmentAgainstRoute(ne,xe,ie,qe,Pt,mn):mn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ne,xe,V,ie,qe,Pt):As(xe):As(xe)}expandSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt){return"**"===xe.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ne,ie,xe,Pt):this.expandRegularSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ne,V,ie,xe){const qe=this.applyRedirects.applyRedirectCommands([],ie.redirectTo,{});return ie.redirectTo.startsWith("/")?qr(qe):this.applyRedirects.lineralizeSegments(ie,qe).pipe((0,St.z)(Pt=>{const mn=new ot(Pt,{});return this.processSegment(ne,V,mn,Pt,xe,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt){const{matched:mn,consumedSegments:hn,remainingSegments:on,positionalParamSegments:ji}=Hs(V,xe,qe);if(!mn)return As(V);const Gr=this.applyRedirects.applyRedirectCommands(hn,xe.redirectTo,ji);return xe.redirectTo.startsWith("/")?qr(Gr):this.applyRedirects.lineralizeSegments(xe,Gr).pipe((0,St.z)($i=>this.processSegment(ne,ie,V,$i.concat(on),Pt,!1)))}matchSegmentAgainstRoute(ne,V,ie,xe,qe,Pt){let mn;if("**"===ie.path){const hn=xe.length>0?Ot(xe).parameters:{},on=new Es(xe,hn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kl(ie),Io(ie),ie.component??ie._loadedComponent??null,ie,Rs(ie));mn=(0,w.of)({snapshot:on,consumedSegments:[],remainingSegments:[]}),V.children={}}else mn=Gl(V,ie,xe,ne).pipe((0,Ge.U)(({matched:hn,consumedSegments:on,remainingSegments:ji,parameters:Gr})=>hn?{snapshot:new Es(on,Gr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kl(ie),Io(ie),ie.component??ie._loadedComponent??null,ie,Rs(ie)),consumedSegments:on,remainingSegments:ji}:null));return mn.pipe((0,Lt.w)(hn=>null===hn?As(V):this.getChildConfig(ne=ie._injector??ne,ie,xe).pipe((0,Lt.w)(({routes:on})=>{const ji=ie._loadedInjector??ne,{snapshot:Gr,consumedSegments:$i,remainingSegments:mi}=hn,{segmentGroup:Ps,slicedSegments:fl}=ja(V,$i,mi,on);if(0===fl.length&&Ps.hasChildren())return this.processChildren(ji,on,Ps).pipe((0,Ge.U)(Ja=>null===Ja?null:[new qi(Gr,Ja)]));if(0===on.length&&0===fl.length)return(0,w.of)([new qi(Gr,[])]);const Rl=Io(ie)===qe;return this.processSegment(ji,on,Ps,fl,Rl?he:qe,!0).pipe((0,Ge.U)(Ja=>[new qi(Gr,Ja)]))}))))}getChildConfig(ne,V,ie){return V.children?(0,w.of)({routes:V.children,injector:ne}):V.loadChildren?void 0!==V._loadedRoutes?(0,w.of)({routes:V._loadedRoutes,injector:V._loadedInjector}):function El(W,ne,V,ie){const xe=ne.canLoad;if(void 0===xe||0===xe.length)return(0,w.of)(!0);const qe=xe.map(Pt=>{const mn=qo(Pt,W);return rn(function ta(W){return W&&Ua(W.canLoad)}(mn)?mn.canLoad(ne,V):W.runInContext(()=>mn(ne,V)))});return(0,w.of)(qe).pipe(Zo(),wa())}(ne,V,ie).pipe((0,St.z)(xe=>xe?this.configLoader.loadChildren(ne,V).pipe((0,un.b)(qe=>{V._loadedRoutes=qe.routes,V._loadedInjector=qe.injector})):function Ro(W){return(0,te._)(ba(!1,3))}())):(0,w.of)({routes:[],injector:ne})}}function $l(W){const ne=W.value.routeConfig;return ne&&""===ne.path}function Tr(W){const ne=[],V=new Set;for(const ie of W){if(!$l(ie)){ne.push(ie);continue}const xe=ne.find(qe=>ie.value.routeConfig===qe.value.routeConfig);void 0!==xe?(xe.children.push(...ie.children),V.add(xe)):ne.push(ie)}for(const ie of V){const xe=Tr(ie.children);ne.push(new qi(ie.value,xe))}return ne.filter(ie=>!V.has(ie))}function Kl(W){return W.data||{}}function Rs(W){return W.resolve||{}}function is(W){return"string"==typeof W.title||null===W.title}function ro(W){return(0,Lt.w)(ne=>{const V=W(ne);return V?(0,S.D)(V).pipe((0,Ge.U)(()=>ne)):(0,w.of)(ne)})}const K=new e.OlP("ROUTES");let Ue=(()=>{class W{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,e.f3M)(e.Sil)}loadComponent(V){if(this.componentLoaders.get(V))return this.componentLoaders.get(V);if(V._loadedComponent)return(0,w.of)(V._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(V);const ie=rn(V.loadComponent()).pipe((0,Ge.U)(kt),(0,un.b)(qe=>{this.onLoadEndListener&&this.onLoadEndListener(V),V._loadedComponent=qe}),(0,Be.x)(()=>{this.componentLoaders.delete(V)})),xe=new ce.c(ie,()=>new _e.x).pipe((0,Ee.x)());return this.componentLoaders.set(V,xe),xe}loadChildren(V,ie){if(this.childrenLoaders.get(ie))return this.childrenLoaders.get(ie);if(ie._loadedRoutes)return(0,w.of)({routes:ie._loadedRoutes,injector:ie._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(ie);const qe=function ge(W,ne,V,ie){return rn(W.loadChildren()).pipe((0,Ge.U)(kt),(0,St.z)(xe=>xe instanceof e.YKP||Array.isArray(xe)?(0,w.of)(xe):(0,S.D)(ne.compileModuleAsync(xe))),(0,Ge.U)(xe=>{ie&&ie(W);let qe,Pt,mn=!1;return Array.isArray(xe)?(Pt=xe,!0):(qe=xe.create(V).injector,Pt=qe.get(K,[],{optional:!0,self:!0}).flat()),{routes:Pt.map(Jo),injector:qe}}))}(ie,this.compiler,V,this.onLoadEndListener).pipe((0,Be.x)(()=>{this.childrenLoaders.delete(ie)})),Pt=new ce.c(qe,()=>new _e.x).pipe((0,Ee.x)());return this.childrenLoaders.set(ie,Pt),Pt}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function kt(W){return function Ne(W){return W&&"object"==typeof W&&"default"in W}(W)?W.default:W}let pn=(()=>{class W{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new _e.x,this.transitionAbortSubject=new _e.x,this.configLoader=(0,e.f3M)(Ue),this.environmentInjector=(0,e.f3M)(e.lqb),this.urlSerializer=(0,e.f3M)(Ut),this.rootContexts=(0,e.f3M)(Vo),this.inputBindingEnabled=null!==(0,e.f3M)(jo,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,w.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=xe=>this.events.next(new Ws(xe)),this.configLoader.onLoadStartListener=xe=>this.events.next(new So(xe))}complete(){this.transitions?.complete()}handleNavigationRequest(V){const ie=++this.navigationId;this.transitions?.next({...this.transitions.value,...V,id:ie})}setupNavigations(V,ie,xe){return this.transitions=new n.X({id:0,currentUrlTree:ie,currentRawUrl:ie,currentBrowserUrl:ie,extractedUrl:V.urlHandlingStrategy.extract(ie),urlAfterRedirects:V.urlHandlingStrategy.extract(ie),rawUrl:ie,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:pr,restoredState:null,currentSnapshot:xe.snapshot,targetSnapshot:null,currentRouterState:xe,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,xt.h)(qe=>0!==qe.id),(0,Ge.U)(qe=>({...qe,extractedUrl:V.urlHandlingStrategy.extract(qe.rawUrl)})),(0,Lt.w)(qe=>{this.currentTransition=qe;let Pt=!1,mn=!1;return(0,w.of)(qe).pipe((0,un.b)(hn=>{this.currentNavigation={id:hn.id,initialUrl:hn.rawUrl,extractedUrl:hn.extractedUrl,trigger:hn.source,extras:hn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Lt.w)(hn=>{const on=hn.currentBrowserUrl.toString(),ji=!V.navigated||hn.extractedUrl.toString()!==on||on!==hn.currentUrlTree.toString();if(!ji&&"reload"!==(hn.extras.onSameUrlNavigation??V.onSameUrlNavigation)){const $i="";return this.events.next(new uo(hn.id,this.urlSerializer.serialize(hn.rawUrl),$i,0)),hn.resolve(null),oe.E}if(V.urlHandlingStrategy.shouldProcessUrl(hn.rawUrl))return(0,w.of)(hn).pipe((0,Lt.w)($i=>{const mi=this.transitions?.getValue();return this.events.next(new $n($i.id,this.urlSerializer.serialize($i.extractedUrl),$i.source,$i.restoredState)),mi!==this.transitions?.getValue()?oe.E:Promise.resolve($i)}),function xa(W,ne,V,ie,xe,qe){return(0,St.z)(Pt=>function Is(W,ne,V,ie,xe,qe,Pt="emptyOnly"){return new Za(W,ne,V,ie,xe,Pt,qe).recognize()}(W,ne,V,ie,Pt.extractedUrl,xe,qe).pipe((0,Ge.U)(({state:mn,tree:hn})=>({...Pt,targetSnapshot:mn,urlAfterRedirects:hn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,V.config,this.urlSerializer,V.paramsInheritanceStrategy),(0,un.b)($i=>{qe.targetSnapshot=$i.targetSnapshot,qe.urlAfterRedirects=$i.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:$i.urlAfterRedirects};const mi=new to($i.id,this.urlSerializer.serialize($i.extractedUrl),this.urlSerializer.serialize($i.urlAfterRedirects),$i.targetSnapshot);this.events.next(mi)}));if(ji&&V.urlHandlingStrategy.shouldProcessUrl(hn.currentRawUrl)){const{id:$i,extractedUrl:mi,source:Ps,restoredState:fl,extras:Rl}=hn,Ja=new $n($i,this.urlSerializer.serialize(mi),Ps,fl);this.events.next(Ja);const xd=dr(0,this.rootComponentType).snapshot;return this.currentTransition=qe={...hn,targetSnapshot:xd,urlAfterRedirects:mi,extras:{...Rl,skipLocationChange:!1,replaceUrl:!1}},(0,w.of)(qe)}{const $i="";return this.events.next(new uo(hn.id,this.urlSerializer.serialize(hn.extractedUrl),$i,1)),hn.resolve(null),oe.E}}),(0,un.b)(hn=>{const on=new yr(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects),hn.targetSnapshot);this.events.next(on)}),(0,Ge.U)(hn=>(this.currentTransition=qe={...hn,guards:po(hn.targetSnapshot,hn.currentSnapshot,this.rootContexts)},qe)),function Cl(W,ne){return(0,St.z)(V=>{const{targetSnapshot:ie,currentSnapshot:xe,guards:{canActivateChecks:qe,canDeactivateChecks:Pt}}=V;return 0===Pt.length&&0===qe.length?(0,w.of)({...V,guardsResult:!0}):function ia(W,ne,V,ie){return(0,S.D)(W).pipe((0,St.z)(xe=>function kc(W,ne,V,ie,xe){const qe=ne&&ne.routeConfig?ne.routeConfig.canDeactivate:null;if(!qe||0===qe.length)return(0,w.of)(!0);const Pt=qe.map(mn=>{const hn=fo(ne)??xe,on=qo(mn,hn);return rn(function Fe(W){return W&&Ua(W.canDeactivate)}(on)?on.canDeactivate(W,ne,V,ie):hn.runInContext(()=>on(W,ne,V,ie))).pipe((0,Zt.P)())});return(0,w.of)(Pt).pipe(Zo())}(xe.component,xe.route,V,ne,ie)),(0,Zt.P)(xe=>!0!==xe,!0))}(Pt,ie,xe,W).pipe((0,St.z)(mn=>mn&&function Ia(W){return"boolean"==typeof W}(mn)?function sc(W,ne,V,ie){return(0,S.D)(ne).pipe((0,yt.b)(xe=>(0,re.z)(function Tl(W,ne){return null!==W&&ne&&ne(new Ds(W)),(0,w.of)(!0)}(xe.route.parent,ie),function Lr(W,ne){return null!==W&&ne&&ne(new Uo(W)),(0,w.of)(!0)}(xe.route,ie),function Qo(W,ne,V){const ie=ne[ne.length-1],qe=ne.slice(0,ne.length-1).reverse().map(Pt=>function io(W){const ne=W.routeConfig?W.routeConfig.canActivateChild:null;return ne&&0!==ne.length?{node:W,guards:ne}:null}(Pt)).filter(Pt=>null!==Pt).map(Pt=>(0,ue.P)(()=>{const mn=Pt.guards.map(hn=>{const on=fo(Pt.node)??V,ji=qo(hn,on);return rn(function Ae(W){return W&&Ua(W.canActivateChild)}(ji)?ji.canActivateChild(ie,W):on.runInContext(()=>ji(ie,W))).pipe((0,Zt.P)())});return(0,w.of)(mn).pipe(Zo())}));return(0,w.of)(qe).pipe(Zo())}(W,xe.path,V),function Dl(W,ne,V){const ie=ne.routeConfig?ne.routeConfig.canActivate:null;if(!ie||0===ie.length)return(0,w.of)(!0);const xe=ie.map(qe=>(0,ue.P)(()=>{const Pt=fo(ne)??V,mn=qo(qe,Pt);return rn(function na(W){return W&&Ua(W.canActivate)}(mn)?mn.canActivate(ne,W):Pt.runInContext(()=>mn(ne,W))).pipe((0,Zt.P)())}));return(0,w.of)(xe).pipe(Zo())}(W,xe.route,V))),(0,Zt.P)(xe=>!0!==xe,!0))}(ie,qe,W,ne):(0,w.of)(mn)),(0,Ge.U)(mn=>({...V,guardsResult:mn})))})}(this.environmentInjector,hn=>this.events.next(hn)),(0,un.b)(hn=>{if(qe.guardsResult=hn.guardsResult,Mt(hn.guardsResult))throw qs(0,hn.guardsResult);const on=new Gs(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects),hn.targetSnapshot,!!hn.guardsResult);this.events.next(on)}),(0,xt.h)(hn=>!!hn.guardsResult||(this.cancelNavigationTransition(hn,"",3),!1)),ro(hn=>{if(hn.guards.canActivateChecks.length)return(0,w.of)(hn).pipe((0,un.b)(on=>{const ji=new Ba(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot);this.events.next(ji)}),(0,Lt.w)(on=>{let ji=!1;return(0,w.of)(on).pipe(function Ga(W,ne){return(0,St.z)(V=>{const{targetSnapshot:ie,guards:{canActivateChecks:xe}}=V;if(!xe.length)return(0,w.of)(V);let qe=0;return(0,S.D)(xe).pipe((0,yt.b)(Pt=>function Wa(W,ne,V,ie){const xe=W.routeConfig,qe=W._resolve;return void 0!==xe?.title&&!is(xe)&&(qe[Ze]=xe.title),function bc(W,ne,V,ie){const xe=function ra(W){return[...Object.keys(W),...Object.getOwnPropertySymbols(W)]}(W);if(0===xe.length)return(0,w.of)({});const qe={};return(0,S.D)(xe).pipe((0,St.z)(Pt=>function Al(W,ne,V,ie){const xe=fo(ne)??ie,qe=qo(W,xe);return rn(qe.resolve?qe.resolve(ne,V):xe.runInContext(()=>qe(ne,V)))}(W[Pt],ne,V,ie).pipe((0,Zt.P)(),(0,un.b)(mn=>{qe[Pt]=mn}))),ti(1),(0,at.h)(qe),(0,Jt.K)(Pt=>Qn(Pt)?oe.E:(0,te._)(Pt)))}(qe,W,ne,ie).pipe((0,Ge.U)(Pt=>(W._resolvedData=Pt,W.data=al(W,V).resolve,xe&&is(xe)&&(W.data[Ze]=xe.title),null)))}(Pt.route,ie,W,ne)),(0,un.b)(()=>qe++),ti(1),(0,St.z)(Pt=>qe===xe.length?(0,w.of)(V):oe.E))})}(V.paramsInheritanceStrategy,this.environmentInjector),(0,un.b)({next:()=>ji=!0,complete:()=>{ji||this.cancelNavigationTransition(on,"",2)}}))}),(0,un.b)(on=>{const ji=new xl(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot);this.events.next(ji)}))}),ro(hn=>{const on=ji=>{const Gr=[];ji.routeConfig?.loadComponent&&!ji.routeConfig._loadedComponent&&Gr.push(this.configLoader.loadComponent(ji.routeConfig).pipe((0,un.b)($i=>{ji.component=$i}),(0,Ge.U)(()=>{})));for(const $i of ji.children)Gr.push(...on($i));return Gr};return(0,Z.a)(on(hn.targetSnapshot.root)).pipe((0,wn.d)(),(0,je.q)(1))}),ro(()=>this.afterPreactivation()),(0,Ge.U)(hn=>{const on=function Ao(W,ne,V){const ie=nr(W,ne._root,V?V._root:void 0);return new Yr(ie,ne)}(V.routeReuseStrategy,hn.targetSnapshot,hn.currentRouterState);return this.currentTransition=qe={...hn,targetRouterState:on},qe}),(0,un.b)(()=>{this.events.next(new kr)}),((W,ne,V,ie)=>(0,Ge.U)(xe=>(new Co(ne,xe.targetRouterState,xe.currentRouterState,V,ie).activate(W),xe)))(this.rootContexts,V.routeReuseStrategy,hn=>this.events.next(hn),this.inputBindingEnabled),(0,je.q)(1),(0,un.b)({next:hn=>{Pt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new yo(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects))),V.titleStrategy?.updateTitle(hn.targetRouterState.snapshot),hn.resolve(!0)},complete:()=>{Pt=!0}}),(0,$e.R)(this.transitionAbortSubject.pipe((0,un.b)(hn=>{throw hn}))),(0,Be.x)(()=>{Pt||mn||this.cancelNavigationTransition(qe,"",1),this.currentNavigation?.id===qe.id&&(this.currentNavigation=null)}),(0,Jt.K)(hn=>{if(mn=!0,wi(hn))this.events.next(new Fr(qe.id,this.urlSerializer.serialize(qe.extractedUrl),hn.message,hn.cancellationCode)),function Qs(W){return wi(W)&&Mt(W.url)}(hn)?this.events.next(new oo(hn.url)):qe.resolve(!1);else{this.events.next(new ho(qe.id,this.urlSerializer.serialize(qe.extractedUrl),hn,qe.targetSnapshot??void 0));try{qe.resolve(V.errorHandler(hn))}catch(on){qe.reject(on)}}return oe.E}))}))}cancelNavigationTransition(V,ie,xe){const qe=new Fr(V.id,this.urlSerializer.serialize(V.extractedUrl),ie,xe);this.events.next(qe),V.resolve(!1)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function Sn(W){return W!==pr}let li=(()=>{class W{buildTitle(V){let ie,xe=V.root;for(;void 0!==xe;)ie=this.getResolvedTitleForRoute(xe)??ie,xe=xe.children.find(qe=>qe.outlet===he);return ie}getResolvedTitleForRoute(V){return V.data[Ze]}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(ur)},providedIn:"root"})}return W})(),ur=(()=>{class W extends li{constructor(V){super(),this.title=V}updateTitle(V){const ie=this.buildTitle(V);void 0!==ie&&this.title.setTitle(ie)}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(tt.Dx))};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})(),hr=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(xi)},providedIn:"root"})}return W})();class ar{shouldDetach(ne){return!1}store(ne,V){}shouldAttach(ne){return!1}retrieve(ne){return null}shouldReuseRoute(ne,V){return ne.routeConfig===V.routeConfig}}let xi=(()=>{class W extends ar{static#e=this.\u0275fac=function(){let V;return function(xe){return(V||(V=e.n5z(W)))(xe||W)}}();static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();const Ar=new e.OlP("",{providedIn:"root",factory:()=>({})});let Nr=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(mr)},providedIn:"root"})}return W})(),mr=(()=>{class W{shouldProcessUrl(V){return!0}extract(V){return V}merge(V,ie){return V}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();var vs=function(W){return W[W.COMPLETE=0]="COMPLETE",W[W.FAILED=1]="FAILED",W[W.REDIRECTING=2]="REDIRECTING",W}(vs||{});function bs(W,ne){W.events.pipe((0,xt.h)(V=>V instanceof yo||V instanceof Fr||V instanceof ho||V instanceof uo),(0,Ge.U)(V=>V instanceof yo||V instanceof uo?vs.COMPLETE:V instanceof Fr&&(0===V.code||1===V.code)?vs.REDIRECTING:vs.FAILED),(0,xt.h)(V=>V!==vs.REDIRECTING),(0,je.q)(1)).subscribe(()=>{ne()})}function $a(W){throw W}function Ui(W,ne,V){return ne.parse("/")}const Ma={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let zr=(()=>{class W{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,e.f3M)(e.c2e),this.isNgZoneEnabled=!1,this._events=new _e.x,this.options=(0,e.f3M)(Ar,{optional:!0})||{},this.pendingTasks=(0,e.f3M)(e.HDt),this.errorHandler=this.options.errorHandler||$a,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Ui,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,e.f3M)(Nr),this.routeReuseStrategy=(0,e.f3M)(hr),this.titleStrategy=(0,e.f3M)(li),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,e.f3M)(K,{optional:!0})?.flat()??[],this.navigationTransitions=(0,e.f3M)(pn),this.urlSerializer=(0,e.f3M)(Ut),this.location=(0,e.f3M)(mt.Ye),this.componentInputBindingEnabled=!!(0,e.f3M)(jo,{optional:!0}),this.eventsSubscription=new Re.w0,this.isNgZoneEnabled=(0,e.f3M)(e.R0b)instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Oe,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dr(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(V=>{this.lastSuccessfulId=V.id,this.currentPageId=this.browserPageId},V=>{this.console.warn(`Unhandled Navigation Error: ${V}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const V=this.navigationTransitions.events.subscribe(ie=>{try{const{currentTransition:xe}=this.navigationTransitions;if(null===xe)return void(yi(ie)&&this._events.next(ie));if(ie instanceof $n)Sn(xe.source)&&(this.browserUrlTree=xe.extractedUrl);else if(ie instanceof uo)this.rawUrlTree=xe.rawUrl;else if(ie instanceof to){if("eager"===this.urlUpdateStrategy){if(!xe.extras.skipLocationChange){const qe=this.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl);this.setBrowserUrl(qe,xe)}this.browserUrlTree=xe.urlAfterRedirects}}else if(ie instanceof kr)this.currentUrlTree=xe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl),this.routerState=xe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(xe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,xe),this.browserUrlTree=xe.urlAfterRedirects);else if(ie instanceof Fr)0!==ie.code&&1!==ie.code&&(this.navigated=!0),(3===ie.code||2===ie.code)&&this.restoreHistory(xe);else if(ie instanceof oo){const qe=this.urlHandlingStrategy.merge(ie.url,xe.currentRawUrl),Pt={skipLocationChange:xe.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Sn(xe.source)};this.scheduleNavigation(qe,pr,null,Pt,{resolve:xe.resolve,reject:xe.reject,promise:xe.promise})}ie instanceof ho&&this.restoreHistory(xe,!0),ie instanceof yo&&(this.navigated=!0),yi(ie)&&this._events.next(ie)}catch(xe){this.navigationTransitions.transitionAbortSubject.next(xe)}});this.eventsSubscription.add(V)}resetRootComponentType(V){this.routerState.root.component=V,this.navigationTransitions.rootComponentType=V}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const V=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),pr,V)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(V=>{const ie="popstate"===V.type?"popstate":"hashchange";"popstate"===ie&&setTimeout(()=>{this.navigateToSyncWithBrowser(V.url,ie,V.state)},0)}))}navigateToSyncWithBrowser(V,ie,xe){const qe={replaceUrl:!0},Pt=xe?.navigationId?xe:null;if(xe){const hn={...xe};delete hn.navigationId,delete hn.\u0275routerPageId,0!==Object.keys(hn).length&&(qe.state=hn)}const mn=this.parseUrl(V);this.scheduleNavigation(mn,ie,Pt,qe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(V){this.config=V.map(Jo),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(V,ie={}){const{relativeTo:xe,queryParams:qe,fragment:Pt,queryParamsHandling:mn,preserveFragment:hn}=ie,on=hn?this.currentUrlTree.fragment:Pt;let Gr,ji=null;switch(mn){case"merge":ji={...this.currentUrlTree.queryParams,...qe};break;case"preserve":ji=this.currentUrlTree.queryParams;break;default:ji=qe||null}null!==ji&&(ji=this.removeEmptyProps(ji));try{Gr=ht(xe?xe.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof V[0]||!V[0].startsWith("/"))&&(V=[]),Gr=this.currentUrlTree.root}return st(Gr,V,ji,on??null)}navigateByUrl(V,ie={skipLocationChange:!1}){const xe=Mt(V)?V:this.parseUrl(V),qe=this.urlHandlingStrategy.merge(xe,this.rawUrlTree);return this.scheduleNavigation(qe,pr,null,ie)}navigate(V,ie={skipLocationChange:!1}){return function Qi(W){for(let ne=0;ne{const qe=V[xe];return null!=qe&&(ie[xe]=qe),ie},{})}scheduleNavigation(V,ie,xe,qe,Pt){if(this.disposed)return Promise.resolve(!1);let mn,hn,on;Pt?(mn=Pt.resolve,hn=Pt.reject,on=Pt.promise):on=new Promise((Gr,$i)=>{mn=Gr,hn=$i});const ji=this.pendingTasks.add();return bs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ji))}),this.navigationTransitions.handleNavigationRequest({source:ie,restoredState:xe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:V,extras:qe,resolve:mn,reject:hn,promise:on,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),on.catch(Gr=>Promise.reject(Gr))}setBrowserUrl(V,ie){const xe=this.urlSerializer.serialize(V);if(this.location.isCurrentPathEqualTo(xe)||ie.extras.replaceUrl){const Pt={...ie.extras.state,...this.generateNgRouterState(ie.id,this.browserPageId)};this.location.replaceState(xe,"",Pt)}else{const qe={...ie.extras.state,...this.generateNgRouterState(ie.id,this.browserPageId+1)};this.location.go(xe,"",qe)}}restoreHistory(V,ie=!1){if("computed"===this.canceledNavigationResolution){const qe=this.currentPageId-this.browserPageId;0!==qe?this.location.historyGo(qe):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===qe&&(this.resetState(V),this.browserUrlTree=V.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(ie&&this.resetState(V),this.resetUrlToCurrentUrlTree())}resetState(V){this.routerState=V.currentRouterState,this.currentUrlTree=V.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,V.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(V,ie){return"computed"===this.canceledNavigationResolution?{navigationId:V,\u0275routerPageId:ie}:{navigationId:V}}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function yi(W){return!(W instanceof kr||W instanceof oo)}let oa=(()=>{class W{constructor(V,ie,xe,qe,Pt,mn){this.router=V,this.route=ie,this.tabIndexAttribute=xe,this.renderer=qe,this.el=Pt,this.locationStrategy=mn,this.href=null,this.commands=null,this.onChanges=new _e.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const hn=Pt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===hn||"area"===hn,this.isAnchorElement?this.subscription=V.events.subscribe(on=>{on instanceof yo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(V){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",V)}ngOnChanges(V){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(V){null!=V?(this.commands=Array.isArray(V)?V:[V],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(V,ie,xe,qe,Pt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==V||ie||xe||qe||Pt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const V=null===this.href?null:(0,e.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",V)}applyAttributeValue(V,ie){const xe=this.renderer,qe=this.el.nativeElement;null!==ie?xe.setAttribute(qe,V,ie):xe.removeAttribute(qe,V)}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:this.preserveFragment})}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.Y36(zr),e.Y36(wr),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(mt.S$))};static#t=this.\u0275dir=e.lG2({type:W,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(ie,xe){1&ie&&e.NdJ("click",function(Pt){return xe.onClick(Pt.button,Pt.ctrlKey,Pt.shiftKey,Pt.altKey,Pt.metaKey)}),2&ie&&e.uIk("target",xe.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",e.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",e.VuI],replaceUrl:["replaceUrl","replaceUrl",e.VuI],routerLink:"routerLink"},standalone:!0,features:[e.Xq5,e.TTD]})}return W})();class Wi{}let ko=(()=>{class W{constructor(V,ie,xe,qe,Pt){this.router=V,this.injector=xe,this.preloadingStrategy=qe,this.loader=Pt}setUpPreloading(){this.subscription=this.router.events.pipe((0,xt.h)(V=>V instanceof yo),(0,yt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(V,ie){const xe=[];for(const qe of ie){qe.providers&&!qe._injector&&(qe._injector=(0,e.MMx)(qe.providers,V,`Route: ${qe.path}`));const Pt=qe._injector??V,mn=qe._loadedInjector??Pt;(qe.loadChildren&&!qe._loadedRoutes&&void 0===qe.canLoad||qe.loadComponent&&!qe._loadedComponent)&&xe.push(this.preloadConfig(Pt,qe)),(qe.children||qe._loadedRoutes)&&xe.push(this.processRoutes(mn,qe.children??qe._loadedRoutes))}return(0,S.D)(xe).pipe((0,me.J)())}preloadConfig(V,ie){return this.preloadingStrategy.preload(ie,()=>{let xe;xe=ie.loadChildren&&void 0===ie.canLoad?this.loader.loadChildren(V,ie):(0,w.of)(null);const qe=xe.pipe((0,St.z)(Pt=>null===Pt?(0,w.of)(void 0):(ie._loadedRoutes=Pt.routes,ie._loadedInjector=Pt.injector,this.processRoutes(Pt.injector??V,Pt.routes))));if(ie.loadComponent&&!ie._loadedComponent){const Pt=this.loader.loadComponent(ie);return(0,S.D)([qe,Pt]).pipe((0,me.J)())}return qe})}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(zr),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Wi),e.LFG(Ue))};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();const rs=new e.OlP("");let ul=(()=>{class W{constructor(V,ie,xe,qe,Pt={}){this.urlSerializer=V,this.transitions=ie,this.viewportScroller=xe,this.zone=qe,this.options=Pt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Pt.scrollPositionRestoration=Pt.scrollPositionRestoration||"disabled",Pt.anchorScrolling=Pt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(V=>{V instanceof $n?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=V.navigationTrigger,this.restoredId=V.restoredState?V.restoredState.navigationId:0):V instanceof yo?(this.lastId=V.id,this.scheduleScrollEvent(V,this.urlSerializer.parse(V.urlAfterRedirects).fragment)):V instanceof uo&&0===V.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(V,this.urlSerializer.parse(V.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(V=>{V instanceof ga&&(V.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(V.position):V.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(V.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(V,ie){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ga(V,"popstate"===this.lastSource?this.store[this.restoredId]:null,ie))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(ie){e.$Z()};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac})}return W})();function Vs(W,ne){return{\u0275kind:W,\u0275providers:ne}}function lc(){const W=(0,e.f3M)(e.zs3);return ne=>{const V=W.get(e.z2F);if(ne!==V.components[0])return;const ie=W.get(zr),xe=W.get(Ei);1===W.get(Ca)&&ie.initialNavigation(),W.get(sa,null,e.XFs.Optional)?.setUpPreloading(),W.get(rs,null,e.XFs.Optional)?.init(),ie.resetRootComponentType(V.componentTypes[0]),xe.closed||(xe.next(),xe.complete(),xe.unsubscribe())}}const Ei=new e.OlP("",{factory:()=>new _e.x}),Ca=new e.OlP("",{providedIn:"root",factory:()=>1}),sa=new e.OlP("");function cc(W){return Vs(0,[{provide:sa,useExisting:ko},{provide:Wi,useExisting:W}])}const Ol=new e.OlP("ROUTER_FORROOT_GUARD"),kn=[mt.Ye,{provide:Ut,useClass:fn},zr,Vo,{provide:wr,useFactory:function Us(W){return W.routerState.root},deps:[zr]},Ue,[]];function Fi(){return new e.PXZ("Router",zr)}let Jl=(()=>{class W{constructor(V){}static forRoot(V,ie){return{ngModule:W,providers:[kn,[],{provide:K,multi:!0,useValue:V},{provide:Ol,useFactory:gt,deps:[[zr,new e.FiY,new e.tp0]]},{provide:Ar,useValue:ie||{}},ie?.useHash?{provide:mt.S$,useClass:mt.Do}:{provide:mt.S$,useClass:mt.b0},{provide:rs,useFactory:()=>{const W=(0,e.f3M)(mt.EM),ne=(0,e.f3M)(e.R0b),V=(0,e.f3M)(Ar),ie=(0,e.f3M)(pn),xe=(0,e.f3M)(Ut);return V.scrollOffset&&W.setOffset(V.scrollOffset),new ul(xe,ie,W,ne,V)}},ie?.preloadingStrategy?cc(ie.preloadingStrategy).\u0275providers:[],{provide:e.PXZ,multi:!0,useFactory:Fi},ie?.initialNavigation?la(ie):[],ie?.bindToComponentInputs?Vs(8,[no,{provide:jo,useExisting:no}]).\u0275providers:[],[{provide:Ra,useFactory:lc},{provide:e.tb,multi:!0,useExisting:Ra}]]}}static forChild(V){return{ngModule:W,providers:[{provide:K,multi:!0,useValue:V}]}}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(Ol,8))};static#t=this.\u0275mod=e.oAB({type:W});static#n=this.\u0275inj=e.cJS({})}return W})();function gt(W){return"guarded"}function la(W){return["disabled"===W.initialNavigation?Vs(3,[{provide:e.ip1,multi:!0,useFactory:()=>{const ne=(0,e.f3M)(zr);return()=>{ne.setUpLocationChangeListener()}}},{provide:Ca,useValue:2}]).\u0275providers:[],"enabledBlocking"===W.initialNavigation?Vs(2,[{provide:Ca,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:ne=>{const V=ne.get(mt.V_,Promise.resolve());return()=>V.then(()=>new Promise(ie=>{const xe=ne.get(zr),qe=ne.get(Ei);bs(xe,()=>{ie(!0)}),ne.get(pn).afterPreactivation=()=>(ie(!0),qe.closed?(0,w.of)(void 0):qe),xe.initialNavigation()}))}}]).\u0275providers:[]]}const Ra=new e.OlP("")},9299:(ft,Ie,C)=>{"use strict";C.d(Ie,{u:()=>Mc,d:()=>dd});var e=C(5861),l=C(5879);function n(Ye,it=new Set){const pt=[Ye],sn=new Set;let Bn=0;for(;pt.length>Bn;){const ri=pt[Bn++];if(!sn.has(ri)&&Z(ri)&&!it.has(ri))if(sn.add(ri),Symbol.iterator in ri)try{for(const Hn of ri)pt.push(Hn)}catch{}else for(const Hn in ri)"defaultValue"!==Hn&&pt.push(ri[Hn])}return sn}function Z(Ye){const it=Object.prototype.toString.call(Ye),pt=typeof Ye;return!("number"===pt||"boolean"===pt||"string"===pt||"symbol"===pt||"function"===pt||"[object Date]"===it||"[object RegExp]"===it||"[object Module]"===it||null==Ye||Ye._watchdogExcluded||Ye instanceof EventTarget||Ye instanceof Event)}Symbol("MainQueueId");class se{constructor(it){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof it.crashNumberLimit?it.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof it.minimumNonErrorTimePeriod?it.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=pt=>{const sn="error"in pt?pt.error:pt.reason;sn instanceof Error&&this._handleError(sn,pt)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(it,pt){this._listeners[it]||(this._listeners[it]=[]),this._listeners[it].push(pt)}off(it,pt){this._listeners[it]=this._listeners[it].filter(sn=>sn!==pt)}_fire(it,...pt){const sn=this._listeners[it]||[];for(const Bn of sn)Bn.apply(this,[null,...pt])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(it,pt){if(this._shouldReactToError(it)){this.crashes.push({message:it.message,stack:it.stack,filename:pt instanceof ErrorEvent?pt.filename:void 0,lineno:pt instanceof ErrorEvent?pt.lineno:void 0,colno:pt instanceof ErrorEvent?pt.colno:void 0,date:this._now()});const sn=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:it,causesRestart:sn}),sn?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(it){return it.is&&it.is("CKEditorError")&&null!=it.context&&"ready"===this.state&&this._isErrorComingFromThisItem(it)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}const oe=function te(Ye){var it=typeof Ye;return null!=Ye&&("object"==it||"function"==it)},_e="object"==typeof global&&global&&global.Object===Object&&global;var Re="object"==typeof self&&self&&self.Object===Object&&self;const Ge=_e||Re||Function("return this")(),je=function(){return Ge.Date.now()};var Tt=/\s/;var Zt=/^\s+/;const un=function yt(Ye){return Ye&&Ye.slice(0,function xt(Ye){for(var it=Ye.length;it--&&Tt.test(Ye.charAt(it)););return it}(Ye)+1).replace(Zt,"")},tn=Ge.Symbol;var wn=Object.prototype,Ln=wn.hasOwnProperty,Yn=wn.toString,ti=tn?tn.toStringTag:void 0;var at=Object.prototype.toString;var tt=tn?tn.toStringTag:void 0;const Ze=function he(Ye){return null==Ye?void 0===Ye?"[object Undefined]":"[object Null]":tt&&tt in Object(Ye)?function gi(Ye){var it=Ln.call(Ye,ti),pt=Ye[ti];try{Ye[ti]=void 0;var sn=!0}catch{}var Bn=Yn.call(Ye);return sn&&(it?Ye[ti]=pt:delete Ye[ti]),Bn}(Ye):function Be(Ye){return at.call(Ye)}(Ye)},bt=function rt(Ye){return null!=Ye&&"object"==typeof Ye};var Ot=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,vn=/^0o[0-7]+$/i,ei=parseInt;const Ve=function Wn(Ye){if("number"==typeof Ye)return Ye;if(function Qt(Ye){return"symbol"==typeof Ye||bt(Ye)&&"[object Symbol]"==Ze(Ye)}(Ye))return NaN;if(oe(Ye)){var it="function"==typeof Ye.valueOf?Ye.valueOf():Ye;Ye=oe(it)?it+"":it}if("string"!=typeof Ye)return 0===Ye?Ye:+Ye;Ye=un(Ye);var pt=rn.test(Ye);return pt||vn.test(Ye)?ei(Ye.slice(2),pt?2:8):Ot.test(Ye)?NaN:+Ye};var Ct=Math.max,Ce=Math.min;const Se=function ot(Ye,it,pt){var sn=!0,Bn=!0;if("function"!=typeof Ye)throw new TypeError("Expected a function");return oe(pt)&&(sn="leading"in pt?!!pt.leading:sn,Bn="trailing"in pt?!!pt.trailing:Bn),function J(Ye,it,pt){var sn,Bn,ri,Hn,hi,Ci,Hi=0,Wr=!1,Ns=!1,Na=!0;if("function"!=typeof Ye)throw new TypeError("Expected a function");function Fl(cs){var gc=sn,vl=Bn;return sn=Bn=void 0,Hi=cs,Hn=Ye.apply(vl,gc)}function Da(cs){var gc=cs-Ci;return void 0===Ci||gc>=it||gc<0||Ns&&cs-Hi>=ri}function gl(){var cs=je();if(Da(cs))return Kc(cs);hi=setTimeout(gl,function $c(cs){var Yl=it-(cs-Ci);return Ns?Ce(Yl,ri-(cs-Hi)):Yl}(cs))}function Kc(cs){return hi=void 0,Na&&sn?Fl(cs):(sn=Bn=void 0,Hn)}function Ic(){var cs=je(),gc=Da(cs);if(sn=arguments,Bn=this,Ci=cs,gc){if(void 0===hi)return function ec(cs){return Hi=cs,hi=setTimeout(gl,it),Wr?Fl(cs):Hn}(Ci);if(Ns)return clearTimeout(hi),hi=setTimeout(gl,it),Fl(Ci)}return void 0===hi&&(hi=setTimeout(gl,it)),Hn}return it=Ve(it)||0,oe(pt)&&(Wr=!!pt.leading,ri=(Ns="maxWait"in pt)?Ct(Ve(pt.maxWait)||0,it):ri,Na="trailing"in pt?!!pt.trailing:Na),Ic.cancel=function Qd(){void 0!==hi&&clearTimeout(hi),Hi=0,sn=Ci=Bn=hi=void 0},Ic.flush=function Cc(){return void 0===hi?Hn:Kc(je())},Ic}(Ye,it,{leading:sn,maxWait:it,trailing:Bn})},lt=function Ft(Ye,it){return function(pt){return Ye(it(pt))}},Ut=lt(Object.getPrototypeOf,Object);var jn=Function.prototype.toString,ai=Object.prototype.hasOwnProperty,di=jn.call(Object);const _t=function qt(Ye){return bt(Ye)&&1===Ye.nodeType&&!function oi(Ye){if(!bt(Ye)||"[object Object]"!=Ze(Ye))return!1;var it=Ut(Ye);if(null===it)return!0;var pt=ai.call(it,"constructor")&&it.constructor;return"function"==typeof pt&&pt instanceof pt&&jn.call(pt)==di}(Ye)},Pe=function ve(Ye,it){return Ye===it||Ye!=Ye&&it!=it},We=function ut(Ye,it){for(var pt=Ye.length;pt--;)if(Pe(Ye[pt][0],it))return pt;return-1};var be=Array.prototype.splice;function Vt(Ye){var it=-1,pt=null==Ye?0:Ye.length;for(this.clear();++it-1},Vt.prototype.set=function fe(Ye,it){var pt=this.__data__,sn=We(pt,Ye);return sn<0?(++this.size,pt.push([Ye,it])):pt[sn][1]=it,this};const ht=Vt,co=function Bi(Ye){if(!oe(Ye))return!1;var it=Ze(Ye);return"[object Function]"==it||"[object GeneratorFunction]"==it||"[object AsyncFunction]"==it||"[object Proxy]"==it};var Ye,Ji=Ge["__core-js_shared__"],_i=(Ye=/[^.]+$/.exec(Ji&&Ji.keys&&Ji.keys.IE_PROTO||""))?"Symbol(src)_1."+Ye:"";var $n=Function.prototype.toString;const Fr=function yo(Ye){if(null!=Ye){try{return $n.call(Ye)}catch{}try{return Ye+""}catch{}}return""};var ho=/^\[object .+?Constructor\]$/,xl=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ws=function So(Ye){return!(!oe(Ye)||function bo(Ye){return!!_i&&_i in Ye}(Ye))&&(co(Ye)?xl:ho).test(Fr(Ye))},Jr=function Uo(Ye,it){var pt=function Ds(Ye,it){return Ye?.[it]}(Ye,it);return Ws(pt)?pt:void 0},kr=Jr(Ge,"Map"),fs=Jr(Object,"create");var Li=Object.prototype.hasOwnProperty;var wr=Object.prototype.hasOwnProperty;function er(Ye){var it=-1,pt=null==Ye?0:Ye.length;for(this.clear();++it-1&&Ye%1==0&&Ye-1&&Ye%1==0&&Ye<=9007199254740991};var Tr={};Tr["[object Float32Array]"]=Tr["[object Float64Array]"]=Tr["[object Int8Array]"]=Tr["[object Int16Array]"]=Tr["[object Int32Array]"]=Tr["[object Uint8Array]"]=Tr["[object Uint8ClampedArray]"]=Tr["[object Uint16Array]"]=Tr["[object Uint32Array]"]=!0,Tr["[object Arguments]"]=Tr["[object Array]"]=Tr["[object ArrayBuffer]"]=Tr["[object Boolean]"]=Tr["[object DataView]"]=Tr["[object Date]"]=Tr["[object Error]"]=Tr["[object Function]"]=Tr["[object Map]"]=Tr["[object Number]"]=Tr["[object Object]"]=Tr["[object RegExp]"]=Tr["[object Set]"]=Tr["[object String]"]=Tr["[object WeakMap]"]=!1;const xa=function Rs(Ye){return function(it){return Ye(it)}};var Ga="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wa=Ga&&"object"==typeof module&&module&&!module.nodeType&&module,ra=Wa&&Wa.exports===Ga&&_e.process;const is=function(){try{return Wa&&Wa.require&&Wa.require("util").types||ra&&ra.binding&&ra.binding("util")}catch{}}();var ro=is&&is.isTypedArray;const Ue=ro?xa(ro):function Lc(Ye){return bt(Ye)&&El(Ye.length)&&!!Tr[Ze(Ye)]};var Ne=Object.prototype.hasOwnProperty;const pn=function kt(Ye,it){var pt=Ae(Ye),sn=!pt&&ta(Ye),Bn=!pt&&!sn&&ia(Ye),ri=!pt&&!sn&&!Bn&&Ue(Ye),Hn=pt||sn||Bn||ri,hi=Hn?function po(Ye,it){for(var pt=-1,sn=Array(Ye);++ptit.create(sn,Bn)),this._destructor=sn=>sn.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(it){this._creator=it}setDestructor(it){this._destructor=it}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(it=>{console.error("An error happened during the editor destroying.",it)}).then(()=>{const it={},pt=[],sn=this._config.rootsAttributes||{},Bn={};for(const[Hn,hi]of Object.entries(this._data.roots))hi.isLoaded?(it[Hn]="",Bn[Hn]=sn[Hn]||{}):pt.push(Hn);const ri={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:pt,rootsAttributes:Bn,_watchdogInitialData:this._data};return delete ri.initialData,ri.extraPlugins.push(qd),this._initUsingData?this.create(it,ri,ri.context):_t(this._elementOrData)?this.create(this._elementOrData,ri,ri.context):this.create(this._editables,ri,ri.context)}).then(()=>{this._fire("restart")})}create(it=this._elementOrData,pt=this._config,sn){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=it,this._initUsingData="string"==typeof it||Object.keys(it).length>0&&"string"==typeof Object.values(it)[0],this._config=this._cloneEditorConfiguration(pt)||{},this._config.context=sn,this._creator(it,this._config))).then(Bn=>{this._editor=Bn,Bn.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=Bn.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const it=this._editor;return this._editor=null,it.model.document.off("change:data",this._throttledSave),this._destructor(it)})}_save(){const it=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=it}catch(pt){console.error(pt,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(it){this._excludedProps=it}_getData(){const it=this._editor,pt=it.model.document.roots.filter(hi=>hi.isAttached()&&"$graveyard"!=hi.rootName),{plugins:sn}=it,Bn=sn.has("CommentsRepository")&&sn.get("CommentsRepository"),ri=sn.has("TrackChanges")&&sn.get("TrackChanges"),Hn={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};pt.forEach(hi=>{Hn.roots[hi.rootName]={content:JSON.stringify(Array.from(hi.getChildren())),attributes:JSON.stringify(Array.from(hi.getAttributes())),isLoaded:hi._isLoaded}});for(const hi of it.model.markers)hi._affectsData&&(Hn.markers[hi.name]={rangeJSON:hi.getRange().toJSON(),usingOperation:hi._managedUsingOperations,affectsData:hi._affectsData});return Bn&&(Hn.commentThreads=JSON.stringify(Bn.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),ri&&(Hn.suggestions=JSON.stringify(ri.getSuggestions({toJSON:!0,skipNotAttached:!0}))),Hn}_getEditables(){const it={};for(const pt of this.editor.model.document.getRootNames()){const sn=this.editor.ui.getEditableElement(pt);sn&&(it[pt]=sn)}return it}_isErrorComingFromThisItem(it){return function ee(Ye,it,pt=new Set){if(Ye===it&&function ue(Ye){return"object"==typeof Ye&&null!==Ye}(Ye))return!0;const sn=n(Ye,pt),Bn=n(it,pt);for(const ri of sn)if(Bn.has(ri))return!0;return!1}(this._editor,it.context,this._excludedProps)}_cloneEditorConfiguration(it){return function Jd(Ye,it){return Go(Ye,5,it="function"==typeof it?it:void 0)}(it,(pt,sn)=>{if(_t(pt)||"context"===sn)return pt})}}class qd{constructor(it){this.editor=it,this._data=it.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",it=>{it.stop(),this.editor.model.enqueueChange({isUndoable:!1},pt=>{this._restoreCollaborationData(),this._restoreEditorData(pt)}),this.editor.data.fire("ready")},{priority:999})}_createNode(it,pt){if("name"in pt){const sn=it.createElement(pt.name,pt.attributes);if(pt.children)for(const Bn of pt.children)sn._appendChild(this._createNode(it,Bn));return sn}return it.createText(pt.data,pt.attributes)}_restoreEditorData(it){const pt=this.editor;Object.entries(this._data.roots).forEach(([sn,{content:Bn,attributes:ri}])=>{const Hn=JSON.parse(Bn),hi=JSON.parse(ri),Ci=pt.model.document.getRoot(sn);for(const[Hi,Wr]of hi)it.setAttribute(Hi,Wr,Ci);for(const Hi of Hn){const Wr=this._createNode(it,Hi);it.insert(Wr,Ci,"end")}}),Object.entries(this._data.markers).forEach(([sn,Bn])=>{const{document:ri}=pt.model,{rangeJSON:{start:Hn,end:hi},...Ci}=Bn,Hi=ri.getRoot(Hn.root),Wr=it.createPositionFromPath(Hi,Hn.path,Hn.stickiness),Ns=it.createPositionFromPath(Hi,hi.path,hi.stickiness),Na=it.createRange(Wr,Ns);it.addMarker(sn,{range:Na,...Ci})})}_restoreCollaborationData(){const it=JSON.parse(this._data.commentThreads),pt=JSON.parse(this._data.suggestions);it.forEach(sn=>{const Bn=this.editor.config.get("collaboration.channelId"),ri=this.editor.plugins.get("CommentsRepository");ri.hasCommentThread(sn.threadId)&&ri.getCommentThread(sn.threadId).remove(),ri.addCommentThread({channelId:Bn,...sn})}),pt.forEach(sn=>{const Bn=this.editor.plugins.get("TrackChangesEditing");Bn.hasSuggestion(sn.id)?Bn.getSuggestion(sn.id).attributes=sn.attributes:Bn.addSuggestionData(sn)})}}var ml=C(1374),Oc=C(6223),Au=C(6814);function iu(Ye,it){}const pi=new Array(256).fill(0).map((Ye,it)=>("0"+it.toString(16)).slice(-2)),Xr="Lock from Angular integration (@ckeditor/ckeditor5-angular)";let Mc=(()=>{class Ye{constructor(pt,sn){this.config={},this.data="",this.tagName="div",this.disableTwoWayDataBinding=!1,this.ready=new l.vpe,this.change=new l.vpe,this.blur=new l.vpe,this.focus=new l.vpe,this.error=new l.vpe,this.initiallyDisabled=!1,this.isEditorSettingData=!1,this.id=function Wc(){const Ye=4294967296*Math.random()>>>0,it=4294967296*Math.random()>>>0,pt=4294967296*Math.random()>>>0,sn=4294967296*Math.random()>>>0;return"e"+pi[Ye>>0&255]+pi[Ye>>8&255]+pi[Ye>>16&255]+pi[Ye>>24&255]+pi[it>>0&255]+pi[it>>8&255]+pi[it>>16&255]+pi[it>>24&255]+pi[pt>>0&255]+pi[pt>>8&255]+pi[pt>>16&255]+pi[pt>>24&255]+pi[sn>>0&255]+pi[sn>>8&255]+pi[sn>>16&255]+pi[sn>>24&255]}(),this.ngZone=sn,this.elementRef=pt;const{CKEDITOR_VERSION:Bn}=window;if(Bn){const[ri]=Bn.split(".").map(Number);ri<37&&console.warn("The component requires using CKEditor 5 in version 37 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')}set disabled(pt){this.setDisabledState(pt)}get disabled(){return this.editorInstance?this.editorInstance.isReadOnly:this.initiallyDisabled}get editorInstance(){let pt=this.editorWatchdog;return this.watchdog&&(pt=this.watchdog._watchdogs.get(this.id)),pt?pt.editor:null}getId(){return this.id}ngOnChanges(pt){Object.prototype.hasOwnProperty.call(pt,"data")&&pt.data&&!pt.data.isFirstChange()&&this.writeValue(pt.data.currentValue)}ngAfterViewInit(){this.attachToWatchdog()}ngOnDestroy(){var pt=this;return(0,e.Z)(function*(){pt.watchdog?yield pt.watchdog.remove(pt.id):pt.editorWatchdog&&pt.editorWatchdog.editor&&(yield pt.editorWatchdog.destroy(),pt.editorWatchdog=void 0)})()}writeValue(pt){null===pt&&(pt=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.data.set(pt),this.isEditorSettingData=!1):(this.data=pt,this.ready.pipe((0,ml.P)()).subscribe(sn=>{sn.data.set(this.data)}))}registerOnChange(pt){this.cvaOnChange=pt}registerOnTouched(pt){this.cvaOnTouched=pt}setDisabledState(pt){this.editorInstance&&(pt?this.editorInstance.enableReadOnlyMode(Xr):this.editorInstance.disableReadOnlyMode(Xr)),this.initiallyDisabled=pt}attachToWatchdog(){var pt=this;const sn=(Ci,Hi)=>this.ngZone.runOutsideAngular((0,e.Z)(function*(){pt.elementRef.nativeElement.appendChild(Ci);const Wr=yield pt.editor.create(Ci,Hi);return pt.initiallyDisabled&&Wr.enableReadOnlyMode(Xr),pt.ngZone.run(()=>{pt.ready.emit(Wr)}),pt.setUpEditorEvents(Wr),Wr})),Bn=function(){var Ci=(0,e.Z)(function*(Hi){yield Hi.destroy(),pt.elementRef.nativeElement.removeChild(pt.editorElement)});return function(Wr){return Ci.apply(this,arguments)}}(),ri=Ci=>{(function No(Ye){return Ye.observed||Ye.observers.length>0})(this.error)&&this.ngZone.run(()=>this.error.emit(Ci))},Hn=document.createElement(this.tagName),hi=this.getConfig();if(this.editorElement=Hn,this.watchdog)this.watchdog.add({id:this.id,type:"editor",creator:sn,destructor:Bn,sourceElementOrData:Hn,config:hi}).catch(Ci=>{ri(Ci)}),this.watchdog.on("itemError",(Ci,{itemId:Hi})=>{Hi===this.id&&ri()});else{const Ci=new Gc(this.editor,this.editorWatchdogConfig);Ci.setCreator(sn),Ci.setDestructor(Bn),Ci.on("error",ri),this.editorWatchdog=Ci,this.ngZone.runOutsideAngular(()=>{Ci.create(Hn,hi).catch(Hi=>{ri(Hi)})})}}getConfig(){if(this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");const pt={...this.config},sn=this.config.initialData||this.data;return sn&&(pt.initialData=sn),pt}setUpEditorEvents(pt){const Bn=pt.editing.view.document;pt.model.document.on("change:data",ri=>{this.ngZone.run(()=>{if(!this.disableTwoWayDataBinding){if(this.cvaOnChange&&!this.isEditorSettingData){const Hn=pt.data.get();this.cvaOnChange(Hn)}this.change.emit({event:ri,editor:pt})}})}),Bn.on("focus",ri=>{this.ngZone.run(()=>{this.focus.emit({event:ri,editor:pt})})}),Bn.on("blur",ri=>{this.ngZone.run(()=>{this.cvaOnTouched&&this.cvaOnTouched(),this.blur.emit({event:ri,editor:pt})})})}}return Ye.\u0275fac=function(pt){return new(pt||Ye)(l.Y36(l.SBq),l.Y36(l.R0b))},Ye.\u0275cmp=l.Xpm({type:Ye,selectors:[["ckeditor"]],inputs:{editor:"editor",config:"config",data:"data",tagName:"tagName",watchdog:"watchdog",editorWatchdogConfig:"editorWatchdogConfig",disableTwoWayDataBinding:"disableTwoWayDataBinding",disabled:"disabled"},outputs:{ready:"ready",change:"change",blur:"blur",focus:"focus",error:"error"},features:[l._Bn([{provide:Oc.JU,useExisting:(0,l.Gpc)(()=>Ye),multi:!0}]),l.TTD],decls:1,vars:0,template:function(pt,sn){1&pt&&l.YNc(0,iu,0,0,"ng-template")},encapsulation:2}),Ye})(),dd=(()=>{class Ye{}return Ye.\u0275fac=function(pt){return new(pt||Ye)},Ye.\u0275mod=l.oAB({type:Ye}),Ye.\u0275inj=l.cJS({imports:[[Oc.u5,Au.ez]]}),Ye})()},4807:(ft,Ie,C)=>{"use strict";C.d(Ie,{A0:()=>Pn,ir:()=>ot,w9:()=>Te});var e=C(5879),l=C(6223),D=C(9773),I=C(9028),S=C(7921),w=C(9397),n=C(3620),Z=C(2181),ee=C(7398),re=C(927),ue=C(6410),se=C(8645),te=C(2438),oe=C(3019),ce=C(6814);const _e=["content"],Re=["scroll"],mt=["padding"],Ge=function(wt){return{searchTerm:wt}};function Lt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",6),e.GkF(1,7),e.qZA()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",fe.headerTemplate)("ngTemplateOutletContext",e.VKq(2,Ge,fe.filterValue))}}function je(wt,Yt){if(1&wt&&(e.TgZ(0,"div",8),e.GkF(1,7),e.qZA()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",fe.footerTemplate)("ngTemplateOutletContext",e.VKq(2,Ge,fe.filterValue))}}const Tt=["*"],xt=["searchInput"],St=["clearButton"];function Zt(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"span",15),e.NdJ("click",function(){e.CHM(fe);const Vt=e.oxw().$implicit,ht=e.oxw(2);return e.KtG(ht.unselect(Vt))}),e._uU(1,"\xd7"),e.qZA(),e._UZ(2,"span",16)}if(2&wt){const fe=e.oxw().$implicit,Mt=e.oxw(2);e.xp6(2),e.Q6J("ngItemLabel",fe.label)("escape",Mt.escapeHTML)}}function yt(wt,Yt){}const un=function(wt,Yt,fe){return{item:wt,clear:Yt,label:fe}};function Jt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",12),e.YNc(1,Zt,3,2,"ng-template",null,13,e.W1O),e.YNc(3,yt,0,0,"ng-template",14),e.qZA()),2&wt){const fe=Yt.$implicit,Mt=e.MAs(2),Vt=e.oxw(2);e.ekj("ng-value-disabled",fe.disabled),e.xp6(3),e.Q6J("ngTemplateOutlet",Vt.labelTemplate||Mt)("ngTemplateOutletContext",e.kEZ(4,un,fe.value,Vt.clearItem,fe.label))}}function tn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Jt,4,8,"div",11),e.BQk()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngForOf",fe.selectedItems)("ngForTrackBy",fe.trackByOption)}}function wn(wt,Yt){}const Ln=function(wt,Yt){return{items:wt,clear:Yt}};function Yn(wt,Yt){if(1&wt&&e.YNc(0,wn,0,0,"ng-template",14),2&wt){const fe=e.oxw();e.Q6J("ngTemplateOutlet",fe.multiLabelTemplate)("ngTemplateOutletContext",e.WLB(2,Ln,fe.selectedValues,fe.clearItem))}}function ti(wt,Yt){1&wt&&e._UZ(0,"div",19)}function gi(wt,Yt){}function Rn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,ti,1,0,"ng-template",null,17,e.W1O),e.YNc(3,gi,0,0,"ng-template",18),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw();e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.loadingSpinnerTemplate||fe)}}function dt(wt,Yt){if(1&wt&&(e.TgZ(0,"span",20,21)(2,"span",22),e._uU(3,"\xd7"),e.qZA()()),2&wt){const fe=e.oxw();e.s9C("title",fe.clearAllText)}}function at(wt,Yt){if(1&wt&&e._UZ(0,"span",28),2&wt){const fe=e.oxw().$implicit,Mt=e.oxw(2);e.Q6J("ngItemLabel",fe.label)("escape",Mt.escapeHTML)}}function Be(wt,Yt){}const Ee=function(wt,Yt,fe,Mt){return{item:wt,item$:Yt,index:fe,searchTerm:Mt}};function $e(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"div",26),e.NdJ("click",function(){const ht=e.CHM(fe).$implicit,st=e.oxw(2);return e.KtG(st.toggleItem(ht))})("mouseover",function(){const ht=e.CHM(fe).$implicit,st=e.oxw(2);return e.KtG(st.onItemHover(ht))}),e.YNc(1,at,1,2,"ng-template",null,27,e.W1O),e.YNc(3,Be,0,0,"ng-template",14),e.qZA()}if(2&wt){const fe=Yt.$implicit,Mt=e.MAs(2),Vt=e.oxw(2);e.ekj("ng-option-disabled",fe.disabled)("ng-option-selected",fe.selected)("ng-optgroup",fe.children)("ng-option",!fe.children)("ng-option-child",!!fe.parent)("ng-option-marked",fe===Vt.itemsList.markedItem),e.uIk("role",fe.children?"group":"option")("aria-selected",fe.selected)("id",null==fe?null:fe.htmlId),e.xp6(3),e.Q6J("ngTemplateOutlet",fe.children?Vt.optgroupTemplate||Mt:Vt.optionTemplate||Mt)("ngTemplateOutletContext",e.l5B(17,Ee,fe.value,fe,fe.index,Vt.searchTerm))}}function me(wt,Yt){if(1&wt&&(e.TgZ(0,"span")(1,"span",31),e._uU(2),e.qZA(),e._uU(3),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(2),e.Oqu(fe.addTagText),e.xp6(1),e.hij('"',fe.searchTerm,'"')}}function tt(wt,Yt){}function he(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"div",29),e.NdJ("mouseover",function(){e.CHM(fe);const Vt=e.oxw(2);return e.KtG(Vt.itemsList.unmarkItem())})("click",function(){e.CHM(fe);const Vt=e.oxw(2);return e.KtG(Vt.selectTag())}),e.YNc(1,me,4,2,"ng-template",null,30,e.W1O),e.YNc(3,tt,0,0,"ng-template",14),e.qZA()}if(2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.ekj("ng-option-marked",!Mt.itemsList.markedItem),e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.tagTemplate||fe)("ngTemplateOutletContext",e.VKq(4,Ge,Mt.searchTerm))}}function Ze(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.notFoundText)}}function rt(wt,Yt){}function bt(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Ze,2,1,"ng-template",null,32,e.W1O),e.YNc(3,rt,0,0,"ng-template",14),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.notFoundTemplate||fe)("ngTemplateOutletContext",e.VKq(2,Ge,Mt.searchTerm))}}function Nt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.typeToSearchText)}}function Qt(wt,Yt){}function nn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Nt,2,1,"ng-template",null,34,e.W1O),e.YNc(3,Qt,0,0,"ng-template",18),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.typeToSearchTemplate||fe)}}function Dn(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.loadingText)}}function Ot(wt,Yt){}function rn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Dn,2,1,"ng-template",null,35,e.W1O),e.YNc(3,Ot,0,0,"ng-template",14),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.loadingTextTemplate||fe)("ngTemplateOutletContext",e.VKq(2,Ge,Mt.searchTerm))}}function vn(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"ng-dropdown-panel",23),e.NdJ("update",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.viewPortItems=Vt)})("scroll",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.scroll.emit(Vt))})("scrollToEnd",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.scrollToEnd.emit(Vt))})("outsideClick",function(){e.CHM(fe);const Vt=e.oxw();return e.KtG(Vt.close())}),e.ynx(1),e.YNc(2,$e,4,22,"div",24),e.YNc(3,he,4,6,"div",25),e.BQk(),e.YNc(4,bt,4,4,"ng-container",3),e.YNc(5,nn,4,1,"ng-container",3),e.YNc(6,rn,4,4,"ng-container",3),e.qZA()}if(2&wt){const fe=e.oxw();e.ekj("ng-select-multiple",fe.multiple),e.Q6J("virtualScroll",fe.virtualScroll)("bufferAmount",fe.bufferAmount)("appendTo",fe.appendTo)("position",fe.dropdownPosition)("headerTemplate",fe.headerTemplate)("footerTemplate",fe.footerTemplate)("filterValue",fe.searchTerm)("items",fe.itemsList.filteredItems)("markedItem",fe.itemsList.markedItem)("ngClass",fe.appendTo?fe.classes:null)("id",fe.dropdownId),e.xp6(2),e.Q6J("ngForOf",fe.viewPortItems)("ngForTrackBy",fe.trackByOption),e.xp6(1),e.Q6J("ngIf",fe.showAddTag),e.xp6(1),e.Q6J("ngIf",fe.showNoItemsFound()),e.xp6(1),e.Q6J("ngIf",fe.showTypeToSearch()),e.xp6(1),e.Q6J("ngIf",fe.loading&&0===fe.itemsList.filteredItems.length)}}const ei=/[&<>"']/g,Wn=RegExp(ei.source),Ve={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ct(wt){return null!=wt}function Ce(wt){return"object"==typeof wt&&Ct(wt)}function ae(wt){return wt instanceof Function}let Oe=(()=>{class wt{constructor(fe){this.element=fe,this.escape=!0}ngOnChanges(fe){this.element.nativeElement.innerHTML=this.escape?function ct(wt){return wt&&Wn.test(wt)?wt.replace(ei,Yt=>Ve[Yt]):wt}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[e.TTD]})}return wt})(),ot=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-option-tmp",""]]})}return wt})(),Se=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-optgroup-tmp",""]]})}return wt})(),Ft=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-label-tmp",""]]})}return wt})(),lt=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-multi-label-tmp",""]]})}return wt})(),Bt=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-header-tmp",""]]})}return wt})(),Ut=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-footer-tmp",""]]})}return wt})(),fn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-notfound-tmp",""]]})}return wt})(),gn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-typetosearch-tmp",""]]})}return wt})(),An=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-loadingtext-tmp",""]]})}return wt})(),jn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-tag-tmp",""]]})}return wt})(),ai=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-loadingspinner-tmp",""]]})}return wt})();function di(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const oi={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function Jn(wt){return wt.replace(/[^\u0000-\u007E]/g,fe=>oi[fe]||fe)}class qt{constructor(Yt,fe){this._ngSelect=Yt,this._selectionModel=fe,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let Yt=this.selectedItems.length-1;for(;Yt>=0;Yt--){const fe=this.selectedItems[Yt];if(!fe.disabled)return fe}return null}setItems(Yt){this._items=Yt.map((fe,Mt)=>this.mapItem(fe,Mt)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(Yt){if(Yt.selected||this.maxItemsSelected)return;const fe=this._ngSelect.multiple;fe||this.clearSelected(),this._selectionModel.select(Yt,fe,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(Yt)}unselect(Yt){Yt.selected&&(this._selectionModel.unselect(Yt,this._ngSelect.multiple),this._ngSelect.hideSelected&&Ct(Yt.index)&&this._ngSelect.multiple&&this._showSelected(Yt))}findItem(Yt){let fe;return fe=this._ngSelect.compareWith?Mt=>this._ngSelect.compareWith(Mt.value,Yt):this._ngSelect.bindValue?Mt=>!Mt.children&&this.resolveNested(Mt.value,this._ngSelect.bindValue)===Yt:Mt=>Mt.value===Yt||!Mt.children&&Mt.label&&Mt.label===this.resolveNested(Yt,this._ngSelect.bindLabel),this._items.find(Mt=>fe(Mt))}addItem(Yt){const fe=this.mapItem(Yt,this._items.length);return this._items.push(fe),this._filteredItems.push(fe),fe}clearSelected(Yt=!1){this._selectionModel.clear(Yt),this._items.forEach(fe=>{fe.selected=Yt&&fe.selected&&fe.disabled,fe.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(Yt){return Yt=Jn(Yt).toLocaleLowerCase(),this.filteredItems.find(fe=>Jn(fe.label).toLocaleLowerCase().substr(0,Yt.length)===Yt)}filter(Yt){if(!Yt)return void this.resetFilteredItems();this._filteredItems=[],Yt=this._ngSelect.searchFn?Yt:Jn(Yt).toLocaleLowerCase();const fe=this._ngSelect.searchFn||this._defaultSearchFn,Mt=this._ngSelect.hideSelected;for(const Vt of Array.from(this._groups.keys())){const ht=[];for(const st of this._groups.get(Vt))Mt&&(st.parent&&st.parent.selected||st.selected)||fe(Yt,this._ngSelect.searchFn?st.value:st)&&ht.push(st);if(ht.length>0){const[st]=ht.slice(-1);if(st.parent){const It=this._items.find(cn=>cn===st.parent);this._filteredItems.push(It)}this._filteredItems.push(...ht)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(Yt=>!Yt.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(Yt){this._markedIndex=this._filteredItems.indexOf(Yt)}markSelectedOrDefault(Yt){if(0===this._filteredItems.length)return;const fe=this._getLastMarkedIndex();this._markedIndex=fe>-1?fe:Yt?this.filteredItems.findIndex(Mt=>!Mt.disabled):-1}resolveNested(Yt,fe){if(!Ce(Yt))return Yt;if(-1===fe.indexOf("."))return Yt[fe];{const Mt=fe.split(".");let Vt=Yt;for(let ht=0,st=Mt.length;ht-1===this.selectedItems.indexOf(fe)))}_showSelected(Yt){if(this._filteredItems.push(Yt),Yt.parent){const fe=Yt.parent;this._filteredItems.find(Vt=>Vt===fe)||this._filteredItems.push(fe)}else if(Yt.children)for(const fe of Yt.children)fe.selected=!1,this._filteredItems.push(fe);this._filteredItems=[...this._filteredItems.sort((fe,Mt)=>fe.index-Mt.index)]}_hideSelected(Yt){this._filteredItems=this._filteredItems.filter(fe=>fe!==Yt),Yt.parent?Yt.parent.children.every(Mt=>Mt.selected)&&(this._filteredItems=this._filteredItems.filter(Mt=>Mt!==Yt.parent)):Yt.children&&(this._filteredItems=this.filteredItems.filter(fe=>fe.parent!==Yt))}_defaultSearchFn(Yt,fe){return Jn(fe.label).toLocaleLowerCase().indexOf(Yt)>-1}_getNextItemIndex(Yt){return Yt>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(Yt){0===this._filteredItems.length||this._filteredItems.every(fe=>fe.disabled)||(this._markedIndex=this._getNextItemIndex(Yt),this.markedItem.disabled&&this._stepToItem(Yt))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const Yt=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&Yt<0?-1:Math.max(this.markedIndex,Yt)}_groupBy(Yt,fe){const Mt=new Map;if(0===Yt.length)return Mt;if(Array.isArray(Yt[0].value[fe])){for(const st of Yt){const It=(st.value[fe]||[]).map((cn,_n)=>this.mapItem(cn,_n));Mt.set(st,It)}return Mt}const Vt=ae(this._ngSelect.groupBy),ht=st=>{const It=Vt?fe(st.value):st.value[fe];return Ct(It)?It:void 0};for(const st of Yt){const It=ht(st),cn=Mt.get(It);cn?cn.push(st):Mt.set(It,[st])}return Mt}_flatten(Yt){const fe=ae(this._ngSelect.groupBy),Mt=[];for(const Vt of Array.from(Yt.keys())){let ht=Mt.length;if(void 0===Vt){const On=Yt.get(void 0)||[];Mt.push(...On.map(ni=>(ni.index=ht++,ni)));continue}const st=Ce(Vt),It={label:st?"":String(Vt),children:void 0,parent:null,index:ht++,disabled:!this._ngSelect.selectableGroup,htmlId:di()},cn=fe?this._ngSelect.bindLabel:this._ngSelect.groupBy,_n=this._ngSelect.groupValue||(()=>st?Vt.value:{[cn]:Vt}),En=Yt.get(Vt).map(On=>(On.parent=It,On.children=void 0,On.index=ht++,On));It.children=En,It.value=_n(Vt,En.map(On=>On.value)),Mt.push(It),Mt.push(...En)}return Mt}}var _t=function(wt){return wt[wt.Tab=9]="Tab",wt[wt.Enter=13]="Enter",wt[wt.Esc=27]="Esc",wt[wt.Space=32]="Space",wt[wt.ArrowUp=38]="ArrowUp",wt[wt.ArrowDown=40]="ArrowDown",wt[wt.Backspace=8]="Backspace",wt}(_t||{});let G=(()=>{class wt{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(fe,Mt,Vt){const ht=this._dimensions,st=ht.itemHeight*Mt,cn=Math.max(0,fe)/st*Mt;let _n=Math.min(Mt,Math.ceil(cn)+(ht.itemsPerViewport+1));const On=Math.max(0,_n-ht.itemsPerViewport);let ni=Math.min(On,Math.floor(cn)),Vn=ht.itemHeight*Math.ceil(ni)-ht.itemHeight*Math.min(ni,Vt);return Vn=isNaN(Vn)?0:Vn,ni=isNaN(ni)?-1:ni,_n=isNaN(_n)?-1:_n,ni-=Vt,ni=Math.max(0,ni),_n+=Vt,_n=Math.min(Mt,_n),{topPadding:Vn,scrollHeight:st,start:ni,end:_n}}setDimensions(fe,Mt){const Vt=Math.max(1,Math.floor(Mt/fe));this._dimensions={itemHeight:fe,panelHeight:Mt,itemsPerViewport:Vt}}getScrollTo(fe,Mt,Vt){const{panelHeight:ht}=this.dimensions,st=fe+Mt,cn=Vt+ht;return ht>=st&&Vt===fe?null:st>cn?Vt+st-cn:fe<=Vt?fe:null}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac})}return wt})();const U=["top","right","bottom","left"],ve=typeof requestAnimationFrame<"u"?re.Z:ue.E;let Pe=(()=>{class wt{constructor(fe,Mt,Vt,ht,st){this._renderer=fe,this._zone=Mt,this._panelService=Vt,this._document=st,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.outsideClick=new e.vpe,this._destroy$=new se.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=ht.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(fe){fe!==this._itemsLength&&(this._itemsLength=fe,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:fe,panelHeight:Mt}=this._panelService.dimensions,Vt=this.markedItem.index*fe;return Mt>Vt?0:Vt}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(fe){if(fe.items){const Mt=fe.items;this._onItemsChange(Mt.currentValue,Mt.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(fe,Mt=!1){if(!fe)return;const Vt=this.items.indexOf(fe);if(Vt<0||Vt>=this.itemsLength)return;let ht;if(this.virtualScroll){const st=this._panelService.dimensions.itemHeight;ht=this._panelService.getScrollTo(Vt*st,st,this._lastScrollPosition)}else{const st=this._dropdown.querySelector(`#${fe.htmlId}`);ht=this._panelService.getScrollTo(st.offsetTop,st.clientHeight,Mt?st.offsetTop:this._lastScrollPosition)}Ct(ht)&&(this._scrollablePanel.scrollTop=ht)}scrollToTag(){const fe=this._scrollablePanel;fe.scrollTop=fe.scrollHeight-fe.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),U.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(fe){U.forEach(Vt=>{const ht=`ng-select-${Vt}`;this._renderer.removeClass(this._dropdown,ht),this._renderer.removeClass(this._select,ht)});const Mt=`ng-select-${fe}`;this._renderer.addClass(this._dropdown,Mt),this._renderer.addClass(this._select,Mt)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,te.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,D.R)(this._destroy$),(0,I.e)(0,ve)).subscribe(fe=>{const Mt=fe.path||fe.composedPath&&fe.composedPath();this._onContentScrolled(Mt&&0!==Mt.length?Mt[0].scrollTop:fe.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,oe.T)((0,te.R)(this._document,"touchstart",{capture:!0}),(0,te.R)(this._document,"mousedown",{capture:!0})).pipe((0,D.R)(this._destroy$)).subscribe(fe=>this._checkToClose(fe))})}_checkToClose(fe){if(this._select.contains(fe.target)||this._dropdown.contains(fe.target))return;const Mt=fe.path||fe.composedPath&&fe.composedPath();fe.target&&fe.target.shadowRoot&&Mt&&Mt[0]&&this._select.contains(Mt[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(fe,Mt){this.items=fe||[],this._scrollToEndFired=!1,this.itemsLength=fe.length,this.virtualScroll?this._updateItemsRange(Mt):(this._setVirtualHeight(),this._updateItems(Mt))}_updateItems(fe){this.update.emit(this.items),!1!==fe&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,fe)})})}_updateItemsRange(fe){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{fe?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(fe){this.virtualScroll&&this._renderItemsRange(fe),this._lastScrollPosition=fe,this._fireScrollToEnd(fe)}_updateVirtualHeight(fe){this._updateScrollHeight&&(this._virtualPadding.style.height=`${fe}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(fe=null){if(fe&&this._lastScrollPosition===fe)return;const Mt=this._panelService.calculateItems(fe=fe||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(Mt.scrollHeight),this._contentPanel.style.transform=`translateY(${Mt.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(Mt.start,Mt.end)),this.scroll.emit({start:Mt.start,end:Mt.end})}),Ct(fe)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=fe,this._lastScrollPosition=fe)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[fe]=this.items;return this.update.emit([fe]),Promise.resolve().then(()=>{const Vt=this._dropdown.querySelector(`#${fe.htmlId}`).clientHeight;return this._virtualPadding.style.height=Vt*this.itemsLength+"px",this._panelService.setDimensions(Vt,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(fe){this._scrollToEndFired||0===fe||fe+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(fe){if("auto"!==this.position)return this.position;const Mt=this._select.getBoundingClientRect(),Vt=document.documentElement.scrollTop||document.body.scrollTop;return Mt.top+window.pageYOffset+Mt.height+fe.getBoundingClientRect().height>Vt+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const fe=this._select.getBoundingClientRect(),Mt=this._parent.getBoundingClientRect();this._dropdown.style.left=fe.left-Mt.left+"px",this._dropdown.style.width=fe.width+"px",this._dropdown.style.minWidth=fe.width+"px"}_updateYPosition(){const fe=this._select.getBoundingClientRect(),Mt=this._parent.getBoundingClientRect(),Vt=fe.height;"top"===this._currentPosition?(this._dropdown.style.bottom=Mt.bottom-fe.bottom+Vt+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=fe.top-Mt.top+Vt+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,te.R)(this._dropdown,"mousedown").pipe((0,D.R)(this._destroy$)).subscribe(fe=>{"INPUT"!==fe.target.tagName&&fe.preventDefault()})})}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(G),e.Y36(e.SBq),e.Y36(ce.K0,8))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-dropdown-panel"]],viewQuery:function(Mt,Vt){if(1&Mt&&(e.Gf(_e,7,e.SBq),e.Gf(Re,7,e.SBq),e.Gf(mt,7,e.SBq)),2&Mt){let ht;e.iGM(ht=e.CRH())&&(Vt.contentElementRef=ht.first),e.iGM(ht=e.CRH())&&(Vt.scrollElementRef=ht.first),e.iGM(ht=e.CRH())&&(Vt.paddingElementRef=ht.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[e.TTD],ngContentSelectors:Tt,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(Mt,Vt){1&Mt&&(e.F$t(),e.YNc(0,Lt,2,4,"div",0),e.TgZ(1,"div",1,2),e._UZ(3,"div",null,3),e.TgZ(5,"div",null,4),e.Hsn(7),e.qZA()(),e.YNc(8,je,2,4,"div",5)),2&Mt&&(e.Q6J("ngIf",Vt.headerTemplate),e.xp6(3),e.ekj("total-padding",Vt.virtualScroll),e.xp6(2),e.ekj("scrollable-content",Vt.virtualScroll&&Vt.items.length),e.xp6(3),e.Q6J("ngIf",Vt.footerTemplate))},dependencies:[ce.O5,ce.tP],encapsulation:2,changeDetection:0})}return wt})(),ut=(()=>{class wt{get disabled(){return this._disabled}set disabled(fe){this._disabled=this._isDisabled(fe)}constructor(fe){this.elementRef=fe,this.stateChange$=new se.x,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(fe){fe.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(fe){return null!=fe&&"false"!=`${fe}`}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.SBq))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[e.TTD],ngContentSelectors:Tt,decls:1,vars:0,template:function(Mt,Vt){1&Mt&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0})}return wt})(),We=(()=>{class wt{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"})}return wt})(),ze=(()=>{class wt{warn(fe){console.warn(fe)}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"})}return wt})();const be=new e.OlP("ng-select-selection-model");let Te=(()=>{class wt{get items(){return this._items}set items(fe){null===fe&&(fe=[]),this._itemsAreUsed=!0,this._items=fe}get compareWith(){return this._compareWith}set compareWith(fe){if(null!=fe&&!ae(fe))throw Error("`compareWith` must be a function.");this._compareWith=fe}get clearSearchOnAdd(){return Ct(this._clearSearchOnAdd)?this._clearSearchOnAdd:Ct(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(fe){this._clearSearchOnAdd=fe}get deselectOnClick(){return Ct(this._deselectOnClick)?this._deselectOnClick:Ct(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(fe){this._deselectOnClick=fe}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(fe,Mt,Vt,ht,st,It,cn){this.classes=fe,this.autoFocus=Mt,this.config=Vt,this._cd=It,this._console=cn,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=_n=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new e.vpe,this.focusEvent=new e.vpe,this.changeEvent=new e.vpe,this.openEvent=new e.vpe,this.closeEvent=new e.vpe,this.searchEvent=new e.vpe,this.clearEvent=new e.vpe,this.addEvent=new e.vpe,this.removeEvent=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=di(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new se.x,this._keyPress$=new se.x,this._onChange=_n=>{},this._onTouched=()=>{},this.clearItem=_n=>{const En=this.selectedItems.find(On=>On.value===_n);this.unselect(En)},this.trackByOption=(_n,En)=>this.trackByFn?this.trackByFn(En.value):En,this._mergeGlobalConfig(Vt),this.itemsList=new qt(this,ht()),this.element=st.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(fe=>fe.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(fe){fe.multiple&&this.itemsList.clearSelected(),fe.items&&this._setItems(fe.items.currentValue||[]),fe.isOpen&&(this._manualOpen=Ct(fe.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ct(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(fe){if(_t[fe.which]){if(!1===this.keyDownFn(fe))return;this.handleKeyCode(fe)}else fe.key&&1===fe.key.length&&this._keyPress$.next(fe.key.toLocaleLowerCase())}handleKeyCode(fe){this.clearButton&&this.clearButton.nativeElement===fe.target?this.handleKeyCodeClear(fe):this.handleKeyCodeInput(fe)}handleKeyCodeInput(fe){switch(fe.which){case _t.ArrowDown:this._handleArrowDown(fe);break;case _t.ArrowUp:this._handleArrowUp(fe);break;case _t.Space:this._handleSpace(fe);break;case _t.Enter:this._handleEnter(fe);break;case _t.Tab:this._handleTab(fe);break;case _t.Esc:this.close(),fe.preventDefault();break;case _t.Backspace:this._handleBackspace()}}handleKeyCodeClear(fe){fe.which===_t.Enter&&(this.handleClearClick(),fe.preventDefault())}handleMousedown(fe){const Mt=fe.target;"INPUT"!==Mt.tagName&&fe.preventDefault(),Mt.classList.contains("ng-clear-wrapper")?this.handleClearClick():Mt.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():Mt.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(fe){this.itemsList.clearSelected(),this._handleWriteValue(fe),this._cd.markForCheck()}registerOnChange(fe){this._onChange=fe}registerOnTouched(fe){this._onTouched=fe}setDisabledState(fe){this._disabled=fe,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(fe){!fe||fe.disabled||this.disabled||(this.deselectOnClick&&fe.selected?this.unselect(fe):this.select(fe),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(fe){fe.selected||(this.itemsList.select(fe),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(fe.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(fe){fe&&(this.itemsList.unselect(fe),this.focus(),this._updateNgModel(),this.removeEvent.emit(fe.value))}selectTag(){let fe;fe=ae(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const Mt=Vt=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(Vt,null):this.itemsList.addItem(Vt);!function J(wt){return wt instanceof Promise}(fe)?fe&&this.select(Mt(fe)):fe.then(Vt=>this.select(Mt(Vt))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const fe=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(Mt=>Mt.label.toLowerCase()===fe)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(Mt=>Mt.label.toLowerCase()===fe))&&!this.loading}showNoItemsFound(){const fe=0===this.itemsList.filteredItems.length;return(fe&&!this._isTypeahead&&!this.loading||fe&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(fe){this._isComposing=!1,!this.searchWhileComposing&&this.filter(fe)}filter(fe){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=fe,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(fe),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:fe,items:this.itemsList.filteredItems.map(Mt=>Mt.value)}),this.open())}onInputFocus(fe){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(fe),this.focused=!0)}onInputBlur(fe){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(fe),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(fe){fe.disabled||this.itemsList.markItem(fe)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const fe=this.selectedItems&&this.selectedItems[0];this.searchTerm=fe&&fe.label||null}_setItems(fe){const Mt=fe[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Ct(Mt)?!Ce(Mt):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(fe),fe.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Ct(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const fe=Vt=>{this.items=Vt.map(ht=>({$ngOptionValue:ht.value,$ngOptionLabel:ht.elementRef.nativeElement.innerHTML,disabled:ht.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},Mt=()=>{const Vt=(0,oe.T)(this.ngOptions.changes,this._destroy$);(0,oe.T)(...this.ngOptions.map(ht=>ht.stateChange$)).pipe((0,D.R)(Vt)).subscribe(ht=>{const st=this.itemsList.findItem(ht.value);st.disabled=ht.disabled,st.label=ht.label||st.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,S.O)(this.ngOptions),(0,D.R)(this._destroy$)).subscribe(Vt=>{this.bindLabel=this._defaultLabel,fe(Vt),Mt()})}_isValidWriteValue(fe){if(!Ct(fe)||this.multiple&&""===fe||Array.isArray(fe)&&0===fe.length)return!1;const Mt=Vt=>!(!Ct(this.compareWith)&&Ce(Vt)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(Vt)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(fe)?fe.every(Vt=>Mt(Vt)):(this._console.warn("Multiple select ngModel should be array."),!1):Mt(fe)}_handleWriteValue(fe){if(!this._isValidWriteValue(fe))return;const Mt=Vt=>{let ht=this.itemsList.findItem(Vt);if(ht)this.itemsList.select(ht);else{const st=Ce(Vt);st||!st&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(Vt,null)):this.bindValue&&(ht={[this.bindLabel]:null,[this.bindValue]:Vt},this.itemsList.select(this.itemsList.mapItem(ht,null)))}};this.multiple?fe.forEach(Vt=>Mt(Vt)):Mt(fe)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,D.R)(this._destroy$),(0,w.b)(fe=>this._pressedKeys.push(fe)),(0,n.b)(200),(0,Z.h)(()=>this._pressedKeys.length>0),(0,ee.U)(()=>this._pressedKeys.join(""))).subscribe(fe=>{const Mt=this.itemsList.findByLabel(fe);Mt&&(this.isOpen?(this.itemsList.markItem(Mt),this._scrollToMarked(),this._cd.markForCheck()):this.select(Mt)),this._pressedKeys=[]})}_setInputAttributes(){const fe=this.searchInput.nativeElement,Mt={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const Vt of Object.keys(Mt))fe.setAttribute(Vt,Mt[Vt])}_updateNgModel(){const fe=[];for(const Vt of this.selectedItems)if(this.bindValue){let ht=null;ht=Vt.children?Vt.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(Vt.value,this.bindValue),fe.push(ht)}else fe.push(Vt.value);const Mt=this.selectedItems.map(Vt=>Vt.value);this.multiple?(this._onChange(fe),this.changeEvent.emit(Mt)):(this._onChange(Ct(fe[0])?fe[0]:null),this.changeEvent.emit(Mt[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(fe){this.searchTerm=fe,this._isTypeahead&&this.typeahead.next(fe)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(fe){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),fe.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),fe.preventDefault()):this.showAddTag?(this.selectTag(),fe.preventDefault()):this.close():this.close()}_handleEnter(fe){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}fe.preventDefault()}_handleSpace(fe){this.isOpen||this._manualOpen||(this.open(),fe.preventDefault())}_handleArrowDown(fe){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),fe.preventDefault()}_handleArrowUp(fe){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),fe.preventDefault())}_nextItemIsTag(fe){const Mt=this.itemsList.markedIndex+fe;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(Mt<0||Mt===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const fe=this.searchTerm&&this.searchTerm.trim();return fe&&fe.length>=this.minTermLength}_mergeGlobalConfig(fe){this.placeholder=this.placeholder||fe.placeholder,this.notFoundText=this.notFoundText||fe.notFoundText,this.typeToSearchText=this.typeToSearchText||fe.typeToSearchText,this.addTagText=this.addTagText||fe.addTagText,this.loadingText=this.loadingText||fe.loadingText,this.clearAllText=this.clearAllText||fe.clearAllText,this.virtualScroll=Ct(this.virtualScroll)?this.virtualScroll:!!Ct(fe.disableVirtualScroll)&&!fe.disableVirtualScroll,this.openOnEnter=Ct(this.openOnEnter)?this.openOnEnter:fe.openOnEnter,this.appendTo=this.appendTo||fe.appendTo,this.bindValue=this.bindValue||fe.bindValue,this.bindLabel=this.bindLabel||fe.bindLabel,this.appearance=this.appearance||fe.appearance}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.$8M("class"),e.$8M("autofocus"),e.Y36(We),e.Y36(be),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ze))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-select"]],contentQueries:function(Mt,Vt,ht){if(1&Mt&&(e.Suo(ht,ot,5,e.Rgc),e.Suo(ht,Se,5,e.Rgc),e.Suo(ht,Ft,5,e.Rgc),e.Suo(ht,lt,5,e.Rgc),e.Suo(ht,Bt,5,e.Rgc),e.Suo(ht,Ut,5,e.Rgc),e.Suo(ht,fn,5,e.Rgc),e.Suo(ht,gn,5,e.Rgc),e.Suo(ht,An,5,e.Rgc),e.Suo(ht,jn,5,e.Rgc),e.Suo(ht,ai,5,e.Rgc),e.Suo(ht,ut,5)),2&Mt){let st;e.iGM(st=e.CRH())&&(Vt.optionTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.optgroupTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.labelTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.multiLabelTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.headerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.footerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.notFoundTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.typeToSearchTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.loadingTextTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.tagTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.loadingSpinnerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.ngOptions=st)}},viewQuery:function(Mt,Vt){if(1&Mt&&(e.Gf(Pe,5),e.Gf(xt,7),e.Gf(St,5)),2&Mt){let ht;e.iGM(ht=e.CRH())&&(Vt.dropdownPanel=ht.first),e.iGM(ht=e.CRH())&&(Vt.searchInput=ht.first),e.iGM(ht=e.CRH())&&(Vt.clearButton=ht.first)}},hostVars:20,hostBindings:function(Mt,Vt){1&Mt&&e.NdJ("keydown",function(st){return Vt.handleKeyDown(st)}),2&Mt&&e.ekj("ng-select-typeahead",Vt.typeahead)("ng-select-multiple",Vt.multiple)("ng-select-taggable",Vt.addTag)("ng-select-searchable",Vt.searchable)("ng-select-clearable",Vt.clearable)("ng-select-opened",Vt.isOpen)("ng-select",Vt.useDefaultClass)("ng-select-disabled",Vt.disabled)("ng-select-filtered",Vt.filtered)("ng-select-single",Vt.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[e._Bn([{provide:l.JU,useExisting:(0,e.Gpc)(()=>wt),multi:!0},G]),e.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(Mt,Vt){if(1&Mt){const ht=e.EpF();e.TgZ(0,"div",0),e.NdJ("mousedown",function(It){return Vt.handleMousedown(It)}),e.TgZ(1,"div",1)(2,"div",2),e._uU(3),e.qZA(),e.YNc(4,tn,2,2,"ng-container",3),e.YNc(5,Yn,1,5,null,3),e.TgZ(6,"div",4)(7,"input",5,6),e.NdJ("input",function(){e.CHM(ht);const It=e.MAs(8);return e.KtG(Vt.filter(It.value))})("compositionstart",function(){return Vt.onCompositionStart()})("compositionend",function(){e.CHM(ht);const It=e.MAs(8);return e.KtG(Vt.onCompositionEnd(It.value))})("focus",function(It){return Vt.onInputFocus(It)})("blur",function(It){return Vt.onInputBlur(It)})("change",function(It){return It.stopPropagation()}),e.qZA()()(),e.YNc(9,Rn,4,1,"ng-container",3),e.YNc(10,dt,4,1,"span",7),e.TgZ(11,"span",8),e._UZ(12,"span",9),e.qZA()(),e.YNc(13,vn,7,19,"ng-dropdown-panel",10)}2&Mt&&(e.ekj("ng-appearance-outline","outline"===Vt.appearance)("ng-has-value",Vt.hasValue),e.xp6(3),e.Oqu(Vt.placeholder),e.xp6(1),e.Q6J("ngIf",(!Vt.multiLabelTemplate||!Vt.multiple)&&Vt.selectedItems.length>0),e.xp6(1),e.Q6J("ngIf",Vt.multiple&&Vt.multiLabelTemplate&&Vt.selectedValues.length>0),e.xp6(1),e.uIk("aria-expanded",Vt.isOpen)("aria-owns",Vt.isOpen?Vt.dropdownId:null),e.xp6(1),e.Q6J("readOnly",!Vt.searchable||Vt.itemsList.maxItemsSelected)("disabled",Vt.disabled)("value",Vt.searchTerm?Vt.searchTerm:""),e.uIk("id",Vt.labelForId)("tabindex",Vt.tabIndex)("aria-activedescendant",Vt.isOpen?null==Vt.itemsList||null==Vt.itemsList.markedItem?null:Vt.itemsList.markedItem.htmlId:null)("aria-controls",Vt.isOpen?Vt.dropdownId:null),e.xp6(2),e.Q6J("ngIf",Vt.loading),e.xp6(1),e.Q6J("ngIf",Vt.showClear()),e.xp6(3),e.Q6J("ngIf",Vt.isOpen))},dependencies:[ce.mk,ce.sg,ce.O5,ce.tP,Pe,Oe],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return wt})();function He(){return new Wt}class Wt{constructor(){this._selected=[]}get value(){return this._selected}select(Yt,fe,Mt){if(Yt.selected=!0,(!Yt.children||!fe&&Mt)&&this._selected.push(Yt),fe)if(Yt.parent){const Vt=Yt.parent.children.length,ht=Yt.parent.children.filter(st=>st.selected).length;Yt.parent.selected=Vt===ht}else Yt.children&&(this._setChildrenSelectedState(Yt.children,!0),this._removeChildren(Yt),this._selected=Mt&&this._activeChildren(Yt)?[...this._selected.filter(Vt=>Vt.parent!==Yt),Yt]:[...this._selected,...Yt.children.filter(Vt=>!Vt.disabled)])}unselect(Yt,fe){if(this._selected=this._selected.filter(Mt=>Mt!==Yt),Yt.selected=!1,fe)if(Yt.parent&&Yt.parent.selected){const Mt=Yt.parent.children;this._removeParent(Yt.parent),this._removeChildren(Yt.parent),this._selected.push(...Mt.filter(Vt=>Vt!==Yt&&!Vt.disabled)),Yt.parent.selected=!1}else Yt.children&&(this._setChildrenSelectedState(Yt.children,!1),this._removeChildren(Yt))}clear(Yt){this._selected=Yt?this._selected.filter(fe=>fe.disabled):[]}_setChildrenSelectedState(Yt,fe){for(const Mt of Yt)Mt.disabled||(Mt.selected=fe)}_removeChildren(Yt){this._selected=[...this._selected.filter(fe=>fe.parent!==Yt),...Yt.children.filter(fe=>fe.parent===Yt&&fe.disabled&&fe.selected)]}_removeParent(Yt){this._selected=this._selected.filter(fe=>fe!==Yt)}_activeChildren(Yt){return Yt.children.every(fe=>!fe.disabled||fe.selected)}}let Pn=(()=>{class wt{static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275mod=e.oAB({type:wt});static#n=this.\u0275inj=e.cJS({providers:[{provide:be,useValue:He}],imports:[ce.ez]})}return wt})()},469:(ft,Ie,C)=>{"use strict";C.d(Ie,{S:()=>$f,f:()=>vu});var e=C(5861),l=C(6814),D=C(5879),I=C(6223);var o,n=(o=function(i,s){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(c[v]=h[v])})(i,s)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}),Z=function(o){function t(i,s){var c=this.constructor,h=o.call(this,i,s)||this;return Object.defineProperty(h,"name",{value:c.name,enumerable:!1,configurable:!0}),function S(o,t){var i=Object.setPrototypeOf;i?i(o,t):o.__proto__=t}(h,c.prototype),function w(o,t){void 0===t&&(t=o.constructor);var i=Error.captureStackTrace;i&&i(o,t)}(h),h}return n(t,o),t}(Error),ue=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),se=function(o){function t(i){void 0===i&&(i=void 0);var s=o.call(this,i)||this;return s.message=i,s}return ue(t,o),t.prototype.getKind=function(){return this.constructor.kind},t.kind="Exception",t}(Z);const te=se;var oe=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ce=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return oe(t,o),t.kind="ArgumentException",t}(te);const _e=ce;var Re=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),mt=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Re(t,o),t.kind="IllegalArgumentException",t}(te);const Ge=mt;var Lt=function(){function o(t){if(this.binarizer=t,null===t)throw new Ge("Binarizer must be non-null.")}return o.prototype.getWidth=function(){return this.binarizer.getWidth()},o.prototype.getHeight=function(){return this.binarizer.getHeight()},o.prototype.getBlackRow=function(t,i){return this.binarizer.getBlackRow(t,i)},o.prototype.getBlackMatrix=function(){return null==this.matrix&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},o.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},o.prototype.crop=function(t,i,s,c){var h=this.binarizer.getLuminanceSource().crop(t,i,s,c);return new o(this.binarizer.createBinarizer(h))},o.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},o.prototype.rotateCounterClockwise=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new o(this.binarizer.createBinarizer(t))},o.prototype.rotateCounterClockwise45=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new o(this.binarizer.createBinarizer(t))},o.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},o}();const je=Lt;var Tt=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),xt=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Tt(t,o),t.getChecksumInstance=function(){return new t},t.kind="ChecksumException",t}(te);const St=xt;var Zt=function(){function o(t){this.source=t}return o.prototype.getLuminanceSource=function(){return this.source},o.prototype.getWidth=function(){return this.source.getWidth()},o.prototype.getHeight=function(){return this.source.getHeight()},o}();const yt=Zt;var un=function(){function o(){}return o.arraycopy=function(t,i,s,c,h){for(;h--;)s[c++]=t[i++]},o.currentTimeMillis=function(){return Date.now()},o}();const Jt=un;var tn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),wn=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return tn(t,o),t.kind="IndexOutOfBoundsException",t}(te);const Ln=wn;var Yn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ti=function(o){function t(i,s){void 0===i&&(i=void 0),void 0===s&&(s=void 0);var c=o.call(this,s)||this;return c.index=i,c.message=s,c}return Yn(t,o),t.kind="ArrayIndexOutOfBoundsException",t}(Ln);const gi=ti;var dt=function(){function o(){}return o.fill=function(t,i){for(var s=0,c=t.length;ss)throw new Ge("fromIndex("+i+") > toIndex("+s+")");if(i<0)throw new gi(i);if(s>t)throw new gi(s)},o.asList=function(){for(var t=[],i=0;i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),v=h.next();!v.done;v=h.next())c=31*c+v.value}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c},o.fillUint8Array=function(t,i){for(var s=0;s!==t.length;s++)t[s]=i},o.copyOf=function(t,i){return t.slice(0,i)},o.copyOfUint8Array=function(t,i){if(t.length<=i){var s=new Uint8Array(i);return s.set(t),s}return t.slice(0,i)},o.copyOfRange=function(t,i,s){var c=s-i,h=new Int32Array(c);return Jt.arraycopy(t,i,h,0,c),h},o.binarySearch=function(t,i,s){void 0===s&&(s=o.numberComparator);for(var c=0,h=t.length-1;c<=h;){var v=h+c>>1,M=s(i,t[v]);if(M>0)c=v+1;else{if(!(M<0))return v;h=v-1}}return-c-1},o.numberComparator=function(t,i){return t-i},o}();const at=dt;var Be=function(){function o(){}return o.numberOfTrailingZeros=function(t){var i;if(0===t)return 32;var s=31;return 0!=(i=t<<16)&&(s-=16,t=i),0!=(i=t<<8)&&(s-=8,t=i),0!=(i=t<<4)&&(s-=4,t=i),0!=(i=t<<2)&&(s-=2,t=i),s-(t<<1>>>31)},o.numberOfLeadingZeros=function(t){if(0===t)return 32;var i=1;return t>>>16||(i+=16,t<<=16),t>>>24||(i+=8,t<<=8),t>>>28||(i+=4,t<<=4),t>>>30||(i+=2,t<<=2),i-(t>>>31)},o.toHexString=function(t){return t.toString(16)},o.toBinaryString=function(t){return String(parseInt(String(t),2))},o.bitCount=function(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,63&(t+=t>>>8)+(t>>>16)},o.truncDivision=function(t,i){return Math.trunc(t/i)},o.parseInt=function(t,i){return void 0===i&&(i=void 0),parseInt(t,i)},o.MIN_VALUE_32_BITS=-2147483648,o.MAX_VALUE=Number.MAX_SAFE_INTEGER,o}();const Ee=Be;var $e=function(){function o(t,i){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=null==i?o.makeArray(t):i)}return o.prototype.getSize=function(){return this.size},o.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},o.prototype.ensureCapacity=function(t){if(t>32*this.bits.length){var i=o.makeArray(t);Jt.arraycopy(this.bits,0,i,0,this.bits.length),this.bits=i}},o.prototype.get=function(t){return 0!=(this.bits[Math.floor(t/32)]&1<<(31&t))},o.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(31&t)},o.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(31&t)},o.prototype.getNextSet=function(t){var i=this.size;if(t>=i)return i;var s=this.bits,c=Math.floor(t/32),h=s[c];h&=~((1<<(31&t))-1);for(var v=s.length;0===h;){if(++c===v)return i;h=s[c]}var M=32*c+Ee.numberOfTrailingZeros(h);return M>i?i:M},o.prototype.getNextUnset=function(t){var i=this.size;if(t>=i)return i;var s=this.bits,c=Math.floor(t/32),h=~s[c];h&=~((1<<(31&t))-1);for(var v=s.length;0===h;){if(++c===v)return i;h=~s[c]}var M=32*c+Ee.numberOfTrailingZeros(h);return M>i?i:M},o.prototype.setBulk=function(t,i){this.bits[Math.floor(t/32)]=i},o.prototype.setRange=function(t,i){if(ithis.size)throw new Ge;if(i!==t){i--;for(var s=Math.floor(t/32),c=Math.floor(i/32),h=this.bits,v=s;v<=c;v++)h[v]|=(2<<(vs?0:31&t))}},o.prototype.clear=function(){for(var t=this.bits.length,i=this.bits,s=0;sthis.size)throw new Ge;if(i===t)return!0;i--;for(var c=Math.floor(t/32),h=Math.floor(i/32),v=this.bits,M=c;M<=h;M++){var $=(2<<(Mc?0:31&t))&4294967295;if((v[M]&$)!==(s?$:0))return!1}return!0},o.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},o.prototype.appendBits=function(t,i){if(i<0||i>32)throw new Ge("Num bits must be between 0 and 32");this.ensureCapacity(this.size+i);for(var s=i;s>0;s--)this.appendBit(1==(t>>s-1&1))},o.prototype.appendBitArray=function(t){var i=t.size;this.ensureCapacity(this.size+i);for(var s=0;s>1&1431655765|(1431655765&v)<<1)>>2&858993459|(858993459&v)<<2)>>4&252645135|(252645135&v)<<4)>>8&16711935|(16711935&v)<<8)>>16&65535|(65535&v)<<16}if(this.size!==32*s){var M=32*s-this.size,O=t[0]>>>M;for(h=1;h>>M}t[s-1]=O}this.bits=t},o.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},o.prototype.equals=function(t){return t instanceof o&&(this.size===t.size&&at.equals(this.bits,t.bits))},o.prototype.hashCode=function(){return 31*this.size+at.hashCode(this.bits)},o.prototype.toString=function(){for(var t="",i=0,s=this.size;i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(v),we=de.next();!we.done;we=de.next())o.NAME_TO_ECI.set(we.value,this)}catch(vt){c={error:vt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}}return o.prototype.getValueIdentifier=function(){return this.valueIdentifier},o.prototype.getName=function(){return this.name},o.prototype.getValue=function(){return this.values[0]},o.getCharacterSetECIByValue=function(t){if(t<0||t>=900)throw new bt("incorect value");var i=o.VALUES_TO_ECI.get(t);if(void 0===i)throw new bt("incorect value");return i},o.getCharacterSetECIByName=function(t){var i=o.NAME_TO_ECI.get(t);if(void 0===i)throw new bt("incorect value");return i},o.prototype.equals=function(t){if(!(t instanceof o))return!1;var i=t;return this.getName()===i.getName()},o.VALUE_IDENTIFIER_TO_ECI=new Map,o.VALUES_TO_ECI=new Map,o.NAME_TO_ECI=new Map,o.Cp437=new o(Qt.Cp437,Int32Array.from([0,2]),"Cp437"),o.ISO8859_1=new o(Qt.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),o.ISO8859_2=new o(Qt.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),o.ISO8859_3=new o(Qt.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),o.ISO8859_4=new o(Qt.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),o.ISO8859_5=new o(Qt.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),o.ISO8859_6=new o(Qt.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),o.ISO8859_7=new o(Qt.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),o.ISO8859_8=new o(Qt.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),o.ISO8859_9=new o(Qt.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),o.ISO8859_10=new o(Qt.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),o.ISO8859_11=new o(Qt.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),o.ISO8859_13=new o(Qt.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),o.ISO8859_14=new o(Qt.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),o.ISO8859_15=new o(Qt.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),o.ISO8859_16=new o(Qt.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),o.SJIS=new o(Qt.SJIS,20,"SJIS","Shift_JIS"),o.Cp1250=new o(Qt.Cp1250,21,"Cp1250","windows-1250"),o.Cp1251=new o(Qt.Cp1251,22,"Cp1251","windows-1251"),o.Cp1252=new o(Qt.Cp1252,23,"Cp1252","windows-1252"),o.Cp1256=new o(Qt.Cp1256,24,"Cp1256","windows-1256"),o.UnicodeBigUnmarked=new o(Qt.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),o.UTF8=new o(Qt.UTF8,26,"UTF8","UTF-8"),o.ASCII=new o(Qt.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),o.Big5=new o(Qt.Big5,28,"Big5"),o.GB18030=new o(Qt.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),o.EUC_KR=new o(Qt.EUC_KR,30,"EUC_KR","EUC-KR"),o}();const Dn=nn;var Ot=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),rn=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Ot(t,o),t.kind="UnsupportedOperationException",t}(te);const vn=rn;var ei=function(){function o(){}return o.decode=function(t,i){var s=this.encodingName(i);return this.customDecoder?this.customDecoder(t,s):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(s)?this.decodeFallback(t,s):new TextDecoder(s).decode(t)},o.shouldDecodeOnFallback=function(t){return!o.isBrowser()&&"ISO-8859-1"===t},o.encode=function(t,i){var s=this.encodingName(i);return this.customEncoder?this.customEncoder(t,s):typeof TextEncoder>"u"?this.encodeFallback(t):(new TextEncoder).encode(t)},o.isBrowser=function(){return typeof window<"u"&&"[object Window]"==={}.toString.call(window)},o.encodingName=function(t){return"string"==typeof t?t:t.getName()},o.encodingCharacterSet=function(t){return t instanceof Dn?t:Dn.getCharacterSetECIByName(t)},o.decodeFallback=function(t,i){var s=this.encodingCharacterSet(i);if(o.isDecodeFallbackSupported(s)){for(var c="",h=0,v=t.length;h3&&239===t[0]&&187===t[1]&&191===t[2],an=0;an0?128&bn?M--:v=!1:128&bn&&(64&bn?(M++,32&bn?(M++,16&bn?(M++,8&bn?v=!1:$++):N++):O++):v=!1)),c&&(bn>127&&bn<160?c=!1:bn>159&&(bn<192||215===bn||247===bn)&&$t++),h&&(q>0?bn<64||127===bn||bn>252?h=!1:q--:128===bn||160===bn||bn>239?h=!1:bn>160&&bn<224?(de++,et=0,++we>vt&&(vt=we)):bn>127?(q++,we=0,++et>zt&&(zt=et)):(we=0,et=0))}return v&&M>0&&(v=!1),h&&q>0&&(h=!1),v&&(Gt||O+N+$>0)?o.UTF8:h&&(o.ASSUME_SHIFT_JIS||vt>=3||zt>=3)?o.SHIFT_JIS:c&&h?2===vt&&2===de||10*$t>=s?o.SHIFT_JIS:o.ISO88591:c?o.ISO88591:h?o.SHIFT_JIS:v?o.UTF8:o.PLATFORM_DEFAULT_ENCODING},o.format=function(t){for(var i=[],s=1;sv){if(-1===M)M=h-v;else if(h-v!==M)throw new Ge("row lengths do not match");v=h,O++}N++}else if(t.substring(N,N+i.length)===i)N+=i.length,c[h]=!0,h++;else{if(t.substring(N,N+s.length)!==s)throw new Ge("illegal character encountered: "+t.substring(N));N+=s.length,c[h]=!1,h++}if(h>v){if(-1===M)M=h-v;else if(h-v!==M)throw new Ge("row lengths do not match");O++}for(var $=new o(M,O),q=0;q>>(31&t)&1)},o.prototype.set=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]|=1<<(31&t)&4294967295},o.prototype.unset=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]&=~(1<<(31&t)&4294967295)},o.prototype.flip=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]^=1<<(31&t)&4294967295},o.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new Ge("input matrix dimensions do not match");for(var i=new me(Math.floor(this.width/32)+1),s=this.rowSize,c=this.bits,h=0,v=this.height;hthis.height||h>this.width)throw new Ge("The region must fit inside the matrix");for(var M=this.rowSize,O=this.bits,N=i;NO&&(O=N),32*$M){for(de=31;!(q>>>de);)de--;32*$+de>M&&(M=32*$+de)}}}return M=0&&0===i[s];)s--;if(s<0)return null;for(var c=Math.floor(s/t),h=32*Math.floor(s%t),v=i[s],M=31;!(v>>>M);)M--;return Int32Array.from([h+=M,c])},o.prototype.getWidth=function(){return this.width},o.prototype.getHeight=function(){return this.height},o.prototype.getRowSize=function(){return this.rowSize},o.prototype.equals=function(t){return t instanceof o&&(this.width===t.width&&this.height===t.height&&this.rowSize===t.rowSize&&at.equals(this.bits,t.bits))},o.prototype.hashCode=function(){var t=this.width;return 31*(t=31*(t=31*(t=31*t+this.width)+this.height)+this.rowSize)+at.hashCode(this.bits)},o.prototype.toString=function(t,i,s){return void 0===t&&(t="X "),void 0===i&&(i=" "),void 0===s&&(s="\n"),this.buildToString(t,i,s)},o.prototype.buildToString=function(t,i,s){for(var c=new Ce,h=0,v=this.height;h>t.LUMINANCE_SHIFT]++;var N=t.estimateBlackPoint(M);if(h<3)for(O=0;O>t.LUMINANCE_SHIFT]++;var we=t.estimateBlackPoint(v),et=i.getMatrix();for(M=0;Mv&&(h=M,v=i[M]),i[M]>c&&(c=i[M]);var O=0,N=0;for(M=0;MN&&(O=M,N=q)}if(h>O){var de=h;h=O,O=de}if(O-h<=s/16)throw new Se;var we=O-1,et=-1;for(M=O-1;M>h;M--){var q,vt=M-h;(q=vt*vt*(O-M)*(c-i[M]))>et&&(we=M,et=q)}return we<=t.MINIMUM_DIMENSION&&c>=t.MINIMUM_DIMENSION){var h=i.getMatrix(),v=s>>t.BLOCK_SIZE_POWER;s&t.BLOCK_SIZE_MASK&&v++;var M=c>>t.BLOCK_SIZE_POWER;c&t.BLOCK_SIZE_MASK&&M++;var O=t.calculateBlackPoints(h,v,M,s,c),N=new ae(s,c);t.calculateThresholdForBlock(h,v,M,s,c,O,N),this.matrix=N}else this.matrix=o.prototype.getBlackMatrix.call(this);return this.matrix},t.prototype.createBinarizer=function(i){return new t(i)},t.calculateThresholdForBlock=function(i,s,c,h,v,M,O){for(var N=v-t.BLOCK_SIZE,$=h-t.BLOCK_SIZE,q=0;qN&&(de=N);for(var we=t.cap(q,2,c-3),et=0;et$&&(vt=$);for(var zt=t.cap(et,2,s-3),$t=0,Gt=-2;Gt<=2;Gt++){var an=M[we+Gt];$t+=an[zt-2]+an[zt-1]+an[zt]+an[zt+1]+an[zt+2]}t.thresholdBlock(i,vt,de,$t/25,h,O)}}},t.cap=function(i,s,c){return ic?c:i},t.thresholdBlock=function(i,s,c,h,v,M){for(var O=0,N=c*v+s;OM&&(q=M);for(var de=0;deO&&(we=O);for(var et=0,vt=255,zt=0,$t=0,Gt=q*h+we;$tzt&&(zt=bn)}if(zt-vt>t.MIN_DYNAMIC_RANGE)for($t++,Gt+=h;$t>2*t.BLOCK_SIZE_POWER;if(zt-vt<=t.MIN_DYNAMIC_RANGE&&(Nn=vt/2,$>0&&de>0)){var Zn=(N[$-1][de]+2*N[$][de-1]+N[$-1][de-1])/4;vt>10}else{v=0,M=0;for(var et=i.length;v>10)}return h},t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth(),h=i*c;return null===s?s=this.buffer.slice(h,h+c):(s.length0&&h[h.length-1])&&(6===N[0]||2===N[0])){i=0;continue}if(3===N[0]&&(!h||N[1]>h[0]&&N[1]=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),c=s.next();!c.done;c=s.next())"videoinput"===(v="video"===(h=c.value).kind?"videoinput":h.kind)&&i.push({deviceId:h.deviceId||h.id,label:h.label||"Video device "+(i.length+1),kind:v,groupId:h.groupId})}catch(et){q={error:et}}finally{try{c&&!c.done&&(de=s.return)&&de.call(s)}finally{if(q)throw q.error}}return[2,i]}})})},o.prototype.getVideoInputDevices=function(){return G(this,void 0,void 0,function(){return U(this,function(i){switch(i.label){case 0:return[4,this.listVideoInputDevices()];case 1:return[2,i.sent().map(function(s){return new _t(s.deviceId,s.label)})]}})})},o.prototype.findDeviceById=function(t){return G(this,void 0,void 0,function(){var i;return U(this,function(s){switch(s.label){case 0:return[4,this.listVideoInputDevices()];case 1:return(i=s.sent())?[2,i.find(function(c){return c.deviceId===t})]:[2,null]}})})},o.prototype.decodeFromInputVideoDevice=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:return[4,this.decodeOnceFromVideoDevice(t,i)];case 1:return[2,s.sent()]}})})},o.prototype.decodeOnceFromVideoDevice=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.decodeOnceFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i)];case 1:return[2,h.sent()]}})})},o.prototype.decodeOnceFromConstraints=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(c){switch(c.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return s=c.sent(),[4,this.decodeOnceFromStream(s,i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromStream=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,i)];case 1:return s=h.sent(),[4,this.decodeOnce(s)];case 2:return[2,h.sent()]}})})},o.prototype.decodeFromInputVideoDeviceContinuously=function(t,i,s){return G(this,void 0,void 0,function(){return U(this,function(c){switch(c.label){case 0:return[4,this.decodeFromVideoDevice(t,i,s)];case 1:return[2,c.sent()]}})})},o.prototype.decodeFromVideoDevice=function(t,i,s){return G(this,void 0,void 0,function(){return U(this,function(v){switch(v.label){case 0:return[4,this.decodeFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i,s)];case 1:return[2,v.sent()]}})})},o.prototype.decodeFromConstraints=function(t,i,s){return G(this,void 0,void 0,function(){var c;return U(this,function(h){switch(h.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return c=h.sent(),[4,this.decodeFromStream(c,i,s)];case 2:return[2,h.sent()]}})})},o.prototype.decodeFromStream=function(t,i,s){return G(this,void 0,void 0,function(){var c;return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,i)];case 1:return c=h.sent(),[4,this.decodeContinuously(c,s)];case 2:return[2,h.sent()]}})})},o.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},o.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},o.prototype.attachStreamToVideo=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(c){switch(c.label){case 0:return s=this.prepareVideoElement(i),this.addVideoSource(s,t),this.videoElement=s,this.stream=t,[4,this.playVideoOnLoadAsync(s)];case 1:return c.sent(),[2,s]}})})},o.prototype.playVideoOnLoadAsync=function(t){var i=this;return new Promise(function(s,c){return i.playVideoOnLoad(t,function(){return s()})})},o.prototype.playVideoOnLoad=function(t,i){var s=this;this.videoEndedListener=function(){return s.stopStreams()},this.videoCanPlayListener=function(){return s.tryPlayVideo(t)},t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",i),this.tryPlayVideo(t)},o.prototype.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2},o.prototype.tryPlayVideo=function(t){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:if(this.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.play()];case 2:return s.sent(),[3,4];case 3:return s.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},o.prototype.getMediaElement=function(t,i){var s=document.getElementById(t);if(!s)throw new _e("element with id '"+t+"' not found");if(s.nodeName.toLowerCase()!==i.toLowerCase())throw new _e("element with id '"+t+"' must be an "+i+" element");return s},o.prototype.decodeFromImage=function(t,i){if(!t&&!i)throw new _e("either imageElement with a src set or an url must be provided");return i&&!t?this.decodeFromImageUrl(i):this.decodeFromImageElement(t)},o.prototype.decodeFromVideo=function(t,i){if(!t&&!i)throw new _e("Either an element with a src set or an URL must be provided");return i&&!t?this.decodeFromVideoUrl(i):this.decodeFromVideoElement(t)},o.prototype.decodeFromVideoContinuously=function(t,i,s){if(void 0===t&&void 0===i)throw new _e("Either an element with a src set or an URL must be provided");return i&&!t?this.decodeFromVideoUrlContinuously(i,s):this.decodeFromVideoElementContinuously(t,s)},o.prototype.decodeFromImageElement=function(t){if(!t)throw new _e("An image element must be provided.");this.reset();var i=this.prepareImageElement(t);return this.imageElement=i,this.isImageLoaded(i)?this.decodeOnce(i,!1,!0):this._decodeOnLoadImage(i)},o.prototype.decodeFromVideoElement=function(t){var i=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(i)},o.prototype.decodeFromVideoElementContinuously=function(t,i){var s=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(s,i)},o.prototype._decodeFromVideoElementSetup=function(t){if(!t)throw new _e("A video element must be provided.");this.reset();var i=this.prepareVideoElement(t);return this.videoElement=i,i},o.prototype.decodeFromImageUrl=function(t){if(!t)throw new _e("An URL must be provided.");this.reset();var i=this.prepareImageElement();this.imageElement=i;var s=this._decodeOnLoadImage(i);return i.src=t,s},o.prototype.decodeFromVideoUrl=function(t){if(!t)throw new _e("An URL must be provided.");this.reset();var i=this.prepareVideoElement(),s=this.decodeFromVideoElement(i);return i.src=t,s},o.prototype.decodeFromVideoUrlContinuously=function(t,i){if(!t)throw new _e("An URL must be provided.");this.reset();var s=this.prepareVideoElement(),c=this.decodeFromVideoElementContinuously(s,i);return s.src=t,c},o.prototype._decodeOnLoadImage=function(t){var i=this;return new Promise(function(s,c){i.imageLoadedListener=function(){return i.decodeOnce(t,!1,!0).then(s,c)},t.addEventListener("load",i.imageLoadedListener)})},o.prototype._decodeOnLoadVideo=function(t){return G(this,void 0,void 0,function(){return U(this,function(i){switch(i.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return i.sent(),[4,this.decodeOnce(t)];case 2:return[2,i.sent()]}})})},o.prototype._decodeOnLoadVideoContinuously=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return s.sent(),this.decodeContinuously(t,i),[2]}})})},o.prototype.isImageLoaded=function(t){return!(!t.complete||0===t.naturalWidth)},o.prototype.prepareImageElement=function(t){var i;return typeof t>"u"&&((i=document.createElement("img")).width=200,i.height=200),"string"==typeof t&&(i=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(i=t),i},o.prototype.prepareVideoElement=function(t){var i;return!t&&typeof document<"u"&&((i=document.createElement("video")).width=200,i.height=200),"string"==typeof t&&(i=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(i=t),i.setAttribute("autoplay","true"),i.setAttribute("muted","true"),i.setAttribute("playsinline","true"),i},o.prototype.decodeOnce=function(t,i,s){var c=this;void 0===i&&(i=!0),void 0===s&&(s=!0),this._stopAsyncDecode=!1;var h=function(v,M){if(c._stopAsyncDecode)return M(new Se("Video stream has ended before any code could be detected.")),void(c._stopAsyncDecode=void 0);try{v(c.decode(t))}catch(de){if(i&&de instanceof Se||(de instanceof St||de instanceof bt)&&s)return setTimeout(h,c._timeBetweenDecodingAttempts,v,M);M(de)}};return new Promise(function(v,M){return h(v,M)})},o.prototype.decodeContinuously=function(t,i){var s=this;this._stopContinuousDecode=!1;var c=function(){if(s._stopContinuousDecode)s._stopContinuousDecode=void 0;else try{var h=s.decode(t);i(h,null),setTimeout(c,s.timeBetweenScansMillis)}catch(O){i(null,O),(O instanceof St||O instanceof bt||O instanceof Se)&&setTimeout(c,s._timeBetweenDecodingAttempts)}};c()},o.prototype.decode=function(t){var i=this.createBinaryBitmap(t);return this.decodeBitmap(i)},o.prototype.createBinaryBitmap=function(t){this.getCaptureCanvasContext(t),t instanceof HTMLVideoElement?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);var s=this.getCaptureCanvas(t),c=new qt(s),h=new gn(c);return new je(h)},o.prototype.getCaptureCanvasContext=function(t){if(!this.captureCanvasContext){var i=this.getCaptureCanvas(t),s=void 0;try{s=i.getContext("2d",{willReadFrequently:!0})}catch{s=i.getContext("2d")}this.captureCanvasContext=s}return this.captureCanvasContext},o.prototype.getCaptureCanvas=function(t){if(!this.captureCanvas){var i=this.createCaptureCanvas(t);this.captureCanvas=i}return this.captureCanvas},o.prototype.drawFrameOnCanvas=function(t,i,s){void 0===i&&(i={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),void 0===s&&(s=this.captureCanvasContext),s.drawImage(t,i.sx,i.sy,i.sWidth,i.sHeight,i.dx,i.dy,i.dWidth,i.dHeight)},o.prototype.drawImageOnCanvas=function(t,i,s){void 0===i&&(i={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),void 0===s&&(s=this.captureCanvasContext),s.drawImage(t,i.sx,i.sy,i.sWidth,i.sHeight,i.dx,i.dy,i.dWidth,i.dHeight)},o.prototype.decodeBitmap=function(t){return this.reader.decode(t,this._hints)},o.prototype.createCaptureCanvas=function(t){if(typeof document>"u")return this._destroyCaptureCanvas(),null;var s,c,i=document.createElement("canvas");return typeof t<"u"&&(t instanceof HTMLVideoElement?(s=t.videoWidth,c=t.videoHeight):t instanceof HTMLImageElement&&(s=t.naturalWidth||t.width,c=t.naturalHeight||t.height)),i.style.width=s+"px",i.style.height=c+"px",i.width=s,i.height=c,i},o.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(t){return t.stop()}),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},o.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},o.prototype._destroyVideoElement=function(){this.videoElement&&(typeof this.videoEndedListener<"u"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener<"u"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener<"u"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},o.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},o.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},o.prototype.addVideoSource=function(t,i){try{t.srcObject=i}catch{t.src=URL.createObjectURL(i)}},o.prototype.cleanVideoSource=function(t){try{t.srcObject=null}catch{t.src=""}this.videoElement.removeAttribute("src")},o}(),ut=function(){function o(t,i,s,c,h,v){void 0===s&&(s=null==i?0:8*i.length),void 0===v&&(v=Jt.currentTimeMillis()),this.text=t,this.rawBytes=i,this.numBits=s,this.resultPoints=c,this.format=h,this.timestamp=v,this.text=t,this.rawBytes=i,this.numBits=null==s?null==i?0:8*i.length:s,this.resultPoints=c,this.format=h,this.resultMetadata=null,this.timestamp=null==v?Jt.currentTimeMillis():v}return o.prototype.getText=function(){return this.text},o.prototype.getRawBytes=function(){return this.rawBytes},o.prototype.getNumBits=function(){return this.numBits},o.prototype.getResultPoints=function(){return this.resultPoints},o.prototype.getBarcodeFormat=function(){return this.format},o.prototype.getResultMetadata=function(){return this.resultMetadata},o.prototype.putMetadata=function(t,i){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(t,i)},o.prototype.putAllMetadata=function(t){null!==t&&(this.resultMetadata=null===this.resultMetadata?t:new Map(t))},o.prototype.addResultPoints=function(t){var i=this.resultPoints;if(null===i)this.resultPoints=t;else if(null!==t&&t.length>0){var s=new Array(i.length+t.length);Jt.arraycopy(i,0,s,0,i.length),Jt.arraycopy(t,0,s,i.length,t.length),this.resultPoints=s}},o.prototype.getTimestamp=function(){return this.timestamp},o.prototype.toString=function(){return this.text},o}();const We=ut;var ze=function(o){return o[o.AZTEC=0]="AZTEC",o[o.CODABAR=1]="CODABAR",o[o.CODE_39=2]="CODE_39",o[o.CODE_93=3]="CODE_93",o[o.CODE_128=4]="CODE_128",o[o.DATA_MATRIX=5]="DATA_MATRIX",o[o.EAN_8=6]="EAN_8",o[o.EAN_13=7]="EAN_13",o[o.ITF=8]="ITF",o[o.MAXICODE=9]="MAXICODE",o[o.PDF_417=10]="PDF_417",o[o.QR_CODE=11]="QR_CODE",o[o.RSS_14=12]="RSS_14",o[o.RSS_EXPANDED=13]="RSS_EXPANDED",o[o.UPC_A=14]="UPC_A",o[o.UPC_E=15]="UPC_E",o[o.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION",o}(ze||{});const be=ze;var Te=function(o){return o[o.OTHER=0]="OTHER",o[o.ORIENTATION=1]="ORIENTATION",o[o.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",o[o.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",o[o.ISSUE_NUMBER=4]="ISSUE_NUMBER",o[o.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",o[o.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",o[o.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",o[o.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",o[o.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",o[o.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY",o}(Te||{});const He=Te;var Wt=function(){function o(t,i,s,c,h,v){void 0===h&&(h=-1),void 0===v&&(v=-1),this.rawBytes=t,this.text=i,this.byteSegments=s,this.ecLevel=c,this.structuredAppendSequenceNumber=h,this.structuredAppendParity=v,this.numBits=null==t?0:8*t.length}return o.prototype.getRawBytes=function(){return this.rawBytes},o.prototype.getNumBits=function(){return this.numBits},o.prototype.setNumBits=function(t){this.numBits=t},o.prototype.getText=function(){return this.text},o.prototype.getByteSegments=function(){return this.byteSegments},o.prototype.getECLevel=function(){return this.ecLevel},o.prototype.getErrorsCorrected=function(){return this.errorsCorrected},o.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},o.prototype.getErasures=function(){return this.erasures},o.prototype.setErasures=function(t){this.erasures=t},o.prototype.getOther=function(){return this.other},o.prototype.setOther=function(t){this.other=t},o.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},o.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},o.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},o}();const Pn=Wt;var wt=function(){function o(){}return o.prototype.exp=function(t){return this.expTable[t]},o.prototype.log=function(t){if(0===t)throw new Ge;return this.logTable[t]},o.addOrSubtract=function(t,i){return t^i},o}();const Yt=wt;var fe=function(){function o(t,i){if(0===i.length)throw new Ge;this.field=t;var s=i.length;if(s>1&&0===i[0]){for(var c=1;cs.length){var c=i;i=s,s=c}var h=new Int32Array(s.length),v=s.length-i.length;Jt.arraycopy(s,0,h,0,v);for(var M=v;M=t.getDegree()&&!c.isZero();){var M=c.getDegree()-t.getDegree(),O=i.multiply(c.getCoefficient(c.getDegree()),v),N=t.multiplyByMonomial(M,O),$=i.buildMonomial(M,O);s=s.addOrSubtract($),c=c.addOrSubtract(N)}return[s,c]},o.prototype.toString=function(){for(var t="",i=this.getDegree();i>=0;i--){var s=this.getCoefficient(i);if(0!==s){if(s<0?(t+=" - ",s=-s):t.length>0&&(t+=" + "),0===i||1!==s){var c=this.field.log(s);0===c?t+="1":1===c?t+="a":(t+="a^",t+=c)}0!==i&&(1===i?t+="x":(t+="x^",t+=i))}}return t},o}();const Mt=fe;var Vt=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ht=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Vt(t,o),t.kind="ArithmeticException",t}(te);const st=ht;var It=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),cn=function(o){function t(i,s,c){var h=o.call(this)||this;h.primitive=i,h.size=s,h.generatorBase=c;for(var v=new Int32Array(s),M=1,O=0;O=s&&(M^=i,M&=s-1);h.expTable=v;var N=new Int32Array(s);for(O=0;O=(s/2|0);){var $=v,q=O;if(O=N,(v=M).isZero())throw new ni("r_{i-1} was zero");M=$;for(var de=h.getZero(),we=v.getCoefficient(v.getDegree()),et=h.inverse(we);M.getDegree()>=v.getDegree()&&!M.isZero();){var vt=M.getDegree()-v.getDegree(),zt=h.multiply(M.getCoefficient(M.getDegree()),et);de=de.addOrSubtract(h.buildMonomial(vt,zt)),M=M.addOrSubtract(v.multiplyByMonomial(vt,zt))}if(N=de.multiply(O).addOrSubtract(q),M.getDegree()>=v.getDegree())throw new ki("Division algorithm failed to reduce polynomial?")}var $t=N.getCoefficient(0);if(0===$t)throw new ni("sigmaTilde(0) was zero");var Gt=h.inverse($t);return[N.multiplyScalar(Gt),M.multiplyScalar(Gt)]},o.prototype.findErrorLocations=function(t){var i=t.getDegree();if(1===i)return Int32Array.from([t.getCoefficient(1)]);for(var s=new Int32Array(i),c=0,h=this.field,v=1;v1,et,et+s-1),et+=s-1;else for(var vt=s-1;vt>=0;--vt)we[et++]=0!=(de&1<=8?o.readCode(t,i,8):o.readCode(t,i,s)<<8-s},o.convertBoolArrayToByteArray=function(t){for(var i=new Uint8Array((t.length+7)/8),s=0;s","?","[","]","{","}","CTRL_UL"],o.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],o}();const Ji=co;var tr=function(){function o(){}return o.round=function(t){return isNaN(t)?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0},o.distance=function(t,i,s,c){var h=t-s,v=i-c;return Math.sqrt(h*h+v*v)},o.sum=function(t){for(var i=0,s=0,c=t.length;s!==c;s++)i+=t[s];return i},o}();const _i=tr;var bo=function(){function o(){}return o.floatToIntBits=function(t){return t},o.MAX_VALUE=Number.MAX_SAFE_INTEGER,o}();const pr=bo;var br=function(){function o(t,i){this.x=t,this.y=i}return o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.equals=function(t){return t instanceof o&&(this.x===t.x&&this.y===t.y)},o.prototype.hashCode=function(){return 31*pr.floatToIntBits(this.x)+pr.floatToIntBits(this.y)},o.prototype.toString=function(){return"("+this.x+","+this.y+")"},o.orderBestPatterns=function(t){var h,v,M,i=this.distance(t[0],t[1]),s=this.distance(t[1],t[2]),c=this.distance(t[0],t[2]);if(s>=i&&s>=c?(v=t[0],h=t[1],M=t[2]):c>=s&&c>=i?(v=t[1],h=t[0],M=t[2]):(v=t[2],h=t[0],M=t[1]),this.crossProductZ(h,v,M)<0){var O=h;h=M,M=O}t[0]=h,t[1]=v,t[2]=M},o.distance=function(t,i){return _i.distance(t.x,t.y,i.x,i.y)},o.crossProductZ=function(t,i,s){var c=i.x,h=i.y;return(s.x-c)*(t.y-h)-(s.y-h)*(t.x-c)},o}();const $n=br;var yo=function(){function o(t,i){this.bits=t,this.points=i}return o.prototype.getBits=function(){return this.bits},o.prototype.getPoints=function(){return this.points},o}();const Fr=yo;var uo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ho=function(o){function t(i,s,c,h,v){var M=o.call(this,i,s)||this;return M.compact=c,M.nbDatablocks=h,M.nbLayers=v,M}return uo(t,o),t.prototype.getNbLayers=function(){return this.nbLayers},t.prototype.getNbDatablocks=function(){return this.nbDatablocks},t.prototype.isCompact=function(){return this.compact},t}(Fr);const to=ho;var yr=function(){function o(t,i,s,c){this.image=t,this.height=t.getHeight(),this.width=t.getWidth(),null==i&&(i=o.INIT_SIZE),null==s&&(s=t.getWidth()/2|0),null==c&&(c=t.getHeight()/2|0);var h=i/2|0;if(this.leftInit=s-h,this.rightInit=s+h,this.upInit=c-h,this.downInit=c+h,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new Se}return o.prototype.detect=function(){for(var t=this.leftInit,i=this.rightInit,s=this.upInit,c=this.downInit,h=!1,v=!0,M=!1,O=!1,N=!1,$=!1,q=!1,de=this.width,we=this.height;v;){v=!1;for(var et=!0;(et||!O)&&i=de){h=!0;break}for(var vt=!0;(vt||!N)&&c=we){h=!0;break}for(var zt=!0;(zt||!$)&&t>=0;)(zt=this.containsBlackPoint(s,c,t,!1))?(t--,v=!0,$=!0):$||t--;if(t<0){h=!0;break}for(var $t=!0;($t||!q)&&s>=0;)($t=this.containsBlackPoint(t,i,s,!0))?(s--,v=!0,q=!0):q||s--;if(s<0){h=!0;break}v&&(M=!0)}if(!h&&M){for(var Gt=i-t,an=null,bn=1;null===an&&bns||O<-1||O>c)throw new Se;h=!1,-1===M?(i[v]=0,h=!0):M===s&&(i[v]=s-1,h=!0),-1===O?(i[v+1]=0,h=!0):O===c&&(i[v+1]=c-1,h=!0)}for(h=!0,v=i.length-2;v>=0&&h;v-=2){if(M=Math.floor(i[v]),O=Math.floor(i[v+1]),M<-1||M>s||O<-1||O>c)throw new Se;h=!1,-1===M?(i[v]=0,h=!0):M===s&&(i[v]=s-1,h=!0),-1===O?(i[v+1]=0,h=!0):O===c&&(i[v+1]=c-1,h=!0)}},o}();const xl=Ba;var So=function(){function o(t,i,s,c,h,v,M,O,N){this.a11=t,this.a21=i,this.a31=s,this.a12=c,this.a22=h,this.a32=v,this.a13=M,this.a23=O,this.a33=N}return o.quadrilateralToQuadrilateral=function(t,i,s,c,h,v,M,O,N,$,q,de,we,et,vt,zt){var $t=o.quadrilateralToSquare(t,i,s,c,h,v,M,O);return o.squareToQuadrilateral(N,$,q,de,we,et,vt,zt).times($t)},o.prototype.transformPoints=function(t){for(var i=t.length,s=this.a11,c=this.a12,h=this.a13,v=this.a21,M=this.a22,O=this.a23,N=this.a31,$=this.a32,q=this.a33,de=0;de>1&127):(c<<=10,c+=(v>>2&992)+(v>>1&31))}var M=this.getCorrectedParameterData(c,this.compact);this.compact?(this.nbLayers=1+(M>>6),this.nbDataBlocks=1+(63&M)):(this.nbLayers=1+(M>>11),this.nbDataBlocks=1+(2047&M))},o.prototype.getRotation=function(t,i){var s=0;t.forEach(function(h,v,M){s=(h>>i-2<<1)+(1&h)+(s<<3)}),s=((1&s)<<11)+(s>>1);for(var c=0;c<4;c++)if(Ee.bitCount(s^this.EXPECTED_CORNER_BITS[c])<=2)return c;throw new Se},o.prototype.getCorrectedParameterData=function(t,i){var s,c;i?(s=7,c=2):(s=10,c=4);for(var h=s-c,v=new Int32Array(s),M=s-1;M>=0;--M)v[M]=15&t,t>>=4;try{new vr(_n.AZTEC_PARAM).decode(v,h)}catch{throw new Se}var N=0;for(M=0;M2){var q=this.distancePoint($,M)*this.nbCenterLayers/(this.distancePoint(h,i)*(this.nbCenterLayers+2));if(q<.75||q>1.25||!this.isWhiteOrBlackRectangle(M,O,N,$))break}i=M,s=O,c=N,h=$,v=!v}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new Se;this.compact=5===this.nbCenterLayers;var de=new $n(i.getX()+.5,i.getY()-.5),we=new $n(s.getX()+.5,s.getY()+.5),et=new $n(c.getX()-.5,c.getY()+.5),vt=new $n(h.getX()-.5,h.getY()-.5);return this.expandSquare([de,we,et,vt],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},o.prototype.getMatrixCenter=function(){var t,i,s,c;try{t=(h=new Gs(this.image).detect())[0],i=h[1],s=h[2],c=h[3]}catch{var v=this.image.getWidth()/2,M=this.image.getHeight()/2;t=this.getFirstDifferent(new kr(v+7,M-7),!1,1,-1).toResultPoint(),i=this.getFirstDifferent(new kr(v+7,M+7),!1,1,1).toResultPoint(),s=this.getFirstDifferent(new kr(v-7,M+7),!1,-1,1).toResultPoint(),c=this.getFirstDifferent(new kr(v-7,M-7),!1,-1,-1).toResultPoint()}var O=_i.round((t.getX()+c.getX()+i.getX()+s.getX())/4),N=_i.round((t.getY()+c.getY()+i.getY()+s.getY())/4);try{var h;t=(h=new Gs(this.image,15,O,N).detect())[0],i=h[1],s=h[2],c=h[3]}catch{t=this.getFirstDifferent(new kr(O+7,N-7),!1,1,-1).toResultPoint(),i=this.getFirstDifferent(new kr(O+7,N+7),!1,1,1).toResultPoint(),s=this.getFirstDifferent(new kr(O-7,N+7),!1,-1,1).toResultPoint(),c=this.getFirstDifferent(new kr(O-7,N-7),!1,-1,-1).toResultPoint()}return O=_i.round((t.getX()+c.getX()+i.getX()+s.getX())/4),N=_i.round((t.getY()+c.getY()+i.getY()+s.getY())/4),new kr(O,N)},o.prototype.getMatrixCornerPoints=function(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())},o.prototype.sampleGrid=function(t,i,s,c,h){var v=ga.getInstance(),M=this.getDimension(),O=M/2-this.nbCenterLayers,N=M/2+this.nbCenterLayers;return v.sampleGrid(t,M,M,O,O,N,O,N,N,O,N,i.getX(),i.getY(),s.getX(),s.getY(),c.getX(),c.getY(),h.getX(),h.getY())},o.prototype.sampleLine=function(t,i,s){for(var c=0,h=this.distanceResultPoint(t,i),v=h/s,M=t.getX(),O=t.getY(),N=v*(i.getX()-t.getX())/h,$=v*(i.getY()-t.getY())/h,q=0;q.1&&de<.9?0:de<=.1===N?1:-1},o.prototype.getFirstDifferent=function(t,i,s,c){for(var h=t.getX()+s,v=t.getY()+c;this.isValid(h,v)&&this.image.get(h,v)===i;)h+=s,v+=c;for(h-=s,v-=c;this.isValid(h,v)&&this.image.get(h,v)===i;)h+=s;for(h-=s;this.isValid(h,v)&&this.image.get(h,v)===i;)v+=c;return new kr(h,v-=c)},o.prototype.expandSquare=function(t,i,s){var c=s/(2*i),h=t[0].getX()-t[2].getX(),v=t[0].getY()-t[2].getY(),M=(t[0].getX()+t[2].getX())/2,O=(t[0].getY()+t[2].getY())/2,N=new $n(M+c*h,O+c*v),$=new $n(M-c*h,O-c*v);return h=t[1].getX()-t[3].getX(),v=t[1].getY()-t[3].getY(),M=(t[1].getX()+t[3].getX())/2,O=(t[1].getY()+t[3].getY())/2,[N,new $n(M+c*h,O+c*v),$,new $n(M-c*h,O-c*v)]},o.prototype.isValid=function(t,i){return t>=0&&t0&&i>(v?8:5));O=v?c:15;for(var N=Math.trunc(c/2),$=0;$=c)break;try{h=t.getBlackRow(we,h)}catch{continue}for(var et=function(Gt){if(1===Gt&&(h.reverse(),i&&!0===i.get(he.NEED_RESULT_POINT_CALLBACK))){var an=new Map;i.forEach(function(Zn,Kn){return an.set(Kn,Zn)}),an.delete(he.NEED_RESULT_POINT_CALLBACK),i=an}try{var bn=vt.decodeRow(we,h,i);if(1===Gt){bn.putMetadata(He.ORIENTATION,180);var Nn=bn.getResultPoints();null!==Nn&&(Nn[0]=new $n(s-Nn[0].getX()-1,Nn[0].getY()),Nn[1]=new $n(s-Nn[1].getX()-1,Nn[1].getY()))}return{value:bn}}catch{}},vt=this,zt=0;zt<2;zt++){var $t=et(zt);if("object"==typeof $t)return $t.value}}throw new Se},o.recordPattern=function(t,i,s){for(var c=s.length,h=0;h=v)throw new Se;for(var M=!t.get(i),O=0,N=i;N0&&c>=0;)t.get(--i)!==h&&(c--,h=!h);if(c>=0)throw new Se;o.recordPattern(t,i+1,s)},o.patternMatchVariance=function(t,i,s){for(var c=t.length,h=0,v=0,M=0;Mde?q-de:de-q;if(we>s)return Number.POSITIVE_INFINITY;N+=we}return N/h},o}());const qi=Aa;var Li=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Yr=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Li(t,o),t.findStartPattern=function(i){for(var s=i.getSize(),c=i.getNextSet(0),h=0,v=Int32Array.from([0,0,0,0,0,0]),M=c,O=!1,$=c;$=0&&i.isRange(Math.max(0,M-($-M)/2),M,!1))return Int32Array.from([M,$,de]);M+=v[0]+v[1],(v=v.slice(2,v.length-1))[h-1]=0,v[h]=0,h--}else h++;v[h]=1,O=!O}throw new Se},t.decodeCode=function(i,s,c){qi.recordPattern(i,c,s);for(var h=t.MAX_AVG_VARIANCE,v=-1,M=0;M=0)return v;throw new Se},t.prototype.decodeRow=function(i,s,c){var $,h=c&&!0===c.get(he.ASSUME_GS1),v=t.findStartPattern(s),M=v[2],O=0,N=new Uint8Array(20);switch(N[O++]=M,M){case t.CODE_START_A:$=t.CODE_CODE_A;break;case t.CODE_START_B:$=t.CODE_CODE_B;break;case t.CODE_START_C:$=t.CODE_CODE_C;break;default:throw new bt}for(var q=!1,de=!1,we="",et=v[0],vt=v[1],zt=Int32Array.from([0,0,0,0,0,0]),$t=0,Gt=0,an=M,bn=0,Nn=!0,Zn=!1,Kn=!1;!q;){var fi=de;switch(de=!1,$t=Gt,Gt=t.decodeCode(s,zt,vt),N[O++]=Gt,Gt!==t.CODE_STOP&&(Nn=!0),Gt!==t.CODE_STOP&&(an+=++bn*Gt),et=vt,vt+=zt.reduce(function(f,E){return f+E},0),Gt){case t.CODE_START_A:case t.CODE_START_B:case t.CODE_START_C:throw new bt}switch($){case t.CODE_CODE_A:if(Gt<64)we+=String.fromCharCode(Kn===Zn?" ".charCodeAt(0)+Gt:" ".charCodeAt(0)+Gt+128),Kn=!1;else if(Gt<96)we+=String.fromCharCode(Kn===Zn?Gt-64:Gt+64),Kn=!1;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_A:!Zn&&Kn?(Zn=!0,Kn=!1):Zn&&Kn?(Zn=!1,Kn=!1):Kn=!0;break;case t.CODE_SHIFT:de=!0,$=t.CODE_CODE_B;break;case t.CODE_CODE_B:$=t.CODE_CODE_B;break;case t.CODE_CODE_C:$=t.CODE_CODE_C;break;case t.CODE_STOP:q=!0}break;case t.CODE_CODE_B:if(Gt<96)we+=String.fromCharCode(Kn===Zn?" ".charCodeAt(0)+Gt:" ".charCodeAt(0)+Gt+128),Kn=!1;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_B:!Zn&&Kn?(Zn=!0,Kn=!1):Zn&&Kn?(Zn=!1,Kn=!1):Kn=!0;break;case t.CODE_SHIFT:de=!0,$=t.CODE_CODE_A;break;case t.CODE_CODE_A:$=t.CODE_CODE_A;break;case t.CODE_CODE_C:$=t.CODE_CODE_C;break;case t.CODE_STOP:q=!0}break;case t.CODE_CODE_C:if(Gt<100)Gt<10&&(we+="0"),we+=Gt;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_CODE_A:$=t.CODE_CODE_A;break;case t.CODE_CODE_B:$=t.CODE_CODE_B;break;case t.CODE_STOP:q=!0}}fi&&($=$===t.CODE_CODE_A?t.CODE_CODE_B:t.CODE_CODE_A)}var Gi=vt-et;if(vt=s.getNextUnset(vt),!s.isRange(vt,Math.min(s.getSize(),vt+(vt-et)/2),!1))throw new Se;if((an-=bn*$t)%103!==$t)throw new St;var Vi=we.length;if(0===Vi)throw new Se;Vi>0&&Nn&&(we=we.substring(0,$===t.CODE_CODE_C?Vi-2:Vi-1));for(var go=(v[1]+v[0])/2,Dr=et+Gi/2,hs=N.length,Vl=new Uint8Array(hs),ic=0;ic=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},al=function(o){function t(i,s){void 0===i&&(i=!1),void 0===s&&(s=!1);var c=o.call(this)||this;return c.usingCheckDigit=i,c.extendedMode=s,c.decodeRowResult="",c.counters=new Int32Array(9),c}return Ha(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,N=this.counters;N.fill(0),this.decodeRowResult="";var we,et,$=t.findAsteriskPattern(s,N),q=s.getNextSet($[1]),de=s.getSize();do{t.recordPattern(s,q,N);var vt=t.toNarrowWidePattern(N);if(vt<0)throw new Se;we=t.patternToChar(vt),this.decodeRowResult+=we,et=q;try{for(var zt=(h=void 0,wr(N)),$t=zt.next();!$t.done;$t=zt.next())q+=$t.value}catch(hs){h={error:hs}}finally{try{$t&&!$t.done&&(v=zt.return)&&v.call(zt)}finally{if(h)throw h.error}}q=s.getNextSet(q)}while("*"!==we);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var Vi,an=0;try{for(var bn=wr(N),Nn=bn.next();!Nn.done;Nn=bn.next())an+=Nn.value}catch(hs){M={error:hs}}finally{try{Nn&&!Nn.done&&(O=bn.return)&&O.call(bn)}finally{if(M)throw M.error}}if(q!==de&&2*(q-et-an)v&&(O=q)}catch(vt){s={error:vt}}finally{try{$&&!$.done&&(c=N.return)&&c.call(N)}finally{if(s)throw s.error}}v=O,M=0;for(var de=0,we=0,et=0;etv&&(we|=1<0;et++){var q;if((q=i[et])>v&&(M--,2*q>=de))return-1}return we}}while(M>3);return-1},t.patternToChar=function(i){for(var s=0;s="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)+32);break;case"$":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)-64);break;case"%":if(M>="A"&&M<="E")O=String.fromCharCode(M.charCodeAt(0)-38);else if(M>="F"&&M<="J")O=String.fromCharCode(M.charCodeAt(0)-11);else if(M>="K"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)+16);else if(M>="P"&&M<="T")O=String.fromCharCode(M.charCodeAt(0)+43);else if("U"===M)O="\0";else if("V"===M)O="@";else if("W"===M)O="`";else{if("X"!==M&&"Y"!==M&&"Z"!==M)throw new bt;O="\x7f"}break;case"/":if(M>="A"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)-32);else{if("Z"!==M)throw new bt;O=":"}}c+=O,h++}else c+=v}return c},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",t.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],t.ASTERISK_ENCODING=148,t}(qi);const Vr=al;var Es=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Js=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ll=function(o){function t(){var i=o.call(this)||this;return i.decodeRowResult="",i.counters=new Int32Array(6),i}return Es(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,we,et,N=this.findAsteriskPattern(s),$=s.getNextSet(N[1]),q=s.getSize(),de=this.counters;de.fill(0),this.decodeRowResult="";do{t.recordPattern(s,$,de);var vt=this.toPattern(de);if(vt<0)throw new Se;we=this.patternToChar(vt),this.decodeRowResult+=we,et=$;try{for(var zt=(h=void 0,Js(de)),$t=zt.next();!$t.done;$t=zt.next())$+=$t.value}catch(Gi){h={error:Gi}}finally{try{$t&&!$t.done&&(v=zt.return)&&v.call(zt)}finally{if(h)throw h.error}}$=s.getNextSet($)}while("*"!==we);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var an=0;try{for(var bn=Js(de),Nn=bn.next();!Nn.done;Nn=bn.next())an+=Nn.value}catch(Gi){M={error:Gi}}finally{try{Nn&&!Nn.done&&(O=bn.return)&&O.call(bn)}finally{if(M)throw M.error}}if($===q||!s.get($))throw new Se;if(this.decodeRowResult.length<2)throw new Se;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var Zn=this.decodeExtended(this.decodeRowResult),fi=et+an/2;return new We(Zn,null,0,[new $n((N[1]+N[0])/2,i),new $n(fi,i)],be.CODE_93,(new Date).getTime())},t.prototype.findAsteriskPattern=function(i){var s=i.getSize(),c=i.getNextSet(0);this.counters.fill(0);for(var h=this.counters,v=c,M=!1,O=h.length,N=0,$=c;$4)return-1;if(1&q)N<<=de;else for(var we=0;we="a"&&v<="d"){if(h>=s-1)throw new bt;var M=i.charAt(h+1),O="\0";switch(v){case"d":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)+32);break;case"a":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)-64);break;case"b":if(M>="A"&&M<="E")O=String.fromCharCode(M.charCodeAt(0)-38);else if(M>="F"&&M<="J")O=String.fromCharCode(M.charCodeAt(0)-11);else if(M>="K"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)+16);else if(M>="P"&&M<="T")O=String.fromCharCode(M.charCodeAt(0)+43);else if("U"===M)O="\0";else if("V"===M)O="@";else if("W"===M)O="`";else{if(!(M>="X"&&M<="Z"))throw new bt;O=String.fromCharCode(127)}break;case"c":if(M>="A"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)-32);else{if("Z"!==M)throw new bt;O=":"}}c+=O,h++}else c+=v}return c},t.prototype.checkChecksums=function(i){var s=i.length;this.checkOneChecksum(i,s-2,20),this.checkOneChecksum(i,s-1,15)},t.prototype.checkOneChecksum=function(i,s,c){for(var h=1,v=0,M=s-1;M>=0;M--)v+=h*t.ALPHABET_STRING.indexOf(i.charAt(M)),++h>c&&(h=1);if(i.charAt(s)!==t.ALPHABET_STRING[v%47])throw new St},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",t.ASTERISK_ENCODING=(t.CHARACTER_ENCODINGS=[276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350])[47],t}(qi);const er=ll;var qn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),_r=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.narrowLineWidth=-1,i}return qn(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M=this.decodeStart(s),O=this.decodeEnd(s),N=new Ce;t.decodeMiddle(s,M[1],O[0],N);var $=N.toString(),q=null;null!=c&&(q=c.get(he.ALLOWED_LENGTHS)),null==q&&(q=t.DEFAULT_ALLOWED_LENGTHS);var de=$.length,we=!1,et=0;try{for(var vt=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(q),zt=vt.next();!zt.done;zt=vt.next()){var $t=zt.value;if(de===$t){we=!0;break}$t>et&&(et=$t)}}catch(bn){h={error:bn}}finally{try{zt&&!zt.done&&(v=vt.return)&&v.call(vt)}finally{if(h)throw h.error}}if(!we&&de>et&&(we=!0),!we)throw new bt;var Gt=[new $n(M[1],i),new $n(O[0],i)];return new We($,null,0,Gt,be.ITF,(new Date).getTime())},t.decodeMiddle=function(i,s,c,h){var v=new Int32Array(10),M=new Int32Array(5),O=new Int32Array(5);for(v.fill(0),M.fill(0),O.fill(0);s0&&h>=0&&!i.get(h);h--)c--;if(0!==c)throw new Se},t.skipWhiteSpace=function(i){var s=i.getSize(),c=i.getNextSet(0);if(c===s)throw new Se;return c},t.prototype.decodeEnd=function(i){i.reverse();try{var s=t.skipWhiteSpace(i),c=void 0;try{c=t.findGuardPattern(i,s,t.END_PATTERN_REVERSED[0])}catch(v){v instanceof Se&&(c=t.findGuardPattern(i,s,t.END_PATTERN_REVERSED[1]))}this.validateQuietZone(i,c[0]);var h=c[0];return c[0]=i.getSize()-c[1],c[1]=i.getSize()-h,c}finally{i.reverse()}},t.findGuardPattern=function(i,s,c){var h=c.length,v=new Int32Array(h),M=i.getSize(),O=!1,N=0,$=s;v.fill(0);for(var q=s;q=0)return c%10;throw new Se},t.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],t.MAX_AVG_VARIANCE=.38,t.MAX_INDIVIDUAL_VARIANCE=.5,t.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],t.START_PATTERN=Int32Array.from([1,1,1,1]),t.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],t}(qi);const wo=_r;var jo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),no=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.decodeRowStringBuffer="",i}return jo(t,o),t.findStartGuardPattern=function(i){for(var c,s=!1,h=0,v=Int32Array.from([0,0,0]);!s;){v=Int32Array.from([0,0,0]);var M=(c=t.findGuardPattern(i,h,!1,this.START_END_PATTERN,v))[0],O=M-((h=c[1])-M);O>=0&&(s=i.isRange(O,M,!1))}return c},t.checkChecksum=function(i){return t.checkStandardUPCEANChecksum(i)},t.checkStandardUPCEANChecksum=function(i){var s=i.length;if(0===s)return!1;var c=parseInt(i.charAt(s-1),10);return t.getStandardUPCEANChecksum(i.substring(0,s-1))===c},t.getStandardUPCEANChecksum=function(i){for(var s=i.length,c=0,h=s-1;h>=0;h-=2){if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}for(c*=3,h=s-2;h>=0;h-=2){var v;if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}return(1e3-c)%10},t.decodeEnd=function(i,s){return t.findGuardPattern(i,s,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t.findGuardPatternWithoutCounters=function(i,s,c,h){return this.findGuardPattern(i,s,c,h,new Int32Array(h.length))},t.findGuardPattern=function(i,s,c,h,v){for(var M=i.getSize(),O=0,N=s=c?i.getNextUnset(s):i.getNextSet(s),$=h.length,q=c,de=s;de=0)return M;throw new Se},t.MAX_AVG_VARIANCE=.48,t.MAX_INDIVIDUAL_VARIANCE=.7,t.START_END_PATTERN=Int32Array.from([1,1,1]),t.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),t.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],t}(qi);const Ao=no;var nr=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ps=function(){function o(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return o.prototype.decodeRow=function(t,i,s){var c=this.decodeRowStringBuffer,h=this.decodeMiddle(i,s,c),v=c.toString(),M=o.parseExtensionString(v),O=[new $n((s[0]+s[1])/2,t),new $n(h,t)],N=new We(v,null,0,O,be.UPC_EAN_EXTENSION,(new Date).getTime());return null!=M&&N.putAllMetadata(M),N},o.prototype.decodeMiddle=function(t,i,s){var c,h,v=this.decodeMiddleCounters;v[0]=0,v[1]=0,v[2]=0,v[3]=0;for(var M=t.getSize(),O=i[1],N=0,$=0;$<5&&O=10&&(N|=1<<4-$),4!==$&&(O=t.getNextSet(O),O=t.getNextUnset(O))}if(5!==s.length)throw new Se;var vt=this.determineCheckDigit(N);if(o.extensionChecksum(s.toString())!==vt)throw new Se;return O},o.extensionChecksum=function(t){for(var i=t.length,s=0,c=i-2;c>=0;c-=2)s+=t.charAt(c).charCodeAt(0)-"0".charCodeAt(0);for(s*=3,c=i-1;c>=0;c-=2)s+=t.charAt(c).charCodeAt(0)-"0".charCodeAt(0);return(s*=3)%10},o.prototype.determineCheckDigit=function(t){for(var i=0;i<10;i++)if(t===this.CHECK_DIGIT_ENCODINGS[i])return i;throw new Se},o.parseExtensionString=function(t){if(5!==t.length)return null;var i=o.parseExtension5String(t);return null==i?null:new Map([[He.SUGGESTED_PRICE,i]])},o.parseExtension5String=function(t){var i;switch(t.charAt(0)){case"0":i="\xa3";break;case"5":i="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}i="";break;default:i=""}var s=parseInt(t.substring(1)),h=s%100;return i+(s/100).toString()+"."+(h<10?"0"+h:h.toString())},o}();const va=ps;var Ti=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qs=function(){function o(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return o.prototype.decodeRow=function(t,i,s){var c=this.decodeRowStringBuffer,h=this.decodeMiddle(i,s,c),v=c.toString(),M=o.parseExtensionString(v),O=[new $n((s[0]+s[1])/2,t),new $n(h,t)],N=new We(v,null,0,O,be.UPC_EAN_EXTENSION,(new Date).getTime());return null!=M&&N.putAllMetadata(M),N},o.prototype.decodeMiddle=function(t,i,s){var c,h,v=this.decodeMiddleCounters;v[0]=0,v[1]=0,v[2]=0,v[3]=0;for(var M=t.getSize(),O=i[1],N=0,$=0;$<2&&O=10&&(N|=1<<1-$),1!==$&&(O=t.getNextSet(O),O=t.getNextUnset(O))}if(2!==s.length)throw new Se;if(parseInt(s.toString())%4!==N)throw new Se;return O},o.parseExtensionString=function(t){return 2!==t.length?null:new Map([[He.ISSUE_NUMBER,parseInt(t)]])},o}();const ba=qs;var Qs=function(){function o(){}return o.decodeRow=function(t,i,s){var c=Ao.findGuardPattern(i,s,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new va).decodeRow(t,i,c)}catch{return(new ba).decodeRow(t,i,c)}},o.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),o}();const wi=Qs;var Oo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ko=function(o){function t(){var i=o.call(this)||this;i.decodeRowStringBuffer="",t.L_AND_G_PATTERNS=t.L_PATTERNS.map(function(M){return Int32Array.from(M)});for(var s=10;s<20;s++){for(var c=t.L_PATTERNS[s-10],h=new Int32Array(c.length),v=0;v=s.getSize()||!s.isRange(et,vt,!1))throw new Se;var zt=$.toString();if(zt.length<8)throw new bt;if(!t.checkChecksum(zt))throw new St;var $t=(h[1]+h[0])/2,Gt=(de[1]+de[0])/2,an=this.getBarcodeFormat(),bn=[new $n($t,i),new $n(Gt,i)],Nn=new We(zt,null,0,bn,an,(new Date).getTime()),Zn=0;try{var Kn=wi.decodeRow(i,s,de[1]);Nn.putMetadata(He.UPC_EAN_EXTENSION,Kn.getText()),Nn.putAllMetadata(Kn.getResultMetadata()),Nn.addResultPoints(Kn.getResultPoints()),Zn=Kn.getText().length}catch{}var fi=null==c?null:c.get(he.ALLOWED_EAN_EXTENSIONS);if(null!=fi){var Gi=!1;for(var Vi in fi)if(Zn.toString()===Vi){Gi=!0;break}if(!Gi)throw new Se}return Nn},t.checkChecksum=function(i){return t.checkStandardUPCEANChecksum(i)},t.checkStandardUPCEANChecksum=function(i){var s=i.length;if(0===s)return!1;var c=parseInt(i.charAt(s-1),10);return t.getStandardUPCEANChecksum(i.substring(0,s-1))===c},t.getStandardUPCEANChecksum=function(i){for(var s=i.length,c=0,h=s-1;h>=0;h-=2){if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}for(c*=3,h=s-2;h>=0;h-=2){var v;if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}return(1e3-c)%10},t.decodeEnd=function(i,s){return t.findGuardPattern(i,s,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t}(Ao);const or=Ko;var Xs=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ml=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Sr=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=Int32Array.from([0,0,0,0]),i}return Xs(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M,O,N=this.decodeMiddleCounters;N[0]=0,N[1]=0,N[2]=0,N[3]=0;for(var $=i.getSize(),q=s[1],de=0,we=0;we<6&&q<$;we++){var et=or.decodeDigit(i,N,q,or.L_AND_G_PATTERNS);c+=String.fromCharCode("0".charCodeAt(0)+et%10);try{for(var vt=(h=void 0,Ml(N)),zt=vt.next();!zt.done;zt=vt.next())q+=zt.value}catch(Nn){h={error:Nn}}finally{try{zt&&!zt.done&&(v=vt.return)&&v.call(vt)}finally{if(h)throw h.error}}et>=10&&(de|=1<<5-we)}for(c=t.determineFirstDigit(c,de),q=or.findGuardPattern(i,q,!0,or.MIDDLE_PATTERN,new Int32Array(or.MIDDLE_PATTERN.length).fill(0))[1],we=0;we<6&&q<$;we++){et=or.decodeDigit(i,N,q,or.L_PATTERNS),c+=String.fromCharCode("0".charCodeAt(0)+et);try{for(var an=(M=void 0,Ml(N)),bn=an.next();!bn.done;bn=an.next())q+=bn.value}catch(Kn){M={error:Kn}}finally{try{bn&&!bn.done&&(O=an.return)&&O.call(an)}finally{if(M)throw M.error}}}return{rowOffset:q,resultString:c}},t.prototype.getBarcodeFormat=function(){return be.EAN_13},t.determineFirstDigit=function(i,s){for(var c=0;c<10;c++)if(s===this.FIRST_DIGIT_ENCODINGS[c])return String.fromCharCode("0".charCodeAt(0)+c)+i;throw new Se},t.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],t}(or);const jr=Sr;var xo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),_s=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ai=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=Int32Array.from([0,0,0,0]),i}return xo(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M,O,N=this.decodeMiddleCounters;N[0]=0,N[1]=0,N[2]=0,N[3]=0;for(var $=i.getSize(),q=s[1],de=0;de<4&&q<$;de++){var we=or.decodeDigit(i,N,q,or.L_PATTERNS);c+=String.fromCharCode("0".charCodeAt(0)+we);try{for(var et=(h=void 0,_s(N)),vt=et.next();!vt.done;vt=et.next())q+=vt.value}catch(bn){h={error:bn}}finally{try{vt&&!vt.done&&(v=et.return)&&v.call(et)}finally{if(h)throw h.error}}}for(q=or.findGuardPattern(i,q,!0,or.MIDDLE_PATTERN,new Int32Array(or.MIDDLE_PATTERN.length).fill(0))[1],de=0;de<4&&q<$;de++){we=or.decodeDigit(i,N,q,or.L_PATTERNS),c+=String.fromCharCode("0".charCodeAt(0)+we);try{for(var Gt=(M=void 0,_s(N)),an=Gt.next();!an.done;an=Gt.next())q+=an.value}catch(Zn){M={error:Zn}}finally{try{an&&!an.done&&(O=Gt.return)&&O.call(Gt)}finally{if(M)throw M.error}}}return{rowOffset:q,resultString:c}},t.prototype.getBarcodeFormat=function(){return be.EAN_8},t}(or);const Jo=Ai;var Io=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ys=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.ean13Reader=new jr,i}return Io(t,o),t.prototype.getBarcodeFormat=function(){return be.UPC_A},t.prototype.decode=function(i,s){return this.maybeReturnResult(this.ean13Reader.decode(i))},t.prototype.decodeRow=function(i,s,c){return this.maybeReturnResult(this.ean13Reader.decodeRow(i,s,c))},t.prototype.decodeMiddle=function(i,s,c){return this.ean13Reader.decodeMiddle(i,s,c)},t.prototype.maybeReturnResult=function(i){var s=i.getText();if("0"===s.charAt(0)){var c=new We(s.substring(1),null,null,i.getResultPoints(),be.UPC_A);return null!=i.getResultMetadata()&&c.putAllMetadata(i.getResultMetadata()),c}throw new Se},t.prototype.reset=function(){this.ean13Reader.reset()},t}(or);const fo=Ys;var Zr=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ms=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Co=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=new Int32Array(4),i}return Zr(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M=this.decodeMiddleCounters.map(function(zt){return zt});M[0]=0,M[1]=0,M[2]=0,M[3]=0;for(var O=i.getSize(),N=s[1],$=0,q=0;q<6&&N=10&&($|=1<<5-q)}return t.determineNumSysAndCheckDigit(new Ce(c),$),N},t.prototype.decodeEnd=function(i,s){return t.findGuardPatternWithoutCounters(i,s,!0,t.MIDDLE_END_PATTERN)},t.prototype.checkChecksum=function(i){return or.checkChecksum(t.convertUPCEtoUPCA(i))},t.determineNumSysAndCheckDigit=function(i,s){for(var c=0;c<=1;c++)for(var h=0;h<10;h++)if(s===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[c][h])return i.insert(0,"0"+c),void i.append("0"+h);throw Se.getNotFoundInstance()},t.prototype.getBarcodeFormat=function(){return be.UPC_E},t.convertUPCEtoUPCA=function(i){var s=i.slice(1,7).split("").map(function(v){return v.charCodeAt(0)}),c=new Ce;c.append(i.charAt(0));var h=s[5];switch(h){case 0:case 1:case 2:c.appendChars(s,0,2),c.append(h),c.append("0000"),c.appendChars(s,2,3);break;case 3:c.appendChars(s,0,3),c.append("00000"),c.appendChars(s,3,2);break;case 4:c.appendChars(s,0,4),c.append("00000"),c.append(s[4]);break;default:c.appendChars(s,0,5),c.append("0000"),c.append(h)}return i.length>=8&&c.append(i.charAt(7)),c.toString()},t.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],t}(or);const Br=Co;var ea=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),po=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},io=function(o){function t(i){var s=o.call(this)||this,c=null==i?null:i.get(he.POSSIBLE_FORMATS),h=[];return null!=c&&(c.indexOf(be.EAN_13)>-1&&h.push(new jr),c.indexOf(be.UPC_A)>-1&&h.push(new fo),c.indexOf(be.EAN_8)>-1&&h.push(new Jo),c.indexOf(be.UPC_E)>-1&&h.push(new Br)),0===h.length&&(h.push(new jr),h.push(new fo),h.push(new Jo),h.push(new Br)),s.readers=h,s}return ea(t,o),t.prototype.decodeRow=function(i,s,c){var h,v;try{for(var M=po(this.readers),O=M.next();!O.done;O=M.next()){var N=O.value;try{var $=N.decodeRow(i,s,c),q=$.getBarcodeFormat()===be.EAN_13&&"0"===$.getText().charAt(0),de=null==c?null:c.get(he.POSSIBLE_FORMATS),we=null==de||de.includes(be.UPC_A);if(q&&we){var et=$.getRawBytes(),vt=new We($.getText().substring(1),et,et?et.length:null,$.getResultPoints(),be.UPC_A);return vt.putAllMetadata($.getResultMetadata()),vt}return $}catch{}}}catch(zt){h={error:zt}}finally{try{O&&!O.done&&(v=M.return)&&v.call(M)}finally{if(h)throw h.error}}throw new Se},t.prototype.reset=function(){var i,s;try{for(var c=po(this.readers),h=c.next();!h.done;h=c.next())h.value.reset()}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},t}(qi);const qo=io;var Ss=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ya=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.CODA_BAR_CHAR_SET={nnnnnww:"0",nnnnwwn:"1",nnnwnnw:"2",wwnnnnn:"3",nnwnnwn:"4",wnnnnwn:"5",nwnnnnw:"6",nwnnwnn:"7",nwwnnnn:"8",wnnwnnn:"9",nnnwwnn:"-",nnwwnnn:"$",wnnnwnw:":",wnwnnnw:"/",wnwnwnn:".",nnwwwww:"+",nnwwnwn:"A",nwnwnnw:"B",nnnwnww:"C",nnnwwwn:"D"},i}return Ss(t,o),t.prototype.decodeRow=function(i,s,c){var h=this.getValidRowData(s);if(!h)throw new Se;var v=this.codaBarDecodeRow(h.row);if(!v)throw new Se;return new We(v,null,0,[new $n(h.left,i),new $n(h.right,i)],be.CODABAR,(new Date).getTime())},t.prototype.getValidRowData=function(i){var s=i.toArray(),c=s.indexOf(!0);if(-1===c)return null;var h=s.lastIndexOf(!0);if(h<=c)return null;for(var v=[],M=(s=s.slice(c,h+1))[0],O=1,N=1;N0;){var v=i.splice(0,8).splice(0,7).map(function(O){return Oh&&(h=s[v],c=v);i[c]++},t.decrement=function(i,s){for(var c=0,h=s[0],v=1;v=t.MIN_FINDER_PATTERN_RATIO&&M<=t.MAX_FINDER_PATTERN_RATIO){var O=Number.MAX_SAFE_INTEGER,N=Number.MIN_SAFE_INTEGER;try{for(var $=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),q=$.next();!q.done;q=$.next()){var de=q.value;de>N&&(N=de),de=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),O=M.next();!O.done;O=M.next())v+=O.value}catch(Gt){c={error:Gt}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}for(var $=0,q=0,de=t.length,we=0;we=de-we-1&&(vt-=o.combins(v-et-(de-we),de-we-2)),de-we-1>1){for(var zt=0,$t=v-et-(de-we-2);$t>i;$t--)zt+=o.combins(v-et-$t-1,de-we-3);vt-=zt*(de-1-we)}else v-et>i&&vt--;$+=vt}v-=et}return $},o.combins=function(t,i){var s,c;t-i>i?(c=i,s=t-i):(c=t-i,s=i);for(var h=1,v=1,M=t;M>s;M--)h*=M,v<=c&&(h/=v,v++);for(;v<=c;)h/=v,v++;return h},o}();const Qn=Ht;var Ni=function(){function o(){}return o.buildBitArray=function(t){var i=2*t.length-1;null==t[t.length-1].getRightChar()&&(i-=1);for(var c=new me(12*i),h=0,M=t[0].getRightChar().getValue(),O=11;O>=0;--O)M&1<=0;--q)$&1<=0;--q)de&1<10||c<0||c>10)throw new bt;return h.firstDigit=s,h.secondDigit=c,h}return Xo(t,o),t.prototype.getFirstDigit=function(){return this.firstDigit},t.prototype.getSecondDigit=function(){return this.secondDigit},t.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},t.prototype.isFirstDigitFNC1=function(){return this.firstDigit===t.FNC1},t.prototype.isSecondDigitFNC1=function(){return this.secondDigit===t.FNC1},t.prototype.isAnyFNC1=function(){return this.firstDigit===t.FNC1||this.secondDigit===t.FNC1},t.FNC1=10,t}(Lr);const Ms=Pr;var As=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qr=function(){function o(){}return o.parseFieldsInGeneralPurpose=function(t){var i,s,c,h,v,M,O,N;if(!t)return null;if(t.length<2)throw new Se;var $=t.substring(0,2);try{for(var q=As(o.TWO_DIGIT_DATA_LENGTH),de=q.next();!de.done;de=q.next())if((we=de.value)[0]===$)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(2,we[2],t):o.processFixedAI(2,we[1],t)}catch(Zn){i={error:Zn}}finally{try{de&&!de.done&&(s=q.return)&&s.call(q)}finally{if(i)throw i.error}}if(t.length<3)throw new Se;var et=t.substring(0,3);try{for(var vt=As(o.THREE_DIGIT_DATA_LENGTH),zt=vt.next();!zt.done;zt=vt.next())if((we=zt.value)[0]===et)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(3,we[2],t):o.processFixedAI(3,we[1],t)}catch(Zn){c={error:Zn}}finally{try{zt&&!zt.done&&(h=vt.return)&&h.call(vt)}finally{if(c)throw c.error}}try{for(var $t=As(o.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),Gt=$t.next();!Gt.done;Gt=$t.next())if((we=Gt.value)[0]===et)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(4,we[2],t):o.processFixedAI(4,we[1],t)}catch(Zn){v={error:Zn}}finally{try{Gt&&!Gt.done&&(M=$t.return)&&M.call($t)}finally{if(v)throw v.error}}if(t.length<4)throw new Se;var an=t.substring(0,4);try{for(var bn=As(o.FOUR_DIGIT_DATA_LENGTH),Nn=bn.next();!Nn.done;Nn=bn.next()){var we;if((we=Nn.value)[0]===an)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(4,we[2],t):o.processFixedAI(4,we[1],t)}}catch(Zn){O={error:Zn}}finally{try{Nn&&!Nn.done&&(N=bn.return)&&N.call(bn)}finally{if(O)throw O.error}}throw new Se},o.processFixedAI=function(t,i,s){if(s.lengththis.information.getSize())return t+4<=this.information.getSize();for(var i=t;ithis.information.getSize()){var i=this.extractNumericValueFromBitArray(t,4);return new Ms(this.information.getSize(),0===i?Ms.FNC1:i-1,Ms.FNC1)}var s=this.extractNumericValueFromBitArray(t,7);return new Ms(t+7,(s-8)/11,(s-8)%11)},o.prototype.extractNumericValueFromBitArray=function(t,i){return o.extractNumericValueFromBitArray(this.information,t,i)},o.extractNumericValueFromBitArray=function(t,i,s){for(var c=0,h=0;hthis.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(t,5);if(i>=5&&i<16)return!0;if(t+7>this.information.getSize())return!1;var s=this.extractNumericValueFromBitArray(t,7);if(s>=64&&s<116)return!0;if(t+8>this.information.getSize())return!1;var c=this.extractNumericValueFromBitArray(t,8);return c>=232&&c<253},o.prototype.decodeIsoIec646=function(t){var i=this.extractNumericValueFromBitArray(t,5);if(15===i)return new Qo(t+5,Qo.FNC1);if(i>=5&&i<15)return new Qo(t+5,"0"+(i-5));var h,s=this.extractNumericValueFromBitArray(t,7);if(s>=64&&s<90)return new Qo(t+7,""+(s+1));if(s>=90&&s<116)return new Qo(t+7,""+(s+7));switch(this.extractNumericValueFromBitArray(t,8)){case 232:h="!";break;case 233:h='"';break;case 234:h="%";break;case 235:h="&";break;case 236:h="'";break;case 237:h="(";break;case 238:h=")";break;case 239:h="*";break;case 240:h="+";break;case 241:h=",";break;case 242:h="-";break;case 243:h=".";break;case 244:h="/";break;case 245:h=":";break;case 246:h=";";break;case 247:h="<";break;case 248:h="=";break;case 249:h=">";break;case 250:h="?";break;case 251:h="_";break;case 252:h=" ";break;default:throw new bt}return new Qo(t+8,h)},o.prototype.isStillAlpha=function(t){if(t+5>this.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(t,5);if(i>=5&&i<16)return!0;if(t+6>this.information.getSize())return!1;var s=this.extractNumericValueFromBitArray(t,6);return s>=16&&s<63},o.prototype.decodeAlphanumeric=function(t){var i=this.extractNumericValueFromBitArray(t,5);if(15===i)return new Qo(t+5,Qo.FNC1);if(i>=5&&i<15)return new Qo(t+5,"0"+(i-5));var c,s=this.extractNumericValueFromBitArray(t,6);if(s>=32&&s<58)return new Qo(t+6,""+(s+33));switch(s){case 58:c="*";break;case 59:c=",";break;case 60:c="-";break;case 61:c=".";break;case 62:c="/";break;default:throw new ki("Decoding invalid alphanumeric value: "+s)}return new Qo(t+6,c)},o.prototype.isAlphaTo646ToAlphaLatch=function(t){if(t+1>this.information.getSize())return!1;for(var i=0;i<5&&i+tthis.information.getSize())return!1;for(var i=t;ithis.information.getSize())return!1;for(var i=0;i<4&&i+t=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ar=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.pairs=new Array(t.MAX_PAIRS),i.rows=new Array,i.startEnd=[2],i}return ar(t,o),t.prototype.decodeRow=function(i,s,c){this.pairs.length=0,this.startFromEven=!1;try{return t.constructResult(this.decodeRow2pairs(i,s))}catch{}return this.pairs.length=0,this.startFromEven=!0,t.constructResult(this.decodeRow2pairs(i,s))},t.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},t.prototype.decodeRow2pairs=function(i,s){for(var c=!1;!c;)try{this.pairs.push(this.retrieveNextPair(s,this.pairs,i))}catch(M){if(M instanceof Se){if(!this.pairs.length)throw new Se;c=!0}}if(this.checkChecksum())return this.pairs;var h;if(h=!!this.rows.length,this.storeRow(i,!1),h){var v=this.checkRowsBoolean(!1);if(null!=v||null!=(v=this.checkRowsBoolean(!0)))return v}throw new Se},t.prototype.checkRowsBoolean=function(i){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,i&&(this.rows=this.rows.reverse());var s=null;try{s=this.checkRows(new Array,0)}catch(c){console.log(c)}return i&&(this.rows=this.rows.reverse()),s},t.prototype.checkRows=function(i,s){for(var c,h,v=s;vM.length)){for(var O=!0,N=0;Ni){v=M.isEquivalent(this.pairs);break}h=M.isEquivalent(this.pairs),c++}v||h||t.isPartialRow(this.pairs,this.rows)||(this.rows.push(c,new hr(this.pairs,i,s)),this.removePartialRows(this.pairs,this.rows))},t.prototype.removePartialRows=function(i,s){var c,h,v,M,O,N;try{for(var $=xi(s),q=$.next();!q.done;q=$.next()){var de=q.value;if(de.getPairs().length!==i.length)try{for(var et=(v=void 0,xi(de.getPairs())),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value;try{for(var Gt=(O=void 0,xi(i)),an=Gt.next();!an.done;an=Gt.next())if(li.equals(zt,an.value)){!0;break}}catch(Nn){O={error:Nn}}finally{try{an&&!an.done&&(N=Gt.return)&&N.call(Gt)}finally{if(O)throw O.error}}}}catch(Nn){v={error:Nn}}finally{try{vt&&!vt.done&&(M=et.return)&&M.call(et)}finally{if(v)throw v.error}}}}catch(Nn){c={error:Nn}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}},t.isPartialRow=function(i,s){var c,h,v,M,O,N;try{for(var $=xi(s),q=$.next();!q.done;q=$.next()){var de=q.value,we=!0;try{for(var et=(v=void 0,xi(i)),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value,$t=!1;try{for(var Gt=(O=void 0,xi(de.getPairs())),an=Gt.next();!an.done;an=Gt.next())if(zt.equals(an.value)){$t=!0;break}}catch(Nn){O={error:Nn}}finally{try{an&&!an.done&&(N=Gt.return)&&N.call(Gt)}finally{if(O)throw O.error}}if(!$t){we=!1;break}}}catch(Nn){v={error:Nn}}finally{try{vt&&!vt.done&&(M=et.return)&&M.call(et)}finally{if(v)throw v.error}}if(we)return!0}}catch(Nn){c={error:Nn}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}return!1},t.prototype.getRows=function(){return this.rows},t.constructResult=function(i){var c=function pn(o){try{if(o.get(1))return new gs(o);if(!o.get(2))return new Os(o);switch(Va.extractNumericValueFromBitArray(o,1,4)){case 4:return new xa(o);case 5:return new bc(o)}switch(Va.extractNumericValueFromBitArray(o,1,5)){case 12:return new is(o);case 13:return new Ue(o)}switch(Va.extractNumericValueFromBitArray(o,1,7)){case 56:return new kt(o,"310","11");case 57:return new kt(o,"320","11");case 58:return new kt(o,"310","13");case 59:return new kt(o,"320","13");case 60:return new kt(o,"310","15");case 61:return new kt(o,"320","15");case 62:return new kt(o,"310","17");case 63:return new kt(o,"320","17")}}catch(c){throw console.log(c),new ki("unknown decoder: "+o)}}(Zo.buildBitArray(i)),h=c.parseInformation(),v=i[0].getFinderPattern().getResultPoints(),M=i[i.length-1].getFinderPattern().getResultPoints();return new We(h,null,null,[v[0],v[1],M[0],M[1]],be.RSS_EXPANDED,null)},t.prototype.checkChecksum=function(){var i=this.pairs.get(0),s=i.getLeftChar(),c=i.getRightChar();if(null===c)return!1;for(var h=c.getChecksumPortion(),v=2,M=1;M=0?c:this.isEmptyPair(s)?0:s[s.length-1].getFinderPattern().getStartEnd()[1];var N=s.length%2!=0;this.startFromEven&&(N=!N);for(var $=!1;M=0&&!i.get(O);)O--;O++,h=this.startEnd[0]-O,v=O,M=this.startEnd[1]}else v=this.startEnd[0],h=(M=i.getNextUnset(this.startEnd[1]+1))-this.startEnd[1];var $,N=this.getDecodeFinderCounters();Jt.arraycopy(N,0,N,1,N.length-1),N[0]=h;try{$=this.parseFinderValue(N,t.FINDER_PATTERNS)}catch{return null}return new le($,[v,M],v,M,s)},t.prototype.decodeDataCharacter=function(i,s,c,h){for(var v=this.getDataCharacterCounters(),M=0;M.3)throw new Se;var et=this.getOddCounts(),vt=this.getEvenCounts(),zt=this.getOddRoundingErrors(),$t=this.getEvenRoundingErrors();for(O=0;O8){if(Gt>8.7)throw new Se;an=8}var bn=O/2;1&O?(vt[bn]=an,$t[bn]=Gt-an):(et[bn]=an,zt[bn]=Gt-an)}this.adjustOddEvenCounts(17);var Nn=4*s.getValue()+(c?0:2)+(h?0:1)-1,Zn=0,Kn=0;for(O=et.length-1;O>=0;O--)t.isNotA1left(s,c,h)&&(Kn+=et[O]*t.WEIGHTS[Nn][2*O]),Zn+=et[O];var Gi=0;for(O=vt.length-1;O>=0;O--)t.isNotA1left(s,c,h)&&(Gi+=vt[O]*t.WEIGHTS[Nn][2*O+1]);var Vi=Kn+Gi;if(1&Zn||Zn>13||Zn<4)throw new Se;var go=(13-Zn)/2,Dr=t.SYMBOL_WIDEST[go],hs=9-Dr,Vl=Qn.getRSSvalue(et,Dr,!0),ic=Qn.getRSSvalue(vt,hs,!1);return new Ae(Vl*t.EVEN_TOTAL_SUBSET[go]+ic+t.GSUM[go],Vi)},t.isNotA1left=function(i,s,c){return!(0===i.getValue()&&s&&c)},t.prototype.adjustOddEvenCounts=function(i){var s=_i.sum(new Int32Array(this.getOddCounts())),c=_i.sum(new Int32Array(this.getEvenCounts())),h=!1,v=!1;s>13?v=!0:s<4&&(h=!0);var M=!1,O=!1;c>13?O=!0:c<4&&(M=!0);var N=s+c-i,$=1==(1&s),q=0==(1&c);if(1===N)if($){if(q)throw new Se;v=!0}else{if(!q)throw new Se;O=!0}else if(-1===N)if($){if(q)throw new Se;h=!0}else{if(!q)throw new Se;M=!0}else{if(0!==N)throw new Se;if($){if(!q)throw new Se;s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ma=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.possibleLeftPairs=[],i.possibleRightPairs=[],i}return $a(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,N=this.decodePair(s,!1,i,c);t.addOrTally(this.possibleLeftPairs,N),s.reverse();var $=this.decodePair(s,!0,i,c);t.addOrTally(this.possibleRightPairs,$),s.reverse();try{for(var q=Ui(this.possibleLeftPairs),de=q.next();!de.done;de=q.next()){var we=de.value;if(we.getCount()>1)try{for(var et=(M=void 0,Ui(this.possibleRightPairs)),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value;if(zt.getCount()>1&&t.checkChecksum(we,zt))return t.constructResult(we,zt)}}catch($t){M={error:$t}}finally{try{vt&&!vt.done&&(O=et.return)&&O.call(et)}finally{if(M)throw M.error}}}}catch($t){h={error:$t}}finally{try{de&&!de.done&&(v=q.return)&&v.call(q)}finally{if(h)throw h.error}}throw new Se},t.addOrTally=function(i,s){var c,h;if(null!=s){var v=!1;try{for(var M=Ui(i),O=M.next();!O.done;O=M.next()){var N=O.value;if(N.getValue()===s.getValue()){N.incrementCount(),v=!0;break}}}catch($){c={error:$}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}v||i.push(s)}},t.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},t.constructResult=function(i,s){for(var c=4537077*i.getValue()+s.getValue(),h=new String(c).toString(),v=new Ce,M=13-h.length;M>0;M--)v.append("0");v.append(h);var O=0;for(M=0;M<13;M++){var N=v.charAt(M).charCodeAt(0)-"0".charCodeAt(0);O+=1&M?N:3*N}10==(O=10-O%10)&&(O=0),v.append(O.toString());var $=i.getFinderPattern().getResultPoints(),q=s.getFinderPattern().getResultPoints();return new We(v.toString(),null,0,[$[0],$[1],q[0],q[1]],be.RSS_14,(new Date).getTime())},t.checkChecksum=function(i,s){var c=(i.getChecksumPortion()+16*s.getChecksumPortion())%79,h=9*i.getFinderPattern().getValue()+s.getFinderPattern().getValue();return h>72&&h--,h>8&&h--,c===h},t.prototype.decodePair=function(i,s,c,h){try{var v=this.findFinderPattern(i,s),M=this.parseFoundFinderPattern(i,c,s,v),O=null==h?null:h.get(he.NEED_RESULT_POINT_CALLBACK);if(null!=O){var N=(v[0]+v[1])/2;s&&(N=i.getSize()-1-N),O.foundPossibleResultPoint(new $n(N,c))}var $=this.decodeDataCharacter(i,M,!0),q=this.decodeDataCharacter(i,M,!1);return new bs(1597*$.getValue()+q.getValue(),$.getChecksumPortion()+4*q.getChecksumPortion(),M)}catch{return null}},t.prototype.decodeDataCharacter=function(i,s,c){for(var h=this.getDataCharacterCounters(),v=0;v8&&($t=8);var Gt=Math.floor(M/2);1&M?(we[Gt]=$t,vt[Gt]=zt-$t):(de[Gt]=$t,et[Gt]=zt-$t)}this.adjustOddEvenCounts(c,$);var an=0,bn=0;for(M=de.length-1;M>=0;M--)bn*=9,bn+=de[M],an+=de[M];var Nn=0,Zn=0;for(M=we.length-1;M>=0;M--)Nn*=9,Nn+=we[M],Zn+=we[M];var fi,Gi,Kn=bn+3*Nn;if(c){if(1&an||an>12||an<4)throw new Se;var Vi=9-(Gi=t.OUTSIDE_ODD_WIDEST[fi=(12-an)/2]),go=Qn.getRSSvalue(de,Gi,!1),Dr=Qn.getRSSvalue(we,Vi,!0);return new Ae(go*t.OUTSIDE_EVEN_TOTAL_SUBSET[fi]+Dr+t.OUTSIDE_GSUM[fi],Kn)}if(1&Zn||Zn>10||Zn<4)throw new Se;return Vi=9-(Gi=t.INSIDE_ODD_WIDEST[fi=(10-Zn)/2]),go=Qn.getRSSvalue(de,Gi,!0),Dr=Qn.getRSSvalue(we,Vi,!1),new Ae(Dr*t.INSIDE_ODD_TOTAL_SUBSET[fi]+go+t.INSIDE_GSUM[fi],Kn)},t.prototype.findFinderPattern=function(i,s){var c=this.getDecodeFinderCounters();c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var h=i.getSize(),v=!1,M=0;M=0&&v!==i.get(M);)M--;M++;var O=h[0]-M,N=this.getDecodeFinderCounters(),$=new Int32Array(N.length);Jt.arraycopy(N,0,$,1,N.length-1),$[0]=O;var q=this.parseFinderValue($,t.FINDER_PATTERNS),de=M,we=h[1];return c&&(de=i.getSize()-1-de,we=i.getSize()-1-we),new le(q,[M,h[1]],de,we,s)},t.prototype.adjustOddEvenCounts=function(i,s){var c=_i.sum(new Int32Array(this.getOddCounts())),h=_i.sum(new Int32Array(this.getEvenCounts())),v=!1,M=!1,O=!1,N=!1;i?(c>12?M=!0:c<4&&(v=!0),h>12?N=!0:h<4&&(O=!0)):(c>11?M=!0:c<5&&(v=!0),h>10?N=!0:h<4&&(O=!0));var $=c+h-s,q=(1&c)==(i?1:0),de=1==(1&h);if(1===$)if(q){if(de)throw new Se;M=!0}else{if(!de)throw new Se;N=!0}else if(-1===$)if(q){if(de)throw new Se;v=!0}else{if(!de)throw new Se;O=!0}else{if(0!==$)throw new Se;if(q){if(!de)throw new Se;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),Wi=function(){function o(t,i,s){this.ecCodewords=t,this.ecBlocks=[i],s&&this.ecBlocks.push(s)}return o.prototype.getECCodewords=function(){return this.ecCodewords},o.prototype.getECBlocks=function(){return this.ecBlocks},o}(),Xi=function(){function o(t,i){this.count=t,this.dataCodewords=i}return o.prototype.getCount=function(){return this.count},o.prototype.getDataCodewords=function(){return this.dataCodewords},o}(),dl=function(){function o(t,i,s,c,h,v){var M,O;this.versionNumber=t,this.symbolSizeRows=i,this.symbolSizeColumns=s,this.dataRegionSizeRows=c,this.dataRegionSizeColumns=h,this.ecBlocks=v;var N=0,$=v.getECCodewords(),q=v.getECBlocks();try{for(var de=_o(q),we=de.next();!we.done;we=de.next()){var et=we.value;N+=et.getCount()*(et.getDataCodewords()+$)}}catch(vt){M={error:vt}}finally{try{we&&!we.done&&(O=de.return)&&O.call(de)}finally{if(M)throw M.error}}this.totalCodewords=N}return o.prototype.getVersionNumber=function(){return this.versionNumber},o.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},o.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},o.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},o.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},o.prototype.getTotalCodewords=function(){return this.totalCodewords},o.prototype.getECBlocks=function(){return this.ecBlocks},o.getVersionForDimensions=function(t,i){var s,c;if(1&t||1&i)throw new bt;try{for(var h=_o(o.VERSIONS),v=h.next();!v.done;v=h.next()){var M=v.value;if(M.symbolSizeRows===t&&M.symbolSizeColumns===i)return M}}catch(O){s={error:O}}finally{try{v&&!v.done&&(c=h.return)&&c.call(h)}finally{if(s)throw s.error}}throw new bt},o.prototype.toString=function(){return""+this.versionNumber},o.buildVersions=function(){return[new o(1,10,10,8,8,new Wi(5,new Xi(1,3))),new o(2,12,12,10,10,new Wi(7,new Xi(1,5))),new o(3,14,14,12,12,new Wi(10,new Xi(1,8))),new o(4,16,16,14,14,new Wi(12,new Xi(1,12))),new o(5,18,18,16,16,new Wi(14,new Xi(1,18))),new o(6,20,20,18,18,new Wi(18,new Xi(1,22))),new o(7,22,22,20,20,new Wi(20,new Xi(1,30))),new o(8,24,24,22,22,new Wi(24,new Xi(1,36))),new o(9,26,26,24,24,new Wi(28,new Xi(1,44))),new o(10,32,32,14,14,new Wi(36,new Xi(1,62))),new o(11,36,36,16,16,new Wi(42,new Xi(1,86))),new o(12,40,40,18,18,new Wi(48,new Xi(1,114))),new o(13,44,44,20,20,new Wi(56,new Xi(1,144))),new o(14,48,48,22,22,new Wi(68,new Xi(1,174))),new o(15,52,52,24,24,new Wi(42,new Xi(2,102))),new o(16,64,64,14,14,new Wi(56,new Xi(2,140))),new o(17,72,72,16,16,new Wi(36,new Xi(4,92))),new o(18,80,80,18,18,new Wi(48,new Xi(4,114))),new o(19,88,88,20,20,new Wi(56,new Xi(4,144))),new o(20,96,96,22,22,new Wi(68,new Xi(4,174))),new o(21,104,104,24,24,new Wi(56,new Xi(6,136))),new o(22,120,120,18,18,new Wi(68,new Xi(6,175))),new o(23,132,132,20,20,new Wi(62,new Xi(8,163))),new o(24,144,144,22,22,new Wi(62,new Xi(8,156),new Xi(2,155))),new o(25,8,18,6,16,new Wi(7,new Xi(1,5))),new o(26,8,32,6,14,new Wi(11,new Xi(1,10))),new o(27,12,26,10,24,new Wi(14,new Xi(1,16))),new o(28,12,36,10,16,new Wi(18,new Xi(1,22))),new o(29,16,36,14,16,new Wi(24,new Xi(1,32))),new o(30,16,48,14,22,new Wi(28,new Xi(1,49)))]},o.VERSIONS=o.buildVersions(),o}();const ko=dl;var rs=function(){function o(t){var i=t.getHeight();if(i<8||i>144||1&i)throw new bt;this.version=o.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new ae(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return o.prototype.getVersion=function(){return this.version},o.readVersion=function(t){var i=t.getHeight(),s=t.getWidth();return ko.getVersionForDimensions(i,s)},o.prototype.readCodewords=function(){var t=new Int8Array(this.version.getTotalCodewords()),i=0,s=4,c=0,h=this.mappingBitMatrix.getHeight(),v=this.mappingBitMatrix.getWidth(),M=!1,O=!1,N=!1,$=!1;do{if(s!==h||0!==c||M)if(s===h-2&&0===c&&3&v&&!O)t[i++]=255&this.readCorner2(h,v),s-=2,c+=2,O=!0;else if(s!==h+4||2!==c||7&v||N)if(s!==h-2||0!==c||4!=(7&v)||$){do{s=0&&!this.readMappingMatrix.get(c,s)&&(t[i++]=255&this.readUtah(s,c,h,v)),s-=2,c+=2}while(s>=0&&c=0&&c=0);s+=3,c+=1}else t[i++]=255&this.readCorner4(h,v),s-=2,c+=2,$=!0;else t[i++]=255&this.readCorner3(h,v),s-=2,c+=2,N=!0;else t[i++]=255&this.readCorner1(h,v),s-=2,c+=2,M=!0}while(s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Us=function(){function o(t,i){this.numDataCodewords=t,this.codewords=i}return o.getDataBlocks=function(t,i){var s,c,h,v,M=i.getECBlocks(),O=0,N=M.getECBlocks();try{for(var $=Pc(N),q=$.next();!q.done;q=$.next())O+=(de=q.value).getCount()}catch(Vl){s={error:Vl}}finally{try{q&&!q.done&&(c=$.return)&&c.call($)}finally{if(s)throw s.error}}var we=new Array(O),et=0;try{for(var vt=Pc(N),zt=vt.next();!zt.done;zt=vt.next())for(var de=zt.value,$t=0;$t7?$t-1:$t]=t[Kn++]}if(Kn!==t.length)throw new Ge;return we},o.prototype.getNumDataCodewords=function(){return this.numDataCodewords},o.prototype.getCodewords=function(){return this.codewords},o}();const Vs=Us;var Nc=function(){function o(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}return o.prototype.getBitOffset=function(){return this.bitOffset},o.prototype.getByteOffset=function(){return this.byteOffset},o.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new Ge(""+t);var i=0,s=this.bitOffset,c=this.byteOffset,h=this.bytes;if(s>0){var v=8-s,M=t>8-M<<(O=v-M))>>O,t-=M,8===(s+=M)&&(s=0,c++)}if(t>0){for(;t>=8;)i=i<<8|255&h[c],c++,t-=8;var O;t>0&&(i=i<>(O=8-t)<>O,s+=t)}return this.bitOffset=s,this.byteOffset=c,i},o.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},o}();const ac=Nc;var To=function(o){return o[o.PAD_ENCODE=0]="PAD_ENCODE",o[o.ASCII_ENCODE=1]="ASCII_ENCODE",o[o.C40_ENCODE=2]="C40_ENCODE",o[o.TEXT_ENCODE=3]="TEXT_ENCODE",o[o.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",o[o.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",o[o.BASE256_ENCODE=6]="BASE256_ENCODE",o}(To||{}),nd=function(){function o(){}return o.decode=function(t){var i=new ac(t),s=new Ce,c=new Ce,h=new Array,v=To.ASCII_ENCODE;do{if(v===To.ASCII_ENCODE)v=this.decodeAsciiSegment(i,s,c);else{switch(v){case To.C40_ENCODE:this.decodeC40Segment(i,s);break;case To.TEXT_ENCODE:this.decodeTextSegment(i,s);break;case To.ANSIX12_ENCODE:this.decodeAnsiX12Segment(i,s);break;case To.EDIFACT_ENCODE:this.decodeEdifactSegment(i,s);break;case To.BASE256_ENCODE:this.decodeBase256Segment(i,s,h);break;default:throw new bt}v=To.ASCII_ENCODE}}while(v!==To.PAD_ENCODE&&i.available()>0);return c.length()>0&&s.append(c.toString()),new Pn(t,s.toString(),0===h.length?null:h,null)},o.decodeAsciiSegment=function(t,i,s){var c=!1;do{var h=t.readBits(8);if(0===h)throw new bt;if(h<=128)return c&&(h+=128),i.append(String.fromCharCode(h-1)),To.ASCII_ENCODE;if(129===h)return To.PAD_ENCODE;if(h<=229){var v=h-130;v<10&&i.append("0"),i.append(""+v)}else switch(h){case 230:return To.C40_ENCODE;case 231:return To.BASE256_ENCODE;case 232:i.append(String.fromCharCode(29));break;case 233:case 234:case 241:break;case 235:c=!0;break;case 236:i.append("[)>\x1e05\x1d"),s.insert(0,"\x1e\x04");break;case 237:i.append("[)>\x1e06\x1d"),s.insert(0,"\x1e\x04");break;case 238:return To.ANSIX12_ENCODE;case 239:return To.TEXT_ENCODE;case 240:return To.EDIFACT_ENCODE;default:if(254!==h||0!==t.available())throw new bt}}while(t.available()>0);return To.ASCII_ENCODE},o.decodeC40Segment=function(t,i){var s=!1,c=[],h=0;do{if(8===t.available())return;var v=t.readBits(8);if(254===v)return;this.parseTwoBytes(v,t.readBits(8),c);for(var M=0;M<3;M++){var O=c[M];switch(h){case 0:if(O<3)h=O+1;else{if(!(O0)},o.decodeTextSegment=function(t,i){var s=!1,c=[],h=0;do{if(8===t.available())return;var v=t.readBits(8);if(254===v)return;this.parseTwoBytes(v,t.readBits(8),c);for(var M=0;M<3;M++){var O=c[M];switch(h){case 0:if(O<3)h=O+1;else{if(!(O0)},o.decodeAnsiX12Segment=function(t,i){var s=[];do{if(8===t.available())return;var c=t.readBits(8);if(254===c)return;this.parseTwoBytes(c,t.readBits(8),s);for(var h=0;h<3;h++){var v=s[h];switch(v){case 0:i.append("\r");break;case 1:i.append("*");break;case 2:i.append(">");break;case 3:i.append(" ");break;default:if(v<14)i.append(String.fromCharCode(v+44));else{if(!(v<40))throw new bt;i.append(String.fromCharCode(v+51))}}}}while(t.available()>0)},o.parseTwoBytes=function(t,i,s){var c=(t<<8)+i-1,h=Math.floor(c/1600);s[0]=h,c-=1600*h,h=Math.floor(c/40),s[1]=h,s[2]=c-40*h},o.decodeEdifactSegment=function(t,i){do{if(t.available()<=16)return;for(var s=0;s<4;s++){var c=t.readBits(6);if(31===c){var h=8-t.getBitOffset();return void(8!==h&&t.readBits(h))}32&c||(c|=64),i.append(String.fromCharCode(c))}}while(t.available()>0)},o.decodeBase256Segment=function(t,i,s){var v,c=1+t.getByteOffset(),h=this.unrandomize255State(t.readBits(8),c++);if((v=0===h?t.available()/8|0:h<250?h:250*(h-249)+this.unrandomize255State(t.readBits(8),c++))<0)throw new bt;for(var M=new Uint8Array(v),O=0;O=0?c:c+256},o.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],o.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],o.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],o.TEXT_SHIFT2_SET_CHARS=o.C40_SHIFT2_SET_CHARS,o.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],o}();const lc=nd;var Ca=function(){function o(){this.rsDecoder=new vr(_n.DATA_MATRIX_FIELD_256)}return o.prototype.decode=function(t){var i,s,c=new ul(t),h=c.getVersion(),v=c.readCodewords(),M=Vs.getDataBlocks(v,h),O=0;try{for(var N=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(M),$=N.next();!$.done;$=N.next())O+=$.value.getNumDataCodewords()}catch(an){i={error:an}}finally{try{$&&!$.done&&(s=N.return)&&s.call(N)}finally{if(i)throw i.error}}for(var de=new Uint8Array(O),we=M.length,et=0;etM&&($=M,q[0]=i,q[1]=s,q[2]=c,q[3]=h),$>O&&($=O,q[0]=s,q[1]=c,q[2]=h,q[3]=i),$>N&&(q[0]=c,q[1]=h,q[2]=i,q[3]=s),q},o.prototype.detectSolid2=function(t){var i=t[0],s=t[1],c=t[2],h=t[3],v=this.transitionsBetween(i,h),M=o.shiftPoint(s,c,4*(v+1)),O=o.shiftPoint(c,s,4*(v+1));return this.transitionsBetween(M,i)this.transitionsBetween(O,q)+this.transitionsBetween(N,q)?$:q:$:this.isValid(q)?q:null},o.prototype.shiftToModuleCenter=function(t){var i=t[0],s=t[1],c=t[2],h=t[3],v=this.transitionsBetween(i,h)+1,M=this.transitionsBetween(c,h)+1,O=o.shiftPoint(i,s,4*M),N=o.shiftPoint(c,s,4*v);1==(1&(v=this.transitionsBetween(O,h)+1))&&(v+=1),1==(1&(M=this.transitionsBetween(N,h)+1))&&(M+=1);var de,we,$=(i.getX()+s.getX()+c.getX()+h.getX())/4,q=(i.getY()+s.getY()+c.getY()+h.getY())/4;return i=o.moveAway(i,$,q),s=o.moveAway(s,$,q),c=o.moveAway(c,$,q),h=o.moveAway(h,$,q),O=o.shiftPoint(i,s,4*M),O=o.shiftPoint(O,h,4*v),de=o.shiftPoint(s,i,4*M),de=o.shiftPoint(de,c,4*v),N=o.shiftPoint(c,h,4*M),N=o.shiftPoint(N,s,4*v),we=o.shiftPoint(h,c,4*M),[O,de,N,we=o.shiftPoint(we,i,4*v)]},o.prototype.isValid=function(t){return t.getX()>=0&&t.getX()0&&t.getY()Math.abs(h-s);if(M){var O=s;s=c,c=O,O=h,h=v,v=O}for(var N=Math.abs(h-s),$=Math.abs(v-c),q=-N/2,de=c0){if($t===v)break;$t+=de,q-=N}}return et},o}();const rd=id;var sa=function(){function o(){this.decoder=new ks}return o.prototype.decode=function(t,i){var s,c;if(void 0===i&&(i=null),null!=i&&i.has(he.PURE_BARCODE)){var h=o.extractPureBits(t.getBlackMatrix());s=this.decoder.decode(h),c=o.NO_POINTS}else{var v=new rd(t.getBlackMatrix()).detect();s=this.decoder.decode(v.getBits()),c=v.getPoints()}var M=s.getRawBytes(),O=new We(s.getText(),M,8*M.length,c,be.DATA_MATRIX,Jt.currentTimeMillis()),N=s.getByteSegments();null!=N&&O.putMetadata(He.BYTE_SEGMENTS,N);var $=s.getECLevel();return null!=$&&O.putMetadata(He.ERROR_CORRECTION_LEVEL,$),O},o.prototype.reset=function(){},o.extractPureBits=function(t){var i=t.getTopLeftOnBit(),s=t.getBottomRightOnBit();if(null==i||null==s)throw new Se;var c=this.moduleSize(i,t),h=i[1],M=i[0],N=(s[0]-M+1)/c,$=(s[1]-h+1)/c;if(N<=0||$<=0)throw new Se;var q=c/2;h+=q,M+=q;for(var de=new ae(N,$),we=0;we<$;we++)for(var et=h+we*c,vt=0;vt=o.FOR_BITS.size)throw new Ge;return o.FOR_BITS.get(t)},o.FOR_BITS=new Map,o.FOR_VALUE=new Map,o.L=new o(Mo.L,"L",1),o.M=new o(Mo.M,"M",0),o.Q=new o(Mo.Q,"Q",3),o.H=new o(Mo.H,"H",2),o}();const aa=Ka;var kn=function(){function o(t){this.errorCorrectionLevel=aa.forBits(t>>3&3),this.dataMask=7&t}return o.numBitsDiffering=function(t,i){return Ee.bitCount(t^i)},o.decodeFormatInformation=function(t,i){var s=o.doDecodeFormatInformation(t,i);return null!==s?s:o.doDecodeFormatInformation(t^o.FORMAT_INFO_MASK_QR,i^o.FORMAT_INFO_MASK_QR)},o.doDecodeFormatInformation=function(t,i){var s,c,h=Number.MAX_SAFE_INTEGER,v=0;try{for(var M=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o.FORMAT_INFO_DECODE_LOOKUP),O=M.next();!O.done;O=M.next()){var N=O.value,$=N[0];if($===t||$===i)return new o(N[1]);var q=o.numBitsDiffering(t,$);q=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),v=h.next();!v.done;v=h.next())s+=v.value.getCount()}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return s},o.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},o.prototype.getECBlocks=function(){return this.ecBlocks},o}();const en=Il;var so=function(){function o(t,i){this.count=t,this.dataCodewords=i}return o.prototype.getCount=function(){return this.count},o.prototype.getDataCodewords=function(){return this.dataCodewords},o}();const gt=so;var Ra=function(){function o(t,i){for(var s,c,h=[],v=2;v=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(N),q=$.next();!q.done;q=$.next()){var de=q.value;M+=de.getCount()*(de.getDataCodewords()+O)}}catch(we){s={error:we}}finally{try{q&&!q.done&&(c=$.return)&&c.call($)}finally{if(s)throw s.error}}this.totalCodewords=M}return o.prototype.getVersionNumber=function(){return this.versionNumber},o.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},o.prototype.getTotalCodewords=function(){return this.totalCodewords},o.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},o.prototype.getECBlocksForLevel=function(t){return this.ecBlocks[t.getValue()]},o.getProvisionalVersionForDimension=function(t){if(t%4!=1)throw new bt;try{return this.getVersionForNumber((t-17)/4)}catch{throw new bt}},o.getVersionForNumber=function(t){if(t<1||t>40)throw new Ge;return o.VERSIONS[t-1]},o.decodeVersionInformation=function(t){for(var i=Number.MAX_SAFE_INTEGER,s=0,c=0;c6&&(i.setRegion(t-11,0,3,6),i.setRegion(0,t-11,6,3)),i},o.prototype.toString=function(){return""+this.versionNumber},o.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),o.VERSIONS=[new o(1,new Int32Array(0),new en(7,new gt(1,19)),new en(10,new gt(1,16)),new en(13,new gt(1,13)),new en(17,new gt(1,9))),new o(2,Int32Array.from([6,18]),new en(10,new gt(1,34)),new en(16,new gt(1,28)),new en(22,new gt(1,22)),new en(28,new gt(1,16))),new o(3,Int32Array.from([6,22]),new en(15,new gt(1,55)),new en(26,new gt(1,44)),new en(18,new gt(2,17)),new en(22,new gt(2,13))),new o(4,Int32Array.from([6,26]),new en(20,new gt(1,80)),new en(18,new gt(2,32)),new en(26,new gt(2,24)),new en(16,new gt(4,9))),new o(5,Int32Array.from([6,30]),new en(26,new gt(1,108)),new en(24,new gt(2,43)),new en(18,new gt(2,15),new gt(2,16)),new en(22,new gt(2,11),new gt(2,12))),new o(6,Int32Array.from([6,34]),new en(18,new gt(2,68)),new en(16,new gt(4,27)),new en(24,new gt(4,19)),new en(28,new gt(4,15))),new o(7,Int32Array.from([6,22,38]),new en(20,new gt(2,78)),new en(18,new gt(4,31)),new en(18,new gt(2,14),new gt(4,15)),new en(26,new gt(4,13),new gt(1,14))),new o(8,Int32Array.from([6,24,42]),new en(24,new gt(2,97)),new en(22,new gt(2,38),new gt(2,39)),new en(22,new gt(4,18),new gt(2,19)),new en(26,new gt(4,14),new gt(2,15))),new o(9,Int32Array.from([6,26,46]),new en(30,new gt(2,116)),new en(22,new gt(3,36),new gt(2,37)),new en(20,new gt(4,16),new gt(4,17)),new en(24,new gt(4,12),new gt(4,13))),new o(10,Int32Array.from([6,28,50]),new en(18,new gt(2,68),new gt(2,69)),new en(26,new gt(4,43),new gt(1,44)),new en(24,new gt(6,19),new gt(2,20)),new en(28,new gt(6,15),new gt(2,16))),new o(11,Int32Array.from([6,30,54]),new en(20,new gt(4,81)),new en(30,new gt(1,50),new gt(4,51)),new en(28,new gt(4,22),new gt(4,23)),new en(24,new gt(3,12),new gt(8,13))),new o(12,Int32Array.from([6,32,58]),new en(24,new gt(2,92),new gt(2,93)),new en(22,new gt(6,36),new gt(2,37)),new en(26,new gt(4,20),new gt(6,21)),new en(28,new gt(7,14),new gt(4,15))),new o(13,Int32Array.from([6,34,62]),new en(26,new gt(4,107)),new en(22,new gt(8,37),new gt(1,38)),new en(24,new gt(8,20),new gt(4,21)),new en(22,new gt(12,11),new gt(4,12))),new o(14,Int32Array.from([6,26,46,66]),new en(30,new gt(3,115),new gt(1,116)),new en(24,new gt(4,40),new gt(5,41)),new en(20,new gt(11,16),new gt(5,17)),new en(24,new gt(11,12),new gt(5,13))),new o(15,Int32Array.from([6,26,48,70]),new en(22,new gt(5,87),new gt(1,88)),new en(24,new gt(5,41),new gt(5,42)),new en(30,new gt(5,24),new gt(7,25)),new en(24,new gt(11,12),new gt(7,13))),new o(16,Int32Array.from([6,26,50,74]),new en(24,new gt(5,98),new gt(1,99)),new en(28,new gt(7,45),new gt(3,46)),new en(24,new gt(15,19),new gt(2,20)),new en(30,new gt(3,15),new gt(13,16))),new o(17,Int32Array.from([6,30,54,78]),new en(28,new gt(1,107),new gt(5,108)),new en(28,new gt(10,46),new gt(1,47)),new en(28,new gt(1,22),new gt(15,23)),new en(28,new gt(2,14),new gt(17,15))),new o(18,Int32Array.from([6,30,56,82]),new en(30,new gt(5,120),new gt(1,121)),new en(26,new gt(9,43),new gt(4,44)),new en(28,new gt(17,22),new gt(1,23)),new en(28,new gt(2,14),new gt(19,15))),new o(19,Int32Array.from([6,30,58,86]),new en(28,new gt(3,113),new gt(4,114)),new en(26,new gt(3,44),new gt(11,45)),new en(26,new gt(17,21),new gt(4,22)),new en(26,new gt(9,13),new gt(16,14))),new o(20,Int32Array.from([6,34,62,90]),new en(28,new gt(3,107),new gt(5,108)),new en(26,new gt(3,41),new gt(13,42)),new en(30,new gt(15,24),new gt(5,25)),new en(28,new gt(15,15),new gt(10,16))),new o(21,Int32Array.from([6,28,50,72,94]),new en(28,new gt(4,116),new gt(4,117)),new en(26,new gt(17,42)),new en(28,new gt(17,22),new gt(6,23)),new en(30,new gt(19,16),new gt(6,17))),new o(22,Int32Array.from([6,26,50,74,98]),new en(28,new gt(2,111),new gt(7,112)),new en(28,new gt(17,46)),new en(30,new gt(7,24),new gt(16,25)),new en(24,new gt(34,13))),new o(23,Int32Array.from([6,30,54,78,102]),new en(30,new gt(4,121),new gt(5,122)),new en(28,new gt(4,47),new gt(14,48)),new en(30,new gt(11,24),new gt(14,25)),new en(30,new gt(16,15),new gt(14,16))),new o(24,Int32Array.from([6,28,54,80,106]),new en(30,new gt(6,117),new gt(4,118)),new en(28,new gt(6,45),new gt(14,46)),new en(30,new gt(11,24),new gt(16,25)),new en(30,new gt(30,16),new gt(2,17))),new o(25,Int32Array.from([6,32,58,84,110]),new en(26,new gt(8,106),new gt(4,107)),new en(28,new gt(8,47),new gt(13,48)),new en(30,new gt(7,24),new gt(22,25)),new en(30,new gt(22,15),new gt(13,16))),new o(26,Int32Array.from([6,30,58,86,114]),new en(28,new gt(10,114),new gt(2,115)),new en(28,new gt(19,46),new gt(4,47)),new en(28,new gt(28,22),new gt(6,23)),new en(30,new gt(33,16),new gt(4,17))),new o(27,Int32Array.from([6,34,62,90,118]),new en(30,new gt(8,122),new gt(4,123)),new en(28,new gt(22,45),new gt(3,46)),new en(30,new gt(8,23),new gt(26,24)),new en(30,new gt(12,15),new gt(28,16))),new o(28,Int32Array.from([6,26,50,74,98,122]),new en(30,new gt(3,117),new gt(10,118)),new en(28,new gt(3,45),new gt(23,46)),new en(30,new gt(4,24),new gt(31,25)),new en(30,new gt(11,15),new gt(31,16))),new o(29,Int32Array.from([6,30,54,78,102,126]),new en(30,new gt(7,116),new gt(7,117)),new en(28,new gt(21,45),new gt(7,46)),new en(30,new gt(1,23),new gt(37,24)),new en(30,new gt(19,15),new gt(26,16))),new o(30,Int32Array.from([6,26,52,78,104,130]),new en(30,new gt(5,115),new gt(10,116)),new en(28,new gt(19,47),new gt(10,48)),new en(30,new gt(15,24),new gt(25,25)),new en(30,new gt(23,15),new gt(25,16))),new o(31,Int32Array.from([6,30,56,82,108,134]),new en(30,new gt(13,115),new gt(3,116)),new en(28,new gt(2,46),new gt(29,47)),new en(30,new gt(42,24),new gt(1,25)),new en(30,new gt(23,15),new gt(28,16))),new o(32,Int32Array.from([6,34,60,86,112,138]),new en(30,new gt(17,115)),new en(28,new gt(10,46),new gt(23,47)),new en(30,new gt(10,24),new gt(35,25)),new en(30,new gt(19,15),new gt(35,16))),new o(33,Int32Array.from([6,30,58,86,114,142]),new en(30,new gt(17,115),new gt(1,116)),new en(28,new gt(14,46),new gt(21,47)),new en(30,new gt(29,24),new gt(19,25)),new en(30,new gt(11,15),new gt(46,16))),new o(34,Int32Array.from([6,34,62,90,118,146]),new en(30,new gt(13,115),new gt(6,116)),new en(28,new gt(14,46),new gt(23,47)),new en(30,new gt(44,24),new gt(7,25)),new en(30,new gt(59,16),new gt(1,17))),new o(35,Int32Array.from([6,30,54,78,102,126,150]),new en(30,new gt(12,121),new gt(7,122)),new en(28,new gt(12,47),new gt(26,48)),new en(30,new gt(39,24),new gt(14,25)),new en(30,new gt(22,15),new gt(41,16))),new o(36,Int32Array.from([6,24,50,76,102,128,154]),new en(30,new gt(6,121),new gt(14,122)),new en(28,new gt(6,47),new gt(34,48)),new en(30,new gt(46,24),new gt(10,25)),new en(30,new gt(2,15),new gt(64,16))),new o(37,Int32Array.from([6,28,54,80,106,132,158]),new en(30,new gt(17,122),new gt(4,123)),new en(28,new gt(29,46),new gt(14,47)),new en(30,new gt(49,24),new gt(10,25)),new en(30,new gt(24,15),new gt(46,16))),new o(38,Int32Array.from([6,32,58,84,110,136,162]),new en(30,new gt(4,122),new gt(18,123)),new en(28,new gt(13,46),new gt(32,47)),new en(30,new gt(48,24),new gt(14,25)),new en(30,new gt(42,15),new gt(32,16))),new o(39,Int32Array.from([6,26,54,82,110,138,166]),new en(30,new gt(20,117),new gt(4,118)),new en(28,new gt(40,47),new gt(7,48)),new en(30,new gt(43,24),new gt(22,25)),new en(30,new gt(10,15),new gt(67,16))),new o(40,Int32Array.from([6,30,58,86,114,142,170]),new en(30,new gt(19,118),new gt(6,119)),new en(28,new gt(18,47),new gt(31,48)),new en(30,new gt(34,24),new gt(34,25)),new en(30,new gt(20,15),new gt(61,16)))],o}();const Ls=Ra;var os=function(o){return o[o.DATA_MASK_000=0]="DATA_MASK_000",o[o.DATA_MASK_001=1]="DATA_MASK_001",o[o.DATA_MASK_010=2]="DATA_MASK_010",o[o.DATA_MASK_011=3]="DATA_MASK_011",o[o.DATA_MASK_100=4]="DATA_MASK_100",o[o.DATA_MASK_101=5]="DATA_MASK_101",o[o.DATA_MASK_110=6]="DATA_MASK_110",o[o.DATA_MASK_111=7]="DATA_MASK_111",o}(os||{}),ss=function(){function o(t,i){this.value=t,this.isMasked=i}return o.prototype.unmaskBitMatrix=function(t,i){for(var s=0;s=0;s--)t=this.copyBit(8,s,t);var c=this.bitMatrix.getHeight(),h=0,v=c-7;for(s=c-1;s>=v;s--)h=this.copyBit(8,s,h);for(i=c-8;i=0;h--)for(var v=t-9;v>=c;v--)s=this.copyBit(v,h,s);var M=Ls.decodeVersionInformation(s);if(null!==M&&M.getDimensionForVersion()===t)return this.parsedVersion=M,M;for(s=0,v=5;v>=0;v--)for(h=t-9;h>=c;h--)s=this.copyBit(v,h,s);if(null!==(M=Ls.decodeVersionInformation(s))&&M.getDimensionForVersion()===t)return this.parsedVersion=M,M;throw new bt},o.prototype.copyBit=function(t,i,s){return(this.isMirror?this.bitMatrix.get(i,t):this.bitMatrix.get(t,i))?s<<1|1:s<<1},o.prototype.readCodewords=function(){var t=this.readFormatInformation(),i=this.readVersion(),s=Fc.values.get(t.getDataMask()),c=this.bitMatrix.getHeight();s.unmaskBitMatrix(this.bitMatrix,c);for(var h=i.buildFunctionPattern(),v=!0,M=new Uint8Array(i.getTotalCodewords()),O=0,N=0,$=0,q=c-1;q>0;q-=2){6===q&&q--;for(var de=0;de=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},W=function(){function o(t,i){this.numDataCodewords=t,this.codewords=i}return o.getDataBlocks=function(t,i,s){var c,h,v,M;if(t.length!==i.getTotalCodewords())throw new Ge;var O=i.getECBlocksForLevel(s),N=0,$=O.getECBlocks();try{for(var q=ys($),de=q.next();!de.done;de=q.next())N+=(we=de.value).getCount()}catch(hs){c={error:hs}}finally{try{de&&!de.done&&(h=q.return)&&h.call(q)}finally{if(c)throw c.error}}var et=new Array(N),vt=0;try{for(var zt=ys($),$t=zt.next();!$t.done;$t=zt.next())for(var we=$t.value,Gt=0;Gt=0&&et[Zn].codewords.length!==Nn;)Zn--;Zn++;var fi=Nn-O.getECCodewordsPerBlock(),Gi=0;for(Gt=0;Gtt.available())throw new bt;for(var c=new Uint8Array(2*s),h=0;s>0;){var v=t.readBits(13),M=v/96<<8&4294967295|v%96;c[h]=(M+=M<959?41377:42657)>>8&255,c[h+1]=255&M,h+=2,s--}try{i.append(Wn.decode(c,ct.GB2312))}catch(O){throw new bt(O)}},o.decodeKanjiSegment=function(t,i,s){if(13*s>t.available())throw new bt;for(var c=new Uint8Array(2*s),h=0;s>0;){var v=t.readBits(13),M=v/192<<8&4294967295|v%192;c[h]=(M+=M<7936?33088:49472)>>8,c[h+1]=M,h+=2,s--}try{i.append(Wn.decode(c,ct.SHIFT_JIS))}catch(O){throw new bt(O)}},o.decodeByteSegment=function(t,i,s,c,h,v){if(8*s>t.available())throw new bt;for(var M=new Uint8Array(s),O=0;O=o.ALPHANUMERIC_CHARS.length)throw new bt;return o.ALPHANUMERIC_CHARS[t]},o.decodeAlphanumericSegment=function(t,i,s,c){for(var h=i.length();s>1;){if(t.available()<11)throw new bt;var v=t.readBits(11);i.append(o.toAlphaNumericChar(Math.floor(v/45))),i.append(o.toAlphaNumericChar(v%45)),s-=2}if(1===s){if(t.available()<6)throw new bt;i.append(o.toAlphaNumericChar(t.readBits(6)))}if(c)for(var M=h;M=3;){if(t.available()<10)throw new bt;var c=t.readBits(10);if(c>=1e3)throw new bt;i.append(o.toAlphaNumericChar(Math.floor(c/100))),i.append(o.toAlphaNumericChar(Math.floor(c/10)%10)),i.append(o.toAlphaNumericChar(c%10)),s-=3}if(2===s){if(t.available()<7)throw new bt;var h=t.readBits(7);if(h>=100)throw new bt;i.append(o.toAlphaNumericChar(Math.floor(h/10))),i.append(o.toAlphaNumericChar(h%10))}else if(1===s){if(t.available()<4)throw new bt;var v=t.readBits(4);if(v>=10)throw new bt;i.append(o.toAlphaNumericChar(v))}},o.parseECIValue=function(t){var i=t.readBits(8);if(!(128&i))return 127&i;if(128==(192&i))return(63&i)<<8&4294967295|t.readBits(8);if(192==(224&i))return(31&i)<<16&4294967295|t.readBits(16);throw new bt},o.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",o.GB2312_SUBSET=1,o}();const Pt=qe;var mn=function(){function o(t){this.mirrored=t}return o.prototype.isMirrored=function(){return this.mirrored},o.prototype.applyMirroredCorrection=function(t){if(this.mirrored&&null!==t&&!(t.length<3)){var i=t[0];t[0]=t[2],t[2]=i}},o}();const hn=mn;var on=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ji=function(){function o(){this.rsDecoder=new vr(_n.QR_CODE_FIELD_256)}return o.prototype.decodeBooleanArray=function(t,i){return this.decodeBitMatrix(ae.parseFromBooleanArray(t),i)},o.prototype.decodeBitMatrix=function(t,i){var s=new ka(t),c=null;try{return this.decodeBitMatrixParser(s,i)}catch(v){c=v}try{s.remask(),s.setMirror(!0),s.readVersion(),s.readFormatInformation(),s.mirror();var h=this.decodeBitMatrixParser(s,i);return h.setOther(new hn(!0)),h}catch(v){throw null!==c?c:v}},o.prototype.decodeBitMatrixParser=function(t,i){var s,c,h,v,M=t.readVersion(),O=t.readFormatInformation().getErrorCorrectionLevel(),N=t.readCodewords(),$=ne.getDataBlocks(N,M,O),q=0;try{for(var de=on($),we=de.next();!we.done;we=de.next())q+=(et=we.value).getNumDataCodewords()}catch(Zn){s={error:Zn}}finally{try{we&&!we.done&&(c=de.return)&&c.call(de)}finally{if(s)throw s.error}}var vt=new Uint8Array(q),zt=0;try{for(var $t=on($),Gt=$t.next();!Gt.done;Gt=$t.next()){var et,an=(et=Gt.value).getCodewords(),bn=et.getNumDataCodewords();this.correctErrors(an,bn);for(var Nn=0;Nn=s)return!1;return!0},o.prototype.crossCheckVertical=function(t,i,s,c){var h=this.image,v=h.getHeight(),M=this.crossCheckStateCount;M[0]=0,M[1]=0,M[2]=0;for(var O=t;O>=0&&h.get(i,O)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&!h.get(i,O)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;Os)return NaN;for(;Os||5*Math.abs(M[0]+M[1]+M[2]-c)>=2*c?NaN:this.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.handlePossibleCenter=function(t,i,s){var c,h,v=t[0]+t[1]+t[2],M=o.centerFromEnd(t,s),O=this.crossCheckVertical(i,M,2*t[1],v);if(!isNaN(O)){var N=(t[0]+t[1]+t[2])/3;try{for(var $=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.possibleCenters),q=$.next();!q.done;q=$.next()){var de=q.value;if(de.aboutEquals(N,O,M))return de.combineEstimate(O,M,N)}}catch(et){c={error:et}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}var we=new Ps(M,O,N);this.possibleCenters.push(we),null!=this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(we)}return null},o}();const Ja=Rl;var xd=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Md=function(o){function t(i,s,c,h){var v=o.call(this,i,s)||this;return v.estimatedModuleSize=c,v.count=h,void 0===h&&(v.count=1),v}return xd(t,o),t.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},t.prototype.getCount=function(){return this.count},t.prototype.aboutEquals=function(i,s,c){if(Math.abs(s-this.getY())<=i&&Math.abs(c-this.getX())<=i){var h=Math.abs(i-this.estimatedModuleSize);return h<=1||h<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(i,s,c){var h=this.count+1;return new t((this.count*this.getX()+s)/h,(this.count*this.getY()+i)/h,(this.count*this.estimatedModuleSize+c)/h,h)},t}($n);const Do=Md;var qa=function(){function o(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}return o.prototype.getBottomLeft=function(){return this.bottomLeft},o.prototype.getTopLeft=function(){return this.topLeft},o.prototype.getTopRight=function(){return this.topRight},o}();const xr=qa;var dc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ec=function(){function o(t,i){this.image=t,this.resultPointCallback=i,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=i}return o.prototype.getImage=function(){return this.image},o.prototype.getPossibleCenters=function(){return this.possibleCenters},o.prototype.find=function(t){var i=null!=t&&void 0!==t.get(he.TRY_HARDER),s=null!=t&&void 0!==t.get(he.PURE_BARCODE),c=this.image,h=c.getHeight(),v=c.getWidth(),M=Math.floor(3*h/(4*o.MAX_MODULES));(MN[2]&&($+=et-N[2]-M,de=v-1)}q=0,N[0]=0,N[1]=0,N[2]=0,N[3]=0,N[4]=0}else N[0]=N[2],N[1]=N[3],N[2]=N[4],N[3]=1,N[4]=0,q=3;else N[++q]++;o.foundPatternCross(N)&&!0===this.handlePossibleCenter(N,$,v,s)&&(M=N[0],this.hasSkipped&&(O=this.haveMultiplyConfirmedCenters()))}var vt=this.selectBestPatterns();return $n.orderBestPatterns(vt),new xr(vt)},o.centerFromEnd=function(t,i){return i-t[4]-t[3]-t[2]/2},o.foundPatternCross=function(t){for(var i=0,s=0;s<5;s++){var c=t[s];if(0===c)return!1;i+=c}if(i<7)return!1;var h=i/7,v=h/2;return Math.abs(h-t[0])=v&&i>=v&&M.get(i-v,t-v);)h[2]++,v++;if(t=v&&i>=v&&!M.get(i-v,t-v)&&h[1]<=s;)h[1]++,v++;if(ts)return!1;for(;t>=v&&i>=v&&M.get(i-v,t-v)&&h[0]<=s;)h[0]++,v++;if(h[0]>s)return!1;var O=M.getHeight(),N=M.getWidth();for(v=1;t+v=O||i+v>=N)return!1;for(;t+v=O||i+v>=N||h[3]>=s)return!1;for(;t+v=s)&&Math.abs(h[0]+h[1]+h[2]+h[3]+h[4]-c)<2*c&&o.foundPatternCross(h)},o.prototype.crossCheckVertical=function(t,i,s,c){for(var h=this.image,v=h.getHeight(),M=this.getCrossCheckStateCount(),O=t;O>=0&&h.get(i,O);)M[2]++,O--;if(O<0)return NaN;for(;O>=0&&!h.get(i,O)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&h.get(i,O)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;O=s)return NaN;for(;O=s||5*Math.abs(M[0]+M[1]+M[2]+M[3]+M[4]-c)>=2*c?NaN:o.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.crossCheckHorizontal=function(t,i,s,c){for(var h=this.image,v=h.getWidth(),M=this.getCrossCheckStateCount(),O=t;O>=0&&h.get(O,i);)M[2]++,O--;if(O<0)return NaN;for(;O>=0&&!h.get(O,i)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&h.get(O,i)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;O=s)return NaN;for(;O=s||5*Math.abs(M[0]+M[1]+M[2]+M[3]+M[4]-c)>=c?NaN:o.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.handlePossibleCenter=function(t,i,s,c){var h=t[0]+t[1]+t[2]+t[3]+t[4],v=o.centerFromEnd(t,s),M=this.crossCheckVertical(i,Math.floor(v),t[2],h);if(!isNaN(M)&&(v=this.crossCheckHorizontal(Math.floor(v),Math.floor(M),t[2],h),!isNaN(v)&&(!c||this.crossCheckDiagonal(Math.floor(M),Math.floor(v),t[2],h)))){for(var O=h/7,N=!1,$=this.possibleCenters,q=0,de=$.length;q=o.CENTER_QUORUM){if(null!=c)return this.hasSkipped=!0,Math.floor((Math.abs(c.getX()-M.getX())-Math.abs(c.getY()-M.getY()))/2);c=M}}}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return 0},o.prototype.haveMultiplyConfirmedCenters=function(){var t,i,s,c,h=0,v=0,M=this.possibleCenters.length;try{for(var O=dc(this.possibleCenters),N=O.next();!N.done;N=O.next())($=N.value).getCount()>=o.CENTER_QUORUM&&(h++,v+=$.getEstimatedModuleSize())}catch(vt){t={error:vt}}finally{try{N&&!N.done&&(i=O.return)&&i.call(O)}finally{if(t)throw t.error}}if(h<3)return!1;var q=v/M,de=0;try{for(var we=dc(this.possibleCenters),et=we.next();!et.done;et=we.next()){var $=et.value;de+=Math.abs($.getEstimatedModuleSize()-q)}}catch(vt){s={error:vt}}finally{try{et&&!et.done&&(c=we.return)&&c.call(we)}finally{if(s)throw s.error}}return de<=.05*v},o.prototype.selectBestPatterns=function(){var t,i,s,c,h=this.possibleCenters.length;if(h<3)throw new Se;var M,v=this.possibleCenters;if(h>3){var O=0,N=0;try{for(var $=dc(this.possibleCenters),q=$.next();!q.done;q=$.next()){var we=q.value.getEstimatedModuleSize();O+=we,N+=we*we}}catch(Nn){t={error:Nn}}finally{try{q&&!q.done&&(i=$.return)&&i.call($)}finally{if(t)throw t.error}}M=O/h;var et=Math.sqrt(N/h-M*M);v.sort(function(Nn,Zn){var Kn=Math.abs(Zn.getEstimatedModuleSize()-M),fi=Math.abs(Nn.getEstimatedModuleSize()-M);return Knfi?1:0});for(var vt=Math.max(.2*M,et),zt=0;zt3;zt++)Math.abs(v[zt].getEstimatedModuleSize()-M)>vt&&(v.splice(zt,1),zt--)}if(v.length>3){O=0;try{for(var Gt=dc(v),an=Gt.next();!an.done;an=Gt.next())O+=an.value.getEstimatedModuleSize()}catch(Zn){s={error:Zn}}finally{try{an&&!an.done&&(c=Gt.return)&&c.call(Gt)}finally{if(s)throw s.error}}M=O/v.length,v.sort(function(Zn,Kn){if(Kn.getCount()===Zn.getCount()){var fi=Math.abs(Kn.getEstimatedModuleSize()-M),Gi=Math.abs(Zn.getEstimatedModuleSize()-M);return fiGi?-1:0}return Kn.getCount()-Zn.getCount()}),v.splice(3)}return[v[0],v[1],v[2]]},o.CENTER_QUORUM=2,o.MIN_SKIP=3,o.MAX_MODULES=57,o}();const sd=Ec;var uc=function(){function o(t){this.image=t}return o.prototype.getImage=function(){return this.image},o.prototype.getResultPointCallback=function(){return this.resultPointCallback},o.prototype.detect=function(t){this.resultPointCallback=null==t?null:t.get(he.NEED_RESULT_POINT_CALLBACK);var s=new sd(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(s)},o.prototype.processFinderPatternInfo=function(t){var i=t.getTopLeft(),s=t.getTopRight(),c=t.getBottomLeft(),h=this.calculateModuleSize(i,s,c);if(h<1)throw new Se("No pattern found in proccess finder.");var v=o.computeDimension(i,s,c,h),M=Ls.getProvisionalVersionForDimension(v),O=M.getDimensionForVersion()-7,N=null;if(M.getAlignmentPatternCenters().length>0)for(var $=s.getX()-i.getX()+c.getX(),q=s.getY()-i.getY()+c.getY(),de=1-3/O,we=Math.floor(i.getX()+de*($-i.getX())),et=Math.floor(i.getY()+de*(q-i.getY())),vt=4;vt<=16;vt<<=1)try{N=this.findAlignmentInRegion(h,we,et,vt);break}catch(an){if(!(an instanceof Se))throw an}var zt=o.createTransform(i,s,c,N,v),$t=o.sampleGrid(this.image,zt,v);return new Fr($t,null===N?[c,i,s]:[c,i,s,N])},o.createTransform=function(t,i,s,c,h){var M,O,N,$,v=h-3.5;return null!==c?(M=c.getX(),O=c.getY(),$=N=v-3):(M=i.getX()-t.getX()+s.getX(),O=i.getY()-t.getY()+s.getY(),N=v,$=v),Ws.quadrilateralToQuadrilateral(3.5,3.5,v,3.5,N,$,3.5,v,t.getX(),t.getY(),i.getX(),i.getY(),M,O,s.getX(),s.getY())},o.sampleGrid=function(t,i,s){return ga.getInstance().sampleGridWithTransform(t,s,s,i)},o.computeDimension=function(t,i,s,c){var h=_i.round($n.distance(t,i)/c),v=_i.round($n.distance(t,s)/c),M=Math.floor((h+v)/2)+7;switch(3&M){case 0:M++;break;case 2:M--;break;case 3:throw new Se("Dimensions could be not found.")}return M},o.prototype.calculateModuleSize=function(t,i,s){return(this.calculateModuleSizeOneWay(t,i)+this.calculateModuleSizeOneWay(t,s))/2},o.prototype.calculateModuleSizeOneWay=function(t,i){var s=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(i.getX()),Math.floor(i.getY())),c=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(i.getX()),Math.floor(i.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(s)?c/7:isNaN(c)?s/7:(s+c)/14},o.prototype.sizeOfBlackWhiteBlackRunBothWays=function(t,i,s,c){var h=this.sizeOfBlackWhiteBlackRun(t,i,s,c),v=1,M=t-(s-t);M<0?(v=t/(t-M),M=0):M>=this.image.getWidth()&&(v=(this.image.getWidth()-1-t)/(M-t),M=this.image.getWidth()-1);var O=Math.floor(i-(c-i)*v);return v=1,O<0?(v=i/(i-O),O=0):O>=this.image.getHeight()&&(v=(this.image.getHeight()-1-i)/(O-i),O=this.image.getHeight()-1),M=Math.floor(t+(M-t)*v),(h+=this.sizeOfBlackWhiteBlackRun(t,i,M,O))-1},o.prototype.sizeOfBlackWhiteBlackRun=function(t,i,s,c){var h=Math.abs(c-i)>Math.abs(s-t);if(h){var v=t;t=i,i=v,v=s,s=c,c=v}for(var M=Math.abs(s-t),O=Math.abs(c-i),N=-M/2,$=t0){if(vt===c)break;vt+=q,N-=M}}return 2===de?_i.distance(s+$,c,t,i):NaN},o.prototype.findAlignmentInRegion=function(t,i,s,c){var h=Math.floor(c*t),v=Math.max(0,i-h),M=Math.min(this.image.getWidth()-1,i+h);if(M-v<3*t)throw new Se("Alignment top exceeds estimated module size.");var O=Math.max(0,s-h),N=Math.min(this.image.getHeight()-1,s+h);if(N-O<3*t)throw new Se("Alignment bottom exceeds estimated module size.");return new Ja(this.image,v,O,M-v,N-O,t,this.resultPointCallback).find()},o}();const hc=uc;var Qa=function(){function o(){this.decoder=new Gr}return o.prototype.getDecoder=function(){return this.decoder},o.prototype.decode=function(t,i){var s,c;if(null!=i&&void 0!==i.get(he.PURE_BARCODE)){var h=o.extractPureBits(t.getBlackMatrix());s=this.decoder.decodeBitMatrix(h,i),c=o.NO_POINTS}else{var v=new hc(t.getBlackMatrix()).detect(i);s=this.decoder.decodeBitMatrix(v.getBits(),i),c=v.getPoints()}s.getOther()instanceof hn&&s.getOther().applyMirroredCorrection(c);var M=new We(s.getText(),s.getRawBytes(),void 0,c,be.QR_CODE,void 0),O=s.getByteSegments();null!==O&&M.putMetadata(He.BYTE_SEGMENTS,O);var N=s.getECLevel();return null!==N&&M.putMetadata(He.ERROR_CORRECTION_LEVEL,N),s.hasStructuredAppend()&&(M.putMetadata(He.STRUCTURED_APPEND_SEQUENCE,s.getStructuredAppendSequenceNumber()),M.putMetadata(He.STRUCTURED_APPEND_PARITY,s.getStructuredAppendParity())),M},o.prototype.reset=function(){},o.extractPureBits=function(t){var i=t.getTopLeftOnBit(),s=t.getBottomRightOnBit();if(null===i||null===s)throw new Se;var c=this.moduleSize(i,t),h=i[1],v=s[1],M=i[0],O=s[0];if(M>=O||h>=v)throw new Se;if(v-h!=O-M&&(O=M+(v-h))>=t.getWidth())throw new Se;var N=Math.round((O-M+1)/c),$=Math.round((v-h+1)/c);if(N<=0||$<=0)throw new Se;if($!==N)throw new Se;var q=Math.floor(c/2);h+=q;var de=(M+=q)+Math.floor((N-1)*c)-O;if(de>0){if(de>q)throw new Se;M-=de}var we=h+Math.floor(($-1)*c)-v;if(we>0){if(we>q)throw new Se;h-=we}for(var et=new ae(N,$),vt=0;vt<$;vt++)for(var zt=h+Math.floor(vt*c),$t=0;$t=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),M=v.next();!M.done;M=v.next())c[h++]=M.value}catch(N){i={error:N}}finally{try{M&&!M.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return c},o.getCodeword=function(t){var i=at.binarySearch(o.SYMBOL_TABLE,262143&t);return i<0?-1:(o.CODEWORD_TABLE[i]-1)%o.NUMBER_OF_CODEWORDS},o.MAX_CODEWORDS_IN_BARCODE=(o.NUMBER_OF_CODEWORDS=929)-1,o.MIN_ROWS_IN_BARCODE=3,o.MAX_ROWS_IN_BARCODE=90,o.MODULES_IN_CODEWORD=17,o.MODULES_IN_STOP_PATTERN=18,o.BARS_IN_MODULE=8,o.EMPTY_INT_ARRAY=new Int32Array([]),o.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),o.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),o}();const Pi=ad;var Xa=function(){function o(t,i){this.bits=t,this.points=i}return o.prototype.getBits=function(){return this.bits},o.prototype.getPoints=function(){return this.points},o}();const ld=Xa;var Sc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Cd=function(){function o(){}return o.detectMultiple=function(t,i,s){var c=t.getBlackMatrix(),h=o.detect(s,c);return h.length||((c=c.clone()).rotate180(),h=o.detect(s,c)),new ld(c,h)},o.detect=function(t,i){for(var s,c,h=new Array,v=0,M=0,O=!1;v0;){if(null==(q=o.findGuardPattern(t,h,--c,s,!1,v,N))){c++;break}$=q}M[0]=new $n($[0],c),M[1]=new $n($[1],c),O=!0;break}var de=c+1;if(O){for(var we=0,q=Int32Array.from([Math.trunc(M[0].getX()),Math.trunc(M[1].getX())]);deo.SKIPPED_ROW_COUNT_MAX)break;we++}}M[2]=new $n(q[0],de-=we+1),M[3]=new $n(q[1],de)}return de-c0&&N++de?q-de:de-q;if(we>s)return 1/0;N+=we}return N/h},o.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),o.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),o.MAX_AVG_VARIANCE=.42,o.MAX_INDIVIDUAL_VARIANCE=.8,o.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),o.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),o.MAX_PIXEL_DRIFT=3,o.MAX_PATTERN_DRIFT=5,o.SKIPPED_ROW_COUNT_MAX=25,o.ROW_STEP=5,o.BARCODE_MIN_HEIGHT=10,o}();const el=Cd;var Yc=function(){function o(t,i){if(0===i.length)throw new Ge;this.field=t;var s=i.length;if(s>1&&0===i[0]){for(var c=1;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.coefficients),v=h.next();!v.done;v=h.next())c=this.field.add(c,v.value)}catch(q){i={error:q}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c}for(var O=this.coefficients[0],N=this.coefficients.length,$=1;$s.length){var c=i;i=s,s=c}var h=new Int32Array(s.length),v=s.length-i.length;Jt.arraycopy(s,0,h,0,v);for(var M=v;M=0;i--){var s=this.getCoefficient(i);0!==s&&(s<0?(t.append(" - "),s=-s):t.length()>0&&t.append(" + "),(0===i||1!==s)&&t.append(s),0!==i&&(1===i?t.append("x"):(t.append("x^"),t.append(i))))}return t.toString()},o}();const ca=Yc;var zd=function(){function o(){}return o.prototype.add=function(t,i){return(t+i)%this.modulus},o.prototype.subtract=function(t,i){return(this.modulus+t-i)%this.modulus},o.prototype.exp=function(t){return this.expTable[t]},o.prototype.log=function(t){if(0===t)throw new Ge;return this.logTable[t]},o.prototype.inverse=function(t){if(0===t)throw new st;return this.expTable[this.modulus-this.logTable[t]-1]},o.prototype.multiply=function(t,i){return 0===t||0===i?0:this.expTable[(this.logTable[t]+this.logTable[i])%(this.modulus-1)]},o.prototype.getSize=function(){return this.modulus},o.prototype.equals=function(t){return t===this},o}();const Dd=zd;var Lo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Bc=function(o){function t(i,s){var c=o.call(this)||this;c.modulus=i,c.expTable=new Int32Array(i),c.logTable=new Int32Array(i);for(var h=1,v=0;v0;N--){var $=v.evaluateAt(this.field.exp(N));M[i-N]=$,0!==$&&(O=!0)}if(!O)return 0;var q=this.field.getOne();if(null!=s)try{for(var de=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s),we=de.next();!we.done;we=de.next()){var vt=this.field.exp(t.length-1-we.value),zt=new ca(this.field,new Int32Array([this.field.subtract(0,vt),1]));q=q.multiply(zt)}}catch(fi){c={error:fi}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}var $t=new ca(this.field,M),Gt=this.runEuclideanAlgorithm(this.field.buildMonomial(i,1),$t,i),an=Gt[0],bn=Gt[1],Nn=this.findErrorLocations(an),Zn=this.findErrorMagnitudes(bn,an,Nn);for(N=0;N=Math.round(s/2);){var N=h,$=M;if(M=O,(h=v).isZero())throw St.getChecksumInstance();v=N;for(var q=this.field.getZero(),de=h.getCoefficient(h.getDegree()),we=this.field.inverse(de);v.getDegree()>=h.getDegree()&&!v.isZero();){var et=v.getDegree()-h.getDegree(),vt=this.field.multiply(v.getCoefficient(v.getDegree()),we);q=q.add(this.field.buildMonomial(et,vt)),v=v.subtract(h.multiplyByMonomial(et,vt))}O=q.multiply(M).subtract($).negative()}var zt=O.getCoefficient(0);if(0===zt)throw St.getChecksumInstance();var $t=this.field.inverse(zt);return[O.multiply($t),v.multiply($t)]},o.prototype.findErrorLocations=function(t){for(var i=t.getDegree(),s=new Int32Array(i),c=0,h=1;h0){var O=s?this.topLeft:this.topRight,N=Math.trunc(O.getY()-t);N<0&&(N=0);var $=new $n(O.getX(),N);s?c=$:v=$}if(i>0){var q=s?this.bottomLeft:this.bottomRight,de=Math.trunc(q.getY()+i);de>=this.image.getHeight()&&(de=this.image.getHeight()-1);var we=new $n(q.getX(),de);s?h=we:M=we}return new o(this.image,c,h,v,M)},o.prototype.getMinX=function(){return this.minX},o.prototype.getMaxX=function(){return this.maxX},o.prototype.getMinY=function(){return this.minY},o.prototype.getMaxY=function(){return this.maxY},o.prototype.getTopLeft=function(){return this.topLeft},o.prototype.getTopRight=function(){return this.topRight},o.prototype.getBottomLeft=function(){return this.bottomLeft},o.prototype.getBottomRight=function(){return this.bottomRight},o}();const kl=wc;var Ql=function(){function o(t,i,s,c){this.columnCount=t,this.errorCorrectionLevel=c,this.rowCountUpperPart=i,this.rowCountLowerPart=s,this.rowCount=i+s}return o.prototype.getColumnCount=function(){return this.columnCount},o.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},o.prototype.getRowCount=function(){return this.rowCount},o.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},o.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},o}();const Ac=Ql;var Hc=function(){function o(){this.buffer=""}return o.form=function(t,i){var s=-1;return t.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,function c(v,M,O,N,$,q){if("%%"===v)return"%";if(void 0!==i[++s]){v=N?parseInt(N.substr(1)):void 0;var we,de=$?parseInt($.substr(1)):void 0;switch(q){case"s":we=i[s];break;case"c":we=i[s][0];break;case"f":we=parseFloat(i[s]).toFixed(v);break;case"p":we=parseFloat(i[s]).toPrecision(v);break;case"e":we=parseFloat(i[s]).toExponential(v);break;case"x":we=parseInt(i[s]).toString(de||16);break;case"d":we=parseFloat(parseInt(i[s],de||10).toPrecision(v)).toFixed(0)}we="object"==typeof we?JSON.stringify(we):(+we).toString(de);for(var et=parseInt(O),vt=O&&O[0]+""=="0"?"0":" ";we.length=0&&null!=(i=this.codewords[c])||(c=this.imageRowToCodewordIndex(t)+s)=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.codewords),v=h.next();!v.done;v=h.next()){var M=v.value;null!=M?s.format("%3d: %3d|%3d%n",c++,M.getRowNumber(),M.getValue()):s.format("%3d: | %n",c++)}}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return s.toString()},o.MAX_NEARBY_DISTANCE=5,o}();const fc=cd;var Po=function(o,t){var i="function"==typeof Symbol&&o[Symbol.iterator];if(!i)return o;var c,v,s=i.call(o),h=[];try{for(;(void 0===t||t-- >0)&&!(c=s.next()).done;)h.push(c.value)}catch(M){v={error:M}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(v)throw v.error}}return h},da=function(){function o(){this.values=new Map}return o.prototype.setValue=function(t){t=Math.trunc(t);var i=this.values.get(t);null==i&&(i=0),i++,this.values.set(t,i)},o.prototype.getValue=function(){var t,i,s=-1,c=new Array,h=function(q,de){var we_getKey=function(){return q},we_getValue=function(){return de};we_getValue()>s?(s=we_getValue(),(c=[]).push(we_getKey())):we_getValue()===s&&c.push(we_getKey())};try{for(var v=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.values.entries()),M=v.next();!M.done;M=v.next()){var O=Po(M.value,2);h(O[0],O[1])}}catch(q){t={error:q}}finally{try{M&&!M.done&&(i=v.return)&&i.call(v)}finally{if(t)throw t.error}}return Pi.toIntArray(c)},o.prototype.getConfidence=function(t){return this.values.get(t)},o}();const Ll=da;var as=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),pc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ir=function(o){function t(i,s){var c=o.call(this,i)||this;return c._isLeft=s,c}return as(t,o),t.prototype.setRowNumbers=function(){var i,s;try{for(var c=pc(this.getCodewords()),h=c.next();!h.done;h=c.next()){var v=h.value;v?.setRowNumberAsRowIndicatorColumn()}}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},t.prototype.adjustCompleteIndicatorColumnRowNumbers=function(i){var s=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(s,i);for(var c=this.getBoundingBox(),h=this._isLeft?c.getTopLeft():c.getTopRight(),v=this._isLeft?c.getBottomLeft():c.getBottomRight(),M=this.imageRowToCodewordIndex(Math.trunc(h.getY())),O=this.imageRowToCodewordIndex(Math.trunc(v.getY())),N=-1,$=1,q=0,de=M;de=i.getRowCount()||et>de)s[de]=null;else{for(var vt,zt=(vt=$>2?($-2)*et:et)>=de,$t=1;$t<=vt&&!zt;$t++)zt=null!=s[de-$t];zt?s[de]=null:(N=we.getRowNumber(),q=1)}}},t.prototype.getRowHeights=function(){var i,s,c=this.getBarcodeMetadata();if(null==c)return null;this.adjustIncompleteIndicatorColumnRowNumbers(c);var h=new Int32Array(c.getRowCount());try{for(var v=pc(this.getCodewords()),M=v.next();!M.done;M=v.next()){var O=M.value;if(null!=O){var N=O.getRowNumber();if(N>=h.length)continue;h[N]++}}}catch($){i={error:$}}finally{try{M&&!M.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return h},t.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(i){for(var s=this.getBoundingBox(),c=this._isLeft?s.getTopLeft():s.getTopRight(),h=this._isLeft?s.getBottomLeft():s.getBottomRight(),v=this.imageRowToCodewordIndex(Math.trunc(c.getY())),M=this.imageRowToCodewordIndex(Math.trunc(h.getY())),O=this.getCodewords(),N=-1,$=1,q=0,de=v;de=i.getRowCount()?O[de]=null:(N=we.getRowNumber(),q=1)}},t.prototype.getBarcodeMetadata=function(){var i,s,c=this.getCodewords(),h=new Ll,v=new Ll,M=new Ll,O=new Ll;try{for(var N=pc(c),$=N.next();!$.done;$=N.next()){var q=$.value;if(null!=q){q.setRowNumberAsRowIndicatorColumn();var de=q.getValue()%30,we=q.getRowNumber();switch(this._isLeft||(we+=2),we%3){case 0:v.setValue(3*de+1);break;case 1:O.setValue(de/3),M.setValue(de%3);break;case 2:h.setValue(de+1)}}}}catch(vt){i={error:vt}}finally{try{$&&!$.done&&(s=N.return)&&s.call(N)}finally{if(i)throw i.error}}if(0===h.getValue().length||0===v.getValue().length||0===M.getValue().length||0===O.getValue().length||h.getValue()[0]<1||v.getValue()[0]+M.getValue()[0]Pi.MAX_ROWS_IN_BARCODE)return null;var et=new Ac(h.getValue()[0],v.getValue()[0],M.getValue()[0],O.getValue()[0]);return this.removeIncorrectCodewords(c,et),et},t.prototype.removeIncorrectCodewords=function(i,s){for(var c=0;cs.getRowCount()){i[c]=null;continue}switch(this._isLeft||(M+=2),M%3){case 0:3*v+1!==s.getRowCountUpperPart()&&(i[c]=null);break;case 1:(Math.trunc(v/3)!==s.getErrorCorrectionLevel()||v%3!==s.getRowCountLowerPart())&&(i[c]=null);break;case 2:v+1!==s.getColumnCount()&&(i[c]=null)}}}},t.prototype.isLeft=function(){return this._isLeft},t.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+o.prototype.toString.call(this)},t}(fc);const k=ir;var pe=function(){function o(t,i){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=i,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return o.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var i,t=Pi.MAX_CODEWORDS_IN_BARCODE;do{i=t,t=this.adjustRowNumbersAndGetCount()}while(t>0&&t0&&h0&&(N[0]=s[i-1],N[4]=M[i-1],N[5]=O[i-1]),i>1&&(N[8]=s[i-2],N[10]=M[i-2],N[11]=O[i-2]),i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(N),q=$.next();!q.done;q=$.next())if(o.adjustRowNumber(v,q.value))return}catch(we){c={error:we}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}}},o.adjustRowNumber=function(t,i){return!(null==i||!i.hasValidRowNumber()||i.getBucket()!==t.getBucket()||(t.setRowNumber(i.getRowNumber()),0))},o.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},o.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},o.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},o.prototype.setBoundingBox=function(t){this.boundingBox=t},o.prototype.getBoundingBox=function(){return this.boundingBox},o.prototype.setDetectionResultColumn=function(t,i){this.detectionResultColumns[t]=i},o.prototype.getDetectionResultColumn=function(t){return this.detectionResultColumns[t]},o.prototype.toString=function(){var t=this.detectionResultColumns[0];null==t&&(t=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var i=new Eo,s=0;s>=1;s=1&i,o.RATIOS_TABLE[t]||(o.RATIOS_TABLE[t]=new Array(Pi.BARS_IN_MODULE)),o.RATIOS_TABLE[t][Pi.BARS_IN_MODULE-c-1]=Math.fround(h/Pi.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},o.getDecodedValue=function(t){var i=o.getDecodedCodewordValue(o.sampleBitCounts(t));return-1!==i?i:o.getClosestDecodedValue(t)},o.sampleBitCounts=function(t){for(var i=_i.sum(t),s=new Int32Array(Pi.BARS_IN_MODULE),c=0,h=0,v=0;v1)for(var c=0;c=h)break}Ot.length||s<0||i+s>t.length||i+s<0)throw new Ln;if(0!==s)for(var c=0;c0&&this.grow(i)},t.prototype.grow=function(i){var c=this.buf.length<<1;if(c-i<0&&(c=i),c<0){if(i<0)throw new Ad;c=Ee.MAX_VALUE}this.buf=at.copyOfUint8Array(this.buf,c)},t.prototype.write=function(i){this.ensureCapacity(this.count+1),this.buf[this.count]=i,this.count+=1},t.prototype.writeBytesOffset=function(i,s,c){if(s<0||s>i.length||c<0||s+c-i.length>0)throw new Ln;this.ensureCapacity(this.count+c),Jt.arraycopy(i,s,this.buf,this.count,c),this.count+=c},t.prototype.writeTo=function(i){i.writeBytesOffset(this.buf,0,this.count)},t.prototype.reset=function(){this.count=0},t.prototype.toByteArray=function(){return at.copyOfUint8Array(this.buf,this.count)},t.prototype.size=function(){return this.count},t.prototype.toString=function(i){return i?"string"==typeof i?this.toString_string(i):this.toString_number(i):this.toString_void()},t.prototype.toString_void=function(){return new String(this.buf).toString()},t.prototype.toString_string=function(i){return new String(this.buf).toString()},t.prototype.toString_number=function(i){return new String(this.buf).toString()},t.prototype.close=function(){},t}(_c);const ua=Pl;var zo,Or=function(o){return o[o.ALPHA=0]="ALPHA",o[o.LOWER=1]="LOWER",o[o.MIXED=2]="MIXED",o[o.PUNCT=3]="PUNCT",o[o.ALPHA_SHIFT=4]="ALPHA_SHIFT",o[o.PUNCT_SHIFT=5]="PUNCT_SHIFT",o}(Or||{});function Vc(){if(typeof window<"u")return window.BigInt||null;if(typeof global<"u")return global.BigInt||null;if(typeof self<"u")return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}function zi(o){if(typeof zo>"u"&&(zo=Vc()),null===zo)throw new Error("BigInt is not supported!");return zo(o)}var La=function(){function o(){}return o.decode=function(t,i){var s=new Ce(""),c=Dn.ISO8859_1;s.enableDecoding(c);for(var h=1,v=t[h++],M=new Hr;ht[0])throw bt.getFormatInstance();for(var c=new Int32Array(o.NUMBER_OF_SEQUENCE_CODEWORDS),h=0;h0){for(var de=0;de<6;++de)v.write(Number(zi(O)>>zi(8*(5-de))));O=0,M=0}}c===i[0]&&q0){for(de=0;de<6;++de)v.write(Number(zi(O)>>zi(8*(5-de))));O=0,M=0}}}return h.append(Wn.decode(v.toByteArray(),s)),c},o.numericCompaction=function(t,i,s){for(var c=0,h=!1,v=new Int32Array(o.MAX_NUMERIC_CODEWORDS);i0&&(s.append(o.decodeBase900toBase10(v,c)),c=0)}return i},o.decodeBase900toBase10=function(t,i){for(var s=zi(0),c=0;c@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",o.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",o.EXP900=Vc()?function Nl(){var o=[];o[0]=zi(1);var t=zi(900);o[1]=t;for(var i=2;i<16;i++)o[i]=o[i-1]*t;return o}():[],o.NUMBER_OF_SEQUENCE_CODEWORDS=2,o}();const $d=La;var mc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jc=function(){function o(){}return o.decode=function(t,i,s,c,h,v,M){for(var q,O=new kl(t,i,s,c,h),N=null,$=null,de=!0;;de=!1){if(null!=i&&(N=o.getRowIndicatorColumn(t,O,i,!0,v,M)),null!=c&&($=o.getRowIndicatorColumn(t,O,c,!1,v,M)),null==(q=o.merge(N,$)))throw Se.getNotFoundInstance();var we=q.getBoundingBox();if(!de||null==we||!(we.getMinY()O.getMaxY()))break;O=we}q.setBoundingBox(O);var et=q.getBarcodeColumnCount()+1;q.setDetectionResultColumn(0,N),q.setDetectionResultColumn(et,$);for(var vt=null!=N,zt=1;zt<=et;zt++){var $t=vt?zt:et-zt;if(void 0===q.getDetectionResultColumn($t)){var Gt=void 0;Gt=0===$t||$t===et?new k(O,0===$t):new fc(O),q.setDetectionResultColumn($t,Gt);for(var an=-1,bn=an,Nn=O.getMinY();Nn<=O.getMaxY();Nn++){if((an=o.getStartColumn(q,$t,Nn,vt))<0||an>O.getMaxX()){if(-1===bn)continue;an=bn}var Zn=o.detectCodeword(t,O.getMinX(),O.getMaxX(),vt,an,Nn,v,M);null!=Zn&&(Gt.setCodeword(Nn,Zn),bn=an,v=Math.min(v,Zn.getWidth()),M=Math.max(M,Zn.getWidth()))}}}return o.createDecoderResult(q)},o.merge=function(t,i){if(null==t&&null==i)return null;var s=o.getBarcodeMetadata(t,i);if(null==s)return null;var c=kl.merge(o.adjustBoundingBox(t),o.adjustBoundingBox(i));return new ke(s,c)},o.adjustBoundingBox=function(t){var i,s;if(null==t)return null;var c=t.getRowHeights();if(null==c)return null;var h=o.getMax(c),v=0;try{for(var M=mc(c),O=M.next();!O.done;O=M.next()){var N=O.value;if(v+=h-N,N>0)break}}catch(we){i={error:we}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}for(var $=t.getCodewords(),q=0;v>0&&null==$[q];q++)v--;var de=0;for(q=c.length-1;q>=0&&(de+=h-c[q],!(c[q]>0));q--);for(q=$.length-1;de>0&&null==$[q];q--)de--;return t.getBoundingBox().addMissingRows(v,de,t.isLeft())},o.getMax=function(t){var i,s,c=-1;try{for(var h=mc(t),v=h.next();!v.done;v=h.next())c=Math.max(c,v.value)}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c},o.getBarcodeMetadata=function(t,i){var s,c;return null==t||null==(s=t.getBarcodeMetadata())?null==i?null:i.getBarcodeMetadata():null==i||null==(c=i.getBarcodeMetadata())?s:s.getColumnCount()!==c.getColumnCount()&&s.getErrorCorrectionLevel()!==c.getErrorCorrectionLevel()&&s.getRowCount()!==c.getRowCount()?null:s},o.getRowIndicatorColumn=function(t,i,s,c,h,v){for(var M=new k(i,c),O=0;O<2;O++)for(var N=0===O?1:-1,$=Math.trunc(Math.trunc(s.getX())),q=Math.trunc(Math.trunc(s.getY()));q<=i.getMaxY()&&q>=i.getMinY();q+=N){var de=o.detectCodeword(t,0,t.getWidth(),c,$,q,h,v);null!=de&&(M.setCodeword(q,de),$=c?de.getStartX():de.getEndX())}return M},o.adjustCodewordCount=function(t,i){var s=i[0][1],c=s.getValue(),h=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-o.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===c.length){if(h<1||h>Pi.MAX_CODEWORDS_IN_BARCODE)throw Se.getNotFoundInstance();s.setValue(h)}else c[0]!==h&&s.setValue(h)},o.createDecoderResult=function(t){var i=o.createBarcodeMatrix(t);o.adjustCodewordCount(t,i);for(var s=new Array,c=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),h=[],v=new Array,M=0;M0;){for(var O=0;O=0){if(zt>=v.length)continue;v[zt][N].setValue(vt.getValue())}}}}catch($t){c={error:$t}}finally{try{et&&!et.done&&(h=we.return)&&h.call(we)}finally{if(c)throw c.error}}N++}}catch($t){i={error:$t}}finally{try{q&&!q.done&&(s=$.return)&&s.call($)}finally{if(i)throw i.error}}return v},o.isValidBarcodeColumn=function(t,i){return i>=0&&i<=t.getBarcodeColumnCount()+1},o.getStartColumn=function(t,i,s,c){var h,v,M=c?1:-1,O=null;if(o.isValidBarcodeColumn(t,i-M)&&(O=t.getDetectionResultColumn(i-M).getCodeword(s)),null!=O)return c?O.getEndX():O.getStartX();if(null!=(O=t.getDetectionResultColumn(i).getCodewordNearby(s)))return c?O.getStartX():O.getEndX();if(o.isValidBarcodeColumn(t,i-M)&&(O=t.getDetectionResultColumn(i-M).getCodewordNearby(s)),null!=O)return c?O.getEndX():O.getStartX();for(var N=0;o.isValidBarcodeColumn(t,i-M);){i-=M;try{for(var $=(h=void 0,mc(t.getDetectionResultColumn(i).getCodewords())),q=$.next();!q.done;q=$.next()){var de=q.value;if(null!=de)return(c?de.getEndX():de.getStartX())+M*N*(de.getEndX()-de.getStartX())}}catch(we){h={error:we}}finally{try{q&&!q.done&&(v=$.return)&&v.call($)}finally{if(h)throw h.error}}N++}return c?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()},o.detectCodeword=function(t,i,s,c,h,v,M,O){h=o.adjustCodewordStartColumn(t,i,s,c,h,v);var N=o.getModuleBitCount(t,i,s,c,h,v);if(null==N)return null;var $,q=_i.sum(N);if(c)$=h+q;else{for(var de=0;de=i)&&N=i:Mo.CODEWORD_SKEW_SIZE)return h;M+=O}O=-O,c=!c}return M},o.checkCodewordSkew=function(t,i,s){return i-o.CODEWORD_SKEW_SIZE<=t&&t<=s+o.CODEWORD_SKEW_SIZE},o.decodeCodewords=function(t,i,s){if(0===t.length)throw bt.getFormatInstance();var c=1<s/2+o.MAX_ERRORS||s<0||s>o.MAX_EC_CODEWORDS)throw St.getChecksumInstance();return o.errorCorrection.decode(t,s,i)},o.verifyCodewordCount=function(t,i){if(t.length<4)throw bt.getFormatInstance();var s=t[0];if(s>t.length)throw bt.getFormatInstance();if(0===s){if(!(i>=1;return i},o.getCodewordBucketNumber=function(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)},o.getCodewordBucketNumber_number=function(t){return o.getCodewordBucketNumber(o.getBitCountForCodeword(t))},o.getCodewordBucketNumber_Int32Array=function(t){return(t[0]-t[2]+t[4]-t[6]+9)%9},o.toString=function(t){for(var i=new Eo,s=0;s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(M.getPoints()),N=O.next();!N.done;N=O.next()){var $=N.value,q=_l.decode(M.getBits(),$[4],$[5],$[6],$[7],o.getMinCodewordWidth($),o.getMaxCodewordWidth($)),de=new We(q.getText(),q.getRawBytes(),void 0,$,be.PDF_417);de.putMetadata(He.ERROR_CORRECTION_LEVEL,q.getECLevel());var we=q.getOther();null!=we&&de.putMetadata(He.PDF417_EXTRA_METADATA,we),v.push(de)}}catch(et){c={error:et}}finally{try{N&&!N.done&&(h=O.return)&&h.call(O)}finally{if(c)throw c.error}}return v.map(function(et){return et})},o.getMaxWidth=function(t,i){return null==t||null==i?0:Math.trunc(Math.abs(t.getX()-i.getX()))},o.getMinWidth=function(t,i){return null==t||null==i?Ee.MAX_VALUE:Math.trunc(Math.abs(t.getX()-i.getX()))},o.getMaxCodewordWidth=function(t){return Math.floor(Math.max(Math.max(o.getMaxWidth(t[0],t[4]),o.getMaxWidth(t[6],t[2])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN),Math.max(o.getMaxWidth(t[1],t[5]),o.getMaxWidth(t[7],t[3])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN)))},o.getMinCodewordWidth=function(t){return Math.floor(Math.min(Math.min(o.getMinWidth(t[0],t[4]),o.getMinWidth(t[6],t[2])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN),Math.min(o.getMinWidth(t[1],t[5]),o.getMinWidth(t[7],t[3])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN)))},o.prototype.reset=function(){},o}();const Pa=nu;var ao=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Zc=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return ao(t,o),t.kind="ReaderException",t}(te);const Go=Zc;var Kd=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},zc=function(){function o(){}return o.prototype.decode=function(t,i){return this.setHints(i),this.decodeInternal(t)},o.prototype.decodeWithState=function(t){return null==this.readers&&this.setHints(null),this.decodeInternal(t)},o.prototype.setHints=function(t){this.hints=t;var i=null!=t&&void 0!==t.get(he.TRY_HARDER),s=null==t?null:t.get(he.POSSIBLE_FORMATS),c=new Array;if(null!=s){var h=s.some(function(v){return v===be.UPC_A||v===be.UPC_E||v===be.EAN_13||v===be.EAN_8||v===be.CODABAR||v===be.CODE_39||v===be.CODE_93||v===be.CODE_128||v===be.ITF||v===be.RSS_14||v===be.RSS_EXPANDED});h&&!i&&c.push(new yi(t)),s.includes(be.QR_CODE)&&c.push(new js),s.includes(be.DATA_MATRIX)&&c.push(new cc),s.includes(be.AZTEC)&&c.push(new Vo),s.includes(be.PDF_417)&&c.push(new Pa),h&&i&&c.push(new yi(t))}0===c.length&&(i||c.push(new yi(t)),c.push(new js),c.push(new cc),c.push(new Vo),c.push(new Pa),i&&c.push(new yi(t))),this.readers=c},o.prototype.reset=function(){var t,i;if(null!==this.readers)try{for(var s=Kd(this.readers),c=s.next();!c.done;c=s.next())c.value.reset()}catch(v){t={error:v}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}},o.prototype.decodeInternal=function(t){var i,s;if(null===this.readers)throw new Go("No readers where selected, nothing can be read.");try{for(var c=Kd(this.readers),h=c.next();!h.done;h=c.next()){var v=h.value;try{return v.decode(t,this.hints)}catch(M){if(M instanceof Go)continue}}}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}throw new Se("No MultiFormat Readers were able to detect the code.")},o}();const Jd=zc;var nl=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),qd=(function(o){function t(i,s){void 0===i&&(i=null),void 0===s&&(s=500);var h=new Jd;return h.setHints(i),o.call(this,h,s)||this}nl(t,o),t.prototype.decodeBitmap=function(i){return this.reader.decodeWithState(i)}}(Pe),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),Oc=(function(o){qd(function t(i){return void 0===i&&(i=500),o.call(this,new Pa,i)||this},o)}(Pe),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),iu=(function(o){Oc(function t(i){return void 0===i&&(i=500),o.call(this,new js,i)||this},o)}(Pe),function(o){return o[o.ERROR_CORRECTION=0]="ERROR_CORRECTION",o[o.CHARACTER_SET=1]="CHARACTER_SET",o[o.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",o[o.DATA_MATRIX_COMPACT=3]="DATA_MATRIX_COMPACT",o[o.MIN_SIZE=4]="MIN_SIZE",o[o.MAX_SIZE=5]="MAX_SIZE",o[o.MARGIN=6]="MARGIN",o[o.PDF417_COMPACT=7]="PDF417_COMPACT",o[o.PDF417_COMPACTION=8]="PDF417_COMPACTION",o[o.PDF417_DIMENSIONS=9]="PDF417_DIMENSIONS",o[o.AZTEC_LAYERS=10]="AZTEC_LAYERS",o[o.QR_VERSION=11]="QR_VERSION",o[o.GS1_FORMAT=12]="GS1_FORMAT",o[o.FORCE_C40=13]="FORCE_C40",o}(iu||{}));const pi=iu;var Wc=function(){function o(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new Mt(t,Int32Array.from([1])))}return o.prototype.buildGenerator=function(t){var i=this.cachedGenerators;if(t>=i.length)for(var s=i[i.length-1],c=this.field,h=i.length;h<=t;h++){var v=s.multiply(new Mt(c,Int32Array.from([1,c.exp(h-1+c.getGeneratorBase())])));i.push(v),s=v}return i[t]},o.prototype.encode=function(t,i){if(0===i)throw new Ge("No error correction bytes");var s=t.length-i;if(s<=0)throw new Ge("No data bytes provided");var c=this.buildGenerator(i),h=new Int32Array(s);Jt.arraycopy(t,0,h,0,s);for(var v=new Mt(this.field,h),O=(v=v.multiplyByMonomial(i,1)).divide(c)[1].getCoefficients(),N=i-O.length,$=0;$=5&&(s+=o.N1+(O-5)),O=1,N=q)}O>=5&&(s+=o.N1+(O-5))}return s},o.N1=3,o.N2=3,o.N3=40,o.N4=10,o}();const No=Mc;var Ye=function(){function o(t,i){this.width=t,this.height=i;for(var s=new Array(i),c=0;c!==i;c++)s[c]=new Uint8Array(t);this.bytes=s}return o.prototype.getHeight=function(){return this.height},o.prototype.getWidth=function(){return this.width},o.prototype.get=function(t,i){return this.bytes[i][t]},o.prototype.getArray=function(){return this.bytes},o.prototype.setNumber=function(t,i,s){this.bytes[i][t]=s},o.prototype.setBoolean=function(t,i,s){this.bytes[i][t]=s?1:0},o.prototype.clear=function(t){var i,s;try{for(var c=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.bytes),h=c.next();!h.done;h=c.next())at.fill(h.value,t)}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},o.prototype.equals=function(t){if(!(t instanceof o))return!1;var i=t;if(this.width!==i.width||this.height!==i.height)return!1;for(var s=0,c=this.height;s>\n"),t.toString()},o.prototype.setMode=function(t){this.mode=t},o.prototype.setECLevel=function(t){this.ecLevel=t},o.prototype.setVersion=function(t){this.version=t},o.prototype.setMaskPattern=function(t){this.maskPattern=t},o.prototype.setMatrix=function(t){this.matrix=t},o.isValidMaskPattern=function(t){return t>=0&&t0;){for(6===v&&(v-=1);M>=0&&M=s;)t^=i<=0)for(var O=0;O!==v;O++){var N=c[O];N>=0&&o.isEmpty(i.get(N,M))&&o.embedPositionAdjustmentPattern(N-2,M-2,i)}}},o.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),o.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),o.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),o.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),o.VERSION_INFO_POLY=7973,o.TYPE_INFO_POLY=1335,o.TYPE_INFO_MASK_PATTERN=21522,o}();const Ci=hi;var Hi=function(){function o(t,i){this.dataBytes=t,this.errorCorrectionBytes=i}return o.prototype.getDataBytes=function(){return this.dataBytes},o.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},o}();const Wr=Hi;var Ns=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Na=function(){function o(){}return o.calculateMaskPenalty=function(t){return No.applyMaskPenaltyRule1(t)+No.applyMaskPenaltyRule2(t)+No.applyMaskPenaltyRule3(t)+No.applyMaskPenaltyRule4(t)},o.encode=function(t,i,s){void 0===s&&(s=null);var c=o.DEFAULT_BYTE_MODE_ENCODING,h=null!==s&&void 0!==s.get(pi.CHARACTER_SET);h&&(c=s.get(pi.CHARACTER_SET).toString());var v=this.chooseMode(t,c),M=new me;if(v===xe.BYTE&&(h||o.DEFAULT_BYTE_MODE_ENCODING!==c)){var O=Dn.getCharacterSetECIByName(c);void 0!==O&&this.appendECI(O,M)}this.appendModeInfo(v,M);var $,N=new me;if(this.appendBytes(t,v,N,c),null!==s&&void 0!==s.get(pi.QR_VERSION)){var q=Number.parseInt(s.get(pi.QR_VERSION).toString(),10);$=Ls.getVersionForNumber(q);var de=this.calculateBitsNeeded(v,M,N,$);if(!this.willFit(de,$,i))throw new Hn("Data too big for requested version")}else $=this.recommendVersion(i,v,M,N);var we=new me;we.appendBitArray(M);var et=v===xe.BYTE?N.getSizeInBytes():t.length;this.appendLengthInfo(et,$,v,we),we.appendBitArray(N);var vt=$.getECBlocksForLevel(i),zt=$.getTotalCodewords()-vt.getTotalECCodewords();this.terminateBits(zt,we);var $t=this.interleaveWithECBytes(we,$.getTotalCodewords(),zt,vt.getNumBlocks()),Gt=new sn;Gt.setECLevel(i),Gt.setMode(v),Gt.setVersion($);var an=$.getDimensionForVersion(),bn=new it(an,an),Nn=this.chooseMaskPattern($t,i,$,bn);return Gt.setMaskPattern(Nn),Ci.buildMatrix($t,i,$,Nn,bn),Gt.setMatrix(bn),Gt},o.recommendVersion=function(t,i,s,c){var h=this.calculateBitsNeeded(i,s,c,Ls.getVersionForNumber(1)),v=this.chooseVersion(h,t),M=this.calculateBitsNeeded(i,s,c,v);return this.chooseVersion(M,t)},o.calculateBitsNeeded=function(t,i,s,c){return i.getSize()+t.getCharacterCountBits(c)+s.getSize()},o.getAlphanumericCode=function(t){return t159)&&(h<224||h>235))return!1}return!0},o.chooseMaskPattern=function(t,i,s,c){for(var h=Number.MAX_SAFE_INTEGER,v=-1,M=0;M=(t+7)/8},o.terminateBits=function(t,i){var s=8*t;if(i.getSize()>s)throw new Hn("data bits cannot fit in the QR Code"+i.getSize()+" > "+s);for(var c=0;c<4&&i.getSize()0)for(c=h;c<8;c++)i.appendBit(!1);var v=t-i.getSizeInBytes();for(c=0;c=s)throw new Hn("Block ID too large");var M=t%s,O=s-M,N=Math.floor(t/s),$=N+1,q=Math.floor(i/s),de=q+1,we=N-q,et=$-de;if(we!==et)throw new Hn("EC bytes mismatch");if(s!==O+M)throw new Hn("RS blocks mismatch");if(t!==(q+we)*O+(de+et)*M)throw new Hn("Total bytes mismatch");c=1<=0&&i<=9},o.appendNumericBytes=function(t,i){for(var s=t.length,c=0;c=33088&&O<=40956?N=O-33088:O>=57408&&O<=60351&&(N=O-49472),-1===N)throw new Hn("Invalid byte sequence");i.appendBits(192*(N>>8)+(255&N),13)}},o.appendECI=function(t,i){i.appendBits(xe.ECI.getBits(),4),i.appendBits(t.getValue(),8)},o.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),o.DEFAULT_BYTE_MODE_ENCODING=Dn.UTF8.getName(),o}();const Fl=Na;!function(){function o(){}o.prototype.write=function(t,i,s,c){if(void 0===c&&(c=null),0===t.length)throw new Ge("Found empty contents");if(i<0||s<0)throw new Ge("Requested dimensions are too small: "+i+"x"+s);var h=aa.L,v=o.QUIET_ZONE_SIZE;null!==c&&(void 0!==c.get(pi.ERROR_CORRECTION)&&(h=aa.fromString(c.get(pi.ERROR_CORRECTION).toString())),void 0!==c.get(pi.MARGIN)&&(v=Number.parseInt(c.get(pi.MARGIN).toString(),10)));var M=Fl.encode(t,h,c);return this.renderResult(M,i,s,v)},o.prototype.writeToDom=function(t,i,s,c,h){void 0===h&&(h=null),"string"==typeof t&&(t=document.querySelector(t));var v=this.write(i,s,c,h);t&&t.appendChild(v)},o.prototype.renderResult=function(t,i,s,c){var h=t.getMatrix();if(null===h)throw new ki;for(var v=h.getWidth(),M=h.getHeight(),O=v+2*c,N=M+2*c,$=Math.max(i,O),q=Math.max(s,N),de=Math.min(Math.floor($/O),Math.floor(q/N)),we=Math.floor(($-v*de)/2),et=Math.floor((q-M*de)/2),vt=this.createSVGElement($,q),zt=0,$t=et;zts||v+O>c)throw new Ge("Crop rectangle does not fit within image data.");return N&&$.reverseHorizontal(M,O),$}Qd(t,o),t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth();return(null==s||s.length>16&255)+(we>>7&510)+(255&we))/4&255}N.luminances=q}else N.luminances=i;if(void 0===h&&(N.dataWidth=s),void 0===v&&(N.dataHeight=c),void 0===M&&(N.left=0),void 0===O&&(N.top=0),N.left+s>N.dataWidth||N.top+c>N.dataHeight)throw new Ge("Crop rectangle does not fit within image data.");return N}cs(t,o),t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth();return(null==s||s.length=0&&this.noBit(s,i)&&this.utah(i,s,t++),i-=2,s+=2}while(i>=0&&s=0&&s=0);i+=3,s++}while(i=256&&(i^=301);return{LOG:o,ALOG:t}}([],[]),F.LOG),Dt=F.ALOG,ru="[)>\x1e05\x1d",ou="[)>\x1e06\x1d",Qh=function(){function o(){}return o.encodeECC200=function(t,i){if(t.length!==i.getDataCapacity())throw new Error("The number of codewords does not match the selected symbol");var s=new Ce;s.append(t);var c=i.getInterleavedBlockCount();if(1===c){var h=this.createECCBlock(t,i.getErrorCodewords());s.append(h)}else{for(var v=[],M=[],O=0;O0;O--)v[O]=0!==M&&0!==h[O]?v[O-1]^Dt[(ye[M]+ye[h[O]])%255]:v[O-1];v[0]=0!==M&&0!==h[0]?Dt[(ye[M]+ye[h[0]])%255]:0}var N=[];for(c=0;c=2)t.writeCodeword(this.encodeASCIIDigits(t.getMessage().charCodeAt(t.pos),t.getMessage().charCodeAt(t.pos+1))),t.pos+=2;else{var s=t.getCurrentChar(),c=Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(c!==this.getEncodingMode())switch(c){case 5:return t.writeCodeword(231),void t.signalEncoderChange(5);case 1:return t.writeCodeword(230),void t.signalEncoderChange(1);case 3:t.writeCodeword(238),t.signalEncoderChange(3);break;case 2:t.writeCodeword(239),t.signalEncoderChange(2);break;case 4:t.writeCodeword(240),t.signalEncoderChange(4);break;default:throw new Error("Illegal mode: "+c)}else Mr.isExtendedASCII(s)?(t.writeCodeword(235),t.writeCodeword(s-128+1),t.pos++):(t.writeCodeword(s+1),t.pos++)}},o.prototype.encodeASCIIDigits=function(t,i){if(Mr.isDigit(t)&&Mr.isDigit(i))return 10*(t-48)+(i-48)+130;throw new Error("not digits: "+t+i)},o}(),gh=function(){function o(){}return o.prototype.getEncodingMode=function(){return 5},o.prototype.encode=function(t){var i=new Ce;for(i.append(0);t.hasMoreCharacters();){var s=t.getCurrentChar();if(i.append(s),t.pos++,Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}var h=i.length()-1,M=t.getCodewordCount()+h+1;t.updateSymbolInfo(M);var O=t.getSymbolInfo().getDataCapacity()-M>0;if(t.hasMoreCharacters()||O)if(h<=249)i.setCharAt(0,ct.getCharAt(h));else{if(!(h<=1555))throw new Error("Message length not in valid ranges: "+h);i.setCharAt(0,ct.getCharAt(Math.floor(h/250)+249)),i.insert(1,ct.getCharAt(h%250))}var N=0;for(s=i.length();N3||1!==N))&&(t.pos=c)}i.length()>0&&t.writeCodeword(230),this.handleEOD(t,i)},o.prototype.encode=function(t){for(var i=new Ce;t.hasMoreCharacters();){var s=t.getCurrentChar();t.pos++;var c=this.encodeChar(s,i),h=2*Math.floor(i.length()/3),v=t.getCodewordCount()+h;t.updateSymbolInfo(v);var M=t.getSymbolInfo().getDataCapacity()-v;if(!t.hasMoreCharacters()){var O=new Ce;for(i.length()%3==2&&2!==M&&(c=this.backtrackOneCharacter(t,i,O,c));i.length()%3==1&&(c>3||1!==M);)c=this.backtrackOneCharacter(t,i,O,c);break}if(i.length()%3==0&&Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}this.handleEOD(t,i)},o.prototype.backtrackOneCharacter=function(t,i,s,c){var h=i.length(),v=i.toString().substring(0,h-c);i.setLengthToZero(),i.append(v),t.pos--;var M=t.getCurrentChar();return c=this.encodeChar(M,s),t.resetSymbolInfo(),c},o.prototype.writeNextTriplet=function(t,i){t.writeCodewords(this.encodeToCodewords(i.toString()));var s=i.toString().substring(3);i.setLengthToZero(),i.append(s)},o.prototype.handleEOD=function(t,i){var s=Math.floor(i.length()/3*2),c=i.length()%3,h=t.getCodewordCount()+s;t.updateSymbolInfo(h);var v=t.getSymbolInfo().getDataCapacity()-h;if(2===c){for(i.append("\0");i.length()>=3;)this.writeNextTriplet(t,i);t.hasMoreCharacters()&&t.writeCodeword(254)}else if(1===v&&1===c){for(;i.length()>=3;)this.writeNextTriplet(t,i);t.hasMoreCharacters()&&t.writeCodeword(254),t.pos--}else{if(0!==c)throw new Error("Unexpected case. Please report!");for(;i.length()>=3;)this.writeNextTriplet(t,i);(v>0||t.hasMoreCharacters())&&t.writeCodeword(254)}t.signalEncoderChange(0)},o.prototype.encodeChar=function(t,i){return t===" ".charCodeAt(0)?(i.append(3),1):t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)?(i.append(t-48+4),1):t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)?(i.append(t-65+14),1):t<" ".charCodeAt(0)?(i.append(0),i.append(t),2):t<="/".charCodeAt(0)?(i.append(1),i.append(t-33),2):t<="@".charCodeAt(0)?(i.append(1),i.append(t-58+15),2):t<="_".charCodeAt(0)?(i.append(1),i.append(t-91+22),2):t<=127?(i.append(2),i.append(t-96),2):(i.append("1\x1e"),2+this.encodeChar(t-128,i))},o.prototype.encodeToCodewords=function(t){var i=1600*t.charCodeAt(0)+40*t.charCodeAt(1)+t.charCodeAt(2)+1,s=i/256,c=i%256,h=new Ce;return h.append(s),h.append(c),h.toString()},o}(),vh=function(){function o(){}return o.prototype.getEncodingMode=function(){return 4},o.prototype.encode=function(t){for(var i=new Ce;t.hasMoreCharacters();){var s=t.getCurrentChar();if(this.encodeChar(s,i),t.pos++,i.length()>=4){t.writeCodewords(this.encodeToCodewords(i.toString()));var h=i.toString().substring(4);if(i.setLengthToZero(),i.append(h),Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}}i.append(ct.getCharAt(31)),this.handleEOD(t,i)},o.prototype.handleEOD=function(t,i){try{var s=i.length();if(0===s)return;if(1===s){t.updateSymbolInfo();var c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount(),h=t.getRemainingCharacters();if(h>c&&(t.updateSymbolInfo(t.getCodewordCount()+1),c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount()),h<=c&&c<=2)return}if(s>4)throw new Error("Count must not exceed 4");var v=s-1,M=this.encodeToCodewords(i.toString()),N=!t.hasMoreCharacters()&&v<=2;v<=2&&(t.updateSymbolInfo(t.getCodewordCount()+v),(c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount())>=3&&(N=!1,t.updateSymbolInfo(t.getCodewordCount()+M.length))),N?(t.resetSymbolInfo(),t.pos-=v):t.writeCodewords(M)}finally{t.signalEncoderChange(0)}},o.prototype.encodeChar=function(t,i){t>=" ".charCodeAt(0)&&t<="?".charCodeAt(0)?i.append(t):t>="@".charCodeAt(0)&&t<="^".charCodeAt(0)?i.append(ct.getCharAt(t-64)):Mr.illegalCharacter(ct.getCharAt(t))},o.prototype.encodeToCodewords=function(t){var i=t.length;if(0===i)throw new Error("StringBuilder must not be empty");var M=(t.charAt(0).charCodeAt(0)<<18)+((i>=2?t.charAt(1).charCodeAt(0):0)<<12)+((i>=3?t.charAt(2).charCodeAt(0):0)<<6)+(i>=4?t.charAt(3).charCodeAt(0):0),O=M>>16&255,N=M>>8&255,$=255&M,q=new Ce;return q.append(O),i>=2&&q.append(N),i>=3&&q.append($),q.toString()},o}(),tf=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),eo=function(){function o(t,i,s,c,h,v,M,O){void 0===M&&(M=0),void 0===O&&(O=0),this.rectangular=t,this.dataCapacity=i,this.errorCodewords=s,this.matrixWidth=c,this.matrixHeight=h,this.dataRegions=v,this.rsBlockData=M,this.rsBlockError=O}return o.lookup=function(t,i,s,c,h){var v,M;void 0===i&&(i=0),void 0===s&&(s=null),void 0===c&&(c=null),void 0===h&&(h=!0);try{for(var O=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Bl),N=O.next();!N.done;N=O.next()){var $=N.value;if((1!==i||!$.rectangular)&&(2!==i||$.rectangular)&&(null==s||!($.getSymbolWidth()c.getWidth()||$.getSymbolHeight()>c.getHeight()))&&t<=$.dataCapacity)return $}}catch(q){v={error:q}}finally{try{N&&!N.done&&(M=O.return)&&M.call(O)}finally{if(v)throw v.error}}if(h)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+t);return null},o.prototype.getHorizontalDataRegions=function(){switch(this.dataRegions){case 1:return 1;case 2:case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},o.prototype.getVerticalDataRegions=function(){switch(this.dataRegions){case 1:case 2:return 1;case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},o.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},o.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},o.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+2*this.getHorizontalDataRegions()},o.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+2*this.getVerticalDataRegions()},o.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},o.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},o.prototype.getDataCapacity=function(){return this.dataCapacity},o.prototype.getErrorCodewords=function(){return this.errorCodewords},o.prototype.getDataLengthForInterleavedBlock=function(t){return this.rsBlockData},o.prototype.getErrorLengthForInterleavedBlock=function(t){return this.rsBlockError},o}();const bh=eo;var jf=function(o){function t(){return o.call(this,!1,1558,620,22,22,36,-1,62)||this}return tf(t,o),t.prototype.getInterleavedBlockCount=function(){return 10},t.prototype.getDataLengthForInterleavedBlock=function(i){return i<=8?156:155},t}(eo),Bl=[new eo(!1,3,5,8,8,1),new eo(!1,5,7,10,10,1),new eo(!0,5,7,16,6,1),new eo(!1,8,10,12,12,1),new eo(!0,10,11,14,6,2),new eo(!1,12,12,14,14,1),new eo(!0,16,14,24,10,1),new eo(!1,18,14,16,16,1),new eo(!1,22,18,18,18,1),new eo(!0,22,18,16,10,2),new eo(!1,30,20,20,20,1),new eo(!0,32,24,16,14,2),new eo(!1,36,24,22,22,1),new eo(!1,44,28,24,24,1),new eo(!0,49,28,22,14,2),new eo(!1,62,36,14,14,4),new eo(!1,86,42,16,16,4),new eo(!1,114,48,18,18,4),new eo(!1,144,56,20,20,4),new eo(!1,174,68,22,22,4),new eo(!1,204,84,24,24,4,102,42),new eo(!1,280,112,14,14,16,140,56),new eo(!1,368,144,16,16,16,92,36),new eo(!1,456,192,18,18,16,114,48),new eo(!1,576,224,20,20,16,144,56),new eo(!1,696,272,22,22,16,174,68),new eo(!1,816,336,24,24,16,136,56),new eo(!1,1050,408,18,18,36,175,68),new eo(!1,1304,496,20,20,36,163,62),new jf],Wu=function(){function o(t){this.msg=t,this.pos=0,this.skipAtEnd=0;for(var i=t.split("").map(function(M){return M.charCodeAt(0)}),s=new Ce,c=0,h=i.length;cthis.symbolInfo.getDataCapacity())&&(this.symbolInfo=bh.lookup(t,this.shape,this.minSize,this.maxSize,!0))},o.prototype.resetSymbolInfo=function(){this.symbolInfo=null},o}(),yh=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),$u=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return yh(t,o),t.prototype.getEncodingMode=function(){return 3},t.prototype.encode=function(i){for(var s=new Ce;i.hasMoreCharacters();){var c=i.getCurrentChar();if(i.pos++,this.encodeChar(c,s),s.length()%3==0&&(this.writeNextTriplet(i,s),Mr.lookAheadTest(i.getMessage(),i.pos,this.getEncodingMode())!==this.getEncodingMode())){i.signalEncoderChange(0);break}}this.handleEOD(i,s)},t.prototype.encodeChar=function(i,s){switch(i){case 13:s.append(0);break;case"*".charCodeAt(0):s.append(1);break;case">".charCodeAt(0):s.append(2);break;case" ".charCodeAt(0):s.append(3);break;default:i>="0".charCodeAt(0)&&i<="9".charCodeAt(0)?s.append(i-48+4):i>="A".charCodeAt(0)&&i<="Z".charCodeAt(0)?s.append(i-65+14):Mr.illegalCharacter(ct.getCharAt(i))}return 1},t.prototype.handleEOD=function(i,s){i.updateSymbolInfo();var c=i.getSymbolInfo().getDataCapacity()-i.getCodewordCount(),h=s.length();i.pos-=h,(i.getRemainingCharacters()>1||c>1||i.getRemainingCharacters()!==c)&&i.writeCodeword(254),i.getNewEncoding()<0&&i.signalEncoderChange(0)},t}(au),rl=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),lu=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return rl(t,o),t.prototype.getEncodingMode=function(){return 2},t.prototype.encodeChar=function(i,s){return i===" ".charCodeAt(0)?(s.append(3),1):i>="0".charCodeAt(0)&&i<="9".charCodeAt(0)?(s.append(i-48+4),1):i>="a".charCodeAt(0)&&i<="z".charCodeAt(0)?(s.append(i-97+14),1):i<" ".charCodeAt(0)?(s.append(0),s.append(i),2):i<="/".charCodeAt(0)?(s.append(1),s.append(i-33),2):i<="@".charCodeAt(0)?(s.append(1),s.append(i-58+15),2):i>="[".charCodeAt(0)&&i<="_".charCodeAt(0)?(s.append(1),s.append(i-91+22),2):i==="`".charCodeAt(0)?(s.append(2),s.append(0),2):i<="Z".charCodeAt(0)?(s.append(2),s.append(i-65+1),2):i<=127?(s.append(2),s.append(i-123+27),2):(s.append("1\x1e"),2+this.encodeChar(i-128,s))},t}(au),wh=function(){function o(){}return o.randomize253State=function(t){var s=149*t%253+1+129;return s<=254?s:s-254},o.encodeHighLevel=function(t,i,s,c,h){void 0===i&&(i=0),void 0===s&&(s=null),void 0===c&&(c=null),void 0===h&&(h=!1);var v=new au,M=[new ef,v,new lu,new $u,new vh,new gh],O=new Wu(t);O.setSymbolShape(i),O.setSizeConstraints(s,c),t.startsWith(ru)&&t.endsWith("\x1e\x04")?(O.writeCodeword(236),O.setSkipAtEnd(2),O.pos+=7):t.startsWith(ou)&&t.endsWith("\x1e\x04")&&(O.writeCodeword(237),O.setSkipAtEnd(2),O.pos+=7);var N=0;for(h&&(v.encodeMaximal(O),N=O.getNewEncoding(),O.resetEncoderSignal());O.hasMoreCharacters();)M[N].encode(O),O.getNewEncoding()>=0&&(N=O.getNewEncoding(),O.resetEncoderSignal());var $=O.getCodewordCount();O.updateSymbolInfo();var q=O.getSymbolInfo().getDataCapacity();$=t.length)return s;var c;0===s?c=[0,1,1,1,1,1.25]:(c=[1,2,2,2,2,2.25])[s]=0;for(var h=0,v=new Uint8Array(6),M=[];;){if(i+h===t.length){at.fill(v,0),at.fill(M,0);var O=this.findMinimums(c,M,Ee.MAX_VALUE,v),N=this.getMinimumCount(v);if(M[0]===O)return 0;if(1===N){if(v[5]>0)return 5;if(v[4]>0)return 4;if(v[2]>0)return 2;if(v[3]>0)return 3}return 1}var $=t.charCodeAt(i+h);if(h++,this.isDigit($)?c[0]+=.5:this.isExtendedASCII($)?(c[0]=Math.ceil(c[0]),c[0]+=2):(c[0]=Math.ceil(c[0]),c[0]++),this.isNativeC40($)?c[1]+=2/3:this.isExtendedASCII($)?c[1]+=8/3:c[1]+=4/3,this.isNativeText($)?c[2]+=2/3:this.isExtendedASCII($)?c[2]+=8/3:c[2]+=4/3,this.isNativeX12($)?c[3]+=2/3:this.isExtendedASCII($)?c[3]+=13/3:c[3]+=10/3,this.isNativeEDIFACT($)?c[4]+=3/4:this.isExtendedASCII($)?c[4]+=4.25:c[4]+=3.25,this.isSpecialB256($)?c[5]+=4:c[5]++,h>=4){if(at.fill(v,0),at.fill(M,0),this.findMinimums(c,M,Ee.MAX_VALUE,v),M[0]v&&(s=v,at.fill(c,0)),s===v&&(c[h]=c[h]+1)}return s},o.getMinimumCount=function(t){for(var i=0,s=0;s<6;s++)i+=t[s];return i||0},o.isDigit=function(t){return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)},o.isExtendedASCII=function(t){return t>=128&&t<=255},o.isNativeC40=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},o.isNativeText=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)},o.isNativeX12=function(t){return this.isX12TermSep(t)||t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},o.isX12TermSep=function(t){return 13===t||t==="*".charCodeAt(0)||t===">".charCodeAt(0)},o.isNativeEDIFACT=function(t){return t>=" ".charCodeAt(0)&&t<="^".charCodeAt(0)},o.isSpecialB256=function(t){return!1},o.determineConsecutiveDigitCount=function(t,i){void 0===i&&(i=0);for(var s=t.length,c=i;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ju=function(){function o(t){this.charset=t,this.name=t.name}return o.prototype.canEncode=function(t){try{return null!=Wn.encode(t,this.charset)}catch{return!1}},o}(),rf=function(){function o(t,i,s){var c,h,v,M,O,N;this.ENCODERS=["IBM437","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","windows-1250","windows-1251","windows-1252","windows-1256","Shift_JIS"].map(function(Gi){return new Ju(Fa.forName(Gi))}),this.encoders=[];var $=[];$.push(new Ju(Ou.ISO_8859_1));for(var q=null!=i&&i.name.startsWith("UTF"),de=0;de=this.bytes.length)return!1;for(var s=0;s=this.length())throw new Error(""+t);if(this.isECI(t))throw new Error("value at "+t+" is not a character but an ECI");return this.isFNC1(t)?this.fnc1:this.bytes[t]},o.prototype.subSequence=function(t,i){if(t<0||t>i||i>this.length())throw new Error(""+t);for(var s=new Ce,c=t;c=this.length())throw new Error(""+t);return this.bytes[t]>255&&this.bytes[t]<=999},o.prototype.isFNC1=function(t){if(t<0||t>=this.length())throw new Error(""+t);return 1e3===this.bytes[t]},o.prototype.getECIValue=function(t){if(t<0||t>=this.length())throw new Error(""+t);if(!this.isECI(t))throw new Error("value at "+t+" is not an ECI but a character");return this.bytes[t]-256},o.prototype.addEdge=function(t,i,s){(null==t[i][s.encoderIndex]||t[i][s.encoderIndex].cachedTotalSize>s.cachedTotalSize)&&(t[i][s.encoderIndex]=s)},o.prototype.addEdges=function(t,i,s,c,h,v){var M=t.charAt(c).charCodeAt(0),O=0,N=i.length();i.getPriorityEncoderIndex()>=0&&(M===v||i.canEncode(M,i.getPriorityEncoderIndex()))&&(N=(O=i.getPriorityEncoderIndex())+1);for(var $=O;$=0;v--)q.unshift(255&we[v])}(null===de.previous?0:de.previous.encoderIndex)!==de.encoderIndex&&q.unshift(256+i.getECIValue(de.encoderIndex)),de=de.previous}var vt=[];for(v=0;v=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xh=function(o,t){var i="function"==typeof Symbol&&o[Symbol.iterator];if(!i)return o;var c,v,s=i.call(o),h=[];try{for(;(void 0===t||t-- >0)&&!(c=s.next()).done;)h.push(c.value)}catch(M){v={error:M}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(v)throw v.error}}return h},si=function(o){return o[o.ASCII=0]="ASCII",o[o.C40=1]="C40",o[o.TEXT=2]="TEXT",o[o.X12=3]="X12",o[o.EDF=4]="EDF",o[o.B256=5]="B256",o}(si||{}),du=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],Hl=function(){function o(){}return o.isExtendedASCII=function(t,i){return t!==i&&t>=128&&t<=255},o.isInC40Shift1Set=function(t){return t<=31},o.isInC40Shift2Set=function(t,i){var s,c;try{for(var h=cu(du),v=h.next();!v.done;v=h.next())if(v.value.charCodeAt(0)===t)return!0}catch(O){s={error:O}}finally{try{v&&!v.done&&(c=h.return)&&c.call(h)}finally{if(s)throw s.error}}return t===i},o.isInTextShift1Set=function(t){return this.isInC40Shift1Set(t)},o.isInTextShift2Set=function(t,i){return this.isInC40Shift2Set(t,i)},o.encodeHighLevel=function(t,i,s,c){void 0===i&&(i=null),void 0===s&&(s=-1),void 0===c&&(c=0);var h=0;return t.startsWith(ru)&&t.endsWith("\x1e\x04")?(h=5,t=t.substring(7,t.length-2)):t.startsWith(ou)&&t.endsWith("\x1e\x04")&&(h=6,t=t.substring(7,t.length-2)),decodeURIComponent(escape(String.fromCharCode.apply(String,function(){for(var o=[],t=0;ti.cachedTotalSize)&&(t[s][i.getEndMode()]=i)},o.getNumberOfC40Words=function(t,i,s,c){for(var h=0,v=i;v=128&&(s&&Mr.isNativeC40(O-128)||!s&&Mr.isNativeText(O-128))?h+=3:h+=4}else h+=2;if(h%3==0||(h-2)%3==0&&v+1===t.length())return c[0]=v-i+1,Math.ceil(h/3)}return c[0]=0,0},o.addEdges=function(t,i,s,c){var h,v;if(t.isECI(s))this.addEdge(i,new nc(t,si.ASCII,s,1,c));else{var we,M=t.charAt(s);if(null===c||c.getEndMode()!==si.EDF){Mr.isDigit(M)&&t.haveNCharacters(s,2)&&Mr.isDigit(t.charAt(s+1))?this.addEdge(i,new nc(t,si.ASCII,s,2,c)):this.addEdge(i,new nc(t,si.ASCII,s,1,c));var O=[si.C40,si.TEXT];try{for(var N=cu(O),$=N.next();!$.done;$=N.next()){var q=$.value,de=[];o.getNumberOfC40Words(t,s,q===si.C40,de)>0&&this.addEdge(i,new nc(t,q,s,de[0],c))}}catch(vt){h={error:vt}}finally{try{$&&!$.done&&(v=N.return)&&v.call(N)}finally{if(h)throw h.error}}t.haveNCharacters(s,3)&&Mr.isNativeX12(t.charAt(s))&&Mr.isNativeX12(t.charAt(s+1))&&Mr.isNativeX12(t.charAt(s+2))&&this.addEdge(i,new nc(t,si.X12,s,3,c)),this.addEdge(i,new nc(t,si.B256,s,1,c))}for(we=0;we<3;we++){var et=s+we;if(!t.haveNCharacters(et,1)||!Mr.isNativeEDIFACT(t.charAt(et)))break;this.addEdge(i,new nc(t,si.EDF,s,we+1,c))}3===we&&t.haveNCharacters(s,4)&&Mr.isNativeEDIFACT(t.charAt(s+3))&&this.addEdge(i,new nc(t,si.EDF,s,4,c))}},o.encodeMinimally=function(t){var i=t.length(),s=Array(i+1).fill(null).map(function(){return Array(6).fill(0)});this.addEdges(t,s,0,null);for(var c=1;c<=i;c++){for(var h=0;h<6;h++)null!==s[c][h]&&c=1&&h<=3?O.cachedTotalSize+1:O.cachedTotalSize;N0&&(s+=this.prepend(nc.getBytes(232),c));for(var O=0;O=0;s--)i.unshift(t[s]);return t.length},o.prototype.randomize253State=function(t){var s=149*t%253+1+129;return s<=254?s:s-254},o.prototype.applyRandomPattern=function(t,i,s){for(var c=0;c0&&this.getCodewordsRemaining(this.cachedTotalSize+t)<=2-t)return si.ASCII}if(this.mode===si.C40||this.mode===si.TEXT||this.mode===si.X12){if(this.fromPosition+this.characterLength>=this.input.length()&&0===this.getCodewordsRemaining(this.cachedTotalSize))return si.ASCII;var t;if(1===(t=this.getLastASCII())&&0===this.getCodewordsRemaining(this.cachedTotalSize+1))return si.ASCII}return this.mode},o.prototype.getMode=function(){return this.mode},o.prototype.getLastASCII=function(){var t=this.input.length(),i=this.fromPosition+this.characterLength;return t-i>4||i>=t?0:t-i==1?Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())?0:1:t-i==2?Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())||Hl.isExtendedASCII(this.input.charAt(i+1),this.input.getFNC1Character())?0:Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))?1:2:t-i==3?Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))&&!Hl.isExtendedASCII(this.input.charAt(i+2),this.input.getFNC1Character())||Mr.isDigit(this.input.charAt(i+1))&&Mr.isDigit(this.input.charAt(i+2))&&!Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())?2:0:Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))&&Mr.isDigit(this.input.charAt(i+2))&&Mr.isDigit(this.input.charAt(i+3))?2:0},o.prototype.getMinSymbolSize=function(t){var i,s,c,h,v,M;switch(this.input.getShapeHint()){case 1:try{for(var O=cu(this.squareCodewordCapacities),N=O.next();!N.done;N=O.next())if(($=N.value)>=t)return $}catch(vt){i={error:vt}}finally{try{N&&!N.done&&(s=O.return)&&s.call(O)}finally{if(i)throw i.error}}break;case 2:try{for(var q=cu(this.rectangularCodewordCapacities),de=q.next();!de.done;de=q.next())if(($=de.value)>=t)return $}catch(vt){c={error:vt}}finally{try{de&&!de.done&&(h=q.return)&&h.call(q)}finally{if(c)throw c.error}}}try{for(var we=cu(this.allCodewordCapacities),et=we.next();!et.done;et=we.next()){var $;if(($=et.value)>=t)return $}}catch(vt){v={error:vt}}finally{try{et&&!et.done&&(M=we.return)&&M.call(we)}finally{if(v)throw v.error}}return this.allCodewordCapacities[this.allCodewordCapacities.length-1]},o.prototype.getCodewordsRemaining=function(t){return this.getMinSymbolSize(t)-t},o.getBytes=function(t,i){var s=new Uint8Array(i?2:1);return s[0]=t,i&&(s[1]=i),s},o.prototype.setC40Word=function(t,i,s,c,h){var v=1600*(255&s)+40*(255&c)+(255&h)+1;t[i]=v/256,t[i+1]=v%256},o.prototype.getX12Value=function(t){return 13===t?0:42===t?1:62===t?2:32===t?3:t>=48&&t<=57?t-44:t>=65&&t<=90?t-51:t},o.prototype.getX12Words=function(){if(this.characterLength%3!=0)throw new Error("X12 words must be a multiple of 3");for(var t=new Uint8Array(this.characterLength/3*2),i=0;i=33&&s<=47?s-33:s>=48&&s<=57?s-44:s>=58&&s<=64?s-43:s>=65&&s<=90?s-64:s>=91&&s<=95?s-69:96===s?0:s>=97&&s<=122?s-83:s>=123&&s<=127?s-96:s},o.prototype.getC40Words=function(t,i){for(var s=[],c=0;c>16&255,i[h+1]=O>>8&255,i[h+2]=255&O}return i},o.prototype.getLatchBytes=function(){switch(this.getPreviousMode()){case si.ASCII:case si.B256:switch(this.mode){case si.B256:return o.getBytes(231);case si.C40:return o.getBytes(230);case si.TEXT:return o.getBytes(239);case si.X12:return o.getBytes(238);case si.EDF:return o.getBytes(240)}break;case si.C40:case si.TEXT:case si.X12:if(this.mode!==this.getPreviousMode())switch(this.mode){case si.ASCII:return o.getBytes(254);case si.B256:return o.getBytes(254,231);case si.C40:return o.getBytes(254,230);case si.TEXT:return o.getBytes(254,239);case si.X12:return o.getBytes(254,238);case si.EDF:return o.getBytes(254,240)}break;case si.EDF:if(this.mode!==si.EDF)throw new Error("Cannot switch from EDF to "+this.mode)}return new Uint8Array(0)},o.prototype.getDataBytes=function(){switch(this.mode){case si.ASCII:return this.input.isECI(this.fromPosition)?o.getBytes(241,this.input.getECIValue(this.fromPosition)+1):Hl.isExtendedASCII(this.input.charAt(this.fromPosition),this.input.getFNC1Character())?o.getBytes(235,this.input.charAt(this.fromPosition)-127):2===this.characterLength?o.getBytes(10*this.input.charAt(this.fromPosition)+this.input.charAt(this.fromPosition+1)+130):this.input.isFNC1(this.fromPosition)?o.getBytes(232):o.getBytes(this.input.charAt(this.fromPosition)+1);case si.B256:return o.getBytes(this.input.charAt(this.fromPosition));case si.C40:return this.getC40Words(!0,this.input.getFNC1Character());case si.TEXT:return this.getC40Words(!1,this.input.getFNC1Character());case si.X12:return this.getX12Words();case si.EDF:return this.getEDFBytes()}},o}(),Ch=function(o){function t(i,s,c,h,v){var M=o.call(this,i,s,c)||this;return M.shape=h,M.macroId=v,M}return zf(t,o),t.prototype.getMacroId=function(){return this.macroId},t.prototype.getShapeHint=function(){return this.shape},t}(Zf);!function(){function o(){}o.prototype.encode=function(t,i,s,c,h){if(void 0===h&&(h=null),""===t.trim())throw new Error("Found empty contents");if(i!==be.DATA_MATRIX)throw new Error("Can only encode DATA_MATRIX, but got "+i);if(s<0||c<0)throw new Error("Requested dimensions can't be negative: "+s+"x"+c);var de,v=0,M=null,O=null;if(null!=h){var N=h.get(pi.DATA_MATRIX_SHAPE);null!=N&&(v=N);var $=h.get(pi.MIN_SIZE);null!=$&&(M=$);var q=h.get(pi.MAX_SIZE);null!=q&&(O=q)}if(null!=h&&h.has(pi.DATA_MATRIX_COMPACT)&&h.get(pi.DATA_MATRIX_COMPACT).toString()){var et=h.has(pi.GS1_FORMAT)&&!!h.get(pi.GS1_FORMAT).toString(),vt=null;h.has(pi.CHARACTER_SET)&&(vt=Fa.forName(h.get(pi.CHARACTER_SET).toString())),de=Hl.encodeHighLevel(t,vt,et?29:-1,v)}else{var $t=null!=h&&h.has(pi.FORCE_C40)&&!!h.get(pi.FORCE_C40).toString();de=Mr.encodeHighLevel(t,v,M,O,$t)}var Gt=bh.lookup(de.length,v,M,O,!0),an=Xh.encodeECC200(de,Gt),bn=new Id(an,Gt.getSymbolDataWidth(),Gt.getSymbolDataHeight());return bn.place(),this.encodeLowLevel(bn,Gt,s,c)},o.prototype.encodeLowLevel=function(t,i,s,c){for(var h=i.getSymbolDataWidth(),v=i.getSymbolDataHeight(),M=new it(i.getSymbolWidth(),i.getSymbolHeight()),O=0,N=0;N"},t}(df);const Xu=hf;var ff=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Dh=function(o){function t(i,s,c){var h=o.call(this,i,0,0)||this;return h.binaryShiftStart=s,h.binaryShiftByteCount=c,h}return ff(t,o),t.prototype.appendTo=function(i,s){for(var c=0;c62?i.appendBits(this.binaryShiftByteCount-31,16):i.appendBits(0===c?Math.min(this.binaryShiftByteCount,31):this.binaryShiftByteCount-31,5)),i.appendBits(s[this.binaryShiftStart+c],8)},t.prototype.addBinaryShift=function(i,s){return new t(this,i,s)},t.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},t}(Xu);const Lu=Dh;function Ld(o,t,i){return new Xu(o,t,i)}var Gf=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],fu=new Xu(null,0,0),ud=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])],pf=function Pu(o){var t,i;try{for(var s=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),c=s.next();!c.done;c=s.next())at.fill(c.value,-1)}catch(v){t={error:v}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return o[0][4]=0,o[1][4]=0,o[1][0]=28,o[3][4]=0,o[2][4]=0,o[2][0]=15,o}(at.createInt32Array(6,6)),th=function(){function o(t,i,s,c){this.token=t,this.mode=i,this.binaryShiftByteCount=s,this.bitCount=c}return o.prototype.getMode=function(){return this.mode},o.prototype.getToken=function(){return this.token},o.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},o.prototype.getBitCount=function(){return this.bitCount},o.prototype.latchAndAppend=function(t,i){var s=this.bitCount,c=this.token;if(t!==this.mode){var h=ud[this.mode][t];c=Ld(c,65535&h,h>>16),s+=h>>16}var v=2===t?4:5;return new o(c=Ld(c,i,v),t,0,s+v)},o.prototype.shiftAndAppend=function(t,i){var s=this.token,c=2===this.mode?4:5;return s=Ld(s,pf[this.mode][t],c),new o(s=Ld(s,i,5),this.mode,0,this.bitCount+c+5)},o.prototype.addBinaryShiftChar=function(t){var i=this.token,s=this.mode,c=this.bitCount;if(4===this.mode||2===this.mode){var h=ud[s][0];i=Ld(i,65535&h,h>>16),c+=h>>16,s=0}var M=new o(i,s,this.binaryShiftByteCount+1,c+(0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8));return 2078===M.binaryShiftByteCount&&(M=M.endBinaryShift(t+1)),M},o.prototype.endBinaryShift=function(t){if(0===this.binaryShiftByteCount)return this;var i=this.token;return i=function eh(o,t,i){return new Lu(o,t,i)}(i,t-this.binaryShiftByteCount,this.binaryShiftByteCount),new o(i,this.mode,0,this.bitCount)},o.prototype.isBetterThanOrEqualTo=function(t){var i=this.bitCount+(ud[this.mode][t.mode]>>16);return this.binaryShiftByteCountt.binaryShiftByteCount&&t.binaryShiftByteCount>0&&(i+=10),i<=t.bitCount},o.prototype.toBitArray=function(t){for(var i,s,c=[],h=this.endBinaryShift(t.length).token;null!==h;h=h.getPrevious())c.unshift(h);var v=new me;try{for(var M=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),O=M.next();!O.done;O=M.next())O.value.appendTo(v,t)}catch($){i={error:$}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}return v},o.prototype.toString=function(){return ct.format("%s bits=%d bytes=%d",Gf[this.mode],this.bitCount,this.binaryShiftByteCount)},o.calculateBinaryShiftCost=function(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0},o.INITIAL_STATE=new o(fu,0,0,0),o}();const Sh=th;var eu=function nh(o){var t=ct.getCharCode(" "),i=ct.getCharCode("."),s=ct.getCharCode(",");o[0][t]=1;for(var c=ct.getCharCode("Z"),h=ct.getCharCode("A"),v=h;v<=c;v++)o[0][v]=v-h+2;o[1][t]=1;var M=ct.getCharCode("z"),O=ct.getCharCode("a");for(v=O;v<=M;v++)o[1][v]=v-O+2;o[2][t]=1;var N=ct.getCharCode("9"),$=ct.getCharCode("0");for(v=$;v<=N;v++)o[2][v]=v-$+2;o[2][s]=12,o[2][i]=13;for(var q=["\0"," ","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\v","\f","\r","\x1b","\x1c","\x1d","\x1e","\x1f","@","\\","^","_","`","|","~","\x7f"],de=0;de","?","[","]","{","}"];for(de=0;de0&&(o[4][ct.getCharCode(we[de])]=de);return o}(at.createInt32Array(5,256)),Dc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Nd=function(){function o(t){this.text=t}return o.prototype.encode=function(){for(var t=ct.getCharCode(" "),i=ct.getCharCode("\n"),s=hu.singletonList(Sh.INITIAL_STATE),c=0;c0?(s=o.updateStateListForPair(s,c,h),c++):s=this.updateStateListForChar(s,c)}return hu.min(s,function(O,N){return O.getBitCount()-N.getBitCount()}).toBitArray(this.text)},o.prototype.updateStateListForChar=function(t,i){var s,c,h=[];try{for(var v=Dc(t),M=v.next();!M.done;M=v.next())this.updateStateForChar(M.value,i,h)}catch(N){s={error:N}}finally{try{M&&!M.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}return o.simplifyStates(h)},o.prototype.updateStateForChar=function(t,i,s){for(var c=255&this.text[i],h=eu[t.getMode()][c]>0,v=null,M=0;M<=4;M++){var O=eu[M][c];if(O>0){if(null==v&&(v=t.endBinaryShift(i)),!h||M===t.getMode()||2===M){var N=v.latchAndAppend(M,O);s.push(N)}if(!h&&pf[t.getMode()][M]>=0){var $=v.shiftAndAppend(M,O);s.push($)}}}if(t.getBinaryShiftByteCount()>0||0===eu[t.getMode()][c]){var q=t.addBinaryShiftChar(i);s.push(q)}},o.updateStateListForPair=function(t,i,s){var c,h,v=[];try{for(var M=Dc(t),O=M.next();!O.done;O=M.next())this.updateStateForPair(O.value,i,s,v)}catch($){c={error:$}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}return this.simplifyStates(v)},o.updateStateForPair=function(t,i,s,c){var h=t.endBinaryShift(i);if(c.push(h.latchAndAppend(4,s)),4!==t.getMode()&&c.push(h.shiftAndAppend(4,s)),3===s||4===s){var v=h.latchAndAppend(2,16-s).latchAndAppend(2,1);c.push(v)}if(t.getBinaryShiftByteCount()>0){var M=t.addBinaryShiftChar(i).addBinaryShiftChar(i+1);c.push(M)}},o.simplifyStates=function(t){var i,s,c,h,v=[];try{for(var M=Dc(t),O=M.next();!O.done;O=M.next()){var N=O.value,$=!0,q=function(zt){if(zt.isBetterThanOrEqualTo(N))return $=!1,"break";N.isBetterThanOrEqualTo(zt)&&(v=v.filter(function($t){return $t!==zt}))};try{for(var de=(c=void 0,Dc(v)),we=de.next();!we.done&&"break"!==q(we.value);we=de.next());}catch(zt){c={error:zt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}$&&v.push(N)}}catch(zt){i={error:zt}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}return v},o}();const Nu=Nd;var Yu=function(){function o(){}return o.encodeBytes=function(t){return o.encode(t,o.DEFAULT_EC_PERCENT,o.DEFAULT_AZTEC_LAYERS)},o.encode=function(t,i,s){var M,O,N,$,q,c=new Nu(t).encode(),h=Ee.truncDivision(c.getSize()*i,100)+11,v=c.getSize()+h;if(s!==o.DEFAULT_AZTEC_LAYERS){if(M=s<0,(O=Math.abs(s))>(M?o.MAX_NB_BITS_COMPACT:o.MAX_NB_BITS))throw new Ge(ct.format("Illegal value %s for layers",s));var de=(N=o.totalBitsInLayer(O,M))-N%($=o.WORD_SIZE[O]);if((q=o.stuffBits(c,$)).getSize()+h>de)throw new Ge("Data to large for user specified layer");if(M&&q.getSize()>64*$)throw new Ge("Data to large for user specified layer")}else{$=0,q=null;for(var we=0;;we++){if(we>o.MAX_NB_BITS)throw new Ge("Data too large for an Aztec code");if(!(v>(N=o.totalBitsInLayer(O=(M=we<=3)?we+1:we,M)))&&((null==q||$!==o.WORD_SIZE[O])&&(q=o.stuffBits(c,$=o.WORD_SIZE[O])),de=N-N%$,!(M&&q.getSize()>64*$)&&q.getSize()+h<=de))break}}var an,et=o.generateCheckWords(q,N,$),vt=q.getSize()/$,zt=o.generateModeMessage(M,O,vt),$t=(M?11:14)+4*O,Gt=new Int32Array($t);if(M)for(an=$t,we=0;we=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Array.from(N)),we=de.next();!we.done;we=de.next())q.appendBits(we.value,s)}catch(vt){c={error:vt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}return q},o.bitsToWords=function(t,i,s){var h,v,c=new Int32Array(s);for(h=0,v=t.getSize()/i;h=c||t.get(v+O))&&(M|=1<>10}return h},t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth(),h=i*c;return null===s?s=this.buffer.slice(h,h+c):(s.length0&&h[h.length-1])&&(6===N[0]||2===N[0])){i=0;continue}if(3===N[0]&&(!h||N[1]>h[0]&&N[1]=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Yd={delayBetweenScanAttempts:500,delayBetweenScanSuccess:500,tryPlayVideoTimeout:5e3},hd=function(){function o(t,i,s){void 0===i&&(i=new Map),void 0===s&&(s={}),this.reader=t,this.hints=i,this.options=Fd(Fd({},Yd),s)}return Object.defineProperty(o.prototype,"possibleFormats",{set:function(t){this.hints.set(he.POSSIBLE_FORMATS,t)},enumerable:!1,configurable:!0}),o.addVideoSource=function(t,i){try{t.srcObject=i}catch{console.error("got interrupted by new loading request")}},o.mediaStreamSetTorch=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(s){switch(s.label){case 0:return[4,t.applyConstraints({advanced:[{fillLightMode:i?"flash":"off",torch:!!i}]})];case 1:return s.sent(),[2]}})})},o.mediaStreamIsTorchCompatible=function(t){var i,s,c=t.getVideoTracks();try{for(var h=mu(c),v=h.next();!v.done;v=h.next())if(o.mediaStreamIsTorchCompatibleTrack(v.value))return!0}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return!1},o.mediaStreamIsTorchCompatibleTrack=function(t){try{return"torch"in t.getCapabilities()}catch(s){return console.error(s),console.warn("Your browser may be not fully compatible with WebRTC and/or ImageCapture specs. Torch will not be available."),!1}},o.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&t.readyState>2},o.getMediaElement=function(t,i){var s=document.getElementById(t);if(!s)throw new _e("element with id '".concat(t,"' not found"));if(s.nodeName.toLowerCase()!==i.toLowerCase())throw new _e("element with id '".concat(t,"' must be an ").concat(i," element"));return s},o.createVideoElement=function(t){if(t instanceof HTMLVideoElement)return t;if("string"==typeof t)return o.getMediaElement(t,"video");if(!t&&typeof document<"u"){var i=document.createElement("video");return i.width=200,i.height=200,i}throw new Error("Couldn't get videoElement from videoSource!")},o.prepareImageElement=function(t){if(t instanceof HTMLImageElement)return t;if("string"==typeof t)return o.getMediaElement(t,"img");if(typeof t>"u"){var i=document.createElement("img");return i.width=200,i.height=200,i}throw new Error("Couldn't get imageElement from imageSource!")},o.prepareVideoElement=function(t){var i=o.createVideoElement(t);return i.setAttribute("autoplay","true"),i.setAttribute("muted","true"),i.setAttribute("playsinline","true"),i},o.isImageLoaded=function(t){return!(!t.complete||0===t.naturalWidth)},o.createBinaryBitmapFromCanvas=function(t){var i=new rh(t),s=new gn(i);return new je(s)},o.drawImageOnCanvas=function(t,i){t.drawImage(i,0,0)},o.getMediaElementDimensions=function(t){if(t instanceof HTMLVideoElement)return{height:t.videoHeight,width:t.videoWidth};if(t instanceof HTMLImageElement)return{height:t.naturalHeight||t.height,width:t.naturalWidth||t.width};throw new Error("Couldn't find the Source's dimensions!")},o.createCaptureCanvas=function(t){if(!t)throw new _e("Cannot create a capture canvas without a media element.");if(typeof document>"u")throw new Error('The page "Document" is undefined, make sure you\'re running in a browser.');var i=document.createElement("canvas"),s=o.getMediaElementDimensions(t),c=s.width,h=s.height;return i.style.width=c+"px",i.style.height=h+"px",i.width=c,i.height=h,i},o.tryPlayVideo=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(t?.ended)return console.error("Trying to play video that has ended."),[2,!1];if(o.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2,!0];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.play()];case 2:return s.sent(),[2,!0];case 3:return i=s.sent(),console.warn("It was not possible to play the video.",i),[2,!1];case 4:return[2]}})})},o.createCanvasFromMediaElement=function(t){var i=o.createCaptureCanvas(t),s=i.getContext("2d");if(!s)throw new Error("Couldn't find Canvas 2D Context.");return o.drawImageOnCanvas(s,t),i},o.createBinaryBitmapFromMediaElem=function(t){var i=o.createCanvasFromMediaElement(t);return o.createBinaryBitmapFromCanvas(i)},o.destroyImageElement=function(t){t.src="",t.removeAttribute("src"),t=void 0},o.listVideoInputDevices=function(){return us(this,void 0,void 0,function(){var t,i,s,c,h,v,M,O,q,de;return Yo(this,function(we){switch(we.label){case 0:if(!Bu())throw new Error("Can't enumerate devices, navigator is not present.");if(!function sh(){return!(!function oh(){return Bu()&&!!navigator.mediaDevices}()||!navigator.mediaDevices.enumerateDevices)}())throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=we.sent(),i=[];try{for(s=mu(t),c=s.next();!c.done;c=s.next())"videoinput"===(v="video"===(h=c.value).kind?"videoinput":h.kind)&&(M=h.deviceId||h.id,O=h.label||"Video device ".concat(i.length+1),i.push({deviceId:M,label:O,kind:v,groupId:h.groupId}))}catch(et){q={error:et}}finally{try{c&&!c.done&&(de=s.return)&&de.call(s)}finally{if(q)throw q.error}}return[2,i]}})})},o.findDeviceById=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:return[4,o.listVideoInputDevices()];case 1:return(i=s.sent())?[2,i.find(function(c){return c.deviceId===t})]:[2]}})})},o.cleanVideoSource=function(t){if(t){try{t.srcObject=null}catch{t.src=""}t&&t.removeAttribute("src")}},o.releaseAllStreams=function(){0!==o.streamTracker.length&&o.streamTracker.forEach(function(t){t.getTracks().forEach(function(i){return i.stop()})}),o.streamTracker=[]},o.playVideoOnLoadAsync=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(c){switch(c.label){case 0:return[4,o.tryPlayVideo(t)];case 1:return c.sent()?[2,!0]:[2,new Promise(function(h,v){var M=setTimeout(function(){o.isVideoPlaying(t)||(v(!1),t.removeEventListener("canplay",O))},i),O=function(){o.tryPlayVideo(t).then(function(N){clearTimeout(M),t.removeEventListener("canplay",O),h(N)})};t.addEventListener("canplay",O)})]}})})},o.attachStreamToVideo=function(t,i,s){return void 0===s&&(s=5e3),us(this,void 0,void 0,function(){var c;return Yo(this,function(h){switch(h.label){case 0:return c=o.prepareVideoElement(i),o.addVideoSource(c,t),[4,o.playVideoOnLoadAsync(c,s)];case 1:return h.sent(),[2,c]}})})},o._waitImageLoad=function(t){return new Promise(function(i,s){var h=setTimeout(function(){o.isImageLoaded(t)||(t.removeEventListener("load",v),s())},1e4),v=function(){clearTimeout(h),t.removeEventListener("load",v),i()};t.addEventListener("load",v)})},o.checkCallbackFnOrThrow=function(t){if(!t)throw new _e("`callbackFn` is a required parameter, you cannot capture results without it.")},o.disposeMediaStream=function(t){t.getVideoTracks().forEach(function(i){return i.stop()}),t=void 0},o.prototype.decode=function(t){var i=o.createCanvasFromMediaElement(t);return this.decodeFromCanvas(i)},o.prototype.decodeBitmap=function(t){return this.reader.decode(t,this.hints)},o.prototype.decodeFromCanvas=function(t){var i=o.createBinaryBitmapFromCanvas(t);return this.decodeBitmap(i)},o.prototype.decodeFromImageElement=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(!t)throw new _e("An image element must be provided.");return i=o.prepareImageElement(t),[4,this._decodeOnLoadImage(i)];case 1:return[2,s.sent()]}})})},o.prototype.decodeFromImageUrl=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(!t)throw new _e("An URL must be provided.");(i=o.prepareImageElement()).src=t,s.label=1;case 1:return s.trys.push([1,,3,4]),[4,this.decodeFromImageElement(i)];case 2:return[2,s.sent()];case 3:return o.destroyImageElement(i),[7];case 4:return[2]}})})},o.prototype.decodeFromConstraints=function(t,i,s){return us(this,void 0,void 0,function(){var c,h;return Yo(this,function(v){switch(v.label){case 0:return o.checkCallbackFnOrThrow(s),[4,this.getUserMedia(t)];case 1:c=v.sent(),v.label=2;case 2:return v.trys.push([2,4,,5]),[4,this.decodeFromStream(c,i,s)];case 3:return[2,v.sent()];case 4:throw h=v.sent(),o.disposeMediaStream(c),h;case 5:return[2]}})})},o.prototype.decodeFromStream=function(t,i,s){return us(this,void 0,void 0,function(){var h,M,O,N,q,de,we=this;return Yo(this,function(et){switch(et.label){case 0:return o.checkCallbackFnOrThrow(s),[4,o.attachStreamToVideo(t,i,this.options.tryPlayVideoTimeout)];case 1:return h=et.sent(),M=this.scan(h,s,function(){o.disposeMediaStream(t),o.cleanVideoSource(h)}),O=t.getVideoTracks(),N=Fd(Fd({},M),{stop:function(){M.stop()},streamVideoConstraintsApply:function(vt,zt){return us(this,void 0,void 0,function(){var $t,Gt,an,Nn,Zn,Kn;return Yo(this,function(fi){switch(fi.label){case 0:$t=zt?O.filter(zt):O,fi.label=1;case 1:fi.trys.push([1,6,7,8]),Gt=mu($t),an=Gt.next(),fi.label=2;case 2:return an.done?[3,5]:[4,an.value.applyConstraints(vt)];case 3:fi.sent(),fi.label=4;case 4:return an=Gt.next(),[3,2];case 5:return[3,8];case 6:return Nn=fi.sent(),Zn={error:Nn},[3,8];case 7:try{an&&!an.done&&(Kn=Gt.return)&&Kn.call(Gt)}finally{if(Zn)throw Zn.error}return[7];case 8:return[2]}})})},streamVideoConstraintsGet:function(vt){return O.find(vt).getConstraints()},streamVideoSettingsGet:function(vt){return O.find(vt).getSettings()},streamVideoCapabilitiesGet:function(vt){return O.find(vt).getCapabilities()}}),o.mediaStreamIsTorchCompatible(t)&&(q=O?.find(function(vt){return o.mediaStreamIsTorchCompatibleTrack(vt)}),N.switchTorch=de=function(vt){return us(we,void 0,void 0,function(){return Yo(this,function(zt){switch(zt.label){case 0:return[4,o.mediaStreamSetTorch(q,vt)];case 1:return zt.sent(),[2]}})})},N.stop=function(){return us(we,void 0,void 0,function(){return Yo(this,function(vt){switch(vt.label){case 0:return M.stop(),[4,de(!1)];case 1:return vt.sent(),[2]}})})}),[2,N]}})})},o.prototype.decodeFromVideoDevice=function(t,i,s){return us(this,void 0,void 0,function(){return Yo(this,function(v){switch(v.label){case 0:return o.checkCallbackFnOrThrow(s),[4,this.decodeFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i,s)];case 1:return[2,v.sent()]}})})},o.prototype.decodeFromVideoElement=function(t,i){return us(this,void 0,void 0,function(){var s;return Yo(this,function(h){switch(h.label){case 0:if(o.checkCallbackFnOrThrow(i),!t)throw new _e("A video element must be provided.");return s=o.prepareVideoElement(t),[4,o.playVideoOnLoadAsync(s,this.options.tryPlayVideoTimeout)];case 1:return h.sent(),[2,this.scan(s,i)]}})})},o.prototype.decodeFromVideoUrl=function(t,i){return us(this,void 0,void 0,function(){var s,c;return Yo(this,function(M){switch(M.label){case 0:if(o.checkCallbackFnOrThrow(i),!t)throw new _e("An URL must be provided.");return(s=o.prepareVideoElement()).src=t,c=function(){o.cleanVideoSource(s)},[4,o.playVideoOnLoadAsync(s,this.options.tryPlayVideoTimeout)];case 1:return M.sent(),[2,this.scan(s,i,c)]}})})},o.prototype.decodeOnceFromConstraints=function(t,i){return us(this,void 0,void 0,function(){var s;return Yo(this,function(c){switch(c.label){case 0:return[4,this.getUserMedia(t)];case 1:return s=c.sent(),[4,this.decodeOnceFromStream(s,i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromStream=function(t,i){return us(this,void 0,void 0,function(){var s,c;return Yo(this,function(v){switch(v.label){case 0:return s=!!i,[4,o.attachStreamToVideo(t,i)];case 1:c=v.sent(),v.label=2;case 2:return v.trys.push([2,,4,5]),[4,this.scanOneResult(c)];case 3:return[2,v.sent()];case 4:return s||o.cleanVideoSource(c),[7];case 5:return[2]}})})},o.prototype.decodeOnceFromVideoDevice=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(h){switch(h.label){case 0:return[4,this.decodeOnceFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i)];case 1:return[2,h.sent()]}})})},o.prototype.decodeOnceFromVideoElement=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(c){switch(c.label){case 0:if(!t)throw new _e("A video element must be provided.");return i=o.prepareVideoElement(t),[4,o.playVideoOnLoadAsync(i,this.options.tryPlayVideoTimeout)];case 1:return c.sent(),[4,this.scanOneResult(i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromVideoUrl=function(t){return us(this,void 0,void 0,function(){var i,s;return Yo(this,function(c){switch(c.label){case 0:if(!t)throw new _e("An URL must be provided.");(i=o.prepareVideoElement()).src=t,s=this.decodeOnceFromVideoElement(i),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,s];case 2:return[2,c.sent()];case 3:return o.cleanVideoSource(i),[7];case 4:return[2]}})})},o.prototype.scanOneResult=function(t,i,s,c){var h=this;return void 0===i&&(i=!0),void 0===s&&(s=!0),void 0===c&&(c=!0),new Promise(function(v,M){h.scan(t,function(O,N,$){if(O)return v(O),void $.stop();if(N){if(N instanceof Se&&i||N instanceof St&&s||N instanceof bt&&c)return;$.stop(),M(N)}})})},o.prototype.scan=function(t,i,s){var c=this;o.checkCallbackFnOrThrow(i);var h=o.createCaptureCanvas(t),v=h.getContext("2d");if(!v)throw new Error("Couldn't create canvas for visual element scan.");var N,M=function(){v=void 0,h=void 0},O=!1,q={stop:function(){O=!0,clearTimeout(N),M(),s&&s()}},de=function(){if(!O)try{o.drawImageOnCanvas(v,t);var we=c.decodeFromCanvas(h);i(we,void 0,q),N=setTimeout(de,c.options.delayBetweenScanSuccess)}catch($t){if(i(void 0,$t,q),$t instanceof St||$t instanceof bt||$t instanceof Se)return void(N=setTimeout(de,c.options.delayBetweenScanAttempts));M(),s&&s($t)}};return de(),q},o.prototype._decodeOnLoadImage=function(t){return us(this,void 0,void 0,function(){return Yo(this,function(s){switch(s.label){case 0:return o.isImageLoaded(t)?[3,2]:[4,o._waitImageLoad(t)];case 1:s.sent(),s.label=2;case 2:return[2,this.decode(t)]}})})},o.prototype.getUserMedia=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return i=s.sent(),o.streamTracker.push(i),[2,i]}})})},o.streamTracker=[],o}(),_f=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Oh=(function(o){_f(function t(i,s){return o.call(this,new Vo,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),ah=(function(o){Oh(function t(i,s){return o.call(this,new yi(i),i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),tu=(function(o){ah(function t(i,s){return o.call(this,new cc,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),lh=function(o){function t(i,s){var c=this,h=new Jd;return h.setHints(i),(c=o.call(this,h,i,s)||this).reader=h,c}return tu(t,o),Object.defineProperty(t.prototype,"possibleFormats",{set:function(i){this.hints.set(he.POSSIBLE_FORMATS,i),this.reader.setHints(this.hints)},enumerable:!1,configurable:!0}),t.prototype.decodeBitmap=function(i){return this.reader.decodeWithState(i)},t.prototype.setHints=function(i){this.hints=i,this.reader.setHints(this.hints)},t}(hd),mf=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),gf=(function(o){mf(function t(i,s){return o.call(this,new Pa,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),fd=(function(o){gf(function t(i,s){return o.call(this,new js,i,s)||this},o)}(hd),"http://www.w3.org/2000/svg"),kh=(function(){function o(t){if("string"==typeof t){var i=document.getElementById(t);if(!i)throw new Error("Could not find a Container element with '".concat(t,"'."));this.containerElement=i}else this.containerElement=t}o.prototype.write=function(t,i,s,c){if(0===t.length)throw new Ge("Found empty contents");if(i<0||s<0)throw new Ge("Requested dimensions are too small: "+i+"x"+s);var h=c&&void 0!==c.get(pi.MARGIN)?Number.parseInt(c.get(pi.MARGIN).toString(),10):o.QUIET_ZONE_SIZE,v=this.encode(c,t);return this.renderResult(v,i,s,h)},o.prototype.createSVGElement=function(t,i){var s=document.createElementNS(o.SVG_NS,"svg");return s.setAttributeNS(fd,"width",i.toString()),s.setAttributeNS(fd,"height",t.toString()),s},o.prototype.createSvgPathPlaceholderElement=function(t,i){var s=document.createElementNS(o.SVG_NS,"path");return s.setAttributeNS(fd,"d","M0 0h".concat(t,"v").concat(i,"H0z")),s.setAttributeNS(fd,"fill","none"),s},o.prototype.createSvgRectElement=function(t,i,s,c){var h=document.createElementNS(o.SVG_NS,"rect");return h.setAttributeNS(fd,"x",t.toString()),h.setAttributeNS(fd,"y",i.toString()),h.setAttributeNS(fd,"height",s.toString()),h.setAttributeNS(fd,"width",c.toString()),h.setAttributeNS(fd,"fill","#000000"),h},o.prototype.encode=function(t,i){var s=aa.L;if(t&&void 0!==t.get(pi.ERROR_CORRECTION)){var c=t.get(pi.ERROR_CORRECTION).toString();s=aa.fromString(c)}return Fl.encode(i,s,t)},o.prototype.renderResult=function(t,i,s,c){var h=t.getMatrix();if(null===h)throw new ki;var v=h.getWidth(),M=h.getHeight(),O=v+2*c,N=M+2*c,$=Math.max(i,O),q=Math.max(s,N),de=Math.min(Math.floor($/O),Math.floor(q/N)),we=Math.floor(($-v*de)/2),et=Math.floor((q-M*de)/2),vt=this.createSVGElement($,q),zt=this.createSvgPathPlaceholderElement(i,s);vt.appendChild(zt),this.containerElement.appendChild(vt);for(var $t=0,Gt=et;$t{if(!M)return void c.next({result:v});const O=M.name;O===Se.name||O===St.name||O===bt.name||M.message.includes("No MultiFormat Readers were able to detect the code.")?c.next({error:M}):(c.error(M),s.scannerControls.stop(),s.scannerControls=void 0)}),s.scannerControls={...h,stop(){h.stop(),c.complete()}}}catch(v){c.error(v),s.scannerControls?.stop(),s.scannerControls=void 0}return c.asObservable()})()}}let $f=(()=>{class o{get codeReader(){return this._codeReader}set device(i){this._ready?this.isAutostarting?console.warn("Avoid setting a device during auto-start."):this.isCurrentDevice(i)?console.warn("Setting the same device is not allowed."):this.hasPermission?this.setDevice(i):console.warn("Permissions not set yet, waiting for them to be set to apply device change."):this._devicePreStart=i}get device(){return this._device}get formats(){return this.hints.get(he.POSSIBLE_FORMATS)}set formats(i){if("string"==typeof i)throw new Error("Invalid formats, make sure the [formats] input is a binding.");const s=i.map(h=>this.getBarcodeFormatOrFail(h)),c=this.hints;c.set(he.POSSIBLE_FORMATS,s),this.hints=c}get hints(){return this._hints}set hints(i){this._hints=i,this.codeReader?.setHints(this._hints)}set videoConstraints(i){const s=this.codeReader?.getScannerControls();s&&s?.streamVideoConstraintsApply(i)}set isAutostarting(i){this._isAutostarting=i,this.autostarting.next(i)}get isAutostarting(){return this._isAutostarting}set torch(i){try{this.getCodeReader().getScannerControls().switchTorch(i)}catch{}}set enable(i){this._enabled=!!i,this._enabled?this.device?this.scanFromDevice(this.device.deviceId):this.init():(this.reset(),Hd.releaseAllStreams())}get enabled(){return this._enabled}get tryHarder(){return this.hints.get(he.TRY_HARDER)}set tryHarder(i){const s=this.hints;i?s.set(he.TRY_HARDER,!0):s.delete(he.TRY_HARDER),this.hints=s}constructor(){this.timeBetweenScans=500,this.delayBetweenScanSuccess=500,this.previewFitMode="cover",this.poster="",this._ready=!1,this.autostarted=new D.vpe,this.autostarting=new D.vpe,this.torchCompatible=new D.vpe(!1),this.scanSuccess=new D.vpe,this.scanFailure=new D.vpe,this.scanError=new D.vpe,this.scanComplete=new D.vpe,this.camerasFound=new D.vpe,this.camerasNotFound=new D.vpe,this.permissionResponse=new D.vpe(!0),this.hasDevices=new D.vpe,this.deviceChange=new D.vpe,this._enabled=!0,this._hints=new Map,this.autofocusEnabled=!0,this.autostart=!0,this.formats=[be.QR_CODE],this.hasNavigator=typeof navigator<"u",this.isMediaDevicesSupported=this.hasNavigator&&!!navigator.mediaDevices}askForPermission(){var i=this;return(0,e.Z)(function*(){if(!i.hasNavigator)return console.error("@zxing/ngx-scanner","Can't ask permission, navigator is not present."),i.setPermission(null),i.hasPermission;if(!i.isMediaDevicesSupported)return console.error("@zxing/ngx-scanner","Can't get user media, this is not supported."),i.setPermission(null),i.hasPermission;let s,c;try{s=yield i.getAnyVideoDevice(),c=!!s}catch(h){return i.handlePermissionException(h)}finally{i.terminateStream(s)}return i.setPermission(c),c})()}getAnyVideoDevice(){return navigator.mediaDevices.getUserMedia({video:!0})}terminateStream(i){i&&i.getTracks().forEach(s=>s.stop()),i=void 0}init(){var i=this;return(0,e.Z)(function*(){if(!i.autostart)return console.warn("Feature 'autostart' disabled. Permissions and devices recovery has to be run manually."),i.initAutostartOff(),void(i._ready=!0);yield i.initAutostartOn(),i._ready=!0})()}initAutostartOff(){this.isAutostarting=!1,this.updateVideoInputDevices(),this._device&&this._devicePreStart&&this.setDevice(this._devicePreStart)}initAutostartOn(){var i=this;return(0,e.Z)(function*(){let s;i.isAutostarting=!0;try{s=yield i.askForPermission()}catch(c){return void console.error("Exception occurred while asking for permission:",c)}if(s){const c=yield i.updateVideoInputDevices();yield i.autostartScanner([...c])}i.isAutostarting=!1,i.autostarted.next()})()}isCurrentDevice(i){return i?.deviceId===this._device?.deviceId}ngOnDestroy(){this.reset(),Hd.releaseAllStreams()}ngOnInit(){this.init()}scanStop(){this._scanSubscription&&(this.codeReader?.getScannerControls().stop(),this._scanSubscription?.unsubscribe(),this._scanSubscription=void 0),this.torchCompatible.next(!1)}scanStart(){if(this._scanSubscription)throw new Error("There is already a scan process running.");if(!this._device)throw new Error("No device defined, cannot start scan, please define a device.");this.scanFromDevice(this._device.deviceId)}restart(){this._codeReader=void 0;const i=this._reset();i&&(this.device=i)}updateVideoInputDevices(){var i=this;return(0,e.Z)(function*(){const s=(yield hd.listVideoInputDevices())||[],c=s&&s.length>0;return i.hasDevices.next(c),i.camerasFound.next([...s]),c||i.camerasNotFound.next(null),s})()}autostartScanner(i){var s=this;return(0,e.Z)(function*(){const h=i.find(({label:v})=>/back|tr\xe1s|rear|traseira|environment|ambiente/gi.test(v))||i.pop();if(!h)throw new Error("Impossible to autostart, no input devices available.");yield s.setDevice(h),s.deviceChange.next(h)})()}dispatchScanSuccess(i){this.scanSuccess.next(i.getText())}dispatchScanFailure(i){this.scanFailure.next(i)}dispatchScanError(i){this.scanError.observed||(console.error(`zxing scanner component: ${i.name}`,i),console.warn("Use the `(scanError)` property to handle errors like this!")),this.scanError.next(i)}dispatchScanComplete(i){this.scanComplete.next(i)}handlePermissionException(i){let s;switch(console.error("@zxing/ngx-scanner","Error when asking for permission.",i),i.name){case"NotSupportedError":console.warn("@zxing/ngx-scanner",i.message),s=null,this.hasDevices.next(null);break;case"NotAllowedError":console.warn("@zxing/ngx-scanner",i.message),s=!1,this.hasDevices.next(!0);break;case"NotFoundError":console.warn("@zxing/ngx-scanner",i.message),s=null,this.hasDevices.next(!1),this.camerasNotFound.next(i);break;case"NotReadableError":console.warn("@zxing/ngx-scanner","Couldn't read the device(s)'s stream, it's probably in use by another app."),s=null,this.hasDevices.next(!1),this.camerasNotFound.next(i);break;default:console.warn("@zxing/ngx-scanner","I was not able to define if I have permissions for camera or not.",i),s=null}return this.setPermission(s),this.permissionResponse.error(i),s}getBarcodeFormatOrFail(i){return"string"==typeof i?be[i.trim().toUpperCase()]:i}getCodeReader(){return this._codeReader||(this._codeReader=new Hd(this.hints,{delayBetweenScanAttempts:this.timeBetweenScans,delayBetweenScanSuccess:this.delayBetweenScanSuccess})),this._codeReader}scanFromDevice(i){var s=this;return(0,e.Z)(function*(){const c=s.previewElemRef.nativeElement,h=s.getCodeReader(),v=yield h.scanFromDeviceObservable(i,c);if(!v)throw new Error("Undefined decoding stream, aborting.");if(s._scanSubscription=v.subscribe(de=>s._onDecodeResult(de.result,de.error),de=>s._onDecodeError(de),()=>{}),s._scanSubscription.closed)return;const q=typeof h.getScannerControls().switchTorch<"u";s.torchCompatible.next(q)})()}_onDecodeError(i){this.dispatchScanError(i)}_onDecodeResult(i,s){i?this.dispatchScanSuccess(i):this.dispatchScanFailure(s),this.dispatchScanComplete(i)}_reset(){if(!this._codeReader)return;this._codeReader=void 0;const i=this._device;return this.device=void 0,i}reset(){this._reset(),this.deviceChange.emit(null)}setDevice(i){var s=this;return(0,e.Z)(function*(){s.scanStop(),s._device=i||void 0,s._device||hd.cleanVideoSource(s.previewElemRef.nativeElement),s._enabled&&i&&(yield s.scanFromDevice(i.deviceId))})()}setPermission(i){this.hasPermission=i,this.permissionResponse.next(i)}static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275cmp=D.Xpm({type:o,selectors:[["zxing-scanner"]],viewQuery:function(s,c){if(1&s&&D.Gf(qc,7),2&s){let h;D.iGM(h=D.CRH())&&(c.previewElemRef=h.first)}},inputs:{autofocusEnabled:"autofocusEnabled",timeBetweenScans:"timeBetweenScans",delayBetweenScanSuccess:"delayBetweenScanSuccess",autostart:"autostart",previewFitMode:"previewFitMode",poster:"poster",device:"device",formats:"formats",videoConstraints:"videoConstraints",torch:"torch",enable:"enable",tryHarder:"tryHarder"},outputs:{autostarted:"autostarted",autostarting:"autostarting",torchCompatible:"torchCompatible",scanSuccess:"scanSuccess",scanFailure:"scanFailure",scanError:"scanError",scanComplete:"scanComplete",camerasFound:"camerasFound",camerasNotFound:"camerasNotFound",permissionResponse:"permissionResponse",hasDevices:"hasDevices",deviceChange:"deviceChange"},decls:6,vars:3,consts:[[3,"poster"],["preview",""]],template:function(s,c){1&s&&(D.TgZ(0,"video",0,1)(2,"p"),D._uU(3," Your browser does not support this feature, please try to upgrade it. "),D.qZA(),D.TgZ(4,"p"),D._uU(5," Seu navegador n\xe3o suporta este recurso, por favor tente atualiz\xe1-lo. "),D.qZA()()),2&s&&(D.Udp("object-fit",c.previewFitMode),D.Q6J("poster",c.poster,D.LSH))},styles:["[_nghost-%COMP%]{display:block}video[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:contain}"],changeDetection:0})}return o})(),vu=(()=>{class o{static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=D.oAB({type:o});static#n=this.\u0275inj=D.cJS({imports:[l.ez,I.u5]})}return o})()},5806:(ft,Ie,C)=>{"use strict";C.d(Ie,{F:()=>S});var e=C(8645),l=C(2181),D=C(7398);class I{constructor(n,Z){this._id=this.uuid(),this._key=n,this._data=Z,this._timestamp=(new Date).getTime()}get id(){return this._id}get key(){return this._key}get data(){return this._data}get timestamp(){return this._timestamp}uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const Z=16*Math.random()|0;return("x"===n?Z:3&Z|8).toString(16)})}}class S{constructor(){this.separator=":",this.eventBus=new e.x}keyMatch(n,Z){const ue=(mt,Ge)=>"*"===mt||mt===Ge,se=this.separator,te=n.split(se),oe=Z.split(se),Re=Math.max(te.length,oe.length);for(let mt=0;mtthis.keyMatch(Z.key,n)),(0,D.U)(Z=>Z.metadata))}}},1835:(ft,Ie,C)=>{"use strict";C.d(Ie,{oj:()=>Z});var e=C(5879),l=C(3161),D=C(4060),I=C(6814);class w{constructor(re,ue,se){this.nodes=re,this.viewRef=ue,this.componentRef=se}}class n{constructor(re,ue,se,te,oe,ce,_e,Re,mt){this._viewContainerRef=re,this._renderer=ue,this._elementRef=se,this._injector=te,this._componentFactoryResolver=oe,this._ngZone=ce,this._applicationRef=_e,this._posService=Re,this._document=mt,this.onBeforeShow=new e.vpe,this.onShown=new e.vpe,this.onBeforeHide=new e.vpe,this.onHidden=new e.vpe,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(re){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(re),this}to(re){return this.container=re||this.container,this}position(re){return re?(this.attachment=re.attachment||this.attachment,this._elementRef=re.target||this._elementRef,this):this}provide(re){return this._providers.push(re),this}show(re={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(re.content,re.context,re.initialState);const ue=e.zs3.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(ue,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,re),this.container instanceof e.SBq&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const se=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!se)return;se.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(re.id?{id:re.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(re){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const ue=this._componentRef.location.nativeElement;return ue.parentNode?.removeChild(ue),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(re?{id:re}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(re){this.triggers=re.triggers||this.triggers,this._listenOpts.outsideClick=re.outsideClick,this._listenOpts.outsideEsc=re.outsideEsc,re.target=re.target||this._elementRef?.nativeElement;const ue=this._listenOpts.hide=()=>re.hide?re.hide():void this.hide(),se=this._listenOpts.show=oe=>{re.show?re.show(oe):this.show(oe),oe()};return this._renderer&&(this._unregisterListenersFn=(0,l.wo)(this._renderer,{target:re.target,triggers:re.triggers,show:se,hide:ue,toggle:oe=>{this.isShown?ue():se(oe)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(re,ue){return re&&ue&&(this._inlineViewRef=re.createEmbeddedView(ue)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const re=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=(0,l.Rg)(this._renderer,{targets:[re,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=(0,l.C)(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(re,ue,se){if(!re)return new w([]);if(re instanceof e.Rgc){if(this._viewContainerRef){const ce=this._viewContainerRef.createEmbeddedView(re,ue);return ce.markForCheck(),new w([ce.rootNodes],ce)}const oe=re.createEmbeddedView({});return this._applicationRef.attachView(oe),new w([oe.rootNodes],oe)}if("function"==typeof re){const oe=this._componentFactoryResolver.resolveComponentFactory(re),ce=e.zs3.create({providers:this._providers,parent:this._injector}),_e=oe.create(ce);return Object.assign(_e.instance,se),this._applicationRef.attachView(_e.hostView),new w([[_e.location.nativeElement]],_e.hostView,_e)}const te=this._renderer?[this._renderer.createText(`${re}`)]:[];return new w([te])}}let Z=(()=>{class ee{constructor(ue,se,te,oe,ce,_e){this._componentFactoryResolver=ue,this._ngZone=se,this._injector=te,this._posService=oe,this._applicationRef=ce,this._document=_e}createLoader(ue,se,te){return new n(se,te,ue,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static#e=this.\u0275fac=function(se){return new(se||ee)(e.LFG(e._Vd),e.LFG(e.R0b),e.LFG(e.zs3),e.LFG(D.sA),e.LFG(e.z2F),e.LFG(I.K0))};static#t=this.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9277:(ft,Ie,C)=>{"use strict";C.d(Ie,{Np:()=>vt,Y5:()=>Gi,kn:()=>Cs});var e=C(5879),l=C(2181),D=C(7398),I=C(8180),S=C(9773),w=C(3997);function Z(f){return f<0?Math.ceil(f)||0:Math.floor(f)}function ee(f){return"string"==typeof f}function re(f){return f instanceof Date||"[object Date]"===Object.prototype.toString.call(f)}function se(f){return f&&f.getTime&&!isNaN(f.getTime())}function te(f){return f instanceof Function||"[object Function]"===Object.prototype.toString.call(f)}function oe(f){return"number"==typeof f||"[object Number]"===Object.prototype.toString.call(f)}function ce(f){return f instanceof Array||"[object Array]"===Object.prototype.toString.call(f)}function _e(f,E){return Object.prototype.hasOwnProperty.call(f,E)}function Re(f){return null!=f&&"[object Object]"===Object.prototype.toString.call(f)}function Ge(f){return void 0===f}function Lt(f){const E=+f;let b=0;return 0!==E&&isFinite(E)&&(b=Z(E)),b}const je={},Tt={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function xt(f,E){const b=f.toLowerCase();let P=f;b in Tt&&(P=Tt[b]),je[b]=je[`${b}s`]=je[E]=P}function St(f){return ee(f)?je[f]||je[f.toLowerCase()]:void 0}const yt=0,un=1,Jt=2,tn=3,wn=4,Ln=5,Yn=6,ti=7,gi=8;function Rn(f,E,b){const P=`${Math.abs(f)}`;return(f>=0?b?"+":"":"-")+Math.pow(10,Math.max(0,E-P.length)).toString().substr(1)+P}const dt={},at={},Be=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function Ee(f,E,b,P){f&&(at[f]=P),E&&(at[E[0]]=function(){return Rn(P.apply(null,arguments),E[1],E[2])}),b&&(at[b]=function(H,Me){return Me.locale.ordinal(P.apply(null,arguments),f)})}function me(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}function tt(f,E,b){const P=new Date(Date.UTC.apply(null,arguments));return f<100&&f>=0&&isFinite(P.getUTCFullYear())&&P.setUTCFullYear(f),P}function he(f,E=0,b=1,P=0,H=0,Me=0,Et=0){const yn=new Date(f,E,b,P,H,Me,Et);return f<100&&f>=0&&isFinite(yn.getFullYear())&&yn.setFullYear(f),yn}function Ze(f,E=!1){return E?f.getUTCHours():f.getHours()}function rt(f,E=!1){return E?f.getUTCMinutes():f.getMinutes()}function bt(f,E=!1){return E?f.getUTCSeconds():f.getSeconds()}function Nt(f,E=!1){return E?f.getUTCMilliseconds():f.getMilliseconds()}function nn(f,E=!1){return E?f.getUTCDay():f.getDay()}function Dn(f,E=!1){return E?f.getUTCDate():f.getDate()}function Ot(f,E=!1){return E?f.getUTCMonth():f.getMonth()}function rn(f,E=!1){return E?f.getUTCFullYear():f.getFullYear()}function Ce(f,E){return!(!f||!E)&&J(f,E)&&Ot(f)===Ot(E)}function J(f,E){return!(!f||!E)&&rn(f)===rn(E)}function ae(f,E){return!(!f||!E)&&J(f,E)&&Ce(f,E)&&Dn(f)===Dn(E)}const Oe=/\d/,ot=/\d\d/,Se=/\d{3}/,Ft=/\d{4}/,lt=/[+-]?\d{6}/,Bt=/\d\d?/,Ut=/\d\d\d\d?/,fn=/\d\d\d\d\d\d?/,gn=/\d{1,3}/,An=/\d{1,4}/,jn=/[+-]?\d{1,6}/,ai=/\d+/,di=/[+-]?\d+/,Jn=/Z|[+-]\d\d(?::?\d\d)?/gi,qt=/[+-]?\d+(\.\d{1,3})?/,_t=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,G={};function U(f,E,b){G[f]=te(E)?E:function(P,H){return P&&b?b:E}}function ve(f,E){return _e(G,f)?G[f](!1,E):new RegExp(function Pe(f){return ut(f.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(E,b,P,H,Me)=>b||P||H||Me))}(f))}function ut(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const We={};function ze(f,E){const b=ee(f)?[f]:f;let P=E;if(oe(E)&&(P=function(H,Me,Et){return Me[E]=Lt(H),Et}),ce(b)&&te(P)){let H;for(H=0;H68?1900:2e3)}function ht(f){return st(f)?366:365}function st(f){return f%4==0&&f%100!=0||f%400==0}function It(f,E){if(isNaN(f)||isNaN(E))return NaN;const b=function n(f,E){return(f%E+E)%E}(E,12);return 1===b?st(f+(E-b)/12)?29:28:31-b%7%2}const _n={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function En(f,E){const b=Object.assign({},_n,E),P=f.getFullYear()+(b.year||0),H=f.getMonth()+(b.month||0);let Me=f.getDate()+(b.day||0);return b.month&&!b.day&&(Me=Math.min(Me,It(P,H))),he(P,H,Me,f.getHours()+(b.hour||0),f.getMinutes()+(b.minute||0),f.getSeconds()+(b.seconds||0))}function ni(f,E){return oe(E)?E:f}function fr(f,E,b){const P=Math.min(Dn(f),It(rn(f),E));return b?f.setUTCMonth(E,P):f.setMonth(E,P),f}function Ji(f,E,b){return b?f.setUTCDate(E):f.setDate(E),f}function _i(f){return new Date(f.getTime())}function bo(f,E,b){const P=_i(f);switch(E){case"year":fr(P,0,b);case"quarter":case"month":Ji(P,1,b);case"week":case"isoWeek":case"day":case"date":!function Kr(f,E,b){b?f.setUTCHours(E):f.setHours(E)}(P,0,b);case"hours":!function vr(f,E,b){b?f.setUTCMinutes(E):f.setMinutes(E)}(P,0,b);case"minutes":!function Bi(f,E,b){b?f.setUTCSeconds(E):f.setSeconds(E)}(P,0,b);case"seconds":!function co(f,E,b){b?f.setUTCMilliseconds(E):f.setMilliseconds(E)}(P,0,b)}return"week"===E&&function oa(f,E,b={}){mr(f,E-yi(f,b.locale,b.isUTC),"day")}(P,0,{isUTC:b}),"isoWeek"===E&&function _o(f,E,b={}){const P=function Ma(f,E=sr()){return ee(f)?E.weekdaysParse(f)%7||7:oe(f)&&isNaN(f)?null:f}(E,b.locale);zr(f,function Qi(f,E){return nn(f,E)}(f)%7?P:P-7)}(P,1),"quarter"===E&&fr(P,3*Math.floor(Ot(P,b)/3),b),P}function pr(f,E,b){let P=E;return"date"===P&&(P="day"),function vs(f,E,b,P){return bs(f,hr(E,b),-1,P)}(mr(bo(f,P,b),1,"isoWeek"===P?"week":P,b),1,"milliseconds",b)}function $n(f,E){const b=+bo(f,"day",E),P=+bo(f,"year",E);return Math.round((b-P)/864e5)+1}function Fr(f,E,b){const P=E-b+7;return-(tt(f,0,P).getUTCDay()-E+7)%7+P-1}function ho(f,E,b,P){const H=Fr(rn(f,P),E,b),Me=Math.floor(($n(f,P)-H-1)/7)+1;let Et,yn;return Me<1?(yn=rn(f,P)-1,Et=Me+to(yn,E,b)):Me>to(rn(f,P),E,b)?(Et=Me-to(rn(f,P),E,b),yn=rn(f,P)+1):(yn=rn(f,P),Et=Me),{week:Et,year:yn}}function to(f,E,b){const P=Fr(f,E,b),H=Fr(f+1,E,b);return(ht(f)-P+H)/7}const yr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Gs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ba="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),So="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ws="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ds={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Jr=_t,ga=_t;class kr{constructor(E){E&&this.set(E)}set(E){let b;for(b in E){if(!E.hasOwnProperty(b))continue;const P=E[b];this[te(P)?b:`_${b}`]=P}this._config=E}calendar(E,b,P){const H=this._calendar[E]||this._calendar.sameElse;return te(H)?H.call(null,b,P):H}longDateFormat(E){const b=this._longDateFormat[E],P=this._longDateFormat[E.toUpperCase()];return b||!P?b:(this._longDateFormat[E]=P.replace(/MMMM|MM|DD|dddd/g,function(H){return H.slice(1)}),this._longDateFormat[E])}get invalidDate(){return this._invalidDate}set invalidDate(E){this._invalidDate=E}ordinal(E,b){return this._ordinal.replace("%d",E.toString(10))}preparse(E,b){return E}getFullYear(E,b=!1){return rn(E,b)}postformat(E){return E}relativeTime(E,b,P,H){const Me=this._relativeTime[P];return te(Me)?Me(E,b,P,H):Me.replace(/%d/i,E.toString(10))}pastFuture(E,b){const P=this._relativeTime[E>0?"future":"past"];return te(P)?P(b):P.replace(/%s/i,b)}months(E,b,P=!1){if(!E)return ce(this._months)?this._months:this._months.standalone;if(ce(this._months))return this._months[Ot(E,P)];const H=(this._months.isFormat||yr).test(b)?"format":"standalone";return this._months[H][Ot(E,P)]}monthsShort(E,b,P=!1){if(!E)return ce(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(ce(this._monthsShort))return this._monthsShort[Ot(E,P)];const H=yr.test(b)?"format":"standalone";return this._monthsShort[H][Ot(E,P)]}monthsParse(E,b,P){let H,Me,Et;if(this._monthsParseExact)return this.handleMonthStrictParse(E,b,P);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Et=0;Et<12;Et++){if(H=new Date(Date.UTC(2e3,Et)),P&&!this._longMonthsParse[Et]){const yn=this.months(H,"",!0).replace(".",""),Gn=this.monthsShort(H,"",!0).replace(".","");this._longMonthsParse[Et]=new RegExp(`^${yn}$`,"i"),this._shortMonthsParse[Et]=new RegExp(`^${Gn}$`,"i")}if(!P&&!this._monthsParse[Et]&&(Me=`^${this.months(H,"",!0)}|^${this.monthsShort(H,"",!0)}`,this._monthsParse[Et]=new RegExp(Me.replace(".",""),"i")),P&&"MMMM"===b&&this._longMonthsParse[Et].test(E)||P&&"MMM"===b&&this._shortMonthsParse[Et].test(E)||!P&&this._monthsParse[Et].test(E))return Et}}monthsRegex(E){return this._monthsParseExact?(_e(this,"_monthsRegex")||this.computeMonthsParse(),E?this._monthsStrictRegex:this._monthsRegex):(_e(this,"_monthsRegex")||(this._monthsRegex=ga),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(E){return this._monthsParseExact?(_e(this,"_monthsRegex")||this.computeMonthsParse(),E?this._monthsShortStrictRegex:this._monthsShortRegex):(_e(this,"_monthsShortRegex")||(this._monthsShortRegex=Jr),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)}week(E,b){return ho(E,this._week.dow,this._week.doy,b).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(E,b,P){if(!E)return ce(this._weekdays)?this._weekdays:this._weekdays.standalone;if(ce(this._weekdays))return this._weekdays[nn(E,P)];const H=this._weekdays.isFormat.test(b)?"format":"standalone";return this._weekdays[H][nn(E,P)]}weekdaysMin(E,b,P){return E?this._weekdaysMin[nn(E,P)]:this._weekdaysMin}weekdaysShort(E,b,P){return E?this._weekdaysShort[nn(E,P)]:this._weekdaysShort}weekdaysParse(E,b,P){let H,Me;if(this._weekdaysParseExact)return this.handleWeekStrictParse(E,b,P);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),H=0;H<7;H++){const Et=zr(new Date(Date.UTC(2e3,1)),H,null,!0);if(P&&!this._fullWeekdaysParse[H]&&(this._fullWeekdaysParse[H]=new RegExp(`^${this.weekdays(Et,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[H]=new RegExp(`^${this.weekdaysShort(Et,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[H]=new RegExp(`^${this.weekdaysMin(Et,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[H]||(Me=`^${this.weekdays(Et,"",!0)}|^${this.weekdaysShort(Et,"",!0)}|^${this.weekdaysMin(Et,"",!0)}`,this._weekdaysParse[H]=new RegExp(Me.replace(".",""),"i")),!(ce(this._fullWeekdaysParse)&&ce(this._shortWeekdaysParse)&&ce(this._minWeekdaysParse)&&ce(this._weekdaysParse)))return;if(P&&"dddd"===b&&this._fullWeekdaysParse[H].test(E))return H;if(P&&"ddd"===b&&this._shortWeekdaysParse[H].test(E))return H;if(P&&"dd"===b&&this._minWeekdaysParse[H].test(E))return H;if(!P&&this._weekdaysParse[H].test(E))return H}}weekdaysRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysStrictRegex:this._weekdaysRegex):(_e(this,"_weekdaysRegex")||(this._weekdaysRegex=_t),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_e(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_t),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_e(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_t),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(E){return"p"===E.toLowerCase().charAt(0)}meridiem(E,b,P){return E>11?P?"pm":"PM":P?"am":"AM"}formatLongDate(E){this._longDateFormat=this._longDateFormat?this._longDateFormat:Ds;const b=this._longDateFormat[E],P=this._longDateFormat[E.toUpperCase()];return b||!P?b:(this._longDateFormat[E]=P.replace(/MMMM|MM|DD|dddd/g,H=>H.slice(1)),this._longDateFormat[E])}handleMonthStrictParse(E,b,P){const H=E.toLocaleLowerCase();let Me,Et,yn;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Me=0;Me<12;++Me)yn=new Date(2e3,Me),this._shortMonthsParse[Me]=this.monthsShort(yn,"").toLocaleLowerCase(),this._longMonthsParse[Me]=this.months(yn,"").toLocaleLowerCase();return P?"MMM"===b?(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:null):(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:null):"MMM"===b?(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:null)):(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:null))}handleWeekStrictParse(E,b,P){let H;const Me=E.toLocaleLowerCase();if(!this._weekdaysParse){let Et;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Et=0;Et<7;++Et){const yn=zr(new Date(Date.UTC(2e3,1)),Et,null,!0);this._minWeekdaysParse[Et]=this.weekdaysMin(yn).toLocaleLowerCase(),this._shortWeekdaysParse[Et]=this.weekdaysShort(yn).toLocaleLowerCase(),this._weekdaysParse[Et]=this.weekdays(yn,"").toLocaleLowerCase()}}if(ce(this._weekdaysParse)&&ce(this._shortWeekdaysParse)&&ce(this._minWeekdaysParse))return P?"dddd"===b?(H=this._weekdaysParse.indexOf(Me),-1!==H?H:null):"ddd"===b?(H=this._shortWeekdaysParse.indexOf(Me),-1!==H?H:null):(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null):"dddd"===b?(H=this._weekdaysParse.indexOf(Me),-1!==H||(H=this._shortWeekdaysParse.indexOf(Me),-1!==H)?H:(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null)):"ddd"===b?(H=this._shortWeekdaysParse.indexOf(Me),-1!==H||(H=this._weekdaysParse.indexOf(Me),-1!==H)?H:(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null)):(H=this._minWeekdaysParse.indexOf(Me),-1!==H||(H=this._weekdaysParse.indexOf(Me),-1!==H)?H:(H=this._shortWeekdaysParse.indexOf(Me),-1!==H?H:null))}computeMonthsParse(){const E=[],b=[],P=[];let H,Me;for(Me=0;Me<12;Me++)H=new Date(2e3,Me),E.push(this.monthsShort(H,"")),b.push(this.months(H,"")),P.push(this.months(H,"")),P.push(this.monthsShort(H,""));for(E.sort(oo),b.sort(oo),P.sort(oo),Me=0;Me<12;Me++)E[Me]=ut(E[Me]),b[Me]=ut(b[Me]);for(Me=0;Me<24;Me++)P[Me]=ut(P[Me]);this._monthsRegex=new RegExp(`^(${P.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${b.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${E.join("|")})`,"i")}computeWeekdaysParse(){const E=[],b=[],P=[],H=[];let Me;for(Me=0;Me<7;Me++){const Et=zr(new Date(Date.UTC(2e3,1)),Me,null,!0),yn=this.weekdaysMin(Et),Gn=this.weekdaysShort(Et),Rr=this.weekdays(Et);E.push(yn),b.push(Gn),P.push(Rr),H.push(yn),H.push(Gn),H.push(Rr)}for(E.sort(oo),b.sort(oo),P.sort(oo),H.sort(oo),Me=0;Me<7;Me++)b[Me]=ut(b[Me]),P[Me]=ut(P[Me]),H[Me]=ut(H[Me]);this._weekdaysRegex=new RegExp(`^(${H.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${P.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${b.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${E.join("|")})`,"i")}}function oo(f,E){return E.length-f.length}const Aa={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:Ds,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Gs,monthsShort:Ba,week:{dow:0,doy:6},weekdays:xl,weekdaysMin:Ws,weekdaysShort:So,meridiemParse:/[ap]\.?m?\.?/i};function qi(f,E,b){const P=Math.min(f.length,E.length),H=Math.abs(f.length-E.length);let Et,Me=0;for(Et=0;Et0;){if(b=io(H.slice(0,Me).join("-")),b)return b;if(E&&E.length>=Me&&qi(H,E,!0)>=Me-1)break;Me--}P++}return null}(ce(f)?f:[f]):Co}const Ia=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],ta=Ia.reduce((f,E)=>(f[E]=!0,f),{});function Ae(f){return f<0?Math.floor(f):Math.ceil(f)}function le(f){return 4800*f/146097}function Qe(f){return 146097*f/4800}let Ht=Math.round;const Qn_ss=44,Qn_s=45,Qn_m=45,Qn_h=22,Qn_d=26,Qn_M=11;function Ni(f,E,b,P,H){return H.relativeTime(E||1,!!b,f,P)}class sc{constructor(E,b={}){this._data={},this._locale=sr(),this._locale=b&&b._locale||sr();const H=E.year||0,Me=E.quarter||0,Et=E.month||0,yn=E.week||0,Gn=E.day||0,Rr=E.hours||0,Ts=E.minutes||0,pa=E.seconds||0,Ea=E.milliseconds||0;return this._isValid=function na(f){if(Object.keys(f).some(P=>P in ta&&null===f[P]||isNaN(f[P])))return!1;let b=!1;for(let P=0;P=0&&b>=0&&P>=0||E<=0&&b<=0&&P<=0||(E+=864e5*Ae(Qe(P)+b),b=0,P=0),H.milliseconds=E%1e3;const Me=Z(E/1e3);H.seconds=Me%60;const Et=Z(Me/60);H.minutes=Et%60;const yn=Z(Et/60);H.hours=yn%24,b+=Z(yn/24);const Gn=Z(le(b));P+=Gn,b-=Ae(Qe(Gn));const Rr=Z(P/12);return P%=12,H.day=b,H.month=P,H.year=Rr,f}(this)}isValid(){return this._isValid}humanize(E){if(!this.isValid())return this.localeData().invalidDate;const b=this.localeData();let P=function Zo(f,E,b){const P=hr(f).abs(),H=Ht(P.as("s")),Me=Ht(P.as("m")),Et=Ht(P.as("h")),yn=Ht(P.as("d")),Gn=Ht(P.as("M")),Rr=Ht(P.as("y")),Ts=H<=Qn_ss&&["s",H]||H0,b])}(this,!E,b);return E&&(P=b.pastFuture(+this,P)),b.postformat(P)}localeData(){return this._locale}locale(E){return E?(this._locale=sr(E)||this._locale,this):this._locale._abbr}abs(){const E=Math.abs,b=this._data;return this._milliseconds=E(this._milliseconds),this._days=E(this._days),this._months=E(this._months),b.milliseconds=E(b.milliseconds),b.seconds=E(b.seconds),b.minutes=E(b.minutes),b.hours=E(b.hours),b.month=E(b.month),b.year=E(b.year),this}as(E){if(!this.isValid())return NaN;let b,P;const H=this._milliseconds,Me=St(E);if("month"===Me||"year"===Me)return b=this._days+H/864e5,P=this._months+le(b),"month"===Me?P:P/12;switch(b=this._days+Math.round(Qe(this._months)),Me){case"week":return b/7+H/6048e5;case"day":return b+H/864e5;case"hours":return 24*b+H/36e5;case"minutes":return 1440*b+H/6e4;case"seconds":return 86400*b+H/1e3;case"milliseconds":return Math.floor(864e5*b)+H;default:throw new Error(`Unknown unit ${Me}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Lt(this._months/12):NaN}}function Tl(f){if(null==f._isValid){const E=Yt(f),b=Array.prototype.some.call(E.parsedDateParts,function(H){return null!=H});let P=!isNaN(f._d&&f._d.getTime())&&E.overflow<0&&!E.empty&&!E.invalidMonth&&!E.invalidWeekday&&!E.weekdayMismatch&&!E.nullInput&&!E.invalidFormat&&!E.userInvalidated&&(!E.meridiem||E.meridiem&&b);if(f._strict&&(P=P&&0===E.charsLeftOver&&0===E.unusedTokens.length&&void 0===E.bigHour),null!=Object.isFrozen&&Object.isFrozen(f))return P;f._isValid=P}return f._isValid}function Dl(f,E){return f._d=new Date(NaN),Object.assign(Yt(f),E||{userInvalidated:!0}),f}const kc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,El=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wa=/Z|[+-]\d\d(?::?\d\d)?/,Xo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],Pr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ms=/^\/?Date\((\-?\d+)/i,As={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},qr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Bs(f){if(!ee(f._i))return f;const E=f._i,b=kc.exec(E)||El.exec(E);let P,H,Me,Et,yn,Gn;if(!b)return f._isValid=!1,f;for(yn=0,Gn=Xo.length;ynE.formatLongDate(Et)||Et;for(H.lastIndex=0;P>=0&&H.test(b);)b=b.replace(H,Me),H.lastIndex=0,P-=1;return b}function ns(f,E,b){return f??E??b}function Os(f){const E=[];let b,P,H;if(f._d)return f;const Me=function vc(f){const E=new Date;return f._useUTC?[E.getUTCFullYear(),E.getUTCMonth(),E.getUTCDate()]:[E.getFullYear(),E.getMonth(),E.getDate()]}(f);for(f._w&&null==f._a[Jt]&&null==f._a[un]&&function Is(f){let E,b,P,H,Me,Et,yn;const Gn=f._w;if(null!=Gn.GG||null!=Gn.W||null!=Gn.E)H=1,Me=4,E=ns(Gn.GG,f._a[yt],ho(new Date,1,4).year),b=ns(Gn.W,1),P=ns(Gn.E,1),(P<1||P>7)&&(yn=!0);else{H=f._locale._week.dow,Me=f._locale._week.doy;const Rr=ho(new Date,H,Me);E=ns(Gn.gg,f._a[yt],Rr.year),b=ns(Gn.w,Rr.week),null!=Gn.d?(P=Gn.d,(P<0||P>6)&&(yn=!0)):null!=Gn.e?(P=Gn.e+H,(Gn.e<0||Gn.e>6)&&(yn=!0)):P=H}b<1||b>to(E,H,Me)?Yt(f)._overflowWeeks=!0:null!=yn?Yt(f)._overflowWeekday=!0:(Et=function uo(f,E,b,P,H){const yn=1+7*(E-1)+(7+b-P)%7+Fr(f,P,H);let Gn,Rr;return yn<=0?(Gn=f-1,Rr=ht(Gn)+yn):yn>ht(f)?(Gn=f+1,Rr=yn-ht(f)):(Gn=f,Rr=yn),{year:Gn,dayOfYear:Rr}}(E,b,P,H,Me),f._a[yt]=Et.year,f._dayOfYear=Et.dayOfYear)}(f),null!=f._dayOfYear&&(H=ns(f._a[yt],Me[yt]),(f._dayOfYear>ht(H)||0===f._dayOfYear)&&(Yt(f)._overflowDayOfYear=!0),P=new Date(Date.UTC(H,0,f._dayOfYear)),f._a[un]=P.getUTCMonth(),f._a[Jt]=P.getUTCDate()),b=0;b<3&&null==f._a[b];++b)f._a[b]=E[b]=Me[b];for(;b<7;b++)f._a[b]=E[b]=null==f._a[b]?2===b?1:0:f._a[b];24===f._a[tn]&&0===f._a[wn]&&0===f._a[Ln]&&0===f._a[Yn]&&(f._nextDay=!0,f._a[tn]=0),f._d=(f._useUTC?tt:he).apply(null,E);const Et=f._useUTC?f._d.getUTCDay():f._d.getDay();return null!=f._tzm&&f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),f._nextDay&&(f._a[tn]=24),f._w&&typeof f._w.d<"u"&&f._w.d!==Et&&(Yt(f).weekdayMismatch=!0),f}function Za(f){let E;const b=f._a;return b&&-2===Yt(f).overflow&&(E=b[un]<0||b[un]>11?un:b[Jt]<1||b[Jt]>It(b[yt],b[un])?Jt:b[tn]<0||b[tn]>24||24===b[tn]&&(0!==b[wn]||0!==b[Ln]||0!==b[Yn])?tn:b[wn]<0||b[wn]>59?wn:b[Ln]<0||b[Ln]>59?Ln:b[Yn]<0||b[Yn]>999?Yn:-1,Yt(f)._overflowDayOfYear&&(EJt)&&(E=Jt),Yt(f)._overflowWeeks&&-1===E&&(E=ti),Yt(f)._overflowWeekday&&-1===E&&(E=gi),Yt(f).overflow=E),f}const za="ISO_8601",$l="RFC_2822";function Tr(f){if(f._f===za)return Bs(f);if(f._f===$l)return ja(f);if(f._a=[],Yt(f).empty=!0,ce(f._f)||!f._i&&0!==f._i)return f;let E=f._i.toString(),b=0;const P=E.length,H=gs(f._f,f._locale).match(Be)||[];let Me,Et,yn,Gn;for(Me=0;Me0&&Yt(f).unusedInput.push(Gn),E=E.slice(E.indexOf(yn)+yn.length),b+=yn.length),at[Et]?(yn?Yt(f).empty=!1:Yt(f).unusedTokens.push(Et),Te(Et,yn,f)):f._strict&&!yn&&Yt(f).unusedTokens.push(Et);return Yt(f).charsLeftOver=P-b,E.length>0&&Yt(f).unusedInput.push(E),f._a[tn]<=12&&!0===Yt(f).bigHour&&f._a[tn]>0&&(Yt(f).bigHour=void 0),Yt(f).parsedDateParts=f._a.slice(0),Yt(f).meridiem=f._meridiem,f._a[tn]=function Lc(f,E,b){let P=E;if(null==b)return P;if(null!=f.meridiemHour)return f.meridiemHour(P,b);if(null==f.isPM)return P;const H=f.isPM(b);return H&&P<12&&(P+=12),!H&&12===P&&(P=0),P}(f._locale,f._a[tn],f._meridiem),Os(f),Za(f)}function xa(f){const E=Za(function Ga(f){let E=f._i;const b=f._f;return f._locale=f._locale||sr(f._l),null===E||void 0===b&&""===E?Dl(f,{nullInput:!0}):(ee(E)&&(f._i=E=f._locale.preparse(E,b)),re(E)?(f._d=_i(E),f):(ce(b)?function Kl(f){let E,b,P,H,Me;if(!f._f||0===f._f.length)return Yt(f).invalidFormat=!0,Dl(f);for(Me=0;Meee(P)?parseInt(P,10):P),Os(f)}else if(Re(E))!function Rs(f){if(f._d)return f;const E=f._i;if(Re(E)){const b=function Zt(f){const E={};let b,P;for(P in f)_e(f,P)&&(b=St(P),b&&(E[b]=f[P]));return E}(E);f._a=[b.year,b.month,b.day,b.hours,b.minutes,b.seconds,b.milliseconds].map(P=>ee(P)?parseInt(P,10):P)}return Os(f)}(f);else{if(!oe(E))return Dl(f);f._d=new Date(E)}}(f),Tl(f)||(f._d=null),f))}(f));return E._d=new Date(null!=E._d?E._d.getTime():NaN),Tl(Object.assign({},E,{_isValid:null}))||(E._d=new Date(NaN)),E}function ra(f,E,b,P,H){return re(f)?f:function bc(f,E,b,P,H){const Me={};let Et=f;return(Re(Et)&&function mt(f){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(f).length;let E;for(E in f)if(f.hasOwnProperty(E))return!1;return!0}(Et)||ce(Et)&&0===Et.length)&&(Et=void 0),Me._useUTC=Me._isUTC=H,Me._l=b,Me._i=Et,Me._f=E,Me._strict=P,xa(Me)}(f,E,b,P,H)._d}function Al(f){return f instanceof Date?new Date(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()):null}function is(f){return f<0?-1*Math.round(-1*f):Math.round(f)}function ro(f,E,b="milliseconds"){return!(!f||!E)&&("milliseconds"===b?f.valueOf()>E.valueOf():E.valueOf()=3&&f%100<=10?3:f%100>=11?4:5},ko={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},rs=function(f){return function(E,b){const P=dl(E);let H=ko[f][dl(E)];return 2===P&&(H=H[b?0:1]),H.replace(/%d/i,E.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),rs("s"),rs("s"),rs("m"),rs("m"),rs("h"),rs("h"),rs("d"),rs("d"),rs("M"),rs("M"),rs("y"),rs("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const lc="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),Ei="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(f,E){let b,P=[];for(b=0;b<12;b++)P[b]=new RegExp("^"+f[b]+"$|^"+E[b]+"$","i")})(lc,Ei),function(f){let E,b=[];for(E=0;E<12;E++)b[E]=new RegExp("^"+f[E]+"$","i")}(Ei),function(f){let E,b=[];for(E=0;E<12;E++)b[E]=new RegExp("^"+f[E]+"$","i")}(lc),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const pe={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:f=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===f,meridiem:(f,E,b)=>f<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(f,E){const b=pe.longDateFormat[E]?pe.longDateFormat[E]:E;return-1!==b.indexOf("YYYY",b.length-4)?f.substr(0,f.length-4)+(parseInt(f.substr(f.length-4),10)-543):f},getFullYear:(f,E=!1)=>543+(E?f.getUTCFullYear():f.getFullYear())};function Oi(f){return function(E){return f+"\u043e"+(11===Ze(E)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),Oi("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),Oi("[\u0417\u0430\u0432\u0442\u0440\u0430 "),Oi("[\u0412\u0447\u043e\u0440\u0430 "),Oi("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\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".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");var Zs=C(4060),Uc=C(6223),ls=C(5619),Gd=C(1954),Sd=C(2631);const Ad=new class Eu extends Sd.v{}(class _c extends Gd.o{constructor(E,b){super(E,b),this.scheduler=E,this.work=b}schedule(E,b=0){return b>0?super.schedule(E,b):(this.delay=b,this.state=E,this.scheduler.flush(this),this)}execute(E,b){return b>0||this.closed?super.execute(E,b):this._execute(E,b)}requestAsyncId(E,b,P=0){return null!=P&&P>0||null==P&&this.delay>0?super.requestAsyncId(E,b,P):(E.flush(this),0)}});var Pl=C(5592),ua=C(3093),Or=C(6424);class Vc extends ls.X{constructor(E,b,P){super(E),b.pipe((0,ua.Q)(Ad)).pipe((0,Or.R)((Et,yn)=>yn?P(Et,yn):Et,E)).subscribe(Et=>this.next(Et))}}class zo extends Pl.y{constructor(E,b,P){super(),this._dispatcher=E,this._reducer=b,this.source=P}select(E){return(this.source?.pipe((0,D.U)(E))||(new Pl.y).pipe((0,D.U)(E))).pipe((0,w.x)())}lift(E){const b=new zo(this._dispatcher,this._reducer,this);return b.operator=E,b}dispatch(E){this._dispatcher.next(E)}next(E){this._dispatcher.next(E)}error(E){this._dispatcher.error(E)}complete(){}}var zi=C(6814);function Nl(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function La(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(H.minuteStep))}),e._UZ(2,"span",2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canIncrementMinutes||!b.isEditable)}}function $d(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0"),e.qZA())}function mc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(H.secondsStep))}),e._UZ(2,"span",2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canIncrementSeconds||!b.isEditable)}}function jc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function _l(f,E){1&f&&e._UZ(0,"td")}function Su(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0:\xa0"),e.qZA())}function nu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4)(1,"input",5),e.NdJ("wheel",function(H){e.CHM(b);const Me=e.oxw();return Me.prevDef(H),e.KtG(Me.changeMinutes(Me.minuteStep*Me.wheelSign(H),"wheel"))})("keydown.ArrowUp",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(H.minuteStep,"key"))})("keydown.ArrowDown",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(-H.minuteStep,"key"))})("change",function(H){e.CHM(b);const Me=e.oxw();return e.KtG(Me.updateMinutes(H.target))}),e.qZA()()}if(2&f){const b=e.oxw();e.ekj("has-error",b.invalidMinutes),e.xp6(1),e.ekj("is-invalid",b.invalidMinutes),e.Q6J("placeholder",b.minutesPlaceholder)("readonly",b.readonlyInput)("disabled",b.disabled)("value",b.minutes),e.uIk("aria-label",b.labelMinutes)}}function Pa(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0:\xa0"),e.qZA())}function ao(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4)(1,"input",5),e.NdJ("wheel",function(H){e.CHM(b);const Me=e.oxw();return Me.prevDef(H),e.KtG(Me.changeSeconds(Me.secondsStep*Me.wheelSign(H),"wheel"))})("keydown.ArrowUp",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(H.secondsStep,"key"))})("keydown.ArrowDown",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(-H.secondsStep,"key"))})("change",function(H){e.CHM(b);const Me=e.oxw();return e.KtG(Me.updateSeconds(H.target))}),e.qZA()()}if(2&f){const b=e.oxw();e.ekj("has-error",b.invalidSeconds),e.xp6(1),e.ekj("is-invalid",b.invalidSeconds),e.Q6J("placeholder",b.secondsPlaceholder)("readonly",b.readonlyInput)("disabled",b.disabled)("value",b.seconds),e.uIk("aria-label",b.labelSeconds)}}function Zc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Go(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"button",8),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.toggleMeridian())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.isEditable||!b.canToggleMeridian),e.Q6J("disabled",!b.isEditable||!b.canToggleMeridian),e.xp6(1),e.hij("",b.meridian," ")}}function Kd(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function zc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(-H.minuteStep))}),e._UZ(2,"span",7),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canDecrementMinutes||!b.isEditable)}}function Jd(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0"),e.qZA())}function nl(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(-H.secondsStep))}),e._UZ(2,"span",7),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canDecrementSeconds||!b.isEditable)}}function Gc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function qd(f,E){1&f&&e._UZ(0,"td")}let ml=(()=>{class f{static#e=this.WRITE_VALUE="[timepicker] write value from ng model";static#t=this.CHANGE_HOURS="[timepicker] change hours";static#n=this.CHANGE_MINUTES="[timepicker] change minutes";static#i=this.CHANGE_SECONDS="[timepicker] change seconds";static#r=this.SET_TIME_UNIT="[timepicker] set time unit";static#o=this.UPDATE_CONTROLS="[timepicker] update controls";writeValue(b){return{type:f.WRITE_VALUE,payload:b}}changeHours(b){return{type:f.CHANGE_HOURS,payload:b}}changeMinutes(b){return{type:f.CHANGE_MINUTES,payload:b}}changeSeconds(b){return{type:f.CHANGE_SECONDS,payload:b}}setTime(b){return{type:f.SET_TIME_UNIT,payload:b}}updateControls(b){return{type:f.UPDATE_CONTROLS,payload:b}}static#s=this.\u0275fac=function(P){return new(P||f)};static#a=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const Oc=10,Au=24,iu=12,pi=60,Wc=60;function Xr(f){return!(!f||f instanceof Date&&isNaN(f.getHours()))&&("string"!=typeof f||Xr(new Date(f)))}function Mc(f,E){return!(f.min&&Ef.max)}function No(f){return typeof f>"u"?NaN:"number"==typeof f?f:parseInt(f,Oc)}function Ye(f,E=!1){const b=No(f);return isNaN(b)||b<0||b>(E?iu:Au)?NaN:b}function it(f){const E=No(f);return isNaN(E)||E<0||E>pi?NaN:E}function pt(f){const E=No(f);return isNaN(E)||E<0||E>Wc?NaN:E}function sn(f){return"string"==typeof f?new Date(f):f}function Bn(f,E){if(!f)return Bn(Hn(new Date,0,0,0),E);if(!E)return f;let b=f.getHours(),P=f.getMinutes(),H=f.getSeconds();return E.hour&&(b+=No(E.hour)),E.minute&&(P+=No(E.minute)),E.seconds&&(H+=No(E.seconds)),Hn(f,b,P,H)}function ri(f,E){let b=Ye(E.hour);const P=it(E.minute),H=pt(E.seconds)||0;return E.isPM&&12!==b&&(b+=iu),f?isNaN(b)||isNaN(P)?f:Hn(f,b,P,H):isNaN(b)||isNaN(P)?f:Hn(new Date,b,P,H)}function Hn(f,E,b,P){const H=new Date(f.getFullYear(),f.getMonth(),f.getDate(),E,b,P,f.getMilliseconds());return H.setFullYear(f.getFullYear()),H.setMonth(f.getMonth()),H.setDate(f.getDate()),H}function hi(f){const E=f.toString();return E.length>1?E:`0${E}`}function Ci(f,E){return!isNaN(Ye(f,E))}function Hi(f){return!isNaN(it(f))}function Wr(f){return!isNaN(pt(f))}function Fl(f,E="0",b="0",P){return Ci(f,P)&&Hi(E)&&Wr(b)}function ec(f,E){return!(f.readonlyInput||f.disabled||E&&("wheel"===E.source&&!f.mousewheel||"key"===E.source&&!f.arrowkeys))}function Kc(f){const{hourStep:E,minuteStep:b,secondsStep:P,readonlyInput:H,disabled:Me,mousewheel:Et,arrowkeys:yn,showSpinners:Gn,showMeridian:Rr,showSeconds:Ts,meridians:pa,min:Ea,max:Lh}=f;return{hourStep:E,minuteStep:b,secondsStep:P,readonlyInput:H,disabled:Me,mousewheel:Et,arrowkeys:yn,showSpinners:Gn,showMeridian:Rr,showSeconds:Ts,meridians:pa,min:Ea,max:Lh}}let Cc=(()=>{class f{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})();const Ic={value:void 0,config:new Cc,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function cs(f=Ic,E){switch(E.type){case ml.WRITE_VALUE:return Object.assign({},f,{value:E.payload});case ml.CHANGE_HOURS:{if(!ec(f.config,E.payload)||!function $c(f,E){return!(!f.step||f.step>0&&!E.canIncrementHours||f.step<0&&!E.canDecrementHours)}(E.payload,f.controls))return f;const b=Bn(f.value,{hour:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.CHANGE_MINUTES:{if(!ec(f.config,E.payload)||!function Da(f,E){return!(!f.step||f.step>0&&!E.canIncrementMinutes||f.step<0&&!E.canDecrementMinutes)}(E.payload,f.controls))return f;const b=Bn(f.value,{minute:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.CHANGE_SECONDS:{if(!ec(f.config,E.payload)||!function gl(f,E){return!(!f.step||f.step>0&&!E.canIncrementSeconds||f.step<0&&!E.canDecrementSeconds)}(E.payload,f.controls))return f;const b=Bn(f.value,{seconds:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.SET_TIME_UNIT:{if(!ec(f.config))return f;const b=ri(f.value,E.payload);return Object.assign({},f,{value:b})}case ml.UPDATE_CONTROLS:{const b=function Qd(f,E){const{min:H,max:Me,hourStep:Et,minuteStep:yn,secondsStep:Gn,showSeconds:Rr}=E,Ts={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!f)return Ts;if(Me){const pa=Bn(f,{hour:Et});if(Ts.canIncrementHours=Me>pa&&f.getHours()+Et<24,!Ts.canIncrementHours){const Ea=Bn(f,{minute:yn});Ts.canIncrementMinutes=Rr?Me>Ea:Me>=Ea}if(!Ts.canIncrementMinutes){const Ea=Bn(f,{seconds:Gn});Ts.canIncrementSeconds=Me>=Ea}f.getHours()<12&&(Ts.canToggleMeridian=Bn(f,{hour:12})=12&&(Ts.canToggleMeridian=Bn(f,{hour:-12})>H)}return Ts}(f.value,E.payload),P={value:f.value,config:E.payload,controls:b};return f.config.showMeridian!==P.config.showMeridian&&f.value&&(P.value=new Date(f.value)),Object.assign({},f,P)}default:return f}}let gc=(()=>{class f extends zo{constructor(){const b=new ls.X({type:"[mini-ngrx] dispatcher init"});super(b,cs,new Vc(Ic,b,cs))}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const vl={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>Yl),multi:!0};let Yl=(()=>{class f{constructor(b,P,H,Me){this._cd=P,this._store=H,this._timepickerActions=Me,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new e.vpe,this.meridianChange=new e.vpe,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=b,Object.assign(this,this.config),this.timepickerSub=H.select(Et=>Et.value).subscribe(Et=>{this._renderTime(Et),this.onChange(Et),this._store.dispatch(this._timepickerActions.updateControls(Kc(this)))}),H.select(Et=>Et.controls).subscribe(Et=>{const yn=Fl(this.hours,this.minutes,this.seconds,this.isPM()),Gn=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||yn;this.isValid.emit(Gn),Object.assign(this,Et),P.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(b){b.preventDefault()}wheelSign(b){return-1*Math.sign(b.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(Kc(this)))}changeHours(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:b,source:P}))}changeMinutes(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:b,source:P}))}changeSeconds(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:b,source:P}))}updateHours(b){this.resetValidation(),this.hours=b.value;const P=Ci(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(b){this.resetValidation(),this.minutes=b.value;const P=Hi(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(b){this.resetValidation(),this.seconds=b.value;const P=Wr(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function Ns(f,E,b){const P=ri(new Date,f);return!(!P||E&&P>E||b&&P=12?1:0],this.meridianChange.emit(this.meridian),Me%=12,0===Me&&(Me=12)),this.hours=hi(Me),this.minutes=hi(P.getMinutes()),this.seconds=hi(P.getUTCSeconds())}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Cc),e.Y36(e.sBO),e.Y36(gc),e.Y36(ml))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meridians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[e._Bn([vl,gc]),e.TTD],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],["href","javascript:void(0);",1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"placeholder","readonly","disabled","value","wheel","keydown.ArrowUp","keydown.ArrowDown","change"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"disabled","click"]],template:function(P,H){1&P&&(e.TgZ(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),e.NdJ("click",function(){return H.changeHours(H.hourStep)}),e._UZ(5,"span",2),e.qZA()(),e.YNc(6,Nl,2,0,"td",3),e.YNc(7,La,3,2,"td",3),e.YNc(8,$d,2,0,"td",3),e.YNc(9,mc,3,2,"td",3),e.YNc(10,jc,2,0,"td",3),e.YNc(11,_l,1,0,"td",3),e.qZA(),e.TgZ(12,"tr")(13,"td",4)(14,"input",5),e.NdJ("wheel",function(Et){return H.prevDef(Et),H.changeHours(H.hourStep*H.wheelSign(Et),"wheel")})("keydown.ArrowUp",function(){return H.changeHours(H.hourStep,"key")})("keydown.ArrowDown",function(){return H.changeHours(-H.hourStep,"key")})("change",function(Et){return H.updateHours(Et.target)}),e.qZA()(),e.YNc(15,Su,2,0,"td",3),e.YNc(16,nu,2,9,"td",6),e.YNc(17,Pa,2,0,"td",3),e.YNc(18,ao,2,9,"td",6),e.YNc(19,Zc,2,0,"td",3),e.YNc(20,Go,3,4,"td",3),e.qZA(),e.TgZ(21,"tr",0)(22,"td")(23,"a",1),e.NdJ("click",function(){return H.changeHours(-H.hourStep)}),e._UZ(24,"span",7),e.qZA()(),e.YNc(25,Kd,2,0,"td",3),e.YNc(26,zc,3,2,"td",3),e.YNc(27,Jd,2,0,"td",3),e.YNc(28,nl,3,2,"td",3),e.YNc(29,Gc,2,0,"td",3),e.YNc(30,qd,1,0,"td",3),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("hidden",!H.showSpinners),e.xp6(2),e.ekj("disabled",!H.canIncrementHours||!H.isEditable),e.xp6(2),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(2),e.ekj("has-error",H.invalidHours),e.xp6(1),e.ekj("is-invalid",H.invalidHours),e.Q6J("placeholder",H.hoursPlaceholder)("readonly",H.readonlyInput)("disabled",H.disabled)("value",H.hours),e.uIk("aria-label",H.labelHours),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("hidden",!H.showSpinners),e.xp6(2),e.ekj("disabled",!H.canDecrementHours||!H.isEditable),e.xp6(2),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian))},dependencies:[zi.O5],styles:[".bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{transform:rotate(45deg);top:2px}.bs-chevron-down{transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}\n"],encapsulation:2,changeDetection:0})}return f})(),Gu=(()=>{class f{static forRoot(){return{ngModule:f,providers:[ml,gc]}}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275mod=e.oAB({type:f});static#n=this.\u0275inj=e.cJS({providers:[gc],imports:[zi.ez]})}return f})();var Fa=C(6825),Od=C(7394),Ou=C(2572),Tc=C(8645),Id=C(2268),F=C(1835);function Xe(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"button",2),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw();return e.KtG(Et.selectFromRanges(Me))}),e._uU(1),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw();e.ekj("selected",b.value===P.selectedRange),e.xp6(1),e.hij(" ",b.label," ")}}function g(f,E){1&f&&e._UZ(0,"bs-current-date",4)}function L(f,E){1&f&&e._UZ(0,"bs-timepicker")}const R=[[["bs-datepicker-navigation-view"]],"*"],ye=["bs-datepicker-navigation-view","*"],Dt=["bsDatepickerDayDecorator",""];function Mn(f,E){if(1&f){const b=e.EpF();e.ynx(0),e._uU(1," \u200b "),e.TgZ(2,"button",2),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.view("month"))}),e.TgZ(3,"span"),e._uU(4),e.qZA()(),e.BQk()}if(2&f){const b=e.oxw();e.xp6(2),e.Q6J("disabled",b.isDisabled),e.xp6(2),e.Oqu(b.calendar.monthTitle)}}function vi(f,E){1&f&&e._UZ(0,"th")}function Fo(f,E){if(1&f&&(e.TgZ(0,"th",5),e._uU(1),e.qZA()),2&f){const b=E.index,P=e.oxw();e.xp6(1),e.hij("",P.calendar.weekdays[b]," ")}}function Ya(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",11),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.selectWeek(H))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw(2).index,P=e.oxw();e.xp6(1),e.Oqu(P.calendar.weekNumbers[b])}}function Rd(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.selectWeek(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.weekHoverHandler(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.weekHoverHandler(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw(2).index,P=e.oxw();e.xp6(1),e.Oqu(P.calendar.weekNumbers[b])}}function kd(f,E){if(1&f&&(e.TgZ(0,"td",8),e.YNc(1,Ya,2,1,"span",9),e.YNc(2,Rd,2,1,"span",10),e.qZA()),2&f){const b=e.oxw(2);e.ekj("active-week",b.isWeekHovered),e.xp6(1),e.Q6J("ngIf",b.isiOS),e.xp6(1),e.Q6J("ngIf",!b.isiOS)}}function tc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.s9C("tooltip",b.tooltipText),e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 3")}}function Iu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",18),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 2")}}function Jh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 1")}}function qh(f,E){if(1&f&&(e.TgZ(0,"td",13),e.YNc(1,tc,2,3,"span",14),e.YNc(2,Iu,2,2,"span",15),e.YNc(3,Jh,2,2,"span",16),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!b.isiOS&&b.isShowTooltip),e.xp6(1),e.Q6J("ngIf",!b.isiOS&&!b.isShowTooltip),e.xp6(1),e.Q6J("ngIf",b.isiOS)}}function Xd(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,kd,3,4,"td",6),e.YNc(2,qh,4,3,"td",7),e.qZA()),2&f){const b=E.$implicit,P=e.oxw();e.xp6(1),e.Q6J("ngIf",P.options&&P.options.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",b.days)}}function Ru(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.viewMonth(Me))})("mouseenter",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverMonth(Me,!0))})("mouseleave",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverMonth(Me,!1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&f){const b=E.$implicit;e.ekj("disabled",b.isDisabled)("is-highlighted",b.isHovered),e.xp6(1),e.ekj("selected",b.isSelected),e.xp6(1),e.Oqu(b.label)}}function ru(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,Ru,3,7,"td",3),e.qZA()),2&f){const b=E.$implicit;e.xp6(1),e.Q6J("ngForOf",b)}}function ou(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.viewYear(Me))})("mouseenter",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverYear(Me,!0))})("mouseleave",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverYear(Me,!1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&f){const b=E.$implicit;e.ekj("disabled",b.isDisabled)("is-highlighted",b.isHovered),e.xp6(1),e.ekj("selected",b.isSelected),e.xp6(1),e.Oqu(b.label)}}function su(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,ou,3,7,"td",3),e.qZA()),2&f){const b=E.$implicit;e.xp6(1),e.Q6J("ngForOf",b)}}const Ir=["startTP"];function ha(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-days-calendar-view",11),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.dayHoverHandler(H))})("onHoverWeek",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.weekHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.daySelectHandler(H))}),e.ALo(1,"async"),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)("isDisabled",P.isDatePickerDisabled)("options",e.lcZ(1,5,P.options$))}}function il(f,E){if(1&f&&e._UZ(0,"timepicker",13,16),2&f){const b=e.oxw(4);e.Q6J("disabled",b.isDatePickerDisabled)}}function Fs(f,E){if(1&f&&(e.TgZ(0,"div",12),e._UZ(1,"timepicker",13,14),e.YNc(3,il,2,1,"timepicker",15),e.qZA()),2&f){const b=e.oxw(3);e.xp6(1),e.Q6J("disabled",b.isDatePickerDisabled),e.xp6(2),e.Q6J("ngIf",b.isRangePicker)}}function ds(f,E){if(1&f&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,ha,2,7,"bs-days-calendar-view",9),e.ALo(3,"async"),e.qZA(),e.YNc(4,Fs,4,2,"div",10),e.BQk()),2&f){const b=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,b.daysCalendar$)),e.xp6(2),e.Q6J("ngIf",b.withTimepicker)}}function fa(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-month-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function Qh(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,fa,1,3,"bs-month-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.monthsCalendar))}}function Xh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-years-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function ef(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,Xh,1,3,"bs-years-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.yearsCalendar))}}function gh(f,E){1&f&&(e.TgZ(0,"div",19)(1,"button",20),e._uU(2,"Apply"),e.qZA(),e.TgZ(3,"button",21),e._uU(4,"Cancel"),e.qZA()())}function au(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",24)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.setToday())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("today-left","left"===b.todayPos)("today-right","right"===b.todayPos)("today-center","center"===b.todayPos),e.xp6(2),e.Oqu(b.todayBtnLbl)}}function vh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",26)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.clearDate())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("clear-left","left"===b.clearPos)("clear-right","right"===b.clearPos)("clear-center","center"===b.clearPos),e.xp6(2),e.Oqu(b.clearBtnLbl)}}function tf(f,E){if(1&f&&(e.TgZ(0,"div",19),e.YNc(1,au,3,7,"div",22),e.YNc(2,vh,3,7,"div",23),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",b.showTodayBtn),e.xp6(1),e.Q6J("ngIf",b.showClearBtn)}}function nf(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",27)(1,"bs-custom-date-view",28),e.NdJ("onSelect",function(H){e.CHM(b);const Me=e.oxw(2);return e.KtG(Me.setRangeOnCalendar(H))}),e.qZA()()}if(2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("selectedRange",b.chosenRange)("ranges",b.customRanges)("customRangeLabel",b.customRangeBtnLbl)}}function eo(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.NdJ("@datepickerAnimation.done",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.positionServiceEnable())}),e.TgZ(2,"div",3),e.ALo(3,"async"),e.YNc(4,ds,5,4,"ng-container",4),e.YNc(5,Qh,3,3,"div",5),e.YNc(6,ef,3,3,"div",5),e.qZA(),e.YNc(7,gh,5,0,"div",6),e.YNc(8,tf,3,2,"div",6),e.qZA(),e.YNc(9,nf,2,3,"div",7),e.qZA()}if(2&f){const b=e.oxw();e.Q6J("ngClass",b.containerClass),e.xp6(1),e.Q6J("@datepickerAnimation",b.animationState),e.xp6(1),e.Q6J("ngSwitch",e.lcZ(3,9,b.viewMode)),e.xp6(2),e.Q6J("ngSwitchCase","day"),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",b.showTodayBtn||b.showClearBtn),e.xp6(1),e.Q6J("ngIf",b.customRanges&&b.customRanges.length>0)}}const Zf=["endTP"];function qu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-days-calendar-view",11),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.dayHoverHandler(H))})("onHoverWeek",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.weekHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.daySelectHandler(H))}),e.ALo(1,"async"),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)("isDisabled",P.isDatePickerDisabled)("options",e.lcZ(1,5,P.options$))}}function zf(f,E){if(1&f&&e._UZ(0,"timepicker",13,16),2&f){const b=e.oxw(4);e.Q6J("disabled",b.isDatePickerDisabled)}}function cu(f,E){if(1&f&&(e.TgZ(0,"div",12),e._UZ(1,"timepicker",13,14),e.YNc(3,zf,2,1,"timepicker",15),e.qZA()),2&f){const b=e.oxw(3);e.xp6(1),e.Q6J("disabled",b.isDatePickerDisabled),e.xp6(2),e.Q6J("ngIf",b.isRangePicker)}}function xh(f,E){if(1&f&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,qu,2,7,"bs-days-calendar-view",9),e.ALo(3,"async"),e.qZA(),e.YNc(4,cu,4,2,"div",10),e.BQk()),2&f){const b=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,b.daysCalendar$)),e.xp6(2),e.Q6J("ngIf",b.withTimepicker)}}function Mh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-month-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function si(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,Mh,1,3,"bs-month-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.monthsCalendar))}}function du(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-years-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function Hl(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,du,1,3,"bs-years-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.yearsCalendar))}}function af(f,E){1&f&&(e.TgZ(0,"div",19)(1,"button",20),e._uU(2,"Apply"),e.qZA(),e.TgZ(3,"button",21),e._uU(4,"Cancel"),e.qZA()())}function nc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",24)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.setToday())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("today-left","left"===b.todayPos)("today-right","right"===b.todayPos)("today-center","center"===b.todayPos),e.xp6(2),e.Oqu(b.todayBtnLbl)}}function Ch(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",26)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.clearDate())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("clear-left","left"===b.clearPos)("clear-right","right"===b.clearPos)("clear-center","center"===b.clearPos),e.xp6(2),e.Oqu(b.clearBtnLbl)}}function lf(f,E){if(1&f&&(e.TgZ(0,"div",19),e.YNc(1,nc,3,7,"div",22),e.YNc(2,Ch,3,7,"div",23),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",b.showTodayBtn),e.xp6(1),e.Q6J("ngIf",b.showClearBtn)}}function uu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",27)(1,"bs-custom-date-view",28),e.NdJ("onSelect",function(H){e.CHM(b);const Me=e.oxw(2);return e.KtG(Me.setRangeOnCalendar(H))}),e.qZA()()}if(2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("selectedRange",b.chosenRange)("ranges",b.customRanges)("customRangeLabel",b.customRangeBtnLbl)}}function ku(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.NdJ("@datepickerAnimation.done",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.positionServiceEnable())}),e.TgZ(2,"div",3),e.ALo(3,"async"),e.YNc(4,xh,5,4,"ng-container",4),e.YNc(5,si,3,3,"div",5),e.YNc(6,Hl,3,3,"div",5),e.qZA(),e.YNc(7,af,5,0,"div",6),e.YNc(8,lf,3,2,"div",6),e.qZA(),e.YNc(9,uu,2,3,"div",7),e.qZA()}if(2&f){const b=e.oxw();e.Q6J("ngClass",b.containerClass),e.xp6(1),e.Q6J("@datepickerAnimation",b.animationState),e.xp6(1),e.Q6J("ngSwitch",e.lcZ(3,9,b.viewMode)),e.xp6(2),e.Q6J("ngSwitchCase","day"),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",b.showTodayBtn||b.showClearBtn),e.xp6(1),e.Q6J("ngIf",b.customRanges&&b.customRanges.length>0)}}let ol=(()=>{class f{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})();const Pd="220ms cubic-bezier(0, 0, 0.2, 1)",Ul=(0,Fa.X$)("datepickerAnimation",[(0,Fa.SB)("animated-down",(0,Fa.oB)({height:"*",overflow:"hidden"})),(0,Fa.eR)("* => animated-down",[(0,Fa.oB)({height:0,overflow:"hidden"}),(0,Fa.jt)(Pd)]),(0,Fa.SB)("animated-up",(0,Fa.oB)({height:"*",overflow:"hidden"})),(0,Fa.eR)("* => animated-up",[(0,Fa.oB)({height:"*",overflow:"hidden"}),(0,Fa.jt)(Pd)]),(0,Fa.eR)("* => unanimated",(0,Fa.jt)("0s"))]);class Jc{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new Od.w0,this.selectedTimeSub=new Od.w0}set minDate(E){this._effects?.setMinDate(E)}set maxDate(E){this._effects?.setMaxDate(E)}set daysDisabled(E){this._effects?.setDaysDisabled(E)}set datesDisabled(E){this._effects?.setDatesDisabled(E)}set datesEnabled(E){this._effects?.setDatesEnabled(E)}set isDisabled(E){this._effects?.setDisabled(E)}set dateCustomClasses(E){this._effects?.setDateCustomClasses(E)}set dateTooltipTexts(E){this._effects?.setDateTooltipTexts(E)}set daysCalendar$(E){this._daysCalendar$=E,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(b=>{this.multipleCalendars=!!b&&b.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(E){}navigateTo(E){}dayHoverHandler(E){}weekHoverHandler(E){}monthHoverHandler(E){}yearHoverHandler(E){}timeSelectHandler(E,b){}daySelectHandler(E){}monthSelectHandler(E){}yearSelectHandler(E){}setRangeOnCalendar(E){}setToday(){}clearDate(){}_stopPropagation(E){E.stopPropagation()}}let lo=(()=>{class f{static#e=this.CALCULATE="[datepicker] calculate dates matrix";static#t=this.FORMAT="[datepicker] format datepicker values";static#n=this.FLAG="[datepicker] set flags";static#i=this.SELECT="[datepicker] select date";static#r=this.NAVIGATE_OFFSET="[datepicker] shift view date";static#o=this.NAVIGATE_TO="[datepicker] change view date";static#s=this.SET_OPTIONS="[datepicker] update render options";static#a=this.HOVER="[datepicker] hover date";static#l=this.CHANGE_VIEWMODE="[datepicker] switch view mode";static#c=this.SET_MIN_DATE="[datepicker] set min date";static#d=this.SET_MAX_DATE="[datepicker] set max date";static#u=this.SET_DAYSDISABLED="[datepicker] set days disabled";static#h=this.SET_DATESDISABLED="[datepicker] set dates disabled";static#f=this.SET_DATESENABLED="[datepicker] set dates enabled";static#p=this.SET_IS_DISABLED="[datepicker] set is disabled";static#_=this.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes";static#m=this.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts";static#g=this.SET_LOCALE="[datepicker] set datepicker locale";static#v=this.SELECT_TIME="[datepicker] select time";static#b=this.SELECT_RANGE="[daterangepicker] select dates range";calculate(){return{type:f.CALCULATE}}format(){return{type:f.FORMAT}}flag(){return{type:f.FLAG}}select(b){return{type:f.SELECT,payload:b}}selectTime(b,P){return{type:f.SELECT_TIME,payload:{date:b,index:P}}}changeViewMode(b){return{type:f.CHANGE_VIEWMODE,payload:b}}navigateTo(b){return{type:f.NAVIGATE_TO,payload:b}}navigateStep(b){return{type:f.NAVIGATE_OFFSET,payload:b}}setOptions(b){return{type:f.SET_OPTIONS,payload:b}}selectRange(b){return{type:f.SELECT_RANGE,payload:b}}hoverDay(b){return{type:f.HOVER,payload:b.isHovered?b.cell.date:null}}minDate(b){return{type:f.SET_MIN_DATE,payload:b}}maxDate(b){return{type:f.SET_MAX_DATE,payload:b}}daysDisabled(b){return{type:f.SET_DAYSDISABLED,payload:b}}datesDisabled(b){return{type:f.SET_DATESDISABLED,payload:b}}datesEnabled(b){return{type:f.SET_DATESENABLED,payload:b}}isDisabled(b){return{type:f.SET_IS_DISABLED,payload:b}}setDateCustomClasses(b){return{type:f.SET_DATE_CUSTOM_CLASSES,payload:b}}setDateTooltipTexts(b){return{type:f.SET_DATE_TOOLTIP_TEXTS,payload:b}}setLocale(b){return{type:f.SET_LOCALE,payload:b}}static#y=this.\u0275fac=function(P){return new(P||f)};static#w=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),fu=(()=>{class f{constructor(){this._defaultLocale="en",this._locale=new ls.X(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(b){b!==this.currentLocale&&this._locale.next(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),ud=(()=>{class f{constructor(b,P){this._actions=b,this._localeService=P,this._subs=[]}init(b){return this._store=b,this}setValue(b){this._store?.dispatch(this._actions.select(b))}setRangeValue(b){this._store?.dispatch(this._actions.selectRange(b))}setMinDate(b){return this._store?.dispatch(this._actions.minDate(b)),this}setMaxDate(b){return this._store?.dispatch(this._actions.maxDate(b)),this}setDaysDisabled(b){return this._store?.dispatch(this._actions.daysDisabled(b)),this}setDatesDisabled(b){return this._store?.dispatch(this._actions.datesDisabled(b)),this}setDatesEnabled(b){return this._store?.dispatch(this._actions.datesEnabled(b)),this}setDisabled(b){return this._store?.dispatch(this._actions.isDisabled(b)),this}setDateCustomClasses(b){return this._store?.dispatch(this._actions.setDateCustomClasses(b)),this}setDateTooltipTexts(b){return this._store?.dispatch(this._actions.setDateTooltipTexts(b)),this}setOptions(b){const P=Object.assign({locale:this._localeService.currentLocale},b);return this._store?.dispatch(this._actions.setOptions(P)),this}setBindings(b){return this._store?(b.selectedTime=this._store.select(P=>P.selectedTime).pipe((0,l.h)(P=>!!P)),b.daysCalendar$=this._store.select(P=>P.flaggedMonths).pipe((0,l.h)(P=>!!P)),b.monthsCalendar=this._store.select(P=>P.flaggedMonthsCalendar).pipe((0,l.h)(P=>!!P)),b.yearsCalendar=this._store.select(P=>P.yearsCalendarFlagged).pipe((0,l.h)(P=>!!P)),b.viewMode=this._store.select(P=>P.view?.mode),b.options$=(0,Ou.a)([this._store.select(P=>P.showWeekNumbers),this._store.select(P=>P.displayMonths)]).pipe((0,D.U)(P=>({showWeekNumbers:P[0],displayMonths:P[1]}))),this):this}setEventHandlers(b){return b.setViewMode=P=>{this._store?.dispatch(this._actions.changeViewMode(P))},b.navigateTo=P=>{this._store?.dispatch(this._actions.navigateStep(P.step))},b.dayHoverHandler=P=>{const H=P.cell;H.isOtherMonth||H.isDisabled||(this._store?.dispatch(this._actions.hoverDay(P)),H.isHovered=P.isHovered)},b.monthHoverHandler=P=>{P.cell.isHovered=P.isHovered},b.yearHoverHandler=P=>{P.cell.isHovered=P.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(b=>b.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(b=>b.monthsModel).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(b=>b.formattedMonths).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.selectedDate).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.selectedRange).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.yearsCalendarModel).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.hoveredDate).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.dateCustomClasses).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.dateTooltipTexts).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(b=>this._store?.dispatch(this._actions.setLocale(b)))),this):this}destroy(){for(const b of this._subs)b.unsubscribe()}static#e=this.\u0275fac=function(P){return new(P||f)(e.LFG(lo),e.LFG(fu))};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const Eh={date:new Date,mode:"day"},th=Object.assign(new ol,{locale:"en",view:Eh,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function eu(f,E,b){const P=E&&K(pr(f,"month"),E,"day"),H=b&&ro(bo(f,"month"),b,"day");return P||H||!1}function Dc(f,E,b){const P=E&&K(pr(f,"year"),E,"day"),H=b&&ro(bo(f,"year"),b,"day");return P||H||!1}function Nd(f,E,b){return!!(E&&ce(E)&&E.length)&&(b&&"year"===b&&!E[0].getDate()?E.some(P=>Ne(f,P,"year")):E.some(P=>Ne(f,P,"date")))}function Nu(f,E,b){return!!(E&&ce(E)&&E.length)&&!E.some(P=>Ne(f,P,b||"date"))}function Fu(f,E=0){const b=f&&f.yearsCalendarModel&&f.yearsCalendarModel[E];return b?.years[0]&&b.years[0][0]&&b.years[0][0].date}function Yu(f,E){return!f||!E||!f.length&&!f[0].value||f.forEach(b=>(!b||!b.value||b.value instanceof Date||!(b.value instanceof Array&&b.value.length)||(b.value=ih(b.value,E)),f)),f}function pu(f,E){return!f||!E||f instanceof Array&&!f.length||f instanceof Date?f:ih(f,E)}function ih(f,E){return f instanceof Array?f.map(P=>P&&(ro(P,E,"date")&&(P=E),P)):f}function _u(f){return f&&rh(f)}function Ah(f){return f?.length&&f.map(E=>E&&rh(E)),f}function rh(f){const E=new Date;return f.setMilliseconds(E.getMilliseconds()),f.setSeconds(E.getSeconds()),f.setMinutes(E.getMinutes()),f.setHours(E.getHours()),f}function Bu(f,E){let b=f.initialDate;const P=new Array(f.height);for(let H=0;HEt),month:b}}function Fd(f,E,b){return f.map(P=>P[0]?ts(P[0],E,b):"")}function us(f){const E=sr(f),b=E.weekdaysShort(),P=E.firstDayOfWeek();return[...b.slice(P),...b.slice(0,P)]}function Yd(f,E){return!E||f>=E}const hd=4,_f=3,Ip={month:1};function Oh(f,E){const b=bo(f,"year");return{months:Bu({width:_f,height:hd,initialDate:b,shift:Ip},Me=>({date:Me,label:ts(Me,E.monthLabel,E.locale)})),monthTitle:"",yearTitle:ts(f,E.yearTitle,E.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const ah=4,Bd=4,tu=ah*Bd,lh=-1*(Math.floor(tu/2)-1),mf={year:1};function Rh(f,E,b){const P=function gf(f,E){return E&&f.getFullYear()>=E.getFullYear()&&f.getFullYear()({date:yn,label:ts(yn,E.yearLabel,E.locale)})),Et=function gu(f,E){return`${ts(f[0][0].date,E.yearTitle,E.locale)} - ${ts(f[ah-1][Bd-1].date,E.yearTitle,E.locale)}`}(Me,E);return{years:Me,monthTitle:"",yearTitle:Et,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function vf(f,E){!f||!isNaN(f.getTime())||(f.setHours(E.getHours()),f.setMinutes(E.getMinutes()),f.setSeconds(E.getSeconds()),f.setMilliseconds(E.getMilliseconds()))}function kh(f=th,E){switch(E.type){case lo.CALCULATE:return function Rp(f){if(!f.view)return f;let E;E=f.displayOneMonthRange&&t(f.view.date,f.minDate,f.maxDate)?1:f.displayMonths||1;let b=f.view.date;if("day"===f.view.mode&&f.monthViewOptions){f.showPreviousMonth&&f.selectedRange&&0===f.selectedRange.length&&(b=En(b,{month:-1})),f.monthViewOptions.firstDayOfWeek=sr(f.locale).firstDayOfWeek();let P=new Array(E);for(let H=0;Hf.monthViewOptions?oh(Me.month,f.monthViewOptions):null).filter(Me=>null!==Me))}return Object.assign({},f,{monthsModel:P})}if("month"===f.view.mode){const P=new Array(E);for(let H=0;Hfunction sh(f,E,b){return{month:f.month,monthTitle:ts(f.month,E.monthTitle,E.locale),yearTitle:ts(f.month,E.yearTitle,E.locale),weekNumbers:Fd(f.daysMatrix,E.weekNumbers,E.locale),weekdays:us(E.locale),weeks:f.daysMatrix.map((P,H)=>({days:P.map((Me,Et)=>({date:Me,label:ts(Me,E.dayLabel,E.locale),monthIndex:b,weekIndex:H,dayIndex:Et}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(H,vu(f),Me));return Object.assign({},f,{formattedMonths:P})}const E=f.displayMonths||1;let b=f.view.date;if("month"===f.view.mode){const P=new Array(E);for(let H=0;Hfunction Yo(f,E){return f.weeks.forEach(b=>{b.days.forEach((P,H)=>{const Me=!Ce(P.date,f.month),Et=!Me&&ae(P.date,E.hoveredDate),yn=!Me&&E.selectedRange&&ae(P.date,E.selectedRange[0]),Gn=!Me&&E.selectedRange&&ae(P.date,E.selectedRange[1]),Rr=!Me&&ae(P.date,E.selectedDate)||yn||Gn,Ts=!Me&&E.selectedRange&&function mu(f,E,b){return!!(f&&E&&E[0])&&(E[1]?f>E[0]&&f<=E[1]:!!b&&f>E[0]&&f<=b)}(P.date,E.selectedRange,E.hoveredDate),pa=E.isDisabled||K(P.date,E.minDate,"day")||ro(P.date,E.maxDate,"day")||function Ue(f,E){return!(typeof E>"u"||!E||!E.length)&&E.some(b=>b===f.getDay())}(P.date,E.daysDisabled)||Nd(P.date,E.datesDisabled)||Nu(P.date,E.datesEnabled),Lh=!Me&&ae(P.date,new Date),yf=E.dateCustomClasses&&E.dateCustomClasses.map(Qc=>ae(P.date,Qc.date)?Qc.classes:[]).reduce((Qc,ch)=>Qc.concat(ch),[]).join(" ")||"",wf=E.dateTooltipTexts&&E.dateTooltipTexts.map(Qc=>ae(P.date,Qc.date)?Qc.tooltipText:"").reduce((Qc,ch)=>(Qc.push(ch),Qc),[]).join(" ")||"",Rc=Object.assign({},P,{isOtherMonth:Me,isHovered:Et,isSelected:Rr,isSelectionStart:yn,isSelectionEnd:Gn,isInRange:Ts,isDisabled:pa,isToday:Lh,customClasses:yf,tooltipText:wf});(P.isOtherMonth!==Rc.isOtherMonth||P.isHovered!==Rc.isHovered||P.isSelected!==Rc.isSelected||P.isSelectionStart!==Rc.isSelectionStart||P.isSelectionEnd!==Rc.isSelectionEnd||P.isDisabled!==Rc.isDisabled||P.isInRange!==Rc.isInRange||P.customClasses!==Rc.customClasses||P.tooltipText!==Rc.tooltipText)&&(b.days[H]=Rc)})}),f.hideLeftArrow=E.isDisabled||!!E.monthIndex&&E.monthIndex>0&&E.monthIndex!==E.displayMonths,f.hideRightArrow=E.isDisabled||(!!E.monthIndex||0===E.monthIndex)&&!!E.displayMonths&&E.monthIndexfunction Ih(f,E){return f.months.forEach((b,P)=>{b.forEach((H,Me)=>{let Et;const yn=Ce(H.date,E.hoveredMonth),Gn=E.isDisabled||Nd(H.date,E.datesDisabled)||Nu(H.date,E.datesEnabled,"month")||eu(H.date,E.minDate,E.maxDate);!E.selectedDate&&E.selectedRange?(Et=Ce(H.date,E.selectedRange[0]),Et||(Et=Ce(H.date,E.selectedRange[1]))):Et=Ce(H.date,E.selectedDate);const Rr=Object.assign(H,{isHovered:yn,isDisabled:Gn,isSelected:Et});(H.isHovered!==Rr.isHovered||H.isDisabled!==Rr.isDisabled||H.isSelected!==Rr.isSelected)&&(f.months[P][Me]=Rr)})}),f.hideLeftArrow=!!E.monthIndex&&E.monthIndex>0&&E.monthIndex!==E.displayMonths,f.hideRightArrow=(!!E.monthIndex||0===E.monthIndex)&&(!!E.displayMonths||0===E.displayMonths)&&E.monthIndexfunction fd(f,E){f.years.forEach((H,Me)=>{H.forEach((Et,yn)=>{let Gn;const Rr=J(Et.date,E.hoveredYear),Ts=E.isDisabled||Nd(Et.date,E.datesDisabled,"year")||Nu(Et.date,E.datesEnabled,"year")||Dc(Et.date,E.minDate,E.maxDate);!E.selectedDate&&E.selectedRange?(Gn=J(Et.date,E.selectedRange[0]),Gn||(Gn=J(Et.date,E.selectedRange[1]))):Gn=J(Et.date,E.selectedDate);const pa=Object.assign(Et,{isHovered:Rr,isDisabled:Ts,isSelected:Gn});(Et.isHovered!==pa.isHovered||Et.isDisabled!==pa.isDisabled||Et.isSelected!==pa.isSelected)&&(f.years[Me][yn]=pa)})}),f.hideLeftArrow=!!E.yearIndex&&E.yearIndex>0&&E.yearIndex!==E.displayMonths,f.hideRightArrow=!!E.yearIndex&&!!E.displayMonths&&E.yearIndexEt)),b.value instanceof Date&&(b.selectedDate=b.value,b.selectedTime=[b.value])),Object.assign({},f,b)}case lo.SELECT_RANGE:{if(!f.view)return f;const b={selectedRange:E.payload,view:f.view};b.selectedRange?.forEach((Et,yn)=>{if(Array.isArray(f.selectedTime)){const Gn=f.selectedTime[yn];Gn&&vf(Et,Gn)}});const P=f.view.mode,Me=o(E.payload&&E.payload[0]||f.view.date,f.minDate,f.maxDate);return b.view={mode:P,date:Me},Object.assign({},f,b)}case lo.SET_MIN_DATE:return Object.assign({},f,{minDate:E.payload});case lo.SET_MAX_DATE:return Object.assign({},f,{maxDate:E.payload});case lo.SET_IS_DISABLED:return Object.assign({},f,{isDisabled:E.payload});case lo.SET_DATE_CUSTOM_CLASSES:return Object.assign({},f,{dateCustomClasses:E.payload});case lo.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},f,{dateTooltipTexts:E.payload});default:return f}}function vu(f){return{locale:f.locale,monthTitle:f.monthTitle,yearTitle:f.yearTitle,dayLabel:f.dayLabel,monthLabel:f.monthLabel,yearLabel:f.yearLabel,weekNumbers:f.weekNumbers}}function o(f,E,b){const P=Array.isArray(f)?f[0]:f;return E&&ro(E,P,"day")?E:b&&K(b,P,"day")?b:P}function t(f,E,b){return!(!b||!Ne(b,f,"day"))||E&&b&&E.getMonth()===b.getMonth()}let i=(()=>{class f extends zo{constructor(){const b=new ls.X({type:"[datepicker] dispatcher init"});super(b,kh,new Vc(th,b,kh))}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),s=(()=>{class f{constructor(){this.onSelect=new e.vpe}selectFromRanges(b){this.onSelect.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(P,H){1&P&&(e.TgZ(0,"div",0),e.YNc(1,Xe,2,3,"button",1),e.qZA()),2&P&&(e.xp6(1),e.Q6J("ngForOf",H.ranges))},dependencies:[zi.sg],encapsulation:2,changeDetection:0})}return f})();var c=function(f){return f[f.UP=0]="UP",f[f.DOWN=1]="DOWN",f}(c||{});let et,h=(()=>{class f{static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(P,H){1&P&&(e.TgZ(0,"div",0)(1,"span"),e._uU(2),e.qZA()()),2&P&&(e.xp6(2),e.Oqu(H.title))},encapsulation:2})}return f})(),v=(()=>{class f{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(P,H){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e._uU(3,"-"),e.qZA(),e._UZ(4,"input",3),e.TgZ(5,"button",4),e._uU(6,"+"),e.qZA()(),e.TgZ(7,"div",1)(8,"button",2),e._uU(9,"-"),e.qZA(),e._UZ(10,"input",3),e.TgZ(11,"button",4),e._uU(12,"+"),e.qZA()(),e.TgZ(13,"button",5),e._uU(14),e._UZ(15,"img",6),e.qZA()()),2&P&&(e.xp6(4),e.Q6J("value",H.hours),e.xp6(6),e.Q6J("value",H.minutes),e.xp6(4),e.hij("",H.ampm," "))},encapsulation:2})}return f})(),M=(()=>{class f{static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-calendar-layout"]],ngContentSelectors:ye,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(P,H){1&P&&(e.F$t(R),e.YNc(0,g,1,0,"bs-current-date",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.TgZ(3,"div",2),e.Hsn(4,1),e.qZA(),e.YNc(5,L,1,0,"bs-timepicker",3)),2&P&&(e.Q6J("ngIf",!1),e.xp6(5),e.Q6J("ngIf",!1))},dependencies:[zi.O5,h,v],encapsulation:2})}return f})(),O=(()=>{class f{constructor(b,P,H){this._config=b,this._elRef=P,this._renderer=H,this.day={date:new Date,label:""}}ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day?.customClasses&&this.day?.customClasses.split(" ").filter(b=>b).forEach(b=>{this._renderer.addClass(this._elRef.nativeElement,b)})}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol),e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(P,H){2&P&&e.ekj("disabled",H.day.isDisabled)("is-highlighted",H.day.isHovered)("is-other-month",H.day.isOtherMonth)("is-active-other-month",H.day.isOtherMonthHovered)("in-range",H.day.isInRange)("select-start",H.day.isSelectionStart)("select-end",H.day.isSelectionEnd)("selected",H.day.isSelected)},inputs:{day:"day"},attrs:Dt,decls:1,vars:1,template:function(P,H){1&P&&e._uU(0),2&P&&e.Oqu(H.day&&H.day.label||"")},encapsulation:2,changeDetection:0})}return f})(),N=(()=>{class f{constructor(){this.isDisabled=!1,this.onNavigate=new e.vpe,this.onViewMode=new e.vpe}navTo(b){this.onNavigate.emit(b?c.DOWN:c.UP)}view(b){this.isDisabled||this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"disabled","click"],[4,"ngIf"],["type","button",1,"current",3,"disabled","click"],["type","button",1,"next",3,"disabled","click"]],template:function(P,H){1&P&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return H.navTo(!0)}),e.TgZ(1,"span"),e._uU(2,"\u2039"),e.qZA()(),e.YNc(3,Mn,5,2,"ng-container",1),e._uU(4," \u200b "),e.TgZ(5,"button",2),e.NdJ("click",function(){return H.view("year")}),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e._uU(8," \u200b "),e.TgZ(9,"button",3),e.NdJ("click",function(){return H.navTo(!1)}),e.TgZ(10,"span"),e._uU(11,"\u203a"),e.qZA()()),2&P&&(e.Udp("visibility",H.calendar.hideLeftArrow?"hidden":"visible"),e.Q6J("disabled",H.calendar.disableLeftArrow),e.xp6(3),e.Q6J("ngIf",H.calendar&&H.calendar.monthTitle),e.xp6(2),e.Q6J("disabled",H.isDisabled),e.xp6(2),e.Oqu(H.calendar.yearTitle),e.xp6(2),e.Udp("visibility",H.calendar.hideRightArrow?"hidden":"visible"),e.Q6J("disabled",H.calendar.disableRightArrow))},dependencies:[zi.O5],encapsulation:2,changeDetection:0})}return f})(),$=(()=>{class f{constructor(b){this._config=b,this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe,this.onHoverWeek=new e.vpe,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(b){this.onNavigate.emit({step:{month:c.DOWN===b?-1:1}})}changeViewMode(b){this.onViewMode.emit(b)}selectDay(b){this.onSelect.emit(b)}selectWeek(b){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===b.days.length)return;if(this._config.selectWeek&&b.days[0]&&!b.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(b.days[0]);const P=b.days.find(H=>(this._config.selectFromOtherMonth||!H.isOtherMonth)&&!H.isDisabled);if(this.onSelect.emit(P),this._config.selectWeekDateRange){const Me=b.days.slice(0).reverse().find(Et=>(this._config.selectFromOtherMonth||!Et.isOtherMonth)&&!Et.isDisabled);this.onSelect.emit(Me)}}weekHoverHandler(b,P){(this._config.selectWeek||this._config.selectWeekDateRange)&&b.days.find(Me=>(this._config.selectFromOtherMonth||!Me.isOtherMonth)&&!Me.isDisabled)&&(b.isHovered=P,this.isWeekHovered=P,this.onHoverWeek.emit(b))}hoverDay(b,P){this._config.selectFromOtherMonth&&b.isOtherMonth&&(b.isOtherMonthHovered=P),this._config.dateTooltipTexts&&(b.tooltipText="",this._config.dateTooltipTexts.forEach(H=>{ae(H.date,b.date)&&(b.tooltipText=H.tooltipText)})),this.onHover.emit({cell:b,isHovered:P})}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"calendar","isDisabled","onNavigate","onViewMode"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"thead")(4,"tr"),e.YNc(5,vi,1,0,"th",2),e.YNc(6,Fo,2,1,"th",3),e.qZA()(),e.TgZ(7,"tbody"),e.YNc(8,Xd,3,2,"tr",4),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar)("isDisabled",!!H.isDisabled),e.xp6(4),e.Q6J("ngIf",H.options&&H.options.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",H.calendar.weekdays),e.xp6(2),e.Q6J("ngForOf",H.calendar.weeks))},dependencies:[zi.sg,zi.O5,Id.i9,M,O,N],encapsulation:2})}return f})(),q=(()=>{class f{constructor(){this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe}navigateTo(b){this.onNavigate.emit({step:{year:c.DOWN===b?-1:1}})}viewMonth(b){this.onSelect.emit(b)}hoverMonth(b,P){this.onHover.emit({cell:b,isHovered:P})}changeViewMode(b){this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"tbody"),e.YNc(4,ru,2,1,"tr",2),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar),e.xp6(3),e.Q6J("ngForOf",null==H.calendar?null:H.calendar.months))},dependencies:[zi.sg,M,N],encapsulation:2})}return f})(),de=(()=>{class f{constructor(){this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe}navigateTo(b){this.onNavigate.emit({step:{year:(c.DOWN===b?-1:1)*tu}})}viewYear(b){this.onSelect.emit(b)}hoverYear(b,P){this.onHover.emit({cell:b,isHovered:P})}changeViewMode(b){this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"tbody"),e.YNc(4,su,2,1,"tr",2),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar),e.xp6(3),e.Q6J("ngForOf",null==H.calendar?null:H.calendar.years))},dependencies:[zi.sg,M,N],encapsulation:2})}return f})(),we=(()=>{class f extends Jc{set value(b){this._effects?.setValue(b)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(b,P,H,Me,Et,yn,Gn){super(),this._config=P,this._store=H,this._element=Me,this._actions=Et,this._positionService=Gn,this.valueChange=new e.vpe,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=yn,b.setStyle(Me.nativeElement,"display","block"),b.setStyle(Me.nativeElement,"position","absolute")}ngOnInit(){let b;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,I.q)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(P=>P.selectedDate).subscribe(P=>{b=P,this.valueChange.emit(P)})),this._subs.push(this._store.select(P=>P.selectedTime).subscribe(P=>{!P[0]||!(P[0]instanceof Date)||P[0]===b||this.valueChange.emit(P[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(b=>{Array.isArray(b)&&b.length>=1&&this.startTimepicker?.writeValue(b[0])})),this.startTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(b,P){this._store.dispatch(this._actions.selectTime(b,P))}daySelectHandler(b){!b||(this.isOtherMonthsActive?b.isDisabled:b.isOtherMonth||b.isDisabled)||this._store.dispatch(this._actions.select(b.date))}monthSelectHandler(b){!b||b.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:Ot(b.date),year:rn(b.date)},viewMode:"day"}))}yearSelectHandler(b){!b||b.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:rn(b.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const b of this._subs)b.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(e.Qsj),e.Y36(ol),e.Y36(i),e.Y36(e.SBq),e.Y36(lo),e.Y36(ud),e.Y36(Zs.sA))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-datepicker-container"]],viewQuery:function(P,H){if(1&P&&e.Gf(Ir,5),2&P){let Me;e.iGM(Me=e.CRH())&&(H.startTimepicker=Me.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(P,H){1&P&&e.NdJ("click",function(Et){return H._stopPropagation(Et)}),2&P&&e.uIk("disabled",H.isDatepickerDisabled)("readonly",H.isDatepickerReadonly)},features:[e._Bn([i,ud]),e.qOj],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(P,H){1&P&&(e.YNc(0,eo,10,11,"div",0),e.ALo(1,"async")),2&P&&e.Q6J("ngIf",e.lcZ(1,1,H.viewMode))},dependencies:[zi.mk,zi.sg,zi.O5,zi.RF,zi.n9,Yl,s,$,q,de,zi.Ov],encapsulation:2,data:{animation:[Ul]}})}return f})(),vt=(()=>{class f{get readonlyValue(){return this.isDisabled?"":null}constructor(b,P,H,Me,Et){this._config=b,this._elementRef=P,this._renderer=H,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Tc.x,this.isDisabled=!1,this.bsValueChange=new e.vpe,this._subs=[],this._dateInputFormat$=new Tc.x,Object.assign(this,this._config),this._datepicker=Et.createLoader(P,Me,H),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new ls.X(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(b){this.isOpen$.next(b)}set bsValue(b){this._bsValue&&b&&this._bsValue.getTime()===b.getTime()||(!this._bsValue&&b&&!this._config.withTimepicker&&vf(b,new Date),b&&this.bsConfig?.initCurrentTime&&(b=_u(b)),this.initPreviousValue(),this._bsValue=b,this.bsValueChange.emit(b))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){et=this._bsValue}ngOnChanges(b){b.bsConfig&&(b.bsConfig.currentValue?.initCurrentTime&&b.bsConfig.currentValue?.initCurrentTime!==b.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=_u(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(b.minDate&&(this._datepickerRef.instance.minDate=this.minDate),b.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),b.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),b.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),b.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),b.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),b.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),b.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(b=>{this._datepickerRef&&(this._datepickerRef.instance.value=b)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(b=>{this.initPreviousValue(),this.bsValue=b,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!!(et&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return et instanceof Date&&this._bsValue?.getDate()===et?.getDate()&&this._bsValue?.getMonth()===et?.getMonth()&&this._bsValue?.getFullYear()===et?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe((0,l.h)(b=>b!==this.isOpen),(0,S.R)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:ol,useValue:this._config}).attach(we).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const b of this._subs)b.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:pu(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(b=>b.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(F.oj))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(P,H){2&P&&e.uIk("readonly",H.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[e.TTD]})}return f})(),bn=(()=>{class f extends Jc{set value(b){this._effects?.setRangeValue(b)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(b,P,H,Me,Et,yn,Gn){super(),this._config=P,this._store=H,this._element=Me,this._actions=Et,this._positionService=Gn,this.valueChange=new e.vpe,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=yn,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,b.setStyle(Me.nativeElement,"display","block"),b.setStyle(Me.nativeElement,"position","absolute")}ngOnInit(){let b;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,I.q)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(P=>P.selectedRange).subscribe(P=>{b=P,this.valueChange.emit(P),this.chosenRange=P||[]})),this._subs.push(this._store.select(P=>P.selectedTime).subscribe(P=>{!P[0]||!P[1]||!(P[0]instanceof Date)||!(P[1]instanceof Date)||b&&P[0]===b[0]&&P[1]===b[1]||(this.valueChange.emit(P),this.chosenRange=P||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(b=>{Array.isArray(b)&&b.length>=2&&(this.startTimepicker?.writeValue(b[0]),this.endTimepicker?.writeValue(b[1]))})),this.startTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,0)}),this.endTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(b,P){this._store.dispatch(this._actions.selectTime(b,P))}daySelectHandler(b){!b||(this.isOtherMonthsActive?b.isDisabled:b.isOtherMonth||b.isDisabled)||this.rangesProcessing(b)}monthSelectHandler(b){if(b&&!b.isDisabled){if(b.isSelected=!0,"month"!==this._config.minMode){if(b.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:Ot(b.date),year:rn(b.date)},viewMode:"day"}))}this.rangesProcessing(b)}}yearSelectHandler(b){if(b&&!b.isDisabled){if(b.isSelected=!0,"year"!==this._config.minMode){if(b.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:rn(b.date)},viewMode:"month"}))}this.rangesProcessing(b)}}rangesProcessing(b){1===this._rangeStack.length&&(this._rangeStack=b.date>=this._rangeStack[0]?[this._rangeStack[0],b.date]:[b.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(b.date),0===this._rangeStack.length&&(this._rangeStack=[b.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(b.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const b of this._subs)b.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(b){b&&(this._rangeStack=b.value instanceof Date?[b.value]:b.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(b){let P=new Date(b);if(this._config.maxDate){const H=this._config.maxDate.getTime(),Me=b.getTime()+864e5*(this._config.maxDateRange||0);P=Me>H?new Date(this._config.maxDate):new Date(Me)}else P.setDate(b.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(P)}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(e.Qsj),e.Y36(ol),e.Y36(i),e.Y36(e.SBq),e.Y36(lo),e.Y36(ud),e.Y36(Zs.sA))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-daterangepicker-container"]],viewQuery:function(P,H){if(1&P&&(e.Gf(Ir,5),e.Gf(Zf,5)),2&P){let Me;e.iGM(Me=e.CRH())&&(H.startTimepicker=Me.first),e.iGM(Me=e.CRH())&&(H.endTimepicker=Me.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(P,H){1&P&&e.NdJ("click",function(Et){return H._stopPropagation(Et)}),2&P&&e.uIk("disabled",H.isDatepickerDisabled)("readonly",H.isDatepickerReadonly)},features:[e._Bn([i,ud]),e.qOj],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(P,H){1&P&&(e.YNc(0,ku,10,11,"div",0),e.ALo(1,"async")),2&P&&e.Q6J("ngIf",e.lcZ(1,1,H.viewMode))},dependencies:[zi.mk,zi.sg,zi.O5,zi.RF,zi.n9,Yl,s,$,q,de,zi.Ov],encapsulation:2,data:{animation:[Ul]}})}return f})();const Kn={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>Gi),multi:!0},fi={provide:Uc.Cf,useExisting:(0,e.Gpc)(()=>Gi),multi:!0};let go,Gi=(()=>{class f{constructor(b,P,H,Me,Et){this._picker=b,this._localeService=P,this._renderer=H,this._elRef=Me,this.changeDetection=Et,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Od.w0}ngOnInit(){const b=P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&b(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(b)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe((0,w.x)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(b){(13===b.keyCode||"Enter"===b.code)&&this.hide()}_setInputValue(b){const P=b?ts(b,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",P)}onChange(b){this.writeValue(b.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(b){const P=b.value;if(null==P||""===P)return null;if(re(P)){if(!se(P))return{bsDate:{invalid:P}};if(this._picker&&this._picker.minDate&&K(P,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&ro(P,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(b){this._validatorChange=b}writeValue(b){if(b){const P=this._localeService.currentLocale;if(!sr(P))throw new Error(`Locale "${P}" is not defined, please add it with "defineLocale(...)"`);this._value=ra(b,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=Al(this._value))}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(b){this._picker.isDisabled=b,b?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(vt,1),e.Y36(fu),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["input","bsDatepicker",""]],hostBindings:function(P,H){1&P&&e.NdJ("change",function(Et){return H.onChange(Et)})("keyup.esc",function(){return H.hide()})("keydown",function(Et){return H.onKeydownEvent(Et)})("blur",function(){return H.onBlur()})},features:[e._Bn([Kn,fi])]})}return f})(),Vi=(()=>{class f extends ol{constructor(){super(...arguments),this.displayMonths=2}static#e=this.\u0275fac=function(){let b;return function(H){return(b||(b=e.n5z(f)))(H||f)}}();static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})(),Dr=(()=>{class f{get isOpen(){return this._datepicker.isShown}set isOpen(b){this.isOpen$.next(b)}set bsValue(b){this._bsValue!==b&&(b&&this.bsConfig?.initCurrentTime&&(b=Ah(b)),this.initPreviousValue(),this._bsValue=b,this.bsValueChange.emit(b))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(b,P,H,Me,Et){this._config=b,this._elementRef=P,this._renderer=H,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Tc.x,this.isDisabled=!1,this.bsValueChange=new e.vpe,this._subs=[],this._rangeInputFormat$=new Tc.x,this._datepicker=Et.createLoader(P,Me,H),Object.assign(this,b),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new ls.X(this.isOpen)}ngOnInit(){this.isDestroy$=new Tc.x,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(b){b.bsConfig&&(b.bsConfig.currentValue?.initCurrentTime&&b.bsConfig.currentValue?.initCurrentTime!==b.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Ah(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(b.bsConfig.currentValue&&b.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(b.minDate&&(this._datepickerRef.instance.minDate=this.minDate),b.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),b.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),b.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),b.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),b.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),b.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe((0,l.h)(b=>b!==this.isOpen),(0,S.R)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:ol,useValue:this._config}).attach(bn).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(b=>{this._datepickerRef&&(this._datepickerRef.instance.value=b)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe((0,l.h)(b=>b&&b[0]&&!!b[1])).subscribe(b=>{this.initPreviousValue(),this.bsValue=b,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){go=this._bsValue}keepDatepickerModalOpened(){return!!(go&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===go?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===go?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===go?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===go?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===go?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===go?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:pu(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:Yu(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(const b of this._subs)b.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(b=>b.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Vi),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(F.oj))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(P,H){2&P&&e.uIk("readonly",H.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[e.TTD]})}return f})();const hs={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>ic),multi:!0},Vl={provide:Uc.Cf,useExisting:(0,e.Gpc)(()=>ic),multi:!0};let ic=(()=>{class f{constructor(b,P,H,Me,Et){this._picker=b,this._localeService=P,this._renderer=H,this._elRef=Me,this.changeDetection=Et,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Od.w0}ngOnInit(){this._picker._bsValue&&(P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe((0,w.x)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(b){(13===b.keyCode||"Enter"===b.code)&&this.hide()}_setInputValue(b){let P="";if(b){const H=b[0]?ts(b[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",Me=b[1]?ts(b[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";P=H&&Me?H+this._picker._config.rangeSeparator+Me:""}this._renderer.setProperty(this._elRef.nativeElement,"value",P)}onChange(b){this.writeValue(b.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(b){let P=b.value;const H=[];if(null==P||!ce(P))return null;P=P.slice().sort((yn,Gn)=>yn.getTime()-Gn.getTime());const Me=se(P[0]),Et=se(P[1]);return Me?Et?(this._picker&&this._picker.minDate&&K(P[0],this._picker.minDate,"date")&&(P[0]=this._picker.minDate,H.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&ro(P[1],this._picker.maxDate,"date")&&(P[1]=this._picker.maxDate,H.push({bsDate:{maxDate:this._picker.maxDate}})),H.length>0?(this.writeValue(P),H):null):{bsDate:{invalid:P[1]}}:{bsDate:{invalid:P[0]}}}registerOnValidatorChange(b){this._validatorChange=b}writeValue(b){if(b){const P=this._localeService.currentLocale;if(!sr(P))throw new Error(`Locale "${P}" is not defined, please add it with "defineLocale(...)"`);let Me=[];if("string"==typeof b){const Et=this._picker._config.rangeSeparator.trim();Me=b.replace(/[^-]/g,"").length>1?b.split(this._picker._config.rangeSeparator):b.split(Et.length>0?Et:this._picker._config.rangeSeparator).map(yn=>yn.trim())}Array.isArray(b)&&(Me=b),this._value=Me.map(Et=>this._picker._config.useUtc?Al(ra(Et,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):ra(Et,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(Et=>isNaN(Et.valueOf())?void 0:Et)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(b){this._picker.isDisabled=b,b?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Dr,1),e.Y36(fu),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(P,H){1&P&&e.NdJ("change",function(Et){return H.onChange(Et)})("keyup.esc",function(){return H.hide()})("keydown",function(Et){return H.onKeydownEvent(Et)})("blur",function(){return H.onBlur()})},features:[e._Bn([hs,Vl])]})}return f})(),Cs=(()=>{class f{static forRoot(){return{ngModule:f,providers:[F.oj,Zs.sA,i,lo,ud,fu,ml]}}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275mod=e.oAB({type:f});static#n=this.\u0275inj=e.cJS({imports:[zi.ez,Id.z8,Gu]})}return f})()},4060:(ft,Ie,C)=>{"use strict";C.d(Ie,{Bz:()=>re,sA:()=>ei});var e=C(3161),l=C(5879),D=C(6814),I=C(8645),S=C(3019),w=C(2438),n=C(2096),Z=C(927),ee=function(Ve){return Ve.top="top",Ve.bottom="bottom",Ve.left="left",Ve.right="right",Ve.auto="auto",Ve.end="right",Ve.start="left",Ve["top left"]="top left",Ve["top right"]="top right",Ve["right top"]="right top",Ve["right bottom"]="right bottom",Ve["bottom right"]="bottom right",Ve["bottom left"]="bottom left",Ve["left bottom"]="left bottom",Ve["left top"]="left top",Ve["top start"]="top left",Ve["top end"]="top right",Ve["end top"]="right top",Ve["end bottom"]="right bottom",Ve["bottom end"]="bottom right",Ve["bottom start"]="bottom left",Ve["start bottom"]="start bottom",Ve["start top"]="left top",Ve}(ee||{}),re=function(Ve){return Ve.top="top",Ve.bottom="bottom",Ve.left="start",Ve.right="end",Ve.auto="auto",Ve.end="end",Ve.start="start",Ve["top left"]="top start",Ve["top right"]="top end",Ve["right top"]="end top",Ve["right bottom"]="end bottom",Ve["bottom right"]="bottom end",Ve["bottom left"]="bottom start",Ve["left bottom"]="start bottom",Ve["left top"]="start top",Ve["top start"]="top start",Ve["top end"]="top end",Ve["end top"]="end top",Ve["end bottom"]="end bottom",Ve["bottom end"]="bottom end",Ve["bottom start"]="bottom start",Ve["start bottom"]="start bottom",Ve["start top"]="start top",Ve}(re||{});function ue(Ve,ct){if(1!==Ve.nodeType)return[];const Ce=Ve.ownerDocument.defaultView?.getComputedStyle(Ve,null);return ct?Ce&&Ce[ct]:Ce}function se(Ve){if(!Ve)return document.documentElement;let Ce,Ct=Ve?.offsetParent;for(;null===Ct&&Ve.nextElementSibling&&Ce!==Ve.nextElementSibling;)Ce=Ve.nextElementSibling,Ct=Ce.offsetParent;const J=Ct&&Ct.nodeName;return J&&"BODY"!==J&&"HTML"!==J?Ct&&-1!==["TH","TD","TABLE"].indexOf(Ct.nodeName)&&"static"===ue(Ct,"position")?se(Ct):Ct:Ce?Ce.ownerDocument.documentElement:document.documentElement}function oe(Ve){return null!==Ve.parentNode?oe(Ve.parentNode):Ve}function ce(Ve,ct){if(!(Ve&&Ve.nodeType&&ct&&ct.nodeType))return document.documentElement;const Ct=Ve.compareDocumentPosition(ct)&Node.DOCUMENT_POSITION_FOLLOWING,Ce=Ct?Ve:ct,J=Ct?ct:Ve,ae=document.createRange();ae.setStart(Ce,0),ae.setEnd(J,0);const Oe=ae.commonAncestorContainer;if(Ve!==Oe&&ct!==Oe||Ce.contains(J))return function te(Ve){const{nodeName:ct}=Ve;return"BODY"!==ct&&("HTML"===ct||se(Ve.firstElementChild)===Ve)}(Oe)?Oe:se(Oe);const ot=oe(Ve);return ot.host?ce(ot.host,ct):ce(Ve,oe(ct).host)}function _e(Ve){if(!Ve||!Ve.parentElement)return document.documentElement;let ct=Ve.parentElement;for(;ct?.parentElement&&"none"===ue(ct,"transform");)ct=ct.parentElement;return ct||document.documentElement}function Re(Ve,ct){const Ct="x"===ct?"Left":"Top",Ce="Left"===Ct?"Right":"Bottom";return parseFloat(Ve[`border${Ct}Width`])+parseFloat(Ve[`border${Ce}Width`])}function mt(Ve,ct,Ct,Ce){return Math.max(ct[`offset${Ve}`],ct[`scroll${Ve}`],Ct[`client${Ve}`],Ct[`offset${Ve}`],Ct[`scroll${Ve}`],0)}function Ge(Ve){const ct=Ve.body,Ct=Ve.documentElement;return{height:mt("Height",ct,Ct),width:mt("Width",ct,Ct)}}function Lt(Ve){return{...Ve,right:(Ve.left||0)+Ve.width,bottom:(Ve.top||0)+Ve.height}}function Tt(Ve){return"number"==typeof Ve||"[object Number]"===Object.prototype.toString.call(Ve)}function xt(Ve){const ct=Ve.getBoundingClientRect();if(!(ct&&Tt(ct.top)&&Tt(ct.left)&&Tt(ct.bottom)&&Tt(ct.right)))return ct;const Ct={left:ct.left,top:ct.top,width:ct.right-ct.left,height:ct.bottom-ct.top},Ce="HTML"===Ve.nodeName?Ge(Ve.ownerDocument):void 0,J=Ce?.width||Ve.clientWidth||Tt(ct.right)&&Tt(Ct.left)&&ct.right-Ct.left||0,ae=Ce?.height||Ve.clientHeight||Tt(ct.bottom)&&Tt(Ct.top)&&ct.bottom-Ct.top||0;let Oe=Ve.offsetWidth-J,ot=Ve.offsetHeight-ae;if(Oe||ot){const Se=ue(Ve);Oe-=Re(Se,"x"),ot-=Re(Se,"y"),Ct.width-=Oe,Ct.height-=ot}return Lt(Ct)}function St(Ve){return"HTML"===Ve.nodeName?Ve:Ve.parentNode||Ve.host}function Zt(Ve){if(!Ve)return document.body;switch(Ve.nodeName){case"HTML":case"BODY":return Ve.ownerDocument.body;case"#document":return Ve.body}const{overflow:ct,overflowX:Ct,overflowY:Ce}=ue(Ve);return/(auto|scroll|overlay)/.test(String(ct)+String(Ce)+String(Ct))?Ve:Zt(St(Ve))}function yt(Ve,ct,Ct=!1){const Ce="HTML"===ct.nodeName,J=xt(Ve),ae=xt(ct),ot=(Zt(Ve),ue(ct)),Se=parseFloat(ot.borderTopWidth),Ft=parseFloat(ot.borderLeftWidth);Ct&&Ce&&(ae.top=Math.max(ae.top??0,0),ae.left=Math.max(ae.left??0,0));const lt=Lt({top:(J.top??0)-(ae.top??0)-Se,left:(J.left??0)-(ae.left??0)-Ft,width:J.width,height:J.height});if(lt.marginTop=0,lt.marginLeft=0,Ce){const Bt=parseFloat(ot.marginTop),Ut=parseFloat(ot.marginLeft);Tt(lt.top)&&(lt.top-=Se-Bt),Tt(lt.bottom)&&(lt.bottom-=Se-Bt),Tt(lt.left)&&(lt.left-=Ft-Ut),Tt(lt.right)&&(lt.right-=Ft-Ut),lt.marginTop=Bt,lt.marginLeft=Ut}return lt}function un(Ve,ct="top"){const Ct="top"===ct?"scrollTop":"scrollLeft",Ce=Ve.nodeName;return"BODY"===Ce||"HTML"===Ce?(Ve.ownerDocument.scrollingElement||Ve.ownerDocument.documentElement)[Ct]:Ve[Ct]}function tn(Ve){const ct=Ve.nodeName;return"BODY"!==ct&&"HTML"!==ct&&("fixed"===ue(Ve,"position")||tn(St(Ve)))}function wn(Ve,ct,Ct=0,Ce,J=!1){let ae={top:0,left:0};const Oe=J?_e(Ve):ce(Ve,ct);if("viewport"===Ce)ae=function Jt(Ve,ct=!1){const Ct=Ve.ownerDocument.documentElement,Ce=yt(Ve,Ct),J=Math.max(Ct.clientWidth,window.innerWidth||0),ae=Math.max(Ct.clientHeight,window.innerHeight||0),Oe=ct?0:un(Ct),ot=ct?0:un(Ct,"left");return Lt({top:Oe-Number(Ce?.top)+Number(Ce?.marginTop),left:ot-Number(Ce?.left)+Number(Ce?.marginLeft),width:J,height:ae})}(Oe,J);else{let ot;"scrollParent"===Ce?(ot=Zt(St(ct)),"BODY"===ot.nodeName&&(ot=Ve.ownerDocument.documentElement)):ot="window"===Ce?Ve.ownerDocument.documentElement:Ce;const Se=yt(ot,Oe,J);if(Se&&"HTML"===ot.nodeName&&!tn(Oe)){const{height:Ft,width:lt}=Ge(Ve.ownerDocument);Tt(ae.top)&&Tt(Se.top)&&Tt(Se.marginTop)&&(ae.top+=Se.top-Se.marginTop),Tt(ae.top)&&(ae.bottom=Number(Ft)+Number(Se.top)),Tt(ae.left)&&Tt(Se.left)&&Tt(Se.marginLeft)&&(ae.left+=Se.left-Se.marginLeft),Tt(ae.top)&&(ae.right=Number(lt)+Number(Se.left))}else Se&&(ae=Se)}return Tt(ae.left)&&(ae.left+=Ct),Tt(ae.top)&&(ae.top+=Ct),Tt(ae.right)&&(ae.right-=Ct),Tt(ae.bottom)&&(ae.bottom-=Ct),ae}function Ln({width:Ve,height:ct}){return Ve*ct}function Yn(Ve,ct,Ct,Ce,J=["top","bottom","right","left"],ae="viewport",Oe=0){if(-1===Ve.indexOf("auto"))return Ve;const ot=wn(Ct,Ce,Oe,ae),Se={top:{width:ot?.width??0,height:(ct?.top??0)-(ot?.top??0)},right:{width:(ot?.right??0)-(ct?.right??0),height:ot?.height??0},bottom:{width:ot?.width??0,height:(ot?.bottom??0)-(ct?.bottom??0)},left:{width:(ct.left??0)-(ot?.left??0),height:ot?.height??0}},Ft=Object.keys(Se).map(fn=>({position:fn,...Se[fn],area:Ln(Se[fn])})).sort((fn,gn)=>gn.area-fn.area);let lt=Ft.filter(({width:fn,height:gn})=>fn>=Ct.clientWidth&&gn>=Ct.clientHeight);lt=lt.filter(({position:fn})=>J.some(gn=>gn===fn));const Bt=lt.length>0?lt[0].position:Ft[0].position,Ut=Ve.split(" ")[1];return Ct.className=Ct.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${(0,e.Wl)().isBs5?re[Bt]:Bt}`),Bt+(Ut?`-${Ut}`:"")}const dt=(Ve,ct=0)=>Ve?parseFloat(Ve):ct;function at(Ve){const Ct=Ve.ownerDocument.defaultView?.getComputedStyle(Ve),Ce=dt(Ct?.marginTop)+dt(Ct?.marginBottom),J=dt(Ct?.marginLeft)+dt(Ct?.marginRight);return{width:Number(Ve.offsetWidth)+J,height:Number(Ve.offsetHeight)+Ce}}function Be(Ve,ct,Ct){return yt(ct,Ct?_e(Ve):ce(Ve,ct),Ct)}function Ee(Ve,ct,Ct){const Ce=Ct.split(" ")[0],J=at(Ve),ae={width:J.width,height:J.height},Oe=-1!==["right","left"].indexOf(Ce),ot=Oe?"top":"left",Se=Oe?"left":"top",Ft=Oe?"height":"width",lt=Oe?"width":"height";return ae[ot]=(ct[ot]??0)+ct[Ft]/2-J[Ft]/2,ae[Se]=Ce===Se?(ct[Se]??0)-J[lt]:ct[function gi(Ve){const ct={left:"right",right:"left",bottom:"top",top:"bottom"};return Ve.replace(/left|right|bottom|top/g,Ct=>ct[Ct])}(Se)]??0,ae}function $e(Ve,ct){return!!Ve.modifiers[ct]?.enabled}const me={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function tt(Ve,ct){return!!(0,e.Wl)().isBs5&&me[ct].includes(Ve)}function rt(Ve,ct,Ct){!Ve||!ct||Object.keys(ct).forEach(Ce=>{let J="";-1!==["width","height","top","right","bottom","left"].indexOf(Ce)&&function je(Ve){return""!==Ve&&!isNaN(parseFloat(Ve))&&isFinite(Number(Ve))}(ct[Ce])&&(J="px"),Ct?Ct.setStyle(Ve,Ce,`${String(ct[Ce])}${J}`):Ve.style[Ce]=String(ct[Ce])+J})}function bt(Ve){let ct=Ve.offsets.target;const Ct=Ve.instance.target.querySelector(".arrow");if(!Ct)return Ve;const Ce=-1!==["left","right"].indexOf(Ve.placement.split(" ")[0]),J=Ce?"height":"width",ae=Ce?"Top":"Left",Oe=ae.toLowerCase(),ot=Ce?"left":"top",Se=Ce?"bottom":"right",Ft=at(Ct)[J],lt=Ve.placement.split(" ")[1];(Ve.offsets.host[Se]??0)-Ft<(ct[Oe]??0)&&(ct[Oe]-=(ct[Oe]??0)-((Ve.offsets.host[Se]??0)-Ft)),Number(Ve.offsets.host[Oe])+Number(Ft)>(ct[Se]??0)&&(ct[Oe]+=Number(Ve.offsets.host[Oe])+Number(Ft)-Number(ct[Se])),ct=Lt(ct);const Bt=ue(Ve.instance.target),Ut=parseFloat(Bt[`margin${ae}`])||0,fn=parseFloat(Bt[`border${ae}Width`])||0;let gn;if(lt){const jn=parseFloat(Bt.borderRadius)||0,ai=Number(Ut+fn+jn);gn=Oe===lt?Number(Ve.offsets.host[Oe])+ai:Number(Ve.offsets.host[Oe])+Number(Ve.offsets.host[J]-ai)}else gn=Number(Ve.offsets.host[Oe])+Number(Ve.offsets.host[J]/2-Ft/2);let An=gn-(ct[Oe]??0)-Ut-fn;return An=Math.max(Math.min(ct[J]-(Ft+5),An),0),Ve.offsets.arrow={[Oe]:Math.round(An),[ot]:""},Ve.instance.arrow=Ct,Ve}function Nt(Ve){if(Ve.offsets.target=Lt(Ve.offsets.target),!$e(Ve.options,"flip"))return Ve.offsets.target={...Ve.offsets.target,...Ee(Ve.instance.target,Ve.offsets.host,Ve.placement)},Ve;const ct=wn(Ve.instance.target,Ve.instance.host,0,"viewport",!1);let Ct=Ve.placement.split(" ")[0],Ce=Ve.placement.split(" ")[1]||"";const ot=Yn("auto",Ve.offsets.host,Ve.instance.target,Ve.instance.host,Ve.options.allowedPositions),Se=[Ct,ot];return Se.forEach((Ft,lt)=>{if(Ct!==Ft||Se.length===lt+1)return;Ct=Ve.placement.split(" ")[0];const Bt="left"===Ct&&Math.floor(Ve.offsets.target.right??0)>Math.floor(Ve.offsets.host.left??0)||"right"===Ct&&Math.floor(Ve.offsets.target.left??0)Math.floor(Ve.offsets.host.top??0)||"bottom"===Ct&&Math.floor(Ve.offsets.target.top??0)Math.floor(ct.right??0),gn=Math.floor(Ve.offsets.target.top??0)Math.floor(ct.bottom??0),jn="left"===Ct&&Ut||"right"===Ct&&fn||"top"===Ct&&gn||"bottom"===Ct&&An,ai=-1!==["top","bottom"].indexOf(Ct),di=ai&&"left"===Ce&&Ut||ai&&"right"===Ce&&fn||!ai&&"left"===Ce&&gn||!ai&&"right"===Ce&&An;(Bt||jn||di)&&((Bt||jn)&&(Ct=Se[lt+1]),di&&(Ce=function Rn(Ve){return"right"===Ve?"left":"left"===Ve?"right":Ve}(Ce)),Ve.placement=Ct+(Ce?` ${Ce}`:""),Ve.offsets.target={...Ve.offsets.target,...Ee(Ve.instance.target,Ve.offsets.host,Ve.placement)})}),Ve}function nn(Ve){if(!$e(Ve.options,"preventOverflow"))return Ve;const ct="transform",Ct=Ve.instance.target.style,{top:Ce,left:J,[ct]:ae}=Ct;Ct.top="",Ct.left="",Ct[ct]="";const Oe=wn(Ve.instance.target,Ve.instance.host,0,Ve.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);Ct.top=Ce,Ct.left=J,Ct[ct]=ae;const Se={primary(Ft){let lt=Ve.offsets.target[Ft];return(Ve.offsets.target[Ft]??0)<(Oe[Ft]??0)&&(lt=Math.max(Ve.offsets.target[Ft]??0,Oe[Ft]??0)),{[Ft]:lt}},secondary(Ft){const lt="right"===Ft,Bt=lt?"left":"top";let fn=Ve.offsets.target[Bt];return(Ve.offsets.target[Ft]??0)>(Oe[Ft]??0)&&(fn=Math.min(Ve.offsets.target[Bt]??0,(Oe[Ft]??0)-Ve.offsets.target[lt?"width":"height"])),{[Bt]:fn}}};return["left","right","top","bottom"].forEach(Ft=>{const lt=-1!==["left","top","start"].indexOf(Ft)?Se.primary:Se.secondary;Ve.offsets.target={...Ve.offsets.target,...lt(Ft)}}),Ve}function Dn(Ve){const ct=Ve.placement,Ct=ct.split(" ")[0],Ce=ct.split(" ")[1];if(Ce){const{host:J,target:ae}=Ve.offsets,Oe=-1!==["bottom","top"].indexOf(Ct),ot=Oe?"left":"top",Se=Oe?"width":"height",Ft={start:{[ot]:J[ot]},end:{[ot]:(J[ot]??0)+J[Se]-ae[Se]}};Ve.offsets.target={...ae,[ot]:ot===Ce?Ft.start[ot]:Ft.end[ot]}}return Ve}const rn=new class Ot{position(ct,Ct){return this.offset(ct,Ct)}offset(ct,Ct){return Be(Ct,ct)}positionElements(ct,Ct,Ce,J,ae){const Oe=[Nt,Dn,nn,bt],Se=function Qt(Ve,ct,Ct,Ce){if(!Ve||!ct)return;const J=Be(Ve,ct);!Ct.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!Ct.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(Ct="auto");const ae=!!Ct.match(/auto/g);let Oe=Ct.match(/auto\s(left|right|top|bottom|start|end)/)?Ct.split(" ")[1]||"auto":Ct;const ot=Oe.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return ot&&(Oe=ot[1]+(ot[2]?` ${ot[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(Oe)&&(Oe="auto"),Oe=Yn(Oe,J,Ve,ct,Ce?Ce.allowedPositions:void 0),{options:Ce||{modifiers:{}},instance:{target:Ve,host:ct,arrow:void 0},offsets:{target:Ee(Ve,J,Oe),host:J,arrow:void 0},positionFixed:!1,placement:Oe,placementAuto:ae}}(Ct,ct,ee[Ce],ae);if(Se)return Oe.reduce((Ft,lt)=>lt(Ft),Se)}};function vn(Ve,ct,Ct,Ce,J,ae){const Oe=rn.positionElements(Ve,ct,Ct,Ce,J);if(!Oe)return;const ot=function ti(Ve){return{width:Ve.offsets.target.width,height:Ve.offsets.target.height,left:Math.floor(Ve.offsets.target.left??0),top:Math.round(Ve.offsets.target.top??0),bottom:Math.round(Ve.offsets.target.bottom??0),right:Math.floor(Ve.offsets.target.right??0)}}(Oe);rt(ct,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${ot.left}px, ${ot.top}px, 0px)`},ae),Oe.instance.arrow&&rt(Oe.instance.arrow,Oe.offsets.arrow,ae),function Ze(Ve,ct){const Ct=Ve.instance.target;let Ce=Ct.className;const J=(0,e.Wl)().isBs5?re[Ve.placement]:Ve.placement;Ve.placementAuto&&(Ce=Ce.replace(/bs-popover-auto/g,`bs-popover-${J}`),Ce=Ce.replace(/ms-2|me-2|mb-2|mt-2/g,""),Ce=Ce.replace(/bs-tooltip-auto/g,`bs-tooltip-${J}`),Ce=Ce.replace(/\sauto/g,` ${J}`),-1!==Ce.indexOf("popover")&&(Ce=Ce+" "+function he(Ve){return(0,e.Wl)().isBs5?tt(Ve,"end")?"ms-2":tt(Ve,"start")?"me-2":tt(Ve,"top")?"mb-2":tt(Ve,"bottom")?"mt-2":"":""}(J)),-1!==Ce.indexOf("popover")&&-1===Ce.indexOf("popover-auto")&&(Ce+=" popover-auto"),-1!==Ce.indexOf("tooltip")&&-1===Ce.indexOf("tooltip-auto")&&(Ce+=" tooltip-auto")),Ce=Ce.replace(/left|right|top|bottom|end|start/g,`${J.split(" ")[0]}`),ct?ct.setAttribute(Ct,"class",Ce):Ct.className=Ce}(Oe,ae)}let ei=(()=>{class Ve{constructor(Ct,Ce,J){this.update$$=new I.x,this.positionElements=new Map,this.isDisabled=!1,(0,D.NF)(J)&&Ct.runOutsideAngular(()=>{this.triggerEvent$=(0,S.T)((0,w.R)(window,"scroll",{passive:!0}),(0,w.R)(window,"resize",{passive:!0}),(0,n.of)(0,Z.Z),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(ae=>{vn(Wn(ae.target),Wn(ae.element),ae.attachment,ae.appendToBody,this.options,Ce.createRenderer(null,null))})})})}position(Ct){this.addPositionElement(Ct)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(Ct){this.positionElements.set(Wn(Ct.element),Ct)}calcPosition(){this.update$$.next(null)}deletePositionElement(Ct){this.positionElements.delete(Wn(Ct))}setOptions(Ct){this.options=Ct}static#e=this.\u0275fac=function(Ce){return new(Ce||Ve)(l.LFG(l.R0b),l.LFG(l.FYo),l.LFG(l.Lbi))};static#t=this.\u0275prov=l.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})();function Wn(Ve){return"string"==typeof Ve?document.querySelector(Ve):Ve instanceof l.SBq?Ve.nativeElement:Ve??null}},2268:(ft,Ie,C)=>{"use strict";C.d(Ie,{i9:()=>se,z8:()=>te});var e=C(5879),l=C(3161),D=C(4060),I=C(7582),S=C(1835),w=C(4825),n=C(6814);const Z=["*"];let ee=(()=>{class oe{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),re=(()=>{class oe{get _bsVersions(){return(0,l.Wl)()}constructor(_e){Object.assign(this,_e)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=D.Bz[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}static#e=this.\u0275fac=function(Re){return new(Re||oe)(e.Y36(ee))};static#t=this.\u0275cmp=e.Xpm({type:oe,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(Re,mt){2&Re&&(e.uIk("id",mt.id),e.Tol("show tooltip in tooltip-"+mt.placement+" bs-tooltip-"+mt.placement+" "+mt.placement+" "+mt.containerClass))},ngContentSelectors:Z,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(Re,mt){1&Re&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}return oe})(),ue=0,se=(()=>{class oe{get isOpen(){return this._tooltip.isShown}set isOpen(_e){_e?this.show():this.hide()}set htmlContent(_e){(0,l.O4)("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=_e}set _placement(_e){(0,l.O4)("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=_e}set _isOpen(_e){(0,l.O4)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=_e}get _isOpen(){return(0,l.O4)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(_e){(0,l.O4)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!_e}get _enable(){return(0,l.O4)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(_e){(0,l.O4)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=_e?"body":this.container}get _appendToBody(){return(0,l.O4)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(_e){(0,l.O4)("tooltipClass deprecated")}set _tooltipContext(_e){(0,l.O4)("tooltipContext deprecated")}set _tooltipPopupDelay(_e){(0,l.O4)("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=_e}get _tooltipTrigger(){return(0,l.O4)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(_e){(0,l.O4)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(_e||"").toString()}constructor(_e,Re,mt,Ge,Lt,je){this._elementRef=Ge,this._renderer=Lt,this._positionService=je,this.tooltipId=ue++,this.adaptivePosition=!0,this.tooltipChange=new e.vpe,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new e.vpe,this._tooltip=Re.createLoader(this._elementRef,_e,this._renderer).provide({provide:ee,useValue:mt}),Object.assign(this,mt),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(_e=>{_e||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const _e=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(re).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},Re=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=(0,w.H)(this.delay).subscribe(()=>{_e(),Re()}),this.triggers&&(0,l.AL)(this.triggers).forEach(mt=>{mt.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,mt.close,()=>{this._delaySubscription?.unsubscribe(),Re()}))})):_e()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}static#e=this.\u0275fac=function(Re){return new(Re||oe)(e.Y36(e.s_b),e.Y36(S.oj),e.Y36(ee),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(D.sA))};static#t=this.\u0275dir=e.lG2({type:oe,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:["tooltipHtml","htmlContent"],_placement:["tooltipPlacement","_placement"],_isOpen:["tooltipIsOpen","_isOpen"],_enable:["tooltipEnable","_enable"],_appendToBody:["tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:["tooltipClass","_popupClass"],_tooltipContext:["tooltipContext","_tooltipContext"],_tooltipPopupDelay:["tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:["tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]})}return(0,I.gn)([(0,l.GU)(),(0,I.w6)("design:type",Object)],oe.prototype,"tooltip",void 0),oe})(),te=(()=>{class oe{static forRoot(){return{ngModule:oe,providers:[S.oj,D.sA]}}static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=e.oAB({type:oe});static#n=this.\u0275inj=e.cJS({imports:[n.ez]})}return oe})()},3161:(ft,Ie,C)=>{"use strict";C.d(Ie,{AL:()=>I,C:()=>Z,GU:()=>wn,O4:()=>gi,Rg:()=>n,Wl:()=>un,wo:()=>w});var e=C(5879);class l{constructor(dt,at){this.open=dt,this.close=at||dt}isManual(){return"manual"===this.open||"manual"===this.close}}const D={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function I(Rn,dt=D){const at=(Rn||"").trim();if(0===at.length)return[];const Be=at.split(/\s+/).map($e=>$e.split(":")).map($e=>{const me=dt[$e[0]]||$e;return new l(me[0],me[1])}),Ee=Be.filter($e=>$e.isManual());if(Ee.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===Ee.length&&Be.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return Be}function w(Rn,dt){const at=I(dt.triggers),Be=dt.target;if(1===at.length&&at[0].isManual())return Function.prototype;const Ee=[],$e=[],me=()=>{$e.forEach(tt=>Ee.push(tt())),$e.length=0};return at.forEach(tt=>{const he=tt.open===tt.close,Ze=he?dt.toggle:dt.show;if(!he&&tt.close&&dt.hide){const rt=tt.close,bt=dt.hide;$e.push(()=>Rn.listen(Be,rt,bt))}Ze&&Ee.push(Rn.listen(Be,tt.open,()=>Ze(me)))}),()=>{Ee.forEach(tt=>tt())}}function n(Rn,dt){return dt.outsideClick?Rn.listen("document","click",at=>{dt.target&&dt.target.contains(at.target)||dt.targets&&dt.targets.some(Be=>Be.contains(at.target))||dt.hide&&dt.hide()}):Function.prototype}function Z(Rn,dt){return dt.outsideEsc?Rn.listen("document","keyup.esc",at=>{dt.target&&dt.target.contains(at.target)||dt.targets&&dt.targets.some(Be=>Be.contains(at.target))||dt.hide&&dt.hide()}):Function.prototype}const ee=typeof window<"u"&&window||{};let Tt;function xt(){const Rn=ee.document.createElement("span");Rn.innerText="testing bs version",Rn.classList.add("d-none"),Rn.classList.add("pl-1"),ee.document.head.appendChild(Rn);const dt=ee.getComputedStyle(Rn).paddingLeft;return dt&&parseFloat(dt)?(ee.document.head.removeChild(Rn),"bs4"):(ee.document.head.removeChild(Rn),"bs5")}function un(){return{isBs4:(Tt||(Tt=xt()),"bs4"===Tt),isBs5:(Tt||(Tt=xt()),"bs5"===Tt)}}function wn(){return function(at,Be){const Ee=` __${Be}Value`;Object.defineProperty(at,Be,{get(){return this[Ee]},set($e){const me=this[Ee];this[Ee]=$e,me!==$e&&this[Be+"Change"]&&this[Be+"Change"].emit($e)}})}}const Yn={},ti=typeof console>"u"||!("warn"in console);function gi(Rn){!(0,e.X6Q)()||ti||Rn in Yn||(Yn[Rn]=!0,console.warn(Rn))}},8468:(ft,Ie,C)=>{"use strict";C.d(Ie,{Fy:()=>fn,bB:()=>oi,Mp:()=>lt});var e=C(5879),l=C(6814),D=C(8645),I=C(3019),S=C(2096),w=C(2438),n=C(9666),Z=C(9397),ee=C(2181),re=C(4664),ue=C(1374),se=C(8180),te=C(836),oe=C(7398),ce=C(9732),_e=C(9360);const mt=(qt,_t)=>(qt.push(_t),qt);var Lt=C(5177),je=C(1662),Tt=C(6825);function xt(qt,_t){}const St=function(qt,_t){return{$implicit:qt,index:_t}};function Zt(qt,_t){if(1&qt&&e.YNc(0,xt,0,0,"ng-template",4),2&qt){const G=e.oxw(),U=G.$implicit,ve=G.index,Pe=e.oxw();e.Q6J("ngTemplateOutlet",U.tplRef)("ngTemplateOutletContext",e.WLB(2,St,Pe.preparePublicSlide(U),ve))}}const yt=function(qt,_t,G,U){return{width:qt,"margin-left":_t,"margin-right":G,left:U}};function un(qt,_t){if(1&qt){const G=e.EpF();e.ynx(0),e.TgZ(1,"div",2),e.NdJ("animationend",function(){const Pe=e.CHM(G).$implicit,ut=e.oxw();return e.KtG(ut.clear(Pe.id))}),e.YNc(2,Zt,1,5,null,3),e.qZA(),e.BQk()}if(2&qt){const G=_t.$implicit;e.xp6(1),e.Q6J("ngClass",G.classes)("ngStyle",e.l5B(4,yt,G.width+"px",G.marginL?G.marginL+"px":"",G.marginR?G.marginR+"px":"",G.left))("@autoHeight",G.heightState),e.xp6(1),e.Q6J("ngIf",G.load)}}const Jt=function(qt,_t,G,U,ve){return{width:qt,transform:_t,transition:G,"padding-left":U,"padding-right":ve}},tn=function(qt,_t){return{isMouseDragable:qt,isTouchDragable:_t}};function wn(qt,_t){if(1&qt&&(e.TgZ(0,"div",4),e._UZ(1,"owl-stage",5),e.qZA()),2&qt){const G=e.oxw();e.xp6(1),e.Q6J("owlDraggable",e.WLB(3,tn,null==G.owlDOMData?null:G.owlDOMData.isMouseDragable,null==G.owlDOMData?null:G.owlDOMData.isTouchDragable))("stageData",G.stageData)("slidesData",G.slidesData)}}const Ln=function(qt,_t){return{active:qt,"owl-dot-text":_t}};function Yn(qt,_t){if(1&qt){const G=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const Pe=e.CHM(G).$implicit,ut=e.oxw(2);return e.KtG(ut.moveByDot(Pe.id))}),e._UZ(1,"span",12),e.qZA()}if(2&qt){const G=_t.$implicit;e.Q6J("ngClass",e.WLB(2,Ln,G.active,G.showInnerContent)),e.xp6(1),e.Q6J("innerHTML",G.innerContent,e.oJD)}}const ti=function(qt){return{disabled:qt}};function gi(qt,_t){if(1&qt){const G=e.EpF();e.ynx(0),e.TgZ(1,"div",6)(2,"div",7),e.NdJ("click",function(){e.CHM(G);const ve=e.oxw();return e.KtG(ve.prev())}),e.qZA(),e.TgZ(3,"div",8),e.NdJ("click",function(){e.CHM(G);const ve=e.oxw();return e.KtG(ve.next())}),e.qZA()(),e.TgZ(4,"div",9),e.YNc(5,Yn,2,5,"div",10),e.qZA(),e.BQk()}if(2&qt){const G=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(7,ti,null==G.navData?null:G.navData.disabled)),e.xp6(1),e.Q6J("ngClass",e.VKq(9,ti,null==G.navData||null==G.navData.prev?null:G.navData.prev.disabled))("innerHTML",null==G.navData||null==G.navData.prev?null:G.navData.prev.htmlText,e.oJD),e.xp6(1),e.Q6J("ngClass",e.VKq(11,ti,null==G.navData||null==G.navData.next?null:G.navData.next.disabled))("innerHTML",null==G.navData||null==G.navData.next?null:G.navData.next.htmlText,e.oJD),e.xp6(1),e.Q6J("ngClass",e.VKq(13,ti,null==G.dotsData?null:G.dotsData.disabled)),e.xp6(1),e.Q6J("ngForOf",null==G.dotsData?null:G.dotsData.dots)}}const Rn=function(qt,_t,G,U,ve){return{"owl-rtl":qt,"owl-loaded":_t,"owl-responsive":G,"owl-drag":U,"owl-grab":ve}};class dt{items=3;skip_validateItems=!1;loop=!1;center=!1;rewind=!1;mouseDrag=!0;touchDrag=!0;pullDrag=!0;freeDrag=!1;margin=0;stagePadding=0;merge=!1;mergeFit=!0;autoWidth=!1;startPosition=0;rtl=!1;smartSpeed=250;fluidSpeed=!1;dragEndSpeed=!1;responsive={};responsiveRefreshRate=200;nav=!1;navText=["prev","next"];navSpeed=!1;slideBy=1;dots=!0;dotsEach=!1;dotsData=!1;dotsSpeed=!1;autoplay=!1;autoplayTimeout=5e3;autoplayHoverPause=!1;autoplaySpeed=!1;autoplayMouseleaveTimeout=1;lazyLoad=!1;lazyLoadEager=0;slideTransition="";animateOut=!1;animateIn=!1;autoHeight=!1;URLhashListener=!1;constructor(){}}class at{items="number";skip_validateItems="boolean";loop="boolean";center="boolean";rewind="boolean";mouseDrag="boolean";touchDrag="boolean";pullDrag="boolean";freeDrag="boolean";margin="number";stagePadding="number";merge="boolean";mergeFit="boolean";autoWidth="boolean";startPosition="number|string";rtl="boolean";smartSpeed="number";fluidSpeed="boolean";dragEndSpeed="number|boolean";responsive={};responsiveRefreshRate="number";nav="boolean";navText="string[]";navSpeed="number|boolean";slideBy="number|string";dots="boolean";dotsEach="number|boolean";dotsData="boolean";dotsSpeed="number|boolean";autoplay="boolean";autoplayTimeout="number";autoplayHoverPause="boolean";autoplaySpeed="number|boolean";autoplayMouseleaveTimeout="number";lazyLoad="boolean";lazyLoadEager="number";slideTransition="string";animateOut="string|boolean";animateIn="string|boolean";autoHeight="boolean";URLhashListener="boolean";constructor(){}}let Be=(()=>{class qt{errorHandler;constructor(G){this.errorHandler=G}log(G,...U){(0,e.X6Q)()&&console.log(G,...U)}error(G){this.errorHandler.handleError(G)}warn(G,...U){console.warn(G,...U)}static \u0275fac=function(U){return new(U||qt)(e.LFG(e.qLn))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})();var $e=function(qt){return qt.Event="event",qt.State="state",qt}($e||{}),me=function(qt){return qt.Default="default",qt.Inner="inner",qt.Outer="outer",qt}(me||{});let Ze=(()=>{class qt{logger;_viewSettingsShipper$=new D.x;_initializedCarousel$=new D.x;_changeSettingsCarousel$=new D.x;_changedSettingsCarousel$=new D.x;_translateCarousel$=new D.x;_translatedCarousel$=new D.x;_resizeCarousel$=new D.x;_resizedCarousel$=new D.x;_refreshCarousel$=new D.x;_refreshedCarousel$=new D.x;_dragCarousel$=new D.x;_draggedCarousel$=new D.x;settings={items:0};owlDOMData={rtl:!1,isResponsive:!1,isRefreshed:!1,isLoaded:!1,isLoading:!1,isMouseDragable:!1,isGrab:!1,isTouchDragable:!1};stageData={transform:"translate3d(0px,0px,0px)",transition:"0s",width:0,paddingL:0,paddingR:0};slidesData;navData;dotsData;_width;_items=[];_widths=[];_supress={};_plugins={};_current=null;_clones=[];_mergers=[];_speed=null;_coordinates=[];_breakpoint=null;clonedIdPrefix="cloned-";_options={};_invalidated={};get invalidated(){return this._invalidated}_states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}};get states(){return this._states}_pipe=[{filter:["width","items","settings"],run:G=>{G.current=this._items&&this._items[this.relative(this._current)]?.id}},{filter:["width","items","settings"],run:G=>{const U=this.settings.margin||"",Pe=this.settings.rtl,ut={"margin-left":Pe?U:"","margin-right":Pe?"":U};!this.settings.autoWidth||this.slidesData.forEach(We=>{We.marginL=ut["margin-left"],We.marginR=ut["margin-right"]}),G.css=ut}},{filter:["width","items","settings"],run:G=>{const U=+(this.width()/this.settings.items).toFixed(3)-this.settings.margin,ve=!this.settings.autoWidth,Pe=[];let ut=null,We=this._items.length;for(G.items={merge:!1,width:U};We-- >0;)ut=this._mergers[We],ut=this.settings.mergeFit&&Math.min(ut,this.settings.items)||ut,G.items.merge=ut>1||G.items.merge,Pe[We]=ve?U*ut:this._items[We].width?this._items[We].width:U;this._widths=Pe,this.slidesData.forEach((ze,be)=>{ze.width=this._widths[be],ze.marginR=G.css["margin-right"],ze.marginL=G.css["margin-left"]})}},{filter:["items","settings"],run:()=>{const G=[],U=this._items,ve=this.settings,Pe=Math.max(2*ve.items,4),ut=2*Math.ceil(U.length/2);let We=[],ze=[],be=ve.loop&&U.length?ve.rewind?Pe:Math.max(Pe,ut):0;for(be/=2;be-- >0;)G.push(this.normalize(G.length/2,!0)),We.push({...this.slidesData[G[G.length-1]]}),G.push(this.normalize(U.length-1-(G.length-1)/2,!0)),ze.unshift({...this.slidesData[G[G.length-1]]});this._clones=G,We=We.map(Te=>(Te.id=`${this.clonedIdPrefix}${Te.id}`,Te.isActive=!1,Te.isCloned=!0,Te)),ze=ze.map(Te=>(Te.id=`${this.clonedIdPrefix}${Te.id}`,Te.isActive=!1,Te.isCloned=!0,Te)),this.slidesData=ze.concat(this.slidesData).concat(We)}},{filter:["width","items","settings"],run:()=>{const G=this.settings.rtl?1:-1,U=this._clones.length+this._items.length,ve=[];let Pe=-1,ut=0,We=0;for(;++Pe{const G=this.settings.stagePadding,U=this._coordinates,ve={width:Math.ceil(Math.abs(U[U.length-1]))+2*G,"padding-left":G||"","padding-right":G||""};this.stageData.width=ve.width,this.stageData.paddingL=ve["padding-left"],this.stageData.paddingR=ve["padding-right"]}},{filter:["width","items","settings"],run:G=>{let U=G.current?this.slidesData.findIndex(ve=>ve.id===G.current):0;U=Math.max(this.minimum(),Math.min(this.maximum(),U)),this.reset(U)}},{filter:["position"],run:()=>{this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:()=>{const G=this.settings.rtl?1:-1,U=2*this.settings.stagePadding,ve=[];let Pe,ut,We,ze,be,Te;if(Pe=this.coordinates(this.current()),"number"==typeof Pe?Pe+=U:Pe=0,ut=Pe+this.width()*G,-1===G&&this.settings.center){const He=this._coordinates.filter(Wt=>this.settings.items%2==1?Wt>=Pe:Wt>Pe);Pe=He.length?He[He.length-1]:Pe}for(be=0,Te=this._coordinates.length;be",ut)||this._op(ze,"<",Pe)&&this._op(ze,">",ut))&&ve.push(be);this.slidesData.forEach(He=>(He.isActive=!1,He)),ve.forEach(He=>{this.slidesData[He].isActive=!0}),this.settings.center&&(this.slidesData.forEach(He=>(He.isCentered=!1,He)),this.slidesData[this.current()].isCentered=!0)}}];constructor(G){this.logger=G}getViewCurSettings(){return this._viewSettingsShipper$.asObservable()}getInitializedState(){return this._initializedCarousel$.asObservable()}getChangeState(){return this._changeSettingsCarousel$.asObservable()}getChangedState(){return this._changedSettingsCarousel$.asObservable()}getTranslateState(){return this._translateCarousel$.asObservable()}getTranslatedState(){return this._translatedCarousel$.asObservable()}getResizeState(){return this._resizeCarousel$.asObservable()}getResizedState(){return this._resizedCarousel$.asObservable()}getRefreshState(){return this._refreshCarousel$.asObservable()}getRefreshedState(){return this._refreshedCarousel$.asObservable()}getDragState(){return this._dragCarousel$.asObservable()}getDraggedState(){return this._draggedCarousel$.asObservable()}setOptions(G){const U=new dt,ve=this._validateOptions(G,U);this._options={...U,...ve}}_validateOptions(G,U){const ve={...G},Pe=new at,ut=(We,ze)=>(this.logger.log(`options.${ze} must be type of ${We}; ${ze}=${G[ze]} skipped to defaults: ${ze}=${U[ze]}`),U[ze]);for(const We in ve)if(ve.hasOwnProperty(We))if("number"===Pe[We])this._isNumeric(ve[We])?(ve[We]=+ve[We],ve[We]="items"===We?this._validateItems(ve[We],ve.skip_validateItems):ve[We]):ve[We]=ut(Pe[We],We);else if("boolean"===Pe[We]&&"boolean"!=typeof ve[We])ve[We]=ut(Pe[We],We);else if("number|boolean"!==Pe[We]||this._isNumberOrBoolean(ve[We]))if("number|string"!==Pe[We]||this._isNumberOrString(ve[We]))if("string|boolean"!==Pe[We]||this._isStringOrBoolean(ve[We])){if("string[]"===Pe[We])if(Array.isArray(ve[We])){let ze=!1;ve[We].forEach(be=>{ze="string"==typeof be}),ze||(ve[We]=ut(Pe[We],We))}else ve[We]=ut(Pe[We],We)}else ve[We]=ut(Pe[We],We);else ve[We]=ut(Pe[We],We);else ve[We]=ut(Pe[We],We);return ve}_validateItems(G,U){let ve=G;return G>this._items.length?U?this.logger.log("The option 'items' in your options is bigger than the number of slides. The navigation got disabled"):(ve=this._items.length,this.logger.log("The option 'items' in your options is bigger than the number of slides. This option is updated to the current number of slides and the navigation got disabled")):G===this._items.length&&(this.settings.dots||this.settings.nav)&&this.logger.log("Option 'items' in your options is equal to the number of slides. So the navigation got disabled"),ve}setCarouselWidth(G){this._width=G}setup(G,U,ve){this.setCarouselWidth(G),this.setItems(U),this._defineSlidesData(),this.setOptions(ve),this.settings={...this._options},this.setOptionsForViewport(),this._trigger("change",{property:{name:"settings",value:this.settings}}),this.invalidate("settings"),this._trigger("changed",{property:{name:"settings",value:this.settings}})}setOptionsForViewport(){const G=this._width,U=this._options.responsive;let ve=-1;if(!Object.keys(U).length)return;if(!G)return void(this.settings.items=1);for(const ut in U)U.hasOwnProperty(ut)&&+ut<=G&&+ut>ve&&(ve=Number(ut));this.settings={...this._options,...U[ve],items:U[ve]&&U[ve].items?this._validateItems(U[ve].items,this._options.skip_validateItems):this._options.items},delete this.settings.responsive,this.owlDOMData.isResponsive=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag;const Pe=[];this._items.forEach(ut=>{Pe.push(this.settings.merge?ut.dataMerge:1)}),this._mergers=Pe,this._breakpoint=ve,this.invalidate("settings")}initialize(G){this.enter("initializing"),this.owlDOMData.rtl=this.settings.rtl,this._mergers.length&&(this._mergers=[]),G.forEach(U=>{this._mergers.push(this.settings.merge?U.dataMerge:1)}),this._clones=[],this.reset(this._isNumeric(this.settings.startPosition)?+this.settings.startPosition:0),this.invalidate("items"),this.refresh(),this.owlDOMData.isLoaded=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag,this.sendChanges(),this.leave("initializing"),this._trigger("initialized")}sendChanges(){this._viewSettingsShipper$.next({owlDOMData:this.owlDOMData,stageData:this.stageData,slidesData:this.slidesData,navData:this.navData,dotsData:this.dotsData})}_optionsLogic(){this.settings.autoWidth&&(this.settings.stagePadding=0,this.settings.merge=!1)}update(){let G=0;const U=this._pipe.length,ve=ut=>this._invalidated[ut],Pe={};for(;G0)&&this._pipe[G].run(Pe),G++}this.slidesData.forEach(ut=>ut.classes=this.setCurSlideClasses(ut)),this.sendChanges(),this._invalidated={},this.is("valid")||this.enter("valid")}width(G){switch(G=G||me.Default){case me.Inner:case me.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}}refresh(){this.enter("refreshing"),this._trigger("refresh"),this._defineSlidesData(),this.setOptionsForViewport(),this._optionsLogic(),this.update(),this.leave("refreshing"),this._trigger("refreshed")}onResize(G){if(!this._items.length)return!1;this.setCarouselWidth(G),this.enter("resizing"),this._trigger("resize"),this.invalidate("width"),this.refresh(),this.leave("resizing"),this._trigger("resized")}prepareDragging(G){let ve,U=null;return ve=this.stageData.transform.replace(/.*\(|\)| |[^,-\d]\w|\)/g,"").split(","),U={x:+ve[0],y:+ve[1]},this.is("animating")&&this.invalidate("position"),"mousedown"===G.type&&(this.owlDOMData.isGrab=!0),this.speed(0),U}enterDragging(){this.enter("dragging"),this._trigger("drag")}defineNewCoordsDrag(G,U){let ve=null,Pe=null,ut=null;const We=this.difference(U.pointer,this.pointer(G)),ze=this.difference(U.stage.start,We);return!!this.is("dragging")&&(this.settings.loop?(ve=this.coordinates(this.minimum()),Pe=+this.coordinates(this.maximum()+1)-ve,ze.x=((ze.x-ve)%Pe+Pe)%Pe+ve):(ve=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),Pe=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),ut=this.settings.pullDrag?-1*We.x/5:0,ze.x=Math.max(Math.min(ze.x,ve+ut),Pe+ut)),ze)}finishDragging(G,U,ve){const ut=this.difference(U.pointer,this.pointer(G)),We=U.stage.current,ze=["right","left"][+(this.settings.rtl?ut.x<+this.settings.rtl:ut.x>+this.settings.rtl)];let be,Te,He;(0!==ut.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(+this.settings.dragEndSpeed||this.settings.smartSpeed),be=this.closest(We.x,0!==ut.x?ze:U.direction),Te=this.current(),He=this.current(-1===be?void 0:be),Te!==He&&(this.invalidate("position"),this.update()),U.direction=ze,(Math.abs(ut.x)>3||(new Date).getTime()-U.time>300)&&ve()),this.is("dragging")&&(this.leave("dragging"),this._trigger("dragged"))}closest(G,U){const Pe=this.width();let ut=this.coordinates(),We=-1;this.settings.center&&(ut=ut.map(ze=>(0===ze&&(ze+=1e-6),ze)));for(let ze=0;zeut[ze]-30&&Gut[ze]-Pe-30&&G",ut[ze+1]||ut[ze]-Pe)?We="left"===U?ze+1:ze:null===U&&G>ut[ze]-30&&G",ut[this.minimum()])?We=G=this.minimum():this._op(G,"<",ut[this.maximum()])&&(We=G=this.maximum())),We}animate(G){const U=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),U&&(this.enter("animating"),this._trigger("translate")),this.stageData.transform="translate3d("+G+"px,0px,0px)",this.stageData.transition=this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}is(G){return this._states.current[G]&&this._states.current[G]>0}current(G){return void 0===G?this._current:0!==this._items.length?(G=this.normalize(G),this._current!==G&&(this._trigger("change",{property:{name:"position",value:G}}),this._current=G,this.invalidate("position"),this._trigger("changed",{property:{name:"position",value:this._current}})),this._current):void 0}invalidate(G){return"string"==typeof G&&(this._invalidated[G]=!0,this.is("valid")&&this.leave("valid")),Object.keys(this._invalidated)}reset(G){void 0!==(G=this.normalize(G))&&(this._speed=0,this._current=G,this._suppress(["translate","translated"]),this.animate(this.coordinates(G)),this._release(["translate","translated"]))}normalize(G,U){const ve=this._items.length,Pe=U?0:this._clones.length;return!this._isNumeric(G)||ve<1?G=void 0:(G<0||G>=ve+Pe)&&(G=((G-Pe/2)%ve+ve)%ve+Pe/2),G}relative(G){return this.normalize(G-=this._clones.length/2,!0)}maximum(G=!1){const U=this.settings;let Pe,ut,We,ve=this._coordinates.length;if(U.loop)ve=this._clones.length/2+this._items.length-1;else if(U.autoWidth||U.merge){for(Pe=this._items.length,ut=this.slidesData[--Pe].width,We=this._width;Pe-- >0&&(ut+=+this.slidesData[Pe].width+this.settings.margin,!(ut>We)););ve=Pe+1}else ve=U.center?this._items.length-1:this._items.length-U.items;return G&&(ve-=this._clones.length/2),Math.max(ve,0)}minimum(G=!1){return G?0:this._clones.length/2}items(G){return void 0===G?this._items.slice():(G=this.normalize(G,!0),[this._items[G]])}mergers(G){return void 0===G?this._mergers.slice():(G=this.normalize(G,!0),this._mergers[G])}clones(G){const U=this._clones.length/2,ve=U+this._items.length,Pe=ut=>ut%2==0?ve+ut/2:U-(ut+1)/2;return void 0===G?this._clones.map((ut,We)=>Pe(We)):this._clones.map((ut,We)=>ut===G?Pe(We):null).filter(ut=>ut)}speed(G){return void 0!==G&&(this._speed=G),this._speed}coordinates(G){let Pe,ut,U=1,ve=G-1;return void 0===G?(ut=this._coordinates.map((We,ze)=>this.coordinates(ze)),ut):(this.settings.center?(this.settings.rtl&&(U=-1,ve=G+1),Pe=this._coordinates[G],Pe+=(this.width()-Pe+(this._coordinates[ve]||0))/2*U):Pe=this._coordinates[ve]||0,Pe=Math.ceil(Pe),Pe)}_duration(G,U,ve){return 0===ve?0:Math.min(Math.max(Math.abs(U-G),1),6)*Math.abs(+ve||this.settings.smartSpeed)}to(G,U){let ve=this.current(),Pe=null,ut=G-this.relative(ve),We=this.maximum(),ze=0;const be=+(ut>0)-+(ut<0),Te=this._items.length,He=this.minimum();this.settings.loop?(!this.settings.rewind&&Math.abs(ut)>Te/2&&(ut+=-1*be*Te),Pe=(((G=ve+ut)-He)%Te+Te)%Te+He,Pe!==G&&Pe-ut<=We&&Pe-ut>0&&(ve=Pe-ut,G=Pe,ze=30,this.reset(ve),this.sendChanges())):this.settings.rewind?(We+=1,G=(G%We+We)%We):G=Math.max(He,Math.min(We,G)),setTimeout(()=>{this.speed(this._duration(ve,G,U)),this.current(G),this.update()},ze)}next(G){G=G||!1,this.to(this.relative(this.current())+1,G)}prev(G){G=G||!1,this.to(this.relative(this.current())-1,G)}onTransitionEnd(G){if(void 0!==G)return!1;this.leave("animating"),this._trigger("translated")}_viewport(){let G;return this._width?G=this._width:this.logger.log("Can not detect viewport width."),G}setItems(G){this._items=G}_defineSlidesData(){let G;this.slidesData&&this.slidesData.length&&(G=new Map,this.slidesData.forEach(U=>{U.load&&G.set(U.id,U.load)})),this.slidesData=this._items.map(U=>({id:`${U.id}`,isActive:!1,tplRef:U.tplRef,dataMerge:U.dataMerge,width:0,isCloned:!1,load:!!G&&G.get(U.id),hashFragment:U.dataHash}))}setCurSlideClasses(G){const U={active:G.isActive,center:G.isCentered,cloned:G.isCloned,animated:G.isAnimated,"owl-animated-in":G.isDefAnimatedIn,"owl-animated-out":G.isDefAnimatedOut};return this.settings.animateIn&&(U[this.settings.animateIn]=G.isCustomAnimatedIn),this.settings.animateOut&&(U[this.settings.animateOut]=G.isCustomAnimatedOut),U}_op(G,U,ve){const Pe=this.settings.rtl;switch(U){case"<":return Pe?G>ve:G":return Pe?Gve;case">=":return Pe?G<=ve:G>=ve;case"<=":return Pe?G>=ve:G<=ve}}_trigger(G,U,ve,Pe,ut){switch(G){case"initialized":this._initializedCarousel$.next(G);break;case"change":this._changeSettingsCarousel$.next(U);break;case"changed":this._changedSettingsCarousel$.next(U);break;case"drag":this._dragCarousel$.next(G);break;case"dragged":this._draggedCarousel$.next(G);break;case"resize":this._resizeCarousel$.next(G);break;case"resized":this._resizedCarousel$.next(G);break;case"refresh":this._refreshCarousel$.next(G);break;case"refreshed":this._refreshedCarousel$.next(G);break;case"translate":this._translateCarousel$.next(G);break;case"translated":this._translatedCarousel$.next(G)}}enter(G){[G].concat(this._states.tags[G]||[]).forEach(U=>{void 0===this._states.current[U]&&(this._states.current[U]=0),this._states.current[U]++})}leave(G){[G].concat(this._states.tags[G]||[]).forEach(U=>{(0===this._states.current[U]||this._states.current[U])&&this._states.current[U]--})}register(G){G.type===$e.State&&(this._states.tags[G.name]=this._states.tags[G.name]?this._states.tags[G.name].concat(G.tags):G.tags,this._states.tags[G.name]=this._states.tags[G.name].filter((U,ve)=>this._states.tags[G.name].indexOf(U)===ve))}_suppress(G){G.forEach(U=>{this._supress[U]=!0})}_release(G){G.forEach(U=>{delete this._supress[U]})}pointer(G){const U={x:null,y:null};return(G=(G=G.originalEvent||G||window.event).touches&&G.touches.length?G.touches[0]:G.changedTouches&&G.changedTouches.length?G.changedTouches[0]:G).pageX?(U.x=G.pageX,U.y=G.pageY):(U.x=G.clientX,U.y=G.clientY),U}_isNumeric(G){return!isNaN(parseFloat(G))}_isNumberOrBoolean(G){return this._isNumeric(G)||"boolean"==typeof G}_isNumberOrString(G){return this._isNumeric(G)||"string"==typeof G}_isStringOrBoolean(G){return"string"==typeof G||"boolean"==typeof G}difference(G,U){return null===G||null===U?{x:0,y:0}:{x:G.x-U.x,y:G.y-U.y}}static \u0275fac=function(U){return new(U||qt)(e.LFG(Be))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),rt=(()=>{class qt{carouselService;navSubscription;_initialized=!1;_pages=[];_navData={disabled:!1,prev:{disabled:!1,htmlText:""},next:{disabled:!1,htmlText:""}};_dotsData={disabled:!1,dots:[]};constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.navSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(ut=>{this.initialize(),this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),U=this.carouselService.getChangedState().pipe((0,ee.h)(ut=>"position"===ut.property.name),(0,Z.b)(ut=>{this.update()})),ve=this.carouselService.getRefreshedState().pipe((0,Z.b)(()=>{this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),Pe=(0,I.T)(G,U,ve);this.navSubscription=Pe.subscribe(()=>{})}initialize(){this._navData.disabled=!0,this._navData.prev.htmlText=this.carouselService.settings.navText[0],this._navData.next.htmlText=this.carouselService.settings.navText[1],this._dotsData.disabled=!0,this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}_updateNavPages(){let G,U,ve;const Pe=this.carouselService.clones().length/2,ut=Pe+this.carouselService.items().length,We=this.carouselService.maximum(!0),ze=[],be=this.carouselService.settings;let Te=be.center||be.autoWidth||be.dotsData?1:Math.floor(Number(be.dotsEach))||Math.floor(be.items);if(Te=+Te,"page"!==be.slideBy&&(be.slideBy=Math.min(+be.slideBy,be.items)),be.dots||"page"===be.slideBy)for(G=Pe,U=0,ve=0;G=Te||0===U){if(ze.push({start:Math.min(We,G-Pe),end:G-Pe+Te-1}),Math.min(We,G-Pe)===We)break;U=0,++ve}U+=this.carouselService.mergers(this.carouselService.relative(G))}this._pages=ze}draw(){let G;const U=this.carouselService.settings,ve=this.carouselService.items(),Pe=ve.length<=U.items;if(this._navData.disabled=!U.nav||Pe,this._dotsData.disabled=!U.dots||Pe,U.dots)if(G=this._pages.length-this._dotsData.dots.length,U.dotsData&&0!==G)this._dotsData.dots=[],ve.forEach(ut=>{this._dotsData.dots.push({active:!1,id:`dot-${ut.id}`,innerContent:ut.dotContent,showInnerContent:!0})});else if(G>0){const ut=this._dotsData.dots.length>0?this._dotsData.dots.length:0;for(let We=0;We=this.carouselService.maximum(!0)),this.carouselService.navData=this._navData}_updateDots(){let G;this.carouselService.settings.dots&&(this._dotsData.dots.forEach(U=>{!0===U.active&&(U.active=!1)}),G=this._current(),this._dotsData.dots.length&&(this._dotsData.dots[G].active=!0),this.carouselService.dotsData=this._dotsData)}_current(){const G=this.carouselService.relative(this.carouselService.current());let U;const ve=this._pages.filter((Pe,ut)=>Pe.start<=G&&Pe.end>=G).pop();return U=this._pages.findIndex(Pe=>Pe.start===ve.start&&Pe.end===ve.end),U}_getPosition(G){let U,ve;const Pe=this.carouselService.settings;return"page"===Pe.slideBy?(U=this._current(),ve=this._pages.length,G?++U:--U,U=this._pages[(U%ve+ve)%ve].start):(U=this.carouselService.relative(this.carouselService.current()),ve=this.carouselService.items().length,G?U+=+Pe.slideBy:U-=+Pe.slideBy),U}next(G){this.carouselService.to(this._getPosition(!0),G)}prev(G){this.carouselService.to(this._getPosition(!1),G)}to(G,U,ve){let Pe;!ve&&this._pages.length?(Pe=this._pages.length,this.carouselService.to(this._pages[(G%Pe+Pe)%Pe].start,U)):this.carouselService.to(G,U)}moveByDot(G){const U=this._dotsData.dots.findIndex(ve=>G===ve.id);this.to(U,this.carouselService.settings.dotsSpeed)}toSlideById(G){const U=this.carouselService.slidesData.findIndex(ve=>ve.id===G&&!1===ve.isCloned);-1===U||U===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(U),!1)}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})();const bt=new e.OlP("WindowToken");class Nt{get nativeWindow(){throw new Error("Not implemented.")}}const rn=[{provide:Nt,useClass:(()=>{class qt extends Nt{constructor(){super()}get nativeWindow(){return window}static \u0275fac=function(U){return new(U||qt)};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})()},{provide:bt,useFactory:function nn(qt,_t){return(0,l.NF)(_t)?qt.nativeWindow:{setTimeout:(U,ve)=>{},clearTimeout:U=>{}}},deps:[Nt,e.Lbi]}],vn=new e.OlP("DocumentToken");class ei{get nativeDocument(){throw new Error("Not implemented.")}}const Ce=[{provide:ei,useClass:(()=>{class qt extends ei{constructor(){super()}get nativeDocument(){return document}static \u0275fac=function(U){return new(U||qt)};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})()},{provide:vn,useFactory:function Ve(qt,_t){return(0,l.NF)(_t)?qt.nativeDocument:{hidden:!1,visibilityState:"visible"}},deps:[ei,e.Lbi]}];let J=(()=>{class qt{carouselService;ngZone;autoplaySubscription;_timeout=null;_paused=!1;_isArtificialAutoplayTimeout;_isAutoplayStopped=!1;get isAutoplayStopped(){return this._isAutoplayStopped}set isAutoplayStopped(G){this._isAutoplayStopped=G}winRef;docRef;constructor(G,U,ve,Pe){this.carouselService=G,this.ngZone=Pe,this.winRef=U,this.docRef=ve,this.spyDataStreams()}ngOnDestroy(){this.autoplaySubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{this.carouselService.settings.autoplay&&this.play()})),U=this.carouselService.getChangedState().pipe((0,Z.b)(ut=>{this._handleChangeObservable(ut)})),ve=this.carouselService.getResizedState().pipe((0,Z.b)(()=>{this.carouselService.settings.autoplay&&!this._isAutoplayStopped?this.play():this.stop()})),Pe=(0,I.T)(G,U,ve);this.autoplaySubscription=Pe.subscribe(()=>{})}play(G,U){this._paused&&(this._paused=!1,this._setAutoPlayInterval(this.carouselService.settings.autoplayMouseleaveTimeout)),!this.carouselService.is("rotating")&&(this.carouselService.enter("rotating"),this._setAutoPlayInterval())}_getNextTimeout(G,U){return this._timeout&&this.winRef.clearTimeout(this._timeout),this._isArtificialAutoplayTimeout=!!G,this.ngZone.runOutsideAngular(()=>this.winRef.setTimeout(()=>{this.ngZone.run(()=>{this._paused||this.carouselService.is("busy")||this.carouselService.is("interacting")||this.docRef.hidden||this.carouselService.next(U||this.carouselService.settings.autoplaySpeed)})},G||this.carouselService.settings.autoplayTimeout))}_setAutoPlayInterval(G){this._timeout=this._getNextTimeout(G)}stop(){this.carouselService.is("rotating")&&(this._paused=!0,this.winRef.clearTimeout(this._timeout),this.carouselService.leave("rotating"))}pause(){this.carouselService.is("rotating")&&(this._paused=!0)}_handleChangeObservable(G){"settings"===G.property.name?this.carouselService.settings.autoplay?this.play():this.stop():"position"===G.property.name&&this.carouselService.settings.autoplay&&this._setAutoPlayInterval()}_playAfterTranslated(){(0,S.of)("translated").pipe((0,re.w)(G=>this.carouselService.getTranslatedState()),(0,ue.P)(),(0,ee.h)(()=>this._isArtificialAutoplayTimeout),(0,Z.b)(()=>this._setAutoPlayInterval())).subscribe(()=>{})}startPausing(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&this.pause()}startPlayingMouseLeave(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}startPlayingTouchEnd(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze),e.LFG(bt),e.LFG(vn),e.LFG(e.R0b))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),ae=(()=>{class qt{carouselService;lazyLoadSubscription;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.lazyLoadSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{const ut=this.carouselService.settings&&!this.carouselService.settings.lazyLoad;this.carouselService.slidesData.forEach(We=>We.load=!!ut)})),U=this.carouselService.getChangeState(),ve=this.carouselService.getResizedState(),Pe=(0,I.T)(G,U,ve).pipe((0,Z.b)(ut=>this._defineLazyLoadSlides(ut)));this.lazyLoadSubscription=Pe.subscribe(()=>{})}_defineLazyLoadSlides(G){if(this.carouselService.settings&&this.carouselService.settings.lazyLoad&&(G.property&&"position"===G.property.name||"initialized"===G||"resized"===G)){const U=this.carouselService.settings,ve=this.carouselService.clones().length;let Pe=U.center&&Math.ceil(U.items/2)||U.items,ut=U.center&&-1*Pe||0,We=(G.property&&void 0!==G.property.value?G.property.value:this.carouselService.current())+ut;for(U.lazyLoadEager>0&&(Pe+=U.lazyLoadEager,U.loop&&(We-=U.lazyLoadEager,Pe++));ut++this._load(ze)),We++}}_load(G){this.carouselService.slidesData[G].load||(this.carouselService.slidesData[G].load=!0)}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Oe=(()=>{class qt{carouselService;animateSubscription;swapping=!0;previous=void 0;next=void 0;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.animateSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getChangeState().pipe((0,Z.b)(be=>{"position"===be.property.name&&(this.previous=this.carouselService.current(),this.next=be.property.value)})),U=this.carouselService.getDragState(),ve=this.carouselService.getDraggedState(),Pe=this.carouselService.getTranslatedState(),ut=(0,I.T)(U,ve,Pe).pipe((0,Z.b)(be=>this.swapping="translated"===be)),We=this.carouselService.getTranslateState().pipe((0,Z.b)(be=>{this.swapping&&(this.carouselService._options.animateOut||this.carouselService._options.animateIn)&&this._swap()})),ze=(0,I.T)(G,We,ut).pipe();this.animateSubscription=ze.subscribe(()=>{})}_swap(){if(1!==this.carouselService.settings.items)return;let G;this.carouselService.speed(0);const U=this.carouselService.slidesData[this.previous],ve=this.carouselService.slidesData[this.next],Pe=this.carouselService.settings.animateIn,ut=this.carouselService.settings.animateOut;this.carouselService.current()!==this.previous&&(ut&&(G=+this.carouselService.coordinates(this.previous)-+this.carouselService.coordinates(this.next),this.carouselService.slidesData.forEach(We=>{We.id===U.id&&(We.left=`${G}px`,We.isAnimated=!0,We.isDefAnimatedOut=!0,We.isCustomAnimatedOut=!0)})),Pe&&this.carouselService.slidesData.forEach(We=>{We.id===ve.id&&(We.isAnimated=!0,We.isDefAnimatedIn=!0,We.isCustomAnimatedIn=!0)}))}clear(G){this.carouselService.slidesData.forEach(U=>{U.id===G&&(U.left="",U.isAnimated=!1,U.isDefAnimatedOut=!1,U.isCustomAnimatedOut=!1,U.isDefAnimatedIn=!1,U.isCustomAnimatedIn=!1,U.classes=this.carouselService.setCurSlideClasses(U))}),this.carouselService.onTransitionEnd()}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),ot=(()=>{class qt{carouselService;autoHeightSubscription;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.autoHeightSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight?this.update():this.carouselService.slidesData.forEach(We=>We.heightState="full")})),U=this.carouselService.getChangedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight&&"position"===ut.property.name&&this.update()})),ve=this.carouselService.getRefreshedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight&&this.update()})),Pe=(0,I.T)(G,U,ve);this.autoHeightSubscription=Pe.subscribe(()=>{})}update(){const G=this.carouselService.settings.items;let U=this.carouselService.current(),ve=U+G;this.carouselService.settings.center&&(U=G%2==1?U-(G-1)/2:U-G/2,ve=G%2==1?U+G:U+G+1),this.carouselService.slidesData.forEach((Pe,ut)=>{Pe.heightState=ut>=U&&ut{class qt{carouselService;route;router;hashSubscription;currentHashFragment;constructor(G,U,ve){this.carouselService=G,this.route=U,this.router=ve,this.spyDataStreams(),this.route||(this.route={fragment:(0,S.of)("no route").pipe((0,se.q)(1))}),this.router||(this.router={navigate:(Pe,ut)=>{}})}ngOnDestroy(){this.hashSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>this.listenToRoute())),U=this.carouselService.getChangedState().pipe((0,Z.b)(Pe=>{if(this.carouselService.settings.URLhashListener&&"position"===Pe.property.name){const ut=this.carouselService.current(),We=this.carouselService.slidesData[ut].hashFragment;if(!We||We===this.currentHashFragment)return;this.router.navigate(["./"],{fragment:We,relativeTo:this.route})}})),ve=(0,I.T)(G,U);this.hashSubscription=ve.subscribe(()=>{})}rewind(G){const U=this.carouselService.slidesData.findIndex(ve=>ve.hashFragment===G&&!1===ve.isCloned);-1===U||U===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(U),!1)}listenToRoute(){this.route.fragment.pipe((0,te.T)("URLHash"===this.carouselService.settings.startPosition?0:2)).subscribe(U=>{this.currentHashFragment=U,this.rewind(U)})}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze),e.LFG(je.gz,8),e.LFG(je.F0,8))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Ft=0,lt=(()=>{class qt{tplRef;id="owl-slide-"+Ft++;_dataMerge=1;set dataMerge(G){this._dataMerge=this.isNumeric(G)?G:1}get dataMerge(){return this._dataMerge}width=0;dotContent="";dataHash="";constructor(G){this.tplRef=G}isNumeric(G){return!isNaN(parseFloat(G))}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.Rgc))};static \u0275dir=e.lG2({type:qt,selectors:[["ng-template","carouselSlide",""]],inputs:{id:"id",dataMerge:"dataMerge",width:"width",dotContent:"dotContent",dataHash:"dataHash"}})}return qt})(),Bt=(()=>{class qt{resizeObservable$;get onResize$(){return this.resizeObservable$}constructor(G,U){this.resizeObservable$=(0,l.NF)(U)?(0,w.R)(G,"resize"):(new D.x).asObservable()}static \u0275fac=function(U){return new(U||qt)(e.LFG(bt),e.LFG(e.Lbi))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Ut=(()=>{class qt{zone;el;renderer;carouselService;animateService;owlDraggable;stageData;slidesData;listenerMouseMove;listenerTouchMove;listenerOneMouseMove;listenerOneTouchMove;listenerMouseUp;listenerTouchEnd;listenerOneClick;listenerATag;_drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1};_oneDragMove$=new D.x;_oneMoveSubsription;preparePublicSlide=G=>{const U={...G};return delete U.tplRef,U};constructor(G,U,ve,Pe,ut){this.zone=G,this.el=U,this.renderer=ve,this.carouselService=Pe,this.animateService=ut}onMouseDown(G){this.owlDraggable.isMouseDragable&&this._onDragStart(G)}onTouchStart(G){if(G.targetTouches.length>=2)return!1;this.owlDraggable.isTouchDragable&&this._onDragStart(G)}onTouchCancel(G){this._onDragEnd(G)}onDragStart(){if(this.owlDraggable.isMouseDragable)return!1}onSelectStart(){if(this.owlDraggable.isMouseDragable)return!1}ngOnInit(){this._oneMoveSubsription=this._oneDragMove$.pipe((0,ue.P)()).subscribe(()=>{this._sendChanges()})}ngOnDestroy(){this._oneMoveSubsription.unsubscribe()}bindOneMouseTouchMove=G=>{this._oneMouseTouchMove(G)};bindOnDragMove=G=>{this._onDragMove(G)};bindOnDragEnd=G=>{this._onDragEnd(G)};_onDragStart(G){let U=null;3!==G.which&&(U=this._prepareDragging(G),this._drag.time=(new Date).getTime(),this._drag.target=G.target,this._drag.stage.start=U,this._drag.stage.current=U,this._drag.pointer=this._pointer(G),this.listenerMouseUp=this.renderer.listen(document,"mouseup",this.bindOnDragEnd),this.listenerTouchEnd=this.renderer.listen(document,"touchend",this.bindOnDragEnd),this.zone.runOutsideAngular(()=>{this.listenerOneMouseMove=this.renderer.listen(document,"mousemove",this.bindOneMouseTouchMove),this.listenerOneTouchMove=this.renderer.listen(document,"touchmove",this.bindOneMouseTouchMove)}))}_oneMouseTouchMove(G){const U=this._difference(this._drag.pointer,this._pointer(G));this.listenerATag&&this.listenerATag(),!(Math.abs(U.x)<3&&Math.abs(U.y)<3&&this._is("valid"))&&(Math.abs(U.x)<3&&Math.abs(U.x)!1))}_onDragMove(G){let U;const ve=this.carouselService.defineNewCoordsDrag(G,this._drag);!1!==ve&&(U=ve,G.preventDefault(),this._drag.stage.current=U,this._animate(U.x-this._drag.stage.start.x))}_animate(G){this.renderer.setStyle(this.el.nativeElement.children[0],"transform",`translate3d(${G}px,0px,0px`),this.renderer.setStyle(this.el.nativeElement.children[0],"transition","0s")}_onDragEnd(G){this.carouselService.owlDOMData.isGrab=!1,this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving&&(this.renderer.setStyle(this.el.nativeElement.children[0],"transform",""),this.renderer.setStyle(this.el.nativeElement.children[0],"transition",this.carouselService.speed(+this.carouselService.settings.dragEndSpeed||this.carouselService.settings.smartSpeed)/1e3+"s"),this._finishDragging(G),this.listenerMouseMove(),this.listenerTouchMove()),this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this.listenerMouseUp(),this.listenerTouchEnd()}_prepareDragging(G){return this.carouselService.prepareDragging(G)}_oneClickHandler=()=>{this.listenerOneClick=this.renderer.listen(this._drag.target,"click",()=>!1),this.listenerOneClick()};_finishDragging(G){this.carouselService.finishDragging(G,this._drag,this._oneClickHandler)}_pointer(G){return this.carouselService.pointer(G)}_difference(G,U){return this.carouselService.difference(G,U)}_is(G){return this.carouselService.is(G)}_enter(G){this.carouselService.enter(G)}_sendChanges(){this.carouselService.sendChanges()}onTransitionEnd(){this.carouselService.onTransitionEnd()}_enterDragging(){this.carouselService.enterDragging()}clear(G){this.animateService.clear(G)}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ze),e.Y36(Oe))};static \u0275cmp=e.Xpm({type:qt,selectors:[["owl-stage"]],hostBindings:function(U,ve){1&U&&e.NdJ("mousedown",function(ut){return ve.onMouseDown(ut)})("touchstart",function(ut){return ve.onTouchStart(ut)})("touchcancel",function(ut){return ve.onTouchCancel(ut)})("dragstart",function(){return ve.onDragStart()})("selectstart",function(){return ve.onSelectStart()})},inputs:{owlDraggable:"owlDraggable",stageData:"stageData",slidesData:"slidesData"},decls:3,vars:8,consts:[[1,"owl-stage",3,"ngStyle","transitionend"],[4,"ngFor","ngForOf"],[1,"owl-item",3,"ngClass","ngStyle","animationend"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(U,ve){1&U&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("transitionend",function(){return ve.onTransitionEnd()}),e.YNc(2,un,3,9,"ng-container",1),e.qZA()()),2&U&&(e.xp6(1),e.Q6J("ngStyle",e.qbA(2,Jt,ve.stageData.width+"px",ve.stageData.transform,ve.stageData.transition,ve.stageData.paddingL?ve.stageData.paddingL+"px":"",ve.stageData.paddingR?ve.stageData.paddingR+"px":"")),e.xp6(1),e.Q6J("ngForOf",ve.slidesData))},dependencies:[l.mk,l.sg,l.O5,l.tP,l.PC],encapsulation:2,data:{animation:[(0,Tt.X$)("autoHeight",[(0,Tt.SB)("nulled",(0,Tt.oB)({height:0})),(0,Tt.SB)("full",(0,Tt.oB)({height:"*"})),(0,Tt.eR)("full => nulled",[(0,Tt.jt)("700ms 350ms")]),(0,Tt.eR)("nulled => full",[(0,Tt.jt)(350)])])]}})}return qt})(),fn=(()=>{class qt{el;resizeService;carouselService;navigationService;autoplayService;lazyLoadService;animateService;autoHeightService;hashService;logger;changeDetectorRef;slides;translated=new e.vpe;dragging=new e.vpe;change=new e.vpe;changed=new e.vpe;initialized=new e.vpe;carouselWindowWidth;resizeSubscription;_allObservSubscription;_slidesChangesSubscription;owlDOMData;stageData;slidesData=[];navData;dotsData;slidesOutputData;carouselLoaded=!1;options;prevOptions;_viewCurSettings$;_translatedCarousel$;_draggingCarousel$;_changeCarousel$;_changedCarousel$;_initializedCarousel$;_carouselMerge$;docRef;constructor(G,U,ve,Pe,ut,We,ze,be,Te,He,Wt,Pn){this.el=G,this.resizeService=U,this.carouselService=ve,this.navigationService=Pe,this.autoplayService=ut,this.lazyLoadService=We,this.animateService=ze,this.autoHeightService=be,this.hashService=Te,this.logger=He,this.changeDetectorRef=Wt,this.docRef=Pn}onVisibilityChange(G){if(this.carouselService.settings.autoplay)switch(this.docRef.visibilityState){case"visible":!this.autoplayService.isAutoplayStopped&&this.autoplayService.play();break;case"hidden":this.autoplayService.pause()}}ngOnInit(){this.spyDataStreams(),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}ngOnChanges(){this.prevOptions!==this.options&&(this.prevOptions&&this.slides?.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray())):this.prevOptions&&!this.slides?.toArray().length?(this.carouselLoaded=!1,this.logger.log("There are no slides to show. So the carousel won't be re-rendered")):this.carouselLoaded=!1,this.prevOptions=this.options)}ngAfterContentInit(){this.slides.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray()),this._winResizeWatcher()):this.logger.log("There are no slides to show. So the carousel won't be rendered"),this._slidesChangesSubscription=this.slides.changes.pipe((0,Z.b)(G=>{this.carouselService.setup(this.carouselWindowWidth,G.toArray(),this.options),this.carouselService.initialize(G.toArray()),G.toArray().length||(this.carouselLoaded=!1),G.toArray().length&&!this.resizeSubscription&&this._winResizeWatcher()})).subscribe(()=>{})}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe(),this._slidesChangesSubscription&&this._slidesChangesSubscription.unsubscribe(),this._allObservSubscription&&this._allObservSubscription.unsubscribe()}spyDataStreams(){this._viewCurSettings$=this.carouselService.getViewCurSettings().pipe((0,Z.b)(G=>{this.owlDOMData=G.owlDOMData,this.stageData=G.stageData,this.slidesData=G.slidesData,this.carouselLoaded||(this.carouselLoaded=!0),this.navData=G.navData,this.dotsData=G.dotsData,this.changeDetectorRef.markForCheck()})),this._initializedCarousel$=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.initialized.emit(this.slidesOutputData)})),this._translatedCarousel$=this.carouselService.getTranslatedState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.translated.emit(this.slidesOutputData)})),this._changeCarousel$=this.carouselService.getChangeState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.change.emit(this.slidesOutputData)})),this._changedCarousel$=this.carouselService.getChangeState().pipe((0,re.w)(G=>{const U=(0,S.of)(G).pipe((0,ee.h)(()=>"position"===G.property.name),(0,re.w)(()=>(0,n.D)(this.slidesData)),(0,te.T)(G.property.value),(0,se.q)(this.carouselService.settings.items),(0,oe.U)(ve=>{const Pe=this.carouselService.clonedIdPrefix,ut=ve.id.indexOf(Pe)>=0?ve.id.slice(Pe.length):ve.id;return{...ve,id:ut,isActive:!0}}),function Ge(){return(0,_e.e)((qt,_t)=>{(function Re(qt,_t){return(0,_e.e)((0,ce.U)(qt,_t,arguments.length>=2,!1,!0))})(mt,[])(qt).subscribe(_t)})}(),(0,oe.U)(ve=>({slides:ve,startPosition:this.carouselService.relative(G.property.value)})));return(0,I.T)(U)}),(0,Z.b)(G=>{this.gatherTranslatedData(),this.changed.emit(G.slides.length?G:this.slidesOutputData)})),this._draggingCarousel$=this.carouselService.getDragState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.dragging.emit({dragging:!0,data:this.slidesOutputData})}),(0,re.w)(()=>this.carouselService.getDraggedState().pipe((0,oe.U)(()=>!!this.carouselService.is("animating")))),(0,re.w)(G=>G?this.carouselService.getTranslatedState().pipe((0,ue.P)()):(0,S.of)("not animating")),(0,Z.b)(()=>{this.dragging.emit({dragging:!1,data:this.slidesOutputData})})),this._carouselMerge$=(0,I.T)(this._viewCurSettings$,this._translatedCarousel$,this._draggingCarousel$,this._changeCarousel$,this._changedCarousel$,this._initializedCarousel$),this._allObservSubscription=this._carouselMerge$.subscribe(()=>{})}_winResizeWatcher(){Object.keys(this.carouselService._options.responsive).length&&(this.resizeSubscription=this.resizeService.onResize$.pipe((0,ee.h)(()=>this.carouselWindowWidth!==this.el.nativeElement.querySelector(".owl-carousel").clientWidth),(0,Lt.g)(this.carouselService.settings.responsiveRefreshRate)).subscribe(()=>{this.carouselService.onResize(this.el.nativeElement.querySelector(".owl-carousel").clientWidth),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}))}onTransitionEnd(){this.carouselService.onTransitionEnd()}next(){this.carouselLoaded&&this.navigationService.next(this.carouselService.settings.navSpeed)}prev(){this.carouselLoaded&&this.navigationService.prev(this.carouselService.settings.navSpeed)}moveByDot(G){this.carouselLoaded&&this.navigationService.moveByDot(G)}to(G){this.carouselLoaded&&this.navigationService.toSlideById(G)}gatherTranslatedData(){let G;const U=this.carouselService.clonedIdPrefix,ve=this.slidesData.filter(Pe=>!0===Pe.isActive).map(Pe=>({id:Pe.id.indexOf(U)>=0?Pe.id.slice(U.length):Pe.id,width:Pe.width,marginL:Pe.marginL,marginR:Pe.marginR,center:Pe.isCentered}));G=this.carouselService.relative(this.carouselService.current()),this.slidesOutputData={startPosition:G,slides:ve}}startPausing(){this.autoplayService.startPausing()}startPlayML(){this.autoplayService.startPlayingMouseLeave()}startPlayTE(){this.autoplayService.startPlayingTouchEnd()}stopAutoplay(){this.autoplayService.isAutoplayStopped=!0,this.autoplayService.stop()}startAutoplay(){this.autoplayService.isAutoplayStopped=!1,this.autoplayService.play()}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.SBq),e.Y36(Bt),e.Y36(Ze),e.Y36(rt),e.Y36(J),e.Y36(ae),e.Y36(Oe),e.Y36(ot),e.Y36(Se),e.Y36(Be),e.Y36(e.sBO),e.Y36(vn))};static \u0275cmp=e.Xpm({type:qt,selectors:[["owl-carousel-o"]],contentQueries:function(U,ve,Pe){if(1&U&&e.Suo(Pe,lt,4),2&U){let ut;e.iGM(ut=e.CRH())&&(ve.slides=ut)}},hostBindings:function(U,ve){1&U&&e.NdJ("visibilitychange",function(ut){return ve.onVisibilityChange(ut)},!1,e.evT)},inputs:{options:"options"},outputs:{translated:"translated",dragging:"dragging",change:"change",changed:"changed",initialized:"initialized"},features:[e._Bn([rt,J,Ze,ae,Oe,ot,Se]),e.TTD],decls:4,vars:9,consts:[[1,"owl-carousel","owl-theme",3,"ngClass","mouseover","mouseleave","touchstart","touchend"],["owlCarousel",""],["class","owl-stage-outer",4,"ngIf"],[4,"ngIf"],[1,"owl-stage-outer"],[3,"owlDraggable","stageData","slidesData"],[1,"owl-nav",3,"ngClass"],[1,"owl-prev",3,"ngClass","innerHTML","click"],[1,"owl-next",3,"ngClass","innerHTML","click"],[1,"owl-dots",3,"ngClass"],["class","owl-dot",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"owl-dot",3,"ngClass","click"],[3,"innerHTML"]],template:function(U,ve){1&U&&(e.TgZ(0,"div",0,1),e.NdJ("mouseover",function(){return ve.startPausing()})("mouseleave",function(){return ve.startPlayML()})("touchstart",function(){return ve.startPausing()})("touchend",function(){return ve.startPlayTE()}),e.YNc(2,wn,2,6,"div",2),e.YNc(3,gi,6,15,"ng-container",3),e.qZA()),2&U&&(e.Q6J("ngClass",e.qbA(3,Rn,null==ve.owlDOMData?null:ve.owlDOMData.rtl,null==ve.owlDOMData?null:ve.owlDOMData.isLoaded,null==ve.owlDOMData?null:ve.owlDOMData.isResponsive,null==ve.owlDOMData?null:ve.owlDOMData.isMouseDragable,null==ve.owlDOMData?null:ve.owlDOMData.isGrab)),e.xp6(2),e.Q6J("ngIf",ve.carouselLoaded),e.xp6(1),e.Q6J("ngIf",ve.slides.toArray().length))},dependencies:[l.mk,l.sg,l.O5,Ut],styles:[".owl-theme[_ngcontent-%COMP%]{display:block}"],changeDetection:0})}return qt})(),oi=(()=>{class qt{static \u0275fac=function(U){return new(U||qt)};static \u0275mod=e.oAB({type:qt});static \u0275inj=e.cJS({providers:[rn,Bt,Ce,Be],imports:[l.ez]})}return qt})()},2425:(ft,Ie,C)=>{"use strict";C.d(Ie,{FN:()=>Ln,Rh:()=>gi,_W:()=>wn});var e=C(5879),l=C(6825),D=C(6814),I=C(8645),S=C(6593);const w=["toast-component",""];function n(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.remove())}),e.TgZ(1,"span",6),e._uU(2,"\xd7"),e.qZA()()}}function Z(Ee,$e){if(1&Ee&&(e.ynx(0),e._uU(1),e.BQk()),2&Ee){const me=e.oxw(2);e.xp6(1),e.hij("[",me.duplicatesCount+1,"]")}}function ee(Ee,$e){if(1&Ee&&(e.TgZ(0,"div"),e._uU(1),e.YNc(2,Z,2,1,"ng-container",4),e.qZA()),2&Ee){const me=e.oxw();e.Tol(me.options.titleClass),e.uIk("aria-label",me.title),e.xp6(1),e.hij(" ",me.title," "),e.xp6(1),e.Q6J("ngIf",me.duplicatesCount)}}function re(Ee,$e){if(1&Ee&&e._UZ(0,"div",7),2&Ee){const me=e.oxw();e.Tol(me.options.messageClass),e.Q6J("innerHTML",me.message,e.oJD)}}function ue(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&Ee){const me=e.oxw();e.Tol(me.options.messageClass),e.uIk("aria-label",me.message),e.xp6(1),e.hij(" ",me.message," ")}}function se(Ee,$e){if(1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"div",9),e.qZA()),2&Ee){const me=e.oxw();e.xp6(1),e.Udp("width",me.width+"%")}}class Lt{_attachedHost;component;viewContainerRef;injector;constructor($e,me){this.component=$e,this.injector=me}attach($e,me){return this._attachedHost=$e,$e.attach(this,me)}detach(){const $e=this._attachedHost;if($e)return this._attachedHost=void 0,$e.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost($e){this._attachedHost=$e}}class je{_attachedPortal;_disposeFn;attach($e,me){return this._attachedPortal=$e,this.attachComponentPortal($e,me)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn($e){this._disposeFn=$e}}class Tt{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new I.x;_activate=new I.x;_manualClose=new I.x;_resetTimeout=new I.x;_countDuplicate=new I.x;constructor($e){this._overlayRef=$e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate($e,me){$e&&this._resetTimeout.next(),me&&this._countDuplicate.next(++this.duplicatesCount)}}class xt{toastId;config;message;title;toastType;toastRef;_onTap=new I.x;_onAction=new I.x;constructor($e,me,tt,he,Ze,rt){this.toastId=$e,this.config=me,this.message=tt,this.title=he,this.toastType=Ze,this.toastRef=rt,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction($e){this._onAction.next($e)}onAction(){return this._onAction.asObservable()}}const Zt=new e.OlP("ToastConfig");class yt extends je{_hostDomElement;_componentFactoryResolver;_appRef;constructor($e,me,tt){super(),this._hostDomElement=$e,this._componentFactoryResolver=me,this._appRef=tt}attachComponentPortal($e,me){const tt=this._componentFactoryResolver.resolveComponentFactory($e.component);let he;return he=tt.create($e.injector),this._appRef.attachView(he.hostView),this.setDisposeFn(()=>{this._appRef.detachView(he.hostView),he.destroy()}),me?this._hostDomElement.insertBefore(this._getComponentRootNode(he),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(he)),he}_getComponentRootNode($e){return $e.hostView.rootNodes[0]}}let un=(()=>{class Ee{_document=(0,e.f3M)(D.K0);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const me=this._document.createElement("div");me.classList.add("overlay-container"),me.setAttribute("aria-live","polite"),this._document.body.appendChild(me),this._containerElement=me}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();class Jt{_portalHost;constructor($e){this._portalHost=$e}attach($e,me=!0){return this._portalHost.attach($e,me)}detach(){return this._portalHost.detach()}}let tn=(()=>{class Ee{_overlayContainer=(0,e.f3M)(un);_componentFactoryResolver=(0,e.f3M)(e._Vd);_appRef=(0,e.f3M)(e.z2F);_document=(0,e.f3M)(D.K0);_paneElements=new Map;create(me,tt){return this._createOverlayRef(this.getPaneElement(me,tt))}getPaneElement(me="",tt){return this._paneElements.get(tt)||this._paneElements.set(tt,{}),this._paneElements.get(tt)[me]||(this._paneElements.get(tt)[me]=this._createPaneElement(me,tt)),this._paneElements.get(tt)[me]}_createPaneElement(me,tt){const he=this._document.createElement("div");return he.id="toast-container",he.classList.add(me),he.classList.add("toast-container"),tt?tt.getContainerElement().appendChild(he):this._overlayContainer.getContainerElement().appendChild(he),he}_createPortalHost(me){return new yt(me,this._componentFactoryResolver,this._appRef)}_createOverlayRef(me){return new Jt(this._createPortalHost(me))}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),wn=(()=>{class Ee{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(me,tt,he,Ze,rt){this.overlay=tt,this._injector=he,this.sanitizer=Ze,this.ngZone=rt,this.toastrConfig={...me.default,...me.config},me.config.iconClasses&&(this.toastrConfig.iconClasses={...me.default.iconClasses,...me.config.iconClasses})}show(me,tt,he={},Ze=""){return this._preBuildNotification(Ze,me,tt,this.applyConfig(he))}success(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",me,tt,this.applyConfig(he))}error(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",me,tt,this.applyConfig(he))}info(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",me,tt,this.applyConfig(he))}warning(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",me,tt,this.applyConfig(he))}clear(me){for(const tt of this.toasts)if(void 0!==me){if(tt.toastId===me)return void tt.toastRef.manualClose()}else tt.toastRef.manualClose()}remove(me){const tt=this._findToast(me);if(!tt||(tt.activeToast.toastRef.close(),this.toasts.splice(tt.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(me,tt,he,Ze)):this._buildNotification(me,tt,he,Ze)}_buildNotification(me,tt,he,Ze){if(!Ze.toastComponent)throw new Error("toastComponent required");const rt=this.findDuplicate(he,tt,this.toastrConfig.resetTimeoutOnDuplicate&&Ze.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&he||tt)&&this.toastrConfig.preventDuplicates&&null!==rt)return rt;this.previousToastMessage=tt;let bt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(bt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Nt=this.overlay.create(Ze.positionClass,this.overlayContainer);this.index=this.index+1;let Qt=tt;tt&&Ze.enableHtml&&(Qt=this.sanitizer.sanitize(e.q3G.HTML,tt));const nn=new Tt(Nt),Dn=new xt(this.index,Ze,Qt,he,me,nn),rn=e.zs3.create({providers:[{provide:xt,useValue:Dn}],parent:this._injector}),vn=new Lt(Ze.toastComponent,rn),ei=Nt.attach(vn,Ze.newestOnTop);nn.componentInstance=ei.instance;const Wn={toastId:this.index,title:he||"",message:tt||"",toastRef:nn,onShown:nn.afterActivate(),onHidden:nn.afterClosed(),onTap:Dn.onTap(),onAction:Dn.onAction(),portal:ei};return bt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Wn.toastRef.activate()})),this.toasts.push(Wn),Wn}static \u0275fac=function(tt){return new(tt||Ee)(e.LFG(Zt),e.LFG(tn),e.LFG(e.zs3),e.LFG(S.H7),e.LFG(e.R0b))};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),Ln=(()=>{class Ee{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(me,tt,he){this.toastrService=me,this.toastPackage=tt,this.ngZone=he,this.message=tt.message,this.title=tt.title,this.options=tt.config,this.originalTimeout=tt.config.timeOut,this.toastClasses=`${tt.toastType} ${tt.config.toastClass}`,this.sub=tt.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=tt.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=tt.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=tt.toastRef.countDuplicate().subscribe(Ze=>{this.duplicatesCount=Ze}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const me=(new Date).getTime();this.width=(this.hideTime-me)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(me,tt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(me),tt)):this.timeout=setTimeout(()=>me(),tt)}outsideInterval(me,tt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(me),tt)):this.intervalId=setInterval(()=>me(),tt)}runInsideAngular(me){this.ngZone?this.ngZone.run(()=>me()):me()}static \u0275fac=function(tt){return new(tt||Ee)(e.Y36(wn),e.Y36(xt),e.Y36(e.R0b))};static \u0275cmp=e.Xpm({type:Ee,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(tt,he){1&tt&&e.NdJ("click",function(){return he.tapToast()})("mouseenter",function(){return he.stickAround()})("mouseleave",function(){return he.delayedHideToast()}),2&tt&&(e.d8E("@flyInOut",he.state),e.Tol(he.toastClasses),e.Udp("display",he.displayStyle))},standalone:!0,features:[e.jDz],attrs:w,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(tt,he){1&tt&&(e.YNc(0,n,3,0,"button",0),e.YNc(1,ee,3,5,"div",1),e.YNc(2,re,1,3,"div",2),e.YNc(3,ue,2,4,"div",3),e.YNc(4,se,2,2,"div",4)),2&tt&&(e.Q6J("ngIf",he.options.closeButton),e.xp6(1),e.Q6J("ngIf",he.title),e.xp6(1),e.Q6J("ngIf",he.message&&he.options.enableHtml),e.xp6(1),e.Q6J("ngIf",he.message&&!he.options.enableHtml),e.xp6(1),e.Q6J("ngIf",he.options.progressBar))},dependencies:[D.O5],encapsulation:2,data:{animation:[(0,l.X$)("flyInOut",[(0,l.SB)("inactive",(0,l.oB)({opacity:0})),(0,l.SB)("active",(0,l.oB)({opacity:1})),(0,l.SB)("removed",(0,l.oB)({opacity:0})),(0,l.eR)("inactive => active",(0,l.jt)("{{ easeTime }}ms {{ easing }}")),(0,l.eR)("active => removed",(0,l.jt)("{{ easeTime }}ms {{ easing }}"))])]}})}return Ee})();const Yn={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:Ln},ti=(Ee={})=>(0,e.MR2)([{provide:Zt,useValue:{default:Yn,config:Ee}}]);let gi=(()=>{class Ee{static forRoot(me={}){return{ngModule:Ee,providers:[ti(me)]}}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275mod=e.oAB({type:Ee});static \u0275inj=e.cJS({})}return Ee})()},5861:(ft,Ie,C)=>{"use strict";function e(D,I,S,w,n,Z,ee){try{var re=D[Z](ee),ue=re.value}catch(se){return void S(se)}re.done?I(ue):Promise.resolve(ue).then(w,n)}function l(D){return function(){var I=this,S=arguments;return new Promise(function(w,n){var Z=D.apply(I,S);function ee(ue){e(Z,w,n,ee,re,"next",ue)}function re(ue){e(Z,w,n,ee,re,"throw",ue)}ee(void 0)})}}C.d(Ie,{Z:()=>l})},7582:(ft,Ie,C)=>{"use strict";function S(dt,at,Be,Ee){var tt,$e=arguments.length,me=$e<3?at:null===Ee?Ee=Object.getOwnPropertyDescriptor(at,Be):Ee;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)me=Reflect.decorate(dt,at,Be,Ee);else for(var he=dt.length-1;he>=0;he--)(tt=dt[he])&&(me=($e<3?tt(me):$e>3?tt(at,Be,me):tt(at,Be))||me);return $e>3&&me&&Object.defineProperty(at,Be,me),me}function ue(dt,at){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(dt,at)}function se(dt,at,Be,Ee){return new(Be||(Be=Promise))(function(me,tt){function he(bt){try{rt(Ee.next(bt))}catch(Nt){tt(Nt)}}function Ze(bt){try{rt(Ee.throw(bt))}catch(Nt){tt(Nt)}}function rt(bt){bt.done?me(bt.value):function $e(me){return me instanceof Be?me:new Be(function(tt){tt(me)})}(bt.value).then(he,Ze)}rt((Ee=Ee.apply(dt,at||[])).next())})}function je(dt){return this instanceof je?(this.v=dt,this):new je(dt)}function Tt(dt,at,Be){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $e,Ee=Be.apply(dt,at||[]),me=[];return $e={},tt("next"),tt("throw"),tt("return"),$e[Symbol.asyncIterator]=function(){return this},$e;function tt(Qt){Ee[Qt]&&($e[Qt]=function(nn){return new Promise(function(Dn,Ot){me.push([Qt,nn,Dn,Ot])>1||he(Qt,nn)})})}function he(Qt,nn){try{!function Ze(Qt){Qt.value instanceof je?Promise.resolve(Qt.value.v).then(rt,bt):Nt(me[0][2],Qt)}(Ee[Qt](nn))}catch(Dn){Nt(me[0][3],Dn)}}function rt(Qt){he("next",Qt)}function bt(Qt){he("throw",Qt)}function Nt(Qt,nn){Qt(nn),me.shift(),me.length&&he(me[0][0],me[0][1])}}function St(dt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Be,at=dt[Symbol.asyncIterator];return at?at.call(dt):(dt=function _e(dt){var at="function"==typeof Symbol&&Symbol.iterator,Be=at&&dt[at],Ee=0;if(Be)return Be.call(dt);if(dt&&"number"==typeof dt.length)return{next:function(){return dt&&Ee>=dt.length&&(dt=void 0),{value:dt&&dt[Ee++],done:!dt}}};throw new TypeError(at?"Object is not iterable.":"Symbol.iterator is not defined.")}(dt),Be={},Ee("next"),Ee("throw"),Ee("return"),Be[Symbol.asyncIterator]=function(){return this},Be);function Ee(me){Be[me]=dt[me]&&function(tt){return new Promise(function(he,Ze){!function $e(me,tt,he,Ze){Promise.resolve(Ze).then(function(rt){me({value:rt,done:he})},tt)}(he,Ze,(tt=dt[me](tt)).done,tt.value)})}}}C.d(Ie,{FC:()=>Tt,KL:()=>St,gn:()=>S,mG:()=>se,qq:()=>je,w6:()=>ue}),"function"==typeof SuppressedError&&SuppressedError}},ft=>{var Ie=e=>ft(ft.s=e);Ie(9334),Ie(913)}]); \ No newline at end of file diff --git a/bn-BN/main.cdd6c90df8adce6a.js b/bn-BN/main.cdd6c90df8adce6a.js new file mode 100644 index 0000000..a19316b --- /dev/null +++ b/bn-BN/main.cdd6c90df8adce6a.js @@ -0,0 +1,3 @@ +globalThis.$localize=Object.assign(globalThis.$localize || {},{locale:"bn-BN"}); +"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val));if(i===0||n===1)return 1;return 5}global.ng.common.locales["bn"]=["bn",[["AM","PM"],u,u],u,[["\u09B0","\u09B8\u09CB","\u09AE","\u09AC\u09C1","\u09AC\u09C3","\u09B6\u09C1","\u09B6"],["\u09B0\u09AC\u09BF","\u09B8\u09CB\u09AE","\u09AE\u0999\u09CD\u0997\u09B2","\u09AC\u09C1\u09A7","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF","\u09B6\u09C1\u0995\u09CD\u09B0","\u09B6\u09A8\u09BF"],["\u09B0\u09AC\u09BF\u09AC\u09BE\u09B0","\u09B8\u09CB\u09AE\u09AC\u09BE\u09B0","\u09AE\u0999\u09CD\u0997\u09B2\u09AC\u09BE\u09B0","\u09AC\u09C1\u09A7\u09AC\u09BE\u09B0","\u09AC\u09C3\u09B9\u09B8\u09CD\u09AA\u09A4\u09BF\u09AC\u09BE\u09B0","\u09B6\u09C1\u0995\u09CD\u09B0\u09AC\u09BE\u09B0","\u09B6\u09A8\u09BF\u09AC\u09BE\u09B0"],["\u09B0\u0983","\u09B8\u09CB\u0983","\u09AE\u0983","\u09AC\u09C1\u0983","\u09AC\u09C3\u0983","\u09B6\u09C1\u0983","\u09B6\u09A8\u09BF"]],u,[["\u099C\u09BE","\u09AB\u09C7","\u09AE\u09BE","\u098F","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1","\u0986","\u09B8\u09C7","\u0985","\u09A8","\u09A1\u09BF"],["\u099C\u09BE\u09A8\u09C1","\u09AB\u09C7\u09AC","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"],["\u099C\u09BE\u09A8\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"]],[["\u099C\u09BE","\u09AB\u09C7","\u09AE\u09BE","\u098F","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1","\u0986","\u09B8\u09C7","\u0985","\u09A8","\u09A1\u09BF"],["\u099C\u09BE\u09A8\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AB\u09C7\u09AC\u09CD\u09B0\u09C1\u09AF\u09BC\u09BE\u09B0\u09C0","\u09AE\u09BE\u09B0\u09CD\u099A","\u098F\u09AA\u09CD\u09B0\u09BF\u09B2","\u09AE\u09C7","\u099C\u09C1\u09A8","\u099C\u09C1\u09B2\u09BE\u0987","\u0986\u0997\u09B8\u09CD\u099F","\u09B8\u09C7\u09AA\u09CD\u099F\u09C7\u09AE\u09CD\u09AC\u09B0","\u0985\u0995\u09CD\u099F\u09CB\u09AC\u09B0","\u09A8\u09AD\u09C7\u09AE\u09CD\u09AC\u09B0","\u09A1\u09BF\u09B8\u09C7\u09AE\u09CD\u09AC\u09B0"],u],[["\u0996\u09CD\u09B0\u09BF\u09B8\u09CD\u099F\u09AA\u09C2\u09B0\u09CD\u09AC","\u0996\u09C3\u09B7\u09CD\u099F\u09BE\u09AC\u09CD\u09A6"],u,["\u0996\u09CD\u09B0\u09BF\u09B8\u09CD\u099F\u09AA\u09C2\u09B0\u09CD\u09AC","\u0996\u09CD\u09B0\u09C0\u09B7\u09CD\u099F\u09BE\u09AC\u09CD\u09A6"]],0,[6,0],["d/M/yy","d MMM, y","d MMMM, y","EEEE, d MMMM, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1} {0}",u,u,u],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##,##0.###","#,##,##0%","#,##,##0.00\xA4","#E0"],"BDT","\u09F3","\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6\u09C0 \u099F\u09BE\u0995\u09BE",{"BDT":["\u09F3"],"BYN":[u,"\u0440."],"JPY":["JP\xA5","\xA5"],"PHP":[u,"\u20B1"],"THB":["\u0E3F"],"TWD":["NT$"],"USD":["US$","$"]},"ltr",plural,[[["\u09AD\u09CB\u09B0","\u09B8\u0995\u09BE\u09B2","\u09A6\u09C1\u09AA\u09C1\u09B0","\u09AC\u09BF\u0995\u09BE\u09B2","\u09B8\u09A8\u09CD\u09A7\u09CD\u09AF\u09BE","\u09B0\u09BE\u09A4\u09CD\u09B0\u09BF"],u,["\u09AD\u09CB\u09B0","\u09B8\u0995\u09BE\u09B2","\u09A6\u09C1\u09AA\u09C1\u09B0","\u09AC\u09BF\u0995\u09BE\u09B2","\u09B8\u09A8\u09CD\u09A7\u09CD\u09AF\u09BE","\u09B0\u09BE\u09A4\u09CD\u09B0\u09BF\u09A4\u09C7"]],[["\u09AD\u09CB\u09B0","\u09B8\u0995\u09BE\u09B2","\u09A6\u09C1\u09AA\u09C1\u09B0","\u09AC\u09BF\u0995\u09BE\u09B2","\u09B8\u09A8\u09CD\u09A7\u09CD\u09AF\u09BE","\u09B0\u09BE\u09A4\u09CD\u09B0\u09BF"],u,u],[["04:00","06:00"],["06:00","12:00"],["12:00","16:00"],["16:00","18:00"],["18:00","20:00"],["20:00","04:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);; +(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[179],{8743:(ft,Ie,C)=>{"use strict";C.d(Ie,{Ic:()=>l,Ym:()=>Z,e6:()=>te});var e=C(6825);function l(ce,_e,Re){return(0,e.X$)(ce,[(0,e.SB)("loading",(0,e.oB)({opacity:.1})),(0,e.SB)("loaded",(0,e.oB)({opacity:1})),(0,e.eR)(_e+" => "+Re,[(0,e.jt)(".5s")]),(0,e.eR)(Re+" => "+_e,[(0,e.jt)("0.1s")])])}function Z(ce,_e){return(0,e.X$)(ce,[(0,e.SB)("void",(0,e.oB)({transform:`translateX(${"left"==_e?"-100%":"100%"})`})),(0,e.eR)(":enter",[(0,e.jt)("300ms",(0,e.oB)({transform:"translateX(0)"}))])])}function te(ce){return(0,e.X$)(ce,[(0,e.eR)(":enter",[(0,e.oB)({transformOrigin:"top",transform:"rotateX(-90deg)"}),(0,e.jt)("400ms",(0,e.oB)({transform:"rotateX(0deg)"}))])])}},2350:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>e});class e{getErrorKey(D){return D+":error"}getMultiErrorKey(D,I){return D+":error:"+I}}},2159:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>ue});var e=C(8637),l=C(6405),D=C(7613),I=C(8743),S=C(3108),w=C(5879),n=C(30),Z=C(1662),ee=C(6945),re=C(8675);let ue=(()=>{class se extends e.H{constructor(oe,ce,_e,Re){super(oe,ce,_e),this.popup=Re,this.Layout=l.A,this.StringUtil=D.m,this.breadcrumbItems=[],this.layout=l.A.GRID,this.breadcrumbItems=this.getBreadcrumbItems()}ngOnInit(){let oe=this.getConfig().searchEndpoint,ce=S.n.retrieve(oe);this.layout=null!=ce?parseInt(ce):this.getConfig().defaultLayout,this.initialize()}onLayoutSelected(oe){this.layout=oe,S.n.put(this.getConfig().searchEndpoint,this.layout.toString())}openUpsertComponent(oe){let ce=this.getUpsertComponent();null!=ce&&(this.popup.open(ce,{id:oe}),this.popup.onCompleted.subscribe(_e=>{this.ngOnInit(),null!=_e&&this.onUpsertSuccess(_e),console.log("onSuccess. closing dialog")}),this.popup.onCanceled.subscribe(()=>{console.log("onCanceled. closing dialog")}))}onUpsertClick(oe){if(this.getConfig().upsertOnDialog)this.openUpsertComponent(oe);else{let ce=this.getRoutes();if(null==ce)return;let _e=null==oe?ce.create:ce.update(oe);this.router.navigate([_e],{queryParams:null!=oe?ce.params:{}})}}onUpsertSuccess(oe){console.log("onUpsertSuccess",oe)}static#e=this.\u0275fac=function(ce){return new(ce||se)(w.Y36(n.Y),w.Y36(Z.F0),w.Y36(ee.z),w.Y36(re.x))};static#t=this.\u0275cmp=w.Xpm({type:se,selectors:[["ng-component"]],features:[w.qOj],decls:0,vars:0,template:function(ce,_e){},encapsulation:2,data:{animation:[(0,I.Ym)("onGrid","left"),(0,I.Ym)("onColumn","right")]}})}return se})()},9870:(ft,Ie,C)=>{"use strict";C.d(Ie,{n:()=>ee});var e=C(8637),l=C(5879),D=C(7700),I=C(8743),S=C(1855),w=C(30),n=C(1662),Z=C(6945);let ee=(()=>{class re extends e.H{constructor(se,te,oe,ce,_e){super(se,te,oe),this.route=ce,this.dialogData=_e,this.breadcrumbItems=[],this.onCanceled=new l.vpe,this.onCompleted=new l.vpe,this.filterData=null,this.exId=null,this.dialogUpsert=!1,this.breadcrumbItems=this.getBreadcrumbItems(),this.dialogUpsert=null!=_e.dialogUpsert}ngOnInit(){this.loading=!1,this.route.queryParams.subscribe(se=>{this.filterData=(0,S.OP)(se)}),this.route.paramMap.subscribe(se=>{let te=se.get("id");if(null==te&&(te=this.dialogData?.id),null!=te){let oe=parseInt(te);isNaN(oe)||(this.exId=oe,this.initialize(this.exId))}})}navigateToListPage(se=null){this.router.navigate([this.getListPageRoute()],{queryParams:null==this.filterData?null:(0,S.oZ)(this.filterData)}).then(se)}onSuccess(se){this.loading=!1,this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCompleted.emit(se):this.navigateToListPage()}onCancel(){this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCanceled.emit():this.navigate(this.getListPageRoute(),se=>{})}static#e=this.\u0275fac=function(te){return new(te||re)(l.Y36(w.Y),l.Y36(n.F0),l.Y36(Z.z),l.Y36(n.gz),l.Y36(D.WI))};static#t=this.\u0275cmp=l.Xpm({type:re,selectors:[["ng-component"]],outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[l.qOj],decls:0,vars:0,template:function(te,oe){},encapsulation:2,data:{animation:[(0,I.e6)("loaded")]}})}return re})()},8637:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>ue});var e=C(3674),l=C(2350),D=C(7613),I=C(553),S=C(8743),w=C(190),n=C(5879),Z=C(30),ee=C(1662),re=C(6945);let ue=(()=>{class se extends l.R{constructor(oe,ce,_e){super(),this.eventBus=oe,this.router=ce,this.subContainer=_e,this.translations=w.I,this.loading=!0,this.swipeCoord=[0,0],this.swipeTime=0,this.SWIPE_START="swipe-action-start",this.SWIPE_END="swipe-action-end",this.SWIPE_LEFT="swipe-left",this.SWIPE_RIGHT="swipe-right"}subscribe(oe,ce,_e){this.subContainer.hasKey(oe)&&this.subContainer.disposeSubscription(oe);let Re=this.eventBus.on(oe).subscribe(mt=>{null!=ce?this.router.navigate([ce]).then(Ge=>{_e(Ge,mt)}):_e(!1,mt)});return this.subContainer.add(oe,Re),Re}reloadRoute(){this.navigate(this.router.url,oe=>{})}reloadRouteByUrl(){this.navigateByUrl(this.router.url,oe=>{})}navigate(oe,ce){oe==this.router.url&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload"),null!=oe&&this.router.navigate([oe]).then(_e=>ce(_e))}navigateByUrl(oe,ce){oe==this.router.url&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload"),null!=oe&&this.router.navigateByUrl(oe).then(_e=>ce(_e))}goHomeAndDoABarrelRoll(oe){this.router.navigateByUrl("").then(ce=>oe)}ngOnDestroy(){this.subContainer.disposeForComponent(this.constructor.name)}isInvalidInput(oe){return e.w.isInvalidInput(oe)}getFormError(oe,ce){return e.w.getFormError(oe,ce)}componentKey(oe){return this.componentName()+":"+oe}globalKey(oe){return"global:"+oe}firstWord(oe){return D.m.firstWord(oe)}errMsg(oe,ce,_e,Re){let mt=oe.controls[ce];return mt.touched&&mt.errors?Re:null}initSeoItems(oe,ce,_e,Re,mt,Ge,Lt,je,Tt){oe.setTitle(_e),ce.addTags([{name:"keywords",content:mt.join(",")},{name:"description",description:Re},{name:"robots",content:Ge??"index, follow"},{property:"og:type",content:Lt??"article"},{property:"og:title",content:_e},{property:"og:description",content:Re},{property:"og:image",content:je??""},{property:"og:url",content:Tt},{property:"og:site_name",content:I.N.app_name}])}getPermalink(){return I.N.app_url+this.router.url}swipe(oe,ce,_e){const Re=[oe.changedTouches[0].clientX,oe.changedTouches[0].clientY],mt=(new Date).getTime();if(ce===this.SWIPE_START)this.swipeCoord=Re,this.swipeTime=mt;else if(ce===this.SWIPE_END){const Ge=[Re[0]-this.swipeCoord[0],Re[1]-this.swipeCoord[1]];mt-this.swipeTime<1e3&&Math.abs(Ge[0])>30&&Math.abs(Ge[0])>Math.abs(3*Ge[1])&&this.eventBus.publish(_e,Ge[0]<0?this.SWIPE_RIGHT:this.SWIPE_LEFT)}}static#e=this.\u0275fac=function(ce){return new(ce||se)(n.Y36(Z.Y),n.Y36(ee.F0),n.Y36(re.z))};static#t=this.\u0275cmp=n.Xpm({type:se,selectors:[["ng-component"]],features:[n.qOj],decls:0,vars:0,template:function(ce,_e){},encapsulation:2,data:{animation:[(0,S.Ic)("dataLoaded","loading","loaded")]}})}return se})()},2495:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>D});var e=C(553),l=C(5879);class D{constructor(){}static#e=this.API_VERSION_1="/api/v1";static#t=this.API_VERSION_2="/api/v2";static toParamString(S){let w="";for(let n in S)null!=S[n]&&(w+=""===w?"?":"&",w=w+n+"="+this.convertToString(S[n]));return w}static convertToString(S){return S instanceof Date?S.toISOString():S.toString()}static#n=this.FILES={FILE_ENDPOINT:e.N.base_url+D.API_VERSION_2+"/files",IMAGE_ENDPOINT:e.N.base_url+D.API_VERSION_2+"/images",IMAGE_ENDPOINT_ADMIN:e.N.base_url+D.API_VERSION_2+"/admin/images",IMAGE_UPLOAD_ENDPOINT_BULK:e.N.base_url+D.API_VERSION_2+"/images/bulk",FILE_ENDPOINT_ADMIN:e.N.base_url+D.API_VERSION_2+"/admin/files",SEARCH:(S,w)=>S.concat(D.toParamString(w)),CREATE(){return this.FILE_ENDPOINT},UPLOAD(S){return this.IMAGE_UPLOAD_ENDPOINT_BULK.concat(D.toParamString(S))},GET(S){return this.FILE_ENDPOINT+"/"+S},UPDATE(S){return this.FILE_ENDPOINT+"/"+S}};static#i=this.\u0275fac=function(w){return new(w||D)};static#r=this.\u0275prov=l.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}},8674:(ft,Ie,C)=>{"use strict";function e(I){const S={};for(const w in I)Object.prototype.hasOwnProperty.call(I,w)&&(S[w]=I[w]instanceof Date?I[w].toISOString():"object"==typeof I[w]&&null!==I[w]?e(I[w]):I[w]);return S}C.d(Ie,{GN:()=>e,Q3:()=>l});const l=I=>{const S={};return I.forEach((w,n)=>{S[n]=w}),S}},6542:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>e});let e={content:[],pageable:{sort:{sorted:!1,unsorted:!1,empty:!1},pageNumber:0,pageSize:10,offset:0,paged:!1,unpaged:!1},totalPages:0,totalElements:0,last:!1,first:!0,sort:{sorted:!1,unsorted:!1,empty:!1},numberOfElements:0,size:10,number:0,empty:!0}},1547:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>S});var e=C(2350),l=C(5879),D=C(8480),I=C(5462);let S=(()=>{class w extends e.R{constructor(Z,ee){super(),this.authService=Z,this.notifier=ee}handleError(Z,ee,re){401===Z.status||0===Z.status||504===Z.status?(console.log("Refreshing token",Z),this.authService.refreshToken(ee)):(console.log("Other error",Z),re(Z))}static#e=this.\u0275fac=function(ee){return new(ee||w)(l.LFG(D.e),l.LFG(I.l))};static#t=this.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})()},6945:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>l});var e=C(5879);let l=(()=>{class D{constructor(){this.subs=new Map}getKeys(){return this.subs}add(S,w){null==S||null==w||this.subs.has(S)||this.subs.set(S,w)}hasKey(S){return this.subs.has(S)}dispose(){this.subs.forEach(S=>S.unsubscribe()),this.subs.clear()}disposeSubscription(S){this.subs.get(S)?.unsubscribe(),this.subs.delete(S)}disposeNonGlobal(){this.subs.forEach((S,w)=>{w.startsWith("global:")||(S.unsubscribe(),this.subs.delete(w))})}disposeForComponent(S){this.subs.forEach((w,n)=>{n.startsWith(S)&&(w.unsubscribe(),this.subs.delete(n))})}static#e=this.\u0275fac=function(w){return new(w||D)};static#t=this.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},6032:(ft,Ie,C)=>{"use strict";C.d(Ie,{s:()=>I});var e=C(2495),l=C(553),D=C(5879);class I extends e.O{constructor(){super()}static#e=this.CRUDEXAMPLES={CRUDEXAMPLE_ENDPOINT:l.N.base_url+"/api/v1/crudexamples",CRUDEXAMPLE_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/crudexamples",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.CRUDEXAMPLE_ENDPOINT},GET(w){return this.CRUDEXAMPLE_ENDPOINT+"/"+w},UPDATE(w){return this.CRUDEXAMPLE_ENDPOINT+"/"+w}};static#t=this.LABELS={LABEL_ENDPOINT_POLLBOX:l.N.base_url+"/api/v1/public/labels/POLLBOX/children",LABEL_ENDPOINT:l.N.base_url+"/api/v1/labels",LABEL_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/labels",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.LABEL_ENDPOINT},GET(w){return this.LABEL_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LABEL_ENDPOINT+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LABEL_ENDPOINT+"/"+w}};static#n=this.FEEDBACKS={FEEDBACK_ENDPOINT:l.N.base_url+"/api/v2/feedbacks",FEEDBACK_ENDPOINT_ADMIN:l.N.base_url+"/api/v2/admin/feedbacks",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.FEEDBACK_ENDPOINT},GET(w){return this.FEEDBACK_ENDPOINT+"/"+w},UPDATE(w){return this.FEEDBACK_ENDPOINT+"/"+w},TAKE_ACTION(w){return this.FEEDBACK_ENDPOINT_ADMIN+"/"+w+"/action"}};static#i=this.POPTIONS={POPTION_ENDPOINT:l.N.base_url+"/api/v1/poll-options",POPTION_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-options",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.POPTION_ENDPOINT},GET(w){return this.POPTION_ENDPOINT+"/"+w},UPDATE(w){return this.POPTION_ENDPOINT+"/"+w}};static#r=this.ACVALIDATIONTOKENS={ACVALIDATIONTOKEN_ENDPOINT:l.N.base_url+"/api/v1/validation-tokens",ACVALIDATIONTOKEN_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/validation-tokens",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.ACVALIDATIONTOKEN_ENDPOINT},GET(w){return this.ACVALIDATIONTOKEN_ENDPOINT+"/"+w},UPDATE(w){return this.ACVALIDATIONTOKEN_ENDPOINT+"/"+w}};static#o=this.LOCATIONTYPES={LOCATIONTYPE_ENDPOINT:l.N.base_url+"/api/v1/location-types",LOCATIONTYPE_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/location-types",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.LOCATIONTYPE_ENDPOINT},GET(w){return this.LOCATIONTYPE_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LOCATIONTYPE_ENDPOINT+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LOCATIONTYPE_ENDPOINT+"/"+w}};static#s=this.LOCATIONS={LOCATION_ENDPOINT:l.N.base_url+"/api/v1/locations",LOCATION_ENDPOINT_V2:l.N.base_url+"/api/v2/locations",LOCATION_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/locations",SEARCH:(w,n)=>w+"/child-locations".concat(e.O.toParamString(n)),GET_LOCATIONS_FOR_TYPE:(w,n)=>w+"/"+n+"/locations",CREATE(){return this.LOCATION_ENDPOINT},GET(w){return this.LOCATION_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LOCATION_ENDPOINT_V2+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LOCATION_ENDPOINT+"/"+w}};static#a=this.ADDRESSS={ADDRESS_ENDPOINT:l.N.base_url+"/api/v1/global-addresss",ADDRESS_ENDPOINT_V2:l.N.base_url+"/api/v2/global-addresses",ADDRESS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/global-addresss",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.ADDRESS_ENDPOINT},GET(w){return this.ADDRESS_ENDPOINT_V2+"/"+w},UPDATE(w){return this.ADDRESS_ENDPOINT+"/"+w}};static#l=this.\u0275fac=function(n){return new(n||I)};static#c=this.\u0275prov=D.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}},6405:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>e});var e=function(l){return l[l.GRID=0]="GRID",l[l.COLUMN=1]="COLUMN",l}(e||{})},190:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>l,s:()=>D});var e=function(I){return I.CAN_MANAGE_INVENTORY="CAN_MANAGE_INVENTORY",I.ADMINISTRATION="ADMINISTRATION",I.ACCESS_USER_RESOURCES="ACCESS_USER_RESOURCES",I.CAN_TAKE_EXAM="CAN_TAKE_EXAM",I}(e||{});const l={Dashboard:"\u09A1\u09CD\u09AF\u09BE\u09B6\u09AC\u09CB\u09B0\u09CD\u09A1",Inventory:"\u0987\u09A8\u09AD\u09C7\u09A8\u09CD\u099F\u09B0\u09BF",Stocks:"\u09B8\u09CD\u099F\u0995",Products:"\u09AA\u09A3\u09CD\u09AF",Categories:"\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF",Brands:"\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1\u0997\u09C1\u09B2\u09CB",Variations:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AD\u09C7\u09B0\u09BF\u09DF\u09C7\u09B6\u09A8",Sales:"\u09AC\u09BF\u0995\u09CD\u09B0\u09BF\u09B8\u09AE\u09C2\u09B9",Orders:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0",Customers:"\u0995\u09BE\u09B8\u09CD\u099F\u09AE\u09BE\u09B0","My Contents":"\u0986\u09AE\u09BE\u09B0 \u0995\u09A8\u099F\u09C7\u09A8\u09CD\u099F\u09B8","Uploaded Files":"\u0986\u09AA\u09B2\u09CB\u09A1 \u0995\u09B0\u09BE \u09AB\u09BE\u0987\u09B2\u09B8\u09AE\u09C2\u09B9",PollBox:"\u09AA\u09CB\u09B2 \u09AC\u0995\u09CD\u09B8",Questionnaires:"\u09AA\u09CD\u09B0\u09B6\u09CD\u09A8\u09CB\u09A4\u09CD\u09A4\u09B0\u09C0 \u09B8\u09AE\u09C2\u09B9",Polls:"\u09AA\u09CB\u09B2\u09B8\u09AE\u09C2\u09B9","Poll Options":"\u09AA\u09CB\u09B2 \u0985\u09AA\u09B6\u09A8\u09B8\u09AE\u09C2\u09B9",Votes:"\u09AD\u09CB\u099F\u09B8\u09AE\u09C2\u09B9","Filterable Attributes":"\u09AB\u09BF\u09B2\u09CD\u099F\u09BE\u09B0 \u0995\u09B0\u09BE \u09AF\u09BE\u09DF \u098F\u09AE\u09A8 \u09AC\u09C8\u09B6\u09BF\u09B7\u09CD\u099F\u09CD\u09AF\u09B8\u09AE\u09C2\u09B9",Stores:"\u09B8\u09CD\u099F\u09CB\u09B0\u09B8\u09AE\u09C2\u09B9","My Wallet":"\u0986\u09AE\u09BE\u09B0 \u0993\u09DF\u09BE\u09B2\u09C7\u099F","Validation Tokens":"\u09AD\u09CD\u09AF\u09BE\u09B2\u09BF\u09A1\u09C7\u09B6\u09A8 \u099F\u09CB\u0995\u09C7\u09A8\u09B8\u09AE\u09C2\u09B9","Activity Logs":"\u0985\u09CD\u09AF\u09BE\u0995\u09CD\u099F\u09BF\u09AD\u09BF\u099F\u09BF \u09B2\u0997\u09B8\u09AE\u09C2\u09B9","Location Types":"\u09B8\u09CD\u09A5\u09BE\u09A8\u09C7\u09B0 \u09A7\u09B0\u09A3\u09B8\u09AE\u09C2\u09B9","Crud Examples":"\u0995\u09CD\u09B0\u09BE\u09A1 \u0989\u09A6\u09BE\u09B9\u09B0\u09A3\u09B8\u09AE\u09C2\u09B9",Specifications:"\u09AC\u09C8\u09B6\u09BF\u09B7\u09CD\u099F\u09CD\u09AF\u0997\u09C1\u09B2\u09CB",Astha:"\u0986\u09B8\u09CD\u09A5\u09BE",Social:"\u09B8\u09BE\u09AE\u09BE\u099C\u09BF\u0995",Notifications:"\u09A8\u09CB\u099F\u09BF\u09AB\u09BF\u0995\u09C7\u09B6\u09A8\u09B8\u09AE\u09C2\u09B9",Feedbacks:"\u09AB\u09BF\u09A1\u09AC\u09CD\u09AF\u09BE\u0995\u09B8\u09AE\u09C2\u09B9",Wallet:"\u0993\u09DF\u09BE\u09B2\u09C7\u099F",Administration:"\u09AA\u09CD\u09B0\u09B6\u09BE\u09B8\u09A8",Labels:"\u09B2\u09C7\u09AC\u09C7\u09B2\u09B8\u09AE\u09C2\u09B9",Users:"\u09AC\u09CD\u09AF\u09BE\u09AC\u09B9\u09BE\u09B0\u0995\u09BE\u09B0\u09C0\u0997\u09A8",Lockouts:"\u09B2\u0995\u0986\u0989\u099F\u09B8\u09AE\u09C2\u09B9",Locations:"\u09B8\u09CD\u09A5\u09BE\u09A8\u09B8\u09AE\u09C2\u09B9",Addresses:"\u09A0\u09BF\u0995\u09BE\u09A8\u09BE\u09B8\u09AE\u09C2\u09B9","Search..":"\u0996\u09C1\u0981\u099C\u09C1\u09A8","Enter Quantity":"\u09AA\u09B0\u09BF\u09AE\u09BE\u09A3 \u09B2\u09BF\u0996\u09C1\u09A8","Unit Price":"\u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF \u09B2\u09BF\u0996\u09C1\u09A8","Enter Retail Price":"\u09AC\u09BF\u0995\u09CD\u09B0\u09DF \u09AE\u09C2\u09B2\u09CD\u09AF \u09B2\u09BF\u0996\u09C1\u09A8","Enter Discount":"\u09A1\u09BF\u09B8\u0995\u09BE\u0989\u09A8\u09CD\u099F \u09B2\u09BF\u0996\u09C1\u09A8","Enter Cashback (%)":"\u0995\u09CD\u09AF\u09BE\u09B6\u09AC\u09CD\u09AF\u09BE\u0995 \u09B2\u09BF\u0996\u09C1\u09A8 (%)","Enter Name":"\u09A8\u09BE\u09AE \u09B2\u09BF\u0996\u09C1\u09A8","Enter Title":"\u099F\u09BE\u0987\u099F\u09C7\u09B2 \u09B2\u09BF\u0996\u09C1\u09A8",Images:"\u099B\u09AC\u09BF\u09B8\u09AE\u09C2\u09B9",Image:"\u099B\u09AC\u09BF","Search Brand":"\u09AC\u09CD\u09B0\u09CD\u09AF\u09BE\u09A8\u09CD\u09A1 \u0996\u09C1\u0981\u099C\u09C1\u09A8","Search Category..":"\u0995\u09CD\u09AF\u09BE\u099F\u09BE\u0997\u09B0\u09BF \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Search Variations..":"\u09AD\u09CD\u09AF\u09BE\u09B0\u09BF\u09DF\u09C7\u09B6\u09A8 \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Search Attributes..":"\u09AC\u09C8\u09B6\u09BF\u09B7\u09CD\u099F\u09CD\u09AF \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Search Customer..":"\u0995\u09BE\u09B8\u09CD\u099F\u09AE\u09BE\u09B0 \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Search Stock..":"\u09B8\u09CD\u099F\u0995 \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Enter Phone":"\u09AB\u09CB\u09A8 \u09A8\u09BE\u09AE\u09CD\u09AC\u09BE\u09B0 \u09B2\u09BF\u0996\u09C1\u09A8","Search Store..":"\u09B8\u09CD\u099F\u09CB\u09B0 \u0996\u09C1\u0981\u099C\u09C1\u09A8..","Enter Description":"\u09AC\u09BF\u09AC\u09B0\u09A3 \u09B2\u09BF\u0996\u09C1\u09A8",Logo:"\u09B2\u09CB\u0997\u09CB","Select File":"\u09AB\u09BE\u0987\u09B2 \u09A8\u09BF\u09B0\u09CD\u09AC\u09BE\u099A\u09A8 \u0995\u09B0\u09C1\u09A8","Feedback Actions":"\u09AB\u09BF\u09A1\u09AC\u09CD\u09AF\u09BE\u0995\u09C7\u09B0 \u09AA\u09CD\u09B0\u09A4\u09BF\u0995\u09CD\u09B0\u09BF\u09DF\u09BE\u0997\u09C1\u09B2\u09CB",Upsert:"\u09A4\u09C8\u09B0\u09BF/\u09AA\u09B0\u09BF\u09AC\u09B0\u09CD\u09A4\u09A8","My Sales":"\u0986\u09AE\u09BE\u09B0 \u09AC\u09BF\u0995\u09CD\u09B0\u09BF\u09A4 \u09AA\u09A3\u09CD\u09AF\u09B8\u09AE\u09C2\u09B9","Products in Stock":"\u09B8\u09CD\u099F\u0995\u09C7 \u09A5\u09BE\u0995\u09BE \u09AA\u09A3\u09CD\u09AF\u09B8\u09AE\u09C2\u09B9","All Products":"\u09B8\u0995\u09B2 \u09AA\u09A3\u09CD\u09AF","My Customers":"\u0986\u09AE\u09BE\u09B0 \u0995\u09BE\u09B8\u09CD\u099F\u09AE\u09BE\u09B0\u0997\u09A8",$:"\u09F3"},D=[{title:l.Dashboard,expanded:!0,icon:"fab fa-dashcube",items:[{title:l.Dashboard,icon:"bx bx-home-circle",link:"/admin/dashboard",selected:!1,children:[],permissions:[e.ACCESS_USER_RESOURCES]}]},{title:l.PollBox,expanded:!0,icon:"fa fa-poll",items:[{title:l.Questionnaires,icon:"fa fa-poll",link:"/admin/questionnaires",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l.Polls,icon:"fa fa-poll",link:"/admin/polls",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l["Poll Options"],icon:"fa fa-poll",link:"/admin/poll-options",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l.Votes,icon:"fa fa-poll",link:"/admin/votes",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Inventory,expanded:!0,icon:"fa fa-cubes",items:[{title:l.Stocks,icon:"fa fa-cubes",link:"/admin/inventory/stocks",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Products,icon:"fa fa-cubes",link:"/admin/inventory/products",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Categories,icon:"fa fa-folder",link:"/admin/inventory/categories",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Brands,icon:"fa fa-tags",link:"/admin/inventory/brands",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Variations,icon:"fa fa-trademark",link:"/admin/inventory/variations",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Specifications,icon:"fa fa-cube",link:"/admin/inventory/product-specifications",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Filterable Attributes"],icon:"fa fa-filter",link:"/admin/inventory/filterable-attributes",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Stores,icon:"fa fa-filter",link:"/admin/inventory/vendors",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Sales,expanded:!0,icon:"fa fa-shopping-cart",items:[{title:l.Orders,icon:"fa fa-shopping-cart",link:"/admin/sales/orders",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Customers,icon:"fa fa-user",link:"/admin/sales/customers",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]}]},{title:l["My Contents"],expanded:!0,icon:"fa fa-file",items:[{title:l["Uploaded Files"],icon:"fa fa-file",link:"/cms/files",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]}]},{title:l.Astha,expanded:!0,icon:"fa fa-heart",items:[{title:l["Uploaded Files"],icon:"fa fa-filter",link:"/admin/inventory/attributes",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Social,expanded:!0,icon:"fa fa-users",items:[{title:l.Notifications,icon:"fa fa-filter",link:"/admin/notifications",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Feedbacks,icon:"fa fa-filter",link:"/admin/feedbacks",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Wallet,expanded:!0,icon:"fa fa-wallet",items:[{title:l["My Wallet"],icon:"fa fa-wallet",link:"/admin/accounts/wallet",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Administration,expanded:!0,icon:"fas fa-cogs",items:[{title:l.Labels,icon:"fas fa-tag",link:"/admin/labels",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Users,icon:"fas fa-users",link:"/admin/users",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Validation Tokens"],icon:"fas fa-tag",link:"/admin/users/validation-tokens",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Activity Logs"],icon:"fas fa-tag",link:"/admin/users/activity-logs",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Lockouts,icon:"fas fa-tag",link:"/admin/users/request-credentials/lockouts",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Location Types"],icon:"fas fa-tag",link:"/admin/location-types",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Locations,icon:"fas fa-tag",link:"/admin/locations",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Addresses,icon:"fas fa-tag",link:"/admin/addresses",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Crud Examples"],icon:"fas fa-tag",link:"/admin/crudexamples",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]}]},2071:(ft,Ie,C)=>{"use strict";C.d(Ie,{B:()=>Be});var e=C(5879),l=C(8637),D=C(6223),I=C(2096),S=C(7259),w=C(30),n=C(1662),Z=C(6945),ee=C(1547),re=C(1259),ue=C(8480),se=C(5462),te=C(9862);let oe=(()=>{class Ee extends ee.b{constructor(me,tt,he,Ze){super(me,tt),this.http=he,this.eventBus=Ze}searchVendors(me,tt){const he=S.Z.VENDORS.SEARCH_VENDORS();return this.http.get(re.e.VENDORS.SEARCH({q:tt,flagship:me})).subscribe(Ze=>{this.eventBus.publish(he,Ze)},Ze=>{this.eventBus.publish(S.Z.VENDORS.FETCH_ERROR(),Ze)}),he}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.LFG(ue.e),e.LFG(se.l),e.LFG(te.eN),e.LFG(w.Y))};static#t=this.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();var ce=C(2951),_e=C(6814),Re=C(7700),mt=C(2296),Ge=C(469);function Lt(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"zxing-scanner",12),e.NdJ("scanSuccess",function(he){e.CHM(me);const Ze=e.oxw(2);return e.KtG(Ze.onScanSuccess(he))})("scanFailure",function(he){e.CHM(me);const Ze=e.oxw(2);return e.KtG(Ze.onScanFailure(he))}),e.qZA()}if(2&Ee){const me=e.oxw(2);e.Q6J("formats",me.allowedFormats)}}function je(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",7)(1,"div",13)(2,"label",14),e._uU(3,"Selected Shop"),e.qZA(),e._UZ(4,"input",15),e.qZA()()),2&Ee){const me=e.oxw(2);e.xp6(4),e.Q6J("value",me.scannedCode.name)}}function Tt(Ee,$e){1&Ee&&(e.TgZ(0,"div",23)(1,"span"),e._uU(2,"Minimum 10 to maximum 1000 can be redeemed."),e.qZA()())}function xt(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"div")(1,"div",16)(2,"h2"),e._uU(3,"Enter amount"),e.qZA(),e.TgZ(4,"div",7)(5,"div",13)(6,"label",17),e._uU(7,"Points"),e.qZA(),e._UZ(8,"input",18),e.qZA()(),e.YNc(9,Tt,3,0,"div",19),e.qZA(),e.TgZ(10,"div",20)(11,"button",21),e.NdJ("click",function(){e.CHM(me);const he=e.oxw(2);return e.KtG(he.redeem())}),e._UZ(12,"i",22),e._uU(13," REDEEM "),e.qZA()()()}if(2&Ee){const me=e.oxw(2);e.xp6(9),e.Q6J("ngIf",me.isInvalidInput(me.redeemForm.controls.points)),e.xp6(2),e.Q6J("disabled",me.redeemForm.invalid)}}function St(Ee,$e){if(1&Ee&&(e.TgZ(0,"div")(1,"mat-dialog-content",1),e._UZ(2,"section",2),e.TgZ(3,"form",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"p"),e._uU(8,"Scan QR to choose a shop"),e.qZA(),e.TgZ(9,"div",7),e.YNc(10,Lt,1,1,"zxing-scanner",8),e.YNc(11,je,5,1,"div",9),e.qZA()(),e.YNc(12,xt,14,2,"div",0),e.qZA()()()(),e.TgZ(13,"mat-dialog-actions",10)(14,"button",11),e._uU(15,"CANCEL"),e.qZA()()()),2&Ee){const me=e.oxw();e.xp6(3),e.Q6J("formGroup",me.redeemForm),e.xp6(7),e.Q6J("ngIf",null==me.scannedCode),e.xp6(1),e.Q6J("ngIf",null!=me.scannedCode),e.xp6(1),e.Q6J("ngIf",null!=me.scannedCode)}}function Zt(Ee,$e){if(1&Ee&&(e.TgZ(0,"div")(1,"h2",24),e._uU(2),e.qZA(),e.TgZ(3,"mat-dialog-content",1),e._uU(4),e.qZA(),e.TgZ(5,"mat-dialog-actions",10)(6,"button",11),e._uU(7,"CLOSE"),e.qZA()()()),2&Ee){const me=e.oxw();e.xp6(2),e.hij("Congratulations! Pay TK",me.redemption.discount_amount," less."),e.xp6(2),e.AsE(" You have successfully redeemed ",me.redemption.points," points. You got TK",me.redemption.discount_amount," discount from Astha loyalty points. ")}}let yt=(()=>{class Ee extends l.H{constructor(me,tt,he,Ze,rt,bt){super(me,tt,he),this.vendorService=Ze,this.leaderboardService=rt,this.notifier=bt,this.availablePoints=0,this.redemption=null,this.vendors=[],this.redeemForm=new D.cw({vendor:new D.NI("",D.kI.min(1)),points:new D.NI("",[D.kI.required,D.kI.min(100),D.kI.max(1e3)])}),this.allowedFormats=[11,7,4,5],this.scannedCode=null}componentName(){return"RedeemComponent"}ngOnInit(){}redeem(){if(null==this.scannedCode)return;let me=this.componentKey(S.Z.LEADERBOARDS.REDEEM_SUCCESS());this.leaderboardService.redeem(me,this.mapToRedeemReq(this.redeemForm)),this.subscribe(me,null,(tt,he)=>{this.redemption=he.data}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Failed!",he.data.error.message)})}searchVendors(){const tt=this.vendorService.searchVendors(!1,this.redeemForm.controls.vendor.value||"");this.subscribe(tt,null,(he,Ze)=>{this.vendors=Ze.data.content})}getVendors(){return(0,I.of)(this.vendors)}mapToRedeemReq(me){return{vendor_uuid:this.scannedCode?.uuid+"",points:me.controls.points.value}}onScanSuccess(me){try{this.scannedCode=JSON.parse(me)}catch(tt){this.notifier.warning("Invalid QR",String(tt))}}onScanFailure(me){console.log(me)}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.Y36(w.Y),e.Y36(n.F0),e.Y36(Z.z),e.Y36(oe),e.Y36(ce.S),e.Y36(se.l))};static#t=this.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-redeem"]],inputs:{availablePoints:"availablePoints"},features:[e.qOj],decls:2,vars:2,consts:[[4,"ngIf"],[1,"mat-typography"],["id","post_review_section"],["action","POST",3,"formGroup"],[1,"review-r-d-input-fields","pt-4"],[1,"container"],[1,"pros-area","mt-4"],[1,"pros-single-item-content","d-flex","align-items-end"],[3,"formats","scanSuccess","scanFailure",4,"ngIf"],["class","pros-single-item-content d-flex align-items-end",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],[3,"formats","scanSuccess","scanFailure"],[1,"fields"],["for","selected-vendor",1,"form-label"],["type","text","id","selected-vendor","required","required","readonly","",1,"form-control",3,"value"],[1,"cons-area","mt-4"],["for","points",1,"form-label"],["type","number","id","points","placeholder","Enter the amount you want to redeem","formControlName","points","required","required","min","3",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[1,"text-warning"],["mat-dialog-title",""]],template:function(tt,he){1&tt&&(e.YNc(0,St,16,4,"div",0),e.YNc(1,Zt,8,3,"div",0)),2&tt&&(e.Q6J("ngIf",null==he.redemption),e.xp6(1),e.Q6J("ngIf",null!=he.redemption))},dependencies:[_e.O5,D._Y,D.Fj,D.wV,D.JJ,D.JL,D.Q7,D.qQ,D.sg,D.u,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.S]})}return Ee})();var un=C(8174),Jt=C(1822),tn=C(4736);function wn(Ee,$e){1&Ee&&e._UZ(0,"util-progress",18),2&Ee&&e.Q6J("bar",!0)}function Ln(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"div",11)(1,"h3"),e._uU(2),e.qZA(),e.TgZ(3,"div",19),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.showLoyaltyPointHint())}),e.TgZ(4,"h5"),e._uU(5,"Redeemable"),e.qZA(),e.TgZ(6,"i"),e._uU(7,"(?)"),e.qZA()()()}if(2&Ee){const me=e.oxw();e.xp6(2),e.Oqu(null==me.wallet?null:me.wallet.loyalty_points)}}function Yn(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",11)(1,"h3"),e._uU(2),e.qZA(),e.TgZ(3,"h5"),e._uU(4,"Achieved Badge"),e.qZA()()),2&Ee){const me=e.oxw();e.xp6(2),e.Oqu(me.getCurrentBadgeTitle())}}function ti(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"a",20),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.openRedeemDialog())}),e._uU(1,"Redeem"),e.qZA()}}function gi(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.ALo(3,"date"),e.qZA(),e.TgZ(4,"td"),e._uU(5),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA(),e.TgZ(8,"td"),e._uU(9),e.qZA(),e.TgZ(10,"td"),e._uU(11),e.TgZ(12,"span",26),e.NdJ("click",function(){const Ze=e.CHM(me).$implicit,rt=e.oxw(3);return e.KtG(rt.copyToClipboard(Ze.trnx_id))}),e._uU(13,"COPY"),e.qZA()()()}if(2&Ee){const me=$e.$implicit;e.xp6(2),e.Oqu(e.xi3(3,5,me.created_at,"dd-MM-yyyy hh:m:s")),e.xp6(3),e.Oqu(me.description),e.xp6(2),e.Oqu(me.amount),e.xp6(2),e.Oqu(me.type),e.xp6(2),e.hij("",me.trnx_id," ")}}function Rn(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",23)(1,"table",24)(2,"thead")(3,"tr")(4,"th"),e._uU(5,"Date"),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Desc."),e.qZA(),e.TgZ(8,"th"),e._uU(9,"Amount"),e.qZA(),e.TgZ(10,"th"),e._uU(11,"Type"),e.qZA(),e.TgZ(12,"th"),e._uU(13,"Tnx"),e.qZA()()(),e.TgZ(14,"tbody"),e.YNc(15,gi,14,8,"tr",25),e.qZA()()()),2&Ee){const me=e.oxw(2);e.xp6(15),e.Q6J("ngForOf",null==me.wallet?null:me.wallet.recent_transactions)}}function dt(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"h4",4),e._uU(4,"Recent Transactions"),e.qZA(),e.TgZ(5,"div",21),e.YNc(6,Rn,16,1,"div",22),e.qZA()()()()),2&Ee){const me=e.oxw();e.xp6(6),e.Q6J("ngIf",me.showRecentTransactions)}}const at=function(Ee){return[Ee]};let Be=(()=>{class Ee extends l.H{constructor(me,tt,he,Ze,rt,bt,Nt,Qt,nn){super(tt,he,Ze),this.location=me,this.authService=rt,this.notifier=bt,this.dialog=Nt,this.leaderboardService=Qt,this.walletService=nn,this.username=null,this.leaderboard=null,this.wallet=null,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe,this.showRecentTransactions=!1,null==this.username&&(this.username=this.getAuthUsername())}componentName(){return"LeaderboardComponent"}ngOnInit(){null==this.leaderboard&&this.fetchLeaderboard(),null==this.wallet&&this.fetchWallet()}getAuth(){return this.authService.getAuth()}getAuthUsername(){return this.getAuth().username}isMyProfile(){return!!this.authService.isAuthenticated()&&this.getAuthUsername()===this.username}fetchLeaderboard(){if(this.loading=!0,null==this.username)return;let me=this.componentKey(S.Z.LEADERBOARDS.FETCH_LEADERBOARD(this.username));this.leaderboardService.fetchLeaderboard(me,this.username),this.subscribe(me,null,(tt,he)=>{this.leaderboard=he.data,this.loading=!1}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Error",he.data.error.message)})}fetchWallet(){this.loading=!0;let me=this.componentKey(S.Z.WALLET.FETCH_MY_WALLET());this.walletService.fetchWallet(me,{}),this.subscribe(me,null,(tt,he)=>{this.wallet=he.data,this.loading=!1}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Error",he.data.error.message)})}getRedeemedAmount(){return null==this.leaderboard?0:this.leaderboard.points-this.leaderboard.available_points}openRedeemDialog(){if(!this.authService.isAuthenticated())return void this.router.navigate(["/login"]);const me=this.dialog.open(yt);let tt=me.componentInstance,he=this.leaderboard?.available_points;tt.availablePoints=null==he?0:he,me.afterClosed().subscribe(Ze=>{this.ngOnInit(),console.log(`Dialog result: ${Ze}`)})}showLoyaltyPointHint(){this.notifier.info("Loyalty point updates every 100 threshold.","When you earn points on app, it's immediately added to your total points. But your loyalty points account is updated when you reach every 100 points threshold.")}getCurrentBadgeTitle(){return null==this.leaderboard?.current_badge?"N/A":this.leaderboard.current_badge.title}getBadgeCount(){return null==this.leaderboard?0:this.leaderboard.badges.length}copyToClipboard(me){un.g.copyToClipboard(me),this.notifier.info("Copied","Copied to clipboard")}onCloseClick(){this.onCanceled.emit()}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.Y36(_e.Ye),e.Y36(w.Y),e.Y36(n.F0),e.Y36(Z.z),e.Y36(ue.e),e.Y36(se.l),e.Y36(Re.uw),e.Y36(ce.S),e.Y36(Jt.X))};static#t=this.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-leaderboard"]],inputs:{username:"username",leaderboard:"leaderboard",wallet:"wallet"},features:[e.qOj],decls:46,vars:13,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"card"],[1,"card-body"],[1,"card-title"],["alt","Leaderboard",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"card-subtitle","font-14","text-muted"],["href","javascript:void(0);",3,"routerLink"],[1,"card-text","text-warning","mt-2"],[1,"card-body","col-12"],[1,"table"],[1,"text-center"],["class","text-center",4,"ngIf"],[1,"float-end"],["href","javascript: void(0);",1,"card-link","text-danger","pe-3",3,"click"],["href","javascript: void(0);",1,"card-link","text-primary","pe-3",3,"click"],["href","javascript: void(0);","class","btn btn-outline-info waves-effect waves-light",3,"click",4,"ngIf"],["class","row",4,"ngIf"],[3,"bar"],[3,"click"],["href","javascript: void(0);",1,"btn","btn-outline-info","waves-effect","waves-light",3,"click"],[1,"table-responsive"],["class","table table-bordered table-striped table-nowrap mb-0",4,"ngIf"],[1,"table","table-bordered","table-striped","table-nowrap","mb-0"],[1,"table","table-condensed","mt-2"],[4,"ngFor","ngForOf"],[1,"btn-copy",3,"click"]],template:function(tt,he){1&tt&&(e.YNc(0,wn,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),e._UZ(5,"img",5),e._uU(6," \xa0Leaderboard "),e.qZA(),e.TgZ(7,"h6",6)(8,"a",7),e._uU(9),e.qZA(),e.TgZ(10,"p",8),e._uU(11,"Redeemable point updates every 100 threshold."),e.qZA()()(),e.TgZ(12,"div",9)(13,"table",10)(14,"tbody")(15,"tr")(16,"td")(17,"div",11)(18,"h3"),e._uU(19),e.qZA(),e.TgZ(20,"h5"),e._uU(21,"Points"),e.qZA()()(),e.TgZ(22,"td"),e.YNc(23,Ln,8,1,"div",12),e.YNc(24,Yn,5,1,"div",12),e.qZA()(),e.TgZ(25,"tr")(26,"td")(27,"div",11)(28,"h3"),e._uU(29),e.qZA(),e.TgZ(30,"h5"),e._uU(31,"Total Redeemed"),e.qZA()()(),e.TgZ(32,"td")(33,"div",11)(34,"h3"),e._uU(35),e.qZA(),e.TgZ(36,"h5"),e._uU(37,"No of Badges"),e.qZA()()()()()()(),e.TgZ(38,"div",3)(39,"div",13)(40,"a",14),e.NdJ("click",function(){return he.onCloseClick()}),e._uU(41,"Close"),e.qZA(),e.TgZ(42,"a",15),e.NdJ("click",function(){return he.showRecentTransactions=!he.showRecentTransactions}),e._uU(43,"Transactions"),e.qZA(),e.YNc(44,ti,2,0,"a",16),e.qZA()()()(),e.YNc(45,dt,7,1,"div",17)),2&tt&&(e.Q6J("ngIf",he.loading),e.xp6(5),e.s9C("src",null==he.leaderboard?null:he.leaderboard.avatar,e.LSH),e.xp6(3),e.Q6J("routerLink",e.VKq(11,at,"/u/"+he.username)),e.xp6(1),e.hij("@",he.username,""),e.xp6(10),e.Oqu(null==he.leaderboard?null:he.leaderboard.points),e.xp6(4),e.Q6J("ngIf",he.isMyProfile()),e.xp6(1),e.Q6J("ngIf",!he.isMyProfile()),e.xp6(5),e.Oqu(he.getRedeemedAmount()),e.xp6(6),e.Oqu(he.getBadgeCount()),e.xp6(9),e.Q6J("ngIf",he.isMyProfile()),e.xp6(1),e.Q6J("ngIf",he.showRecentTransactions))},dependencies:[_e.sg,_e.O5,n.rH,tn.t,_e.uU],styles:[".leaderboard[_ngcontent-%COMP%]{background:#211e1e}.leaderboard[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .leaderboard[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f5f5f5}mat-dialog-content[_ngcontent-%COMP%]{padding-bottom:10px}mat-grid-tile[_ngcontent-%COMP%]{border:1px dashed whitesmoke}mat-grid-tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#44d62c}.btn-redeem[_ngcontent-%COMP%]{color:#44d62c}.info[_ngcontent-%COMP%]{margin-bottom:10px;font-size:.7em}.username[_ngcontent-%COMP%]{color:#44d62c}.header-avatar[_ngcontent-%COMP%]{max-height:50px;max-width:50px}.tnx-section[_ngcontent-%COMP%]{font-size:.8em;color:#f5f5f5;max-width:60%!important}.tnx-section[_ngcontent-%COMP%] .tnx-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.tnx-section[_ngcontent-%COMP%] .tnx-header-action[_ngcontent-%COMP%]{color:#44d62c}.tnx-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .tnx-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:.9em;color:#f5f5f5}.tnx-section[_ngcontent-%COMP%] .btn-copy[_ngcontent-%COMP%]{color:#44d62c;font-size:.8em}"]})}return Ee})()},2951:(ft,Ie,C)=>{"use strict";C.d(Ie,{S:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchLeaderboard(ue,se){this.http.get(l.e.LEADERBOARDS.FETCH_LEADERBOARD(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchLeaderboard(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}redeem(ue,se){this.http.post(l.e.LEADERBOARDS.REDEEM(),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.redeem(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}fetchRecentAchievements(ue,se){this.http.get(l.e.LEADERBOARDS.FETCH_RECENT_ACHIEVEMENTS(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchRecentAchievements(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},1822:(ft,Ie,C)=>{"use strict";C.d(Ie,{X:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchWallet(ue,se,te=null){let oe=null==te?l.e.WALLET.FETCH_MY_WALLET(se):l.e.WALLET.FETCH_USER_WALLET(te,se);this.http.get(oe).subscribe(ce=>{this.eventBus.publish(ue,ce)},ce=>{this.eventBus.publish(ue,ce)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},7222:(ft,Ie,C)=>{"use strict";C.d(Ie,{o:()=>I});var e=C(2495),l=C(553),D=C(5879);let I=(()=>{class S extends e.O{constructor(){super()}static#e=this.AUTH={LOGIN:n=>l.N.base_url+"/oauth/token"+e.O.toParamString(n),REFRESH_TOKEN:n=>l.N.base_url+"/oauth/token"+e.O.toParamString(n)};static#t=this.REGISTER={SEND_OTP:n=>l.N.base_url+"/api/v1/register/verify"+e.O.toParamString(n),REGISTER:n=>l.N.base_url+"/api/v1/register"+e.O.toParamString(n)};static#n=this.RESET_PASSWORD={REQUEST_TOKEN:n=>l.N.base_url+"/api/v1/reset_password"+e.O.toParamString(n),RESET_PASSWORD:n=>l.N.base_url+"/api/v1/reset_password"+e.O.toParamString(n)};static#i=this.\u0275fac=function(Z){return new(Z||S)};static#r=this.\u0275prov=D.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},7043:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{AuthModule:()=>Ze});var e=C(6814),l=C(1662),D=C(6223),I=C(7259),S=C(8637),w=C(5879),n=C(8480),Z=C(5462),ee=C(30),re=C(6945);const ue=function(){return["/reset-password"]};let se=(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(nn,Dn,Ot),this.authService=Nt,this.notifier=Qt,this.loginForm=new D.cw({username:new D.NI("",D.kI.required),password:new D.NI("",D.kI.required)})}componentName(){return"LoginComponent"}ngOnInit(){this.authService.isAuthenticated()&&this.navigateByUrl("/",Nt=>{})}login(){let Nt=this.componentKey(I.Z.AUTH.LOGIN_SUCCESS);this.authService.login(Nt,this.loginForm.value.username,this.loginForm.value.password),this.subscribe(Nt,null,Qt=>{this.navigate("/",nn=>{this.notifier.success("Success!","Successfully logged in.")})}),this.subscribe(this.getMultiErrorKey(Nt,1),"/auth/login",Qt=>{this.notifier.error("Something went wrong!","Error happened on server.")}),this.subscribe(this.getMultiErrorKey(Nt,2),"/auth/login",Qt=>{this.notifier.warning("Login Failed!","Wrong credentials or missing access rights to application.")})}isAuthenticated(){return this.authService.isAuthenticated()}forgotPassword(){this.notifier.info("Later!","Will be implemented later!")}register(){this.notifier.info("Later!","Will be implemented later!")}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-login"]],features:[w.qOj],decls:84,vars:4,consts:[["lang","en"],["charset","utf-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],["content","Premium Multipurpose Admin & Dashboard Template","name","description"],["content","Themesbrand","name","author"],["rel","shortcut icon","href","assets/apanel/images/favicon.ico"],["href","/assets/apanel/css/bootstrap.min.css","id","bootstrap-style","rel","stylesheet","type","text/css"],["href","/assets/apanel/css/icons.min.css","rel","stylesheet","type","text/css"],["href","/assets/apanel/css/app.min.css","id","app-style","rel","stylesheet","type","text/css"],[1,"account-pages","my-5","pt-sm-5"],[1,"container"],[1,"row","justify-content-center"],[1,"col-md-8","col-lg-6","col-xl-5"],[1,"card","overflow-hidden"],[1,"bg-primary-subtle"],[1,"row"],[1,"col-7"],[1,"text-primary","p-4"],[1,"text-primary"],[1,"col-5","align-self-end"],["src","assets/apanel/images/profile-img.png","alt","",1,"img-fluid"],[1,"card-body","pt-0"],[1,"auth-logo"],["href","index.html",1,"auth-logo-light"],[1,"avatar-md","profile-user-wid","mb-4"],[1,"avatar-title","rounded-circle","bg-light"],["src","assets/apanel/images/logos/astha.svg","alt","","height","34",1,"rounded-circle"],["href","index.html",1,"auth-logo-dark"],[1,"p-2"],[1,"form-horizontal",3,"formGroup","ngSubmit"],[1,"mb-3"],["for","username",1,"form-label"],["type","text","id","username","formControlName","username","placeholder","Enter username",1,"form-control"],[1,"form-label"],[1,"input-group","auth-pass-inputgroup"],["type","password","placeholder","Enter password","formControlName","password","aria-label","Password","aria-describedby","password-addon",1,"form-control"],["type","button","id","password-addon",1,"btn","btn-light"],[1,"mdi","mdi-eye-outline"],[1,"form-check"],["type","checkbox","id","remember-check","checked","checked",1,"form-check-input"],["for","remember-check",1,"form-check-label"],[1,"mt-3","d-grid"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"disabled"],[1,"mt-4","text-center"],[1,"font-size-14","mb-3"],[1,"list-inline"],[1,"list-inline-item"],["href","javascript::void()",1,"social-list-item","bg-primary","text-white","border-primary"],[1,"mdi","mdi-facebook"],["href","javascript::void()",1,"social-list-item","bg-info","text-white","border-info"],[1,"mdi","mdi-twitter"],["href","javascript::void()",1,"social-list-item","bg-danger","text-white","border-danger"],[1,"mdi","mdi-google"],["href","javascript::void()",1,"text-muted",3,"routerLink"],[1,"mdi","mdi-lock","me-1"],[1,"mt-5","text-center"],["href","javascript::void()","routerLink","/sign-up",1,"fw-medium","text-primary"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"html",0)(1,"head"),w._UZ(2,"meta",1),w.TgZ(3,"title"),w._uU(4,"Login | Servicito"),w.qZA(),w._UZ(5,"meta",2)(6,"meta",3)(7,"meta",4)(8,"link",5)(9,"link",6)(10,"link",7)(11,"link",8),w.qZA(),w.TgZ(12,"body")(13,"div",9)(14,"div",10)(15,"div",11)(16,"div",12)(17,"div",13)(18,"div",14)(19,"div",15)(20,"div",16)(21,"div",17)(22,"h5",18),w._uU(23,"Welcome Back !"),w.qZA(),w.TgZ(24,"p"),w._uU(25,"Sign in to continue to Servicito."),w.qZA()()(),w.TgZ(26,"div",19),w._UZ(27,"img",20),w.qZA()()(),w.TgZ(28,"div",21)(29,"div",22)(30,"a",23)(31,"div",24)(32,"span",25),w._UZ(33,"img",26),w.qZA()()(),w.TgZ(34,"a",27)(35,"div",24)(36,"span",25),w._UZ(37,"img",26),w.qZA()()()(),w.TgZ(38,"div",28)(39,"form",29),w.NdJ("ngSubmit",function(){return nn.login()}),w.TgZ(40,"div",30)(41,"label",31),w._uU(42,"Username"),w.qZA(),w._UZ(43,"input",32),w.qZA(),w.TgZ(44,"div",30)(45,"label",33),w._uU(46,"Password"),w.qZA(),w.TgZ(47,"div",34),w._UZ(48,"input",35),w.TgZ(49,"button",36),w._UZ(50,"i",37),w.qZA()()(),w.TgZ(51,"div",38),w._UZ(52,"input",39),w.TgZ(53,"label",40),w._uU(54," Remember me "),w.qZA()(),w.TgZ(55,"div",41)(56,"button",42),w._uU(57,"Log In "),w.qZA()(),w.TgZ(58,"div",43)(59,"h5",44),w._uU(60,"Sign in with"),w.qZA(),w.TgZ(61,"ul",45)(62,"li",46)(63,"a",47),w._UZ(64,"i",48),w.qZA()(),w.TgZ(65,"li",46)(66,"a",49),w._UZ(67,"i",50),w.qZA()(),w.TgZ(68,"li",46)(69,"a",51),w._UZ(70,"i",52),w.qZA()()()(),w.TgZ(71,"div",43)(72,"a",53),w._UZ(73,"i",54),w._uU(74," Forgot your password?"),w.qZA()()()()()(),w.TgZ(75,"div",55)(76,"div")(77,"p"),w._uU(78,"Don't have an account ? "),w.TgZ(79,"a",56),w._uU(80," Signup now "),w.qZA()(),w.TgZ(81,"p"),w._uU(82,"\xa9 "),w._uU(83," servicito "),w.qZA()()()()()()()()()),2&Qt&&(w.xp6(39),w.Q6J("formGroup",nn.loginForm),w.xp6(17),w.Q6J("disabled",!nn.loginForm.valid),w.xp6(16),w.Q6J("routerLink",w.DdM(3,ue)))},dependencies:[l.rH,D._Y,D.Fj,D.JJ,D.JL,D.sg,D.u]})}return rt})();var te=function(rt){return rt[rt.INIT_VERIFICATION=0]="INIT_VERIFICATION",rt[rt.WAITING_FOR_CODE=1]="WAITING_FOR_CODE",rt[rt.VERIFIED=2]="VERIFIED",rt}(te||{}),oe=C(1547),ce=C(7222),_e=C(9862);let Re=(()=>{class rt extends oe.b{constructor(Nt,Qt,nn,Dn){super(Nt,Qt),this.http=nn,this.eventBus=Dn}sendOtp(Nt,Qt){this.http.post(ce.o.REGISTER.SEND_OTP({identity:Qt}),null).subscribe(nn=>{this.eventBus.publish(Nt,nn)},nn=>{this.eventBus.publish(this.getErrorKey(Nt),nn)})}register(Nt,Qt,nn){0===Qt.email?.trim().length&&(Qt.email=null),this.http.post(ce.o.REGISTER.REGISTER({token:nn}),Qt).subscribe(Dn=>{this.authService.setAuth(Dn),this.eventBus.publish(Nt,Dn)},Dn=>{this.eventBus.publish(this.getErrorKey(Nt),Dn)})}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.LFG(n.e),w.LFG(Z.l),w.LFG(_e.eN),w.LFG(ee.Y))};static#t=this.\u0275prov=w.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();function mt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Phone number should be 11 digits!"),w.qZA()())}function Ge(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"div",14),w.YNc(2,mt,3,0,"div",15),w.qZA(),w.TgZ(3,"div",16)(4,"span",17),w._uU(5,"+88"),w.qZA(),w._UZ(6,"input",18),w.qZA(),w.TgZ(7,"div",19)(8,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.sendOtp())}),w._uU(9,"Send OTP"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.phone)),w.xp6(4),w.Q6J("formControl",Nt.phone)}}function Lt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"OTP should be 6 digits!"),w.qZA()())}function je(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"div",14),w.YNc(2,Lt,3,0,"div",15),w.qZA(),w.TgZ(3,"div",16)(4,"span",17),w._uU(5,"OTP"),w.qZA(),w._UZ(6,"input",22),w.qZA(),w.TgZ(7,"div",19)(8,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.verifyOtp())}),w._uU(9,"Verify"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.otp)),w.xp6(4),w.Q6J("formControl",Nt.otp)}}function Tt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Name must be at least 3 characters!"),w.qZA()())}function xt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Must provide a valid username and should between least 6-20 characters!"),w.qZA()())}function St(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Name select a gender!"),w.qZA()())}function Zt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Invalid email!"),w.qZA()())}function yt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Password length must be at least 6!"),w.qZA()())}function un(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Password length must be at least 6!"),w.qZA()())}function Jt(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"form",23)(2,"div",24)(3,"span",17),w._UZ(4,"i",25),w.qZA(),w._UZ(5,"input",26),w.qZA(),w.TgZ(6,"div",14),w.YNc(7,Tt,3,0,"div",15),w.qZA(),w.TgZ(8,"div",24)(9,"span",17),w._UZ(10,"i",25),w.qZA(),w._UZ(11,"input",27),w.qZA(),w.TgZ(12,"div",14),w.YNc(13,xt,3,0,"div",15),w.qZA(),w.TgZ(14,"div")(15,"div",28),w._UZ(16,"input",29),w.TgZ(17,"label",30),w._uU(18," Male "),w.qZA()(),w.TgZ(19,"div",28),w._UZ(20,"input",31),w.TgZ(21,"label",32),w._uU(22," Female "),w.qZA()(),w.TgZ(23,"div",28),w._UZ(24,"input",33),w.TgZ(25,"label",34),w._uU(26," Other "),w.qZA()(),w.TgZ(27,"div",14),w.YNc(28,St,3,0,"div",15),w.qZA()(),w.TgZ(29,"div",16)(30,"span",17),w._uU(31,"@"),w.qZA(),w._UZ(32,"input",35),w.TgZ(33,"div",14),w.YNc(34,Zt,3,0,"div",15),w.qZA()(),w.TgZ(35,"div",24)(36,"span",17),w._UZ(37,"i",36),w.qZA(),w._UZ(38,"input",37),w.TgZ(39,"div",14),w.YNc(40,yt,3,0,"div",15),w.qZA()(),w.TgZ(41,"div",24)(42,"span",17),w._UZ(43,"i",36),w.qZA(),w._UZ(44,"input",38),w.TgZ(45,"div",14),w.YNc(46,un,3,0,"div",15),w.qZA()(),w.TgZ(47,"div",19)(48,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.register())}),w._uU(49,"submit"),w.qZA()()()()}if(2&rt){const Nt=w.oxw();w.xp6(1),w.Q6J("formGroup",Nt.registrationForm),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.name)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.username)),w.xp6(15),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.gender)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.email)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.password)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.confirmPassword))}}const tn=function(){return["/login"]};let wn=(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(Nt,Qt,nn),this.notifier=Dn,this.registrationService=Ot,this.step=te.INIT_VERIFICATION,this.phone=new D.NI("",[D.kI.required,D.kI.minLength(11),D.kI.maxLength(11)]),this.otp=new D.NI("",[D.kI.required,D.kI.minLength(6)]),this.registrationForm=new D.cw({name:new D.NI("",[D.kI.required,D.kI.minLength(3)]),gender:new D.NI("",[D.kI.required]),email:new D.NI("",[D.kI.email]),password:new D.NI("",[D.kI.required,D.kI.minLength(6)]),confirmPassword:new D.NI("",[D.kI.required,D.kI.minLength(6)]),username:new D.NI("",[D.kI.required,D.kI.minLength(6)])})}componentName(){return"RegistrationComponent"}ngOnInit(){this.registerSubscriptions()}isVerified(){return this.step===te.VERIFIED}isInitiating(){return this.step===te.INIT_VERIFICATION}isWaitingForCode(){return this.step===te.WAITING_FOR_CODE}sendOtp(){if(this.phone.invalid||null==this.phone.value)return void this.notifier.warning("Warning","Phone number should be 11 digits!");let Nt=this.phone.value;this.notifier.log(Nt);let Qt=this.componentKey(I.Z.REGISTRATION.OTP_SENT);this.registrationService.sendOtp(Qt,Nt),this.subscribe(Qt,null,(nn,Dn)=>{this.registrationForm.controls.username.setValue(this.phone.value),this.notifier.success("OTP Sent!","We've sent you an OTP. You need to provide the OTP here."),this.notifier.log(Dn),this.step=te.WAITING_FOR_CODE}),this.subscribe(this.getErrorKey(Qt),null,(nn,Dn)=>{this.notifier.warning("Failed",Dn.data.error.message)}),this.notifier.log(this.phone.value)}registerSubscriptions(){this.onRegisterEvent()}onRegisterEvent(){}verifyOtp(){this.otp.invalid||(this.step=te.VERIFIED)}register(){if(this.registrationForm.invalid)return void this.notifier.warning("Incorrect inputs!","Please fill the form correctly.");if(null==this.otp.value)return void this.notifier.warning("OTP Invalid!","Please enter OTP.");let Nt=this.prepare(this.registrationForm.value),Qt=this.componentKey(I.Z.REGISTRATION.REGISTER_SUCCESS);this.registrationService.register(Qt,Nt,this.otp.value),this.subscribe(Qt,"/choose-interests",(nn,Dn)=>{this.notifier.success("SUCCESS!","You've been successfully registered!")}),this.subscribe(this.getErrorKey(Qt),"/sign-up",(nn,Dn)=>{this.notifier.warning("Registration Failed!",Dn.data.error.message)})}prepare(Nt){return{email:Nt.email,gender:Nt.gender,name:Nt.name,password:Nt.password,phone:this.phone.value,role:"User",username:Nt.username}}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z),w.Y36(Z.l),w.Y36(Re))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-registration"]],features:[w.qOj],decls:25,vars:5,consts:[[1,"login-page-hero-section","py-4"],[1,"container"],["src","assets/img/login-page-images/login-hero-page.png","alt","astha login page"],[1,"login-form-section","pb-5","px-3"],[1,"row"],[1,"col-12"],[1,"section-title"],["class","astha-login-form-area",4,"ngIf"],[1,"login-area","mt-5"],[1,"text-center","text-white"],[1,"btn-login",3,"routerLink"],[1,"copyright-area","pb-5"],[1,"col-12","text-center"],[1,"astha-login-form-area"],[1,"err-msg"],["class","text-warning",4,"ngIf"],[1,"input-group","flex-nowrap"],[1,"input-group-text"],["type","text","placeholder","Enter phone number",1,"form-control",3,"formControl"],[1,"btn-action"],["type","submit",1,"btn-sign-up",3,"click"],[1,"text-warning"],["type","text","placeholder","Enter OTP",1,"form-control",3,"formControl"],["action","POST",3,"formGroup"],[1,"input-group"],[1,"flaticon-user"],["type","text","placeholder","Your name","formControlName","name","required","required","min","3",1,"form-control"],["type","text","name","username","placeholder","Username","formControlName","username","required","required","min","3",1,"form-control"],[1,"form-check"],["type","radio","name","gender","id","exampleRadios1","value","MALE","formControlName","gender","checked","",1,"form-check-input"],["for","exampleRadios1",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios2","value","FEMALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios2",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios3","value","OTHER","formControlName","gender",1,"form-check-input"],["for","exampleRadios3",1,"form-check-label"],["type","email","name","email","placeholder","Email ID","formControlName","email",1,"form-control"],[1,"icon-home-outline"],["type","password","name","password","placeholder","Password","formControlName","password","min","6",1,"form-control"],["type","password","name","confirmPassword","placeholder","Confirm Password","formControlName","confirmPassword","min","6",1,"form-control"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"section",0)(1,"div",1),w._UZ(2,"img",2),w.qZA()(),w.TgZ(3,"section",3)(4,"div",1)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1"),w._uU(9,"sign up"),w.qZA()()(),w.TgZ(10,"div",5),w.YNc(11,Ge,10,2,"div",7),w.YNc(12,je,10,2,"div",7),w.YNc(13,Jt,50,7,"div",7),w.qZA(),w.TgZ(14,"div",8)(15,"h4",9),w._uU(16,"Already Registered?"),w.qZA(),w.TgZ(17,"a",10),w._uU(18,"Login"),w.qZA()()()()(),w.TgZ(19,"section",11)(20,"div",1)(21,"div",4)(22,"div",12)(23,"h5"),w._uU(24,"\xa9 SERVICITO LTD"),w.qZA()()()()()),2&Qt&&(w.xp6(11),w.Q6J("ngIf",nn.isInitiating()),w.xp6(1),w.Q6J("ngIf",nn.isWaitingForCode()),w.xp6(1),w.Q6J("ngIf",nn.isVerified()),w.xp6(4),w.Q6J("routerLink",w.DdM(4,tn)))},dependencies:[e.O5,l.rH,D._Y,D.Fj,D._,D.JJ,D.JL,D.Q7,D.oH,D.sg,D.u],styles:[".login-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.err-msg[_ngcontent-%COMP%]{margin-bottom:30px}.login-area[_ngcontent-%COMP%] .btn-login[_ngcontent-%COMP%]{margin-top:20px;border:1px solid #44d62c;border-radius:2em;color:#44d62c;padding:5px 50px}.btn-action[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.btn-sign-up[_ngcontent-%COMP%]{margin-top:10px;border:1px solid #44d62c;border-radius:2em;color:#000;background-color:#44d62c;padding:10px 70px}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;color:#fff}.login-page-hero-section[_ngcontent-%COMP%]{text-align:center}.login-page-hero-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70%;height:200px}section.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-transform:capitalize;font-weight:600;font-size:35px}.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin-bottom:35px}.astha-login-form-area[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{padding:0;background:none;border:0;color:#98a0ac;font-size:18px}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:0;width:100%;text-transform:capitalize;border-radius:20px;background:#3961ED;color:#fff;font-size:22px;font-weight:600;padding:12px 20px;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{opacity:.7;letter-spacing:.05em}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:0}[placeholder][_ngcontent-%COMP%]:focus::-webkit-input-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus::-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-ms-input-placeholder{opacity:0}textarea[_ngcontent-%COMP%]:focus, input[type=text][_ngcontent-%COMP%]:focus, input[type=password][_ngcontent-%COMP%]:focus, input[type=email][_ngcontent-%COMP%]:focus, .uneditable-input[_ngcontent-%COMP%]:focus{border-color:transparent;box-shadow:0 1px 1px transparent;outline:0 none}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#b3b8c1;text-transform:capitalize}.astha-login-form-area[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border-bottom:2px solid #F0F1F3;margin-bottom:30px;padding:5px}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]{color:#778fd4;text-transform:capitalize;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]:hover{color:#333}.login-form-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;color:#b9bec6}.astha-ls-social-area[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;grid-gap:30px}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;border:2px solid #F0F2F4;padding:20px;font-size:25px;border-radius:20px;color:#3961ee;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#333;border-color:#333}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;text-transform:capitalize;color:#9198a4}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#3961ed}@media (max-width: 480px){.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:12px;border-radius:12px}.astha-ls-social-area[_ngcontent-%COMP%]{grid-gap:15px}}"]})}return rt})();var Ln=C(617);function Yn(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Username must be at least 6 characters!"),w.qZA()())}function ti(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",14)(1,"div",15)(2,"span",16),w._uU(3,"+88"),w.qZA(),w._UZ(4,"input",17),w.qZA(),w.TgZ(5,"div",18),w.YNc(6,Yn,3,0,"div",19),w.qZA(),w.TgZ(7,"div",20)(8,"button",21),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.requestToken())}),w._uU(9,"Send OTP"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(4),w.Q6J("formControl",Nt.username),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.username))}}function gi(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Name must be 11 characters!"),w.qZA()())}function Rn(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Token must be 5 characters!"),w.qZA()())}function dt(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"New must be at least 8 characters!"),w.qZA()())}function at(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",14)(1,"div",15)(2,"span",16),w._UZ(3,"i",23),w.qZA(),w._UZ(4,"input",24),w.qZA(),w.TgZ(5,"div",18),w.YNc(6,gi,3,0,"div",19),w.qZA(),w.TgZ(7,"div",15)(8,"span",16),w._uU(9,"OTP"),w.qZA(),w._UZ(10,"input",25),w.qZA(),w.TgZ(11,"div",18),w.YNc(12,Rn,3,0,"div",19),w.qZA(),w.TgZ(13,"div",15)(14,"span",16)(15,"mat-icon"),w._uU(16,"lock"),w.qZA()(),w._UZ(17,"input",26),w.qZA(),w.TgZ(18,"div",18),w.YNc(19,dt,3,0,"div",19),w.qZA(),w.TgZ(20,"div",20)(21,"button",27),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.resetPassword())}),w._uU(22,"Verify"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(4),w.Q6J("formControl",Nt.username),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.username)),w.xp6(4),w.Q6J("formControl",Nt.token),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.token)),w.xp6(5),w.Q6J("formControl",Nt.password),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.password)),w.xp6(2),w.Q6J("disabled",Nt.isVerifyButtonDisabled())}}const Be=function(){return["/login"]},Ee=function(){return["/sign-up"]},me=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"login",component:se},{path:"sign-up",component:wn},{path:"reset-password",component:(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(Nt,Qt,nn),this.notifier=Dn,this.authService=Ot,this.step=te.INIT_VERIFICATION,this.token=new D.NI("",[D.kI.required,D.kI.minLength(5)]),this.username=new D.NI("",[D.kI.required,D.kI.minLength(6),D.kI.maxLength(11)]),this.password=new D.NI("",[D.kI.required,D.kI.minLength(6)]),this.tokenValidity=new Date}componentName(){return"ResetPasswordComponent"}ngOnInit(){}isVerified(){return this.step===te.VERIFIED}isInitiating(){return this.step===te.INIT_VERIFICATION}isWaitingForCode(){return this.step===te.WAITING_FOR_CODE}requestToken(){if(this.username.invalid)return void this.notifier.warning("Warning","Username must be at least 6 characters!");let Nt=this.username.value;this.notifier.log(Nt);let Qt=this.componentKey(I.Z.RESET_PASSWORD.TOKEN_REQUESTED);this.authService.requestPasswordResetToken(Qt,Nt),this.subscribe(Qt,null,(nn,Dn)=>{this.step=te.WAITING_FOR_CODE;let Ot=Dn.data;this.tokenValidity=new Date((new Date).getMilliseconds()+Ot.tokenValidityMillis)}),this.subscribe(this.getErrorKey(Qt),null,(nn,Dn)=>{this.notifier.warning("Failed!",Dn.data.error.message)}),this.notifier.log(Nt)}verifyOtp(){this.step=te.VERIFIED}resetPassword(){let Nt=this.componentKey(I.Z.RESET_PASSWORD.RESET_SUCCESS);this.authService.resetPassword(Nt,this.token.value,this.username.value,this.password.value),this.subscribe(Nt,"/login",(Qt,nn)=>{this.notifier.success("Success!","Password has been reset successfully. Please login to continue.")}),this.subscribe(this.getErrorKey(Nt),null,(Qt,nn)=>{this.notifier.warning("Failed!",nn.data.error.message)})}isVerifyButtonDisabled(){return this.username.invalid||this.token.invalid||this.password.invalid}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z),w.Y36(Z.l),w.Y36(n.e))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-reset-password"]],features:[w.qOj],decls:30,vars:6,consts:[[1,"login-page-hero-section"],[1,"container"],["src","assets/img/login-page-images/login-hero-page.png","alt","astha login page"],[1,"login-form-section","mt-4","px-3"],[1,"row"],[1,"col-12"],[1,"section-title"],["class","astha-login-form-area",4,"ngIf"],[1,"reg-login-section","mt-5"],[1,"login-area"],[1,"text-center","text-white"],[1,"btn-login",3,"routerLink"],[1,"copyright-area","mt-5","pb-5"],[1,"col-12","text-center"],[1,"astha-login-form-area"],[1,"input-group","flex-nowrap"],[1,"input-group-text"],["type","text","placeholder","Enter phone number","required","required",1,"form-control",3,"formControl"],[1,"err-msg"],["class","text-warning",4,"ngIf"],[1,"btn-action"],["type","submit",1,"btn-reset",3,"click"],[1,"text-warning"],[1,"flaticon-user"],["type","text","placeholder","Enter OTP","required","required","readonly","",1,"form-control",3,"formControl"],["type","text","placeholder","Enter OTP","required","required",1,"form-control",3,"formControl"],["type","text","placeholder","Enter new password","required","required",1,"form-control",3,"formControl"],["type","submit",1,"btn-reset",3,"disabled","click"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"section",0)(1,"div",1),w._UZ(2,"img",2),w.qZA()(),w.TgZ(3,"section",3)(4,"div",1)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1"),w._uU(9,"Reset Password"),w.qZA()()(),w.TgZ(10,"div",5),w.YNc(11,ti,10,2,"div",7),w.YNc(12,at,23,7,"div",7),w.qZA()()()(),w.TgZ(13,"section",8)(14,"div",9)(15,"h5",10),w._uU(16,"Already Registered?"),w.qZA(),w.TgZ(17,"a",11),w._uU(18,"Login"),w.qZA()(),w.TgZ(19,"div",9)(20,"h5",10),w._uU(21,"Don't have an account yet?"),w.qZA(),w.TgZ(22,"a",11),w._uU(23,"Sign Up"),w.qZA()()(),w.TgZ(24,"section",12)(25,"div",1)(26,"div",4)(27,"div",13)(28,"h5"),w._uU(29,"\xa9 SERVICITO LTD"),w.qZA()()()()()),2&Qt&&(w.xp6(11),w.Q6J("ngIf",nn.isInitiating()),w.xp6(1),w.Q6J("ngIf",nn.isWaitingForCode()),w.xp6(5),w.Q6J("routerLink",w.DdM(4,Be)),w.xp6(5),w.Q6J("routerLink",w.DdM(5,Ee)))},dependencies:[e.O5,l.rH,D.Fj,D.JJ,D.Q7,D.oH,Ln.Hw],styles:[".reg-login-section[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly;align-items:baseline}.login-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.login-area[_ngcontent-%COMP%] .btn-login[_ngcontent-%COMP%]{margin-top:20px;border:1px solid #44d62c;border-radius:2em;color:#44d62c;padding:5px 50px}.btn-action[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.btn-reset[_ngcontent-%COMP%]{margin-top:10px;border:1px solid #44d62c;border-radius:2em;color:#000;background-color:#44d62c;padding:10px 70px}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;color:#fff}.login-page-hero-section[_ngcontent-%COMP%]{text-align:center}.login-page-hero-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70%;height:200px}section.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-transform:capitalize;font-weight:600;font-size:35px}.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin-bottom:35px}.astha-login-form-area[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{padding:0;background:none;border:0;color:#98a0ac;font-size:18px}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:0;width:100%;text-transform:capitalize;border-radius:20px;background:#3961ED;color:#fff;font-size:22px;font-weight:600;padding:12px 20px;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;cursor:pointer;opacity:1}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{opacity:.7;letter-spacing:.05em}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:0}[placeholder][_ngcontent-%COMP%]:focus::-webkit-input-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus::-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-ms-input-placeholder{opacity:0}textarea[_ngcontent-%COMP%]:focus, input[type=text][_ngcontent-%COMP%]:focus, input[type=password][_ngcontent-%COMP%]:focus, input[type=email][_ngcontent-%COMP%]:focus, .uneditable-input[_ngcontent-%COMP%]:focus{border-color:transparent;box-shadow:0 1px 1px transparent;outline:0 none}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#b3b8c1;text-transform:capitalize}.astha-login-form-area[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border-bottom:2px solid #F0F1F3;padding:5px}.err-msg[_ngcontent-%COMP%]{margin-bottom:30px}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]{color:#778fd4;text-transform:capitalize;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]:hover{color:#333}.login-form-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;color:#b9bec6}.astha-ls-social-area[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;grid-gap:30px}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;border:2px solid #F0F2F4;padding:20px;font-size:25px;border-radius:20px;color:#3961ee;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#333;border-color:#333}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;text-transform:capitalize;color:#9198a4}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#3961ed}@media (max-width: 480px){.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:12px;border-radius:12px}.astha-ls-social-area[_ngcontent-%COMP%]{grid-gap:15px}}"]})}return rt})()}];let tt=(()=>{class rt{static#e=this.\u0275fac=function(Qt){return new(Qt||rt)};static#t=this.\u0275mod=w.oAB({type:rt});static#n=this.\u0275inj=w.cJS({imports:[l.Bz.forChild(me),l.Bz]})}return rt})();var he=C(9890);let Ze=(()=>{class rt{static#e=this.\u0275fac=function(Qt){return new(Qt||rt)};static#t=this.\u0275mod=w.oAB({type:rt});static#n=this.\u0275inj=w.cJS({providers:[{provide:_e.TP,useClass:he.I,multi:!0}],imports:[e.ez,tt,D.UX,Ln.Ps]})}return rt})()},9890:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>S});var e=C(9862),l=C(5879),D=C(8480),I=C(1662);let S=(()=>{class w{constructor(Z,ee){this.authService=Z,this.router=ee,this.tryCount=0}intercept(Z,ee){let re=this.authService.getAccessToken();return null===re||0===re.trim().length||"OPTIONS"===Z.method?ee.handle(Z):ee.handle(this.applyCredentials(Z,re))}navigateByUrl(Z,ee){null!=Z&&this.router.navigateByUrl(Z).then(re=>ee(re))}static isAuthError(Z){return Z instanceof e.UA&&(401===Z.status||0===Z.status)}static isAccessTokenExpired(Z){return Z instanceof e.UA&&401===Z.status&&Z.error.error_description.startsWith("Access token expired")?(console.log("Access token expired",Z),!0):(console.log("Access token not expired",Z),!1)}applyCredentials(Z,ee){return Z.clone({headers:this.authService.getAuthHeadersFromToken(ee)})}static#e=this.\u0275fac=function(ee){return new(ee||w)(l.LFG(D.e),l.LFG(I.F0))};static#t=this.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac})}return w})()},9538:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>I});var e=C(5879),l=C(1662),D=C(8480);let I=(()=>{class S{constructor(n,Z){this.router=n,this.authService=Z}canActivate(n,Z){return!!this.authService.isAuthenticated()||(this.router.navigate(["/login"]).then(ee=>console.log(n)),!1)}static#e=this.\u0275fac=function(Z){return new(Z||S)(e.LFG(l.F0),e.LFG(D.e))};static#t=this.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},8480:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>te});var e=C(9862),l=C(3108),D=C(553),I=C(7222),S=C(7259);class w extends Error{}w.prototype.name="InvalidTokenError";var re=C(5879),ue=C(30),se=C(6945);let te=(()=>{class oe{constructor(_e,Re,mt){this.http=_e,this.eventBus=Re,this.subContainer=mt,this.refreshToken$=this.http.post(this.getRefreshTokenUrl(),null)}login(_e,Re,mt){const Ge=this.getLoginUrl(Re,mt);this.http.post(Ge,null).subscribe(je=>{this.setAuth(je),this.eventBus.publish(_e,je)},je=>{this.eventBus.publish(je.status>=500||0==je.status?_e+":error:1":_e+":error:2",je)})}setAuth(_e){l.n.putAuth(_e)}isAuthenticated(){return!!l.n.retrieve(l.n.KEYS.accessToken)}isAdmin(){return"admin"==this.getAuth().username}getAuthorities(){return function ee(oe,ce){if("string"!=typeof oe)throw new w("Invalid token specified: must be a string");ce||(ce={});const _e=!0===ce.header?0:1,Re=oe.split(".")[_e];if("string"!=typeof Re)throw new w(`Invalid token specified: missing part #${_e+1}`);let mt;try{mt=function Z(oe){let ce=oe.replace(/-/g,"+").replace(/_/g,"/");switch(ce.length%4){case 0:break;case 2:ce+="==";break;case 3:ce+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function n(oe){return decodeURIComponent(atob(oe).replace(/(.)/g,(ce,_e)=>{let Re=_e.charCodeAt(0).toString(16).toUpperCase();return Re.length<2&&(Re="0"+Re),"%"+Re}))}(ce)}catch{return atob(ce)}}(Re)}catch(Ge){throw new w(`Invalid token specified: invalid base64 for part #${_e+1} (${Ge.message})`)}try{return JSON.parse(mt)}catch(Ge){throw new w(`Invalid token specified: invalid json for part #${_e+1} (${Ge.message})`)}}(this.getAccessToken()).authorities}hasPrivilege(_e){const Re=this.getAuthorities();return!!Re&&Re.includes(_e)}logout(){let _e=this.globalKey(S.Z.AUTH.LOGOUT);return this.isAuthenticated()&&(l.n.clear(),this.eventBus.publish(_e,null)),this.subContainer.disposeNonGlobal(),location.reload(),console.log("Logged out! Disposing non-global subscriptions.."),console.log(Array.from(this.subContainer.getKeys().keys())),_e}globalKey(_e){return"global:"+_e}getAuth(){return l.n.getAuth()}getFirstName(){if(!this.isAuthenticated())return"";const _e=this.getAuth().name.split(" ");return _e.length<1?"":_e[0]}getAccessToken(){return l.n.retrieve(l.n.KEYS.accessToken)}getRefreshToken(){return l.n.retrieve(l.n.KEYS.refreshToken)}getLoginUrl(_e,Re){return I.o.AUTH.LOGIN({grant_type:"password",client_id:D.N.client_id,client_secret:D.N.client_secret,username:_e,password:Re})}getRefreshTokenUrl(){return I.o.AUTH.REFRESH_TOKEN({grant_type:"refresh_token",client_id:D.N.client_id,client_secret:D.N.client_secret,refresh_token:this.getRefreshToken()})}refreshToken(_e){this.refreshToken$.subscribe(Re=>{l.n.putAuth(Re),console.log("Token refreshed!"),_e(Re)},Re=>{this.logout()})}getAuthHeaders(){return new e.WM({Authorization:"Bearer "+this.getAccessToken()})}getAuthHeadersFromToken(_e){return new e.WM({Authorization:"Bearer "+_e})}requestPasswordResetToken(_e,Re){this.http.get(I.o.RESET_PASSWORD.REQUEST_TOKEN({username:Re})).subscribe(mt=>{this.eventBus.publish(_e,mt)},mt=>{this.eventBus.publish(S.Z.RESET_PASSWORD.RESET_PASSWORD_ERROR,mt)})}resetPassword(_e,Re,mt,Ge){this.http.post(I.o.RESET_PASSWORD.REQUEST_TOKEN({token:Re,username:mt,password:Ge}),null).subscribe(Lt=>{this.eventBus.publish(_e,Lt)},Lt=>{this.eventBus.publish(_e+"error",Lt)})}static#e=this.\u0275fac=function(Re){return new(Re||oe)(re.LFG(e.eN),re.LFG(ue.Y),re.LFG(se.z))};static#t=this.\u0275prov=re.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},5239:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}deleteAccount(ue){this.http.delete(l.e.USER.DELETE_ME()).subscribe(se=>{this.eventBus.publish(ue,se)},se=>{this.handleError(se,te=>{this.deleteAccount(ue)},te=>{this.eventBus.publish(this.getErrorKey(ue),te)})})}searchUsers(ue,se){this.http.get(l.e.USER.SEARCH(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.searchUsers(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9797:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{CmsModule:()=>ue});var e=C(6814),l=C(1662),D=C(5879),I=C(9661);const w=[{path:"files",component:(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275cmp=D.Xpm({type:se,selectors:[["app-file"]],decls:1,vars:0,template:function(ce,_e){1&ce&&D._UZ(0,"app-file-list")},dependencies:[I.E]})}return se})()}];let n=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=D.oAB({type:se});static#n=this.\u0275inj=D.cJS({imports:[l.Bz.forChild(w),l.Bz]})}return se})();var Z=C(7151),ee=C(6223),re=C(7700);let ue=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=D.oAB({type:se});static#n=this.\u0275inj=D.cJS({providers:[{provide:re.WI,useValue:{}}],imports:[e.ez,ee.UX,n,Z.g]})}return se})()},9661:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>Ve});var e=C(5879),l=C(6405),D=C(6032);let I={defaultLayout:l.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:D.s.FILES.FILE_ENDPOINT,imageEndpoint:D.s.FILES.IMAGE_ENDPOINT,delEndpoint:D.s.FILES.FILE_ENDPOINT,imgDelEndpoint:D.s.FILES.IMAGE_ENDPOINT},S={list:"/cms/files",create:"/cms/files/create",update(ct){return null==ct?this.create:"/admin/files/"+ct+"/update"}};var w=C(6542),n=C(7700),Z=C(1855),ee=C(7259),re=C(6223),ue=C(9870),se=C(8637),te=C(30),oe=C(1662),ce=C(6945),_e=C(9230),Re=C(5462),mt=C(6814),Ge=C(4736);function Lt(ct,Ct){1&ct&&e._UZ(0,"util-progress",10),2&ct&&e.Q6J("bar",!0)}function je(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"img",15),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(2);return e.KtG(ot.removeImage(Oe))}),e.qZA()}2&ct&&e.s9C("src",Ct.$implicit.previewUrl,e.LSH)}function Tt(ct,Ct){if(1&ct&&(e.TgZ(0,"div",11)(1,"small",12),e.SDv(2,13),e.qZA(),e._UZ(3,"br"),e.YNc(4,je,1,1,"img",14),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(4),e.Q6J("ngForOf",Ce.uploadFiles)}}function xt(ct,Ct){if(1&ct&&(e.TgZ(0,"h6",16),e._uU(1),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(1),e.Oqu(Ce.msg)}}let St=(()=>{class ct extends se.H{componentName(){return"ImageUploaderComponent"}constructor(Ce,J,ae,Oe,ot){super(Ce,J,ae),this.fileService=Oe,this.notifier=ot,this.title="Upload Images",this.msg="",this.multiSelect=!1,this.uploadFiles=[],this.required=!1,this.images=[],this.onUploaded=new e.vpe,this.loading=!1,null==this.uniqueNamespace&&(this.uniqueNamespace=this.getUniqueId(4))}ngOnInit(){console.log(this.images)}uploadImages(){if(0==this.uploadFiles.length)return void(this.required?this.msg="File not selected":this.onUploaded.emit(this.images));console.log("uploading images.."),this.loading=!0;let Ce=[];this.uploadFiles.forEach(ae=>{Ce.push(ae.file)});let J=this.componentKey(ee.Z.FILES.IMAGE_UPLOAD(this.uniqueNamespace+"-img"));this.fileService.uploadImagesV2(J,Ce),this.subscribe(J,null,(ae,Oe)=>{this.images=Oe.data,this.loading=!1,this.onUploaded.emit(this.images),console.log("Uploaded successfully!"),console.log(this.images)})}onImageSelected(Ce){if(Ce.target.files&&Ce.target.files[0]){if(null==Ce.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let ae={file:Ce.target.files[0],previewUrl:null};const Oe=new FileReader;Oe.readAsDataURL(Ce.target.files[0]),Oe.onload=Se=>{let Ft=Se.target?.result;null!=Ft&&(ae.previewUrl=Ft,this.multiSelect||(console.log("resetting images"),this.images=[],console.log(this.images),this.uploadFiles=[]),this.uploadFiles.push(ae),this.msg="")}}}removeImage(Ce){let J=this.uploadFiles.map(ae=>ae.previewUrl).indexOf(Ce.previewUrl);this.uploadFiles.splice(J,1)}removeExImage(Ce){let J=this.images.indexOf(Ce);this.images.splice(J)}getUniqueId(Ce){const J=[];for(let ae=0;ae0),e.xp6(2),e.Oqu(ae.title),e.xp6(5),e.Q6J("ngIf",ae.msg.length>0))},dependencies:[mt.sg,mt.O5,Ge.t]})}return ct})();function Zt(ct,Ct){1&ct&&e._UZ(0,"util-progress",11),2&ct&&e.Q6J("bar",!0)}let yt=(()=>{class ct extends ue.n{constructor(Ce,J,ae,Oe,ot,Se,Ft){super(Ce,J,ae,Oe,Ft),this.fileService=ot,this.notifier=Se,this.config=I,this.fileForm=new re.cw({image:new re.NI(null)})}componentName(){return"FileUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Files",link:"/admin/files",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(Ce){this.loading=!0;let J=this.componentKey(ee.Z.FILES.GET(Ce));this.fileService.fetchSingle(J,Ce),this.subscribe(J,null,(ae,Oe)=>{this.loading=!1,this.populateForm(Oe.data)}),this.subscribe(this.getErrorKey(J),null,(ae,Oe)=>{console.log(Oe.data),this.loading=!1})}getExImages(){return[{image_url:this.fileForm.controls.image.value,thumb_url:this.fileForm.controls.image.value}]}onSubmit(){this.fileForm.valid&&this.uploadComponent.uploadImages()}onImgUploaded(Ce){Ce.length>0&&this.fileForm.controls.image.setValue(Ce[0].thumb_url),setTimeout(()=>{this.onCompleted.emit(Ce)},500)}getConfig(){return this.config}getListPageRoute(){return S.list}populateForm(Ce){}static#e=this.\u0275fac=function(J){return new(J||ct)(e.Y36(te.Y),e.Y36(oe.F0),e.Y36(ce.z),e.Y36(oe.gz),e.Y36(_e.I),e.Y36(Re.l),e.Y36(n.WI))};static#t=this.\u0275cmp=e.Xpm({type:ct,selectors:[["app-file-upsert"]],viewQuery:function(J,ae){if(1&J&&e.Gf(St,5),2&J){let Oe;e.iGM(Oe=e.CRH())&&(ae.uploadComponent=Oe.first)}},features:[e.qOj],decls:14,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[3,"title","multiSelect","images","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(J,ae){1&J&&(e.YNc(0,Zt,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update File"),e.qZA(),e.TgZ(7,"form",6)(8,"app-image-uploader-v2",7),e.NdJ("onUploaded",function(ot){return ae.onImgUploaded(ot)}),e.qZA(),e.TgZ(9,"div",8)(10,"button",9),e.NdJ("click",function(){return ae.onCancel()}),e._uU(11," Cancel "),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return ae.onSubmit()}),e._uU(13," Submit "),e.qZA()()()()()()()),2&J&&(e.Q6J("ngIf",ae.loading),e.xp6(7),e.Q6J("formGroup",ae.fileForm),e.xp6(1),e.s9C("title",ae.translations["Select File"]),e.Q6J("multiSelect",!0)("images",ae.getExImages())("required",!0),e.xp6(4),e.Q6J("ngClass",ae.fileForm.valid?"":"disabled"))},dependencies:[mt.mk,mt.O5,re._Y,re.JL,re.sg,Ge.t,St]})}return ct})();var un=C(8174),Jt=C(2159),tn=C(8480),wn=C(8675),Ln=C(1836),Yn=C(6075),ti=C(9582),gi=C(2770);function Rn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",11)(1,"div",12)(2,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onCloseClicked())}),e._UZ(3,"i",14),e.qZA()()()}}function dt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",15)(1,"button",16),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.useSelectedFiles())}),e.TgZ(2,"span"),e.SDv(3,17),e.qZA()(),e.TgZ(4,"button",18),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.clearSelection())}),e.TgZ(5,"span"),e.SDv(6,19),e.qZA()()()}}function at(ct,Ct){1&ct&&e._UZ(0,"util-progress",20),2&ct&&e.Q6J("bar",!0)}function Be(ct,Ct){1&ct&&(e.TgZ(0,"h4",32),e.SDv(1,33),e.qZA())}function Ee(ct,Ct){1&ct&&(e.TgZ(0,"h4",34),e.SDv(1,35),e.qZA())}function $e(ct,Ct){if(1&ct&&(e.TgZ(0,"div",21)(1,"div",22)(2,"div",0)(3,"div",23)(4,"div",24)(5,"h1",25),e._UZ(6,"i",26),e.qZA(),e.YNc(7,Be,2,0,"h4",27),e.YNc(8,Ee,2,0,"h4",28),e.qZA()()(),e.TgZ(9,"div",29)(10,"div",30)(11,"div"),e._UZ(12,"img",31),e.qZA()()()()()),2&ct){const Ce=e.oxw();e.xp6(7),e.Q6J("ngIf",Ce.loading),e.xp6(1),e.Q6J("ngIf",!Ce.loading)}}function me(ct,Ct){1&ct&&(e.TgZ(0,"th"),e.SDv(1,50),e.qZA())}function tt(ct,Ct){1&ct&&(e.TgZ(0,"th"),e.SDv(1,51),e.qZA())}function he(ct,Ct){if(1&ct&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&ct){const Ce=e.oxw().$implicit;e.xp6(1),e.Oqu(Ce.created_by)}}function Ze(ct,Ct){1&ct&&e._UZ(0,"td",52)}function rt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,he,2,1,"td",8),e.TgZ(4,"td")(5,"a",13),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.onUpsertClick(Oe.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td")(8,"small"),e._uU(9),e.ALo(10,"readableDate"),e.qZA()(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td",52)(16,"a",53),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.onUpsertClick(Oe.id))}),e._UZ(17,"i",54),e.qZA()(),e.YNc(18,Ze,1,0,"td",55),e.qZA()}if(2&ct){const Ce=Ct.$implicit,J=e.oxw(3);e.xp6(2),e.Oqu(Ce.id),e.xp6(1),e.Q6J("ngIf",J.config.showUserFilter),e.xp6(3),e.hij(" ",Ce.image_url," "),e.xp6(3),e.Oqu(e.lcZ(10,6,Ce.created_at)),e.xp6(4),e.Oqu(e.lcZ(14,8,Ce.updated_at)),e.xp6(5),e.Q6J("ngIf",J.config.showDeleteButton)}}function bt(ct,Ct){if(1&ct&&(e.TgZ(0,"div",0)(1,"div",11)(2,"div",38)(3,"div",39)(4,"p",40),e.SDv(5,41),e.qZA(),e.TgZ(6,"div",42)(7,"table",43)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,44),e.qZA(),e.YNc(12,me,2,0,"th",8),e.TgZ(13,"th"),e.SDv(14,45),e.qZA(),e.TgZ(15,"th"),e.SDv(16,46),e.qZA(),e.TgZ(17,"th"),e.SDv(18,47),e.qZA(),e.TgZ(19,"th"),e.SDv(20,48),e.qZA(),e.YNc(21,tt,2,0,"th",8),e.qZA()(),e.TgZ(22,"tbody"),e.YNc(23,rt,19,10,"tr",49),e.qZA()()()()()()()),2&ct){const Ce=e.oxw(2);e.Q6J("@dataLoaded",Ce.loading?"loading":"loaded")("@onColumn",Ce.layout==Ce.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",Ce.config.showUserFilter),e.xp6(9),e.Q6J("ngIf",Ce.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",Ce.images.content)}}function Nt(ct,Ct){if(1&ct&&e._UZ(0,"img",68),2&ct){const Ce=e.oxw().$implicit;e.s9C("src",Ce.image_url,e.LSH)}}function Qt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",69),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw().$implicit,Oe=e.oxw(3);return e.KtG(Oe.toggleFileSelection(ae))}),e.TgZ(1,"h6",70)(2,"span"),e.SDv(3,71),e.qZA(),e._uU(4),e.qZA()()}if(2&ct){const Ce=e.oxw().$implicit;e.xp6(4),e.hij(" ",Ce.created_by," ")}}function nn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",65)(1,"app-delete",72),e.NdJ("deleteItemEvent",function(ae){e.CHM(Ce);const Oe=e.oxw(4);return e.KtG(Oe.onDeleted(ae))}),e.qZA()()}if(2&ct){const Ce=e.oxw().$implicit,J=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",J.config.imgDelEndpoint+"/"+Ce.id+"/delete")("look","bx")}}function Dn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",58)(1,"div",59)(2,"div",60),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.toggleFileSelection(Oe))}),e.TgZ(3,"a"),e.YNc(4,Nt,1,1,"img",61),e.qZA()(),e.YNc(5,Qt,5,1,"div",62),e.TgZ(6,"div",63)(7,"div",64)(8,"div",65)(9,"a",13),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.TextUtility.copyToClipboard(Oe.image_url))}),e._UZ(10,"i",66),e.qZA()(),e.YNc(11,nn,2,2,"div",67),e.qZA()()()()}if(2&ct){const Ce=Ct.$implicit,J=e.oxw(3);e.xp6(1),e.Q6J("ngClass",J.isSelected(Ce)?"border-3 border-success":""),e.xp6(3),e.Q6J("ngIf",Ce.image_url),e.xp6(1),e.Q6J("ngIf",J.isAdmin()),e.xp6(6),e.Q6J("ngIf",J.config.showDeleteButton)}}function Ot(ct,Ct){if(1&ct&&(e.TgZ(0,"div",56),e.YNc(1,Dn,12,4,"div",57),e.qZA()),2&ct){const Ce=e.oxw(2);e.Q6J("@dataLoaded",Ce.loading?"loading":"loaded")("@onGrid",Ce.layout==Ce.Layout.GRID)("ngClass",Ce.isWithinDialog()?"ms-2 me-2":""),e.xp6(1),e.Q6J("ngForOf",null==Ce.images?null:Ce.images.content)}}function rn(ct,Ct){if(1&ct&&(e.TgZ(0,"div"),e.YNc(1,bt,24,5,"div",36),e.YNc(2,Ot,2,4,"div",37),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(1),e.Q6J("ngIf",Ce.layout===Ce.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",Ce.layout===Ce.Layout.GRID)}}function vn(ct,Ct){if(1&ct&&e._UZ(0,"app-pagination",73),2&ct){const Ce=e.oxw();e.Q6J("page",Ce.images)}}function ei(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",83)(1,"button",16),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw(2);return e.KtG(ae.useSelectedFiles())}),e.TgZ(2,"span"),e.SDv(3,84),e.qZA()(),e.TgZ(4,"button",18),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw(2);return e.KtG(ae.clearSelection())}),e.TgZ(5,"span"),e.SDv(6,85),e.qZA()()()}}function Wn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",74)(1,"div",75),e.YNc(2,ei,7,0,"div",76),e.TgZ(3,"div",77)(4,"nav",78)(5,"ul",79)(6,"li",80)(7,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onPreviousClick())}),e.SDv(8,81),e.qZA()(),e.TgZ(9,"li",80)(10,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onNextClick())}),e.SDv(11,82),e.qZA()()()()()()()}if(2&ct){const Ce=e.oxw();e.xp6(2),e.Q6J("ngIf",Ce.isAnySelected()),e.xp6(5),e.Gre("page-link ",Ce.images.first?"disabled":"",""),e.xp6(3),e.Gre("page-link ",Ce.images.last?"disabled":"","")}}let Ve=(()=>{class ct extends Jt.R{componentName(){return"FileListComponent"}constructor(Ce,J,ae,Oe,ot,Se,Ft,lt,Bt){super(Ce,J,ae,ot),this.authService=Oe,this.activatedRoute=Se,this.fileService=Ft,this.notifier=lt,this.dialogData=Bt,this.config=I,this.images=w.H,this.selectedFiles=new Map,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe,this.TextUtility=un.g,Oe.isAdmin()&&(this.config.searchEndpoint=D.s.FILES.FILE_ENDPOINT_ADMIN,this.config.imageEndpoint=D.s.FILES.IMAGE_ENDPOINT_ADMIN),this.fileRequisitionDef=Bt.fileRequisitionDef}isAdmin(){return this.authService.isAdmin()}isWithinDialog(){return null!=this.fileRequisitionDef}initialize(){this.isWithinDialog()?(this.filterData=Z.M9,this.fetchWith(this.filterData)):this.activatedRoute.queryParams.subscribe(Ce=>{this.filterData=(0,Z.OP)(Ce,12),this.fetchWith(this.filterData)})}onFilterClick(Ce){this.filterData=Ce,this.fetchWith(this.filterData)}onNextClick(){this.filterData={...this.filterData,page:this.filterData.page+1},this.fetchWith(this.filterData)}onPreviousClick(){this.filterData={...this.filterData,page:this.filterData.page-1},this.fetchWith(this.filterData)}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Files",link:null,active:!0}]}fetchWith(Ce){this.fetchImages({username:Ce.username,from_date:Ce.fromDate,to_date:Ce.toDate,page:Ce.page,size:Ce.size})}fetchImages(Ce){this.loading=!0;const J=this.componentKey(ee.Z.FILES.SEARCH_IMAGES(Ce));this.fileService.search(J,this.config.imageEndpoint,Ce),this.subscribe(J,null,(ae,Oe)=>{this.images=Oe.data,this.loading=!1}),this.subscribe(this.getErrorKey(J),null,(ae,Oe)=>{this.notifier.error("Error",Oe.data.error.message)})}onDeleted(Ce){Ce&&(this.notifier.success("Success","File is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:S.create,update:Ce=>S.update(Ce),params:{}}}getUpsertComponent(){return yt}isSelected(Ce){return 1==this.selectedFiles.get(Ce)}useSelectedFiles(){let Ce=Array.from(this.selectedFiles.entries()).filter(([J,ae])=>ae).map(([J,ae])=>J);this.clearSelection(),this.onCompleted.emit(Ce)}clearSelection(){this.selectedFiles=new Map}isAnySelected(){return Array.from(this.selectedFiles.values()).some(Ce=>Ce)}toggleFileSelection(Ce){this.fileRequisitionDef.multiSelect||this.selectedFiles.clear(),this.selectedFiles.set(Ce,!this.isSelected(Ce))}onCloseClicked(){this.clearSelection(),this.onCanceled.emit()}static#e=this.\u0275fac=function(J){return new(J||ct)(e.Y36(te.Y),e.Y36(oe.F0),e.Y36(ce.z),e.Y36(tn.e),e.Y36(wn.x),e.Y36(oe.gz),e.Y36(_e.I),e.Y36(Re.l),e.Y36(n.WI))};static#t=this.\u0275cmp=e.Xpm({type:ct,selectors:[["app-file-list"]],inputs:{fileRequisitionDef:"fileRequisitionDef"},outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[e.qOj],decls:13,vars:9,consts:function(){let Ce,J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An,jn,ai,di,oi;return Ce="\u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",J="\u09B8\u09BF\u09B2\u09C7\u0995\u09B6\u09A8 \u09AE\u09C1\u099B\u09C1\u09A8",ae="\u0986\u09AA\u09A8\u09BE\u09B0 \u09A4\u09A5\u09CD\u09AF \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09BE \u09B9\u099A\u09CD\u099B\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09AA\u09C7\u0995\u09CD\u09B7\u09BE \u0995\u09B0\u09C1\u09A8..",Oe="\u0995\u09CB\u09A8 \u0986\u0987\u099F\u09C7\u09AE \u09A8\u09C7\u0987",ot="\u0986\u09AE\u09BE\u09B0 \u09A4\u09C8\u09B0\u09BF\u0995\u09C3\u09A4 \u09AB\u09BE\u0987\u09B2\u09B8\u09AE\u09C2\u09B9",Se="Id",Ft="\u09B6\u09BF\u09B0\u09CB\u09A8\u09BE\u09AE",lt="\u09AF\u09C1\u0995\u09CD\u09A4 \u09B9\u09DF\u09C7\u099B\u09C7",Bt="\u09B8\u09B0\u09CD\u09AC\u09B6\u09C7\u09B7 \u0986\u09AA\u09A1\u09C7\u099F",Ut="\u0986\u09AA\u09A1\u09C7\u099F",fn="\u09AF\u09C1\u0995\u09CD\u09A4 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",gn="\u09AE\u09C1\u099B\u09C7 \u09AB\u09C7\u09B2\u09C1\u09A8",An="\u0986\u09AA\u09B2\u09CB\u09A1 \u0995\u09B0\u09C7\u099B\u09C7\u09A8",jn="\u09AA\u09C2\u09B0\u09CD\u09AC\u09AC\u09B0\u09CD\u09A4\u09C0",ai="\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",di="\u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",oi="\u09B8\u09BF\u09B2\u09C7\u0995\u09B6\u09A8 \u09AE\u09C1\u099B\u09C1\u09A8",[[1,"row"],[1,"col-sm-12"],["class","col-12",4,"ngIf"],[1,"card","card-body"],[3,"addBtnText","useParamNavigation","addButtonClick","filterClick"],["class","col-sm-auto mt-3",4,"ngIf"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page",4,"ngIf"],["class","row ms-2 me-2",4,"ngIf"],[1,"col-12"],[1,"flex-fill","float-end","mt-2","me-2"],["href","javascript: void(0);",3,"click"],[1,"bx","bxs-x-circle","text-danger"],[1,"col-sm-auto","mt-3"],["type","button",1,"btn","btn-success","w-md","me-3",3,"click"],Ce,["type","button",1,"btn","btn-warning","w-md",3,"click"],J,[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],ae,[1,"text-uppercase"],Oe,["class","row",4,"ngIf"],["class","row",3,"ngClass",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],ot,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],Se,Ft,lt,Bt,Ut,[4,"ngFor","ngForOf"],fn,gn,[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"row",3,"ngClass"],["class","col-xxl-2 col-xl-3 col-sm-4 col-6",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4","col-6"],[1,"card","text-center",3,"ngClass"],[1,"image-container",3,"click"],["class","card-img-top img-fluid center-cropped-image","alt","Card image cap",3,"src",4,"ngIf"],["class","card-body",3,"click",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-copy","text-success"],["class","flex-fill",4,"ngIf"],["alt","Card image cap",1,"card-img-top","img-fluid","center-cropped-image",3,"src"],[1,"card-body",3,"click"],[1,"font-size-10","text-info"],An,[3,"requestUrl","look","deleteItemEvent"],[3,"page"],[1,"row","ms-2","me-2"],[1,"col-lg-12","grid-margin","stretch-card","mt-3"],["class","col-sm-auto float-start",4,"ngIf"],[1,"float-end"],["aria-label","Page navigation example"],[1,"pagination"],[1,"page-item"],jn,ai,[1,"col-sm-auto","float-start"],di,oi]},template:function(J,ae){1&J&&(e.TgZ(0,"div",0),e._UZ(1,"div",1),e.qZA(),e.TgZ(2,"div",0),e.YNc(3,Rn,4,0,"div",2),e.TgZ(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return ae.onUpsertClick(null)})("filterClick",function(ot){return ae.onFilterClick(ot)}),e.qZA(),e.YNc(7,dt,7,0,"div",5),e.qZA()(),e.YNc(8,at,1,1,"util-progress",6),e.YNc(9,$e,13,2,"div",7),e.YNc(10,rn,3,2,"div",8),e.YNc(11,vn,1,1,"app-pagination",9),e.YNc(12,Wn,12,7,"div",10),e.qZA()),2&J&&(e.xp6(3),e.Q6J("ngIf",ae.isWithinDialog()),e.xp6(3),e.Q6J("addBtnText","Upload")("useParamNavigation",!1),e.xp6(1),e.Q6J("ngIf",ae.isAnySelected()),e.xp6(1),e.Q6J("ngIf",ae.loading),e.xp6(1),e.Q6J("ngIf",ae.images.empty),e.xp6(1),e.Q6J("ngIf",!ae.images.empty),e.xp6(1),e.Q6J("ngIf",!ae.isWithinDialog()),e.xp6(1),e.Q6J("ngIf",ae.isWithinDialog()))},dependencies:[mt.mk,mt.sg,mt.O5,Ge.t,Ln.Q,Yn.D,ti.T,gi.G],styles:[".image-container[_ngcontent-%COMP%]{width:100%;height:200px;overflow:hidden;position:relative}.center-cropped-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;object-position:center}"]})}return ct})()},9230:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>ee});var e=C(1547),l=C(6032),D=C(2495),I=C(5879),S=C(8480),w=C(5462),n=C(9862),Z=C(30);let ee=(()=>{class re extends e.b{constructor(se,te,oe,ce){super(se,te),this.http=oe,this.eventBusService=ce}search(se,te,oe){let ce=l.s.FILES.SEARCH(te,oe);this.http.get(ce).subscribe(_e=>{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.search(se,te,oe)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}fetchSingle(se,te){this.http.get(l.s.FILES.GET(te)).subscribe(oe=>{this.eventBusService.publish(se,oe)},oe=>{this.handleError(oe,ce=>{this.fetchSingle(se,te)},ce=>{this.eventBusService.publish(this.getErrorKey(se),ce)})})}upsert(se,te,oe){let ce=null==oe?l.s.FILES.CREATE():l.s.FILES.UPDATE(oe);(null==oe?this.http.post(ce,te):this.http.patch(ce,te)).subscribe(Re=>{this.eventBusService.publish(se,Re)},Re=>{this.handleError(Re,mt=>{this.upsert(se,te,oe)},mt=>{this.eventBusService.publish(this.getErrorKey(se),mt)})})}upload(se){const te=new FormData;for(let ce=0;ce{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.uploadImages(se,te)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}uploadImagesV2(se,te){const oe=new FormData;for(let _e=0;_e{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.uploadImagesV2(se,te)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}static#e=this.\u0275fac=function(te){return new(te||re)(I.LFG(S.e),I.LFG(w.l),I.LFG(n.eN),I.LFG(Z.Y))};static#t=this.\u0275prov=I.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})()},1715:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>re});var e=C(1547),l=C(2495),D=C(553),I=C(5879);let S=(()=>{class ue extends l.O{constructor(){super()}static#e=this.NOTIFICATIONS={CREATE:()=>D.N.base_url+"/api/v1/notifications",GET:te=>D.N.base_url+"/api/v1/notifications/"+te,UPDATE:te=>D.N.base_url+"/api/v1/notifications/"+te,COUNT_UNREAD:te=>D.N.base_url+"/api/v1/notifications/unread/count"+l.O.toParamString(te),INCREASE_VIEW_COUNT:te=>D.N.base_url+"/api/v1/notifications/view/count/"+te,INCREASE_CLICK_COUNT:te=>D.N.base_url+"/api/v1/notifications/click/count/"+te,MARK_READ:te=>D.N.base_url+"/api/v1/notifications/mark-read"+l.O.toParamString(te),MAKE_STICKY:te=>D.N.base_url+"/api/v1/notifications/make-sticky"+l.O.toParamString(te),RESPOND:te=>D.N.base_url+"/api/v1/notifications/"+te+"/respond",FETCH_MY_NOTIFICATIONS:te=>D.N.base_url+"/api/v1/my-notifications"+l.O.toParamString(te),SEARCH:te=>D.N.base_url+"/api/v1/notifications"+l.O.toParamString(te)};static#t=this.\u0275fac=function(oe){return new(oe||ue)};static#n=this.\u0275prov=I.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})();var w=C(8480),n=C(5462),Z=C(9862),ee=C(30);let re=(()=>{class ue extends e.b{constructor(te,oe,ce,_e){super(te,oe),this.http=ce,this.eventBus=_e}searchNotifications(te,oe){this.http.get(S.NOTIFICATIONS.SEARCH(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.searchNotifications(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}fetchSingle(te,oe){this.http.get(S.NOTIFICATIONS.GET(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.fetchSingle(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}fetchMyNotifications(te,oe){this.http.get(S.NOTIFICATIONS.FETCH_MY_NOTIFICATIONS(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.fetchMyNotifications(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}markRead(te,oe,ce,_e){this.http.post(S.NOTIFICATIONS.MARK_READ({id:ce,read:_e}),null).subscribe(Re=>{this.eventBus.publish(te,Re),this.eventBus.publish(oe,Re)},Re=>{this.handleError(Re,mt=>{this.markRead(te,oe,ce,_e)},mt=>{this.eventBus.publish(this.getErrorKey(te),mt)})})}makeSticky(te,oe,ce){this.http.post(S.NOTIFICATIONS.MAKE_STICKY({id:oe,sticky:ce}),null).subscribe(_e=>{this.eventBus.publish(te,_e)},_e=>{this.handleError(_e,Re=>{this.makeSticky(te,oe,ce)},Re=>{this.eventBus.publish(this.getErrorKey(te),Re)})})}respond(te,oe,ce){this.http.post(S.NOTIFICATIONS.RESPOND(oe),ce).subscribe(_e=>{this.eventBus.publish(te,_e)},_e=>{this.handleError(_e,Re=>{this.respond(te,oe,ce)},Re=>{this.eventBus.publish(this.getErrorKey(te),Re)})})}countUnread(te){this.http.get(S.NOTIFICATIONS.COUNT_UNREAD({})).subscribe(oe=>{this.eventBus.publish(te,oe)},oe=>{this.handleError(oe,ce=>{this.countUnread(te)},ce=>{this.eventBus.publish(this.getErrorKey(te),ce)})})}increaseViewCount(te,oe){this.http.patch(S.NOTIFICATIONS.INCREASE_VIEW_COUNT(oe),{}).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.increaseViewCount(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}increaseClickCount(te,oe){this.http.patch(S.NOTIFICATIONS.INCREASE_CLICK_COUNT(oe),{}).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.increaseClickCount(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}upsert(te,oe,ce){let _e=null==ce?S.NOTIFICATIONS.CREATE():S.NOTIFICATIONS.UPDATE(ce);(null==ce?this.http.post(_e,oe):this.http.patch(_e,oe)).subscribe(mt=>{this.eventBus.publish(te,mt)},mt=>{this.handleError(mt,Ge=>{this.upsert(te,oe,ce)},Ge=>{this.eventBus.publish(this.getErrorKey(te),Ge)})})}static#e=this.\u0275fac=function(oe){return new(oe||ue)(I.LFG(w.e),I.LFG(n.l),I.LFG(Z.eN),I.LFG(ee.Y))};static#t=this.\u0275prov=I.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})()},1989:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{SocialModule:()=>te});var e=C(6814),l=C(1662),D=C(5879);const I=[];let S=(()=>{class oe{static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=D.oAB({type:oe});static#n=this.\u0275inj=D.cJS({imports:[l.Bz.forChild(I),l.Bz]})}return oe})();var w=C(9862),n=C(9890),Z=C(3365),ee=C(7151),re=C(5195),ue=C(6223),se=C(9299);let te=(()=>{class oe{static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=D.oAB({type:oe});static#n=this.\u0275inj=D.cJS({providers:[{provide:w.TP,useClass:n.I,multi:!0}],imports:[e.ez,S,Z.TU,ee.g,re.QW,ue.u5,se.d,ue.UX]})}return oe})()},6075:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>Zt});var e=C(5879),l=C(8637),D=C(6676),S=C(2739),w=C(1855),n=C(8674),Z=C(30),ee=C(1662),re=C(6945),ue=C(8480),se=C(6814),te=C(9277),oe=C(6223),ce=C(9432);function _e(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",4)(1,"button",28),e.NdJ("click",function(){e.CHM(Jt);const wn=e.oxw();return e.KtG(wn.onAddButtonClick())}),e._UZ(2,"i",29),e.TgZ(3,"span"),e.SDv(4,30),e.qZA()()()}}const Re=function(){return{standalone:!0}};function mt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"input",34),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.qZA()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.s9C("placeholder",Jt.placeholder),e.Q6J("ngModel",tn.filterData.extra[Jt.name])("ngModelOptions",e.DdM(3,Re))}}function Ge(yt,un){if(1&yt&&(e.TgZ(0,"option",36),e._uU(1),e.qZA()),2&yt){const Jt=un.$implicit;e.s9C("value",Jt.value),e.xp6(1),e.hij(" ",Jt.label," ")}}function Lt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"select",35),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.TgZ(1,"option",36),e._uU(2),e.qZA(),e.YNc(3,Ge,2,2,"option",37),e.qZA()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.Q6J("name",Jt.name)("ngModel",tn.filterData.extra[Jt.name]),e.xp6(1),e.s9C("value",null),e.xp6(1),e.Oqu(Jt.placeholder),e.xp6(1),e.Q6J("ngForOf",Jt.options)}}const je=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}};function Tt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",6)(1,"input",38),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.qZA()()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.xp6(1),e.s9C("id",Jt.name),e.Q6J("bsConfig",e.DdM(5,je))("name",Jt.name)("ngModel",tn.filterData.extra[Jt.name])("ngModelOptions",e.DdM(6,Re))}}function xt(yt,un){if(1&yt&&(e.TgZ(0,"div",4)(1,"label",5),e._uU(2),e.qZA(),e.YNc(3,mt,1,4,"input",31),e.YNc(4,Lt,4,5,"select",32),e.YNc(5,Tt,2,7,"div",33),e.qZA()),2&yt){const Jt=un.$implicit;e.xp6(2),e.Oqu(Jt.label),e.xp6(1),e.Q6J("ngIf","text"===Jt.type),e.xp6(1),e.Q6J("ngIf","dropdown"===Jt.type),e.xp6(1),e.Q6J("ngIf","date"===Jt.type)}}function St(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",39)(1,"app-user-filter",40),e.NdJ("selected",function(wn){e.CHM(Jt);const Ln=e.oxw();return e.KtG(Ln.filterData.username=wn)}),e.qZA()()}if(2&yt){const Jt=e.oxw();e.xp6(1),e.Q6J("username",Jt.filterData.username)}}let Zt=(()=>{class yt extends l.H{constructor(Jt,tn,wn,Ln,Yn){super(Jt,tn,wn),this.activatedRoute=Ln,this.authService=Yn,this.useParamNavigation=!0,this.showAddBtn=!0,this.addBtnText="Add New",this.addButtonRoute=null,this.extraFields=[],this.filterClick=new e.vpe,this.addButtonClick=new e.vpe,this.filterData=w.M9}componentName(){return"BasicFilterComponent"}ngOnInit(){this.filterData.extra=this.filterFieldsAsParams(),this.useParamNavigation&&this.activatedRoute.queryParams.subscribe(Jt=>{null!=this.filterData.fromDate&&null!=this.filterData.toDate?(this.filterData.fromDate=D(this.filterData.fromDate).toDate(),this.filterData.toDate=D(this.filterData.toDate).toDate()):(this.filterData.fromDate=new Date(0),this.filterData.toDate=new Date);let tn=this.filterFieldsAsParams();this.filterData=(0,w.OP)(Jt,10,tn)})}filterFieldsAsParams(){return Object.fromEntries(this.extraFields.map(Jt=>[Jt.name,Jt.value]))}onFilterClick(){this.useParamNavigation?this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{username:this.filterData.username,query:this.filterData.query,from_date:this.filterData.fromDate.toISOString(),to_date:this.filterData.toDate.toISOString(),page:this.filterData.page,size:this.filterData.size,...(0,n.GN)(this.filterData.extra)},queryParamsHandling:"merge"}).then(Jt=>{}):this.filterClick.emit(this.filterData)}isAdmin(){return this.authService.isAdmin()}onAddButtonClick(){this.addButtonClick.emit()}filterForToday(){this.filterData.fromDate=S.b.getDayStart(new Date),this.filterData.toDate=S.b.getDayEnd(new Date),this.onFilterClick()}filterForYesterday(){this.filterData.fromDate=S.b.getDayStart(S.b.addDays(new Date,-1)),this.filterData.toDate=S.b.getDayEnd(S.b.addDays(new Date,-1)),this.onFilterClick()}filterForLast7Days(){this.filterData.fromDate=S.b.last7DaysRange(new Date).start,this.filterData.toDate=S.b.last7DaysRange(new Date).end,this.onFilterClick()}filterForThisMonth(){this.filterData.fromDate=S.b.monthRange(new Date).start,this.filterData.toDate=S.b.monthRange(new Date).end,this.onFilterClick()}filterForLastMonth(){this.filterData.fromDate=S.b.monthRange(S.b.addMonths(new Date,-1)).start,this.filterData.toDate=S.b.monthRange(S.b.addMonths(new Date,-1)).end,this.onFilterClick()}filterForThisYear(){this.filterData.fromDate=S.b.yearRange(new Date).start,this.filterData.toDate=S.b.yearRange(new Date).end,this.onFilterClick()}filterForLastYear(){this.filterData.fromDate=S.b.yearRange(S.b.addYears(new Date,-1)).start,this.filterData.toDate=S.b.yearRange(S.b.addYears(new Date,-1)).end,this.onFilterClick()}clearFilter(){this.filterData.query=null,this.filterData.username=null,this.filterData.fromDate=S.b.getDayStart(new Date(0)),this.filterData.toDate=S.b.getDayEnd(new Date),this.filterData.page=0,this.filterData.size=10,this.filterData.extra=this.filterFieldsAsParams(),this.onFilterClick()}static#e=this.\u0275fac=function(tn){return new(tn||yt)(e.Y36(Z.Y),e.Y36(ee.F0),e.Y36(re.z),e.Y36(ee.gz),e.Y36(ue.e))};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["app-basic-filter"]],inputs:{useParamNavigation:"useParamNavigation",showAddBtn:"showAddBtn",addBtnText:"addBtnText",addButtonRoute:"addButtonRoute",extraFields:"extraFields"},outputs:{filterClick:"filterClick",addButtonClick:"addButtonClick"},features:[e.qOj],decls:41,vars:15,consts:function(){let Jt,tn,wn,Ln,Yn,ti,gi,Rn,dt,at;return Jt="\u09AB\u09BF\u09B2\u09CD\u099F\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tn="\u0986\u099C",wn="\u0997\u09A4\u0995\u09BE\u09B2",Ln="\u0997\u09A4 \u09ED \u09A6\u09BF\u09A8",Yn="\u098F\u0987 \u09AE\u09BE\u09B8",ti="\u0997\u09A4 \u09AE\u09BE\u09B8",gi="\u098F\u0987 \u09AC\u099B\u09B0",Rn="\u0997\u09A4 \u09AC\u099B\u09B0",dt="\u09AA\u09B0\u09BF\u09B7\u09CD\u0995\u09BE\u09B0",at="\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",[[1,"row","gy-2","gx-3","align-items-center"],["class","col-sm-auto",4,"ngIf"],["class","col-sm-auto",4,"ngFor","ngForOf"],["class","col-sm-2",4,"ngIf"],[1,"col-sm-auto"],["for","fromDate",1,"visually-hidden"],[1,"input-group"],["bsDatepicker","","id","fromDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","maxDate","ngModelChange"],["for","toDate",1,"visually-hidden"],["bsDatepicker","","id","toDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","minDate","ngModelChange"],[1,"col-sm-auto","btn-group"],["type","button",1,"btn","btn-primary",3,"click"],[1,"ms-2","me-2"],Jt,["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split"],[1,"mdi","mdi-chevron-down"],[1,"dropdown-menu"],["href","javascript: void(0);",1,"dropdown-item",3,"click"],tn,wn,Ln,[1,"dropdown-divider"],Yn,ti,gi,Rn,["type","button",1,"btn","btn-outline-primary",3,"click"],dt,["type","button",1,"btn","btn-success","w-md",3,"click"],[1,"mdi","mdi-plus-circle","me-2"],at,["type","text","class","form-control","id","title-input",3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],["id","formrow-inputState","class","form-select",3,"name","ngModel","ngModelChange",4,"ngIf"],["class","input-group",4,"ngIf"],["type","text","id","title-input",1,"form-control",3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["id","formrow-inputState",1,"form-select",3,"name","ngModel","ngModelChange"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["bsDatepicker","",1,"form-control",3,"id","bsConfig","name","ngModel","ngModelOptions","ngModelChange"],[1,"col-sm-2"],[3,"username","selected"]]},template:function(tn,wn){1&tn&&(e.TgZ(0,"form",0),e.YNc(1,_e,5,0,"div",1),e.YNc(2,xt,6,4,"div",2),e.YNc(3,St,2,1,"div",3),e.TgZ(4,"div",4)(5,"label",5),e._uU(6,"From"),e.qZA(),e.TgZ(7,"div",6)(8,"input",7),e.NdJ("ngModelChange",function(Yn){return wn.filterData.fromDate=Yn}),e.qZA()()(),e.TgZ(9,"div",4)(10,"label",8),e._uU(11,"To"),e.qZA(),e.TgZ(12,"div",6)(13,"input",9),e.NdJ("ngModelChange",function(Yn){return wn.filterData.toDate=Yn}),e.qZA()()(),e.TgZ(14,"div",10)(15,"button",11),e.NdJ("click",function(){return wn.onFilterClick()}),e.TgZ(16,"span",12),e.SDv(17,13),e.qZA()(),e.TgZ(18,"button",14),e._UZ(19,"i",15),e.qZA(),e.TgZ(20,"div",16)(21,"a",17),e.NdJ("click",function(){return wn.filterForToday()}),e.SDv(22,18),e.qZA(),e.TgZ(23,"a",17),e.NdJ("click",function(){return wn.filterForYesterday()}),e.SDv(24,19),e.qZA(),e.TgZ(25,"a",17),e.NdJ("click",function(){return wn.filterForLast7Days()}),e.SDv(26,20),e.qZA(),e._UZ(27,"div",21),e.TgZ(28,"a",17),e.NdJ("click",function(){return wn.filterForThisMonth()}),e.SDv(29,22),e.qZA(),e.TgZ(30,"a",17),e.NdJ("click",function(){return wn.filterForLastMonth()}),e.SDv(31,23),e.qZA(),e._UZ(32,"div",21),e.TgZ(33,"a",17),e.NdJ("click",function(){return wn.filterForThisYear()}),e.SDv(34,24),e.qZA(),e.TgZ(35,"a",17),e.NdJ("click",function(){return wn.filterForLastYear()}),e.SDv(36,25),e.qZA()()(),e.TgZ(37,"div",4)(38,"button",26),e.NdJ("click",function(){return wn.clearFilter()}),e.TgZ(39,"span",12),e.SDv(40,27),e.qZA()()()()),2&tn&&(e.xp6(1),e.Q6J("ngIf",wn.showAddBtn),e.xp6(1),e.Q6J("ngForOf",wn.extraFields),e.xp6(1),e.Q6J("ngIf",wn.isAdmin()),e.xp6(5),e.Q6J("bsConfig",e.DdM(11,je))("ngModel",wn.filterData.fromDate)("ngModelOptions",e.DdM(12,Re))("maxDate",wn.filterData.toDate),e.xp6(5),e.Q6J("bsConfig",e.DdM(13,je))("ngModel",wn.filterData.toDate)("ngModelOptions",e.DdM(14,Re))("minDate",wn.filterData.fromDate))},dependencies:[se.sg,se.O5,te.Np,te.Y5,oe._Y,oe.YN,oe.Kr,oe.Fj,oe.EJ,oe.JJ,oe.JL,oe.On,oe.F,ce.R]})}return yt})()},1855:(ft,Ie,C)=>{"use strict";C.d(Ie,{M9:()=>I,OP:()=>n,oZ:()=>w});var e=C(6676),D=C(2739);const I={query:null,fromDate:D.b.getDayStart(new Date(0)),toDate:D.b.getDayEnd(new Date),username:null,page:0,size:10,extra:{}};function w(ee){return{query:ee.query,username:ee.username,from_date:ee.fromDate.toISOString(),to_date:ee.toDate.toISOString(),page:ee.page,size:ee.size,...ee.extra}}function n(ee,re=10,ue={}){let se=ee.query,te=ee.username,oe=new Date(0),ce=new Date;return null!=ee.from_date&&null!=ee.to_date&&(oe=e(ee.from_date).toDate(),ce=e(ee.to_date).toDate()),{query:se,fromDate:oe,toDate:ce,username:null!=te&&te.length>0?te:null,page:ee.page?ee.page:0,size:ee.size?ee.size:re,extra:Z(ue,ee,["query","username","from_date","to_date","page","size"])}}function Z(ee,re,ue){return Object.keys(re).forEach(se=>{if(!ue.includes(se)){const te=re[se];if("string"==typeof te){const oe=Date.parse(te);ee[se]=isNaN(oe)||/^\d+$/.test(te)?"true"===te.toLowerCase()||"false"===te.toLowerCase()?"true"===te.toLowerCase():isNaN(Number(te))?te:Number(te):new Date(oe)}else ee[se]=te}}),ee}},9582:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>oe});var e=C(5879),l=C(8637),D=C(30),I=C(1662),S=C(6945),w=C(5462),n=C(1547),Z=C(8480),ee=C(9862);let re=(()=>{class ce extends n.b{constructor(Re,mt,Ge,Lt){super(Re,mt),this.http=Ge,this.eventBus=Lt}deleteItem(Re,mt){this.http.delete(mt).subscribe(Ge=>{this.eventBus.publish(Re,Ge)},Ge=>{this.handleError(Ge,Lt=>{this.deleteItem(Re,mt)},Lt=>{this.eventBus.publish(this.getErrorKey(Re),Lt)})})}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.LFG(Z.e),e.LFG(w.l),e.LFG(ee.eN),e.LFG(D.Y))};static#t=this.\u0275prov=e.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();var ue=C(6814);function se(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"a",2),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw();return e.KtG(Ge.deleteItem())}),e._UZ(1,"i",3),e.qZA()}}function te(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"a",4),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw();return e.KtG(Ge.deleteItem())}),e._UZ(1,"i",5),e.qZA()}}let oe=(()=>{class ce extends l.H{componentName(){return"DeleteComponent"}constructor(Re,mt,Ge,Lt,je){super(Re,mt,Ge),this.notifier=Lt,this.deleteService=je,this.deleteItemEvent=new e.vpe,this.look="fa"}ngOnInit(){}deleteItem(){if(!confirm("Are you sure to continue?"))return;let mt=this.componentKey(this.requestUrl);this.deleteService.deleteItem(mt,this.requestUrl),this.subscribe(mt,null,(Ge,Lt)=>{this.deleteItemEvent.emit(!0)}),this.subscribe(this.getErrorKey(mt),null,(Ge,Lt)=>{this.notifier.error("Error!",Lt.data.error.message),this.deleteItemEvent.emit(!1)})}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(D.Y),e.Y36(I.F0),e.Y36(S.z),e.Y36(w.l),e.Y36(re))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["app-delete"]],inputs:{requestUrl:"requestUrl",look:"look"},outputs:{deleteItemEvent:"deleteItemEvent"},features:[e.qOj],decls:2,vars:2,consts:[["class","btn btn-outline-danger btn-sm","title","Delete",3,"click",4,"ngIf"],["href","javascript: void(0);",3,"click",4,"ngIf"],["title","Delete",1,"btn","btn-outline-danger","btn-sm",3,"click"],[1,"fas","fa-trash"],["href","javascript: void(0);",3,"click"],["title","Delete",1,"bx","bx-trash","text-danger"]],template:function(mt,Ge){1&mt&&(e.YNc(0,se,2,0,"a",0),e.YNc(1,te,2,0,"a",1)),2&mt&&(e.Q6J("ngIf","fa"==Ge.look),e.xp6(1),e.Q6J("ngIf","bx"==Ge.look))},dependencies:[ue.O5]})}return ce})()},1836:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q:()=>_e});var e=C(5879),l=C(6542),D=C(8637),I=C(30),S=C(1662),w=C(6945),n=C(6814);function Z(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-4))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-4)}}function ee(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-3))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-3)}}function re(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-2))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-2)}}function ue(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-1))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-1)}}function se(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+1))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+1)}}function te(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+2))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+2)}}function oe(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+3))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+3)}}function ce(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+4))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+4)}}let _e=(()=>{class Re extends D.H{componentName(){return"PaginationComponent"}constructor(Ge,Lt,je,Tt){super(Ge,Lt,je),this.activatedRoute=Tt,this.page=l.H,this.pageNumber=0,this.pageSize=10,this.onPageChanged=new e.vpe}ngOnInit(){this.activatedRoute.queryParams.subscribe(Ge=>{let je=Ge.size;this.pageNumber=parseInt(Ge.page??this.page.number),this.pageSize=parseInt(je??this.page.size),this.onPageChanged.emit(Ge)})}processParams(Ge){let Lt={};for(let je of Object.entries(Ge))Lt[je[0]]=je[1];return Lt}onPageSelected(Ge){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:Ge,size:this.pageSize},queryParamsHandling:"merge"}).then(Lt=>{})}onNextClick(){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:this.pageNumber+1,size:this.pageSize},queryParamsHandling:"merge"}).then(Ge=>{})}onPreviousClick(){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:this.pageNumber-1,size:this.pageSize},queryParamsHandling:"merge"}).then(Ge=>{})}static#e=this.\u0275fac=function(Lt){return new(Lt||Re)(e.Y36(I.Y),e.Y36(S.F0),e.Y36(w.z),e.Y36(S.gz))};static#t=this.\u0275cmp=e.Xpm({type:Re,selectors:[["app-pagination"]],inputs:{page:"page"},outputs:{onPageChanged:"onPageChanged"},features:[e.qOj],decls:30,vars:15,consts:function(){let Ge,Lt;return Ge="\u09AA\u09C2\u09B0\u09CD\u09AC\u09AC\u09B0\u09CD\u09A4\u09C0",Lt="\u09AA\u09B0\u09AC\u09B0\u09CD\u09A4\u09C0",[[1,"row"],[1,"col-lg-12","grid-margin","stretch-card"],[1,"float-end"],["aria-label","Page navigation example"],[1,"pagination"],[1,"page-item"],["href","javascript: void(0);",3,"click"],Ge,["href","javascript: void(0);","class","page-link",3,"click",4,"ngIf"],["href","javascript: void(0);",1,"page-link","active",3,"click"],Lt,["href","javascript: void(0);",1,"page-link",3,"click"]]},template:function(Lt,je){1&Lt&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"nav",3)(4,"ul",4)(5,"li",5)(6,"a",6),e.NdJ("click",function(){return je.onPreviousClick()}),e.SDv(7,7),e.qZA()(),e.TgZ(8,"li",5),e.YNc(9,Z,2,1,"a",8),e.qZA(),e.TgZ(10,"li",5),e.YNc(11,ee,2,1,"a",8),e.qZA(),e.TgZ(12,"li",5),e.YNc(13,re,2,1,"a",8),e.qZA(),e.TgZ(14,"li",5),e.YNc(15,ue,2,1,"a",8),e.qZA(),e.TgZ(16,"li",5)(17,"a",9),e.NdJ("click",function(){return je.onPageSelected(je.page.number)}),e._uU(18),e.qZA()(),e.TgZ(19,"li",5),e.YNc(20,se,2,1,"a",8),e.qZA(),e.TgZ(21,"li",5),e.YNc(22,te,2,1,"a",8),e.qZA(),e.TgZ(23,"li",5),e.YNc(24,oe,2,1,"a",8),e.qZA(),e.TgZ(25,"li",5),e.YNc(26,ce,2,1,"a",8),e.qZA(),e.TgZ(27,"li",5)(28,"a",6),e.NdJ("click",function(){return je.onNextClick()}),e.SDv(29,10),e.qZA()()()()()()()),2&Lt&&(e.xp6(6),e.Gre("page-link ",je.page.first?"disabled":"",""),e.xp6(3),e.Q6J("ngIf",je.page.number>3),e.xp6(2),e.Q6J("ngIf",je.page.number>2),e.xp6(2),e.Q6J("ngIf",je.page.number>1),e.xp6(2),e.Q6J("ngIf",je.page.number>0),e.xp6(3),e.Oqu(je.page.number),e.xp6(2),e.Q6J("ngIf",je.page.number+1{"use strict";C.d(Ie,{x:()=>D});var e=C(5879),l=C(7700);let D=(()=>{class S{constructor(n){this.dialog=n,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe}openWithConfig(n,Z){const ee=this.dialog.open(n,Z);let re=ee.componentInstance;return re.onCanceled.subscribe(()=>{this.onCanceled.emit(),ee.close()}),re.onCompleted.subscribe(ue=>{this.onCompleted.emit(ue),ee.close()}),ee}open(n,Z){console.log(window.innerWidth,window.innerHeight);let re=function I(){let S=window.innerWidth;return S>=1600?60:S>=1400?50:S>=1200||S>=992?40:S>=768?70:80}(),ue={disableClose:!0,maxHeight:70*window.innerHeight/100+"px",width:window.innerWidth*re/100+"px",data:Z};return this.openWithConfig(n,ue)}static#e=this.\u0275fac=function(Z){return new(Z||S)(e.LFG(l.uw))};static#t=this.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},4736:(ft,Ie,C)=>{"use strict";C.d(Ie,{t:()=>se});var e=C(5879),l=C(6814),D=C(5940),I=C(6007);function S(te,oe){if(1&te&&(e.TgZ(0,"div")(1,"h5",1),e._uU(2),e.qZA()()),2&te){const ce=e.oxw();e.xp6(2),e.Oqu(ce.message)}}function w(te,oe){1&te&&e._UZ(0,"mat-progress-bar",4)}function n(te,oe){if(1&te&&(e.TgZ(0,"div",5),e._UZ(1,"mat-spinner",6),e.qZA()),2&te){const ce=e.oxw(2);e.vpz("padding: ",ce.padding,"px 0 ",ce.padding,"px 0;"),e.xp6(1),e.Q6J("diameter",ce.size)}}function Z(te,oe){if(1&te&&(e.TgZ(0,"div"),e.YNc(1,w,1,0,"mat-progress-bar",2),e.YNc(2,n,2,5,"div",3),e.qZA()),2&te){const ce=e.oxw();e.xp6(1),e.Q6J("ngIf",ce.bar),e.xp6(1),e.Q6J("ngIf",!ce.bar)}}function ee(te,oe){if(1&te&&e._UZ(0,"mat-progress-bar",8),2&te){const ce=e.oxw(2);e.Q6J("value",ce.determinateValue)}}function re(te,oe){if(1&te&&(e.TgZ(0,"div",5),e._UZ(1,"mat-spinner",9),e.qZA()),2&te){const ce=e.oxw(2);e.vpz("padding: ",ce.padding,"px 0 ",ce.padding,"px 0;"),e.xp6(1),e.Q6J("diameter",ce.size)("value",ce.determinateValue)}}function ue(te,oe){if(1&te&&(e.TgZ(0,"div"),e.YNc(1,ee,1,1,"mat-progress-bar",7),e.YNc(2,re,2,6,"div",3),e.qZA()),2&te){const ce=e.oxw();e.xp6(1),e.Q6J("ngIf",ce.bar),e.xp6(1),e.Q6J("ngIf",!ce.bar)}}let se=(()=>{class te{constructor(){this.size=50,this.padding=20,this.bar=!1,this.determinate=!1,this.determinateValue=0,this.message=null}ngOnInit(){}static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275cmp=e.Xpm({type:te,selectors:[["util-progress"]],inputs:{size:"size",padding:"padding",bar:"bar",determinate:"determinate",determinateValue:"determinateValue",message:"message"},decls:3,vars:3,consts:[[4,"ngIf"],[1,"loading-msg"],["mode","indeterminate",4,"ngIf"],["class","progress-section",3,"style",4,"ngIf"],["mode","indeterminate"],[1,"progress-section"],["mode","indeterminate",3,"diameter"],["mode","determinate",3,"value",4,"ngIf"],["mode","determinate",3,"value"],["mode","determinate",3,"diameter","value"]],template:function(_e,Re){1&_e&&(e.YNc(0,S,3,1,"div",0),e.YNc(1,Z,3,2,"div",0),e.YNc(2,ue,3,2,"div",0)),2&_e&&(e.Q6J("ngIf",null!=Re.message),e.xp6(1),e.Q6J("ngIf",!Re.determinate),e.xp6(1),e.Q6J("ngIf",Re.determinate))},dependencies:[l.O5,D.Ou,I.pW],styles:[".progress-section[_ngcontent-%COMP%]{display:grid;place-items:center}.loading-msg[_ngcontent-%COMP%]{font-size:1em;margin-bottom:20px}"]})}return te})()},9432:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>ce});var e=C(5879),l=C(8637),D=C(7259),I=C(8174),S=C(30),w=C(1662),n=C(6945),Z=C(5239),ee=C(6814),re=C(6223),ue=C(4807),se=C(4736);function te(_e,Re){1&_e&&e._UZ(0,"util-progress",3),2&_e&&e.Q6J("bar",!0)}const oe=function(){return{standalone:!0}};let ce=(()=>{class _e extends l.H{componentName(){return"UserFilterComponent"}constructor(mt,Ge,Lt,je){super(mt,Ge,Lt),this.userService=je,this.users=[],this.username=null,this.selected=new e.vpe}ngOnInit(){this.loading=!1,this.searchUsers({page:0,size:20,q:null,slice:!0})}onUserSelected(mt){this.selected.emit(this.username)}searchUsersForEvent(mt){let Ge=I.g.removeSpecialCharacters(mt.target?.value);Ge.length>2&&this.searchUsers({page:0,size:20,q:Ge,slice:!0})}searchUsers(mt){this.loading=!0;let Ge=this.componentKey(D.Z.USERS.SEARCH_USERS());this.userService.searchUsers(Ge,mt),this.subscribe(Ge,null,(Lt,je)=>{this.users=je.data.content,this.loading=!1})}static#e=this.\u0275fac=function(Ge){return new(Ge||_e)(e.Y36(S.Y),e.Y36(w.F0),e.Y36(n.z),e.Y36(Z.K))};static#t=this.\u0275cmp=e.Xpm({type:_e,selectors:[["app-user-filter"]],inputs:{username:"username"},outputs:{selected:"selected"},features:[e.qOj],decls:4,vars:8,consts:[["for","autoSizingInput",1,"visually-hidden"],[3,"bar",4,"ngIf"],["id","autoSizingInput","bindLabel","label","bindValue","username","placeholder","User",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]],template:function(Ge,Lt){1&Ge&&(e.TgZ(0,"label",0),e._uU(1,"User"),e.qZA(),e.YNc(2,te,1,1,"util-progress",1),e.TgZ(3,"ng-select",2),e.NdJ("keyup",function(Tt){return Lt.searchUsersForEvent(Tt)})("ngModelChange",function(Tt){return Lt.username=Tt})("change",function(Tt){return Lt.onUserSelected(Tt)}),e.qZA()),2&Ge&&(e.xp6(2),e.Q6J("ngIf",Lt.loading),e.xp6(1),e.Q6J("items",Lt.users)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",Lt.username)("ngModelOptions",e.DdM(7,oe)))},dependencies:[ee.O5,re.JJ,re.On,ue.w9,se.t]})}return _e})()},2770:(ft,Ie,C)=>{"use strict";C.d(Ie,{G:()=>I});var e=C(6814),l=C(2739),D=C(5879);let I=(()=>{class S{transform(n,Z=!1){if(null==n)return null;let ee="MMM dd, yyyy hh:mm a";if(!Z)return new e.uU("en-US").transform(n,ee);let re=l.b.getDuration(new Date,new Date(n));return re>432e5?new e.uU("en-US").transform(n,ee):l.b.msToReadableTime(re,!1)}static#e=this.\u0275fac=function(Z){return new(Z||S)};static#t=this.\u0275pipe=D.Yjl({name:"readableDate",type:S,pure:!0})}return S})()},8174:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>e});class e{static copyToClipboard(D){const I=document.createElement("textarea");I.style.position="fixed",I.style.left="0",I.style.top="0",I.style.opacity="0",I.value=D,document.body.appendChild(I),I.focus(),I.select(),document.execCommand("copy"),document.body.removeChild(I)}static findHashtags(D,I){let S=D.split(" ").filter(w=>w.startsWith("#"));return I?S.map(w=>w.replace("#","")):S}static removeSpecialCharacters(D,I=!0){return D.replace(I?/[^a-zA-Z0-9\s]/g:/[^a-zA-Z0-9]/g,"")}static slugify(D){return null==D?"":D.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}static codify(D){return null==D?"":D.toString().toUpperCase().replace(/\s+/g,"_").replace(/[^\w\_]+/g,"").replace(/\_\_+/g,"_").replace(/^_+/,"").replace(/_+$/,"")}static randomString(D){let I="";for(let n=0;n{"use strict";C.d(Ie,{b:()=>e,e:()=>l});class e{static getDuration(I,S){return Math.abs(I.getTime()-S.getTime())}static addDays(I,S){return new Date(I.getTime()+24*S*60*60*1e3)}static addMonths(I,S){return new Date(I.setMonth(I.getMonth()+S))}static addYears(I,S){return new Date(I.setFullYear(I.getFullYear()+S))}static weekRange(I){let S=I.getDay()||7;return 1!==S&&I.setHours(-24*(S-1)),{start:new Date(I.getFullYear(),I.getMonth(),I.getDate()),end:new Date(I.getFullYear(),I.getMonth(),I.getDate()+6)}}static last7DaysRange(I){return{start:this.addDays(I,-7),end:I}}static monthRange(I){return{start:new Date(I.getFullYear(),I.getMonth(),1),end:new Date(I.getFullYear(),I.getMonth()+1,0)}}static yearRange(I){return{start:new Date(I.getFullYear(),0,1),end:new Date(I.getFullYear(),11,31)}}static msToTime(I){let S=Math.floor(I%1e3/100),w=Math.floor(I/1e3%60),n=Math.floor(I/6e4%60),Z=Math.floor(I/36e5%24);return{h:Z<10?"0"+Z:Z+"",m:n<10?"0"+n:n+"",s:w<10?"0"+w:w+"",ms:S+""}}static msToReadableTime(I,S){let w=this.msToTime(I);if("00"===w.h&&"00"===w.m)return"just now";let n="";return"00"!==w.h&&(n=w.h+" h "),n=n+""+w.m+" min",S&&(n=" "+n+" sec"),n+" ago"}static calculateRange(I){switch(I){case"TODAY":{let S=new Date;return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(S)}}case"YESTERDAY":{let S=this.getDayBefore(new Date,1);return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(S)}}case"THIS_WEEK":{let S=this.getDayBefore(new Date,7);return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(new Date)}}case"THIS_MONTH":{let S=this.getFirstAndLastDayOfMonth(new Date);return{fromDate:S.firstDay,toDate:S.lastDay}}case"LAST_MONTH":{let S=new Date;S.setMonth(S.getMonth()-1);let w=this.getFirstAndLastDayOfMonth(S);return{fromDate:w.firstDay,toDate:w.lastDay}}}return null}static getDayBefore(I,S){return new Date(I.getTime()-24*S*60*60*1e3)}static getDayStart(I){return I.setHours(0,0,0,0),I}static getDayEnd(I){return I.setHours(23,59,59,999),I}static getFirstAndLastDayOfMonth(I){const S=new Date(I.getFullYear(),I.getMonth(),1),w=new Date(I.getFullYear(),I.getMonth()+1,0);return{firstDay:this.getDayStart(S),lastDay:this.getDayEnd(w)}}static dateFromMonth(I){const S=l.map(n=>n.value).findIndex(n=>n.toLowerCase()===I.toLowerCase()),w=new Date;return w.setUTCMonth(-1!==S?S:(new Date).getMonth()),w.setUTCDate(1),w.setUTCHours(0,0,0,0),w}}let l=[{title:"January",value:"january"},{title:"February",value:"february"},{title:"March",value:"march"},{title:"April",value:"april"},{title:"May",value:"may"},{title:"June",value:"june"},{title:"July",value:"july"},{title:"August",value:"august"},{title:"September",value:"september"},{title:"October",value:"october"},{title:"November",value:"november"},{title:"December",value:"december"}]},7151:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>re});var e=C(6814),l=C(5940),D=C(6007),I=C(9277),S=C(6223),w=C(4807),n=C(7700),Z=C(9299),ee=C(5879);let re=(()=>{class ue{static#e=this.\u0275fac=function(oe){return new(oe||ue)};static#t=this.\u0275mod=ee.oAB({type:ue});static#n=this.\u0275inj=ee.cJS({providers:[{provide:n.WI,useValue:{}},{provide:n.so,useValue:{}}],imports:[e.ez,l.Cq,D.Cv,I.kn,S.u5,w.A0,S.UX,Z.d]})}return ue})()},8914:(ft,Ie,C)=>{"use strict";C.d(Ie,{$:()=>e});const e=[{id:1,title:"TODAY",code:"TODAY"},{id:2,title:"YESTERDAY",code:"YESTERDAY"},{id:4,title:"THIS WEEK",code:"THIS_WEEK"},{id:4,title:"THIS MONTH",code:"THIS_MONTH"}]},6929:(ft,Ie,C)=>{"use strict";C.d(Ie,{v:()=>S});var e=C(5879),l=C(6814);function D(w,n){if(1&w){const Z=e.EpF();e.TgZ(0,"li",3),e.NdJ("click",function(){const ue=e.CHM(Z).$implicit,se=e.oxw();return e.KtG(se.onMenuItemClick(ue))}),e.TgZ(1,"a"),e._uU(2),e.qZA()()}if(2&w){const Z=n.$implicit;e.xp6(2),e.Oqu(Z.title)}}const I=function(w){return{"product-menu-bar":w}};let S=(()=>{class w{constructor(){this.showMenubar=!1,this.top=0,this.items=[],this.menuItemClick=new e.vpe}ngOnInit(){}onMenuItemClick(Z){this.menuItemClick.emit(Z)}static#e=this.\u0275fac=function(ee){return new(ee||w)};static#t=this.\u0275cmp=e.Xpm({type:w,selectors:[["app-menubox"]],inputs:{showMenubar:"showMenubar",top:"top",items:"items"},outputs:{menuItemClick:"menuItemClick"},decls:4,vars:7,consts:[[3,"ngClass"],[1,"productMenuBox"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(ee,re){1&ee&&(e.TgZ(0,"div",0)(1,"div",1)(2,"ul"),e.YNc(3,D,3,1,"li",2),e.qZA()()()),2&ee&&(e.Q6J("ngClass",e.VKq(5,I,re.showMenubar)),e.xp6(1),e.Jzz("top:",re.top,"px"),e.xp6(2),e.Q6J("ngForOf",re.items))},dependencies:[l.mk,l.sg],styles:['.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:250px;margin-top:10px;padding:0 10px;list-style:none;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return w})()},9029:(ft,Ie,C)=>{"use strict";C.d(Ie,{d:()=>w});var e=C(5879),l=C(7613),D=C(6814);const I=function(n){return{"background-image":n}};function S(n,Z){if(1&n){const ee=e.EpF();e.TgZ(0,"div",1,2),e.NdJ("click",function(){e.CHM(ee);const ue=e.oxw();return e.KtG(ue.onItemClick(ue.product))}),e.TgZ(2,"div",3)(3,"p",4),e._UZ(4,"i",5),e._uU(5),e.qZA(),e.TgZ(6,"h4")(7,"a",6),e.NdJ("click",function(){e.CHM(ee);const ue=e.oxw();return e.KtG(ue.onItemClick(ue.product))}),e.TgZ(8,"span",7),e._uU(9),e.qZA()()()()()}if(2&n){const ee=e.oxw();e.Q6J("ngStyle",e.VKq(3,I,"url("+ee.product.image+")")),e.xp6(5),e.hij(" ",ee.product.average_rating.toFixed(1),"/10 This week"),e.xp6(4),e.Oqu(ee.product.product_name)}}let w=(()=>{class n{constructor(){this.product=null,this.onClick=new e.vpe}ngOnInit(){}takeOnly(ee){return ee.length<25?ee:l.m.takeOnly(ee,25)+".."}onItemClick(ee){this.onClick.emit(ee)}static#e=this.\u0275fac=function(re){return new(re||n)};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["app-single-product-item"]],inputs:{product:"product"},outputs:{onClick:"onClick"},decls:1,vars:1,consts:[["class","single-product-area item",3,"ngStyle","click",4,"ngIf"],[1,"single-product-area","item",3,"ngStyle","click"],["el",""],[1,"product-content","text-light","align-items-end"],[2,"color","ghostwhite","text-shadow","1px 1px black"],[1,"flaticon-star-1",2,"font-size","1em"],[3,"click"],[1,"excerpt"]],template:function(re,ue){1&re&&e.YNc(0,S,10,5,"div",0),2&re&&e.Q6J("ngIf",null!=ue.product)},dependencies:[D.O5,D.PC],styles:[".single-product-area[_ngcontent-%COMP%]{object-fit:cover;background-size:cover;display:flex;justify-content:flex-end;flex-direction:column;border-radius:0}.product-content[_ngcontent-%COMP%]{border-radius:0;height:90px;background-color:transparent;background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}@media screen and (max-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:160px}}@media screen and (min-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:165px}}"]})}return n})()},5159:(ft,Ie,C)=>{"use strict";C.d(Ie,{q:()=>oe});var e=C(5879),l=C(8637),D=C(30),I=C(1662),S=C(6945),w=C(6814),n=C(8468);function Z(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",7),e.TgZ(2,"span",8),e._uU(3),e.qZA()()}if(2&ce){const Re=e.oxw(2).$implicit,mt=e.oxw();e.xp6(1),e.s9C("src",Re.img,e.LSH),e.xp6(2),e.Oqu(mt.firstWord(Re.title))}}function ee(ce,_e){1&ce&&e._UZ(0,"img",12),2&ce&&e.s9C("src",_e.$implicit,e.LSH)}function re(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",7),e.TgZ(2,"span",8),e._uU(3),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,ee,1,1,"img",11),e.qZA()()}if(2&ce){const Re=e.oxw(2).$implicit,mt=e.oxw();e.xp6(1),e.s9C("src",Re.img,e.LSH),e.xp6(2),e.Oqu(mt.firstWord(Re.title)),e.xp6(2),e.Q6J("ngForOf",Re.badges)}}function ue(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",12),e.qZA()}if(2&ce){const Re=e.oxw(2).$implicit;e.xp6(1),e.s9C("src",Re.img,e.LSH)}}function se(ce,_e){if(1&ce&&(e.YNc(0,Z,4,2,"div",3),e.YNc(1,re,6,3,"div",4),e.YNc(2,ue,2,1,"div",5)),2&ce){const Re=e.oxw(2);e.Q6J("ngIf","reviewers"===Re.design),e.xp6(1),e.Q6J("ngIf","achievements"===Re.design),e.xp6(1),e.Q6J("ngIf","youtube-reviews"===Re.design)}}function te(ce,_e){1&ce&&e.YNc(0,se,3,3,"ng-template",2)}let oe=(()=>{class ce extends l.H{constructor(Re,mt,Ge){super(Re,mt,Ge),this.carouselOptions={loop:!0,items:4,smartSpeed:500,autoplay:!1,autoWidth:!0,margin:10,nav:!1,dots:!1,responsive:{0:{items:5},480:{items:5},600:{items:7},800:{items:8},1200:{items:10}}},this.items=[],this.design="reviewers",this.itemClick=new e.vpe}componentName(){return"SmallCarouselComponent"}ngOnInit(){}onItemClick(Re){this.itemClick.emit(Re)}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(D.Y),e.Y36(I.F0),e.Y36(S.z))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["app-small-carousel"]],inputs:{items:"items",design:"design"},outputs:{itemClick:"itemClick"},features:[e.qOj],decls:2,vars:2,consts:[[3,"options"],[4,"ngFor","ngForOf"],["carouselSlide",""],["class","item single-reviewers-area text-center small-carousel",3,"click",4,"ngIf"],["class","item single-reviewers-area text-center small-carousel mb-5",3,"click",4,"ngIf"],["class","item youtube-reviews single-review-area text-center",3,"click",4,"ngIf"],[1,"item","single-reviewers-area","text-center","small-carousel",3,"click"],["alt","",1,"carousel-img",3,"src"],[1,"user-name"],[1,"item","single-reviewers-area","text-center","small-carousel","mb-5",3,"click"],[1,"acchievement-rating","my-2"],["alt","",3,"src",4,"ngFor","ngForOf"],["alt","",3,"src"],[1,"item","youtube-reviews","single-review-area","text-center",3,"click"]],template:function(mt,Ge){1&mt&&(e.TgZ(0,"owl-carousel-o",0),e.YNc(1,te,1,0,null,1),e.qZA()),2&mt&&(e.Q6J("options",Ge.carouselOptions),e.xp6(1),e.Q6J("ngForOf",Ge.items))},dependencies:[w.sg,w.O5,n.Fy,n.Mp],styles:[".carousel-img[_ngcontent-%COMP%]{height:100%}.acchievement-rating[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:25px}.acchievement-rating[_ngcontent-%COMP%]{display:flex;justify-content:center}.small-carousel[_ngcontent-%COMP%]{margin-bottom:30px}.user-name[_ngcontent-%COMP%]{display:block;max-width:64px;justify-content:center}"]})}return ce})()},2177:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>$e});var e=C(8637),l=C(7259),D=C(8914),I=C(2739),S=C(553),w=C(5879),n=C(8480),Z=C(5462),ee=C(30),re=C(1662),ue=C(6945),se=C(1081),te=C(9491),oe=C(2951),ce=C(6593),_e=C(6814),Re=C(4736),mt=C(5159),Ge=C(2498),Lt=C(7613),je=C(8468),Tt=C(9029);function xt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-single-product-item",3),w.NdJ("onClick",function(){w.CHM(he);const rt=w.oxw().$implicit,bt=w.oxw();return w.KtG(bt.onItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw().$implicit;w.Q6J("product",he)}}function St(me,tt){1&me&&w.YNc(0,xt,1,1,"ng-template",2)}let Zt=(()=>{class me{constructor(){this.carouselOptions={loop:!1,items:6,smartSpeed:500,autoplay:!1,autoWidth:!1,margin:0,nav:!1,dots:!1,stagePadding:10,responsive:{0:{items:2,stagePadding:10},480:{items:2,stagePadding:20},576:{items:3},600:{items:3},800:{items:5},1200:{items:6}}},this.items=[],this.itemClick=new w.vpe}ngOnInit(){}onItemClick(he){this.itemClick.emit(he)}takeOnly(he){return he.length<25?he:Lt.m.takeOnly(he,25)+".."}static#e=this.\u0275fac=function(Ze){return new(Ze||me)};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-product-carousel"]],inputs:{items:"items"},outputs:{itemClick:"itemClick"},decls:2,vars:2,consts:[[3,"options"],[4,"ngFor","ngForOf"],["carouselSlide",""],[3,"product","onClick"]],template:function(Ze,rt){1&Ze&&(w.TgZ(0,"owl-carousel-o",0),w.YNc(1,St,1,0,null,1),w.qZA()),2&Ze&&(w.Q6J("options",rt.carouselOptions),w.xp6(1),w.Q6J("ngForOf",rt.items))},dependencies:[_e.sg,je.Fy,je.Mp,Tt.d],styles:[".single-product-area[_ngcontent-%COMP%]{object-fit:cover;background-size:cover;display:flex;justify-content:flex-end;flex-direction:column;border-radius:0}.product-content[_ngcontent-%COMP%]{min-height:108px;border-radius:0;background-color:transparent;background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}@media screen and (max-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:160px}}@media screen and (min-width: 400px){.single-product-area[_ngcontent-%COMP%]{min-height:300px}}"]})}return me})();function yt(me,tt){1&me&&w._UZ(0,"util-progress")}function un(me,tt){if(1&me&&(w.TgZ(0,"div"),w._uU(1," No Items for period: "),w._UZ(2,"br"),w._uU(3),w.qZA()),2&me){const he=w.oxw();w.xp6(3),w.hij("",he.period," ")}}function Jt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-product-carousel",12),w.NdJ("itemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onProductItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("items",he.products)}}const tn=function(me){return{"product-menu-bar":me}};let wn=(()=>{class me extends e.H{constructor(he,Ze,rt,bt,Nt,Qt){super(rt,bt,Nt),this.authService=he,this.notifier=Ze,this.productService=Qt,this.title="",this.attrId=null,this.productsLoaded=new w.vpe,this.products=[],this.period="THIS MONTH",this.showMenubar=!1}componentName(){return"ProductListComponent"}ngOnInit(){let he=I.b.calculateRange("THIS_MONTH");this.fetchTopProducts({attribute_id:this.attrId,from_date:he?.fromDate,to_date:he?.toDate})}onProductItemClick(he){this.navigate("products/"+he.product_id+"/"+he.product_slug,Ze=>{console.log("Product Details: "+he.product_slug)})}onMenuClick(he){this.showMenubar=!this.showMenubar}onMenuItemClick(he){this.showMenubar=!1,this.period=he.replace("_"," ");let Ze=I.b.calculateRange(he);this.fetchTopProducts({attribute_id:this.attrId,from_date:Ze?.fromDate,to_date:Ze?.toDate})}fetchTopProducts(he){this.loading=!0;const Ze=this.componentKey(l.Z.PRODUCTS.PRODUCTS_LOADED(this.attrId));this.productService.fetchTopProducts(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.products=bt.data,this.loading=!1,this.productsLoaded.emit(!0)}),this.subscribe(this.getErrorKey(Ze),null,(rt,bt)=>{this.notifier.log(bt.data)})}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(re.F0),w.Y36(ue.z),w.Y36(Ge.M))};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-product-list"]],inputs:{title:"title",attrId:"attrId"},outputs:{productsLoaded:"productsLoaded"},features:[w.qOj],decls:29,vars:8,consts:[[1,"product-section","pt-4","mb-1"],[1,"container"],[1,"row","align-items-center","mb-3"],[1,"col-7"],[1,"col-5"],[1,"product-header-right","d-flex","justify-content-between"],[3,"click"],[3,"ngClass"],["src","assets/img/FunnelSimple.png","alt","",3,"click"],[1,"productMenuBox"],[4,"ngIf"],[3,"items","itemClick",4,"ngIf"],[3,"items","itemClick"]],template:function(Ze,rt){1&Ze&&(w.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5"),w._uU(5),w.qZA()(),w.TgZ(6,"div",4)(7,"div",5)(8,"h5",6),w.NdJ("click",function(Nt){return rt.onMenuClick(Nt)}),w._uU(9),w.qZA(),w.TgZ(10,"div",7)(11,"img",8),w.NdJ("click",function(Nt){return rt.onMenuClick(Nt)}),w.qZA(),w.TgZ(12,"div",9)(13,"ul")(14,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("TODAY")}),w.TgZ(15,"a"),w._uU(16,"Today"),w.qZA()(),w.TgZ(17,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("THIS_WEEK")}),w.TgZ(18,"a"),w._uU(19,"This Week"),w.qZA()(),w.TgZ(20,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("THIS_MONTH")}),w.TgZ(21,"a"),w._uU(22,"This Month"),w.qZA()(),w.TgZ(23,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("LAST_MONTH")}),w.TgZ(24,"a"),w._uU(25,"Last Month"),w.qZA()()()()()()()(),w.YNc(26,yt,1,0,"util-progress",10),w.YNc(27,un,4,1,"div",10),w.YNc(28,Jt,1,1,"app-product-carousel",11),w.qZA()()),2&Ze&&(w.xp6(5),w.hij("Top items for ",rt.title,""),w.xp6(4),w.Oqu(rt.period),w.xp6(1),w.Q6J("ngClass",w.VKq(6,tn,rt.showMenubar)),w.xp6(16),w.Q6J("ngIf",rt.loading),w.xp6(1),w.Q6J("ngIf",!rt.loading&&0===rt.products.length),w.xp6(1),w.Q6J("ngIf",!rt.loading))},dependencies:[_e.mk,_e.O5,Re.t,Zt],styles:['.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:250px;margin-top:10px;padding:0 10px;list-style:none;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7}.product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return me})();var Ln=C(6929);function Yn(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}function ti(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-menubox",22),w.NdJ("menuItemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onReviewersMenuItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("showMenubar",he.showReviewersMenu)("items",he.getMenuItems())}}function gi(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}const Rn=function(me){return{active:me}};function dt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"li",23),w.NdJ("click",function(){const bt=w.CHM(he).$implicit,Nt=w.oxw();return w.KtG(Nt.loadAttributes([bt]))}),w.TgZ(1,"a",24),w._uU(2),w.qZA()()}if(2&me){const he=tt.$implicit,Ze=w.oxw();w.Q6J("ngClass",w.VKq(2,Rn,Ze.selectedInterestItem===he.id)),w.xp6(2),w.Oqu(he.name)}}function at(me,tt){if(1&me&&w._UZ(0,"app-product-list",25),2&me){const he=tt.$implicit;w.Q6J("title",he.name)("attrId",he.id)}}function Be(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-menubox",22),w.NdJ("menuItemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onAchievementsMenuItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("showMenubar",he.showAchievementsMenu)("items",he.getMenuItems())}}function Ee(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}let $e=(()=>{class me extends e.H{constructor(he,Ze,rt,bt,Nt,Qt,nn,Dn,Ot,rn){super(rt,bt,Nt),this.authService=he,this.notifier=Ze,this.categoryService=Qt,this.reviewService=nn,this.leaderboardService=Dn,this.seoTitle=Ot,this.seoMeta=rn,this.interestsAttrLoading=!0,this.recentReviews=null,this.recentReviewers=[],this.reviewersLoading=!0,this.reviewersPeriod="THIS WEEK",this.showReviewersMenu=!1,this.recentAchievements=null,this.achievements=[],this.achievementsLoading=!0,this.achievementsPeriod="THIS WEEK",this.showAchievementsMenu=!1,this.userInterests=[],this.attributes=[],this.selectedInterestItem=null}componentName(){return"HomeComponent"}ngOnInit(){this.router.navigate(["/admin/dashboard"]).then(Ze=>{}),this.fetchInterests();let he=I.b.calculateRange(this.reviewersPeriod.replace(" ","_"));this.fetchRecentReviews({page:0,from_date:he?.fromDate,to_date:he?.toDate,slice:!0}),this.fetchAchievements({from_date:he?.fromDate,to_date:he?.toDate}),this.resolveSeo()}fetchRecentReviews(he){this.reviewersLoading=!0;let Ze=this.componentKey(l.Z.REVIEWS.FETCH_RECENT_REVIEWS());this.reviewService.fetchRecentReviews(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.recentReviews=bt.data,this.recentReviewers=me.mapToCarouselItems(bt.data),this.reviewersLoading=!1})}fetchAchievements(he){this.achievementsLoading=!0;let Ze=this.componentKey(l.Z.LEADERBOARDS.FETCH_RECENT_ACHIEVEMENTS());this.leaderboardService.fetchRecentAchievements(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.recentAchievements=bt.data,this.achievements=me.mapAchievementsToCarouselItems(bt.data),this.achievementsLoading=!1})}onRecentReviewerItemClick(he){let Ze=this.recentReviews?.content.filter(bt=>bt.id===he.id);if(null==Ze||0===Ze.length)return;let rt=Ze[0];this.navigate("/reviews/"+rt?.product_slug+"/"+rt?.slug+"/"+rt?.post_id,bt=>{})}onRecentAchievementsItemClick(he){let Ze=this.recentAchievements?.content.filter(bt=>bt.id===he.id);null!=Ze&&0!==Ze.length&&this.navigate("/u/"+Ze[0].achieved_by_username,bt=>{})}fetchInterests(){if(!this.authService.isAuthenticated())return void this.fetchRootCategories();let he=this.componentKey(l.Z.CATEGORIES.FETCH_INTERESTS());this.categoryService.fetchInterests(he),this.subscribe(he,null,(Ze,rt)=>{this.userInterests=rt.data.map(Nt=>Nt.category),this.loadAttributes(this.userInterests)})}fetchRootCategories(){let he=this.componentKey(l.Z.CATEGORIES.LOADED_ROOT_CATEGORIES());this.categoryService.loadCategories(he,null,null),this.subscribe(he,null,(Ze,rt)=>{this.userInterests=rt.data.content,this.loadAttributes(this.userInterests)})}loadAttributes(he){this.selectedInterestItem=1==he.length?he[0].id:null;let Ze=he.map(bt=>bt.id),rt=this.componentKey(l.Z.CATEGORIES.LOADED_CATEGORY_ATTRIBUTES(Ze));this.categoryService.loadAttributes(rt,Ze),this.subscribe(rt,null,(bt,Nt)=>{this.attributes=Nt.data,this.interestsAttrLoading=!1}),this.notifier.log("Initiate attributes for interests (unimplemented)")}onSearchBoxClicked(he){this.navigate("/search",Ze=>{})}static mapToCarouselItems(he){return he.content.map(Ze=>({id:Ze?.id,slug:Ze?.slug,title:Ze?.posted_by_name,img:null!=Ze?.posted_by_avatar?Ze?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+Ze.id+"/"+Ze.post_id,badges:[]}))}static mapAchievementsToCarouselItems(he){return he.content.map(Ze=>({id:Ze?.id,slug:"",title:Ze?.badge_name,img:null!=Ze?.achieved_by_avatar?Ze?.achieved_by_avatar:"assets/img/default-avatar.png",url:"/u/"+Ze.achieved_by_username,badges:Array(Ze?.total_badge_count).fill("assets/img/recent-acchievements/rating/badge1.png")}))}getMenuItems(){return D.$}onReviewersMenuItemClick(he){this.showReviewersMenu&&(this.showReviewersMenu=!1),this.reviewersPeriod=he.title;let Ze=I.b.calculateRange(he.code);this.fetchRecentReviews({page:0,from_date:Ze?.fromDate,to_date:Ze?.toDate,slice:!0})}onAchievementsMenuItemClick(he){console.log(he),this.showAchievementsMenu&&(this.showAchievementsMenu=!1),this.achievementsPeriod=he.title;let Ze=I.b.calculateRange(he.code);console.log(Ze?.fromDate),console.log(Ze?.toDate),this.fetchAchievements({from_date:Ze?.fromDate,to_date:Ze?.toDate})}onReviewersMenuClick(){this.showReviewersMenu=!this.showReviewersMenu}onAchievementsMenuClick(){this.showAchievementsMenu=!this.showAchievementsMenu}resolveSeo(){this.initSeoItems(this.seoTitle,this.seoMeta,S.N.app_name,"Blockchain based community oriented product quality assurance platform through review and rating.",[],"index","website","",S.N.app_url)}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(re.F0),w.Y36(ue.z),w.Y36(se.H),w.Y36(te.F),w.Y36(oe.S),w.Y36(ce.Dx),w.Y36(ce.h_))};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-home"]],features:[w.qOj],decls:39,vars:17,consts:[[3,"bar",4,"ngIf"],[1,"search-area",3,"click"],[1,"container"],[1,"search-box","d-flex","justify-content-center"],[1,"search"],["type","text","placeholder","Search for products, jobs anything","name","",1,"search-input"],["href","#",1,"search-icon"],[1,"icon-search"],[1,"reviewers-section","py-2","mt-3"],[1,"reviewers-content","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items","design","itemClick"],[1,"category-area","pt-3","mt-2","scrollable"],[1,"list-inline","list-unstyled"],[1,"list-inline-item",3,"ngClass"],["href","#",3,"click"],["class","list-inline-item",3,"ngClass","click",4,"ngFor","ngForOf"],[3,"title","attrId",4,"ngFor","ngForOf"],[1,"acchievements-section","py-3","mt-3"],[1,"acchievements-content","d-flex","justify-content-between","pb-3",3,"click"],[3,"bar"],[3,"showMenubar","items","menuItemClick"],[1,"list-inline-item",3,"ngClass","click"],["href","#"],[3,"title","attrId"]],template:function(Ze,rt){1&Ze&&(w.YNc(0,Yn,1,1,"util-progress",0),w.TgZ(1,"div")(2,"section",1),w.NdJ("click",function(Nt){return rt.onSearchBoxClicked(Nt)}),w.TgZ(3,"div",2)(4,"div",3)(5,"div",4),w._UZ(6,"input",5),w.TgZ(7,"a",6),w._UZ(8,"i",7),w.qZA()()()()(),w.TgZ(9,"section",8)(10,"div",2)(11,"div",9),w.NdJ("click",function(){return rt.onReviewersMenuClick()}),w.TgZ(12,"h5"),w._uU(13,"RECENT REVIEWERS"),w.qZA(),w.TgZ(14,"h5"),w._uU(15),w.qZA(),w._UZ(16,"img",10),w.qZA(),w.YNc(17,ti,1,2,"app-menubox",11),w.TgZ(18,"app-small-carousel",12),w.NdJ("itemClick",function(Nt){return rt.onRecentReviewerItemClick(Nt)}),w.qZA(),w.YNc(19,gi,1,1,"util-progress",0),w.qZA()(),w.TgZ(20,"section",13)(21,"div",2)(22,"ul",14)(23,"li",15)(24,"a",16),w.NdJ("click",function(){return rt.loadAttributes(rt.userInterests)}),w._uU(25,"All"),w.qZA()(),w.YNc(26,dt,3,4,"li",17),w.qZA()()(),w.YNc(27,at,1,2,"app-product-list",18),w.TgZ(28,"section",19)(29,"div",2)(30,"div",20),w.NdJ("click",function(){return rt.onAchievementsMenuClick()}),w.TgZ(31,"h5"),w._uU(32,"RECENT ACHIEVEMENTS"),w.qZA(),w.TgZ(33,"h5"),w._uU(34),w.qZA(),w._UZ(35,"img",10),w.qZA(),w.YNc(36,Be,1,2,"app-menubox",11),w.TgZ(37,"app-small-carousel",12),w.NdJ("itemClick",function(Nt){return rt.onRecentAchievementsItemClick(Nt)}),w.qZA(),w.YNc(38,Ee,1,1,"util-progress",0),w.qZA()()()),2&Ze&&(w.Q6J("ngIf",rt.interestsAttrLoading),w.xp6(1),w.Q6J("@dataLoaded",rt.interestsAttrLoading?"loading":"loaded"),w.xp6(14),w.Oqu(rt.reviewersPeriod),w.xp6(2),w.Q6J("ngIf",!rt.reviewersLoading),w.xp6(1),w.Q6J("items",rt.recentReviewers)("design","reviewers"),w.xp6(1),w.Q6J("ngIf",rt.reviewersLoading),w.xp6(4),w.Q6J("ngClass",w.VKq(15,Rn,null===rt.selectedInterestItem)),w.xp6(3),w.Q6J("ngForOf",rt.userInterests),w.xp6(1),w.Q6J("ngForOf",rt.attributes),w.xp6(7),w.Oqu(rt.reviewersPeriod),w.xp6(2),w.Q6J("ngIf",!rt.achievementsLoading),w.xp6(1),w.Q6J("items",rt.achievements)("design","achievements"),w.xp6(1),w.Q6J("ngIf",rt.achievementsLoading))},dependencies:[_e.mk,_e.sg,_e.O5,Re.t,mt.q,wn,Ln.v],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.list-inline-item[_ngcontent-%COMP%]{margin-right:1.5rem}.list-group-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#000}.category-area[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1.12em!important}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{height:auto;position:relative}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:40px;width:95%}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:16px;position:absolute;height:auto;width:auto;top:50%;left:12px;margin-top:-9px;display:inline-block}.reviewers-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#44d62c;letter-spacing:.05em}"]})}return me})()},1081:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}searchCategories(ue,se){this.http.get(l.e.CATEGORIES.SEARCH(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.notifier.log(te)})}loadCategories(ue,se,te){null==te&&(te=""),this.http.get(l.e.CATEGORIES.SEARCH(null==se?{q:te}:{parent_id:se,q:te})).subscribe(ce=>{this.eventBusService.publish(ue,ce)},ce=>{this.notifier.log(ce)})}saveInterests(ue,se){let te=se.map(oe=>oe.id);this.http.post(l.e.CATEGORIES.SAVE_INTERESTS(),{category_ids:te}).subscribe(oe=>{this.eventBusService.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.saveInterests(ue,se)},ce=>{this.eventBusService.publish(this.getErrorKey(ue),ce)})})}fetchInterests(ue){this.http.get(l.e.CATEGORIES.FETCH_INTERESTS()).subscribe(se=>{this.eventBusService.publish(ue,se)},se=>{this.notifier.log(se)})}loadAttributes(ue,se){this.http.get(l.e.CATEGORIES.FETCH_ATTRIBUTES({category_ids:se})).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.notifier.log(te)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},2498:(ft,Ie,C)=>{"use strict";C.d(Ie,{M:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}search(ue,se){this.http.get(l.e.PRODUCTS.SEARCH(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.search(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}searchBrands(ue,se){this.http.get(l.e.PRODUCTS.SEARCH_BRANDS(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.searchBrands(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchTopProducts(ue,se){this.http.get(l.e.PRODUCTS.GET_TOP_PRODUCTS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchTopProducts(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchDetails(ue,se){this.http.get(l.e.PRODUCTS.GET_DETAILS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchDetails(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchAvgRatings(ue,se){this.http.get(l.e.REVIEWS.FETCH_AVG_RATINGS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchAvgRatings(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9491:(ft,Ie,C)=>{"use strict";C.d(Ie,{F:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchRecentReviews(ue,se){this.http.get(l.e.REVIEWS.FETCH_RECENT_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchRecentReviews(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}loadReviewAttributes(ue,se){this.notifier.log("Loading attrs for product: "+se),this.http.get(l.e.ATTRIBUTES.GET_ATTRS_FOR_PRODUCT(se,{})).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.loadReviewAttributes(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}createReview(ue,se){this.http.post(l.e.REVIEWS.CREATE_REVIEW({}),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.createReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}updateReview(ue,se,te){this.http.patch(l.e.REVIEWS.UPDATE_REVIEW(se,{}),te).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.updateReview(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}fetchMyReview(ue,se){this.http.get(l.e.REVIEWS.FETCH_MY_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchMyReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}fetchReview(ue,se,te){return this.http.get(l.e.REVIEWS.FETCH_REVIEW(se,te)).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchReview(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})}),ue}fetchProductReviews(ue,se,te){this.http.get(l.e.REVIEWS.FETCH_PRODUCT_REVIEWS(se,te),{}).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchProductReviews(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}fetchUserReviews(ue,se,te){this.http.get(l.e.REVIEWS.FETCH_USER_REVIEWS(se,te),{}).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchUserReviews(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}verifyReview(ue,se){this.http.post(l.e.REVIEWS.SEND_VERIFICATION_REQUEST(),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.verifyReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}getVerificationForReview(ue,se){this.http.get(l.e.REVIEWS.GET_VERIFICATION_FOR_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.getVerificationForReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}reconsiderVerification(ue,se){this.http.patch(l.e.REVIEWS.RECONSIDER_VERIFICATION(se),null).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.reconsiderVerification(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},1259:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>I});var e=C(2495),l=C(553),D=C(5879);class I extends e.O{constructor(){super()}static#e=this.CATEGORIES={SEARCH:w=>l.N.base_url+"/api/v1/public/categories"+e.O.toParamString(w),SAVE_INTERESTS:()=>l.N.base_url+"/api/v1/user-interests",FETCH_INTERESTS:()=>l.N.base_url+"/api/v1/user-interests/my-interests",FETCH_ATTRIBUTES:w=>l.N.base_url+"/api/v1/public/categories/attributes"+e.O.toParamString(w)};static#t=this.PRODUCTS={SEARCH:w=>l.N.base_url+"/api/v1/public/products"+e.O.toParamString(w),SEARCH_BRANDS:w=>l.N.base_url+"/api/v1/public/brands"+e.O.toParamString(w),GET_TOP_PRODUCTS:w=>l.N.base_url+"/api/v1/public/ratings/top-rated-products"+e.O.toParamString(w),GET_DETAILS:w=>l.N.base_url+"/api/v2/public/products/"+w};static#n=this.VENDORS={SEARCH:w=>l.N.base_url+"/api/v1/public/vendors"+e.O.toParamString(w)};static#i=this.ATTRIBUTES={GET_ATTRS_FOR_PRODUCT:(w,n)=>l.N.base_url+"/api/v1/public/products/"+w+"/attributes"+e.O.toParamString(n)};static#r=this.REVIEWS={FETCH_RECENT_REVIEW:w=>l.N.base_url+"/api/v1/public/reviews/recent-reviews"+e.O.toParamString(w),CREATE_REVIEW:w=>l.N.base_url+"/api/v1/reviews"+e.O.toParamString(w),UPDATE_REVIEW:(w,n)=>l.N.base_url+"/api/v1/reviews/"+w+e.O.toParamString(n),FETCH_MY_REVIEW:w=>l.N.base_url+"/api/v1/products/"+w+"/my-review",FETCH_REVIEW:(w,n)=>l.N.base_url+"/api/v2/public/"+w+"/reviews/"+n,FETCH_PRODUCT_REVIEWS:(w,n)=>l.N.base_url+"/api/v1/public/products/"+w+"/reviews"+e.O.toParamString(n),FETCH_USER_REVIEWS:(w,n)=>l.N.base_url+"/api/v1/public/users/"+w+"/reviews"+e.O.toParamString(n),FETCH_AVG_RATINGS:w=>l.N.base_url+"/api/v1/public/products/"+w+"/avg_ratings",SEND_VERIFICATION_REQUEST:()=>l.N.base_url+"/api/v1/review-verifications",GET_VERIFICATION_FOR_REVIEW:w=>l.N.base_url+"/api/v1/public/reviews/"+w+"/verification",RECONSIDER_VERIFICATION:w=>l.N.base_url+"/api/v1/review-verifications/"+w+"/apply-for-reconsideration"};static#o=this.POSTS={FETCH_COMMENTS:(w,n)=>l.N.base_url+"/api/v1/social/posts/"+w+"/comments"+e.O.toParamString(n),SUBMIT_POST:()=>l.N.base_url+"/api/v1/social/posts",UPDATE_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,DELETE_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,REACT_TO_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w+"/reactions",FETCH_NEWS_FEED_POSTS:w=>l.N.base_url+"/api/v1/social/posts"+e.O.toParamString(w),FETCH_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,FETCH_POST_REACTIONS:(w,n)=>l.N.base_url+"/api/v1/social/posts/"+w+"/reactions"+e.O.toParamString(n),FETCH_REACTIONS:w=>l.N.base_url+"/api/v1/social/reactions"+e.O.toParamString(w),FETCH_USER_POSTS:(w,n)=>l.N.base_url+"/api/v1/public/social/users/"+w+"/posts"+e.O.toParamString(n),FETCH_TRENDING_TAGS:w=>l.N.base_url+"/api/v1/public/social/posts/trending-tags"+e.O.toParamString(w),POST_REVIEW_REPORT:()=>l.N.base_url+"/api/v1/report-reviews",GET_REPORT_DETAILS_FOR_POST:w=>l.N.base_url+"/api/v1/report-reviews/my-reports/for-post/"+w,GET_REPORT_COUNT_FOR_POST:w=>l.N.base_url+"/api/v1/report-reviews/my-reports/for-post/"+w+"/count"};static#s=this.NOTIFICATIONS={COUNT_UNREAD:w=>l.N.base_url+"/api/v1/notifications/unread/count"+e.O.toParamString(w),MARK_READ:w=>l.N.base_url+"/api/v1/notifications/mark-read"+e.O.toParamString(w),FETCH_MY_NOTIFICATIONS:w=>l.N.base_url+"/api/v1/my-notifications"+e.O.toParamString(w),DELETE:()=>l.N.base_url+"/api/v1/notifications/"};static#a=this.LEADERBOARDS={FETCH_LEADERBOARD:w=>l.N.base_url+"/api/v1/leaderboards/"+w+"/leaderboard",REDEEM:()=>l.N.base_url+"/api/v1/redeems",FETCH_RECENT_ACHIEVEMENTS:w=>l.N.base_url+"/api/v1/public/latest-achievements"+e.O.toParamString(w)};static#l=this.WALLET={FETCH_MY_WALLET:w=>l.N.base_url+"/api/v1/my-wallet"+e.O.toParamString(w),FETCH_USER_WALLET:(w,n)=>l.N.base_url+"/api/v1/admin/wallets/user-wallet/"+w+"/"+e.O.toParamString(n)};static#c=this.USER={FETCH_FOLLOW_STATS:w=>l.N.base_url+"/api/v1/follows/"+w+"/stats",FOLLOW_A_USER:w=>l.N.base_url+"/api/v1/follows/follow/"+w,UNFOLLOW_A_USER:w=>l.N.base_url+"/api/v1/follows/unfollow/"+w,GET_MY_FOLLOWERS:()=>l.N.base_url+"/api/v1/follows/my-followers",GET_MY_FOLLOWING:()=>l.N.base_url+"/api/v1/follows/following",GET_MY_PROFILE:()=>l.N.base_url+"/api/v1/my-profile",UPDATE_MY_PROFILE:()=>l.N.base_url+"/api/v1/my-profile",DELETE_ME:()=>l.N.base_url+"/api/v1/users/delete-me",SEARCH:w=>l.N.base_url+"/api/v1/admin/users"+e.O.toParamString(w)};static#d=this.ACTIVITY_LOGS={ADMIN_SEARCH:w=>l.N.base_url+"/api/v1/admin/activity-logs"+e.O.toParamString(w)};static#u=this.REQUEST_CREDENTIALS={ADMIN_SEARCH_LOCKOUTS:w=>l.N.base_url+"/api/v1/admin/request-credentials/lockouts"+e.O.toParamString(w)};static#h=this.QUESTIONNAIRES={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/questionnaires",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/questionnaires",SEARCH:(w,n)=>w+e.O.toParamString(n),GET_DETAILS:w=>l.N.base_url+"/api/v1/questionnaires/"+w,DELETE:()=>l.N.base_url+"/api/v1/questionnaires/",CREATE:()=>l.N.base_url+"/api/v1/questionnaires",UPDATE:w=>l.N.base_url+"/api/v1/questionnaires/"+w,TOGGLE_APPROVAL:(w,n)=>l.N.base_url+"/api/v1/questionnaires/"+w+"/toggle-approval"+e.O.toParamString(n),RESULT_SHEET:w=>l.N.base_url+"/api/v1/questionnaires/"+w+"/result-sheet"};static#f=this.POLLS={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/polls",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/polls",SEARCH:(w,n)=>w+e.O.toParamString(n),GET_DETAILS:w=>l.N.base_url+"/api/v1/polls/"+w,CREATE:()=>l.N.base_url+"/api/v1/polls",DELETE:()=>l.N.base_url+"/api/v1/polls/",UPDATE:w=>l.N.base_url+"/api/v1/polls/"+w};static#p=this.VOTES={SEARCH:w=>l.N.base_url+"/api/v1/admin/votes"+e.O.toParamString(w),FETCH_USER_VOTE_STATS:w=>l.N.base_url+"/api/v1/admin/votes/user-vote-count-stats"+e.O.toParamString(w),FETCH_POLL_VOTE_STATS:w=>l.N.base_url+"/api/v1/admin/votes/poll-vote-count-stats"+e.O.toParamString(w)};static#_=this.POLL_STATISTICS={OVERVIEW_STATS_ENDPOINT:l.N.base_url+"/api/v1/poll-stats/overview",OVERVIEW_STATS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-stats/overview",DATE_WISE_POLL_COUNTS_ENDPOINT:l.N.base_url+"/api/v1/poll-stats/date-wise-poll-counts",DATE_WISE_POLL_COUNTS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-stats/date-wise-poll-counts",OVERVIEW_STATS:(w,n)=>w+e.O.toParamString(n),DATE_WISE_POLL_COUNTS:(w,n)=>w+e.O.toParamString(n)};static#m=this.POLL_OPTIONS={SEARCH:w=>l.N.base_url+"/api/v1/poll-options"+e.O.toParamString(w),CREATE:()=>l.N.base_url+"/api/v1/poll-options",DELETE:()=>l.N.base_url+"/api/v1/poll-options/",UPDATE:w=>l.N.base_url+"/api/v1/poll-options/"+w};static#g=this.LABELS={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/labels",SEARCH_ENDPOINT_FOR_POLLBOX:l.N.base_url+"/api/v1/public/labels/POLLBOX/children",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/labels",SEARCH:(w,n)=>w+e.O.toParamString(n),CREATE:()=>l.N.base_url+"/api/v1/labels",UPDATE:w=>l.N.base_url+"/api/v1/labels/"+w};static#v=this.\u0275fac=function(n){return new(n||I)};static#b=this.\u0275prov=D.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}},9310:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{WebAppModule:()=>Id});var e=C(6814),l=C(1662),D=C(2177),I=C(8637),S=C(7259),w=C(7613),n=C(5879),Z=C(6223),ee=function(F){return F.RATING="RATING",F.PROVOKE_REVIEW="PROVOKE_REVIEW",F.REVIEW="REVIEW",F.PROVOKE_IMAGE_UPLOAD="PROVOKE_IMAGE_UPLOAD",F.IMAGE_UPLOAD="IMAGE_UPLOAD",F.FINISHED_DIALOG="FINISHED_DIALOG",F.SUBMIT_ERROR="SUBMIT_ERROR",F}(ee||{}),re=C(30),ue=C(6945),se=C(9491),te=C(5462),oe=C(8214),ce=C(2951),_e=C(8480),Re=C(7700),mt=C(2296),Ge=C(4736);function Lt(F,Xe){if(1&F&&n._UZ(0,"img",5),2&F){const g=n.oxw();n.s9C("src",g.img,n.LSH)}}function je(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",10)(1,"button",11),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onBtnClick(!1))}),n._uU(2),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(2),n.Oqu(g.negativeBtnTxt)}}function Tt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"a",12),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onBtnClick(!0))}),n._uU(1),n.qZA()}if(2&F){const g=n.oxw(2);n.xp6(1),n.Oqu(g.positiveBtnText)}}function xt(F,Xe){if(1&F&&(n.TgZ(0,"section",6)(1,"div",7),n.YNc(2,je,3,1,"div",8),n.YNc(3,Tt,2,1,"a",9),n.qZA()()),2&F){const g=n.oxw();n.xp6(2),n.Q6J("ngIf",null!=g.negativeBtnTxt),n.xp6(1),n.Q6J("ngIf",null!=g.positiveBtnText)}}let St=(()=>{class F{constructor(){this.step=2,this.img=null,this.title="",this.message="",this.positiveBtnText=null,this.negativeBtnTxt=null,this.titleColor="#44d62c",this.msgColor="#FFFFFF",this.onPositiveBtn=new n.vpe,this.onNegativeBtn=new n.vpe}ngOnInit(){}onBtnClick(g){g?this.onPositiveBtn.emit():this.onNegativeBtn.emit()}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-notice-view"]],inputs:{step:"step",img:"img",title:"title",message:"message",positiveBtnText:"positiveBtnText",negativeBtnTxt:"negativeBtnTxt",titleColor:"titleColor",msgColor:"msgColor"},outputs:{onPositiveBtn:"onPositiveBtn",onNegativeBtn:"onNegativeBtn"},decls:10,vars:10,consts:[[1,"notification-area","review-rdi","pb-4"],[1,"notify-image-area","text-center"],["alt","describe img","class","img-scale-half",3,"src",4,"ngIf"],[1,"notify-content"],["class","call-to-ac-area review-ro pb-3",4,"ngIf"],["alt","describe img",1,"img-scale-half",3,"src"],[1,"call-to-ac-area","review-ro","pb-3"],[1,"container","d-flex","justify-content-around","align-items-center"],["class","skip-btn",4,"ngIf"],["class","boxed-btn",3,"click",4,"ngIf"],[1,"skip-btn"],[3,"click"],[1,"boxed-btn",3,"click"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1),n.YNc(2,Lt,1,1,"img",2),n.TgZ(3,"p"),n._uU(4),n.qZA()(),n.TgZ(5,"div",3),n._UZ(6,"h2"),n.TgZ(7,"p"),n._uU(8),n.qZA()()(),n.YNc(9,xt,4,2,"section",4)),2&L&&(n.xp6(2),n.Q6J("ngIf",null!=R.img),n.xp6(1),n.Jzz("color: ",R.titleColor,";"),n.xp6(1),n.Oqu(R.title),n.xp6(3),n.Jzz("color: ",R.msgColor,";"),n.xp6(1),n.Oqu(R.message),n.xp6(1),n.Q6J("ngIf",null!=R.positiveBtnText||null!=R.negativeBtnTxt))},dependencies:[e.O5],styles:['@charset "UTF-8";.img-scale-half[_ngcontent-%COMP%]{transform:scale(.5);filter:progid:DXImageTransform.Microsoft.Matrix(M11=.9999619230641713,M12=-.008726535498373935,M21=.008726535498373935,M22=.9999619230641713,SizingMethod="auto expand")}']})}return F})();function Zt(F,Xe){1&F&&n._UZ(0,"util-progress",10),2&F&&n.Q6J("padding",50)}function yt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",21)(1,"div",22)(2,"div",23)(3,"button",24),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.updateRating(!0,ye.id))}),n._UZ(4,"i",25),n.qZA(),n._UZ(5,"input",26),n.TgZ(6,"button",24),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.updateRating(!1,ye.id))}),n._UZ(7,"i",27),n.qZA()(),n.TgZ(8,"p"),n._UZ(9,"i",28),n.qZA(),n.TgZ(10,"h5"),n._uU(11),n.qZA()()()}if(2&F){const g=Xe.$implicit;n.xp6(5),n.Q6J("formControlName",g.id),n.xp6(6),n.Oqu(g.name)}}function un(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",11)(1,"div",12)(2,"div",13)(3,"div",14)(4,"div",15)(5,"div",16)(6,"h5",17),n._uU(7,"AVG RATING"),n.qZA(),n.TgZ(8,"h2"),n._uU(9),n.qZA()()(),n.YNc(10,yt,12,2,"div",18),n.qZA()(),n.TgZ(11,"button",19),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("PROVOKE_REVIEW"))}),n._UZ(12,"i",20),n._uU(13," done "),n.qZA()()()}if(2&F){const g=n.oxw(3);n.xp6(9),n.Oqu(g.calculateAverageRating()),n.xp6(1),n.Q6J("ngForOf",g.attrs)}}function Jt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notice-view",29),n.NdJ("onPositiveBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("REVIEW"))})("onNegativeBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n.qZA()}2&F&&n.Q6J("img","assets/img/review-rating-only-images/reviews.png")("title","You can earn 3 more points!")("message","If you write your experience and thought about this product in short, you can earn 5 more points. This will take just a minute.")("positiveBtnText","ADD REVIEW")("negativeBtnTxt","JUST SUBMIT RATING")}function tn(F,Xe){if(1&F&&(n.TgZ(0,"div",58)(1,"h5"),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",39),n.qZA()()),2&F){const g=Xe.$implicit,L=n.oxw(4);n.xp6(2),n.Oqu(g.name),n.xp6(2),n.Oqu(L.getRatingForAttr(g.id))}}function wn(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Name must be at least 4 characters!"),n.qZA()())}function Ln(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Must not be empty or above 511 characters"),n.qZA()())}function Yn(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Must not be empty or above 511 characters"),n.qZA()())}function ti(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"header",30)(2,"div",31)(3,"div",32)(4,"h2"),n._uU(5,"Your Ratings"),n.qZA()(),n.TgZ(6,"div",33)(7,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.editRating())}),n._UZ(8,"i",35),n._uU(9," edit"),n.qZA()()()(),n.TgZ(10,"section",36)(11,"div",37)(12,"div",38)(13,"div",16)(14,"h5"),n._uU(15,"Avg Rating"),n.qZA(),n.TgZ(16,"p"),n._uU(17),n._UZ(18,"i",39),n.qZA()(),n.YNc(19,tn,6,2,"div",40),n.qZA()()(),n.TgZ(20,"div",41)(21,"div",37)(22,"div",42)(23,"h4",17),n._uU(24,"REVIEW TITLE"),n.qZA(),n.TgZ(25,"div",43)(26,"div",44)(27,"label",45),n._uU(28,"A nice title makes your review interesting."),n.qZA(),n._UZ(29,"textarea",46),n.qZA()(),n.YNc(30,wn,3,0,"div",47),n.qZA(),n.TgZ(31,"div",48)(32,"h4",17),n._uU(33,"POSITIVE EXPERIENCE"),n.qZA(),n.TgZ(34,"div",43)(35,"div",44)(36,"label",49),n._uU(37,"Write your positive experience with this item."),n.qZA(),n._UZ(38,"textarea",50),n.qZA()(),n.YNc(39,Ln,3,0,"div",47),n.qZA(),n.TgZ(40,"div",51)(41,"h4",17),n._uU(42,"NEGATIVE EXPERIENCE"),n.qZA(),n.TgZ(43,"div",52)(44,"div",44)(45,"label",53),n._uU(46,"If you had any negative experience with this item, please feel free to mention here"),n.qZA(),n._UZ(47,"textarea",54),n.qZA()(),n.YNc(48,Yn,3,0,"div",47),n.qZA(),n.TgZ(49,"div",55)(50,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.prevStep("PROVOKE_REVIEW"))}),n._uU(51,"BACK"),n.qZA(),n._uU(52,"\xa0\xa0 "),n.TgZ(53,"button",56),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("PROVOKE_IMAGE_UPLOAD"))}),n._UZ(54,"i",57),n._uU(55," SUBMIT "),n.qZA()()()()()}if(2&F){const g=n.oxw(3);n.xp6(17),n.Oqu(g.calculateAverageRating()),n.xp6(2),n.Q6J("ngForOf",g.attrs),n.xp6(11),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.title)),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.pros)),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.cons)),n.xp6(5),n.Q6J("disabled",g.postReviewForm.invalid)}}function gi(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notice-view",29),n.NdJ("onPositiveBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("IMAGE_UPLOAD"))})("onNegativeBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n.qZA()}2&F&&n.Q6J("img","assets/img/review-r-d-page/describe.png")("title","Wonderful! want 5 more points?")("message","Adding an image with your review makes it more attractive and trustworthy. You'll get 5 more points and also a chance to verify your review.")("positiveBtnText","UPLOAD")("negativeBtnTxt","JUST SUBMIT")}function Rn(F,Xe){if(1&F&&(n.TgZ(0,"div",58)(1,"h5"),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",39),n.qZA()()),2&F){const g=Xe.$implicit,L=n.oxw(4);n.xp6(2),n.Oqu(g.name),n.xp6(2),n.Oqu(L.getRatingForAttr(g.id))}}function dt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",67),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.removeExImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit,n.LSH)}function at(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",67),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Be(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"header",30)(2,"div",31)(3,"div",32)(4,"h2"),n._uU(5,"Your Ratings"),n.qZA()(),n.TgZ(6,"div",33)(7,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.editRating())}),n._UZ(8,"i",35),n._uU(9," edit"),n.qZA()()()(),n.TgZ(10,"section",36)(11,"div",37)(12,"div",38)(13,"div",16)(14,"h5"),n._uU(15,"Avg Rating"),n.qZA(),n.TgZ(16,"p"),n._uU(17),n._UZ(18,"i",39),n.qZA()(),n.YNc(19,Rn,6,2,"div",40),n.qZA()()(),n.TgZ(20,"section",60)(21,"div",37)(22,"h4",17),n._uU(23,"UPLOAD IMAGES"),n.qZA(),n.TgZ(24,"div",61)(25,"div"),n.YNc(26,dt,1,1,"img",62),n.YNc(27,at,1,1,"img",62),n.qZA(),n.TgZ(28,"label",63),n._UZ(29,"i",64),n.qZA(),n.TgZ(30,"input",65),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(3);return n.KtG(ye.onImageSelected(R))}),n.qZA()()(),n.TgZ(31,"div",55)(32,"button",66),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n._UZ(33,"i",57),n._uU(34," finish "),n.qZA()()()()}if(2&F){const g=n.oxw(3);n.xp6(17),n.Oqu(g.calculateAverageRating()),n.xp6(2),n.Q6J("ngForOf",g.attrs),n.xp6(7),n.Q6J("ngForOf",g.review.thumbs),n.xp6(1),n.Q6J("ngForOf",g.uploadFiles)}}function Ee(F,Xe){if(1&F&&(n.TgZ(0,"form",7),n.YNc(1,Zt,1,1,"util-progress",8),n.YNc(2,un,14,2,"section",5),n.YNc(3,Jt,1,5,"app-notice-view",9),n.YNc(4,ti,56,6,"div",0),n.YNc(5,gi,1,5,"app-notice-view",9),n.YNc(6,Be,35,4,"div",0),n.qZA()),2&F){const g=n.oxw(2);n.Q6J("formGroup",g.postReviewForm),n.xp6(1),n.Q6J("ngIf",g.ratingLoading),n.xp6(1),n.Q6J("ngIf",g.isStep("RATING")&&!g.ratingLoading),n.xp6(1),n.Q6J("ngIf",g.isStep("PROVOKE_REVIEW")),n.xp6(1),n.Q6J("ngIf",g.isStep("REVIEW")),n.xp6(1),n.Q6J("ngIf",g.isStep("PROVOKE_IMAGE_UPLOAD")),n.xp6(1),n.Q6J("ngIf",g.isStep("IMAGE_UPLOAD"))}}function $e(F,Xe){if(1&F&&(n.TgZ(0,"section",11)(1,"div",37)(2,"div",68),n._UZ(3,"img",69),n.TgZ(4,"p"),n._uU(5),n.qZA()(),n.TgZ(6,"div",70),n._UZ(7,"util-progress",71)(8,"hr"),n.TgZ(9,"h2"),n._uU(10,"A pigeon is carrying your review to us. Give it a bit of time."),n.qZA(),n._UZ(11,"p"),n.qZA()()()),2&F){const g=n.oxw(2);n.xp6(5),n.Oqu(g.reviewSubmitMessage),n.xp6(2),n.Q6J("determinate",!0)("bar",!0)("determinateValue",g.reviewSubmitProgress)}}function me(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",72),2&F){const g=n.oxw(2);n.Q6J("img","assets/img/review-r-d-i-page/achievement.png")("title","Congratulations! You've earned "+g.review.weight+" points.")("message","Your review has been successfully submitted. We thank you for your contributions to help this community out. We love you for your effort.")}}function tt(F,Xe){if(1&F&&(n.TgZ(0,"mat-dialog-content")(1,"div",2),n._UZ(2,"i",3),n.qZA(),n.YNc(3,Ee,7,7,"form",4),n.YNc(4,$e,12,4,"section",5),n.YNc(5,me,1,3,"app-notice-view",6),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("ngIf",0===g.reviewSubmitProgress),n.xp6(1),n.Q6J("ngIf",g.reviewSubmitProgress>0&&g.reviewSubmitProgress<100),n.xp6(1),n.Q6J("ngIf",g.isStep("FINISHED_DIALOG")&&100===g.reviewSubmitProgress)}}function he(F,Xe){if(1&F&&(n.TgZ(0,"mat-dialog-content")(1,"div",2),n._UZ(2,"i",3),n.qZA(),n._UZ(3,"app-notice-view",73),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("img","assets/img/scenario-page-image/idea.png")("title","Something went wrong!")("message",g.errorMsg)("titleColor","#ff042f")}}function Ze(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",74)(1,"button",75),n._uU(2,"Close"),n.qZA()())}let rt=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R),this.reviewService=ye,this.notifier=Dt,this.fileUploadService=Mn,this.leaderboardService=vi,this.auth=Fo,this.productId=0,this.stepDoneNavigateTo=null,this.onReviewPosted=new n.vpe,this.step=ee.RATING,this.attrs=[],this.uploadFiles=[],this.ratingLoading=!0,this.reviewSubmitProgress=0,this.reviewSubmitMessage="Please wait..",this.review={id:null,photos:[],thumbs:[],title:"",pros:"",cons:"",content:"",product_id:0,product_slug:"",ratings:[],weight:null,posted_by_name:null,average_rating:null,created_at:null,updated_at:null,post:null,verification_status:null,verified_by:null,verification_reconsiderable:!1,chained:!1,hash:"",product_name:"",slug:""},this.errorMsg="",this.ratingsFormGroup=new Z.cw({}),this.postReviewForm=new Z.cw({title:new Z.NI(this.review.title,[Z.kI.required,Z.kI.minLength(4)]),pros:new Z.NI(this.review.pros,[Z.kI.required,Z.kI.maxLength(511)]),cons:new Z.NI(this.review.cons,[Z.kI.required,Z.kI.maxLength(511)]),ratings:this.ratingsFormGroup})}componentName(){return"PostReviewComponent"}ngOnInit(){this.initFormState(),this.loadAttrs()}initFormState(){this.postReviewForm.controls.title.setValue(this.review.title),this.postReviewForm.controls.pros.setValue(this.review.pros),this.postReviewForm.controls.cons.setValue(this.review.cons)}nextStep(g){let L=g;L===ee.PROVOKE_IMAGE_UPLOAD&&this.postReviewForm.invalid||(this.step=L,this.notifier.log(this.postReviewForm.value),null!=this.stepDoneNavigateTo&&this.navigateByUrl(this.stepDoneNavigateTo,R=>{}),this.notifier.log("Step "+L+" completed."),this.notifier.log("Step "+(L+1)+" started!"))}prevStep(g){this.step=g}loadAttrs(){let g=this.componentKey(S.Z.ATTRS.ATTR_FOR_PRODUCT_LOADED(this.productId));this.reviewService.loadReviewAttributes(g,this.productId),this.subscribe(g,null,(L,R)=>{this.attrs=R.data,this.initiateReviewForm(this.attrs),this.ratingLoading=!1})}initiateReviewForm(g){g.forEach(L=>{this.ratingsFormGroup.addControl(String(L.id),new Z.NI(this.findRatingForAttr(L.id),Z.kI.required))})}findRatingForAttr(g){let L=this.review.ratings.filter(R=>R.attr_id===g).map(R=>R.value);return 0===L.length?0:L[0]}updateRating(g,L){let R=this.ratingsFormGroup.controls[L].value;if(g){if(R>=10)return void this.ratingsFormGroup.controls[String(L)].setValue(10);this.ratingsFormGroup.controls[String(L)].setValue(++R)}else{if(R<=0)return void this.ratingsFormGroup.controls[String(L)].setValue(0);this.ratingsFormGroup.controls[String(L)].setValue(--R)}}editRating(){this.step=ee.RATING}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Mn=>{let vi=Mn.target?.result;null!=vi&&(R.previewUrl=vi,this.uploadFiles.push(R))}}}initiatePostReview(){if(this.uploadFiles.length>0)return this.progress(20,"Preparing images.."),void this.uploadImages();this.progress(20,"Submitting review.."),this.postReview()}uploadImages(){console.log("uploading images..");let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.productId+"-review-img"));this.fileUploadService.uploadImages(L,g),this.progress(30,"Uploading Images.."),this.subscribe(L,null,(R,ye)=>{let Dt=ye.data;Dt.map(Mn=>Mn.image_url).forEach(Mn=>{this.review.photos.push(Mn)}),Dt.map(Mn=>Mn.thumb_url).forEach(Mn=>{this.review.thumbs.push(Mn)}),this.postReview(),this.progress(50,"Preparing review..")})}progress(g,L){this.reviewSubmitProgress=g,this.reviewSubmitMessage=L}postReview(){this.review.product_id=this.productId,this.review.title=this.postReviewForm.controls.title.value||"",this.review.pros=this.postReviewForm.controls.pros.value||"",this.review.cons=this.postReviewForm.controls.cons.value||"",this.review.ratings=F.prepareRating(this.postReviewForm.value.ratings),this.notifier.log("Submitting review.."),this.submitReview(this.productId,this.review),this.progress(60,"Submitting review..")}submitReview(g,L){let R=this.componentKey(S.Z.REVIEWS.POST_REVIEW(g));null==L.id?this.reviewService.createReview(R,this.review):this.reviewService.updateReview(R,L.id,L),this.subscribe(R,null,(ye,Dt)=>{this.reviewSubmitProgress=100,this.review=Dt.data,this.notifier.log(this.review);let Mn=this.globalKey(S.Z.REVIEWS.MY_REVIEW_POSTED(this.productId));this.eventBus.publish(Mn,this.review),this.nextStep(ee.FINISHED_DIALOG),this.onReviewPosted.emit(this.review),this.fetchLeaderboard()}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{let Mn=Dt.data;403===Mn.status&&(this.nextStep(ee.SUBMIT_ERROR),this.errorMsg=Mn.error.message)})}static prepareRating(g){let L=[];for(let R in g)L.push({attr_id:parseInt(R),attr_name:"",value:g[R],id:null,created_at:null,updated_at:null});return L}calculateAverageRating(){let g=F.prepareRating(this.postReviewForm.value.ratings),L=g.map(ye=>ye.value);return 0==L.length?"0":(L.reduce((ye,Dt)=>ye+Dt)/g.length).toFixed(1)}isStep(g){return this.step===g}fetchLeaderboard(){let g=this.componentKey(S.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.leaderboardService.fetchLeaderboard(g,this.auth.getAuth().username),this.subscribe(g,null,(L,R)=>{let ye=R.data,Dt=this.globalKey(S.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.eventBus.publish(Dt,ye)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}removeExImage(g){let L=this.review.thumbs.indexOf(g);this.review.thumbs.splice(L),this.review.photos.splice(L)}getRatingForAttr(g){return this.ratingsFormGroup.controls[String(g)].value||0}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(te.l),n.Y36(oe.J),n.Y36(ce.S),n.Y36(_e.e))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-review"]],inputs:{productId:"productId",stepDoneNavigateTo:"stepDoneNavigateTo"},outputs:{onReviewPosted:"onReviewPosted"},features:[n.qOj],decls:3,vars:3,consts:[[4,"ngIf"],["align","end",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[3,"formGroup",4,"ngIf"],["class","blog-post-area review-rdo mt-4",4,"ngIf"],[3,"img","title","message",4,"ngIf"],[3,"formGroup"],[3,"padding",4,"ngIf"],[3,"img","title","message","positiveBtnText","negativeBtnTxt","onPositiveBtn","onNegativeBtn",4,"ngIf"],[3,"padding"],[1,"blog-post-area","review-rdo","mt-4"],["formGroupName","ratings",1,"container"],[1,"all-avarage-rating","py-2"],[1,"row","g-4"],[1,"col-12"],[1,"single-rating-star"],[1,"title"],["class","col-6",4,"ngFor","ngForOf"],[1,"boxed-btn","mt-4",3,"click"],[1,"flaticon-checked"],[1,"col-6"],[1,"single-rating-star","d-flex","align-items-center"],[1,"number-input"],[3,"click"],[1,"flaticon-up-arrow-angle"],["min","0","max","10","value","0","type","number",1,"quantity",3,"formControlName"],[1,"flaticon-down-arrow"],[1,"flaticon-star"],[3,"img","title","message","positiveBtnText","negativeBtnTxt","onPositiveBtn","onNegativeBtn"],[1,"header-area","review-rdi"],[1,"container","d-flex","justify-content-between","align-items-center"],[1,"header-left"],[1,"header-right"],[1,"edit-boxed-inline-btn",3,"click"],[1,"flaticon-pen"],[1,"blog-post-area","review-rdi","mt-2"],[1,"container"],[1,"all-avarage-rating","d-flex","py-2","scrollable"],[1,"flaticon-star-1"],["class","single-rating-star col-sm-3 single-rating-star-margin-left",4,"ngFor","ngForOf"],[1,"review-r-d-input-fields"],[1,"pros-area"],[1,"pros-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","title",1,"form-label"],["name","pros","id","title","rows","1","placeholder","Write title","formControlName","title",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"pros-area","mt-4"],["for","pros",1,"form-label"],["name","pros","id","pros","rows","3","placeholder","Write positive experience","formControlName","pros",1,"form-control"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],["for","cons",1,"form-label"],["name","cons","id","cons","rows","3","placeholder","Write negative experience","formControlName","cons",1,"form-control"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[1,"single-rating-star","col-sm-3","single-rating-star-margin-left"],[1,"text-warning"],[1,"upload-img-area","review-rdi","pt-4"],[1,"post-last-step-gallery"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],["type","submit",1,"boxed-btn",3,"click"],["alt","",1,"m-1",3,"src","click"],[1,"notify-image-area","text-center","py-4"],["src","../../../../../../assets/img/review-r-d-i-page/achievement.png","alt","describe img",1,"img-scale-half"],[1,"notify-content"],[3,"determinate","bar","determinateValue"],[3,"img","title","message"],[3,"img","title","message","titleColor"],["align","end"],["mat-button","","mat-dialog-close","","cdkfocusinitial",""]],template:function(L,R){1&L&&(n.YNc(0,tt,6,3,"mat-dialog-content",0),n.YNc(1,he,4,4,"mat-dialog-content",0),n.YNc(2,Ze,3,0,"mat-dialog-actions",1)),2&L&&(n.Q6J("ngIf",!R.isStep("SUBMIT_ERROR")),n.xp6(1),n.Q6J("ngIf",R.isStep("SUBMIT_ERROR")),n.xp6(1),n.Q6J("ngIf",R.isStep("FINISHED_DIALOG")&&100===R.reviewSubmitProgress))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.wV,Z.JJ,Z.JL,Z.qQ,Z.Fd,Z.sg,Z.u,Z.x0,Re.ZT,Re.xY,Re.H8,mt.lW,Ge.t,St],styles:['@charset "UTF-8";.title[_ngcontent-%COMP%]{color:#44d62c;margin:0}textarea[_ngcontent-%COMP%]{border:1px dotted #44d62c}.edit-boxed-inline-btn[_ngcontent-%COMP%]{font-size:13px;height:35px;width:100px}.scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.single-rating-star-margin-left[_ngcontent-%COMP%]{margin-left:20px}.autocomplete-input[_ngcontent-%COMP%]{width:100%}.img-scale-half[_ngcontent-%COMP%]{transform:scale(.5);filter:progid:DXImageTransform.Microsoft.Matrix(M11=.9999619230641713,M12=-.008726535498373935,M21=.008726535498373935,M22=.9999619230641713,SizingMethod="auto expand")}.upload-img-area[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:20px 0}.edit-boxed-inline-btn[_ngcontent-%COMP%]{height:auto}']})}return F})();var bt=C(8914),Nt=C(2739),Qt=C(2498),nn=C(6593),Dn=C(5159),Ot=function(F){return F.LIKE="LIKE",F.LOVE="LOVE",F.HAHA="HAHA",F.WOW="WOW",F.SAD="SAD",F.ANGRY="ANGRY",F}(Ot||{}),rn=C(1547),vn=C(1259),ei=C(9862);let Wn=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}fetchPosts(g,L){this.http.get(vn.e.POSTS.FETCH_NEWS_FEED_POSTS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchPosts(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchPost(g,L){this.http.get(vn.e.POSTS.FETCH_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchPost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchComments(g,L){this.http.get(vn.e.POSTS.FETCH_COMMENTS(L,{})).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchComments(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}submitPost(g,L){this.http.post(vn.e.POSTS.SUBMIT_POST(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.submitPost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}updatePost(g,L){null!=L.id&&this.http.patch(vn.e.POSTS.UPDATE_POST(L.id),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.updatePost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}deletePost(g,L){this.http.delete(vn.e.POSTS.DELETE_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.deletePost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}react(g,L,R){this.http.post(vn.e.POSTS.REACT_TO_POST(L),{post_id:L,reaction_type:R}).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.react(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchPostReactions(g,L,R){this.http.get(vn.e.POSTS.FETCH_POST_REACTIONS(L,R)).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.fetchPostReactions(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchReactions(g,L){this.http.get(vn.e.POSTS.FETCH_REACTIONS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchReactions(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchUserPosts(g,L,R){this.http.get(vn.e.POSTS.FETCH_USER_POSTS(L,R)).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.fetchUserPosts(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchTrendingTags(g,L){this.http.get(vn.e.POSTS.FETCH_TRENDING_TAGS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();var Ve=C(3680),ct=C(8484),Ct=C(7131),Ce=C(4300),J=C(9388),ae=C(7394),Oe=C(8645),ot=C(2438),Se=C(2096),Ft=C(3019),lt=C(6232),Bt=C(5592),Ut=C(4825),fn=C(7921),gn=C(3997),An=C(9773),jn=C(8180),ai=C(4664),di=C(836),oi=C(2181),Jn=C(6825),qt=C(2605),_t=C(6672),G=C(2831),U=C(6028);function ve(F,Xe){}const Pe=function(F){return{animationDuration:F}},ut=function(F,Xe){return{value:F,params:Xe}};function We(F,Xe){1&F&&n.Hsn(0)}const ze=["*"],be=["tabListContainer"],Te=["tabList"],He=["tabListInner"],Wt=["nextPaginator"],Pn=["previousPaginator"],wt=["tabBodyWrapper"],Yt=["tabHeader"];function fe(F,Xe){}function Mt(F,Xe){if(1&F&&n.YNc(0,fe,0,0,"ng-template",14),2&F){const g=n.oxw().$implicit;n.Q6J("cdkPortalOutlet",g.templateLabel)}}function Vt(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw().$implicit;n.Oqu(g.textLabel)}}function ht(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6,7),n.NdJ("click",function(){const R=n.CHM(g),ye=R.$implicit,Dt=R.index,Mn=n.oxw(),vi=n.MAs(1);return n.KtG(Mn._handleClick(ye,vi,Dt))})("cdkFocusChange",function(R){const Dt=n.CHM(g).index,Mn=n.oxw();return n.KtG(Mn._tabFocusChanged(R,Dt))}),n._UZ(2,"span",8)(3,"div",9),n.TgZ(4,"span",10)(5,"span",11),n.YNc(6,Mt,1,1,"ng-template",12),n.YNc(7,Vt,1,1,"ng-template",null,13,n.W1O),n.qZA()()()}if(2&F){const g=Xe.$implicit,L=Xe.index,R=n.MAs(1),ye=n.MAs(8),Dt=n.oxw();n.ekj("mdc-tab--active",Dt.selectedIndex===L),n.Q6J("id",Dt._getTabLabelId(L))("ngClass",g.labelClass)("disabled",g.disabled)("fitInkBarToContent",Dt.fitInkBarToContent),n.uIk("tabIndex",Dt._getTabIndex(L))("aria-posinset",L+1)("aria-setsize",Dt._tabs.length)("aria-controls",Dt._getTabContentId(L))("aria-selected",Dt.selectedIndex===L)("aria-label",g.ariaLabel||null)("aria-labelledby",!g.ariaLabel&&g.ariaLabelledby?g.ariaLabelledby:null),n.xp6(3),n.Q6J("matRippleTrigger",R)("matRippleDisabled",g.disabled||Dt.disableRipple),n.xp6(3),n.Q6J("ngIf",g.templateLabel)("ngIfElse",ye)}}function st(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-tab-body",15),n.NdJ("_onCentered",function(){n.CHM(g);const R=n.oxw();return n.KtG(R._removeTabBodyWrapperHeight())})("_onCentering",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye._setTabBodyWrapperHeight(R))}),n.qZA()}if(2&F){const g=Xe.$implicit,L=Xe.index,R=n.oxw();n.ekj("mat-mdc-tab-body-active",R.selectedIndex===L),n.Q6J("id",R._getTabContentId(L))("ngClass",g.bodyClass)("content",g.content)("position",g.position)("origin",g.origin)("animationDuration",R.animationDuration)("preserveContent",R.preserveContent),n.uIk("tabindex",null!=R.contentTabIndex&&R.selectedIndex===L?R.contentTabIndex:null)("aria-labelledby",R._getTabLabelId(L))("aria-hidden",R.selectedIndex!==L)}}const _n={translateTab:(0,Jn.X$)("translateTab",[(0,Jn.SB)("center, void, left-origin-center, right-origin-center",(0,Jn.oB)({transform:"none"})),(0,Jn.SB)("left",(0,Jn.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Jn.SB)("right",(0,Jn.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Jn.eR)("* => left, * => right, left => center, right => center",(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Jn.eR)("void => left-origin-center",[(0,Jn.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Jn.eR)("void => right-origin-center",[(0,Jn.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let En=(()=>{class F extends ct.Pl{constructor(g,L,R,ye){super(g,L,ye),this._host=R,this._centeringSub=ae.w0.EMPTY,this._leavingSub=ae.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,fn.O)(this._host._isCenterPosition(this._host._position))).subscribe(g=>{g&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36((0,n.Gpc)(()=>ni)),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabBodyHost",""]],features:[n.qOj]})}return F})(),On=(()=>{class F{set position(g){this._positionIndex=g,this._computePositionAnimationState()}constructor(g,L,R){this._elementRef=g,this._dir=L,this._dirChangeSubscription=ae.w0.EMPTY,this._translateTabComplete=new Oe.x,this._onCentering=new n.vpe,this._beforeCentering=new n.vpe,this._afterLeavingCenter=new n.vpe,this._onCentered=new n.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,L&&(this._dirChangeSubscription=L.change.subscribe(ye=>{this._computePositionAnimationState(ye),R.markForCheck()})),this._translateTabComplete.pipe((0,gn.x)((ye,Dt)=>ye.fromState===Dt.fromState&&ye.toState===Dt.toState)).subscribe(ye=>{this._isCenterPosition(ye.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ye.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(g){const L=this._isCenterPosition(g.toState);this._beforeCentering.emit(L),L&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(g){return"center"==g||"left-origin-center"==g||"right-origin-center"==g}_computePositionAnimationState(g=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==g?"left":"right":this._positionIndex>0?"ltr"==g?"right":"left":"center"}_computePositionFromOrigin(g){const L=this._getLayoutDirection();return"ltr"==L&&g<=0||"rtl"==L&&g>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(J.Is,8),n.Y36(n.sBO))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}return F})(),ni=(()=>{class F extends On{constructor(g,L,R){super(g,L,R)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(J.Is,8),n.Y36(n.sBO))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-body"]],viewQuery:function(L,R){if(1&L&&n.Gf(ct.Pl,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R._portalHost=ye.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[n.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0,1),n.NdJ("@translateTab.start",function(Dt){return R._onTranslateTabStarted(Dt)})("@translateTab.done",function(Dt){return R._translateTabComplete.next(Dt)}),n.YNc(2,ve,0,0,"ng-template",2),n.qZA()),2&L&&n.Q6J("@translateTab",n.WLB(3,ut,R._position,n.VKq(1,Pe,R.animationDuration)))},dependencies:[En],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[_n.translateTab]}})}return F})();const Vn=new n.OlP("MatTabContent");let fr=(()=>{class F{constructor(g){this.template=g}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.Rgc))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabContent",""]],features:[n._Bn([{provide:Vn,useExisting:F}])]})}return F})();const ki=new n.OlP("MatTabLabel"),Kr=new n.OlP("MAT_TAB");let vr=(()=>{class F extends ct.ig{constructor(g,L,R){super(g,L),this._closestTab=R}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(Kr,8))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[n._Bn([{provide:ki,useExisting:F}]),n.qOj]})}return F})();const Bi="mdc-tab-indicator--active",co="mdc-tab-indicator--no-transition";class Ji{constructor(Xe){this._items=Xe}hide(){this._items.forEach(Xe=>Xe.deactivateInkBar())}alignToElement(Xe){const g=this._items.find(R=>R.elementRef.nativeElement===Xe),L=this._currentItem;if(g!==L&&(L?.deactivateInkBar(),g)){const R=L?.elementRef.nativeElement.getBoundingClientRect?.();g.activateInkBar(R),this._currentItem=g}}}function tr(F){return class extends F{constructor(...Xe){super(...Xe),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Xe){const g=(0,qt.Ig)(Xe);this._fitToContent!==g&&(this._fitToContent=g,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Xe){const g=this.elementRef.nativeElement;if(!Xe||!g.getBoundingClientRect||!this._inkBarContentElement)return void g.classList.add(Bi);const L=g.getBoundingClientRect(),R=Xe.width/L.width,ye=Xe.left-L.left;g.classList.add(co),this._inkBarContentElement.style.setProperty("transform",`translateX(${ye}px) scaleX(${R})`),g.getBoundingClientRect(),g.classList.remove(co),g.classList.add(Bi),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Bi)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Xe=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=Xe.createElement("span"),this._inkBarContentElement=Xe.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const pr=(0,Ve.Id)(class{}),$n=tr((()=>{class F extends pr{constructor(g){super(),this.elementRef=g}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq))};static#t=this.\u0275dir=n.lG2({type:F,features:[n.qOj]})}return F})());let yo=(()=>{class F extends $n{static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(L,R){2&L&&(n.uIk("aria-disabled",!!R.disabled),n.ekj("mat-mdc-tab-disabled",R.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[n.qOj]})}return F})();const Fr=(0,Ve.Id)(class{}),uo=new n.OlP("MAT_TAB_GROUP");let ho=(()=>{class F extends Fr{get content(){return this._contentPortal}constructor(g,L){super(),this._viewContainerRef=g,this._closestTabGroup=L,this.textLabel="",this._contentPortal=null,this._stateChanges=new Oe.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(g){(g.hasOwnProperty("textLabel")||g.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ct.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(g){g&&g._closestTab===this&&(this._templateLabel=g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.s_b),n.Y36(uo,8))};static#t=this.\u0275dir=n.lG2({type:F,viewQuery:function(L,R){if(1&L&&n.Gf(n.Rgc,7),2&L){let ye;n.iGM(ye=n.CRH())&&(R._implicitContent=ye.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[n.qOj,n.TTD]})}return F})(),to=(()=>{class F extends ho{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(g){this._setTemplateLabelInput(g)}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab"]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,fr,7,n.Rgc),n.Suo(ye,vr,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._explicitContent=Dt.first),n.iGM(Dt=n.CRH())&&(R.templateLabel=Dt.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[n._Bn([{provide:Kr,useExisting:F}]),n.qOj],ngContentSelectors:ze,decls:1,vars:0,template:function(L,R){1&L&&(n.F$t(),n.YNc(0,We,1,0,"ng-template"))},encapsulation:2})}return F})();const yr=(0,G.i$)({passive:!0});let xl=(()=>{class F{get disablePagination(){return this._disablePagination}set disablePagination(g){this._disablePagination=(0,qt.Ig)(g)}get selectedIndex(){return this._selectedIndex}set selectedIndex(g){g=(0,qt.su)(g),this._selectedIndex!=g&&(this._selectedIndexChanged=!0,this._selectedIndex=g,this._keyManager&&this._keyManager.updateActiveItem(g))}constructor(g,L,R,ye,Dt,Mn,vi){this._elementRef=g,this._changeDetectorRef=L,this._viewportRuler=R,this._dir=ye,this._ngZone=Dt,this._platform=Mn,this._animationMode=vi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Oe.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Oe.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new n.vpe,this.indexFocused=new n.vpe,Dt.runOutsideAngular(()=>{(0,ot.R)(g.nativeElement,"mouseleave").pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,ot.R)(this._previousPaginator.nativeElement,"touchstart",yr).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ot.R)(this._nextPaginator.nativeElement,"touchstart",yr).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const g=this._dir?this._dir.change:(0,Se.of)("ltr"),L=this._viewportRuler.change(150),R=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ce.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,jn.q)(1)).subscribe(R),(0,Ft.T)(g,L,this._items.changes,this._itemsResized()).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),R()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(ye=>{this.indexFocused.emit(ye),this._setTabFocus(ye)})}_itemsResized(){return"function"!=typeof ResizeObserver?lt.E:this._items.changes.pipe((0,fn.O)(this._items),(0,ai.w)(g=>new Bt.y(L=>this._ngZone.runOutsideAngular(()=>{const R=new ResizeObserver(ye=>L.next(ye));return g.forEach(ye=>R.observe(ye.elementRef.nativeElement)),()=>{R.disconnect()}}))),(0,di.T)(1),(0,oi.h)(g=>g.some(L=>L.contentRect.width>0&&L.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(g){if(!(0,U.Vb)(g))switch(g.keyCode){case U.K5:case U.L_:if(this.focusIndex!==this.selectedIndex){const L=this._items.get(this.focusIndex);L&&!L.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(g))}break;default:this._keyManager.onKeydown(g)}}_onContentChanges(){const g=this._elementRef.nativeElement.textContent;g!==this._currentTextContent&&(this._currentTextContent=g||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(g){!this._isValidIndex(g)||this.focusIndex===g||!this._keyManager||this._keyManager.setActiveItem(g)}_isValidIndex(g){return!this._items||!!this._items.toArray()[g]}_setTabFocus(g){if(this._showPaginationControls&&this._scrollToLabel(g),this._items&&this._items.length){this._items.toArray()[g].focus();const L=this._tabListContainer.nativeElement;L.scrollLeft="ltr"==this._getLayoutDirection()?0:L.scrollWidth-L.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const g=this.scrollDistance,L="ltr"===this._getLayoutDirection()?-g:g;this._tabList.nativeElement.style.transform=`translateX(${Math.round(L)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(g){this._scrollTo(g)}_scrollHeader(g){return this._scrollTo(this._scrollDistance+("before"==g?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(g){this._stopInterval(),this._scrollHeader(g)}_scrollToLabel(g){if(this.disablePagination)return;const L=this._items?this._items.toArray()[g]:null;if(!L)return;const R=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ye,offsetWidth:Dt}=L.elementRef.nativeElement;let Mn,vi;"ltr"==this._getLayoutDirection()?(Mn=ye,vi=Mn+Dt):(vi=this._tabListInner.nativeElement.offsetWidth-ye,Mn=vi-Dt);const Fo=this.scrollDistance,Ya=this.scrollDistance+R;MnYa&&(this.scrollDistance+=Math.min(vi-Ya,Mn-Fo))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const g=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;g||(this.scrollDistance=0),g!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=g}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const g=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,L=g?g.elementRef.nativeElement:null;L?this._inkBar.alignToElement(L):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(g,L){L&&null!=L.button&&0!==L.button||(this._stopInterval(),(0,Ut.H)(650,100).pipe((0,An.R)((0,Ft.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:R,distance:ye}=this._scrollHeader(g);(0===ye||ye>=R)&&this._stopInterval()}))}_scrollTo(g){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const L=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(L,g)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:L,distance:this._scrollDistance}}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{disablePagination:"disablePagination"}})}return F})(),So=(()=>{class F extends xl{get disableRipple(){return this._disableRipple}set disableRipple(g){this._disableRipple=(0,qt.Ig)(g)}constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,ye,Dt,Mn,vi),this._disableRipple=!1}_itemSelected(g){g.preventDefault()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{disableRipple:"disableRipple"},features:[n.qOj]})}return F})(),Ws=(()=>{class F extends So{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,ye,Dt,Mn,vi)}ngAfterContentInit(){this._inkBar=new Ji(this._items),super.ngAfterContentInit()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-header"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,yo,4),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._items=Dt)}},viewQuery:function(L,R){if(1&L&&(n.Gf(be,7),n.Gf(Te,7),n.Gf(He,7),n.Gf(Wt,5),n.Gf(Pn,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R._tabListContainer=ye.first),n.iGM(ye=n.CRH())&&(R._tabList=ye.first),n.iGM(ye=n.CRH())&&(R._tabListInner=ye.first),n.iGM(ye=n.CRH())&&(R._nextPaginator=ye.first),n.iGM(ye=n.CRH())&&(R._previousPaginator=ye.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(L,R){2&L&&n.ekj("mat-mdc-tab-header-pagination-controls-enabled",R._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==R._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[n.qOj],ngContentSelectors:ze,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"button",0,1),n.NdJ("click",function(){return R._handlePaginatorClick("before")})("mousedown",function(Dt){return R._handlePaginatorPress("before",Dt)})("touchend",function(){return R._stopInterval()}),n._UZ(2,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),n.TgZ(5,"div",5,6),n.NdJ("cdkObserveContent",function(){return R._onContentChanges()}),n.TgZ(7,"div",7,8),n.Hsn(9),n.qZA()()(),n.TgZ(10,"button",9,10),n.NdJ("mousedown",function(Dt){return R._handlePaginatorPress("after",Dt)})("click",function(){return R._handlePaginatorClick("after")})("touchend",function(){return R._stopInterval()}),n._UZ(12,"div",2),n.qZA()),2&L&&(n.ekj("mat-mdc-tab-header-pagination-disabled",R._disableScrollBefore),n.Q6J("matRippleDisabled",R._disableScrollBefore||R.disableRipple)("disabled",R._disableScrollBefore||null),n.xp6(3),n.ekj("_mat-animation-noopable","NoopAnimations"===R._animationMode),n.xp6(7),n.ekj("mat-mdc-tab-header-pagination-disabled",R._disableScrollAfter),n.Q6J("matRippleDisabled",R._disableScrollAfter||R.disableRipple)("disabled",R._disableScrollAfter||null))},dependencies:[Ve.wG,Ct.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return F})();const Ds=new n.OlP("MAT_TABS_CONFIG");let $s=0;const Uo=(0,Ve.pj)((0,Ve.Kr)(class{constructor(F){this._elementRef=F}}),"primary");let Jr=(()=>{class F extends Uo{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(g){this._dynamicHeight=(0,qt.Ig)(g)}get selectedIndex(){return this._selectedIndex}set selectedIndex(g){this._indexToSelect=(0,qt.su)(g,null)}get animationDuration(){return this._animationDuration}set animationDuration(g){this._animationDuration=/^\d+$/.test(g+"")?g+"ms":g}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(g){this._contentTabIndex=(0,qt.su)(g,null)}get disablePagination(){return this._disablePagination}set disablePagination(g){this._disablePagination=(0,qt.Ig)(g)}get preserveContent(){return this._preserveContent}set preserveContent(g){this._preserveContent=(0,qt.Ig)(g)}get backgroundColor(){return this._backgroundColor}set backgroundColor(g){const L=this._elementRef.nativeElement.classList;L.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),g&&L.add("mat-tabs-with-background",`mat-background-${g}`),this._backgroundColor=g}constructor(g,L,R,ye){super(g),this._changeDetectorRef=L,this._animationMode=ye,this._tabs=new n.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ae.w0.EMPTY,this._tabLabelSubscription=ae.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new n.vpe,this.focusChange=new n.vpe,this.animationDone=new n.vpe,this.selectedTabChange=new n.vpe(!0),this._groupId=$s++,this.animationDuration=R&&R.animationDuration?R.animationDuration:"500ms",this.disablePagination=!(!R||null==R.disablePagination)&&R.disablePagination,this.dynamicHeight=!(!R||null==R.dynamicHeight)&&R.dynamicHeight,this.contentTabIndex=R?.contentTabIndex??null,this.preserveContent=!!R?.preserveContent}ngAfterContentChecked(){const g=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=g){const L=null==this._selectedIndex;if(!L){this.selectedTabChange.emit(this._createChangeEvent(g));const R=this._tabBodyWrapper.nativeElement;R.style.minHeight=R.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((R,ye)=>R.isActive=ye===g),L||(this.selectedIndexChange.emit(g),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((L,R)=>{L.position=R-g,null!=this._selectedIndex&&0==L.position&&!L.origin&&(L.origin=g-this._selectedIndex)}),this._selectedIndex!==g&&(this._selectedIndex=g,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const g=this._clampTabIndex(this._indexToSelect);if(g===this._selectedIndex){const L=this._tabs.toArray();let R;for(let ye=0;ye{L[g].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(g))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,fn.O)(this._allTabs)).subscribe(g=>{this._tabs.reset(g.filter(L=>L._closestTabGroup===this||!L._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(g){const L=this._tabHeader;L&&(L.focusIndex=g)}_focusChanged(g){this._lastFocusedTabIndex=g,this.focusChange.emit(this._createChangeEvent(g))}_createChangeEvent(g){const L=new kr;return L.index=g,this._tabs&&this._tabs.length&&(L.tab=this._tabs.toArray()[g]),L}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Ft.T)(...this._tabs.map(g=>g._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(g){return Math.min(this._tabs.length-1,Math.max(g||0,0))}_getTabLabelId(g){return`mat-tab-label-${this._groupId}-${g}`}_getTabContentId(g){return`mat-tab-content-${this._groupId}-${g}`}_setTabBodyWrapperHeight(g){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const L=this._tabBodyWrapper.nativeElement;L.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(L.style.height=g+"px")}_removeTabBodyWrapperHeight(){const g=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=g.clientHeight,g.style.height="",this.animationDone.emit()}_handleClick(g,L,R){L.focusIndex=R,g.disabled||(this.selectedIndex=R)}_getTabIndex(g){return g===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(g,L){g&&"mouse"!==g&&"touch"!==g&&(this._tabHeader.focusIndex=L)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ds,8),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[n.qOj]})}return F})(),ga=(()=>{class F extends Jr{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(g){this._fitInkBarToContent=(0,qt.Ig)(g),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(g){this._stretchTabs=(0,qt.Ig)(g)}constructor(g,L,R,ye){super(g,L,R,ye),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!R||null==R.fitInkBarToContent)&&R.fitInkBarToContent,this.stretchTabs=!R||null==R.stretchTabs||R.stretchTabs}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ds,8),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-group"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,to,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._allTabs=Dt)}},viewQuery:function(L,R){if(1&L&&(n.Gf(wt,5),n.Gf(Yt,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R._tabBodyWrapper=ye.first),n.iGM(ye=n.CRH())&&(R._tabHeader=ye.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(L,R){2&L&&(n.Udp("--mat-tab-animation-duration",R.animationDuration),n.ekj("mat-mdc-tab-group-dynamic-height",R.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===R.headerPosition)("mat-mdc-tab-group-stretch-tabs",R.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[n._Bn([{provide:uo,useExisting:F}]),n.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-tab-header",0,1),n.NdJ("indexFocused",function(Dt){return R._focusChanged(Dt)})("selectFocusedIndex",function(Dt){return R.selectedIndex=Dt}),n.YNc(2,ht,9,17,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.YNc(5,st,1,12,"mat-tab-body",5),n.qZA()),2&L&&(n.Q6J("selectedIndex",R.selectedIndex||0)("disableRipple",R.disableRipple)("disablePagination",R.disablePagination),n.xp6(2),n.Q6J("ngForOf",R._tabs),n.xp6(1),n.ekj("_mat-animation-noopable","NoopAnimations"===R._animationMode),n.xp6(2),n.Q6J("ngForOf",R._tabs))},dependencies:[e.mk,e.sg,e.O5,ct.Pl,Ve.wG,Ce.kH,ni,yo,Ws],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return F})();class kr{}let Li=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[e.ez,Ve.BQ,ct.eL,Ve.si,Ct.Q8,Ce.rt,Ve.BQ]})}return F})();var Yr=C(2770);function dr(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw();n.hij(" ALL (",g.reactions.length,") ")}}function Ha(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h3",7),n._uU(2,"Empty"),n.qZA()())}function wr(F,Xe){if(1&F&&(n.TgZ(0,"section",9)(1,"div",10)(2,"div",11)(3,"div",12),n._UZ(4,"img",13),n.TgZ(5,"div",14)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small"),n._uU(9,"Reacted "),n.TgZ(10,"span",15),n._uU(11),n.qZA(),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()()()()()),2&F){const g=Xe.$implicit;n.xp6(4),n.s9C("src",g.reacted_by_photo,n.LSH),n.xp6(3),n.Oqu(g.reacted_by),n.xp6(4),n.Oqu(g.reaction_type),n.xp6(1),n.hij(" ",n.xi3(13,4,g.updated_at,!0),"")}}function al(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,wr,14,7,"section",8),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.reactions)}}function Vr(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw().$implicit,L=n.oxw();n.AsE(" ",g," (",L.filterReactions(g).length,") ")}}function Es(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h3",7),n._uU(2,"Empty"),n.qZA()())}function Js(F,Xe){if(1&F&&(n.TgZ(0,"section",9)(1,"div",10)(2,"div",11)(3,"div",12),n._UZ(4,"img",13),n.TgZ(5,"div",14)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small"),n._uU(9,"Reacted "),n.TgZ(10,"span",15),n._uU(11),n.qZA(),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()()()()()),2&F){const g=Xe.$implicit,L=n.oxw(2).$implicit;n.xp6(4),n.s9C("src",g.reacted_by_photo,n.LSH),n.xp6(3),n.Oqu(g.reacted_by),n.xp6(4),n.Oqu(L),n.xp6(1),n.hij(" on: ",n.xi3(13,4,g.updated_at,!0),"")}}function ll(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Js,14,7,"section",8),n.qZA()),2&F){const g=n.oxw().$implicit,L=n.oxw();n.xp6(1),n.Q6J("ngForOf",L.filterReactions(g))}}function er(F,Xe){if(1&F&&(n.TgZ(0,"mat-tab"),n.YNc(1,Vr,1,2,"ng-template",2),n.YNc(2,Es,3,0,"div",3),n.YNc(3,ll,2,1,"div",3),n.qZA()),2&F){const g=Xe.$implicit,L=n.oxw();n.xp6(2),n.Q6J("ngIf",0===L.filterReactions(g).length),n.xp6(1),n.Q6J("ngIf",L.filterReactions(g).length>0)}}let qn=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.postService=ye,this.postId=0,this.reactions=[]}componentName(){return"ReactionViewComponent"}ngOnInit(){this.fetchReactions(this.postId)}getReactionTypes(){let g=[];for(let L in Ot)g.push(L);return g}filterReactions(g){return this.reactions.filter(L=>L.reaction_type===g)}fetchReactions(g){let L=this.componentKey(S.Z.POSTS.FETCH_POST_REACTIONS(g));this.postService.fetchPostReactions(L,g,{slice:!0}),this.subscribe(L,null,(R,ye)=>{this.reactions=ye.data})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-reaction-view"]],inputs:{postId:"postId"},features:[n.qOj],decls:10,vars:3,consts:[[1,"dialog-content"],["mat-align-tabs","start"],["mat-tab-label",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["align","end"],["mat-button","","mat-dialog-close",""],[1,"txt-no-data"],["class","blog-post-area blog-post-area-comment bdr-top mt-2",4,"ngFor","ngForOf"],[1,"blog-post-area","blog-post-area-comment","bdr-top","mt-2"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","py-1"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"image-rounded",3,"src"],[1,"content","ms-2"],[2,"color","#44d62c"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-dialog-content",0)(1,"mat-tab-group",1)(2,"mat-tab"),n.YNc(3,dr,1,1,"ng-template",2),n.YNc(4,Ha,3,0,"div",3),n.YNc(5,al,2,1,"div",3),n.qZA(),n.YNc(6,er,4,2,"mat-tab",4),n.qZA()(),n.TgZ(7,"mat-dialog-actions",5)(8,"button",6),n._uU(9,"Close"),n.qZA()()),2&L&&(n.xp6(4),n.Q6J("ngIf",0===R.reactions.length),n.xp6(1),n.Q6J("ngIf",R.reactions.length>0),n.xp6(1),n.Q6J("ngForOf",R.getReactionTypes()))},dependencies:[e.sg,e.O5,Re.ZT,Re.xY,Re.H8,mt.lW,vr,to,ga,Yr.G],styles:[".dialog-content[_ngcontent-%COMP%]{min-height:200px;padding:0}.image-rounded[_ngcontent-%COMP%]{width:100px;height:100px;position:relative;overflow:hidden;border-radius:50%}img[_ngcontent-%COMP%]{display:inline;margin:0 auto;height:100%;width:auto}.txt-no-data[_ngcontent-%COMP%]{margin-top:50px;text-align:center}"]})}return F})();var bi=C(617);function _r(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("message","Submitting. Please wait..")}function wo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",29),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function jo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"label",30),n._UZ(2,"i",31),n.qZA(),n.TgZ(3,"input",32),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onImageSelected(R))}),n.qZA()()}}function no(F,Xe){1&F&&(n.TgZ(0,"div",33)(1,"small"),n._uU(2,"Minimum 1 document is needed."),n.qZA()())}function Ao(F,Xe){1&F&&(n.TgZ(0,"div",34)(1,"small"),n._uU(2,"Comment should be at least 20 characters."),n.qZA()())}function nr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6)(1,"form",7)(2,"div",8),n._UZ(3,"input",9),n.TgZ(4,"label",10),n._uU(5,"Add to Blockchain\xa0"),n.qZA(),n.TgZ(6,"small",11),n._uU(7,"If your review is added to the blockchain, you won't be able to further modify or delete this review in future."),n.qZA()(),n.TgZ(8,"section",12)(9,"h5",13),n._uU(10,"UPLOAD DOCUMENTS"),n.qZA(),n.TgZ(11,"small",14),n._uU(12,"Upload related documents."),n.qZA(),n.TgZ(13,"div",15)(14,"div"),n.YNc(15,wo,1,1,"img",16),n.qZA(),n.YNc(16,jo,4,0,"div",17),n.qZA(),n.YNc(17,no,3,0,"div",18),n.qZA(),n.TgZ(18,"div",19)(19,"h5",13),n._uU(20,"YOUR COMMENT/DESCRIPTION"),n.qZA(),n.TgZ(21,"div",20)(22,"div",21)(23,"label",22),n._uU(24,"Share related information about your purchase."),n.qZA(),n._UZ(25,"textarea",23),n.qZA()(),n.YNc(26,Ao,3,0,"div",24),n.qZA(),n.TgZ(27,"div",25)(28,"button",26),n._uU(29,"CANCEL"),n.qZA(),n._uU(30,"\xa0\xa0 "),n.TgZ(31,"button",27),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitVerificationRequest())}),n._UZ(32,"i",28),n._uU(33," SUBMIT "),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("formGroup",g.verificationForm),n.xp6(14),n.Q6J("ngForOf",g.uploadFiles),n.xp6(1),n.Q6J("ngIf",g.uploadFiles.length<3),n.xp6(1),n.Q6J("ngIf",g.isInvalidFileCount()),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.verificationForm.controls.comment)),n.xp6(5),n.Q6J("disabled",g.verificationForm.invalid||0===g.uploadFiles.length)}}function ps(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",5),2&F){const g=n.oxw();n.Q6J("message",g.completionMsg)}}function va(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",35)(1,"button",36),n._uU(2,"CLOSE"),n.qZA()())}let Ti=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.fileUploadService=ye,this.notifier=Dt,this.reviewService=Mn,this.reviewId=0,this.uploadFiles=[],this.verificationForm=new Z.cw({add_to_block_chain:new Z.NI(""),comment:new Z.NI("",[Z.kI.required,Z.kI.minLength(20)])}),this.completionMsg=null}componentName(){return"VerifyReviewComponent"}ngOnInit(){this.loading=!1}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}uploadImages(){this.loading=!0;let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.reviewId+"-verif-img"));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{let Mn=ye.data.map(vi=>vi.image_url);this.submitRequest(Mn)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}submitVerificationRequest(){this.notifier.log(this.verificationForm),this.uploadImages()}submitRequest(g){if(null==this.reviewId)return;this.loading=!0;let R={review_id:this.reviewId,add_to_block_chain:""!==this.verificationForm.controls.add_to_block_chain.value,comment:this.verificationForm.controls.comment.value,document_1:g.length>0?g[0]:"",document_2:g.length>1?g[1]:null,document_3:g.length>2?g[2]:null};const ye=this.componentKey(S.Z.REVIEWS.SEND_VERIFICATION_REQUEST(this.reviewId));this.reviewService.verifyReview(ye,R),this.subscribe(ye,null,(Dt,Mn)=>{this.loading=!1,this.notifier.success("Success","Request Sent."),this.completionMsg="Your request has been successfully submitted. You'll be notified once your request is reviewed."}),this.subscribe(this.getErrorKey(ye),null,(Dt,Mn)=>{this.loading=!1;let vi=Mn.data;this.completionMsg=vi.error.message,this.notifier.warning("Failed!",vi.error.message)})}isInvalidFileCount(){return 0===this.uploadFiles.length||this.uploadFiles.length>3}showInfo(){this.notifier.info("Info!","Upload related documents as a proof. For example invoice, payment slip etc.\n This will help us determine the authenticity of your affiliation with the item.",()=>{},1e4)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(oe.J),n.Y36(te.l),n.Y36(se.F))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-verify-review"]],inputs:{reviewId:"reviewId"},features:[n.qOj],decls:10,vars:4,consts:[["mat-dialog-title",""],[2,"float","right",3,"click"],[3,"message",4,"ngIf"],["class","review-r-d-input-fields",4,"ngIf"],["align","end",4,"ngIf"],[3,"message"],[1,"review-r-d-input-fields"],[3,"formGroup"],[1,"input-group","bdr-b","bdr-top"],["id","chk_add_to_block_chain","type","checkbox","name","add_to_block_chain","formControlName","add_to_block_chain",1,"form-check"],["for","chk_add_to_block_chain",1,"form-check-label","ms-2",2,"align-self","center"],[1,"field-subtitle","pb-2"],[1,"upload-img-area","review-rdi","pt-4","bdr-b","pb-4"],[1,"field-title"],[1,"field-subtitle"],[1,"post-last-step-gallery","mt-2"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","text-warning mt-1",4,"ngIf"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","cons",1,"form-label","field-subtitle"],["name","comment","id","cons","rows","3","placeholder","Enter description here..","formControlName","comment",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["mat-dialog-close","",1,"edit-boxed-inline-btn"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],["alt","",1,"m-1",3,"src","click"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],[1,"text-warning","mt-1"],[1,"text-warning"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"h5"),n._uU(2,"REQUEST VERIFICATION "),n.TgZ(3,"mat-icon",1),n.NdJ("click",function(){return R.showInfo()}),n._uU(4,"info"),n.qZA()()(),n.TgZ(5,"mat-dialog-content"),n.YNc(6,_r,1,1,"util-progress",2),n.YNc(7,nr,34,6,"div",3),n.YNc(8,ps,1,1,"app-notice-view",2),n.qZA(),n.YNc(9,va,3,0,"mat-dialog-actions",4)),2&L&&(n.xp6(6),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&null==R.completionMsg),n.xp6(1),n.Q6J("ngIf",!R.loading&&null!=R.completionMsg),n.xp6(1),n.Q6J("ngIf",null!=R.completionMsg))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.Wl,Z.JJ,Z.JL,Z.sg,Z.u,bi.Hw,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.t,St],styles:[".field-title[_ngcontent-%COMP%]{color:#44d62c}.field-subtitle[_ngcontent-%COMP%]{color:#f5f5f5;font-size:.8em}.dialog-subtitle[_ngcontent-%COMP%]{font-size:.8em;color:#01b9b9}"]})}return F})();function qs(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function ba(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)}function Qs(F,Xe){1&F&&(n.TgZ(0,"mat-icon",20),n._uU(1,"check_circle "),n.qZA())}function wi(F,Xe){1&F&&(n.TgZ(0,"div"),n._UZ(1,"img",21),n.TgZ(2,"small"),n._uU(3,"Added to Blockchain"),n.qZA()())}function Oo(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_1,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_1,n.LSH)}}function Ko(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_2,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_2,n.LSH)}}function or(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_3,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_3,n.LSH)}}function Xs(F,Xe){if(1&F&&(n.TgZ(0,"section",25)(1,"div",8)(2,"div",26)(3,"div",27)(4,"h6",28),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.TgZ(7,"p")(8,"span",29),n._uU(9),n.qZA(),n._uU(10),n.qZA(),n.TgZ(11,"h6",28),n._uU(12),n.qZA()()()()()),2&F){const g=Xe.$implicit;n.xp6(5),n.hij("On ",n.xi3(6,4,null==g?null:g.updated_at,!0),""),n.xp6(4),n.Oqu(null==g?null:g.action_taken_by_name),n.xp6(1),n.hij(" marked this review as ",null==g?null:g.status,""),n.xp6(2),n.hij(" ",null==g?null:g.reason," ")}}function Ml(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-dialog-actions",30)(1,"a",31),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.applyForReconsideration())}),n._uU(2,"APPLY FOR RECONSIDERATION"),n.qZA()()}}function Sr(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"section",7)(2,"div",8)(3,"div",9)(4,"div",10),n.YNc(5,Qs,2,0,"mat-icon",11),n.TgZ(6,"div",12)(7,"h4"),n._uU(8,"\xa0Verification Details"),n.qZA(),n.TgZ(9,"small",13),n._uU(10),n.qZA(),n.YNc(11,wi,4,0,"div",4),n.qZA()()(),n.TgZ(12,"div",14)(13,"p"),n._uU(14),n.qZA(),n.TgZ(15,"div",15),n.YNc(16,Oo,3,2,"div",16),n.YNc(17,Ko,3,2,"div",16),n.YNc(18,or,3,2,"div",16),n.qZA()()()(),n.TgZ(19,"section",17)(20,"h5"),n._uU(21,"Change Logs"),n.qZA()(),n.YNc(22,Xs,13,7,"section",18),n.YNc(23,Ml,3,0,"mat-dialog-actions",19),n.qZA()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",g.isVerified()),n.xp6(5),n.Oqu(null==g.verification?null:g.verification.status),n.xp6(1),n.Q6J("ngIf",null==g.verification||null==g.verification.review?null:g.verification.review.chained),n.xp6(3),n.Oqu(null==g.verification?null:g.verification.comment),n.xp6(2),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_1)),n.xp6(1),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_2)),n.xp6(1),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_3)),n.xp6(4),n.Q6J("ngForOf",null==g.verification?null:g.verification.actions),n.xp6(1),n.Q6J("ngIf",g.isReconsiderable())}}let jr=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.reviewService=ye,this.auth=Dt,this.notifier=Mn,this.reviewId=null,this.verification=null}componentName(){return"VerificationDetailsComponent"}ngOnInit(){this.fetchVerificationForReview()}fetchVerificationForReview(){if(null==this.reviewId)return;this.loading=!0;let g=this.componentKey(S.Z.REVIEWS.GET_VERIFICATION_FOR_REVIEW(this.reviewId));this.reviewService.getVerificationForReview(g,this.reviewId),this.subscribe(g,null,(L,R)=>{this.verification=R.data,console.log(this.verification),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}isVerified(){return"VERIFIED"===this.verification?.status}isReconsiderable(){return!this.verification?.already_reconsidered&&"REJECTED"===this.verification?.status}applyForReconsideration(){if(null==this.verification||!confirm("Do you want to send reconsideration request?"))return;let g=this.componentKey(S.Z.REVIEWS.RECONSIDER_VERIFICATION(this.verification.id));this.reviewService.reconsiderVerification(g,this.verification.id),this.subscribe(g,null,(L,R)=>{this.verification=R.data,this.notifier.success("Success","Request sent for reconsideration.")}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error","Could not send request for reconsideration.")})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-verification-details"]],inputs:{reviewId:"reviewId"},features:[n.qOj],decls:5,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[4,"ngIf"],[3,"bar"],[3,"padding"],[1,"blog-post-area","bdr-b"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","mb-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["class","verified-icon profile-img-rounded","aria-hidden","false","aria-label","View Product",4,"ngIf"],[1,"content"],[1,"verification-status"],[1,"blog-post-content","pb-3"],[1,"product-gallery","mt-2"],["class","single-product-item",4,"ngIf"],[1,"container","bdr-b","my-2","pb-1"],["class","blog-post-area blog-post-area-comment mt-2 bdr-b",4,"ngFor","ngForOf"],["align","end",4,"ngIf"],["aria-hidden","false","aria-label","View Product",1,"verified-icon","profile-img-rounded"],["src","assets/icons/blockchain.svg",2,"height","16px","width","auto","margin-right","10px"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],[1,"blog-post-area","blog-post-area-comment","mt-2","bdr-b"],[1,"blog-post-content"],[1,"comments-comment-item-content"],[2,"color","gray"],[1,"action-taken-by-name"],["align","end"],[3,"click"]],template:function(L,R){1&L&&(n.YNc(0,qs,1,1,"util-progress",0),n.YNc(1,ba,1,1,"util-progress",1),n.TgZ(2,"div",2),n._UZ(3,"i",3),n.qZA(),n.YNc(4,Sr,24,9,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(3),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,bi.Hw,Re.ZT,Re.H8,Ge.t,Yr.G],styles:[".action-taken-by-name[_ngcontent-%COMP%], .verified-icon[_ngcontent-%COMP%]{color:#44d62c}a[_ngcontent-%COMP%]{color:#44d62c;font-size:1em}.verification-status[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})();var xo=C(8174);let _s=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}reportReview(g,L){this.http.post(vn.e.POSTS.POST_REVIEW_REPORT(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}getReportCategories(){return[{name:"NUDITY OR SEXUAL ACTIVITY",value:"NUDITY_OR_SEXUAL_ACTIVITY"},{name:"HARASSMENT OR BULLYING",value:"HARASSMENT_OR_BULLYING"},{name:"OFFENSIVE",value:"OFFENSIVE"},{name:"FALSE INFORMATION",value:"FALSE_INFORMATION"},{name:"SPAM",value:"SPAM"},{name:"VIOLENCE",value:"VIOLENCE"},{name:"HATE SPEECH",value:"HATE_SPEECH"}]}getReportsForPost(g,L){this.http.get(vn.e.POSTS.GET_REPORT_DETAILS_FOR_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}getReportCountForPost(g,L){this.http.get(vn.e.POSTS.GET_REPORT_COUNT_FOR_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();var Ai=C(9157),Jo=C(8525);function Io(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("message","Submitting. Please wait..")}function Ys(F,Xe){if(1&F&&(n.TgZ(0,"mat-option",28),n._uU(1),n.qZA()),2&F){const g=Xe.$implicit;n.Q6J("value",g.value),n.xp6(1),n.hij(" ",g.name," ")}}function fo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",29),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Zr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"label",30),n._UZ(2,"i",31),n.qZA(),n.TgZ(3,"input",32),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onImageSelected(R))}),n.qZA()()}}function ms(F,Xe){1&F&&(n.TgZ(0,"div",33)(1,"small"),n._uU(2,"Minimum 1 document is needed."),n.qZA()())}function Co(F,Xe){1&F&&(n.TgZ(0,"div",34)(1,"small"),n._uU(2,"Comment should be at least 20 characters."),n.qZA()())}function Br(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6)(1,"form",7)(2,"mat-form-field",8)(3,"mat-label"),n._uU(4,"Report Category"),n.qZA(),n.TgZ(5,"mat-select",9),n.YNc(6,Ys,2,2,"mat-option",10),n.qZA()(),n.TgZ(7,"section",11)(8,"h5",12),n._uU(9,"UPLOAD DOCUMENTS"),n.qZA(),n.TgZ(10,"small",13),n._uU(11,"Upload related documents."),n.qZA(),n.TgZ(12,"div",14)(13,"div"),n.YNc(14,fo,1,1,"img",15),n.qZA(),n.YNc(15,Zr,4,0,"div",16),n.qZA(),n.YNc(16,ms,3,0,"div",17),n.qZA(),n.TgZ(17,"div",18)(18,"h5",12),n._uU(19,"YOUR COMMENT/DESCRIPTION"),n.qZA(),n.TgZ(20,"div",19)(21,"div",20)(22,"label",21),n._uU(23,"Share related information about your purchase."),n.qZA(),n._UZ(24,"textarea",22),n.qZA()(),n.YNc(25,Co,3,0,"div",23),n.qZA(),n.TgZ(26,"div",24)(27,"button",25),n._uU(28,"CANCEL"),n.qZA(),n._uU(29,"\xa0\xa0 "),n.TgZ(30,"button",26),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitVerificationRequest())}),n._UZ(31,"i",27),n._uU(32," SUBMIT "),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("formGroup",g.reportPostForm),n.xp6(5),n.Q6J("ngForOf",g.postCategory),n.xp6(8),n.Q6J("ngForOf",g.uploadFiles),n.xp6(1),n.Q6J("ngIf",g.uploadFiles.length<1),n.xp6(1),n.Q6J("ngIf",g.isInvalidFileCount()),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.reportPostForm.controls.description)),n.xp6(5),n.Q6J("disabled",g.reportPostForm.invalid||0===g.uploadFiles.length)}}function ea(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",5),2&F){const g=n.oxw();n.Q6J("message",g.completionMsg)}}function po(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",35)(1,"button",36),n._uU(2,"CLOSE"),n.qZA()())}let io=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.fileUploadService=ye,this.notifier=Dt,this.postReportService=Mn,this.reviewId=0,this.postId=0,this.uploadFiles=[],this.postCategory=this.postReportService.getReportCategories(),this.reportPostForm=new Z.cw({description:new Z.NI("",[Z.kI.required,Z.kI.minLength(20)]),category:new Z.NI("")}),this.completionMsg=null,this.selectedCategory=null}componentName(){return"PostReportComponent"}ngOnInit(){this.loading=!1}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}uploadImages(){this.loading=!0;let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.reviewId+"-verif-img"));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{let Mn=ye.data.map(vi=>vi.image_url);this.submitRequest(Mn)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}submitVerificationRequest(){this.notifier.log(this.reportPostForm),this.uploadImages()}submitRequest(g){if(null==this.reviewId)return;this.loading=!0;let L={post_id:this.postId,description:this.reportPostForm.controls.description.value,image:g.length>0?g[0]:"",category:this.reportPostForm.controls.category.value};const R=this.componentKey(S.Z.REVIEWS.POST_REVIEW_REPORT(this.reviewId));this.postReportService.reportReview(R,L),this.subscribe(R,null,(ye,Dt)=>{this.loading=!1,this.notifier.success("Success","Request Sent."),this.completionMsg="Your report has been successfully submitted. You'll be notified once your report is reviewed."}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{this.loading=!1;let Mn=Dt.data;this.completionMsg=Mn.error.message,this.notifier.warning("Failed!",Mn.error.message)})}isInvalidFileCount(){return 0===this.uploadFiles.length||this.uploadFiles.length>3}showInfo(){this.notifier.info("Info!","Upload related documents as a proof. For example invoice, payment slip etc.\n This will help us determine the authenticity of your affiliation with the item.",()=>{},1e4)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(oe.J),n.Y36(te.l),n.Y36(_s))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-report"]],inputs:{reviewId:"reviewId",postId:"postId"},features:[n.qOj],decls:10,vars:4,consts:[["mat-dialog-title",""],[2,"float","right",3,"click"],[3,"message",4,"ngIf"],["class","review-r-d-input-fields",4,"ngIf"],["align","end",4,"ngIf"],[3,"message"],[1,"review-r-d-input-fields"],[3,"formGroup"],["appearance","fill",1,"post-category"],["formControlName","category"],[3,"value",4,"ngFor","ngForOf"],[1,"upload-img-area","review-rdi","pt-4","bdr-b","pb-4"],[1,"field-title"],[1,"field-subtitle"],[1,"post-last-step-gallery","mt-2"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","text-warning mt-1",4,"ngIf"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","cons",1,"form-label","field-subtitle"],["name","comment","id","cons","rows","3","placeholder","Enter description here..","formControlName","description",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["mat-dialog-close","",1,"edit-boxed-inline-btn"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[3,"value"],["alt","",1,"m-1",3,"src","click"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],[1,"text-warning","mt-1"],[1,"text-warning"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"h5"),n._uU(2,"REPORT POST "),n.TgZ(3,"mat-icon",1),n.NdJ("click",function(){return R.showInfo()}),n._uU(4,"info"),n.qZA()()(),n.TgZ(5,"mat-dialog-content"),n.YNc(6,Io,1,1,"util-progress",2),n.YNc(7,Br,33,7,"div",3),n.YNc(8,ea,1,1,"app-notice-view",2),n.qZA(),n.YNc(9,po,3,0,"mat-dialog-actions",4)),2&L&&(n.xp6(6),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&null==R.completionMsg),n.xp6(1),n.Q6J("ngIf",!R.loading&&null!=R.completionMsg),n.xp6(1),n.Q6J("ngIf",null!=R.completionMsg))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.JJ,Z.JL,Z.sg,Z.u,bi.Hw,Ai.KE,Ai.hX,Ve.ey,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.t,Jo.gD,St],styles:[".field-title[_ngcontent-%COMP%]{color:#44d62c}.field-subtitle[_ngcontent-%COMP%]{color:#f5f5f5;font-size:.8em}.dialog-subtitle[_ngcontent-%COMP%]{font-size:.8em;color:#01b9b9}.post-category[_ngcontent-%COMP%]{width:100%} .mat-form-field-appearance-fill .mat-form-field-flex{background-color:#444}"]})}return F})();function qo(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function Ss(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)}function ya(F,Xe){1&F&&(n.TgZ(0,"mat-icon",19),n._uU(1,"check_circle "),n.qZA())}function sr(F,Xe){if(1&F&&(n.TgZ(0,"div",20)(1,"a",21),n._UZ(2,"img",22),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.report?null:g.report.image,n.LSH),n.xp6(1),n.s9C("src",null==g.report?null:g.report.image,n.LSH)}}function Oa(F,Xe){if(1&F&&(n.TgZ(0,"section",23)(1,"div",8)(2,"div",24)(3,"div",25)(4,"h6",26),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.TgZ(7,"p")(8,"span",27),n._uU(9),n.qZA(),n._uU(10),n.qZA(),n.TgZ(11,"h6",26),n._uU(12),n.qZA()()()()()),2&F){const g=Xe.$implicit;n.xp6(5),n.hij("On ",n.xi3(6,4,g.updated_at,!0),""),n.xp6(4),n.Oqu(g.action_taken_by_name),n.xp6(1),n.hij(" has taken action ",null==g?null:g.status,""),n.xp6(2),n.hij(" ",null==g?null:g.comment," ")}}function Ua(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"section",7)(2,"div",8)(3,"div",9)(4,"div",10),n.YNc(5,ya,2,0,"mat-icon",11),n.TgZ(6,"div",12)(7,"h4"),n._uU(8,"\xa0Report Details"),n.qZA(),n.TgZ(9,"small",13),n._uU(10),n.qZA()()()(),n.TgZ(11,"div",14)(12,"p"),n._uU(13),n.qZA(),n.TgZ(14,"div",15),n.YNc(15,sr,3,2,"div",16),n.qZA()()()(),n.TgZ(16,"section",17)(17,"h5"),n._uU(18,"Change Logs"),n.qZA()(),n.YNc(19,Oa,13,7,"section",18),n.qZA()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",g.hasReport()),n.xp6(5),n.hij("Status: ",null==g.report?null:g.report.status,""),n.xp6(3),n.Oqu(null==g.report?null:g.report.description),n.xp6(2),n.Q6J("ngIf",null!=(null==g.report?null:g.report.image)),n.xp6(4),n.Q6J("ngForOf",null==g.report?null:g.report.actions)}}let Ia=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.reviewService=ye,this.postReportService=Dt,this.auth=Mn,this.notifier=vi,this.reviewId=null,this.postId=null,this.report=null}componentName(){return"ReportDetailsComponent"}ngOnInit(){this.fetchReportDetails()}fetchReportDetails(){if(null==this.postId)return;this.loading=!0;let g=this.componentKey(S.Z.REVIEWS.GET_REPORT_DETAILS_FOR_REVIEW(this.reviewId));this.postReportService.getReportsForPost(g,this.postId),this.subscribe(g,null,(L,R)=>{let ye=R.data;ye.empty||(this.report=ye.content[0]),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}hasReport(){return null!=this.report}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(_s),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-report-details"]],inputs:{reviewId:"reviewId",postId:"postId"},features:[n.qOj],decls:5,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[4,"ngIf"],[3,"bar"],[3,"padding"],[1,"blog-post-area","bdr-b"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","mb-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["class","verified-icon profile-img-rounded","aria-hidden","false","aria-label","View Product",4,"ngIf"],[1,"content"],[1,"verification-status"],[1,"blog-post-content","pb-3"],[1,"product-gallery","mt-2"],["class","single-product-item",4,"ngIf"],[1,"container","bdr-b","my-2","pb-1"],["class","blog-post-area blog-post-area-comment mt-2 bdr-b",4,"ngFor","ngForOf"],["aria-hidden","false","aria-label","View Product",1,"verified-icon","profile-img-rounded"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],[1,"blog-post-area","blog-post-area-comment","mt-2","bdr-b"],[1,"blog-post-content"],[1,"comments-comment-item-content"],[2,"color","gray"],[1,"action-taken-by-name"]],template:function(L,R){1&L&&(n.YNc(0,qo,1,1,"util-progress",0),n.YNc(1,Ss,1,1,"util-progress",1),n.TgZ(2,"div",2),n._UZ(3,"i",3),n.qZA(),n.YNc(4,Ua,20,5,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(3),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,bi.Hw,Re.ZT,Ge.t,Yr.G],styles:[".action-taken-by-name[_ngcontent-%COMP%], .verified-icon[_ngcontent-%COMP%]{color:#44d62c}a[_ngcontent-%COMP%]{color:#44d62c;font-size:1em}.verification-status[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})();function ta(F,Xe){if(1&F&&(n.TgZ(0,"div",1)(1,"small",5),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",3),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(2),n.Oqu(null==g?null:g.attr_name),n.xp6(2),n.Oqu(null==g||null==g.value?null:g.value.toFixed(1))}}const na=function(F){return{"justify-content-around":F}};let Ae=(()=>{class F{constructor(){this.avgRating=0,this.ratings=[]}ngOnInit(){}getAvgRating(){return this.avgRating?.toFixed(1)}getRatings(){return null==this.ratings?[]:this.ratings}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-rating-view"]],inputs:{avgRating:"avgRating",ratings:"ratings"},decls:8,vars:5,consts:[[1,"all-avarage-rating","d-flex","py-3","scrollable",3,"ngClass"],[1,"single-rating-star"],[1,"avg"],[1,"icon-star"],["class","single-rating-star",4,"ngFor","ngForOf"],[1,"attr-name"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"div",1)(2,"small",2),n._uU(3,"Avg Rating"),n.qZA(),n.TgZ(4,"p",2),n._uU(5),n._UZ(6,"i",3),n.qZA()(),n.YNc(7,ta,6,2,"div",4),n.qZA()),2&L&&(n.Q6J("ngClass",n.VKq(3,na,R.getRatings().length<4)),n.xp6(5),n.Oqu(R.getAvgRating()),n.xp6(2),n.Q6J("ngForOf",R.getRatings()))},dependencies:[e.mk,e.sg],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.single-rating-star[_ngcontent-%COMP%]{margin-right:10px;padding-right:10px}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.5em!important}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff;font-size:10px!important;align-content:center}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}"]})}return F})();const Fe=function(F){return{"hide-reaction-box":F}};let le=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt){super(g,L,R),this.postService=ye,this.notifier=Dt,this.postId=null,this.onReacted=new n.vpe,this.reactionPostId=0}componentName(){return"ReactionComponent"}ngOnInit(){this.reactionPostId=0}onReactionItemClick(g){if(null==this.postId)return;let L=Ot[g],R=this.componentKey(S.Z.POSTS.SUBMIT_REACTION(this.postId));this.postService.react(R,this.postId,L);let ye=this.subscribe(R,null,(Dt,Mn)=>{this.onReacted.emit(L),ye?.unsubscribe(),this.reactionPostId=null==this.postId?0:this.postId,setTimeout(()=>{this.reactionPostId=0},5e3)});this.notifier.log("Reaction submitted: "+L)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-reaction"]],inputs:{postId:"postId"},outputs:{onReacted:"onReacted"},features:[n.qOj],decls:27,vars:6,consts:[[1,"box"],["type","checkbox",1,"field-reactions",3,"id"],[1,"text-desc"],[1,"btn-react",3,"for"],[1,"icon-smile"],[3,"ngClass"],[1,"toolbox"],[1,"overlay",3,"for"],[1,"reaction-like",3,"click"],[1,"legend-reaction"],[1,"reaction-love",3,"click"],[1,"reaction-haha",3,"click"],[1,"reaction-wow",3,"click"],[1,"reaction-sad",3,"click"],[1,"reaction-angry",3,"click"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0),n._UZ(1,"input",1),n.TgZ(2,"h3",2),n._uU(3,"Press space and after tab key to navigation"),n.qZA(),n.TgZ(4,"label",3),n._UZ(5,"i",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6)(8,"label",7),n.TgZ(9,"button",8),n.NdJ("click",function(){return R.onReactionItemClick("LIKE")}),n.TgZ(10,"span",9),n._uU(11,"Like"),n.qZA()(),n.TgZ(12,"button",10),n.NdJ("click",function(){return R.onReactionItemClick("LOVE")}),n.TgZ(13,"span",9),n._uU(14,"Love"),n.qZA()(),n.TgZ(15,"button",11),n.NdJ("click",function(){return R.onReactionItemClick("HAHA")}),n.TgZ(16,"span",9),n._uU(17,"Haha"),n.qZA()(),n.TgZ(18,"button",12),n.NdJ("click",function(){return R.onReactionItemClick("WOW")}),n.TgZ(19,"span",9),n._uU(20,"Wow"),n.qZA()(),n.TgZ(21,"button",13),n.NdJ("click",function(){return R.onReactionItemClick("SAD")}),n.TgZ(22,"span",9),n._uU(23,"Sad"),n.qZA()(),n.TgZ(24,"button",14),n.NdJ("click",function(){return R.onReactionItemClick("ANGRY")}),n.TgZ(25,"span",9),n._uU(26,"Angry"),n.qZA()()()()),2&L&&(n.xp6(1),n.MGl("id","like",R.postId,""),n.xp6(3),n.MGl("for","like",R.postId,""),n.xp6(2),n.Q6J("ngClass",n.VKq(4,Fe,R.reactionPostId===R.postId)),n.xp6(2),n.MGl("for","like",R.postId,""))},dependencies:[e.mk],styles:[".btn-react[_ngcontent-%COMP%]{font-size:20px;text-transform:uppercase;font-weight:600;letter-spacing:.05em;color:#fff;cursor:pointer;transition:.3s}.btn-react[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{opacity:.5}*[_ngcontent-%COMP%]{padding:0;margin:0}body[_ngcontent-%COMP%]{background:#e9eaed;font-family:arial,sans-serif}.field-reactions[_ngcontent-%COMP%]:checked:focus ~ .text-desc[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%], [class*=reaction-][_ngcontent-%COMP%], .text-desc[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);overflow:hidden;position:absolute;top:0;left:0}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%], .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:focus ~ .text-desc[_ngcontent-%COMP%]{clip:auto;overflow:visible;opacity:1}.main-title[_ngcontent-%COMP%]{background:#3a5795;padding:10px;color:#fff;text-align:center;font-size:16px;text-shadow:1px 1px 3px rgba(0,0,0,.3)}.text-desc[_ngcontent-%COMP%]{font-weight:400;text-align:center;transform:translateY(-50px);white-space:nowrap;font-size:13px;width:100%}[class*=reaction-][_ngcontent-%COMP%]{border:none;background-image:url(http://deividmarques.github.io/facebook-reactions-css/assets/images/facebook-reactions.png);background-color:transparent;display:block;cursor:pointer;height:48px;position:absolute;width:48px;z-index:11;top:-21px;transform-origin:50% 100%;transform:scale(.1);transition:all .3s;outline:none;will-change:transform;opacity:0}.box[_ngcontent-%COMP%]{position:relative}.overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:9;visibility:hidden}.field-reactions[_ngcontent-%COMP%]:focus ~ .label-reactions[_ngcontent-%COMP%]{border-color:#5890ff4d}.field-reactions[_ngcontent-%COMP%]:checked:focus ~ .label-reactions[_ngcontent-%COMP%]{border-color:transparent}.label-reactions[_ngcontent-%COMP%]{background:url(https://cdn4.iconfinder.com/data/icons/facebook-likes/100/1.png) no-repeat 0 0;border:2px dotted transparent;display:block;height:100px;margin:0 auto;width:100px;color:transparent;cursor:pointer}.toolbox[_ngcontent-%COMP%]{background:#fff;height:52px;box-shadow:0 0 0 1px #00000014,0 2px 2px #00000026;width:300px;border-radius:40px;top:-50px;left:0;position:absolute;visibility:hidden;opacity:0;transition:opacity .15s}.legend-reaction[_ngcontent-%COMP%]{background:rgba(0,0,0,.75);border-radius:10px;box-sizing:border-box;color:#fff;display:inline-block;font-size:11px;text-overflow:ellipsis;font-weight:700;line-height:20px;max-width:100%;opacity:0;overflow:hidden;padding:0 6px;transition:opacity 50ms ease;left:50%;position:absolute;text-align:center;top:-28px;transform:translate(-50%)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]{transform:scale(.8) translateY(-40px)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:hover, .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:focus{transition:all .2s ease-in;transform:scale(1) translateY(-35px)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:hover .legend-reaction[_ngcontent-%COMP%], .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:focus .legend-reaction[_ngcontent-%COMP%]{opacity:1}.box[_ngcontent-%COMP%]:hover .toolbox[_ngcontent-%COMP%]{opacity:1}.box[_ngcontent-%COMP%]:hover .toolbox[_ngcontent-%COMP%]{visibility:visible}.box[_ngcontent-%COMP%]:hover .reaction-love[_ngcontent-%COMP%]{transition-delay:.06s}.box[_ngcontent-%COMP%]:hover .reaction-haha[_ngcontent-%COMP%]{transition-delay:.09s}.box[_ngcontent-%COMP%]:hover .reaction-wow[_ngcontent-%COMP%]{transition-delay:.12s}.box[_ngcontent-%COMP%]:hover .reaction-sad[_ngcontent-%COMP%]{transition-delay:.15s}.box[_ngcontent-%COMP%]:hover .reaction-angry[_ngcontent-%COMP%]{transition-delay:.18s}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]{transform:scale(.8) translateY(-40px)}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:hover, .field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:focus{transition:all .2s ease-in;transform:scale(1) translateY(-35px)}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:hover .legend-reaction[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:focus .legend-reaction[_ngcontent-%COMP%]{opacity:1}.field-reactions[_ngcontent-%COMP%]:checked ~ .toolbox[_ngcontent-%COMP%]{opacity:1}.field-reactions[_ngcontent-%COMP%]:checked ~ .toolbox[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:checked ~ .overlay[_ngcontent-%COMP%]{visibility:visible}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-love[_ngcontent-%COMP%]{transition-delay:.03s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-haha[_ngcontent-%COMP%]{transition-delay:.09s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-wow[_ngcontent-%COMP%]{transition-delay:.12s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-sad[_ngcontent-%COMP%]{transition-delay:.15s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-angry[_ngcontent-%COMP%]{transition-delay:.18s}.reaction-like[_ngcontent-%COMP%]{left:0;background-position:0 -144px}.reaction-love[_ngcontent-%COMP%]{background-position:-48px 0;left:50px}.reaction-haha[_ngcontent-%COMP%]{background-position:-96px 0;left:100px}.reaction-wow[_ngcontent-%COMP%]{background-position:-144px 0;left:150px}.reaction-sad[_ngcontent-%COMP%]{background-position:-192px 0;left:200px}.reaction-angry[_ngcontent-%COMP%]{background-position:-240px 0;left:250px}.hide-reaction-box[_ngcontent-%COMP%]{display:none}"]})}return F})();function Qe(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",30),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onBlockChainMarkClick())}),n.qZA()}}function Ht(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-icon",31),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onVerifiedMarkClick())}),n._uU(1,"check_circle "),n.qZA()}}function Qn(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-icon",32),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDialog())}),n._uU(1,"check_circle "),n.qZA()}}function Ni(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDialog())}),n.TgZ(1,"a"),n._uU(2,"VERIFY"),n.qZA()()}}function Zo(F,Xe){1&F&&(n.TgZ(0,"small",34),n._uU(1,"RECONSIDER?"),n.qZA())}function Cl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDetails())}),n.TgZ(1,"a"),n._uU(2),n.YNc(3,Zo,2,0,"small",33),n.qZA()()}if(2&F){const g=n.oxw();n.xp6(2),n.hij(" VERIFICATION STATUS: ",null==g.review?null:g.review.verification_status," "),n.xp6(1),n.Q6J("ngIf",null==g.review?null:g.review.verification_reconsiderable)}}function ia(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onEditReviewClick())}),n.TgZ(1,"a"),n._uU(2,"EDIT REVIEW"),n.qZA()()}}function sc(F,Xe){if(1&F&&(n.TgZ(0,"div",38)(1,"a",39),n._UZ(2,"img",40),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function Lr(F,Xe){1&F&&(n.TgZ(0,"div",38)(1,"a",41),n._uU(2,"View All"),n.qZA()())}function Tl(F,Xe){if(1&F&&(n.TgZ(0,"div",35),n.YNc(1,sc,3,2,"div",36),n.YNc(2,Lr,3,0,"div",37),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.takeReviewThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.review.thumbs.length>3)}}const Dl=function(F){return{"background-tint":F}},Qo=function(F){return[F]},kc=function(F){return{"product-menu-bar":F}};let El=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R),this.reviewService=ye,this.dialog=Dt,this.auth=Mn,this.notifier=vi,this.reportService=Fo,this.review=null,this.tinted=!1,this.showMenuBox=!1}componentName(){return"SingleReviewItemComponent"}ngOnInit(){}onReacted(g){this.reloadReview()}reloadReview(){if(null==this.review||null==this.review.id)return;let g=this.componentKey(S.Z.REVIEWS.LOAD_REVIEW(this.review.slug));this.reviewService.fetchReview(g,this.review?.product_slug,this.review?.slug),this.subscribe(g,null,(L,R)=>{this.review=R.data})}takeReviewThumbs(g){return null==this.review||g<1?[]:this.review.thumbs.length{console.log(`Dialog result: ${ye}`)})}onItemClick(g){this.showMenuBox=!this.showMenuBox}openReviewDetails(){this.showMenuBox?this.showMenuBox=!1:this.navigate("/reviews/"+this.review?.product_slug+"/"+this.review?.slug+"/"+this.review?.post?.id,g=>{})}onEditReviewClick(){null!=this.review&&("VERIFIED"===this.review.verification_status?this.showVerifiedReviewEditWarning():this.openEditReviewDialog())}showVerifiedReviewEditWarning(){const g=this.dialog.open(St);let L=g.componentInstance;L.title="YOU'RE EDITING A VERIFIED REVIEW!!",L.message="\n If you update a verified review, it'll cause this review to be unverified automatically.\n In this case you'll need to apply for verification again.\n ",L.positiveBtnText="EDIT",L.negativeBtnTxt="CANCEL",L.onPositiveBtn.subscribe(()=>{this.openEditReviewDialog(),g.close()}),L.onNegativeBtn.subscribe(()=>{g.close()}),g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}openEditReviewDialog(){if(null==this.review)return;const g=this.dialog.open(rt);let L=g.componentInstance;L.review=this.review,L.productId=this.review.product_id,g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}isMine(){if(!this.auth.isAuthenticated())return!1;const g=this.auth.getAuth();return this.review?.post?.posted_by_username===g.username}canRequestVerification(){return this.isMine()&&null==this.review?.verification_status}hasVerification(){return this.isMine()&&null!=this.review?.verification_status}isVerified(){return"VERIFIED"===this.review?.verification_status}openVerificationDialog(){if(null==this.review)return;if(null!=this.review.verification_status)return void this.openVerificationDetails();const g=this.dialog.open(Ti);g.componentInstance.reviewId=this.review.id,g.afterClosed().subscribe(R=>{this.reloadReview()})}resolveReportView(){if(null==this.review?.post)return;let g=this.componentKey(S.Z.REVIEWS.GET_REPORT_EXISTS(this.review?.post.id));this.reportService.getReportCountForPost(g,this.review.post.id),this.subscribe(g,null,(L,R)=>{R.data>0?this.openReportDetails():this.openReportDialog(),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}openReportDialog(){if(null==this.review?.post)return;const g=this.dialog.open(io),L=g.componentInstance;L.reviewId=this.review.id,L.postId=this.review.post?.id,g.afterClosed().subscribe(R=>{this.reloadReview()})}onVerifiedMarkClick(){this.notifier.success("Verified Review","This review has been verified by "+this.review?.verified_by)}openVerificationDetails(){if(null==this.review)return;const g=this.dialog.open(jr);g.componentInstance.reviewId=this.review.id,g.afterClosed().subscribe(R=>{})}openReportDetails(){if(null==this.review?.post)return;const g=this.dialog.open(Ia),L=g.componentInstance;L.reviewId=this.review.id,L.postId=this.review.post.id,g.afterClosed().subscribe(R=>{})}isBlockChained(){return null!=this.review&&this.review.chained}onBlockChainMarkClick(){if(null==this.review)return;let g=this.review.hash;this.notifier.info("Info","Blockchain Digest: "+g,()=>{xo.g.copyToClipboard(g)},5e3)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(Re.uw),n.Y36(_e.e),n.Y36(te.l),n.Y36(_s))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-single-review-item"]],inputs:{review:"review",tinted:"tinted"},features:[n.qOj],decls:55,vars:36,consts:[[1,"blog-post-area","mt-4",3,"ngClass"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","my-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"profile-img","profile-img-rounded",3,"src","routerLink"],[1,"content","ms-2"],[3,"routerLink"],[1,"user-name"],[1,"top-icons-area","pt-2"],["style","height: 16px; width: auto; margin-right: 10px;","src","assets/icons/blockchain.svg",3,"click",4,"ngIf"],["class","verified-icon","aria-hidden","false","aria-label","View Product",3,"click",4,"ngIf"],["class","unverified-icon","aria-hidden","false","aria-label","View Product",3,"click",4,"ngIf"],["aria-hidden","false","aria-label","View Product",1,"inventory-icon",3,"routerLink"],[3,"ngClass","click"],[1,"icon-dot-3"],[1,"productMenuBox"],[3,"click",4,"ngIf"],[3,"click"],[3,"avgRating","ratings"],[1,"blog-post-content","py-2",3,"click"],[2,"color","green"],[2,"color","darkgoldenrod"],["class","product-gallery",4,"ngIf"],[1,"blog-post-comment-section","d-flex","justify-content-around","bdr-b","py-3","mt-2"],[1,"react","d-flex","align-items-center"],[3,"postId","onReacted"],[1,"comment","d-flex","align-items-center",3,"click"],[1,"icon-chat"],[1,"share","d-flex","align-items-center"],[1,"icon-paper-plane"],["src","assets/icons/blockchain.svg",2,"height","16px","width","auto","margin-right","10px",3,"click"],["aria-hidden","false","aria-label","View Product",1,"verified-icon",3,"click"],["aria-hidden","false","aria-label","View Product",1,"unverified-icon",3,"click"],["style","color: #4AD295;",4,"ngIf"],[2,"color","#4AD295"],[1,"product-gallery"],["class","single-product-item",4,"ngFor","ngForOf"],["class","single-product-item",4,"ngIf"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],["href","#"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),n._UZ(4,"img",4),n.TgZ(5,"div",5)(6,"a",6)(7,"h4",7),n._uU(8),n.qZA()(),n.TgZ(9,"p"),n._uU(10),n.ALo(11,"readableDate"),n.qZA()()(),n.TgZ(12,"div",8),n.YNc(13,Qe,1,0,"img",9),n.YNc(14,Ht,2,0,"mat-icon",10),n.YNc(15,Qn,2,0,"mat-icon",11),n.TgZ(16,"mat-icon",12),n._uU(17,"inventory_2 "),n.qZA(),n.TgZ(18,"div",13),n.NdJ("click",function(Dt){return R.onItemClick(Dt)}),n._UZ(19,"i",14),n.TgZ(20,"div",15)(21,"ul"),n.YNc(22,Ni,3,0,"li",16),n.YNc(23,Cl,4,2,"li",16),n.YNc(24,ia,3,0,"li",16),n.TgZ(25,"li",17),n.NdJ("click",function(){return R.resolveReportView()}),n.TgZ(26,"a"),n._uU(27,"REPORT"),n.qZA()()()()()()(),n._UZ(28,"app-rating-view",18),n.TgZ(29,"div",19),n.NdJ("click",function(){return R.openReviewDetails()}),n.TgZ(30,"h5"),n._uU(31),n.qZA(),n.TgZ(32,"p",20),n._uU(33,"Pros"),n.qZA(),n.TgZ(34,"p"),n._uU(35),n.qZA(),n._UZ(36,"br"),n.TgZ(37,"p",21),n._uU(38,"Cons"),n.qZA(),n.TgZ(39,"p"),n._uU(40),n.qZA()(),n.YNc(41,Tl,3,2,"div",22),n.qZA(),n.TgZ(42,"div",23)(43,"div",24)(44,"app-reaction",25),n.NdJ("onReacted",function(Dt){return R.onReacted(Dt)}),n.qZA(),n.TgZ(45,"h4",17),n.NdJ("click",function(Dt){return R.onReactionCountClick(Dt)}),n._uU(46),n.qZA()(),n.TgZ(47,"div",26),n.NdJ("click",function(){return R.openReviewDetails()}),n._UZ(48,"i",27),n.TgZ(49,"h4"),n._uU(50),n.qZA(),n._UZ(51,"h4"),n.qZA(),n.TgZ(52,"div",28),n._UZ(53,"i",29)(54,"h4"),n.qZA()()()),2&L&&(n.Q6J("ngClass",n.VKq(26,Dl,R.tinted)),n.xp6(4),n.s9C("src",null!=(null==R.review||null==R.review.post?null:R.review.post.posted_by_photo)?null==R.review||null==R.review.post?null:R.review.post.posted_by_photo:"assets/img/default-avatar.png",n.LSH),n.Q6J("routerLink",n.VKq(28,Qo,"/u/"+(null==R.review||null==R.review.post?null:R.review.post.posted_by_username))),n.xp6(2),n.Q6J("routerLink",n.VKq(30,Qo,"/u/"+(null==R.review||null==R.review.post?null:R.review.post.posted_by_username))),n.xp6(2),n.Oqu(null==R.review?null:R.review.posted_by_name),n.xp6(2),n.Oqu(n.xi3(11,23,null==R.review?null:R.review.updated_at,!0)),n.xp6(3),n.Q6J("ngIf",R.isBlockChained()),n.xp6(1),n.Q6J("ngIf",R.isVerified()),n.xp6(1),n.Q6J("ngIf",R.isMine()&&!R.isVerified()),n.xp6(1),n.Q6J("routerLink",n.VKq(32,Qo,"/products/"+(null==R.review?null:R.review.product_id)+"/"+(null==R.review?null:R.review.product_slug))),n.xp6(2),n.Q6J("ngClass",n.VKq(34,kc,R.showMenuBox)),n.xp6(4),n.Q6J("ngIf",R.canRequestVerification()),n.xp6(1),n.Q6J("ngIf",R.hasVerification()),n.xp6(1),n.Q6J("ngIf",R.isMine()),n.xp6(4),n.Q6J("avgRating",null==R.review?null:R.review.average_rating)("ratings",null==R.review?null:R.review.ratings),n.xp6(3),n.Oqu(null==R.review?null:R.review.title),n.xp6(4),n.Oqu(null==R.review?null:R.review.pros),n.xp6(5),n.Oqu(null==R.review?null:R.review.cons),n.xp6(1),n.Q6J("ngIf",null!=R.review&&R.review.thumbs.length>0),n.xp6(3),n.Q6J("postId",null==R.review||null==R.review.post?null:R.review.post.id),n.xp6(2),n.hij("(",null==R.review||null==R.review.post||null==R.review.post.reaction_stats?null:R.review.post.reaction_stats.total,")"),n.xp6(4),n.hij("(",null==R.review||null==R.review.post||null==R.review.post.reaction_stats?null:R.review.post.reaction_stats.comments,")"))},dependencies:[e.mk,e.sg,e.O5,l.rH,bi.Hw,Ae,le,Yr.G],styles:['.blog-post-area[_ngcontent-%COMP%] .blog-post-top-left[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.7rem}.user-name[_ngcontent-%COMP%]{color:#44d62c!important}.top-icons-area[_ngcontent-%COMP%]{display:flex}.inventory-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0}.verified-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0;color:#44d62c}.unverified-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0;color:gray}.flaticon-more[_ngcontent-%COMP%]{font-size:1.3em}.view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none;position:relative;cursor:pointer}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:10px;padding:0 10px;list-style:none;width:250px;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return F})();function wa(F,Xe){1&F&&n._UZ(0,"util-progress",7),2&F&&n.Q6J("bar",!0)}function Xo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",8)(1,"div",4)(2,"div",9)(3,"div",10)(4,"label",11)(5,"small"),n._uU(6,"From"),n.qZA()(),n._UZ(7,"input",12),n.qZA(),n.TgZ(8,"div",10)(9,"label",13)(10,"small"),n._uU(11,"To"),n.qZA()(),n.TgZ(12,"input",14),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.qZA()()(),n.TgZ(13,"div",15)(14,"div",16)(15,"div",17)(16,"label",18)(17,"small"),n._uU(18,"Verification"),n.qZA()(),n.TgZ(19,"select",19),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(20,"option",20),n._uU(21,"Choose"),n.qZA(),n.TgZ(22,"option",21),n._uU(23,"All Reviews"),n.qZA(),n.TgZ(24,"option",22),n._uU(25,"Only Verified"),n.qZA()()()(),n.TgZ(26,"div",16)(27,"div",17)(28,"label",23)(29,"small"),n._uU(30,"Rating"),n.qZA()(),n.TgZ(31,"select",24),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(32,"option",20),n._uU(33,"Choose"),n.qZA(),n.TgZ(34,"option",25),n._uU(35,"1"),n.qZA(),n.TgZ(36,"option",26),n._uU(37,"2"),n.qZA(),n.TgZ(38,"option",27),n._uU(39,"3"),n.qZA(),n.TgZ(40,"option",28),n._uU(41,"4"),n.qZA(),n.TgZ(42,"option",29),n._uU(43,"5"),n.qZA(),n.TgZ(44,"option",30),n._uU(45,"6"),n.qZA(),n.TgZ(46,"option",31),n._uU(47,"7"),n.qZA(),n.TgZ(48,"option",32),n._uU(49,"8"),n.qZA(),n.TgZ(50,"option",33),n._uU(51,"9"),n.qZA(),n.TgZ(52,"option",34),n._uU(53,"10"),n.qZA()()()(),n.TgZ(54,"div",16)(55,"div",17)(56,"label",35)(57,"small"),n._uU(58,"Sort"),n.qZA()(),n.TgZ(59,"select",36),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(60,"option",20),n._uU(61,"Choose"),n.qZA(),n.TgZ(62,"option",37),n._uU(63,"Ascending"),n.qZA(),n.TgZ(64,"option",38),n._uU(65,"Descending"),n.qZA()()()()()()()}if(2&F){const g=n.oxw();n.xp6(7),n.Q6J("formControl",g.fromDateFilter),n.xp6(5),n.Q6J("formControl",g.toDateFilter),n.xp6(7),n.Q6J("formControl",g.verificationFilter),n.xp6(1),n.Q6J("selected",""===g.verificationFilter.value),n.xp6(11),n.Q6J("formControl",g.ratingFilter),n.xp6(1),n.Q6J("selected",""===g.ratingFilter.value),n.xp6(27),n.Q6J("formControl",g.sortFilter),n.xp6(1),n.Q6J("selected",""===g.sortFilter.value)}}function Pr(F,Xe){1&F&&n._UZ(0,"util-progress",39),2&F&&n.Q6J("padding",50)}function Ms(F,Xe){if(1&F&&(n.TgZ(0,"div"),n._UZ(1,"app-single-review-item",41),n.qZA()),2&F){const g=Xe.$implicit;n.xp6(1),n.Q6J("review",g)}}function As(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Ms,2,1,"div",40),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.reviews?null:g.reviews.content)}}function qr(F,Xe){1&F&&(n.TgZ(0,"a",42),n._uU(1," View All Reviews "),n.qZA())}let Bs=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.eventBus=g,this.router=L,this.subContainer=R,this.reviewService=ye,this.productId=0,this.username=null,this.reviews=null,this.verificationFilter=new Z.NI(""),this.ratingFilter=new Z.NI(""),this.sortFilter=new Z.NI(""),this.fromDateFilter=new Z.NI(""),this.toDateFilter=new Z.NI("")}componentName(){return"ReviewListComponent"}ngOnInit(){this.fetchReviews({})}fetchReviews(g){null!=this.productId&&this.productId>0?this.fetchProductReviews(g):null!=this.username&&this.fetchUserReviews(g)}fetchProductReviews(g){this.loading=!0;let L=this.componentKey(S.Z.REVIEWS.LOADED_PRODUCT_REVIEWS(this.productId));this.reviewService.fetchProductReviews(L,this.productId,g),this.subscribe(L,null,(R,ye)=>{this.reviews=ye.data,this.loading=!1})}fetchUserReviews(g){if(null==this.username)return;this.loading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_USER_REVIEWS(this.username));this.reviewService.fetchUserReviews(L,this.username,g),this.subscribe(L,null,(R,ye)=>{this.reviews=ye.data,this.loading=!1})}onFilterChange(g){this.fetchReviews({verification_status:null==this.verificationFilter.value?"":this.verificationFilter.value,rating:null==this.ratingFilter.value?"":this.ratingFilter.value,sort_direction:null==this.sortFilter.value?"":this.sortFilter.value,from_date:""===this.fromDateFilter.value?"":new Date(this.fromDateFilter.value?this.fromDateFilter.value:""),to_date:""===this.toDateFilter.value?"":new Date(this.toDateFilter.value?this.toDateFilter.value:"")})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-review-list"]],inputs:{productId:"productId",username:"username"},features:[n.qOj],decls:7,vars:5,consts:[[3,"bar",4,"ngIf"],["class","select-category-area pt-4",4,"ngIf"],[3,"padding",4,"ngIf"],[4,"ngIf"],[1,"container"],[1,"view-all-reviews","pb-3","text-end"],["href","#",4,"ngIf"],[3,"bar"],[1,"select-category-area","pt-4"],[1,"date-filters","mb-2"],[1,"single-date-filter"],["for","from_date"],["id","from_date","type","date","name","from_date",3,"formControl"],["for","to_date"],["id","to_date","type","date","name","to_date",3,"formControl","change"],[1,"row"],[1,"col"],[1,"single-category-item"],["for","verification"],["id","verification","aria-label","Taste",1,"form-select",3,"formControl","change"],["value","",3,"selected"],["value",""],["value","VERIFIED"],["for","rating"],["id","rating","aria-label","1",1,"form-select",3,"formControl","change"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["value","8"],["value","9"],["value","10"],["for","sort"],["id","sort","aria-label","Select",1,"form-select",3,"formControl","change"],["value","ASC"],["value","DESC"],[3,"padding"],[4,"ngFor","ngForOf"],[3,"review"],["href","#"]],template:function(L,R){1&L&&(n.YNc(0,wa,1,1,"util-progress",0),n.YNc(1,Xo,66,8,"section",1),n.YNc(2,Pr,1,1,"util-progress",2),n.YNc(3,As,2,1,"div",3),n.TgZ(4,"div",4)(5,"div",5),n.YNc(6,qr,2,0,"a",6),n.qZA()()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(3),n.Q6J("ngIf",!(null!=R.reviews&&R.reviews.last)))},dependencies:[e.sg,e.O5,Z.YN,Z.Kr,Z.Fj,Z.EJ,Z.JJ,Z.oH,Ge.t,El],styles:["input[type=date][_ngcontent-%COMP%]{color:gray!important;background-color:#444;max-width:100%;padding:5px 10px;border-radius:.25em;border:.5px solid black;margin-top:5px}.single-date-filter[_ngcontent-%COMP%]{display:flex;flex-direction:column}.date-filters[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]})}return F})();var Ro=C(6929);function Va(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("padding",70)}function Sl(F,Xe){if(1&F&&(n.TgZ(0,"div",30)(1,"div",31)(2,"h2",32),n._uU(3),n.qZA(),n.TgZ(4,"h3"),n._uU(5),n.qZA(),n.TgZ(6,"span",32),n._uU(7),n.qZA()()()),2&F){const g=n.oxw();n.xp6(3),n.Oqu(g.product.name),n.xp6(2),n.Oqu(g.product.vendor_name),n.xp6(2),n.Oqu(g.product.description)}}function Gl(F,Xe){1&F&&n._UZ(0,"util-progress",33),2&F&&n.Q6J("size",30)("padding",70)}function Hs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",34)(1,"div",4)(2,"div",35),n._UZ(3,"img",36),n.TgZ(4,"div",37)(5,"h4"),n._uU(6),n.qZA(),n.TgZ(7,"p"),n._uU(8,"Your opinion matters. Let's help our community by posting a review."),n.qZA()()(),n.TgZ(9,"div",38)(10,"a",39),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openPostReviewDialog())}),n._UZ(11,"i",40),n.TgZ(12,"h4"),n._uU(13," Post a review"),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(3),n.s9C("src",g.isLoggedIn()?g.getAvatar():"assets/img/default-avatar.png",n.LSH),n.s9C("alt",g.getAuth().name),n.xp6(3),n.hij("Hey, ",g.getAuth().name,"")}}function ja(F,Xe){if(1&F&&n._UZ(0,"app-single-review-item",44),2&F){const g=n.oxw(2);n.Q6J("review",g.myReview)("tinted",!0)}}function es(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"h5",9),n._uU(2,"YOUR REVIEW"),n.qZA(),n.TgZ(3,"div",41),n._UZ(4,"div",42),n.YNc(5,ja,1,2,"app-single-review-item",43),n.qZA()()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",null!=g.myReview)}}function ts(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",45),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCriticReviewsMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showCriticReviewsMenu)("items",g.getMenuItems())}}function Wl(F,Xe){1&F&&n._UZ(0,"util-progress",46),2&F&&n.Q6J("bar",!0)}function gs(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}const ns=function(F){return{"background-image":F}};let vc=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){super(g,L,R),this.auth=Dt,this.reviewService=Mn,this.notifier=vi,this.productService=Fo,this.dialog=Ya,this.seoTitle=Rd,this.seoMeta=kd,this.carouselItems=[],this.productId=0,this.productSlug="",this.myReview=null,this.avgRatings=[],this.product=null,this.myReviewLoading=!1,this.criticReviews=null,this.criticReviewers=[],this.criticReviewsPeriod="THIS MONTH",this.criticReviewsLoading=!1,this.showCriticReviewsMenu=!1,this.badgeForCritic="Critic",this.productId=ye.snapshot.params.id,this.productSlug=ye.snapshot.params.slug}componentName(){return"ProductDetailsComponent"}ngOnInit(){this.registerSubscriptions(),this.fetchProductDetails()}fetchProductDetails(){let g=this.componentKey(S.Z.PRODUCTS.PRODUCT_DETAILS_LOADED(this.productSlug));this.productService.fetchDetails(g,this.productSlug),this.subscribe(g,null,(L,R)=>{this.product=R.data,this.resolveSeo(this.product),this.fetchAvgRating(this.productId),this.auth.isAuthenticated()&&this.fetchMyReview(this.productId);let ye=Nt.b.calculateRange(this.criticReviewsPeriod.replace(" ","_"));this.fetchCriticReviews({page:0,from_date:ye?.fromDate,to_date:ye?.toDate,slice:!0,badge:this.badgeForCritic})})}fetchMyReview(g){this.myReviewLoading=!0;let L=this.componentKey(S.Z.REVIEWS.LOAD_MY_REVIEW(g));this.reviewService.fetchMyReview(L,this.productId),this.subscribe(L,null,(R,ye)=>{this.myReview=ye.data,this.myReviewLoading=!1}),this.subscribe(this.getErrorKey(L),null,(R,ye)=>{this.myReviewLoading=!1})}fetchAvgRating(g){let L=this.componentKey(S.Z.REVIEWS.LOADED_PRODUCT_AVG_RATINGS());this.productService.fetchAvgRatings(L,g),this.subscribe(L,null,(R,ye)=>{this.avgRatings=ye.data})}getMenuItems(){return bt.$}fetchCriticReviews(g){this.criticReviewsLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_CRITIC_REVIEWS());this.reviewService.fetchProductReviews(L,this.productId,g),this.subscribe(L,null,(R,ye)=>{this.criticReviews=ye.data,this.criticReviewers=F.mapToCarouselItems(ye.data),this.criticReviewsLoading=!1})}static mapToCarouselItems(g){return g.content.map(L=>({id:L?.id,slug:L?.slug,title:L?.posted_by_name,img:null!=L?.posted_by_avatar?L?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+L.id+"/"+L.post_id,badges:[]}))}onCriticReviewsMenuItemClick(g){this.showCriticReviewsMenu&&(this.showCriticReviewsMenu=!1),this.criticReviewsPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic})}isLoggedIn(){return this.auth.isAuthenticated()}registerSubscriptions(){let g=this.globalKey(S.Z.REVIEWS.MY_REVIEW_POSTED(this.productId));this.subscribe(g,null,(L,R)=>{this.myReview=R.data,this.myReviewLoading=!1})}onUserItemClick(g){this.notifier.log(g)}strSubstring(g,L){let R=w.m.takeOnly(g,L);return null!=g&&g.length>L&&(R+="..See More.."),R}getAuth(){return this.auth.getAuth()}getAvatar(){return this.getAuth().avatar??"assets/img/default-avatar.png"}openPostReviewDialog(){if(!this.auth.isAuthenticated())return void this.router.navigate(["/login"]);const g=this.dialog.open(rt,{disableClose:!0});g.componentInstance.productId=this.productId,g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}resolveSeo(g){null!=g&&this.initSeoItems(this.seoTitle,this.seoMeta,"Review - Rating for "+g.name,g.description,["Buy "+g.name," review,"+g.name," rating, where to buy"],null,null,g?.cover_photo,this.getPermalink())}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(_e.e),n.Y36(se.F),n.Y36(te.l),n.Y36(Qt.M),n.Y36(Re.uw),n.Y36(nn.Dx),n.Y36(nn.h_))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-product-details"]],features:[n.qOj],decls:56,vars:19,consts:[[1,"product-single-post",3,"ngStyle"],[3,"padding",4,"ngIf"],["class","container d-flex align-items-end h-100 blurry-background",4,"ngIf"],["id","my_review",1,"rating-reviews-area","bdr-b","blog-post-area"],[1,"container"],[3,"ratings","avgRating"],[3,"size","padding",4,"ngIf"],["class","comunity-post-area pt-4 pb-3 mt-3 bdr-top",4,"ngIf"],[4,"ngIf"],[1,"section-header"],[1,"reviewers-section","pb-2","mt-2","bdr-b"],[1,"reviewers-content","section-title","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items"],[3,"bar",4,"ngIf"],[1,"bdr-top","mt-4"],[1,"container","section-header"],[3,"productId"],[1,"youtube-reviews-section","bdr-b","bdr-top","mb-5","pb-3"],[1,"section-title","d-flex","justify-content-between","my-4"],[3,"items","design"],[1,"owl-carousel","youtube-reviews"],[1,"item","single-review-area"],["src","../../../../../assets/img/youtube-reviews/youtube-review.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-2.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-3.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-4.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-5.png","alt",""],[3,"padding"],[1,"container","d-flex","align-items-end","h-100","blurry-background"],[1,"recipe-content","pb-4"],[1,"excerpt"],[3,"size","padding"],[1,"comunity-post-area","pt-4","pb-3","mt-3","bdr-top"],[1,"comunity-post","d-flex","mb-4"],[1,"profile-img-bg","profile-img-rounded",3,"src","alt"],[1,"content","ms-3"],[1,"comunity-add-post","d-flex","justify-content-end","align-items-center"],[1,"d-flex","align-items-center",3,"click"],[1,"flaticon-plus"],[1,"row","bdr-top","mb-3"],[1,"section-title","ms-2"],[3,"review","tinted",4,"ngIf"],[3,"review","tinted"],[3,"showMenubar","items","menuItemClick"],[3,"bar"]],template:function(L,R){1&L&&(n.TgZ(0,"div")(1,"section",0),n.YNc(2,Va,1,1,"util-progress",1),n.YNc(3,Sl,8,3,"div",2),n.qZA(),n.TgZ(4,"section",3)(5,"div",4),n._UZ(6,"app-rating-view",5),n.YNc(7,Gl,1,2,"util-progress",6),n.YNc(8,Hs,14,3,"section",7),n.qZA(),n.YNc(9,es,6,1,"div",8),n.qZA(),n.TgZ(10,"h5",9),n._uU(11,"CRITIC REVIEWS"),n.qZA(),n.TgZ(12,"section",10)(13,"div",4)(14,"div",11),n.NdJ("click",function(){return R.showCriticReviewsMenu=!R.showCriticReviewsMenu}),n.TgZ(15,"h6"),n._uU(16,"CHOOSE PERIOD"),n.qZA(),n.TgZ(17,"a")(18,"h5"),n._uU(19),n.qZA()(),n._UZ(20,"img",12),n.qZA(),n.YNc(21,ts,1,2,"app-menubox",13),n._UZ(22,"app-small-carousel",14),n.YNc(23,Wl,1,1,"util-progress",15),n.YNc(24,gs,3,0,"div",8),n.qZA()(),n.TgZ(25,"section",16)(26,"h5",17),n._uU(27,"USER REVIEWS"),n.qZA(),n._UZ(28,"app-review-list",18),n.qZA(),n.TgZ(29,"section",19)(30,"div",4)(31,"div",20)(32,"h5"),n._uU(33,"REVIEWS ON YOUTUBE"),n.qZA(),n.TgZ(34,"h5"),n._uU(35,"VIEW ALL"),n.qZA()(),n._UZ(36,"app-small-carousel",21),n.TgZ(37,"div",22)(38,"div",23),n._UZ(39,"img",24),n.qZA(),n.TgZ(40,"div",23),n._UZ(41,"img",25),n.qZA(),n.TgZ(42,"div",23),n._UZ(43,"img",26),n.qZA(),n.TgZ(44,"div",23),n._UZ(45,"img",27),n.qZA(),n.TgZ(46,"div",23),n._UZ(47,"img",28),n.qZA(),n.TgZ(48,"div",23),n._UZ(49,"img",25),n.qZA(),n.TgZ(50,"div",23),n._UZ(51,"img",26),n.qZA(),n.TgZ(52,"div",23),n._UZ(53,"img",27),n.qZA(),n.TgZ(54,"div",23),n._UZ(55,"img",28),n.qZA()()()()()),2&L&&(n.Q6J("@dataLoaded",null==R.product?"loading":"loaded"),n.xp6(1),n.Q6J("ngStyle",n.VKq(17,ns,"url("+(null==R.product?null:R.product.cover_photo)+")")),n.xp6(1),n.Q6J("ngIf",null==R.product),n.xp6(1),n.Q6J("ngIf",null!=R.product),n.xp6(3),n.Q6J("ratings",R.avgRatings)("avgRating",null==R.product?null:R.product.average_rating),n.xp6(1),n.Q6J("ngIf",R.myReviewLoading),n.xp6(1),n.Q6J("ngIf",!R.isLoggedIn()||null==R.myReview&&!R.myReviewLoading),n.xp6(1),n.Q6J("ngIf",R.isLoggedIn()&&0==R.myReviewLoading),n.xp6(10),n.Oqu(R.criticReviewsPeriod),n.xp6(2),n.Q6J("ngIf",!R.criticReviewsLoading),n.xp6(1),n.Q6J("items",R.criticReviewers),n.xp6(1),n.Q6J("ngIf",R.criticReviewsLoading),n.xp6(1),n.Q6J("ngIf",!R.criticReviewsLoading&&0===R.criticReviewers.length),n.xp6(4),n.Q6J("productId",R.productId),n.xp6(8),n.Q6J("items",R.carouselItems)("design","youtube-reviews"))},dependencies:[e.O5,e.PC,Ge.t,Dn.q,El,Ae,Bs,Ro.v],styles:[".blurry-background[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}.section-header[_ngcontent-%COMP%]{padding:1em;font-weight:700}"]})}return F})();var Os=function(F){return F.STATUS="STATUS",F.USER_REVIEW="USER_REVIEW",F}(Os||{}),Is=function(F){return F.STATUS="STATUS",F.USER_REVIEW="USER_REVIEW",F.REACTION="REACTION",F}(Is||{});function Za(F,Xe){1&F&&(n.TgZ(0,"span"),n._uU(1,"public"),n.qZA())}function za(F,Xe){1&F&&(n.TgZ(0,"span"),n._uU(1,"followers"),n.qZA())}function $l(F,Xe){1&F&&(n.TgZ(0,"div",29),n._UZ(1,"util-progress",30),n.qZA()),2&F&&(n.xp6(1),n.Q6J("bar",!0)("determinate",!1))}function Tr(F,Xe){if(1&F&&n._UZ(0,"textarea",31),2&F){const g=n.oxw(2);n.Q6J("formControl",g.content)}}function Lc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",32),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeExImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit,n.LSH)}function Kl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",32),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Rs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"h2"),n._uU(3,"Create a Post"),n.qZA(),n.TgZ(4,"a",4),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onCancel.emit(!0))}),n._UZ(5,"i",5),n.qZA()(),n.TgZ(6,"div",6)(7,"a",7),n._UZ(8,"img",8),n.qZA(),n.TgZ(9,"div",9)(10,"span",10),n._uU(11),n.qZA(),n.TgZ(12,"div",11),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.pr.is_public=!R.pr.is_public)}),n.TgZ(13,"a"),n._UZ(14,"i",12),n.YNc(15,Za,2,0,"span",13),n.YNc(16,za,2,0,"span",13),n._UZ(17,"i",14),n.qZA()()()(),n.TgZ(18,"div",15)(19,"form",16),n.YNc(20,$l,2,2,"div",17),n.YNc(21,Tr,1,1,"textarea",18),n.TgZ(22,"section",19)(23,"div",20)(24,"div",21)(25,"div"),n.YNc(26,Lc,1,1,"img",22),n.YNc(27,Kl,1,1,"img",22),n.qZA(),n.TgZ(28,"input",23),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onImageSelected(R))}),n.qZA()()()(),n.TgZ(29,"div",24)(30,"div",25)(31,"label",26),n._UZ(32,"i",27),n.qZA()(),n.TgZ(33,"button",28),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submit())}),n._uU(34,"post"),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(8),n.s9C("src",g.getAuth().avatar,n.LSH),n.xp6(3),n.Oqu(g.getAuth().name),n.xp6(4),n.Q6J("ngIf",g.pr.is_public),n.xp6(1),n.Q6J("ngIf",!g.pr.is_public),n.xp6(4),n.Q6J("ngIf",g.loading),n.xp6(1),n.Q6J("ngIf",!g.loading),n.xp6(5),n.Q6J("ngForOf",null==g.pr?null:g.pr.thumbs),n.xp6(1),n.Q6J("ngForOf",g.uploadFiles)}}function xa(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",33)(1,"div",20)(2,"div",34)(3,"input",35),n.NdJ("keyup.enter",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitPost())}),n.qZA(),n.TgZ(4,"a",36),n._UZ(5,"i",37),n.qZA(),n.TgZ(6,"a",38),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitPost())}),n._UZ(7,"i",39),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(3),n.Q6J("formControl",g.content)}}let Ga=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.notifier=ye,this.postService=Dt,this.auth=Mn,this.fileUploadService=vi,this.commentBox=!1,this.onPosted=new n.vpe,this.onCancel=new n.vpe,this.post=null,this.pr={id:null,parent_id:null,content:"",images:[],thumbs:[],type:"STATUS",hashtags:[],is_public:!0},this.content=new Z.NI("",[Z.kI.required,Z.kI.minLength(1)]),this.uploadFiles=[]}componentName(){return"PostBoxComponent"}ngOnInit(){this.loading=!1}ngAfterViewInit(){setTimeout(()=>{null!=this.post&&(this.pr.id=this.post.id,this.pr.images=this.post.images,this.pr.thumbs=this.post.thumbs,this.pr.content=this.post.content,this.content.setValue(this.pr.content))},200)}uploadImages(){console.log("uploading images..");let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD("post:"+this.pr?.id));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{this.notifier.log(ye.data);let Dt=ye.data;Dt.map(Mn=>Mn.image_url).forEach(Mn=>{this.pr.images.push(Mn)}),Dt.map(Mn=>Mn.thumb_url).forEach(Mn=>{this.pr.thumbs.push(Mn)}),this.submitPost()})}submit(){this.loading=!0,this.uploadFiles.length>0?this.uploadImages():this.submitPost()}submitPost(){if(!this.content.valid)return void this.notifier.warning("Invalid!","Need to input a valid comment.\n"+this.content.value);this.pr.parent_id=null==this.parentId?null:this.parentId,this.pr.content=this.content.value,this.pr.hashtags=xo.g.findHashtags(this.pr.content,!0);let g=this.componentKey(S.Z.POSTS.SUBMIT_POST(this.pr.parent_id,this.pr.content));null==this.pr.id?this.postService.submitPost(g,this.pr):this.postService.updatePost(g,this.pr),this.subscribe(g,null,(L,R)=>{this.onPosted.emit(R.data),this.content.setValue(""),this.loading=!1})}getAuth(){return this.auth.getAuth()}onImageSelected(g){if(this.uploadFiles.length>=3)this.notifier.info("Operation not allowed!","You can upload 3 photos in a post.");else if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}removeExImage(g){if(null==this.pr)return;let L=this.pr.thumbs.indexOf(g);this.pr.thumbs.splice(L),this.pr.images.splice(L)}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(te.l),n.Y36(Wn),n.Y36(_e.e),n.Y36(oe.J))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-box"]],inputs:{commentBox:"commentBox",parentId:"parentId",post:"post"},outputs:{onPosted:"onPosted",onCancel:"onCancel"},features:[n.qOj],decls:2,vars:2,consts:[["class","create-post-box",4,"ngIf"],["class","comment-box-area",4,"ngIf"],[1,"create-post-box"],[1,"cpb-top-area"],[1,"cancel-post",3,"click"],[1,"icon-cancel"],[1,"cpb-user-info-area"],["href","#",1,"cpb-user-avater"],["alt","astha create post user avater",3,"src"],[1,"cpb-user-info-wrapper"],[1,"user-name"],[1,"select-audions",3,"click"],[1,"icon-globe"],[4,"ngIf"],[1,"icon-down-dir"],[1,"cpb-write-post-area"],["method","post"],["class","my-5",4,"ngIf"],["autofocus","","name","message","id","message","rows","5","placeholder","what do you want to talk about?",3,"formControl",4,"ngIf"],[1,"upload-img-area","review-rdi","pt-4"],[1,"container"],[1,"post-last-step-gallery"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],["type","file","id","image-upload",3,"change"],[1,"cpb-share-creation-state-bottom"],[1,"share-creation-state-icon"],["for","image-upload"],[1,"icon-picture"],["type","button",3,"click"],[1,"my-5"],[3,"bar","determinate"],["autofocus","","name","message","id","message","rows","5","placeholder","what do you want to talk about?",3,"formControl"],["alt","",1,"m-1",3,"src","click"],[1,"comment-box-area"],[1,"write-comment-box"],["type","text","name","commentbox","id","commentbox","placeholder","Enter your comment","required","required",3,"formControl","keyup.enter"],[1,"upload-item"],[1,"icon-folder-add"],[1,"submit-icon",3,"click"],[1,"icon-paper-plane"]],template:function(L,R){1&L&&(n.YNc(0,Rs,35,8,"div",0),n.YNc(1,xa,8,1,"section",1)),2&L&&(n.Q6J("ngIf",!R.commentBox),n.xp6(1),n.Q6J("ngIf",R.commentBox))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.JJ,Z.JL,Z.Q7,Z.oH,Ge.t,Z.F],styles:[".write-comment-box[_ngcontent-%COMP%]{position:relative;margin-left:44px;border-radius:30px;display:flex;align-items:center;margin-top:30px}.write-comment-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;min-height:50px!important;border-radius:30px;padding:0 30px 0 35px;font-size:14px;font-weight:300;color:#c0bfbf;transition:width .4s linear;line-height:20px;border:0;outline:0;background:#3A3B3C;letter-spacing:.01em}.upload-item[_ngcontent-%COMP%], .submit-icon[_ngcontent-%COMP%]{position:absolute!important;right:15px;top:13px;cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.upload-item[_ngcontent-%COMP%]{right:auto;left:8px;top:12px;color:#fff}.submit-icon[_ngcontent-%COMP%]:hover{opacity:.5}.submit-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}.share-creation-state-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2em}.btn-comment-send[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .create-post-box[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f5f5f5}.view-more[_ngcontent-%COMP%]{display:flex;justify-content:center}.comunity-add-post.cpb[_ngcontent-%COMP%]{position:relative}.create-post-box[_ngcontent-%COMP%]{position:absolute;max-width:550px;background:#1D2226;z-index:9;border-radius:10px;left:0;right:0;margin:0 20px;top:10%}#message[_ngcontent-%COMP%]:focus{padding:10px;background:red}.cpb-top-area[_ngcontent-%COMP%]{position:relative;padding:20px 15px;display:flex;justify-content:space-between;border-bottom:1px solid #383D40}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0;border:1px solid;border-radius:5px}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%]:hover{opacity:.5}.cpb-user-avater[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:48px;height:48px;object-fit:cover;border-radius:50%;box-sizing:border-box}.cpb-user-info-area[_ngcontent-%COMP%]{display:flex;gap:15px;padding:15px}.cpb-user-info-wrapper[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-size:16px;text-transform:capitalize}.select-audions[_ngcontent-%COMP%]{border:1px solid whitesmoke;padding:2px 0 3px;margin-top:10px;font-size:15px;text-transform:capitalize;border-radius:50px}.select-audions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff!important;display:flex;align-items:center;justify-content:space-between}.select-audions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0!important;font-size:20px!important}.cpb-write-post-area[_ngcontent-%COMP%]{padding:0 15px}.cpb-write-post-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;background:transparent!important;border:0;min-height:125px;padding:10px}.cpb-write-post-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::placeholder{font-size:18px;line-height:1.3}textarea[_ngcontent-%COMP%]:focus{border:0;outline:0 none;background-color:transparent}.cpb-share-creation-state-bottom[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:15px;align-items:center}.cpb-share-creation-state-bottom[_ngcontent-%COMP%] button[type=button][_ngcontent-%COMP%]{border:0;text-transform:uppercase;font-weight:700;padding:8px 25px;background:#383D40;color:#fff;border-radius:30px;margin:15px 0;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.cpb-upload-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .share-creation-state-icon[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:0!important;cursor:pointer;transition:.3s}.share-creation-state-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block}.share-creation-state-icon[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.5}"]})}return F})();function Wa(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("size",30)}function bc(F,Xe){if(1&F&&n._UZ(0,"app-post",6),2&F){const g=Xe.$implicit,L=n.oxw(2);n.Q6J("post",g)("highlighted",(null==g?null:g.id)===L.latestCommentId)("isComment",!0)}}function ra(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"app-post-box",4),n.NdJ("onPosted",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCommentSubmitted(R))}),n.qZA(),n.YNc(2,bc,1,3,"app-post",5),n.qZA()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("commentBox",!0)("parentId",g.postId),n.xp6(1),n.Q6J("ngForOf",g.comments)}}let Al=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.postService=Dt,this.notifier=Mn,this.postId=null,this.comments=[]}componentName(){return"ConversationAreaComponent"}ngOnInit(){this.notifier.log("post id: "+this.postId),null!=this.postId&&this.loadComments(this.postId)}loadComments(g){const L=this.componentKey(S.Z.POSTS.FETCH_COMMENTS(g));this.postService.fetchComments(L,g),this.subscribe(L,null,(R,ye)=>{this.comments=ye.data.content,this.loading=!1})}onCommentSubmitted(g){this.latestCommentId=g.id,this.comments.unshift(g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-conversation-area"]],inputs:{postId:"postId"},features:[n.qOj],decls:3,vars:2,consts:[[1,"conversation-area"],[3,"size",4,"ngIf"],[4,"ngIf"],[3,"size"],[3,"commentBox","parentId","onPosted"],[3,"post","highlighted","isComment",4,"ngFor","ngForOf"],[3,"post","highlighted","isComment"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0),n.YNc(1,Wa,1,1,"util-progress",1),n.YNc(2,ra,3,3,"div",2),n.qZA()),2&L&&(n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading))},styles:[".conversation-area[_ngcontent-%COMP%]{padding-bottom:20px}"]})}return F})(),is=(()=>{class F{transform(g){let L;if(-1!==g.indexOf("#")){L=g+" ";const R=L.match(/#(.*?) /g);if(null==R)return g;for(let ye=0;ye'+Dt+""),L=L.replace("{{link}}",Mn)}}else L=g;return L}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275pipe=n.Yjl({name:"hashtag",type:F,pure:!0})}return F})();const ro=function(F){return[F]};function K(F,Xe){if(1&F&&(n.TgZ(0,"div",26)(1,"a",27),n._uU(2),n.qZA(),n._uU(3),n.TgZ(4,"h6",28),n._uU(5),n.ALo(6,"readableDate"),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.VKq(7,ro,"/u/"+(null==g.localMetaData?null:g.localMetaData.actorUsername))),n.xp6(1),n.Oqu(null==g.localMetaData?null:g.localMetaData.actorName),n.xp6(1),n.hij(" ",g.localMetaData.message," "),n.xp6(2),n.Oqu(n.xi3(6,4,g.localMetaData.timestamp,!0))}}function Ue(F,Xe){if(1&F&&(n.TgZ(0,"li")(1,"a",29),n._uU(2,"VIEW FULL REVIEW"),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.VKq(1,ro,"/reviews/"+g.getMetaData(g.post,"review_id"))+"/"+(null==g.post?null:g.post.id))}}function ge(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.editPost(R.post))}),n._uU(2,"EDIT POST"),n.qZA()()}}function Ne(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.deletePost(R.post))}),n._uU(2,"MOVE TO TRASH"),n.qZA()()}}function kt(F,Xe){1&F&&(n.TgZ(0,"li")(1,"a"),n._uU(2,"REPORT"),n.qZA()())}function pn(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"a")(1,"img",30),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.openPostDetailsPage(R.post))}),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(1),n.s9C("src",g.getFirstImage(),n.LSH)}}function Sn(F,Xe){if(1&F&&(n.TgZ(0,"div",35)(1,"h5",36),n._UZ(2,"i",37),n._uU(3),n.qZA(),n.TgZ(4,"h6",38),n._uU(5,"AVG RATING"),n.qZA()()),2&F){const g=n.oxw(3);n.xp6(1),n.Q6J("routerLink",n.VKq(2,ro,"/reviews/"+g.getMetaData(g.post,"review_id"))+"/"+(null==g.post?null:g.post.id)),n.xp6(2),n.hij("\xa0",g.getAvgRating(),"/10 ")}}function li(F,Xe){if(1&F&&(n.TgZ(0,"div",39)(1,"a",36)(2,"h5"),n._uU(3),n.qZA()(),n.TgZ(4,"h6",38),n._uU(5,"ITEM"),n.qZA()()),2&F){const g=n.oxw(3);let L;n.xp6(1),n.Q6J("routerLink",n.VKq(2,ro,"/products/"+g.getMetaData(g.post,"product_id"))),n.xp6(2),n.Oqu(null==(L=g.getProductName())?null:L.toUpperCase())}}function ur(F,Xe){if(1&F&&(n.TgZ(0,"div",31)(1,"div",32),n.YNc(2,Sn,6,4,"div",33),n.YNc(3,li,6,4,"div",34),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(2),n.Q6J("ngIf",null!=g.getAvgRating()),n.xp6(1),n.Q6J("ngIf",null!=g.getProductName())}}function hr(F,Xe){if(1&F&&(n.TgZ(0,"div",43)(1,"a",44),n._UZ(2,"img",45),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function ar(F,Xe){1&F&&(n.TgZ(0,"div",43)(1,"a",46),n._uU(2,"View All"),n.qZA()())}function xi(F,Xe){if(1&F&&(n.TgZ(0,"div",40),n.YNc(1,hr,3,2,"div",41),n.YNc(2,ar,3,0,"div",42),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",g.takePostThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>3)}}const Ar=function(F){return{"product-menu-bar":F}};function Nr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",2),n.YNc(1,K,7,9,"div",3),n.TgZ(2,"div",4)(3,"div",5)(4,"div",6),n._UZ(5,"img",7),n.TgZ(6,"div",8)(7,"h4")(8,"a",9),n._uU(9),n.qZA()(),n.TgZ(10,"p"),n._uU(11),n.ALo(12,"readableDate"),n.qZA()()(),n.TgZ(13,"div",10),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onItemClick(R))}),n._UZ(14,"i",11),n.TgZ(15,"div",12)(16,"ul"),n.YNc(17,Ue,3,3,"li",13),n.YNc(18,ge,3,0,"li",13),n.YNc(19,Ne,3,0,"li",13),n.YNc(20,kt,3,0,"li",13),n.qZA()()()(),n.YNc(21,pn,2,1,"a",13),n.TgZ(22,"div",14),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openPostDetailsPage(R.post))}),n.YNc(23,ur,4,2,"div",15),n._UZ(24,"p",16),n.ALo(25,"hashtag"),n.YNc(26,xi,3,2,"div",17),n.qZA()(),n.TgZ(27,"div",18)(28,"div",19)(29,"app-reaction",20),n.NdJ("onReacted",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onReacted(R))}),n.qZA(),n.TgZ(30,"h4",21),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onReactionCountClick(R))}),n._uU(31),n.qZA()(),n.TgZ(32,"div",22),n._UZ(33,"i",23),n.TgZ(34,"h4"),n._uU(35),n.qZA(),n._UZ(36,"h4"),n.qZA(),n.TgZ(37,"div",24),n._UZ(38,"i",25)(39,"h4"),n.qZA()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngIf",null!=g.localMetaData&&null!=g.localMetaData.message),n.xp6(4),n.s9C("src",null!=(null==g.post?null:g.post.posted_by_photo)?null==g.post?null:g.post.posted_by_photo:"assets/img/default-avatar.png",n.LSH),n.Q6J("routerLink",n.VKq(24,ro,"/u/"+(null==g.post?null:g.post.posted_by_username))),n.xp6(3),n.Q6J("routerLink",n.VKq(26,ro,"/u/"+(null==g.post?null:g.post.posted_by_username))),n.xp6(1),n.Oqu(null==g.post?null:g.post.posted_by_name),n.xp6(2),n.Oqu(n.xi3(12,19,null==g.post?null:g.post.updated_at,!0)),n.xp6(2),n.Q6J("ngClass",n.VKq(28,Ar,g.showPostMenu)),n.xp6(4),n.Q6J("ngIf",null!=g.getMetaData(g.post,"review_id")),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",1===(null==g.post||null==g.post.images?null:g.post.images.length)),n.xp6(2),n.Q6J("ngIf",g.isShowMetaSection()),n.xp6(1),n.Q6J("innerHTML",n.lcZ(25,22,g.getContent()),n.oJD),n.xp6(2),n.Q6J("ngIf",g.getThumbLength()>1),n.xp6(3),n.Q6J("postId",null==g.post?null:g.post.id),n.xp6(2),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.total,")"),n.xp6(1),n.Q6J("routerLink",n.VKq(30,ro,"/posts/"+(null==g.post?null:g.post.id))),n.xp6(3),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.comments,")")}}function mr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.editPost(R.post))}),n._uU(2,"EDIT POST"),n.qZA()()}}function vs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.deletePost(R.post))}),n._uU(2,"MOVE TO TRASH"),n.qZA()()}}function bs(F,Xe){if(1&F&&(n.TgZ(0,"div",43)(1,"a",44),n._UZ(2,"img",45),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function $a(F,Xe){1&F&&(n.TgZ(0,"div",43)(1,"a",46),n._uU(2,"View All"),n.qZA()())}function Ui(F,Xe){if(1&F&&(n.TgZ(0,"div",40),n.YNc(1,bs,3,2,"div",41),n.YNc(2,$a,3,0,"div",42),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",g.takePostThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>3)}}function Ma(F,Xe){if(1&F&&(n.TgZ(0,"small"),n._uU(1),n.qZA()),2&F){const g=n.oxw(3);n.xp6(1),n.hij("(",g.getTotalComments(),")")}}function Qr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",58)(1,"a",59)(2,"app-reaction",20),n.NdJ("onReacted",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onReacted(R))}),n.qZA(),n.TgZ(3,"h5",60),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onReactionCountClick(R))}),n._uU(4),n.qZA()(),n.TgZ(5,"a",61),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onReplyClick(null==R.post?null:R.post.id))}),n._uU(6,"Reply "),n.YNc(7,Ma,2,1,"small",13),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(2),n.Q6J("postId",null==g.post?null:g.post.id),n.xp6(2),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.total,")"),n.xp6(3),n.Q6J("ngIf",g.getTotalComments())}}function zr(F,Xe){if(1&F&&(n.TgZ(0,"div",62),n._UZ(1,"app-conversation-area",63),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("postId",null==g.post?null:g.post.id)}}const Qi=function(F){return{"post-highlighted":F}};function yi(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",47)(1,"div",4)(2,"div",48)(3,"a",49),n._UZ(4,"img",50),n.qZA(),n.TgZ(5,"div",51)(6,"div",52)(7,"div",53)(8,"span")(9,"b"),n._uU(10),n.qZA()(),n.TgZ(11,"h6",38),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()(),n.TgZ(14,"div",10),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onItemClick(R))}),n._UZ(15,"i",11),n.TgZ(16,"div",12)(17,"ul"),n.YNc(18,mr,3,0,"li",13),n.YNc(19,vs,3,0,"li",13),n.TgZ(20,"li")(21,"a"),n._uU(22,"REPORT"),n.qZA()()()()()()(),n.TgZ(23,"div",54)(24,"div",55)(25,"p"),n._uU(26),n.qZA(),n.YNc(27,Ui,3,2,"div",17),n.qZA(),n.YNc(28,Qr,8,3,"div",56),n.YNc(29,zr,2,1,"div",57),n.qZA()()()}if(2&F){const g=n.oxw();n.Q6J("ngClass",n.VKq(14,Qi,g.highlighted)),n.xp6(4),n.s9C("src",null==g.post?null:g.post.posted_by_photo,n.LSH),n.xp6(6),n.Oqu(null==g.post?null:g.post.posted_by_name),n.xp6(2),n.Oqu(n.xi3(13,11,null==g.post?null:g.post.updated_at,!0)),n.xp6(2),n.Q6J("ngClass",n.VKq(16,Ar,g.showPostMenu)),n.xp6(4),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(7),n.Oqu(null==g.post?null:g.post.content),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>0),n.xp6(1),n.Q6J("ngIf",g.isReplyEnabled()),n.xp6(1),n.Q6J("ngIf",g.replyToPostId===(null==g.post?null:g.post.id))}}let oa=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.postService=ye,this.dialog=Dt,this.auth=Mn,this.notifier=vi,this.isComment=!1,this.fullVersion=!1,this.post=null,this.highlighted=!1,this.showPostMenu=!1,this.replyToPostId=0,this.onDeletePost=new n.vpe}componentName(){return"PostComponent"}ngOnInit(){}onReacted(g){this.reloadPost()}takePostThumbs(g){return null==this.post||g<1?[]:this.post.thumbs.length{this.post=R.data})}onReactionCountClick(g){console.log("reactions clicked");const L=this.dialog.open(qn);null!=this.post&&(L.componentInstance.postId=this.post?.id),L.afterClosed().subscribe(ye=>{console.log(`Dialog result: ${ye}`)})}onItemClick(g){this.showPostMenu=!this.showPostMenu}isMyPost(){return!!this.auth.isAuthenticated()&&this.auth.getAuth().username==this.post?.posted_by_username}getAvgRating(){let g=this.getMetaData(this.post,"average_rating");if(null==g)return null;try{return parseFloat(g).toFixed(1)}catch{return null}}getProductName(){let g=this.getMetaData(this.post,"product_name");return w.m.takeOnly(g,20)}getMetaData(g,L){let R=g?.meta_data;return null==R?null:R[L]}isShowMetaSection(){return null!=this.post?.meta_data&&this.post.type===Os.USER_REVIEW}editPost(g){null!=g&&this.openPostBox(g)}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g,R.parentId=g?.parent_id,R.onPosted.subscribe(ye=>{this.reloadPost(),L.close()}),R.onCancel.subscribe(ye=>{L.close()})}openPostDetailsPage(g){this.showPostMenu?this.showPostMenu=!1:null!=g&&this.navigate("/posts/"+g.id,L=>{})}deletePost(g){if(null==g||!confirm("Are you sure you want to delete this post?"))return;let R=this.componentKey(S.Z.POSTS.DELETE_POST(g.id));this.postService.deletePost(R,g.id),this.subscribe(R,null,(ye,Dt)=>{this.notifier.success("Deleted!","Post is deleted."),this.reloadRoute()}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{this.notifier.error("Error!",Dt.data.error.message)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn),n.Y36(Re.uw),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post"]],inputs:{isComment:"isComment",fullVersion:"fullVersion",post:"post",localMetaData:"localMetaData",highlighted:"highlighted"},outputs:{onDeletePost:"onDeletePost"},features:[n.qOj],decls:2,vars:2,consts:[["class","blog-post-area bdr-top mt-4",4,"ngIf"],["class","blog-post-area blog-post-area-comment mt-2",3,"ngClass",4,"ngIf"],[1,"blog-post-area","bdr-top","mt-4"],["class","container post-meta",4,"ngIf"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","my-4","px-3"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"profile-img","profile-img-rounded",3,"routerLink","src"],[1,"content","ms-2"],[1,"user-name",3,"routerLink"],[1,"view-details","pt-2",3,"ngClass","click"],[1,"icon-dot-3"],[1,"productMenuBox"],[4,"ngIf"],[1,"blog-post-content","px-3","pb-3",3,"click"],["class","blog-post-meta py-3",4,"ngIf"],[3,"innerHTML"],["class","product-gallery",4,"ngIf"],[1,"blog-post-comment-section","d-flex","justify-content-around","bdr-top","bdr-b","py-3","mt-2","mb-3"],[1,"react","d-flex","align-items-center"],[3,"postId","onReacted"],[3,"click"],[1,"comment","d-flex","align-items-center",3,"routerLink"],[1,"icon-chat"],[1,"share","d-flex","align-items-center"],[1,"icon-paper-plane"],[1,"container","post-meta"],[1,"actor-name","user-name",3,"routerLink"],[1,"mt-1",2,"color","gray"],[3,"routerLink"],[1,"w-100","mb-2",3,"src","click"],[1,"blog-post-meta","py-3"],[1,"row","align-items-center","mb-2"],["class","col-6 rating",4,"ngIf"],["class","col-6 col-sm-4",4,"ngIf"],[1,"col-6","rating"],[1,"post-info-links",3,"routerLink"],[1,"icon-star"],[2,"color","gray"],[1,"col-6","col-sm-4"],[1,"product-gallery"],["class","single-product-item",4,"ngFor","ngForOf"],["class","single-product-item",4,"ngIf"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],["href","#"],[1,"blog-post-area","blog-post-area-comment","mt-2",3,"ngClass"],[1,"blog-post-top","d-flex","justify-content-between","my-4","comment-header"],["href","#",1,"comments-user-avater"],["alt","astha",3,"src"],[1,"comments-post-meta-profile-info-wrapper"],[1,"blog-post-top-left"],[1,"content"],[1,"blog-post-content"],[1,"comments-comment-item-content"],["class","comment-social-activity",4,"ngIf"],["class","nested-comment-box",4,"ngIf"],[1,"comment-social-activity"],[1,"react","d-flex"],[1,"mt-1",3,"click"],[1,"btn-reply-post",3,"click"],[1,"nested-comment-box"],[1,"conversation-area",3,"postId"]],template:function(L,R){1&L&&(n.YNc(0,Nr,40,32,"section",0),n.YNc(1,yi,30,18,"section",1)),2&L&&(n.Q6J("ngIf",!R.isComment),n.xp6(1),n.Q6J("ngIf",R.isComment))},dependencies:[e.mk,e.sg,e.O5,l.rH,le,Al,Yr.G,is],styles:['@keyframes _ngcontent-%COMP%_anim-highlight{0%{opacity:.5;background-color:#52575e}to{opacity:1;background-color:#202020}}.post-highlighted[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_anim-highlight;animation-duration:4s}.product-gallery[_ngcontent-%COMP%]{display:flex;grid-gap:20px;align-items:center;margin-top:20px}.btn-reply-post[_ngcontent-%COMP%]{position:absolute;right:20px;color:#44d62c}.blog-post-area[_ngcontent-%COMP%] .blog-post-top-left[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.7rem}.post-meta[_ngcontent-%COMP%]{padding-top:20px}a[_ngcontent-%COMP%]{color:#44d62c}.post-info-links[_ngcontent-%COMP%]{color:#f5f5f5!important;font-weight:800}.view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none;position:relative;cursor:pointer}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:10px;padding:0 10px;list-style:none;width:250px;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}.comment-header[_ngcontent-%COMP%]{margin-bottom:0!important}.comments-comment-item-content[_ngcontent-%COMP%]{background:#3A3B3C;padding:0 12px 15px;border-radius:0 0 10px 10px;-webkit-border-radius:0px 0px 10px 10px;-moz-border-radius:0px 0px 10px 10px;-ms-border-radius:0px 0px 10px 10px;-o-border-radius:0px 0px 10px 10px;margin-left:44px}.comments-user-avater[_ngcontent-%COMP%]{flex-shrink:0;align-self:flex-start;width:40px;height:40px}.comments-user-avater[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;object-fit:cover}.comments-post-meta-profile-info-wrapper[_ngcontent-%COMP%]{flex-grow:1;display:flex;justify-content:space-between;align-items:center;background:#3A3B3C;padding:8px 12px;border-radius:0 10px 0 0;margin-left:4px}.btn-reply-post[_ngcontent-%COMP%]{position:relative;right:auto!important;cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.btn-reply-post[_ngcontent-%COMP%]:hover{opacity:.5}.comment-social-activity[_ngcontent-%COMP%] app-reaction[_ngcontent-%COMP%]{width:25px}.comment-social-activity[_ngcontent-%COMP%] .react[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:14px!important;display:flex;align-items:center;margin-left:2px}.comment-social-activity[_ngcontent-%COMP%]{margin-top:5px;margin-left:55px;display:flex;gap:12px;align-items:center}']})}return F})();const cl=function(F){return{active:F}};function _o(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",4),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.onClick(ye))}),n.TgZ(1,"a"),n._uU(2),n.qZA()()}if(2&F){const g=Xe.$implicit,L=n.oxw();n.Q6J("ngClass",n.VKq(2,cl,L.selectedTabId===g.id)),n.xp6(2),n.Oqu(g.title)}}let Wi=(()=>{class F extends I.H{constructor(g,L,R){super(g,L,R),this.tabHeaders=[],this.selectedTabId=0,this.onSelect=new n.vpe,this.panelClass="active"}componentName(){return"TabHeaderComponent"}ngOnInit(){}onClick(g){this.selectedTabId=g.id,this.onSelect.emit(g.id)}trackbyFn(g,L){return g}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-tab-header"]],inputs:{tabHeaders:"tabHeaders",selectedTabId:"selectedTabId",panelClass:"panelClass"},outputs:{onSelect:"onSelect"},features:[n.qOj],decls:4,vars:2,consts:[[1,"tab-header","mt-2","scrollable"],[1,"container"],[1,"list-inline","list-unstyled"],["class","list-inline-item",3,"ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list-inline-item",3,"ngClass","click"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1)(2,"ul",2),n.YNc(3,_o,3,4,"li",3),n.qZA()()()),2&L&&(n.xp6(3),n.Q6J("ngForOf",R.tabHeaders)("ngForTrackBy",R.trackbyFn))},dependencies:[e.mk,e.sg],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.list-inline-item[_ngcontent-%COMP%]{margin-right:1.5rem}.list-group-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#000}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1.12em!important;text-decoration:none;color:#fff;text-transform:uppercase;font-weight:600;letter-spacing:.05em;transition:all .5s}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#f7f7f7}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background:#44d62c;padding:5px 12px;border-radius:16px}"]})}return F})();function Xi(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function dl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",30),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onIStoriesMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showStoriesMenu)("items",g.getMenuItems())}}function ko(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function rs(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}function ul(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",30),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCriticReviewsMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showCriticReviewsMenu)("items",g.getMenuItems())}}function Pc(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function Us(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}const Vs=function(F,Xe,g,L){return{actorName:F,actorUsername:Xe,message:g,timestamp:L}};function Nc(F,Xe){if(1&F&&(n.TgZ(0,"div"),n._UZ(1,"app-post",31),n.qZA()),2&F){const g=Xe.$implicit,L=n.oxw();n.xp6(1),n.Q6J("post",g.post)("localMetaData",n.l5B(2,Vs,g.actorName,g.actorUsername,L.getMessage(g),g.timestamp))}}function ac(F,Xe){1&F&&n._UZ(0,"util-progress",32),2&F&&n.Q6J("padding",70)}let To=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya){super(g,L,R),this.postService=Dt,this.auth=Mn,this.dialog=vi,this.reviewService=Fo,this.notifier=Ya,this.interestingStories=null,this.iStories=[],this.iStoriesPeriod="THIS MONTH",this.iStoriesLoading=!1,this.showStoriesMenu=!1,this.criticReviews=null,this.criticReviewers=[],this.criticReviewsPeriod="THIS MONTH",this.criticReviewsLoading=!1,this.showCriticReviewsMenu=!1,this.badgeForCritic="Critic",this.youtubeReviews=[],this.page=0,this.statusPosts=[],this.reviewPosts=[],this.reactions=[],this.newsfeedItems=[],this.trendingHashtags=[],this.selectedHashtag=null,this.selectedHashtag=ye.snapshot.queryParams.hashtag}componentName(){return"NewsfeedComponent"}ngOnInit(){let g=Nt.b.calculateRange(this.iStoriesPeriod.replace(" ","_"));this.fetchInterestingStories({page:0,from_date:g?.fromDate,to_date:g?.toDate,slice:!0});let L=Nt.b.calculateRange(this.criticReviewsPeriod.replace(" ","_"));this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic}),this.fetchYoutubeReviews(),this.fetchTrendingHashtags(),this.fetchNewsfeedItems(this.selectedHashtag,this.page)}fetchCriticReviews(g){this.criticReviewsLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_CRITIC_REVIEWS());this.reviewService.fetchRecentReviews(L,g),this.subscribe(L,null,(R,ye)=>{this.criticReviews=ye.data,this.criticReviewers=F.mapToCarouselItems(ye.data),this.criticReviewsLoading=!1})}fetchInterestingStories(g){this.iStoriesLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_INTERESTING_STORIES());this.reviewService.fetchRecentReviews(L,g),this.subscribe(L,null,(R,ye)=>{this.interestingStories=ye.data,this.iStories=F.mapToCarouselItems(ye.data),this.iStoriesLoading=!1})}static mapToCarouselItems(g){return g.content.map(L=>({id:L?.id,slug:L?.slug,title:L?.posted_by_name,img:null!=L?.posted_by_avatar?L?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+L.id+"/"+L.post_id,badges:[]}))}fetchYoutubeReviews(){this.youtubeReviews=[{id:1,title:null,slug:"",img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,title:null,slug:"",img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]}]}fetchNewsfeedItems(g,L){this.loading=!0;const R=this.componentKey(S.Z.POSTS.FETCH_NEWS_FEED_POSTS(Os.STATUS));this.postService.fetchPosts(R,{page:L,size:5,type:Os.STATUS,hashtag:g}),this.subscribe(R,null,(Dt,Mn)=>{this.statusPosts=Mn.data.content,this.addToNewsfeed(Is.STATUS,this.statusPosts),this.loading=!1});const ye=this.componentKey(S.Z.POSTS.FETCH_NEWS_FEED_POSTS(Os.USER_REVIEW));if(this.postService.fetchPosts(ye,{page:L,size:5,type:Os.USER_REVIEW,hashtag:g}),this.subscribe(ye,null,(Dt,Mn)=>{this.reviewPosts=Mn.data.content,this.addToNewsfeed(Is.USER_REVIEW,this.reviewPosts),this.loading=!1}),null==g||0===g?.length){const Dt=this.componentKey(S.Z.POSTS.FETCH_REACTIONS());this.postService.fetchReactions(Dt,{page:L,slice:!1}),this.subscribe(Dt,null,(Mn,vi)=>{this.reactions=vi.data.content,this.addReactionsToNewsfeed(this.reactions)})}}addToNewsfeed(g,L){L.map(R=>{this.newsfeedItems.push({timestamp:R.updated_at,actionType:g,actorName:R.posted_by_name,actorUsername:R.posted_by_username,post:R})}),this.sortNewsfeedItems()}addReactionsToNewsfeed(g){g.map(L=>{this.newsfeedItems.push({timestamp:L.updated_at,actionType:Is.REACTION,actorName:L.reacted_by_name,actorUsername:L.reacted_by_username,post:L.post})}),this.sortNewsfeedItems()}sortNewsfeedItems(){this.newsfeedItems=this.newsfeedItems.sort((g,L)=>new Date(L.timestamp).getTime()-new Date(g.timestamp).getTime())}getMessage(g){return g.actionType===Is.REACTION?"reacted.":g.actionType===Is.USER_REVIEW?"posted a review.":null}onViewMoreClick(){this.fetchNewsfeedItems(null,++this.page)}reloadNewsfeed(){this.newsfeedItems=[],this.fetchNewsfeedItems(null,0)}getAuth(){return this.auth.getAuth()}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g;const ye=R.onPosted.subscribe(Mn=>{ye.unsubscribe(),L.close()}),Dt=R.onCancel.subscribe(Mn=>{Dt.unsubscribe(),L.close()});L.afterClosed().subscribe(Mn=>{this.reloadRouteByUrl()})}getMenuItems(){return bt.$}onIStoriesMenuItemClick(g){this.showStoriesMenu&&(this.showStoriesMenu=!1),this.iStoriesPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchInterestingStories({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0})}onCriticReviewsMenuItemClick(g){this.showCriticReviewsMenu&&(this.showCriticReviewsMenu=!1),this.criticReviewsPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic})}getTabHeaders(){return this.trendingHashtags.map((g,L)=>({id:L,title:"#"+g.name}))}getSelectedHashtag(){return-1}onHashtagSelected(g){let L=this.trendingHashtags[g].name.replace("#","");L!==this.selectedHashtag?(this.selectedHashtag=L,this.router.navigateByUrl("/newsfeed?hashtag="+this.selectedHashtag),this.newsfeedItems=[],this.fetchNewsfeedItems(this.selectedHashtag,0)):this.navigateByUrl("/newsfeed",R=>{this.reloadRouteByUrl()})}fetchTrendingHashtags(){let g=this.componentKey(S.Z.POSTS.FETCH_TRENDING_HASHTAGS());this.postService.fetchTrendingTags(g,{}),this.subscribe(g,null,(L,R)=>{this.trendingHashtags=R.data}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.log(R.data)})}onStoriesItemClick(g){if(null==this.interestingStories)return;let L=this.interestingStories.content.find(R=>R.id==g.id);this.navigate("/reviews/"+L?.product_slug+"/"+L?.slug+"/"+L?.post_id,R=>{})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(_e.e),n.Y36(Re.uw),n.Y36(se.F),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-newsfeed"]],features:[n.qOj],decls:62,vars:20,consts:[[3,"bar",4,"ngIf"],[1,"reviewers-section","py-2","mt-3"],[1,"container"],[1,"reviewers-content","section-title","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items","itemClick"],[4,"ngIf"],[1,"comunity-post-area","pt-4","pb-3","mt-3","bdr-top"],[1,"comunity-post","d-flex","mb-4"],["alt","",1,"profile-img-rounded",3,"src"],[1,"content","ms-3"],[1,"closs-post"],[1,"icon-cancel-1"],[1,"comunity-add-post","cpb","d-flex","justify-content-end","align-items-center"],[1,"d-flex","align-items-center",3,"click"],[1,"icon-plus-2"],[1,"reviewers-section","py-2","mt-3","bdr-b"],[3,"items"],[1,"container","mt-4","bdr-b"],[3,"tabHeaders","selectedTabId","onSelect"],[4,"ngFor","ngForOf"],[3,"padding",4,"ngIf"],[1,"section-title","view-more","my-4","container"],[3,"click"],[1,"youtube-reviews-section","bdr-b","mb-5","pb-3"],[1,"section-title","d-flex","justify-content-between","my-4"],["href","#"],[3,"design","items"],[3,"bar"],[3,"showMenubar","items","menuItemClick"],[3,"post","localMetaData"],[3,"padding"]],template:function(L,R){1&L&&(n.YNc(0,Xi,1,1,"util-progress",0),n.TgZ(1,"div")(2,"section",1)(3,"div",2)(4,"div",3),n.NdJ("click",function(){return R.showStoriesMenu=!R.showStoriesMenu}),n.TgZ(5,"h5"),n._uU(6,"INTERESTING STORIES"),n.qZA(),n.TgZ(7,"a")(8,"h5"),n._uU(9),n.qZA()(),n._UZ(10,"img",4),n.qZA(),n.YNc(11,dl,1,2,"app-menubox",5),n.TgZ(12,"app-small-carousel",6),n.NdJ("itemClick",function(Dt){return R.onStoriesItemClick(Dt)}),n.qZA(),n.YNc(13,ko,1,1,"util-progress",0),n.YNc(14,rs,3,0,"div",7),n.qZA()(),n.TgZ(15,"section",8)(16,"div",2)(17,"div",9),n._UZ(18,"img",10),n.TgZ(19,"div",11)(20,"h4"),n._uU(21),n.qZA(),n.TgZ(22,"p"),n._uU(23,"Share your thoughts with the community and connect with people."),n.qZA()(),n.TgZ(24,"div",12),n._UZ(25,"i",13),n.qZA()(),n.TgZ(26,"div",14)(27,"a",15),n.NdJ("click",function(){return R.openPostBox(null)}),n._UZ(28,"i",16),n.TgZ(29,"h4"),n._uU(30,"Post a status"),n.qZA()()()()(),n.TgZ(31,"section",17)(32,"div",2)(33,"div",3),n.NdJ("click",function(){return R.showCriticReviewsMenu=!R.showCriticReviewsMenu}),n.TgZ(34,"h5"),n._uU(35,"CRITIC REVIEWS"),n.qZA(),n.TgZ(36,"a")(37,"h5"),n._uU(38),n.qZA()(),n._UZ(39,"img",4),n.qZA(),n.YNc(40,ul,1,2,"app-menubox",5),n._UZ(41,"app-small-carousel",18),n.YNc(42,Pc,1,1,"util-progress",0),n.YNc(43,Us,3,0,"div",7),n.qZA()(),n.TgZ(44,"div",19)(45,"h5"),n._uU(46,"TRENDING TAGS"),n.qZA(),n.TgZ(47,"app-tab-header",20),n.NdJ("onSelect",function(Dt){return R.onHashtagSelected(Dt)}),n.qZA()(),n.TgZ(48,"div"),n.YNc(49,Nc,2,7,"div",21),n.YNc(50,ac,1,1,"util-progress",22),n.TgZ(51,"div",23)(52,"a",24),n.NdJ("click",function(){return R.onViewMoreClick()}),n._uU(53,"VIEW MORE.."),n.qZA()()(),n.TgZ(54,"section",25)(55,"div",2)(56,"div",26)(57,"h3"),n._uU(58,"Youtube Reviews"),n.qZA(),n.TgZ(59,"a",27),n._uU(60,"View all"),n.qZA()(),n._UZ(61,"app-small-carousel",28),n.qZA()()()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("@dataLoaded",R.loading?"loading":"loaded"),n.xp6(8),n.Oqu(R.iStoriesPeriod),n.xp6(2),n.Q6J("ngIf",!R.iStoriesLoading),n.xp6(1),n.Q6J("items",R.iStories),n.xp6(1),n.Q6J("ngIf",R.iStoriesLoading),n.xp6(1),n.Q6J("ngIf",!R.iStoriesLoading&&0===R.iStories.length),n.xp6(4),n.s9C("src",R.getAuth().avatar,n.LSH),n.xp6(3),n.hij("Hey, ",R.getAuth().name,""),n.xp6(17),n.Oqu(R.criticReviewsPeriod),n.xp6(2),n.Q6J("ngIf",!R.criticReviewsLoading),n.xp6(1),n.Q6J("items",R.criticReviewers),n.xp6(1),n.Q6J("ngIf",R.criticReviewsLoading),n.xp6(1),n.Q6J("ngIf",!R.criticReviewsLoading&&0===R.criticReviewers.length),n.xp6(4),n.Q6J("tabHeaders",R.getTabHeaders())("selectedTabId",R.getSelectedHashtag()),n.xp6(2),n.Q6J("ngForOf",R.newsfeedItems),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(11),n.Q6J("design","youtube-reviews")("items",R.youtubeReviews))},dependencies:[e.sg,e.O5,Ge.t,Dn.q,oa,Wi,Ro.v]})}return F})();var nd=C(1081);function lc(F,Xe){1&F&&(n.TgZ(0,"span",7),n.Hsn(1,1),n.qZA())}function Ei(F,Xe){1&F&&(n.TgZ(0,"span",8),n.Hsn(1,2),n.qZA())}const Ca=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ks=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function cc(F,Xe){1&F&&(n.ynx(0),n._UZ(1,"span",8),n.BQk())}function hl(F,Xe){1&F&&(n.TgZ(0,"span",9),n.Hsn(1),n.qZA())}function od(F,Xe){1&F&&(n.ynx(0),n.Hsn(1,1),n.BQk())}function Mo(F,Xe){1&F&&n.Hsn(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function Ka(F,Xe){1&F&&n._UZ(0,"span",12)}function aa(F,Xe){if(1&F&&(n.ynx(0),n.YNc(1,Mo,1,0,"ng-content",10),n.YNc(2,Ka,1,0,"ng-template",null,11,n.W1O),n.BQk()),2&F){const g=n.MAs(3),L=n.oxw();n.xp6(1),n.Q6J("ngIf",L.contentEditInput)("ngIfElse",g)}}function Ol(F,Xe){1&F&&(n.TgZ(0,"span",13),n.Hsn(1,3),n.qZA())}const kn=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Fi=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],Jl=["*"],en=new n.OlP("mat-chips-default-options"),so=new n.OlP("MatChipAvatar"),gt=new n.OlP("MatChipTrailingIcon"),la=new n.OlP("MatChipRemove"),Ra=new n.OlP("MatChip");class Ls{}const os=(0,Ve.sb)(Ls,-1);let ss=(()=>{class F extends os{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(g){this._disabled=(0,qt.Ig)(g)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(g,L){super(),this._elementRef=g,this._parentChip=L,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===g.nativeElement.nodeName&&g.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(g){!this.disabled&&this.isInteractive&&this._isPrimary&&(g.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(g){(g.keyCode===U.K5||g.keyCode===U.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(g.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(Ra))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(L,R){1&L&&n.NdJ("click",function(Dt){return R._handleClick(Dt)})("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&(n.uIk("tabindex",R._getTabindex())("disabled",R._getDisabledAttribute())("aria-disabled",R.disabled),n.ekj("mdc-evolution-chip__action--primary",R._isPrimary)("mdc-evolution-chip__action--presentational",!R.isInteractive)("mdc-evolution-chip__action--trailing",!R._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[n.qOj]})}return F})(),ka=(()=>{class F extends ss{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(g){this.disabled||(g.stopPropagation(),g.preventDefault(),this._parentChip.remove())}_handleKeydown(g){(g.keyCode===U.K5||g.keyCode===U.L_)&&!this.disabled&&(g.stopPropagation(),g.preventDefault(),this._parentChip.remove())}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(L,R){2&L&&n.uIk("aria-hidden",null)},features:[n._Bn([{provide:la,useExisting:F}]),n.qOj]})}return F})(),ys=0;const W=(0,Ve.sb)((0,Ve.pj)((0,Ve.Kr)((0,Ve.Id)(class{constructor(F){this._elementRef=F}})),"primary"),-1);let ne=(()=>{class F extends W{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(g){this._value=g}get removable(){return this._removable}set removable(g){this._removable=(0,qt.Ig)(g)}get highlighted(){return this._highlighted}set highlighted(g){this._highlighted=(0,qt.Ig)(g)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(g){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,g)}constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(L),this._changeDetectorRef=g,this._ngZone=R,this._focusMonitor=ye,this._globalRippleOptions=vi,this._onFocus=new Oe.x,this._onBlur=new Oe.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+ys++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new n.vpe,this.destroyed=new n.vpe,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=(0,n.f3M)(Ve.Fq),this._document=Dt,this._animationsDisabled="NoopAnimations"===Mn,null!=Fo&&(this.tabIndex=parseInt(Fo)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const g=this._elementRef.nativeElement;this._isBasicChip=g.hasAttribute(this.basicChipAttrName)||g.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,Ft.T)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(g){(g.keyCode===U.ZH||g.keyCode===U.yY)&&(g.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(g){return this._getActions().find(L=>{const R=L._elementRef.nativeElement;return R===g||R.contains(g)})}_getActions(){const g=[];return this.primaryAction&&g.push(this.primaryAction),this.removeIcon&&g.push(this.removeIcon),this.trailingIcon&&g.push(this.trailingIcon),g}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(g=>{const L=null!==g;L!==this._hasFocusInternal&&(this._hasFocusInternal=L,L?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,jn.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Ce.tE),n.Y36(e.K0),n.Y36(n.QbO,8),n.Y36(Ve.Y2,8),n.$8M("tabindex"))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,so,5),n.Suo(ye,gt,5),n.Suo(ye,la,5),n.Suo(ye,so,5),n.Suo(ye,gt,5),n.Suo(ye,la,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.leadingIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R.trailingIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R.removeIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R._allLeadingIcons=Dt),n.iGM(Dt=n.CRH())&&(R._allTrailingIcons=Dt),n.iGM(Dt=n.CRH())&&(R._allRemoveIcons=Dt)}},viewQuery:function(L,R){if(1&L&&n.Gf(ss,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R.primaryAction=ye.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&(n.Ikx("id",R.id),n.uIk("role",R.role)("tabindex",R.role?R.tabIndex:null)("aria-label",R.ariaLabel),n.ekj("mdc-evolution-chip",!R._isBasicChip)("mdc-evolution-chip--disabled",R.disabled)("mdc-evolution-chip--with-trailing-action",R._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",R.leadingIcon)("mdc-evolution-chip--with-primary-icon",R.leadingIcon)("mdc-evolution-chip--with-avatar",R.leadingIcon)("mat-mdc-chip-with-avatar",R.leadingIcon)("mat-mdc-chip-highlighted",R.highlighted)("mat-mdc-chip-disabled",R.disabled)("mat-mdc-basic-chip",R._isBasicChip)("mat-mdc-standard-chip",!R._isBasicChip)("mat-mdc-chip-with-trailing-icon",R._hasTrailingIcon())("_mat-animation-noopable",R._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[n._Bn([{provide:Ra,useExisting:F}]),n.qOj],ngContentSelectors:ks,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(L,R){1&L&&(n.F$t(Ca),n._UZ(0,"span",0),n.TgZ(1,"span",1)(2,"span",2),n.YNc(3,lc,2,0,"span",3),n.TgZ(4,"span",4),n.Hsn(5),n._UZ(6,"span",5),n.qZA()()(),n.YNc(7,Ei,2,0,"span",6)),2&L&&(n.xp6(2),n.Q6J("isInteractive",!1),n.xp6(1),n.Q6J("ngIf",R.leadingIcon),n.xp6(4),n.Q6J("ngIf",R._hasTrailingIcon()))},dependencies:[e.O5,ss],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return F})(),xe=(()=>{class F{constructor(g,L){this._elementRef=g,this._document=L}initialize(g){this.getNativeElement().focus(),this.setValue(g)}getNativeElement(){return this._elementRef.nativeElement}setValue(g){this.getNativeElement().textContent=g,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const g=this._document.createRange();g.selectNodeContents(this.getNativeElement()),g.collapse(!1);const L=window.getSelection();L.removeAllRanges(),L.addRange(g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return F})(),qe=(()=>{class F extends ne{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R,ye,Dt,Mn,vi,Fo),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new n.vpe,this._isEditing=!1,this.role="row",this._onBlur.pipe((0,An.R)(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(g){g.keyCode!==U.K5||this.disabled?this._isEditing?g.stopPropagation():super._handleKeydown(g):this._isEditing?(g.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(g)}_handleDoubleclick(g){!this.disabled&&this.editable&&this._startEditing(g)}_startEditing(g){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(g.target)===this.removeIcon)return;const L=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(L),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Ce.tE),n.Y36(e.K0),n.Y36(n.QbO,8),n.Y36(Ve.Y2,8),n.$8M("tabindex"))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,xe,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.contentEditInput=Dt.first)}},viewQuery:function(L,R){if(1&L&&n.Gf(xe,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R.defaultEditInput=ye.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(L,R){1&L&&n.NdJ("focus",function(Dt){return R._handleFocus(Dt)})("dblclick",function(Dt){return R._handleDoubleclick(Dt)}),2&L&&(n.Ikx("id",R.id),n.uIk("tabindex",R.disabled?null:-1)("aria-label",null)("aria-description",null)("role",R.role),n.ekj("mat-mdc-chip-with-avatar",R.leadingIcon)("mat-mdc-chip-disabled",R.disabled)("mat-mdc-chip-editing",R._isEditing)("mat-mdc-chip-editable",R.editable)("mdc-evolution-chip--disabled",R.disabled)("mdc-evolution-chip--with-trailing-action",R._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",R.leadingIcon)("mdc-evolution-chip--with-primary-icon",R.leadingIcon)("mdc-evolution-chip--with-avatar",R.leadingIcon)("mat-mdc-chip-highlighted",R.highlighted)("mat-mdc-chip-with-trailing-icon",R._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[n._Bn([{provide:ne,useExisting:F},{provide:Ra,useExisting:F}]),n.qOj],ngContentSelectors:Fi,decls:10,vars:12,consts:[[4,"ngIf"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(L,R){1&L&&(n.F$t(kn),n.YNc(0,cc,2,0,"ng-container",0),n.TgZ(1,"span",1),n.YNc(2,hl,2,0,"span",2),n.TgZ(3,"span",3),n.YNc(4,od,2,0,"ng-container",4),n.YNc(5,aa,4,2,"ng-container",4),n._UZ(6,"span",5),n.qZA()(),n.YNc(7,Ol,2,0,"span",6),n.TgZ(8,"span",7),n._uU(9),n.qZA()),2&L&&(n.Q6J("ngIf",!R._isEditing),n.xp6(1),n.Q6J("tabIndex",R.tabIndex)("disabled",R.disabled),n.uIk("aria-label",R.ariaLabel)("aria-describedby",R._ariaDescriptionId),n.xp6(1),n.Q6J("ngIf",R.leadingIcon),n.xp6(1),n.Q6J("ngSwitch",R._isEditing),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(2),n.Q6J("ngIf",R._hasTrailingIcon()),n.xp6(1),n.Q6J("id",R._ariaDescriptionId),n.xp6(1),n.Oqu(R.ariaDescription))},dependencies:[e.O5,e.RF,e.n9,ss,xe],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return F})();class Pt{constructor(Xe){}}const mn=(0,Ve.sb)(Pt);let hn=(()=>{class F extends mn{get chipFocusChanges(){return this._getChipStream(g=>g._onFocus)}get chipDestroyedChanges(){return this._getChipStream(g=>g.destroyed)}get disabled(){return this._disabled}set disabled(g){this._disabled=(0,qt.Ig)(g),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(g){this._explicitRole=g}get focused(){return this._hasFocusedChip()}constructor(g,L,R){super(g),this._elementRef=g,this._changeDetectorRef=L,this._dir=R,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Oe.x,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new n.n_E}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(g=>g._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(g=>{g.disabled=this._disabled,g._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(g){this._originatesFromChip(g)&&this._keyManager.onKeydown(g)}_isValidIndex(g){return g>=0&&gthis.tabIndex=g)}}_getChipStream(g){return this._chips.changes.pipe((0,fn.O)(null),(0,ai.w)(()=>(0,Ft.T)(...this._chips.map(g))))}_originatesFromChip(g){let L=g.target;for(;L&&L!==this._elementRef.nativeElement;){if(L.classList.contains("mat-mdc-chip"))return!0;L=L.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe((0,fn.O)(this._chips)).subscribe(g=>{const L=[];g.forEach(R=>R._getActions().forEach(ye=>L.push(ye))),this._chipActions.reset(L),this._chipActions.notifyOnChanges()}),this._keyManager=new Ce.Em(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(g=>this._skipPredicate(g)),this.chipFocusChanges.pipe((0,An.R)(this._destroyed)).subscribe(({chip:g})=>{const L=g._getSourceAction(document.activeElement);L&&this._keyManager.updateActiveItem(L)}),this._dir?.change.pipe((0,An.R)(this._destroyed)).subscribe(g=>this._keyManager.withHorizontalOrientation(g))}_skipPredicate(g){return!g.isInteractive||g.disabled}_trackChipSetChanges(){this._chips.changes.pipe((0,fn.O)(null),(0,An.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe((0,An.R)(this._destroyed)).subscribe(g=>{const R=this._chips.toArray().indexOf(g.chip);this._isValidIndex(R)&&g.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=R)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const g=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),L=this._chips.toArray()[g];L.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():L.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(J.Is,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-set"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,ne,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._chips=Dt)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&n.uIk("role",R.role)},inputs:{disabled:"disabled",role:"role"},features:[n.qOj],ngContentSelectors:Jl,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return F})();class $i{constructor(Xe,g){this.source=Xe,this.value=g}}class mi extends hn{constructor(Xe,g,L,R,ye,Dt,Mn){super(Xe,g,L),this._defaultErrorStateMatcher=R,this._parentForm=ye,this._parentFormGroup=Dt,this.ngControl=Mn,this.stateChanges=new Oe.x}}const Ps=(0,Ve.FD)(mi);let fl=(()=>{class F extends Ps{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(g){this._disabled=(0,qt.Ig)(g),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(g){this._placeholder=g,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(Z.kI.required)??!1}set required(g){this._required=(0,qt.Ig)(g),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(g){this._value=g}get chipBlurChanges(){return this._getChipStream(g=>g._onBlur)}constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,Mn,ye,Dt,vi),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new n.vpe,this.valueChange=new n.vpe,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),(0,Ft.T)(this.chipFocusChanges,this._chips.changes).pipe((0,An.R)(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(g){this._chipInput=g,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(g){!this.disabled&&!this._originatesFromChip(g)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(g){this._ariaDescribedbyIds=g,this._chipInput?.setDescribedByIds(g)}writeValue(g){this._value=g}registerOnChange(g){this._onChange=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this.disabled=g,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(g){g.keyCode===U.Mf?this._chipInput.focused&&(0,U.Vb)(g,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(g.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(g),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const g=this._chips.length?this._chips.toArray().map(L=>L.value):[];this._value=g,this.change.emit(new $i(this,g)),this.valueChange.emit(g),this._onChange(g),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(J.Is,8),n.Y36(Z.F,8),n.Y36(Z.sg,8),n.Y36(Ve.rD),n.Y36(Z.a5,10))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-grid"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,qe,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._chips=Dt)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(L,R){1&L&&n.NdJ("focus",function(){return R.focus()})("blur",function(){return R._blur()}),2&L&&(n.Ikx("tabIndex",R._chips&&0===R._chips.length?-1:R.tabIndex),n.uIk("role",R.role)("aria-disabled",R.disabled.toString())("aria-invalid",R.errorState),n.ekj("mat-mdc-chip-list-disabled",R.disabled)("mat-mdc-chip-list-invalid",R.errorState)("mat-mdc-chip-list-required",R.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[n._Bn([{provide:Ai.Eo,useExisting:F}]),n.qOj],ngContentSelectors:Jl,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return F})(),Rl=0,Ja=(()=>{class F{set chipGrid(g){g&&(this._chipGrid=g,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(g){this._addOnBlur=(0,qt.Ig)(g)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(g){this._disabled=(0,qt.Ig)(g)}get empty(){return!this.inputElement.value}constructor(g,L,R){this._elementRef=g,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new n.vpe,this.placeholder="",this.id="mat-mdc-chip-list-input-"+Rl++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=L.separatorKeyCodes,R&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(g){if(g){if(g.keyCode===U.ZH&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void g.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(g)}_keyup(g){!this._focusLastChipOnBackspace&&g.keyCode===U.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,g.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(g){(!g||this._isSeparatorKey(g))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),g?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(g){const L=this._elementRef.nativeElement;g.length?L.setAttribute("aria-describedby",g.join(" ")):L.removeAttribute("aria-describedby")}_isSeparatorKey(g){return!(0,U.Vb)(g)&&new Set(this.separatorKeyCodes).has(g.keyCode)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(en),n.Y36(Ai.G_,8))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._keydown(Dt)})("keyup",function(Dt){return R._keyup(Dt)})("blur",function(){return R._blur()})("focus",function(){return R._focus()})("input",function(){return R._onInput()}),2&L&&(n.Ikx("id",R.id),n.uIk("disabled",R.disabled||null)("placeholder",R.placeholder||null)("aria-invalid",R._chipGrid&&R._chipGrid.ngControl?R._chipGrid.ngControl.invalid:null)("aria-required",R._chipGrid&&R._chipGrid.required||null)("required",R._chipGrid&&R._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[n.TTD]})}return F})(),Md=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[Ve.rD,{provide:en,useValue:{separatorKeyCodes:[U.K5]}}],imports:[Ve.BQ,e.ez,Ve.si,Ve.BQ]})}return F})();var Do=C(3651),qa=C(4911),xr=C(7398),dc=C(9397),Ec=C(5177);const sd=["panel"];function uc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",0,1),n.NdJ("@panelAnimation.done",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye._animationDone.next(R))}),n.Hsn(2),n.qZA()}if(2&F){const g=Xe.id,L=n.oxw();n.Q6J("id",L.id)("ngClass",L._classList)("@panelAnimation",L.isOpen?"visible":"hidden"),n.uIk("aria-label",L.ariaLabel||null)("aria-labelledby",L._getPanelAriaLabelledby(g))}}const hc=["*"],Qa=(0,Jn.X$)("panelAnimation",[(0,Jn.SB)("void, hidden",(0,Jn.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,Jn.eR)(":enter, hidden => visible",[(0,Jn.ru)([(0,Jn.jt)("0.03s linear",(0,Jn.oB)({opacity:1})),(0,Jn.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,Jn.oB)({transform:"scaleY(1)"}))])]),(0,Jn.eR)(":leave, visible => hidden",[(0,Jn.jt)("0.075s linear",(0,Jn.oB)({opacity:0}))])]);let js=0;class pl{constructor(Xe,g){this.source=Xe,this.option=g}}const ad=(0,Ve.Kr)(class{}),Pi=new n.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Xa(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let ld=(()=>{class F extends ad{get isOpen(){return this._isOpen&&this.showPanel}_setColor(g){this._color=g,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(g){this._autoActiveFirstOption=(0,qt.Ig)(g)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(g){this._autoSelectActiveOption=(0,qt.Ig)(g)}get requireSelection(){return this._requireSelection}set requireSelection(g){this._requireSelection=(0,qt.Ig)(g)}set classList(g){this._classList=g&&g.length?(0,qt.du)(g).reduce((L,R)=>(L[R]=!0,L),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(g,L,R,ye){super(),this._changeDetectorRef=g,this._elementRef=L,this._defaults=R,this._activeOptionChanges=ae.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new n.vpe,this.opened=new n.vpe,this.closed=new n.vpe,this.optionActivated=new n.vpe,this._classList={},this.id="mat-autocomplete-"+js++,this.inertGroups=ye?.SAFARI||!1,this._autoActiveFirstOption=!!R.autoActiveFirstOption,this._autoSelectActiveOption=!!R.autoSelectActiveOption,this._requireSelection=!!R.requireSelection}ngAfterContentInit(){this._keyManager=new Ce.s1(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(g=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[g]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(g){this.panel&&(this.panel.nativeElement.scrollTop=g)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(g){const L=new pl(this,g);this.optionSelected.emit(L)}_getPanelAriaLabelledby(g){return this.ariaLabel?null:this.ariaLabelledby?(g?g+" ":"")+this.ariaLabelledby:g}_setVisibilityClasses(g){g[this._visibleClass]=this.showPanel,g[this._hiddenClass]=!this.showPanel}_setThemeClasses(g){g["mat-primary"]="primary"===this._color,g["mat-warn"]="warn"===this._color,g["mat-accent"]="accent"===this._color}_skipPredicate(g){return g.disabled}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(Pi),n.Y36(G.t4))};static#t=this.\u0275dir=n.lG2({type:F,viewQuery:function(L,R){if(1&L&&(n.Gf(n.Rgc,7),n.Gf(sd,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R.template=ye.first),n.iGM(ye=n.CRH())&&(R.panel=ye.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[n.qOj]})}return F})(),Sc=(()=>{class F extends ld{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new n.vpe,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(g){this._hideSingleSelectionIndicator=(0,qt.Ig)(g),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const g of this.options)g._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(g){return!1}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-autocomplete"]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,Ve.K7,5),n.Suo(ye,Ve.ey,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.optionGroups=Dt),n.iGM(Dt=n.CRH())&&(R.options=Dt)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[n._Bn([{provide:Ve.HF,useExisting:F}]),n.qOj],ngContentSelectors:hc,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(L,R){1&L&&(n.F$t(),n.YNc(0,uc,3,5,"ng-template"))},dependencies:[e.mk],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Qa]},changeDetection:0})}return F})();const Td={provide:Z.JU,useExisting:(0,n.Gpc)(()=>Bc),multi:!0},ca=new n.OlP("mat-autocomplete-scroll-strategy"),Dd={provide:ca,deps:[Do.aV],useFactory:function zd(F){return()=>F.scrollStrategies.reposition()}};let Lo=(()=>{class F{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(g){this._autocompleteDisabled=(0,qt.Ig)(g)}constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){this._element=g,this._overlay=L,this._viewContainerRef=R,this._zone=ye,this._changeDetectorRef=Dt,this._dir=vi,this._formField=Fo,this._document=Ya,this._viewportRuler=Rd,this._defaults=kd,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=ae.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Oe.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,qa.P)(()=>{const tc=this.autocomplete?this.autocomplete.options:null;return tc?tc.changes.pipe((0,fn.O)(tc),(0,ai.w)(()=>(0,Ft.T)(...tc.map(Iu=>Iu.onSelectionChange)))):this._zone.onStable.pipe((0,jn.q)(1),(0,ai.w)(()=>this.optionSelections))}),this._handlePanelKeydown=tc=>{(tc.keyCode===U.hY&&!(0,U.Vb)(tc)||tc.keyCode===U.LH&&(0,U.Vb)(tc,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),tc.stopPropagation(),tc.preventDefault())},this._trackedModal=null,this._scrollStrategy=Mn}ngAfterViewInit(){const g=this._getWindow();typeof g<"u"&&this._zone.runOutsideAngular(()=>g.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(g){g.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const g=this._getWindow();typeof g<"u"&&g.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&(0,Ce.Zf)(this._trackedModal,"aria-owns",this.autocomplete.id)}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&(0,Ce.iD)(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Ft.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,oi.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,oi.h)(()=>this._overlayAttached)):(0,Se.of)()).pipe((0,xr.U)(g=>g instanceof Ve.rN?g:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Ft.T)((0,ot.R)(this._document,"click"),(0,ot.R)(this._document,"auxclick"),(0,ot.R)(this._document,"touchend")).pipe((0,oi.h)(g=>{const L=(0,G.sA)(g),R=this._formField?this._formField._elementRef.nativeElement:null,ye=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&L!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!R||!R.contains(L))&&(!ye||!ye.contains(L))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(L)}))}writeValue(g){Promise.resolve(null).then(()=>this._assignOptionValue(g))}registerOnChange(g){this._onChange=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this._element.nativeElement.disabled=g}_handleKeydown(g){const L=g.keyCode,R=(0,U.Vb)(g);if(L===U.hY&&!R&&g.preventDefault(),this.activeOption&&L===U.K5&&this.panelOpen&&!R)this.activeOption._selectViaInteraction(),this._resetActiveItem(),g.preventDefault();else if(this.autocomplete){const ye=this.autocomplete._keyManager.activeItem,Dt=L===U.LH||L===U.JH;L===U.Mf||Dt&&!R&&this.panelOpen?this.autocomplete._keyManager.onKeydown(g):Dt&&this._canOpen()&&this.openPanel(),(Dt||this.autocomplete._keyManager.activeItem!==ye)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(g){let L=g.target,R=L.value;"number"===L.type&&(R=""==R?null:parseFloat(R)),this._previousValue!==R&&(this._previousValue=R,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(R),R||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===g.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(g=!1){this._formField&&"auto"===this._formField.floatLabel&&(g?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const g=this._zone.onStable.pipe((0,jn.q)(1)),L=this.autocomplete.options.changes.pipe((0,dc.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Ec.g)(0));return(0,Ft.T)(g,L).pipe((0,ai.w)(()=>(this._zone.run(()=>{const R=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),R!==this.panelOpen&&(this.panelOpen?(this._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,jn.q)(1)).subscribe(R=>this._setValueAndClose(R))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(g){const L=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(g):g;this._updateNativeInputValue(L??"")}_updateNativeInputValue(g){this._formField?this._formField._control.value=g:this._element.nativeElement.value=g,this._previousValue=g}_setValueAndClose(g){const L=this.autocomplete,R=g?g.source:this._pendingAutoselectedOption;R?(this._clearPreviousSelectedOption(R),this._assignOptionValue(R.value),this._onChange(R.value),L._emitSelectEvent(R),this._element.nativeElement.focus()):L.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),L._animationDone?L._animationDone.pipe((0,jn.q)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(g,L){this.autocomplete?.options?.forEach(R=>{R!==g&&R.selected&&R.deselect(L)})}_attachOverlay(){let g=this._overlayRef;g?(this._positionStrategy.setOrigin(this._getConnectedElement()),g.updateSize({width:this._getPanelWidth()})):(this._portal=new ct.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),g=this._overlay.create(this._getOverlayConfig()),this._overlayRef=g,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&g&&g.updateSize({width:this._getPanelWidth()})})),g&&!g.hasAttached()&&(g.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const L=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&L!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const g=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=g.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=g.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Do.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const g=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(g),this._positionStrategy=g,g}_setStrategyPositions(g){const L=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],R=this._aboveClass,ye=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:R},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:R}];let Dt;Dt="above"===this.position?ye:"below"===this.position?L:[...L,...ye],g.withPositions(Dt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const g=this.autocomplete;if(g.autoActiveFirstOption){let L=-1;for(let R=0;R .cdk-overlay-container [aria-modal="true"]');if(!g)return;const L=this.autocomplete.id;this._trackedModal&&(0,Ce.iD)(this._trackedModal,"aria-owns",L),(0,Ce.Zf)(g,"aria-owns",L),this._trackedModal=g}_clearFromModal(){this._trackedModal&&((0,Ce.iD)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(Do.aV),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(ca),n.Y36(J.Is,8),n.Y36(Ai.G_,9),n.Y36(e.K0,8),n.Y36(_t.rL),n.Y36(Pi,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[n.TTD]})}return F})(),Bc=(()=>{class F extends Lo{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(L,R){1&L&&n.NdJ("focusin",function(){return R._handleFocus()})("blur",function(){return R._onTouched()})("input",function(Dt){return R._handleInput(Dt)})("keydown",function(Dt){return R._handleKeydown(Dt)})("click",function(){return R._handleClick()}),2&L&&n.uIk("autocomplete",R.autocompleteAttribute)("role",R.autocompleteDisabled?null:"combobox")("aria-autocomplete",R.autocompleteDisabled?null:"list")("aria-activedescendant",R.panelOpen&&R.activeOption?R.activeOption.id:null)("aria-expanded",R.autocompleteDisabled?null:R.panelOpen.toString())("aria-controls",R.autocompleteDisabled||!R.panelOpen||null==R.autocomplete?null:R.autocomplete.id)("aria-haspopup",R.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[n._Bn([Td]),n.qOj]})}return F})(),Ta=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[Dd],imports:[Do.U8,Ve.Ng,Ve.BQ,e.ez,_t.ZD,Ve.Ng,Ve.BQ]})}return F})();function Ed(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-chip-row",11),n.NdJ("removed",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.removeInterest(ye))}),n._uU(1),n.TgZ(2,"button",12)(3,"mat-icon"),n._uU(4,"cancel"),n.qZA()()()}if(2&F){const g=Xe.$implicit;n.xp6(1),n.hij(" ",g.name," "),n.xp6(1),n.uIk("aria-label","remove "+g.name)}}function yc(F,Xe){if(1&F&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&F){const g=Xe.$implicit;n.Q6J("value",g),n.xp6(1),n.hij(" ",g.name," ")}}let ql=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt){super(g,L,R),this.categoryService=ye,this.notifier=Dt,this.categories=[],this.selectedCategories=[],this.searchInputCtl=new Z.NI,this.separatorKeysCodes=[U.K5,U.OC],this.message=""}componentName(){return"ChooseInterestComponent"}ngOnInit(){this.loadCategories(null,null),this.loadMyInterests()}getAutoCompleteItems(){return(0,Se.of)(this.categories)}loadCategories(g,L){this.notifier.log("Loading child categories for: "+g);let R=null==g?S.Z.CATEGORIES.LOADED_ROOT_CATEGORIES():S.Z.CATEGORIES.LOADED_CHILD_CATEGORIES();R=this.componentKey(R),this.categoryService.loadCategories(R,g,L),this.subscribe(R,null,(ye,Dt)=>{this.categories=Dt.data.content,this.notifier.log(this.categories)})}chooseInterest(g){this.selectedCategories.map(L=>L.id).indexOf(g.id)>-1||this.selectedCategories.push(g)}removeInterest(g){let L=this.selectedCategories.map(R=>R.id).indexOf(g.id);this.selectedCategories.splice(L,1)}saveInterests(){let g=this.componentKey(S.Z.CATEGORIES.INTERESTS_SAVED());this.categoryService.saveInterests(g,this.selectedCategories),this.subscribe(g,"/",(L,R)=>{this.notifier.success("Success!","Interests Saved!"),this.notifier.log(R.data)}),this.subscribe(this.getErrorKey(g),"/",(L,R)=>{this.notifier.error("Failed!","Could not save interests!"),this.notifier.log(R.data)})}loadMyInterests(){let g=this.componentKey(S.Z.CATEGORIES.FETCH_INTERESTS());this.categoryService.fetchInterests(g),this.subscribe(g,null,(L,R)=>{this.selectedCategories=R.data.map(Dt=>Dt.category),0===this.selectedCategories.length&&(this.selectedCategories=this.categories,this.message="No interests found on your profile. So we automatically filled some items for you. You can remove, search for new items for interest profile.")})}add(g){}selected(g){this.chooseInterest(g.option.value),this.searchInputCtl.setValue("")}searchInputChange(){this.loadCategories(null,this.searchInputCtl.value)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(nd.H),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-choose-interest"]],features:[n.qOj],decls:15,vars:9,consts:[[1,"row","col-sm-12","ps-2"],[1,"example-chip-list"],["aria-label","Fruit selection"],["chipGrid",""],[3,"removed",4,"ngFor","ngForOf"],["placeholder","Search Interests...",3,"formControl","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","matChipInputTokenEnd","input"],["searchInput",""],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"btn","btn-success",3,"click"],[3,"removed"],["matChipRemove",""],[3,"value"]],template:function(L,R){if(1&L&&(n.TgZ(0,"div",0)(1,"em"),n._uU(2),n.qZA(),n.TgZ(3,"mat-form-field",1)(4,"mat-chip-grid",2,3),n.YNc(6,Ed,5,2,"mat-chip-row",4),n.qZA(),n.TgZ(7,"input",5,6),n.NdJ("matChipInputTokenEnd",function(Dt){return R.add(Dt)})("input",function(){return R.searchInputChange()}),n.qZA(),n.TgZ(9,"mat-autocomplete",7,8),n.NdJ("optionSelected",function(Dt){return R.selected(Dt)}),n.YNc(11,yc,2,2,"mat-option",9),n.ALo(12,"async"),n.qZA()(),n.TgZ(13,"button",10),n.NdJ("click",function(){return R.saveInterests()}),n._uU(14,"SAVE INTERESTS"),n.qZA()()),2&L){const ye=n.MAs(5),Dt=n.MAs(10);n.xp6(2),n.Oqu(R.message),n.xp6(4),n.Q6J("ngForOf",R.selectedCategories),n.xp6(1),n.Q6J("formControl",R.searchInputCtl)("matChipInputFor",ye)("matAutocomplete",Dt)("matChipInputSeparatorKeyCodes",R.separatorKeysCodes),n.xp6(4),n.Q6J("ngForOf",n.lcZ(12,7,R.getAutoCompleteItems()))}},dependencies:[e.sg,Z.Fj,Z.JJ,Z.oH,fl,Ja,ka,qe,bi.Hw,Ai.KE,Sc,Ve.ey,Bc,e.Ov],styles:[".interests-chip-list[_ngcontent-%COMP%]{width:100%;padding:10px}"]})}return F})(),wc=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}fetchFollowStats(g,L){this.http.get(vn.e.USER.FETCH_FOLLOW_STATS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchFollowStats(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}followUser(g,L,R){this.http.post(vn.e.USER.FOLLOW_A_USER(L),{message:R}).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.followUser(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}unfollowUser(g,L){this.http.post(vn.e.USER.UNFOLLOW_A_USER(L),null).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.unfollowUser(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}getFollowers(g,L){let R=L?vn.e.USER.GET_MY_FOLLOWING():vn.e.USER.GET_MY_FOLLOWERS();this.http.get(R).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.getFollowers(g,L)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}getMyProfile(g){this.http.get(vn.e.USER.GET_MY_PROFILE()).subscribe(L=>{this.eventBus.publish(g,L)},L=>{this.handleError(L,R=>{this.getMyProfile(g)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})})}updateProfile(g,L){this.http.patch(vn.e.USER.UPDATE_MY_PROFILE(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.updateProfile(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();function kl(F,Xe){1&F&&n._UZ(0,"util-progress",4),2&F&&n.Q6J("bar",!0)}function Ql(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",5),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.onItemClick(ye))}),n.TgZ(1,"div",6),n.NdJ("touchstart",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.swipe(R,ye.SWIPE_START,ye.swipeKey))})("touchend",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.swipe(R,ye.SWIPE_END,ye.swipeKey))}),n.TgZ(2,"div",7)(3,"div",8),n._UZ(4,"img",9),n.TgZ(5,"div",10)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small")(9,"span",11),n._uU(10),n.qZA()()()()()()()}if(2&F){const g=Xe.$implicit;n.xp6(4),n.s9C("src",g.avatar,n.LSH),n.xp6(3),n.Oqu(g.name),n.xp6(3),n.hij("@",g.username,"")}}let Ac=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.userService=ye,this.isFollowing=!1,this.followers=[],this.itemClick=new n.vpe,this.swipeKey=this.componentKey("swipe")}componentName(){return"FollowersComponent"}ngOnInit(){this.loadFollowers(this.isFollowing?1:2),this.registerSwipe()}getTabHeaders(){let g=[];return g.push({id:1,title:"Following"}),g.push({id:2,title:"Followers"}),g}onTabSelected(g){this.loadFollowers(g)}loadFollowers(g){this.loading=!0;let L=1===g,R=this.componentKey(S.Z.USERS.GET_MY_FOLLOWERS());this.userService.getFollowers(R,L),this.subscribe(R,null,(ye,Dt)=>{this.followers=Dt.data.content,this.loading=!1})}onItemClick(g){this.router.navigateByUrl("/profile",{skipLocationChange:!0}).then(()=>{this.navigate("/u/"+g.username,L=>{}),this.itemClick.emit(!0)})}registerSwipe(){this.subscribe(this.swipeKey,null,(g,L)=>{L.data===this.SWIPE_RIGHT?(this.isFollowing=!1,this.onTabSelected(2)):(this.isFollowing=!0,this.onTabSelected(1))})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(wc))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-followers"]],inputs:{isFollowing:"isFollowing"},outputs:{itemClick:"itemClick"},features:[n.qOj],decls:4,vars:4,consts:[["id","followers"],[3,"tabHeaders","selectedTabId","onSelect"],[3,"bar",4,"ngIf"],["class","blog-post-area blog-post-area-comment bdr-top mt-2",3,"click",4,"ngFor","ngForOf"],[3,"bar"],[1,"blog-post-area","blog-post-area-comment","bdr-top","mt-2",3,"click"],[1,"container",3,"touchstart","touchend"],[1,"blog-post-top","d-flex","justify-content-between","py-1"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"image-rounded",3,"src"],[1,"content","ms-2"],[2,"color","#44d62c"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"app-tab-header",1),n.NdJ("onSelect",function(Dt){return R.onTabSelected(Dt)}),n.qZA(),n.YNc(2,kl,1,1,"util-progress",2),n.YNc(3,Ql,11,3,"section",3),n.qZA()),2&L&&(n.xp6(1),n.Q6J("tabHeaders",R.getTabHeaders())("selectedTabId",R.isFollowing?1:2),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngForOf",R.followers))},dependencies:[e.sg,e.O5,Ge.t,Wi],styles:["#followers[_ngcontent-%COMP%]{background:black}"]})}return F})();function Hc(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function Eo(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)("size",30)("message","Loading profile..")}function Xl(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"This field is required!"),n.qZA()())}function cd(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Select a gender!"),n.qZA()())}function fc(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Invalid!"),n.qZA()())}function xc(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Select a gender!"),n.qZA()())}function Po(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Invalid religion!"),n.qZA()())}function da(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",7)(1,"div",8)(2,"form",9)(3,"div",10)(4,"div",11),n._UZ(5,"img",12),n.TgZ(6,"div",13)(7,"input",14),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onImageSelected(R))}),n.qZA()()()(),n.TgZ(8,"div",15)(9,"label",16),n._uU(10,"Public Profile?"),n.TgZ(11,"span",17),n._uU(12,"*"),n.qZA(),n._uU(13,"\xa0\xa0"),n.qZA(),n._UZ(14,"input",18),n.qZA(),n.TgZ(15,"div")(16,"h5",19),n._uU(17,"BIRTHDAY"),n.TgZ(18,"span",17),n._uU(19,"*"),n.qZA()(),n._UZ(20,"input",20),n.qZA(),n.YNc(21,Xl,3,0,"div",21),n.TgZ(22,"div",22)(23,"h5",19),n._uU(24,"SELECT GENDER"),n.TgZ(25,"span",17),n._uU(26,"*"),n.qZA()(),n.TgZ(27,"div",23),n._UZ(28,"input",24),n.TgZ(29,"label",25),n._uU(30," Male "),n.qZA()(),n.TgZ(31,"div",23),n._UZ(32,"input",26),n.TgZ(33,"label",27),n._uU(34," Female "),n.qZA()(),n.TgZ(35,"div",23),n._UZ(36,"input",28),n.TgZ(37,"label",29),n._uU(38," Other "),n.qZA()(),n.YNc(39,cd,3,0,"div",21),n.qZA(),n.TgZ(40,"div")(41,"h5",19),n._uU(42,"MARITAL STATUS"),n.qZA(),n.TgZ(43,"select",30)(44,"option",31),n._uU(45,"Married"),n.qZA(),n.TgZ(46,"option",32),n._uU(47,"Unmarried"),n.qZA(),n.TgZ(48,"option",33),n._uU(49,"Divorced"),n.qZA(),n.TgZ(50,"option",34),n._uU(51,"Separated"),n.qZA(),n.TgZ(52,"option",35),n._uU(53,"Widower"),n.qZA(),n.TgZ(54,"option",36),n._uU(55,"Widow"),n.qZA(),n.TgZ(56,"option",37),n._uU(57,"Other"),n.qZA()(),n.YNc(58,fc,3,0,"div",21),n.qZA(),n.TgZ(59,"h5",19),n._uU(60,"BLOOD GROUP"),n.qZA(),n.TgZ(61,"div",38)(62,"div",23),n._UZ(63,"input",39),n.TgZ(64,"label",40),n._uU(65," A+ "),n.qZA()(),n.TgZ(66,"div",23),n._UZ(67,"input",41),n.TgZ(68,"label",42),n._uU(69," A- "),n.qZA()(),n.TgZ(70,"div",23),n._UZ(71,"input",43),n.TgZ(72,"label",44),n._uU(73," B+ "),n.qZA()(),n.TgZ(74,"div",23),n._UZ(75,"input",45),n.TgZ(76,"label",46),n._uU(77," B- "),n.qZA()(),n.TgZ(78,"div",23),n._UZ(79,"input",47),n.TgZ(80,"label",48),n._uU(81," AB+ "),n.qZA()(),n.TgZ(82,"div",23),n._UZ(83,"input",49),n.TgZ(84,"label",50),n._uU(85," AB- "),n.qZA()(),n.TgZ(86,"div",23),n._UZ(87,"input",51),n.TgZ(88,"label",52),n._uU(89," O+ "),n.qZA()(),n.TgZ(90,"div",23),n._UZ(91,"input",53),n.TgZ(92,"label",54),n._uU(93," O- "),n.qZA()(),n.YNc(94,xc,3,0,"div",21),n.qZA(),n.TgZ(95,"div")(96,"h5",19),n._uU(97,"RELIGION"),n.qZA(),n.TgZ(98,"select",55)(99,"option",56),n._uU(100,"Islam"),n.qZA(),n.TgZ(101,"option",57),n._uU(102,"Hindu"),n.qZA(),n.TgZ(103,"option",58),n._uU(104,"Buddhist"),n.qZA(),n.TgZ(105,"option",59),n._uU(106,"Christian"),n.qZA(),n.TgZ(107,"option",60),n._uU(108,"Humanity"),n.qZA(),n.TgZ(109,"option",61),n._uU(110,"Other"),n.qZA()(),n.YNc(111,Po,3,0,"div",21),n.qZA(),n.TgZ(112,"mat-dialog-actions",62)(113,"button",63),n._uU(114,"CANCEL"),n.qZA(),n.TgZ(115,"button",64),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.updateProfile())}),n._uU(116,"UPDATE "),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(2),n.Q6J("formGroup",g.profileForm),n.xp6(3),n.s9C("src",g.hasProfilePhoto()?null==g.profile?null:g.profile.photo:"assets/img/default-avatar.png",n.LSH),n.xp6(16),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.birthday)),n.xp6(18),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.gender)),n.xp6(19),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.marital_status)),n.xp6(36),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.gender)),n.xp6(17),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.religion)),n.xp6(4),n.Q6J("mat-dialog-close",!0)("disabled",g.profileForm.invalid)}}let Ll=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya){super(L,R,ye),this.location=g,this.notifier=Dt,this.userService=Mn,this.auth=vi,this.datePipe=Fo,this.fileUploadService=Ya,this.userId=null,this.profileForm=new Z.cw({gender:new Z.NI("",[Z.kI.required]),birthday:new Z.NI("",[Z.kI.required]),public:new Z.NI(!1),blood_group:new Z.NI(""),marital_status:new Z.NI(""),religion:new Z.NI(""),use_photo_as_avatar:new Z.NI("")}),this.profile=null,this.uploadFiles=[]}componentName(){return"UpdateProfileComponent"}ngOnInit(){this.fetchMyProfile()}fetchMyProfile(){this.loading=!0;let g=this.componentKey(S.Z.USERS.GET_MY_PROFILE());this.userService.getMyProfile(g),this.subscribe(g,null,(L,R)=>{this.profile=R.data,this.loading=!1,this.updateForm(this.profile)}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{let ye=R.data;404==ye.error.code&&(this.loading=!1,this.notifier.info("No profile","Fill the form to create your profile ")),this.notifier.log(ye)})}updateProfile(){let g=this.mapToProfile(this.profileForm.value),L=this.componentKey(S.Z.USERS.UPDATE_MY_PROFILE());this.userService.updateProfile(L,g),this.subscribe(L,null,(R,ye)=>{this.profile=ye.data}),this.subscribe(this.getErrorKey(L),null,(R,ye)=>{this.notifier.log(ye.data)})}mapToProfile(g){return{gender:g.gender,birthday:new Date(g.birthday),blood_group:""===g.blood_group?null:g.blood_group,marital_status:""===g.marital_status?null:g.marital_status,religion:""===g.religion?null:g.religion,public:""!==g.public,use_photo_as_avatar:!0,photo:null==this.profile?.photo?null:this.profile.photo,user_id:this.auth.getAuth().id}}updateForm(g){null!=g&&(this.profileForm.controls.public.setValue(g.public),this.profileForm.controls.birthday.setValue(this.datePipe.transform(g.birthday,"yyyy-MM-dd")),this.profileForm.controls.gender.setValue(g.gender),this.profileForm.controls.marital_status.setValue(g.marital_status),this.profileForm.controls.blood_group.setValue(g.blood_group),this.profileForm.controls.religion.setValue(g.religion))}hasProfilePhoto(){return null!=this.profile?.photo&&""!==this.profile?.photo.trim()}onImageSelected(g){if(this.uploadFiles.length>=3)this.notifier.info("Operation not allowed!","You can upload 3 photos in a post.");else if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R),this.uploadPhoto())}}}uploadPhoto(){this.loading=!0;let g=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.userId+""));this.fileUploadService.uploadImages(g,this.uploadFiles.map(L=>L.file)),this.subscribe(g,null,(L,R)=>{this.loading=!1,null!=this.profile&&(this.profile.photo=R.data[0].thumb_url)}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.loading=!1,this.notifier.error("Error",R.data.error.message)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(e.Ye),n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(te.l),n.Y36(wc),n.Y36(_e.e),n.Y36(e.uU),n.Y36(oe.J))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-update-profile"]],inputs:{userId:"userId"},features:[n.qOj],decls:6,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding","size","message",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],["class","login-form-section",4,"ngIf"],[3,"bar"],[3,"padding","size","message"],[1,"login-form-section"],[1,"astha-login-form-area"],["action","POST",3,"formGroup"],[1,"profile-picture-area","text-center"],[1,"profile-avater"],["alt","",1,"profile-avatar-new","profile-img-rounded",3,"src"],[1,"upload-img-area"],["type","file","id","image-upload",3,"change"],[1,"input-group"],["for","public",1,"form-check-label"],[1,"astaric-required"],["id","public","type","checkbox","name","public","formControlName","public",1,"form-check"],[1,"update-profile-label"],["type","date","name","birthday","placeholder","Birthday","formControlName","birthday","required","required",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"input-group","d-inline"],[1,"form-check"],["type","radio","name","gender","id","exampleRadios1","value","MALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios1",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios2","value","FEMALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios2",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios3","value","OTHER","formControlName","gender",1,"form-check-input"],["for","exampleRadios3",1,"form-check-label"],["name","marital_status","formControlName","marital_status",1,"form-select"],["value","MARRIED"],["value","UNMARRIED"],["value","DIVORCED"],["value","SEPARATED"],["value","WIDOWER"],["value","WIDOW"],["value","OTHERS"],[1,"input-group","form-check-inline"],["type","radio","name","blood_group","id","bg1","value","A_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg1",1,"form-check-label"],["type","radio","name","blood_group","id","bg2","value","A_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg2",1,"form-check-label"],["type","radio","name","blood_group","id","bg3","value","B_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg3",1,"form-check-label"],["type","radio","name","blood_group","id","bg4","value","B_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg4",1,"form-check-label"],["type","radio","name","blood_group","id","bg5","value","AB_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg5",1,"form-check-label"],["type","radio","name","blood_group","id","bg6","value","AB_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg6",1,"form-check-label"],["type","radio","name","blood_group","id","bg7","value","O_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg7",1,"form-check-label"],["type","radio","name","blood_group","id","bg8","value","O_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg8",1,"form-check-label"],["name","religion","formControlName","religion",1,"form-select"],["value","ISLAM"],["value","HINDU"],["value","BUDDHIST"],["value","CHRISTIAN"],["value","HUMANITY"],["value","OTHER"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close","disabled","click"],[1,"text-warning"]],template:function(L,R){1&L&&(n.YNc(0,Hc,1,1,"util-progress",0),n.YNc(1,Eo,1,3,"util-progress",1),n.TgZ(2,"div")(3,"div",2),n._UZ(4,"i",3),n.qZA()(),n.YNc(5,da,117,9,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(4),n.Q6J("ngIf",!R.loading))},dependencies:[e.O5,Z._Y,Z.YN,Z.Kr,Z.Fj,Z.Wl,Z.EJ,Z._,Z.JJ,Z.JL,Z.Q7,Z.sg,Z.u,Re.ZT,Re.H8,mt.lW,Ge.t],styles:[".update-profile-label[_ngcontent-%COMP%]{color:#44d62c;margin:20px 0 5px}input[type=date][_ngcontent-%COMP%]{color:#000!important}.astaric-required[_ngcontent-%COMP%]{color:red}.action-buttons[_ngcontent-%COMP%]{margin-top:20px;padding-bottom:20px;display:flex;flex-direction:row;align-content:center;justify-content:space-between}.form-check[_ngcontent-%COMP%]{margin-right:20px}.profile-avatar-new[_ngcontent-%COMP%]{height:70px;width:70px;margin-bottom:10px;object-fit:cover}.profile-picture-area[_ngcontent-%COMP%]{margin-bottom:20px}.upload-img-area[_ngcontent-%COMP%]{font-size:12px}.btn-change-photo[_ngcontent-%COMP%]{color:#44d62c;margin-bottom:20px}"]})}return F})();var as=C(2071),pc=C(1822);function ir(F,Xe){1&F&&n._UZ(0,"util-progress")}function k(F,Xe){1&F&&n._UZ(0,"app-post",2),2&F&&n.Q6J("post",Xe.$implicit)}function j(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,k,1,1,"app-post",1),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.posts?null:g.posts.content)}}let pe=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.postService=ye,this.username=null,this.posts=null}componentName(){return"PostListComponent"}ngOnInit(){this.fetchPosts()}fetchPosts(){if(null==this.username)return;this.loading=!0;let g=this.componentKey(S.Z.POSTS.FETCH_USER_POSTS(this.username));this.postService.fetchUserPosts(g,this.username,{}),this.subscribe(g,null,(L,R)=>{this.posts=R.data,this.loading=!1})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-list"]],inputs:{username:"username"},features:[n.qOj],decls:2,vars:2,consts:[[4,"ngIf"],[3,"post",4,"ngFor","ngForOf"],[3,"post"]],template:function(L,R){1&L&&(n.YNc(0,ir,1,0,"util-progress",0),n.YNc(1,j,2,1,"div",0)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,Ge.t,oa]})}return F})();function ke(F,Xe){1&F&&(n.TgZ(0,"mat-icon",2),n._uU(1,"reviews"),n.qZA(),n._uU(2," Reviews "))}function nt(F,Xe){1&F&&(n.TgZ(0,"mat-icon",2),n._uU(1,"dynamic_feed"),n.qZA(),n._uU(2," Posts "))}let Kt=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.username=null}componentName(){return"UserResourcesComponent"}ngOnInit(){}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-user-resources"]],inputs:{username:"username"},features:[n.qOj],decls:7,vars:2,consts:[["mat-tab-label",""],[3,"username"],[1,"example-tab-icon"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-tab-group")(1,"mat-tab"),n.YNc(2,ke,3,0,"ng-template",0),n._UZ(3,"app-review-list",1),n.qZA(),n.TgZ(4,"mat-tab"),n.YNc(5,nt,3,0,"ng-template",0),n._UZ(6,"app-post-list",1),n.qZA()()),2&L&&(n.xp6(3),n.Q6J("username",R.username),n.xp6(3),n.Q6J("username",R.username))},dependencies:[bi.Hw,vr,to,ga,Bs,pe],styles:[".example-tab-icon[_ngcontent-%COMP%]{margin-right:8px} mat-tab-header{align-self:center}"]})}return F})();function xn(F,Xe){1&F&&n._UZ(0,"util-progress",26),2&F&&n.Q6J("bar",!0)}function Mi(F,Xe){1&F&&n._UZ(0,"img",28)}function Oi(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Mi,1,0,"img",27),n.TgZ(2,"h5"),n._uU(3),n.qZA()()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.leaderboard?null:g.leaderboard.badges),n.xp6(2),n.Oqu(null==g.leaderboard||null==g.leaderboard.current_badge?null:g.leaderboard.current_badge.title)}}function Hr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",33),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.unfollow(R.username))}),n._uU(1,"Pending"),n.qZA()}}function ws(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.unfollow(R.username))}),n._uU(1,"Following"),n.qZA()}}function tl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.follow(R.username))}),n._uU(1,"Follow"),n.qZA()}}function Zs(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Hr,2,0,"span",31),n.YNc(2,ws,2,0,"span",32),n.YNc(3,tl,2,0,"span",30),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngIf","PENDING"===(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf","ACCEPTED"===(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf","REJECTED"===(null==g.followStats?null:g.followStats.my_follow_state))}}function Uc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.follow(R.username))}),n._uU(1,"Follow"),n.qZA()}}function ls(F,Xe){if(1&F&&(n.TgZ(0,"button",29),n.YNc(1,Zs,4,3,"div",16),n.YNc(2,Uc,2,0,"span",30),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngIf",null!=(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf",null==(null==g.followStats?null:g.followStats.my_follow_state))}}let Gd=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){super(L,R,ye),this.location=g,this.authService=Dt,this.notifier=Mn,this.leaderboardService=vi,this.walletService=Fo,this.dialog=Ya,this.userService=Rd,this.leaderboard=null,this.followStats=null,this.username=null,this.username=kd.snapshot.params.username}componentName(){return"ProfileComponent"}ngOnInit(){null==this.username&&(this.username=this.getAuthUsername()),this.fetchLeaderboard(),this.fetchFollowStats()}getAuthUsername(){return this.getAuth().username}goBack(){this.location.back()}isLoadComplete(){return null!=this.leaderboard}myProfile(){return this.username===this.getAuthUsername()}getAuth(){return this.authService.getAuth()}fetchLeaderboard(){if(null==this.username)return;let g=this.componentKey(S.Z.LEADERBOARDS.FETCH_LEADERBOARD(this.username));this.leaderboardService.fetchLeaderboard(g,this.username),this.subscribe(g,null,(L,R)=>{this.leaderboard=R.data})}getBadgeCount(){return null==this.leaderboard?0:this.leaderboard.badges.length}fetchFollowStats(){if(null==this.username)return;let g=this.componentKey(S.Z.USERS.FETCH_FOLLOW_STATS(this.username));this.userService.fetchFollowStats(g,this.username),this.subscribe(g,null,(L,R)=>{this.followStats=R.data})}follow(g){if(null==g)return;const L=this.componentKey(S.Z.USERS.FOLLOW_USER(g));this.userService.followUser(L,g,""),this.subscribe(L,null,(R,ye)=>{let Dt=ye.data;this.notifier.log(this.followStats),this.followStats&&(this.followStats.my_follow_state=Dt.state)})}unfollow(g){if(null==g)return;const L=this.componentKey(S.Z.USERS.UNFOLLOW_USER(g));this.userService.unfollowUser(L,g),this.subscribe(L,null,(R,ye)=>{this.followStats&&(this.followStats.my_follow_state=null)})}isMyProfile(){return!!this.authService.isAuthenticated()&&this.getAuthUsername()===this.username}openFollowingDialog(g){if(!this.isMyProfile())return;const L=this.dialog.open(Ac);let R=L.componentInstance;R.isFollowing=g,R.itemClick.subscribe(ye=>{L.close()}),L.afterClosed().subscribe(ye=>{this.reloadRoute()})}openLeaderboard(){if(null==this.leaderboard)return;let L=this.dialog.open(as.B,{width:"600px"}).componentInstance;L.leaderboard=this.leaderboard,L.username=this.username}openUpdateProfileDialog(){if(!this.isMyProfile())return;this.dialog.open(Ll).afterClosed().subscribe(R=>{this.reloadRoute()})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(e.Ye),n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(_e.e),n.Y36(te.l),n.Y36(ce.S),n.Y36(pc.X),n.Y36(Re.uw),n.Y36(wc),n.Y36(l.gz))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-profile"]],features:[n.qOj],decls:44,vars:11,consts:[[3,"bar",4,"ngIf"],[1,"header-area","px-3","py-1"],[1,"container"],[1,"row","align-items-center"],[1,"col-4"],[1,"header-left"],[3,"click"],[1,"icon-left-small"],[1,"site-logo"],[1,"edit-profile-section","right",3,"click"],[1,"icon-edit",2,"font-size","1.2em"],[1,"profile-section","py-2"],[1,"profile-picture-area","text-center"],[1,"profile-avater"],["alt","",1,"profile-avatar-new","profile-img-rounded",2,"min-height","100px",3,"src"],[1,"author-name"],[4,"ngIf"],[1,"username"],[1,"action-area"],[1,"col-4","text-center",3,"click"],["class","btn btn-outline-light",4,"ngIf"],[1,"col-5","text-center",3,"click"],[1,"scans-users-codes-area"],[1,"row",2,"padding","0 5% 0 5%"],[1,"btn","btn-outline-light",3,"click"],[3,"username"],[3,"bar"],["src","assets/img/recent-acchievements/rating/badge1.png",4,"ngFor","ngForOf"],["src","assets/img/recent-acchievements/rating/badge1.png"],[1,"btn","btn-outline-light"],[3,"click",4,"ngIf"],["class","btn-selected-not-yet",3,"click",4,"ngIf"],["class","btn-selected",3,"click",4,"ngIf"],[1,"btn-selected-not-yet",3,"click"],[1,"btn-selected",3,"click"]],template:function(L,R){1&L&&(n.YNc(0,xn,1,1,"util-progress",0),n.TgZ(1,"div")(2,"header",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"a",6),n.NdJ("click",function(){return R.goBack()}),n._UZ(8,"i",7),n.qZA()()(),n.TgZ(9,"div",4)(10,"div",8)(11,"h3"),n._uU(12,"Profile"),n.qZA()()(),n.TgZ(13,"div",4)(14,"div",9),n.NdJ("click",function(){return R.openUpdateProfileDialog()}),n._UZ(15,"i",10),n.qZA()()()()(),n.TgZ(16,"div",11)(17,"div",2)(18,"div",12)(19,"div",13),n._UZ(20,"img",14),n.qZA(),n.TgZ(21,"div",15),n.YNc(22,Oi,4,2,"div",16),n.TgZ(23,"h2"),n._uU(24),n.qZA(),n.TgZ(25,"span",17),n._uU(26),n.qZA()()(),n.TgZ(27,"div",18)(28,"div",19),n.NdJ("click",function(){return R.openFollowingDialog(!0)}),n.TgZ(29,"h2"),n._uU(30),n.qZA(),n.TgZ(31,"h4"),n._uU(32,"Following"),n.qZA()(),n.YNc(33,ls,3,2,"button",20),n.TgZ(34,"div",21),n.NdJ("click",function(){return R.openFollowingDialog(!1)}),n.TgZ(35,"h2"),n._uU(36),n.qZA(),n.TgZ(37,"h4"),n._uU(38,"Followers"),n.qZA()()(),n.TgZ(39,"div",22)(40,"div",23)(41,"button",24),n.NdJ("click",function(){return R.openLeaderboard()}),n._uU(42),n.qZA()()()()(),n._UZ(43,"app-user-resources",25),n.qZA()),2&L&&(n.Q6J("ngIf",!R.isLoadComplete()),n.xp6(1),n.Q6J("@dataLoaded",R.isLoadComplete()?"loaded":"loading"),n.xp6(19),n.s9C("src",null!=(null==R.leaderboard?null:R.leaderboard.avatar)?null==R.leaderboard?null:R.leaderboard.avatar:"assets/img/default-avatar.png",n.LSH),n.xp6(2),n.Q6J("ngIf",R.getBadgeCount()>0),n.xp6(2),n.Oqu(null==R.leaderboard?null:R.leaderboard.name),n.xp6(2),n.hij("@",R.username,""),n.xp6(4),n.Oqu(null==R.followStats?null:R.followStats.following_count),n.xp6(3),n.Q6J("ngIf",null!=R.leaderboard),n.xp6(3),n.Oqu(null==R.followStats?null:R.followStats.followers_count),n.xp6(6),n.hij("EARNED POINTS: ",null==R.leaderboard?null:R.leaderboard.points," (?)"),n.xp6(1),n.Q6J("username",R.username))},dependencies:[e.sg,e.O5,Ge.t,Kt],styles:['img[_ngcontent-%COMP%]{max-width:100%;height:auto}body[_ngcontent-%COMP%]{background-color:var(--body-color);color:#222126}.header-area[_ngcontent-%COMP%] .header-left[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .header-area[_ngcontent-%COMP%] .site-logo[_ngcontent-%COMP%]{color:#f5f5f5}.header-area[_ngcontent-%COMP%] .site-logo[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center;font-size:22px;font-weight:600}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%]{margin-top:15px}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:25px;font-weight:600}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--light-gray);font-size:var(--font-size-14px)}.profile-section[_ngcontent-%COMP%] .profile-avater[_ngcontent-%COMP%]{position:relative;display:inline-block}.profile-avatar-new[_ngcontent-%COMP%]{display:inline;margin:0 auto;height:60px!important;width:100px!important;object-fit:cover}.profile-section[_ngcontent-%COMP%] .profile-avater[_ngcontent-%COMP%]:after{position:absolute;content:"";left:0;top:0;width:100%;height:100%;border:3px solid #756CB5;z-index:2;display:inline-block;border-radius:50%}.scans-users-codes-area[_ngcontent-%COMP%]{border-top:1px solid var(--light-gray);padding-top:20px;margin-bottom:20px}.scans-users-codes-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--light-gray);font-size:var(--font-size-14px);text-transform:capitalize}.author-name[_ngcontent-%COMP%] .username[_ngcontent-%COMP%]{color:#44d62c}.scans-users-codes-area[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{color:#f5f5f5}.action-area[_ngcontent-%COMP%]{margin:10px 0 0 10px;display:flex;justify-content:center;flex-direction:row}.action-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin:10px;min-width:25%}.btn-selected[_ngcontent-%COMP%]{color:#44d62c;font-size:.8em}.btn-selected-not-yet[_ngcontent-%COMP%]{color:orange;outline-color:orange;font-size:.8em}.edit-profile-section[_ngcontent-%COMP%]{float:right}']})}return F})();var _c=C(9538);function Sd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function Eu(F,Xe){if(1&F&&n._UZ(0,"app-single-review-item",4),2&F){const g=n.oxw();n.Q6J("review",g.review)}}let Ad=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.reviewService=Dt,this.seoTitle=Mn,this.seoMeta=vi,this.productSlug="",this.reviewSlug="",this.postId=0,this.review=null,this.productSlug=ye.snapshot.params.productSlug,this.reviewSlug=ye.snapshot.params.reviewSlug,this.postId=ye.snapshot.params.postId}componentName(){return"ReviewDetailsComponent"}ngOnInit(){let g=this.componentKey(S.Z.REVIEWS.LOAD_REVIEW(this.reviewSlug));this.reviewService.fetchReview(g,this.productSlug,this.reviewSlug),this.subscribe(g,null,(L,R)=>{this.review=R.data,this.resolveSeo(this.review),this.loading=!1})}resolveSeo(g){null!=g&&super.initSeoItems(this.seoTitle,this.seoMeta,g.title,g.pros+", "+g.cons,[g.product_name+" review","Rating for "+g.product_name],null,null,this.getCoverPhoto(g),this.getPermalink())}getCoverPhoto(g){return null==g.photos||0==g.photos.length?null:g.photos[0]}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(se.F),n.Y36(nn.Dx),n.Y36(nn.h_))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-review-details"]],features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"review",4,"ngIf"],[3,"postId"],[3,"bar"],[3,"review"]],template:function(L,R){1&L&&(n.YNc(0,Sd,1,1,"util-progress",0),n.YNc(1,Eu,1,1,"app-single-review-item",1),n._UZ(2,"app-conversation-area",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("postId",R.postId))},dependencies:[e.O5,Ge.t,El,Al]})}return F})();function Wd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function Pl(F,Xe){if(1&F&&n._UZ(0,"app-post",4),2&F){const g=n.oxw();n.Q6J("post",g.post)("fullVersion",!0)}}let ua=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.postService=Dt,this.dialog=Mn,this.postId=0,this.post=null,this.postId=ye.snapshot.params.postId}componentName(){return"PostDetailsComponent"}ngOnInit(){this.loadData(this.postId)}loadData(g){this.loading=!0;const L=this.componentKey(S.Z.POSTS.FETCH_POST(g));this.postService.fetchPost(L,this.postId),this.subscribe(L,null,(R,ye)=>{this.post=ye.data,this.loading=!1})}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g,R.onPosted.subscribe(ye=>{this.post=ye,L.close()}),R.onCancel.subscribe(ye=>{L.close()})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(Re.uw))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-details"]],inputs:{postId:"postId",post:"post"},features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"post","fullVersion",4,"ngIf"],[3,"postId"],[3,"bar"],[3,"post","fullVersion"]],template:function(L,R){1&L&&(n.YNc(0,Wd,1,1,"util-progress",0),n.YNc(1,Pl,1,2,"app-post",1),n._UZ(2,"app-conversation-area",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("postId",R.postId))},dependencies:[e.O5,Ge.t,oa,Al]})}return F})();var Or=C(9029);function Vc(F,Xe){1&F&&n._UZ(0,"util-progress",18),2&F&&n.Q6J("bar",!0)}function zo(F,Xe){1&F&&(n.TgZ(0,"em",19),n._uU(1,"Write at least 3 characters to start searching"),n.qZA())}function zi(F,Xe){1&F&&n._UZ(0,"util-progress",20),2&F&&n.Q6J("padding",100)}function Nl(F,Xe){1&F&&(n.TgZ(0,"div",21),n._UZ(1,"i",22),n.TgZ(2,"h3",23),n._uU(3,"Search for products"),n.qZA()())}function La(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-single-product-item",26),n.NdJ("onClick",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.onProductClick(ye))}),n.qZA()}2&F&&n.Q6J("product",Xe.$implicit)}function $d(F,Xe){if(1&F&&(n.TgZ(0,"div",24),n.YNc(1,La,1,1,"app-single-product-item",25),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.products)}}let mc=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.productService=ye,this.query=new Z.NI(""),this.productPage=null,this.products=[],this.filters={q:"",brand_id:null,category_id:null,min_retail_price:0,max_retail_price:9e4},this.showFilter=!1}componentName(){return"SearchComponent"}ngOnInit(){this.loading=!1,F.setDefaultFocus()}onQueryEntering(g){this.query.value.length<3||(this.filters.q=this.query.value,this.searchProducts())}static setDefaultFocus(){document.getElementById("search-input")?.focus()}searchProducts(){this.loading=!0;let g=this.componentKey(S.Z.PRODUCTS.SEARCH_PRODUCTS());this.productService.search(g,this.filters),this.subscribe(g,null,(L,R)=>{this.products=this.mapToSlice(R.data.content),this.loading=!1})}onProductClick(g){this.navigate("/products/"+g.product_id+"/"+g.product_slug,L=>{console.log(g)})}toggleFilter(){this.showFilter=!this.showFilter}onFilter(g){g.q=this.query.value,this.filters=g,this.searchProducts()}mapToSlice(g){let L=[];return g.forEach(R=>{L.push({image:R.cover_photo,description:R.description,product_id:R.id,product_name:R.name,product_slug:R.slug,average_rating:R.average_rating})}),L}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Qt.M))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-search"]],features:[n.qOj],decls:24,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"search-area"],[1,"container"],[1,"search-box","d-flex","justify-content-center"],[1,"search"],["type","text","id","search-input","placeholder","Search for products, jobs anything",1,"search-input",3,"formControl","input"],["href","#",1,"search-icon"],[1,"flaticon-search-interface-symbol"],["style","padding: 0 0 0 2px",4,"ngIf"],[1,"product-section","pt-4","mb-1"],[1,"row","align-items-center","mb-3"],[1,"col-7"],[1,"col-5",3,"click"],[1,"product-header-right","d-flex","justify-content-between"],["src","../../../../../assets/img/FunnelSimple.png","alt",""],[3,"padding",4,"ngIf"],["class","centerize",4,"ngIf"],["class","product-list-area",4,"ngIf"],[3,"bar"],[2,"padding","0 0 0 2px"],[3,"padding"],[1,"centerize"],[1,"flaticon-search-interface-symbol",2,"font-size","4em"],[1,"mt-3"],[1,"product-list-area"],["class","item",3,"product","onClick",4,"ngFor","ngForOf"],[1,"item",3,"product","onClick"]],template:function(L,R){1&L&&(n.YNc(0,Vc,1,1,"util-progress",0),n.TgZ(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"input",5),n.NdJ("input",function(Dt){return R.onQueryEntering(Dt)}),n.qZA(),n.TgZ(6,"a",6),n._UZ(7,"i",7),n.qZA()()(),n.YNc(8,zo,2,0,"em",8),n.qZA()(),n.TgZ(9,"section",9)(10,"div",2)(11,"div",10)(12,"div",11)(13,"h5"),n._uU(14,"Search Results"),n.qZA()(),n.TgZ(15,"div",12),n.NdJ("click",function(){return R.toggleFilter()}),n.TgZ(16,"div",13)(17,"h5"),n._uU(18,"Filter"),n.qZA(),n._UZ(19,"img",14),n.qZA()()(),n._UZ(20,"div"),n.qZA(),n.YNc(21,zi,1,1,"util-progress",15),n.YNc(22,Nl,4,0,"div",16),n.YNc(23,$d,2,1,"div",17),n.qZA()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(5),n.Q6J("formControl",R.query),n.xp6(3),n.Q6J("ngIf",R.query.value.length>0&&R.query.value.length<3),n.xp6(12),n.Q6J("@dataLoaded",R.showFilter?"loaded":"loading"),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&0===R.products.length),n.xp6(1),n.Q6J("ngIf",R.products.length>0))},dependencies:[e.sg,e.O5,Z.Fj,Z.JJ,Z.oH,Ge.t,Or.d],styles:[".product-list-area[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center;align-items:stretch;align-content:space-between}.product-list-area[_ngcontent-%COMP%]:after{display:block;margin:10px;flex:999 999 auto}.item[_ngcontent-%COMP%]{flex:0 0 auto;margin:10px}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{height:auto;position:relative}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:40px;width:95%}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:16px;position:absolute;height:auto;width:auto;top:50%;left:12px;margin-top:-9px;display:inline-block}"]})}return F})();var jc=C(1715),_l=C(5195);function Su(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.itemClick(R.notification))}),n.qZA()}if(2&F){const g=n.oxw(2);n.s9C("src",g.notification.image,n.LSH),n.s9C("alt",g.notification.title)}}function nu(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onActionRead(R.notification.id,!0))}),n._uU(1,"MARK READ"),n.qZA()}}function Pa(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onActionRead(R.notification.id,!1))}),n._uU(1,"MARK UNREAD"),n.qZA()}}const ao=function(F){return{read:F}};function Zc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-card",1)(1,"mat-card-title-group")(2,"mat-card-title",2),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.itemClick(R.notification))}),n._uU(3),n.qZA(),n.TgZ(4,"mat-card-subtitle"),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.YNc(7,Su,1,2,"img",3),n.qZA(),n.TgZ(8,"mat-card-content",2),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.itemClick(R.notification))}),n._uU(9),n.qZA(),n.TgZ(10,"mat-card-actions",4),n.YNc(11,nu,2,0,"button",5),n.YNc(12,Pa,2,0,"button",5),n.qZA()()}if(2&F){const g=n.oxw();n.Q6J("ngClass",n.VKq(10,ao,g.notification.read)),n.xp6(3),n.hij(" ",g.notification.title," "),n.xp6(2),n.Oqu(n.xi3(6,7,g.notification.created_at,!0)),n.xp6(2),n.Q6J("ngIf",null!=g.notification.image),n.xp6(2),n.hij(" ",g.notification.description," "),n.xp6(2),n.Q6J("ngIf",!g.notification.read),n.xp6(1),n.Q6J("ngIf",g.notification.read)}}let Go=(()=>{class F extends I.H{constructor(g,L,R){super(g,L,R),this.notification=null,this.notificationItemClick=new n.vpe,this.onMarkRead=new n.vpe}componentName(){return"NotificationComponent"}ngOnInit(){}itemClick(g){null!=g&&this.notificationItemClick.emit(g)}onActionRead(g,L){this.onMarkRead.emit({notificationId:g,read:L})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-notification"]],inputs:{notification:"notification"},outputs:{notificationItemClick:"notificationItemClick",onMarkRead:"onMarkRead"},features:[n.qOj],decls:1,vars:1,consts:[["class","notification-card",3,"ngClass",4,"ngIf"],[1,"notification-card",3,"ngClass"],[3,"click"],["class","card-img-sm-cover","mat-card-sm-image","",3,"src","alt","click",4,"ngIf"],["align","end"],["mat-button","",3,"click",4,"ngIf"],["mat-card-sm-image","",1,"card-img-sm-cover",3,"src","alt","click"],["mat-button","",3,"click"]],template:function(L,R){1&L&&n.YNc(0,Zc,13,12,"mat-card",0),2&L&&n.Q6J("ngIf",R.notification)},dependencies:[e.mk,e.O5,_l.a8,_l.hq,_l.dn,_l.vP,_l.$j,_l.n5,_l.C1,Yr.G],styles:[".notification-card[_ngcontent-%COMP%]{max-width:100%;margin-bottom:8px;font-family:Poppins,sans-serif}.read[_ngcontent-%COMP%]{color:#9d9d9d}mat-card-title[_ngcontent-%COMP%]{font-size:1em}mat-card-subtitle[_ngcontent-%COMP%]{font-size:.7em;color:gray}mat-card-content[_ngcontent-%COMP%]{font-size:.8em}.card-img-sm-cover[_ngcontent-%COMP%]{object-fit:cover;width:50px;height:50px;border-radius:10%;overflow:hidden}"]})}return F})();function Kd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function zc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notification",8),n.NdJ("notificationItemClick",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onNotificationItemClick(R))})("onMarkRead",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onMarkRead(R))}),n.qZA()}2&F&&n.Q6J("notification",Xe.$implicit)}function Jd(F,Xe){1&F&&(n.TgZ(0,"div",9),n._UZ(1,"i",10),n.TgZ(2,"h4",11),n._uU(3,"No notifications yet!"),n.qZA()())}function nl(F,Xe){if(1&F&&(n.TgZ(0,"div",4)(1,"h5",5),n._uU(2,"MY NOTIFICATIONS"),n.qZA(),n.YNc(3,zc,1,1,"app-notification",6),n.YNc(4,Jd,4,0,"div",7),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("ngForOf",null==g.notifications?null:g.notifications.content),n.xp6(1),n.Q6J("ngIf",!g.loading&&0===(null==g.notifications?null:g.notifications.numberOfElements))}}function Gc(F,Xe){1&F&&n._UZ(0,"util-progress",12),2&F&&n.Q6J("padding",70)}const ml=[{path:"",component:D.O},{path:"products/:id/:slug",component:vc},{path:"newsfeed",component:To,canActivate:[_c.P]},{path:"choose-interests",component:ql,canActivate:[_c.P]},{path:"profile",component:Gd,canActivate:[_c.P]},{path:"u/:username",component:Gd,canActivate:[_c.P]},{path:"reviews/:productSlug/:reviewSlug/:postId",component:Ad,canActivate:[_c.P]},{path:"posts/:postId",component:ua,canActivate:[_c.P]},{path:"search",component:mc},{path:"notifications",component:(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.notificationService=ye,this.notifications=null,this.params={page:0}}componentName(){return"MyNotificationsComponent"}ngOnInit(){this.fetchNotifications(this.params)}fetchNotifications(g){this.loading=!0;let L=this.componentKey(S.Z.NOTIFICATIONS.FETCH_MY_NOTIFICATIONS());this.notificationService.fetchMyNotifications(L,g),this.subscribe(L,null,(R,ye)=>{this.notifications=ye.data,this.loading=!1})}onNotificationItemClick(g){""!==g.redirect_url&&this.router.navigateByUrl(g.redirect_url)}onMarkRead(g){let L=this.componentKey(S.Z.NOTIFICATIONS.MARK_READ()),R=this.globalKey(S.Z.NOTIFICATIONS.COUNT_UNREAD());this.notificationService.markRead(L,R,g.notificationId,g.read),this.subscribe(L,null,(ye,Dt)=>{this.fetchNotifications(this.params)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(jc.g))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-my-notifications"]],features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],["class","notification-area mx-2",4,"ngIf"],[3,"padding",4,"ngIf"],[3,"bar"],[1,"notification-area","mx-2"],[1,"page-title","mb-2","bdr-top","pt-2"],[3,"notification","notificationItemClick","onMarkRead",4,"ngFor","ngForOf"],["class","centerize",4,"ngIf"],[3,"notification","notificationItemClick","onMarkRead"],[1,"centerize"],[1,"icon-pencil",2,"font-size","2em"],[1,"mt-3"],[3,"padding"]],template:function(L,R){1&L&&(n.YNc(0,Kd,1,1,"util-progress",0),n.YNc(1,nl,5,2,"div",1),n.YNc(2,Gc,1,1,"util-progress",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("ngIf",R.loading))},dependencies:[e.sg,e.O5,Ge.t,Go],styles:[".page-title[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})(),canActivate:[_c.P]}];let Oc=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[l.Bz.forChild(ml),l.Bz]})}return F})();var Au=C(8468);let Mc=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({})}return F})(),Bn=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[Ve.BQ,Ai.lN,Ai.lN,Mc,Ve.BQ]})}return F})();var ri=C(7151),Hn=C(469);let Od=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[Ve.uc,Ve.BQ,Ve.uc,Ve.BQ]})}return F})();var Tc=C(1989);let Id=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[e.uU],imports:[e.ez,Oc,Z.UX,Au.bB,Md,bi.Ps,Ai.lN,Ta,Ve.Ng,Re.Is,mt.ot,Bn,ri.g,Hn.f,Li,Od,_l.QW,Jo.LD,Z.u5,Tc.SocialModule]})}return F})();n.B6R(Al,[e.sg,e.O5,Ge.t,oa,Ga],[])},30:(ft,Ie,C)=>{"use strict";C.d(Ie,{Y:()=>D});var e=C(5879),l=C(5806);let D=(()=>{class I{constructor(w){this.eventBus=w}publish(w,n){this.eventBus.cast(w,n)}on(w){return this.eventBus.on(w)}static#e=this.\u0275fac=function(n){return new(n||I)(e.LFG(l.F))};static#t=this.\u0275prov=e.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},7259:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>l});var e=C(2495);let l=(()=>{class D{static#e=this.ERRORS={HTTP_UNAUTHORIZED_ERROR:"error:http:unauthorized"};static#t=this.AUTH={LOGIN_SUCCESS:"auth:login:success",SERVER_ERROR:"auth:login:server_error",ERROR_INVALID_CREDENTIALS:"auth:login:invalid_credentials",LOGOUT:"auth:logout:success"};static#n=this.REGISTRATION={OTP_SENT:"register:otp:sent",OTP_SEND_ERROR:"register:otp:send-error",REGISTER_SUCCESS:"register:success",REGISTER_ERROR:"register:error"};static#i=this.RESET_PASSWORD={TOKEN_REQUESTED:"reset:otp:token-requested",RESET_SUCCESS:"reset:password:success",RESET_PASSWORD_ERROR:"reset:password:error"};static#r=this.CATEGORIES={LOADED_ROOT_CATEGORIES:()=>"categories:load:success:root",LOADED_CHILD_CATEGORIES:()=>"categories:load:success:child",INTERESTS_SAVED:()=>"categories:interests:saved",FETCH_INTERESTS:()=>"categories:interests:fetch",LOADED_CATEGORY_ATTRIBUTES:S=>"categories:attributes:cat"+S,SEARCH_CATEGORIES:()=>"categories:search",SEARCH_CATEGORIES_FOR_FILTER:()=>"categories:search:filter-search",GET_MULTIPLE:S=>"categories:get-multiple:"+S.join(",")};static#o=this.PRODUCT_CATEGORIES={SEARCH:S=>"categorys:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"categorys:upsert:"+S,GET:S=>"categorys:get-single:"+S};static#s=this.PRODUCTS={SEARCH_PRODUCTS:()=>"product:search",SEARCH_BRANDS:()=>"product:search-brands",PRODUCTS_LOADED:S=>"products:load:success:attr"+S,PRODUCT_DETAILS_LOADED:S=>"products:load:details:success:"+S};static#a=this.PRODUCTS_V2={SEARCH:S=>"products:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"products:upsert:"+S,GET:S=>"products:get-single:"+S,APPROVE:S=>"products:approve-single:"+S};static#l=this.ATTRS={ATTR_FOR_PRODUCT_LOADED:S=>"attrs:load:success:"+S};static#c=this.FILES={IMAGE_UPLOAD:S=>"files:upload:images:"+S,SEARCH:S=>"files:search:search".concat(e.O.toParamString(S)),SEARCH_IMAGES:S=>"files:images:search".concat(e.O.toParamString(S)),UPSERT:S=>"files:upsert:"+S,GET:S=>"files:get-single:"+S};static#d=this.REVIEWS={POST_REVIEW:S=>"reviews:create-review"+S,LOAD_MY_REVIEW:S=>"reviews:fetch-my-review:"+S,LOAD_REVIEW:S=>"reviews:fetch-review:"+S,LOADED_PRODUCT_REVIEWS:S=>"reviews:loaded-product-reviews:"+S,FETCH_USER_REVIEWS:S=>"reviews:loaded-user-reviews:"+S,LOADED_PRODUCT_AVG_RATINGS:()=>"reviews:loaded-product-ratings:avg",MY_REVIEW_POSTED:S=>"review:post:my-review:p:"+S,FETCH_RECENT_REVIEWS:()=>"reviews:recent-reviews",FETCH_CRITIC_REVIEWS:()=>"reviews:critic-reviews",FETCH_INTERESTING_STORIES:()=>"reviews:interesting-stories",CLOSE_SHOW_REVIEW_DIALOG:()=>"close-dialog",SEND_VERIFICATION_REQUEST:S=>"review:send-verification-request:"+S,POST_REVIEW_REPORT:S=>"report:send-report-reviews-request:"+S,GET_VERIFICATION_FOR_REVIEW:S=>"review:get-verification-for-review:"+S,RECONSIDER_VERIFICATION:S=>"review:reconsider-verification:"+S,GET_REPORT_DETAILS_FOR_REVIEW:S=>"report:report-review-details:"+S,GET_REPORT_EXISTS:S=>"report:report-exists-for-post:"+S};static#u=this.POSTS={FETCH_NEWS_FEED_POSTS:S=>"posts:posts:newsfeed:fetch"+S,FETCH_COMMENTS:S=>"posts:comments:fetch:"+S,FETCH_ERROR:()=>"posts:fetch:error",SUBMIT_ERROR:()=>"posts:submit:error",SUBMIT_POST:(S,w)=>"posts:submit:success:"+S+":c:"+w,SUBMIT_REACTION:S=>"reaction:submit:success:"+S,FETCH_POST:S=>"post:fetch:single:"+S,FETCH_POST_REACTIONS:S=>"post:fetch:reactions:for:"+S,FETCH_REACTIONS:()=>"post:fetch:reactions",FETCH_USER_POSTS:S=>"posts:fetch:user-posts:"+S,UPDATE_POST:()=>"post:update",DELETE_POST:S=>"post:delete:"+S,FETCH_TRENDING_HASHTAGS:()=>"posts:fetch-trending-hashtags"};static#h=this.NOTIFICATIONS={SEARCH:()=>"notifications:search",GET:S=>"notifications:get-single:"+S,UPSERT:S=>"notifications:upsert:"+S,RESPOND:S=>"notifications:respond:"+S,FETCH_MY_NOTIFICATIONS:()=>"notifications:fetch-my-notifications",MARK_READ:()=>"notifications:mark-read",MAKE_STICKY:()=>"notifications:make-sticky",INCREASE_VIEW_COUNT:S=>"notifications:increase-read-count-"+S,INCREASE_CLICK_COUNT:S=>"notifications:increase-click-count-"+S,COUNT_UNREAD:()=>"notifications:count-unread"};static#f=this.LEADERBOARDS={FETCH_LEADERBOARD:S=>"leaderboards:fetch:"+S,FETCH_MY_LEADERBOARD:()=>"leaderboards:fetch:self",FETCH_ERROR:()=>"leaderboards:fetch:error",REDEEM_SUCCESS:()=>"leaderboard:redeem:success",REDEEM_SUCCESS_NOTIFY_PROFILE:()=>"leaderboard:redeem:success:notify-profile",REDEEM_ERROR:()=>"leaderboard:redeem:error",FETCH_RECENT_ACHIEVEMENTS:()=>"leaderboard:achievements:fetch-recent"};static#p=this.VENDORS={SEARCH_VENDORS:()=>"vendors:search",FETCH_ERROR:()=>"vendors:fetch:error",SEARCH:S=>"vendors:search:search".concat(e.O.toParamString(S)),MY_VENDORS:S=>"vendors:my-vendors:search".concat(e.O.toParamString(S)),UPSERT:S=>"vendors:upsert:"+S,GET:S=>"vendors:get-single:"+S,TOGGLE_APPROVAL:S=>"vendors:toggle-approval:"+S};static#_=this.WALLET={FETCH_MY_WALLET:()=>"wallet:fetch-my-wallet:success",FETCH_ERROR:()=>"wallet:fetch:error"};static#m=this.USERS={FETCH_FOLLOW_STATS:S=>"follow:stats:"+S,FOLLOW_USER:S=>"follow:user:"+S,UNFOLLOW_USER:S=>"unfollow:user:"+S,GET_MY_FOLLOWERS:()=>"follow:followers:find-followers",GET_MY_PROFILE:()=>"user:profile:get-my-profile",UPDATE_MY_PROFILE:()=>"user:profile:update-my-profile",DELETE_ME:()=>"users:delete-me",SEARCH_USERS:()=>"users:search-users",SEARCH:S=>"users:search:search".concat(e.O.toParamString(S)),SEARCH_CUSTOMERS:S=>"users:search:search-customers".concat(e.O.toParamString(S)),UPSERT:S=>"users:upsert:"+S,GET:S=>"users:get-single:"+S};static#g=this.REQUEST_CREDENTIALS={ADMIN_SEARCH_LOCKOUTS:()=>"req:cred:admin-search-lockouts"};static#v=this.ACTIVITY_LOGS={ADMIN_SEARCH:()=>"activity:logs:admin-search"};static#b=this.POLL_STATS={OVERVIEW:()=>"poll:stats:overview",DATE_WISE_POLL_COUNT:()=>"poll:stats:date-wise-poll-count"};static#y=this.CRUDEXAMPLES={SEARCH:S=>"crudexamples:search:".concat(e.O.toParamString(S)),UPSERT:S=>"crudexamples:upsert:"+S,GET:S=>"crudexamples:get-single:"+S};static#w=this.QUESTIONNAIRES={SEARCH:()=>"questionnaires:search",GET_DETAILS:S=>"questionnaires:details"+S,UPDATE:S=>"questionnaires:update"+S,CREATE:S=>"questionnaires:create"+S,TOGGLE_APPROVAL:S=>"questionnaires:toggle-approval"+S,FETCH_RESULT_SHEET:S=>"questionnaires:result-sheet:"+S};static#x=this.POLLS={SEARCH:()=>"polls:search",GET_DETAILS:S=>"polls:details"+S,UPDATE:S=>"polls:update"+S,CREATE:S=>"polls:create"+S};static#M=this.VOTES={SEARCH:()=>"votes:search",FETCH_USER_VOTE_STATS:()=>"votes:user-vote-stats",FETCH_POLL_VOTE_STATS:()=>"votes:poll-vote-stats"};static#C=this.POLL_OPTIONS={SEARCH_LEGACY:()=>"poll-options:search",SEARCH:S=>"poptions:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"poptions:upsert:"+S,GET:S=>"poptions:get-single:"+S,GET_DETAILS:S=>"poll-options:details"+S,UPDATE:S=>"poll-options:update"+S,CREATE:S=>"poll-options:create"+S};static#T=this.LABELS_LEGACY={SEARCH:()=>"labels-legacy:search",GET_LABEL_TREE:S=>"labels-legacy:search"+S,GET_DETAILS:S=>"labels-legacy:details"+S,UPDATE:S=>"labels-legacy:update"+S,CREATE:S=>"labels-legacy:create"+S};static#D=this.LABELS={SEARCH:S=>"labels:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"labels:upsert:"+S,GET:S=>"labels:get-single:"+S,GET_MULTIPLE:S=>"labels:get-multiple:"+S.join(",")};static#E=this.FEEDBACKS={SEARCH:S=>"feedbacks:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"feedbacks:upsert:"+S,GET:S=>"feedbacks:get-single:"+S,TAKE_ACTION:S=>"feedbacks:take-action:"+S};static#S=this.ATTRIBUTES={SEARCH:S=>"attributes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"attributes:upsert:"+S,GET:S=>"attributes:get-single:"+S};static#A=this.FILTERABLEATTRIBUTES={SEARCH:S=>"filterableattributes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"filterableattributes:upsert:"+S,GET:S=>"filterableattributes:get-single:"+S};static#O=this.BRANDS={SEARCH:S=>"brands:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"brands:upsert:"+S,GET:S=>"brands:get-single:"+S};static#I=this.ACVALIDATIONTOKENS={SEARCH:S=>"acvalidationtokens:search:search".concat(e.O.toParamString(S))};static#R=this.VARIATIONS={SEARCH:S=>"variations:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"variations:upsert:"+S,GET:S=>"variations:get-single:"+S};static#k=this.PRODUCTSPECIFICATIONS={SEARCH:S=>"productspecifications:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"productspecifications:upsert:"+S,GET:S=>"productspecifications:get-single:"+S};static#L=this.STOCKS={SEARCH:S=>"stocks:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"stocks:upsert:"+S,GET:S=>"stocks:get-single:"+S,GET_BY_SKU:S=>"stocks:get-single-by-sky:"+S};static#P=this.LOCATIONTYPES={SEARCH:S=>"locationtypes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"locationtypes:upsert:"+S,GET:S=>"locationtypes:get-single:"+S};static#N=this.LOCATIONS={SEARCH:S=>"locations:search:search".concat(e.O.toParamString(S)),GET_BY_TYPE:S=>"locations:get-by-type:"+S,UPSERT:S=>"locations:upsert:"+S,GET:S=>"locations:get-single:"+S,GET_MULTIPLE:S=>"locations:get-multiple:"+S.join(",")};static#F=this.ADDRESSS={SEARCH:S=>"addresss:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"addresss:upsert:"+S,GET:S=>"addresss:get-single:"+S};static#Y=this.ORDERS={SEARCH:S=>"orders:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"orders:upsert:"+S,GET:S=>"orders:get-single:"+S,MAKE_PAYMENT:S=>"orders:make-payment:"+S,CONFIRM_ORDER:S=>"orders:confirm-order:"+S,CHANGE_ORDER_STATUS:(S,w)=>"orders:change-order-status:"+S+":"+w};static#B=this.CUSTOMERS={SEARCH:S=>"customers:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"customers:upsert:"+S,GET:S=>"customers:get-single:"+S}}return D})()},8214:(ft,Ie,C)=>{"use strict";C.d(Ie,{J:()=>Z});var e=C(2495),l=C(1547),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends l.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}upload(ue){const se=new FormData;for(let oe=0;oe{this.eventBusService.publish(ue,ce)},ce=>{this.eventBusService.publish(this.getErrorKey(ue),ce)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},5462:(ft,Ie,C)=>{"use strict";C.d(Ie,{l:()=>D});var e=C(2425),l=C(5879);let D=(()=>{class I{constructor(w){this.toastr=w}info(w,n,Z=(()=>{}),ee=2e3){this.show("info",w,n,Z,ee)}success(w,n,Z=(()=>{}),ee=2e3){this.show("success",w,n,Z,ee)}warning(w,n,Z=(()=>{}),ee=2e3){this.show("warning",w,n,Z,ee)}error(w,n,Z=(()=>{}),ee=2e3){this.show("error",w,n,Z,ee)}show(w,n,Z,ee=(()=>{}),re=5e3){let se,ue={disableTimeOut:!1,timeOut:re,closeButton:!0,extendedTimeOut:1e3,progressBar:!0,progressAnimation:"decreasing",enableHtml:!0,easing:"ease-in",easeTime:300,tapToDismiss:!0,toastComponent:e.FN,onActivateTick:!1,newestOnTop:!0};switch(w){case"success":se=this.toastr.success(Z,n,ue);break;case"error":se=this.toastr.error(Z,n,ue);break;case"warning":se=this.toastr.warning(Z,n,ue);break;case"info":se=this.toastr.info(Z,n,ue)}se.onTap.subscribe(te=>{ee()})}log(w){console.log(w)}static#e=this.\u0275fac=function(n){return new(n||I)(l.LFG(e._W))};static#t=this.\u0275prov=l.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},3108:(ft,Ie,C)=>{"use strict";C.d(Ie,{n:()=>D});var e=C(553),l=C(5879);let D=(()=>{class I{constructor(){}static#e=this.KEYS={clientId:"*&^%&%frgter^87i5",clientSecret:"V%$#reg%786v*7i6",accessToken:"B57UB5&ehyr&5b&*6",refreshToken:"INB*gege&U4^345%36^5u",authorities:"BUegeg&v3$76u%^&*",phone:"phone",name:"name",email:"email",id:"id",username:"username",jti:"Jjjsdb!*(&*@&#*&Y#"};static putAuth(w){localStorage.setItem(this.KEYS.id,w.id.toString()),localStorage.setItem(this.KEYS.accessToken,w.access_token),localStorage.setItem(this.KEYS.refreshToken,w.refresh_token),localStorage.setItem(this.KEYS.phone,w.phone),localStorage.setItem(this.KEYS.name,w.name),localStorage.setItem(this.KEYS.email,w.email),localStorage.setItem(this.KEYS.username,w.username),localStorage.setItem(this.KEYS.jti,w.jti)}static getAuth(){const w=this.retrieve(this.KEYS.username);return{id:parseInt(this.retrieve(this.KEYS.id)),access_token:this.retrieve(this.KEYS.accessToken),refresh_token:this.retrieve(this.KEYS.refreshToken),name:this.retrieve(this.KEYS.name),username:w,email:this.retrieve(this.KEYS.email),phone:this.retrieve(this.KEYS.phone),jti:this.retrieve(this.KEYS.jti),avatar:e.N.base_url+"/api/v1/public/users/"+w+"/avatar"}}static put(w,n){localStorage.setItem(w,n)}static retrieve(w){return localStorage.getItem(w)}static clear(){localStorage.clear()}static#t=this.\u0275fac=function(n){return new(n||I)};static#n=this.\u0275prov=l.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},7613:(ft,Ie,C)=>{"use strict";C.d(Ie,{m:()=>e});class e{static takeOnly(D,I,S=!1){null==D&&(D="");let w=D.substr(0,Math.min(I,D.length));return S&&D.length>I?w+"...":w}static firstWord(D){null==D&&(D="");let I=D.split(" ");return I.length>0?I[0]:""}}},3674:(ft,Ie,C)=>{"use strict";C.d(Ie,{w:()=>e});class e{static isInvalidInput(D){return D.invalid&&(D.touched||D.dirty)}static getFormError(D,I){return D.errors?.[I]}static isValidPhone(D){return new RegExp("^(\\+88|0088)?01[3-9]\\d{8}$").test(D)}}},553:(ft,Ie,C)=>{"use strict";C.d(Ie,{N:()=>e});const e={production:!0,app_name:"Astha App",app_url:"https://astha.app",base_url:"https://dev.astha.app",client_id:"client_id",api_version:"/api/v1/",client_secret:"client_secret",resizeRedirectionEnabled:!0,redirectionWindowWidth:800,redirectUrl:"https://web.astha.app"}},913:(ft,Ie,C)=>{"use strict";var e=C(6593),l=C(5879),D=C(1662),I=C(553),S=C(8637),w=C(7259),n=C(2071),Z=C(8480),ee=C(5462),re=C(30),ue=C(6945),se=C(2951),te=C(1822),oe=C(7700),ce=C(1715),_e=C(6814),Re=C(6929);function mt(p,y){if(1&p&&(l.TgZ(0,"span",24)(1,"span",25),l._uU(2),l.qZA()()),2&p){const u=l.oxw();l.xp6(2),l.hij(" ",u.wallet.loyalty_points," ")}}function Ge(p,y){if(1&p&&(l.TgZ(0,"span",26)(1,"span",25),l._uU(2),l.qZA()()),2&p){const u=l.oxw();l.xp6(2),l.Oqu(u.notificationCount)}}function Lt(p,y){1&p&&l._UZ(0,"img",27)}function je(p,y){if(1&p&&l._UZ(0,"img",28),2&p){const u=l.oxw();l.s9C("src",u.getAvatar(),l.LSH)}}const Tt=function(){return["/"]},xt=function(){return["/notifications"]};let St=(()=>{class p extends S.H{constructor(u,m,T,B,Q,Le,Je,At,jt){super(B,T,Q),this.authService=u,this.notifier=m,this.leaderboardService=Le,this.walletService=Je,this.dialog=At,this.notificationService=jt,this.notificationCount=0,this.leaderboard=null,this.wallet=null,this.showMenubar=!1,T.events.subscribe(dn=>{dn instanceof D.m2&&(this.registerSubscriptions(),this.reloadData())})}componentName(){return"HeaderComponent"}ngOnInit(){this.reloadData()}reloadData(){this.fetchLeaderboard()}registerSubscriptions(){this.subscribe(this.globalKey(w.Z.AUTH.LOGOUT),null,(u,m)=>{this.router.navigateByUrl("/login").then(T=>{this.leaderboard=null,this.wallet=null,this.notificationCount=0})}),this.subscribe(this.globalKey(w.Z.NOTIFICATIONS.COUNT_UNREAD()),null,(u,m)=>{this.countUnreadNotifications()})}countUnreadNotifications(){let u=this.componentKey(w.Z.NOTIFICATIONS.COUNT_UNREAD());this.notificationService.countUnread(u),this.subscribe(u,null,(m,T)=>{this.notificationCount=T.data})}fetchLeaderboard(){let u=this.globalKey(w.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.authenticated()&&this.leaderboardService.fetchLeaderboard(u,this.authService.getAuth().username),this.subscribe(u,null,(m,T)=>{this.leaderboard=T.data,this.fetchWallet(),this.countUnreadNotifications()})}fetchWallet(){let u=this.componentKey(w.Z.WALLET.FETCH_MY_WALLET());this.authenticated()&&this.walletService.fetchWallet(u,{}),this.subscribe(u,null,(m,T)=>{this.wallet=T.data})}authenticated(){return this.authService.isAuthenticated()}getAuth(){return this.authService.getAuth()}getUserTitle(){return this.authService.isAuthenticated()?this.authService.getFirstName():"Profile"}getStyleAttrForProgress(){return"width: "+this.leaderboard?.completed_percentage+"%"}getNextThresholdPoints(){return null==this.leaderboard?.next_badge?0:this.leaderboard.next_badge.threshold_points}getLeaderboardPoints(){return null==this.leaderboard?0:this.leaderboard.points}getAvatar(){let u=this.getAuth().avatar;return null==u||0===u.trim().length?"assets/img/default-avatar.png":u}onMenuClick(u){this.showMenubar=!this.showMenubar}getMenuItems(){let u=[];return u.push({id:1,title:"My Interests",code:"MY_PROFILE"}),u.push({id:2,title:"My Profile",code:"MY_PROFILE"}),this.isAuthenticated()?u.push({id:3,title:"Logout",code:"LOGOUT"}):u.push({id:3,title:"Login",code:"LOGIN"}),u}isAuthenticated(){return this.authService.isAuthenticated()}onMenuItemClick(u){switch(u.id){case 2:this.navigate("/profile",m=>{});break;case 1:this.navigate("/choose-interests",m=>{});break;case 3:if(!this.isAuthenticated())return void this.navigate("/login",()=>{});this.authService.logout(),this.navigate("/",m=>{this.notifier.warning("Logged out","You have been successfully logged out.",()=>{this.router.navigate(["login"]).then(T=>{})},3e3)})}}openLeaderboard(){null!=this.leaderboard&&(this.dialog.open(n.B,{width:"600px"}).componentInstance.leaderboard=this.leaderboard)}onWalletClick(){this.authenticated()?this.openLeaderboard():this.navigate("/login",u=>{})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(Z.e),l.Y36(ee.l),l.Y36(D.F0),l.Y36(re.Y),l.Y36(ue.z),l.Y36(se.S),l.Y36(te.X),l.Y36(oe.uw),l.Y36(ce.g))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-web-header"]],features:[l.qOj],decls:32,vars:19,consts:[[1,"header-area","p-3"],[1,"container"],[1,"row"],[1,"col-7"],[1,"header-left"],[3,"routerLink"],[1,"batch-are","d-flex","mt-2",3,"click"],["src","assets/img/header-images/batch.png","alt",""],[1,"header-progress"],[1,"progress-content","d-flex","justify-content-between","mb-1"],[1,"progress-count"],[1,"progress"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-warning"],[1,"col-5","d-flex","justify-content-end"],[1,"social-icons"],[3,"click"],[1,"icon-wallet"],["class","notification-badge-wallet",4,"ngIf"],[1,"icon-bell-alt"],["class","notification-badge",4,"ngIf"],[1,"avater-section",3,"click"],["class","profile-img profile-img-rounded","src","assets/img/default-avatar.png","alt","",4,"ngIf"],["class","profile-img profile-img-rounded","alt","",3,"src",4,"ngIf"],[3,"showMenubar","top","items","menuItemClick"],[1,"notification-badge-wallet"],["aria-hidden","true",1,"notification-badge-count"],[1,"notification-badge"],["src","assets/img/default-avatar.png","alt","",1,"profile-img","profile-img-rounded"],["alt","",1,"profile-img","profile-img-rounded",3,"src"]],template:function(m,T){1&m&&(l.TgZ(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"a",5)(6,"h2"),l._uU(7,"Astha"),l.qZA()(),l.TgZ(8,"div",6),l.NdJ("click",function(){return T.openLeaderboard()}),l._UZ(9,"img",7),l.TgZ(10,"div",8)(11,"div",9)(12,"span",10),l._uU(13),l.qZA(),l.TgZ(14,"span"),l._uU(15),l.qZA()(),l.TgZ(16,"div",11),l._UZ(17,"div",12),l.qZA()()()()(),l.TgZ(18,"div",13)(19,"div",14)(20,"a",15),l.NdJ("click",function(){return T.onWalletClick()}),l._UZ(21,"i",16),l.YNc(22,mt,3,1,"span",17),l.qZA(),l.TgZ(23,"a",5),l._UZ(24,"i",18),l.YNc(25,Ge,3,1,"span",19),l.qZA()(),l.TgZ(26,"a",20),l.NdJ("click",function(Q){return T.onMenuClick(Q)}),l.YNc(27,Lt,1,0,"img",21),l.YNc(28,je,1,1,"img",22),l.TgZ(29,"h4"),l._uU(30),l.qZA(),l.TgZ(31,"app-menubox",23),l.NdJ("menuItemClick",function(Q){return T.onMenuItemClick(Q)}),l.qZA()()()()()()),2&m&&(l.xp6(5),l.Q6J("routerLink",l.DdM(17,Tt)),l.xp6(8),l.AsE("",T.getLeaderboardPoints()," /",T.getNextThresholdPoints(),""),l.xp6(2),l.Oqu(null==T.leaderboard||null==T.leaderboard.next_badge?null:T.leaderboard.next_badge.title),l.xp6(2),l.Akn(T.getStyleAttrForProgress()),l.uIk("aria-valuenow",null==T.leaderboard?null:T.leaderboard.points),l.xp6(5),l.Q6J("ngIf",null!=T.wallet),l.xp6(1),l.Q6J("routerLink",l.DdM(18,xt)),l.xp6(2),l.Q6J("ngIf",T.notificationCount>0),l.xp6(2),l.Q6J("ngIf",!T.authenticated()),l.xp6(1),l.Q6J("ngIf",T.authenticated()),l.xp6(2),l.Oqu(T.getUserTitle()),l.xp6(1),l.Q6J("showMenubar",T.showMenubar)("top",70)("items",T.getMenuItems()))},dependencies:[_e.O5,D.rH,Re.v],styles:["a[_ngcontent-%COMP%]{color:#fff}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:20px;margin-top:2px;display:inline-block;margin-right:10px;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.5}.avater-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.avater-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]:hover{opacity:.5}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:relative;display:inline-block}.notification-badge[_ngcontent-%COMP%]{position:absolute;top:-2px;right:-2px;width:18px;height:18px;text-align:center;line-height:13px;transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:167ms;background-color:#cc1016;display:block;z-index:1;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%}.notification-badge-count[_ngcontent-%COMP%]{font-size:12px}.notification-badge-wallet[_ngcontent-%COMP%]{position:absolute;top:-2px;right:-2px;width:18px;height:18px;text-align:center;line-height:13px;transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:167ms;background-color:#406440;display:block;z-index:1;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%}"]})}return p})();const Zt=function(){return["/"]},yt=function(){return["/newsfeed"]},un=function(){return["/search"]},Jt=function(){return["/profile"]};let tn=(()=>{class p{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-web-footer"]],decls:18,vars:9,consts:[[1,"footer-menu-area"],[1,"container-fluid"],[3,"routerLink"],[1,"icon-home"],[1,"icon-newspaper"],[1,"icon-search"],[1,"icon-bell-alt"],[1,"icon-user-circle-o"]],template:function(m,T){1&m&&(l.TgZ(0,"section",0)(1,"div",1)(2,"ul")(3,"li")(4,"a",2),l._UZ(5,"i",3),l.qZA()(),l.TgZ(6,"li")(7,"a",2),l._UZ(8,"i",4),l.qZA()(),l.TgZ(9,"li")(10,"a",2),l._UZ(11,"i",5),l.qZA()(),l.TgZ(12,"li")(13,"a",2),l._UZ(14,"i",6),l.qZA()(),l.TgZ(15,"li")(16,"a",2),l._UZ(17,"i",7),l.qZA()()()()()),2&m&&(l.xp6(4),l.Q6J("routerLink",l.DdM(5,Zt)),l.xp6(3),l.Q6J("routerLink",l.DdM(6,yt)),l.xp6(3),l.Q6J("routerLink",l.DdM(7,un)),l.xp6(3),l.Q6J("routerLink","/notifications"),l.xp6(3),l.Q6J("routerLink",l.DdM(8,Jt)))},dependencies:[D.rH],styles:[".center[_ngcontent-%COMP%]{margin:auto;width:50%;padding:10px}.footer[_ngcontent-%COMP%]{position:fixed;left:0;bottom:0;width:100%;background-color:#1976d2;color:#fff;text-align:center}.middle-item[_ngcontent-%COMP%]{color:#44d62c}"]})}return p})(),wn=(()=>{class p{constructor(){this.title="Astha App",this.windowWidth=0}ngOnInit(){this.windowWidth=window.innerWidth,this.resolveRedirection()}onResize(u){this.windowWidth=window.innerWidth,this.resolveRedirection()}resolveRedirection(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-layout"]],hostBindings:function(m,T){1&m&&l.NdJ("resize",function(Q){return T.onResize(Q)},!1,l.Jf7)},decls:4,vars:0,consts:[["role","main",1,"content","bottom-toolbar-margin"]],template:function(m,T){1&m&&(l._UZ(0,"app-web-header"),l.TgZ(1,"div",0),l._UZ(2,"router-outlet"),l.qZA(),l._UZ(3,"app-web-footer"))},dependencies:[D.lC,St,tn]})}return p})();var Ln=C(6223),Yn=C(8675);const ti=["rightBarToggle"];function gi(p,y){1&p&&l._UZ(0,"span",36)}function Rn(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",37),l.NdJ("click",function(){l.CHM(u);const T=l.oxw();return l.KtG(T.clearSearch())}),l._UZ(1,"span",38),l.qZA()}}const dt=function(p){return[p]};let at=(()=>{class p extends S.H{componentName(){return"AdminHeaderComponent"}constructor(u,m,T,B,Q,Le,Je){super(u,m,T),this.authService=B,this.renderer=Q,this.popupService=Le,this.activatedRoute=Je,this.search=new Ln.NI,this.isAdmin=!1,this.authorities=[],this.auth=this.authService.getAuth(),this.isAdmin=this.authService.isAdmin(),this.authorities=B.getAuthorities()}hasPrivilege(u){return this.isAdmin||this.authorities.includes(u)}ngOnInit(){this.activatedRoute.queryParams.subscribe(u=>{this.search.setValue(u.query)})}onSearch(){const m=this.router.parseUrl(this.router.url).root.children.primary.segments.map(T=>T.path).join("/");this.router.navigate([m],{queryParams:{query:this.search.value},queryParamsHandling:"merge"}).then(T=>{})}clearSearch(){this.search.setValue(null),this.onSearch()}logout(){this.authService.logout()}initLeftMenuCollapse(){const u=document.body;u.classList.toggle("sidebar-enable"),window.innerWidth>=992?u.classList.toggle("vertical-collpsed"):u.classList.remove("vertical-collpsed"),u.classList.contains("vertical-collpsed")?this.renderer.addClass(u,"vertical-collpsed"):this.renderer.removeClass(u,"vertical-collpsed")}initRightSidebar(){const u=document.querySelector("body");this.renderer.listen(u,"click",m=>{m.target.closest(".right-bar-toggle, .right-bar")||this.renderer.removeClass(u,"right-bar-enabled")}),this.renderer.listen(document.querySelector(".right-bar-toggle"),"click",()=>{this.renderer.addClass(u,"right-bar-enabled")})}openLeaderboard(){let u=this.popupService.open(n.B,{id:null});u.componentInstance.onCanceled.subscribe(()=>{u.close()})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(re.Y),l.Y36(D.F0),l.Y36(ue.z),l.Y36(Z.e),l.Y36(l.Qsj),l.Y36(Yn.x),l.Y36(D.gz))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-header"]],viewQuery:function(m,T){if(1&m&&l.Gf(ti,5),2&m){let B;l.iGM(B=l.CRH())&&(T.rightBarToggle=B.first)}},features:[l.qOj],decls:42,vars:9,consts:function(){let u,m,T;return u="\u09AA\u09CD\u09B0\u09CB\u09AB\u09BE\u0987\u09B2",m="\u09B2\u09BF\u09A1\u09BE\u09B0\u09AC\u09CB\u09B0\u09CD\u09A1",T="\u09B2\u0997 \u0986\u0989\u099F",[["id","page-topbar"],[1,"navbar-header"],[1,"d-flex"],[1,"navbar-brand-box"],["routerLink","/admin",1,"logo","logo-dark"],[1,"logo-sm"],["src","assets/apanel/images/logos/astha.svg","alt","","height","36"],[1,"logo-lg"],["src","assets/apanel/images/logos/astha.svg","alt","","height","72"],["routerLink","/admin",1,"logo","logo-light"],["type","button","id","vertical-menu-btn",1,"btn","btn-sm","px-3","font-size-16","header-item","waves-effect",3,"click"],[1,"fa","fa-fw","fa-bars"],[1,"app-search","d-none","d-lg-block",3,"submit"],[1,"position-relative"],["type","text",1,"form-control",3,"placeholder","formControl"],["class","bx bx-search-alt",4,"ngIf"],["href","javascript: void(0);",3,"click",4,"ngIf"],[1,"dropdown","d-inline-block"],["type","button","id","page-header-user-dropdown","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","header-item","waves-effect"],["alt","Header Avatar",1,"rounded-circle","header-profile-user",3,"src"],["key","t-henry",1,"d-none","d-xl-inline-block","ms-1"],[1,"mdi","mdi-chevron-down","d-none","d-xl-inline-block"],[1,"dropdown-menu","dropdown-menu-end"],["href","javascript:void(0);",1,"dropdown-item",3,"routerLink"],[1,"bx","bx-user","font-size-16","align-middle","me-1"],["key","t-profile"],u,["href","javascript:void(0);",1,"dropdown-item",3,"click"],[1,"bx","bx-wallet","font-size-16","align-middle","me-1"],["key","t-my-wallet"],m,[1,"dropdown-divider"],["href","#",1,"dropdown-item","text-danger",3,"click"],[1,"bx","bx-power-off","font-size-16","align-middle","me-1","text-danger"],["key","t-logout"],T,[1,"bx","bx-search-alt"],["href","javascript: void(0);",3,"click"],[1,"bx","bx-x-circle","text-danger"]]},template:function(m,T){1&m&&(l.TgZ(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4)(5,"span",5),l._UZ(6,"img",6),l.qZA(),l.TgZ(7,"span",7),l._UZ(8,"img",8),l.qZA()(),l.TgZ(9,"a",9)(10,"span",5),l._UZ(11,"img",6),l.qZA(),l.TgZ(12,"span",7),l._UZ(13,"img",8),l.qZA()()(),l.TgZ(14,"button",10),l.NdJ("click",function(){return T.initLeftMenuCollapse()}),l._UZ(15,"i",11),l.qZA(),l.TgZ(16,"form",12),l.NdJ("submit",function(){return T.onSearch()}),l.TgZ(17,"div",13),l._UZ(18,"input",14),l.YNc(19,gi,1,0,"span",15),l.YNc(20,Rn,2,0,"a",16),l.qZA()()(),l.TgZ(21,"div",2)(22,"div",17)(23,"button",18),l._UZ(24,"img",19),l.TgZ(25,"span",20),l._uU(26),l.qZA(),l._UZ(27,"i",21),l.qZA(),l.TgZ(28,"div",22)(29,"a",23),l._UZ(30,"i",24),l.TgZ(31,"span",25),l.SDv(32,26),l.qZA()(),l.TgZ(33,"a",27),l.NdJ("click",function(){return T.openLeaderboard()}),l._UZ(34,"i",28),l.TgZ(35,"span",29),l.SDv(36,30),l.qZA()(),l._UZ(37,"div",31),l.TgZ(38,"a",32),l.NdJ("click",function(){return T.logout()}),l._UZ(39,"i",33),l.TgZ(40,"span",34),l.SDv(41,35),l.qZA()()()()()()()),2&m&&(l.xp6(18),l.s9C("placeholder",T.translations["Search.."]),l.Q6J("formControl",T.search),l.xp6(1),l.Q6J("ngIf",!T.search.value),l.xp6(1),l.Q6J("ngIf",T.search.value),l.xp6(4),l.s9C("src",T.auth.avatar,l.LSH),l.xp6(2),l.Oqu(T.auth.username),l.xp6(3),l.Q6J("routerLink",l.VKq(7,dt,"/u/"+T.auth.username)))},dependencies:[_e.O5,D.rH,Ln._Y,Ln.Fj,Ln.JJ,Ln.JL,Ln.F,Ln.oH],styles:["mat-toolbar[_ngcontent-%COMP%]{background:#004a9f;color:#fff}mat-sidenav[_ngcontent-%COMP%]{margin:16px;width:200px;border-right:none;background:#002b5c;color:#fff;border-radius:10px;padding:16px;text-align:center}.content[_ngcontent-%COMP%]{height:calc(100vh - 98px);border-radius:10px;margin:16px 16px 16px 32px;display:flex;justify-content:center;align-items:center;font-size:2rem;color:#d3d3d3}mat-sidenav-container[_ngcontent-%COMP%]{height:calc(100vh - 65px)}"]})}return p})(),Be=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-footer"]],decls:9,vars:0,consts:[[1,"footer"],[1,"container-fluid"],[1,"row"],[1,"col-sm-6"],["href","https://servicito.com"],[1,"text-sm-end","d-none","d-sm-block"]],template:function(m,T){1&m&&(l.TgZ(0,"footer",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),l._uU(5,"@servicito"),l.qZA()(),l.TgZ(6,"div",3)(7,"div",5),l._uU(8," admin@servicito.com "),l.qZA()()()()())}})}return p})(),Ee=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["admin-right-nav"]],decls:34,vars:0,consts:[[1,"right-bar"],["data-simplebar","",1,"h-100"],[1,"rightbar-title","d-flex","align-items-center","px-3","py-4"],[1,"m-0","me-2"],[1,"mt-0"],[1,"text-center","mb-0"],[1,"p-4"],[1,"mb-2"],["src","assets/apanel/images/layouts/layout-1.jpg","alt","layout images",1,"img-thumbnail"],[1,"form-check","form-switch","mb-3"],["type","checkbox","id","light-mode-switch","checked","",1,"form-check-input","theme-choice"],["for","light-mode-switch",1,"form-check-label"],["src","assets/apanel/images/layouts/layout-2.jpg","alt","layout images",1,"img-thumbnail"],["type","checkbox","id","dark-mode-switch",1,"form-check-input","theme-choice"],["for","dark-mode-switch",1,"form-check-label"],["src","assets/apanel/images/layouts/layout-3.jpg","alt","layout images",1,"img-thumbnail"],["type","checkbox","id","rtl-mode-switch",1,"form-check-input","theme-choice"],["for","rtl-mode-switch",1,"form-check-label"],["src","assets/apanel/images/layouts/layout-4.jpg","alt","layout images",1,"img-thumbnail"],[1,"form-check","form-switch","mb-5"],["type","checkbox","id","dark-rtl-mode-switch",1,"form-check-input","theme-choice"],["for","dark-rtl-mode-switch",1,"form-check-label"],[1,"rightbar-overlay"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3),l._uU(4,"Settings"),l.qZA()(),l._UZ(5,"hr",4),l.TgZ(6,"h6",5),l._uU(7,"Choose Layouts"),l.qZA(),l.TgZ(8,"div",6)(9,"div",7),l._UZ(10,"img",8),l.qZA(),l.TgZ(11,"div",9),l._UZ(12,"input",10),l.TgZ(13,"label",11),l._uU(14,"Light Mode"),l.qZA()(),l.TgZ(15,"div",7),l._UZ(16,"img",12),l.qZA(),l.TgZ(17,"div",9),l._UZ(18,"input",13),l.TgZ(19,"label",14),l._uU(20,"Dark Mode"),l.qZA()(),l.TgZ(21,"div",7),l._UZ(22,"img",15),l.qZA(),l.TgZ(23,"div",9),l._UZ(24,"input",16),l.TgZ(25,"label",17),l._uU(26,"RTL Mode"),l.qZA()(),l.TgZ(27,"div",7),l._UZ(28,"img",18),l.qZA(),l.TgZ(29,"div",19),l._UZ(30,"input",20),l.TgZ(31,"label",21),l._uU(32,"Dark RTL Mode"),l.qZA()()()()(),l._UZ(33,"div",22))}})}return p})();var $e=C(8743),me=C(190);let tt=(()=>{class p{transform(u){return "" + u + ""}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275pipe=l.Yjl({name:"appTranslate",type:p,pure:!0})}return p})();function he(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",9),l.NdJ("click",function(){l.CHM(u);const T=l.oxw().$implicit,B=l.oxw();return l.KtG(B.onMenuGroupClick(T.title))}),l._UZ(1,"i"),l.TgZ(2,"span",10),l._uU(3),l.ALo(4,"appTranslate"),l.qZA()()}if(2&p){const u=l.oxw().$implicit;l.xp6(1),l.Tol(u.icon),l.xp6(2),l.Oqu(l.lcZ(4,4,u.title))}}function Ze(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",15),l.NdJ("click",function(){l.CHM(u);const T=l.oxw().$implicit,B=l.oxw(3);return l.KtG(B.onMenuItemClick(T))}),l._uU(1),l.ALo(2,"appTranslate"),l.qZA()}if(2&p){const u=l.oxw().$implicit;l.Q6J("ngClass",u.selected?"text-primary":""),l.xp6(1),l.Oqu(l.lcZ(2,2,u.title))}}function rt(p,y){if(1&p&&(l.TgZ(0,"li",13),l.YNc(1,Ze,3,4,"a",14),l.qZA()),2&p){const u=y.$implicit,m=l.oxw(3);l.Q6J("ngClass",u.selected?"bg-primary-subtle":""),l.xp6(1),l.Q6J("ngIf",m.hasPermission(u))}}function bt(p,y){if(1&p&&(l.TgZ(0,"ul",11),l.YNc(1,rt,2,2,"li",12),l.qZA()),2&p){const u=l.oxw().$implicit;l.xp6(1),l.Q6J("ngForOf",u.items)}}function Nt(p,y){if(1&p&&(l.TgZ(0,"li"),l.YNc(1,he,5,6,"a",7),l.YNc(2,bt,2,1,"ul",8),l.qZA()),2&p){const u=y.$implicit,m=l.oxw();l.xp6(1),l.Q6J("ngIf",!m.shouldHide(u)),l.xp6(1),l.Q6J("ngIf",!m.shouldHide(u)&&u.expanded)}}let Qt=(()=>{class p{constructor(u,m,T){this.renderer=m,this.router=T,this.authorities=[],this.isMenuCollapsed=!1,this.menu=me.s,this.isTabletOrMobileScreen=window.innerWidth<=1280,this.isTabletScreen=window.innerWidth<=1280&&window.innerWidth>=992,this.isAdmin=u.isAdmin(),this.authorities=u.getAuthorities(),this.setActiveMenuItem(this.router.url),this.router.events.subscribe(B=>{B instanceof D.OD&&this.setActiveMenuItem(B.url)})}toggleLeftMenu(){if(!this.isTabletOrMobileScreen)return;const u=document.body;u.classList.toggle("sidebar-enable"),window.innerWidth<=992&&(u.classList.toggle("vertical-collpsed"),console.log(this.isMenuCollapsed),this.isMenuCollapsed=!this.isMenuCollapsed,console.log(this.isMenuCollapsed)),u.classList.contains("vertical-collpsed")?(this.renderer.addClass(u,"vertical-collpsed"),this.isMenuCollapsed=!0):(this.renderer.removeClass(u,"vertical-collpsed"),this.isMenuCollapsed=!1)}onMenuGroupClick(u){this.menu=this.menu.map(m=>(m.expanded=m.title==u&&!m.expanded,m))}expandSidebar(u){const m=document.body;console.log(this.isMenuCollapsed),this.isMenuCollapsed=!u,console.log(this.isMenuCollapsed),u?(m.classList.remove("sidebar-enable"),m.classList.remove("vertical-collpsed")):(m.classList.add("sidebar-enable"),m.classList.add("vertical-collpsed")),this.isTabletScreen&&!this.isMenuCollapsed&&(this.menu=this.menu.map(T=>(T.expanded=!0,T)))}setActiveMenuItem(u){this.menu=this.menu.map(m=>{let T=m.items.map(B=>(B.selected=u.includes(B.link),B));return m.items=T,m.expanded=T.some(B=>B.selected),m}),this.isTabletScreen&&this.expandSidebar(!1)}onMenuItemClick(u){this.router.navigateByUrl(u.link).then(m=>{})}hasPermission(u){return this.isAdmin||u.permissions.some(m=>this.authorities.includes(m))}shouldHide(u){return!u.items.some(m=>this.hasPermission(m))}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(Z.e),l.Y36(l.Qsj),l.Y36(D.F0))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["admin-left-nav"]],decls:7,vars:3,consts:function(){let u;return u="\u09AE\u09C7\u09A8\u09C1",[[1,"vertical-menu"],["data-simplebar","",1,"h-100"],["id","sidebar-menu"],["id","side-menu",1,"metismenu","list-unstyled"],["key","t-menu",1,"menu-title"],u,[4,"ngFor","ngForOf"],["href","javascript: void(0);","class","has-arrow waves-effect",3,"click",4,"ngIf"],["class","sub-menu","aria-expanded","true",4,"ngIf"],["href","javascript: void(0);",1,"has-arrow","waves-effect",3,"click"],["key","t-dashboards"],["aria-expanded","true",1,"sub-menu"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["href","javascript: void(0);","key","t-saas",3,"ngClass","click",4,"ngIf"],["href","javascript: void(0);","key","t-saas",3,"ngClass","click"]]},template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"ul",3)(4,"li",4),l.SDv(5,5),l.qZA(),l.YNc(6,Nt,3,2,"li",6),l.qZA()()()()),2&m&&(l.Q6J("@slideIn",!T.isMenuCollapsed)("@expanded",void 0),l.xp6(6),l.Q6J("ngForOf",T.menu))},dependencies:[_e.mk,_e.sg,_e.O5,tt],data:{animation:[(0,$e.e6)("expanded"),(0,$e.Ym)("slideIn","left")]}})}return p})(),nn=(()=>{class p{constructor(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-layout"]],decls:10,vars:0,consts:[["id","layout-wrapper"],[1,"main-content"],[1,"page-content"],[1,"container-fluid"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0),l._UZ(1,"app-admin-header")(2,"admin-left-nav"),l.TgZ(3,"div",1)(4,"div",0)(5,"div",2)(6,"div",3),l._UZ(7,"router-outlet"),l.qZA()()(),l._UZ(8,"app-admin-footer"),l.qZA()(),l._UZ(9,"admin-right-nav"))},dependencies:[D.lC,at,Be,Ee,Qt],styles:["mat-toolbar[_ngcontent-%COMP%]{background:#004a9f;color:#fff}mat-sidenav[_ngcontent-%COMP%]{margin:16px;width:200px;border-right:none;background:#002b5c;color:#fff;border-radius:10px;padding:16px;text-align:center}.content[_ngcontent-%COMP%]{height:calc(100vh - 130px);border-radius:10px;margin:16px 16px 16px 32px;padding:16px;overflow:auto}mat-sidenav-container[_ngcontent-%COMP%]{height:calc(100vh - 65px)}.menu-button[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:flex-start;font-size:1rem}.menu-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}.avatar[_ngcontent-%COMP%]{margin-top:16px;width:100px;height:100px;border-radius:50%}.name[_ngcontent-%COMP%]{margin-top:8px;font-weight:400}.designation[_ngcontent-%COMP%]{margin-top:2px;font-size:.7rem;color:#d3d3d3}mat-divider[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px;background-color:#ffffff80}"]})}return p})();var Dn=C(9538),Ot=C(5239);const vn=[{path:"",component:wn,loadChildren:()=>Promise.resolve().then(C.bind(C,9310)).then(p=>p.WebAppModule)},{path:"auth",loadChildren:()=>Promise.resolve().then(C.bind(C,7043)).then(p=>p.AuthModule)},{path:"social",loadChildren:()=>Promise.resolve().then(C.bind(C,1989)).then(p=>p.SocialModule)},{path:"admin",component:nn,loadChildren:()=>C.e(424).then(C.bind(C,2241)).then(p=>p.AdminModule),canActivate:[Dn.P]},{path:"request-account-deletion",component:(()=>{class p extends S.H{constructor(u,m,T,B,Q,Le){super(u,m,T),this.notifier=B,this.userService=Q,this.authService=Le,this.username=null,null==this.username&&(this.username=this.getAuthUsername())}componentName(){return"UserDeleteComponent"}ngOnInit(){null==this.username&&(this.username=this.getAuthUsername())}getAuthUsername(){return this.authService.getAuth().username}deleteMyAccount(){if(!confirm("Are you sure to continue?"))return;if(!this.authService.isAuthenticated())return void this.router.navigate(["/login"]);let m=this.componentKey(w.Z.USERS.DELETE_ME());this.userService.deleteAccount(m),this.subscribe(m,"/login",(T,B)=>{this.notifier.success("Deleted!","Your account is deleted."),this.authService.logout(),this.reloadRoute()}),this.subscribe(this.getErrorKey(m),null,(T,B)=>{this.notifier.error("Error!",B.data.error.message)})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(re.Y),l.Y36(D.F0),l.Y36(ue.z),l.Y36(ee.l),l.Y36(Ot.K),l.Y36(Z.e))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-user-delete"]],features:[l.qOj],decls:9,vars:1,consts:[[1,"d-flex","flex-column","align-items-center","justify-content-center",2,"height","100vh"],[1,"p-2","m-2","rounded-2"],[1,"p-2","m-2","bg-danger","text-white","rounded-2","border-0",3,"click"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1),l._uU(2," Are you sure you want to permanently delete your account? "),l.qZA(),l.TgZ(3,"div",1),l._uU(4," Account will be deleted for username: "),l.TgZ(5,"span"),l._uU(6),l.qZA()(),l.TgZ(7,"button",2),l.NdJ("click",function(){return T.deleteMyAccount()}),l._uU(8," Delete "),l.qZA()()),2&m&&(l.xp6(6),l.Oqu(T.username))}})}return p})()},{path:"cms",loadChildren:()=>Promise.resolve().then(C.bind(C,9797)).then(p=>p.CmsModule),component:nn,canActivate:[Dn.P]}];let ei=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[D.Bz.forRoot(vn,{scrollPositionRestoration:"enabled"}),D.Bz]})}return p})(),Wn=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-root"]],decls:1,vars:0,template:function(m,T){1&m&&l._UZ(0,"router-outlet")},dependencies:[D.lC]})}return p})();var Ve=C(7043),ct=C(9862),Ct=C(5806),Ce=C(6825);function ae(p){return new l.vHH(3e3,!1)}function It(p){switch(p.length){case 0:return new Ce.ZN;case 1:return p[0];default:return new Ce.ZE(p)}}function cn(p,y,u=new Map,m=new Map){const T=[],B=[];let Q=-1,Le=null;if(y.forEach(Je=>{const At=Je.get("offset"),jt=At==Q,dn=jt&&Le||new Map;Je.forEach((Cn,Tn)=>{let Un=Tn,Xn=Cn;if("offset"!==Tn)switch(Un=p.normalizePropertyName(Un,T),Xn){case Ce.k1:Xn=u.get(Tn);break;case Ce.l3:Xn=m.get(Tn);break;default:Xn=p.normalizeStyleValue(Tn,Un,Xn,T)}dn.set(Un,Xn)}),jt||B.push(dn),Le=dn,Q=At}),T.length)throw function ze(p){return new l.vHH(3502,!1)}();return B}function _n(p,y,u,m){switch(y){case"start":p.onStart(()=>m(u&&En(u,"start",p)));break;case"done":p.onDone(()=>m(u&&En(u,"done",p)));break;case"destroy":p.onDestroy(()=>m(u&&En(u,"destroy",p)))}}function En(p,y,u){const B=On(p.element,p.triggerName,p.fromState,p.toState,y||p.phaseName,u.totalTime??p.totalTime,!!u.disabled),Q=p._data;return null!=Q&&(B._data=Q),B}function On(p,y,u,m,T="",B=0,Q){return{element:p,triggerName:y,fromState:u,toState:m,phaseName:T,totalTime:B,disabled:!!Q}}function ni(p,y,u){let m=p.get(y);return m||p.set(y,m=u),m}function Vn(p){const y=p.indexOf(":");return[p.substring(1,y),p.slice(y+1)]}const fr=(()=>typeof document>"u"?null:document.documentElement)();function ki(p){const y=p.parentNode||p.host||null;return y===fr?null:y}let vr=null,Bi=!1;function _i(p,y){for(;y;){if(y===p)return!0;y=ki(y)}return!1}function bo(p,y,u){if(u)return Array.from(p.querySelectorAll(y));const m=p.querySelector(y);return m?[m]:[]}let br=(()=>{class p{validateStyleProperty(u){return function co(p){vr||(vr=function tr(){return typeof document<"u"?document.body:null}()||{},Bi=!!vr.style&&"WebkitAppearance"in vr.style);let y=!0;return vr.style&&!function Kr(p){return"ebkit"==p.substring(1,6)}(p)&&(y=p in vr.style,!y&&Bi&&(y="Webkit"+p.charAt(0).toUpperCase()+p.slice(1)in vr.style)),y}(u)}matchesElement(u,m){return!1}containsElement(u,m){return _i(u,m)}getParentElement(u){return ki(u)}query(u,m,T){return bo(u,m,T)}computeStyle(u,m,T){return T||""}animate(u,m,T,B,Q,Le=[],Je){return new Ce.ZN(T,B)}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),$n=(()=>{class p{static#e=this.NOOP=new br}return p})();const yo=1e3,ho="ng-enter",to="ng-leave",yr="ng-trigger",Gs=".ng-trigger",Ba="ng-animating",xl=".ng-animating";function So(p){if("number"==typeof p)return p;const y=p.match(/^(-?[\.\d]+)(m?s)/);return!y||y.length<2?0:Ws(parseFloat(y[1]),y[2])}function Ws(p,y){return"s"===y?p*yo:p}function Ds(p,y,u){return p.hasOwnProperty("duration")?p:function $s(p,y,u){let T,B=0,Q="";if("string"==typeof p){const Le=p.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Le)return y.push(ae()),{duration:0,delay:0,easing:""};T=Ws(parseFloat(Le[1]),Le[2]);const Je=Le[3];null!=Je&&(B=Ws(parseFloat(Je),Le[4]));const At=Le[5];At&&(Q=At)}else T=p;if(!u){let Le=!1,Je=y.length;T<0&&(y.push(function Oe(){return new l.vHH(3100,!1)}()),Le=!0),B<0&&(y.push(function ot(){return new l.vHH(3101,!1)}()),Le=!0),Le&&y.splice(Je,0,ae())}return{duration:T,delay:B,easing:Q}}(p,y,u)}function Uo(p,y={}){return Object.keys(p).forEach(u=>{y[u]=p[u]}),y}function Jr(p){const y=new Map;return Object.keys(p).forEach(u=>{y.set(u,p[u])}),y}function oo(p,y=new Map,u){if(u)for(let[m,T]of u)y.set(m,T);for(let[m,T]of p)y.set(m,T);return y}function fs(p,y,u){y.forEach((m,T)=>{const B=dr(T);u&&!u.has(T)&&u.set(T,p.style[B]),p.style[B]=m})}function Sa(p,y){y.forEach((u,m)=>{const T=dr(m);p.style[T]=""})}function Vo(p){return Array.isArray(p)?1==p.length?p[0]:(0,Ce.vP)(p):p}const Ks=new RegExp("{{\\s*(.+?)\\s*}}","g");function Aa(p){let y=[];if("string"==typeof p){let u;for(;u=Ks.exec(p);)y.push(u[1]);Ks.lastIndex=0}return y}function qi(p,y,u){const m=p.toString(),T=m.replace(Ks,(B,Q)=>{let Le=y[Q];return null==Le&&(u.push(function Ft(p){return new l.vHH(3003,!1)}()),Le=""),Le.toString()});return T==m?p:T}function Li(p){const y=[];let u=p.next();for(;!u.done;)y.push(u.value),u=p.next();return y}const Yr=/-+([a-z0-9])/g;function dr(p){return p.replace(Yr,(...y)=>y[1].toUpperCase())}function Vr(p,y,u){switch(y.type){case 7:return p.visitTrigger(y,u);case 0:return p.visitState(y,u);case 1:return p.visitTransition(y,u);case 2:return p.visitSequence(y,u);case 3:return p.visitGroup(y,u);case 4:return p.visitAnimate(y,u);case 5:return p.visitKeyframes(y,u);case 6:return p.visitStyle(y,u);case 8:return p.visitReference(y,u);case 9:return p.visitAnimateChild(y,u);case 10:return p.visitAnimateRef(y,u);case 11:return p.visitQuery(y,u);case 12:return p.visitStagger(y,u);default:throw function lt(p){return new l.vHH(3004,!1)}()}}function Es(p,y){return window.getComputedStyle(p)[y]}const wo="*";function jo(p,y){const u=[];return"string"==typeof p?p.split(/\s*,\s*/).forEach(m=>function no(p,y,u){if(":"==p[0]){const Je=function Ao(p,y){switch(p){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(u,m)=>parseFloat(m)>parseFloat(u);case":decrement":return(u,m)=>parseFloat(m) *"}}(p,u);if("function"==typeof Je)return void y.push(Je);p=Je}const m=p.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==m||m.length<4)return u.push(function U(p){return new l.vHH(3015,!1)}()),y;const T=m[1],B=m[2],Q=m[3];y.push(va(T,Q));"<"==B[0]&&!(T==wo&&Q==wo)&&y.push(va(Q,T))}(m,u,y)):u.push(p),u}const nr=new Set(["true","1"]),ps=new Set(["false","0"]);function va(p,y){const u=nr.has(p)||ps.has(p),m=nr.has(y)||ps.has(y);return(T,B)=>{let Q=p==wo||p==T,Le=y==wo||y==B;return!Q&&u&&"boolean"==typeof T&&(Q=T?nr.has(p):ps.has(p)),!Le&&m&&"boolean"==typeof B&&(Le=B?nr.has(y):ps.has(y)),Q&&Le}}const qs=new RegExp("s*:selfs*,?","g");function ba(p,y,u,m){return new wi(p).build(y,u,m)}class wi{constructor(y){this._driver=y}build(y,u,m){const T=new or(u);return this._resetContextStyleTimingState(T),Vr(this,Vo(y),T)}_resetContextStyleTimingState(y){y.currentQuerySelector="",y.collectedStyles=new Map,y.collectedStyles.set("",new Map),y.currentTime=0}visitTrigger(y,u){let m=u.queryCount=0,T=u.depCount=0;const B=[],Q=[];return"@"==y.name.charAt(0)&&u.errors.push(function Ut(){return new l.vHH(3006,!1)}()),y.definitions.forEach(Le=>{if(this._resetContextStyleTimingState(u),0==Le.type){const Je=Le,At=Je.name;At.toString().split(/\s*,\s*/).forEach(jt=>{Je.name=jt,B.push(this.visitState(Je,u))}),Je.name=At}else if(1==Le.type){const Je=this.visitTransition(Le,u);m+=Je.queryCount,T+=Je.depCount,Q.push(Je)}else u.errors.push(function fn(){return new l.vHH(3007,!1)}())}),{type:7,name:y.name,states:B,transitions:Q,queryCount:m,depCount:T,options:null}}visitState(y,u){const m=this.visitStyle(y.styles,u),T=y.options&&y.options.params||null;if(m.containsDynamicStyles){const B=new Set,Q=T||{};m.styles.forEach(Le=>{Le instanceof Map&&Le.forEach(Je=>{Aa(Je).forEach(At=>{Q.hasOwnProperty(At)||B.add(At)})})}),B.size&&(Li(B.values()),u.errors.push(function gn(p,y){return new l.vHH(3008,!1)}()))}return{type:0,name:y.name,style:m,options:T?{params:T}:null}}visitTransition(y,u){u.queryCount=0,u.depCount=0;const m=Vr(this,Vo(y.animation),u);return{type:1,matchers:jo(y.expr,u.errors),animation:m,queryCount:u.queryCount,depCount:u.depCount,options:Sr(y.options)}}visitSequence(y,u){return{type:2,steps:y.steps.map(m=>Vr(this,m,u)),options:Sr(y.options)}}visitGroup(y,u){const m=u.currentTime;let T=0;const B=y.steps.map(Q=>{u.currentTime=m;const Le=Vr(this,Q,u);return T=Math.max(T,u.currentTime),Le});return u.currentTime=T,{type:3,steps:B,options:Sr(y.options)}}visitAnimate(y,u){const m=function Ml(p,y){if(p.hasOwnProperty("duration"))return p;if("number"==typeof p)return jr(Ds(p,y).duration,0,"");const u=p;if(u.split(/\s+/).some(B=>"{"==B.charAt(0)&&"{"==B.charAt(1))){const B=jr(0,0,"");return B.dynamic=!0,B.strValue=u,B}const T=Ds(u,y);return jr(T.duration,T.delay,T.easing)}(y.timings,u.errors);u.currentAnimateTimings=m;let T,B=y.styles?y.styles:(0,Ce.oB)({});if(5==B.type)T=this.visitKeyframes(B,u);else{let Q=y.styles,Le=!1;if(!Q){Le=!0;const At={};m.easing&&(At.easing=m.easing),Q=(0,Ce.oB)(At)}u.currentTime+=m.duration+m.delay;const Je=this.visitStyle(Q,u);Je.isEmptyStep=Le,T=Je}return u.currentAnimateTimings=null,{type:4,timings:m,style:T,options:null}}visitStyle(y,u){const m=this._makeStyleAst(y,u);return this._validateStyleAst(m,u),m}_makeStyleAst(y,u){const m=[],T=Array.isArray(y.styles)?y.styles:[y.styles];for(let Le of T)"string"==typeof Le?Le===Ce.l3?m.push(Le):u.errors.push(new l.vHH(3002,!1)):m.push(Jr(Le));let B=!1,Q=null;return m.forEach(Le=>{if(Le instanceof Map&&(Le.has("easing")&&(Q=Le.get("easing"),Le.delete("easing")),!B))for(let Je of Le.values())if(Je.toString().indexOf("{{")>=0){B=!0;break}}),{type:6,styles:m,easing:Q,offset:y.offset,containsDynamicStyles:B,options:null}}_validateStyleAst(y,u){const m=u.currentAnimateTimings;let T=u.currentTime,B=u.currentTime;m&&B>0&&(B-=m.duration+m.delay),y.styles.forEach(Q=>{"string"!=typeof Q&&Q.forEach((Le,Je)=>{const At=u.collectedStyles.get(u.currentQuerySelector),jt=At.get(Je);let dn=!0;jt&&(B!=T&&B>=jt.startTime&&T<=jt.endTime&&(u.errors.push(function ai(p,y,u,m,T){return new l.vHH(3010,!1)}()),dn=!1),B=jt.startTime),dn&&At.set(Je,{startTime:B,endTime:T}),u.options&&function oc(p,y,u){const m=y.params||{},T=Aa(p);T.length&&T.forEach(B=>{m.hasOwnProperty(B)||u.push(function Se(p){return new l.vHH(3001,!1)}())})}(Le,u.options,u.errors)})})}visitKeyframes(y,u){const m={type:5,styles:[],options:null};if(!u.currentAnimateTimings)return u.errors.push(function di(){return new l.vHH(3011,!1)}()),m;let B=0;const Q=[];let Le=!1,Je=!1,At=0;const jt=y.steps.map(Ii=>{const Ri=this._makeStyleAst(Ii,u);let rr=null!=Ri.offset?Ri.offset:function Xs(p){if("string"==typeof p)return null;let y=null;if(Array.isArray(p))p.forEach(u=>{if(u instanceof Map&&u.has("offset")){const m=u;y=parseFloat(m.get("offset")),m.delete("offset")}});else if(p instanceof Map&&p.has("offset")){const u=p;y=parseFloat(u.get("offset")),u.delete("offset")}return y}(Ri.styles),Si=0;return null!=rr&&(B++,Si=Ri.offset=rr),Je=Je||Si<0||Si>1,Le=Le||Si0&&B{const rr=Cn>0?Ri==Tn?1:Cn*Ri:Q[Ri],Si=rr*ii;u.currentTime=Un+Xn.delay+Si,Xn.duration=Si,this._validateStyleAst(Ii,u),Ii.offset=rr,m.styles.push(Ii)}),m}visitReference(y,u){return{type:8,animation:Vr(this,Vo(y.animation),u),options:Sr(y.options)}}visitAnimateChild(y,u){return u.depCount++,{type:9,options:Sr(y.options)}}visitAnimateRef(y,u){return{type:10,animation:this.visitReference(y.animation,u),options:Sr(y.options)}}visitQuery(y,u){const m=u.currentQuerySelector,T=y.options||{};u.queryCount++,u.currentQuery=y;const[B,Q]=function Oo(p){const y=!!p.split(/\s*,\s*/).find(u=>":self"==u);return y&&(p=p.replace(qs,"")),p=p.replace(/@\*/g,Gs).replace(/@\w+/g,u=>Gs+"-"+u.slice(1)).replace(/:animating/g,xl),[p,y]}(y.selector);u.currentQuerySelector=m.length?m+" "+B:B,ni(u.collectedStyles,u.currentQuerySelector,new Map);const Le=Vr(this,Vo(y.animation),u);return u.currentQuery=null,u.currentQuerySelector=m,{type:11,selector:B,limit:T.limit||0,optional:!!T.optional,includeSelf:Q,animation:Le,originalSelector:y.selector,options:Sr(y.options)}}visitStagger(y,u){u.currentQuery||u.errors.push(function _t(){return new l.vHH(3013,!1)}());const m="full"===y.timings?{duration:0,delay:0,easing:"full"}:Ds(y.timings,u.errors,!0);return{type:12,animation:Vr(this,Vo(y.animation),u),timings:m,options:null}}}class or{constructor(y){this.errors=y,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Sr(p){return p?(p=Uo(p)).params&&(p.params=function Ko(p){return p?Uo(p):null}(p.params)):p={},p}function jr(p,y,u){return{duration:p,delay:y,easing:u}}function xo(p,y,u,m,T,B,Q=null,Le=!1){return{type:1,element:p,keyframes:y,preStyleProps:u,postStyleProps:m,duration:T,delay:B,totalTime:T+B,easing:Q,subTimeline:Le}}class _s{constructor(){this._map=new Map}get(y){return this._map.get(y)||[]}append(y,u){let m=this._map.get(y);m||this._map.set(y,m=[]),m.push(...u)}has(y){return this._map.has(y)}clear(){this._map.clear()}}const Io=new RegExp(":enter","g"),fo=new RegExp(":leave","g");function Zr(p,y,u,m,T,B=new Map,Q=new Map,Le,Je,At=[]){return(new ms).buildKeyframes(p,y,u,m,T,B,Q,Le,Je,At)}class ms{buildKeyframes(y,u,m,T,B,Q,Le,Je,At,jt=[]){At=At||new _s;const dn=new Br(y,u,At,T,B,jt,[]);dn.options=Je;const Cn=Je.delay?So(Je.delay):0;dn.currentTimeline.delayNextStep(Cn),dn.currentTimeline.setStyles([Q],null,dn.errors,Je),Vr(this,m,dn);const Tn=dn.timelines.filter(Un=>Un.containsAnimation());if(Tn.length&&Le.size){let Un;for(let Xn=Tn.length-1;Xn>=0;Xn--){const ii=Tn[Xn];if(ii.element===u){Un=ii;break}}Un&&!Un.allowOnlyTimelineStyles()&&Un.setStyles([Le],null,dn.errors,Je)}return Tn.length?Tn.map(Un=>Un.buildKeyframes()):[xo(u,[],[],[],0,Cn,"",!1)]}visitTrigger(y,u){}visitState(y,u){}visitTransition(y,u){}visitAnimateChild(y,u){const m=u.subInstructions.get(u.element);if(m){const T=u.createSubContext(y.options),B=u.currentTimeline.currentTime,Q=this._visitSubInstructions(m,T,T.options);B!=Q&&u.transformIntoNewTimeline(Q)}u.previousNode=y}visitAnimateRef(y,u){const m=u.createSubContext(y.options);m.transformIntoNewTimeline(),this._applyAnimationRefDelays([y.options,y.animation.options],u,m),this.visitReference(y.animation,m),u.transformIntoNewTimeline(m.currentTimeline.currentTime),u.previousNode=y}_applyAnimationRefDelays(y,u,m){for(const T of y){const B=T?.delay;if(B){const Q="number"==typeof B?B:So(qi(B,T?.params??{},u.errors));m.delayNextStep(Q)}}}_visitSubInstructions(y,u,m){let B=u.currentTimeline.currentTime;const Q=null!=m.duration?So(m.duration):null,Le=null!=m.delay?So(m.delay):null;return 0!==Q&&y.forEach(Je=>{const At=u.appendInstructionToTimeline(Je,Q,Le);B=Math.max(B,At.duration+At.delay)}),B}visitReference(y,u){u.updateOptions(y.options,!0),Vr(this,y.animation,u),u.previousNode=y}visitSequence(y,u){const m=u.subContextCount;let T=u;const B=y.options;if(B&&(B.params||B.delay)&&(T=u.createSubContext(B),T.transformIntoNewTimeline(),null!=B.delay)){6==T.previousNode.type&&(T.currentTimeline.snapshotCurrentStyles(),T.previousNode=Co);const Q=So(B.delay);T.delayNextStep(Q)}y.steps.length&&(y.steps.forEach(Q=>Vr(this,Q,T)),T.currentTimeline.applyStylesToKeyframe(),T.subContextCount>m&&T.transformIntoNewTimeline()),u.previousNode=y}visitGroup(y,u){const m=[];let T=u.currentTimeline.currentTime;const B=y.options&&y.options.delay?So(y.options.delay):0;y.steps.forEach(Q=>{const Le=u.createSubContext(y.options);B&&Le.delayNextStep(B),Vr(this,Q,Le),T=Math.max(T,Le.currentTimeline.currentTime),m.push(Le.currentTimeline)}),m.forEach(Q=>u.currentTimeline.mergeTimelineCollectedStyles(Q)),u.transformIntoNewTimeline(T),u.previousNode=y}_visitTiming(y,u){if(y.dynamic){const m=y.strValue;return Ds(u.params?qi(m,u.params,u.errors):m,u.errors)}return{duration:y.duration,delay:y.delay,easing:y.easing}}visitAnimate(y,u){const m=u.currentAnimateTimings=this._visitTiming(y.timings,u),T=u.currentTimeline;m.delay&&(u.incrementTime(m.delay),T.snapshotCurrentStyles());const B=y.style;5==B.type?this.visitKeyframes(B,u):(u.incrementTime(m.duration),this.visitStyle(B,u),T.applyStylesToKeyframe()),u.currentAnimateTimings=null,u.previousNode=y}visitStyle(y,u){const m=u.currentTimeline,T=u.currentAnimateTimings;!T&&m.hasCurrentStyleProperties()&&m.forwardFrame();const B=T&&T.easing||y.easing;y.isEmptyStep?m.applyEmptyStep(B):m.setStyles(y.styles,B,u.errors,u.options),u.previousNode=y}visitKeyframes(y,u){const m=u.currentAnimateTimings,T=u.currentTimeline.duration,B=m.duration,Le=u.createSubContext().currentTimeline;Le.easing=m.easing,y.styles.forEach(Je=>{Le.forwardTime((Je.offset||0)*B),Le.setStyles(Je.styles,Je.easing,u.errors,u.options),Le.applyStylesToKeyframe()}),u.currentTimeline.mergeTimelineCollectedStyles(Le),u.transformIntoNewTimeline(T+B),u.previousNode=y}visitQuery(y,u){const m=u.currentTimeline.currentTime,T=y.options||{},B=T.delay?So(T.delay):0;B&&(6===u.previousNode.type||0==m&&u.currentTimeline.hasCurrentStyleProperties())&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Co);let Q=m;const Le=u.invokeQuery(y.selector,y.originalSelector,y.limit,y.includeSelf,!!T.optional,u.errors);u.currentQueryTotal=Le.length;let Je=null;Le.forEach((At,jt)=>{u.currentQueryIndex=jt;const dn=u.createSubContext(y.options,At);B&&dn.delayNextStep(B),At===u.element&&(Je=dn.currentTimeline),Vr(this,y.animation,dn),dn.currentTimeline.applyStylesToKeyframe(),Q=Math.max(Q,dn.currentTimeline.currentTime)}),u.currentQueryIndex=0,u.currentQueryTotal=0,u.transformIntoNewTimeline(Q),Je&&(u.currentTimeline.mergeTimelineCollectedStyles(Je),u.currentTimeline.snapshotCurrentStyles()),u.previousNode=y}visitStagger(y,u){const m=u.parentContext,T=u.currentTimeline,B=y.timings,Q=Math.abs(B.duration),Le=Q*(u.currentQueryTotal-1);let Je=Q*u.currentQueryIndex;switch(B.duration<0?"reverse":B.easing){case"reverse":Je=Le-Je;break;case"full":Je=m.currentStaggerTime}const jt=u.currentTimeline;Je&&jt.delayNextStep(Je);const dn=jt.currentTime;Vr(this,y.animation,u),u.previousNode=y,m.currentStaggerTime=T.currentTime-dn+(T.startTime-m.currentTimeline.startTime)}}const Co={};class Br{constructor(y,u,m,T,B,Q,Le,Je){this._driver=y,this.element=u,this.subInstructions=m,this._enterClassName=T,this._leaveClassName=B,this.errors=Q,this.timelines=Le,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Co,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Je||new ea(this._driver,u,0),Le.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(y,u){if(!y)return;const m=y;let T=this.options;null!=m.duration&&(T.duration=So(m.duration)),null!=m.delay&&(T.delay=So(m.delay));const B=m.params;if(B){let Q=T.params;Q||(Q=this.options.params={}),Object.keys(B).forEach(Le=>{(!u||!Q.hasOwnProperty(Le))&&(Q[Le]=qi(B[Le],Q,this.errors))})}}_copyOptions(){const y={};if(this.options){const u=this.options.params;if(u){const m=y.params={};Object.keys(u).forEach(T=>{m[T]=u[T]})}}return y}createSubContext(y=null,u,m){const T=u||this.element,B=new Br(this._driver,T,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(T,m||0));return B.previousNode=this.previousNode,B.currentAnimateTimings=this.currentAnimateTimings,B.options=this._copyOptions(),B.updateOptions(y),B.currentQueryIndex=this.currentQueryIndex,B.currentQueryTotal=this.currentQueryTotal,B.parentContext=this,this.subContextCount++,B}transformIntoNewTimeline(y){return this.previousNode=Co,this.currentTimeline=this.currentTimeline.fork(this.element,y),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(y,u,m){const T={duration:u??y.duration,delay:this.currentTimeline.currentTime+(m??0)+y.delay,easing:""},B=new po(this._driver,y.element,y.keyframes,y.preStyleProps,y.postStyleProps,T,y.stretchStartingKeyframe);return this.timelines.push(B),T}incrementTime(y){this.currentTimeline.forwardTime(this.currentTimeline.duration+y)}delayNextStep(y){y>0&&this.currentTimeline.delayNextStep(y)}invokeQuery(y,u,m,T,B,Q){let Le=[];if(T&&Le.push(this.element),y.length>0){y=(y=y.replace(Io,"."+this._enterClassName)).replace(fo,"."+this._leaveClassName);let At=this._driver.query(this.element,y,1!=m);0!==m&&(At=m<0?At.slice(At.length+m,At.length):At.slice(0,m)),Le.push(...At)}return!B&&0==Le.length&&Q.push(function G(p){return new l.vHH(3014,!1)}()),Le}}class ea{constructor(y,u,m,T){this._driver=y,this.element=u,this.startTime=m,this._elementTimelineStylesLookup=T,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(u),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(u,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(y){const u=1===this._keyframes.size&&this._pendingStyles.size;this.duration||u?(this.forwardTime(this.currentTime+y),u&&this.snapshotCurrentStyles()):this.startTime+=y}fork(y,u){return this.applyStylesToKeyframe(),new ea(this._driver,y,u||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(y){this.applyStylesToKeyframe(),this.duration=y,this._loadKeyframe()}_updateStyle(y,u){this._localTimelineStyles.set(y,u),this._globalTimelineStyles.set(y,u),this._styleSummary.set(y,{time:this.currentTime,value:u})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(y){y&&this._previousKeyframe.set("easing",y);for(let[u,m]of this._globalTimelineStyles)this._backFill.set(u,m||Ce.l3),this._currentKeyframe.set(u,Ce.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(y,u,m,T){u&&this._previousKeyframe.set("easing",u);const B=T&&T.params||{},Q=function qo(p,y){const u=new Map;let m;return p.forEach(T=>{if("*"===T){m=m||y.keys();for(let B of m)u.set(B,Ce.l3)}else oo(T,u)}),u}(y,this._globalTimelineStyles);for(let[Le,Je]of Q){const At=qi(Je,B,m);this._pendingStyles.set(Le,At),this._localTimelineStyles.has(Le)||this._backFill.set(Le,this._globalTimelineStyles.get(Le)??Ce.l3),this._updateStyle(Le,At)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((y,u)=>{this._currentKeyframe.set(u,y)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((y,u)=>{this._currentKeyframe.has(u)||this._currentKeyframe.set(u,y)}))}snapshotCurrentStyles(){for(let[y,u]of this._localTimelineStyles)this._pendingStyles.set(y,u),this._updateStyle(y,u)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const y=[];for(let u in this._currentKeyframe)y.push(u);return y}mergeTimelineCollectedStyles(y){y._styleSummary.forEach((u,m)=>{const T=this._styleSummary.get(m);(!T||u.time>T.time)&&this._updateStyle(m,u.value)})}buildKeyframes(){this.applyStylesToKeyframe();const y=new Set,u=new Set,m=1===this._keyframes.size&&0===this.duration;let T=[];this._keyframes.forEach((Le,Je)=>{const At=oo(Le,new Map,this._backFill);At.forEach((jt,dn)=>{jt===Ce.k1?y.add(dn):jt===Ce.l3&&u.add(dn)}),m||At.set("offset",Je/this.duration),T.push(At)});const B=y.size?Li(y.values()):[],Q=u.size?Li(u.values()):[];if(m){const Le=T[0],Je=new Map(Le);Le.set("offset",0),Je.set("offset",1),T=[Le,Je]}return xo(this.element,T,B,Q,this.duration,this.startTime,this.easing,!1)}}class po extends ea{constructor(y,u,m,T,B,Q,Le=!1){super(y,u,Q.delay),this.keyframes=m,this.preStyleProps=T,this.postStyleProps=B,this._stretchStartingKeyframe=Le,this.timings={duration:Q.duration,delay:Q.delay,easing:Q.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let y=this.keyframes,{delay:u,duration:m,easing:T}=this.timings;if(this._stretchStartingKeyframe&&u){const B=[],Q=m+u,Le=u/Q,Je=oo(y[0]);Je.set("offset",0),B.push(Je);const At=oo(y[0]);At.set("offset",io(Le)),B.push(At);const jt=y.length-1;for(let dn=1;dn<=jt;dn++){let Cn=oo(y[dn]);const Tn=Cn.get("offset");Cn.set("offset",io((u+Tn*m)/Q)),B.push(Cn)}m=Q,u=0,T="",y=B}return xo(this.element,y,this.preStyleProps,this.postStyleProps,m,u,T,!0)}}function io(p,y=3){const u=Math.pow(10,y-1);return Math.round(p*u)/u}class ya{}const Oa=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Ua extends ya{normalizePropertyName(y,u){return dr(y)}normalizeStyleValue(y,u,m,T){let B="";const Q=m.toString().trim();if(Oa.has(u)&&0!==m&&"0"!==m)if("number"==typeof m)B="px";else{const Le=m.match(/^[+-]?[\d\.]+([a-z]*)$/);Le&&0==Le[1].length&&T.push(function Bt(p,y){return new l.vHH(3005,!1)}())}return Q+B}}function Ia(p,y,u,m,T,B,Q,Le,Je,At,jt,dn,Cn){return{type:0,element:p,triggerName:y,isRemovalTransition:T,fromState:u,fromStyles:B,toState:m,toStyles:Q,timelines:Le,queriedElements:Je,preStyleProps:At,postStyleProps:jt,totalTime:dn,errors:Cn}}const ta={};class na{constructor(y,u,m){this._triggerName=y,this.ast=u,this._stateStyles=m}match(y,u,m,T){return function Fe(p,y,u,m,T){return p.some(B=>B(y,u,m,T))}(this.ast.matchers,y,u,m,T)}buildStyles(y,u,m){let T=this._stateStyles.get("*");return void 0!==y&&(T=this._stateStyles.get(y?.toString())||T),T?T.buildStyles(u,m):new Map}build(y,u,m,T,B,Q,Le,Je,At,jt){const dn=[],Cn=this.ast.options&&this.ast.options.params||ta,Un=this.buildStyles(m,Le&&Le.params||ta,dn),Xn=Je&&Je.params||ta,ii=this.buildStyles(T,Xn,dn),Ii=new Set,Ri=new Map,rr=new Map,Si="void"===T,lr={params:le(Xn,Cn),delay:this.ast.options?.delay},gr=jt?[]:Zr(y,u,this.ast.animation,B,Q,Un,ii,lr,At,dn);let Cr=0;if(gr.forEach($o=>{Cr=Math.max($o.duration+$o.delay,Cr)}),dn.length)return Ia(u,this._triggerName,m,T,Si,Un,ii,[],[],Ri,rr,Cr,dn);gr.forEach($o=>{const Bo=$o.element,sl=ni(Ri,Bo,new Set);$o.preStyleProps.forEach(zs=>sl.add(zs));const Zl=ni(rr,Bo,new Set);$o.postStyleProps.forEach(zs=>Zl.add(zs)),Bo!==u&&Ii.add(Bo)});const $r=Li(Ii.values());return Ia(u,this._triggerName,m,T,Si,Un,ii,gr,$r,Ri,rr,Cr)}}function le(p,y){const u=Uo(y);for(const m in p)p.hasOwnProperty(m)&&null!=p[m]&&(u[m]=p[m]);return u}class Qe{constructor(y,u,m){this.styles=y,this.defaultParams=u,this.normalizer=m}buildStyles(y,u){const m=new Map,T=Uo(this.defaultParams);return Object.keys(y).forEach(B=>{const Q=y[B];null!==Q&&(T[B]=Q)}),this.styles.styles.forEach(B=>{"string"!=typeof B&&B.forEach((Q,Le)=>{Q&&(Q=qi(Q,T,u));const Je=this.normalizer.normalizePropertyName(Le,u);Q=this.normalizer.normalizeStyleValue(Le,Je,Q,u),m.set(Le,Q)})}),m}}class Qn{constructor(y,u,m){this.name=y,this.ast=u,this._normalizer=m,this.transitionFactories=[],this.states=new Map,u.states.forEach(T=>{this.states.set(T.name,new Qe(T.style,T.options&&T.options.params||{},m))}),Zo(this.states,"true","1"),Zo(this.states,"false","0"),u.transitions.forEach(T=>{this.transitionFactories.push(new na(y,T,this.states))}),this.fallbackTransition=function Ni(p,y,u){return new na(p,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Q,Le)=>!0],options:null,queryCount:0,depCount:0},y)}(y,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(y,u,m,T){return this.transitionFactories.find(Q=>Q.match(y,u,m,T))||null}matchStyles(y,u,m){return this.fallbackTransition.buildStyles(y,u,m)}}function Zo(p,y,u){p.has(y)?p.has(u)||p.set(u,p.get(y)):p.has(u)&&p.set(y,p.get(u))}const Cl=new _s;class ia{constructor(y,u,m){this.bodyNode=y,this._driver=u,this._normalizer=m,this._animations=new Map,this._playersById=new Map,this.players=[]}register(y,u){const m=[],B=ba(this._driver,u,m,[]);if(m.length)throw function be(p){return new l.vHH(3503,!1)}();this._animations.set(y,B)}_buildPlayer(y,u,m){const T=y.element,B=cn(this._normalizer,y.keyframes,u,m);return this._driver.animate(T,B,y.duration,y.delay,y.easing,[],!0)}create(y,u,m={}){const T=[],B=this._animations.get(y);let Q;const Le=new Map;if(B?(Q=Zr(this._driver,u,B,ho,to,new Map,new Map,m,Cl,T),Q.forEach(jt=>{const dn=ni(Le,jt.element,new Map);jt.postStyleProps.forEach(Cn=>dn.set(Cn,null))})):(T.push(function Te(){return new l.vHH(3300,!1)}()),Q=[]),T.length)throw function He(p){return new l.vHH(3504,!1)}();Le.forEach((jt,dn)=>{jt.forEach((Cn,Tn)=>{jt.set(Tn,this._driver.computeStyle(dn,Tn,Ce.l3))})});const At=It(Q.map(jt=>{const dn=Le.get(jt.element);return this._buildPlayer(jt,new Map,dn)}));return this._playersById.set(y,At),At.onDestroy(()=>this.destroy(y)),this.players.push(At),At}destroy(y){const u=this._getPlayer(y);u.destroy(),this._playersById.delete(y);const m=this.players.indexOf(u);m>=0&&this.players.splice(m,1)}_getPlayer(y){const u=this._playersById.get(y);if(!u)throw function Wt(p){return new l.vHH(3301,!1)}();return u}listen(y,u,m,T){const B=On(u,"","","");return _n(this._getPlayer(y),m,B,T),()=>{}}command(y,u,m,T){if("register"==m)return void this.register(y,T[0]);if("create"==m)return void this.create(y,u,T[0]||{});const B=this._getPlayer(y);switch(m){case"play":B.play();break;case"pause":B.pause();break;case"reset":B.reset();break;case"restart":B.restart();break;case"finish":B.finish();break;case"init":B.init();break;case"setPosition":B.setPosition(parseFloat(T[0]));break;case"destroy":this.destroy(y)}}}const sc="ng-animate-queued",Tl="ng-animate-disabled",El=[],wa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Xo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pr="__ng_removed";class Ms{get params(){return this.options.params}constructor(y,u=""){this.namespaceId=u;const m=y&&y.hasOwnProperty("value");if(this.value=function Gl(p){return p??null}(m?y.value:y),m){const B=Uo(y);delete B.value,this.options=B}else this.options={};this.options.params||(this.options.params={})}absorbOptions(y){const u=y.params;if(u){const m=this.options.params;Object.keys(u).forEach(T=>{null==m[T]&&(m[T]=u[T])})}}}const As="void",qr=new Ms(As);class Bs{constructor(y,u,m){this.id=y,this.hostElement=u,this._engine=m,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+y,gs(u,this._hostClassName)}listen(y,u,m,T){if(!this._triggers.has(u))throw function Pn(p,y){return new l.vHH(3302,!1)}();if(null==m||0==m.length)throw function wt(p){return new l.vHH(3303,!1)}();if(!function ja(p){return"start"==p||"done"==p}(m))throw function Yt(p,y){return new l.vHH(3400,!1)}();const B=ni(this._elementListeners,y,[]),Q={name:u,phase:m,callback:T};B.push(Q);const Le=ni(this._engine.statesByElement,y,new Map);return Le.has(u)||(gs(y,yr),gs(y,yr+"-"+u),Le.set(u,qr)),()=>{this._engine.afterFlush(()=>{const Je=B.indexOf(Q);Je>=0&&B.splice(Je,1),this._triggers.has(u)||Le.delete(u)})}}register(y,u){return!this._triggers.has(y)&&(this._triggers.set(y,u),!0)}_getTrigger(y){const u=this._triggers.get(y);if(!u)throw function fe(p){return new l.vHH(3401,!1)}();return u}trigger(y,u,m,T=!0){const B=this._getTrigger(u),Q=new Va(this.id,u,y);let Le=this._engine.statesByElement.get(y);Le||(gs(y,yr),gs(y,yr+"-"+u),this._engine.statesByElement.set(y,Le=new Map));let Je=Le.get(u);const At=new Ms(m,this.id);if(!(m&&m.hasOwnProperty("value"))&&Je&&At.absorbOptions(Je.options),Le.set(u,At),Je||(Je=qr),At.value!==As&&Je.value===At.value){if(!function Za(p,y){const u=Object.keys(p),m=Object.keys(y);if(u.length!=m.length)return!1;for(let T=0;T{Sa(y,ii),fs(y,Ii)})}return}const Cn=ni(this._engine.playersByElement,y,[]);Cn.forEach(Xn=>{Xn.namespaceId==this.id&&Xn.triggerName==u&&Xn.queued&&Xn.destroy()});let Tn=B.matchTransition(Je.value,At.value,y,At.params),Un=!1;if(!Tn){if(!T)return;Tn=B.fallbackTransition,Un=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:u,transition:Tn,fromState:Je,toState:At,player:Q,isFallbackTransition:Un}),Un||(gs(y,sc),Q.onStart(()=>{ns(y,sc)})),Q.onDone(()=>{let Xn=this.players.indexOf(Q);Xn>=0&&this.players.splice(Xn,1);const ii=this._engine.playersByElement.get(y);if(ii){let Ii=ii.indexOf(Q);Ii>=0&&ii.splice(Ii,1)}}),this.players.push(Q),Cn.push(Q),Q}deregister(y){this._triggers.delete(y),this._engine.statesByElement.forEach(u=>u.delete(y)),this._elementListeners.forEach((u,m)=>{this._elementListeners.set(m,u.filter(T=>T.name!=y))})}clearElementCache(y){this._engine.statesByElement.delete(y),this._elementListeners.delete(y);const u=this._engine.playersByElement.get(y);u&&(u.forEach(m=>m.destroy()),this._engine.playersByElement.delete(y))}_signalRemovalForInnerTriggers(y,u){const m=this._engine.driver.query(y,Gs,!0);m.forEach(T=>{if(T[Pr])return;const B=this._engine.fetchNamespacesByElement(T);B.size?B.forEach(Q=>Q.triggerLeaveAnimation(T,u,!1,!0)):this.clearElementCache(T)}),this._engine.afterFlushAnimationsDone(()=>m.forEach(T=>this.clearElementCache(T)))}triggerLeaveAnimation(y,u,m,T){const B=this._engine.statesByElement.get(y),Q=new Map;if(B){const Le=[];if(B.forEach((Je,At)=>{if(Q.set(At,Je.value),this._triggers.has(At)){const jt=this.trigger(y,At,As,T);jt&&Le.push(jt)}}),Le.length)return this._engine.markElementAsRemoved(this.id,y,!0,u,Q),m&&It(Le).onDone(()=>this._engine.processLeaveNode(y)),!0}return!1}prepareLeaveAnimationListeners(y){const u=this._elementListeners.get(y),m=this._engine.statesByElement.get(y);if(u&&m){const T=new Set;u.forEach(B=>{const Q=B.name;if(T.has(Q))return;T.add(Q);const Je=this._triggers.get(Q).fallbackTransition,At=m.get(Q)||qr,jt=new Ms(As),dn=new Va(this.id,Q,y);this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:Q,transition:Je,fromState:At,toState:jt,player:dn,isFallbackTransition:!0})})}}removeNode(y,u){const m=this._engine;if(y.childElementCount&&this._signalRemovalForInnerTriggers(y,u),this.triggerLeaveAnimation(y,u,!0))return;let T=!1;if(m.totalAnimations){const B=m.players.length?m.playersByQueriedElement.get(y):[];if(B&&B.length)T=!0;else{let Q=y;for(;Q=Q.parentNode;)if(m.statesByElement.get(Q)){T=!0;break}}}if(this.prepareLeaveAnimationListeners(y),T)m.markElementAsRemoved(this.id,y,!1,u);else{const B=y[Pr];(!B||B===wa)&&(m.afterFlush(()=>this.clearElementCache(y)),m.destroyInnerAnimations(y),m._onRemovalComplete(y,u))}}insertNode(y,u){gs(y,this._hostClassName)}drainQueuedTransitions(y){const u=[];return this._queue.forEach(m=>{const T=m.player;if(T.destroyed)return;const B=m.element,Q=this._elementListeners.get(B);Q&&Q.forEach(Le=>{if(Le.name==m.triggerName){const Je=On(B,m.triggerName,m.fromState.value,m.toState.value);Je._data=y,_n(m.player,Le.phase,Je,Le.callback)}}),T.markedForDestroy?this._engine.afterFlush(()=>{T.destroy()}):u.push(m)}),this._queue=[],u.sort((m,T)=>{const B=m.transition.ast.depCount,Q=T.transition.ast.depCount;return 0==B||0==Q?B-Q:this._engine.driver.containsElement(m.element,T.element)?1:-1})}destroy(y){this.players.forEach(u=>u.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,y)}}class Ro{_onRemovalComplete(y,u){this.onRemovalComplete(y,u)}constructor(y,u,m){this.bodyNode=y,this.driver=u,this._normalizer=m,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=(T,B)=>{}}get queuedPlayers(){const y=[];return this._namespaceList.forEach(u=>{u.players.forEach(m=>{m.queued&&y.push(m)})}),y}createNamespace(y,u){const m=new Bs(y,u,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,u)?this._balanceNamespaceList(m,u):(this.newHostElements.set(u,m),this.collectEnterElement(u)),this._namespaceLookup[y]=m}_balanceNamespaceList(y,u){const m=this._namespaceList,T=this.namespacesByHostElement;if(m.length-1>=0){let Q=!1,Le=this.driver.getParentElement(u);for(;Le;){const Je=T.get(Le);if(Je){const At=m.indexOf(Je);m.splice(At+1,0,y),Q=!0;break}Le=this.driver.getParentElement(Le)}Q||m.unshift(y)}else m.push(y);return T.set(u,y),y}register(y,u){let m=this._namespaceLookup[y];return m||(m=this.createNamespace(y,u)),m}registerTrigger(y,u,m){let T=this._namespaceLookup[y];T&&T.register(u,m)&&this.totalAnimations++}destroy(y,u){y&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const m=this._fetchNamespace(y);this.namespacesByHostElement.delete(m.hostElement);const T=this._namespaceList.indexOf(m);T>=0&&this._namespaceList.splice(T,1),m.destroy(u),delete this._namespaceLookup[y]}))}_fetchNamespace(y){return this._namespaceLookup[y]}fetchNamespacesByElement(y){const u=new Set,m=this.statesByElement.get(y);if(m)for(let T of m.values())if(T.namespaceId){const B=this._fetchNamespace(T.namespaceId);B&&u.add(B)}return u}trigger(y,u,m,T){if(Hs(u)){const B=this._fetchNamespace(y);if(B)return B.trigger(u,m,T),!0}return!1}insertNode(y,u,m,T){if(!Hs(u))return;const B=u[Pr];if(B&&B.setForRemoval){B.setForRemoval=!1,B.setForMove=!0;const Q=this.collectedLeaveElements.indexOf(u);Q>=0&&this.collectedLeaveElements.splice(Q,1)}if(y){const Q=this._fetchNamespace(y);Q&&Q.insertNode(u,m)}T&&this.collectEnterElement(u)}collectEnterElement(y){this.collectedEnterElements.push(y)}markElementAsDisabled(y,u){u?this.disabledNodes.has(y)||(this.disabledNodes.add(y),gs(y,Tl)):this.disabledNodes.has(y)&&(this.disabledNodes.delete(y),ns(y,Tl))}removeNode(y,u,m){if(Hs(u)){const T=y?this._fetchNamespace(y):null;T?T.removeNode(u,m):this.markElementAsRemoved(y,u,!1,m);const B=this.namespacesByHostElement.get(u);B&&B.id!==y&&B.removeNode(u,m)}else this._onRemovalComplete(u,m)}markElementAsRemoved(y,u,m,T,B){this.collectedLeaveElements.push(u),u[Pr]={namespaceId:y,setForRemoval:T,hasAnimation:m,removedBeforeQueried:!1,previousTriggersValues:B}}listen(y,u,m,T,B){return Hs(u)?this._fetchNamespace(y).listen(u,m,T,B):()=>{}}_buildInstruction(y,u,m,T,B){return y.transition.build(this.driver,y.element,y.fromState.value,y.toState.value,m,T,y.fromState.options,y.toState.options,u,B)}destroyInnerAnimations(y){let u=this.driver.query(y,Gs,!0);u.forEach(m=>this.destroyActiveAnimationsForElement(m)),0!=this.playersByQueriedElement.size&&(u=this.driver.query(y,xl,!0),u.forEach(m=>this.finishActiveQueriedAnimationOnElement(m)))}destroyActiveAnimationsForElement(y){const u=this.playersByElement.get(y);u&&u.forEach(m=>{m.queued?m.markedForDestroy=!0:m.destroy()})}finishActiveQueriedAnimationOnElement(y){const u=this.playersByQueriedElement.get(y);u&&u.forEach(m=>m.finish())}whenRenderingDone(){return new Promise(y=>{if(this.players.length)return It(this.players).onDone(()=>y());y()})}processLeaveNode(y){const u=y[Pr];if(u&&u.setForRemoval){if(y[Pr]=wa,u.namespaceId){this.destroyInnerAnimations(y);const m=this._fetchNamespace(u.namespaceId);m&&m.clearElementCache(y)}this._onRemovalComplete(y,u.setForRemoval)}y.classList?.contains(Tl)&&this.markElementAsDisabled(y,!1),this.driver.query(y,".ng-animate-disabled",!0).forEach(m=>{this.markElementAsDisabled(m,!1)})}flush(y=-1){let u=[];if(this.newHostElements.size&&(this.newHostElements.forEach((m,T)=>this._balanceNamespaceList(m,T)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let m=0;mm()),this._flushFns=[],this._whenQuietFns.length){const m=this._whenQuietFns;this._whenQuietFns=[],u.length?It(u).onDone(()=>{m.forEach(T=>T())}):m.forEach(T=>T())}}reportError(y){throw function Mt(p){return new l.vHH(3402,!1)}()}_flushAnimations(y,u){const m=new _s,T=[],B=new Map,Q=[],Le=new Map,Je=new Map,At=new Map,jt=new Set;this.disabledNodes.forEach(ci=>{jt.add(ci);const Di=this.driver.query(ci,".ng-animate-queued",!0);for(let Zi=0;Zi{const Zi=ho+Xn++;Un.set(Di,Zi),ci.forEach(Er=>gs(Er,Zi))});const ii=[],Ii=new Set,Ri=new Set;for(let ci=0;ciIi.add(Er)):Ri.add(Di))}const rr=new Map,Si=Wl(Cn,Array.from(Ii));Si.forEach((ci,Di)=>{const Zi=to+Xn++;rr.set(Di,Zi),ci.forEach(Er=>gs(Er,Zi))}),y.push(()=>{Tn.forEach((ci,Di)=>{const Zi=Un.get(Di);ci.forEach(Er=>ns(Er,Zi))}),Si.forEach((ci,Di)=>{const Zi=rr.get(Di);ci.forEach(Er=>ns(Er,Zi))}),ii.forEach(ci=>{this.processLeaveNode(ci)})});const lr=[],gr=[];for(let ci=this._namespaceList.length-1;ci>=0;ci--)this._namespaceList[ci].drainQueuedTransitions(u).forEach(Zi=>{const Er=Zi.player,_a=Zi.element;if(lr.push(Er),this.collectedEnterElements.length){const ma=_a[Pr];if(ma&&ma.setForMove){if(ma.previousTriggersValues&&ma.previousTriggersValues.has(Zi.triggerName)){const wl=ma.previousTriggersValues.get(Zi.triggerName),zl=this.statesByElement.get(Zi.element);if(zl&&zl.has(Zi.triggerName)){const xu=zl.get(Zi.triggerName);xu.value=wl,zl.set(Zi.triggerName,xu)}}return void Er.destroy()}}const ed=!dn||!this.driver.containsElement(dn,_a),yl=rr.get(_a),vd=Un.get(_a),Ho=this._buildInstruction(Zi,m,vd,yl,ed);if(Ho.errors&&Ho.errors.length)return void gr.push(Ho);if(ed)return Er.onStart(()=>Sa(_a,Ho.fromStyles)),Er.onDestroy(()=>fs(_a,Ho.toStyles)),void T.push(Er);if(Zi.isFallbackTransition)return Er.onStart(()=>Sa(_a,Ho.fromStyles)),Er.onDestroy(()=>fs(_a,Ho.toStyles)),void T.push(Er);const Zd=[];Ho.timelines.forEach(ma=>{ma.stretchStartingKeyframe=!0,this.disabledNodes.has(ma.element)||Zd.push(ma)}),Ho.timelines=Zd,m.append(_a,Ho.timelines),Q.push({instruction:Ho,player:Er,element:_a}),Ho.queriedElements.forEach(ma=>ni(Le,ma,[]).push(Er)),Ho.preStyleProps.forEach((ma,wl)=>{if(ma.size){let zl=Je.get(wl);zl||Je.set(wl,zl=new Set),ma.forEach((xu,Zu)=>zl.add(Zu))}}),Ho.postStyleProps.forEach((ma,wl)=>{let zl=At.get(wl);zl||At.set(wl,zl=new Set),ma.forEach((xu,Zu)=>zl.add(Zu))})});if(gr.length){const ci=[];gr.forEach(Di=>{ci.push(function ht(p,y){return new l.vHH(3505,!1)}())}),lr.forEach(Di=>Di.destroy()),this.reportError(ci)}const Cr=new Map,$r=new Map;Q.forEach(ci=>{const Di=ci.element;m.has(Di)&&($r.set(Di,Di),this._beforeAnimationBuild(ci.player.namespaceId,ci.instruction,Cr))}),T.forEach(ci=>{const Di=ci.element;this._getPreviousPlayers(Di,!1,ci.namespaceId,ci.triggerName,null).forEach(Er=>{ni(Cr,Di,[]).push(Er),Er.destroy()})});const $o=ii.filter(ci=>za(ci,Je,At)),Bo=new Map;ts(Bo,this.driver,Ri,At,Ce.l3).forEach(ci=>{za(ci,Je,At)&&$o.push(ci)});const Zl=new Map;Tn.forEach((ci,Di)=>{ts(Zl,this.driver,new Set(ci),Je,Ce.k1)}),$o.forEach(ci=>{const Di=Bo.get(ci),Zi=Zl.get(ci);Bo.set(ci,new Map([...Di?.entries()??[],...Zi?.entries()??[]]))});const zs=[],jd=[],gd={};Q.forEach(ci=>{const{element:Di,player:Zi,instruction:Er}=ci;if(m.has(Di)){if(jt.has(Di))return Zi.onDestroy(()=>fs(Di,Er.toStyles)),Zi.disabled=!0,Zi.overrideTotalTime(Er.totalTime),void T.push(Zi);let _a=gd;if($r.size>1){let yl=Di;const vd=[];for(;yl=yl.parentNode;){const Ho=$r.get(yl);if(Ho){_a=Ho;break}vd.push(yl)}vd.forEach(Ho=>$r.set(Ho,_a))}const ed=this._buildAnimation(Zi.namespaceId,Er,Cr,B,Zl,Bo);if(Zi.setRealPlayer(ed),_a===gd)zs.push(Zi);else{const yl=this.playersByElement.get(_a);yl&&yl.length&&(Zi.parentPlayer=It(yl)),T.push(Zi)}}else Sa(Di,Er.fromStyles),Zi.onDestroy(()=>fs(Di,Er.toStyles)),jd.push(Zi),jt.has(Di)&&T.push(Zi)}),jd.forEach(ci=>{const Di=B.get(ci.element);if(Di&&Di.length){const Zi=It(Di);ci.setRealPlayer(Zi)}}),T.forEach(ci=>{ci.parentPlayer?ci.syncPlayerEvents(ci.parentPlayer):ci.destroy()});for(let ci=0;ci!ed.destroyed);_a.length?vc(this,Di,_a):this.processLeaveNode(Di)}return ii.length=0,zs.forEach(ci=>{this.players.push(ci),ci.onDone(()=>{ci.destroy();const Di=this.players.indexOf(ci);this.players.splice(Di,1)}),ci.play()}),zs}afterFlush(y){this._flushFns.push(y)}afterFlushAnimationsDone(y){this._whenQuietFns.push(y)}_getPreviousPlayers(y,u,m,T,B){let Q=[];if(u){const Le=this.playersByQueriedElement.get(y);Le&&(Q=Le)}else{const Le=this.playersByElement.get(y);if(Le){const Je=!B||B==As;Le.forEach(At=>{At.queued||!Je&&At.triggerName!=T||Q.push(At)})}}return(m||T)&&(Q=Q.filter(Le=>!(m&&m!=Le.namespaceId||T&&T!=Le.triggerName))),Q}_beforeAnimationBuild(y,u,m){const B=u.element,Q=u.isRemovalTransition?void 0:y,Le=u.isRemovalTransition?void 0:u.triggerName;for(const Je of u.timelines){const At=Je.element,jt=At!==B,dn=ni(m,At,[]);this._getPreviousPlayers(At,jt,Q,Le,u.toState).forEach(Tn=>{const Un=Tn.getRealPlayer();Un.beforeDestroy&&Un.beforeDestroy(),Tn.destroy(),dn.push(Tn)})}Sa(B,u.fromStyles)}_buildAnimation(y,u,m,T,B,Q){const Le=u.triggerName,Je=u.element,At=[],jt=new Set,dn=new Set,Cn=u.timelines.map(Un=>{const Xn=Un.element;jt.add(Xn);const ii=Xn[Pr];if(ii&&ii.removedBeforeQueried)return new Ce.ZN(Un.duration,Un.delay);const Ii=Xn!==Je,Ri=function Os(p){const y=[];return Is(p,y),y}((m.get(Xn)||El).map(Cr=>Cr.getRealPlayer())).filter(Cr=>!!Cr.element&&Cr.element===Xn),rr=B.get(Xn),Si=Q.get(Xn),lr=cn(this._normalizer,Un.keyframes,rr,Si),gr=this._buildPlayer(Un,lr,Ri);if(Un.subTimeline&&T&&dn.add(Xn),Ii){const Cr=new Va(y,Le,Xn);Cr.setRealPlayer(gr),At.push(Cr)}return gr});At.forEach(Un=>{ni(this.playersByQueriedElement,Un.element,[]).push(Un),Un.onDone(()=>function Sl(p,y,u){let m=p.get(y);if(m){if(m.length){const T=m.indexOf(u);m.splice(T,1)}0==m.length&&p.delete(y)}return m}(this.playersByQueriedElement,Un.element,Un))}),jt.forEach(Un=>gs(Un,Ba));const Tn=It(Cn);return Tn.onDestroy(()=>{jt.forEach(Un=>ns(Un,Ba)),fs(Je,u.toStyles)}),dn.forEach(Un=>{ni(T,Un,[]).push(Tn)}),Tn}_buildPlayer(y,u,m){return u.length>0?this.driver.animate(y.element,u,y.duration,y.delay,y.easing,m):new Ce.ZN(y.duration,y.delay)}}class Va{constructor(y,u,m){this.namespaceId=y,this.triggerName=u,this.element=m,this._player=new Ce.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(y){this._containsRealPlayer||(this._player=y,this._queuedCallbacks.forEach((u,m)=>{u.forEach(T=>_n(y,m,void 0,T))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(y.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(y){this.totalTime=y}syncPlayerEvents(y){const u=this._player;u.triggerCallback&&y.onStart(()=>u.triggerCallback("start")),y.onDone(()=>this.finish()),y.onDestroy(()=>this.destroy())}_queueEvent(y,u){ni(this._queuedCallbacks,y,[]).push(u)}onDone(y){this.queued&&this._queueEvent("done",y),this._player.onDone(y)}onStart(y){this.queued&&this._queueEvent("start",y),this._player.onStart(y)}onDestroy(y){this.queued&&this._queueEvent("destroy",y),this._player.onDestroy(y)}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(y){this.queued||this._player.setPosition(y)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(y){const u=this._player;u.triggerCallback&&u.triggerCallback(y)}}function Hs(p){return p&&1===p.nodeType}function es(p,y){const u=p.style.display;return p.style.display=y??"none",u}function ts(p,y,u,m,T){const B=[];u.forEach(Je=>B.push(es(Je)));const Q=[];m.forEach((Je,At)=>{const jt=new Map;Je.forEach(dn=>{const Cn=y.computeStyle(At,dn,T);jt.set(dn,Cn),(!Cn||0==Cn.length)&&(At[Pr]=Xo,Q.push(At))}),p.set(At,jt)});let Le=0;return u.forEach(Je=>es(Je,B[Le++])),Q}function Wl(p,y){const u=new Map;if(p.forEach(Le=>u.set(Le,[])),0==y.length)return u;const T=new Set(y),B=new Map;function Q(Le){if(!Le)return 1;let Je=B.get(Le);if(Je)return Je;const At=Le.parentNode;return Je=u.has(At)?At:T.has(At)?1:Q(At),B.set(Le,Je),Je}return y.forEach(Le=>{const Je=Q(Le);1!==Je&&u.get(Je).push(Le)}),u}function gs(p,y){p.classList?.add(y)}function ns(p,y){p.classList?.remove(y)}function vc(p,y,u){It(u).onDone(()=>p.processLeaveNode(y))}function Is(p,y){for(let u=0;uT.add(B)):y.set(p,m),u.delete(p),!0}class $l{constructor(y,u,m){this.bodyNode=y,this._driver=u,this._normalizer=m,this._triggerCache={},this.onRemovalComplete=(T,B)=>{},this._transitionEngine=new Ro(y,u,m),this._timelineEngine=new ia(y,u,m),this._transitionEngine.onRemovalComplete=(T,B)=>this.onRemovalComplete(T,B)}registerTrigger(y,u,m,T,B){const Q=y+"-"+T;let Le=this._triggerCache[Q];if(!Le){const Je=[],jt=ba(this._driver,B,Je,[]);if(Je.length)throw function We(p,y){return new l.vHH(3404,!1)}();Le=function Ht(p,y,u){return new Qn(p,y,u)}(T,jt,this._normalizer),this._triggerCache[Q]=Le}this._transitionEngine.registerTrigger(u,T,Le)}register(y,u){this._transitionEngine.register(y,u)}destroy(y,u){this._transitionEngine.destroy(y,u)}onInsert(y,u,m,T){this._transitionEngine.insertNode(y,u,m,T)}onRemove(y,u,m){this._transitionEngine.removeNode(y,u,m)}disableAnimations(y,u){this._transitionEngine.markElementAsDisabled(y,u)}process(y,u,m,T){if("@"==m.charAt(0)){const[B,Q]=Vn(m);this._timelineEngine.command(B,u,Q,T)}else this._transitionEngine.trigger(y,u,m,T)}listen(y,u,m,T,B){if("@"==m.charAt(0)){const[Q,Le]=Vn(m);return this._timelineEngine.listen(Q,u,Le,B)}return this._transitionEngine.listen(y,u,m,T,B)}flush(y=-1){this._transitionEngine.flush(y)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(y){this._transitionEngine.afterFlushAnimationsDone(y)}}let Lc=(()=>{class p{static#e=this.initialStylesByElement=new WeakMap;constructor(u,m,T){this._element=u,this._startStyles=m,this._endStyles=T,this._state=0;let B=p.initialStylesByElement.get(u);B||p.initialStylesByElement.set(u,B=new Map),this._initialStyles=B}start(){this._state<1&&(this._startStyles&&fs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fs(this._element,this._initialStyles),this._endStyles&&(fs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(p.initialStylesByElement.delete(this._element),this._startStyles&&(Sa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sa(this._element,this._endStyles),this._endStyles=null),fs(this._element,this._initialStyles),this._state=3)}}return p})();function Kl(p){let y=null;return p.forEach((u,m)=>{(function Rs(p){return"display"===p||"position"===p})(m)&&(y=y||new Map,y.set(m,u))}),y}class xa{constructor(y,u,m,T){this.element=y,this.keyframes=u,this.options=m,this._specialStyles=T,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=m.duration,this._delay=m.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(y=>y()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const y=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,y,this.options),this._finalKeyframe=y.length?y[y.length-1]:new Map;const u=()=>this._onFinish();this.domPlayer.addEventListener("finish",u),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",u)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(y){const u=[];return y.forEach(m=>{u.push(Object.fromEntries(m))}),u}_triggerWebAnimation(y,u,m){return y.animate(this._convertKeyframesToObject(u),m)}onStart(y){this._originalOnStartFns.push(y),this._onStartFns.push(y)}onDone(y){this._originalOnDoneFns.push(y),this._onDoneFns.push(y)}onDestroy(y){this._onDestroyFns.push(y)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(y=>y()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(y=>y()),this._onDestroyFns=[])}setPosition(y){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=y*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const y=new Map;this.hasStarted()&&this._finalKeyframe.forEach((m,T)=>{"offset"!==T&&y.set(T,this._finished?m:Es(this.element,T))}),this.currentSnapshot=y}triggerCallback(y){const u="start"===y?this._onStartFns:this._onDoneFns;u.forEach(m=>m()),u.length=0}}class Ga{validateStyleProperty(y){return!0}validateAnimatableStyleProperty(y){return!0}matchesElement(y,u){return!1}containsElement(y,u){return _i(y,u)}getParentElement(y){return ki(y)}query(y,u,m){return bo(y,u,m)}computeStyle(y,u,m){return window.getComputedStyle(y)[u]}animate(y,u,m,T,B,Q=[]){const Je={duration:m,delay:T,fill:0==T?"both":"forwards"};B&&(Je.easing=B);const At=new Map,jt=Q.filter(Tn=>Tn instanceof xa);(function wr(p,y){return 0===p||0===y})(m,T)&&jt.forEach(Tn=>{Tn.currentSnapshot.forEach((Un,Xn)=>At.set(Xn,Un))});let dn=function ga(p){return p.length?p[0]instanceof Map?p:p.map(y=>Jr(y)):[]}(u).map(Tn=>oo(Tn));dn=function al(p,y,u){if(u.size&&y.length){let m=y[0],T=[];if(u.forEach((B,Q)=>{m.has(Q)||T.push(Q),m.set(Q,B)}),T.length)for(let B=1;BQ.set(Le,Es(p,Le)))}}return y}(y,dn,At);const Cn=function Tr(p,y){let u=null,m=null;return Array.isArray(y)&&y.length?(u=Kl(y[0]),y.length>1&&(m=Kl(y[y.length-1]))):y instanceof Map&&(u=Kl(y)),u||m?new Lc(p,u,m):null}(y,dn);return new xa(y,dn,Je,Cn)}}let Wa=(()=>{class p extends Ce._j{constructor(u,m){super(),this._nextAnimationId=0,this._renderer=u.createRenderer(m.body,{id:"0",encapsulation:l.ifc.None,styles:[],data:{animation:[]}})}build(u){const m=this._nextAnimationId.toString();this._nextAnimationId++;const T=Array.isArray(u)?(0,Ce.vP)(u):u;return Al(this._renderer,null,m,"register",[T]),new bc(m,this._renderer)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.FYo),l.LFG(_e.K0))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();class bc extends Ce.LC{constructor(y,u){super(),this._id=y,this._renderer=u}create(y,u){return new ra(this._id,y,u||{},this._renderer)}}class ra{constructor(y,u,m,T){this.id=y,this.element=u,this._renderer=T,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",m)}_listen(y,u){return this._renderer.listen(this.element,`@@${this.id}:${y}`,u)}_command(y,...u){return Al(this._renderer,this.element,this.id,y,u)}onDone(y){this._listen("done",y)}onStart(y){this._listen("start",y)}onDestroy(y){this._listen("destroy",y)}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(y){this._command("setPosition",y)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Al(p,y,u,m,T){return p.setProperty(y,`@@${u}:${m}`,T)}const ro="@.disabled";let K=(()=>{class p{constructor(u,m,T){this.delegate=u,this.engine=m,this._zone=T,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,m.onRemovalComplete=(B,Q)=>{const Le=Q?.parentNode(B);Le&&Q.removeChild(Le,B)}}createRenderer(u,m){const B=this.delegate.createRenderer(u,m);if(!(u&&m&&m.data&&m.data.animation)){let jt=this._rendererCache.get(B);return jt||(jt=new Ue("",B,this.engine,()=>this._rendererCache.delete(B)),this._rendererCache.set(B,jt)),jt}const Q=m.id,Le=m.id+"-"+this._currentId;this._currentId++,this.engine.register(Le,u);const Je=jt=>{Array.isArray(jt)?jt.forEach(Je):this.engine.registerTrigger(Q,Le,u,jt.name,jt)};return m.data.animation.forEach(Je),new ge(this,Le,B,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(u,m,T){u>=0&&um(T)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(B=>{const[Q,Le]=B;Q(Le)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([m,T]))}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()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.FYo),l.LFG($l),l.LFG(l.R0b))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();class Ue{constructor(y,u,m,T){this.namespaceId=y,this.delegate=u,this.engine=m,this._onDestroy=T}get data(){return this.delegate.data}destroyNode(y){this.delegate.destroyNode?.(y)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(y,u){return this.delegate.createElement(y,u)}createComment(y){return this.delegate.createComment(y)}createText(y){return this.delegate.createText(y)}appendChild(y,u){this.delegate.appendChild(y,u),this.engine.onInsert(this.namespaceId,u,y,!1)}insertBefore(y,u,m,T=!0){this.delegate.insertBefore(y,u,m),this.engine.onInsert(this.namespaceId,u,y,T)}removeChild(y,u,m){this.engine.onRemove(this.namespaceId,u,this.delegate)}selectRootElement(y,u){return this.delegate.selectRootElement(y,u)}parentNode(y){return this.delegate.parentNode(y)}nextSibling(y){return this.delegate.nextSibling(y)}setAttribute(y,u,m,T){this.delegate.setAttribute(y,u,m,T)}removeAttribute(y,u,m){this.delegate.removeAttribute(y,u,m)}addClass(y,u){this.delegate.addClass(y,u)}removeClass(y,u){this.delegate.removeClass(y,u)}setStyle(y,u,m,T){this.delegate.setStyle(y,u,m,T)}removeStyle(y,u,m){this.delegate.removeStyle(y,u,m)}setProperty(y,u,m){"@"==u.charAt(0)&&u==ro?this.disableAnimations(y,!!m):this.delegate.setProperty(y,u,m)}setValue(y,u){this.delegate.setValue(y,u)}listen(y,u,m){return this.delegate.listen(y,u,m)}disableAnimations(y,u){this.engine.disableAnimations(y,u)}}class ge extends Ue{constructor(y,u,m,T,B){super(u,m,T,B),this.factory=y,this.namespaceId=u}setProperty(y,u,m){"@"==u.charAt(0)?"."==u.charAt(1)&&u==ro?this.disableAnimations(y,m=void 0===m||!!m):this.engine.process(this.namespaceId,y,u.slice(1),m):this.delegate.setProperty(y,u,m)}listen(y,u,m){if("@"==u.charAt(0)){const T=function Ne(p){switch(p){case"body":return document.body;case"document":return document;case"window":return window;default:return p}}(y);let B=u.slice(1),Q="";return"@"!=B.charAt(0)&&([B,Q]=function kt(p){const y=p.indexOf(".");return[p.substring(0,y),p.slice(y+1)]}(B)),this.engine.listen(this.namespaceId,T,B,Q,Le=>{this.factory.scheduleListenerCallback(Le._data||-1,m,Le)})}return this.delegate.listen(y,u,m)}}const ur=[{provide:Ce._j,useClass:Wa},{provide:ya,useFactory:function Sn(){return new Ua}},{provide:$l,useClass:(()=>{class p extends $l{constructor(u,m,T,B){super(u.body,m,T)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_e.K0),l.LFG($n),l.LFG(ya),l.LFG(l.z2F))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})()},{provide:l.FYo,useFactory:function li(p,y,u){return new K(p,y,u)},deps:[e.se,$l,l.R0b]}],hr=[{provide:$n,useFactory:()=>new Ga},{provide:l.QbO,useValue:"BrowserAnimations"},...ur],ar=[{provide:$n,useClass:br},{provide:l.QbO,useValue:"NoopAnimations"},...ur];let xi=(()=>{class p{static withConfig(u){return{ngModule:p,providers:u.disableAnimations?ar:hr}}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:hr,imports:[e.b2]})}return p})();var vs=C(9310),bs=C(7151),$a=C(617),Ui=C(8645),Ma=C(2296),Qr=C(8484),zr=C(2831),Qi=C(8180),yi=C(9773),oa=C(4300),cl=C(1088),_o=C(3651),Wi=C(3680);function Xi(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"div",2)(1,"button",3),l.NdJ("click",function(){l.CHM(u);const T=l.oxw();return l.KtG(T.action())}),l._uU(2),l.qZA()()}if(2&p){const u=l.oxw();l.xp6(2),l.hij(" ",u.data.action," ")}}const dl=["label"];function ko(p,y){}const rs=Math.pow(2,31)-1;class ul{constructor(y,u){this._overlayRef=u,this._afterDismissed=new Ui.x,this._afterOpened=new Ui.x,this._onAction=new Ui.x,this._dismissedByAction=!1,this.containerInstance=y,y._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(y){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(y,rs))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Pc=new l.OlP("MatSnackBarData");class Us{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Vs=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return p})(),Nc=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return p})(),ac=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return p})(),To=(()=>{class p{constructor(u,m){this.snackBarRef=u,this.data=m}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(ul),l.Y36(Pc))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0),l._uU(1),l.qZA(),l.YNc(2,Xi,3,1,"div",1)),2&m&&(l.xp6(1),l.hij(" ",T.data.message,"\n"),l.xp6(1),l.Q6J("ngIf",T.hasAction))},dependencies:[_e.O5,Ma.lW,Vs,Nc,ac],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return p})();const nd={snackBarState:(0,Ce.X$)("state",[(0,Ce.SB)("void, hidden",(0,Ce.oB)({transform:"scale(0.8)",opacity:0})),(0,Ce.SB)("visible",(0,Ce.oB)({transform:"scale(1)",opacity:1})),(0,Ce.eR)("* => visible",(0,Ce.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Ce.eR)("* => void, * => hidden",(0,Ce.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Ce.oB)({opacity:0})))])};let lc=0,Ei=(()=>{class p extends Qr.en{constructor(u,m,T,B,Q){super(),this._ngZone=u,this._elementRef=m,this._changeDetectorRef=T,this._platform=B,this.snackBarConfig=Q,this._document=(0,l.f3M)(_e.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Ui.x,this._onExit=new Ui.x,this._onEnter=new Ui.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+lc++,this.attachDomPortal=Le=>{this._assertNotAttached();const Je=this._portalOutlet.attachDomPortal(Le);return this._afterPortalAttached(),Je},this._live="assertive"!==Q.politeness||Q.announcementMessage?"off"===Q.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(u){this._assertNotAttached();const m=this._portalOutlet.attachComponentPortal(u);return this._afterPortalAttached(),m}attachTemplatePortal(u){this._assertNotAttached();const m=this._portalOutlet.attachTemplatePortal(u);return this._afterPortalAttached(),m}onAnimationEnd(u){const{fromState:m,toState:T}=u;if(("void"===T&&"void"!==m||"hidden"===T)&&this._completeExit(),"visible"===T){const B=this._onEnter;this._ngZone.run(()=>{B.next(),B.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,Qi.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const u=this._elementRef.nativeElement,m=this.snackBarConfig.panelClass;m&&(Array.isArray(m)?m.forEach(T=>u.classList.add(T)):u.classList.add(m)),this._exposeToModals()}_exposeToModals(){const u=this._liveElementId,m=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let T=0;T{const m=u.getAttribute("aria-owns");if(m){const T=m.replace(this._liveElementId,"").trim();T.length>0?u.setAttribute("aria-owns",T):u.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const u=this._elementRef.nativeElement.querySelector("[aria-hidden]"),m=this._elementRef.nativeElement.querySelector("[aria-live]");if(u&&m){let T=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&u.contains(document.activeElement)&&(T=document.activeElement),u.removeAttribute("aria-hidden"),m.appendChild(u),T?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(zr.t4),l.Y36(Us))};static#t=this.\u0275dir=l.lG2({type:p,viewQuery:function(m,T){if(1&m&&l.Gf(Qr.Pl,7),2&m){let B;l.iGM(B=l.CRH())&&(T._portalOutlet=B.first)}},features:[l.qOj]})}return p})(),Ca=(()=>{class p extends Ei{_afterPortalAttached(){super._afterPortalAttached();const u=this._label.nativeElement,m="mdc-snackbar__label";u.classList.toggle(m,!u.querySelector(`.${m}`))}static#e=this.\u0275fac=function(){let u;return function(T){return(u||(u=l.n5z(p)))(T||p)}}();static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["mat-snack-bar-container"]],viewQuery:function(m,T){if(1&m&&l.Gf(dl,7),2&m){let B;l.iGM(B=l.CRH())&&(T._label=B.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(m,T){1&m&&l.WFA("@state.done",function(Q){return T.onAnimationEnd(Q)}),2&m&&l.d8E("@state",T._animationState)},features:[l.qOj],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),l.YNc(4,ko,0,0,"ng-template",4),l.qZA(),l._UZ(5,"div"),l.qZA()()),2&m&&(l.xp6(5),l.uIk("aria-live",T._live)("role",T._role)("id",T._liveElementId))},dependencies:[Qr.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[nd.snackBarState]}})}return p})(),ks=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[_o.U8,Qr.eL,_e.ez,Ma.ot,Wi.BQ,Wi.BQ]})}return p})();const rd=new l.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function id(){return new Us}});let sa=(()=>{class p{get _openedSnackBarRef(){const u=this._parentSnackBar;return u?u._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(u){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=u:this._snackBarRefAtThisLevel=u}constructor(u,m,T,B,Q,Le){this._overlay=u,this._live=m,this._injector=T,this._breakpointObserver=B,this._parentSnackBar=Q,this._defaultConfig=Le,this._snackBarRefAtThisLevel=null}openFromComponent(u,m){return this._attach(u,m)}openFromTemplate(u,m){return this._attach(u,m)}open(u,m="",T){const B={...this._defaultConfig,...T};return B.data={message:u,action:m},B.announcementMessage===u&&(B.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,B)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(u,m){const B=l.zs3.create({parent:m&&m.viewContainerRef&&m.viewContainerRef.injector||this._injector,providers:[{provide:Us,useValue:m}]}),Q=new Qr.C5(this.snackBarContainerComponent,m.viewContainerRef,B),Le=u.attach(Q);return Le.instance.snackBarConfig=m,Le.instance}_attach(u,m){const T={...new Us,...this._defaultConfig,...m},B=this._createOverlay(T),Q=this._attachSnackBarContainer(B,T),Le=new ul(Q,B);if(u instanceof l.Rgc){const Je=new Qr.UE(u,null,{$implicit:T.data,snackBarRef:Le});Le.instance=Q.attachTemplatePortal(Je)}else{const Je=this._createInjector(T,Le),At=new Qr.C5(u,void 0,Je),jt=Q.attachComponentPortal(At);Le.instance=jt.instance}return this._breakpointObserver.observe(cl.u3.HandsetPortrait).pipe((0,yi.R)(B.detachments())).subscribe(Je=>{B.overlayElement.classList.toggle(this.handsetCssClass,Je.matches)}),T.announcementMessage&&Q._onAnnounce.subscribe(()=>{this._live.announce(T.announcementMessage,T.politeness)}),this._animateSnackBar(Le,T),this._openedSnackBarRef=Le,this._openedSnackBarRef}_animateSnackBar(u,m){u.afterDismissed().subscribe(()=>{this._openedSnackBarRef==u&&(this._openedSnackBarRef=null),m.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{u.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):u.containerInstance.enter(),m.duration&&m.duration>0&&u.afterOpened().subscribe(()=>u._dismissAfter(m.duration))}_createOverlay(u){const m=new _o.X_;m.direction=u.direction;let T=this._overlay.position().global();const B="rtl"===u.direction,Q="left"===u.horizontalPosition||"start"===u.horizontalPosition&&!B||"end"===u.horizontalPosition&&B,Le=!Q&&"center"!==u.horizontalPosition;return Q?T.left("0"):Le?T.right("0"):T.centerHorizontally(),"top"===u.verticalPosition?T.top("0"):T.bottom("0"),m.positionStrategy=T,this._overlay.create(m)}_createInjector(u,m){return l.zs3.create({parent:u&&u.viewContainerRef&&u.viewContainerRef.injector||this._injector,providers:[{provide:ul,useValue:m},{provide:Pc,useValue:u.data}]})}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_o.aV),l.LFG(oa.Kd),l.LFG(l.zs3),l.LFG(cl.Yg),l.LFG(p,12),l.LFG(rd))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),cc=(()=>{class p extends sa{constructor(u,m,T,B,Q,Le){super(u,m,T,B,Q,Le),this.simpleSnackBarComponent=To,this.snackBarContainerComponent=Ca,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_o.aV),l.LFG(oa.Kd),l.LFG(l.zs3),l.LFG(cl.Yg),l.LFG(p,12),l.LFG(rd))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:ks})}return p})();var hl=C(4911),od=C(8504),Mo=C(2438),Ka=C(2096),aa=C(5211),Ol=C(5592),kn=C(2420);const Fi=new Ol.y(kn.Z);var Il=C(3019),en=C(7398),so=C(2181),gt=C(4664),la=C(3168),Ra=C(4674),Ls=C(4829),os=C(9360);const Fc={connector:()=>new Ui.x};function mo(p,y=Fc){const{connector:u}=y;return(0,os.e)((m,T)=>{const B=u();(0,Ls.Xf)(p(function ss(p){return new Ol.y(y=>p.subscribe(y))}(B))).subscribe(T),T.add(m.subscribe(B))})}var W=C(9397),ne=C(5177);const V="Service workers are disabled or not supported by this browser";class xe{constructor(y){if(this.serviceWorker=y,y){const m=(0,Mo.R)(y,"controllerchange").pipe((0,en.U)(()=>y.controller)),T=(0,hl.P)(()=>(0,Ka.of)(y.controller)),B=(0,aa.z)(T,m);this.worker=B.pipe((0,so.h)(jt=>!!jt)),this.registration=this.worker.pipe((0,gt.w)(()=>y.getRegistration()));const At=(0,Mo.R)(y,"message").pipe((0,en.U)(jt=>jt.data)).pipe((0,so.h)(jt=>jt&&jt.type)).pipe(function ys(p){return p?y=>mo(p)(y):y=>function ka(p,y){const u=(0,Ra.m)(p)?p:()=>p;return(0,Ra.m)(y)?mo(y,{connector:u}):m=>new la.c(m,u)}(new Ui.x)(y)}());At.connect(),this.events=At}else this.worker=this.events=this.registration=function ie(p){return(0,hl.P)(()=>(0,od._)(new Error(p)))}(V)}postMessage(y,u){return this.worker.pipe((0,Qi.q)(1),(0,W.b)(m=>{m.postMessage({action:y,...u})})).toPromise().then(()=>{})}postMessageWithOperation(y,u,m){const T=this.waitForOperationCompleted(m),B=this.postMessage(y,u);return Promise.all([B,T]).then(([,Q])=>Q)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(y){let u;return u="string"==typeof y?m=>m.type===y:m=>y.includes(m.type),this.events.pipe((0,so.h)(u))}nextEventOfType(y){return this.eventsOfType(y).pipe((0,Qi.q)(1))}waitForOperationCompleted(y){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,so.h)(u=>u.nonce===y),(0,Qi.q)(1),(0,en.U)(u=>{if(void 0!==u.result)return u.result;throw new Error(u.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let qe=(()=>{class p{get isEnabled(){return this.sw.isEnabled}constructor(u){if(this.sw=u,this.pushManager=null,this.subscriptionChanges=new Ui.x,!u.isEnabled)return this.messages=Fi,this.notificationClicks=Fi,void(this.subscription=Fi);this.messages=this.sw.eventsOfType("PUSH").pipe((0,en.U)(T=>T.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,en.U)(T=>T.data)),this.pushManager=this.sw.registration.pipe((0,en.U)(T=>T.pushManager));const m=this.pushManager.pipe((0,gt.w)(T=>T.getSubscription()));this.subscription=(0,Il.T)(m,this.subscriptionChanges)}requestSubscription(u){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(V));const m={userVisibleOnly:!0};let T=this.decodeBase64(u.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),B=new Uint8Array(new ArrayBuffer(T.length));for(let Q=0;QQ.subscribe(m)),(0,Qi.q)(1)).toPromise().then(Q=>(this.subscriptionChanges.next(Q),Q))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,Qi.q)(1),(0,gt.w)(m=>{if(null===m)throw new Error("Not subscribed to push notifications.");return m.unsubscribe().then(T=>{if(!T)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(V))}decodeBase64(u){return atob(u)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(xe))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),Pt=(()=>{class p{get isEnabled(){return this.sw.isEnabled}constructor(u){if(this.sw=u,!u.isEnabled)return this.versionUpdates=Fi,this.available=Fi,this.activated=Fi,void(this.unrecoverable=Fi);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,so.h)(m=>"VERSION_READY"===m.type),(0,en.U)(m=>({type:"UPDATE_AVAILABLE",current:m.currentVersion,available:m.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(V));const u=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:u},u)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(V));const u=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:u},u)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(xe))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();const mn=new l.OlP("NGSW_REGISTER_SCRIPT");function hn(p,y,u,m){return()=>{if(!(0,_e.NF)(m)||!("serviceWorker"in navigator)||!1===u.enabled)return;let T;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof u.registrationStrategy)T=u.registrationStrategy();else{const[Q,...Le]=(u.registrationStrategy||"registerWhenStable:30000").split(":");switch(Q){case"registerImmediately":T=(0,Ka.of)(null);break;case"registerWithDelay":T=on(+Le[0]||0);break;case"registerWhenStable":T=Le[0]?(0,Il.T)(ji(p),on(+Le[0])):ji(p);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${u.registrationStrategy}`)}}p.get(l.R0b).runOutsideAngular(()=>T.pipe((0,Qi.q)(1)).subscribe(()=>navigator.serviceWorker.register(y,{scope:u.scope}).catch(Q=>console.error("Service worker registration failed with:",Q))))}}function on(p){return(0,Ka.of)(null).pipe((0,ne.g)(p))}function ji(p){return p.get(l.z2F).isStable.pipe((0,so.h)(u=>u))}function Gr(p,y){return new xe((0,_e.NF)(y)&&!1!==p.enabled?navigator.serviceWorker:void 0)}class $i{}function mi(p,y={}){return(0,l.MR2)([qe,Pt,{provide:mn,useValue:p},{provide:$i,useValue:y},{provide:xe,useFactory:Gr,deps:[$i,l.Lbi]},{provide:l.ip1,useFactory:hn,deps:[l.zs3,mn,$i,l.Lbi],multi:!0}])}let Ps=(()=>{class p{static register(u,m={}){return{ngModule:p,providers:[mi(u,m)]}}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:[qe,Pt]})}return p})();var fl=C(2268),Rl=C(6232),Ja=C(4825);const{isArray:xd}=Array;function Md(p){return 1===p.length&&xd(p[0])?p[0]:p}var Do=C(8251);var dc=C(9940);function Ec(...p){const y=(0,dc.jO)(p),u=Md(p);return u.length?new Ol.y(m=>{let T=u.map(()=>[]),B=u.map(()=>!1);m.add(()=>{T=B=null});for(let Q=0;!m.closed&&Q{if(T[Q].push(Le),T.every(Je=>Je.length)){const Je=T.map(At=>At.shift());m.next(y?y(...Je):Je),T.some((At,jt)=>!At.length&&B[jt])&&m.complete()}},()=>{B[Q]=!0,!T[Q].length&&m.complete()}));return()=>{T=B=null}}):Rl.E}var uc=C(2737);function hc(...p){const y=(0,dc.jO)(p);return(0,os.e)((u,m)=>{const T=p.length,B=new Array(T);let Q=p.map(()=>!1),Le=!1;for(let Je=0;Je{B[Je]=At,!Le&&!Q[Je]&&(Q[Je]=!0,(Le=Q.every(uc.y))&&(Q=null))},kn.Z));u.subscribe((0,Do.x)(m,Je=>{if(Le){const At=[Je,...B];m.next(y?y(...At):At)}}))})}C(7921),C(3997),C(836),Math,Math,Math;const qu=["*"],Wf=["dialog"];function vt(p){return"string"==typeof p}function Gt(p){return null!=p}function Kn(p){return(p||document.body).getBoundingClientRect()}const Dr={animation:!0,transitionTimerDelayMs:5},hs=()=>{},{transitionTimerDelayMs:Vl}=Dr,ic=new Map,Cs=(p,y,u,m)=>{let T=m.context||{};const B=ic.get(y);if(B)switch(m.runningTransition){case"continue":return Rl.E;case"stop":p.run(()=>B.transition$.complete()),T=Object.assign(B.context,T),ic.delete(y)}const Q=u(y,m.animation,T)||hs;if(!m.animation||"none"===window.getComputedStyle(y).transitionProperty)return p.run(()=>Q()),(0,Ka.of)(void 0).pipe(function fi(p){return y=>new Ol.y(u=>y.subscribe({next:Q=>p.run(()=>u.next(Q)),error:Q=>p.run(()=>u.error(Q)),complete:()=>p.run(()=>u.complete())}))}(p));const Le=new Ui.x,Je=new Ui.x,At=Le.pipe(function sd(...p){return y=>(0,aa.z)(y,(0,Ka.of)(...p))}(!0));ic.set(y,{transition$:Le,complete:()=>{Je.next(),Je.complete()},context:T});const jt=function go(p){const{transitionDelay:y,transitionDuration:u}=window.getComputedStyle(p);return 1e3*(parseFloat(y)+parseFloat(u))}(y);return p.runOutsideAngular(()=>{const dn=(0,Mo.R)(y,"transitionend").pipe((0,yi.R)(At),(0,so.h)(({target:Tn})=>Tn===y));(function qa(...p){return 1===(p=Md(p)).length?(0,Ls.Xf)(p[0]):new Ol.y(function xr(p){return y=>{let u=[];for(let m=0;u&&!y.closed&&m{if(u){for(let B=0;B{ic.delete(y),p.run(()=>{Q(),Le.next(),Le.complete()})})}),Le.asObservable()};let P=(()=>{class p{constructor(){this.animation=Dr.animation}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),Jf=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),C_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),dh=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),E_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();var Wo=function(p){return p[p.Tab=9]="Tab",p[p.Enter=13]="Enter",p[p.Escape=27]="Escape",p[p.Space=32]="Space",p[p.PageUp=33]="PageUp",p[p.PageDown=34]="PageDown",p[p.End=35]="End",p[p.Home=36]="Home",p[p.ArrowLeft=37]="ArrowLeft",p[p.ArrowUp=38]="ArrowUp",p[p.ArrowRight=39]="ArrowRight",p[p.ArrowDown=40]="ArrowDown",p}(Wo||{});typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const I_=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Vp(p){const y=Array.from(p.querySelectorAll(I_)).filter(u=>-1!==u.tabIndex);return[y[0],y[y.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let yg=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),Kp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();class Ki{constructor(y,u,m){this.nodes=y,this.viewRef=u,this.componentRef=m}}let $_=(()=>{class p{constructor(u,m){this._el=u,this._zone=m}ngOnInit(){this._zone.onStable.asObservable().pipe((0,Qi.q)(1)).subscribe(()=>{Cs(this._zone,this._el.nativeElement,(u,m)=>{m&&Kn(u),u.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Cs(this._zone,this._el.nativeElement,({classList:u})=>u.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(m,T){2&m&&(l.Tol("modal-backdrop"+(T.backdropClass?" "+T.backdropClass:"")),l.ekj("show",!T.animation)("fade",T.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[l.jDz],decls:0,vars:0,template:function(m,T){},encapsulation:2})}return p})();class fh{update(y){}close(y){}dismiss(y){}}const K_=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Tg=["animation","backdropClass"];class hp{_applyWindowOptions(y,u){K_.forEach(m=>{Gt(u[m])&&(y[m]=u[m])})}_applyBackdropOptions(y,u){Tg.forEach(m=>{Gt(u[m])&&(y[m]=u[m])})}update(y){this._applyWindowOptions(this._windowCmptRef.instance,y),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,y)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,yi.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,yi.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(y,u,m,T){this._windowCmptRef=y,this._contentRef=u,this._backdropCmptRef=m,this._beforeDismiss=T,this._closed=new Ui.x,this._dismissed=new Ui.x,this._hidden=new Ui.x,y.instance.dismissEvent.subscribe(B=>{this.dismiss(B)}),this.result=new Promise((B,Q)=>{this._resolve=B,this._reject=Q}),this.result.then(null,()=>{})}close(y){this._windowCmptRef&&(this._closed.next(y),this._resolve(y),this._removeModalElements())}_dismiss(y){this._dismissed.next(y),this._reject(y),this._removeModalElements()}dismiss(y){if(this._windowCmptRef)if(this._beforeDismiss){const u=this._beforeDismiss();!function an(p){return p&&p.then}(u)?!1!==u&&this._dismiss(y):u.then(m=>{!1!==m&&this._dismiss(y)},()=>{})}else this._dismiss(y)}_removeModalElements(){const y=this._windowCmptRef.instance.hide(),u=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,Ka.of)(void 0);y.subscribe(()=>{const{nativeElement:m}=this._windowCmptRef.location;m.parentNode.removeChild(m),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),u.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:m}=this._backdropCmptRef.location;m.parentNode.removeChild(m),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Ec(y,u).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Vu=function(p){return p[p.BACKDROP_CLICK=0]="BACKDROP_CLICK",p[p.ESC=1]="ESC",p}(Vu||{});let Jp=(()=>{class p{constructor(u,m,T){this._document=u,this._elRef=m,this._zone=T,this._closed$=new Ui.x,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new l.vpe,this.shown=new Ui.x,this.hidden=new Ui.x}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":vt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(u){this.dismissEvent.emit(u)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,Qi.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:u}=this._elRef,m={animation:this.animation,runningTransition:"stop"},Q=Ec(Cs(this._zone,u,()=>u.classList.remove("show"),m),Cs(this._zone,this._dialogEl.nativeElement,()=>{},m));return Q.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),Q}_show(){const u={animation:this.animation,runningTransition:"continue"};Ec(Cs(this._zone,this._elRef.nativeElement,(B,Q)=>{Q&&Kn(B),B.classList.add("show")},u),Cs(this._zone,this._dialogEl.nativeElement,()=>{},u)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:u}=this._elRef;this._zone.runOutsideAngular(()=>{(0,Mo.R)(u,"keydown").pipe((0,yi.R)(this._closed$),(0,so.h)(T=>T.which===Wo.Escape)).subscribe(T=>{this.keyboard?requestAnimationFrame(()=>{T.defaultPrevented||this._zone.run(()=>this.dismiss(Vu.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let m=!1;(0,Mo.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,yi.R)(this._closed$),(0,W.b)(()=>m=!1),(0,gt.w)(()=>(0,Mo.R)(u,"mouseup").pipe((0,yi.R)(this._closed$),(0,Qi.q)(1))),(0,so.h)(({target:T})=>u===T)).subscribe(()=>{m=!0}),(0,Mo.R)(u,"click").pipe((0,yi.R)(this._closed$)).subscribe(({target:T})=>{u===T&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!m&&this._zone.run(()=>this.dismiss(Vu.BACKDROP_CLICK))),m=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:u}=this._elRef;if(!u.contains(document.activeElement)){const m=u.querySelector("[ngbAutofocus]"),T=Vp(u)[0];(m||T||u).focus()}}_restoreFocus(){const u=this._document.body,m=this._elWithFocus;let T;T=m&&m.focus&&u.contains(m)?m:u,this._zone.runOutsideAngular(()=>{setTimeout(()=>T.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Cs(this._zone,this._elRef.nativeElement,({classList:u})=>(u.add("modal-static"),()=>u.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(_e.K0),l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["ngb-modal-window"]],viewQuery:function(m,T){if(1&m&&l.Gf(Wf,7),2&m){let B;l.iGM(B=l.CRH())&&(T._dialogEl=B.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(m,T){2&m&&(l.uIk("aria-modal",!0)("aria-labelledby",T.ariaLabelledBy)("aria-describedby",T.ariaDescribedBy),l.Tol("modal d-block"+(T.windowClass?" "+T.windowClass:"")),l.ekj("fade",T.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[l.jDz],ngContentSelectors:qu,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(m,T){1&m&&(l.F$t(),l.TgZ(0,"div",0,1)(2,"div",2),l.Hsn(3),l.qZA()()),2&m&&l.Tol("modal-dialog"+(T.size?" modal-"+T.size:"")+(T.centered?" modal-dialog-centered":"")+T.fullscreenClass+(T.scrollable?" modal-dialog-scrollable":"")+(T.modalDialogClass?" "+T.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return p})(),Pf=(()=>{class p{constructor(u){this._document=u}hide(){const u=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),m=this._document.body,T=m.style,{overflow:B,paddingRight:Q}=T;if(u>0){const Le=parseFloat(window.getComputedStyle(m).paddingRight);T.paddingRight=`${Le+u}px`}return T.overflow="hidden",()=>{u>0&&(T.paddingRight=Q),T.overflow=B}}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_e.K0))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),J_=(()=>{class p{constructor(u,m,T,B,Q,Le,Je){this._applicationRef=u,this._injector=m,this._environmentInjector=T,this._document=B,this._scrollBar=Q,this._rendererFactory=Le,this._ngZone=Je,this._activeWindowCmptHasChanged=new Ui.x,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new l.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const At=this._windowCmpts[this._windowCmpts.length-1];((p,y,u,m=!1)=>{p.runOutsideAngular(()=>{const T=(0,Mo.R)(y,"focusin").pipe((0,yi.R)(u),(0,en.U)(B=>B.target));(0,Mo.R)(y,"keydown").pipe((0,yi.R)(u),(0,so.h)(B=>B.which===Wo.Tab),hc(T)).subscribe(([B,Q])=>{const[Le,Je]=Vp(y);(Q===Le||Q===y)&&B.shiftKey&&(Je.focus(),B.preventDefault()),Q===Je&&!B.shiftKey&&(Le.focus(),B.preventDefault())}),m&&(0,Mo.R)(y,"click").pipe((0,yi.R)(u),hc(T),(0,en.U)(B=>B[1])).subscribe(B=>B.focus())})})(this._ngZone,At.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(At.location.nativeElement)}})}_restoreScrollBar(){const u=this._scrollBarRestoreFn;u&&(this._scrollBarRestoreFn=null,u())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(u,m,T){const B=T.container instanceof HTMLElement?T.container:Gt(T.container)?this._document.querySelector(T.container):this._document.body,Q=this._rendererFactory.createRenderer(null,null);if(!B)throw new Error(`The specified modal container "${T.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const Le=new fh,Je=(u=T.injector||u).get(l.lqb,null)||this._environmentInjector,At=this._getContentRef(u,Je,m,Le,T);let jt=!1!==T.backdrop?this._attachBackdrop(B):void 0,dn=this._attachWindowComponent(B,At.nodes),Cn=new hp(dn,At,jt,T.beforeDismiss);return this._registerModalRef(Cn),this._registerWindowCmpt(dn),Cn.hidden.pipe((0,Qi.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(Q.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),Le.close=Tn=>{Cn.close(Tn)},Le.dismiss=Tn=>{Cn.dismiss(Tn)},Le.update=Tn=>{Cn.update(Tn)},Cn.update(T),1===this._modalRefs.length&&Q.addClass(this._document.body,"modal-open"),jt&&jt.instance&&jt.changeDetectorRef.detectChanges(),dn.changeDetectorRef.detectChanges(),Cn}get activeInstances(){return this._activeInstances}dismissAll(u){this._modalRefs.forEach(m=>m.dismiss(u))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(u){let m=(0,l.LMc)($_,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(m.hostView),u.appendChild(m.location.nativeElement),m}_attachWindowComponent(u,m){let T=(0,l.LMc)(Jp,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:m});return this._applicationRef.attachView(T.hostView),u.appendChild(T.location.nativeElement),T}_getContentRef(u,m,T,B,Q){return T?T instanceof l.Rgc?this._createFromTemplateRef(T,B):vt(T)?this._createFromString(T):this._createFromComponent(u,m,T,B,Q):new Ki([])}_createFromTemplateRef(u,m){const B=u.createEmbeddedView({$implicit:m,close(Q){m.close(Q)},dismiss(Q){m.dismiss(Q)}});return this._applicationRef.attachView(B),new Ki([B.rootNodes],B)}_createFromString(u){const m=this._document.createTextNode(`${u}`);return new Ki([[m]])}_createFromComponent(u,m,T,B,Q){const Le=l.zs3.create({providers:[{provide:fh,useValue:B}],parent:u}),Je=(0,l.LMc)(T,{environmentInjector:m,elementInjector:Le}),At=Je.location.nativeElement;return Q.scrollable&&At.classList.add("component-host-scrollable"),this._applicationRef.attachView(Je.hostView),new Ki([[At]],Je.hostView,Je)}_setAriaHidden(u){const m=u.parentElement;m&&u!==this._document.body&&(Array.from(m.children).forEach(T=>{T!==u&&"SCRIPT"!==T.nodeName&&(this._ariaHiddenValues.set(T,T.getAttribute("aria-hidden")),T.setAttribute("aria-hidden","true"))}),this._setAriaHidden(m))}_revertAriaHidden(){this._ariaHiddenValues.forEach((u,m)=>{u?m.setAttribute("aria-hidden",u):m.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(u){const m=()=>{const T=this._modalRefs.indexOf(u);T>-1&&(this._modalRefs.splice(T,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(u),this._activeInstances.emit(this._modalRefs),u.result.then(m,m)}_registerWindowCmpt(u){this._windowCmpts.push(u),this._activeWindowCmptHasChanged.next(),u.onDestroy(()=>{const m=this._windowCmpts.indexOf(u);m>-1&&(this._windowCmpts.splice(m,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.z2F),l.LFG(l.zs3),l.LFG(l.lqb),l.LFG(_e.K0),l.LFG(Pf),l.LFG(l.FYo),l.LFG(l.R0b))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),qp=(()=>{class p{constructor(u){this._ngbConfig=u,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(u){this._animation=u}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(P))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),Qp=(()=>{class p{constructor(u,m,T){this._injector=u,this._modalStack=m,this._config=T}open(u,m={}){const T={...this._config,animation:this._config.animation,...m};return this._modalStack.open(this._injector,u,T)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(u){this._modalStack.dismissAll(u)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.zs3),l.LFG(J_),l.LFG(qp))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),fp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:[Qp]})}return p})(),tm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),gp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),sm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),n_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),vp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),dm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),hm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),s_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),fm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();new l.OlP("live announcer delay",{providedIn:"root",factory:function Gg(){return 100}});let _m=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),l_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();const mm=[Jf,C_,dh,E_,yg,Kp,fp,tm,l_,gp,sm,n_,vp,dm,hm,s_,fm,_m];let Jg=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[mm,Jf,C_,dh,E_,yg,Kp,fp,tm,l_,gp,sm,n_,vp,dm,hm,s_,fm,_m]})}return p})();var X0=C(9797),gm=C(2425);let vm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p,bootstrap:[Wn]});static#n=this.\u0275inj=l.cJS({providers:[Ct.F,cc],imports:[e.b2,ei,Ve.AuthModule,bs.g,X0.CmsModule,vs.WebAppModule,ct.JF,xi,gm.Rh.forRoot(),$a.Ps,Ps.register("ngsw-worker.js",{enabled:I.N.production,registrationStrategy:"registerWhenStable:30000"}),Ps.register("ngsw-worker.js",{enabled:!(0,l.X6Q)(),registrationStrategy:"registerWhenStable:30000"}),fl.z8.forRoot(),Jg]})}return p})();e.q6().bootstrapModule(vm).catch(p=>console.error(p))},3274:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(D){return/^nm$/i.test(D)},meridiem:function(D,I,S){return D<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(D){return D+(1===D||8===D||D>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},1867:function(ft,Ie,C){!function(e){"use strict";var l=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},I=function(n){return function(Z,ee,re,ue){var se=l(Z),te=D[n][l(Z)];return 2===se&&(te=te[ee?0:1]),te.replace(/%d/i,Z)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"\u0645"===n},meridiem:function(n,Z,ee){return n<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:I("s"),ss:I("s"),m:I("m"),mm:I("m"),h:I("h"),hh:I("h"),d:I("d"),dd:I("d"),M:I("M"),MM:I("M"),y:I("y"),yy:I("y")},postformat:function(n){return n.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(C(6676))},7078:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(C(6676))},7776:function(ft,Ie,C){!function(e){"use strict";var l={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},D=function(Z){return 0===Z?0:1===Z?1:2===Z?2:Z%100>=3&&Z%100<=10?3:Z%100>=11?4:5},I={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(Z){return function(ee,re,ue,se){var te=D(ee),oe=I[Z][D(ee)];return 2===te&&(oe=oe[re?0:1]),oe.replace(/%d/i,ee)}},w=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:w,monthsShort:w,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(Z){return"\u0645"===Z},meridiem:function(Z,ee,re){return Z<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(Z){return Z.replace(/\u060c/g,",")},postformat:function(Z){return Z.replace(/\d/g,function(ee){return l[ee]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},6789:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(C(6676))},6897:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(w){return D[w]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(C(6676))},1585:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(C(6676))},2097:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},I=function(ee){return 0===ee?0:1===ee?1:2===ee?2:ee%100>=3&&ee%100<=10?3:ee%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},w=function(ee){return function(re,ue,se,te){var oe=I(re),ce=S[ee][I(re)];return 2===oe&&(ce=ce[ue?0:1]),ce.replace(/%d/i,re)}},n=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:n,monthsShort:n,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(ee){return"\u0645"===ee},meridiem:function(ee,re,ue){return ee<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:w("s"),ss:w("s"),m:w("m"),mm:w("m"),h:w("h"),hh:w("h"),d:w("d"),dd:w("d"),M:w("M"),MM:w("M"),y:w("y"),yy:w("y")},preparse:function(ee){return ee.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(re){return D[re]}).replace(/\u060c/g,",")},postformat:function(ee){return ee.replace(/\d/g,function(re){return l[re]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},5611:function(ft,Ie,C){!function(e){"use strict";var l={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(I){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(I)},meridiem:function(I,S,w){return I<4?"gec\u0259":I<12?"s\u0259h\u0259r":I<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(I){if(0===I)return I+"-\u0131nc\u0131";var S=I%10;return I+(l[S]||l[I%100-S]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},2459:function(ft,Ie,C){!function(e){"use strict";function D(S,w,n){return"m"===n?w?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?w?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function l(S,w){var n=S.split("_");return w%10==1&&w%100!=11?n[0]:w%10>=2&&w%10<=4&&(w%100<10||w%100>=20)?n[1]:n[2]}({ss:w?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:w?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:w?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n],+S)}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:D,mm:D,h:D,hh:D,d:"\u0434\u0437\u0435\u043d\u044c",dd:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,w,n){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,w){switch(w){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(C(6676))},1825:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var I=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===I?D+"-\u0432\u0438":2===I?D+"-\u0440\u0438":7===I||8===I?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(C(6676))},5918:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(C(6676))},9683:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===w?S<4?S:S+12:"\u09ad\u09cb\u09b0"===w||"\u09b8\u0995\u09be\u09b2"===w?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===w?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===w||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(C(6676))},4065:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===w&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===w&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===w?S+12:S},meridiem:function(S,w,n){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(C(6676))},1034:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},D={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===w&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===w&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===w?S+12:S},meridiem:function(S,w,n){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(C(6676))},7671:function(ft,Ie,C){!function(e){"use strict";function l(ce,_e,Re){return ce+" "+function S(ce,_e){return 2===_e?function w(ce){var _e={m:"v",b:"v",d:"z"};return void 0===_e[ce.charAt(0)]?ce:_e[ce.charAt(0)]+ce.substring(1)}(ce):ce}({mm:"munutenn",MM:"miz",dd:"devezh"}[Re],ce)}function I(ce){return ce>9?I(ce%10):ce}var n=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Z=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,te=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:te,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:te,monthsRegex:Z,monthsShortRegex:Z,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:l,h:"un eur",hh:"%d eur",d:"un devezh",dd:l,M:"ur miz",MM:l,y:"ur bloaz",yy:function D(ce){switch(I(ce)){case 1:case 3:case 4:case 5:case 9:return ce+" bloaz";default:return ce+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ce){return ce+(1===ce?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ce){return"g.m."===ce},meridiem:function(ce,_e,Re){return ce<12?"a.m.":"g.m."}})}(C(6676))},8153:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var n=I+" ";switch(w){case"ss":return n+(1===I?"sekunda":2===I||3===I||4===I?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return n+(1===I?"minuta":2===I||3===I||4===I?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return n+(1===I?"sat":2===I||3===I||4===I?"sata":"sati");case"dd":return n+(1===I?"dan":"dana");case"MM":return n+(1===I?"mjesec":2===I||3===I||4===I?"mjeseca":"mjeseci");case"yy":return n+(1===I?"godina":2===I||3===I||4===I?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:l,m:l,mm:l,h:l,hh:l,d:"dan",dd:l,M:"mjesec",MM:l,y:"godinu",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},4287:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,I){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===I||"W"===I)&&(S="a"),D+S},week:{dow:1,doy:4}})}(C(6676))},2616:function(ft,Ie,C){!function(e){"use strict";var l={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},D="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),I=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function w(ee){return ee>1&&ee<5&&1!=~~(ee/10)}function n(ee,re,ue,se){var te=ee+" ";switch(ue){case"s":return re||se?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return re||se?te+(w(ee)?"sekundy":"sekund"):te+"sekundami";case"m":return re?"minuta":se?"minutu":"minutou";case"mm":return re||se?te+(w(ee)?"minuty":"minut"):te+"minutami";case"h":return re?"hodina":se?"hodinu":"hodinou";case"hh":return re||se?te+(w(ee)?"hodiny":"hodin"):te+"hodinami";case"d":return re||se?"den":"dnem";case"dd":return re||se?te+(w(ee)?"dny":"dn\xed"):te+"dny";case"M":return re||se?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return re||se?te+(w(ee)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):te+"m\u011bs\xedci";case"y":return re||se?"rok":"rokem";case"yy":return re||se?te+(w(ee)?"roky":"let"):te+"lety"}}e.defineLocale("cs",{months:l,monthsShort:D,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7049:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(D){return D+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(D)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(D)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(C(6676))},9172:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(D){var S="";return D>20?S=40===D||50===D||60===D||80===D||100===D?"fed":"ain":D>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][D]),D+S},week:{dow:1,doy:4}})}(C(6676))},605:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},3395:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9835:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4013:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4570:function(ft,Ie,C){!function(e){"use strict";var l=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],D=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,w,n){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(C(6676))},1859:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(I,S){return I?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[I.month()]:this._monthsNominativeEl[I.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(I,S,w){return I>11?w?"\u03bc\u03bc":"\u039c\u039c":w?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(I){return"\u03bc"===(I+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(I,S){var w=this._calendarEl[I],n=S&&S.hours();return function l(I){return typeof Function<"u"&&I instanceof Function||"[object Function]"===Object.prototype.toString.call(I)}(w)&&(w=w.apply(S)),w.replace("{}",n%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(C(6676))},5785:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:0,doy:4}})}(C(6676))},3792:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")}})}(C(6676))},7651:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},1929:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},9818:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")}})}(C(6676))},6612:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:0,doy:6}})}(C(6676))},4900:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},2721:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6570:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(D){return"p"===D.charAt(0).toLowerCase()},meridiem:function(D,I,S){return D>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(C(6676))},1780:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},3468:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(C(6676))},4938:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(C(6676))},1148:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(C(6676))},1453:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[I+"sekundi",I+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[I+" minuti",I+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[I+" tunni",I+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[I+" kuu",I+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[I+" aasta",I+" aastat"]};return S?Z[w][2]?Z[w][2]:Z[w][1]:n?Z[w][0]:Z[w][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:"%d p\xe4eva",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4697:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},2900:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},D={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,w,n){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(w){return D[w]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(C(6676))},9775:function(ft,Ie,C){!function(e){"use strict";var l="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),D=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",l[7],l[8],l[9]];function I(n,Z,ee,re){var ue="";switch(ee){case"s":return re?"muutaman sekunnin":"muutama sekunti";case"ss":ue=re?"sekunnin":"sekuntia";break;case"m":return re?"minuutin":"minuutti";case"mm":ue=re?"minuutin":"minuuttia";break;case"h":return re?"tunnin":"tunti";case"hh":ue=re?"tunnin":"tuntia";break;case"d":return re?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":ue=re?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return re?"kuukauden":"kuukausi";case"MM":ue=re?"kuukauden":"kuukautta";break;case"y":return re?"vuoden":"vuosi";case"yy":ue=re?"vuoden":"vuotta"}return function S(n,Z){return n<10?Z?D[n]:l[n]:n}(n,re)+" "+ue}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:I,ss:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4282:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},4236:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2830:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,I){switch(I){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}}})}(C(6676))},1412:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,I){switch(I){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}},week:{dow:1,doy:4}})}(C(6676))},9361:function(ft,Ie,C){!function(e){"use strict";var I=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:I,monthsShortRegex:I,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(n,Z){switch(Z){case"D":return n+(1===n?"er":"");default:case"M":case"Q":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}},week:{dow:1,doy:4}})}(C(6676))},6984:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),D="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,w){return S?/-MMM-/.test(w)?D[S.month()]:l[S.month()]:l},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},3961:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Z){return Z+(1===Z?"d":Z%10==2?"na":"mh")},week:{dow:1,doy:4}})}(C(6676))},8849:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Z){return Z+(1===Z?"d":Z%10==2?"na":"mh")},week:{dow:1,doy:4}})}(C(6676))},4273:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(D){return 0===D.indexOf("un")?"n"+D:"en "+D},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},623:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[I+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",I+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[I+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",I+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[I+" \u0935\u0930\u093e\u0902\u0928\u0940",I+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[I+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",I+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[I+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",I+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[I+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",I+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return n?Z[w][0]:Z[w][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(I,S){return"D"===S?I+"\u0935\u0947\u0930":I},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(I,S){return 12===I&&(I=0),"\u0930\u093e\u0924\u0940"===S?I<4?I:I+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?I:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?I>12?I:I+12:"\u0938\u093e\u0902\u091c\u0947"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"\u0930\u093e\u0924\u0940":I<12?"\u0938\u0915\u093e\u0933\u0940\u0902":I<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":I<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(C(6676))},2696:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["thoddea sekondamni","thodde sekond"],ss:[I+" sekondamni",I+" sekond"],m:["eka mintan","ek minut"],mm:[I+" mintamni",I+" mintam"],h:["eka voran","ek vor"],hh:[I+" voramni",I+" voram"],d:["eka disan","ek dis"],dd:[I+" disamni",I+" dis"],M:["eka mhoinean","ek mhoino"],MM:[I+" mhoineamni",I+" mhoine"],y:["eka vorsan","ek voros"],yy:[I+" vorsamni",I+" vorsam"]};return n?Z[w][0]:Z[w][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(I,S){return"D"===S?I+"er":I},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(I,S){return 12===I&&(I=0),"rati"===S?I<4?I:I+12:"sokallim"===S?I:"donparam"===S?I>12?I:I+12:"sanje"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"rati":I<12?"sokallim":I<16?"donparam":I<20?"sanje":"rati"}})}(C(6676))},6928:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},D={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===w?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===w?S:"\u0aac\u0aaa\u0acb\u0ab0"===w?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(C(6676))},4804:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(D){return 2===D?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":D+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(D){return 2===D?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":D+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(D){return 2===D?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":D+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(D){return 2===D?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":D%10==0&&10!==D?D+" \u05e9\u05e0\u05d4":D+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(D){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(D)},meridiem:function(D,I,S){return D<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":D<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":D<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":D<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(C(6676))},3015:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},I=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:I,longMonthsParse:I,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(Z){return D[Z]})},postformat:function(n){return n.replace(/\d/g,function(Z){return l[Z]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(n,Z){return 12===n&&(n=0),"\u0930\u093e\u0924"===Z?n<4?n:n+12:"\u0938\u0941\u092c\u0939"===Z?n:"\u0926\u094b\u092a\u0939\u0930"===Z?n>=10?n:n+12:"\u0936\u093e\u092e"===Z?n+12:void 0},meridiem:function(n,Z,ee){return n<4?"\u0930\u093e\u0924":n<10?"\u0938\u0941\u092c\u0939":n<17?"\u0926\u094b\u092a\u0939\u0930":n<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(C(6676))},7134:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var n=I+" ";switch(w){case"ss":return n+(1===I?"sekunda":2===I||3===I||4===I?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return n+(1===I?"minuta":2===I||3===I||4===I?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return n+(1===I?"sat":2===I||3===I||4===I?"sata":"sati");case"dd":return n+(1===I?"dan":"dana");case"MM":return n+(1===I?"mjesec":2===I||3===I||4===I?"mjeseca":"mjeseci");case"yy":return n+(1===I?"godina":2===I||3===I||4===I?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:l,m:l,mm:l,h:l,hh:l,d:"dan",dd:l,M:"mjesec",MM:l,y:"godinu",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},670:function(ft,Ie,C){!function(e){"use strict";var l="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function D(w,n,Z,ee){var re=w;switch(Z){case"s":return ee||n?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return re+(ee||n)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(ee||n?" perc":" perce");case"mm":return re+(ee||n?" perc":" perce");case"h":return"egy"+(ee||n?" \xf3ra":" \xf3r\xe1ja");case"hh":return re+(ee||n?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(ee||n?" nap":" napja");case"dd":return re+(ee||n?" nap":" napja");case"M":return"egy"+(ee||n?" h\xf3nap":" h\xf3napja");case"MM":return re+(ee||n?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(ee||n?" \xe9v":" \xe9ve");case"yy":return re+(ee||n?" \xe9v":" \xe9ve")}return""}function I(w){return(w?"":"[m\xfalt] ")+"["+l[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(w){return"u"===w.charAt(1).toLowerCase()},meridiem:function(w,n,Z){return w<12?!0===Z?"de":"DE":!0===Z?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return I.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return I.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4523:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(D){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(D)},meridiem:function(D){return D<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":D<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":D<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(D,I){switch(I){case"DDD":case"w":case"W":case"DDDo":return 1===D?D+"-\u056b\u0576":D+"-\u0580\u0564";default:return D}},week:{dow:1,doy:7}})}(C(6676))},9233:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"siang"===I?D>=11?D:D+12:"sore"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"siang":D<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(C(6676))},4693:function(ft,Ie,C){!function(e){"use strict";function l(S){return S%100==11||S%10!=1}function D(S,w,n,Z){var ee=S+" ";switch(n){case"s":return w||Z?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return l(S)?ee+(w||Z?"sek\xfandur":"sek\xfandum"):ee+"sek\xfanda";case"m":return w?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return l(S)?ee+(w||Z?"m\xedn\xfatur":"m\xedn\xfatum"):w?ee+"m\xedn\xfata":ee+"m\xedn\xfatu";case"hh":return l(S)?ee+(w||Z?"klukkustundir":"klukkustundum"):ee+"klukkustund";case"d":return w?"dagur":Z?"dag":"degi";case"dd":return l(S)?w?ee+"dagar":ee+(Z?"daga":"d\xf6gum"):w?ee+"dagur":ee+(Z?"dag":"degi");case"M":return w?"m\xe1nu\xf0ur":Z?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return l(S)?w?ee+"m\xe1nu\xf0ir":ee+(Z?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):w?ee+"m\xe1nu\xf0ur":ee+(Z?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return w||Z?"\xe1r":"\xe1ri";case"yy":return l(S)?ee+(w||Z?"\xe1r":"\xe1rum"):ee+(w||Z?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:D,ss:D,m:D,mm:D,h:"klukkustund",hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},8118:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(D){return(/^[0-9].+$/.test(D)?"tra":"in")+" "+D},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},3936:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},6871:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(D,I){return"\u5143"===I[1]?1:parseInt(I[1]||D,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(D){return"\u5348\u5f8c"===D},meridiem:function(D,I,S){return D<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(D){return D.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(D){return this.week()!==D.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(D,I){switch(I){case"y":return 1===D?"\u5143\u5e74":D+"\u5e74";case"d":case"D":case"DDD":return D+"\u65e5";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(C(6676))},8710:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(D,I){return 12===D&&(D=0),"enjing"===I?D:"siyang"===I?D>=11?D:D+12:"sonten"===I||"ndalu"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"enjing":D<15?"siyang":D<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(C(6676))},7125:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(D){return D.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(I,S,w){return"\u10d8"===w?S+"\u10e8\u10d8":S+w+"\u10e8\u10d8"})},past:function(D){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(D)?D.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(D)?D.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):D},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(D){return 0===D?D:1===D?D+"-\u10da\u10d8":D<20||D<=100&&D%20==0||D%100==0?"\u10db\u10d4-"+D:D+"-\u10d4"},week:{dow:1,doy:7}})}(C(6676))},2461:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},7399:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},D={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,w,n){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},week:{dow:1,doy:4}})}(C(6676))},8720:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},D={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===w?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===w?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===w?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(C(6676))},5306:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\uc77c";case"M":return D+"\uc6d4";case"w":case"W":return D+"\uc8fc";default:return D}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(D){return"\uc624\ud6c4"===D},meridiem:function(D,I,S){return D<12?"\uc624\uc804":"\uc624\ud6c4"}})}(C(6676))},2995:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},I=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:I,monthsShort:I,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(w){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(w)},meridiem:function(w,n,Z){return w<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(w){return w.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(n){return D[n]}).replace(/\u060c/g,",")},postformat:function(w){return w.replace(/\d/g,function(n){return l[n]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},8779:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},2057:function(ft,Ie,C){!function(e){"use strict";function l(n,Z,ee,re){var ue={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return Z?ue[ee][0]:ue[ee][1]}function S(n){if(n=parseInt(n,10),isNaN(n))return!1;if(n<0)return!0;if(n<10)return 4<=n&&n<=7;if(n<100){var Z=n%10;return S(0===Z?n/10:Z)}if(n<1e4){for(;n>=10;)n/=10;return S(n)}return S(n/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function D(n){return S(n.substr(0,n.indexOf(" ")))?"a "+n:"an "+n},past:function I(n){return S(n.substr(0,n.indexOf(" ")))?"viru "+n:"virun "+n},s:"e puer Sekonnen",ss:"%d Sekonnen",m:l,mm:"%d Minutten",h:l,hh:"%d Stonnen",d:l,dd:"%d Deeg",M:l,MM:"%d M\xe9int",y:l,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7192:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(D){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===D},meridiem:function(D,I,S){return D<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(D){return"\u0e97\u0eb5\u0ec8"+D}})}(C(6676))},5430:function(ft,Ie,C){!function(e){"use strict";var l={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function I(ee,re,ue,se){return re?w(ue)[0]:se?w(ue)[1]:w(ue)[2]}function S(ee){return ee%10==0||ee>10&&ee<20}function w(ee){return l[ee].split("_")}function n(ee,re,ue,se){var te=ee+" ";return 1===ee?te+I(0,re,ue[0],se):re?te+(S(ee)?w(ue)[1]:w(ue)[0]):se?te+w(ue)[1]:te+(S(ee)?w(ue)[1]:w(ue)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function D(ee,re,ue,se){return re?"kelios sekund\u0117s":se?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:n,m:I,mm:n,h:I,hh:n,d:I,dd:n,M:I,MM:n,y:I,yy:n},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(ee){return ee+"-oji"},week:{dow:1,doy:4}})}(C(6676))},3363:function(ft,Ie,C){!function(e){"use strict";var l={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function D(Z,ee,re){return re?ee%10==1&&ee%100!=11?Z[2]:Z[3]:ee%10==1&&ee%100!=11?Z[0]:Z[1]}function I(Z,ee,re){return Z+" "+D(l[re],Z,ee)}function S(Z,ee,re){return D(l[re],Z,ee)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function w(Z,ee){return ee?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:I,m:S,mm:I,h:S,hh:I,d:S,dd:I,M:S,MM:I,y:S,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2939:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(I,S){return 1===I?S[0]:I>=2&&I<=4?S[1]:S[2]},translate:function(I,S,w){var n=l.words[w];return 1===w.length?S?n[0]:n[1]:I+" "+l.correctGrammaticalCase(I,n)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:"dan",dd:l.translate,M:"mjesec",MM:l.translate,y:"godinu",yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},8212:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},9718:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var I=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===I?D+"-\u0432\u0438":2===I?D+"-\u0440\u0438":7===I||8===I?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(C(6676))},561:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(D,I){return 12===D&&(D=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===I&&D>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===I||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===I?D+12:D},meridiem:function(D,I,S){return D<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":D<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":D<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":D<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(C(6676))},8929:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){switch(w){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return I+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return I+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return I+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return I+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return I+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return I+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return I}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(I){return"\u04ae\u0425"===I},meridiem:function(I,S,w){return I<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(I,S){switch(S){case"d":case"D":case"DDD":return I+" \u04e9\u0434\u04e9\u0440";default:return I}}})}(C(6676))},4880:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function I(w,n,Z,ee){var re="";if(n)switch(Z){case"s":re="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":re="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":re="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":re="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":re="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":re="%d \u0924\u093e\u0938";break;case"d":re="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":re="%d \u0926\u093f\u0935\u0938";break;case"M":re="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":re="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":re="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":re="%d \u0935\u0930\u094d\u0937\u0947"}else switch(Z){case"s":re="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":re="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":re="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":re="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":re="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":re="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":re="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":re="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":re="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":re="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":re="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":re="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return re.replace(/%d/i,w)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:I,ss:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},preparse:function(w){return w.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return D[n]})},postformat:function(w){return w.replace(/\d/g,function(n){return l[n]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(w,n){return 12===w&&(w=0),"\u092a\u0939\u093e\u091f\u0947"===n||"\u0938\u0915\u093e\u0933\u0940"===n?w:"\u0926\u0941\u092a\u093e\u0930\u0940"===n||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===n||"\u0930\u093e\u0924\u094d\u0930\u0940"===n?w>=12?w:w+12:void 0},meridiem:function(w,n,Z){return w>=0&&w<6?"\u092a\u0939\u093e\u091f\u0947":w<12?"\u0938\u0915\u093e\u0933\u0940":w<17?"\u0926\u0941\u092a\u093e\u0930\u0940":w<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(C(6676))},2074:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"tengahari"===I?D>=11?D:D+12:"petang"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(C(6676))},3193:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"tengahari"===I?D>=11?D:D+12:"petang"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(C(6676))},4082:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},2261:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},D={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},week:{dow:1,doy:4}})}(C(6676))},5273:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9874:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===w?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===w?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===w?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===w?S+12:void 0},meridiem:function(S,w,n){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(C(6676))},1484:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),I=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},1667:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),I=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},7262:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9679:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,I){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===I||"W"===I)&&(S="a"),D+S},week:{dow:1,doy:4}})}(C(6676))},6830:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},D={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===w?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===w?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===w?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(C(6676))},3616:function(ft,Ie,C){!function(e){"use strict";var l="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),D="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),I=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(Z){return Z%10<5&&Z%10>1&&~~(Z/10)%10!=1}function w(Z,ee,re){var ue=Z+" ";switch(re){case"ss":return ue+(S(Z)?"sekundy":"sekund");case"m":return ee?"minuta":"minut\u0119";case"mm":return ue+(S(Z)?"minuty":"minut");case"h":return ee?"godzina":"godzin\u0119";case"hh":return ue+(S(Z)?"godziny":"godzin");case"ww":return ue+(S(Z)?"tygodnie":"tygodni");case"MM":return ue+(S(Z)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return ue+(S(Z)?"lata":"lat")}}e.defineLocale("pl",{months:function(Z,ee){return Z?/D MMMM/.test(ee)?D[Z.month()]:l[Z.month()]:l},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:w,m:w,mm:w,h:w,hh:w,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:w,M:"miesi\u0105c",MM:w,y:"rok",yy:w},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2751:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(C(6676))},5138:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},7968:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var Z=" ";return(I%100>=20||I>=100&&I%100==0)&&(Z=" de "),I+Z+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[w]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:l,m:"un minut",mm:l,h:"o or\u0103",hh:l,d:"o zi",dd:l,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:l,M:"o lun\u0103",MM:l,y:"un an",yy:l},week:{dow:1,doy:7}})}(C(6676))},1828:function(ft,Ie,C){!function(e){"use strict";function D(w,n,Z){return"m"===Z?n?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":w+" "+function l(w,n){var Z=w.split("_");return n%10==1&&n%100!=11?Z[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?Z[1]:Z[2]}({ss:n?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:n?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[Z],+w)}var I=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:I,longMonthsParse:I,shortMonthsParse:I,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(w){if(w.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(w){if(w.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0447\u0430\u0441",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(w){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(w)},meridiem:function(w,n,Z){return w<4?"\u043d\u043e\u0447\u0438":w<12?"\u0443\u0442\u0440\u0430":w<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(w,n){switch(n){case"M":case"d":case"DDD":return w+"-\u0439";case"D":return w+"-\u0433\u043e";case"w":case"W":return w+"-\u044f";default:return w}},week:{dow:1,doy:4}})}(C(6676))},2188:function(ft,Ie,C){!function(e){"use strict";var l=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],D=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(C(6676))},6562:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7172:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(D){return D+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(D){return"\u0db4.\u0dc0."===D||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===D},meridiem:function(D,I,S){return D>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(C(6676))},9966:function(ft,Ie,C){!function(e){"use strict";var l="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),D="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function I(n){return n>1&&n<5}function S(n,Z,ee,re){var ue=n+" ";switch(ee){case"s":return Z||re?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return Z||re?ue+(I(n)?"sekundy":"sek\xfand"):ue+"sekundami";case"m":return Z?"min\xfata":re?"min\xfatu":"min\xfatou";case"mm":return Z||re?ue+(I(n)?"min\xfaty":"min\xfat"):ue+"min\xfatami";case"h":return Z?"hodina":re?"hodinu":"hodinou";case"hh":return Z||re?ue+(I(n)?"hodiny":"hod\xedn"):ue+"hodinami";case"d":return Z||re?"de\u0148":"d\u0148om";case"dd":return Z||re?ue+(I(n)?"dni":"dn\xed"):ue+"d\u0148ami";case"M":return Z||re?"mesiac":"mesiacom";case"MM":return Z||re?ue+(I(n)?"mesiace":"mesiacov"):ue+"mesiacmi";case"y":return Z||re?"rok":"rokom";case"yy":return Z||re?ue+(I(n)?"roky":"rokov"):ue+"rokmi"}}e.defineLocale("sk",{months:l,monthsShort:D,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7520:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z=I+" ";switch(w){case"s":return S||n?"nekaj sekund":"nekaj sekundami";case"ss":return Z+(1===I?S?"sekundo":"sekundi":2===I?S||n?"sekundi":"sekundah":I<5?S||n?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return Z+(1===I?S?"minuta":"minuto":2===I?S||n?"minuti":"minutama":I<5?S||n?"minute":"minutami":S||n?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return Z+(1===I?S?"ura":"uro":2===I?S||n?"uri":"urama":I<5?S||n?"ure":"urami":S||n?"ur":"urami");case"d":return S||n?"en dan":"enim dnem";case"dd":return Z+(1===I?S||n?"dan":"dnem":2===I?S||n?"dni":"dnevoma":S||n?"dni":"dnevi");case"M":return S||n?"en mesec":"enim mesecem";case"MM":return Z+(1===I?S||n?"mesec":"mesecem":2===I?S||n?"meseca":"mesecema":I<5?S||n?"mesece":"meseci":S||n?"mesecev":"meseci");case"y":return S||n?"eno leto":"enim letom";case"yy":return Z+(1===I?S||n?"leto":"letom":2===I?S||n?"leti":"letoma":I<5?S||n?"leta":"leti":S||n?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},5291:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(D){return"M"===D.charAt(0)},meridiem:function(D,I,S){return D<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7603:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(I,S){return I%10>=1&&I%10<=4&&(I%100<10||I%100>=20)?I%10==1?S[0]:S[1]:S[2]},translate:function(I,S,w,n){var ee,Z=l.words[w];return 1===w.length?"y"===w&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":n||S?Z[0]:Z[1]:(ee=l.correctGrammaticalCase(I,Z),"yy"===w&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===ee?I+" \u0433\u043e\u0434\u0438\u043d\u0430":I+" "+ee)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:l.translate,dd:l.translate,M:l.translate,MM:l.translate,y:l.translate,yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},450:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(I,S){return I%10>=1&&I%10<=4&&(I%100<10||I%100>=20)?I%10==1?S[0]:S[1]:S[2]},translate:function(I,S,w,n){var ee,Z=l.words[w];return 1===w.length?"y"===w&&S?"jedna godina":n||S?Z[0]:Z[1]:(ee=l.correctGrammaticalCase(I,Z),"yy"===w&&S&&"godinu"===ee?I+" godina":I+" "+ee)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:l.translate,dd:l.translate,M:l.translate,MM:l.translate,y:l.translate,yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},383:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(D,I,S){return D<11?"ekuseni":D<15?"emini":D<19?"entsambama":"ebusuku"},meridiemHour:function(D,I){return 12===D&&(D=0),"ekuseni"===I?D:"emini"===I?D>=11?D:D+12:"entsambama"===I||"ebusuku"===I?0===D?0:D+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(C(6676))},7221:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?":e":1===I||2===I?":a":":e")},week:{dow:1,doy:4}})}(C(6676))},1743:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(C(6676))},6351:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},D={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,w,n){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,w){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===w?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===w||"\u0b95\u0bbe\u0bb2\u0bc8"===w||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===w&&S>=10?S:S+12},week:{dow:0,doy:6}})}(C(6676))},9620:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===I?D<4?D:D+12:"\u0c09\u0c26\u0c2f\u0c02"===I?D:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===I?D>=10?D:D+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===I?D+12:void 0},meridiem:function(D,I,S){return D<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":D<10?"\u0c09\u0c26\u0c2f\u0c02":D<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":D<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(C(6676))},6278:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6987:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(I,S){return 12===I&&(I=0),"\u0448\u0430\u0431"===S?I<4?I:I+12:"\u0441\u0443\u0431\u04b3"===S?I:"\u0440\u04ef\u0437"===S?I>=11?I:I+12:"\u0431\u0435\u0433\u043e\u04b3"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"\u0448\u0430\u0431":I<11?"\u0441\u0443\u0431\u04b3":I<16?"\u0440\u04ef\u0437":I<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},9325:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(D){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===D},meridiem:function(D,I,S){return D<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(C(6676))},3485:function(ft,Ie,C){!function(e){"use strict";var l={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(I,S){switch(S){case"d":case"D":case"Do":case"DD":return I;default:if(0===I)return I+"'unjy";var w=I%10;return I+(l[w]||l[I%100-w]||l[I>=100?100:null])}},week:{dow:1,doy:7}})}(C(6676))},8148:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},9616:function(ft,Ie,C){!function(e){"use strict";var l="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(Z,ee,re,ue){var se=function w(Z){var ee=Math.floor(Z%1e3/100),re=Math.floor(Z%100/10),ue=Z%10,se="";return ee>0&&(se+=l[ee]+"vatlh"),re>0&&(se+=(""!==se?" ":"")+l[re]+"maH"),ue>0&&(se+=(""!==se?" ":"")+l[ue]),""===se?"pagh":se}(Z);switch(re){case"ss":return se+" lup";case"mm":return se+" tup";case"hh":return se+" rep";case"dd":return se+" jaj";case"MM":return se+" jar";case"yy":return se+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function D(Z){var ee=Z;return-1!==Z.indexOf("jaj")?ee.slice(0,-3)+"leS":-1!==Z.indexOf("jar")?ee.slice(0,-3)+"waQ":-1!==Z.indexOf("DIS")?ee.slice(0,-3)+"nem":ee+" pIq"},past:function I(Z){var ee=Z;return-1!==Z.indexOf("jaj")?ee.slice(0,-3)+"Hu\u2019":-1!==Z.indexOf("jar")?ee.slice(0,-3)+"wen":-1!==Z.indexOf("DIS")?ee.slice(0,-3)+"ben":ee+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4040:function(ft,Ie,C){!function(e){"use strict";var l={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(I,S,w){return I<12?w?"\xf6\xf6":"\xd6\xd6":w?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(I){return"\xf6s"===I||"\xd6S"===I},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(I,S){switch(S){case"d":case"D":case"Do":case"DD":return I;default:if(0===I)return I+"'\u0131nc\u0131";var w=I%10;return I+(l[w]||l[I%100-w]||l[I>=100?100:null])}},week:{dow:1,doy:7}})}(C(6676))},594:function(ft,Ie,C){!function(e){"use strict";function D(I,S,w,n){var Z={s:["viensas secunds","'iensas secunds"],ss:[I+" secunds",I+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[I+" m\xeduts",I+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[I+" \xfeoras",I+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[I+" ziuas",I+" ziuas"],M:["'n mes","'iens mes"],MM:[I+" mesen",I+" mesen"],y:["'n ar","'iens ar"],yy:[I+" ars",I+" ars"]};return n||S?Z[w][0]:Z[w][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(I){return"d'o"===I.toLowerCase()},meridiem:function(I,S,w){return I>11?w?"d'o":"D'O":w?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},3226:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(C(6676))},673:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(C(6676))},9580:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===I||"\u0633\u06d5\u06be\u06d5\u0631"===I||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===I?D:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===I||"\u0643\u06d5\u0686"===I?D+12:D>=11?D:D+12},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":w<900?"\u0633\u06d5\u06be\u06d5\u0631":w<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":w<1230?"\u0686\u06c8\u0634":w<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return D+"-\u06be\u06d5\u067e\u062a\u06d5";default:return D}},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(C(6676))},7270:function(ft,Ie,C){!function(e){"use strict";function D(n,Z,ee){return"m"===ee?Z?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===ee?Z?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":n+" "+function l(n,Z){var ee=n.split("_");return Z%10==1&&Z%100!=11?ee[0]:Z%10>=2&&Z%10<=4&&(Z%100<10||Z%100>=20)?ee[1]:ee[2]}({ss:Z?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:Z?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:Z?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[ee],+n)}function S(n){return function(){return n+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function I(n,Z){var ee={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===n?ee.nominative.slice(1,7).concat(ee.nominative.slice(0,1)):n?ee[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(Z)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(Z)?"genitive":"nominative"][n.day()]:ee.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:D,y:"\u0440\u0456\u043a",yy:D},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(n)},meridiem:function(n,Z,ee){return n<4?"\u043d\u043e\u0447\u0456":n<12?"\u0440\u0430\u043d\u043a\u0443":n<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(n,Z){switch(Z){case"M":case"d":case"DDD":case"w":case"W":return n+"-\u0439";case"D":return n+"-\u0433\u043e";default:return n}},week:{dow:1,doy:7}})}(C(6676))},1656:function(ft,Ie,C){!function(e){"use strict";var l=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],D=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(C(6676))},8744:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(C(6676))},8364:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(C(6676))},5049:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(D){return/^ch$/i.test(D)},meridiem:function(D,I,S){return D<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},5106:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6199:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(C(6676))},7280:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:D>=11?D:D+12},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(D){return D.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(D){return this.week()!==D.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u5468";default:return D}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(C(6676))},6860:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1200?"\u4e0a\u5348":1200===w?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},2335:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},482:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},6676:function(ft,Ie,C){(ft=C.nmd(ft)).exports=function(){"use strict";var e,_e;function l(){return e.apply(null,arguments)}function I(k){return k instanceof Array||"[object Array]"===Object.prototype.toString.call(k)}function S(k){return null!=k&&"[object Object]"===Object.prototype.toString.call(k)}function w(k,j){return Object.prototype.hasOwnProperty.call(k,j)}function n(k){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(k).length;var j;for(j in k)if(w(k,j))return!1;return!0}function Z(k){return void 0===k}function ee(k){return"number"==typeof k||"[object Number]"===Object.prototype.toString.call(k)}function re(k){return k instanceof Date||"[object Date]"===Object.prototype.toString.call(k)}function ue(k,j){var ke,pe=[],nt=k.length;for(ke=0;ke>>0;for(ke=0;ke0)for(pe=0;pe=0?pe?"+":"":"-")+Math.pow(10,Math.max(0,j-ke.length)).toString().substr(1)+ke}var dt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,at=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Be={},Ee={};function $e(k,j,pe,ke){var nt=ke;"string"==typeof ke&&(nt=function(){return this[ke]()}),k&&(Ee[k]=nt),j&&(Ee[j[0]]=function(){return Rn(nt.apply(this,arguments),j[1],j[2])}),pe&&(Ee[pe]=function(){return this.localeData().ordinal(nt.apply(this,arguments),k)})}function me(k){return k.match(/\[[\s\S]/)?k.replace(/^\[|\]$/g,""):k.replace(/\\/g,"")}function he(k,j){return k.isValid()?(j=Ze(j,k.localeData()),Be[j]=Be[j]||function tt(k){var pe,ke,j=k.match(dt);for(pe=0,ke=j.length;pe=0&&at.test(k);)k=k.replace(at,ke),at.lastIndex=0,pe-=1;return k}var Wn={};function Ve(k,j){var pe=k.toLowerCase();Wn[pe]=Wn[pe+"s"]=Wn[j]=k}function ct(k){return"string"==typeof k?Wn[k]||Wn[k.toLowerCase()]:void 0}function Ct(k){var pe,ke,j={};for(ke in k)w(k,ke)&&(pe=ct(ke))&&(j[pe]=k[ke]);return j}var Ce={};function J(k,j){Ce[k]=j}function Oe(k){return k%4==0&&k%100!=0||k%400==0}function ot(k){return k<0?Math.ceil(k)||0:Math.floor(k)}function Se(k){var j=+k,pe=0;return 0!==j&&isFinite(j)&&(pe=ot(j)),pe}function Ft(k,j){return function(pe){return null!=pe?(Bt(this,k,pe),l.updateOffset(this,j),this):lt(this,k)}}function lt(k,j){return k.isValid()?k._d["get"+(k._isUTC?"UTC":"")+j]():NaN}function Bt(k,j,pe){k.isValid()&&!isNaN(pe)&&("FullYear"===j&&Oe(k.year())&&1===k.month()&&29===k.date()?(pe=Se(pe),k._d["set"+(k._isUTC?"UTC":"")+j](pe,k.month(),Kr(pe,k.month()))):k._d["set"+(k._isUTC?"UTC":"")+j](pe))}var Te,gn=/\d/,An=/\d\d/,jn=/\d{3}/,ai=/\d{4}/,di=/[+-]?\d{6}/,oi=/\d\d?/,Jn=/\d\d\d\d?/,qt=/\d\d\d\d\d\d?/,_t=/\d{1,3}/,G=/\d{1,4}/,U=/[+-]?\d{1,6}/,ve=/\d+/,Pe=/[+-]?\d+/,ut=/Z|[+-]\d\d:?\d\d/gi,We=/Z|[+-]\d\d(?::?\d\d)?/gi,be=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function He(k,j,pe){Te[k]=Jt(j)?j:function(ke,nt){return ke&&pe?pe:j}}function Wt(k,j){return w(Te,k)?Te[k](j._strict,j._locale):new RegExp(function Pn(k){return wt(k.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(j,pe,ke,nt,Kt){return pe||ke||nt||Kt}))}(k))}function wt(k){return k.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Te={};var Yt={};function fe(k,j){var pe,nt,ke=j;for("string"==typeof k&&(k=[k]),ee(j)&&(ke=function(Kt,xn){xn[j]=Se(Kt)}),nt=k.length,pe=0;pe68?1900:2e3)};var Gs=Ft("FullYear",!0);function xl(k,j,pe,ke,nt,Kt,xn){var Mi;return k<100&&k>=0?(Mi=new Date(k+400,j,pe,ke,nt,Kt,xn),isFinite(Mi.getFullYear())&&Mi.setFullYear(k)):Mi=new Date(k,j,pe,ke,nt,Kt,xn),Mi}function So(k){var j,pe;return k<100&&k>=0?((pe=Array.prototype.slice.call(arguments))[0]=k+400,j=new Date(Date.UTC.apply(null,pe)),isFinite(j.getUTCFullYear())&&j.setUTCFullYear(k)):j=new Date(Date.UTC.apply(null,arguments)),j}function Ws(k,j,pe){var ke=7+j-pe;return-(7+So(k,0,ke).getUTCDay()-j)%7+ke-1}function Ds(k,j,pe,ke,nt){var Oi,Hr,Mi=1+7*(j-1)+(7+pe-ke)%7+Ws(k,ke,nt);return Mi<=0?Hr=yr(Oi=k-1)+Mi:Mi>yr(k)?(Oi=k+1,Hr=Mi-yr(k)):(Oi=k,Hr=Mi),{year:Oi,dayOfYear:Hr}}function $s(k,j,pe){var Kt,xn,ke=Ws(k.year(),j,pe),nt=Math.floor((k.dayOfYear()-ke-1)/7)+1;return nt<1?Kt=nt+Uo(xn=k.year()-1,j,pe):nt>Uo(k.year(),j,pe)?(Kt=nt-Uo(k.year(),j,pe),xn=k.year()+1):(xn=k.year(),Kt=nt),{week:Kt,year:xn}}function Uo(k,j,pe){var ke=Ws(k,j,pe),nt=Ws(k+1,j,pe);return(yr(k)-ke+nt)/7}$e("w",["ww",2],"wo","week"),$e("W",["WW",2],"Wo","isoWeek"),Ve("week","w"),Ve("isoWeek","W"),J("week",5),J("isoWeek",5),He("w",oi),He("ww",oi,An),He("W",oi),He("WW",oi,An),Mt(["w","ww","W","WW"],function(k,j,pe,ke){j[ke.substr(0,1)]=Se(k)});function Ks(k,j){return k.slice(j,7).concat(k.slice(0,j))}$e("d",0,"do","day"),$e("dd",0,0,function(k){return this.localeData().weekdaysMin(this,k)}),$e("ddd",0,0,function(k){return this.localeData().weekdaysShort(this,k)}),$e("dddd",0,0,function(k){return this.localeData().weekdays(this,k)}),$e("e",0,0,"weekday"),$e("E",0,0,"isoWeekday"),Ve("day","d"),Ve("weekday","e"),Ve("isoWeekday","E"),J("day",11),J("weekday",11),J("isoWeekday",11),He("d",oi),He("e",oi),He("E",oi),He("dd",function(k,j){return j.weekdaysMinRegex(k)}),He("ddd",function(k,j){return j.weekdaysShortRegex(k)}),He("dddd",function(k,j){return j.weekdaysRegex(k)}),Mt(["dd","ddd","dddd"],function(k,j,pe,ke){var nt=pe._locale.weekdaysParse(k,ke,pe._strict);null!=nt?j.d=nt:ce(pe).invalidWeekday=k}),Mt(["d","e","E"],function(k,j,pe,ke){j[ke]=Se(k)});var Aa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Li="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yr=be,dr=be,Ha=be;function Es(k,j,pe){var ke,nt,Kt,xn=k.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ke=0;ke<7;++ke)Kt=te([2e3,1]).day(ke),this._minWeekdaysParse[ke]=this.weekdaysMin(Kt,"").toLocaleLowerCase(),this._shortWeekdaysParse[ke]=this.weekdaysShort(Kt,"").toLocaleLowerCase(),this._weekdaysParse[ke]=this.weekdays(Kt,"").toLocaleLowerCase();return pe?"dddd"===j?-1!==(nt=ki.call(this._weekdaysParse,xn))?nt:null:"ddd"===j?-1!==(nt=ki.call(this._shortWeekdaysParse,xn))?nt:null:-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:"dddd"===j?-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._shortWeekdaysParse,xn))||-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:"ddd"===j?-1!==(nt=ki.call(this._shortWeekdaysParse,xn))||-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:-1!==(nt=ki.call(this._minWeekdaysParse,xn))||-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._shortWeekdaysParse,xn))?nt:null}function jo(){function k(ws,tl){return tl.length-ws.length}var Kt,xn,Mi,Oi,Hr,j=[],pe=[],ke=[],nt=[];for(Kt=0;Kt<7;Kt++)xn=te([2e3,1]).day(Kt),Mi=wt(this.weekdaysMin(xn,"")),Oi=wt(this.weekdaysShort(xn,"")),Hr=wt(this.weekdays(xn,"")),j.push(Mi),pe.push(Oi),ke.push(Hr),nt.push(Mi),nt.push(Oi),nt.push(Hr);j.sort(k),pe.sort(k),ke.sort(k),nt.sort(k),this._weekdaysRegex=new RegExp("^("+nt.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ke.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+pe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+j.join("|")+")","i")}function no(){return this.hours()%12||12}function nr(k,j){$e(k,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),j)})}function ps(k,j){return j._meridiemParse}$e("H",["HH",2],0,"hour"),$e("h",["hh",2],0,no),$e("k",["kk",2],0,function Ao(){return this.hours()||24}),$e("hmm",0,0,function(){return""+no.apply(this)+Rn(this.minutes(),2)}),$e("hmmss",0,0,function(){return""+no.apply(this)+Rn(this.minutes(),2)+Rn(this.seconds(),2)}),$e("Hmm",0,0,function(){return""+this.hours()+Rn(this.minutes(),2)}),$e("Hmmss",0,0,function(){return""+this.hours()+Rn(this.minutes(),2)+Rn(this.seconds(),2)}),nr("a",!0),nr("A",!1),Ve("hour","h"),J("hour",13),He("a",ps),He("A",ps),He("H",oi),He("h",oi),He("k",oi),He("HH",oi,An),He("hh",oi,An),He("kk",oi,An),He("hmm",Jn),He("hmmss",qt),He("Hmm",Jn),He("Hmmss",qt),fe(["H","HH"],cn),fe(["k","kk"],function(k,j,pe){var ke=Se(k);j[cn]=24===ke?0:ke}),fe(["a","A"],function(k,j,pe){pe._isPm=pe._locale.isPM(k),pe._meridiem=k}),fe(["h","hh"],function(k,j,pe){j[cn]=Se(k),ce(pe).bigHour=!0}),fe("hmm",function(k,j,pe){var ke=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke)),ce(pe).bigHour=!0}),fe("hmmss",function(k,j,pe){var ke=k.length-4,nt=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke,2)),j[En]=Se(k.substr(nt)),ce(pe).bigHour=!0}),fe("Hmm",function(k,j,pe){var ke=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke))}),fe("Hmmss",function(k,j,pe){var ke=k.length-4,nt=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke,2)),j[En]=Se(k.substr(nt))});var qs=Ft("Hours",!0);var Ko,Qs={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:vr,monthsShort:Bi,week:{dow:0,doy:6},weekdays:Aa,weekdaysMin:Li,weekdaysShort:qi,meridiemParse:/[ap]\.?m?\.?/i},wi={},Oo={};function or(k,j){var pe,ke=Math.min(k.length,j.length);for(pe=0;pe0;){if(nt=jr(Kt.slice(0,pe).join("-")))return nt;if(ke&&ke.length>=pe&&or(Kt,ke)>=pe-1)break;pe--}j++}return Ko}(k)}function Ys(k){var j,pe=k._a;return pe&&-2===ce(k).overflow&&(j=pe[st]<0||pe[st]>11?st:pe[It]<1||pe[It]>Kr(pe[ht],pe[st])?It:pe[cn]<0||pe[cn]>24||24===pe[cn]&&(0!==pe[_n]||0!==pe[En]||0!==pe[On])?cn:pe[_n]<0||pe[_n]>59?_n:pe[En]<0||pe[En]>59?En:pe[On]<0||pe[On]>999?On:-1,ce(k)._overflowDayOfYear&&(jIt)&&(j=It),ce(k)._overflowWeeks&&-1===j&&(j=ni),ce(k)._overflowWeekday&&-1===j&&(j=Vn),ce(k).overflow=j),k}var fo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ms=/Z|[+-]\d\d(?::?\d\d)?/,Co=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Br=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ea=/^\/?Date\((-?\d+)/i,po=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,io={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qo(k){var j,pe,Kt,xn,Mi,Oi,ke=k._i,nt=fo.exec(ke)||Zr.exec(ke),Hr=Co.length,ws=Br.length;if(nt){for(ce(k).iso=!0,j=0,pe=Hr;j7)&&(Oi=!0)):(Kt=k._locale._week.dow,xn=k._locale._week.doy,Hr=$s(Lr(),Kt,xn),pe=na(j.gg,k._a[ht],Hr.year),ke=na(j.w,Hr.week),null!=j.d?((nt=j.d)<0||nt>6)&&(Oi=!0):null!=j.e?(nt=j.e+Kt,(j.e<0||j.e>6)&&(Oi=!0)):nt=Kt),ke<1||ke>Uo(pe,Kt,xn)?ce(k)._overflowWeeks=!0:null!=Oi?ce(k)._overflowWeekday=!0:(Mi=Ds(pe,ke,nt,Kt,xn),k._a[ht]=Mi.year,k._dayOfYear=Mi.dayOfYear)}(k),null!=k._dayOfYear&&(xn=na(k._a[ht],nt[ht]),(k._dayOfYear>yr(xn)||0===k._dayOfYear)&&(ce(k)._overflowDayOfYear=!0),pe=So(xn,0,k._dayOfYear),k._a[st]=pe.getUTCMonth(),k._a[It]=pe.getUTCDate()),j=0;j<3&&null==k._a[j];++j)k._a[j]=ke[j]=nt[j];for(;j<7;j++)k._a[j]=ke[j]=null==k._a[j]?2===j?1:0:k._a[j];24===k._a[cn]&&0===k._a[_n]&&0===k._a[En]&&0===k._a[On]&&(k._nextDay=!0,k._a[cn]=0),k._d=(k._useUTC?So:xl).apply(null,ke),Kt=k._useUTC?k._d.getUTCDay():k._d.getDay(),null!=k._tzm&&k._d.setUTCMinutes(k._d.getUTCMinutes()-k._tzm),k._nextDay&&(k._a[cn]=24),k._w&&typeof k._w.d<"u"&&k._w.d!==Kt&&(ce(k).weekdayMismatch=!0)}}function Qe(k){if(k._f!==l.ISO_8601)if(k._f!==l.RFC_2822){k._a=[],ce(k).empty=!0;var pe,ke,nt,Kt,xn,Hr,ws,j=""+k._i,Mi=j.length,Oi=0;for(ws=(nt=Ze(k._f,k._locale).match(dt)||[]).length,pe=0;pe0&&ce(k).unusedInput.push(xn),j=j.slice(j.indexOf(ke)+ke.length),Oi+=ke.length),Ee[Kt]?(ke?ce(k).empty=!1:ce(k).unusedTokens.push(Kt),Vt(Kt,ke,k)):k._strict&&!ke&&ce(k).unusedTokens.push(Kt);ce(k).charsLeftOver=Mi-Oi,j.length>0&&ce(k).unusedInput.push(j),k._a[cn]<=12&&!0===ce(k).bigHour&&k._a[cn]>0&&(ce(k).bigHour=void 0),ce(k).parsedDateParts=k._a.slice(0),ce(k).meridiem=k._meridiem,k._a[cn]=function Ht(k,j,pe){var ke;return null==pe?j:null!=k.meridiemHour?k.meridiemHour(j,pe):(null!=k.isPM&&((ke=k.isPM(pe))&&j<12&&(j+=12),!ke&&12===j&&(j=0)),j)}(k._locale,k._a[cn],k._meridiem),null!==(Hr=ce(k).era)&&(k._a[ht]=k._locale.erasConvertYear(Hr,k._a[ht])),Fe(k),Ys(k)}else Ia(k);else qo(k)}function Cl(k){var j=k._i,pe=k._f;return k._locale=k._locale||Jo(k._l),null===j||void 0===pe&&""===j?mt({nullInput:!0}):("string"==typeof j&&(k._i=j=k._locale.preparse(j)),xt(j)?new Tt(Ys(j)):(re(j)?k._d=j:I(pe)?function Qn(k){var j,pe,ke,nt,Kt,xn,Mi=!1,Oi=k._f.length;if(0===Oi)return ce(k).invalidFormat=!0,void(k._d=new Date(NaN));for(nt=0;ntthis?this:k:mt()});function Qo(k,j){var pe,ke;if(1===j.length&&I(j[0])&&(j=j[0]),!j.length)return Lr();for(pe=j[0],ke=1;ke=0?new Date(k+400,j,pe)-dl:new Date(k,j,pe).valueOf()}function ul(k,j,pe){return k<100&&k>=0?Date.UTC(k+400,j,pe)-dl:Date.UTC(k,j,pe)}function Fi(k,j){return j.erasAbbrRegex(k)}function so(){var nt,Kt,k=[],j=[],pe=[],ke=[],xn=this.eras();for(nt=0,Kt=xn.length;nt(Kt=Uo(k,ke,nt))&&(j=Kt),ka.call(this,k,j,pe,ke,nt))}function ka(k,j,pe,ke,nt){var Kt=Ds(k,j,pe,ke,nt),xn=So(Kt.year,0,Kt.dayOfYear);return this.year(xn.getUTCFullYear()),this.month(xn.getUTCMonth()),this.date(xn.getUTCDate()),this}$e("N",0,0,"eraAbbr"),$e("NN",0,0,"eraAbbr"),$e("NNN",0,0,"eraAbbr"),$e("NNNN",0,0,"eraName"),$e("NNNNN",0,0,"eraNarrow"),$e("y",["y",1],"yo","eraYear"),$e("y",["yy",2],0,"eraYear"),$e("y",["yyy",3],0,"eraYear"),$e("y",["yyyy",4],0,"eraYear"),He("N",Fi),He("NN",Fi),He("NNN",Fi),He("NNNN",function Jl(k,j){return j.erasNameRegex(k)}),He("NNNNN",function Il(k,j){return j.erasNarrowRegex(k)}),fe(["N","NN","NNN","NNNN","NNNNN"],function(k,j,pe,ke){var nt=pe._locale.erasParse(k,ke,pe._strict);nt?ce(pe).era=nt:ce(pe).invalidEra=k}),He("y",ve),He("yy",ve),He("yyy",ve),He("yyyy",ve),He("yo",function en(k,j){return j._eraYearOrdinalRegex||ve}),fe(["y","yy","yyy","yyyy"],ht),fe(["yo"],function(k,j,pe,ke){var nt;pe._locale._eraYearOrdinalRegex&&(nt=k.match(pe._locale._eraYearOrdinalRegex)),j[ht]=pe._locale.eraYearOrdinalParse?pe._locale.eraYearOrdinalParse(k,nt):parseInt(k,10)}),$e(0,["gg",2],0,function(){return this.weekYear()%100}),$e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gt("gggg","weekYear"),gt("ggggg","weekYear"),gt("GGGG","isoWeekYear"),gt("GGGGG","isoWeekYear"),Ve("weekYear","gg"),Ve("isoWeekYear","GG"),J("weekYear",1),J("isoWeekYear",1),He("G",Pe),He("g",Pe),He("GG",oi,An),He("gg",oi,An),He("GGGG",G,ai),He("gggg",G,ai),He("GGGGG",U,di),He("ggggg",U,di),Mt(["gggg","ggggg","GGGG","GGGGG"],function(k,j,pe,ke){j[ke.substr(0,2)]=Se(k)}),Mt(["gg","GG"],function(k,j,pe,ke){j[ke]=l.parseTwoDigitYear(k)}),$e("Q",0,"Qo","quarter"),Ve("quarter","Q"),J("quarter",7),He("Q",gn),fe("Q",function(k,j){j[st]=3*(Se(k)-1)}),$e("D",["DD",2],"Do","date"),Ve("date","D"),J("date",9),He("D",oi),He("DD",oi,An),He("Do",function(k,j){return k?j._dayOfMonthOrdinalParse||j._ordinalParse:j._dayOfMonthOrdinalParseLenient}),fe(["D","DD"],It),fe("Do",function(k,j){j[It]=Se(k.match(oi)[0])});var W=Ft("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear"),Ve("dayOfYear","DDD"),J("dayOfYear",4),He("DDD",_t),He("DDDD",jn),fe(["DDD","DDDD"],function(k,j,pe){pe._dayOfYear=Se(k)}),$e("m",["mm",2],0,"minute"),Ve("minute","m"),J("minute",14),He("m",oi),He("mm",oi,An),fe(["m","mm"],_n);var V=Ft("Minutes",!1);$e("s",["ss",2],0,"second"),Ve("second","s"),J("second",15),He("s",oi),He("ss",oi,An),fe(["s","ss"],En);var xe,qe,ie=Ft("Seconds",!1);for($e("S",0,0,function(){return~~(this.millisecond()/100)}),$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$e(0,["SSS",3],0,"millisecond"),$e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ve("millisecond","ms"),J("millisecond",16),He("S",_t,gn),He("SS",_t,An),He("SSS",_t,jn),xe="SSSS";xe.length<=9;xe+="S")He(xe,ve);function Pt(k,j){j[On]=Se(1e3*("0."+k))}for(xe="S";xe.length<=9;xe+="S")fe(xe,Pt);qe=Ft("Milliseconds",!1),$e("z",0,0,"zoneAbbr"),$e("zz",0,0,"zoneName");var on=Tt.prototype;function $i(k){return k}on.add=Al,on.calendar=function pn(k,j){1===arguments.length&&(arguments[0]?K(arguments[0])?(k=arguments[0],j=void 0):function Ne(k){var nt,j=S(k)&&!n(k),pe=!1,ke=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(nt=0;ntpe.valueOf():pe.valueOf()9999?he(pe,j?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Jt(Date.prototype.toISOString)?j?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",he(pe,"Z")):he(pe,j?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},on.inspect=function $a(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var pe,ke,k="moment",j="";return this.isLocal()||(k=0===this.utcOffset()?"moment.utc":"moment.parseZone",j="Z"),pe="["+k+'("]',ke=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(pe+ke+"-MM-DD[T]HH:mm:ss.SSS"+j+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(on[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),on.toJSON=function lc(){return this.isValid()?this.toISOString():null},on.toString=function vs(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function Nc(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function Vs(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function id(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.eraName=function hl(){var k,j,pe,ke=this.localeData().eras();for(k=0,j=ke.length;kthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function za(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function $l(){return!!this.isValid()&&this._isUTC},on.isUtc=Tr,on.isUTC=Tr,on.zoneAbbr=function mn(){return this._isUTC?"UTC":""},on.zoneName=function hn(){return this._isUTC?"Coordinated Universal Time":""},on.dates=Zt("dates accessor is deprecated. Use date instead.",W),on.months=Zt("months accessor is deprecated. Use month instead",yo),on.years=Zt("years accessor is deprecated. Use year instead",Gs),on.zone=Zt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Wl(k,j){return null!=k?("string"!=typeof k&&(k=-k),this.utcOffset(k,j),this):-this.utcOffset()}),on.isDSTShifted=Zt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Za(){if(!Z(this._isDSTShifted))return this._isDSTShifted;var j,k={};return je(k,this),(k=Cl(k))._a?(j=k._isUTC?te(k._a):Lr(k._a),this._isDSTShifted=this.isValid()&&function Va(k,j,pe){var xn,ke=Math.min(k.length,j.length),nt=Math.abs(k.length-j.length),Kt=0;for(xn=0;xn0):this._isDSTShifted=!1,this._isDSTShifted});var mi=Ln.prototype;function Ps(k,j,pe,ke){var nt=Jo(),Kt=te().set(ke,j);return nt[pe](Kt,k)}function fl(k,j,pe){if(ee(k)&&(j=k,k=void 0),k=k||"",null!=j)return Ps(k,j,pe,"month");var ke,nt=[];for(ke=0;ke<12;ke++)nt[ke]=Ps(k,ke,pe,"month");return nt}function Rl(k,j,pe,ke){"boolean"==typeof k?(ee(j)&&(pe=j,j=void 0),j=j||""):(pe=j=k,k=!1,ee(j)&&(pe=j,j=void 0),j=j||"");var xn,nt=Jo(),Kt=k?nt._week.dow:0,Mi=[];if(null!=pe)return Ps(j,(pe+Kt)%7,ke,"day");for(xn=0;xn<7;xn++)Mi[xn]=Ps(j,(xn+Kt)%7,ke,"day");return Mi}mi.calendar=function gi(k,j,pe){var ke=this._calendar[k]||this._calendar.sameElse;return Jt(ke)?ke.call(j,pe):ke},mi.longDateFormat=function bt(k){var j=this._longDateFormat[k],pe=this._longDateFormat[k.toUpperCase()];return j||!pe?j:(this._longDateFormat[k]=pe.match(dt).map(function(ke){return"MMMM"===ke||"MM"===ke||"DD"===ke||"dddd"===ke?ke.slice(1):ke}).join(""),this._longDateFormat[k])},mi.invalidDate=function Qt(){return this._invalidDate},mi.ordinal=function Ot(k){return this._ordinal.replace("%d",k)},mi.preparse=$i,mi.postformat=$i,mi.relativeTime=function vn(k,j,pe,ke){var nt=this._relativeTime[pe];return Jt(nt)?nt(k,j,pe,ke):nt.replace(/%d/i,k)},mi.pastFuture=function ei(k,j){var pe=this._relativeTime[k>0?"future":"past"];return Jt(pe)?pe(j):pe.replace(/%s/i,j)},mi.set=function tn(k){var j,pe;for(pe in k)w(k,pe)&&(Jt(j=k[pe])?this[pe]=j:this["_"+pe]=j);this._config=k,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},mi.eras=function rd(k,j){var pe,ke,nt,Kt=this._eras||Jo("en")._eras;for(pe=0,ke=Kt.length;pe=0)return Kt[ke]},mi.erasConvertYear=function cc(k,j){var pe=k.since<=k.until?1:-1;return void 0===j?l(k.since).year():l(k.since).year()+(j-k.offset)*pe},mi.erasAbbrRegex=function Ol(k){return w(this,"_erasAbbrRegex")||so.call(this),k?this._erasAbbrRegex:this._erasRegex},mi.erasNameRegex=function aa(k){return w(this,"_erasNameRegex")||so.call(this),k?this._erasNameRegex:this._erasRegex},mi.erasNarrowRegex=function kn(k){return w(this,"_erasNarrowRegex")||so.call(this),k?this._erasNarrowRegex:this._erasRegex},mi.months=function _i(k,j){return k?I(this._months)?this._months[k.month()]:this._months[(this._months.isFormat||co).test(j)?"format":"standalone"][k.month()]:I(this._months)?this._months:this._months.standalone},mi.monthsShort=function bo(k,j){return k?I(this._monthsShort)?this._monthsShort[k.month()]:this._monthsShort[co.test(j)?"format":"standalone"][k.month()]:I(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},mi.monthsParse=function br(k,j,pe){var ke,nt,Kt;if(this._monthsParseExact)return pr.call(this,k,j,pe);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ke=0;ke<12;ke++){if(nt=te([2e3,ke]),pe&&!this._longMonthsParse[ke]&&(this._longMonthsParse[ke]=new RegExp("^"+this.months(nt,"").replace(".","")+"$","i"),this._shortMonthsParse[ke]=new RegExp("^"+this.monthsShort(nt,"").replace(".","")+"$","i")),!pe&&!this._monthsParse[ke]&&(Kt="^"+this.months(nt,"")+"|^"+this.monthsShort(nt,""),this._monthsParse[ke]=new RegExp(Kt.replace(".",""),"i")),pe&&"MMMM"===j&&this._longMonthsParse[ke].test(k))return ke;if(pe&&"MMM"===j&&this._shortMonthsParse[ke].test(k))return ke;if(!pe&&this._monthsParse[ke].test(k))return ke}},mi.monthsRegex=function ho(k){return this._monthsParseExact?(w(this,"_monthsRegex")||to.call(this),k?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=tr),this._monthsStrictRegex&&k?this._monthsStrictRegex:this._monthsRegex)},mi.monthsShortRegex=function uo(k){return this._monthsParseExact?(w(this,"_monthsRegex")||to.call(this),k?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=Ji),this._monthsShortStrictRegex&&k?this._monthsShortStrictRegex:this._monthsShortRegex)},mi.week=function Jr(k){return $s(k,this._week.dow,this._week.doy).week},mi.firstDayOfYear=function oo(){return this._week.doy},mi.firstDayOfWeek=function kr(){return this._week.dow},mi.weekdays=function wr(k,j){var pe=I(this._weekdays)?this._weekdays:this._weekdays[k&&!0!==k&&this._weekdays.isFormat.test(j)?"format":"standalone"];return!0===k?Ks(pe,this._week.dow):k?pe[k.day()]:pe},mi.weekdaysMin=function Vr(k){return!0===k?Ks(this._weekdaysMin,this._week.dow):k?this._weekdaysMin[k.day()]:this._weekdaysMin},mi.weekdaysShort=function al(k){return!0===k?Ks(this._weekdaysShort,this._week.dow):k?this._weekdaysShort[k.day()]:this._weekdaysShort},mi.weekdaysParse=function Js(k,j,pe){var ke,nt,Kt;if(this._weekdaysParseExact)return Es.call(this,k,j,pe);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ke=0;ke<7;ke++){if(nt=te([2e3,1]).day(ke),pe&&!this._fullWeekdaysParse[ke]&&(this._fullWeekdaysParse[ke]=new RegExp("^"+this.weekdays(nt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ke]=new RegExp("^"+this.weekdaysShort(nt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ke]=new RegExp("^"+this.weekdaysMin(nt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ke]||(Kt="^"+this.weekdays(nt,"")+"|^"+this.weekdaysShort(nt,"")+"|^"+this.weekdaysMin(nt,""),this._weekdaysParse[ke]=new RegExp(Kt.replace(".",""),"i")),pe&&"dddd"===j&&this._fullWeekdaysParse[ke].test(k))return ke;if(pe&&"ddd"===j&&this._shortWeekdaysParse[ke].test(k))return ke;if(pe&&"dd"===j&&this._minWeekdaysParse[ke].test(k))return ke;if(!pe&&this._weekdaysParse[ke].test(k))return ke}},mi.weekdaysRegex=function bi(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=Yr),this._weekdaysStrictRegex&&k?this._weekdaysStrictRegex:this._weekdaysRegex)},mi.weekdaysShortRegex=function _r(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=dr),this._weekdaysShortStrictRegex&&k?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},mi.weekdaysMinRegex=function wo(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ha),this._weekdaysMinStrictRegex&&k?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},mi.isPM=function va(k){return"p"===(k+"").toLowerCase().charAt(0)},mi.meridiem=function ba(k,j,pe){return k>11?pe?"pm":"PM":pe?"am":"AM"},xo("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(k){var j=k%10;return k+(1===Se(k%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")}}),l.lang=Zt("moment.lang is deprecated. Use moment.locale instead.",xo),l.langData=Zt("moment.langData is deprecated. Use moment.localeData instead.",Jo);var xr=Math.abs;function Ec(k,j,pe,ke){var nt=Rs(j,pe);return k._milliseconds+=ke*nt._milliseconds,k._days+=ke*nt._days,k._months+=ke*nt._months,k._bubble()}function hc(k){return k<0?Math.floor(k):Math.ceil(k)}function js(k){return 4800*k/146097}function pl(k){return 146097*k/4800}function Xa(k){return function(){return this.as(k)}}var ld=Xa("ms"),Sc=Xa("s"),Cd=Xa("m"),el=Xa("h"),Td=Xa("d"),Yc=Xa("w"),ca=Xa("M"),zd=Xa("Q"),Dd=Xa("y");function Ta(k){return function(){return this.isValid()?this._data[k]:NaN}}var Ed=Ta("milliseconds"),yc=Ta("seconds"),ql=Ta("minutes"),wc=Ta("hours"),kl=Ta("days"),Ql=Ta("months"),Ac=Ta("years");var Eo=Math.round,Xl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cd(k,j,pe,ke,nt){return nt.relativeTime(j||1,!!pe,k,ke)}var Ll=Math.abs;function as(k){return(k>0)-(k<0)||+k}function pc(){if(!this.isValid())return this.localeData().invalidDate();var ke,nt,Kt,xn,Oi,Hr,ws,tl,k=Ll(this._milliseconds)/1e3,j=Ll(this._days),pe=Ll(this._months),Mi=this.asSeconds();return Mi?(ke=ot(k/60),nt=ot(ke/60),k%=60,ke%=60,Kt=ot(pe/12),pe%=12,xn=k?k.toFixed(3).replace(/\.?0+$/,""):"",Oi=Mi<0?"-":"",Hr=as(this._months)!==as(Mi)?"-":"",ws=as(this._days)!==as(Mi)?"-":"",tl=as(this._milliseconds)!==as(Mi)?"-":"",Oi+"P"+(Kt?Hr+Kt+"Y":"")+(pe?Hr+pe+"M":"")+(j?ws+j+"D":"")+(nt||ke||k?"T":"")+(nt?tl+nt+"H":"")+(ke?tl+ke+"M":"")+(k?tl+xn+"S":"")):"P0D"}var ir=qr.prototype;return ir.isValid=function Ms(){return this._isValid},ir.abs=function dc(){var k=this._data;return this._milliseconds=xr(this._milliseconds),this._days=xr(this._days),this._months=xr(this._months),k.milliseconds=xr(k.milliseconds),k.seconds=xr(k.seconds),k.minutes=xr(k.minutes),k.hours=xr(k.hours),k.months=xr(k.months),k.years=xr(k.years),this},ir.add=function sd(k,j){return Ec(this,k,j,1)},ir.subtract=function uc(k,j){return Ec(this,k,j,-1)},ir.as=function ad(k){if(!this.isValid())return NaN;var j,pe,ke=this._milliseconds;if("month"===(k=ct(k))||"quarter"===k||"year"===k)switch(j=this._days+ke/864e5,pe=this._months+js(j),k){case"month":return pe;case"quarter":return pe/3;case"year":return pe/12}else switch(j=this._days+Math.round(pl(this._months)),k){case"week":return j/7+ke/6048e5;case"day":return j+ke/864e5;case"hour":return 24*j+ke/36e5;case"minute":return 1440*j+ke/6e4;case"second":return 86400*j+ke/1e3;case"millisecond":return Math.floor(864e5*j)+ke;default:throw new Error("Unknown unit "+k)}},ir.asMilliseconds=ld,ir.asSeconds=Sc,ir.asMinutes=Cd,ir.asHours=el,ir.asDays=Td,ir.asWeeks=Yc,ir.asMonths=ca,ir.asQuarters=zd,ir.asYears=Dd,ir.valueOf=function Pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Se(this._months/12):NaN},ir._bubble=function Qa(){var nt,Kt,xn,Mi,Oi,k=this._milliseconds,j=this._days,pe=this._months,ke=this._data;return k>=0&&j>=0&&pe>=0||k<=0&&j<=0&&pe<=0||(k+=864e5*hc(pl(pe)+j),j=0,pe=0),ke.milliseconds=k%1e3,nt=ot(k/1e3),ke.seconds=nt%60,Kt=ot(nt/60),ke.minutes=Kt%60,xn=ot(Kt/60),ke.hours=xn%24,j+=ot(xn/24),pe+=Oi=ot(js(j)),j-=hc(pl(Oi)),Mi=ot(pe/12),pe%=12,ke.days=j,ke.months=pe,ke.years=Mi,this},ir.clone=function Lo(){return Rs(this)},ir.get=function Bc(k){return k=ct(k),this.isValid()?this[k+"s"]():NaN},ir.milliseconds=Ed,ir.seconds=yc,ir.minutes=ql,ir.hours=wc,ir.days=kl,ir.weeks=function Hc(){return ot(this.days()/7)},ir.months=Ql,ir.years=Ac,ir.humanize=function da(k,j){if(!this.isValid())return this.localeData().invalidDate();var nt,Kt,pe=!1,ke=Xl;return"object"==typeof k&&(j=k,k=!1),"boolean"==typeof k&&(pe=k),"object"==typeof j&&(ke=Object.assign({},Xl,j),null!=j.s&&null==j.ss&&(ke.ss=j.s-1)),Kt=function fc(k,j,pe,ke){var nt=Rs(k).abs(),Kt=Eo(nt.as("s")),xn=Eo(nt.as("m")),Mi=Eo(nt.as("h")),Oi=Eo(nt.as("d")),Hr=Eo(nt.as("M")),ws=Eo(nt.as("w")),tl=Eo(nt.as("y")),Zs=Kt<=pe.ss&&["s",Kt]||Kt0,Zs[4]=ke,cd.apply(null,Zs)}(this,!pe,ke,nt=this.localeData()),pe&&(Kt=nt.pastFuture(+this,Kt)),nt.postformat(Kt)},ir.toISOString=pc,ir.toString=pc,ir.toJSON=pc,ir.locale=yi,ir.localeData=cl,ir.toIsoString=Zt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pc),ir.lang=oa,$e("X",0,0,"unix"),$e("x",0,0,"valueOf"),He("x",Pe),He("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",function(k,j,pe){pe._d=new Date(1e3*parseFloat(k))}),fe("x",function(k,j,pe){pe._d=new Date(Se(k))}),l.version="2.29.4",function D(k){e=k}(Lr),l.fn=on,l.min=function kc(){return Qo("isBefore",[].slice.call(arguments,0))},l.max=function El(){return Qo("isAfter",[].slice.call(arguments,0))},l.now=function(){return Date.now?Date.now():+new Date},l.utc=te,l.unix=function ji(k){return Lr(1e3*k)},l.months=function Ja(k,j){return fl(k,j,"months")},l.isDate=re,l.locale=xo,l.invalid=mt,l.duration=Rs,l.isMoment=xt,l.weekdays=function Md(k,j,pe){return Rl(k,j,pe,"weekdays")},l.parseZone=function Gr(){return Lr.apply(null,arguments).parseZone()},l.localeData=Jo,l.isDuration=Bs,l.monthsShort=function xd(k,j){return fl(k,j,"monthsShort")},l.weekdaysMin=function qa(k,j,pe){return Rl(k,j,pe,"weekdaysMin")},l.defineLocale=_s,l.updateLocale=function Ai(k,j){if(null!=j){var pe,ke,nt=Qs;null!=wi[k]&&null!=wi[k].parentLocale?wi[k].set(wn(wi[k]._config,j)):(null!=(ke=jr(k))&&(nt=ke._config),j=wn(nt,j),null==ke&&(j.abbr=k),(pe=new Ln(j)).parentLocale=wi[k],wi[k]=pe),xo(k)}else null!=wi[k]&&(null!=wi[k].parentLocale?(wi[k]=wi[k].parentLocale,k===xo()&&xo(k)):null!=wi[k]&&delete wi[k]);return wi[k]},l.locales=function Io(){return Yn(wi)},l.weekdaysShort=function Do(k,j,pe){return Rl(k,j,pe,"weekdaysShort")},l.normalizeUnits=ct,l.relativeTimeRounding=function xc(k){return void 0===k?Eo:"function"==typeof k&&(Eo=k,!0)},l.relativeTimeThreshold=function Po(k,j){return void 0!==Xl[k]&&(void 0===j?Xl[k]:(Xl[k]=j,"s"===k&&(Xl.ss=j-1),!0))},l.calendarFormat=function kt(k,j){var pe=k.diff(j,"days",!0);return pe<-6?"sameElse":pe<-1?"lastWeek":pe<0?"lastDay":pe<1?"sameDay":pe<2?"nextDay":pe<7?"nextWeek":"sameElse"},l.prototype=on,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l}()},5619:(ft,Ie,C)=>{"use strict";C.d(Ie,{X:()=>l});var e=C(8645);class l extends e.x{constructor(I){super(),this._value=I}get value(){return this.getValue()}_subscribe(I){const S=super._subscribe(I);return!S.closed&&I.next(this._value),S}getValue(){const{hasError:I,thrownError:S,_value:w}=this;if(I)throw S;return this._throwIfClosed(),w}next(I){super.next(this._value=I)}}},5592:(ft,Ie,C)=>{"use strict";C.d(Ie,{y:()=>Z});var e=C(305),l=C(7394),D=C(4850),I=C(8407),S=C(2653),w=C(4674),n=C(1441);let Z=(()=>{class se{constructor(oe){oe&&(this._subscribe=oe)}lift(oe){const ce=new se;return ce.source=this,ce.operator=oe,ce}subscribe(oe,ce,_e){const Re=function ue(se){return se&&se instanceof e.Lv||function re(se){return se&&(0,w.m)(se.next)&&(0,w.m)(se.error)&&(0,w.m)(se.complete)}(se)&&(0,l.Nn)(se)}(oe)?oe:new e.Hp(oe,ce,_e);return(0,n.x)(()=>{const{operator:mt,source:Ge}=this;Re.add(mt?mt.call(Re,Ge):Ge?this._subscribe(Re):this._trySubscribe(Re))}),Re}_trySubscribe(oe){try{return this._subscribe(oe)}catch(ce){oe.error(ce)}}forEach(oe,ce){return new(ce=ee(ce))((_e,Re)=>{const mt=new e.Hp({next:Ge=>{try{oe(Ge)}catch(Lt){Re(Lt),mt.unsubscribe()}},error:Re,complete:_e});this.subscribe(mt)})}_subscribe(oe){var ce;return null===(ce=this.source)||void 0===ce?void 0:ce.subscribe(oe)}[D.L](){return this}pipe(...oe){return(0,I.U)(oe)(this)}toPromise(oe){return new(oe=ee(oe))((ce,_e)=>{let Re;this.subscribe(mt=>Re=mt,mt=>_e(mt),()=>ce(Re))})}}return se.create=te=>new se(te),se})();function ee(se){var te;return null!==(te=se??S.config.Promise)&&void 0!==te?te:Promise}},8645:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>n});var e=C(5592),l=C(7394);const I=(0,C(2306).d)(ee=>function(){ee(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=C(9039),w=C(1441);let n=(()=>{class ee extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(ue){const se=new Z(this,this);return se.operator=ue,se}_throwIfClosed(){if(this.closed)throw new I}next(ue){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const se of this.currentObservers)se.next(ue)}})}error(ue){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=ue;const{observers:se}=this;for(;se.length;)se.shift().error(ue)}})}complete(){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:ue}=this;for(;ue.length;)ue.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var ue;return(null===(ue=this.observers)||void 0===ue?void 0:ue.length)>0}_trySubscribe(ue){return this._throwIfClosed(),super._trySubscribe(ue)}_subscribe(ue){return this._throwIfClosed(),this._checkFinalizedStatuses(ue),this._innerSubscribe(ue)}_innerSubscribe(ue){const{hasError:se,isStopped:te,observers:oe}=this;return se||te?l.Lc:(this.currentObservers=null,oe.push(ue),new l.w0(()=>{this.currentObservers=null,(0,S.P)(oe,ue)}))}_checkFinalizedStatuses(ue){const{hasError:se,thrownError:te,isStopped:oe}=this;se?ue.error(te):oe&&ue.complete()}asObservable(){const ue=new e.y;return ue.source=this,ue}}return ee.create=(re,ue)=>new Z(re,ue),ee})();class Z extends n{constructor(re,ue){super(),this.destination=re,this.source=ue}next(re){var ue,se;null===(se=null===(ue=this.destination)||void 0===ue?void 0:ue.next)||void 0===se||se.call(ue,re)}error(re){var ue,se;null===(se=null===(ue=this.destination)||void 0===ue?void 0:ue.error)||void 0===se||se.call(ue,re)}complete(){var re,ue;null===(ue=null===(re=this.destination)||void 0===re?void 0:re.complete)||void 0===ue||ue.call(re)}_subscribe(re){var ue,se;return null!==(se=null===(ue=this.source)||void 0===ue?void 0:ue.subscribe(re))&&void 0!==se?se:l.Lc}}},305:(ft,Ie,C)=>{"use strict";C.d(Ie,{Hp:()=>_e,Lv:()=>se});var e=C(4674),l=C(7394),D=C(2653),I=C(3894),S=C(2420);const w=ee("C",void 0,void 0);function ee(je,Tt,xt){return{kind:je,value:Tt,error:xt}}var re=C(7599),ue=C(1441);class se extends l.w0{constructor(Tt){super(),this.isStopped=!1,Tt?(this.destination=Tt,(0,l.Nn)(Tt)&&Tt.add(this)):this.destination=Lt}static create(Tt,xt,St){return new _e(Tt,xt,St)}next(Tt){this.isStopped?Ge(function Z(je){return ee("N",je,void 0)}(Tt),this):this._next(Tt)}error(Tt){this.isStopped?Ge(function n(je){return ee("E",void 0,je)}(Tt),this):(this.isStopped=!0,this._error(Tt))}complete(){this.isStopped?Ge(w,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Tt){this.destination.next(Tt)}_error(Tt){try{this.destination.error(Tt)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const te=Function.prototype.bind;function oe(je,Tt){return te.call(je,Tt)}class ce{constructor(Tt){this.partialObserver=Tt}next(Tt){const{partialObserver:xt}=this;if(xt.next)try{xt.next(Tt)}catch(St){Re(St)}}error(Tt){const{partialObserver:xt}=this;if(xt.error)try{xt.error(Tt)}catch(St){Re(St)}else Re(Tt)}complete(){const{partialObserver:Tt}=this;if(Tt.complete)try{Tt.complete()}catch(xt){Re(xt)}}}class _e extends se{constructor(Tt,xt,St){let Zt;if(super(),(0,e.m)(Tt)||!Tt)Zt={next:Tt??void 0,error:xt??void 0,complete:St??void 0};else{let yt;this&&D.config.useDeprecatedNextContext?(yt=Object.create(Tt),yt.unsubscribe=()=>this.unsubscribe(),Zt={next:Tt.next&&oe(Tt.next,yt),error:Tt.error&&oe(Tt.error,yt),complete:Tt.complete&&oe(Tt.complete,yt)}):Zt=Tt}this.destination=new ce(Zt)}}function Re(je){D.config.useDeprecatedSynchronousErrorHandling?(0,ue.O)(je):(0,I.h)(je)}function Ge(je,Tt){const{onStoppedNotification:xt}=D.config;xt&&re.z.setTimeout(()=>xt(je,Tt))}const Lt={closed:!0,next:S.Z,error:function mt(je){throw je},complete:S.Z}},7394:(ft,Ie,C)=>{"use strict";C.d(Ie,{Lc:()=>w,w0:()=>S,Nn:()=>n});var e=C(4674);const D=(0,C(2306).d)(ee=>function(ue){ee(this),this.message=ue?`${ue.length} errors occurred during unsubscription:\n${ue.map((se,te)=>`${te+1}) ${se.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ue});var I=C(9039);class S{constructor(re){this.initialTeardown=re,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let re;if(!this.closed){this.closed=!0;const{_parentage:ue}=this;if(ue)if(this._parentage=null,Array.isArray(ue))for(const oe of ue)oe.remove(this);else ue.remove(this);const{initialTeardown:se}=this;if((0,e.m)(se))try{se()}catch(oe){re=oe instanceof D?oe.errors:[oe]}const{_finalizers:te}=this;if(te){this._finalizers=null;for(const oe of te)try{Z(oe)}catch(ce){re=re??[],ce instanceof D?re=[...re,...ce.errors]:re.push(ce)}}if(re)throw new D(re)}}add(re){var ue;if(re&&re!==this)if(this.closed)Z(re);else{if(re instanceof S){if(re.closed||re._hasParent(this))return;re._addParent(this)}(this._finalizers=null!==(ue=this._finalizers)&&void 0!==ue?ue:[]).push(re)}}_hasParent(re){const{_parentage:ue}=this;return ue===re||Array.isArray(ue)&&ue.includes(re)}_addParent(re){const{_parentage:ue}=this;this._parentage=Array.isArray(ue)?(ue.push(re),ue):ue?[ue,re]:re}_removeParent(re){const{_parentage:ue}=this;ue===re?this._parentage=null:Array.isArray(ue)&&(0,I.P)(ue,re)}remove(re){const{_finalizers:ue}=this;ue&&(0,I.P)(ue,re),re instanceof S&&re._removeParent(this)}}S.EMPTY=(()=>{const ee=new S;return ee.closed=!0,ee})();const w=S.EMPTY;function n(ee){return ee instanceof S||ee&&"closed"in ee&&(0,e.m)(ee.remove)&&(0,e.m)(ee.add)&&(0,e.m)(ee.unsubscribe)}function Z(ee){(0,e.m)(ee)?ee():ee.unsubscribe()}},2653:(ft,Ie,C)=>{"use strict";C.d(Ie,{config:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3168:(ft,Ie,C)=>{"use strict";C.d(Ie,{c:()=>w});var e=C(5592),l=C(7394),D=C(6196),I=C(8251),S=C(9360);class w extends e.y{constructor(Z,ee){super(),this.source=Z,this.subjectFactory=ee,this._subject=null,this._refCount=0,this._connection=null,(0,S.A)(Z)&&(this.lift=Z.lift)}_subscribe(Z){return this.getSubject().subscribe(Z)}getSubject(){const Z=this._subject;return(!Z||Z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Z}=this;this._subject=this._connection=null,Z?.unsubscribe()}connect(){let Z=this._connection;if(!Z){Z=this._connection=new l.w0;const ee=this.getSubject();Z.add(this.source.subscribe((0,I.x)(ee,void 0,()=>{this._teardown(),ee.complete()},re=>{this._teardown(),ee.error(re)},()=>this._teardown()))),Z.closed&&(this._connection=null,Z=l.w0.EMPTY)}return Z}refCount(){return(0,D.x)()(this)}}},2572:(ft,Ie,C)=>{"use strict";C.d(Ie,{a:()=>re});var e=C(5592),l=C(7453),D=C(9666),I=C(2737),S=C(7400),w=C(9940),n=C(2714),Z=C(8251),ee=C(7103);function re(...te){const oe=(0,w.yG)(te),ce=(0,w.jO)(te),{args:_e,keys:Re}=(0,l.D)(te);if(0===_e.length)return(0,D.D)([],oe);const mt=new e.y(function ue(te,oe,ce=I.y){return _e=>{se(oe,()=>{const{length:Re}=te,mt=new Array(Re);let Ge=Re,Lt=Re;for(let je=0;je{const Tt=(0,D.D)(te[je],oe);let xt=!1;Tt.subscribe((0,Z.x)(_e,St=>{mt[je]=St,xt||(xt=!0,Lt--),Lt||_e.next(ce(mt.slice()))},()=>{--Ge||_e.complete()}))},_e)},_e)}}(_e,oe,Re?Ge=>(0,n.n)(Re,Ge):I.y));return ce?mt.pipe((0,S.Z)(ce)):mt}function se(te,oe,ce){te?(0,ee.f)(ce,te,oe):oe()}},5211:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>S});var e=C(7537),D=C(9940),I=C(9666);function S(...w){return function l(){return(0,e.J)(1)}()((0,I.D)(w,(0,D.yG)(w)))}},4911:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>D});var e=C(5592),l=C(4829);function D(I){return new e.y(S=>{(0,l.Xf)(I()).subscribe(S)})}},6232:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>l});const l=new(C(5592).y)(S=>S.complete())},9315:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>Z});var e=C(5592),l=C(7453),D=C(4829),I=C(9940),S=C(8251),w=C(7400),n=C(2714);function Z(...ee){const re=(0,I.jO)(ee),{args:ue,keys:se}=(0,l.D)(ee),te=new e.y(oe=>{const{length:ce}=ue;if(!ce)return void oe.complete();const _e=new Array(ce);let Re=ce,mt=ce;for(let Ge=0;Ge{Lt||(Lt=!0,mt--),_e[Ge]=je},()=>Re--,void 0,()=>{(!Re||!Lt)&&(mt||oe.next(se?(0,n.n)(se,_e):_e),oe.complete())}))}});return re?te.pipe((0,w.Z)(re)):te}},9666:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>xt});var e=C(4829),l=C(3093),D=C(9360);function I(St,Zt=0){return(0,D.e)((yt,un)=>{un.add(St.schedule(()=>yt.subscribe(un),Zt))})}var n=C(5592),ee=C(4971),re=C(4674),ue=C(7103);function te(St,Zt){if(!St)throw new Error("Iterable cannot be null");return new n.y(yt=>{(0,ue.f)(yt,Zt,()=>{const un=St[Symbol.asyncIterator]();(0,ue.f)(yt,Zt,()=>{un.next().then(Jt=>{Jt.done?yt.complete():yt.next(Jt.value)})},0,!0)})})}var oe=C(8382),ce=C(4026),_e=C(4266),Re=C(3664),mt=C(5726),Ge=C(9853),Lt=C(541);function xt(St,Zt){return Zt?function Tt(St,Zt){if(null!=St){if((0,oe.c)(St))return function S(St,Zt){return(0,e.Xf)(St).pipe(I(Zt),(0,l.Q)(Zt))}(St,Zt);if((0,_e.z)(St))return function Z(St,Zt){return new n.y(yt=>{let un=0;return Zt.schedule(function(){un===St.length?yt.complete():(yt.next(St[un++]),yt.closed||this.schedule())})})}(St,Zt);if((0,ce.t)(St))return function w(St,Zt){return(0,e.Xf)(St).pipe(I(Zt),(0,l.Q)(Zt))}(St,Zt);if((0,mt.D)(St))return te(St,Zt);if((0,Re.T)(St))return function se(St,Zt){return new n.y(yt=>{let un;return(0,ue.f)(yt,Zt,()=>{un=St[ee.h](),(0,ue.f)(yt,Zt,()=>{let Jt,tn;try{({value:Jt,done:tn}=un.next())}catch(wn){return void yt.error(wn)}tn?yt.complete():yt.next(Jt)},0,!0)}),()=>(0,re.m)(un?.return)&&un.return()})}(St,Zt);if((0,Lt.L)(St))return function je(St,Zt){return te((0,Lt.Q)(St),Zt)}(St,Zt)}throw(0,Ge.z)(St)}(St,Zt):(0,e.Xf)(St)}},2438:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>re});var e=C(4829),l=C(5592),D=C(1631),I=C(4266),S=C(4674),w=C(7400);const n=["addListener","removeListener"],Z=["addEventListener","removeEventListener"],ee=["on","off"];function re(ce,_e,Re,mt){if((0,S.m)(Re)&&(mt=Re,Re=void 0),mt)return re(ce,_e,Re).pipe((0,w.Z)(mt));const[Ge,Lt]=function oe(ce){return(0,S.m)(ce.addEventListener)&&(0,S.m)(ce.removeEventListener)}(ce)?Z.map(je=>Tt=>ce[je](_e,Tt,Re)):function se(ce){return(0,S.m)(ce.addListener)&&(0,S.m)(ce.removeListener)}(ce)?n.map(ue(ce,_e)):function te(ce){return(0,S.m)(ce.on)&&(0,S.m)(ce.off)}(ce)?ee.map(ue(ce,_e)):[];if(!Ge&&(0,I.z)(ce))return(0,D.z)(je=>re(je,_e,Re))((0,e.Xf)(ce));if(!Ge)throw new TypeError("Invalid event target");return new l.y(je=>{const Tt=(...xt)=>je.next(1Lt(Tt)})}function ue(ce,_e){return Re=>mt=>ce[Re](_e,mt)}},4829:(ft,Ie,C)=>{"use strict";C.d(Ie,{Xf:()=>te});var e=C(7582),l=C(4266),D=C(4026),I=C(5592),S=C(8382),w=C(5726),n=C(9853),Z=C(3664),ee=C(541),re=C(4674),ue=C(3894),se=C(4850);function te(je){if(je instanceof I.y)return je;if(null!=je){if((0,S.c)(je))return function oe(je){return new I.y(Tt=>{const xt=je[se.L]();if((0,re.m)(xt.subscribe))return xt.subscribe(Tt);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(je);if((0,l.z)(je))return function ce(je){return new I.y(Tt=>{for(let xt=0;xt{je.then(xt=>{Tt.closed||(Tt.next(xt),Tt.complete())},xt=>Tt.error(xt)).then(null,ue.h)})}(je);if((0,w.D)(je))return mt(je);if((0,Z.T)(je))return function Re(je){return new I.y(Tt=>{for(const xt of je)if(Tt.next(xt),Tt.closed)return;Tt.complete()})}(je);if((0,ee.L)(je))return function Ge(je){return mt((0,ee.Q)(je))}(je)}throw(0,n.z)(je)}function mt(je){return new I.y(Tt=>{(function Lt(je,Tt){var xt,St,Zt,yt;return(0,e.mG)(this,void 0,void 0,function*(){try{for(xt=(0,e.KL)(je);!(St=yield xt.next()).done;)if(Tt.next(St.value),Tt.closed)return}catch(un){Zt={error:un}}finally{try{St&&!St.done&&(yt=xt.return)&&(yield yt.call(xt))}finally{if(Zt)throw Zt.error}}Tt.complete()})})(je,Tt).catch(xt=>Tt.error(xt))})}},3019:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>w});var e=C(7537),l=C(4829),D=C(6232),I=C(9940),S=C(9666);function w(...n){const Z=(0,I.yG)(n),ee=(0,I._6)(n,1/0),re=n;return re.length?1===re.length?(0,l.Xf)(re[0]):(0,e.J)(ee)((0,S.D)(re,Z)):D.E}},2096:(ft,Ie,C)=>{"use strict";C.d(Ie,{of:()=>D});var e=C(9940),l=C(9666);function D(...I){const S=(0,e.yG)(I);return(0,l.D)(I,S)}},8504:(ft,Ie,C)=>{"use strict";C.d(Ie,{_:()=>D});var e=C(5592),l=C(4674);function D(I,S){const w=(0,l.m)(I)?I:()=>I,n=Z=>Z.error(w());return new e.y(S?Z=>S.schedule(n,0,Z):n)}},4825:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>S});var e=C(5592),l=C(6321),D=C(671);function S(w=0,n,Z=l.P){let ee=-1;return null!=n&&((0,D.K)(n)?Z=n:ee=n),new e.y(re=>{let ue=function I(w){return w instanceof Date&&!isNaN(w)}(w)?+w-Z.now():w;ue<0&&(ue=0);let se=0;return Z.schedule(function(){re.closed||(re.next(se++),0<=ee?this.schedule(void 0,ee):re.complete())},ue)})}},8251:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>l});var e=C(305);function l(I,S,w,n,Z){return new D(I,S,w,n,Z)}class D extends e.Lv{constructor(S,w,n,Z,ee,re){super(S),this.onFinalize=ee,this.shouldUnsubscribe=re,this._next=w?function(ue){try{w(ue)}catch(se){S.error(se)}}:super._next,this._error=Z?function(ue){try{Z(ue)}catch(se){S.error(se)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(ue){S.error(ue)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:w}=this;super.unsubscribe(),!w&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},9028:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>n});var e=C(6321),l=C(9360),D=C(4829),I=C(8251),w=C(4825);function n(Z,ee=e.z){return function S(Z){return(0,l.e)((ee,re)=>{let ue=!1,se=null,te=null,oe=!1;const ce=()=>{if(te?.unsubscribe(),te=null,ue){ue=!1;const Re=se;se=null,re.next(Re)}oe&&re.complete()},_e=()=>{te=null,oe&&re.complete()};ee.subscribe((0,I.x)(re,Re=>{ue=!0,se=Re,te||(0,D.Xf)(Z(Re)).subscribe(te=(0,I.x)(re,ce,_e))},()=>{oe=!0,(!ue||!te||te.closed)&&re.complete()}))})}(()=>(0,w.H)(Z,ee))}},6306:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>I});var e=C(4829),l=C(8251),D=C(9360);function I(S){return(0,D.e)((w,n)=>{let re,Z=null,ee=!1;Z=w.subscribe((0,l.x)(n,void 0,void 0,ue=>{re=(0,e.Xf)(S(ue,I(S)(w))),Z?(Z.unsubscribe(),Z=null,re.subscribe(n)):ee=!0})),ee&&(Z.unsubscribe(),Z=null,re.subscribe(n))})}},6328:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>D});var e=C(1631),l=C(4674);function D(I,S){return(0,l.m)(S)?(0,e.z)(I,S,1):(0,e.z)(I,1)}},3620:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>I});var e=C(6321),l=C(9360),D=C(8251);function I(S,w=e.z){return(0,l.e)((n,Z)=>{let ee=null,re=null,ue=null;const se=()=>{if(ee){ee.unsubscribe(),ee=null;const oe=re;re=null,Z.next(oe)}};function te(){const oe=ue+S,ce=w.now();if(ce{re=oe,ue=w.now(),ee||(ee=w.schedule(te,S),Z.add(ee))},()=>{se(),Z.complete()},void 0,()=>{re=ee=null}))})}},3572:(ft,Ie,C)=>{"use strict";C.d(Ie,{d:()=>D});var e=C(9360),l=C(8251);function D(I){return(0,e.e)((S,w)=>{let n=!1;S.subscribe((0,l.x)(w,Z=>{n=!0,w.next(Z)},()=>{n||w.next(I),w.complete()}))})}},5177:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>te});var e=C(6321),l=C(5211),D=C(8180),I=C(9360),S=C(8251),w=C(2420),Z=C(975),ee=C(1631),re=C(4829);function ue(oe,ce){return ce?_e=>(0,l.z)(ce.pipe((0,D.q)(1),function n(){return(0,I.e)((oe,ce)=>{oe.subscribe((0,S.x)(ce,w.Z))})}()),_e.pipe(ue(oe))):(0,ee.z)((_e,Re)=>(0,re.Xf)(oe(_e,Re)).pipe((0,D.q)(1),(0,Z.h)(_e)))}var se=C(4825);function te(oe,ce=e.z){const _e=(0,se.H)(oe,ce);return ue(()=>_e)}},3997:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>I});var e=C(2737),l=C(9360),D=C(8251);function I(w,n=e.y){return w=w??S,(0,l.e)((Z,ee)=>{let re,ue=!0;Z.subscribe((0,D.x)(ee,se=>{const te=n(se);(ue||!w(re,te))&&(ue=!1,re=te,ee.next(se))}))})}function S(w,n){return w===n}},2181:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>D});var e=C(9360),l=C(8251);function D(I,S){return(0,e.e)((w,n)=>{let Z=0;w.subscribe((0,l.x)(n,ee=>I.call(S,ee,Z++)&&n.next(ee)))})}},4716:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>l});var e=C(9360);function l(D){return(0,e.e)((I,S)=>{try{I.subscribe(S)}finally{S.add(D)}})}},1374:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>n});var e=C(6973),l=C(2181),D=C(8180),I=C(3572),S=C(3026),w=C(2737);function n(Z,ee){const re=arguments.length>=2;return ue=>ue.pipe(Z?(0,l.h)((se,te)=>Z(se,te,ue)):w.y,(0,D.q)(1),re?(0,I.d)(ee):(0,S.T)(()=>new e.K))}},7398:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>D});var e=C(9360),l=C(8251);function D(I,S){return(0,e.e)((w,n)=>{let Z=0;w.subscribe((0,l.x)(n,ee=>{n.next(I.call(S,ee,Z++))}))})}},975:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>l});var e=C(7398);function l(D){return(0,e.U)(()=>D)}},7537:(ft,Ie,C)=>{"use strict";C.d(Ie,{J:()=>D});var e=C(1631),l=C(2737);function D(I=1/0){return(0,e.z)(l.y,I)}},1631:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>Z});var e=C(7398),l=C(4829),D=C(9360),I=C(7103),S=C(8251),n=C(4674);function Z(ee,re,ue=1/0){return(0,n.m)(re)?Z((se,te)=>(0,e.U)((oe,ce)=>re(se,oe,te,ce))((0,l.Xf)(ee(se,te))),ue):("number"==typeof re&&(ue=re),(0,D.e)((se,te)=>function w(ee,re,ue,se,te,oe,ce,_e){const Re=[];let mt=0,Ge=0,Lt=!1;const je=()=>{Lt&&!Re.length&&!mt&&re.complete()},Tt=St=>mt{oe&&re.next(St),mt++;let Zt=!1;(0,l.Xf)(ue(St,Ge++)).subscribe((0,S.x)(re,yt=>{te?.(yt),oe?Tt(yt):re.next(yt)},()=>{Zt=!0},void 0,()=>{if(Zt)try{for(mt--;Re.length&&mtxt(yt)):xt(yt)}je()}catch(yt){re.error(yt)}}))};return ee.subscribe((0,S.x)(re,Tt,()=>{Lt=!0,je()})),()=>{_e?.()}}(se,te,ee,ue)))}},3093:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q:()=>I});var e=C(7103),l=C(9360),D=C(8251);function I(S,w=0){return(0,l.e)((n,Z)=>{n.subscribe((0,D.x)(Z,ee=>(0,e.f)(Z,S,()=>Z.next(ee),w),()=>(0,e.f)(Z,S,()=>Z.complete(),w),ee=>(0,e.f)(Z,S,()=>Z.error(ee),w)))})}},6196:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>D});var e=C(9360),l=C(8251);function D(){return(0,e.e)((I,S)=>{let w=null;I._refCount++;const n=(0,l.x)(S,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(w=null);const Z=I._connection,ee=w;w=null,Z&&(!ee||Z===ee)&&Z.unsubscribe(),S.unsubscribe()});I.subscribe(n),n.closed||(w=I.connect())})}},6424:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>D});var e=C(9360),l=C(9732);function D(I,S){return(0,e.e)((0,l.U)(I,S,arguments.length>=2,!0))}},9732:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>l});var e=C(8251);function l(D,I,S,w,n){return(Z,ee)=>{let re=S,ue=I,se=0;Z.subscribe((0,e.x)(ee,te=>{const oe=se++;ue=re?D(ue,te,oe):(re=!0,te),w&&ee.next(ue)},n&&(()=>{re&&ee.next(ue),ee.complete()})))}}},3020:(ft,Ie,C)=>{"use strict";C.d(Ie,{B:()=>S});var e=C(4829),l=C(8645),D=C(305),I=C(9360);function S(n={}){const{connector:Z=(()=>new l.x),resetOnError:ee=!0,resetOnComplete:re=!0,resetOnRefCountZero:ue=!0}=n;return se=>{let te,oe,ce,_e=0,Re=!1,mt=!1;const Ge=()=>{oe?.unsubscribe(),oe=void 0},Lt=()=>{Ge(),te=ce=void 0,Re=mt=!1},je=()=>{const Tt=te;Lt(),Tt?.unsubscribe()};return(0,I.e)((Tt,xt)=>{_e++,!mt&&!Re&&Ge();const St=ce=ce??Z();xt.add(()=>{_e--,0===_e&&!mt&&!Re&&(oe=w(je,ue))}),St.subscribe(xt),!te&&_e>0&&(te=new D.Hp({next:Zt=>St.next(Zt),error:Zt=>{mt=!0,Ge(),oe=w(Lt,ee,Zt),St.error(Zt)},complete:()=>{Re=!0,Ge(),oe=w(Lt,re),St.complete()}}),(0,e.Xf)(Tt).subscribe(te))})(se)}}function w(n,Z,...ee){if(!0===Z)return void n();if(!1===Z)return;const re=new D.Hp({next:()=>{re.unsubscribe(),n()}});return(0,e.Xf)(Z(...ee)).subscribe(re)}},836:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>l});var e=C(2181);function l(D){return(0,e.h)((I,S)=>D<=S)}},7921:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>I});var e=C(5211),l=C(9940),D=C(9360);function I(...S){const w=(0,l.yG)(S);return(0,D.e)((n,Z)=>{(w?(0,e.z)(S,n,w):(0,e.z)(S,n)).subscribe(Z)})}},4664:(ft,Ie,C)=>{"use strict";C.d(Ie,{w:()=>I});var e=C(4829),l=C(9360),D=C(8251);function I(S,w){return(0,l.e)((n,Z)=>{let ee=null,re=0,ue=!1;const se=()=>ue&&!ee&&Z.complete();n.subscribe((0,D.x)(Z,te=>{ee?.unsubscribe();let oe=0;const ce=re++;(0,e.Xf)(S(te,ce)).subscribe(ee=(0,D.x)(Z,_e=>Z.next(w?w(te,_e,ce,oe++):_e),()=>{ee=null,se()}))},()=>{ue=!0,se()}))})}},8180:(ft,Ie,C)=>{"use strict";C.d(Ie,{q:()=>I});var e=C(6232),l=C(9360),D=C(8251);function I(S){return S<=0?()=>e.E:(0,l.e)((w,n)=>{let Z=0;w.subscribe((0,D.x)(n,ee=>{++Z<=S&&(n.next(ee),S<=Z&&n.complete())}))})}},9773:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>S});var e=C(9360),l=C(8251),D=C(4829),I=C(2420);function S(w){return(0,e.e)((n,Z)=>{(0,D.Xf)(w).subscribe((0,l.x)(Z,()=>Z.complete(),I.Z)),!Z.closed&&n.subscribe(Z)})}},9397:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>S});var e=C(4674),l=C(9360),D=C(8251),I=C(2737);function S(w,n,Z){const ee=(0,e.m)(w)||n||Z?{next:w,error:n,complete:Z}:w;return ee?(0,l.e)((re,ue)=>{var se;null===(se=ee.subscribe)||void 0===se||se.call(ee);let te=!0;re.subscribe((0,D.x)(ue,oe=>{var ce;null===(ce=ee.next)||void 0===ce||ce.call(ee,oe),ue.next(oe)},()=>{var oe;te=!1,null===(oe=ee.complete)||void 0===oe||oe.call(ee),ue.complete()},oe=>{var ce;te=!1,null===(ce=ee.error)||void 0===ce||ce.call(ee,oe),ue.error(oe)},()=>{var oe,ce;te&&(null===(oe=ee.unsubscribe)||void 0===oe||oe.call(ee)),null===(ce=ee.finalize)||void 0===ce||ce.call(ee)}))}):I.y}},3026:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>I});var e=C(6973),l=C(9360),D=C(8251);function I(w=S){return(0,l.e)((n,Z)=>{let ee=!1;n.subscribe((0,D.x)(Z,re=>{ee=!0,Z.next(re)},()=>ee?Z.complete():Z.error(w())))})}function S(){return new e.K}},1954:(ft,Ie,C)=>{"use strict";C.d(Ie,{o:()=>S});var e=C(7394);class l extends e.w0{constructor(n,Z){super()}schedule(n,Z=0){return this}}const D={setInterval(w,n,...Z){const{delegate:ee}=D;return ee?.setInterval?ee.setInterval(w,n,...Z):setInterval(w,n,...Z)},clearInterval(w){const{delegate:n}=D;return(n?.clearInterval||clearInterval)(w)},delegate:void 0};var I=C(9039);class S extends l{constructor(n,Z){super(n,Z),this.scheduler=n,this.work=Z,this.pending=!1}schedule(n,Z=0){var ee;if(this.closed)return this;this.state=n;const re=this.id,ue=this.scheduler;return null!=re&&(this.id=this.recycleAsyncId(ue,re,Z)),this.pending=!0,this.delay=Z,this.id=null!==(ee=this.id)&&void 0!==ee?ee:this.requestAsyncId(ue,this.id,Z),this}requestAsyncId(n,Z,ee=0){return D.setInterval(n.flush.bind(n,this),ee)}recycleAsyncId(n,Z,ee=0){if(null!=ee&&this.delay===ee&&!1===this.pending)return Z;null!=Z&&D.clearInterval(Z)}execute(n,Z){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ee=this._execute(n,Z);if(ee)return ee;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,Z){let re,ee=!1;try{this.work(n)}catch(ue){ee=!0,re=ue||new Error("Scheduled action threw falsy error")}if(ee)return this.unsubscribe(),re}unsubscribe(){if(!this.closed){const{id:n,scheduler:Z}=this,{actions:ee}=Z;this.work=this.state=this.scheduler=null,this.pending=!1,(0,I.P)(ee,this),null!=n&&(this.id=this.recycleAsyncId(Z,n,null)),this.delay=null,super.unsubscribe()}}}},2631:(ft,Ie,C)=>{"use strict";C.d(Ie,{v:()=>D});var e=C(4552);class l{constructor(S,w=l.now){this.schedulerActionCtor=S,this.now=w}schedule(S,w=0,n){return new this.schedulerActionCtor(this,S).schedule(n,w)}}l.now=e.l.now;class D extends l{constructor(S,w=l.now){super(S,w),this.actions=[],this._active=!1}flush(S){const{actions:w}=this;if(this._active)return void w.push(S);let n;this._active=!0;do{if(n=S.execute(S.state,S.delay))break}while(S=w.shift());if(this._active=!1,n){for(;S=w.shift();)S.unsubscribe();throw n}}}},927:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>n});var e=C(1954),l=C(7394);const D={schedule(ee){let re=requestAnimationFrame,ue=cancelAnimationFrame;const{delegate:se}=D;se&&(re=se.requestAnimationFrame,ue=se.cancelAnimationFrame);const te=re(oe=>{ue=void 0,ee(oe)});return new l.w0(()=>ue?.(te))},requestAnimationFrame(...ee){const{delegate:re}=D;return(re?.requestAnimationFrame||requestAnimationFrame)(...ee)},cancelAnimationFrame(...ee){const{delegate:re}=D;return(re?.cancelAnimationFrame||cancelAnimationFrame)(...ee)},delegate:void 0};var S=C(2631);const n=new class w extends S.v{flush(re){this._active=!0;const ue=this._scheduled;this._scheduled=void 0;const{actions:se}=this;let te;re=re||se.shift();do{if(te=re.execute(re.state,re.delay))break}while((re=se[0])&&re.id===ue&&se.shift());if(this._active=!1,te){for(;(re=se[0])&&re.id===ue&&se.shift();)re.unsubscribe();throw te}}}(class I extends e.o{constructor(re,ue){super(re,ue),this.scheduler=re,this.work=ue}requestAsyncId(re,ue,se=0){return null!==se&&se>0?super.requestAsyncId(re,ue,se):(re.actions.push(this),re._scheduled||(re._scheduled=D.requestAnimationFrame(()=>re.flush(void 0))))}recycleAsyncId(re,ue,se=0){var te;if(null!=se?se>0:this.delay>0)return super.recycleAsyncId(re,ue,se);const{actions:oe}=re;null!=ue&&(null===(te=oe[oe.length-1])||void 0===te?void 0:te.id)!==ue&&(D.cancelAnimationFrame(ue),re._scheduled=void 0)}})},6410:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>oe});var e=C(1954);let D,l=1;const I={};function S(_e){return _e in I&&(delete I[_e],!0)}const w={setImmediate(_e){const Re=l++;return I[Re]=!0,D||(D=Promise.resolve()),D.then(()=>S(Re)&&_e()),Re},clearImmediate(_e){S(_e)}},{setImmediate:Z,clearImmediate:ee}=w,re={setImmediate(..._e){const{delegate:Re}=re;return(Re?.setImmediate||Z)(..._e)},clearImmediate(_e){const{delegate:Re}=re;return(Re?.clearImmediate||ee)(_e)},delegate:void 0};var se=C(2631);const oe=new class te extends se.v{flush(Re){this._active=!0;const mt=this._scheduled;this._scheduled=void 0;const{actions:Ge}=this;let Lt;Re=Re||Ge.shift();do{if(Lt=Re.execute(Re.state,Re.delay))break}while((Re=Ge[0])&&Re.id===mt&&Ge.shift());if(this._active=!1,Lt){for(;(Re=Ge[0])&&Re.id===mt&&Ge.shift();)Re.unsubscribe();throw Lt}}}(class ue extends e.o{constructor(Re,mt){super(Re,mt),this.scheduler=Re,this.work=mt}requestAsyncId(Re,mt,Ge=0){return null!==Ge&&Ge>0?super.requestAsyncId(Re,mt,Ge):(Re.actions.push(this),Re._scheduled||(Re._scheduled=re.setImmediate(Re.flush.bind(Re,void 0))))}recycleAsyncId(Re,mt,Ge=0){var Lt;if(null!=Ge?Ge>0:this.delay>0)return super.recycleAsyncId(Re,mt,Ge);const{actions:je}=Re;null!=mt&&(null===(Lt=je[je.length-1])||void 0===Lt?void 0:Lt.id)!==mt&&(re.clearImmediate(mt),Re._scheduled===mt&&(Re._scheduled=void 0))}})},6321:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>I,z:()=>D});var e=C(1954);const D=new(C(2631).v)(e.o),I=D},4552:(ft,Ie,C)=>{"use strict";C.d(Ie,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},7599:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>e});const e={setTimeout(l,D,...I){const{delegate:S}=e;return S?.setTimeout?S.setTimeout(l,D,...I):setTimeout(l,D,...I)},clearTimeout(l){const{delegate:D}=e;return(D?.clearTimeout||clearTimeout)(l)},delegate:void 0}},4971:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>l});const l=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(ft,Ie,C)=>{"use strict";C.d(Ie,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>l});const l=(0,C(2306).d)(D=>function(){D(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(ft,Ie,C)=>{"use strict";C.d(Ie,{_6:()=>w,jO:()=>I,yG:()=>S});var e=C(4674),l=C(671);function D(n){return n[n.length-1]}function I(n){return(0,e.m)(D(n))?n.pop():void 0}function S(n){return(0,l.K)(D(n))?n.pop():void 0}function w(n,Z){return"number"==typeof D(n)?n.pop():Z}},7453:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>S});const{isArray:e}=Array,{getPrototypeOf:l,prototype:D,keys:I}=Object;function S(n){if(1===n.length){const Z=n[0];if(e(Z))return{args:Z,keys:null};if(function w(n){return n&&"object"==typeof n&&l(n)===D}(Z)){const ee=I(Z);return{args:ee.map(re=>Z[re]),keys:ee}}}return{args:n,keys:null}}},9039:(ft,Ie,C)=>{"use strict";function e(l,D){if(l){const I=l.indexOf(D);0<=I&&l.splice(I,1)}}C.d(Ie,{P:()=>e})},2306:(ft,Ie,C)=>{"use strict";function e(l){const I=l(S=>{Error.call(S),S.stack=(new Error).stack});return I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I}C.d(Ie,{d:()=>e})},2714:(ft,Ie,C)=>{"use strict";function e(l,D){return l.reduce((I,S,w)=>(I[S]=D[w],I),{})}C.d(Ie,{n:()=>e})},1441:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>I,x:()=>D});var e=C(2653);let l=null;function D(S){if(e.config.useDeprecatedSynchronousErrorHandling){const w=!l;if(w&&(l={errorThrown:!1,error:null}),S(),w){const{errorThrown:n,error:Z}=l;if(l=null,n)throw Z}}else S()}function I(S){e.config.useDeprecatedSynchronousErrorHandling&&l&&(l.errorThrown=!0,l.error=S)}},7103:(ft,Ie,C)=>{"use strict";function e(l,D,I,S=0,w=!1){const n=D.schedule(function(){I(),w?l.add(this.schedule(null,S)):this.unsubscribe()},S);if(l.add(n),!w)return n}C.d(Ie,{f:()=>e})},2737:(ft,Ie,C)=>{"use strict";function e(l){return l}C.d(Ie,{y:()=>e})},4266:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>e});const e=l=>l&&"number"==typeof l.length&&"function"!=typeof l},5726:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>l});var e=C(4674);function l(D){return Symbol.asyncIterator&&(0,e.m)(D?.[Symbol.asyncIterator])}},4674:(ft,Ie,C)=>{"use strict";function e(l){return"function"==typeof l}C.d(Ie,{m:()=>e})},8382:(ft,Ie,C)=>{"use strict";C.d(Ie,{c:()=>D});var e=C(4850),l=C(4674);function D(I){return(0,l.m)(I[e.L])}},3664:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>D});var e=C(4971),l=C(4674);function D(I){return(0,l.m)(I?.[e.h])}},4026:(ft,Ie,C)=>{"use strict";C.d(Ie,{t:()=>l});var e=C(4674);function l(D){return(0,e.m)(D?.then)}},541:(ft,Ie,C)=>{"use strict";C.d(Ie,{L:()=>I,Q:()=>D});var e=C(7582),l=C(4674);function D(S){return(0,e.FC)(this,arguments,function*(){const n=S.getReader();try{for(;;){const{value:Z,done:ee}=yield(0,e.qq)(n.read());if(ee)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(Z)}}finally{n.releaseLock()}})}function I(S){return(0,l.m)(S?.getReader)}},671:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>l});var e=C(4674);function l(D){return D&&(0,e.m)(D.schedule)}},9360:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>l,e:()=>D});var e=C(4674);function l(I){return(0,e.m)(I?.lift)}function D(I){return S=>{if(l(S))return S.lift(function(w){try{return I(w,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>I});var e=C(7398);const{isArray:l}=Array;function I(S){return(0,e.U)(w=>function D(S,w){return l(w)?S(...w):S(w)}(S,w))}},2420:(ft,Ie,C)=>{"use strict";function e(){}C.d(Ie,{Z:()=>e})},8407:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>D,z:()=>l});var e=C(2737);function l(...I){return D(I)}function D(I){return 0===I.length?e.y:1===I.length?I[0]:function(w){return I.reduce((n,Z)=>Z(n),w)}}},3894:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>D});var e=C(2653),l=C(7599);function D(I){l.z.setTimeout(()=>{const{onUnhandledError:S}=e.config;if(!S)throw I;S(I)})}},9853:(ft,Ie,C)=>{"use strict";function e(l){return new TypeError(`You provided ${null!==l&&"object"==typeof l?"an invalid object":`'${l}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(Ie,{z:()=>e})},6700:(ft,Ie,C)=>{var e={"./af":3274,"./af.js":3274,"./ar":2097,"./ar-dz":1867,"./ar-dz.js":1867,"./ar-kw":7078,"./ar-kw.js":7078,"./ar-ly":7776,"./ar-ly.js":7776,"./ar-ma":6789,"./ar-ma.js":6789,"./ar-sa":6897,"./ar-sa.js":6897,"./ar-tn":1585,"./ar-tn.js":1585,"./ar.js":2097,"./az":5611,"./az.js":5611,"./be":2459,"./be.js":2459,"./bg":1825,"./bg.js":1825,"./bm":5918,"./bm.js":5918,"./bn":4065,"./bn-bd":9683,"./bn-bd.js":9683,"./bn.js":4065,"./bo":1034,"./bo.js":1034,"./br":7671,"./br.js":7671,"./bs":8153,"./bs.js":8153,"./ca":4287,"./ca.js":4287,"./cs":2616,"./cs.js":2616,"./cv":7049,"./cv.js":7049,"./cy":9172,"./cy.js":9172,"./da":605,"./da.js":605,"./de":4013,"./de-at":3395,"./de-at.js":3395,"./de-ch":9835,"./de-ch.js":9835,"./de.js":4013,"./dv":4570,"./dv.js":4570,"./el":1859,"./el.js":1859,"./en-au":5785,"./en-au.js":5785,"./en-ca":3792,"./en-ca.js":3792,"./en-gb":7651,"./en-gb.js":7651,"./en-ie":1929,"./en-ie.js":1929,"./en-il":9818,"./en-il.js":9818,"./en-in":6612,"./en-in.js":6612,"./en-nz":4900,"./en-nz.js":4900,"./en-sg":2721,"./en-sg.js":2721,"./eo":6570,"./eo.js":6570,"./es":1148,"./es-do":1780,"./es-do.js":1780,"./es-mx":3468,"./es-mx.js":3468,"./es-us":4938,"./es-us.js":4938,"./es.js":1148,"./et":1453,"./et.js":1453,"./eu":4697,"./eu.js":4697,"./fa":2900,"./fa.js":2900,"./fi":9775,"./fi.js":9775,"./fil":4282,"./fil.js":4282,"./fo":4236,"./fo.js":4236,"./fr":9361,"./fr-ca":2830,"./fr-ca.js":2830,"./fr-ch":1412,"./fr-ch.js":1412,"./fr.js":9361,"./fy":6984,"./fy.js":6984,"./ga":3961,"./ga.js":3961,"./gd":8849,"./gd.js":8849,"./gl":4273,"./gl.js":4273,"./gom-deva":623,"./gom-deva.js":623,"./gom-latn":2696,"./gom-latn.js":2696,"./gu":6928,"./gu.js":6928,"./he":4804,"./he.js":4804,"./hi":3015,"./hi.js":3015,"./hr":7134,"./hr.js":7134,"./hu":670,"./hu.js":670,"./hy-am":4523,"./hy-am.js":4523,"./id":9233,"./id.js":9233,"./is":4693,"./is.js":4693,"./it":3936,"./it-ch":8118,"./it-ch.js":8118,"./it.js":3936,"./ja":6871,"./ja.js":6871,"./jv":8710,"./jv.js":8710,"./ka":7125,"./ka.js":7125,"./kk":2461,"./kk.js":2461,"./km":7399,"./km.js":7399,"./kn":8720,"./kn.js":8720,"./ko":5306,"./ko.js":5306,"./ku":2995,"./ku.js":2995,"./ky":8779,"./ky.js":8779,"./lb":2057,"./lb.js":2057,"./lo":7192,"./lo.js":7192,"./lt":5430,"./lt.js":5430,"./lv":3363,"./lv.js":3363,"./me":2939,"./me.js":2939,"./mi":8212,"./mi.js":8212,"./mk":9718,"./mk.js":9718,"./ml":561,"./ml.js":561,"./mn":8929,"./mn.js":8929,"./mr":4880,"./mr.js":4880,"./ms":3193,"./ms-my":2074,"./ms-my.js":2074,"./ms.js":3193,"./mt":4082,"./mt.js":4082,"./my":2261,"./my.js":2261,"./nb":5273,"./nb.js":5273,"./ne":9874,"./ne.js":9874,"./nl":1667,"./nl-be":1484,"./nl-be.js":1484,"./nl.js":1667,"./nn":7262,"./nn.js":7262,"./oc-lnc":9679,"./oc-lnc.js":9679,"./pa-in":6830,"./pa-in.js":6830,"./pl":3616,"./pl.js":3616,"./pt":5138,"./pt-br":2751,"./pt-br.js":2751,"./pt.js":5138,"./ro":7968,"./ro.js":7968,"./ru":1828,"./ru.js":1828,"./sd":2188,"./sd.js":2188,"./se":6562,"./se.js":6562,"./si":7172,"./si.js":7172,"./sk":9966,"./sk.js":9966,"./sl":7520,"./sl.js":7520,"./sq":5291,"./sq.js":5291,"./sr":450,"./sr-cyrl":7603,"./sr-cyrl.js":7603,"./sr.js":450,"./ss":383,"./ss.js":383,"./sv":7221,"./sv.js":7221,"./sw":1743,"./sw.js":1743,"./ta":6351,"./ta.js":6351,"./te":9620,"./te.js":9620,"./tet":6278,"./tet.js":6278,"./tg":6987,"./tg.js":6987,"./th":9325,"./th.js":9325,"./tk":3485,"./tk.js":3485,"./tl-ph":8148,"./tl-ph.js":8148,"./tlh":9616,"./tlh.js":9616,"./tr":4040,"./tr.js":4040,"./tzl":594,"./tzl.js":594,"./tzm":673,"./tzm-latn":3226,"./tzm-latn.js":3226,"./tzm.js":673,"./ug-cn":9580,"./ug-cn.js":9580,"./uk":7270,"./uk.js":7270,"./ur":1656,"./ur.js":1656,"./uz":8364,"./uz-latn":8744,"./uz-latn.js":8744,"./uz.js":8364,"./vi":5049,"./vi.js":5049,"./x-pseudo":5106,"./x-pseudo.js":5106,"./yo":6199,"./yo.js":6199,"./zh-cn":7280,"./zh-cn.js":7280,"./zh-hk":6860,"./zh-hk.js":6860,"./zh-mo":2335,"./zh-mo.js":2335,"./zh-tw":482,"./zh-tw.js":482};function l(I){var S=D(I);return C(S)}function D(I){if(!C.o(e,I)){var S=new Error("Cannot find module '"+I+"'");throw S.code="MODULE_NOT_FOUND",S}return e[I]}l.keys=function(){return Object.keys(e)},l.resolve=D,ft.exports=l,l.id=6700},9334:()=>{},6825:(ft,Ie,C)=>{"use strict";C.d(Ie,{IO:()=>ce,LC:()=>l,SB:()=>ee,X$:()=>I,ZE:()=>mt,ZN:()=>Re,_j:()=>e,eR:()=>ue,jt:()=>S,k1:()=>Ge,l3:()=>D,oB:()=>Z,pV:()=>te,ru:()=>w,vP:()=>n});class e{}class l{}const D="*";function I(Lt,je){return{type:7,name:Lt,definitions:je,options:{}}}function S(Lt,je=null){return{type:4,styles:je,timings:Lt}}function w(Lt,je=null){return{type:3,steps:Lt,options:je}}function n(Lt,je=null){return{type:2,steps:Lt,options:je}}function Z(Lt){return{type:6,styles:Lt,offset:null}}function ee(Lt,je,Tt){return{type:0,name:Lt,styles:je,options:Tt}}function ue(Lt,je,Tt=null){return{type:1,expr:Lt,animation:je,options:Tt}}function te(Lt=null){return{type:9,options:Lt}}function ce(Lt,je,Tt=null){return{type:11,selector:Lt,animation:je,options:Tt}}class Re{constructor(je=0,Tt=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=je+Tt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(je=>je()),this._onDoneFns=[])}onStart(je){this._originalOnStartFns.push(je),this._onStartFns.push(je)}onDone(je){this._originalOnDoneFns.push(je),this._onDoneFns.push(je)}onDestroy(je){this._onDestroyFns.push(je)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(je=>je()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(je=>je()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(je){this._position=this.totalTime?je*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(je){const Tt="start"==je?this._onStartFns:this._onDoneFns;Tt.forEach(xt=>xt()),Tt.length=0}}class mt{constructor(je){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=je;let Tt=0,xt=0,St=0;const Zt=this.players.length;0==Zt?queueMicrotask(()=>this._onFinish()):this.players.forEach(yt=>{yt.onDone(()=>{++Tt==Zt&&this._onFinish()}),yt.onDestroy(()=>{++xt==Zt&&this._onDestroy()}),yt.onStart(()=>{++St==Zt&&this._onStart()})}),this.totalTime=this.players.reduce((yt,un)=>Math.max(yt,un.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(je=>je()),this._onDoneFns=[])}init(){this.players.forEach(je=>je.init())}onStart(je){this._onStartFns.push(je)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(je=>je()),this._onStartFns=[])}onDone(je){this._onDoneFns.push(je)}onDestroy(je){this._onDestroyFns.push(je)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(je=>je.play())}pause(){this.players.forEach(je=>je.pause())}restart(){this.players.forEach(je=>je.restart())}finish(){this._onFinish(),this.players.forEach(je=>je.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(je=>je.destroy()),this._onDestroyFns.forEach(je=>je()),this._onDestroyFns=[])}reset(){this.players.forEach(je=>je.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(je){const Tt=je*this.totalTime;this.players.forEach(xt=>{const St=xt.totalTime?Math.min(1,Tt/xt.totalTime):1;xt.setPosition(St)})}getPosition(){const je=this.players.reduce((Tt,xt)=>null===Tt||xt.totalTime>Tt.totalTime?xt:Tt,null);return null!=je?je.getPosition():0}beforeDestroy(){this.players.forEach(je=>{je.beforeDestroy&&je.beforeDestroy()})}triggerCallback(je){const Tt="start"==je?this._onStartFns:this._onDoneFns;Tt.forEach(xt=>xt()),Tt.length=0}}const Ge="!"},4300:(ft,Ie,C)=>{"use strict";C.d(Ie,{$s:()=>Jt,Em:()=>ti,Kd:()=>Bt,X6:()=>Ve,Zf:()=>je,iD:()=>Tt,ic:()=>Rn,kH:()=>jn,qV:()=>nn,qm:()=>Jn,rt:()=>qt,s1:()=>Yn,tE:()=>An,yG:()=>ct});var e=C(6814),l=C(5879),D=C(2831),I=C(8645),S=C(7394),w=C(5619),n=C(2096),Z=C(6028),ee=C(9397),re=C(3620),ue=C(2181),se=C(7398),te=C(8180),oe=C(836),ce=C(3997),_e=C(9773),Re=C(2605),mt=C(7131),Ge=C(1088);const Lt=" ";function je(_t,G,U){const ve=xt(_t,G);ve.some(Pe=>Pe.trim()==U.trim())||(ve.push(U.trim()),_t.setAttribute(G,ve.join(Lt)))}function Tt(_t,G,U){const Pe=xt(_t,G).filter(ut=>ut!=U.trim());Pe.length?_t.setAttribute(G,Pe.join(Lt)):_t.removeAttribute(G)}function xt(_t,G){return(_t.getAttribute(G)||"").match(/\S+/g)||[]}const Zt="cdk-describedby-message",yt="cdk-describedby-host";let un=0,Jt=(()=>{class _t{constructor(U,ve){this._platform=ve,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+un++,this._document=U,this._id=(0,l.f3M)(l.AFp)+"-"+un++}describe(U,ve,Pe){if(!this._canBeDescribed(U,ve))return;const ut=tn(ve,Pe);"string"!=typeof ve?(wn(ve,this._id),this._messageRegistry.set(ut,{messageElement:ve,referenceCount:0})):this._messageRegistry.has(ut)||this._createMessageElement(ve,Pe),this._isElementDescribedByMessage(U,ut)||this._addMessageReference(U,ut)}removeDescription(U,ve,Pe){if(!ve||!this._isElementNode(U))return;const ut=tn(ve,Pe);if(this._isElementDescribedByMessage(U,ut)&&this._removeMessageReference(U,ut),"string"==typeof ve){const We=this._messageRegistry.get(ut);We&&0===We.referenceCount&&this._deleteMessageElement(ut)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const U=this._document.querySelectorAll(`[${yt}="${this._id}"]`);for(let ve=0;ve0!=Pe.indexOf(Zt));U.setAttribute("aria-describedby",ve.join(" "))}_addMessageReference(U,ve){const Pe=this._messageRegistry.get(ve);je(U,"aria-describedby",Pe.messageElement.id),U.setAttribute(yt,this._id),Pe.referenceCount++}_removeMessageReference(U,ve){const Pe=this._messageRegistry.get(ve);Pe.referenceCount--,Tt(U,"aria-describedby",Pe.messageElement.id),U.removeAttribute(yt)}_isElementDescribedByMessage(U,ve){const Pe=xt(U,"aria-describedby"),ut=this._messageRegistry.get(ve),We=ut&&ut.messageElement.id;return!!We&&-1!=Pe.indexOf(We)}_canBeDescribed(U,ve){if(!this._isElementNode(U))return!1;if(ve&&"object"==typeof ve)return!0;const Pe=null==ve?"":`${ve}`.trim(),ut=U.getAttribute("aria-label");return!(!Pe||ut&&ut.trim()===Pe)}_isElementNode(U){return U.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(e.K0),l.LFG(D.t4))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function tn(_t,G){return"string"==typeof _t?`${G||""}/${_t}`:_t}function wn(_t,G){_t.id||(_t.id=`${Zt}-${G}-${un++}`)}class Ln{constructor(G){this._items=G,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new I.x,this._typeaheadSubscription=S.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=U=>U.disabled,this._pressedLetters=[],this.tabOut=new I.x,this.change=new I.x,G instanceof l.n_E&&(this._itemChangesSubscription=G.changes.subscribe(U=>{if(this._activeItem){const Pe=U.toArray().indexOf(this._activeItem);Pe>-1&&Pe!==this._activeItemIndex&&(this._activeItemIndex=Pe)}}))}skipPredicate(G){return this._skipPredicateFn=G,this}withWrap(G=!0){return this._wrap=G,this}withVerticalOrientation(G=!0){return this._vertical=G,this}withHorizontalOrientation(G){return this._horizontal=G,this}withAllowedModifierKeys(G){return this._allowedModifierKeys=G,this}withTypeAhead(G=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ee.b)(U=>this._pressedLetters.push(U)),(0,re.b)(G),(0,ue.h)(()=>this._pressedLetters.length>0),(0,se.U)(()=>this._pressedLetters.join(""))).subscribe(U=>{const ve=this._getItemsArray();for(let Pe=1;Pe!G[ut]||this._allowedModifierKeys.indexOf(ut)>-1);switch(U){case Z.Mf:return void this.tabOut.next();case Z.JH:if(this._vertical&&Pe){this.setNextItemActive();break}return;case Z.LH:if(this._vertical&&Pe){this.setPreviousItemActive();break}return;case Z.SV:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Z.oh:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Z.Sd:if(this._homeAndEnd&&Pe){this.setFirstItemActive();break}return;case Z.uR:if(this._homeAndEnd&&Pe){this.setLastItemActive();break}return;case Z.Ku:if(this._pageUpAndDown.enabled&&Pe){const ut=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ut>0?ut:0,1);break}return;case Z.VM:if(this._pageUpAndDown.enabled&&Pe){const ut=this._activeItemIndex+this._pageUpAndDown.delta,We=this._getItemsArray().length;this._setActiveItemByIndex(ut=Z.A&&U<=Z.Z||U>=Z.xE&&U<=Z.aO)&&this._letterKeyStream.next(String.fromCharCode(U))))}this._pressedLetters=[],G.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(G){const U=this._getItemsArray(),ve="number"==typeof G?G:U.indexOf(G);this._activeItem=U[ve]??null,this._activeItemIndex=ve}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(G){this._wrap?this._setActiveInWrapMode(G):this._setActiveInDefaultMode(G)}_setActiveInWrapMode(G){const U=this._getItemsArray();for(let ve=1;ve<=U.length;ve++){const Pe=(this._activeItemIndex+G*ve+U.length)%U.length;if(!this._skipPredicateFn(U[Pe]))return void this.setActiveItem(Pe)}}_setActiveInDefaultMode(G){this._setActiveItemByIndex(this._activeItemIndex+G,G)}_setActiveItemByIndex(G,U){const ve=this._getItemsArray();if(ve[G]){for(;this._skipPredicateFn(ve[G]);)if(!ve[G+=U])return;this.setActiveItem(G)}}_getItemsArray(){return this._items instanceof l.n_E?this._items.toArray():this._items}}class Yn extends Ln{setActiveItem(G){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(G),this.activeItem&&this.activeItem.setActiveStyles()}}class ti extends Ln{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(G){return this._origin=G,this}setActiveItem(G){super.setActiveItem(G),this.activeItem&&this.activeItem.focus(this._origin)}}let Rn=(()=>{class _t{constructor(U){this._platform=U}isDisabled(U){return U.hasAttribute("disabled")}isVisible(U){return function at(_t){return!!(_t.offsetWidth||_t.offsetHeight||"function"==typeof _t.getClientRects&&_t.getClientRects().length)}(U)&&"visible"===getComputedStyle(U).visibility}isTabbable(U){if(!this._platform.isBrowser)return!1;const ve=function dt(_t){try{return _t.frameElement}catch{return null}}(function Nt(_t){return _t.ownerDocument&&_t.ownerDocument.defaultView||window}(U));if(ve&&(-1===Ze(ve)||!this.isVisible(ve)))return!1;let Pe=U.nodeName.toLowerCase(),ut=Ze(U);return U.hasAttribute("contenteditable")?-1!==ut:!("iframe"===Pe||"object"===Pe||this._platform.WEBKIT&&this._platform.IOS&&!function rt(_t){let G=_t.nodeName.toLowerCase(),U="input"===G&&_t.type;return"text"===U||"password"===U||"select"===G||"textarea"===G}(U))&&("audio"===Pe?!!U.hasAttribute("controls")&&-1!==ut:"video"===Pe?-1!==ut&&(null!==ut||this._platform.FIREFOX||U.hasAttribute("controls")):U.tabIndex>=0)}isFocusable(U,ve){return function bt(_t){return!function Ee(_t){return function me(_t){return"input"==_t.nodeName.toLowerCase()}(_t)&&"hidden"==_t.type}(_t)&&(function Be(_t){let G=_t.nodeName.toLowerCase();return"input"===G||"select"===G||"button"===G||"textarea"===G}(_t)||function $e(_t){return function tt(_t){return"a"==_t.nodeName.toLowerCase()}(_t)&&_t.hasAttribute("href")}(_t)||_t.hasAttribute("contenteditable")||he(_t))}(U)&&!this.isDisabled(U)&&(ve?.ignoreVisibility||this.isVisible(U))}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function he(_t){if(!_t.hasAttribute("tabindex")||void 0===_t.tabIndex)return!1;let G=_t.getAttribute("tabindex");return!(!G||isNaN(parseInt(G,10)))}function Ze(_t){if(!he(_t))return null;const G=parseInt(_t.getAttribute("tabindex")||"",10);return isNaN(G)?-1:G}class Qt{get enabled(){return this._enabled}set enabled(G){this._enabled=G,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}constructor(G,U,ve,Pe,ut=!1){this._element=G,this._checker=U,this._ngZone=ve,this._document=Pe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ut||this.attachAnchors()}destroy(){const G=this._startAnchor,U=this._endAnchor;G&&(G.removeEventListener("focus",this.startAnchorListener),G.remove()),U&&(U.removeEventListener("focus",this.endAnchorListener),U.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(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusInitialElement(G)))})}focusFirstTabbableElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusFirstTabbableElement(G)))})}focusLastTabbableElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusLastTabbableElement(G)))})}_getRegionBoundary(G){const U=this._element.querySelectorAll(`[cdk-focus-region-${G}], [cdkFocusRegion${G}], [cdk-focus-${G}]`);return"start"==G?U.length?U[0]:this._getFirstTabbableElement(this._element):U.length?U[U.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(G){const U=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(U){if(!this._checker.isFocusable(U)){const ve=this._getFirstTabbableElement(U);return ve?.focus(G),!!ve}return U.focus(G),!0}return this.focusFirstTabbableElement(G)}focusFirstTabbableElement(G){const U=this._getRegionBoundary("start");return U&&U.focus(G),!!U}focusLastTabbableElement(G){const U=this._getRegionBoundary("end");return U&&U.focus(G),!!U}hasAttached(){return this._hasAttached}_getFirstTabbableElement(G){if(this._checker.isFocusable(G)&&this._checker.isTabbable(G))return G;const U=G.children;for(let ve=0;ve=0;ve--){const Pe=U[ve].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(U[ve]):null;if(Pe)return Pe}return null}_createAnchor(){const G=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,G),G.classList.add("cdk-visually-hidden"),G.classList.add("cdk-focus-trap-anchor"),G.setAttribute("aria-hidden","true"),G}_toggleAnchorTabIndex(G,U){G?U.setAttribute("tabindex","0"):U.removeAttribute("tabindex")}toggleAnchors(G){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}_executeOnStable(G){this._ngZone.isStable?G():this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(G)}}let nn=(()=>{class _t{constructor(U,ve,Pe){this._checker=U,this._ngZone=ve,this._document=Pe}create(U,ve=!1){return new Qt(U,this._checker,this._ngZone,this._document,ve)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(Rn),l.LFG(l.R0b),l.LFG(e.K0))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function Ve(_t){return 0===_t.buttons||0===_t.detail}function ct(_t){const G=_t.touches&&_t.touches[0]||_t.changedTouches&&_t.changedTouches[0];return!(!G||-1!==G.identifier||null!=G.radiusX&&1!==G.radiusX||null!=G.radiusY&&1!==G.radiusY)}const Ct=new l.OlP("cdk-input-modality-detector-options"),Ce={ignoreKeys:[Z.zL,Z.jx,Z.b2,Z.MW,Z.JU]},ae=(0,D.i$)({passive:!0,capture:!0});let Oe=(()=>{class _t{get mostRecentModality(){return this._modality.value}constructor(U,ve,Pe,ut){this._platform=U,this._mostRecentTarget=null,this._modality=new w.X(null),this._lastTouchMs=0,this._onKeydown=We=>{this._options?.ignoreKeys?.some(ze=>ze===We.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,D.sA)(We))},this._onMousedown=We=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ve(We)?"keyboard":"mouse"),this._mostRecentTarget=(0,D.sA)(We))},this._onTouchstart=We=>{ct(We)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,D.sA)(We))},this._options={...Ce,...ut},this.modalityDetected=this._modality.pipe((0,oe.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ce.x)()),U.isBrowser&&ve.runOutsideAngular(()=>{Pe.addEventListener("keydown",this._onKeydown,ae),Pe.addEventListener("mousedown",this._onMousedown,ae),Pe.addEventListener("touchstart",this._onTouchstart,ae)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ae),document.removeEventListener("mousedown",this._onMousedown,ae),document.removeEventListener("touchstart",this._onTouchstart,ae))}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4),l.LFG(l.R0b),l.LFG(e.K0),l.LFG(Ct,8))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();const ot=new l.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Se(){return null}}),Ft=new l.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let lt=0,Bt=(()=>{class _t{constructor(U,ve,Pe,ut){this._ngZone=ve,this._defaultOptions=ut,this._document=Pe,this._liveElement=U||this._createLiveElement()}announce(U,...ve){const Pe=this._defaultOptions;let ut,We;return 1===ve.length&&"number"==typeof ve[0]?We=ve[0]:[ut,We]=ve,this.clear(),clearTimeout(this._previousTimeout),ut||(ut=Pe&&Pe.politeness?Pe.politeness:"polite"),null==We&&Pe&&(We=Pe.duration),this._liveElement.setAttribute("aria-live",ut),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ze=>this._currentResolve=ze)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=U,"number"==typeof We&&(this._previousTimeout=setTimeout(()=>this.clear(),We)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const U="cdk-live-announcer-element",ve=this._document.getElementsByClassName(U),Pe=this._document.createElement("div");for(let ut=0;ut .cdk-overlay-container [aria-modal="true"]');for(let Pe=0;Pe{class _t{constructor(U,ve,Pe,ut,We){this._ngZone=U,this._platform=ve,this._inputModalityDetector=Pe,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 I.x,this._rootNodeFocusAndBlurListener=ze=>{for(let Te=(0,D.sA)(ze);Te;Te=Te.parentElement)"focus"===ze.type?this._onFocus(ze,Te):this._onBlur(ze,Te)},this._document=ut,this._detectionMode=We?.detectionMode||0}monitor(U,ve=!1){const Pe=(0,Re.fI)(U);if(!this._platform.isBrowser||1!==Pe.nodeType)return(0,n.of)();const ut=(0,D.kV)(Pe)||this._getDocument(),We=this._elementInfo.get(Pe);if(We)return ve&&(We.checkChildren=!0),We.subject;const ze={checkChildren:ve,subject:new I.x,rootNode:ut};return this._elementInfo.set(Pe,ze),this._registerGlobalListeners(ze),ze.subject}stopMonitoring(U){const ve=(0,Re.fI)(U),Pe=this._elementInfo.get(ve);Pe&&(Pe.subject.complete(),this._setClasses(ve),this._elementInfo.delete(ve),this._removeGlobalListeners(Pe))}focusVia(U,ve,Pe){const ut=(0,Re.fI)(U);ut===this._getDocument().activeElement?this._getClosestElementsInfo(ut).forEach(([ze,be])=>this._originChanged(ze,ve,be)):(this._setOrigin(ve),"function"==typeof ut.focus&&ut.focus(Pe))}ngOnDestroy(){this._elementInfo.forEach((U,ve)=>this.stopMonitoring(ve))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(U){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(U)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:U&&this._isLastInteractionFromInputLabel(U)?"mouse":"program"}_shouldBeAttributedToTouch(U){return 1===this._detectionMode||!!U?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(U,ve){U.classList.toggle("cdk-focused",!!ve),U.classList.toggle("cdk-touch-focused","touch"===ve),U.classList.toggle("cdk-keyboard-focused","keyboard"===ve),U.classList.toggle("cdk-mouse-focused","mouse"===ve),U.classList.toggle("cdk-program-focused","program"===ve)}_setOrigin(U,ve=!1){this._ngZone.runOutsideAngular(()=>{this._origin=U,this._originFromTouchInteraction="touch"===U&&ve,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(U,ve){const Pe=this._elementInfo.get(ve),ut=(0,D.sA)(U);!Pe||!Pe.checkChildren&&ve!==ut||this._originChanged(ve,this._getFocusOrigin(ut),Pe)}_onBlur(U,ve){const Pe=this._elementInfo.get(ve);!Pe||Pe.checkChildren&&U.relatedTarget instanceof Node&&ve.contains(U.relatedTarget)||(this._setClasses(ve),this._emitOrigin(Pe,null))}_emitOrigin(U,ve){U.subject.observers.length&&this._ngZone.run(()=>U.subject.next(ve))}_registerGlobalListeners(U){if(!this._platform.isBrowser)return;const ve=U.rootNode,Pe=this._rootNodeFocusListenerCount.get(ve)||0;Pe||this._ngZone.runOutsideAngular(()=>{ve.addEventListener("focus",this._rootNodeFocusAndBlurListener,gn),ve.addEventListener("blur",this._rootNodeFocusAndBlurListener,gn)}),this._rootNodeFocusListenerCount.set(ve,Pe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_e.R)(this._stopInputModalityDetector)).subscribe(ut=>{this._setOrigin(ut,!0)}))}_removeGlobalListeners(U){const ve=U.rootNode;if(this._rootNodeFocusListenerCount.has(ve)){const Pe=this._rootNodeFocusListenerCount.get(ve);Pe>1?this._rootNodeFocusListenerCount.set(ve,Pe-1):(ve.removeEventListener("focus",this._rootNodeFocusAndBlurListener,gn),ve.removeEventListener("blur",this._rootNodeFocusAndBlurListener,gn),this._rootNodeFocusListenerCount.delete(ve))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(U,ve,Pe){this._setClasses(U,ve),this._emitOrigin(Pe,ve),this._lastFocusOrigin=ve}_getClosestElementsInfo(U){const ve=[];return this._elementInfo.forEach((Pe,ut)=>{(ut===U||Pe.checkChildren&&ut.contains(U))&&ve.push([ut,Pe])}),ve}_isLastInteractionFromInputLabel(U){const{_mostRecentTarget:ve,mostRecentModality:Pe}=this._inputModalityDetector;if("mouse"!==Pe||!ve||ve===U||"INPUT"!==U.nodeName&&"TEXTAREA"!==U.nodeName||U.disabled)return!1;const ut=U.labels;if(ut)for(let We=0;We{class _t{constructor(U,ve){this._elementRef=U,this._focusMonitor=ve,this._focusOrigin=null,this.cdkFocusChange=new l.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const U=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(U,1===U.nodeType&&U.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ve=>{this._focusOrigin=ve,this.cdkFocusChange.emit(ve)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.Y36(l.SBq),l.Y36(An))};static#t=this.\u0275dir=l.lG2({type:_t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return _t})();const ai="cdk-high-contrast-black-on-white",di="cdk-high-contrast-white-on-black",oi="cdk-high-contrast-active";let Jn=(()=>{class _t{constructor(U,ve){this._platform=U,this._document=ve,this._breakpointSubscription=(0,l.f3M)(Ge.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const U=this._document.createElement("div");U.style.backgroundColor="rgb(1,2,3)",U.style.position="absolute",this._document.body.appendChild(U);const ve=this._document.defaultView||window,Pe=ve&&ve.getComputedStyle?ve.getComputedStyle(U):null,ut=(Pe&&Pe.backgroundColor||"").replace(/ /g,"");switch(U.remove(),ut){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const U=this._document.body.classList;U.remove(oi,ai,di),this._hasCheckedHighContrastMode=!0;const ve=this.getHighContrastMode();1===ve?U.add(oi,ai):2===ve&&U.add(oi,di)}}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4),l.LFG(e.K0))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),qt=(()=>{class _t{constructor(U){U._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(Jn))};static#t=this.\u0275mod=l.oAB({type:_t});static#n=this.\u0275inj=l.cJS({imports:[mt.Q8]})}return _t})()},9388:(ft,Ie,C)=>{"use strict";C.d(Ie,{Is:()=>n,Lv:()=>Z,vT:()=>ee});var e=C(5879),l=C(6814);const D=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function I(){return(0,e.f3M)(l.K0)}}),S=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function w(re){const ue=re?.toLowerCase()||"";return"auto"===ue&&typeof navigator<"u"&&navigator?.language?S.test(navigator.language)?"rtl":"ltr":"rtl"===ue?"rtl":"ltr"}let n=(()=>{class re{constructor(se){this.value="ltr",this.change=new e.vpe,se&&(this.value=w((se.body?se.body.dir:null)||(se.documentElement?se.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(te){return new(te||re)(e.LFG(D,8))};static#t=this.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),Z=(()=>{class re{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new e.vpe}get dir(){return this._dir}set dir(se){const te=this._dir;this._dir=w(se),this._rawDir=se,te!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275dir=e.lG2({type:re,selectors:[["","dir",""]],hostVars:1,hostBindings:function(te,oe){2&te&&e.uIk("dir",oe._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[e._Bn([{provide:n,useExisting:re}])]})}return re})(),ee=(()=>{class re{static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275mod=e.oAB({type:re});static#n=this.\u0275inj=e.cJS({})}return re})()},2605:(ft,Ie,C)=>{"use strict";C.d(Ie,{Eq:()=>S,HM:()=>w,Ig:()=>l,du:()=>Z,fI:()=>n,su:()=>D});var e=C(5879);function l(ee){return null!=ee&&"false"!=`${ee}`}function D(ee,re=0){return function I(ee){return!isNaN(parseFloat(ee))&&!isNaN(Number(ee))}(ee)?Number(ee):re}function S(ee){return Array.isArray(ee)?ee:[ee]}function w(ee){return null==ee?"":"string"==typeof ee?ee:`${ee}px`}function n(ee){return ee instanceof e.SBq?ee.nativeElement:ee}function Z(ee,re=/\s+/){const ue=[];if(null!=ee){const se=Array.isArray(ee)?ee:`${ee}`.split(re);for(const te of se){const oe=`${te}`.trim();oe&&ue.push(oe)}}return ue}},8337:(ft,Ie,C)=>{"use strict";C.d(Ie,{A8:()=>re,Ov:()=>Z});var e=C(8645),l=C(5879);class Z{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(te=!1,oe,ce=!0,_e){this._multiple=te,this._emitChanges=ce,this.compareWith=_e,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,oe&&oe.length&&(te?oe.forEach(Re=>this._markSelected(Re)):this._markSelected(oe[0]),this._selectedToEmit.length=0)}select(...te){this._verifyValueAssignment(te),te.forEach(ce=>this._markSelected(ce));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}deselect(...te){this._verifyValueAssignment(te),te.forEach(ce=>this._unmarkSelected(ce));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}setSelection(...te){this._verifyValueAssignment(te);const oe=this.selected,ce=new Set(te);te.forEach(Re=>this._markSelected(Re)),oe.filter(Re=>!ce.has(Re)).forEach(Re=>this._unmarkSelected(Re));const _e=this._hasQueuedChanges();return this._emitChangeEvent(),_e}toggle(te){return this.isSelected(te)?this.deselect(te):this.select(te)}clear(te=!0){this._unmarkAll();const oe=this._hasQueuedChanges();return te&&this._emitChangeEvent(),oe}isSelected(te){return this._selection.has(this._getConcreteValue(te))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(te){this._multiple&&this.selected&&this._selected.sort(te)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(te){te=this._getConcreteValue(te),this.isSelected(te)||(this._multiple||this._unmarkAll(),this.isSelected(te)||this._selection.add(te),this._emitChanges&&this._selectedToEmit.push(te))}_unmarkSelected(te){te=this._getConcreteValue(te),this.isSelected(te)&&(this._selection.delete(te),this._emitChanges&&this._deselectedToEmit.push(te))}_unmarkAll(){this.isEmpty()||this._selection.forEach(te=>this._unmarkSelected(te))}_verifyValueAssignment(te){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(te){if(this.compareWith){for(let oe of this._selection)if(this.compareWith(te,oe))return oe;return te}return te}}let re=(()=>{class se{constructor(){this._listeners=[]}notify(oe,ce){for(let _e of this._listeners)_e(oe,ce)}listen(oe){return this._listeners.push(oe),()=>{this._listeners=this._listeners.filter(ce=>oe!==ce)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275prov=l.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"})}return se})()},6028:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>Ee,JH:()=>Lt,JU:()=>w,K5:()=>S,Ku:()=>te,LH:()=>mt,L_:()=>se,MW:()=>Ft,Mf:()=>D,OC:()=>Bi,SV:()=>Ge,Sd:()=>_e,VM:()=>oe,Vb:()=>uo,Z:()=>Se,ZH:()=>l,aO:()=>gi,b2:()=>Fr,hY:()=>ue,jx:()=>n,oh:()=>Re,uR:()=>ce,xE:()=>Zt,yY:()=>St,zL:()=>Z});const l=8,D=9,S=13,w=16,n=17,Z=18,ue=27,se=32,te=33,oe=34,ce=35,_e=36,Re=37,mt=38,Ge=39,Lt=40,St=46,Zt=48,gi=57,Ee=65,Se=90,Ft=91,Bi=188,Fr=224;function uo(ho,...to){return to.length?to.some(yr=>ho[yr]):ho.altKey||ho.shiftKey||ho.ctrlKey||ho.metaKey}},1088:(ft,Ie,C)=>{"use strict";C.d(Ie,{Yg:()=>Lt,u3:()=>Tt});var e=C(5879),l=C(2605),D=C(8645),I=C(2572),S=C(5211),w=C(5592),n=C(8180),Z=C(836),ee=C(3620),re=C(7398),ue=C(7921),se=C(9773),te=C(2831);const ce=new Set;let _e,Re=(()=>{class xt{constructor(Zt,yt){this._platform=Zt,this._nonce=yt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ge}matchMedia(Zt){return(this._platform.WEBKIT||this._platform.BLINK)&&function mt(xt,St){if(!ce.has(xt))try{_e||(_e=document.createElement("style"),St&&(_e.nonce=St),_e.setAttribute("type","text/css"),document.head.appendChild(_e)),_e.sheet&&(_e.sheet.insertRule(`@media ${xt} {body{ }}`,0),ce.add(xt))}catch(Zt){console.error(Zt)}}(Zt,this._nonce),this._matchMedia(Zt)}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.LFG(te.t4),e.LFG(e.Ojb,8))};static#t=this.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"})}return xt})();function Ge(xt){return{matches:"all"===xt||""===xt,media:xt,addListener:()=>{},removeListener:()=>{}}}let Lt=(()=>{class xt{constructor(Zt,yt){this._mediaMatcher=Zt,this._zone=yt,this._queries=new Map,this._destroySubject=new D.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Zt){return je((0,l.Eq)(Zt)).some(un=>this._registerQuery(un).mql.matches)}observe(Zt){const un=je((0,l.Eq)(Zt)).map(tn=>this._registerQuery(tn).observable);let Jt=(0,I.a)(un);return Jt=(0,S.z)(Jt.pipe((0,n.q)(1)),Jt.pipe((0,Z.T)(1),(0,ee.b)(0))),Jt.pipe((0,re.U)(tn=>{const wn={matches:!1,breakpoints:{}};return tn.forEach(({matches:Ln,query:Yn})=>{wn.matches=wn.matches||Ln,wn.breakpoints[Yn]=Ln}),wn}))}_registerQuery(Zt){if(this._queries.has(Zt))return this._queries.get(Zt);const yt=this._mediaMatcher.matchMedia(Zt),Jt={observable:new w.y(tn=>{const wn=Ln=>this._zone.run(()=>tn.next(Ln));return yt.addListener(wn),()=>{yt.removeListener(wn)}}).pipe((0,ue.O)(yt),(0,re.U)(({matches:tn})=>({query:Zt,matches:tn})),(0,se.R)(this._destroySubject)),mql:yt};return this._queries.set(Zt,Jt),Jt}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.LFG(Re),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"})}return xt})();function je(xt){return xt.map(St=>St.split(",")).reduce((St,Zt)=>St.concat(Zt)).map(St=>St.trim())}const Tt={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)"}},7131:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q8:()=>ee,wD:()=>Z});var e=C(2605),l=C(5879),D=C(5592),I=C(8645),S=C(3620);let w=(()=>{class re{create(se){return typeof MutationObserver>"u"?null:new MutationObserver(se)}static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275prov=l.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),n=(()=>{class re{constructor(se){this._mutationObserverFactory=se,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((se,te)=>this._cleanupObserver(te))}observe(se){const te=(0,e.fI)(se);return new D.y(oe=>{const _e=this._observeElement(te).subscribe(oe);return()=>{_e.unsubscribe(),this._unobserveElement(te)}})}_observeElement(se){if(this._observedElements.has(se))this._observedElements.get(se).count++;else{const te=new I.x,oe=this._mutationObserverFactory.create(ce=>te.next(ce));oe&&oe.observe(se,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(se,{observer:oe,stream:te,count:1})}return this._observedElements.get(se).stream}_unobserveElement(se){this._observedElements.has(se)&&(this._observedElements.get(se).count--,this._observedElements.get(se).count||this._cleanupObserver(se))}_cleanupObserver(se){if(this._observedElements.has(se)){const{observer:te,stream:oe}=this._observedElements.get(se);te&&te.disconnect(),oe.complete(),this._observedElements.delete(se)}}static#e=this.\u0275fac=function(te){return new(te||re)(l.LFG(w))};static#t=this.\u0275prov=l.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),Z=(()=>{class re{get disabled(){return this._disabled}set disabled(se){this._disabled=(0,e.Ig)(se),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(se){this._debounce=(0,e.su)(se),this._subscribe()}constructor(se,te,oe){this._contentObserver=se,this._elementRef=te,this._ngZone=oe,this.event=new l.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const se=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?se.pipe((0,S.b)(this.debounce)):se).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(te){return new(te||re)(l.Y36(n),l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275dir=l.lG2({type:re,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return re})(),ee=(()=>{class re{static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275mod=l.oAB({type:re});static#n=this.\u0275inj=l.cJS({providers:[w]})}return re})()},3651:(ft,Ie,C)=>{"use strict";C.d(Ie,{pI:()=>ei,xu:()=>vn,aV:()=>Dn,X_:()=>un,Xj:()=>dt,U8:()=>ct,Iu:()=>at});var e=C(6672),l=C(6814),D=C(5879),I=C(2605),S=C(2831),w=C(2181),n=C(8180),Z=C(9773),ee=C(9360),re=C(8251),se=C(9388),te=C(8484),oe=C(8645),ce=C(7394),_e=C(3019),Re=C(6028);const mt=(0,S.Mq)();class Ge{constructor(J,ae){this._viewportRuler=J,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ae}attach(){}enable(){if(this._canBeEnabled()){const J=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=J.style.left||"",this._previousHTMLStyles.top=J.style.top||"",J.style.left=(0,I.HM)(-this._previousScrollPosition.left),J.style.top=(0,I.HM)(-this._previousScrollPosition.top),J.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const J=this._document.documentElement,Oe=J.style,ot=this._document.body.style,Se=Oe.scrollBehavior||"",Ft=ot.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,J.classList.remove("cdk-global-scrollblock"),mt&&(Oe.scrollBehavior=ot.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),mt&&(Oe.scrollBehavior=Se,ot.scrollBehavior=Ft)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ae=this._document.body,Oe=this._viewportRuler.getViewportSize();return ae.scrollHeight>Oe.height||ae.scrollWidth>Oe.width}}class je{constructor(J,ae,Oe,ot){this._scrollDispatcher=J,this._ngZone=ae,this._viewportRuler=Oe,this._config=ot,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(J){this._overlayRef=J}enable(){if(this._scrollSubscription)return;const J=this._scrollDispatcher.scrolled(0).pipe((0,w.h)(ae=>!ae||!this._overlayRef.overlayElement.contains(ae.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=J.subscribe(()=>{const ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ae-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=J.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Tt{enable(){}disable(){}attach(){}}function xt(Ce,J){return J.some(ae=>Ce.bottomae.bottom||Ce.rightae.right)}function St(Ce,J){return J.some(ae=>Ce.topae.bottom||Ce.leftae.right)}class Zt{constructor(J,ae,Oe,ot){this._scrollDispatcher=J,this._viewportRuler=ae,this._ngZone=Oe,this._config=ot,this._scrollSubscription=null}attach(J){this._overlayRef=J}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 ae=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Oe,height:ot}=this._viewportRuler.getViewportSize();xt(ae,[{width:Oe,height:ot,bottom:ot,right:Oe,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 yt=(()=>{class Ce{constructor(ae,Oe,ot,Se){this._scrollDispatcher=ae,this._viewportRuler=Oe,this._ngZone=ot,this.noop=()=>new Tt,this.close=Ft=>new je(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ft),this.block=()=>new Ge(this._viewportRuler,this._document),this.reposition=Ft=>new Zt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ft),this._document=Se}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(e.mF),D.LFG(e.rL),D.LFG(D.R0b),D.LFG(l.K0))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();class un{constructor(J){if(this.scrollStrategy=new Tt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,J){const ae=Object.keys(J);for(const Oe of ae)void 0!==J[Oe]&&(this[Oe]=J[Oe])}}}class wn{constructor(J,ae){this.connectionPair=J,this.scrollableViewProperties=ae}}let ti=(()=>{class Ce{constructor(ae){this._attachedOverlays=[],this._document=ae}ngOnDestroy(){this.detach()}add(ae){this.remove(ae),this._attachedOverlays.push(ae)}remove(ae){const Oe=this._attachedOverlays.indexOf(ae);Oe>-1&&this._attachedOverlays.splice(Oe,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),gi=(()=>{class Ce extends ti{constructor(ae,Oe){super(ae),this._ngZone=Oe,this._keydownListener=ot=>{const Se=this._attachedOverlays;for(let Ft=Se.length-1;Ft>-1;Ft--)if(Se[Ft]._keydownEvents.observers.length>0){const lt=Se[Ft]._keydownEvents;this._ngZone?this._ngZone.run(()=>lt.next(ot)):lt.next(ot);break}}}add(ae){super.add(ae),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0),D.LFG(D.R0b,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),Rn=(()=>{class Ce extends ti{constructor(ae,Oe,ot){super(ae),this._platform=Oe,this._ngZone=ot,this._cursorStyleIsSet=!1,this._pointerDownListener=Se=>{this._pointerDownEventTarget=(0,S.sA)(Se)},this._clickListener=Se=>{const Ft=(0,S.sA)(Se),lt="click"===Se.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ft;this._pointerDownEventTarget=null;const Bt=this._attachedOverlays.slice();for(let Ut=Bt.length-1;Ut>-1;Ut--){const fn=Bt[Ut];if(fn._outsidePointerEvents.observers.length<1||!fn.hasAttached())continue;if(fn.overlayElement.contains(Ft)||fn.overlayElement.contains(lt))break;const gn=fn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>gn.next(Se)):gn.next(Se)}}}add(ae){if(super.add(ae),!this._isAttached){const Oe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Oe)):this._addEventListeners(Oe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Oe.style.cursor,Oe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ae=this._document.body;ae.removeEventListener("pointerdown",this._pointerDownListener,!0),ae.removeEventListener("click",this._clickListener,!0),ae.removeEventListener("auxclick",this._clickListener,!0),ae.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ae.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ae){ae.addEventListener("pointerdown",this._pointerDownListener,!0),ae.addEventListener("click",this._clickListener,!0),ae.addEventListener("auxclick",this._clickListener,!0),ae.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0),D.LFG(S.t4),D.LFG(D.R0b,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),dt=(()=>{class Ce{constructor(ae,Oe){this._platform=Oe,this._document=ae}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ae="cdk-overlay-container";if(this._platform.isBrowser||(0,S.Oy)()){const ot=this._document.querySelectorAll(`.${ae}[platform="server"], .${ae}[platform="test"]`);for(let Se=0;Sethis._backdropClick.next(gn),this._backdropTransitionendHandler=gn=>{this._disposeBackdrop(gn.target)},this._keydownEvents=new oe.x,this._outsidePointerEvents=new oe.x,ot.scrollStrategy&&(this._scrollStrategy=ot.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ot.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(J){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ae=this._portalOutlet.attach(J);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,n.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),"function"==typeof ae?.onDestroy&&ae.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ae}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const J=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),J}dispose(){const J=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,J&&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(J){J!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=J,this.hasAttached()&&(J.attach(this),this.updatePosition()))}updateSize(J){this._config={...this._config,...J},this._updateElementSize()}setDirection(J){this._config={...this._config,direction:J},this._updateElementDirection()}addPanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!0)}removePanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!1)}getDirection(){const J=this._config.direction;return J?"string"==typeof J?J:J.value:"ltr"}updateScrollStrategy(J){J!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=J,this.hasAttached()&&(J.attach(this),J.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const J=this._pane.style;J.width=(0,I.HM)(this._config.width),J.height=(0,I.HM)(this._config.height),J.minWidth=(0,I.HM)(this._config.minWidth),J.minHeight=(0,I.HM)(this._config.minHeight),J.maxWidth=(0,I.HM)(this._config.maxWidth),J.maxHeight=(0,I.HM)(this._config.maxHeight)}_togglePointerEvents(J){this._pane.style.pointerEvents=J?"":"none"}_attachBackdrop(){const J="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(J)})}):this._backdropElement.classList.add(J)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const J=this._backdropElement;if(J){if(this._animationsDisabled)return void this._disposeBackdrop(J);J.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{J.addEventListener("transitionend",this._backdropTransitionendHandler)}),J.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(J)},500))}}_toggleClasses(J,ae,Oe){const ot=(0,I.Eq)(ae||[]).filter(Se=>!!Se);ot.length&&(Oe?J.classList.add(...ot):J.classList.remove(...ot))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const J=this._ngZone.onStable.pipe((0,Z.R)((0,_e.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()),J.unsubscribe())})})}_disposeScrollStrategy(){const J=this._scrollStrategy;J&&(J.disable(),J.detach&&J.detach())}_disposeBackdrop(J){J&&(J.removeEventListener("click",this._backdropClickHandler),J.removeEventListener("transitionend",this._backdropTransitionendHandler),J.remove(),this._backdropElement===J&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Be="cdk-overlay-connected-position-bounding-box",Ee=/([A-Za-z%]+)$/;class $e{get positions(){return this._preferredPositions}constructor(J,ae,Oe,ot,Se){this._viewportRuler=ae,this._document=Oe,this._platform=ot,this._overlayContainer=Se,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new oe.x,this._resizeSubscription=ce.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(J)}attach(J){this._validatePositions(),J.hostElement.classList.add(Be),this._overlayRef=J,this._boundingBox=J.hostElement,this._pane=J.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{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 J=this._originRect,ae=this._overlayRect,Oe=this._viewportRect,ot=this._containerRect,Se=[];let Ft;for(let lt of this._preferredPositions){let Bt=this._getOriginPoint(J,ot,lt),Ut=this._getOverlayPoint(Bt,ae,lt),fn=this._getOverlayFit(Ut,ae,Oe,lt);if(fn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(lt,Bt);this._canFitWithFlexibleDimensions(fn,Ut,Oe)?Se.push({position:lt,origin:Bt,overlayRect:ae,boundingBoxRect:this._calculateBoundingBoxRect(Bt,lt)}):(!Ft||Ft.overlayFit.visibleAreaBt&&(Bt=fn,lt=Ut)}return this._isPushed=!1,void this._applyPosition(lt.position,lt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ft.position,Ft.originPoint);this._applyPosition(Ft.position,Ft.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&me(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const J=this._lastPosition;if(J){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ae=this._getOriginPoint(this._originRect,this._containerRect,J);this._applyPosition(J,ae)}else this.apply()}withScrollableContainers(J){return this._scrollables=J,this}withPositions(J){return this._preferredPositions=J,-1===J.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(J){return this._viewportMargin=J,this}withFlexibleDimensions(J=!0){return this._hasFlexibleDimensions=J,this}withGrowAfterOpen(J=!0){return this._growAfterOpen=J,this}withPush(J=!0){return this._canPush=J,this}withLockedPosition(J=!0){return this._positionLocked=J,this}setOrigin(J){return this._origin=J,this}withDefaultOffsetX(J){return this._offsetX=J,this}withDefaultOffsetY(J){return this._offsetY=J,this}withTransformOriginOn(J){return this._transformOriginSelector=J,this}_getOriginPoint(J,ae,Oe){let ot,Se;if("center"==Oe.originX)ot=J.left+J.width/2;else{const Ft=this._isRtl()?J.right:J.left,lt=this._isRtl()?J.left:J.right;ot="start"==Oe.originX?Ft:lt}return ae.left<0&&(ot-=ae.left),Se="center"==Oe.originY?J.top+J.height/2:"top"==Oe.originY?J.top:J.bottom,ae.top<0&&(Se-=ae.top),{x:ot,y:Se}}_getOverlayPoint(J,ae,Oe){let ot,Se;return ot="center"==Oe.overlayX?-ae.width/2:"start"===Oe.overlayX?this._isRtl()?-ae.width:0:this._isRtl()?0:-ae.width,Se="center"==Oe.overlayY?-ae.height/2:"top"==Oe.overlayY?0:-ae.height,{x:J.x+ot,y:J.y+Se}}_getOverlayFit(J,ae,Oe,ot){const Se=he(ae);let{x:Ft,y:lt}=J,Bt=this._getOffset(ot,"x"),Ut=this._getOffset(ot,"y");Bt&&(Ft+=Bt),Ut&&(lt+=Ut);let An=0-lt,jn=lt+Se.height-Oe.height,ai=this._subtractOverflows(Se.width,0-Ft,Ft+Se.width-Oe.width),di=this._subtractOverflows(Se.height,An,jn),oi=ai*di;return{visibleArea:oi,isCompletelyWithinViewport:Se.width*Se.height===oi,fitsInViewportVertically:di===Se.height,fitsInViewportHorizontally:ai==Se.width}}_canFitWithFlexibleDimensions(J,ae,Oe){if(this._hasFlexibleDimensions){const ot=Oe.bottom-ae.y,Se=Oe.right-ae.x,Ft=tt(this._overlayRef.getConfig().minHeight),lt=tt(this._overlayRef.getConfig().minWidth);return(J.fitsInViewportVertically||null!=Ft&&Ft<=ot)&&(J.fitsInViewportHorizontally||null!=lt&<<=Se)}return!1}_pushOverlayOnScreen(J,ae,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:J.x+this._previousPushAmount.x,y:J.y+this._previousPushAmount.y};const ot=he(ae),Se=this._viewportRect,Ft=Math.max(J.x+ot.width-Se.width,0),lt=Math.max(J.y+ot.height-Se.height,0),Bt=Math.max(Se.top-Oe.top-J.y,0),Ut=Math.max(Se.left-Oe.left-J.x,0);let fn=0,gn=0;return fn=ot.width<=Se.width?Ut||-Ft:J.xai&&!this._isInitialRender&&!this._growAfterOpen&&(Ft=J.y-ai/2)}if("end"===ae.overlayX&&!ot||"start"===ae.overlayX&&ot)An=Oe.width-J.x+this._viewportMargin,fn=J.x-this._viewportMargin;else if("start"===ae.overlayX&&!ot||"end"===ae.overlayX&&ot)gn=J.x,fn=Oe.right-J.x;else{const jn=Math.min(Oe.right-J.x+Oe.left,J.x),ai=this._lastBoundingBoxSize.width;fn=2*jn,gn=J.x-jn,fn>ai&&!this._isInitialRender&&!this._growAfterOpen&&(gn=J.x-ai/2)}return{top:Ft,left:gn,bottom:lt,right:An,width:fn,height:Se}}_setBoundingBoxStyles(J,ae){const Oe=this._calculateBoundingBoxRect(J,ae);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const ot={};if(this._hasExactPosition())ot.top=ot.left="0",ot.bottom=ot.right=ot.maxHeight=ot.maxWidth="",ot.width=ot.height="100%";else{const Se=this._overlayRef.getConfig().maxHeight,Ft=this._overlayRef.getConfig().maxWidth;ot.height=(0,I.HM)(Oe.height),ot.top=(0,I.HM)(Oe.top),ot.bottom=(0,I.HM)(Oe.bottom),ot.width=(0,I.HM)(Oe.width),ot.left=(0,I.HM)(Oe.left),ot.right=(0,I.HM)(Oe.right),ot.alignItems="center"===ae.overlayX?"center":"end"===ae.overlayX?"flex-end":"flex-start",ot.justifyContent="center"===ae.overlayY?"center":"bottom"===ae.overlayY?"flex-end":"flex-start",Se&&(ot.maxHeight=(0,I.HM)(Se)),Ft&&(ot.maxWidth=(0,I.HM)(Ft))}this._lastBoundingBoxSize=Oe,me(this._boundingBox.style,ot)}_resetBoundingBoxStyles(){me(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){me(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(J,ae){const Oe={},ot=this._hasExactPosition(),Se=this._hasFlexibleDimensions,Ft=this._overlayRef.getConfig();if(ot){const fn=this._viewportRuler.getViewportScrollPosition();me(Oe,this._getExactOverlayY(ae,J,fn)),me(Oe,this._getExactOverlayX(ae,J,fn))}else Oe.position="static";let lt="",Bt=this._getOffset(ae,"x"),Ut=this._getOffset(ae,"y");Bt&&(lt+=`translateX(${Bt}px) `),Ut&&(lt+=`translateY(${Ut}px)`),Oe.transform=lt.trim(),Ft.maxHeight&&(ot?Oe.maxHeight=(0,I.HM)(Ft.maxHeight):Se&&(Oe.maxHeight="")),Ft.maxWidth&&(ot?Oe.maxWidth=(0,I.HM)(Ft.maxWidth):Se&&(Oe.maxWidth="")),me(this._pane.style,Oe)}_getExactOverlayY(J,ae,Oe){let ot={top:"",bottom:""},Se=this._getOverlayPoint(ae,this._overlayRect,J);return this._isPushed&&(Se=this._pushOverlayOnScreen(Se,this._overlayRect,Oe)),"bottom"===J.overlayY?ot.bottom=this._document.documentElement.clientHeight-(Se.y+this._overlayRect.height)+"px":ot.top=(0,I.HM)(Se.y),ot}_getExactOverlayX(J,ae,Oe){let Ft,ot={left:"",right:""},Se=this._getOverlayPoint(ae,this._overlayRect,J);return this._isPushed&&(Se=this._pushOverlayOnScreen(Se,this._overlayRect,Oe)),Ft=this._isRtl()?"end"===J.overlayX?"left":"right":"end"===J.overlayX?"right":"left","right"===Ft?ot.right=this._document.documentElement.clientWidth-(Se.x+this._overlayRect.width)+"px":ot.left=(0,I.HM)(Se.x),ot}_getScrollVisibility(){const J=this._getOriginRect(),ae=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(ot=>ot.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:St(J,Oe),isOriginOutsideView:xt(J,Oe),isOverlayClipped:St(ae,Oe),isOverlayOutsideView:xt(ae,Oe)}}_subtractOverflows(J,...ae){return ae.reduce((Oe,ot)=>Oe-Math.max(ot,0),J)}_getNarrowedViewportRect(){const J=this._document.documentElement.clientWidth,ae=this._document.documentElement.clientHeight,Oe=this._viewportRuler.getViewportScrollPosition();return{top:Oe.top+this._viewportMargin,left:Oe.left+this._viewportMargin,right:Oe.left+J-this._viewportMargin,bottom:Oe.top+ae-this._viewportMargin,width:J-2*this._viewportMargin,height:ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(J,ae){return"x"===ae?null==J.offsetX?this._offsetX:J.offsetX:null==J.offsetY?this._offsetY:J.offsetY}_validatePositions(){}_addPanelClasses(J){this._pane&&(0,I.Eq)(J).forEach(ae=>{""!==ae&&-1===this._appliedPanelClasses.indexOf(ae)&&(this._appliedPanelClasses.push(ae),this._pane.classList.add(ae))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(J=>{this._pane.classList.remove(J)}),this._appliedPanelClasses=[])}_getOriginRect(){const J=this._origin;if(J instanceof D.SBq)return J.nativeElement.getBoundingClientRect();if(J instanceof Element)return J.getBoundingClientRect();const ae=J.width||0,Oe=J.height||0;return{top:J.y,bottom:J.y+Oe,left:J.x,right:J.x+ae,height:Oe,width:ae}}}function me(Ce,J){for(let ae in J)J.hasOwnProperty(ae)&&(Ce[ae]=J[ae]);return Ce}function tt(Ce){if("number"!=typeof Ce&&null!=Ce){const[J,ae]=Ce.split(Ee);return ae&&"px"!==ae?null:parseFloat(J)}return Ce||null}function he(Ce){return{top:Math.floor(Ce.top),right:Math.floor(Ce.right),bottom:Math.floor(Ce.bottom),left:Math.floor(Ce.left),width:Math.floor(Ce.width),height:Math.floor(Ce.height)}}const bt="cdk-global-overlay-wrapper";class Nt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(J){const ae=J.getConfig();this._overlayRef=J,this._width&&!ae.width&&J.updateSize({width:this._width}),this._height&&!ae.height&&J.updateSize({height:this._height}),J.hostElement.classList.add(bt),this._isDisposed=!1}top(J=""){return this._bottomOffset="",this._topOffset=J,this._alignItems="flex-start",this}left(J=""){return this._xOffset=J,this._xPosition="left",this}bottom(J=""){return this._topOffset="",this._bottomOffset=J,this._alignItems="flex-end",this}right(J=""){return this._xOffset=J,this._xPosition="right",this}start(J=""){return this._xOffset=J,this._xPosition="start",this}end(J=""){return this._xOffset=J,this._xPosition="end",this}width(J=""){return this._overlayRef?this._overlayRef.updateSize({width:J}):this._width=J,this}height(J=""){return this._overlayRef?this._overlayRef.updateSize({height:J}):this._height=J,this}centerHorizontally(J=""){return this.left(J),this._xPosition="center",this}centerVertically(J=""){return this.top(J),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const J=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:ot,height:Se,maxWidth:Ft,maxHeight:lt}=Oe,Bt=!("100%"!==ot&&"100vw"!==ot||Ft&&"100%"!==Ft&&"100vw"!==Ft),Ut=!("100%"!==Se&&"100vh"!==Se||lt&&"100%"!==lt&&"100vh"!==lt),fn=this._xPosition,gn=this._xOffset,An="rtl"===this._overlayRef.getConfig().direction;let jn="",ai="",di="";Bt?di="flex-start":"center"===fn?(di="center",An?ai=gn:jn=gn):An?"left"===fn||"end"===fn?(di="flex-end",jn=gn):("right"===fn||"start"===fn)&&(di="flex-start",ai=gn):"left"===fn||"start"===fn?(di="flex-start",jn=gn):("right"===fn||"end"===fn)&&(di="flex-end",ai=gn),J.position=this._cssPosition,J.marginLeft=Bt?"0":jn,J.marginTop=Ut?"0":this._topOffset,J.marginBottom=this._bottomOffset,J.marginRight=Bt?"0":ai,ae.justifyContent=di,ae.alignItems=Ut?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const J=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement,Oe=ae.style;ae.classList.remove(bt),Oe.justifyContent=Oe.alignItems=J.marginTop=J.marginBottom=J.marginLeft=J.marginRight=J.position="",this._overlayRef=null,this._isDisposed=!0}}let Qt=(()=>{class Ce{constructor(ae,Oe,ot,Se){this._viewportRuler=ae,this._document=Oe,this._platform=ot,this._overlayContainer=Se}global(){return new Nt}flexibleConnectedTo(ae){return new $e(ae,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(e.rL),D.LFG(l.K0),D.LFG(S.t4),D.LFG(dt))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),nn=0,Dn=(()=>{class Ce{constructor(ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An,jn){this.scrollStrategies=ae,this._overlayContainer=Oe,this._componentFactoryResolver=ot,this._positionBuilder=Se,this._keyboardDispatcher=Ft,this._injector=lt,this._ngZone=Bt,this._document=Ut,this._directionality=fn,this._location=gn,this._outsideClickDispatcher=An,this._animationsModuleType=jn}create(ae){const Oe=this._createHostElement(),ot=this._createPaneElement(Oe),Se=this._createPortalOutlet(ot),Ft=new un(ae);return Ft.direction=Ft.direction||this._directionality.value,new at(Se,Oe,ot,Ft,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ae){const Oe=this._document.createElement("div");return Oe.id="cdk-overlay-"+nn++,Oe.classList.add("cdk-overlay-pane"),ae.appendChild(Oe),Oe}_createHostElement(){const ae=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ae),ae}_createPortalOutlet(ae){return this._appRef||(this._appRef=this._injector.get(D.z2F)),new te.u0(ae,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(yt),D.LFG(dt),D.LFG(D._Vd),D.LFG(Qt),D.LFG(gi),D.LFG(D.zs3),D.LFG(D.R0b),D.LFG(l.K0),D.LFG(se.Is),D.LFG(l.Ye),D.LFG(Rn),D.LFG(D.QbO,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();const Ot=[{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"}],rn=new D.OlP("cdk-connected-overlay-scroll-strategy");let vn=(()=>{class Ce{constructor(ae){this.elementRef=ae}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.Y36(D.SBq))};static#t=this.\u0275dir=D.lG2({type:Ce,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return Ce})(),ei=(()=>{class Ce{get offsetX(){return this._offsetX}set offsetX(ae){this._offsetX=ae,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ae){this._offsetY=ae,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ae){this._hasBackdrop=(0,I.Ig)(ae)}get lockPosition(){return this._lockPosition}set lockPosition(ae){this._lockPosition=(0,I.Ig)(ae)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ae){this._flexibleDimensions=(0,I.Ig)(ae)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ae){this._growAfterOpen=(0,I.Ig)(ae)}get push(){return this._push}set push(ae){this._push=(0,I.Ig)(ae)}constructor(ae,Oe,ot,Se,Ft){this._overlay=ae,this._dir=Ft,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ce.w0.EMPTY,this._attachSubscription=ce.w0.EMPTY,this._detachSubscription=ce.w0.EMPTY,this._positionSubscription=ce.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new D.vpe,this.positionChange=new D.vpe,this.attach=new D.vpe,this.detach=new D.vpe,this.overlayKeydown=new D.vpe,this.overlayOutsideClick=new D.vpe,this._templatePortal=new te.UE(Oe,ot),this._scrollStrategyFactory=Se,this.scrollStrategy=this._scrollStrategyFactory()}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(ae){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ae.origin&&this.open&&this._position.apply()),ae.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ot);const ae=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ae.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ae.detachments().subscribe(()=>this.detach.emit()),ae.keydownEvents().subscribe(Oe=>{this.overlayKeydown.next(Oe),Oe.keyCode===Re.hY&&!this.disableClose&&!(0,Re.Vb)(Oe)&&(Oe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Oe=>{this.overlayOutsideClick.next(Oe)})}_buildConfig(){const ae=this._position=this.positionStrategy||this._createPositionStrategy(),Oe=new un({direction:this._dir,positionStrategy:ae,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Oe.width=this.width),(this.height||0===this.height)&&(Oe.height=this.height),(this.minWidth||0===this.minWidth)&&(Oe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Oe.minHeight=this.minHeight),this.backdropClass&&(Oe.backdropClass=this.backdropClass),this.panelClass&&(Oe.panelClass=this.panelClass),Oe}_updatePositionStrategy(ae){const Oe=this.positions.map(ot=>({originX:ot.originX,originY:ot.originY,overlayX:ot.overlayX,overlayY:ot.overlayY,offsetX:ot.offsetX||this.offsetX,offsetY:ot.offsetY||this.offsetY,panelClass:ot.panelClass||void 0}));return ae.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Oe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ae=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ae),ae}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof vn?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(ae=>{this.backdropClick.emit(ae)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ue(Ce,J=!1){return(0,ee.e)((ae,Oe)=>{let ot=0;ae.subscribe((0,re.x)(Oe,Se=>{const Ft=Ce(Se,ot++);(Ft||J)&&Oe.next(Se),!Ft&&Oe.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(ae=>{this.positionChange.emit(ae),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.Y36(Dn),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(rn),D.Y36(se.Is,8))};static#t=this.\u0275dir=D.lG2({type:Ce,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"],standalone:!0,features:[D.TTD]})}return Ce})();const Ve={provide:rn,deps:[Dn],useFactory:function Wn(Ce){return()=>Ce.scrollStrategies.reposition()}};let ct=(()=>{class Ce{static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)};static#t=this.\u0275mod=D.oAB({type:Ce});static#n=this.\u0275inj=D.cJS({providers:[Dn,Ve],imports:[se.vT,te.eL,e.Cl,e.Cl]})}return Ce})()},2831:(ft,Ie,C)=>{"use strict";C.d(Ie,{Mq:()=>oe,Oy:()=>je,ht:()=>Ge,i$:()=>ue,kV:()=>mt,sA:()=>Lt,t4:()=>I});var e=C(5879),l=C(6814);let D;try{D=typeof Intl<"u"&&Intl.v8BreakIterator}catch{D=!1}let ee,te,_e,I=(()=>{class Tt{constructor(St){this._platformId=St,this.isBrowser=this._platformId?(0,l.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&&!D)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(Zt){return new(Zt||Tt)(e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"})}return Tt})();function ue(Tt){return function re(){if(null==ee&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ee=!0}))}finally{ee=ee||!1}return ee}()?Tt:!!Tt.capture}function oe(){if(null==te){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return te=!1,te;if("scrollBehavior"in document.documentElement.style)te=!0;else{const Tt=Element.prototype.scrollTo;te=!!Tt&&!/\{\s*\[native code\]\s*\}/.test(Tt.toString())}}return te}function mt(Tt){if(function Re(){if(null==_e){const Tt=typeof document<"u"?document.head:null;_e=!(!Tt||!Tt.createShadowRoot&&!Tt.attachShadow)}return _e}()){const xt=Tt.getRootNode?Tt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&xt instanceof ShadowRoot)return xt}return null}function Ge(){let Tt=typeof document<"u"&&document?document.activeElement:null;for(;Tt&&Tt.shadowRoot;){const xt=Tt.shadowRoot.activeElement;if(xt===Tt)break;Tt=xt}return Tt}function Lt(Tt){return Tt.composedPath?Tt.composedPath()[0]:Tt.target}function je(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(ft,Ie,C)=>{"use strict";C.d(Ie,{C5:()=>re,Pl:()=>Ge,UE:()=>ue,eL:()=>je,en:()=>te,ig:()=>Re,u0:()=>ce});var e=C(5879),l=C(6814);class ee{attach(St){return this._attachedHost=St,St.attach(this)}detach(){let St=this._attachedHost;null!=St&&(this._attachedHost=null,St.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(St){this._attachedHost=St}}class re extends ee{constructor(St,Zt,yt,un,Jt){super(),this.component=St,this.viewContainerRef=Zt,this.injector=yt,this.componentFactoryResolver=un,this.projectableNodes=Jt}}class ue extends ee{constructor(St,Zt,yt,un){super(),this.templateRef=St,this.viewContainerRef=Zt,this.context=yt,this.injector=un}get origin(){return this.templateRef.elementRef}attach(St,Zt=this.context){return this.context=Zt,super.attach(St)}detach(){return this.context=void 0,super.detach()}}class se extends ee{constructor(St){super(),this.element=St instanceof e.SBq?St.nativeElement:St}}class te{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(St){return St instanceof re?(this._attachedPortal=St,this.attachComponentPortal(St)):St instanceof ue?(this._attachedPortal=St,this.attachTemplatePortal(St)):this.attachDomPortal&&St instanceof se?(this._attachedPortal=St,this.attachDomPortal(St)):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(St){this._disposeFn=St}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ce extends te{constructor(St,Zt,yt,un,Jt){super(),this.outletElement=St,this._componentFactoryResolver=Zt,this._appRef=yt,this._defaultInjector=un,this.attachDomPortal=tn=>{const wn=tn.element,Ln=this._document.createComment("dom-portal");wn.parentNode.insertBefore(Ln,wn),this.outletElement.appendChild(wn),this._attachedPortal=tn,super.setDisposeFn(()=>{Ln.parentNode&&Ln.parentNode.replaceChild(wn,Ln)})},this._document=Jt}attachComponentPortal(St){const yt=(St.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(St.component);let un;return St.viewContainerRef?(un=St.viewContainerRef.createComponent(yt,St.viewContainerRef.length,St.injector||St.viewContainerRef.injector,St.projectableNodes||void 0),this.setDisposeFn(()=>un.destroy())):(un=yt.create(St.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(un.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(un.hostView),un.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(un)),this._attachedPortal=St,un}attachTemplatePortal(St){let Zt=St.viewContainerRef,yt=Zt.createEmbeddedView(St.templateRef,St.context,{injector:St.injector});return yt.rootNodes.forEach(un=>this.outletElement.appendChild(un)),yt.detectChanges(),this.setDisposeFn(()=>{let un=Zt.indexOf(yt);-1!==un&&Zt.remove(un)}),this._attachedPortal=St,yt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(St){return St.hostView.rootNodes[0]}}let Re=(()=>{class xt extends ue{constructor(Zt,yt){super(Zt,yt)}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.Y36(e.Rgc),e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:xt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]})}return xt})(),Ge=(()=>{class xt extends te{constructor(Zt,yt,un){super(),this._componentFactoryResolver=Zt,this._viewContainerRef=yt,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=Jt=>{const tn=Jt.element,wn=this._document.createComment("dom-portal");Jt.setAttachedHost(this),tn.parentNode.insertBefore(wn,tn),this._getRootNode().appendChild(tn),this._attachedPortal=Jt,super.setDisposeFn(()=>{wn.parentNode&&wn.parentNode.replaceChild(tn,wn)})},this._document=un}get portal(){return this._attachedPortal}set portal(Zt){this.hasAttached()&&!Zt&&!this._isInitialized||(this.hasAttached()&&super.detach(),Zt&&super.attach(Zt),this._attachedPortal=Zt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Zt){Zt.setAttachedHost(this);const yt=null!=Zt.viewContainerRef?Zt.viewContainerRef:this._viewContainerRef,Jt=(Zt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Zt.component),tn=yt.createComponent(Jt,yt.length,Zt.injector||yt.injector,Zt.projectableNodes||void 0);return yt!==this._viewContainerRef&&this._getRootNode().appendChild(tn.hostView.rootNodes[0]),super.setDisposeFn(()=>tn.destroy()),this._attachedPortal=Zt,this._attachedRef=tn,this.attached.emit(tn),tn}attachTemplatePortal(Zt){Zt.setAttachedHost(this);const yt=this._viewContainerRef.createEmbeddedView(Zt.templateRef,Zt.context,{injector:Zt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Zt,this._attachedRef=yt,this.attached.emit(yt),yt}_getRootNode(){const Zt=this._viewContainerRef.element.nativeElement;return Zt.nodeType===Zt.ELEMENT_NODE?Zt:Zt.parentNode}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(l.K0))};static#t=this.\u0275dir=e.lG2({type:xt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]})}return xt})(),je=(()=>{class xt{static#e=this.\u0275fac=function(yt){return new(yt||xt)};static#t=this.\u0275mod=e.oAB({type:xt});static#n=this.\u0275inj=e.cJS({})}return xt})()},6672:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cl:()=>Rn,ZD:()=>gi,mF:()=>je,rL:()=>St});var e=C(2605),l=C(5879),D=C(8645),I=C(2096),S=C(5592),w=C(2438),ee=(C(927),C(6410),C(9028)),re=C(2181),ue=C(2831),se=C(6814),te=C(9388);let je=(()=>{class dt{constructor(Be,Ee,$e){this._ngZone=Be,this._platform=Ee,this._scrolled=new D.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=$e}register(Be){this.scrollContainers.has(Be)||this.scrollContainers.set(Be,Be.elementScrolled().subscribe(()=>this._scrolled.next(Be)))}deregister(Be){const Ee=this.scrollContainers.get(Be);Ee&&(Ee.unsubscribe(),this.scrollContainers.delete(Be))}scrolled(Be=20){return this._platform.isBrowser?new S.y(Ee=>{this._globalSubscription||this._addGlobalListener();const $e=Be>0?this._scrolled.pipe((0,ee.e)(Be)).subscribe(Ee):this._scrolled.subscribe(Ee);return this._scrolledCount++,()=>{$e.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,I.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Be,Ee)=>this.deregister(Ee)),this._scrolled.complete()}ancestorScrolled(Be,Ee){const $e=this.getAncestorScrollContainers(Be);return this.scrolled(Ee).pipe((0,re.h)(me=>!me||$e.indexOf(me)>-1))}getAncestorScrollContainers(Be){const Ee=[];return this.scrollContainers.forEach(($e,me)=>{this._scrollableContainsElement(me,Be)&&Ee.push(me)}),Ee}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Be,Ee){let $e=(0,e.fI)(Ee),me=Be.getElementRef().nativeElement;do{if($e==me)return!0}while($e=$e.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Be=this._getWindow();return(0,w.R)(Be.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(Ee){return new(Ee||dt)(l.LFG(l.R0b),l.LFG(ue.t4),l.LFG(se.K0,8))};static#t=this.\u0275prov=l.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"})}return dt})(),St=(()=>{class dt{constructor(Be,Ee,$e){this._platform=Be,this._change=new D.x,this._changeListener=me=>{this._change.next(me)},this._document=$e,Ee.runOutsideAngular(()=>{if(Be.isBrowser){const me=this._getWindow();me.addEventListener("resize",this._changeListener),me.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Be=this._getWindow();Be.removeEventListener("resize",this._changeListener),Be.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Be={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Be}getViewportRect(){const Be=this.getViewportScrollPosition(),{width:Ee,height:$e}=this.getViewportSize();return{top:Be.top,left:Be.left,bottom:Be.top+$e,right:Be.left+Ee,height:$e,width:Ee}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Be=this._document,Ee=this._getWindow(),$e=Be.documentElement,me=$e.getBoundingClientRect();return{top:-me.top||Be.body.scrollTop||Ee.scrollY||$e.scrollTop||0,left:-me.left||Be.body.scrollLeft||Ee.scrollX||$e.scrollLeft||0}}change(Be=20){return Be>0?this._change.pipe((0,ee.e)(Be)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Be=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Be.innerWidth,height:Be.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(Ee){return new(Ee||dt)(l.LFG(ue.t4),l.LFG(l.R0b),l.LFG(se.K0,8))};static#t=this.\u0275prov=l.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"})}return dt})(),gi=(()=>{class dt{static#e=this.\u0275fac=function(Ee){return new(Ee||dt)};static#t=this.\u0275mod=l.oAB({type:dt});static#n=this.\u0275inj=l.cJS({})}return dt})(),Rn=(()=>{class dt{static#e=this.\u0275fac=function(Ee){return new(Ee||dt)};static#t=this.\u0275mod=l.oAB({type:dt});static#n=this.\u0275inj=l.cJS({imports:[te.vT,gi,te.vT,gi]})}return dt})()},6814:(ft,Ie,C)=>{"use strict";C.d(Ie,{Do:()=>_e,ED:()=>Ba,EM:()=>Ko,HT:()=>I,JF:()=>Sr,JJ:()=>er,K0:()=>w,Mn:()=>Yn,Mx:()=>Bi,NF:()=>qs,O5:()=>Fr,Ov:()=>Sa,PC:()=>Ds,PM:()=>ba,RF:()=>yr,S$:()=>te,Tn:()=>yt,UT:()=>ti,V_:()=>Z,Ye:()=>Re,ax:()=>br,b0:()=>ce,bD:()=>nr,ez:()=>Ao,mk:()=>tr,n9:()=>Gs,p6:()=>Oe,q:()=>D,sg:()=>br,tP:()=>$s,uU:()=>dr,w_:()=>S,x:()=>Zt});var e=C(5879);let l=null;function D(){return l}function I(K){l||(l=K)}class S{}const w=new e.OlP("DocumentToken");let n=(()=>{class K{historyGo(ge){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return(0,e.f3M)(ee)},providedIn:"platform"})}return K})();const Z=new e.OlP("Location Initialized");let ee=(()=>{class K extends n{constructor(){super(),this._doc=(0,e.f3M)(w),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(ge){const Ne=D().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("popstate",ge,!1),()=>Ne.removeEventListener("popstate",ge)}onHashChange(ge){const Ne=D().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("hashchange",ge,!1),()=>Ne.removeEventListener("hashchange",ge)}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(ge){this._location.pathname=ge}pushState(ge,Ne,kt){this._history.pushState(ge,Ne,kt)}replaceState(ge,Ne,kt){this._history.replaceState(ge,Ne,kt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ge=0){this._history.go(ge)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return new K},providedIn:"platform"})}return K})();function re(K,Ue){if(0==K.length)return Ue;if(0==Ue.length)return K;let ge=0;return K.endsWith("/")&&ge++,Ue.startsWith("/")&&ge++,2==ge?K+Ue.substring(1):1==ge?K+Ue:K+"/"+Ue}function ue(K){const Ue=K.match(/#|\?|$/),ge=Ue&&Ue.index||K.length;return K.slice(0,ge-("/"===K[ge-1]?1:0))+K.slice(ge)}function se(K){return K&&"?"!==K[0]?"?"+K:K}let te=(()=>{class K{historyGo(ge){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return(0,e.f3M)(ce)},providedIn:"root"})}return K})();const oe=new e.OlP("appBaseHref");let ce=(()=>{class K extends te{constructor(ge,Ne){super(),this._platformLocation=ge,this._removeListenerFns=[],this._baseHref=Ne??this._platformLocation.getBaseHrefFromDOM()??(0,e.f3M)(w).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ge){this._removeListenerFns.push(this._platformLocation.onPopState(ge),this._platformLocation.onHashChange(ge))}getBaseHref(){return this._baseHref}prepareExternalUrl(ge){return re(this._baseHref,ge)}path(ge=!1){const Ne=this._platformLocation.pathname+se(this._platformLocation.search),kt=this._platformLocation.hash;return kt&&ge?`${Ne}${kt}`:Ne}pushState(ge,Ne,kt,pn){const Sn=this.prepareExternalUrl(kt+se(pn));this._platformLocation.pushState(ge,Ne,Sn)}replaceState(ge,Ne,kt,pn){const Sn=this.prepareExternalUrl(kt+se(pn));this._platformLocation.replaceState(ge,Ne,Sn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ge=0){this._platformLocation.historyGo?.(ge)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(n),e.LFG(oe,8))};static#t=this.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})(),_e=(()=>{class K extends te{constructor(ge,Ne){super(),this._platformLocation=ge,this._baseHref="",this._removeListenerFns=[],null!=Ne&&(this._baseHref=Ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ge){this._removeListenerFns.push(this._platformLocation.onPopState(ge),this._platformLocation.onHashChange(ge))}getBaseHref(){return this._baseHref}path(ge=!1){let Ne=this._platformLocation.hash;return null==Ne&&(Ne="#"),Ne.length>0?Ne.substring(1):Ne}prepareExternalUrl(ge){const Ne=re(this._baseHref,ge);return Ne.length>0?"#"+Ne:Ne}pushState(ge,Ne,kt,pn){let Sn=this.prepareExternalUrl(kt+se(pn));0==Sn.length&&(Sn=this._platformLocation.pathname),this._platformLocation.pushState(ge,Ne,Sn)}replaceState(ge,Ne,kt,pn){let Sn=this.prepareExternalUrl(kt+se(pn));0==Sn.length&&(Sn=this._platformLocation.pathname),this._platformLocation.replaceState(ge,Ne,Sn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ge=0){this._platformLocation.historyGo?.(ge)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(n),e.LFG(oe,8))};static#t=this.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac})}return K})(),Re=(()=>{class K{constructor(ge){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ge;const Ne=this._locationStrategy.getBaseHref();this._basePath=function je(K){if(new RegExp("^(https?:)?//").test(K)){const[,ge]=K.split(/\/\/[^\/]+/);return ge}return K}(ue(Lt(Ne))),this._locationStrategy.onPopState(kt=>{this._subject.emit({url:this.path(!0),pop:!0,state:kt.state,type:kt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(ge=!1){return this.normalize(this._locationStrategy.path(ge))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ge,Ne=""){return this.path()==this.normalize(ge+se(Ne))}normalize(ge){return K.stripTrailingSlash(function Ge(K,Ue){if(!K||!Ue.startsWith(K))return Ue;const ge=Ue.substring(K.length);return""===ge||["/",";","?","#"].includes(ge[0])?ge:Ue}(this._basePath,Lt(ge)))}prepareExternalUrl(ge){return ge&&"/"!==ge[0]&&(ge="/"+ge),this._locationStrategy.prepareExternalUrl(ge)}go(ge,Ne="",kt=null){this._locationStrategy.pushState(kt,"",ge,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(ge+se(Ne)),kt)}replaceState(ge,Ne="",kt=null){this._locationStrategy.replaceState(kt,"",ge,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(ge+se(Ne)),kt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ge=0){this._locationStrategy.historyGo?.(ge)}onUrlChange(ge){return this._urlChangeListeners.push(ge),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ne=>{this._notifyUrlChangeListeners(Ne.url,Ne.state)})),()=>{const Ne=this._urlChangeListeners.indexOf(ge);this._urlChangeListeners.splice(Ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ge="",Ne){this._urlChangeListeners.forEach(kt=>kt(ge,Ne))}subscribe(ge,Ne,kt){return this._subject.subscribe({next:ge,error:Ne,complete:kt})}static#e=this.normalizeQueryParams=se;static#t=this.joinWithSlash=re;static#n=this.stripTrailingSlash=ue;static#i=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(te))};static#r=this.\u0275prov=e.Yz7({token:K,factory:function(){return function mt(){return new Re((0,e.LFG)(te))}()},providedIn:"root"})}return K})();function Lt(K){return K.replace(/\/index.html$/,"")}var xt=function(K){return K[K.Decimal=0]="Decimal",K[K.Percent=1]="Percent",K[K.Currency=2]="Currency",K[K.Scientific=3]="Scientific",K}(xt||{}),Zt=function(K){return K[K.Format=0]="Format",K[K.Standalone=1]="Standalone",K}(Zt||{}),yt=function(K){return K[K.Narrow=0]="Narrow",K[K.Abbreviated=1]="Abbreviated",K[K.Wide=2]="Wide",K[K.Short=3]="Short",K}(yt||{}),un=function(K){return K[K.Short=0]="Short",K[K.Medium=1]="Medium",K[K.Long=2]="Long",K[K.Full=3]="Full",K}(un||{}),Jt=function(K){return K[K.Decimal=0]="Decimal",K[K.Group=1]="Group",K[K.List=2]="List",K[K.PercentSign=3]="PercentSign",K[K.PlusSign=4]="PlusSign",K[K.MinusSign=5]="MinusSign",K[K.Exponential=6]="Exponential",K[K.SuperscriptingExponent=7]="SuperscriptingExponent",K[K.PerMille=8]="PerMille",K[K.Infinity=9]="Infinity",K[K.NaN=10]="NaN",K[K.TimeSeparator=11]="TimeSeparator",K[K.CurrencyDecimal=12]="CurrencyDecimal",K[K.CurrencyGroup=13]="CurrencyGroup",K}(Jt||{});function Yn(K,Ue,ge){const Ne=(0,e.cg1)(K),pn=Ot([Ne[e.wAp.DaysFormat],Ne[e.wAp.DaysStandalone]],Ue);return Ot(pn,ge)}function ti(K,Ue,ge){const Ne=(0,e.cg1)(K),pn=Ot([Ne[e.wAp.MonthsFormat],Ne[e.wAp.MonthsStandalone]],Ue);return Ot(pn,ge)}function at(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.DateFormat],Ue)}function Be(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.TimeFormat],Ue)}function Ee(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.DateTimeFormat],Ue)}function $e(K,Ue){const ge=(0,e.cg1)(K),Ne=ge[e.wAp.NumberSymbols][Ue];if(typeof Ne>"u"){if(Ue===Jt.CurrencyDecimal)return ge[e.wAp.NumberSymbols][Jt.Decimal];if(Ue===Jt.CurrencyGroup)return ge[e.wAp.NumberSymbols][Jt.Group]}return Ne}function Nt(K){if(!K[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${K[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ot(K,Ue){for(let ge=Ue;ge>-1;ge--)if(typeof K[ge]<"u")return K[ge];throw new Error("Locale data API: locale data undefined")}function rn(K){const[Ue,ge]=K.split(":");return{hours:+Ue,minutes:+ge}}const Ve=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ct={},Ct=/((?:[^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 Ce=function(K){return K[K.Short=0]="Short",K[K.ShortGMT=1]="ShortGMT",K[K.Long=2]="Long",K[K.Extended=3]="Extended",K}(Ce||{}),J=function(K){return K[K.FullYear=0]="FullYear",K[K.Month=1]="Month",K[K.Date=2]="Date",K[K.Hours=3]="Hours",K[K.Minutes=4]="Minutes",K[K.Seconds=5]="Seconds",K[K.FractionalSeconds=6]="FractionalSeconds",K[K.Day=7]="Day",K}(J||{}),ae=function(K){return K[K.DayPeriods=0]="DayPeriods",K[K.Days=1]="Days",K[K.Months=2]="Months",K[K.Eras=3]="Eras",K}(ae||{});function Oe(K,Ue,ge,Ne){let kt=function We(K){if(be(K))return K;if("number"==typeof K&&!isNaN(K))return new Date(K);if("string"==typeof K){if(K=K.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(K)){const[kt,pn=1,Sn=1]=K.split("-").map(li=>+li);return ot(kt,pn-1,Sn)}const ge=parseFloat(K);if(!isNaN(K-ge))return new Date(ge);let Ne;if(Ne=K.match(Ve))return function ze(K){const Ue=new Date(0);let ge=0,Ne=0;const kt=K[8]?Ue.setUTCFullYear:Ue.setFullYear,pn=K[8]?Ue.setUTCHours:Ue.setHours;K[9]&&(ge=Number(K[9]+K[10]),Ne=Number(K[9]+K[11])),kt.call(Ue,Number(K[1]),Number(K[2])-1,Number(K[3]));const Sn=Number(K[4]||0)-ge,li=Number(K[5]||0)-Ne,ur=Number(K[6]||0),hr=Math.floor(1e3*parseFloat("0."+(K[7]||0)));return pn.call(Ue,Sn,li,ur,hr),Ue}(Ne)}const Ue=new Date(K);if(!be(Ue))throw new Error(`Unable to convert "${K}" into a date`);return Ue}(K);Ue=Se(ge,Ue)||Ue;let li,Sn=[];for(;Ue;){if(li=Ct.exec(Ue),!li){Sn.push(Ue);break}{Sn=Sn.concat(li.slice(1));const ar=Sn.pop();if(!ar)break;Ue=ar}}let ur=kt.getTimezoneOffset();Ne&&(ur=ve(Ne,ur),kt=function ut(K,Ue,ge){const Ne=ge?-1:1,kt=K.getTimezoneOffset();return function Pe(K,Ue){return(K=new Date(K.getTime())).setMinutes(K.getMinutes()+Ue),K}(K,Ne*(ve(Ue,kt)-kt))}(kt,Ne,!0));let hr="";return Sn.forEach(ar=>{const xi=function U(K){if(G[K])return G[K];let Ue;switch(K){case"G":case"GG":case"GGG":Ue=gn(ae.Eras,yt.Abbreviated);break;case"GGGG":Ue=gn(ae.Eras,yt.Wide);break;case"GGGGG":Ue=gn(ae.Eras,yt.Narrow);break;case"y":Ue=Ut(J.FullYear,1,0,!1,!0);break;case"yy":Ue=Ut(J.FullYear,2,0,!0,!0);break;case"yyy":Ue=Ut(J.FullYear,3,0,!1,!0);break;case"yyyy":Ue=Ut(J.FullYear,4,0,!1,!0);break;case"Y":Ue=_t(1);break;case"YY":Ue=_t(2,!0);break;case"YYY":Ue=_t(3);break;case"YYYY":Ue=_t(4);break;case"M":case"L":Ue=Ut(J.Month,1,1);break;case"MM":case"LL":Ue=Ut(J.Month,2,1);break;case"MMM":Ue=gn(ae.Months,yt.Abbreviated);break;case"MMMM":Ue=gn(ae.Months,yt.Wide);break;case"MMMMM":Ue=gn(ae.Months,yt.Narrow);break;case"LLL":Ue=gn(ae.Months,yt.Abbreviated,Zt.Standalone);break;case"LLLL":Ue=gn(ae.Months,yt.Wide,Zt.Standalone);break;case"LLLLL":Ue=gn(ae.Months,yt.Narrow,Zt.Standalone);break;case"w":Ue=qt(1);break;case"ww":Ue=qt(2);break;case"W":Ue=qt(1,!0);break;case"d":Ue=Ut(J.Date,1);break;case"dd":Ue=Ut(J.Date,2);break;case"c":case"cc":Ue=Ut(J.Day,1);break;case"ccc":Ue=gn(ae.Days,yt.Abbreviated,Zt.Standalone);break;case"cccc":Ue=gn(ae.Days,yt.Wide,Zt.Standalone);break;case"ccccc":Ue=gn(ae.Days,yt.Narrow,Zt.Standalone);break;case"cccccc":Ue=gn(ae.Days,yt.Short,Zt.Standalone);break;case"E":case"EE":case"EEE":Ue=gn(ae.Days,yt.Abbreviated);break;case"EEEE":Ue=gn(ae.Days,yt.Wide);break;case"EEEEE":Ue=gn(ae.Days,yt.Narrow);break;case"EEEEEE":Ue=gn(ae.Days,yt.Short);break;case"a":case"aa":case"aaa":Ue=gn(ae.DayPeriods,yt.Abbreviated);break;case"aaaa":Ue=gn(ae.DayPeriods,yt.Wide);break;case"aaaaa":Ue=gn(ae.DayPeriods,yt.Narrow);break;case"b":case"bb":case"bbb":Ue=gn(ae.DayPeriods,yt.Abbreviated,Zt.Standalone,!0);break;case"bbbb":Ue=gn(ae.DayPeriods,yt.Wide,Zt.Standalone,!0);break;case"bbbbb":Ue=gn(ae.DayPeriods,yt.Narrow,Zt.Standalone,!0);break;case"B":case"BB":case"BBB":Ue=gn(ae.DayPeriods,yt.Abbreviated,Zt.Format,!0);break;case"BBBB":Ue=gn(ae.DayPeriods,yt.Wide,Zt.Format,!0);break;case"BBBBB":Ue=gn(ae.DayPeriods,yt.Narrow,Zt.Format,!0);break;case"h":Ue=Ut(J.Hours,1,-12);break;case"hh":Ue=Ut(J.Hours,2,-12);break;case"H":Ue=Ut(J.Hours,1);break;case"HH":Ue=Ut(J.Hours,2);break;case"m":Ue=Ut(J.Minutes,1);break;case"mm":Ue=Ut(J.Minutes,2);break;case"s":Ue=Ut(J.Seconds,1);break;case"ss":Ue=Ut(J.Seconds,2);break;case"S":Ue=Ut(J.FractionalSeconds,1);break;case"SS":Ue=Ut(J.FractionalSeconds,2);break;case"SSS":Ue=Ut(J.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ue=jn(Ce.Short);break;case"ZZZZZ":Ue=jn(Ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ue=jn(Ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ue=jn(Ce.Long);break;default:return null}return G[K]=Ue,Ue}(ar);hr+=xi?xi(kt,ge,ur):"''"===ar?"'":ar.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),hr}function ot(K,Ue,ge){const Ne=new Date(0);return Ne.setFullYear(K,Ue,ge),Ne.setHours(0,0,0),Ne}function Se(K,Ue){const ge=function wn(K){return(0,e.cg1)(K)[e.wAp.LocaleId]}(K);if(ct[ge]=ct[ge]||{},ct[ge][Ue])return ct[ge][Ue];let Ne="";switch(Ue){case"shortDate":Ne=at(K,un.Short);break;case"mediumDate":Ne=at(K,un.Medium);break;case"longDate":Ne=at(K,un.Long);break;case"fullDate":Ne=at(K,un.Full);break;case"shortTime":Ne=Be(K,un.Short);break;case"mediumTime":Ne=Be(K,un.Medium);break;case"longTime":Ne=Be(K,un.Long);break;case"fullTime":Ne=Be(K,un.Full);break;case"short":const kt=Se(K,"shortTime"),pn=Se(K,"shortDate");Ne=Ft(Ee(K,un.Short),[kt,pn]);break;case"medium":const Sn=Se(K,"mediumTime"),li=Se(K,"mediumDate");Ne=Ft(Ee(K,un.Medium),[Sn,li]);break;case"long":const ur=Se(K,"longTime"),hr=Se(K,"longDate");Ne=Ft(Ee(K,un.Long),[ur,hr]);break;case"full":const ar=Se(K,"fullTime"),xi=Se(K,"fullDate");Ne=Ft(Ee(K,un.Full),[ar,xi])}return Ne&&(ct[ge][Ue]=Ne),Ne}function Ft(K,Ue){return Ue&&(K=K.replace(/\{([^}]+)}/g,function(ge,Ne){return null!=Ue&&Ne in Ue?Ue[Ne]:ge})),K}function lt(K,Ue,ge="-",Ne,kt){let pn="";(K<0||kt&&K<=0)&&(kt?K=1-K:(K=-K,pn=ge));let Sn=String(K);for(;Sn.length0||li>-ge)&&(li+=ge),K===J.Hours)0===li&&-12===ge&&(li=12);else if(K===J.FractionalSeconds)return function Bt(K,Ue){return lt(K,3).substring(0,Ue)}(li,Ue);const ur=$e(Sn,Jt.MinusSign);return lt(li,Ue,ur,Ne,kt)}}function gn(K,Ue,ge=Zt.Format,Ne=!1){return function(kt,pn){return function An(K,Ue,ge,Ne,kt,pn){switch(ge){case ae.Months:return ti(Ue,kt,Ne)[K.getMonth()];case ae.Days:return Yn(Ue,kt,Ne)[K.getDay()];case ae.DayPeriods:const Sn=K.getHours(),li=K.getMinutes();if(pn){const hr=function Qt(K){const Ue=(0,e.cg1)(K);return Nt(Ue),(Ue[e.wAp.ExtraData][2]||[]).map(Ne=>"string"==typeof Ne?rn(Ne):[rn(Ne[0]),rn(Ne[1])])}(Ue),ar=function nn(K,Ue,ge){const Ne=(0,e.cg1)(K);Nt(Ne);const pn=Ot([Ne[e.wAp.ExtraData][0],Ne[e.wAp.ExtraData][1]],Ue)||[];return Ot(pn,ge)||[]}(Ue,kt,Ne),xi=hr.findIndex(Ar=>{if(Array.isArray(Ar)){const[Nr,mr]=Ar,vs=Sn>=Nr.hours&&li>=Nr.minutes,bs=Sn0?Math.floor(kt/60):Math.ceil(kt/60);switch(K){case Ce.Short:return(kt>=0?"+":"")+lt(Sn,2,pn)+lt(Math.abs(kt%60),2,pn);case Ce.ShortGMT:return"GMT"+(kt>=0?"+":"")+lt(Sn,1,pn);case Ce.Long:return"GMT"+(kt>=0?"+":"")+lt(Sn,2,pn)+":"+lt(Math.abs(kt%60),2,pn);case Ce.Extended:return 0===Ne?"Z":(kt>=0?"+":"")+lt(Sn,2,pn)+":"+lt(Math.abs(kt%60),2,pn);default:throw new Error(`Unknown zone width "${K}"`)}}}const ai=0,di=4;function Jn(K){return ot(K.getFullYear(),K.getMonth(),K.getDate()+(di-K.getDay()))}function qt(K,Ue=!1){return function(ge,Ne){let kt;if(Ue){const pn=new Date(ge.getFullYear(),ge.getMonth(),1).getDay()-1,Sn=ge.getDate();kt=1+Math.floor((Sn+pn)/7)}else{const pn=Jn(ge),Sn=function oi(K){const Ue=ot(K,ai,1).getDay();return ot(K,0,1+(Ue<=di?di:di+7)-Ue)}(pn.getFullYear()),li=pn.getTime()-Sn.getTime();kt=1+Math.round(li/6048e5)}return lt(kt,K,$e(Ne,Jt.MinusSign))}}function _t(K,Ue=!1){return function(ge,Ne){return lt(Jn(ge).getFullYear(),K,$e(Ne,Jt.MinusSign),Ue)}}const G={};function ve(K,Ue){K=K.replace(/:/g,"");const ge=Date.parse("Jan 01, 1970 00:00:00 "+K)/6e4;return isNaN(ge)?Ue:ge}function be(K){return K instanceof Date&&!isNaN(K.valueOf())}const Te=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Vn(K){const Ue=parseInt(K);if(isNaN(Ue))throw new Error("Invalid integer literal when parsing "+K);return Ue}function Bi(K,Ue){Ue=encodeURIComponent(Ue);for(const ge of K.split(";")){const Ne=ge.indexOf("="),[kt,pn]=-1==Ne?[ge,""]:[ge.slice(0,Ne),ge.slice(Ne+1)];if(kt.trim()===Ue)return decodeURIComponent(pn)}return null}const co=/\s+/,Ji=[];let tr=(()=>{class K{constructor(ge,Ne,kt,pn){this._iterableDiffers=ge,this._keyValueDiffers=Ne,this._ngEl=kt,this._renderer=pn,this.initialClasses=Ji,this.stateMap=new Map}set klass(ge){this.initialClasses=null!=ge?ge.trim().split(co):Ji}set ngClass(ge){this.rawClass="string"==typeof ge?ge.trim().split(co):ge}ngDoCheck(){for(const Ne of this.initialClasses)this._updateState(Ne,!0);const ge=this.rawClass;if(Array.isArray(ge)||ge instanceof Set)for(const Ne of ge)this._updateState(Ne,!0);else if(null!=ge)for(const Ne of Object.keys(ge))this._updateState(Ne,!!ge[Ne]);this._applyStateDiff()}_updateState(ge,Ne){const kt=this.stateMap.get(ge);void 0!==kt?(kt.enabled!==Ne&&(kt.changed=!0,kt.enabled=Ne),kt.touched=!0):this.stateMap.set(ge,{enabled:Ne,changed:!0,touched:!0})}_applyStateDiff(){for(const ge of this.stateMap){const Ne=ge[0],kt=ge[1];kt.changed?(this._toggleClass(Ne,kt.enabled),kt.changed=!1):kt.touched||(kt.enabled&&this._toggleClass(Ne,!1),this.stateMap.delete(Ne)),kt.touched=!1}}_toggleClass(ge,Ne){(ge=ge.trim()).length>0&&ge.split(co).forEach(kt=>{Ne?this._renderer.addClass(this._ngEl.nativeElement,kt):this._renderer.removeClass(this._ngEl.nativeElement,kt)})}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return K})();class pr{constructor(Ue,ge,Ne,kt){this.$implicit=Ue,this.ngForOf=ge,this.index=Ne,this.count=kt}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 br=(()=>{class K{set ngForOf(ge){this._ngForOf=ge,this._ngForOfDirty=!0}set ngForTrackBy(ge){this._trackByFn=ge}get ngForTrackBy(){return this._trackByFn}constructor(ge,Ne,kt){this._viewContainer=ge,this._template=Ne,this._differs=kt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(ge){ge&&(this._template=ge)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ge=this._ngForOf;!this._differ&&ge&&(this._differ=this._differs.find(ge).create(this.ngForTrackBy))}if(this._differ){const ge=this._differ.diff(this._ngForOf);ge&&this._applyChanges(ge)}}_applyChanges(ge){const Ne=this._viewContainer;ge.forEachOperation((kt,pn,Sn)=>{if(null==kt.previousIndex)Ne.createEmbeddedView(this._template,new pr(kt.item,this._ngForOf,-1,-1),null===Sn?void 0:Sn);else if(null==Sn)Ne.remove(null===pn?void 0:pn);else if(null!==pn){const li=Ne.get(pn);Ne.move(li,Sn),$n(li,kt)}});for(let kt=0,pn=Ne.length;kt{$n(Ne.get(kt.currentIndex),kt)})}static ngTemplateContextGuard(ge,Ne){return!0}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return K})();function $n(K,Ue){K.context.$implicit=Ue.item}let Fr=(()=>{class K{constructor(ge,Ne){this._viewContainer=ge,this._context=new uo,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ne}set ngIf(ge){this._context.$implicit=this._context.ngIf=ge,this._updateView()}set ngIfThen(ge){ho("ngIfThen",ge),this._thenTemplateRef=ge,this._thenViewRef=null,this._updateView()}set ngIfElse(ge){ho("ngIfElse",ge),this._elseTemplateRef=ge,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(ge,Ne){return!0}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return K})();class uo{constructor(){this.$implicit=null,this.ngIf=null}}function ho(K,Ue){if(Ue&&!Ue.createEmbeddedView)throw new Error(`${K} must be a TemplateRef, but received '${(0,e.AaK)(Ue)}'.`)}class to{constructor(Ue,ge){this._viewContainerRef=Ue,this._templateRef=ge,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ue){Ue&&!this._created?this.create():!Ue&&this._created&&this.destroy()}}let yr=(()=>{class K{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(ge){this._ngSwitch=ge,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ge){this._defaultViews.push(ge)}_matchCase(ge){const Ne=ge==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ne}_updateDefaultCases(ge){if(this._defaultViews.length>0&&ge!==this._defaultUsed){this._defaultUsed=ge;for(const Ne of this._defaultViews)Ne.enforceState(ge)}}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return K})(),Gs=(()=>{class K{constructor(ge,Ne,kt){this.ngSwitch=kt,kt._addCase(),this._view=new to(ge,Ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(yr,9))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return K})(),Ba=(()=>{class K{constructor(ge,Ne,kt){kt._addDefault(new to(ge,Ne))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(yr,9))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return K})(),Ds=(()=>{class K{constructor(ge,Ne,kt){this._ngEl=ge,this._differs=Ne,this._renderer=kt,this._ngStyle=null,this._differ=null}set ngStyle(ge){this._ngStyle=ge,!this._differ&&ge&&(this._differ=this._differs.find(ge).create())}ngDoCheck(){if(this._differ){const ge=this._differ.diff(this._ngStyle);ge&&this._applyChanges(ge)}}_setStyle(ge,Ne){const[kt,pn]=ge.split("."),Sn=-1===kt.indexOf("-")?void 0:e.JOm.DashCase;null!=Ne?this._renderer.setStyle(this._ngEl.nativeElement,kt,pn?`${Ne}${pn}`:Ne,Sn):this._renderer.removeStyle(this._ngEl.nativeElement,kt,Sn)}_applyChanges(ge){ge.forEachRemovedItem(Ne=>this._setStyle(Ne.key,null)),ge.forEachAddedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue)),ge.forEachChangedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return K})(),$s=(()=>{class K{constructor(ge){this._viewContainerRef=ge,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(ge){if(ge.ngTemplateOutlet||ge.ngTemplateOutletInjector){const Ne=this._viewContainerRef;if(this._viewRef&&Ne.remove(Ne.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:kt,ngTemplateOutletContext:pn,ngTemplateOutletInjector:Sn}=this;this._viewRef=Ne.createEmbeddedView(kt,pn,Sn?{injector:Sn}:void 0)}else this._viewRef=null}else this._viewRef&&ge.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]})}return K})();function Jr(K,Ue){return new e.vHH(2100,!1)}class ga{createSubscription(Ue,ge){return(0,e.rg0)(()=>Ue.subscribe({next:ge,error:Ne=>{throw Ne}}))}dispose(Ue){(0,e.rg0)(()=>Ue.unsubscribe())}}class kr{createSubscription(Ue,ge){return Ue.then(ge,Ne=>{throw Ne})}dispose(Ue){}}const oo=new kr,fs=new ga;let Sa=(()=>{class K{constructor(ge){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ge}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ge){return this._obj?ge!==this._obj?(this._dispose(),this.transform(ge)):this._latestValue:(ge&&this._subscribe(ge),this._latestValue)}_subscribe(ge){this._obj=ge,this._strategy=this._selectStrategy(ge),this._subscription=this._strategy.createSubscription(ge,Ne=>this._updateLatestValue(ge,Ne))}_selectStrategy(ge){if((0,e.QGY)(ge))return oo;if((0,e.F4k)(ge))return fs;throw Jr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ge,Ne){ge===this._obj&&(this._latestValue=Ne,this._ref.markForCheck())}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.sBO,16))};static#t=this.\u0275pipe=e.Yjl({name:"async",type:K,pure:!1,standalone:!0})}return K})();const Li=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Yr=new e.OlP("DATE_PIPE_DEFAULT_OPTIONS");let dr=(()=>{class K{constructor(ge,Ne,kt){this.locale=ge,this.defaultTimezone=Ne,this.defaultOptions=kt}transform(ge,Ne,kt,pn){if(null==ge||""===ge||ge!=ge)return null;try{return Oe(ge,Ne??this.defaultOptions?.dateFormat??"mediumDate",pn||this.locale,kt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Sn){throw Jr()}}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.soG,16),e.Y36(Li,24),e.Y36(Yr,24))};static#t=this.\u0275pipe=e.Yjl({name:"date",type:K,pure:!0,standalone:!0})}return K})(),er=(()=>{class K{constructor(ge){this._locale=ge}transform(ge,Ne,kt){if(!function _r(K){return!(null==K||""===K||K!=K)}(ge))return null;kt=kt||this._locale;try{return function cn(K,Ue,ge){return function ht(K,Ue,ge,Ne,kt,pn,Sn=!1){let li="",ur=!1;if(isFinite(K)){let hr=function On(K){let Ne,kt,pn,Sn,li,Ue=Math.abs(K)+"",ge=0;for((kt=Ue.indexOf("."))>-1&&(Ue=Ue.replace(".","")),(pn=Ue.search(/e/i))>0?(kt<0&&(kt=pn),kt+=+Ue.slice(pn+1),Ue=Ue.substring(0,pn)):kt<0&&(kt=Ue.length),pn=0;"0"===Ue.charAt(pn);pn++);if(pn===(li=Ue.length))Ne=[0],kt=1;else{for(li--;"0"===Ue.charAt(li);)li--;for(kt-=pn,Ne=[],Sn=0;pn<=li;pn++,Sn++)Ne[Sn]=Number(Ue.charAt(pn))}return kt>22&&(Ne=Ne.splice(0,21),ge=kt-1,kt=1),{digits:Ne,exponent:ge,integerLen:kt}}(K);Sn&&(hr=function En(K){if(0===K.digits[0])return K;const Ue=K.digits.length-K.integerLen;return K.exponent?K.exponent+=2:(0===Ue?K.digits.push(0,0):1===Ue&&K.digits.push(0),K.integerLen+=2),K}(hr));let ar=Ue.minInt,xi=Ue.minFrac,Ar=Ue.maxFrac;if(pn){const Ui=pn.match(Te);if(null===Ui)throw new Error(`${pn} is not a valid digit info`);const Ma=Ui[1],Qr=Ui[3],zr=Ui[5];null!=Ma&&(ar=Vn(Ma)),null!=Qr&&(xi=Vn(Qr)),null!=zr?Ar=Vn(zr):null!=Qr&&xi>Ar&&(Ar=xi)}!function ni(K,Ue,ge){if(Ue>ge)throw new Error(`The minimum number of digits after fraction (${Ue}) is higher than the maximum (${ge}).`);let Ne=K.digits,kt=Ne.length-K.integerLen;const pn=Math.min(Math.max(Ue,kt),ge);let Sn=pn+K.integerLen,li=Ne[Sn];if(Sn>0){Ne.splice(Math.max(K.integerLen,Sn));for(let xi=Sn;xi=5)if(Sn-1<0){for(let xi=0;xi>Sn;xi--)Ne.unshift(0),K.integerLen++;Ne.unshift(1),K.integerLen++}else Ne[Sn-1]++;for(;kt=hr?mr.pop():ur=!1),Ar>=10?1:0},0);ar&&(Ne.unshift(ar),K.integerLen++)}(hr,xi,Ar);let Nr=hr.digits,mr=hr.integerLen;const vs=hr.exponent;let bs=[];for(ur=Nr.every(Ui=>!Ui);mr0?bs=Nr.splice(mr,Nr.length):(bs=Nr,Nr=[0]);const $a=[];for(Nr.length>=Ue.lgSize&&$a.unshift(Nr.splice(-Ue.lgSize,Nr.length).join(""));Nr.length>Ue.gSize;)$a.unshift(Nr.splice(-Ue.gSize,Nr.length).join(""));Nr.length&&$a.unshift(Nr.join("")),li=$a.join($e(ge,Ne)),bs.length&&(li+=$e(ge,kt)+bs.join("")),vs&&(li+=$e(ge,Jt.Exponential)+"+"+vs)}else li=$e(ge,Jt.Infinity);return li=K<0&&!ur?Ue.negPre+li+Ue.negSuf:Ue.posPre+li+Ue.posSuf,li}(K,function _n(K,Ue="-"){const ge={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ne=K.split(";"),kt=Ne[0],pn=Ne[1],Sn=-1!==kt.indexOf(".")?kt.split("."):[kt.substring(0,kt.lastIndexOf("0")+1),kt.substring(kt.lastIndexOf("0")+1)],li=Sn[0],ur=Sn[1]||"";ge.posPre=li.substring(0,li.indexOf("#"));for(let ar=0;ar{class K{static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275mod=e.oAB({type:K});static#n=this.\u0275inj=e.cJS({})}return K})();const nr="browser",ps="server";function qs(K){return K===nr}function ba(K){return K===ps}let Ko=(()=>{class K{static#e=this.\u0275prov=(0,e.Yz7)({token:K,providedIn:"root",factory:()=>new or((0,e.LFG)(w),window)})}return K})();class or{constructor(Ue,ge){this.document=Ue,this.window=ge,this.offset=()=>[0,0]}setOffset(Ue){this.offset=Array.isArray(Ue)?()=>Ue:Ue}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ue){this.supportsScrolling()&&this.window.scrollTo(Ue[0],Ue[1])}scrollToAnchor(Ue){if(!this.supportsScrolling())return;const ge=function Xs(K,Ue){const ge=K.getElementById(Ue)||K.getElementsByName(Ue)[0];if(ge)return ge;if("function"==typeof K.createTreeWalker&&K.body&&"function"==typeof K.body.attachShadow){const Ne=K.createTreeWalker(K.body,NodeFilter.SHOW_ELEMENT);let kt=Ne.currentNode;for(;kt;){const pn=kt.shadowRoot;if(pn){const Sn=pn.getElementById(Ue)||pn.querySelector(`[name="${Ue}"]`);if(Sn)return Sn}kt=Ne.nextNode()}}return null}(this.document,Ue);ge&&(this.scrollToElement(ge),ge.focus())}setHistoryScrollRestoration(Ue){this.supportsScrolling()&&(this.window.history.scrollRestoration=Ue)}scrollToElement(Ue){const ge=Ue.getBoundingClientRect(),Ne=ge.left+this.window.pageXOffset,kt=ge.top+this.window.pageYOffset,pn=this.offset();this.window.scrollTo(Ne-pn[0],kt-pn[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Sr{}},9862:(ft,Ie,C)=>{"use strict";C.d(Ie,{JF:()=>Te,TP:()=>Nt,UA:()=>gi,WM:()=>te,eN:()=>dt});var e=C(5879),l=C(2096),D=C(9666),I=C(5592),S=C(6328),w=C(2181),n=C(7398),Z=C(4716),ee=C(4664),re=C(6814);class ue{}class se{}class te{constructor(st){this.normalizedNames=new Map,this.lazyUpdate=null,st?"string"==typeof st?this.lazyInit=()=>{this.headers=new Map,st.split("\n").forEach(It=>{const cn=It.indexOf(":");if(cn>0){const _n=It.slice(0,cn),En=_n.toLowerCase(),On=It.slice(cn+1).trim();this.maybeSetNormalizedName(_n,En),this.headers.has(En)?this.headers.get(En).push(On):this.headers.set(En,[On])}})}:typeof Headers<"u"&&st instanceof Headers?(this.headers=new Map,st.forEach((It,cn)=>{this.setHeaderEntries(cn,It)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(st).forEach(([It,cn])=>{this.setHeaderEntries(It,cn)})}:this.headers=new Map}has(st){return this.init(),this.headers.has(st.toLowerCase())}get(st){this.init();const It=this.headers.get(st.toLowerCase());return It&&It.length>0?It[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(st){return this.init(),this.headers.get(st.toLowerCase())||null}append(st,It){return this.clone({name:st,value:It,op:"a"})}set(st,It){return this.clone({name:st,value:It,op:"s"})}delete(st,It){return this.clone({name:st,value:It,op:"d"})}maybeSetNormalizedName(st,It){this.normalizedNames.has(It)||this.normalizedNames.set(It,st)}init(){this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(st=>this.applyUpdate(st)),this.lazyUpdate=null))}copyFrom(st){st.init(),Array.from(st.headers.keys()).forEach(It=>{this.headers.set(It,st.headers.get(It)),this.normalizedNames.set(It,st.normalizedNames.get(It))})}clone(st){const It=new te;return It.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,It.lazyUpdate=(this.lazyUpdate||[]).concat([st]),It}applyUpdate(st){const It=st.name.toLowerCase();switch(st.op){case"a":case"s":let cn=st.value;if("string"==typeof cn&&(cn=[cn]),0===cn.length)return;this.maybeSetNormalizedName(st.name,It);const _n=("a"===st.op?this.headers.get(It):void 0)||[];_n.push(...cn),this.headers.set(It,_n);break;case"d":const En=st.value;if(En){let On=this.headers.get(It);if(!On)return;On=On.filter(ni=>-1===En.indexOf(ni)),0===On.length?(this.headers.delete(It),this.normalizedNames.delete(It)):this.headers.set(It,On)}else this.headers.delete(It),this.normalizedNames.delete(It)}}setHeaderEntries(st,It){const cn=(Array.isArray(It)?It:[It]).map(En=>En.toString()),_n=st.toLowerCase();this.headers.set(_n,cn),this.maybeSetNormalizedName(st,_n)}forEach(st){this.init(),Array.from(this.normalizedNames.keys()).forEach(It=>st(this.normalizedNames.get(It),this.headers.get(It)))}}class ce{encodeKey(st){return Ge(st)}encodeValue(st){return Ge(st)}decodeKey(st){return decodeURIComponent(st)}decodeValue(st){return decodeURIComponent(st)}}const Re=/%(\d[a-f0-9])/gi,mt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ge(ht){return encodeURIComponent(ht).replace(Re,(st,It)=>mt[It]??st)}function Lt(ht){return`${ht}`}class je{constructor(st={}){if(this.updates=null,this.cloneFrom=null,this.encoder=st.encoder||new ce,st.fromString){if(st.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _e(ht,st){const It=new Map;return ht.length>0&&ht.replace(/^\?/,"").split("&").forEach(_n=>{const En=_n.indexOf("="),[On,ni]=-1==En?[st.decodeKey(_n),""]:[st.decodeKey(_n.slice(0,En)),st.decodeValue(_n.slice(En+1))],Vn=It.get(On)||[];Vn.push(ni),It.set(On,Vn)}),It}(st.fromString,this.encoder)}else st.fromObject?(this.map=new Map,Object.keys(st.fromObject).forEach(It=>{const cn=st.fromObject[It],_n=Array.isArray(cn)?cn.map(Lt):[Lt(cn)];this.map.set(It,_n)})):this.map=null}has(st){return this.init(),this.map.has(st)}get(st){this.init();const It=this.map.get(st);return It?It[0]:null}getAll(st){return this.init(),this.map.get(st)||null}keys(){return this.init(),Array.from(this.map.keys())}append(st,It){return this.clone({param:st,value:It,op:"a"})}appendAll(st){const It=[];return Object.keys(st).forEach(cn=>{const _n=st[cn];Array.isArray(_n)?_n.forEach(En=>{It.push({param:cn,value:En,op:"a"})}):It.push({param:cn,value:_n,op:"a"})}),this.clone(It)}set(st,It){return this.clone({param:st,value:It,op:"s"})}delete(st,It){return this.clone({param:st,value:It,op:"d"})}toString(){return this.init(),this.keys().map(st=>{const It=this.encoder.encodeKey(st);return this.map.get(st).map(cn=>It+"="+this.encoder.encodeValue(cn)).join("&")}).filter(st=>""!==st).join("&")}clone(st){const It=new je({encoder:this.encoder});return It.cloneFrom=this.cloneFrom||this,It.updates=(this.updates||[]).concat(st),It}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(st=>this.map.set(st,this.cloneFrom.map.get(st))),this.updates.forEach(st=>{switch(st.op){case"a":case"s":const It=("a"===st.op?this.map.get(st.param):void 0)||[];It.push(Lt(st.value)),this.map.set(st.param,It);break;case"d":if(void 0===st.value){this.map.delete(st.param);break}{let cn=this.map.get(st.param)||[];const _n=cn.indexOf(Lt(st.value));-1!==_n&&cn.splice(_n,1),cn.length>0?this.map.set(st.param,cn):this.map.delete(st.param)}}}),this.cloneFrom=this.updates=null)}}class xt{constructor(){this.map=new Map}set(st,It){return this.map.set(st,It),this}get(st){return this.map.has(st)||this.map.set(st,st.defaultValue()),this.map.get(st)}delete(st){return this.map.delete(st),this}has(st){return this.map.has(st)}keys(){return this.map.keys()}}function Zt(ht){return typeof ArrayBuffer<"u"&&ht instanceof ArrayBuffer}function yt(ht){return typeof Blob<"u"&&ht instanceof Blob}function un(ht){return typeof FormData<"u"&&ht instanceof FormData}class tn{constructor(st,It,cn,_n){let En;if(this.url=It,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=st.toUpperCase(),function St(ht){switch(ht){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||_n?(this.body=void 0!==cn?cn:null,En=_n):En=cn,En&&(this.reportProgress=!!En.reportProgress,this.withCredentials=!!En.withCredentials,En.responseType&&(this.responseType=En.responseType),En.headers&&(this.headers=En.headers),En.context&&(this.context=En.context),En.params&&(this.params=En.params)),this.headers||(this.headers=new te),this.context||(this.context=new xt),this.params){const On=this.params.toString();if(0===On.length)this.urlWithParams=It;else{const ni=It.indexOf("?");this.urlWithParams=It+(-1===ni?"?":niKr.set(vr,st.setHeaders[vr]),Vn)),st.setParams&&(fr=Object.keys(st.setParams).reduce((Kr,vr)=>Kr.set(vr,st.setParams[vr]),fr)),new tn(It,cn,En,{params:fr,headers:Vn,context:ki,reportProgress:ni,responseType:_n,withCredentials:On})}}var wn=function(ht){return ht[ht.Sent=0]="Sent",ht[ht.UploadProgress=1]="UploadProgress",ht[ht.ResponseHeader=2]="ResponseHeader",ht[ht.DownloadProgress=3]="DownloadProgress",ht[ht.Response=4]="Response",ht[ht.User=5]="User",ht}(wn||{});class Ln{constructor(st,It=200,cn="OK"){this.headers=st.headers||new te,this.status=void 0!==st.status?st.status:It,this.statusText=st.statusText||cn,this.url=st.url||null,this.ok=this.status>=200&&this.status<300}}class Yn extends Ln{constructor(st={}){super(st),this.type=wn.ResponseHeader}clone(st={}){return new Yn({headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}class ti extends Ln{constructor(st={}){super(st),this.type=wn.Response,this.body=void 0!==st.body?st.body:null}clone(st={}){return new ti({body:void 0!==st.body?st.body:this.body,headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}class gi extends Ln{constructor(st){super(st,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${st.url||"(unknown url)"}`:`Http failure response for ${st.url||"(unknown url)"}: ${st.status} ${st.statusText}`,this.error=st.error||null}}function Rn(ht,st){return{body:st,headers:ht.headers,context:ht.context,observe:ht.observe,params:ht.params,reportProgress:ht.reportProgress,responseType:ht.responseType,withCredentials:ht.withCredentials}}let dt=(()=>{class ht{constructor(It){this.handler=It}request(It,cn,_n={}){let En;if(It instanceof tn)En=It;else{let Vn,fr;Vn=_n.headers instanceof te?_n.headers:new te(_n.headers),_n.params&&(fr=_n.params instanceof je?_n.params:new je({fromObject:_n.params})),En=new tn(It,cn,void 0!==_n.body?_n.body:null,{headers:Vn,context:_n.context,params:fr,reportProgress:_n.reportProgress,responseType:_n.responseType||"json",withCredentials:_n.withCredentials})}const On=(0,l.of)(En).pipe((0,S.b)(Vn=>this.handler.handle(Vn)));if(It instanceof tn||"events"===_n.observe)return On;const ni=On.pipe((0,w.h)(Vn=>Vn instanceof ti));switch(_n.observe||"body"){case"body":switch(En.responseType){case"arraybuffer":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&!(Vn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Vn.body}));case"blob":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&!(Vn.body instanceof Blob))throw new Error("Response is not a Blob.");return Vn.body}));case"text":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&"string"!=typeof Vn.body)throw new Error("Response is not a string.");return Vn.body}));default:return ni.pipe((0,n.U)(Vn=>Vn.body))}case"response":return ni;default:throw new Error(`Unreachable: unhandled observe type ${_n.observe}}`)}}delete(It,cn={}){return this.request("DELETE",It,cn)}get(It,cn={}){return this.request("GET",It,cn)}head(It,cn={}){return this.request("HEAD",It,cn)}jsonp(It,cn){return this.request("JSONP",It,{params:(new je).append(cn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(It,cn={}){return this.request("OPTIONS",It,cn)}patch(It,cn,_n={}){return this.request("PATCH",It,Rn(_n,cn))}post(It,cn,_n={}){return this.request("POST",It,Rn(_n,cn))}put(It,cn,_n={}){return this.request("PUT",It,Rn(_n,cn))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(ue))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();function Ze(ht,st){return st(ht)}function rt(ht,st){return(It,cn)=>st.intercept(It,{handle:_n=>ht(_n,cn)})}const Nt=new e.OlP(""),Qt=new e.OlP(""),nn=new e.OlP("");function Dn(){let ht=null;return(st,It)=>{null===ht&&(ht=((0,e.f3M)(Nt,{optional:!0})??[]).reduceRight(rt,Ze));const cn=(0,e.f3M)(e.HDt),_n=cn.add();return ht(st,It).pipe((0,Z.x)(()=>cn.remove(_n)))}}let Ot=(()=>{class ht extends ue{constructor(It,cn){super(),this.backend=It,this.injector=cn,this.chain=null,this.pendingTasks=(0,e.f3M)(e.HDt)}handle(It){if(null===this.chain){const _n=Array.from(new Set([...this.injector.get(Qt),...this.injector.get(nn,[])]));this.chain=_n.reduceRight((En,On)=>function bt(ht,st,It){return(cn,_n)=>It.runInContext(()=>st(cn,En=>ht(En,_n)))}(En,On,this.injector),Ze)}const cn=this.pendingTasks.add();return this.chain(It,_n=>this.backend.handle(_n)).pipe((0,Z.x)(()=>this.pendingTasks.remove(cn)))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(se),e.LFG(e.lqb))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();const ot=/^\)\]\}',?\n/;let Ft=(()=>{class ht{constructor(It){this.xhrFactory=It}handle(It){if("JSONP"===It.method)throw new e.vHH(-2800,!1);const cn=this.xhrFactory;return(cn.\u0275loadImpl?(0,D.D)(cn.\u0275loadImpl()):(0,l.of)(null)).pipe((0,ee.w)(()=>new I.y(En=>{const On=cn.build();if(On.open(It.method,It.urlWithParams),It.withCredentials&&(On.withCredentials=!0),It.headers.forEach((Ji,tr)=>On.setRequestHeader(Ji,tr.join(","))),It.headers.has("Accept")||On.setRequestHeader("Accept","application/json, text/plain, */*"),!It.headers.has("Content-Type")){const Ji=It.detectContentTypeHeader();null!==Ji&&On.setRequestHeader("Content-Type",Ji)}if(It.responseType){const Ji=It.responseType.toLowerCase();On.responseType="json"!==Ji?Ji:"text"}const ni=It.serializeBody();let Vn=null;const fr=()=>{if(null!==Vn)return Vn;const Ji=On.statusText||"OK",tr=new te(On.getAllResponseHeaders()),_i=function Se(ht){return"responseURL"in ht&&ht.responseURL?ht.responseURL:/^X-Request-URL:/m.test(ht.getAllResponseHeaders())?ht.getResponseHeader("X-Request-URL"):null}(On)||It.url;return Vn=new Yn({headers:tr,status:On.status,statusText:Ji,url:_i}),Vn},ki=()=>{let{headers:Ji,status:tr,statusText:_i,url:bo}=fr(),pr=null;204!==tr&&(pr=typeof On.response>"u"?On.responseText:On.response),0===tr&&(tr=pr?200:0);let br=tr>=200&&tr<300;if("json"===It.responseType&&"string"==typeof pr){const $n=pr;pr=pr.replace(ot,"");try{pr=""!==pr?JSON.parse(pr):null}catch(yo){pr=$n,br&&(br=!1,pr={error:yo,text:pr})}}br?(En.next(new ti({body:pr,headers:Ji,status:tr,statusText:_i,url:bo||void 0})),En.complete()):En.error(new gi({error:pr,headers:Ji,status:tr,statusText:_i,url:bo||void 0}))},Kr=Ji=>{const{url:tr}=fr(),_i=new gi({error:Ji,status:On.status||0,statusText:On.statusText||"Unknown Error",url:tr||void 0});En.error(_i)};let vr=!1;const Bi=Ji=>{vr||(En.next(fr()),vr=!0);let tr={type:wn.DownloadProgress,loaded:Ji.loaded};Ji.lengthComputable&&(tr.total=Ji.total),"text"===It.responseType&&On.responseText&&(tr.partialText=On.responseText),En.next(tr)},co=Ji=>{let tr={type:wn.UploadProgress,loaded:Ji.loaded};Ji.lengthComputable&&(tr.total=Ji.total),En.next(tr)};return On.addEventListener("load",ki),On.addEventListener("error",Kr),On.addEventListener("timeout",Kr),On.addEventListener("abort",Kr),It.reportProgress&&(On.addEventListener("progress",Bi),null!==ni&&On.upload&&On.upload.addEventListener("progress",co)),On.send(ni),En.next({type:wn.Sent}),()=>{On.removeEventListener("error",Kr),On.removeEventListener("abort",Kr),On.removeEventListener("load",ki),On.removeEventListener("timeout",Kr),It.reportProgress&&(On.removeEventListener("progress",Bi),null!==ni&&On.upload&&On.upload.removeEventListener("progress",co)),On.readyState!==On.DONE&&On.abort()}})))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(re.JF))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();const lt=new e.OlP("XSRF_ENABLED"),Ut=new e.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),gn=new e.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class An{}let jn=(()=>{class ht{constructor(It,cn,_n){this.doc=It,this.platform=cn,this.cookieName=_n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const It=this.doc.cookie||"";return It!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,re.Mx)(It,this.cookieName),this.lastCookieString=It),this.lastToken}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(re.K0),e.LFG(e.Lbi),e.LFG(Ut))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();function ai(ht,st){const It=ht.url.toLowerCase();if(!(0,e.f3M)(lt)||"GET"===ht.method||"HEAD"===ht.method||It.startsWith("http://")||It.startsWith("https://"))return st(ht);const cn=(0,e.f3M)(An).getToken(),_n=(0,e.f3M)(gn);return null!=cn&&!ht.headers.has(_n)&&(ht=ht.clone({headers:ht.headers.set(_n,cn)})),st(ht)}var oi=function(ht){return ht[ht.Interceptors=0]="Interceptors",ht[ht.LegacyInterceptors=1]="LegacyInterceptors",ht[ht.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ht[ht.NoXsrfProtection=3]="NoXsrfProtection",ht[ht.JsonpSupport=4]="JsonpSupport",ht[ht.RequestsMadeViaParent=5]="RequestsMadeViaParent",ht[ht.Fetch=6]="Fetch",ht}(oi||{});function qt(...ht){const st=[dt,Ft,Ot,{provide:ue,useExisting:Ot},{provide:se,useExisting:Ft},{provide:Qt,useValue:ai,multi:!0},{provide:lt,useValue:!0},{provide:An,useClass:jn}];for(const It of ht)st.push(...It.\u0275providers);return(0,e.MR2)(st)}const G=new e.OlP("LEGACY_INTERCEPTOR_FN");function U(){return function Jn(ht,st){return{\u0275kind:ht,\u0275providers:st}}(oi.LegacyInterceptors,[{provide:G,useFactory:Dn},{provide:Qt,useExisting:G,multi:!0}])}let Te=(()=>{class ht{static#e=this.\u0275fac=function(cn){return new(cn||ht)};static#t=this.\u0275mod=e.oAB({type:ht});static#n=this.\u0275inj=e.cJS({providers:[qt(U())]})}return ht})()},5879:(ft,Ie,C)=>{"use strict";C.d(Ie,{$8M:()=>Wd,$WT:()=>Ha,$Z:()=>K_,AFp:()=>S_,ALo:()=>Qb,AaK:()=>se,Akn:()=>Cu,AsE:()=>mv,B6R:()=>oo,BQk:()=>Dm,CHM:()=>Jl,CRH:()=>_y,DdM:()=>Ub,EJc:()=>IC,EiD:()=>hs,EpF:()=>a1,F$t:()=>f1,F4k:()=>l1,FYo:()=>jp,FiY:()=>Wr,Gf:()=>fy,GfV:()=>Zp,GkF:()=>rv,Gpc:()=>ce,Gre:()=>z1,HDt:()=>Yy,Hsn:()=>p1,Ikx:()=>vv,JOm:()=>fa,JVY:()=>vu,JZr:()=>Lt,Jf7:()=>Uu,Jzz:()=>G1,KtG:()=>Il,L6k:()=>o,LAX:()=>i,LFG:()=>wt,LMc:()=>ZT,LSH:()=>b,Lbi:()=>Ef,Lck:()=>MM,MAs:()=>r1,MGl:()=>Em,MMx:()=>kb,MR2:()=>Rc,N_p:()=>Cv,NdJ:()=>sv,O4$:()=>dc,Ojb:()=>Jm,OlP:()=>Ut,Oqu:()=>_v,P3R:()=>Gn,PXZ:()=>sT,Q6J:()=>tv,QGY:()=>ov,QbO:()=>Km,Qsj:()=>P_,R0b:()=>jl,RDi:()=>ah,Rgc:()=>y_,SBq:()=>Vh,SDv:()=>Eb,Sil:()=>LC,Suo:()=>py,TTD:()=>xi,TgZ:()=>Mm,Tol:()=>O1,Udp:()=>hv,VKq:()=>Vb,VuI:()=>VT,W1O:()=>by,WFA:()=>av,WLB:()=>jb,X6Q:()=>pT,XFs:()=>Ce,Xpm:()=>kr,Xq5:()=>vm,Xts:()=>Ea,Y36:()=>fh,YKP:()=>Ib,YNc:()=>e1,Yjl:()=>qi,Yz7:()=>Nt,Z0I:()=>Ot,ZZ4:()=>e0,_Bn:()=>Ob,_UZ:()=>iv,_Vd:()=>Af,_c5:()=>OT,_uU:()=>F1,aQg:()=>t0,c2e:()=>Fy,cJS:()=>nn,cg1:()=>yv,d8E:()=>bv,dDg:()=>nT,dqk:()=>Ft,eBb:()=>t,eFA:()=>$y,eJc:()=>Yv,ekj:()=>fv,eoX:()=>Zy,evT:()=>zh,f3M:()=>fe,g9A:()=>Df,gHi:()=>Gp,h0i:()=>Uf,hGG:()=>IT,hij:()=>Om,iGM:()=>hy,ifc:()=>On,ip1:()=>Ny,jDz:()=>Lb,kEZ:()=>Zb,kL8:()=>ib,kcU:()=>sd,ktI:()=>lp,l5B:()=>zb,lG2:()=>Aa,lcZ:()=>Xb,lnq:()=>gv,lqb:()=>bu,lri:()=>Vy,mCW:()=>N,n5z:()=>_c,n_E:()=>Pm,oAB:()=>Vo,oJD:()=>f,oxw:()=>h1,pB0:()=>s,q3G:()=>Cs,qFp:()=>zT,qLn:()=>uh,qOj:()=>pm,qZA:()=>Cm,qbA:()=>Gb,qzn:()=>Hd,rWj:()=>jy,rg0:()=>pn,s9C:()=>lv,sBO:()=>_T,s_b:()=>Ym,soG:()=>Hm,tHW:()=>Mv,tb:()=>$v,tp0:()=>Na,uIk:()=>Cn,vHH:()=>je,vpe:()=>vo,vpz:()=>W1,wAp:()=>Tp,xi3:()=>ey,xp6:()=>Cg,ynx:()=>Tm,z2F:()=>Ap,z3N:()=>qc,zSh:()=>qf,zW0:()=>Kg,zs3:()=>Vd});var e=C(8645),l=C(7394),D=C(5592),I=C(3019),S=C(5619),w=C(2096),n=C(3020),Z=C(4664),ee=C(3997);function re(r){for(let a in r)if(r[a]===re)return a;throw Error("Could not find renamed property on target object.")}function ue(r,a){for(const d in a)a.hasOwnProperty(d)&&!r.hasOwnProperty(d)&&(r[d]=a[d])}function se(r){if("string"==typeof r)return r;if(Array.isArray(r))return"["+r.map(se).join(", ")+"]";if(null==r)return""+r;if(r.overriddenName)return`${r.overriddenName}`;if(r.name)return`${r.name}`;const a=r.toString();if(null==a)return""+a;const d=a.indexOf("\n");return-1===d?a:a.substring(0,d)}function te(r,a){return null==r||""===r?null===a?"":a:null==a||""===a?r:r+" "+a}const oe=re({__forward_ref__:re});function ce(r){return r.__forward_ref__=ce,r.toString=function(){return se(this())},r}function _e(r){return Re(r)?r():r}function Re(r){return"function"==typeof r&&r.hasOwnProperty(oe)&&r.__forward_ref__===ce}function mt(r){return r&&!!r.\u0275providers}const Lt="https://g.co/ng/security#xss";class je extends Error{constructor(a,d){super(function Tt(r,a){return`NG0${Math.abs(r)}${a?": "+a:""}`}(a,d)),this.code=a}}function xt(r){return"string"==typeof r?r:null==r?"":String(r)}function Jt(r,a){throw new je(-201,!1)}function he(r,a,d,_){throw new Error(`ASSERTION ERROR: ${r}`+(null==_?"":` [Expected=> ${d} ${_} ${a} <=Actual]`))}function Nt(r){return{token:r.token,providedIn:r.providedIn||null,factory:r.factory,value:void 0}}function nn(r){return{providers:r.providers||[],imports:r.imports||[]}}function Dn(r){return rn(r,Wn)||rn(r,ct)}function Ot(r){return null!==Dn(r)}function rn(r,a){return r.hasOwnProperty(a)?r[a]:null}function ei(r){return r&&(r.hasOwnProperty(Ve)||r.hasOwnProperty(Ct))?r[Ve]:null}const Wn=re({\u0275prov:re}),Ve=re({\u0275inj:re}),ct=re({ngInjectableDef:re}),Ct=re({ngInjectorDef:re});var Ce=function(r){return r[r.Default=0]="Default",r[r.Host=1]="Host",r[r.Self=2]="Self",r[r.SkipSelf=4]="SkipSelf",r[r.Optional=8]="Optional",r}(Ce||{});let J;function ae(){return J}function Oe(r){const a=J;return J=r,a}function ot(r,a,d){const _=Dn(r);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:d&Ce.Optional?null:void 0!==a?a:void Jt(se(r))}const Ft=globalThis;class Ut{constructor(a,d){this._desc=a,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof d?this.__NG_ELEMENT_ID__=d:void 0!==d&&(this.\u0275prov=Nt({token:this,providedIn:d.providedIn||"root",factory:d.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const U={},ve="__NG_DI_FLAG__",Pe="ngTempTokenPath",We=/\n/gm,be="__source";let Te;function Wt(r){const a=Te;return Te=r,a}function Pn(r,a=Ce.Default){if(void 0===Te)throw new je(-203,!1);return null===Te?ot(r,void 0,a):Te.get(r,a&Ce.Optional?null:void 0,a)}function wt(r,a=Ce.Default){return(ae()||Pn)(_e(r),a)}function fe(r,a=Ce.Default){return wt(r,Mt(a))}function Mt(r){return typeof r>"u"||"number"==typeof r?r:0|(r.optional&&8)|(r.host&&1)|(r.self&&2)|(r.skipSelf&&4)}function Vt(r){const a=[];for(let d=0;da){Y=A-1;break}}}for(;AA?"":x[Rt+1].toLowerCase();const ln=8&_?Xt:null;if(ln&&-1!==tr(ln,De,0)||2&_&&De!==Xt){if(yr(_))return!1;Y=!0}}}}else{if(!Y&&!yr(_)&&!yr(X))return!1;if(Y&&yr(X))continue;Y=!1,_=X|1&_}}return yr(_)||Y}function yr(r){return 0==(1&r)}function Gs(r,a,d,_){if(null===a)return-1;let x=0;if(_||!d){let A=!1;for(;x-1)for(d++;d0?'="'+z+'"':"")+"]"}else 8&_?x+="."+Y:4&_&&(x+=" "+Y);else""!==x&&!yr(Y)&&(a+=$s(A,x),x=""),_=Y,A=A||!yr(_);d++}return""!==x&&(a+=$s(A,x)),a}function kr(r){return _n(()=>{const a=al(r),d={...a,decls:r.decls,vars:r.vars,template:r.template,consts:r.consts||null,ngContentSelectors:r.ngContentSelectors,onPush:r.changeDetection===En.OnPush,directiveDefs:null,pipeDefs:null,dependencies:a.standalone&&r.dependencies||null,getStandaloneInjector:null,signals:r.signals??!1,data:r.data||{},encapsulation:r.encapsulation||On.Emulated,styles:r.styles||Vn,_:null,schemas:r.schemas||null,tView:null,id:""};Vr(d);const _=r.dependencies;return d.directiveDefs=Es(_,!1),d.pipeDefs=Es(_,!0),d.id=function ll(r){let a=0;const d=[r.selectors,r.ngContentSelectors,r.hostVars,r.hostAttrs,r.consts,r.vars,r.decls,r.encapsulation,r.standalone,r.signals,r.exportAs,JSON.stringify(r.inputs),JSON.stringify(r.outputs),Object.getOwnPropertyNames(r.type.prototype),!!r.contentQueries,!!r.viewQuery].join("|");for(const x of d)a=Math.imul(31,a)+x.charCodeAt(0)<<0;return a+=2147483648,"c"+a}(d),d})}function oo(r,a,d){const _=r.\u0275cmp;_.directiveDefs=Es(a,!1),_.pipeDefs=Es(d,!0)}function fs(r){return Li(r)||Yr(r)}function Sa(r){return null!==r}function Vo(r){return _n(()=>({type:r.type,bootstrap:r.bootstrap||Vn,declarations:r.declarations||Vn,imports:r.imports||Vn,exports:r.exports||Vn,transitiveCompileScopes:null,schemas:r.schemas||null,id:r.id||null}))}function Ks(r,a){if(null==r)return ni;const d={};for(const _ in r)if(r.hasOwnProperty(_)){let x=r[_],A=x;Array.isArray(x)&&(A=x[1],x=x[0]),d[x]=_,a&&(a[x]=A)}return d}function Aa(r){return _n(()=>{const a=al(r);return Vr(a),a})}function qi(r){return{type:r.type,name:r.name,factory:null,pure:!1!==r.pure,standalone:!0===r.standalone,onDestroy:r.type.prototype.ngOnDestroy||null}}function Li(r){return r[fr]||null}function Yr(r){return r[ki]||null}function dr(r){return r[Kr]||null}function Ha(r){const a=Li(r)||Yr(r)||dr(r);return null!==a&&a.standalone}function wr(r,a){const d=r[vr]||null;if(!d&&!0===a)throw new Error(`Type ${se(r)} does not have '\u0275mod' property.`);return d}function al(r){const a={};return{type:r.type,providersResolver:null,factory:null,hostBindings:r.hostBindings||null,hostVars:r.hostVars||0,hostAttrs:r.hostAttrs||null,contentQueries:r.contentQueries||null,declaredInputs:a,inputTransforms:null,inputConfig:r.inputs||ni,exportAs:r.exportAs||null,standalone:!0===r.standalone,signals:!0===r.signals,selectors:r.selectors||Vn,viewQuery:r.viewQuery||null,features:r.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ks(r.inputs,a),outputs:Ks(r.outputs)}}function Vr(r){r.features?.forEach(a=>a(r))}function Es(r,a){if(!r)return null;const d=a?dr:fs;return()=>("function"==typeof r?r():r).map(_=>d(_)).filter(Sa)}const er=0,qn=1,bi=2,_r=3,wo=4,jo=5,no=6,Ao=7,nr=8,ps=9,va=10,Ti=11,qs=12,ba=13,Qs=14,wi=15,Oo=16,Ko=17,or=18,Xs=19,Ml=20,Sr=21,jr=22,xo=23,_s=24,Ai=25,Io=1,Ys=2,fo=7,ms=9,Br=11;function po(r){return Array.isArray(r)&&"object"==typeof r[Io]}function io(r){return Array.isArray(r)&&!0===r[Io]}function qo(r){return 0!=(4&r.flags)}function Ss(r){return r.componentOffset>-1}function ya(r){return 1==(1&r.flags)}function sr(r){return!!r.template}function Oa(r){return 0!=(512&r[bi])}function Xo(r,a){return r.hasOwnProperty(Bi)?r[Bi]:null}let qr=null,Bs=!1;function Ro(r){const a=qr;return qr=r,a}const Va={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Gl(r){if(!Is(r)||r.dirty){if(!r.producerMustRecompute(r)&&!gs(r))return void(r.dirty=!1);r.producerRecomputeValue(r),r.dirty=!1}}function es(r){r.dirty=!0,function Hs(r){if(void 0===r.liveConsumerNode)return;const a=Bs;Bs=!0;try{for(const d of r.liveConsumerNode)d.dirty||es(d)}finally{Bs=a}}(r),r.consumerMarkedDirty?.(r)}function ts(r){return r&&(r.nextProducerIndex=0),Ro(r)}function Wl(r,a){if(Ro(a),r&&void 0!==r.producerNode&&void 0!==r.producerIndexOfThis&&void 0!==r.producerLastReadVersion){if(Is(r))for(let d=r.nextProducerIndex;dr.nextProducerIndex;)r.producerNode.pop(),r.producerLastReadVersion.pop(),r.producerIndexOfThis.pop()}}function gs(r){Za(r);for(let a=0;a0}function Za(r){r.producerNode??=[],r.producerIndexOfThis??=[],r.producerLastReadVersion??=[]}let Ga=null;function pn(r){const a=Ro(null);try{return r()}finally{Ro(a)}}const li=()=>{},ur=(()=>({...Va,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:r=>{r.schedule(r.ref)},hasRun:!1,cleanupFn:li}))();class ar{constructor(a,d,_){this.previousValue=a,this.currentValue=d,this.firstChange=_}isFirstChange(){return this.firstChange}}function xi(){return Ar}function Ar(r){return r.type.prototype.ngOnChanges&&(r.setInput=mr),Nr}function Nr(){const r=bs(this),a=r?.current;if(a){const d=r.previous;if(d===ni)r.previous=a;else for(let _ in a)d[_]=a[_];r.current=null,this.ngOnChanges(a)}}function mr(r,a,d,_){const x=this.declaredInputs[d],A=bs(r)||function $a(r,a){return r[vs]=a}(r,{previous:ni,current:null}),Y=A.current||(A.current={}),z=A.previous,X=z[x];Y[x]=new ar(X&&X.currentValue,a,z===ni),r[_]=a}xi.ngInherit=!0;const vs="__ngSimpleChanges__";function bs(r){return r[vs]||null}const Qr=function(r,a,d){},zr="svg";function yi(r){for(;Array.isArray(r);)r=r[er];return r}function cl(r,a){return yi(a[r])}function _o(r,a){return yi(a[r.index])}function Xi(r,a){return r.data[a]}function dl(r,a){return r[a]}function ko(r,a){const d=a[r];return po(d)?d:d[er]}function Us(r,a){return null==a?null:r[a]}function Vs(r){r[Ko]=0}function Nc(r){1024&r[bi]||(r[bi]|=1024,To(r,1))}function ac(r){1024&r[bi]&&(r[bi]&=-1025,To(r,-1))}function To(r,a){let d=r[_r];if(null===d)return;d[jo]+=a;let _=d;for(d=d[_r];null!==d&&(1===a&&1===_[jo]||-1===a&&0===_[jo]);)d[jo]+=a,_=d,d=d[_r]}function nd(r,a){if(256==(256&r[bi]))throw new je(911,!1);null===r[Sr]&&(r[Sr]=[]),r[Sr].push(a)}const Ei={lFrame:Ps(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function cc(){return Ei.bindingsEnabled}function hl(){return null!==Ei.skipHydrationRootTNode}function kn(){return Ei.lFrame.lView}function Fi(){return Ei.lFrame.tView}function Jl(r){return Ei.lFrame.contextLView=r,r[nr]}function Il(r){return Ei.lFrame.contextLView=null,r}function en(){let r=so();for(;null!==r&&64===r.type;)r=r.parent;return r}function so(){return Ei.lFrame.currentTNode}function gt(){const r=Ei.lFrame,a=r.currentTNode;return r.isParent?a:a.parent}function la(r,a){const d=Ei.lFrame;d.currentTNode=r,d.isParent=a}function Ra(){return Ei.lFrame.isParent}function Ls(){Ei.lFrame.isParent=!1}function mo(){const r=Ei.lFrame;let a=r.bindingRootIndex;return-1===a&&(a=r.bindingRootIndex=r.tView.bindingStartIndex),a}function ka(){return Ei.lFrame.bindingIndex}function W(){return Ei.lFrame.bindingIndex++}function ne(r){const a=Ei.lFrame,d=a.bindingIndex;return a.bindingIndex=a.bindingIndex+r,d}function ie(r){Ei.lFrame.inI18n=r}function xe(r,a){const d=Ei.lFrame;d.bindingIndex=d.bindingRootIndex=r,Pt(a)}function Pt(r){Ei.lFrame.currentDirectiveIndex=r}function mn(r){const a=Ei.lFrame.currentDirectiveIndex;return-1===a?null:r[a]}function hn(){return Ei.lFrame.currentQueryIndex}function on(r){Ei.lFrame.currentQueryIndex=r}function ji(r){const a=r[qn];return 2===a.type?a.declTNode:1===a.type?r[no]:null}function Gr(r,a,d){if(d&Ce.SkipSelf){let x=a,A=r;for(;!(x=x.parent,null!==x||d&Ce.Host||(x=ji(A),null===x||(A=A[Qs],10&x.type))););if(null===x)return!1;a=x,r=A}const _=Ei.lFrame=mi();return _.currentTNode=a,_.lView=r,!0}function $i(r){const a=mi(),d=r[qn];Ei.lFrame=a,a.currentTNode=d.firstChild,a.lView=r,a.tView=d,a.contextLView=r,a.bindingIndex=d.bindingStartIndex,a.inI18n=!1}function mi(){const r=Ei.lFrame,a=null===r?null:r.child;return null===a?Ps(r):a}function Ps(r){const a={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:r,child:null,inI18n:!1};return null!==r&&(r.child=a),a}function fl(){const r=Ei.lFrame;return Ei.lFrame=r.parent,r.currentTNode=null,r.lView=null,r}const Rl=fl;function Ja(){const r=fl();r.isParent=!0,r.tView=null,r.selectedIndex=-1,r.contextLView=null,r.elementDepthCount=0,r.currentDirectiveIndex=-1,r.currentNamespace=null,r.bindingRootIndex=-1,r.bindingIndex=-1,r.currentQueryIndex=0}function Do(){return Ei.lFrame.selectedIndex}function qa(r){Ei.lFrame.selectedIndex=r}function xr(){const r=Ei.lFrame;return Xi(r.tView,r.selectedIndex)}function dc(){Ei.lFrame.currentNamespace=zr}function sd(){!function uc(){Ei.lFrame.currentNamespace=null}()}let Qa=!0;function js(){return Qa}function pl(r){Qa=r}function Pi(r,a){for(let d=a.directiveStart,_=a.directiveEnd;d<_;d++){const A=r.data[d].type.prototype,{ngAfterContentInit:Y,ngAfterContentChecked:z,ngAfterViewInit:X,ngAfterViewChecked:De,ngOnDestroy:Ke}=A;Y&&(r.contentHooks??=[]).push(-d,Y),z&&((r.contentHooks??=[]).push(d,z),(r.contentCheckHooks??=[]).push(d,z)),X&&(r.viewHooks??=[]).push(-d,X),De&&((r.viewHooks??=[]).push(d,De),(r.viewCheckHooks??=[]).push(d,De)),null!=Ke&&(r.destroyHooks??=[]).push(d,Ke)}}function Xa(r,a,d){Cd(r,a,3,d)}function ld(r,a,d,_){(3&r[bi])===d&&Cd(r,a,d,_)}function Sc(r,a){let d=r[bi];(3&d)===a&&(d&=8191,d+=1,r[bi]=d)}function Cd(r,a,d,_){const A=_??-1,Y=a.length-1;let z=0;for(let X=void 0!==_?65535&r[Ko]:0;X=_)break}else a[X]<0&&(r[Ko]+=65536),(z>13>16&&(3&r[bi])===a&&(r[bi]+=8192,el(z,A)):el(z,A)}const Yc=-1;class ca{constructor(a,d,_){this.factory=a,this.resolving=!1,this.canSeeViewProviders=d,this.injectImpl=_}}function wc(r){return r!==Yc}function kl(r){return 32767&r}function Ac(r,a){let d=function Ql(r){return r>>16}(r),_=a;for(;d>0;)_=_[Qs],d--;return _}let Hc=!0;function Eo(r){const a=Hc;return Hc=r,a}const cd=255,fc=5;let xc=0;const Po={};function Ll(r,a){const d=pc(r,a);if(-1!==d)return d;const _=a[qn];_.firstCreatePass&&(r.injectorIndex=a.length,as(_.data,r),as(a,null),as(_.blueprint,null));const x=ir(r,a),A=r.injectorIndex;if(wc(x)){const Y=kl(x),z=Ac(x,a),X=z[qn].data;for(let De=0;De<8;De++)a[A+De]=z[Y+De]|X[Y+De]}return a[A+8]=x,A}function as(r,a){r.push(0,0,0,0,0,0,0,0,a)}function pc(r,a){return-1===r.injectorIndex||r.parent&&r.parent.injectorIndex===r.injectorIndex||null===a[r.injectorIndex+8]?-1:r.injectorIndex}function ir(r,a){if(r.parent&&-1!==r.parent.injectorIndex)return r.parent.injectorIndex;let d=0,_=null,x=a;for(;null!==x;){if(_=Ad(x),null===_)return Yc;if(d++,x=x[Qs],-1!==_.injectorIndex)return _.injectorIndex|d<<16}return Yc}function k(r,a,d){!function da(r,a,d){let _;"string"==typeof d?_=d.charCodeAt(0)||0:d.hasOwnProperty(co)&&(_=d[co]),null==_&&(_=d[co]=xc++);const x=_&cd;a.data[r+(x>>fc)]|=1<=0?a&cd:Gd:a}(d);if("function"==typeof A){if(!Gr(a,r,_))return _&Ce.Host?pe(x,0,_):ke(a,d,_,x);try{let Y;if(Y=A(_),null!=Y||_&Ce.Optional)return Y;Jt()}finally{Rl()}}else if("number"==typeof A){let Y=null,z=pc(r,a),X=Yc,De=_&Ce.Host?a[wi][no]:null;for((-1===z||_&Ce.SkipSelf)&&(X=-1===z?ir(r,a):a[z+8],X!==Yc&&tl(_,!1)?(Y=a[qn],z=kl(X),a=Ac(X,a)):z=-1);-1!==z;){const Ke=a[qn];if(ws(A,z,Ke.data)){const Rt=xn(z,a,d,Y,_,De);if(Rt!==Po)return Rt}X=a[z+8],X!==Yc&&tl(_,a[qn].data[z+8]===De)&&ws(A,z,a)?(Y=Ke,z=kl(X),a=Ac(X,a)):z=-1}}return x}function xn(r,a,d,_,x,A){const Y=a[qn],z=Y.data[r+8],Ke=Mi(z,Y,d,null==_?Ss(z)&&Hc:_!=Y&&0!=(3&z.type),x&Ce.Host&&A===z);return null!==Ke?Oi(a,Y,Ke,z):Po}function Mi(r,a,d,_,x){const A=r.providerIndexes,Y=a.data,z=1048575&A,X=r.directiveStart,Ke=A>>20,Xt=x?z+Ke:r.directiveEnd;for(let ln=_?z:z+Ke;ln=X&&In.type===d)return ln}if(x){const ln=Y[X];if(ln&&sr(ln)&&ln.type===d)return X}return null}function Oi(r,a,d,_){let x=r[d];const A=a.data;if(function zd(r){return r instanceof ca}(x)){const Y=x;Y.resolving&&function Zt(r,a){const d=a?`. Dependency path: ${a.join(" > ")} > ${r}`:"";throw new je(-200,`Circular dependency in DI detected for ${r}${d}`)}(function St(r){return"function"==typeof r?r.name||r.toString():"object"==typeof r&&null!=r&&"function"==typeof r.type?r.type.name||r.type.toString():xt(r)}(A[d]));const z=Eo(Y.canSeeViewProviders);Y.resolving=!0;const De=Y.injectImpl?Oe(Y.injectImpl):null;Gr(r,_,Ce.Default);try{x=r[d]=Y.factory(void 0,A,r,_),a.firstCreatePass&&d>=_.directiveStart&&function ad(r,a,d){const{ngOnChanges:_,ngOnInit:x,ngDoCheck:A}=a.type.prototype;if(_){const Y=Ar(a);(d.preOrderHooks??=[]).push(r,Y),(d.preOrderCheckHooks??=[]).push(r,Y)}x&&(d.preOrderHooks??=[]).push(0-r,x),A&&((d.preOrderHooks??=[]).push(r,A),(d.preOrderCheckHooks??=[]).push(r,A))}(d,A[d],a)}finally{null!==De&&Oe(De),Eo(z),Y.resolving=!1,Rl()}}return x}function ws(r,a,d){return!!(d[a+(r>>fc)]&1<{const a=r.prototype.constructor,d=a[Bi]||Sd(a),_=Object.prototype;let x=Object.getPrototypeOf(r.prototype).constructor;for(;x&&x!==_;){const A=x[Bi]||Sd(x);if(A&&A!==d)return A;x=Object.getPrototypeOf(x)}return A=>new A})}function Sd(r){return Re(r)?()=>{const a=Sd(_e(r));return a&&a()}:Xo(r)}function Ad(r){const a=r[qn],d=a.type;return 2===d?a.declTNode:1===d?r[no]:null}function Wd(r){return function j(r,a){if("class"===a)return r.classes;if("style"===a)return r.styles;const d=r.attrs;if(d){const _=d.length;let x=0;for(;x<_;){const A=d[x];if(bo(A))break;if(0===A)x+=2;else if("number"==typeof A)for(x++;x<_&&"string"==typeof d[x];)x++;else{if(A===a)return d[x+1];x+=2}}}return null}(en(),r)}const ua="__parameters__";function zi(r,a,d){return _n(()=>{const _=function zo(r){return function(...d){if(r){const _=r(...d);for(const x in _)this[x]=_[x]}}}(a);function x(...A){if(this instanceof x)return _.apply(this,A),this;const Y=new x(...A);return z.annotation=Y,z;function z(X,De,Ke){const Rt=X.hasOwnProperty(ua)?X[ua]:Object.defineProperty(X,ua,{value:[]})[ua];for(;Rt.length<=Ke;)Rt.push(null);return(Rt[Ke]=Rt[Ke]||[]).push(Y),X}}return d&&(x.prototype=Object.create(d.prototype)),x.prototype.ngMetadataName=r,x.annotationCls=x,x})}function Gc(r,a){r.forEach(d=>Array.isArray(d)?Gc(d,a):a(d))}function qd(r,a,d){a>=r.length?r.push(d):r.splice(a,0,d)}function ml(r,a){return a>=r.length-1?r.pop():r.splice(a,1)[0]}function Oc(r,a){const d=[];for(let _=0;_=0?r[1|_]=d:(_=~_,function pi(r,a,d,_){let x=r.length;if(x==a)r.push(d,_);else if(1===x)r.push(_,r[0]),r[0]=d;else{for(x--,r.push(r[x-1],r[x]);x>a;)r[x]=r[x-2],x--;r[a]=d,r[a+1]=_}}(r,_,a,d)),_}function Mc(r,a){const d=No(r,a);if(d>=0)return r[1|d]}function No(r,a){return function Ye(r,a,d){let _=0,x=r.length>>d;for(;x!==_;){const A=_+(x-_>>1),Y=r[A<a?x=A:_=A+1}return~(x<|^->||--!>|)/g,ef="\u200b$1\u200b";const au=new Map;let vh=0;const $u="__ngContext__";function rl(r,a){po(a)?(r[$u]=a[Xs],function nf(r){au.set(r[Xs],r)}(a)):r[$u]=a}let xh;function Mh(r,a){return xh(r,a)}function du(r){const a=r[_r];return io(a)?a[_r]:a}function nc(r){return lf(r[qs])}function Ch(r){return lf(r[wo])}function lf(r){for(;null!==r&&!io(r);)r=r[wo];return r}function uu(r,a,d,_,x){if(null!=_){let A,Y=!1;io(_)?A=_:po(_)&&(Y=!0,_=_[er]);const z=yi(_);0===r&&null!==d?null==x?lo(a,d,z):Jc(a,d,z,x||null,!0):1===r&&null!==d?Jc(a,d,z,x||null,!0):2===r?function Yu(r,a,d){const _=Pu(r,a);_&&function ud(r,a,d,_){r.removeChild(a,d,_)}(r,_,a,d)}(a,z,Y):3===r&&a.destroyNode(z),null!=A&&function Bu(r,a,d,_,x){const A=d[fo];A!==yi(d)&&uu(a,r,_,A,x);for(let z=Br;za.replace(Xh,ef))}(a))}function hu(r,a,d){return r.createElement(a,d)}function Dh(r,a){const d=r[ms],_=d.indexOf(a);ac(a),d.splice(_,1)}function Lu(r,a){if(r.length<=Br)return;const d=Br+a,_=r[d];if(_){const x=_[Oo];null!==x&&x!==r&&Dh(x,_),a>0&&(r[d-1][wo]=_[wo]);const A=ml(r,Br+a);!function cf(r,a){_u(r,a,a[Ti],2,null,null),a[er]=null,a[no]=null}(_[qn],_);const Y=A[or];null!==Y&&Y.detachView(A[qn]),_[_r]=null,_[wo]=null,_[bi]&=-129}return _}function eh(r,a){if(!(256&a[bi])){const d=a[Ti];a[xo]&&ns(a[xo]),a[_s]&&ns(a[_s]),d.destroyNode&&_u(r,a,d,3,null,null),function hf(r){let a=r[qs];if(!a)return Ld(r[qn],r);for(;a;){let d=null;if(po(a))d=a[qs];else{const _=a[Br];_&&(d=_)}if(!d){for(;a&&!a[wo]&&a!==r;)po(a)&&Ld(a[qn],a),a=a[_r];null===a&&(a=r),po(a)&&Ld(a[qn],a),d=a&&a[wo]}a=d}}(a)}}function Ld(r,a){if(!(256&a[bi])){a[bi]&=-129,a[bi]|=256,function ol(r,a){let d;if(null!=r&&null!=(d=r.destroyHooks))for(let _=0;_=0?_[Y]():_[-Y].unsubscribe(),A+=2}else d[A].call(_[d[A+1]]);null!==_&&(a[Ao]=null);const x=a[Sr];if(null!==x){a[Sr]=null;for(let A=0;A-1){const{encapsulation:A}=r.data[_.directiveStart+x];if(A===On.None||A===On.Emulated)return null}return _o(_,d)}}function Jc(r,a,d,_,x){r.insertBefore(a,d,_,x)}function lo(r,a,d){r.appendChild(a,d)}function fu(r,a,d,_,x){null!==_?Jc(r,a,d,_,x):lo(r,a,d)}function Pu(r,a){return r.parentNode(a)}function Eh(r,a,d){return Sh(r,a,d)}function th(r,a,d){return 40&r.type?_o(r,d):null}let nh,Yo,Ih,tu,Sh=th;function eu(r,a){Sh=r,nh=a}function Dc(r,a,d,_){const x=Pd(r,_,a),A=a[Ti],z=Eh(_.parent||a[no],_,a);if(null!=x)if(Array.isArray(d))for(let X=0;Xr,createScript:r=>r,createScriptURL:r=>r})}catch{}return Yo}()?.createHTML(r)||r}function ah(r){Ih=r}function Bd(){if(void 0!==Ih)return Ih;if(typeof document<"u")return document;throw new je(210,!1)}function lh(){if(void 0===tu&&(tu=null,Ft.trustedTypes))try{tu=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:r=>r,createScript:r=>r,createScriptURL:r=>r})}catch{}return tu}function mf(r){return lh()?.createHTML(r)||r}function gf(r){return lh()?.createScriptURL(r)||r}class gu{constructor(a){this.changingThisBreaksApplicationSecurity=a}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Lt})`}}class fd extends gu{getTypeName(){return"HTML"}}class vf extends gu{getTypeName(){return"Style"}}class kh extends gu{getTypeName(){return"Script"}}class Rp extends gu{getTypeName(){return"URL"}}class bf extends gu{getTypeName(){return"ResourceURL"}}function qc(r){return r instanceof gu?r.changingThisBreaksApplicationSecurity:r}function Hd(r,a){const d=function $f(r){return r instanceof gu&&r.getTypeName()||null}(r);if(null!=d&&d!==a){if("ResourceURL"===d&&"URL"===a)return!0;throw new Error(`Required a safe ${a}, got a ${d} (see ${Lt})`)}return d===a}function vu(r){return new fd(r)}function o(r){return new vf(r)}function t(r){return new kh(r)}function i(r){return new Rp(r)}function s(r){return new bf(r)}function c(r){const a=new v(r);return function M(){try{return!!(new window.DOMParser).parseFromString(Yd(""),"text/html")}catch{return!1}}()?new h(a):a}class h{constructor(a){this.inertDocumentHelper=a}getInertBodyElement(a){a=""+a;try{const d=(new window.DOMParser).parseFromString(Yd(a),"text/html").body;return null===d?this.inertDocumentHelper.getInertBodyElement(a):(d.removeChild(d.firstChild),d)}catch{return null}}}class v{constructor(a){this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(a){const d=this.inertDocument.createElement("template");return d.innerHTML=Yd(a),d}}const O=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function N(r){return(r=String(r)).match(O)?r:"unsafe:"+r}function $(r){const a={};for(const d of r.split(","))a[d]=!0;return a}function q(...r){const a={};for(const d of r)for(const _ in d)d.hasOwnProperty(_)&&(a[_]=!0);return a}const de=$("area,br,col,hr,img,wbr"),we=$("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),et=$("rp,rt"),Gt=q(de,q(we,$("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),q(et,$("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),q(et,we)),an=$("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zn=q(an,$("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Kn=$("script,style,template");class fi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(a){let d=a.firstChild,_=!0;for(;d;)if(d.nodeType===Node.ELEMENT_NODE?_=this.startElement(d):d.nodeType===Node.TEXT_NODE?this.chars(d.nodeValue):this.sanitizedSomething=!0,_&&d.firstChild)d=d.firstChild;else for(;d;){d.nodeType===Node.ELEMENT_NODE&&this.endElement(d);let x=this.checkClobberedElement(d,d.nextSibling);if(x){d=x;break}d=this.checkClobberedElement(d,d.parentNode)}return this.buf.join("")}startElement(a){const d=a.nodeName.toLowerCase();if(!Gt.hasOwnProperty(d))return this.sanitizedSomething=!0,!Kn.hasOwnProperty(d);this.buf.push("<"),this.buf.push(d);const _=a.attributes;for(let x=0;x<_.length;x++){const A=_.item(x),Y=A.name,z=Y.toLowerCase();if(!Zn.hasOwnProperty(z)){this.sanitizedSomething=!0;continue}let X=A.value;an[z]&&(X=N(X)),this.buf.push(" ",Y,'="',go(X),'"')}return this.buf.push(">"),!0}endElement(a){const d=a.nodeName.toLowerCase();Gt.hasOwnProperty(d)&&!de.hasOwnProperty(d)&&(this.buf.push(""))}chars(a){this.buf.push(go(a))}checkClobberedElement(a,d){if(d&&(a.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${a.outerHTML}`);return d}}const Gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vi=/([^\#-~ |!])/g;function go(r){return r.replace(/&/g,"&").replace(Gi,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(Vi,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}let Dr;function hs(r,a){let d=null;try{Dr=Dr||c(r);let _=a?String(a):"";d=Dr.getInertBodyElement(_);let x=5,A=_;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,_=A,A=d.innerHTML,d=Dr.getInertBodyElement(_)}while(_!==A);return Yd((new fi).sanitizeChildren(Vl(d)||d))}finally{if(d){const _=Vl(d)||d;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Vl(r){return"content"in r&&function ic(r){return r.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===r.nodeName}(r)?r.content:null}var Cs=function(r){return r[r.NONE=0]="NONE",r[r.HTML=1]="HTML",r[r.STYLE=2]="STYLE",r[r.SCRIPT=3]="SCRIPT",r[r.URL=4]="URL",r[r.RESOURCE_URL=5]="RESOURCE_URL",r}(Cs||{});function f(r){const a=pa();return a?mf(a.sanitize(Cs.HTML,r)||""):Hd(r,"HTML")?mf(qc(r)):hs(Bd(),xt(r))}function b(r){const a=pa();return a?a.sanitize(Cs.URL,r)||"":Hd(r,"URL")?qc(r):N(xt(r))}function P(r){const a=pa();if(a)return gf(a.sanitize(Cs.RESOURCE_URL,r)||"");if(Hd(r,"ResourceURL"))return gf(qc(r));throw new je(904,!1)}function Gn(r,a,d){return function yn(r,a){return"src"===a&&("embed"===r||"frame"===r||"iframe"===r||"media"===r||"script"===r)||"href"===a&&("base"===r||"link"===r)?P:b}(a,d)(r)}function pa(){const r=kn();return r&&r[va].sanitizer}const Ea=new Ut("ENVIRONMENT_INITIALIZER"),Lh=new Ut("INJECTOR",-1),yf=new Ut("INJECTOR_DEF_TYPES");class wf{get(a,d=U){if(d===U){const _=new Error(`NullInjectorError: No provider for ${se(a)}!`);throw _.name="NullInjectorError",_}return d}}function Rc(r){return{\u0275providers:r}}function Qc(...r){return{\u0275providers:ch(0,r),\u0275fromNgModule:!0}}function ch(r,...a){const d=[],_=new Set;let x;const A=Y=>{d.push(Y)};return Gc(a,Y=>{const z=Y;Kf(z,A,[],_)&&(x||=[],x.push(z))}),void 0!==x&&M_(x,A),d}function M_(r,a){for(let d=0;d{a(A,_)})}}function Kf(r,a,d,_){if(!(r=_e(r)))return!1;let x=null,A=ei(r);const Y=!A&&Li(r);if(A||Y){if(Y&&!Y.standalone)return!1;x=r}else{const X=r.ngModule;if(A=ei(X),!A)return!1;x=X}const z=_.has(x);if(Y){if(z)return!1;if(_.add(x),Y.dependencies){const X="function"==typeof Y.dependencies?Y.dependencies():Y.dependencies;for(const De of X)Kf(De,a,d,_)}}else{if(!A)return!1;{if(null!=A.imports&&!z){let De;_.add(x);try{Gc(A.imports,Ke=>{Kf(Ke,a,d,_)&&(De||=[],De.push(Ke))})}finally{}void 0!==De&&M_(De,a)}if(!z){const De=Xo(x)||(()=>new x);a({provide:x,useFactory:De,deps:Vn},x),a({provide:yf,useValue:x,multi:!0},x),a({provide:Ea,useValue:()=>wt(x),multi:!0},x)}const X=A.providers;if(null!=X&&!z){const De=r;xf(X,Ke=>{a(Ke,De)})}}}return x!==r&&void 0!==r.providers}function xf(r,a){for(let d of r)mt(d)&&(d=d.\u0275providers),Array.isArray(d)?xf(d,a):a(d)}const o0=re({provide:String,useValue:re});function Jf(r){return null!==r&&"object"==typeof r&&o0 in r}function Nh(r){return"function"==typeof r}const qf=new Ut("Set Injector scope."),Mf={},Cf={};let Fh;function kp(){return void 0===Fh&&(Fh=new wf),Fh}class bu{}class Tf extends bu{get destroyed(){return this._destroyed}constructor(a,d,_,x){super(),this.parent=d,this.source=_,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qf(a,Y=>this.processProvider(Y)),this.records.set(Lh,dh(void 0,this)),x.has("environment")&&this.records.set(bu,dh(void 0,this));const A=this.records.get(qf);null!=A&&"string"==typeof A.value&&this.scopes.add(A.value),this.injectorDefTypes=new Set(this.get(yf.multi,Vn,Ce.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const d of this._ngOnDestroyHooks)d.ngOnDestroy();const a=this._onDestroyHooks;this._onDestroyHooks=[];for(const d of a)d()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(a){return this.assertNotDestroyed(),this._onDestroyHooks.push(a),()=>this.removeOnDestroy(a)}runInContext(a){this.assertNotDestroyed();const d=Wt(this),_=Oe(void 0);try{return a()}finally{Wt(d),Oe(_)}}get(a,d=U,_=Ce.Default){if(this.assertNotDestroyed(),a.hasOwnProperty(Ji))return a[Ji](this);_=Mt(_);const A=Wt(this),Y=Oe(void 0);try{if(!(_&Ce.SkipSelf)){let X=this.records.get(a);if(void 0===X){const De=function Yh(r){return"function"==typeof r||"object"==typeof r&&r instanceof Ut}(a)&&Dn(a);X=De&&this.injectableDefInScope(De)?dh(T_(a),Mf):null,this.records.set(a,X)}if(null!=X)return this.hydrate(a,X)}return(_&Ce.Self?kp():this.parent).get(a,d=_&Ce.Optional&&d===U?null:d)}catch(z){if("NullInjectorError"===z.name){if((z[Pe]=z[Pe]||[]).unshift(se(a)),A)throw z;return function It(r,a,d,_){const x=r[Pe];throw a[be]&&x.unshift(a[be]),r.message=function cn(r,a,d,_=null){r=r&&"\n"===r.charAt(0)&&"\u0275"==r.charAt(1)?r.slice(2):r;let x=se(a);if(Array.isArray(a))x=a.map(se).join(" -> ");else if("object"==typeof a){let A=[];for(let Y in a)if(a.hasOwnProperty(Y)){let z=a[Y];A.push(Y+":"+("string"==typeof z?JSON.stringify(z):se(z)))}x=`{${A.join(", ")}}`}return`${d}${_?"("+_+")":""}[${x}]: ${r.replace(We,"\n ")}`}("\n"+r.message,x,d,_),r.ngTokenPath=x,r[Pe]=null,r}(z,a,"R3InjectorError",this.source)}throw z}finally{Oe(Y),Wt(A)}}resolveInjectorInitializers(){const a=Wt(this),d=Oe(void 0);try{const x=this.get(Ea.multi,Vn,Ce.Self);for(const A of x)A()}finally{Wt(a),Oe(d)}}toString(){const a=[],d=this.records;for(const _ of d.keys())a.push(se(_));return`R3Injector[${a.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new je(205,!1)}processProvider(a){let d=Nh(a=_e(a))?a:_e(a&&a.provide);const _=function a0(r){return Jf(r)?dh(void 0,r.useValue):dh(D_(r),Mf)}(a);if(Nh(a)||!0!==a.multi)this.records.get(d);else{let x=this.records.get(d);x||(x=dh(void 0,Mf,!0),x.factory=()=>Vt(x.multi),this.records.set(d,x)),d=a,x.multi.push(a)}this.records.set(d,_)}hydrate(a,d){return d.value===Mf&&(d.value=Cf,d.value=d.factory()),"object"==typeof d.value&&d.value&&function bl(r){return null!==r&&"object"==typeof r&&"function"==typeof r.ngOnDestroy}(d.value)&&this._ngOnDestroyHooks.add(d.value),d.value}injectableDefInScope(a){if(!a.providedIn)return!1;const d=_e(a.providedIn);return"string"==typeof d?"any"===d||this.scopes.has(d):this.injectorDefTypes.has(d)}removeOnDestroy(a){const d=this._onDestroyHooks.indexOf(a);-1!==d&&this._onDestroyHooks.splice(d,1)}}function T_(r){const a=Dn(r),d=null!==a?a.factory:Xo(r);if(null!==d)return d;if(r instanceof Ut)throw new je(204,!1);if(r instanceof Function)return function s0(r){const a=r.length;if(a>0)throw Oc(a,"?"),new je(204,!1);const d=function vn(r){return r&&(r[Wn]||r[ct])||null}(r);return null!==d?()=>d.factory(r):()=>new r}(r);throw new je(204,!1)}function D_(r,a,d){let _;if(Nh(r)){const x=_e(r);return Xo(x)||T_(x)}if(Jf(r))_=()=>_e(r.useValue);else if(function Wm(r){return!(!r||!r.useFactory)}(r))_=()=>r.useFactory(...Vt(r.deps||[]));else if(function Gm(r){return!(!r||!r.useExisting)}(r))_=()=>wt(_e(r.useExisting));else{const x=_e(r&&(r.useClass||r.provide));if(!function E_(r){return!!r.deps}(r))return Xo(x)||T_(x);_=()=>new x(...Vt(r.deps))}return _}function dh(r,a,d=!1){return{factory:r,value:a,multi:d?[]:void 0}}function Qf(r,a){for(const d of r)Array.isArray(d)?Qf(d,a):d&&mt(d)?Qf(d.\u0275providers,a):a(d)}const S_=new Ut("AppId",{providedIn:"root",factory:()=>$m}),$m="ng",Df=new Ut("Platform Initializer"),Ef=new Ut("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Km=new Ut("AnimationModuleType"),Jm=new Ut("CSP nonce",{providedIn:"root",factory:()=>Bd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let O_=(r,a,d)=>null;function np(r,a,d=!1){return O_(r,a,d)}class tg{}class R_{}class ig{resolveComponentFactory(a){throw function ng(r){const a=Error(`No component factory found for ${se(r)}.`);return a.ngComponent=r,a}(a)}}let Af=(()=>{class r{static#e=this.NULL=new ig}return r})();function rg(){return Uh(en(),kn())}function Uh(r,a){return new Vh(_o(r,a))}let Vh=(()=>{class r{constructor(d){this.nativeElement=d}static#e=this.__NG_ELEMENT_ID__=rg}return r})();function L_(r){return r instanceof Vh?r.nativeElement:r}class jp{}let P_=(()=>{class r{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function N_(){const r=kn(),d=ko(en().index,r);return(po(d)?d:r)[Ti]}()}return r})(),og=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>null})}return r})();class Zp{constructor(a){this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")}}const sg=new Zp("16.2.12"),zp={};function Gp(r){if(!ae()&&!function He(){return Te}())throw new je(-203,!1)}function dg(r,a=null,d=null,_){const x=ug(r,a,d,_);return x.resolveInjectorInitializers(),x}function ug(r,a=null,d=null,_,x=new Set){const A=[d||Vn,Qc(r)];return _=_||("object"==typeof r?void 0:se(r)),new Tf(A,a||kp(),_||null,x)}let Vd=(()=>{class r{static#e=this.THROW_IF_NOT_FOUND=U;static#t=this.NULL=new wf;static create(d,_){if(Array.isArray(d))return dg({name:""},_,d,"");{const x=d.name??"";return dg({name:x},d.parent,d.providers,x)}}static#n=this.\u0275prov=Nt({token:r,providedIn:"any",factory:()=>wt(Lh)});static#i=this.__NG_ELEMENT_ID__=-1}return r})();function F_(r){return r.ngOriginalError}class uh{constructor(){this._console=console}handleError(a){const d=this._findOriginalError(a);this._console.error("ERROR",a),d&&this._console.error("ORIGINAL ERROR",d)}_findOriginalError(a){let d=a&&F_(a);for(;d&&F_(d);)d=F_(d);return d||null}}let lp=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=Y_;static#t=this.__NG_ENV_ID__=d=>d}return r})();class v0 extends lp{constructor(a){super(),this._lView=a}onDestroy(a){return nd(this._lView,a),()=>function lc(r,a){if(null===r[Sr])return;const d=r[Sr].indexOf(a);-1!==d&&r[Sr].splice(d,1)}(this._lView,a)}}function Y_(){return new v0(kn())}function Xc(r){return a=>{setTimeout(r,void 0,a)}}const vo=class b0 extends e.x{constructor(a=!1){super(),this.__isAsync=a}emit(a){super.next(a)}subscribe(a,d,_){let x=a,A=d||(()=>null),Y=_;if(a&&"object"==typeof a){const X=a;x=X.next?.bind(X),A=X.error?.bind(X),Y=X.complete?.bind(X)}this.__isAsync&&(A=Xc(A),x&&(x=Xc(x)),Y&&(Y=Xc(Y)));const z=super.subscribe({next:x,error:A,complete:Y});return a instanceof l.w0&&a.add(z),z}};function cp(...r){}class jl{constructor({enableLongStackTrace:a=!1,shouldCoalesceEventChangeDetection:d=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vo(!1),this.onMicrotaskEmpty=new vo(!1),this.onStable=new vo(!1),this.onError=new vo(!1),typeof Zone>"u")throw new je(908,!1);Zone.assertZonePatched();const x=this;x._nesting=0,x._outer=x._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!_&&d,x.shouldCoalesceRunChangeDetection=_,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function B_(){const r="function"==typeof Ft.requestAnimationFrame;let a=Ft[r?"requestAnimationFrame":"setTimeout"],d=Ft[r?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&a&&d){const _=a[Zone.__symbol__("OriginalDelegate")];_&&(a=_);const x=d[Zone.__symbol__("OriginalDelegate")];x&&(d=x)}return{nativeRequestAnimationFrame:a,nativeCancelAnimationFrame:d}}().nativeRequestAnimationFrame,function If(r){const a=()=>{!function y0(r){r.isCheckStableRunning||-1!==r.lastRequestAnimationFrameId||(r.lastRequestAnimationFrameId=r.nativeRequestAnimationFrame.call(Ft,()=>{r.fakeTopEventTask||(r.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{r.lastRequestAnimationFrameId=-1,jh(r),r.isCheckStableRunning=!0,Of(r),r.isCheckStableRunning=!1},void 0,()=>{},()=>{})),r.fakeTopEventTask.invoke()}),jh(r))}(r)};r._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(d,_,x,A,Y,z)=>{if(function Zh(r){return!(!Array.isArray(r)||1!==r.length)&&!0===r[0].data?.__ignore_ng_zone__}(z))return d.invokeTask(x,A,Y,z);try{return Wp(r),d.invokeTask(x,A,Y,z)}finally{(r.shouldCoalesceEventChangeDetection&&"eventTask"===A.type||r.shouldCoalesceRunChangeDetection)&&a(),U_(r)}},onInvoke:(d,_,x,A,Y,z,X)=>{try{return Wp(r),d.invoke(x,A,Y,z,X)}finally{r.shouldCoalesceRunChangeDetection&&a(),U_(r)}},onHasTask:(d,_,x,A)=>{d.hasTask(x,A),_===x&&("microTask"==A.change?(r._hasPendingMicrotasks=A.microTask,jh(r),Of(r)):"macroTask"==A.change&&(r.hasPendingMacrotasks=A.macroTask))},onHandleError:(d,_,x,A)=>(d.handleError(x,A),r.runOutsideAngular(()=>r.onError.emit(A)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jl.isInAngularZone())throw new je(909,!1)}static assertNotInAngularZone(){if(jl.isInAngularZone())throw new je(909,!1)}run(a,d,_){return this._inner.run(a,d,_)}runTask(a,d,_,x){const A=this._inner,Y=A.scheduleEventTask("NgZoneEvent: "+x,a,fg,cp,cp);try{return A.runTask(Y,d,_)}finally{A.cancelTask(Y)}}runGuarded(a,d,_){return this._inner.runGuarded(a,d,_)}runOutsideAngular(a){return this._outer.run(a)}}const fg={};function Of(r){if(0==r._nesting&&!r.hasPendingMicrotasks&&!r.isStable)try{r._nesting++,r.onMicrotaskEmpty.emit(null)}finally{if(r._nesting--,!r.hasPendingMicrotasks)try{r.runOutsideAngular(()=>r.onStable.emit(null))}finally{r.isStable=!0}}}function jh(r){r.hasPendingMicrotasks=!!(r._hasPendingMicrotasks||(r.shouldCoalesceEventChangeDetection||r.shouldCoalesceRunChangeDetection)&&-1!==r.lastRequestAnimationFrameId)}function Wp(r){r._nesting++,r.isStable&&(r.isStable=!1,r.onUnstable.emit(null))}function U_(r){r._nesting--,Of(r)}class pg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vo,this.onMicrotaskEmpty=new vo,this.onStable=new vo,this.onError=new vo}run(a,d,_){return a.apply(d,_)}runGuarded(a,d,_){return a.apply(d,_)}runOutsideAngular(a){return a()}runTask(a,d,_,x){return a.apply(d,_)}}const V_=new Ut("",{providedIn:"root",factory:j_});function j_(){const r=fe(jl);let a=!0;const d=new D.y(x=>{a=r.isStable&&!r.hasPendingMacrotasks&&!r.hasPendingMicrotasks,r.runOutsideAngular(()=>{x.next(a),x.complete()})}),_=new D.y(x=>{let A;r.runOutsideAngular(()=>{A=r.onStable.subscribe(()=>{jl.assertNotInAngularZone(),queueMicrotask(()=>{!a&&!r.hasPendingMacrotasks&&!r.hasPendingMicrotasks&&(a=!0,x.next(!0))})})});const Y=r.onUnstable.subscribe(()=>{jl.assertInAngularZone(),a&&(a=!1,r.runOutsideAngular(()=>{x.next(!1)}))});return()=>{A.unsubscribe(),Y.unsubscribe()}});return(0,I.T)(d,_.pipe((0,n.B)()))}function Uu(r){return r.ownerDocument.defaultView}function zh(r){return r.ownerDocument}function pd(r){return r instanceof Function?r():r}let z_=(()=>{class r{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>new r})}return r})();function dp(r){for(;r;){r[bi]|=64;const a=du(r);if(Oa(r)&&!a)return r;r=a}return null}const vg=new Ut("",{providedIn:"root",factory:()=>!1});let kf=null;function Lf(r,a){return r[a]??Kp()}function W_(r,a){const d=Kp();d.producerNode?.length&&(r[a]=kf,d.lView=r,kf=Mg())}const up={...Va,consumerIsAlwaysLive:!0,consumerMarkedDirty:r=>{dp(r.lView)},lView:null};function Mg(){return Object.create(up)}function Kp(){return kf??=Mg(),kf}const Ki={};function Cg(r){$_(Fi(),kn(),Do()+r,!1)}function $_(r,a,d,_){if(!_)if(3==(3&a[bi])){const A=r.preOrderCheckHooks;null!==A&&Xa(a,A,d)}else{const A=r.preOrderHooks;null!==A&&ld(a,A,0,d)}qa(d)}function fh(r,a=Ce.Default){const d=kn();return null===d?wt(r,a):nt(en(),d,_e(r),a)}function K_(){throw new Error("invalid")}function hp(r,a,d,_,x,A,Y,z,X,De,Ke){const Rt=a.blueprint.slice();return Rt[er]=x,Rt[bi]=140|_,(null!==De||r&&2048&r[bi])&&(Rt[bi]|=2048),Vs(Rt),Rt[_r]=Rt[Qs]=r,Rt[nr]=d,Rt[va]=Y||r&&r[va],Rt[Ti]=z||r&&r[Ti],Rt[ps]=X||r&&r[ps]||null,Rt[no]=A,Rt[Xs]=function tf(){return vh++}(),Rt[jr]=Ke,Rt[Ml]=De,Rt[wi]=2==a.type?r[wi]:Rt,Rt}function Vu(r,a,d,_,x){let A=r.data[a];if(null===A)A=Jp(r,a,d,_,x),function V(){return Ei.lFrame.inI18n}()&&(A.flags|=32);else if(64&A.type){A.type=d,A.value=_,A.attrs=x;const Y=gt();A.injectorIndex=null===Y?-1:Y.injectorIndex}return la(A,!0),A}function Jp(r,a,d,_,x){const A=so(),Y=Ra(),X=r.data[a]=function Ag(r,a,d,_,x,A){let Y=a?a.injectorIndex:-1,z=0;return hl()&&(z|=128),{type:d,index:_,insertBeforeIndex:null,injectorIndex:Y,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:z,providerIndexes:0,value:x,attrs:A,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:a,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,Y?A:A&&A.parent,d,a,_,x);return null===r.firstChild&&(r.firstChild=X),null!==A&&(Y?null==A.child&&null!==X.parent&&(A.child=X):null===A.next&&(A.next=X,X.prev=A)),X}function Pf(r,a,d,_){if(0===d)return-1;const x=a.length;for(let A=0;AAi&&$_(r,a,Ai,!1),Qr(z?2:0,x);const De=z?A:null,Ke=ts(De);try{null!==De&&(De.dirty=!1),d(_,x)}finally{Wl(De,Ke)}}finally{z&&null===a[xo]&&W_(a,xo),qa(Y),Qr(z?3:1,x)}}function qp(r,a,d){if(qo(a)){const _=Ro(null);try{const A=a.directiveEnd;for(let Y=a.directiveStart;Ynull;function X_(r,a,d,_){for(let x in r)if(r.hasOwnProperty(x)){d=null===d?{}:d;const A=r[x];null===_?em(d,a,x,A):_.hasOwnProperty(x)&&em(d,a,_[x],A)}return d}function em(r,a,d,_){r.hasOwnProperty(d)?r[d].push(a,_):r[d]=[a,_]}function md(r,a,d,_,x,A,Y,z){const X=_o(a,d);let Ke,De=a.inputs;!z&&null!=De&&(Ke=De[_])?(lm(r,d,Ke,_,x),Ss(a)&&function tm(r,a){const d=ko(a,r);16&d[bi]||(d[bi]|=64)}(d,a.index)):3&a.type&&(_=function E0(r){return"class"===r?"className":"for"===r?"htmlFor":"formaction"===r?"formAction":"innerHtml"===r?"innerHTML":"readonly"===r?"readOnly":"tabindex"===r?"tabIndex":r}(_),x=null!=Y?Y(x,a.value||"",_):x,A.setProperty(X,_,x))}function mp(r,a,d,_){if(cc()){const x=null===_?null:{"":-1},A=function A0(r,a){const d=r.directiveRegistry;let _=null,x=null;if(d)for(let A=0;A0;){const d=r[--a];if("number"==typeof d&&d<0)return d}return 0})(Y)!=z&&Y.push(z),Y.push(d,_,A)}}(r,a,_,Pf(r,d,x.hostVars,Ki),x)}function wu(r,a,d,_,x,A){const Y=_o(r,a);!function om(r,a,d,_,x,A,Y){if(null==A)r.removeAttribute(a,x,d);else{const z=null==Y?xt(A):Y(A,_||"",x);r.setAttribute(a,x,z,d)}}(a[Ti],Y,A,r.value,d,_,x)}function sm(r,a,d,_,x,A){const Y=A[a];if(null!==Y)for(let z=0;z{class r{constructor(){this.all=new Set,this.queue=new Map}create(d,_,x){const A=typeof Zone>"u"?null:Zone.current,Y=function Sn(r,a,d){const _=Object.create(ur);d&&(_.consumerAllowSignalWrites=!0),_.fn=r,_.schedule=a;const x=Y=>{_.cleanupFn=Y};return _.ref={notify:()=>es(_),run:()=>{if(_.dirty=!1,_.hasRun&&!gs(_))return;_.hasRun=!0;const Y=ts(_);try{_.cleanupFn(),_.cleanupFn=li,_.fn(x)}finally{Wl(_,Y)}},cleanup:()=>_.cleanupFn()},_.ref}(d,De=>{this.all.has(De)&&this.queue.set(De,A)},x);let z;this.all.add(Y),Y.notify();const X=()=>{Y.cleanup(),z?.(),this.all.delete(Y),this.queue.delete(Y)};return z=_?.onDestroy(X),{destroy:X}}flush(){if(0!==this.queue.size)for(const[d,_]of this.queue)this.queue.delete(d),_?_.run(()=>d.run()):d.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>new r})}return r})();function r_(r,a,d){let _=d?r.styles:null,x=d?r.classes:null,A=0;if(null!==a)for(let Y=0;Y0){Vg(r,1);const x=d.components;null!==x&&Zg(r,x,1)}}function Zg(r,a,d){for(let _=0;_-1&&(Lu(a,_),ml(d,_))}this._attachedToViewContainer=!1}eh(this._lView[qn],this._lView)}onDestroy(a){nd(this._lView,a)}markForCheck(){dp(this._cdRefInjectingView||this._lView)}detach(){this._lView[bi]&=-129}reattach(){this._lView[bi]|=128}detectChanges(){o_(this._lView[qn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new je(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function uf(r,a){_u(r,a,a[Ti],2,null,null)}(this._lView[qn],this._lView)}attachToAppRef(a){if(this._attachedToViewContainer)throw new je(902,!1);this._appRef=a}}class B0 extends yp{constructor(a){super(a),this._view=a}detectChanges(){const a=this._view;o_(a[qn],a,a[nr],!1)}checkNoChanges(){}get context(){return null}}class s_ extends Af{constructor(a){super(),this.ngModule=a}resolveComponentFactory(a){const d=Li(a);return new wp(d,this.ngModule)}}function zg(r){const a=[];for(let d in r)r.hasOwnProperty(d)&&a.push({propName:r[d],templateName:d});return a}class U0{constructor(a,d){this.injector=a,this.parentInjector=d}get(a,d,_){_=Mt(_);const x=this.injector.get(a,zp,_);return x!==zp||d===zp?x:this.parentInjector.get(a,d,_)}}class wp extends R_{get inputs(){const a=this.componentDef,d=a.inputTransforms,_=zg(a.inputs);if(null!==d)for(const x of _)d.hasOwnProperty(x.propName)&&(x.transform=d[x.propName]);return _}get outputs(){return zg(this.componentDef.outputs)}constructor(a,d){super(),this.componentDef=a,this.ngModule=d,this.componentType=a.type,this.selector=function Jr(r){return r.map(Uo).join(",")}(a.selectors),this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[],this.isBoundToModule=!!d}create(a,d,_,x){let A=(x=x||this.ngModule)instanceof bu?x:x?.injector;A&&null!==this.componentDef.getStandaloneInjector&&(A=this.componentDef.getStandaloneInjector(A)||A);const Y=A?new U0(a,A):a,z=Y.get(jp,null);if(null===z)throw new je(407,!1);const Rt={rendererFactory:z,sanitizer:Y.get(og,null),effectManager:Y.get(Bg,null),afterRenderEventManager:Y.get(z_,null)},Xt=z.createRenderer(null,this.componentDef),ln=this.componentDef.selectors[0][0]||"div",In=_?function Q_(r,a,d,_){const A=_.get(vg,!1)||d===On.ShadowDom,Y=r.selectRootElement(a,A);return function Eg(r){Gh(r)}(Y),Y}(Xt,_,this.componentDef.encapsulation,Y):hu(Xt,ln,function H0(r){const a=r.toLowerCase();return"svg"===a?zr:"math"===a?"math":null}(ln)),Yi=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Fn=null;null!==In&&(Fn=np(In,Y,!0));const cr=pp(0,null,null,1,0,null,null,null,null,null,null),Ur=hp(null,cr,null,Yi,null,null,Rt,Xt,Y,null,Fn);let xs,wd;$i(Ur);try{const mh=this.componentDef;let Op,r0=null;mh.findHostDirectiveDefs?(Op=[],r0=new Map,mh.findHostDirectiveDefs(mh,Op,r0),Op.push(mh)):Op=[mh];const GT=function V0(r,a){const d=r[qn],_=Ai;return r[_]=a,Vu(d,_,2,"#host",null)}(Ur,In),WT=function j0(r,a,d,_,x,A,Y){const z=x[qn];!function Z0(r,a,d,_){for(const x of r)a.mergedAttrs=br(a.mergedAttrs,x.hostAttrs);null!==a.mergedAttrs&&(r_(a,a.mergedAttrs,!0),null!==d&&us(_,d,a))}(_,r,a,Y);let X=null;null!==a&&(X=np(a,x[ps]));const De=A.rendererFactory.createRenderer(a,d);let Ke=16;d.signals?Ke=4096:d.onPush&&(Ke=64);const Rt=hp(x,q_(d),null,Ke,x[r.index],r,A,De,null,null,X);return z.firstCreatePass&&gp(z,r,_.length-1),i_(x,Rt),x[r.index]=Rt}(GT,In,mh,Op,Ur,Rt,Xt);wd=Xi(cr,Ai),In&&function Gg(r,a,d,_){if(_)_i(r,d,["ng-version",sg.full]);else{const{attrs:x,classes:A}=function ga(r){const a=[],d=[];let _=1,x=2;for(;_0&&Fd(r,d,A.join(" "))}}(Xt,mh,In,_),void 0!==d&&function G0(r,a,d){const _=r.projection=[];for(let x=0;x=0;_--){const x=r[_];x.hostVars=a+=x.hostVars,x.hostAttrs=br(x.hostAttrs,d=br(d,x.hostAttrs))}}(_)}function a_(r){return r===ni?{}:r===Vn?[]:r}function $0(r,a){const d=r.viewQuery;r.viewQuery=d?(_,x)=>{a(_,x),d(_,x)}:a}function $g(r,a){const d=r.contentQueries;r.contentQueries=d?(_,x,A)=>{a(_,x,A),d(_,x,A)}:a}function K0(r,a){const d=r.hostBindings;r.hostBindings=d?(_,x)=>{a(_,x),d(_,x)}:a}function Kg(r){return a=>{a.findHostDirectiveDefs=l_,a.hostDirectives=(Array.isArray(r)?r:r()).map(d=>"function"==typeof d?{directive:_e(d),inputs:ni,outputs:ni}:{directive:_e(d.directive),inputs:mm(d.inputs),outputs:mm(d.outputs)})}}function l_(r,a,d){if(null!==r.hostDirectives)for(const _ of r.hostDirectives){const x=Yr(_.directive);Jg(x.declaredInputs,_.inputs),l_(x,a,d),d.set(x,_),a.push(x)}}function mm(r){if(void 0===r||0===r.length)return ni;const a={};for(let d=0;d(pl(!0),hu(_,x,function hc(){return Ei.lFrame.currentNamespace}()));function Tm(r,a,d){const _=kn(),x=Fi(),A=r+Ai,Y=x.firstCreatePass?function Lw(r,a,d,_,x){const A=a.consts,Y=Us(A,_),z=Vu(a,r,8,"ng-container",Y);return null!==Y&&r_(z,Y,!0),mp(a,d,z,Us(A,x)),null!==a.queries&&a.queries.elementStart(a,z),z}(A,x,_,a,d):x.data[A];la(Y,!0);const z=s1(x,_,Y,r);return _[A]=z,js()&&Dc(x,_,z,Y),rl(z,_),ya(Y)&&(Qp(x,_,Y),qp(x,Y,_)),null!=d&&fp(_,Y),Tm}function Dm(){let r=en();const a=Fi();return Ra()?Ls():(r=r.parent,la(r,!1)),a.firstCreatePass&&(Pi(a,r),qo(r)&&a.queries.elementEnd(r)),Dm}function rv(r,a,d){return Tm(r,a,d),Dm(),rv}let s1=(r,a,d,_)=>(pl(!0),Qu(a[Ti],""));function a1(){return kn()}function ov(r){return!!r&&"function"==typeof r.then}function l1(r){return!!r&&"function"==typeof r.subscribe}function sv(r,a,d,_){const x=kn(),A=Fi(),Y=en();return c1(A,x,x[Ti],Y,r,a,_),sv}function av(r,a){const d=en(),_=kn(),x=Fi();return c1(x,_,Fg(mn(x.data),d,_),d,r,a),av}function c1(r,a,d,_,x,A,Y){const z=ya(_),De=r.firstCreatePass&&Ng(r),Ke=a[nr],Rt=am(a);let Xt=!0;if(3&_.type||Y){const zn=_o(_,a),ui=Y?Y(zn):zn,Yi=Rt.length,Fn=Y?Ur=>Y(yi(Ur[_.index])):_.index;let cr=null;if(!Y&&z&&(cr=function Fw(r,a,d,_){const x=r.cleanup;if(null!=x)for(let A=0;AX?z[X]:null}"string"==typeof Y&&(A+=2)}return null}(r,a,x,_.index)),null!==cr)(cr.__ngLastListenerFn__||cr).__ngNextListenerFn__=A,cr.__ngLastListenerFn__=A,Xt=!1;else{A=u1(_,a,Ke,A,!1);const Ur=d.listen(ui,x,A);Rt.push(A,Ur),De&&De.push(x,Fn,Yi,Yi+1)}}else A=u1(_,a,Ke,A,!1);const ln=_.outputs;let In;if(Xt&&null!==ln&&(In=ln[x])){const zn=In.length;if(zn)for(let ui=0;ui-1?ko(r.index,a):a);let X=d1(a,d,_,Y),De=A.__ngNextListenerFn__;for(;De;)X=d1(a,d,De,Y)&&X,De=De.__ngNextListenerFn__;return x&&!1===X&&Y.preventDefault(),X}}function h1(r=1){return function xd(r){return(Ei.lFrame.contextLView=function Md(r,a){for(;r>0;)a=a[Qs],r--;return a}(r,Ei.lFrame.contextLView))[nr]}(r)}function Yw(r,a){let d=null;const _=function xl(r){const a=r.attrs;if(null!=a){const d=a.indexOf(5);if(!(1&d))return a[d+1]}return null}(r);for(let x=0;x>17&32767}function cv(r){return 2|r}function Bf(r){return(131068&r)>>2}function dv(r,a){return-131069&r|a<<2}function uv(r){return 1|r}function M1(r,a,d,_,x){const A=r[d+1],Y=null===a;let z=_?$h(A):Bf(A),X=!1;for(;0!==z&&(!1===X||Y);){const Ke=r[z+1];Zw(r[z],a)&&(X=!0,r[z+1]=_?uv(Ke):cv(Ke)),z=_?$h(Ke):Bf(Ke)}X&&(r[d+1]=_?cv(A):uv(A))}function Zw(r,a){return null===r||null==a||(Array.isArray(r)?r[1]:r)===a||!(!Array.isArray(r)||"string"!=typeof a)&&No(r,a)>=0}const rc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function C1(r){return r.substring(rc.key,rc.keyEnd)}function zw(r){return r.substring(rc.value,rc.valueEnd)}function T1(r,a){const d=rc.textEnd;return d===a?-1:(a=rc.keyEnd=function $w(r,a,d){for(;a32;)a++;return a}(r,rc.key=a,d),Mp(r,a,d))}function D1(r,a){const d=rc.textEnd;let _=rc.key=Mp(r,a,d);return d===_?-1:(_=rc.keyEnd=function Kw(r,a,d){let _;for(;a=65&&(-33&_)<=90||_>=48&&_<=57);)a++;return a}(r,_,d),_=S1(r,_,d),_=rc.value=Mp(r,_,d),_=rc.valueEnd=function Jw(r,a,d){let _=-1,x=-1,A=-1,Y=a,z=Y;for(;Y32&&(z=Y),A=x,x=_,_=-33&X}return z}(r,_,d),S1(r,_,d))}function E1(r){rc.key=0,rc.keyEnd=0,rc.value=0,rc.valueEnd=0,rc.textEnd=r.length}function Mp(r,a,d){for(;a=0;d=D1(a,d))k1(r,C1(a),zw(a))}function O1(r){Du(ix,zu,r,!0)}function zu(r,a){for(let d=function Gw(r){return E1(r),T1(r,Mp(r,0,rc.textEnd))}(a);d>=0;d=T1(a,d))Xr(r,C1(a),!0)}function Tu(r,a,d,_){const x=kn(),A=Fi(),Y=ne(2);A.firstUpdatePass&&R1(A,r,Y,_),a!==Ki&&Je(x,Y,a)&&L1(A,A.data[Do()],x,x[Ti],r,x[Y+1]=function ox(r,a){return null==r||""===r||("string"==typeof a?r+=a:"object"==typeof r&&(r=se(qc(r)))),r}(a,d),_,Y)}function Du(r,a,d,_){const x=Fi(),A=ne(2);x.firstUpdatePass&&R1(x,null,A,_);const Y=kn();if(d!==Ki&&Je(Y,A,d)){const z=x.data[Do()];if(N1(z,_)&&!I1(x,A)){let X=_?z.classesWithoutHost:z.stylesWithoutHost;null!==X&&(d=te(X,d||"")),nv(x,z,Y,d,_)}else!function rx(r,a,d,_,x,A,Y,z){x===Ki&&(x=Vn);let X=0,De=0,Ke=0=r.expandoStartIndex}function R1(r,a,d,_){const x=r.data;if(null===x[d+1]){const A=x[Do()],Y=I1(r,d);N1(A,_)&&null===a&&!Y&&(a=!1),a=function Qw(r,a,d,_){const x=mn(r);let A=_?a.residualClasses:a.residualStyles;if(null===x)0===(_?a.classBindings:a.styleBindings)&&(d=h_(d=pv(null,r,a,d,_),a.attrs,_),A=null);else{const Y=a.directiveStylingLast;if(-1===Y||r[Y]!==x)if(d=pv(x,r,a,d,_),null===A){let X=function Xw(r,a,d){const _=d?a.classBindings:a.styleBindings;if(0!==Bf(_))return r[$h(_)]}(r,a,_);void 0!==X&&Array.isArray(X)&&(X=pv(null,r,a,X[1],_),X=h_(X,a.attrs,_),function ex(r,a,d,_){r[$h(d?a.classBindings:a.styleBindings)]=_}(r,a,_,X))}else A=function tx(r,a,d){let _;const x=a.directiveEnd;for(let A=1+a.directiveStylingLast;A0)&&(De=!0)):Ke=d,x)if(0!==X){const Xt=$h(r[z+1]);r[_+1]=Sm(Xt,z),0!==Xt&&(r[Xt+1]=dv(r[Xt+1],_)),r[z+1]=function Hw(r,a){return 131071&r|a<<17}(r[z+1],_)}else r[_+1]=Sm(z,0),0!==z&&(r[z+1]=dv(r[z+1],_)),z=_;else r[_+1]=Sm(X,0),0===z?z=_:r[X+1]=dv(r[X+1],_),X=_;De&&(r[_+1]=cv(r[_+1])),M1(r,Ke,_,!0),M1(r,Ke,_,!1),function jw(r,a,d,_,x){const A=x?r.residualClasses:r.residualStyles;null!=A&&"string"==typeof a&&No(A,a)>=0&&(d[_+1]=uv(d[_+1]))}(a,Ke,r,_,A),Y=Sm(z,X),A?a.classBindings=Y:a.styleBindings=Y}(x,A,a,d,Y,_)}}function pv(r,a,d,_,x){let A=null;const Y=d.directiveEnd;let z=d.directiveStylingLast;for(-1===z?z=d.directiveStart:z++;z0;){const X=r[x],De=Array.isArray(X),Ke=De?X[1]:X,Rt=null===Ke;let Xt=d[x+1];Xt===Ki&&(Xt=Rt?Vn:void 0);let ln=Rt?Mc(Xt,_):Ke===_?Xt:void 0;if(De&&!Am(ln)&&(ln=Mc(X,_)),Am(ln)&&(z=ln,Y))return z;const In=r[x+1];x=Y?$h(In):Bf(In)}if(null!==a){let X=A?a.residualClasses:a.residualStyles;null!=X&&(z=Mc(X,_))}return z}function Am(r){return void 0!==r}function N1(r,a){return 0!=(r.flags&(a?8:16))}function F1(r,a=""){const d=kn(),_=Fi(),x=r+Ai,A=_.firstCreatePass?Vu(_,x,1,a,null):_.data[x],Y=Y1(_,d,A,a,r);d[x]=Y,js()&&Dc(_,d,Y,A),la(A,!1)}let Y1=(r,a,d,_,x)=>(pl(!0),ku(a[Ti],_));function _v(r){return Om("",r,""),_v}function Om(r,a,d){const _=kn(),x=Un(_,r,a,d);return x!==Ki&&ju(_,Do(),x),Om}function mv(r,a,d,_,x){const A=kn(),Y=Xn(A,r,a,d,_,x);return Y!==Ki&&ju(A,Do(),Y),mv}function gv(r,a,d,_,x,A,Y){const z=kn(),X=function ii(r,a,d,_,x,A,Y,z){const De=jt(r,ka(),d,x,Y);return ne(3),De?a+xt(d)+_+xt(x)+A+xt(Y)+z:Ki}(z,r,a,d,_,x,A,Y);return X!==Ki&&ju(z,Do(),X),gv}function z1(r,a,d){Du(Xr,zu,Un(kn(),r,a,d),!0)}function G1(r,a,d){Cu(Un(kn(),r,a,d))}function W1(r,a,d,_,x){Cu(Xn(kn(),r,a,d,_,x))}function vv(r,a,d){const _=kn();return Je(_,W(),a)&&md(Fi(),xr(),_,r,a,_[Ti],d,!0),vv}function bv(r,a,d){const _=kn();if(Je(_,W(),a)){const A=Fi(),Y=xr();md(A,Y,_,r,a,Fg(mn(A.data),Y,_),d,!0)}return bv}const Hf=void 0;var Cx=["en",[["a","p"],["AM","PM"],Hf],[["AM","PM"],Hf,Hf],[["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"]],Hf,[["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"]],Hf,[["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}",Hf,"{1} 'at' {0}",Hf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mx(r){const d=Math.floor(Math.abs(r)),_=r.toString().replace(/^[^.]*\.?/,"").length;return 1===d&&0===_?1:5}];let Cp={};function yv(r){const a=function Tx(r){return r.toLowerCase().replace(/_/g,"-")}(r);let d=rb(a);if(d)return d;const _=a.split("-")[0];if(d=rb(_),d)return d;if("en"===_)return Cx;throw new je(701,!1)}function ib(r){return yv(r)[Tp.PluralCase]}function rb(r){return r in Cp||(Cp[r]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[r]),Cp[r]}var Tp=function(r){return r[r.LocaleId=0]="LocaleId",r[r.DayPeriodsFormat=1]="DayPeriodsFormat",r[r.DayPeriodsStandalone=2]="DayPeriodsStandalone",r[r.DaysFormat=3]="DaysFormat",r[r.DaysStandalone=4]="DaysStandalone",r[r.MonthsFormat=5]="MonthsFormat",r[r.MonthsStandalone=6]="MonthsStandalone",r[r.Eras=7]="Eras",r[r.FirstDayOfWeek=8]="FirstDayOfWeek",r[r.WeekendRange=9]="WeekendRange",r[r.DateFormat=10]="DateFormat",r[r.TimeFormat=11]="TimeFormat",r[r.DateTimeFormat=12]="DateTimeFormat",r[r.NumberSymbols=13]="NumberSymbols",r[r.NumberFormats=14]="NumberFormats",r[r.CurrencyCode=15]="CurrencyCode",r[r.CurrencySymbol=16]="CurrencySymbol",r[r.CurrencyName=17]="CurrencyName",r[r.Currencies=18]="Currencies",r[r.Directionality=19]="Directionality",r[r.PluralCase=20]="PluralCase",r[r.ExtraData=21]="ExtraData",r}(Tp||{});const Dp="en-US",Im={marker:"element"},Rm={marker:"ICU"};var bd=function(r){return r[r.SHIFT=2]="SHIFT",r[r.APPEND_EAGERLY=1]="APPEND_EAGERLY",r[r.COMMENT=2]="COMMENT",r}(bd||{});let ob=Dp;function sb(r){(function tt(r,a){null==r&&he(a,r,null,"!=")})(r,"Expected localeId to be defined"),"string"==typeof r&&(ob=r.toLowerCase().replace(/_/g,"-"))}function ab(r,a,d){const _=a.insertBeforeIndex,x=Array.isArray(_)?_[0]:_;return null===x?th(r,0,d):yi(d[x])}function lb(r,a,d,_,x){const A=a.insertBeforeIndex;if(Array.isArray(A)){let Y=_,z=null;if(3&a.type||(z=Y,Y=x),null!==Y&&-1===a.componentOffset)for(let X=1;X1)for(let d=r.length-2;d>=0;d--){const _=r[d];db(_)||Ox(_,a)&&null===Ix(_)&&Rx(_,a.index)}}function db(r){return!(64&r.type)}function Ox(r,a){return db(a)||r.index>a.index}function Ix(r){const a=r.insertBeforeIndex;return Array.isArray(a)?a[0]:a}function Rx(r,a){const d=r.insertBeforeIndex;Array.isArray(d)?d[0]=a:(eu(ab,lb),r.insertBeforeIndex=a)}function Px(r,a,d){const _=Jp(r,d,64,null,null);return cb(a,_),_}function Vx(){const r=[];let d,_,a=-1;function A(z,X){a=0;const De=function km(r,a){const d=a[r.currentCaseLViewIndex];return null===d?d:d<0?~d:d}(z,X);_=null!==De?z.remove[De]:Vn}function Y(){if(a<_.length){const z=_[a++];return z>0?d[z]:(r.push(a,_),A(d[qn].data[~z],d),Y())}return 0===r.length?null:(_=r.pop(),a=r.pop(),Y())}return function x(z,X){for(d=X;r.length;)r.pop();return A(z.value,X),Y}}const Lm=/\ufffd(\d+):?\d*\ufffd/gi,Zx=/\ufffd(\d+)\ufffd/,bb=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,m_="\ufffd",zx=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Gx=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Wx=/\uE500/g;function yb(r,a,d,_,x,A,Y){const z=Pf(r,_,1,null);let X=z<d.length&&d.push(X)}return{type:_,mainBinding:x,cases:a,values:d}}function wv(r){if(!r)return[];let a=0;const d=[],_=[],x=/[{}]/g;let A;for(x.lastIndex=0;A=x.exec(r);){const z=A.index;if("}"==A[0]){if(d.pop(),0==d.length){const X=r.substring(a,z);bb.test(X)?_.push(tM(X)):_.push(X),a=z+1}}else{if(0==d.length){const X=r.substring(a,z);_.push(X),a=z+1}d.push("{")}}const Y=r.substring(a);return _.push(Y),_}function nM(r,a,d,_,x,A,Y,z){const X=[],De=[],Ke=[];a.cases.push(A),a.create.push(X),a.remove.push(De),a.update.push(Ke);const Xt=c(Bd()).getInertBodyElement(Y),ln=Vl(Xt)||Xt;return ln?Cb(r,a,d,_,X,De,Ke,ln,x,z,0):0}function Cb(r,a,d,_,x,A,Y,z,X,De,Ke){let Rt=0,Xt=z.firstChild;for(;Xt;){const ln=Pf(r,d,1,null);switch(Xt.nodeType){case Node.ELEMENT_NODE:const In=Xt,zn=In.tagName.toLowerCase();if(Gt.hasOwnProperty(zn)){xv(x,Im,zn,X,ln),r.data[ln]=zn;const cr=In.attributes;for(let Ur=0;Ur>>bd.SHIFT;let Rt=r[Ke];null===Rt&&(Rt=r[Ke]=(Y&bd.COMMENT)===bd.COMMENT?x.createComment(z):ku(x,z)),De&&null!==d&&Jc(x,d,Rt,_,!1)}})(x,X.create,Ke,z&&8&z.type?x[z.index]:null),ie(!0)}function Cv(){ie(!1)}function Eb(r,a,d){Mv(r,a,d),Cv()}function Tv(r,a,d,_,x){if(r=_e(r),Array.isArray(r))for(let A=0;A>20;if(Nh(r)||!r.multi){const ln=new ca(De,x,fh),In=Ev(X,a,x?Ke:Ke+Xt,Rt);-1===In?(k(Ll(z,Y),A,X),Dv(A,r,a.length),a.push(X),z.directiveStart++,z.directiveEnd++,x&&(z.providerIndexes+=1048576),d.push(ln),Y.push(ln)):(d[In]=ln,Y[In]=ln)}else{const ln=Ev(X,a,Ke+Xt,Rt),In=Ev(X,a,Ke,Ke+Xt),ui=In>=0&&d[In];if(x&&!ui||!x&&!(ln>=0&&d[ln])){k(Ll(z,Y),A,X);const Yi=function xM(r,a,d,_,x){const A=new ca(r,d,fh);return A.multi=[],A.index=a,A.componentProviders=0,Ab(A,x,_&&!d),A}(x?wM:yM,d.length,x,_,De);!x&&ui&&(d[In].providerFactory=Yi),Dv(A,r,a.length,0),a.push(X),z.directiveStart++,z.directiveEnd++,x&&(z.providerIndexes+=1048576),d.push(Yi),Y.push(Yi)}else Dv(A,r,ln>-1?ln:In,Ab(d[x?In:ln],De,!x&&_));!x&&_&&ui&&d[In].componentProviders++}}}function Dv(r,a,d,_){const x=Nh(a),A=function C_(r){return!!r.useClass}(a);if(x||A){const X=(A?_e(a.useClass):a).prototype.ngOnDestroy;if(X){const De=r.destroyHooks||(r.destroyHooks=[]);if(!x&&a.multi){const Ke=De.indexOf(d);-1===Ke?De.push(d,[_,X]):De[Ke+1].push(_,X)}else De.push(d,X)}}}function Ab(r,a,d){return d&&r.componentProviders++,r.multi.push(a)-1}function Ev(r,a,d,_){for(let x=d;x<_;x++)if(a[x]===r)return x;return-1}function yM(r,a,d,_){return Sv(this.multi,[])}function wM(r,a,d,_){const x=this.multi;let A;if(this.providerFactory){const Y=this.providerFactory.componentProviders,z=Oi(d,d[qn],this.providerFactory.index,_);A=z.slice(0,Y),Sv(x,A);for(let X=Y;X{d.providersResolver=(_,x)=>function bM(r,a,d){const _=Fi();if(_.firstCreatePass){const x=sr(r);Tv(d,_.data,_.blueprint,x,!0),Tv(a,_.data,_.blueprint,x,!1)}}(_,x?x(r):r,a)}}class Uf{}class Ib{}function MM(r,a){return new Av(r,a??null,[])}class Av extends Uf{constructor(a,d,_){super(),this._parent=d,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new s_(this);const x=wr(a);this._bootstrapComponents=pd(x.bootstrap),this._r3Injector=ug(a,d,[{provide:Uf,useValue:this},{provide:Af,useValue:this.componentFactoryResolver},..._],se(a),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(a)}get injector(){return this._r3Injector}destroy(){const a=this._r3Injector;!a.destroyed&&a.destroy(),this.destroyCbs.forEach(d=>d()),this.destroyCbs=null}onDestroy(a){this.destroyCbs.push(a)}}class Ov extends Ib{constructor(a){super(),this.moduleType=a}create(a){return new Av(this.moduleType,a,[])}}class Rb extends Uf{constructor(a){super(),this.componentFactoryResolver=new s_(this),this.instance=null;const d=new Tf([...a.providers,{provide:Uf,useValue:this},{provide:Af,useValue:this.componentFactoryResolver}],a.parent||kp(),a.debugName,new Set(["environment"]));this.injector=d,a.runEnvironmentInitializers&&d.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(a){this.injector.onDestroy(a)}}function kb(r,a,d=null){return new Rb({providers:r,parent:a,debugName:d,runEnvironmentInitializers:!0}).injector}let TM=(()=>{class r{constructor(d){this._injector=d,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(d){if(!d.standalone)return null;if(!this.cachedInjectors.has(d)){const _=ch(0,d.type),x=_.length>0?kb([_],this._injector,`Standalone[${d.type.name}]`):null;this.cachedInjectors.set(d,x)}return this.cachedInjectors.get(d)}ngOnDestroy(){try{for(const d of this.cachedInjectors.values())null!==d&&d.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Nt({token:r,providedIn:"environment",factory:()=>new r(wt(bu))})}return r})();function Lb(r){r.getStandaloneInjector=a=>a.get(TM).getOrCreateStandaloneInjector(r)}function Ub(r,a,d){const _=mo()+r,x=kn();return x[_]===Ki?Q(x,_,d?a.call(d):a()):Le(x,_)}function Vb(r,a,d,_){return Wb(kn(),mo(),r,a,d,_)}function jb(r,a,d,_,x){return $b(kn(),mo(),r,a,d,_,x)}function Zb(r,a,d,_,x,A){return function Kb(r,a,d,_,x,A,Y,z){const X=a+d;return jt(r,X,x,A,Y)?Q(r,X+3,z?_.call(z,x,A,Y):_(x,A,Y)):v_(r,X+3)}(kn(),mo(),r,a,d,_,x,A)}function zb(r,a,d,_,x,A,Y){return function Jb(r,a,d,_,x,A,Y,z,X){const De=a+d;return dn(r,De,x,A,Y,z)?Q(r,De+4,X?_.call(X,x,A,Y,z):_(x,A,Y,z)):v_(r,De+4)}(kn(),mo(),r,a,d,_,x,A,Y)}function Gb(r,a,d,_,x,A,Y,z){const X=mo()+r,De=kn(),Ke=dn(De,X,d,_,x,A);return Je(De,X+4,Y)||Ke?Q(De,X+5,z?a.call(z,d,_,x,A,Y):a(d,_,x,A,Y)):Le(De,X+5)}function v_(r,a){const d=r[a];return d===Ki?void 0:d}function Wb(r,a,d,_,x,A){const Y=a+d;return Je(r,Y,x)?Q(r,Y+1,A?_.call(A,x):_(x)):v_(r,Y+1)}function $b(r,a,d,_,x,A,Y){const z=a+d;return At(r,z,x,A)?Q(r,z+2,Y?_.call(Y,x,A):_(x,A)):v_(r,z+2)}function Qb(r,a){const d=Fi();let _;const x=r+Ai;d.firstCreatePass?(_=function YM(r,a){if(a)for(let d=a.length-1;d>=0;d--){const _=a[d];if(r===_.name)return _}}(a,d.pipeRegistry),d.data[x]=_,_.onDestroy&&(d.destroyHooks??=[]).push(x,_.onDestroy)):_=d.data[x];const A=_.factory||(_.factory=Xo(_.type)),z=Oe(fh);try{const X=Eo(!1),De=A();return Eo(X),function Ow(r,a,d,_){d>=r.data.length&&(r.data[d]=null,r.blueprint[d]=null),a[d]=_}(d,kn(),x,De),De}finally{Oe(z)}}function Xb(r,a,d){const _=r+Ai,x=kn(),A=dl(x,_);return b_(x,_)?Wb(x,mo(),a,A.transform,d,A):A.transform(d)}function ey(r,a,d,_){const x=r+Ai,A=kn(),Y=dl(A,x);return b_(A,x)?$b(A,mo(),a,Y.transform,d,_,Y):Y.transform(d,_)}function b_(r,a){return r[qn].data[a].pure}function VM(){return this._results[Symbol.iterator]()}class Pm{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new vo)}constructor(a=!1){this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const d=Pm.prototype;d[Symbol.iterator]||(d[Symbol.iterator]=VM)}get(a){return this._results[a]}map(a){return this._results.map(a)}filter(a){return this._results.filter(a)}find(a){return this._results.find(a)}reduce(a,d){return this._results.reduce(a,d)}forEach(a){this._results.forEach(a)}some(a){return this._results.some(a)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(a,d){const _=this;_.dirty=!1;const x=function nl(r){return r.flat(Number.POSITIVE_INFINITY)}(a);(this._changesDetected=!function Jd(r,a,d){if(r.length!==a.length)return!1;for(let _=0;_0&&(d[x-1][wo]=a),_{class r{static#e=this.__NG_ELEMENT_ID__=WM}return r})();const zM=y_,GM=class extends zM{constructor(a,d,_){super(),this._declarationLView=a,this._declarationTContainer=d,this.elementRef=_}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(a,d){return this.createEmbeddedViewImpl(a,d)}createEmbeddedViewImpl(a,d,_){const x=function jM(r,a,d,_){const x=a.tView,z=hp(r,x,d,4096&r[bi]?4096:16,null,a,null,null,null,_?.injector??null,_?.hydrationInfo??null);z[Oo]=r[a.index];const De=r[or];return null!==De&&(z[or]=De.createEmbeddedView(x)),cm(x,z,d),z}(this._declarationLView,this._declarationTContainer,a,{injector:d,hydrationInfo:_});return new yp(x)}};function WM(){return Nm(en(),kn())}function Nm(r,a){return 4&r.type?new GM(a,r,Uh(r,a)):null}let Ym=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=XM}return r})();function XM(){return ay(en(),kn())}const eC=Ym,oy=class extends eC{constructor(a,d,_){super(),this._lContainer=a,this._hostTNode=d,this._hostLView=_}get element(){return Uh(this._hostTNode,this._hostLView)}get injector(){return new ls(this._hostTNode,this._hostLView)}get parentInjector(){const a=ir(this._hostTNode,this._hostLView);if(wc(a)){const d=Ac(a,this._hostLView),_=kl(a);return new ls(d[qn].data[_+8],d)}return new ls(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(a){const d=sy(this._lContainer);return null!==d&&d[a]||null}get length(){return this._lContainer.length-Br}createEmbeddedView(a,d,_){let x,A;"number"==typeof _?x=_:null!=_&&(x=_.index,A=_.injector);const z=a.createEmbeddedViewImpl(d||{},A,null);return this.insertImpl(z,x,false),z}createComponent(a,d,_,x,A){const Y=a&&!function zc(r){return"function"==typeof r}(a);let z;if(Y)z=d;else{const zn=d||{};z=zn.index,_=zn.injector,x=zn.projectableNodes,A=zn.environmentInjector||zn.ngModuleRef}const X=Y?a:new wp(Li(a)),De=_||this.parentInjector;if(!A&&null==X.ngModule){const ui=(Y?De:this.parentInjector).get(bu,null);ui&&(A=ui)}Li(X.componentType??{});const ln=X.create(De,x,null,A);return this.insertImpl(ln.hostView,z,false),ln}insert(a,d){return this.insertImpl(a,d,!1)}insertImpl(a,d,_){const x=a._lView;if(function Pc(r){return io(r[_r])}(x)){const X=this.indexOf(a);if(-1!==X)this.detach(X);else{const De=x[_r],Ke=new oy(De,De[no],De[_r]);Ke.detach(Ke.indexOf(a))}}const Y=this._adjustIndex(d),z=this._lContainer;return ZM(z,x,Y,!_),a.attachToViewContainerRef(),qd(Rv(z),Y,a),a}move(a,d){return this.insert(a,d)}indexOf(a){const d=sy(this._lContainer);return null!==d?d.indexOf(a):-1}remove(a){const d=this._adjustIndex(a,-1),_=Lu(this._lContainer,d);_&&(ml(Rv(this._lContainer),d),eh(_[qn],_))}detach(a){const d=this._adjustIndex(a,-1),_=Lu(this._lContainer,d);return _&&null!=ml(Rv(this._lContainer),d)?new yp(_):null}_adjustIndex(a,d=0){return a??this.length+d}};function sy(r){return r[8]}function Rv(r){return r[8]||(r[8]=[])}function ay(r,a){let d;const _=a[r.index];return io(_)?d=_:(d=n_(_,a,null,r),a[r.index]=d,i_(a,d)),ly(d,a,r,_),new oy(d,r,a)}let ly=function cy(r,a,d,_){if(r[fo])return;let x;x=8&d.type?yi(_):function tC(r,a){const d=r[Ti],_=d.createComment(""),x=_o(a,r);return Jc(d,Pu(d,x),_,function pf(r,a){return r.nextSibling(a)}(d,x),!1),_}(a,d),r[fo]=x};class kv{constructor(a){this.queryList=a,this.matches=null}clone(){return new kv(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lv{constructor(a=[]){this.queries=a}createEmbeddedView(a){const d=a.queries;if(null!==d){const _=null!==a.contentQueries?a.contentQueries[0]:d.length,x=[];for(let A=0;A<_;A++){const Y=d.getByIndex(A);x.push(this.queries[Y.indexInDeclarationView].clone())}return new Lv(x)}return null}insertView(a){this.dirtyQueriesWithMatches(a)}detachView(a){this.dirtyQueriesWithMatches(a)}dirtyQueriesWithMatches(a){for(let d=0;d0)_.push(Y[z/2]);else{const De=A[z+1],Ke=a[-X];for(let Rt=Br;Rt{class r{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((d,_)=>{this.resolve=d,this.reject=_}),this.appInits=fe(Ny,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const d=[];for(const x of this.appInits){const A=x();if(ov(A))d.push(A);else if(l1(A)){const Y=new Promise((z,X)=>{A.subscribe({complete:z,error:X})});d.push(Y)}}const _=()=>{this.done=!0,this.resolve()};Promise.all(d).then(()=>{_()}).catch(x=>{this.reject(x)}),0===d.length&&_(),this.initialized=!0}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Fy=(()=>{class r{log(d){console.log(d)}warn(d){console.warn(d)}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})();const Hm=new Ut("LocaleId",{providedIn:"root",factory:()=>fe(Hm,Ce.Optional|Ce.SkipSelf)||function OC(){return typeof $localize<"u"&&$localize.locale||Dp}()}),IC=new Ut("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Yy=(()=>{class r{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new S.X(!1)}add(){this.hasPendingTasks.next(!0);const d=this.taskId++;return this.pendingTasks.add(d),d}remove(d){this.pendingTasks.delete(d),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();class kC{constructor(a,d){this.ngModuleFactory=a,this.componentFactories=d}}let LC=(()=>{class r{compileModuleSync(d){return new Ov(d)}compileModuleAsync(d){return Promise.resolve(this.compileModuleSync(d))}compileModuleAndAllComponentsSync(d){const _=this.compileModuleSync(d),A=pd(wr(d).declarations).reduce((Y,z)=>{const X=Li(z);return X&&Y.push(new wp(X)),Y},[]);return new kC(_,A)}compileModuleAndAllComponentsAsync(d){return Promise.resolve(this.compileModuleAndAllComponentsSync(d))}clearCache(){}clearCacheFor(d){}getModuleId(d){}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const Vy=new Ut(""),jy=new Ut("");let Gv,nT=(()=>{class r{constructor(d,_,x){this._ngZone=d,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gv||(function iT(r){Gv=r}(x),x.addToWindow(_)),this._watchAngularEvents(),d.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{jl.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let d=this._callbacks.pop();clearTimeout(d.timeoutId),d.doneCb(this._didWork)}this._didWork=!1});else{let d=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(d)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(d=>({source:d.source,creationLocation:d.creationLocation,data:d.data})):[]}addCallback(d,_,x){let A=-1;_&&_>0&&(A=setTimeout(()=>{this._callbacks=this._callbacks.filter(Y=>Y.timeoutId!==A),d(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:d,timeoutId:A,updateCb:x})}whenStable(d,_,x){if(x&&!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(d,_,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(d){this.registry.registerApplication(d,this)}unregisterApplication(d){this.registry.unregisterApplication(d)}findProviders(d,_,x){return[]}static#e=this.\u0275fac=function(_){return new(_||r)(wt(jl),wt(Zy),wt(jy))};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac})}return r})(),Zy=(()=>{class r{constructor(){this._applications=new Map}registerApplication(d,_){this._applications.set(d,_)}unregisterApplication(d){this._applications.delete(d)}unregisterAllApplications(){this._applications.clear()}getTestability(d){return this._applications.get(d)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(d,_=!0){return Gv?.findTestabilityInTree(this,d,_)??null}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})(),Kh=null;const zy=new Ut("AllowMultipleToken"),Wv=new Ut("PlatformDestroyListeners"),$v=new Ut("appBootstrapListener");class sT{constructor(a,d){this.name=a,this.token=d}}function $y(r,a,d=[]){const _=`Platform: ${a}`,x=new Ut(_);return(A=[])=>{let Y=Kv();if(!Y||Y.injector.get(zy,!1)){const z=[...d,...A,{provide:x,useValue:!0}];r?r(z):function aT(r){if(Kh&&!Kh.get(zy,!1))throw new je(400,!1);(function Gy(){!function bc(r){Ga=r}(()=>{throw new je(600,!1)})})(),Kh=r;const a=r.get(Jy);(function Wy(r){r.get(Df,null)?.forEach(d=>d())})(r)}(function Ky(r=[],a){return Vd.create({name:a,providers:[{provide:qf,useValue:"platform"},{provide:Wv,useValue:new Set([()=>Kh=null])},...r]})}(z,_))}return function cT(r){const a=Kv();if(!a)throw new je(401,!1);return a}()}}function Kv(){return Kh?.get(Jy)??null}let Jy=(()=>{class r{constructor(d){this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(d,_){const x=function dT(r="zone.js",a){return"noop"===r?new pg:"zone.js"===r?new jl(a):r}(_?.ngZone,function qy(r){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:r?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:r?.runCoalescing??!1}}({eventCoalescing:_?.ngZoneEventCoalescing,runCoalescing:_?.ngZoneRunCoalescing}));return x.run(()=>{const A=function CM(r,a,d){return new Av(r,a,d)}(d.moduleType,this.injector,function nw(r){return[{provide:jl,useFactory:r},{provide:Ea,multi:!0,useFactory:()=>{const a=fe(hT,{optional:!0});return()=>a.initialize()}},{provide:tw,useFactory:uT},{provide:V_,useFactory:j_}]}(()=>x)),Y=A.injector.get(uh,null);return x.runOutsideAngular(()=>{const z=x.onError.subscribe({next:X=>{Y.handleError(X)}});A.onDestroy(()=>{Vm(this._modules,A),z.unsubscribe()})}),function Qy(r,a,d){try{const _=d();return ov(_)?_.catch(x=>{throw a.runOutsideAngular(()=>r.handleError(x)),x}):_}catch(_){throw a.runOutsideAngular(()=>r.handleError(_)),_}}(Y,x,()=>{const z=A.injector.get(jv);return z.runInitializers(),z.donePromise.then(()=>(sb(A.injector.get(Hm,Dp)||Dp),this._moduleDoBootstrap(A),A))})})}bootstrapModule(d,_=[]){const x=Xy({},_);return function rT(r,a,d){const _=new Ov(d);return Promise.resolve(_)}(0,0,d).then(A=>this.bootstrapModuleFactory(A,x))}_moduleDoBootstrap(d){const _=d.injector.get(Ap);if(d._bootstrapComponents.length>0)d._bootstrapComponents.forEach(x=>_.bootstrap(x));else{if(!d.instance.ngDoBootstrap)throw new je(-403,!1);d.instance.ngDoBootstrap(_)}this._modules.push(d)}onDestroy(d){this._destroyListeners.push(d)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new je(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const d=this._injector.get(Wv,null);d&&(d.forEach(_=>_()),d.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(_){return new(_||r)(wt(Vd))};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})();function Xy(r,a){return Array.isArray(a)?a.reduce(Xy,r):{...r,...a}}let Ap=(()=>{class r{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=fe(tw),this.zoneIsStable=fe(V_),this.componentTypes=[],this.components=[],this.isStable=fe(Yy).hasPendingTasks.pipe((0,Z.w)(d=>d?(0,w.of)(!1):this.zoneIsStable),(0,ee.x)(),(0,n.B)()),this._injector=fe(bu)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(d,_){const x=d instanceof R_;if(!this._injector.get(jv).done)throw!x&&Ha(d),new je(405,!1);let Y;Y=x?d:this._injector.get(Af).resolveComponentFactory(d),this.componentTypes.push(Y.componentType);const z=function oT(r){return r.isBoundToModule}(Y)?void 0:this._injector.get(Uf),De=Y.create(Vd.NULL,[],_||Y.selector,z),Ke=De.location.nativeElement,Rt=De.injector.get(Vy,null);return Rt?.registerApplication(Ke),De.onDestroy(()=>{this.detachView(De.hostView),Vm(this.components,De),Rt?.unregisterApplication(Ke)}),this._loadComponent(De),De}tick(){if(this._runningTick)throw new je(101,!1);try{this._runningTick=!0;for(let d of this._views)d.detectChanges()}catch(d){this.internalErrorHandler(d)}finally{this._runningTick=!1}}attachView(d){const _=d;this._views.push(_),_.attachToAppRef(this)}detachView(d){const _=d;Vm(this._views,_),_.detachFromAppRef()}_loadComponent(d){this.attachView(d.hostView),this.tick(),this.components.push(d);const _=this._injector.get($v,[]);_.push(...this._bootstrapListeners),_.forEach(x=>x(d))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(d=>d()),this._views.slice().forEach(d=>d.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(d){return this._destroyListeners.push(d),()=>Vm(this._destroyListeners,d)}destroy(){if(this._destroyed)throw new je(406,!1);const d=this._injector;d.destroy&&!d.destroyed&&d.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Vm(r,a){const d=r.indexOf(a);d>-1&&r.splice(d,1)}const tw=new Ut("",{providedIn:"root",factory:()=>fe(uh).handleError.bind(void 0)});function uT(){const r=fe(jl),a=fe(uh);return d=>r.runOutsideAngular(()=>a.handleError(d))}let hT=(()=>{class r{constructor(){this.zone=fe(jl),this.applicationRef=fe(Ap)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function pT(){return!1}let _T=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=mT}return r})();function mT(r){return function gT(r,a,d){if(Ss(r)&&!d){const _=ko(r.index,a);return new yp(_,_)}return 47&r.type?new yp(a[wi],a):null}(en(),kn(),16==(16&r))}class sw{constructor(){}supports(a){return y(a)}create(a){return new MT(a)}}const xT=(r,a)=>a;class MT{constructor(a){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=a||xT}forEachItem(a){let d;for(d=this._itHead;null!==d;d=d._next)a(d)}forEachOperation(a){let d=this._itHead,_=this._removalsHead,x=0,A=null;for(;d||_;){const Y=!_||d&&d.currentIndex{Y=this._trackByFn(x,z),null!==d&&Object.is(d.trackById,Y)?(_&&(d=this._verifyReinsertion(d,z,Y,x)),Object.is(d.item,z)||this._addIdentityChange(d,z)):(d=this._mismatch(d,z,Y,x),_=!0),d=d._next,x++}),this.length=x;return this._truncate(d),this.collection=a,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;for(this._additionsHead=this._additionsTail=null,a=this._movesHead;null!==a;a=a._nextMoved)a.previousIndex=a.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(a,d,_,x){let A;return null===a?A=this._itTail:(A=a._prev,this._remove(a)),null!==(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(a.item,d)||this._addIdentityChange(a,d),this._reinsertAfter(a,A,x)):null!==(a=null===this._linkedRecords?null:this._linkedRecords.get(_,x))?(Object.is(a.item,d)||this._addIdentityChange(a,d),this._moveAfter(a,A,x)):a=this._addAfter(new CT(d,_),A,x),a}_verifyReinsertion(a,d,_,x){let A=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==A?a=this._reinsertAfter(A,a._prev,x):a.currentIndex!=x&&(a.currentIndex=x,this._addToMoves(a,x)),a}_truncate(a){for(;null!==a;){const d=a._next;this._addToRemovals(this._unlink(a)),a=d}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(a,d,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);const x=a._prevRemoved,A=a._nextRemoved;return null===x?this._removalsHead=A:x._nextRemoved=A,null===A?this._removalsTail=x:A._prevRemoved=x,this._insertAfter(a,d,_),this._addToMoves(a,_),a}_moveAfter(a,d,_){return this._unlink(a),this._insertAfter(a,d,_),this._addToMoves(a,_),a}_addAfter(a,d,_){return this._insertAfter(a,d,_),this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a,a}_insertAfter(a,d,_){const x=null===d?this._itHead:d._next;return a._next=x,a._prev=d,null===x?this._itTail=a:x._prev=a,null===d?this._itHead=a:d._next=a,null===this._linkedRecords&&(this._linkedRecords=new aw),this._linkedRecords.put(a),a.currentIndex=_,a}_remove(a){return this._addToRemovals(this._unlink(a))}_unlink(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);const d=a._prev,_=a._next;return null===d?this._itHead=_:d._next=_,null===_?this._itTail=d:_._prev=d,a}_addToMoves(a,d){return a.previousIndex===d||(this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a),a}_addToRemovals(a){return null===this._unlinkedRecords&&(this._unlinkedRecords=new aw),this._unlinkedRecords.put(a),a.currentIndex=null,a._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a),a}_addIdentityChange(a,d){return a.item=d,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a,a}}class CT{constructor(a,d){this.item=a,this.trackById=d,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 TT{constructor(){this._head=null,this._tail=null}add(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)}get(a,d){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===d||d<=_.currentIndex)&&Object.is(_.trackById,a))return _;return null}remove(a){const d=a._prevDup,_=a._nextDup;return null===d?this._head=_:d._nextDup=_,null===_?this._tail=d:_._prevDup=d,null===this._head}}class aw{constructor(){this.map=new Map}put(a){const d=a.trackById;let _=this.map.get(d);_||(_=new TT,this.map.set(d,_)),_.add(a)}get(a,d){const x=this.map.get(a);return x?x.get(a,d):null}remove(a){const d=a.trackById;return this.map.get(d).remove(a)&&this.map.delete(d),a}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function lw(r,a,d){const _=r.previousIndex;if(null===_)return _;let x=0;return d&&_{if(d&&d.key===x)this._maybeAddToChanges(d,_),this._appendAfter=d,d=d._next;else{const A=this._getOrCreateRecordForKey(x,_);d=this._insertBeforeOrAppend(d,A)}}),d){d._prev&&(d._prev._next=null),this._removalsHead=d;for(let _=d;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(a,d){if(a){const _=a._prev;return d._next=a,d._prev=_,a._prev=d,_&&(_._next=d),a===this._mapHead&&(this._mapHead=d),this._appendAfter=a,a}return this._appendAfter?(this._appendAfter._next=d,d._prev=this._appendAfter):this._mapHead=d,this._appendAfter=d,null}_getOrCreateRecordForKey(a,d){if(this._records.has(a)){const x=this._records.get(a);this._maybeAddToChanges(x,d);const A=x._prev,Y=x._next;return A&&(A._next=Y),Y&&(Y._prev=A),x._next=null,x._prev=null,x}const _=new ET(a);return this._records.set(a,_),_.currentValue=d,this._addToAdditions(_),_}_reset(){if(this.isDirty){let a;for(this._previousMapHead=this._mapHead,a=this._previousMapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(a,d){Object.is(d,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=d,this._addToChanges(a))}_addToAdditions(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:(this._additionsTail._nextAdded=a,this._additionsTail=a)}_addToChanges(a){null===this._changesHead?this._changesHead=this._changesTail=a:(this._changesTail._nextChanged=a,this._changesTail=a)}_forEach(a,d){a instanceof Map?a.forEach(d):Object.keys(a).forEach(_=>d(a[_],_))}}class ET{constructor(a){this.key=a,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 dw(){return new e0([new sw])}let e0=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:dw});constructor(d){this.factories=d}static create(d,_){if(null!=_){const x=_.factories.slice();d=d.concat(x)}return new r(d)}static extend(d){return{provide:r,useFactory:_=>r.create(d,_||dw()),deps:[[r,new Na,new Wr]]}}find(d){const _=this.factories.find(x=>x.supports(d));if(null!=_)return _;throw new je(901,!1)}}return r})();function uw(){return new t0([new cw])}let t0=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:uw});constructor(d){this.factories=d}static create(d,_){if(_){const x=_.factories.slice();d=d.concat(x)}return new r(d)}static extend(d){return{provide:r,useFactory:_=>r.create(d,_||uw()),deps:[[r,new Na,new Wr]]}}find(d){const _=this.factories.find(x=>x.supports(d));if(_)return _;throw new je(901,!1)}}return r})();const OT=$y(null,"core",[]);let IT=(()=>{class r{constructor(d){}static#e=this.\u0275fac=function(_){return new(_||r)(wt(Ap))};static#t=this.\u0275mod=Vo({type:r});static#n=this.\u0275inj=nn({})}return r})();function VT(r){return"boolean"==typeof r?r:null!=r&&"false"!==r}function ZT(r,a){const d=Li(r),_=a.elementInjector||kp();return new wp(d).create(_,a.projectableNodes,a.hostElement,a.environmentInjector)}function zT(r){const a=Li(r);if(!a)return null;const d=new wp(a);return{get selector(){return d.selector},get type(){return d.componentType},get inputs(){return d.inputs},get outputs(){return d.outputs},get ngContentSelectors(){return d.ngContentSelectors},get isStandalone(){return a.standalone},get isSignal(){return a.signals}}}},6223:(ft,Ie,C)=>{"use strict";C.d(Ie,{CE:()=>Js,Cf:()=>Re,EJ:()=>jo,F:()=>$n,Fd:()=>Ko,Fj:()=>oe,JJ:()=>vn,JL:()=>ei,JU:()=>Z,Kr:()=>qs,NI:()=>uo,Oe:()=>io,On:()=>Jr,Q7:()=>jr,UX:()=>na,Wl:()=>re,YN:()=>no,_:()=>Ks,_Y:()=>ga,a5:()=>nn,cw:()=>We,kI:()=>Lt,nD:()=>fo,oH:()=>dr,qQ:()=>Xs,qu:()=>sr,sg:()=>wr,u:()=>qn,u5:()=>ta,wV:()=>oo,x0:()=>Vr});var e=C(5879),l=C(6814),D=C(9666),I=C(9315),S=C(7398);let w=(()=>{class Ae{constructor(le,Qe){this._renderer=le,this._elementRef=Qe,this.onChange=Ht=>{},this.onTouched=()=>{}}setProperty(le,Qe){this._renderer.setProperty(this._elementRef.nativeElement,le,Qe)}registerOnTouched(le){this.onTouched=le}registerOnChange(le){this.onChange=le}setDisabledState(le){this.setProperty("disabled",le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:Ae})}return Ae})(),n=(()=>{class Ae extends w{static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.qOj]})}return Ae})();const Z=new e.OlP("NgValueAccessor"),ee={provide:Z,useExisting:(0,e.Gpc)(()=>re),multi:!0};let re=(()=>{class Ae extends n{writeValue(le){this.setProperty("checked",le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(Ni){return Ht.onChange(Ni.target.checked)})("blur",function(){return Ht.onTouched()})},features:[e._Bn([ee]),e.qOj]})}return Ae})();const ue={provide:Z,useExisting:(0,e.Gpc)(()=>oe),multi:!0},te=new e.OlP("CompositionEventMode");let oe=(()=>{class Ae extends w{constructor(le,Qe,Ht){super(le,Qe),this._compositionMode=Ht,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function se(){const Ae=(0,l.q)()?(0,l.q)().getUserAgent():"";return/android (\d+)/.test(Ae.toLowerCase())}())}writeValue(le){this.setProperty("value",le??"")}_handleInput(le){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(le)}_compositionStart(){this._composing=!0}_compositionEnd(le){this._composing=!1,this._compositionMode&&this.onChange(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(te,8))};static#t=this.\u0275dir=e.lG2({type:Ae,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(Qe,Ht){1&Qe&&e.NdJ("input",function(Ni){return Ht._handleInput(Ni.target.value)})("blur",function(){return Ht.onTouched()})("compositionstart",function(){return Ht._compositionStart()})("compositionend",function(Ni){return Ht._compositionEnd(Ni.target.value)})},features:[e._Bn([ue]),e.qOj]})}return Ae})();function ce(Ae){return null==Ae||("string"==typeof Ae||Array.isArray(Ae))&&0===Ae.length}function _e(Ae){return null!=Ae&&"number"==typeof Ae.length}const Re=new e.OlP("NgValidators"),mt=new e.OlP("NgAsyncValidators"),Ge=/^(?=.{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 Lt{static min(Fe){return je(Fe)}static max(Fe){return Tt(Fe)}static required(Fe){return xt(Fe)}static requiredTrue(Fe){return function St(Ae){return!0===Ae.value?null:{required:!0}}(Fe)}static email(Fe){return function Zt(Ae){return ce(Ae.value)||Ge.test(Ae.value)?null:{email:!0}}(Fe)}static minLength(Fe){return function yt(Ae){return Fe=>ce(Fe.value)||!_e(Fe.value)?null:Fe.value.length{if(ce(Qe.value))return null;const Ht=Qe.value;return Fe.test(Ht)?null:{pattern:{requiredPattern:le,actualValue:Ht}}}}(Fe)}static nullValidator(Fe){return null}static compose(Fe){return dt(Fe)}static composeAsync(Fe){return Be(Fe)}}function je(Ae){return Fe=>{if(ce(Fe.value)||ce(Ae))return null;const le=parseFloat(Fe.value);return!isNaN(le)&&le{if(ce(Fe.value)||ce(Ae))return null;const le=parseFloat(Fe.value);return!isNaN(le)&&le>Ae?{max:{max:Ae,actual:Fe.value}}:null}}function xt(Ae){return ce(Ae.value)?{required:!0}:null}function un(Ae){return Fe=>_e(Fe.value)&&Fe.value.length>Ae?{maxlength:{requiredLength:Ae,actualLength:Fe.value.length}}:null}function tn(Ae){return null}function wn(Ae){return null!=Ae}function Ln(Ae){return(0,e.QGY)(Ae)?(0,D.D)(Ae):Ae}function Yn(Ae){let Fe={};return Ae.forEach(le=>{Fe=null!=le?{...Fe,...le}:Fe}),0===Object.keys(Fe).length?null:Fe}function ti(Ae,Fe){return Fe.map(le=>le(Ae))}function Rn(Ae){return Ae.map(Fe=>function gi(Ae){return!Ae.validate}(Fe)?Fe:le=>Fe.validate(le))}function dt(Ae){if(!Ae)return null;const Fe=Ae.filter(wn);return 0==Fe.length?null:function(le){return Yn(ti(le,Fe))}}function at(Ae){return null!=Ae?dt(Rn(Ae)):null}function Be(Ae){if(!Ae)return null;const Fe=Ae.filter(wn);return 0==Fe.length?null:function(le){const Qe=ti(le,Fe).map(Ln);return(0,I.D)(Qe).pipe((0,S.U)(Yn))}}function Ee(Ae){return null!=Ae?Be(Rn(Ae)):null}function $e(Ae,Fe){return null===Ae?[Fe]:Array.isArray(Ae)?[...Ae,Fe]:[Ae,Fe]}function me(Ae){return Ae._rawValidators}function tt(Ae){return Ae._rawAsyncValidators}function he(Ae){return Ae?Array.isArray(Ae)?Ae:[Ae]:[]}function Ze(Ae,Fe){return Array.isArray(Ae)?Ae.includes(Fe):Ae===Fe}function rt(Ae,Fe){const le=he(Fe);return he(Ae).forEach(Ht=>{Ze(le,Ht)||le.push(Ht)}),le}function bt(Ae,Fe){return he(Fe).filter(le=>!Ze(Ae,le))}class Nt{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(Fe){this._rawValidators=Fe||[],this._composedValidatorFn=at(this._rawValidators)}_setAsyncValidators(Fe){this._rawAsyncValidators=Fe||[],this._composedAsyncValidatorFn=Ee(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Fe){this._onDestroyCallbacks.push(Fe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Fe=>Fe()),this._onDestroyCallbacks=[]}reset(Fe=void 0){this.control&&this.control.reset(Fe)}hasError(Fe,le){return!!this.control&&this.control.hasError(Fe,le)}getError(Fe,le){return this.control?this.control.getError(Fe,le):null}}class Qt extends Nt{get formDirective(){return null}get path(){return null}}class nn extends Nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dn{constructor(Fe){this._cd=Fe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let vn=(()=>{class Ae extends Dn{constructor(le){super(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(nn,2))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Qe,Ht){2&Qe&&e.ekj("ng-untouched",Ht.isUntouched)("ng-touched",Ht.isTouched)("ng-pristine",Ht.isPristine)("ng-dirty",Ht.isDirty)("ng-valid",Ht.isValid)("ng-invalid",Ht.isInvalid)("ng-pending",Ht.isPending)},features:[e.qOj]})}return Ae})(),ei=(()=>{class Ae extends Dn{constructor(le){super(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Qe,Ht){2&Qe&&e.ekj("ng-untouched",Ht.isUntouched)("ng-touched",Ht.isTouched)("ng-pristine",Ht.isPristine)("ng-dirty",Ht.isDirty)("ng-valid",Ht.isValid)("ng-invalid",Ht.isInvalid)("ng-pending",Ht.isPending)("ng-submitted",Ht.isSubmitted)},features:[e.qOj]})}return Ae})();const jn="VALID",ai="INVALID",di="PENDING",oi="DISABLED";function Jn(Ae){return(U(Ae)?Ae.validators:Ae)||null}function _t(Ae,Fe){return(U(Fe)?Fe.asyncValidators:Ae)||null}function U(Ae){return null!=Ae&&!Array.isArray(Ae)&&"object"==typeof Ae}function ve(Ae,Fe,le){const Qe=Ae.controls;if(!(Fe?Object.keys(Qe):Qe).length)throw new e.vHH(1e3,"");if(!Qe[le])throw new e.vHH(1001,"")}function Pe(Ae,Fe,le){Ae._forEachChild((Qe,Ht)=>{if(void 0===le[Ht])throw new e.vHH(1002,"")})}class ut{constructor(Fe,le){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Fe),this._assignAsyncValidators(le)}get validator(){return this._composedValidatorFn}set validator(Fe){this._rawValidators=this._composedValidatorFn=Fe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Fe){this._rawAsyncValidators=this._composedAsyncValidatorFn=Fe}get parent(){return this._parent}get valid(){return this.status===jn}get invalid(){return this.status===ai}get pending(){return this.status==di}get disabled(){return this.status===oi}get enabled(){return this.status!==oi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Fe){this._assignValidators(Fe)}setAsyncValidators(Fe){this._assignAsyncValidators(Fe)}addValidators(Fe){this.setValidators(rt(Fe,this._rawValidators))}addAsyncValidators(Fe){this.setAsyncValidators(rt(Fe,this._rawAsyncValidators))}removeValidators(Fe){this.setValidators(bt(Fe,this._rawValidators))}removeAsyncValidators(Fe){this.setAsyncValidators(bt(Fe,this._rawAsyncValidators))}hasValidator(Fe){return Ze(this._rawValidators,Fe)}hasAsyncValidator(Fe){return Ze(this._rawAsyncValidators,Fe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Fe={}){this.touched=!0,this._parent&&!Fe.onlySelf&&this._parent.markAsTouched(Fe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Fe=>Fe.markAllAsTouched())}markAsUntouched(Fe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(le=>{le.markAsUntouched({onlySelf:!0})}),this._parent&&!Fe.onlySelf&&this._parent._updateTouched(Fe)}markAsDirty(Fe={}){this.pristine=!1,this._parent&&!Fe.onlySelf&&this._parent.markAsDirty(Fe)}markAsPristine(Fe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(le=>{le.markAsPristine({onlySelf:!0})}),this._parent&&!Fe.onlySelf&&this._parent._updatePristine(Fe)}markAsPending(Fe={}){this.status=di,!1!==Fe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Fe.onlySelf&&this._parent.markAsPending(Fe)}disable(Fe={}){const le=this._parentMarkedDirty(Fe.onlySelf);this.status=oi,this.errors=null,this._forEachChild(Qe=>{Qe.disable({...Fe,onlySelf:!0})}),this._updateValue(),!1!==Fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Fe,skipPristineCheck:le}),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(Fe={}){const le=this._parentMarkedDirty(Fe.onlySelf);this.status=jn,this._forEachChild(Qe=>{Qe.enable({...Fe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Fe.emitEvent}),this._updateAncestors({...Fe,skipPristineCheck:le}),this._onDisabledChange.forEach(Qe=>Qe(!1))}_updateAncestors(Fe){this._parent&&!Fe.onlySelf&&(this._parent.updateValueAndValidity(Fe),Fe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Fe){this._parent=Fe}getRawValue(){return this.value}updateValueAndValidity(Fe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===jn||this.status===di)&&this._runAsyncValidator(Fe.emitEvent)),!1!==Fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Fe.onlySelf&&this._parent.updateValueAndValidity(Fe)}_updateTreeValidity(Fe={emitEvent:!0}){this._forEachChild(le=>le._updateTreeValidity(Fe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Fe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?oi:jn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Fe){if(this.asyncValidator){this.status=di,this._hasOwnPendingAsyncValidator=!0;const le=Ln(this.asyncValidator(this));this._asyncValidationSubscription=le.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:Fe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Fe,le={}){this.errors=Fe,this._updateControlsErrors(!1!==le.emitEvent)}get(Fe){let le=Fe;return null==le||(Array.isArray(le)||(le=le.split(".")),0===le.length)?null:le.reduce((Qe,Ht)=>Qe&&Qe._find(Ht),this)}getError(Fe,le){const Qe=le?this.get(le):this;return Qe&&Qe.errors?Qe.errors[Fe]:null}hasError(Fe,le){return!!this.getError(Fe,le)}get root(){let Fe=this;for(;Fe._parent;)Fe=Fe._parent;return Fe}_updateControlsErrors(Fe){this.status=this._calculateStatus(),Fe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Fe)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?oi:this.errors?ai:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(di)?di:this._anyControlsHaveStatus(ai)?ai:jn}_anyControlsHaveStatus(Fe){return this._anyControls(le=>le.status===Fe)}_anyControlsDirty(){return this._anyControls(Fe=>Fe.dirty)}_anyControlsTouched(){return this._anyControls(Fe=>Fe.touched)}_updatePristine(Fe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Fe.onlySelf&&this._parent._updatePristine(Fe)}_updateTouched(Fe={}){this.touched=this._anyControlsTouched(),this._parent&&!Fe.onlySelf&&this._parent._updateTouched(Fe)}_registerOnCollectionChange(Fe){this._onCollectionChange=Fe}_setUpdateStrategy(Fe){U(Fe)&&null!=Fe.updateOn&&(this._updateOn=Fe.updateOn)}_parentMarkedDirty(Fe){return!Fe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Fe){return null}_assignValidators(Fe){this._rawValidators=Array.isArray(Fe)?Fe.slice():Fe,this._composedValidatorFn=function qt(Ae){return Array.isArray(Ae)?at(Ae):Ae||null}(this._rawValidators)}_assignAsyncValidators(Fe){this._rawAsyncValidators=Array.isArray(Fe)?Fe.slice():Fe,this._composedAsyncValidatorFn=function G(Ae){return Array.isArray(Ae)?Ee(Ae):Ae||null}(this._rawAsyncValidators)}}class We extends ut{constructor(Fe,le,Qe){super(Jn(le),_t(Qe,le)),this.controls=Fe,this._initObservables(),this._setUpdateStrategy(le),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Fe,le){return this.controls[Fe]?this.controls[Fe]:(this.controls[Fe]=le,le.setParent(this),le._registerOnCollectionChange(this._onCollectionChange),le)}addControl(Fe,le,Qe={}){this.registerControl(Fe,le),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(Fe,le={}){this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),delete this.controls[Fe],this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}setControl(Fe,le,Qe={}){this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),delete this.controls[Fe],le&&this.registerControl(Fe,le),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(Fe){return this.controls.hasOwnProperty(Fe)&&this.controls[Fe].enabled}setValue(Fe,le={}){Pe(this,0,Fe),Object.keys(Fe).forEach(Qe=>{ve(this,!0,Qe),this.controls[Qe].setValue(Fe[Qe],{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le)}patchValue(Fe,le={}){null!=Fe&&(Object.keys(Fe).forEach(Qe=>{const Ht=this.controls[Qe];Ht&&Ht.patchValue(Fe[Qe],{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le))}reset(Fe={},le={}){this._forEachChild((Qe,Ht)=>{Qe.reset(Fe?Fe[Ht]:null,{onlySelf:!0,emitEvent:le.emitEvent})}),this._updatePristine(le),this._updateTouched(le),this.updateValueAndValidity(le)}getRawValue(){return this._reduceChildren({},(Fe,le,Qe)=>(Fe[Qe]=le.getRawValue(),Fe))}_syncPendingControls(){let Fe=this._reduceChildren(!1,(le,Qe)=>!!Qe._syncPendingControls()||le);return Fe&&this.updateValueAndValidity({onlySelf:!0}),Fe}_forEachChild(Fe){Object.keys(this.controls).forEach(le=>{const Qe=this.controls[le];Qe&&Fe(Qe,le)})}_setUpControls(){this._forEachChild(Fe=>{Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Fe){for(const[le,Qe]of Object.entries(this.controls))if(this.contains(le)&&Fe(Qe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(le,Qe,Ht)=>((Qe.enabled||this.disabled)&&(le[Ht]=Qe.value),le))}_reduceChildren(Fe,le){let Qe=Fe;return this._forEachChild((Ht,Qn)=>{Qe=le(Qe,Ht,Qn)}),Qe}_allControlsDisabled(){for(const Fe of Object.keys(this.controls))if(this.controls[Fe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Fe){return this.controls.hasOwnProperty(Fe)?this.controls[Fe]:null}}class Te extends We{}const Wt=new e.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Pn}),Pn="always";function wt(Ae,Fe){return[...Fe.path,Ae]}function Yt(Ae,Fe,le=Pn){ht(Ae,Fe),Fe.valueAccessor.writeValue(Ae.value),(Ae.disabled||"always"===le)&&Fe.valueAccessor.setDisabledState?.(Ae.disabled),function It(Ae,Fe){Fe.valueAccessor.registerOnChange(le=>{Ae._pendingValue=le,Ae._pendingChange=!0,Ae._pendingDirty=!0,"change"===Ae.updateOn&&_n(Ae,Fe)})}(Ae,Fe),function En(Ae,Fe){const le=(Qe,Ht)=>{Fe.valueAccessor.writeValue(Qe),Ht&&Fe.viewToModelUpdate(Qe)};Ae.registerOnChange(le),Fe._registerOnDestroy(()=>{Ae._unregisterOnChange(le)})}(Ae,Fe),function cn(Ae,Fe){Fe.valueAccessor.registerOnTouched(()=>{Ae._pendingTouched=!0,"blur"===Ae.updateOn&&Ae._pendingChange&&_n(Ae,Fe),"submit"!==Ae.updateOn&&Ae.markAsTouched()})}(Ae,Fe),function Vt(Ae,Fe){if(Fe.valueAccessor.setDisabledState){const le=Qe=>{Fe.valueAccessor.setDisabledState(Qe)};Ae.registerOnDisabledChange(le),Fe._registerOnDestroy(()=>{Ae._unregisterOnDisabledChange(le)})}}(Ae,Fe)}function fe(Ae,Fe,le=!0){const Qe=()=>{};Fe.valueAccessor&&(Fe.valueAccessor.registerOnChange(Qe),Fe.valueAccessor.registerOnTouched(Qe)),st(Ae,Fe),Ae&&(Fe._invokeOnDestroyCallbacks(),Ae._registerOnCollectionChange(()=>{}))}function Mt(Ae,Fe){Ae.forEach(le=>{le.registerOnValidatorChange&&le.registerOnValidatorChange(Fe)})}function ht(Ae,Fe){const le=me(Ae);null!==Fe.validator?Ae.setValidators($e(le,Fe.validator)):"function"==typeof le&&Ae.setValidators([le]);const Qe=tt(Ae);null!==Fe.asyncValidator?Ae.setAsyncValidators($e(Qe,Fe.asyncValidator)):"function"==typeof Qe&&Ae.setAsyncValidators([Qe]);const Ht=()=>Ae.updateValueAndValidity();Mt(Fe._rawValidators,Ht),Mt(Fe._rawAsyncValidators,Ht)}function st(Ae,Fe){let le=!1;if(null!==Ae){if(null!==Fe.validator){const Ht=me(Ae);if(Array.isArray(Ht)&&Ht.length>0){const Qn=Ht.filter(Ni=>Ni!==Fe.validator);Qn.length!==Ht.length&&(le=!0,Ae.setValidators(Qn))}}if(null!==Fe.asyncValidator){const Ht=tt(Ae);if(Array.isArray(Ht)&&Ht.length>0){const Qn=Ht.filter(Ni=>Ni!==Fe.asyncValidator);Qn.length!==Ht.length&&(le=!0,Ae.setAsyncValidators(Qn))}}}const Qe=()=>{};return Mt(Fe._rawValidators,Qe),Mt(Fe._rawAsyncValidators,Qe),le}function _n(Ae,Fe){Ae._pendingDirty&&Ae.markAsDirty(),Ae.setValue(Ae._pendingValue,{emitModelToViewChange:!1}),Fe.viewToModelUpdate(Ae._pendingValue),Ae._pendingChange=!1}function On(Ae,Fe){ht(Ae,Fe)}function Bi(Ae,Fe){if(!Ae.hasOwnProperty("model"))return!1;const le=Ae.model;return!!le.isFirstChange()||!Object.is(Fe,le.currentValue)}function Ji(Ae,Fe){Ae._syncPendingControls(),Fe.forEach(le=>{const Qe=le.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(le.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function tr(Ae,Fe){if(!Fe)return null;let le,Qe,Ht;return Array.isArray(Fe),Fe.forEach(Qn=>{Qn.constructor===oe?le=Qn:function co(Ae){return Object.getPrototypeOf(Ae.constructor)===n}(Qn)?Qe=Qn:Ht=Qn}),Ht||Qe||le||null}const pr={provide:Qt,useExisting:(0,e.Gpc)(()=>$n)},br=(()=>Promise.resolve())();let $n=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.callSetDisabledState=Ht,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new We({},at(le),Ee(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(le){br.then(()=>{const Qe=this._findContainer(le.path);le.control=Qe.registerControl(le.name,le.control),Yt(le.control,le,this.callSetDisabledState),le.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(le)})}getControl(le){return this.form.get(le.path)}removeControl(le){br.then(()=>{const Qe=this._findContainer(le.path);Qe&&Qe.removeControl(le.name),this._directives.delete(le)})}addFormGroup(le){br.then(()=>{const Qe=this._findContainer(le.path),Ht=new We({});On(Ht,le),Qe.registerControl(le.name,Ht),Ht.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(le){br.then(()=>{const Qe=this._findContainer(le.path);Qe&&Qe.removeControl(le.name)})}getFormGroup(le){return this.form.get(le.path)}updateModel(le,Qe){br.then(()=>{this.form.get(le.path).setValue(Qe)})}setValue(le){this.control.setValue(le)}onSubmit(le){return this.submitted=!0,Ji(this.form,this._directives),this.ngSubmit.emit(le),"dialog"===le?.target?.method}onReset(){this.resetForm()}resetForm(le=void 0){this.form.reset(le),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(le){return le.pop(),le.length?this.form.get(le):this.form}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("submit",function(Ni){return Ht.onSubmit(Ni)})("reset",function(){return Ht.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([pr]),e.qOj]})}return Ae})();function yo(Ae,Fe){const le=Ae.indexOf(Fe);le>-1&&Ae.splice(le,1)}function Fr(Ae){return"object"==typeof Ae&&null!==Ae&&2===Object.keys(Ae).length&&"value"in Ae&&"disabled"in Ae}const uo=class extends ut{constructor(Fe=null,le,Qe){super(Jn(le),_t(Qe,le)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Fe),this._setUpdateStrategy(le),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),U(le)&&(le.nonNullable||le.initialValueIsDefault)&&(this.defaultValue=Fr(Fe)?Fe.value:Fe)}setValue(Fe,le={}){this.value=this._pendingValue=Fe,this._onChange.length&&!1!==le.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==le.emitViewToModelChange)),this.updateValueAndValidity(le)}patchValue(Fe,le={}){this.setValue(Fe,le)}reset(Fe=this.defaultValue,le={}){this._applyFormState(Fe),this.markAsPristine(le),this.markAsUntouched(le),this.setValue(this.value,le),this._pendingChange=!1}_updateValue(){}_anyControls(Fe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Fe){this._onChange.push(Fe)}_unregisterOnChange(Fe){yo(this._onChange,Fe)}registerOnDisabledChange(Fe){this._onDisabledChange.push(Fe)}_unregisterOnDisabledChange(Fe){yo(this._onDisabledChange,Fe)}_forEachChild(Fe){}_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(Fe){Fr(Fe)?(this.value=this._pendingValue=Fe.value,Fe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Fe}};let yr=(()=>{class Ae extends Qt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.qOj]})}return Ae})();const $s={provide:nn,useExisting:(0,e.Gpc)(()=>Jr)},Uo=(()=>Promise.resolve())();let Jr=(()=>{class Ae extends nn{constructor(le,Qe,Ht,Qn,Ni,Zo){super(),this._changeDetectorRef=Ni,this.callSetDisabledState=Zo,this.control=new uo,this._registered=!1,this.name="",this.update=new e.vpe,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht),this.valueAccessor=tr(0,Qn)}ngOnChanges(le){if(this._checkForErrors(),!this._registered||"name"in le){if(this._registered&&(this._checkName(),this.formDirective)){const Qe=le.name.previousValue;this.formDirective.removeControl({name:Qe,path:this._getPath(Qe)})}this._setUpControl()}"isDisabled"in le&&this._updateDisabled(le),Bi(le,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}_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(){Yt(this.control,this,this.callSetDisabledState),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(le){Uo.then(()=>{this.control.setValue(le,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(le){const Qe=le.isDisabled.currentValue,Ht=0!==Qe&&(0,e.VuI)(Qe);Uo.then(()=>{Ht&&!this.control.disabled?this.control.disable():!Ht&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(le){return this._parent?wt(le,this._parent):[le]}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,9),e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(e.sBO,8),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([$s]),e.qOj,e.TTD]})}return Ae})(),ga=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Ae})();const kr={provide:Z,useExisting:(0,e.Gpc)(()=>oo),multi:!0};let oo=(()=>{class Ae extends n{writeValue(le){this.setProperty("value",le??"")}registerOnChange(le){this.onChange=Qe=>{le(""==Qe?null:parseFloat(Qe))}}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("input",function(Ni){return Ht.onChange(Ni.target.value)})("blur",function(){return Ht.onTouched()})},features:[e._Bn([kr]),e.qOj]})}return Ae})();const fs={provide:Z,useExisting:(0,e.Gpc)(()=>Ks),multi:!0};let Vo=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({})}return Ae})(),oc=(()=>{class Ae{constructor(){this._accessors=[]}add(le,Qe){this._accessors.push([le,Qe])}remove(le){for(let Qe=this._accessors.length-1;Qe>=0;--Qe)if(this._accessors[Qe][1]===le)return void this._accessors.splice(Qe,1)}select(le){this._accessors.forEach(Qe=>{this._isSameGroup(Qe,le)&&Qe[1]!==le&&Qe[1].fireUncheck(le.value)})}_isSameGroup(le,Qe){return!!le[0].control&&le[0]._parent===Qe._control._parent&&le[1].name===Qe.name}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:Vo})}return Ae})(),Ks=(()=>{class Ae extends n{constructor(le,Qe,Ht,Qn){super(le,Qe),this._registry=Ht,this._injector=Qn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,e.f3M)(Wt,{optional:!0})??Pn}ngOnInit(){this._control=this._injector.get(nn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(le){this._state=le===this.value,this.setProperty("checked",this._state)}registerOnChange(le){this._fn=le,this.onChange=()=>{le(this.value),this._registry.select(this)}}setDisabledState(le){(this.setDisabledStateFired||le||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",le),this.setDisabledStateFired=!0}fireUncheck(le){this.writeValue(le)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(oc),e.Y36(e.zs3))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(){return Ht.onChange()})("blur",function(){return Ht.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e._Bn([fs]),e.qOj]})}return Ae})();const Li=new e.OlP("NgModelWithFormControlWarning"),Yr={provide:nn,useExisting:(0,e.Gpc)(()=>dr)};let dr=(()=>{class Ae extends nn{set isDisabled(le){}static#e=this._ngModelWarningSentOnce=!1;constructor(le,Qe,Ht,Qn,Ni){super(),this._ngModelWarningConfig=Qn,this.callSetDisabledState=Ni,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(le),this._setAsyncValidators(Qe),this.valueAccessor=tr(0,Ht)}ngOnChanges(le){if(this._isControlChanged(le)){const Qe=le.form.previousValue;Qe&&fe(Qe,this,!1),Yt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Bi(le,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&fe(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}_isControlChanged(le){return le.hasOwnProperty("form")}static#t=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(Li,8),e.Y36(Wt,8))};static#n=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Yr]),e.qOj,e.TTD]})}return Ae})();const Ha={provide:Qt,useExisting:(0,e.Gpc)(()=>wr)};let wr=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.callSetDisabledState=Ht,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(le),this._setAsyncValidators(Qe)}ngOnChanges(le){this._checkFormPresent(),le.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(st(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(le){const Qe=this.form.get(le.path);return Yt(Qe,le,this.callSetDisabledState),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(le),Qe}getControl(le){return this.form.get(le.path)}removeControl(le){fe(le.control||null,le,!1),function _i(Ae,Fe){const le=Ae.indexOf(Fe);le>-1&&Ae.splice(le,1)}(this.directives,le)}addFormGroup(le){this._setUpFormContainer(le)}removeFormGroup(le){this._cleanUpFormContainer(le)}getFormGroup(le){return this.form.get(le.path)}addFormArray(le){this._setUpFormContainer(le)}removeFormArray(le){this._cleanUpFormContainer(le)}getFormArray(le){return this.form.get(le.path)}updateModel(le,Qe){this.form.get(le.path).setValue(Qe)}onSubmit(le){return this.submitted=!0,Ji(this.form,this.directives),this.ngSubmit.emit(le),"dialog"===le?.target?.method}onReset(){this.resetForm()}resetForm(le=void 0){this.form.reset(le),this.submitted=!1}_updateDomValue(){this.directives.forEach(le=>{const Qe=le.control,Ht=this.form.get(le.path);Qe!==Ht&&(fe(Qe||null,le),(Ae=>Ae instanceof uo)(Ht)&&(Yt(Ht,le,this.callSetDisabledState),le.control=Ht))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(le){const Qe=this.form.get(le.path);On(Qe,le),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(le){if(this.form){const Qe=this.form.get(le.path);Qe&&function ni(Ae,Fe){return st(Ae,Fe)}(Qe,le)&&Qe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ht(this.form,this),this._oldForm&&st(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroup",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("submit",function(Ni){return Ht.onSubmit(Ni)})("reset",function(){return Ht.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ha]),e.qOj,e.TTD]})}return Ae})();const al={provide:Qt,useExisting:(0,e.Gpc)(()=>Vr)};let Vr=(()=>{class Ae extends yr{constructor(le,Qe,Ht){super(),this.name=null,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht)}_checkParentType(){ll(this._parent)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[e._Bn([al]),e.qOj]})}return Ae})();const Es={provide:Qt,useExisting:(0,e.Gpc)(()=>Js)};let Js=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.name=null,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){ll(this._parent)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[e._Bn([Es]),e.qOj]})}return Ae})();function ll(Ae){return!(Ae instanceof Vr||Ae instanceof wr||Ae instanceof Js)}const er={provide:nn,useExisting:(0,e.Gpc)(()=>qn)};let qn=(()=>{class Ae extends nn{set isDisabled(le){}static#e=this._ngModelWarningSentOnce=!1;constructor(le,Qe,Ht,Qn,Ni){super(),this._ngModelWarningConfig=Ni,this._added=!1,this.name=null,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht),this.valueAccessor=tr(0,Qn)}ngOnChanges(le){this._added||this._setUpControl(),Bi(le,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}get path(){return wt(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._added=!0}static#t=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(Li,8))};static#n=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([er]),e.qOj,e.TTD]})}return Ae})();const bi={provide:Z,useExisting:(0,e.Gpc)(()=>jo),multi:!0};function _r(Ae,Fe){return null==Ae?`${Fe}`:(Fe&&"object"==typeof Fe&&(Fe="Object"),`${Ae}: ${Fe}`.slice(0,50))}let jo=(()=>{class Ae extends n{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(le){this._compareWith=le}writeValue(le){this.value=le;const Ht=_r(this._getOptionId(le),le);this.setProperty("value",Ht)}registerOnChange(le){this.onChange=Qe=>{this.value=this._getOptionValue(Qe),le(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(le){for(const Qe of this._optionMap.keys())if(this._compareWith(this._optionMap.get(Qe),le))return Qe;return null}_getOptionValue(le){const Qe=function wo(Ae){return Ae.split(":")[0]}(le);return this._optionMap.has(Qe)?this._optionMap.get(Qe):le}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(Ni){return Ht.onChange(Ni.target.value)})("blur",function(){return Ht.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([bi]),e.qOj]})}return Ae})(),no=(()=>{class Ae{constructor(le,Qe,Ht){this._element=le,this._renderer=Qe,this._select=Ht,this._select&&(this.id=this._select._registerOption())}set ngValue(le){null!=this._select&&(this._select._optionMap.set(this.id,le),this._setElementValue(_r(this.id,le)),this._select.writeValue(this._select.value))}set value(le){this._setElementValue(le),this._select&&this._select.writeValue(this._select.value)}_setElementValue(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(jo,9))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Ae})();const Ao={provide:Z,useExisting:(0,e.Gpc)(()=>Ti),multi:!0};function nr(Ae,Fe){return null==Ae?`${Fe}`:("string"==typeof Fe&&(Fe=`'${Fe}'`),Fe&&"object"==typeof Fe&&(Fe="Object"),`${Ae}: ${Fe}`.slice(0,50))}let Ti=(()=>{class Ae extends n{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(le){this._compareWith=le}writeValue(le){let Qe;if(this.value=le,Array.isArray(le)){const Ht=le.map(Qn=>this._getOptionId(Qn));Qe=(Qn,Ni)=>{Qn._setSelected(Ht.indexOf(Ni.toString())>-1)}}else Qe=(Ht,Qn)=>{Ht._setSelected(!1)};this._optionMap.forEach(Qe)}registerOnChange(le){this.onChange=Qe=>{const Ht=[],Qn=Qe.selectedOptions;if(void 0!==Qn){const Ni=Qn;for(let Zo=0;Zo{class Ae{constructor(le,Qe,Ht){this._element=le,this._renderer=Qe,this._select=Ht,this._select&&(this.id=this._select._registerOption(this))}set ngValue(le){null!=this._select&&(this._value=le,this._setElementValue(nr(this.id,le)),this._select.writeValue(this._select.value))}set value(le){this._select?(this._value=le,this._setElementValue(nr(this.id,le)),this._select.writeValue(this._select.value)):this._setElementValue(le)}_setElementValue(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}_setSelected(le){this._renderer.setProperty(this._element.nativeElement,"selected",le)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ti,9))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Ae})();function Qs(Ae){return"number"==typeof Ae?Ae:parseFloat(Ae)}let wi=(()=>{class Ae{constructor(){this._validator=tn}ngOnChanges(le){if(this.inputName in le){const Qe=this.normalizeInput(le[this.inputName].currentValue);this._enabled=this.enabled(Qe),this._validator=this._enabled?this.createValidator(Qe):tn,this._onChange&&this._onChange()}}validate(le){return this._validator(le)}registerOnValidatorChange(le){this._onChange=le}enabled(le){return null!=le}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.TTD]})}return Ae})();const Oo={provide:Re,useExisting:(0,e.Gpc)(()=>Ko),multi:!0};let Ko=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=le=>Qs(le),this.createValidator=le=>Tt(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("max",Ht._enabled?Ht.max:null)},inputs:{max:"max"},features:[e._Bn([Oo]),e.qOj]})}return Ae})();const or={provide:Re,useExisting:(0,e.Gpc)(()=>Xs),multi:!0};let Xs=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=le=>Qs(le),this.createValidator=le=>je(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("min",Ht._enabled?Ht.min:null)},inputs:{min:"min"},features:[e._Bn([or]),e.qOj]})}return Ae})();const Ml={provide:Re,useExisting:(0,e.Gpc)(()=>jr),multi:!0};let jr=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.VuI,this.createValidator=le=>xt}enabled(le){return le}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("required",Ht._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Ml]),e.qOj]})}return Ae})();const Ys={provide:Re,useExisting:(0,e.Gpc)(()=>fo),multi:!0};let fo=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=le=>function ba(Ae){return"number"==typeof Ae?Ae:parseInt(Ae,10)}(le),this.createValidator=le=>un(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("maxlength",Ht._enabled?Ht.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e._Bn([Ys]),e.qOj]})}return Ae})(),po=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[Vo]})}return Ae})();class io extends ut{constructor(Fe,le,Qe){super(Jn(le),_t(Qe,le)),this.controls=Fe,this._initObservables(),this._setUpdateStrategy(le),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Fe){return this.controls[this._adjustIndex(Fe)]}push(Fe,le={}){this.controls.push(Fe),this._registerControl(Fe),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}insert(Fe,le,Qe={}){this.controls.splice(Fe,0,le),this._registerControl(le),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(Fe,le={}){let Qe=this._adjustIndex(Fe);Qe<0&&(Qe=0),this.controls[Qe]&&this.controls[Qe]._registerOnCollectionChange(()=>{}),this.controls.splice(Qe,1),this.updateValueAndValidity({emitEvent:le.emitEvent})}setControl(Fe,le,Qe={}){let Ht=this._adjustIndex(Fe);Ht<0&&(Ht=0),this.controls[Ht]&&this.controls[Ht]._registerOnCollectionChange(()=>{}),this.controls.splice(Ht,1),le&&(this.controls.splice(Ht,0,le),this._registerControl(le)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Fe,le={}){Pe(this,0,Fe),Fe.forEach((Qe,Ht)=>{ve(this,!1,Ht),this.at(Ht).setValue(Qe,{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le)}patchValue(Fe,le={}){null!=Fe&&(Fe.forEach((Qe,Ht)=>{this.at(Ht)&&this.at(Ht).patchValue(Qe,{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le))}reset(Fe=[],le={}){this._forEachChild((Qe,Ht)=>{Qe.reset(Fe[Ht],{onlySelf:!0,emitEvent:le.emitEvent})}),this._updatePristine(le),this._updateTouched(le),this.updateValueAndValidity(le)}getRawValue(){return this.controls.map(Fe=>Fe.getRawValue())}clear(Fe={}){this.controls.length<1||(this._forEachChild(le=>le._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Fe.emitEvent}))}_adjustIndex(Fe){return Fe<0?Fe+this.length:Fe}_syncPendingControls(){let Fe=this.controls.reduce((le,Qe)=>!!Qe._syncPendingControls()||le,!1);return Fe&&this.updateValueAndValidity({onlySelf:!0}),Fe}_forEachChild(Fe){this.controls.forEach((le,Qe)=>{Fe(le,Qe)})}_updateValue(){this.value=this.controls.filter(Fe=>Fe.enabled||this.disabled).map(Fe=>Fe.value)}_anyControls(Fe){return this.controls.some(le=>le.enabled&&Fe(le))}_setUpControls(){this._forEachChild(Fe=>this._registerControl(Fe))}_allControlsDisabled(){for(const Fe of this.controls)if(Fe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Fe){Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange)}_find(Fe){return this.at(Fe)??null}}function ya(Ae){return!!Ae&&(void 0!==Ae.asyncValidators||void 0!==Ae.validators||void 0!==Ae.updateOn)}let sr=(()=>{class Ae{constructor(){this.useNonNullable=!1}get nonNullable(){const le=new Ae;return le.useNonNullable=!0,le}group(le,Qe=null){const Ht=this._reduceControls(le);let Qn={};return ya(Qe)?Qn=Qe:null!==Qe&&(Qn.validators=Qe.validator,Qn.asyncValidators=Qe.asyncValidator),new We(Ht,Qn)}record(le,Qe=null){const Ht=this._reduceControls(le);return new Te(Ht,Qe)}control(le,Qe,Ht){let Qn={};return this.useNonNullable?(ya(Qe)?Qn=Qe:(Qn.validators=Qe,Qn.asyncValidators=Ht),new uo(le,{...Qn,nonNullable:!0})):new uo(le,Qe,Ht)}array(le,Qe,Ht){const Qn=le.map(Ni=>this._createControl(Ni));return new io(Qn,Qe,Ht)}_reduceControls(le){const Qe={};return Object.keys(le).forEach(Ht=>{Qe[Ht]=this._createControl(le[Ht])}),Qe}_createControl(le){return le instanceof uo||le instanceof ut?le:Array.isArray(le)?this.control(le[0],le.length>1?le[1]:null,le.length>2?le[2]:null):this.control(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})(),ta=(()=>{class Ae{static withConfig(le){return{ngModule:Ae,providers:[{provide:Wt,useValue:le.callSetDisabledState??Pn}]}}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[po]})}return Ae})(),na=(()=>{class Ae{static withConfig(le){return{ngModule:Ae,providers:[{provide:Li,useValue:le.warnOnNgModelWithFormControl??"always"},{provide:Wt,useValue:le.callSetDisabledState??Pn}]}}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[po]})}return Ae})()},2296:(ft,Ie,C)=>{"use strict";C.d(Ie,{RK:()=>Rn,lW:()=>Zt,ot:()=>at});var e=C(2831),l=C(5879),D=C(4300),I=C(2605),S=C(3680);const w=["mat-button",""],n=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Z=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],oe=["mat-icon-button",""],ce=["*"],Ge=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Lt=(0,S.pj)((0,S.Id)((0,S.Kr)(class{constructor(Be){this._elementRef=Be}})));let je=(()=>{class Be extends Lt{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple($e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,$e)}get disableRipple(){return this._disableRipple}set disableRipple($e){this._disableRipple=(0,I.Ig)($e),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled($e){this._disabled=(0,I.Ig)($e),this._updateRippleDisabled()}constructor($e,me,tt,he){super($e),this._platform=me,this._ngZone=tt,this._animationMode=he,this._focusMonitor=(0,l.f3M)(D.tE),this._rippleLoader=(0,l.f3M)(S.Fq),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const Ze=$e.nativeElement.classList;for(const rt of Ge)this._hasHostAttributes(rt.selector)&&rt.mdcClasses.forEach(bt=>{Ze.add(bt)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus($e="program",me){$e?this._focusMonitor.focusVia(this._elementRef.nativeElement,$e,me):this._elementRef.nativeElement.focus(me)}_hasHostAttributes(...$e){return $e.some(me=>this._elementRef.nativeElement.hasAttribute(me))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(me){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Be,features:[l.qOj]})}return Be})(),Zt=(()=>{class Be extends je{constructor($e,me,tt,he){super($e,me,tt,he)}static#e=this.\u0275fac=function(me){return new(me||Be)(l.Y36(l.SBq),l.Y36(e.t4),l.Y36(l.R0b),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Be,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(me,tt){2&me&&(l.uIk("disabled",tt.disabled||null),l.ekj("_mat-animation-noopable","NoopAnimations"===tt._animationMode)("mat-unthemed",!tt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[l.qOj],attrs:w,ngContentSelectors:Z,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(me,tt){1&me&&(l.F$t(n),l._UZ(0,"span",0),l.Hsn(1),l.TgZ(2,"span",1),l.Hsn(3,1),l.qZA(),l.Hsn(4,2),l._UZ(5,"span",2)(6,"span",3)),2&me&&l.ekj("mdc-button__ripple",!tt._isFab)("mdc-fab__ripple",tt._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Be})(),Rn=(()=>{class Be extends je{constructor($e,me,tt,he){super($e,me,tt,he),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(me){return new(me||Be)(l.Y36(l.SBq),l.Y36(e.t4),l.Y36(l.R0b),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Be,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(me,tt){2&me&&(l.uIk("disabled",tt.disabled||null),l.ekj("_mat-animation-noopable","NoopAnimations"===tt._animationMode)("mat-unthemed",!tt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[l.qOj],attrs:oe,ngContentSelectors:ce,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(me,tt){1&me&&(l.F$t(),l._UZ(0,"span",0),l.Hsn(1),l._UZ(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Be})(),at=(()=>{class Be{static#e=this.\u0275fac=function(me){return new(me||Be)};static#t=this.\u0275mod=l.oAB({type:Be});static#n=this.\u0275inj=l.cJS({imports:[S.BQ,S.si,S.BQ]})}return Be})()},5195:(ft,Ie,C)=>{"use strict";C.d(Ie,{$j:()=>oe,C1:()=>se,QW:()=>Zt,a8:()=>re,dn:()=>te,hq:()=>ce,n5:()=>ue,vP:()=>Ge});var e=C(5879),l=C(6814),D=C(3680);const I=["*"],S=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],w=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]","*"],ee=new e.OlP("MAT_CARD_CONFIG");let re=(()=>{class yt{constructor(Jt){this.appearance=Jt?.appearance||"raised"}static#e=this.\u0275fac=function(tn){return new(tn||yt)(e.Y36(ee,8))};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(tn,wn){2&tn&&e.ekj("mat-mdc-card-outlined","outlined"===wn.appearance)("mdc-card--outlined","outlined"===wn.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:I,decls:1,vars:0,template:function(tn,wn){1&tn&&(e.F$t(),e.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return yt})(),ue=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return yt})(),se=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-mdc-card-title-group"],ngContentSelectors:w,decls:4,vars:0,template:function(tn,wn){1&tn&&(e.F$t(S),e.TgZ(0,"div"),e.Hsn(1),e.qZA(),e.Hsn(2,1),e.Hsn(3,2))},encapsulation:2,changeDetection:0})}return yt})(),te=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return yt})(),oe=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return yt})(),ce=(()=>{class yt{constructor(){this.align="start"}static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(tn,wn){2&tn&&e.ekj("mat-mdc-card-actions-align-end","end"===wn.align)},inputs:{align:"align"},exportAs:["matCardActions"]})}return yt})(),Ge=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-mdc-card-sm-image","mdc-card__media"]})}return yt})(),Zt=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275mod=e.oAB({type:yt});static#n=this.\u0275inj=e.cJS({imports:[D.BQ,l.ez,D.BQ]})}return yt})()},3680:(ft,Ie,C)=>{"use strict";C.d(Ie,{rD:()=>rt,K7:()=>fn,HF:()=>Ft,Y2:()=>J,BQ:()=>St,uc:()=>nn,ey:()=>di,Ng:()=>qt,rN:()=>jn,wG:()=>ae,Fq:()=>We,si:()=>Oe,CB:()=>oi,jH:()=>Jn,pj:()=>tn,Kr:()=>wn,Id:()=>Jt,FD:()=>Yn,dB:()=>ti,sb:()=>Ln});var e=C(5879),l=C(4300),D=C(9388),S=C(6814),w=C(2831),n=C(2605),Z=C(5592),ee=C(8645),re=C(6028);const te=["text"];function oe(ze,be){if(1&ze&&e._UZ(0,"mat-pseudo-checkbox",6),2&ze){const Te=e.oxw();e.Q6J("disabled",Te.disabled)("state",Te.selected?"checked":"unchecked")}}function ce(ze,be){if(1&ze&&e._UZ(0,"mat-pseudo-checkbox",7),2&ze){const Te=e.oxw();e.Q6J("disabled",Te.disabled)}}function _e(ze,be){if(1&ze&&(e.TgZ(0,"span",8),e._uU(1),e.qZA()),2&ze){const Te=e.oxw();e.xp6(1),e.hij("(",Te.group.label,")")}}const Re=[[["mat-icon"]],"*"],mt=["mat-icon","*"],xt=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Tt(){return!0}});let St=(()=>{class ze{constructor(Te,He,Wt){this._sanityChecks=He,this._document=Wt,this._hasDoneGlobalChecks=!1,Te._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Te){return!(0,w.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Te])}static#e=this.\u0275fac=function(He){return new(He||ze)(e.LFG(l.qm),e.LFG(xt,8),e.LFG(S.K0))};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[D.vT,D.vT]})}return ze})();function Jt(ze){return class extends ze{get disabled(){return this._disabled}set disabled(be){this._disabled=(0,n.Ig)(be)}constructor(...be){super(...be),this._disabled=!1}}}function tn(ze,be){return class extends ze{get color(){return this._color}set color(Te){const He=Te||this.defaultColor;He!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),He&&this._elementRef.nativeElement.classList.add(`mat-${He}`),this._color=He)}constructor(...Te){super(...Te),this.defaultColor=be,this.color=be}}}function wn(ze){return class extends ze{get disableRipple(){return this._disableRipple}set disableRipple(be){this._disableRipple=(0,n.Ig)(be)}constructor(...be){super(...be),this._disableRipple=!1}}}function Ln(ze,be=0){return class extends ze{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Te){this._tabIndex=null!=Te?(0,n.su)(Te):this.defaultTabIndex}constructor(...Te){super(...Te),this._tabIndex=be,this.defaultTabIndex=be}}}function Yn(ze){return class extends ze{updateErrorState(){const be=this.errorState,Pn=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Pn!==be&&(this.errorState=Pn,this.stateChanges.next())}constructor(...be){super(...be),this.errorState=!1}}}function ti(ze){return class extends ze{constructor(...be){super(...be),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Z.y(Te=>{this._isInitialized?this._notifySubscriber(Te):this._pendingSubscribers.push(Te)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(be){be.next(),be.complete()}}}let rt=(()=>{class ze{isErrorState(Te,He){return!!(Te&&Te.invalid&&(Te.touched||He&&He.submitted))}static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})(),nn=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St,St]})}return ze})();class Dn{constructor(be,Te,He,Wt=!1){this._renderer=be,this.element=Te,this.config=He,this._animationForciblyDisabledThroughCss=Wt,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ot=(0,w.i$)({passive:!0,capture:!0});class rn{constructor(){this._events=new Map,this._delegateEventHandler=be=>{const Te=(0,w.sA)(be);Te&&this._events.get(be.type)?.forEach((He,Wt)=>{(Wt===Te||Wt.contains(Te))&&He.forEach(Pn=>Pn.handleEvent(be))})}}addHandler(be,Te,He,Wt){const Pn=this._events.get(Te);if(Pn){const wt=Pn.get(He);wt?wt.add(Wt):Pn.set(He,new Set([Wt]))}else this._events.set(Te,new Map([[He,new Set([Wt])]])),be.runOutsideAngular(()=>{document.addEventListener(Te,this._delegateEventHandler,Ot)})}removeHandler(be,Te,He){const Wt=this._events.get(be);if(!Wt)return;const Pn=Wt.get(Te);Pn&&(Pn.delete(He),0===Pn.size&&Wt.delete(Te),0===Wt.size&&(this._events.delete(be),document.removeEventListener(be,this._delegateEventHandler,Ot)))}}const vn={enterDuration:225,exitDuration:150},Wn=(0,w.i$)({passive:!0,capture:!0}),Ve=["mousedown","touchstart"],ct=["mouseup","mouseleave","touchend","touchcancel"];class Ct{static#e=this._eventManager=new rn;constructor(be,Te,He,Wt){this._target=be,this._ngZone=Te,this._platform=Wt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Wt.isBrowser&&(this._containerElement=(0,n.fI)(He))}fadeInRipple(be,Te,He={}){const Wt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Pn={...vn,...He.animation};He.centered&&(be=Wt.left+Wt.width/2,Te=Wt.top+Wt.height/2);const wt=He.radius||function Ce(ze,be,Te){const He=Math.max(Math.abs(ze-Te.left),Math.abs(ze-Te.right)),Wt=Math.max(Math.abs(be-Te.top),Math.abs(be-Te.bottom));return Math.sqrt(He*He+Wt*Wt)}(be,Te,Wt),Yt=be-Wt.left,fe=Te-Wt.top,Mt=Pn.enterDuration,Vt=document.createElement("div");Vt.classList.add("mat-ripple-element"),Vt.style.left=Yt-wt+"px",Vt.style.top=fe-wt+"px",Vt.style.height=2*wt+"px",Vt.style.width=2*wt+"px",null!=He.color&&(Vt.style.backgroundColor=He.color),Vt.style.transitionDuration=`${Mt}ms`,this._containerElement.appendChild(Vt);const ht=window.getComputedStyle(Vt),It=ht.transitionDuration,cn="none"===ht.transitionProperty||"0s"===It||"0s, 0s"===It||0===Wt.width&&0===Wt.height,_n=new Dn(this,Vt,He,cn);Vt.style.transform="scale3d(1, 1, 1)",_n.state=0,He.persistent||(this._mostRecentTransientRipple=_n);let En=null;return!cn&&(Mt||Pn.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const On=()=>this._finishRippleTransition(_n),ni=()=>this._destroyRipple(_n);Vt.addEventListener("transitionend",On),Vt.addEventListener("transitioncancel",ni),En={onTransitionEnd:On,onTransitionCancel:ni}}),this._activeRipples.set(_n,En),(cn||!Mt)&&this._finishRippleTransition(_n),_n}fadeOutRipple(be){if(2===be.state||3===be.state)return;const Te=be.element,He={...vn,...be.config.animation};Te.style.transitionDuration=`${He.exitDuration}ms`,Te.style.opacity="0",be.state=2,(be._animationForciblyDisabledThroughCss||!He.exitDuration)&&this._finishRippleTransition(be)}fadeOutAll(){this._getActiveRipples().forEach(be=>be.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(be=>{be.config.persistent||be.fadeOut()})}setupTriggerEvents(be){const Te=(0,n.fI)(be);!this._platform.isBrowser||!Te||Te===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Te,Ve.forEach(He=>{Ct._eventManager.addHandler(this._ngZone,He,Te,this)}))}handleEvent(be){"mousedown"===be.type?this._onMousedown(be):"touchstart"===be.type?this._onTouchStart(be):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ct.forEach(Te=>{this._triggerElement.addEventListener(Te,this,Wn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(be){0===be.state?this._startFadeOutTransition(be):2===be.state&&this._destroyRipple(be)}_startFadeOutTransition(be){const Te=be===this._mostRecentTransientRipple,{persistent:He}=be.config;be.state=1,!He&&(!Te||!this._isPointerDown)&&be.fadeOut()}_destroyRipple(be){const Te=this._activeRipples.get(be)??null;this._activeRipples.delete(be),this._activeRipples.size||(this._containerRect=null),be===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),be.state=3,null!==Te&&(be.element.removeEventListener("transitionend",Te.onTransitionEnd),be.element.removeEventListener("transitioncancel",Te.onTransitionCancel)),be.element.remove()}_onMousedown(be){const Te=(0,l.X6)(be),He=this._lastTouchStartEvent&&Date.now(){!be.config.persistent&&(1===be.state||be.config.terminateOnPointerUp&&0===be.state)&&be.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const be=this._triggerElement;be&&(Ve.forEach(Te=>Ct._eventManager.removeHandler(Te,be,this)),this._pointerUpEventsRegistered&&ct.forEach(Te=>be.removeEventListener(Te,this,Wn)))}}const J=new e.OlP("mat-ripple-global-options");let ae=(()=>{class ze{get disabled(){return this._disabled}set disabled(Te){Te&&this.fadeOutAllNonPersistent(),this._disabled=Te,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Te){this._trigger=Te,this._setupTriggerEventsIfEnabled()}constructor(Te,He,Wt,Pn,wt){this._elementRef=Te,this._animationMode=wt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Pn||{},this._rippleRenderer=new Ct(this,He,Te,Wt)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Te,He=0,Wt){return"number"==typeof Te?this._rippleRenderer.fadeInRipple(Te,He,{...this.rippleConfig,...Wt}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Te})}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(w.t4),e.Y36(J,8),e.Y36(e.QbO,8))};static#t=this.\u0275dir=e.lG2({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(He,Wt){2&He&&e.ekj("mat-ripple-unbounded",Wt.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return ze})(),Oe=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St,St]})}return ze})(),ot=(()=>{class ze{constructor(Te){this._animationMode=Te,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(He,Wt){2&He&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Wt.state)("mat-pseudo-checkbox-checked","checked"===Wt.state)("mat-pseudo-checkbox-disabled",Wt.disabled)("mat-pseudo-checkbox-minimal","minimal"===Wt.appearance)("mat-pseudo-checkbox-full","full"===Wt.appearance)("_mat-animation-noopable","NoopAnimations"===Wt._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(He,Wt){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return ze})(),Se=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St]})}return ze})();const Ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),fn=new e.OlP("MatOptgroup");let An=0;class jn{constructor(be,Te=!1){this.source=be,this.isUserInput=Te}}let ai=(()=>{class ze{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Te){this._disabled=(0,n.Ig)(Te)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(Te,He,Wt,Pn){this._element=Te,this._changeDetectorRef=He,this._parent=Wt,this.group=Pn,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+An++,this.onSelectionChange=new e.vpe,this._stateChanges=new ee.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Te=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Te&&this._emitSelectionChangeEvent())}deselect(Te=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Te&&this._emitSelectionChangeEvent())}focus(Te,He){const Wt=this._getHostElement();"function"==typeof Wt.focus&&Wt.focus(He)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Te){(Te.keyCode===re.K5||Te.keyCode===re.L_)&&!(0,re.Vb)(Te)&&(this._selectViaInteraction(),Te.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Te=this.viewValue;Te!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Te)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Te=!1){this.onSelectionChange.emit(new jn(this,Te))}static#e=this.\u0275fac=function(He){e.$Z()};static#t=this.\u0275dir=e.lG2({type:ze,viewQuery:function(He,Wt){if(1&He&&e.Gf(te,7),2&He){let Pn;e.iGM(Pn=e.CRH())&&(Wt._text=Pn.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return ze})(),di=(()=>{class ze extends ai{constructor(Te,He,Wt,Pn){super(Te,He,Wt,Pn)}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ft,8),e.Y36(fn,8))};static#t=this.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(He,Wt){1&He&&e.NdJ("click",function(){return Wt._selectViaInteraction()})("keydown",function(wt){return Wt._handleKeydown(wt)}),2&He&&(e.Ikx("id",Wt.id),e.uIk("aria-selected",Wt.selected)("aria-disabled",Wt.disabled.toString()),e.ekj("mdc-list-item--selected",Wt.selected)("mat-mdc-option-multiple",Wt.multiple)("mat-mdc-option-active",Wt.active)("mdc-list-item--disabled",Wt.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:mt,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(He,Wt){1&He&&(e.F$t(Re),e.YNc(0,oe,1,2,"mat-pseudo-checkbox",0),e.Hsn(1),e.TgZ(2,"span",1,2),e.Hsn(4,1),e.qZA(),e.YNc(5,ce,1,1,"mat-pseudo-checkbox",3),e.YNc(6,_e,2,1,"span",4),e._UZ(7,"div",5)),2&He&&(e.Q6J("ngIf",Wt.multiple),e.xp6(5),e.Q6J("ngIf",!Wt.multiple&&Wt.selected&&!Wt.hideSingleSelectionIndicator),e.xp6(1),e.Q6J("ngIf",Wt.group&&Wt.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Wt._getHostElement())("matRippleDisabled",Wt.disabled||Wt.disableRipple))},dependencies:[ae,S.O5,ot],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return ze})();function oi(ze,be,Te){if(Te.length){let He=be.toArray(),Wt=Te.toArray(),Pn=0;for(let wt=0;wtTe+He?Math.max(0,ze-He+be):Te}let qt=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[Oe,S.ez,St,Se]})}return ze})();const _t={capture:!0},G=["focus","click","mouseenter","touchstart"],U="mat-ripple-loader-uninitialized",ve="mat-ripple-loader-class-name",Pe="mat-ripple-loader-centered",ut="mat-ripple-loader-disabled";let We=(()=>{class ze{constructor(){this._document=(0,e.f3M)(S.K0,{optional:!0}),this._animationMode=(0,e.f3M)(e.QbO,{optional:!0}),this._globalRippleOptions=(0,e.f3M)(J,{optional:!0}),this._platform=(0,e.f3M)(w.t4),this._ngZone=(0,e.f3M)(e.R0b),this._onInteraction=Te=>{if(!(Te.target instanceof HTMLElement))return;const Wt=Te.target.closest(`[${U}]`);Wt&&this.createRipple(Wt)},this._ngZone.runOutsideAngular(()=>{for(const Te of G)this._document?.addEventListener(Te,this._onInteraction,_t)})}ngOnDestroy(){for(const Te of G)this._document?.removeEventListener(Te,this._onInteraction,_t)}configureRipple(Te,He){Te.setAttribute(U,""),(He.className||!Te.hasAttribute(ve))&&Te.setAttribute(ve,He.className||""),He.centered&&Te.setAttribute(Pe,""),He.disabled&&Te.setAttribute(ut,"")}getRipple(Te){return Te.matRipple?Te.matRipple:this.createRipple(Te)}setDisabled(Te,He){const Wt=Te.matRipple;Wt?Wt.disabled=He:He?Te.setAttribute(ut,""):Te.removeAttribute(ut)}createRipple(Te){if(!this._document)return;Te.querySelector(".mat-ripple")?.remove();const He=this._document.createElement("span");He.classList.add("mat-ripple",Te.getAttribute(ve)),Te.append(He);const Wt=new ae(new e.SBq(He),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return Wt._isInitialized=!0,Wt.trigger=Te,Wt.centered=Te.hasAttribute(Pe),Wt.disabled=Te.hasAttribute(ut),this.attachRipple(Te,Wt),Wt}attachRipple(Te,He){Te.removeAttribute(U),Te.matRipple=He}static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})()},7700:(ft,Ie,C)=>{"use strict";C.d(Ie,{WI:()=>bt,uw:()=>ei,H8:()=>Ce,ZT:()=>Ve,xY:()=>Ct,Is:()=>ae,so:()=>Ze,uh:()=>ct});var e=C(3651),l=C(6814),D=C(5879),I=C(4300),S=C(2831),w=C(8484),n=C(6028),Z=C(8645),ee=C(4911),re=C(2096),ue=C(9388),se=C(7921);function te(Se,Ft){}class oe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let _e=(()=>{class Se extends w.en{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(),this._elementRef=lt,this._focusTrapFactory=Bt,this._config=fn,this._interactivityChecker=gn,this._ngZone=An,this._overlayRef=jn,this._focusMonitor=ai,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=di=>{this._portalOutlet.hasAttached();const oi=this._portalOutlet.attachDomPortal(di);return this._contentAttached(),oi},this._document=Ut,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(lt){this._portalOutlet.hasAttached();const Bt=this._portalOutlet.attachComponentPortal(lt);return this._contentAttached(),Bt}attachTemplatePortal(lt){this._portalOutlet.hasAttached();const Bt=this._portalOutlet.attachTemplatePortal(lt);return this._contentAttached(),Bt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(lt,Bt){this._interactivityChecker.isFocusable(lt)||(lt.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ut=()=>{lt.removeEventListener("blur",Ut),lt.removeEventListener("mousedown",Ut),lt.removeAttribute("tabindex")};lt.addEventListener("blur",Ut),lt.addEventListener("mousedown",Ut)})),lt.focus(Bt)}_focusByCssSelector(lt,Bt){let Ut=this._elementRef.nativeElement.querySelector(lt);Ut&&this._forceFocus(Ut,Bt)}_trapFocus(){const lt=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||lt.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Bt=>{Bt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const lt=this._config.restoreFocus;let Bt=null;if("string"==typeof lt?Bt=this._document.querySelector(lt):"boolean"==typeof lt?Bt=lt?this._elementFocusedBeforeDialogWasOpened:null:lt&&(Bt=lt),this._config.restoreFocus&&Bt&&"function"==typeof Bt.focus){const Ut=(0,S.ht)(),fn=this._elementRef.nativeElement;(!Ut||Ut===this._document.body||Ut===fn||fn.contains(Ut))&&(this._focusMonitor?(this._focusMonitor.focusVia(Bt,this._closeInteractionType),this._closeInteractionType=null):Bt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const lt=this._elementRef.nativeElement,Bt=(0,S.ht)();return lt===Bt||lt.contains(Bt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,S.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(oe),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["cdk-dialog-container"]],viewQuery:function(Bt,Ut){if(1&Bt&&D.Gf(w.Pl,7),2&Bt){let fn;D.iGM(fn=D.CRH())&&(Ut._portalOutlet=fn.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Bt,Ut){2&Bt&&D.uIk("id",Ut._config.id||null)("role",Ut._config.role)("aria-modal",Ut._config.ariaModal)("aria-labelledby",Ut._config.ariaLabel?null:Ut._ariaLabelledByQueue[0])("aria-label",Ut._config.ariaLabel)("aria-describedby",Ut._config.ariaDescribedBy||null)},features:[D.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Bt,Ut){1&Bt&&D.YNc(0,te,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return Se})();class Re{constructor(Ft,lt){this.overlayRef=Ft,this.config=lt,this.closed=new Z.x,this.disableClose=lt.disableClose,this.backdropClick=Ft.backdropClick(),this.keydownEvents=Ft.keydownEvents(),this.outsidePointerEvents=Ft.outsidePointerEvents(),this.id=lt.id,this.keydownEvents.subscribe(Bt=>{Bt.keyCode===n.hY&&!this.disableClose&&!(0,n.Vb)(Bt)&&(Bt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Ft.detachments().subscribe(()=>{!1!==lt.closeOnOverlayDetachments&&this.close()})}close(Ft,lt){if(this.containerInstance){const Bt=this.closed;this.containerInstance._closeInteractionType=lt?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),Bt.next(Ft),Bt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Ft="",lt=""){return this.overlayRef.updateSize({width:Ft,height:lt}),this}addPanelClass(Ft){return this.overlayRef.addPanelClass(Ft),this}removePanelClass(Ft){return this.overlayRef.removePanelClass(Ft),this}}const mt=new D.OlP("DialogScrollStrategy"),Ge=new D.OlP("DialogData"),Lt=new D.OlP("DefaultDialogConfig"),Tt={provide:mt,deps:[e.aV],useFactory:function je(Se){return()=>Se.scrollStrategies.block()}};let xt=0,St=(()=>{class Se{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(lt,Bt,Ut,fn,gn,An){this._overlay=lt,this._injector=Bt,this._defaultOptions=Ut,this._parentDialog=fn,this._overlayContainer=gn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z.x,this._afterOpenedAtThisLevel=new Z.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,ee.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,se.O)(void 0))),this._scrollStrategy=An}open(lt,Bt){(Bt={...this._defaultOptions||new oe,...Bt}).id=Bt.id||"cdk-dialog-"+xt++,Bt.id&&this.getDialogById(Bt.id);const fn=this._getOverlayConfig(Bt),gn=this._overlay.create(fn),An=new Re(gn,Bt),jn=this._attachContainer(gn,An,Bt);return An.containerInstance=jn,this._attachDialogContent(lt,An,jn,Bt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(An),An.closed.subscribe(()=>this._removeOpenDialog(An,!0)),this.afterOpened.next(An),An}closeAll(){Zt(this.openDialogs,lt=>lt.close())}getDialogById(lt){return this.openDialogs.find(Bt=>Bt.id===lt)}ngOnDestroy(){Zt(this._openDialogsAtThisLevel,lt=>{!1===lt.config.closeOnDestroy&&this._removeOpenDialog(lt,!1)}),Zt(this._openDialogsAtThisLevel,lt=>lt.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(lt){const Bt=new e.X_({positionStrategy:lt.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:lt.scrollStrategy||this._scrollStrategy(),panelClass:lt.panelClass,hasBackdrop:lt.hasBackdrop,direction:lt.direction,minWidth:lt.minWidth,minHeight:lt.minHeight,maxWidth:lt.maxWidth,maxHeight:lt.maxHeight,width:lt.width,height:lt.height,disposeOnNavigation:lt.closeOnNavigation});return lt.backdropClass&&(Bt.backdropClass=lt.backdropClass),Bt}_attachContainer(lt,Bt,Ut){const fn=Ut.injector||Ut.viewContainerRef?.injector,gn=[{provide:oe,useValue:Ut},{provide:Re,useValue:Bt},{provide:e.Iu,useValue:lt}];let An;Ut.container?"function"==typeof Ut.container?An=Ut.container:(An=Ut.container.type,gn.push(...Ut.container.providers(Ut))):An=_e;const jn=new w.C5(An,Ut.viewContainerRef,D.zs3.create({parent:fn||this._injector,providers:gn}),Ut.componentFactoryResolver);return lt.attach(jn).instance}_attachDialogContent(lt,Bt,Ut,fn){if(lt instanceof D.Rgc){const gn=this._createInjector(fn,Bt,Ut,void 0);let An={$implicit:fn.data,dialogRef:Bt};fn.templateContext&&(An={...An,..."function"==typeof fn.templateContext?fn.templateContext():fn.templateContext}),Ut.attachTemplatePortal(new w.UE(lt,null,An,gn))}else{const gn=this._createInjector(fn,Bt,Ut,this._injector),An=Ut.attachComponentPortal(new w.C5(lt,fn.viewContainerRef,gn,fn.componentFactoryResolver));Bt.componentRef=An,Bt.componentInstance=An.instance}}_createInjector(lt,Bt,Ut,fn){const gn=lt.injector||lt.viewContainerRef?.injector,An=[{provide:Ge,useValue:lt.data},{provide:Re,useValue:Bt}];return lt.providers&&("function"==typeof lt.providers?An.push(...lt.providers(Bt,lt,Ut)):An.push(...lt.providers)),lt.direction&&(!gn||!gn.get(ue.Is,null,{optional:!0}))&&An.push({provide:ue.Is,useValue:{value:lt.direction,change:(0,re.of)()}}),D.zs3.create({parent:gn||fn,providers:An})}_removeOpenDialog(lt,Bt){const Ut=this.openDialogs.indexOf(lt);Ut>-1&&(this.openDialogs.splice(Ut,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((fn,gn)=>{fn?gn.setAttribute("aria-hidden",fn):gn.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Bt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const lt=this._overlayContainer.getContainerElement();if(lt.parentElement){const Bt=lt.parentElement.children;for(let Ut=Bt.length-1;Ut>-1;Ut--){const fn=Bt[Ut];fn!==lt&&"SCRIPT"!==fn.nodeName&&"STYLE"!==fn.nodeName&&!fn.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(fn,fn.getAttribute("aria-hidden")),fn.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const lt=this._parentDialog;return lt?lt._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.LFG(e.aV),D.LFG(D.zs3),D.LFG(Lt,8),D.LFG(Se,12),D.LFG(e.Xj),D.LFG(mt))};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})();function Zt(Se,Ft){let lt=Se.length;for(;lt--;)Ft(Se[lt])}let yt=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275mod=D.oAB({type:Se});static#n=this.\u0275inj=D.cJS({providers:[St,Tt],imports:[e.U8,w.eL,I.rt,w.eL]})}return Se})();var un=C(2605),Jt=C(3019),tn=C(2181),wn=C(8180),Ln=C(3680);function ti(Se,Ft){}C(6825);class gi{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Rn="mdc-dialog--open",dt="mdc-dialog--opening",at="mdc-dialog--closing";let $e=(()=>{class Se extends _e{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(lt,Bt,Ut,fn,gn,An,jn,ai),this._animationStateChanged=new D.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(lt){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:lt})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(gi),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["ng-component"]],features:[D.qOj],decls:0,vars:0,template:function(Bt,Ut){},encapsulation:2})}return Se})();const me="--mat-dialog-transition-duration";function tt(Se){return null==Se?null:"number"==typeof Se?Se:Se.endsWith("ms")?(0,un.su)(Se.substring(0,Se.length-2)):Se.endsWith("s")?1e3*(0,un.su)(Se.substring(0,Se.length-1)):"0"===Se?0:null}let he=(()=>{class Se extends $e{constructor(lt,Bt,Ut,fn,gn,An,jn,ai,di){super(lt,Bt,Ut,fn,gn,An,jn,di),this._animationMode=ai,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?tt(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?tt(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(me,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dt,Rn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Rn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Rn),this._animationsEnabled?(this._hostElement.style.setProperty(me,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(at)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(dt,at)}_waitForAnimationToComplete(lt,Bt){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Bt,lt)}_requestAnimationFrame(lt){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(lt):lt()})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(gi),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(D.QbO,8),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Bt,Ut){2&Bt&&(D.Ikx("id",Ut._config.id),D.uIk("aria-modal",Ut._config.ariaModal)("role",Ut._config.role)("aria-labelledby",Ut._config.ariaLabel?null:Ut._ariaLabelledByQueue[0])("aria-label",Ut._config.ariaLabel)("aria-describedby",Ut._config.ariaDescribedBy||null),D.ekj("_mat-animation-noopable",!Ut._animationsEnabled))},features:[D.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Bt,Ut){1&Bt&&(D.TgZ(0,"div",0)(1,"div",1),D.YNc(2,ti,0,0,"ng-template",2),D.qZA()())},dependencies:[w.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return Se})();class Ze{constructor(Ft,lt,Bt){this._ref=Ft,this._containerInstance=Bt,this._afterOpened=new Z.x,this._beforeClosed=new Z.x,this._state=0,this.disableClose=lt.disableClose,this.id=Ft.id,Bt._animationStateChanged.pipe((0,tn.h)(Ut=>"opened"===Ut.state),(0,wn.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Bt._animationStateChanged.pipe((0,tn.h)(Ut=>"closed"===Ut.state),(0,wn.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ft.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Jt.T)(this.backdropClick(),this.keydownEvents().pipe((0,tn.h)(Ut=>Ut.keyCode===n.hY&&!this.disableClose&&!(0,n.Vb)(Ut)))).subscribe(Ut=>{this.disableClose||(Ut.preventDefault(),rt(this,"keydown"===Ut.type?"keyboard":"mouse"))})}close(Ft){this._result=Ft,this._containerInstance._animationStateChanged.pipe((0,tn.h)(lt=>"closing"===lt.state),(0,wn.q)(1)).subscribe(lt=>{this._beforeClosed.next(Ft),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),lt.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Ft){let lt=this._ref.config.positionStrategy;return Ft&&(Ft.left||Ft.right)?Ft.left?lt.left(Ft.left):lt.right(Ft.right):lt.centerHorizontally(),Ft&&(Ft.top||Ft.bottom)?Ft.top?lt.top(Ft.top):lt.bottom(Ft.bottom):lt.centerVertically(),this._ref.updatePosition(),this}updateSize(Ft="",lt=""){return this._ref.updateSize(Ft,lt),this}addPanelClass(Ft){return this._ref.addPanelClass(Ft),this}removePanelClass(Ft){return this._ref.removePanelClass(Ft),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function rt(Se,Ft,lt){return Se._closeInteractionType=Ft,Se.close(lt)}const bt=new D.OlP("MatMdcDialogData"),Nt=new D.OlP("mat-mdc-dialog-default-options"),Qt=new D.OlP("mat-mdc-dialog-scroll-strategy"),Dn={provide:Qt,deps:[e.aV],useFactory:function nn(Se){return()=>Se.scrollStrategies.block()}};let rn=0,vn=(()=>{class Se{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const lt=this._parentDialog;return lt?lt._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(lt,Bt,Ut,fn,gn,An,jn,ai,di,oi){this._overlay=lt,this._defaultOptions=Ut,this._parentDialog=fn,this._dialogRefConstructor=jn,this._dialogContainerType=ai,this._dialogDataToken=di,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z.x,this._afterOpenedAtThisLevel=new Z.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=gi,this.afterAllClosed=(0,ee.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,se.O)(void 0))),this._scrollStrategy=An,this._dialog=Bt.get(St)}open(lt,Bt){let Ut;(Bt={...this._defaultOptions||new gi,...Bt}).id=Bt.id||`${this._idPrefix}${rn++}`,Bt.scrollStrategy=Bt.scrollStrategy||this._scrollStrategy();const fn=this._dialog.open(lt,{...Bt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Bt},{provide:oe,useValue:Bt}]},templateContext:()=>({dialogRef:Ut}),providers:(gn,An,jn)=>(Ut=new this._dialogRefConstructor(gn,Bt,jn),Ut.updatePosition(Bt?.position),[{provide:this._dialogContainerType,useValue:jn},{provide:this._dialogDataToken,useValue:An.data},{provide:this._dialogRefConstructor,useValue:Ut}])});return Ut.componentRef=fn.componentRef,Ut.componentInstance=fn.componentInstance,this.openDialogs.push(Ut),this.afterOpened.next(Ut),Ut.afterClosed().subscribe(()=>{const gn=this.openDialogs.indexOf(Ut);gn>-1&&(this.openDialogs.splice(gn,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ut}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(lt){return this.openDialogs.find(Bt=>Bt.id===lt)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(lt){let Bt=lt.length;for(;Bt--;)lt[Bt].close()}static#e=this.\u0275fac=function(Bt){D.$Z()};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})(),ei=(()=>{class Se extends vn{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(lt,Bt,fn,An,jn,gn,Ze,he,bt,ai),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.LFG(e.aV),D.LFG(D.zs3),D.LFG(l.Ye,8),D.LFG(Nt,8),D.LFG(Qt),D.LFG(Se,12),D.LFG(e.Xj),D.LFG(D.QbO,8))};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})(),Wn=0,Ve=(()=>{class Se{constructor(lt,Bt,Ut){this.dialogRef=lt,this._elementRef=Bt,this._dialog=Ut,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=J(this._elementRef,this._dialog.openDialogs))}ngOnChanges(lt){const Bt=lt._matDialogClose||lt._matDialogCloseResult;Bt&&(this.dialogResult=Bt.currentValue)}_onButtonClick(lt){rt(this.dialogRef,0===lt.screenX&&0===lt.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(Ze,8),D.Y36(D.SBq),D.Y36(ei))};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Bt,Ut){1&Bt&&D.NdJ("click",function(gn){return Ut._onButtonClick(gn)}),2&Bt&&D.uIk("aria-label",Ut.ariaLabel||null)("type",Ut.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[D.TTD]})}return Se})(),ct=(()=>{class Se{constructor(lt,Bt,Ut){this._dialogRef=lt,this._elementRef=Bt,this._dialog=Ut,this.id="mat-mdc-dialog-title-"+Wn++}ngOnInit(){this._dialogRef||(this._dialogRef=J(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const lt=this._dialogRef?._containerInstance?._ariaLabelledByQueue;lt&&Promise.resolve().then(()=>{const Bt=lt.indexOf(this.id);Bt>-1&<.splice(Bt,1)})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(Ze,8),D.Y36(D.SBq),D.Y36(ei))};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(Bt,Ut){2&Bt&&D.Ikx("id",Ut.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return Se})(),Ct=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return Se})(),Ce=(()=>{class Se{constructor(){this.align="start"}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(Bt,Ut){2&Bt&&D.ekj("mat-mdc-dialog-actions-align-center","center"===Ut.align)("mat-mdc-dialog-actions-align-end","end"===Ut.align)},inputs:{align:"align"}})}return Se})();function J(Se,Ft){let lt=Se.nativeElement.parentElement;for(;lt&&!lt.classList.contains("mat-mdc-dialog-container");)lt=lt.parentElement;return lt?Ft.find(Bt=>Bt.id===lt.id):null}let ae=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275mod=D.oAB({type:Se});static#n=this.\u0275inj=D.cJS({providers:[ei,Dn],imports:[yt,e.U8,w.eL,Ln.BQ,Ln.BQ]})}return Se})()},9157:(ft,Ie,C)=>{"use strict";C.d(Ie,{G_:()=>fn,KE:()=>Jn,Eo:()=>Ft,lN:()=>qt,hX:()=>Nt});var e=C(5879),l=C(9388),D=C(2831),I=C(7394),S=C(8645),w=C(3019),n=C(9773),Z=C(5592),ee=C(2181),re=C(4552);class ue extends S.x{constructor(G=1/0,U=1/0,ve=re.l){super(),this._bufferSize=G,this._windowTime=U,this._timestampProvider=ve,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=U===1/0,this._bufferSize=Math.max(1,G),this._windowTime=Math.max(1,U)}next(G){const{isStopped:U,_buffer:ve,_infiniteTimeWindow:Pe,_timestampProvider:ut,_windowTime:We}=this;U||(ve.push(G),!Pe&&ve.push(ut.now()+We)),this._trimBuffer(),super.next(G)}_subscribe(G){this._throwIfClosed(),this._trimBuffer();const U=this._innerSubscribe(G),{_infiniteTimeWindow:ve,_buffer:Pe}=this,ut=Pe.slice();for(let We=0;Wethis._resizeSubject.next(U)))}observe(G){return this._elementObservables.has(G)||this._elementObservables.set(G,new Z.y(U=>{const ve=this._resizeSubject.subscribe(U);return this._resizeObserver?.observe(G,{box:this._box}),()=>{this._resizeObserver?.unobserve(G),ve.unsubscribe(),this._elementObservables.delete(G)}}).pipe((0,ee.h)(U=>U.some(ve=>ve.target===G)),function te(_t,G,U){let ve,Pe=!1;return _t&&"object"==typeof _t?({bufferSize:ve=1/0,windowTime:G=1/0,refCount:Pe=!1,scheduler:U}=_t):ve=_t??1/0,(0,se.B)({connector:()=>new ue(ve,G,U),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Pe})}({bufferSize:1,refCount:!0}),(0,n.R)(this._destroyed))),this._elementObservables.get(G)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let _e=(()=>{class _t{constructor(){this._observers=new Map,this._ngZone=(0,e.f3M)(e.R0b)}ngOnDestroy(){for(const[,U]of this._observers)U.destroy();this._observers.clear()}observe(U,ve){const Pe=ve?.box||"content-box";return this._observers.has(Pe)||this._observers.set(Pe,new ce(Pe)),this._observers.get(Pe).observe(U)}static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275prov=e.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();var Re=C(2605),mt=C(6825),Ge=C(6814),Lt=C(7131),je=C(3680);const Tt=["notch"],xt=["matFormFieldNotchedOutline",""],St=["*"],Zt=["textField"],yt=["iconPrefixContainer"],un=["textPrefixContainer"];function Jt(_t,G){1&_t&&e._UZ(0,"span",19)}function tn(_t,G){if(1&_t&&(e.TgZ(0,"label",17),e.Hsn(1,1),e.YNc(2,Jt,1,0,"span",18),e.qZA()),2&_t){const U=e.oxw(2);e.Q6J("floating",U._shouldLabelFloat())("monitorResize",U._hasOutline())("id",U._labelId),e.uIk("for",U._control.id),e.xp6(2),e.Q6J("ngIf",!U.hideRequiredMarker&&U._control.required)}}function wn(_t,G){if(1&_t&&e.YNc(0,tn,3,5,"label",16),2&_t){const U=e.oxw();e.Q6J("ngIf",U._hasFloatingLabel())}}function Ln(_t,G){1&_t&&e._UZ(0,"div",20)}function Yn(_t,G){}function ti(_t,G){if(1&_t&&e.YNc(0,Yn,0,0,"ng-template",22),2&_t){e.oxw(2);const U=e.MAs(1);e.Q6J("ngTemplateOutlet",U)}}function gi(_t,G){if(1&_t&&(e.TgZ(0,"div",21),e.YNc(1,ti,1,1,"ng-template",9),e.qZA()),2&_t){const U=e.oxw();e.Q6J("matFormFieldNotchedOutlineOpen",U._shouldLabelFloat()),e.xp6(1),e.Q6J("ngIf",!U._forceDisplayInfixLabel())}}function Rn(_t,G){1&_t&&(e.TgZ(0,"div",23,24),e.Hsn(2,2),e.qZA())}function dt(_t,G){1&_t&&(e.TgZ(0,"div",25,26),e.Hsn(2,3),e.qZA())}function at(_t,G){}function Be(_t,G){if(1&_t&&e.YNc(0,at,0,0,"ng-template",22),2&_t){e.oxw();const U=e.MAs(1);e.Q6J("ngTemplateOutlet",U)}}function Ee(_t,G){1&_t&&(e.TgZ(0,"div",27),e.Hsn(1,4),e.qZA())}function $e(_t,G){1&_t&&(e.TgZ(0,"div",28),e.Hsn(1,5),e.qZA())}function me(_t,G){1&_t&&e._UZ(0,"div",29)}function tt(_t,G){if(1&_t&&(e.TgZ(0,"div",30),e.Hsn(1,6),e.qZA()),2&_t){const U=e.oxw();e.Q6J("@transitionMessages",U._subscriptAnimationState)}}function he(_t,G){if(1&_t&&(e.TgZ(0,"mat-hint",34),e._uU(1),e.qZA()),2&_t){const U=e.oxw(2);e.Q6J("id",U._hintLabelId),e.xp6(1),e.Oqu(U.hintLabel)}}function Ze(_t,G){if(1&_t&&(e.TgZ(0,"div",31),e.YNc(1,he,2,2,"mat-hint",32),e.Hsn(2,7),e._UZ(3,"div",33),e.Hsn(4,8),e.qZA()),2&_t){const U=e.oxw();e.Q6J("@transitionMessages",U._subscriptAnimationState),e.xp6(1),e.Q6J("ngIf",U.hintLabel)}}const rt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Nt=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["mat-label"]]})}return _t})();const nn=new e.OlP("MatError");let Ot=0,rn=(()=>{class _t{constructor(){this.align="start",this.id="mat-mdc-hint-"+Ot++}static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(ve,Pe){2&ve&&(e.Ikx("id",Pe.id),e.uIk("align",null),e.ekj("mat-mdc-form-field-hint-end","end"===Pe.align))},inputs:{align:"align",id:"id"}})}return _t})();const vn=new e.OlP("MatPrefix"),Wn=new e.OlP("MatSuffix"),ct=new e.OlP("FloatingLabelParent");let Ct=(()=>{class _t{get floating(){return this._floating}set floating(U){this._floating=U,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(U){this._monitorResize=U,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(U){this._elementRef=U,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,e.f3M)(_e),this._ngZone=(0,e.f3M)(e.R0b),this._parent=(0,e.f3M)(ct),this._resizeSubscription=new I.w0}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Ce(_t){if(null!==_t.offsetParent)return _t.scrollWidth;const U=_t.cloneNode(!0);U.style.setProperty("position","absolute"),U.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(U);const ve=U.scrollWidth;return U.remove(),ve}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(ve,Pe){2&ve&&e.ekj("mdc-floating-label--float-above",Pe.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return _t})();const J="mdc-line-ripple--active",ae="mdc-line-ripple--deactivating";let Oe=(()=>{class _t{constructor(U,ve){this._elementRef=U,this._handleTransitionEnd=Pe=>{const ut=this._elementRef.nativeElement.classList,We=ut.contains(ae);"opacity"===Pe.propertyName&&We&&ut.remove(J,ae)},ve.runOutsideAngular(()=>{U.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const U=this._elementRef.nativeElement.classList;U.remove(ae),U.add(J)}deactivate(){this._elementRef.nativeElement.classList.add(ae)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return _t})(),ot=(()=>{class _t{constructor(U,ve){this._elementRef=U,this._ngZone=ve,this.open=!1}ngAfterViewInit(){const U=this._elementRef.nativeElement.querySelector(".mdc-floating-label");U?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(U.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>U.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(U){this._notch.nativeElement.style.width=this.open&&U?`calc(${U}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275cmp=e.Xpm({type:_t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(ve,Pe){if(1&ve&&e.Gf(Tt,5),2&ve){let ut;e.iGM(ut=e.CRH())&&(Pe._notch=ut.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(ve,Pe){2&ve&&e.ekj("mdc-notched-outline--notched",Pe.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:xt,ngContentSelectors:St,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(ve,Pe){1&ve&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1,2),e.Hsn(3),e.qZA(),e._UZ(4,"div",3))},encapsulation:2,changeDetection:0})}return _t})();const Se={transitionMessages:(0,mt.X$)("transitionMessages",[(0,mt.SB)("enter",(0,mt.oB)({opacity:1,transform:"translateY(0%)"})),(0,mt.eR)("void => enter",[(0,mt.oB)({opacity:0,transform:"translateY(-5px)"}),(0,mt.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ft=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t})}return _t})();const fn=new e.OlP("MatFormField"),gn=new e.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let An=0,Jn=(()=>{class _t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(U){this._hideRequiredMarker=(0,Re.Ig)(U)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(U){U!==this._floatLabel&&(this._floatLabel=U,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(U){const ve=this._appearance;this._appearance=U||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==ve&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(U){this._subscriptSizing=U||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(U){this._hintLabel=U,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(U){this._explicitFormFieldControl=U}constructor(U,ve,Pe,ut,We,ze,be,Te){this._elementRef=U,this._changeDetectorRef=ve,this._ngZone=Pe,this._dir=ut,this._platform=We,this._defaults=ze,this._animationMode=be,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+An++,this._hintLabelId="mat-mdc-hint-"+An++,this._subscriptAnimationState="",this._destroyed=new S.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,ze&&(ze.appearance&&(this.appearance=ze.appearance),this._hideRequiredMarker=!!ze?.hideRequiredMarker,ze.color&&(this.color=ze.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const U=this._control;U.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${U.controlType}`),U.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),U.ngControl&&U.ngControl.valueChanges&&U.ngControl.valueChanges.pipe((0,n.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(U=>!U._isText),this._hasTextPrefix=!!this._prefixChildren.find(U=>U._isText),this._hasIconSuffix=!!this._suffixChildren.find(U=>!U._isText),this._hasTextSuffix=!!this._suffixChildren.find(U=>U._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,w.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,n.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,n.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(U){const ve=this._control?this._control.ngControl:null;return ve&&ve[U]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let U=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&U.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ve=this._hintChildren?this._hintChildren.find(ut=>"start"===ut.align):null,Pe=this._hintChildren?this._hintChildren.find(ut=>"end"===ut.align):null;ve?U.push(ve.id):this._hintLabel&&U.push(this._hintLabelId),Pe&&U.push(Pe.id)}else this._errorChildren&&U.push(...this._errorChildren.map(ve=>ve.id));this._control.setDescribedByIds(U)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const U=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(U.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const ve=this._iconPrefixContainer?.nativeElement,Pe=this._textPrefixContainer?.nativeElement,ut=ve?.getBoundingClientRect().width??0,We=Pe?.getBoundingClientRect().width??0;U.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${ut+We}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const U=this._elementRef.nativeElement;if(U.getRootNode){const ve=U.getRootNode();return ve&&ve!==U}return document.documentElement.contains(U)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(l.Is),e.Y36(D.t4),e.Y36(gn,8),e.Y36(e.QbO,8),e.Y36(Ge.K0))};static#t=this.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-form-field"]],contentQueries:function(ve,Pe,ut){if(1&ve&&(e.Suo(ut,Nt,5),e.Suo(ut,Nt,7),e.Suo(ut,Ft,5),e.Suo(ut,vn,5),e.Suo(ut,Wn,5),e.Suo(ut,nn,5),e.Suo(ut,rn,5)),2&ve){let We;e.iGM(We=e.CRH())&&(Pe._labelChildNonStatic=We.first),e.iGM(We=e.CRH())&&(Pe._labelChildStatic=We.first),e.iGM(We=e.CRH())&&(Pe._formFieldControl=We.first),e.iGM(We=e.CRH())&&(Pe._prefixChildren=We),e.iGM(We=e.CRH())&&(Pe._suffixChildren=We),e.iGM(We=e.CRH())&&(Pe._errorChildren=We),e.iGM(We=e.CRH())&&(Pe._hintChildren=We)}},viewQuery:function(ve,Pe){if(1&ve&&(e.Gf(Zt,5),e.Gf(yt,5),e.Gf(un,5),e.Gf(Ct,5),e.Gf(ot,5),e.Gf(Oe,5)),2&ve){let ut;e.iGM(ut=e.CRH())&&(Pe._textField=ut.first),e.iGM(ut=e.CRH())&&(Pe._iconPrefixContainer=ut.first),e.iGM(ut=e.CRH())&&(Pe._textPrefixContainer=ut.first),e.iGM(ut=e.CRH())&&(Pe._floatingLabel=ut.first),e.iGM(ut=e.CRH())&&(Pe._notchedOutline=ut.first),e.iGM(ut=e.CRH())&&(Pe._lineRipple=ut.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(ve,Pe){2&ve&&e.ekj("mat-mdc-form-field-label-always-float",Pe._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Pe._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Pe._hasIconSuffix)("mat-form-field-invalid",Pe._control.errorState)("mat-form-field-disabled",Pe._control.disabled)("mat-form-field-autofilled",Pe._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Pe._animationMode)("mat-form-field-appearance-fill","fill"==Pe.appearance)("mat-form-field-appearance-outline","outline"==Pe.appearance)("mat-form-field-hide-placeholder",Pe._hasFloatingLabel()&&!Pe._shouldLabelFloat())("mat-focused",Pe._control.focused)("mat-primary","accent"!==Pe.color&&"warn"!==Pe.color)("mat-accent","accent"===Pe.color)("mat-warn","warn"===Pe.color)("ng-untouched",Pe._shouldForward("untouched"))("ng-touched",Pe._shouldForward("touched"))("ng-pristine",Pe._shouldForward("pristine"))("ng-dirty",Pe._shouldForward("dirty"))("ng-valid",Pe._shouldForward("valid"))("ng-invalid",Pe._shouldForward("invalid"))("ng-pending",Pe._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e._Bn([{provide:fn,useExisting:_t},{provide:ct,useExisting:_t}])],ngContentSelectors:bt,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(ve,Pe){1&ve&&(e.F$t(rt),e.YNc(0,wn,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.NdJ("click",function(We){return Pe._control.onContainerClick(We)}),e.YNc(4,Ln,1,0,"div",3),e.TgZ(5,"div",4),e.YNc(6,gi,2,2,"div",5),e.YNc(7,Rn,3,0,"div",6),e.YNc(8,dt,3,0,"div",7),e.TgZ(9,"div",8),e.YNc(10,Be,1,1,"ng-template",9),e.Hsn(11),e.qZA(),e.YNc(12,Ee,2,0,"div",10),e.YNc(13,$e,2,0,"div",11),e.qZA(),e.YNc(14,me,1,0,"div",12),e.qZA(),e.TgZ(15,"div",13),e.YNc(16,tt,2,1,"div",14),e.YNc(17,Ze,5,2,"div",15),e.qZA()),2&ve&&(e.xp6(2),e.ekj("mdc-text-field--filled",!Pe._hasOutline())("mdc-text-field--outlined",Pe._hasOutline())("mdc-text-field--no-label",!Pe._hasFloatingLabel())("mdc-text-field--disabled",Pe._control.disabled)("mdc-text-field--invalid",Pe._control.errorState),e.xp6(2),e.Q6J("ngIf",!Pe._hasOutline()&&!Pe._control.disabled),e.xp6(2),e.Q6J("ngIf",Pe._hasOutline()),e.xp6(1),e.Q6J("ngIf",Pe._hasIconPrefix),e.xp6(1),e.Q6J("ngIf",Pe._hasTextPrefix),e.xp6(2),e.Q6J("ngIf",!Pe._hasOutline()||Pe._forceDisplayInfixLabel()),e.xp6(2),e.Q6J("ngIf",Pe._hasTextSuffix),e.xp6(1),e.Q6J("ngIf",Pe._hasIconSuffix),e.xp6(1),e.Q6J("ngIf",!Pe._hasOutline()),e.xp6(1),e.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Pe.subscriptSizing),e.Q6J("ngSwitch",Pe._getDisplayedMessages()),e.xp6(1),e.Q6J("ngSwitchCase","error"),e.xp6(1),e.Q6J("ngSwitchCase","hint"))},dependencies:[Ge.O5,Ge.tP,Ge.RF,Ge.n9,rn,Ct,ot,Oe],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Se.transitionMessages]},changeDetection:0})}return _t})(),qt=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275mod=e.oAB({type:_t});static#n=this.\u0275inj=e.cJS({imports:[je.BQ,Ge.ez,Lt.Q8,je.BQ]})}return _t})()},617:(ft,Ie,C)=>{"use strict";C.d(Ie,{Hw:()=>Ee,Ps:()=>$e});var e=C(5879),l=C(3680),D=C(2605),I=C(6814),S=C(2096),w=C(8504),n=C(9315),Z=C(7394),ee=C(9397),re=C(7398),ue=C(6306),se=C(4716),te=C(3020),oe=C(8180),ce=C(9862),_e=C(6593);const Re=["*"];let mt;function Lt(me){return function Ge(){if(void 0===mt&&(mt=null,typeof window<"u")){const me=window;void 0!==me.trustedTypes&&(mt=me.trustedTypes.createPolicy("angular#components",{createHTML:tt=>tt}))}return mt}()?.createHTML(me)||me}function je(me){return Error(`Unable to find icon with the name "${me}"`)}function xt(me){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${me}".`)}function St(me){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${me}".`)}class Zt{constructor(tt,he,Ze){this.url=tt,this.svgText=he,this.options=Ze}}let yt=(()=>{class me{constructor(he,Ze,rt,bt){this._httpClient=he,this._sanitizer=Ze,this._errorHandler=bt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=rt}addSvgIcon(he,Ze,rt){return this.addSvgIconInNamespace("",he,Ze,rt)}addSvgIconLiteral(he,Ze,rt){return this.addSvgIconLiteralInNamespace("",he,Ze,rt)}addSvgIconInNamespace(he,Ze,rt,bt){return this._addSvgIconConfig(he,Ze,new Zt(rt,null,bt))}addSvgIconResolver(he){return this._resolvers.push(he),this}addSvgIconLiteralInNamespace(he,Ze,rt,bt){const Nt=this._sanitizer.sanitize(e.q3G.HTML,rt);if(!Nt)throw St(rt);const Qt=Lt(Nt);return this._addSvgIconConfig(he,Ze,new Zt("",Qt,bt))}addSvgIconSet(he,Ze){return this.addSvgIconSetInNamespace("",he,Ze)}addSvgIconSetLiteral(he,Ze){return this.addSvgIconSetLiteralInNamespace("",he,Ze)}addSvgIconSetInNamespace(he,Ze,rt){return this._addSvgIconSetConfig(he,new Zt(Ze,null,rt))}addSvgIconSetLiteralInNamespace(he,Ze,rt){const bt=this._sanitizer.sanitize(e.q3G.HTML,Ze);if(!bt)throw St(Ze);const Nt=Lt(bt);return this._addSvgIconSetConfig(he,new Zt("",Nt,rt))}registerFontClassAlias(he,Ze=he){return this._fontCssClassesByAlias.set(he,Ze),this}classNameForFontAlias(he){return this._fontCssClassesByAlias.get(he)||he}setDefaultFontSetClass(...he){return this._defaultFontSetClass=he,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(he){const Ze=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,he);if(!Ze)throw xt(he);const rt=this._cachedIconsByUrl.get(Ze);return rt?(0,S.of)(tn(rt)):this._loadSvgIconFromConfig(new Zt(he,null)).pipe((0,ee.b)(bt=>this._cachedIconsByUrl.set(Ze,bt)),(0,re.U)(bt=>tn(bt)))}getNamedSvgIcon(he,Ze=""){const rt=wn(Ze,he);let bt=this._svgIconConfigs.get(rt);if(bt)return this._getSvgFromConfig(bt);if(bt=this._getIconConfigFromResolvers(Ze,he),bt)return this._svgIconConfigs.set(rt,bt),this._getSvgFromConfig(bt);const Nt=this._iconSetConfigs.get(Ze);return Nt?this._getSvgFromIconSetConfigs(he,Nt):(0,w._)(je(rt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(he){return he.svgText?(0,S.of)(tn(this._svgElementFromConfig(he))):this._loadSvgIconFromConfig(he).pipe((0,re.U)(Ze=>tn(Ze)))}_getSvgFromIconSetConfigs(he,Ze){const rt=this._extractIconWithNameFromAnySet(he,Ze);if(rt)return(0,S.of)(rt);const bt=Ze.filter(Nt=>!Nt.svgText).map(Nt=>this._loadSvgIconSetFromConfig(Nt).pipe((0,ue.K)(Qt=>{const Dn=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Nt.url)} failed: ${Qt.message}`;return this._errorHandler.handleError(new Error(Dn)),(0,S.of)(null)})));return(0,n.D)(bt).pipe((0,re.U)(()=>{const Nt=this._extractIconWithNameFromAnySet(he,Ze);if(!Nt)throw je(he);return Nt}))}_extractIconWithNameFromAnySet(he,Ze){for(let rt=Ze.length-1;rt>=0;rt--){const bt=Ze[rt];if(bt.svgText&&bt.svgText.toString().indexOf(he)>-1){const Nt=this._svgElementFromConfig(bt),Qt=this._extractSvgIconFromSet(Nt,he,bt.options);if(Qt)return Qt}}return null}_loadSvgIconFromConfig(he){return this._fetchIcon(he).pipe((0,ee.b)(Ze=>he.svgText=Ze),(0,re.U)(()=>this._svgElementFromConfig(he)))}_loadSvgIconSetFromConfig(he){return he.svgText?(0,S.of)(null):this._fetchIcon(he).pipe((0,ee.b)(Ze=>he.svgText=Ze))}_extractSvgIconFromSet(he,Ze,rt){const bt=he.querySelector(`[id="${Ze}"]`);if(!bt)return null;const Nt=bt.cloneNode(!0);if(Nt.removeAttribute("id"),"svg"===Nt.nodeName.toLowerCase())return this._setSvgAttributes(Nt,rt);if("symbol"===Nt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Nt),rt);const Qt=this._svgElementFromString(Lt(""));return Qt.appendChild(Nt),this._setSvgAttributes(Qt,rt)}_svgElementFromString(he){const Ze=this._document.createElement("DIV");Ze.innerHTML=he;const rt=Ze.querySelector("svg");if(!rt)throw Error(" tag not found");return rt}_toSvgElement(he){const Ze=this._svgElementFromString(Lt("")),rt=he.attributes;for(let bt=0;btLt(Dn)),(0,se.x)(()=>this._inProgressUrlFetches.delete(Nt)),(0,te.B)());return this._inProgressUrlFetches.set(Nt,nn),nn}_addSvgIconConfig(he,Ze,rt){return this._svgIconConfigs.set(wn(he,Ze),rt),this}_addSvgIconSetConfig(he,Ze){const rt=this._iconSetConfigs.get(he);return rt?rt.push(Ze):this._iconSetConfigs.set(he,[Ze]),this}_svgElementFromConfig(he){if(!he.svgElement){const Ze=this._svgElementFromString(he.svgText);this._setSvgAttributes(Ze,he.options),he.svgElement=Ze}return he.svgElement}_getIconConfigFromResolvers(he,Ze){for(let rt=0;rttt?tt.pathname+tt.search:""}}}),dt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],at=dt.map(me=>`[${me}]`).join(", "),Be=/^url\(['"]?#(.*?)['"]?\)$/;let Ee=(()=>{class me extends Yn{get inline(){return this._inline}set inline(he){this._inline=(0,D.Ig)(he)}get svgIcon(){return this._svgIcon}set svgIcon(he){he!==this._svgIcon&&(he?this._updateSvgIcon(he):this._svgIcon&&this._clearSvgElement(),this._svgIcon=he)}get fontSet(){return this._fontSet}set fontSet(he){const Ze=this._cleanupFontValue(he);Ze!==this._fontSet&&(this._fontSet=Ze,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(he){const Ze=this._cleanupFontValue(he);Ze!==this._fontIcon&&(this._fontIcon=Ze,this._updateFontIconClasses())}constructor(he,Ze,rt,bt,Nt,Qt){super(he),this._iconRegistry=Ze,this._location=bt,this._errorHandler=Nt,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Z.w0.EMPTY,Qt&&(Qt.color&&(this.color=this.defaultColor=Qt.color),Qt.fontSet&&(this.fontSet=Qt.fontSet)),rt||he.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(he){if(!he)return["",""];const Ze=he.split(":");switch(Ze.length){case 1:return["",Ze[0]];case 2:return Ze;default:throw Error(`Invalid icon name: "${he}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const he=this._elementsWithExternalReferences;if(he&&he.size){const Ze=this._location.getPathname();Ze!==this._previousPath&&(this._previousPath=Ze,this._prependPathToReferences(Ze))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(he){this._clearSvgElement();const Ze=this._location.getPathname();this._previousPath=Ze,this._cacheChildrenWithExternalReferences(he),this._prependPathToReferences(Ze),this._elementRef.nativeElement.appendChild(he)}_clearSvgElement(){const he=this._elementRef.nativeElement;let Ze=he.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ze--;){const rt=he.childNodes[Ze];(1!==rt.nodeType||"svg"===rt.nodeName.toLowerCase())&&rt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const he=this._elementRef.nativeElement,Ze=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(rt=>rt.length>0);this._previousFontSetClass.forEach(rt=>he.classList.remove(rt)),Ze.forEach(rt=>he.classList.add(rt)),this._previousFontSetClass=Ze,this.fontIcon!==this._previousFontIconClass&&!Ze.includes("mat-ligature-font")&&(this._previousFontIconClass&&he.classList.remove(this._previousFontIconClass),this.fontIcon&&he.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(he){return"string"==typeof he?he.trim().split(" ")[0]:he}_prependPathToReferences(he){const Ze=this._elementsWithExternalReferences;Ze&&Ze.forEach((rt,bt)=>{rt.forEach(Nt=>{bt.setAttribute(Nt.name,`url('${he}#${Nt.value}')`)})})}_cacheChildrenWithExternalReferences(he){const Ze=he.querySelectorAll(at),rt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let bt=0;bt{const Qt=Ze[bt],nn=Qt.getAttribute(Nt),Dn=nn?nn.match(Be):null;if(Dn){let Ot=rt.get(Qt);Ot||(Ot=[],rt.set(Qt,Ot)),Ot.push({name:Nt,value:Dn[1]})}})}_updateSvgIcon(he){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),he){const[Ze,rt]=this._splitIconName(he);Ze&&(this._svgNamespace=Ze),rt&&(this._svgName=rt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(rt,Ze).pipe((0,oe.q)(1)).subscribe(bt=>this._setSvgElement(bt),bt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ze}:${rt}! ${bt.message}`))})}}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(e.Y36(e.SBq),e.Y36(yt),e.$8M("aria-hidden"),e.Y36(gi),e.Y36(e.qLn),e.Y36(ti,8))};static#t=this.\u0275cmp=e.Xpm({type:me,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Ze,rt){2&Ze&&(e.uIk("data-mat-icon-type",rt._usingFontIcon()?"font":"svg")("data-mat-icon-name",rt._svgName||rt.fontIcon)("data-mat-icon-namespace",rt._svgNamespace||rt.fontSet)("fontIcon",rt._usingFontIcon()?rt.fontIcon:null),e.ekj("mat-icon-inline",rt.inline)("mat-icon-no-color","primary"!==rt.color&&"accent"!==rt.color&&"warn"!==rt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:Re,decls:1,vars:0,template:function(Ze,rt){1&Ze&&(e.F$t(),e.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return me})(),$e=(()=>{class me{static#e=this.\u0275fac=function(Ze){return new(Ze||me)};static#t=this.\u0275mod=e.oAB({type:me});static#n=this.\u0275inj=e.cJS({imports:[l.BQ,l.BQ]})}return me})()},3365:(ft,Ie,C)=>{"use strict";C.d(Ie,{NW:()=>Ve,TU:()=>ct});var e=C(6814),l=C(5879),D=C(8645),I=C(2296),S=C(8525),w=C(9773),n=C(8180),Z=C(2605),ee=C(6028),re=C(2831),ue=C(4300),se=C(9388),te=C(3651),oe=C(6672),ce=C(8484),Re=(C(6825),C(3680));const mt=["tooltip"],je=new l.OlP("mat-tooltip-scroll-strategy"),xt={provide:je,deps:[te.aV],useFactory:function Tt(Ct){return()=>Ct.scrollStrategies.reposition({scrollThrottle:20})}},Zt=new l.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function St(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),un="tooltip-panel",Jt=(0,re.i$)({passive:!0});let gi=(()=>{class Ct{get position(){return this._position}set position(J){J!==this._position&&(this._position=J,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(J){this._positionAtOrigin=(0,Z.Ig)(J),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(J){this._disabled=(0,Z.Ig)(J),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(J){this._showDelay=(0,Z.su)(J)}get hideDelay(){return this._hideDelay}set hideDelay(J){this._hideDelay=(0,Z.su)(J),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(J){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=J?String(J).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(J){this._tooltipClass=J,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An){this._overlay=J,this._elementRef=ae,this._scrollDispatcher=Oe,this._viewContainerRef=ot,this._ngZone=Se,this._platform=Ft,this._ariaDescriber=lt,this._focusMonitor=Bt,this._dir=fn,this._defaultOptions=gn,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new D.x,this._scrollStrategy=Ut,this._document=An,gn&&(this._showDelay=gn.showDelay,this._hideDelay=gn.hideDelay,gn.position&&(this.position=gn.position),gn.positionAtOrigin&&(this.positionAtOrigin=gn.positionAtOrigin),gn.touchGestures&&(this.touchGestures=gn.touchGestures)),fn.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,w.R)(this._destroyed)).subscribe(J=>{J?"keyboard"===J&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const J=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ae,Oe])=>{J.removeEventListener(ae,Oe,Jt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(J,this.message,"tooltip"),this._focusMonitor.stopMonitoring(J)}show(J=this.showDelay,ae){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Oe=this._createOverlay(ae);this._detach(),this._portal=this._portal||new ce.C5(this._tooltipComponent,this._viewContainerRef);const ot=this._tooltipInstance=Oe.attach(this._portal).instance;ot._triggerElement=this._elementRef.nativeElement,ot._mouseLeaveHideDelay=this._hideDelay,ot.afterHidden().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ot.show(J)}hide(J=this.hideDelay){const ae=this._tooltipInstance;ae&&(ae.isVisible()?ae.hide(J):(ae._cancelPendingAnimations(),this._detach()))}toggle(J){this._isTooltipVisible()?this.hide():this.show(void 0,J)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(J){if(this._overlayRef){const ot=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!J)&&ot._origin instanceof l.SBq)return this._overlayRef;this._detach()}const ae=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Oe=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&J||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ae);return Oe.positionChanges.pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this._updateCurrentPositionClass(ot.connectionPair),this._tooltipInstance&&ot.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Oe,panelClass:`${this._cssClassPrefix}-${un}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this._isTooltipVisible()&&ot.keyCode===ee.hY&&!(0,ee.Vb)(ot)&&(ot.preventDefault(),ot.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(J){const ae=J.getConfig().positionStrategy,Oe=this._getOrigin(),ot=this._getOverlayPosition();ae.withPositions([this._addOffset({...Oe.main,...ot.main}),this._addOffset({...Oe.fallback,...ot.fallback})])}_addOffset(J){return J}_getOrigin(){const J=!this._dir||"ltr"==this._dir.value,ae=this.position;let Oe;"above"==ae||"below"==ae?Oe={originX:"center",originY:"above"==ae?"top":"bottom"}:"before"==ae||"left"==ae&&J||"right"==ae&&!J?Oe={originX:"start",originY:"center"}:("after"==ae||"right"==ae&&J||"left"==ae&&!J)&&(Oe={originX:"end",originY:"center"});const{x:ot,y:Se}=this._invertPosition(Oe.originX,Oe.originY);return{main:Oe,fallback:{originX:ot,originY:Se}}}_getOverlayPosition(){const J=!this._dir||"ltr"==this._dir.value,ae=this.position;let Oe;"above"==ae?Oe={overlayX:"center",overlayY:"bottom"}:"below"==ae?Oe={overlayX:"center",overlayY:"top"}:"before"==ae||"left"==ae&&J||"right"==ae&&!J?Oe={overlayX:"end",overlayY:"center"}:("after"==ae||"right"==ae&&J||"left"==ae&&!J)&&(Oe={overlayX:"start",overlayY:"center"});const{x:ot,y:Se}=this._invertPosition(Oe.overlayX,Oe.overlayY);return{main:Oe,fallback:{overlayX:ot,overlayY:Se}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,n.q)(1),(0,w.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(J){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=J,this._tooltipInstance._markForCheck())}_invertPosition(J,ae){return"above"===this.position||"below"===this.position?"top"===ae?ae="bottom":"bottom"===ae&&(ae="top"):"end"===J?J="start":"start"===J&&(J="end"),{x:J,y:ae}}_updateCurrentPositionClass(J){const{overlayY:ae,originX:Oe,originY:ot}=J;let Se;if(Se="center"===ae?this._dir&&"rtl"===this._dir.value?"end"===Oe?"left":"right":"start"===Oe?"left":"right":"bottom"===ae&&"top"===ot?"above":"below",Se!==this._currentPosition){const Ft=this._overlayRef;if(Ft){const lt=`${this._cssClassPrefix}-${un}-`;Ft.removePanelClass(lt+this._currentPosition),Ft.addPanelClass(lt+Se)}this._currentPosition=Se}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",J=>{let ae;this._setupPointerExitEventsIfNeeded(),void 0!==J.x&&void 0!==J.y&&(ae=J),this.show(void 0,ae)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",J=>{const ae=J.targetTouches?.[0],Oe=ae?{x:ae.clientX,y:ae.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,Oe),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const J=[];if(this._platformSupportsMouseEvents())J.push(["mouseleave",ae=>{const Oe=ae.relatedTarget;(!Oe||!this._overlayRef?.overlayElement.contains(Oe))&&this.hide()}],["wheel",ae=>this._wheelListener(ae)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ae=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};J.push(["touchend",ae],["touchcancel",ae])}this._addListeners(J),this._passiveListeners.push(...J)}_addListeners(J){J.forEach(([ae,Oe])=>{this._elementRef.nativeElement.addEventListener(ae,Oe,Jt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(J){if(this._isTooltipVisible()){const ae=this._document.elementFromPoint(J.clientX,J.clientY),Oe=this._elementRef.nativeElement;ae!==Oe&&!Oe.contains(ae)&&this.hide()}}_disableNativeGesturesIfNecessary(){const J=this.touchGestures;if("off"!==J){const ae=this._elementRef.nativeElement,Oe=ae.style;("on"===J||"INPUT"!==ae.nodeName&&"TEXTAREA"!==ae.nodeName)&&(Oe.userSelect=Oe.msUserSelect=Oe.webkitUserSelect=Oe.MozUserSelect="none"),("on"===J||!ae.draggable)&&(Oe.webkitUserDrag="none"),Oe.touchAction="none",Oe.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(ae){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Ct,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}})}return Ct})(),Rn=(()=>{class Ct extends gi{constructor(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An){super(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An),this._tooltipComponent=at,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(J){const Oe=!this._dir||"ltr"==this._dir.value;return"top"===J.originY?J.offsetY=-8:"bottom"===J.originY?J.offsetY=8:"start"===J.originX?J.offsetX=Oe?-8:8:"end"===J.originX&&(J.offsetX=Oe?8:-8),J}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(te.aV),l.Y36(l.SBq),l.Y36(oe.mF),l.Y36(l.s_b),l.Y36(l.R0b),l.Y36(re.t4),l.Y36(ue.$s),l.Y36(ue.tE),l.Y36(je),l.Y36(se.Is,8),l.Y36(Zt,8),l.Y36(e.K0))};static#t=this.\u0275dir=l.lG2({type:Ct,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(ae,Oe){2&ae&&l.ekj("mat-mdc-tooltip-disabled",Oe.disabled)},exportAs:["matTooltip"],features:[l.qOj]})}return Ct})(),dt=(()=>{class Ct{constructor(J,ae){this._changeDetectorRef=J,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new D.x,this._animationsDisabled="NoopAnimations"===ae}show(J){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},J)}hide(J){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},J)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:J}){(!J||!this._triggerElement.contains(J))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:J}){(J===this._showAnimation||J===this._hideAnimation)&&this._finalizeAnimation(J===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(J){J?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(J){const ae=this._tooltip.nativeElement,Oe=this._showAnimation,ot=this._hideAnimation;if(ae.classList.remove(J?ot:Oe),ae.classList.add(J?Oe:ot),this._isVisible=J,J&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Se=getComputedStyle(ae);("0s"===Se.getPropertyValue("animation-duration")||"none"===Se.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}J&&this._onShow(),this._animationsDisabled&&(ae.classList.add("_mat-animation-noopable"),this._finalizeAnimation(J))}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(l.sBO),l.Y36(l.QbO,8))};static#t=this.\u0275dir=l.lG2({type:Ct})}return Ct})(),at=(()=>{class Ct extends dt{constructor(J,ae,Oe){super(J,Oe),this._elementRef=ae,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const J=this._elementRef.nativeElement.getBoundingClientRect();return J.height>24&&J.width>=200}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Ct,selectors:[["mat-tooltip-component"]],viewQuery:function(ae,Oe){if(1&ae&&l.Gf(mt,7),2&ae){let ot;l.iGM(ot=l.CRH())&&(Oe._tooltip=ot.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ae,Oe){1&ae&&l.NdJ("mouseleave",function(Se){return Oe._handleMouseLeave(Se)}),2&ae&&l.Udp("zoom",Oe.isVisible()?1:null)},features:[l.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(ae,Oe){1&ae&&(l.TgZ(0,"div",0,1),l.NdJ("animationend",function(Se){return Oe._handleAnimationEnd(Se)}),l.TgZ(2,"div",2),l._uU(3),l.qZA()()),2&ae&&(l.ekj("mdc-tooltip--multiline",Oe._isMultiline),l.Q6J("ngClass",Oe.tooltipClass),l.xp6(3),l.Oqu(Oe.message))},dependencies:[e.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return Ct})(),Ee=(()=>{class Ct{static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275mod=l.oAB({type:Ct});static#n=this.\u0275inj=l.cJS({providers:[xt],imports:[ue.rt,e.ez,te.U8,Re.BQ,Re.BQ,oe.ZD]})}return Ct})();var $e=C(9157);function me(Ct,Ce){if(1&Ct&&(l.TgZ(0,"mat-option",19),l._uU(1),l.qZA()),2&Ct){const J=Ce.$implicit;l.Q6J("value",J),l.xp6(1),l.hij(" ",J," ")}}function tt(Ct,Ce){if(1&Ct){const J=l.EpF();l.TgZ(0,"mat-form-field",16)(1,"mat-select",17),l.NdJ("selectionChange",function(Oe){l.CHM(J);const ot=l.oxw(2);return l.KtG(ot._changePageSize(Oe.value))}),l.YNc(2,me,2,2,"mat-option",18),l.qZA()()}if(2&Ct){const J=l.oxw(2);l.Q6J("appearance",J._formFieldAppearance)("color",J.color),l.xp6(1),l.Q6J("value",J.pageSize)("disabled",J.disabled)("aria-labelledby",J._pageSizeLabelId)("panelClass",J.selectConfig.panelClass||"")("disableOptionCentering",J.selectConfig.disableOptionCentering),l.xp6(1),l.Q6J("ngForOf",J._displayedPageSizeOptions)}}function he(Ct,Ce){if(1&Ct&&(l.TgZ(0,"div",20),l._uU(1),l.qZA()),2&Ct){const J=l.oxw(2);l.xp6(1),l.Oqu(J.pageSize)}}function Ze(Ct,Ce){if(1&Ct&&(l.TgZ(0,"div",12)(1,"div",13),l._uU(2),l.qZA(),l.YNc(3,tt,3,8,"mat-form-field",14),l.YNc(4,he,2,1,"div",15),l.qZA()),2&Ct){const J=l.oxw();l.xp6(1),l.s9C("id",J._pageSizeLabelId),l.xp6(1),l.hij(" ",J._intl.itemsPerPageLabel," "),l.xp6(1),l.Q6J("ngIf",J._displayedPageSizeOptions.length>1),l.xp6(1),l.Q6J("ngIf",J._displayedPageSizeOptions.length<=1)}}function rt(Ct,Ce){if(1&Ct){const J=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){l.CHM(J);const Oe=l.oxw();return l.KtG(Oe.firstPage())}),l.O4$(),l.TgZ(1,"svg",7),l._UZ(2,"path",22),l.qZA()()}if(2&Ct){const J=l.oxw();l.Q6J("matTooltip",J._intl.firstPageLabel)("matTooltipDisabled",J._previousButtonsDisabled())("matTooltipPosition","above")("disabled",J._previousButtonsDisabled()),l.uIk("aria-label",J._intl.firstPageLabel)}}function bt(Ct,Ce){if(1&Ct){const J=l.EpF();l.O4$(),l.kcU(),l.TgZ(0,"button",23),l.NdJ("click",function(){l.CHM(J);const Oe=l.oxw();return l.KtG(Oe.lastPage())}),l.O4$(),l.TgZ(1,"svg",7),l._UZ(2,"path",24),l.qZA()()}if(2&Ct){const J=l.oxw();l.Q6J("matTooltip",J._intl.lastPageLabel)("matTooltipDisabled",J._nextButtonsDisabled())("matTooltipPosition","above")("disabled",J._nextButtonsDisabled()),l.uIk("aria-label",J._intl.lastPageLabel)}}let Nt=(()=>{class Ct{constructor(){this.changes=new D.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(J,ae,Oe)=>{if(0==Oe||0==ae)return`0 of ${Oe}`;const ot=J*ae;return`${ot+1} \u2013 ${ot<(Oe=Math.max(Oe,0))?Math.min(ot+ae,Oe):ot+ae} of ${Oe}`}}static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275prov=l.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"})}return Ct})();const nn={provide:Nt,deps:[[new l.FiY,new l.tp0,Nt]],useFactory:function Qt(Ct){return Ct||new Nt}},rn=new l.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),vn=(0,Re.Id)((0,Re.dB)(class{}));let ei=(()=>{class Ct extends vn{get pageIndex(){return this._pageIndex}set pageIndex(J){this._pageIndex=Math.max((0,Z.su)(J),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(J){this._length=(0,Z.su)(J),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(J){this._pageSize=Math.max((0,Z.su)(J),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(J){this._pageSizeOptions=(J||[]).map(ae=>(0,Z.su)(ae)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(J){this._hidePageSize=(0,Z.Ig)(J)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(J){this._showFirstLastButtons=(0,Z.Ig)(J)}constructor(J,ae,Oe){if(super(),this._intl=J,this._changeDetectorRef=ae,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new l.vpe,this._intlChanges=J.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Oe){const{pageSize:ot,pageSizeOptions:Se,hidePageSize:Ft,showFirstLastButtons:lt}=Oe;null!=ot&&(this._pageSize=ot),null!=Se&&(this._pageSizeOptions=Se),null!=Ft&&(this._hidePageSize=Ft),null!=lt&&(this._showFirstLastButtons=lt)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const J=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(J)}previousPage(){if(!this.hasPreviousPage())return;const J=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(J)}firstPage(){if(!this.hasPreviousPage())return;const J=this.pageIndex;this.pageIndex=0,this._emitPageEvent(J)}lastPage(){if(!this.hasNextPage())return;const J=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(J)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const J=this.getNumberOfPages()-1;return this.pageIndexJ-ae),this._changeDetectorRef.markForCheck())}_emitPageEvent(J){this.page.emit({previousPageIndex:J,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(ae){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Ct,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[l.qOj]})}return Ct})(),Wn=0,Ve=(()=>{class Ct extends ei{constructor(J,ae,Oe){super(J,ae,Oe),this._pageSizeLabelId="mat-paginator-page-size-label-"+Wn++,this._formFieldAppearance=Oe?.formFieldAppearance||"outline"}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(Nt),l.Y36(l.sBO),l.Y36(rn,8))};static#t=this.\u0275cmp=l.Xpm({type:Ct,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[l.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(ae,Oe){1&ae&&(l.TgZ(0,"div",0)(1,"div",1),l.YNc(2,Ze,5,4,"div",2),l.TgZ(3,"div",3)(4,"div",4),l._uU(5),l.qZA(),l.YNc(6,rt,3,5,"button",5),l.TgZ(7,"button",6),l.NdJ("click",function(){return Oe.previousPage()}),l.O4$(),l.TgZ(8,"svg",7),l._UZ(9,"path",8),l.qZA()(),l.kcU(),l.TgZ(10,"button",9),l.NdJ("click",function(){return Oe.nextPage()}),l.O4$(),l.TgZ(11,"svg",7),l._UZ(12,"path",10),l.qZA()(),l.YNc(13,bt,3,5,"button",11),l.qZA()()()),2&ae&&(l.xp6(2),l.Q6J("ngIf",!Oe.hidePageSize),l.xp6(3),l.hij(" ",Oe._intl.getRangeLabel(Oe.pageIndex,Oe.pageSize,Oe.length)," "),l.xp6(1),l.Q6J("ngIf",Oe.showFirstLastButtons),l.xp6(1),l.Q6J("matTooltip",Oe._intl.previousPageLabel)("matTooltipDisabled",Oe._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Oe._previousButtonsDisabled()),l.uIk("aria-label",Oe._intl.previousPageLabel),l.xp6(3),l.Q6J("matTooltip",Oe._intl.nextPageLabel)("matTooltipDisabled",Oe._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Oe._nextButtonsDisabled()),l.uIk("aria-label",Oe._intl.nextPageLabel),l.xp6(3),l.Q6J("ngIf",Oe.showFirstLastButtons))},dependencies:[e.sg,e.O5,I.RK,$e.KE,S.gD,Re.ey,Rn],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Ct})(),ct=(()=>{class Ct{static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275mod=l.oAB({type:Ct});static#n=this.\u0275inj=l.cJS({providers:[nn],imports:[e.ez,I.ot,S.LD,Ee]})}return Ct})()},6007:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cv:()=>ue,pW:()=>ee});var e=C(5879),D=(C(6814),C(3680)),I=C(2605);const S=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Z=(0,D.pj)(class{constructor(se){this._elementRef=se}},"primary");let ee=(()=>{class se extends Z{constructor(oe,ce,_e,Re,mt){super(oe),this._ngZone=ce,this._changeDetectorRef=_e,this._animationMode=Re,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._mode="determinate",this._transitionendHandler=Ge=>{0===this.animationEnd.observers.length||!Ge.target||!Ge.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===Re,mt&&(mt.color&&(this.color=this.defaultColor=mt.color),this.mode=mt.mode||this.mode)}get value(){return this._value}set value(oe){this._value=re((0,I.su)(oe)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(oe){this._bufferValue=re((0,I.su)(oe)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(oe){this._mode=oe,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(ce){return new(ce||se)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.QbO,8),e.Y36(S,8))};static#t=this.\u0275cmp=e.Xpm({type:se,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(ce,_e){2&ce&&(e.uIk("aria-valuenow",_e._isIndeterminate()?null:_e.value)("mode",_e.mode),e.ekj("_mat-animation-noopable",_e._isNoopAnimation)("mdc-linear-progress--animation-ready",!_e._isNoopAnimation)("mdc-linear-progress--indeterminate",_e._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(ce,_e){1&ce&&(e.TgZ(0,"div",0),e._UZ(1,"div",1)(2,"div",2),e.qZA(),e.TgZ(3,"div",3),e._UZ(4,"span",4),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"span",4),e.qZA()),2&ce&&(e.xp6(1),e.Udp("flex-basis",_e._getBufferBarFlexBasis()),e.xp6(2),e.Udp("transform",_e._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return se})();function re(se,te=0,oe=100){return Math.max(te,Math.min(oe,se))}let ue=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=e.oAB({type:se});static#n=this.\u0275inj=e.cJS({imports:[D.BQ]})}return se})()},5940:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cq:()=>oe,Ou:()=>se});var e=C(5879),l=C(3680),D=C(2605),I=C(6814);const S=["determinateSpinner"];function w(ce,_e){if(1&ce&&(e.O4$(),e.TgZ(0,"svg",11),e._UZ(1,"circle",12),e.qZA()),2&ce){const Re=e.oxw();e.uIk("viewBox",Re._viewBox()),e.xp6(1),e.Udp("stroke-dasharray",Re._strokeCircumference(),"px")("stroke-dashoffset",Re._strokeCircumference()/2,"px")("stroke-width",Re._circleStrokeWidth(),"%"),e.uIk("r",Re._circleRadius())}}const n=(0,l.pj)(class{constructor(ce){this._elementRef=ce}},"primary"),Z=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function ee(){return{diameter:re}}}),re=100;let se=(()=>{class ce extends n{constructor(Re,mt,Ge){super(Re),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=re,this._noopAnimations="NoopAnimations"===mt&&!!Ge&&!Ge._forceAnimations,Ge&&(Ge.color&&(this.color=this.defaultColor=Ge.color),Ge.diameter&&(this.diameter=Ge.diameter),Ge.strokeWidth&&(this.strokeWidth=Ge.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(Re){this._value=Math.max(0,Math.min(100,(0,D.su)(Re)))}get diameter(){return this._diameter}set diameter(Re){this._diameter=(0,D.su)(Re)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(Re){this._strokeWidth=(0,D.su)(Re)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const Re=2*this._circleRadius()+this.strokeWidth;return`0 0 ${Re} ${Re}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(e.SBq),e.Y36(e.QbO,8),e.Y36(Z))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(mt,Ge){if(1&mt&&e.Gf(S,5),2&mt){let Lt;e.iGM(Lt=e.CRH())&&(Ge._determinateCircle=Lt.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(mt,Ge){2&mt&&(e.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===Ge.mode?Ge.value:null)("mode",Ge.mode),e.Udp("width",Ge.diameter,"px")("height",Ge.diameter,"px")("--mdc-circular-progress-size",Ge.diameter+"px")("--mdc-circular-progress-active-indicator-width",Ge.diameter+"px"),e.ekj("_mat-animation-noopable",Ge._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===Ge.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(mt,Ge){if(1&mt&&(e.YNc(0,w,2,8,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.O4$(),e.TgZ(4,"svg",3),e._UZ(5,"circle",4),e.qZA()(),e.kcU(),e.TgZ(6,"div",5)(7,"div",6)(8,"div",7),e.GkF(9,8),e.qZA(),e.TgZ(10,"div",9),e.GkF(11,8),e.qZA(),e.TgZ(12,"div",10),e.GkF(13,8),e.qZA()()()),2&mt){const Lt=e.MAs(1);e.xp6(4),e.uIk("viewBox",Ge._viewBox()),e.xp6(1),e.Udp("stroke-dasharray",Ge._strokeCircumference(),"px")("stroke-dashoffset",Ge._strokeDashOffset(),"px")("stroke-width",Ge._circleStrokeWidth(),"%"),e.uIk("r",Ge._circleRadius()),e.xp6(4),e.Q6J("ngTemplateOutlet",Lt),e.xp6(2),e.Q6J("ngTemplateOutlet",Lt),e.xp6(2),e.Q6J("ngTemplateOutlet",Lt)}},dependencies:[I.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return ce})(),oe=(()=>{class ce{static#e=this.\u0275fac=function(mt){return new(mt||ce)};static#t=this.\u0275mod=e.oAB({type:ce});static#n=this.\u0275inj=e.cJS({imports:[I.ez,l.BQ]})}return ce})()},8525:(ft,Ie,C)=>{"use strict";C.d(Ie,{LD:()=>Qt,gD:()=>Nt});var e=C(3651),l=C(6814),D=C(5879),I=C(3680),S=C(9157),w=C(6672),n=C(4300),Z=C(9388),ee=C(2605),re=C(8337),ue=C(6028),se=C(6223),te=C(8645),oe=C(4911),ce=C(3019),_e=C(7921),Re=C(4664),mt=C(8180),Ge=C(2181),Lt=C(7398),je=C(3997),Tt=C(9773),xt=C(6825);const St=["trigger"],Zt=["panel"];function yt(nn,Dn){if(1&nn&&(D.TgZ(0,"span",10),D._uU(1),D.qZA()),2&nn){const Ot=D.oxw();D.xp6(1),D.Oqu(Ot.placeholder)}}function un(nn,Dn){if(1&nn&&(D.TgZ(0,"span",14),D._uU(1),D.qZA()),2&nn){const Ot=D.oxw(2);D.xp6(1),D.Oqu(Ot.triggerValue)}}function Jt(nn,Dn){1&nn&&D.Hsn(0,0,["*ngSwitchCase","true"])}function tn(nn,Dn){if(1&nn&&(D.TgZ(0,"span",11),D.YNc(1,un,2,1,"span",12),D.YNc(2,Jt,1,0,"ng-content",13),D.qZA()),2&nn){const Ot=D.oxw();D.Q6J("ngSwitch",!!Ot.customTrigger),D.xp6(2),D.Q6J("ngSwitchCase",!0)}}function wn(nn,Dn){if(1&nn){const Ot=D.EpF();D.O4$(),D.kcU(),D.TgZ(0,"div",15,16),D.NdJ("@transformPanel.done",function(vn){D.CHM(Ot);const ei=D.oxw();return D.KtG(ei._panelDoneAnimatingStream.next(vn.toState))})("keydown",function(vn){D.CHM(Ot);const ei=D.oxw();return D.KtG(ei._handleKeydown(vn))}),D.Hsn(2,1),D.qZA()}if(2&nn){const Ot=D.oxw();D.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Ot._getPanelTheme(),""),D.Q6J("ngClass",Ot.panelClass)("@transformPanel","showing"),D.uIk("id",Ot.id+"-panel")("aria-multiselectable",Ot.multiple)("aria-label",Ot.ariaLabel||null)("aria-labelledby",Ot._getPanelAriaLabelledby())}}const Ln=[[["mat-select-trigger"]],"*"],Yn=["mat-select-trigger","*"],ti={transformPanelWrap:(0,xt.X$)("transformPanelWrap",[(0,xt.eR)("* => void",(0,xt.IO)("@transformPanel",[(0,xt.pV)()],{optional:!0}))]),transformPanel:(0,xt.X$)("transformPanel",[(0,xt.SB)("void",(0,xt.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,xt.eR)("void => showing",(0,xt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,xt.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,xt.eR)("* => void",(0,xt.jt)("100ms linear",(0,xt.oB)({opacity:0})))])};let at=0;const Be=new D.OlP("mat-select-scroll-strategy"),$e=new D.OlP("MAT_SELECT_CONFIG"),me={provide:Be,deps:[e.aV],useFactory:function Ee(nn){return()=>nn.scrollStrategies.reposition()}},tt=new D.OlP("MatSelectTrigger");class he{constructor(Dn,Ot){this.source=Dn,this.value=Ot}}const Ze=(0,I.Kr)((0,I.sb)((0,I.Id)((0,I.FD)(class{constructor(nn,Dn,Ot,rn,vn){this._elementRef=nn,this._defaultErrorStateMatcher=Dn,this._parentForm=Ot,this._parentFormGroup=rn,this.ngControl=vn,this.stateChanges=new te.x}}))));let rt=(()=>{class nn extends Ze{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Ot){this._placeholder=Ot,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(se.kI.required)??!1}set required(Ot){this._required=(0,ee.Ig)(Ot),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Ot){this._multiple=(0,ee.Ig)(Ot)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Ot){this._disableOptionCentering=(0,ee.Ig)(Ot)}get compareWith(){return this._compareWith}set compareWith(Ot){this._compareWith=Ot,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Ot){this._assignValue(Ot)&&this._onChange(Ot)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Ot){this._typeaheadDebounceInterval=(0,ee.su)(Ot)}get id(){return this._id}set id(Ot){this._id=Ot||this._uid,this.stateChanges.next()}constructor(Ot,rn,vn,ei,Wn,Ve,ct,Ct,Ce,J,ae,Oe,ot,Se){super(Wn,ei,ct,Ct,J),this._viewportRuler=Ot,this._changeDetectorRef=rn,this._ngZone=vn,this._dir=Ve,this._parentFormField=Ce,this._liveAnnouncer=ot,this._defaultOptions=Se,this._panelOpen=!1,this._compareWith=(Ft,lt)=>Ft===lt,this._uid="mat-select-"+at++,this._triggerAriaLabelledBy=null,this._destroy=new te.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+at++,this._panelDoneAnimatingStream=new te.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,oe.P)(()=>{const Ft=this.options;return Ft?Ft.changes.pipe((0,_e.O)(Ft),(0,Re.w)(()=>(0,ce.T)(...Ft.map(lt=>lt.onSelectionChange)))):this._ngZone.onStable.pipe((0,mt.q)(1),(0,Re.w)(()=>this.optionSelectionChanges))}),this.openedChange=new D.vpe,this._openedStream=this.openedChange.pipe((0,Ge.h)(Ft=>Ft),(0,Lt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Ge.h)(Ft=>!Ft),(0,Lt.U)(()=>{})),this.selectionChange=new D.vpe,this.valueChange=new D.vpe,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Se?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Se.typeaheadDebounceInterval),this._scrollStrategyFactory=Oe,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ae)||0,this.id=this.id}ngOnInit(){this._selectionModel=new re.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,je.x)(),(0,Tt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Tt.R)(this._destroy)).subscribe(Ot=>{Ot.added.forEach(rn=>rn.select()),Ot.removed.forEach(rn=>rn.deselect())}),this.options.changes.pipe((0,_e.O)(null),(0,Tt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Ot=this._getTriggerAriaLabelledby(),rn=this.ngControl;if(Ot!==this._triggerAriaLabelledBy){const vn=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Ot,Ot?vn.setAttribute("aria-labelledby",Ot):vn.removeAttribute("aria-labelledby")}rn&&(this._previousControl!==rn.control&&(void 0!==this._previousControl&&null!==rn.disabled&&rn.disabled!==this.disabled&&(this.disabled=rn.disabled),this._previousControl=rn.control),this.updateErrorState())}ngOnChanges(Ot){(Ot.disabled||Ot.userAriaDescribedBy)&&this.stateChanges.next(),Ot.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const Ot=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Ot)return;const rn=`${this.id}-panel`;this._trackedModal&&(0,n.iD)(this._trackedModal,"aria-owns",rn),(0,n.Zf)(Ot,"aria-owns",rn),this._trackedModal=Ot}_clearFromModal(){this._trackedModal&&((0,n.iD)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Ot){this._assignValue(Ot)}registerOnChange(Ot){this._onChange=Ot}registerOnTouched(Ot){this._onTouched=Ot}setDisabledState(Ot){this.disabled=Ot,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Ot=this._selectionModel.selected.map(rn=>rn.viewValue);return this._isRtl()&&Ot.reverse(),Ot.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Ot){this.disabled||(this.panelOpen?this._handleOpenKeydown(Ot):this._handleClosedKeydown(Ot))}_handleClosedKeydown(Ot){const rn=Ot.keyCode,vn=rn===ue.JH||rn===ue.LH||rn===ue.oh||rn===ue.SV,ei=rn===ue.K5||rn===ue.L_,Wn=this._keyManager;if(!Wn.isTyping()&&ei&&!(0,ue.Vb)(Ot)||(this.multiple||Ot.altKey)&&vn)Ot.preventDefault(),this.open();else if(!this.multiple){const Ve=this.selected;Wn.onKeydown(Ot);const ct=this.selected;ct&&Ve!==ct&&this._liveAnnouncer.announce(ct.viewValue,1e4)}}_handleOpenKeydown(Ot){const rn=this._keyManager,vn=Ot.keyCode,ei=vn===ue.JH||vn===ue.LH,Wn=rn.isTyping();if(ei&&Ot.altKey)Ot.preventDefault(),this.close();else if(Wn||vn!==ue.K5&&vn!==ue.L_||!rn.activeItem||(0,ue.Vb)(Ot))if(!Wn&&this._multiple&&vn===ue.A&&Ot.ctrlKey){Ot.preventDefault();const Ve=this.options.some(ct=>!ct.disabled&&!ct.selected);this.options.forEach(ct=>{ct.disabled||(Ve?ct.select():ct.deselect())})}else{const Ve=rn.activeItemIndex;rn.onKeydown(Ot),this._multiple&&ei&&Ot.shiftKey&&rn.activeItem&&rn.activeItemIndex!==Ve&&rn.activeItem._selectViaInteraction()}else Ot.preventDefault(),rn.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,mt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Ot){if(this.options.forEach(rn=>rn.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Ot)Array.isArray(Ot),Ot.forEach(rn=>this._selectOptionByValue(rn)),this._sortValues();else{const rn=this._selectOptionByValue(Ot);rn?this._keyManager.updateActiveItem(rn):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Ot){const rn=this.options.find(vn=>{if(this._selectionModel.isSelected(vn))return!1;try{return null!=vn.value&&this._compareWith(vn.value,Ot)}catch{return!1}});return rn&&this._selectionModel.select(rn),rn}_assignValue(Ot){return!!(Ot!==this._value||this._multiple&&Array.isArray(Ot))&&(this.options&&this._setSelectionByValue(Ot),this._value=Ot,!0)}_skipPredicate(Ot){return Ot.disabled}_initKeyManager(){this._keyManager=new n.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Ot=(0,ce.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Tt.R)(Ot)).subscribe(rn=>{this._onSelect(rn.source,rn.isUserInput),rn.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ce.T)(...this.options.map(rn=>rn._stateChanges)).pipe((0,Tt.R)(Ot)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Ot,rn){const vn=this._selectionModel.isSelected(Ot);null!=Ot.value||this._multiple?(vn!==Ot.selected&&(Ot.selected?this._selectionModel.select(Ot):this._selectionModel.deselect(Ot)),rn&&this._keyManager.setActiveItem(Ot),this.multiple&&(this._sortValues(),rn&&this.focus())):(Ot.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Ot.value)),vn!==this._selectionModel.isSelected(Ot)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Ot=this.options.toArray();this._selectionModel.sort((rn,vn)=>this.sortComparator?this.sortComparator(rn,vn,Ot):Ot.indexOf(rn)-Ot.indexOf(vn)),this.stateChanges.next()}}_propagateChanges(Ot){let rn=null;rn=this.multiple?this.selected.map(vn=>vn.value):this.selected?this.selected.value:Ot,this._value=rn,this.valueChange.emit(rn),this._onChange(rn),this.selectionChange.emit(this._getChangeEvent(rn)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let Ot=-1;for(let rn=0;rn0}focus(Ot){this._elementRef.nativeElement.focus(Ot)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Ot=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Ot?Ot+" ":"")+this.ariaLabelledby:Ot}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Ot=this._parentFormField?.getLabelId();let rn=(Ot?Ot+" ":"")+this._valueId;return this.ariaLabelledby&&(rn+=" "+this.ariaLabelledby),rn}_panelDoneAnimating(Ot){this.openedChange.emit(Ot)}setDescribedByIds(Ot){Ot.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ot.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static#e=this.\u0275fac=function(rn){return new(rn||nn)(D.Y36(w.rL),D.Y36(D.sBO),D.Y36(D.R0b),D.Y36(I.rD),D.Y36(D.SBq),D.Y36(Z.Is,8),D.Y36(se.F,8),D.Y36(se.sg,8),D.Y36(S.G_,8),D.Y36(se.a5,10),D.$8M("tabindex"),D.Y36(Be),D.Y36(n.Kd),D.Y36($e,8))};static#t=this.\u0275dir=D.lG2({type:nn,viewQuery:function(rn,vn){if(1&rn&&(D.Gf(St,5),D.Gf(Zt,5),D.Gf(e.pI,5)),2&rn){let ei;D.iGM(ei=D.CRH())&&(vn.trigger=ei.first),D.iGM(ei=D.CRH())&&(vn.panel=ei.first),D.iGM(ei=D.CRH())&&(vn._overlayDir=ei.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[D.qOj,D.TTD]})}return nn})(),Nt=(()=>{class nn extends rt{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=Ot=>!this.panelOpen&&Ot.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Tt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(Ot){const rn=this.options.toArray()[Ot];if(rn){const vn=this.panel.nativeElement,ei=(0,I.CB)(Ot,this.options,this.optionGroups),Wn=rn._getHostElement();vn.scrollTop=0===Ot&&1===ei?0:(0,I.jH)(Wn.offsetTop,Wn.offsetHeight,vn.scrollTop,vn.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Ot){return new he(this,Ot)}_getOverlayWidth(Ot){return"auto"===this.panelWidth?(Ot instanceof e.xu?Ot.elementRef:Ot||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Ot){this._hideSingleSelectionIndicator=(0,ee.Ig)(Ot),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Ot of this.options)Ot._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(){let Ot;return function(vn){return(Ot||(Ot=D.n5z(nn)))(vn||nn)}}();static#t=this.\u0275cmp=D.Xpm({type:nn,selectors:[["mat-select"]],contentQueries:function(rn,vn,ei){if(1&rn&&(D.Suo(ei,tt,5),D.Suo(ei,I.ey,5),D.Suo(ei,I.K7,5)),2&rn){let Wn;D.iGM(Wn=D.CRH())&&(vn.customTrigger=Wn.first),D.iGM(Wn=D.CRH())&&(vn.options=Wn),D.iGM(Wn=D.CRH())&&(vn.optionGroups=Wn)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(rn,vn){1&rn&&D.NdJ("keydown",function(Wn){return vn._handleKeydown(Wn)})("focus",function(){return vn._onFocus()})("blur",function(){return vn._onBlur()}),2&rn&&(D.uIk("id",vn.id)("tabindex",vn.tabIndex)("aria-controls",vn.panelOpen?vn.id+"-panel":null)("aria-expanded",vn.panelOpen)("aria-label",vn.ariaLabel||null)("aria-required",vn.required.toString())("aria-disabled",vn.disabled.toString())("aria-invalid",vn.errorState)("aria-activedescendant",vn._getAriaActiveDescendant()),D.ekj("mat-mdc-select-disabled",vn.disabled)("mat-mdc-select-invalid",vn.errorState)("mat-mdc-select-required",vn.required)("mat-mdc-select-empty",vn.empty)("mat-mdc-select-multiple",vn.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[D._Bn([{provide:S.Eo,useExisting:nn},{provide:I.HF,useExisting:nn}]),D.qOj],ngContentSelectors:Yn,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(rn,vn){if(1&rn&&(D.F$t(Ln),D.TgZ(0,"div",0,1),D.NdJ("click",function(){return vn.toggle()}),D.TgZ(3,"div",2),D.YNc(4,yt,2,1,"span",3),D.YNc(5,tn,3,2,"span",4),D.qZA(),D.TgZ(6,"div",5)(7,"div",6),D.O4$(),D.TgZ(8,"svg",7),D._UZ(9,"path",8),D.qZA()()()(),D.YNc(10,wn,3,9,"ng-template",9),D.NdJ("backdropClick",function(){return vn.close()})("attach",function(){return vn._onAttached()})("detach",function(){return vn.close()})),2&rn){const ei=D.MAs(1);D.xp6(3),D.Q6J("ngSwitch",vn.empty),D.uIk("id",vn._valueId),D.xp6(1),D.Q6J("ngSwitchCase",!0),D.xp6(1),D.Q6J("ngSwitchCase",!1),D.xp6(5),D.Q6J("cdkConnectedOverlayPanelClass",vn._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",vn._scrollStrategy)("cdkConnectedOverlayOrigin",vn._preferredOverlayOrigin||ei)("cdkConnectedOverlayOpen",vn.panelOpen)("cdkConnectedOverlayPositions",vn._positions)("cdkConnectedOverlayWidth",vn._overlayWidth)}},dependencies:[l.mk,l.RF,l.n9,l.ED,e.pI,e.xu],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ti.transformPanel]},changeDetection:0})}return nn})(),Qt=(()=>{class nn{static#e=this.\u0275fac=function(rn){return new(rn||nn)};static#t=this.\u0275mod=D.oAB({type:nn});static#n=this.\u0275inj=D.cJS({providers:[me],imports:[l.ez,e.U8,I.Ng,I.BQ,w.ZD,S.lN,I.Ng,I.BQ]})}return nn})()},6593:(ft,Ie,C)=>{"use strict";C.d(Ie,{Dx:()=>Ve,H7:()=>ai,b2:()=>Ot,h_:()=>vn,q6:()=>Nt,se:()=>yt});var e=C(5879),l=C(6814);class D extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class I extends D{static makeCurrent(){(0,l.HT)(new I)}onAndCancel(ze,be,Te){return ze.addEventListener(be,Te),()=>{ze.removeEventListener(be,Te)}}dispatchEvent(ze,be){ze.dispatchEvent(be)}remove(ze){ze.parentNode&&ze.parentNode.removeChild(ze)}createElement(ze,be){return(be=be||this.getDefaultDocument()).createElement(ze)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ze){return ze.nodeType===Node.ELEMENT_NODE}isShadowRoot(ze){return ze instanceof DocumentFragment}getGlobalEventTarget(ze,be){return"window"===be?window:"document"===be?ze:"body"===be?ze.body:null}getBaseHref(ze){const be=function w(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==be?null:function Z(We){n=n||document.createElement("a"),n.setAttribute("href",We);const ze=n.pathname;return"/"===ze.charAt(0)?ze:`/${ze}`}(be)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(ze){return(0,l.Mx)(document.cookie,ze)}}let n,S=null,re=(()=>{class We{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Te){return new(Te||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const ue=new e.OlP("EventManagerPlugins");let se=(()=>{class We{constructor(be,Te){this._zone=Te,this._eventNameToPlugin=new Map,be.forEach(He=>{He.manager=this}),this._plugins=be.slice().reverse()}addEventListener(be,Te,He){return this._findPluginFor(Te).addEventListener(be,Te,He)}getZone(){return this._zone}_findPluginFor(be){let Te=this._eventNameToPlugin.get(be);if(Te)return Te;if(Te=this._plugins.find(Wt=>Wt.supports(be)),!Te)throw new e.vHH(5101,!1);return this._eventNameToPlugin.set(be,Te),Te}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(ue),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();class te{constructor(ze){this._doc=ze}}const oe="ng-app-id";let ce=(()=>{class We{constructor(be,Te,He,Wt={}){this.doc=be,this.appId=Te,this.nonce=He,this.platformId=Wt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,l.PM)(Wt),this.resetHostNodes()}addStyles(be){for(const Te of be)1===this.changeUsageCount(Te,1)&&this.onStyleAdded(Te)}removeStyles(be){for(const Te of be)this.changeUsageCount(Te,-1)<=0&&this.onStyleRemoved(Te)}ngOnDestroy(){const be=this.styleNodesInDOM;be&&(be.forEach(Te=>Te.remove()),be.clear());for(const Te of this.getAllStyles())this.onStyleRemoved(Te);this.resetHostNodes()}addHost(be){this.hostNodes.add(be);for(const Te of this.getAllStyles())this.addStyleToHost(be,Te)}removeHost(be){this.hostNodes.delete(be)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(be){for(const Te of this.hostNodes)this.addStyleToHost(Te,be)}onStyleRemoved(be){const Te=this.styleRef;Te.get(be)?.elements?.forEach(He=>He.remove()),Te.delete(be)}collectServerRenderedStyles(){const be=this.doc.head?.querySelectorAll(`style[${oe}="${this.appId}"]`);if(be?.length){const Te=new Map;return be.forEach(He=>{null!=He.textContent&&Te.set(He.textContent,He)}),Te}return null}changeUsageCount(be,Te){const He=this.styleRef;if(He.has(be)){const Wt=He.get(be);return Wt.usage+=Te,Wt.usage}return He.set(be,{usage:Te,elements:[]}),Te}getStyleElement(be,Te){const He=this.styleNodesInDOM,Wt=He?.get(Te);if(Wt?.parentNode===be)return He.delete(Te),Wt.removeAttribute(oe),Wt;{const Pn=this.doc.createElement("style");return this.nonce&&Pn.setAttribute("nonce",this.nonce),Pn.textContent=Te,this.platformIsServer&&Pn.setAttribute(oe,this.appId),Pn}}addStyleToHost(be,Te){const He=this.getStyleElement(be,Te);be.appendChild(He);const Wt=this.styleRef,Pn=Wt.get(Te)?.elements;Pn?Pn.push(He):Wt.set(Te,{elements:[He],usage:1})}resetHostNodes(){const be=this.hostNodes;be.clear(),be.add(this.doc.head)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0),e.LFG(e.AFp),e.LFG(e.Ojb,8),e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const _e={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/",math:"http://www.w3.org/1998/MathML/"},Re=/%COMP%/g,Tt=new e.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Zt(We,ze){return ze.map(be=>be.replace(Re,We))}let yt=(()=>{class We{constructor(be,Te,He,Wt,Pn,wt,Yt,fe=null){this.eventManager=be,this.sharedStylesHost=Te,this.appId=He,this.removeStylesOnCompDestroy=Wt,this.doc=Pn,this.platformId=wt,this.ngZone=Yt,this.nonce=fe,this.rendererByCompId=new Map,this.platformIsServer=(0,l.PM)(wt),this.defaultRenderer=new un(be,Pn,Yt,this.platformIsServer)}createRenderer(be,Te){if(!be||!Te)return this.defaultRenderer;this.platformIsServer&&Te.encapsulation===e.ifc.ShadowDom&&(Te={...Te,encapsulation:e.ifc.Emulated});const He=this.getOrCreateRenderer(be,Te);return He instanceof ti?He.applyToHost(be):He instanceof Yn&&He.applyStyles(),He}getOrCreateRenderer(be,Te){const He=this.rendererByCompId;let Wt=He.get(Te.id);if(!Wt){const Pn=this.doc,wt=this.ngZone,Yt=this.eventManager,fe=this.sharedStylesHost,Mt=this.removeStylesOnCompDestroy,Vt=this.platformIsServer;switch(Te.encapsulation){case e.ifc.Emulated:Wt=new ti(Yt,fe,Te,this.appId,Mt,Pn,wt,Vt);break;case e.ifc.ShadowDom:return new Ln(Yt,fe,be,Te,Pn,wt,this.nonce,Vt);default:Wt=new Yn(Yt,fe,Te,Mt,Pn,wt,Vt)}He.set(Te.id,Wt)}return Wt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(se),e.LFG(ce),e.LFG(e.AFp),e.LFG(Tt),e.LFG(l.K0),e.LFG(e.Lbi),e.LFG(e.R0b),e.LFG(e.Ojb))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();class un{constructor(ze,be,Te,He){this.eventManager=ze,this.doc=be,this.ngZone=Te,this.platformIsServer=He,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ze,be){return be?this.doc.createElementNS(_e[be]||be,ze):this.doc.createElement(ze)}createComment(ze){return this.doc.createComment(ze)}createText(ze){return this.doc.createTextNode(ze)}appendChild(ze,be){(wn(ze)?ze.content:ze).appendChild(be)}insertBefore(ze,be,Te){ze&&(wn(ze)?ze.content:ze).insertBefore(be,Te)}removeChild(ze,be){ze&&ze.removeChild(be)}selectRootElement(ze,be){let Te="string"==typeof ze?this.doc.querySelector(ze):ze;if(!Te)throw new e.vHH(-5104,!1);return be||(Te.textContent=""),Te}parentNode(ze){return ze.parentNode}nextSibling(ze){return ze.nextSibling}setAttribute(ze,be,Te,He){if(He){be=He+":"+be;const Wt=_e[He];Wt?ze.setAttributeNS(Wt,be,Te):ze.setAttribute(be,Te)}else ze.setAttribute(be,Te)}removeAttribute(ze,be,Te){if(Te){const He=_e[Te];He?ze.removeAttributeNS(He,be):ze.removeAttribute(`${Te}:${be}`)}else ze.removeAttribute(be)}addClass(ze,be){ze.classList.add(be)}removeClass(ze,be){ze.classList.remove(be)}setStyle(ze,be,Te,He){He&(e.JOm.DashCase|e.JOm.Important)?ze.style.setProperty(be,Te,He&e.JOm.Important?"important":""):ze.style[be]=Te}removeStyle(ze,be,Te){Te&e.JOm.DashCase?ze.style.removeProperty(be):ze.style[be]=""}setProperty(ze,be,Te){ze[be]=Te}setValue(ze,be){ze.nodeValue=be}listen(ze,be,Te){if("string"==typeof ze&&!(ze=(0,l.q)().getGlobalEventTarget(this.doc,ze)))throw new Error(`Unsupported event target ${ze} for event ${be}`);return this.eventManager.addEventListener(ze,be,this.decoratePreventDefault(Te))}decoratePreventDefault(ze){return be=>{if("__ngUnwrap__"===be)return ze;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ze(be)):ze(be))&&be.preventDefault()}}}function wn(We){return"TEMPLATE"===We.tagName&&void 0!==We.content}class Ln extends un{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){super(ze,Wt,Pn,Yt),this.sharedStylesHost=be,this.hostEl=Te,this.shadowRoot=Te.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const fe=Zt(He.id,He.styles);for(const Mt of fe){const Vt=document.createElement("style");wt&&Vt.setAttribute("nonce",wt),Vt.textContent=Mt,this.shadowRoot.appendChild(Vt)}}nodeOrShadowRoot(ze){return ze===this.hostEl?this.shadowRoot:ze}appendChild(ze,be){return super.appendChild(this.nodeOrShadowRoot(ze),be)}insertBefore(ze,be,Te){return super.insertBefore(this.nodeOrShadowRoot(ze),be,Te)}removeChild(ze,be){return super.removeChild(this.nodeOrShadowRoot(ze),be)}parentNode(ze){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ze)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Yn extends un{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){super(ze,Wt,Pn,wt),this.sharedStylesHost=be,this.removeStylesOnCompDestroy=He,this.styles=Yt?Zt(Yt,Te.styles):Te.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class ti extends Yn{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){const fe=He+"-"+Te.id;super(ze,be,Te,Wt,Pn,wt,Yt,fe),this.contentAttr=function xt(We){return"_ngcontent-%COMP%".replace(Re,We)}(fe),this.hostAttr=function St(We){return"_nghost-%COMP%".replace(Re,We)}(fe)}applyToHost(ze){this.applyStyles(),this.setAttribute(ze,this.hostAttr,"")}createElement(ze,be){const Te=super.createElement(ze,be);return super.setAttribute(Te,this.contentAttr,""),Te}}let gi=(()=>{class We extends te{constructor(be){super(be)}supports(be){return!0}addEventListener(be,Te,He){return be.addEventListener(Te,He,!1),()=>this.removeEventListener(be,Te,He)}removeEventListener(be,Te,He){return be.removeEventListener(Te,He)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const Rn=["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"},at={alt:We=>We.altKey,control:We=>We.ctrlKey,meta:We=>We.metaKey,shift:We=>We.shiftKey};let Be=(()=>{class We extends te{constructor(be){super(be)}supports(be){return null!=We.parseEventName(be)}addEventListener(be,Te,He){const Wt=We.parseEventName(Te),Pn=We.eventCallback(Wt.fullKey,He,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(be,Wt.domEventName,Pn))}static parseEventName(be){const Te=be.toLowerCase().split("."),He=Te.shift();if(0===Te.length||"keydown"!==He&&"keyup"!==He)return null;const Wt=We._normalizeKey(Te.pop());let Pn="",wt=Te.indexOf("code");if(wt>-1&&(Te.splice(wt,1),Pn="code."),Rn.forEach(fe=>{const Mt=Te.indexOf(fe);Mt>-1&&(Te.splice(Mt,1),Pn+=fe+".")}),Pn+=Wt,0!=Te.length||0===Wt.length)return null;const Yt={};return Yt.domEventName=He,Yt.fullKey=Pn,Yt}static matchEventFullKeyCode(be,Te){let He=dt[be.key]||be.key,Wt="";return Te.indexOf("code.")>-1&&(He=be.code,Wt="code."),!(null==He||!He)&&(He=He.toLowerCase()," "===He?He="space":"."===He&&(He="dot"),Rn.forEach(Pn=>{Pn!==He&&(0,at[Pn])(be)&&(Wt+=Pn+".")}),Wt+=He,Wt===Te)}static eventCallback(be,Te,He){return Wt=>{We.matchEventFullKeyCode(Wt,be)&&He.runGuarded(()=>Te(Wt))}}static _normalizeKey(be){return"esc"===be?"escape":be}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const Nt=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:l.bD},{provide:e.g9A,useValue:function he(){I.makeCurrent()},multi:!0},{provide:l.K0,useFactory:function rt(){return(0,e.RDi)(document),document},deps:[]}]),Qt=new e.OlP(""),nn=[{provide:e.rWj,useClass:class ee{addToWindow(ze){e.dqk.getAngularTestability=(Te,He=!0)=>{const Wt=ze.findTestabilityInTree(Te,He);if(null==Wt)throw new e.vHH(5103,!1);return Wt},e.dqk.getAllAngularTestabilities=()=>ze.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>ze.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(Te=>{const He=e.dqk.getAllAngularTestabilities();let Wt=He.length,Pn=!1;const wt=function(Yt){Pn=Pn||Yt,Wt--,0==Wt&&Te(Pn)};He.forEach(Yt=>{Yt.whenStable(wt)})})}findTestabilityInTree(ze,be,Te){return null==be?null:ze.getTestability(be)??(Te?(0,l.q)().isShadowRoot(be)?this.findTestabilityInTree(ze,be.host,!0):this.findTestabilityInTree(ze,be.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],Dn=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Ze(){return new e.qLn},deps:[]},{provide:ue,useClass:gi,multi:!0,deps:[l.K0,e.R0b,e.Lbi]},{provide:ue,useClass:Be,multi:!0,deps:[l.K0]},yt,ce,se,{provide:e.FYo,useExisting:yt},{provide:l.JF,useClass:re,deps:[]},[]];let Ot=(()=>{class We{constructor(be){}static withServerTransition(be){return{ngModule:We,providers:[{provide:e.AFp,useValue:be.appId}]}}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(Qt,12))};static#t=this.\u0275mod=e.oAB({type:We});static#n=this.\u0275inj=e.cJS({providers:[...Dn,...nn],imports:[l.ez,e.hGG]})}return We})(),vn=(()=>{class We{constructor(be){this._doc=be,this._dom=(0,l.q)()}addTag(be,Te=!1){return be?this._getOrCreateElement(be,Te):null}addTags(be,Te=!1){return be?be.reduce((He,Wt)=>(Wt&&He.push(this._getOrCreateElement(Wt,Te)),He),[]):[]}getTag(be){return be&&this._doc.querySelector(`meta[${be}]`)||null}getTags(be){if(!be)return[];const Te=this._doc.querySelectorAll(`meta[${be}]`);return Te?[].slice.call(Te):[]}updateTag(be,Te){if(!be)return null;Te=Te||this._parseSelector(be);const He=this.getTag(Te);return He?this._setMetaElementAttributes(be,He):this._getOrCreateElement(be,!0)}removeTag(be){this.removeTagElement(this.getTag(be))}removeTagElement(be){be&&this._dom.remove(be)}_getOrCreateElement(be,Te=!1){if(!Te){const Pn=this._parseSelector(be),wt=this.getTags(Pn).filter(Yt=>this._containsAttributes(be,Yt))[0];if(void 0!==wt)return wt}const He=this._dom.createElement("meta");return this._setMetaElementAttributes(be,He),this._doc.getElementsByTagName("head")[0].appendChild(He),He}_setMetaElementAttributes(be,Te){return Object.keys(be).forEach(He=>Te.setAttribute(this._getMetaKeyMap(He),be[He])),Te}_parseSelector(be){const Te=be.name?"name":"property";return`${Te}="${be[Te]}"`}_containsAttributes(be,Te){return Object.keys(be).every(He=>Te.getAttribute(this._getMetaKeyMap(He))===be[He])}_getMetaKeyMap(be){return ei[be]||be}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function rn(){return new vn((0,e.LFG)(l.K0))}(),He},providedIn:"root"})}return We})();const ei={httpEquiv:"http-equiv"};let Ve=(()=>{class We{constructor(be){this._doc=be}getTitle(){return this._doc.title}setTitle(be){this._doc.title=be||""}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function Wn(){return new Ve((0,e.LFG)(l.K0))}(),He},providedIn:"root"})}return We})();typeof window<"u"&&window;let ai=(()=>{class We{static#e=this.\u0275fac=function(Te){return new(Te||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new(Te||We):e.LFG(oi),He},providedIn:"root"})}return We})(),oi=(()=>{class We extends ai{constructor(be){super(),this._doc=be}sanitize(be,Te){if(null==Te)return null;switch(be){case e.q3G.NONE:return Te;case e.q3G.HTML:return(0,e.qzn)(Te,"HTML")?(0,e.z3N)(Te):(0,e.EiD)(this._doc,String(Te)).toString();case e.q3G.STYLE:return(0,e.qzn)(Te,"Style")?(0,e.z3N)(Te):Te;case e.q3G.SCRIPT:if((0,e.qzn)(Te,"Script"))return(0,e.z3N)(Te);throw new e.vHH(5200,!1);case e.q3G.URL:return(0,e.qzn)(Te,"URL")?(0,e.z3N)(Te):(0,e.mCW)(String(Te));case e.q3G.RESOURCE_URL:if((0,e.qzn)(Te,"ResourceURL"))return(0,e.z3N)(Te);throw new e.vHH(5201,!1);default:throw new e.vHH(5202,!1)}}bypassSecurityTrustHtml(be){return(0,e.JVY)(be)}bypassSecurityTrustStyle(be){return(0,e.L6k)(be)}bypassSecurityTrustScript(be){return(0,e.eBb)(be)}bypassSecurityTrustUrl(be){return(0,e.LAX)(be)}bypassSecurityTrustResourceUrl(be){return(0,e.pB0)(be)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function di(We){return new oi(We.get(l.K0))}(e.LFG(e.zs3)),He},providedIn:"root"})}return We})()},1662:(ft,Ie,C)=>{"use strict";C.d(Ie,{gz:()=>wr,m2:()=>yo,OD:()=>$n,F0:()=>zr,rH:()=>oa,Bz:()=>Jl,lC:()=>_r});var e=C(5879),l=C(5592),D=C(4674),S=C(9666),w=C(2096),n=C(5619),Z=C(2572),ee=C(6973),re=C(5211),ue=C(4911),se=C(8407),te=C(8504),oe=C(6232),ce=C(3168),_e=C(8645),Re=C(7394),mt=C(6814),Ge=C(7398),Lt=C(4664),je=C(8180),Tt=C(7921),xt=C(2181),St=C(1631),Zt=C(1374),yt=C(6328),un=C(9397),Jt=C(6306),tn=C(6424),wn=C(3572),Ln=C(9360),Yn=C(8251);function ti(W){return W<=0?()=>oe.E:(0,Ln.e)((ne,V)=>{let ie=[];ne.subscribe((0,Yn.x)(V,xe=>{ie.push(xe),W{for(const xe of ie)V.next(xe);V.complete()},void 0,()=>{ie=null}))})}var gi=C(3026),Rn=C(2737),at=C(975),Be=C(4716),Ee=C(6196),$e=C(9773),me=C(7537),tt=C(6593);const he="primary",Ze=Symbol("RouteTitle");class rt{constructor(ne){this.params=ne||{}}has(ne){return Object.prototype.hasOwnProperty.call(this.params,ne)}get(ne){if(this.has(ne)){const V=this.params[ne];return Array.isArray(V)?V[0]:V}return null}getAll(ne){if(this.has(ne)){const V=this.params[ne];return Array.isArray(V)?V:[V]}return[]}get keys(){return Object.keys(this.params)}}function bt(W){return new rt(W)}function Nt(W,ne,V){const ie=V.path.split("/");if(ie.length>W.length||"full"===V.pathMatch&&(ne.hasChildren()||ie.lengthie[qe]===xe)}return W===ne}function Ot(W){return W.length>0?W[W.length-1]:null}function rn(W){return function I(W){return!!W&&(W instanceof l.y||(0,D.m)(W.lift)&&(0,D.m)(W.subscribe))}(W)?W:(0,e.QGY)(W)?(0,S.D)(Promise.resolve(W)):(0,w.of)(W)}const vn={exact:function ct(W,ne,V){if(!lt(W.segments,ne.segments)||!ae(W.segments,ne.segments,V)||W.numberOfChildren!==ne.numberOfChildren)return!1;for(const ie in ne.children)if(!W.children[ie]||!ct(W.children[ie],ne.children[ie],V))return!1;return!0},subset:Ce},ei={exact:function Ve(W,ne){return nn(W,ne)},subset:function Ct(W,ne){return Object.keys(ne).length<=Object.keys(W).length&&Object.keys(ne).every(V=>Dn(W[V],ne[V]))},ignored:()=>!0};function Wn(W,ne,V){return vn[V.paths](W.root,ne.root,V.matrixParams)&&ei[V.queryParams](W.queryParams,ne.queryParams)&&!("exact"===V.fragment&&W.fragment!==ne.fragment)}function Ce(W,ne,V){return J(W,ne,ne.segments,V)}function J(W,ne,V,ie){if(W.segments.length>V.length){const xe=W.segments.slice(0,V.length);return!(!lt(xe,V)||ne.hasChildren()||!ae(xe,V,ie))}if(W.segments.length===V.length){if(!lt(W.segments,V)||!ae(W.segments,V,ie))return!1;for(const xe in ne.children)if(!W.children[xe]||!Ce(W.children[xe],ne.children[xe],ie))return!1;return!0}{const xe=V.slice(0,W.segments.length),qe=V.slice(W.segments.length);return!!(lt(W.segments,xe)&&ae(W.segments,xe,ie)&&W.children[he])&&J(W.children[he],ne,qe,ie)}}function ae(W,ne,V){return ne.every((ie,xe)=>ei[V](W[xe].parameters,ie.parameters))}class Oe{constructor(ne=new ot([],{}),V={},ie=null){this.root=ne,this.queryParams=V,this.fragment=ie}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}toString(){return gn.serialize(this)}}class ot{constructor(ne,V){this.segments=ne,this.children=V,this.parent=null,Object.values(V).forEach(ie=>ie.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return An(this)}}class Se{constructor(ne,V){this.path=ne,this.parameters=V}get parameterMap(){return this._parameterMap||(this._parameterMap=bt(this.parameters)),this._parameterMap}toString(){return G(this)}}function lt(W,ne){return W.length===ne.length&&W.every((V,ie)=>V.path===ne[ie].path)}let Ut=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return new fn},providedIn:"root"})}return W})();class fn{parse(ne){const V=new Pn(ne);return new Oe(V.parseRootSegment(),V.parseQueryParams(),V.parseFragment())}serialize(ne){const V=`/${jn(ne.root,!0)}`,ie=function ve(W){const ne=Object.keys(W).map(V=>{const ie=W[V];return Array.isArray(ie)?ie.map(xe=>`${di(V)}=${di(xe)}`).join("&"):`${di(V)}=${di(ie)}`}).filter(V=>!!V);return ne.length?`?${ne.join("&")}`:""}(ne.queryParams);return`${V}${ie}${"string"==typeof ne.fragment?`#${function oi(W){return encodeURI(W)}(ne.fragment)}`:""}`}}const gn=new fn;function An(W){return W.segments.map(ne=>G(ne)).join("/")}function jn(W,ne){if(!W.hasChildren())return An(W);if(ne){const V=W.children[he]?jn(W.children[he],!1):"",ie=[];return Object.entries(W.children).forEach(([xe,qe])=>{xe!==he&&ie.push(`${xe}:${jn(qe,!1)}`)}),ie.length>0?`${V}(${ie.join("//")})`:V}{const V=function Bt(W,ne){let V=[];return Object.entries(W.children).forEach(([ie,xe])=>{ie===he&&(V=V.concat(ne(xe,ie)))}),Object.entries(W.children).forEach(([ie,xe])=>{ie!==he&&(V=V.concat(ne(xe,ie)))}),V}(W,(ie,xe)=>xe===he?[jn(W.children[he],!1)]:[`${xe}:${jn(ie,!1)}`]);return 1===Object.keys(W.children).length&&null!=W.children[he]?`${An(W)}/${V[0]}`:`${An(W)}/(${V.join("//")})`}}function ai(W){return encodeURIComponent(W).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function di(W){return ai(W).replace(/%3B/gi,";")}function Jn(W){return ai(W).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qt(W){return decodeURIComponent(W)}function _t(W){return qt(W.replace(/\+/g,"%20"))}function G(W){return`${Jn(W.path)}${function U(W){return Object.keys(W).map(ne=>`;${Jn(ne)}=${Jn(W[ne])}`).join("")}(W.parameters)}`}const Pe=/^[^\/()?;#]+/;function ut(W){const ne=W.match(Pe);return ne?ne[0]:""}const We=/^[^\/()?;=#]+/,be=/^[^=?&#]+/,He=/^[^&#]+/;class Pn{constructor(ne){this.url=ne,this.remaining=ne}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ot([],{}):new ot([],this.parseChildren())}parseQueryParams(){const ne={};if(this.consumeOptional("?"))do{this.parseQueryParam(ne)}while(this.consumeOptional("&"));return ne}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ne=[];for(this.peekStartsWith("(")||ne.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ne.push(this.parseSegment());let V={};this.peekStartsWith("/(")&&(this.capture("/"),V=this.parseParens(!0));let ie={};return this.peekStartsWith("(")&&(ie=this.parseParens(!1)),(ne.length>0||Object.keys(V).length>0)&&(ie[he]=new ot(ne,V)),ie}parseSegment(){const ne=ut(this.remaining);if(""===ne&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(ne),new Se(qt(ne),this.parseMatrixParams())}parseMatrixParams(){const ne={};for(;this.consumeOptional(";");)this.parseParam(ne);return ne}parseParam(ne){const V=function ze(W){const ne=W.match(We);return ne?ne[0]:""}(this.remaining);if(!V)return;this.capture(V);let ie="";if(this.consumeOptional("=")){const xe=ut(this.remaining);xe&&(ie=xe,this.capture(ie))}ne[qt(V)]=qt(ie)}parseQueryParam(ne){const V=function Te(W){const ne=W.match(be);return ne?ne[0]:""}(this.remaining);if(!V)return;this.capture(V);let ie="";if(this.consumeOptional("=")){const Pt=function Wt(W){const ne=W.match(He);return ne?ne[0]:""}(this.remaining);Pt&&(ie=Pt,this.capture(ie))}const xe=_t(V),qe=_t(ie);if(ne.hasOwnProperty(xe)){let Pt=ne[xe];Array.isArray(Pt)||(Pt=[Pt],ne[xe]=Pt),Pt.push(qe)}else ne[xe]=qe}parseParens(ne){const V={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ie=ut(this.remaining),xe=this.remaining[ie.length];if("/"!==xe&&")"!==xe&&";"!==xe)throw new e.vHH(4010,!1);let qe;ie.indexOf(":")>-1?(qe=ie.slice(0,ie.indexOf(":")),this.capture(qe),this.capture(":")):ne&&(qe=he);const Pt=this.parseChildren();V[qe]=1===Object.keys(Pt).length?Pt[he]:new ot([],Pt),this.consumeOptional("//")}return V}peekStartsWith(ne){return this.remaining.startsWith(ne)}consumeOptional(ne){return!!this.peekStartsWith(ne)&&(this.remaining=this.remaining.substring(ne.length),!0)}capture(ne){if(!this.consumeOptional(ne))throw new e.vHH(4011,!1)}}function wt(W){return W.segments.length>0?new ot([],{[he]:W}):W}function Yt(W){const ne={};for(const ie of Object.keys(W.children)){const qe=Yt(W.children[ie]);if(ie===he&&0===qe.segments.length&&qe.hasChildren())for(const[Pt,mn]of Object.entries(qe.children))ne[Pt]=mn;else(qe.segments.length>0||qe.hasChildren())&&(ne[ie]=qe)}return function fe(W){if(1===W.numberOfChildren&&W.children[he]){const ne=W.children[he];return new ot(W.segments.concat(ne.segments),ne.children)}return W}(new ot(W.segments,ne))}function Mt(W){return W instanceof Oe}function ht(W){let ne;const xe=wt(function V(qe){const Pt={};for(const hn of qe.children){const on=V(hn);Pt[hn.outlet]=on}const mn=new ot(qe.url,Pt);return qe===W&&(ne=mn),mn}(W.root));return ne??xe}function st(W,ne,V,ie){let xe=W;for(;xe.parent;)xe=xe.parent;if(0===ne.length)return _n(xe,xe,xe,V,ie);const qe=function ni(W){if("string"==typeof W[0]&&1===W.length&&"/"===W[0])return new On(!0,0,W);let ne=0,V=!1;const ie=W.reduce((xe,qe,Pt)=>{if("object"==typeof qe&&null!=qe){if(qe.outlets){const mn={};return Object.entries(qe.outlets).forEach(([hn,on])=>{mn[hn]="string"==typeof on?on.split("/"):on}),[...xe,{outlets:mn}]}if(qe.segmentPath)return[...xe,qe.segmentPath]}return"string"!=typeof qe?[...xe,qe]:0===Pt?(qe.split("/").forEach((mn,hn)=>{0==hn&&"."===mn||(0==hn&&""===mn?V=!0:".."===mn?ne++:""!=mn&&xe.push(mn))}),xe):[...xe,qe]},[]);return new On(V,ne,ie)}(ne);if(qe.toRoot())return _n(xe,xe,new ot([],{}),V,ie);const Pt=function fr(W,ne,V){if(W.isAbsolute)return new Vn(ne,!0,0);if(!V)return new Vn(ne,!1,NaN);if(null===V.parent)return new Vn(V,!0,0);const ie=It(W.commands[0])?0:1;return function ki(W,ne,V){let ie=W,xe=ne,qe=V;for(;qe>xe;){if(qe-=xe,ie=ie.parent,!ie)throw new e.vHH(4005,!1);xe=ie.segments.length}return new Vn(ie,!1,xe-qe)}(V,V.segments.length-1+ie,W.numberOfDoubleDots)}(qe,xe,W),mn=Pt.processChildren?Bi(Pt.segmentGroup,Pt.index,qe.commands):vr(Pt.segmentGroup,Pt.index,qe.commands);return _n(xe,Pt.segmentGroup,mn,V,ie)}function It(W){return"object"==typeof W&&null!=W&&!W.outlets&&!W.segmentPath}function cn(W){return"object"==typeof W&&null!=W&&W.outlets}function _n(W,ne,V,ie,xe){let Pt,qe={};ie&&Object.entries(ie).forEach(([hn,on])=>{qe[hn]=Array.isArray(on)?on.map(ji=>`${ji}`):`${on}`}),Pt=W===ne?V:En(W,ne,V);const mn=wt(Yt(Pt));return new Oe(mn,qe,xe)}function En(W,ne,V){const ie={};return Object.entries(W.children).forEach(([xe,qe])=>{ie[xe]=qe===ne?V:En(qe,ne,V)}),new ot(W.segments,ie)}class On{constructor(ne,V,ie){if(this.isAbsolute=ne,this.numberOfDoubleDots=V,this.commands=ie,ne&&ie.length>0&&It(ie[0]))throw new e.vHH(4003,!1);const xe=ie.find(cn);if(xe&&xe!==Ot(ie))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Vn{constructor(ne,V,ie){this.segmentGroup=ne,this.processChildren=V,this.index=ie}}function vr(W,ne,V){if(W||(W=new ot([],{})),0===W.segments.length&&W.hasChildren())return Bi(W,ne,V);const ie=function co(W,ne,V){let ie=0,xe=ne;const qe={match:!1,pathIndex:0,commandIndex:0};for(;xe=V.length)return qe;const Pt=W.segments[xe],mn=V[ie];if(cn(mn))break;const hn=`${mn}`,on=ie0&&void 0===hn)break;if(hn&&on&&"object"==typeof on&&void 0===on.outlets){if(!bo(hn,on,Pt))return qe;ie+=2}else{if(!bo(hn,{},Pt))return qe;ie++}xe++}return{match:!0,pathIndex:xe,commandIndex:ie}}(W,ne,V),xe=V.slice(ie.commandIndex);if(ie.match&&ie.pathIndexqe!==he)&&W.children[he]&&1===W.numberOfChildren&&0===W.children[he].segments.length){const qe=Bi(W.children[he],ne,V);return new ot(W.segments,qe.children)}return Object.entries(ie).forEach(([qe,Pt])=>{"string"==typeof Pt&&(Pt=[Pt]),null!==Pt&&(xe[qe]=vr(W.children[qe],ne,Pt))}),Object.entries(W.children).forEach(([qe,Pt])=>{void 0===ie[qe]&&(xe[qe]=Pt)}),new ot(W.segments,xe)}}function Ji(W,ne,V){const ie=W.segments.slice(0,ne);let xe=0;for(;xe{"string"==typeof ie&&(ie=[ie]),null!==ie&&(ne[V]=Ji(new ot([],{}),0,ie))}),ne}function _i(W){const ne={};return Object.entries(W).forEach(([V,ie])=>ne[V]=`${ie}`),ne}function bo(W,ne,V){return W==V.path&&nn(ne,V.parameters)}const pr="imperative";class br{constructor(ne,V){this.id=ne,this.url=V}}class $n extends br{constructor(ne,V,ie="imperative",xe=null){super(ne,V),this.type=0,this.navigationTrigger=ie,this.restoredState=xe}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yo extends br{constructor(ne,V,ie){super(ne,V),this.urlAfterRedirects=ie,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Fr extends br{constructor(ne,V,ie,xe){super(ne,V),this.reason=ie,this.code=xe,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class uo extends br{constructor(ne,V,ie,xe){super(ne,V),this.reason=ie,this.code=xe,this.type=16}}class ho extends br{constructor(ne,V,ie,xe){super(ne,V),this.error=ie,this.target=xe,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class to extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yr extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gs extends br{constructor(ne,V,ie,xe,qe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.shouldActivate=qe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ba extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xl extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class So{constructor(ne){this.route=ne,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ws{constructor(ne){this.route=ne,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ds{constructor(ne){this.snapshot=ne,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $s{constructor(ne){this.snapshot=ne,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Uo{constructor(ne){this.snapshot=ne,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jr{constructor(ne){this.snapshot=ne,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ga{constructor(ne,V,ie){this.routerEvent=ne,this.position=V,this.anchor=ie,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class kr{}class oo{constructor(ne){this.url=ne}}class Sa{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Vo,this.attachRef=null}}let Vo=(()=>{class W{constructor(){this.contexts=new Map}onChildOutletCreated(V,ie){const xe=this.getOrCreateContext(V);xe.outlet=ie,this.contexts.set(V,xe)}onChildOutletDestroyed(V){const ie=this.getContext(V);ie&&(ie.outlet=null,ie.attachRef=null)}onOutletDeactivated(){const V=this.contexts;return this.contexts=new Map,V}onOutletReAttached(V){this.contexts=V}getOrCreateContext(V){let ie=this.getContext(V);return ie||(ie=new Sa,this.contexts.set(V,ie)),ie}getContext(V){return this.contexts.get(V)||null}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();class oc{constructor(ne){this._root=ne}get root(){return this._root.value}parent(ne){const V=this.pathFromRoot(ne);return V.length>1?V[V.length-2]:null}children(ne){const V=Ks(ne,this._root);return V?V.children.map(ie=>ie.value):[]}firstChild(ne){const V=Ks(ne,this._root);return V&&V.children.length>0?V.children[0].value:null}siblings(ne){const V=Aa(ne,this._root);return V.length<2?[]:V[V.length-2].children.map(xe=>xe.value).filter(xe=>xe!==ne)}pathFromRoot(ne){return Aa(ne,this._root).map(V=>V.value)}}function Ks(W,ne){if(W===ne.value)return ne;for(const V of ne.children){const ie=Ks(W,V);if(ie)return ie}return null}function Aa(W,ne){if(W===ne.value)return[ne];for(const V of ne.children){const ie=Aa(W,V);if(ie.length)return ie.unshift(ne),ie}return[]}class qi{constructor(ne,V){this.value=ne,this.children=V}toString(){return`TreeNode(${this.value})`}}function Li(W){const ne={};return W&&W.children.forEach(V=>ne[V.value.outlet]=V),ne}class Yr extends oc{constructor(ne,V){super(ne),this.snapshot=V,ll(this,ne)}toString(){return this.snapshot.toString()}}function dr(W,ne){const V=function Ha(W,ne){const Pt=new Es([],{},{},"",{},he,ne,null,{});return new Js("",new qi(Pt,[]))}(0,ne),ie=new n.X([new Se("",{})]),xe=new n.X({}),qe=new n.X({}),Pt=new n.X({}),mn=new n.X(""),hn=new wr(ie,xe,Pt,mn,qe,he,ne,V.root);return hn.snapshot=V.root,new Yr(new qi(hn,[]),V)}class wr{constructor(ne,V,ie,xe,qe,Pt,mn,hn){this.urlSubject=ne,this.paramsSubject=V,this.queryParamsSubject=ie,this.fragmentSubject=xe,this.dataSubject=qe,this.outlet=Pt,this.component=mn,this._futureSnapshot=hn,this.title=this.dataSubject?.pipe((0,Ge.U)(on=>on[Ze]))??(0,w.of)(void 0),this.url=ne,this.params=V,this.queryParams=ie,this.fragment=xe,this.data=qe}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,Ge.U)(ne=>bt(ne)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ge.U)(ne=>bt(ne)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function al(W,ne="emptyOnly"){const V=W.pathFromRoot;let ie=0;if("always"!==ne)for(ie=V.length-1;ie>=1;){const xe=V[ie],qe=V[ie-1];if(xe.routeConfig&&""===xe.routeConfig.path)ie--;else{if(qe.component)break;ie--}}return function Vr(W){return W.reduce((ne,V)=>({params:{...ne.params,...V.params},data:{...ne.data,...V.data},resolve:{...V.data,...ne.resolve,...V.routeConfig?.data,...V._resolvedData}}),{params:{},data:{},resolve:{}})}(V.slice(ie))}class Es{get title(){return this.data?.[Ze]}constructor(ne,V,ie,xe,qe,Pt,mn,hn,on){this.url=ne,this.params=V,this.queryParams=ie,this.fragment=xe,this.data=qe,this.outlet=Pt,this.component=mn,this.routeConfig=hn,this._resolve=on}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=bt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(ie=>ie.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Js extends oc{constructor(ne,V){super(V),this.url=ne,ll(this,V)}toString(){return er(this._root)}}function ll(W,ne){ne.value._routerState=W,ne.children.forEach(V=>ll(W,V))}function er(W){const ne=W.children.length>0?` { ${W.children.map(er).join(", ")} } `:"";return`${W.value}${ne}`}function qn(W){if(W.snapshot){const ne=W.snapshot,V=W._futureSnapshot;W.snapshot=V,nn(ne.queryParams,V.queryParams)||W.queryParamsSubject.next(V.queryParams),ne.fragment!==V.fragment&&W.fragmentSubject.next(V.fragment),nn(ne.params,V.params)||W.paramsSubject.next(V.params),function Qt(W,ne){if(W.length!==ne.length)return!1;for(let V=0;Vnn(V.parameters,ne[ie].parameters))}(W.url,ne.url);return V&&!(!W.parent!=!ne.parent)&&(!W.parent||bi(W.parent,ne.parent))}let _r=(()=>{class W{constructor(){this.activated=null,this._activatedRoute=null,this.name=he,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.parentContexts=(0,e.f3M)(Vo),this.location=(0,e.f3M)(e.s_b),this.changeDetector=(0,e.f3M)(e.sBO),this.environmentInjector=(0,e.f3M)(e.lqb),this.inputBinder=(0,e.f3M)(jo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(V){if(V.name){const{firstChange:ie,previousValue:xe}=V.name;if(ie)return;this.isTrackedInParentContexts(xe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(xe)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(V){return this.parentContexts.getContext(V)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const V=this.parentContexts.getContext(this.name);V?.route&&(V.attachRef?this.attach(V.attachRef,V.route):this.activateWith(V.route,V.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,!1);this.location.detach();const V=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(V.instance),V}attach(V,ie){this.activated=V,this._activatedRoute=ie,this.location.insert(V.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(V.instance)}deactivate(){if(this.activated){const V=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(V)}}activateWith(V,ie){if(this.isActivated)throw new e.vHH(4013,!1);this._activatedRoute=V;const xe=this.location,Pt=V.snapshot.component,mn=this.parentContexts.getOrCreateContext(this.name).children,hn=new wo(V,mn,xe.injector);this.activated=xe.createComponent(Pt,{index:xe.length,injector:hn,environmentInjector:ie??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275dir=e.lG2({type:W,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.TTD]})}return W})();class wo{constructor(ne,V,ie){this.route=ne,this.childContexts=V,this.parent=ie}get(ne,V){return ne===wr?this.route:ne===Vo?this.childContexts:this.parent.get(ne,V)}}const jo=new e.OlP("");let no=(()=>{class W{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(V){this.unsubscribeFromRouteData(V),this.subscribeToRouteData(V)}unsubscribeFromRouteData(V){this.outletDataSubscriptions.get(V)?.unsubscribe(),this.outletDataSubscriptions.delete(V)}subscribeToRouteData(V){const{activatedRoute:ie}=V,xe=(0,Z.a)([ie.queryParams,ie.params,ie.data]).pipe((0,Lt.w)(([qe,Pt,mn],hn)=>(mn={...qe,...Pt,...mn},0===hn?(0,w.of)(mn):Promise.resolve(mn)))).subscribe(qe=>{if(!V.isActivated||!V.activatedComponentRef||V.activatedRoute!==ie||null===ie.component)return void this.unsubscribeFromRouteData(V);const Pt=(0,e.qFp)(ie.component);if(Pt)for(const{templateName:mn}of Pt.inputs)V.activatedComponentRef.setInput(mn,qe[mn]);else this.unsubscribeFromRouteData(V)});this.outletDataSubscriptions.set(V,xe)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac})}return W})();function nr(W,ne,V){if(V&&W.shouldReuseRoute(ne.value,V.value.snapshot)){const ie=V.value;ie._futureSnapshot=ne.value;const xe=function ps(W,ne,V){return ne.children.map(ie=>{for(const xe of V.children)if(W.shouldReuseRoute(ie.value,xe.value.snapshot))return nr(W,ie,xe);return nr(W,ie)})}(W,ne,V);return new qi(ie,xe)}{if(W.shouldAttach(ne.value)){const qe=W.retrieve(ne.value);if(null!==qe){const Pt=qe.route;return Pt.value._futureSnapshot=ne.value,Pt.children=ne.children.map(mn=>nr(W,mn)),Pt}}const ie=function va(W){return new wr(new n.X(W.url),new n.X(W.params),new n.X(W.queryParams),new n.X(W.fragment),new n.X(W.data),W.outlet,W.component,W)}(ne.value),xe=ne.children.map(qe=>nr(W,qe));return new qi(ie,xe)}}const Ti="ngNavigationCancelingError";function qs(W,ne){const{redirectTo:V,navigationBehaviorOptions:ie}=Mt(ne)?{redirectTo:ne,navigationBehaviorOptions:void 0}:ne,xe=ba(!1,0,ne);return xe.url=V,xe.navigationBehaviorOptions=ie,xe}function ba(W,ne,V){const ie=new Error("NavigationCancelingError: "+(W||""));return ie[Ti]=!0,ie.cancellationCode=ne,V&&(ie.url=V),ie}function wi(W){return W&&W[Ti]}let Oo=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275cmp=e.Xpm({type:W,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:1,vars:0,template:function(ie,xe){1&ie&&e._UZ(0,"router-outlet")},dependencies:[_r],encapsulation:2})}return W})();function Jo(W){const ne=W.children&&W.children.map(Jo),V=ne?{...W,children:ne}:{...W};return!V.component&&!V.loadComponent&&(ne||V.loadChildren)&&V.outlet&&V.outlet!==he&&(V.component=Oo),V}function Io(W){return W.outlet||he}function fo(W){if(!W)return null;if(W.routeConfig?._injector)return W.routeConfig._injector;for(let ne=W.parent;ne;ne=ne.parent){const V=ne.routeConfig;if(V?._loadedInjector)return V._loadedInjector;if(V?._injector)return V._injector}return null}class Co{constructor(ne,V,ie,xe,qe){this.routeReuseStrategy=ne,this.futureState=V,this.currState=ie,this.forwardEvent=xe,this.inputBindingEnabled=qe}activate(ne){const V=this.futureState._root,ie=this.currState?this.currState._root:null;this.deactivateChildRoutes(V,ie,ne),qn(this.futureState.root),this.activateChildRoutes(V,ie,ne)}deactivateChildRoutes(ne,V,ie){const xe=Li(V);ne.children.forEach(qe=>{const Pt=qe.value.outlet;this.deactivateRoutes(qe,xe[Pt],ie),delete xe[Pt]}),Object.values(xe).forEach(qe=>{this.deactivateRouteAndItsChildren(qe,ie)})}deactivateRoutes(ne,V,ie){const xe=ne.value,qe=V?V.value:null;if(xe===qe)if(xe.component){const Pt=ie.getContext(xe.outlet);Pt&&this.deactivateChildRoutes(ne,V,Pt.children)}else this.deactivateChildRoutes(ne,V,ie);else qe&&this.deactivateRouteAndItsChildren(V,ie)}deactivateRouteAndItsChildren(ne,V){ne.value.component&&this.routeReuseStrategy.shouldDetach(ne.value.snapshot)?this.detachAndStoreRouteSubtree(ne,V):this.deactivateRouteAndOutlet(ne,V)}detachAndStoreRouteSubtree(ne,V){const ie=V.getContext(ne.value.outlet),xe=ie&&ne.value.component?ie.children:V,qe=Li(ne);for(const Pt of Object.keys(qe))this.deactivateRouteAndItsChildren(qe[Pt],xe);if(ie&&ie.outlet){const Pt=ie.outlet.detach(),mn=ie.children.onOutletDeactivated();this.routeReuseStrategy.store(ne.value.snapshot,{componentRef:Pt,route:ne,contexts:mn})}}deactivateRouteAndOutlet(ne,V){const ie=V.getContext(ne.value.outlet),xe=ie&&ne.value.component?ie.children:V,qe=Li(ne);for(const Pt of Object.keys(qe))this.deactivateRouteAndItsChildren(qe[Pt],xe);ie&&(ie.outlet&&(ie.outlet.deactivate(),ie.children.onOutletDeactivated()),ie.attachRef=null,ie.route=null)}activateChildRoutes(ne,V,ie){const xe=Li(V);ne.children.forEach(qe=>{this.activateRoutes(qe,xe[qe.value.outlet],ie),this.forwardEvent(new Jr(qe.value.snapshot))}),ne.children.length&&this.forwardEvent(new $s(ne.value.snapshot))}activateRoutes(ne,V,ie){const xe=ne.value,qe=V?V.value:null;if(qn(xe),xe===qe)if(xe.component){const Pt=ie.getOrCreateContext(xe.outlet);this.activateChildRoutes(ne,V,Pt.children)}else this.activateChildRoutes(ne,V,ie);else if(xe.component){const Pt=ie.getOrCreateContext(xe.outlet);if(this.routeReuseStrategy.shouldAttach(xe.snapshot)){const mn=this.routeReuseStrategy.retrieve(xe.snapshot);this.routeReuseStrategy.store(xe.snapshot,null),Pt.children.onOutletReAttached(mn.contexts),Pt.attachRef=mn.componentRef,Pt.route=mn.route.value,Pt.outlet&&Pt.outlet.attach(mn.componentRef,mn.route.value),qn(mn.route.value),this.activateChildRoutes(ne,null,Pt.children)}else{const mn=fo(xe.snapshot);Pt.attachRef=null,Pt.route=xe,Pt.injector=mn,Pt.outlet&&Pt.outlet.activateWith(xe,Pt.injector),this.activateChildRoutes(ne,null,Pt.children)}}else this.activateChildRoutes(ne,null,ie)}}class Br{constructor(ne){this.path=ne,this.route=this.path[this.path.length-1]}}class ea{constructor(ne,V){this.component=ne,this.route=V}}function po(W,ne,V){const ie=W._root;return Ss(ie,ne?ne._root:null,V,[ie.value])}function qo(W,ne){const V=Symbol(),ie=ne.get(W,V);return ie===V?"function"!=typeof W||(0,e.Z0I)(W)?ne.get(W):W:ie}function Ss(W,ne,V,ie,xe={canDeactivateChecks:[],canActivateChecks:[]}){const qe=Li(ne);return W.children.forEach(Pt=>{(function ya(W,ne,V,ie,xe={canDeactivateChecks:[],canActivateChecks:[]}){const qe=W.value,Pt=ne?ne.value:null,mn=V?V.getContext(W.value.outlet):null;if(Pt&&qe.routeConfig===Pt.routeConfig){const hn=function sr(W,ne,V){if("function"==typeof V)return V(W,ne);switch(V){case"pathParamsChange":return!lt(W.url,ne.url);case"pathParamsOrQueryParamsChange":return!lt(W.url,ne.url)||!nn(W.queryParams,ne.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bi(W,ne)||!nn(W.queryParams,ne.queryParams);default:return!bi(W,ne)}}(Pt,qe,qe.routeConfig.runGuardsAndResolvers);hn?xe.canActivateChecks.push(new Br(ie)):(qe.data=Pt.data,qe._resolvedData=Pt._resolvedData),Ss(W,ne,qe.component?mn?mn.children:null:V,ie,xe),hn&&mn&&mn.outlet&&mn.outlet.isActivated&&xe.canDeactivateChecks.push(new ea(mn.outlet.component,Pt))}else Pt&&Oa(ne,mn,xe),xe.canActivateChecks.push(new Br(ie)),Ss(W,null,qe.component?mn?mn.children:null:V,ie,xe)})(Pt,qe[Pt.value.outlet],V,ie.concat([Pt.value]),xe),delete qe[Pt.value.outlet]}),Object.entries(qe).forEach(([Pt,mn])=>Oa(mn,V.getContext(Pt),xe)),xe}function Oa(W,ne,V){const ie=Li(W),xe=W.value;Object.entries(ie).forEach(([qe,Pt])=>{Oa(Pt,xe.component?ne?ne.children.getContext(qe):null:ne,V)}),V.canDeactivateChecks.push(new ea(xe.component&&ne&&ne.outlet&&ne.outlet.isActivated?ne.outlet.component:null,xe))}function Ua(W){return"function"==typeof W}function Qn(W){return W instanceof ee.K||"EmptyError"===W?.name}const Ni=Symbol("INITIAL_VALUE");function Zo(){return(0,Lt.w)(W=>(0,Z.a)(W.map(ne=>ne.pipe((0,je.q)(1),(0,Tt.O)(Ni)))).pipe((0,Ge.U)(ne=>{for(const V of ne)if(!0!==V){if(V===Ni)return Ni;if(!1===V||V instanceof Oe)return V}return!0}),(0,xt.h)(ne=>ne!==Ni),(0,je.q)(1)))}function wa(W){return(0,se.z)((0,un.b)(ne=>{if(Mt(ne))throw qs(0,ne)}),(0,Ge.U)(ne=>!0===ne))}class Pr{constructor(ne){this.segmentGroup=ne||null}}class Ms{constructor(ne){this.urlTree=ne}}function As(W){return(0,te._)(new Pr(W))}function qr(W){return(0,te._)(new Ms(W))}class Va{constructor(ne,V){this.urlSerializer=ne,this.urlTree=V}noMatchError(ne){return new e.vHH(4002,!1)}lineralizeSegments(ne,V){let ie=[],xe=V.root;for(;;){if(ie=ie.concat(xe.segments),0===xe.numberOfChildren)return(0,w.of)(ie);if(xe.numberOfChildren>1||!xe.children[he])return(0,te._)(new e.vHH(4e3,!1));xe=xe.children[he]}}applyRedirectCommands(ne,V,ie){return this.applyRedirectCreateUrlTree(V,this.urlSerializer.parse(V),ne,ie)}applyRedirectCreateUrlTree(ne,V,ie,xe){const qe=this.createSegmentGroup(ne,V.root,ie,xe);return new Oe(qe,this.createQueryParams(V.queryParams,this.urlTree.queryParams),V.fragment)}createQueryParams(ne,V){const ie={};return Object.entries(ne).forEach(([xe,qe])=>{if("string"==typeof qe&&qe.startsWith(":")){const mn=qe.substring(1);ie[xe]=V[mn]}else ie[xe]=qe}),ie}createSegmentGroup(ne,V,ie,xe){const qe=this.createSegments(ne,V.segments,ie,xe);let Pt={};return Object.entries(V.children).forEach(([mn,hn])=>{Pt[mn]=this.createSegmentGroup(ne,hn,ie,xe)}),new ot(qe,Pt)}createSegments(ne,V,ie,xe){return V.map(qe=>qe.path.startsWith(":")?this.findPosParam(ne,qe,xe):this.findOrReturn(qe,ie))}findPosParam(ne,V,ie){const xe=ie[V.path.substring(1)];if(!xe)throw new e.vHH(4001,!1);return xe}findOrReturn(ne,V){let ie=0;for(const xe of V){if(xe.path===ne.path)return V.splice(ie),xe;ie++}return ne}}const Sl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gl(W,ne,V,ie,xe){const qe=Hs(W,ne,V);return qe.matched?(ie=function Ko(W,ne){return W.providers&&!W._injector&&(W._injector=(0,e.MMx)(W.providers,ne,`Route: ${W.path}`)),W._injector??ne}(ne,ie),function Xo(W,ne,V,ie){const xe=ne.canMatch;if(!xe||0===xe.length)return(0,w.of)(!0);const qe=xe.map(Pt=>{const mn=qo(Pt,W);return rn(function le(W){return W&&Ua(W.canMatch)}(mn)?mn.canMatch(ne,V):W.runInContext(()=>mn(ne,V)))});return(0,w.of)(qe).pipe(Zo(),wa())}(ie,ne,V).pipe((0,Ge.U)(Pt=>!0===Pt?qe:{...Sl}))):(0,w.of)(qe)}function Hs(W,ne,V){if(""===ne.path)return"full"===ne.pathMatch&&(W.hasChildren()||V.length>0)?{...Sl}:{matched:!0,consumedSegments:[],remainingSegments:V,parameters:{},positionalParamSegments:{}};const xe=(ne.matcher||Nt)(V,W,ne);if(!xe)return{...Sl};const qe={};Object.entries(xe.posParams??{}).forEach(([mn,hn])=>{qe[mn]=hn.path});const Pt=xe.consumed.length>0?{...qe,...xe.consumed[xe.consumed.length-1].parameters}:qe;return{matched:!0,consumedSegments:xe.consumed,remainingSegments:V.slice(xe.consumed.length),parameters:Pt,positionalParamSegments:xe.posParams??{}}}function ja(W,ne,V,ie){return V.length>0&&function Wl(W,ne,V){return V.some(ie=>ns(W,ne,ie)&&Io(ie)!==he)}(W,V,ie)?{segmentGroup:new ot(ne,ts(ie,new ot(V,W.children))),slicedSegments:[]}:0===V.length&&function gs(W,ne,V){return V.some(ie=>ns(W,ne,ie))}(W,V,ie)?{segmentGroup:new ot(W.segments,es(W,0,V,ie,W.children)),slicedSegments:V}:{segmentGroup:new ot(W.segments,W.children),slicedSegments:V}}function es(W,ne,V,ie,xe){const qe={};for(const Pt of ie)if(ns(W,V,Pt)&&!xe[Io(Pt)]){const mn=new ot([],{});qe[Io(Pt)]=mn}return{...xe,...qe}}function ts(W,ne){const V={};V[he]=ne;for(const ie of W)if(""===ie.path&&Io(ie)!==he){const xe=new ot([],{});V[Io(ie)]=xe}return V}function ns(W,ne,V){return(!(W.hasChildren()||ne.length>0)||"full"!==V.pathMatch)&&""===V.path}class Za{constructor(ne,V,ie,xe,qe,Pt,mn){this.injector=ne,this.configLoader=V,this.rootComponentType=ie,this.config=xe,this.urlTree=qe,this.paramsInheritanceStrategy=Pt,this.urlSerializer=mn,this.allowRedirects=!0,this.applyRedirects=new Va(this.urlSerializer,this.urlTree)}noMatchError(ne){return new e.vHH(4002,!1)}recognize(){const ne=ja(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ne,he).pipe((0,Jt.K)(V=>{if(V instanceof Ms)return this.allowRedirects=!1,this.urlTree=V.urlTree,this.match(V.urlTree);throw V instanceof Pr?this.noMatchError(V):V}),(0,Ge.U)(V=>{const ie=new Es([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},he,this.rootComponentType,null,{}),xe=new qi(ie,V),qe=new Js("",xe),Pt=function Vt(W,ne,V=null,ie=null){return st(ht(W),ne,V,ie)}(ie,[],this.urlTree.queryParams,this.urlTree.fragment);return Pt.queryParams=this.urlTree.queryParams,qe.url=this.urlSerializer.serialize(Pt),this.inheritParamsAndData(qe._root),{state:qe,tree:Pt}}))}match(ne){return this.processSegmentGroup(this.injector,this.config,ne.root,he).pipe((0,Jt.K)(ie=>{throw ie instanceof Pr?this.noMatchError(ie):ie}))}inheritParamsAndData(ne){const V=ne.value,ie=al(V,this.paramsInheritanceStrategy);V.params=Object.freeze(ie.params),V.data=Object.freeze(ie.data),ne.children.forEach(xe=>this.inheritParamsAndData(xe))}processSegmentGroup(ne,V,ie,xe){return 0===ie.segments.length&&ie.hasChildren()?this.processChildren(ne,V,ie):this.processSegment(ne,V,ie,ie.segments,xe,!0)}processChildren(ne,V,ie){const xe=[];for(const qe of Object.keys(ie.children))"primary"===qe?xe.unshift(qe):xe.push(qe);return(0,S.D)(xe).pipe((0,yt.b)(qe=>{const Pt=ie.children[qe],mn=function Ys(W,ne){const V=W.filter(ie=>Io(ie)===ne);return V.push(...W.filter(ie=>Io(ie)!==ne)),V}(V,qe);return this.processSegmentGroup(ne,mn,Pt,qe)}),(0,tn.R)((qe,Pt)=>(qe.push(...Pt),qe)),(0,wn.d)(null),function dt(W,ne){const V=arguments.length>=2;return ie=>ie.pipe(W?(0,xt.h)((xe,qe)=>W(xe,qe,ie)):Rn.y,ti(1),V?(0,wn.d)(ne):(0,gi.T)(()=>new ee.K))}(),(0,St.z)(qe=>{if(null===qe)return As(ie);const Pt=Tr(qe);return function za(W){W.sort((ne,V)=>ne.value.outlet===he?-1:V.value.outlet===he?1:ne.value.outlet.localeCompare(V.value.outlet))}(Pt),(0,w.of)(Pt)}))}processSegment(ne,V,ie,xe,qe,Pt){return(0,S.D)(V).pipe((0,yt.b)(mn=>this.processSegmentAgainstRoute(mn._injector??ne,V,mn,ie,xe,qe,Pt).pipe((0,Jt.K)(hn=>{if(hn instanceof Pr)return(0,w.of)(null);throw hn}))),(0,Zt.P)(mn=>!!mn),(0,Jt.K)(mn=>{if(Qn(mn))return function Os(W,ne,V){return 0===ne.length&&!W.children[V]}(ie,xe,qe)?(0,w.of)([]):As(ie);throw mn}))}processSegmentAgainstRoute(ne,V,ie,xe,qe,Pt,mn){return function vc(W,ne,V,ie){return!!(Io(W)===ie||ie!==he&&ns(ne,V,W))&&("**"===W.path||Hs(ne,W,V).matched)}(ie,xe,qe,Pt)?void 0===ie.redirectTo?this.matchSegmentAgainstRoute(ne,xe,ie,qe,Pt,mn):mn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ne,xe,V,ie,qe,Pt):As(xe):As(xe)}expandSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt){return"**"===xe.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ne,ie,xe,Pt):this.expandRegularSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ne,V,ie,xe){const qe=this.applyRedirects.applyRedirectCommands([],ie.redirectTo,{});return ie.redirectTo.startsWith("/")?qr(qe):this.applyRedirects.lineralizeSegments(ie,qe).pipe((0,St.z)(Pt=>{const mn=new ot(Pt,{});return this.processSegment(ne,V,mn,Pt,xe,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt){const{matched:mn,consumedSegments:hn,remainingSegments:on,positionalParamSegments:ji}=Hs(V,xe,qe);if(!mn)return As(V);const Gr=this.applyRedirects.applyRedirectCommands(hn,xe.redirectTo,ji);return xe.redirectTo.startsWith("/")?qr(Gr):this.applyRedirects.lineralizeSegments(xe,Gr).pipe((0,St.z)($i=>this.processSegment(ne,ie,V,$i.concat(on),Pt,!1)))}matchSegmentAgainstRoute(ne,V,ie,xe,qe,Pt){let mn;if("**"===ie.path){const hn=xe.length>0?Ot(xe).parameters:{},on=new Es(xe,hn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kl(ie),Io(ie),ie.component??ie._loadedComponent??null,ie,Rs(ie));mn=(0,w.of)({snapshot:on,consumedSegments:[],remainingSegments:[]}),V.children={}}else mn=Gl(V,ie,xe,ne).pipe((0,Ge.U)(({matched:hn,consumedSegments:on,remainingSegments:ji,parameters:Gr})=>hn?{snapshot:new Es(on,Gr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kl(ie),Io(ie),ie.component??ie._loadedComponent??null,ie,Rs(ie)),consumedSegments:on,remainingSegments:ji}:null));return mn.pipe((0,Lt.w)(hn=>null===hn?As(V):this.getChildConfig(ne=ie._injector??ne,ie,xe).pipe((0,Lt.w)(({routes:on})=>{const ji=ie._loadedInjector??ne,{snapshot:Gr,consumedSegments:$i,remainingSegments:mi}=hn,{segmentGroup:Ps,slicedSegments:fl}=ja(V,$i,mi,on);if(0===fl.length&&Ps.hasChildren())return this.processChildren(ji,on,Ps).pipe((0,Ge.U)(Ja=>null===Ja?null:[new qi(Gr,Ja)]));if(0===on.length&&0===fl.length)return(0,w.of)([new qi(Gr,[])]);const Rl=Io(ie)===qe;return this.processSegment(ji,on,Ps,fl,Rl?he:qe,!0).pipe((0,Ge.U)(Ja=>[new qi(Gr,Ja)]))}))))}getChildConfig(ne,V,ie){return V.children?(0,w.of)({routes:V.children,injector:ne}):V.loadChildren?void 0!==V._loadedRoutes?(0,w.of)({routes:V._loadedRoutes,injector:V._loadedInjector}):function El(W,ne,V,ie){const xe=ne.canLoad;if(void 0===xe||0===xe.length)return(0,w.of)(!0);const qe=xe.map(Pt=>{const mn=qo(Pt,W);return rn(function ta(W){return W&&Ua(W.canLoad)}(mn)?mn.canLoad(ne,V):W.runInContext(()=>mn(ne,V)))});return(0,w.of)(qe).pipe(Zo(),wa())}(ne,V,ie).pipe((0,St.z)(xe=>xe?this.configLoader.loadChildren(ne,V).pipe((0,un.b)(qe=>{V._loadedRoutes=qe.routes,V._loadedInjector=qe.injector})):function Ro(W){return(0,te._)(ba(!1,3))}())):(0,w.of)({routes:[],injector:ne})}}function $l(W){const ne=W.value.routeConfig;return ne&&""===ne.path}function Tr(W){const ne=[],V=new Set;for(const ie of W){if(!$l(ie)){ne.push(ie);continue}const xe=ne.find(qe=>ie.value.routeConfig===qe.value.routeConfig);void 0!==xe?(xe.children.push(...ie.children),V.add(xe)):ne.push(ie)}for(const ie of V){const xe=Tr(ie.children);ne.push(new qi(ie.value,xe))}return ne.filter(ie=>!V.has(ie))}function Kl(W){return W.data||{}}function Rs(W){return W.resolve||{}}function is(W){return"string"==typeof W.title||null===W.title}function ro(W){return(0,Lt.w)(ne=>{const V=W(ne);return V?(0,S.D)(V).pipe((0,Ge.U)(()=>ne)):(0,w.of)(ne)})}const K=new e.OlP("ROUTES");let Ue=(()=>{class W{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,e.f3M)(e.Sil)}loadComponent(V){if(this.componentLoaders.get(V))return this.componentLoaders.get(V);if(V._loadedComponent)return(0,w.of)(V._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(V);const ie=rn(V.loadComponent()).pipe((0,Ge.U)(kt),(0,un.b)(qe=>{this.onLoadEndListener&&this.onLoadEndListener(V),V._loadedComponent=qe}),(0,Be.x)(()=>{this.componentLoaders.delete(V)})),xe=new ce.c(ie,()=>new _e.x).pipe((0,Ee.x)());return this.componentLoaders.set(V,xe),xe}loadChildren(V,ie){if(this.childrenLoaders.get(ie))return this.childrenLoaders.get(ie);if(ie._loadedRoutes)return(0,w.of)({routes:ie._loadedRoutes,injector:ie._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(ie);const qe=function ge(W,ne,V,ie){return rn(W.loadChildren()).pipe((0,Ge.U)(kt),(0,St.z)(xe=>xe instanceof e.YKP||Array.isArray(xe)?(0,w.of)(xe):(0,S.D)(ne.compileModuleAsync(xe))),(0,Ge.U)(xe=>{ie&&ie(W);let qe,Pt,mn=!1;return Array.isArray(xe)?(Pt=xe,!0):(qe=xe.create(V).injector,Pt=qe.get(K,[],{optional:!0,self:!0}).flat()),{routes:Pt.map(Jo),injector:qe}}))}(ie,this.compiler,V,this.onLoadEndListener).pipe((0,Be.x)(()=>{this.childrenLoaders.delete(ie)})),Pt=new ce.c(qe,()=>new _e.x).pipe((0,Ee.x)());return this.childrenLoaders.set(ie,Pt),Pt}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function kt(W){return function Ne(W){return W&&"object"==typeof W&&"default"in W}(W)?W.default:W}let pn=(()=>{class W{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new _e.x,this.transitionAbortSubject=new _e.x,this.configLoader=(0,e.f3M)(Ue),this.environmentInjector=(0,e.f3M)(e.lqb),this.urlSerializer=(0,e.f3M)(Ut),this.rootContexts=(0,e.f3M)(Vo),this.inputBindingEnabled=null!==(0,e.f3M)(jo,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,w.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=xe=>this.events.next(new Ws(xe)),this.configLoader.onLoadStartListener=xe=>this.events.next(new So(xe))}complete(){this.transitions?.complete()}handleNavigationRequest(V){const ie=++this.navigationId;this.transitions?.next({...this.transitions.value,...V,id:ie})}setupNavigations(V,ie,xe){return this.transitions=new n.X({id:0,currentUrlTree:ie,currentRawUrl:ie,currentBrowserUrl:ie,extractedUrl:V.urlHandlingStrategy.extract(ie),urlAfterRedirects:V.urlHandlingStrategy.extract(ie),rawUrl:ie,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:pr,restoredState:null,currentSnapshot:xe.snapshot,targetSnapshot:null,currentRouterState:xe,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,xt.h)(qe=>0!==qe.id),(0,Ge.U)(qe=>({...qe,extractedUrl:V.urlHandlingStrategy.extract(qe.rawUrl)})),(0,Lt.w)(qe=>{this.currentTransition=qe;let Pt=!1,mn=!1;return(0,w.of)(qe).pipe((0,un.b)(hn=>{this.currentNavigation={id:hn.id,initialUrl:hn.rawUrl,extractedUrl:hn.extractedUrl,trigger:hn.source,extras:hn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Lt.w)(hn=>{const on=hn.currentBrowserUrl.toString(),ji=!V.navigated||hn.extractedUrl.toString()!==on||on!==hn.currentUrlTree.toString();if(!ji&&"reload"!==(hn.extras.onSameUrlNavigation??V.onSameUrlNavigation)){const $i="";return this.events.next(new uo(hn.id,this.urlSerializer.serialize(hn.rawUrl),$i,0)),hn.resolve(null),oe.E}if(V.urlHandlingStrategy.shouldProcessUrl(hn.rawUrl))return(0,w.of)(hn).pipe((0,Lt.w)($i=>{const mi=this.transitions?.getValue();return this.events.next(new $n($i.id,this.urlSerializer.serialize($i.extractedUrl),$i.source,$i.restoredState)),mi!==this.transitions?.getValue()?oe.E:Promise.resolve($i)}),function xa(W,ne,V,ie,xe,qe){return(0,St.z)(Pt=>function Is(W,ne,V,ie,xe,qe,Pt="emptyOnly"){return new Za(W,ne,V,ie,xe,Pt,qe).recognize()}(W,ne,V,ie,Pt.extractedUrl,xe,qe).pipe((0,Ge.U)(({state:mn,tree:hn})=>({...Pt,targetSnapshot:mn,urlAfterRedirects:hn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,V.config,this.urlSerializer,V.paramsInheritanceStrategy),(0,un.b)($i=>{qe.targetSnapshot=$i.targetSnapshot,qe.urlAfterRedirects=$i.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:$i.urlAfterRedirects};const mi=new to($i.id,this.urlSerializer.serialize($i.extractedUrl),this.urlSerializer.serialize($i.urlAfterRedirects),$i.targetSnapshot);this.events.next(mi)}));if(ji&&V.urlHandlingStrategy.shouldProcessUrl(hn.currentRawUrl)){const{id:$i,extractedUrl:mi,source:Ps,restoredState:fl,extras:Rl}=hn,Ja=new $n($i,this.urlSerializer.serialize(mi),Ps,fl);this.events.next(Ja);const xd=dr(0,this.rootComponentType).snapshot;return this.currentTransition=qe={...hn,targetSnapshot:xd,urlAfterRedirects:mi,extras:{...Rl,skipLocationChange:!1,replaceUrl:!1}},(0,w.of)(qe)}{const $i="";return this.events.next(new uo(hn.id,this.urlSerializer.serialize(hn.extractedUrl),$i,1)),hn.resolve(null),oe.E}}),(0,un.b)(hn=>{const on=new yr(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects),hn.targetSnapshot);this.events.next(on)}),(0,Ge.U)(hn=>(this.currentTransition=qe={...hn,guards:po(hn.targetSnapshot,hn.currentSnapshot,this.rootContexts)},qe)),function Cl(W,ne){return(0,St.z)(V=>{const{targetSnapshot:ie,currentSnapshot:xe,guards:{canActivateChecks:qe,canDeactivateChecks:Pt}}=V;return 0===Pt.length&&0===qe.length?(0,w.of)({...V,guardsResult:!0}):function ia(W,ne,V,ie){return(0,S.D)(W).pipe((0,St.z)(xe=>function kc(W,ne,V,ie,xe){const qe=ne&&ne.routeConfig?ne.routeConfig.canDeactivate:null;if(!qe||0===qe.length)return(0,w.of)(!0);const Pt=qe.map(mn=>{const hn=fo(ne)??xe,on=qo(mn,hn);return rn(function Fe(W){return W&&Ua(W.canDeactivate)}(on)?on.canDeactivate(W,ne,V,ie):hn.runInContext(()=>on(W,ne,V,ie))).pipe((0,Zt.P)())});return(0,w.of)(Pt).pipe(Zo())}(xe.component,xe.route,V,ne,ie)),(0,Zt.P)(xe=>!0!==xe,!0))}(Pt,ie,xe,W).pipe((0,St.z)(mn=>mn&&function Ia(W){return"boolean"==typeof W}(mn)?function sc(W,ne,V,ie){return(0,S.D)(ne).pipe((0,yt.b)(xe=>(0,re.z)(function Tl(W,ne){return null!==W&&ne&&ne(new Ds(W)),(0,w.of)(!0)}(xe.route.parent,ie),function Lr(W,ne){return null!==W&&ne&&ne(new Uo(W)),(0,w.of)(!0)}(xe.route,ie),function Qo(W,ne,V){const ie=ne[ne.length-1],qe=ne.slice(0,ne.length-1).reverse().map(Pt=>function io(W){const ne=W.routeConfig?W.routeConfig.canActivateChild:null;return ne&&0!==ne.length?{node:W,guards:ne}:null}(Pt)).filter(Pt=>null!==Pt).map(Pt=>(0,ue.P)(()=>{const mn=Pt.guards.map(hn=>{const on=fo(Pt.node)??V,ji=qo(hn,on);return rn(function Ae(W){return W&&Ua(W.canActivateChild)}(ji)?ji.canActivateChild(ie,W):on.runInContext(()=>ji(ie,W))).pipe((0,Zt.P)())});return(0,w.of)(mn).pipe(Zo())}));return(0,w.of)(qe).pipe(Zo())}(W,xe.path,V),function Dl(W,ne,V){const ie=ne.routeConfig?ne.routeConfig.canActivate:null;if(!ie||0===ie.length)return(0,w.of)(!0);const xe=ie.map(qe=>(0,ue.P)(()=>{const Pt=fo(ne)??V,mn=qo(qe,Pt);return rn(function na(W){return W&&Ua(W.canActivate)}(mn)?mn.canActivate(ne,W):Pt.runInContext(()=>mn(ne,W))).pipe((0,Zt.P)())}));return(0,w.of)(xe).pipe(Zo())}(W,xe.route,V))),(0,Zt.P)(xe=>!0!==xe,!0))}(ie,qe,W,ne):(0,w.of)(mn)),(0,Ge.U)(mn=>({...V,guardsResult:mn})))})}(this.environmentInjector,hn=>this.events.next(hn)),(0,un.b)(hn=>{if(qe.guardsResult=hn.guardsResult,Mt(hn.guardsResult))throw qs(0,hn.guardsResult);const on=new Gs(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects),hn.targetSnapshot,!!hn.guardsResult);this.events.next(on)}),(0,xt.h)(hn=>!!hn.guardsResult||(this.cancelNavigationTransition(hn,"",3),!1)),ro(hn=>{if(hn.guards.canActivateChecks.length)return(0,w.of)(hn).pipe((0,un.b)(on=>{const ji=new Ba(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot);this.events.next(ji)}),(0,Lt.w)(on=>{let ji=!1;return(0,w.of)(on).pipe(function Ga(W,ne){return(0,St.z)(V=>{const{targetSnapshot:ie,guards:{canActivateChecks:xe}}=V;if(!xe.length)return(0,w.of)(V);let qe=0;return(0,S.D)(xe).pipe((0,yt.b)(Pt=>function Wa(W,ne,V,ie){const xe=W.routeConfig,qe=W._resolve;return void 0!==xe?.title&&!is(xe)&&(qe[Ze]=xe.title),function bc(W,ne,V,ie){const xe=function ra(W){return[...Object.keys(W),...Object.getOwnPropertySymbols(W)]}(W);if(0===xe.length)return(0,w.of)({});const qe={};return(0,S.D)(xe).pipe((0,St.z)(Pt=>function Al(W,ne,V,ie){const xe=fo(ne)??ie,qe=qo(W,xe);return rn(qe.resolve?qe.resolve(ne,V):xe.runInContext(()=>qe(ne,V)))}(W[Pt],ne,V,ie).pipe((0,Zt.P)(),(0,un.b)(mn=>{qe[Pt]=mn}))),ti(1),(0,at.h)(qe),(0,Jt.K)(Pt=>Qn(Pt)?oe.E:(0,te._)(Pt)))}(qe,W,ne,ie).pipe((0,Ge.U)(Pt=>(W._resolvedData=Pt,W.data=al(W,V).resolve,xe&&is(xe)&&(W.data[Ze]=xe.title),null)))}(Pt.route,ie,W,ne)),(0,un.b)(()=>qe++),ti(1),(0,St.z)(Pt=>qe===xe.length?(0,w.of)(V):oe.E))})}(V.paramsInheritanceStrategy,this.environmentInjector),(0,un.b)({next:()=>ji=!0,complete:()=>{ji||this.cancelNavigationTransition(on,"",2)}}))}),(0,un.b)(on=>{const ji=new xl(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot);this.events.next(ji)}))}),ro(hn=>{const on=ji=>{const Gr=[];ji.routeConfig?.loadComponent&&!ji.routeConfig._loadedComponent&&Gr.push(this.configLoader.loadComponent(ji.routeConfig).pipe((0,un.b)($i=>{ji.component=$i}),(0,Ge.U)(()=>{})));for(const $i of ji.children)Gr.push(...on($i));return Gr};return(0,Z.a)(on(hn.targetSnapshot.root)).pipe((0,wn.d)(),(0,je.q)(1))}),ro(()=>this.afterPreactivation()),(0,Ge.U)(hn=>{const on=function Ao(W,ne,V){const ie=nr(W,ne._root,V?V._root:void 0);return new Yr(ie,ne)}(V.routeReuseStrategy,hn.targetSnapshot,hn.currentRouterState);return this.currentTransition=qe={...hn,targetRouterState:on},qe}),(0,un.b)(()=>{this.events.next(new kr)}),((W,ne,V,ie)=>(0,Ge.U)(xe=>(new Co(ne,xe.targetRouterState,xe.currentRouterState,V,ie).activate(W),xe)))(this.rootContexts,V.routeReuseStrategy,hn=>this.events.next(hn),this.inputBindingEnabled),(0,je.q)(1),(0,un.b)({next:hn=>{Pt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new yo(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects))),V.titleStrategy?.updateTitle(hn.targetRouterState.snapshot),hn.resolve(!0)},complete:()=>{Pt=!0}}),(0,$e.R)(this.transitionAbortSubject.pipe((0,un.b)(hn=>{throw hn}))),(0,Be.x)(()=>{Pt||mn||this.cancelNavigationTransition(qe,"",1),this.currentNavigation?.id===qe.id&&(this.currentNavigation=null)}),(0,Jt.K)(hn=>{if(mn=!0,wi(hn))this.events.next(new Fr(qe.id,this.urlSerializer.serialize(qe.extractedUrl),hn.message,hn.cancellationCode)),function Qs(W){return wi(W)&&Mt(W.url)}(hn)?this.events.next(new oo(hn.url)):qe.resolve(!1);else{this.events.next(new ho(qe.id,this.urlSerializer.serialize(qe.extractedUrl),hn,qe.targetSnapshot??void 0));try{qe.resolve(V.errorHandler(hn))}catch(on){qe.reject(on)}}return oe.E}))}))}cancelNavigationTransition(V,ie,xe){const qe=new Fr(V.id,this.urlSerializer.serialize(V.extractedUrl),ie,xe);this.events.next(qe),V.resolve(!1)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function Sn(W){return W!==pr}let li=(()=>{class W{buildTitle(V){let ie,xe=V.root;for(;void 0!==xe;)ie=this.getResolvedTitleForRoute(xe)??ie,xe=xe.children.find(qe=>qe.outlet===he);return ie}getResolvedTitleForRoute(V){return V.data[Ze]}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(ur)},providedIn:"root"})}return W})(),ur=(()=>{class W extends li{constructor(V){super(),this.title=V}updateTitle(V){const ie=this.buildTitle(V);void 0!==ie&&this.title.setTitle(ie)}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(tt.Dx))};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})(),hr=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(xi)},providedIn:"root"})}return W})();class ar{shouldDetach(ne){return!1}store(ne,V){}shouldAttach(ne){return!1}retrieve(ne){return null}shouldReuseRoute(ne,V){return ne.routeConfig===V.routeConfig}}let xi=(()=>{class W extends ar{static#e=this.\u0275fac=function(){let V;return function(xe){return(V||(V=e.n5z(W)))(xe||W)}}();static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();const Ar=new e.OlP("",{providedIn:"root",factory:()=>({})});let Nr=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(mr)},providedIn:"root"})}return W})(),mr=(()=>{class W{shouldProcessUrl(V){return!0}extract(V){return V}merge(V,ie){return V}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();var vs=function(W){return W[W.COMPLETE=0]="COMPLETE",W[W.FAILED=1]="FAILED",W[W.REDIRECTING=2]="REDIRECTING",W}(vs||{});function bs(W,ne){W.events.pipe((0,xt.h)(V=>V instanceof yo||V instanceof Fr||V instanceof ho||V instanceof uo),(0,Ge.U)(V=>V instanceof yo||V instanceof uo?vs.COMPLETE:V instanceof Fr&&(0===V.code||1===V.code)?vs.REDIRECTING:vs.FAILED),(0,xt.h)(V=>V!==vs.REDIRECTING),(0,je.q)(1)).subscribe(()=>{ne()})}function $a(W){throw W}function Ui(W,ne,V){return ne.parse("/")}const Ma={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let zr=(()=>{class W{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,e.f3M)(e.c2e),this.isNgZoneEnabled=!1,this._events=new _e.x,this.options=(0,e.f3M)(Ar,{optional:!0})||{},this.pendingTasks=(0,e.f3M)(e.HDt),this.errorHandler=this.options.errorHandler||$a,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Ui,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,e.f3M)(Nr),this.routeReuseStrategy=(0,e.f3M)(hr),this.titleStrategy=(0,e.f3M)(li),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,e.f3M)(K,{optional:!0})?.flat()??[],this.navigationTransitions=(0,e.f3M)(pn),this.urlSerializer=(0,e.f3M)(Ut),this.location=(0,e.f3M)(mt.Ye),this.componentInputBindingEnabled=!!(0,e.f3M)(jo,{optional:!0}),this.eventsSubscription=new Re.w0,this.isNgZoneEnabled=(0,e.f3M)(e.R0b)instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Oe,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dr(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(V=>{this.lastSuccessfulId=V.id,this.currentPageId=this.browserPageId},V=>{this.console.warn(`Unhandled Navigation Error: ${V}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const V=this.navigationTransitions.events.subscribe(ie=>{try{const{currentTransition:xe}=this.navigationTransitions;if(null===xe)return void(yi(ie)&&this._events.next(ie));if(ie instanceof $n)Sn(xe.source)&&(this.browserUrlTree=xe.extractedUrl);else if(ie instanceof uo)this.rawUrlTree=xe.rawUrl;else if(ie instanceof to){if("eager"===this.urlUpdateStrategy){if(!xe.extras.skipLocationChange){const qe=this.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl);this.setBrowserUrl(qe,xe)}this.browserUrlTree=xe.urlAfterRedirects}}else if(ie instanceof kr)this.currentUrlTree=xe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl),this.routerState=xe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(xe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,xe),this.browserUrlTree=xe.urlAfterRedirects);else if(ie instanceof Fr)0!==ie.code&&1!==ie.code&&(this.navigated=!0),(3===ie.code||2===ie.code)&&this.restoreHistory(xe);else if(ie instanceof oo){const qe=this.urlHandlingStrategy.merge(ie.url,xe.currentRawUrl),Pt={skipLocationChange:xe.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Sn(xe.source)};this.scheduleNavigation(qe,pr,null,Pt,{resolve:xe.resolve,reject:xe.reject,promise:xe.promise})}ie instanceof ho&&this.restoreHistory(xe,!0),ie instanceof yo&&(this.navigated=!0),yi(ie)&&this._events.next(ie)}catch(xe){this.navigationTransitions.transitionAbortSubject.next(xe)}});this.eventsSubscription.add(V)}resetRootComponentType(V){this.routerState.root.component=V,this.navigationTransitions.rootComponentType=V}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const V=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),pr,V)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(V=>{const ie="popstate"===V.type?"popstate":"hashchange";"popstate"===ie&&setTimeout(()=>{this.navigateToSyncWithBrowser(V.url,ie,V.state)},0)}))}navigateToSyncWithBrowser(V,ie,xe){const qe={replaceUrl:!0},Pt=xe?.navigationId?xe:null;if(xe){const hn={...xe};delete hn.navigationId,delete hn.\u0275routerPageId,0!==Object.keys(hn).length&&(qe.state=hn)}const mn=this.parseUrl(V);this.scheduleNavigation(mn,ie,Pt,qe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(V){this.config=V.map(Jo),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(V,ie={}){const{relativeTo:xe,queryParams:qe,fragment:Pt,queryParamsHandling:mn,preserveFragment:hn}=ie,on=hn?this.currentUrlTree.fragment:Pt;let Gr,ji=null;switch(mn){case"merge":ji={...this.currentUrlTree.queryParams,...qe};break;case"preserve":ji=this.currentUrlTree.queryParams;break;default:ji=qe||null}null!==ji&&(ji=this.removeEmptyProps(ji));try{Gr=ht(xe?xe.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof V[0]||!V[0].startsWith("/"))&&(V=[]),Gr=this.currentUrlTree.root}return st(Gr,V,ji,on??null)}navigateByUrl(V,ie={skipLocationChange:!1}){const xe=Mt(V)?V:this.parseUrl(V),qe=this.urlHandlingStrategy.merge(xe,this.rawUrlTree);return this.scheduleNavigation(qe,pr,null,ie)}navigate(V,ie={skipLocationChange:!1}){return function Qi(W){for(let ne=0;ne{const qe=V[xe];return null!=qe&&(ie[xe]=qe),ie},{})}scheduleNavigation(V,ie,xe,qe,Pt){if(this.disposed)return Promise.resolve(!1);let mn,hn,on;Pt?(mn=Pt.resolve,hn=Pt.reject,on=Pt.promise):on=new Promise((Gr,$i)=>{mn=Gr,hn=$i});const ji=this.pendingTasks.add();return bs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ji))}),this.navigationTransitions.handleNavigationRequest({source:ie,restoredState:xe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:V,extras:qe,resolve:mn,reject:hn,promise:on,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),on.catch(Gr=>Promise.reject(Gr))}setBrowserUrl(V,ie){const xe=this.urlSerializer.serialize(V);if(this.location.isCurrentPathEqualTo(xe)||ie.extras.replaceUrl){const Pt={...ie.extras.state,...this.generateNgRouterState(ie.id,this.browserPageId)};this.location.replaceState(xe,"",Pt)}else{const qe={...ie.extras.state,...this.generateNgRouterState(ie.id,this.browserPageId+1)};this.location.go(xe,"",qe)}}restoreHistory(V,ie=!1){if("computed"===this.canceledNavigationResolution){const qe=this.currentPageId-this.browserPageId;0!==qe?this.location.historyGo(qe):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===qe&&(this.resetState(V),this.browserUrlTree=V.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(ie&&this.resetState(V),this.resetUrlToCurrentUrlTree())}resetState(V){this.routerState=V.currentRouterState,this.currentUrlTree=V.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,V.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(V,ie){return"computed"===this.canceledNavigationResolution?{navigationId:V,\u0275routerPageId:ie}:{navigationId:V}}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function yi(W){return!(W instanceof kr||W instanceof oo)}let oa=(()=>{class W{constructor(V,ie,xe,qe,Pt,mn){this.router=V,this.route=ie,this.tabIndexAttribute=xe,this.renderer=qe,this.el=Pt,this.locationStrategy=mn,this.href=null,this.commands=null,this.onChanges=new _e.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const hn=Pt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===hn||"area"===hn,this.isAnchorElement?this.subscription=V.events.subscribe(on=>{on instanceof yo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(V){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",V)}ngOnChanges(V){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(V){null!=V?(this.commands=Array.isArray(V)?V:[V],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(V,ie,xe,qe,Pt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==V||ie||xe||qe||Pt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const V=null===this.href?null:(0,e.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",V)}applyAttributeValue(V,ie){const xe=this.renderer,qe=this.el.nativeElement;null!==ie?xe.setAttribute(qe,V,ie):xe.removeAttribute(qe,V)}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:this.preserveFragment})}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.Y36(zr),e.Y36(wr),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(mt.S$))};static#t=this.\u0275dir=e.lG2({type:W,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(ie,xe){1&ie&&e.NdJ("click",function(Pt){return xe.onClick(Pt.button,Pt.ctrlKey,Pt.shiftKey,Pt.altKey,Pt.metaKey)}),2&ie&&e.uIk("target",xe.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",e.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",e.VuI],replaceUrl:["replaceUrl","replaceUrl",e.VuI],routerLink:"routerLink"},standalone:!0,features:[e.Xq5,e.TTD]})}return W})();class Wi{}let ko=(()=>{class W{constructor(V,ie,xe,qe,Pt){this.router=V,this.injector=xe,this.preloadingStrategy=qe,this.loader=Pt}setUpPreloading(){this.subscription=this.router.events.pipe((0,xt.h)(V=>V instanceof yo),(0,yt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(V,ie){const xe=[];for(const qe of ie){qe.providers&&!qe._injector&&(qe._injector=(0,e.MMx)(qe.providers,V,`Route: ${qe.path}`));const Pt=qe._injector??V,mn=qe._loadedInjector??Pt;(qe.loadChildren&&!qe._loadedRoutes&&void 0===qe.canLoad||qe.loadComponent&&!qe._loadedComponent)&&xe.push(this.preloadConfig(Pt,qe)),(qe.children||qe._loadedRoutes)&&xe.push(this.processRoutes(mn,qe.children??qe._loadedRoutes))}return(0,S.D)(xe).pipe((0,me.J)())}preloadConfig(V,ie){return this.preloadingStrategy.preload(ie,()=>{let xe;xe=ie.loadChildren&&void 0===ie.canLoad?this.loader.loadChildren(V,ie):(0,w.of)(null);const qe=xe.pipe((0,St.z)(Pt=>null===Pt?(0,w.of)(void 0):(ie._loadedRoutes=Pt.routes,ie._loadedInjector=Pt.injector,this.processRoutes(Pt.injector??V,Pt.routes))));if(ie.loadComponent&&!ie._loadedComponent){const Pt=this.loader.loadComponent(ie);return(0,S.D)([qe,Pt]).pipe((0,me.J)())}return qe})}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(zr),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Wi),e.LFG(Ue))};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();const rs=new e.OlP("");let ul=(()=>{class W{constructor(V,ie,xe,qe,Pt={}){this.urlSerializer=V,this.transitions=ie,this.viewportScroller=xe,this.zone=qe,this.options=Pt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Pt.scrollPositionRestoration=Pt.scrollPositionRestoration||"disabled",Pt.anchorScrolling=Pt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(V=>{V instanceof $n?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=V.navigationTrigger,this.restoredId=V.restoredState?V.restoredState.navigationId:0):V instanceof yo?(this.lastId=V.id,this.scheduleScrollEvent(V,this.urlSerializer.parse(V.urlAfterRedirects).fragment)):V instanceof uo&&0===V.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(V,this.urlSerializer.parse(V.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(V=>{V instanceof ga&&(V.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(V.position):V.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(V.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(V,ie){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ga(V,"popstate"===this.lastSource?this.store[this.restoredId]:null,ie))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(ie){e.$Z()};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac})}return W})();function Vs(W,ne){return{\u0275kind:W,\u0275providers:ne}}function lc(){const W=(0,e.f3M)(e.zs3);return ne=>{const V=W.get(e.z2F);if(ne!==V.components[0])return;const ie=W.get(zr),xe=W.get(Ei);1===W.get(Ca)&&ie.initialNavigation(),W.get(sa,null,e.XFs.Optional)?.setUpPreloading(),W.get(rs,null,e.XFs.Optional)?.init(),ie.resetRootComponentType(V.componentTypes[0]),xe.closed||(xe.next(),xe.complete(),xe.unsubscribe())}}const Ei=new e.OlP("",{factory:()=>new _e.x}),Ca=new e.OlP("",{providedIn:"root",factory:()=>1}),sa=new e.OlP("");function cc(W){return Vs(0,[{provide:sa,useExisting:ko},{provide:Wi,useExisting:W}])}const Ol=new e.OlP("ROUTER_FORROOT_GUARD"),kn=[mt.Ye,{provide:Ut,useClass:fn},zr,Vo,{provide:wr,useFactory:function Us(W){return W.routerState.root},deps:[zr]},Ue,[]];function Fi(){return new e.PXZ("Router",zr)}let Jl=(()=>{class W{constructor(V){}static forRoot(V,ie){return{ngModule:W,providers:[kn,[],{provide:K,multi:!0,useValue:V},{provide:Ol,useFactory:gt,deps:[[zr,new e.FiY,new e.tp0]]},{provide:Ar,useValue:ie||{}},ie?.useHash?{provide:mt.S$,useClass:mt.Do}:{provide:mt.S$,useClass:mt.b0},{provide:rs,useFactory:()=>{const W=(0,e.f3M)(mt.EM),ne=(0,e.f3M)(e.R0b),V=(0,e.f3M)(Ar),ie=(0,e.f3M)(pn),xe=(0,e.f3M)(Ut);return V.scrollOffset&&W.setOffset(V.scrollOffset),new ul(xe,ie,W,ne,V)}},ie?.preloadingStrategy?cc(ie.preloadingStrategy).\u0275providers:[],{provide:e.PXZ,multi:!0,useFactory:Fi},ie?.initialNavigation?la(ie):[],ie?.bindToComponentInputs?Vs(8,[no,{provide:jo,useExisting:no}]).\u0275providers:[],[{provide:Ra,useFactory:lc},{provide:e.tb,multi:!0,useExisting:Ra}]]}}static forChild(V){return{ngModule:W,providers:[{provide:K,multi:!0,useValue:V}]}}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(Ol,8))};static#t=this.\u0275mod=e.oAB({type:W});static#n=this.\u0275inj=e.cJS({})}return W})();function gt(W){return"guarded"}function la(W){return["disabled"===W.initialNavigation?Vs(3,[{provide:e.ip1,multi:!0,useFactory:()=>{const ne=(0,e.f3M)(zr);return()=>{ne.setUpLocationChangeListener()}}},{provide:Ca,useValue:2}]).\u0275providers:[],"enabledBlocking"===W.initialNavigation?Vs(2,[{provide:Ca,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:ne=>{const V=ne.get(mt.V_,Promise.resolve());return()=>V.then(()=>new Promise(ie=>{const xe=ne.get(zr),qe=ne.get(Ei);bs(xe,()=>{ie(!0)}),ne.get(pn).afterPreactivation=()=>(ie(!0),qe.closed?(0,w.of)(void 0):qe),xe.initialNavigation()}))}}]).\u0275providers:[]]}const Ra=new e.OlP("")},9299:(ft,Ie,C)=>{"use strict";C.d(Ie,{u:()=>Mc,d:()=>dd});var e=C(5861),l=C(5879);function n(Ye,it=new Set){const pt=[Ye],sn=new Set;let Bn=0;for(;pt.length>Bn;){const ri=pt[Bn++];if(!sn.has(ri)&&Z(ri)&&!it.has(ri))if(sn.add(ri),Symbol.iterator in ri)try{for(const Hn of ri)pt.push(Hn)}catch{}else for(const Hn in ri)"defaultValue"!==Hn&&pt.push(ri[Hn])}return sn}function Z(Ye){const it=Object.prototype.toString.call(Ye),pt=typeof Ye;return!("number"===pt||"boolean"===pt||"string"===pt||"symbol"===pt||"function"===pt||"[object Date]"===it||"[object RegExp]"===it||"[object Module]"===it||null==Ye||Ye._watchdogExcluded||Ye instanceof EventTarget||Ye instanceof Event)}Symbol("MainQueueId");class se{constructor(it){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof it.crashNumberLimit?it.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof it.minimumNonErrorTimePeriod?it.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=pt=>{const sn="error"in pt?pt.error:pt.reason;sn instanceof Error&&this._handleError(sn,pt)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(it,pt){this._listeners[it]||(this._listeners[it]=[]),this._listeners[it].push(pt)}off(it,pt){this._listeners[it]=this._listeners[it].filter(sn=>sn!==pt)}_fire(it,...pt){const sn=this._listeners[it]||[];for(const Bn of sn)Bn.apply(this,[null,...pt])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(it,pt){if(this._shouldReactToError(it)){this.crashes.push({message:it.message,stack:it.stack,filename:pt instanceof ErrorEvent?pt.filename:void 0,lineno:pt instanceof ErrorEvent?pt.lineno:void 0,colno:pt instanceof ErrorEvent?pt.colno:void 0,date:this._now()});const sn=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:it,causesRestart:sn}),sn?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(it){return it.is&&it.is("CKEditorError")&&null!=it.context&&"ready"===this.state&&this._isErrorComingFromThisItem(it)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}const oe=function te(Ye){var it=typeof Ye;return null!=Ye&&("object"==it||"function"==it)},_e="object"==typeof global&&global&&global.Object===Object&&global;var Re="object"==typeof self&&self&&self.Object===Object&&self;const Ge=_e||Re||Function("return this")(),je=function(){return Ge.Date.now()};var Tt=/\s/;var Zt=/^\s+/;const un=function yt(Ye){return Ye&&Ye.slice(0,function xt(Ye){for(var it=Ye.length;it--&&Tt.test(Ye.charAt(it)););return it}(Ye)+1).replace(Zt,"")},tn=Ge.Symbol;var wn=Object.prototype,Ln=wn.hasOwnProperty,Yn=wn.toString,ti=tn?tn.toStringTag:void 0;var at=Object.prototype.toString;var tt=tn?tn.toStringTag:void 0;const Ze=function he(Ye){return null==Ye?void 0===Ye?"[object Undefined]":"[object Null]":tt&&tt in Object(Ye)?function gi(Ye){var it=Ln.call(Ye,ti),pt=Ye[ti];try{Ye[ti]=void 0;var sn=!0}catch{}var Bn=Yn.call(Ye);return sn&&(it?Ye[ti]=pt:delete Ye[ti]),Bn}(Ye):function Be(Ye){return at.call(Ye)}(Ye)},bt=function rt(Ye){return null!=Ye&&"object"==typeof Ye};var Ot=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,vn=/^0o[0-7]+$/i,ei=parseInt;const Ve=function Wn(Ye){if("number"==typeof Ye)return Ye;if(function Qt(Ye){return"symbol"==typeof Ye||bt(Ye)&&"[object Symbol]"==Ze(Ye)}(Ye))return NaN;if(oe(Ye)){var it="function"==typeof Ye.valueOf?Ye.valueOf():Ye;Ye=oe(it)?it+"":it}if("string"!=typeof Ye)return 0===Ye?Ye:+Ye;Ye=un(Ye);var pt=rn.test(Ye);return pt||vn.test(Ye)?ei(Ye.slice(2),pt?2:8):Ot.test(Ye)?NaN:+Ye};var Ct=Math.max,Ce=Math.min;const Se=function ot(Ye,it,pt){var sn=!0,Bn=!0;if("function"!=typeof Ye)throw new TypeError("Expected a function");return oe(pt)&&(sn="leading"in pt?!!pt.leading:sn,Bn="trailing"in pt?!!pt.trailing:Bn),function J(Ye,it,pt){var sn,Bn,ri,Hn,hi,Ci,Hi=0,Wr=!1,Ns=!1,Na=!0;if("function"!=typeof Ye)throw new TypeError("Expected a function");function Fl(cs){var gc=sn,vl=Bn;return sn=Bn=void 0,Hi=cs,Hn=Ye.apply(vl,gc)}function Da(cs){var gc=cs-Ci;return void 0===Ci||gc>=it||gc<0||Ns&&cs-Hi>=ri}function gl(){var cs=je();if(Da(cs))return Kc(cs);hi=setTimeout(gl,function $c(cs){var Yl=it-(cs-Ci);return Ns?Ce(Yl,ri-(cs-Hi)):Yl}(cs))}function Kc(cs){return hi=void 0,Na&&sn?Fl(cs):(sn=Bn=void 0,Hn)}function Ic(){var cs=je(),gc=Da(cs);if(sn=arguments,Bn=this,Ci=cs,gc){if(void 0===hi)return function ec(cs){return Hi=cs,hi=setTimeout(gl,it),Wr?Fl(cs):Hn}(Ci);if(Ns)return clearTimeout(hi),hi=setTimeout(gl,it),Fl(Ci)}return void 0===hi&&(hi=setTimeout(gl,it)),Hn}return it=Ve(it)||0,oe(pt)&&(Wr=!!pt.leading,ri=(Ns="maxWait"in pt)?Ct(Ve(pt.maxWait)||0,it):ri,Na="trailing"in pt?!!pt.trailing:Na),Ic.cancel=function Qd(){void 0!==hi&&clearTimeout(hi),Hi=0,sn=Ci=Bn=hi=void 0},Ic.flush=function Cc(){return void 0===hi?Hn:Kc(je())},Ic}(Ye,it,{leading:sn,maxWait:it,trailing:Bn})},lt=function Ft(Ye,it){return function(pt){return Ye(it(pt))}},Ut=lt(Object.getPrototypeOf,Object);var jn=Function.prototype.toString,ai=Object.prototype.hasOwnProperty,di=jn.call(Object);const _t=function qt(Ye){return bt(Ye)&&1===Ye.nodeType&&!function oi(Ye){if(!bt(Ye)||"[object Object]"!=Ze(Ye))return!1;var it=Ut(Ye);if(null===it)return!0;var pt=ai.call(it,"constructor")&&it.constructor;return"function"==typeof pt&&pt instanceof pt&&jn.call(pt)==di}(Ye)},Pe=function ve(Ye,it){return Ye===it||Ye!=Ye&&it!=it},We=function ut(Ye,it){for(var pt=Ye.length;pt--;)if(Pe(Ye[pt][0],it))return pt;return-1};var be=Array.prototype.splice;function Vt(Ye){var it=-1,pt=null==Ye?0:Ye.length;for(this.clear();++it-1},Vt.prototype.set=function fe(Ye,it){var pt=this.__data__,sn=We(pt,Ye);return sn<0?(++this.size,pt.push([Ye,it])):pt[sn][1]=it,this};const ht=Vt,co=function Bi(Ye){if(!oe(Ye))return!1;var it=Ze(Ye);return"[object Function]"==it||"[object GeneratorFunction]"==it||"[object AsyncFunction]"==it||"[object Proxy]"==it};var Ye,Ji=Ge["__core-js_shared__"],_i=(Ye=/[^.]+$/.exec(Ji&&Ji.keys&&Ji.keys.IE_PROTO||""))?"Symbol(src)_1."+Ye:"";var $n=Function.prototype.toString;const Fr=function yo(Ye){if(null!=Ye){try{return $n.call(Ye)}catch{}try{return Ye+""}catch{}}return""};var ho=/^\[object .+?Constructor\]$/,xl=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ws=function So(Ye){return!(!oe(Ye)||function bo(Ye){return!!_i&&_i in Ye}(Ye))&&(co(Ye)?xl:ho).test(Fr(Ye))},Jr=function Uo(Ye,it){var pt=function Ds(Ye,it){return Ye?.[it]}(Ye,it);return Ws(pt)?pt:void 0},kr=Jr(Ge,"Map"),fs=Jr(Object,"create");var Li=Object.prototype.hasOwnProperty;var wr=Object.prototype.hasOwnProperty;function er(Ye){var it=-1,pt=null==Ye?0:Ye.length;for(this.clear();++it-1&&Ye%1==0&&Ye-1&&Ye%1==0&&Ye<=9007199254740991};var Tr={};Tr["[object Float32Array]"]=Tr["[object Float64Array]"]=Tr["[object Int8Array]"]=Tr["[object Int16Array]"]=Tr["[object Int32Array]"]=Tr["[object Uint8Array]"]=Tr["[object Uint8ClampedArray]"]=Tr["[object Uint16Array]"]=Tr["[object Uint32Array]"]=!0,Tr["[object Arguments]"]=Tr["[object Array]"]=Tr["[object ArrayBuffer]"]=Tr["[object Boolean]"]=Tr["[object DataView]"]=Tr["[object Date]"]=Tr["[object Error]"]=Tr["[object Function]"]=Tr["[object Map]"]=Tr["[object Number]"]=Tr["[object Object]"]=Tr["[object RegExp]"]=Tr["[object Set]"]=Tr["[object String]"]=Tr["[object WeakMap]"]=!1;const xa=function Rs(Ye){return function(it){return Ye(it)}};var Ga="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wa=Ga&&"object"==typeof module&&module&&!module.nodeType&&module,ra=Wa&&Wa.exports===Ga&&_e.process;const is=function(){try{return Wa&&Wa.require&&Wa.require("util").types||ra&&ra.binding&&ra.binding("util")}catch{}}();var ro=is&&is.isTypedArray;const Ue=ro?xa(ro):function Lc(Ye){return bt(Ye)&&El(Ye.length)&&!!Tr[Ze(Ye)]};var Ne=Object.prototype.hasOwnProperty;const pn=function kt(Ye,it){var pt=Ae(Ye),sn=!pt&&ta(Ye),Bn=!pt&&!sn&&ia(Ye),ri=!pt&&!sn&&!Bn&&Ue(Ye),Hn=pt||sn||Bn||ri,hi=Hn?function po(Ye,it){for(var pt=-1,sn=Array(Ye);++ptit.create(sn,Bn)),this._destructor=sn=>sn.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(it){this._creator=it}setDestructor(it){this._destructor=it}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(it=>{console.error("An error happened during the editor destroying.",it)}).then(()=>{const it={},pt=[],sn=this._config.rootsAttributes||{},Bn={};for(const[Hn,hi]of Object.entries(this._data.roots))hi.isLoaded?(it[Hn]="",Bn[Hn]=sn[Hn]||{}):pt.push(Hn);const ri={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:pt,rootsAttributes:Bn,_watchdogInitialData:this._data};return delete ri.initialData,ri.extraPlugins.push(qd),this._initUsingData?this.create(it,ri,ri.context):_t(this._elementOrData)?this.create(this._elementOrData,ri,ri.context):this.create(this._editables,ri,ri.context)}).then(()=>{this._fire("restart")})}create(it=this._elementOrData,pt=this._config,sn){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=it,this._initUsingData="string"==typeof it||Object.keys(it).length>0&&"string"==typeof Object.values(it)[0],this._config=this._cloneEditorConfiguration(pt)||{},this._config.context=sn,this._creator(it,this._config))).then(Bn=>{this._editor=Bn,Bn.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=Bn.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const it=this._editor;return this._editor=null,it.model.document.off("change:data",this._throttledSave),this._destructor(it)})}_save(){const it=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=it}catch(pt){console.error(pt,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(it){this._excludedProps=it}_getData(){const it=this._editor,pt=it.model.document.roots.filter(hi=>hi.isAttached()&&"$graveyard"!=hi.rootName),{plugins:sn}=it,Bn=sn.has("CommentsRepository")&&sn.get("CommentsRepository"),ri=sn.has("TrackChanges")&&sn.get("TrackChanges"),Hn={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};pt.forEach(hi=>{Hn.roots[hi.rootName]={content:JSON.stringify(Array.from(hi.getChildren())),attributes:JSON.stringify(Array.from(hi.getAttributes())),isLoaded:hi._isLoaded}});for(const hi of it.model.markers)hi._affectsData&&(Hn.markers[hi.name]={rangeJSON:hi.getRange().toJSON(),usingOperation:hi._managedUsingOperations,affectsData:hi._affectsData});return Bn&&(Hn.commentThreads=JSON.stringify(Bn.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),ri&&(Hn.suggestions=JSON.stringify(ri.getSuggestions({toJSON:!0,skipNotAttached:!0}))),Hn}_getEditables(){const it={};for(const pt of this.editor.model.document.getRootNames()){const sn=this.editor.ui.getEditableElement(pt);sn&&(it[pt]=sn)}return it}_isErrorComingFromThisItem(it){return function ee(Ye,it,pt=new Set){if(Ye===it&&function ue(Ye){return"object"==typeof Ye&&null!==Ye}(Ye))return!0;const sn=n(Ye,pt),Bn=n(it,pt);for(const ri of sn)if(Bn.has(ri))return!0;return!1}(this._editor,it.context,this._excludedProps)}_cloneEditorConfiguration(it){return function Jd(Ye,it){return Go(Ye,5,it="function"==typeof it?it:void 0)}(it,(pt,sn)=>{if(_t(pt)||"context"===sn)return pt})}}class qd{constructor(it){this.editor=it,this._data=it.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",it=>{it.stop(),this.editor.model.enqueueChange({isUndoable:!1},pt=>{this._restoreCollaborationData(),this._restoreEditorData(pt)}),this.editor.data.fire("ready")},{priority:999})}_createNode(it,pt){if("name"in pt){const sn=it.createElement(pt.name,pt.attributes);if(pt.children)for(const Bn of pt.children)sn._appendChild(this._createNode(it,Bn));return sn}return it.createText(pt.data,pt.attributes)}_restoreEditorData(it){const pt=this.editor;Object.entries(this._data.roots).forEach(([sn,{content:Bn,attributes:ri}])=>{const Hn=JSON.parse(Bn),hi=JSON.parse(ri),Ci=pt.model.document.getRoot(sn);for(const[Hi,Wr]of hi)it.setAttribute(Hi,Wr,Ci);for(const Hi of Hn){const Wr=this._createNode(it,Hi);it.insert(Wr,Ci,"end")}}),Object.entries(this._data.markers).forEach(([sn,Bn])=>{const{document:ri}=pt.model,{rangeJSON:{start:Hn,end:hi},...Ci}=Bn,Hi=ri.getRoot(Hn.root),Wr=it.createPositionFromPath(Hi,Hn.path,Hn.stickiness),Ns=it.createPositionFromPath(Hi,hi.path,hi.stickiness),Na=it.createRange(Wr,Ns);it.addMarker(sn,{range:Na,...Ci})})}_restoreCollaborationData(){const it=JSON.parse(this._data.commentThreads),pt=JSON.parse(this._data.suggestions);it.forEach(sn=>{const Bn=this.editor.config.get("collaboration.channelId"),ri=this.editor.plugins.get("CommentsRepository");ri.hasCommentThread(sn.threadId)&&ri.getCommentThread(sn.threadId).remove(),ri.addCommentThread({channelId:Bn,...sn})}),pt.forEach(sn=>{const Bn=this.editor.plugins.get("TrackChangesEditing");Bn.hasSuggestion(sn.id)?Bn.getSuggestion(sn.id).attributes=sn.attributes:Bn.addSuggestionData(sn)})}}var ml=C(1374),Oc=C(6223),Au=C(6814);function iu(Ye,it){}const pi=new Array(256).fill(0).map((Ye,it)=>("0"+it.toString(16)).slice(-2)),Xr="Lock from Angular integration (@ckeditor/ckeditor5-angular)";let Mc=(()=>{class Ye{constructor(pt,sn){this.config={},this.data="",this.tagName="div",this.disableTwoWayDataBinding=!1,this.ready=new l.vpe,this.change=new l.vpe,this.blur=new l.vpe,this.focus=new l.vpe,this.error=new l.vpe,this.initiallyDisabled=!1,this.isEditorSettingData=!1,this.id=function Wc(){const Ye=4294967296*Math.random()>>>0,it=4294967296*Math.random()>>>0,pt=4294967296*Math.random()>>>0,sn=4294967296*Math.random()>>>0;return"e"+pi[Ye>>0&255]+pi[Ye>>8&255]+pi[Ye>>16&255]+pi[Ye>>24&255]+pi[it>>0&255]+pi[it>>8&255]+pi[it>>16&255]+pi[it>>24&255]+pi[pt>>0&255]+pi[pt>>8&255]+pi[pt>>16&255]+pi[pt>>24&255]+pi[sn>>0&255]+pi[sn>>8&255]+pi[sn>>16&255]+pi[sn>>24&255]}(),this.ngZone=sn,this.elementRef=pt;const{CKEDITOR_VERSION:Bn}=window;if(Bn){const[ri]=Bn.split(".").map(Number);ri<37&&console.warn("The component requires using CKEditor 5 in version 37 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')}set disabled(pt){this.setDisabledState(pt)}get disabled(){return this.editorInstance?this.editorInstance.isReadOnly:this.initiallyDisabled}get editorInstance(){let pt=this.editorWatchdog;return this.watchdog&&(pt=this.watchdog._watchdogs.get(this.id)),pt?pt.editor:null}getId(){return this.id}ngOnChanges(pt){Object.prototype.hasOwnProperty.call(pt,"data")&&pt.data&&!pt.data.isFirstChange()&&this.writeValue(pt.data.currentValue)}ngAfterViewInit(){this.attachToWatchdog()}ngOnDestroy(){var pt=this;return(0,e.Z)(function*(){pt.watchdog?yield pt.watchdog.remove(pt.id):pt.editorWatchdog&&pt.editorWatchdog.editor&&(yield pt.editorWatchdog.destroy(),pt.editorWatchdog=void 0)})()}writeValue(pt){null===pt&&(pt=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.data.set(pt),this.isEditorSettingData=!1):(this.data=pt,this.ready.pipe((0,ml.P)()).subscribe(sn=>{sn.data.set(this.data)}))}registerOnChange(pt){this.cvaOnChange=pt}registerOnTouched(pt){this.cvaOnTouched=pt}setDisabledState(pt){this.editorInstance&&(pt?this.editorInstance.enableReadOnlyMode(Xr):this.editorInstance.disableReadOnlyMode(Xr)),this.initiallyDisabled=pt}attachToWatchdog(){var pt=this;const sn=(Ci,Hi)=>this.ngZone.runOutsideAngular((0,e.Z)(function*(){pt.elementRef.nativeElement.appendChild(Ci);const Wr=yield pt.editor.create(Ci,Hi);return pt.initiallyDisabled&&Wr.enableReadOnlyMode(Xr),pt.ngZone.run(()=>{pt.ready.emit(Wr)}),pt.setUpEditorEvents(Wr),Wr})),Bn=function(){var Ci=(0,e.Z)(function*(Hi){yield Hi.destroy(),pt.elementRef.nativeElement.removeChild(pt.editorElement)});return function(Wr){return Ci.apply(this,arguments)}}(),ri=Ci=>{(function No(Ye){return Ye.observed||Ye.observers.length>0})(this.error)&&this.ngZone.run(()=>this.error.emit(Ci))},Hn=document.createElement(this.tagName),hi=this.getConfig();if(this.editorElement=Hn,this.watchdog)this.watchdog.add({id:this.id,type:"editor",creator:sn,destructor:Bn,sourceElementOrData:Hn,config:hi}).catch(Ci=>{ri(Ci)}),this.watchdog.on("itemError",(Ci,{itemId:Hi})=>{Hi===this.id&&ri()});else{const Ci=new Gc(this.editor,this.editorWatchdogConfig);Ci.setCreator(sn),Ci.setDestructor(Bn),Ci.on("error",ri),this.editorWatchdog=Ci,this.ngZone.runOutsideAngular(()=>{Ci.create(Hn,hi).catch(Hi=>{ri(Hi)})})}}getConfig(){if(this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");const pt={...this.config},sn=this.config.initialData||this.data;return sn&&(pt.initialData=sn),pt}setUpEditorEvents(pt){const Bn=pt.editing.view.document;pt.model.document.on("change:data",ri=>{this.ngZone.run(()=>{if(!this.disableTwoWayDataBinding){if(this.cvaOnChange&&!this.isEditorSettingData){const Hn=pt.data.get();this.cvaOnChange(Hn)}this.change.emit({event:ri,editor:pt})}})}),Bn.on("focus",ri=>{this.ngZone.run(()=>{this.focus.emit({event:ri,editor:pt})})}),Bn.on("blur",ri=>{this.ngZone.run(()=>{this.cvaOnTouched&&this.cvaOnTouched(),this.blur.emit({event:ri,editor:pt})})})}}return Ye.\u0275fac=function(pt){return new(pt||Ye)(l.Y36(l.SBq),l.Y36(l.R0b))},Ye.\u0275cmp=l.Xpm({type:Ye,selectors:[["ckeditor"]],inputs:{editor:"editor",config:"config",data:"data",tagName:"tagName",watchdog:"watchdog",editorWatchdogConfig:"editorWatchdogConfig",disableTwoWayDataBinding:"disableTwoWayDataBinding",disabled:"disabled"},outputs:{ready:"ready",change:"change",blur:"blur",focus:"focus",error:"error"},features:[l._Bn([{provide:Oc.JU,useExisting:(0,l.Gpc)(()=>Ye),multi:!0}]),l.TTD],decls:1,vars:0,template:function(pt,sn){1&pt&&l.YNc(0,iu,0,0,"ng-template")},encapsulation:2}),Ye})(),dd=(()=>{class Ye{}return Ye.\u0275fac=function(pt){return new(pt||Ye)},Ye.\u0275mod=l.oAB({type:Ye}),Ye.\u0275inj=l.cJS({imports:[[Oc.u5,Au.ez]]}),Ye})()},4807:(ft,Ie,C)=>{"use strict";C.d(Ie,{A0:()=>Pn,ir:()=>ot,w9:()=>Te});var e=C(5879),l=C(6223),D=C(9773),I=C(9028),S=C(7921),w=C(9397),n=C(3620),Z=C(2181),ee=C(7398),re=C(927),ue=C(6410),se=C(8645),te=C(2438),oe=C(3019),ce=C(6814);const _e=["content"],Re=["scroll"],mt=["padding"],Ge=function(wt){return{searchTerm:wt}};function Lt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",6),e.GkF(1,7),e.qZA()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",fe.headerTemplate)("ngTemplateOutletContext",e.VKq(2,Ge,fe.filterValue))}}function je(wt,Yt){if(1&wt&&(e.TgZ(0,"div",8),e.GkF(1,7),e.qZA()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",fe.footerTemplate)("ngTemplateOutletContext",e.VKq(2,Ge,fe.filterValue))}}const Tt=["*"],xt=["searchInput"],St=["clearButton"];function Zt(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"span",15),e.NdJ("click",function(){e.CHM(fe);const Vt=e.oxw().$implicit,ht=e.oxw(2);return e.KtG(ht.unselect(Vt))}),e._uU(1,"\xd7"),e.qZA(),e._UZ(2,"span",16)}if(2&wt){const fe=e.oxw().$implicit,Mt=e.oxw(2);e.xp6(2),e.Q6J("ngItemLabel",fe.label)("escape",Mt.escapeHTML)}}function yt(wt,Yt){}const un=function(wt,Yt,fe){return{item:wt,clear:Yt,label:fe}};function Jt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",12),e.YNc(1,Zt,3,2,"ng-template",null,13,e.W1O),e.YNc(3,yt,0,0,"ng-template",14),e.qZA()),2&wt){const fe=Yt.$implicit,Mt=e.MAs(2),Vt=e.oxw(2);e.ekj("ng-value-disabled",fe.disabled),e.xp6(3),e.Q6J("ngTemplateOutlet",Vt.labelTemplate||Mt)("ngTemplateOutletContext",e.kEZ(4,un,fe.value,Vt.clearItem,fe.label))}}function tn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Jt,4,8,"div",11),e.BQk()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngForOf",fe.selectedItems)("ngForTrackBy",fe.trackByOption)}}function wn(wt,Yt){}const Ln=function(wt,Yt){return{items:wt,clear:Yt}};function Yn(wt,Yt){if(1&wt&&e.YNc(0,wn,0,0,"ng-template",14),2&wt){const fe=e.oxw();e.Q6J("ngTemplateOutlet",fe.multiLabelTemplate)("ngTemplateOutletContext",e.WLB(2,Ln,fe.selectedValues,fe.clearItem))}}function ti(wt,Yt){1&wt&&e._UZ(0,"div",19)}function gi(wt,Yt){}function Rn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,ti,1,0,"ng-template",null,17,e.W1O),e.YNc(3,gi,0,0,"ng-template",18),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw();e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.loadingSpinnerTemplate||fe)}}function dt(wt,Yt){if(1&wt&&(e.TgZ(0,"span",20,21)(2,"span",22),e._uU(3,"\xd7"),e.qZA()()),2&wt){const fe=e.oxw();e.s9C("title",fe.clearAllText)}}function at(wt,Yt){if(1&wt&&e._UZ(0,"span",28),2&wt){const fe=e.oxw().$implicit,Mt=e.oxw(2);e.Q6J("ngItemLabel",fe.label)("escape",Mt.escapeHTML)}}function Be(wt,Yt){}const Ee=function(wt,Yt,fe,Mt){return{item:wt,item$:Yt,index:fe,searchTerm:Mt}};function $e(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"div",26),e.NdJ("click",function(){const ht=e.CHM(fe).$implicit,st=e.oxw(2);return e.KtG(st.toggleItem(ht))})("mouseover",function(){const ht=e.CHM(fe).$implicit,st=e.oxw(2);return e.KtG(st.onItemHover(ht))}),e.YNc(1,at,1,2,"ng-template",null,27,e.W1O),e.YNc(3,Be,0,0,"ng-template",14),e.qZA()}if(2&wt){const fe=Yt.$implicit,Mt=e.MAs(2),Vt=e.oxw(2);e.ekj("ng-option-disabled",fe.disabled)("ng-option-selected",fe.selected)("ng-optgroup",fe.children)("ng-option",!fe.children)("ng-option-child",!!fe.parent)("ng-option-marked",fe===Vt.itemsList.markedItem),e.uIk("role",fe.children?"group":"option")("aria-selected",fe.selected)("id",null==fe?null:fe.htmlId),e.xp6(3),e.Q6J("ngTemplateOutlet",fe.children?Vt.optgroupTemplate||Mt:Vt.optionTemplate||Mt)("ngTemplateOutletContext",e.l5B(17,Ee,fe.value,fe,fe.index,Vt.searchTerm))}}function me(wt,Yt){if(1&wt&&(e.TgZ(0,"span")(1,"span",31),e._uU(2),e.qZA(),e._uU(3),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(2),e.Oqu(fe.addTagText),e.xp6(1),e.hij('"',fe.searchTerm,'"')}}function tt(wt,Yt){}function he(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"div",29),e.NdJ("mouseover",function(){e.CHM(fe);const Vt=e.oxw(2);return e.KtG(Vt.itemsList.unmarkItem())})("click",function(){e.CHM(fe);const Vt=e.oxw(2);return e.KtG(Vt.selectTag())}),e.YNc(1,me,4,2,"ng-template",null,30,e.W1O),e.YNc(3,tt,0,0,"ng-template",14),e.qZA()}if(2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.ekj("ng-option-marked",!Mt.itemsList.markedItem),e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.tagTemplate||fe)("ngTemplateOutletContext",e.VKq(4,Ge,Mt.searchTerm))}}function Ze(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.notFoundText)}}function rt(wt,Yt){}function bt(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Ze,2,1,"ng-template",null,32,e.W1O),e.YNc(3,rt,0,0,"ng-template",14),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.notFoundTemplate||fe)("ngTemplateOutletContext",e.VKq(2,Ge,Mt.searchTerm))}}function Nt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.typeToSearchText)}}function Qt(wt,Yt){}function nn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Nt,2,1,"ng-template",null,34,e.W1O),e.YNc(3,Qt,0,0,"ng-template",18),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.typeToSearchTemplate||fe)}}function Dn(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.loadingText)}}function Ot(wt,Yt){}function rn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Dn,2,1,"ng-template",null,35,e.W1O),e.YNc(3,Ot,0,0,"ng-template",14),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.loadingTextTemplate||fe)("ngTemplateOutletContext",e.VKq(2,Ge,Mt.searchTerm))}}function vn(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"ng-dropdown-panel",23),e.NdJ("update",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.viewPortItems=Vt)})("scroll",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.scroll.emit(Vt))})("scrollToEnd",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.scrollToEnd.emit(Vt))})("outsideClick",function(){e.CHM(fe);const Vt=e.oxw();return e.KtG(Vt.close())}),e.ynx(1),e.YNc(2,$e,4,22,"div",24),e.YNc(3,he,4,6,"div",25),e.BQk(),e.YNc(4,bt,4,4,"ng-container",3),e.YNc(5,nn,4,1,"ng-container",3),e.YNc(6,rn,4,4,"ng-container",3),e.qZA()}if(2&wt){const fe=e.oxw();e.ekj("ng-select-multiple",fe.multiple),e.Q6J("virtualScroll",fe.virtualScroll)("bufferAmount",fe.bufferAmount)("appendTo",fe.appendTo)("position",fe.dropdownPosition)("headerTemplate",fe.headerTemplate)("footerTemplate",fe.footerTemplate)("filterValue",fe.searchTerm)("items",fe.itemsList.filteredItems)("markedItem",fe.itemsList.markedItem)("ngClass",fe.appendTo?fe.classes:null)("id",fe.dropdownId),e.xp6(2),e.Q6J("ngForOf",fe.viewPortItems)("ngForTrackBy",fe.trackByOption),e.xp6(1),e.Q6J("ngIf",fe.showAddTag),e.xp6(1),e.Q6J("ngIf",fe.showNoItemsFound()),e.xp6(1),e.Q6J("ngIf",fe.showTypeToSearch()),e.xp6(1),e.Q6J("ngIf",fe.loading&&0===fe.itemsList.filteredItems.length)}}const ei=/[&<>"']/g,Wn=RegExp(ei.source),Ve={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ct(wt){return null!=wt}function Ce(wt){return"object"==typeof wt&&Ct(wt)}function ae(wt){return wt instanceof Function}let Oe=(()=>{class wt{constructor(fe){this.element=fe,this.escape=!0}ngOnChanges(fe){this.element.nativeElement.innerHTML=this.escape?function ct(wt){return wt&&Wn.test(wt)?wt.replace(ei,Yt=>Ve[Yt]):wt}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[e.TTD]})}return wt})(),ot=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-option-tmp",""]]})}return wt})(),Se=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-optgroup-tmp",""]]})}return wt})(),Ft=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-label-tmp",""]]})}return wt})(),lt=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-multi-label-tmp",""]]})}return wt})(),Bt=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-header-tmp",""]]})}return wt})(),Ut=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-footer-tmp",""]]})}return wt})(),fn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-notfound-tmp",""]]})}return wt})(),gn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-typetosearch-tmp",""]]})}return wt})(),An=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-loadingtext-tmp",""]]})}return wt})(),jn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-tag-tmp",""]]})}return wt})(),ai=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-loadingspinner-tmp",""]]})}return wt})();function di(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const oi={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function Jn(wt){return wt.replace(/[^\u0000-\u007E]/g,fe=>oi[fe]||fe)}class qt{constructor(Yt,fe){this._ngSelect=Yt,this._selectionModel=fe,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let Yt=this.selectedItems.length-1;for(;Yt>=0;Yt--){const fe=this.selectedItems[Yt];if(!fe.disabled)return fe}return null}setItems(Yt){this._items=Yt.map((fe,Mt)=>this.mapItem(fe,Mt)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(Yt){if(Yt.selected||this.maxItemsSelected)return;const fe=this._ngSelect.multiple;fe||this.clearSelected(),this._selectionModel.select(Yt,fe,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(Yt)}unselect(Yt){Yt.selected&&(this._selectionModel.unselect(Yt,this._ngSelect.multiple),this._ngSelect.hideSelected&&Ct(Yt.index)&&this._ngSelect.multiple&&this._showSelected(Yt))}findItem(Yt){let fe;return fe=this._ngSelect.compareWith?Mt=>this._ngSelect.compareWith(Mt.value,Yt):this._ngSelect.bindValue?Mt=>!Mt.children&&this.resolveNested(Mt.value,this._ngSelect.bindValue)===Yt:Mt=>Mt.value===Yt||!Mt.children&&Mt.label&&Mt.label===this.resolveNested(Yt,this._ngSelect.bindLabel),this._items.find(Mt=>fe(Mt))}addItem(Yt){const fe=this.mapItem(Yt,this._items.length);return this._items.push(fe),this._filteredItems.push(fe),fe}clearSelected(Yt=!1){this._selectionModel.clear(Yt),this._items.forEach(fe=>{fe.selected=Yt&&fe.selected&&fe.disabled,fe.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(Yt){return Yt=Jn(Yt).toLocaleLowerCase(),this.filteredItems.find(fe=>Jn(fe.label).toLocaleLowerCase().substr(0,Yt.length)===Yt)}filter(Yt){if(!Yt)return void this.resetFilteredItems();this._filteredItems=[],Yt=this._ngSelect.searchFn?Yt:Jn(Yt).toLocaleLowerCase();const fe=this._ngSelect.searchFn||this._defaultSearchFn,Mt=this._ngSelect.hideSelected;for(const Vt of Array.from(this._groups.keys())){const ht=[];for(const st of this._groups.get(Vt))Mt&&(st.parent&&st.parent.selected||st.selected)||fe(Yt,this._ngSelect.searchFn?st.value:st)&&ht.push(st);if(ht.length>0){const[st]=ht.slice(-1);if(st.parent){const It=this._items.find(cn=>cn===st.parent);this._filteredItems.push(It)}this._filteredItems.push(...ht)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(Yt=>!Yt.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(Yt){this._markedIndex=this._filteredItems.indexOf(Yt)}markSelectedOrDefault(Yt){if(0===this._filteredItems.length)return;const fe=this._getLastMarkedIndex();this._markedIndex=fe>-1?fe:Yt?this.filteredItems.findIndex(Mt=>!Mt.disabled):-1}resolveNested(Yt,fe){if(!Ce(Yt))return Yt;if(-1===fe.indexOf("."))return Yt[fe];{const Mt=fe.split(".");let Vt=Yt;for(let ht=0,st=Mt.length;ht-1===this.selectedItems.indexOf(fe)))}_showSelected(Yt){if(this._filteredItems.push(Yt),Yt.parent){const fe=Yt.parent;this._filteredItems.find(Vt=>Vt===fe)||this._filteredItems.push(fe)}else if(Yt.children)for(const fe of Yt.children)fe.selected=!1,this._filteredItems.push(fe);this._filteredItems=[...this._filteredItems.sort((fe,Mt)=>fe.index-Mt.index)]}_hideSelected(Yt){this._filteredItems=this._filteredItems.filter(fe=>fe!==Yt),Yt.parent?Yt.parent.children.every(Mt=>Mt.selected)&&(this._filteredItems=this._filteredItems.filter(Mt=>Mt!==Yt.parent)):Yt.children&&(this._filteredItems=this.filteredItems.filter(fe=>fe.parent!==Yt))}_defaultSearchFn(Yt,fe){return Jn(fe.label).toLocaleLowerCase().indexOf(Yt)>-1}_getNextItemIndex(Yt){return Yt>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(Yt){0===this._filteredItems.length||this._filteredItems.every(fe=>fe.disabled)||(this._markedIndex=this._getNextItemIndex(Yt),this.markedItem.disabled&&this._stepToItem(Yt))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const Yt=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&Yt<0?-1:Math.max(this.markedIndex,Yt)}_groupBy(Yt,fe){const Mt=new Map;if(0===Yt.length)return Mt;if(Array.isArray(Yt[0].value[fe])){for(const st of Yt){const It=(st.value[fe]||[]).map((cn,_n)=>this.mapItem(cn,_n));Mt.set(st,It)}return Mt}const Vt=ae(this._ngSelect.groupBy),ht=st=>{const It=Vt?fe(st.value):st.value[fe];return Ct(It)?It:void 0};for(const st of Yt){const It=ht(st),cn=Mt.get(It);cn?cn.push(st):Mt.set(It,[st])}return Mt}_flatten(Yt){const fe=ae(this._ngSelect.groupBy),Mt=[];for(const Vt of Array.from(Yt.keys())){let ht=Mt.length;if(void 0===Vt){const On=Yt.get(void 0)||[];Mt.push(...On.map(ni=>(ni.index=ht++,ni)));continue}const st=Ce(Vt),It={label:st?"":String(Vt),children:void 0,parent:null,index:ht++,disabled:!this._ngSelect.selectableGroup,htmlId:di()},cn=fe?this._ngSelect.bindLabel:this._ngSelect.groupBy,_n=this._ngSelect.groupValue||(()=>st?Vt.value:{[cn]:Vt}),En=Yt.get(Vt).map(On=>(On.parent=It,On.children=void 0,On.index=ht++,On));It.children=En,It.value=_n(Vt,En.map(On=>On.value)),Mt.push(It),Mt.push(...En)}return Mt}}var _t=function(wt){return wt[wt.Tab=9]="Tab",wt[wt.Enter=13]="Enter",wt[wt.Esc=27]="Esc",wt[wt.Space=32]="Space",wt[wt.ArrowUp=38]="ArrowUp",wt[wt.ArrowDown=40]="ArrowDown",wt[wt.Backspace=8]="Backspace",wt}(_t||{});let G=(()=>{class wt{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(fe,Mt,Vt){const ht=this._dimensions,st=ht.itemHeight*Mt,cn=Math.max(0,fe)/st*Mt;let _n=Math.min(Mt,Math.ceil(cn)+(ht.itemsPerViewport+1));const On=Math.max(0,_n-ht.itemsPerViewport);let ni=Math.min(On,Math.floor(cn)),Vn=ht.itemHeight*Math.ceil(ni)-ht.itemHeight*Math.min(ni,Vt);return Vn=isNaN(Vn)?0:Vn,ni=isNaN(ni)?-1:ni,_n=isNaN(_n)?-1:_n,ni-=Vt,ni=Math.max(0,ni),_n+=Vt,_n=Math.min(Mt,_n),{topPadding:Vn,scrollHeight:st,start:ni,end:_n}}setDimensions(fe,Mt){const Vt=Math.max(1,Math.floor(Mt/fe));this._dimensions={itemHeight:fe,panelHeight:Mt,itemsPerViewport:Vt}}getScrollTo(fe,Mt,Vt){const{panelHeight:ht}=this.dimensions,st=fe+Mt,cn=Vt+ht;return ht>=st&&Vt===fe?null:st>cn?Vt+st-cn:fe<=Vt?fe:null}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac})}return wt})();const U=["top","right","bottom","left"],ve=typeof requestAnimationFrame<"u"?re.Z:ue.E;let Pe=(()=>{class wt{constructor(fe,Mt,Vt,ht,st){this._renderer=fe,this._zone=Mt,this._panelService=Vt,this._document=st,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.outsideClick=new e.vpe,this._destroy$=new se.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=ht.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(fe){fe!==this._itemsLength&&(this._itemsLength=fe,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:fe,panelHeight:Mt}=this._panelService.dimensions,Vt=this.markedItem.index*fe;return Mt>Vt?0:Vt}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(fe){if(fe.items){const Mt=fe.items;this._onItemsChange(Mt.currentValue,Mt.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(fe,Mt=!1){if(!fe)return;const Vt=this.items.indexOf(fe);if(Vt<0||Vt>=this.itemsLength)return;let ht;if(this.virtualScroll){const st=this._panelService.dimensions.itemHeight;ht=this._panelService.getScrollTo(Vt*st,st,this._lastScrollPosition)}else{const st=this._dropdown.querySelector(`#${fe.htmlId}`);ht=this._panelService.getScrollTo(st.offsetTop,st.clientHeight,Mt?st.offsetTop:this._lastScrollPosition)}Ct(ht)&&(this._scrollablePanel.scrollTop=ht)}scrollToTag(){const fe=this._scrollablePanel;fe.scrollTop=fe.scrollHeight-fe.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),U.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(fe){U.forEach(Vt=>{const ht=`ng-select-${Vt}`;this._renderer.removeClass(this._dropdown,ht),this._renderer.removeClass(this._select,ht)});const Mt=`ng-select-${fe}`;this._renderer.addClass(this._dropdown,Mt),this._renderer.addClass(this._select,Mt)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,te.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,D.R)(this._destroy$),(0,I.e)(0,ve)).subscribe(fe=>{const Mt=fe.path||fe.composedPath&&fe.composedPath();this._onContentScrolled(Mt&&0!==Mt.length?Mt[0].scrollTop:fe.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,oe.T)((0,te.R)(this._document,"touchstart",{capture:!0}),(0,te.R)(this._document,"mousedown",{capture:!0})).pipe((0,D.R)(this._destroy$)).subscribe(fe=>this._checkToClose(fe))})}_checkToClose(fe){if(this._select.contains(fe.target)||this._dropdown.contains(fe.target))return;const Mt=fe.path||fe.composedPath&&fe.composedPath();fe.target&&fe.target.shadowRoot&&Mt&&Mt[0]&&this._select.contains(Mt[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(fe,Mt){this.items=fe||[],this._scrollToEndFired=!1,this.itemsLength=fe.length,this.virtualScroll?this._updateItemsRange(Mt):(this._setVirtualHeight(),this._updateItems(Mt))}_updateItems(fe){this.update.emit(this.items),!1!==fe&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,fe)})})}_updateItemsRange(fe){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{fe?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(fe){this.virtualScroll&&this._renderItemsRange(fe),this._lastScrollPosition=fe,this._fireScrollToEnd(fe)}_updateVirtualHeight(fe){this._updateScrollHeight&&(this._virtualPadding.style.height=`${fe}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(fe=null){if(fe&&this._lastScrollPosition===fe)return;const Mt=this._panelService.calculateItems(fe=fe||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(Mt.scrollHeight),this._contentPanel.style.transform=`translateY(${Mt.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(Mt.start,Mt.end)),this.scroll.emit({start:Mt.start,end:Mt.end})}),Ct(fe)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=fe,this._lastScrollPosition=fe)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[fe]=this.items;return this.update.emit([fe]),Promise.resolve().then(()=>{const Vt=this._dropdown.querySelector(`#${fe.htmlId}`).clientHeight;return this._virtualPadding.style.height=Vt*this.itemsLength+"px",this._panelService.setDimensions(Vt,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(fe){this._scrollToEndFired||0===fe||fe+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(fe){if("auto"!==this.position)return this.position;const Mt=this._select.getBoundingClientRect(),Vt=document.documentElement.scrollTop||document.body.scrollTop;return Mt.top+window.pageYOffset+Mt.height+fe.getBoundingClientRect().height>Vt+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const fe=this._select.getBoundingClientRect(),Mt=this._parent.getBoundingClientRect();this._dropdown.style.left=fe.left-Mt.left+"px",this._dropdown.style.width=fe.width+"px",this._dropdown.style.minWidth=fe.width+"px"}_updateYPosition(){const fe=this._select.getBoundingClientRect(),Mt=this._parent.getBoundingClientRect(),Vt=fe.height;"top"===this._currentPosition?(this._dropdown.style.bottom=Mt.bottom-fe.bottom+Vt+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=fe.top-Mt.top+Vt+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,te.R)(this._dropdown,"mousedown").pipe((0,D.R)(this._destroy$)).subscribe(fe=>{"INPUT"!==fe.target.tagName&&fe.preventDefault()})})}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(G),e.Y36(e.SBq),e.Y36(ce.K0,8))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-dropdown-panel"]],viewQuery:function(Mt,Vt){if(1&Mt&&(e.Gf(_e,7,e.SBq),e.Gf(Re,7,e.SBq),e.Gf(mt,7,e.SBq)),2&Mt){let ht;e.iGM(ht=e.CRH())&&(Vt.contentElementRef=ht.first),e.iGM(ht=e.CRH())&&(Vt.scrollElementRef=ht.first),e.iGM(ht=e.CRH())&&(Vt.paddingElementRef=ht.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[e.TTD],ngContentSelectors:Tt,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(Mt,Vt){1&Mt&&(e.F$t(),e.YNc(0,Lt,2,4,"div",0),e.TgZ(1,"div",1,2),e._UZ(3,"div",null,3),e.TgZ(5,"div",null,4),e.Hsn(7),e.qZA()(),e.YNc(8,je,2,4,"div",5)),2&Mt&&(e.Q6J("ngIf",Vt.headerTemplate),e.xp6(3),e.ekj("total-padding",Vt.virtualScroll),e.xp6(2),e.ekj("scrollable-content",Vt.virtualScroll&&Vt.items.length),e.xp6(3),e.Q6J("ngIf",Vt.footerTemplate))},dependencies:[ce.O5,ce.tP],encapsulation:2,changeDetection:0})}return wt})(),ut=(()=>{class wt{get disabled(){return this._disabled}set disabled(fe){this._disabled=this._isDisabled(fe)}constructor(fe){this.elementRef=fe,this.stateChange$=new se.x,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(fe){fe.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(fe){return null!=fe&&"false"!=`${fe}`}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.SBq))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[e.TTD],ngContentSelectors:Tt,decls:1,vars:0,template:function(Mt,Vt){1&Mt&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0})}return wt})(),We=(()=>{class wt{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"})}return wt})(),ze=(()=>{class wt{warn(fe){console.warn(fe)}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"})}return wt})();const be=new e.OlP("ng-select-selection-model");let Te=(()=>{class wt{get items(){return this._items}set items(fe){null===fe&&(fe=[]),this._itemsAreUsed=!0,this._items=fe}get compareWith(){return this._compareWith}set compareWith(fe){if(null!=fe&&!ae(fe))throw Error("`compareWith` must be a function.");this._compareWith=fe}get clearSearchOnAdd(){return Ct(this._clearSearchOnAdd)?this._clearSearchOnAdd:Ct(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(fe){this._clearSearchOnAdd=fe}get deselectOnClick(){return Ct(this._deselectOnClick)?this._deselectOnClick:Ct(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(fe){this._deselectOnClick=fe}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(fe,Mt,Vt,ht,st,It,cn){this.classes=fe,this.autoFocus=Mt,this.config=Vt,this._cd=It,this._console=cn,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=_n=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new e.vpe,this.focusEvent=new e.vpe,this.changeEvent=new e.vpe,this.openEvent=new e.vpe,this.closeEvent=new e.vpe,this.searchEvent=new e.vpe,this.clearEvent=new e.vpe,this.addEvent=new e.vpe,this.removeEvent=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=di(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new se.x,this._keyPress$=new se.x,this._onChange=_n=>{},this._onTouched=()=>{},this.clearItem=_n=>{const En=this.selectedItems.find(On=>On.value===_n);this.unselect(En)},this.trackByOption=(_n,En)=>this.trackByFn?this.trackByFn(En.value):En,this._mergeGlobalConfig(Vt),this.itemsList=new qt(this,ht()),this.element=st.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(fe=>fe.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(fe){fe.multiple&&this.itemsList.clearSelected(),fe.items&&this._setItems(fe.items.currentValue||[]),fe.isOpen&&(this._manualOpen=Ct(fe.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ct(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(fe){if(_t[fe.which]){if(!1===this.keyDownFn(fe))return;this.handleKeyCode(fe)}else fe.key&&1===fe.key.length&&this._keyPress$.next(fe.key.toLocaleLowerCase())}handleKeyCode(fe){this.clearButton&&this.clearButton.nativeElement===fe.target?this.handleKeyCodeClear(fe):this.handleKeyCodeInput(fe)}handleKeyCodeInput(fe){switch(fe.which){case _t.ArrowDown:this._handleArrowDown(fe);break;case _t.ArrowUp:this._handleArrowUp(fe);break;case _t.Space:this._handleSpace(fe);break;case _t.Enter:this._handleEnter(fe);break;case _t.Tab:this._handleTab(fe);break;case _t.Esc:this.close(),fe.preventDefault();break;case _t.Backspace:this._handleBackspace()}}handleKeyCodeClear(fe){fe.which===_t.Enter&&(this.handleClearClick(),fe.preventDefault())}handleMousedown(fe){const Mt=fe.target;"INPUT"!==Mt.tagName&&fe.preventDefault(),Mt.classList.contains("ng-clear-wrapper")?this.handleClearClick():Mt.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():Mt.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(fe){this.itemsList.clearSelected(),this._handleWriteValue(fe),this._cd.markForCheck()}registerOnChange(fe){this._onChange=fe}registerOnTouched(fe){this._onTouched=fe}setDisabledState(fe){this._disabled=fe,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(fe){!fe||fe.disabled||this.disabled||(this.deselectOnClick&&fe.selected?this.unselect(fe):this.select(fe),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(fe){fe.selected||(this.itemsList.select(fe),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(fe.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(fe){fe&&(this.itemsList.unselect(fe),this.focus(),this._updateNgModel(),this.removeEvent.emit(fe.value))}selectTag(){let fe;fe=ae(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const Mt=Vt=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(Vt,null):this.itemsList.addItem(Vt);!function J(wt){return wt instanceof Promise}(fe)?fe&&this.select(Mt(fe)):fe.then(Vt=>this.select(Mt(Vt))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const fe=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(Mt=>Mt.label.toLowerCase()===fe)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(Mt=>Mt.label.toLowerCase()===fe))&&!this.loading}showNoItemsFound(){const fe=0===this.itemsList.filteredItems.length;return(fe&&!this._isTypeahead&&!this.loading||fe&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(fe){this._isComposing=!1,!this.searchWhileComposing&&this.filter(fe)}filter(fe){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=fe,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(fe),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:fe,items:this.itemsList.filteredItems.map(Mt=>Mt.value)}),this.open())}onInputFocus(fe){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(fe),this.focused=!0)}onInputBlur(fe){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(fe),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(fe){fe.disabled||this.itemsList.markItem(fe)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const fe=this.selectedItems&&this.selectedItems[0];this.searchTerm=fe&&fe.label||null}_setItems(fe){const Mt=fe[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Ct(Mt)?!Ce(Mt):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(fe),fe.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Ct(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const fe=Vt=>{this.items=Vt.map(ht=>({$ngOptionValue:ht.value,$ngOptionLabel:ht.elementRef.nativeElement.innerHTML,disabled:ht.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},Mt=()=>{const Vt=(0,oe.T)(this.ngOptions.changes,this._destroy$);(0,oe.T)(...this.ngOptions.map(ht=>ht.stateChange$)).pipe((0,D.R)(Vt)).subscribe(ht=>{const st=this.itemsList.findItem(ht.value);st.disabled=ht.disabled,st.label=ht.label||st.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,S.O)(this.ngOptions),(0,D.R)(this._destroy$)).subscribe(Vt=>{this.bindLabel=this._defaultLabel,fe(Vt),Mt()})}_isValidWriteValue(fe){if(!Ct(fe)||this.multiple&&""===fe||Array.isArray(fe)&&0===fe.length)return!1;const Mt=Vt=>!(!Ct(this.compareWith)&&Ce(Vt)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(Vt)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(fe)?fe.every(Vt=>Mt(Vt)):(this._console.warn("Multiple select ngModel should be array."),!1):Mt(fe)}_handleWriteValue(fe){if(!this._isValidWriteValue(fe))return;const Mt=Vt=>{let ht=this.itemsList.findItem(Vt);if(ht)this.itemsList.select(ht);else{const st=Ce(Vt);st||!st&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(Vt,null)):this.bindValue&&(ht={[this.bindLabel]:null,[this.bindValue]:Vt},this.itemsList.select(this.itemsList.mapItem(ht,null)))}};this.multiple?fe.forEach(Vt=>Mt(Vt)):Mt(fe)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,D.R)(this._destroy$),(0,w.b)(fe=>this._pressedKeys.push(fe)),(0,n.b)(200),(0,Z.h)(()=>this._pressedKeys.length>0),(0,ee.U)(()=>this._pressedKeys.join(""))).subscribe(fe=>{const Mt=this.itemsList.findByLabel(fe);Mt&&(this.isOpen?(this.itemsList.markItem(Mt),this._scrollToMarked(),this._cd.markForCheck()):this.select(Mt)),this._pressedKeys=[]})}_setInputAttributes(){const fe=this.searchInput.nativeElement,Mt={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const Vt of Object.keys(Mt))fe.setAttribute(Vt,Mt[Vt])}_updateNgModel(){const fe=[];for(const Vt of this.selectedItems)if(this.bindValue){let ht=null;ht=Vt.children?Vt.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(Vt.value,this.bindValue),fe.push(ht)}else fe.push(Vt.value);const Mt=this.selectedItems.map(Vt=>Vt.value);this.multiple?(this._onChange(fe),this.changeEvent.emit(Mt)):(this._onChange(Ct(fe[0])?fe[0]:null),this.changeEvent.emit(Mt[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(fe){this.searchTerm=fe,this._isTypeahead&&this.typeahead.next(fe)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(fe){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),fe.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),fe.preventDefault()):this.showAddTag?(this.selectTag(),fe.preventDefault()):this.close():this.close()}_handleEnter(fe){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}fe.preventDefault()}_handleSpace(fe){this.isOpen||this._manualOpen||(this.open(),fe.preventDefault())}_handleArrowDown(fe){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),fe.preventDefault()}_handleArrowUp(fe){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),fe.preventDefault())}_nextItemIsTag(fe){const Mt=this.itemsList.markedIndex+fe;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(Mt<0||Mt===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const fe=this.searchTerm&&this.searchTerm.trim();return fe&&fe.length>=this.minTermLength}_mergeGlobalConfig(fe){this.placeholder=this.placeholder||fe.placeholder,this.notFoundText=this.notFoundText||fe.notFoundText,this.typeToSearchText=this.typeToSearchText||fe.typeToSearchText,this.addTagText=this.addTagText||fe.addTagText,this.loadingText=this.loadingText||fe.loadingText,this.clearAllText=this.clearAllText||fe.clearAllText,this.virtualScroll=Ct(this.virtualScroll)?this.virtualScroll:!!Ct(fe.disableVirtualScroll)&&!fe.disableVirtualScroll,this.openOnEnter=Ct(this.openOnEnter)?this.openOnEnter:fe.openOnEnter,this.appendTo=this.appendTo||fe.appendTo,this.bindValue=this.bindValue||fe.bindValue,this.bindLabel=this.bindLabel||fe.bindLabel,this.appearance=this.appearance||fe.appearance}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.$8M("class"),e.$8M("autofocus"),e.Y36(We),e.Y36(be),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ze))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-select"]],contentQueries:function(Mt,Vt,ht){if(1&Mt&&(e.Suo(ht,ot,5,e.Rgc),e.Suo(ht,Se,5,e.Rgc),e.Suo(ht,Ft,5,e.Rgc),e.Suo(ht,lt,5,e.Rgc),e.Suo(ht,Bt,5,e.Rgc),e.Suo(ht,Ut,5,e.Rgc),e.Suo(ht,fn,5,e.Rgc),e.Suo(ht,gn,5,e.Rgc),e.Suo(ht,An,5,e.Rgc),e.Suo(ht,jn,5,e.Rgc),e.Suo(ht,ai,5,e.Rgc),e.Suo(ht,ut,5)),2&Mt){let st;e.iGM(st=e.CRH())&&(Vt.optionTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.optgroupTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.labelTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.multiLabelTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.headerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.footerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.notFoundTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.typeToSearchTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.loadingTextTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.tagTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.loadingSpinnerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.ngOptions=st)}},viewQuery:function(Mt,Vt){if(1&Mt&&(e.Gf(Pe,5),e.Gf(xt,7),e.Gf(St,5)),2&Mt){let ht;e.iGM(ht=e.CRH())&&(Vt.dropdownPanel=ht.first),e.iGM(ht=e.CRH())&&(Vt.searchInput=ht.first),e.iGM(ht=e.CRH())&&(Vt.clearButton=ht.first)}},hostVars:20,hostBindings:function(Mt,Vt){1&Mt&&e.NdJ("keydown",function(st){return Vt.handleKeyDown(st)}),2&Mt&&e.ekj("ng-select-typeahead",Vt.typeahead)("ng-select-multiple",Vt.multiple)("ng-select-taggable",Vt.addTag)("ng-select-searchable",Vt.searchable)("ng-select-clearable",Vt.clearable)("ng-select-opened",Vt.isOpen)("ng-select",Vt.useDefaultClass)("ng-select-disabled",Vt.disabled)("ng-select-filtered",Vt.filtered)("ng-select-single",Vt.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[e._Bn([{provide:l.JU,useExisting:(0,e.Gpc)(()=>wt),multi:!0},G]),e.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(Mt,Vt){if(1&Mt){const ht=e.EpF();e.TgZ(0,"div",0),e.NdJ("mousedown",function(It){return Vt.handleMousedown(It)}),e.TgZ(1,"div",1)(2,"div",2),e._uU(3),e.qZA(),e.YNc(4,tn,2,2,"ng-container",3),e.YNc(5,Yn,1,5,null,3),e.TgZ(6,"div",4)(7,"input",5,6),e.NdJ("input",function(){e.CHM(ht);const It=e.MAs(8);return e.KtG(Vt.filter(It.value))})("compositionstart",function(){return Vt.onCompositionStart()})("compositionend",function(){e.CHM(ht);const It=e.MAs(8);return e.KtG(Vt.onCompositionEnd(It.value))})("focus",function(It){return Vt.onInputFocus(It)})("blur",function(It){return Vt.onInputBlur(It)})("change",function(It){return It.stopPropagation()}),e.qZA()()(),e.YNc(9,Rn,4,1,"ng-container",3),e.YNc(10,dt,4,1,"span",7),e.TgZ(11,"span",8),e._UZ(12,"span",9),e.qZA()(),e.YNc(13,vn,7,19,"ng-dropdown-panel",10)}2&Mt&&(e.ekj("ng-appearance-outline","outline"===Vt.appearance)("ng-has-value",Vt.hasValue),e.xp6(3),e.Oqu(Vt.placeholder),e.xp6(1),e.Q6J("ngIf",(!Vt.multiLabelTemplate||!Vt.multiple)&&Vt.selectedItems.length>0),e.xp6(1),e.Q6J("ngIf",Vt.multiple&&Vt.multiLabelTemplate&&Vt.selectedValues.length>0),e.xp6(1),e.uIk("aria-expanded",Vt.isOpen)("aria-owns",Vt.isOpen?Vt.dropdownId:null),e.xp6(1),e.Q6J("readOnly",!Vt.searchable||Vt.itemsList.maxItemsSelected)("disabled",Vt.disabled)("value",Vt.searchTerm?Vt.searchTerm:""),e.uIk("id",Vt.labelForId)("tabindex",Vt.tabIndex)("aria-activedescendant",Vt.isOpen?null==Vt.itemsList||null==Vt.itemsList.markedItem?null:Vt.itemsList.markedItem.htmlId:null)("aria-controls",Vt.isOpen?Vt.dropdownId:null),e.xp6(2),e.Q6J("ngIf",Vt.loading),e.xp6(1),e.Q6J("ngIf",Vt.showClear()),e.xp6(3),e.Q6J("ngIf",Vt.isOpen))},dependencies:[ce.mk,ce.sg,ce.O5,ce.tP,Pe,Oe],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return wt})();function He(){return new Wt}class Wt{constructor(){this._selected=[]}get value(){return this._selected}select(Yt,fe,Mt){if(Yt.selected=!0,(!Yt.children||!fe&&Mt)&&this._selected.push(Yt),fe)if(Yt.parent){const Vt=Yt.parent.children.length,ht=Yt.parent.children.filter(st=>st.selected).length;Yt.parent.selected=Vt===ht}else Yt.children&&(this._setChildrenSelectedState(Yt.children,!0),this._removeChildren(Yt),this._selected=Mt&&this._activeChildren(Yt)?[...this._selected.filter(Vt=>Vt.parent!==Yt),Yt]:[...this._selected,...Yt.children.filter(Vt=>!Vt.disabled)])}unselect(Yt,fe){if(this._selected=this._selected.filter(Mt=>Mt!==Yt),Yt.selected=!1,fe)if(Yt.parent&&Yt.parent.selected){const Mt=Yt.parent.children;this._removeParent(Yt.parent),this._removeChildren(Yt.parent),this._selected.push(...Mt.filter(Vt=>Vt!==Yt&&!Vt.disabled)),Yt.parent.selected=!1}else Yt.children&&(this._setChildrenSelectedState(Yt.children,!1),this._removeChildren(Yt))}clear(Yt){this._selected=Yt?this._selected.filter(fe=>fe.disabled):[]}_setChildrenSelectedState(Yt,fe){for(const Mt of Yt)Mt.disabled||(Mt.selected=fe)}_removeChildren(Yt){this._selected=[...this._selected.filter(fe=>fe.parent!==Yt),...Yt.children.filter(fe=>fe.parent===Yt&&fe.disabled&&fe.selected)]}_removeParent(Yt){this._selected=this._selected.filter(fe=>fe!==Yt)}_activeChildren(Yt){return Yt.children.every(fe=>!fe.disabled||fe.selected)}}let Pn=(()=>{class wt{static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275mod=e.oAB({type:wt});static#n=this.\u0275inj=e.cJS({providers:[{provide:be,useValue:He}],imports:[ce.ez]})}return wt})()},469:(ft,Ie,C)=>{"use strict";C.d(Ie,{S:()=>$f,f:()=>vu});var e=C(5861),l=C(6814),D=C(5879),I=C(6223);var o,n=(o=function(i,s){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(c[v]=h[v])})(i,s)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}),Z=function(o){function t(i,s){var c=this.constructor,h=o.call(this,i,s)||this;return Object.defineProperty(h,"name",{value:c.name,enumerable:!1,configurable:!0}),function S(o,t){var i=Object.setPrototypeOf;i?i(o,t):o.__proto__=t}(h,c.prototype),function w(o,t){void 0===t&&(t=o.constructor);var i=Error.captureStackTrace;i&&i(o,t)}(h),h}return n(t,o),t}(Error),ue=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),se=function(o){function t(i){void 0===i&&(i=void 0);var s=o.call(this,i)||this;return s.message=i,s}return ue(t,o),t.prototype.getKind=function(){return this.constructor.kind},t.kind="Exception",t}(Z);const te=se;var oe=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ce=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return oe(t,o),t.kind="ArgumentException",t}(te);const _e=ce;var Re=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),mt=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Re(t,o),t.kind="IllegalArgumentException",t}(te);const Ge=mt;var Lt=function(){function o(t){if(this.binarizer=t,null===t)throw new Ge("Binarizer must be non-null.")}return o.prototype.getWidth=function(){return this.binarizer.getWidth()},o.prototype.getHeight=function(){return this.binarizer.getHeight()},o.prototype.getBlackRow=function(t,i){return this.binarizer.getBlackRow(t,i)},o.prototype.getBlackMatrix=function(){return null==this.matrix&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},o.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},o.prototype.crop=function(t,i,s,c){var h=this.binarizer.getLuminanceSource().crop(t,i,s,c);return new o(this.binarizer.createBinarizer(h))},o.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},o.prototype.rotateCounterClockwise=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new o(this.binarizer.createBinarizer(t))},o.prototype.rotateCounterClockwise45=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new o(this.binarizer.createBinarizer(t))},o.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},o}();const je=Lt;var Tt=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),xt=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Tt(t,o),t.getChecksumInstance=function(){return new t},t.kind="ChecksumException",t}(te);const St=xt;var Zt=function(){function o(t){this.source=t}return o.prototype.getLuminanceSource=function(){return this.source},o.prototype.getWidth=function(){return this.source.getWidth()},o.prototype.getHeight=function(){return this.source.getHeight()},o}();const yt=Zt;var un=function(){function o(){}return o.arraycopy=function(t,i,s,c,h){for(;h--;)s[c++]=t[i++]},o.currentTimeMillis=function(){return Date.now()},o}();const Jt=un;var tn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),wn=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return tn(t,o),t.kind="IndexOutOfBoundsException",t}(te);const Ln=wn;var Yn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ti=function(o){function t(i,s){void 0===i&&(i=void 0),void 0===s&&(s=void 0);var c=o.call(this,s)||this;return c.index=i,c.message=s,c}return Yn(t,o),t.kind="ArrayIndexOutOfBoundsException",t}(Ln);const gi=ti;var dt=function(){function o(){}return o.fill=function(t,i){for(var s=0,c=t.length;ss)throw new Ge("fromIndex("+i+") > toIndex("+s+")");if(i<0)throw new gi(i);if(s>t)throw new gi(s)},o.asList=function(){for(var t=[],i=0;i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),v=h.next();!v.done;v=h.next())c=31*c+v.value}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c},o.fillUint8Array=function(t,i){for(var s=0;s!==t.length;s++)t[s]=i},o.copyOf=function(t,i){return t.slice(0,i)},o.copyOfUint8Array=function(t,i){if(t.length<=i){var s=new Uint8Array(i);return s.set(t),s}return t.slice(0,i)},o.copyOfRange=function(t,i,s){var c=s-i,h=new Int32Array(c);return Jt.arraycopy(t,i,h,0,c),h},o.binarySearch=function(t,i,s){void 0===s&&(s=o.numberComparator);for(var c=0,h=t.length-1;c<=h;){var v=h+c>>1,M=s(i,t[v]);if(M>0)c=v+1;else{if(!(M<0))return v;h=v-1}}return-c-1},o.numberComparator=function(t,i){return t-i},o}();const at=dt;var Be=function(){function o(){}return o.numberOfTrailingZeros=function(t){var i;if(0===t)return 32;var s=31;return 0!=(i=t<<16)&&(s-=16,t=i),0!=(i=t<<8)&&(s-=8,t=i),0!=(i=t<<4)&&(s-=4,t=i),0!=(i=t<<2)&&(s-=2,t=i),s-(t<<1>>>31)},o.numberOfLeadingZeros=function(t){if(0===t)return 32;var i=1;return t>>>16||(i+=16,t<<=16),t>>>24||(i+=8,t<<=8),t>>>28||(i+=4,t<<=4),t>>>30||(i+=2,t<<=2),i-(t>>>31)},o.toHexString=function(t){return t.toString(16)},o.toBinaryString=function(t){return String(parseInt(String(t),2))},o.bitCount=function(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,63&(t+=t>>>8)+(t>>>16)},o.truncDivision=function(t,i){return Math.trunc(t/i)},o.parseInt=function(t,i){return void 0===i&&(i=void 0),parseInt(t,i)},o.MIN_VALUE_32_BITS=-2147483648,o.MAX_VALUE=Number.MAX_SAFE_INTEGER,o}();const Ee=Be;var $e=function(){function o(t,i){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=null==i?o.makeArray(t):i)}return o.prototype.getSize=function(){return this.size},o.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},o.prototype.ensureCapacity=function(t){if(t>32*this.bits.length){var i=o.makeArray(t);Jt.arraycopy(this.bits,0,i,0,this.bits.length),this.bits=i}},o.prototype.get=function(t){return 0!=(this.bits[Math.floor(t/32)]&1<<(31&t))},o.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(31&t)},o.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(31&t)},o.prototype.getNextSet=function(t){var i=this.size;if(t>=i)return i;var s=this.bits,c=Math.floor(t/32),h=s[c];h&=~((1<<(31&t))-1);for(var v=s.length;0===h;){if(++c===v)return i;h=s[c]}var M=32*c+Ee.numberOfTrailingZeros(h);return M>i?i:M},o.prototype.getNextUnset=function(t){var i=this.size;if(t>=i)return i;var s=this.bits,c=Math.floor(t/32),h=~s[c];h&=~((1<<(31&t))-1);for(var v=s.length;0===h;){if(++c===v)return i;h=~s[c]}var M=32*c+Ee.numberOfTrailingZeros(h);return M>i?i:M},o.prototype.setBulk=function(t,i){this.bits[Math.floor(t/32)]=i},o.prototype.setRange=function(t,i){if(ithis.size)throw new Ge;if(i!==t){i--;for(var s=Math.floor(t/32),c=Math.floor(i/32),h=this.bits,v=s;v<=c;v++)h[v]|=(2<<(vs?0:31&t))}},o.prototype.clear=function(){for(var t=this.bits.length,i=this.bits,s=0;sthis.size)throw new Ge;if(i===t)return!0;i--;for(var c=Math.floor(t/32),h=Math.floor(i/32),v=this.bits,M=c;M<=h;M++){var $=(2<<(Mc?0:31&t))&4294967295;if((v[M]&$)!==(s?$:0))return!1}return!0},o.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},o.prototype.appendBits=function(t,i){if(i<0||i>32)throw new Ge("Num bits must be between 0 and 32");this.ensureCapacity(this.size+i);for(var s=i;s>0;s--)this.appendBit(1==(t>>s-1&1))},o.prototype.appendBitArray=function(t){var i=t.size;this.ensureCapacity(this.size+i);for(var s=0;s>1&1431655765|(1431655765&v)<<1)>>2&858993459|(858993459&v)<<2)>>4&252645135|(252645135&v)<<4)>>8&16711935|(16711935&v)<<8)>>16&65535|(65535&v)<<16}if(this.size!==32*s){var M=32*s-this.size,O=t[0]>>>M;for(h=1;h>>M}t[s-1]=O}this.bits=t},o.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},o.prototype.equals=function(t){return t instanceof o&&(this.size===t.size&&at.equals(this.bits,t.bits))},o.prototype.hashCode=function(){return 31*this.size+at.hashCode(this.bits)},o.prototype.toString=function(){for(var t="",i=0,s=this.size;i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(v),we=de.next();!we.done;we=de.next())o.NAME_TO_ECI.set(we.value,this)}catch(vt){c={error:vt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}}return o.prototype.getValueIdentifier=function(){return this.valueIdentifier},o.prototype.getName=function(){return this.name},o.prototype.getValue=function(){return this.values[0]},o.getCharacterSetECIByValue=function(t){if(t<0||t>=900)throw new bt("incorect value");var i=o.VALUES_TO_ECI.get(t);if(void 0===i)throw new bt("incorect value");return i},o.getCharacterSetECIByName=function(t){var i=o.NAME_TO_ECI.get(t);if(void 0===i)throw new bt("incorect value");return i},o.prototype.equals=function(t){if(!(t instanceof o))return!1;var i=t;return this.getName()===i.getName()},o.VALUE_IDENTIFIER_TO_ECI=new Map,o.VALUES_TO_ECI=new Map,o.NAME_TO_ECI=new Map,o.Cp437=new o(Qt.Cp437,Int32Array.from([0,2]),"Cp437"),o.ISO8859_1=new o(Qt.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),o.ISO8859_2=new o(Qt.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),o.ISO8859_3=new o(Qt.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),o.ISO8859_4=new o(Qt.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),o.ISO8859_5=new o(Qt.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),o.ISO8859_6=new o(Qt.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),o.ISO8859_7=new o(Qt.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),o.ISO8859_8=new o(Qt.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),o.ISO8859_9=new o(Qt.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),o.ISO8859_10=new o(Qt.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),o.ISO8859_11=new o(Qt.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),o.ISO8859_13=new o(Qt.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),o.ISO8859_14=new o(Qt.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),o.ISO8859_15=new o(Qt.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),o.ISO8859_16=new o(Qt.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),o.SJIS=new o(Qt.SJIS,20,"SJIS","Shift_JIS"),o.Cp1250=new o(Qt.Cp1250,21,"Cp1250","windows-1250"),o.Cp1251=new o(Qt.Cp1251,22,"Cp1251","windows-1251"),o.Cp1252=new o(Qt.Cp1252,23,"Cp1252","windows-1252"),o.Cp1256=new o(Qt.Cp1256,24,"Cp1256","windows-1256"),o.UnicodeBigUnmarked=new o(Qt.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),o.UTF8=new o(Qt.UTF8,26,"UTF8","UTF-8"),o.ASCII=new o(Qt.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),o.Big5=new o(Qt.Big5,28,"Big5"),o.GB18030=new o(Qt.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),o.EUC_KR=new o(Qt.EUC_KR,30,"EUC_KR","EUC-KR"),o}();const Dn=nn;var Ot=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),rn=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Ot(t,o),t.kind="UnsupportedOperationException",t}(te);const vn=rn;var ei=function(){function o(){}return o.decode=function(t,i){var s=this.encodingName(i);return this.customDecoder?this.customDecoder(t,s):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(s)?this.decodeFallback(t,s):new TextDecoder(s).decode(t)},o.shouldDecodeOnFallback=function(t){return!o.isBrowser()&&"ISO-8859-1"===t},o.encode=function(t,i){var s=this.encodingName(i);return this.customEncoder?this.customEncoder(t,s):typeof TextEncoder>"u"?this.encodeFallback(t):(new TextEncoder).encode(t)},o.isBrowser=function(){return typeof window<"u"&&"[object Window]"==={}.toString.call(window)},o.encodingName=function(t){return"string"==typeof t?t:t.getName()},o.encodingCharacterSet=function(t){return t instanceof Dn?t:Dn.getCharacterSetECIByName(t)},o.decodeFallback=function(t,i){var s=this.encodingCharacterSet(i);if(o.isDecodeFallbackSupported(s)){for(var c="",h=0,v=t.length;h3&&239===t[0]&&187===t[1]&&191===t[2],an=0;an0?128&bn?M--:v=!1:128&bn&&(64&bn?(M++,32&bn?(M++,16&bn?(M++,8&bn?v=!1:$++):N++):O++):v=!1)),c&&(bn>127&&bn<160?c=!1:bn>159&&(bn<192||215===bn||247===bn)&&$t++),h&&(q>0?bn<64||127===bn||bn>252?h=!1:q--:128===bn||160===bn||bn>239?h=!1:bn>160&&bn<224?(de++,et=0,++we>vt&&(vt=we)):bn>127?(q++,we=0,++et>zt&&(zt=et)):(we=0,et=0))}return v&&M>0&&(v=!1),h&&q>0&&(h=!1),v&&(Gt||O+N+$>0)?o.UTF8:h&&(o.ASSUME_SHIFT_JIS||vt>=3||zt>=3)?o.SHIFT_JIS:c&&h?2===vt&&2===de||10*$t>=s?o.SHIFT_JIS:o.ISO88591:c?o.ISO88591:h?o.SHIFT_JIS:v?o.UTF8:o.PLATFORM_DEFAULT_ENCODING},o.format=function(t){for(var i=[],s=1;sv){if(-1===M)M=h-v;else if(h-v!==M)throw new Ge("row lengths do not match");v=h,O++}N++}else if(t.substring(N,N+i.length)===i)N+=i.length,c[h]=!0,h++;else{if(t.substring(N,N+s.length)!==s)throw new Ge("illegal character encountered: "+t.substring(N));N+=s.length,c[h]=!1,h++}if(h>v){if(-1===M)M=h-v;else if(h-v!==M)throw new Ge("row lengths do not match");O++}for(var $=new o(M,O),q=0;q>>(31&t)&1)},o.prototype.set=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]|=1<<(31&t)&4294967295},o.prototype.unset=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]&=~(1<<(31&t)&4294967295)},o.prototype.flip=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]^=1<<(31&t)&4294967295},o.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new Ge("input matrix dimensions do not match");for(var i=new me(Math.floor(this.width/32)+1),s=this.rowSize,c=this.bits,h=0,v=this.height;hthis.height||h>this.width)throw new Ge("The region must fit inside the matrix");for(var M=this.rowSize,O=this.bits,N=i;NO&&(O=N),32*$M){for(de=31;!(q>>>de);)de--;32*$+de>M&&(M=32*$+de)}}}return M=0&&0===i[s];)s--;if(s<0)return null;for(var c=Math.floor(s/t),h=32*Math.floor(s%t),v=i[s],M=31;!(v>>>M);)M--;return Int32Array.from([h+=M,c])},o.prototype.getWidth=function(){return this.width},o.prototype.getHeight=function(){return this.height},o.prototype.getRowSize=function(){return this.rowSize},o.prototype.equals=function(t){return t instanceof o&&(this.width===t.width&&this.height===t.height&&this.rowSize===t.rowSize&&at.equals(this.bits,t.bits))},o.prototype.hashCode=function(){var t=this.width;return 31*(t=31*(t=31*(t=31*t+this.width)+this.height)+this.rowSize)+at.hashCode(this.bits)},o.prototype.toString=function(t,i,s){return void 0===t&&(t="X "),void 0===i&&(i=" "),void 0===s&&(s="\n"),this.buildToString(t,i,s)},o.prototype.buildToString=function(t,i,s){for(var c=new Ce,h=0,v=this.height;h>t.LUMINANCE_SHIFT]++;var N=t.estimateBlackPoint(M);if(h<3)for(O=0;O>t.LUMINANCE_SHIFT]++;var we=t.estimateBlackPoint(v),et=i.getMatrix();for(M=0;Mv&&(h=M,v=i[M]),i[M]>c&&(c=i[M]);var O=0,N=0;for(M=0;MN&&(O=M,N=q)}if(h>O){var de=h;h=O,O=de}if(O-h<=s/16)throw new Se;var we=O-1,et=-1;for(M=O-1;M>h;M--){var q,vt=M-h;(q=vt*vt*(O-M)*(c-i[M]))>et&&(we=M,et=q)}return we<=t.MINIMUM_DIMENSION&&c>=t.MINIMUM_DIMENSION){var h=i.getMatrix(),v=s>>t.BLOCK_SIZE_POWER;s&t.BLOCK_SIZE_MASK&&v++;var M=c>>t.BLOCK_SIZE_POWER;c&t.BLOCK_SIZE_MASK&&M++;var O=t.calculateBlackPoints(h,v,M,s,c),N=new ae(s,c);t.calculateThresholdForBlock(h,v,M,s,c,O,N),this.matrix=N}else this.matrix=o.prototype.getBlackMatrix.call(this);return this.matrix},t.prototype.createBinarizer=function(i){return new t(i)},t.calculateThresholdForBlock=function(i,s,c,h,v,M,O){for(var N=v-t.BLOCK_SIZE,$=h-t.BLOCK_SIZE,q=0;qN&&(de=N);for(var we=t.cap(q,2,c-3),et=0;et$&&(vt=$);for(var zt=t.cap(et,2,s-3),$t=0,Gt=-2;Gt<=2;Gt++){var an=M[we+Gt];$t+=an[zt-2]+an[zt-1]+an[zt]+an[zt+1]+an[zt+2]}t.thresholdBlock(i,vt,de,$t/25,h,O)}}},t.cap=function(i,s,c){return ic?c:i},t.thresholdBlock=function(i,s,c,h,v,M){for(var O=0,N=c*v+s;OM&&(q=M);for(var de=0;deO&&(we=O);for(var et=0,vt=255,zt=0,$t=0,Gt=q*h+we;$tzt&&(zt=bn)}if(zt-vt>t.MIN_DYNAMIC_RANGE)for($t++,Gt+=h;$t>2*t.BLOCK_SIZE_POWER;if(zt-vt<=t.MIN_DYNAMIC_RANGE&&(Nn=vt/2,$>0&&de>0)){var Zn=(N[$-1][de]+2*N[$][de-1]+N[$-1][de-1])/4;vt>10}else{v=0,M=0;for(var et=i.length;v>10)}return h},t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth(),h=i*c;return null===s?s=this.buffer.slice(h,h+c):(s.length0&&h[h.length-1])&&(6===N[0]||2===N[0])){i=0;continue}if(3===N[0]&&(!h||N[1]>h[0]&&N[1]=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),c=s.next();!c.done;c=s.next())"videoinput"===(v="video"===(h=c.value).kind?"videoinput":h.kind)&&i.push({deviceId:h.deviceId||h.id,label:h.label||"Video device "+(i.length+1),kind:v,groupId:h.groupId})}catch(et){q={error:et}}finally{try{c&&!c.done&&(de=s.return)&&de.call(s)}finally{if(q)throw q.error}}return[2,i]}})})},o.prototype.getVideoInputDevices=function(){return G(this,void 0,void 0,function(){return U(this,function(i){switch(i.label){case 0:return[4,this.listVideoInputDevices()];case 1:return[2,i.sent().map(function(s){return new _t(s.deviceId,s.label)})]}})})},o.prototype.findDeviceById=function(t){return G(this,void 0,void 0,function(){var i;return U(this,function(s){switch(s.label){case 0:return[4,this.listVideoInputDevices()];case 1:return(i=s.sent())?[2,i.find(function(c){return c.deviceId===t})]:[2,null]}})})},o.prototype.decodeFromInputVideoDevice=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:return[4,this.decodeOnceFromVideoDevice(t,i)];case 1:return[2,s.sent()]}})})},o.prototype.decodeOnceFromVideoDevice=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.decodeOnceFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i)];case 1:return[2,h.sent()]}})})},o.prototype.decodeOnceFromConstraints=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(c){switch(c.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return s=c.sent(),[4,this.decodeOnceFromStream(s,i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromStream=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,i)];case 1:return s=h.sent(),[4,this.decodeOnce(s)];case 2:return[2,h.sent()]}})})},o.prototype.decodeFromInputVideoDeviceContinuously=function(t,i,s){return G(this,void 0,void 0,function(){return U(this,function(c){switch(c.label){case 0:return[4,this.decodeFromVideoDevice(t,i,s)];case 1:return[2,c.sent()]}})})},o.prototype.decodeFromVideoDevice=function(t,i,s){return G(this,void 0,void 0,function(){return U(this,function(v){switch(v.label){case 0:return[4,this.decodeFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i,s)];case 1:return[2,v.sent()]}})})},o.prototype.decodeFromConstraints=function(t,i,s){return G(this,void 0,void 0,function(){var c;return U(this,function(h){switch(h.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return c=h.sent(),[4,this.decodeFromStream(c,i,s)];case 2:return[2,h.sent()]}})})},o.prototype.decodeFromStream=function(t,i,s){return G(this,void 0,void 0,function(){var c;return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,i)];case 1:return c=h.sent(),[4,this.decodeContinuously(c,s)];case 2:return[2,h.sent()]}})})},o.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},o.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},o.prototype.attachStreamToVideo=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(c){switch(c.label){case 0:return s=this.prepareVideoElement(i),this.addVideoSource(s,t),this.videoElement=s,this.stream=t,[4,this.playVideoOnLoadAsync(s)];case 1:return c.sent(),[2,s]}})})},o.prototype.playVideoOnLoadAsync=function(t){var i=this;return new Promise(function(s,c){return i.playVideoOnLoad(t,function(){return s()})})},o.prototype.playVideoOnLoad=function(t,i){var s=this;this.videoEndedListener=function(){return s.stopStreams()},this.videoCanPlayListener=function(){return s.tryPlayVideo(t)},t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",i),this.tryPlayVideo(t)},o.prototype.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2},o.prototype.tryPlayVideo=function(t){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:if(this.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.play()];case 2:return s.sent(),[3,4];case 3:return s.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},o.prototype.getMediaElement=function(t,i){var s=document.getElementById(t);if(!s)throw new _e("element with id '"+t+"' not found");if(s.nodeName.toLowerCase()!==i.toLowerCase())throw new _e("element with id '"+t+"' must be an "+i+" element");return s},o.prototype.decodeFromImage=function(t,i){if(!t&&!i)throw new _e("either imageElement with a src set or an url must be provided");return i&&!t?this.decodeFromImageUrl(i):this.decodeFromImageElement(t)},o.prototype.decodeFromVideo=function(t,i){if(!t&&!i)throw new _e("Either an element with a src set or an URL must be provided");return i&&!t?this.decodeFromVideoUrl(i):this.decodeFromVideoElement(t)},o.prototype.decodeFromVideoContinuously=function(t,i,s){if(void 0===t&&void 0===i)throw new _e("Either an element with a src set or an URL must be provided");return i&&!t?this.decodeFromVideoUrlContinuously(i,s):this.decodeFromVideoElementContinuously(t,s)},o.prototype.decodeFromImageElement=function(t){if(!t)throw new _e("An image element must be provided.");this.reset();var i=this.prepareImageElement(t);return this.imageElement=i,this.isImageLoaded(i)?this.decodeOnce(i,!1,!0):this._decodeOnLoadImage(i)},o.prototype.decodeFromVideoElement=function(t){var i=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(i)},o.prototype.decodeFromVideoElementContinuously=function(t,i){var s=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(s,i)},o.prototype._decodeFromVideoElementSetup=function(t){if(!t)throw new _e("A video element must be provided.");this.reset();var i=this.prepareVideoElement(t);return this.videoElement=i,i},o.prototype.decodeFromImageUrl=function(t){if(!t)throw new _e("An URL must be provided.");this.reset();var i=this.prepareImageElement();this.imageElement=i;var s=this._decodeOnLoadImage(i);return i.src=t,s},o.prototype.decodeFromVideoUrl=function(t){if(!t)throw new _e("An URL must be provided.");this.reset();var i=this.prepareVideoElement(),s=this.decodeFromVideoElement(i);return i.src=t,s},o.prototype.decodeFromVideoUrlContinuously=function(t,i){if(!t)throw new _e("An URL must be provided.");this.reset();var s=this.prepareVideoElement(),c=this.decodeFromVideoElementContinuously(s,i);return s.src=t,c},o.prototype._decodeOnLoadImage=function(t){var i=this;return new Promise(function(s,c){i.imageLoadedListener=function(){return i.decodeOnce(t,!1,!0).then(s,c)},t.addEventListener("load",i.imageLoadedListener)})},o.prototype._decodeOnLoadVideo=function(t){return G(this,void 0,void 0,function(){return U(this,function(i){switch(i.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return i.sent(),[4,this.decodeOnce(t)];case 2:return[2,i.sent()]}})})},o.prototype._decodeOnLoadVideoContinuously=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return s.sent(),this.decodeContinuously(t,i),[2]}})})},o.prototype.isImageLoaded=function(t){return!(!t.complete||0===t.naturalWidth)},o.prototype.prepareImageElement=function(t){var i;return typeof t>"u"&&((i=document.createElement("img")).width=200,i.height=200),"string"==typeof t&&(i=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(i=t),i},o.prototype.prepareVideoElement=function(t){var i;return!t&&typeof document<"u"&&((i=document.createElement("video")).width=200,i.height=200),"string"==typeof t&&(i=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(i=t),i.setAttribute("autoplay","true"),i.setAttribute("muted","true"),i.setAttribute("playsinline","true"),i},o.prototype.decodeOnce=function(t,i,s){var c=this;void 0===i&&(i=!0),void 0===s&&(s=!0),this._stopAsyncDecode=!1;var h=function(v,M){if(c._stopAsyncDecode)return M(new Se("Video stream has ended before any code could be detected.")),void(c._stopAsyncDecode=void 0);try{v(c.decode(t))}catch(de){if(i&&de instanceof Se||(de instanceof St||de instanceof bt)&&s)return setTimeout(h,c._timeBetweenDecodingAttempts,v,M);M(de)}};return new Promise(function(v,M){return h(v,M)})},o.prototype.decodeContinuously=function(t,i){var s=this;this._stopContinuousDecode=!1;var c=function(){if(s._stopContinuousDecode)s._stopContinuousDecode=void 0;else try{var h=s.decode(t);i(h,null),setTimeout(c,s.timeBetweenScansMillis)}catch(O){i(null,O),(O instanceof St||O instanceof bt||O instanceof Se)&&setTimeout(c,s._timeBetweenDecodingAttempts)}};c()},o.prototype.decode=function(t){var i=this.createBinaryBitmap(t);return this.decodeBitmap(i)},o.prototype.createBinaryBitmap=function(t){this.getCaptureCanvasContext(t),t instanceof HTMLVideoElement?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);var s=this.getCaptureCanvas(t),c=new qt(s),h=new gn(c);return new je(h)},o.prototype.getCaptureCanvasContext=function(t){if(!this.captureCanvasContext){var i=this.getCaptureCanvas(t),s=void 0;try{s=i.getContext("2d",{willReadFrequently:!0})}catch{s=i.getContext("2d")}this.captureCanvasContext=s}return this.captureCanvasContext},o.prototype.getCaptureCanvas=function(t){if(!this.captureCanvas){var i=this.createCaptureCanvas(t);this.captureCanvas=i}return this.captureCanvas},o.prototype.drawFrameOnCanvas=function(t,i,s){void 0===i&&(i={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),void 0===s&&(s=this.captureCanvasContext),s.drawImage(t,i.sx,i.sy,i.sWidth,i.sHeight,i.dx,i.dy,i.dWidth,i.dHeight)},o.prototype.drawImageOnCanvas=function(t,i,s){void 0===i&&(i={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),void 0===s&&(s=this.captureCanvasContext),s.drawImage(t,i.sx,i.sy,i.sWidth,i.sHeight,i.dx,i.dy,i.dWidth,i.dHeight)},o.prototype.decodeBitmap=function(t){return this.reader.decode(t,this._hints)},o.prototype.createCaptureCanvas=function(t){if(typeof document>"u")return this._destroyCaptureCanvas(),null;var s,c,i=document.createElement("canvas");return typeof t<"u"&&(t instanceof HTMLVideoElement?(s=t.videoWidth,c=t.videoHeight):t instanceof HTMLImageElement&&(s=t.naturalWidth||t.width,c=t.naturalHeight||t.height)),i.style.width=s+"px",i.style.height=c+"px",i.width=s,i.height=c,i},o.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(t){return t.stop()}),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},o.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},o.prototype._destroyVideoElement=function(){this.videoElement&&(typeof this.videoEndedListener<"u"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener<"u"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener<"u"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},o.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},o.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},o.prototype.addVideoSource=function(t,i){try{t.srcObject=i}catch{t.src=URL.createObjectURL(i)}},o.prototype.cleanVideoSource=function(t){try{t.srcObject=null}catch{t.src=""}this.videoElement.removeAttribute("src")},o}(),ut=function(){function o(t,i,s,c,h,v){void 0===s&&(s=null==i?0:8*i.length),void 0===v&&(v=Jt.currentTimeMillis()),this.text=t,this.rawBytes=i,this.numBits=s,this.resultPoints=c,this.format=h,this.timestamp=v,this.text=t,this.rawBytes=i,this.numBits=null==s?null==i?0:8*i.length:s,this.resultPoints=c,this.format=h,this.resultMetadata=null,this.timestamp=null==v?Jt.currentTimeMillis():v}return o.prototype.getText=function(){return this.text},o.prototype.getRawBytes=function(){return this.rawBytes},o.prototype.getNumBits=function(){return this.numBits},o.prototype.getResultPoints=function(){return this.resultPoints},o.prototype.getBarcodeFormat=function(){return this.format},o.prototype.getResultMetadata=function(){return this.resultMetadata},o.prototype.putMetadata=function(t,i){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(t,i)},o.prototype.putAllMetadata=function(t){null!==t&&(this.resultMetadata=null===this.resultMetadata?t:new Map(t))},o.prototype.addResultPoints=function(t){var i=this.resultPoints;if(null===i)this.resultPoints=t;else if(null!==t&&t.length>0){var s=new Array(i.length+t.length);Jt.arraycopy(i,0,s,0,i.length),Jt.arraycopy(t,0,s,i.length,t.length),this.resultPoints=s}},o.prototype.getTimestamp=function(){return this.timestamp},o.prototype.toString=function(){return this.text},o}();const We=ut;var ze=function(o){return o[o.AZTEC=0]="AZTEC",o[o.CODABAR=1]="CODABAR",o[o.CODE_39=2]="CODE_39",o[o.CODE_93=3]="CODE_93",o[o.CODE_128=4]="CODE_128",o[o.DATA_MATRIX=5]="DATA_MATRIX",o[o.EAN_8=6]="EAN_8",o[o.EAN_13=7]="EAN_13",o[o.ITF=8]="ITF",o[o.MAXICODE=9]="MAXICODE",o[o.PDF_417=10]="PDF_417",o[o.QR_CODE=11]="QR_CODE",o[o.RSS_14=12]="RSS_14",o[o.RSS_EXPANDED=13]="RSS_EXPANDED",o[o.UPC_A=14]="UPC_A",o[o.UPC_E=15]="UPC_E",o[o.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION",o}(ze||{});const be=ze;var Te=function(o){return o[o.OTHER=0]="OTHER",o[o.ORIENTATION=1]="ORIENTATION",o[o.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",o[o.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",o[o.ISSUE_NUMBER=4]="ISSUE_NUMBER",o[o.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",o[o.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",o[o.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",o[o.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",o[o.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",o[o.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY",o}(Te||{});const He=Te;var Wt=function(){function o(t,i,s,c,h,v){void 0===h&&(h=-1),void 0===v&&(v=-1),this.rawBytes=t,this.text=i,this.byteSegments=s,this.ecLevel=c,this.structuredAppendSequenceNumber=h,this.structuredAppendParity=v,this.numBits=null==t?0:8*t.length}return o.prototype.getRawBytes=function(){return this.rawBytes},o.prototype.getNumBits=function(){return this.numBits},o.prototype.setNumBits=function(t){this.numBits=t},o.prototype.getText=function(){return this.text},o.prototype.getByteSegments=function(){return this.byteSegments},o.prototype.getECLevel=function(){return this.ecLevel},o.prototype.getErrorsCorrected=function(){return this.errorsCorrected},o.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},o.prototype.getErasures=function(){return this.erasures},o.prototype.setErasures=function(t){this.erasures=t},o.prototype.getOther=function(){return this.other},o.prototype.setOther=function(t){this.other=t},o.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},o.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},o.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},o}();const Pn=Wt;var wt=function(){function o(){}return o.prototype.exp=function(t){return this.expTable[t]},o.prototype.log=function(t){if(0===t)throw new Ge;return this.logTable[t]},o.addOrSubtract=function(t,i){return t^i},o}();const Yt=wt;var fe=function(){function o(t,i){if(0===i.length)throw new Ge;this.field=t;var s=i.length;if(s>1&&0===i[0]){for(var c=1;cs.length){var c=i;i=s,s=c}var h=new Int32Array(s.length),v=s.length-i.length;Jt.arraycopy(s,0,h,0,v);for(var M=v;M=t.getDegree()&&!c.isZero();){var M=c.getDegree()-t.getDegree(),O=i.multiply(c.getCoefficient(c.getDegree()),v),N=t.multiplyByMonomial(M,O),$=i.buildMonomial(M,O);s=s.addOrSubtract($),c=c.addOrSubtract(N)}return[s,c]},o.prototype.toString=function(){for(var t="",i=this.getDegree();i>=0;i--){var s=this.getCoefficient(i);if(0!==s){if(s<0?(t+=" - ",s=-s):t.length>0&&(t+=" + "),0===i||1!==s){var c=this.field.log(s);0===c?t+="1":1===c?t+="a":(t+="a^",t+=c)}0!==i&&(1===i?t+="x":(t+="x^",t+=i))}}return t},o}();const Mt=fe;var Vt=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ht=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Vt(t,o),t.kind="ArithmeticException",t}(te);const st=ht;var It=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),cn=function(o){function t(i,s,c){var h=o.call(this)||this;h.primitive=i,h.size=s,h.generatorBase=c;for(var v=new Int32Array(s),M=1,O=0;O=s&&(M^=i,M&=s-1);h.expTable=v;var N=new Int32Array(s);for(O=0;O=(s/2|0);){var $=v,q=O;if(O=N,(v=M).isZero())throw new ni("r_{i-1} was zero");M=$;for(var de=h.getZero(),we=v.getCoefficient(v.getDegree()),et=h.inverse(we);M.getDegree()>=v.getDegree()&&!M.isZero();){var vt=M.getDegree()-v.getDegree(),zt=h.multiply(M.getCoefficient(M.getDegree()),et);de=de.addOrSubtract(h.buildMonomial(vt,zt)),M=M.addOrSubtract(v.multiplyByMonomial(vt,zt))}if(N=de.multiply(O).addOrSubtract(q),M.getDegree()>=v.getDegree())throw new ki("Division algorithm failed to reduce polynomial?")}var $t=N.getCoefficient(0);if(0===$t)throw new ni("sigmaTilde(0) was zero");var Gt=h.inverse($t);return[N.multiplyScalar(Gt),M.multiplyScalar(Gt)]},o.prototype.findErrorLocations=function(t){var i=t.getDegree();if(1===i)return Int32Array.from([t.getCoefficient(1)]);for(var s=new Int32Array(i),c=0,h=this.field,v=1;v1,et,et+s-1),et+=s-1;else for(var vt=s-1;vt>=0;--vt)we[et++]=0!=(de&1<=8?o.readCode(t,i,8):o.readCode(t,i,s)<<8-s},o.convertBoolArrayToByteArray=function(t){for(var i=new Uint8Array((t.length+7)/8),s=0;s","?","[","]","{","}","CTRL_UL"],o.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],o}();const Ji=co;var tr=function(){function o(){}return o.round=function(t){return isNaN(t)?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0},o.distance=function(t,i,s,c){var h=t-s,v=i-c;return Math.sqrt(h*h+v*v)},o.sum=function(t){for(var i=0,s=0,c=t.length;s!==c;s++)i+=t[s];return i},o}();const _i=tr;var bo=function(){function o(){}return o.floatToIntBits=function(t){return t},o.MAX_VALUE=Number.MAX_SAFE_INTEGER,o}();const pr=bo;var br=function(){function o(t,i){this.x=t,this.y=i}return o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.equals=function(t){return t instanceof o&&(this.x===t.x&&this.y===t.y)},o.prototype.hashCode=function(){return 31*pr.floatToIntBits(this.x)+pr.floatToIntBits(this.y)},o.prototype.toString=function(){return"("+this.x+","+this.y+")"},o.orderBestPatterns=function(t){var h,v,M,i=this.distance(t[0],t[1]),s=this.distance(t[1],t[2]),c=this.distance(t[0],t[2]);if(s>=i&&s>=c?(v=t[0],h=t[1],M=t[2]):c>=s&&c>=i?(v=t[1],h=t[0],M=t[2]):(v=t[2],h=t[0],M=t[1]),this.crossProductZ(h,v,M)<0){var O=h;h=M,M=O}t[0]=h,t[1]=v,t[2]=M},o.distance=function(t,i){return _i.distance(t.x,t.y,i.x,i.y)},o.crossProductZ=function(t,i,s){var c=i.x,h=i.y;return(s.x-c)*(t.y-h)-(s.y-h)*(t.x-c)},o}();const $n=br;var yo=function(){function o(t,i){this.bits=t,this.points=i}return o.prototype.getBits=function(){return this.bits},o.prototype.getPoints=function(){return this.points},o}();const Fr=yo;var uo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ho=function(o){function t(i,s,c,h,v){var M=o.call(this,i,s)||this;return M.compact=c,M.nbDatablocks=h,M.nbLayers=v,M}return uo(t,o),t.prototype.getNbLayers=function(){return this.nbLayers},t.prototype.getNbDatablocks=function(){return this.nbDatablocks},t.prototype.isCompact=function(){return this.compact},t}(Fr);const to=ho;var yr=function(){function o(t,i,s,c){this.image=t,this.height=t.getHeight(),this.width=t.getWidth(),null==i&&(i=o.INIT_SIZE),null==s&&(s=t.getWidth()/2|0),null==c&&(c=t.getHeight()/2|0);var h=i/2|0;if(this.leftInit=s-h,this.rightInit=s+h,this.upInit=c-h,this.downInit=c+h,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new Se}return o.prototype.detect=function(){for(var t=this.leftInit,i=this.rightInit,s=this.upInit,c=this.downInit,h=!1,v=!0,M=!1,O=!1,N=!1,$=!1,q=!1,de=this.width,we=this.height;v;){v=!1;for(var et=!0;(et||!O)&&i=de){h=!0;break}for(var vt=!0;(vt||!N)&&c=we){h=!0;break}for(var zt=!0;(zt||!$)&&t>=0;)(zt=this.containsBlackPoint(s,c,t,!1))?(t--,v=!0,$=!0):$||t--;if(t<0){h=!0;break}for(var $t=!0;($t||!q)&&s>=0;)($t=this.containsBlackPoint(t,i,s,!0))?(s--,v=!0,q=!0):q||s--;if(s<0){h=!0;break}v&&(M=!0)}if(!h&&M){for(var Gt=i-t,an=null,bn=1;null===an&&bns||O<-1||O>c)throw new Se;h=!1,-1===M?(i[v]=0,h=!0):M===s&&(i[v]=s-1,h=!0),-1===O?(i[v+1]=0,h=!0):O===c&&(i[v+1]=c-1,h=!0)}for(h=!0,v=i.length-2;v>=0&&h;v-=2){if(M=Math.floor(i[v]),O=Math.floor(i[v+1]),M<-1||M>s||O<-1||O>c)throw new Se;h=!1,-1===M?(i[v]=0,h=!0):M===s&&(i[v]=s-1,h=!0),-1===O?(i[v+1]=0,h=!0):O===c&&(i[v+1]=c-1,h=!0)}},o}();const xl=Ba;var So=function(){function o(t,i,s,c,h,v,M,O,N){this.a11=t,this.a21=i,this.a31=s,this.a12=c,this.a22=h,this.a32=v,this.a13=M,this.a23=O,this.a33=N}return o.quadrilateralToQuadrilateral=function(t,i,s,c,h,v,M,O,N,$,q,de,we,et,vt,zt){var $t=o.quadrilateralToSquare(t,i,s,c,h,v,M,O);return o.squareToQuadrilateral(N,$,q,de,we,et,vt,zt).times($t)},o.prototype.transformPoints=function(t){for(var i=t.length,s=this.a11,c=this.a12,h=this.a13,v=this.a21,M=this.a22,O=this.a23,N=this.a31,$=this.a32,q=this.a33,de=0;de>1&127):(c<<=10,c+=(v>>2&992)+(v>>1&31))}var M=this.getCorrectedParameterData(c,this.compact);this.compact?(this.nbLayers=1+(M>>6),this.nbDataBlocks=1+(63&M)):(this.nbLayers=1+(M>>11),this.nbDataBlocks=1+(2047&M))},o.prototype.getRotation=function(t,i){var s=0;t.forEach(function(h,v,M){s=(h>>i-2<<1)+(1&h)+(s<<3)}),s=((1&s)<<11)+(s>>1);for(var c=0;c<4;c++)if(Ee.bitCount(s^this.EXPECTED_CORNER_BITS[c])<=2)return c;throw new Se},o.prototype.getCorrectedParameterData=function(t,i){var s,c;i?(s=7,c=2):(s=10,c=4);for(var h=s-c,v=new Int32Array(s),M=s-1;M>=0;--M)v[M]=15&t,t>>=4;try{new vr(_n.AZTEC_PARAM).decode(v,h)}catch{throw new Se}var N=0;for(M=0;M2){var q=this.distancePoint($,M)*this.nbCenterLayers/(this.distancePoint(h,i)*(this.nbCenterLayers+2));if(q<.75||q>1.25||!this.isWhiteOrBlackRectangle(M,O,N,$))break}i=M,s=O,c=N,h=$,v=!v}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new Se;this.compact=5===this.nbCenterLayers;var de=new $n(i.getX()+.5,i.getY()-.5),we=new $n(s.getX()+.5,s.getY()+.5),et=new $n(c.getX()-.5,c.getY()+.5),vt=new $n(h.getX()-.5,h.getY()-.5);return this.expandSquare([de,we,et,vt],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},o.prototype.getMatrixCenter=function(){var t,i,s,c;try{t=(h=new Gs(this.image).detect())[0],i=h[1],s=h[2],c=h[3]}catch{var v=this.image.getWidth()/2,M=this.image.getHeight()/2;t=this.getFirstDifferent(new kr(v+7,M-7),!1,1,-1).toResultPoint(),i=this.getFirstDifferent(new kr(v+7,M+7),!1,1,1).toResultPoint(),s=this.getFirstDifferent(new kr(v-7,M+7),!1,-1,1).toResultPoint(),c=this.getFirstDifferent(new kr(v-7,M-7),!1,-1,-1).toResultPoint()}var O=_i.round((t.getX()+c.getX()+i.getX()+s.getX())/4),N=_i.round((t.getY()+c.getY()+i.getY()+s.getY())/4);try{var h;t=(h=new Gs(this.image,15,O,N).detect())[0],i=h[1],s=h[2],c=h[3]}catch{t=this.getFirstDifferent(new kr(O+7,N-7),!1,1,-1).toResultPoint(),i=this.getFirstDifferent(new kr(O+7,N+7),!1,1,1).toResultPoint(),s=this.getFirstDifferent(new kr(O-7,N+7),!1,-1,1).toResultPoint(),c=this.getFirstDifferent(new kr(O-7,N-7),!1,-1,-1).toResultPoint()}return O=_i.round((t.getX()+c.getX()+i.getX()+s.getX())/4),N=_i.round((t.getY()+c.getY()+i.getY()+s.getY())/4),new kr(O,N)},o.prototype.getMatrixCornerPoints=function(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())},o.prototype.sampleGrid=function(t,i,s,c,h){var v=ga.getInstance(),M=this.getDimension(),O=M/2-this.nbCenterLayers,N=M/2+this.nbCenterLayers;return v.sampleGrid(t,M,M,O,O,N,O,N,N,O,N,i.getX(),i.getY(),s.getX(),s.getY(),c.getX(),c.getY(),h.getX(),h.getY())},o.prototype.sampleLine=function(t,i,s){for(var c=0,h=this.distanceResultPoint(t,i),v=h/s,M=t.getX(),O=t.getY(),N=v*(i.getX()-t.getX())/h,$=v*(i.getY()-t.getY())/h,q=0;q.1&&de<.9?0:de<=.1===N?1:-1},o.prototype.getFirstDifferent=function(t,i,s,c){for(var h=t.getX()+s,v=t.getY()+c;this.isValid(h,v)&&this.image.get(h,v)===i;)h+=s,v+=c;for(h-=s,v-=c;this.isValid(h,v)&&this.image.get(h,v)===i;)h+=s;for(h-=s;this.isValid(h,v)&&this.image.get(h,v)===i;)v+=c;return new kr(h,v-=c)},o.prototype.expandSquare=function(t,i,s){var c=s/(2*i),h=t[0].getX()-t[2].getX(),v=t[0].getY()-t[2].getY(),M=(t[0].getX()+t[2].getX())/2,O=(t[0].getY()+t[2].getY())/2,N=new $n(M+c*h,O+c*v),$=new $n(M-c*h,O-c*v);return h=t[1].getX()-t[3].getX(),v=t[1].getY()-t[3].getY(),M=(t[1].getX()+t[3].getX())/2,O=(t[1].getY()+t[3].getY())/2,[N,new $n(M+c*h,O+c*v),$,new $n(M-c*h,O-c*v)]},o.prototype.isValid=function(t,i){return t>=0&&t0&&i>(v?8:5));O=v?c:15;for(var N=Math.trunc(c/2),$=0;$=c)break;try{h=t.getBlackRow(we,h)}catch{continue}for(var et=function(Gt){if(1===Gt&&(h.reverse(),i&&!0===i.get(he.NEED_RESULT_POINT_CALLBACK))){var an=new Map;i.forEach(function(Zn,Kn){return an.set(Kn,Zn)}),an.delete(he.NEED_RESULT_POINT_CALLBACK),i=an}try{var bn=vt.decodeRow(we,h,i);if(1===Gt){bn.putMetadata(He.ORIENTATION,180);var Nn=bn.getResultPoints();null!==Nn&&(Nn[0]=new $n(s-Nn[0].getX()-1,Nn[0].getY()),Nn[1]=new $n(s-Nn[1].getX()-1,Nn[1].getY()))}return{value:bn}}catch{}},vt=this,zt=0;zt<2;zt++){var $t=et(zt);if("object"==typeof $t)return $t.value}}throw new Se},o.recordPattern=function(t,i,s){for(var c=s.length,h=0;h=v)throw new Se;for(var M=!t.get(i),O=0,N=i;N0&&c>=0;)t.get(--i)!==h&&(c--,h=!h);if(c>=0)throw new Se;o.recordPattern(t,i+1,s)},o.patternMatchVariance=function(t,i,s){for(var c=t.length,h=0,v=0,M=0;Mde?q-de:de-q;if(we>s)return Number.POSITIVE_INFINITY;N+=we}return N/h},o}());const qi=Aa;var Li=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Yr=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Li(t,o),t.findStartPattern=function(i){for(var s=i.getSize(),c=i.getNextSet(0),h=0,v=Int32Array.from([0,0,0,0,0,0]),M=c,O=!1,$=c;$=0&&i.isRange(Math.max(0,M-($-M)/2),M,!1))return Int32Array.from([M,$,de]);M+=v[0]+v[1],(v=v.slice(2,v.length-1))[h-1]=0,v[h]=0,h--}else h++;v[h]=1,O=!O}throw new Se},t.decodeCode=function(i,s,c){qi.recordPattern(i,c,s);for(var h=t.MAX_AVG_VARIANCE,v=-1,M=0;M=0)return v;throw new Se},t.prototype.decodeRow=function(i,s,c){var $,h=c&&!0===c.get(he.ASSUME_GS1),v=t.findStartPattern(s),M=v[2],O=0,N=new Uint8Array(20);switch(N[O++]=M,M){case t.CODE_START_A:$=t.CODE_CODE_A;break;case t.CODE_START_B:$=t.CODE_CODE_B;break;case t.CODE_START_C:$=t.CODE_CODE_C;break;default:throw new bt}for(var q=!1,de=!1,we="",et=v[0],vt=v[1],zt=Int32Array.from([0,0,0,0,0,0]),$t=0,Gt=0,an=M,bn=0,Nn=!0,Zn=!1,Kn=!1;!q;){var fi=de;switch(de=!1,$t=Gt,Gt=t.decodeCode(s,zt,vt),N[O++]=Gt,Gt!==t.CODE_STOP&&(Nn=!0),Gt!==t.CODE_STOP&&(an+=++bn*Gt),et=vt,vt+=zt.reduce(function(f,E){return f+E},0),Gt){case t.CODE_START_A:case t.CODE_START_B:case t.CODE_START_C:throw new bt}switch($){case t.CODE_CODE_A:if(Gt<64)we+=String.fromCharCode(Kn===Zn?" ".charCodeAt(0)+Gt:" ".charCodeAt(0)+Gt+128),Kn=!1;else if(Gt<96)we+=String.fromCharCode(Kn===Zn?Gt-64:Gt+64),Kn=!1;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_A:!Zn&&Kn?(Zn=!0,Kn=!1):Zn&&Kn?(Zn=!1,Kn=!1):Kn=!0;break;case t.CODE_SHIFT:de=!0,$=t.CODE_CODE_B;break;case t.CODE_CODE_B:$=t.CODE_CODE_B;break;case t.CODE_CODE_C:$=t.CODE_CODE_C;break;case t.CODE_STOP:q=!0}break;case t.CODE_CODE_B:if(Gt<96)we+=String.fromCharCode(Kn===Zn?" ".charCodeAt(0)+Gt:" ".charCodeAt(0)+Gt+128),Kn=!1;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_B:!Zn&&Kn?(Zn=!0,Kn=!1):Zn&&Kn?(Zn=!1,Kn=!1):Kn=!0;break;case t.CODE_SHIFT:de=!0,$=t.CODE_CODE_A;break;case t.CODE_CODE_A:$=t.CODE_CODE_A;break;case t.CODE_CODE_C:$=t.CODE_CODE_C;break;case t.CODE_STOP:q=!0}break;case t.CODE_CODE_C:if(Gt<100)Gt<10&&(we+="0"),we+=Gt;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_CODE_A:$=t.CODE_CODE_A;break;case t.CODE_CODE_B:$=t.CODE_CODE_B;break;case t.CODE_STOP:q=!0}}fi&&($=$===t.CODE_CODE_A?t.CODE_CODE_B:t.CODE_CODE_A)}var Gi=vt-et;if(vt=s.getNextUnset(vt),!s.isRange(vt,Math.min(s.getSize(),vt+(vt-et)/2),!1))throw new Se;if((an-=bn*$t)%103!==$t)throw new St;var Vi=we.length;if(0===Vi)throw new Se;Vi>0&&Nn&&(we=we.substring(0,$===t.CODE_CODE_C?Vi-2:Vi-1));for(var go=(v[1]+v[0])/2,Dr=et+Gi/2,hs=N.length,Vl=new Uint8Array(hs),ic=0;ic=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},al=function(o){function t(i,s){void 0===i&&(i=!1),void 0===s&&(s=!1);var c=o.call(this)||this;return c.usingCheckDigit=i,c.extendedMode=s,c.decodeRowResult="",c.counters=new Int32Array(9),c}return Ha(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,N=this.counters;N.fill(0),this.decodeRowResult="";var we,et,$=t.findAsteriskPattern(s,N),q=s.getNextSet($[1]),de=s.getSize();do{t.recordPattern(s,q,N);var vt=t.toNarrowWidePattern(N);if(vt<0)throw new Se;we=t.patternToChar(vt),this.decodeRowResult+=we,et=q;try{for(var zt=(h=void 0,wr(N)),$t=zt.next();!$t.done;$t=zt.next())q+=$t.value}catch(hs){h={error:hs}}finally{try{$t&&!$t.done&&(v=zt.return)&&v.call(zt)}finally{if(h)throw h.error}}q=s.getNextSet(q)}while("*"!==we);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var Vi,an=0;try{for(var bn=wr(N),Nn=bn.next();!Nn.done;Nn=bn.next())an+=Nn.value}catch(hs){M={error:hs}}finally{try{Nn&&!Nn.done&&(O=bn.return)&&O.call(bn)}finally{if(M)throw M.error}}if(q!==de&&2*(q-et-an)v&&(O=q)}catch(vt){s={error:vt}}finally{try{$&&!$.done&&(c=N.return)&&c.call(N)}finally{if(s)throw s.error}}v=O,M=0;for(var de=0,we=0,et=0;etv&&(we|=1<0;et++){var q;if((q=i[et])>v&&(M--,2*q>=de))return-1}return we}}while(M>3);return-1},t.patternToChar=function(i){for(var s=0;s="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)+32);break;case"$":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)-64);break;case"%":if(M>="A"&&M<="E")O=String.fromCharCode(M.charCodeAt(0)-38);else if(M>="F"&&M<="J")O=String.fromCharCode(M.charCodeAt(0)-11);else if(M>="K"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)+16);else if(M>="P"&&M<="T")O=String.fromCharCode(M.charCodeAt(0)+43);else if("U"===M)O="\0";else if("V"===M)O="@";else if("W"===M)O="`";else{if("X"!==M&&"Y"!==M&&"Z"!==M)throw new bt;O="\x7f"}break;case"/":if(M>="A"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)-32);else{if("Z"!==M)throw new bt;O=":"}}c+=O,h++}else c+=v}return c},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",t.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],t.ASTERISK_ENCODING=148,t}(qi);const Vr=al;var Es=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Js=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ll=function(o){function t(){var i=o.call(this)||this;return i.decodeRowResult="",i.counters=new Int32Array(6),i}return Es(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,we,et,N=this.findAsteriskPattern(s),$=s.getNextSet(N[1]),q=s.getSize(),de=this.counters;de.fill(0),this.decodeRowResult="";do{t.recordPattern(s,$,de);var vt=this.toPattern(de);if(vt<0)throw new Se;we=this.patternToChar(vt),this.decodeRowResult+=we,et=$;try{for(var zt=(h=void 0,Js(de)),$t=zt.next();!$t.done;$t=zt.next())$+=$t.value}catch(Gi){h={error:Gi}}finally{try{$t&&!$t.done&&(v=zt.return)&&v.call(zt)}finally{if(h)throw h.error}}$=s.getNextSet($)}while("*"!==we);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var an=0;try{for(var bn=Js(de),Nn=bn.next();!Nn.done;Nn=bn.next())an+=Nn.value}catch(Gi){M={error:Gi}}finally{try{Nn&&!Nn.done&&(O=bn.return)&&O.call(bn)}finally{if(M)throw M.error}}if($===q||!s.get($))throw new Se;if(this.decodeRowResult.length<2)throw new Se;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var Zn=this.decodeExtended(this.decodeRowResult),fi=et+an/2;return new We(Zn,null,0,[new $n((N[1]+N[0])/2,i),new $n(fi,i)],be.CODE_93,(new Date).getTime())},t.prototype.findAsteriskPattern=function(i){var s=i.getSize(),c=i.getNextSet(0);this.counters.fill(0);for(var h=this.counters,v=c,M=!1,O=h.length,N=0,$=c;$4)return-1;if(1&q)N<<=de;else for(var we=0;we="a"&&v<="d"){if(h>=s-1)throw new bt;var M=i.charAt(h+1),O="\0";switch(v){case"d":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)+32);break;case"a":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)-64);break;case"b":if(M>="A"&&M<="E")O=String.fromCharCode(M.charCodeAt(0)-38);else if(M>="F"&&M<="J")O=String.fromCharCode(M.charCodeAt(0)-11);else if(M>="K"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)+16);else if(M>="P"&&M<="T")O=String.fromCharCode(M.charCodeAt(0)+43);else if("U"===M)O="\0";else if("V"===M)O="@";else if("W"===M)O="`";else{if(!(M>="X"&&M<="Z"))throw new bt;O=String.fromCharCode(127)}break;case"c":if(M>="A"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)-32);else{if("Z"!==M)throw new bt;O=":"}}c+=O,h++}else c+=v}return c},t.prototype.checkChecksums=function(i){var s=i.length;this.checkOneChecksum(i,s-2,20),this.checkOneChecksum(i,s-1,15)},t.prototype.checkOneChecksum=function(i,s,c){for(var h=1,v=0,M=s-1;M>=0;M--)v+=h*t.ALPHABET_STRING.indexOf(i.charAt(M)),++h>c&&(h=1);if(i.charAt(s)!==t.ALPHABET_STRING[v%47])throw new St},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",t.ASTERISK_ENCODING=(t.CHARACTER_ENCODINGS=[276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350])[47],t}(qi);const er=ll;var qn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),_r=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.narrowLineWidth=-1,i}return qn(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M=this.decodeStart(s),O=this.decodeEnd(s),N=new Ce;t.decodeMiddle(s,M[1],O[0],N);var $=N.toString(),q=null;null!=c&&(q=c.get(he.ALLOWED_LENGTHS)),null==q&&(q=t.DEFAULT_ALLOWED_LENGTHS);var de=$.length,we=!1,et=0;try{for(var vt=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(q),zt=vt.next();!zt.done;zt=vt.next()){var $t=zt.value;if(de===$t){we=!0;break}$t>et&&(et=$t)}}catch(bn){h={error:bn}}finally{try{zt&&!zt.done&&(v=vt.return)&&v.call(vt)}finally{if(h)throw h.error}}if(!we&&de>et&&(we=!0),!we)throw new bt;var Gt=[new $n(M[1],i),new $n(O[0],i)];return new We($,null,0,Gt,be.ITF,(new Date).getTime())},t.decodeMiddle=function(i,s,c,h){var v=new Int32Array(10),M=new Int32Array(5),O=new Int32Array(5);for(v.fill(0),M.fill(0),O.fill(0);s0&&h>=0&&!i.get(h);h--)c--;if(0!==c)throw new Se},t.skipWhiteSpace=function(i){var s=i.getSize(),c=i.getNextSet(0);if(c===s)throw new Se;return c},t.prototype.decodeEnd=function(i){i.reverse();try{var s=t.skipWhiteSpace(i),c=void 0;try{c=t.findGuardPattern(i,s,t.END_PATTERN_REVERSED[0])}catch(v){v instanceof Se&&(c=t.findGuardPattern(i,s,t.END_PATTERN_REVERSED[1]))}this.validateQuietZone(i,c[0]);var h=c[0];return c[0]=i.getSize()-c[1],c[1]=i.getSize()-h,c}finally{i.reverse()}},t.findGuardPattern=function(i,s,c){var h=c.length,v=new Int32Array(h),M=i.getSize(),O=!1,N=0,$=s;v.fill(0);for(var q=s;q=0)return c%10;throw new Se},t.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],t.MAX_AVG_VARIANCE=.38,t.MAX_INDIVIDUAL_VARIANCE=.5,t.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],t.START_PATTERN=Int32Array.from([1,1,1,1]),t.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],t}(qi);const wo=_r;var jo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),no=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.decodeRowStringBuffer="",i}return jo(t,o),t.findStartGuardPattern=function(i){for(var c,s=!1,h=0,v=Int32Array.from([0,0,0]);!s;){v=Int32Array.from([0,0,0]);var M=(c=t.findGuardPattern(i,h,!1,this.START_END_PATTERN,v))[0],O=M-((h=c[1])-M);O>=0&&(s=i.isRange(O,M,!1))}return c},t.checkChecksum=function(i){return t.checkStandardUPCEANChecksum(i)},t.checkStandardUPCEANChecksum=function(i){var s=i.length;if(0===s)return!1;var c=parseInt(i.charAt(s-1),10);return t.getStandardUPCEANChecksum(i.substring(0,s-1))===c},t.getStandardUPCEANChecksum=function(i){for(var s=i.length,c=0,h=s-1;h>=0;h-=2){if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}for(c*=3,h=s-2;h>=0;h-=2){var v;if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}return(1e3-c)%10},t.decodeEnd=function(i,s){return t.findGuardPattern(i,s,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t.findGuardPatternWithoutCounters=function(i,s,c,h){return this.findGuardPattern(i,s,c,h,new Int32Array(h.length))},t.findGuardPattern=function(i,s,c,h,v){for(var M=i.getSize(),O=0,N=s=c?i.getNextUnset(s):i.getNextSet(s),$=h.length,q=c,de=s;de=0)return M;throw new Se},t.MAX_AVG_VARIANCE=.48,t.MAX_INDIVIDUAL_VARIANCE=.7,t.START_END_PATTERN=Int32Array.from([1,1,1]),t.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),t.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],t}(qi);const Ao=no;var nr=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ps=function(){function o(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return o.prototype.decodeRow=function(t,i,s){var c=this.decodeRowStringBuffer,h=this.decodeMiddle(i,s,c),v=c.toString(),M=o.parseExtensionString(v),O=[new $n((s[0]+s[1])/2,t),new $n(h,t)],N=new We(v,null,0,O,be.UPC_EAN_EXTENSION,(new Date).getTime());return null!=M&&N.putAllMetadata(M),N},o.prototype.decodeMiddle=function(t,i,s){var c,h,v=this.decodeMiddleCounters;v[0]=0,v[1]=0,v[2]=0,v[3]=0;for(var M=t.getSize(),O=i[1],N=0,$=0;$<5&&O=10&&(N|=1<<4-$),4!==$&&(O=t.getNextSet(O),O=t.getNextUnset(O))}if(5!==s.length)throw new Se;var vt=this.determineCheckDigit(N);if(o.extensionChecksum(s.toString())!==vt)throw new Se;return O},o.extensionChecksum=function(t){for(var i=t.length,s=0,c=i-2;c>=0;c-=2)s+=t.charAt(c).charCodeAt(0)-"0".charCodeAt(0);for(s*=3,c=i-1;c>=0;c-=2)s+=t.charAt(c).charCodeAt(0)-"0".charCodeAt(0);return(s*=3)%10},o.prototype.determineCheckDigit=function(t){for(var i=0;i<10;i++)if(t===this.CHECK_DIGIT_ENCODINGS[i])return i;throw new Se},o.parseExtensionString=function(t){if(5!==t.length)return null;var i=o.parseExtension5String(t);return null==i?null:new Map([[He.SUGGESTED_PRICE,i]])},o.parseExtension5String=function(t){var i;switch(t.charAt(0)){case"0":i="\xa3";break;case"5":i="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}i="";break;default:i=""}var s=parseInt(t.substring(1)),h=s%100;return i+(s/100).toString()+"."+(h<10?"0"+h:h.toString())},o}();const va=ps;var Ti=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qs=function(){function o(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return o.prototype.decodeRow=function(t,i,s){var c=this.decodeRowStringBuffer,h=this.decodeMiddle(i,s,c),v=c.toString(),M=o.parseExtensionString(v),O=[new $n((s[0]+s[1])/2,t),new $n(h,t)],N=new We(v,null,0,O,be.UPC_EAN_EXTENSION,(new Date).getTime());return null!=M&&N.putAllMetadata(M),N},o.prototype.decodeMiddle=function(t,i,s){var c,h,v=this.decodeMiddleCounters;v[0]=0,v[1]=0,v[2]=0,v[3]=0;for(var M=t.getSize(),O=i[1],N=0,$=0;$<2&&O=10&&(N|=1<<1-$),1!==$&&(O=t.getNextSet(O),O=t.getNextUnset(O))}if(2!==s.length)throw new Se;if(parseInt(s.toString())%4!==N)throw new Se;return O},o.parseExtensionString=function(t){return 2!==t.length?null:new Map([[He.ISSUE_NUMBER,parseInt(t)]])},o}();const ba=qs;var Qs=function(){function o(){}return o.decodeRow=function(t,i,s){var c=Ao.findGuardPattern(i,s,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new va).decodeRow(t,i,c)}catch{return(new ba).decodeRow(t,i,c)}},o.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),o}();const wi=Qs;var Oo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ko=function(o){function t(){var i=o.call(this)||this;i.decodeRowStringBuffer="",t.L_AND_G_PATTERNS=t.L_PATTERNS.map(function(M){return Int32Array.from(M)});for(var s=10;s<20;s++){for(var c=t.L_PATTERNS[s-10],h=new Int32Array(c.length),v=0;v=s.getSize()||!s.isRange(et,vt,!1))throw new Se;var zt=$.toString();if(zt.length<8)throw new bt;if(!t.checkChecksum(zt))throw new St;var $t=(h[1]+h[0])/2,Gt=(de[1]+de[0])/2,an=this.getBarcodeFormat(),bn=[new $n($t,i),new $n(Gt,i)],Nn=new We(zt,null,0,bn,an,(new Date).getTime()),Zn=0;try{var Kn=wi.decodeRow(i,s,de[1]);Nn.putMetadata(He.UPC_EAN_EXTENSION,Kn.getText()),Nn.putAllMetadata(Kn.getResultMetadata()),Nn.addResultPoints(Kn.getResultPoints()),Zn=Kn.getText().length}catch{}var fi=null==c?null:c.get(he.ALLOWED_EAN_EXTENSIONS);if(null!=fi){var Gi=!1;for(var Vi in fi)if(Zn.toString()===Vi){Gi=!0;break}if(!Gi)throw new Se}return Nn},t.checkChecksum=function(i){return t.checkStandardUPCEANChecksum(i)},t.checkStandardUPCEANChecksum=function(i){var s=i.length;if(0===s)return!1;var c=parseInt(i.charAt(s-1),10);return t.getStandardUPCEANChecksum(i.substring(0,s-1))===c},t.getStandardUPCEANChecksum=function(i){for(var s=i.length,c=0,h=s-1;h>=0;h-=2){if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}for(c*=3,h=s-2;h>=0;h-=2){var v;if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}return(1e3-c)%10},t.decodeEnd=function(i,s){return t.findGuardPattern(i,s,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t}(Ao);const or=Ko;var Xs=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ml=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Sr=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=Int32Array.from([0,0,0,0]),i}return Xs(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M,O,N=this.decodeMiddleCounters;N[0]=0,N[1]=0,N[2]=0,N[3]=0;for(var $=i.getSize(),q=s[1],de=0,we=0;we<6&&q<$;we++){var et=or.decodeDigit(i,N,q,or.L_AND_G_PATTERNS);c+=String.fromCharCode("0".charCodeAt(0)+et%10);try{for(var vt=(h=void 0,Ml(N)),zt=vt.next();!zt.done;zt=vt.next())q+=zt.value}catch(Nn){h={error:Nn}}finally{try{zt&&!zt.done&&(v=vt.return)&&v.call(vt)}finally{if(h)throw h.error}}et>=10&&(de|=1<<5-we)}for(c=t.determineFirstDigit(c,de),q=or.findGuardPattern(i,q,!0,or.MIDDLE_PATTERN,new Int32Array(or.MIDDLE_PATTERN.length).fill(0))[1],we=0;we<6&&q<$;we++){et=or.decodeDigit(i,N,q,or.L_PATTERNS),c+=String.fromCharCode("0".charCodeAt(0)+et);try{for(var an=(M=void 0,Ml(N)),bn=an.next();!bn.done;bn=an.next())q+=bn.value}catch(Kn){M={error:Kn}}finally{try{bn&&!bn.done&&(O=an.return)&&O.call(an)}finally{if(M)throw M.error}}}return{rowOffset:q,resultString:c}},t.prototype.getBarcodeFormat=function(){return be.EAN_13},t.determineFirstDigit=function(i,s){for(var c=0;c<10;c++)if(s===this.FIRST_DIGIT_ENCODINGS[c])return String.fromCharCode("0".charCodeAt(0)+c)+i;throw new Se},t.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],t}(or);const jr=Sr;var xo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),_s=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ai=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=Int32Array.from([0,0,0,0]),i}return xo(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M,O,N=this.decodeMiddleCounters;N[0]=0,N[1]=0,N[2]=0,N[3]=0;for(var $=i.getSize(),q=s[1],de=0;de<4&&q<$;de++){var we=or.decodeDigit(i,N,q,or.L_PATTERNS);c+=String.fromCharCode("0".charCodeAt(0)+we);try{for(var et=(h=void 0,_s(N)),vt=et.next();!vt.done;vt=et.next())q+=vt.value}catch(bn){h={error:bn}}finally{try{vt&&!vt.done&&(v=et.return)&&v.call(et)}finally{if(h)throw h.error}}}for(q=or.findGuardPattern(i,q,!0,or.MIDDLE_PATTERN,new Int32Array(or.MIDDLE_PATTERN.length).fill(0))[1],de=0;de<4&&q<$;de++){we=or.decodeDigit(i,N,q,or.L_PATTERNS),c+=String.fromCharCode("0".charCodeAt(0)+we);try{for(var Gt=(M=void 0,_s(N)),an=Gt.next();!an.done;an=Gt.next())q+=an.value}catch(Zn){M={error:Zn}}finally{try{an&&!an.done&&(O=Gt.return)&&O.call(Gt)}finally{if(M)throw M.error}}}return{rowOffset:q,resultString:c}},t.prototype.getBarcodeFormat=function(){return be.EAN_8},t}(or);const Jo=Ai;var Io=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ys=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.ean13Reader=new jr,i}return Io(t,o),t.prototype.getBarcodeFormat=function(){return be.UPC_A},t.prototype.decode=function(i,s){return this.maybeReturnResult(this.ean13Reader.decode(i))},t.prototype.decodeRow=function(i,s,c){return this.maybeReturnResult(this.ean13Reader.decodeRow(i,s,c))},t.prototype.decodeMiddle=function(i,s,c){return this.ean13Reader.decodeMiddle(i,s,c)},t.prototype.maybeReturnResult=function(i){var s=i.getText();if("0"===s.charAt(0)){var c=new We(s.substring(1),null,null,i.getResultPoints(),be.UPC_A);return null!=i.getResultMetadata()&&c.putAllMetadata(i.getResultMetadata()),c}throw new Se},t.prototype.reset=function(){this.ean13Reader.reset()},t}(or);const fo=Ys;var Zr=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ms=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Co=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=new Int32Array(4),i}return Zr(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M=this.decodeMiddleCounters.map(function(zt){return zt});M[0]=0,M[1]=0,M[2]=0,M[3]=0;for(var O=i.getSize(),N=s[1],$=0,q=0;q<6&&N=10&&($|=1<<5-q)}return t.determineNumSysAndCheckDigit(new Ce(c),$),N},t.prototype.decodeEnd=function(i,s){return t.findGuardPatternWithoutCounters(i,s,!0,t.MIDDLE_END_PATTERN)},t.prototype.checkChecksum=function(i){return or.checkChecksum(t.convertUPCEtoUPCA(i))},t.determineNumSysAndCheckDigit=function(i,s){for(var c=0;c<=1;c++)for(var h=0;h<10;h++)if(s===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[c][h])return i.insert(0,"0"+c),void i.append("0"+h);throw Se.getNotFoundInstance()},t.prototype.getBarcodeFormat=function(){return be.UPC_E},t.convertUPCEtoUPCA=function(i){var s=i.slice(1,7).split("").map(function(v){return v.charCodeAt(0)}),c=new Ce;c.append(i.charAt(0));var h=s[5];switch(h){case 0:case 1:case 2:c.appendChars(s,0,2),c.append(h),c.append("0000"),c.appendChars(s,2,3);break;case 3:c.appendChars(s,0,3),c.append("00000"),c.appendChars(s,3,2);break;case 4:c.appendChars(s,0,4),c.append("00000"),c.append(s[4]);break;default:c.appendChars(s,0,5),c.append("0000"),c.append(h)}return i.length>=8&&c.append(i.charAt(7)),c.toString()},t.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],t}(or);const Br=Co;var ea=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),po=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},io=function(o){function t(i){var s=o.call(this)||this,c=null==i?null:i.get(he.POSSIBLE_FORMATS),h=[];return null!=c&&(c.indexOf(be.EAN_13)>-1&&h.push(new jr),c.indexOf(be.UPC_A)>-1&&h.push(new fo),c.indexOf(be.EAN_8)>-1&&h.push(new Jo),c.indexOf(be.UPC_E)>-1&&h.push(new Br)),0===h.length&&(h.push(new jr),h.push(new fo),h.push(new Jo),h.push(new Br)),s.readers=h,s}return ea(t,o),t.prototype.decodeRow=function(i,s,c){var h,v;try{for(var M=po(this.readers),O=M.next();!O.done;O=M.next()){var N=O.value;try{var $=N.decodeRow(i,s,c),q=$.getBarcodeFormat()===be.EAN_13&&"0"===$.getText().charAt(0),de=null==c?null:c.get(he.POSSIBLE_FORMATS),we=null==de||de.includes(be.UPC_A);if(q&&we){var et=$.getRawBytes(),vt=new We($.getText().substring(1),et,et?et.length:null,$.getResultPoints(),be.UPC_A);return vt.putAllMetadata($.getResultMetadata()),vt}return $}catch{}}}catch(zt){h={error:zt}}finally{try{O&&!O.done&&(v=M.return)&&v.call(M)}finally{if(h)throw h.error}}throw new Se},t.prototype.reset=function(){var i,s;try{for(var c=po(this.readers),h=c.next();!h.done;h=c.next())h.value.reset()}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},t}(qi);const qo=io;var Ss=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ya=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.CODA_BAR_CHAR_SET={nnnnnww:"0",nnnnwwn:"1",nnnwnnw:"2",wwnnnnn:"3",nnwnnwn:"4",wnnnnwn:"5",nwnnnnw:"6",nwnnwnn:"7",nwwnnnn:"8",wnnwnnn:"9",nnnwwnn:"-",nnwwnnn:"$",wnnnwnw:":",wnwnnnw:"/",wnwnwnn:".",nnwwwww:"+",nnwwnwn:"A",nwnwnnw:"B",nnnwnww:"C",nnnwwwn:"D"},i}return Ss(t,o),t.prototype.decodeRow=function(i,s,c){var h=this.getValidRowData(s);if(!h)throw new Se;var v=this.codaBarDecodeRow(h.row);if(!v)throw new Se;return new We(v,null,0,[new $n(h.left,i),new $n(h.right,i)],be.CODABAR,(new Date).getTime())},t.prototype.getValidRowData=function(i){var s=i.toArray(),c=s.indexOf(!0);if(-1===c)return null;var h=s.lastIndexOf(!0);if(h<=c)return null;for(var v=[],M=(s=s.slice(c,h+1))[0],O=1,N=1;N0;){var v=i.splice(0,8).splice(0,7).map(function(O){return Oh&&(h=s[v],c=v);i[c]++},t.decrement=function(i,s){for(var c=0,h=s[0],v=1;v=t.MIN_FINDER_PATTERN_RATIO&&M<=t.MAX_FINDER_PATTERN_RATIO){var O=Number.MAX_SAFE_INTEGER,N=Number.MIN_SAFE_INTEGER;try{for(var $=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),q=$.next();!q.done;q=$.next()){var de=q.value;de>N&&(N=de),de=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),O=M.next();!O.done;O=M.next())v+=O.value}catch(Gt){c={error:Gt}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}for(var $=0,q=0,de=t.length,we=0;we=de-we-1&&(vt-=o.combins(v-et-(de-we),de-we-2)),de-we-1>1){for(var zt=0,$t=v-et-(de-we-2);$t>i;$t--)zt+=o.combins(v-et-$t-1,de-we-3);vt-=zt*(de-1-we)}else v-et>i&&vt--;$+=vt}v-=et}return $},o.combins=function(t,i){var s,c;t-i>i?(c=i,s=t-i):(c=t-i,s=i);for(var h=1,v=1,M=t;M>s;M--)h*=M,v<=c&&(h/=v,v++);for(;v<=c;)h/=v,v++;return h},o}();const Qn=Ht;var Ni=function(){function o(){}return o.buildBitArray=function(t){var i=2*t.length-1;null==t[t.length-1].getRightChar()&&(i-=1);for(var c=new me(12*i),h=0,M=t[0].getRightChar().getValue(),O=11;O>=0;--O)M&1<=0;--q)$&1<=0;--q)de&1<10||c<0||c>10)throw new bt;return h.firstDigit=s,h.secondDigit=c,h}return Xo(t,o),t.prototype.getFirstDigit=function(){return this.firstDigit},t.prototype.getSecondDigit=function(){return this.secondDigit},t.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},t.prototype.isFirstDigitFNC1=function(){return this.firstDigit===t.FNC1},t.prototype.isSecondDigitFNC1=function(){return this.secondDigit===t.FNC1},t.prototype.isAnyFNC1=function(){return this.firstDigit===t.FNC1||this.secondDigit===t.FNC1},t.FNC1=10,t}(Lr);const Ms=Pr;var As=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qr=function(){function o(){}return o.parseFieldsInGeneralPurpose=function(t){var i,s,c,h,v,M,O,N;if(!t)return null;if(t.length<2)throw new Se;var $=t.substring(0,2);try{for(var q=As(o.TWO_DIGIT_DATA_LENGTH),de=q.next();!de.done;de=q.next())if((we=de.value)[0]===$)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(2,we[2],t):o.processFixedAI(2,we[1],t)}catch(Zn){i={error:Zn}}finally{try{de&&!de.done&&(s=q.return)&&s.call(q)}finally{if(i)throw i.error}}if(t.length<3)throw new Se;var et=t.substring(0,3);try{for(var vt=As(o.THREE_DIGIT_DATA_LENGTH),zt=vt.next();!zt.done;zt=vt.next())if((we=zt.value)[0]===et)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(3,we[2],t):o.processFixedAI(3,we[1],t)}catch(Zn){c={error:Zn}}finally{try{zt&&!zt.done&&(h=vt.return)&&h.call(vt)}finally{if(c)throw c.error}}try{for(var $t=As(o.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),Gt=$t.next();!Gt.done;Gt=$t.next())if((we=Gt.value)[0]===et)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(4,we[2],t):o.processFixedAI(4,we[1],t)}catch(Zn){v={error:Zn}}finally{try{Gt&&!Gt.done&&(M=$t.return)&&M.call($t)}finally{if(v)throw v.error}}if(t.length<4)throw new Se;var an=t.substring(0,4);try{for(var bn=As(o.FOUR_DIGIT_DATA_LENGTH),Nn=bn.next();!Nn.done;Nn=bn.next()){var we;if((we=Nn.value)[0]===an)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(4,we[2],t):o.processFixedAI(4,we[1],t)}}catch(Zn){O={error:Zn}}finally{try{Nn&&!Nn.done&&(N=bn.return)&&N.call(bn)}finally{if(O)throw O.error}}throw new Se},o.processFixedAI=function(t,i,s){if(s.lengththis.information.getSize())return t+4<=this.information.getSize();for(var i=t;ithis.information.getSize()){var i=this.extractNumericValueFromBitArray(t,4);return new Ms(this.information.getSize(),0===i?Ms.FNC1:i-1,Ms.FNC1)}var s=this.extractNumericValueFromBitArray(t,7);return new Ms(t+7,(s-8)/11,(s-8)%11)},o.prototype.extractNumericValueFromBitArray=function(t,i){return o.extractNumericValueFromBitArray(this.information,t,i)},o.extractNumericValueFromBitArray=function(t,i,s){for(var c=0,h=0;hthis.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(t,5);if(i>=5&&i<16)return!0;if(t+7>this.information.getSize())return!1;var s=this.extractNumericValueFromBitArray(t,7);if(s>=64&&s<116)return!0;if(t+8>this.information.getSize())return!1;var c=this.extractNumericValueFromBitArray(t,8);return c>=232&&c<253},o.prototype.decodeIsoIec646=function(t){var i=this.extractNumericValueFromBitArray(t,5);if(15===i)return new Qo(t+5,Qo.FNC1);if(i>=5&&i<15)return new Qo(t+5,"0"+(i-5));var h,s=this.extractNumericValueFromBitArray(t,7);if(s>=64&&s<90)return new Qo(t+7,""+(s+1));if(s>=90&&s<116)return new Qo(t+7,""+(s+7));switch(this.extractNumericValueFromBitArray(t,8)){case 232:h="!";break;case 233:h='"';break;case 234:h="%";break;case 235:h="&";break;case 236:h="'";break;case 237:h="(";break;case 238:h=")";break;case 239:h="*";break;case 240:h="+";break;case 241:h=",";break;case 242:h="-";break;case 243:h=".";break;case 244:h="/";break;case 245:h=":";break;case 246:h=";";break;case 247:h="<";break;case 248:h="=";break;case 249:h=">";break;case 250:h="?";break;case 251:h="_";break;case 252:h=" ";break;default:throw new bt}return new Qo(t+8,h)},o.prototype.isStillAlpha=function(t){if(t+5>this.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(t,5);if(i>=5&&i<16)return!0;if(t+6>this.information.getSize())return!1;var s=this.extractNumericValueFromBitArray(t,6);return s>=16&&s<63},o.prototype.decodeAlphanumeric=function(t){var i=this.extractNumericValueFromBitArray(t,5);if(15===i)return new Qo(t+5,Qo.FNC1);if(i>=5&&i<15)return new Qo(t+5,"0"+(i-5));var c,s=this.extractNumericValueFromBitArray(t,6);if(s>=32&&s<58)return new Qo(t+6,""+(s+33));switch(s){case 58:c="*";break;case 59:c=",";break;case 60:c="-";break;case 61:c=".";break;case 62:c="/";break;default:throw new ki("Decoding invalid alphanumeric value: "+s)}return new Qo(t+6,c)},o.prototype.isAlphaTo646ToAlphaLatch=function(t){if(t+1>this.information.getSize())return!1;for(var i=0;i<5&&i+tthis.information.getSize())return!1;for(var i=t;ithis.information.getSize())return!1;for(var i=0;i<4&&i+t=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ar=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.pairs=new Array(t.MAX_PAIRS),i.rows=new Array,i.startEnd=[2],i}return ar(t,o),t.prototype.decodeRow=function(i,s,c){this.pairs.length=0,this.startFromEven=!1;try{return t.constructResult(this.decodeRow2pairs(i,s))}catch{}return this.pairs.length=0,this.startFromEven=!0,t.constructResult(this.decodeRow2pairs(i,s))},t.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},t.prototype.decodeRow2pairs=function(i,s){for(var c=!1;!c;)try{this.pairs.push(this.retrieveNextPair(s,this.pairs,i))}catch(M){if(M instanceof Se){if(!this.pairs.length)throw new Se;c=!0}}if(this.checkChecksum())return this.pairs;var h;if(h=!!this.rows.length,this.storeRow(i,!1),h){var v=this.checkRowsBoolean(!1);if(null!=v||null!=(v=this.checkRowsBoolean(!0)))return v}throw new Se},t.prototype.checkRowsBoolean=function(i){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,i&&(this.rows=this.rows.reverse());var s=null;try{s=this.checkRows(new Array,0)}catch(c){console.log(c)}return i&&(this.rows=this.rows.reverse()),s},t.prototype.checkRows=function(i,s){for(var c,h,v=s;vM.length)){for(var O=!0,N=0;Ni){v=M.isEquivalent(this.pairs);break}h=M.isEquivalent(this.pairs),c++}v||h||t.isPartialRow(this.pairs,this.rows)||(this.rows.push(c,new hr(this.pairs,i,s)),this.removePartialRows(this.pairs,this.rows))},t.prototype.removePartialRows=function(i,s){var c,h,v,M,O,N;try{for(var $=xi(s),q=$.next();!q.done;q=$.next()){var de=q.value;if(de.getPairs().length!==i.length)try{for(var et=(v=void 0,xi(de.getPairs())),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value;try{for(var Gt=(O=void 0,xi(i)),an=Gt.next();!an.done;an=Gt.next())if(li.equals(zt,an.value)){!0;break}}catch(Nn){O={error:Nn}}finally{try{an&&!an.done&&(N=Gt.return)&&N.call(Gt)}finally{if(O)throw O.error}}}}catch(Nn){v={error:Nn}}finally{try{vt&&!vt.done&&(M=et.return)&&M.call(et)}finally{if(v)throw v.error}}}}catch(Nn){c={error:Nn}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}},t.isPartialRow=function(i,s){var c,h,v,M,O,N;try{for(var $=xi(s),q=$.next();!q.done;q=$.next()){var de=q.value,we=!0;try{for(var et=(v=void 0,xi(i)),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value,$t=!1;try{for(var Gt=(O=void 0,xi(de.getPairs())),an=Gt.next();!an.done;an=Gt.next())if(zt.equals(an.value)){$t=!0;break}}catch(Nn){O={error:Nn}}finally{try{an&&!an.done&&(N=Gt.return)&&N.call(Gt)}finally{if(O)throw O.error}}if(!$t){we=!1;break}}}catch(Nn){v={error:Nn}}finally{try{vt&&!vt.done&&(M=et.return)&&M.call(et)}finally{if(v)throw v.error}}if(we)return!0}}catch(Nn){c={error:Nn}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}return!1},t.prototype.getRows=function(){return this.rows},t.constructResult=function(i){var c=function pn(o){try{if(o.get(1))return new gs(o);if(!o.get(2))return new Os(o);switch(Va.extractNumericValueFromBitArray(o,1,4)){case 4:return new xa(o);case 5:return new bc(o)}switch(Va.extractNumericValueFromBitArray(o,1,5)){case 12:return new is(o);case 13:return new Ue(o)}switch(Va.extractNumericValueFromBitArray(o,1,7)){case 56:return new kt(o,"310","11");case 57:return new kt(o,"320","11");case 58:return new kt(o,"310","13");case 59:return new kt(o,"320","13");case 60:return new kt(o,"310","15");case 61:return new kt(o,"320","15");case 62:return new kt(o,"310","17");case 63:return new kt(o,"320","17")}}catch(c){throw console.log(c),new ki("unknown decoder: "+o)}}(Zo.buildBitArray(i)),h=c.parseInformation(),v=i[0].getFinderPattern().getResultPoints(),M=i[i.length-1].getFinderPattern().getResultPoints();return new We(h,null,null,[v[0],v[1],M[0],M[1]],be.RSS_EXPANDED,null)},t.prototype.checkChecksum=function(){var i=this.pairs.get(0),s=i.getLeftChar(),c=i.getRightChar();if(null===c)return!1;for(var h=c.getChecksumPortion(),v=2,M=1;M=0?c:this.isEmptyPair(s)?0:s[s.length-1].getFinderPattern().getStartEnd()[1];var N=s.length%2!=0;this.startFromEven&&(N=!N);for(var $=!1;M=0&&!i.get(O);)O--;O++,h=this.startEnd[0]-O,v=O,M=this.startEnd[1]}else v=this.startEnd[0],h=(M=i.getNextUnset(this.startEnd[1]+1))-this.startEnd[1];var $,N=this.getDecodeFinderCounters();Jt.arraycopy(N,0,N,1,N.length-1),N[0]=h;try{$=this.parseFinderValue(N,t.FINDER_PATTERNS)}catch{return null}return new le($,[v,M],v,M,s)},t.prototype.decodeDataCharacter=function(i,s,c,h){for(var v=this.getDataCharacterCounters(),M=0;M.3)throw new Se;var et=this.getOddCounts(),vt=this.getEvenCounts(),zt=this.getOddRoundingErrors(),$t=this.getEvenRoundingErrors();for(O=0;O8){if(Gt>8.7)throw new Se;an=8}var bn=O/2;1&O?(vt[bn]=an,$t[bn]=Gt-an):(et[bn]=an,zt[bn]=Gt-an)}this.adjustOddEvenCounts(17);var Nn=4*s.getValue()+(c?0:2)+(h?0:1)-1,Zn=0,Kn=0;for(O=et.length-1;O>=0;O--)t.isNotA1left(s,c,h)&&(Kn+=et[O]*t.WEIGHTS[Nn][2*O]),Zn+=et[O];var Gi=0;for(O=vt.length-1;O>=0;O--)t.isNotA1left(s,c,h)&&(Gi+=vt[O]*t.WEIGHTS[Nn][2*O+1]);var Vi=Kn+Gi;if(1&Zn||Zn>13||Zn<4)throw new Se;var go=(13-Zn)/2,Dr=t.SYMBOL_WIDEST[go],hs=9-Dr,Vl=Qn.getRSSvalue(et,Dr,!0),ic=Qn.getRSSvalue(vt,hs,!1);return new Ae(Vl*t.EVEN_TOTAL_SUBSET[go]+ic+t.GSUM[go],Vi)},t.isNotA1left=function(i,s,c){return!(0===i.getValue()&&s&&c)},t.prototype.adjustOddEvenCounts=function(i){var s=_i.sum(new Int32Array(this.getOddCounts())),c=_i.sum(new Int32Array(this.getEvenCounts())),h=!1,v=!1;s>13?v=!0:s<4&&(h=!0);var M=!1,O=!1;c>13?O=!0:c<4&&(M=!0);var N=s+c-i,$=1==(1&s),q=0==(1&c);if(1===N)if($){if(q)throw new Se;v=!0}else{if(!q)throw new Se;O=!0}else if(-1===N)if($){if(q)throw new Se;h=!0}else{if(!q)throw new Se;M=!0}else{if(0!==N)throw new Se;if($){if(!q)throw new Se;s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ma=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.possibleLeftPairs=[],i.possibleRightPairs=[],i}return $a(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,N=this.decodePair(s,!1,i,c);t.addOrTally(this.possibleLeftPairs,N),s.reverse();var $=this.decodePair(s,!0,i,c);t.addOrTally(this.possibleRightPairs,$),s.reverse();try{for(var q=Ui(this.possibleLeftPairs),de=q.next();!de.done;de=q.next()){var we=de.value;if(we.getCount()>1)try{for(var et=(M=void 0,Ui(this.possibleRightPairs)),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value;if(zt.getCount()>1&&t.checkChecksum(we,zt))return t.constructResult(we,zt)}}catch($t){M={error:$t}}finally{try{vt&&!vt.done&&(O=et.return)&&O.call(et)}finally{if(M)throw M.error}}}}catch($t){h={error:$t}}finally{try{de&&!de.done&&(v=q.return)&&v.call(q)}finally{if(h)throw h.error}}throw new Se},t.addOrTally=function(i,s){var c,h;if(null!=s){var v=!1;try{for(var M=Ui(i),O=M.next();!O.done;O=M.next()){var N=O.value;if(N.getValue()===s.getValue()){N.incrementCount(),v=!0;break}}}catch($){c={error:$}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}v||i.push(s)}},t.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},t.constructResult=function(i,s){for(var c=4537077*i.getValue()+s.getValue(),h=new String(c).toString(),v=new Ce,M=13-h.length;M>0;M--)v.append("0");v.append(h);var O=0;for(M=0;M<13;M++){var N=v.charAt(M).charCodeAt(0)-"0".charCodeAt(0);O+=1&M?N:3*N}10==(O=10-O%10)&&(O=0),v.append(O.toString());var $=i.getFinderPattern().getResultPoints(),q=s.getFinderPattern().getResultPoints();return new We(v.toString(),null,0,[$[0],$[1],q[0],q[1]],be.RSS_14,(new Date).getTime())},t.checkChecksum=function(i,s){var c=(i.getChecksumPortion()+16*s.getChecksumPortion())%79,h=9*i.getFinderPattern().getValue()+s.getFinderPattern().getValue();return h>72&&h--,h>8&&h--,c===h},t.prototype.decodePair=function(i,s,c,h){try{var v=this.findFinderPattern(i,s),M=this.parseFoundFinderPattern(i,c,s,v),O=null==h?null:h.get(he.NEED_RESULT_POINT_CALLBACK);if(null!=O){var N=(v[0]+v[1])/2;s&&(N=i.getSize()-1-N),O.foundPossibleResultPoint(new $n(N,c))}var $=this.decodeDataCharacter(i,M,!0),q=this.decodeDataCharacter(i,M,!1);return new bs(1597*$.getValue()+q.getValue(),$.getChecksumPortion()+4*q.getChecksumPortion(),M)}catch{return null}},t.prototype.decodeDataCharacter=function(i,s,c){for(var h=this.getDataCharacterCounters(),v=0;v8&&($t=8);var Gt=Math.floor(M/2);1&M?(we[Gt]=$t,vt[Gt]=zt-$t):(de[Gt]=$t,et[Gt]=zt-$t)}this.adjustOddEvenCounts(c,$);var an=0,bn=0;for(M=de.length-1;M>=0;M--)bn*=9,bn+=de[M],an+=de[M];var Nn=0,Zn=0;for(M=we.length-1;M>=0;M--)Nn*=9,Nn+=we[M],Zn+=we[M];var fi,Gi,Kn=bn+3*Nn;if(c){if(1&an||an>12||an<4)throw new Se;var Vi=9-(Gi=t.OUTSIDE_ODD_WIDEST[fi=(12-an)/2]),go=Qn.getRSSvalue(de,Gi,!1),Dr=Qn.getRSSvalue(we,Vi,!0);return new Ae(go*t.OUTSIDE_EVEN_TOTAL_SUBSET[fi]+Dr+t.OUTSIDE_GSUM[fi],Kn)}if(1&Zn||Zn>10||Zn<4)throw new Se;return Vi=9-(Gi=t.INSIDE_ODD_WIDEST[fi=(10-Zn)/2]),go=Qn.getRSSvalue(de,Gi,!0),Dr=Qn.getRSSvalue(we,Vi,!1),new Ae(Dr*t.INSIDE_ODD_TOTAL_SUBSET[fi]+go+t.INSIDE_GSUM[fi],Kn)},t.prototype.findFinderPattern=function(i,s){var c=this.getDecodeFinderCounters();c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var h=i.getSize(),v=!1,M=0;M=0&&v!==i.get(M);)M--;M++;var O=h[0]-M,N=this.getDecodeFinderCounters(),$=new Int32Array(N.length);Jt.arraycopy(N,0,$,1,N.length-1),$[0]=O;var q=this.parseFinderValue($,t.FINDER_PATTERNS),de=M,we=h[1];return c&&(de=i.getSize()-1-de,we=i.getSize()-1-we),new le(q,[M,h[1]],de,we,s)},t.prototype.adjustOddEvenCounts=function(i,s){var c=_i.sum(new Int32Array(this.getOddCounts())),h=_i.sum(new Int32Array(this.getEvenCounts())),v=!1,M=!1,O=!1,N=!1;i?(c>12?M=!0:c<4&&(v=!0),h>12?N=!0:h<4&&(O=!0)):(c>11?M=!0:c<5&&(v=!0),h>10?N=!0:h<4&&(O=!0));var $=c+h-s,q=(1&c)==(i?1:0),de=1==(1&h);if(1===$)if(q){if(de)throw new Se;M=!0}else{if(!de)throw new Se;N=!0}else if(-1===$)if(q){if(de)throw new Se;v=!0}else{if(!de)throw new Se;O=!0}else{if(0!==$)throw new Se;if(q){if(!de)throw new Se;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),Wi=function(){function o(t,i,s){this.ecCodewords=t,this.ecBlocks=[i],s&&this.ecBlocks.push(s)}return o.prototype.getECCodewords=function(){return this.ecCodewords},o.prototype.getECBlocks=function(){return this.ecBlocks},o}(),Xi=function(){function o(t,i){this.count=t,this.dataCodewords=i}return o.prototype.getCount=function(){return this.count},o.prototype.getDataCodewords=function(){return this.dataCodewords},o}(),dl=function(){function o(t,i,s,c,h,v){var M,O;this.versionNumber=t,this.symbolSizeRows=i,this.symbolSizeColumns=s,this.dataRegionSizeRows=c,this.dataRegionSizeColumns=h,this.ecBlocks=v;var N=0,$=v.getECCodewords(),q=v.getECBlocks();try{for(var de=_o(q),we=de.next();!we.done;we=de.next()){var et=we.value;N+=et.getCount()*(et.getDataCodewords()+$)}}catch(vt){M={error:vt}}finally{try{we&&!we.done&&(O=de.return)&&O.call(de)}finally{if(M)throw M.error}}this.totalCodewords=N}return o.prototype.getVersionNumber=function(){return this.versionNumber},o.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},o.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},o.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},o.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},o.prototype.getTotalCodewords=function(){return this.totalCodewords},o.prototype.getECBlocks=function(){return this.ecBlocks},o.getVersionForDimensions=function(t,i){var s,c;if(1&t||1&i)throw new bt;try{for(var h=_o(o.VERSIONS),v=h.next();!v.done;v=h.next()){var M=v.value;if(M.symbolSizeRows===t&&M.symbolSizeColumns===i)return M}}catch(O){s={error:O}}finally{try{v&&!v.done&&(c=h.return)&&c.call(h)}finally{if(s)throw s.error}}throw new bt},o.prototype.toString=function(){return""+this.versionNumber},o.buildVersions=function(){return[new o(1,10,10,8,8,new Wi(5,new Xi(1,3))),new o(2,12,12,10,10,new Wi(7,new Xi(1,5))),new o(3,14,14,12,12,new Wi(10,new Xi(1,8))),new o(4,16,16,14,14,new Wi(12,new Xi(1,12))),new o(5,18,18,16,16,new Wi(14,new Xi(1,18))),new o(6,20,20,18,18,new Wi(18,new Xi(1,22))),new o(7,22,22,20,20,new Wi(20,new Xi(1,30))),new o(8,24,24,22,22,new Wi(24,new Xi(1,36))),new o(9,26,26,24,24,new Wi(28,new Xi(1,44))),new o(10,32,32,14,14,new Wi(36,new Xi(1,62))),new o(11,36,36,16,16,new Wi(42,new Xi(1,86))),new o(12,40,40,18,18,new Wi(48,new Xi(1,114))),new o(13,44,44,20,20,new Wi(56,new Xi(1,144))),new o(14,48,48,22,22,new Wi(68,new Xi(1,174))),new o(15,52,52,24,24,new Wi(42,new Xi(2,102))),new o(16,64,64,14,14,new Wi(56,new Xi(2,140))),new o(17,72,72,16,16,new Wi(36,new Xi(4,92))),new o(18,80,80,18,18,new Wi(48,new Xi(4,114))),new o(19,88,88,20,20,new Wi(56,new Xi(4,144))),new o(20,96,96,22,22,new Wi(68,new Xi(4,174))),new o(21,104,104,24,24,new Wi(56,new Xi(6,136))),new o(22,120,120,18,18,new Wi(68,new Xi(6,175))),new o(23,132,132,20,20,new Wi(62,new Xi(8,163))),new o(24,144,144,22,22,new Wi(62,new Xi(8,156),new Xi(2,155))),new o(25,8,18,6,16,new Wi(7,new Xi(1,5))),new o(26,8,32,6,14,new Wi(11,new Xi(1,10))),new o(27,12,26,10,24,new Wi(14,new Xi(1,16))),new o(28,12,36,10,16,new Wi(18,new Xi(1,22))),new o(29,16,36,14,16,new Wi(24,new Xi(1,32))),new o(30,16,48,14,22,new Wi(28,new Xi(1,49)))]},o.VERSIONS=o.buildVersions(),o}();const ko=dl;var rs=function(){function o(t){var i=t.getHeight();if(i<8||i>144||1&i)throw new bt;this.version=o.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new ae(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return o.prototype.getVersion=function(){return this.version},o.readVersion=function(t){var i=t.getHeight(),s=t.getWidth();return ko.getVersionForDimensions(i,s)},o.prototype.readCodewords=function(){var t=new Int8Array(this.version.getTotalCodewords()),i=0,s=4,c=0,h=this.mappingBitMatrix.getHeight(),v=this.mappingBitMatrix.getWidth(),M=!1,O=!1,N=!1,$=!1;do{if(s!==h||0!==c||M)if(s===h-2&&0===c&&3&v&&!O)t[i++]=255&this.readCorner2(h,v),s-=2,c+=2,O=!0;else if(s!==h+4||2!==c||7&v||N)if(s!==h-2||0!==c||4!=(7&v)||$){do{s=0&&!this.readMappingMatrix.get(c,s)&&(t[i++]=255&this.readUtah(s,c,h,v)),s-=2,c+=2}while(s>=0&&c=0&&c=0);s+=3,c+=1}else t[i++]=255&this.readCorner4(h,v),s-=2,c+=2,$=!0;else t[i++]=255&this.readCorner3(h,v),s-=2,c+=2,N=!0;else t[i++]=255&this.readCorner1(h,v),s-=2,c+=2,M=!0}while(s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Us=function(){function o(t,i){this.numDataCodewords=t,this.codewords=i}return o.getDataBlocks=function(t,i){var s,c,h,v,M=i.getECBlocks(),O=0,N=M.getECBlocks();try{for(var $=Pc(N),q=$.next();!q.done;q=$.next())O+=(de=q.value).getCount()}catch(Vl){s={error:Vl}}finally{try{q&&!q.done&&(c=$.return)&&c.call($)}finally{if(s)throw s.error}}var we=new Array(O),et=0;try{for(var vt=Pc(N),zt=vt.next();!zt.done;zt=vt.next())for(var de=zt.value,$t=0;$t7?$t-1:$t]=t[Kn++]}if(Kn!==t.length)throw new Ge;return we},o.prototype.getNumDataCodewords=function(){return this.numDataCodewords},o.prototype.getCodewords=function(){return this.codewords},o}();const Vs=Us;var Nc=function(){function o(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}return o.prototype.getBitOffset=function(){return this.bitOffset},o.prototype.getByteOffset=function(){return this.byteOffset},o.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new Ge(""+t);var i=0,s=this.bitOffset,c=this.byteOffset,h=this.bytes;if(s>0){var v=8-s,M=t>8-M<<(O=v-M))>>O,t-=M,8===(s+=M)&&(s=0,c++)}if(t>0){for(;t>=8;)i=i<<8|255&h[c],c++,t-=8;var O;t>0&&(i=i<>(O=8-t)<>O,s+=t)}return this.bitOffset=s,this.byteOffset=c,i},o.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},o}();const ac=Nc;var To=function(o){return o[o.PAD_ENCODE=0]="PAD_ENCODE",o[o.ASCII_ENCODE=1]="ASCII_ENCODE",o[o.C40_ENCODE=2]="C40_ENCODE",o[o.TEXT_ENCODE=3]="TEXT_ENCODE",o[o.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",o[o.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",o[o.BASE256_ENCODE=6]="BASE256_ENCODE",o}(To||{}),nd=function(){function o(){}return o.decode=function(t){var i=new ac(t),s=new Ce,c=new Ce,h=new Array,v=To.ASCII_ENCODE;do{if(v===To.ASCII_ENCODE)v=this.decodeAsciiSegment(i,s,c);else{switch(v){case To.C40_ENCODE:this.decodeC40Segment(i,s);break;case To.TEXT_ENCODE:this.decodeTextSegment(i,s);break;case To.ANSIX12_ENCODE:this.decodeAnsiX12Segment(i,s);break;case To.EDIFACT_ENCODE:this.decodeEdifactSegment(i,s);break;case To.BASE256_ENCODE:this.decodeBase256Segment(i,s,h);break;default:throw new bt}v=To.ASCII_ENCODE}}while(v!==To.PAD_ENCODE&&i.available()>0);return c.length()>0&&s.append(c.toString()),new Pn(t,s.toString(),0===h.length?null:h,null)},o.decodeAsciiSegment=function(t,i,s){var c=!1;do{var h=t.readBits(8);if(0===h)throw new bt;if(h<=128)return c&&(h+=128),i.append(String.fromCharCode(h-1)),To.ASCII_ENCODE;if(129===h)return To.PAD_ENCODE;if(h<=229){var v=h-130;v<10&&i.append("0"),i.append(""+v)}else switch(h){case 230:return To.C40_ENCODE;case 231:return To.BASE256_ENCODE;case 232:i.append(String.fromCharCode(29));break;case 233:case 234:case 241:break;case 235:c=!0;break;case 236:i.append("[)>\x1e05\x1d"),s.insert(0,"\x1e\x04");break;case 237:i.append("[)>\x1e06\x1d"),s.insert(0,"\x1e\x04");break;case 238:return To.ANSIX12_ENCODE;case 239:return To.TEXT_ENCODE;case 240:return To.EDIFACT_ENCODE;default:if(254!==h||0!==t.available())throw new bt}}while(t.available()>0);return To.ASCII_ENCODE},o.decodeC40Segment=function(t,i){var s=!1,c=[],h=0;do{if(8===t.available())return;var v=t.readBits(8);if(254===v)return;this.parseTwoBytes(v,t.readBits(8),c);for(var M=0;M<3;M++){var O=c[M];switch(h){case 0:if(O<3)h=O+1;else{if(!(O0)},o.decodeTextSegment=function(t,i){var s=!1,c=[],h=0;do{if(8===t.available())return;var v=t.readBits(8);if(254===v)return;this.parseTwoBytes(v,t.readBits(8),c);for(var M=0;M<3;M++){var O=c[M];switch(h){case 0:if(O<3)h=O+1;else{if(!(O0)},o.decodeAnsiX12Segment=function(t,i){var s=[];do{if(8===t.available())return;var c=t.readBits(8);if(254===c)return;this.parseTwoBytes(c,t.readBits(8),s);for(var h=0;h<3;h++){var v=s[h];switch(v){case 0:i.append("\r");break;case 1:i.append("*");break;case 2:i.append(">");break;case 3:i.append(" ");break;default:if(v<14)i.append(String.fromCharCode(v+44));else{if(!(v<40))throw new bt;i.append(String.fromCharCode(v+51))}}}}while(t.available()>0)},o.parseTwoBytes=function(t,i,s){var c=(t<<8)+i-1,h=Math.floor(c/1600);s[0]=h,c-=1600*h,h=Math.floor(c/40),s[1]=h,s[2]=c-40*h},o.decodeEdifactSegment=function(t,i){do{if(t.available()<=16)return;for(var s=0;s<4;s++){var c=t.readBits(6);if(31===c){var h=8-t.getBitOffset();return void(8!==h&&t.readBits(h))}32&c||(c|=64),i.append(String.fromCharCode(c))}}while(t.available()>0)},o.decodeBase256Segment=function(t,i,s){var v,c=1+t.getByteOffset(),h=this.unrandomize255State(t.readBits(8),c++);if((v=0===h?t.available()/8|0:h<250?h:250*(h-249)+this.unrandomize255State(t.readBits(8),c++))<0)throw new bt;for(var M=new Uint8Array(v),O=0;O=0?c:c+256},o.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],o.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],o.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],o.TEXT_SHIFT2_SET_CHARS=o.C40_SHIFT2_SET_CHARS,o.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],o}();const lc=nd;var Ca=function(){function o(){this.rsDecoder=new vr(_n.DATA_MATRIX_FIELD_256)}return o.prototype.decode=function(t){var i,s,c=new ul(t),h=c.getVersion(),v=c.readCodewords(),M=Vs.getDataBlocks(v,h),O=0;try{for(var N=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(M),$=N.next();!$.done;$=N.next())O+=$.value.getNumDataCodewords()}catch(an){i={error:an}}finally{try{$&&!$.done&&(s=N.return)&&s.call(N)}finally{if(i)throw i.error}}for(var de=new Uint8Array(O),we=M.length,et=0;etM&&($=M,q[0]=i,q[1]=s,q[2]=c,q[3]=h),$>O&&($=O,q[0]=s,q[1]=c,q[2]=h,q[3]=i),$>N&&(q[0]=c,q[1]=h,q[2]=i,q[3]=s),q},o.prototype.detectSolid2=function(t){var i=t[0],s=t[1],c=t[2],h=t[3],v=this.transitionsBetween(i,h),M=o.shiftPoint(s,c,4*(v+1)),O=o.shiftPoint(c,s,4*(v+1));return this.transitionsBetween(M,i)this.transitionsBetween(O,q)+this.transitionsBetween(N,q)?$:q:$:this.isValid(q)?q:null},o.prototype.shiftToModuleCenter=function(t){var i=t[0],s=t[1],c=t[2],h=t[3],v=this.transitionsBetween(i,h)+1,M=this.transitionsBetween(c,h)+1,O=o.shiftPoint(i,s,4*M),N=o.shiftPoint(c,s,4*v);1==(1&(v=this.transitionsBetween(O,h)+1))&&(v+=1),1==(1&(M=this.transitionsBetween(N,h)+1))&&(M+=1);var de,we,$=(i.getX()+s.getX()+c.getX()+h.getX())/4,q=(i.getY()+s.getY()+c.getY()+h.getY())/4;return i=o.moveAway(i,$,q),s=o.moveAway(s,$,q),c=o.moveAway(c,$,q),h=o.moveAway(h,$,q),O=o.shiftPoint(i,s,4*M),O=o.shiftPoint(O,h,4*v),de=o.shiftPoint(s,i,4*M),de=o.shiftPoint(de,c,4*v),N=o.shiftPoint(c,h,4*M),N=o.shiftPoint(N,s,4*v),we=o.shiftPoint(h,c,4*M),[O,de,N,we=o.shiftPoint(we,i,4*v)]},o.prototype.isValid=function(t){return t.getX()>=0&&t.getX()0&&t.getY()Math.abs(h-s);if(M){var O=s;s=c,c=O,O=h,h=v,v=O}for(var N=Math.abs(h-s),$=Math.abs(v-c),q=-N/2,de=c0){if($t===v)break;$t+=de,q-=N}}return et},o}();const rd=id;var sa=function(){function o(){this.decoder=new ks}return o.prototype.decode=function(t,i){var s,c;if(void 0===i&&(i=null),null!=i&&i.has(he.PURE_BARCODE)){var h=o.extractPureBits(t.getBlackMatrix());s=this.decoder.decode(h),c=o.NO_POINTS}else{var v=new rd(t.getBlackMatrix()).detect();s=this.decoder.decode(v.getBits()),c=v.getPoints()}var M=s.getRawBytes(),O=new We(s.getText(),M,8*M.length,c,be.DATA_MATRIX,Jt.currentTimeMillis()),N=s.getByteSegments();null!=N&&O.putMetadata(He.BYTE_SEGMENTS,N);var $=s.getECLevel();return null!=$&&O.putMetadata(He.ERROR_CORRECTION_LEVEL,$),O},o.prototype.reset=function(){},o.extractPureBits=function(t){var i=t.getTopLeftOnBit(),s=t.getBottomRightOnBit();if(null==i||null==s)throw new Se;var c=this.moduleSize(i,t),h=i[1],M=i[0],N=(s[0]-M+1)/c,$=(s[1]-h+1)/c;if(N<=0||$<=0)throw new Se;var q=c/2;h+=q,M+=q;for(var de=new ae(N,$),we=0;we<$;we++)for(var et=h+we*c,vt=0;vt=o.FOR_BITS.size)throw new Ge;return o.FOR_BITS.get(t)},o.FOR_BITS=new Map,o.FOR_VALUE=new Map,o.L=new o(Mo.L,"L",1),o.M=new o(Mo.M,"M",0),o.Q=new o(Mo.Q,"Q",3),o.H=new o(Mo.H,"H",2),o}();const aa=Ka;var kn=function(){function o(t){this.errorCorrectionLevel=aa.forBits(t>>3&3),this.dataMask=7&t}return o.numBitsDiffering=function(t,i){return Ee.bitCount(t^i)},o.decodeFormatInformation=function(t,i){var s=o.doDecodeFormatInformation(t,i);return null!==s?s:o.doDecodeFormatInformation(t^o.FORMAT_INFO_MASK_QR,i^o.FORMAT_INFO_MASK_QR)},o.doDecodeFormatInformation=function(t,i){var s,c,h=Number.MAX_SAFE_INTEGER,v=0;try{for(var M=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o.FORMAT_INFO_DECODE_LOOKUP),O=M.next();!O.done;O=M.next()){var N=O.value,$=N[0];if($===t||$===i)return new o(N[1]);var q=o.numBitsDiffering(t,$);q=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),v=h.next();!v.done;v=h.next())s+=v.value.getCount()}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return s},o.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},o.prototype.getECBlocks=function(){return this.ecBlocks},o}();const en=Il;var so=function(){function o(t,i){this.count=t,this.dataCodewords=i}return o.prototype.getCount=function(){return this.count},o.prototype.getDataCodewords=function(){return this.dataCodewords},o}();const gt=so;var Ra=function(){function o(t,i){for(var s,c,h=[],v=2;v=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(N),q=$.next();!q.done;q=$.next()){var de=q.value;M+=de.getCount()*(de.getDataCodewords()+O)}}catch(we){s={error:we}}finally{try{q&&!q.done&&(c=$.return)&&c.call($)}finally{if(s)throw s.error}}this.totalCodewords=M}return o.prototype.getVersionNumber=function(){return this.versionNumber},o.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},o.prototype.getTotalCodewords=function(){return this.totalCodewords},o.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},o.prototype.getECBlocksForLevel=function(t){return this.ecBlocks[t.getValue()]},o.getProvisionalVersionForDimension=function(t){if(t%4!=1)throw new bt;try{return this.getVersionForNumber((t-17)/4)}catch{throw new bt}},o.getVersionForNumber=function(t){if(t<1||t>40)throw new Ge;return o.VERSIONS[t-1]},o.decodeVersionInformation=function(t){for(var i=Number.MAX_SAFE_INTEGER,s=0,c=0;c6&&(i.setRegion(t-11,0,3,6),i.setRegion(0,t-11,6,3)),i},o.prototype.toString=function(){return""+this.versionNumber},o.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),o.VERSIONS=[new o(1,new Int32Array(0),new en(7,new gt(1,19)),new en(10,new gt(1,16)),new en(13,new gt(1,13)),new en(17,new gt(1,9))),new o(2,Int32Array.from([6,18]),new en(10,new gt(1,34)),new en(16,new gt(1,28)),new en(22,new gt(1,22)),new en(28,new gt(1,16))),new o(3,Int32Array.from([6,22]),new en(15,new gt(1,55)),new en(26,new gt(1,44)),new en(18,new gt(2,17)),new en(22,new gt(2,13))),new o(4,Int32Array.from([6,26]),new en(20,new gt(1,80)),new en(18,new gt(2,32)),new en(26,new gt(2,24)),new en(16,new gt(4,9))),new o(5,Int32Array.from([6,30]),new en(26,new gt(1,108)),new en(24,new gt(2,43)),new en(18,new gt(2,15),new gt(2,16)),new en(22,new gt(2,11),new gt(2,12))),new o(6,Int32Array.from([6,34]),new en(18,new gt(2,68)),new en(16,new gt(4,27)),new en(24,new gt(4,19)),new en(28,new gt(4,15))),new o(7,Int32Array.from([6,22,38]),new en(20,new gt(2,78)),new en(18,new gt(4,31)),new en(18,new gt(2,14),new gt(4,15)),new en(26,new gt(4,13),new gt(1,14))),new o(8,Int32Array.from([6,24,42]),new en(24,new gt(2,97)),new en(22,new gt(2,38),new gt(2,39)),new en(22,new gt(4,18),new gt(2,19)),new en(26,new gt(4,14),new gt(2,15))),new o(9,Int32Array.from([6,26,46]),new en(30,new gt(2,116)),new en(22,new gt(3,36),new gt(2,37)),new en(20,new gt(4,16),new gt(4,17)),new en(24,new gt(4,12),new gt(4,13))),new o(10,Int32Array.from([6,28,50]),new en(18,new gt(2,68),new gt(2,69)),new en(26,new gt(4,43),new gt(1,44)),new en(24,new gt(6,19),new gt(2,20)),new en(28,new gt(6,15),new gt(2,16))),new o(11,Int32Array.from([6,30,54]),new en(20,new gt(4,81)),new en(30,new gt(1,50),new gt(4,51)),new en(28,new gt(4,22),new gt(4,23)),new en(24,new gt(3,12),new gt(8,13))),new o(12,Int32Array.from([6,32,58]),new en(24,new gt(2,92),new gt(2,93)),new en(22,new gt(6,36),new gt(2,37)),new en(26,new gt(4,20),new gt(6,21)),new en(28,new gt(7,14),new gt(4,15))),new o(13,Int32Array.from([6,34,62]),new en(26,new gt(4,107)),new en(22,new gt(8,37),new gt(1,38)),new en(24,new gt(8,20),new gt(4,21)),new en(22,new gt(12,11),new gt(4,12))),new o(14,Int32Array.from([6,26,46,66]),new en(30,new gt(3,115),new gt(1,116)),new en(24,new gt(4,40),new gt(5,41)),new en(20,new gt(11,16),new gt(5,17)),new en(24,new gt(11,12),new gt(5,13))),new o(15,Int32Array.from([6,26,48,70]),new en(22,new gt(5,87),new gt(1,88)),new en(24,new gt(5,41),new gt(5,42)),new en(30,new gt(5,24),new gt(7,25)),new en(24,new gt(11,12),new gt(7,13))),new o(16,Int32Array.from([6,26,50,74]),new en(24,new gt(5,98),new gt(1,99)),new en(28,new gt(7,45),new gt(3,46)),new en(24,new gt(15,19),new gt(2,20)),new en(30,new gt(3,15),new gt(13,16))),new o(17,Int32Array.from([6,30,54,78]),new en(28,new gt(1,107),new gt(5,108)),new en(28,new gt(10,46),new gt(1,47)),new en(28,new gt(1,22),new gt(15,23)),new en(28,new gt(2,14),new gt(17,15))),new o(18,Int32Array.from([6,30,56,82]),new en(30,new gt(5,120),new gt(1,121)),new en(26,new gt(9,43),new gt(4,44)),new en(28,new gt(17,22),new gt(1,23)),new en(28,new gt(2,14),new gt(19,15))),new o(19,Int32Array.from([6,30,58,86]),new en(28,new gt(3,113),new gt(4,114)),new en(26,new gt(3,44),new gt(11,45)),new en(26,new gt(17,21),new gt(4,22)),new en(26,new gt(9,13),new gt(16,14))),new o(20,Int32Array.from([6,34,62,90]),new en(28,new gt(3,107),new gt(5,108)),new en(26,new gt(3,41),new gt(13,42)),new en(30,new gt(15,24),new gt(5,25)),new en(28,new gt(15,15),new gt(10,16))),new o(21,Int32Array.from([6,28,50,72,94]),new en(28,new gt(4,116),new gt(4,117)),new en(26,new gt(17,42)),new en(28,new gt(17,22),new gt(6,23)),new en(30,new gt(19,16),new gt(6,17))),new o(22,Int32Array.from([6,26,50,74,98]),new en(28,new gt(2,111),new gt(7,112)),new en(28,new gt(17,46)),new en(30,new gt(7,24),new gt(16,25)),new en(24,new gt(34,13))),new o(23,Int32Array.from([6,30,54,78,102]),new en(30,new gt(4,121),new gt(5,122)),new en(28,new gt(4,47),new gt(14,48)),new en(30,new gt(11,24),new gt(14,25)),new en(30,new gt(16,15),new gt(14,16))),new o(24,Int32Array.from([6,28,54,80,106]),new en(30,new gt(6,117),new gt(4,118)),new en(28,new gt(6,45),new gt(14,46)),new en(30,new gt(11,24),new gt(16,25)),new en(30,new gt(30,16),new gt(2,17))),new o(25,Int32Array.from([6,32,58,84,110]),new en(26,new gt(8,106),new gt(4,107)),new en(28,new gt(8,47),new gt(13,48)),new en(30,new gt(7,24),new gt(22,25)),new en(30,new gt(22,15),new gt(13,16))),new o(26,Int32Array.from([6,30,58,86,114]),new en(28,new gt(10,114),new gt(2,115)),new en(28,new gt(19,46),new gt(4,47)),new en(28,new gt(28,22),new gt(6,23)),new en(30,new gt(33,16),new gt(4,17))),new o(27,Int32Array.from([6,34,62,90,118]),new en(30,new gt(8,122),new gt(4,123)),new en(28,new gt(22,45),new gt(3,46)),new en(30,new gt(8,23),new gt(26,24)),new en(30,new gt(12,15),new gt(28,16))),new o(28,Int32Array.from([6,26,50,74,98,122]),new en(30,new gt(3,117),new gt(10,118)),new en(28,new gt(3,45),new gt(23,46)),new en(30,new gt(4,24),new gt(31,25)),new en(30,new gt(11,15),new gt(31,16))),new o(29,Int32Array.from([6,30,54,78,102,126]),new en(30,new gt(7,116),new gt(7,117)),new en(28,new gt(21,45),new gt(7,46)),new en(30,new gt(1,23),new gt(37,24)),new en(30,new gt(19,15),new gt(26,16))),new o(30,Int32Array.from([6,26,52,78,104,130]),new en(30,new gt(5,115),new gt(10,116)),new en(28,new gt(19,47),new gt(10,48)),new en(30,new gt(15,24),new gt(25,25)),new en(30,new gt(23,15),new gt(25,16))),new o(31,Int32Array.from([6,30,56,82,108,134]),new en(30,new gt(13,115),new gt(3,116)),new en(28,new gt(2,46),new gt(29,47)),new en(30,new gt(42,24),new gt(1,25)),new en(30,new gt(23,15),new gt(28,16))),new o(32,Int32Array.from([6,34,60,86,112,138]),new en(30,new gt(17,115)),new en(28,new gt(10,46),new gt(23,47)),new en(30,new gt(10,24),new gt(35,25)),new en(30,new gt(19,15),new gt(35,16))),new o(33,Int32Array.from([6,30,58,86,114,142]),new en(30,new gt(17,115),new gt(1,116)),new en(28,new gt(14,46),new gt(21,47)),new en(30,new gt(29,24),new gt(19,25)),new en(30,new gt(11,15),new gt(46,16))),new o(34,Int32Array.from([6,34,62,90,118,146]),new en(30,new gt(13,115),new gt(6,116)),new en(28,new gt(14,46),new gt(23,47)),new en(30,new gt(44,24),new gt(7,25)),new en(30,new gt(59,16),new gt(1,17))),new o(35,Int32Array.from([6,30,54,78,102,126,150]),new en(30,new gt(12,121),new gt(7,122)),new en(28,new gt(12,47),new gt(26,48)),new en(30,new gt(39,24),new gt(14,25)),new en(30,new gt(22,15),new gt(41,16))),new o(36,Int32Array.from([6,24,50,76,102,128,154]),new en(30,new gt(6,121),new gt(14,122)),new en(28,new gt(6,47),new gt(34,48)),new en(30,new gt(46,24),new gt(10,25)),new en(30,new gt(2,15),new gt(64,16))),new o(37,Int32Array.from([6,28,54,80,106,132,158]),new en(30,new gt(17,122),new gt(4,123)),new en(28,new gt(29,46),new gt(14,47)),new en(30,new gt(49,24),new gt(10,25)),new en(30,new gt(24,15),new gt(46,16))),new o(38,Int32Array.from([6,32,58,84,110,136,162]),new en(30,new gt(4,122),new gt(18,123)),new en(28,new gt(13,46),new gt(32,47)),new en(30,new gt(48,24),new gt(14,25)),new en(30,new gt(42,15),new gt(32,16))),new o(39,Int32Array.from([6,26,54,82,110,138,166]),new en(30,new gt(20,117),new gt(4,118)),new en(28,new gt(40,47),new gt(7,48)),new en(30,new gt(43,24),new gt(22,25)),new en(30,new gt(10,15),new gt(67,16))),new o(40,Int32Array.from([6,30,58,86,114,142,170]),new en(30,new gt(19,118),new gt(6,119)),new en(28,new gt(18,47),new gt(31,48)),new en(30,new gt(34,24),new gt(34,25)),new en(30,new gt(20,15),new gt(61,16)))],o}();const Ls=Ra;var os=function(o){return o[o.DATA_MASK_000=0]="DATA_MASK_000",o[o.DATA_MASK_001=1]="DATA_MASK_001",o[o.DATA_MASK_010=2]="DATA_MASK_010",o[o.DATA_MASK_011=3]="DATA_MASK_011",o[o.DATA_MASK_100=4]="DATA_MASK_100",o[o.DATA_MASK_101=5]="DATA_MASK_101",o[o.DATA_MASK_110=6]="DATA_MASK_110",o[o.DATA_MASK_111=7]="DATA_MASK_111",o}(os||{}),ss=function(){function o(t,i){this.value=t,this.isMasked=i}return o.prototype.unmaskBitMatrix=function(t,i){for(var s=0;s=0;s--)t=this.copyBit(8,s,t);var c=this.bitMatrix.getHeight(),h=0,v=c-7;for(s=c-1;s>=v;s--)h=this.copyBit(8,s,h);for(i=c-8;i=0;h--)for(var v=t-9;v>=c;v--)s=this.copyBit(v,h,s);var M=Ls.decodeVersionInformation(s);if(null!==M&&M.getDimensionForVersion()===t)return this.parsedVersion=M,M;for(s=0,v=5;v>=0;v--)for(h=t-9;h>=c;h--)s=this.copyBit(v,h,s);if(null!==(M=Ls.decodeVersionInformation(s))&&M.getDimensionForVersion()===t)return this.parsedVersion=M,M;throw new bt},o.prototype.copyBit=function(t,i,s){return(this.isMirror?this.bitMatrix.get(i,t):this.bitMatrix.get(t,i))?s<<1|1:s<<1},o.prototype.readCodewords=function(){var t=this.readFormatInformation(),i=this.readVersion(),s=Fc.values.get(t.getDataMask()),c=this.bitMatrix.getHeight();s.unmaskBitMatrix(this.bitMatrix,c);for(var h=i.buildFunctionPattern(),v=!0,M=new Uint8Array(i.getTotalCodewords()),O=0,N=0,$=0,q=c-1;q>0;q-=2){6===q&&q--;for(var de=0;de=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},W=function(){function o(t,i){this.numDataCodewords=t,this.codewords=i}return o.getDataBlocks=function(t,i,s){var c,h,v,M;if(t.length!==i.getTotalCodewords())throw new Ge;var O=i.getECBlocksForLevel(s),N=0,$=O.getECBlocks();try{for(var q=ys($),de=q.next();!de.done;de=q.next())N+=(we=de.value).getCount()}catch(hs){c={error:hs}}finally{try{de&&!de.done&&(h=q.return)&&h.call(q)}finally{if(c)throw c.error}}var et=new Array(N),vt=0;try{for(var zt=ys($),$t=zt.next();!$t.done;$t=zt.next())for(var we=$t.value,Gt=0;Gt=0&&et[Zn].codewords.length!==Nn;)Zn--;Zn++;var fi=Nn-O.getECCodewordsPerBlock(),Gi=0;for(Gt=0;Gtt.available())throw new bt;for(var c=new Uint8Array(2*s),h=0;s>0;){var v=t.readBits(13),M=v/96<<8&4294967295|v%96;c[h]=(M+=M<959?41377:42657)>>8&255,c[h+1]=255&M,h+=2,s--}try{i.append(Wn.decode(c,ct.GB2312))}catch(O){throw new bt(O)}},o.decodeKanjiSegment=function(t,i,s){if(13*s>t.available())throw new bt;for(var c=new Uint8Array(2*s),h=0;s>0;){var v=t.readBits(13),M=v/192<<8&4294967295|v%192;c[h]=(M+=M<7936?33088:49472)>>8,c[h+1]=M,h+=2,s--}try{i.append(Wn.decode(c,ct.SHIFT_JIS))}catch(O){throw new bt(O)}},o.decodeByteSegment=function(t,i,s,c,h,v){if(8*s>t.available())throw new bt;for(var M=new Uint8Array(s),O=0;O=o.ALPHANUMERIC_CHARS.length)throw new bt;return o.ALPHANUMERIC_CHARS[t]},o.decodeAlphanumericSegment=function(t,i,s,c){for(var h=i.length();s>1;){if(t.available()<11)throw new bt;var v=t.readBits(11);i.append(o.toAlphaNumericChar(Math.floor(v/45))),i.append(o.toAlphaNumericChar(v%45)),s-=2}if(1===s){if(t.available()<6)throw new bt;i.append(o.toAlphaNumericChar(t.readBits(6)))}if(c)for(var M=h;M=3;){if(t.available()<10)throw new bt;var c=t.readBits(10);if(c>=1e3)throw new bt;i.append(o.toAlphaNumericChar(Math.floor(c/100))),i.append(o.toAlphaNumericChar(Math.floor(c/10)%10)),i.append(o.toAlphaNumericChar(c%10)),s-=3}if(2===s){if(t.available()<7)throw new bt;var h=t.readBits(7);if(h>=100)throw new bt;i.append(o.toAlphaNumericChar(Math.floor(h/10))),i.append(o.toAlphaNumericChar(h%10))}else if(1===s){if(t.available()<4)throw new bt;var v=t.readBits(4);if(v>=10)throw new bt;i.append(o.toAlphaNumericChar(v))}},o.parseECIValue=function(t){var i=t.readBits(8);if(!(128&i))return 127&i;if(128==(192&i))return(63&i)<<8&4294967295|t.readBits(8);if(192==(224&i))return(31&i)<<16&4294967295|t.readBits(16);throw new bt},o.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",o.GB2312_SUBSET=1,o}();const Pt=qe;var mn=function(){function o(t){this.mirrored=t}return o.prototype.isMirrored=function(){return this.mirrored},o.prototype.applyMirroredCorrection=function(t){if(this.mirrored&&null!==t&&!(t.length<3)){var i=t[0];t[0]=t[2],t[2]=i}},o}();const hn=mn;var on=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ji=function(){function o(){this.rsDecoder=new vr(_n.QR_CODE_FIELD_256)}return o.prototype.decodeBooleanArray=function(t,i){return this.decodeBitMatrix(ae.parseFromBooleanArray(t),i)},o.prototype.decodeBitMatrix=function(t,i){var s=new ka(t),c=null;try{return this.decodeBitMatrixParser(s,i)}catch(v){c=v}try{s.remask(),s.setMirror(!0),s.readVersion(),s.readFormatInformation(),s.mirror();var h=this.decodeBitMatrixParser(s,i);return h.setOther(new hn(!0)),h}catch(v){throw null!==c?c:v}},o.prototype.decodeBitMatrixParser=function(t,i){var s,c,h,v,M=t.readVersion(),O=t.readFormatInformation().getErrorCorrectionLevel(),N=t.readCodewords(),$=ne.getDataBlocks(N,M,O),q=0;try{for(var de=on($),we=de.next();!we.done;we=de.next())q+=(et=we.value).getNumDataCodewords()}catch(Zn){s={error:Zn}}finally{try{we&&!we.done&&(c=de.return)&&c.call(de)}finally{if(s)throw s.error}}var vt=new Uint8Array(q),zt=0;try{for(var $t=on($),Gt=$t.next();!Gt.done;Gt=$t.next()){var et,an=(et=Gt.value).getCodewords(),bn=et.getNumDataCodewords();this.correctErrors(an,bn);for(var Nn=0;Nn=s)return!1;return!0},o.prototype.crossCheckVertical=function(t,i,s,c){var h=this.image,v=h.getHeight(),M=this.crossCheckStateCount;M[0]=0,M[1]=0,M[2]=0;for(var O=t;O>=0&&h.get(i,O)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&!h.get(i,O)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;Os)return NaN;for(;Os||5*Math.abs(M[0]+M[1]+M[2]-c)>=2*c?NaN:this.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.handlePossibleCenter=function(t,i,s){var c,h,v=t[0]+t[1]+t[2],M=o.centerFromEnd(t,s),O=this.crossCheckVertical(i,M,2*t[1],v);if(!isNaN(O)){var N=(t[0]+t[1]+t[2])/3;try{for(var $=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.possibleCenters),q=$.next();!q.done;q=$.next()){var de=q.value;if(de.aboutEquals(N,O,M))return de.combineEstimate(O,M,N)}}catch(et){c={error:et}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}var we=new Ps(M,O,N);this.possibleCenters.push(we),null!=this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(we)}return null},o}();const Ja=Rl;var xd=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Md=function(o){function t(i,s,c,h){var v=o.call(this,i,s)||this;return v.estimatedModuleSize=c,v.count=h,void 0===h&&(v.count=1),v}return xd(t,o),t.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},t.prototype.getCount=function(){return this.count},t.prototype.aboutEquals=function(i,s,c){if(Math.abs(s-this.getY())<=i&&Math.abs(c-this.getX())<=i){var h=Math.abs(i-this.estimatedModuleSize);return h<=1||h<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(i,s,c){var h=this.count+1;return new t((this.count*this.getX()+s)/h,(this.count*this.getY()+i)/h,(this.count*this.estimatedModuleSize+c)/h,h)},t}($n);const Do=Md;var qa=function(){function o(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}return o.prototype.getBottomLeft=function(){return this.bottomLeft},o.prototype.getTopLeft=function(){return this.topLeft},o.prototype.getTopRight=function(){return this.topRight},o}();const xr=qa;var dc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ec=function(){function o(t,i){this.image=t,this.resultPointCallback=i,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=i}return o.prototype.getImage=function(){return this.image},o.prototype.getPossibleCenters=function(){return this.possibleCenters},o.prototype.find=function(t){var i=null!=t&&void 0!==t.get(he.TRY_HARDER),s=null!=t&&void 0!==t.get(he.PURE_BARCODE),c=this.image,h=c.getHeight(),v=c.getWidth(),M=Math.floor(3*h/(4*o.MAX_MODULES));(MN[2]&&($+=et-N[2]-M,de=v-1)}q=0,N[0]=0,N[1]=0,N[2]=0,N[3]=0,N[4]=0}else N[0]=N[2],N[1]=N[3],N[2]=N[4],N[3]=1,N[4]=0,q=3;else N[++q]++;o.foundPatternCross(N)&&!0===this.handlePossibleCenter(N,$,v,s)&&(M=N[0],this.hasSkipped&&(O=this.haveMultiplyConfirmedCenters()))}var vt=this.selectBestPatterns();return $n.orderBestPatterns(vt),new xr(vt)},o.centerFromEnd=function(t,i){return i-t[4]-t[3]-t[2]/2},o.foundPatternCross=function(t){for(var i=0,s=0;s<5;s++){var c=t[s];if(0===c)return!1;i+=c}if(i<7)return!1;var h=i/7,v=h/2;return Math.abs(h-t[0])=v&&i>=v&&M.get(i-v,t-v);)h[2]++,v++;if(t=v&&i>=v&&!M.get(i-v,t-v)&&h[1]<=s;)h[1]++,v++;if(ts)return!1;for(;t>=v&&i>=v&&M.get(i-v,t-v)&&h[0]<=s;)h[0]++,v++;if(h[0]>s)return!1;var O=M.getHeight(),N=M.getWidth();for(v=1;t+v=O||i+v>=N)return!1;for(;t+v=O||i+v>=N||h[3]>=s)return!1;for(;t+v=s)&&Math.abs(h[0]+h[1]+h[2]+h[3]+h[4]-c)<2*c&&o.foundPatternCross(h)},o.prototype.crossCheckVertical=function(t,i,s,c){for(var h=this.image,v=h.getHeight(),M=this.getCrossCheckStateCount(),O=t;O>=0&&h.get(i,O);)M[2]++,O--;if(O<0)return NaN;for(;O>=0&&!h.get(i,O)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&h.get(i,O)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;O=s)return NaN;for(;O=s||5*Math.abs(M[0]+M[1]+M[2]+M[3]+M[4]-c)>=2*c?NaN:o.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.crossCheckHorizontal=function(t,i,s,c){for(var h=this.image,v=h.getWidth(),M=this.getCrossCheckStateCount(),O=t;O>=0&&h.get(O,i);)M[2]++,O--;if(O<0)return NaN;for(;O>=0&&!h.get(O,i)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&h.get(O,i)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;O=s)return NaN;for(;O=s||5*Math.abs(M[0]+M[1]+M[2]+M[3]+M[4]-c)>=c?NaN:o.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.handlePossibleCenter=function(t,i,s,c){var h=t[0]+t[1]+t[2]+t[3]+t[4],v=o.centerFromEnd(t,s),M=this.crossCheckVertical(i,Math.floor(v),t[2],h);if(!isNaN(M)&&(v=this.crossCheckHorizontal(Math.floor(v),Math.floor(M),t[2],h),!isNaN(v)&&(!c||this.crossCheckDiagonal(Math.floor(M),Math.floor(v),t[2],h)))){for(var O=h/7,N=!1,$=this.possibleCenters,q=0,de=$.length;q=o.CENTER_QUORUM){if(null!=c)return this.hasSkipped=!0,Math.floor((Math.abs(c.getX()-M.getX())-Math.abs(c.getY()-M.getY()))/2);c=M}}}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return 0},o.prototype.haveMultiplyConfirmedCenters=function(){var t,i,s,c,h=0,v=0,M=this.possibleCenters.length;try{for(var O=dc(this.possibleCenters),N=O.next();!N.done;N=O.next())($=N.value).getCount()>=o.CENTER_QUORUM&&(h++,v+=$.getEstimatedModuleSize())}catch(vt){t={error:vt}}finally{try{N&&!N.done&&(i=O.return)&&i.call(O)}finally{if(t)throw t.error}}if(h<3)return!1;var q=v/M,de=0;try{for(var we=dc(this.possibleCenters),et=we.next();!et.done;et=we.next()){var $=et.value;de+=Math.abs($.getEstimatedModuleSize()-q)}}catch(vt){s={error:vt}}finally{try{et&&!et.done&&(c=we.return)&&c.call(we)}finally{if(s)throw s.error}}return de<=.05*v},o.prototype.selectBestPatterns=function(){var t,i,s,c,h=this.possibleCenters.length;if(h<3)throw new Se;var M,v=this.possibleCenters;if(h>3){var O=0,N=0;try{for(var $=dc(this.possibleCenters),q=$.next();!q.done;q=$.next()){var we=q.value.getEstimatedModuleSize();O+=we,N+=we*we}}catch(Nn){t={error:Nn}}finally{try{q&&!q.done&&(i=$.return)&&i.call($)}finally{if(t)throw t.error}}M=O/h;var et=Math.sqrt(N/h-M*M);v.sort(function(Nn,Zn){var Kn=Math.abs(Zn.getEstimatedModuleSize()-M),fi=Math.abs(Nn.getEstimatedModuleSize()-M);return Knfi?1:0});for(var vt=Math.max(.2*M,et),zt=0;zt3;zt++)Math.abs(v[zt].getEstimatedModuleSize()-M)>vt&&(v.splice(zt,1),zt--)}if(v.length>3){O=0;try{for(var Gt=dc(v),an=Gt.next();!an.done;an=Gt.next())O+=an.value.getEstimatedModuleSize()}catch(Zn){s={error:Zn}}finally{try{an&&!an.done&&(c=Gt.return)&&c.call(Gt)}finally{if(s)throw s.error}}M=O/v.length,v.sort(function(Zn,Kn){if(Kn.getCount()===Zn.getCount()){var fi=Math.abs(Kn.getEstimatedModuleSize()-M),Gi=Math.abs(Zn.getEstimatedModuleSize()-M);return fiGi?-1:0}return Kn.getCount()-Zn.getCount()}),v.splice(3)}return[v[0],v[1],v[2]]},o.CENTER_QUORUM=2,o.MIN_SKIP=3,o.MAX_MODULES=57,o}();const sd=Ec;var uc=function(){function o(t){this.image=t}return o.prototype.getImage=function(){return this.image},o.prototype.getResultPointCallback=function(){return this.resultPointCallback},o.prototype.detect=function(t){this.resultPointCallback=null==t?null:t.get(he.NEED_RESULT_POINT_CALLBACK);var s=new sd(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(s)},o.prototype.processFinderPatternInfo=function(t){var i=t.getTopLeft(),s=t.getTopRight(),c=t.getBottomLeft(),h=this.calculateModuleSize(i,s,c);if(h<1)throw new Se("No pattern found in proccess finder.");var v=o.computeDimension(i,s,c,h),M=Ls.getProvisionalVersionForDimension(v),O=M.getDimensionForVersion()-7,N=null;if(M.getAlignmentPatternCenters().length>0)for(var $=s.getX()-i.getX()+c.getX(),q=s.getY()-i.getY()+c.getY(),de=1-3/O,we=Math.floor(i.getX()+de*($-i.getX())),et=Math.floor(i.getY()+de*(q-i.getY())),vt=4;vt<=16;vt<<=1)try{N=this.findAlignmentInRegion(h,we,et,vt);break}catch(an){if(!(an instanceof Se))throw an}var zt=o.createTransform(i,s,c,N,v),$t=o.sampleGrid(this.image,zt,v);return new Fr($t,null===N?[c,i,s]:[c,i,s,N])},o.createTransform=function(t,i,s,c,h){var M,O,N,$,v=h-3.5;return null!==c?(M=c.getX(),O=c.getY(),$=N=v-3):(M=i.getX()-t.getX()+s.getX(),O=i.getY()-t.getY()+s.getY(),N=v,$=v),Ws.quadrilateralToQuadrilateral(3.5,3.5,v,3.5,N,$,3.5,v,t.getX(),t.getY(),i.getX(),i.getY(),M,O,s.getX(),s.getY())},o.sampleGrid=function(t,i,s){return ga.getInstance().sampleGridWithTransform(t,s,s,i)},o.computeDimension=function(t,i,s,c){var h=_i.round($n.distance(t,i)/c),v=_i.round($n.distance(t,s)/c),M=Math.floor((h+v)/2)+7;switch(3&M){case 0:M++;break;case 2:M--;break;case 3:throw new Se("Dimensions could be not found.")}return M},o.prototype.calculateModuleSize=function(t,i,s){return(this.calculateModuleSizeOneWay(t,i)+this.calculateModuleSizeOneWay(t,s))/2},o.prototype.calculateModuleSizeOneWay=function(t,i){var s=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(i.getX()),Math.floor(i.getY())),c=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(i.getX()),Math.floor(i.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(s)?c/7:isNaN(c)?s/7:(s+c)/14},o.prototype.sizeOfBlackWhiteBlackRunBothWays=function(t,i,s,c){var h=this.sizeOfBlackWhiteBlackRun(t,i,s,c),v=1,M=t-(s-t);M<0?(v=t/(t-M),M=0):M>=this.image.getWidth()&&(v=(this.image.getWidth()-1-t)/(M-t),M=this.image.getWidth()-1);var O=Math.floor(i-(c-i)*v);return v=1,O<0?(v=i/(i-O),O=0):O>=this.image.getHeight()&&(v=(this.image.getHeight()-1-i)/(O-i),O=this.image.getHeight()-1),M=Math.floor(t+(M-t)*v),(h+=this.sizeOfBlackWhiteBlackRun(t,i,M,O))-1},o.prototype.sizeOfBlackWhiteBlackRun=function(t,i,s,c){var h=Math.abs(c-i)>Math.abs(s-t);if(h){var v=t;t=i,i=v,v=s,s=c,c=v}for(var M=Math.abs(s-t),O=Math.abs(c-i),N=-M/2,$=t0){if(vt===c)break;vt+=q,N-=M}}return 2===de?_i.distance(s+$,c,t,i):NaN},o.prototype.findAlignmentInRegion=function(t,i,s,c){var h=Math.floor(c*t),v=Math.max(0,i-h),M=Math.min(this.image.getWidth()-1,i+h);if(M-v<3*t)throw new Se("Alignment top exceeds estimated module size.");var O=Math.max(0,s-h),N=Math.min(this.image.getHeight()-1,s+h);if(N-O<3*t)throw new Se("Alignment bottom exceeds estimated module size.");return new Ja(this.image,v,O,M-v,N-O,t,this.resultPointCallback).find()},o}();const hc=uc;var Qa=function(){function o(){this.decoder=new Gr}return o.prototype.getDecoder=function(){return this.decoder},o.prototype.decode=function(t,i){var s,c;if(null!=i&&void 0!==i.get(he.PURE_BARCODE)){var h=o.extractPureBits(t.getBlackMatrix());s=this.decoder.decodeBitMatrix(h,i),c=o.NO_POINTS}else{var v=new hc(t.getBlackMatrix()).detect(i);s=this.decoder.decodeBitMatrix(v.getBits(),i),c=v.getPoints()}s.getOther()instanceof hn&&s.getOther().applyMirroredCorrection(c);var M=new We(s.getText(),s.getRawBytes(),void 0,c,be.QR_CODE,void 0),O=s.getByteSegments();null!==O&&M.putMetadata(He.BYTE_SEGMENTS,O);var N=s.getECLevel();return null!==N&&M.putMetadata(He.ERROR_CORRECTION_LEVEL,N),s.hasStructuredAppend()&&(M.putMetadata(He.STRUCTURED_APPEND_SEQUENCE,s.getStructuredAppendSequenceNumber()),M.putMetadata(He.STRUCTURED_APPEND_PARITY,s.getStructuredAppendParity())),M},o.prototype.reset=function(){},o.extractPureBits=function(t){var i=t.getTopLeftOnBit(),s=t.getBottomRightOnBit();if(null===i||null===s)throw new Se;var c=this.moduleSize(i,t),h=i[1],v=s[1],M=i[0],O=s[0];if(M>=O||h>=v)throw new Se;if(v-h!=O-M&&(O=M+(v-h))>=t.getWidth())throw new Se;var N=Math.round((O-M+1)/c),$=Math.round((v-h+1)/c);if(N<=0||$<=0)throw new Se;if($!==N)throw new Se;var q=Math.floor(c/2);h+=q;var de=(M+=q)+Math.floor((N-1)*c)-O;if(de>0){if(de>q)throw new Se;M-=de}var we=h+Math.floor(($-1)*c)-v;if(we>0){if(we>q)throw new Se;h-=we}for(var et=new ae(N,$),vt=0;vt<$;vt++)for(var zt=h+Math.floor(vt*c),$t=0;$t=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),M=v.next();!M.done;M=v.next())c[h++]=M.value}catch(N){i={error:N}}finally{try{M&&!M.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return c},o.getCodeword=function(t){var i=at.binarySearch(o.SYMBOL_TABLE,262143&t);return i<0?-1:(o.CODEWORD_TABLE[i]-1)%o.NUMBER_OF_CODEWORDS},o.MAX_CODEWORDS_IN_BARCODE=(o.NUMBER_OF_CODEWORDS=929)-1,o.MIN_ROWS_IN_BARCODE=3,o.MAX_ROWS_IN_BARCODE=90,o.MODULES_IN_CODEWORD=17,o.MODULES_IN_STOP_PATTERN=18,o.BARS_IN_MODULE=8,o.EMPTY_INT_ARRAY=new Int32Array([]),o.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),o.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),o}();const Pi=ad;var Xa=function(){function o(t,i){this.bits=t,this.points=i}return o.prototype.getBits=function(){return this.bits},o.prototype.getPoints=function(){return this.points},o}();const ld=Xa;var Sc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Cd=function(){function o(){}return o.detectMultiple=function(t,i,s){var c=t.getBlackMatrix(),h=o.detect(s,c);return h.length||((c=c.clone()).rotate180(),h=o.detect(s,c)),new ld(c,h)},o.detect=function(t,i){for(var s,c,h=new Array,v=0,M=0,O=!1;v0;){if(null==(q=o.findGuardPattern(t,h,--c,s,!1,v,N))){c++;break}$=q}M[0]=new $n($[0],c),M[1]=new $n($[1],c),O=!0;break}var de=c+1;if(O){for(var we=0,q=Int32Array.from([Math.trunc(M[0].getX()),Math.trunc(M[1].getX())]);deo.SKIPPED_ROW_COUNT_MAX)break;we++}}M[2]=new $n(q[0],de-=we+1),M[3]=new $n(q[1],de)}return de-c0&&N++de?q-de:de-q;if(we>s)return 1/0;N+=we}return N/h},o.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),o.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),o.MAX_AVG_VARIANCE=.42,o.MAX_INDIVIDUAL_VARIANCE=.8,o.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),o.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),o.MAX_PIXEL_DRIFT=3,o.MAX_PATTERN_DRIFT=5,o.SKIPPED_ROW_COUNT_MAX=25,o.ROW_STEP=5,o.BARCODE_MIN_HEIGHT=10,o}();const el=Cd;var Yc=function(){function o(t,i){if(0===i.length)throw new Ge;this.field=t;var s=i.length;if(s>1&&0===i[0]){for(var c=1;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.coefficients),v=h.next();!v.done;v=h.next())c=this.field.add(c,v.value)}catch(q){i={error:q}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c}for(var O=this.coefficients[0],N=this.coefficients.length,$=1;$s.length){var c=i;i=s,s=c}var h=new Int32Array(s.length),v=s.length-i.length;Jt.arraycopy(s,0,h,0,v);for(var M=v;M=0;i--){var s=this.getCoefficient(i);0!==s&&(s<0?(t.append(" - "),s=-s):t.length()>0&&t.append(" + "),(0===i||1!==s)&&t.append(s),0!==i&&(1===i?t.append("x"):(t.append("x^"),t.append(i))))}return t.toString()},o}();const ca=Yc;var zd=function(){function o(){}return o.prototype.add=function(t,i){return(t+i)%this.modulus},o.prototype.subtract=function(t,i){return(this.modulus+t-i)%this.modulus},o.prototype.exp=function(t){return this.expTable[t]},o.prototype.log=function(t){if(0===t)throw new Ge;return this.logTable[t]},o.prototype.inverse=function(t){if(0===t)throw new st;return this.expTable[this.modulus-this.logTable[t]-1]},o.prototype.multiply=function(t,i){return 0===t||0===i?0:this.expTable[(this.logTable[t]+this.logTable[i])%(this.modulus-1)]},o.prototype.getSize=function(){return this.modulus},o.prototype.equals=function(t){return t===this},o}();const Dd=zd;var Lo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Bc=function(o){function t(i,s){var c=o.call(this)||this;c.modulus=i,c.expTable=new Int32Array(i),c.logTable=new Int32Array(i);for(var h=1,v=0;v0;N--){var $=v.evaluateAt(this.field.exp(N));M[i-N]=$,0!==$&&(O=!0)}if(!O)return 0;var q=this.field.getOne();if(null!=s)try{for(var de=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s),we=de.next();!we.done;we=de.next()){var vt=this.field.exp(t.length-1-we.value),zt=new ca(this.field,new Int32Array([this.field.subtract(0,vt),1]));q=q.multiply(zt)}}catch(fi){c={error:fi}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}var $t=new ca(this.field,M),Gt=this.runEuclideanAlgorithm(this.field.buildMonomial(i,1),$t,i),an=Gt[0],bn=Gt[1],Nn=this.findErrorLocations(an),Zn=this.findErrorMagnitudes(bn,an,Nn);for(N=0;N=Math.round(s/2);){var N=h,$=M;if(M=O,(h=v).isZero())throw St.getChecksumInstance();v=N;for(var q=this.field.getZero(),de=h.getCoefficient(h.getDegree()),we=this.field.inverse(de);v.getDegree()>=h.getDegree()&&!v.isZero();){var et=v.getDegree()-h.getDegree(),vt=this.field.multiply(v.getCoefficient(v.getDegree()),we);q=q.add(this.field.buildMonomial(et,vt)),v=v.subtract(h.multiplyByMonomial(et,vt))}O=q.multiply(M).subtract($).negative()}var zt=O.getCoefficient(0);if(0===zt)throw St.getChecksumInstance();var $t=this.field.inverse(zt);return[O.multiply($t),v.multiply($t)]},o.prototype.findErrorLocations=function(t){for(var i=t.getDegree(),s=new Int32Array(i),c=0,h=1;h0){var O=s?this.topLeft:this.topRight,N=Math.trunc(O.getY()-t);N<0&&(N=0);var $=new $n(O.getX(),N);s?c=$:v=$}if(i>0){var q=s?this.bottomLeft:this.bottomRight,de=Math.trunc(q.getY()+i);de>=this.image.getHeight()&&(de=this.image.getHeight()-1);var we=new $n(q.getX(),de);s?h=we:M=we}return new o(this.image,c,h,v,M)},o.prototype.getMinX=function(){return this.minX},o.prototype.getMaxX=function(){return this.maxX},o.prototype.getMinY=function(){return this.minY},o.prototype.getMaxY=function(){return this.maxY},o.prototype.getTopLeft=function(){return this.topLeft},o.prototype.getTopRight=function(){return this.topRight},o.prototype.getBottomLeft=function(){return this.bottomLeft},o.prototype.getBottomRight=function(){return this.bottomRight},o}();const kl=wc;var Ql=function(){function o(t,i,s,c){this.columnCount=t,this.errorCorrectionLevel=c,this.rowCountUpperPart=i,this.rowCountLowerPart=s,this.rowCount=i+s}return o.prototype.getColumnCount=function(){return this.columnCount},o.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},o.prototype.getRowCount=function(){return this.rowCount},o.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},o.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},o}();const Ac=Ql;var Hc=function(){function o(){this.buffer=""}return o.form=function(t,i){var s=-1;return t.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,function c(v,M,O,N,$,q){if("%%"===v)return"%";if(void 0!==i[++s]){v=N?parseInt(N.substr(1)):void 0;var we,de=$?parseInt($.substr(1)):void 0;switch(q){case"s":we=i[s];break;case"c":we=i[s][0];break;case"f":we=parseFloat(i[s]).toFixed(v);break;case"p":we=parseFloat(i[s]).toPrecision(v);break;case"e":we=parseFloat(i[s]).toExponential(v);break;case"x":we=parseInt(i[s]).toString(de||16);break;case"d":we=parseFloat(parseInt(i[s],de||10).toPrecision(v)).toFixed(0)}we="object"==typeof we?JSON.stringify(we):(+we).toString(de);for(var et=parseInt(O),vt=O&&O[0]+""=="0"?"0":" ";we.length=0&&null!=(i=this.codewords[c])||(c=this.imageRowToCodewordIndex(t)+s)=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.codewords),v=h.next();!v.done;v=h.next()){var M=v.value;null!=M?s.format("%3d: %3d|%3d%n",c++,M.getRowNumber(),M.getValue()):s.format("%3d: | %n",c++)}}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return s.toString()},o.MAX_NEARBY_DISTANCE=5,o}();const fc=cd;var Po=function(o,t){var i="function"==typeof Symbol&&o[Symbol.iterator];if(!i)return o;var c,v,s=i.call(o),h=[];try{for(;(void 0===t||t-- >0)&&!(c=s.next()).done;)h.push(c.value)}catch(M){v={error:M}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(v)throw v.error}}return h},da=function(){function o(){this.values=new Map}return o.prototype.setValue=function(t){t=Math.trunc(t);var i=this.values.get(t);null==i&&(i=0),i++,this.values.set(t,i)},o.prototype.getValue=function(){var t,i,s=-1,c=new Array,h=function(q,de){var we_getKey=function(){return q},we_getValue=function(){return de};we_getValue()>s?(s=we_getValue(),(c=[]).push(we_getKey())):we_getValue()===s&&c.push(we_getKey())};try{for(var v=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.values.entries()),M=v.next();!M.done;M=v.next()){var O=Po(M.value,2);h(O[0],O[1])}}catch(q){t={error:q}}finally{try{M&&!M.done&&(i=v.return)&&i.call(v)}finally{if(t)throw t.error}}return Pi.toIntArray(c)},o.prototype.getConfidence=function(t){return this.values.get(t)},o}();const Ll=da;var as=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),pc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ir=function(o){function t(i,s){var c=o.call(this,i)||this;return c._isLeft=s,c}return as(t,o),t.prototype.setRowNumbers=function(){var i,s;try{for(var c=pc(this.getCodewords()),h=c.next();!h.done;h=c.next()){var v=h.value;v?.setRowNumberAsRowIndicatorColumn()}}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},t.prototype.adjustCompleteIndicatorColumnRowNumbers=function(i){var s=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(s,i);for(var c=this.getBoundingBox(),h=this._isLeft?c.getTopLeft():c.getTopRight(),v=this._isLeft?c.getBottomLeft():c.getBottomRight(),M=this.imageRowToCodewordIndex(Math.trunc(h.getY())),O=this.imageRowToCodewordIndex(Math.trunc(v.getY())),N=-1,$=1,q=0,de=M;de=i.getRowCount()||et>de)s[de]=null;else{for(var vt,zt=(vt=$>2?($-2)*et:et)>=de,$t=1;$t<=vt&&!zt;$t++)zt=null!=s[de-$t];zt?s[de]=null:(N=we.getRowNumber(),q=1)}}},t.prototype.getRowHeights=function(){var i,s,c=this.getBarcodeMetadata();if(null==c)return null;this.adjustIncompleteIndicatorColumnRowNumbers(c);var h=new Int32Array(c.getRowCount());try{for(var v=pc(this.getCodewords()),M=v.next();!M.done;M=v.next()){var O=M.value;if(null!=O){var N=O.getRowNumber();if(N>=h.length)continue;h[N]++}}}catch($){i={error:$}}finally{try{M&&!M.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return h},t.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(i){for(var s=this.getBoundingBox(),c=this._isLeft?s.getTopLeft():s.getTopRight(),h=this._isLeft?s.getBottomLeft():s.getBottomRight(),v=this.imageRowToCodewordIndex(Math.trunc(c.getY())),M=this.imageRowToCodewordIndex(Math.trunc(h.getY())),O=this.getCodewords(),N=-1,$=1,q=0,de=v;de=i.getRowCount()?O[de]=null:(N=we.getRowNumber(),q=1)}},t.prototype.getBarcodeMetadata=function(){var i,s,c=this.getCodewords(),h=new Ll,v=new Ll,M=new Ll,O=new Ll;try{for(var N=pc(c),$=N.next();!$.done;$=N.next()){var q=$.value;if(null!=q){q.setRowNumberAsRowIndicatorColumn();var de=q.getValue()%30,we=q.getRowNumber();switch(this._isLeft||(we+=2),we%3){case 0:v.setValue(3*de+1);break;case 1:O.setValue(de/3),M.setValue(de%3);break;case 2:h.setValue(de+1)}}}}catch(vt){i={error:vt}}finally{try{$&&!$.done&&(s=N.return)&&s.call(N)}finally{if(i)throw i.error}}if(0===h.getValue().length||0===v.getValue().length||0===M.getValue().length||0===O.getValue().length||h.getValue()[0]<1||v.getValue()[0]+M.getValue()[0]Pi.MAX_ROWS_IN_BARCODE)return null;var et=new Ac(h.getValue()[0],v.getValue()[0],M.getValue()[0],O.getValue()[0]);return this.removeIncorrectCodewords(c,et),et},t.prototype.removeIncorrectCodewords=function(i,s){for(var c=0;cs.getRowCount()){i[c]=null;continue}switch(this._isLeft||(M+=2),M%3){case 0:3*v+1!==s.getRowCountUpperPart()&&(i[c]=null);break;case 1:(Math.trunc(v/3)!==s.getErrorCorrectionLevel()||v%3!==s.getRowCountLowerPart())&&(i[c]=null);break;case 2:v+1!==s.getColumnCount()&&(i[c]=null)}}}},t.prototype.isLeft=function(){return this._isLeft},t.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+o.prototype.toString.call(this)},t}(fc);const k=ir;var pe=function(){function o(t,i){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=i,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return o.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var i,t=Pi.MAX_CODEWORDS_IN_BARCODE;do{i=t,t=this.adjustRowNumbersAndGetCount()}while(t>0&&t0&&h0&&(N[0]=s[i-1],N[4]=M[i-1],N[5]=O[i-1]),i>1&&(N[8]=s[i-2],N[10]=M[i-2],N[11]=O[i-2]),i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(N),q=$.next();!q.done;q=$.next())if(o.adjustRowNumber(v,q.value))return}catch(we){c={error:we}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}}},o.adjustRowNumber=function(t,i){return!(null==i||!i.hasValidRowNumber()||i.getBucket()!==t.getBucket()||(t.setRowNumber(i.getRowNumber()),0))},o.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},o.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},o.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},o.prototype.setBoundingBox=function(t){this.boundingBox=t},o.prototype.getBoundingBox=function(){return this.boundingBox},o.prototype.setDetectionResultColumn=function(t,i){this.detectionResultColumns[t]=i},o.prototype.getDetectionResultColumn=function(t){return this.detectionResultColumns[t]},o.prototype.toString=function(){var t=this.detectionResultColumns[0];null==t&&(t=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var i=new Eo,s=0;s>=1;s=1&i,o.RATIOS_TABLE[t]||(o.RATIOS_TABLE[t]=new Array(Pi.BARS_IN_MODULE)),o.RATIOS_TABLE[t][Pi.BARS_IN_MODULE-c-1]=Math.fround(h/Pi.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},o.getDecodedValue=function(t){var i=o.getDecodedCodewordValue(o.sampleBitCounts(t));return-1!==i?i:o.getClosestDecodedValue(t)},o.sampleBitCounts=function(t){for(var i=_i.sum(t),s=new Int32Array(Pi.BARS_IN_MODULE),c=0,h=0,v=0;v1)for(var c=0;c=h)break}Ot.length||s<0||i+s>t.length||i+s<0)throw new Ln;if(0!==s)for(var c=0;c0&&this.grow(i)},t.prototype.grow=function(i){var c=this.buf.length<<1;if(c-i<0&&(c=i),c<0){if(i<0)throw new Ad;c=Ee.MAX_VALUE}this.buf=at.copyOfUint8Array(this.buf,c)},t.prototype.write=function(i){this.ensureCapacity(this.count+1),this.buf[this.count]=i,this.count+=1},t.prototype.writeBytesOffset=function(i,s,c){if(s<0||s>i.length||c<0||s+c-i.length>0)throw new Ln;this.ensureCapacity(this.count+c),Jt.arraycopy(i,s,this.buf,this.count,c),this.count+=c},t.prototype.writeTo=function(i){i.writeBytesOffset(this.buf,0,this.count)},t.prototype.reset=function(){this.count=0},t.prototype.toByteArray=function(){return at.copyOfUint8Array(this.buf,this.count)},t.prototype.size=function(){return this.count},t.prototype.toString=function(i){return i?"string"==typeof i?this.toString_string(i):this.toString_number(i):this.toString_void()},t.prototype.toString_void=function(){return new String(this.buf).toString()},t.prototype.toString_string=function(i){return new String(this.buf).toString()},t.prototype.toString_number=function(i){return new String(this.buf).toString()},t.prototype.close=function(){},t}(_c);const ua=Pl;var zo,Or=function(o){return o[o.ALPHA=0]="ALPHA",o[o.LOWER=1]="LOWER",o[o.MIXED=2]="MIXED",o[o.PUNCT=3]="PUNCT",o[o.ALPHA_SHIFT=4]="ALPHA_SHIFT",o[o.PUNCT_SHIFT=5]="PUNCT_SHIFT",o}(Or||{});function Vc(){if(typeof window<"u")return window.BigInt||null;if(typeof global<"u")return global.BigInt||null;if(typeof self<"u")return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}function zi(o){if(typeof zo>"u"&&(zo=Vc()),null===zo)throw new Error("BigInt is not supported!");return zo(o)}var La=function(){function o(){}return o.decode=function(t,i){var s=new Ce(""),c=Dn.ISO8859_1;s.enableDecoding(c);for(var h=1,v=t[h++],M=new Hr;ht[0])throw bt.getFormatInstance();for(var c=new Int32Array(o.NUMBER_OF_SEQUENCE_CODEWORDS),h=0;h0){for(var de=0;de<6;++de)v.write(Number(zi(O)>>zi(8*(5-de))));O=0,M=0}}c===i[0]&&q0){for(de=0;de<6;++de)v.write(Number(zi(O)>>zi(8*(5-de))));O=0,M=0}}}return h.append(Wn.decode(v.toByteArray(),s)),c},o.numericCompaction=function(t,i,s){for(var c=0,h=!1,v=new Int32Array(o.MAX_NUMERIC_CODEWORDS);i0&&(s.append(o.decodeBase900toBase10(v,c)),c=0)}return i},o.decodeBase900toBase10=function(t,i){for(var s=zi(0),c=0;c@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",o.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",o.EXP900=Vc()?function Nl(){var o=[];o[0]=zi(1);var t=zi(900);o[1]=t;for(var i=2;i<16;i++)o[i]=o[i-1]*t;return o}():[],o.NUMBER_OF_SEQUENCE_CODEWORDS=2,o}();const $d=La;var mc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jc=function(){function o(){}return o.decode=function(t,i,s,c,h,v,M){for(var q,O=new kl(t,i,s,c,h),N=null,$=null,de=!0;;de=!1){if(null!=i&&(N=o.getRowIndicatorColumn(t,O,i,!0,v,M)),null!=c&&($=o.getRowIndicatorColumn(t,O,c,!1,v,M)),null==(q=o.merge(N,$)))throw Se.getNotFoundInstance();var we=q.getBoundingBox();if(!de||null==we||!(we.getMinY()O.getMaxY()))break;O=we}q.setBoundingBox(O);var et=q.getBarcodeColumnCount()+1;q.setDetectionResultColumn(0,N),q.setDetectionResultColumn(et,$);for(var vt=null!=N,zt=1;zt<=et;zt++){var $t=vt?zt:et-zt;if(void 0===q.getDetectionResultColumn($t)){var Gt=void 0;Gt=0===$t||$t===et?new k(O,0===$t):new fc(O),q.setDetectionResultColumn($t,Gt);for(var an=-1,bn=an,Nn=O.getMinY();Nn<=O.getMaxY();Nn++){if((an=o.getStartColumn(q,$t,Nn,vt))<0||an>O.getMaxX()){if(-1===bn)continue;an=bn}var Zn=o.detectCodeword(t,O.getMinX(),O.getMaxX(),vt,an,Nn,v,M);null!=Zn&&(Gt.setCodeword(Nn,Zn),bn=an,v=Math.min(v,Zn.getWidth()),M=Math.max(M,Zn.getWidth()))}}}return o.createDecoderResult(q)},o.merge=function(t,i){if(null==t&&null==i)return null;var s=o.getBarcodeMetadata(t,i);if(null==s)return null;var c=kl.merge(o.adjustBoundingBox(t),o.adjustBoundingBox(i));return new ke(s,c)},o.adjustBoundingBox=function(t){var i,s;if(null==t)return null;var c=t.getRowHeights();if(null==c)return null;var h=o.getMax(c),v=0;try{for(var M=mc(c),O=M.next();!O.done;O=M.next()){var N=O.value;if(v+=h-N,N>0)break}}catch(we){i={error:we}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}for(var $=t.getCodewords(),q=0;v>0&&null==$[q];q++)v--;var de=0;for(q=c.length-1;q>=0&&(de+=h-c[q],!(c[q]>0));q--);for(q=$.length-1;de>0&&null==$[q];q--)de--;return t.getBoundingBox().addMissingRows(v,de,t.isLeft())},o.getMax=function(t){var i,s,c=-1;try{for(var h=mc(t),v=h.next();!v.done;v=h.next())c=Math.max(c,v.value)}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c},o.getBarcodeMetadata=function(t,i){var s,c;return null==t||null==(s=t.getBarcodeMetadata())?null==i?null:i.getBarcodeMetadata():null==i||null==(c=i.getBarcodeMetadata())?s:s.getColumnCount()!==c.getColumnCount()&&s.getErrorCorrectionLevel()!==c.getErrorCorrectionLevel()&&s.getRowCount()!==c.getRowCount()?null:s},o.getRowIndicatorColumn=function(t,i,s,c,h,v){for(var M=new k(i,c),O=0;O<2;O++)for(var N=0===O?1:-1,$=Math.trunc(Math.trunc(s.getX())),q=Math.trunc(Math.trunc(s.getY()));q<=i.getMaxY()&&q>=i.getMinY();q+=N){var de=o.detectCodeword(t,0,t.getWidth(),c,$,q,h,v);null!=de&&(M.setCodeword(q,de),$=c?de.getStartX():de.getEndX())}return M},o.adjustCodewordCount=function(t,i){var s=i[0][1],c=s.getValue(),h=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-o.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===c.length){if(h<1||h>Pi.MAX_CODEWORDS_IN_BARCODE)throw Se.getNotFoundInstance();s.setValue(h)}else c[0]!==h&&s.setValue(h)},o.createDecoderResult=function(t){var i=o.createBarcodeMatrix(t);o.adjustCodewordCount(t,i);for(var s=new Array,c=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),h=[],v=new Array,M=0;M0;){for(var O=0;O=0){if(zt>=v.length)continue;v[zt][N].setValue(vt.getValue())}}}}catch($t){c={error:$t}}finally{try{et&&!et.done&&(h=we.return)&&h.call(we)}finally{if(c)throw c.error}}N++}}catch($t){i={error:$t}}finally{try{q&&!q.done&&(s=$.return)&&s.call($)}finally{if(i)throw i.error}}return v},o.isValidBarcodeColumn=function(t,i){return i>=0&&i<=t.getBarcodeColumnCount()+1},o.getStartColumn=function(t,i,s,c){var h,v,M=c?1:-1,O=null;if(o.isValidBarcodeColumn(t,i-M)&&(O=t.getDetectionResultColumn(i-M).getCodeword(s)),null!=O)return c?O.getEndX():O.getStartX();if(null!=(O=t.getDetectionResultColumn(i).getCodewordNearby(s)))return c?O.getStartX():O.getEndX();if(o.isValidBarcodeColumn(t,i-M)&&(O=t.getDetectionResultColumn(i-M).getCodewordNearby(s)),null!=O)return c?O.getEndX():O.getStartX();for(var N=0;o.isValidBarcodeColumn(t,i-M);){i-=M;try{for(var $=(h=void 0,mc(t.getDetectionResultColumn(i).getCodewords())),q=$.next();!q.done;q=$.next()){var de=q.value;if(null!=de)return(c?de.getEndX():de.getStartX())+M*N*(de.getEndX()-de.getStartX())}}catch(we){h={error:we}}finally{try{q&&!q.done&&(v=$.return)&&v.call($)}finally{if(h)throw h.error}}N++}return c?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()},o.detectCodeword=function(t,i,s,c,h,v,M,O){h=o.adjustCodewordStartColumn(t,i,s,c,h,v);var N=o.getModuleBitCount(t,i,s,c,h,v);if(null==N)return null;var $,q=_i.sum(N);if(c)$=h+q;else{for(var de=0;de=i)&&N=i:Mo.CODEWORD_SKEW_SIZE)return h;M+=O}O=-O,c=!c}return M},o.checkCodewordSkew=function(t,i,s){return i-o.CODEWORD_SKEW_SIZE<=t&&t<=s+o.CODEWORD_SKEW_SIZE},o.decodeCodewords=function(t,i,s){if(0===t.length)throw bt.getFormatInstance();var c=1<s/2+o.MAX_ERRORS||s<0||s>o.MAX_EC_CODEWORDS)throw St.getChecksumInstance();return o.errorCorrection.decode(t,s,i)},o.verifyCodewordCount=function(t,i){if(t.length<4)throw bt.getFormatInstance();var s=t[0];if(s>t.length)throw bt.getFormatInstance();if(0===s){if(!(i>=1;return i},o.getCodewordBucketNumber=function(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)},o.getCodewordBucketNumber_number=function(t){return o.getCodewordBucketNumber(o.getBitCountForCodeword(t))},o.getCodewordBucketNumber_Int32Array=function(t){return(t[0]-t[2]+t[4]-t[6]+9)%9},o.toString=function(t){for(var i=new Eo,s=0;s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(M.getPoints()),N=O.next();!N.done;N=O.next()){var $=N.value,q=_l.decode(M.getBits(),$[4],$[5],$[6],$[7],o.getMinCodewordWidth($),o.getMaxCodewordWidth($)),de=new We(q.getText(),q.getRawBytes(),void 0,$,be.PDF_417);de.putMetadata(He.ERROR_CORRECTION_LEVEL,q.getECLevel());var we=q.getOther();null!=we&&de.putMetadata(He.PDF417_EXTRA_METADATA,we),v.push(de)}}catch(et){c={error:et}}finally{try{N&&!N.done&&(h=O.return)&&h.call(O)}finally{if(c)throw c.error}}return v.map(function(et){return et})},o.getMaxWidth=function(t,i){return null==t||null==i?0:Math.trunc(Math.abs(t.getX()-i.getX()))},o.getMinWidth=function(t,i){return null==t||null==i?Ee.MAX_VALUE:Math.trunc(Math.abs(t.getX()-i.getX()))},o.getMaxCodewordWidth=function(t){return Math.floor(Math.max(Math.max(o.getMaxWidth(t[0],t[4]),o.getMaxWidth(t[6],t[2])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN),Math.max(o.getMaxWidth(t[1],t[5]),o.getMaxWidth(t[7],t[3])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN)))},o.getMinCodewordWidth=function(t){return Math.floor(Math.min(Math.min(o.getMinWidth(t[0],t[4]),o.getMinWidth(t[6],t[2])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN),Math.min(o.getMinWidth(t[1],t[5]),o.getMinWidth(t[7],t[3])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN)))},o.prototype.reset=function(){},o}();const Pa=nu;var ao=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Zc=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return ao(t,o),t.kind="ReaderException",t}(te);const Go=Zc;var Kd=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},zc=function(){function o(){}return o.prototype.decode=function(t,i){return this.setHints(i),this.decodeInternal(t)},o.prototype.decodeWithState=function(t){return null==this.readers&&this.setHints(null),this.decodeInternal(t)},o.prototype.setHints=function(t){this.hints=t;var i=null!=t&&void 0!==t.get(he.TRY_HARDER),s=null==t?null:t.get(he.POSSIBLE_FORMATS),c=new Array;if(null!=s){var h=s.some(function(v){return v===be.UPC_A||v===be.UPC_E||v===be.EAN_13||v===be.EAN_8||v===be.CODABAR||v===be.CODE_39||v===be.CODE_93||v===be.CODE_128||v===be.ITF||v===be.RSS_14||v===be.RSS_EXPANDED});h&&!i&&c.push(new yi(t)),s.includes(be.QR_CODE)&&c.push(new js),s.includes(be.DATA_MATRIX)&&c.push(new cc),s.includes(be.AZTEC)&&c.push(new Vo),s.includes(be.PDF_417)&&c.push(new Pa),h&&i&&c.push(new yi(t))}0===c.length&&(i||c.push(new yi(t)),c.push(new js),c.push(new cc),c.push(new Vo),c.push(new Pa),i&&c.push(new yi(t))),this.readers=c},o.prototype.reset=function(){var t,i;if(null!==this.readers)try{for(var s=Kd(this.readers),c=s.next();!c.done;c=s.next())c.value.reset()}catch(v){t={error:v}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}},o.prototype.decodeInternal=function(t){var i,s;if(null===this.readers)throw new Go("No readers where selected, nothing can be read.");try{for(var c=Kd(this.readers),h=c.next();!h.done;h=c.next()){var v=h.value;try{return v.decode(t,this.hints)}catch(M){if(M instanceof Go)continue}}}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}throw new Se("No MultiFormat Readers were able to detect the code.")},o}();const Jd=zc;var nl=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),qd=(function(o){function t(i,s){void 0===i&&(i=null),void 0===s&&(s=500);var h=new Jd;return h.setHints(i),o.call(this,h,s)||this}nl(t,o),t.prototype.decodeBitmap=function(i){return this.reader.decodeWithState(i)}}(Pe),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),Oc=(function(o){qd(function t(i){return void 0===i&&(i=500),o.call(this,new Pa,i)||this},o)}(Pe),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),iu=(function(o){Oc(function t(i){return void 0===i&&(i=500),o.call(this,new js,i)||this},o)}(Pe),function(o){return o[o.ERROR_CORRECTION=0]="ERROR_CORRECTION",o[o.CHARACTER_SET=1]="CHARACTER_SET",o[o.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",o[o.DATA_MATRIX_COMPACT=3]="DATA_MATRIX_COMPACT",o[o.MIN_SIZE=4]="MIN_SIZE",o[o.MAX_SIZE=5]="MAX_SIZE",o[o.MARGIN=6]="MARGIN",o[o.PDF417_COMPACT=7]="PDF417_COMPACT",o[o.PDF417_COMPACTION=8]="PDF417_COMPACTION",o[o.PDF417_DIMENSIONS=9]="PDF417_DIMENSIONS",o[o.AZTEC_LAYERS=10]="AZTEC_LAYERS",o[o.QR_VERSION=11]="QR_VERSION",o[o.GS1_FORMAT=12]="GS1_FORMAT",o[o.FORCE_C40=13]="FORCE_C40",o}(iu||{}));const pi=iu;var Wc=function(){function o(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new Mt(t,Int32Array.from([1])))}return o.prototype.buildGenerator=function(t){var i=this.cachedGenerators;if(t>=i.length)for(var s=i[i.length-1],c=this.field,h=i.length;h<=t;h++){var v=s.multiply(new Mt(c,Int32Array.from([1,c.exp(h-1+c.getGeneratorBase())])));i.push(v),s=v}return i[t]},o.prototype.encode=function(t,i){if(0===i)throw new Ge("No error correction bytes");var s=t.length-i;if(s<=0)throw new Ge("No data bytes provided");var c=this.buildGenerator(i),h=new Int32Array(s);Jt.arraycopy(t,0,h,0,s);for(var v=new Mt(this.field,h),O=(v=v.multiplyByMonomial(i,1)).divide(c)[1].getCoefficients(),N=i-O.length,$=0;$=5&&(s+=o.N1+(O-5)),O=1,N=q)}O>=5&&(s+=o.N1+(O-5))}return s},o.N1=3,o.N2=3,o.N3=40,o.N4=10,o}();const No=Mc;var Ye=function(){function o(t,i){this.width=t,this.height=i;for(var s=new Array(i),c=0;c!==i;c++)s[c]=new Uint8Array(t);this.bytes=s}return o.prototype.getHeight=function(){return this.height},o.prototype.getWidth=function(){return this.width},o.prototype.get=function(t,i){return this.bytes[i][t]},o.prototype.getArray=function(){return this.bytes},o.prototype.setNumber=function(t,i,s){this.bytes[i][t]=s},o.prototype.setBoolean=function(t,i,s){this.bytes[i][t]=s?1:0},o.prototype.clear=function(t){var i,s;try{for(var c=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.bytes),h=c.next();!h.done;h=c.next())at.fill(h.value,t)}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},o.prototype.equals=function(t){if(!(t instanceof o))return!1;var i=t;if(this.width!==i.width||this.height!==i.height)return!1;for(var s=0,c=this.height;s>\n"),t.toString()},o.prototype.setMode=function(t){this.mode=t},o.prototype.setECLevel=function(t){this.ecLevel=t},o.prototype.setVersion=function(t){this.version=t},o.prototype.setMaskPattern=function(t){this.maskPattern=t},o.prototype.setMatrix=function(t){this.matrix=t},o.isValidMaskPattern=function(t){return t>=0&&t0;){for(6===v&&(v-=1);M>=0&&M=s;)t^=i<=0)for(var O=0;O!==v;O++){var N=c[O];N>=0&&o.isEmpty(i.get(N,M))&&o.embedPositionAdjustmentPattern(N-2,M-2,i)}}},o.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),o.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),o.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),o.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),o.VERSION_INFO_POLY=7973,o.TYPE_INFO_POLY=1335,o.TYPE_INFO_MASK_PATTERN=21522,o}();const Ci=hi;var Hi=function(){function o(t,i){this.dataBytes=t,this.errorCorrectionBytes=i}return o.prototype.getDataBytes=function(){return this.dataBytes},o.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},o}();const Wr=Hi;var Ns=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Na=function(){function o(){}return o.calculateMaskPenalty=function(t){return No.applyMaskPenaltyRule1(t)+No.applyMaskPenaltyRule2(t)+No.applyMaskPenaltyRule3(t)+No.applyMaskPenaltyRule4(t)},o.encode=function(t,i,s){void 0===s&&(s=null);var c=o.DEFAULT_BYTE_MODE_ENCODING,h=null!==s&&void 0!==s.get(pi.CHARACTER_SET);h&&(c=s.get(pi.CHARACTER_SET).toString());var v=this.chooseMode(t,c),M=new me;if(v===xe.BYTE&&(h||o.DEFAULT_BYTE_MODE_ENCODING!==c)){var O=Dn.getCharacterSetECIByName(c);void 0!==O&&this.appendECI(O,M)}this.appendModeInfo(v,M);var $,N=new me;if(this.appendBytes(t,v,N,c),null!==s&&void 0!==s.get(pi.QR_VERSION)){var q=Number.parseInt(s.get(pi.QR_VERSION).toString(),10);$=Ls.getVersionForNumber(q);var de=this.calculateBitsNeeded(v,M,N,$);if(!this.willFit(de,$,i))throw new Hn("Data too big for requested version")}else $=this.recommendVersion(i,v,M,N);var we=new me;we.appendBitArray(M);var et=v===xe.BYTE?N.getSizeInBytes():t.length;this.appendLengthInfo(et,$,v,we),we.appendBitArray(N);var vt=$.getECBlocksForLevel(i),zt=$.getTotalCodewords()-vt.getTotalECCodewords();this.terminateBits(zt,we);var $t=this.interleaveWithECBytes(we,$.getTotalCodewords(),zt,vt.getNumBlocks()),Gt=new sn;Gt.setECLevel(i),Gt.setMode(v),Gt.setVersion($);var an=$.getDimensionForVersion(),bn=new it(an,an),Nn=this.chooseMaskPattern($t,i,$,bn);return Gt.setMaskPattern(Nn),Ci.buildMatrix($t,i,$,Nn,bn),Gt.setMatrix(bn),Gt},o.recommendVersion=function(t,i,s,c){var h=this.calculateBitsNeeded(i,s,c,Ls.getVersionForNumber(1)),v=this.chooseVersion(h,t),M=this.calculateBitsNeeded(i,s,c,v);return this.chooseVersion(M,t)},o.calculateBitsNeeded=function(t,i,s,c){return i.getSize()+t.getCharacterCountBits(c)+s.getSize()},o.getAlphanumericCode=function(t){return t159)&&(h<224||h>235))return!1}return!0},o.chooseMaskPattern=function(t,i,s,c){for(var h=Number.MAX_SAFE_INTEGER,v=-1,M=0;M=(t+7)/8},o.terminateBits=function(t,i){var s=8*t;if(i.getSize()>s)throw new Hn("data bits cannot fit in the QR Code"+i.getSize()+" > "+s);for(var c=0;c<4&&i.getSize()0)for(c=h;c<8;c++)i.appendBit(!1);var v=t-i.getSizeInBytes();for(c=0;c=s)throw new Hn("Block ID too large");var M=t%s,O=s-M,N=Math.floor(t/s),$=N+1,q=Math.floor(i/s),de=q+1,we=N-q,et=$-de;if(we!==et)throw new Hn("EC bytes mismatch");if(s!==O+M)throw new Hn("RS blocks mismatch");if(t!==(q+we)*O+(de+et)*M)throw new Hn("Total bytes mismatch");c=1<=0&&i<=9},o.appendNumericBytes=function(t,i){for(var s=t.length,c=0;c=33088&&O<=40956?N=O-33088:O>=57408&&O<=60351&&(N=O-49472),-1===N)throw new Hn("Invalid byte sequence");i.appendBits(192*(N>>8)+(255&N),13)}},o.appendECI=function(t,i){i.appendBits(xe.ECI.getBits(),4),i.appendBits(t.getValue(),8)},o.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),o.DEFAULT_BYTE_MODE_ENCODING=Dn.UTF8.getName(),o}();const Fl=Na;!function(){function o(){}o.prototype.write=function(t,i,s,c){if(void 0===c&&(c=null),0===t.length)throw new Ge("Found empty contents");if(i<0||s<0)throw new Ge("Requested dimensions are too small: "+i+"x"+s);var h=aa.L,v=o.QUIET_ZONE_SIZE;null!==c&&(void 0!==c.get(pi.ERROR_CORRECTION)&&(h=aa.fromString(c.get(pi.ERROR_CORRECTION).toString())),void 0!==c.get(pi.MARGIN)&&(v=Number.parseInt(c.get(pi.MARGIN).toString(),10)));var M=Fl.encode(t,h,c);return this.renderResult(M,i,s,v)},o.prototype.writeToDom=function(t,i,s,c,h){void 0===h&&(h=null),"string"==typeof t&&(t=document.querySelector(t));var v=this.write(i,s,c,h);t&&t.appendChild(v)},o.prototype.renderResult=function(t,i,s,c){var h=t.getMatrix();if(null===h)throw new ki;for(var v=h.getWidth(),M=h.getHeight(),O=v+2*c,N=M+2*c,$=Math.max(i,O),q=Math.max(s,N),de=Math.min(Math.floor($/O),Math.floor(q/N)),we=Math.floor(($-v*de)/2),et=Math.floor((q-M*de)/2),vt=this.createSVGElement($,q),zt=0,$t=et;zts||v+O>c)throw new Ge("Crop rectangle does not fit within image data.");return N&&$.reverseHorizontal(M,O),$}Qd(t,o),t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth();return(null==s||s.length>16&255)+(we>>7&510)+(255&we))/4&255}N.luminances=q}else N.luminances=i;if(void 0===h&&(N.dataWidth=s),void 0===v&&(N.dataHeight=c),void 0===M&&(N.left=0),void 0===O&&(N.top=0),N.left+s>N.dataWidth||N.top+c>N.dataHeight)throw new Ge("Crop rectangle does not fit within image data.");return N}cs(t,o),t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth();return(null==s||s.length=0&&this.noBit(s,i)&&this.utah(i,s,t++),i-=2,s+=2}while(i>=0&&s=0&&s=0);i+=3,s++}while(i=256&&(i^=301);return{LOG:o,ALOG:t}}([],[]),F.LOG),Dt=F.ALOG,ru="[)>\x1e05\x1d",ou="[)>\x1e06\x1d",Qh=function(){function o(){}return o.encodeECC200=function(t,i){if(t.length!==i.getDataCapacity())throw new Error("The number of codewords does not match the selected symbol");var s=new Ce;s.append(t);var c=i.getInterleavedBlockCount();if(1===c){var h=this.createECCBlock(t,i.getErrorCodewords());s.append(h)}else{for(var v=[],M=[],O=0;O0;O--)v[O]=0!==M&&0!==h[O]?v[O-1]^Dt[(ye[M]+ye[h[O]])%255]:v[O-1];v[0]=0!==M&&0!==h[0]?Dt[(ye[M]+ye[h[0]])%255]:0}var N=[];for(c=0;c=2)t.writeCodeword(this.encodeASCIIDigits(t.getMessage().charCodeAt(t.pos),t.getMessage().charCodeAt(t.pos+1))),t.pos+=2;else{var s=t.getCurrentChar(),c=Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(c!==this.getEncodingMode())switch(c){case 5:return t.writeCodeword(231),void t.signalEncoderChange(5);case 1:return t.writeCodeword(230),void t.signalEncoderChange(1);case 3:t.writeCodeword(238),t.signalEncoderChange(3);break;case 2:t.writeCodeword(239),t.signalEncoderChange(2);break;case 4:t.writeCodeword(240),t.signalEncoderChange(4);break;default:throw new Error("Illegal mode: "+c)}else Mr.isExtendedASCII(s)?(t.writeCodeword(235),t.writeCodeword(s-128+1),t.pos++):(t.writeCodeword(s+1),t.pos++)}},o.prototype.encodeASCIIDigits=function(t,i){if(Mr.isDigit(t)&&Mr.isDigit(i))return 10*(t-48)+(i-48)+130;throw new Error("not digits: "+t+i)},o}(),gh=function(){function o(){}return o.prototype.getEncodingMode=function(){return 5},o.prototype.encode=function(t){var i=new Ce;for(i.append(0);t.hasMoreCharacters();){var s=t.getCurrentChar();if(i.append(s),t.pos++,Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}var h=i.length()-1,M=t.getCodewordCount()+h+1;t.updateSymbolInfo(M);var O=t.getSymbolInfo().getDataCapacity()-M>0;if(t.hasMoreCharacters()||O)if(h<=249)i.setCharAt(0,ct.getCharAt(h));else{if(!(h<=1555))throw new Error("Message length not in valid ranges: "+h);i.setCharAt(0,ct.getCharAt(Math.floor(h/250)+249)),i.insert(1,ct.getCharAt(h%250))}var N=0;for(s=i.length();N3||1!==N))&&(t.pos=c)}i.length()>0&&t.writeCodeword(230),this.handleEOD(t,i)},o.prototype.encode=function(t){for(var i=new Ce;t.hasMoreCharacters();){var s=t.getCurrentChar();t.pos++;var c=this.encodeChar(s,i),h=2*Math.floor(i.length()/3),v=t.getCodewordCount()+h;t.updateSymbolInfo(v);var M=t.getSymbolInfo().getDataCapacity()-v;if(!t.hasMoreCharacters()){var O=new Ce;for(i.length()%3==2&&2!==M&&(c=this.backtrackOneCharacter(t,i,O,c));i.length()%3==1&&(c>3||1!==M);)c=this.backtrackOneCharacter(t,i,O,c);break}if(i.length()%3==0&&Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}this.handleEOD(t,i)},o.prototype.backtrackOneCharacter=function(t,i,s,c){var h=i.length(),v=i.toString().substring(0,h-c);i.setLengthToZero(),i.append(v),t.pos--;var M=t.getCurrentChar();return c=this.encodeChar(M,s),t.resetSymbolInfo(),c},o.prototype.writeNextTriplet=function(t,i){t.writeCodewords(this.encodeToCodewords(i.toString()));var s=i.toString().substring(3);i.setLengthToZero(),i.append(s)},o.prototype.handleEOD=function(t,i){var s=Math.floor(i.length()/3*2),c=i.length()%3,h=t.getCodewordCount()+s;t.updateSymbolInfo(h);var v=t.getSymbolInfo().getDataCapacity()-h;if(2===c){for(i.append("\0");i.length()>=3;)this.writeNextTriplet(t,i);t.hasMoreCharacters()&&t.writeCodeword(254)}else if(1===v&&1===c){for(;i.length()>=3;)this.writeNextTriplet(t,i);t.hasMoreCharacters()&&t.writeCodeword(254),t.pos--}else{if(0!==c)throw new Error("Unexpected case. Please report!");for(;i.length()>=3;)this.writeNextTriplet(t,i);(v>0||t.hasMoreCharacters())&&t.writeCodeword(254)}t.signalEncoderChange(0)},o.prototype.encodeChar=function(t,i){return t===" ".charCodeAt(0)?(i.append(3),1):t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)?(i.append(t-48+4),1):t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)?(i.append(t-65+14),1):t<" ".charCodeAt(0)?(i.append(0),i.append(t),2):t<="/".charCodeAt(0)?(i.append(1),i.append(t-33),2):t<="@".charCodeAt(0)?(i.append(1),i.append(t-58+15),2):t<="_".charCodeAt(0)?(i.append(1),i.append(t-91+22),2):t<=127?(i.append(2),i.append(t-96),2):(i.append("1\x1e"),2+this.encodeChar(t-128,i))},o.prototype.encodeToCodewords=function(t){var i=1600*t.charCodeAt(0)+40*t.charCodeAt(1)+t.charCodeAt(2)+1,s=i/256,c=i%256,h=new Ce;return h.append(s),h.append(c),h.toString()},o}(),vh=function(){function o(){}return o.prototype.getEncodingMode=function(){return 4},o.prototype.encode=function(t){for(var i=new Ce;t.hasMoreCharacters();){var s=t.getCurrentChar();if(this.encodeChar(s,i),t.pos++,i.length()>=4){t.writeCodewords(this.encodeToCodewords(i.toString()));var h=i.toString().substring(4);if(i.setLengthToZero(),i.append(h),Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}}i.append(ct.getCharAt(31)),this.handleEOD(t,i)},o.prototype.handleEOD=function(t,i){try{var s=i.length();if(0===s)return;if(1===s){t.updateSymbolInfo();var c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount(),h=t.getRemainingCharacters();if(h>c&&(t.updateSymbolInfo(t.getCodewordCount()+1),c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount()),h<=c&&c<=2)return}if(s>4)throw new Error("Count must not exceed 4");var v=s-1,M=this.encodeToCodewords(i.toString()),N=!t.hasMoreCharacters()&&v<=2;v<=2&&(t.updateSymbolInfo(t.getCodewordCount()+v),(c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount())>=3&&(N=!1,t.updateSymbolInfo(t.getCodewordCount()+M.length))),N?(t.resetSymbolInfo(),t.pos-=v):t.writeCodewords(M)}finally{t.signalEncoderChange(0)}},o.prototype.encodeChar=function(t,i){t>=" ".charCodeAt(0)&&t<="?".charCodeAt(0)?i.append(t):t>="@".charCodeAt(0)&&t<="^".charCodeAt(0)?i.append(ct.getCharAt(t-64)):Mr.illegalCharacter(ct.getCharAt(t))},o.prototype.encodeToCodewords=function(t){var i=t.length;if(0===i)throw new Error("StringBuilder must not be empty");var M=(t.charAt(0).charCodeAt(0)<<18)+((i>=2?t.charAt(1).charCodeAt(0):0)<<12)+((i>=3?t.charAt(2).charCodeAt(0):0)<<6)+(i>=4?t.charAt(3).charCodeAt(0):0),O=M>>16&255,N=M>>8&255,$=255&M,q=new Ce;return q.append(O),i>=2&&q.append(N),i>=3&&q.append($),q.toString()},o}(),tf=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),eo=function(){function o(t,i,s,c,h,v,M,O){void 0===M&&(M=0),void 0===O&&(O=0),this.rectangular=t,this.dataCapacity=i,this.errorCodewords=s,this.matrixWidth=c,this.matrixHeight=h,this.dataRegions=v,this.rsBlockData=M,this.rsBlockError=O}return o.lookup=function(t,i,s,c,h){var v,M;void 0===i&&(i=0),void 0===s&&(s=null),void 0===c&&(c=null),void 0===h&&(h=!0);try{for(var O=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Bl),N=O.next();!N.done;N=O.next()){var $=N.value;if((1!==i||!$.rectangular)&&(2!==i||$.rectangular)&&(null==s||!($.getSymbolWidth()c.getWidth()||$.getSymbolHeight()>c.getHeight()))&&t<=$.dataCapacity)return $}}catch(q){v={error:q}}finally{try{N&&!N.done&&(M=O.return)&&M.call(O)}finally{if(v)throw v.error}}if(h)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+t);return null},o.prototype.getHorizontalDataRegions=function(){switch(this.dataRegions){case 1:return 1;case 2:case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},o.prototype.getVerticalDataRegions=function(){switch(this.dataRegions){case 1:case 2:return 1;case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},o.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},o.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},o.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+2*this.getHorizontalDataRegions()},o.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+2*this.getVerticalDataRegions()},o.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},o.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},o.prototype.getDataCapacity=function(){return this.dataCapacity},o.prototype.getErrorCodewords=function(){return this.errorCodewords},o.prototype.getDataLengthForInterleavedBlock=function(t){return this.rsBlockData},o.prototype.getErrorLengthForInterleavedBlock=function(t){return this.rsBlockError},o}();const bh=eo;var jf=function(o){function t(){return o.call(this,!1,1558,620,22,22,36,-1,62)||this}return tf(t,o),t.prototype.getInterleavedBlockCount=function(){return 10},t.prototype.getDataLengthForInterleavedBlock=function(i){return i<=8?156:155},t}(eo),Bl=[new eo(!1,3,5,8,8,1),new eo(!1,5,7,10,10,1),new eo(!0,5,7,16,6,1),new eo(!1,8,10,12,12,1),new eo(!0,10,11,14,6,2),new eo(!1,12,12,14,14,1),new eo(!0,16,14,24,10,1),new eo(!1,18,14,16,16,1),new eo(!1,22,18,18,18,1),new eo(!0,22,18,16,10,2),new eo(!1,30,20,20,20,1),new eo(!0,32,24,16,14,2),new eo(!1,36,24,22,22,1),new eo(!1,44,28,24,24,1),new eo(!0,49,28,22,14,2),new eo(!1,62,36,14,14,4),new eo(!1,86,42,16,16,4),new eo(!1,114,48,18,18,4),new eo(!1,144,56,20,20,4),new eo(!1,174,68,22,22,4),new eo(!1,204,84,24,24,4,102,42),new eo(!1,280,112,14,14,16,140,56),new eo(!1,368,144,16,16,16,92,36),new eo(!1,456,192,18,18,16,114,48),new eo(!1,576,224,20,20,16,144,56),new eo(!1,696,272,22,22,16,174,68),new eo(!1,816,336,24,24,16,136,56),new eo(!1,1050,408,18,18,36,175,68),new eo(!1,1304,496,20,20,36,163,62),new jf],Wu=function(){function o(t){this.msg=t,this.pos=0,this.skipAtEnd=0;for(var i=t.split("").map(function(M){return M.charCodeAt(0)}),s=new Ce,c=0,h=i.length;cthis.symbolInfo.getDataCapacity())&&(this.symbolInfo=bh.lookup(t,this.shape,this.minSize,this.maxSize,!0))},o.prototype.resetSymbolInfo=function(){this.symbolInfo=null},o}(),yh=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),$u=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return yh(t,o),t.prototype.getEncodingMode=function(){return 3},t.prototype.encode=function(i){for(var s=new Ce;i.hasMoreCharacters();){var c=i.getCurrentChar();if(i.pos++,this.encodeChar(c,s),s.length()%3==0&&(this.writeNextTriplet(i,s),Mr.lookAheadTest(i.getMessage(),i.pos,this.getEncodingMode())!==this.getEncodingMode())){i.signalEncoderChange(0);break}}this.handleEOD(i,s)},t.prototype.encodeChar=function(i,s){switch(i){case 13:s.append(0);break;case"*".charCodeAt(0):s.append(1);break;case">".charCodeAt(0):s.append(2);break;case" ".charCodeAt(0):s.append(3);break;default:i>="0".charCodeAt(0)&&i<="9".charCodeAt(0)?s.append(i-48+4):i>="A".charCodeAt(0)&&i<="Z".charCodeAt(0)?s.append(i-65+14):Mr.illegalCharacter(ct.getCharAt(i))}return 1},t.prototype.handleEOD=function(i,s){i.updateSymbolInfo();var c=i.getSymbolInfo().getDataCapacity()-i.getCodewordCount(),h=s.length();i.pos-=h,(i.getRemainingCharacters()>1||c>1||i.getRemainingCharacters()!==c)&&i.writeCodeword(254),i.getNewEncoding()<0&&i.signalEncoderChange(0)},t}(au),rl=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),lu=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return rl(t,o),t.prototype.getEncodingMode=function(){return 2},t.prototype.encodeChar=function(i,s){return i===" ".charCodeAt(0)?(s.append(3),1):i>="0".charCodeAt(0)&&i<="9".charCodeAt(0)?(s.append(i-48+4),1):i>="a".charCodeAt(0)&&i<="z".charCodeAt(0)?(s.append(i-97+14),1):i<" ".charCodeAt(0)?(s.append(0),s.append(i),2):i<="/".charCodeAt(0)?(s.append(1),s.append(i-33),2):i<="@".charCodeAt(0)?(s.append(1),s.append(i-58+15),2):i>="[".charCodeAt(0)&&i<="_".charCodeAt(0)?(s.append(1),s.append(i-91+22),2):i==="`".charCodeAt(0)?(s.append(2),s.append(0),2):i<="Z".charCodeAt(0)?(s.append(2),s.append(i-65+1),2):i<=127?(s.append(2),s.append(i-123+27),2):(s.append("1\x1e"),2+this.encodeChar(i-128,s))},t}(au),wh=function(){function o(){}return o.randomize253State=function(t){var s=149*t%253+1+129;return s<=254?s:s-254},o.encodeHighLevel=function(t,i,s,c,h){void 0===i&&(i=0),void 0===s&&(s=null),void 0===c&&(c=null),void 0===h&&(h=!1);var v=new au,M=[new ef,v,new lu,new $u,new vh,new gh],O=new Wu(t);O.setSymbolShape(i),O.setSizeConstraints(s,c),t.startsWith(ru)&&t.endsWith("\x1e\x04")?(O.writeCodeword(236),O.setSkipAtEnd(2),O.pos+=7):t.startsWith(ou)&&t.endsWith("\x1e\x04")&&(O.writeCodeword(237),O.setSkipAtEnd(2),O.pos+=7);var N=0;for(h&&(v.encodeMaximal(O),N=O.getNewEncoding(),O.resetEncoderSignal());O.hasMoreCharacters();)M[N].encode(O),O.getNewEncoding()>=0&&(N=O.getNewEncoding(),O.resetEncoderSignal());var $=O.getCodewordCount();O.updateSymbolInfo();var q=O.getSymbolInfo().getDataCapacity();$=t.length)return s;var c;0===s?c=[0,1,1,1,1,1.25]:(c=[1,2,2,2,2,2.25])[s]=0;for(var h=0,v=new Uint8Array(6),M=[];;){if(i+h===t.length){at.fill(v,0),at.fill(M,0);var O=this.findMinimums(c,M,Ee.MAX_VALUE,v),N=this.getMinimumCount(v);if(M[0]===O)return 0;if(1===N){if(v[5]>0)return 5;if(v[4]>0)return 4;if(v[2]>0)return 2;if(v[3]>0)return 3}return 1}var $=t.charCodeAt(i+h);if(h++,this.isDigit($)?c[0]+=.5:this.isExtendedASCII($)?(c[0]=Math.ceil(c[0]),c[0]+=2):(c[0]=Math.ceil(c[0]),c[0]++),this.isNativeC40($)?c[1]+=2/3:this.isExtendedASCII($)?c[1]+=8/3:c[1]+=4/3,this.isNativeText($)?c[2]+=2/3:this.isExtendedASCII($)?c[2]+=8/3:c[2]+=4/3,this.isNativeX12($)?c[3]+=2/3:this.isExtendedASCII($)?c[3]+=13/3:c[3]+=10/3,this.isNativeEDIFACT($)?c[4]+=3/4:this.isExtendedASCII($)?c[4]+=4.25:c[4]+=3.25,this.isSpecialB256($)?c[5]+=4:c[5]++,h>=4){if(at.fill(v,0),at.fill(M,0),this.findMinimums(c,M,Ee.MAX_VALUE,v),M[0]v&&(s=v,at.fill(c,0)),s===v&&(c[h]=c[h]+1)}return s},o.getMinimumCount=function(t){for(var i=0,s=0;s<6;s++)i+=t[s];return i||0},o.isDigit=function(t){return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)},o.isExtendedASCII=function(t){return t>=128&&t<=255},o.isNativeC40=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},o.isNativeText=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)},o.isNativeX12=function(t){return this.isX12TermSep(t)||t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},o.isX12TermSep=function(t){return 13===t||t==="*".charCodeAt(0)||t===">".charCodeAt(0)},o.isNativeEDIFACT=function(t){return t>=" ".charCodeAt(0)&&t<="^".charCodeAt(0)},o.isSpecialB256=function(t){return!1},o.determineConsecutiveDigitCount=function(t,i){void 0===i&&(i=0);for(var s=t.length,c=i;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ju=function(){function o(t){this.charset=t,this.name=t.name}return o.prototype.canEncode=function(t){try{return null!=Wn.encode(t,this.charset)}catch{return!1}},o}(),rf=function(){function o(t,i,s){var c,h,v,M,O,N;this.ENCODERS=["IBM437","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","windows-1250","windows-1251","windows-1252","windows-1256","Shift_JIS"].map(function(Gi){return new Ju(Fa.forName(Gi))}),this.encoders=[];var $=[];$.push(new Ju(Ou.ISO_8859_1));for(var q=null!=i&&i.name.startsWith("UTF"),de=0;de=this.bytes.length)return!1;for(var s=0;s=this.length())throw new Error(""+t);if(this.isECI(t))throw new Error("value at "+t+" is not a character but an ECI");return this.isFNC1(t)?this.fnc1:this.bytes[t]},o.prototype.subSequence=function(t,i){if(t<0||t>i||i>this.length())throw new Error(""+t);for(var s=new Ce,c=t;c=this.length())throw new Error(""+t);return this.bytes[t]>255&&this.bytes[t]<=999},o.prototype.isFNC1=function(t){if(t<0||t>=this.length())throw new Error(""+t);return 1e3===this.bytes[t]},o.prototype.getECIValue=function(t){if(t<0||t>=this.length())throw new Error(""+t);if(!this.isECI(t))throw new Error("value at "+t+" is not an ECI but a character");return this.bytes[t]-256},o.prototype.addEdge=function(t,i,s){(null==t[i][s.encoderIndex]||t[i][s.encoderIndex].cachedTotalSize>s.cachedTotalSize)&&(t[i][s.encoderIndex]=s)},o.prototype.addEdges=function(t,i,s,c,h,v){var M=t.charAt(c).charCodeAt(0),O=0,N=i.length();i.getPriorityEncoderIndex()>=0&&(M===v||i.canEncode(M,i.getPriorityEncoderIndex()))&&(N=(O=i.getPriorityEncoderIndex())+1);for(var $=O;$=0;v--)q.unshift(255&we[v])}(null===de.previous?0:de.previous.encoderIndex)!==de.encoderIndex&&q.unshift(256+i.getECIValue(de.encoderIndex)),de=de.previous}var vt=[];for(v=0;v=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xh=function(o,t){var i="function"==typeof Symbol&&o[Symbol.iterator];if(!i)return o;var c,v,s=i.call(o),h=[];try{for(;(void 0===t||t-- >0)&&!(c=s.next()).done;)h.push(c.value)}catch(M){v={error:M}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(v)throw v.error}}return h},si=function(o){return o[o.ASCII=0]="ASCII",o[o.C40=1]="C40",o[o.TEXT=2]="TEXT",o[o.X12=3]="X12",o[o.EDF=4]="EDF",o[o.B256=5]="B256",o}(si||{}),du=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],Hl=function(){function o(){}return o.isExtendedASCII=function(t,i){return t!==i&&t>=128&&t<=255},o.isInC40Shift1Set=function(t){return t<=31},o.isInC40Shift2Set=function(t,i){var s,c;try{for(var h=cu(du),v=h.next();!v.done;v=h.next())if(v.value.charCodeAt(0)===t)return!0}catch(O){s={error:O}}finally{try{v&&!v.done&&(c=h.return)&&c.call(h)}finally{if(s)throw s.error}}return t===i},o.isInTextShift1Set=function(t){return this.isInC40Shift1Set(t)},o.isInTextShift2Set=function(t,i){return this.isInC40Shift2Set(t,i)},o.encodeHighLevel=function(t,i,s,c){void 0===i&&(i=null),void 0===s&&(s=-1),void 0===c&&(c=0);var h=0;return t.startsWith(ru)&&t.endsWith("\x1e\x04")?(h=5,t=t.substring(7,t.length-2)):t.startsWith(ou)&&t.endsWith("\x1e\x04")&&(h=6,t=t.substring(7,t.length-2)),decodeURIComponent(escape(String.fromCharCode.apply(String,function(){for(var o=[],t=0;ti.cachedTotalSize)&&(t[s][i.getEndMode()]=i)},o.getNumberOfC40Words=function(t,i,s,c){for(var h=0,v=i;v=128&&(s&&Mr.isNativeC40(O-128)||!s&&Mr.isNativeText(O-128))?h+=3:h+=4}else h+=2;if(h%3==0||(h-2)%3==0&&v+1===t.length())return c[0]=v-i+1,Math.ceil(h/3)}return c[0]=0,0},o.addEdges=function(t,i,s,c){var h,v;if(t.isECI(s))this.addEdge(i,new nc(t,si.ASCII,s,1,c));else{var we,M=t.charAt(s);if(null===c||c.getEndMode()!==si.EDF){Mr.isDigit(M)&&t.haveNCharacters(s,2)&&Mr.isDigit(t.charAt(s+1))?this.addEdge(i,new nc(t,si.ASCII,s,2,c)):this.addEdge(i,new nc(t,si.ASCII,s,1,c));var O=[si.C40,si.TEXT];try{for(var N=cu(O),$=N.next();!$.done;$=N.next()){var q=$.value,de=[];o.getNumberOfC40Words(t,s,q===si.C40,de)>0&&this.addEdge(i,new nc(t,q,s,de[0],c))}}catch(vt){h={error:vt}}finally{try{$&&!$.done&&(v=N.return)&&v.call(N)}finally{if(h)throw h.error}}t.haveNCharacters(s,3)&&Mr.isNativeX12(t.charAt(s))&&Mr.isNativeX12(t.charAt(s+1))&&Mr.isNativeX12(t.charAt(s+2))&&this.addEdge(i,new nc(t,si.X12,s,3,c)),this.addEdge(i,new nc(t,si.B256,s,1,c))}for(we=0;we<3;we++){var et=s+we;if(!t.haveNCharacters(et,1)||!Mr.isNativeEDIFACT(t.charAt(et)))break;this.addEdge(i,new nc(t,si.EDF,s,we+1,c))}3===we&&t.haveNCharacters(s,4)&&Mr.isNativeEDIFACT(t.charAt(s+3))&&this.addEdge(i,new nc(t,si.EDF,s,4,c))}},o.encodeMinimally=function(t){var i=t.length(),s=Array(i+1).fill(null).map(function(){return Array(6).fill(0)});this.addEdges(t,s,0,null);for(var c=1;c<=i;c++){for(var h=0;h<6;h++)null!==s[c][h]&&c=1&&h<=3?O.cachedTotalSize+1:O.cachedTotalSize;N0&&(s+=this.prepend(nc.getBytes(232),c));for(var O=0;O=0;s--)i.unshift(t[s]);return t.length},o.prototype.randomize253State=function(t){var s=149*t%253+1+129;return s<=254?s:s-254},o.prototype.applyRandomPattern=function(t,i,s){for(var c=0;c0&&this.getCodewordsRemaining(this.cachedTotalSize+t)<=2-t)return si.ASCII}if(this.mode===si.C40||this.mode===si.TEXT||this.mode===si.X12){if(this.fromPosition+this.characterLength>=this.input.length()&&0===this.getCodewordsRemaining(this.cachedTotalSize))return si.ASCII;var t;if(1===(t=this.getLastASCII())&&0===this.getCodewordsRemaining(this.cachedTotalSize+1))return si.ASCII}return this.mode},o.prototype.getMode=function(){return this.mode},o.prototype.getLastASCII=function(){var t=this.input.length(),i=this.fromPosition+this.characterLength;return t-i>4||i>=t?0:t-i==1?Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())?0:1:t-i==2?Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())||Hl.isExtendedASCII(this.input.charAt(i+1),this.input.getFNC1Character())?0:Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))?1:2:t-i==3?Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))&&!Hl.isExtendedASCII(this.input.charAt(i+2),this.input.getFNC1Character())||Mr.isDigit(this.input.charAt(i+1))&&Mr.isDigit(this.input.charAt(i+2))&&!Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())?2:0:Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))&&Mr.isDigit(this.input.charAt(i+2))&&Mr.isDigit(this.input.charAt(i+3))?2:0},o.prototype.getMinSymbolSize=function(t){var i,s,c,h,v,M;switch(this.input.getShapeHint()){case 1:try{for(var O=cu(this.squareCodewordCapacities),N=O.next();!N.done;N=O.next())if(($=N.value)>=t)return $}catch(vt){i={error:vt}}finally{try{N&&!N.done&&(s=O.return)&&s.call(O)}finally{if(i)throw i.error}}break;case 2:try{for(var q=cu(this.rectangularCodewordCapacities),de=q.next();!de.done;de=q.next())if(($=de.value)>=t)return $}catch(vt){c={error:vt}}finally{try{de&&!de.done&&(h=q.return)&&h.call(q)}finally{if(c)throw c.error}}}try{for(var we=cu(this.allCodewordCapacities),et=we.next();!et.done;et=we.next()){var $;if(($=et.value)>=t)return $}}catch(vt){v={error:vt}}finally{try{et&&!et.done&&(M=we.return)&&M.call(we)}finally{if(v)throw v.error}}return this.allCodewordCapacities[this.allCodewordCapacities.length-1]},o.prototype.getCodewordsRemaining=function(t){return this.getMinSymbolSize(t)-t},o.getBytes=function(t,i){var s=new Uint8Array(i?2:1);return s[0]=t,i&&(s[1]=i),s},o.prototype.setC40Word=function(t,i,s,c,h){var v=1600*(255&s)+40*(255&c)+(255&h)+1;t[i]=v/256,t[i+1]=v%256},o.prototype.getX12Value=function(t){return 13===t?0:42===t?1:62===t?2:32===t?3:t>=48&&t<=57?t-44:t>=65&&t<=90?t-51:t},o.prototype.getX12Words=function(){if(this.characterLength%3!=0)throw new Error("X12 words must be a multiple of 3");for(var t=new Uint8Array(this.characterLength/3*2),i=0;i=33&&s<=47?s-33:s>=48&&s<=57?s-44:s>=58&&s<=64?s-43:s>=65&&s<=90?s-64:s>=91&&s<=95?s-69:96===s?0:s>=97&&s<=122?s-83:s>=123&&s<=127?s-96:s},o.prototype.getC40Words=function(t,i){for(var s=[],c=0;c>16&255,i[h+1]=O>>8&255,i[h+2]=255&O}return i},o.prototype.getLatchBytes=function(){switch(this.getPreviousMode()){case si.ASCII:case si.B256:switch(this.mode){case si.B256:return o.getBytes(231);case si.C40:return o.getBytes(230);case si.TEXT:return o.getBytes(239);case si.X12:return o.getBytes(238);case si.EDF:return o.getBytes(240)}break;case si.C40:case si.TEXT:case si.X12:if(this.mode!==this.getPreviousMode())switch(this.mode){case si.ASCII:return o.getBytes(254);case si.B256:return o.getBytes(254,231);case si.C40:return o.getBytes(254,230);case si.TEXT:return o.getBytes(254,239);case si.X12:return o.getBytes(254,238);case si.EDF:return o.getBytes(254,240)}break;case si.EDF:if(this.mode!==si.EDF)throw new Error("Cannot switch from EDF to "+this.mode)}return new Uint8Array(0)},o.prototype.getDataBytes=function(){switch(this.mode){case si.ASCII:return this.input.isECI(this.fromPosition)?o.getBytes(241,this.input.getECIValue(this.fromPosition)+1):Hl.isExtendedASCII(this.input.charAt(this.fromPosition),this.input.getFNC1Character())?o.getBytes(235,this.input.charAt(this.fromPosition)-127):2===this.characterLength?o.getBytes(10*this.input.charAt(this.fromPosition)+this.input.charAt(this.fromPosition+1)+130):this.input.isFNC1(this.fromPosition)?o.getBytes(232):o.getBytes(this.input.charAt(this.fromPosition)+1);case si.B256:return o.getBytes(this.input.charAt(this.fromPosition));case si.C40:return this.getC40Words(!0,this.input.getFNC1Character());case si.TEXT:return this.getC40Words(!1,this.input.getFNC1Character());case si.X12:return this.getX12Words();case si.EDF:return this.getEDFBytes()}},o}(),Ch=function(o){function t(i,s,c,h,v){var M=o.call(this,i,s,c)||this;return M.shape=h,M.macroId=v,M}return zf(t,o),t.prototype.getMacroId=function(){return this.macroId},t.prototype.getShapeHint=function(){return this.shape},t}(Zf);!function(){function o(){}o.prototype.encode=function(t,i,s,c,h){if(void 0===h&&(h=null),""===t.trim())throw new Error("Found empty contents");if(i!==be.DATA_MATRIX)throw new Error("Can only encode DATA_MATRIX, but got "+i);if(s<0||c<0)throw new Error("Requested dimensions can't be negative: "+s+"x"+c);var de,v=0,M=null,O=null;if(null!=h){var N=h.get(pi.DATA_MATRIX_SHAPE);null!=N&&(v=N);var $=h.get(pi.MIN_SIZE);null!=$&&(M=$);var q=h.get(pi.MAX_SIZE);null!=q&&(O=q)}if(null!=h&&h.has(pi.DATA_MATRIX_COMPACT)&&h.get(pi.DATA_MATRIX_COMPACT).toString()){var et=h.has(pi.GS1_FORMAT)&&!!h.get(pi.GS1_FORMAT).toString(),vt=null;h.has(pi.CHARACTER_SET)&&(vt=Fa.forName(h.get(pi.CHARACTER_SET).toString())),de=Hl.encodeHighLevel(t,vt,et?29:-1,v)}else{var $t=null!=h&&h.has(pi.FORCE_C40)&&!!h.get(pi.FORCE_C40).toString();de=Mr.encodeHighLevel(t,v,M,O,$t)}var Gt=bh.lookup(de.length,v,M,O,!0),an=Xh.encodeECC200(de,Gt),bn=new Id(an,Gt.getSymbolDataWidth(),Gt.getSymbolDataHeight());return bn.place(),this.encodeLowLevel(bn,Gt,s,c)},o.prototype.encodeLowLevel=function(t,i,s,c){for(var h=i.getSymbolDataWidth(),v=i.getSymbolDataHeight(),M=new it(i.getSymbolWidth(),i.getSymbolHeight()),O=0,N=0;N"},t}(df);const Xu=hf;var ff=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Dh=function(o){function t(i,s,c){var h=o.call(this,i,0,0)||this;return h.binaryShiftStart=s,h.binaryShiftByteCount=c,h}return ff(t,o),t.prototype.appendTo=function(i,s){for(var c=0;c62?i.appendBits(this.binaryShiftByteCount-31,16):i.appendBits(0===c?Math.min(this.binaryShiftByteCount,31):this.binaryShiftByteCount-31,5)),i.appendBits(s[this.binaryShiftStart+c],8)},t.prototype.addBinaryShift=function(i,s){return new t(this,i,s)},t.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},t}(Xu);const Lu=Dh;function Ld(o,t,i){return new Xu(o,t,i)}var Gf=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],fu=new Xu(null,0,0),ud=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])],pf=function Pu(o){var t,i;try{for(var s=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),c=s.next();!c.done;c=s.next())at.fill(c.value,-1)}catch(v){t={error:v}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return o[0][4]=0,o[1][4]=0,o[1][0]=28,o[3][4]=0,o[2][4]=0,o[2][0]=15,o}(at.createInt32Array(6,6)),th=function(){function o(t,i,s,c){this.token=t,this.mode=i,this.binaryShiftByteCount=s,this.bitCount=c}return o.prototype.getMode=function(){return this.mode},o.prototype.getToken=function(){return this.token},o.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},o.prototype.getBitCount=function(){return this.bitCount},o.prototype.latchAndAppend=function(t,i){var s=this.bitCount,c=this.token;if(t!==this.mode){var h=ud[this.mode][t];c=Ld(c,65535&h,h>>16),s+=h>>16}var v=2===t?4:5;return new o(c=Ld(c,i,v),t,0,s+v)},o.prototype.shiftAndAppend=function(t,i){var s=this.token,c=2===this.mode?4:5;return s=Ld(s,pf[this.mode][t],c),new o(s=Ld(s,i,5),this.mode,0,this.bitCount+c+5)},o.prototype.addBinaryShiftChar=function(t){var i=this.token,s=this.mode,c=this.bitCount;if(4===this.mode||2===this.mode){var h=ud[s][0];i=Ld(i,65535&h,h>>16),c+=h>>16,s=0}var M=new o(i,s,this.binaryShiftByteCount+1,c+(0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8));return 2078===M.binaryShiftByteCount&&(M=M.endBinaryShift(t+1)),M},o.prototype.endBinaryShift=function(t){if(0===this.binaryShiftByteCount)return this;var i=this.token;return i=function eh(o,t,i){return new Lu(o,t,i)}(i,t-this.binaryShiftByteCount,this.binaryShiftByteCount),new o(i,this.mode,0,this.bitCount)},o.prototype.isBetterThanOrEqualTo=function(t){var i=this.bitCount+(ud[this.mode][t.mode]>>16);return this.binaryShiftByteCountt.binaryShiftByteCount&&t.binaryShiftByteCount>0&&(i+=10),i<=t.bitCount},o.prototype.toBitArray=function(t){for(var i,s,c=[],h=this.endBinaryShift(t.length).token;null!==h;h=h.getPrevious())c.unshift(h);var v=new me;try{for(var M=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),O=M.next();!O.done;O=M.next())O.value.appendTo(v,t)}catch($){i={error:$}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}return v},o.prototype.toString=function(){return ct.format("%s bits=%d bytes=%d",Gf[this.mode],this.bitCount,this.binaryShiftByteCount)},o.calculateBinaryShiftCost=function(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0},o.INITIAL_STATE=new o(fu,0,0,0),o}();const Sh=th;var eu=function nh(o){var t=ct.getCharCode(" "),i=ct.getCharCode("."),s=ct.getCharCode(",");o[0][t]=1;for(var c=ct.getCharCode("Z"),h=ct.getCharCode("A"),v=h;v<=c;v++)o[0][v]=v-h+2;o[1][t]=1;var M=ct.getCharCode("z"),O=ct.getCharCode("a");for(v=O;v<=M;v++)o[1][v]=v-O+2;o[2][t]=1;var N=ct.getCharCode("9"),$=ct.getCharCode("0");for(v=$;v<=N;v++)o[2][v]=v-$+2;o[2][s]=12,o[2][i]=13;for(var q=["\0"," ","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\v","\f","\r","\x1b","\x1c","\x1d","\x1e","\x1f","@","\\","^","_","`","|","~","\x7f"],de=0;de","?","[","]","{","}"];for(de=0;de0&&(o[4][ct.getCharCode(we[de])]=de);return o}(at.createInt32Array(5,256)),Dc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Nd=function(){function o(t){this.text=t}return o.prototype.encode=function(){for(var t=ct.getCharCode(" "),i=ct.getCharCode("\n"),s=hu.singletonList(Sh.INITIAL_STATE),c=0;c0?(s=o.updateStateListForPair(s,c,h),c++):s=this.updateStateListForChar(s,c)}return hu.min(s,function(O,N){return O.getBitCount()-N.getBitCount()}).toBitArray(this.text)},o.prototype.updateStateListForChar=function(t,i){var s,c,h=[];try{for(var v=Dc(t),M=v.next();!M.done;M=v.next())this.updateStateForChar(M.value,i,h)}catch(N){s={error:N}}finally{try{M&&!M.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}return o.simplifyStates(h)},o.prototype.updateStateForChar=function(t,i,s){for(var c=255&this.text[i],h=eu[t.getMode()][c]>0,v=null,M=0;M<=4;M++){var O=eu[M][c];if(O>0){if(null==v&&(v=t.endBinaryShift(i)),!h||M===t.getMode()||2===M){var N=v.latchAndAppend(M,O);s.push(N)}if(!h&&pf[t.getMode()][M]>=0){var $=v.shiftAndAppend(M,O);s.push($)}}}if(t.getBinaryShiftByteCount()>0||0===eu[t.getMode()][c]){var q=t.addBinaryShiftChar(i);s.push(q)}},o.updateStateListForPair=function(t,i,s){var c,h,v=[];try{for(var M=Dc(t),O=M.next();!O.done;O=M.next())this.updateStateForPair(O.value,i,s,v)}catch($){c={error:$}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}return this.simplifyStates(v)},o.updateStateForPair=function(t,i,s,c){var h=t.endBinaryShift(i);if(c.push(h.latchAndAppend(4,s)),4!==t.getMode()&&c.push(h.shiftAndAppend(4,s)),3===s||4===s){var v=h.latchAndAppend(2,16-s).latchAndAppend(2,1);c.push(v)}if(t.getBinaryShiftByteCount()>0){var M=t.addBinaryShiftChar(i).addBinaryShiftChar(i+1);c.push(M)}},o.simplifyStates=function(t){var i,s,c,h,v=[];try{for(var M=Dc(t),O=M.next();!O.done;O=M.next()){var N=O.value,$=!0,q=function(zt){if(zt.isBetterThanOrEqualTo(N))return $=!1,"break";N.isBetterThanOrEqualTo(zt)&&(v=v.filter(function($t){return $t!==zt}))};try{for(var de=(c=void 0,Dc(v)),we=de.next();!we.done&&"break"!==q(we.value);we=de.next());}catch(zt){c={error:zt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}$&&v.push(N)}}catch(zt){i={error:zt}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}return v},o}();const Nu=Nd;var Yu=function(){function o(){}return o.encodeBytes=function(t){return o.encode(t,o.DEFAULT_EC_PERCENT,o.DEFAULT_AZTEC_LAYERS)},o.encode=function(t,i,s){var M,O,N,$,q,c=new Nu(t).encode(),h=Ee.truncDivision(c.getSize()*i,100)+11,v=c.getSize()+h;if(s!==o.DEFAULT_AZTEC_LAYERS){if(M=s<0,(O=Math.abs(s))>(M?o.MAX_NB_BITS_COMPACT:o.MAX_NB_BITS))throw new Ge(ct.format("Illegal value %s for layers",s));var de=(N=o.totalBitsInLayer(O,M))-N%($=o.WORD_SIZE[O]);if((q=o.stuffBits(c,$)).getSize()+h>de)throw new Ge("Data to large for user specified layer");if(M&&q.getSize()>64*$)throw new Ge("Data to large for user specified layer")}else{$=0,q=null;for(var we=0;;we++){if(we>o.MAX_NB_BITS)throw new Ge("Data too large for an Aztec code");if(!(v>(N=o.totalBitsInLayer(O=(M=we<=3)?we+1:we,M)))&&((null==q||$!==o.WORD_SIZE[O])&&(q=o.stuffBits(c,$=o.WORD_SIZE[O])),de=N-N%$,!(M&&q.getSize()>64*$)&&q.getSize()+h<=de))break}}var an,et=o.generateCheckWords(q,N,$),vt=q.getSize()/$,zt=o.generateModeMessage(M,O,vt),$t=(M?11:14)+4*O,Gt=new Int32Array($t);if(M)for(an=$t,we=0;we=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Array.from(N)),we=de.next();!we.done;we=de.next())q.appendBits(we.value,s)}catch(vt){c={error:vt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}return q},o.bitsToWords=function(t,i,s){var h,v,c=new Int32Array(s);for(h=0,v=t.getSize()/i;h=c||t.get(v+O))&&(M|=1<>10}return h},t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth(),h=i*c;return null===s?s=this.buffer.slice(h,h+c):(s.length0&&h[h.length-1])&&(6===N[0]||2===N[0])){i=0;continue}if(3===N[0]&&(!h||N[1]>h[0]&&N[1]=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Yd={delayBetweenScanAttempts:500,delayBetweenScanSuccess:500,tryPlayVideoTimeout:5e3},hd=function(){function o(t,i,s){void 0===i&&(i=new Map),void 0===s&&(s={}),this.reader=t,this.hints=i,this.options=Fd(Fd({},Yd),s)}return Object.defineProperty(o.prototype,"possibleFormats",{set:function(t){this.hints.set(he.POSSIBLE_FORMATS,t)},enumerable:!1,configurable:!0}),o.addVideoSource=function(t,i){try{t.srcObject=i}catch{console.error("got interrupted by new loading request")}},o.mediaStreamSetTorch=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(s){switch(s.label){case 0:return[4,t.applyConstraints({advanced:[{fillLightMode:i?"flash":"off",torch:!!i}]})];case 1:return s.sent(),[2]}})})},o.mediaStreamIsTorchCompatible=function(t){var i,s,c=t.getVideoTracks();try{for(var h=mu(c),v=h.next();!v.done;v=h.next())if(o.mediaStreamIsTorchCompatibleTrack(v.value))return!0}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return!1},o.mediaStreamIsTorchCompatibleTrack=function(t){try{return"torch"in t.getCapabilities()}catch(s){return console.error(s),console.warn("Your browser may be not fully compatible with WebRTC and/or ImageCapture specs. Torch will not be available."),!1}},o.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&t.readyState>2},o.getMediaElement=function(t,i){var s=document.getElementById(t);if(!s)throw new _e("element with id '".concat(t,"' not found"));if(s.nodeName.toLowerCase()!==i.toLowerCase())throw new _e("element with id '".concat(t,"' must be an ").concat(i," element"));return s},o.createVideoElement=function(t){if(t instanceof HTMLVideoElement)return t;if("string"==typeof t)return o.getMediaElement(t,"video");if(!t&&typeof document<"u"){var i=document.createElement("video");return i.width=200,i.height=200,i}throw new Error("Couldn't get videoElement from videoSource!")},o.prepareImageElement=function(t){if(t instanceof HTMLImageElement)return t;if("string"==typeof t)return o.getMediaElement(t,"img");if(typeof t>"u"){var i=document.createElement("img");return i.width=200,i.height=200,i}throw new Error("Couldn't get imageElement from imageSource!")},o.prepareVideoElement=function(t){var i=o.createVideoElement(t);return i.setAttribute("autoplay","true"),i.setAttribute("muted","true"),i.setAttribute("playsinline","true"),i},o.isImageLoaded=function(t){return!(!t.complete||0===t.naturalWidth)},o.createBinaryBitmapFromCanvas=function(t){var i=new rh(t),s=new gn(i);return new je(s)},o.drawImageOnCanvas=function(t,i){t.drawImage(i,0,0)},o.getMediaElementDimensions=function(t){if(t instanceof HTMLVideoElement)return{height:t.videoHeight,width:t.videoWidth};if(t instanceof HTMLImageElement)return{height:t.naturalHeight||t.height,width:t.naturalWidth||t.width};throw new Error("Couldn't find the Source's dimensions!")},o.createCaptureCanvas=function(t){if(!t)throw new _e("Cannot create a capture canvas without a media element.");if(typeof document>"u")throw new Error('The page "Document" is undefined, make sure you\'re running in a browser.');var i=document.createElement("canvas"),s=o.getMediaElementDimensions(t),c=s.width,h=s.height;return i.style.width=c+"px",i.style.height=h+"px",i.width=c,i.height=h,i},o.tryPlayVideo=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(t?.ended)return console.error("Trying to play video that has ended."),[2,!1];if(o.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2,!0];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.play()];case 2:return s.sent(),[2,!0];case 3:return i=s.sent(),console.warn("It was not possible to play the video.",i),[2,!1];case 4:return[2]}})})},o.createCanvasFromMediaElement=function(t){var i=o.createCaptureCanvas(t),s=i.getContext("2d");if(!s)throw new Error("Couldn't find Canvas 2D Context.");return o.drawImageOnCanvas(s,t),i},o.createBinaryBitmapFromMediaElem=function(t){var i=o.createCanvasFromMediaElement(t);return o.createBinaryBitmapFromCanvas(i)},o.destroyImageElement=function(t){t.src="",t.removeAttribute("src"),t=void 0},o.listVideoInputDevices=function(){return us(this,void 0,void 0,function(){var t,i,s,c,h,v,M,O,q,de;return Yo(this,function(we){switch(we.label){case 0:if(!Bu())throw new Error("Can't enumerate devices, navigator is not present.");if(!function sh(){return!(!function oh(){return Bu()&&!!navigator.mediaDevices}()||!navigator.mediaDevices.enumerateDevices)}())throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=we.sent(),i=[];try{for(s=mu(t),c=s.next();!c.done;c=s.next())"videoinput"===(v="video"===(h=c.value).kind?"videoinput":h.kind)&&(M=h.deviceId||h.id,O=h.label||"Video device ".concat(i.length+1),i.push({deviceId:M,label:O,kind:v,groupId:h.groupId}))}catch(et){q={error:et}}finally{try{c&&!c.done&&(de=s.return)&&de.call(s)}finally{if(q)throw q.error}}return[2,i]}})})},o.findDeviceById=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:return[4,o.listVideoInputDevices()];case 1:return(i=s.sent())?[2,i.find(function(c){return c.deviceId===t})]:[2]}})})},o.cleanVideoSource=function(t){if(t){try{t.srcObject=null}catch{t.src=""}t&&t.removeAttribute("src")}},o.releaseAllStreams=function(){0!==o.streamTracker.length&&o.streamTracker.forEach(function(t){t.getTracks().forEach(function(i){return i.stop()})}),o.streamTracker=[]},o.playVideoOnLoadAsync=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(c){switch(c.label){case 0:return[4,o.tryPlayVideo(t)];case 1:return c.sent()?[2,!0]:[2,new Promise(function(h,v){var M=setTimeout(function(){o.isVideoPlaying(t)||(v(!1),t.removeEventListener("canplay",O))},i),O=function(){o.tryPlayVideo(t).then(function(N){clearTimeout(M),t.removeEventListener("canplay",O),h(N)})};t.addEventListener("canplay",O)})]}})})},o.attachStreamToVideo=function(t,i,s){return void 0===s&&(s=5e3),us(this,void 0,void 0,function(){var c;return Yo(this,function(h){switch(h.label){case 0:return c=o.prepareVideoElement(i),o.addVideoSource(c,t),[4,o.playVideoOnLoadAsync(c,s)];case 1:return h.sent(),[2,c]}})})},o._waitImageLoad=function(t){return new Promise(function(i,s){var h=setTimeout(function(){o.isImageLoaded(t)||(t.removeEventListener("load",v),s())},1e4),v=function(){clearTimeout(h),t.removeEventListener("load",v),i()};t.addEventListener("load",v)})},o.checkCallbackFnOrThrow=function(t){if(!t)throw new _e("`callbackFn` is a required parameter, you cannot capture results without it.")},o.disposeMediaStream=function(t){t.getVideoTracks().forEach(function(i){return i.stop()}),t=void 0},o.prototype.decode=function(t){var i=o.createCanvasFromMediaElement(t);return this.decodeFromCanvas(i)},o.prototype.decodeBitmap=function(t){return this.reader.decode(t,this.hints)},o.prototype.decodeFromCanvas=function(t){var i=o.createBinaryBitmapFromCanvas(t);return this.decodeBitmap(i)},o.prototype.decodeFromImageElement=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(!t)throw new _e("An image element must be provided.");return i=o.prepareImageElement(t),[4,this._decodeOnLoadImage(i)];case 1:return[2,s.sent()]}})})},o.prototype.decodeFromImageUrl=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(!t)throw new _e("An URL must be provided.");(i=o.prepareImageElement()).src=t,s.label=1;case 1:return s.trys.push([1,,3,4]),[4,this.decodeFromImageElement(i)];case 2:return[2,s.sent()];case 3:return o.destroyImageElement(i),[7];case 4:return[2]}})})},o.prototype.decodeFromConstraints=function(t,i,s){return us(this,void 0,void 0,function(){var c,h;return Yo(this,function(v){switch(v.label){case 0:return o.checkCallbackFnOrThrow(s),[4,this.getUserMedia(t)];case 1:c=v.sent(),v.label=2;case 2:return v.trys.push([2,4,,5]),[4,this.decodeFromStream(c,i,s)];case 3:return[2,v.sent()];case 4:throw h=v.sent(),o.disposeMediaStream(c),h;case 5:return[2]}})})},o.prototype.decodeFromStream=function(t,i,s){return us(this,void 0,void 0,function(){var h,M,O,N,q,de,we=this;return Yo(this,function(et){switch(et.label){case 0:return o.checkCallbackFnOrThrow(s),[4,o.attachStreamToVideo(t,i,this.options.tryPlayVideoTimeout)];case 1:return h=et.sent(),M=this.scan(h,s,function(){o.disposeMediaStream(t),o.cleanVideoSource(h)}),O=t.getVideoTracks(),N=Fd(Fd({},M),{stop:function(){M.stop()},streamVideoConstraintsApply:function(vt,zt){return us(this,void 0,void 0,function(){var $t,Gt,an,Nn,Zn,Kn;return Yo(this,function(fi){switch(fi.label){case 0:$t=zt?O.filter(zt):O,fi.label=1;case 1:fi.trys.push([1,6,7,8]),Gt=mu($t),an=Gt.next(),fi.label=2;case 2:return an.done?[3,5]:[4,an.value.applyConstraints(vt)];case 3:fi.sent(),fi.label=4;case 4:return an=Gt.next(),[3,2];case 5:return[3,8];case 6:return Nn=fi.sent(),Zn={error:Nn},[3,8];case 7:try{an&&!an.done&&(Kn=Gt.return)&&Kn.call(Gt)}finally{if(Zn)throw Zn.error}return[7];case 8:return[2]}})})},streamVideoConstraintsGet:function(vt){return O.find(vt).getConstraints()},streamVideoSettingsGet:function(vt){return O.find(vt).getSettings()},streamVideoCapabilitiesGet:function(vt){return O.find(vt).getCapabilities()}}),o.mediaStreamIsTorchCompatible(t)&&(q=O?.find(function(vt){return o.mediaStreamIsTorchCompatibleTrack(vt)}),N.switchTorch=de=function(vt){return us(we,void 0,void 0,function(){return Yo(this,function(zt){switch(zt.label){case 0:return[4,o.mediaStreamSetTorch(q,vt)];case 1:return zt.sent(),[2]}})})},N.stop=function(){return us(we,void 0,void 0,function(){return Yo(this,function(vt){switch(vt.label){case 0:return M.stop(),[4,de(!1)];case 1:return vt.sent(),[2]}})})}),[2,N]}})})},o.prototype.decodeFromVideoDevice=function(t,i,s){return us(this,void 0,void 0,function(){return Yo(this,function(v){switch(v.label){case 0:return o.checkCallbackFnOrThrow(s),[4,this.decodeFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i,s)];case 1:return[2,v.sent()]}})})},o.prototype.decodeFromVideoElement=function(t,i){return us(this,void 0,void 0,function(){var s;return Yo(this,function(h){switch(h.label){case 0:if(o.checkCallbackFnOrThrow(i),!t)throw new _e("A video element must be provided.");return s=o.prepareVideoElement(t),[4,o.playVideoOnLoadAsync(s,this.options.tryPlayVideoTimeout)];case 1:return h.sent(),[2,this.scan(s,i)]}})})},o.prototype.decodeFromVideoUrl=function(t,i){return us(this,void 0,void 0,function(){var s,c;return Yo(this,function(M){switch(M.label){case 0:if(o.checkCallbackFnOrThrow(i),!t)throw new _e("An URL must be provided.");return(s=o.prepareVideoElement()).src=t,c=function(){o.cleanVideoSource(s)},[4,o.playVideoOnLoadAsync(s,this.options.tryPlayVideoTimeout)];case 1:return M.sent(),[2,this.scan(s,i,c)]}})})},o.prototype.decodeOnceFromConstraints=function(t,i){return us(this,void 0,void 0,function(){var s;return Yo(this,function(c){switch(c.label){case 0:return[4,this.getUserMedia(t)];case 1:return s=c.sent(),[4,this.decodeOnceFromStream(s,i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromStream=function(t,i){return us(this,void 0,void 0,function(){var s,c;return Yo(this,function(v){switch(v.label){case 0:return s=!!i,[4,o.attachStreamToVideo(t,i)];case 1:c=v.sent(),v.label=2;case 2:return v.trys.push([2,,4,5]),[4,this.scanOneResult(c)];case 3:return[2,v.sent()];case 4:return s||o.cleanVideoSource(c),[7];case 5:return[2]}})})},o.prototype.decodeOnceFromVideoDevice=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(h){switch(h.label){case 0:return[4,this.decodeOnceFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i)];case 1:return[2,h.sent()]}})})},o.prototype.decodeOnceFromVideoElement=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(c){switch(c.label){case 0:if(!t)throw new _e("A video element must be provided.");return i=o.prepareVideoElement(t),[4,o.playVideoOnLoadAsync(i,this.options.tryPlayVideoTimeout)];case 1:return c.sent(),[4,this.scanOneResult(i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromVideoUrl=function(t){return us(this,void 0,void 0,function(){var i,s;return Yo(this,function(c){switch(c.label){case 0:if(!t)throw new _e("An URL must be provided.");(i=o.prepareVideoElement()).src=t,s=this.decodeOnceFromVideoElement(i),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,s];case 2:return[2,c.sent()];case 3:return o.cleanVideoSource(i),[7];case 4:return[2]}})})},o.prototype.scanOneResult=function(t,i,s,c){var h=this;return void 0===i&&(i=!0),void 0===s&&(s=!0),void 0===c&&(c=!0),new Promise(function(v,M){h.scan(t,function(O,N,$){if(O)return v(O),void $.stop();if(N){if(N instanceof Se&&i||N instanceof St&&s||N instanceof bt&&c)return;$.stop(),M(N)}})})},o.prototype.scan=function(t,i,s){var c=this;o.checkCallbackFnOrThrow(i);var h=o.createCaptureCanvas(t),v=h.getContext("2d");if(!v)throw new Error("Couldn't create canvas for visual element scan.");var N,M=function(){v=void 0,h=void 0},O=!1,q={stop:function(){O=!0,clearTimeout(N),M(),s&&s()}},de=function(){if(!O)try{o.drawImageOnCanvas(v,t);var we=c.decodeFromCanvas(h);i(we,void 0,q),N=setTimeout(de,c.options.delayBetweenScanSuccess)}catch($t){if(i(void 0,$t,q),$t instanceof St||$t instanceof bt||$t instanceof Se)return void(N=setTimeout(de,c.options.delayBetweenScanAttempts));M(),s&&s($t)}};return de(),q},o.prototype._decodeOnLoadImage=function(t){return us(this,void 0,void 0,function(){return Yo(this,function(s){switch(s.label){case 0:return o.isImageLoaded(t)?[3,2]:[4,o._waitImageLoad(t)];case 1:s.sent(),s.label=2;case 2:return[2,this.decode(t)]}})})},o.prototype.getUserMedia=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return i=s.sent(),o.streamTracker.push(i),[2,i]}})})},o.streamTracker=[],o}(),_f=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Oh=(function(o){_f(function t(i,s){return o.call(this,new Vo,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),ah=(function(o){Oh(function t(i,s){return o.call(this,new yi(i),i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),tu=(function(o){ah(function t(i,s){return o.call(this,new cc,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),lh=function(o){function t(i,s){var c=this,h=new Jd;return h.setHints(i),(c=o.call(this,h,i,s)||this).reader=h,c}return tu(t,o),Object.defineProperty(t.prototype,"possibleFormats",{set:function(i){this.hints.set(he.POSSIBLE_FORMATS,i),this.reader.setHints(this.hints)},enumerable:!1,configurable:!0}),t.prototype.decodeBitmap=function(i){return this.reader.decodeWithState(i)},t.prototype.setHints=function(i){this.hints=i,this.reader.setHints(this.hints)},t}(hd),mf=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),gf=(function(o){mf(function t(i,s){return o.call(this,new Pa,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),fd=(function(o){gf(function t(i,s){return o.call(this,new js,i,s)||this},o)}(hd),"http://www.w3.org/2000/svg"),kh=(function(){function o(t){if("string"==typeof t){var i=document.getElementById(t);if(!i)throw new Error("Could not find a Container element with '".concat(t,"'."));this.containerElement=i}else this.containerElement=t}o.prototype.write=function(t,i,s,c){if(0===t.length)throw new Ge("Found empty contents");if(i<0||s<0)throw new Ge("Requested dimensions are too small: "+i+"x"+s);var h=c&&void 0!==c.get(pi.MARGIN)?Number.parseInt(c.get(pi.MARGIN).toString(),10):o.QUIET_ZONE_SIZE,v=this.encode(c,t);return this.renderResult(v,i,s,h)},o.prototype.createSVGElement=function(t,i){var s=document.createElementNS(o.SVG_NS,"svg");return s.setAttributeNS(fd,"width",i.toString()),s.setAttributeNS(fd,"height",t.toString()),s},o.prototype.createSvgPathPlaceholderElement=function(t,i){var s=document.createElementNS(o.SVG_NS,"path");return s.setAttributeNS(fd,"d","M0 0h".concat(t,"v").concat(i,"H0z")),s.setAttributeNS(fd,"fill","none"),s},o.prototype.createSvgRectElement=function(t,i,s,c){var h=document.createElementNS(o.SVG_NS,"rect");return h.setAttributeNS(fd,"x",t.toString()),h.setAttributeNS(fd,"y",i.toString()),h.setAttributeNS(fd,"height",s.toString()),h.setAttributeNS(fd,"width",c.toString()),h.setAttributeNS(fd,"fill","#000000"),h},o.prototype.encode=function(t,i){var s=aa.L;if(t&&void 0!==t.get(pi.ERROR_CORRECTION)){var c=t.get(pi.ERROR_CORRECTION).toString();s=aa.fromString(c)}return Fl.encode(i,s,t)},o.prototype.renderResult=function(t,i,s,c){var h=t.getMatrix();if(null===h)throw new ki;var v=h.getWidth(),M=h.getHeight(),O=v+2*c,N=M+2*c,$=Math.max(i,O),q=Math.max(s,N),de=Math.min(Math.floor($/O),Math.floor(q/N)),we=Math.floor(($-v*de)/2),et=Math.floor((q-M*de)/2),vt=this.createSVGElement($,q),zt=this.createSvgPathPlaceholderElement(i,s);vt.appendChild(zt),this.containerElement.appendChild(vt);for(var $t=0,Gt=et;$t{if(!M)return void c.next({result:v});const O=M.name;O===Se.name||O===St.name||O===bt.name||M.message.includes("No MultiFormat Readers were able to detect the code.")?c.next({error:M}):(c.error(M),s.scannerControls.stop(),s.scannerControls=void 0)}),s.scannerControls={...h,stop(){h.stop(),c.complete()}}}catch(v){c.error(v),s.scannerControls?.stop(),s.scannerControls=void 0}return c.asObservable()})()}}let $f=(()=>{class o{get codeReader(){return this._codeReader}set device(i){this._ready?this.isAutostarting?console.warn("Avoid setting a device during auto-start."):this.isCurrentDevice(i)?console.warn("Setting the same device is not allowed."):this.hasPermission?this.setDevice(i):console.warn("Permissions not set yet, waiting for them to be set to apply device change."):this._devicePreStart=i}get device(){return this._device}get formats(){return this.hints.get(he.POSSIBLE_FORMATS)}set formats(i){if("string"==typeof i)throw new Error("Invalid formats, make sure the [formats] input is a binding.");const s=i.map(h=>this.getBarcodeFormatOrFail(h)),c=this.hints;c.set(he.POSSIBLE_FORMATS,s),this.hints=c}get hints(){return this._hints}set hints(i){this._hints=i,this.codeReader?.setHints(this._hints)}set videoConstraints(i){const s=this.codeReader?.getScannerControls();s&&s?.streamVideoConstraintsApply(i)}set isAutostarting(i){this._isAutostarting=i,this.autostarting.next(i)}get isAutostarting(){return this._isAutostarting}set torch(i){try{this.getCodeReader().getScannerControls().switchTorch(i)}catch{}}set enable(i){this._enabled=!!i,this._enabled?this.device?this.scanFromDevice(this.device.deviceId):this.init():(this.reset(),Hd.releaseAllStreams())}get enabled(){return this._enabled}get tryHarder(){return this.hints.get(he.TRY_HARDER)}set tryHarder(i){const s=this.hints;i?s.set(he.TRY_HARDER,!0):s.delete(he.TRY_HARDER),this.hints=s}constructor(){this.timeBetweenScans=500,this.delayBetweenScanSuccess=500,this.previewFitMode="cover",this.poster="",this._ready=!1,this.autostarted=new D.vpe,this.autostarting=new D.vpe,this.torchCompatible=new D.vpe(!1),this.scanSuccess=new D.vpe,this.scanFailure=new D.vpe,this.scanError=new D.vpe,this.scanComplete=new D.vpe,this.camerasFound=new D.vpe,this.camerasNotFound=new D.vpe,this.permissionResponse=new D.vpe(!0),this.hasDevices=new D.vpe,this.deviceChange=new D.vpe,this._enabled=!0,this._hints=new Map,this.autofocusEnabled=!0,this.autostart=!0,this.formats=[be.QR_CODE],this.hasNavigator=typeof navigator<"u",this.isMediaDevicesSupported=this.hasNavigator&&!!navigator.mediaDevices}askForPermission(){var i=this;return(0,e.Z)(function*(){if(!i.hasNavigator)return console.error("@zxing/ngx-scanner","Can't ask permission, navigator is not present."),i.setPermission(null),i.hasPermission;if(!i.isMediaDevicesSupported)return console.error("@zxing/ngx-scanner","Can't get user media, this is not supported."),i.setPermission(null),i.hasPermission;let s,c;try{s=yield i.getAnyVideoDevice(),c=!!s}catch(h){return i.handlePermissionException(h)}finally{i.terminateStream(s)}return i.setPermission(c),c})()}getAnyVideoDevice(){return navigator.mediaDevices.getUserMedia({video:!0})}terminateStream(i){i&&i.getTracks().forEach(s=>s.stop()),i=void 0}init(){var i=this;return(0,e.Z)(function*(){if(!i.autostart)return console.warn("Feature 'autostart' disabled. Permissions and devices recovery has to be run manually."),i.initAutostartOff(),void(i._ready=!0);yield i.initAutostartOn(),i._ready=!0})()}initAutostartOff(){this.isAutostarting=!1,this.updateVideoInputDevices(),this._device&&this._devicePreStart&&this.setDevice(this._devicePreStart)}initAutostartOn(){var i=this;return(0,e.Z)(function*(){let s;i.isAutostarting=!0;try{s=yield i.askForPermission()}catch(c){return void console.error("Exception occurred while asking for permission:",c)}if(s){const c=yield i.updateVideoInputDevices();yield i.autostartScanner([...c])}i.isAutostarting=!1,i.autostarted.next()})()}isCurrentDevice(i){return i?.deviceId===this._device?.deviceId}ngOnDestroy(){this.reset(),Hd.releaseAllStreams()}ngOnInit(){this.init()}scanStop(){this._scanSubscription&&(this.codeReader?.getScannerControls().stop(),this._scanSubscription?.unsubscribe(),this._scanSubscription=void 0),this.torchCompatible.next(!1)}scanStart(){if(this._scanSubscription)throw new Error("There is already a scan process running.");if(!this._device)throw new Error("No device defined, cannot start scan, please define a device.");this.scanFromDevice(this._device.deviceId)}restart(){this._codeReader=void 0;const i=this._reset();i&&(this.device=i)}updateVideoInputDevices(){var i=this;return(0,e.Z)(function*(){const s=(yield hd.listVideoInputDevices())||[],c=s&&s.length>0;return i.hasDevices.next(c),i.camerasFound.next([...s]),c||i.camerasNotFound.next(null),s})()}autostartScanner(i){var s=this;return(0,e.Z)(function*(){const h=i.find(({label:v})=>/back|tr\xe1s|rear|traseira|environment|ambiente/gi.test(v))||i.pop();if(!h)throw new Error("Impossible to autostart, no input devices available.");yield s.setDevice(h),s.deviceChange.next(h)})()}dispatchScanSuccess(i){this.scanSuccess.next(i.getText())}dispatchScanFailure(i){this.scanFailure.next(i)}dispatchScanError(i){this.scanError.observed||(console.error(`zxing scanner component: ${i.name}`,i),console.warn("Use the `(scanError)` property to handle errors like this!")),this.scanError.next(i)}dispatchScanComplete(i){this.scanComplete.next(i)}handlePermissionException(i){let s;switch(console.error("@zxing/ngx-scanner","Error when asking for permission.",i),i.name){case"NotSupportedError":console.warn("@zxing/ngx-scanner",i.message),s=null,this.hasDevices.next(null);break;case"NotAllowedError":console.warn("@zxing/ngx-scanner",i.message),s=!1,this.hasDevices.next(!0);break;case"NotFoundError":console.warn("@zxing/ngx-scanner",i.message),s=null,this.hasDevices.next(!1),this.camerasNotFound.next(i);break;case"NotReadableError":console.warn("@zxing/ngx-scanner","Couldn't read the device(s)'s stream, it's probably in use by another app."),s=null,this.hasDevices.next(!1),this.camerasNotFound.next(i);break;default:console.warn("@zxing/ngx-scanner","I was not able to define if I have permissions for camera or not.",i),s=null}return this.setPermission(s),this.permissionResponse.error(i),s}getBarcodeFormatOrFail(i){return"string"==typeof i?be[i.trim().toUpperCase()]:i}getCodeReader(){return this._codeReader||(this._codeReader=new Hd(this.hints,{delayBetweenScanAttempts:this.timeBetweenScans,delayBetweenScanSuccess:this.delayBetweenScanSuccess})),this._codeReader}scanFromDevice(i){var s=this;return(0,e.Z)(function*(){const c=s.previewElemRef.nativeElement,h=s.getCodeReader(),v=yield h.scanFromDeviceObservable(i,c);if(!v)throw new Error("Undefined decoding stream, aborting.");if(s._scanSubscription=v.subscribe(de=>s._onDecodeResult(de.result,de.error),de=>s._onDecodeError(de),()=>{}),s._scanSubscription.closed)return;const q=typeof h.getScannerControls().switchTorch<"u";s.torchCompatible.next(q)})()}_onDecodeError(i){this.dispatchScanError(i)}_onDecodeResult(i,s){i?this.dispatchScanSuccess(i):this.dispatchScanFailure(s),this.dispatchScanComplete(i)}_reset(){if(!this._codeReader)return;this._codeReader=void 0;const i=this._device;return this.device=void 0,i}reset(){this._reset(),this.deviceChange.emit(null)}setDevice(i){var s=this;return(0,e.Z)(function*(){s.scanStop(),s._device=i||void 0,s._device||hd.cleanVideoSource(s.previewElemRef.nativeElement),s._enabled&&i&&(yield s.scanFromDevice(i.deviceId))})()}setPermission(i){this.hasPermission=i,this.permissionResponse.next(i)}static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275cmp=D.Xpm({type:o,selectors:[["zxing-scanner"]],viewQuery:function(s,c){if(1&s&&D.Gf(qc,7),2&s){let h;D.iGM(h=D.CRH())&&(c.previewElemRef=h.first)}},inputs:{autofocusEnabled:"autofocusEnabled",timeBetweenScans:"timeBetweenScans",delayBetweenScanSuccess:"delayBetweenScanSuccess",autostart:"autostart",previewFitMode:"previewFitMode",poster:"poster",device:"device",formats:"formats",videoConstraints:"videoConstraints",torch:"torch",enable:"enable",tryHarder:"tryHarder"},outputs:{autostarted:"autostarted",autostarting:"autostarting",torchCompatible:"torchCompatible",scanSuccess:"scanSuccess",scanFailure:"scanFailure",scanError:"scanError",scanComplete:"scanComplete",camerasFound:"camerasFound",camerasNotFound:"camerasNotFound",permissionResponse:"permissionResponse",hasDevices:"hasDevices",deviceChange:"deviceChange"},decls:6,vars:3,consts:[[3,"poster"],["preview",""]],template:function(s,c){1&s&&(D.TgZ(0,"video",0,1)(2,"p"),D._uU(3," Your browser does not support this feature, please try to upgrade it. "),D.qZA(),D.TgZ(4,"p"),D._uU(5," Seu navegador n\xe3o suporta este recurso, por favor tente atualiz\xe1-lo. "),D.qZA()()),2&s&&(D.Udp("object-fit",c.previewFitMode),D.Q6J("poster",c.poster,D.LSH))},styles:["[_nghost-%COMP%]{display:block}video[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:contain}"],changeDetection:0})}return o})(),vu=(()=>{class o{static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=D.oAB({type:o});static#n=this.\u0275inj=D.cJS({imports:[l.ez,I.u5]})}return o})()},5806:(ft,Ie,C)=>{"use strict";C.d(Ie,{F:()=>S});var e=C(8645),l=C(2181),D=C(7398);class I{constructor(n,Z){this._id=this.uuid(),this._key=n,this._data=Z,this._timestamp=(new Date).getTime()}get id(){return this._id}get key(){return this._key}get data(){return this._data}get timestamp(){return this._timestamp}uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const Z=16*Math.random()|0;return("x"===n?Z:3&Z|8).toString(16)})}}class S{constructor(){this.separator=":",this.eventBus=new e.x}keyMatch(n,Z){const ue=(mt,Ge)=>"*"===mt||mt===Ge,se=this.separator,te=n.split(se),oe=Z.split(se),Re=Math.max(te.length,oe.length);for(let mt=0;mtthis.keyMatch(Z.key,n)),(0,D.U)(Z=>Z.metadata))}}},1835:(ft,Ie,C)=>{"use strict";C.d(Ie,{oj:()=>Z});var e=C(5879),l=C(3161),D=C(4060),I=C(6814);class w{constructor(re,ue,se){this.nodes=re,this.viewRef=ue,this.componentRef=se}}class n{constructor(re,ue,se,te,oe,ce,_e,Re,mt){this._viewContainerRef=re,this._renderer=ue,this._elementRef=se,this._injector=te,this._componentFactoryResolver=oe,this._ngZone=ce,this._applicationRef=_e,this._posService=Re,this._document=mt,this.onBeforeShow=new e.vpe,this.onShown=new e.vpe,this.onBeforeHide=new e.vpe,this.onHidden=new e.vpe,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(re){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(re),this}to(re){return this.container=re||this.container,this}position(re){return re?(this.attachment=re.attachment||this.attachment,this._elementRef=re.target||this._elementRef,this):this}provide(re){return this._providers.push(re),this}show(re={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(re.content,re.context,re.initialState);const ue=e.zs3.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(ue,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,re),this.container instanceof e.SBq&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const se=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!se)return;se.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(re.id?{id:re.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(re){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const ue=this._componentRef.location.nativeElement;return ue.parentNode?.removeChild(ue),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(re?{id:re}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(re){this.triggers=re.triggers||this.triggers,this._listenOpts.outsideClick=re.outsideClick,this._listenOpts.outsideEsc=re.outsideEsc,re.target=re.target||this._elementRef?.nativeElement;const ue=this._listenOpts.hide=()=>re.hide?re.hide():void this.hide(),se=this._listenOpts.show=oe=>{re.show?re.show(oe):this.show(oe),oe()};return this._renderer&&(this._unregisterListenersFn=(0,l.wo)(this._renderer,{target:re.target,triggers:re.triggers,show:se,hide:ue,toggle:oe=>{this.isShown?ue():se(oe)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(re,ue){return re&&ue&&(this._inlineViewRef=re.createEmbeddedView(ue)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const re=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=(0,l.Rg)(this._renderer,{targets:[re,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=(0,l.C)(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(re,ue,se){if(!re)return new w([]);if(re instanceof e.Rgc){if(this._viewContainerRef){const ce=this._viewContainerRef.createEmbeddedView(re,ue);return ce.markForCheck(),new w([ce.rootNodes],ce)}const oe=re.createEmbeddedView({});return this._applicationRef.attachView(oe),new w([oe.rootNodes],oe)}if("function"==typeof re){const oe=this._componentFactoryResolver.resolveComponentFactory(re),ce=e.zs3.create({providers:this._providers,parent:this._injector}),_e=oe.create(ce);return Object.assign(_e.instance,se),this._applicationRef.attachView(_e.hostView),new w([[_e.location.nativeElement]],_e.hostView,_e)}const te=this._renderer?[this._renderer.createText(`${re}`)]:[];return new w([te])}}let Z=(()=>{class ee{constructor(ue,se,te,oe,ce,_e){this._componentFactoryResolver=ue,this._ngZone=se,this._injector=te,this._posService=oe,this._applicationRef=ce,this._document=_e}createLoader(ue,se,te){return new n(se,te,ue,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static#e=this.\u0275fac=function(se){return new(se||ee)(e.LFG(e._Vd),e.LFG(e.R0b),e.LFG(e.zs3),e.LFG(D.sA),e.LFG(e.z2F),e.LFG(I.K0))};static#t=this.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9277:(ft,Ie,C)=>{"use strict";C.d(Ie,{Np:()=>vt,Y5:()=>Gi,kn:()=>Cs});var e=C(5879),l=C(2181),D=C(7398),I=C(8180),S=C(9773),w=C(3997);function Z(f){return f<0?Math.ceil(f)||0:Math.floor(f)}function ee(f){return"string"==typeof f}function re(f){return f instanceof Date||"[object Date]"===Object.prototype.toString.call(f)}function se(f){return f&&f.getTime&&!isNaN(f.getTime())}function te(f){return f instanceof Function||"[object Function]"===Object.prototype.toString.call(f)}function oe(f){return"number"==typeof f||"[object Number]"===Object.prototype.toString.call(f)}function ce(f){return f instanceof Array||"[object Array]"===Object.prototype.toString.call(f)}function _e(f,E){return Object.prototype.hasOwnProperty.call(f,E)}function Re(f){return null!=f&&"[object Object]"===Object.prototype.toString.call(f)}function Ge(f){return void 0===f}function Lt(f){const E=+f;let b=0;return 0!==E&&isFinite(E)&&(b=Z(E)),b}const je={},Tt={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function xt(f,E){const b=f.toLowerCase();let P=f;b in Tt&&(P=Tt[b]),je[b]=je[`${b}s`]=je[E]=P}function St(f){return ee(f)?je[f]||je[f.toLowerCase()]:void 0}const yt=0,un=1,Jt=2,tn=3,wn=4,Ln=5,Yn=6,ti=7,gi=8;function Rn(f,E,b){const P=`${Math.abs(f)}`;return(f>=0?b?"+":"":"-")+Math.pow(10,Math.max(0,E-P.length)).toString().substr(1)+P}const dt={},at={},Be=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function Ee(f,E,b,P){f&&(at[f]=P),E&&(at[E[0]]=function(){return Rn(P.apply(null,arguments),E[1],E[2])}),b&&(at[b]=function(H,Me){return Me.locale.ordinal(P.apply(null,arguments),f)})}function me(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}function tt(f,E,b){const P=new Date(Date.UTC.apply(null,arguments));return f<100&&f>=0&&isFinite(P.getUTCFullYear())&&P.setUTCFullYear(f),P}function he(f,E=0,b=1,P=0,H=0,Me=0,Et=0){const yn=new Date(f,E,b,P,H,Me,Et);return f<100&&f>=0&&isFinite(yn.getFullYear())&&yn.setFullYear(f),yn}function Ze(f,E=!1){return E?f.getUTCHours():f.getHours()}function rt(f,E=!1){return E?f.getUTCMinutes():f.getMinutes()}function bt(f,E=!1){return E?f.getUTCSeconds():f.getSeconds()}function Nt(f,E=!1){return E?f.getUTCMilliseconds():f.getMilliseconds()}function nn(f,E=!1){return E?f.getUTCDay():f.getDay()}function Dn(f,E=!1){return E?f.getUTCDate():f.getDate()}function Ot(f,E=!1){return E?f.getUTCMonth():f.getMonth()}function rn(f,E=!1){return E?f.getUTCFullYear():f.getFullYear()}function Ce(f,E){return!(!f||!E)&&J(f,E)&&Ot(f)===Ot(E)}function J(f,E){return!(!f||!E)&&rn(f)===rn(E)}function ae(f,E){return!(!f||!E)&&J(f,E)&&Ce(f,E)&&Dn(f)===Dn(E)}const Oe=/\d/,ot=/\d\d/,Se=/\d{3}/,Ft=/\d{4}/,lt=/[+-]?\d{6}/,Bt=/\d\d?/,Ut=/\d\d\d\d?/,fn=/\d\d\d\d\d\d?/,gn=/\d{1,3}/,An=/\d{1,4}/,jn=/[+-]?\d{1,6}/,ai=/\d+/,di=/[+-]?\d+/,Jn=/Z|[+-]\d\d(?::?\d\d)?/gi,qt=/[+-]?\d+(\.\d{1,3})?/,_t=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,G={};function U(f,E,b){G[f]=te(E)?E:function(P,H){return P&&b?b:E}}function ve(f,E){return _e(G,f)?G[f](!1,E):new RegExp(function Pe(f){return ut(f.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(E,b,P,H,Me)=>b||P||H||Me))}(f))}function ut(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const We={};function ze(f,E){const b=ee(f)?[f]:f;let P=E;if(oe(E)&&(P=function(H,Me,Et){return Me[E]=Lt(H),Et}),ce(b)&&te(P)){let H;for(H=0;H68?1900:2e3)}function ht(f){return st(f)?366:365}function st(f){return f%4==0&&f%100!=0||f%400==0}function It(f,E){if(isNaN(f)||isNaN(E))return NaN;const b=function n(f,E){return(f%E+E)%E}(E,12);return 1===b?st(f+(E-b)/12)?29:28:31-b%7%2}const _n={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function En(f,E){const b=Object.assign({},_n,E),P=f.getFullYear()+(b.year||0),H=f.getMonth()+(b.month||0);let Me=f.getDate()+(b.day||0);return b.month&&!b.day&&(Me=Math.min(Me,It(P,H))),he(P,H,Me,f.getHours()+(b.hour||0),f.getMinutes()+(b.minute||0),f.getSeconds()+(b.seconds||0))}function ni(f,E){return oe(E)?E:f}function fr(f,E,b){const P=Math.min(Dn(f),It(rn(f),E));return b?f.setUTCMonth(E,P):f.setMonth(E,P),f}function Ji(f,E,b){return b?f.setUTCDate(E):f.setDate(E),f}function _i(f){return new Date(f.getTime())}function bo(f,E,b){const P=_i(f);switch(E){case"year":fr(P,0,b);case"quarter":case"month":Ji(P,1,b);case"week":case"isoWeek":case"day":case"date":!function Kr(f,E,b){b?f.setUTCHours(E):f.setHours(E)}(P,0,b);case"hours":!function vr(f,E,b){b?f.setUTCMinutes(E):f.setMinutes(E)}(P,0,b);case"minutes":!function Bi(f,E,b){b?f.setUTCSeconds(E):f.setSeconds(E)}(P,0,b);case"seconds":!function co(f,E,b){b?f.setUTCMilliseconds(E):f.setMilliseconds(E)}(P,0,b)}return"week"===E&&function oa(f,E,b={}){mr(f,E-yi(f,b.locale,b.isUTC),"day")}(P,0,{isUTC:b}),"isoWeek"===E&&function _o(f,E,b={}){const P=function Ma(f,E=sr()){return ee(f)?E.weekdaysParse(f)%7||7:oe(f)&&isNaN(f)?null:f}(E,b.locale);zr(f,function Qi(f,E){return nn(f,E)}(f)%7?P:P-7)}(P,1),"quarter"===E&&fr(P,3*Math.floor(Ot(P,b)/3),b),P}function pr(f,E,b){let P=E;return"date"===P&&(P="day"),function vs(f,E,b,P){return bs(f,hr(E,b),-1,P)}(mr(bo(f,P,b),1,"isoWeek"===P?"week":P,b),1,"milliseconds",b)}function $n(f,E){const b=+bo(f,"day",E),P=+bo(f,"year",E);return Math.round((b-P)/864e5)+1}function Fr(f,E,b){const P=E-b+7;return-(tt(f,0,P).getUTCDay()-E+7)%7+P-1}function ho(f,E,b,P){const H=Fr(rn(f,P),E,b),Me=Math.floor(($n(f,P)-H-1)/7)+1;let Et,yn;return Me<1?(yn=rn(f,P)-1,Et=Me+to(yn,E,b)):Me>to(rn(f,P),E,b)?(Et=Me-to(rn(f,P),E,b),yn=rn(f,P)+1):(yn=rn(f,P),Et=Me),{week:Et,year:yn}}function to(f,E,b){const P=Fr(f,E,b),H=Fr(f+1,E,b);return(ht(f)-P+H)/7}const yr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Gs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ba="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),So="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ws="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ds={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Jr=_t,ga=_t;class kr{constructor(E){E&&this.set(E)}set(E){let b;for(b in E){if(!E.hasOwnProperty(b))continue;const P=E[b];this[te(P)?b:`_${b}`]=P}this._config=E}calendar(E,b,P){const H=this._calendar[E]||this._calendar.sameElse;return te(H)?H.call(null,b,P):H}longDateFormat(E){const b=this._longDateFormat[E],P=this._longDateFormat[E.toUpperCase()];return b||!P?b:(this._longDateFormat[E]=P.replace(/MMMM|MM|DD|dddd/g,function(H){return H.slice(1)}),this._longDateFormat[E])}get invalidDate(){return this._invalidDate}set invalidDate(E){this._invalidDate=E}ordinal(E,b){return this._ordinal.replace("%d",E.toString(10))}preparse(E,b){return E}getFullYear(E,b=!1){return rn(E,b)}postformat(E){return E}relativeTime(E,b,P,H){const Me=this._relativeTime[P];return te(Me)?Me(E,b,P,H):Me.replace(/%d/i,E.toString(10))}pastFuture(E,b){const P=this._relativeTime[E>0?"future":"past"];return te(P)?P(b):P.replace(/%s/i,b)}months(E,b,P=!1){if(!E)return ce(this._months)?this._months:this._months.standalone;if(ce(this._months))return this._months[Ot(E,P)];const H=(this._months.isFormat||yr).test(b)?"format":"standalone";return this._months[H][Ot(E,P)]}monthsShort(E,b,P=!1){if(!E)return ce(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(ce(this._monthsShort))return this._monthsShort[Ot(E,P)];const H=yr.test(b)?"format":"standalone";return this._monthsShort[H][Ot(E,P)]}monthsParse(E,b,P){let H,Me,Et;if(this._monthsParseExact)return this.handleMonthStrictParse(E,b,P);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Et=0;Et<12;Et++){if(H=new Date(Date.UTC(2e3,Et)),P&&!this._longMonthsParse[Et]){const yn=this.months(H,"",!0).replace(".",""),Gn=this.monthsShort(H,"",!0).replace(".","");this._longMonthsParse[Et]=new RegExp(`^${yn}$`,"i"),this._shortMonthsParse[Et]=new RegExp(`^${Gn}$`,"i")}if(!P&&!this._monthsParse[Et]&&(Me=`^${this.months(H,"",!0)}|^${this.monthsShort(H,"",!0)}`,this._monthsParse[Et]=new RegExp(Me.replace(".",""),"i")),P&&"MMMM"===b&&this._longMonthsParse[Et].test(E)||P&&"MMM"===b&&this._shortMonthsParse[Et].test(E)||!P&&this._monthsParse[Et].test(E))return Et}}monthsRegex(E){return this._monthsParseExact?(_e(this,"_monthsRegex")||this.computeMonthsParse(),E?this._monthsStrictRegex:this._monthsRegex):(_e(this,"_monthsRegex")||(this._monthsRegex=ga),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(E){return this._monthsParseExact?(_e(this,"_monthsRegex")||this.computeMonthsParse(),E?this._monthsShortStrictRegex:this._monthsShortRegex):(_e(this,"_monthsShortRegex")||(this._monthsShortRegex=Jr),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)}week(E,b){return ho(E,this._week.dow,this._week.doy,b).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(E,b,P){if(!E)return ce(this._weekdays)?this._weekdays:this._weekdays.standalone;if(ce(this._weekdays))return this._weekdays[nn(E,P)];const H=this._weekdays.isFormat.test(b)?"format":"standalone";return this._weekdays[H][nn(E,P)]}weekdaysMin(E,b,P){return E?this._weekdaysMin[nn(E,P)]:this._weekdaysMin}weekdaysShort(E,b,P){return E?this._weekdaysShort[nn(E,P)]:this._weekdaysShort}weekdaysParse(E,b,P){let H,Me;if(this._weekdaysParseExact)return this.handleWeekStrictParse(E,b,P);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),H=0;H<7;H++){const Et=zr(new Date(Date.UTC(2e3,1)),H,null,!0);if(P&&!this._fullWeekdaysParse[H]&&(this._fullWeekdaysParse[H]=new RegExp(`^${this.weekdays(Et,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[H]=new RegExp(`^${this.weekdaysShort(Et,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[H]=new RegExp(`^${this.weekdaysMin(Et,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[H]||(Me=`^${this.weekdays(Et,"",!0)}|^${this.weekdaysShort(Et,"",!0)}|^${this.weekdaysMin(Et,"",!0)}`,this._weekdaysParse[H]=new RegExp(Me.replace(".",""),"i")),!(ce(this._fullWeekdaysParse)&&ce(this._shortWeekdaysParse)&&ce(this._minWeekdaysParse)&&ce(this._weekdaysParse)))return;if(P&&"dddd"===b&&this._fullWeekdaysParse[H].test(E))return H;if(P&&"ddd"===b&&this._shortWeekdaysParse[H].test(E))return H;if(P&&"dd"===b&&this._minWeekdaysParse[H].test(E))return H;if(!P&&this._weekdaysParse[H].test(E))return H}}weekdaysRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysStrictRegex:this._weekdaysRegex):(_e(this,"_weekdaysRegex")||(this._weekdaysRegex=_t),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_e(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_t),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_e(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_t),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(E){return"p"===E.toLowerCase().charAt(0)}meridiem(E,b,P){return E>11?P?"pm":"PM":P?"am":"AM"}formatLongDate(E){this._longDateFormat=this._longDateFormat?this._longDateFormat:Ds;const b=this._longDateFormat[E],P=this._longDateFormat[E.toUpperCase()];return b||!P?b:(this._longDateFormat[E]=P.replace(/MMMM|MM|DD|dddd/g,H=>H.slice(1)),this._longDateFormat[E])}handleMonthStrictParse(E,b,P){const H=E.toLocaleLowerCase();let Me,Et,yn;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Me=0;Me<12;++Me)yn=new Date(2e3,Me),this._shortMonthsParse[Me]=this.monthsShort(yn,"").toLocaleLowerCase(),this._longMonthsParse[Me]=this.months(yn,"").toLocaleLowerCase();return P?"MMM"===b?(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:null):(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:null):"MMM"===b?(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:null)):(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:null))}handleWeekStrictParse(E,b,P){let H;const Me=E.toLocaleLowerCase();if(!this._weekdaysParse){let Et;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Et=0;Et<7;++Et){const yn=zr(new Date(Date.UTC(2e3,1)),Et,null,!0);this._minWeekdaysParse[Et]=this.weekdaysMin(yn).toLocaleLowerCase(),this._shortWeekdaysParse[Et]=this.weekdaysShort(yn).toLocaleLowerCase(),this._weekdaysParse[Et]=this.weekdays(yn,"").toLocaleLowerCase()}}if(ce(this._weekdaysParse)&&ce(this._shortWeekdaysParse)&&ce(this._minWeekdaysParse))return P?"dddd"===b?(H=this._weekdaysParse.indexOf(Me),-1!==H?H:null):"ddd"===b?(H=this._shortWeekdaysParse.indexOf(Me),-1!==H?H:null):(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null):"dddd"===b?(H=this._weekdaysParse.indexOf(Me),-1!==H||(H=this._shortWeekdaysParse.indexOf(Me),-1!==H)?H:(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null)):"ddd"===b?(H=this._shortWeekdaysParse.indexOf(Me),-1!==H||(H=this._weekdaysParse.indexOf(Me),-1!==H)?H:(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null)):(H=this._minWeekdaysParse.indexOf(Me),-1!==H||(H=this._weekdaysParse.indexOf(Me),-1!==H)?H:(H=this._shortWeekdaysParse.indexOf(Me),-1!==H?H:null))}computeMonthsParse(){const E=[],b=[],P=[];let H,Me;for(Me=0;Me<12;Me++)H=new Date(2e3,Me),E.push(this.monthsShort(H,"")),b.push(this.months(H,"")),P.push(this.months(H,"")),P.push(this.monthsShort(H,""));for(E.sort(oo),b.sort(oo),P.sort(oo),Me=0;Me<12;Me++)E[Me]=ut(E[Me]),b[Me]=ut(b[Me]);for(Me=0;Me<24;Me++)P[Me]=ut(P[Me]);this._monthsRegex=new RegExp(`^(${P.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${b.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${E.join("|")})`,"i")}computeWeekdaysParse(){const E=[],b=[],P=[],H=[];let Me;for(Me=0;Me<7;Me++){const Et=zr(new Date(Date.UTC(2e3,1)),Me,null,!0),yn=this.weekdaysMin(Et),Gn=this.weekdaysShort(Et),Rr=this.weekdays(Et);E.push(yn),b.push(Gn),P.push(Rr),H.push(yn),H.push(Gn),H.push(Rr)}for(E.sort(oo),b.sort(oo),P.sort(oo),H.sort(oo),Me=0;Me<7;Me++)b[Me]=ut(b[Me]),P[Me]=ut(P[Me]),H[Me]=ut(H[Me]);this._weekdaysRegex=new RegExp(`^(${H.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${P.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${b.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${E.join("|")})`,"i")}}function oo(f,E){return E.length-f.length}const Aa={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:Ds,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Gs,monthsShort:Ba,week:{dow:0,doy:6},weekdays:xl,weekdaysMin:Ws,weekdaysShort:So,meridiemParse:/[ap]\.?m?\.?/i};function qi(f,E,b){const P=Math.min(f.length,E.length),H=Math.abs(f.length-E.length);let Et,Me=0;for(Et=0;Et0;){if(b=io(H.slice(0,Me).join("-")),b)return b;if(E&&E.length>=Me&&qi(H,E,!0)>=Me-1)break;Me--}P++}return null}(ce(f)?f:[f]):Co}const Ia=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],ta=Ia.reduce((f,E)=>(f[E]=!0,f),{});function Ae(f){return f<0?Math.floor(f):Math.ceil(f)}function le(f){return 4800*f/146097}function Qe(f){return 146097*f/4800}let Ht=Math.round;const Qn_ss=44,Qn_s=45,Qn_m=45,Qn_h=22,Qn_d=26,Qn_M=11;function Ni(f,E,b,P,H){return H.relativeTime(E||1,!!b,f,P)}class sc{constructor(E,b={}){this._data={},this._locale=sr(),this._locale=b&&b._locale||sr();const H=E.year||0,Me=E.quarter||0,Et=E.month||0,yn=E.week||0,Gn=E.day||0,Rr=E.hours||0,Ts=E.minutes||0,pa=E.seconds||0,Ea=E.milliseconds||0;return this._isValid=function na(f){if(Object.keys(f).some(P=>P in ta&&null===f[P]||isNaN(f[P])))return!1;let b=!1;for(let P=0;P=0&&b>=0&&P>=0||E<=0&&b<=0&&P<=0||(E+=864e5*Ae(Qe(P)+b),b=0,P=0),H.milliseconds=E%1e3;const Me=Z(E/1e3);H.seconds=Me%60;const Et=Z(Me/60);H.minutes=Et%60;const yn=Z(Et/60);H.hours=yn%24,b+=Z(yn/24);const Gn=Z(le(b));P+=Gn,b-=Ae(Qe(Gn));const Rr=Z(P/12);return P%=12,H.day=b,H.month=P,H.year=Rr,f}(this)}isValid(){return this._isValid}humanize(E){if(!this.isValid())return this.localeData().invalidDate;const b=this.localeData();let P=function Zo(f,E,b){const P=hr(f).abs(),H=Ht(P.as("s")),Me=Ht(P.as("m")),Et=Ht(P.as("h")),yn=Ht(P.as("d")),Gn=Ht(P.as("M")),Rr=Ht(P.as("y")),Ts=H<=Qn_ss&&["s",H]||H0,b])}(this,!E,b);return E&&(P=b.pastFuture(+this,P)),b.postformat(P)}localeData(){return this._locale}locale(E){return E?(this._locale=sr(E)||this._locale,this):this._locale._abbr}abs(){const E=Math.abs,b=this._data;return this._milliseconds=E(this._milliseconds),this._days=E(this._days),this._months=E(this._months),b.milliseconds=E(b.milliseconds),b.seconds=E(b.seconds),b.minutes=E(b.minutes),b.hours=E(b.hours),b.month=E(b.month),b.year=E(b.year),this}as(E){if(!this.isValid())return NaN;let b,P;const H=this._milliseconds,Me=St(E);if("month"===Me||"year"===Me)return b=this._days+H/864e5,P=this._months+le(b),"month"===Me?P:P/12;switch(b=this._days+Math.round(Qe(this._months)),Me){case"week":return b/7+H/6048e5;case"day":return b+H/864e5;case"hours":return 24*b+H/36e5;case"minutes":return 1440*b+H/6e4;case"seconds":return 86400*b+H/1e3;case"milliseconds":return Math.floor(864e5*b)+H;default:throw new Error(`Unknown unit ${Me}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Lt(this._months/12):NaN}}function Tl(f){if(null==f._isValid){const E=Yt(f),b=Array.prototype.some.call(E.parsedDateParts,function(H){return null!=H});let P=!isNaN(f._d&&f._d.getTime())&&E.overflow<0&&!E.empty&&!E.invalidMonth&&!E.invalidWeekday&&!E.weekdayMismatch&&!E.nullInput&&!E.invalidFormat&&!E.userInvalidated&&(!E.meridiem||E.meridiem&&b);if(f._strict&&(P=P&&0===E.charsLeftOver&&0===E.unusedTokens.length&&void 0===E.bigHour),null!=Object.isFrozen&&Object.isFrozen(f))return P;f._isValid=P}return f._isValid}function Dl(f,E){return f._d=new Date(NaN),Object.assign(Yt(f),E||{userInvalidated:!0}),f}const kc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,El=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wa=/Z|[+-]\d\d(?::?\d\d)?/,Xo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],Pr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ms=/^\/?Date\((\-?\d+)/i,As={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},qr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Bs(f){if(!ee(f._i))return f;const E=f._i,b=kc.exec(E)||El.exec(E);let P,H,Me,Et,yn,Gn;if(!b)return f._isValid=!1,f;for(yn=0,Gn=Xo.length;ynE.formatLongDate(Et)||Et;for(H.lastIndex=0;P>=0&&H.test(b);)b=b.replace(H,Me),H.lastIndex=0,P-=1;return b}function ns(f,E,b){return f??E??b}function Os(f){const E=[];let b,P,H;if(f._d)return f;const Me=function vc(f){const E=new Date;return f._useUTC?[E.getUTCFullYear(),E.getUTCMonth(),E.getUTCDate()]:[E.getFullYear(),E.getMonth(),E.getDate()]}(f);for(f._w&&null==f._a[Jt]&&null==f._a[un]&&function Is(f){let E,b,P,H,Me,Et,yn;const Gn=f._w;if(null!=Gn.GG||null!=Gn.W||null!=Gn.E)H=1,Me=4,E=ns(Gn.GG,f._a[yt],ho(new Date,1,4).year),b=ns(Gn.W,1),P=ns(Gn.E,1),(P<1||P>7)&&(yn=!0);else{H=f._locale._week.dow,Me=f._locale._week.doy;const Rr=ho(new Date,H,Me);E=ns(Gn.gg,f._a[yt],Rr.year),b=ns(Gn.w,Rr.week),null!=Gn.d?(P=Gn.d,(P<0||P>6)&&(yn=!0)):null!=Gn.e?(P=Gn.e+H,(Gn.e<0||Gn.e>6)&&(yn=!0)):P=H}b<1||b>to(E,H,Me)?Yt(f)._overflowWeeks=!0:null!=yn?Yt(f)._overflowWeekday=!0:(Et=function uo(f,E,b,P,H){const yn=1+7*(E-1)+(7+b-P)%7+Fr(f,P,H);let Gn,Rr;return yn<=0?(Gn=f-1,Rr=ht(Gn)+yn):yn>ht(f)?(Gn=f+1,Rr=yn-ht(f)):(Gn=f,Rr=yn),{year:Gn,dayOfYear:Rr}}(E,b,P,H,Me),f._a[yt]=Et.year,f._dayOfYear=Et.dayOfYear)}(f),null!=f._dayOfYear&&(H=ns(f._a[yt],Me[yt]),(f._dayOfYear>ht(H)||0===f._dayOfYear)&&(Yt(f)._overflowDayOfYear=!0),P=new Date(Date.UTC(H,0,f._dayOfYear)),f._a[un]=P.getUTCMonth(),f._a[Jt]=P.getUTCDate()),b=0;b<3&&null==f._a[b];++b)f._a[b]=E[b]=Me[b];for(;b<7;b++)f._a[b]=E[b]=null==f._a[b]?2===b?1:0:f._a[b];24===f._a[tn]&&0===f._a[wn]&&0===f._a[Ln]&&0===f._a[Yn]&&(f._nextDay=!0,f._a[tn]=0),f._d=(f._useUTC?tt:he).apply(null,E);const Et=f._useUTC?f._d.getUTCDay():f._d.getDay();return null!=f._tzm&&f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),f._nextDay&&(f._a[tn]=24),f._w&&typeof f._w.d<"u"&&f._w.d!==Et&&(Yt(f).weekdayMismatch=!0),f}function Za(f){let E;const b=f._a;return b&&-2===Yt(f).overflow&&(E=b[un]<0||b[un]>11?un:b[Jt]<1||b[Jt]>It(b[yt],b[un])?Jt:b[tn]<0||b[tn]>24||24===b[tn]&&(0!==b[wn]||0!==b[Ln]||0!==b[Yn])?tn:b[wn]<0||b[wn]>59?wn:b[Ln]<0||b[Ln]>59?Ln:b[Yn]<0||b[Yn]>999?Yn:-1,Yt(f)._overflowDayOfYear&&(EJt)&&(E=Jt),Yt(f)._overflowWeeks&&-1===E&&(E=ti),Yt(f)._overflowWeekday&&-1===E&&(E=gi),Yt(f).overflow=E),f}const za="ISO_8601",$l="RFC_2822";function Tr(f){if(f._f===za)return Bs(f);if(f._f===$l)return ja(f);if(f._a=[],Yt(f).empty=!0,ce(f._f)||!f._i&&0!==f._i)return f;let E=f._i.toString(),b=0;const P=E.length,H=gs(f._f,f._locale).match(Be)||[];let Me,Et,yn,Gn;for(Me=0;Me0&&Yt(f).unusedInput.push(Gn),E=E.slice(E.indexOf(yn)+yn.length),b+=yn.length),at[Et]?(yn?Yt(f).empty=!1:Yt(f).unusedTokens.push(Et),Te(Et,yn,f)):f._strict&&!yn&&Yt(f).unusedTokens.push(Et);return Yt(f).charsLeftOver=P-b,E.length>0&&Yt(f).unusedInput.push(E),f._a[tn]<=12&&!0===Yt(f).bigHour&&f._a[tn]>0&&(Yt(f).bigHour=void 0),Yt(f).parsedDateParts=f._a.slice(0),Yt(f).meridiem=f._meridiem,f._a[tn]=function Lc(f,E,b){let P=E;if(null==b)return P;if(null!=f.meridiemHour)return f.meridiemHour(P,b);if(null==f.isPM)return P;const H=f.isPM(b);return H&&P<12&&(P+=12),!H&&12===P&&(P=0),P}(f._locale,f._a[tn],f._meridiem),Os(f),Za(f)}function xa(f){const E=Za(function Ga(f){let E=f._i;const b=f._f;return f._locale=f._locale||sr(f._l),null===E||void 0===b&&""===E?Dl(f,{nullInput:!0}):(ee(E)&&(f._i=E=f._locale.preparse(E,b)),re(E)?(f._d=_i(E),f):(ce(b)?function Kl(f){let E,b,P,H,Me;if(!f._f||0===f._f.length)return Yt(f).invalidFormat=!0,Dl(f);for(Me=0;Meee(P)?parseInt(P,10):P),Os(f)}else if(Re(E))!function Rs(f){if(f._d)return f;const E=f._i;if(Re(E)){const b=function Zt(f){const E={};let b,P;for(P in f)_e(f,P)&&(b=St(P),b&&(E[b]=f[P]));return E}(E);f._a=[b.year,b.month,b.day,b.hours,b.minutes,b.seconds,b.milliseconds].map(P=>ee(P)?parseInt(P,10):P)}return Os(f)}(f);else{if(!oe(E))return Dl(f);f._d=new Date(E)}}(f),Tl(f)||(f._d=null),f))}(f));return E._d=new Date(null!=E._d?E._d.getTime():NaN),Tl(Object.assign({},E,{_isValid:null}))||(E._d=new Date(NaN)),E}function ra(f,E,b,P,H){return re(f)?f:function bc(f,E,b,P,H){const Me={};let Et=f;return(Re(Et)&&function mt(f){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(f).length;let E;for(E in f)if(f.hasOwnProperty(E))return!1;return!0}(Et)||ce(Et)&&0===Et.length)&&(Et=void 0),Me._useUTC=Me._isUTC=H,Me._l=b,Me._i=Et,Me._f=E,Me._strict=P,xa(Me)}(f,E,b,P,H)._d}function Al(f){return f instanceof Date?new Date(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()):null}function is(f){return f<0?-1*Math.round(-1*f):Math.round(f)}function ro(f,E,b="milliseconds"){return!(!f||!E)&&("milliseconds"===b?f.valueOf()>E.valueOf():E.valueOf()=3&&f%100<=10?3:f%100>=11?4:5},ko={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},rs=function(f){return function(E,b){const P=dl(E);let H=ko[f][dl(E)];return 2===P&&(H=H[b?0:1]),H.replace(/%d/i,E.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),rs("s"),rs("s"),rs("m"),rs("m"),rs("h"),rs("h"),rs("d"),rs("d"),rs("M"),rs("M"),rs("y"),rs("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const lc="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),Ei="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(f,E){let b,P=[];for(b=0;b<12;b++)P[b]=new RegExp("^"+f[b]+"$|^"+E[b]+"$","i")})(lc,Ei),function(f){let E,b=[];for(E=0;E<12;E++)b[E]=new RegExp("^"+f[E]+"$","i")}(Ei),function(f){let E,b=[];for(E=0;E<12;E++)b[E]=new RegExp("^"+f[E]+"$","i")}(lc),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const pe={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:f=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===f,meridiem:(f,E,b)=>f<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(f,E){const b=pe.longDateFormat[E]?pe.longDateFormat[E]:E;return-1!==b.indexOf("YYYY",b.length-4)?f.substr(0,f.length-4)+(parseInt(f.substr(f.length-4),10)-543):f},getFullYear:(f,E=!1)=>543+(E?f.getUTCFullYear():f.getFullYear())};function Oi(f){return function(E){return f+"\u043e"+(11===Ze(E)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),Oi("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),Oi("[\u0417\u0430\u0432\u0442\u0440\u0430 "),Oi("[\u0412\u0447\u043e\u0440\u0430 "),Oi("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\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".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");var Zs=C(4060),Uc=C(6223),ls=C(5619),Gd=C(1954),Sd=C(2631);const Ad=new class Eu extends Sd.v{}(class _c extends Gd.o{constructor(E,b){super(E,b),this.scheduler=E,this.work=b}schedule(E,b=0){return b>0?super.schedule(E,b):(this.delay=b,this.state=E,this.scheduler.flush(this),this)}execute(E,b){return b>0||this.closed?super.execute(E,b):this._execute(E,b)}requestAsyncId(E,b,P=0){return null!=P&&P>0||null==P&&this.delay>0?super.requestAsyncId(E,b,P):(E.flush(this),0)}});var Pl=C(5592),ua=C(3093),Or=C(6424);class Vc extends ls.X{constructor(E,b,P){super(E),b.pipe((0,ua.Q)(Ad)).pipe((0,Or.R)((Et,yn)=>yn?P(Et,yn):Et,E)).subscribe(Et=>this.next(Et))}}class zo extends Pl.y{constructor(E,b,P){super(),this._dispatcher=E,this._reducer=b,this.source=P}select(E){return(this.source?.pipe((0,D.U)(E))||(new Pl.y).pipe((0,D.U)(E))).pipe((0,w.x)())}lift(E){const b=new zo(this._dispatcher,this._reducer,this);return b.operator=E,b}dispatch(E){this._dispatcher.next(E)}next(E){this._dispatcher.next(E)}error(E){this._dispatcher.error(E)}complete(){}}var zi=C(6814);function Nl(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function La(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(H.minuteStep))}),e._UZ(2,"span",2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canIncrementMinutes||!b.isEditable)}}function $d(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0"),e.qZA())}function mc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(H.secondsStep))}),e._UZ(2,"span",2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canIncrementSeconds||!b.isEditable)}}function jc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function _l(f,E){1&f&&e._UZ(0,"td")}function Su(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0:\xa0"),e.qZA())}function nu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4)(1,"input",5),e.NdJ("wheel",function(H){e.CHM(b);const Me=e.oxw();return Me.prevDef(H),e.KtG(Me.changeMinutes(Me.minuteStep*Me.wheelSign(H),"wheel"))})("keydown.ArrowUp",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(H.minuteStep,"key"))})("keydown.ArrowDown",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(-H.minuteStep,"key"))})("change",function(H){e.CHM(b);const Me=e.oxw();return e.KtG(Me.updateMinutes(H.target))}),e.qZA()()}if(2&f){const b=e.oxw();e.ekj("has-error",b.invalidMinutes),e.xp6(1),e.ekj("is-invalid",b.invalidMinutes),e.Q6J("placeholder",b.minutesPlaceholder)("readonly",b.readonlyInput)("disabled",b.disabled)("value",b.minutes),e.uIk("aria-label",b.labelMinutes)}}function Pa(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0:\xa0"),e.qZA())}function ao(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4)(1,"input",5),e.NdJ("wheel",function(H){e.CHM(b);const Me=e.oxw();return Me.prevDef(H),e.KtG(Me.changeSeconds(Me.secondsStep*Me.wheelSign(H),"wheel"))})("keydown.ArrowUp",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(H.secondsStep,"key"))})("keydown.ArrowDown",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(-H.secondsStep,"key"))})("change",function(H){e.CHM(b);const Me=e.oxw();return e.KtG(Me.updateSeconds(H.target))}),e.qZA()()}if(2&f){const b=e.oxw();e.ekj("has-error",b.invalidSeconds),e.xp6(1),e.ekj("is-invalid",b.invalidSeconds),e.Q6J("placeholder",b.secondsPlaceholder)("readonly",b.readonlyInput)("disabled",b.disabled)("value",b.seconds),e.uIk("aria-label",b.labelSeconds)}}function Zc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Go(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"button",8),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.toggleMeridian())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.isEditable||!b.canToggleMeridian),e.Q6J("disabled",!b.isEditable||!b.canToggleMeridian),e.xp6(1),e.hij("",b.meridian," ")}}function Kd(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function zc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(-H.minuteStep))}),e._UZ(2,"span",7),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canDecrementMinutes||!b.isEditable)}}function Jd(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0"),e.qZA())}function nl(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(-H.secondsStep))}),e._UZ(2,"span",7),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canDecrementSeconds||!b.isEditable)}}function Gc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function qd(f,E){1&f&&e._UZ(0,"td")}let ml=(()=>{class f{static#e=this.WRITE_VALUE="[timepicker] write value from ng model";static#t=this.CHANGE_HOURS="[timepicker] change hours";static#n=this.CHANGE_MINUTES="[timepicker] change minutes";static#i=this.CHANGE_SECONDS="[timepicker] change seconds";static#r=this.SET_TIME_UNIT="[timepicker] set time unit";static#o=this.UPDATE_CONTROLS="[timepicker] update controls";writeValue(b){return{type:f.WRITE_VALUE,payload:b}}changeHours(b){return{type:f.CHANGE_HOURS,payload:b}}changeMinutes(b){return{type:f.CHANGE_MINUTES,payload:b}}changeSeconds(b){return{type:f.CHANGE_SECONDS,payload:b}}setTime(b){return{type:f.SET_TIME_UNIT,payload:b}}updateControls(b){return{type:f.UPDATE_CONTROLS,payload:b}}static#s=this.\u0275fac=function(P){return new(P||f)};static#a=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const Oc=10,Au=24,iu=12,pi=60,Wc=60;function Xr(f){return!(!f||f instanceof Date&&isNaN(f.getHours()))&&("string"!=typeof f||Xr(new Date(f)))}function Mc(f,E){return!(f.min&&Ef.max)}function No(f){return typeof f>"u"?NaN:"number"==typeof f?f:parseInt(f,Oc)}function Ye(f,E=!1){const b=No(f);return isNaN(b)||b<0||b>(E?iu:Au)?NaN:b}function it(f){const E=No(f);return isNaN(E)||E<0||E>pi?NaN:E}function pt(f){const E=No(f);return isNaN(E)||E<0||E>Wc?NaN:E}function sn(f){return"string"==typeof f?new Date(f):f}function Bn(f,E){if(!f)return Bn(Hn(new Date,0,0,0),E);if(!E)return f;let b=f.getHours(),P=f.getMinutes(),H=f.getSeconds();return E.hour&&(b+=No(E.hour)),E.minute&&(P+=No(E.minute)),E.seconds&&(H+=No(E.seconds)),Hn(f,b,P,H)}function ri(f,E){let b=Ye(E.hour);const P=it(E.minute),H=pt(E.seconds)||0;return E.isPM&&12!==b&&(b+=iu),f?isNaN(b)||isNaN(P)?f:Hn(f,b,P,H):isNaN(b)||isNaN(P)?f:Hn(new Date,b,P,H)}function Hn(f,E,b,P){const H=new Date(f.getFullYear(),f.getMonth(),f.getDate(),E,b,P,f.getMilliseconds());return H.setFullYear(f.getFullYear()),H.setMonth(f.getMonth()),H.setDate(f.getDate()),H}function hi(f){const E=f.toString();return E.length>1?E:`0${E}`}function Ci(f,E){return!isNaN(Ye(f,E))}function Hi(f){return!isNaN(it(f))}function Wr(f){return!isNaN(pt(f))}function Fl(f,E="0",b="0",P){return Ci(f,P)&&Hi(E)&&Wr(b)}function ec(f,E){return!(f.readonlyInput||f.disabled||E&&("wheel"===E.source&&!f.mousewheel||"key"===E.source&&!f.arrowkeys))}function Kc(f){const{hourStep:E,minuteStep:b,secondsStep:P,readonlyInput:H,disabled:Me,mousewheel:Et,arrowkeys:yn,showSpinners:Gn,showMeridian:Rr,showSeconds:Ts,meridians:pa,min:Ea,max:Lh}=f;return{hourStep:E,minuteStep:b,secondsStep:P,readonlyInput:H,disabled:Me,mousewheel:Et,arrowkeys:yn,showSpinners:Gn,showMeridian:Rr,showSeconds:Ts,meridians:pa,min:Ea,max:Lh}}let Cc=(()=>{class f{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})();const Ic={value:void 0,config:new Cc,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function cs(f=Ic,E){switch(E.type){case ml.WRITE_VALUE:return Object.assign({},f,{value:E.payload});case ml.CHANGE_HOURS:{if(!ec(f.config,E.payload)||!function $c(f,E){return!(!f.step||f.step>0&&!E.canIncrementHours||f.step<0&&!E.canDecrementHours)}(E.payload,f.controls))return f;const b=Bn(f.value,{hour:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.CHANGE_MINUTES:{if(!ec(f.config,E.payload)||!function Da(f,E){return!(!f.step||f.step>0&&!E.canIncrementMinutes||f.step<0&&!E.canDecrementMinutes)}(E.payload,f.controls))return f;const b=Bn(f.value,{minute:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.CHANGE_SECONDS:{if(!ec(f.config,E.payload)||!function gl(f,E){return!(!f.step||f.step>0&&!E.canIncrementSeconds||f.step<0&&!E.canDecrementSeconds)}(E.payload,f.controls))return f;const b=Bn(f.value,{seconds:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.SET_TIME_UNIT:{if(!ec(f.config))return f;const b=ri(f.value,E.payload);return Object.assign({},f,{value:b})}case ml.UPDATE_CONTROLS:{const b=function Qd(f,E){const{min:H,max:Me,hourStep:Et,minuteStep:yn,secondsStep:Gn,showSeconds:Rr}=E,Ts={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!f)return Ts;if(Me){const pa=Bn(f,{hour:Et});if(Ts.canIncrementHours=Me>pa&&f.getHours()+Et<24,!Ts.canIncrementHours){const Ea=Bn(f,{minute:yn});Ts.canIncrementMinutes=Rr?Me>Ea:Me>=Ea}if(!Ts.canIncrementMinutes){const Ea=Bn(f,{seconds:Gn});Ts.canIncrementSeconds=Me>=Ea}f.getHours()<12&&(Ts.canToggleMeridian=Bn(f,{hour:12})=12&&(Ts.canToggleMeridian=Bn(f,{hour:-12})>H)}return Ts}(f.value,E.payload),P={value:f.value,config:E.payload,controls:b};return f.config.showMeridian!==P.config.showMeridian&&f.value&&(P.value=new Date(f.value)),Object.assign({},f,P)}default:return f}}let gc=(()=>{class f extends zo{constructor(){const b=new ls.X({type:"[mini-ngrx] dispatcher init"});super(b,cs,new Vc(Ic,b,cs))}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const vl={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>Yl),multi:!0};let Yl=(()=>{class f{constructor(b,P,H,Me){this._cd=P,this._store=H,this._timepickerActions=Me,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new e.vpe,this.meridianChange=new e.vpe,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=b,Object.assign(this,this.config),this.timepickerSub=H.select(Et=>Et.value).subscribe(Et=>{this._renderTime(Et),this.onChange(Et),this._store.dispatch(this._timepickerActions.updateControls(Kc(this)))}),H.select(Et=>Et.controls).subscribe(Et=>{const yn=Fl(this.hours,this.minutes,this.seconds,this.isPM()),Gn=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||yn;this.isValid.emit(Gn),Object.assign(this,Et),P.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(b){b.preventDefault()}wheelSign(b){return-1*Math.sign(b.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(Kc(this)))}changeHours(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:b,source:P}))}changeMinutes(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:b,source:P}))}changeSeconds(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:b,source:P}))}updateHours(b){this.resetValidation(),this.hours=b.value;const P=Ci(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(b){this.resetValidation(),this.minutes=b.value;const P=Hi(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(b){this.resetValidation(),this.seconds=b.value;const P=Wr(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function Ns(f,E,b){const P=ri(new Date,f);return!(!P||E&&P>E||b&&P=12?1:0],this.meridianChange.emit(this.meridian),Me%=12,0===Me&&(Me=12)),this.hours=hi(Me),this.minutes=hi(P.getMinutes()),this.seconds=hi(P.getUTCSeconds())}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Cc),e.Y36(e.sBO),e.Y36(gc),e.Y36(ml))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meridians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[e._Bn([vl,gc]),e.TTD],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],["href","javascript:void(0);",1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"placeholder","readonly","disabled","value","wheel","keydown.ArrowUp","keydown.ArrowDown","change"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"disabled","click"]],template:function(P,H){1&P&&(e.TgZ(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),e.NdJ("click",function(){return H.changeHours(H.hourStep)}),e._UZ(5,"span",2),e.qZA()(),e.YNc(6,Nl,2,0,"td",3),e.YNc(7,La,3,2,"td",3),e.YNc(8,$d,2,0,"td",3),e.YNc(9,mc,3,2,"td",3),e.YNc(10,jc,2,0,"td",3),e.YNc(11,_l,1,0,"td",3),e.qZA(),e.TgZ(12,"tr")(13,"td",4)(14,"input",5),e.NdJ("wheel",function(Et){return H.prevDef(Et),H.changeHours(H.hourStep*H.wheelSign(Et),"wheel")})("keydown.ArrowUp",function(){return H.changeHours(H.hourStep,"key")})("keydown.ArrowDown",function(){return H.changeHours(-H.hourStep,"key")})("change",function(Et){return H.updateHours(Et.target)}),e.qZA()(),e.YNc(15,Su,2,0,"td",3),e.YNc(16,nu,2,9,"td",6),e.YNc(17,Pa,2,0,"td",3),e.YNc(18,ao,2,9,"td",6),e.YNc(19,Zc,2,0,"td",3),e.YNc(20,Go,3,4,"td",3),e.qZA(),e.TgZ(21,"tr",0)(22,"td")(23,"a",1),e.NdJ("click",function(){return H.changeHours(-H.hourStep)}),e._UZ(24,"span",7),e.qZA()(),e.YNc(25,Kd,2,0,"td",3),e.YNc(26,zc,3,2,"td",3),e.YNc(27,Jd,2,0,"td",3),e.YNc(28,nl,3,2,"td",3),e.YNc(29,Gc,2,0,"td",3),e.YNc(30,qd,1,0,"td",3),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("hidden",!H.showSpinners),e.xp6(2),e.ekj("disabled",!H.canIncrementHours||!H.isEditable),e.xp6(2),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(2),e.ekj("has-error",H.invalidHours),e.xp6(1),e.ekj("is-invalid",H.invalidHours),e.Q6J("placeholder",H.hoursPlaceholder)("readonly",H.readonlyInput)("disabled",H.disabled)("value",H.hours),e.uIk("aria-label",H.labelHours),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("hidden",!H.showSpinners),e.xp6(2),e.ekj("disabled",!H.canDecrementHours||!H.isEditable),e.xp6(2),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian))},dependencies:[zi.O5],styles:[".bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{transform:rotate(45deg);top:2px}.bs-chevron-down{transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}\n"],encapsulation:2,changeDetection:0})}return f})(),Gu=(()=>{class f{static forRoot(){return{ngModule:f,providers:[ml,gc]}}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275mod=e.oAB({type:f});static#n=this.\u0275inj=e.cJS({providers:[gc],imports:[zi.ez]})}return f})();var Fa=C(6825),Od=C(7394),Ou=C(2572),Tc=C(8645),Id=C(2268),F=C(1835);function Xe(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"button",2),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw();return e.KtG(Et.selectFromRanges(Me))}),e._uU(1),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw();e.ekj("selected",b.value===P.selectedRange),e.xp6(1),e.hij(" ",b.label," ")}}function g(f,E){1&f&&e._UZ(0,"bs-current-date",4)}function L(f,E){1&f&&e._UZ(0,"bs-timepicker")}const R=[[["bs-datepicker-navigation-view"]],"*"],ye=["bs-datepicker-navigation-view","*"],Dt=["bsDatepickerDayDecorator",""];function Mn(f,E){if(1&f){const b=e.EpF();e.ynx(0),e._uU(1," \u200b "),e.TgZ(2,"button",2),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.view("month"))}),e.TgZ(3,"span"),e._uU(4),e.qZA()(),e.BQk()}if(2&f){const b=e.oxw();e.xp6(2),e.Q6J("disabled",b.isDisabled),e.xp6(2),e.Oqu(b.calendar.monthTitle)}}function vi(f,E){1&f&&e._UZ(0,"th")}function Fo(f,E){if(1&f&&(e.TgZ(0,"th",5),e._uU(1),e.qZA()),2&f){const b=E.index,P=e.oxw();e.xp6(1),e.hij("",P.calendar.weekdays[b]," ")}}function Ya(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",11),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.selectWeek(H))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw(2).index,P=e.oxw();e.xp6(1),e.Oqu(P.calendar.weekNumbers[b])}}function Rd(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.selectWeek(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.weekHoverHandler(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.weekHoverHandler(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw(2).index,P=e.oxw();e.xp6(1),e.Oqu(P.calendar.weekNumbers[b])}}function kd(f,E){if(1&f&&(e.TgZ(0,"td",8),e.YNc(1,Ya,2,1,"span",9),e.YNc(2,Rd,2,1,"span",10),e.qZA()),2&f){const b=e.oxw(2);e.ekj("active-week",b.isWeekHovered),e.xp6(1),e.Q6J("ngIf",b.isiOS),e.xp6(1),e.Q6J("ngIf",!b.isiOS)}}function tc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.s9C("tooltip",b.tooltipText),e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 3")}}function Iu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",18),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 2")}}function Jh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 1")}}function qh(f,E){if(1&f&&(e.TgZ(0,"td",13),e.YNc(1,tc,2,3,"span",14),e.YNc(2,Iu,2,2,"span",15),e.YNc(3,Jh,2,2,"span",16),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!b.isiOS&&b.isShowTooltip),e.xp6(1),e.Q6J("ngIf",!b.isiOS&&!b.isShowTooltip),e.xp6(1),e.Q6J("ngIf",b.isiOS)}}function Xd(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,kd,3,4,"td",6),e.YNc(2,qh,4,3,"td",7),e.qZA()),2&f){const b=E.$implicit,P=e.oxw();e.xp6(1),e.Q6J("ngIf",P.options&&P.options.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",b.days)}}function Ru(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.viewMonth(Me))})("mouseenter",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverMonth(Me,!0))})("mouseleave",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverMonth(Me,!1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&f){const b=E.$implicit;e.ekj("disabled",b.isDisabled)("is-highlighted",b.isHovered),e.xp6(1),e.ekj("selected",b.isSelected),e.xp6(1),e.Oqu(b.label)}}function ru(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,Ru,3,7,"td",3),e.qZA()),2&f){const b=E.$implicit;e.xp6(1),e.Q6J("ngForOf",b)}}function ou(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.viewYear(Me))})("mouseenter",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverYear(Me,!0))})("mouseleave",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverYear(Me,!1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&f){const b=E.$implicit;e.ekj("disabled",b.isDisabled)("is-highlighted",b.isHovered),e.xp6(1),e.ekj("selected",b.isSelected),e.xp6(1),e.Oqu(b.label)}}function su(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,ou,3,7,"td",3),e.qZA()),2&f){const b=E.$implicit;e.xp6(1),e.Q6J("ngForOf",b)}}const Ir=["startTP"];function ha(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-days-calendar-view",11),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.dayHoverHandler(H))})("onHoverWeek",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.weekHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.daySelectHandler(H))}),e.ALo(1,"async"),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)("isDisabled",P.isDatePickerDisabled)("options",e.lcZ(1,5,P.options$))}}function il(f,E){if(1&f&&e._UZ(0,"timepicker",13,16),2&f){const b=e.oxw(4);e.Q6J("disabled",b.isDatePickerDisabled)}}function Fs(f,E){if(1&f&&(e.TgZ(0,"div",12),e._UZ(1,"timepicker",13,14),e.YNc(3,il,2,1,"timepicker",15),e.qZA()),2&f){const b=e.oxw(3);e.xp6(1),e.Q6J("disabled",b.isDatePickerDisabled),e.xp6(2),e.Q6J("ngIf",b.isRangePicker)}}function ds(f,E){if(1&f&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,ha,2,7,"bs-days-calendar-view",9),e.ALo(3,"async"),e.qZA(),e.YNc(4,Fs,4,2,"div",10),e.BQk()),2&f){const b=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,b.daysCalendar$)),e.xp6(2),e.Q6J("ngIf",b.withTimepicker)}}function fa(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-month-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function Qh(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,fa,1,3,"bs-month-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.monthsCalendar))}}function Xh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-years-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function ef(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,Xh,1,3,"bs-years-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.yearsCalendar))}}function gh(f,E){1&f&&(e.TgZ(0,"div",19)(1,"button",20),e._uU(2,"Apply"),e.qZA(),e.TgZ(3,"button",21),e._uU(4,"Cancel"),e.qZA()())}function au(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",24)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.setToday())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("today-left","left"===b.todayPos)("today-right","right"===b.todayPos)("today-center","center"===b.todayPos),e.xp6(2),e.Oqu(b.todayBtnLbl)}}function vh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",26)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.clearDate())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("clear-left","left"===b.clearPos)("clear-right","right"===b.clearPos)("clear-center","center"===b.clearPos),e.xp6(2),e.Oqu(b.clearBtnLbl)}}function tf(f,E){if(1&f&&(e.TgZ(0,"div",19),e.YNc(1,au,3,7,"div",22),e.YNc(2,vh,3,7,"div",23),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",b.showTodayBtn),e.xp6(1),e.Q6J("ngIf",b.showClearBtn)}}function nf(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",27)(1,"bs-custom-date-view",28),e.NdJ("onSelect",function(H){e.CHM(b);const Me=e.oxw(2);return e.KtG(Me.setRangeOnCalendar(H))}),e.qZA()()}if(2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("selectedRange",b.chosenRange)("ranges",b.customRanges)("customRangeLabel",b.customRangeBtnLbl)}}function eo(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.NdJ("@datepickerAnimation.done",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.positionServiceEnable())}),e.TgZ(2,"div",3),e.ALo(3,"async"),e.YNc(4,ds,5,4,"ng-container",4),e.YNc(5,Qh,3,3,"div",5),e.YNc(6,ef,3,3,"div",5),e.qZA(),e.YNc(7,gh,5,0,"div",6),e.YNc(8,tf,3,2,"div",6),e.qZA(),e.YNc(9,nf,2,3,"div",7),e.qZA()}if(2&f){const b=e.oxw();e.Q6J("ngClass",b.containerClass),e.xp6(1),e.Q6J("@datepickerAnimation",b.animationState),e.xp6(1),e.Q6J("ngSwitch",e.lcZ(3,9,b.viewMode)),e.xp6(2),e.Q6J("ngSwitchCase","day"),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",b.showTodayBtn||b.showClearBtn),e.xp6(1),e.Q6J("ngIf",b.customRanges&&b.customRanges.length>0)}}const Zf=["endTP"];function qu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-days-calendar-view",11),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.dayHoverHandler(H))})("onHoverWeek",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.weekHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.daySelectHandler(H))}),e.ALo(1,"async"),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)("isDisabled",P.isDatePickerDisabled)("options",e.lcZ(1,5,P.options$))}}function zf(f,E){if(1&f&&e._UZ(0,"timepicker",13,16),2&f){const b=e.oxw(4);e.Q6J("disabled",b.isDatePickerDisabled)}}function cu(f,E){if(1&f&&(e.TgZ(0,"div",12),e._UZ(1,"timepicker",13,14),e.YNc(3,zf,2,1,"timepicker",15),e.qZA()),2&f){const b=e.oxw(3);e.xp6(1),e.Q6J("disabled",b.isDatePickerDisabled),e.xp6(2),e.Q6J("ngIf",b.isRangePicker)}}function xh(f,E){if(1&f&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,qu,2,7,"bs-days-calendar-view",9),e.ALo(3,"async"),e.qZA(),e.YNc(4,cu,4,2,"div",10),e.BQk()),2&f){const b=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,b.daysCalendar$)),e.xp6(2),e.Q6J("ngIf",b.withTimepicker)}}function Mh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-month-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function si(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,Mh,1,3,"bs-month-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.monthsCalendar))}}function du(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-years-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function Hl(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,du,1,3,"bs-years-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.yearsCalendar))}}function af(f,E){1&f&&(e.TgZ(0,"div",19)(1,"button",20),e._uU(2,"Apply"),e.qZA(),e.TgZ(3,"button",21),e._uU(4,"Cancel"),e.qZA()())}function nc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",24)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.setToday())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("today-left","left"===b.todayPos)("today-right","right"===b.todayPos)("today-center","center"===b.todayPos),e.xp6(2),e.Oqu(b.todayBtnLbl)}}function Ch(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",26)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.clearDate())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("clear-left","left"===b.clearPos)("clear-right","right"===b.clearPos)("clear-center","center"===b.clearPos),e.xp6(2),e.Oqu(b.clearBtnLbl)}}function lf(f,E){if(1&f&&(e.TgZ(0,"div",19),e.YNc(1,nc,3,7,"div",22),e.YNc(2,Ch,3,7,"div",23),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",b.showTodayBtn),e.xp6(1),e.Q6J("ngIf",b.showClearBtn)}}function uu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",27)(1,"bs-custom-date-view",28),e.NdJ("onSelect",function(H){e.CHM(b);const Me=e.oxw(2);return e.KtG(Me.setRangeOnCalendar(H))}),e.qZA()()}if(2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("selectedRange",b.chosenRange)("ranges",b.customRanges)("customRangeLabel",b.customRangeBtnLbl)}}function ku(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.NdJ("@datepickerAnimation.done",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.positionServiceEnable())}),e.TgZ(2,"div",3),e.ALo(3,"async"),e.YNc(4,xh,5,4,"ng-container",4),e.YNc(5,si,3,3,"div",5),e.YNc(6,Hl,3,3,"div",5),e.qZA(),e.YNc(7,af,5,0,"div",6),e.YNc(8,lf,3,2,"div",6),e.qZA(),e.YNc(9,uu,2,3,"div",7),e.qZA()}if(2&f){const b=e.oxw();e.Q6J("ngClass",b.containerClass),e.xp6(1),e.Q6J("@datepickerAnimation",b.animationState),e.xp6(1),e.Q6J("ngSwitch",e.lcZ(3,9,b.viewMode)),e.xp6(2),e.Q6J("ngSwitchCase","day"),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",b.showTodayBtn||b.showClearBtn),e.xp6(1),e.Q6J("ngIf",b.customRanges&&b.customRanges.length>0)}}let ol=(()=>{class f{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})();const Pd="220ms cubic-bezier(0, 0, 0.2, 1)",Ul=(0,Fa.X$)("datepickerAnimation",[(0,Fa.SB)("animated-down",(0,Fa.oB)({height:"*",overflow:"hidden"})),(0,Fa.eR)("* => animated-down",[(0,Fa.oB)({height:0,overflow:"hidden"}),(0,Fa.jt)(Pd)]),(0,Fa.SB)("animated-up",(0,Fa.oB)({height:"*",overflow:"hidden"})),(0,Fa.eR)("* => animated-up",[(0,Fa.oB)({height:"*",overflow:"hidden"}),(0,Fa.jt)(Pd)]),(0,Fa.eR)("* => unanimated",(0,Fa.jt)("0s"))]);class Jc{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new Od.w0,this.selectedTimeSub=new Od.w0}set minDate(E){this._effects?.setMinDate(E)}set maxDate(E){this._effects?.setMaxDate(E)}set daysDisabled(E){this._effects?.setDaysDisabled(E)}set datesDisabled(E){this._effects?.setDatesDisabled(E)}set datesEnabled(E){this._effects?.setDatesEnabled(E)}set isDisabled(E){this._effects?.setDisabled(E)}set dateCustomClasses(E){this._effects?.setDateCustomClasses(E)}set dateTooltipTexts(E){this._effects?.setDateTooltipTexts(E)}set daysCalendar$(E){this._daysCalendar$=E,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(b=>{this.multipleCalendars=!!b&&b.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(E){}navigateTo(E){}dayHoverHandler(E){}weekHoverHandler(E){}monthHoverHandler(E){}yearHoverHandler(E){}timeSelectHandler(E,b){}daySelectHandler(E){}monthSelectHandler(E){}yearSelectHandler(E){}setRangeOnCalendar(E){}setToday(){}clearDate(){}_stopPropagation(E){E.stopPropagation()}}let lo=(()=>{class f{static#e=this.CALCULATE="[datepicker] calculate dates matrix";static#t=this.FORMAT="[datepicker] format datepicker values";static#n=this.FLAG="[datepicker] set flags";static#i=this.SELECT="[datepicker] select date";static#r=this.NAVIGATE_OFFSET="[datepicker] shift view date";static#o=this.NAVIGATE_TO="[datepicker] change view date";static#s=this.SET_OPTIONS="[datepicker] update render options";static#a=this.HOVER="[datepicker] hover date";static#l=this.CHANGE_VIEWMODE="[datepicker] switch view mode";static#c=this.SET_MIN_DATE="[datepicker] set min date";static#d=this.SET_MAX_DATE="[datepicker] set max date";static#u=this.SET_DAYSDISABLED="[datepicker] set days disabled";static#h=this.SET_DATESDISABLED="[datepicker] set dates disabled";static#f=this.SET_DATESENABLED="[datepicker] set dates enabled";static#p=this.SET_IS_DISABLED="[datepicker] set is disabled";static#_=this.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes";static#m=this.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts";static#g=this.SET_LOCALE="[datepicker] set datepicker locale";static#v=this.SELECT_TIME="[datepicker] select time";static#b=this.SELECT_RANGE="[daterangepicker] select dates range";calculate(){return{type:f.CALCULATE}}format(){return{type:f.FORMAT}}flag(){return{type:f.FLAG}}select(b){return{type:f.SELECT,payload:b}}selectTime(b,P){return{type:f.SELECT_TIME,payload:{date:b,index:P}}}changeViewMode(b){return{type:f.CHANGE_VIEWMODE,payload:b}}navigateTo(b){return{type:f.NAVIGATE_TO,payload:b}}navigateStep(b){return{type:f.NAVIGATE_OFFSET,payload:b}}setOptions(b){return{type:f.SET_OPTIONS,payload:b}}selectRange(b){return{type:f.SELECT_RANGE,payload:b}}hoverDay(b){return{type:f.HOVER,payload:b.isHovered?b.cell.date:null}}minDate(b){return{type:f.SET_MIN_DATE,payload:b}}maxDate(b){return{type:f.SET_MAX_DATE,payload:b}}daysDisabled(b){return{type:f.SET_DAYSDISABLED,payload:b}}datesDisabled(b){return{type:f.SET_DATESDISABLED,payload:b}}datesEnabled(b){return{type:f.SET_DATESENABLED,payload:b}}isDisabled(b){return{type:f.SET_IS_DISABLED,payload:b}}setDateCustomClasses(b){return{type:f.SET_DATE_CUSTOM_CLASSES,payload:b}}setDateTooltipTexts(b){return{type:f.SET_DATE_TOOLTIP_TEXTS,payload:b}}setLocale(b){return{type:f.SET_LOCALE,payload:b}}static#y=this.\u0275fac=function(P){return new(P||f)};static#w=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),fu=(()=>{class f{constructor(){this._defaultLocale="en",this._locale=new ls.X(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(b){b!==this.currentLocale&&this._locale.next(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),ud=(()=>{class f{constructor(b,P){this._actions=b,this._localeService=P,this._subs=[]}init(b){return this._store=b,this}setValue(b){this._store?.dispatch(this._actions.select(b))}setRangeValue(b){this._store?.dispatch(this._actions.selectRange(b))}setMinDate(b){return this._store?.dispatch(this._actions.minDate(b)),this}setMaxDate(b){return this._store?.dispatch(this._actions.maxDate(b)),this}setDaysDisabled(b){return this._store?.dispatch(this._actions.daysDisabled(b)),this}setDatesDisabled(b){return this._store?.dispatch(this._actions.datesDisabled(b)),this}setDatesEnabled(b){return this._store?.dispatch(this._actions.datesEnabled(b)),this}setDisabled(b){return this._store?.dispatch(this._actions.isDisabled(b)),this}setDateCustomClasses(b){return this._store?.dispatch(this._actions.setDateCustomClasses(b)),this}setDateTooltipTexts(b){return this._store?.dispatch(this._actions.setDateTooltipTexts(b)),this}setOptions(b){const P=Object.assign({locale:this._localeService.currentLocale},b);return this._store?.dispatch(this._actions.setOptions(P)),this}setBindings(b){return this._store?(b.selectedTime=this._store.select(P=>P.selectedTime).pipe((0,l.h)(P=>!!P)),b.daysCalendar$=this._store.select(P=>P.flaggedMonths).pipe((0,l.h)(P=>!!P)),b.monthsCalendar=this._store.select(P=>P.flaggedMonthsCalendar).pipe((0,l.h)(P=>!!P)),b.yearsCalendar=this._store.select(P=>P.yearsCalendarFlagged).pipe((0,l.h)(P=>!!P)),b.viewMode=this._store.select(P=>P.view?.mode),b.options$=(0,Ou.a)([this._store.select(P=>P.showWeekNumbers),this._store.select(P=>P.displayMonths)]).pipe((0,D.U)(P=>({showWeekNumbers:P[0],displayMonths:P[1]}))),this):this}setEventHandlers(b){return b.setViewMode=P=>{this._store?.dispatch(this._actions.changeViewMode(P))},b.navigateTo=P=>{this._store?.dispatch(this._actions.navigateStep(P.step))},b.dayHoverHandler=P=>{const H=P.cell;H.isOtherMonth||H.isDisabled||(this._store?.dispatch(this._actions.hoverDay(P)),H.isHovered=P.isHovered)},b.monthHoverHandler=P=>{P.cell.isHovered=P.isHovered},b.yearHoverHandler=P=>{P.cell.isHovered=P.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(b=>b.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(b=>b.monthsModel).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(b=>b.formattedMonths).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.selectedDate).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.selectedRange).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.yearsCalendarModel).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.hoveredDate).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.dateCustomClasses).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.dateTooltipTexts).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(b=>this._store?.dispatch(this._actions.setLocale(b)))),this):this}destroy(){for(const b of this._subs)b.unsubscribe()}static#e=this.\u0275fac=function(P){return new(P||f)(e.LFG(lo),e.LFG(fu))};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const Eh={date:new Date,mode:"day"},th=Object.assign(new ol,{locale:"en",view:Eh,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function eu(f,E,b){const P=E&&K(pr(f,"month"),E,"day"),H=b&&ro(bo(f,"month"),b,"day");return P||H||!1}function Dc(f,E,b){const P=E&&K(pr(f,"year"),E,"day"),H=b&&ro(bo(f,"year"),b,"day");return P||H||!1}function Nd(f,E,b){return!!(E&&ce(E)&&E.length)&&(b&&"year"===b&&!E[0].getDate()?E.some(P=>Ne(f,P,"year")):E.some(P=>Ne(f,P,"date")))}function Nu(f,E,b){return!!(E&&ce(E)&&E.length)&&!E.some(P=>Ne(f,P,b||"date"))}function Fu(f,E=0){const b=f&&f.yearsCalendarModel&&f.yearsCalendarModel[E];return b?.years[0]&&b.years[0][0]&&b.years[0][0].date}function Yu(f,E){return!f||!E||!f.length&&!f[0].value||f.forEach(b=>(!b||!b.value||b.value instanceof Date||!(b.value instanceof Array&&b.value.length)||(b.value=ih(b.value,E)),f)),f}function pu(f,E){return!f||!E||f instanceof Array&&!f.length||f instanceof Date?f:ih(f,E)}function ih(f,E){return f instanceof Array?f.map(P=>P&&(ro(P,E,"date")&&(P=E),P)):f}function _u(f){return f&&rh(f)}function Ah(f){return f?.length&&f.map(E=>E&&rh(E)),f}function rh(f){const E=new Date;return f.setMilliseconds(E.getMilliseconds()),f.setSeconds(E.getSeconds()),f.setMinutes(E.getMinutes()),f.setHours(E.getHours()),f}function Bu(f,E){let b=f.initialDate;const P=new Array(f.height);for(let H=0;HEt),month:b}}function Fd(f,E,b){return f.map(P=>P[0]?ts(P[0],E,b):"")}function us(f){const E=sr(f),b=E.weekdaysShort(),P=E.firstDayOfWeek();return[...b.slice(P),...b.slice(0,P)]}function Yd(f,E){return!E||f>=E}const hd=4,_f=3,Ip={month:1};function Oh(f,E){const b=bo(f,"year");return{months:Bu({width:_f,height:hd,initialDate:b,shift:Ip},Me=>({date:Me,label:ts(Me,E.monthLabel,E.locale)})),monthTitle:"",yearTitle:ts(f,E.yearTitle,E.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const ah=4,Bd=4,tu=ah*Bd,lh=-1*(Math.floor(tu/2)-1),mf={year:1};function Rh(f,E,b){const P=function gf(f,E){return E&&f.getFullYear()>=E.getFullYear()&&f.getFullYear()({date:yn,label:ts(yn,E.yearLabel,E.locale)})),Et=function gu(f,E){return`${ts(f[0][0].date,E.yearTitle,E.locale)} - ${ts(f[ah-1][Bd-1].date,E.yearTitle,E.locale)}`}(Me,E);return{years:Me,monthTitle:"",yearTitle:Et,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function vf(f,E){!f||!isNaN(f.getTime())||(f.setHours(E.getHours()),f.setMinutes(E.getMinutes()),f.setSeconds(E.getSeconds()),f.setMilliseconds(E.getMilliseconds()))}function kh(f=th,E){switch(E.type){case lo.CALCULATE:return function Rp(f){if(!f.view)return f;let E;E=f.displayOneMonthRange&&t(f.view.date,f.minDate,f.maxDate)?1:f.displayMonths||1;let b=f.view.date;if("day"===f.view.mode&&f.monthViewOptions){f.showPreviousMonth&&f.selectedRange&&0===f.selectedRange.length&&(b=En(b,{month:-1})),f.monthViewOptions.firstDayOfWeek=sr(f.locale).firstDayOfWeek();let P=new Array(E);for(let H=0;Hf.monthViewOptions?oh(Me.month,f.monthViewOptions):null).filter(Me=>null!==Me))}return Object.assign({},f,{monthsModel:P})}if("month"===f.view.mode){const P=new Array(E);for(let H=0;Hfunction sh(f,E,b){return{month:f.month,monthTitle:ts(f.month,E.monthTitle,E.locale),yearTitle:ts(f.month,E.yearTitle,E.locale),weekNumbers:Fd(f.daysMatrix,E.weekNumbers,E.locale),weekdays:us(E.locale),weeks:f.daysMatrix.map((P,H)=>({days:P.map((Me,Et)=>({date:Me,label:ts(Me,E.dayLabel,E.locale),monthIndex:b,weekIndex:H,dayIndex:Et}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(H,vu(f),Me));return Object.assign({},f,{formattedMonths:P})}const E=f.displayMonths||1;let b=f.view.date;if("month"===f.view.mode){const P=new Array(E);for(let H=0;Hfunction Yo(f,E){return f.weeks.forEach(b=>{b.days.forEach((P,H)=>{const Me=!Ce(P.date,f.month),Et=!Me&&ae(P.date,E.hoveredDate),yn=!Me&&E.selectedRange&&ae(P.date,E.selectedRange[0]),Gn=!Me&&E.selectedRange&&ae(P.date,E.selectedRange[1]),Rr=!Me&&ae(P.date,E.selectedDate)||yn||Gn,Ts=!Me&&E.selectedRange&&function mu(f,E,b){return!!(f&&E&&E[0])&&(E[1]?f>E[0]&&f<=E[1]:!!b&&f>E[0]&&f<=b)}(P.date,E.selectedRange,E.hoveredDate),pa=E.isDisabled||K(P.date,E.minDate,"day")||ro(P.date,E.maxDate,"day")||function Ue(f,E){return!(typeof E>"u"||!E||!E.length)&&E.some(b=>b===f.getDay())}(P.date,E.daysDisabled)||Nd(P.date,E.datesDisabled)||Nu(P.date,E.datesEnabled),Lh=!Me&&ae(P.date,new Date),yf=E.dateCustomClasses&&E.dateCustomClasses.map(Qc=>ae(P.date,Qc.date)?Qc.classes:[]).reduce((Qc,ch)=>Qc.concat(ch),[]).join(" ")||"",wf=E.dateTooltipTexts&&E.dateTooltipTexts.map(Qc=>ae(P.date,Qc.date)?Qc.tooltipText:"").reduce((Qc,ch)=>(Qc.push(ch),Qc),[]).join(" ")||"",Rc=Object.assign({},P,{isOtherMonth:Me,isHovered:Et,isSelected:Rr,isSelectionStart:yn,isSelectionEnd:Gn,isInRange:Ts,isDisabled:pa,isToday:Lh,customClasses:yf,tooltipText:wf});(P.isOtherMonth!==Rc.isOtherMonth||P.isHovered!==Rc.isHovered||P.isSelected!==Rc.isSelected||P.isSelectionStart!==Rc.isSelectionStart||P.isSelectionEnd!==Rc.isSelectionEnd||P.isDisabled!==Rc.isDisabled||P.isInRange!==Rc.isInRange||P.customClasses!==Rc.customClasses||P.tooltipText!==Rc.tooltipText)&&(b.days[H]=Rc)})}),f.hideLeftArrow=E.isDisabled||!!E.monthIndex&&E.monthIndex>0&&E.monthIndex!==E.displayMonths,f.hideRightArrow=E.isDisabled||(!!E.monthIndex||0===E.monthIndex)&&!!E.displayMonths&&E.monthIndexfunction Ih(f,E){return f.months.forEach((b,P)=>{b.forEach((H,Me)=>{let Et;const yn=Ce(H.date,E.hoveredMonth),Gn=E.isDisabled||Nd(H.date,E.datesDisabled)||Nu(H.date,E.datesEnabled,"month")||eu(H.date,E.minDate,E.maxDate);!E.selectedDate&&E.selectedRange?(Et=Ce(H.date,E.selectedRange[0]),Et||(Et=Ce(H.date,E.selectedRange[1]))):Et=Ce(H.date,E.selectedDate);const Rr=Object.assign(H,{isHovered:yn,isDisabled:Gn,isSelected:Et});(H.isHovered!==Rr.isHovered||H.isDisabled!==Rr.isDisabled||H.isSelected!==Rr.isSelected)&&(f.months[P][Me]=Rr)})}),f.hideLeftArrow=!!E.monthIndex&&E.monthIndex>0&&E.monthIndex!==E.displayMonths,f.hideRightArrow=(!!E.monthIndex||0===E.monthIndex)&&(!!E.displayMonths||0===E.displayMonths)&&E.monthIndexfunction fd(f,E){f.years.forEach((H,Me)=>{H.forEach((Et,yn)=>{let Gn;const Rr=J(Et.date,E.hoveredYear),Ts=E.isDisabled||Nd(Et.date,E.datesDisabled,"year")||Nu(Et.date,E.datesEnabled,"year")||Dc(Et.date,E.minDate,E.maxDate);!E.selectedDate&&E.selectedRange?(Gn=J(Et.date,E.selectedRange[0]),Gn||(Gn=J(Et.date,E.selectedRange[1]))):Gn=J(Et.date,E.selectedDate);const pa=Object.assign(Et,{isHovered:Rr,isDisabled:Ts,isSelected:Gn});(Et.isHovered!==pa.isHovered||Et.isDisabled!==pa.isDisabled||Et.isSelected!==pa.isSelected)&&(f.years[Me][yn]=pa)})}),f.hideLeftArrow=!!E.yearIndex&&E.yearIndex>0&&E.yearIndex!==E.displayMonths,f.hideRightArrow=!!E.yearIndex&&!!E.displayMonths&&E.yearIndexEt)),b.value instanceof Date&&(b.selectedDate=b.value,b.selectedTime=[b.value])),Object.assign({},f,b)}case lo.SELECT_RANGE:{if(!f.view)return f;const b={selectedRange:E.payload,view:f.view};b.selectedRange?.forEach((Et,yn)=>{if(Array.isArray(f.selectedTime)){const Gn=f.selectedTime[yn];Gn&&vf(Et,Gn)}});const P=f.view.mode,Me=o(E.payload&&E.payload[0]||f.view.date,f.minDate,f.maxDate);return b.view={mode:P,date:Me},Object.assign({},f,b)}case lo.SET_MIN_DATE:return Object.assign({},f,{minDate:E.payload});case lo.SET_MAX_DATE:return Object.assign({},f,{maxDate:E.payload});case lo.SET_IS_DISABLED:return Object.assign({},f,{isDisabled:E.payload});case lo.SET_DATE_CUSTOM_CLASSES:return Object.assign({},f,{dateCustomClasses:E.payload});case lo.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},f,{dateTooltipTexts:E.payload});default:return f}}function vu(f){return{locale:f.locale,monthTitle:f.monthTitle,yearTitle:f.yearTitle,dayLabel:f.dayLabel,monthLabel:f.monthLabel,yearLabel:f.yearLabel,weekNumbers:f.weekNumbers}}function o(f,E,b){const P=Array.isArray(f)?f[0]:f;return E&&ro(E,P,"day")?E:b&&K(b,P,"day")?b:P}function t(f,E,b){return!(!b||!Ne(b,f,"day"))||E&&b&&E.getMonth()===b.getMonth()}let i=(()=>{class f extends zo{constructor(){const b=new ls.X({type:"[datepicker] dispatcher init"});super(b,kh,new Vc(th,b,kh))}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),s=(()=>{class f{constructor(){this.onSelect=new e.vpe}selectFromRanges(b){this.onSelect.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(P,H){1&P&&(e.TgZ(0,"div",0),e.YNc(1,Xe,2,3,"button",1),e.qZA()),2&P&&(e.xp6(1),e.Q6J("ngForOf",H.ranges))},dependencies:[zi.sg],encapsulation:2,changeDetection:0})}return f})();var c=function(f){return f[f.UP=0]="UP",f[f.DOWN=1]="DOWN",f}(c||{});let et,h=(()=>{class f{static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(P,H){1&P&&(e.TgZ(0,"div",0)(1,"span"),e._uU(2),e.qZA()()),2&P&&(e.xp6(2),e.Oqu(H.title))},encapsulation:2})}return f})(),v=(()=>{class f{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(P,H){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e._uU(3,"-"),e.qZA(),e._UZ(4,"input",3),e.TgZ(5,"button",4),e._uU(6,"+"),e.qZA()(),e.TgZ(7,"div",1)(8,"button",2),e._uU(9,"-"),e.qZA(),e._UZ(10,"input",3),e.TgZ(11,"button",4),e._uU(12,"+"),e.qZA()(),e.TgZ(13,"button",5),e._uU(14),e._UZ(15,"img",6),e.qZA()()),2&P&&(e.xp6(4),e.Q6J("value",H.hours),e.xp6(6),e.Q6J("value",H.minutes),e.xp6(4),e.hij("",H.ampm," "))},encapsulation:2})}return f})(),M=(()=>{class f{static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-calendar-layout"]],ngContentSelectors:ye,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(P,H){1&P&&(e.F$t(R),e.YNc(0,g,1,0,"bs-current-date",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.TgZ(3,"div",2),e.Hsn(4,1),e.qZA(),e.YNc(5,L,1,0,"bs-timepicker",3)),2&P&&(e.Q6J("ngIf",!1),e.xp6(5),e.Q6J("ngIf",!1))},dependencies:[zi.O5,h,v],encapsulation:2})}return f})(),O=(()=>{class f{constructor(b,P,H){this._config=b,this._elRef=P,this._renderer=H,this.day={date:new Date,label:""}}ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day?.customClasses&&this.day?.customClasses.split(" ").filter(b=>b).forEach(b=>{this._renderer.addClass(this._elRef.nativeElement,b)})}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol),e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(P,H){2&P&&e.ekj("disabled",H.day.isDisabled)("is-highlighted",H.day.isHovered)("is-other-month",H.day.isOtherMonth)("is-active-other-month",H.day.isOtherMonthHovered)("in-range",H.day.isInRange)("select-start",H.day.isSelectionStart)("select-end",H.day.isSelectionEnd)("selected",H.day.isSelected)},inputs:{day:"day"},attrs:Dt,decls:1,vars:1,template:function(P,H){1&P&&e._uU(0),2&P&&e.Oqu(H.day&&H.day.label||"")},encapsulation:2,changeDetection:0})}return f})(),N=(()=>{class f{constructor(){this.isDisabled=!1,this.onNavigate=new e.vpe,this.onViewMode=new e.vpe}navTo(b){this.onNavigate.emit(b?c.DOWN:c.UP)}view(b){this.isDisabled||this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"disabled","click"],[4,"ngIf"],["type","button",1,"current",3,"disabled","click"],["type","button",1,"next",3,"disabled","click"]],template:function(P,H){1&P&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return H.navTo(!0)}),e.TgZ(1,"span"),e._uU(2,"\u2039"),e.qZA()(),e.YNc(3,Mn,5,2,"ng-container",1),e._uU(4," \u200b "),e.TgZ(5,"button",2),e.NdJ("click",function(){return H.view("year")}),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e._uU(8," \u200b "),e.TgZ(9,"button",3),e.NdJ("click",function(){return H.navTo(!1)}),e.TgZ(10,"span"),e._uU(11,"\u203a"),e.qZA()()),2&P&&(e.Udp("visibility",H.calendar.hideLeftArrow?"hidden":"visible"),e.Q6J("disabled",H.calendar.disableLeftArrow),e.xp6(3),e.Q6J("ngIf",H.calendar&&H.calendar.monthTitle),e.xp6(2),e.Q6J("disabled",H.isDisabled),e.xp6(2),e.Oqu(H.calendar.yearTitle),e.xp6(2),e.Udp("visibility",H.calendar.hideRightArrow?"hidden":"visible"),e.Q6J("disabled",H.calendar.disableRightArrow))},dependencies:[zi.O5],encapsulation:2,changeDetection:0})}return f})(),$=(()=>{class f{constructor(b){this._config=b,this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe,this.onHoverWeek=new e.vpe,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(b){this.onNavigate.emit({step:{month:c.DOWN===b?-1:1}})}changeViewMode(b){this.onViewMode.emit(b)}selectDay(b){this.onSelect.emit(b)}selectWeek(b){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===b.days.length)return;if(this._config.selectWeek&&b.days[0]&&!b.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(b.days[0]);const P=b.days.find(H=>(this._config.selectFromOtherMonth||!H.isOtherMonth)&&!H.isDisabled);if(this.onSelect.emit(P),this._config.selectWeekDateRange){const Me=b.days.slice(0).reverse().find(Et=>(this._config.selectFromOtherMonth||!Et.isOtherMonth)&&!Et.isDisabled);this.onSelect.emit(Me)}}weekHoverHandler(b,P){(this._config.selectWeek||this._config.selectWeekDateRange)&&b.days.find(Me=>(this._config.selectFromOtherMonth||!Me.isOtherMonth)&&!Me.isDisabled)&&(b.isHovered=P,this.isWeekHovered=P,this.onHoverWeek.emit(b))}hoverDay(b,P){this._config.selectFromOtherMonth&&b.isOtherMonth&&(b.isOtherMonthHovered=P),this._config.dateTooltipTexts&&(b.tooltipText="",this._config.dateTooltipTexts.forEach(H=>{ae(H.date,b.date)&&(b.tooltipText=H.tooltipText)})),this.onHover.emit({cell:b,isHovered:P})}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"calendar","isDisabled","onNavigate","onViewMode"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"thead")(4,"tr"),e.YNc(5,vi,1,0,"th",2),e.YNc(6,Fo,2,1,"th",3),e.qZA()(),e.TgZ(7,"tbody"),e.YNc(8,Xd,3,2,"tr",4),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar)("isDisabled",!!H.isDisabled),e.xp6(4),e.Q6J("ngIf",H.options&&H.options.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",H.calendar.weekdays),e.xp6(2),e.Q6J("ngForOf",H.calendar.weeks))},dependencies:[zi.sg,zi.O5,Id.i9,M,O,N],encapsulation:2})}return f})(),q=(()=>{class f{constructor(){this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe}navigateTo(b){this.onNavigate.emit({step:{year:c.DOWN===b?-1:1}})}viewMonth(b){this.onSelect.emit(b)}hoverMonth(b,P){this.onHover.emit({cell:b,isHovered:P})}changeViewMode(b){this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"tbody"),e.YNc(4,ru,2,1,"tr",2),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar),e.xp6(3),e.Q6J("ngForOf",null==H.calendar?null:H.calendar.months))},dependencies:[zi.sg,M,N],encapsulation:2})}return f})(),de=(()=>{class f{constructor(){this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe}navigateTo(b){this.onNavigate.emit({step:{year:(c.DOWN===b?-1:1)*tu}})}viewYear(b){this.onSelect.emit(b)}hoverYear(b,P){this.onHover.emit({cell:b,isHovered:P})}changeViewMode(b){this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"tbody"),e.YNc(4,su,2,1,"tr",2),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar),e.xp6(3),e.Q6J("ngForOf",null==H.calendar?null:H.calendar.years))},dependencies:[zi.sg,M,N],encapsulation:2})}return f})(),we=(()=>{class f extends Jc{set value(b){this._effects?.setValue(b)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(b,P,H,Me,Et,yn,Gn){super(),this._config=P,this._store=H,this._element=Me,this._actions=Et,this._positionService=Gn,this.valueChange=new e.vpe,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=yn,b.setStyle(Me.nativeElement,"display","block"),b.setStyle(Me.nativeElement,"position","absolute")}ngOnInit(){let b;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,I.q)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(P=>P.selectedDate).subscribe(P=>{b=P,this.valueChange.emit(P)})),this._subs.push(this._store.select(P=>P.selectedTime).subscribe(P=>{!P[0]||!(P[0]instanceof Date)||P[0]===b||this.valueChange.emit(P[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(b=>{Array.isArray(b)&&b.length>=1&&this.startTimepicker?.writeValue(b[0])})),this.startTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(b,P){this._store.dispatch(this._actions.selectTime(b,P))}daySelectHandler(b){!b||(this.isOtherMonthsActive?b.isDisabled:b.isOtherMonth||b.isDisabled)||this._store.dispatch(this._actions.select(b.date))}monthSelectHandler(b){!b||b.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:Ot(b.date),year:rn(b.date)},viewMode:"day"}))}yearSelectHandler(b){!b||b.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:rn(b.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const b of this._subs)b.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(e.Qsj),e.Y36(ol),e.Y36(i),e.Y36(e.SBq),e.Y36(lo),e.Y36(ud),e.Y36(Zs.sA))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-datepicker-container"]],viewQuery:function(P,H){if(1&P&&e.Gf(Ir,5),2&P){let Me;e.iGM(Me=e.CRH())&&(H.startTimepicker=Me.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(P,H){1&P&&e.NdJ("click",function(Et){return H._stopPropagation(Et)}),2&P&&e.uIk("disabled",H.isDatepickerDisabled)("readonly",H.isDatepickerReadonly)},features:[e._Bn([i,ud]),e.qOj],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(P,H){1&P&&(e.YNc(0,eo,10,11,"div",0),e.ALo(1,"async")),2&P&&e.Q6J("ngIf",e.lcZ(1,1,H.viewMode))},dependencies:[zi.mk,zi.sg,zi.O5,zi.RF,zi.n9,Yl,s,$,q,de,zi.Ov],encapsulation:2,data:{animation:[Ul]}})}return f})(),vt=(()=>{class f{get readonlyValue(){return this.isDisabled?"":null}constructor(b,P,H,Me,Et){this._config=b,this._elementRef=P,this._renderer=H,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Tc.x,this.isDisabled=!1,this.bsValueChange=new e.vpe,this._subs=[],this._dateInputFormat$=new Tc.x,Object.assign(this,this._config),this._datepicker=Et.createLoader(P,Me,H),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new ls.X(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(b){this.isOpen$.next(b)}set bsValue(b){this._bsValue&&b&&this._bsValue.getTime()===b.getTime()||(!this._bsValue&&b&&!this._config.withTimepicker&&vf(b,new Date),b&&this.bsConfig?.initCurrentTime&&(b=_u(b)),this.initPreviousValue(),this._bsValue=b,this.bsValueChange.emit(b))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){et=this._bsValue}ngOnChanges(b){b.bsConfig&&(b.bsConfig.currentValue?.initCurrentTime&&b.bsConfig.currentValue?.initCurrentTime!==b.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=_u(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(b.minDate&&(this._datepickerRef.instance.minDate=this.minDate),b.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),b.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),b.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),b.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),b.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),b.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),b.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(b=>{this._datepickerRef&&(this._datepickerRef.instance.value=b)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(b=>{this.initPreviousValue(),this.bsValue=b,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!!(et&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return et instanceof Date&&this._bsValue?.getDate()===et?.getDate()&&this._bsValue?.getMonth()===et?.getMonth()&&this._bsValue?.getFullYear()===et?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe((0,l.h)(b=>b!==this.isOpen),(0,S.R)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:ol,useValue:this._config}).attach(we).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const b of this._subs)b.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:pu(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(b=>b.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(F.oj))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(P,H){2&P&&e.uIk("readonly",H.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[e.TTD]})}return f})(),bn=(()=>{class f extends Jc{set value(b){this._effects?.setRangeValue(b)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(b,P,H,Me,Et,yn,Gn){super(),this._config=P,this._store=H,this._element=Me,this._actions=Et,this._positionService=Gn,this.valueChange=new e.vpe,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=yn,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,b.setStyle(Me.nativeElement,"display","block"),b.setStyle(Me.nativeElement,"position","absolute")}ngOnInit(){let b;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,I.q)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(P=>P.selectedRange).subscribe(P=>{b=P,this.valueChange.emit(P),this.chosenRange=P||[]})),this._subs.push(this._store.select(P=>P.selectedTime).subscribe(P=>{!P[0]||!P[1]||!(P[0]instanceof Date)||!(P[1]instanceof Date)||b&&P[0]===b[0]&&P[1]===b[1]||(this.valueChange.emit(P),this.chosenRange=P||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(b=>{Array.isArray(b)&&b.length>=2&&(this.startTimepicker?.writeValue(b[0]),this.endTimepicker?.writeValue(b[1]))})),this.startTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,0)}),this.endTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(b,P){this._store.dispatch(this._actions.selectTime(b,P))}daySelectHandler(b){!b||(this.isOtherMonthsActive?b.isDisabled:b.isOtherMonth||b.isDisabled)||this.rangesProcessing(b)}monthSelectHandler(b){if(b&&!b.isDisabled){if(b.isSelected=!0,"month"!==this._config.minMode){if(b.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:Ot(b.date),year:rn(b.date)},viewMode:"day"}))}this.rangesProcessing(b)}}yearSelectHandler(b){if(b&&!b.isDisabled){if(b.isSelected=!0,"year"!==this._config.minMode){if(b.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:rn(b.date)},viewMode:"month"}))}this.rangesProcessing(b)}}rangesProcessing(b){1===this._rangeStack.length&&(this._rangeStack=b.date>=this._rangeStack[0]?[this._rangeStack[0],b.date]:[b.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(b.date),0===this._rangeStack.length&&(this._rangeStack=[b.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(b.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const b of this._subs)b.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(b){b&&(this._rangeStack=b.value instanceof Date?[b.value]:b.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(b){let P=new Date(b);if(this._config.maxDate){const H=this._config.maxDate.getTime(),Me=b.getTime()+864e5*(this._config.maxDateRange||0);P=Me>H?new Date(this._config.maxDate):new Date(Me)}else P.setDate(b.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(P)}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(e.Qsj),e.Y36(ol),e.Y36(i),e.Y36(e.SBq),e.Y36(lo),e.Y36(ud),e.Y36(Zs.sA))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-daterangepicker-container"]],viewQuery:function(P,H){if(1&P&&(e.Gf(Ir,5),e.Gf(Zf,5)),2&P){let Me;e.iGM(Me=e.CRH())&&(H.startTimepicker=Me.first),e.iGM(Me=e.CRH())&&(H.endTimepicker=Me.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(P,H){1&P&&e.NdJ("click",function(Et){return H._stopPropagation(Et)}),2&P&&e.uIk("disabled",H.isDatepickerDisabled)("readonly",H.isDatepickerReadonly)},features:[e._Bn([i,ud]),e.qOj],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(P,H){1&P&&(e.YNc(0,ku,10,11,"div",0),e.ALo(1,"async")),2&P&&e.Q6J("ngIf",e.lcZ(1,1,H.viewMode))},dependencies:[zi.mk,zi.sg,zi.O5,zi.RF,zi.n9,Yl,s,$,q,de,zi.Ov],encapsulation:2,data:{animation:[Ul]}})}return f})();const Kn={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>Gi),multi:!0},fi={provide:Uc.Cf,useExisting:(0,e.Gpc)(()=>Gi),multi:!0};let go,Gi=(()=>{class f{constructor(b,P,H,Me,Et){this._picker=b,this._localeService=P,this._renderer=H,this._elRef=Me,this.changeDetection=Et,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Od.w0}ngOnInit(){const b=P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&b(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(b)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe((0,w.x)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(b){(13===b.keyCode||"Enter"===b.code)&&this.hide()}_setInputValue(b){const P=b?ts(b,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",P)}onChange(b){this.writeValue(b.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(b){const P=b.value;if(null==P||""===P)return null;if(re(P)){if(!se(P))return{bsDate:{invalid:P}};if(this._picker&&this._picker.minDate&&K(P,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&ro(P,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(b){this._validatorChange=b}writeValue(b){if(b){const P=this._localeService.currentLocale;if(!sr(P))throw new Error(`Locale "${P}" is not defined, please add it with "defineLocale(...)"`);this._value=ra(b,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=Al(this._value))}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(b){this._picker.isDisabled=b,b?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(vt,1),e.Y36(fu),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["input","bsDatepicker",""]],hostBindings:function(P,H){1&P&&e.NdJ("change",function(Et){return H.onChange(Et)})("keyup.esc",function(){return H.hide()})("keydown",function(Et){return H.onKeydownEvent(Et)})("blur",function(){return H.onBlur()})},features:[e._Bn([Kn,fi])]})}return f})(),Vi=(()=>{class f extends ol{constructor(){super(...arguments),this.displayMonths=2}static#e=this.\u0275fac=function(){let b;return function(H){return(b||(b=e.n5z(f)))(H||f)}}();static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})(),Dr=(()=>{class f{get isOpen(){return this._datepicker.isShown}set isOpen(b){this.isOpen$.next(b)}set bsValue(b){this._bsValue!==b&&(b&&this.bsConfig?.initCurrentTime&&(b=Ah(b)),this.initPreviousValue(),this._bsValue=b,this.bsValueChange.emit(b))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(b,P,H,Me,Et){this._config=b,this._elementRef=P,this._renderer=H,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Tc.x,this.isDisabled=!1,this.bsValueChange=new e.vpe,this._subs=[],this._rangeInputFormat$=new Tc.x,this._datepicker=Et.createLoader(P,Me,H),Object.assign(this,b),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new ls.X(this.isOpen)}ngOnInit(){this.isDestroy$=new Tc.x,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(b){b.bsConfig&&(b.bsConfig.currentValue?.initCurrentTime&&b.bsConfig.currentValue?.initCurrentTime!==b.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Ah(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(b.bsConfig.currentValue&&b.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(b.minDate&&(this._datepickerRef.instance.minDate=this.minDate),b.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),b.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),b.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),b.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),b.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),b.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe((0,l.h)(b=>b!==this.isOpen),(0,S.R)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:ol,useValue:this._config}).attach(bn).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(b=>{this._datepickerRef&&(this._datepickerRef.instance.value=b)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe((0,l.h)(b=>b&&b[0]&&!!b[1])).subscribe(b=>{this.initPreviousValue(),this.bsValue=b,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){go=this._bsValue}keepDatepickerModalOpened(){return!!(go&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===go?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===go?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===go?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===go?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===go?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===go?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:pu(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:Yu(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(const b of this._subs)b.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(b=>b.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Vi),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(F.oj))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(P,H){2&P&&e.uIk("readonly",H.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[e.TTD]})}return f})();const hs={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>ic),multi:!0},Vl={provide:Uc.Cf,useExisting:(0,e.Gpc)(()=>ic),multi:!0};let ic=(()=>{class f{constructor(b,P,H,Me,Et){this._picker=b,this._localeService=P,this._renderer=H,this._elRef=Me,this.changeDetection=Et,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Od.w0}ngOnInit(){this._picker._bsValue&&(P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe((0,w.x)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(b){(13===b.keyCode||"Enter"===b.code)&&this.hide()}_setInputValue(b){let P="";if(b){const H=b[0]?ts(b[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",Me=b[1]?ts(b[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";P=H&&Me?H+this._picker._config.rangeSeparator+Me:""}this._renderer.setProperty(this._elRef.nativeElement,"value",P)}onChange(b){this.writeValue(b.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(b){let P=b.value;const H=[];if(null==P||!ce(P))return null;P=P.slice().sort((yn,Gn)=>yn.getTime()-Gn.getTime());const Me=se(P[0]),Et=se(P[1]);return Me?Et?(this._picker&&this._picker.minDate&&K(P[0],this._picker.minDate,"date")&&(P[0]=this._picker.minDate,H.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&ro(P[1],this._picker.maxDate,"date")&&(P[1]=this._picker.maxDate,H.push({bsDate:{maxDate:this._picker.maxDate}})),H.length>0?(this.writeValue(P),H):null):{bsDate:{invalid:P[1]}}:{bsDate:{invalid:P[0]}}}registerOnValidatorChange(b){this._validatorChange=b}writeValue(b){if(b){const P=this._localeService.currentLocale;if(!sr(P))throw new Error(`Locale "${P}" is not defined, please add it with "defineLocale(...)"`);let Me=[];if("string"==typeof b){const Et=this._picker._config.rangeSeparator.trim();Me=b.replace(/[^-]/g,"").length>1?b.split(this._picker._config.rangeSeparator):b.split(Et.length>0?Et:this._picker._config.rangeSeparator).map(yn=>yn.trim())}Array.isArray(b)&&(Me=b),this._value=Me.map(Et=>this._picker._config.useUtc?Al(ra(Et,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):ra(Et,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(Et=>isNaN(Et.valueOf())?void 0:Et)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(b){this._picker.isDisabled=b,b?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Dr,1),e.Y36(fu),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(P,H){1&P&&e.NdJ("change",function(Et){return H.onChange(Et)})("keyup.esc",function(){return H.hide()})("keydown",function(Et){return H.onKeydownEvent(Et)})("blur",function(){return H.onBlur()})},features:[e._Bn([hs,Vl])]})}return f})(),Cs=(()=>{class f{static forRoot(){return{ngModule:f,providers:[F.oj,Zs.sA,i,lo,ud,fu,ml]}}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275mod=e.oAB({type:f});static#n=this.\u0275inj=e.cJS({imports:[zi.ez,Id.z8,Gu]})}return f})()},4060:(ft,Ie,C)=>{"use strict";C.d(Ie,{Bz:()=>re,sA:()=>ei});var e=C(3161),l=C(5879),D=C(6814),I=C(8645),S=C(3019),w=C(2438),n=C(2096),Z=C(927),ee=function(Ve){return Ve.top="top",Ve.bottom="bottom",Ve.left="left",Ve.right="right",Ve.auto="auto",Ve.end="right",Ve.start="left",Ve["top left"]="top left",Ve["top right"]="top right",Ve["right top"]="right top",Ve["right bottom"]="right bottom",Ve["bottom right"]="bottom right",Ve["bottom left"]="bottom left",Ve["left bottom"]="left bottom",Ve["left top"]="left top",Ve["top start"]="top left",Ve["top end"]="top right",Ve["end top"]="right top",Ve["end bottom"]="right bottom",Ve["bottom end"]="bottom right",Ve["bottom start"]="bottom left",Ve["start bottom"]="start bottom",Ve["start top"]="left top",Ve}(ee||{}),re=function(Ve){return Ve.top="top",Ve.bottom="bottom",Ve.left="start",Ve.right="end",Ve.auto="auto",Ve.end="end",Ve.start="start",Ve["top left"]="top start",Ve["top right"]="top end",Ve["right top"]="end top",Ve["right bottom"]="end bottom",Ve["bottom right"]="bottom end",Ve["bottom left"]="bottom start",Ve["left bottom"]="start bottom",Ve["left top"]="start top",Ve["top start"]="top start",Ve["top end"]="top end",Ve["end top"]="end top",Ve["end bottom"]="end bottom",Ve["bottom end"]="bottom end",Ve["bottom start"]="bottom start",Ve["start bottom"]="start bottom",Ve["start top"]="start top",Ve}(re||{});function ue(Ve,ct){if(1!==Ve.nodeType)return[];const Ce=Ve.ownerDocument.defaultView?.getComputedStyle(Ve,null);return ct?Ce&&Ce[ct]:Ce}function se(Ve){if(!Ve)return document.documentElement;let Ce,Ct=Ve?.offsetParent;for(;null===Ct&&Ve.nextElementSibling&&Ce!==Ve.nextElementSibling;)Ce=Ve.nextElementSibling,Ct=Ce.offsetParent;const J=Ct&&Ct.nodeName;return J&&"BODY"!==J&&"HTML"!==J?Ct&&-1!==["TH","TD","TABLE"].indexOf(Ct.nodeName)&&"static"===ue(Ct,"position")?se(Ct):Ct:Ce?Ce.ownerDocument.documentElement:document.documentElement}function oe(Ve){return null!==Ve.parentNode?oe(Ve.parentNode):Ve}function ce(Ve,ct){if(!(Ve&&Ve.nodeType&&ct&&ct.nodeType))return document.documentElement;const Ct=Ve.compareDocumentPosition(ct)&Node.DOCUMENT_POSITION_FOLLOWING,Ce=Ct?Ve:ct,J=Ct?ct:Ve,ae=document.createRange();ae.setStart(Ce,0),ae.setEnd(J,0);const Oe=ae.commonAncestorContainer;if(Ve!==Oe&&ct!==Oe||Ce.contains(J))return function te(Ve){const{nodeName:ct}=Ve;return"BODY"!==ct&&("HTML"===ct||se(Ve.firstElementChild)===Ve)}(Oe)?Oe:se(Oe);const ot=oe(Ve);return ot.host?ce(ot.host,ct):ce(Ve,oe(ct).host)}function _e(Ve){if(!Ve||!Ve.parentElement)return document.documentElement;let ct=Ve.parentElement;for(;ct?.parentElement&&"none"===ue(ct,"transform");)ct=ct.parentElement;return ct||document.documentElement}function Re(Ve,ct){const Ct="x"===ct?"Left":"Top",Ce="Left"===Ct?"Right":"Bottom";return parseFloat(Ve[`border${Ct}Width`])+parseFloat(Ve[`border${Ce}Width`])}function mt(Ve,ct,Ct,Ce){return Math.max(ct[`offset${Ve}`],ct[`scroll${Ve}`],Ct[`client${Ve}`],Ct[`offset${Ve}`],Ct[`scroll${Ve}`],0)}function Ge(Ve){const ct=Ve.body,Ct=Ve.documentElement;return{height:mt("Height",ct,Ct),width:mt("Width",ct,Ct)}}function Lt(Ve){return{...Ve,right:(Ve.left||0)+Ve.width,bottom:(Ve.top||0)+Ve.height}}function Tt(Ve){return"number"==typeof Ve||"[object Number]"===Object.prototype.toString.call(Ve)}function xt(Ve){const ct=Ve.getBoundingClientRect();if(!(ct&&Tt(ct.top)&&Tt(ct.left)&&Tt(ct.bottom)&&Tt(ct.right)))return ct;const Ct={left:ct.left,top:ct.top,width:ct.right-ct.left,height:ct.bottom-ct.top},Ce="HTML"===Ve.nodeName?Ge(Ve.ownerDocument):void 0,J=Ce?.width||Ve.clientWidth||Tt(ct.right)&&Tt(Ct.left)&&ct.right-Ct.left||0,ae=Ce?.height||Ve.clientHeight||Tt(ct.bottom)&&Tt(Ct.top)&&ct.bottom-Ct.top||0;let Oe=Ve.offsetWidth-J,ot=Ve.offsetHeight-ae;if(Oe||ot){const Se=ue(Ve);Oe-=Re(Se,"x"),ot-=Re(Se,"y"),Ct.width-=Oe,Ct.height-=ot}return Lt(Ct)}function St(Ve){return"HTML"===Ve.nodeName?Ve:Ve.parentNode||Ve.host}function Zt(Ve){if(!Ve)return document.body;switch(Ve.nodeName){case"HTML":case"BODY":return Ve.ownerDocument.body;case"#document":return Ve.body}const{overflow:ct,overflowX:Ct,overflowY:Ce}=ue(Ve);return/(auto|scroll|overlay)/.test(String(ct)+String(Ce)+String(Ct))?Ve:Zt(St(Ve))}function yt(Ve,ct,Ct=!1){const Ce="HTML"===ct.nodeName,J=xt(Ve),ae=xt(ct),ot=(Zt(Ve),ue(ct)),Se=parseFloat(ot.borderTopWidth),Ft=parseFloat(ot.borderLeftWidth);Ct&&Ce&&(ae.top=Math.max(ae.top??0,0),ae.left=Math.max(ae.left??0,0));const lt=Lt({top:(J.top??0)-(ae.top??0)-Se,left:(J.left??0)-(ae.left??0)-Ft,width:J.width,height:J.height});if(lt.marginTop=0,lt.marginLeft=0,Ce){const Bt=parseFloat(ot.marginTop),Ut=parseFloat(ot.marginLeft);Tt(lt.top)&&(lt.top-=Se-Bt),Tt(lt.bottom)&&(lt.bottom-=Se-Bt),Tt(lt.left)&&(lt.left-=Ft-Ut),Tt(lt.right)&&(lt.right-=Ft-Ut),lt.marginTop=Bt,lt.marginLeft=Ut}return lt}function un(Ve,ct="top"){const Ct="top"===ct?"scrollTop":"scrollLeft",Ce=Ve.nodeName;return"BODY"===Ce||"HTML"===Ce?(Ve.ownerDocument.scrollingElement||Ve.ownerDocument.documentElement)[Ct]:Ve[Ct]}function tn(Ve){const ct=Ve.nodeName;return"BODY"!==ct&&"HTML"!==ct&&("fixed"===ue(Ve,"position")||tn(St(Ve)))}function wn(Ve,ct,Ct=0,Ce,J=!1){let ae={top:0,left:0};const Oe=J?_e(Ve):ce(Ve,ct);if("viewport"===Ce)ae=function Jt(Ve,ct=!1){const Ct=Ve.ownerDocument.documentElement,Ce=yt(Ve,Ct),J=Math.max(Ct.clientWidth,window.innerWidth||0),ae=Math.max(Ct.clientHeight,window.innerHeight||0),Oe=ct?0:un(Ct),ot=ct?0:un(Ct,"left");return Lt({top:Oe-Number(Ce?.top)+Number(Ce?.marginTop),left:ot-Number(Ce?.left)+Number(Ce?.marginLeft),width:J,height:ae})}(Oe,J);else{let ot;"scrollParent"===Ce?(ot=Zt(St(ct)),"BODY"===ot.nodeName&&(ot=Ve.ownerDocument.documentElement)):ot="window"===Ce?Ve.ownerDocument.documentElement:Ce;const Se=yt(ot,Oe,J);if(Se&&"HTML"===ot.nodeName&&!tn(Oe)){const{height:Ft,width:lt}=Ge(Ve.ownerDocument);Tt(ae.top)&&Tt(Se.top)&&Tt(Se.marginTop)&&(ae.top+=Se.top-Se.marginTop),Tt(ae.top)&&(ae.bottom=Number(Ft)+Number(Se.top)),Tt(ae.left)&&Tt(Se.left)&&Tt(Se.marginLeft)&&(ae.left+=Se.left-Se.marginLeft),Tt(ae.top)&&(ae.right=Number(lt)+Number(Se.left))}else Se&&(ae=Se)}return Tt(ae.left)&&(ae.left+=Ct),Tt(ae.top)&&(ae.top+=Ct),Tt(ae.right)&&(ae.right-=Ct),Tt(ae.bottom)&&(ae.bottom-=Ct),ae}function Ln({width:Ve,height:ct}){return Ve*ct}function Yn(Ve,ct,Ct,Ce,J=["top","bottom","right","left"],ae="viewport",Oe=0){if(-1===Ve.indexOf("auto"))return Ve;const ot=wn(Ct,Ce,Oe,ae),Se={top:{width:ot?.width??0,height:(ct?.top??0)-(ot?.top??0)},right:{width:(ot?.right??0)-(ct?.right??0),height:ot?.height??0},bottom:{width:ot?.width??0,height:(ot?.bottom??0)-(ct?.bottom??0)},left:{width:(ct.left??0)-(ot?.left??0),height:ot?.height??0}},Ft=Object.keys(Se).map(fn=>({position:fn,...Se[fn],area:Ln(Se[fn])})).sort((fn,gn)=>gn.area-fn.area);let lt=Ft.filter(({width:fn,height:gn})=>fn>=Ct.clientWidth&&gn>=Ct.clientHeight);lt=lt.filter(({position:fn})=>J.some(gn=>gn===fn));const Bt=lt.length>0?lt[0].position:Ft[0].position,Ut=Ve.split(" ")[1];return Ct.className=Ct.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${(0,e.Wl)().isBs5?re[Bt]:Bt}`),Bt+(Ut?`-${Ut}`:"")}const dt=(Ve,ct=0)=>Ve?parseFloat(Ve):ct;function at(Ve){const Ct=Ve.ownerDocument.defaultView?.getComputedStyle(Ve),Ce=dt(Ct?.marginTop)+dt(Ct?.marginBottom),J=dt(Ct?.marginLeft)+dt(Ct?.marginRight);return{width:Number(Ve.offsetWidth)+J,height:Number(Ve.offsetHeight)+Ce}}function Be(Ve,ct,Ct){return yt(ct,Ct?_e(Ve):ce(Ve,ct),Ct)}function Ee(Ve,ct,Ct){const Ce=Ct.split(" ")[0],J=at(Ve),ae={width:J.width,height:J.height},Oe=-1!==["right","left"].indexOf(Ce),ot=Oe?"top":"left",Se=Oe?"left":"top",Ft=Oe?"height":"width",lt=Oe?"width":"height";return ae[ot]=(ct[ot]??0)+ct[Ft]/2-J[Ft]/2,ae[Se]=Ce===Se?(ct[Se]??0)-J[lt]:ct[function gi(Ve){const ct={left:"right",right:"left",bottom:"top",top:"bottom"};return Ve.replace(/left|right|bottom|top/g,Ct=>ct[Ct])}(Se)]??0,ae}function $e(Ve,ct){return!!Ve.modifiers[ct]?.enabled}const me={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function tt(Ve,ct){return!!(0,e.Wl)().isBs5&&me[ct].includes(Ve)}function rt(Ve,ct,Ct){!Ve||!ct||Object.keys(ct).forEach(Ce=>{let J="";-1!==["width","height","top","right","bottom","left"].indexOf(Ce)&&function je(Ve){return""!==Ve&&!isNaN(parseFloat(Ve))&&isFinite(Number(Ve))}(ct[Ce])&&(J="px"),Ct?Ct.setStyle(Ve,Ce,`${String(ct[Ce])}${J}`):Ve.style[Ce]=String(ct[Ce])+J})}function bt(Ve){let ct=Ve.offsets.target;const Ct=Ve.instance.target.querySelector(".arrow");if(!Ct)return Ve;const Ce=-1!==["left","right"].indexOf(Ve.placement.split(" ")[0]),J=Ce?"height":"width",ae=Ce?"Top":"Left",Oe=ae.toLowerCase(),ot=Ce?"left":"top",Se=Ce?"bottom":"right",Ft=at(Ct)[J],lt=Ve.placement.split(" ")[1];(Ve.offsets.host[Se]??0)-Ft<(ct[Oe]??0)&&(ct[Oe]-=(ct[Oe]??0)-((Ve.offsets.host[Se]??0)-Ft)),Number(Ve.offsets.host[Oe])+Number(Ft)>(ct[Se]??0)&&(ct[Oe]+=Number(Ve.offsets.host[Oe])+Number(Ft)-Number(ct[Se])),ct=Lt(ct);const Bt=ue(Ve.instance.target),Ut=parseFloat(Bt[`margin${ae}`])||0,fn=parseFloat(Bt[`border${ae}Width`])||0;let gn;if(lt){const jn=parseFloat(Bt.borderRadius)||0,ai=Number(Ut+fn+jn);gn=Oe===lt?Number(Ve.offsets.host[Oe])+ai:Number(Ve.offsets.host[Oe])+Number(Ve.offsets.host[J]-ai)}else gn=Number(Ve.offsets.host[Oe])+Number(Ve.offsets.host[J]/2-Ft/2);let An=gn-(ct[Oe]??0)-Ut-fn;return An=Math.max(Math.min(ct[J]-(Ft+5),An),0),Ve.offsets.arrow={[Oe]:Math.round(An),[ot]:""},Ve.instance.arrow=Ct,Ve}function Nt(Ve){if(Ve.offsets.target=Lt(Ve.offsets.target),!$e(Ve.options,"flip"))return Ve.offsets.target={...Ve.offsets.target,...Ee(Ve.instance.target,Ve.offsets.host,Ve.placement)},Ve;const ct=wn(Ve.instance.target,Ve.instance.host,0,"viewport",!1);let Ct=Ve.placement.split(" ")[0],Ce=Ve.placement.split(" ")[1]||"";const ot=Yn("auto",Ve.offsets.host,Ve.instance.target,Ve.instance.host,Ve.options.allowedPositions),Se=[Ct,ot];return Se.forEach((Ft,lt)=>{if(Ct!==Ft||Se.length===lt+1)return;Ct=Ve.placement.split(" ")[0];const Bt="left"===Ct&&Math.floor(Ve.offsets.target.right??0)>Math.floor(Ve.offsets.host.left??0)||"right"===Ct&&Math.floor(Ve.offsets.target.left??0)Math.floor(Ve.offsets.host.top??0)||"bottom"===Ct&&Math.floor(Ve.offsets.target.top??0)Math.floor(ct.right??0),gn=Math.floor(Ve.offsets.target.top??0)Math.floor(ct.bottom??0),jn="left"===Ct&&Ut||"right"===Ct&&fn||"top"===Ct&&gn||"bottom"===Ct&&An,ai=-1!==["top","bottom"].indexOf(Ct),di=ai&&"left"===Ce&&Ut||ai&&"right"===Ce&&fn||!ai&&"left"===Ce&&gn||!ai&&"right"===Ce&&An;(Bt||jn||di)&&((Bt||jn)&&(Ct=Se[lt+1]),di&&(Ce=function Rn(Ve){return"right"===Ve?"left":"left"===Ve?"right":Ve}(Ce)),Ve.placement=Ct+(Ce?` ${Ce}`:""),Ve.offsets.target={...Ve.offsets.target,...Ee(Ve.instance.target,Ve.offsets.host,Ve.placement)})}),Ve}function nn(Ve){if(!$e(Ve.options,"preventOverflow"))return Ve;const ct="transform",Ct=Ve.instance.target.style,{top:Ce,left:J,[ct]:ae}=Ct;Ct.top="",Ct.left="",Ct[ct]="";const Oe=wn(Ve.instance.target,Ve.instance.host,0,Ve.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);Ct.top=Ce,Ct.left=J,Ct[ct]=ae;const Se={primary(Ft){let lt=Ve.offsets.target[Ft];return(Ve.offsets.target[Ft]??0)<(Oe[Ft]??0)&&(lt=Math.max(Ve.offsets.target[Ft]??0,Oe[Ft]??0)),{[Ft]:lt}},secondary(Ft){const lt="right"===Ft,Bt=lt?"left":"top";let fn=Ve.offsets.target[Bt];return(Ve.offsets.target[Ft]??0)>(Oe[Ft]??0)&&(fn=Math.min(Ve.offsets.target[Bt]??0,(Oe[Ft]??0)-Ve.offsets.target[lt?"width":"height"])),{[Bt]:fn}}};return["left","right","top","bottom"].forEach(Ft=>{const lt=-1!==["left","top","start"].indexOf(Ft)?Se.primary:Se.secondary;Ve.offsets.target={...Ve.offsets.target,...lt(Ft)}}),Ve}function Dn(Ve){const ct=Ve.placement,Ct=ct.split(" ")[0],Ce=ct.split(" ")[1];if(Ce){const{host:J,target:ae}=Ve.offsets,Oe=-1!==["bottom","top"].indexOf(Ct),ot=Oe?"left":"top",Se=Oe?"width":"height",Ft={start:{[ot]:J[ot]},end:{[ot]:(J[ot]??0)+J[Se]-ae[Se]}};Ve.offsets.target={...ae,[ot]:ot===Ce?Ft.start[ot]:Ft.end[ot]}}return Ve}const rn=new class Ot{position(ct,Ct){return this.offset(ct,Ct)}offset(ct,Ct){return Be(Ct,ct)}positionElements(ct,Ct,Ce,J,ae){const Oe=[Nt,Dn,nn,bt],Se=function Qt(Ve,ct,Ct,Ce){if(!Ve||!ct)return;const J=Be(Ve,ct);!Ct.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!Ct.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(Ct="auto");const ae=!!Ct.match(/auto/g);let Oe=Ct.match(/auto\s(left|right|top|bottom|start|end)/)?Ct.split(" ")[1]||"auto":Ct;const ot=Oe.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return ot&&(Oe=ot[1]+(ot[2]?` ${ot[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(Oe)&&(Oe="auto"),Oe=Yn(Oe,J,Ve,ct,Ce?Ce.allowedPositions:void 0),{options:Ce||{modifiers:{}},instance:{target:Ve,host:ct,arrow:void 0},offsets:{target:Ee(Ve,J,Oe),host:J,arrow:void 0},positionFixed:!1,placement:Oe,placementAuto:ae}}(Ct,ct,ee[Ce],ae);if(Se)return Oe.reduce((Ft,lt)=>lt(Ft),Se)}};function vn(Ve,ct,Ct,Ce,J,ae){const Oe=rn.positionElements(Ve,ct,Ct,Ce,J);if(!Oe)return;const ot=function ti(Ve){return{width:Ve.offsets.target.width,height:Ve.offsets.target.height,left:Math.floor(Ve.offsets.target.left??0),top:Math.round(Ve.offsets.target.top??0),bottom:Math.round(Ve.offsets.target.bottom??0),right:Math.floor(Ve.offsets.target.right??0)}}(Oe);rt(ct,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${ot.left}px, ${ot.top}px, 0px)`},ae),Oe.instance.arrow&&rt(Oe.instance.arrow,Oe.offsets.arrow,ae),function Ze(Ve,ct){const Ct=Ve.instance.target;let Ce=Ct.className;const J=(0,e.Wl)().isBs5?re[Ve.placement]:Ve.placement;Ve.placementAuto&&(Ce=Ce.replace(/bs-popover-auto/g,`bs-popover-${J}`),Ce=Ce.replace(/ms-2|me-2|mb-2|mt-2/g,""),Ce=Ce.replace(/bs-tooltip-auto/g,`bs-tooltip-${J}`),Ce=Ce.replace(/\sauto/g,` ${J}`),-1!==Ce.indexOf("popover")&&(Ce=Ce+" "+function he(Ve){return(0,e.Wl)().isBs5?tt(Ve,"end")?"ms-2":tt(Ve,"start")?"me-2":tt(Ve,"top")?"mb-2":tt(Ve,"bottom")?"mt-2":"":""}(J)),-1!==Ce.indexOf("popover")&&-1===Ce.indexOf("popover-auto")&&(Ce+=" popover-auto"),-1!==Ce.indexOf("tooltip")&&-1===Ce.indexOf("tooltip-auto")&&(Ce+=" tooltip-auto")),Ce=Ce.replace(/left|right|top|bottom|end|start/g,`${J.split(" ")[0]}`),ct?ct.setAttribute(Ct,"class",Ce):Ct.className=Ce}(Oe,ae)}let ei=(()=>{class Ve{constructor(Ct,Ce,J){this.update$$=new I.x,this.positionElements=new Map,this.isDisabled=!1,(0,D.NF)(J)&&Ct.runOutsideAngular(()=>{this.triggerEvent$=(0,S.T)((0,w.R)(window,"scroll",{passive:!0}),(0,w.R)(window,"resize",{passive:!0}),(0,n.of)(0,Z.Z),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(ae=>{vn(Wn(ae.target),Wn(ae.element),ae.attachment,ae.appendToBody,this.options,Ce.createRenderer(null,null))})})})}position(Ct){this.addPositionElement(Ct)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(Ct){this.positionElements.set(Wn(Ct.element),Ct)}calcPosition(){this.update$$.next(null)}deletePositionElement(Ct){this.positionElements.delete(Wn(Ct))}setOptions(Ct){this.options=Ct}static#e=this.\u0275fac=function(Ce){return new(Ce||Ve)(l.LFG(l.R0b),l.LFG(l.FYo),l.LFG(l.Lbi))};static#t=this.\u0275prov=l.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})();function Wn(Ve){return"string"==typeof Ve?document.querySelector(Ve):Ve instanceof l.SBq?Ve.nativeElement:Ve??null}},2268:(ft,Ie,C)=>{"use strict";C.d(Ie,{i9:()=>se,z8:()=>te});var e=C(5879),l=C(3161),D=C(4060),I=C(7582),S=C(1835),w=C(4825),n=C(6814);const Z=["*"];let ee=(()=>{class oe{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),re=(()=>{class oe{get _bsVersions(){return(0,l.Wl)()}constructor(_e){Object.assign(this,_e)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=D.Bz[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}static#e=this.\u0275fac=function(Re){return new(Re||oe)(e.Y36(ee))};static#t=this.\u0275cmp=e.Xpm({type:oe,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(Re,mt){2&Re&&(e.uIk("id",mt.id),e.Tol("show tooltip in tooltip-"+mt.placement+" bs-tooltip-"+mt.placement+" "+mt.placement+" "+mt.containerClass))},ngContentSelectors:Z,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(Re,mt){1&Re&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}return oe})(),ue=0,se=(()=>{class oe{get isOpen(){return this._tooltip.isShown}set isOpen(_e){_e?this.show():this.hide()}set htmlContent(_e){(0,l.O4)("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=_e}set _placement(_e){(0,l.O4)("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=_e}set _isOpen(_e){(0,l.O4)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=_e}get _isOpen(){return(0,l.O4)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(_e){(0,l.O4)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!_e}get _enable(){return(0,l.O4)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(_e){(0,l.O4)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=_e?"body":this.container}get _appendToBody(){return(0,l.O4)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(_e){(0,l.O4)("tooltipClass deprecated")}set _tooltipContext(_e){(0,l.O4)("tooltipContext deprecated")}set _tooltipPopupDelay(_e){(0,l.O4)("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=_e}get _tooltipTrigger(){return(0,l.O4)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(_e){(0,l.O4)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(_e||"").toString()}constructor(_e,Re,mt,Ge,Lt,je){this._elementRef=Ge,this._renderer=Lt,this._positionService=je,this.tooltipId=ue++,this.adaptivePosition=!0,this.tooltipChange=new e.vpe,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new e.vpe,this._tooltip=Re.createLoader(this._elementRef,_e,this._renderer).provide({provide:ee,useValue:mt}),Object.assign(this,mt),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(_e=>{_e||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const _e=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(re).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},Re=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=(0,w.H)(this.delay).subscribe(()=>{_e(),Re()}),this.triggers&&(0,l.AL)(this.triggers).forEach(mt=>{mt.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,mt.close,()=>{this._delaySubscription?.unsubscribe(),Re()}))})):_e()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}static#e=this.\u0275fac=function(Re){return new(Re||oe)(e.Y36(e.s_b),e.Y36(S.oj),e.Y36(ee),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(D.sA))};static#t=this.\u0275dir=e.lG2({type:oe,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:["tooltipHtml","htmlContent"],_placement:["tooltipPlacement","_placement"],_isOpen:["tooltipIsOpen","_isOpen"],_enable:["tooltipEnable","_enable"],_appendToBody:["tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:["tooltipClass","_popupClass"],_tooltipContext:["tooltipContext","_tooltipContext"],_tooltipPopupDelay:["tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:["tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]})}return(0,I.gn)([(0,l.GU)(),(0,I.w6)("design:type",Object)],oe.prototype,"tooltip",void 0),oe})(),te=(()=>{class oe{static forRoot(){return{ngModule:oe,providers:[S.oj,D.sA]}}static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=e.oAB({type:oe});static#n=this.\u0275inj=e.cJS({imports:[n.ez]})}return oe})()},3161:(ft,Ie,C)=>{"use strict";C.d(Ie,{AL:()=>I,C:()=>Z,GU:()=>wn,O4:()=>gi,Rg:()=>n,Wl:()=>un,wo:()=>w});var e=C(5879);class l{constructor(dt,at){this.open=dt,this.close=at||dt}isManual(){return"manual"===this.open||"manual"===this.close}}const D={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function I(Rn,dt=D){const at=(Rn||"").trim();if(0===at.length)return[];const Be=at.split(/\s+/).map($e=>$e.split(":")).map($e=>{const me=dt[$e[0]]||$e;return new l(me[0],me[1])}),Ee=Be.filter($e=>$e.isManual());if(Ee.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===Ee.length&&Be.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return Be}function w(Rn,dt){const at=I(dt.triggers),Be=dt.target;if(1===at.length&&at[0].isManual())return Function.prototype;const Ee=[],$e=[],me=()=>{$e.forEach(tt=>Ee.push(tt())),$e.length=0};return at.forEach(tt=>{const he=tt.open===tt.close,Ze=he?dt.toggle:dt.show;if(!he&&tt.close&&dt.hide){const rt=tt.close,bt=dt.hide;$e.push(()=>Rn.listen(Be,rt,bt))}Ze&&Ee.push(Rn.listen(Be,tt.open,()=>Ze(me)))}),()=>{Ee.forEach(tt=>tt())}}function n(Rn,dt){return dt.outsideClick?Rn.listen("document","click",at=>{dt.target&&dt.target.contains(at.target)||dt.targets&&dt.targets.some(Be=>Be.contains(at.target))||dt.hide&&dt.hide()}):Function.prototype}function Z(Rn,dt){return dt.outsideEsc?Rn.listen("document","keyup.esc",at=>{dt.target&&dt.target.contains(at.target)||dt.targets&&dt.targets.some(Be=>Be.contains(at.target))||dt.hide&&dt.hide()}):Function.prototype}const ee=typeof window<"u"&&window||{};let Tt;function xt(){const Rn=ee.document.createElement("span");Rn.innerText="testing bs version",Rn.classList.add("d-none"),Rn.classList.add("pl-1"),ee.document.head.appendChild(Rn);const dt=ee.getComputedStyle(Rn).paddingLeft;return dt&&parseFloat(dt)?(ee.document.head.removeChild(Rn),"bs4"):(ee.document.head.removeChild(Rn),"bs5")}function un(){return{isBs4:(Tt||(Tt=xt()),"bs4"===Tt),isBs5:(Tt||(Tt=xt()),"bs5"===Tt)}}function wn(){return function(at,Be){const Ee=` __${Be}Value`;Object.defineProperty(at,Be,{get(){return this[Ee]},set($e){const me=this[Ee];this[Ee]=$e,me!==$e&&this[Be+"Change"]&&this[Be+"Change"].emit($e)}})}}const Yn={},ti=typeof console>"u"||!("warn"in console);function gi(Rn){!(0,e.X6Q)()||ti||Rn in Yn||(Yn[Rn]=!0,console.warn(Rn))}},8468:(ft,Ie,C)=>{"use strict";C.d(Ie,{Fy:()=>fn,bB:()=>oi,Mp:()=>lt});var e=C(5879),l=C(6814),D=C(8645),I=C(3019),S=C(2096),w=C(2438),n=C(9666),Z=C(9397),ee=C(2181),re=C(4664),ue=C(1374),se=C(8180),te=C(836),oe=C(7398),ce=C(9732),_e=C(9360);const mt=(qt,_t)=>(qt.push(_t),qt);var Lt=C(5177),je=C(1662),Tt=C(6825);function xt(qt,_t){}const St=function(qt,_t){return{$implicit:qt,index:_t}};function Zt(qt,_t){if(1&qt&&e.YNc(0,xt,0,0,"ng-template",4),2&qt){const G=e.oxw(),U=G.$implicit,ve=G.index,Pe=e.oxw();e.Q6J("ngTemplateOutlet",U.tplRef)("ngTemplateOutletContext",e.WLB(2,St,Pe.preparePublicSlide(U),ve))}}const yt=function(qt,_t,G,U){return{width:qt,"margin-left":_t,"margin-right":G,left:U}};function un(qt,_t){if(1&qt){const G=e.EpF();e.ynx(0),e.TgZ(1,"div",2),e.NdJ("animationend",function(){const Pe=e.CHM(G).$implicit,ut=e.oxw();return e.KtG(ut.clear(Pe.id))}),e.YNc(2,Zt,1,5,null,3),e.qZA(),e.BQk()}if(2&qt){const G=_t.$implicit;e.xp6(1),e.Q6J("ngClass",G.classes)("ngStyle",e.l5B(4,yt,G.width+"px",G.marginL?G.marginL+"px":"",G.marginR?G.marginR+"px":"",G.left))("@autoHeight",G.heightState),e.xp6(1),e.Q6J("ngIf",G.load)}}const Jt=function(qt,_t,G,U,ve){return{width:qt,transform:_t,transition:G,"padding-left":U,"padding-right":ve}},tn=function(qt,_t){return{isMouseDragable:qt,isTouchDragable:_t}};function wn(qt,_t){if(1&qt&&(e.TgZ(0,"div",4),e._UZ(1,"owl-stage",5),e.qZA()),2&qt){const G=e.oxw();e.xp6(1),e.Q6J("owlDraggable",e.WLB(3,tn,null==G.owlDOMData?null:G.owlDOMData.isMouseDragable,null==G.owlDOMData?null:G.owlDOMData.isTouchDragable))("stageData",G.stageData)("slidesData",G.slidesData)}}const Ln=function(qt,_t){return{active:qt,"owl-dot-text":_t}};function Yn(qt,_t){if(1&qt){const G=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const Pe=e.CHM(G).$implicit,ut=e.oxw(2);return e.KtG(ut.moveByDot(Pe.id))}),e._UZ(1,"span",12),e.qZA()}if(2&qt){const G=_t.$implicit;e.Q6J("ngClass",e.WLB(2,Ln,G.active,G.showInnerContent)),e.xp6(1),e.Q6J("innerHTML",G.innerContent,e.oJD)}}const ti=function(qt){return{disabled:qt}};function gi(qt,_t){if(1&qt){const G=e.EpF();e.ynx(0),e.TgZ(1,"div",6)(2,"div",7),e.NdJ("click",function(){e.CHM(G);const ve=e.oxw();return e.KtG(ve.prev())}),e.qZA(),e.TgZ(3,"div",8),e.NdJ("click",function(){e.CHM(G);const ve=e.oxw();return e.KtG(ve.next())}),e.qZA()(),e.TgZ(4,"div",9),e.YNc(5,Yn,2,5,"div",10),e.qZA(),e.BQk()}if(2&qt){const G=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(7,ti,null==G.navData?null:G.navData.disabled)),e.xp6(1),e.Q6J("ngClass",e.VKq(9,ti,null==G.navData||null==G.navData.prev?null:G.navData.prev.disabled))("innerHTML",null==G.navData||null==G.navData.prev?null:G.navData.prev.htmlText,e.oJD),e.xp6(1),e.Q6J("ngClass",e.VKq(11,ti,null==G.navData||null==G.navData.next?null:G.navData.next.disabled))("innerHTML",null==G.navData||null==G.navData.next?null:G.navData.next.htmlText,e.oJD),e.xp6(1),e.Q6J("ngClass",e.VKq(13,ti,null==G.dotsData?null:G.dotsData.disabled)),e.xp6(1),e.Q6J("ngForOf",null==G.dotsData?null:G.dotsData.dots)}}const Rn=function(qt,_t,G,U,ve){return{"owl-rtl":qt,"owl-loaded":_t,"owl-responsive":G,"owl-drag":U,"owl-grab":ve}};class dt{items=3;skip_validateItems=!1;loop=!1;center=!1;rewind=!1;mouseDrag=!0;touchDrag=!0;pullDrag=!0;freeDrag=!1;margin=0;stagePadding=0;merge=!1;mergeFit=!0;autoWidth=!1;startPosition=0;rtl=!1;smartSpeed=250;fluidSpeed=!1;dragEndSpeed=!1;responsive={};responsiveRefreshRate=200;nav=!1;navText=["prev","next"];navSpeed=!1;slideBy=1;dots=!0;dotsEach=!1;dotsData=!1;dotsSpeed=!1;autoplay=!1;autoplayTimeout=5e3;autoplayHoverPause=!1;autoplaySpeed=!1;autoplayMouseleaveTimeout=1;lazyLoad=!1;lazyLoadEager=0;slideTransition="";animateOut=!1;animateIn=!1;autoHeight=!1;URLhashListener=!1;constructor(){}}class at{items="number";skip_validateItems="boolean";loop="boolean";center="boolean";rewind="boolean";mouseDrag="boolean";touchDrag="boolean";pullDrag="boolean";freeDrag="boolean";margin="number";stagePadding="number";merge="boolean";mergeFit="boolean";autoWidth="boolean";startPosition="number|string";rtl="boolean";smartSpeed="number";fluidSpeed="boolean";dragEndSpeed="number|boolean";responsive={};responsiveRefreshRate="number";nav="boolean";navText="string[]";navSpeed="number|boolean";slideBy="number|string";dots="boolean";dotsEach="number|boolean";dotsData="boolean";dotsSpeed="number|boolean";autoplay="boolean";autoplayTimeout="number";autoplayHoverPause="boolean";autoplaySpeed="number|boolean";autoplayMouseleaveTimeout="number";lazyLoad="boolean";lazyLoadEager="number";slideTransition="string";animateOut="string|boolean";animateIn="string|boolean";autoHeight="boolean";URLhashListener="boolean";constructor(){}}let Be=(()=>{class qt{errorHandler;constructor(G){this.errorHandler=G}log(G,...U){(0,e.X6Q)()&&console.log(G,...U)}error(G){this.errorHandler.handleError(G)}warn(G,...U){console.warn(G,...U)}static \u0275fac=function(U){return new(U||qt)(e.LFG(e.qLn))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})();var $e=function(qt){return qt.Event="event",qt.State="state",qt}($e||{}),me=function(qt){return qt.Default="default",qt.Inner="inner",qt.Outer="outer",qt}(me||{});let Ze=(()=>{class qt{logger;_viewSettingsShipper$=new D.x;_initializedCarousel$=new D.x;_changeSettingsCarousel$=new D.x;_changedSettingsCarousel$=new D.x;_translateCarousel$=new D.x;_translatedCarousel$=new D.x;_resizeCarousel$=new D.x;_resizedCarousel$=new D.x;_refreshCarousel$=new D.x;_refreshedCarousel$=new D.x;_dragCarousel$=new D.x;_draggedCarousel$=new D.x;settings={items:0};owlDOMData={rtl:!1,isResponsive:!1,isRefreshed:!1,isLoaded:!1,isLoading:!1,isMouseDragable:!1,isGrab:!1,isTouchDragable:!1};stageData={transform:"translate3d(0px,0px,0px)",transition:"0s",width:0,paddingL:0,paddingR:0};slidesData;navData;dotsData;_width;_items=[];_widths=[];_supress={};_plugins={};_current=null;_clones=[];_mergers=[];_speed=null;_coordinates=[];_breakpoint=null;clonedIdPrefix="cloned-";_options={};_invalidated={};get invalidated(){return this._invalidated}_states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}};get states(){return this._states}_pipe=[{filter:["width","items","settings"],run:G=>{G.current=this._items&&this._items[this.relative(this._current)]?.id}},{filter:["width","items","settings"],run:G=>{const U=this.settings.margin||"",Pe=this.settings.rtl,ut={"margin-left":Pe?U:"","margin-right":Pe?"":U};!this.settings.autoWidth||this.slidesData.forEach(We=>{We.marginL=ut["margin-left"],We.marginR=ut["margin-right"]}),G.css=ut}},{filter:["width","items","settings"],run:G=>{const U=+(this.width()/this.settings.items).toFixed(3)-this.settings.margin,ve=!this.settings.autoWidth,Pe=[];let ut=null,We=this._items.length;for(G.items={merge:!1,width:U};We-- >0;)ut=this._mergers[We],ut=this.settings.mergeFit&&Math.min(ut,this.settings.items)||ut,G.items.merge=ut>1||G.items.merge,Pe[We]=ve?U*ut:this._items[We].width?this._items[We].width:U;this._widths=Pe,this.slidesData.forEach((ze,be)=>{ze.width=this._widths[be],ze.marginR=G.css["margin-right"],ze.marginL=G.css["margin-left"]})}},{filter:["items","settings"],run:()=>{const G=[],U=this._items,ve=this.settings,Pe=Math.max(2*ve.items,4),ut=2*Math.ceil(U.length/2);let We=[],ze=[],be=ve.loop&&U.length?ve.rewind?Pe:Math.max(Pe,ut):0;for(be/=2;be-- >0;)G.push(this.normalize(G.length/2,!0)),We.push({...this.slidesData[G[G.length-1]]}),G.push(this.normalize(U.length-1-(G.length-1)/2,!0)),ze.unshift({...this.slidesData[G[G.length-1]]});this._clones=G,We=We.map(Te=>(Te.id=`${this.clonedIdPrefix}${Te.id}`,Te.isActive=!1,Te.isCloned=!0,Te)),ze=ze.map(Te=>(Te.id=`${this.clonedIdPrefix}${Te.id}`,Te.isActive=!1,Te.isCloned=!0,Te)),this.slidesData=ze.concat(this.slidesData).concat(We)}},{filter:["width","items","settings"],run:()=>{const G=this.settings.rtl?1:-1,U=this._clones.length+this._items.length,ve=[];let Pe=-1,ut=0,We=0;for(;++Pe{const G=this.settings.stagePadding,U=this._coordinates,ve={width:Math.ceil(Math.abs(U[U.length-1]))+2*G,"padding-left":G||"","padding-right":G||""};this.stageData.width=ve.width,this.stageData.paddingL=ve["padding-left"],this.stageData.paddingR=ve["padding-right"]}},{filter:["width","items","settings"],run:G=>{let U=G.current?this.slidesData.findIndex(ve=>ve.id===G.current):0;U=Math.max(this.minimum(),Math.min(this.maximum(),U)),this.reset(U)}},{filter:["position"],run:()=>{this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:()=>{const G=this.settings.rtl?1:-1,U=2*this.settings.stagePadding,ve=[];let Pe,ut,We,ze,be,Te;if(Pe=this.coordinates(this.current()),"number"==typeof Pe?Pe+=U:Pe=0,ut=Pe+this.width()*G,-1===G&&this.settings.center){const He=this._coordinates.filter(Wt=>this.settings.items%2==1?Wt>=Pe:Wt>Pe);Pe=He.length?He[He.length-1]:Pe}for(be=0,Te=this._coordinates.length;be",ut)||this._op(ze,"<",Pe)&&this._op(ze,">",ut))&&ve.push(be);this.slidesData.forEach(He=>(He.isActive=!1,He)),ve.forEach(He=>{this.slidesData[He].isActive=!0}),this.settings.center&&(this.slidesData.forEach(He=>(He.isCentered=!1,He)),this.slidesData[this.current()].isCentered=!0)}}];constructor(G){this.logger=G}getViewCurSettings(){return this._viewSettingsShipper$.asObservable()}getInitializedState(){return this._initializedCarousel$.asObservable()}getChangeState(){return this._changeSettingsCarousel$.asObservable()}getChangedState(){return this._changedSettingsCarousel$.asObservable()}getTranslateState(){return this._translateCarousel$.asObservable()}getTranslatedState(){return this._translatedCarousel$.asObservable()}getResizeState(){return this._resizeCarousel$.asObservable()}getResizedState(){return this._resizedCarousel$.asObservable()}getRefreshState(){return this._refreshCarousel$.asObservable()}getRefreshedState(){return this._refreshedCarousel$.asObservable()}getDragState(){return this._dragCarousel$.asObservable()}getDraggedState(){return this._draggedCarousel$.asObservable()}setOptions(G){const U=new dt,ve=this._validateOptions(G,U);this._options={...U,...ve}}_validateOptions(G,U){const ve={...G},Pe=new at,ut=(We,ze)=>(this.logger.log(`options.${ze} must be type of ${We}; ${ze}=${G[ze]} skipped to defaults: ${ze}=${U[ze]}`),U[ze]);for(const We in ve)if(ve.hasOwnProperty(We))if("number"===Pe[We])this._isNumeric(ve[We])?(ve[We]=+ve[We],ve[We]="items"===We?this._validateItems(ve[We],ve.skip_validateItems):ve[We]):ve[We]=ut(Pe[We],We);else if("boolean"===Pe[We]&&"boolean"!=typeof ve[We])ve[We]=ut(Pe[We],We);else if("number|boolean"!==Pe[We]||this._isNumberOrBoolean(ve[We]))if("number|string"!==Pe[We]||this._isNumberOrString(ve[We]))if("string|boolean"!==Pe[We]||this._isStringOrBoolean(ve[We])){if("string[]"===Pe[We])if(Array.isArray(ve[We])){let ze=!1;ve[We].forEach(be=>{ze="string"==typeof be}),ze||(ve[We]=ut(Pe[We],We))}else ve[We]=ut(Pe[We],We)}else ve[We]=ut(Pe[We],We);else ve[We]=ut(Pe[We],We);else ve[We]=ut(Pe[We],We);return ve}_validateItems(G,U){let ve=G;return G>this._items.length?U?this.logger.log("The option 'items' in your options is bigger than the number of slides. The navigation got disabled"):(ve=this._items.length,this.logger.log("The option 'items' in your options is bigger than the number of slides. This option is updated to the current number of slides and the navigation got disabled")):G===this._items.length&&(this.settings.dots||this.settings.nav)&&this.logger.log("Option 'items' in your options is equal to the number of slides. So the navigation got disabled"),ve}setCarouselWidth(G){this._width=G}setup(G,U,ve){this.setCarouselWidth(G),this.setItems(U),this._defineSlidesData(),this.setOptions(ve),this.settings={...this._options},this.setOptionsForViewport(),this._trigger("change",{property:{name:"settings",value:this.settings}}),this.invalidate("settings"),this._trigger("changed",{property:{name:"settings",value:this.settings}})}setOptionsForViewport(){const G=this._width,U=this._options.responsive;let ve=-1;if(!Object.keys(U).length)return;if(!G)return void(this.settings.items=1);for(const ut in U)U.hasOwnProperty(ut)&&+ut<=G&&+ut>ve&&(ve=Number(ut));this.settings={...this._options,...U[ve],items:U[ve]&&U[ve].items?this._validateItems(U[ve].items,this._options.skip_validateItems):this._options.items},delete this.settings.responsive,this.owlDOMData.isResponsive=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag;const Pe=[];this._items.forEach(ut=>{Pe.push(this.settings.merge?ut.dataMerge:1)}),this._mergers=Pe,this._breakpoint=ve,this.invalidate("settings")}initialize(G){this.enter("initializing"),this.owlDOMData.rtl=this.settings.rtl,this._mergers.length&&(this._mergers=[]),G.forEach(U=>{this._mergers.push(this.settings.merge?U.dataMerge:1)}),this._clones=[],this.reset(this._isNumeric(this.settings.startPosition)?+this.settings.startPosition:0),this.invalidate("items"),this.refresh(),this.owlDOMData.isLoaded=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag,this.sendChanges(),this.leave("initializing"),this._trigger("initialized")}sendChanges(){this._viewSettingsShipper$.next({owlDOMData:this.owlDOMData,stageData:this.stageData,slidesData:this.slidesData,navData:this.navData,dotsData:this.dotsData})}_optionsLogic(){this.settings.autoWidth&&(this.settings.stagePadding=0,this.settings.merge=!1)}update(){let G=0;const U=this._pipe.length,ve=ut=>this._invalidated[ut],Pe={};for(;G0)&&this._pipe[G].run(Pe),G++}this.slidesData.forEach(ut=>ut.classes=this.setCurSlideClasses(ut)),this.sendChanges(),this._invalidated={},this.is("valid")||this.enter("valid")}width(G){switch(G=G||me.Default){case me.Inner:case me.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}}refresh(){this.enter("refreshing"),this._trigger("refresh"),this._defineSlidesData(),this.setOptionsForViewport(),this._optionsLogic(),this.update(),this.leave("refreshing"),this._trigger("refreshed")}onResize(G){if(!this._items.length)return!1;this.setCarouselWidth(G),this.enter("resizing"),this._trigger("resize"),this.invalidate("width"),this.refresh(),this.leave("resizing"),this._trigger("resized")}prepareDragging(G){let ve,U=null;return ve=this.stageData.transform.replace(/.*\(|\)| |[^,-\d]\w|\)/g,"").split(","),U={x:+ve[0],y:+ve[1]},this.is("animating")&&this.invalidate("position"),"mousedown"===G.type&&(this.owlDOMData.isGrab=!0),this.speed(0),U}enterDragging(){this.enter("dragging"),this._trigger("drag")}defineNewCoordsDrag(G,U){let ve=null,Pe=null,ut=null;const We=this.difference(U.pointer,this.pointer(G)),ze=this.difference(U.stage.start,We);return!!this.is("dragging")&&(this.settings.loop?(ve=this.coordinates(this.minimum()),Pe=+this.coordinates(this.maximum()+1)-ve,ze.x=((ze.x-ve)%Pe+Pe)%Pe+ve):(ve=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),Pe=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),ut=this.settings.pullDrag?-1*We.x/5:0,ze.x=Math.max(Math.min(ze.x,ve+ut),Pe+ut)),ze)}finishDragging(G,U,ve){const ut=this.difference(U.pointer,this.pointer(G)),We=U.stage.current,ze=["right","left"][+(this.settings.rtl?ut.x<+this.settings.rtl:ut.x>+this.settings.rtl)];let be,Te,He;(0!==ut.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(+this.settings.dragEndSpeed||this.settings.smartSpeed),be=this.closest(We.x,0!==ut.x?ze:U.direction),Te=this.current(),He=this.current(-1===be?void 0:be),Te!==He&&(this.invalidate("position"),this.update()),U.direction=ze,(Math.abs(ut.x)>3||(new Date).getTime()-U.time>300)&&ve()),this.is("dragging")&&(this.leave("dragging"),this._trigger("dragged"))}closest(G,U){const Pe=this.width();let ut=this.coordinates(),We=-1;this.settings.center&&(ut=ut.map(ze=>(0===ze&&(ze+=1e-6),ze)));for(let ze=0;zeut[ze]-30&&Gut[ze]-Pe-30&&G",ut[ze+1]||ut[ze]-Pe)?We="left"===U?ze+1:ze:null===U&&G>ut[ze]-30&&G",ut[this.minimum()])?We=G=this.minimum():this._op(G,"<",ut[this.maximum()])&&(We=G=this.maximum())),We}animate(G){const U=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),U&&(this.enter("animating"),this._trigger("translate")),this.stageData.transform="translate3d("+G+"px,0px,0px)",this.stageData.transition=this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}is(G){return this._states.current[G]&&this._states.current[G]>0}current(G){return void 0===G?this._current:0!==this._items.length?(G=this.normalize(G),this._current!==G&&(this._trigger("change",{property:{name:"position",value:G}}),this._current=G,this.invalidate("position"),this._trigger("changed",{property:{name:"position",value:this._current}})),this._current):void 0}invalidate(G){return"string"==typeof G&&(this._invalidated[G]=!0,this.is("valid")&&this.leave("valid")),Object.keys(this._invalidated)}reset(G){void 0!==(G=this.normalize(G))&&(this._speed=0,this._current=G,this._suppress(["translate","translated"]),this.animate(this.coordinates(G)),this._release(["translate","translated"]))}normalize(G,U){const ve=this._items.length,Pe=U?0:this._clones.length;return!this._isNumeric(G)||ve<1?G=void 0:(G<0||G>=ve+Pe)&&(G=((G-Pe/2)%ve+ve)%ve+Pe/2),G}relative(G){return this.normalize(G-=this._clones.length/2,!0)}maximum(G=!1){const U=this.settings;let Pe,ut,We,ve=this._coordinates.length;if(U.loop)ve=this._clones.length/2+this._items.length-1;else if(U.autoWidth||U.merge){for(Pe=this._items.length,ut=this.slidesData[--Pe].width,We=this._width;Pe-- >0&&(ut+=+this.slidesData[Pe].width+this.settings.margin,!(ut>We)););ve=Pe+1}else ve=U.center?this._items.length-1:this._items.length-U.items;return G&&(ve-=this._clones.length/2),Math.max(ve,0)}minimum(G=!1){return G?0:this._clones.length/2}items(G){return void 0===G?this._items.slice():(G=this.normalize(G,!0),[this._items[G]])}mergers(G){return void 0===G?this._mergers.slice():(G=this.normalize(G,!0),this._mergers[G])}clones(G){const U=this._clones.length/2,ve=U+this._items.length,Pe=ut=>ut%2==0?ve+ut/2:U-(ut+1)/2;return void 0===G?this._clones.map((ut,We)=>Pe(We)):this._clones.map((ut,We)=>ut===G?Pe(We):null).filter(ut=>ut)}speed(G){return void 0!==G&&(this._speed=G),this._speed}coordinates(G){let Pe,ut,U=1,ve=G-1;return void 0===G?(ut=this._coordinates.map((We,ze)=>this.coordinates(ze)),ut):(this.settings.center?(this.settings.rtl&&(U=-1,ve=G+1),Pe=this._coordinates[G],Pe+=(this.width()-Pe+(this._coordinates[ve]||0))/2*U):Pe=this._coordinates[ve]||0,Pe=Math.ceil(Pe),Pe)}_duration(G,U,ve){return 0===ve?0:Math.min(Math.max(Math.abs(U-G),1),6)*Math.abs(+ve||this.settings.smartSpeed)}to(G,U){let ve=this.current(),Pe=null,ut=G-this.relative(ve),We=this.maximum(),ze=0;const be=+(ut>0)-+(ut<0),Te=this._items.length,He=this.minimum();this.settings.loop?(!this.settings.rewind&&Math.abs(ut)>Te/2&&(ut+=-1*be*Te),Pe=(((G=ve+ut)-He)%Te+Te)%Te+He,Pe!==G&&Pe-ut<=We&&Pe-ut>0&&(ve=Pe-ut,G=Pe,ze=30,this.reset(ve),this.sendChanges())):this.settings.rewind?(We+=1,G=(G%We+We)%We):G=Math.max(He,Math.min(We,G)),setTimeout(()=>{this.speed(this._duration(ve,G,U)),this.current(G),this.update()},ze)}next(G){G=G||!1,this.to(this.relative(this.current())+1,G)}prev(G){G=G||!1,this.to(this.relative(this.current())-1,G)}onTransitionEnd(G){if(void 0!==G)return!1;this.leave("animating"),this._trigger("translated")}_viewport(){let G;return this._width?G=this._width:this.logger.log("Can not detect viewport width."),G}setItems(G){this._items=G}_defineSlidesData(){let G;this.slidesData&&this.slidesData.length&&(G=new Map,this.slidesData.forEach(U=>{U.load&&G.set(U.id,U.load)})),this.slidesData=this._items.map(U=>({id:`${U.id}`,isActive:!1,tplRef:U.tplRef,dataMerge:U.dataMerge,width:0,isCloned:!1,load:!!G&&G.get(U.id),hashFragment:U.dataHash}))}setCurSlideClasses(G){const U={active:G.isActive,center:G.isCentered,cloned:G.isCloned,animated:G.isAnimated,"owl-animated-in":G.isDefAnimatedIn,"owl-animated-out":G.isDefAnimatedOut};return this.settings.animateIn&&(U[this.settings.animateIn]=G.isCustomAnimatedIn),this.settings.animateOut&&(U[this.settings.animateOut]=G.isCustomAnimatedOut),U}_op(G,U,ve){const Pe=this.settings.rtl;switch(U){case"<":return Pe?G>ve:G":return Pe?Gve;case">=":return Pe?G<=ve:G>=ve;case"<=":return Pe?G>=ve:G<=ve}}_trigger(G,U,ve,Pe,ut){switch(G){case"initialized":this._initializedCarousel$.next(G);break;case"change":this._changeSettingsCarousel$.next(U);break;case"changed":this._changedSettingsCarousel$.next(U);break;case"drag":this._dragCarousel$.next(G);break;case"dragged":this._draggedCarousel$.next(G);break;case"resize":this._resizeCarousel$.next(G);break;case"resized":this._resizedCarousel$.next(G);break;case"refresh":this._refreshCarousel$.next(G);break;case"refreshed":this._refreshedCarousel$.next(G);break;case"translate":this._translateCarousel$.next(G);break;case"translated":this._translatedCarousel$.next(G)}}enter(G){[G].concat(this._states.tags[G]||[]).forEach(U=>{void 0===this._states.current[U]&&(this._states.current[U]=0),this._states.current[U]++})}leave(G){[G].concat(this._states.tags[G]||[]).forEach(U=>{(0===this._states.current[U]||this._states.current[U])&&this._states.current[U]--})}register(G){G.type===$e.State&&(this._states.tags[G.name]=this._states.tags[G.name]?this._states.tags[G.name].concat(G.tags):G.tags,this._states.tags[G.name]=this._states.tags[G.name].filter((U,ve)=>this._states.tags[G.name].indexOf(U)===ve))}_suppress(G){G.forEach(U=>{this._supress[U]=!0})}_release(G){G.forEach(U=>{delete this._supress[U]})}pointer(G){const U={x:null,y:null};return(G=(G=G.originalEvent||G||window.event).touches&&G.touches.length?G.touches[0]:G.changedTouches&&G.changedTouches.length?G.changedTouches[0]:G).pageX?(U.x=G.pageX,U.y=G.pageY):(U.x=G.clientX,U.y=G.clientY),U}_isNumeric(G){return!isNaN(parseFloat(G))}_isNumberOrBoolean(G){return this._isNumeric(G)||"boolean"==typeof G}_isNumberOrString(G){return this._isNumeric(G)||"string"==typeof G}_isStringOrBoolean(G){return"string"==typeof G||"boolean"==typeof G}difference(G,U){return null===G||null===U?{x:0,y:0}:{x:G.x-U.x,y:G.y-U.y}}static \u0275fac=function(U){return new(U||qt)(e.LFG(Be))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),rt=(()=>{class qt{carouselService;navSubscription;_initialized=!1;_pages=[];_navData={disabled:!1,prev:{disabled:!1,htmlText:""},next:{disabled:!1,htmlText:""}};_dotsData={disabled:!1,dots:[]};constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.navSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(ut=>{this.initialize(),this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),U=this.carouselService.getChangedState().pipe((0,ee.h)(ut=>"position"===ut.property.name),(0,Z.b)(ut=>{this.update()})),ve=this.carouselService.getRefreshedState().pipe((0,Z.b)(()=>{this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),Pe=(0,I.T)(G,U,ve);this.navSubscription=Pe.subscribe(()=>{})}initialize(){this._navData.disabled=!0,this._navData.prev.htmlText=this.carouselService.settings.navText[0],this._navData.next.htmlText=this.carouselService.settings.navText[1],this._dotsData.disabled=!0,this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}_updateNavPages(){let G,U,ve;const Pe=this.carouselService.clones().length/2,ut=Pe+this.carouselService.items().length,We=this.carouselService.maximum(!0),ze=[],be=this.carouselService.settings;let Te=be.center||be.autoWidth||be.dotsData?1:Math.floor(Number(be.dotsEach))||Math.floor(be.items);if(Te=+Te,"page"!==be.slideBy&&(be.slideBy=Math.min(+be.slideBy,be.items)),be.dots||"page"===be.slideBy)for(G=Pe,U=0,ve=0;G=Te||0===U){if(ze.push({start:Math.min(We,G-Pe),end:G-Pe+Te-1}),Math.min(We,G-Pe)===We)break;U=0,++ve}U+=this.carouselService.mergers(this.carouselService.relative(G))}this._pages=ze}draw(){let G;const U=this.carouselService.settings,ve=this.carouselService.items(),Pe=ve.length<=U.items;if(this._navData.disabled=!U.nav||Pe,this._dotsData.disabled=!U.dots||Pe,U.dots)if(G=this._pages.length-this._dotsData.dots.length,U.dotsData&&0!==G)this._dotsData.dots=[],ve.forEach(ut=>{this._dotsData.dots.push({active:!1,id:`dot-${ut.id}`,innerContent:ut.dotContent,showInnerContent:!0})});else if(G>0){const ut=this._dotsData.dots.length>0?this._dotsData.dots.length:0;for(let We=0;We=this.carouselService.maximum(!0)),this.carouselService.navData=this._navData}_updateDots(){let G;this.carouselService.settings.dots&&(this._dotsData.dots.forEach(U=>{!0===U.active&&(U.active=!1)}),G=this._current(),this._dotsData.dots.length&&(this._dotsData.dots[G].active=!0),this.carouselService.dotsData=this._dotsData)}_current(){const G=this.carouselService.relative(this.carouselService.current());let U;const ve=this._pages.filter((Pe,ut)=>Pe.start<=G&&Pe.end>=G).pop();return U=this._pages.findIndex(Pe=>Pe.start===ve.start&&Pe.end===ve.end),U}_getPosition(G){let U,ve;const Pe=this.carouselService.settings;return"page"===Pe.slideBy?(U=this._current(),ve=this._pages.length,G?++U:--U,U=this._pages[(U%ve+ve)%ve].start):(U=this.carouselService.relative(this.carouselService.current()),ve=this.carouselService.items().length,G?U+=+Pe.slideBy:U-=+Pe.slideBy),U}next(G){this.carouselService.to(this._getPosition(!0),G)}prev(G){this.carouselService.to(this._getPosition(!1),G)}to(G,U,ve){let Pe;!ve&&this._pages.length?(Pe=this._pages.length,this.carouselService.to(this._pages[(G%Pe+Pe)%Pe].start,U)):this.carouselService.to(G,U)}moveByDot(G){const U=this._dotsData.dots.findIndex(ve=>G===ve.id);this.to(U,this.carouselService.settings.dotsSpeed)}toSlideById(G){const U=this.carouselService.slidesData.findIndex(ve=>ve.id===G&&!1===ve.isCloned);-1===U||U===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(U),!1)}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})();const bt=new e.OlP("WindowToken");class Nt{get nativeWindow(){throw new Error("Not implemented.")}}const rn=[{provide:Nt,useClass:(()=>{class qt extends Nt{constructor(){super()}get nativeWindow(){return window}static \u0275fac=function(U){return new(U||qt)};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})()},{provide:bt,useFactory:function nn(qt,_t){return(0,l.NF)(_t)?qt.nativeWindow:{setTimeout:(U,ve)=>{},clearTimeout:U=>{}}},deps:[Nt,e.Lbi]}],vn=new e.OlP("DocumentToken");class ei{get nativeDocument(){throw new Error("Not implemented.")}}const Ce=[{provide:ei,useClass:(()=>{class qt extends ei{constructor(){super()}get nativeDocument(){return document}static \u0275fac=function(U){return new(U||qt)};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})()},{provide:vn,useFactory:function Ve(qt,_t){return(0,l.NF)(_t)?qt.nativeDocument:{hidden:!1,visibilityState:"visible"}},deps:[ei,e.Lbi]}];let J=(()=>{class qt{carouselService;ngZone;autoplaySubscription;_timeout=null;_paused=!1;_isArtificialAutoplayTimeout;_isAutoplayStopped=!1;get isAutoplayStopped(){return this._isAutoplayStopped}set isAutoplayStopped(G){this._isAutoplayStopped=G}winRef;docRef;constructor(G,U,ve,Pe){this.carouselService=G,this.ngZone=Pe,this.winRef=U,this.docRef=ve,this.spyDataStreams()}ngOnDestroy(){this.autoplaySubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{this.carouselService.settings.autoplay&&this.play()})),U=this.carouselService.getChangedState().pipe((0,Z.b)(ut=>{this._handleChangeObservable(ut)})),ve=this.carouselService.getResizedState().pipe((0,Z.b)(()=>{this.carouselService.settings.autoplay&&!this._isAutoplayStopped?this.play():this.stop()})),Pe=(0,I.T)(G,U,ve);this.autoplaySubscription=Pe.subscribe(()=>{})}play(G,U){this._paused&&(this._paused=!1,this._setAutoPlayInterval(this.carouselService.settings.autoplayMouseleaveTimeout)),!this.carouselService.is("rotating")&&(this.carouselService.enter("rotating"),this._setAutoPlayInterval())}_getNextTimeout(G,U){return this._timeout&&this.winRef.clearTimeout(this._timeout),this._isArtificialAutoplayTimeout=!!G,this.ngZone.runOutsideAngular(()=>this.winRef.setTimeout(()=>{this.ngZone.run(()=>{this._paused||this.carouselService.is("busy")||this.carouselService.is("interacting")||this.docRef.hidden||this.carouselService.next(U||this.carouselService.settings.autoplaySpeed)})},G||this.carouselService.settings.autoplayTimeout))}_setAutoPlayInterval(G){this._timeout=this._getNextTimeout(G)}stop(){this.carouselService.is("rotating")&&(this._paused=!0,this.winRef.clearTimeout(this._timeout),this.carouselService.leave("rotating"))}pause(){this.carouselService.is("rotating")&&(this._paused=!0)}_handleChangeObservable(G){"settings"===G.property.name?this.carouselService.settings.autoplay?this.play():this.stop():"position"===G.property.name&&this.carouselService.settings.autoplay&&this._setAutoPlayInterval()}_playAfterTranslated(){(0,S.of)("translated").pipe((0,re.w)(G=>this.carouselService.getTranslatedState()),(0,ue.P)(),(0,ee.h)(()=>this._isArtificialAutoplayTimeout),(0,Z.b)(()=>this._setAutoPlayInterval())).subscribe(()=>{})}startPausing(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&this.pause()}startPlayingMouseLeave(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}startPlayingTouchEnd(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze),e.LFG(bt),e.LFG(vn),e.LFG(e.R0b))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),ae=(()=>{class qt{carouselService;lazyLoadSubscription;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.lazyLoadSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{const ut=this.carouselService.settings&&!this.carouselService.settings.lazyLoad;this.carouselService.slidesData.forEach(We=>We.load=!!ut)})),U=this.carouselService.getChangeState(),ve=this.carouselService.getResizedState(),Pe=(0,I.T)(G,U,ve).pipe((0,Z.b)(ut=>this._defineLazyLoadSlides(ut)));this.lazyLoadSubscription=Pe.subscribe(()=>{})}_defineLazyLoadSlides(G){if(this.carouselService.settings&&this.carouselService.settings.lazyLoad&&(G.property&&"position"===G.property.name||"initialized"===G||"resized"===G)){const U=this.carouselService.settings,ve=this.carouselService.clones().length;let Pe=U.center&&Math.ceil(U.items/2)||U.items,ut=U.center&&-1*Pe||0,We=(G.property&&void 0!==G.property.value?G.property.value:this.carouselService.current())+ut;for(U.lazyLoadEager>0&&(Pe+=U.lazyLoadEager,U.loop&&(We-=U.lazyLoadEager,Pe++));ut++this._load(ze)),We++}}_load(G){this.carouselService.slidesData[G].load||(this.carouselService.slidesData[G].load=!0)}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Oe=(()=>{class qt{carouselService;animateSubscription;swapping=!0;previous=void 0;next=void 0;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.animateSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getChangeState().pipe((0,Z.b)(be=>{"position"===be.property.name&&(this.previous=this.carouselService.current(),this.next=be.property.value)})),U=this.carouselService.getDragState(),ve=this.carouselService.getDraggedState(),Pe=this.carouselService.getTranslatedState(),ut=(0,I.T)(U,ve,Pe).pipe((0,Z.b)(be=>this.swapping="translated"===be)),We=this.carouselService.getTranslateState().pipe((0,Z.b)(be=>{this.swapping&&(this.carouselService._options.animateOut||this.carouselService._options.animateIn)&&this._swap()})),ze=(0,I.T)(G,We,ut).pipe();this.animateSubscription=ze.subscribe(()=>{})}_swap(){if(1!==this.carouselService.settings.items)return;let G;this.carouselService.speed(0);const U=this.carouselService.slidesData[this.previous],ve=this.carouselService.slidesData[this.next],Pe=this.carouselService.settings.animateIn,ut=this.carouselService.settings.animateOut;this.carouselService.current()!==this.previous&&(ut&&(G=+this.carouselService.coordinates(this.previous)-+this.carouselService.coordinates(this.next),this.carouselService.slidesData.forEach(We=>{We.id===U.id&&(We.left=`${G}px`,We.isAnimated=!0,We.isDefAnimatedOut=!0,We.isCustomAnimatedOut=!0)})),Pe&&this.carouselService.slidesData.forEach(We=>{We.id===ve.id&&(We.isAnimated=!0,We.isDefAnimatedIn=!0,We.isCustomAnimatedIn=!0)}))}clear(G){this.carouselService.slidesData.forEach(U=>{U.id===G&&(U.left="",U.isAnimated=!1,U.isDefAnimatedOut=!1,U.isCustomAnimatedOut=!1,U.isDefAnimatedIn=!1,U.isCustomAnimatedIn=!1,U.classes=this.carouselService.setCurSlideClasses(U))}),this.carouselService.onTransitionEnd()}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),ot=(()=>{class qt{carouselService;autoHeightSubscription;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.autoHeightSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight?this.update():this.carouselService.slidesData.forEach(We=>We.heightState="full")})),U=this.carouselService.getChangedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight&&"position"===ut.property.name&&this.update()})),ve=this.carouselService.getRefreshedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight&&this.update()})),Pe=(0,I.T)(G,U,ve);this.autoHeightSubscription=Pe.subscribe(()=>{})}update(){const G=this.carouselService.settings.items;let U=this.carouselService.current(),ve=U+G;this.carouselService.settings.center&&(U=G%2==1?U-(G-1)/2:U-G/2,ve=G%2==1?U+G:U+G+1),this.carouselService.slidesData.forEach((Pe,ut)=>{Pe.heightState=ut>=U&&ut{class qt{carouselService;route;router;hashSubscription;currentHashFragment;constructor(G,U,ve){this.carouselService=G,this.route=U,this.router=ve,this.spyDataStreams(),this.route||(this.route={fragment:(0,S.of)("no route").pipe((0,se.q)(1))}),this.router||(this.router={navigate:(Pe,ut)=>{}})}ngOnDestroy(){this.hashSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>this.listenToRoute())),U=this.carouselService.getChangedState().pipe((0,Z.b)(Pe=>{if(this.carouselService.settings.URLhashListener&&"position"===Pe.property.name){const ut=this.carouselService.current(),We=this.carouselService.slidesData[ut].hashFragment;if(!We||We===this.currentHashFragment)return;this.router.navigate(["./"],{fragment:We,relativeTo:this.route})}})),ve=(0,I.T)(G,U);this.hashSubscription=ve.subscribe(()=>{})}rewind(G){const U=this.carouselService.slidesData.findIndex(ve=>ve.hashFragment===G&&!1===ve.isCloned);-1===U||U===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(U),!1)}listenToRoute(){this.route.fragment.pipe((0,te.T)("URLHash"===this.carouselService.settings.startPosition?0:2)).subscribe(U=>{this.currentHashFragment=U,this.rewind(U)})}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze),e.LFG(je.gz,8),e.LFG(je.F0,8))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Ft=0,lt=(()=>{class qt{tplRef;id="owl-slide-"+Ft++;_dataMerge=1;set dataMerge(G){this._dataMerge=this.isNumeric(G)?G:1}get dataMerge(){return this._dataMerge}width=0;dotContent="";dataHash="";constructor(G){this.tplRef=G}isNumeric(G){return!isNaN(parseFloat(G))}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.Rgc))};static \u0275dir=e.lG2({type:qt,selectors:[["ng-template","carouselSlide",""]],inputs:{id:"id",dataMerge:"dataMerge",width:"width",dotContent:"dotContent",dataHash:"dataHash"}})}return qt})(),Bt=(()=>{class qt{resizeObservable$;get onResize$(){return this.resizeObservable$}constructor(G,U){this.resizeObservable$=(0,l.NF)(U)?(0,w.R)(G,"resize"):(new D.x).asObservable()}static \u0275fac=function(U){return new(U||qt)(e.LFG(bt),e.LFG(e.Lbi))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Ut=(()=>{class qt{zone;el;renderer;carouselService;animateService;owlDraggable;stageData;slidesData;listenerMouseMove;listenerTouchMove;listenerOneMouseMove;listenerOneTouchMove;listenerMouseUp;listenerTouchEnd;listenerOneClick;listenerATag;_drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1};_oneDragMove$=new D.x;_oneMoveSubsription;preparePublicSlide=G=>{const U={...G};return delete U.tplRef,U};constructor(G,U,ve,Pe,ut){this.zone=G,this.el=U,this.renderer=ve,this.carouselService=Pe,this.animateService=ut}onMouseDown(G){this.owlDraggable.isMouseDragable&&this._onDragStart(G)}onTouchStart(G){if(G.targetTouches.length>=2)return!1;this.owlDraggable.isTouchDragable&&this._onDragStart(G)}onTouchCancel(G){this._onDragEnd(G)}onDragStart(){if(this.owlDraggable.isMouseDragable)return!1}onSelectStart(){if(this.owlDraggable.isMouseDragable)return!1}ngOnInit(){this._oneMoveSubsription=this._oneDragMove$.pipe((0,ue.P)()).subscribe(()=>{this._sendChanges()})}ngOnDestroy(){this._oneMoveSubsription.unsubscribe()}bindOneMouseTouchMove=G=>{this._oneMouseTouchMove(G)};bindOnDragMove=G=>{this._onDragMove(G)};bindOnDragEnd=G=>{this._onDragEnd(G)};_onDragStart(G){let U=null;3!==G.which&&(U=this._prepareDragging(G),this._drag.time=(new Date).getTime(),this._drag.target=G.target,this._drag.stage.start=U,this._drag.stage.current=U,this._drag.pointer=this._pointer(G),this.listenerMouseUp=this.renderer.listen(document,"mouseup",this.bindOnDragEnd),this.listenerTouchEnd=this.renderer.listen(document,"touchend",this.bindOnDragEnd),this.zone.runOutsideAngular(()=>{this.listenerOneMouseMove=this.renderer.listen(document,"mousemove",this.bindOneMouseTouchMove),this.listenerOneTouchMove=this.renderer.listen(document,"touchmove",this.bindOneMouseTouchMove)}))}_oneMouseTouchMove(G){const U=this._difference(this._drag.pointer,this._pointer(G));this.listenerATag&&this.listenerATag(),!(Math.abs(U.x)<3&&Math.abs(U.y)<3&&this._is("valid"))&&(Math.abs(U.x)<3&&Math.abs(U.x)!1))}_onDragMove(G){let U;const ve=this.carouselService.defineNewCoordsDrag(G,this._drag);!1!==ve&&(U=ve,G.preventDefault(),this._drag.stage.current=U,this._animate(U.x-this._drag.stage.start.x))}_animate(G){this.renderer.setStyle(this.el.nativeElement.children[0],"transform",`translate3d(${G}px,0px,0px`),this.renderer.setStyle(this.el.nativeElement.children[0],"transition","0s")}_onDragEnd(G){this.carouselService.owlDOMData.isGrab=!1,this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving&&(this.renderer.setStyle(this.el.nativeElement.children[0],"transform",""),this.renderer.setStyle(this.el.nativeElement.children[0],"transition",this.carouselService.speed(+this.carouselService.settings.dragEndSpeed||this.carouselService.settings.smartSpeed)/1e3+"s"),this._finishDragging(G),this.listenerMouseMove(),this.listenerTouchMove()),this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this.listenerMouseUp(),this.listenerTouchEnd()}_prepareDragging(G){return this.carouselService.prepareDragging(G)}_oneClickHandler=()=>{this.listenerOneClick=this.renderer.listen(this._drag.target,"click",()=>!1),this.listenerOneClick()};_finishDragging(G){this.carouselService.finishDragging(G,this._drag,this._oneClickHandler)}_pointer(G){return this.carouselService.pointer(G)}_difference(G,U){return this.carouselService.difference(G,U)}_is(G){return this.carouselService.is(G)}_enter(G){this.carouselService.enter(G)}_sendChanges(){this.carouselService.sendChanges()}onTransitionEnd(){this.carouselService.onTransitionEnd()}_enterDragging(){this.carouselService.enterDragging()}clear(G){this.animateService.clear(G)}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ze),e.Y36(Oe))};static \u0275cmp=e.Xpm({type:qt,selectors:[["owl-stage"]],hostBindings:function(U,ve){1&U&&e.NdJ("mousedown",function(ut){return ve.onMouseDown(ut)})("touchstart",function(ut){return ve.onTouchStart(ut)})("touchcancel",function(ut){return ve.onTouchCancel(ut)})("dragstart",function(){return ve.onDragStart()})("selectstart",function(){return ve.onSelectStart()})},inputs:{owlDraggable:"owlDraggable",stageData:"stageData",slidesData:"slidesData"},decls:3,vars:8,consts:[[1,"owl-stage",3,"ngStyle","transitionend"],[4,"ngFor","ngForOf"],[1,"owl-item",3,"ngClass","ngStyle","animationend"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(U,ve){1&U&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("transitionend",function(){return ve.onTransitionEnd()}),e.YNc(2,un,3,9,"ng-container",1),e.qZA()()),2&U&&(e.xp6(1),e.Q6J("ngStyle",e.qbA(2,Jt,ve.stageData.width+"px",ve.stageData.transform,ve.stageData.transition,ve.stageData.paddingL?ve.stageData.paddingL+"px":"",ve.stageData.paddingR?ve.stageData.paddingR+"px":"")),e.xp6(1),e.Q6J("ngForOf",ve.slidesData))},dependencies:[l.mk,l.sg,l.O5,l.tP,l.PC],encapsulation:2,data:{animation:[(0,Tt.X$)("autoHeight",[(0,Tt.SB)("nulled",(0,Tt.oB)({height:0})),(0,Tt.SB)("full",(0,Tt.oB)({height:"*"})),(0,Tt.eR)("full => nulled",[(0,Tt.jt)("700ms 350ms")]),(0,Tt.eR)("nulled => full",[(0,Tt.jt)(350)])])]}})}return qt})(),fn=(()=>{class qt{el;resizeService;carouselService;navigationService;autoplayService;lazyLoadService;animateService;autoHeightService;hashService;logger;changeDetectorRef;slides;translated=new e.vpe;dragging=new e.vpe;change=new e.vpe;changed=new e.vpe;initialized=new e.vpe;carouselWindowWidth;resizeSubscription;_allObservSubscription;_slidesChangesSubscription;owlDOMData;stageData;slidesData=[];navData;dotsData;slidesOutputData;carouselLoaded=!1;options;prevOptions;_viewCurSettings$;_translatedCarousel$;_draggingCarousel$;_changeCarousel$;_changedCarousel$;_initializedCarousel$;_carouselMerge$;docRef;constructor(G,U,ve,Pe,ut,We,ze,be,Te,He,Wt,Pn){this.el=G,this.resizeService=U,this.carouselService=ve,this.navigationService=Pe,this.autoplayService=ut,this.lazyLoadService=We,this.animateService=ze,this.autoHeightService=be,this.hashService=Te,this.logger=He,this.changeDetectorRef=Wt,this.docRef=Pn}onVisibilityChange(G){if(this.carouselService.settings.autoplay)switch(this.docRef.visibilityState){case"visible":!this.autoplayService.isAutoplayStopped&&this.autoplayService.play();break;case"hidden":this.autoplayService.pause()}}ngOnInit(){this.spyDataStreams(),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}ngOnChanges(){this.prevOptions!==this.options&&(this.prevOptions&&this.slides?.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray())):this.prevOptions&&!this.slides?.toArray().length?(this.carouselLoaded=!1,this.logger.log("There are no slides to show. So the carousel won't be re-rendered")):this.carouselLoaded=!1,this.prevOptions=this.options)}ngAfterContentInit(){this.slides.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray()),this._winResizeWatcher()):this.logger.log("There are no slides to show. So the carousel won't be rendered"),this._slidesChangesSubscription=this.slides.changes.pipe((0,Z.b)(G=>{this.carouselService.setup(this.carouselWindowWidth,G.toArray(),this.options),this.carouselService.initialize(G.toArray()),G.toArray().length||(this.carouselLoaded=!1),G.toArray().length&&!this.resizeSubscription&&this._winResizeWatcher()})).subscribe(()=>{})}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe(),this._slidesChangesSubscription&&this._slidesChangesSubscription.unsubscribe(),this._allObservSubscription&&this._allObservSubscription.unsubscribe()}spyDataStreams(){this._viewCurSettings$=this.carouselService.getViewCurSettings().pipe((0,Z.b)(G=>{this.owlDOMData=G.owlDOMData,this.stageData=G.stageData,this.slidesData=G.slidesData,this.carouselLoaded||(this.carouselLoaded=!0),this.navData=G.navData,this.dotsData=G.dotsData,this.changeDetectorRef.markForCheck()})),this._initializedCarousel$=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.initialized.emit(this.slidesOutputData)})),this._translatedCarousel$=this.carouselService.getTranslatedState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.translated.emit(this.slidesOutputData)})),this._changeCarousel$=this.carouselService.getChangeState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.change.emit(this.slidesOutputData)})),this._changedCarousel$=this.carouselService.getChangeState().pipe((0,re.w)(G=>{const U=(0,S.of)(G).pipe((0,ee.h)(()=>"position"===G.property.name),(0,re.w)(()=>(0,n.D)(this.slidesData)),(0,te.T)(G.property.value),(0,se.q)(this.carouselService.settings.items),(0,oe.U)(ve=>{const Pe=this.carouselService.clonedIdPrefix,ut=ve.id.indexOf(Pe)>=0?ve.id.slice(Pe.length):ve.id;return{...ve,id:ut,isActive:!0}}),function Ge(){return(0,_e.e)((qt,_t)=>{(function Re(qt,_t){return(0,_e.e)((0,ce.U)(qt,_t,arguments.length>=2,!1,!0))})(mt,[])(qt).subscribe(_t)})}(),(0,oe.U)(ve=>({slides:ve,startPosition:this.carouselService.relative(G.property.value)})));return(0,I.T)(U)}),(0,Z.b)(G=>{this.gatherTranslatedData(),this.changed.emit(G.slides.length?G:this.slidesOutputData)})),this._draggingCarousel$=this.carouselService.getDragState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.dragging.emit({dragging:!0,data:this.slidesOutputData})}),(0,re.w)(()=>this.carouselService.getDraggedState().pipe((0,oe.U)(()=>!!this.carouselService.is("animating")))),(0,re.w)(G=>G?this.carouselService.getTranslatedState().pipe((0,ue.P)()):(0,S.of)("not animating")),(0,Z.b)(()=>{this.dragging.emit({dragging:!1,data:this.slidesOutputData})})),this._carouselMerge$=(0,I.T)(this._viewCurSettings$,this._translatedCarousel$,this._draggingCarousel$,this._changeCarousel$,this._changedCarousel$,this._initializedCarousel$),this._allObservSubscription=this._carouselMerge$.subscribe(()=>{})}_winResizeWatcher(){Object.keys(this.carouselService._options.responsive).length&&(this.resizeSubscription=this.resizeService.onResize$.pipe((0,ee.h)(()=>this.carouselWindowWidth!==this.el.nativeElement.querySelector(".owl-carousel").clientWidth),(0,Lt.g)(this.carouselService.settings.responsiveRefreshRate)).subscribe(()=>{this.carouselService.onResize(this.el.nativeElement.querySelector(".owl-carousel").clientWidth),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}))}onTransitionEnd(){this.carouselService.onTransitionEnd()}next(){this.carouselLoaded&&this.navigationService.next(this.carouselService.settings.navSpeed)}prev(){this.carouselLoaded&&this.navigationService.prev(this.carouselService.settings.navSpeed)}moveByDot(G){this.carouselLoaded&&this.navigationService.moveByDot(G)}to(G){this.carouselLoaded&&this.navigationService.toSlideById(G)}gatherTranslatedData(){let G;const U=this.carouselService.clonedIdPrefix,ve=this.slidesData.filter(Pe=>!0===Pe.isActive).map(Pe=>({id:Pe.id.indexOf(U)>=0?Pe.id.slice(U.length):Pe.id,width:Pe.width,marginL:Pe.marginL,marginR:Pe.marginR,center:Pe.isCentered}));G=this.carouselService.relative(this.carouselService.current()),this.slidesOutputData={startPosition:G,slides:ve}}startPausing(){this.autoplayService.startPausing()}startPlayML(){this.autoplayService.startPlayingMouseLeave()}startPlayTE(){this.autoplayService.startPlayingTouchEnd()}stopAutoplay(){this.autoplayService.isAutoplayStopped=!0,this.autoplayService.stop()}startAutoplay(){this.autoplayService.isAutoplayStopped=!1,this.autoplayService.play()}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.SBq),e.Y36(Bt),e.Y36(Ze),e.Y36(rt),e.Y36(J),e.Y36(ae),e.Y36(Oe),e.Y36(ot),e.Y36(Se),e.Y36(Be),e.Y36(e.sBO),e.Y36(vn))};static \u0275cmp=e.Xpm({type:qt,selectors:[["owl-carousel-o"]],contentQueries:function(U,ve,Pe){if(1&U&&e.Suo(Pe,lt,4),2&U){let ut;e.iGM(ut=e.CRH())&&(ve.slides=ut)}},hostBindings:function(U,ve){1&U&&e.NdJ("visibilitychange",function(ut){return ve.onVisibilityChange(ut)},!1,e.evT)},inputs:{options:"options"},outputs:{translated:"translated",dragging:"dragging",change:"change",changed:"changed",initialized:"initialized"},features:[e._Bn([rt,J,Ze,ae,Oe,ot,Se]),e.TTD],decls:4,vars:9,consts:[[1,"owl-carousel","owl-theme",3,"ngClass","mouseover","mouseleave","touchstart","touchend"],["owlCarousel",""],["class","owl-stage-outer",4,"ngIf"],[4,"ngIf"],[1,"owl-stage-outer"],[3,"owlDraggable","stageData","slidesData"],[1,"owl-nav",3,"ngClass"],[1,"owl-prev",3,"ngClass","innerHTML","click"],[1,"owl-next",3,"ngClass","innerHTML","click"],[1,"owl-dots",3,"ngClass"],["class","owl-dot",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"owl-dot",3,"ngClass","click"],[3,"innerHTML"]],template:function(U,ve){1&U&&(e.TgZ(0,"div",0,1),e.NdJ("mouseover",function(){return ve.startPausing()})("mouseleave",function(){return ve.startPlayML()})("touchstart",function(){return ve.startPausing()})("touchend",function(){return ve.startPlayTE()}),e.YNc(2,wn,2,6,"div",2),e.YNc(3,gi,6,15,"ng-container",3),e.qZA()),2&U&&(e.Q6J("ngClass",e.qbA(3,Rn,null==ve.owlDOMData?null:ve.owlDOMData.rtl,null==ve.owlDOMData?null:ve.owlDOMData.isLoaded,null==ve.owlDOMData?null:ve.owlDOMData.isResponsive,null==ve.owlDOMData?null:ve.owlDOMData.isMouseDragable,null==ve.owlDOMData?null:ve.owlDOMData.isGrab)),e.xp6(2),e.Q6J("ngIf",ve.carouselLoaded),e.xp6(1),e.Q6J("ngIf",ve.slides.toArray().length))},dependencies:[l.mk,l.sg,l.O5,Ut],styles:[".owl-theme[_ngcontent-%COMP%]{display:block}"],changeDetection:0})}return qt})(),oi=(()=>{class qt{static \u0275fac=function(U){return new(U||qt)};static \u0275mod=e.oAB({type:qt});static \u0275inj=e.cJS({providers:[rn,Bt,Ce,Be],imports:[l.ez]})}return qt})()},2425:(ft,Ie,C)=>{"use strict";C.d(Ie,{FN:()=>Ln,Rh:()=>gi,_W:()=>wn});var e=C(5879),l=C(6825),D=C(6814),I=C(8645),S=C(6593);const w=["toast-component",""];function n(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.remove())}),e.TgZ(1,"span",6),e._uU(2,"\xd7"),e.qZA()()}}function Z(Ee,$e){if(1&Ee&&(e.ynx(0),e._uU(1),e.BQk()),2&Ee){const me=e.oxw(2);e.xp6(1),e.hij("[",me.duplicatesCount+1,"]")}}function ee(Ee,$e){if(1&Ee&&(e.TgZ(0,"div"),e._uU(1),e.YNc(2,Z,2,1,"ng-container",4),e.qZA()),2&Ee){const me=e.oxw();e.Tol(me.options.titleClass),e.uIk("aria-label",me.title),e.xp6(1),e.hij(" ",me.title," "),e.xp6(1),e.Q6J("ngIf",me.duplicatesCount)}}function re(Ee,$e){if(1&Ee&&e._UZ(0,"div",7),2&Ee){const me=e.oxw();e.Tol(me.options.messageClass),e.Q6J("innerHTML",me.message,e.oJD)}}function ue(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&Ee){const me=e.oxw();e.Tol(me.options.messageClass),e.uIk("aria-label",me.message),e.xp6(1),e.hij(" ",me.message," ")}}function se(Ee,$e){if(1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"div",9),e.qZA()),2&Ee){const me=e.oxw();e.xp6(1),e.Udp("width",me.width+"%")}}class Lt{_attachedHost;component;viewContainerRef;injector;constructor($e,me){this.component=$e,this.injector=me}attach($e,me){return this._attachedHost=$e,$e.attach(this,me)}detach(){const $e=this._attachedHost;if($e)return this._attachedHost=void 0,$e.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost($e){this._attachedHost=$e}}class je{_attachedPortal;_disposeFn;attach($e,me){return this._attachedPortal=$e,this.attachComponentPortal($e,me)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn($e){this._disposeFn=$e}}class Tt{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new I.x;_activate=new I.x;_manualClose=new I.x;_resetTimeout=new I.x;_countDuplicate=new I.x;constructor($e){this._overlayRef=$e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate($e,me){$e&&this._resetTimeout.next(),me&&this._countDuplicate.next(++this.duplicatesCount)}}class xt{toastId;config;message;title;toastType;toastRef;_onTap=new I.x;_onAction=new I.x;constructor($e,me,tt,he,Ze,rt){this.toastId=$e,this.config=me,this.message=tt,this.title=he,this.toastType=Ze,this.toastRef=rt,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction($e){this._onAction.next($e)}onAction(){return this._onAction.asObservable()}}const Zt=new e.OlP("ToastConfig");class yt extends je{_hostDomElement;_componentFactoryResolver;_appRef;constructor($e,me,tt){super(),this._hostDomElement=$e,this._componentFactoryResolver=me,this._appRef=tt}attachComponentPortal($e,me){const tt=this._componentFactoryResolver.resolveComponentFactory($e.component);let he;return he=tt.create($e.injector),this._appRef.attachView(he.hostView),this.setDisposeFn(()=>{this._appRef.detachView(he.hostView),he.destroy()}),me?this._hostDomElement.insertBefore(this._getComponentRootNode(he),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(he)),he}_getComponentRootNode($e){return $e.hostView.rootNodes[0]}}let un=(()=>{class Ee{_document=(0,e.f3M)(D.K0);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const me=this._document.createElement("div");me.classList.add("overlay-container"),me.setAttribute("aria-live","polite"),this._document.body.appendChild(me),this._containerElement=me}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();class Jt{_portalHost;constructor($e){this._portalHost=$e}attach($e,me=!0){return this._portalHost.attach($e,me)}detach(){return this._portalHost.detach()}}let tn=(()=>{class Ee{_overlayContainer=(0,e.f3M)(un);_componentFactoryResolver=(0,e.f3M)(e._Vd);_appRef=(0,e.f3M)(e.z2F);_document=(0,e.f3M)(D.K0);_paneElements=new Map;create(me,tt){return this._createOverlayRef(this.getPaneElement(me,tt))}getPaneElement(me="",tt){return this._paneElements.get(tt)||this._paneElements.set(tt,{}),this._paneElements.get(tt)[me]||(this._paneElements.get(tt)[me]=this._createPaneElement(me,tt)),this._paneElements.get(tt)[me]}_createPaneElement(me,tt){const he=this._document.createElement("div");return he.id="toast-container",he.classList.add(me),he.classList.add("toast-container"),tt?tt.getContainerElement().appendChild(he):this._overlayContainer.getContainerElement().appendChild(he),he}_createPortalHost(me){return new yt(me,this._componentFactoryResolver,this._appRef)}_createOverlayRef(me){return new Jt(this._createPortalHost(me))}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),wn=(()=>{class Ee{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(me,tt,he,Ze,rt){this.overlay=tt,this._injector=he,this.sanitizer=Ze,this.ngZone=rt,this.toastrConfig={...me.default,...me.config},me.config.iconClasses&&(this.toastrConfig.iconClasses={...me.default.iconClasses,...me.config.iconClasses})}show(me,tt,he={},Ze=""){return this._preBuildNotification(Ze,me,tt,this.applyConfig(he))}success(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",me,tt,this.applyConfig(he))}error(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",me,tt,this.applyConfig(he))}info(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",me,tt,this.applyConfig(he))}warning(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",me,tt,this.applyConfig(he))}clear(me){for(const tt of this.toasts)if(void 0!==me){if(tt.toastId===me)return void tt.toastRef.manualClose()}else tt.toastRef.manualClose()}remove(me){const tt=this._findToast(me);if(!tt||(tt.activeToast.toastRef.close(),this.toasts.splice(tt.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(me,tt,he,Ze)):this._buildNotification(me,tt,he,Ze)}_buildNotification(me,tt,he,Ze){if(!Ze.toastComponent)throw new Error("toastComponent required");const rt=this.findDuplicate(he,tt,this.toastrConfig.resetTimeoutOnDuplicate&&Ze.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&he||tt)&&this.toastrConfig.preventDuplicates&&null!==rt)return rt;this.previousToastMessage=tt;let bt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(bt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Nt=this.overlay.create(Ze.positionClass,this.overlayContainer);this.index=this.index+1;let Qt=tt;tt&&Ze.enableHtml&&(Qt=this.sanitizer.sanitize(e.q3G.HTML,tt));const nn=new Tt(Nt),Dn=new xt(this.index,Ze,Qt,he,me,nn),rn=e.zs3.create({providers:[{provide:xt,useValue:Dn}],parent:this._injector}),vn=new Lt(Ze.toastComponent,rn),ei=Nt.attach(vn,Ze.newestOnTop);nn.componentInstance=ei.instance;const Wn={toastId:this.index,title:he||"",message:tt||"",toastRef:nn,onShown:nn.afterActivate(),onHidden:nn.afterClosed(),onTap:Dn.onTap(),onAction:Dn.onAction(),portal:ei};return bt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Wn.toastRef.activate()})),this.toasts.push(Wn),Wn}static \u0275fac=function(tt){return new(tt||Ee)(e.LFG(Zt),e.LFG(tn),e.LFG(e.zs3),e.LFG(S.H7),e.LFG(e.R0b))};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),Ln=(()=>{class Ee{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(me,tt,he){this.toastrService=me,this.toastPackage=tt,this.ngZone=he,this.message=tt.message,this.title=tt.title,this.options=tt.config,this.originalTimeout=tt.config.timeOut,this.toastClasses=`${tt.toastType} ${tt.config.toastClass}`,this.sub=tt.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=tt.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=tt.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=tt.toastRef.countDuplicate().subscribe(Ze=>{this.duplicatesCount=Ze}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const me=(new Date).getTime();this.width=(this.hideTime-me)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(me,tt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(me),tt)):this.timeout=setTimeout(()=>me(),tt)}outsideInterval(me,tt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(me),tt)):this.intervalId=setInterval(()=>me(),tt)}runInsideAngular(me){this.ngZone?this.ngZone.run(()=>me()):me()}static \u0275fac=function(tt){return new(tt||Ee)(e.Y36(wn),e.Y36(xt),e.Y36(e.R0b))};static \u0275cmp=e.Xpm({type:Ee,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(tt,he){1&tt&&e.NdJ("click",function(){return he.tapToast()})("mouseenter",function(){return he.stickAround()})("mouseleave",function(){return he.delayedHideToast()}),2&tt&&(e.d8E("@flyInOut",he.state),e.Tol(he.toastClasses),e.Udp("display",he.displayStyle))},standalone:!0,features:[e.jDz],attrs:w,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(tt,he){1&tt&&(e.YNc(0,n,3,0,"button",0),e.YNc(1,ee,3,5,"div",1),e.YNc(2,re,1,3,"div",2),e.YNc(3,ue,2,4,"div",3),e.YNc(4,se,2,2,"div",4)),2&tt&&(e.Q6J("ngIf",he.options.closeButton),e.xp6(1),e.Q6J("ngIf",he.title),e.xp6(1),e.Q6J("ngIf",he.message&&he.options.enableHtml),e.xp6(1),e.Q6J("ngIf",he.message&&!he.options.enableHtml),e.xp6(1),e.Q6J("ngIf",he.options.progressBar))},dependencies:[D.O5],encapsulation:2,data:{animation:[(0,l.X$)("flyInOut",[(0,l.SB)("inactive",(0,l.oB)({opacity:0})),(0,l.SB)("active",(0,l.oB)({opacity:1})),(0,l.SB)("removed",(0,l.oB)({opacity:0})),(0,l.eR)("inactive => active",(0,l.jt)("{{ easeTime }}ms {{ easing }}")),(0,l.eR)("active => removed",(0,l.jt)("{{ easeTime }}ms {{ easing }}"))])]}})}return Ee})();const Yn={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:Ln},ti=(Ee={})=>(0,e.MR2)([{provide:Zt,useValue:{default:Yn,config:Ee}}]);let gi=(()=>{class Ee{static forRoot(me={}){return{ngModule:Ee,providers:[ti(me)]}}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275mod=e.oAB({type:Ee});static \u0275inj=e.cJS({})}return Ee})()},5861:(ft,Ie,C)=>{"use strict";function e(D,I,S,w,n,Z,ee){try{var re=D[Z](ee),ue=re.value}catch(se){return void S(se)}re.done?I(ue):Promise.resolve(ue).then(w,n)}function l(D){return function(){var I=this,S=arguments;return new Promise(function(w,n){var Z=D.apply(I,S);function ee(ue){e(Z,w,n,ee,re,"next",ue)}function re(ue){e(Z,w,n,ee,re,"throw",ue)}ee(void 0)})}}C.d(Ie,{Z:()=>l})},7582:(ft,Ie,C)=>{"use strict";function S(dt,at,Be,Ee){var tt,$e=arguments.length,me=$e<3?at:null===Ee?Ee=Object.getOwnPropertyDescriptor(at,Be):Ee;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)me=Reflect.decorate(dt,at,Be,Ee);else for(var he=dt.length-1;he>=0;he--)(tt=dt[he])&&(me=($e<3?tt(me):$e>3?tt(at,Be,me):tt(at,Be))||me);return $e>3&&me&&Object.defineProperty(at,Be,me),me}function ue(dt,at){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(dt,at)}function se(dt,at,Be,Ee){return new(Be||(Be=Promise))(function(me,tt){function he(bt){try{rt(Ee.next(bt))}catch(Nt){tt(Nt)}}function Ze(bt){try{rt(Ee.throw(bt))}catch(Nt){tt(Nt)}}function rt(bt){bt.done?me(bt.value):function $e(me){return me instanceof Be?me:new Be(function(tt){tt(me)})}(bt.value).then(he,Ze)}rt((Ee=Ee.apply(dt,at||[])).next())})}function je(dt){return this instanceof je?(this.v=dt,this):new je(dt)}function Tt(dt,at,Be){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $e,Ee=Be.apply(dt,at||[]),me=[];return $e={},tt("next"),tt("throw"),tt("return"),$e[Symbol.asyncIterator]=function(){return this},$e;function tt(Qt){Ee[Qt]&&($e[Qt]=function(nn){return new Promise(function(Dn,Ot){me.push([Qt,nn,Dn,Ot])>1||he(Qt,nn)})})}function he(Qt,nn){try{!function Ze(Qt){Qt.value instanceof je?Promise.resolve(Qt.value.v).then(rt,bt):Nt(me[0][2],Qt)}(Ee[Qt](nn))}catch(Dn){Nt(me[0][3],Dn)}}function rt(Qt){he("next",Qt)}function bt(Qt){he("throw",Qt)}function Nt(Qt,nn){Qt(nn),me.shift(),me.length&&he(me[0][0],me[0][1])}}function St(dt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Be,at=dt[Symbol.asyncIterator];return at?at.call(dt):(dt=function _e(dt){var at="function"==typeof Symbol&&Symbol.iterator,Be=at&&dt[at],Ee=0;if(Be)return Be.call(dt);if(dt&&"number"==typeof dt.length)return{next:function(){return dt&&Ee>=dt.length&&(dt=void 0),{value:dt&&dt[Ee++],done:!dt}}};throw new TypeError(at?"Object is not iterable.":"Symbol.iterator is not defined.")}(dt),Be={},Ee("next"),Ee("throw"),Ee("return"),Be[Symbol.asyncIterator]=function(){return this},Be);function Ee(me){Be[me]=dt[me]&&function(tt){return new Promise(function(he,Ze){!function $e(me,tt,he,Ze){Promise.resolve(Ze).then(function(rt){me({value:rt,done:he})},tt)}(he,Ze,(tt=dt[me](tt)).done,tt.value)})}}}C.d(Ie,{FC:()=>Tt,KL:()=>St,gn:()=>S,mG:()=>se,qq:()=>je,w6:()=>ue}),"function"==typeof SuppressedError&&SuppressedError}},ft=>{var Ie=e=>ft(ft.s=e);Ie(9334),Ie(913)}]); \ No newline at end of file diff --git a/bn-BN/ngsw.json b/bn-BN/ngsw.json index 6135304..148e022 100644 --- a/bn-BN/ngsw.json +++ b/bn-BN/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1705810591675, + "timestamp": 1705818660138, "index": "/bn-BN/index.html", "assetGroups": [ { @@ -11,17 +11,17 @@ "ignoreVary": true }, "urls": [ - "/bn-BN/318.7cb67f06e0d0b960.js", - "/bn-BN/326.ec29f673254ec6d6.js", - "/bn-BN/424.c731aac7a204dc96.js", + "/bn-BN/318.2d0f753258aa2e26.js", + "/bn-BN/326.38354acd47162138.js", + "/bn-BN/424.05662c3e665c7706.js", "/bn-BN/527.095cf4e6fe2f02b0.js", - "/bn-BN/754.c30013e525ccd33c.js", + "/bn-BN/754.a68f3dd41de9e035.js", "/bn-BN/favicon.ico", "/bn-BN/index.html", - "/bn-BN/main.564757f70d749b54.js", + "/bn-BN/main.cdd6c90df8adce6a.js", "/bn-BN/manifest.webmanifest", "/bn-BN/polyfills.727cf5575891b83a.js", - "/bn-BN/runtime.9647eb106d84aad4.js", + "/bn-BN/runtime.428f2f87d74ace4a.js", "/bn-BN/scripts.e4d55d4ecb30a6ee.js", "/bn-BN/styles.7169560c938eaf48.css" ], @@ -1446,11 +1446,11 @@ ], "dataGroups": [], "hashTable": { - "/bn-BN/318.7cb67f06e0d0b960.js": "6abfe33954fbb62f4aaa39cb34422c9752acddb2", - "/bn-BN/326.ec29f673254ec6d6.js": "4bcf9a17bb4cfcc14f6670c27dca8fbd168248e5", - "/bn-BN/424.c731aac7a204dc96.js": "bffd067f32eb7e56b71cb396029139012b9d44bb", + "/bn-BN/318.2d0f753258aa2e26.js": "860145696d3deb5734aecb41760ec3ca9d6e4e2a", + "/bn-BN/326.38354acd47162138.js": "ed013434afe8b7e8e84eee033e67f1d8f4bd3562", + "/bn-BN/424.05662c3e665c7706.js": "74db6594e088abd372d8564b8b695859a479c12f", "/bn-BN/527.095cf4e6fe2f02b0.js": "8d28184cda69fe9e3279bcb8371ff759d136e77c", - "/bn-BN/754.c30013e525ccd33c.js": "a0b44e79f4af842186d249ea57c95109721e8cc4", + "/bn-BN/754.a68f3dd41de9e035.js": "e93185d032efa128fe59c5caa2316f2125706eba", "/bn-BN/Poppins-Bold.3b6def8cef97005c.ttf": "b9b65c039a1f10a5cb5e0726c6e7e18e98a8e517", "/bn-BN/Poppins-BoldItalic.43c9dce85098452e.ttf": "5b2f8f7c4bbd52b6a1948c9781b45b17d31430ea", "/bn-BN/Poppins-Italic.1d618e7c034d2065.ttf": "597eeb5ac2ce09c6f57ee14457a91be9e4a826cd", @@ -1598,7 +1598,7 @@ "/bn-BN/assets/apanel/images/users/avatar-7.jpg": "7d20b491a7a2c70113b765cac41f60b9abe28dcf", "/bn-BN/assets/apanel/images/users/avatar-8.jpg": "4448052e4311c8de773eda4db497104be9a7175d", "/bn-BN/assets/apanel/images/verification-img.png": "d5bfe83044859bea1aac00a2adedef25d8bf0331", - "/bn-BN/assets/apanel/js/app.js": "bb73200e17381abc14861b5c7ea315d185885c34", + "/bn-BN/assets/apanel/js/app.js": "91591a8f63ba5c1a3b1066ac4a83289b410a9394", "/bn-BN/assets/apanel/js/pages/alerts.init.js": "caa19bf1d26940f520810978837c6696813a0e9b", "/bn-BN/assets/apanel/js/pages/apexcharts.init.js": "4a2a8ccabeae15c4207cb7bdbcaca1c3693643c6", "/bn-BN/assets/apanel/js/pages/auth-2-carousel.init.js": "67aed26ca7db51e6ea84d37741d673a151c84bcc", @@ -1665,7 +1665,7 @@ "/bn-BN/assets/apanel/js/pages/two-step-verification.init.js": "19bf47efb16f5c0d98c1be93004f1d7c97fd7371", "/bn-BN/assets/apanel/js/pages/validation.init.js": "90f0cd33824fafdb7d2b5c4153f9eca121aa4d24", "/bn-BN/assets/apanel/js/pages/vector-maps.init.js": "dab762bff9ac7a154f099cda6b9a7c280247d35c", - "/bn-BN/assets/apanel/js/plugin.js": "dc0b5d170b0eb39bcf5e18eac6c932f1ac501ccf", + "/bn-BN/assets/apanel/js/plugin.js": "c77b2de6b501b74f053b7845083c6c3314cbcb19", "/bn-BN/assets/apanel/lang/en.json": "25c12e273901d8d20bf033e7692188a7a2f4e13e", "/bn-BN/assets/apanel/lang/gr.json": "95f5953a998d17f778c00feabaf7004752e1d40e", "/bn-BN/assets/apanel/lang/it.json": "10f499e6ba87df985435eafea2b9c4ff95a0882a", @@ -2856,12 +2856,12 @@ "/bn-BN/assets/img/youtube-reviews/youtube-review-5.png": "69a31b120df57cf7b75a707dbcc1af41f5a87625", "/bn-BN/assets/img/youtube-reviews/youtube-review.png": "92f5001b63e165acb6a23ca43dcec0732700d8d5", "/bn-BN/favicon.ico": "22f6a4a3bcaafafb0254e0f2fa4ceb89e505e8b2", - "/bn-BN/index.html": "c6caf63cf72dcbdb57420f9bb37d8779d7cde6d6", - "/bn-BN/main.564757f70d749b54.js": "2ef72d13a72fb9acf9c2df365ff1bffb3baf43cb", + "/bn-BN/index.html": "125a8e9ce3ccb118f407683fb17c0fc3e6fdf839", + "/bn-BN/main.cdd6c90df8adce6a.js": "3121bf5f8e2b3a263ca8b1baf636a5da5d6039e8", "/bn-BN/manifest.webmanifest": "23f0dd9f1e5be7f6547870743bac07ee03e0e0c3", "/bn-BN/owl.video.play.e3b436436832b027.png": "c0d64356ec2758cb280d183b4829c923e5ff61e5", "/bn-BN/polyfills.727cf5575891b83a.js": "f2a631415514c063ec3a36a1379cb974ead0bcb9", - "/bn-BN/runtime.9647eb106d84aad4.js": "2cc3c67b71625dc82510866c225ba3e7c216584b", + "/bn-BN/runtime.428f2f87d74ace4a.js": "71a4735a8c5488ddfd56971ab61ea7359f3bf1f8", "/bn-BN/scripts.e4d55d4ecb30a6ee.js": "d172f2c1fc23ac3c05f29fb16f95644ba6565d3b", "/bn-BN/styles.7169560c938eaf48.css": "e010354042bfc64c72171a68eccf1de016a8a279" }, diff --git a/bn-BN/runtime.428f2f87d74ace4a.js b/bn-BN/runtime.428f2f87d74ace4a.js new file mode 100644 index 0000000..8800292 --- /dev/null +++ b/bn-BN/runtime.428f2f87d74ace4a.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,i,o)=>{if(!t){var a=1/0;for(f=0;f=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(c=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[t,i,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{318:"2d0f753258aa2e26",326:"38354acd47162138",424:"05662c3e665c7706",527:"095cf4e6fe2f02b0",754:"a68f3dd41de9e035"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="bankrupt-frontend:";r.l=(t,i,o,f)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==o)for(var d=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=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=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,o)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)o.push(f[2]);else if(666!=i){var a=new Promise((u,s)=>f=e[i]=[u,s]);o.push(f[2]=a);var c=r.p+r.u(i),d=new Error;r.l(c,u=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;d.message="Loading chunk "+i+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,f[1](d)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,o)=>{var d,l,[f,a,c]=o,u=0;if(f.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(c)var s=c(r)}for(i&&i(o);u{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,i,d)=>{if(!t){var a=1/0;for(f=0;f=d)&&Object.keys(r.O).every(b=>r.O[b](t[o]))?t.splice(o--,1):(s=!1,d0&&e[f-1][2]>d;f--)e[f]=e[f-1];e[f]=[t,i,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{318:"7cb67f06e0d0b960",326:"ec29f673254ec6d6",424:"c731aac7a204dc96",527:"095cf4e6fe2f02b0",754:"c30013e525ccd33c"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="bankrupt-frontend:";r.l=(t,i,d,f)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==d)for(var o=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,d)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)d.push(f[2]);else if(666!=i){var a=new Promise((u,c)=>f=e[i]=[u,c]);d.push(f[2]=a);var s=r.p+r.u(i),o=new Error;r.l(s,u=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var c=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;o.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",o.name="ChunkLoadError",o.type=c,o.request=p,f[1](o)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,d)=>{var o,l,[f,a,s]=d,u=0;if(f.some(p=>0!==e[p])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var c=s(r)}for(i&&i(d);u{r.d(E,{U:()=>g});var f=r(2495),v=r(553),c=r(5879);class g extends f.O{constructor(){super()}static#t=this.USERS={USER_ENDPOINT:v.N.base_url+"/api/v1/users",USER_ENDPOINT_ADMIN:v.N.base_url+"/api/v1/admin/users",SEARCH:(a,b)=>a.concat(f.O.toParamString(b)),CREATE(){return this.USER_ENDPOINT},GET(a){return this.USER_ENDPOINT+"/"+a},UPDATE(a){return this.USER_ENDPOINT+"/"+a}};static#e=this.\u0275fac=function(b){return new(b||g)};static#i=this.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"})}},3318:(R,E,r)=>{r.r(E),r.d(E,{UserModule:()=>ne});var f=r(6814),v=r(7151),c=r(9277),g=r(6223),D=r(3365),a=r(1662),b=r(6542),I=r(6676),m=r(2739),L=r(7259),h=r(8637),t=r(5879),u=r(5462),Z=r(30),C=r(6945),q=r(1547),A=r(1259),y=r(8480),p=r(9862);let T=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBus=s}search(e,n){this.http.get(A.e.ACTIVITY_LOGS.ADMIN_SEARCH(n)).subscribe(o=>{this.eventBus.publish(e,o)},o=>{this.handleError(o,s=>{this.search(e,n)},s=>{this.eventBus.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var _=r(4736),U=r(1836),x=r(6075),N=r(2770);function S(i,d){1&i&&t._UZ(0,"util-progress",11),2&i&&t.Q6J("bar",!0)}function j(i,d){if(1&i&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._uU(12),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.ALo(17,"readableDate"),t.qZA(),t.TgZ(18,"td"),t._uU(19),t.ALo(20,"readableDate"),t.qZA()()),2&i){const e=d.$implicit;t.xp6(2),t.Oqu(e.user_id),t.xp6(2),t.Oqu(e.username),t.xp6(2),t.Oqu(e.user_agent),t.xp6(2),t.Oqu(e.ip),t.xp6(2),t.Oqu(e.request_method),t.xp6(2),t.Oqu(e.url),t.xp6(2),t.Oqu(e.total_visitors),t.xp6(2),t.Oqu(t.lcZ(17,9,e.created_at)),t.xp6(3),t.Oqu(t.lcZ(20,11,e.updated_at))}}let $=(()=>{class i extends h.H{constructor(e,n,o,s,l,O){super(n,o,s),this.notifier=e,this.activatedRoute=l,this.activityLogService=O,this.size=10,this.page=1,this.activityLogs=b.H,this.username=null,this.created_from=new Date,this.created_to=new Date}componentName(){return"ActivityLogComponent"}ngOnInit(){this.activatedRoute.queryParams.subscribe(e=>{let n=e.from_date,o=e.to_date,s=e.page,l=e.size;null!=n&&null!=o?(this.created_from=I(n).toDate(),this.created_to=I(o).toDate()):(this.created_from=m.b.getDayStart(new Date(0)),this.created_to=m.b.getDayEnd(new Date)),this.searchActivityLogs({username:this.username,from_date:m.b.getDayStart(this.created_from),to_date:m.b.getDayEnd(this.created_to),page:s,size:l})})}searchActivityLogs(e){this.loading=!0;const n=this.componentKey(L.Z.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS());this.activityLogService.search(n,e),this.subscribe(n,null,(o,s)=>{this.activityLogs=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.log(s.data)})}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(u.l),t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(a.gz),t.Y36(T))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-activity-log"]],features:[t.qOj],decls:44,vars:3,consts:[[1,"row"],[3,"bar",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"card-title-desc"],[1,"table-responsive"],[1,"table","table-responsive","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[3,"page"],[3,"bar"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t.YNc(1,S,1,1,"util-progress",1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Activity Log"),t.qZA(),t.TgZ(7,"p",6),t._uU(8,"Activity logs for users"),t.qZA(),t._UZ(9,"app-basic-filter"),t.TgZ(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th")(15,"h6"),t._uU(16,"USER ID"),t.qZA()(),t.TgZ(17,"th")(18,"h6"),t._uU(19,"USERNAME"),t.qZA()(),t.TgZ(20,"th")(21,"h6"),t._uU(22,"USER AGENT"),t.qZA()(),t.TgZ(23,"th")(24,"h6"),t._uU(25,"IP"),t.qZA()(),t.TgZ(26,"th")(27,"h6"),t._uU(28,"R. METHOD"),t.qZA()(),t.TgZ(29,"th")(30,"h6"),t._uU(31,"URL"),t.qZA()(),t.TgZ(32,"th")(33,"h6"),t._uU(34,"TOTAL VISITORS"),t.qZA()(),t.TgZ(35,"th")(36,"h6"),t._uU(37,"CREATED AT"),t.qZA()(),t.TgZ(38,"th")(39,"h6"),t._uU(40,"LAST UPDATED"),t.qZA()()()(),t.TgZ(41,"tbody"),t.YNc(42,j,21,13,"tr",9),t.qZA()()(),t._UZ(43,"app-pagination",10),t.qZA()()()()),2&n&&(t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(41),t.Q6J("ngForOf",null==o.activityLogs?null:o.activityLogs.content),t.xp6(1),t.Q6J("page",o.activityLogs))},dependencies:[f.sg,f.O5,_.t,U.Q,x.D,N.G]})}return i})(),W=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBus=s}search(e,n){this.http.get(A.e.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS(n)).subscribe(o=>{this.eventBus.publish(e,o)},o=>{this.handleError(o,s=>{this.search(e,n)},s=>{this.eventBus.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function X(i,d){1&i&&t._UZ(0,"util-progress",22),2&i&&t.Q6J("bar",!0)}function tt(i,d){if(1&i&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._uU(12),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.qZA(),t.TgZ(21,"td"),t._uU(22),t.qZA(),t.TgZ(23,"td"),t._uU(24),t.qZA(),t.TgZ(25,"td"),t._uU(26),t.qZA(),t.TgZ(27,"td"),t._uU(28),t.qZA(),t.TgZ(29,"td"),t._uU(30),t.qZA(),t.TgZ(31,"td"),t._uU(32),t.qZA(),t.TgZ(33,"td"),t._uU(34),t.qZA(),t.TgZ(35,"td"),t._uU(36),t.qZA(),t.TgZ(37,"td"),t._uU(38),t.qZA(),t.TgZ(39,"td"),t._uU(40),t.qZA(),t.TgZ(41,"td"),t._uU(42),t.qZA(),t.TgZ(43,"td"),t._uU(44),t.qZA(),t.TgZ(45,"td"),t._uU(46),t.qZA(),t.TgZ(47,"td"),t._uU(48),t.qZA(),t.TgZ(49,"td"),t._uU(50),t.qZA(),t.TgZ(51,"td"),t._uU(52),t.qZA(),t.TgZ(53,"td"),t._uU(54),t.qZA(),t.TgZ(55,"td"),t._uU(56),t.qZA(),t.TgZ(57,"td"),t._uU(58),t.qZA(),t.TgZ(59,"td"),t._uU(60),t.qZA(),t.TgZ(61,"td"),t._uU(62),t.qZA(),t.TgZ(63,"td"),t._uU(64),t.qZA(),t.TgZ(65,"td"),t._uU(66),t.qZA(),t.TgZ(67,"td"),t._uU(68),t.qZA(),t.TgZ(69,"td"),t._uU(70),t.qZA(),t.TgZ(71,"td"),t._uU(72),t.qZA(),t.TgZ(73,"td"),t._uU(74),t.qZA(),t.TgZ(75,"td"),t._uU(76),t.qZA(),t.TgZ(77,"td"),t._uU(78),t.qZA(),t.TgZ(79,"td"),t._uU(80),t.qZA(),t.TgZ(81,"td"),t._uU(82),t.qZA(),t.TgZ(83,"td"),t._uU(84),t.qZA(),t.TgZ(85,"td"),t._uU(86),t.qZA(),t.TgZ(87,"td"),t._uU(88),t.qZA(),t.TgZ(89,"td"),t._uU(90),t.qZA(),t.TgZ(91,"td"),t._uU(92),t.qZA(),t.TgZ(93,"td"),t._uU(94),t.qZA(),t.TgZ(95,"td"),t._uU(96),t.qZA(),t.TgZ(97,"td"),t._uU(98),t.qZA(),t.TgZ(99,"td"),t._uU(100),t.qZA()()),2&i){const e=d.$implicit;t.xp6(2),t.Oqu(e.ip),t.xp6(2),t.Oqu(e.url),t.xp6(2),t.Oqu(e.body),t.xp6(2),t.Oqu(e.user_agent_header),t.xp6(2),t.Oqu(e.forwarded_for_header),t.xp6(2),t.Oqu(e.authorization_header),t.xp6(2),t.Oqu(e.cookie_header),t.xp6(2),t.Oqu(e.referer_header),t.xp6(2),t.Oqu(e.x_frame_options_header),t.xp6(2),t.Oqu(e.content_type_header),t.xp6(2),t.Oqu(e.origin_header),t.xp6(2),t.Oqu(e.x_http_method_override_header),t.xp6(2),t.Oqu(e.content_security_policy_header),t.xp6(2),t.Oqu(e.accept_charset_header),t.xp6(2),t.Oqu(e.accept_datetime_header),t.xp6(2),t.Oqu(e.accept_encoding_header),t.xp6(2),t.Oqu(e.accept_header),t.xp6(2),t.Oqu(e.accept_language_header),t.xp6(2),t.Oqu(e.access_control_allow_credentials_header),t.xp6(2),t.Oqu(e.access_control_allow_headers_header),t.xp6(2),t.Oqu(e.access_control_allow_methods_header),t.xp6(2),t.Oqu(e.access_control_allow_origin_header),t.xp6(2),t.Oqu(e.access_control_expose_headers_header),t.xp6(2),t.Oqu(e.access_control_max_age_header),t.xp6(2),t.Oqu(e.access_control_request_headers_header),t.xp6(2),t.Oqu(e.access_control_request_method_header),t.xp6(2),t.Oqu(e.authorization_info_header),t.xp6(2),t.Oqu(e.cache_control_header),t.xp6(2),t.Oqu(e.connection_header),t.xp6(2),t.Oqu(e.content_encoding_header),t.xp6(2),t.Oqu(e.content_length_header),t.xp6(2),t.Oqu(e.dnt_header),t.xp6(2),t.Oqu(e.forward_header),t.xp6(2),t.Oqu(e.host_header),t.xp6(2),t.Oqu(e.if_modified_since_header),t.xp6(2),t.Oqu(e.if_none_match_header),t.xp6(2),t.Oqu(e.if_range_header),t.xp6(2),t.Oqu(e.if_unmodified_since_header),t.xp6(2),t.Oqu(e.max_forwards_header),t.xp6(2),t.Oqu(e.pragma_header),t.xp6(2),t.Oqu(e.proxy_authorization_header),t.xp6(2),t.Oqu(e.range_header),t.xp6(2),t.Oqu(e.te_header),t.xp6(2),t.Oqu(e.upgrade_header),t.xp6(2),t.Oqu(e.via_header),t.xp6(2),t.Oqu(e.warning_header),t.xp6(2),t.Oqu(e.x_forwarded_for_header),t.xp6(2),t.Oqu(e.x_forwarded_host_header),t.xp6(2),t.Oqu(e.x_forwarded_proto_header),t.xp6(2),t.Oqu(e.x_requested_with_header)}}const P=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}},H=function(){return{standalone:!0}};let et=(()=>{class i extends h.H{constructor(e,n,o,s,l,O){super(n,o,s),this.notifier=e,this.activatedRoute=l,this.reqCredService=O,this.size=10,this.page=1,this.created_from=new Date,this.created_to=new Date}componentName(){return"RequestCredentialsComponent"}ngOnInit(){this.activatedRoute.queryParams.subscribe(e=>{let n=e.from_date,o=e.to_date;null!=n&&null!=o?(this.created_from=I(n).toDate(),this.created_to=I(o).toDate()):(this.created_from=new Date(0),this.created_to=new Date)}),this.searchRequestCredentials({created_from:null==this.created_from?this.created_from:m.b.getDayStart(this.created_from),created_to:null==this.created_to?this.created_to:m.b.getDayEnd(this.created_to),page:0,size:this.size})}onFilterClick(){this.searchRequestCredentials({created_from:m.b.getDayStart(this.created_from),created_to:m.b.getDayEnd(this.created_to),page:0,size:this.size})}searchRequestCredentials(e){this.loading=!0;const n=this.componentKey(L.Z.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS());this.reqCredService.search(n,e),this.subscribe(n,null,(o,s)=>{this.requestCredentials=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.log(s.data)})}onPageChanged(e){this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:e.pageIndex,size:this.size})}filterForToday(){this.created_from=m.b.getDayStart(new Date),this.created_to=m.b.getDayEnd(new Date),this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:0,size:this.size})}clearFilter(){this.created_from=m.b.getDayStart(new Date(0)),this.created_to=m.b.getDayEnd(new Date),this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:0,size:this.size})}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(u.l),t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(a.gz),t.Y36(W))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-activity-log"]],features:[t.qOj],decls:138,vars:16,consts:[[1,"row"],[3,"bar",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"card-title-desc"],[1,"row","gy-2","gx-3","mb-3","align-items-center"],[1,"col-sm-auto"],["type","submit",1,"btn","btn-info","w-md",3,"click"],["for","fromDate",1,"visually-hidden"],[1,"input-group"],["bsDatepicker","","id","fromDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","maxDate","ngModelChange"],["for","toDate",1,"visually-hidden"],["bsDatepicker","","id","toDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","minDate","ngModelChange"],["type","submit",1,"btn","btn-primary","w-md",3,"click"],["type","submit",1,"btn","btn-warning","w-md",3,"click"],[1,"table-responsive"],[1,"table","table-responsive","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"col-lg-12","grid-margin","stretch-card"],["aria-label","Select page",3,"length","pageSize","page"],[3,"bar"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t.YNc(1,X,1,1,"util-progress",1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Lockouts"),t.qZA(),t.TgZ(7,"p",6),t._uU(8,"List of lockouts that happened to the users because of failed login."),t.qZA(),t.TgZ(9,"form",7)(10,"div",8)(11,"button",9),t.NdJ("click",function(){return o.filterForToday()}),t._uU(12,"Today"),t.qZA()(),t.TgZ(13,"div",8)(14,"label",10),t._uU(15,"From"),t.qZA(),t.TgZ(16,"div",11)(17,"input",12),t.NdJ("ngModelChange",function(l){return o.created_from=l}),t.qZA()()(),t.TgZ(18,"div",8)(19,"label",13),t._uU(20,"To"),t.qZA(),t.TgZ(21,"div",11)(22,"input",14),t.NdJ("ngModelChange",function(l){return o.created_to=l}),t.qZA()()(),t.TgZ(23,"div",8)(24,"button",15),t.NdJ("click",function(){return o.onFilterClick()}),t._uU(25,"Filter"),t.qZA()(),t.TgZ(26,"div",8)(27,"button",16),t.NdJ("click",function(){return o.clearFilter()}),t._uU(28,"Clear"),t.qZA()()(),t.TgZ(29,"div",17)(30,"table",18)(31,"thead")(32,"tr")(33,"th"),t._uU(34,"IP"),t.qZA(),t.TgZ(35,"th"),t._uU(36,"URL"),t.qZA(),t.TgZ(37,"th"),t._uU(38,"Body"),t.qZA(),t.TgZ(39,"th"),t._uU(40,"User Agent Header"),t.qZA(),t.TgZ(41,"th"),t._uU(42,"X Forwarded For Header"),t.qZA(),t.TgZ(43,"th"),t._uU(44,"Authorization Header"),t.qZA(),t.TgZ(45,"th"),t._uU(46,"Cookie Header"),t.qZA(),t.TgZ(47,"th"),t._uU(48,"Referer Header"),t.qZA(),t.TgZ(49,"th"),t._uU(50,"X Frame Options Header"),t.qZA(),t.TgZ(51,"th"),t._uU(52,"Content Type Header"),t.qZA(),t.TgZ(53,"th"),t._uU(54,"Origin Header"),t.qZA(),t.TgZ(55,"th"),t._uU(56,"X HTTP Method Override Header"),t.qZA(),t.TgZ(57,"th"),t._uU(58,"Content Security Policy Header"),t.qZA(),t.TgZ(59,"th"),t._uU(60,"Accept Charset Header"),t.qZA(),t.TgZ(61,"th"),t._uU(62,"Accept Datetime Header"),t.qZA(),t.TgZ(63,"th"),t._uU(64,"Accept Encoding Header"),t.qZA(),t.TgZ(65,"th"),t._uU(66,"Accept Header"),t.qZA(),t.TgZ(67,"th"),t._uU(68,"Accept Language Header"),t.qZA(),t.TgZ(69,"th"),t._uU(70,"Access Control Allow Credentials Header"),t.qZA(),t.TgZ(71,"th"),t._uU(72,"Access Control Allow Headers Header"),t.qZA(),t.TgZ(73,"th"),t._uU(74,"Access Control Allow Methods Header"),t.qZA(),t.TgZ(75,"th"),t._uU(76,"Access Control Allow Origin Header"),t.qZA(),t.TgZ(77,"th"),t._uU(78,"Access Control Expose Headers Header"),t.qZA(),t.TgZ(79,"th"),t._uU(80,"Access Control Max Age Header"),t.qZA(),t.TgZ(81,"th"),t._uU(82,"Access Control Request Headers Header"),t.qZA(),t.TgZ(83,"th"),t._uU(84,"Access Control Request Method Header"),t.qZA(),t.TgZ(85,"th"),t._uU(86,"Authorization Info Header"),t.qZA(),t.TgZ(87,"th"),t._uU(88,"Cache Control Header"),t.qZA(),t.TgZ(89,"th"),t._uU(90,"Connection Header"),t.qZA(),t.TgZ(91,"th"),t._uU(92,"Content Encoding Header"),t.qZA(),t.TgZ(93,"th"),t._uU(94,"Content Length Header"),t.qZA(),t.TgZ(95,"th"),t._uU(96,"DNT Header"),t.qZA(),t.TgZ(97,"th"),t._uU(98,"Forward Header"),t.qZA(),t.TgZ(99,"th"),t._uU(100,"Forwarded For Header"),t.qZA(),t.TgZ(101,"th"),t._uU(102,"Host Header"),t.qZA(),t.TgZ(103,"th"),t._uU(104,"If Modified Since Header"),t.qZA(),t.TgZ(105,"th"),t._uU(106,"If None Match Header"),t.qZA(),t.TgZ(107,"th"),t._uU(108,"If Range Header"),t.qZA(),t.TgZ(109,"th"),t._uU(110,"If Unmodified Since Header"),t.qZA(),t.TgZ(111,"th"),t._uU(112,"Max Forwards Header"),t.qZA(),t.TgZ(113,"th"),t._uU(114,"Pragma Header"),t.qZA(),t.TgZ(115,"th"),t._uU(116,"Proxy Authorization Header"),t.qZA(),t.TgZ(117,"th"),t._uU(118,"Range Header"),t.qZA(),t.TgZ(119,"th"),t._uU(120,"TE Header"),t.qZA(),t.TgZ(121,"th"),t._uU(122,"Upgrade Header"),t.qZA(),t.TgZ(123,"th"),t._uU(124,"Via Header"),t.qZA(),t.TgZ(125,"th"),t._uU(126,"Warning Header"),t.qZA(),t.TgZ(127,"th"),t._uU(128,"X Forwarded Host Header"),t.qZA(),t.TgZ(129,"th"),t._uU(130,"X Forwarded Proto Header"),t.qZA(),t.TgZ(131,"th"),t._uU(132,"X Requested With Header"),t.qZA()()(),t.TgZ(133,"tbody"),t.YNc(134,tt,101,50,"tr",19),t.qZA()()(),t.TgZ(135,"div",20)(136,"div",3)(137,"mat-paginator",21),t.NdJ("page",function(l){return o.onPageChanged(l)}),t.qZA()()()()()()()),2&n&&(t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(16),t.Q6J("bsConfig",t.DdM(12,P))("ngModel",o.created_from)("ngModelOptions",t.DdM(13,H))("maxDate",o.created_to),t.xp6(5),t.Q6J("bsConfig",t.DdM(14,P))("ngModel",o.created_to)("ngModelOptions",t.DdM(15,H))("minDate",o.created_from),t.xp6(112),t.Q6J("ngForOf",null==o.requestCredentials?null:o.requestCredentials.content),t.xp6(3),t.Q6J("length",null==o.requestCredentials?null:o.requestCredentials.totalElements)("pageSize",null==o.requestCredentials?null:o.requestCredentials.size))},dependencies:[f.sg,f.O5,c.Np,c.Y5,g._Y,g.Fj,g.JJ,g.JL,g.On,g.F,D.NW,_.t]})}return i})();var Q=r(2159),it=r(6405),M=r(6032);let nt={defaultLayout:it.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT,delEndpoint:M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT};var J=r(1855),K=r(8675);let ot=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBusService=s}search(e,n,o){let s=M.s.ACVALIDATIONTOKENS.SEARCH(n,o);this.http.get(s).subscribe(l=>{this.eventBusService.publish(e,l)},l=>{this.handleError(l,O=>{this.search(e,n,o)},O=>{this.eventBusService.publish(this.getErrorKey(e),O)})})}fetchSingle(e,n){this.http.get(M.s.ACVALIDATIONTOKENS.GET(n)).subscribe(o=>{this.eventBusService.publish(e,o)},o=>{this.handleError(o,s=>{this.fetchSingle(e,n)},s=>{this.eventBusService.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var z=r(9582),B=r(3383);function at(i,d){1&i&&t._UZ(0,"util-progress",9),2&i&&t.Q6J("bar",!0)}function st(i,d){1&i&&(t.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),t._UZ(6,"i",15),t.qZA(),t.TgZ(7,"h4",16),t._uU(8,"No items"),t.qZA()()()(),t.TgZ(9,"div",17)(10,"div",18)(11,"div"),t._UZ(12,"img",19),t.qZA()()()()())}function rt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Delete"),t.qZA())}function dt(i,d){if(1&i&&(t.TgZ(0,"span",36),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function lt(i,d){if(1&i&&(t.TgZ(0,"span",37),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function ct(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"td",32)(1,"app-delete",38),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)}}const V=function(){return["/admin/users"]},G=function(i){return{username:i}};function _t(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td")(4,"a",28),t._uU(5),t.qZA()(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.TgZ(10,"td")(11,"a",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(12),t.qZA()(),t.TgZ(13,"td"),t.YNc(14,dt,2,1,"span",30),t.YNc(15,lt,2,1,"span",31),t.qZA(),t.TgZ(16,"td"),t._uU(17),t.qZA(),t.TgZ(18,"td")(19,"small"),t._uU(20),t.ALo(21,"readableDate"),t.qZA()(),t.TgZ(22,"td")(23,"small"),t._uU(24),t.ALo(25,"readableDate"),t.qZA()(),t.TgZ(26,"td")(27,"small"),t._uU(28),t.ALo(29,"readableDate"),t.qZA()(),t.TgZ(30,"td",32)(31,"a",33),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(32,"i",34),t.qZA()(),t.YNc(33,ct,2,1,"td",35),t.qZA()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(2),t.Oqu(e.id),t.xp6(2),t.Q6J("routerLink",t.DdM(20,V))("queryParams",t.VKq(21,G,null==e.user?null:e.user.username)),t.xp6(1),t.hij(" ",null==e.user?null:e.user.username," "),t.xp6(2),t.Oqu(e.identity),t.xp6(2),t.Oqu(e.registration_method),t.xp6(3),t.hij(" ",e.reason," "),t.xp6(2),t.Q6J("ngIf",!e.is_token_valid),t.xp6(1),t.Q6J("ngIf",e.is_token_valid),t.xp6(2),t.Oqu(e.is_token_valid?"Yes":"No"),t.xp6(3),t.Oqu(t.lcZ(21,14,e.token_valid_until)),t.xp6(4),t.Oqu(t.lcZ(25,16,e.created_at)),t.xp6(4),t.Oqu(t.lcZ(29,18,e.updated_at)),t.xp6(5),t.Q6J("ngIf",n.config.showDeleteButton)}}function ut(i,d){if(1&i&&(t.TgZ(0,"div",0)(1,"div",21)(2,"div",22)(3,"div",23)(4,"p",24),t._uU(5,"AcValidationTokens that I've created"),t.qZA(),t.TgZ(6,"div",25)(7,"table",26)(8,"thead")(9,"tr")(10,"th"),t._uU(11,"Id"),t.qZA(),t.TgZ(12,"th"),t._uU(13,"User"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"Identity"),t.qZA(),t.TgZ(16,"th"),t._uU(17,"Method"),t.qZA(),t.TgZ(18,"th"),t._uU(19,"Reason"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Token"),t.qZA(),t.TgZ(22,"th"),t._uU(23,"Valid"),t.qZA(),t.TgZ(24,"th"),t._uU(25,"Validity"),t.qZA(),t.TgZ(26,"th"),t._uU(27,"Created At"),t.qZA(),t.TgZ(28,"th"),t._uU(29,"Last Updated"),t.qZA(),t.TgZ(30,"th"),t._uU(31,"Update"),t.qZA(),t.YNc(32,rt,2,0,"th",7),t.qZA()(),t.TgZ(33,"tbody"),t.YNc(34,_t,34,23,"tr",27),t.qZA()()()()()()()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onColumn",e.layout==e.Layout.COLUMN),t.xp6(32),t.Q6J("ngIf",e.config.showDeleteButton),t.xp6(2),t.Q6J("ngForOf",e.acValidationTokens.content)}}function pt(i,d){if(1&i&&(t.TgZ(0,"h6",57),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.reason)}}function gt(i,d){if(1&i&&(t.TgZ(0,"small",58)(1,"b"),t._uU(2,"Updated"),t.qZA(),t._UZ(3,"br"),t._uU(4),t.ALo(5,"readableDate"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(4),t.hij(" ",t.lcZ(5,1,e.updated_at)," ")}}function mt(i,d){1&i&&(t.TgZ(0,"small",58),t._UZ(1,"br"),t.TgZ(2,"b"),t._uU(3,"Updated"),t.qZA(),t._UZ(4,"br"),t._uU(5,"Nil"),t.qZA())}function ht(i,d){if(1&i&&(t.TgZ(0,"a",52),t._uU(1," User: "),t.TgZ(2,"label",37),t._uU(3),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.Oqu(null==e.user?null:e.user.username)}}function Zt(i,d){if(1&i&&(t.TgZ(0,"a",52),t._uU(1," Token: "),t.TgZ(2,"label",59),t._uU(3),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.Oqu(e.registration_method)}}function ft(i,d){if(1&i&&(t.TgZ(0,"label",36),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function vt(i,d){if(1&i&&(t.TgZ(0,"label",59),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function Tt(i,d){if(1&i&&(t.TgZ(0,"div",60)(1,"a",28),t._UZ(2,"i",61),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("routerLink",t.DdM(2,V))("queryParams",t.VKq(3,G,null==e.user?null:e.user.username))}}function Ut(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",60)(1,"app-delete",62),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)("look","bx")}}function At(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",40)(1,"div",41)(2,"div",23)(3,"div",42)(4,"span",43),t._uU(5),t.qZA()(),t.TgZ(6,"h5",44)(7,"a",45),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(8),t.qZA()(),t.YNc(9,pt,2,1,"h6",46),t.TgZ(10,"div",0)(11,"div",47)(12,"p",48)(13,"small")(14,"b"),t._uU(15,"Created"),t.qZA(),t._UZ(16,"br"),t._uU(17),t.ALo(18,"readableDate"),t.qZA()()(),t.TgZ(19,"div",47)(20,"p",49),t.YNc(21,gt,6,3,"small",50),t.YNc(22,mt,6,0,"small",50),t.qZA()()(),t.TgZ(23,"p"),t._uU(24),t.ALo(25,"readableDate"),t._UZ(26,"br"),t._uU(27),t.qZA(),t.TgZ(28,"div"),t.YNc(29,ht,4,1,"a",51),t.YNc(30,Zt,4,1,"a",51),t.TgZ(31,"a",52),t._uU(32," Token: "),t.YNc(33,ft,2,1,"label",30),t.YNc(34,vt,2,1,"label",53),t.qZA()()(),t.TgZ(35,"div",54)(36,"div",55),t.YNc(37,Tt,3,5,"div",56),t.YNc(38,Ut,2,2,"div",56),t.qZA()()()()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(5),t.hij(" ",e.reason.substring(0,1).toUpperCase()," "),t.xp6(3),t.hij(" ",e.identity,""),t.xp6(1),t.Q6J("ngIf",e.reason),t.xp6(8),t.Oqu(t.lcZ(18,14,e.created_at)),t.xp6(4),t.Q6J("ngIf",e.updated_at),t.xp6(1),t.Q6J("ngIf",!e.updated_at),t.xp6(2),t.hij(" Validity: ",t.lcZ(25,16,e.token_valid_until)," "),t.xp6(3),t.hij("Valid Now?: ",e.is_token_valid?"Yes":"No"," "),t.xp6(2),t.Q6J("ngIf",null==e.user?null:e.user.username),t.xp6(1),t.Q6J("ngIf",e.registration_method),t.xp6(3),t.Q6J("ngIf",!e.is_token_valid),t.xp6(1),t.Q6J("ngIf",e.is_token_valid),t.xp6(3),t.Q6J("ngIf",null==e.user?null:e.user.username),t.xp6(1),t.Q6J("ngIf",n.config.showDeleteButton)}}function xt(i,d){if(1&i&&(t.TgZ(0,"div",0),t.YNc(1,At,39,18,"div",39),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onGrid",e.layout==e.Layout.GRID),t.xp6(1),t.Q6J("ngForOf",e.acValidationTokens.content)}}function qt(i,d){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,ut,35,4,"div",20),t.YNc(2,xt,2,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.COLUMN),t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.GRID)}}let bt=(()=>{class i extends Q.R{componentName(){return"AcValidationTokenListComponent"}constructor(e,n,o,s,l,O,F,w){super(e,n,o,l),this.activatedRoute=O,this.acValidationTokenService=F,this.notifier=w,this.config=nt,this.acValidationTokens=b.H,s.isAdmin()&&(this.config.searchEndpoint=M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(e=>{let n=(0,J.OP)(e);this.fetchAcValidationTokens({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"AcValidationTokens",link:null,active:!0}]}fetchAcValidationTokens(e){this.loading=!0;const n=this.componentKey(L.Z.ACVALIDATIONTOKENS.SEARCH(e));this.acValidationTokenService.search(n,this.config.searchEndpoint,e),this.subscribe(n,null,(o,s)=>{this.acValidationTokens=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.error("Error",s.data.error.message)})}onDeleted(e){e&&(this.notifier.success("Success","AcValidationToken is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return null}getUpsertComponent(){return null}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(y.e),t.Y36(K.x),t.Y36(a.gz),t.Y36(ot),t.Y36(u.l))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-acvalidationtoken-list"]],features:[t.qOj],decls:11,vars:8,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"showAddBtn","addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],[1,"text-uppercase"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[3,"routerLink","queryParams"],["href","javascript: void(0);",3,"click"],["class","badge bg-danger font-size-11 m-1",4,"ngIf"],["class","badge bg-success font-size-11 m-1",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"badge","bg-danger","font-size-11","m-1"],[1,"badge","bg-success","font-size-11","m-1"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-info font-size-11 m-1",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[1,"badge","bg-info","font-size-11","m-1"],[1,"flex-fill"],[1,"bx","bx-user","text-primary"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),t.NdJ("layoutSelected",function(l){return o.onLayoutSelected(l)}),t.qZA()()(),t.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),t.NdJ("addButtonClick",function(){return o.onUpsertClick(null)}),t.qZA()()()(),t.YNc(7,at,1,1,"util-progress",5),t.YNc(8,st,13,0,"div",6),t.YNc(9,qt,3,2,"div",7),t._UZ(10,"app-pagination",8)),2&n&&(t.xp6(2),t.Q6J("title","AcValidationTokens")("layout",o.layout)("breadcrumbItems",o.breadcrumbItems),t.xp6(4),t.Q6J("showAddBtn",!1),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",o.acValidationTokens.empty),t.xp6(1),t.Q6J("ngIf",!o.acValidationTokens.empty),t.xp6(1),t.Q6J("page",o.acValidationTokens))},dependencies:[f.sg,f.O5,a.rH,_.t,U.Q,x.D,z.T,B.L,N.G]})}return i})(),Ct=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-acvalidationtoken"]],decls:1,vars:0,template:function(n,o){1&n&&t._UZ(0,"app-acvalidationtoken-list")},dependencies:[bt]})}return i})();var Y=r(1310),k=r(2668),Et=r(5732);function Ot(i,d){1&i&&t._UZ(0,"util-progress",9),2&i&&t.Q6J("bar",!0)}function It(i,d){1&i&&(t.TgZ(0,"h4",21),t._uU(1,"Cooking your data, please wait.."),t.qZA())}function Dt(i,d){1&i&&(t.TgZ(0,"h4",22),t._uU(1,"No items"),t.qZA())}function Lt(i,d){if(1&i&&(t.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),t._UZ(6,"i",15),t.qZA(),t.YNc(7,It,2,0,"h4",16),t.YNc(8,Dt,2,0,"h4",17),t.qZA()()(),t.TgZ(9,"div",18)(10,"div",19)(11,"div"),t._UZ(12,"img",20),t.qZA()()()()()),2&i){const e=t.oxw();t.xp6(7),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function yt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Created By"),t.qZA())}function Nt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Delete"),t.qZA())}function St(i,d){if(1&i&&(t.TgZ(0,"td"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.created_by)}}function Mt(i,d){if(1&i&&t._UZ(0,"img",39),2&i){const e=t.oxw().$implicit;t.s9C("src",e.avatar,t.LSH)}}function Rt(i,d){if(1&i&&(t.TgZ(0,"span",40),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.name.substring(0,1).toUpperCase()," ")}}function Jt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"td",35)(1,"app-delete",41),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)}}function Yt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.YNc(3,St,2,1,"td",7),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td")(7,"div",31),t.YNc(8,Mt,1,1,"img",32),t.YNc(9,Rt,2,1,"span",33),t.qZA()(),t.TgZ(10,"td")(11,"a",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(12),t.qZA()(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.qZA(),t.TgZ(19,"td")(20,"small"),t._uU(21),t.ALo(22,"readableDate"),t.qZA()(),t.TgZ(23,"td")(24,"small"),t._uU(25),t.ALo(26,"readableDate"),t.qZA()(),t.TgZ(27,"td",35)(28,"a",36),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(29,"i",37),t.qZA()(),t.YNc(30,Jt,2,1,"td",38),t.qZA()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(2),t.Oqu(e.id),t.xp6(1),t.Q6J("ngIf",n.config.showUserFilter),t.xp6(2),t.Oqu(e.username),t.xp6(3),t.Q6J("ngIf",null!=e.avatar),t.xp6(1),t.Q6J("ngIf",null==e.avatar),t.xp6(3),t.hij(" ",e.name," "),t.xp6(2),t.Oqu(e.gender),t.xp6(2),t.Oqu(e.phone),t.xp6(2),t.Oqu(e.email),t.xp6(3),t.Oqu(t.lcZ(22,12,e.created_at)),t.xp6(4),t.Oqu(t.lcZ(26,14,e.updated_at)),t.xp6(5),t.Q6J("ngIf",n.config.showDeleteButton)}}function kt(i,d){if(1&i&&(t.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),t._uU(5,"Users that I've created"),t.qZA(),t.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),t._uU(11,"Id"),t.qZA(),t.YNc(12,yt,2,0,"th",7),t.TgZ(13,"th"),t._uU(14,"Image"),t.qZA(),t.TgZ(15,"th"),t._uU(16,"Username"),t.qZA(),t.TgZ(17,"th"),t._uU(18,"Name"),t.qZA(),t.TgZ(19,"th"),t._uU(20,"Gender"),t.qZA(),t.TgZ(21,"th"),t._uU(22,"Phone"),t.qZA(),t.TgZ(23,"th"),t._uU(24,"Email"),t.qZA(),t.TgZ(25,"th"),t._uU(26,"Created At"),t.qZA(),t.TgZ(27,"th"),t._uU(28,"Last Updated"),t.qZA(),t.TgZ(29,"th"),t._uU(30,"Update"),t.qZA(),t.YNc(31,Nt,2,0,"th",7),t.qZA()(),t.TgZ(32,"tbody"),t.YNc(33,Yt,31,16,"tr",30),t.qZA()()()()()()()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onColumn",e.layout==e.Layout.COLUMN),t.xp6(12),t.Q6J("ngIf",e.config.showUserFilter),t.xp6(19),t.Q6J("ngIf",e.config.showDeleteButton),t.xp6(2),t.Q6J("ngForOf",e.users.content)}}function Ft(i,d){if(1&i&&(t.TgZ(0,"div",61),t._UZ(1,"img",39),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.s9C("src",e.avatar,t.LSH)}}function wt(i,d){if(1&i&&(t.TgZ(0,"div",62)(1,"span",40),t._uU(2),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(2),t.hij(" ",e.name.substring(0,1).toUpperCase()," ")}}function Pt(i,d){if(1&i&&(t.TgZ(0,"h6",63),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("By ",e.created_by,"")}}function Ht(i,d){if(1&i&&(t.TgZ(0,"small",64)(1,"b"),t._uU(2,"Updated"),t.qZA(),t._UZ(3,"br"),t._uU(4),t.ALo(5,"readableDate"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(4),t.hij(" ",t.lcZ(5,1,e.updated_at)," ")}}function Qt(i,d){1&i&&(t.TgZ(0,"small",64),t._UZ(1,"br"),t.TgZ(2,"b"),t._uU(3,"Updated"),t.qZA(),t._UZ(4,"br"),t._uU(5,"Nil"),t.qZA())}function Kt(i,d){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("Phone: ",e.phone,"")}}function zt(i,d){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("Email: ",e.phone,"")}}function Bt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",58)(1,"app-delete",65),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)("look","bx")}}function Vt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",43)(1,"div",44)(2,"div",26),t.YNc(3,Ft,2,1,"div",45),t.YNc(4,wt,3,1,"div",46),t.TgZ(5,"h5",47)(6,"a",48),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(7),t.qZA()(),t.YNc(8,Pt,2,1,"h6",49),t.TgZ(9,"div",0)(10,"div",50)(11,"p",51)(12,"small")(13,"b"),t._uU(14,"Created"),t.qZA(),t._UZ(15,"br"),t._uU(16),t.ALo(17,"readableDate"),t.qZA()()(),t.TgZ(18,"div",50)(19,"p",52),t.YNc(20,Ht,6,3,"small",53),t.YNc(21,Qt,6,0,"small",53),t.qZA()()(),t.TgZ(22,"p"),t.YNc(23,Kt,3,1,"span",7),t.YNc(24,zt,2,1,"span",7),t.qZA(),t.TgZ(25,"div")(26,"a",54)(27,"label",55),t._uU(28,"Approved"),t.qZA()()()(),t.TgZ(29,"div",56)(30,"div",57)(31,"div",58)(32,"a",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(33,"i",59),t.qZA()(),t.YNc(34,Bt,2,2,"div",60),t.qZA()()()()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(3),t.Q6J("ngIf",e.avatar),t.xp6(1),t.Q6J("ngIf",null==e.avatar),t.xp6(3),t.hij(" ",e.name,""),t.xp6(1),t.Q6J("ngIf",n.config.showUserFilter&&e.created_by),t.xp6(8),t.Oqu(t.lcZ(17,10,e.created_at)),t.xp6(4),t.Q6J("ngIf",e.updated_at),t.xp6(1),t.Q6J("ngIf",!e.updated_at),t.xp6(2),t.Q6J("ngIf",e.phone),t.xp6(1),t.Q6J("ngIf",e.email),t.xp6(10),t.Q6J("ngIf",n.config.showDeleteButton)}}function Gt(i,d){if(1&i&&(t.TgZ(0,"div",0),t.YNc(1,Vt,35,12,"div",42),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onGrid",e.layout==e.Layout.GRID),t.xp6(1),t.Q6J("ngForOf",e.users.content)}}function jt(i,d){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,kt,34,5,"div",23),t.YNc(2,Gt,2,3,"div",23),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.COLUMN),t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.GRID)}}let $t=(()=>{class i extends Q.R{componentName(){return"UserListComponent"}constructor(e,n,o,s,l,O,F,w){super(e,n,o,l),this.activatedRoute=O,this.userService=F,this.notifier=w,this.config=Y.EK,this.filterData=J.M9,this.users=b.H,s.isAdmin()&&(this.config.searchEndpoint=Y.wl.adminEndpoint)}initialize(){this.activatedRoute.queryParams.subscribe(e=>{this.filterData=(0,J.OP)(e),this.fetchUsers({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Users",link:null,active:!0}]}fetchUsers(e){this.loading=!0;const n=this.componentKey(L.Z.USERS.SEARCH(e));this.userService.search(n,this.config.searchEndpoint,e),this.subscribe(n,null,(o,s)=>{this.users=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.error("Error",s.data.error.message)})}onDeleted(e){e&&(this.notifier.success("Success","User is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Y.n5.create,update:e=>Y.n5.update(e),params:(0,J.oZ)(this.filterData)}}getUpsertComponent(){return k.M}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(y.e),t.Y36(K.x),t.Y36(a.gz),t.Y36(Et.K),t.Y36(u.l))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-user-list"]],features:[t.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),t.NdJ("layoutSelected",function(l){return o.onLayoutSelected(l)}),t.qZA()()(),t.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),t.NdJ("addButtonClick",function(){return o.onUpsertClick(null)}),t.qZA()()()(),t.YNc(7,Ot,1,1,"util-progress",5),t.YNc(8,Lt,13,2,"div",6),t.YNc(9,jt,3,2,"div",7),t._UZ(10,"app-pagination",8)),2&n&&(t.xp6(2),t.Q6J("title","Users")("layout",o.layout)("breadcrumbItems",o.breadcrumbItems),t.xp6(5),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",o.users.empty),t.xp6(1),t.Q6J("ngIf",!o.users.empty),t.xp6(1),t.Q6J("page",o.users))},dependencies:[f.sg,f.O5,_.t,U.Q,x.D,z.T,B.L,N.G]})}return i})();const Wt=[{path:"",component:(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-user"]],decls:1,vars:0,template:function(n,o){1&n&&t._UZ(0,"app-user-list")},dependencies:[$t]})}return i})()},{path:"create",component:k.M},{path:":id/update",component:k.M},{path:"activity-logs",component:$},{path:"request-credentials/lockouts",component:et},{path:"validation-tokens",component:Ct}];let Xt=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.oAB({type:i});static#i=this.\u0275inj=t.cJS({imports:[a.Bz.forChild(Wt),a.Bz]})}return i})();var te=r(9797),ee=r(2241),ie=r(4807);let ne=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.oAB({type:i});static#i=this.\u0275inj=t.cJS({imports:[f.ez,c.kn,g.u5,D.TU,Xt,te.CmsModule,g.UX,v.g,ee.AdminModule,ie.A0]})}return i})()},2668:(R,E,r)=>{r.d(E,{M:()=>q});var f=r(9870),v=r(1310),c=r(6223),g=r(7259),D=r(7700),a=r(5879),b=r(30),I=r(1662),m=r(6945),L=r(5732),h=r(5462),t=r(6814),u=r(7035),Z=r(4736);function C(A,y){1&A&&a._UZ(0,"util-progress",18),2&A&&a.Q6J("bar",!0)}let q=(()=>{class A extends f.n{constructor(p,T,_,U,x,N,S){super(p,T,_,U,S),this.userService=x,this.notifier=N,this.config=v.EK,this.userForm=new c.cw({title:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(20)]),image:new c.NI(null)}),null!=S.title&&this.userForm.controls.title.setValue(S.title)}componentName(){return"UserUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Users",link:"/admin/users",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(p){this.loading=!0;let T=this.componentKey(g.Z.USERS.GET(p));this.userService.fetchSingle(T,p),this.subscribe(T,null,(_,U)=>{this.loading=!1,this.populateForm(U.data)}),this.subscribe(this.getErrorKey(T),null,(_,U)=>{console.log(U.data),this.loading=!1})}onSubmit(){this.userForm.valid&&this.upsert(this.exId)}onImgUploaded(p){p.length>0&&this.userForm.controls.image.setValue(p[0].image_url)}getExImages(){let p=this.userForm.controls.image.value;return null==p?[]:[{image_url:p,thumb_url:p}]}getConfig(){return this.config}getListPageRoute(){return v.n5.list}upsert(p){this.loading=!0;let T=this.componentKey(g.Z.USERS.UPSERT(p));this.userService.upsert(T,this.userForm.value,p),this.subscribe(T,null,(_,U)=>{this.loading=!1,this.notifier.success("Success","User has been "+(p?"updated":"created")),this.userForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(U.data):this.navigateToListPage()}),this.subscribe(this.getErrorKey(T),null,(_,U)=>{let x=U.data;this.loading=!1,this.notifier.warning("Failed!",x.error.message)})}populateForm(p){}static#t=this.\u0275fac=function(T){return new(T||A)(a.Y36(b.Y),a.Y36(I.F0),a.Y36(m.z),a.Y36(I.gz),a.Y36(L.K),a.Y36(h.l),a.Y36(D.WI))};static#e=this.\u0275cmp=a.Xpm({type:A,selectors:[["app-user-upsert"]],features:[a.qOj],decls:28,vars:10,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],[1,"error"],["type","text","id","title-input","placeholder","Enter Title","name","title","formControlName","title",1,"form-control"],[1,"text-danger"],["for","description",1,"form-label"],["id","description","placeholder","Enter Description","rows","5","name","description","formControlName","description",1,"form-control"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(T,_){1&T&&(a.YNc(0,C,1,1,"util-progress",0),a.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),a._uU(6,"Create/Update User"),a.qZA(),a.TgZ(7,"form",6)(8,"div",7)(9,"label",8),a._uU(10,"Title"),a.TgZ(11,"em",9),a._uU(12,"*"),a.qZA()(),a._UZ(13,"input",10),a.TgZ(14,"em",11),a._uU(15),a.qZA()(),a.TgZ(16,"div",7)(17,"label",12),a._uU(18,"Description"),a.qZA(),a._UZ(19,"textarea",13),a.TgZ(20,"em",11),a._uU(21),a.qZA()(),a.TgZ(22,"app-file-picker",14),a.NdJ("onUploaded",function(x){return _.onImgUploaded(x)}),a.qZA(),a.TgZ(23,"div",15)(24,"button",16),a.NdJ("click",function(){return _.onCancel()}),a._uU(25," Cancel "),a.qZA(),a.TgZ(26,"button",17),a.NdJ("click",function(){return _.onSubmit()}),a._uU(27," Submit "),a.qZA()()()()()()()),2&T&&(a.Q6J("ngIf",_.loading),a.xp6(1),a.Q6J("@loaded",!_.loading),a.xp6(6),a.Q6J("formGroup",_.userForm),a.xp6(8),a.hij(" ",_.errMsg(_.userForm,"title","minLength","Title should be at least 3 characters!")," "),a.xp6(6),a.hij(" ",_.errMsg(_.userForm,"description","minLength","Description should be at least 20 characters!")," "),a.xp6(1),a.s9C("title",_.translations.Image),a.Q6J("multiSelect",!1)("existingImages",_.getExImages())("required",!1),a.xp6(4),a.Q6J("ngClass",_.userForm.valid?"":"disabled"))},dependencies:[t.mk,t.O5,c._Y,c.Fj,c.JJ,c.JL,u.P,c.sg,c.u,Z.t]})}return A})()},1310:(R,E,r)=>{r.d(E,{EK:()=>c,n5:()=>D,wl:()=>g});var f=r(6405),v=r(7597);let c={defaultLayout:f.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:v.U.USERS.USER_ENDPOINT,delEndpoint:v.U.USERS.USER_ENDPOINT},g={endpoint:v.U.USERS.USER_ENDPOINT,adminEndpoint:v.U.USERS.USER_ENDPOINT_ADMIN},D={list:"/admin/users",create:"/admin/users/create",update(a){return null==a?this.create:"/admin/users/"+a+"/update"}}},5732:(R,E,r)=>{r.d(E,{K:()=>I});var f=r(1547),v=r(7597),c=r(5879),g=r(8480),D=r(5462),a=r(9862),b=r(30);let I=(()=>{class m extends f.b{constructor(h,t,u,Z){super(h,t),this.http=u,this.eventBusService=Z}search(h,t,u){let Z=v.U.USERS.SEARCH(t,u);this.http.get(Z).subscribe(C=>{this.eventBusService.publish(h,C)},C=>{this.handleError(C,q=>{this.search(h,t,u)},q=>{this.eventBusService.publish(this.getErrorKey(h),q)})})}fetchSingle(h,t){this.http.get(v.U.USERS.GET(t)).subscribe(u=>{this.eventBusService.publish(h,u)},u=>{this.handleError(u,Z=>{this.fetchSingle(h,t)},Z=>{this.eventBusService.publish(this.getErrorKey(h),Z)})})}upsert(h,t,u){let Z=null==u?v.U.USERS.CREATE():v.U.USERS.UPDATE(u);(null==u?this.http.post(Z,t):this.http.patch(Z,t)).subscribe(q=>{this.eventBusService.publish(h,q)},q=>{this.handleError(q,A=>{this.upsert(h,t,u)},A=>{this.eventBusService.publish(this.getErrorKey(h),A)})})}static#t=this.\u0275fac=function(t){return new(t||m)(c.LFG(g.e),c.LFG(D.l),c.LFG(a.eN),c.LFG(b.Y))};static#e=this.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[318],{7597:(R,E,r)=>{r.d(E,{U:()=>g});var f=r(2495),v=r(553),c=r(5879);class g extends f.O{constructor(){super()}static#t=this.USERS={USER_ENDPOINT:v.N.base_url+"/api/v1/users",USER_ENDPOINT_ADMIN:v.N.base_url+"/api/v1/admin/users",SEARCH:(a,b)=>a.concat(f.O.toParamString(b)),CREATE(){return this.USER_ENDPOINT},GET(a){return this.USER_ENDPOINT+"/"+a},UPDATE(a){return this.USER_ENDPOINT+"/"+a}};static#e=this.\u0275fac=function(b){return new(b||g)};static#i=this.\u0275prov=c.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"})}},3318:(R,E,r)=>{r.r(E),r.d(E,{UserModule:()=>ne});var f=r(6814),v=r(7151),c=r(9277),g=r(6223),D=r(3365),a=r(1662),b=r(6542),I=r(6676),m=r(2739),L=r(7259),h=r(8637),t=r(5879),u=r(5462),Z=r(30),C=r(6945),q=r(1547),A=r(1259),y=r(8480),p=r(9862);let T=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBus=s}search(e,n){this.http.get(A.e.ACTIVITY_LOGS.ADMIN_SEARCH(n)).subscribe(o=>{this.eventBus.publish(e,o)},o=>{this.handleError(o,s=>{this.search(e,n)},s=>{this.eventBus.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var _=r(4736),U=r(1836),x=r(6075),N=r(2770);function S(i,d){1&i&&t._UZ(0,"util-progress",11),2&i&&t.Q6J("bar",!0)}function j(i,d){if(1&i&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._uU(12),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.ALo(17,"readableDate"),t.qZA(),t.TgZ(18,"td"),t._uU(19),t.ALo(20,"readableDate"),t.qZA()()),2&i){const e=d.$implicit;t.xp6(2),t.Oqu(e.user_id),t.xp6(2),t.Oqu(e.username),t.xp6(2),t.Oqu(e.user_agent),t.xp6(2),t.Oqu(e.ip),t.xp6(2),t.Oqu(e.request_method),t.xp6(2),t.Oqu(e.url),t.xp6(2),t.Oqu(e.total_visitors),t.xp6(2),t.Oqu(t.lcZ(17,9,e.created_at)),t.xp6(3),t.Oqu(t.lcZ(20,11,e.updated_at))}}let $=(()=>{class i extends h.H{constructor(e,n,o,s,l,O){super(n,o,s),this.notifier=e,this.activatedRoute=l,this.activityLogService=O,this.size=10,this.page=1,this.activityLogs=b.H,this.username=null,this.created_from=new Date,this.created_to=new Date}componentName(){return"ActivityLogComponent"}ngOnInit(){this.activatedRoute.queryParams.subscribe(e=>{let n=e.from_date,o=e.to_date,s=e.page,l=e.size;null!=n&&null!=o?(this.created_from=I(n).toDate(),this.created_to=I(o).toDate()):(this.created_from=m.b.getDayStart(new Date(0)),this.created_to=m.b.getDayEnd(new Date)),this.searchActivityLogs({username:this.username,from_date:m.b.getDayStart(this.created_from),to_date:m.b.getDayEnd(this.created_to),page:s,size:l})})}searchActivityLogs(e){this.loading=!0;const n=this.componentKey(L.Z.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS());this.activityLogService.search(n,e),this.subscribe(n,null,(o,s)=>{this.activityLogs=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.log(s.data)})}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(u.l),t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(a.gz),t.Y36(T))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-activity-log"]],features:[t.qOj],decls:44,vars:3,consts:[[1,"row"],[3,"bar",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"card-title-desc"],[1,"table-responsive"],[1,"table","table-responsive","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[3,"page"],[3,"bar"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t.YNc(1,S,1,1,"util-progress",1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Activity Log"),t.qZA(),t.TgZ(7,"p",6),t._uU(8,"Activity logs for users"),t.qZA(),t._UZ(9,"app-basic-filter"),t.TgZ(10,"div",7)(11,"table",8)(12,"thead")(13,"tr")(14,"th")(15,"h6"),t._uU(16,"USER ID"),t.qZA()(),t.TgZ(17,"th")(18,"h6"),t._uU(19,"USERNAME"),t.qZA()(),t.TgZ(20,"th")(21,"h6"),t._uU(22,"USER AGENT"),t.qZA()(),t.TgZ(23,"th")(24,"h6"),t._uU(25,"IP"),t.qZA()(),t.TgZ(26,"th")(27,"h6"),t._uU(28,"R. METHOD"),t.qZA()(),t.TgZ(29,"th")(30,"h6"),t._uU(31,"URL"),t.qZA()(),t.TgZ(32,"th")(33,"h6"),t._uU(34,"TOTAL VISITORS"),t.qZA()(),t.TgZ(35,"th")(36,"h6"),t._uU(37,"CREATED AT"),t.qZA()(),t.TgZ(38,"th")(39,"h6"),t._uU(40,"LAST UPDATED"),t.qZA()()()(),t.TgZ(41,"tbody"),t.YNc(42,j,21,13,"tr",9),t.qZA()()(),t._UZ(43,"app-pagination",10),t.qZA()()()()),2&n&&(t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(41),t.Q6J("ngForOf",null==o.activityLogs?null:o.activityLogs.content),t.xp6(1),t.Q6J("page",o.activityLogs))},dependencies:[f.sg,f.O5,_.t,U.Q,x.D,N.G]})}return i})(),W=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBus=s}search(e,n){this.http.get(A.e.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS(n)).subscribe(o=>{this.eventBus.publish(e,o)},o=>{this.handleError(o,s=>{this.search(e,n)},s=>{this.eventBus.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function X(i,d){1&i&&t._UZ(0,"util-progress",22),2&i&&t.Q6J("bar",!0)}function tt(i,d){if(1&i&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.qZA(),t.TgZ(7,"td"),t._uU(8),t.qZA(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._uU(12),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.qZA(),t.TgZ(21,"td"),t._uU(22),t.qZA(),t.TgZ(23,"td"),t._uU(24),t.qZA(),t.TgZ(25,"td"),t._uU(26),t.qZA(),t.TgZ(27,"td"),t._uU(28),t.qZA(),t.TgZ(29,"td"),t._uU(30),t.qZA(),t.TgZ(31,"td"),t._uU(32),t.qZA(),t.TgZ(33,"td"),t._uU(34),t.qZA(),t.TgZ(35,"td"),t._uU(36),t.qZA(),t.TgZ(37,"td"),t._uU(38),t.qZA(),t.TgZ(39,"td"),t._uU(40),t.qZA(),t.TgZ(41,"td"),t._uU(42),t.qZA(),t.TgZ(43,"td"),t._uU(44),t.qZA(),t.TgZ(45,"td"),t._uU(46),t.qZA(),t.TgZ(47,"td"),t._uU(48),t.qZA(),t.TgZ(49,"td"),t._uU(50),t.qZA(),t.TgZ(51,"td"),t._uU(52),t.qZA(),t.TgZ(53,"td"),t._uU(54),t.qZA(),t.TgZ(55,"td"),t._uU(56),t.qZA(),t.TgZ(57,"td"),t._uU(58),t.qZA(),t.TgZ(59,"td"),t._uU(60),t.qZA(),t.TgZ(61,"td"),t._uU(62),t.qZA(),t.TgZ(63,"td"),t._uU(64),t.qZA(),t.TgZ(65,"td"),t._uU(66),t.qZA(),t.TgZ(67,"td"),t._uU(68),t.qZA(),t.TgZ(69,"td"),t._uU(70),t.qZA(),t.TgZ(71,"td"),t._uU(72),t.qZA(),t.TgZ(73,"td"),t._uU(74),t.qZA(),t.TgZ(75,"td"),t._uU(76),t.qZA(),t.TgZ(77,"td"),t._uU(78),t.qZA(),t.TgZ(79,"td"),t._uU(80),t.qZA(),t.TgZ(81,"td"),t._uU(82),t.qZA(),t.TgZ(83,"td"),t._uU(84),t.qZA(),t.TgZ(85,"td"),t._uU(86),t.qZA(),t.TgZ(87,"td"),t._uU(88),t.qZA(),t.TgZ(89,"td"),t._uU(90),t.qZA(),t.TgZ(91,"td"),t._uU(92),t.qZA(),t.TgZ(93,"td"),t._uU(94),t.qZA(),t.TgZ(95,"td"),t._uU(96),t.qZA(),t.TgZ(97,"td"),t._uU(98),t.qZA(),t.TgZ(99,"td"),t._uU(100),t.qZA()()),2&i){const e=d.$implicit;t.xp6(2),t.Oqu(e.ip),t.xp6(2),t.Oqu(e.url),t.xp6(2),t.Oqu(e.body),t.xp6(2),t.Oqu(e.user_agent_header),t.xp6(2),t.Oqu(e.forwarded_for_header),t.xp6(2),t.Oqu(e.authorization_header),t.xp6(2),t.Oqu(e.cookie_header),t.xp6(2),t.Oqu(e.referer_header),t.xp6(2),t.Oqu(e.x_frame_options_header),t.xp6(2),t.Oqu(e.content_type_header),t.xp6(2),t.Oqu(e.origin_header),t.xp6(2),t.Oqu(e.x_http_method_override_header),t.xp6(2),t.Oqu(e.content_security_policy_header),t.xp6(2),t.Oqu(e.accept_charset_header),t.xp6(2),t.Oqu(e.accept_datetime_header),t.xp6(2),t.Oqu(e.accept_encoding_header),t.xp6(2),t.Oqu(e.accept_header),t.xp6(2),t.Oqu(e.accept_language_header),t.xp6(2),t.Oqu(e.access_control_allow_credentials_header),t.xp6(2),t.Oqu(e.access_control_allow_headers_header),t.xp6(2),t.Oqu(e.access_control_allow_methods_header),t.xp6(2),t.Oqu(e.access_control_allow_origin_header),t.xp6(2),t.Oqu(e.access_control_expose_headers_header),t.xp6(2),t.Oqu(e.access_control_max_age_header),t.xp6(2),t.Oqu(e.access_control_request_headers_header),t.xp6(2),t.Oqu(e.access_control_request_method_header),t.xp6(2),t.Oqu(e.authorization_info_header),t.xp6(2),t.Oqu(e.cache_control_header),t.xp6(2),t.Oqu(e.connection_header),t.xp6(2),t.Oqu(e.content_encoding_header),t.xp6(2),t.Oqu(e.content_length_header),t.xp6(2),t.Oqu(e.dnt_header),t.xp6(2),t.Oqu(e.forward_header),t.xp6(2),t.Oqu(e.host_header),t.xp6(2),t.Oqu(e.if_modified_since_header),t.xp6(2),t.Oqu(e.if_none_match_header),t.xp6(2),t.Oqu(e.if_range_header),t.xp6(2),t.Oqu(e.if_unmodified_since_header),t.xp6(2),t.Oqu(e.max_forwards_header),t.xp6(2),t.Oqu(e.pragma_header),t.xp6(2),t.Oqu(e.proxy_authorization_header),t.xp6(2),t.Oqu(e.range_header),t.xp6(2),t.Oqu(e.te_header),t.xp6(2),t.Oqu(e.upgrade_header),t.xp6(2),t.Oqu(e.via_header),t.xp6(2),t.Oqu(e.warning_header),t.xp6(2),t.Oqu(e.x_forwarded_for_header),t.xp6(2),t.Oqu(e.x_forwarded_host_header),t.xp6(2),t.Oqu(e.x_forwarded_proto_header),t.xp6(2),t.Oqu(e.x_requested_with_header)}}const P=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}},H=function(){return{standalone:!0}};let et=(()=>{class i extends h.H{constructor(e,n,o,s,l,O){super(n,o,s),this.notifier=e,this.activatedRoute=l,this.reqCredService=O,this.size=10,this.page=1,this.created_from=new Date,this.created_to=new Date}componentName(){return"RequestCredentialsComponent"}ngOnInit(){this.activatedRoute.queryParams.subscribe(e=>{let n=e.from_date,o=e.to_date;null!=n&&null!=o?(this.created_from=I(n).toDate(),this.created_to=I(o).toDate()):(this.created_from=new Date(0),this.created_to=new Date)}),this.searchRequestCredentials({created_from:null==this.created_from?this.created_from:m.b.getDayStart(this.created_from),created_to:null==this.created_to?this.created_to:m.b.getDayEnd(this.created_to),page:0,size:this.size})}onFilterClick(){this.searchRequestCredentials({created_from:m.b.getDayStart(this.created_from),created_to:m.b.getDayEnd(this.created_to),page:0,size:this.size})}searchRequestCredentials(e){this.loading=!0;const n=this.componentKey(L.Z.REQUEST_CREDENTIALS.ADMIN_SEARCH_LOCKOUTS());this.reqCredService.search(n,e),this.subscribe(n,null,(o,s)=>{this.requestCredentials=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.log(s.data)})}onPageChanged(e){this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:e.pageIndex,size:this.size})}filterForToday(){this.created_from=m.b.getDayStart(new Date),this.created_to=m.b.getDayEnd(new Date),this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:0,size:this.size})}clearFilter(){this.created_from=m.b.getDayStart(new Date(0)),this.created_to=m.b.getDayEnd(new Date),this.searchRequestCredentials({created_from:this.created_from,created_to:this.created_to,page:0,size:this.size})}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(u.l),t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(a.gz),t.Y36(W))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-activity-log"]],features:[t.qOj],decls:138,vars:16,consts:[[1,"row"],[3,"bar",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title"],[1,"card-title-desc"],[1,"row","gy-2","gx-3","mb-3","align-items-center"],[1,"col-sm-auto"],["type","submit",1,"btn","btn-info","w-md",3,"click"],["for","fromDate",1,"visually-hidden"],[1,"input-group"],["bsDatepicker","","id","fromDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","maxDate","ngModelChange"],["for","toDate",1,"visually-hidden"],["bsDatepicker","","id","toDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","minDate","ngModelChange"],["type","submit",1,"btn","btn-primary","w-md",3,"click"],["type","submit",1,"btn","btn-warning","w-md",3,"click"],[1,"table-responsive"],[1,"table","table-responsive","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"col-lg-12","grid-margin","stretch-card"],["aria-label","Select page",3,"length","pageSize","page"],[3,"bar"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0),t.YNc(1,X,1,1,"util-progress",1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Lockouts"),t.qZA(),t.TgZ(7,"p",6),t._uU(8,"List of lockouts that happened to the users because of failed login."),t.qZA(),t.TgZ(9,"form",7)(10,"div",8)(11,"button",9),t.NdJ("click",function(){return o.filterForToday()}),t._uU(12,"Today"),t.qZA()(),t.TgZ(13,"div",8)(14,"label",10),t._uU(15,"From"),t.qZA(),t.TgZ(16,"div",11)(17,"input",12),t.NdJ("ngModelChange",function(l){return o.created_from=l}),t.qZA()()(),t.TgZ(18,"div",8)(19,"label",13),t._uU(20,"To"),t.qZA(),t.TgZ(21,"div",11)(22,"input",14),t.NdJ("ngModelChange",function(l){return o.created_to=l}),t.qZA()()(),t.TgZ(23,"div",8)(24,"button",15),t.NdJ("click",function(){return o.onFilterClick()}),t._uU(25,"Filter"),t.qZA()(),t.TgZ(26,"div",8)(27,"button",16),t.NdJ("click",function(){return o.clearFilter()}),t._uU(28,"Clear"),t.qZA()()(),t.TgZ(29,"div",17)(30,"table",18)(31,"thead")(32,"tr")(33,"th"),t._uU(34,"IP"),t.qZA(),t.TgZ(35,"th"),t._uU(36,"URL"),t.qZA(),t.TgZ(37,"th"),t._uU(38,"Body"),t.qZA(),t.TgZ(39,"th"),t._uU(40,"User Agent Header"),t.qZA(),t.TgZ(41,"th"),t._uU(42,"X Forwarded For Header"),t.qZA(),t.TgZ(43,"th"),t._uU(44,"Authorization Header"),t.qZA(),t.TgZ(45,"th"),t._uU(46,"Cookie Header"),t.qZA(),t.TgZ(47,"th"),t._uU(48,"Referer Header"),t.qZA(),t.TgZ(49,"th"),t._uU(50,"X Frame Options Header"),t.qZA(),t.TgZ(51,"th"),t._uU(52,"Content Type Header"),t.qZA(),t.TgZ(53,"th"),t._uU(54,"Origin Header"),t.qZA(),t.TgZ(55,"th"),t._uU(56,"X HTTP Method Override Header"),t.qZA(),t.TgZ(57,"th"),t._uU(58,"Content Security Policy Header"),t.qZA(),t.TgZ(59,"th"),t._uU(60,"Accept Charset Header"),t.qZA(),t.TgZ(61,"th"),t._uU(62,"Accept Datetime Header"),t.qZA(),t.TgZ(63,"th"),t._uU(64,"Accept Encoding Header"),t.qZA(),t.TgZ(65,"th"),t._uU(66,"Accept Header"),t.qZA(),t.TgZ(67,"th"),t._uU(68,"Accept Language Header"),t.qZA(),t.TgZ(69,"th"),t._uU(70,"Access Control Allow Credentials Header"),t.qZA(),t.TgZ(71,"th"),t._uU(72,"Access Control Allow Headers Header"),t.qZA(),t.TgZ(73,"th"),t._uU(74,"Access Control Allow Methods Header"),t.qZA(),t.TgZ(75,"th"),t._uU(76,"Access Control Allow Origin Header"),t.qZA(),t.TgZ(77,"th"),t._uU(78,"Access Control Expose Headers Header"),t.qZA(),t.TgZ(79,"th"),t._uU(80,"Access Control Max Age Header"),t.qZA(),t.TgZ(81,"th"),t._uU(82,"Access Control Request Headers Header"),t.qZA(),t.TgZ(83,"th"),t._uU(84,"Access Control Request Method Header"),t.qZA(),t.TgZ(85,"th"),t._uU(86,"Authorization Info Header"),t.qZA(),t.TgZ(87,"th"),t._uU(88,"Cache Control Header"),t.qZA(),t.TgZ(89,"th"),t._uU(90,"Connection Header"),t.qZA(),t.TgZ(91,"th"),t._uU(92,"Content Encoding Header"),t.qZA(),t.TgZ(93,"th"),t._uU(94,"Content Length Header"),t.qZA(),t.TgZ(95,"th"),t._uU(96,"DNT Header"),t.qZA(),t.TgZ(97,"th"),t._uU(98,"Forward Header"),t.qZA(),t.TgZ(99,"th"),t._uU(100,"Forwarded For Header"),t.qZA(),t.TgZ(101,"th"),t._uU(102,"Host Header"),t.qZA(),t.TgZ(103,"th"),t._uU(104,"If Modified Since Header"),t.qZA(),t.TgZ(105,"th"),t._uU(106,"If None Match Header"),t.qZA(),t.TgZ(107,"th"),t._uU(108,"If Range Header"),t.qZA(),t.TgZ(109,"th"),t._uU(110,"If Unmodified Since Header"),t.qZA(),t.TgZ(111,"th"),t._uU(112,"Max Forwards Header"),t.qZA(),t.TgZ(113,"th"),t._uU(114,"Pragma Header"),t.qZA(),t.TgZ(115,"th"),t._uU(116,"Proxy Authorization Header"),t.qZA(),t.TgZ(117,"th"),t._uU(118,"Range Header"),t.qZA(),t.TgZ(119,"th"),t._uU(120,"TE Header"),t.qZA(),t.TgZ(121,"th"),t._uU(122,"Upgrade Header"),t.qZA(),t.TgZ(123,"th"),t._uU(124,"Via Header"),t.qZA(),t.TgZ(125,"th"),t._uU(126,"Warning Header"),t.qZA(),t.TgZ(127,"th"),t._uU(128,"X Forwarded Host Header"),t.qZA(),t.TgZ(129,"th"),t._uU(130,"X Forwarded Proto Header"),t.qZA(),t.TgZ(131,"th"),t._uU(132,"X Requested With Header"),t.qZA()()(),t.TgZ(133,"tbody"),t.YNc(134,tt,101,50,"tr",19),t.qZA()()(),t.TgZ(135,"div",20)(136,"div",3)(137,"mat-paginator",21),t.NdJ("page",function(l){return o.onPageChanged(l)}),t.qZA()()()()()()()),2&n&&(t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(16),t.Q6J("bsConfig",t.DdM(12,P))("ngModel",o.created_from)("ngModelOptions",t.DdM(13,H))("maxDate",o.created_to),t.xp6(5),t.Q6J("bsConfig",t.DdM(14,P))("ngModel",o.created_to)("ngModelOptions",t.DdM(15,H))("minDate",o.created_from),t.xp6(112),t.Q6J("ngForOf",null==o.requestCredentials?null:o.requestCredentials.content),t.xp6(3),t.Q6J("length",null==o.requestCredentials?null:o.requestCredentials.totalElements)("pageSize",null==o.requestCredentials?null:o.requestCredentials.size))},dependencies:[f.sg,f.O5,c.Np,c.Y5,g._Y,g.Fj,g.JJ,g.JL,g.On,g.F,D.NW,_.t]})}return i})();var Q=r(2159),it=r(6405),M=r(6032);let nt={defaultLayout:it.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT,delEndpoint:M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT};var J=r(1855),K=r(8675);let ot=(()=>{class i extends q.b{constructor(e,n,o,s){super(e,n),this.http=o,this.eventBusService=s}search(e,n,o){let s=M.s.ACVALIDATIONTOKENS.SEARCH(n,o);this.http.get(s).subscribe(l=>{this.eventBusService.publish(e,l)},l=>{this.handleError(l,O=>{this.search(e,n,o)},O=>{this.eventBusService.publish(this.getErrorKey(e),O)})})}fetchSingle(e,n){this.http.get(M.s.ACVALIDATIONTOKENS.GET(n)).subscribe(o=>{this.eventBusService.publish(e,o)},o=>{this.handleError(o,s=>{this.fetchSingle(e,n)},s=>{this.eventBusService.publish(this.getErrorKey(e),s)})})}static#t=this.\u0275fac=function(n){return new(n||i)(t.LFG(y.e),t.LFG(u.l),t.LFG(p.eN),t.LFG(Z.Y))};static#e=this.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var z=r(9582),B=r(3383);function at(i,d){1&i&&t._UZ(0,"util-progress",9),2&i&&t.Q6J("bar",!0)}function st(i,d){1&i&&(t.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),t._UZ(6,"i",15),t.qZA(),t.TgZ(7,"h4",16),t._uU(8,"No items"),t.qZA()()()(),t.TgZ(9,"div",17)(10,"div",18)(11,"div"),t._UZ(12,"img",19),t.qZA()()()()())}function rt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Delete"),t.qZA())}function dt(i,d){if(1&i&&(t.TgZ(0,"span",36),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function lt(i,d){if(1&i&&(t.TgZ(0,"span",37),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function ct(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"td",32)(1,"app-delete",38),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)}}const V=function(){return["/admin/users"]},G=function(i){return{username:i}};function _t(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td")(4,"a",28),t._uU(5),t.qZA()(),t.TgZ(6,"td"),t._uU(7),t.qZA(),t.TgZ(8,"td"),t._uU(9),t.qZA(),t.TgZ(10,"td")(11,"a",29),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(12),t.qZA()(),t.TgZ(13,"td"),t.YNc(14,dt,2,1,"span",30),t.YNc(15,lt,2,1,"span",31),t.qZA(),t.TgZ(16,"td"),t._uU(17),t.qZA(),t.TgZ(18,"td")(19,"small"),t._uU(20),t.ALo(21,"readableDate"),t.qZA()(),t.TgZ(22,"td")(23,"small"),t._uU(24),t.ALo(25,"readableDate"),t.qZA()(),t.TgZ(26,"td")(27,"small"),t._uU(28),t.ALo(29,"readableDate"),t.qZA()(),t.TgZ(30,"td",32)(31,"a",33),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(32,"i",34),t.qZA()(),t.YNc(33,ct,2,1,"td",35),t.qZA()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(2),t.Oqu(e.id),t.xp6(2),t.Q6J("routerLink",t.DdM(20,V))("queryParams",t.VKq(21,G,null==e.user?null:e.user.username)),t.xp6(1),t.hij(" ",null==e.user?null:e.user.username," "),t.xp6(2),t.Oqu(e.identity),t.xp6(2),t.Oqu(e.registration_method),t.xp6(3),t.hij(" ",e.reason," "),t.xp6(2),t.Q6J("ngIf",!e.is_token_valid),t.xp6(1),t.Q6J("ngIf",e.is_token_valid),t.xp6(2),t.Oqu(e.is_token_valid?"Yes":"No"),t.xp6(3),t.Oqu(t.lcZ(21,14,e.token_valid_until)),t.xp6(4),t.Oqu(t.lcZ(25,16,e.created_at)),t.xp6(4),t.Oqu(t.lcZ(29,18,e.updated_at)),t.xp6(5),t.Q6J("ngIf",n.config.showDeleteButton)}}function ut(i,d){if(1&i&&(t.TgZ(0,"div",0)(1,"div",21)(2,"div",22)(3,"div",23)(4,"p",24),t._uU(5,"AcValidationTokens that I've created"),t.qZA(),t.TgZ(6,"div",25)(7,"table",26)(8,"thead")(9,"tr")(10,"th"),t._uU(11,"Id"),t.qZA(),t.TgZ(12,"th"),t._uU(13,"User"),t.qZA(),t.TgZ(14,"th"),t._uU(15,"Identity"),t.qZA(),t.TgZ(16,"th"),t._uU(17,"Method"),t.qZA(),t.TgZ(18,"th"),t._uU(19,"Reason"),t.qZA(),t.TgZ(20,"th"),t._uU(21,"Token"),t.qZA(),t.TgZ(22,"th"),t._uU(23,"Valid"),t.qZA(),t.TgZ(24,"th"),t._uU(25,"Validity"),t.qZA(),t.TgZ(26,"th"),t._uU(27,"Created At"),t.qZA(),t.TgZ(28,"th"),t._uU(29,"Last Updated"),t.qZA(),t.TgZ(30,"th"),t._uU(31,"Update"),t.qZA(),t.YNc(32,rt,2,0,"th",7),t.qZA()(),t.TgZ(33,"tbody"),t.YNc(34,_t,34,23,"tr",27),t.qZA()()()()()()()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onColumn",e.layout==e.Layout.COLUMN),t.xp6(32),t.Q6J("ngIf",e.config.showDeleteButton),t.xp6(2),t.Q6J("ngForOf",e.acValidationTokens.content)}}function pt(i,d){if(1&i&&(t.TgZ(0,"h6",57),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.reason)}}function gt(i,d){if(1&i&&(t.TgZ(0,"small",58)(1,"b"),t._uU(2,"Updated"),t.qZA(),t._UZ(3,"br"),t._uU(4),t.ALo(5,"readableDate"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(4),t.hij(" ",t.lcZ(5,1,e.updated_at)," ")}}function mt(i,d){1&i&&(t.TgZ(0,"small",58),t._UZ(1,"br"),t.TgZ(2,"b"),t._uU(3,"Updated"),t.qZA(),t._UZ(4,"br"),t._uU(5,"Nil"),t.qZA())}function ht(i,d){if(1&i&&(t.TgZ(0,"a",52),t._uU(1," User: "),t.TgZ(2,"label",37),t._uU(3),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.Oqu(null==e.user?null:e.user.username)}}function Zt(i,d){if(1&i&&(t.TgZ(0,"a",52),t._uU(1," Token: "),t.TgZ(2,"label",59),t._uU(3),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(3),t.Oqu(e.registration_method)}}function ft(i,d){if(1&i&&(t.TgZ(0,"label",36),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function vt(i,d){if(1&i&&(t.TgZ(0,"label",59),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.token)}}function Tt(i,d){if(1&i&&(t.TgZ(0,"div",60)(1,"a",28),t._UZ(2,"i",61),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("routerLink",t.DdM(2,V))("queryParams",t.VKq(3,G,null==e.user?null:e.user.username))}}function Ut(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",60)(1,"app-delete",62),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)("look","bx")}}function At(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",40)(1,"div",41)(2,"div",23)(3,"div",42)(4,"span",43),t._uU(5),t.qZA()(),t.TgZ(6,"h5",44)(7,"a",45),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(8),t.qZA()(),t.YNc(9,pt,2,1,"h6",46),t.TgZ(10,"div",0)(11,"div",47)(12,"p",48)(13,"small")(14,"b"),t._uU(15,"Created"),t.qZA(),t._UZ(16,"br"),t._uU(17),t.ALo(18,"readableDate"),t.qZA()()(),t.TgZ(19,"div",47)(20,"p",49),t.YNc(21,gt,6,3,"small",50),t.YNc(22,mt,6,0,"small",50),t.qZA()()(),t.TgZ(23,"p"),t._uU(24),t.ALo(25,"readableDate"),t._UZ(26,"br"),t._uU(27),t.qZA(),t.TgZ(28,"div"),t.YNc(29,ht,4,1,"a",51),t.YNc(30,Zt,4,1,"a",51),t.TgZ(31,"a",52),t._uU(32," Token: "),t.YNc(33,ft,2,1,"label",30),t.YNc(34,vt,2,1,"label",53),t.qZA()()(),t.TgZ(35,"div",54)(36,"div",55),t.YNc(37,Tt,3,5,"div",56),t.YNc(38,Ut,2,2,"div",56),t.qZA()()()()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(5),t.hij(" ",e.reason.substring(0,1).toUpperCase()," "),t.xp6(3),t.hij(" ",e.identity,""),t.xp6(1),t.Q6J("ngIf",e.reason),t.xp6(8),t.Oqu(t.lcZ(18,14,e.created_at)),t.xp6(4),t.Q6J("ngIf",e.updated_at),t.xp6(1),t.Q6J("ngIf",!e.updated_at),t.xp6(2),t.hij(" Validity: ",t.lcZ(25,16,e.token_valid_until)," "),t.xp6(3),t.hij("Valid Now?: ",e.is_token_valid?"Yes":"No"," "),t.xp6(2),t.Q6J("ngIf",null==e.user?null:e.user.username),t.xp6(1),t.Q6J("ngIf",e.registration_method),t.xp6(3),t.Q6J("ngIf",!e.is_token_valid),t.xp6(1),t.Q6J("ngIf",e.is_token_valid),t.xp6(3),t.Q6J("ngIf",null==e.user?null:e.user.username),t.xp6(1),t.Q6J("ngIf",n.config.showDeleteButton)}}function xt(i,d){if(1&i&&(t.TgZ(0,"div",0),t.YNc(1,At,39,18,"div",39),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onGrid",e.layout==e.Layout.GRID),t.xp6(1),t.Q6J("ngForOf",e.acValidationTokens.content)}}function qt(i,d){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,ut,35,4,"div",20),t.YNc(2,xt,2,3,"div",20),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.COLUMN),t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.GRID)}}let bt=(()=>{class i extends Q.R{componentName(){return"AcValidationTokenListComponent"}constructor(e,n,o,s,l,O,F,w){super(e,n,o,l),this.activatedRoute=O,this.acValidationTokenService=F,this.notifier=w,this.config=nt,this.acValidationTokens=b.H,s.isAdmin()&&(this.config.searchEndpoint=M.s.ACVALIDATIONTOKENS.ACVALIDATIONTOKEN_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(e=>{let n=(0,J.OP)(e);this.fetchAcValidationTokens({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"AcValidationTokens",link:null,active:!0}]}fetchAcValidationTokens(e){this.loading=!0;const n=this.componentKey(L.Z.ACVALIDATIONTOKENS.SEARCH(e));this.acValidationTokenService.search(n,this.config.searchEndpoint,e),this.subscribe(n,null,(o,s)=>{this.acValidationTokens=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.error("Error",s.data.error.message)})}onDeleted(e){e&&(this.notifier.success("Success","AcValidationToken is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return null}getUpsertComponent(){return null}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(y.e),t.Y36(K.x),t.Y36(a.gz),t.Y36(ot),t.Y36(u.l))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-acvalidationtoken-list"]],features:[t.qOj],decls:11,vars:8,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"showAddBtn","addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],[1,"text-uppercase"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[3,"routerLink","queryParams"],["href","javascript: void(0);",3,"click"],["class","badge bg-danger font-size-11 m-1",4,"ngIf"],["class","badge bg-success font-size-11 m-1",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"badge","bg-danger","font-size-11","m-1"],[1,"badge","bg-success","font-size-11","m-1"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-info font-size-11 m-1",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[1,"badge","bg-info","font-size-11","m-1"],[1,"flex-fill"],[1,"bx","bx-user","text-primary"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),t.NdJ("layoutSelected",function(l){return o.onLayoutSelected(l)}),t.qZA()()(),t.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),t.NdJ("addButtonClick",function(){return o.onUpsertClick(null)}),t.qZA()()()(),t.YNc(7,at,1,1,"util-progress",5),t.YNc(8,st,13,0,"div",6),t.YNc(9,qt,3,2,"div",7),t._UZ(10,"app-pagination",8)),2&n&&(t.xp6(2),t.Q6J("title","AcValidationTokens")("layout",o.layout)("breadcrumbItems",o.breadcrumbItems),t.xp6(4),t.Q6J("showAddBtn",!1),t.xp6(1),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",o.acValidationTokens.empty),t.xp6(1),t.Q6J("ngIf",!o.acValidationTokens.empty),t.xp6(1),t.Q6J("page",o.acValidationTokens))},dependencies:[f.sg,f.O5,a.rH,_.t,U.Q,x.D,z.T,B.L,N.G]})}return i})(),Ct=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-acvalidationtoken"]],decls:1,vars:0,template:function(n,o){1&n&&t._UZ(0,"app-acvalidationtoken-list")},dependencies:[bt]})}return i})();var Y=r(1310),k=r(2668),Et=r(5732);function Ot(i,d){1&i&&t._UZ(0,"util-progress",9),2&i&&t.Q6J("bar",!0)}function It(i,d){1&i&&(t.TgZ(0,"h4",21),t._uU(1,"Cooking your data, please wait.."),t.qZA())}function Dt(i,d){1&i&&(t.TgZ(0,"h4",22),t._uU(1,"No items"),t.qZA())}function Lt(i,d){if(1&i&&(t.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),t._UZ(6,"i",15),t.qZA(),t.YNc(7,It,2,0,"h4",16),t.YNc(8,Dt,2,0,"h4",17),t.qZA()()(),t.TgZ(9,"div",18)(10,"div",19)(11,"div"),t._UZ(12,"img",20),t.qZA()()()()()),2&i){const e=t.oxw();t.xp6(7),t.Q6J("ngIf",e.loading),t.xp6(1),t.Q6J("ngIf",!e.loading)}}function yt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Created By"),t.qZA())}function Nt(i,d){1&i&&(t.TgZ(0,"th"),t._uU(1,"Delete"),t.qZA())}function St(i,d){if(1&i&&(t.TgZ(0,"td"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(e.created_by)}}function Mt(i,d){if(1&i&&t._UZ(0,"img",39),2&i){const e=t.oxw().$implicit;t.s9C("src",e.avatar,t.LSH)}}function Rt(i,d){if(1&i&&(t.TgZ(0,"span",40),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij(" ",e.name.substring(0,1).toUpperCase()," ")}}function Jt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"td",35)(1,"app-delete",41),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)}}function Yt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.YNc(3,St,2,1,"td",7),t.TgZ(4,"td"),t._uU(5),t.qZA(),t.TgZ(6,"td")(7,"div",31),t.YNc(8,Mt,1,1,"img",32),t.YNc(9,Rt,2,1,"span",33),t.qZA()(),t.TgZ(10,"td")(11,"a",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(12),t.qZA()(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.qZA(),t.TgZ(19,"td")(20,"small"),t._uU(21),t.ALo(22,"readableDate"),t.qZA()(),t.TgZ(23,"td")(24,"small"),t._uU(25),t.ALo(26,"readableDate"),t.qZA()(),t.TgZ(27,"td",35)(28,"a",36),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(29,"i",37),t.qZA()(),t.YNc(30,Jt,2,1,"td",38),t.qZA()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(2),t.Oqu(e.id),t.xp6(1),t.Q6J("ngIf",n.config.showUserFilter),t.xp6(2),t.Oqu(e.username),t.xp6(3),t.Q6J("ngIf",null!=e.avatar),t.xp6(1),t.Q6J("ngIf",null==e.avatar),t.xp6(3),t.hij(" ",e.name," "),t.xp6(2),t.Oqu(e.gender),t.xp6(2),t.Oqu(e.phone),t.xp6(2),t.Oqu(e.email),t.xp6(3),t.Oqu(t.lcZ(22,12,e.created_at)),t.xp6(4),t.Oqu(t.lcZ(26,14,e.updated_at)),t.xp6(5),t.Q6J("ngIf",n.config.showDeleteButton)}}function kt(i,d){if(1&i&&(t.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),t._uU(5,"Users that I've created"),t.qZA(),t.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),t._uU(11,"Id"),t.qZA(),t.YNc(12,yt,2,0,"th",7),t.TgZ(13,"th"),t._uU(14,"Image"),t.qZA(),t.TgZ(15,"th"),t._uU(16,"Username"),t.qZA(),t.TgZ(17,"th"),t._uU(18,"Name"),t.qZA(),t.TgZ(19,"th"),t._uU(20,"Gender"),t.qZA(),t.TgZ(21,"th"),t._uU(22,"Phone"),t.qZA(),t.TgZ(23,"th"),t._uU(24,"Email"),t.qZA(),t.TgZ(25,"th"),t._uU(26,"Created At"),t.qZA(),t.TgZ(27,"th"),t._uU(28,"Last Updated"),t.qZA(),t.TgZ(29,"th"),t._uU(30,"Update"),t.qZA(),t.YNc(31,Nt,2,0,"th",7),t.qZA()(),t.TgZ(32,"tbody"),t.YNc(33,Yt,31,16,"tr",30),t.qZA()()()()()()()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onColumn",e.layout==e.Layout.COLUMN),t.xp6(12),t.Q6J("ngIf",e.config.showUserFilter),t.xp6(19),t.Q6J("ngIf",e.config.showDeleteButton),t.xp6(2),t.Q6J("ngForOf",e.users.content)}}function Ft(i,d){if(1&i&&(t.TgZ(0,"div",61),t._UZ(1,"img",39),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.s9C("src",e.avatar,t.LSH)}}function wt(i,d){if(1&i&&(t.TgZ(0,"div",62)(1,"span",40),t._uU(2),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(2),t.hij(" ",e.name.substring(0,1).toUpperCase()," ")}}function Pt(i,d){if(1&i&&(t.TgZ(0,"h6",63),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("By ",e.created_by,"")}}function Ht(i,d){if(1&i&&(t.TgZ(0,"small",64)(1,"b"),t._uU(2,"Updated"),t.qZA(),t._UZ(3,"br"),t._uU(4),t.ALo(5,"readableDate"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(4),t.hij(" ",t.lcZ(5,1,e.updated_at)," ")}}function Qt(i,d){1&i&&(t.TgZ(0,"small",64),t._UZ(1,"br"),t.TgZ(2,"b"),t._uU(3,"Updated"),t.qZA(),t._UZ(4,"br"),t._uU(5,"Nil"),t.qZA())}function Kt(i,d){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t._UZ(2,"br"),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("Phone: ",e.phone,"")}}function zt(i,d){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw().$implicit;t.xp6(1),t.hij("Email: ",e.phone,"")}}function Bt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",58)(1,"app-delete",65),t.NdJ("deleteItemEvent",function(o){t.CHM(e);const s=t.oxw(4);return t.KtG(s.onDeleted(o))}),t.qZA()()}if(2&i){const e=t.oxw().$implicit,n=t.oxw(3);t.xp6(1),t.Q6J("requestUrl",n.config.delEndpoint+"/"+e.id)("look","bx")}}function Vt(i,d){if(1&i){const e=t.EpF();t.TgZ(0,"div",43)(1,"div",44)(2,"div",26),t.YNc(3,Ft,2,1,"div",45),t.YNc(4,wt,3,1,"div",46),t.TgZ(5,"h5",47)(6,"a",48),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._uU(7),t.qZA()(),t.YNc(8,Pt,2,1,"h6",49),t.TgZ(9,"div",0)(10,"div",50)(11,"p",51)(12,"small")(13,"b"),t._uU(14,"Created"),t.qZA(),t._UZ(15,"br"),t._uU(16),t.ALo(17,"readableDate"),t.qZA()()(),t.TgZ(18,"div",50)(19,"p",52),t.YNc(20,Ht,6,3,"small",53),t.YNc(21,Qt,6,0,"small",53),t.qZA()()(),t.TgZ(22,"p"),t.YNc(23,Kt,3,1,"span",7),t.YNc(24,zt,2,1,"span",7),t.qZA(),t.TgZ(25,"div")(26,"a",54)(27,"label",55),t._uU(28,"Approved"),t.qZA()()()(),t.TgZ(29,"div",56)(30,"div",57)(31,"div",58)(32,"a",34),t.NdJ("click",function(){const s=t.CHM(e).$implicit,l=t.oxw(3);return t.KtG(l.onUpsertClick(s.id))}),t._UZ(33,"i",59),t.qZA()(),t.YNc(34,Bt,2,2,"div",60),t.qZA()()()()}if(2&i){const e=d.$implicit,n=t.oxw(3);t.xp6(3),t.Q6J("ngIf",e.avatar),t.xp6(1),t.Q6J("ngIf",null==e.avatar),t.xp6(3),t.hij(" ",e.name,""),t.xp6(1),t.Q6J("ngIf",n.config.showUserFilter&&e.created_by),t.xp6(8),t.Oqu(t.lcZ(17,10,e.created_at)),t.xp6(4),t.Q6J("ngIf",e.updated_at),t.xp6(1),t.Q6J("ngIf",!e.updated_at),t.xp6(2),t.Q6J("ngIf",e.phone),t.xp6(1),t.Q6J("ngIf",e.email),t.xp6(10),t.Q6J("ngIf",n.config.showDeleteButton)}}function Gt(i,d){if(1&i&&(t.TgZ(0,"div",0),t.YNc(1,Vt,35,12,"div",42),t.qZA()),2&i){const e=t.oxw(2);t.Q6J("@dataLoaded",e.loading?"loading":"loaded")("@onGrid",e.layout==e.Layout.GRID),t.xp6(1),t.Q6J("ngForOf",e.users.content)}}function jt(i,d){if(1&i&&(t.TgZ(0,"div"),t.YNc(1,kt,34,5,"div",23),t.YNc(2,Gt,2,3,"div",23),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.COLUMN),t.xp6(1),t.Q6J("ngIf",e.layout===e.Layout.GRID)}}let $t=(()=>{class i extends Q.R{componentName(){return"UserListComponent"}constructor(e,n,o,s,l,O,F,w){super(e,n,o,l),this.activatedRoute=O,this.userService=F,this.notifier=w,this.config=Y.EK,this.filterData=J.M9,this.users=b.H,s.isAdmin()&&(this.config.searchEndpoint=Y.wl.adminEndpoint)}initialize(){this.activatedRoute.queryParams.subscribe(e=>{this.filterData=(0,J.OP)(e),this.fetchUsers({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Users",link:null,active:!0}]}fetchUsers(e){this.loading=!0;const n=this.componentKey(L.Z.USERS.SEARCH(e));this.userService.search(n,this.config.searchEndpoint,e),this.subscribe(n,null,(o,s)=>{this.users=s.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(o,s)=>{this.notifier.error("Error",s.data.error.message)})}onDeleted(e){e&&(this.notifier.success("Success","User is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Y.n5.create,update:e=>Y.n5.update(e),params:(0,J.oZ)(this.filterData)}}getUpsertComponent(){return k.M}static#t=this.\u0275fac=function(n){return new(n||i)(t.Y36(Z.Y),t.Y36(a.F0),t.Y36(C.z),t.Y36(y.e),t.Y36(K.x),t.Y36(a.gz),t.Y36(Et.K),t.Y36(u.l))};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-user-list"]],features:[t.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),t.NdJ("layoutSelected",function(l){return o.onLayoutSelected(l)}),t.qZA()()(),t.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),t.NdJ("addButtonClick",function(){return o.onUpsertClick(null)}),t.qZA()()()(),t.YNc(7,Ot,1,1,"util-progress",5),t.YNc(8,Lt,13,2,"div",6),t.YNc(9,jt,3,2,"div",7),t._UZ(10,"app-pagination",8)),2&n&&(t.xp6(2),t.Q6J("title","Users")("layout",o.layout)("breadcrumbItems",o.breadcrumbItems),t.xp6(5),t.Q6J("ngIf",o.loading),t.xp6(1),t.Q6J("ngIf",o.users.empty),t.xp6(1),t.Q6J("ngIf",!o.users.empty),t.xp6(1),t.Q6J("page",o.users))},dependencies:[f.sg,f.O5,_.t,U.Q,x.D,z.T,B.L,N.G]})}return i})();const Wt=[{path:"",component:(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275cmp=t.Xpm({type:i,selectors:[["app-user"]],decls:1,vars:0,template:function(n,o){1&n&&t._UZ(0,"app-user-list")},dependencies:[$t]})}return i})()},{path:"create",component:k.M},{path:":id/update",component:k.M},{path:"activity-logs",component:$},{path:"request-credentials/lockouts",component:et},{path:"validation-tokens",component:Ct}];let Xt=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.oAB({type:i});static#i=this.\u0275inj=t.cJS({imports:[a.Bz.forChild(Wt),a.Bz]})}return i})();var te=r(9797),ee=r(2241),ie=r(4807);let ne=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.oAB({type:i});static#i=this.\u0275inj=t.cJS({imports:[f.ez,c.kn,g.u5,D.TU,Xt,te.CmsModule,g.UX,v.g,ee.AdminModule,ie.A0]})}return i})()},2668:(R,E,r)=>{r.d(E,{M:()=>q});var f=r(9870),v=r(1310),c=r(6223),g=r(7259),D=r(7700),a=r(5879),b=r(30),I=r(1662),m=r(6945),L=r(5732),h=r(5462),t=r(6814),u=r(7035),Z=r(4736);function C(A,y){1&A&&a._UZ(0,"util-progress",18),2&A&&a.Q6J("bar",!0)}let q=(()=>{class A extends f.n{constructor(p,T,_,U,x,N,S){super(p,T,_,U,S),this.userService=x,this.notifier=N,this.config=v.EK,this.userForm=new c.cw({title:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(20)]),image:new c.NI(null)}),null!=S.title&&this.userForm.controls.title.setValue(S.title)}componentName(){return"UserUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Users",link:"/admin/users",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(p){this.loading=!0;let T=this.componentKey(g.Z.USERS.GET(p));this.userService.fetchSingle(T,p),this.subscribe(T,null,(_,U)=>{this.loading=!1,this.populateForm(U.data)}),this.subscribe(this.getErrorKey(T),null,(_,U)=>{console.log(U.data),this.loading=!1})}onSubmit(){this.userForm.valid&&this.upsert(this.exId)}onImgUploaded(p){p.length>0&&this.userForm.controls.image.setValue(p[0].image_url)}getExImages(){let p=this.userForm.controls.image.value;return null==p?[]:[{image_url:p,thumb_url:p}]}getConfig(){return this.config}getListPageRoute(){return v.n5.list}upsert(p){this.loading=!0;let T=this.componentKey(g.Z.USERS.UPSERT(p));this.userService.upsert(T,this.userForm.value,p),this.subscribe(T,null,(_,U)=>{this.loading=!1,this.notifier.success("Success","User has been "+(p?"updated":"created")),this.userForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(U.data):this.navigateToListPage()}),this.subscribe(this.getErrorKey(T),null,(_,U)=>{let x=U.data;this.loading=!1,this.notifier.warning("Failed!",x.error.message)})}populateForm(p){}static#t=this.\u0275fac=function(T){return new(T||A)(a.Y36(b.Y),a.Y36(I.F0),a.Y36(m.z),a.Y36(I.gz),a.Y36(L.K),a.Y36(h.l),a.Y36(D.WI))};static#e=this.\u0275cmp=a.Xpm({type:A,selectors:[["app-user-upsert"]],features:[a.qOj],decls:28,vars:10,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],[1,"error"],["type","text","id","title-input","placeholder","Enter Title","name","title","formControlName","title",1,"form-control"],[1,"text-danger"],["for","description",1,"form-label"],["id","description","placeholder","Enter Description","rows","5","name","description","formControlName","description",1,"form-control"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(T,_){1&T&&(a.YNc(0,C,1,1,"util-progress",0),a.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),a._uU(6,"Create/Update User"),a.qZA(),a.TgZ(7,"form",6)(8,"div",7)(9,"label",8),a._uU(10,"Title"),a.TgZ(11,"em",9),a._uU(12,"*"),a.qZA()(),a._UZ(13,"input",10),a.TgZ(14,"em",11),a._uU(15),a.qZA()(),a.TgZ(16,"div",7)(17,"label",12),a._uU(18,"Description"),a.qZA(),a._UZ(19,"textarea",13),a.TgZ(20,"em",11),a._uU(21),a.qZA()(),a.TgZ(22,"app-file-picker",14),a.NdJ("onUploaded",function(x){return _.onImgUploaded(x)}),a.qZA(),a.TgZ(23,"div",15)(24,"button",16),a.NdJ("click",function(){return _.onCancel()}),a._uU(25," Cancel "),a.qZA(),a.TgZ(26,"button",17),a.NdJ("click",function(){return _.onSubmit()}),a._uU(27," Submit "),a.qZA()()()()()()()),2&T&&(a.Q6J("ngIf",_.loading),a.xp6(1),a.Q6J("@loaded",!_.loading),a.xp6(6),a.Q6J("formGroup",_.userForm),a.xp6(8),a.hij(" ",_.errMsg(_.userForm,"title","minLength","Title should be at least 3 characters!")," "),a.xp6(6),a.hij(" ",_.errMsg(_.userForm,"description","minLength","Description should be at least 20 characters!")," "),a.xp6(1),a.s9C("title",_.translations.Image),a.Q6J("multiSelect",!1)("existingImages",_.getExImages())("required",!1),a.xp6(4),a.Q6J("ngClass",_.userForm.valid?"":"disabled"))},dependencies:[t.mk,t.O5,c._Y,c.Fj,c.JJ,c.JL,u.P,c.sg,c.u,Z.t]})}return A})()},1310:(R,E,r)=>{r.d(E,{EK:()=>c,n5:()=>D,wl:()=>g});var f=r(6405),v=r(7597);let c={defaultLayout:f.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:v.U.USERS.USER_ENDPOINT,delEndpoint:v.U.USERS.USER_ENDPOINT},g={endpoint:v.U.USERS.USER_ENDPOINT,adminEndpoint:v.U.USERS.USER_ENDPOINT_ADMIN},D={list:"/admin/users",create:"/admin/users/create",update(a){return null==a?this.create:"/admin/users/"+a+"/update"}}},5732:(R,E,r)=>{r.d(E,{K:()=>I});var f=r(1547),v=r(7597),c=r(5879),g=r(8480),D=r(5462),a=r(9862),b=r(30);let I=(()=>{class m extends f.b{constructor(h,t,u,Z){super(h,t),this.http=u,this.eventBusService=Z}search(h,t,u){let Z=v.U.USERS.SEARCH(t,u);this.http.get(Z).subscribe(C=>{this.eventBusService.publish(h,C)},C=>{this.handleError(C,q=>{this.search(h,t,u)},q=>{this.eventBusService.publish(this.getErrorKey(h),q)})})}fetchSingle(h,t){this.http.get(v.U.USERS.GET(t)).subscribe(u=>{this.eventBusService.publish(h,u)},u=>{this.handleError(u,Z=>{this.fetchSingle(h,t)},Z=>{this.eventBusService.publish(this.getErrorKey(h),Z)})})}upsert(h,t,u){let Z=null==u?v.U.USERS.CREATE():v.U.USERS.UPDATE(u);(null==u?this.http.post(Z,t):this.http.patch(Z,t)).subscribe(q=>{this.eventBusService.publish(h,q)},q=>{this.handleError(q,A=>{this.upsert(h,t,u)},A=>{this.eventBusService.publish(this.getErrorKey(h),A)})})}static#t=this.\u0275fac=function(t){return new(t||m)(c.LFG(g.e),c.LFG(D.l),c.LFG(a.eN),c.LFG(b.Y))};static#e=this.\u0275prov=c.Yz7({token:m,factory:m.\u0275fac,providedIn:"root"})}return m})()}}]); \ No newline at end of file diff --git a/en-US/326.38354acd47162138.js b/en-US/326.38354acd47162138.js new file mode 100644 index 0000000..92686ba --- /dev/null +++ b/en-US/326.38354acd47162138.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[326],{5095:(z,K,o)=>{o.d(K,{e:()=>E});var d=o(8637),T=o(6405),c=o(7613),x=o(8743),g=o(3108),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(8675);let E=(()=>{class u extends d.H{constructor(S,U,C,b){super(S,U,C),this.popup=b,this.Layout=T.A,this.StringUtil=c.m,this.breadcrumbItems=[],this.layout=T.A.GRID,this.breadcrumbItems=this.getBreadcrumbItems()}ngOnInit(){let S=this.getConfig().endpoint,U=g.n.retrieve(S);this.layout=null!=U?parseInt(U):this.getConfig().defaultLayout,this.initialize()}onLayoutSelected(S){this.layout=S,g.n.put(this.getConfig().endpoint,this.layout.toString())}openUpsertComponent(S){let U=this.getUpsertComponent();null!=U&&(this.popup.open(U,{id:S}),this.popup.onCompleted.subscribe(C=>{this.ngOnInit(),null!=C&&this.onUpsertSuccess(C),console.log("onSuccess. closing dialog")}),this.popup.onCanceled.subscribe(()=>{console.log("onCanceled. closing dialog")}))}onUpsertClick(S){if(this.getConfig().upsertOnDialog)this.openUpsertComponent(S);else{let U=this.getRoutes();if(null==U)return;let C=null==S?U.create:U.update(S);this.router.navigate([C],{queryParams:null!=S?U.params:{}})}}onUpsertSuccess(S){console.log("onUpsertSuccess",S)}static#e=this.\u0275fac=function(U){return new(U||u)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(e.x))};static#_=this.\u0275cmp=t.Xpm({type:u,selectors:[["ng-component"]],features:[t.qOj],decls:0,vars:0,template:function(U,C){},encapsulation:2,data:{animation:[(0,x.Ym)("onGrid","left"),(0,x.Ym)("onColumn","right")]}})}return u})()},4201:(z,K,o)=>{o.d(K,{C:()=>l});var d=o(8637),T=o(5879),c=o(7700),x=o(8743),g=o(1855),t=o(30),A=o(1662),B=o(6945);let l=(()=>{class e extends d.H{constructor(u,N,S,U,C){super(u,N,S),this.route=U,this.dialogData=C,this.breadcrumbItems=[],this.onCanceled=new T.vpe,this.onCompleted=new T.vpe,this.filterData=null,this.exId=null,this.dialogUpsert=!1,this.breadcrumbItems=this.getBreadcrumbItems(),this.dialogUpsert=null!=C.dialogUpsert}ngOnInit(){this.loading=!1,this.route.queryParams.subscribe(u=>{this.filterData=(0,g.OP)(u)}),this.route.paramMap.subscribe(u=>{let N=u.get("id");if(null==N&&(N=this.dialogData?.id),null!=N){let S=parseInt(N);isNaN(S)||(this.exId=S,this.initialize(this.exId))}})}navigateToListPage(u=null){this.router.navigate([this.getListPageRoute()],{queryParams:null==this.filterData?null:(0,g.oZ)(this.filterData)}).then(u)}onSuccess(u){this.loading=!1,this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCompleted.emit(u):this.navigateToListPage()}onCancel(){this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCanceled.emit():this.navigate(this.getListPageRoute(),u=>{})}static#e=this.\u0275fac=function(N){return new(N||e)(T.Y36(t.Y),T.Y36(A.F0),T.Y36(B.z),T.Y36(A.gz),T.Y36(c.WI))};static#_=this.\u0275cmp=T.Xpm({type:e,selectors:[["ng-component"]],outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[T.qOj],decls:0,vars:0,template:function(N,S){},encapsulation:2,data:{animation:[(0,x.e6)("loaded")]}})}return e})()},9107:(z,K,o)=>{o.d(K,{l:()=>C});var d=o(9870),T=o(1470),c=o(6223),x=o(7700),g=o(7259),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(7210),E=o(5462),u=o(6814),N=o(4736),S=o(7035);function U(b,y){1&b&&t._UZ(0,"util-progress",23),2&b&&t.Q6J("bar",!0)}let C=(()=>{class b extends d.n{constructor(h,M,f,P,I,Z,V){super(h,M,f,P,V),this.brandService=I,this.notifier=Z,this.config=T.j,this.brandForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),image:new c.NI(null)}),null!=V.name&&this.brandForm.controls.name.setValue(V.name)}componentName(){return"BrandUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Brands",link:"/admin/brands",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(h){this.loading=!0;let M=this.componentKey(g.Z.BRANDS.GET(h));this.brandService.fetchSingle(M,h),this.subscribe(M,null,(f,P)=>{this.loading=!1,this.populateForm(P.data)}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{console.log(P.data),this.loading=!1})}onSubmit(){this.brandForm.valid&&this.upsert(this.exId)}onImgUploaded(h){h.length>0&&this.brandForm.controls.image.setValue(h[0].image_url)}getExImages(){let h=this.brandForm.controls.image.value;return null==h?[]:[{image_url:h,thumb_url:h}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(h){this.loading=!0;let M=this.componentKey(g.Z.BRANDS.UPSERT(h));this.brandService.upsert(M,this.brandForm.value,h),this.subscribe(M,null,(f,P)=>{this.loading=!1;let I="Brand has been "+(h?"updated":"created");this.notifier.success("Success",I),this.brandForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(P.data):this.navigate(T.n.list,Z=>{this.notifier.success("Success!",I)})}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{let I=P.data;this.loading=!1,this.notifier.warning("Failed!",I.error.message)})}populateForm(h){this.brandForm.controls.name.setValue(h.name),this.brandForm.controls.description.setValue(h.description),this.brandForm.controls.image.setValue(null==h.image?null:h.image)}static#e=this.\u0275fac=function(M){return new(M||b)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.c),t.Y36(E.l),t.Y36(x.WI))};static#_=this.\u0275cmp=t.Xpm({type:b,selectors:[["app-brand-upsert"]],features:[t.qOj],decls:31,vars:12,consts:function(){let h,M,f,P,I;return h="Create/Update Brand",M="Name",f="Description",P="Cancel",I="Submit",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],h,[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],M,[1,"error"],["type","text","id","title-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","description",1,"form-label"],f,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],P,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],I,[3,"bar"]]},template:function(M,f){1&M&&(t.YNc(0,U,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",8)(9,"label",9)(10,"span"),t.SDv(11,10),t.qZA(),t.TgZ(12,"em",11),t._uU(13,"*"),t.qZA()(),t._UZ(14,"input",12),t.TgZ(15,"em",13),t._uU(16),t.qZA()(),t.TgZ(17,"div",8)(18,"label",14),t.SDv(19,15),t.qZA(),t._UZ(20,"textarea",16),t.TgZ(21,"em",13),t._uU(22),t.qZA()(),t.TgZ(23,"app-file-picker",17),t.NdJ("onUploaded",function(I){return f.onImgUploaded(I)}),t.qZA(),t.TgZ(24,"div",18)(25,"button",19),t.NdJ("click",function(){return f.onCancel()}),t.TgZ(26,"span"),t.SDv(27,20),t.qZA()(),t.TgZ(28,"button",21),t.NdJ("click",function(){return f.onSubmit()}),t.TgZ(29,"span"),t.SDv(30,22),t.qZA()()()()()()()()),2&M&&(t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("@loaded",!f.loading),t.xp6(6),t.Q6J("formGroup",f.brandForm),t.xp6(7),t.s9C("placeholder",f.translations["Enter Name"]),t.xp6(2),t.hij(" ",f.errMsg(f.brandForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.s9C("placeholder",f.translations["Enter Description"]),t.xp6(2),t.hij(" ",f.errMsg(f.brandForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(1),t.s9C("title",f.translations.Image),t.Q6J("multiSelect",!1)("existingImages",f.getExImages())("required",!1),t.xp6(5),t.Q6J("ngClass",f.brandForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.P]})}return b})()},1470:(z,K,o)=>{o.d(K,{j:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showUpdateButton:!1,showDeleteButton:!1,searchEndpoint:T.E.BRANDS.BRAND_ENDPOINT,delEndpoint:T.E.BRANDS.BRAND_ENDPOINT},x={list:"/admin/brands",create:"/admin/brands/create",update(g){return null==g?this.create:"/admin/brands/"+g+"/update"}}},7210:(z,K,o)=>{o.d(K,{c:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.BRANDS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.BRANDS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.BRANDS.CREATE():T.E.BRANDS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},5081:(z,K,o)=>{o.d(K,{P:()=>y});var d=o(5879),T=o(8637),c=o(7259),x=o(8174),g=o(2771),t=o(2134),A=o(30),B=o(1662),l=o(6945),e=o(4120),E=o(8675),u=o(6814),N=o(6223),S=o(4736),U=o(4807);function C(h,M){1&h&&d._UZ(0,"util-progress",4),2&h&&d.Q6J("bar",!0)}const b=function(){return{standalone:!0}};let y=(()=>{class h extends T.H{componentName(){return"CategorySelectComponent"}constructor(f,P,I,Z,V){super(f,P,I),this.categoryService=Z,this.popupService=V,this.searchEndpoint=g.E.CATEGORIES.CATEGORY_ENDPOINT_V2,this.categories=[],this.selectedItem=null,this.selected=new d.vpe,this.searchEndpoint=g.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN_V2}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(f){let P=x.g.removeSpecialCharacters(f.target?.value);P.length>2&&this.search({page:0,size:10,q:P})}onSelected(f){this.categories.find(P=>P.name==f.name)?this.selected.emit(this.selectedItem):this.popupService.open(t.I,{id:null,name:f.name}).componentInstance.onCompleted.subscribe(I=>{this.selected.emit(I)})}search(f){this.loading=!0;let P=this.componentKey(c.Z.CATEGORIES.SEARCH_CATEGORIES_FOR_FILTER());this.categoryService.search(P,this.searchEndpoint,f),this.subscribe(P,null,(I,Z)=>{this.categories=Z.data.content,this.loading=!1})}static#e=this.\u0275fac=function(P){return new(P||h)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.H),d.Y36(E.x))};static#_=this.\u0275cmp=d.Xpm({type:h,selectors:[["app-category-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let f;return f="Category",[["for","autoSizingInput2",1,"visually-hidden"],f,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(P,I){1&P&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,C,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(V){return I.searchForEvent(V)})("ngModelChange",function(V){return I.selectedItem=V})("change",function(V){return I.onSelected(V)}),d.qZA()),2&P&&(d.xp6(2),d.Q6J("ngIf",I.loading),d.xp6(1),d.s9C("placeholder",I.translations["Search Category.."]),d.Q6J("items",I.categories)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",I.selectedItem)("ngModelOptions",d.DdM(8,b)))},dependencies:[u.O5,N.JJ,S.t,U.w9,N.On]})}return h})()},2134:(z,K,o)=>{o.d(K,{I:()=>N});var d=o(2642),T=o(6223),c=o(7700),x=o(7259),g=o(4201),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(4120),E=o(5462);function u(S,U){1&S&&t._UZ(0,"util-progress",32),2&S&&t.Q6J("bar",!0)}let N=(()=>{class S extends g.C{constructor(C,b,y,h,M,f,P){super(C,b,y,h,P),this.categoryService=M,this.notifier=f,this.config=d.o,this.selectedParent=null,this.categoryForm=new T.cw({name:new T.NI("",[T.kI.required,T.kI.minLength(3)]),description:new T.NI("",[]),parent_id:new T.NI(null),image:new T.NI(null),update_attributes_for_children:new T.NI(!1)}),null!=P.name&&this.categoryForm.controls.name.setValue(P.name)}componentName(){return"CategoryUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Categorys",link:"/admin/categorys",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(C){this.loading=!0;let b=this.componentKey(x.Z.PRODUCT_CATEGORIES.GET(C));this.categoryService.fetchSingle(b,C),this.subscribe(b,null,(y,h)=>{this.loading=!1,this.populateForm(h.data)}),this.subscribe(this.getErrorKey(b),null,(y,h)=>{console.log(h.data),this.loading=!1})}onSubmit(){this.categoryForm.valid&&this.upsert(this.exId)}onImgUploaded(C){C.length>0&&this.categoryForm.controls.image.setValue(C[0].image_url)}getExImages(){let C=this.categoryForm.controls.image.value;return null==C?[]:[{image_url:C,thumb_url:C}]}getConfig(){return this.config}getListPageRoute(){return d.n.list}upsert(C){this.loading=!0;let b=this.componentKey(x.Z.PRODUCT_CATEGORIES.UPSERT(C));this.categoryService.upsert(b,this.categoryForm.value,C),this.subscribe(b,null,(y,h)=>{this.categoryForm.reset(),this.onSuccess(h.data)}),this.subscribe(this.getErrorKey(b),null,(y,h)=>{let M=h.data;this.loading=!1,this.notifier.warning("Failed!",M.error.message)})}populateForm(C){this.selectedParent=C.parent,this.categoryForm.controls.name.setValue(C.name),this.categoryForm.controls.description.setValue(C.description),this.categoryForm.controls.parent_id.setValue(null==C.parent?null:C.parent.id),this.categoryForm.controls.image.setValue(null==C.image?null:C.image)}onParentSelected(C){this.selectedParent=C,this.categoryForm.controls.parent_id.setValue(null==C?null:C.id)}static#e=this.\u0275fac=function(b){return new(b||S)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.H),t.Y36(E.l),t.Y36(c.WI))};static#_=this.\u0275cmp=t.Xpm({type:S,selectors:[["app-category-upsert"]],features:[t.qOj],decls:40,vars:13,consts:function(){let C,b,y,h,M,f,P;return C="Create/Update Category",b="Name",y="Parent",h="Description",M=" Update Attributes for children ",f="Cancel",P="Submit",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],C,[3,"formGroup"],[1,"row","mb-3"],[1,"col-6","col-sm-6"],["for","title-input",1,"form-label"],b,[1,"error"],["type","text","id","title-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","parent",1,"form-label"],y,["id","parent",3,"searchEndpoint","selectedItem","selected"],[1,"mb-3"],["for","description",1,"form-label"],h,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"form-check"],["type","checkbox","id","gridCheck","name","update_attributes_for_children","formControlName","update_attributes_for_children",1,"form-check-input"],["for","gridCheck",1,"form-check-label"],M,[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],f,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],P,[3,"bar"]]},template:function(b,y){1&b&&(t.YNc(0,u,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",8)(9,"div",9)(10,"label",10)(11,"span"),t.SDv(12,11),t.qZA(),t.TgZ(13,"em",12),t._uU(14,"*"),t.qZA()(),t._UZ(15,"input",13),t.TgZ(16,"em",14),t._uU(17),t.qZA()(),t.TgZ(18,"div",9)(19,"label",15),t.SDv(20,16),t.qZA(),t.TgZ(21,"app-category-select",17),t.NdJ("selected",function(M){return y.onParentSelected(M)}),t.qZA()()(),t.TgZ(22,"div",18)(23,"label",19),t.SDv(24,20),t.qZA(),t._UZ(25,"textarea",21),t.qZA(),t.TgZ(26,"app-file-picker",22),t.NdJ("onUploaded",function(M){return y.onImgUploaded(M)}),t.qZA(),t.TgZ(27,"div",8)(28,"div",18)(29,"div",23),t._UZ(30,"input",24),t.TgZ(31,"label",25),t.SDv(32,26),t.qZA()()()(),t.TgZ(33,"div",27)(34,"button",28),t.NdJ("click",function(){return y.onCancel()}),t.TgZ(35,"span"),t.SDv(36,29),t.qZA()(),t.TgZ(37,"button",30),t.NdJ("click",function(){return y.onSubmit()}),t.TgZ(38,"span"),t.SDv(39,31),t.qZA()()()()()()()()),2&b&&(t.Q6J("ngIf",y.loading),t.xp6(1),t.Q6J("@loaded",!y.loading),t.xp6(6),t.Q6J("formGroup",y.categoryForm),t.xp6(8),t.s9C("placeholder",y.translations["Enter Name"]),t.xp6(2),t.hij(" ",y.errMsg(y.categoryForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.Q6J("searchEndpoint",y.config.endpointV2)("selectedItem",y.selectedParent),t.xp6(4),t.s9C("placeholder",y.translations["Enter Description"]),t.xp6(1),t.s9C("title",y.translations.Image),t.Q6J("multiSelect",!1)("existingImages",y.getExImages())("required",!1),t.xp6(11),t.Q6J("ngClass",y.categoryForm.valid?"":"disabled"))}})}return S})()},2642:(z,K,o)=>{o.d(K,{n:()=>x,o:()=>c});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,showUpdateButton:!1,endpoint:T.E.CATEGORIES.CATEGORY_ENDPOINT,endpointV2:T.E.CATEGORIES.CATEGORY_ENDPOINT_V2,delEndpoint:T.E.CATEGORIES.CATEGORY_ENDPOINT},x={list:"/admin/inventory/categories",getChildren:g=>"/admin/inventory/categories?parent_id="+g,create:"/admin/inventory/categories/create",update(g){return null==g?this.create:"/admin/inventory/categories/"+g+"/update"}}},4120:(z,K,o)=>{o.d(K,{H:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.CATEGORIES.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.CATEGORIES.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}fetchMultiple(E,u){this.http.get(T.E.CATEGORIES.GET_MULTIPLE(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchMultiple(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.CATEGORIES.CREATE():T.E.CATEGORIES.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},756:(z,K,o)=>{o.d(K,{t:()=>h});var d=o(5879),T=o(8637),c=o(8174),x=o(7259),g=o(2771),t=o(4381),A=o(30),B=o(1662),l=o(6945),e=o(8480),E=o(6501),u=o(8675),N=o(6814),S=o(6223),U=o(4736),C=o(4807);function b(M,f){1&M&&d._UZ(0,"util-progress",4),2&M&&d.Q6J("bar",!0)}const y=function(){return{standalone:!0}};let h=(()=>{class M extends T.H{componentName(){return"FAttributeSelectComponent"}constructor(P,I,Z,V,q,_e){super(P,I,Z),this.filterableAttributeService=q,this.popupService=_e,this.searchEndpoint=g.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new d.vpe,V.isAdmin()&&(this.searchEndpoint=g.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(P){let I=c.g.removeSpecialCharacters(P.target?.value);I.length>2&&this.search({page:0,size:10,q:I})}onSelected(P){this.items.find(I=>I.name==P.name)?this.selected.emit(this.selectedItem):this.popupService.open(t.V,{id:null,name:P.name,dialogUpsert:!0}).componentInstance.onCompleted.subscribe(Z=>{this.selected.emit(Z)})}search(P){this.loading=!0;let I=this.componentKey(x.Z.FILTERABLEATTRIBUTES.SEARCH(P));this.filterableAttributeService.search(I,this.searchEndpoint,P),this.subscribe(I,null,(Z,V)=>{this.items=V.data.content,this.loading=!1})}static#e=this.\u0275fac=function(I){return new(I||M)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.e),d.Y36(E.C),d.Y36(u.x))};static#_=this.\u0275cmp=d.Xpm({type:M,selectors:[["app-fa-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let P;return P="Filter Attribute",[["for","autoSizingInput2",1,"visually-hidden"],P,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(I,Z){1&I&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,b,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(q){return Z.searchForEvent(q)})("ngModelChange",function(q){return Z.selectedItem=q})("change",function(q){return Z.onSelected(q)}),d.qZA()),2&I&&(d.xp6(2),d.Q6J("ngIf",Z.loading),d.xp6(1),d.s9C("placeholder",Z.translations["Search Attributes.."]),d.Q6J("items",Z.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",Z.selectedItem)("ngModelOptions",d.DdM(8,y)))},dependencies:[N.O5,S.JJ,U.t,C.w9,S.On]})}return M})()},4381:(z,K,o)=>{o.d(K,{V:()=>b});var d=o(6223),T=o(9870),c=o(231),x=o(7700),g=o(7259),t=o(8174),A=o(5879),B=o(30),l=o(1662),e=o(6945),E=o(6501),u=o(5462),N=o(6814),S=o(4736);function U(y,h){1&y&&A._UZ(0,"util-progress",21),2&y&&A.Q6J("bar",!0)}function C(y,h){if(1&y){const M=A.EpF();A.TgZ(0,"div",22)(1,"div",23),A._UZ(2,"input",24),A.qZA(),A.TgZ(3,"div",25)(4,"a",26)(5,"i",27),A.NdJ("click",function(){const I=A.CHM(M).index,Z=A.oxw();return A.KtG(Z.removeValue(I))}),A.qZA()()()()}if(2&y){const M=h.$implicit,f=h.index;A.xp6(2),A.Q6J("formControl",M)("id","value_"+f)}}let b=(()=>{class y extends T.n{get valuesArrayControls(){return this.filterableAttributeForm.get("values").controls.filter(M=>M instanceof d.NI)}addValueControl(M){const f=new d.NI(M,d.kI.required);this.filterableAttributeForm.get("values").push(f)}removeValue(M){this.filterableAttributeForm.get("values").removeAt(M)}constructor(M,f,P,I,Z,V,q){super(M,f,P,I,q),this.filterableAttributeService=Z,this.notifier=V,this.config=c.I,this.filterableAttributeForm=new d.cw({name:new d.NI("",[d.kI.required,d.kI.minLength(3)]),code:new d.NI("",[d.kI.required,d.kI.minLength(3)]),values:new d.Oe([],d.kI.required)}),null!=q.name&&(this.filterableAttributeForm.controls.name.setValue(q.name),this.filterableAttributeForm.controls.code.setValue(t.g.codify(q.name)))}componentName(){return"FilterableAttributeUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"FilterableAttributes",link:"/admin/filterableattributes",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.filterableAttributeForm.controls.name.valueChanges.subscribe(M=>{null!=M&&this.filterableAttributeForm.controls.code.setValue(t.g.codify(M))}),null==this.exId&&(this.addValueControl(""),this.addValueControl(""))}initialize(M){this.loading=!0;let f=this.componentKey(g.Z.FILTERABLEATTRIBUTES.GET(M));this.filterableAttributeService.fetchSingle(f,M),this.subscribe(f,null,(P,I)=>{this.loading=!1,this.populateForm(I.data)}),this.subscribe(this.getErrorKey(f),null,(P,I)=>{console.log(I.data),this.loading=!1})}onSubmit(){this.filterableAttributeForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return c.n.list}upsert(M){this.loading=!0;let f=this.componentKey(g.Z.FILTERABLEATTRIBUTES.UPSERT(M));this.filterableAttributeService.upsert(f,this.filterableAttributeForm.value,M),this.subscribe(f,null,(P,I)=>{this.filterableAttributeForm.reset(),this.onSuccess(I.data)}),this.subscribe(this.getErrorKey(f),null,(P,I)=>{let Z=I.data;this.loading=!1,this.notifier.warning("Failed!",Z.error.message)})}populateForm(M){this.filterableAttributeForm.controls.name.setValue(M.name),this.filterableAttributeForm.controls.code.setValue(M.code),M.values.forEach(f=>{this.addValueControl(f)})}static#e=this.\u0275fac=function(f){return new(f||y)(A.Y36(B.Y),A.Y36(l.F0),A.Y36(e.z),A.Y36(l.gz),A.Y36(E.C),A.Y36(u.l),A.Y36(x.WI))};static#_=this.\u0275cmp=A.Xpm({type:y,selectors:[["app-filterableattribute-upsert"]],features:[A.qOj],decls:40,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"row","mb-3"],[1,"col-6"],["for","name-input",1,"form-label"],[1,"error"],["type","text","id","name-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],["type","text","id","code-input","placeholder","Enter Code","name","code","formControlName","code",1,"form-control"],["formArrayName","values"],["class","row mb-2",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-info",3,"click"],[1,"mdi","mdi-plus","font-size-16"],[1,"d-flex","flex-wrap","gap-3","mt-2","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],[1,"row","mb-2"],[1,"col-11"],["type","text","placeholder","Enter value",1,"form-control",3,"formControl","id"],[1,"col-1","d-flex","align-items-center","justify-content-center"],["href","javascript: void(0);"],[1,"bx","bx-x-circle","text-danger","font-size-20",3,"click"]],template:function(f,P){1&f&&(A.YNc(0,U,1,1,"util-progress",0),A.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),A._uU(6,"Create/Update FilterableAttribute"),A.qZA(),A.TgZ(7,"form",6)(8,"div",7)(9,"div",8)(10,"label",9),A._uU(11,"Name"),A.TgZ(12,"em",10),A._uU(13,"*"),A.qZA()(),A._UZ(14,"input",11),A.TgZ(15,"em",12),A._uU(16),A.qZA()(),A.TgZ(17,"div",8)(18,"label",9),A._uU(19,"Code"),A.TgZ(20,"em",10),A._uU(21,"*"),A.qZA()(),A._UZ(22,"input",13),A.TgZ(23,"em",12),A._uU(24),A.qZA()()(),A.TgZ(25,"div",14)(26,"label",9),A._uU(27,"Enter Values"),A.TgZ(28,"em",10),A._uU(29,"*"),A.qZA()(),A._UZ(30,"br"),A.YNc(31,C,6,2,"div",15),A.TgZ(32,"button",16),A.NdJ("click",function(){return P.addValueControl("")}),A._UZ(33,"i",17),A._uU(34," Add "),A.qZA()(),A.TgZ(35,"div",18)(36,"button",19),A.NdJ("click",function(){return P.onCancel()}),A._uU(37," Cancel "),A.qZA(),A.TgZ(38,"button",20),A.NdJ("click",function(){return P.onSubmit()}),A._uU(39," Submit "),A.qZA()()()()()()()),2&f&&(A.Q6J("ngIf",P.loading),A.xp6(1),A.Q6J("@loaded",!P.loading),A.xp6(6),A.Q6J("formGroup",P.filterableAttributeForm),A.xp6(9),A.hij(" ",P.errMsg(P.filterableAttributeForm,"name","minLength","Name should be at least 3 characters!")," "),A.xp6(8),A.hij(" ",P.errMsg(P.filterableAttributeForm,"code","minLength","Code should be at least 3 characters!")," "),A.xp6(7),A.Q6J("ngForOf",P.valuesArrayControls),A.xp6(7),A.Q6J("ngClass",P.filterableAttributeForm.valid?"":"disabled"))},dependencies:[N.mk,N.sg,N.O5,d._Y,d.Fj,d.JJ,d.JL,d.oH,d.sg,d.u,d.CE,S.t]})}return y})()},231:(z,K,o)=>{o.d(K,{I:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:T.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT,delEndpoint:T.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT},x={list:"/admin/filterable-attributes",create:"/admin/filterable-attributes/create",update(g){return null==g?this.create:"/admin/filterable-attributes/"+g+"/update"}}},6501:(z,K,o)=>{o.d(K,{C:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.FILTERABLEATTRIBUTES.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.FILTERABLEATTRIBUTES.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.FILTERABLEATTRIBUTES.CREATE():T.E.FILTERABLEATTRIBUTES.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},2771:(z,K,o)=>{o.d(K,{E:()=>c});var d=o(2495),T=o(553);class c extends d.O{static#e=this.CATEGORIES={CATEGORY_ENDPOINT:T.N.base_url+"/api/v1/categories",CATEGORY_ENDPOINT_V2:T.N.base_url+"/api/v2/categories",CATEGORY_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/categories",CATEGORY_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/categories",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.CATEGORY_ENDPOINT},GET(g){return this.CATEGORY_ENDPOINT+"/"+g},GET_MULTIPLE(g){return this.CATEGORY_ENDPOINT+"/multiple/by-ids?ids="+g.join(",")},UPDATE(g){return this.CATEGORY_ENDPOINT+"/"+g}};static#_=this.ATTRIBUTES={ATTRIBUTE_ENDPOINT:T.N.base_url+"/api/v1/attributes",ATTRIBUTE_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/admin/attributes",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.ATTRIBUTE_ENDPOINT},GET(g){return this.ATTRIBUTE_ENDPOINT+"/"+g},UPDATE(g){return this.ATTRIBUTE_ENDPOINT+"/"+g}};static#t=this.FILTERABLEATTRIBUTES={FILTERABLEATTRIBUTE_ENDPOINT:T.N.base_url+"/api/v1/filterable-attributes",FILTERABLEATTRIBUTE_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/filterable-attributes",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.FILTERABLEATTRIBUTE_ENDPOINT},GET(g){return this.FILTERABLEATTRIBUTE_ENDPOINT+"/"+g},UPDATE(g){return this.FILTERABLEATTRIBUTE_ENDPOINT+"/"+g}};static#i=this.BRANDS={BRAND_ENDPOINT:T.N.base_url+"/api/v1/brands",BRAND_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/brands",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.BRAND_ENDPOINT},GET(g){return this.BRAND_ENDPOINT+"/"+g},UPDATE(g){return this.BRAND_ENDPOINT+"/"+g}};static#n=this.VARIATIONS={VARIATION_ENDPOINT:T.N.base_url+"/api/v1/variations",VARIATION_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/variations",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.VARIATION_ENDPOINT},GET(g){return this.VARIATION_ENDPOINT+"/"+g},UPDATE(g){return this.VARIATION_ENDPOINT+"/"+g}};static#o=this.PRODUCTS={PRODUCT_ENDPOINT:T.N.base_url+"/api/v1/products",PRODUCT_ENDPOINT_V2:T.N.base_url+"/api/v2/products",PRODUCT_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/products",PRODUCT_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/products",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE:g=>g,GET:(g,t)=>g+"/"+t,UPDATE:(g,t)=>g+"/"+t,APPROVE:(g,t,A)=>g+"/"+t+"/approve?approved="+A};static#s=this.PRODUCTSPECIFICATIONS={PRODUCTSPECIFICATION_ENDPOINT:T.N.base_url+"/api/v1/productspecifications",PRODUCTSPECIFICATION_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/productspecifications",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.PRODUCTSPECIFICATION_ENDPOINT},GET(g){return this.PRODUCTSPECIFICATION_ENDPOINT+"/"+g},UPDATE(g){return this.PRODUCTSPECIFICATION_ENDPOINT+"/"+g}};static#r=this.STOCKS={STOCK_ENDPOINT:T.N.base_url+"/api/v1/stocks",STOCK_ENDPOINT_V2:T.N.base_url+"/api/v2/stocks",STOCK_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/stocks",STOCK_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/stocks",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.STOCK_ENDPOINT_V2},GET:(g,t)=>g+"/"+t,GET_BY_SKU:(g,t)=>g+"/by-sku/"+t,UPDATE(g){return this.STOCK_ENDPOINT_V2+"/"+g}};static#l=this.VENDORS={VENDOR_ENDPOINT:T.N.base_url+"/api/v1/vendors",VENDOR_ENDPOINT_V2:T.N.base_url+"/api/v2/vendors",VENDOR_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/vendors",VENDOR_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/vendors",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),MY_VENDORS:(g,t)=>g.concat("/my-vendors").concat(d.O.toParamString(t)),CREATE(){return this.VENDOR_ENDPOINT},GET(g){return this.VENDOR_ENDPOINT_V2+"/"+g},TOGGLE_APPROVAL(g,t){return this.VENDOR_ENDPOINT+"/"+g+"/approve?approved="+t},UPDATE(g){return this.VENDOR_ENDPOINT+"/"+g},SEARCH_CUSTOMERS(g){return this.VENDOR_ENDPOINT_V2+"/my-vendors/search-customers".concat(d.O.toParamString(g))}}}},5326:(z,K,o)=>{o.r(K),o.d(K,{InventoryModule:()=>wn});var d=o(6814),T=o(1662),c=o(2134),x=o(2642),g=o(6542),t=o(1855),A=o(7259),B=o(2771),l=o(5095),e=o(5879),E=o(30),u=o(6945),N=o(8480),S=o(8675),U=o(4120),C=o(5462),b=o(4736),y=o(1836),h=o(6075),M=o(9582),f=o(3383),P=o(2770);function I(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Z(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function V(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function q(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Z,2,0,"h4",16),e.YNc(8,V,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function _e(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function Te(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function Oe(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,43),e.qZA())}function me(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function ge(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"a",48),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",49),e.qZA()()}}function Ne(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"app-delete",50),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Ae(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,me,2,1,"td",7),e.TgZ(4,"td"),e._UZ(5,"img",44),e.qZA(),e.TgZ(6,"td")(7,"a",45),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e._uU(8),e.qZA()(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.YNc(21,ge,3,0,"td",46),e.YNc(22,Ne,2,1,"td",46),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(2),e.s9C("src",_.image,e.LSH),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.parent_name),e.xp6(3),e.Oqu(e.lcZ(16,10,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,12,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function $(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,_e,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.YNc(25,Te,2,0,"th",7),e.YNc(26,Oe,2,0,"th",7),e.qZA()(),e.TgZ(27,"tbody"),e.YNc(28,Ae,23,14,"tr",40),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.categories.content)}}function de(i,a){if(1&i&&(e.TgZ(0,"div",68),e._UZ(1,"img",44),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function O(i,a){if(1&i&&(e.TgZ(0,"div",69)(1,"span",70),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function D(i,a){if(1&i&&(e.TgZ(0,"h6",71),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function v(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("Parent: ",_.parent_name,"")}}function p(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e.SDv(2,74),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function R(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,75),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function L(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",76)(1,"a",45),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",77),e.qZA()()}}function J(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",76)(1,"app-delete",78),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Q(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",52)(1,"div",53),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e.TgZ(2,"div",28),e.YNc(3,de,2,1,"div",54),e.YNc(4,O,3,1,"div",55),e.TgZ(5,"h5",56)(6,"a",57),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e._uU(7),e.qZA()(),e.YNc(8,D,2,1,"h6",58),e.YNc(9,v,2,1,"h6",59),e.TgZ(10,"div",0)(11,"div",60)(12,"p",61)(13,"small")(14,"b"),e.SDv(15,62),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",60)(20,"p",63),e.YNc(21,p,6,3,"small",64),e.YNc(22,R,6,0,"small",64),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA()(),e.TgZ(25,"div",65)(26,"div",66),e.YNc(27,L,3,0,"div",67),e.YNc(28,J,2,2,"div",67),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(1),e.Q6J("ngIf",_.parent_name),e.xp6(8),e.Oqu(e.lcZ(18,11,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(3),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function j(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Q,29,13,"div",51),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.categories.content)}}function pe(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,$,29,6,"div",25),e.YNc(2,j,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let Ee=(()=>{class i extends l.e{componentName(){return"CategoryListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.categoryService=F,this.notifier=w,this.config=x.o,this.categories=g.H,r.isAdmin()&&(this.config.endpoint=B.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN,this.config.endpointV2=B.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN_V2,this.config.showDeleteButton=!0,this.config.showUpdateButton=!0)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_),s=_.parent_id?parseInt(_.parent_id):null;this.fetchCategories({q:n.query,parent_id:s,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return this.breadcrumbItems}fetchCategories(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCT_CATEGORIES.SEARCH(_));this.categoryService.search(n,this.config.endpointV2,_),this.subscribe(n,null,(s,r)=>{this.categories=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}getMultipleByIds(_){this.loading=!0;const n=this.componentKey(A.Z.CATEGORIES.GET_MULTIPLE(_));this.categoryService.fetchMultiple(n,_),this.subscribe(n,null,(s,r)=>{let Y=[{text:"Categories",link:x.n.list,active:!1}];r.data.map(F=>{Y.push({text:F.name,link:x.n.getChildren(F.id),active:!1})}),this.breadcrumbItems=Y,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Category is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:x.n.create,update:_=>x.n.update(_),params:{}}}getUpsertComponent(){return c.I}onCategoryClick(_){this.navigateByUrl(x.n.getChildren(_.id),n=>{this.getMultipleByIds(_.absolute_path.split(":").map(s=>parseInt(s)))})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(U.H),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-category-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W;return _="Cooking your data, please wait..",n="No items",s="Categories that I've created",r="Id",m="Image",Y="Name",F="Description",w="Parent",oe="Created At",se="Last Updated",re="Created By",le="Update",ae="Delete",ce="Created At",X="Updated",W="Updated",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,[4,"ngFor","ngForOf"],re,le,ae,["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center",3,"click"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],["class","font-size-10 text-primary",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ce,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-10","text-info"],[1,"font-size-10","text-primary"],[1,"font-size-10"],X,W,[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,I,1,1,"util-progress",5),e.YNc(8,q,13,2,"div",6),e.YNc(9,pe,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Categories)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.categories.empty),e.xp6(1),e.Q6J("ngIf",!s.categories.empty),e.xp6(1),e.Q6J("page",s.categories))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})();var k=o(9538),ue=o(2159),Se=o(6405);let ne={defaultLayout:Se.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT,delEndpoint:B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT},Re={list:"/admin/attributes",create:"/admin/attributes/create",update(i){return null==i?this.create:"/admin/attributes/"+i+"/update"}};var G=o(6223),Ce=o(9870),fe=o(7700),H=o(1547),Ye=o(9862);let Ve=(()=>{class i extends H.b{constructor(_,n,s,r){super(_,n),this.http=s,this.eventBusService=r}search(_,n,s){let r=B.E.ATTRIBUTES.SEARCH(n,s);this.http.get(r).subscribe(m=>{this.eventBusService.publish(_,m)},m=>{this.handleError(m,Y=>{this.search(_,n,s)},Y=>{this.eventBusService.publish(this.getErrorKey(_),Y)})})}fetchSingle(_,n){this.http.get(B.E.ATTRIBUTES.GET(n)).subscribe(s=>{this.eventBusService.publish(_,s)},s=>{this.handleError(s,r=>{this.fetchSingle(_,n)},r=>{this.eventBusService.publish(this.getErrorKey(_),r)})})}upsert(_,n,s){let r=null==s?B.E.ATTRIBUTES.CREATE():B.E.ATTRIBUTES.UPDATE(s);(null==s?this.http.post(r,n):this.http.patch(r,n)).subscribe(Y=>{this.eventBusService.publish(_,Y)},Y=>{this.handleError(Y,F=>{this.upsert(_,n,s)},F=>{this.eventBusService.publish(this.getErrorKey(_),F)})})}static#e=this.\u0275fac=function(n){return new(n||i)(e.LFG(N.e),e.LFG(C.l),e.LFG(Ye.eN),e.LFG(E.Y))};static#_=this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Qe(i,a){1&i&&e._UZ(0,"util-progress",18),2&i&&e.Q6J("bar",!0)}let Ie=(()=>{class i extends Ce.n{constructor(_,n,s,r,m,Y,F){super(_,n,s,r,F),this.attributeService=m,this.notifier=Y,this.config=ne,this.attributeForm=new G.cw({name:new G.NI("",[G.kI.required,G.kI.minLength(3)]),description:new G.NI("",[G.kI.required,G.kI.minLength(20)]),priority_level:new G.NI(1,[G.kI.min(0),G.kI.max(10)])})}componentName(){return"AttributeUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Attributes",link:"/admin/attributes",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(_){this.loading=!0;let n=this.componentKey(A.Z.ATTRIBUTES.GET(_));this.attributeService.fetchSingle(n,_),this.subscribe(n,null,(s,r)=>{this.loading=!1,this.populateForm(r.data)}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{console.log(r.data),this.loading=!1})}onSubmit(){this.attributeForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return Re.list}upsert(_){this.loading=!0;let n=this.componentKey(A.Z.ATTRIBUTES.UPSERT(_));this.attributeService.upsert(n,this.attributeForm.value,_),this.subscribe(n,null,(s,r)=>{this.loading=!1;let m="Attribute has been "+(_?"updated":"created");this.notifier.success("Success",m),this.attributeForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(r.data):this.navigate(Re.list,Y=>{this.notifier.success("Success!",m)})}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{let m=r.data;this.loading=!1,this.notifier.warning("Failed!",m.error.message)})}populateForm(_){this.attributeForm.controls.name.setValue(_.name),this.attributeForm.controls.description.setValue(_.description),this.attributeForm.controls.priority_level.setValue(_.priority_level)}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(T.gz),e.Y36(Ve),e.Y36(C.l),e.Y36(fe.WI))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute-upsert"]],features:[e.qOj],decls:33,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],[1,"error"],["type","text","id","title-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],["for","description",1,"form-label"],["id","description","placeholder","Enter Description","rows","5","name","description","formControlName","description",1,"form-control"],["type","number","id","priority_level","placeholder","Priority Level","name","priority_level","formControlName","priority_level",1,"form-control"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(n,s){1&n&&(e.YNc(0,Qe,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update Attribute"),e.qZA(),e.TgZ(7,"form",6)(8,"div",7)(9,"label",8),e._uU(10,"Name"),e.TgZ(11,"em",9),e._uU(12,"*"),e.qZA()(),e._UZ(13,"input",10),e.TgZ(14,"em",11),e._uU(15),e.qZA()(),e.TgZ(16,"div",7)(17,"label",12),e._uU(18,"Description"),e.qZA(),e._UZ(19,"textarea",13),e.TgZ(20,"em",11),e._uU(21),e.qZA()(),e.TgZ(22,"div",7)(23,"label",12),e._uU(24,"Priority Level"),e.qZA(),e._UZ(25,"input",14),e.TgZ(26,"em",11),e._uU(27),e.qZA()(),e.TgZ(28,"div",15)(29,"button",16),e.NdJ("click",function(){return s.onCancel()}),e._uU(30," Cancel "),e.qZA(),e.TgZ(31,"button",17),e.NdJ("click",function(){return s.onSubmit()}),e._uU(32," Submit "),e.qZA()()()()()()()),2&n&&(e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("@loaded",!s.loading),e.xp6(6),e.Q6J("formGroup",s.attributeForm),e.xp6(8),e.hij(" ",s.errMsg(s.attributeForm,"name","minLength","Title should be at least 4 characters!")," "),e.xp6(6),e.hij(" ",s.errMsg(s.attributeForm,"description","minLength","Description should be at least 20 characters!")," "),e.xp6(6),e.hij(" ",s.errMsg(s.attributeForm,"priority_level","min","Priority must be between 0 to 10")," "),e.xp6(4),e.Q6J("ngClass",s.attributeForm.valid?"":"disabled"))},dependencies:[d.mk,d.O5,G._Y,G.Fj,G.wV,G.JJ,G.JL,G.sg,G.u,b.t]})}return i})();function we(i,a){1&i&&e._UZ(0,"util-progress",8),2&i&&e.Q6J("bar",!0)}function ke(i,a){1&i&&(e.TgZ(0,"h4",20),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function ze(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"No items"),e.qZA())}function Xe(i,a){if(1&i&&(e.TgZ(0,"div",9)(1,"div",10)(2,"div",0)(3,"div",11)(4,"div",12)(5,"h1",13),e._UZ(6,"i",14),e.qZA(),e.YNc(7,ke,2,0,"h4",15),e.YNc(8,ze,2,0,"h4",16),e.qZA()()(),e.TgZ(9,"div",17)(10,"div",18)(11,"div"),e._UZ(12,"img",19),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function We(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function je(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function He(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function e_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",32)(1,"app-delete",36),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function __(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,He,2,1,"td",7),e.TgZ(4,"td")(5,"a",31),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.TgZ(19,"td",32)(20,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(21,"i",34),e.qZA()(),e.YNc(22,e_,2,1,"td",35),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.priority_level),e.xp6(3),e.Oqu(e.lcZ(14,8,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function t_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"Attributes that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,We,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Name"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Description"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Priority Level"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Created At"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Last Updated"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Update"),e.qZA(),e.YNc(25,je,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,__,23,12,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.attributes.content)}}function i_(i,a){if(1&i&&(e.TgZ(0,"h6",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function n_(i,a){if(1&i&&(e.TgZ(0,"small",57)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function o_(i,a){1&i&&(e.TgZ(0,"small",57),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function s_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",53)(1,"app-delete",58),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function r_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",38)(1,"div",39)(2,"div",26)(3,"div",40)(4,"span",41),e._uU(5),e.qZA()(),e.TgZ(6,"h5",42)(7,"a",43),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,i_,2,1,"h6",44),e.TgZ(10,"div",0)(11,"div",45)(12,"p",46)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",45)(20,"p",47),e.YNc(21,n_,6,3,"small",48),e.YNc(22,o_,6,0,"small",48),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",49)(27,"label",50),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",51)(30,"div",52)(31,"div",53)(32,"a",31),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(33,"i",54),e.qZA()(),e.YNc(34,s_,2,2,"div",55),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(4),e.Oqu(_.priority_level),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function l_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,r_,35,11,"div",37),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.attributes.content)}}function a_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,t_,28,5,"div",22),e.YNc(2,l_,2,3,"div",22),e._UZ(3,"app-pagination",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID),e.xp6(1),e.Q6J("page",_.attributes)}}let c_=(()=>{class i extends ue.R{componentName(){return"AttributeListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.attributeService=F,this.notifier=w,this.config=ne,this.attributes=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchAttributes({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Attributes",link:null,active:!0}]}fetchAttributes(_){this.loading=!0;const n=this.componentKey(A.Z.ATTRIBUTES.SEARCH(_));this.attributeService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.attributes=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Attribute is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Re.create,update:_=>Re.update(_),params:{}}}getUpsertComponent(){return Ie}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Ve),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute-list"]],features:[e.qOj],decls:10,vars:6,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[3,"page"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,we,1,1,"util-progress",5),e.YNc(8,Xe,13,2,"div",6),e.YNc(9,a_,4,3,"div",7)),2&n&&(e.xp6(2),e.Q6J("title","Attributes")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.attributes.empty),e.xp6(1),e.Q6J("ngIf",!s.attributes.empty))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),d_=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-attribute-list")},dependencies:[c_]})}return i})();var ve=o(231),Me=o(4381),u_=o(6501);function E_(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function T_(i,a){1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.TgZ(7,"h4",16),e._uU(8,"No items"),e.qZA()()()(),e.TgZ(9,"div",17)(10,"div",18)(11,"div"),e._UZ(12,"img",19),e.qZA()()()()())}function p_(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function N_(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function S_(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function O_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",29)(1,"app-delete",33),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function m_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,S_,2,1,"td",7),e.TgZ(4,"td")(5,"a",28),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.TgZ(19,"td",29)(20,"a",30),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(21,"i",31),e.qZA()(),e.YNc(22,O_,2,1,"td",32),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.code),e.xp6(2),e.Oqu(_.values.join(", ")),e.xp6(3),e.Oqu(e.lcZ(14,8,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function g_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",21)(2,"div",22)(3,"div",23)(4,"p",24),e._uU(5,"FilterableAttributes that I've created"),e.qZA(),e.TgZ(6,"div",25)(7,"table",26)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,p_,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Name"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Description"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Values"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Created At"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Last Updated"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Update"),e.qZA(),e.YNc(25,N_,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,m_,23,12,"tr",27),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.filterableAttributes.content)}}function A_(i,a){if(1&i&&(e.TgZ(0,"h6",53),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function R_(i,a){if(1&i&&(e.TgZ(0,"small",54)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function C_(i,a){1&i&&(e.TgZ(0,"small",54),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function f_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",50)(1,"app-delete",55),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function P_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",35)(1,"div",36)(2,"div",23)(3,"div",37)(4,"span",38),e._uU(5),e.qZA()(),e.TgZ(6,"h5",39)(7,"a",40),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,A_,2,1,"h6",41),e.TgZ(10,"div",0)(11,"div",42)(12,"p",43)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",42)(20,"p",44),e.YNc(21,R_,6,3,"small",45),e.YNc(22,C_,6,0,"small",45),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",46)(27,"label",47),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",48)(30,"div",49)(31,"div",50)(32,"a",28),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(33,"i",51),e.qZA()(),e.YNc(34,f_,2,2,"div",52),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",_.values.join(", ")," "),e.xp6(4),e.Oqu(_.code),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function I_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,P_,35,11,"div",34),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.filterableAttributes.content)}}function v_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,g_,28,5,"div",20),e.YNc(2,I_,2,3,"div",20),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let M_=(()=>{class i extends ue.R{componentName(){return"FilterableAttributeListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.filterableAttributeService=F,this.notifier=w,this.config=ve.I,this.filterableAttributes=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchFilterableAttributes({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"FilterableAttributes",link:null,active:!0}]}fetchFilterableAttributes(_){this.loading=!0;const n=this.componentKey(A.Z.FILTERABLEATTRIBUTES.SEARCH(_));this.filterableAttributeService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.filterableAttributes=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","FilterableAttribute is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:ve.n.create,update:_=>ve.n.update(_),params:{}}}getUpsertComponent(){return Me.V}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(u_.C),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-filterableattribute-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],[1,"text-uppercase"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,E_,1,1,"util-progress",5),e.YNc(8,T_,13,0,"div",6),e.YNc(9,v_,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","FilterableAttributes")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.filterableAttributes.empty),e.xp6(1),e.Q6J("ngIf",!s.filterableAttributes.empty),e.xp6(1),e.Q6J("page",s.filterableAttributes))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),D_=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-filterableattribute"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-filterableattribute-list")},dependencies:[M_]})}return i})();var De=o(1470),he=o(9107),h_=o(7210);function U_(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function b_(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function L_(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function Z_(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,b_,2,0,"h4",16),e.YNc(8,L_,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function x_(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function B_(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function y_(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function K_(i,a){if(1&i&&(e.TgZ(0,"span",51),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Y_(i,a){if(1&i&&e._UZ(0,"img",52),2&i){const _=e.oxw().$implicit;e.s9C("src",_.image,e.LSH)}}function V_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"app-delete",53),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function F_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,y_,2,1,"td",7),e.TgZ(4,"td")(5,"div",43),e.YNc(6,K_,2,1,"span",44),e.YNc(7,Y_,1,1,"img",45),e.qZA()(),e.TgZ(8,"td")(9,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.TgZ(21,"td",47)(22,"a",48),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(23,"i",49),e.qZA()(),e.YNc(24,V_,2,1,"td",50),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null==_.image),e.xp6(1),e.Q6J("ngIf",null!=_.image),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(n.StringUtil.takeOnly(_.description,50)),e.xp6(3),e.Oqu(e.lcZ(16,9,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,11,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function $_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,x_,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.YNc(25,B_,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,F_,25,13,"tr",40),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.brands.content)}}function G_(i,a){if(1&i&&(e.TgZ(0,"div",70),e._UZ(1,"img",52),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function q_(i,a){if(1&i&&(e.TgZ(0,"div",71)(1,"span",51),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function J_(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function Q_(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e.SDv(2,74),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function w_(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function k_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",75)(1,"a",46),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",76),e.qZA()()}}function z_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",75)(1,"app-delete",77),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function X_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",55)(1,"div",56)(2,"div",28),e.YNc(3,G_,2,1,"div",57),e.YNc(4,q_,3,1,"div",58),e.TgZ(5,"h5",59)(6,"a",60),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,J_,2,1,"h6",61),e.TgZ(9,"div",0)(10,"div",62)(11,"p",63)(12,"small")(13,"b"),e.SDv(14,64),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",62)(19,"p",65),e.YNc(20,Q_,6,3,"small",66),e.YNc(21,w_,6,0,"small",66),e.qZA()()(),e.TgZ(22,"p"),e._uU(23),e.qZA()(),e.TgZ(24,"div",67)(25,"div",68),e.YNc(26,k_,3,0,"div",69),e.YNc(27,z_,2,2,"div",69),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(3),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function W_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,X_,28,12,"div",54),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.brands.content)}}function j_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,$_,28,5,"div",25),e.YNc(2,W_,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let H_=(()=>{class i extends ue.R{componentName(){return"BrandListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.brandService=F,this.notifier=w,this.config=De.j,this.brands=g.H,r.isAdmin()&&(this.config.showUpdateButton=!0,this.config.showDeleteButton=!0,this.config.searchEndpoint=B.E.BRANDS.BRAND_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchBrands({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Brands,link:null,active:!0}]}fetchBrands(_){this.loading=!0;const n=this.componentKey(A.Z.BRANDS.SEARCH(_));this.brandService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.brands=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Brand is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:De.n.create,update:_=>De.n.update(_),params:{}}}getUpsertComponent(){return he.l}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(h_.c),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-brand-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce;return _="Cooking your data, please wait..",n="No items",s="Available Brands",r="Id",m="Image",Y="Title",F="Description",w="Created At",oe="Last Updated",se="Update",re="Created By",le="Delete",ae="Created At",ce="Updated",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,[4,"ngFor","ngForOf"],re,le,[1,"avatar-sm","mx-auto"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ae,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ce,[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,U_,1,1,"util-progress",5),e.YNc(8,Z_,13,2,"div",6),e.YNc(9,j_,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Brands)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.brands.empty),e.xp6(1),e.Q6J("ngIf",!s.brands.empty),e.xp6(1),e.Q6J("page",s.brands))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),et=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-brand"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-brand-list")},dependencies:[H_]})}return i})();var Ue=o(4968),be=o(2447),_t=o(3668);function tt(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function it(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function nt(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function ot(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,it,2,0,"h4",16),e.YNc(8,nt,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function st(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,40),e.qZA())}function rt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function lt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function at(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function ct(i,a){if(1&i&&e._UZ(0,"img",48),2&i){const _=e.oxw().$implicit;e.s9C("src",_.image,e.LSH)}}function dt(i,a){if(1&i&&(e.TgZ(0,"span",49),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function ut(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",50)(1,"a",51),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",52),e.qZA()()}}function Et(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",50)(1,"app-delete",53),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Tt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,at,2,1,"td",7),e.TgZ(4,"td")(5,"div",43),e.YNc(6,ct,1,1,"img",44),e.YNc(7,dt,2,1,"span",45),e.qZA()(),e.TgZ(8,"td")(9,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.YNc(21,ut,3,0,"td",47),e.YNc(22,Et,2,1,"td",47),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null!=_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(n.StringUtil.takeOnly(_.description,50)),e.xp6(3),e.Oqu(e.lcZ(16,10,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,12,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function pt(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,st,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.YNc(23,rt,2,0,"th",7),e.YNc(24,lt,2,0,"th",7),e.qZA()(),e.TgZ(25,"tbody"),e.YNc(26,Tt,23,14,"tr",39),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(11),e.Q6J("ngIf",_.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.variations.content)}}function Nt(i,a){if(1&i&&(e.TgZ(0,"div",72),e._UZ(1,"img",48),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function St(i,a){if(1&i&&(e.TgZ(0,"div",73)(1,"span",49),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Ot(i,a){if(1&i&&(e.TgZ(0,"h6",74),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function mt(i,a){if(1&i&&(e.TgZ(0,"small",75)(1,"b"),e.SDv(2,76),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function gt(i,a){1&i&&(e.TgZ(0,"small",75),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,77),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function At(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",69)(1,"app-delete",78),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Rt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",55)(1,"div",56)(2,"div",28),e.YNc(3,Nt,2,1,"div",57),e.YNc(4,St,3,1,"div",58),e.TgZ(5,"h5",59)(6,"a",60),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,Ot,2,1,"h6",61),e.TgZ(9,"div",0)(10,"div",62)(11,"p",63)(12,"small")(13,"b"),e.SDv(14,64),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",62)(19,"p",65),e.YNc(20,mt,6,3,"small",66),e.YNc(21,gt,6,0,"small",66),e.qZA()()(),e.TgZ(22,"p"),e._uU(23),e.qZA()(),e.TgZ(24,"div",67)(25,"div",68)(26,"div",69)(27,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(28,"i",70),e.qZA()(),e.YNc(29,At,2,2,"div",71),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ct(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Rt,30,11,"div",54),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.variations.content)}}function ft(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,pt,27,6,"div",25),e.YNc(2,Ct,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let Pt=(()=>{class i extends ue.R{componentName(){return"VariationListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.variationService=F,this.notifier=w,this.config=Ue._,this.variations=g.H,r.isAdmin()&&(this.config.showUpdateButton=!0,this.config.showDeleteButton=!0,this.config.searchEndpoint=B.E.VARIATIONS.VARIATION_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchVariations({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Variations,link:null,active:!0}]}fetchVariations(_){this.loading=!0;const n=this.componentKey(A.Z.VARIATIONS.SEARCH(_));this.variationService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.variations=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Variation is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Ue.n.create,update:_=>Ue.n.update(_),params:{}}}getUpsertComponent(){return be.s}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(_t.$),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-variation-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X;return _="Cooking your data, please wait..",n="No items",s="Variations that I've created",r="Id",m="Image",Y="Name",F="Description",w="Created At",oe="Last Updated",se="Created By",re="Update",le="Delete",ae="Created At",ce="Updated",X="Updated",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,[4,"ngFor","ngForOf"],se,re,le,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ae,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ce,X,[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,tt,1,1,"util-progress",5),e.YNc(8,ot,13,2,"div",6),e.YNc(9,ft,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Variations)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.variations.empty),e.xp6(1),e.Q6J("ngIf",!s.variations.empty),e.xp6(1),e.Q6J("page",s.variations))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),It=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-variation"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-variation-list")},dependencies:[Pt]})}return i})();var Le=o(973),Ze=o(3989),vt=o(1492);function Mt(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Dt(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function ht(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function Ut(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Dt,2,0,"h4",16),e.YNc(8,ht,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function bt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,43),e.qZA())}function Lt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,44),e.qZA())}function Zt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,45),e.qZA())}function xt(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.created_by," ")}}function Bt(i,a){if(1&i&&e._UZ(0,"img",56),2&i){const _=e.oxw().$implicit;e.s9C("src",_.images[0],e.LSH)}}function yt(i,a){if(1&i&&(e.TgZ(0,"span",57),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Kt(i,a){1&i&&e._UZ(0,"i",58)}function Yt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"a",61),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(2).$implicit,r=e.oxw(3);return e.KtG(r.onApproveClick(s.id,!s.approved))}),e._UZ(1,"i",62),e.qZA()}}function Vt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"a",63),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(2).$implicit,r=e.oxw(3);return e.KtG(r.onApproveClick(s.id,!s.approved))}),e._UZ(1,"i",62),e.qZA()}}function Ft(i,a){if(1&i&&(e.TgZ(0,"td",53),e.YNc(1,Yt,2,0,"a",59),e.YNc(2,Vt,2,0,"a",60),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",_.approved),e.xp6(1),e.Q6J("ngIf",!_.approved)}}function $t(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",53)(1,"app-delete",64),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Gt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,xt,2,1,"td",7),e.TgZ(4,"td")(5,"div",46),e.YNc(6,Bt,1,1,"img",47),e.YNc(7,yt,2,1,"span",48),e.qZA()(),e.TgZ(8,"td",49),e._uU(9),e.qZA(),e.TgZ(10,"td",49),e.YNc(11,Kt,1,0,"i",50),e.TgZ(12,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(13),e.qZA()(),e.TgZ(14,"td"),e._uU(15),e.qZA(),e.TgZ(16,"td"),e._uU(17),e.qZA(),e.TgZ(18,"td")(19,"small"),e._uU(20),e.ALo(21,"readableDate"),e.qZA()(),e.TgZ(22,"td")(23,"small"),e._uU(24),e.ALo(25,"readableDate"),e.qZA()(),e.YNc(26,Ft,3,2,"td",52),e.TgZ(27,"td",53)(28,"a",54),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(29,"i",55),e.qZA()(),e.YNc(30,$t,2,1,"td",52),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",_.images.length>0),e.xp6(1),e.Q6J("ngIf",0==_.images.length),e.xp6(2),e.Oqu(n.getCategoryNames(_.categories)),e.xp6(2),e.Q6J("ngIf",_.approved),e.xp6(2),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.brand.name),e.xp6(2),e.Oqu(_.weight),e.xp6(3),e.Oqu(e.lcZ(21,14,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(25,16,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showApproveButton),e.xp6(2),e.Q6J("ngClass",_.approved?"btn-outline-warning disabled":""),e.xp6(2),e.Q6J("ngIf",n.config.showDeleteButton&&!_.approved)}}function qt(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,bt,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.TgZ(25,"th"),e.SDv(26,40),e.qZA(),e.YNc(27,Lt,2,0,"th",7),e.TgZ(28,"th"),e.SDv(29,41),e.qZA(),e.YNc(30,Zt,2,0,"th",7),e.qZA()(),e.TgZ(31,"tbody"),e.YNc(32,Gt,31,18,"tr",42),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(15),e.Q6J("ngIf",_.config.showApproveButton),e.xp6(3),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.products.content)}}function Jt(i,a){if(1&i&&(e.TgZ(0,"div",86),e._UZ(1,"img",56),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.images[0],e.LSH)}}function Qt(i,a){if(1&i&&(e.TgZ(0,"div",87)(1,"span",57),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function wt(i,a){if(1&i&&(e.TgZ(0,"h6",88),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function kt(i,a){if(1&i&&(e.TgZ(0,"small",89)(1,"b"),e.SDv(2,90),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function zt(i,a){1&i&&(e.TgZ(0,"small",89),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,91),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function Xt(i,a){if(1&i&&(e.TgZ(0,"label",92),e._uU(1),e.qZA()),2&i){const _=a.$implicit;e.xp6(1),e.hij(" ",_.name," ")}}function Wt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",83)(1,"app-delete",93),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function jt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",66)(1,"div",67)(2,"div",28),e.YNc(3,Jt,2,1,"div",68),e.YNc(4,Qt,3,1,"div",69),e.TgZ(5,"h5",70)(6,"a",71),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,wt,2,1,"h6",72),e.TgZ(9,"h6",73),e._uU(10),e.qZA(),e.TgZ(11,"div",0)(12,"div",74)(13,"p",75)(14,"small")(15,"b"),e.SDv(16,76),e.qZA(),e._UZ(17,"br"),e._uU(18),e.ALo(19,"readableDate"),e.qZA()()(),e.TgZ(20,"div",74)(21,"p",77),e.YNc(22,kt,6,3,"small",78),e.YNc(23,zt,6,0,"small",78),e.qZA()()(),e.TgZ(24,"div")(25,"a",79),e.YNc(26,Xt,2,1,"label",80),e.qZA()()(),e.TgZ(27,"div",81)(28,"div",82)(29,"div",83)(30,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(31,"i",84),e.qZA()(),e.YNc(32,Wt,2,2,"div",85),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.images.length>0),e.xp6(1),e.Q6J("ngIf",0==_.images.length),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(2),e.Oqu(_.brand.name),e.xp6(8),e.Oqu(e.lcZ(19,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(3),e.Q6J("ngForOf",_.categories),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ht(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,jt,33,12,"div",65),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.products.content)}}function ei(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,qt,33,6,"div",25),e.YNc(2,Ht,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let _i=(()=>{class i extends ue.R{componentName(){return"ProductListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.productService=F,this.notifier=w,this.config=Le.C,this.filterData=t.M9,this.products=g.H,r.isAdmin()&&(this.config.showApproveButton=!0,this.config.searchEndpoint=B.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_),this.fetchProducts({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Products,link:null,active:!0}]}getCategoryNames(_){return _.map(n=>n.name).join(", ")}fetchProducts(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCTS_V2.SEARCH(_));this.productService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.products=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Product is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Le.n.create,update:_=>Le.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Ze.A}onApproveClick(_,n){let s=this.componentKey(A.Z.PRODUCTS_V2.APPROVE(_));this.productService.approve(s,this.config.searchEndpoint,_,n),this.subscribe(s,null,(r,m)=>{this.notifier.success("Success","Product is approved"),this.ngOnInit()}),this.subscribe(this.getErrorKey(s),null,(r,m)=>{this.notifier.error("Error",m.data.error.message)})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(vt.M),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W,ee,te;return _="Cooking your data, please wait..",n="No items",s="Products that I've created",r="Id",m="Image",Y="Category",F="Title",w="Brand",oe="Weight",se="Created At",re="Last Updated",le="Update",ae="Created By",ce="Approve",X="Delete",W="Created At",ee="Updated",te="Updated",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,re,le,[4,"ngFor","ngForOf"],ae,ce,X,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],[1,"text-wrap"],["class","bx bx-check-circle text-success",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-warning","btn-sm","edit",3,"ngClass","click"],[1,"fas","fa-pencil-alt"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"bx","bx-check-circle","text-success"],["class","btn btn-outline-warning btn-sm edit","title","Edit",3,"click",4,"ngIf"],["class","btn btn-outline-success btn-sm edit","title","Edit",3,"click",4,"ngIf"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-check-circle"],["title","Edit",1,"btn","btn-outline-success","btn-sm","edit",3,"click"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"font-size-10","text-primary"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],W,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-primary font-size-11 m-1",4,"ngFor","ngForOf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ee,te,[1,"badge","bg-primary","font-size-11","m-1"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,Mt,1,1,"util-progress",5),e.YNc(8,Ut,13,2,"div",6),e.YNc(9,ei,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations["All Products"])("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.products.empty),e.xp6(1),e.Q6J("ngIf",!s.products.empty),e.xp6(1),e.Q6J("page",s.products))},dependencies:[d.mk,d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),ti=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-product-list")},dependencies:[_i]})}return i})(),Fe={defaultLayout:Se.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT,delEndpoint:B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT},Pe={list:"/admin/product-specifications",create:"/admin/product-specifications/create",update(i){return null==i?this.create:"/admin/product-specifications/"+i+"/update"}},$e=(()=>{class i extends H.b{constructor(_,n,s,r){super(_,n),this.http=s,this.eventBusService=r}search(_,n,s){let r=B.E.PRODUCTSPECIFICATIONS.SEARCH(n,s);this.http.get(r).subscribe(m=>{this.eventBusService.publish(_,m)},m=>{this.handleError(m,Y=>{this.search(_,n,s)},Y=>{this.eventBusService.publish(this.getErrorKey(_),Y)})})}fetchSingle(_,n){this.http.get(B.E.PRODUCTSPECIFICATIONS.GET(n)).subscribe(s=>{this.eventBusService.publish(_,s)},s=>{this.handleError(s,r=>{this.fetchSingle(_,n)},r=>{this.eventBusService.publish(this.getErrorKey(_),r)})})}upsert(_,n,s){let r=null==s?B.E.PRODUCTSPECIFICATIONS.CREATE():B.E.PRODUCTSPECIFICATIONS.UPDATE(s);(null==s?this.http.post(r,n):this.http.patch(r,n)).subscribe(Y=>{this.eventBusService.publish(_,Y)},Y=>{this.handleError(Y,F=>{this.upsert(_,n,s)},F=>{this.eventBusService.publish(this.getErrorKey(_),F)})})}static#e=this.\u0275fac=function(n){return new(n||i)(e.LFG(N.e),e.LFG(C.l),e.LFG(Ye.eN),e.LFG(E.Y))};static#_=this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ii=o(1426),ni=o(756);function oi(i,a){1&i&&e._UZ(0,"util-progress",15),2&i&&e.Q6J("bar",!0)}function si(i,a){if(1&i&&(e.TgZ(0,"option",19),e._uU(1),e.qZA()),2&i){const _=a.$implicit;e.Q6J("value",_),e.xp6(1),e.hij(" ",_," ")}}function ri(i,a){if(1&i&&(e.TgZ(0,"div",7)(1,"label",16)(2,"small"),e._uU(3,"Value"),e.qZA()(),e.TgZ(4,"select",17),e.YNc(5,si,2,2,"option",18),e.qZA()()),2&i){const _=e.oxw();e.xp6(5),e.Q6J("ngForOf",null==_.selectedAttr?null:_.selectedAttr.values)}}let Ge=(()=>{class i extends Ce.n{constructor(_,n,s,r,m,Y,F){super(_,n,s,r,F),this.productSpecificationService=m,this.notifier=Y,this.config=Fe,this.selectedAttr=null,this.selectedProduct=null,this.specificationForm=new G.cw({product_id:new G.NI(null,[G.kI.required]),filterable_attribute_id:new G.NI(null,[G.kI.required]),value:new G.NI(null,[G.kI.required])})}componentName(){return"ProductSpecificationUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"ProductSpecifications",link:"/admin/productspecifications",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(_){this.loading=!0;let n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.GET(_));this.productSpecificationService.fetchSingle(n,_),this.subscribe(n,null,(s,r)=>{this.loading=!1,this.populateForm(r.data)}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{console.log(r.data),this.loading=!1})}onSubmit(){this.specificationForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return Pe.list}upsert(_){this.loading=!0;let n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.UPSERT(_));this.productSpecificationService.upsert(n,this.specificationForm.value,_),this.subscribe(n,null,(s,r)=>{this.loading=!1;let m="ProductSpecification has been "+(_?"updated":"created");this.notifier.success("Success",m),this.specificationForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(r.data):this.navigate(Pe.list,Y=>{this.notifier.success("Success!",m)})}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{let m=r.data;this.loading=!1,this.notifier.warning("Failed!",m.error.message)})}populateForm(_){this.selectedAttr=_.filterable_attribute,this.specificationForm.controls.product_id.setValue(_.product_id),this.specificationForm.controls.filterable_attribute_id.setValue(_.filterable_attribute_id),this.specificationForm.controls.value.setValue(_.value)}onAttrSelected(_){this.selectedAttr=_,this.specificationForm.controls.filterable_attribute_id.setValue(null==_?.id?null:_.id)}onProductSelected(_){this.selectedProduct=_,this.specificationForm.controls.product_id.setValue(null==_?.id?null:_.id)}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(T.gz),e.Y36($e),e.Y36(C.l),e.Y36(fe.WI))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-productspecification-upsert"]],features:[e.qOj],decls:24,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","spec-key"],[3,"selectedItem","selected"],["id","spec-key",3,"selectedItem","selected"],["class","mb-3",4,"ngIf"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],["for","spec-value"],["id","spec-value","aria-label","Value","formControlName","value",1,"form-select"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,s){1&n&&(e.YNc(0,oi,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update ProductSpecification"),e.qZA(),e.TgZ(7,"form",6)(8,"div",7)(9,"label",8)(10,"small"),e._uU(11,"Select Product"),e.qZA()(),e.TgZ(12,"app-product-select",9),e.NdJ("selected",function(m){return s.onProductSelected(m)}),e.qZA()(),e.TgZ(13,"div",7)(14,"label",8)(15,"small"),e._uU(16,"Attribute/Key"),e.qZA()(),e.TgZ(17,"app-fa-select",10),e.NdJ("selected",function(m){return s.onAttrSelected(m)}),e.qZA()(),e.YNc(18,ri,6,1,"div",11),e.TgZ(19,"div",12)(20,"button",13),e.NdJ("click",function(){return s.onCancel()}),e._uU(21," Cancel "),e.qZA(),e.TgZ(22,"button",14),e.NdJ("click",function(){return s.onSubmit()}),e._uU(23," Submit "),e.qZA()()()()()()()),2&n&&(e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("@loaded",!s.loading),e.xp6(6),e.Q6J("formGroup",s.specificationForm),e.xp6(5),e.Q6J("selectedItem",s.selectedProduct),e.xp6(5),e.Q6J("selectedItem",s.selectedAttr),e.xp6(1),e.Q6J("ngIf",null!=s.selectedAttr),e.xp6(4),e.Q6J("ngClass",s.specificationForm.valid?"":"disabled"))},dependencies:[d.mk,d.sg,d.O5,G._Y,G.YN,G.Kr,G.EJ,G.JJ,G.JL,G.sg,G.u,b.t,ii.q,ni.t]})}return i})();function li(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function ai(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function ci(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function di(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,ai,2,0,"h4",16),e.YNc(8,ci,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function ui(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function Ei(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function Ti(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function pi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",34)(1,"app-delete",38),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Ni(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,Ti,2,1,"td",7),e.TgZ(4,"td")(5,"div",31)(6,"span",32),e._uU(7),e.qZA()()(),e.TgZ(8,"td")(9,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.TgZ(15,"td"),e._uU(16),e.qZA(),e.TgZ(17,"td"),e._uU(18),e.qZA(),e.TgZ(19,"td")(20,"small"),e._uU(21),e.ALo(22,"readableDate"),e.qZA()(),e.TgZ(23,"td")(24,"small"),e._uU(25),e.ALo(26,"readableDate"),e.qZA()(),e.TgZ(27,"td",34)(28,"a",35),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(29,"i",36),e.qZA()(),e.YNc(30,pi,2,1,"td",37),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(4),e.hij(" ",_.filterable_attribute.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.product_id," "),e.xp6(2),e.Oqu(_.filterable_attribute.name),e.xp6(2),e.Oqu(_.filterable_attribute.code),e.xp6(2),e.Oqu(_.filterable_attribute.values.join(",")),e.xp6(2),e.Oqu(_.value),e.xp6(3),e.Oqu(e.lcZ(22,11,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(26,13,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function Si(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"ProductSpecifications that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,ui,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Image"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Product ID"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Attribute"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Attribute Code"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Attribute Values"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Spec. Value"),e.qZA(),e.TgZ(25,"th"),e._uU(26,"Created At"),e.qZA(),e.TgZ(27,"th"),e._uU(28,"Last Updated"),e.qZA(),e.TgZ(29,"th"),e._uU(30,"Update"),e.qZA(),e.YNc(31,Ei,2,0,"th",7),e.qZA()(),e.TgZ(32,"tbody"),e.YNc(33,Ni,31,15,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(19),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.productSpecifications.content)}}function Oi(i,a){if(1&i&&(e.TgZ(0,"h6",59),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function mi(i,a){if(1&i&&(e.TgZ(0,"small",60)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function gi(i,a){1&i&&(e.TgZ(0,"small",60),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function Ai(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",54)(1,"app-delete",61),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}const Ri=function(i){return["/admin/inventory/products",i,"update"]};function Ci(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",40)(1,"div",41)(2,"div",26)(3,"div",42)(4,"span",32),e._uU(5),e.qZA()(),e.TgZ(6,"h5",43)(7,"a",44),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,Oi,2,1,"h6",45),e.TgZ(10,"div",0)(11,"div",46)(12,"p",47)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",46)(20,"p",48),e.YNc(21,mi,6,3,"small",49),e.YNc(22,gi,6,0,"small",49),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",50)(27,"label",51),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",52)(30,"div",53)(31,"div",54)(32,"a",55),e._UZ(33,"i",56),e.qZA()(),e.TgZ(34,"div",54)(35,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(36,"i",57),e.qZA()(),e.YNc(37,Ai,2,2,"div",58),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.filterable_attribute.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.filterable_attribute.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",_.filterable_attribute.values.join(",")," "),e.xp6(4),e.hij(" ",_.value," "),e.xp6(4),e.Q6J("routerLink",e.VKq(12,Ri,_.product_id)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function fi(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Ci,38,14,"div",39),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.productSpecifications.content)}}function Pi(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Si,34,5,"div",23),e.YNc(2,fi,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let qe=(()=>{class i extends ue.R{componentName(){return"ProductSpecificationListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.productSpecificationService=F,this.notifier=w,this.config=Fe,this.productSpecifications=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchProductSpecifications({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"ProductSpecifications",link:null,active:!0}]}fetchProductSpecifications(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.SEARCH(_));this.productSpecificationService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.productSpecifications=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","ProductSpecification is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Pe.create,update:_=>Pe.update(_),params:{}}}getUpsertComponent(){return Ge}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36($e),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-productspecification-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-primary","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],["href","javascript: void(0);",3,"routerLink"],[1,"bx","bxl-product-hunt","text-primary"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,li,1,1,"util-progress",5),e.YNc(8,di,13,2,"div",6),e.YNc(9,Pi,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","ProductSpecifications")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.productSpecifications.empty),e.xp6(1),e.Q6J("ngIf",!s.productSpecifications.empty),e.xp6(1),e.Q6J("page",s.productSpecifications))},dependencies:[d.sg,d.O5,T.rH,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),Ii=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product-specification"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-productspecification-list")},dependencies:[qe]})}return i})();var xe=o(337),Be=o(9876),vi=o(8174),Mi=o(52),Di=o(5789),Je=o(7405);function hi(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Ui(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function bi(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function Li(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Ui,2,0,"h4",16),e.YNc(8,bi,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function Zi(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,47),e.qZA())}function xi(i,a){if(1&i&&e._UZ(0,"img",67),2&i){const _=e.oxw().$implicit;e.s9C("src",_.product.images[0],e.LSH)}}function Bi(i,a){if(1&i&&(e.TgZ(0,"span",68),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.product.name.substring(0,1).toUpperCase()," ")}}function yi(i,a){if(1&i&&(e.TgZ(0,"span"),e._uU(1," | "),e.TgZ(2,"strong"),e._uU(3),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(3),e.Oqu(_.variation.name)}}function Ki(i,a){if(1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"i"),e._uU(3),e.ALo(4,"readableDate"),e.qZA()()),2&i){const _=e.oxw(2).$implicit;e.xp6(3),e.hij("Until: ",e.lcZ(4,1,_.discount_valid_until),"")}}function Yi(i,a){if(1&i&&(e.TgZ(0,"div")(1,"small",21),e._uU(2),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"strong",69)(5,"strong",61),e.SDv(6,70),e.qZA(),e._uU(7),e.ALo(8,"number"),e.qZA(),e.TgZ(9,"sub",71),e._uU(10),e.ALo(11,"number"),e.qZA(),e.YNc(12,Ki,5,3,"small",72),e.qZA()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(2),e.hij("- ",_.discount_percentage,"%"),e.xp6(5),e.hij(" ",e.xi3(8,4,n.getDiscountedRetailPrice(_),"1.2-2"),"\xa0\xa0 "),e.xp6(3),e.hij("",e.xi3(11,7,_.retail_price,"1.2-2")," "),e.xp6(2),e.Q6J("ngIf",_.discount_valid_until)}}function Vi(i,a){if(1&i&&(e.TgZ(0,"span",60)(1,"strong"),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.Oqu(e.xi3(3,1,_.retail_price,"1.2-2"))}}function Fi(i,a){if(1&i&&(e.TgZ(0,"span",74)(1,"strong",61),e.SDv(2,75),e.qZA(),e.TgZ(3,"strong"),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(4),e.Oqu(e.xi3(5,1,n.getDiscountedRetailPrice(_)-_.avg_unit_price,"1.2-2"))}}function $i(i,a){if(1&i&&(e.TgZ(0,"span",76)(1,"strong",61),e.SDv(2,77),e.qZA(),e.TgZ(3,"strong"),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(4),e.Oqu(e.xi3(5,1,n.getDiscountedRetailPrice(_)-_.avg_unit_price,"1.2-2"))}}function Gi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",78)(1,"app-delete",79),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function qi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td")(4,"div",48),e.YNc(5,xi,1,1,"img",49),e.YNc(6,Bi,2,1,"span",50),e.qZA()(),e.TgZ(7,"td")(8,"small"),e._uU(9),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCopyClick(r.sku))}),e.TgZ(12,"span"),e.SDv(13,52),e.qZA()()(),e.TgZ(14,"td",53),e._uU(15),e.YNc(16,yi,4,1,"span",7),e._UZ(17,"br"),e.TgZ(18,"span",54),e._uU(19),e.qZA(),e._UZ(20,"br"),e.TgZ(21,"span",55),e._uU(22),e.qZA()(),e.TgZ(23,"td",56)(24,"button",57),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e.TgZ(25,"span",58)(26,"strong"),e._uU(27),e.qZA()(),e._UZ(28,"i",59),e.qZA()(),e.TgZ(29,"td")(30,"span",60)(31,"strong",61),e.SDv(32,62),e.qZA(),e.TgZ(33,"strong"),e._uU(34),e.ALo(35,"number"),e.qZA()()(),e.TgZ(36,"td"),e.YNc(37,Yi,13,10,"div",7),e.YNc(38,Vi,4,4,"span",63),e.qZA(),e.TgZ(39,"td"),e.YNc(40,Fi,6,4,"span",64),e.YNc(41,$i,6,4,"span",65),e.qZA(),e.TgZ(42,"td")(43,"small"),e._uU(44),e.ALo(45,"readableDate"),e.qZA()(),e.YNc(46,Gi,2,1,"td",66),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(3),e.Q6J("ngIf",_.product.images.length>0),e.xp6(1),e.Q6J("ngIf",0===_.product.images.length),e.xp6(3),e.Oqu(_.sku),e.xp6(6),e.hij(" ",_.product.name," "),e.xp6(1),e.Q6J("ngIf",_.variation),e.xp6(3),e.Oqu(_.brand.name),e.xp6(3),e.hij(" ",n.categoriesToString(_.product.categories)," "),e.xp6(3),e.Q6J("ngClass",_.quantity>0?"text-success":"text-danger"),e.xp6(2),e.Oqu(_.quantity),e.xp6(7),e.Oqu(e.xi3(35,17,_.avg_unit_price,"1.2-2")),e.xp6(3),e.Q6J("ngIf",n.getDiscount(_)>0),e.xp6(1),e.Q6J("ngIf",n.getDiscount(_)<=0),e.xp6(2),e.Q6J("ngIf",_.retail_price<_.avg_unit_price),e.xp6(1),e.Q6J("ngIf",_.retail_price>=_.avg_unit_price),e.xp6(3),e.Oqu(e.lcZ(45,20,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showDeleteButton)}}const Ji=function(){return["/admin/sales/orders"]},Qi=function(){return["/admin/sales/orders/create"]};function wi(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"div",27)(5,"button",28),e._UZ(6,"i",29),e.TgZ(7,"span"),e.SDv(8,30),e.qZA()(),e.TgZ(9,"button",31),e._UZ(10,"i",32),e.TgZ(11,"span"),e.SDv(12,33),e.qZA()()(),e.TgZ(13,"p",34),e._uU(14,"Stocks that I've created"),e.qZA(),e.TgZ(15,"div",35)(16,"table",36)(17,"thead")(18,"tr")(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.TgZ(25,"th"),e.SDv(26,40),e.qZA(),e.TgZ(27,"th"),e.SDv(28,41),e.qZA(),e.TgZ(29,"th"),e.SDv(30,42),e.qZA(),e.TgZ(31,"th"),e.SDv(32,43),e.qZA(),e.TgZ(33,"th"),e.tHW(34,44),e._UZ(35,"br"),e.N_p(),e.qZA(),e.TgZ(36,"th"),e.SDv(37,45),e.qZA(),e.YNc(38,Zi,2,0,"th",7),e.qZA()(),e.TgZ(39,"tbody"),e.YNc(40,qi,47,22,"tr",46),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(5),e.Q6J("routerLink",e.DdM(6,Ji)),e.xp6(4),e.Q6J("routerLink",e.DdM(7,Qi)),e.xp6(29),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.stocks.content)}}function ki(i,a){if(1&i&&(e.TgZ(0,"div",100),e._UZ(1,"img",67),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.product.images[0],e.LSH)}}function zi(i,a){if(1&i&&(e.TgZ(0,"div",101)(1,"span",68),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.product.name.substring(0,1).toUpperCase()," ")}}function Xi(i,a){if(1&i&&(e.TgZ(0,"small",102)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function Wi(i,a){1&i&&(e.TgZ(0,"small",102),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function ji(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",96)(1,"app-delete",103),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Hi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",81)(1,"div",82)(2,"div",26),e.YNc(3,ki,2,1,"div",83),e.YNc(4,zi,3,1,"div",84),e.TgZ(5,"h5",85)(6,"a",86),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.TgZ(8,"h6",87),e._uU(9),e.qZA(),e.TgZ(10,"div",0)(11,"div",88)(12,"p",89)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",88)(20,"p",90),e.YNc(21,Xi,6,3,"small",91),e.YNc(22,Wi,6,0,"small",91),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",92)(27,"label",93),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",94)(30,"div",95)(31,"div",96)(32,"a",97),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(3);return e.KtG(s.onUpsertClick(null))}),e._UZ(33,"i",98),e.qZA()(),e.YNc(34,ji,2,2,"div",99),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.product.images.length>0),e.xp6(1),e.Q6J("ngIf",0===_.product.images.length),e.xp6(3),e.hij(" ",_.product.name,""),e.xp6(2),e.hij(" ",_.brand.name," "),e.xp6(8),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.categoriesToString(_.product.categories)," "),e.xp6(4),e.Oqu(_.quantity),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function en(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Hi,35,12,"div",80),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.stocks.content)}}function _n(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,wi,41,8,"div",23),e.YNc(2,en,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let tn=(()=>{class i extends Mi.F{componentName(){return"StockListComponent"}constructor(_,n,s,r,m,Y,F,w,oe,se){super(_,n,s,m),this.activatedRoute=Y,this.stockService=F,this.vendorService=w,this.notifier=oe,this.locale=se,this.config=xe.u,this.filterData=t.M9,this.stocks=g.H,this.extraFields=[{name:"vendor_id",type:"dropdown",placeholder:"Select Store",label:"Store",value:null,options:[]}],r.isAdmin()&&(this.config.searchEndpoint=B.E.STOCKS.STOCK_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_);let n=this.filterData.extra.vendor_id;this.fetchMyVendors({},s=>{}),this.fetchStocks({vendor_id:n,q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Stocks,link:null,active:!0}]}fetchStocks(_){this.loading=!0;const n=this.componentKey(A.Z.STOCKS.SEARCH(_));this.stockService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.stocks=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Stock is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:xe.n.create,update:_=>xe.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Be.X}onCopyClick(_){vi.g.copyToClipboard(_),this.notifier.info("Copied","SKU has been copied to clipboard")}getDiscountedRetailPrice(_){return _.retail_price-this.getDiscount(_)}getDiscount(_){return null==_.discount_valid_until||new Date(_.discount_valid_until).getTime()>(new Date).getTime()?_.retail_price*(_.discount_percentage/100):0}categoriesToString(_){return _.map(n=>n.name).join(", ")}fetchMyVendors(_={},n){let s=this.componentKey(A.Z.VENDORS.MY_VENDORS(_));this.vendorService.myVendors(s,this.config.vendorEndpoint,_),this.subscribe(s,null,(r,m)=>{this.extraFields=[{name:"vendor_id",type:"dropdown",label:"Vendor",placeholder:"Select Store",value:null,options:m.data.map(F=>({label:F.name,value:F.id}))}]})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Di.q),e.Y36(Je.n),e.Y36(C.l),e.Y36(e.soG))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-stock-list"]],features:[e.qOj],decls:11,vars:9,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W,ee;return _="Orders",n="Sell",s="Id",r="Image",m="SKU",Y="Product Name",F="Quantity",w="Avg Unit Price",oe="Retail Price",se="Profit Per Sale / " + "\ufffd#35\ufffd\ufffd/#35\ufffd" + "Loss per sale",re="Last Updated",le="Delete",ae="Copy",ce="$",X="$",W="$",ee="$",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addBtnText","extraFields","addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"d-flex","flex-wrap","gap-3","mb-3","float-end"],[1,"btn","btn-outline-primary","waves-effect","font-size-16",3,"routerLink"],[1,"mdi","mdi-truck-delivery","me-2"],_,["type","submit",1,"btn","btn-primary","px-5","waves-effect","waves-light","font-size-16",3,"routerLink"],[1,"mdi","mdi-sale","me-2"],n,[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],s,r,m,Y,F,w,oe,se,re,[4,"ngFor","ngForOf"],le,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",1,"font-size-10",3,"click"],ae,[1,"text-wrap"],[1,"badge","bg-info","font-size-10","m-1"],[1,"badge","text-info","font-size-10","m-1"],[1,"align-content-center"],[1,"btn","btn-outline-success",3,"click"],[1,"badge","font-size-16",3,"ngClass"],[1,"mdi","mdi-plus-circle","font-size-16"],[1,"badge","text-info","font-size-16"],[1,"me-1"],ce,["class","badge text-info font-size-16",4,"ngIf"],["class","badge text-danger font-size-16",4,"ngIf"],["class","badge text-success font-size-16",4,"ngIf"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"text-warning","font-size-16"],X,[1,"text-primary","text-decoration-line-through"],["class","font-size-10 mt-3",4,"ngIf"],[1,"font-size-10","mt-3"],[1,"badge","text-danger","font-size-16"],W,[1,"badge","text-success","font-size-16"],ee,[2,"width","100px"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],[1,"badge","badge-soft-primary","font-size-10","text-info"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],["href","javascript: void(0);",3,"click"],[1,"bx","bx-plus-circle","text-success"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,hi,1,1,"util-progress",5),e.YNc(8,Li,13,2,"div",6),e.YNc(9,_n,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations["Products in Stock"])("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(4),e.Q6J("addBtnText","+ Add Product")("extraFields",s.extraFields),e.xp6(1),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.stocks.empty),e.xp6(1),e.Q6J("ngIf",!s.stocks.empty),e.xp6(1),e.Q6J("page",s.stocks))},dependencies:[d.mk,d.sg,d.O5,T.rH,b.t,y.Q,h.D,M.T,f.L,d.JJ,P.G]})}return i})(),nn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-stock"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-stock-list")},dependencies:[tn]})}return i})();var ye=o(5734),Ke=o(1364);function on(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function sn(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function rn(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function ln(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,sn,2,0,"h4",16),e.YNc(8,rn,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function an(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function cn(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Approval"),e.qZA())}function dn(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function un(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function En(i,a){if(1&i&&e._UZ(0,"img",40),2&i){const _=e.oxw().$implicit;e.s9C("src",_.logo,e.LSH)}}function Tn(i,a){if(1&i&&(e.TgZ(0,"span",41),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function pn(i,a){1&i&&(e.TgZ(0,"a",45),e._UZ(1,"i",46),e.qZA())}function Nn(i,a){1&i&&(e.TgZ(0,"a",47),e._UZ(1,"i",48),e.qZA())}function Sn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",42),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.toggleApproval(s.id,!s.approved))}),e.YNc(1,pn,2,0,"a",43),e.YNc(2,Nn,2,0,"a",44),e.qZA()}if(2&i){const _=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",!_.approved),e.xp6(1),e.Q6J("ngIf",_.approved)}}function On(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",36)(1,"app-delete",49),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function mn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,un,2,1,"td",7),e.TgZ(4,"td")(5,"div",31),e.YNc(6,En,1,1,"img",32),e.YNc(7,Tn,2,1,"span",33),e.qZA()(),e.TgZ(8,"td")(9,"a",34),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.YNc(19,Sn,3,2,"td",35),e.TgZ(20,"td",36)(21,"a",37),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(22,"i",38),e.qZA()(),e.YNc(23,On,2,1,"td",39),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null!=_.logo),e.xp6(1),e.Q6J("ngIf",null==_.logo),e.xp6(3),e.hij(" ",_.name," "),e.xp6(3),e.Oqu(e.lcZ(14,9,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,11,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showApprovalButton),e.xp6(4),e.Q6J("ngIf",n.config.showDeleteButton)}}function gn(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"Vendors that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,an,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Image"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Title"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Created At"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Last Updated"),e.qZA(),e.YNc(21,cn,2,0,"th",7),e.TgZ(22,"th"),e._uU(23,"Update"),e.qZA(),e.YNc(24,dn,2,0,"th",7),e.qZA()(),e.TgZ(25,"tbody"),e.YNc(26,mn,24,13,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(9),e.Q6J("ngIf",_.config.showApprovalButton),e.xp6(3),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.vendors.content)}}function An(i,a){if(1&i&&(e.TgZ(0,"div",70),e._UZ(1,"img",40),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.logo,e.LSH)}}function Rn(i,a){if(1&i&&(e.TgZ(0,"div",71)(1,"span",41),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Cn(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function fn(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function Pn(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function In(i,a){1&i&&(e.TgZ(0,"label",74),e._uU(1,"Approved"),e.qZA())}function vn(i,a){1&i&&(e.TgZ(0,"label",75),e._uU(1,"Not Approved"),e.qZA())}function Mn(i,a){1&i&&e._UZ(0,"i",78)}function Dn(i,a){1&i&&e._UZ(0,"i",79)}function hn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",67)(1,"a",34),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.toggleApproval(s.id,!s.approved))}),e.YNc(2,Mn,1,0,"i",76),e.YNc(3,Dn,1,0,"i",77),e.qZA()()}if(2&i){const _=e.oxw().$implicit;e.xp6(2),e.Q6J("ngIf",!_.approved),e.xp6(1),e.Q6J("ngIf",_.approved)}}function Un(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",67)(1,"app-delete",80),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function bn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",51)(1,"div",52)(2,"div",26),e.YNc(3,An,2,1,"div",53),e.YNc(4,Rn,3,1,"div",54),e.TgZ(5,"h5",55)(6,"a",56),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,Cn,2,1,"h6",57),e.TgZ(9,"div",0)(10,"div",58)(11,"p",59)(12,"small")(13,"b"),e._uU(14,"Created"),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",58)(19,"p",60),e.YNc(20,fn,6,3,"small",61),e.YNc(21,Pn,6,0,"small",61),e.qZA()()(),e.TgZ(22,"div")(23,"a",62),e.YNc(24,In,2,0,"label",63),e.YNc(25,vn,2,0,"label",64),e.qZA()()(),e.TgZ(26,"div",65)(27,"div",66)(28,"div",67)(29,"a",34),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(30,"i",68),e.qZA()(),e.YNc(31,hn,4,2,"div",69),e.YNc(32,Un,2,2,"div",69),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.logo),e.xp6(1),e.Q6J("ngIf",null==_.logo),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,11,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(3),e.Q6J("ngIf",_.approved),e.xp6(1),e.Q6J("ngIf",!_.approved),e.xp6(6),e.Q6J("ngIf",n.config.showApprovalButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ln(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,bn,33,13,"div",50),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.vendors.content)}}function Zn(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,gn,27,6,"div",23),e.YNc(2,Ln,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let xn=(()=>{class i extends ue.R{componentName(){return"VendorListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.vendorService=F,this.notifier=w,this.config=ye.j,this.filterData=t.M9,this.vendors=g.H,r.isAdmin()&&(this.config.showApprovalButton=!0,this.config.searchEndpoint=B.E.VENDORS.VENDOR_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_),this.fetchVendors({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Vendors",link:null,active:!0}]}fetchVendors(_){this.loading=!0;const n=this.componentKey(A.Z.VENDORS.SEARCH(_));this.vendorService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.vendors=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Vendor is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:ye.n.create,update:_=>ye.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Ke.Z}toggleApproval(_,n){this.loading=!0;const s=this.componentKey(A.Z.VENDORS.TOGGLE_APPROVAL(_));this.vendorService.toggleApproval(s,_,n),this.subscribe(s,null,(r,m)=>{this.loading=!1,this.notifier.success("Success","Vendor is "+(n?"approved":"disapproved")),this.ngOnInit()}),this.subscribe(this.getErrorKey(s),null,(r,m)=>{this.notifier.error("Error",m.data.error.message)})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Je.n),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-vendor-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",3,"click",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[2,"width","100px",3,"click"],["class","btn btn-outline-success btn-sm edit","title","Edit",4,"ngIf"],["class","btn btn-outline-danger btn-sm edit","title","Edit",4,"ngIf"],["title","Edit",1,"btn","btn-outline-success","btn-sm","edit"],[1,"fas","fa-check"],["title","Edit",1,"btn","btn-outline-danger","btn-sm","edit"],[1,"fas","fa-heart-broken"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-success font-size-11 m-1",4,"ngIf"],["class","badge bg-warning font-size-11 m-1",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],[1,"badge","bg-success","font-size-11","m-1"],[1,"badge","bg-warning","font-size-11","m-1"],["title","Approve","class","bx bx-check-circle text-success",4,"ngIf"],["title","Unapprove","class","bx bx-x-circle text-warning",4,"ngIf"],["title","Approve",1,"bx","bx-check-circle","text-success"],["title","Unapprove",1,"bx","bx-x-circle","text-warning"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,on,1,1,"util-progress",5),e.YNc(8,ln,13,2,"div",6),e.YNc(9,Zn,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","Vendors")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.vendors.empty),e.xp6(1),e.Q6J("ngIf",!s.vendors.empty),e.xp6(1),e.Q6J("page",s.vendors))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})();const yn=[{path:"categories",component:Ee},{path:"categories/:id",component:c.I},{path:"categories/create",component:c.I},{path:"attributes",component:d_,canActivate:[k.P]},{path:"attributes/create",component:Ie,canActivate:[k.P]},{path:"attributes/:id/update",component:Ie,canActivate:[k.P]},{path:"filterable-attributes",component:D_,canActivate:[k.P]},{path:"filterable-attributes/create",component:Me.V,canActivate:[k.P]},{path:"filterable-attributes/:id/update",component:Me.V,canActivate:[k.P]},{path:"brands",component:et,canActivate:[k.P]},{path:"brands/create",component:he.l,canActivate:[k.P]},{path:"brands/:id/update",component:he.l,canActivate:[k.P]},{path:"variations",component:It,canActivate:[k.P]},{path:"variations/create",component:be.s,canActivate:[k.P]},{path:"variations/:id/update",component:be.s,canActivate:[k.P]},{path:"products",component:ti,canActivate:[k.P]},{path:"products/create",component:Ze.A,canActivate:[k.P]},{path:"products/:id/update",component:Ze.A,canActivate:[k.P]},{path:"product-specifications",component:Ii,canActivate:[k.P]},{path:"product-specifications/create",component:qe,canActivate:[k.P]},{path:"product-specifications/:id/update",component:Ge,canActivate:[k.P]},{path:"stocks",component:nn,canActivate:[k.P]},{path:"stocks/create",component:Be.X,canActivate:[k.P]},{path:"stocks/:id/update",component:Be.X,canActivate:[k.P]},{path:"vendors",component:(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-vendor"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-vendor-list")},dependencies:[xn]})}return i})(),canActivate:[k.P]},{path:"vendors/create",component:Ke.Z,canActivate:[k.P]},{path:"vendors/:id/update",component:Ke.Z,canActivate:[k.P]}];let Kn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275mod=e.oAB({type:i});static#t=this.\u0275inj=e.cJS({imports:[T.Bz.forChild(yn),T.Bz]})}return i})();var Yn=o(7151),Vn=o(9797),Fn=o(5081),$n=o(4807),Gn=o(2241),qn=o(3318),Jn=o(9277),Qn=o(7035);let wn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275mod=e.oAB({type:i});static#t=this.\u0275inj=e.cJS({imports:[d.ez,G.UX,Kn,Yn.g,Gn.AdminModule,Vn.CmsModule,$n.A0,G.u5,qn.UserModule,Jn.kn]})}return i})();e.B6R(c.I,[d.mk,d.O5,G._Y,G.Fj,G.Wl,G.JJ,G.JL,G.sg,G.u,b.t,Qn.P,Fn.P],[])},1426:(z,K,o)=>{o.d(K,{q:()=>M});var d=o(5879),T=o(8637),c=o(8174),x=o(7259),t=o(2771),A=o(3989),B=o(30),l=o(1662),e=o(6945),E=o(8480),u=o(1492),N=o(8675),S=o(6814),U=o(6223),C=o(4736),b=o(4807);function y(f,P){1&f&&d._UZ(0,"util-progress",4),2&f&&d.Q6J("bar",!0)}const h=function(){return{standalone:!0}};let M=(()=>{class f extends T.H{componentName(){return"ProductSelectComponent"}constructor(I,Z,V,q,_e,Te){super(I,Z,V),this.productService=_e,this.dialogService=Te,this.searchEndpoint=t.E.PRODUCTS.PRODUCT_ENDPOINT_V2,this.items=[],this.selectedItem=null,this.selected=new d.vpe,q.isAdmin()&&(this.searchEndpoint=t.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(I){let Z=c.g.removeSpecialCharacters(I.target?.value);Z.length>2&&this.search({page:0,size:10,q:Z})}onSelected(I){if(this.items.find(Z=>Z.name==I.name))this.selected.emit(this.selectedItem);else{let Z=this.dialogService.open(A.A,{id:null,name:I.name,dialogUpsert:!0}),V=Z.componentInstance;V.onCompleted.subscribe(q=>{this.selected.emit(function g(f){return{id:f.id,created_at:f.created_at,updated_at:f.updated_at,created_by:f.created_by,name:f.name,brand:{id:f.brand_id,name:f.brand_name,description:"",image:"",created_at:new Date,updated_at:new Date,created_by:""},images:f.images,categories:f.category_ids.map((P,I)=>({id:P,name:f.category_names[I]})),weight:f.weight,approved:f.approved}}(q))}),V.onCanceled.subscribe(()=>{Z.close()})}}search(I){this.loading=!0;let Z=this.componentKey(x.Z.PRODUCTS_V2.SEARCH(I));this.productService.search(Z,this.searchEndpoint,I),this.subscribe(Z,null,(V,q)=>{this.items=q.data.content,this.loading=!1})}static#e=this.\u0275fac=function(Z){return new(Z||f)(d.Y36(B.Y),d.Y36(l.F0),d.Y36(e.z),d.Y36(E.e),d.Y36(u.M),d.Y36(N.x))};static#_=this.\u0275cmp=d.Xpm({type:f,selectors:[["app-product-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:8,consts:function(){let I;return I="Product",[["for","autoSizingInput2",1,"visually-hidden"],I,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name","placeholder","Search Products",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]]},template:function(Z,V){1&Z&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,y,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(_e){return V.searchForEvent(_e)})("ngModelChange",function(_e){return V.selectedItem=_e})("change",function(_e){return V.onSelected(_e)}),d.qZA()),2&Z&&(d.xp6(2),d.Q6J("ngIf",V.loading),d.xp6(1),d.Q6J("items",V.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",V.selectedItem)("ngModelOptions",d.DdM(7,h)))},dependencies:[S.O5,U.JJ,C.t,b.w9,U.On]})}return f})()},3989:(z,K,o)=>{o.d(K,{A:()=>O});var d=o(9870),T=o(973),c=o(6223),x=o(7259),g=o(7700),t=o(8174),A=o(2771),B=o(8674),l=o(5879),e=o(30),E=o(1662),u=o(6945),N=o(8480),S=o(1492),U=o(5462),C=o(6814),b=o(4736),y=o(6265),h=o(7035),M=o(5081),f=o(8637),P=o(9107),I=o(7210),Z=o(8675),V=o(4807);function q(D,v){1&D&&l._UZ(0,"util-progress",4),2&D&&l.Q6J("bar",!0)}const _e=function(){return{standalone:!0}};let Te=(()=>{class D extends f.H{componentName(){return"BrandSelectComponent"}constructor(p,R,L,J,Q,j){super(p,R,L),this.brandService=Q,this.popupService=j,this.searchEndpoint=A.E.BRANDS.BRAND_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new l.vpe,J.isAdmin()&&(this.searchEndpoint=A.E.BRANDS.BRAND_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(p){let R=t.g.removeSpecialCharacters(p.target?.value);R.length>2&&this.search({page:0,size:10,q:R})}onSelected(p){this.items.find(R=>R.name==p.name)?this.selected.emit(this.selectedItem):this.popupService.open(P.l,{id:null,name:p.name}).componentInstance.onCompleted.subscribe(L=>{this.selected.emit(L)})}search(p){this.loading=!0;let R=this.componentKey(x.Z.BRANDS.SEARCH(p));this.brandService.search(R,this.searchEndpoint,p),this.subscribe(R,null,(L,J)=>{this.items=J.data.content,this.loading=!1})}static#e=this.\u0275fac=function(R){return new(R||D)(l.Y36(e.Y),l.Y36(E.F0),l.Y36(u.z),l.Y36(N.e),l.Y36(I.c),l.Y36(Z.x))};static#_=this.\u0275cmp=l.Xpm({type:D,selectors:[["app-brand-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[l.qOj],decls:4,vars:9,consts:function(){let p;return p="Brand",[["for","autoSizingInput2",1,"visually-hidden"],p,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(R,L){1&R&&(l.TgZ(0,"label",0),l.SDv(1,1),l.qZA(),l.YNc(2,q,1,1,"util-progress",2),l.TgZ(3,"ng-select",3),l.NdJ("keyup",function(Q){return L.searchForEvent(Q)})("ngModelChange",function(Q){return L.selectedItem=Q})("change",function(Q){return L.onSelected(Q)}),l.qZA()),2&R&&(l.xp6(2),l.Q6J("ngIf",L.loading),l.xp6(1),l.s9C("placeholder",L.translations["Search Brand"]),l.Q6J("items",L.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",L.selectedItem)("ngModelOptions",l.DdM(8,_e)))},dependencies:[C.O5,c.JJ,b.t,V.w9,c.On]})}return D})();var Oe=o(756);function me(D,v){1&D&&l._UZ(0,"util-progress",32),2&D&&l.Q6J("bar",!0)}function ge(D,v){1&D&&(l.TgZ(0,"em",13),l.SDv(1,33),l.qZA())}function Ne(D,v){if(1&D){const p=l.EpF();l.TgZ(0,"div",34)(1,"div",35)(2,"span"),l._uU(3),l.qZA()(),l.TgZ(4,"div",35)(5,"a",36),l.NdJ("click",function(){const J=l.CHM(p).$implicit,Q=l.oxw();return l.KtG(Q.removeCategory(J))}),l._UZ(6,"i",37),l.qZA()()()}if(2&D){const p=v.$implicit;l.xp6(3),l.Oqu(p.name)}}function Ae(D,v){1&D&&(l.TgZ(0,"em",13),l.SDv(1,38),l.qZA())}function $(D,v){if(1&D&&(l.TgZ(0,"option",43),l._uU(1),l.qZA()),2&D){const p=v.$implicit,R=l.oxw().$implicit;l.Q6J("value",p)("selected",R.value===p),l.xp6(1),l.Oqu(p)}}function de(D,v){if(1&D){const p=l.EpF();l.TgZ(0,"div",34)(1,"div",39)(2,"span"),l._uU(3),l.qZA()(),l.TgZ(4,"div",39)(5,"select",40),l.NdJ("change",function(L){const Q=l.CHM(p).$implicit,j=l.oxw();return l.KtG(j.onValueSelected(Q.attr,L))}),l.TgZ(6,"option"),l.SDv(7,41),l.qZA(),l.YNc(8,$,2,3,"option",42),l.qZA()(),l.TgZ(9,"div",39)(10,"a",36),l.NdJ("click",function(){const J=l.CHM(p).$implicit,Q=l.oxw();return l.KtG(Q.removeSpecification(J.attr))}),l._UZ(11,"i",37),l.qZA()()()}if(2&D){const p=v.$implicit;l.xp6(3),l.Oqu(p.attr.name),l.xp6(5),l.Q6J("ngForOf",p.attr.values)}}let O=(()=>{class D extends d.n{constructor(p,R,L,J,Q,j,pe,Ee){super(p,R,L,J,Ee),this.productService=j,this.notifier=pe,this.config=T.C,this.selectedCategories=[],this.selectedBrand=null,this.specifications=[],this.selectedVariations=[],this.productForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),slug:new c.NI("",[c.kI.required,c.kI.minLength(3)]),brand_id:new c.NI(null,[c.kI.required]),description:new c.NI("",[]),category_ids:new c.NI([],[c.kI.required]),variant_ids:new c.NI([],[]),specifications:new c.NI(new Map,[]),images:new c.NI([]),weight:new c.NI(null),approved:new c.NI(!1),frozen_item:new c.NI(!1)}),Q.isAdmin()&&(this.config.getEndpoint=A.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2),null!=Ee.name&&this.productForm.controls.name.setValue(Ee.name)}componentName(){return"ProductUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Products",link:"/admin/products",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.productForm.controls.name.valueChanges.subscribe(p=>{this.productForm.controls.slug.setValue(t.g.slugify(p)+"_"+t.g.randomString(5))})}initialize(p){this.loading=!0;let R=this.componentKey(x.Z.PRODUCTS_V2.GET(p));this.productService.fetchSingle(R,this.config.getEndpoint,p),this.subscribe(R,null,(L,J)=>{this.loading=!1,this.populateForm(J.data)}),this.subscribe(this.getErrorKey(R),null,(L,J)=>{console.log(J.data),this.loading=!1})}onSubmit(){this.productForm.valid&&this.upsert(this.exId)}onImgUploaded(p){p.length>0&&this.productForm.controls.images.setValue(p.map(R=>R.image_url))}getExImages(){return this.productForm.controls.images.value?.map(R=>({image_url:R,thumb_url:R}))}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(p){this.loading=!0;let R=this.componentKey(x.Z.PRODUCTS_V2.UPSERT(p)),L={name:this.productForm.controls.name.value,slug:this.productForm.controls.slug.value,brand_id:this.productForm.controls.brand_id.value,description:this.productForm.controls.description.value,category_ids:this.productForm.controls.category_ids.value,variant_ids:this.productForm.controls.variant_ids.value,images:this.productForm.controls.images.value,weight:this.productForm.controls.weight.value,approved:this.productForm.controls.approved.value,frozen_item:this.productForm.controls.frozen_item.value,action:null,specifications:(0,B.Q3)(this.productForm.controls.specifications.value)};this.productService.upsert(R,A.E.PRODUCTS.PRODUCT_ENDPOINT,L,p),this.subscribe(R,null,(J,Q)=>{this.loading=!1,this.notifier.success("Success","Product has been "+(p?"updated":"created")),this.productForm.reset(),this.onSuccess(Q.data)}),this.subscribe(this.getErrorKey(R),null,(J,Q)=>{let j=Q.data;this.loading=!1,this.notifier.warning("Failed!",j.error.message)})}populateForm(p){this.selectedBrand=p.brand,this.selectedCategories=p.categories,this.selectedVariations=p.variations,this.specifications=p.specifications.map(R=>({attr:R.filterable_attribute,value:R.value})),this.productForm.controls.name.setValue(p.name),this.productForm.controls.slug.setValue(p.slug),this.productForm.controls.brand_id.setValue(p.brand.id),this.productForm.controls.description.setValue(p.description),this.productForm.controls.category_ids.setValue(p.categories.map(R=>R.id)),this.productForm.controls.variant_ids.setValue(p.variations.map(R=>R.id)),this.productForm.controls.specifications.setValue(this.specificationsToMap(this.specifications)),this.productForm.controls.images.setValue(p.images),this.productForm.controls.weight.setValue(p.weight),this.productForm.controls.approved.setValue(p.approved),this.productForm.controls.frozen_item.setValue(p.frozen_item)}onCategorySelected(p){null==p||this.selectedCategories.find(R=>R.id==p.id)||(this.selectedCategories.push(p),this.productForm.controls.category_ids.setValue(this.selectedCategories.map(R=>R.id)))}onBrandSelected(p){this.selectedBrand=p,this.productForm.controls.brand_id.setValue(null==this.selectedBrand?null:this.selectedBrand.id)}onFaSelected(p){null==p||this.specifications.find(R=>R.attr.id==p.id)||this.specifications.push({attr:p,value:null})}onVariationSelected(p){null==p||null==p.id||this.selectedVariations.find(R=>R.id==p.id)||(this.selectedVariations.push(p),this.productForm.controls.variant_ids.setValue(this.selectedVariations.map(R=>R.id)))}removeCategory(p){this.selectedCategories=this.selectedCategories.filter(R=>R.id!=p.id),this.productForm.controls.category_ids.setValue(this.selectedCategories.map(R=>R.id))}removeVariation(p){this.selectedVariations=this.selectedVariations.filter(R=>R.id!=p.id),this.productForm.controls.variant_ids.setValue(this.selectedVariations.map(R=>R.id))}onValueSelected(p,R){this.specifications=this.specifications.map(L=>(L.attr.id==p.id&&(L.value=R.target.value),L)),this.updateControlValue()}removeSpecification(p){this.specifications=this.specifications.filter(R=>R.attr.id!=p.id),this.updateControlValue()}updateControlValue(){this.productForm.controls.specifications.setValue(this.specificationsToMap(this.specifications))}specificationsToMap(p){return p.reduce((R,L)=>(null!==L.value&&R.set(L.attr.code,L.value),R),new Map)}static#e=this.\u0275fac=function(R){return new(R||D)(l.Y36(e.Y),l.Y36(E.F0),l.Y36(u.z),l.Y36(E.gz),l.Y36(N.e),l.Y36(S.M),l.Y36(U.l),l.Y36(g.WI))};static#_=this.\u0275cmp=l.Xpm({type:D,selectors:[["app-product-upsert"]],features:[l.qOj],decls:55,vars:18,consts:function(){let p,R,L,J,Q,j,pe,Ee,k,ue,Se;return p="Create/Update Product",R="Name",L="Brand",J="Category",Q="Specifications",j="Description",pe="Cancel",Ee="Submit",k=" Must select a Brand! ",ue=" Must select a category! ",Se="Choose Value",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],p,[3,"formGroup"],[1,"col-sm-6","mb-3"],["for","name-input",1,"form-label"],R,[1,"error"],["type","text","id","name-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],L,[3,"selectedItem","selected"],["class","text-danger",4,"ngIf"],J,["class","row my-2 py-2 mx-0 bg-info-subtle",4,"ngFor","ngForOf"],[1,"col-sm-6"],["for","specification",1,"form-label"],Q,[1,"mb-3"],["for","description",1,"form-label"],j,["id","description","formControlName","description"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],pe,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],Ee,[3,"bar"],k,[1,"row","my-2","py-2","mx-0","bg-info-subtle"],[1,"col-6"],["href","javascript: void(0);",3,"click"],[1,"mdi","mdi-close-circle-outline","text-danger","float-end"],ue,[1,"col-4"],["id","specification","aria-label","Specification",1,"form-select",3,"change"],Se,[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]]},template:function(R,L){1&R&&(l.YNc(0,me,1,1,"util-progress",0),l.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),l.SDv(6,6),l.qZA(),l.TgZ(7,"form",7)(8,"div",1)(9,"div",8)(10,"label",9)(11,"span"),l.SDv(12,10),l.qZA(),l.TgZ(13,"em",11),l._uU(14,"*"),l.qZA()(),l._UZ(15,"input",12),l.TgZ(16,"em",13),l._uU(17),l.qZA()(),l.TgZ(18,"div",8)(19,"label",9)(20,"span"),l.SDv(21,14),l.qZA(),l.TgZ(22,"em",11),l._uU(23,"*"),l.qZA()(),l.TgZ(24,"app-brand-select",15),l.NdJ("selected",function(Q){return L.onBrandSelected(Q)}),l.qZA(),l.YNc(25,ge,2,0,"em",16),l.qZA()(),l.TgZ(26,"div",1)(27,"div",8)(28,"label",9)(29,"span"),l.SDv(30,17),l.qZA(),l.TgZ(31,"em",11),l._uU(32,"*"),l.qZA()(),l.TgZ(33,"app-category-select",15),l.NdJ("selected",function(Q){return L.onCategorySelected(Q)}),l.qZA(),l.YNc(34,Ne,7,1,"div",18),l.YNc(35,Ae,2,0,"em",16),l.qZA(),l.TgZ(36,"div",19)(37,"label",20),l.SDv(38,21),l.qZA(),l.TgZ(39,"app-fa-select",15),l.NdJ("selected",function(Q){return L.onFaSelected(Q)}),l.qZA(),l.YNc(40,de,12,2,"div",18),l.qZA()(),l.TgZ(41,"div",22)(42,"label",23),l.SDv(43,24),l.qZA(),l._UZ(44,"app-editor",25),l.TgZ(45,"em",13),l._uU(46),l.qZA()(),l.TgZ(47,"app-file-picker",26),l.NdJ("onUploaded",function(Q){return L.onImgUploaded(Q)}),l.qZA(),l.TgZ(48,"div",27)(49,"button",28),l.NdJ("click",function(){return L.onCancel()}),l.TgZ(50,"span"),l.SDv(51,29),l.qZA()(),l.TgZ(52,"button",30),l.NdJ("click",function(){return L.onSubmit()}),l.TgZ(53,"span"),l.SDv(54,31),l.qZA()()()()()()()()),2&R&&(l.Q6J("ngIf",L.loading),l.xp6(1),l.Q6J("@loaded",!L.loading),l.xp6(6),l.Q6J("formGroup",L.productForm),l.xp6(8),l.s9C("placeholder",L.translations["Enter Name"]),l.xp6(2),l.hij(" ",L.errMsg(L.productForm,"name","minLength","Name should be at least 3 characters!")," "),l.xp6(7),l.Q6J("selectedItem",L.selectedBrand),l.xp6(1),l.Q6J("ngIf",!L.productForm.controls.brand_id.valid),l.xp6(8),l.Q6J("selectedItem",null),l.xp6(1),l.Q6J("ngForOf",L.selectedCategories),l.xp6(1),l.Q6J("ngIf",!L.productForm.controls.category_ids.valid),l.xp6(4),l.Q6J("selectedItem",null),l.xp6(1),l.Q6J("ngForOf",L.specifications),l.xp6(6),l.hij(" ",L.errMsg(L.productForm,"description","minLength","Description should be at least 20 characters!")," "),l.xp6(1),l.s9C("title",L.translations.Images),l.Q6J("multiSelect",!0)("existingImages",L.getExImages())("required",!1),l.xp6(5),l.Q6J("ngClass",L.productForm.valid?"":"disabled"))},dependencies:[C.mk,C.sg,C.O5,c._Y,c.YN,c.Kr,c.Fj,c.JJ,c.JL,c.sg,c.u,b.t,y.P,h.P,M.P,Te,Oe.t]})}return D})()},973:(z,K,o)=>{o.d(K,{C:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!1,showUserFilter:!1,showDeleteButton:!0,showApproveButton:!1,searchEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2,delEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2,getEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2},x={list:"/admin/inventory/products",create:"/admin/inventory/products/create",update(g){return null==g?this.create:"/admin/inventory/products/"+g+"/update"}}},1492:(z,K,o)=>{o.d(K,{M:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.PRODUCTS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u,N){this.http.get(T.E.PRODUCTS.GET(u,N)).subscribe(S=>{this.eventBusService.publish(E,S.body)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N,S){let U=null==S?T.E.PRODUCTS.CREATE(u):T.E.PRODUCTS.UPDATE(u,S),C=null==S?this.http.post(U,N):this.http.patch(U,N);console.log(N),C.subscribe(b=>{this.eventBusService.publish(E,b)},b=>{this.handleError(b,y=>{this.upsert(E,u,N,S)},y=>{this.eventBusService.publish(this.getErrorKey(E),y)})})}approve(E,u,N,S){let U=T.E.PRODUCTS.APPROVE(u,N,S);this.http.patch(U,{}).subscribe(C=>{this.eventBusService.publish(E,C.body)},C=>{this.handleError(C,b=>{this.approve(E,u,N,S)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9876:(z,K,o)=>{o.d(K,{X:()=>Ae});var d=o(9870),T=o(337),c=o(6223),x=o(7700),g=o(7259),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(5789),E=o(5462),u=o(6814),N=o(4736),S=o(9277),U=o(1426),C=o(8637),b=o(8174),y=o(2771),h=o(2447),M=o(8480),f=o(3668),P=o(8675),I=o(4807);function Z($,de){1&$&&t._UZ(0,"util-progress",4),2&$&&t.Q6J("bar",!0)}const V=function(){return{standalone:!0}};let q=(()=>{class $ extends C.H{componentName(){return"VariationSelectComponent"}constructor(O,D,v,p,R,L){super(O,D,v),this.variationService=R,this.popupService=L,this.searchEndpoint=y.E.VARIATIONS.VARIATION_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new t.vpe,p.isAdmin()&&(this.searchEndpoint=y.E.VARIATIONS.VARIATION_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(O){let D=b.g.removeSpecialCharacters(O.target?.value);D.length>2&&this.search({page:0,size:10,q:D})}onSelected(O){this.items.find(D=>D.name==O.name)?this.selected.emit(this.selectedItem):this.popupService.open(h.s,{id:null,name:O.name}).componentInstance.onCompleted.subscribe(v=>{this.selected.emit(v)})}search(O){this.loading=!0;let D=this.componentKey(g.Z.VARIATIONS.SEARCH(O));this.variationService.search(D,this.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.items=p.data.content,this.loading=!1})}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(M.e),t.Y36(f.$),t.Y36(P.x))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-variation-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[t.qOj],decls:4,vars:9,consts:function(){let O;return O="Variation",[["for","autoSizingInput2",1,"visually-hidden"],O,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(D,v){1&D&&(t.TgZ(0,"label",0),t.SDv(1,1),t.qZA(),t.YNc(2,Z,1,1,"util-progress",2),t.TgZ(3,"ng-select",3),t.NdJ("keyup",function(R){return v.searchForEvent(R)})("ngModelChange",function(R){return v.selectedItem=R})("change",function(R){return v.onSelected(R)}),t.qZA()),2&D&&(t.xp6(2),t.Q6J("ngIf",v.loading),t.xp6(1),t.s9C("placeholder",v.translations["Search Variations.."]),t.Q6J("items",v.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",v.selectedItem)("ngModelOptions",t.DdM(8,V)))},dependencies:[u.O5,c.JJ,N.t,I.w9,c.On]})}return $})();var _e=o(9056);function Te($,de){1&$&&t._UZ(0,"util-progress",63),2&$&&t.Q6J("bar",!0)}function Oe($,de){1&$&&(t.TgZ(0,"em",35),t.SDv(1,64),t.qZA())}function me($,de){1&$&&(t.TgZ(0,"em",35),t.SDv(1,65),t.qZA())}function ge($,de){1&$&&t._UZ(0,"util-progress",63),2&$&&t.Q6J("bar",!0)}const Ne=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}};let Ae=(()=>{class $ extends d.n{constructor(O,D,v,p,R,L,J){super(O,D,v,p,J),this.stockService=R,this.notifier=L,this.config=T.u,this.stockForm=new c.cw({vendor_id:new c.NI(null,[c.kI.required]),product_id:new c.NI(null,[c.kI.required]),supplier_id:new c.NI(null,[]),variation_id:new c.NI(null,[]),quantity:new c.NI(null,[c.kI.required]),unit_price:new c.NI(null,[c.kI.required]),retail_price:new c.NI(null,[c.kI.required]),discount_percentage:new c.NI(null,[]),discount_valid_until:new c.NI(null,[]),cashback_percentage:new c.NI(null,[]),cashback_valid_until:new c.NI(null,[])}),this.selectedVendor=null,this.selectedSupplier=null,this.selectedProduct=null,this.selectedVariation=null}componentName(){return"StockUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Stocks",link:"/admin/stocks",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(O){this.loading=!0;let D=this.componentKey(g.Z.STOCKS.GET(O));this.stockService.fetchSingle(D,this.config.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.loading=!1,this.populateForm(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{console.log(p.data),this.loading=!1})}currentDate(){return new Date}onSubmit(){console.log(this.stockForm.value),this.stockForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(O){this.loading=!0;let D=this.componentKey(g.Z.STOCKS.UPSERT(O));this.stockService.upsert(D,this.stockForm.value,O),this.subscribe(D,null,(p,R)=>{this.notifier.success("Success","Stock has been "+(O?"updated":"created")),this.stockForm.reset(),this.onSuccess(R.data)}),this.subscribe(this.getErrorKey(D),null,(p,R)=>{let L=R.data;this.loading=!1,this.notifier.warning("Failed!",L.error.message)})}populateForm(O){this.selectedVendor=O.vendor,this.selectedProduct=O.product,this.selectedVariation=O.variation,this.stockForm.controls.vendor_id.setValue(O.vendor_id),this.stockForm.controls.product_id.setValue(O.product_id),this.stockForm.controls.variation_id.setValue(O.variation_id),this.stockForm.controls.unit_price.setValue(null==O.avg_unit_price?0:Math.round(O.avg_unit_price)),this.stockForm.controls.retail_price.setValue(O.retail_price),this.stockForm.controls.discount_percentage.setValue(O.discount_percentage),this.stockForm.controls.discount_valid_until.setValue(null==O.discount_valid_until?null:O.discount_valid_until),this.stockForm.controls.cashback_percentage.setValue(O.cashback_percentage),this.stockForm.controls.cashback_valid_until.setValue(null==O.cashback_valid_until?null:O.cashback_valid_until)}onVendorSelected(O){this.selectedVendor=O,this.stockForm.controls.vendor_id.setValue(null==O?null:O.id)}onSupplierSelected(O){this.selectedSupplier=O,this.stockForm.controls.supplier_id.setValue(null==O?null:O.id)}onProductSelected(O){console.log(O),this.selectedProduct=O,this.stockForm.controls.product_id.setValue(null==O?null:O.id)}onVariationSelected(O){this.selectedVariation=O,this.stockForm.controls.variation_id.setValue(null==O?null:O.id)}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.q),t.Y36(E.l),t.Y36(x.WI))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-stock-upsert"]],features:[t.qOj],decls:113,vars:27,consts:function(){let O,D,v,p,R,L,J,Q,j,pe,Ee,k,ue,Se,ne,Re,G,Ce,fe;return O="Add Stock",D="Store Information",v="Select Store",p="Product Information",R="Select Product" + "\ufffd#34\ufffd" + "*" + "\ufffd/#34\ufffd" + "",L="Select Variation",J="Stock Information",Q="Quantity",j="Unit Price",pe="Retail Price",Ee="Discount Information",k="Discount (%)",ue="Discount Validity",Se="Cashback (%)",ne="Cashback Validity",Re="Cancel",G="Add Stock",Ce=" Please select your shop. ",fe=" Please select a product. ",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],O,[3,"formGroup"],[1,"card-header","bg-transparent","border-primary"],[1,"my-0","text-primary"],[1,"mdi","mdi-store","me-3","me-3"],D,[1,"card-body","shadow-sm"],[1,"mb-3"],["for","vendor_id-input",1,"form-label","col-form-label-lg"],v,[1,"error"],["id","vendor_id-input",3,"selectedItem","selected"],["class","text-danger",4,"ngIf"],[1,"card","my-3"],[1,"mdi","mdi-package-variant","me-3"],p,[1,"col-sm-6","col-md-6","mb-3"],R,["id","product_id-input",3,"selectedItem","selected"],["for","variation_id-input",1,"form-label","col-form-label-lg"],L,["id","variation_id-input",3,"selectedItem","selected"],[1,"row","my-3"],[1,"col-sm-6"],[1,"mdi","mdi-barcode-scan","me-3"],J,["for","quantity-input",1,"form-label"],Q,["type","text","id","quantity-input","name","quantity","formControlName","quantity",1,"form-control","form-control-lg",3,"placeholder","ngClass"],[1,"text-danger"],["for","unit_price-input",1,"form-label"],j,["type","text","id","unit_price-input","name","unit_price","formControlName","unit_price",1,"form-control","form-control-lg",3,"placeholder","ngClass"],["for","retail_price-input",1,"form-label"],pe,["type","text","id","retail_price-input","name","retail_price","formControlName","retail_price",1,"form-control","form-control-lg",3,"placeholder","ngClass"],[1,"mdi","mdi-tag-off","me-3"],Ee,["for","discount-input",1,"form-label"],k,["type","text","id","discount-input","name","discount_percentage","formControlName","discount_percentage",1,"form-control","form-control-lg",3,"placeholder"],["for","discount_valid_until-input",1,"form-label"],ue,[1,"input-group"],["bsDatepicker","","id","discount_valid_until-input","formControlName","discount_valid_until",1,"form-control","form-control-lg",3,"bsConfig","minDate"],["for","cashback_percentage-input",1,"form-label"],Se,["type","text","id","cashback_percentage-input","name","cashback_percentage","formControlName","cashback_percentage",1,"form-control","form-control-lg",3,"placeholder"],["for","cashback_valid_until-input",1,"form-label"],ne,["bsDatepicker","","id","cashback_valid_until-input","formControlName","cashback_valid_until",1,"form-control","form-control-lg",3,"bsConfig","minDate"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],Re,["type","submit",1,"btn","btn-success","waves-effect","waves-light",3,"ngClass","click"],[1,"mdi","mdi-content-save","d-block","font-size-16"],G,[3,"bar"],Ce,fe]},template:function(D,v){1&D&&(t.YNc(0,Te,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",3)(9,"div",8)(10,"h6",9),t._UZ(11,"i",10),t.TgZ(12,"span"),t.SDv(13,11),t.qZA()()(),t.TgZ(14,"div",12)(15,"div",13)(16,"label",14)(17,"span"),t.SDv(18,15),t.qZA(),t.TgZ(19,"em",16),t._uU(20,"*"),t.qZA()(),t.TgZ(21,"app-vendor-select",17),t.NdJ("selected",function(R){return v.onVendorSelected(R)}),t.qZA(),t.YNc(22,Oe,2,0,"em",18),t.qZA()()(),t.TgZ(23,"div",19)(24,"div",8)(25,"h6",9),t._UZ(26,"i",20),t.TgZ(27,"span"),t.SDv(28,21),t.qZA()()(),t.TgZ(29,"div",12)(30,"div",1)(31,"div",22)(32,"label",14),t.tHW(33,23),t._UZ(34,"em",16),t.N_p(),t.qZA(),t.TgZ(35,"app-product-select",24),t.NdJ("selected",function(R){return v.onProductSelected(R)}),t.qZA(),t.YNc(36,me,2,0,"em",18),t.qZA(),t.TgZ(37,"div",22)(38,"label",25),t.SDv(39,26),t.qZA(),t.TgZ(40,"app-variation-select",27),t.NdJ("selected",function(R){return v.onVariationSelected(R)}),t.qZA()()()()(),t.TgZ(41,"div",28)(42,"div",29)(43,"div",3)(44,"div",8)(45,"h6",9),t._UZ(46,"i",30),t.TgZ(47,"span"),t.SDv(48,31),t.qZA()()(),t.TgZ(49,"div",12)(50,"div",13)(51,"label",32)(52,"span"),t.SDv(53,33),t.qZA(),t.TgZ(54,"em",16),t._uU(55,"*"),t.qZA()(),t._UZ(56,"input",34),t.TgZ(57,"em",35),t._uU(58),t.qZA()(),t.TgZ(59,"div",13)(60,"label",36)(61,"span"),t.SDv(62,37),t.qZA(),t.TgZ(63,"em",16),t._uU(64,"*"),t.qZA()(),t._UZ(65,"input",38),t.TgZ(66,"em",35),t._uU(67),t.qZA()(),t.TgZ(68,"div",13)(69,"label",39)(70,"span"),t.SDv(71,40),t.qZA(),t.TgZ(72,"em",16),t._uU(73,"*"),t.qZA()(),t._UZ(74,"input",41),t.TgZ(75,"em",35),t._uU(76),t.qZA()()()()(),t.TgZ(77,"div",29)(78,"div",3)(79,"div",8)(80,"h6",9),t._UZ(81,"i",42),t.TgZ(82,"span"),t.SDv(83,43),t.qZA()()(),t.TgZ(84,"div",12)(85,"div",13)(86,"label",44),t.SDv(87,45),t.qZA(),t._UZ(88,"input",46),t.qZA(),t.TgZ(89,"div",13)(90,"label",47),t.SDv(91,48),t.qZA(),t.TgZ(92,"div",49),t._UZ(93,"input",50),t.qZA()(),t.TgZ(94,"div",13)(95,"label",51),t.SDv(96,52),t.qZA(),t._UZ(97,"input",53),t.qZA(),t.TgZ(98,"div",13)(99,"label",54),t.SDv(100,55),t.qZA(),t.TgZ(101,"div",49),t._UZ(102,"input",56),t.qZA()()()()()(),t.YNc(103,ge,1,1,"util-progress",0),t.TgZ(104,"div",57)(105,"button",58),t.NdJ("click",function(){return v.onCancel()}),t.TgZ(106,"span"),t.SDv(107,59),t.qZA()(),t.TgZ(108,"button",60),t.NdJ("click",function(){return v.onSubmit()}),t._UZ(109,"i",61),t._uU(110,"\xa0 "),t.TgZ(111,"span"),t.SDv(112,62),t.qZA()()()()()()()()),2&D&&(t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("@loaded",!v.loading),t.xp6(6),t.Q6J("formGroup",v.stockForm),t.xp6(14),t.Q6J("selectedItem",v.selectedVendor),t.xp6(1),t.Q6J("ngIf",null==v.selectedVendor),t.xp6(13),t.Q6J("selectedItem",v.selectedProduct),t.xp6(1),t.Q6J("ngIf",null==v.selectedProduct),t.xp6(4),t.Q6J("selectedItem",v.selectedVariation),t.xp6(16),t.s9C("placeholder",v.translations["Enter Quantity"]),t.Q6J("ngClass",null==v.stockForm.controls.quantity.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"quantity","required","Quantity is required!")," "),t.xp6(7),t.s9C("placeholder",v.translations["Unit Price"]),t.Q6J("ngClass",null==v.stockForm.controls.unit_price.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"unit_price","required","Unit price is required!")," "),t.xp6(7),t.s9C("placeholder",v.translations["Enter Retail Price"]),t.Q6J("ngClass",null==v.stockForm.controls.retail_price.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"retail_price","required","Retail price is required!")," "),t.xp6(12),t.s9C("placeholder",v.translations["Enter Discount"]),t.xp6(5),t.Q6J("bsConfig",t.DdM(25,Ne))("minDate",v.currentDate()),t.xp6(4),t.s9C("placeholder",v.translations["Enter Cashback (%)"]),t.xp6(5),t.Q6J("bsConfig",t.DdM(26,Ne))("minDate",v.currentDate()),t.xp6(1),t.Q6J("ngIf",v.loading),t.xp6(5),t.Q6J("ngClass",v.stockForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.Np,S.Y5,U.q,q,_e.t]})}return $})()},337:(z,K,o)=>{o.d(K,{n:()=>x,u:()=>c});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,searchEndpoint:T.E.STOCKS.STOCK_ENDPOINT_V2,delEndpoint:T.E.STOCKS.STOCK_ENDPOINT,vendorEndpoint:T.E.VENDORS.VENDOR_ENDPOINT_V2},x={list:"/admin/inventory/stocks",create:"/admin/inventory/stocks/create",update(g){return null==g?this.create:"/admin/inventory/stocks/"+g+"/update"}}},5789:(z,K,o)=>{o.d(K,{q:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.STOCKS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u,N){this.http.get(T.E.STOCKS.GET(u,N)).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}fetchBySku(E,u,N){this.http.get(T.E.STOCKS.GET_BY_SKU(u,N)).subscribe(S=>{this.eventBusService.publish(E,S.body)},S=>{this.handleError(S,U=>{this.fetchBySku(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N){let S=null==N?T.E.STOCKS.CREATE():T.E.STOCKS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},2447:(z,K,o)=>{o.d(K,{s:()=>C});var d=o(9870),T=o(4968),c=o(6223),x=o(7259),g=o(7700),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(3668),E=o(5462),u=o(6814),N=o(4736),S=o(7035);function U(b,y){1&b&&t._UZ(0,"util-progress",22),2&b&&t.Q6J("bar",!0)}let C=(()=>{class b extends d.n{constructor(h,M,f,P,I,Z,V){super(h,M,f,P,V),this.variationService=I,this.notifier=Z,this.config=T._,this.variationForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),image:new c.NI(null)}),null!=V.name&&this.variationForm.controls.name.setValue(V.name)}componentName(){return"VariationUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Variations",link:"/admin/variations",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(h){this.loading=!0;let M=this.componentKey(x.Z.VARIATIONS.GET(h));this.variationService.fetchSingle(M,h),this.subscribe(M,null,(f,P)=>{this.loading=!1,this.populateForm(P.data)}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{console.log(P.data),this.loading=!1})}onSubmit(){this.variationForm.valid&&this.upsert(this.exId)}onImgUploaded(h){h.length>0&&this.variationForm.controls.image.setValue(h[0].image_url)}getExImages(){let h=this.variationForm.controls.image.value;return null==h?[]:[{image_url:h,thumb_url:h}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(h){this.loading=!0;let M=this.componentKey(x.Z.VARIATIONS.UPSERT(h));this.variationService.upsert(M,this.variationForm.value,h),this.subscribe(M,null,(f,P)=>{this.loading=!1;let I="Variation has been "+(h?"updated":"created");this.notifier.success("Success",I),this.variationForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(P.data):this.navigate(T.n.list,Z=>{this.notifier.success("Success!",I)})}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{let I=P.data;this.loading=!1,this.notifier.warning("Failed!",I.error.message)})}populateForm(h){this.variationForm.controls.name.setValue(h.name),this.variationForm.controls.description.setValue(h.description),this.variationForm.controls.image.setValue(null==h.image?null:h.image)}static#e=this.\u0275fac=function(M){return new(M||b)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.$),t.Y36(E.l),t.Y36(g.WI))};static#_=this.\u0275cmp=t.Xpm({type:b,selectors:[["app-variation-upsert"]],features:[t.qOj],decls:31,vars:12,consts:function(){let h,M,f,P;return h="Name",M="Description",f="Cancel",P="Submit",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","name-input",1,"form-label"],h,[1,"error"],["type","text","id","name-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","description",1,"form-label"],M,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],f,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],P,[3,"bar"]]},template:function(M,f){1&M&&(t.YNc(0,U,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Create/Update Variation"),t.qZA(),t.TgZ(7,"form",6)(8,"div",7)(9,"label",8)(10,"span"),t.SDv(11,9),t.qZA(),t.TgZ(12,"em",10),t._uU(13,"*"),t.qZA()(),t._UZ(14,"input",11),t.TgZ(15,"em",12),t._uU(16),t.qZA()(),t.TgZ(17,"div",7)(18,"label",13),t.SDv(19,14),t.qZA(),t._UZ(20,"textarea",15),t.TgZ(21,"em",12),t._uU(22),t.qZA()(),t.TgZ(23,"app-file-picker",16),t.NdJ("onUploaded",function(I){return f.onImgUploaded(I)}),t.qZA(),t.TgZ(24,"div",17)(25,"button",18),t.NdJ("click",function(){return f.onCancel()}),t.TgZ(26,"span"),t.SDv(27,19),t.qZA()(),t.TgZ(28,"button",20),t.NdJ("click",function(){return f.onSubmit()}),t.TgZ(29,"span"),t.SDv(30,21),t.qZA()()()()()()()()),2&M&&(t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("@loaded",!f.loading),t.xp6(6),t.Q6J("formGroup",f.variationForm),t.xp6(7),t.s9C("placeholder",f.translations["Enter Name"]),t.xp6(2),t.hij(" ",f.errMsg(f.variationForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.s9C("placeholder",f.translations["Enter Description"]),t.xp6(2),t.hij(" ",f.errMsg(f.variationForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(1),t.s9C("title",f.translations.Image),t.Q6J("multiSelect",!1)("existingImages",f.getExImages())("required",!1),t.xp6(5),t.Q6J("ngClass",f.variationForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.P]})}return b})()},4968:(z,K,o)=>{o.d(K,{_:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,showUpdateButton:!1,searchEndpoint:T.E.VARIATIONS.VARIATION_ENDPOINT,delEndpoint:T.E.VARIATIONS.VARIATION_ENDPOINT},x={list:"/admin/inventory/variations",create:"/admin/inventory/variations/create",update(g){return null==g?this.create:"/admin/inventory/variations/"+g+"/update"}}},3668:(z,K,o)=>{o.d(K,{$:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.VARIATIONS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.VARIATIONS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.VARIATIONS.CREATE():T.E.VARIATIONS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9056:(z,K,o)=>{o.d(K,{t:()=>h});var d=o(5879),T=o(8637),c=o(8174),x=o(1364),g=o(7259),t=o(2771),A=o(30),B=o(1662),l=o(6945),e=o(8480),E=o(7405),u=o(8675),N=o(6814),S=o(6223),U=o(4736),C=o(4807);function b(M,f){1&M&&d._UZ(0,"util-progress",4),2&M&&d.Q6J("bar",!0)}const y=function(){return{standalone:!0}};let h=(()=>{class M extends T.H{componentName(){return"VendorSelectComponent"}constructor(P,I,Z,V,q,_e){super(P,I,Z),this.authService=V,this.vendorService=q,this.popupService=_e,this.enableAdd=!1,this.searchEndpoint=t.E.VENDORS.VENDOR_ENDPOINT_V2,this.items=[],this.selectedItem=null,this.selected=new d.vpe,V.isAdmin()&&(this.enableAdd=!0,this.searchEndpoint=t.E.VENDORS.VENDOR_ENDPOINT_ADMIN_V2)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(P){let I=c.g.removeSpecialCharacters(P.target?.value);I.length>2&&this.search({page:0,size:10,q:I})}onSelected(P){if(this.items.find(I=>I.name==P.name))this.selected.emit(this.selectedItem);else{let I=this.popupService.open(x.Z,{id:null,title:P.title,dialogUpsert:!0}),Z=I.componentInstance;Z.onCompleted.subscribe(V=>{this.selected.emit(V)}),Z.onCanceled.subscribe(()=>{I.close()})}}search(P){let I=this.authService.isAdmin();this.loading=!0;let Z=this.componentKey(g.Z.VENDORS.SEARCH(P)+c.g.randomString(5));I?this.vendorService.search(Z,this.searchEndpoint,P):this.vendorService.myVendors(Z,this.searchEndpoint,P),this.subscribe(Z,null,(V,q)=>{this.items=I?q.data.content:q.data,this.loading=!1})}static#e=this.\u0275fac=function(I){return new(I||M)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.e),d.Y36(E.n),d.Y36(u.x))};static#_=this.\u0275cmp=d.Xpm({type:M,selectors:[["app-vendor-select"]],inputs:{enableAdd:"enableAdd",searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let P;return P="Store",[["for","vendor-select",1,"visually-hidden"],P,[3,"bar",4,"ngIf"],["id","vendor-select","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(I,Z){1&I&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,b,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(q){return Z.searchForEvent(q)})("ngModelChange",function(q){return Z.selectedItem=q})("change",function(q){return Z.onSelected(q)}),d.qZA()),2&I&&(d.xp6(2),d.Q6J("ngIf",Z.loading),d.xp6(1),d.s9C("placeholder",Z.translations["Search Store.."]),d.Q6J("items",Z.items)("hideSelected",!0)("multiple",!1)("addTag",Z.enableAdd)("ngModel",Z.selectedItem)("ngModelOptions",d.DdM(8,y)))},dependencies:[N.O5,S.JJ,U.t,C.w9,S.On]})}return M})()},1364:(z,K,o)=>{o.d(K,{Z:()=>Ae});var d=o(9870),T=o(5734),c=o(6223),x=o(7259),g=o(7700),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(7405),E=o(5462),u=o(5375),N=o(7579),S=o(6814),U=o(4736),C=o(6265),b=o(46),y=o(7035),h=o(2668),M=o(1310),f=o(8637),P=o(8174),I=o(8480),Z=o(5732),V=o(8675),q=o(4807);function _e($,de){1&$&&t._UZ(0,"util-progress",3),2&$&&t.Q6J("bar",!0)}const Te=function(){return{standalone:!0}};let Oe=(()=>{class $ extends f.H{componentName(){return"UserSelectComponent"}constructor(O,D,v,p,R,L){super(O,D,v),this.userService=R,this.popupService=L,this.enableAdd=!0,this.searchEndpoint=M.wl.endpoint,this.items=[],this.selectedItem=null,this.selected=new t.vpe,p.isAdmin()&&(this.searchEndpoint=M.wl.adminEndpoint)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(O){let D=P.g.removeSpecialCharacters(O.target?.value);D.length>2&&this.search({page:0,size:10,q:D})}onSelected(O){null==O?this.selected.emit(null):this.items.find(D=>D.name==O.name)?this.selected.emit(this.selectedItem):this.popupService.open(h.M,{id:null,title:O.title}).componentInstance.onCompleted.subscribe(v=>{this.selected.emit(v)})}search(O){this.loading=!0;let D=this.componentKey(x.Z.USERS.SEARCH(O));this.userService.search(D,this.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.items=p.data.content,this.loading=!1})}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(I.e),t.Y36(Z.K),t.Y36(V.x))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-user-select"]],inputs:{enableAdd:"enableAdd",searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[t.qOj],decls:4,vars:8,consts:[["for","user-select",1,"visually-hidden"],[3,"bar",4,"ngIf"],["id","user-select","bindLabel","label","placeholder","Search User",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]],template:function(D,v){1&D&&(t.TgZ(0,"label",0),t._uU(1,"User"),t.qZA(),t.YNc(2,_e,1,1,"util-progress",1),t.TgZ(3,"ng-select",2),t.NdJ("keyup",function(R){return v.searchForEvent(R)})("ngModelChange",function(R){return v.selectedItem=R})("change",function(R){return v.onSelected(R)}),t.qZA()),2&D&&(t.xp6(2),t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("items",v.items)("hideSelected",!0)("multiple",!1)("addTag",v.enableAdd)("ngModel",v.selectedItem)("ngModelOptions",t.DdM(7,Te)))},dependencies:[S.O5,c.JJ,c.On,U.t,q.w9]})}return $})();function me($,de){1&$&&t._UZ(0,"util-progress",66),2&$&&t.Q6J("bar",!0)}function ge($,de){if(1&$){const O=t.EpF();t.TgZ(0,"div",67)(1,"label",68),t._uU(2),t.qZA(),t.TgZ(3,"app-location-select",69),t.NdJ("selected",function(v){const R=t.CHM(O).$implicit,L=t.oxw();return t.KtG(L.onLocationSelected(v,R.type))}),t.qZA()()}if(2&$){const O=de.$implicit;t.xp6(1),t.s9C("for",O.type.label),t.xp6(1),t.Oqu(O.type.label),t.xp6(1),t.Q6J("preload",null==O.type.parent_id)("items",O.locations)("selectedItem",O.selectedLocation)}}function Ne($,de){1&$&&(t.TgZ(0,"em",13),t._uU(1," Location is required! "),t.qZA())}let Ae=(()=>{class $ extends d.n{constructor(O,D,v,p,R,L,J,Q,j){super(O,D,v,p,j),this.vendorService=R,this.notifier=L,this.locationTypeService=J,this.locationService=Q,this.config=T.j,this.vendorForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),type:new c.NI("GENERAL",[c.kI.required]),commission_percentage:new c.NI(0,[c.kI.required,c.kI.min(0),c.kI.max(100)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),logo:new c.NI(null,[c.kI.required]),banner:new c.NI(null),owner_id:new c.NI(null,[]),supplier:new c.NI(!1,[]),flagship:new c.NI(!1,[]),authorized_dealer:new c.NI(!1,[]),ecommerce_activated:new c.NI(!1,[]),phone:new c.NI(null,[]),account_name:new c.NI(null,[]),account_number:new c.NI(null,[]),bank_name:new c.NI(null,[]),branch_name:new c.NI(null,[]),routing:new c.NI(null,[]),address:new c.cw({address_line_one:new c.NI(null,[c.kI.required]),address_line_two:new c.NI(null,[]),altitude:new c.NI(0,[c.kI.required]),latitude:new c.NI(0,[c.kI.required]),longitude:new c.NI(0,[c.kI.required]),title:new c.NI(null,[]),zip_code:new c.NI(null,[]),location_id:new c.NI(null,[])})}),this.selectedOwner=null,this.locations=[],null!=j.title&&this.vendorForm.controls.name.setValue(j.name)}componentName(){return"VendorUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Vendors",link:"/admin/vendors",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.fetchLocationTypes({page:0,size:100,q:null})}initialize(O){this.loading=!0,this.fetchEx(O)}onSubmit(){this.vendorForm.valid&&this.upsert(this.exId)}onLogoPicked(O){O.length>0&&this.vendorForm.controls.logo.setValue(O[0].image_url)}onBannerPicked(O){O.length>0&&this.vendorForm.controls.banner.setValue(O[0].image_url)}getExLogo(){let O=this.vendorForm.controls.logo.value;return null==O?[]:[{image_url:O,thumb_url:O}]}getExBanner(){let O=this.vendorForm.controls.banner.value;return null==O?[]:[{image_url:O,thumb_url:O}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(O){this.loading=!0;let D=this.componentKey(x.Z.VENDORS.UPSERT(O));this.vendorService.upsert(D,this.vendorForm.value,O),this.subscribe(D,null,(v,p)=>{this.notifier.success("Success","Vendor has been "+(O?"updated":"created")),this.vendorForm.reset(),this.onSuccess(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{let R=p.data;this.loading=!1,this.notifier.warning("Failed!",R.error.message)})}populateForm(O){this.vendorForm.controls.name.setValue(O.name),this.vendorForm.controls.type.setValue(O.type),this.vendorForm.controls.commission_percentage.setValue(O.commission_percentage),this.vendorForm.controls.description.setValue(O.description),this.vendorForm.controls.logo.setValue(null==O.logo?null:O.logo),this.vendorForm.controls.banner.setValue(null==O.banner?null:O.banner),this.vendorForm.controls.owner_id.setValue(null==O.owner?null:O.owner.id),this.vendorForm.controls.supplier.setValue(O.supplier),this.vendorForm.controls.flagship.setValue(O.flagship),this.vendorForm.controls.authorized_dealer.setValue(O.authorized_dealer),this.vendorForm.controls.ecommerce_activated.setValue(O.ecommerce_activated),this.vendorForm.controls.phone.setValue(O.phone),this.vendorForm.controls.account_name.setValue(O.account_name),this.vendorForm.controls.account_number.setValue(O.account_number),this.vendorForm.controls.bank_name.setValue(O.bank_name),this.vendorForm.controls.branch_name.setValue(O.branch_name),this.vendorForm.controls.routing.setValue(O.routing),this.vendorForm.controls.address.controls.address_line_one.setValue(O.address.address_line_one),this.vendorForm.controls.address.controls.address_line_two.setValue(O.address.address_line_two),this.vendorForm.controls.address.controls.altitude.setValue(O.address.altitude),this.vendorForm.controls.address.controls.latitude.setValue(O.address.latitude),this.vendorForm.controls.address.controls.longitude.setValue(O.address.longitude),this.vendorForm.controls.address.controls.title.setValue(O.address.title),this.vendorForm.controls.address.controls.zip_code.setValue(O.address.zip_code),this.vendorForm.controls.address.controls.location_id.setValue(O.address.location_id),this.selectedOwner=O.owner,new Map(Object.entries(O.address.locations_tree)).forEach((D,v)=>{let p=this.locations.find(R=>R.type.code==v)?.type;null!=p&&this.onLocationSelected(D,p)})}fetchEx(O){let D=this.componentKey(x.Z.VENDORS.GET(O));this.vendorService.fetchSingle(D,O),this.subscribe(D,null,(v,p)=>{this.loading=!1,this.populateForm(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{console.log(p.data),this.loading=!1})}fetchLocationTypes(O){this.loading=!0;const D=this.componentKey(x.Z.LOCATIONTYPES.SEARCH(O));this.locationTypeService.search(D,this.config.locationTypeEndpoint,O),this.subscribe(D,null,(v,p)=>{let R=p.data.content;R.sort((L,J)=>L.level-J.level),this.locations=R.map(L=>({type:L,locations:[],selectedLocation:null})),this.loading=!1}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{this.notifier.error("Error",p.data.error.message)})}fetchChildLocations(O,D){this.loading=!0;const v=this.componentKey(x.Z.LOCATIONS.SEARCH(O));this.locationService.searchChildren(v,this.config.locationEndpoint,O),this.subscribe(v,null,(p,R)=>{D(R.data.content),this.loading=!1}),this.subscribe(this.getErrorKey(v),null,(p,R)=>{this.notifier.error("Error",R.data.error.message)})}onLocationSelected(O,D){this.locations=this.locations.map(p=>p.type.id==D.id?{...p,selectedLocation:O}:p.type.level>D.level?{...p,selectedLocation:null}:p),console.log("selected location",this.locations);let v=this.locations.filter(p=>null!=p.selectedLocation).sort((p,R)=>R.type.level-p.type.level);if(console.log("sorted and filtered",v),v.length>0){let p=v[0].selectedLocation;this.vendorForm.controls.address.controls.location_id.setValue(null==p?null:p.id)}console.log("selected location in control",this.vendorForm.controls.address.controls.location_id.value),null!=O&&this.fetchChildLocations({page:0,size:100,q:null,parent_id:O.id},p=>{if(0==p.length)return;let R=p[0].type_id;this.locations=this.locations.map(L=>L.type.id==R?{...L,locations:p}:L)})}onOwnerSelected(O){this.selectedOwner=O,this.vendorForm.controls.owner_id.setValue(null==O?null:O.id)}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.n),t.Y36(E.l),t.Y36(u.I),t.Y36(N.a),t.Y36(g.WI))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-vendor-upsert"]],features:[t.qOj],decls:136,vars:18,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"mb-4"],[1,"card-name"],[1,"text-warning"],[1,"error"],[3,"formGroup"],[1,"col-sm-6","col-lg-3","mb-3"],["for","name-input",1,"form-label"],["type","text","id","name-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],[1,"col-6","col-sm-6","col-lg-3","mb-3"],["for","type-input",1,"form-label"],["id","type-input","formControlName","type",1,"form-select"],["value","GENERAL"],["value","RESTAURANT"],["for","owner-input",1,"form-label"],["id","owner-input",3,"selectedItem","selected"],["for","comm-input",1,"form-label"],["type","text","id","comm-input","placeholder","Enter Commission","name","commission_percentage","formControlName","commission_percentage",1,"form-control"],[1,"col-6","mb-3"],[1,"form-label"],["title","Logo",3,"multiSelect","existingImages","required","onUploaded"],["title","Banner",3,"multiSelect","existingImages","required","onUploaded"],[1,"mb-3"],["for","description",1,"form-label"],["id","description","formControlName","description"],[1,"row","col-12"],[1,"col-sm-6"],[1,"form-check","form-check-primary","form-checkbox-outline","mb-3"],["type","checkbox","id","supplier","formControlName","supplier",1,"form-check-input"],["for","supplier",1,"form-check-label"],["type","checkbox","id","flagship","formControlName","flagship",1,"form-check-input"],["for","flagship",1,"form-check-label"],["type","checkbox","id","authorized_dealer","formControlName","authorized_dealer",1,"form-check-input"],["for","authorized_dealer",1,"form-check-label"],["type","checkbox","id","ecommerce_activated","formControlName","ecommerce_activated",1,"form-check-input"],["for","ecommerce_activated",1,"form-check-label"],[1,"row","col-sm-6"],[1,"col-6","col-md-6","mb-3"],["for","account_name-input",1,"form-label"],["type","text","id","account_name-input","placeholder","Account Name","name","account_name","formControlName","account_name",1,"form-control"],["for","account_number-input",1,"form-label"],["type","text","id","account_number-input","placeholder","Account Number","name","account_number","formControlName","account_number",1,"form-control"],[1,"col-md-6","mb-3"],["for","bank_name-input",1,"form-label"],["type","text","id","bank_name-input","placeholder","Bank Name","name","bank_name","formControlName","bank_name",1,"form-control"],["for","branch_name-input",1,"form-label"],["type","text","id","branch_name-input","placeholder","Branch Name","name","branch_name","formControlName","branch_name",1,"form-control"],["for","routing-input",1,"form-label"],["type","text","id","routing-input","placeholder","Routing","name","routing","formControlName","routing",1,"form-control"],["formGroupName","address"],[1,"section"],[1,"col-sm-6","mb-3"],["for","addr1-input",1,"form-label"],["type","text","id","addr1-input","placeholder","Enter Address Line 1","name","address_line_one","formControlName","address_line_one",1,"form-control"],["for","address_line_two-input",1,"form-label"],["type","text","id","address_line_two-input","placeholder","Enter Address Line 2","name","address_line_two","formControlName","address_line_two",1,"form-control"],["class","col-6 col-sm-6 mb-3",4,"ngFor","ngForOf"],["class","text-danger",4,"ngIf"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],[1,"col-6","col-sm-6","mb-3"],[1,"form-label",3,"for"],[3,"preload","items","selectedItem","selected"]],template:function(D,v){1&D&&(t.YNc(0,me,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4",6),t._uU(7,"Create/Update Vendor"),t.qZA(),t.TgZ(8,"em",7),t._uU(9," Form fields with "),t.TgZ(10,"em",8),t._uU(11,"*"),t.qZA(),t._uU(12," are required. "),t.qZA()(),t.TgZ(13,"form",9)(14,"div",1)(15,"div",10)(16,"label",11),t._uU(17,"Name"),t.TgZ(18,"em",8),t._uU(19,"*"),t.qZA()(),t._UZ(20,"input",12),t.TgZ(21,"em",13),t._uU(22),t.qZA()(),t.TgZ(23,"div",14)(24,"label",15),t._uU(25,"Type"),t.TgZ(26,"em",8),t._uU(27,"*"),t.qZA()(),t.TgZ(28,"select",16)(29,"option",17),t._uU(30,"General"),t.qZA(),t.TgZ(31,"option",18),t._uU(32,"Restaurant"),t.qZA()(),t.TgZ(33,"em",13),t._uU(34),t.qZA()(),t.TgZ(35,"div",14)(36,"label",19),t._uU(37,"Owner"),t.qZA(),t.TgZ(38,"app-user-select",20),t.NdJ("selected",function(R){return v.onOwnerSelected(R)}),t.qZA(),t._UZ(39,"em",13),t.qZA(),t.TgZ(40,"div",10)(41,"label",21),t._uU(42,"Commission"),t.TgZ(43,"em",8),t._uU(44,"*"),t.qZA()(),t._UZ(45,"input",22),t.TgZ(46,"em",13),t._uU(47),t.qZA()()(),t.TgZ(48,"div",1)(49,"div",23)(50,"label",24),t._uU(51,"Logo"),t.TgZ(52,"em",8),t._uU(53,"*"),t.qZA()(),t.TgZ(54,"app-file-picker",25),t.NdJ("onUploaded",function(R){return v.onLogoPicked(R)}),t.qZA()(),t.TgZ(55,"div",23)(56,"label",24),t._uU(57,"Banner"),t.qZA(),t.TgZ(58,"app-file-picker",26),t.NdJ("onUploaded",function(R){return v.onBannerPicked(R)}),t.qZA()()(),t.TgZ(59,"div",27)(60,"label",28),t._uU(61,"Description"),t.TgZ(62,"em",8),t._uU(63,"*"),t.qZA()(),t._UZ(64,"app-editor",29),t.TgZ(65,"em",13),t._uU(66),t.qZA()(),t.TgZ(67,"div",30)(68,"div",31)(69,"h5",5),t._uU(70,"Vendor Flags"),t.qZA(),t.TgZ(71,"div",32),t._UZ(72,"input",33),t.TgZ(73,"label",34),t._uU(74,"Vendor is a supplier"),t.qZA()(),t.TgZ(75,"div",32),t._UZ(76,"input",35),t.TgZ(77,"label",36),t._uU(78,"Flagship Store"),t.qZA()(),t.TgZ(79,"div",32),t._UZ(80,"input",37),t.TgZ(81,"label",38),t._uU(82,"Vendor is an authorized Dealer"),t.qZA()(),t.TgZ(83,"div",32),t._UZ(84,"input",39),t.TgZ(85,"label",40),t._uU(86,"Ecommerce Activated"),t.qZA()()(),t.TgZ(87,"div",41)(88,"div",1)(89,"h5",27),t._uU(90,"Bank Information"),t.qZA(),t.TgZ(91,"div",42)(92,"label",43),t._uU(93,"Account Name"),t.qZA(),t._UZ(94,"input",44),t.qZA(),t.TgZ(95,"div",42)(96,"label",45),t._uU(97,"Account Number"),t.qZA(),t._UZ(98,"input",46),t.qZA(),t.TgZ(99,"div",47)(100,"label",48),t._uU(101,"Bank Name"),t.qZA(),t._UZ(102,"input",49),t.qZA(),t.TgZ(103,"div",42)(104,"label",50),t._uU(105,"Branch Name"),t.qZA(),t._UZ(106,"input",51),t.qZA(),t.TgZ(107,"div",42)(108,"label",52),t._uU(109,"Routing"),t.qZA(),t._UZ(110,"input",53),t.qZA()()()(),t.TgZ(111,"div",54)(112,"section",55)(113,"h5",27),t._uU(114,"Address"),t.qZA(),t.TgZ(115,"div",1)(116,"div",56)(117,"label",57),t._uU(118,"Address Line 1"),t.TgZ(119,"em",8),t._uU(120,"*"),t.qZA()(),t._UZ(121,"input",58),t.TgZ(122,"em",13),t._uU(123),t.qZA()(),t.TgZ(124,"div",56)(125,"label",59),t._uU(126,"Address Line 2"),t.qZA(),t._UZ(127,"input",60),t.qZA()(),t.TgZ(128,"div",1),t.YNc(129,ge,4,5,"div",61),t.YNc(130,Ne,2,0,"em",62),t.qZA()()(),t.TgZ(131,"div",63)(132,"button",64),t.NdJ("click",function(){return v.onCancel()}),t._uU(133," Cancel "),t.qZA(),t.TgZ(134,"button",65),t.NdJ("click",function(){return v.onSubmit()}),t._uU(135," Submit "),t.qZA()()()()()()()),2&D&&(t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("@loaded",!v.loading),t.xp6(12),t.Q6J("formGroup",v.vendorForm),t.xp6(9),t.hij(" ",v.errMsg(v.vendorForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(12),t.hij(" ",v.errMsg(v.vendorForm,"type","required","Must select a type!")," "),t.xp6(4),t.Q6J("selectedItem",v.selectedOwner),t.xp6(9),t.hij(" ",v.errMsg(v.vendorForm,"commission_percentage","minLength","Name should be at least 3 characters!")," "),t.xp6(7),t.Q6J("multiSelect",!0)("existingImages",v.getExLogo())("required",!1),t.xp6(4),t.Q6J("multiSelect",!0)("existingImages",v.getExBanner())("required",!1),t.xp6(8),t.hij(" ",v.errMsg(v.vendorForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(57),t.hij(" ",v.errMsg(v.vendorForm.controls.address,"address_line_one","required","This field is required!")," "),t.xp6(6),t.Q6J("ngForOf",v.locations),t.xp6(1),t.Q6J("ngIf",null==v.vendorForm.controls.address.controls.location_id.value),t.xp6(4),t.Q6J("ngClass",v.vendorForm.valid?"":"disabled"))},dependencies:[S.mk,S.sg,S.O5,c._Y,c.YN,c.Kr,c.Fj,c.Wl,c.EJ,c.JJ,c.JL,c.sg,c.u,c.x0,U.t,C.P,b._,y.P,Oe]})}return $})()},5734:(z,K,o)=>{o.d(K,{j:()=>x,n:()=>g});var d=o(6405),T=o(2771),c=o(6032);let x={defaultLayout:d.A.GRID,upsertOnDialog:!1,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:T.E.VENDORS.VENDOR_ENDPOINT,delEndpoint:T.E.VENDORS.VENDOR_ENDPOINT,locationTypeEndpoint:c.s.LOCATIONTYPES.LOCATIONTYPE_ENDPOINT,locationEndpoint:c.s.LOCATIONS.LOCATION_ENDPOINT,showApprovalButton:!1},g={list:"/admin/inventory/vendors",create:"/admin/inventory/vendors/create",update(t){return null==t?this.create:"/admin/inventory/vendors/"+t+"/update"}}},7405:(z,K,o)=>{o.d(K,{n:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.VENDORS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}myVendors(E,u,N={}){let S=T.E.VENDORS.MY_VENDORS(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}searchCustomers(E,u){let N=T.E.VENDORS.SEARCH_CUSTOMERS(u);this.http.get(N).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.searchCustomers(E,u)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}fetchSingle(E,u){this.http.get(T.E.VENDORS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N.body)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}toggleApproval(E,u,N){this.http.patch(T.E.VENDORS.TOGGLE_APPROVAL(u,N),{}).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N){let S=null==N?T.E.VENDORS.CREATE():T.E.VENDORS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()}}]); \ No newline at end of file diff --git a/en-US/326.ec29f673254ec6d6.js b/en-US/326.ec29f673254ec6d6.js deleted file mode 100644 index 42f9d36..0000000 --- a/en-US/326.ec29f673254ec6d6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[326],{5095:(z,K,o)=>{o.d(K,{e:()=>E});var d=o(8637),T=o(6405),c=o(7613),x=o(8743),g=o(3108),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(8675);let E=(()=>{class u extends d.H{constructor(S,U,C,b){super(S,U,C),this.popup=b,this.Layout=T.A,this.StringUtil=c.m,this.breadcrumbItems=[],this.layout=T.A.GRID,this.breadcrumbItems=this.getBreadcrumbItems()}ngOnInit(){let S=this.getConfig().endpoint,U=g.n.retrieve(S);this.layout=null!=U?parseInt(U):this.getConfig().defaultLayout,this.initialize()}onLayoutSelected(S){this.layout=S,g.n.put(this.getConfig().endpoint,this.layout.toString())}openUpsertComponent(S){let U=this.getUpsertComponent();null!=U&&(this.popup.open(U,{id:S}),this.popup.onCompleted.subscribe(C=>{this.ngOnInit(),null!=C&&this.onUpsertSuccess(C),console.log("onSuccess. closing dialog")}),this.popup.onCanceled.subscribe(()=>{console.log("onCanceled. closing dialog")}))}onUpsertClick(S){if(this.getConfig().upsertOnDialog)this.openUpsertComponent(S);else{let U=this.getRoutes();if(null==U)return;let C=null==S?U.create:U.update(S);this.router.navigate([C],{queryParams:null!=S?U.params:{}})}}onUpsertSuccess(S){console.log("onUpsertSuccess",S)}static#e=this.\u0275fac=function(U){return new(U||u)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(e.x))};static#_=this.\u0275cmp=t.Xpm({type:u,selectors:[["ng-component"]],features:[t.qOj],decls:0,vars:0,template:function(U,C){},encapsulation:2,data:{animation:[(0,x.Ym)("onGrid","left"),(0,x.Ym)("onColumn","right")]}})}return u})()},4201:(z,K,o)=>{o.d(K,{C:()=>l});var d=o(8637),T=o(5879),c=o(7700),x=o(8743),g=o(1855),t=o(30),A=o(1662),B=o(6945);let l=(()=>{class e extends d.H{constructor(u,N,S,U,C){super(u,N,S),this.route=U,this.dialogData=C,this.breadcrumbItems=[],this.onCanceled=new T.vpe,this.onCompleted=new T.vpe,this.filterData=null,this.exId=null,this.dialogUpsert=!1,this.breadcrumbItems=this.getBreadcrumbItems(),this.dialogUpsert=null!=C.dialogUpsert}ngOnInit(){this.loading=!1,this.route.queryParams.subscribe(u=>{this.filterData=(0,g.OP)(u)}),this.route.paramMap.subscribe(u=>{let N=u.get("id");if(null==N&&(N=this.dialogData?.id),null!=N){let S=parseInt(N);isNaN(S)||(this.exId=S,this.initialize(this.exId))}})}navigateToListPage(u=null){this.router.navigate([this.getListPageRoute()],{queryParams:null==this.filterData?null:(0,g.oZ)(this.filterData)}).then(u)}onSuccess(u){this.loading=!1,this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCompleted.emit(u):this.navigateToListPage()}onCancel(){this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCanceled.emit():this.navigate(this.getListPageRoute(),u=>{})}static#e=this.\u0275fac=function(N){return new(N||e)(T.Y36(t.Y),T.Y36(A.F0),T.Y36(B.z),T.Y36(A.gz),T.Y36(c.WI))};static#_=this.\u0275cmp=T.Xpm({type:e,selectors:[["ng-component"]],outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[T.qOj],decls:0,vars:0,template:function(N,S){},encapsulation:2,data:{animation:[(0,x.e6)("loaded")]}})}return e})()},9107:(z,K,o)=>{o.d(K,{l:()=>C});var d=o(9870),T=o(1470),c=o(6223),x=o(7700),g=o(7259),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(7210),E=o(5462),u=o(6814),N=o(4736),S=o(7035);function U(b,y){1&b&&t._UZ(0,"util-progress",23),2&b&&t.Q6J("bar",!0)}let C=(()=>{class b extends d.n{constructor(h,M,f,P,I,Z,V){super(h,M,f,P,V),this.brandService=I,this.notifier=Z,this.config=T.j,this.brandForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),image:new c.NI(null)}),null!=V.name&&this.brandForm.controls.name.setValue(V.name)}componentName(){return"BrandUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Brands",link:"/admin/brands",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(h){this.loading=!0;let M=this.componentKey(g.Z.BRANDS.GET(h));this.brandService.fetchSingle(M,h),this.subscribe(M,null,(f,P)=>{this.loading=!1,this.populateForm(P.data)}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{console.log(P.data),this.loading=!1})}onSubmit(){this.brandForm.valid&&this.upsert(this.exId)}onImgUploaded(h){h.length>0&&this.brandForm.controls.image.setValue(h[0].image_url)}getExImages(){let h=this.brandForm.controls.image.value;return null==h?[]:[{image_url:h,thumb_url:h}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(h){this.loading=!0;let M=this.componentKey(g.Z.BRANDS.UPSERT(h));this.brandService.upsert(M,this.brandForm.value,h),this.subscribe(M,null,(f,P)=>{this.loading=!1;let I="Brand has been "+(h?"updated":"created");this.notifier.success("Success",I),this.brandForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(P.data):this.navigate(T.n.list,Z=>{this.notifier.success("Success!",I)})}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{let I=P.data;this.loading=!1,this.notifier.warning("Failed!",I.error.message)})}populateForm(h){this.brandForm.controls.name.setValue(h.name),this.brandForm.controls.description.setValue(h.description),this.brandForm.controls.image.setValue(null==h.image?null:h.image)}static#e=this.\u0275fac=function(M){return new(M||b)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.c),t.Y36(E.l),t.Y36(x.WI))};static#_=this.\u0275cmp=t.Xpm({type:b,selectors:[["app-brand-upsert"]],features:[t.qOj],decls:31,vars:12,consts:function(){let h,M,f,P,I;return h="Create/Update Brand",M="Name",f="Description",P="Cancel",I="Submit",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],h,[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],M,[1,"error"],["type","text","id","title-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","description",1,"form-label"],f,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],P,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],I,[3,"bar"]]},template:function(M,f){1&M&&(t.YNc(0,U,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",8)(9,"label",9)(10,"span"),t.SDv(11,10),t.qZA(),t.TgZ(12,"em",11),t._uU(13,"*"),t.qZA()(),t._UZ(14,"input",12),t.TgZ(15,"em",13),t._uU(16),t.qZA()(),t.TgZ(17,"div",8)(18,"label",14),t.SDv(19,15),t.qZA(),t._UZ(20,"textarea",16),t.TgZ(21,"em",13),t._uU(22),t.qZA()(),t.TgZ(23,"app-file-picker",17),t.NdJ("onUploaded",function(I){return f.onImgUploaded(I)}),t.qZA(),t.TgZ(24,"div",18)(25,"button",19),t.NdJ("click",function(){return f.onCancel()}),t.TgZ(26,"span"),t.SDv(27,20),t.qZA()(),t.TgZ(28,"button",21),t.NdJ("click",function(){return f.onSubmit()}),t.TgZ(29,"span"),t.SDv(30,22),t.qZA()()()()()()()()),2&M&&(t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("@loaded",!f.loading),t.xp6(6),t.Q6J("formGroup",f.brandForm),t.xp6(7),t.s9C("placeholder",f.translations["Enter Name"]),t.xp6(2),t.hij(" ",f.errMsg(f.brandForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.s9C("placeholder",f.translations["Enter Description"]),t.xp6(2),t.hij(" ",f.errMsg(f.brandForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(1),t.s9C("title",f.translations.Image),t.Q6J("multiSelect",!1)("existingImages",f.getExImages())("required",!1),t.xp6(5),t.Q6J("ngClass",f.brandForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.P]})}return b})()},1470:(z,K,o)=>{o.d(K,{j:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showUpdateButton:!1,showDeleteButton:!1,searchEndpoint:T.E.BRANDS.BRAND_ENDPOINT,delEndpoint:T.E.BRANDS.BRAND_ENDPOINT},x={list:"/admin/brands",create:"/admin/brands/create",update(g){return null==g?this.create:"/admin/brands/"+g+"/update"}}},7210:(z,K,o)=>{o.d(K,{c:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.BRANDS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.BRANDS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.BRANDS.CREATE():T.E.BRANDS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},5081:(z,K,o)=>{o.d(K,{P:()=>y});var d=o(5879),T=o(8637),c=o(7259),x=o(8174),g=o(2771),t=o(2134),A=o(30),B=o(1662),l=o(6945),e=o(4120),E=o(8675),u=o(6814),N=o(6223),S=o(4736),U=o(4807);function C(h,M){1&h&&d._UZ(0,"util-progress",4),2&h&&d.Q6J("bar",!0)}const b=function(){return{standalone:!0}};let y=(()=>{class h extends T.H{componentName(){return"CategorySelectComponent"}constructor(f,P,I,Z,V){super(f,P,I),this.categoryService=Z,this.popupService=V,this.searchEndpoint=g.E.CATEGORIES.CATEGORY_ENDPOINT_V2,this.categories=[],this.selectedItem=null,this.selected=new d.vpe,this.searchEndpoint=g.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN_V2}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(f){let P=x.g.removeSpecialCharacters(f.target?.value);P.length>2&&this.search({page:0,size:10,q:P})}onSelected(f){this.categories.find(P=>P.name==f.name)?this.selected.emit(this.selectedItem):this.popupService.open(t.I,{id:null,name:f.name}).componentInstance.onCompleted.subscribe(I=>{this.selected.emit(I)})}search(f){this.loading=!0;let P=this.componentKey(c.Z.CATEGORIES.SEARCH_CATEGORIES_FOR_FILTER());this.categoryService.search(P,this.searchEndpoint,f),this.subscribe(P,null,(I,Z)=>{this.categories=Z.data.content,this.loading=!1})}static#e=this.\u0275fac=function(P){return new(P||h)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.H),d.Y36(E.x))};static#_=this.\u0275cmp=d.Xpm({type:h,selectors:[["app-category-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let f;return f="Category",[["for","autoSizingInput2",1,"visually-hidden"],f,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(P,I){1&P&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,C,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(V){return I.searchForEvent(V)})("ngModelChange",function(V){return I.selectedItem=V})("change",function(V){return I.onSelected(V)}),d.qZA()),2&P&&(d.xp6(2),d.Q6J("ngIf",I.loading),d.xp6(1),d.s9C("placeholder",I.translations["Search Category.."]),d.Q6J("items",I.categories)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",I.selectedItem)("ngModelOptions",d.DdM(8,b)))},dependencies:[u.O5,N.JJ,S.t,U.w9,N.On]})}return h})()},2134:(z,K,o)=>{o.d(K,{I:()=>N});var d=o(2642),T=o(6223),c=o(7700),x=o(7259),g=o(4201),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(4120),E=o(5462);function u(S,U){1&S&&t._UZ(0,"util-progress",32),2&S&&t.Q6J("bar",!0)}let N=(()=>{class S extends g.C{constructor(C,b,y,h,M,f,P){super(C,b,y,h,P),this.categoryService=M,this.notifier=f,this.config=d.o,this.selectedParent=null,this.categoryForm=new T.cw({name:new T.NI("",[T.kI.required,T.kI.minLength(3)]),description:new T.NI("",[]),parent_id:new T.NI(null),image:new T.NI(null),update_attributes_for_children:new T.NI(!1)}),null!=P.name&&this.categoryForm.controls.name.setValue(P.name)}componentName(){return"CategoryUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Categorys",link:"/admin/categorys",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(C){this.loading=!0;let b=this.componentKey(x.Z.PRODUCT_CATEGORIES.GET(C));this.categoryService.fetchSingle(b,C),this.subscribe(b,null,(y,h)=>{this.loading=!1,this.populateForm(h.data)}),this.subscribe(this.getErrorKey(b),null,(y,h)=>{console.log(h.data),this.loading=!1})}onSubmit(){this.categoryForm.valid&&this.upsert(this.exId)}onImgUploaded(C){C.length>0&&this.categoryForm.controls.image.setValue(C[0].image_url)}getExImages(){let C=this.categoryForm.controls.image.value;return null==C?[]:[{image_url:C,thumb_url:C}]}getConfig(){return this.config}getListPageRoute(){return d.n.list}upsert(C){this.loading=!0;let b=this.componentKey(x.Z.PRODUCT_CATEGORIES.UPSERT(C));this.categoryService.upsert(b,this.categoryForm.value,C),this.subscribe(b,null,(y,h)=>{this.categoryForm.reset(),this.onSuccess(h.data)}),this.subscribe(this.getErrorKey(b),null,(y,h)=>{let M=h.data;this.loading=!1,this.notifier.warning("Failed!",M.error.message)})}populateForm(C){this.selectedParent=C.parent,this.categoryForm.controls.name.setValue(C.name),this.categoryForm.controls.description.setValue(C.description),this.categoryForm.controls.parent_id.setValue(null==C.parent?null:C.parent.id),this.categoryForm.controls.image.setValue(null==C.image?null:C.image)}onParentSelected(C){this.selectedParent=C,this.categoryForm.controls.parent_id.setValue(null==C?null:C.id)}static#e=this.\u0275fac=function(b){return new(b||S)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.H),t.Y36(E.l),t.Y36(c.WI))};static#_=this.\u0275cmp=t.Xpm({type:S,selectors:[["app-category-upsert"]],features:[t.qOj],decls:40,vars:13,consts:function(){let C,b,y,h,M,f,P;return C="Create/Update Category",b="Name",y="Parent",h="Description",M=" Update Attributes for children ",f="Cancel",P="Submit",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],C,[3,"formGroup"],[1,"row","mb-3"],[1,"col-6","col-sm-6"],["for","title-input",1,"form-label"],b,[1,"error"],["type","text","id","title-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","parent",1,"form-label"],y,["id","parent",3,"searchEndpoint","selectedItem","selected"],[1,"mb-3"],["for","description",1,"form-label"],h,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"form-check"],["type","checkbox","id","gridCheck","name","update_attributes_for_children","formControlName","update_attributes_for_children",1,"form-check-input"],["for","gridCheck",1,"form-check-label"],M,[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],f,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],P,[3,"bar"]]},template:function(b,y){1&b&&(t.YNc(0,u,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",8)(9,"div",9)(10,"label",10)(11,"span"),t.SDv(12,11),t.qZA(),t.TgZ(13,"em",12),t._uU(14,"*"),t.qZA()(),t._UZ(15,"input",13),t.TgZ(16,"em",14),t._uU(17),t.qZA()(),t.TgZ(18,"div",9)(19,"label",15),t.SDv(20,16),t.qZA(),t.TgZ(21,"app-category-select",17),t.NdJ("selected",function(M){return y.onParentSelected(M)}),t.qZA()()(),t.TgZ(22,"div",18)(23,"label",19),t.SDv(24,20),t.qZA(),t._UZ(25,"textarea",21),t.qZA(),t.TgZ(26,"app-file-picker",22),t.NdJ("onUploaded",function(M){return y.onImgUploaded(M)}),t.qZA(),t.TgZ(27,"div",8)(28,"div",18)(29,"div",23),t._UZ(30,"input",24),t.TgZ(31,"label",25),t.SDv(32,26),t.qZA()()()(),t.TgZ(33,"div",27)(34,"button",28),t.NdJ("click",function(){return y.onCancel()}),t.TgZ(35,"span"),t.SDv(36,29),t.qZA()(),t.TgZ(37,"button",30),t.NdJ("click",function(){return y.onSubmit()}),t.TgZ(38,"span"),t.SDv(39,31),t.qZA()()()()()()()()),2&b&&(t.Q6J("ngIf",y.loading),t.xp6(1),t.Q6J("@loaded",!y.loading),t.xp6(6),t.Q6J("formGroup",y.categoryForm),t.xp6(8),t.s9C("placeholder",y.translations["Enter Name"]),t.xp6(2),t.hij(" ",y.errMsg(y.categoryForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.Q6J("searchEndpoint",y.config.endpointV2)("selectedItem",y.selectedParent),t.xp6(4),t.s9C("placeholder",y.translations["Enter Description"]),t.xp6(1),t.s9C("title",y.translations.Image),t.Q6J("multiSelect",!1)("existingImages",y.getExImages())("required",!1),t.xp6(11),t.Q6J("ngClass",y.categoryForm.valid?"":"disabled"))}})}return S})()},2642:(z,K,o)=>{o.d(K,{n:()=>x,o:()=>c});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,showUpdateButton:!1,endpoint:T.E.CATEGORIES.CATEGORY_ENDPOINT,endpointV2:T.E.CATEGORIES.CATEGORY_ENDPOINT_V2,delEndpoint:T.E.CATEGORIES.CATEGORY_ENDPOINT},x={list:"/admin/inventory/categories",getChildren:g=>"/admin/inventory/categories?parent_id="+g,create:"/admin/inventory/categories/create",update(g){return null==g?this.create:"/admin/inventory/categories/"+g+"/update"}}},4120:(z,K,o)=>{o.d(K,{H:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.CATEGORIES.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.CATEGORIES.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}fetchMultiple(E,u){this.http.get(T.E.CATEGORIES.GET_MULTIPLE(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchMultiple(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.CATEGORIES.CREATE():T.E.CATEGORIES.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},756:(z,K,o)=>{o.d(K,{t:()=>h});var d=o(5879),T=o(8637),c=o(8174),x=o(7259),g=o(2771),t=o(4381),A=o(30),B=o(1662),l=o(6945),e=o(8480),E=o(6501),u=o(8675),N=o(6814),S=o(6223),U=o(4736),C=o(4807);function b(M,f){1&M&&d._UZ(0,"util-progress",4),2&M&&d.Q6J("bar",!0)}const y=function(){return{standalone:!0}};let h=(()=>{class M extends T.H{componentName(){return"FAttributeSelectComponent"}constructor(P,I,Z,V,q,_e){super(P,I,Z),this.filterableAttributeService=q,this.popupService=_e,this.searchEndpoint=g.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new d.vpe,V.isAdmin()&&(this.searchEndpoint=g.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(P){let I=c.g.removeSpecialCharacters(P.target?.value);I.length>2&&this.search({page:0,size:10,q:I})}onSelected(P){this.items.find(I=>I.name==P.name)?this.selected.emit(this.selectedItem):this.popupService.open(t.V,{id:null,name:P.name,dialogUpsert:!0}).componentInstance.onCompleted.subscribe(Z=>{this.selected.emit(Z)})}search(P){this.loading=!0;let I=this.componentKey(x.Z.FILTERABLEATTRIBUTES.SEARCH(P));this.filterableAttributeService.search(I,this.searchEndpoint,P),this.subscribe(I,null,(Z,V)=>{this.items=V.data.content,this.loading=!1})}static#e=this.\u0275fac=function(I){return new(I||M)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.e),d.Y36(E.C),d.Y36(u.x))};static#_=this.\u0275cmp=d.Xpm({type:M,selectors:[["app-fa-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let P;return P="Filter Attribute",[["for","autoSizingInput2",1,"visually-hidden"],P,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(I,Z){1&I&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,b,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(q){return Z.searchForEvent(q)})("ngModelChange",function(q){return Z.selectedItem=q})("change",function(q){return Z.onSelected(q)}),d.qZA()),2&I&&(d.xp6(2),d.Q6J("ngIf",Z.loading),d.xp6(1),d.s9C("placeholder",Z.translations["Search Attributes.."]),d.Q6J("items",Z.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",Z.selectedItem)("ngModelOptions",d.DdM(8,y)))},dependencies:[N.O5,S.JJ,U.t,C.w9,S.On]})}return M})()},4381:(z,K,o)=>{o.d(K,{V:()=>b});var d=o(6223),T=o(9870),c=o(231),x=o(7700),g=o(7259),t=o(8174),A=o(5879),B=o(30),l=o(1662),e=o(6945),E=o(6501),u=o(5462),N=o(6814),S=o(4736);function U(y,h){1&y&&A._UZ(0,"util-progress",21),2&y&&A.Q6J("bar",!0)}function C(y,h){if(1&y){const M=A.EpF();A.TgZ(0,"div",22)(1,"div",23),A._UZ(2,"input",24),A.qZA(),A.TgZ(3,"div",25)(4,"a",26)(5,"i",27),A.NdJ("click",function(){const I=A.CHM(M).index,Z=A.oxw();return A.KtG(Z.removeValue(I))}),A.qZA()()()()}if(2&y){const M=h.$implicit,f=h.index;A.xp6(2),A.Q6J("formControl",M)("id","value_"+f)}}let b=(()=>{class y extends T.n{get valuesArrayControls(){return this.filterableAttributeForm.get("values").controls.filter(M=>M instanceof d.NI)}addValueControl(M){const f=new d.NI(M,d.kI.required);this.filterableAttributeForm.get("values").push(f)}removeValue(M){this.filterableAttributeForm.get("values").removeAt(M)}constructor(M,f,P,I,Z,V,q){super(M,f,P,I,q),this.filterableAttributeService=Z,this.notifier=V,this.config=c.I,this.filterableAttributeForm=new d.cw({name:new d.NI("",[d.kI.required,d.kI.minLength(3)]),code:new d.NI("",[d.kI.required,d.kI.minLength(3)]),values:new d.Oe([],d.kI.required)}),null!=q.name&&(this.filterableAttributeForm.controls.name.setValue(q.name),this.filterableAttributeForm.controls.code.setValue(t.g.codify(q.name)))}componentName(){return"FilterableAttributeUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"FilterableAttributes",link:"/admin/filterableattributes",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.filterableAttributeForm.controls.name.valueChanges.subscribe(M=>{null!=M&&this.filterableAttributeForm.controls.code.setValue(t.g.codify(M))}),null==this.exId&&(this.addValueControl(""),this.addValueControl(""))}initialize(M){this.loading=!0;let f=this.componentKey(g.Z.FILTERABLEATTRIBUTES.GET(M));this.filterableAttributeService.fetchSingle(f,M),this.subscribe(f,null,(P,I)=>{this.loading=!1,this.populateForm(I.data)}),this.subscribe(this.getErrorKey(f),null,(P,I)=>{console.log(I.data),this.loading=!1})}onSubmit(){this.filterableAttributeForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return c.n.list}upsert(M){this.loading=!0;let f=this.componentKey(g.Z.FILTERABLEATTRIBUTES.UPSERT(M));this.filterableAttributeService.upsert(f,this.filterableAttributeForm.value,M),this.subscribe(f,null,(P,I)=>{this.filterableAttributeForm.reset(),this.onSuccess(I.data)}),this.subscribe(this.getErrorKey(f),null,(P,I)=>{let Z=I.data;this.loading=!1,this.notifier.warning("Failed!",Z.error.message)})}populateForm(M){this.filterableAttributeForm.controls.name.setValue(M.name),this.filterableAttributeForm.controls.code.setValue(M.code),M.values.forEach(f=>{this.addValueControl(f)})}static#e=this.\u0275fac=function(f){return new(f||y)(A.Y36(B.Y),A.Y36(l.F0),A.Y36(e.z),A.Y36(l.gz),A.Y36(E.C),A.Y36(u.l),A.Y36(x.WI))};static#_=this.\u0275cmp=A.Xpm({type:y,selectors:[["app-filterableattribute-upsert"]],features:[A.qOj],decls:40,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"row","mb-3"],[1,"col-6"],["for","name-input",1,"form-label"],[1,"error"],["type","text","id","name-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],["type","text","id","code-input","placeholder","Enter Code","name","code","formControlName","code",1,"form-control"],["formArrayName","values"],["class","row mb-2",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-outline-info",3,"click"],[1,"mdi","mdi-plus","font-size-16"],[1,"d-flex","flex-wrap","gap-3","mt-2","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],[1,"row","mb-2"],[1,"col-11"],["type","text","placeholder","Enter value",1,"form-control",3,"formControl","id"],[1,"col-1","d-flex","align-items-center","justify-content-center"],["href","javascript: void(0);"],[1,"bx","bx-x-circle","text-danger","font-size-20",3,"click"]],template:function(f,P){1&f&&(A.YNc(0,U,1,1,"util-progress",0),A.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),A._uU(6,"Create/Update FilterableAttribute"),A.qZA(),A.TgZ(7,"form",6)(8,"div",7)(9,"div",8)(10,"label",9),A._uU(11,"Name"),A.TgZ(12,"em",10),A._uU(13,"*"),A.qZA()(),A._UZ(14,"input",11),A.TgZ(15,"em",12),A._uU(16),A.qZA()(),A.TgZ(17,"div",8)(18,"label",9),A._uU(19,"Code"),A.TgZ(20,"em",10),A._uU(21,"*"),A.qZA()(),A._UZ(22,"input",13),A.TgZ(23,"em",12),A._uU(24),A.qZA()()(),A.TgZ(25,"div",14)(26,"label",9),A._uU(27,"Enter Values"),A.TgZ(28,"em",10),A._uU(29,"*"),A.qZA()(),A._UZ(30,"br"),A.YNc(31,C,6,2,"div",15),A.TgZ(32,"button",16),A.NdJ("click",function(){return P.addValueControl("")}),A._UZ(33,"i",17),A._uU(34," Add "),A.qZA()(),A.TgZ(35,"div",18)(36,"button",19),A.NdJ("click",function(){return P.onCancel()}),A._uU(37," Cancel "),A.qZA(),A.TgZ(38,"button",20),A.NdJ("click",function(){return P.onSubmit()}),A._uU(39," Submit "),A.qZA()()()()()()()),2&f&&(A.Q6J("ngIf",P.loading),A.xp6(1),A.Q6J("@loaded",!P.loading),A.xp6(6),A.Q6J("formGroup",P.filterableAttributeForm),A.xp6(9),A.hij(" ",P.errMsg(P.filterableAttributeForm,"name","minLength","Name should be at least 3 characters!")," "),A.xp6(8),A.hij(" ",P.errMsg(P.filterableAttributeForm,"code","minLength","Code should be at least 3 characters!")," "),A.xp6(7),A.Q6J("ngForOf",P.valuesArrayControls),A.xp6(7),A.Q6J("ngClass",P.filterableAttributeForm.valid?"":"disabled"))},dependencies:[N.mk,N.sg,N.O5,d._Y,d.Fj,d.JJ,d.JL,d.oH,d.sg,d.u,d.CE,S.t]})}return y})()},231:(z,K,o)=>{o.d(K,{I:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:T.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT,delEndpoint:T.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT},x={list:"/admin/filterable-attributes",create:"/admin/filterable-attributes/create",update(g){return null==g?this.create:"/admin/filterable-attributes/"+g+"/update"}}},6501:(z,K,o)=>{o.d(K,{C:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.FILTERABLEATTRIBUTES.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.FILTERABLEATTRIBUTES.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.FILTERABLEATTRIBUTES.CREATE():T.E.FILTERABLEATTRIBUTES.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},2771:(z,K,o)=>{o.d(K,{E:()=>c});var d=o(2495),T=o(553);class c extends d.O{static#e=this.CATEGORIES={CATEGORY_ENDPOINT:T.N.base_url+"/api/v1/categories",CATEGORY_ENDPOINT_V2:T.N.base_url+"/api/v2/categories",CATEGORY_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/categories",CATEGORY_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/categories",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.CATEGORY_ENDPOINT},GET(g){return this.CATEGORY_ENDPOINT+"/"+g},GET_MULTIPLE(g){return this.CATEGORY_ENDPOINT+"/multiple/by-ids?ids="+g.join(",")},UPDATE(g){return this.CATEGORY_ENDPOINT+"/"+g}};static#_=this.ATTRIBUTES={ATTRIBUTE_ENDPOINT:T.N.base_url+"/api/v1/attributes",ATTRIBUTE_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/admin/attributes",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.ATTRIBUTE_ENDPOINT},GET(g){return this.ATTRIBUTE_ENDPOINT+"/"+g},UPDATE(g){return this.ATTRIBUTE_ENDPOINT+"/"+g}};static#t=this.FILTERABLEATTRIBUTES={FILTERABLEATTRIBUTE_ENDPOINT:T.N.base_url+"/api/v1/filterable-attributes",FILTERABLEATTRIBUTE_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/filterable-attributes",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.FILTERABLEATTRIBUTE_ENDPOINT},GET(g){return this.FILTERABLEATTRIBUTE_ENDPOINT+"/"+g},UPDATE(g){return this.FILTERABLEATTRIBUTE_ENDPOINT+"/"+g}};static#i=this.BRANDS={BRAND_ENDPOINT:T.N.base_url+"/api/v1/brands",BRAND_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/brands",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.BRAND_ENDPOINT},GET(g){return this.BRAND_ENDPOINT+"/"+g},UPDATE(g){return this.BRAND_ENDPOINT+"/"+g}};static#n=this.VARIATIONS={VARIATION_ENDPOINT:T.N.base_url+"/api/v1/variations",VARIATION_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/variations",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.VARIATION_ENDPOINT},GET(g){return this.VARIATION_ENDPOINT+"/"+g},UPDATE(g){return this.VARIATION_ENDPOINT+"/"+g}};static#o=this.PRODUCTS={PRODUCT_ENDPOINT:T.N.base_url+"/api/v1/products",PRODUCT_ENDPOINT_V2:T.N.base_url+"/api/v2/products",PRODUCT_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/products",PRODUCT_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/products",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE:g=>g,GET:(g,t)=>g+"/"+t,UPDATE:(g,t)=>g+"/"+t,APPROVE:(g,t,A)=>g+"/"+t+"/approve?approved="+A};static#s=this.PRODUCTSPECIFICATIONS={PRODUCTSPECIFICATION_ENDPOINT:T.N.base_url+"/api/v1/productspecifications",PRODUCTSPECIFICATION_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/productspecifications",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.PRODUCTSPECIFICATION_ENDPOINT},GET(g){return this.PRODUCTSPECIFICATION_ENDPOINT+"/"+g},UPDATE(g){return this.PRODUCTSPECIFICATION_ENDPOINT+"/"+g}};static#r=this.STOCKS={STOCK_ENDPOINT:T.N.base_url+"/api/v1/stocks",STOCK_ENDPOINT_V2:T.N.base_url+"/api/v2/stocks",STOCK_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/stocks",STOCK_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/stocks",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),CREATE(){return this.STOCK_ENDPOINT_V2},GET:(g,t)=>g+"/"+t,GET_BY_SKU:(g,t)=>g+"/by-sku/"+t,UPDATE(g){return this.STOCK_ENDPOINT_V2+"/"+g}};static#l=this.VENDORS={VENDOR_ENDPOINT:T.N.base_url+"/api/v1/vendors",VENDOR_ENDPOINT_V2:T.N.base_url+"/api/v2/vendors",VENDOR_ENDPOINT_ADMIN:T.N.base_url+"/api/v1/vendors",VENDOR_ENDPOINT_ADMIN_V2:T.N.base_url+"/api/v2/admin/vendors",SEARCH:(g,t)=>g.concat(d.O.toParamString(t)),MY_VENDORS:(g,t)=>g.concat("/my-vendors").concat(d.O.toParamString(t)),CREATE(){return this.VENDOR_ENDPOINT},GET(g){return this.VENDOR_ENDPOINT_V2+"/"+g},TOGGLE_APPROVAL(g,t){return this.VENDOR_ENDPOINT+"/"+g+"/approve?approved="+t},UPDATE(g){return this.VENDOR_ENDPOINT+"/"+g},SEARCH_CUSTOMERS(g){return this.VENDOR_ENDPOINT_V2+"/my-vendors/search-customers".concat(d.O.toParamString(g))}}}},5326:(z,K,o)=>{o.r(K),o.d(K,{InventoryModule:()=>wn});var d=o(6814),T=o(1662),c=o(2134),x=o(2642),g=o(6542),t=o(1855),A=o(7259),B=o(2771),l=o(5095),e=o(5879),E=o(30),u=o(6945),N=o(8480),S=o(8675),U=o(4120),C=o(5462),b=o(4736),y=o(1836),h=o(6075),M=o(9582),f=o(3383),P=o(2770);function I(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Z(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function V(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function q(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Z,2,0,"h4",16),e.YNc(8,V,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function _e(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function Te(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function Oe(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,43),e.qZA())}function me(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function ge(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"a",48),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",49),e.qZA()()}}function Ne(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"app-delete",50),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Ae(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,me,2,1,"td",7),e.TgZ(4,"td"),e._UZ(5,"img",44),e.qZA(),e.TgZ(6,"td")(7,"a",45),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e._uU(8),e.qZA()(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.YNc(21,ge,3,0,"td",46),e.YNc(22,Ne,2,1,"td",46),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(2),e.s9C("src",_.image,e.LSH),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.parent_name),e.xp6(3),e.Oqu(e.lcZ(16,10,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,12,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function $(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,_e,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.YNc(25,Te,2,0,"th",7),e.YNc(26,Oe,2,0,"th",7),e.qZA()(),e.TgZ(27,"tbody"),e.YNc(28,Ae,23,14,"tr",40),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.categories.content)}}function de(i,a){if(1&i&&(e.TgZ(0,"div",68),e._UZ(1,"img",44),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function O(i,a){if(1&i&&(e.TgZ(0,"div",69)(1,"span",70),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function D(i,a){if(1&i&&(e.TgZ(0,"h6",71),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function v(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("Parent: ",_.parent_name,"")}}function p(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e.SDv(2,74),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function R(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,75),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function L(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",76)(1,"a",45),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",77),e.qZA()()}}function J(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",76)(1,"app-delete",78),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Q(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",52)(1,"div",53),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e.TgZ(2,"div",28),e.YNc(3,de,2,1,"div",54),e.YNc(4,O,3,1,"div",55),e.TgZ(5,"h5",56)(6,"a",57),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCategoryClick(r))}),e._uU(7),e.qZA()(),e.YNc(8,D,2,1,"h6",58),e.YNc(9,v,2,1,"h6",59),e.TgZ(10,"div",0)(11,"div",60)(12,"p",61)(13,"small")(14,"b"),e.SDv(15,62),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",60)(20,"p",63),e.YNc(21,p,6,3,"small",64),e.YNc(22,R,6,0,"small",64),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA()(),e.TgZ(25,"div",65)(26,"div",66),e.YNc(27,L,3,0,"div",67),e.YNc(28,J,2,2,"div",67),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(1),e.Q6J("ngIf",_.parent_name),e.xp6(8),e.Oqu(e.lcZ(18,11,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(3),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function j(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Q,29,13,"div",51),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.categories.content)}}function pe(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,$,29,6,"div",25),e.YNc(2,j,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let Ee=(()=>{class i extends l.e{componentName(){return"CategoryListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.categoryService=F,this.notifier=w,this.config=x.o,this.categories=g.H,r.isAdmin()&&(this.config.endpoint=B.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN,this.config.endpointV2=B.E.CATEGORIES.CATEGORY_ENDPOINT_ADMIN_V2,this.config.showDeleteButton=!0,this.config.showUpdateButton=!0)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_),s=_.parent_id?parseInt(_.parent_id):null;this.fetchCategories({q:n.query,parent_id:s,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return this.breadcrumbItems}fetchCategories(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCT_CATEGORIES.SEARCH(_));this.categoryService.search(n,this.config.endpointV2,_),this.subscribe(n,null,(s,r)=>{this.categories=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}getMultipleByIds(_){this.loading=!0;const n=this.componentKey(A.Z.CATEGORIES.GET_MULTIPLE(_));this.categoryService.fetchMultiple(n,_),this.subscribe(n,null,(s,r)=>{let Y=[{text:"Categories",link:x.n.list,active:!1}];r.data.map(F=>{Y.push({text:F.name,link:x.n.getChildren(F.id),active:!1})}),this.breadcrumbItems=Y,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Category is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:x.n.create,update:_=>x.n.update(_),params:{}}}getUpsertComponent(){return c.I}onCategoryClick(_){this.navigateByUrl(x.n.getChildren(_.id),n=>{this.getMultipleByIds(_.absolute_path.split(":").map(s=>parseInt(s)))})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(U.H),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-category-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W;return _="Cooking your data, please wait..",n="No items",s="Categories that I've created",r="Id",m="Image",Y="Name",F="Description",w="Parent",oe="Created At",se="Last Updated",re="Created By",le="Update",ae="Delete",ce="Created At",X="Updated",W="Updated",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,[4,"ngFor","ngForOf"],re,le,ae,["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center",3,"click"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],["class","font-size-10 text-primary",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ce,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-10","text-info"],[1,"font-size-10","text-primary"],[1,"font-size-10"],X,W,[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,I,1,1,"util-progress",5),e.YNc(8,q,13,2,"div",6),e.YNc(9,pe,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Categories)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.categories.empty),e.xp6(1),e.Q6J("ngIf",!s.categories.empty),e.xp6(1),e.Q6J("page",s.categories))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})();var k=o(9538),ue=o(2159),Se=o(6405);let ne={defaultLayout:Se.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT,delEndpoint:B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT},Re={list:"/admin/attributes",create:"/admin/attributes/create",update(i){return null==i?this.create:"/admin/attributes/"+i+"/update"}};var G=o(6223),Ce=o(9870),fe=o(7700),H=o(1547),Ye=o(9862);let Ve=(()=>{class i extends H.b{constructor(_,n,s,r){super(_,n),this.http=s,this.eventBusService=r}search(_,n,s){let r=B.E.ATTRIBUTES.SEARCH(n,s);this.http.get(r).subscribe(m=>{this.eventBusService.publish(_,m)},m=>{this.handleError(m,Y=>{this.search(_,n,s)},Y=>{this.eventBusService.publish(this.getErrorKey(_),Y)})})}fetchSingle(_,n){this.http.get(B.E.ATTRIBUTES.GET(n)).subscribe(s=>{this.eventBusService.publish(_,s)},s=>{this.handleError(s,r=>{this.fetchSingle(_,n)},r=>{this.eventBusService.publish(this.getErrorKey(_),r)})})}upsert(_,n,s){let r=null==s?B.E.ATTRIBUTES.CREATE():B.E.ATTRIBUTES.UPDATE(s);(null==s?this.http.post(r,n):this.http.patch(r,n)).subscribe(Y=>{this.eventBusService.publish(_,Y)},Y=>{this.handleError(Y,F=>{this.upsert(_,n,s)},F=>{this.eventBusService.publish(this.getErrorKey(_),F)})})}static#e=this.\u0275fac=function(n){return new(n||i)(e.LFG(N.e),e.LFG(C.l),e.LFG(Ye.eN),e.LFG(E.Y))};static#_=this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Qe(i,a){1&i&&e._UZ(0,"util-progress",18),2&i&&e.Q6J("bar",!0)}let Ie=(()=>{class i extends Ce.n{constructor(_,n,s,r,m,Y,F){super(_,n,s,r,F),this.attributeService=m,this.notifier=Y,this.config=ne,this.attributeForm=new G.cw({name:new G.NI("",[G.kI.required,G.kI.minLength(3)]),description:new G.NI("",[G.kI.required,G.kI.minLength(20)]),priority_level:new G.NI(1,[G.kI.min(0),G.kI.max(10)])})}componentName(){return"AttributeUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Attributes",link:"/admin/attributes",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(_){this.loading=!0;let n=this.componentKey(A.Z.ATTRIBUTES.GET(_));this.attributeService.fetchSingle(n,_),this.subscribe(n,null,(s,r)=>{this.loading=!1,this.populateForm(r.data)}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{console.log(r.data),this.loading=!1})}onSubmit(){this.attributeForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return Re.list}upsert(_){this.loading=!0;let n=this.componentKey(A.Z.ATTRIBUTES.UPSERT(_));this.attributeService.upsert(n,this.attributeForm.value,_),this.subscribe(n,null,(s,r)=>{this.loading=!1;let m="Attribute has been "+(_?"updated":"created");this.notifier.success("Success",m),this.attributeForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(r.data):this.navigate(Re.list,Y=>{this.notifier.success("Success!",m)})}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{let m=r.data;this.loading=!1,this.notifier.warning("Failed!",m.error.message)})}populateForm(_){this.attributeForm.controls.name.setValue(_.name),this.attributeForm.controls.description.setValue(_.description),this.attributeForm.controls.priority_level.setValue(_.priority_level)}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(T.gz),e.Y36(Ve),e.Y36(C.l),e.Y36(fe.WI))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute-upsert"]],features:[e.qOj],decls:33,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","title-input",1,"form-label"],[1,"error"],["type","text","id","title-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],["for","description",1,"form-label"],["id","description","placeholder","Enter Description","rows","5","name","description","formControlName","description",1,"form-control"],["type","number","id","priority_level","placeholder","Priority Level","name","priority_level","formControlName","priority_level",1,"form-control"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(n,s){1&n&&(e.YNc(0,Qe,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update Attribute"),e.qZA(),e.TgZ(7,"form",6)(8,"div",7)(9,"label",8),e._uU(10,"Name"),e.TgZ(11,"em",9),e._uU(12,"*"),e.qZA()(),e._UZ(13,"input",10),e.TgZ(14,"em",11),e._uU(15),e.qZA()(),e.TgZ(16,"div",7)(17,"label",12),e._uU(18,"Description"),e.qZA(),e._UZ(19,"textarea",13),e.TgZ(20,"em",11),e._uU(21),e.qZA()(),e.TgZ(22,"div",7)(23,"label",12),e._uU(24,"Priority Level"),e.qZA(),e._UZ(25,"input",14),e.TgZ(26,"em",11),e._uU(27),e.qZA()(),e.TgZ(28,"div",15)(29,"button",16),e.NdJ("click",function(){return s.onCancel()}),e._uU(30," Cancel "),e.qZA(),e.TgZ(31,"button",17),e.NdJ("click",function(){return s.onSubmit()}),e._uU(32," Submit "),e.qZA()()()()()()()),2&n&&(e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("@loaded",!s.loading),e.xp6(6),e.Q6J("formGroup",s.attributeForm),e.xp6(8),e.hij(" ",s.errMsg(s.attributeForm,"name","minLength","Title should be at least 4 characters!")," "),e.xp6(6),e.hij(" ",s.errMsg(s.attributeForm,"description","minLength","Description should be at least 20 characters!")," "),e.xp6(6),e.hij(" ",s.errMsg(s.attributeForm,"priority_level","min","Priority must be between 0 to 10")," "),e.xp6(4),e.Q6J("ngClass",s.attributeForm.valid?"":"disabled"))},dependencies:[d.mk,d.O5,G._Y,G.Fj,G.wV,G.JJ,G.JL,G.sg,G.u,b.t]})}return i})();function we(i,a){1&i&&e._UZ(0,"util-progress",8),2&i&&e.Q6J("bar",!0)}function ke(i,a){1&i&&(e.TgZ(0,"h4",20),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function ze(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"No items"),e.qZA())}function Xe(i,a){if(1&i&&(e.TgZ(0,"div",9)(1,"div",10)(2,"div",0)(3,"div",11)(4,"div",12)(5,"h1",13),e._UZ(6,"i",14),e.qZA(),e.YNc(7,ke,2,0,"h4",15),e.YNc(8,ze,2,0,"h4",16),e.qZA()()(),e.TgZ(9,"div",17)(10,"div",18)(11,"div"),e._UZ(12,"img",19),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function We(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function je(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function He(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function e_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",32)(1,"app-delete",36),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function __(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,He,2,1,"td",7),e.TgZ(4,"td")(5,"a",31),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.TgZ(19,"td",32)(20,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(21,"i",34),e.qZA()(),e.YNc(22,e_,2,1,"td",35),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.description),e.xp6(2),e.Oqu(_.priority_level),e.xp6(3),e.Oqu(e.lcZ(14,8,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function t_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"Attributes that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,We,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Name"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Description"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Priority Level"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Created At"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Last Updated"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Update"),e.qZA(),e.YNc(25,je,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,__,23,12,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.attributes.content)}}function i_(i,a){if(1&i&&(e.TgZ(0,"h6",56),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function n_(i,a){if(1&i&&(e.TgZ(0,"small",57)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function o_(i,a){1&i&&(e.TgZ(0,"small",57),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function s_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",53)(1,"app-delete",58),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function r_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",38)(1,"div",39)(2,"div",26)(3,"div",40)(4,"span",41),e._uU(5),e.qZA()(),e.TgZ(6,"h5",42)(7,"a",43),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,i_,2,1,"h6",44),e.TgZ(10,"div",0)(11,"div",45)(12,"p",46)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",45)(20,"p",47),e.YNc(21,n_,6,3,"small",48),e.YNc(22,o_,6,0,"small",48),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",49)(27,"label",50),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",51)(30,"div",52)(31,"div",53)(32,"a",31),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(33,"i",54),e.qZA()(),e.YNc(34,s_,2,2,"div",55),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(4),e.Oqu(_.priority_level),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function l_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,r_,35,11,"div",37),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.attributes.content)}}function a_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,t_,28,5,"div",22),e.YNc(2,l_,2,3,"div",22),e._UZ(3,"app-pagination",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID),e.xp6(1),e.Q6J("page",_.attributes)}}let c_=(()=>{class i extends ue.R{componentName(){return"AttributeListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.attributeService=F,this.notifier=w,this.config=ne,this.attributes=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.ATTRIBUTES.ATTRIBUTE_ENDPOINT)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchAttributes({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Attributes",link:null,active:!0}]}fetchAttributes(_){this.loading=!0;const n=this.componentKey(A.Z.ATTRIBUTES.SEARCH(_));this.attributeService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.attributes=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Attribute is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Re.create,update:_=>Re.update(_),params:{}}}getUpsertComponent(){return Ie}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Ve),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute-list"]],features:[e.qOj],decls:10,vars:6,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[3,"page"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,we,1,1,"util-progress",5),e.YNc(8,Xe,13,2,"div",6),e.YNc(9,a_,4,3,"div",7)),2&n&&(e.xp6(2),e.Q6J("title","Attributes")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.attributes.empty),e.xp6(1),e.Q6J("ngIf",!s.attributes.empty))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),d_=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-attribute"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-attribute-list")},dependencies:[c_]})}return i})();var ve=o(231),Me=o(4381),u_=o(6501);function E_(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function T_(i,a){1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.TgZ(7,"h4",16),e._uU(8,"No items"),e.qZA()()()(),e.TgZ(9,"div",17)(10,"div",18)(11,"div"),e._UZ(12,"img",19),e.qZA()()()()())}function p_(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function N_(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function S_(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function O_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",29)(1,"app-delete",33),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function m_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,S_,2,1,"td",7),e.TgZ(4,"td")(5,"a",28),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td"),e._uU(8),e.qZA(),e.TgZ(9,"td"),e._uU(10),e.qZA(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.TgZ(19,"td",29)(20,"a",30),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(21,"i",31),e.qZA()(),e.YNc(22,O_,2,1,"td",32),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.code),e.xp6(2),e.Oqu(_.values.join(", ")),e.xp6(3),e.Oqu(e.lcZ(14,8,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function g_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",21)(2,"div",22)(3,"div",23)(4,"p",24),e._uU(5,"FilterableAttributes that I've created"),e.qZA(),e.TgZ(6,"div",25)(7,"table",26)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,p_,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Name"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Description"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Values"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Created At"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Last Updated"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Update"),e.qZA(),e.YNc(25,N_,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,m_,23,12,"tr",27),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.filterableAttributes.content)}}function A_(i,a){if(1&i&&(e.TgZ(0,"h6",53),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function R_(i,a){if(1&i&&(e.TgZ(0,"small",54)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function C_(i,a){1&i&&(e.TgZ(0,"small",54),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function f_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",50)(1,"app-delete",55),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function P_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",35)(1,"div",36)(2,"div",23)(3,"div",37)(4,"span",38),e._uU(5),e.qZA()(),e.TgZ(6,"h5",39)(7,"a",40),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,A_,2,1,"h6",41),e.TgZ(10,"div",0)(11,"div",42)(12,"p",43)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",42)(20,"p",44),e.YNc(21,R_,6,3,"small",45),e.YNc(22,C_,6,0,"small",45),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",46)(27,"label",47),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",48)(30,"div",49)(31,"div",50)(32,"a",28),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(33,"i",51),e.qZA()(),e.YNc(34,f_,2,2,"div",52),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",_.values.join(", ")," "),e.xp6(4),e.Oqu(_.code),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function I_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,P_,35,11,"div",34),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.filterableAttributes.content)}}function v_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,g_,28,5,"div",20),e.YNc(2,I_,2,3,"div",20),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let M_=(()=>{class i extends ue.R{componentName(){return"FilterableAttributeListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.filterableAttributeService=F,this.notifier=w,this.config=ve.I,this.filterableAttributes=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.FILTERABLEATTRIBUTES.FILTERABLEATTRIBUTE_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchFilterableAttributes({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"FilterableAttributes",link:null,active:!0}]}fetchFilterableAttributes(_){this.loading=!0;const n=this.componentKey(A.Z.FILTERABLEATTRIBUTES.SEARCH(_));this.filterableAttributeService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.filterableAttributes=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","FilterableAttribute is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:ve.n.create,update:_=>ve.n.update(_),params:{}}}getUpsertComponent(){return Me.V}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(u_.C),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-filterableattribute-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],[1,"text-uppercase"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,E_,1,1,"util-progress",5),e.YNc(8,T_,13,0,"div",6),e.YNc(9,v_,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","FilterableAttributes")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.filterableAttributes.empty),e.xp6(1),e.Q6J("ngIf",!s.filterableAttributes.empty),e.xp6(1),e.Q6J("page",s.filterableAttributes))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),D_=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-filterableattribute"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-filterableattribute-list")},dependencies:[M_]})}return i})();var De=o(1470),he=o(9107),h_=o(7210);function U_(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function b_(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function L_(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function Z_(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,b_,2,0,"h4",16),e.YNc(8,L_,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function x_(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function B_(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function y_(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function K_(i,a){if(1&i&&(e.TgZ(0,"span",51),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Y_(i,a){if(1&i&&e._UZ(0,"img",52),2&i){const _=e.oxw().$implicit;e.s9C("src",_.image,e.LSH)}}function V_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",47)(1,"app-delete",53),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function F_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,y_,2,1,"td",7),e.TgZ(4,"td")(5,"div",43),e.YNc(6,K_,2,1,"span",44),e.YNc(7,Y_,1,1,"img",45),e.qZA()(),e.TgZ(8,"td")(9,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.TgZ(21,"td",47)(22,"a",48),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(23,"i",49),e.qZA()(),e.YNc(24,V_,2,1,"td",50),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null==_.image),e.xp6(1),e.Q6J("ngIf",null!=_.image),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(n.StringUtil.takeOnly(_.description,50)),e.xp6(3),e.Oqu(e.lcZ(16,9,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,11,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function $_(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,x_,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.YNc(25,B_,2,0,"th",7),e.qZA()(),e.TgZ(26,"tbody"),e.YNc(27,F_,25,13,"tr",40),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(13),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.brands.content)}}function G_(i,a){if(1&i&&(e.TgZ(0,"div",70),e._UZ(1,"img",52),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function q_(i,a){if(1&i&&(e.TgZ(0,"div",71)(1,"span",51),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function J_(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function Q_(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e.SDv(2,74),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function w_(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function k_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",75)(1,"a",46),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",76),e.qZA()()}}function z_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",75)(1,"app-delete",77),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function X_(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",55)(1,"div",56)(2,"div",28),e.YNc(3,G_,2,1,"div",57),e.YNc(4,q_,3,1,"div",58),e.TgZ(5,"h5",59)(6,"a",60),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,J_,2,1,"h6",61),e.TgZ(9,"div",0)(10,"div",62)(11,"p",63)(12,"small")(13,"b"),e.SDv(14,64),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",62)(19,"p",65),e.YNc(20,Q_,6,3,"small",66),e.YNc(21,w_,6,0,"small",66),e.qZA()()(),e.TgZ(22,"p"),e._uU(23),e.qZA()(),e.TgZ(24,"div",67)(25,"div",68),e.YNc(26,k_,3,0,"div",69),e.YNc(27,z_,2,2,"div",69),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(3),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function W_(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,X_,28,12,"div",54),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.brands.content)}}function j_(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,$_,28,5,"div",25),e.YNc(2,W_,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let H_=(()=>{class i extends ue.R{componentName(){return"BrandListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.brandService=F,this.notifier=w,this.config=De.j,this.brands=g.H,r.isAdmin()&&(this.config.showUpdateButton=!0,this.config.showDeleteButton=!0,this.config.searchEndpoint=B.E.BRANDS.BRAND_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchBrands({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Brands,link:null,active:!0}]}fetchBrands(_){this.loading=!0;const n=this.componentKey(A.Z.BRANDS.SEARCH(_));this.brandService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.brands=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Brand is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:De.n.create,update:_=>De.n.update(_),params:{}}}getUpsertComponent(){return he.l}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(h_.c),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-brand-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce;return _="Cooking your data, please wait..",n="No items",s="Available Brands",r="Id",m="Image",Y="Title",F="Description",w="Created At",oe="Last Updated",se="Update",re="Created By",le="Delete",ae="Created At",ce="Updated",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,[4,"ngFor","ngForOf"],re,le,[1,"avatar-sm","mx-auto"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ae,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ce,[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,U_,1,1,"util-progress",5),e.YNc(8,Z_,13,2,"div",6),e.YNc(9,j_,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Brands)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.brands.empty),e.xp6(1),e.Q6J("ngIf",!s.brands.empty),e.xp6(1),e.Q6J("page",s.brands))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),et=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-brand"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-brand-list")},dependencies:[H_]})}return i})();var Ue=o(4968),be=o(2447),_t=o(3668);function tt(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function it(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function nt(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function ot(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,it,2,0,"h4",16),e.YNc(8,nt,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function st(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,40),e.qZA())}function rt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,41),e.qZA())}function lt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,42),e.qZA())}function at(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function ct(i,a){if(1&i&&e._UZ(0,"img",48),2&i){const _=e.oxw().$implicit;e.s9C("src",_.image,e.LSH)}}function dt(i,a){if(1&i&&(e.TgZ(0,"span",49),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function ut(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",50)(1,"a",51),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.onUpsertClick(s.id))}),e._UZ(2,"i",52),e.qZA()()}}function Et(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",50)(1,"app-delete",53),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Tt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,at,2,1,"td",7),e.TgZ(4,"td")(5,"div",43),e.YNc(6,ct,1,1,"img",44),e.YNc(7,dt,2,1,"span",45),e.qZA()(),e.TgZ(8,"td")(9,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td")(14,"small"),e._uU(15),e.ALo(16,"readableDate"),e.qZA()(),e.TgZ(17,"td")(18,"small"),e._uU(19),e.ALo(20,"readableDate"),e.qZA()(),e.YNc(21,ut,3,0,"td",47),e.YNc(22,Et,2,1,"td",47),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null!=_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(n.StringUtil.takeOnly(_.description,50)),e.xp6(3),e.Oqu(e.lcZ(16,10,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(20,12,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function pt(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,st,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.YNc(23,rt,2,0,"th",7),e.YNc(24,lt,2,0,"th",7),e.qZA()(),e.TgZ(25,"tbody"),e.YNc(26,Tt,23,14,"tr",39),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(11),e.Q6J("ngIf",_.config.showUpdateButton),e.xp6(1),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.variations.content)}}function Nt(i,a){if(1&i&&(e.TgZ(0,"div",72),e._UZ(1,"img",48),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.image,e.LSH)}}function St(i,a){if(1&i&&(e.TgZ(0,"div",73)(1,"span",49),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Ot(i,a){if(1&i&&(e.TgZ(0,"h6",74),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function mt(i,a){if(1&i&&(e.TgZ(0,"small",75)(1,"b"),e.SDv(2,76),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function gt(i,a){1&i&&(e.TgZ(0,"small",75),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,77),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function At(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",69)(1,"app-delete",78),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Rt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",55)(1,"div",56)(2,"div",28),e.YNc(3,Nt,2,1,"div",57),e.YNc(4,St,3,1,"div",58),e.TgZ(5,"h5",59)(6,"a",60),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,Ot,2,1,"h6",61),e.TgZ(9,"div",0)(10,"div",62)(11,"p",63)(12,"small")(13,"b"),e.SDv(14,64),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",62)(19,"p",65),e.YNc(20,mt,6,3,"small",66),e.YNc(21,gt,6,0,"small",66),e.qZA()()(),e.TgZ(22,"p"),e._uU(23),e.qZA()(),e.TgZ(24,"div",67)(25,"div",68)(26,"div",69)(27,"a",46),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(28,"i",70),e.qZA()(),e.YNc(29,At,2,2,"div",71),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.image),e.xp6(1),e.Q6J("ngIf",null==_.image),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,9,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.StringUtil.takeOnly(_.description,50,!0)," "),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ct(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Rt,30,11,"div",54),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.variations.content)}}function ft(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,pt,27,6,"div",25),e.YNc(2,Ct,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let Pt=(()=>{class i extends ue.R{componentName(){return"VariationListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.variationService=F,this.notifier=w,this.config=Ue._,this.variations=g.H,r.isAdmin()&&(this.config.showUpdateButton=!0,this.config.showDeleteButton=!0,this.config.searchEndpoint=B.E.VARIATIONS.VARIATION_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchVariations({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Variations,link:null,active:!0}]}fetchVariations(_){this.loading=!0;const n=this.componentKey(A.Z.VARIATIONS.SEARCH(_));this.variationService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.variations=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Variation is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Ue.n.create,update:_=>Ue.n.update(_),params:{}}}getUpsertComponent(){return be.s}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(_t.$),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-variation-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X;return _="Cooking your data, please wait..",n="No items",s="Variations that I've created",r="Id",m="Image",Y="Name",F="Description",w="Created At",oe="Last Updated",se="Created By",re="Update",le="Delete",ae="Created At",ce="Updated",X="Updated",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,[4,"ngFor","ngForOf"],se,re,le,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],ae,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ce,X,[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,tt,1,1,"util-progress",5),e.YNc(8,ot,13,2,"div",6),e.YNc(9,ft,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations.Variations)("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.variations.empty),e.xp6(1),e.Q6J("ngIf",!s.variations.empty),e.xp6(1),e.Q6J("page",s.variations))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),It=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-variation"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-variation-list")},dependencies:[Pt]})}return i})();var Le=o(973),Ze=o(3989),vt=o(1492);function Mt(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Dt(i,a){1&i&&(e.TgZ(0,"h4",21),e.SDv(1,22),e.qZA())}function ht(i,a){1&i&&(e.TgZ(0,"h4",23),e.SDv(1,24),e.qZA())}function Ut(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Dt,2,0,"h4",16),e.YNc(8,ht,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function bt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,43),e.qZA())}function Lt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,44),e.qZA())}function Zt(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,45),e.qZA())}function xt(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.created_by," ")}}function Bt(i,a){if(1&i&&e._UZ(0,"img",56),2&i){const _=e.oxw().$implicit;e.s9C("src",_.images[0],e.LSH)}}function yt(i,a){if(1&i&&(e.TgZ(0,"span",57),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Kt(i,a){1&i&&e._UZ(0,"i",58)}function Yt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"a",61),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(2).$implicit,r=e.oxw(3);return e.KtG(r.onApproveClick(s.id,!s.approved))}),e._UZ(1,"i",62),e.qZA()}}function Vt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"a",63),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(2).$implicit,r=e.oxw(3);return e.KtG(r.onApproveClick(s.id,!s.approved))}),e._UZ(1,"i",62),e.qZA()}}function Ft(i,a){if(1&i&&(e.TgZ(0,"td",53),e.YNc(1,Yt,2,0,"a",59),e.YNc(2,Vt,2,0,"a",60),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",_.approved),e.xp6(1),e.Q6J("ngIf",!_.approved)}}function $t(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",53)(1,"app-delete",64),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Gt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,xt,2,1,"td",7),e.TgZ(4,"td")(5,"div",46),e.YNc(6,Bt,1,1,"img",47),e.YNc(7,yt,2,1,"span",48),e.qZA()(),e.TgZ(8,"td",49),e._uU(9),e.qZA(),e.TgZ(10,"td",49),e.YNc(11,Kt,1,0,"i",50),e.TgZ(12,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(13),e.qZA()(),e.TgZ(14,"td"),e._uU(15),e.qZA(),e.TgZ(16,"td"),e._uU(17),e.qZA(),e.TgZ(18,"td")(19,"small"),e._uU(20),e.ALo(21,"readableDate"),e.qZA()(),e.TgZ(22,"td")(23,"small"),e._uU(24),e.ALo(25,"readableDate"),e.qZA()(),e.YNc(26,Ft,3,2,"td",52),e.TgZ(27,"td",53)(28,"a",54),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(29,"i",55),e.qZA()(),e.YNc(30,$t,2,1,"td",52),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",_.images.length>0),e.xp6(1),e.Q6J("ngIf",0==_.images.length),e.xp6(2),e.Oqu(n.getCategoryNames(_.categories)),e.xp6(2),e.Q6J("ngIf",_.approved),e.xp6(2),e.hij(" ",_.name," "),e.xp6(2),e.Oqu(_.brand.name),e.xp6(2),e.Oqu(_.weight),e.xp6(3),e.Oqu(e.lcZ(21,14,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(25,16,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showApproveButton),e.xp6(2),e.Q6J("ngClass",_.approved?"btn-outline-warning disabled":""),e.xp6(2),e.Q6J("ngIf",n.config.showDeleteButton&&!_.approved)}}function qt(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",26)(2,"div",27)(3,"div",28)(4,"p",29),e.SDv(5,30),e.qZA(),e.TgZ(6,"div",31)(7,"table",32)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,33),e.qZA(),e.YNc(12,bt,2,0,"th",7),e.TgZ(13,"th"),e.SDv(14,34),e.qZA(),e.TgZ(15,"th"),e.SDv(16,35),e.qZA(),e.TgZ(17,"th"),e.SDv(18,36),e.qZA(),e.TgZ(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.TgZ(25,"th"),e.SDv(26,40),e.qZA(),e.YNc(27,Lt,2,0,"th",7),e.TgZ(28,"th"),e.SDv(29,41),e.qZA(),e.YNc(30,Zt,2,0,"th",7),e.qZA()(),e.TgZ(31,"tbody"),e.YNc(32,Gt,31,18,"tr",42),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(15),e.Q6J("ngIf",_.config.showApproveButton),e.xp6(3),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.products.content)}}function Jt(i,a){if(1&i&&(e.TgZ(0,"div",86),e._UZ(1,"img",56),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.images[0],e.LSH)}}function Qt(i,a){if(1&i&&(e.TgZ(0,"div",87)(1,"span",57),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function wt(i,a){if(1&i&&(e.TgZ(0,"h6",88),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function kt(i,a){if(1&i&&(e.TgZ(0,"small",89)(1,"b"),e.SDv(2,90),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function zt(i,a){1&i&&(e.TgZ(0,"small",89),e._UZ(1,"br"),e.TgZ(2,"b"),e.SDv(3,91),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function Xt(i,a){if(1&i&&(e.TgZ(0,"label",92),e._uU(1),e.qZA()),2&i){const _=a.$implicit;e.xp6(1),e.hij(" ",_.name," ")}}function Wt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",83)(1,"app-delete",93),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function jt(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",66)(1,"div",67)(2,"div",28),e.YNc(3,Jt,2,1,"div",68),e.YNc(4,Qt,3,1,"div",69),e.TgZ(5,"h5",70)(6,"a",71),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,wt,2,1,"h6",72),e.TgZ(9,"h6",73),e._uU(10),e.qZA(),e.TgZ(11,"div",0)(12,"div",74)(13,"p",75)(14,"small")(15,"b"),e.SDv(16,76),e.qZA(),e._UZ(17,"br"),e._uU(18),e.ALo(19,"readableDate"),e.qZA()()(),e.TgZ(20,"div",74)(21,"p",77),e.YNc(22,kt,6,3,"small",78),e.YNc(23,zt,6,0,"small",78),e.qZA()()(),e.TgZ(24,"div")(25,"a",79),e.YNc(26,Xt,2,1,"label",80),e.qZA()()(),e.TgZ(27,"div",81)(28,"div",82)(29,"div",83)(30,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(31,"i",84),e.qZA()(),e.YNc(32,Wt,2,2,"div",85),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.images.length>0),e.xp6(1),e.Q6J("ngIf",0==_.images.length),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(2),e.Oqu(_.brand.name),e.xp6(8),e.Oqu(e.lcZ(19,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(3),e.Q6J("ngForOf",_.categories),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ht(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,jt,33,12,"div",65),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.products.content)}}function ei(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,qt,33,6,"div",25),e.YNc(2,Ht,2,3,"div",25),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let _i=(()=>{class i extends ue.R{componentName(){return"ProductListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.productService=F,this.notifier=w,this.config=Le.C,this.filterData=t.M9,this.products=g.H,r.isAdmin()&&(this.config.showApproveButton=!0,this.config.searchEndpoint=B.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_),this.fetchProducts({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Products,link:null,active:!0}]}getCategoryNames(_){return _.map(n=>n.name).join(", ")}fetchProducts(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCTS_V2.SEARCH(_));this.productService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.products=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Product is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Le.n.create,update:_=>Le.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Ze.A}onApproveClick(_,n){let s=this.componentKey(A.Z.PRODUCTS_V2.APPROVE(_));this.productService.approve(s,this.config.searchEndpoint,_,n),this.subscribe(s,null,(r,m)=>{this.notifier.success("Success","Product is approved"),this.ngOnInit()}),this.subscribe(this.getErrorKey(s),null,(r,m)=>{this.notifier.error("Error",m.data.error.message)})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(vt.M),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product-list"]],features:[e.qOj],decls:11,vars:7,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W,ee,te;return _="Cooking your data, please wait..",n="No items",s="Products that I've created",r="Id",m="Image",Y="Category",F="Title",w="Brand",oe="Weight",se="Created At",re="Last Updated",le="Update",ae="Created By",ce="Approve",X="Delete",W="Created At",ee="Updated",te="Updated",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],_,[1,"text-uppercase"],n,["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],s,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],r,m,Y,F,w,oe,se,re,le,[4,"ngFor","ngForOf"],ae,ce,X,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],[1,"text-wrap"],["class","bx bx-check-circle text-success",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-warning","btn-sm","edit",3,"ngClass","click"],[1,"fas","fa-pencil-alt"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"bx","bx-check-circle","text-success"],["class","btn btn-outline-warning btn-sm edit","title","Edit",3,"click",4,"ngIf"],["class","btn btn-outline-success btn-sm edit","title","Edit",3,"click",4,"ngIf"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-check-circle"],["title","Edit",1,"btn","btn-outline-success","btn-sm","edit",3,"click"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"font-size-10","text-primary"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],W,[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-primary font-size-11 m-1",4,"ngFor","ngForOf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],ee,te,[1,"badge","bg-primary","font-size-11","m-1"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,Mt,1,1,"util-progress",5),e.YNc(8,Ut,13,2,"div",6),e.YNc(9,ei,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations["All Products"])("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.products.empty),e.xp6(1),e.Q6J("ngIf",!s.products.empty),e.xp6(1),e.Q6J("page",s.products))},dependencies:[d.mk,d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),ti=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-product-list")},dependencies:[_i]})}return i})(),Fe={defaultLayout:Se.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT,delEndpoint:B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT},Pe={list:"/admin/product-specifications",create:"/admin/product-specifications/create",update(i){return null==i?this.create:"/admin/product-specifications/"+i+"/update"}},$e=(()=>{class i extends H.b{constructor(_,n,s,r){super(_,n),this.http=s,this.eventBusService=r}search(_,n,s){let r=B.E.PRODUCTSPECIFICATIONS.SEARCH(n,s);this.http.get(r).subscribe(m=>{this.eventBusService.publish(_,m)},m=>{this.handleError(m,Y=>{this.search(_,n,s)},Y=>{this.eventBusService.publish(this.getErrorKey(_),Y)})})}fetchSingle(_,n){this.http.get(B.E.PRODUCTSPECIFICATIONS.GET(n)).subscribe(s=>{this.eventBusService.publish(_,s)},s=>{this.handleError(s,r=>{this.fetchSingle(_,n)},r=>{this.eventBusService.publish(this.getErrorKey(_),r)})})}upsert(_,n,s){let r=null==s?B.E.PRODUCTSPECIFICATIONS.CREATE():B.E.PRODUCTSPECIFICATIONS.UPDATE(s);(null==s?this.http.post(r,n):this.http.patch(r,n)).subscribe(Y=>{this.eventBusService.publish(_,Y)},Y=>{this.handleError(Y,F=>{this.upsert(_,n,s)},F=>{this.eventBusService.publish(this.getErrorKey(_),F)})})}static#e=this.\u0275fac=function(n){return new(n||i)(e.LFG(N.e),e.LFG(C.l),e.LFG(Ye.eN),e.LFG(E.Y))};static#_=this.\u0275prov=e.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ii=o(1426),ni=o(756);function oi(i,a){1&i&&e._UZ(0,"util-progress",15),2&i&&e.Q6J("bar",!0)}function si(i,a){if(1&i&&(e.TgZ(0,"option",19),e._uU(1),e.qZA()),2&i){const _=a.$implicit;e.Q6J("value",_),e.xp6(1),e.hij(" ",_," ")}}function ri(i,a){if(1&i&&(e.TgZ(0,"div",7)(1,"label",16)(2,"small"),e._uU(3,"Value"),e.qZA()(),e.TgZ(4,"select",17),e.YNc(5,si,2,2,"option",18),e.qZA()()),2&i){const _=e.oxw();e.xp6(5),e.Q6J("ngForOf",null==_.selectedAttr?null:_.selectedAttr.values)}}let Ge=(()=>{class i extends Ce.n{constructor(_,n,s,r,m,Y,F){super(_,n,s,r,F),this.productSpecificationService=m,this.notifier=Y,this.config=Fe,this.selectedAttr=null,this.selectedProduct=null,this.specificationForm=new G.cw({product_id:new G.NI(null,[G.kI.required]),filterable_attribute_id:new G.NI(null,[G.kI.required]),value:new G.NI(null,[G.kI.required])})}componentName(){return"ProductSpecificationUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"ProductSpecifications",link:"/admin/productspecifications",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(_){this.loading=!0;let n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.GET(_));this.productSpecificationService.fetchSingle(n,_),this.subscribe(n,null,(s,r)=>{this.loading=!1,this.populateForm(r.data)}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{console.log(r.data),this.loading=!1})}onSubmit(){this.specificationForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return Pe.list}upsert(_){this.loading=!0;let n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.UPSERT(_));this.productSpecificationService.upsert(n,this.specificationForm.value,_),this.subscribe(n,null,(s,r)=>{this.loading=!1;let m="ProductSpecification has been "+(_?"updated":"created");this.notifier.success("Success",m),this.specificationForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(r.data):this.navigate(Pe.list,Y=>{this.notifier.success("Success!",m)})}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{let m=r.data;this.loading=!1,this.notifier.warning("Failed!",m.error.message)})}populateForm(_){this.selectedAttr=_.filterable_attribute,this.specificationForm.controls.product_id.setValue(_.product_id),this.specificationForm.controls.filterable_attribute_id.setValue(_.filterable_attribute_id),this.specificationForm.controls.value.setValue(_.value)}onAttrSelected(_){this.selectedAttr=_,this.specificationForm.controls.filterable_attribute_id.setValue(null==_?.id?null:_.id)}onProductSelected(_){this.selectedProduct=_,this.specificationForm.controls.product_id.setValue(null==_?.id?null:_.id)}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(T.gz),e.Y36($e),e.Y36(C.l),e.Y36(fe.WI))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-productspecification-upsert"]],features:[e.qOj],decls:24,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","spec-key"],[3,"selectedItem","selected"],["id","spec-key",3,"selectedItem","selected"],["class","mb-3",4,"ngIf"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],["for","spec-value"],["id","spec-value","aria-label","Value","formControlName","value",1,"form-select"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,s){1&n&&(e.YNc(0,oi,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update ProductSpecification"),e.qZA(),e.TgZ(7,"form",6)(8,"div",7)(9,"label",8)(10,"small"),e._uU(11,"Select Product"),e.qZA()(),e.TgZ(12,"app-product-select",9),e.NdJ("selected",function(m){return s.onProductSelected(m)}),e.qZA()(),e.TgZ(13,"div",7)(14,"label",8)(15,"small"),e._uU(16,"Attribute/Key"),e.qZA()(),e.TgZ(17,"app-fa-select",10),e.NdJ("selected",function(m){return s.onAttrSelected(m)}),e.qZA()(),e.YNc(18,ri,6,1,"div",11),e.TgZ(19,"div",12)(20,"button",13),e.NdJ("click",function(){return s.onCancel()}),e._uU(21," Cancel "),e.qZA(),e.TgZ(22,"button",14),e.NdJ("click",function(){return s.onSubmit()}),e._uU(23," Submit "),e.qZA()()()()()()()),2&n&&(e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("@loaded",!s.loading),e.xp6(6),e.Q6J("formGroup",s.specificationForm),e.xp6(5),e.Q6J("selectedItem",s.selectedProduct),e.xp6(5),e.Q6J("selectedItem",s.selectedAttr),e.xp6(1),e.Q6J("ngIf",null!=s.selectedAttr),e.xp6(4),e.Q6J("ngClass",s.specificationForm.valid?"":"disabled"))},dependencies:[d.mk,d.sg,d.O5,G._Y,G.YN,G.Kr,G.EJ,G.JJ,G.JL,G.sg,G.u,b.t,ii.q,ni.t]})}return i})();function li(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function ai(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function ci(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function di(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,ai,2,0,"h4",16),e.YNc(8,ci,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function ui(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function Ei(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function Ti(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function pi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",34)(1,"app-delete",38),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function Ni(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,Ti,2,1,"td",7),e.TgZ(4,"td")(5,"div",31)(6,"span",32),e._uU(7),e.qZA()()(),e.TgZ(8,"td")(9,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td"),e._uU(12),e.qZA(),e.TgZ(13,"td"),e._uU(14),e.qZA(),e.TgZ(15,"td"),e._uU(16),e.qZA(),e.TgZ(17,"td"),e._uU(18),e.qZA(),e.TgZ(19,"td")(20,"small"),e._uU(21),e.ALo(22,"readableDate"),e.qZA()(),e.TgZ(23,"td")(24,"small"),e._uU(25),e.ALo(26,"readableDate"),e.qZA()(),e.TgZ(27,"td",34)(28,"a",35),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(29,"i",36),e.qZA()(),e.YNc(30,pi,2,1,"td",37),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(4),e.hij(" ",_.filterable_attribute.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.product_id," "),e.xp6(2),e.Oqu(_.filterable_attribute.name),e.xp6(2),e.Oqu(_.filterable_attribute.code),e.xp6(2),e.Oqu(_.filterable_attribute.values.join(",")),e.xp6(2),e.Oqu(_.value),e.xp6(3),e.Oqu(e.lcZ(22,11,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(26,13,_.updated_at)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function Si(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"ProductSpecifications that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,ui,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Image"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Product ID"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Attribute"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Attribute Code"),e.qZA(),e.TgZ(21,"th"),e._uU(22,"Attribute Values"),e.qZA(),e.TgZ(23,"th"),e._uU(24,"Spec. Value"),e.qZA(),e.TgZ(25,"th"),e._uU(26,"Created At"),e.qZA(),e.TgZ(27,"th"),e._uU(28,"Last Updated"),e.qZA(),e.TgZ(29,"th"),e._uU(30,"Update"),e.qZA(),e.YNc(31,Ei,2,0,"th",7),e.qZA()(),e.TgZ(32,"tbody"),e.YNc(33,Ni,31,15,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(19),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.productSpecifications.content)}}function Oi(i,a){if(1&i&&(e.TgZ(0,"h6",59),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" By ",_.created_by,"")}}function mi(i,a){if(1&i&&(e.TgZ(0,"small",60)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function gi(i,a){1&i&&(e.TgZ(0,"small",60),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function Ai(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",54)(1,"app-delete",61),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}const Ri=function(i){return["/admin/inventory/products",i,"update"]};function Ci(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",40)(1,"div",41)(2,"div",26)(3,"div",42)(4,"span",32),e._uU(5),e.qZA()(),e.TgZ(6,"h5",43)(7,"a",44),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(8),e.qZA()(),e.YNc(9,Oi,2,1,"h6",45),e.TgZ(10,"div",0)(11,"div",46)(12,"p",47)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",46)(20,"p",48),e.YNc(21,mi,6,3,"small",49),e.YNc(22,gi,6,0,"small",49),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",50)(27,"label",51),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",52)(30,"div",53)(31,"div",54)(32,"a",55),e._UZ(33,"i",56),e.qZA()(),e.TgZ(34,"div",54)(35,"a",33),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(36,"i",57),e.qZA()(),e.YNc(37,Ai,2,2,"div",58),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(5),e.hij(" ",_.filterable_attribute.name.substring(0,1).toUpperCase()," "),e.xp6(3),e.hij(" ",_.filterable_attribute.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(18,10,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",_.filterable_attribute.values.join(",")," "),e.xp6(4),e.hij(" ",_.value," "),e.xp6(4),e.Q6J("routerLink",e.VKq(12,Ri,_.product_id)),e.xp6(5),e.Q6J("ngIf",n.config.showDeleteButton)}}function fi(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Ci,38,14,"div",39),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.productSpecifications.content)}}function Pi(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,Si,34,5,"div",23),e.YNc(2,fi,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let qe=(()=>{class i extends ue.R{componentName(){return"ProductSpecificationListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.productSpecificationService=F,this.notifier=w,this.config=Fe,this.productSpecifications=g.H,r.isAdmin()&&(this.config.searchEndpoint=B.E.PRODUCTSPECIFICATIONS.PRODUCTSPECIFICATION_ENDPOINT_ADMIN)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{let n=(0,t.OP)(_);this.fetchProductSpecifications({q:n.query,username:n.username,from_date:n.fromDate,to_date:n.toDate,page:n.page,size:n.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"ProductSpecifications",link:null,active:!0}]}fetchProductSpecifications(_){this.loading=!0;const n=this.componentKey(A.Z.PRODUCTSPECIFICATIONS.SEARCH(_));this.productSpecificationService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.productSpecifications=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","ProductSpecification is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:Pe.create,update:_=>Pe.update(_),params:{}}}getUpsertComponent(){return Ge}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36($e),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-productspecification-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],["href","javascript: void(0);",3,"click"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-primary","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],["href","javascript: void(0);",3,"routerLink"],[1,"bx","bxl-product-hunt","text-primary"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"font-size-10","text-info"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,li,1,1,"util-progress",5),e.YNc(8,di,13,2,"div",6),e.YNc(9,Pi,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","ProductSpecifications")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.productSpecifications.empty),e.xp6(1),e.Q6J("ngIf",!s.productSpecifications.empty),e.xp6(1),e.Q6J("page",s.productSpecifications))},dependencies:[d.sg,d.O5,T.rH,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})(),Ii=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-product-specification"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-productspecification-list")},dependencies:[qe]})}return i})();var xe=o(337),Be=o(9876),vi=o(8174),Mi=o(52),Di=o(5789),Je=o(7405);function hi(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function Ui(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function bi(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function Li(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,Ui,2,0,"h4",16),e.YNc(8,bi,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function Zi(i,a){1&i&&(e.TgZ(0,"th"),e.SDv(1,47),e.qZA())}function xi(i,a){if(1&i&&e._UZ(0,"img",67),2&i){const _=e.oxw().$implicit;e.s9C("src",_.product.images[0],e.LSH)}}function Bi(i,a){if(1&i&&(e.TgZ(0,"span",68),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.product.name.substring(0,1).toUpperCase()," ")}}function yi(i,a){if(1&i&&(e.TgZ(0,"span"),e._uU(1," | "),e.TgZ(2,"strong"),e._uU(3),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(3),e.Oqu(_.variation.name)}}function Ki(i,a){if(1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"i"),e._uU(3),e.ALo(4,"readableDate"),e.qZA()()),2&i){const _=e.oxw(2).$implicit;e.xp6(3),e.hij("Until: ",e.lcZ(4,1,_.discount_valid_until),"")}}function Yi(i,a){if(1&i&&(e.TgZ(0,"div")(1,"small",21),e._uU(2),e.qZA(),e._UZ(3,"br"),e.TgZ(4,"strong",69)(5,"strong",61),e.SDv(6,70),e.qZA(),e._uU(7),e.ALo(8,"number"),e.qZA(),e.TgZ(9,"sub",71),e._uU(10),e.ALo(11,"number"),e.qZA(),e.YNc(12,Ki,5,3,"small",72),e.qZA()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(2),e.hij("- ",_.discount_percentage,"%"),e.xp6(5),e.hij(" ",e.xi3(8,4,n.getDiscountedRetailPrice(_),"1.2-2"),"\xa0\xa0 "),e.xp6(3),e.hij("",e.xi3(11,7,_.retail_price,"1.2-2")," "),e.xp6(2),e.Q6J("ngIf",_.discount_valid_until)}}function Vi(i,a){if(1&i&&(e.TgZ(0,"span",60)(1,"strong"),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.Oqu(e.xi3(3,1,_.retail_price,"1.2-2"))}}function Fi(i,a){if(1&i&&(e.TgZ(0,"span",74)(1,"strong",61),e.SDv(2,75),e.qZA(),e.TgZ(3,"strong"),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(4),e.Oqu(e.xi3(5,1,n.getDiscountedRetailPrice(_)-_.avg_unit_price,"1.2-2"))}}function $i(i,a){if(1&i&&(e.TgZ(0,"span",76)(1,"strong",61),e.SDv(2,77),e.qZA(),e.TgZ(3,"strong"),e._uU(4),e.ALo(5,"number"),e.qZA()()),2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(4),e.Oqu(e.xi3(5,1,n.getDiscountedRetailPrice(_)-_.avg_unit_price,"1.2-2"))}}function Gi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",78)(1,"app-delete",79),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function qi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.TgZ(3,"td")(4,"div",48),e.YNc(5,xi,1,1,"img",49),e.YNc(6,Bi,2,1,"span",50),e.qZA()(),e.TgZ(7,"td")(8,"small"),e._uU(9),e.qZA(),e._UZ(10,"br"),e.TgZ(11,"a",51),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onCopyClick(r.sku))}),e.TgZ(12,"span"),e.SDv(13,52),e.qZA()()(),e.TgZ(14,"td",53),e._uU(15),e.YNc(16,yi,4,1,"span",7),e._UZ(17,"br"),e.TgZ(18,"span",54),e._uU(19),e.qZA(),e._UZ(20,"br"),e.TgZ(21,"span",55),e._uU(22),e.qZA()(),e.TgZ(23,"td",56)(24,"button",57),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e.TgZ(25,"span",58)(26,"strong"),e._uU(27),e.qZA()(),e._UZ(28,"i",59),e.qZA()(),e.TgZ(29,"td")(30,"span",60)(31,"strong",61),e.SDv(32,62),e.qZA(),e.TgZ(33,"strong"),e._uU(34),e.ALo(35,"number"),e.qZA()()(),e.TgZ(36,"td"),e.YNc(37,Yi,13,10,"div",7),e.YNc(38,Vi,4,4,"span",63),e.qZA(),e.TgZ(39,"td"),e.YNc(40,Fi,6,4,"span",64),e.YNc(41,$i,6,4,"span",65),e.qZA(),e.TgZ(42,"td")(43,"small"),e._uU(44),e.ALo(45,"readableDate"),e.qZA()(),e.YNc(46,Gi,2,1,"td",66),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(3),e.Q6J("ngIf",_.product.images.length>0),e.xp6(1),e.Q6J("ngIf",0===_.product.images.length),e.xp6(3),e.Oqu(_.sku),e.xp6(6),e.hij(" ",_.product.name," "),e.xp6(1),e.Q6J("ngIf",_.variation),e.xp6(3),e.Oqu(_.brand.name),e.xp6(3),e.hij(" ",n.categoriesToString(_.product.categories)," "),e.xp6(3),e.Q6J("ngClass",_.quantity>0?"text-success":"text-danger"),e.xp6(2),e.Oqu(_.quantity),e.xp6(7),e.Oqu(e.xi3(35,17,_.avg_unit_price,"1.2-2")),e.xp6(3),e.Q6J("ngIf",n.getDiscount(_)>0),e.xp6(1),e.Q6J("ngIf",n.getDiscount(_)<=0),e.xp6(2),e.Q6J("ngIf",_.retail_price<_.avg_unit_price),e.xp6(1),e.Q6J("ngIf",_.retail_price>=_.avg_unit_price),e.xp6(3),e.Oqu(e.lcZ(45,20,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showDeleteButton)}}const Ji=function(){return["/admin/sales/orders"]},Qi=function(){return["/admin/sales/orders/create"]};function wi(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"div",27)(5,"button",28),e._UZ(6,"i",29),e.TgZ(7,"span"),e.SDv(8,30),e.qZA()(),e.TgZ(9,"button",31),e._UZ(10,"i",32),e.TgZ(11,"span"),e.SDv(12,33),e.qZA()()(),e.TgZ(13,"p",34),e._uU(14,"Stocks that I've created"),e.qZA(),e.TgZ(15,"div",35)(16,"table",36)(17,"thead")(18,"tr")(19,"th"),e.SDv(20,37),e.qZA(),e.TgZ(21,"th"),e.SDv(22,38),e.qZA(),e.TgZ(23,"th"),e.SDv(24,39),e.qZA(),e.TgZ(25,"th"),e.SDv(26,40),e.qZA(),e.TgZ(27,"th"),e.SDv(28,41),e.qZA(),e.TgZ(29,"th"),e.SDv(30,42),e.qZA(),e.TgZ(31,"th"),e.SDv(32,43),e.qZA(),e.TgZ(33,"th"),e.tHW(34,44),e._UZ(35,"br"),e.N_p(),e.qZA(),e.TgZ(36,"th"),e.SDv(37,45),e.qZA(),e.YNc(38,Zi,2,0,"th",7),e.qZA()(),e.TgZ(39,"tbody"),e.YNc(40,qi,47,22,"tr",46),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(5),e.Q6J("routerLink",e.DdM(6,Ji)),e.xp6(4),e.Q6J("routerLink",e.DdM(7,Qi)),e.xp6(29),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.stocks.content)}}function ki(i,a){if(1&i&&(e.TgZ(0,"div",100),e._UZ(1,"img",67),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.product.images[0],e.LSH)}}function zi(i,a){if(1&i&&(e.TgZ(0,"div",101)(1,"span",68),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.product.name.substring(0,1).toUpperCase()," ")}}function Xi(i,a){if(1&i&&(e.TgZ(0,"small",102)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function Wi(i,a){1&i&&(e.TgZ(0,"small",102),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function ji(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",96)(1,"app-delete",103),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function Hi(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",81)(1,"div",82)(2,"div",26),e.YNc(3,ki,2,1,"div",83),e.YNc(4,zi,3,1,"div",84),e.TgZ(5,"h5",85)(6,"a",86),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.TgZ(8,"h6",87),e._uU(9),e.qZA(),e.TgZ(10,"div",0)(11,"div",88)(12,"p",89)(13,"small")(14,"b"),e._uU(15,"Created"),e.qZA(),e._UZ(16,"br"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()()(),e.TgZ(19,"div",88)(20,"p",90),e.YNc(21,Xi,6,3,"small",91),e.YNc(22,Wi,6,0,"small",91),e.qZA()()(),e.TgZ(23,"p"),e._uU(24),e.qZA(),e.TgZ(25,"div")(26,"a",92)(27,"label",93),e._uU(28),e.qZA()()()(),e.TgZ(29,"div",94)(30,"div",95)(31,"div",96)(32,"a",97),e.NdJ("click",function(){e.CHM(_);const s=e.oxw(3);return e.KtG(s.onUpsertClick(null))}),e._UZ(33,"i",98),e.qZA()(),e.YNc(34,ji,2,2,"div",99),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.product.images.length>0),e.xp6(1),e.Q6J("ngIf",0===_.product.images.length),e.xp6(3),e.hij(" ",_.product.name,""),e.xp6(2),e.hij(" ",_.brand.name," "),e.xp6(8),e.Oqu(e.lcZ(18,10,_.updated_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(2),e.hij(" ",n.categoriesToString(_.product.categories)," "),e.xp6(4),e.Oqu(_.quantity),e.xp6(6),e.Q6J("ngIf",n.config.showDeleteButton)}}function en(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,Hi,35,12,"div",80),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.stocks.content)}}function _n(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,wi,41,8,"div",23),e.YNc(2,en,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let tn=(()=>{class i extends Mi.F{componentName(){return"StockListComponent"}constructor(_,n,s,r,m,Y,F,w,oe,se){super(_,n,s,m),this.activatedRoute=Y,this.stockService=F,this.vendorService=w,this.notifier=oe,this.locale=se,this.config=xe.u,this.filterData=t.M9,this.stocks=g.H,this.extraFields=[{name:"vendor_id",type:"dropdown",placeholder:"Select Store",label:"Store",value:null,options:[]}],r.isAdmin()&&(this.config.searchEndpoint=B.E.STOCKS.STOCK_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_);let n=this.filterData.extra.vendor_id;this.fetchMyVendors({},s=>{}),this.fetchStocks({vendor_id:n,q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:this.translations.Stocks,link:null,active:!0}]}fetchStocks(_){this.loading=!0;const n=this.componentKey(A.Z.STOCKS.SEARCH(_));this.stockService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.stocks=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Stock is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:xe.n.create,update:_=>xe.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Be.X}onCopyClick(_){vi.g.copyToClipboard(_),this.notifier.info("Copied","SKU has been copied to clipboard")}getDiscountedRetailPrice(_){return _.retail_price-this.getDiscount(_)}getDiscount(_){return null==_.discount_valid_until||new Date(_.discount_valid_until).getTime()>(new Date).getTime()?_.retail_price*(_.discount_percentage/100):0}categoriesToString(_){return _.map(n=>n.name).join(", ")}fetchMyVendors(_={},n){let s=this.componentKey(A.Z.VENDORS.MY_VENDORS(_));this.vendorService.myVendors(s,this.config.vendorEndpoint,_),this.subscribe(s,null,(r,m)=>{this.extraFields=[{name:"vendor_id",type:"dropdown",label:"Vendor",placeholder:"Select Store",value:null,options:m.data.map(F=>({label:F.name,value:F.id}))}]})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Di.q),e.Y36(Je.n),e.Y36(C.l),e.Y36(e.soG))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-stock-list"]],features:[e.qOj],decls:11,vars:9,consts:function(){let _,n,s,r,m,Y,F,w,oe,se,re,le,ae,ce,X,W,ee;return _="Orders",n="Sell",s="Id",r="Image",m="SKU",Y="Product Name",F="Quantity",w="Avg Unit Price",oe="Retail Price",se="Profit Per Sale / " + "\ufffd#35\ufffd\ufffd/#35\ufffd" + "Loss per sale",re="Last Updated",le="Delete",ae="Copy",ce="$",X="$",W="$",ee="$",[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addBtnText","extraFields","addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"d-flex","flex-wrap","gap-3","mb-3","float-end"],[1,"btn","btn-outline-primary","waves-effect","font-size-16",3,"routerLink"],[1,"mdi","mdi-truck-delivery","me-2"],_,["type","submit",1,"btn","btn-primary","px-5","waves-effect","waves-light","font-size-16",3,"routerLink"],[1,"mdi","mdi-sale","me-2"],n,[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],s,r,m,Y,F,w,oe,se,re,[4,"ngFor","ngForOf"],le,[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",1,"font-size-10",3,"click"],ae,[1,"text-wrap"],[1,"badge","bg-info","font-size-10","m-1"],[1,"badge","text-info","font-size-10","m-1"],[1,"align-content-center"],[1,"btn","btn-outline-success",3,"click"],[1,"badge","font-size-16",3,"ngClass"],[1,"mdi","mdi-plus-circle","font-size-16"],[1,"badge","text-info","font-size-16"],[1,"me-1"],ce,["class","badge text-info font-size-16",4,"ngIf"],["class","badge text-danger font-size-16",4,"ngIf"],["class","badge text-success font-size-16",4,"ngIf"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[1,"text-warning","font-size-16"],X,[1,"text-primary","text-decoration-line-through"],["class","font-size-10 mt-3",4,"ngIf"],[1,"font-size-10","mt-3"],[1,"badge","text-danger","font-size-16"],W,[1,"badge","text-success","font-size-16"],ee,[2,"width","100px"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],[1,"badge","badge-soft-primary","font-size-10","text-info"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],[1,"badge","bg-success","font-size-11","m-1"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],["href","javascript: void(0);",3,"click"],[1,"bx","bx-plus-circle","text-success"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10"],[3,"requestUrl","look","deleteItemEvent"]]},template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,hi,1,1,"util-progress",5),e.YNc(8,Li,13,2,"div",6),e.YNc(9,_n,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title",s.translations["Products in Stock"])("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(4),e.Q6J("addBtnText","+ Add Product")("extraFields",s.extraFields),e.xp6(1),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.stocks.empty),e.xp6(1),e.Q6J("ngIf",!s.stocks.empty),e.xp6(1),e.Q6J("page",s.stocks))},dependencies:[d.mk,d.sg,d.O5,T.rH,b.t,y.Q,h.D,M.T,f.L,d.JJ,P.G]})}return i})(),nn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-stock"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-stock-list")},dependencies:[tn]})}return i})();var ye=o(5734),Ke=o(1364);function on(i,a){1&i&&e._UZ(0,"util-progress",9),2&i&&e.Q6J("bar",!0)}function sn(i,a){1&i&&(e.TgZ(0,"h4",21),e._uU(1,"Cooking your data, please wait.."),e.qZA())}function rn(i,a){1&i&&(e.TgZ(0,"h4",22),e._uU(1,"No items"),e.qZA())}function ln(i,a){if(1&i&&(e.TgZ(0,"div",10)(1,"div",11)(2,"div",0)(3,"div",12)(4,"div",13)(5,"h1",14),e._UZ(6,"i",15),e.qZA(),e.YNc(7,sn,2,0,"h4",16),e.YNc(8,rn,2,0,"h4",17),e.qZA()()(),e.TgZ(9,"div",18)(10,"div",19)(11,"div"),e._UZ(12,"img",20),e.qZA()()()()()),2&i){const _=e.oxw();e.xp6(7),e.Q6J("ngIf",_.loading),e.xp6(1),e.Q6J("ngIf",!_.loading)}}function an(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Created By"),e.qZA())}function cn(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Approval"),e.qZA())}function dn(i,a){1&i&&(e.TgZ(0,"th"),e._uU(1,"Delete"),e.qZA())}function un(i,a){if(1&i&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.Oqu(_.created_by)}}function En(i,a){if(1&i&&e._UZ(0,"img",40),2&i){const _=e.oxw().$implicit;e.s9C("src",_.logo,e.LSH)}}function Tn(i,a){if(1&i&&(e.TgZ(0,"span",41),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function pn(i,a){1&i&&(e.TgZ(0,"a",45),e._UZ(1,"i",46),e.qZA())}function Nn(i,a){1&i&&(e.TgZ(0,"a",47),e._UZ(1,"i",48),e.qZA())}function Sn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",42),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.toggleApproval(s.id,!s.approved))}),e.YNc(1,pn,2,0,"a",43),e.YNc(2,Nn,2,0,"a",44),e.qZA()}if(2&i){const _=e.oxw().$implicit;e.xp6(1),e.Q6J("ngIf",!_.approved),e.xp6(1),e.Q6J("ngIf",_.approved)}}function On(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"td",36)(1,"app-delete",49),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)}}function mn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,un,2,1,"td",7),e.TgZ(4,"td")(5,"div",31),e.YNc(6,En,1,1,"img",32),e.YNc(7,Tn,2,1,"span",33),e.qZA()(),e.TgZ(8,"td")(9,"a",34),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(10),e.qZA()(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td")(16,"small"),e._uU(17),e.ALo(18,"readableDate"),e.qZA()(),e.YNc(19,Sn,3,2,"td",35),e.TgZ(20,"td",36)(21,"a",37),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(22,"i",38),e.qZA()(),e.YNc(23,On,2,1,"td",39),e.qZA()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(2),e.Oqu(_.id),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter),e.xp6(3),e.Q6J("ngIf",null!=_.logo),e.xp6(1),e.Q6J("ngIf",null==_.logo),e.xp6(3),e.hij(" ",_.name," "),e.xp6(3),e.Oqu(e.lcZ(14,9,_.created_at)),e.xp6(4),e.Oqu(e.lcZ(18,11,_.updated_at)),e.xp6(2),e.Q6J("ngIf",n.config.showApprovalButton),e.xp6(4),e.Q6J("ngIf",n.config.showDeleteButton)}}function gn(i,a){if(1&i&&(e.TgZ(0,"div",0)(1,"div",24)(2,"div",25)(3,"div",26)(4,"p",27),e._uU(5,"Vendors that I've created"),e.qZA(),e.TgZ(6,"div",28)(7,"table",29)(8,"thead")(9,"tr")(10,"th"),e._uU(11,"Id"),e.qZA(),e.YNc(12,an,2,0,"th",7),e.TgZ(13,"th"),e._uU(14,"Image"),e.qZA(),e.TgZ(15,"th"),e._uU(16,"Title"),e.qZA(),e.TgZ(17,"th"),e._uU(18,"Created At"),e.qZA(),e.TgZ(19,"th"),e._uU(20,"Last Updated"),e.qZA(),e.YNc(21,cn,2,0,"th",7),e.TgZ(22,"th"),e._uU(23,"Update"),e.qZA(),e.YNc(24,dn,2,0,"th",7),e.qZA()(),e.TgZ(25,"tbody"),e.YNc(26,mn,24,13,"tr",30),e.qZA()()()()()()()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onColumn",_.layout==_.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",_.config.showUserFilter),e.xp6(9),e.Q6J("ngIf",_.config.showApprovalButton),e.xp6(3),e.Q6J("ngIf",_.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",_.vendors.content)}}function An(i,a){if(1&i&&(e.TgZ(0,"div",70),e._UZ(1,"img",40),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.s9C("src",_.logo,e.LSH)}}function Rn(i,a){if(1&i&&(e.TgZ(0,"div",71)(1,"span",41),e._uU(2),e.qZA()()),2&i){const _=e.oxw().$implicit;e.xp6(2),e.hij(" ",_.name.substring(0,1).toUpperCase()," ")}}function Cn(i,a){if(1&i&&(e.TgZ(0,"h6",72),e._uU(1),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(1),e.hij("By ",_.created_by,"")}}function fn(i,a){if(1&i&&(e.TgZ(0,"small",73)(1,"b"),e._uU(2,"Updated"),e.qZA(),e._UZ(3,"br"),e._uU(4),e.ALo(5,"readableDate"),e.qZA()),2&i){const _=e.oxw().$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,1,_.updated_at)," ")}}function Pn(i,a){1&i&&(e.TgZ(0,"small",73),e._UZ(1,"br"),e.TgZ(2,"b"),e._uU(3,"Updated"),e.qZA(),e._UZ(4,"br"),e._uU(5,"Nil"),e.qZA())}function In(i,a){1&i&&(e.TgZ(0,"label",74),e._uU(1,"Approved"),e.qZA())}function vn(i,a){1&i&&(e.TgZ(0,"label",75),e._uU(1,"Not Approved"),e.qZA())}function Mn(i,a){1&i&&e._UZ(0,"i",78)}function Dn(i,a){1&i&&e._UZ(0,"i",79)}function hn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",67)(1,"a",34),e.NdJ("click",function(){e.CHM(_);const s=e.oxw().$implicit,r=e.oxw(3);return e.KtG(r.toggleApproval(s.id,!s.approved))}),e.YNc(2,Mn,1,0,"i",76),e.YNc(3,Dn,1,0,"i",77),e.qZA()()}if(2&i){const _=e.oxw().$implicit;e.xp6(2),e.Q6J("ngIf",!_.approved),e.xp6(1),e.Q6J("ngIf",_.approved)}}function Un(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",67)(1,"app-delete",80),e.NdJ("deleteItemEvent",function(s){e.CHM(_);const r=e.oxw(4);return e.KtG(r.onDeleted(s))}),e.qZA()()}if(2&i){const _=e.oxw().$implicit,n=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",n.config.delEndpoint+"/"+_.id)("look","bx")}}function bn(i,a){if(1&i){const _=e.EpF();e.TgZ(0,"div",51)(1,"div",52)(2,"div",26),e.YNc(3,An,2,1,"div",53),e.YNc(4,Rn,3,1,"div",54),e.TgZ(5,"h5",55)(6,"a",56),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._uU(7),e.qZA()(),e.YNc(8,Cn,2,1,"h6",57),e.TgZ(9,"div",0)(10,"div",58)(11,"p",59)(12,"small")(13,"b"),e._uU(14,"Created"),e.qZA(),e._UZ(15,"br"),e._uU(16),e.ALo(17,"readableDate"),e.qZA()()(),e.TgZ(18,"div",58)(19,"p",60),e.YNc(20,fn,6,3,"small",61),e.YNc(21,Pn,6,0,"small",61),e.qZA()()(),e.TgZ(22,"div")(23,"a",62),e.YNc(24,In,2,0,"label",63),e.YNc(25,vn,2,0,"label",64),e.qZA()()(),e.TgZ(26,"div",65)(27,"div",66)(28,"div",67)(29,"a",34),e.NdJ("click",function(){const r=e.CHM(_).$implicit,m=e.oxw(3);return e.KtG(m.onUpsertClick(r.id))}),e._UZ(30,"i",68),e.qZA()(),e.YNc(31,hn,4,2,"div",69),e.YNc(32,Un,2,2,"div",69),e.qZA()()()()}if(2&i){const _=a.$implicit,n=e.oxw(3);e.xp6(3),e.Q6J("ngIf",_.logo),e.xp6(1),e.Q6J("ngIf",null==_.logo),e.xp6(3),e.hij(" ",_.name,""),e.xp6(1),e.Q6J("ngIf",n.config.showUserFilter&&_.created_by),e.xp6(8),e.Oqu(e.lcZ(17,11,_.created_at)),e.xp6(4),e.Q6J("ngIf",_.updated_at),e.xp6(1),e.Q6J("ngIf",!_.updated_at),e.xp6(3),e.Q6J("ngIf",_.approved),e.xp6(1),e.Q6J("ngIf",!_.approved),e.xp6(6),e.Q6J("ngIf",n.config.showApprovalButton),e.xp6(1),e.Q6J("ngIf",n.config.showDeleteButton)}}function Ln(i,a){if(1&i&&(e.TgZ(0,"div",0),e.YNc(1,bn,33,13,"div",50),e.qZA()),2&i){const _=e.oxw(2);e.Q6J("@dataLoaded",_.loading?"loading":"loaded")("@onGrid",_.layout==_.Layout.GRID),e.xp6(1),e.Q6J("ngForOf",_.vendors.content)}}function Zn(i,a){if(1&i&&(e.TgZ(0,"div"),e.YNc(1,gn,27,6,"div",23),e.YNc(2,Ln,2,3,"div",23),e.qZA()),2&i){const _=e.oxw();e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",_.layout===_.Layout.GRID)}}let xn=(()=>{class i extends ue.R{componentName(){return"VendorListComponent"}constructor(_,n,s,r,m,Y,F,w){super(_,n,s,m),this.activatedRoute=Y,this.vendorService=F,this.notifier=w,this.config=ye.j,this.filterData=t.M9,this.vendors=g.H,r.isAdmin()&&(this.config.showApprovalButton=!0,this.config.searchEndpoint=B.E.VENDORS.VENDOR_ENDPOINT_ADMIN_V2)}initialize(){this.activatedRoute.queryParams.subscribe(_=>{this.filterData=(0,t.OP)(_),this.fetchVendors({q:this.filterData.query,username:this.filterData.username,from_date:this.filterData.fromDate,to_date:this.filterData.toDate,page:this.filterData.page,size:this.filterData.size})})}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Vendors",link:null,active:!0}]}fetchVendors(_){this.loading=!0;const n=this.componentKey(A.Z.VENDORS.SEARCH(_));this.vendorService.search(n,this.config.searchEndpoint,_),this.subscribe(n,null,(s,r)=>{this.vendors=r.data,this.loading=!1}),this.subscribe(this.getErrorKey(n),null,(s,r)=>{this.notifier.error("Error",r.data.error.message)})}onDeleted(_){_&&(this.notifier.success("Success","Vendor is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:ye.n.create,update:_=>ye.n.update(_),params:(0,t.oZ)(this.filterData)}}getUpsertComponent(){return Ke.Z}toggleApproval(_,n){this.loading=!0;const s=this.componentKey(A.Z.VENDORS.TOGGLE_APPROVAL(_));this.vendorService.toggleApproval(s,_,n),this.subscribe(s,null,(r,m)=>{this.loading=!1,this.notifier.success("Success","Vendor is "+(n?"approved":"disapproved")),this.ngOnInit()}),this.subscribe(this.getErrorKey(s),null,(r,m)=>{this.notifier.error("Error",m.data.error.message)})}static#e=this.\u0275fac=function(n){return new(n||i)(e.Y36(E.Y),e.Y36(T.F0),e.Y36(u.z),e.Y36(N.e),e.Y36(S.x),e.Y36(T.gz),e.Y36(Je.n),e.Y36(C.l))};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-vendor-list"]],features:[e.qOj],decls:11,vars:7,consts:[[1,"row"],[1,"col-sm-12"],[3,"title","layout","breadcrumbItems","layoutSelected"],[1,"card","card-body"],[3,"addButtonClick"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page"],[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],[1,"text-uppercase"],["class","row",4,"ngIf"],[1,"col-12"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],[4,"ngFor","ngForOf"],[1,"avatar-sm","mx-auto"],["class","rounded-circle avatar-sm object-fit-cover","alt","",3,"src",4,"ngIf"],["class","avatar-title rounded-circle bg-primary-subtle text-primary font-size-16",4,"ngIf"],["href","javascript: void(0);",3,"click"],["style","width: 100px",3,"click",4,"ngIf"],[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],["alt","",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"avatar-title","rounded-circle","bg-primary-subtle","text-primary","font-size-16"],[2,"width","100px",3,"click"],["class","btn btn-outline-success btn-sm edit","title","Edit",4,"ngIf"],["class","btn btn-outline-danger btn-sm edit","title","Edit",4,"ngIf"],["title","Edit",1,"btn","btn-outline-success","btn-sm","edit"],[1,"fas","fa-check"],["title","Edit",1,"btn","btn-outline-danger","btn-sm","edit"],[1,"fas","fa-heart-broken"],[3,"requestUrl","deleteItemEvent"],["class","col-xxl-2 col-xl-3 col-sm-4",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4"],[1,"card","text-center"],["class","mb-4",4,"ngIf"],["class","avatar-sm mx-auto mb-4",4,"ngIf"],[1,"font-size-15","mb-1"],["href","javascript: void(0);",1,"text-dark",3,"click"],["class","font-size-10 text-info",4,"ngIf"],[1,"col-6","col-sm-6"],[1,"text-muted","text-end"],[1,"text-muted","text-start"],["class","font-size-10",4,"ngIf"],["href","javascript: void(0);"],["class","badge bg-success font-size-11 m-1",4,"ngIf"],["class","badge bg-warning font-size-11 m-1",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-edit","text-primary"],["class","flex-fill",4,"ngIf"],[1,"mb-4"],[1,"avatar-sm","mx-auto","mb-4"],[1,"font-size-10","text-info"],[1,"font-size-10"],[1,"badge","bg-success","font-size-11","m-1"],[1,"badge","bg-warning","font-size-11","m-1"],["title","Approve","class","bx bx-check-circle text-success",4,"ngIf"],["title","Unapprove","class","bx bx-x-circle text-warning",4,"ngIf"],["title","Approve",1,"bx","bx-check-circle","text-success"],["title","Unapprove",1,"bx","bx-x-circle","text-warning"],[3,"requestUrl","look","deleteItemEvent"]],template:function(n,s){1&n&&(e.TgZ(0,"div",0)(1,"div",1)(2,"app-breadcrumb",2),e.NdJ("layoutSelected",function(m){return s.onLayoutSelected(m)}),e.qZA()()(),e.TgZ(3,"div",0)(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return s.onUpsertClick(null)}),e.qZA()()()(),e.YNc(7,on,1,1,"util-progress",5),e.YNc(8,ln,13,2,"div",6),e.YNc(9,Zn,3,2,"div",7),e._UZ(10,"app-pagination",8)),2&n&&(e.xp6(2),e.Q6J("title","Vendors")("layout",s.layout)("breadcrumbItems",s.breadcrumbItems),e.xp6(5),e.Q6J("ngIf",s.loading),e.xp6(1),e.Q6J("ngIf",s.vendors.empty),e.xp6(1),e.Q6J("ngIf",!s.vendors.empty),e.xp6(1),e.Q6J("page",s.vendors))},dependencies:[d.sg,d.O5,b.t,y.Q,h.D,M.T,f.L,P.G]})}return i})();const yn=[{path:"categories",component:Ee},{path:"categories/:id",component:c.I},{path:"categories/create",component:c.I},{path:"attributes",component:d_,canActivate:[k.P]},{path:"attributes/create",component:Ie,canActivate:[k.P]},{path:"attributes/:id/update",component:Ie,canActivate:[k.P]},{path:"filterable-attributes",component:D_,canActivate:[k.P]},{path:"filterable-attributes/create",component:Me.V,canActivate:[k.P]},{path:"filterable-attributes/:id/update",component:Me.V,canActivate:[k.P]},{path:"brands",component:et,canActivate:[k.P]},{path:"brands/create",component:he.l,canActivate:[k.P]},{path:"brands/:id/update",component:he.l,canActivate:[k.P]},{path:"variations",component:It,canActivate:[k.P]},{path:"variations/create",component:be.s,canActivate:[k.P]},{path:"variations/:id/update",component:be.s,canActivate:[k.P]},{path:"products",component:ti,canActivate:[k.P]},{path:"products/create",component:Ze.A,canActivate:[k.P]},{path:"products/:id/update",component:Ze.A,canActivate:[k.P]},{path:"product-specifications",component:Ii,canActivate:[k.P]},{path:"product-specifications/create",component:qe,canActivate:[k.P]},{path:"product-specifications/:id/update",component:Ge,canActivate:[k.P]},{path:"stocks",component:nn,canActivate:[k.P]},{path:"stocks/create",component:Be.X,canActivate:[k.P]},{path:"stocks/:id/update",component:Be.X,canActivate:[k.P]},{path:"vendors",component:(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275cmp=e.Xpm({type:i,selectors:[["app-vendor"]],decls:1,vars:0,template:function(n,s){1&n&&e._UZ(0,"app-vendor-list")},dependencies:[xn]})}return i})(),canActivate:[k.P]},{path:"vendors/create",component:Ke.Z,canActivate:[k.P]},{path:"vendors/:id/update",component:Ke.Z,canActivate:[k.P]}];let Kn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275mod=e.oAB({type:i});static#t=this.\u0275inj=e.cJS({imports:[T.Bz.forChild(yn),T.Bz]})}return i})();var Yn=o(7151),Vn=o(9797),Fn=o(5081),$n=o(4807),Gn=o(2241),qn=o(3318),Jn=o(9277),Qn=o(7035);let wn=(()=>{class i{static#e=this.\u0275fac=function(n){return new(n||i)};static#_=this.\u0275mod=e.oAB({type:i});static#t=this.\u0275inj=e.cJS({imports:[d.ez,G.UX,Kn,Yn.g,Gn.AdminModule,Vn.CmsModule,$n.A0,G.u5,qn.UserModule,Jn.kn]})}return i})();e.B6R(c.I,[d.mk,d.O5,G._Y,G.Fj,G.Wl,G.JJ,G.JL,G.sg,G.u,b.t,Qn.P,Fn.P],[])},1426:(z,K,o)=>{o.d(K,{q:()=>M});var d=o(5879),T=o(8637),c=o(8174),x=o(7259),t=o(2771),A=o(3989),B=o(30),l=o(1662),e=o(6945),E=o(8480),u=o(1492),N=o(8675),S=o(6814),U=o(6223),C=o(4736),b=o(4807);function y(f,P){1&f&&d._UZ(0,"util-progress",4),2&f&&d.Q6J("bar",!0)}const h=function(){return{standalone:!0}};let M=(()=>{class f extends T.H{componentName(){return"ProductSelectComponent"}constructor(I,Z,V,q,_e,Te){super(I,Z,V),this.productService=_e,this.dialogService=Te,this.searchEndpoint=t.E.PRODUCTS.PRODUCT_ENDPOINT_V2,this.items=[],this.selectedItem=null,this.selected=new d.vpe,q.isAdmin()&&(this.searchEndpoint=t.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(I){let Z=c.g.removeSpecialCharacters(I.target?.value);Z.length>2&&this.search({page:0,size:10,q:Z})}onSelected(I){if(this.items.find(Z=>Z.name==I.name))this.selected.emit(this.selectedItem);else{let Z=this.dialogService.open(A.A,{id:null,name:I.name,dialogUpsert:!0}),V=Z.componentInstance;V.onCompleted.subscribe(q=>{this.selected.emit(function g(f){return{id:f.id,created_at:f.created_at,updated_at:f.updated_at,created_by:f.created_by,name:f.name,brand:{id:f.brand_id,name:f.brand_name,description:"",image:"",created_at:new Date,updated_at:new Date,created_by:""},images:f.images,categories:f.category_ids.map((P,I)=>({id:P,name:f.category_names[I]})),weight:f.weight,approved:f.approved}}(q))}),V.onCanceled.subscribe(()=>{Z.close()})}}search(I){this.loading=!0;let Z=this.componentKey(x.Z.PRODUCTS_V2.SEARCH(I));this.productService.search(Z,this.searchEndpoint,I),this.subscribe(Z,null,(V,q)=>{this.items=q.data.content,this.loading=!1})}static#e=this.\u0275fac=function(Z){return new(Z||f)(d.Y36(B.Y),d.Y36(l.F0),d.Y36(e.z),d.Y36(E.e),d.Y36(u.M),d.Y36(N.x))};static#_=this.\u0275cmp=d.Xpm({type:f,selectors:[["app-product-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:8,consts:function(){let I;return I="Product",[["for","autoSizingInput2",1,"visually-hidden"],I,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name","placeholder","Search Products",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]]},template:function(Z,V){1&Z&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,y,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(_e){return V.searchForEvent(_e)})("ngModelChange",function(_e){return V.selectedItem=_e})("change",function(_e){return V.onSelected(_e)}),d.qZA()),2&Z&&(d.xp6(2),d.Q6J("ngIf",V.loading),d.xp6(1),d.Q6J("items",V.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",V.selectedItem)("ngModelOptions",d.DdM(7,h)))},dependencies:[S.O5,U.JJ,C.t,b.w9,U.On]})}return f})()},3989:(z,K,o)=>{o.d(K,{A:()=>O});var d=o(9870),T=o(973),c=o(6223),x=o(7259),g=o(7700),t=o(8174),A=o(2771),B=o(8674),l=o(5879),e=o(30),E=o(1662),u=o(6945),N=o(8480),S=o(1492),U=o(5462),C=o(6814),b=o(4736),y=o(6265),h=o(7035),M=o(5081),f=o(8637),P=o(9107),I=o(7210),Z=o(8675),V=o(4807);function q(D,v){1&D&&l._UZ(0,"util-progress",4),2&D&&l.Q6J("bar",!0)}const _e=function(){return{standalone:!0}};let Te=(()=>{class D extends f.H{componentName(){return"BrandSelectComponent"}constructor(p,R,L,J,Q,j){super(p,R,L),this.brandService=Q,this.popupService=j,this.searchEndpoint=A.E.BRANDS.BRAND_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new l.vpe,J.isAdmin()&&(this.searchEndpoint=A.E.BRANDS.BRAND_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(p){let R=t.g.removeSpecialCharacters(p.target?.value);R.length>2&&this.search({page:0,size:10,q:R})}onSelected(p){this.items.find(R=>R.name==p.name)?this.selected.emit(this.selectedItem):this.popupService.open(P.l,{id:null,name:p.name}).componentInstance.onCompleted.subscribe(L=>{this.selected.emit(L)})}search(p){this.loading=!0;let R=this.componentKey(x.Z.BRANDS.SEARCH(p));this.brandService.search(R,this.searchEndpoint,p),this.subscribe(R,null,(L,J)=>{this.items=J.data.content,this.loading=!1})}static#e=this.\u0275fac=function(R){return new(R||D)(l.Y36(e.Y),l.Y36(E.F0),l.Y36(u.z),l.Y36(N.e),l.Y36(I.c),l.Y36(Z.x))};static#_=this.\u0275cmp=l.Xpm({type:D,selectors:[["app-brand-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[l.qOj],decls:4,vars:9,consts:function(){let p;return p="Brand",[["for","autoSizingInput2",1,"visually-hidden"],p,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(R,L){1&R&&(l.TgZ(0,"label",0),l.SDv(1,1),l.qZA(),l.YNc(2,q,1,1,"util-progress",2),l.TgZ(3,"ng-select",3),l.NdJ("keyup",function(Q){return L.searchForEvent(Q)})("ngModelChange",function(Q){return L.selectedItem=Q})("change",function(Q){return L.onSelected(Q)}),l.qZA()),2&R&&(l.xp6(2),l.Q6J("ngIf",L.loading),l.xp6(1),l.s9C("placeholder",L.translations["Search Brand"]),l.Q6J("items",L.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",L.selectedItem)("ngModelOptions",l.DdM(8,_e)))},dependencies:[C.O5,c.JJ,b.t,V.w9,c.On]})}return D})();var Oe=o(756);function me(D,v){1&D&&l._UZ(0,"util-progress",32),2&D&&l.Q6J("bar",!0)}function ge(D,v){1&D&&(l.TgZ(0,"em",13),l.SDv(1,33),l.qZA())}function Ne(D,v){if(1&D){const p=l.EpF();l.TgZ(0,"div",34)(1,"div",35)(2,"span"),l._uU(3),l.qZA()(),l.TgZ(4,"div",35)(5,"a",36),l.NdJ("click",function(){const J=l.CHM(p).$implicit,Q=l.oxw();return l.KtG(Q.removeCategory(J))}),l._UZ(6,"i",37),l.qZA()()()}if(2&D){const p=v.$implicit;l.xp6(3),l.Oqu(p.name)}}function Ae(D,v){1&D&&(l.TgZ(0,"em",13),l.SDv(1,38),l.qZA())}function $(D,v){if(1&D&&(l.TgZ(0,"option",43),l._uU(1),l.qZA()),2&D){const p=v.$implicit,R=l.oxw().$implicit;l.Q6J("value",p)("selected",R.value===p),l.xp6(1),l.Oqu(p)}}function de(D,v){if(1&D){const p=l.EpF();l.TgZ(0,"div",34)(1,"div",39)(2,"span"),l._uU(3),l.qZA()(),l.TgZ(4,"div",39)(5,"select",40),l.NdJ("change",function(L){const Q=l.CHM(p).$implicit,j=l.oxw();return l.KtG(j.onValueSelected(Q.attr,L))}),l.TgZ(6,"option"),l.SDv(7,41),l.qZA(),l.YNc(8,$,2,3,"option",42),l.qZA()(),l.TgZ(9,"div",39)(10,"a",36),l.NdJ("click",function(){const J=l.CHM(p).$implicit,Q=l.oxw();return l.KtG(Q.removeSpecification(J.attr))}),l._UZ(11,"i",37),l.qZA()()()}if(2&D){const p=v.$implicit;l.xp6(3),l.Oqu(p.attr.name),l.xp6(5),l.Q6J("ngForOf",p.attr.values)}}let O=(()=>{class D extends d.n{constructor(p,R,L,J,Q,j,pe,Ee){super(p,R,L,J,Ee),this.productService=j,this.notifier=pe,this.config=T.C,this.selectedCategories=[],this.selectedBrand=null,this.specifications=[],this.selectedVariations=[],this.productForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),slug:new c.NI("",[c.kI.required,c.kI.minLength(3)]),brand_id:new c.NI(null,[c.kI.required]),description:new c.NI("",[]),category_ids:new c.NI([],[c.kI.required]),variant_ids:new c.NI([],[]),specifications:new c.NI(new Map,[]),images:new c.NI([]),weight:new c.NI(null),approved:new c.NI(!1),frozen_item:new c.NI(!1)}),Q.isAdmin()&&(this.config.getEndpoint=A.E.PRODUCTS.PRODUCT_ENDPOINT_ADMIN_V2),null!=Ee.name&&this.productForm.controls.name.setValue(Ee.name)}componentName(){return"ProductUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Products",link:"/admin/products",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.productForm.controls.name.valueChanges.subscribe(p=>{this.productForm.controls.slug.setValue(t.g.slugify(p)+"_"+t.g.randomString(5))})}initialize(p){this.loading=!0;let R=this.componentKey(x.Z.PRODUCTS_V2.GET(p));this.productService.fetchSingle(R,this.config.getEndpoint,p),this.subscribe(R,null,(L,J)=>{this.loading=!1,this.populateForm(J.data)}),this.subscribe(this.getErrorKey(R),null,(L,J)=>{console.log(J.data),this.loading=!1})}onSubmit(){this.productForm.valid&&this.upsert(this.exId)}onImgUploaded(p){p.length>0&&this.productForm.controls.images.setValue(p.map(R=>R.image_url))}getExImages(){return this.productForm.controls.images.value?.map(R=>({image_url:R,thumb_url:R}))}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(p){this.loading=!0;let R=this.componentKey(x.Z.PRODUCTS_V2.UPSERT(p)),L={name:this.productForm.controls.name.value,slug:this.productForm.controls.slug.value,brand_id:this.productForm.controls.brand_id.value,description:this.productForm.controls.description.value,category_ids:this.productForm.controls.category_ids.value,variant_ids:this.productForm.controls.variant_ids.value,images:this.productForm.controls.images.value,weight:this.productForm.controls.weight.value,approved:this.productForm.controls.approved.value,frozen_item:this.productForm.controls.frozen_item.value,action:null,specifications:(0,B.Q3)(this.productForm.controls.specifications.value)};this.productService.upsert(R,A.E.PRODUCTS.PRODUCT_ENDPOINT,L,p),this.subscribe(R,null,(J,Q)=>{this.loading=!1,this.notifier.success("Success","Product has been "+(p?"updated":"created")),this.productForm.reset(),this.onSuccess(Q.data)}),this.subscribe(this.getErrorKey(R),null,(J,Q)=>{let j=Q.data;this.loading=!1,this.notifier.warning("Failed!",j.error.message)})}populateForm(p){this.selectedBrand=p.brand,this.selectedCategories=p.categories,this.selectedVariations=p.variations,this.specifications=p.specifications.map(R=>({attr:R.filterable_attribute,value:R.value})),this.productForm.controls.name.setValue(p.name),this.productForm.controls.slug.setValue(p.slug),this.productForm.controls.brand_id.setValue(p.brand.id),this.productForm.controls.description.setValue(p.description),this.productForm.controls.category_ids.setValue(p.categories.map(R=>R.id)),this.productForm.controls.variant_ids.setValue(p.variations.map(R=>R.id)),this.productForm.controls.specifications.setValue(this.specificationsToMap(this.specifications)),this.productForm.controls.images.setValue(p.images),this.productForm.controls.weight.setValue(p.weight),this.productForm.controls.approved.setValue(p.approved),this.productForm.controls.frozen_item.setValue(p.frozen_item)}onCategorySelected(p){null==p||this.selectedCategories.find(R=>R.id==p.id)||(this.selectedCategories.push(p),this.productForm.controls.category_ids.setValue(this.selectedCategories.map(R=>R.id)))}onBrandSelected(p){this.selectedBrand=p,this.productForm.controls.brand_id.setValue(null==this.selectedBrand?null:this.selectedBrand.id)}onFaSelected(p){null==p||this.specifications.find(R=>R.attr.id==p.id)||this.specifications.push({attr:p,value:null})}onVariationSelected(p){null==p||null==p.id||this.selectedVariations.find(R=>R.id==p.id)||(this.selectedVariations.push(p),this.productForm.controls.variant_ids.setValue(this.selectedVariations.map(R=>R.id)))}removeCategory(p){this.selectedCategories=this.selectedCategories.filter(R=>R.id!=p.id),this.productForm.controls.category_ids.setValue(this.selectedCategories.map(R=>R.id))}removeVariation(p){this.selectedVariations=this.selectedVariations.filter(R=>R.id!=p.id),this.productForm.controls.variant_ids.setValue(this.selectedVariations.map(R=>R.id))}onValueSelected(p,R){this.specifications=this.specifications.map(L=>(L.attr.id==p.id&&(L.value=R.target.value),L)),this.updateControlValue()}removeSpecification(p){this.specifications=this.specifications.filter(R=>R.attr.id!=p.id),this.updateControlValue()}updateControlValue(){this.productForm.controls.specifications.setValue(this.specificationsToMap(this.specifications))}specificationsToMap(p){return p.reduce((R,L)=>(null!==L.value&&R.set(L.attr.code,L.value),R),new Map)}static#e=this.\u0275fac=function(R){return new(R||D)(l.Y36(e.Y),l.Y36(E.F0),l.Y36(u.z),l.Y36(E.gz),l.Y36(N.e),l.Y36(S.M),l.Y36(U.l),l.Y36(g.WI))};static#_=this.\u0275cmp=l.Xpm({type:D,selectors:[["app-product-upsert"]],features:[l.qOj],decls:55,vars:18,consts:function(){let p,R,L,J,Q,j,pe,Ee,k,ue,Se;return p="Create/Update Product",R="Name",L="Brand",J="Category",Q="Specifications",j="Description",pe="Cancel",Ee="Submit",k=" Must select a Brand! ",ue=" Must select a category! ",Se="Choose Value",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],p,[3,"formGroup"],[1,"col-sm-6","mb-3"],["for","name-input",1,"form-label"],R,[1,"error"],["type","text","id","name-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],L,[3,"selectedItem","selected"],["class","text-danger",4,"ngIf"],J,["class","row my-2 py-2 mx-0 bg-info-subtle",4,"ngFor","ngForOf"],[1,"col-sm-6"],["for","specification",1,"form-label"],Q,[1,"mb-3"],["for","description",1,"form-label"],j,["id","description","formControlName","description"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],pe,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],Ee,[3,"bar"],k,[1,"row","my-2","py-2","mx-0","bg-info-subtle"],[1,"col-6"],["href","javascript: void(0);",3,"click"],[1,"mdi","mdi-close-circle-outline","text-danger","float-end"],ue,[1,"col-4"],["id","specification","aria-label","Specification",1,"form-select",3,"change"],Se,[3,"value","selected",4,"ngFor","ngForOf"],[3,"value","selected"]]},template:function(R,L){1&R&&(l.YNc(0,me,1,1,"util-progress",0),l.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),l.SDv(6,6),l.qZA(),l.TgZ(7,"form",7)(8,"div",1)(9,"div",8)(10,"label",9)(11,"span"),l.SDv(12,10),l.qZA(),l.TgZ(13,"em",11),l._uU(14,"*"),l.qZA()(),l._UZ(15,"input",12),l.TgZ(16,"em",13),l._uU(17),l.qZA()(),l.TgZ(18,"div",8)(19,"label",9)(20,"span"),l.SDv(21,14),l.qZA(),l.TgZ(22,"em",11),l._uU(23,"*"),l.qZA()(),l.TgZ(24,"app-brand-select",15),l.NdJ("selected",function(Q){return L.onBrandSelected(Q)}),l.qZA(),l.YNc(25,ge,2,0,"em",16),l.qZA()(),l.TgZ(26,"div",1)(27,"div",8)(28,"label",9)(29,"span"),l.SDv(30,17),l.qZA(),l.TgZ(31,"em",11),l._uU(32,"*"),l.qZA()(),l.TgZ(33,"app-category-select",15),l.NdJ("selected",function(Q){return L.onCategorySelected(Q)}),l.qZA(),l.YNc(34,Ne,7,1,"div",18),l.YNc(35,Ae,2,0,"em",16),l.qZA(),l.TgZ(36,"div",19)(37,"label",20),l.SDv(38,21),l.qZA(),l.TgZ(39,"app-fa-select",15),l.NdJ("selected",function(Q){return L.onFaSelected(Q)}),l.qZA(),l.YNc(40,de,12,2,"div",18),l.qZA()(),l.TgZ(41,"div",22)(42,"label",23),l.SDv(43,24),l.qZA(),l._UZ(44,"app-editor",25),l.TgZ(45,"em",13),l._uU(46),l.qZA()(),l.TgZ(47,"app-file-picker",26),l.NdJ("onUploaded",function(Q){return L.onImgUploaded(Q)}),l.qZA(),l.TgZ(48,"div",27)(49,"button",28),l.NdJ("click",function(){return L.onCancel()}),l.TgZ(50,"span"),l.SDv(51,29),l.qZA()(),l.TgZ(52,"button",30),l.NdJ("click",function(){return L.onSubmit()}),l.TgZ(53,"span"),l.SDv(54,31),l.qZA()()()()()()()()),2&R&&(l.Q6J("ngIf",L.loading),l.xp6(1),l.Q6J("@loaded",!L.loading),l.xp6(6),l.Q6J("formGroup",L.productForm),l.xp6(8),l.s9C("placeholder",L.translations["Enter Name"]),l.xp6(2),l.hij(" ",L.errMsg(L.productForm,"name","minLength","Name should be at least 3 characters!")," "),l.xp6(7),l.Q6J("selectedItem",L.selectedBrand),l.xp6(1),l.Q6J("ngIf",!L.productForm.controls.brand_id.valid),l.xp6(8),l.Q6J("selectedItem",null),l.xp6(1),l.Q6J("ngForOf",L.selectedCategories),l.xp6(1),l.Q6J("ngIf",!L.productForm.controls.category_ids.valid),l.xp6(4),l.Q6J("selectedItem",null),l.xp6(1),l.Q6J("ngForOf",L.specifications),l.xp6(6),l.hij(" ",L.errMsg(L.productForm,"description","minLength","Description should be at least 20 characters!")," "),l.xp6(1),l.s9C("title",L.translations.Images),l.Q6J("multiSelect",!0)("existingImages",L.getExImages())("required",!1),l.xp6(5),l.Q6J("ngClass",L.productForm.valid?"":"disabled"))},dependencies:[C.mk,C.sg,C.O5,c._Y,c.YN,c.Kr,c.Fj,c.JJ,c.JL,c.sg,c.u,b.t,y.P,h.P,M.P,Te,Oe.t]})}return D})()},973:(z,K,o)=>{o.d(K,{C:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!1,showUserFilter:!1,showDeleteButton:!0,showApproveButton:!1,searchEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2,delEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2,getEndpoint:T.E.PRODUCTS.PRODUCT_ENDPOINT_V2},x={list:"/admin/inventory/products",create:"/admin/inventory/products/create",update(g){return null==g?this.create:"/admin/inventory/products/"+g+"/update"}}},1492:(z,K,o)=>{o.d(K,{M:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.PRODUCTS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u,N){this.http.get(T.E.PRODUCTS.GET(u,N)).subscribe(S=>{this.eventBusService.publish(E,S.body)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N,S){let U=null==S?T.E.PRODUCTS.CREATE(u):T.E.PRODUCTS.UPDATE(u,S),C=null==S?this.http.post(U,N):this.http.patch(U,N);console.log(N),C.subscribe(b=>{this.eventBusService.publish(E,b)},b=>{this.handleError(b,y=>{this.upsert(E,u,N,S)},y=>{this.eventBusService.publish(this.getErrorKey(E),y)})})}approve(E,u,N,S){let U=T.E.PRODUCTS.APPROVE(u,N,S);this.http.patch(U,{}).subscribe(C=>{this.eventBusService.publish(E,C.body)},C=>{this.handleError(C,b=>{this.approve(E,u,N,S)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9876:(z,K,o)=>{o.d(K,{X:()=>Ae});var d=o(9870),T=o(337),c=o(6223),x=o(7700),g=o(7259),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(5789),E=o(5462),u=o(6814),N=o(4736),S=o(9277),U=o(1426),C=o(8637),b=o(8174),y=o(2771),h=o(2447),M=o(8480),f=o(3668),P=o(8675),I=o(4807);function Z($,de){1&$&&t._UZ(0,"util-progress",4),2&$&&t.Q6J("bar",!0)}const V=function(){return{standalone:!0}};let q=(()=>{class $ extends C.H{componentName(){return"VariationSelectComponent"}constructor(O,D,v,p,R,L){super(O,D,v),this.variationService=R,this.popupService=L,this.searchEndpoint=y.E.VARIATIONS.VARIATION_ENDPOINT,this.items=[],this.selectedItem=null,this.selected=new t.vpe,p.isAdmin()&&(this.searchEndpoint=y.E.VARIATIONS.VARIATION_ENDPOINT_ADMIN)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(O){let D=b.g.removeSpecialCharacters(O.target?.value);D.length>2&&this.search({page:0,size:10,q:D})}onSelected(O){this.items.find(D=>D.name==O.name)?this.selected.emit(this.selectedItem):this.popupService.open(h.s,{id:null,name:O.name}).componentInstance.onCompleted.subscribe(v=>{this.selected.emit(v)})}search(O){this.loading=!0;let D=this.componentKey(g.Z.VARIATIONS.SEARCH(O));this.variationService.search(D,this.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.items=p.data.content,this.loading=!1})}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(M.e),t.Y36(f.$),t.Y36(P.x))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-variation-select"]],inputs:{searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[t.qOj],decls:4,vars:9,consts:function(){let O;return O="Variation",[["for","autoSizingInput2",1,"visually-hidden"],O,[3,"bar",4,"ngIf"],["id","autoSizingInput2","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(D,v){1&D&&(t.TgZ(0,"label",0),t.SDv(1,1),t.qZA(),t.YNc(2,Z,1,1,"util-progress",2),t.TgZ(3,"ng-select",3),t.NdJ("keyup",function(R){return v.searchForEvent(R)})("ngModelChange",function(R){return v.selectedItem=R})("change",function(R){return v.onSelected(R)}),t.qZA()),2&D&&(t.xp6(2),t.Q6J("ngIf",v.loading),t.xp6(1),t.s9C("placeholder",v.translations["Search Variations.."]),t.Q6J("items",v.items)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",v.selectedItem)("ngModelOptions",t.DdM(8,V)))},dependencies:[u.O5,c.JJ,N.t,I.w9,c.On]})}return $})();var _e=o(9056);function Te($,de){1&$&&t._UZ(0,"util-progress",63),2&$&&t.Q6J("bar",!0)}function Oe($,de){1&$&&(t.TgZ(0,"em",35),t.SDv(1,64),t.qZA())}function me($,de){1&$&&(t.TgZ(0,"em",35),t.SDv(1,65),t.qZA())}function ge($,de){1&$&&t._UZ(0,"util-progress",63),2&$&&t.Q6J("bar",!0)}const Ne=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}};let Ae=(()=>{class $ extends d.n{constructor(O,D,v,p,R,L,J){super(O,D,v,p,J),this.stockService=R,this.notifier=L,this.config=T.u,this.stockForm=new c.cw({vendor_id:new c.NI(null,[c.kI.required]),product_id:new c.NI(null,[c.kI.required]),supplier_id:new c.NI(null,[]),variation_id:new c.NI(null,[]),quantity:new c.NI(null,[c.kI.required]),unit_price:new c.NI(null,[c.kI.required]),retail_price:new c.NI(null,[c.kI.required]),discount_percentage:new c.NI(null,[]),discount_valid_until:new c.NI(null,[]),cashback_percentage:new c.NI(null,[]),cashback_valid_until:new c.NI(null,[])}),this.selectedVendor=null,this.selectedSupplier=null,this.selectedProduct=null,this.selectedVariation=null}componentName(){return"StockUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Stocks",link:"/admin/stocks",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(O){this.loading=!0;let D=this.componentKey(g.Z.STOCKS.GET(O));this.stockService.fetchSingle(D,this.config.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.loading=!1,this.populateForm(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{console.log(p.data),this.loading=!1})}currentDate(){return new Date}onSubmit(){console.log(this.stockForm.value),this.stockForm.valid&&this.upsert(this.exId)}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(O){this.loading=!0;let D=this.componentKey(g.Z.STOCKS.UPSERT(O));this.stockService.upsert(D,this.stockForm.value,O),this.subscribe(D,null,(p,R)=>{this.notifier.success("Success","Stock has been "+(O?"updated":"created")),this.stockForm.reset(),this.onSuccess(R.data)}),this.subscribe(this.getErrorKey(D),null,(p,R)=>{let L=R.data;this.loading=!1,this.notifier.warning("Failed!",L.error.message)})}populateForm(O){this.selectedVendor=O.vendor,this.selectedProduct=O.product,this.selectedVariation=O.variation,this.stockForm.controls.vendor_id.setValue(O.vendor_id),this.stockForm.controls.product_id.setValue(O.product_id),this.stockForm.controls.variation_id.setValue(O.variation_id),this.stockForm.controls.unit_price.setValue(null==O.avg_unit_price?0:Math.round(O.avg_unit_price)),this.stockForm.controls.retail_price.setValue(O.retail_price),this.stockForm.controls.discount_percentage.setValue(O.discount_percentage),this.stockForm.controls.discount_valid_until.setValue(null==O.discount_valid_until?null:O.discount_valid_until),this.stockForm.controls.cashback_percentage.setValue(O.cashback_percentage),this.stockForm.controls.cashback_valid_until.setValue(null==O.cashback_valid_until?null:O.cashback_valid_until)}onVendorSelected(O){this.selectedVendor=O,this.stockForm.controls.vendor_id.setValue(null==O?null:O.id)}onSupplierSelected(O){this.selectedSupplier=O,this.stockForm.controls.supplier_id.setValue(null==O?null:O.id)}onProductSelected(O){console.log(O),this.selectedProduct=O,this.stockForm.controls.product_id.setValue(null==O?null:O.id)}onVariationSelected(O){this.selectedVariation=O,this.stockForm.controls.variation_id.setValue(null==O?null:O.id)}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.q),t.Y36(E.l),t.Y36(x.WI))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-stock-upsert"]],features:[t.qOj],decls:113,vars:27,consts:function(){let O,D,v,p,R,L,J,Q,j,pe,Ee,k,ue,Se,ne,Re,G,Ce,fe;return O="Add Stock",D="Store Information",v="Select Store",p="Product Information",R="Select Product" + "\ufffd#34\ufffd" + "*" + "\ufffd/#34\ufffd" + "",L="Select Variation",J="Stock Information",Q="Quantity",j="Unit Price",pe="Retail Price",Ee="Discount Information",k="Discount (%)",ue="Discount Validity",Se="Cashback (%)",ne="Cashback Validity",Re="Cancel",G="Add Stock",Ce=" Please select your shop. ",fe=" Please select a product. ",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],O,[3,"formGroup"],[1,"card-header","bg-transparent","border-primary"],[1,"my-0","text-primary"],[1,"mdi","mdi-store","me-3","me-3"],D,[1,"card-body","shadow-sm"],[1,"mb-3"],["for","vendor_id-input",1,"form-label","col-form-label-lg"],v,[1,"error"],["id","vendor_id-input",3,"selectedItem","selected"],["class","text-danger",4,"ngIf"],[1,"card","my-3"],[1,"mdi","mdi-package-variant","me-3"],p,[1,"col-sm-6","col-md-6","mb-3"],R,["id","product_id-input",3,"selectedItem","selected"],["for","variation_id-input",1,"form-label","col-form-label-lg"],L,["id","variation_id-input",3,"selectedItem","selected"],[1,"row","my-3"],[1,"col-sm-6"],[1,"mdi","mdi-barcode-scan","me-3"],J,["for","quantity-input",1,"form-label"],Q,["type","text","id","quantity-input","name","quantity","formControlName","quantity",1,"form-control","form-control-lg",3,"placeholder","ngClass"],[1,"text-danger"],["for","unit_price-input",1,"form-label"],j,["type","text","id","unit_price-input","name","unit_price","formControlName","unit_price",1,"form-control","form-control-lg",3,"placeholder","ngClass"],["for","retail_price-input",1,"form-label"],pe,["type","text","id","retail_price-input","name","retail_price","formControlName","retail_price",1,"form-control","form-control-lg",3,"placeholder","ngClass"],[1,"mdi","mdi-tag-off","me-3"],Ee,["for","discount-input",1,"form-label"],k,["type","text","id","discount-input","name","discount_percentage","formControlName","discount_percentage",1,"form-control","form-control-lg",3,"placeholder"],["for","discount_valid_until-input",1,"form-label"],ue,[1,"input-group"],["bsDatepicker","","id","discount_valid_until-input","formControlName","discount_valid_until",1,"form-control","form-control-lg",3,"bsConfig","minDate"],["for","cashback_percentage-input",1,"form-label"],Se,["type","text","id","cashback_percentage-input","name","cashback_percentage","formControlName","cashback_percentage",1,"form-control","form-control-lg",3,"placeholder"],["for","cashback_valid_until-input",1,"form-label"],ne,["bsDatepicker","","id","cashback_valid_until-input","formControlName","cashback_valid_until",1,"form-control","form-control-lg",3,"bsConfig","minDate"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],Re,["type","submit",1,"btn","btn-success","waves-effect","waves-light",3,"ngClass","click"],[1,"mdi","mdi-content-save","d-block","font-size-16"],G,[3,"bar"],Ce,fe]},template:function(D,v){1&D&&(t.YNc(0,Te,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t.SDv(6,6),t.qZA(),t.TgZ(7,"form",7)(8,"div",3)(9,"div",8)(10,"h6",9),t._UZ(11,"i",10),t.TgZ(12,"span"),t.SDv(13,11),t.qZA()()(),t.TgZ(14,"div",12)(15,"div",13)(16,"label",14)(17,"span"),t.SDv(18,15),t.qZA(),t.TgZ(19,"em",16),t._uU(20,"*"),t.qZA()(),t.TgZ(21,"app-vendor-select",17),t.NdJ("selected",function(R){return v.onVendorSelected(R)}),t.qZA(),t.YNc(22,Oe,2,0,"em",18),t.qZA()()(),t.TgZ(23,"div",19)(24,"div",8)(25,"h6",9),t._UZ(26,"i",20),t.TgZ(27,"span"),t.SDv(28,21),t.qZA()()(),t.TgZ(29,"div",12)(30,"div",1)(31,"div",22)(32,"label",14),t.tHW(33,23),t._UZ(34,"em",16),t.N_p(),t.qZA(),t.TgZ(35,"app-product-select",24),t.NdJ("selected",function(R){return v.onProductSelected(R)}),t.qZA(),t.YNc(36,me,2,0,"em",18),t.qZA(),t.TgZ(37,"div",22)(38,"label",25),t.SDv(39,26),t.qZA(),t.TgZ(40,"app-variation-select",27),t.NdJ("selected",function(R){return v.onVariationSelected(R)}),t.qZA()()()()(),t.TgZ(41,"div",28)(42,"div",29)(43,"div",3)(44,"div",8)(45,"h6",9),t._UZ(46,"i",30),t.TgZ(47,"span"),t.SDv(48,31),t.qZA()()(),t.TgZ(49,"div",12)(50,"div",13)(51,"label",32)(52,"span"),t.SDv(53,33),t.qZA(),t.TgZ(54,"em",16),t._uU(55,"*"),t.qZA()(),t._UZ(56,"input",34),t.TgZ(57,"em",35),t._uU(58),t.qZA()(),t.TgZ(59,"div",13)(60,"label",36)(61,"span"),t.SDv(62,37),t.qZA(),t.TgZ(63,"em",16),t._uU(64,"*"),t.qZA()(),t._UZ(65,"input",38),t.TgZ(66,"em",35),t._uU(67),t.qZA()(),t.TgZ(68,"div",13)(69,"label",39)(70,"span"),t.SDv(71,40),t.qZA(),t.TgZ(72,"em",16),t._uU(73,"*"),t.qZA()(),t._UZ(74,"input",41),t.TgZ(75,"em",35),t._uU(76),t.qZA()()()()(),t.TgZ(77,"div",29)(78,"div",3)(79,"div",8)(80,"h6",9),t._UZ(81,"i",42),t.TgZ(82,"span"),t.SDv(83,43),t.qZA()()(),t.TgZ(84,"div",12)(85,"div",13)(86,"label",44),t.SDv(87,45),t.qZA(),t._UZ(88,"input",46),t.qZA(),t.TgZ(89,"div",13)(90,"label",47),t.SDv(91,48),t.qZA(),t.TgZ(92,"div",49),t._UZ(93,"input",50),t.qZA()(),t.TgZ(94,"div",13)(95,"label",51),t.SDv(96,52),t.qZA(),t._UZ(97,"input",53),t.qZA(),t.TgZ(98,"div",13)(99,"label",54),t.SDv(100,55),t.qZA(),t.TgZ(101,"div",49),t._UZ(102,"input",56),t.qZA()()()()()(),t.YNc(103,ge,1,1,"util-progress",0),t.TgZ(104,"div",57)(105,"button",58),t.NdJ("click",function(){return v.onCancel()}),t.TgZ(106,"span"),t.SDv(107,59),t.qZA()(),t.TgZ(108,"button",60),t.NdJ("click",function(){return v.onSubmit()}),t._UZ(109,"i",61),t._uU(110,"\xa0 "),t.TgZ(111,"span"),t.SDv(112,62),t.qZA()()()()()()()()),2&D&&(t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("@loaded",!v.loading),t.xp6(6),t.Q6J("formGroup",v.stockForm),t.xp6(14),t.Q6J("selectedItem",v.selectedVendor),t.xp6(1),t.Q6J("ngIf",null==v.selectedVendor),t.xp6(13),t.Q6J("selectedItem",v.selectedProduct),t.xp6(1),t.Q6J("ngIf",null==v.selectedProduct),t.xp6(4),t.Q6J("selectedItem",v.selectedVariation),t.xp6(16),t.s9C("placeholder",v.translations["Enter Quantity"]),t.Q6J("ngClass",null==v.stockForm.controls.quantity.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"quantity","required","Quantity is required!")," "),t.xp6(7),t.s9C("placeholder",v.translations["Unit Price"]),t.Q6J("ngClass",null==v.stockForm.controls.unit_price.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"unit_price","required","Unit price is required!")," "),t.xp6(7),t.s9C("placeholder",v.translations["Enter Retail Price"]),t.Q6J("ngClass",null==v.stockForm.controls.retail_price.value?"bg-warning-subtle":""),t.xp6(2),t.hij(" ",v.errMsg(v.stockForm,"retail_price","required","Retail price is required!")," "),t.xp6(12),t.s9C("placeholder",v.translations["Enter Discount"]),t.xp6(5),t.Q6J("bsConfig",t.DdM(25,Ne))("minDate",v.currentDate()),t.xp6(4),t.s9C("placeholder",v.translations["Enter Cashback (%)"]),t.xp6(5),t.Q6J("bsConfig",t.DdM(26,Ne))("minDate",v.currentDate()),t.xp6(1),t.Q6J("ngIf",v.loading),t.xp6(5),t.Q6J("ngClass",v.stockForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.Np,S.Y5,U.q,q,_e.t]})}return $})()},337:(z,K,o)=>{o.d(K,{n:()=>x,u:()=>c});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.COLUMN,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,searchEndpoint:T.E.STOCKS.STOCK_ENDPOINT_V2,delEndpoint:T.E.STOCKS.STOCK_ENDPOINT,vendorEndpoint:T.E.VENDORS.VENDOR_ENDPOINT_V2},x={list:"/admin/inventory/stocks",create:"/admin/inventory/stocks/create",update(g){return null==g?this.create:"/admin/inventory/stocks/"+g+"/update"}}},5789:(z,K,o)=>{o.d(K,{q:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.STOCKS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u,N){this.http.get(T.E.STOCKS.GET(u,N)).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}fetchBySku(E,u,N){this.http.get(T.E.STOCKS.GET_BY_SKU(u,N)).subscribe(S=>{this.eventBusService.publish(E,S.body)},S=>{this.handleError(S,U=>{this.fetchBySku(E,u,N)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N){let S=null==N?T.E.STOCKS.CREATE():T.E.STOCKS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},2447:(z,K,o)=>{o.d(K,{s:()=>C});var d=o(9870),T=o(4968),c=o(6223),x=o(7259),g=o(7700),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(3668),E=o(5462),u=o(6814),N=o(4736),S=o(7035);function U(b,y){1&b&&t._UZ(0,"util-progress",22),2&b&&t.Q6J("bar",!0)}let C=(()=>{class b extends d.n{constructor(h,M,f,P,I,Z,V){super(h,M,f,P,V),this.variationService=I,this.notifier=Z,this.config=T._,this.variationForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),image:new c.NI(null)}),null!=V.name&&this.variationForm.controls.name.setValue(V.name)}componentName(){return"VariationUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Variations",link:"/admin/variations",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(h){this.loading=!0;let M=this.componentKey(x.Z.VARIATIONS.GET(h));this.variationService.fetchSingle(M,h),this.subscribe(M,null,(f,P)=>{this.loading=!1,this.populateForm(P.data)}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{console.log(P.data),this.loading=!1})}onSubmit(){this.variationForm.valid&&this.upsert(this.exId)}onImgUploaded(h){h.length>0&&this.variationForm.controls.image.setValue(h[0].image_url)}getExImages(){let h=this.variationForm.controls.image.value;return null==h?[]:[{image_url:h,thumb_url:h}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(h){this.loading=!0;let M=this.componentKey(x.Z.VARIATIONS.UPSERT(h));this.variationService.upsert(M,this.variationForm.value,h),this.subscribe(M,null,(f,P)=>{this.loading=!1;let I="Variation has been "+(h?"updated":"created");this.notifier.success("Success",I),this.variationForm.reset(),this.config.upsertOnDialog?this.onCompleted.emit(P.data):this.navigate(T.n.list,Z=>{this.notifier.success("Success!",I)})}),this.subscribe(this.getErrorKey(M),null,(f,P)=>{let I=P.data;this.loading=!1,this.notifier.warning("Failed!",I.error.message)})}populateForm(h){this.variationForm.controls.name.setValue(h.name),this.variationForm.controls.description.setValue(h.description),this.variationForm.controls.image.setValue(null==h.image?null:h.image)}static#e=this.\u0275fac=function(M){return new(M||b)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.$),t.Y36(E.l),t.Y36(g.WI))};static#_=this.\u0275cmp=t.Xpm({type:b,selectors:[["app-variation-upsert"]],features:[t.qOj],decls:31,vars:12,consts:function(){let h,M,f,P;return h="Name",M="Description",f="Cancel",P="Submit",[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[1,"mb-3"],["for","name-input",1,"form-label"],h,[1,"error"],["type","text","id","name-input","name","name","formControlName","name",1,"form-control",3,"placeholder"],[1,"text-danger"],["for","description",1,"form-label"],M,["id","description","rows","5","name","description","formControlName","description",1,"form-control",3,"placeholder"],[3,"title","multiSelect","existingImages","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],f,["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],P,[3,"bar"]]},template:function(M,f){1&M&&(t.YNc(0,U,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),t._uU(6,"Create/Update Variation"),t.qZA(),t.TgZ(7,"form",6)(8,"div",7)(9,"label",8)(10,"span"),t.SDv(11,9),t.qZA(),t.TgZ(12,"em",10),t._uU(13,"*"),t.qZA()(),t._UZ(14,"input",11),t.TgZ(15,"em",12),t._uU(16),t.qZA()(),t.TgZ(17,"div",7)(18,"label",13),t.SDv(19,14),t.qZA(),t._UZ(20,"textarea",15),t.TgZ(21,"em",12),t._uU(22),t.qZA()(),t.TgZ(23,"app-file-picker",16),t.NdJ("onUploaded",function(I){return f.onImgUploaded(I)}),t.qZA(),t.TgZ(24,"div",17)(25,"button",18),t.NdJ("click",function(){return f.onCancel()}),t.TgZ(26,"span"),t.SDv(27,19),t.qZA()(),t.TgZ(28,"button",20),t.NdJ("click",function(){return f.onSubmit()}),t.TgZ(29,"span"),t.SDv(30,21),t.qZA()()()()()()()()),2&M&&(t.Q6J("ngIf",f.loading),t.xp6(1),t.Q6J("@loaded",!f.loading),t.xp6(6),t.Q6J("formGroup",f.variationForm),t.xp6(7),t.s9C("placeholder",f.translations["Enter Name"]),t.xp6(2),t.hij(" ",f.errMsg(f.variationForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(4),t.s9C("placeholder",f.translations["Enter Description"]),t.xp6(2),t.hij(" ",f.errMsg(f.variationForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(1),t.s9C("title",f.translations.Image),t.Q6J("multiSelect",!1)("existingImages",f.getExImages())("required",!1),t.xp6(5),t.Q6J("ngClass",f.variationForm.valid?"":"disabled"))},dependencies:[u.mk,u.O5,c._Y,c.Fj,c.JJ,c.JL,c.sg,c.u,N.t,S.P]})}return b})()},4968:(z,K,o)=>{o.d(K,{_:()=>c,n:()=>x});var d=o(6405),T=o(2771);let c={defaultLayout:d.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!1,showUpdateButton:!1,searchEndpoint:T.E.VARIATIONS.VARIATION_ENDPOINT,delEndpoint:T.E.VARIATIONS.VARIATION_ENDPOINT},x={list:"/admin/inventory/variations",create:"/admin/inventory/variations/create",update(g){return null==g?this.create:"/admin/inventory/variations/"+g+"/update"}}},3668:(z,K,o)=>{o.d(K,{$:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.VARIATIONS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}fetchSingle(E,u){this.http.get(T.E.VARIATIONS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}upsert(E,u,N){let S=null==N?T.E.VARIATIONS.CREATE():T.E.VARIATIONS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()},9056:(z,K,o)=>{o.d(K,{t:()=>h});var d=o(5879),T=o(8637),c=o(8174),x=o(1364),g=o(7259),t=o(2771),A=o(30),B=o(1662),l=o(6945),e=o(8480),E=o(7405),u=o(8675),N=o(6814),S=o(6223),U=o(4736),C=o(4807);function b(M,f){1&M&&d._UZ(0,"util-progress",4),2&M&&d.Q6J("bar",!0)}const y=function(){return{standalone:!0}};let h=(()=>{class M extends T.H{componentName(){return"VendorSelectComponent"}constructor(P,I,Z,V,q,_e){super(P,I,Z),this.authService=V,this.vendorService=q,this.popupService=_e,this.enableAdd=!1,this.searchEndpoint=t.E.VENDORS.VENDOR_ENDPOINT_V2,this.items=[],this.selectedItem=null,this.selected=new d.vpe,V.isAdmin()&&(this.enableAdd=!0,this.searchEndpoint=t.E.VENDORS.VENDOR_ENDPOINT_ADMIN_V2)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(P){let I=c.g.removeSpecialCharacters(P.target?.value);I.length>2&&this.search({page:0,size:10,q:I})}onSelected(P){if(this.items.find(I=>I.name==P.name))this.selected.emit(this.selectedItem);else{let I=this.popupService.open(x.Z,{id:null,title:P.title,dialogUpsert:!0}),Z=I.componentInstance;Z.onCompleted.subscribe(V=>{this.selected.emit(V)}),Z.onCanceled.subscribe(()=>{I.close()})}}search(P){let I=this.authService.isAdmin();this.loading=!0;let Z=this.componentKey(g.Z.VENDORS.SEARCH(P)+c.g.randomString(5));I?this.vendorService.search(Z,this.searchEndpoint,P):this.vendorService.myVendors(Z,this.searchEndpoint,P),this.subscribe(Z,null,(V,q)=>{this.items=I?q.data.content:q.data,this.loading=!1})}static#e=this.\u0275fac=function(I){return new(I||M)(d.Y36(A.Y),d.Y36(B.F0),d.Y36(l.z),d.Y36(e.e),d.Y36(E.n),d.Y36(u.x))};static#_=this.\u0275cmp=d.Xpm({type:M,selectors:[["app-vendor-select"]],inputs:{enableAdd:"enableAdd",searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[d.qOj],decls:4,vars:9,consts:function(){let P;return P="Store",[["for","vendor-select",1,"visually-hidden"],P,[3,"bar",4,"ngIf"],["id","vendor-select","bindLabel","name",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","placeholder","keyup","ngModelChange","change"],[3,"bar"]]},template:function(I,Z){1&I&&(d.TgZ(0,"label",0),d.SDv(1,1),d.qZA(),d.YNc(2,b,1,1,"util-progress",2),d.TgZ(3,"ng-select",3),d.NdJ("keyup",function(q){return Z.searchForEvent(q)})("ngModelChange",function(q){return Z.selectedItem=q})("change",function(q){return Z.onSelected(q)}),d.qZA()),2&I&&(d.xp6(2),d.Q6J("ngIf",Z.loading),d.xp6(1),d.s9C("placeholder",Z.translations["Search Store.."]),d.Q6J("items",Z.items)("hideSelected",!0)("multiple",!1)("addTag",Z.enableAdd)("ngModel",Z.selectedItem)("ngModelOptions",d.DdM(8,y)))},dependencies:[N.O5,S.JJ,U.t,C.w9,S.On]})}return M})()},1364:(z,K,o)=>{o.d(K,{Z:()=>Ae});var d=o(9870),T=o(5734),c=o(6223),x=o(7259),g=o(7700),t=o(5879),A=o(30),B=o(1662),l=o(6945),e=o(7405),E=o(5462),u=o(5375),N=o(7579),S=o(6814),U=o(4736),C=o(6265),b=o(46),y=o(7035),h=o(2668),M=o(1310),f=o(8637),P=o(8174),I=o(8480),Z=o(5732),V=o(8675),q=o(4807);function _e($,de){1&$&&t._UZ(0,"util-progress",3),2&$&&t.Q6J("bar",!0)}const Te=function(){return{standalone:!0}};let Oe=(()=>{class $ extends f.H{componentName(){return"UserSelectComponent"}constructor(O,D,v,p,R,L){super(O,D,v),this.userService=R,this.popupService=L,this.enableAdd=!0,this.searchEndpoint=M.wl.endpoint,this.items=[],this.selectedItem=null,this.selected=new t.vpe,p.isAdmin()&&(this.searchEndpoint=M.wl.adminEndpoint)}ngOnInit(){this.loading=!1,this.search({page:0,size:10,q:null})}searchForEvent(O){let D=P.g.removeSpecialCharacters(O.target?.value);D.length>2&&this.search({page:0,size:10,q:D})}onSelected(O){null==O?this.selected.emit(null):this.items.find(D=>D.name==O.name)?this.selected.emit(this.selectedItem):this.popupService.open(h.M,{id:null,title:O.title}).componentInstance.onCompleted.subscribe(v=>{this.selected.emit(v)})}search(O){this.loading=!0;let D=this.componentKey(x.Z.USERS.SEARCH(O));this.userService.search(D,this.searchEndpoint,O),this.subscribe(D,null,(v,p)=>{this.items=p.data.content,this.loading=!1})}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(I.e),t.Y36(Z.K),t.Y36(V.x))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-user-select"]],inputs:{enableAdd:"enableAdd",searchEndpoint:"searchEndpoint",selectedItem:"selectedItem"},outputs:{selected:"selected"},features:[t.qOj],decls:4,vars:8,consts:[["for","user-select",1,"visually-hidden"],[3,"bar",4,"ngIf"],["id","user-select","bindLabel","label","placeholder","Search User",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]],template:function(D,v){1&D&&(t.TgZ(0,"label",0),t._uU(1,"User"),t.qZA(),t.YNc(2,_e,1,1,"util-progress",1),t.TgZ(3,"ng-select",2),t.NdJ("keyup",function(R){return v.searchForEvent(R)})("ngModelChange",function(R){return v.selectedItem=R})("change",function(R){return v.onSelected(R)}),t.qZA()),2&D&&(t.xp6(2),t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("items",v.items)("hideSelected",!0)("multiple",!1)("addTag",v.enableAdd)("ngModel",v.selectedItem)("ngModelOptions",t.DdM(7,Te)))},dependencies:[S.O5,c.JJ,c.On,U.t,q.w9]})}return $})();function me($,de){1&$&&t._UZ(0,"util-progress",66),2&$&&t.Q6J("bar",!0)}function ge($,de){if(1&$){const O=t.EpF();t.TgZ(0,"div",67)(1,"label",68),t._uU(2),t.qZA(),t.TgZ(3,"app-location-select",69),t.NdJ("selected",function(v){const R=t.CHM(O).$implicit,L=t.oxw();return t.KtG(L.onLocationSelected(v,R.type))}),t.qZA()()}if(2&$){const O=de.$implicit;t.xp6(1),t.s9C("for",O.type.label),t.xp6(1),t.Oqu(O.type.label),t.xp6(1),t.Q6J("preload",null==O.type.parent_id)("items",O.locations)("selectedItem",O.selectedLocation)}}function Ne($,de){1&$&&(t.TgZ(0,"em",13),t._uU(1," Location is required! "),t.qZA())}let Ae=(()=>{class $ extends d.n{constructor(O,D,v,p,R,L,J,Q,j){super(O,D,v,p,j),this.vendorService=R,this.notifier=L,this.locationTypeService=J,this.locationService=Q,this.config=T.j,this.vendorForm=new c.cw({name:new c.NI("",[c.kI.required,c.kI.minLength(3)]),type:new c.NI("GENERAL",[c.kI.required]),commission_percentage:new c.NI(0,[c.kI.required,c.kI.min(0),c.kI.max(100)]),description:new c.NI("",[c.kI.required,c.kI.minLength(10)]),logo:new c.NI(null,[c.kI.required]),banner:new c.NI(null),owner_id:new c.NI(null,[]),supplier:new c.NI(!1,[]),flagship:new c.NI(!1,[]),authorized_dealer:new c.NI(!1,[]),ecommerce_activated:new c.NI(!1,[]),phone:new c.NI(null,[]),account_name:new c.NI(null,[]),account_number:new c.NI(null,[]),bank_name:new c.NI(null,[]),branch_name:new c.NI(null,[]),routing:new c.NI(null,[]),address:new c.cw({address_line_one:new c.NI(null,[c.kI.required]),address_line_two:new c.NI(null,[]),altitude:new c.NI(0,[c.kI.required]),latitude:new c.NI(0,[c.kI.required]),longitude:new c.NI(0,[c.kI.required]),title:new c.NI(null,[]),zip_code:new c.NI(null,[]),location_id:new c.NI(null,[])})}),this.selectedOwner=null,this.locations=[],null!=j.title&&this.vendorForm.controls.name.setValue(j.name)}componentName(){return"VendorUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Vendors",link:"/admin/vendors",active:!1},{text:"Upsert",link:null,active:!0}]}ngOnInit(){super.ngOnInit(),this.fetchLocationTypes({page:0,size:100,q:null})}initialize(O){this.loading=!0,this.fetchEx(O)}onSubmit(){this.vendorForm.valid&&this.upsert(this.exId)}onLogoPicked(O){O.length>0&&this.vendorForm.controls.logo.setValue(O[0].image_url)}onBannerPicked(O){O.length>0&&this.vendorForm.controls.banner.setValue(O[0].image_url)}getExLogo(){let O=this.vendorForm.controls.logo.value;return null==O?[]:[{image_url:O,thumb_url:O}]}getExBanner(){let O=this.vendorForm.controls.banner.value;return null==O?[]:[{image_url:O,thumb_url:O}]}getConfig(){return this.config}getListPageRoute(){return T.n.list}upsert(O){this.loading=!0;let D=this.componentKey(x.Z.VENDORS.UPSERT(O));this.vendorService.upsert(D,this.vendorForm.value,O),this.subscribe(D,null,(v,p)=>{this.notifier.success("Success","Vendor has been "+(O?"updated":"created")),this.vendorForm.reset(),this.onSuccess(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{let R=p.data;this.loading=!1,this.notifier.warning("Failed!",R.error.message)})}populateForm(O){this.vendorForm.controls.name.setValue(O.name),this.vendorForm.controls.type.setValue(O.type),this.vendorForm.controls.commission_percentage.setValue(O.commission_percentage),this.vendorForm.controls.description.setValue(O.description),this.vendorForm.controls.logo.setValue(null==O.logo?null:O.logo),this.vendorForm.controls.banner.setValue(null==O.banner?null:O.banner),this.vendorForm.controls.owner_id.setValue(null==O.owner?null:O.owner.id),this.vendorForm.controls.supplier.setValue(O.supplier),this.vendorForm.controls.flagship.setValue(O.flagship),this.vendorForm.controls.authorized_dealer.setValue(O.authorized_dealer),this.vendorForm.controls.ecommerce_activated.setValue(O.ecommerce_activated),this.vendorForm.controls.phone.setValue(O.phone),this.vendorForm.controls.account_name.setValue(O.account_name),this.vendorForm.controls.account_number.setValue(O.account_number),this.vendorForm.controls.bank_name.setValue(O.bank_name),this.vendorForm.controls.branch_name.setValue(O.branch_name),this.vendorForm.controls.routing.setValue(O.routing),this.vendorForm.controls.address.controls.address_line_one.setValue(O.address.address_line_one),this.vendorForm.controls.address.controls.address_line_two.setValue(O.address.address_line_two),this.vendorForm.controls.address.controls.altitude.setValue(O.address.altitude),this.vendorForm.controls.address.controls.latitude.setValue(O.address.latitude),this.vendorForm.controls.address.controls.longitude.setValue(O.address.longitude),this.vendorForm.controls.address.controls.title.setValue(O.address.title),this.vendorForm.controls.address.controls.zip_code.setValue(O.address.zip_code),this.vendorForm.controls.address.controls.location_id.setValue(O.address.location_id),this.selectedOwner=O.owner,new Map(Object.entries(O.address.locations_tree)).forEach((D,v)=>{let p=this.locations.find(R=>R.type.code==v)?.type;null!=p&&this.onLocationSelected(D,p)})}fetchEx(O){let D=this.componentKey(x.Z.VENDORS.GET(O));this.vendorService.fetchSingle(D,O),this.subscribe(D,null,(v,p)=>{this.loading=!1,this.populateForm(p.data)}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{console.log(p.data),this.loading=!1})}fetchLocationTypes(O){this.loading=!0;const D=this.componentKey(x.Z.LOCATIONTYPES.SEARCH(O));this.locationTypeService.search(D,this.config.locationTypeEndpoint,O),this.subscribe(D,null,(v,p)=>{let R=p.data.content;R.sort((L,J)=>L.level-J.level),this.locations=R.map(L=>({type:L,locations:[],selectedLocation:null})),this.loading=!1}),this.subscribe(this.getErrorKey(D),null,(v,p)=>{this.notifier.error("Error",p.data.error.message)})}fetchChildLocations(O,D){this.loading=!0;const v=this.componentKey(x.Z.LOCATIONS.SEARCH(O));this.locationService.searchChildren(v,this.config.locationEndpoint,O),this.subscribe(v,null,(p,R)=>{D(R.data.content),this.loading=!1}),this.subscribe(this.getErrorKey(v),null,(p,R)=>{this.notifier.error("Error",R.data.error.message)})}onLocationSelected(O,D){this.locations=this.locations.map(p=>p.type.id==D.id?{...p,selectedLocation:O}:p.type.level>D.level?{...p,selectedLocation:null}:p),console.log("selected location",this.locations);let v=this.locations.filter(p=>null!=p.selectedLocation).sort((p,R)=>R.type.level-p.type.level);if(console.log("sorted and filtered",v),v.length>0){let p=v[0].selectedLocation;this.vendorForm.controls.address.controls.location_id.setValue(null==p?null:p.id)}console.log("selected location in control",this.vendorForm.controls.address.controls.location_id.value),null!=O&&this.fetchChildLocations({page:0,size:100,q:null,parent_id:O.id},p=>{if(0==p.length)return;let R=p[0].type_id;this.locations=this.locations.map(L=>L.type.id==R?{...L,locations:p}:L)})}onOwnerSelected(O){this.selectedOwner=O,this.vendorForm.controls.owner_id.setValue(null==O?null:O.id)}static#e=this.\u0275fac=function(D){return new(D||$)(t.Y36(A.Y),t.Y36(B.F0),t.Y36(l.z),t.Y36(B.gz),t.Y36(e.n),t.Y36(E.l),t.Y36(u.I),t.Y36(N.a),t.Y36(g.WI))};static#_=this.\u0275cmp=t.Xpm({type:$,selectors:[["app-vendor-upsert"]],features:[t.qOj],decls:136,vars:18,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"mb-4"],[1,"card-name"],[1,"text-warning"],[1,"error"],[3,"formGroup"],[1,"col-sm-6","col-lg-3","mb-3"],["for","name-input",1,"form-label"],["type","text","id","name-input","placeholder","Enter Name","name","name","formControlName","name",1,"form-control"],[1,"text-danger"],[1,"col-6","col-sm-6","col-lg-3","mb-3"],["for","type-input",1,"form-label"],["id","type-input","formControlName","type",1,"form-select"],["value","GENERAL"],["value","RESTAURANT"],["for","owner-input",1,"form-label"],["id","owner-input",3,"selectedItem","selected"],["for","comm-input",1,"form-label"],["type","text","id","comm-input","placeholder","Enter Commission","name","commission_percentage","formControlName","commission_percentage",1,"form-control"],[1,"col-6","mb-3"],[1,"form-label"],["title","Logo",3,"multiSelect","existingImages","required","onUploaded"],["title","Banner",3,"multiSelect","existingImages","required","onUploaded"],[1,"mb-3"],["for","description",1,"form-label"],["id","description","formControlName","description"],[1,"row","col-12"],[1,"col-sm-6"],[1,"form-check","form-check-primary","form-checkbox-outline","mb-3"],["type","checkbox","id","supplier","formControlName","supplier",1,"form-check-input"],["for","supplier",1,"form-check-label"],["type","checkbox","id","flagship","formControlName","flagship",1,"form-check-input"],["for","flagship",1,"form-check-label"],["type","checkbox","id","authorized_dealer","formControlName","authorized_dealer",1,"form-check-input"],["for","authorized_dealer",1,"form-check-label"],["type","checkbox","id","ecommerce_activated","formControlName","ecommerce_activated",1,"form-check-input"],["for","ecommerce_activated",1,"form-check-label"],[1,"row","col-sm-6"],[1,"col-6","col-md-6","mb-3"],["for","account_name-input",1,"form-label"],["type","text","id","account_name-input","placeholder","Account Name","name","account_name","formControlName","account_name",1,"form-control"],["for","account_number-input",1,"form-label"],["type","text","id","account_number-input","placeholder","Account Number","name","account_number","formControlName","account_number",1,"form-control"],[1,"col-md-6","mb-3"],["for","bank_name-input",1,"form-label"],["type","text","id","bank_name-input","placeholder","Bank Name","name","bank_name","formControlName","bank_name",1,"form-control"],["for","branch_name-input",1,"form-label"],["type","text","id","branch_name-input","placeholder","Branch Name","name","branch_name","formControlName","branch_name",1,"form-control"],["for","routing-input",1,"form-label"],["type","text","id","routing-input","placeholder","Routing","name","routing","formControlName","routing",1,"form-control"],["formGroupName","address"],[1,"section"],[1,"col-sm-6","mb-3"],["for","addr1-input",1,"form-label"],["type","text","id","addr1-input","placeholder","Enter Address Line 1","name","address_line_one","formControlName","address_line_one",1,"form-control"],["for","address_line_two-input",1,"form-label"],["type","text","id","address_line_two-input","placeholder","Enter Address Line 2","name","address_line_two","formControlName","address_line_two",1,"form-control"],["class","col-6 col-sm-6 mb-3",4,"ngFor","ngForOf"],["class","text-danger",4,"ngIf"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"],[1,"col-6","col-sm-6","mb-3"],[1,"form-label",3,"for"],[3,"preload","items","selectedItem","selected"]],template:function(D,v){1&D&&(t.YNc(0,me,1,1,"util-progress",0),t.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4",6),t._uU(7,"Create/Update Vendor"),t.qZA(),t.TgZ(8,"em",7),t._uU(9," Form fields with "),t.TgZ(10,"em",8),t._uU(11,"*"),t.qZA(),t._uU(12," are required. "),t.qZA()(),t.TgZ(13,"form",9)(14,"div",1)(15,"div",10)(16,"label",11),t._uU(17,"Name"),t.TgZ(18,"em",8),t._uU(19,"*"),t.qZA()(),t._UZ(20,"input",12),t.TgZ(21,"em",13),t._uU(22),t.qZA()(),t.TgZ(23,"div",14)(24,"label",15),t._uU(25,"Type"),t.TgZ(26,"em",8),t._uU(27,"*"),t.qZA()(),t.TgZ(28,"select",16)(29,"option",17),t._uU(30,"General"),t.qZA(),t.TgZ(31,"option",18),t._uU(32,"Restaurant"),t.qZA()(),t.TgZ(33,"em",13),t._uU(34),t.qZA()(),t.TgZ(35,"div",14)(36,"label",19),t._uU(37,"Owner"),t.qZA(),t.TgZ(38,"app-user-select",20),t.NdJ("selected",function(R){return v.onOwnerSelected(R)}),t.qZA(),t._UZ(39,"em",13),t.qZA(),t.TgZ(40,"div",10)(41,"label",21),t._uU(42,"Commission"),t.TgZ(43,"em",8),t._uU(44,"*"),t.qZA()(),t._UZ(45,"input",22),t.TgZ(46,"em",13),t._uU(47),t.qZA()()(),t.TgZ(48,"div",1)(49,"div",23)(50,"label",24),t._uU(51,"Logo"),t.TgZ(52,"em",8),t._uU(53,"*"),t.qZA()(),t.TgZ(54,"app-file-picker",25),t.NdJ("onUploaded",function(R){return v.onLogoPicked(R)}),t.qZA()(),t.TgZ(55,"div",23)(56,"label",24),t._uU(57,"Banner"),t.qZA(),t.TgZ(58,"app-file-picker",26),t.NdJ("onUploaded",function(R){return v.onBannerPicked(R)}),t.qZA()()(),t.TgZ(59,"div",27)(60,"label",28),t._uU(61,"Description"),t.TgZ(62,"em",8),t._uU(63,"*"),t.qZA()(),t._UZ(64,"app-editor",29),t.TgZ(65,"em",13),t._uU(66),t.qZA()(),t.TgZ(67,"div",30)(68,"div",31)(69,"h5",5),t._uU(70,"Vendor Flags"),t.qZA(),t.TgZ(71,"div",32),t._UZ(72,"input",33),t.TgZ(73,"label",34),t._uU(74,"Vendor is a supplier"),t.qZA()(),t.TgZ(75,"div",32),t._UZ(76,"input",35),t.TgZ(77,"label",36),t._uU(78,"Flagship Store"),t.qZA()(),t.TgZ(79,"div",32),t._UZ(80,"input",37),t.TgZ(81,"label",38),t._uU(82,"Vendor is an authorized Dealer"),t.qZA()(),t.TgZ(83,"div",32),t._UZ(84,"input",39),t.TgZ(85,"label",40),t._uU(86,"Ecommerce Activated"),t.qZA()()(),t.TgZ(87,"div",41)(88,"div",1)(89,"h5",27),t._uU(90,"Bank Information"),t.qZA(),t.TgZ(91,"div",42)(92,"label",43),t._uU(93,"Account Name"),t.qZA(),t._UZ(94,"input",44),t.qZA(),t.TgZ(95,"div",42)(96,"label",45),t._uU(97,"Account Number"),t.qZA(),t._UZ(98,"input",46),t.qZA(),t.TgZ(99,"div",47)(100,"label",48),t._uU(101,"Bank Name"),t.qZA(),t._UZ(102,"input",49),t.qZA(),t.TgZ(103,"div",42)(104,"label",50),t._uU(105,"Branch Name"),t.qZA(),t._UZ(106,"input",51),t.qZA(),t.TgZ(107,"div",42)(108,"label",52),t._uU(109,"Routing"),t.qZA(),t._UZ(110,"input",53),t.qZA()()()(),t.TgZ(111,"div",54)(112,"section",55)(113,"h5",27),t._uU(114,"Address"),t.qZA(),t.TgZ(115,"div",1)(116,"div",56)(117,"label",57),t._uU(118,"Address Line 1"),t.TgZ(119,"em",8),t._uU(120,"*"),t.qZA()(),t._UZ(121,"input",58),t.TgZ(122,"em",13),t._uU(123),t.qZA()(),t.TgZ(124,"div",56)(125,"label",59),t._uU(126,"Address Line 2"),t.qZA(),t._UZ(127,"input",60),t.qZA()(),t.TgZ(128,"div",1),t.YNc(129,ge,4,5,"div",61),t.YNc(130,Ne,2,0,"em",62),t.qZA()()(),t.TgZ(131,"div",63)(132,"button",64),t.NdJ("click",function(){return v.onCancel()}),t._uU(133," Cancel "),t.qZA(),t.TgZ(134,"button",65),t.NdJ("click",function(){return v.onSubmit()}),t._uU(135," Submit "),t.qZA()()()()()()()),2&D&&(t.Q6J("ngIf",v.loading),t.xp6(1),t.Q6J("@loaded",!v.loading),t.xp6(12),t.Q6J("formGroup",v.vendorForm),t.xp6(9),t.hij(" ",v.errMsg(v.vendorForm,"name","minLength","Name should be at least 3 characters!")," "),t.xp6(12),t.hij(" ",v.errMsg(v.vendorForm,"type","required","Must select a type!")," "),t.xp6(4),t.Q6J("selectedItem",v.selectedOwner),t.xp6(9),t.hij(" ",v.errMsg(v.vendorForm,"commission_percentage","minLength","Name should be at least 3 characters!")," "),t.xp6(7),t.Q6J("multiSelect",!0)("existingImages",v.getExLogo())("required",!1),t.xp6(4),t.Q6J("multiSelect",!0)("existingImages",v.getExBanner())("required",!1),t.xp6(8),t.hij(" ",v.errMsg(v.vendorForm,"description","minLength","Description should be at least 10 characters!")," "),t.xp6(57),t.hij(" ",v.errMsg(v.vendorForm.controls.address,"address_line_one","required","This field is required!")," "),t.xp6(6),t.Q6J("ngForOf",v.locations),t.xp6(1),t.Q6J("ngIf",null==v.vendorForm.controls.address.controls.location_id.value),t.xp6(4),t.Q6J("ngClass",v.vendorForm.valid?"":"disabled"))},dependencies:[S.mk,S.sg,S.O5,c._Y,c.YN,c.Kr,c.Fj,c.Wl,c.EJ,c.JJ,c.JL,c.sg,c.u,c.x0,U.t,C.P,b._,y.P,Oe]})}return $})()},5734:(z,K,o)=>{o.d(K,{j:()=>x,n:()=>g});var d=o(6405),T=o(2771),c=o(6032);let x={defaultLayout:d.A.GRID,upsertOnDialog:!1,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:T.E.VENDORS.VENDOR_ENDPOINT,delEndpoint:T.E.VENDORS.VENDOR_ENDPOINT,locationTypeEndpoint:c.s.LOCATIONTYPES.LOCATIONTYPE_ENDPOINT,locationEndpoint:c.s.LOCATIONS.LOCATION_ENDPOINT,showApprovalButton:!1},g={list:"/admin/inventory/vendors",create:"/admin/inventory/vendors/create",update(t){return null==t?this.create:"/admin/inventory/vendors/"+t+"/update"}}},7405:(z,K,o)=>{o.d(K,{n:()=>B});var d=o(1547),T=o(2771),c=o(5879),x=o(8480),g=o(5462),t=o(9862),A=o(30);let B=(()=>{class l extends d.b{constructor(E,u,N,S){super(E,u),this.http=N,this.eventBusService=S}search(E,u,N){let S=T.E.VENDORS.SEARCH(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U.body)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}myVendors(E,u,N={}){let S=T.E.VENDORS.MY_VENDORS(u,N);this.http.get(S).subscribe(U=>{this.eventBusService.publish(E,U)},U=>{this.handleError(U,C=>{this.search(E,u,N)},C=>{this.eventBusService.publish(this.getErrorKey(E),C)})})}searchCustomers(E,u){let N=T.E.VENDORS.SEARCH_CUSTOMERS(u);this.http.get(N).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.searchCustomers(E,u)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}fetchSingle(E,u){this.http.get(T.E.VENDORS.GET(u)).subscribe(N=>{this.eventBusService.publish(E,N.body)},N=>{this.handleError(N,S=>{this.fetchSingle(E,u)},S=>{this.eventBusService.publish(this.getErrorKey(E),S)})})}toggleApproval(E,u,N){this.http.patch(T.E.VENDORS.TOGGLE_APPROVAL(u,N),{}).subscribe(S=>{this.eventBusService.publish(E,S)},S=>{this.handleError(S,U=>{this.fetchSingle(E,u)},U=>{this.eventBusService.publish(this.getErrorKey(E),U)})})}upsert(E,u,N){let S=null==N?T.E.VENDORS.CREATE():T.E.VENDORS.UPDATE(N);(null==N?this.http.post(S,u):this.http.patch(S,u)).subscribe(C=>{this.eventBusService.publish(E,C)},C=>{this.handleError(C,b=>{this.upsert(E,u,N)},b=>{this.eventBusService.publish(this.getErrorKey(E),b)})})}static#e=this.\u0275fac=function(u){return new(u||l)(c.LFG(x.e),c.LFG(g.l),c.LFG(t.eN),c.LFG(A.Y))};static#_=this.\u0275prov=c.Yz7({token:l,factory:l.\u0275fac,providedIn:"root"})}return l})()}}]); \ No newline at end of file diff --git a/bn-BN/424.c731aac7a204dc96.js b/en-US/424.05662c3e665c7706.js similarity index 65% rename from bn-BN/424.c731aac7a204dc96.js rename to en-US/424.05662c3e665c7706.js index e17a6a0..3c94d9f 100644 --- a/bn-BN/424.c731aac7a204dc96.js +++ b/en-US/424.05662c3e665c7706.js @@ -1,4 +1,4 @@ -(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[424],{7930:(we,$t,gt)=>{we=gt.nmd(we),function(at){const Tt=at.en=at.en||{};Tt.dictionary=Object.assign(Tt.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit image":"Edit image","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Failed to determine category of edited image.":"Failed to determine category of edited image.","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert image with file manager":"Insert image with file manager","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Insert with file manager":"Insert with file manager","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous","Processing the edited image.":"Processing the edited image.",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Replace from computer":"Replace from computer","Replace image":"Replace image","Replace image from computer":"Replace image from computer","Replace image with file manager":"Replace image with file manager","Replace with file manager":"Replace with file manager","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Server failed to process the image.":"Server failed to process the image.","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload from computer":"Upload from computer","Upload image from computer":"Upload image from computer","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),self,we.exports=(()=>{var at={4959:(et,ct,L)=>{const dt=L(1103),ot={};for(const Z of Object.keys(dt))ot[dt[Z]]=Z;const it={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};et.exports=it;for(const Z of Object.keys(it)){if(!("channels"in it[Z]))throw new Error("missing channels property: "+Z);if(!("labels"in it[Z]))throw new Error("missing channel labels property: "+Z);if(it[Z].labels.length!==it[Z].channels)throw new Error("channel and label counts mismatch: "+Z);const{channels:Q,labels:rt}=it[Z];delete it[Z].channels,delete it[Z].labels,Object.defineProperty(it[Z],"channels",{value:Q}),Object.defineProperty(it[Z],"labels",{value:rt})}it.rgb.hsl=function(Z){const Q=Z[0]/255,rt=Z[1]/255,U=Z[2]/255,pt=Math.min(Q,rt,U),_t=Math.max(Q,rt,U),xt=_t-pt;let nt,Mt;_t===pt?nt=0:Q===_t?nt=(rt-U)/xt:rt===_t?nt=2+(U-Q)/xt:U===_t&&(nt=4+(Q-rt)/xt),nt=Math.min(60*nt,360),nt<0&&(nt+=360);const It=(pt+_t)/2;return Mt=_t===pt?0:It<=.5?xt/(_t+pt):xt/(2-_t-pt),[nt,100*Mt,100*It]},it.rgb.hsv=function(Z){let Q,rt,U,pt,_t;const xt=Z[0]/255,nt=Z[1]/255,Mt=Z[2]/255,It=Math.max(xt,nt,Mt),bt=It-Math.min(xt,nt,Mt),St=function(W){return(It-W)/6/bt+.5};return 0===bt?(pt=0,_t=0):(_t=bt/It,Q=St(xt),rt=St(nt),U=St(Mt),xt===It?pt=U-rt:nt===It?pt=.3333333333333333+Q-U:Mt===It&&(pt=.6666666666666666+rt-Q),pt<0?pt+=1:pt>1&&(pt-=1)),[360*pt,100*_t,100*It]},it.rgb.hwb=function(Z){const Q=Z[0],rt=Z[1];let U=Z[2];const pt=it.rgb.hsl(Z)[0],_t=1/255*Math.min(Q,Math.min(rt,U));return U=1-.00392156862745098*Math.max(Q,Math.max(rt,U)),[pt,100*_t,100*U]},it.rgb.cmyk=function(Z){const Q=Z[0]/255,rt=Z[1]/255,U=Z[2]/255,pt=Math.min(1-Q,1-rt,1-U);return[100*((1-Q-pt)/(1-pt)||0),100*((1-rt-pt)/(1-pt)||0),100*((1-U-pt)/(1-pt)||0),100*pt]},it.rgb.keyword=function(Z){const Q=ot[Z];if(Q)return Q;let rt,U=1/0;for(const xt of Object.keys(dt)){const Mt=((pt=Z)[0]-(_t=dt[xt])[0])**2+(pt[1]-_t[1])**2+(pt[2]-_t[2])**2;Mt.04045?((Q+.055)/1.055)**2.4:Q/12.92,rt=rt>.04045?((rt+.055)/1.055)**2.4:rt/12.92,U=U>.04045?((U+.055)/1.055)**2.4:U/12.92,[100*(.4124*Q+.3576*rt+.1805*U),100*(.2126*Q+.7152*rt+.0722*U),100*(.0193*Q+.1192*rt+.9505*U)]},it.rgb.lab=function(Z){const Q=it.rgb.xyz(Z);let rt=Q[0],U=Q[1],pt=Q[2];return rt/=95.047,U/=100,pt/=108.883,rt=rt>.008856?rt**.3333333333333333:7.787*rt+.13793103448275862,U=U>.008856?U**.3333333333333333:7.787*U+.13793103448275862,pt=pt>.008856?pt**.3333333333333333:7.787*pt+.13793103448275862,[116*U-16,500*(rt-U),200*(U-pt)]},it.hsl.rgb=function(Z){const Q=Z[0]/360,rt=Z[1]/100,U=Z[2]/100;let pt,_t,xt;if(0===rt)return xt=255*U,[xt,xt,xt];pt=U<.5?U*(1+rt):U+rt-U*rt;const nt=2*U-pt,Mt=[0,0,0];for(let It=0;It<3;It++)_t=Q+.3333333333333333*-(It-1),_t<0&&_t++,_t>1&&_t--,xt=6*_t<1?nt+6*(pt-nt)*_t:2*_t<1?pt:3*_t<2?nt+(pt-nt)*(.6666666666666666-_t)*6:nt,Mt[It]=255*xt;return Mt},it.hsl.hsv=function(Z){const Q=Z[0];let rt=Z[1]/100,U=Z[2]/100,pt=rt;const _t=Math.max(U,.01);return U*=2,rt*=U<=1?U:2-U,pt*=_t<=1?_t:2-_t,[Q,100*(0===U?2*pt/(_t+pt):2*rt/(U+rt)),(U+rt)/2*100]},it.hsv.rgb=function(Z){const Q=Z[0]/60,rt=Z[1]/100;let U=Z[2]/100;const pt=Math.floor(Q)%6,_t=Q-Math.floor(Q),xt=255*U*(1-rt),nt=255*U*(1-rt*_t),Mt=255*U*(1-rt*(1-_t));switch(U*=255,pt){case 0:return[U,Mt,xt];case 1:return[nt,U,xt];case 2:return[xt,U,Mt];case 3:return[xt,nt,U];case 4:return[Mt,xt,U];case 5:return[U,xt,nt]}},it.hsv.hsl=function(Z){const Q=Z[0],rt=Z[1]/100,U=Z[2]/100,pt=Math.max(U,.01);let _t,xt;xt=(2-rt)*U;const nt=(2-rt)*pt;return _t=rt*pt,_t/=nt<=1?nt:2-nt,_t=_t||0,xt/=2,[Q,100*_t,100*xt]},it.hwb.rgb=function(Z){const Q=Z[0]/360;let rt=Z[1]/100,U=Z[2]/100;const pt=rt+U;let _t;pt>1&&(rt/=pt,U/=pt);const xt=Math.floor(6*Q),nt=1-U;_t=6*Q-xt,1&xt&&(_t=1-_t);const Mt=rt+_t*(nt-rt);let It,bt,St;switch(xt){default:case 6:case 0:It=nt,bt=Mt,St=rt;break;case 1:It=Mt,bt=nt,St=rt;break;case 2:It=rt,bt=nt,St=Mt;break;case 3:It=rt,bt=Mt,St=nt;break;case 4:It=Mt,bt=rt,St=nt;break;case 5:It=nt,bt=rt,St=Mt}return[255*It,255*bt,255*St]},it.cmyk.rgb=function(Z){const rt=Z[1]/100,U=Z[2]/100,pt=Z[3]/100;return[255*(1-Math.min(1,Z[0]/100*(1-pt)+pt)),255*(1-Math.min(1,rt*(1-pt)+pt)),255*(1-Math.min(1,U*(1-pt)+pt))]},it.xyz.rgb=function(Z){const Q=Z[0]/100,rt=Z[1]/100,U=Z[2]/100;let pt,_t,xt;return pt=3.2406*Q+-1.5372*rt+-.4986*U,_t=-.9689*Q+1.8758*rt+.0415*U,xt=.0557*Q+-.204*rt+1.057*U,pt=pt>.0031308?1.055*pt**.4166666666666667-.055:12.92*pt,_t=_t>.0031308?1.055*_t**.4166666666666667-.055:12.92*_t,xt=xt>.0031308?1.055*xt**.4166666666666667-.055:12.92*xt,pt=Math.min(Math.max(0,pt),1),_t=Math.min(Math.max(0,_t),1),xt=Math.min(Math.max(0,xt),1),[255*pt,255*_t,255*xt]},it.xyz.lab=function(Z){let Q=Z[0],rt=Z[1],U=Z[2];return Q/=95.047,rt/=100,U/=108.883,Q=Q>.008856?Q**.3333333333333333:7.787*Q+.13793103448275862,rt=rt>.008856?rt**.3333333333333333:7.787*rt+.13793103448275862,U=U>.008856?U**.3333333333333333:7.787*U+.13793103448275862,[116*rt-16,500*(Q-rt),200*(rt-U)]},it.lab.xyz=function(Z){let Q,rt,U;rt=(Z[0]+16)/116,Q=Z[1]/500+rt,U=rt-Z[2]/200;const pt=rt**3,_t=Q**3,xt=U**3;return rt=pt>.008856?pt:(rt-.13793103448275862)/7.787,Q=_t>.008856?_t:(Q-.13793103448275862)/7.787,U=xt>.008856?xt:(U-.13793103448275862)/7.787,Q*=95.047,rt*=100,U*=108.883,[Q,rt,U]},it.lab.lch=function(Z){const Q=Z[0],rt=Z[1],U=Z[2];let pt;return pt=360*Math.atan2(U,rt)/2/Math.PI,pt<0&&(pt+=360),[Q,Math.sqrt(rt*rt+U*U),pt]},it.lch.lab=function(Z){const rt=Z[1],U=Z[2]/360*2*Math.PI;return[Z[0],rt*Math.cos(U),rt*Math.sin(U)]},it.rgb.ansi16=function(Z,Q=null){const[rt,U,pt]=Z;let _t=null===Q?it.rgb.hsv(Z)[2]:Q;if(_t=Math.round(_t/50),0===_t)return 30;let xt=30+(Math.round(pt/255)<<2|Math.round(U/255)<<1|Math.round(rt/255));return 2===_t&&(xt+=60),xt},it.hsv.ansi16=function(Z){return it.rgb.ansi16(it.hsv.rgb(Z),Z[2])},it.rgb.ansi256=function(Z){const Q=Z[0],rt=Z[1],U=Z[2];return Q===rt&&rt===U?Q<8?16:Q>248?231:Math.round((Q-8)/247*24)+232:16+36*Math.round(Q/255*5)+6*Math.round(rt/255*5)+Math.round(U/255*5)},it.ansi16.rgb=function(Z){let Q=Z%10;if(0===Q||7===Q)return Z>50&&(Q+=3.5),Q=Q/10.5*255,[Q,Q,Q];const rt=.5*(1+~~(Z>50));return[(1&Q)*rt*255,(Q>>1&1)*rt*255,(Q>>2&1)*rt*255]},it.ansi256.rgb=function(Z){if(Z>=232){const rt=10*(Z-232)+8;return[rt,rt,rt]}let Q;return Z-=16,[Math.floor(Z/36)/5*255,Math.floor((Q=Z%36)/6)/5*255,Q%6/5*255]},it.rgb.hex=function(Z){const Q=(((255&Math.round(Z[0]))<<16)+((255&Math.round(Z[1]))<<8)+(255&Math.round(Z[2]))).toString(16).toUpperCase();return"000000".substring(Q.length)+Q},it.hex.rgb=function(Z){const Q=Z.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!Q)return[0,0,0];let rt=Q[0];3===Q[0].length&&(rt=rt.split("").map(pt=>pt+pt).join(""));const U=parseInt(rt,16);return[U>>16&255,U>>8&255,255&U]},it.rgb.hcg=function(Z){const Q=Z[0]/255,rt=Z[1]/255,U=Z[2]/255,pt=Math.max(Math.max(Q,rt),U),_t=Math.min(Math.min(Q,rt),U),xt=pt-_t;let nt,Mt;return nt=xt<1?_t/(1-xt):0,Mt=xt<=0?0:pt===Q?(rt-U)/xt%6:pt===rt?2+(U-Q)/xt:4+(Q-rt)/xt,Mt/=6,Mt%=1,[360*Mt,100*xt,100*nt]},it.hsl.hcg=function(Z){const Q=Z[1]/100,rt=Z[2]/100,U=rt<.5?2*Q*rt:2*Q*(1-rt);let pt=0;return U<1&&(pt=(rt-.5*U)/(1-U)),[Z[0],100*U,100*pt]},it.hsv.hcg=function(Z){const rt=Z[2]/100,U=Z[1]/100*rt;let pt=0;return U<1&&(pt=(rt-U)/(1-U)),[Z[0],100*U,100*pt]},it.hcg.rgb=function(Z){const rt=Z[1]/100,U=Z[2]/100;if(0===rt)return[255*U,255*U,255*U];const pt=[0,0,0],_t=Z[0]/360%1*6,xt=_t%1,nt=1-xt;let Mt=0;switch(Math.floor(_t)){case 0:pt[0]=1,pt[1]=xt,pt[2]=0;break;case 1:pt[0]=nt,pt[1]=1,pt[2]=0;break;case 2:pt[0]=0,pt[1]=1,pt[2]=xt;break;case 3:pt[0]=0,pt[1]=nt,pt[2]=1;break;case 4:pt[0]=xt,pt[1]=0,pt[2]=1;break;default:pt[0]=1,pt[1]=0,pt[2]=nt}return Mt=(1-rt)*U,[255*(rt*pt[0]+Mt),255*(rt*pt[1]+Mt),255*(rt*pt[2]+Mt)]},it.hcg.hsv=function(Z){const Q=Z[1]/100,rt=Q+Z[2]/100*(1-Q);let U=0;return rt>0&&(U=Q/rt),[Z[0],100*U,100*rt]},it.hcg.hsl=function(Z){const Q=Z[1]/100,rt=Z[2]/100*(1-Q)+.5*Q;let U=0;return rt>0&&rt<.5?U=Q/(2*rt):rt>=.5&&rt<1&&(U=Q/(2*(1-rt))),[Z[0],100*U,100*rt]},it.hcg.hwb=function(Z){const Q=Z[1]/100,rt=Q+Z[2]/100*(1-Q);return[Z[0],100*(rt-Q),100*(1-rt)]},it.hwb.hcg=function(Z){const rt=1-Z[2]/100,U=rt-Z[1]/100;let pt=0;return U<1&&(pt=(rt-U)/(1-U)),[Z[0],100*U,100*pt]},it.apple.rgb=function(Z){return[Z[0]/65535*255,Z[1]/65535*255,Z[2]/65535*255]},it.rgb.apple=function(Z){return[Z[0]/255*65535,Z[1]/255*65535,Z[2]/255*65535]},it.gray.rgb=function(Z){return[Z[0]/100*255,Z[0]/100*255,Z[0]/100*255]},it.gray.hsl=function(Z){return[0,0,Z[0]]},it.gray.hsv=it.gray.hsl,it.gray.hwb=function(Z){return[0,100,Z[0]]},it.gray.cmyk=function(Z){return[0,0,0,Z[0]]},it.gray.lab=function(Z){return[Z[0],0,0]},it.gray.hex=function(Z){const Q=255&Math.round(Z[0]/100*255),rt=((Q<<16)+(Q<<8)+Q).toString(16).toUpperCase();return"000000".substring(rt.length)+rt},it.rgb.gray=function(Z){return[(Z[0]+Z[1]+Z[2])/3/255*100]}},841:(et,ct,L)=>{const dt=L(4959),ot=L(9325),it={};Object.keys(dt).forEach(Z=>{it[Z]={},Object.defineProperty(it[Z],"channels",{value:dt[Z].channels}),Object.defineProperty(it[Z],"labels",{value:dt[Z].labels});const Q=ot(Z);Object.keys(Q).forEach(rt=>{const U=Q[rt];it[Z][rt]=function(pt){const _t=function(...xt){const nt=xt[0];if(null==nt)return nt;nt.length>1&&(xt=nt);const Mt=pt(xt);if("object"==typeof Mt)for(let It=Mt.length,bt=0;bt1&&(xt=nt),pt(xt))};return"conversion"in pt&&(_t.conversion=pt.conversion),_t}(U)})}),et.exports=it},9325:(et,ct,L)=>{const dt=L(4959);function it(Q,rt){return function(U){return rt(Q(U))}}function Z(Q,rt){const U=[rt[Q].parent,Q];let pt=dt[rt[Q].parent][Q],_t=rt[Q].parent;for(;rt[_t].parent;)U.unshift(rt[_t].parent),pt=it(dt[rt[_t].parent][_t],pt),_t=rt[_t].parent;return pt.conversion=U,pt}et.exports=function(Q){const rt=function ot(Q){const rt=function(){const pt={},_t=Object.keys(dt);for(let xt=_t.length,nt=0;nt{"use strict";et.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8603:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const Q=Z},3062:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const Q=Z},443:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,':root{--ck-image-processing-highlight-color:#f9fafa;--ck-image-processing-background-color:#e3e5e8}.ck.ck-editor__editable .image.image-processing{position:relative}.ck.ck-editor__editable .image.image-processing:before{animation:ck-image-processing-animation 2s linear infinite;background:linear-gradient(90deg,var(--ck-image-processing-background-color),var(--ck-image-processing-highlight-color),var(--ck-image-processing-background-color));background-size:200% 100%;content:"";height:100%;left:0;position:absolute;top:0;width:100%;z-index:1}.ck.ck-editor__editable .image.image-processing img{height:100%}@keyframes ck-image-processing-animation{0%{background-position:200% 0}to{background-position:-200% 0}}',"",{version:3,sources:["webpack://./../ckeditor5-ckbox/theme/ckboximageedit.css"],names:[],mappings:"AAKA,MAEC,6CAAyD,CACzD,8CACD,CAIE,gDACC,iBA2BD,CAzBC,uDAmBC,0DAA2D,CAR3D,oKAKC,CACD,yBAA0B,CAhB1B,UAAW,CAOX,WAAY,CAHZ,MAAO,CAFP,iBAAkB,CAClB,KAAM,CAKN,UAAW,CAHX,SAcD,CAEA,oDACC,WACD,CAKH,yCACC,GACC,0BACD,CACA,GACC,2BACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Based on default CKBox theme colors */\n\t--ck-image-processing-highlight-color: hsl(220, 10%, 98%);\n\t--ck-image-processing-background-color: hsl(220, 10%, 90%);\n}\n\n.ck.ck-editor__editable {\n\t& .image {\n\t\t&.image-processing {\n\t\t\tposition: relative;\n\n\t\t\t&:before {\n\t\t\t\tcontent: '';\n\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 0;\n\t\t\t\tleft: 0;\n\t\t\t\tz-index: 1;\n\n\t\t\t\theight: 100%;\n\t\t\t\twidth: 100%;\n\n\t\t\t\tbackground: linear-gradient(\n\t\t\t\t\t90deg,\n\t\t\t\t\tvar(--ck-image-processing-background-color),\n\t\t\t\t\tvar(--ck-image-processing-highlight-color),\n\t\t\t\t\tvar(--ck-image-processing-background-color)\n\t\t\t\t);\n\t\t\t\tbackground-size: 200% 100%;\n\n\t\t\t\tanimation: ck-image-processing-animation 2s linear infinite;\n\t\t\t}\n\n\t\t\t& img {\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n\n@keyframes ck-image-processing-animation {\n\t0% {\n\t\tbackground-position: 200% 0;\n\t}\n\t100% {\n\t\tbackground-position: -200% 0;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},903:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-style: solid;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tleft: -1px;\n\n\t\t\tborder-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tright: -1px;\n\n\t\t\tborder-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3143:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4717:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},9315:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const Q=Z},8733:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3508:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%;\n\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t\t\theight: auto;\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the
in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of
.\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\t\t}\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image-inline {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected inline image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\n\t\t\t/*\n\t\t\t * Make sure the native browser selection style is not displayed.\n\t\t\t * Inline image widgets have their own styles for the selected state and\n\t\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t\t */\n\t\t\t& ::selection {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t& .image-inline img {\n\t\theight: auto;\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},2640:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3535:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-image-insert-url .ck-image-insert-url__action-row{display:grid;grid-template-columns:repeat(2,1fr)}:root{--ck-image-insert-insert-by-url-width:250px}.ck.ck-image-insert-url{--ck-input-width:100%}.ck.ck-image-insert-url .ck-image-insert-url__action-row{grid-column-gap:var(--ck-spacing-large);margin-top:var(--ck-spacing-large)}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-cancel,.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button-save{justify-content:center;min-width:auto}.ck.ck-image-insert-url .ck-image-insert-url__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}.ck.ck-image-insert-form>.ck.ck-button{display:block;padding:var(--ck-list-button-padding);width:100%}[dir=ltr] .ck.ck-image-insert-form>.ck.ck-button{text-align:left}[dir=rtl] .ck.ck-image-insert-form>.ck.ck-button{text-align:right}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:first-child){border-top:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible:not(:last-child){border-bottom:1px solid var(--ck-color-base-border)}.ck.ck-image-insert-form>.ck.ck-collapsible,.ck.ck-image-insert-form>.ck.ck-image-insert-url{min-width:var(--ck-image-insert-insert-by-url-width)}.ck.ck-image-insert-form>.ck.ck-image-insert-url{padding:var(--ck-spacing-large)}.ck.ck-image-insert-form:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageinsert.css"],names:[],mappings:"AAMC,yDACC,YAAa,CACb,mCACD,CCFD,MACC,2CACD,CAEA,wBACC,qBAgBD,CAdC,yDACC,uCAAwC,CACxC,kCAWD,CATC,oJAEC,sBAAuB,CACvB,cACD,CAEA,sFACC,0BACD,CAKD,uCACC,aAAc,CAEd,qCAAsC,CADtC,UAUD,CAZA,iDAME,eAMF,CAZA,iDAUE,gBAEF,CAGC,8DACC,gDACD,CAEA,6DACC,mDACD,CAMD,6FAJC,oDAOD,CAHA,iDAEC,+BACD,CAEA,+BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-url {\n\t& .ck-image-insert-url__action-row {\n\t\tdisplay: grid;\n\t\tgrid-template-columns: repeat(2, 1fr);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-image-insert-insert-by-url-width: 250px;\n}\n\n.ck.ck-image-insert-url {\n\t--ck-input-width: 100%;\n\n\t& .ck-image-insert-url__action-row {\n\t\tgrid-column-gap: var(--ck-spacing-large);\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n\n.ck.ck-image-insert-form {\n\t& > .ck.ck-button {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\tpadding: var(--ck-list-button-padding);\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& > .ck.ck-collapsible {\n\t\t&:not(:first-child) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t&:not(:last-child) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\n\t}\n\n\t/* This is the case when there are no other integrations configured than insert by URL */\n\t& > .ck.ck-image-insert-url {\n\t\tmin-width: var(--ck-image-insert-insert-by-url-width);\n\t\tpadding: var(--ck-spacing-large);\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},2873:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-editor__editable img.image_placeholder{background-size:100% 100%}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageplaceholder.css"],names:[],mappings:"AAMC,8CACC,yBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& img.image_placeholder {\n\t\tbackground-size: 100% 100%;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},6270:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\n.ck-content img.image_resized {\n\theight: auto;\n}\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `
` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `
` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `
` element uses `display:block`, so `
` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const Q=Z},5083:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4036:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},3773:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3689:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const Q=Z},1905:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},9773:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const Q=Z},2347:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},7754:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},111:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const Q=Z},5730:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const Q=Z},4564:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},6082:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},2417:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},1199:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n\t-webkit-appearance: none;\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: var(--ck-todo-list-checkmark-size);\n\theight: var(--ck-todo-list-checkmark-size);\n\tvertical-align: middle;\n\n\t/* Needed on iOS */\n\tborder: 0;\n\n\t/* LTR styles */\n\tleft: -25px;\n\tmargin-right: -15px;\n\tright: 0;\n\tmargin-left: 0;\n\n\t/* RTL styles */\n\t@nest [dir=rtl]& {\n\t\tleft: 0;\n\t\tmargin-right: 0;\n\t\tright: -25px;\n\t\tmargin-left: -15px;\n\t}\n\n\t&::before {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: border-box;\n\t\tcontent: '';\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\tborder-radius: 2px;\n\t\ttransition: 250ms ease-in-out box-shadow;\n\t}\n\n\t&::after {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: content-box;\n\t\tpointer-events: none;\n\t\tcontent: '';\n\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\tborder-style: solid;\n\t\tborder-color: transparent;\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\ttransform: rotate(45deg);\n\t}\n\n\t&[checked] {\n\t\t&::before {\n\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t}\n\t}\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tposition: relative;\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t@mixin todo-list-checkbox;\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&.todo-list__label_without-description input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n\t/*\n\t * To-do list should be interactive only during the editing\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\n\t */\n\t& > input,\n\t& > span[contenteditable=false] > input {\n\t\tcursor: pointer;\n\n\t\t&:hover::before {\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t\t}\n\t}\n\n\t/*\n\t * Document Lists - editing view has an additional span around checkbox.\n\t */\n\t& > span[contenteditable=false] > input {\n\t\t@mixin todo-list-checkbox;\n\t}\n\n\t&.todo-list__label_without-description {\n\t\t& input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4652:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const Q=Z},7442:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read\u2013only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},9292:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},7368:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4070:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},9247:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},1613:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const Q=Z},6306:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent
. Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const Q=Z},2128:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},5087:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4101:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const Q=Z},3881:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},6237:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},7341:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},6945:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3210:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-aria-live-announcer{left:-10000px;position:absolute;top:-10000px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/arialiveannouncer/arialiveannouncer.css"],names:[],mappings:"AAKA,2BAEC,aAAc,CADd,iBAAkB,CAElB,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-aria-live-announcer {\n\tposition: absolute;\n\tleft: -10000px;\n\ttop: -10000px;\n}\n"],sourceRoot:""}]);const Q=Z},8157:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-modal)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-autocomplete {\n\tposition: relative;\n\n\t& > .ck-search__results {\n\t\tposition: absolute;\n\t\tz-index: var(--ck-z-modal);\n\n\t\t&.ck-search__results_n {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck.ck-autocomplete {\n\t& > .ck-search__results {\n\t\t@mixin ck-rounded-corners;\n\t\t@mixin ck-drop-shadow;\n\n\t\tmax-height: 200px;\n\t\toverflow-y: auto;\n\t\tbackground: var(--ck-color-base-background);\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\t\tmin-width: auto;\n\n\t\t&.ck-search__results_n {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-bottom: -1px;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-top-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-top: -1px;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},4906:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}[dir=ltr] .ck.ck-button,[dir=ltr] a.ck.ck-button{justify-content:left}[dir=rtl] .ck.ck-button,[dir=rtl] a.ck.ck-button{justify-content:right}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAQA,6BAMC,kBAAmB,CADnB,mBAAoB,CADpB,iBAAkB,CCHlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD0BD,CA9BA,iDASE,oBAqBF,CA9BA,iDAaE,qBAiBF,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEzBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n@import "../../mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\n\t@mixin ck-dir ltr {\n\t\tjustify-content: left;\n\t}\n\n\t@mixin ck-dir rtl {\n\t\tjustify-content: right;\n\t}\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const Q=Z},5332:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating\u2013point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const Q=Z},8010:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-list-button-padding);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/collapsible/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/collapsible/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,qCAAsC,CAFtC,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,gFACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-list-button-padding);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},6781:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-selector__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const Q=Z},3398:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4157:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},5485:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3949:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},7686:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},7339:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const Q=Z},9688:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},8847:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}[dir=ltr] .ck.ck-form__header .ck-icon{margin-right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-form__header .ck-icon{margin-left:var(--ck-spacing-medium)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BAKD,CAHC,8CACC,WACD,CCPD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAkBD,CAbC,uCAEE,qCAMF,CARA,uCAME,oCAEF,CAEA,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t& h2.ck-form__header__label {\n\t\tflex-grow: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-medium);\n\t\t}\n\t}\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},8960:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-highlighted-text mark {\n\tbackground: var(--ck-color-highlight-background);\n\tvertical-align: initial;\n\tfont-weight: inherit;\n\tline-height: inherit;\n\tfont-size: inherit;\n}\n"],sourceRoot:""}]);const Q=Z},6574:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},4879:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},3662:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const Q=Z},2577:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0;transform:translate(calc(var(--ck-spacing-medium)*-1),-6px) scale(.75);transform-origin:100% 0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD+GD,CA1GA,2FCDE,qCD2GF,CAvGC,mEACC,UAoCD,CAlCC,gFACC,KAgCD,CAjCA,0FAIE,MAAS,CAGT,6DAA+D,CAF/D,oBA4BF,CAjCA,0FAWE,OAAU,CAEV,sEAA0E,CAD1E,uBAqBF,CAjCA,gFAkBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAH9C,mBAAoB,CAQpB,sBAAuB,CAKvB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,4WAGE,+HAYF,CAfA,4WAOE,wIAQF,CAfA,wVAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t\ttransform-origin: 0 0;\n\t\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t\ttransform-origin: 100% 0;\n\t\t\t\ttransform: translate(calc(-1 * var(--ck-spacing-medium)), -6px) scale(.75);\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty:not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},1046:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}:root{--ck-list-button-padding:calc(var(--ck-line-height-base)*0.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*0.4*var(--ck-font-size-base))}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;width:100%}[dir=ltr] .ck.ck-list__item .ck-button{text-align:left}[dir=rtl] .ck.ck-list__item .ck-button{text-align:right}.ck.ck-list__item .ck-button{padding:var(--ck-list-button-padding)}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>.ck-label{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEdD,MACC,oJAGD,CAEA,YCLC,eDUD,CALA,+DCDE,qCDMF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cAgED,CA9DC,6BAGC,eAAgB,CAFhB,gBAAiB,CACjB,UA6CD,CA/CA,uCAME,eAyCF,CA/CA,uCAUE,gBAqCF,CA/CA,6BAgBC,qCA+BD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,mCACC,cAAe,CACf,eAAiB,CACjB,oFACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-list-button-padding:\n\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n}\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\tborder-radius: 0;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding: var(--ck-list-button-padding);\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-list .ck-list__group {\n\tpadding-top: var(--ck-spacing-medium);\n\n\t/* The group should have a border when it\'s not the first item. */\n\t*:not(.ck-hidden) ~ & {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& > .ck-label {\n\t\tfont-size: 11px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-medium) 0 var(--ck-spacing-medium);\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},8793:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},4650:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},7676:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},5868:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},6764:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},6770:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-search__reset {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\t& > .ck-search__info {\n\t\t\t& > span:first-child {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t/* Hide the filtered view when nothing was found */\n\t\t\t&:not(.ck-hidden) ~ * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&.ck-search__query_with-icon {\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\t\topacity: .5;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-search__query_with-reset {\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t&.ck-labeled-field-view_empty {\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& .ck-search__reset {\n\t\t\t\tmin-width: auto;\n\t\t\t\tmin-height: auto;\n\n\t\t\t\tbackground: none;\n\t\t\t\topacity: .5;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t&:hover {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tmin-width: 100%;\n\n\t\t& > .ck-search__info {\n\t\t\twidth: 100%;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& * {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\n\t\t\t& > span:first-child {\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\n\t\t\t& > span:last-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const Q=Z},498:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\tdisplay: block;\n\tposition: relative;\n}\n\n.ck.ck-spinner {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 auto;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tanimation: 1.5s infinite rotate linear;\n}\n\n.ck.ck-spinner {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-color-text);\n\tborder-top-color: transparent;\n}\n\n@keyframes rotate {\n\tto {\n\t\ttransform: rotate(360deg)\n\t}\n}\n\n"],sourceRoot:""}]);const Q=Z},8182:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\n * This bug is especially visible when rows=1.\n */\n.ck-textarea {\n\toverflow-x: hidden\n}\n"],sourceRoot:""}]);const Q=Z},9695:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const Q=Z},5542:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},3332:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,qCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-tooltip-text-padding: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\n\t\twhite-space: break-spaces;\n\t\tdisplay: inline-block;\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},4793:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-color-light-red:#fcc;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAyD,CAIzD,yBAAgD,CC3GhD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJ2GD,CIrGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-modal) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------- */\n\n\t--ck-color-light-red:\t\t\t\t\t\t\t\t\t\thsl(0, 100%, 90%);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const Q=Z},3488:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const Q=Z},8506:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const Q=Z},4921:(et,ct,L)=>{"use strict";L.d(ct,{Z:()=>Q});var dt=L(1799),ot=L.n(dt),it=L(2609),Z=L.n(it)()(ot());Z.push([et.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const Q=Z},2609:et=>{"use strict";et.exports=function(ct){var L=[];return L.toString=function(){return this.map(function(dt){var ot=ct(dt);return dt[2]?"@media ".concat(dt[2]," {").concat(ot,"}"):ot}).join("")},L.i=function(dt,ot,it){"string"==typeof dt&&(dt=[[null,dt,""]]);var Z={};if(it)for(var Q=0;Q{"use strict";function L(dt,ot){(null==ot||ot>dt.length)&&(ot=dt.length);for(var it=0,Z=new Array(ot);it{"use strict";var dt,St,it=(St={},function(W){if(void 0===St[W]){var kt=document.querySelector(W);if(window.HTMLIFrameElement&&kt instanceof window.HTMLIFrameElement)try{kt=kt.contentDocument.head}catch{kt=null}St[W]=kt}return St[W]}),Z=[];function Q(St){for(var W=-1,kt=0;kt{var ct=et&&et.__esModule?()=>et.default:()=>et;return lt.d(ct,{a:ct}),ct},lt.d=(et,ct)=>{for(var L in ct)lt.o(ct,L)&&!lt.o(et,L)&&Object.defineProperty(et,L,{enumerable:!0,get:ct[L]})},lt.o=(et,ct)=>Object.prototype.hasOwnProperty.call(et,ct),lt.nc=void 0;var i={};return(()=>{"use strict";function et({emitter:r,activator:t,callback:e,contextElements:n}){r.listenTo(document,"mousedown",(s,l)=>{if(!t())return;const h="function"==typeof l.composedPath?l.composedPath():[],p="function"==typeof n?n():n;for(const b of p)if(b.contains(l.target)||h.includes(b))return;e()})}function ct(r){return class extends r{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...t){super(...t),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function L({view:r}){r.listenTo(r.element,"submit",(t,e)=>{e.preventDefault(),r.fire("submit")},{useCapture:!0})}lt.d(i,{default:()=>Mp});const dt=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}();var ot;const it={isMac:Z(dt),isWindows:(ot=dt,ot.indexOf("windows")>-1),isGecko:(r=dt,!!r.match(/gecko\/\d+/)),isSafari:function(r){return r.indexOf(" applewebkit/")>-1&&-1===r.indexOf("chrome")}(dt),isiOS:function(r){return!!r.match(/iphone|ipad/i)||Z(r)&&navigator.maxTouchPoints>0}(dt),isAndroid:function(r){return r.indexOf("android")>-1}(dt),isBlink:function(r){return r.indexOf("chrome/")>-1&&r.indexOf("edge/")<0}(dt),features:{isRegExpUnicodePropertySupported:function(){let r=!1;try{r=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}return r}()}};var r;function Z(r){return r.indexOf("macintosh")>-1}function Q(r,t,e,n){e=e||function(b,A){return b===A};const s=Array.isArray(r)?r:Array.prototype.slice.call(r),l=Array.isArray(t)?t:Array.prototype.slice.call(t),h=function(b,A,C){const E=rt(b,A,C);if(-1===E)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const j=rt(U(b,E),U(A,E),C);return{firstIndex:E,lastIndexOld:b.length-j,lastIndexNew:A.length-j}}(s,l,e);return n?function(b,A){const{firstIndex:C,lastIndexOld:E,lastIndexNew:P}=b;if(-1===C)return Array(A).fill("equal");let F=[];return C>0&&(F=F.concat(Array(C).fill("equal"))),P-C>0&&(F=F.concat(Array(P-C).fill("insert"))),E-C>0&&(F=F.concat(Array(E-C).fill("delete"))),P0&&C.push({index:E,type:"insert",values:b.slice(E,F)}),P-E>0&&C.push({index:E+(F-E),type:"delete",howMany:P-E}),C}(l,h)}function rt(r,t,e){for(let n=0;n200||s>200||n+s>300)return pt.fastDiff(r,t,e,!0);let l,h;if(sst?-1:1;C[Y+ft]&&(C[Y]=C[Y+ft].slice(0)),C[Y]||(C[Y]=[]),C[Y].push($>st?l:h);let At=Math.max($,st),Ft=At-Y;for(;FtA;F--)E[F]=P(F);E[A]=P(A),j++}while(E[A]!==b);return C[A].slice(1)}pt.fastDiff=Q;class xt{constructor(t,e){this.source=t,this.name=e,this.path=[],this.stop=function r(){r.called=!0},this.off=function r(){r.called=!0}}}const nt=new Array(256).fill("").map((r,t)=>("0"+t.toString(16)).slice(-2));function Mt(){const r=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0;return"e"+nt[r>>0&255]+nt[r>>8&255]+nt[r>>16&255]+nt[r>>24&255]+nt[t>>0&255]+nt[t>>8&255]+nt[t>>16&255]+nt[t>>24&255]+nt[e>>0&255]+nt[e>>8&255]+nt[e>>16&255]+nt[e>>24&255]+nt[n>>0&255]+nt[n>>8&255]+nt[n>>16&255]+nt[n>>24&255]}const It={get(r="normal"){return"number"!=typeof r?this[r]||this.normal:r},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function bt(r,t){const e=It.get(t.priority);for(let n=0;n{if("object"==typeof E&&null!==E){if(h.has(E))return`[object ${E.constructor.name}]`;h.add(E)}return E})}`:"")+Nt(s)}(t,n)),this.name="CKEditorError",this.context=e,this.data=n}is(t){return"CKEditorError"===t}static rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;const n=new W(t.message,e);throw n.stack=t.stack,n}}function kt(r,t){console.warn(...Vt(r,t))}function Pt(r,t){console.error(...Vt(r,t))}function Nt(r){return`\nRead more: ${St}#error-${r}`}function Vt(r,t){const e=Nt(r);return t?[r,t,e]:[r,e]}const $e=new Date(2023,11,12);if(globalThis.CKEDITOR_VERSION)throw new W("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="40.2.0";const Xt=Symbol("listeningTo"),ai=Symbol("emitterId"),Ne=Symbol("delegations"),oe=ie(Object);function ie(r){return r?class extends r{on(t,e,n){this.listenTo(this,t,e,n)}once(t,e,n){let s=!1;this.listenTo(this,t,(l,...h)=>{s||(s=!0,l.off(),e.call(this,l,...h))},n)}off(t,e){this.stopListening(this,t,e)}listenTo(t,e,n,s={}){let l,h;this[Xt]||(this[Xt]={});const p=this[Xt];kn(t)||an(t);const b=kn(t);var C,E,P,F;(l=p[b])||(l=p[b]={emitter:t,callbacks:{}}),(h=l.callbacks[e])||(h=l.callbacks[e]=[]),h.push(n),E=e,P=n,F=s,(C=t)._addEventListener?C._addEventListener(E,P,F):this._addEventListener.call(C,E,P,F)}stopListening(t,e,n){const s=this[Xt];let l=t&&kn(t);const h=s&&l?s[l]:void 0,p=h&&e?h.callbacks[e]:void 0;if(!(!s||t&&!h||e&&!p))if(n)Bi(this,t,e,n),-1!==p.indexOf(n)&&(1===p.length?delete h.callbacks[e]:Bi(this,t,e,n));else if(p){for(;n=p.pop();)Bi(this,t,e,n);delete h.callbacks[e]}else if(h){for(e in h.callbacks)this.stopListening(t,e);delete s[l]}else{for(l in s)this.stopListening(s[l].emitter);delete this[Xt]}}fire(t,...e){try{const n=t instanceof xt?t:new xt(this,t),s=n.name;let l=_n(this,s);if(n.path.push(this),l){const p=[n,...e];l=Array.from(l);for(let b=0;b{this[Ne]||(this[Ne]=new Map),t.forEach(s=>{const l=this[Ne].get(s);l?l.set(e,n):this[Ne].set(s,new Map([[e,n]]))})}}}stopDelegating(t,e){if(this[Ne])if(t)if(e){const n=this[Ne].get(t);n&&n.delete(e)}else this[Ne].delete(t);else this[Ne].clear()}_addEventListener(t,e,n){!function(h,p){const b=nr(h);if(b[p])return;let A=p,C=null;const E=[];for(;""!==A&&!b[A];)b[A]={callbacks:[],childEvents:[]},E.push(b[A]),C&&b[A].childEvents.push(C),C=A,A=A.substr(0,A.lastIndexOf(":"));if(""!==A){for(const P of E)P.callbacks=b[A].callbacks.slice();b[A].childEvents.push(C)}}(this,t);const s=Ge(this,t),l={callback:e,priority:It.get(n.priority)};for(const h of s)bt(h,l)}_removeEventListener(t,e){const n=Ge(this,t);for(const s of n)for(let l=0;l-1?_n(r,t.substr(0,t.lastIndexOf(":"))):null}function xo(r,t,e){for(let[n,s]of r){s?"function"==typeof s&&(s=s(t.name)):s=t.name;const l=new xt(t.source,s);l.path=[...t.path],n.fire(l,...e)}}function Bi(r,t,e,n){t._removeEventListener?t._removeEventListener(e,n):r._removeEventListener.call(t,e,n)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(r=>{ie[r]=oe.prototype[r]});const te=function(r){var t=typeof r;return null!=r&&("object"==t||"function"==t)},wn=Symbol("observableProperties"),pi=Symbol("boundObservables"),Wi=Symbol("boundProperties"),oi=Symbol("decoratedMethods"),Co=Symbol("decoratedOriginal"),Qi=ne(ie());function ne(r){return r?class extends r{set(t,e){if(te(t))return void Object.keys(t).forEach(s=>{this.set(s,t[s])},this);An(this);const n=this[wn];if(t in this&&!n.has(t))throw new W("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:()=>n.get(t),set(s){const l=n.get(t);let h=this.fire(`set:${t}`,t,s,l);void 0===h&&(h=s),l===h&&n.has(t)||(n.set(t,h),this.fire(`change:${t}`,t,h,l))}}),this[t]=e}bind(...t){if(!t.length||!or(t))throw new W("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new W("observable-bind-duplicate-properties",this);An(this);const e=this[Wi];t.forEach(s=>{if(e.has(s))throw new W("observable-bind-rebind",this)});const n=new Map;return t.forEach(s=>{const l={property:s,to:[]};e.set(s,l),n.set(s,l)}),{to:ns,toMany:os,_observable:this,_bindProperties:t,_to:[],_bindings:n}}unbind(...t){if(!this[wn])return;const e=this[Wi],n=this[pi];if(t.length){if(!or(t))throw new W("observable-unbind-wrong-properties",this);t.forEach(s=>{const l=e.get(s);l&&(l.to.forEach(([h,p])=>{const b=n.get(h),A=b[p];A.delete(l),A.size||delete b[p],Object.keys(b).length||(n.delete(h),this.stopListening(h,"change"))}),e.delete(s))})}else n.forEach((s,l)=>{this.stopListening(l,"change")}),n.clear(),e.clear()}decorate(t){An(this);const e=this[t];if(!e)throw new W("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,(n,s)=>{n.return=e.apply(this,s)}),this[t]=function(...n){return this.fire(t,n)},this[t][Co]=e,this[oi]||(this[oi]=[]),this[oi].push(t)}stopListening(t,e,n){if(!t&&this[oi]){for(const s of this[oi])this[s]=this[s][Co];delete this[oi]}super.stopListening(t,e,n)}}:Qi}function An(r){r[wn]||(Object.defineProperty(r,wn,{value:new Map}),Object.defineProperty(r,pi,{value:new Map}),Object.defineProperty(r,Wi,{value:new Map}))}function ns(...r){const t=function(...l){if(!l.length)throw new W("observable-bind-to-parse-error",null);const h={to:[]};let p;return"function"==typeof l[l.length-1]&&(h.callback=l.pop()),l.forEach(b=>{if("string"==typeof b)p.properties.push(b);else{if("object"!=typeof b)throw new W("observable-bind-to-parse-error",null);p={observable:b,properties:[]},h.to.push(p)}}),h}(...r),e=Array.from(this._bindings.keys()),n=e.length;if(!t.callback&&t.to.length>1)throw new W("observable-bind-to-no-callback",this);if(n>1&&t.callback)throw new W("observable-bind-to-extra-callback",this);var s;t.to.forEach(l=>{if(l.properties.length&&l.properties.length!==n)throw new W("observable-bind-to-properties-length",this);l.properties.length||(l.properties=this._bindProperties)}),this._to=t.to,t.callback&&(this._bindings.get(e[0]).callback=t.callback),s=this._observable,this._to.forEach(l=>{const h=s[pi];let p;h.get(l.observable)||s.listenTo(l.observable,"change",(b,A)=>{p=h.get(l.observable)[A],p&&p.forEach(C=>{Hn(s,C.property)})})}),function(l){let h;l._bindings.forEach((p,b)=>{l._to.forEach(A=>{h=A.properties[p.callback?0:l._bindProperties.indexOf(b)],p.to.push([A.observable,h]),function(C,E,P,F){const j=C[pi],Y=j.get(P),$=Y||{};$[F]||($[F]=new Set),$[F].add(E),Y||j.set(P,$)}(l._observable,p,A.observable,h)})})}(this),this._bindProperties.forEach(l=>{Hn(this._observable,l)})}function os(r,t,e){if(this._bindings.size>1)throw new W("observable-bind-to-many-not-one-binding",this);this.to(...function(n,s){const l=n.map(h=>[h,s]);return Array.prototype.concat.apply([],l)}(r,t),e)}function or(r){return r.every(t=>"string"==typeof t)}function Hn(r,t){const e=r[Wi].get(t);let n;e.callback?n=e.callback.apply(r,e.to.map(s=>s[0][s[1]])):(n=e.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(r,t)?r[t]=n:r.set(t,n)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(r=>{ne[r]=Qi.prototype[r]});class rs{constructor(){this._replacedElements=[]}replace(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}restore(){this._replacedElements.forEach(({element:t,newElement:e})=>{t.style.display="",e&&e.remove()}),this._replacedElements=[]}}function yo(r){let t=0;for(const e of r)t++;return t}function qe(r,t){const e=Math.min(r.length,t.length);for(let n=0;n-1},Fi.prototype.set=function(r,t){var e=this.__data__,n=$n(e,r);return n<0?(++this.size,e.push([r,t])):e[n][1]=t,this};const Ki=Fi,Ji=function(r){if(!te(r))return!1;var t=Me(r);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},to=li["__core-js_shared__"];var Lo=function(){var r=/[^.]+$/.exec(to&&to.keys&&to.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ds=Function.prototype.toString;const q=function(r){if(null!=r){try{return ds.call(r)}catch{}try{return r+""}catch{}}return""};var o=/^\[object .+?Constructor\]$/,m=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const y=function(r,t){var e=function(r,t){return r?.[t]}(r,t);return function(r){return!(!te(r)||function(r){return!!Lo&&Lo in r}(r))&&(Ji(r)?m:o).test(q(r))}(e)?e:void 0},T=y(li,"Map"),S=y(Object,"create");var O=Object.prototype.hasOwnProperty,V=Object.prototype.hasOwnProperty;function x(r){var t=-1,e=null==r?0:r.length;for(this.clear();++t-1&&r%1==0&&r-1&&r%1==0&&r<=9007199254740991};var re={};re["[object Float32Array]"]=re["[object Float64Array]"]=re["[object Int8Array]"]=re["[object Int16Array]"]=re["[object Int32Array]"]=re["[object Uint8Array]"]=re["[object Uint8ClampedArray]"]=re["[object Uint16Array]"]=re["[object Uint32Array]"]=!0,re["[object Arguments]"]=re["[object Array]"]=re["[object ArrayBuffer]"]=re["[object Boolean]"]=re["[object DataView]"]=re["[object Date]"]=re["[object Error]"]=re["[object Function]"]=re["[object Map]"]=re["[object Number]"]=re["[object Object]"]=re["[object RegExp]"]=re["[object Set]"]=re["[object String]"]=re["[object WeakMap]"]=!1;const hs=function(r){return function(t){return r(t)}};var Ma=$t&&!$t.nodeType&&$t,Oo=Ma&&we&&!we.nodeType&&we,us=Oo&&Oo.exports===Ma&&rr.process;const no=function(){try{return Oo&&Oo.require&&Oo.require("util").types||us&&us.binding&&us.binding("util")}catch{}}();var La=no&&no.isTypedArray;const ps=La?hs(La):function(r){return We(r)&&zi(r.length)&&!!re[Me(r)]};var rd=Object.prototype.hasOwnProperty;const Pa=function(r,t){var e=Ut(r),n=!e&&io(r),s=!e&&!n&&ci(r),l=!e&&!n&&!s&&ps(r),h=e||n||s||l,p=h?function(r,t){for(var e=-1,n=Array(r);++e{this._setToTarget(t,s,e[s],n)})}}function tl(r){return Ss(r,Md)}function Md(r){return Sn(r)||"function"==typeof r?r:void 0}function cn(r){if(r){if(r.defaultView)return r instanceof r.defaultView.Document;if(r.ownerDocument&&r.ownerDocument.defaultView)return r instanceof r.ownerDocument.defaultView.Node}return!1}function vr(r){const t=Object.prototype.toString.apply(r);return"[object Window]"==t||"[object global]"==t}const el=bi(ie());function bi(r){return r?class extends r{listenTo(t,e,n,s={}){if(cn(t)||vr(t)){const l={capture:!!s.useCapture,passive:!!s.usePassive},h=this._getProxyEmitter(t,l)||new Ld(t,l);this.listenTo(h,e,n,s)}else super.listenTo(t,e,n,s)}stopListening(t,e,n){if(cn(t)||vr(t)){const s=this._getAllProxyEmitters(t);for(const l of s)this.stopListening(l,e,n)}else super.stopListening(t,e,n)}_getProxyEmitter(t,e){return function(n,s){const l=n[Xt];return l&&l[s]?l[s].emitter:null}(this,il(t,e))}_getAllProxyEmitters(t){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(e=>this._getProxyEmitter(t,e)).filter(e=>!!e)}}:el}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(r=>{bi[r]=el.prototype[r]});class Ld extends(ie()){constructor(t,e){super(),an(this,il(t,e)),this._domNode=t,this._options=e}attach(t){if(this._domListeners&&this._domListeners[t])return;const e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}detach(t){let e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()}_addEventListener(t,e,n){this.attach(t),ie().prototype._addEventListener.call(this,t,e,n)}_removeEventListener(t,e){ie().prototype._removeEventListener.call(this,t,e),this.detach(t)}_createDomListener(t){const e=n=>{this.fire(t,n)};return e.removeListener=()=>{this._domNode.removeEventListener(t,e,this._options),delete this._domListeners[t]},e}}function il(r,t){let e=(n=r)["data-ck-expando"]||(n["data-ck-expando"]=Mt());var n;for(const n of Object.keys(t).sort())t[n]&&(e+="-"+n);return e}let Is;try{Is={window,document}}catch{Is={window:{},document:{}}}const Yt=Is;function Le(r){return"[object Text]"==Object.prototype.toString.call(r)}function dn(r){return"[object Range]"==Object.prototype.toString.apply(r)}function Ds(r){const t=r.ownerDocument.defaultView.getComputedStyle(r);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}function nl(r){return r&&r.parentNode?r.offsetParent===Yt.document.body?null:r.offsetParent:null}const ol=["top","right","bottom","left","width","height"];class le{constructor(t){const e=dn(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Ms(t)||e)if(e){const n=le.getDomRangeRects(t);kr(this,le.getBoundingRect(n))}else kr(this,t.getBoundingClientRect());else if(vr(t)){const{innerWidth:n,innerHeight:s}=t;kr(this,{top:0,right:n,bottom:s,left:0,width:n,height:s})}else kr(this,t)}clone(){return new le(this)}moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}getIntersection(t){const e={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};if(e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0)return null;{const n=new le(e);return n._source=this._source,n}}getIntersectionArea(t){const e=this.getIntersection(t);return e?e.getArea():0}getArea(){return this.width*this.height}getVisible(){const t=this._source;let e=this.clone();if(rl(t))return e;let n,s=t,l=t.parentNode||t.commonAncestorContainer;for(;l&&!rl(l);){const p="visible"===((h=l)instanceof HTMLElement?h.ownerDocument.defaultView.getComputedStyle(h).overflow:"visible");s instanceof HTMLElement&&"absolute"===sl(s)&&(n=s);const b=sl(l);if(p||n&&("relative"===b&&p||"relative"!==b)){s=l,l=l.parentNode;continue}const A=new le(l),C=e.getIntersection(A);if(!C)return null;C.getArea(){for(const t of r){const e=Pe._getElementCallbacks(t.target);if(e)for(const n of e)n(t)}})}};let Ro=Pe;function al(r,t){r instanceof HTMLTextAreaElement&&(r.value=t),r.innerHTML=t}function hn(r){return t=>t+r}function _r(r){let t=0;for(;r.previousSibling;)r=r.previousSibling,t++;return t}function ll(r,t,e){r.insertBefore(e,r.childNodes[t]||null)}function Zo(r){return r&&r.nodeType===Node.COMMENT_NODE}function In(r){return!!(r&&r.getClientRects&&r.getClientRects().length)}Ro._observerInstance=null,Ro._elementCallbacks=null;var cl=Math.pow;function Ls({element:r,target:t,positions:e,limiter:n,fitInViewport:s,viewportOffsetConfig:l}){Ji(t)&&(t=t()),Ji(n)&&(n=n());const h=nl(r),p=function(P){P=Object.assign({top:0,bottom:0,left:0,right:0},P);const F=new le(Yt.window);return F.top+=P.top,F.height-=P.top,F.bottom-=P.bottom,F.height-=P.bottom,F}(l),b=new le(r),A=dl(t,p);let C;if(!A||!p.getIntersection(A))return null;const E={targetRect:A,elementRect:b,positionedElementAncestor:h,viewportRect:p};if(n||s){if(n){const P=dl(n,p);P&&(E.limiterRect=P)}C=function(P,F){const{elementRect:j}=F,Y=j.getArea(),$=P.map(At=>new hl(At,F)).filter(At=>!!At.name);let st=0,ft=null;for(const At of $){const{limiterIntersectionArea:Ft,viewportIntersectionArea:jt}=At;if(Ft===Y)return At;const ae=cl(jt,2)+cl(Ft,2);ae>st&&(st=ae,ft=At)}return ft}(e,E)}else C=new hl(e[0],E);return C}function dl(r,t){const e=new le(r).getVisible();return e?e.getIntersection(t):null}class hl{constructor(t,e){const n=t(e.targetRect,e.elementRect,e.viewportRect,e.limiterRect);if(!n)return;const{left:s,top:l,name:h,config:p}=n;this.name=h,this.config=p,this._positioningFunctionCoordinates={left:s,top:l},this._options=e}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const t=this._options.limiterRect;return t?t.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function Ps(r){const t=r.parentNode;t&&t.removeChild(r)}function ul({window:r,rect:t,alignToTop:e,forceScroll:n,viewportOffset:s}){const l=t.clone().moveBy(0,s.bottom),h=t.clone().moveBy(0,-s.top),p=new le(r).excludeScrollbarsAndBorders(),b=e&&n,A=[h,l].every(j=>p.contains(j));let{scrollX:C,scrollY:E}=r;const P=C,F=E;b?E-=p.top-t.top+s.top:A||(gl(h,p)?E-=p.top-t.top+s.top:pl(l,p)&&(E+=e?t.top-p.top-s.top:t.bottom-p.bottom+s.bottom)),A||(ye(t,p)?C-=p.left-t.left+s.left:Uo(t,p)&&(C+=t.right-p.right+s.right)),C==P&&E===F||r.scrollTo(C,E)}function Pd({parent:r,getRect:t,alignToTop:e,forceScroll:n,ancestorOffset:s=0,limiterElement:l}){const h=jo(r),p=e&&n;let b,A,C;const E=l||h.document.body;for(;r!=E;)A=t(),b=new le(r).excludeScrollbarsAndBorders(),C=b.contains(A),p?r.scrollTop-=b.top-A.top+s:C||(gl(A,b)?r.scrollTop-=b.top-A.top+s:pl(A,b)&&(r.scrollTop+=e?A.top-b.top-s:A.bottom-b.bottom+s)),C||(ye(A,b)?r.scrollLeft-=b.left-A.left+s:Uo(A,b)&&(r.scrollLeft+=A.right-b.right+s)),r=r.parentNode}function pl(r,t){return r.bottom>t.bottom}function gl(r,t){return r.topt.right}function jo(r){return dn(r)?r.startContainer.ownerDocument.defaultView:r.ownerDocument.defaultView}function Nd(r){if(dn(r)){let t=r.commonAncestorContainer;return Le(t)&&(t=t.parentNode),t}return r.parentNode}function wr(r,t){const e=jo(r),n=new le(r);if(e===t)return n;{let s=e;for(;s!=t;){const h=new le(s.frameElement).excludeScrollbarsAndBorders();n.moveBy(h.left,h.top),s=s.parent}}return n}const Od={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},Bd={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},se=function(){const r={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let t=65;t<=90;t++)r[String.fromCharCode(t).toLowerCase()]=t;for(let t=48;t<=57;t++)r[t-48]=t;for(let t=112;t<=123;t++)r["f"+(t-111)]=t;for(const t of"`-=[];',./\\")r[t]=t.charCodeAt(0);return r}(),Fd=Object.fromEntries(Object.entries(se).map(([r,t])=>[t,r.charAt(0).toUpperCase()+r.slice(1)]));function so(r){let t;if("string"==typeof r){if(t=se[r.toLowerCase()],!t)throw new W("keyboard-unknown-key",null,{key:r})}else t=r.keyCode+(r.altKey?se.alt:0)+(r.ctrlKey?se.ctrl:0)+(r.shiftKey?se.shift:0)+(r.metaKey?se.cmd:0);return t}function Vo(r){return"string"==typeof r&&(r=r.split("+").map(e=>e.trim())),r.map(t=>"string"==typeof t?function(e){if(e.endsWith("!"))return so(e.slice(0,-1));const n=so(e);return(it.isMac||it.isiOS)&&n==se.ctrl?se.cmd:n}(t):t).reduce((t,e)=>e+t,0)}function ml(r){let t=Vo(r);return Object.entries(it.isMac||it.isiOS?Od:Bd).reduce((e,[n,s])=>(t&se[n]&&(t&=~se[n],e+=s),e),"")+(t?Fd[t]:"")}function Ns(r,t){const e="ltr"===t;switch(r){case se.arrowleft:return e?"left":"right";case se.arrowright:return e?"right":"left";case se.arrowup:return"up";case se.arrowdown:return"down"}}function Ze(r){return Array.isArray(r)?r:[r]}Yt.window.CKEDITOR_TRANSLATIONS||(Yt.window.CKEDITOR_TRANSLATIONS={});const Rd=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function fl(r){return Rd.includes(r)?"rtl":"ltr"}class Os{constructor({uiLanguage:t="en",contentLanguage:e}={}){this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=fl(this.uiLanguage),this.contentLanguageDirection=fl(this.contentLanguage),this.t=(n,s)=>this._t(n,s)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(t,e=[]){return e=Ze(e),"string"==typeof t&&(t={string:t}),s=function zd(r,t,e=1){if("number"!=typeof e)throw new W("translation-service-quantity-not-a-number",null,{quantity:e});const n=Object.keys(Yt.window.CKEDITOR_TRANSLATIONS).length;1===n&&(r=Object.keys(Yt.window.CKEDITOR_TRANSLATIONS)[0]);const s=t.id||t.string;if(0===n||!Yt.window.CKEDITOR_TRANSLATIONS[b=r]||!Yt.window.CKEDITOR_TRANSLATIONS[b].dictionary[s])return 1!==e?t.plural:t.string;var b;const h=Yt.window.CKEDITOR_TRANSLATIONS[r].getPluralForm||(b=>1===b?0:1),p=Yt.window.CKEDITOR_TRANSLATIONS[r].dictionary[s];return"string"==typeof p?p:p[Number(h(e))]}(this.uiLanguage,t,t.plural?e[0]:1),l=e,s.replace(/%(\d+)/g,(h,p)=>pthis._items.length||e<0)throw new W("collection-add-item-invalid-index",this);let n=0;for(const s of t){const l=this._getItemIdBeforeAdding(s),h=e+n;this._items.splice(h,0,s),this._itemMap.set(l,s),this.fire("add",s,h),n++}return this.fire("change",{added:t,removed:[],index:e}),this}get(t){let e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new W("collection-get-invalid-arg",this);e=this._items[t]}return e||null}has(t){if("string"==typeof t)return this._itemMap.has(t);{const e=t[this._idProperty];return e&&this._itemMap.has(e)}}getIndex(t){let e;return e="string"==typeof t?this._itemMap.get(t):t,e?this._items.indexOf(e):-1}remove(t){const[e,n]=this._remove(t);return this.fire("change",{added:[],removed:[e],index:n}),e}map(t,e){return this._items.map(t,e)}forEach(t,e){this._items.forEach(t,e)}find(t,e){return this._items.find(t,e)}filter(t,e){return this._items.filter(t,e)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}bindTo(t){if(this._bindToCollection)throw new W("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:e=>{this._setUpBindToBinding(n=>new e(n))},using:e=>{this._setUpBindToBinding("function"==typeof e?e:n=>n[e])}}}_setUpBindToBinding(t){const e=this._bindToCollection,n=(s,l,h)=>{const p=e._bindToCollection==this,b=e._bindToInternalToExternalMap.get(l);if(p&&b)this._bindToExternalToInternalMap.set(l,b),this._bindToInternalToExternalMap.set(b,l);else{const A=t(l);if(!A)return void this._skippedIndexesFromExternal.push(h);let C=h;for(const E of this._skippedIndexesFromExternal)h>E&&C--;for(const E of e._skippedIndexesFromExternal)C>=E&&C++;this._bindToExternalToInternalMap.set(l,A),this._bindToInternalToExternalMap.set(A,l),this.add(A,C);for(let E=0;E{const p=this._bindToExternalToInternalMap.get(l);p&&this.remove(p),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((b,A)=>(hA&&b.push(A),b),[])})}_getItemIdBeforeAdding(t){const e=this._idProperty;let n;if(e in t){if(n=t[e],"string"!=typeof n)throw new W("collection-add-invalid-id",this);if(this.get(n))throw new W("collection-add-item-already-exists",this)}else t[e]=n=Mt();return n}_remove(t){let e,n,s,l=!1;const h=this._idProperty;if("string"==typeof t?(n=t,s=this._itemMap.get(n),l=!s,s&&(e=this._items.indexOf(s))):"number"==typeof t?(e=t,s=this._items[e],l=!s,s&&(n=s[h])):(s=t,n=s[h],e=this._items.indexOf(s),l=-1==e||!this._itemMap.get(n)),l)throw new W("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);const p=this._bindToInternalToExternalMap.get(s);return this._bindToInternalToExternalMap.delete(s),this._bindToExternalToInternalMap.delete(p),this.fire("remove",s,e),[s,e]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function Oe(r){const t=r.next();return t.done?null:t.value}class Ye extends(bi(ne())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(t){if(this._elements.has(t))throw new W("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",()=>this._focus(t),{useCapture:!0}),this.listenTo(t,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(t)}remove(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}destroy(){this.stopListening()}_focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class vi{constructor(){this._listener=new(bi())}listenTo(t){this._listener.listenTo(t,"keydown",(e,n)=>{this._listener.fire("_keydown:"+so(n),n)})}set(t,e,n={}){const s=Vo(t);this._listener.listenTo(this._listener,"_keydown:"+s,(h,p)=>{e(p,()=>{p.preventDefault(),p.stopPropagation(),h.stop()}),h.return=!0},{priority:n.priority})}press(t){return!!this._listener.fire("_keydown:"+so(t),t)}stopListening(t){this._listener.stopListening(t)}destroy(){this.stopListening()}}function ri(r){return ti(r)?new Map(r):function(t){const e=new Map;for(const n in t)e.set(n,t[n]);return e}(r)}function Bs(r,t){let e;function n(...s){n.cancel(),e=setTimeout(()=>r(...s),t)}return n.cancel=()=>{clearTimeout(e)},n}function Fs(r,t){return!!(e=r.charAt(t-1))&&1==e.length&&/[\ud800-\udbff]/.test(e)&&!!(n=r.charAt(t))&&1==n.length&&/[\udc00-\udfff]/.test(n);var n,e}function zs(r,t){return!!(e=r.charAt(t))&&1==e.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(e);var e}const Zd=function(){const r=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],t=new RegExp("\\p{Regional_Indicator}{2}","u").source,e="(?:"+r.map(n=>n.source).join("|")+")";return new RegExp(`${t}|${e}(?:\u200d${e})*`,"ug")}();function bl(r,t){const e=String(r).matchAll(Zd);return Array.from(e).some(n=>n.index{this._renderViewIntoCollectionParent(n,s)}),this.on("remove",(e,n)=>{n.element&&this._parentElement&&n.element.remove()}),this._parentElement=null}destroy(){this.map(t=>t.destroy())}setParent(t){this._parentElement=t;for(const e of this)this._renderViewIntoCollectionParent(e)}delegate(...t){if(!t.length||!t.every(e=>"string"==typeof e))throw new W("ui-viewcollection-delegate-wrong-events",this);return{to:e=>{for(const n of this)for(const s of t)n.delegate(s).to(e);this.on("add",(n,s)=>{for(const l of t)s.delegate(l).to(e)}),this.on("remove",(n,s)=>{for(const l of t)s.stopDelegating(l,e)})}}}_renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}remove(t){return super.remove(t)}}var Ud=lt(6062),Rt=lt.n(Ud),vl=lt(4793);Rt()(vl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Wt extends(bi(ne())){constructor(t){super(),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new di,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(e,n)=>{n.locale=t,n.t=t&&t.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Ei.bind(this,this)}createCollection(t){const e=new Ri(t);return this._viewCollections.add(e),e}registerChild(t){ti(t)||(t=[t]);for(const e of t)this._unboundChildren.add(e)}deregisterChild(t){ti(t)||(t=[t]);for(const e of t)this._unboundChildren.remove(e)}setTemplate(t){this.template=new Ei(t)}extendTemplate(t){Ei.extend(this.template,t)}render(){if(this.isRendered)throw new W("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(t=>t.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}class Ei extends(ie()){constructor(t){super(),Object.assign(this,Al(wl(t))),this._isRendered=!1,this._revertData=null}render(){const t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t}revert(t){if(!this._revertData)throw new W("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}*getViews(){yield*function*t(e){if(e.children)for(const n of e.children)lo(n)?yield n:co(n)&&(yield*t(n))}(this)}static bind(t,e){return{to:(n,s)=>new Vd({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:s}),if:(n,s,l)=>new kl({observable:t,emitter:e,attribute:n,valueIfTrue:s,callback:l})}}static extend(t,e){if(t._isRendered)throw new W("template-extend-render",[this,t]);Zs(t,Al(wl(e)))}_renderNode(t){let e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new W("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}_renderElement(t){let e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}_renderText(t){let e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),Ar(this.text)?this._bindToObservable({schema:this.text,updater:qd(e),data:t}):e.textContent=this.text.join(""),e}_renderAttributes(t){if(!this.attributes)return;const e=t.node,n=t.revertData;for(const s in this.attributes){const l=e.getAttribute(s),h=this.attributes[s];n&&(n.attributes[s]=l);const p=Cl(h)?h[0].ns:null;if(Ar(h)){const b=Cl(h)?h[0].value:h;n&&yl(s)&&b.unshift(l),this._bindToObservable({schema:b,updater:Yd(e,s,p),data:t})}else if("style"==s&&"string"!=typeof h[0])this._renderStyleAttribute(h[0],t);else{n&&l&&yl(s)&&h.unshift(l);const b=h.map(A=>A&&A.value||A).reduce((A,C)=>A.concat(C),[]).reduce(Rs,"");ao(b)||e.setAttributeNS(p,s,b)}}}_renderStyleAttribute(t,e){const n=e.node;for(const s in t){const l=t[s];Ar(l)?this._bindToObservable({schema:[l],updater:Hd(n,s),data:e}):n.style[s]=l}}_renderElementChildren(t){const e=t.node,n=t.intoFragment?document.createDocumentFragment():e,s=t.isApplying;let l=0;for(const h of this.children)if(Us(h)){if(!s){h.setParent(e);for(const p of h)n.appendChild(p.element)}}else if(lo(h))s||(h.isRendered||h.render(),n.appendChild(h.element));else if(cn(h))n.appendChild(h);else if(s){const p={children:[],bindings:[],attributes:{}};t.revertData.children.push(p),h._renderNode({intoFragment:!1,node:n.childNodes[l++],isApplying:!0,revertData:p})}else n.appendChild(h.render());t.intoFragment&&e.appendChild(n)}_setUpListeners(t){if(this.eventListeners)for(const e in this.eventListeners){const n=this.eventListeners[e].map(s=>{const[l,h]=e.split("@");return s.activateDomEventListener(l,h,t)});t.revertData&&t.revertData.bindings.push(n)}}_bindToObservable({schema:t,updater:e,data:n}){const s=n.revertData;_l(t,e,n);const l=t.filter(h=>!ao(h)).filter(h=>h.observable).map(h=>h.activateAttributeListener(t,e,n));s&&s.bindings.push(l)}_revertTemplateFromNode(t,e){for(const s of e.bindings)for(const l of s)l();if(e.text)return void(t.textContent=e.text);const n=t;for(const s in e.attributes){const l=e.attributes[s];null===l?n.removeAttribute(s):n.setAttribute(s,l)}for(let s=0;s_l(t,e,n);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,s),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,s)}}}class Vd extends qo{constructor(t){super(t),this.eventNameOrFunction=t.eventNameOrFunction}activateDomEventListener(t,e,n){const s=(l,h)=>{e&&!h.target.matches(e)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(h):this.observable.fire(this.eventNameOrFunction,h))};return this.emitter.listenTo(n.node,t,s),()=>{this.emitter.stopListening(n.node,t,s)}}}class kl extends qo{constructor(t){super(t),this.valueIfTrue=t.valueIfTrue}getValue(t){return!ao(super.getValue(t))&&(this.valueIfTrue||!0)}}function Ar(r){return!!r&&(r.value&&(r=r.value),Array.isArray(r)?r.some(Ar):r instanceof qo)}function _l(r,t,{node:e}){const n=(h=e,r.map(p=>p instanceof qo?p.getValue(h):p));var h;let s;s=1==r.length&&r[0]instanceof kl?n[0]:n.reduce(Rs,""),ao(s)?t.remove():t.set(s)}function qd(r){return{set(t){r.textContent=t},remove(){r.textContent=""}}}function Yd(r,t,e){return{set(n){r.setAttributeNS(e,t,n)},remove(){r.removeAttributeNS(e,t)}}}function Hd(r,t){return{set(e){r.style[t]=e},remove(){r.style[t]=null}}}function wl(r){return Ss(r,t=>{if(t&&(t instanceof qo||co(t)||lo(t)||Us(t)))return t})}function Al(r){if("string"==typeof r?r={text:[r]}:r.text&&((t=r).text=Ze(t.text)),r.on&&(r.eventListeners=function(t){for(const e in t)xl(t,e);return t}(r.on),delete r.on),!r.text){r.attributes&&function(e){for(const n in e)e[n].value&&(e[n].value=Ze(e[n].value)),xl(e,n)}(r.attributes);const t=[];if(r.children)if(Us(r.children))t.push(r.children);else for(const e of r.children)co(e)||lo(e)||cn(e)?t.push(e):t.push(new Ei(e));r.children=t}var t;return r}function xl(r,t){r[t]=Ze(r[t])}function Rs(r,t){return ao(t)?r:ao(r)?t:`${r} ${t}`}function tn(r,t){for(const e in t)r[e]?r[e].push(...t[e]):r[e]=t[e]}function Zs(r,t){if(t.attributes&&(r.attributes||(r.attributes={}),tn(r.attributes,t.attributes)),t.eventListeners&&(r.eventListeners||(r.eventListeners={}),tn(r.eventListeners,t.eventListeners)),t.text&&r.text.push(...t.text),t.children&&t.children.length){if(r.children.length!=t.children.length)throw new W("ui-template-extend-children-mismatch",r);let e=0;for(const n of t.children)Zs(r.children[e++],n)}}function ao(r){return!r&&0!==r}function lo(r){return r instanceof Wt}function co(r){return r instanceof Ei}function Us(r){return r instanceof Ri}function Cl(r){return te(r[0])&&r[0].ns}function yl(r){return"class"==r||"style"==r}class Gd extends Ri{constructor(t,e=[]){super(e),this.locale=t}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Ei({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let t=document.querySelector(".ck-body-wrapper");t||(t=yn(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove()}}var El=lt(6574);Rt()(El.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Tl=class extends Wt{constructor(){super();const r=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",r.if("isVisible","ck-hidden",t=>!t),"ck-reset_all-excluded",r.if("isColorInherited","ck-icon_inherit-color")],viewBox:r.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const r=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=r.getAttribute("viewBox");t&&(this.viewBox=t);for(const{name:e,value:n}of Array.from(r.attributes))Tl.presentationalAttributeNames.includes(e)&&this.element.setAttribute(e,n);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;r.childNodes.length>0;)this.element.appendChild(r.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(r=>{r.style.fill=this.fillColor})}};let Dn=Tl;Dn.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class Qd extends Wt{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const t=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:t.to("style"),id:t.to("id")},children:[{text:t.to("text")}]})}}var Sl=lt(4906);Rt()(Sl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ve extends Wt{constructor(t,e=new Qd){super(t),this._focusDelayed=null;const n=this.bindTemplate,s=Mt();this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${s}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(e),this.iconView=new Dn,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const l={tag:"button",attributes:{class:["ck","ck-button",n.to("class"),n.if("isEnabled","ck-disabled",h=>!h),n.if("isVisible","ck-hidden",h=>!h),n.to("isOn",h=>h?"ck-on":"ck-off"),n.if("withText","ck-button_with-text"),n.if("withKeystroke","ck-button_with-keystroke")],role:n.to("role"),type:n.to("type",h=>h||"button"),tabindex:n.to("tabindex"),"aria-label":n.to("ariaLabel"),"aria-labelledby":n.to("ariaLabelledBy"),"aria-disabled":n.if("isEnabled",!0,h=>!h),"aria-pressed":n.to("isOn",h=>!!this.isToggleable&&String(!!h)),"data-cke-tooltip-text":n.to("_tooltipString"),"data-cke-tooltip-position":n.to("tooltipPosition")},children:this.children,on:{click:n.to(h=>{this.isEnabled?this.fire("execute"):h.preventDefault()})}};it.isSafari&&(this._focusDelayed||(this._focusDelayed=Bs(()=>this.focus(),0)),l.on.mousedown=n.to(()=>{this._focusDelayed()}),l.on.mouseup=n.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(l)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(t){return t.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),t}_createKeystrokeView(){const t=new Wt;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",e=>ml(e))}]}),t}_getTooltipString(t,e,n){return t?"string"==typeof t?t:(n&&(n=ml(n)),t instanceof Function?t(e,n):`${e}${n?` (${n})`:""}`):""}}var Il=lt(5332);Rt()(Il.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xr extends ve{constructor(t){super(t),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const t=new Wt;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}var Dl=lt(6781);Rt()(Dl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lt(1103),lt(841);var Ml=lt(3662);Rt()(Ml.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class js extends Wt{constructor(t){super(t),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${Mt()}`;const e=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:e.to("for")},children:[{text:e.to("text")}]})}}var Ll=lt(2577);Rt()(Ll.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Cr extends Wt{constructor(t,e){super(t);const n=`ck-labeled-field-view-${Mt()}`,s=`ck-labeled-field-view-status-${Mt()}`;this.fieldView=e(this,n,s),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(n),this.statusView=this._createStatusView(s),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(h,p)=>h||p);const l=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",l.to("class"),l.if("isEnabled","ck-disabled",h=>!h),l.if("isEmpty","ck-labeled-field-view_empty"),l.if("isFocused","ck-labeled-field-view_focused"),l.if("placeholder","ck-labeled-field-view_placeholder"),l.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(t){const e=new js(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}_createStatusView(t){const e=new Wt(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",s=>!s)],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}focus(t){this.fieldView.focus(t)}}class Pl extends Wt{constructor(t){super(t),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new Ye,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),readonly:e.to("isReadOnly"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById")},on:{input:e.to((...n)=>{this.fire("input",...n),this._updateIsEmpty()}),change:e.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(t,e,n)=>{this._setDomElementValue(n),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(t){this.element.value=t||0===t?t:""}}var Vs=lt(4879);Rt()(Vs.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class qs extends Pl{constructor(t){super(t),this.set("inputMode","text"),this.extendTemplate({attributes:{inputmode:this.bindTemplate.to("inputMode")}})}}class th extends qs{constructor(t){super(t),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var Ys=lt(8182);Rt()(Ys.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class eh extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",n=>`ck-dropdown__panel_${n}`),e.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:e.to(n=>{"input"!==n.target.tagName.toLocaleLowerCase()&&n.preventDefault()})}})}focus(){if(this.children.length){const t=this.children.first;"function"==typeof t.focus?t.focus():kt("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}var Nl=lt(5485);Rt()(Nl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Gs=class extends Wt{constructor(r,t,e){super(r);const n=this.bindTemplate;this.buttonView=t,this.panelView=e,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.panelView.bind("isVisible").to(this,"isOpen"),this.keystrokes=new vi,this.focusTracker=new Ye,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",n.to("class"),n.if("isEnabled","ck-disabled",s=>!s)],id:n.to("id"),"aria-describedby":n.to("ariaDescribedById")},children:[t,e]}),t.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":n.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.on("change:isOpen",(t,e,n)=>{if(n)if("auto"===this.panelPosition){const s=Gs._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=s?s.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const r=(t,e)=>{this.isOpen&&(this.isOpen=!1,e())};this.keystrokes.set("arrowdown",(t,e)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,e())}),this.keystrokes.set("arrowright",(t,e)=>{this.isOpen&&e()}),this.keystrokes.set("arrowleft",r),this.keystrokes.set("esc",r)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:r,north:t,southEast:e,southWest:n,northEast:s,northWest:l,southMiddleEast:h,southMiddleWest:p,northMiddleEast:b,northMiddleWest:A}=Gs.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[e,n,h,p,r,s,l,b,A,t]:[n,e,p,h,r,l,s,A,b,t]}};let Ws=Gs;Ws.defaultPanelPositions={south:(r,t)=>({top:r.bottom,left:r.left-(t.width-r.width)/2,name:"s"}),southEast:r=>({top:r.bottom,left:r.left,name:"se"}),southWest:(r,t)=>({top:r.bottom,left:r.left-t.width+r.width,name:"sw"}),southMiddleEast:(r,t)=>({top:r.bottom,left:r.left-(t.width-r.width)/4,name:"sme"}),southMiddleWest:(r,t)=>({top:r.bottom,left:r.left-3*(t.width-r.width)/4,name:"smw"}),north:(r,t)=>({top:r.top-t.height,left:r.left-(t.width-r.width)/2,name:"n"}),northEast:(r,t)=>({top:r.top-t.height,left:r.left,name:"ne"}),northWest:(r,t)=>({top:r.top-t.height,left:r.left-t.width+r.width,name:"nw"}),northMiddleEast:(r,t)=>({top:r.top-t.height,left:r.left-(t.width-r.width)/4,name:"nme"}),northMiddleWest:(r,t)=>({top:r.top-t.height,left:r.left-3*(t.width-r.width)/4,name:"nmw"})},Ws._getOptimalPosition=Ls;const Qs='';class ih extends ve{constructor(t){super(t),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",e=>String(e))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const t=new Dn;return t.content=Qs,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}class en extends(ie()){constructor(t){if(super(),this.focusables=t.focusables,this.focusTracker=t.focusTracker,this.keystrokeHandler=t.keystrokeHandler,this.actions=t.actions,t.actions&&t.keystrokeHandler)for(const e in t.actions){let n=t.actions[e];"string"==typeof n&&(n=[n]);for(const s of n)t.keystrokeHandler.set(s,(l,h)=>{this[e](),h()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(Xs)||null}get last(){return this.focusables.filter(Xs).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((e,n)=>{const s=e.element===this.focusTracker.focusedElement;return s&&(t=n),s}),t)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const t=this.next;t&&this.focusables.getIndex(t)===this.current||(t===this.first?this.fire("forwardCycle"):this._focus(t,1))}focusPrevious(){const t=this.previous;t&&this.focusables.getIndex(t)===this.current||(t===this.last?this.fire("backwardCycle"):this._focus(t,-1))}_focus(t,e){t&&t.focus(e)}_getFocusableItem(t){const e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];let s=(e+n+t)%n;do{const l=this.focusables.get(s);if(Xs(l))return l;s=(s+n+t)%n}while(s!==e);return null}}function Xs(r){return!(!("focus"in r)||!In(r.element))}class Bl extends Wt{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class nh extends Wt{constructor(t){super(t),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}var oh=Object.defineProperty,Fl=Object.getOwnPropertySymbols,rh=Object.prototype.hasOwnProperty,sh=Object.prototype.propertyIsEnumerable,zl=(r,t,e)=>t in r?oh(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Rl=(r,t)=>{for(var e in t||(t={}))rh.call(t,e)&&zl(r,e,t[e]);if(Fl)for(var e of Fl(t))sh.call(t,e)&&zl(r,e,t[e]);return r};function Zl(r){if(Array.isArray(r))return{items:r,removeItems:[]};const t={items:[],removeItems:[]};return r?Rl(Rl({},t),r):t}class Lt extends(ne()){constructor(t){super(),this._disableStack=new Set,this.editor=t,this.set("isEnabled",!0)}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",Ul,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",Ul),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function Ul(r){r.return=!1,r.stop()}class Jt extends(ne()){constructor(t){super(),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(t,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",e=>{if(!this.affectsData)return;const n=t.model.document.selection,s="$graveyard"!=n.getFirstPosition().root.rootName&&t.model.canEditAt(n);(t.isReadOnly||this._isEnabledBasedOnSelection&&!s)&&(e.return=!1,e.stop())},{priority:"highest"}),this.on("execute",e=>{this.isEnabled||e.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(t){this._affectsData=t}refresh(){this.isEnabled=!0}forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",jl,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",jl),this.refresh())}execute(...t){}destroy(){this.stopListening()}}function jl(r){r.return=!1,r.stop()}class Vl extends Jt{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...t){const e=this._getFirstEnabledCommand();return!!e&&e.execute(t)}registerChildCommand(t,e={}){bt(this._childCommandsDefinitions,{command:t,priority:e.priority||"normal"}),t.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const t=this._childCommandsDefinitions.find(({command:e})=>e.isEnabled);return t&&t.command}}class ql extends(ie()){constructor(t,e=[],n=[]){super(),this._plugins=new Map,this._context=t,this._availablePlugins=new Map;for(const s of e)s.pluginName&&this._availablePlugins.set(s.pluginName,s);this._contextPlugins=new Map;for(const[s,l]of n)this._contextPlugins.set(s,l),this._contextPlugins.set(l,s),s.pluginName&&this._availablePlugins.set(s.pluginName,s)}*[Symbol.iterator](){for(const t of this._plugins)"function"==typeof t[0]&&(yield t)}get(t){const e=this._plugins.get(t);if(!e){let n=t;throw"function"==typeof t&&(n=t.pluginName||t.name),new W("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return e}has(t){return this._plugins.has(t)}init(t,e=[],n=[]){const s=this,l=this._context;(function j(Y,$=new Set){Y.forEach(st=>{b(st)&&($.has(st)||($.add(st),st.pluginName&&!s._availablePlugins.has(st.pluginName)&&s._availablePlugins.set(st.pluginName,st),st.requires&&j(st.requires,$)))})})(t),P(t);const h=[...function j(Y,$=new Set){return Y.map(st=>b(st)?st:s._availablePlugins.get(st)).reduce((st,ft)=>$.has(ft)?st:($.add(ft),ft.requires&&(P(ft.requires,ft),j(ft.requires,$).forEach(At=>st.add(At))),st.add(ft)),new Set)}(t.filter(j=>!C(j,e)))];!function(j,Y){for(const $ of Y){if("function"!=typeof $)throw new W("plugincollection-replace-plugin-invalid-type",null,{pluginItem:$});const st=$.pluginName;if(!st)throw new W("plugincollection-replace-plugin-missing-name",null,{pluginItem:$});if($.requires&&$.requires.length)throw new W("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:st});const ft=s._availablePlugins.get(st);if(!ft)throw new W("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:st});const At=j.indexOf(ft);if(-1===At){if(s._contextPlugins.has(ft))return;throw new W("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:st})}if(ft.requires&&ft.requires.length)throw new W("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:st});j.splice(At,1,$),s._availablePlugins.set(st,$)}}(h,n);const p=h.map(j=>{let Y=s._contextPlugins.get(j);return Y=Y||new j(l),s._add(j,Y),Y});return F(p,"init").then(()=>F(p,"afterInit")).then(()=>p);function b(j){return"function"==typeof j}function A(j){return b(j)&&!!j.isContextPlugin}function C(j,Y){return Y.some($=>$===j||E(j)===$||E($)===j)}function E(j){return b(j)?j.pluginName||j.name:j}function P(j,Y=null){j.map($=>b($)?$:s._availablePlugins.get($)||$).forEach($=>{(function(st,ft){if(!b(st))throw ft?new W("plugincollection-soft-required",l,{missingPlugin:st,requiredBy:E(ft)}):new W("plugincollection-plugin-not-found",l,{plugin:st})})($,Y),function(st,ft){if(A(ft)&&!A(st))throw new W("plugincollection-context-required",l,{plugin:E(st),requiredBy:E(ft)})}($,Y),function(st,ft){if(ft&&C(st,e))throw new W("plugincollection-required",l,{plugin:E(st),requiredBy:E(ft)})}($,Y)})}function F(j,Y){return j.reduce(($,st)=>st[Y]?s._contextPlugins.has(st)?$:$.then(st[Y].bind(st)):$,Promise.resolve())}}destroy(){const t=[];for(const[,e]of this)"function"!=typeof e.destroy||this._contextPlugins.has(e)||t.push(e.destroy());return Promise.all(t)}_add(t,e){this._plugins.set(t,e);const n=t.pluginName;if(n){if(this._plugins.has(n))throw new W("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}class Yl{constructor(t){this._contextOwner=null,this.config=new $a(t,this.constructor.defaultConfig);const e=this.constructor.builtinPlugins;this.config.define("plugins",e),this.plugins=new ql(this,e);const n=this.config.get("language")||{};this.locale=new Os({uiLanguage:"string"==typeof n?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new di}initPlugins(){const t=this.config.get("plugins")||[],e=this.config.get("substitutePlugins")||[];for(const n of t.concat(e)){if("function"!=typeof n)throw new W("context-initplugins-constructor-only",null,{Plugin:n});if(!0!==n.isContextPlugin)throw new W("context-initplugins-invalid-plugin",null,{Plugin:n})}return this.plugins.init(t,[],e)}destroy(){return Promise.all(Array.from(this.editors,t=>t.destroy())).then(()=>this.plugins.destroy())}_addEditor(t,e){if(this._contextOwner)throw new W("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}_removeEditor(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}_getEditorConfig(){const t={};for(const e of this.config.names())["plugins","removePlugins","extraPlugins"].includes(e)||(t[e]=this.config.get(e));return t}static create(t){return new Promise(e=>{const n=new this(t);e(n.initPlugins().then(()=>n))})}}class Er extends(ne()){constructor(t){super(),this.context=t}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class ah extends vi{constructor(t){super(),this.editor=t}set(t,e,n={}){if("string"==typeof e){const s=e;e=(l,h)=>{this.editor.execute(s),h()}}super.set(t,e,n)}}var Hl=lt(4717);Rt()(Hl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Tr=new WeakMap;let Gl=!1;function Wl({view:r,element:t,text:e,isDirectHost:n=!0,keepOnFocus:s=!1}){const l=r.document;function h(p){Tr.get(l).set(t,{text:p,isDirectHost:n,keepOnFocus:s,hostElement:n?t:null}),r.change(b=>Ks(l,b))}Tr.has(l)||(Tr.set(l,new Map),l.registerPostFixer(p=>Ks(l,p)),l.on("change:isComposing",()=>{r.change(p=>Ks(l,p))},{priority:"high"})),t.is("editableElement")&&t.on("change:placeholder",(p,b,A)=>{h(A)}),t.placeholder?h(t.placeholder):e&&h(e),e&&(Gl||kt("enableplaceholder-deprecated-text-option"),Gl=!0)}function Ks(r,t){const e=Tr.get(r),n=[];let s=!1;for(const[l,h]of e)h.isDirectHost&&(n.push(l),Ql(t,l,h)&&(s=!0));for(const[l,h]of e){if(h.isDirectHost)continue;const p=dh(l);p&&(n.includes(p)||(h.hostElement=p,Ql(t,l,h)&&(s=!0)))}return s}function Ql(r,t,e){const{text:n,isDirectHost:s,hostElement:l}=e;let h=!1;return l.getAttribute("data-placeholder")!==n&&(r.setAttribute("data-placeholder",n,l),h=!0),(s||1==t.childCount)&&function(p,b){if(!p.isAttached()||Array.from(p.getChildren()).some(E=>!E.is("uiElement")))return!1;const A=p.document,C=A.selection.anchor;return!(A.isComposing&&C&&C.parent===p||!b&&A.isFocused&&(!C||C.parent===p))}(l,e.keepOnFocus)?(p=r,!(b=l).hasClass("ck-placeholder")&&(p.addClass("ck-placeholder",b),!0)&&(h=!0)):function ch(r,t){return!!t.hasClass("ck-placeholder")&&(r.removeClass("ck-placeholder",t),!0)}(r,l)&&(h=!0),h;var p,b}function dh(r){if(r.childCount){const t=r.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}class Mn{is(){throw new Error("is() method is abstract")}}const Xl=function(r){return fi(r,4)};class Ln extends(ie(Mn)){constructor(t){super(),this.document=t,this.parent=null}get index(){let t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new W("view-node-not-found-in-parent",this);return t}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return this.root.is("rootElement")}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.index),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),s=t.getAncestors(e);let l=0;for(;n[l]==s[l]&&n[l];)l++;return 0===l?null:n[l-1]}isBefore(t){if(this==t||this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),s=qe(e,n);switch(s){case"prefix":return!0;case"extension":return!1;default:return e[s]t.data.length)throw new W("view-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.data.length)throw new W("view-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(t={}){const e=[];let n=t.includeSelf?this.textNode:this.parent;for(;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}Zi.prototype.is=function(r){return"$textProxy"===r||"view:$textProxy"===r||"textProxy"===r||"view:textProxy"===r};class Ti{constructor(...t){this._patterns=[],this.add(...t)}add(...t){for(let e of t)("string"==typeof e||e instanceof RegExp)&&(e={name:e}),this._patterns.push(e)}match(...t){for(const e of t)for(const n of this._patterns){const s=Kl(e,n);if(s)return{element:e,pattern:n,match:s}}return null}matchAll(...t){const e=[];for(const n of t)for(const s of this._patterns){const l=Kl(n,s);l&&e.push({element:n,pattern:s,match:l})}return e.length>0?e:null}getElementName(){if(1!==this._patterns.length)return null;const t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e}}function Kl(r,t){if("function"==typeof t)return t(r);const e={};return t.name&&(e.name=(s=r.name,(n=t.name)instanceof RegExp?!!s.match(n):n===s),!e.name)||t.attributes&&(e.attributes=function(n,s){const l=new Set(s.getAttributeKeys());return Ie(n)?(void 0!==n.style&&kt("matcher-pattern-deprecated-attributes-style-key",n),void 0!==n.class&&kt("matcher-pattern-deprecated-attributes-class-key",n)):(l.delete("style"),l.delete("class")),Js(n,l,h=>s.getAttribute(h))}(t.attributes,r),!e.attributes)||t.classes&&(e.classes=function(n,s){return Js(n,s.getClassNames(),()=>{})}(t.classes,r),!e.classes)||t.styles&&(e.styles=function(n,s){return Js(n,s.getStyleNames(!0),l=>s.getStyle(l))}(t.styles,r),!e.styles)?null:e;var n,s}function Js(r,t,e){const n=(h=r,Array.isArray(h)?h.map(p=>Ie(p)?(void 0!==p.key&&void 0!==p.value||kt("matcher-pattern-missing-key-or-value",p),[p.key,p.value]):[p,!0]):Ie(h)?Object.entries(h):[[h,!0]]),s=Array.from(t),l=[];var h;if(n.forEach(([h,p])=>{s.forEach(b=>{var A,C;C=b,(!0===(A=h)||A===C||A instanceof RegExp&&C.match(A))&&function(A,C,E){if(!0===A)return!0;const P=E(C);return A===P||A instanceof RegExp&&!!String(P).match(A)}(p,b,e)&&l.push(b)})}),n.length&&!(l.lengths?0:s+t),(e=e>s?s:e)<0&&(e+=s),s=t>e?0:e-t>>>0,t>>>=0;for(var l=Array(s);++n0){if(++t>=800)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}(Mh),oc=function(r){return function(r,t){return Ph(function(r,t,e){return t=nc(void 0===t?r.length-1:t,0),function(){for(var n=arguments,s=-1,l=nc(n.length-t,0),h=Array(l);++s1?e[s-1]:void 0,h=s>2?e[2]:void 0;for(l=r.length>3&&"function"==typeof l?(s--,l):void 0,h&&function(r,t,e){if(!te(e))return!1;var n=typeof t;return!!("number"==n?Bo(e)&&ln(t,e.length):"string"==n&&t in e)&&En(e[t],r)}(e[0],e[1],h)&&(l=s<3?void 0:l,s=1),t=Object(t);++nn===t);return Array.isArray(e)}set(t,e){if(te(t))for(const[n,s]of Object.entries(t))this._styleProcessor.toNormalizedForm(n,s,this._styles);else this._styleProcessor.toNormalizedForm(t,e,this._styles)}remove(t){const e=na(t);(function(r,t){null==r||function(r,t){null==(r=function(r,t){return t.length<2?r:tc(r,ec(t,0,-1))}(r,t=ta(t,r)))||delete r[ea(function(r){var t=null==r?0:r.length;return t?r[t-1]:void 0}(t))]}(r,t)})(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}getNormalized(t){return this._styleProcessor.getNormalized(t,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(t=>t.join(":")).sort().join(";")+";"}getAsString(t){if(this.isEmpty)return;if(this._styles[t]&&!te(this._styles[t]))return this._styles[t];const e=this._styleProcessor.getReducedForm(t,this._styles).find(([n])=>n===t);return Array.isArray(e)?e[1]:void 0}getStyleNames(t=!1){return this.isEmpty?[]:t?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([e])=>e)}clear(){this._styles={}}_getStylesEntries(){const t=[],e=Object.keys(this._styles);for(const n of e)t.push(...this._styleProcessor.getReducedForm(n,this._styles));return t}_cleanEmptyObjectsOnPath(t){const e=t.split(".");if(!(e.length>1))return;const n=e.splice(0,e.length-1).join("."),s=Si(this._styles,n);s&&!Object.keys(s).length&&this.remove(n)}}class Rh{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(t,e,n){if(te(e))Mr(n,na(t),e);else if(this._normalizers.has(t)){const s=this._normalizers.get(t),{path:l,value:h}=s(e);Mr(n,l,h)}else Mr(n,t,e)}getNormalized(t,e){if(!t)return rc({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){const n=this._extractors.get(t);if("string"==typeof n)return Si(e,n);const s=n(t,e);if(s)return s}return Si(e,na(t))}getReducedForm(t,e){const n=this.getNormalized(t,e);return void 0===n?[]:this._reducers.has(t)?this._reducers.get(t)(n):[[t,n]]}getStyleNames(t){const e=Array.from(this._consumables.keys()).filter(s=>{const l=this.getNormalized(s,t);return l&&"object"==typeof l?Object.keys(l).length:l}),n=new Set([...e,...Object.keys(t)]);return Array.from(n)}getRelatedStyles(t){return this._consumables.get(t)||[]}setNormalizer(t,e){this._normalizers.set(t,e)}setExtractor(t,e){this._extractors.set(t,e)}setReducer(t,e){this._reducers.set(t,e)}setStyleRelation(t,e){this._mapStyleNames(t,e);for(const n of e)this._mapStyleNames(n,[t])}_mapStyleNames(t,e){this._consumables.has(t)||this._consumables.set(t,[]),this._consumables.get(t).push(...e)}}function na(r){return r.replace("-",".")}function Mr(r,t,e){let n=e;te(e)&&(n=rc({},Si(r,t),e)),function(r,t,e){null==r||function(r,t,e,n){if(!te(r))return r;for(var s=-1,l=(t=ta(t,r)).length,h=l-1,p=r;null!=p&&++s0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(t){if("class"==t)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==t){const e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(t)}hasAttribute(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}isSimilar(t){if(!(t instanceof hi))return!1;if(this===t)return!0;if(this.name!=t.name||this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;for(const[e,n]of this._attrs)if(!t._attrs.has(e)||t._attrs.get(e)!==n)return!1;for(const e of this._classes)if(!t._classes.has(e))return!1;for(const e of this._styles.getStyleNames())if(!t._styles.has(e)||t._styles.getAsString(e)!==this._styles.getAsString(e))return!1;return!0}hasClass(...t){for(const e of t)if(!this._classes.has(e))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(t){return this._styles.getAsString(t)}getNormalizedStyle(t){return this._styles.getNormalized(t)}getStyleNames(t){return this._styles.getStyleNames(t)}hasStyle(...t){for(const e of t)if(!this._styles.has(e))return!1;return!0}findAncestor(...t){const e=new Ti(...t);let n=this.parent;for(;n&&!n.is("documentFragment");){if(e.match(n))return n;n=n.parent}return null}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map(s=>`${s[0]}="${s[1]}"`).sort().join(" ");return this.name+(""==t?"":` class="${t}"`)+(e?` style="${e}"`:"")+(""==n?"":` ${n}`)}shouldRenderUnsafeAttribute(t){return this._unsafeAttributesToRender.includes(t)}_clone(t=!1){const e=[];if(t)for(const s of this.getChildren())e.push(s._clone(t));const n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n}_appendChild(t){return this._insertChild(this.childCount,t)}_insertChild(t,e){this._fireChange("children",this);let n=0;const s=(l=this.document,"string"==typeof(h=e)?[new ke(l,h)]:(ti(h)||(h=[h]),Array.from(h).map(p=>"string"==typeof p?new ke(l,p):p instanceof Zi?new ke(l,p.data):p)));var l,h;for(const l of s)null!==l.parent&&l._remove(),l.parent=this,l.document=this.document,this._children.splice(t,0,l),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}_addClass(t){this._fireChange("attributes",this);for(const e of Ze(t))this._classes.add(e)}_removeClass(t){this._fireChange("attributes",this);for(const e of Ze(t))this._classes.delete(e)}_setStyle(t,e){this._fireChange("attributes",this),"string"!=typeof t?this._styles.set(t):this._styles.set(t,e)}_removeStyle(t){this._fireChange("attributes",this);for(const e of Ze(t))this._styles.remove(e)}_setCustomProperty(t,e){this._customProperties.set(t,e)}_removeCustomProperty(t){return this._customProperties.delete(t)}}function Lr(r,t){const e=t.split(/\s+/);r.clear(),e.forEach(n=>r.add(n))}hi.prototype.is=function(r,t){return t?t===this.name&&("element"===r||"view:element"===r):"element"===r||"view:element"===r||"node"===r||"view:node"===r};class po extends hi{constructor(t,e,n,s){super(t,e,n,s),this.getFillerOffset=sc}}function sc(){const r=[...this.getChildren()],t=r[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;for(const e of r)if(!e.is("uiElement"))return null;return this.childCount}po.prototype.is=function(r,t){return t?t===this.name&&("containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class Pr extends(ne(po)){constructor(t,e,n,s){super(t,e,n,s),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(t),this.bind("isFocused").to(t,"isFocused",l=>l&&t.selection.editableElement==this),this.listenTo(t.selection,"change",()=>{this.isFocused=t.isFocused&&t.selection.editableElement==this})}destroy(){this.stopListening()}}Pr.prototype.is=function(r,t){return t?t===this.name&&("editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};const ac=Symbol("rootName");class lc extends Pr{constructor(t,e){super(t,e),this.rootName="main"}get rootName(){return this.getCustomProperty(ac)}set rootName(t){this._setCustomProperty(ac,t)}set _name(t){this.name=t}}lc.prototype.is=function(r,t){return t?t===this.name&&("rootElement"===r||"view:rootElement"===r||"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r):"rootElement"===r||"view:rootElement"===r||"editableElement"===r||"view:editableElement"===r||"containerElement"===r||"view:containerElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class nn{constructor(t={}){if(!t.boundaries&&!t.startPosition)throw new W("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new W("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,this._position=Bt._createAt(t.startPosition?t.startPosition:t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n;do{n=this.position,e=this.next()}while(!e.done&&t(e.value));e.done||(this._position=n)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&t.offset===n.childCount)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let s;if(n instanceof ke){if(t.isAtEnd)return this._position=Bt._createAfter(n),this._next();s=n.data[t.offset]}else s=n.getChild(t.offset);if(s instanceof hi){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(t))return{done:!0,value:void 0};t.offset++}else t=new Bt(s,0);return this._position=t,this._formatReturnValue("elementStart",s,e,t,1)}if(s instanceof ke){if(this.singleCharacters)return t=new Bt(s,0),this._position=t,this._next();let l,h=s.data.length;return s==this._boundaryEndParent?(h=this.boundaries.end.offset,l=new Zi(s,0,h),t=Bt._createAfter(l)):(l=new Zi(s,0,s.data.length),t.offset++),this._position=t,this._formatReturnValue("text",l,e,t,h)}if("string"==typeof s){let l;l=this.singleCharacters?1:(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset;const h=new Zi(n,t.offset,l);return t.offset+=l,this._position=t,this._formatReturnValue("text",h,e,t,l)}return t=Bt._createAfter(n),this._position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t)}_previous(){let t=this.position.clone();const e=this.position,n=t.parent;if(null===n.parent&&0===t.offset)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let s;if(n instanceof ke){if(t.isAtStart)return this._position=Bt._createBefore(n),this._previous();s=n.data[t.offset-1]}else s=n.getChild(t.offset-1);if(s instanceof hi)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",s,e,t,1)):(t=new Bt(s,s.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",s,e,t));if(s instanceof ke){if(this.singleCharacters)return t=new Bt(s,s.data.length),this._position=t,this._previous();let l,h=s.data.length;if(s==this._boundaryStartParent){const p=this.boundaries.start.offset;l=new Zi(s,p,s.data.length-p),h=l.data.length,t=Bt._createBefore(l)}else l=new Zi(s,0,s.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",l,e,t,h)}if("string"==typeof s){let l;l=this.singleCharacters?1:t.offset-(n===this._boundaryStartParent?this.boundaries.start.offset:0),t.offset-=l;const h=new Zi(n,t.offset,l);return this._position=t,this._formatReturnValue("text",h,e,t,l)}return t=Bt._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1)}_formatReturnValue(t,e,n,s,l){return e instanceof Zi&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=Bt._createAfter(e.textNode):(s=Bt._createAfter(e.textNode),this._position=s)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=Bt._createBefore(e.textNode):(s=Bt._createBefore(e.textNode),this._position=s))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:s,length:l}}}}class Bt extends Mn{constructor(t,e){super(),this.parent=t,this.offset=e}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}get root(){return this.parent.root}get editableElement(){let t=this.parent;for(;!(t instanceof Pr);){if(!t.parent)return null;t=t.parent}return t}getShiftedBy(t){const e=Bt._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e}getLastMatchingPosition(t,e={}){e.startPosition=this;const n=new nn(e);return n.skip(t),n.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(t){const e=this.getAncestors(),n=t.getAncestors();let s=0;for(;e[s]==n[s]&&e[s];)s++;return 0===s?null:e[s-1]}isEqual(t){return this.parent==t.parent&&this.offset==t.offset}isBefore(t){return"before"==this.compareWith(t)}isAfter(t){return"after"==this.compareWith(t)}compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";const e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);const s=qe(e,n);switch(s){case"prefix":return"before";case"extension":return"after";default:return e[s]0?new this(n,s):new this(s,n)}static _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}static _createOn(t){const e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(Bt._createBefore(t),e)}}function Nr(r){return!(!r.item.is("attributeElement")&&!r.item.is("uiElement"))}Gt.prototype.is=function(r){return"range"===r||"view:range"===r};class Ii extends(ie(Mn)){constructor(...t){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",t.length&&this.setTo(...t)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}get focus(){if(!this._ranges.length)return null;const t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const t of this._ranges)yield t.clone()}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?t.clone():null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?t.clone():null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}isEqual(t){if(this.isFake!=t.isFake||this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel||this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const s of t._ranges)if(e.isEqual(s)){n=!0;break}if(!n)return!1}return!0}isSimilar(t){if(this.isBackward!=t.isBackward)return!1;const e=yo(this.getRanges());if(e!=yo(t.getRanges()))return!1;if(0==e)return!0;for(let n of this.getRanges()){n=n.getTrimmed();let s=!1;for(let l of t.getRanges())if(l=l.getTrimmed(),n.start.isEqual(l.start)&&n.end.isEqual(l.end)){s=!0;break}if(!s)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...t){let[e,n,s]=t;if("object"==typeof n&&(s=n,n=void 0),null===e)this._setRanges([]),this._setFakeOptions(s);else if(e instanceof Ii||e instanceof oa)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof Gt)this._setRanges([e],s&&s.backward),this._setFakeOptions(s);else if(e instanceof Bt)this._setRanges([new Gt(e)]),this._setFakeOptions(s);else if(e instanceof Ln){const l=!!s&&!!s.backward;let h;if(void 0===n)throw new W("view-selection-setto-required-second-parameter",this);h="in"==n?Gt._createIn(e):"on"==n?Gt._createOn(e):new Gt(Bt._createAt(e,n)),this._setRanges([h],l),this._setFakeOptions(s)}else{if(!ti(e))throw new W("view-selection-setto-not-selectable",this);this._setRanges(e,s&&s.backward),this._setFakeOptions(s)}this.fire("change")}setFocus(t,e){if(null===this.anchor)throw new W("view-selection-setfocus-no-ranges",this);const n=Bt._createAt(t,e);if("same"==n.compareWith(this.focus))return;const s=this.anchor;this._ranges.pop(),"before"==n.compareWith(s)?this._addRange(new Gt(n,s),!0):this._addRange(new Gt(s,n)),this.fire("change")}_setRanges(t,e=!1){t=Array.from(t),this._ranges=[];for(const n of t)this._addRange(n);this._lastRangeBackward=!!e}_setFakeOptions(t={}){this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}_addRange(t,e=!1){if(!(t instanceof Gt))throw new W("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}_pushRange(t){for(const e of this._ranges)if(t.isIntersecting(e))throw new W("view-selection-range-intersects",this,{addedRange:t,intersectingRange:e});this._ranges.push(new Gt(t.start,t.end))}}Ii.prototype.is=function(r){return"selection"===r||"view:selection"===r};class oa extends(ie(Mn)){constructor(...t){super(),this._selection=new Ii,this._selection.delegate("change").to(this),t.length&&this._selection.setTo(...t)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(t){return this._selection.isEqual(t)}isSimilar(t){return this._selection.isSimilar(t)}_setTo(...t){this._selection.setTo(...t)}_setFocus(t,e){this._selection.setFocus(t,e)}}oa.prototype.is=function(r){return"selection"===r||"documentSelection"==r||"view:selection"==r||"view:documentSelection"==r};class go extends xt{constructor(t,e,n){super(t,e),this.startRange=n,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const ra=Symbol("bubbling contexts");function sa(r){return class extends r{fire(t,...e){try{const n=t instanceof xt?t:new xt(this,t),s=aa(this);if(!s.size)return;if(Ho(n,"capturing",this),mo(s,"$capture",n,...e))return n.return;const l=n.startRange||this.selection.getFirstRange(),h=l?l.getContainedElement():null,p=!!h&&!!cc(s,h);let b=h||function(A){if(!A)return null;const C=A.start.parent,E=A.end.parent,P=C.getPath(),F=E.getPath();return P.length>F.length?C:E}(l);if(Ho(n,"atTarget",b),!p){if(mo(s,"$text",n,...e))return n.return;Ho(n,"bubbling",b)}for(;b;){if(b.is("rootElement")){if(mo(s,"$root",n,...e))return n.return}else if(b.is("element")&&mo(s,b.name,n,...e))return n.return;if(mo(s,b,n,...e))return n.return;b=b.parent,Ho(n,"bubbling",b)}return Ho(n,"bubbling",this),mo(s,"$document",n,...e),n.return}catch(n){W.rethrowUnexpectedError(n,this)}}_addEventListener(t,e,n){const s=Ze(n.context||"$document"),l=aa(this);for(const h of s){let p=l.get(h);p||(p=new(ie()),l.set(h,p)),this.listenTo(p,t,e,n)}}_removeEventListener(t,e){const n=aa(this);for(const s of n.values())this.stopListening(s,t,e)}}}{const r=sa(Object);["fire","_addEventListener","_removeEventListener"].forEach(t=>{sa[t]=r.prototype[t]})}function Ho(r,t,e){r instanceof go&&(r._eventPhase=t,r._currentTarget=e)}function mo(r,t,e,...n){const s="string"==typeof t?r.get(t):cc(r,t);return!!s&&(s.fire(e,...n),e.stop.called)}function cc(r,t){for(const[e,n]of r)if("function"==typeof e&&e(t))return n;return null}function aa(r){return r[ra]||(r[ra]=new Map),r[ra]}class Or extends(sa(ne())){constructor(t){super(),this._postFixers=new Set,this.selection=new oa,this.roots=new di({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(t="main"){return this.roots.get(t)}registerPostFixer(t){this._postFixers.add(t)}destroy(){this.roots.forEach(t=>t.destroy()),this.stopListening()}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(e=n(t),e)break}while(e)}}class Nn extends hi{constructor(t,e,n,s){super(t,e,n,s),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=Zh}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new W("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(t){return null!==this.id||null!==t.id?this.id===t.id:super.isSimilar(t)&&this.priority==t.priority}_clone(t=!1){const e=super._clone(t);return e._priority=this._priority,e._id=this._id,e}}function Zh(){if(la(this))return null;let r=this.parent;for(;r&&r.is("attributeElement");){if(la(r)>1)return null;r=r.parent}return!r||la(r)>1?null:this.childCount}function la(r){return Array.from(r.getChildren()).filter(t=>!t.is("uiElement")).length}Nn.DEFAULT_PRIORITY=10,Nn.prototype.is=function(r,t){return t?t===this.name&&("attributeElement"===r||"view:attributeElement"===r||"element"===r||"view:element"===r):"attributeElement"===r||"view:attributeElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class ca extends hi{constructor(t,e,n,s){super(t,e,n,s),this.getFillerOffset=Uh}_insertChild(t,e){if(e&&(e instanceof Ln||Array.from(e).length>0))throw new W("view-emptyelement-cannot-add",[this,e]);return 0}}function Uh(){return null}ca.prototype.is=function(r,t){return t?t===this.name&&("emptyElement"===r||"view:emptyElement"===r||"element"===r||"view:element"===r):"emptyElement"===r||"view:emptyElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class Br extends hi{constructor(t,e,n,s){super(t,e,n,s),this.getFillerOffset=Vh}_insertChild(t,e){if(e&&(e instanceof Ln||Array.from(e).length>0))throw new W("view-uielement-cannot-add",[this,e]);return 0}render(t,e){return this.toDomElement(t)}toDomElement(t){const e=t.createElement(this.name);for(const n of this.getAttributeKeys())e.setAttribute(n,this.getAttribute(n));return e}}function Vh(){return null}Br.prototype.is=function(r,t){return t?t===this.name&&("uiElement"===r||"view:uiElement"===r||"element"===r||"view:element"===r):"uiElement"===r||"view:uiElement"===r||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class da extends hi{constructor(t,e,n,s){super(t,e,n,s),this.getFillerOffset=ui}_insertChild(t,e){if(e&&(e instanceof Ln||Array.from(e).length>0))throw new W("view-rawelement-cannot-add",[this,e]);return 0}render(t,e){}}function ui(){return null}da.prototype.is=function(r,t){return t?t===this.name&&("rawElement"===r||"view:rawElement"===r||"element"===r||"view:element"===r):"rawElement"===r||"view:rawElement"===r||r===this.name||r==="view:"+this.name||"element"===r||"view:element"===r||"node"===r||"view:node"===r};class fo extends(ie(Mn)){constructor(t,e){super(),this._children=[],this._customProperties=new Map,this.document=t,e&&this._insertChild(0,e)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}get getFillerOffset(){}getCustomProperty(t){return this._customProperties.get(t)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(t){return this._insertChild(this.childCount,t)}getChild(t){return this._children[t]}getChildIndex(t){return this._children.indexOf(t)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(t,e){this._fireChange("children",this);let n=0;const s=(l=this.document,"string"==typeof(h=e)?[new ke(l,h)]:(ti(h)||(h=[h]),Array.from(h).map(p=>"string"==typeof p?new ke(l,p):p instanceof Zi?new ke(l,p.data):p)));var l,h;for(const l of s)null!==l.parent&&l._remove(),l.parent=this,this._children.splice(t,0,l),t++,n++;return n}_removeChildren(t,e=1){this._fireChange("children",this);for(let n=t;n{const b=h[h.length-1],A=!p.is("uiElement");return b&&b.breakAttributes==A?b.nodes.push(p):h.push({breakAttributes:A,nodes:[p]}),h},[]);let s=null,l=t;for(const{nodes:h,breakAttributes:p}of n){const b=this._insertNodes(l,h,p);s||(s=b.start),l=b.end}return s?new Gt(s,l):new Gt(t)}remove(t){const e=t instanceof Gt?t:Gt._createOn(t);if(Fr(e,this.document),e.isCollapsed)return new fo(this.document);const{start:n,end:s}=this._breakAttributesRange(e,!0),p=n.parent._removeChildren(n.offset,s.offset-n.offset);for(const A of p)this._removeFromClonedElementsGroup(A);const b=this.mergeAttributes(n);return e.start=b,e.end=b.clone(),new fo(this.document,p)}clear(t,e){Fr(t,this.document);const n=t.getWalker({direction:"backward",ignoreElementEnd:!0});for(const s of n){const l=s.item;let h;if(l.is("element")&&e.isSimilar(l))h=Gt._createOn(l);else if(!s.nextPosition.isAfter(t.start)&&l.is("$textProxy")){const p=l.getAncestors().find(b=>b.is("element")&&e.isSimilar(b));p&&(h=Gt._createIn(p))}h&&(h.end.isAfter(t.end)&&(h.end=t.end),h.start.isBefore(t.start)&&(h.start=t.start),this.remove(h))}}move(t,e){let n;if(e.isAfter(t.end)){const s=(e=this._breakAttributes(e,!0)).parent,l=s.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=s.childCount-l}else n=this.remove(t);return this.insert(e,n)}wrap(t,e){if(!(e instanceof Nn))throw new W("view-writer-wrap-invalid-attribute",this.document);if(Fr(t,this.document),t.isCollapsed){let s=t.start;s.parent.is("element")&&!Array.from(s.parent.getChildren()).some(h=>!h.is("uiElement"))&&(s=s.getLastMatchingPosition(h=>h.item.is("uiElement"))),s=this._wrapPosition(s,e);const l=this.document.selection;return l.isCollapsed&&l.getFirstPosition().isEqual(t.start)&&this.setSelection(s),new Gt(s)}return this._wrapRange(t,e)}unwrap(t,e){if(!(e instanceof Nn))throw new W("view-writer-unwrap-invalid-attribute",this.document);if(Fr(t,this.document),t.isCollapsed)return t;const{start:n,end:s}=this._breakAttributesRange(t,!0),h=this._unwrapChildren(n.parent,n.offset,s.offset,e),p=this.mergeAttributes(h.start);p.isEqual(h.start)||h.end.offset--;const b=this.mergeAttributes(h.end);return new Gt(p,b)}rename(t,e){const n=new po(this.document,t,e.getAttributes());return this.insert(Bt._createAfter(e),n),this.move(Gt._createIn(e),Bt._createAt(n,0)),this.remove(Gt._createOn(e)),n}clearClonedElementsGroup(t){this._cloneGroups.delete(t)}createPositionAt(t,e){return Bt._createAt(t,e)}createPositionAfter(t){return Bt._createAfter(t)}createPositionBefore(t){return Bt._createBefore(t)}createRange(t,e){return new Gt(t,e)}createRangeOn(t){return Gt._createOn(t)}createRangeIn(t){return Gt._createIn(t)}createSelection(...t){return new Ii(...t)}createSlot(t="children"){if(!this._slotFactory)throw new W("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t)}_registerSlotFactory(t){this._slotFactory=t}_clearSlotFactory(){this._slotFactory=null}_insertNodes(t,e,n){let s,l;if(s=n?dc(t):t.parent.is("$text")?t.parent.parent:t.parent,!s)throw new W("view-writer-invalid-position-container",this.document);l=n?this._breakAttributes(t,!0):t.parent.is("$text")?hc(t):t;const h=s._insertChild(l.offset,e);for(const C of e)this._addToClonedElementsGroup(C);const p=l.getShiftedBy(h),b=this.mergeAttributes(l);b.isEqual(l)||p.offset--;const A=this.mergeAttributes(p);return new Gt(b,A)}_wrapChildren(t,e,n,s){let l=e;const h=[];for(;l!1,t.parent._insertChild(t.offset,n);const s=new Gt(t,t.getShiftedBy(1));this.wrap(s,e);const l=new Bt(n.parent,n.index);n._remove();const h=l.nodeBefore,p=l.nodeAfter;return h instanceof ke&&p instanceof ke?uc(h,p):Yh(l)}_wrapAttributeElement(t,e){if(!Hh(t,e)||t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&e.hasAttribute(n)&&e.getAttribute(n)!==t.getAttribute(n))return!1;for(const n of t.getStyleNames())if(e.hasStyle(n)&&e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&(e.hasAttribute(n)||this.setAttribute(n,t.getAttribute(n),e));for(const n of t.getStyleNames())e.hasStyle(n)||this.setStyle(n,t.getStyle(n),e);for(const n of t.getClassNames())e.hasClass(n)||this.addClass(n,e);return!0}_unwrapAttributeElement(t,e){if(!Hh(t,e)||t.name!==e.name||t.priority!==e.priority)return!1;for(const n of t.getAttributeKeys())if("class"!==n&&"style"!==n&&(!e.hasAttribute(n)||e.getAttribute(n)!==t.getAttribute(n)))return!1;if(!e.hasClass(...t.getClassNames()))return!1;for(const n of t.getStyleNames())if(!e.hasStyle(n)||e.getStyle(n)!==t.getStyle(n))return!1;for(const n of t.getAttributeKeys())"class"!==n&&"style"!==n&&this.removeAttribute(n,e);return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}_breakAttributesRange(t,e=!1){const n=t.start,s=t.end;if(Fr(t,this.document),t.isCollapsed){const b=this._breakAttributes(t.start,e);return new Gt(b,b)}const l=this._breakAttributes(s,e),h=l.parent.childCount,p=this._breakAttributes(n,e);return l.offset+=l.parent.childCount-h,new Gt(p,l)}_breakAttributes(t,e=!1){const n=t.offset,s=t.parent;if(t.parent.is("emptyElement"))throw new W("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new W("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new W("view-writer-cannot-break-raw-element",this.document);if(!e&&s.is("$text")&&gc(s.parent)||gc(s))return t.clone();if(s.is("$text"))return this._breakAttributes(hc(t),e);if(n==s.childCount){const l=new Bt(s.parent,s.index+1);return this._breakAttributes(l,e)}if(0===n){const l=new Bt(s.parent,s.index);return this._breakAttributes(l,e)}{const l=s.index+1,h=s._clone();s.parent._insertChild(l,h),this._addToClonedElementsGroup(h);const b=s._removeChildren(n,s.childCount-n);h._appendChild(b);const A=new Bt(s.parent,l);return this._breakAttributes(A,e)}}_addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element"))for(const s of t.getChildren())this._addToClonedElementsGroup(s);const e=t.id;if(!e)return;let n=this._cloneGroups.get(e);n||(n=new Set,this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n}_removeFromClonedElementsGroup(t){if(t.is("element"))for(const s of t.getChildren())this._removeFromClonedElementsGroup(s);const e=t.id;if(!e)return;const n=this._cloneGroups.get(e);n&&n.delete(t)}}function dc(r){let t=r.parent;for(;!gc(t);){if(!t)return;t=t.parent}return t}function Np(r,t){return r.priorityt.priority)&&r.getIdentity()e instanceof n))throw new W("view-writer-insert-invalid-node-type",t);e.is("$text")||Ui(e.getChildren(),t)}}function gc(r){return r&&(r.is("containerElement")||r.is("documentFragment"))}function Fr(r,t){const e=dc(r.start),n=dc(r.end);if(!e||!n||e!==n)throw new W("view-writer-invalid-range-container",t)}function Hh(r,t){return null===r.id&&null===t.id}const Gh=r=>r.createTextNode("\xa0"),Wh=r=>{const t=r.createElement("span");return t.dataset.ckeFiller="true",t.innerText="\xa0",t},Qh=r=>{const t=r.createElement("br");return t.dataset.ckeFiller="true",t},ji=7,zr="\u2060".repeat(ji);function ki(r){return"string"==typeof r?r.substr(0,ji)===zr:Le(r)&&r.data.substr(0,ji)===zr}function Rr(r){return r.data.length==ji&&ki(r)}function Xh(r){const t="string"==typeof r?r:r.data;return ki(r)?t.slice(ji):t}function Op(r,t){if(t.keyCode==se.arrowleft){const e=t.domTarget.ownerDocument.defaultView.getSelection();if(1==e.rangeCount&&e.getRangeAt(0).collapsed){const n=e.getRangeAt(0).startContainer,s=e.getRangeAt(0).startOffset;ki(n)&&s<=ji&&e.collapse(n,0)}}}var Kh=lt(9315);Rt()(Kh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Fp extends(ne()){constructor(t,e){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=t,this.selection=e,this.set("isFocused",!1),this.set("isSelecting",!1),it.isBlink&&!it.isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t)throw new W("view-renderer-unknown-type",this);this.markedChildren.add(e)}}}render(){if(this.isComposing&&!it.isAndroid)return;let t=null;const e=!(it.isBlink&&!it.isAndroid&&this.isSelecting);for(const n of this.markedChildren)this._updateChildrenMappings(n);e?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(t=this.domConverter.domPositionToView(this._inlineFiller),t&&t.parent.is("$text")&&(t=Bt._createBefore(t.parent)));for(const n of this.markedAttributes)this._updateAttrs(n);for(const n of this.markedChildren)this._updateChildren(n,{inlineFillerPosition:t});for(const n of this.markedTexts)!this.markedChildren.has(n.parent)&&this.domConverter.mapViewToDom(n.parent)&&this._updateText(n,{inlineFillerPosition:t});if(e)if(t){const n=this.domConverter.viewPositionToDom(t),s=n.parent.ownerDocument;this._inlineFiller=ki(n.parent)?n.parent:mc(s,n.parent,n.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.domConverter._clearTemporaryCustomProperties(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.childNodes),s=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),l=this._diffNodeLists(n,s),h=this._findUpdateActions(l,n,s,zp);if(-1!==h.indexOf("update")){const p={equal:0,insert:0,delete:0};for(const b of h)if("update"===b){const A=p.equal+p.insert,C=p.equal+p.delete,E=t.getChild(A);!E||E.is("uiElement")||E.is("rawElement")||this._updateElementMappings(E,n[C]),Ps(s[A]),p.equal++}else p[b]++}}_updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}_getInlineFillerPosition(){const t=this.selection.getFirstPosition();return t.parent.is("$text")?Bt._createBefore(t.parent):t}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&Le(e.parent)&&ki(e.parent))}_removeInlineFiller(){const t=this._inlineFiller;if(!ki(t))throw new W("view-renderer-filler-was-lost",this);Rr(t)?t.remove():t.data=t.data.substr(ji),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root)||!e.is("element")||!function(h){if("false"==h.getAttribute("contenteditable"))return!1;const p=h.findAncestor(b=>b.hasAttribute("contenteditable"));return!p||"true"==p.getAttribute("contenteditable")}(e)||n===e.getFillerOffset())return!1;const s=t.nodeBefore,l=t.nodeAfter;return!(s instanceof ke||l instanceof ke||it.isAndroid&&(s||l))}_updateText(t,e){const n=this.domConverter.findCorrespondingDomText(t);let s=this.domConverter.viewToDom(t).data;const l=e.inlineFillerPosition;l&&l.parent==t.parent&&l.offset==t.index&&(s=zr+s),Jh(n,s)}_updateAttrs(t){const e=this.domConverter.mapViewToDom(t);if(!e)return;const n=Array.from(e.attributes).map(l=>l.name),s=t.getAttributeKeys();for(const l of s)this.domConverter.setDomElementAttribute(e,l,t.getAttribute(l),t);for(const l of n)t.hasAttribute(l)||this.domConverter.removeDomElementAttribute(e,l)}_updateChildren(t,e){const n=this.domConverter.mapViewToDom(t);if(!n)return;if(it.isAndroid){let E=null;for(const P of Array.from(n.childNodes)){if(E&&Le(E)&&Le(P)){n.normalize();break}E=P}}const s=e.inlineFillerPosition,l=n.childNodes,h=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));s&&s.parent===t&&mc(n.ownerDocument,h,s.offset);const p=this._diffNodeLists(l,h),b=this._findUpdateActions(p,l,h,Rp);let A=0;const C=new Set;for(const E of b)"delete"===E?(C.add(l[A]),Ps(l[A])):"equal"!==E&&"update"!==E||A++;A=0;for(const E of b)"insert"===E?(ll(n,A,h[A]),A++):"update"===E?(Jh(l[A],h[A].data),A++):"equal"===E&&(this._markDescendantTextToSync(this.domConverter.domToView(h[A])),A++);for(const E of C)E.parentNode||this.domConverter.unbindDomElement(E)}_diffNodeLists(t,e){return pt(t=function(n,s){const l=Array.from(n);return 0==l.length||!s||l[l.length-1]==s&&l.pop(),l}(t,this._fakeSelectionContainer),e,Zp.bind(null,this.domConverter))}_findUpdateActions(t,e,n,s){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;let l=[],h=[],p=[];const b={equal:0,insert:0,delete:0};for(const A of t)"insert"===A?p.push(n[b.equal+b.insert]):"delete"===A?h.push(e[b.equal+b.delete]):(l=l.concat(pt(h,p,s).map(C=>"equal"===C?"update":C)),l.push("equal"),h=[],p=[]),b[A]++;return l.concat(pt(h,p,s).map(A=>"equal"===A?"update":A))}_markDescendantTextToSync(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element"))for(const e of t.getChildren())this._markDescendantTextToSync(e)}_updateSelection(){if(it.isBlink&&!it.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(t)):this.isComposing&&it.isAndroid||this._updateDomSelection(t))}_updateFakeSelection(t){const e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(h){const p=h.createElement("div");return p.className="ck-fake-selection-container",Object.assign(p.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),p.textContent="\xa0",p}(e));const n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(t))return;n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||"\xa0";const s=e.getSelection(),l=e.createRange();s.removeAllRanges(),l.selectNodeContents(n),s.addRange(l)}_updateDomSelection(t){const e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;const n=this.domConverter.viewPositionToDom(this.selection.anchor),s=this.domConverter.viewPositionToDom(this.selection.focus);e.setBaseAndExtent(n.parent,n.offset,s.parent,s.offset),it.isGecko&&function(l,h){const p=l.parent;if(p.nodeType!=Node.ELEMENT_NODE||l.offset!=p.childNodes.length-1)return;const b=p.childNodes[l.offset];b&&"BR"==b.tagName&&h.addRange(h.getRangeAt(0))}(s,e)}_domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;const e=t&&this.domConverter.domSelectionToView(t);return!(e&&this.selection.isEqual(e)||!this.selection.isCollapsed&&this.selection.isSimilar(e))}_fakeSelectionNeedsUpdate(t){const e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const t of this.domDocuments){const e=t.getSelection();if(e.rangeCount){const n=t.activeElement,s=this.domConverter.mapDomToView(n);n&&s&&e.removeAllRanges()}}}_removeFakeSelection(){const t=this._fakeSelectionContainer;t&&t.remove()}_updateFocus(){if(this.isFocused){const t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}function mc(r,t,e){const n=t instanceof Array?t:t.childNodes,s=n[e];if(Le(s))return s.data=zr+s.data,s;{const l=r.createTextNode(zr);return Array.isArray(t)?n.splice(e,0,l):ll(t,e,l),l}}function zp(r,t){return cn(r)&&cn(t)&&!Le(r)&&!Le(t)&&!Zo(r)&&!Zo(t)&&r.tagName.toLowerCase()===t.tagName.toLowerCase()}function Rp(r,t){return cn(r)&&cn(t)&&Le(r)&&Le(t)}function Zp(r,t,e){return t===e||(Le(t)&&Le(e)?t.data===e.data:!(!r.isBlockFiller(t)||!r.isBlockFiller(e)))}function Jh(r,t){const e=r.data;if(e==t)return;const n=Q(e,t);for(const s of n)"insert"===s.type?r.insertData(s.index,s.values.join("")):r.deleteData(s.index,s.howMany)}const Up=Qh(Yt.document),jp=Gh(Yt.document),$h=Wh(Yt.document),Zr="data-ck-unsafe-attribute-",fc="data-ck-unsafe-element";class ha{constructor(t,{blockFillerMode:e,renderingMode:n="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new Ti,this._inlineObjectElementMatcher=new Ti,this._elementsWithTemporaryCustomProperties=new Set,this.document=t,this.renderingMode=n,this.blockFillerMode=e||("editing"===n?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Yt.document:Yt.document.implementation.createHTMLDocument("")}bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new Ii(e))}fakeSelectionToView(t){return this._fakeSelectionMapping.get(t)}bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}unbindDomElement(t){const e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(const n of Array.from(t.children))this.unbindDomElement(n)}}bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}shouldRenderAttribute(t,e,n){return"data"===this.renderingMode||!(t=t.toLowerCase()).startsWith("on")&&("srcdoc"!==t||!e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===n&&("src"===t||"srcset"===t)||"source"===n&&"srcset"===t||!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(t,e){if("data"===this.renderingMode)return void(t.innerHTML=e);const n=(new DOMParser).parseFromString(e,"text/html"),s=n.createDocumentFragment(),l=n.body.childNodes;for(;l.length>0;)s.appendChild(l[0]);const h=n.createTreeWalker(s,NodeFilter.SHOW_ELEMENT),p=[];let b;for(;b=h.nextNode();)p.push(b);for(const A of p){for(const E of A.getAttributeNames())this.setDomElementAttribute(A,E,A.getAttribute(E));const C=A.tagName.toLowerCase();this._shouldRenameElement(C)&&(kc(C),A.replaceWith(this._createReplacementDomElement(C,A)))}for(;t.firstChild;)t.firstChild.remove();t.append(s)}viewToDom(t,e={}){if(t.is("$text")){const n=this._processDataFromViewText(t);return this._domDocument.createTextNode(n)}{const n=t;if(this.mapViewToDom(n)){if(!n.getCustomProperty("editingPipeline:doNotReuseOnce"))return this.mapViewToDom(n);this._elementsWithTemporaryCustomProperties.add(n)}let s;if(n.is("documentFragment"))s=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(s,n);else{if(n.is("uiElement"))return s="$comment"===n.name?this._domDocument.createComment(n.getCustomProperty("$rawContent")):n.render(this._domDocument,this),e.bind&&this.bindElements(s,n),s;this._shouldRenameElement(n.name)?(kc(n.name),s=this._createReplacementDomElement(n.name)):s=n.hasAttribute("xmlns")?this._domDocument.createElementNS(n.getAttribute("xmlns"),n.name):this._domDocument.createElement(n.name),n.is("rawElement")&&n.render(s,this),e.bind&&this.bindElements(s,n);for(const l of n.getAttributeKeys())this.setDomElementAttribute(s,l,n.getAttribute(l),n)}if(!1!==e.withChildren)for(const l of this.viewChildrenToDom(n,e))s.appendChild(l);return s}}setDomElementAttribute(t,e,n,s){const l=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||s&&s.shouldRenderUnsafeAttribute(e);l||kt("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),function(h){try{Yt.document.createAttribute(h)}catch{return!1}return!0}(e)?(t.hasAttribute(e)&&!l?t.removeAttribute(e):t.hasAttribute(Zr+e)&&l&&t.removeAttribute(Zr+e),t.setAttribute(l?e:Zr+e,n)):kt("domconverter-invalid-attribute-detected",{domElement:t,key:e,value:n})}removeDomElementAttribute(t,e){e!=fc&&(t.removeAttribute(e),t.removeAttribute(Zr+e))}*viewChildrenToDom(t,e={}){const n=t.getFillerOffset&&t.getFillerOffset();let s=0;for(const l of t.getChildren()){n===s&&(yield this._getBlockFiller());const h=l.is("element")&&!!l.getCustomProperty("dataPipeline:transparentRendering")&&!Oe(l.getAttributes());h&&"data"==this.renderingMode?yield*this.viewChildrenToDom(l,e):(h&&kt("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:l}),yield this.viewToDom(l,e)),s++}n===s&&(yield this._getBlockFiller())}viewRangeToDom(t){const e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),s=this._domDocument.createRange();return s.setStart(e.parent,e.offset),s.setEnd(n.parent,n.offset),s}viewPositionToDom(t){const e=t.parent;if(e.is("$text")){const n=this.findCorrespondingDomText(e);if(!n)return null;let s=t.offset;return ki(n)&&(s+=ji),{parent:n,offset:s}}{let n,s,l;if(0===t.offset){if(n=this.mapViewToDom(e),!n)return null;l=n.childNodes[0]}else{const h=t.nodeBefore;if(s=h.is("$text")?this.findCorrespondingDomText(h):this.mapViewToDom(h),!s)return null;n=s.parentNode,l=s.nextSibling}return Le(l)&&ki(l)?{parent:l,offset:ji}:{parent:n,offset:s?_r(s)+1:0}}}domToView(t,e={}){const n=[],s=this._domToView(t,e,n),l=s.next().value;return l?(s.next(),this._processDomInlineNodes(null,n,e),l.is("$text")&&0==l.data.length?null:l):null}*domChildrenToView(t,e={},n=[]){for(let s=0;s{const{scrollLeft:p,scrollTop:b}=h;l.push([p,b])}),e.focus(),bc(e,h=>{const[p,b]=l.shift();h.scrollLeft=p,h.scrollTop=b}),Yt.window.scrollTo(n,s)}}_clearDomSelection(){const t=this.mapViewToDom(this.document.selection.editableElement);if(!t)return;const e=t.ownerDocument.defaultView.getSelection(),n=this.domSelectionToView(e);n&&n.rangeCount>0&&e.removeAllRanges()}isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE}isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(t){return"br"==this.blockFillerMode?t.isEqualNode(Up):!("BR"!==t.tagName||!vc(t,this.blockElements)||1!==t.parentNode.childNodes.length)||t.isEqualNode($h)||(n=this.blockElements,(e=t).isEqualNode(jp)&&vc(e,n)&&1===e.parentNode.childNodes.length);var e,n}isDomSelectionBackward(t){if(t.isCollapsed)return!1;const e=this._domDocument.createRange();try{e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset)}catch{return!1}const n=e.collapsed;return e.detach(),n}getHostViewElement(t){const e=function(n){const s=[];let l=n;for(;l&&l.nodeType!=Node.DOCUMENT_NODE;)s.unshift(l),l=l.parentNode;return s}(t);for(e.pop();e.length;){const n=e.pop(),s=this._domToViewMapping.get(n);if(s&&(s.is("uiElement")||s.is("rawElement")))return s}return null}isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}registerRawContentMatcher(t){this._rawContentElementMatcher.add(t)}registerInlineObjectMatcher(t){this._inlineObjectElementMatcher.add(t)}_clearTemporaryCustomProperties(){for(const t of this._elementsWithTemporaryCustomProperties)t._removeCustomProperty("editingPipeline:doNotReuseOnce");this._elementsWithTemporaryCustomProperties.clear()}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Gh(this._domDocument);case"markedNbsp":return Wh(this._domDocument);case"br":return Qh(this._domDocument)}}_isDomSelectionPositionCorrect(t,e){if(Le(t)&&ki(t)&&e0?e[l-1]:null,C=l+1this.preElements.includes(n.name)))return e;if(" "==e.charAt(0)){const n=this._getTouchingInlineViewNode(t,!1);!(n&&n.is("$textProxy")&&this._nodeEndsWithSpace(n))&&n||(e="\xa0"+e.substr(1))}if(" "==e.charAt(e.length-1)){const n=this._getTouchingInlineViewNode(t,!0),s=n&&n.is("$textProxy")&&" "==n.data.charAt(0);" "!=e.charAt(e.length-2)&&n&&!s||(e=e.substr(0,e.length-1)+"\xa0")}return e.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(t){if(t.getAncestors().some(n=>this.preElements.includes(n.name)))return!1;const e=this._processDataFromViewText(t);return" "==e.charAt(e.length-1)}_getTouchingInlineViewNode(t,e){const n=new nn({startPosition:e?Bt._createAfter(t):Bt._createBefore(t),direction:e?"forward":"backward"});for(const s of n){if(s.item.is("element","br"))return null;if(this._isInlineObjectElement(s.item))return s.item;if(s.item.is("containerElement"))return null;if(s.item.is("$textProxy"))return s.item}return null}_isBlockDomElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}_isBlockViewElement(t){return t.is("element")&&this.blockElements.includes(t.name)}_isInlineObjectElement(t){return!!t.is("element")&&("br"==t.name||this.inlineObjectElements.includes(t.name)||!!this._inlineObjectElementMatcher.match(t))}_createViewElement(t,e){if(Zo(t))return new Br(this.document,"$comment");const n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new hi(this.document,n)}_isViewElementWithRawContent(t,e){return!1!==e.withChildren&&t.is("element")&&!!this._rawContentElementMatcher.match(t)}_shouldRenameElement(t){const e=t.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(e)}_createReplacementDomElement(t,e){const n=this._domDocument.createElement("span");if(n.setAttribute(fc,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);for(const s of e.getAttributeNames())n.setAttribute(s,e.getAttribute(s))}return n}}function tu(r,t){return r.getAncestors().some(e=>e.is("element")&&t.includes(e.name))}function bc(r,t){let e=r;for(;e;)t(e),e=e.parentElement}function vc(r,t){const e=r.parentNode;return!!e&&!!e.tagName&&t.includes(e.tagName.toLowerCase())}function kc(r){"script"===r&&kt("domconverter-unsafe-script-element-detected"),"style"===r&&kt("domconverter-unsafe-style-element-detected")}class Vi extends(bi()){constructor(t){super(),this._isEnabled=!1,this.view=t,this.document=t.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const On=oc(function(r,t){De(t,oo(t),r)});class bo{constructor(t,e,n){this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,On(this,n)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class un extends Vi{constructor(){super(...arguments),this.useCapture=!1}observe(t){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(e=>{this.listenTo(t,e,(n,s)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(s.target)&&this.onDomEvent(s)},{useCapture:this.useCapture})})}stopObserving(t){this.stopListening(t)}fire(t,e,n){this.isEnabled&&this.document.fire(t,new bo(this.view,e,n))}}class eu extends un{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(t){this.fire(t.type,t,{keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return so(this)}})}}const Ur=function(){return li.Date.now()};var _c=/\s/,wc=/^\s+/,ou=/^[-+]0x[0-9a-f]+$/i,ru=/^0b[01]+$/i,su=/^0o[0-7]+$/i,au=parseInt;const Ac=function(r){if("number"==typeof r)return r;if(Sr(r))return NaN;if(te(r)){var t="function"==typeof r.valueOf?r.valueOf():r;r=te(t)?t+"":t}if("string"!=typeof r)return 0===r?r:+r;r=function(r){return r&&r.slice(0,function(r){for(var t=r.length;t--&&_c.test(r.charAt(t)););return t}(r)+1).replace(wc,"")}(r);var e=ru.test(r);return e||su.test(r)?au(r.slice(2),e?2:8):ou.test(r)?NaN:+r};var lu=Math.max,cu=Math.min;const Go=function(r,t,e){var n,s,l,h,p,b,A=0,C=!1,E=!1,P=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function F(ft){var At=n,Ft=s;return n=s=void 0,A=ft,h=r.apply(Ft,At)}function j(ft){var At=ft-b;return void 0===b||At>=t||At<0||E&&ft-A>=l}function Y(){var At,Ft,ft=Ur();if(j(ft))return $(ft);p=setTimeout(Y,(Ft=t-((At=ft)-b),E?cu(Ft,l-(At-A)):Ft))}function $(ft){return p=void 0,P&&n?F(ft):(n=s=void 0,h)}function st(){var Ft,ft=Ur(),At=j(ft);if(n=arguments,s=this,b=ft,At){if(void 0===p)return A=Ft=b,p=setTimeout(Y,t),C?F(Ft):h;if(E)return clearTimeout(p),p=setTimeout(Y,t),F(b)}return void 0===p&&(p=setTimeout(Y,t)),h}return t=Ac(t)||0,te(e)&&(C=!!e.leading,l=(E="maxWait"in e)?lu(Ac(e.maxWait)||0,t):l,P="trailing"in e?!!e.trailing:P),st.cancel=function(){void 0!==p&&clearTimeout(p),A=0,n=b=s=p=void 0},st.flush=function(){return void 0===p?h:$(Ur())},st};class du extends Vi{constructor(t){super(t),this._fireSelectionChangeDoneDebounced=Go(e=>{this.document.fire("selectionChangeDone",e)},200)}observe(){const t=this.document;t.on("arrowKey",(e,n)=>{t.selection.isFake&&this.isEnabled&&n.preventDefault()},{context:"$capture"}),t.on("arrowKey",(e,n)=>{t.selection.isFake&&this.isEnabled&&this._handleSelectionMove(n.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(t){const e=this.document.selection,n=new Ii(e.getRanges(),{backward:e.isBackward,fake:!1});t!=se.arrowleft&&t!=se.arrowup||n.setTo(n.getFirstPosition()),t!=se.arrowright&&t!=se.arrowdown||n.setTo(n.getLastPosition());const s={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",s),this._fireSelectionChangeDoneDebounced(s)}}function jr(r){var t=-1,e=null==r?0:r.length;for(this.__data__=new Et;++tp))return!1;var A=l.get(r),C=l.get(t);if(A&&C)return A==t&&C==r;var E=-1,P=!0,F=2&e?new w:void 0;for(l.set(r,t),l.set(t,r);++E{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),t.change(()=>{})},50)}),e.on("blur",(n,s)=>{const l=e.selection.editableElement;null!==l&&l!==s.target||(e.isFocused=!1,this._isFocusChanging=!1,t.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(t){this.fire(t.type,t)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class gu extends Vi{constructor(t){super(t),this.mutationObserver=t.getObserver(xc),this.focusObserver=t.getObserver(Vr),this.selection=this.document.selection,this.domConverter=t.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=Go(e=>{this.document.fire("selectionChangeDone",e)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=Go(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(t){const e=t.ownerDocument,n=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,e),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(t,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(t,"keydown",n,{priority:"highest",useCapture:!0}),this.listenTo(t,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(e)||(this.listenTo(e,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(e,"selectionchange",(s,l)=>{this.document.isComposing&&!it.isAndroid||(this._handleSelectionChange(l,e),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(e))}stopObserving(t){this.stopListening(t)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(t,e){if(!this.isEnabled)return;const n=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();const s=this.domConverter.domSelectionToView(n);if(0!=s.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(s)||!this.domConverter.isDomSelectionCorrect(n))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(s))this.view.forceRender();else{const l={oldSelection:this.selection,newSelection:s,domSelection:n};this.document.fire("selectionChange",l),this._fireSelectionChangeDoneDebounced(l)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class mu extends un{constructor(t){super(t),this.domEventType=["compositionstart","compositionupdate","compositionend"];const e=this.document;e.on("compositionstart",()=>{e.isComposing=!0},{priority:"low"}),e.on("compositionend",()=>{e.isComposing=!1},{priority:"low"})}onDomEvent(t){this.fire(t.type,t,{data:t.data})}}class Cc{constructor(t,e={}){this._files=e.cacheFiles?yc(t):null,this._native=t}get files(){return this._files||(this._files=yc(this._native)),this._files}get types(){return this._native.types}getData(t){return this._native.getData(t)}setData(t,e){this._native.setData(t,e)}set effectAllowed(t){this._native.effectAllowed=t}get effectAllowed(){return this._native.effectAllowed}set dropEffect(t){this._native.dropEffect=t}get dropEffect(){return this._native.dropEffect}setDragImage(t,e,n){this._native.setDragImage(t,e,n)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function yc(r){const t=Array.from(r.files||[]),e=Array.from(r.items||[]);return t.length?t:e.filter(n=>"file"===n.kind).map(n=>n.getAsFile())}class fu extends un{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(t){const e=t.getTargetRanges(),n=this.view,s=n.document;let l=null,h=null,p=[];if(t.dataTransfer&&(l=new Cc(t.dataTransfer)),null!==t.data?h=t.data:l&&(h=l.getData("text/plain")),s.selection.isFake)p=Array.from(s.selection.getRanges());else if(e.length)p=e.map(b=>{const A=n.domConverter.domPositionToView(b.startContainer,b.startOffset),C=n.domConverter.domPositionToView(b.endContainer,b.endOffset);return A?n.createRange(A,C):C?n.createRange(C):void 0}).filter(b=>!!b);else if(it.isAndroid){const b=t.target.ownerDocument.defaultView.getSelection();p=Array.from(n.domConverter.domSelectionToView(b).getRanges())}if(it.isAndroid&&"insertCompositionText"==t.inputType&&h&&h.endsWith("\n"))this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(p[0].end)]});else if("insertText"==t.inputType&&h&&h.includes("\n")){const b=h.split(/\n{1,2}/g);let A=p;for(let C=0;C{if(this.isEnabled&&((s=n.keyCode)==se.arrowright||s==se.arrowleft||s==se.arrowup||s==se.arrowdown)){const l=new go(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(l,n),l.stop.called&&e.stop()}var s})}observe(){}stopObserving(){}}class vu extends Vi{constructor(t){super(t);const e=this.document;e.on("keydown",(n,s)=>{if(!this.isEnabled||s.keyCode!=se.tab||s.ctrlKey)return;const l=new go(e,"tab",e.selection.getFirstRange());e.fire(l,s),l.stop.called&&n.stop()})}observe(){}stopObserving(){}}const pn=function(r){return fi(r,5)};class ku extends(ne()){constructor(t){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new Or(t),this.domConverter=new ha(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Fp(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new qh(this.document),this.addObserver(xc),this.addObserver(Vr),this.addObserver(gu),this.addObserver(eu),this.addObserver(du),this.addObserver(mu),this.addObserver(bu),this.addObserver(fu),this.addObserver(vu),this.document.on("arrowKey",Op,{priority:"low"}),function jh(r){r.document.on("arrowKey",(t,e)=>function(n,s,l){if(s.keyCode==se.arrowright){const h=s.domTarget.ownerDocument.defaultView.getSelection(),p=1==h.rangeCount&&h.getRangeAt(0).collapsed;if(p||s.shiftKey){const C=l.domPositionToView(h.focusNode,h.focusOffset);if(null===C)return;let E=!1;const P=C.getLastMatchingPosition(F=>(F.item.is("uiElement")&&(E=!0),!(!F.item.is("uiElement")&&!F.item.is("attributeElement"))));if(E){const F=l.viewPositionToDom(P);p?h.collapse(F.parent,F.offset):h.extend(F.parent,F.offset)}}}}(0,e,r.domConverter),{priority:"low"})}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),it.isiOS&&this.listenTo(this.document,"blur",(e,n)=>{this.domConverter.mapDomToView(n.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(t,e="main"){const n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();const s={};for(const{name:h,value:p}of Array.from(t.attributes))s[h]=p,"class"===h?this._writer.addClass(p.split(" "),n):this._writer.setAttribute(h,p,n);this._initialDomRootAttributes.set(t,s);const l=()=>{this._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?this._writer.addClass("ck-read-only",n):this._writer.removeClass("ck-read-only",n)};l(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",(h,p)=>this._renderer.markToSync("children",p)),n.on("change:attributes",(h,p)=>this._renderer.markToSync("attributes",p)),n.on("change:text",(h,p)=>this._renderer.markToSync("text",p)),n.on("change:isReadOnly",()=>this.change(l)),n.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const h of this._observers.values())h.observe(t,e)}detachDomRoot(t){const e=this.domRoots.get(t);Array.from(e.attributes).forEach(({name:s})=>e.removeAttribute(s));const n=this._initialDomRootAttributes.get(e);for(const s in n)e.setAttribute(s,n[s]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e);for(const s of this._observers.values())s.stopObserving(e)}getDomRoot(t="main"){return this.domRoots.get(t)}addObserver(t){let e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);for(const[n,s]of this.domRoots)e.observe(s,n);return e.enable(),e}getObserver(t){return this._observers.get(t)}disableObservers(){for(const t of this._observers.values())t.disable()}enableObservers(){for(const t of this._observers.values())t.enable()}scrollToTheSelection({alignToTop:t,forceScroll:e,viewportOffset:n=20,ancestorOffset:s=20}={}){const l=this.document.selection.getFirstRange();if(!l)return;const h=pn({alignToTop:t,forceScroll:e,viewportOffset:n,ancestorOffset:s});"number"==typeof n&&(n={top:n,bottom:n,left:n,right:n});const p={target:this.domConverter.viewRangeToDom(l),viewportOffset:n,ancestorOffset:s,alignToTop:t,forceScroll:e};this.fire("scrollToTheSelection",p,h),function({target:b,viewportOffset:A=0,ancestorOffset:C=0,alignToTop:E,forceScroll:P}){const F=jo(b);let j=F,Y=null;for(A="number"==typeof($=A)?{top:$,bottom:$,left:$,right:$}:$;j;){let $;$=Nd(j==F?b:Y),Pd({parent:$,getRect:()=>wr(b,j),alignToTop:E,ancestorOffset:C,forceScroll:P});const st=wr(b,j);if(ul({window:j,rect:st,viewportOffset:A,alignToTop:E,forceScroll:P}),j.parent!=j){if(Y=j.frameElement,j=j.parent,!Y)return}else j=null}var $}(p)}focus(){if(!this.document.isFocused){const t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new W("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;const e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(e){W.rethrowUnexpectedError(e,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(Vr).flush(),this.change(()=>{})}destroy(){for(const t of this._observers.values())t.destroy();this.document.destroy(),this.stopListening()}createPositionAt(t,e){return Bt._createAt(t,e)}createPositionAfter(t){return Bt._createAfter(t)}createPositionBefore(t){return Bt._createBefore(t)}createRange(t,e){return new Gt(t,e)}createRangeOn(t){return Gt._createOn(t)}createRangeIn(t){return Gt._createIn(t)}createSelection(...t){return new Ii(...t)}_disableRendering(t){this._renderingDisabled=t,0==t&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class gn{is(){throw new Error("is() method is abstract")}}class Bn extends gn{constructor(t){super(),this.parent=null,this._attrs=ri(t)}get document(){return null}get index(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new W("model-node-not-found-in-parent",this);return t}get startOffset(){let t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new W("model-node-not-found-in-parent",this);return t}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const t=this.index;return null!==t&&this.parent.getChild(t+1)||null}get previousSibling(){const t=this.index;return null!==t&&this.parent.getChild(t-1)||null}get root(){let t=this;for(;t.parent;)t=t.parent;return t}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const t=[];let e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}getCommonAncestor(t,e={}){const n=this.getAncestors(e),s=t.getAncestors(e);let l=0;for(;n[l]==s[l]&&n[l];)l++;return 0===l?null:n[l-1]}isBefore(t){if(this==t||this.root!==t.root)return!1;const e=this.getPath(),n=t.getPath(),s=qe(e,n);switch(s){case"prefix":return!0;case"extension":return!1;default:return e[s](e[n[0]]=n[1],e),{})),t}_clone(t){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(t,e){this._attrs.set(t,e)}_setAttributesTo(t){this._attrs=ri(t)}_removeAttribute(t){return this._attrs.delete(t)}_clearAttributes(){this._attrs.clear()}}Bn.prototype.is=function(r){return"node"===r||"model:node"===r};class Wo{constructor(t){this._nodes=[],t&&this._insertNodes(0,t)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((t,e)=>t+e.offsetSize,0)}getNode(t){return this._nodes[t]||null}getNodeIndex(t){const e=this._nodes.indexOf(t);return-1==e?null:e}getNodeStartOffset(t){const e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce((n,s)=>n+s.offsetSize,0)}indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;const e=this._nodes[t];if(!e)throw new W("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}offsetToIndex(t){let e=0;for(const n of this._nodes){if(t>=e&&t1e4)return n.slice(0,l).concat(s).concat(n.slice(l+0,n.length));{const p=Array.from(n);return p.splice(l,0,...s),p}}(this._nodes,Array.from(e),t)}_removeNodes(t,e=1){return this._nodes.splice(t,e)}toJSON(){return this._nodes.map(t=>t.toJSON())}}class _e extends Bn{constructor(t,e){super(e),this._data=t||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const t=super.toJSON();return t.data=this.data,t}_clone(){return new _e(this.data,this.getAttributes())}static fromJSON(t){return new _e(t.data,t.attributes)}}_e.prototype.is=function(r){return"$text"===r||"model:$text"===r||"text"===r||"model:text"===r||"node"===r||"model:node"===r};class Mi extends gn{constructor(t,e,n){if(super(),this.textNode=t,e<0||e>t.offsetSize)throw new W("model-textproxy-wrong-offsetintext",this);if(n<0||e+n>t.offsetSize)throw new W("model-textproxy-wrong-length",this);this.data=t.data.substring(e,e+n),this.offsetInText=e}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}getAncestors(t={}){const e=[];let n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}hasAttribute(t){return this.textNode.hasAttribute(t)}getAttribute(t){return this.textNode.getAttribute(t)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}Mi.prototype.is=function(r){return"$textProxy"===r||"model:$textProxy"===r||"textProxy"===r||"model:textProxy"===r};class me extends Bn{constructor(t,e,n){super(e),this._children=new Wo,this.name=t,n&&this._insertChild(0,n)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}findAncestor(t,e={}){let n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length>0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map(n=>n._clone(!0)):void 0;return new me(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n="string"==typeof(s=e)?[new _e(s)]:(ti(s)||(s=[s]),Array.from(s).map(l=>"string"==typeof l?new _e(l):l instanceof Mi?new _e(l.data,l.getAttributes()):l));var s;for(const s of n)null!==s.parent&&s._remove(),s.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const s of n)s.parent=null;return n}static fromJSON(t){let e;if(t.children){e=[];for(const n of t.children)e.push(n.name?me.fromJSON(n):_e.fromJSON(n))}return new me(t.name,t.attributes,e)}}me.prototype.is=function(r,t){return t?t===this.name&&("element"===r||"model:element"===r):"element"===r||"model:element"===r||"node"===r||"model:node"===r};class Li{constructor(t){if(!t||!t.boundaries&&!t.startPosition)throw new W("model-tree-walker-no-start-position",null);const e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new W("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,this._position=t.startPosition?t.startPosition.clone():Dt._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(t){let e,n,s,l;do{s=this.position,l=this._visitedParent,({done:e,value:n}=this.next())}while(!e&&t(n));e||(this._position=s,this._visitedParent=l)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const s=Qo(e,n),l=s||Vp(e,n,s);if(l instanceof me){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(e))return{done:!0,value:void 0};e.offset++}else e.path.push(0),this._visitedParent=l;return this._position=e,Fn("elementStart",l,t,e,1)}if(l instanceof _e){let h;if(this.singleCharacters)h=1;else{let A=l.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offsetC&&(C=this.boundaries.start.offset),p=e.offset-C}const A=new Mi(h,e.offset-h.startOffset-p,p);return e.offset-=p,this._position=e,Fn("text",A,t,e,p)}return e.path.pop(),this._position=e,this._visitedParent=n.parent,Fn("elementStart",n,t,e,1)}}function Fn(r,t,e,n,s){return{done:!1,value:{type:r,item:t,previousPosition:e,nextPosition:n,length:s}}}class Dt extends gn{constructor(t,e,n="toNone"){if(super(),!t.is("element")&&!t.is("documentFragment"))throw new W("model-position-root-invalid",t);if(!(e instanceof Array)||0===e.length)throw new W("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[...t.getPath(),...e],t=t.root),this.root=t,this.path=e,this.stickiness=n}get offset(){return this.path[this.path.length-1]}set offset(t){this.path[this.path.length-1]=t}get parent(){let t=this.root;for(let e=0;e1)return!1;if(1===s)return Yp(t,this,n);if(-1===s)return Yp(this,t,n)}return this.path.length===t.path.length||_u(this.path.length>t.path.length?this.path:t.path,e)}hasSameParentAs(t){return this.root===t.root&&"same"==qe(this.getParentPath(),t.getParentPath())}getTransformedByOperation(t){let e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=Dt._createAt(this)}return e}_getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany)}_getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}_getTransformedBySplitOperation(t){const e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}_getTransformedByMergeOperation(t){const e=t.movedRange;let n;return e.containsPosition(this)||e.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?Dt._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}_getTransformedByDeletion(t,e){const n=Dt._createAt(this);if(this.root!=t.root)return n;if("same"==qe(t.getParentPath(),this.getParentPath())){if(t.offsetthis.offset)return null;n.offset-=e}}else if("prefix"==qe(t.getParentPath(),this.getParentPath())){const s=t.path.length-1;if(t.offset<=this.path[s]){if(t.offset+e>this.path[s])return null;n.path[s]-=e}}return n}_getTransformedByInsertion(t,e){const n=Dt._createAt(this);if(this.root!=t.root)return n;if("same"==qe(t.getParentPath(),this.getParentPath()))(t.offset=s;){if(n.path[h]+p!==l.maxOffset)return!1;p=1,h--,l=l.parent}return!0}(r,e+1)}function _u(r,t){for(;te+1;){const l=s.maxOffset-n.offset;0!==l&&t.push(new wt(n,n.getShiftedBy(l))),n.path=n.path.slice(0,-1),n.offset++,s=s.parent}for(;n.path.length<=this.end.path.length;){const l=this.end.path[n.path.length-1],h=l-n.offset;0!==h&&t.push(new wt(n,n.getShiftedBy(h))),n.offset=l,n.path.push(0)}return t}getWalker(t={}){return t.boundaries=this,new Li(t)}*getItems(t={}){t.boundaries=this,t.ignoreElementEnd=!0;const e=new Li(t);for(const n of e)yield n.item}*getPositions(t={}){t.boundaries=this;const e=new Li(t);yield e.position;for(const n of e)yield n.nextPosition}getTransformedByOperation(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new wt(this.start,this.end)]}getTransformedByOperations(t){const e=[new wt(this.start,this.end)];for(const n of t)for(let s=0;s0?new this(n,s):new this(s,n)}static _createIn(t){return new this(Dt._createAt(t,0),Dt._createAt(t,t.maxOffset))}static _createOn(t){return this._createFromPositionAndShift(Dt._createBefore(t),t.offsetSize)}static _createFromRanges(t){if(0===t.length)throw new W("range-create-from-ranges-empty-array",null);if(1==t.length)return t[0].clone();const e=t[0];t.sort((l,h)=>l.start.isAfter(h.start)?1:-1);const n=t.indexOf(e),s=new this(e.start,e.end);if(n>0)for(let l=n-1;t[l].end.isEqual(s.start);l++)s.start=Dt._createAt(t[l].start);for(let l=n+1;l{if(e.viewPosition)return;const n=this._modelToViewMapping.get(e.modelPosition.parent);if(!n)throw new W("mapping-model-position-view-parent-not-found",this,{modelPosition:e.modelPosition});e.viewPosition=this.findPositionIn(n,e.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(t,e)=>{if(e.modelPosition)return;const n=this.findMappedViewAncestor(e.viewPosition),s=this._viewToModelMapping.get(n),l=this._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=Dt._createAt(s,l)},{priority:"low"})}bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}unbindViewElement(t,e={}){const n=this.toModelElement(t);if(this._elementToMarkerNames.has(t))for(const s of this._elementToMarkerNames.get(t))this._unboundMarkerNames.add(s);e.defer?this._deferredBindingRemovals.set(t,t.root):(this._viewToModelMapping.delete(t),this._modelToViewMapping.get(n)==t&&this._modelToViewMapping.delete(n))}unbindModelElement(t){const e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}bindElementToMarker(t,e){const n=this._markerNameToElements.get(e)||new Set;n.add(t);const s=this._elementToMarkerNames.get(t)||new Set;s.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,s)}unbindElementFromMarkerName(t,e){const n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));const s=this._elementToMarkerNames.get(t);s&&(s.delete(e),0==s.size&&this._elementToMarkerNames.delete(t))}flushUnboundMarkerNames(){const t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}flushDeferredBindings(){for(const[t,e]of this._deferredBindingRemovals)t.root==e&&this.unbindViewElement(t);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(t){return this._viewToModelMapping.get(t)}toViewElement(t){return this._modelToViewMapping.get(t)}toModelRange(t){return new wt(this.toModelPosition(t.start),this.toModelPosition(t.end))}toViewRange(t){return new Gt(this.toViewPosition(t.start),this.toViewPosition(t.end))}toModelPosition(t){const e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}toViewPosition(t,e={}){const n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}markerNameToElements(t){const e=this._markerNameToElements.get(t);if(!e)return null;const n=new Set;for(const s of e)if(s.is("attributeElement"))for(const l of s.getElementsWithSameId())n.add(l);else n.add(s);return n}registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e)}findMappedViewAncestor(t){let e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e}_toModelOffset(t,e,n){if(n!=t)return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t);if(t.is("$text"))return e;let s=0;for(let l=0;l1?t[0]+":"+t[1]:t[0]}var D0=Object.defineProperty,M0=Object.defineProperties,L0=Object.getOwnPropertyDescriptors,Gp=Object.getOwnPropertySymbols,P0=Object.prototype.hasOwnProperty,N0=Object.prototype.propertyIsEnumerable,Wp=(r,t,e)=>t in r?D0(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,wu=(r,t)=>{for(var e in t||(t={}))P0.call(t,e)&&Wp(r,e,t[e]);if(Gp)for(var e of Gp(t))N0.call(t,e)&&Wp(r,e,t[e]);return r},Qp=(r,t)=>M0(r,L0(t));class Xp extends(ie()){constructor(t){super(),this._conversionApi=wu({dispatcher:this},t),this._firedEventsMap=new WeakMap}convertChanges(t,e,n){const s=this._createConversionApi(n,t.getRefreshedItems());for(const h of t.getMarkersToRemove())this._convertMarkerRemove(h.name,h.range,s);const l=this._reduceChanges(t.getChanges());for(const h of l)"insert"===h.type?this._convertInsert(wt._createFromPositionAndShift(h.position,h.length),s):"reinsert"===h.type?this._convertReinsert(wt._createFromPositionAndShift(h.position,h.length),s):"remove"===h.type?this._convertRemove(h.position,h.length,h.name,s):this._convertAttribute(h.range,h.attributeKey,h.attributeOldValue,h.attributeNewValue,s);s.mapper.flushDeferredBindings();for(const h of s.mapper.flushUnboundMarkerNames()){const p=e.get(h).getRange();this._convertMarkerRemove(h,p,s),this._convertMarkerAdd(h,p,s)}for(const h of t.getMarkersToAdd())this._convertMarkerAdd(h.name,h.range,s);s.consumable.verifyAllConsumed("insert")}convert(t,e,n,s={}){const l=this._createConversionApi(n,void 0,s);this._convertInsert(t,l);for(const[h,p]of e)this._convertMarkerAdd(h,p,l);l.consumable.verifyAllConsumed("insert")}convertSelection(t,e,n){const s=this._createConversionApi(n);this.fire("cleanSelection",{selection:t},s);const l=t.getFirstPosition().root;if(!s.mapper.toViewElement(l))return;const h=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this._addConsumablesForSelection(s.consumable,t,h),this.fire("selection",{selection:t},s),t.isCollapsed){for(const p of h)if(s.consumable.test(t,"addMarker:"+p.name)){const b=p.getRange();if(!O0(t.getFirstPosition(),p,s.mapper))continue;this.fire(`addMarker:${p.name}`,{item:t,markerName:p.name,markerRange:b},s)}for(const p of t.getAttributeKeys())if(s.consumable.test(t,"attribute:"+p)){const b={item:t,range:t.getFirstRange(),attributeKey:p,attributeOldValue:null,attributeNewValue:t.getAttribute(p)};this.fire(`attribute:${p}:$text`,b,s)}}}_convertInsert(t,e,n={}){n.doNotAddConsumables||this._addConsumablesForInsert(e.consumable,t);for(const s of Array.from(t.getWalker({shallow:!0})).map(Kp))this._testAndFire("insert",s,e)}_convertRemove(t,e,n,s){this.fire(`remove:${n}`,{position:t,length:e},s)}_convertAttribute(t,e,n,s,l){this._addConsumablesForRange(l.consumable,t,`attribute:${e}`);for(const h of t){const p={item:h.item,range:wt._createFromPositionAndShift(h.previousPosition,h.length),attributeKey:e,attributeOldValue:n,attributeNewValue:s};this._testAndFire(`attribute:${e}`,p,l)}}_convertReinsert(t,e){const n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);for(const s of n.map(Kp))this._testAndFire("insert",Qp(wu({},s),{reconversion:!0}),e)}_convertMarkerAdd(t,e,n){if("$graveyard"==e.root.rootName)return;const s=`addMarker:${t}`;if(n.consumable.add(e,s),this.fire(s,{markerName:t,markerRange:e},n),n.consumable.consume(e,s)){this._addConsumablesForRange(n.consumable,e,s);for(const l of e.getItems()){if(!n.consumable.test(l,s))continue;const h={item:l,range:wt._createOn(l),markerName:t,markerRange:e};this.fire(s,h,n)}}}_convertMarkerRemove(t,e,n){"$graveyard"!=e.root.rootName&&this.fire(`removeMarker:${t}`,{markerName:t,markerRange:e},n)}_reduceChanges(t){const e={changes:t};return this.fire("reduceChanges",e),e.changes}_addConsumablesForInsert(t,e){for(const n of e){const s=n.item;if(null===t.test(s,"insert")){t.add(s,"insert");for(const l of s.getAttributeKeys())t.add(s,"attribute:"+l)}}return t}_addConsumablesForRange(t,e,n){for(const s of e.getItems())t.add(s,n);return t}_addConsumablesForSelection(t,e,n){t.add(e,"selection");for(const s of n)t.add(e,"addMarker:"+s.name);for(const s of e.getAttributeKeys())t.add(e,"attribute:"+s);return t}_testAndFire(t,e,n){const s=`${t}:${(A=e).item.is("element")?A.item.name:"$text"}`,l=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,h=this._firedEventsMap.get(n),p=h.get(l);var A;if(p){if(p.has(s))return;p.add(s)}else h.set(l,new Set([s]));this.fire(s,e,n)}_testAndFireAddAttributes(t,e){const n={item:t,range:wt._createOn(t)};for(const s of n.item.getAttributeKeys())n.attributeKey=s,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(s),this._testAndFire(`attribute:${s}`,n,e)}_createConversionApi(t,e=new Set,n={}){const s=Qp(wu({},this._conversionApi),{consumable:new I0,writer:t,options:n,convertItem:l=>this._convertInsert(wt._createOn(l),s),convertChildren:l=>this._convertInsert(wt._createIn(l),s,{doNotAddConsumables:!0}),convertAttributes:l=>this._testAndFireAddAttributes(l,s),canReuseView:l=>!e.has(s.mapper.toModelElement(l))});return this._firedEventsMap.set(s,new Map),s}}function O0(r,t,e){const n=t.getRange(),s=Array.from(r.getAncestors());return s.shift(),s.reverse(),!s.some(l=>{if(n.containsItem(l))return!!e.toViewElement(l).getCustomProperty("addHighlight")})}function Kp(r){return{item:r.item,range:wt._createFromPositionAndShift(r.previousPosition,r.length)}}class Pi extends(ie(gn)){constructor(...t){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],t.length&&this.setTo(...t)}get anchor(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}get focus(){if(this._ranges.length>0){const t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;for(const e of this._ranges){let n=!1;for(const s of t._ranges)if(e.isEqual(s)){n=!0;break}if(!n)return!1}return!0}*getRanges(){for(const t of this._ranges)yield new wt(t.start,t.end)}getFirstRange(){let t=null;for(const e of this._ranges)t&&!e.start.isBefore(t.start)||(t=e);return t?new wt(t.start,t.end):null}getLastRange(){let t=null;for(const e of this._ranges)t&&!e.end.isAfter(t.end)||(t=e);return t?new wt(t.start,t.end):null}getFirstPosition(){const t=this.getFirstRange();return t?t.start.clone():null}getLastPosition(){const t=this.getLastRange();return t?t.end.clone():null}setTo(...t){let[e,n,s]=t;if("object"==typeof n&&(s=n,n=void 0),null===e)this._setRanges([]);else if(e instanceof Pi)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof wt)this._setRanges([e],!!s&&!!s.backward);else if(e instanceof Dt)this._setRanges([new wt(e)]);else if(e instanceof Bn){const l=!!s&&!!s.backward;let h;if("in"==n)h=wt._createIn(e);else if("on"==n)h=wt._createOn(e);else{if(void 0===n)throw new W("model-selection-setto-required-second-parameter",[this,e]);h=new wt(Dt._createAt(e,n))}this._setRanges([h],l)}else{if(!ti(e))throw new W("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,s&&!!s.backward)}}_setRanges(t,e=!1){const n=Array.from(t),s=n.some(l=>{if(!(l instanceof wt))throw new W("model-selection-set-ranges-not-range",[this,t]);return this._ranges.every(h=>!h.isEqual(l))});(n.length!==this._ranges.length||s)&&(this._replaceAllRanges(n),this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0}))}setFocus(t,e){if(null===this.anchor)throw new W("model-selection-setfocus-no-ranges",[this,t]);const n=Dt._createAt(t,e);if("same"==n.compareWith(this.focus))return;const s=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(s)?(this._pushRange(new wt(n,s)),this._lastRangeBackward=!0):(this._pushRange(new wt(s,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(t){return this._attrs.get(t)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(t){return this._attrs.has(t)}removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const t=new WeakSet;for(const e of this.getRanges()){const n=$p(e.start,t);F0(n,e)&&(yield n);for(const l of e.getWalker()){const h=l.item;"elementEnd"==l.type&&B0(h,t,e)&&(yield h)}const s=$p(e.end,t);z0(s,e)&&(yield s)}}containsEntireContent(t=this.anchor.root){const e=Dt._createAt(t,0),n=Dt._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}_pushRange(t){this._checkRange(t),this._ranges.push(new wt(t.start,t.end))}_checkRange(t){for(let e=0;e0;)this._popRange()}_popRange(){this._ranges.pop()}}function Jp(r,t){return!t.has(r)&&(t.add(r),r.root.document.model.schema.isBlock(r)&&!!r.parent)}function B0(r,t,e){return Jp(r,t)&&Au(r,e)}function $p(r,t){const e=r.parent.root.document.model.schema,n=r.parent.getAncestors({parentFirst:!0,includeSelf:!0});let s=!1;const l=n.find(h=>!s&&(s=e.isLimit(h),!s&&Jp(h,t)));return n.forEach(h=>t.add(h)),l}function Au(r,t){const e=function(n){const s=n.root.document.model.schema;let l=n.parent;for(;l;){if(s.isBlock(l))return l;l=l.parent}}(r);return!e||!t.containsRange(wt._createOn(e),!0)}function F0(r,t){return!!r&&(!(!t.isCollapsed&&!r.isEmpty)||!t.start.isTouching(Dt._createAt(r,r.maxOffset))&&Au(r,t))}function z0(r,t){return!!r&&(!(!t.isCollapsed&&!r.isEmpty)||!t.end.isTouching(Dt._createAt(r,0))&&Au(r,t))}Pi.prototype.is=function(r){return"selection"===r||"model:selection"===r};class Ni extends(ie(wt)){constructor(t,e){super(t,e),R0.call(this)}detach(){this.stopListening()}toRange(){return new wt(this.start,this.end)}static fromRange(t){return new Ni(t.start,t.end)}}function R0(){this.listenTo(this.root.document.model,"applyOperation",(r,t)=>{const e=t[0];e.isDocumentOperation&&Z0.call(this,e)},{priority:"low"})}function Z0(r){const t=this.getTransformedByOperation(r),e=wt._createFromRanges(t),n=!e.isEqual(this),s=function(h,p){switch(p.type){case"insert":return h.containsPosition(p.position);case"move":case"remove":case"reinsert":case"merge":return h.containsPosition(p.sourcePosition)||h.start.isEqual(p.sourcePosition)||h.containsPosition(p.targetPosition);case"split":return h.containsPosition(p.splitPosition)||h.containsPosition(p.insertionPosition)}return!1}(this,r);let l=null;if(n){"$graveyard"==e.root.rootName&&(l="remove"==r.type?r.sourcePosition:r.deletionPosition);const h=this.toRange();this.start=e.start,this.end=e.end,this.fire("change:range",h,{deletionPosition:l})}else s&&this.fire("change:content",this.toRange(),{deletionPosition:l})}Ni.prototype.is=function(r){return"liveRange"===r||"model:liveRange"===r||"range"==r||"model:range"===r};const Tc="selection:";class rn extends(ie(gn)){constructor(t){super(),this._selection=new U0(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(t){this._selection.observeMarkers(t)}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(...t){this._selection.setTo(...t)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return Tc+t}static _isStoreAttributeKey(t){return t.startsWith(Tc)}}rn.prototype.is=function(r){return"selection"===r||"model:selection"==r||"documentSelection"==r||"model:documentSelection"==r};class U0 extends Pi{constructor(t){super(),this.markers=new di({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=t.model,this._document=t,this.listenTo(this._model,"applyOperation",(e,n)=>{const s=n[0];s.isDocumentOperation&&"marker"!=s.type&&"rename"!=s.type&&"noop"!=s.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(e,n,s,l)=>{this._updateMarker(n,l)}),this.listenTo(this._document,"change",(e,n)=>{!function(s,l){const h=s.document.differ;for(const p of h.getChanges()){if("insert"!=p.type)continue;const b=p.position.parent;p.length===b.maxOffset&&s.enqueueChange(l,A=>{const C=Array.from(b.getAttributeKeys()).filter(E=>E.startsWith(Tc));for(const E of C)A.removeAttribute(E,b)})}}(this._model,n)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=l.deletionPosition;const h=this._ranges.indexOf(e);this._ranges.splice(h,1),e.detach()}}),e}updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const s of this._model.markers){const l=s.name.split(":",1)[0];if(!this._observedMarkers.has(l))continue;const h=s.getRange();for(const p of this.getRanges())h.containsRange(p,!p.isCollapsed)&&t.push(s)}const n=Array.from(this.markers);for(const s of t)this.markers.has(s)||(this.markers.add(s),e=!0);for(const s of Array.from(this.markers))t.includes(s)||(this.markers.remove(s),e=!0);e&&this.fire("change:marker",{oldMarkers:n,directChange:!1})}_updateMarker(t,e){const n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;let s=!1;const l=Array.from(this.markers),h=this.markers.has(t);if(e){let p=!1;for(const b of this.getRanges())if(e.containsRange(b,!b.isCollapsed)){p=!0;break}p&&!h?(this.markers.add(t),s=!0):!p&&h&&(this.markers.remove(t),s=!0)}else h&&(this.markers.remove(t),s=!0);s&&this.fire("change:marker",{oldMarkers:l,directChange:!1})}_updateAttributes(t){const e=ri(this._getSurroundingAttributes()),n=ri(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[l,h]of this._attributePriority)"low"==h&&(this._attrs.delete(l),this._attributePriority.delete(l));this._setAttributesTo(e);const s=[];for(const[l,h]of this.getAttributes())n.has(l)&&n.get(l)===h||s.push(l);for(const[l]of n)this.hasAttribute(l)||s.push(l);s.length>0&&this.fire("change:attribute",{attributeKeys:s,directChange:!1})}_setAttribute(t,e,n=!0){const s=n?"normal":"low";return("low"!=s||"normal"!=this._attributePriority.get(t))&&super.getAttribute(t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,s),!0)}_removeAttribute(t,e=!0){const n=e?"normal":"low";return!("low"==n&&"normal"==this._attributePriority.get(t)||(this._attributePriority.set(t,n),!super.hasAttribute(t)||(this._attrs.delete(t),0)))}_setAttributesTo(t){const e=new Set;for(const[n,s]of this.getAttributes())t.get(n)!==s&&this._removeAttribute(n,!1);for(const[n,s]of t)this._setAttribute(n,s,!1)&&e.add(n);return e}*getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&&t.isEmpty)for(const e of t.getAttributeKeys())e.startsWith(Tc)&&(yield[e.substr(10),t.getAttribute(e)])}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;if("$graveyard"==t.root.rootName)return null;let n=null;if(this.isCollapsed){const s=t.textNode?t.textNode:t.nodeBefore,l=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=pa(s,e)),n||(n=pa(l,e)),!this.isGravityOverridden&&!n){let h=s;for(;h&&!n;)h=h.previousSibling,n=pa(h,e)}if(!n){let h=l;for(;h&&!n;)h=h.nextSibling,n=pa(h,e)}n||(n=this.getStoredAttributes())}else{const s=this.getFirstRange();for(const l of s){if(l.item.is("element")&&e.isObject(l.item)){n=pa(l.item,e);break}if("text"==l.type){n=l.item.getAttributes();break}}}return n}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}function pa(r,t){if(!r)return null;if(r instanceof Mi||r instanceof _e)return r.getAttributes();if(!t.isInline(r))return null;if(!t.isObject(r))return[];const e=[];for(const[n,s]of r.getAttributes())t.checkAttribute("$text",n)&&!1!==t.getAttributeProperties(n).copyFromObject&&e.push([n,s]);return e}class tg{constructor(t){this._dispatchers=t}add(t){for(const e of this._dispatchers)t(e);return this}}class j0 extends tg{elementToElement(t){return this.add(function(e){const n=ng(e.model),s=ga(e.view,"container");return n.attributes.length&&(n.children=!0),l=>{l.on(`insert:${n.name}`,function(h,p=q0){return(b,A,C)=>{if(!p(A.item,C.consumable,{preflight:!0}))return;const E=h(A.item,C,A);if(!E)return;p(A.item,C.consumable);const P=C.mapper.toViewPosition(A.range.start);C.mapper.bindElements(A.item,E),C.writer.insert(P,E),C.convertAttributes(A.item),lg(E,A.item.getChildren(),C,{reconversion:A.reconversion})}}(s,ag(n)),{priority:e.converterPriority||"normal"}),(n.children||n.attributes.length)&&l.on("reduceChanges",sg(n),{priority:"low"})}}(t))}elementToStructure(t){return this.add(function(e){const n=ng(e.model),s=ga(e.view,"container");return n.children=!0,l=>{if(l._conversionApi.schema.checkChild(n.name,"$text"))throw new W("conversion-element-to-structure-disallowed-text",l,{elementName:n.name});var h,p;l.on(`insert:${n.name}`,(h=s,p=ag(n),(b,A,C)=>{if(!p(A.item,C.consumable,{preflight:!0}))return;const E=new Map;var j,Y,$;C.writer._registerSlotFactory((j=A.item,Y=E,$=C,(st,ft)=>{const At=st.createContainerElement("$slot");let Ft=null;if("children"===ft)Ft=Array.from(j.getChildren());else{if("function"!=typeof ft)throw new W("conversion-slot-mode-unknown",$.dispatcher,{modeOrFilter:ft});Ft=Array.from(j.getChildren()).filter(jt=>ft(jt))}return Y.set(At,Ft),At}));const P=h(A.item,C,A);if(C.writer._clearSlotFactory(),!P)return;(function(j,Y,$){const st=Array.from(Y.values()).flat(),ft=new Set(st);if(ft.size!=st.length)throw new W("conversion-slot-filter-overlap",$.dispatcher,{element:j});if(ft.size!=j.childCount)throw new W("conversion-slot-filter-incomplete",$.dispatcher,{element:j})})(A.item,E,C),p(A.item,C.consumable);const F=C.mapper.toViewPosition(A.range.start);C.mapper.bindElements(A.item,P),C.writer.insert(F,P),C.convertAttributes(A.item),function(j,Y,$,st){$.mapper.on("modelToViewPosition",Ft,{priority:"highest"});let ft=null,At=null;for([ft,At]of Y)lg(j,At,$,st),$.writer.move($.writer.createRangeIn(ft),$.writer.createPositionBefore(ft)),$.writer.remove(ft);function Ft(jt,ae){const ze=At.indexOf(ae.modelPosition.nodeAfter);ze<0||(ae.viewPosition=ae.mapper.findPositionIn(ft,ze))}$.mapper.off("modelToViewPosition",Ft)}(P,E,C,{reconversion:A.reconversion})}),{priority:e.converterPriority||"normal"}),l.on("reduceChanges",sg(n),{priority:"low"})}}(t))}attributeToElement(t){return this.add(function(e){let n=(e=pn(e)).model;"string"==typeof n&&(n={key:n});let s=`attribute:${n.key}`;if(n.name&&(s+=":"+n.name),n.values)for(const h of n.values)e.view[h]=ga(e.view[h],"attribute");else e.view=ga(e.view,"attribute");const l=og(e);return h=>{var p;h.on(s,(p=l,(b,A,C)=>{if(!C.consumable.test(A.item,b.name))return;const E=p(A.attributeOldValue,C,A),P=p(A.attributeNewValue,C,A);if(!E&&!P)return;C.consumable.consume(A.item,b.name);const F=C.writer;if(A.item instanceof Pi||A.item instanceof rn)F.wrap(F.document.selection.getFirstRange(),P);else{let Y=C.mapper.toViewRange(A.range);null!==A.attributeOldValue&&E&&(Y=F.unwrap(Y,E)),null!==A.attributeNewValue&&P&&F.wrap(Y,P)}}),{priority:e.converterPriority||"normal"})}}(t))}attributeToAttribute(t){return this.add(function(e){let n=(e=pn(e)).model;"string"==typeof n&&(n={key:n});let s=`attribute:${n.key}`;if(n.name&&(s+=":"+n.name),n.values)for(const h of n.values)e.view[h]=rg(e.view[h]);else e.view=rg(e.view);const l=og(e);return h=>{var p;h.on(s,(p=l,(b,A,C)=>{if(!C.consumable.test(A.item,b.name))return;const E=p(A.attributeOldValue,C,A),P=p(A.attributeNewValue,C,A);if(!E&&!P)return;C.consumable.consume(A.item,b.name);const F=C.mapper.toViewElement(A.item),j=C.writer;if(!F)throw new W("conversion-attribute-to-attribute-on-text",C.dispatcher,A);if(null!==A.attributeOldValue&&E)if("class"==E.key){const Y=Ze(E.value);for(const $ of Y)j.removeClass($,F)}else if("style"==E.key){const Y=Object.keys(E.value);for(const $ of Y)j.removeStyle($,F)}else j.removeAttribute(E.key,F);if(null!==A.attributeNewValue&&P)if("class"==P.key){const Y=Ze(P.value);for(const $ of Y)j.addClass($,F)}else if("style"==P.key){const Y=Object.keys(P.value);for(const $ of Y)j.setStyle($,P.value[$],F)}else j.setAttribute(P.key,P.value,F)}),{priority:e.converterPriority||"normal"})}}(t))}markerToElement(t){return this.add(function(e){const n=ga(e.view,"ui");return s=>{var l;s.on(`addMarker:${e.model}`,(l=n,(h,p,b)=>{p.isOpening=!0;const A=l(p,b);p.isOpening=!1;const C=l(p,b);if(!A||!C)return;const E=p.markerRange;if(E.isCollapsed&&!b.consumable.consume(E,h.name))return;for(const j of E)if(!b.consumable.consume(j.item,h.name))return;const P=b.mapper,F=b.writer;F.insert(P.toViewPosition(E.start),A),b.mapper.bindElementToMarker(A,p.markerName),E.isCollapsed||(F.insert(P.toViewPosition(E.end),C),b.mapper.bindElementToMarker(C,p.markerName)),h.stop()}),{priority:e.converterPriority||"normal"}),s.on(`removeMarker:${e.model}`,(h,p,b)=>{const A=b.mapper.markerNameToElements(p.markerName);if(A){for(const C of A)b.mapper.unbindElementFromMarkerName(C,p.markerName),b.writer.clear(b.writer.createRangeOn(C),C);b.writer.clearClonedElementsGroup(p.markerName),h.stop()}},{priority:e.converterPriority||"normal"})}}(t))}markerToHighlight(t){return this.add((e=t,n=>{var s,l;n.on(`addMarker:${e.model}`,(s=e.view,(l,h,p)=>{if(!h.item||!(h.item instanceof Pi||h.item instanceof rn||h.item.is("$textProxy")))return;const b=xu(s,h,p);if(!b||!p.consumable.consume(h.item,l.name))return;const A=p.writer,C=eg(A,b);if(h.item instanceof Pi||h.item instanceof rn)A.wrap(A.document.selection.getFirstRange(),C);else{const P=p.mapper.toViewRange(h.range),F=A.wrap(P,C);for(const j of F.getItems())if(j.is("attributeElement")&&j.isSimilar(C)){p.mapper.bindElementToMarker(j,h.markerName);break}}}),{priority:e.converterPriority||"normal"}),n.on(`addMarker:${e.model}`,(l=e.view,(h,p,b)=>{if(!(p.item&&p.item instanceof me))return;const A=xu(l,p,b);if(!A||!b.consumable.test(p.item,h.name))return;const C=b.mapper.toViewElement(p.item);if(C&&C.getCustomProperty("addHighlight")){b.consumable.consume(p.item,h.name);for(const E of wt._createIn(p.item))b.consumable.consume(E.item,h.name);C.getCustomProperty("addHighlight")(C,A,b.writer),b.mapper.bindElementToMarker(C,p.markerName)}}),{priority:e.converterPriority||"normal"}),n.on(`removeMarker:${e.model}`,function(l){return(h,p,b)=>{if(p.markerRange.isCollapsed)return;const A=xu(l,p,b);if(!A)return;const C=eg(b.writer,A),E=b.mapper.markerNameToElements(p.markerName);if(E){for(const P of E)b.mapper.unbindElementFromMarkerName(P,p.markerName),P.is("attributeElement")?b.writer.unwrap(b.writer.createRangeOn(P),C):P.getCustomProperty("removeHighlight")(P,A.id,b.writer);b.writer.clearClonedElementsGroup(p.markerName),h.stop()}}}(e.view),{priority:e.converterPriority||"normal"})}));var e}markerToData(t){return this.add(function(e){const n=(e=pn(e)).model;let s=e.view;return s||(s=l=>({group:n,name:l.substr(e.model.length+1)})),l=>{var h,p;l.on(`addMarker:${n}`,(h=s,(p,b,A)=>{const C=h(b.markerName,A);if(!C)return;const E=b.markerRange;A.consumable.consume(E,p.name)&&(ig(E,!1,A,b,C),ig(E,!0,A,b,C),p.stop())}),{priority:e.converterPriority||"normal"}),l.on(`removeMarker:${n}`,(p=s,(b,A,C)=>{const E=p(A.markerName,C);if(!E)return;const P=C.mapper.markerNameToElements(A.markerName);if(P){for(const j of P)C.mapper.unbindElementFromMarkerName(j,A.markerName),j.is("containerElement")?(F(`data-${E.group}-start-before`,j),F(`data-${E.group}-start-after`,j),F(`data-${E.group}-end-before`,j),F(`data-${E.group}-end-after`,j)):C.writer.clear(C.writer.createRangeOn(j),j);C.writer.clearClonedElementsGroup(A.markerName),b.stop()}function F(j,Y){if(Y.hasAttribute(j)){const $=new Set(Y.getAttribute(j).split(","));$.delete(E.name),0==$.size?C.writer.removeAttribute(j,Y):C.writer.setAttribute(j,Array.from($).join(","),Y)}}}),{priority:e.converterPriority||"normal"})}}(t))}}function eg(r,t){const e=r.createAttributeElement("span",t.attributes);return t.classes&&e._addClass(t.classes),"number"==typeof t.priority&&(e._priority=t.priority),e._id=t.id,e}function ig(r,t,e,n,s){const l=t?r.start:r.end,h=l.nodeAfter&&l.nodeAfter.is("element")?l.nodeAfter:null,p=l.nodeBefore&&l.nodeBefore.is("element")?l.nodeBefore:null;if(h||p){let b,A;t&&h||!t&&!p?(b=h,A=!0):(b=p,A=!1);const C=e.mapper.toViewElement(b);if(C)return void function(E,P,F,j,Y,$){const st=`data-${$.group}-${P?"start":"end"}-${F?"before":"after"}`,ft=E.hasAttribute(st)?E.getAttribute(st).split(","):[];ft.unshift($.name),j.writer.setAttribute(st,ft.join(","),E),j.mapper.bindElementToMarker(E,Y.markerName)}(C,t,A,e,n,s)}!function(b,A,C,E,P){const Y=C.writer.createUIElement(`${P.group}-${A?"start":"end"}`,P.name?{name:P.name}:null);C.writer.insert(b,Y),C.mapper.bindElementToMarker(Y,E.markerName)}(e.mapper.toViewPosition(l),t,e,n,s)}function ng(r){return"string"==typeof r&&(r={name:r}),{name:r.name,attributes:r.attributes?Ze(r.attributes):[],children:!!r.children}}function ga(r,t){return"function"==typeof r?r:(e,n)=>function(s,l,h){let p;"string"==typeof s&&(s={name:s});const b=l.writer,A=Object.assign({},s.attributes);if(p="container"==h?b.createContainerElement(s.name,A):"attribute"==h?b.createAttributeElement(s.name,A,{priority:s.priority||Nn.DEFAULT_PRIORITY}):b.createUIElement(s.name,A),s.styles){const C=Object.keys(s.styles);for(const E of C)b.setStyle(E,s.styles[E],p)}if(s.classes){const C=s.classes;if("string"==typeof C)b.addClass(C,p);else for(const E of C)b.addClass(E,p)}return p}(r,n,t)}function og(r){return r.model.values?(t,e,n)=>{const s=r.view[t];return s?s(t,e,n):null}:r.view}function rg(r){return"string"==typeof r?t=>({key:r,value:t}):"object"==typeof r?r.value?()=>r:t=>({key:r.key,value:t}):r}function xu(r,t,e){const n="function"==typeof r?r(t,e):r;return n?(n.priority||(n.priority=10),n.id||(n.id=t.markerName),n):null}function sg(r){const t=(e=r,(n,s)=>{if(!n.is("element",e.name))return!1;if("attribute"==s.type){if(e.attributes.includes(s.attributeKey))return!0}else if(e.children)return!0;return!1});var e;return(e,n)=>{const s=[];n.reconvertedElements||(n.reconvertedElements=new Set);for(const l of n.changes){const h="attribute"==l.type?l.range.start.nodeAfter:l.position.parent;if(h&&t(h,l)){if(!n.reconvertedElements.has(h)){n.reconvertedElements.add(h);const p=Dt._createBefore(h);let b=s.length;for(let A=s.length-1;A>=0;A--){const C=s[A],E=("attribute"==C.type?C.range.start:C.position).compareWith(p);if("before"==E||"remove"==C.type&&"same"==E)break;b=A}s.splice(b,0,{type:"remove",name:h.name,position:p,length:1},{type:"reinsert",name:h.name,position:p,length:1})}}else s.push(l)}n.changes=s}}function ag(r){return(t,e,n={})=>{const s=["insert"];for(const l of r.attributes)t.hasAttribute(l)&&s.push(`attribute:${l}`);return!!s.every(l=>e.test(t,l))&&(n.preflight||s.forEach(l=>e.consume(t,l)),!0)}}function lg(r,t,e,n){for(const s of t)V0(r.root,s,e,n)||e.convertItem(s)}function V0(r,t,e,n){const{writer:s,mapper:l}=e;if(!n.reconversion)return!1;const h=l.toViewElement(t);return!(!h||h.root==r||!e.canReuseView(h)||(s.move(s.createRangeOn(h),l.toViewPosition(Dt._createBefore(t))),0))}function q0(r,t,{preflight:e}={}){return e?t.test(r,"insert"):t.consume(r,"insert")}function cg(r){const{schema:t,document:e}=r.model;for(const n of e.getRoots())if(n.isEmpty&&!t.checkChild(n,"$text")&&t.checkChild(n,"paragraph"))return r.insertElement("paragraph",n),!0;return!1}function dg(r,t,e){const n=e.createContext(r);return!!e.checkChild(n,"paragraph")&&!!e.checkChild(n.push("paragraph"),t)}function hg(r,t){const e=t.createElement("paragraph");return t.insert(e,r),t.createPositionAt(e,0)}var Y0=Object.defineProperty,H0=Object.defineProperties,G0=Object.getOwnPropertyDescriptors,ug=Object.getOwnPropertySymbols,W0=Object.prototype.hasOwnProperty,Q0=Object.prototype.propertyIsEnumerable,pg=(r,t,e)=>t in r?Y0(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class X0 extends tg{elementToElement(t){return this.add(gg(t))}elementToAttribute(t){return this.add(function(e){mg(e=pn(e));const n=fg(e,!1),s=Cu(e.view),l=s?`element:${s}`:"element";return h=>{h.on(l,n,{priority:e.converterPriority||"low"})}}(t))}attributeToAttribute(t){return this.add(function(e){let n=null;("string"==typeof(e=pn(e)).view||e.view.key)&&(n=function(l){"string"==typeof l.view&&(l.view={key:l.view});const h=l.view.key;let p;return p="class"==h||"style"==h?{["class"==h?"classes":"styles"]:l.view.value}:{attributes:{[h]:void 0===l.view.value?/[\s\S]*/:l.view.value}},l.view.name&&(p.name=l.view.name),l.view=p,h}(e)),mg(e,n);const s=fg(e,!0);return l=>{l.on("element",s,{priority:e.converterPriority||"low"})}}(t))}elementToMarker(t){return this.add(function(e){const n=(h=e.model,(p,b)=>{const A="string"==typeof h?h:h(p,b);return b.writer.createElement("$marker",{"data-name":A})});var h,s;return gg((s=((h,p)=>{for(var b in p||(p={}))W0.call(p,b)&&pg(h,b,p[b]);if(ug)for(var b of ug(p))Q0.call(p,b)&&pg(h,b,p[b]);return h})({},e),H0(s,G0({model:n}))))}(t))}dataToMarker(t){return this.add(function(e){(e=pn(e)).model||(e.model=h=>h?e.view+":"+h:e.view);const n={view:e.view,model:e.model},s=yu(bg(n,"start")),l=yu(bg(n,"end"));return h=>{h.on(`element:${e.view}-start`,s,{priority:e.converterPriority||"normal"}),h.on(`element:${e.view}-end`,l,{priority:e.converterPriority||"normal"});const p=It.low,b=It.highest,A=It.get(e.converterPriority)/b;var C;h.on("element",(C=n,(E,P,F)=>{const j=`data-${C.view}`;function Y($,st){for(const ft of st){const At=C.model(ft,F),Ft=F.writer.createElement("$marker",{"data-name":At});F.writer.insert(Ft,$),P.modelCursor=P.modelCursor.isEqual($)?P.modelCursor.getShiftedBy(1):P.modelCursor._getTransformedByInsertion($,1),P.modelRange=P.modelRange._getTransformedByInsertion($,1)[0]}}(F.consumable.test(P.viewItem,{attributes:j+"-end-after"})||F.consumable.test(P.viewItem,{attributes:j+"-start-after"})||F.consumable.test(P.viewItem,{attributes:j+"-end-before"})||F.consumable.test(P.viewItem,{attributes:j+"-start-before"}))&&(P.modelRange||Object.assign(P,F.convertChildren(P.viewItem,P.modelCursor)),F.consumable.consume(P.viewItem,{attributes:j+"-end-after"})&&Y(P.modelRange.end,P.viewItem.getAttribute(j+"-end-after").split(",")),F.consumable.consume(P.viewItem,{attributes:j+"-start-after"})&&Y(P.modelRange.end,P.viewItem.getAttribute(j+"-start-after").split(",")),F.consumable.consume(P.viewItem,{attributes:j+"-end-before"})&&Y(P.modelRange.start,P.viewItem.getAttribute(j+"-end-before").split(",")),F.consumable.consume(P.viewItem,{attributes:j+"-start-before"})&&Y(P.modelRange.start,P.viewItem.getAttribute(j+"-start-before").split(",")))}),{priority:p+A})}}(t))}}function gg(r){const t=yu(r=pn(r)),e=Cu(r.view),n=e?`element:${e}`:"element";return s=>{s.on(n,t,{priority:r.converterPriority||"normal"})}}function Cu(r){return"string"==typeof r?r:"object"==typeof r&&"string"==typeof r.name?r.name:null}function yu(r){const t=new Ti(r.view);return(e,n,s)=>{const l=t.match(n.viewItem);if(!l)return;const h=l.match;if(h.name=!0,!s.consumable.test(n.viewItem,h))return;const p=(C=s,(b=r.model)instanceof Function?b(n.viewItem,C):C.writer.createElement(b));var b,C;p&&s.safeInsert(p,n.modelCursor)&&(s.consumable.consume(n.viewItem,h),s.convertChildren(n.viewItem,p),s.updateConversionResult(p,n))}}function mg(r,t=null){r.model={key:"object"!=typeof r.model?r.model:r.model.key,value:"object"!=typeof r.model||void 0===r.model.value?null===t||(l=>l.getAttribute(t)):r.model.value}}function fg(r,t){const e=new Ti(r.view);return(n,s,l)=>{if(!s.modelRange&&t)return;const h=e.match(s.viewItem);if(!h||(function(C,E){const P="function"==typeof C?C(E):C;return!("object"==typeof P&&!Cu(P)||P.classes||P.attributes||P.styles)}(r.view,s.viewItem)?h.match.name=!0:delete h.match.name,!l.consumable.test(s.viewItem,h.match)))return;const p=r.model.key,b="function"==typeof r.model.value?r.model.value(s.viewItem,l):r.model.value;null!==b&&(s.modelRange||Object.assign(s,l.convertChildren(s.viewItem,s.modelCursor)),function(C,E,P,F){let j=!1;for(const Y of Array.from(C.getItems({shallow:P})))F.schema.checkAttribute(Y,E.key)&&(j=!0,Y.hasAttribute(E.key)||F.writer.setAttribute(E.key,E.value,Y));return j}(s.modelRange,{key:p,value:b},t,l)&&(l.consumable.test(s.viewItem,{name:!0})&&(h.match.name=!0),l.consumable.consume(s.viewItem,h.match)))}}function bg(r,t){return{view:`${r.view}-${t}`,model:(e,n)=>{const s=e.getAttribute("name"),l=r.model(s,n);return n.writer.createElement("$marker",{"data-name":l})}}}function vg(r,t){return r.isCollapsed?function(e,n){const s=e.start,l=n.getNearestSelectionRange(s);if(!l){const p=s.getAncestors().reverse().find(b=>n.isObject(b));return p?wt._createOn(p):null}if(!l.isCollapsed)return l;const h=l.start;return s.isEqual(h)?null:new wt(h)}(r,t):function(e,n){const{start:s,end:l}=e,h=n.checkChild(s,"$text"),p=n.checkChild(l,"$text"),b=n.getLimitElement(s),A=n.getLimitElement(l);if(b===A){if(h&&p)return null;if(function(P,F,j){const Y=P.nodeAfter&&!j.isLimit(P.nodeAfter)||j.checkChild(P,"$text"),$=F.nodeBefore&&!j.isLimit(F.nodeBefore)||j.checkChild(F,"$text");return Y||$}(s,l,n)){const P=s.nodeAfter&&n.isSelectable(s.nodeAfter)?null:n.getNearestSelectionRange(s,"forward"),F=l.nodeBefore&&n.isSelectable(l.nodeBefore)?null:n.getNearestSelectionRange(l,"backward");return new wt(P?P.start:s,F?F.end:l)}}const C=b&&!b.is("rootElement"),E=A&&!A.is("rootElement");if(C||E){const P=s.nodeAfter&&l.nodeBefore&&s.nodeAfter.parent===l.nodeBefore.parent,F=C&&(!P||!_g(s.nodeAfter,n)),j=E&&(!P||!_g(l.nodeBefore,n));let Y=s,$=l;return F&&(Y=Dt._createBefore(kg(b,n))),j&&($=Dt._createAfter(kg(A,n))),new wt(Y,$)}return null}(r,t)}function kg(r,t){let e=r,n=e;for(;t.isLimit(n)&&n.parent;)e=n,n=n.parent;return e}function _g(r,t){return r&&t.isSelectable(r)}class J0 extends(ne()){constructor(t,e){super(),this.model=t,this.view=new ku(e),this.mapper=new Hp,this.downcastDispatcher=new Xp({mapper:this.mapper,schema:t.schema});const n=this.model.document,s=n.selection,l=this.model.markers;var h,p,b,A,C;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(n,"change",()=>{this.view.change(A=>{this.downcastDispatcher.convertChanges(n.differ,l,A),this.downcastDispatcher.convertSelection(s,l,A)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(A=this.model,C=this.mapper,(E,P)=>{const F=P.newSelection,j=[];for(const $ of F.getRanges())j.push(C.toModelRange($));const Y=A.createSelection(j,{backward:F.isBackward});Y.isEqual(A.document.selection)||A.change($=>{$.setSelection(Y)})})),this.listenTo(this.view.document,"beforeinput",(h=this.mapper,p=this.model.schema,b=this.view,(A,C)=>{if(!b.document.isComposing||it.isAndroid)for(let E=0;E{if(!E.consumable.consume(C.item,A.name))return;const P=E.writer,F=E.mapper.toViewPosition(C.range.start),j=P.createText(C.item.data);P.insert(F,j)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(A,C,E)=>{E.convertAttributes(C.item),C.reconversion||!C.item.is("element")||C.item.isEmpty||E.convertChildren(C.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(A,C,E)=>{const P=E.mapper.toViewPosition(C.position),F=C.position.getShiftedBy(C.length),j=E.mapper.toViewPosition(F,{isPhantom:!0}),Y=E.writer.createRange(P,j),$=E.writer.remove(Y.getTrimmed());for(const st of E.writer.createRangeIn($).getItems())E.mapper.unbindViewElement(st,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(A,C,E)=>{const P=E.writer,F=P.document.selection;for(const j of F.getRanges())j.isCollapsed&&j.end.parent.isAttached()&&E.writer.mergeAttributes(j.start);P.setSelection(null)}),this.downcastDispatcher.on("selection",(A,C,E)=>{const P=C.selection;if(P.isCollapsed||!E.consumable.consume(P,"selection"))return;const F=[];for(const j of P.getRanges())F.push(E.mapper.toViewRange(j));E.writer.setSelection(F,{backward:P.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(A,C,E)=>{const P=C.selection;if(!P.isCollapsed||!E.consumable.consume(P,"selection"))return;const F=E.writer,j=P.getFirstPosition(),Y=E.mapper.toViewPosition(j),$=F.breakAttributes(Y);F.setSelection($)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(A=>{if("$graveyard"==A.rootName)return null;const C=new lc(this.view.document,A.name);return C.rootName=A.rootName,this.mapper.bindElements(A,C),C})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(t){const e="string"==typeof t?t:t.name,n=this.model.markers.get(e);if(!n)throw new W("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:e});this.model.change(()=>{this.model.markers._refresh(n)})}reconvertItem(t){this.model.change(()=>{this.model.document.differ._refreshItem(t)})}}class ma{constructor(){this._consumables=new Map}add(t,e){let n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new $0(t),this._consumables.set(t,n)),n.add(e))}test(t,e){const n=this._consumables.get(t);return void 0===n?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}consume(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}revert(t,e){const n=this._consumables.get(t);void 0!==n&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}static consumablesFromElement(t){const e={element:t,name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();for(const h of n)"style"!=h&&"class"!=h&&e.attributes.push(h);const s=t.getClassNames();for(const h of s)e.classes.push(h);const l=t.getStyleNames();for(const h of l)e.styles.push(h);return e}static createFrom(t,e){if(e||(e=new ma),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,ma.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);for(const n of t.getChildren())e=ma.createFrom(n,e);return e}}const Sc=["attributes","classes","styles"];class $0{constructor(t){this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(t){t.name&&(this._canConsumeName=!0);for(const e of Sc)e in t&&this._add(e,t[e])}test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(const e of Sc)if(e in t){const n=this._test(e,t[e]);if(!0!==n)return n}return!0}consume(t){t.name&&(this._canConsumeName=!1);for(const e of Sc)e in t&&this._consume(e,t[e])}revert(t){t.name&&(this._canConsumeName=!0);for(const e of Sc)e in t&&this._revert(e,t[e])}_add(t,e){const n=Ut(e)?e:[e],s=this._consumables[t];for(const l of n){if("attributes"===t&&("class"===l||"style"===l))throw new W("viewconsumable-invalid-attribute",this);if(s.set(l,!0),"styles"===t)for(const h of this.element.document.stylesProcessor.getRelatedStyles(l))s.set(h,!0)}}_test(t,e){const n=Ut(e)?e:[e],s=this._consumables[t];for(const l of n)if("attributes"!==t||"class"!==l&&"style"!==l){const h=s.get(l);if(void 0===h)return null;if(!h)return!1}else{const h="class"==l?"classes":"styles",p=this._test(h,[...this._consumables[h].keys()]);if(!0!==p)return p}return!0}_consume(t,e){const n=Ut(e)?e:[e],s=this._consumables[t];for(const l of n)if("attributes"!==t||"class"!==l&&"style"!==l){if(s.set(l,!1),"styles"==t)for(const h of this.element.document.stylesProcessor.getRelatedStyles(l))s.set(h,!1)}else{const h="class"==l?"classes":"styles";this._consume(h,[...this._consumables[h].keys()])}}_revert(t,e){const n=Ut(e)?e:[e],s=this._consumables[t];for(const l of n)if("attributes"!==t||"class"!==l&&"style"!==l)!1===s.get(l)&&s.set(l,!0);else{const h="class"==l?"classes":"styles";this._revert(h,[...this._consumables[h].keys()])}}}class t_ extends(ne()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(t,e)=>{e[0]=new Xo(e[0])},{priority:"highest"}),this.on("checkChild",(t,e)=>{e[0]=new Xo(e[0]),e[1]=this.getDefinition(e[1])},{priority:"highest"})}register(t,e){if(this._sourceDefinitions[t])throw new W("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}extend(t,e){if(!this._sourceDefinitions[t])throw new W("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(t){let e;return e="string"==typeof t?t:"is"in t&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}isRegistered(t){return!!this.getDefinition(t)}isBlock(t){const e=this.getDefinition(t);return!(!e||!e.isBlock)}isLimit(t){const e=this.getDefinition(t);return!(!e||!e.isLimit&&!e.isObject)}isObject(t){const e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}isInline(t){const e=this.getDefinition(t);return!(!e||!e.isInline)}isSelectable(t){const e=this.getDefinition(t);return!(!e||!e.isSelectable&&!e.isObject)}isContent(t){const e=this.getDefinition(t);return!(!e||!e.isContent&&!e.isObject)}checkChild(t,e){return!!e&&this._checkContextMatch(e,t)}checkAttribute(t,e){const n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}checkMerge(t,e){if(t instanceof Dt){const n=t.nodeBefore,s=t.nodeAfter;if(!(n instanceof me))throw new W("schema-check-merge-no-element-before",this);if(!(s instanceof me))throw new W("schema-check-merge-no-element-after",this);return this.checkMerge(n,s)}for(const n of e.getChildren())if(!this.checkChild(t,n))return!1;return!0}addChildCheck(t){this.on("checkChild",(e,[n,s])=>{if(!s)return;const l=t(n,s);"boolean"==typeof l&&(e.stop(),e.return=l)},{priority:"high"})}addAttributeCheck(t){this.on("checkAttribute",(e,[n,s])=>{const l=t(n,s);"boolean"==typeof l&&(e.stop(),e.return=l)},{priority:"high"})}setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}getAttributeProperties(t){return this._attributeProperties[t]||{}}getLimitElement(t){let e;for(e=t instanceof Dt?t.parent:(t instanceof wt?[t]:Array.from(t.getRanges())).reduce((n,s)=>{const l=s.getCommonAncestor();return n?n.getCommonAncestor(l,{includeSelf:!0}):l},null);!this.isLimit(e)&&e.parent;)e=e.parent;return e}checkAttributeInSelection(t,e){if(t.isCollapsed){const n=[...t.getFirstPosition().getAncestors(),new _e("",t.getAttributes())];return this.checkAttribute(n,e)}{const n=t.getRanges();for(const s of n)for(const l of s)if(this.checkAttribute(l.item,e))return!0}return!1}*getValidRanges(t,e){t=function*(n){for(const s of n)yield*s.getMinimalFlatRanges()}(t);for(const n of t)yield*this._getValidRangesForRange(n,e)}getNearestSelectionRange(t,e="both"){if("$graveyard"==t.root.rootName)return null;if(this.checkChild(t,"$text"))return new wt(t);let n,s;const l=t.getAncestors().reverse().find(h=>this.isLimit(h))||t.root;"both"!=e&&"backward"!=e||(n=new Li({boundaries:wt._createIn(l),startPosition:t,direction:"backward"})),"both"!=e&&"forward"!=e||(s=new Li({boundaries:wt._createIn(l),startPosition:t}));for(const h of function*(p,b){let A=!1;for(;!A;){if(A=!0,p){const C=p.next();C.done||(A=!1,yield{walker:p,value:C.value})}if(b){const C=b.next();C.done||(A=!1,yield{walker:b,value:C.value})}}}(n,s)){const b=h.value;if(b.type==(h.walker==n?"elementEnd":"elementStart")&&this.isObject(b.item))return wt._createOn(b.item);if(this.checkChild(b.nextPosition,"$text"))return new wt(b.nextPosition)}return null}findAllowedParent(t,e){let n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}setAllowedAttributes(t,e,n){const s=n.model;for(const[l,h]of Object.entries(e))s.schema.checkAttribute(t,l)&&n.setAttribute(l,h,t)}removeDisallowedAttributes(t,e){for(const n of t)if(n.is("$text"))wg(this,n,e);else{const s=wt._createIn(n).getPositions();for(const l of s)wg(this,l.nodeBefore||l.parent,e)}}getAttributesWithProperty(t,e,n){const s={};for(const[l,h]of t.getAttributes()){const p=this.getAttributeProperties(l);void 0!==p[e]&&(void 0!==n&&n!==p[e]||(s[l]=h))}return s}createContext(t){return new Xo(t)}_clearCache(){this._compiledDefinitions=null}_compile(){const t={},e=this._sourceDefinitions,n=Object.keys(e);for(const s of n)t[s]=e_(e[s],s);for(const s of n)i_(t,s);for(const s of n)n_(t,s);for(const s of n)o_(t,s);for(const s of n)r_(t,s),s_(t,s);for(const s of n)a_(t,s),l_(t,s),c_(t,s);this._compiledDefinitions=t}_checkContextMatch(t,e,n=e.length-1){const s=e.getItem(n);if(t.allowIn.includes(s.name)){if(0==n)return!0;{const l=this.getDefinition(s);return this._checkContextMatch(l,e,n-1)}}return!1}*_getValidRangesForRange(t,e){let n=t.start,s=t.start;for(const l of t.getItems({shallow:!0}))l.is("element")&&(yield*this._getValidRangesForRange(wt._createIn(l),e)),this.checkAttribute(l,e)||(n.isEqual(s)||(yield new wt(n,s)),n=Dt._createAfter(l)),s=Dt._createAfter(l);n.isEqual(s)||(yield new wt(n,s))}}class Xo{constructor(t){if(t instanceof Xo)return t;let e;e="string"==typeof t?[t]:Array.isArray(t)?t:t.getAncestors({includeSelf:!0}),this._items=e.map(h_)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(t){const e=new Xo([t]);return e._items=[...this._items,...e._items],e}getItem(t){return this._items[t]}*getNames(){yield*this._items.map(t=>t.name)}endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t)}startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}function e_(r,t){const e={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(n,s){for(const l of n){const h=Object.keys(l).filter(p=>p.startsWith("is"));for(const p of h)s[p]=!!l[p]}}(r,e),Ko(r,e,"allowIn"),Ko(r,e,"allowContentOf"),Ko(r,e,"allowWhere"),Ko(r,e,"allowAttributes"),Ko(r,e,"allowAttributesOf"),Ko(r,e,"allowChildren"),Ko(r,e,"inheritTypesFrom"),function(n,s){for(const l of n){const h=l.inheritAllFrom;h&&(s.allowContentOf.push(h),s.allowWhere.push(h),s.allowAttributesOf.push(h),s.inheritTypesFrom.push(h))}}(r,e),e}function i_(r,t){const e=r[t];for(const n of e.allowChildren){const s=r[n];s&&s.allowIn.push(t)}e.allowChildren.length=0}function n_(r,t){for(const e of r[t].allowContentOf)r[e]&&d_(r,e).forEach(n=>{n.allowIn.push(t)});delete r[t].allowContentOf}function o_(r,t){for(const e of r[t].allowWhere){const n=r[e];n&&r[t].allowIn.push(...n.allowIn)}delete r[t].allowWhere}function r_(r,t){for(const e of r[t].allowAttributesOf){const n=r[e];n&&r[t].allowAttributes.push(...n.allowAttributes)}delete r[t].allowAttributesOf}function s_(r,t){const e=r[t];for(const n of e.inheritTypesFrom){const s=r[n];if(s){const l=Object.keys(s).filter(h=>h.startsWith("is"));for(const h of l)h in e||(e[h]=s[h])}}delete e.inheritTypesFrom}function a_(r,t){const e=r[t],n=e.allowIn.filter(s=>r[s]);e.allowIn=Array.from(new Set(n))}function l_(r,t){const e=r[t];for(const n of e.allowIn)r[n].allowChildren.push(t)}function c_(r,t){const e=r[t];e.allowAttributes=Array.from(new Set(e.allowAttributes))}function Ko(r,t,e){for(const n of r){const s=n[e];"string"==typeof s?t[e].push(s):Array.isArray(s)&&t[e].push(...s)}}function d_(r,t){const e=r[t];return(n=r,Object.keys(n).map(s=>n[s])).filter(s=>s.allowIn.includes(e.name));var n}function h_(r){return"string"==typeof r||r.is("documentFragment")?{name:"string"==typeof r?r:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:r.is("element")?r.name:"$text",*getAttributeKeys(){yield*r.getAttributeKeys()},getAttribute:t=>r.getAttribute(t)}}function wg(r,t,e){for(const n of t.getAttributeKeys())r.checkAttribute(t,n)||e.removeAttribute(n,t)}var u_=Object.defineProperty,p_=Object.defineProperties,g_=Object.getOwnPropertyDescriptors,Ag=Object.getOwnPropertySymbols,m_=Object.prototype.hasOwnProperty,f_=Object.prototype.propertyIsEnumerable,xg=(r,t,e)=>t in r?u_(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class b_ extends(ie()){constructor(t){var e;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(e=((n,s)=>{for(var l in s||(s={}))m_.call(s,l)&&xg(n,l,s[l]);if(Ag)for(var l of Ag(s))f_.call(s,l)&&xg(n,l,s[l]);return n})({},t),p_(e,g_({consumable:null,writer:null,store:null,convertItem:(n,s)=>this._convertItem(n,s),convertChildren:(n,s)=>this._convertChildren(n,s),safeInsert:(n,s)=>this._safeInsert(n,s),updateConversionResult:(n,s)=>this._updateConversionResult(n,s),splitToAllowedParent:(n,s)=>this._splitToAllowedParent(n,s),getSplitParts:n=>this._getSplitParts(n),keepEmptyElement:n=>this._keepEmptyElement(n)})))}convert(t,e,n=["$root"]){this.fire("viewCleanup",t),this._modelCursor=function(h,p){let b;for(const A of new Xo(h)){const C={};for(const P of A.getAttributeKeys())C[P]=A.getAttribute(P);const E=p.createElement(A.name,C);b&&p.insert(E,b),b=Dt._createAt(E,0)}return b}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=ma.createFrom(t),this.conversionApi.store={};const{modelRange:s}=this._convertItem(t,this._modelCursor),l=e.createDocumentFragment();if(s){this._removeEmptyElements();for(const h of Array.from(this._modelCursor.parent.getChildren()))e.append(h,l);l.markers=function(h,p){const b=new Set,A=new Map,C=wt._createIn(h).getItems();for(const E of C)E.is("element","$marker")&&b.add(E);for(const E of b){const P=E.getAttribute("data-name"),F=p.createPositionBefore(E);A.has(P)?A.get(P).end=F.clone():A.set(P,new wt(F.clone())),p.remove(E)}return A}(l,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,l}_convertItem(t,e){const n={viewItem:t,modelCursor:e,modelRange:null};if(t.is("element")?this.fire(`element:${t.name}`,n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof wt))throw new W("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}_convertChildren(t,e){let n=e.is("position")?e:Dt._createAt(e,0);const s=new wt(n);for(const l of Array.from(t.getChildren())){const h=this._convertItem(l,n);h.modelRange instanceof wt&&(s.end=h.modelRange.end,n=h.modelCursor)}return{modelRange:s,modelCursor:n}}_safeInsert(t,e){const n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}_updateConversionResult(t,e){const n=this._getSplitParts(t),s=this.conversionApi.writer;e.modelRange||(e.modelRange=s.createRange(s.createPositionBefore(t),s.createPositionAfter(n[n.length-1])));const l=this._cursorParents.get(t);e.modelCursor=l?s.createPositionAt(l,0):e.modelRange.end}_splitToAllowedParent(t,e){const{schema:n,writer:s}=this.conversionApi;let l=n.findAllowedParent(e,t);if(l){if(l===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(l)&&(l=null)}if(!l)return dg(e,t,n)?{position:hg(e,s)}:null;const h=this.conversionApi.writer.split(e,l),p=[];for(const A of h.range.getWalker())if("elementEnd"==A.type)p.push(A.item);else{const C=p.pop();this._registerSplitPair(C,A.item)}const b=h.range.end.parent;return this._cursorParents.set(t,b),{position:h.position,cursorParent:b}}_registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);const n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}_getSplitParts(t){let e;return e=this._splitParts.has(t)?this._splitParts.get(t):[t],e}_keepEmptyElement(t){this._emptyElementsToKeep.add(t)}_removeEmptyElements(){let t=!1;for(const e of this._splitParts.keys())e.isEmpty&&!this._emptyElementsToKeep.has(e)&&(this.conversionApi.writer.remove(e),this._splitParts.delete(e),t=!0);t&&this._removeEmptyElements()}}class v_{getHtml(t){const e=Yt.document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}class k_{constructor(t){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new ha(t,{renderingMode:"data"}),this.htmlWriter=new v_}toData(t){const e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e)}toView(t){const e=this._toDom(t);return this.domConverter.domToView(e,{skipComments:this.skipComments})}registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t)}useFillerType(t){this.domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp"}_toDom(t){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t=`${t}`);const e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),s=e.body.childNodes;for(;s.length>0;)n.appendChild(s[0]);return n}}class __ extends(ie()){constructor(t,e){super(),this.model=t,this.mapper=new Hp,this.downcastDispatcher=new Xp({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",(n,s,l)=>{if(!l.consumable.consume(s.item,n.name))return;const h=l.writer,p=l.mapper.toViewPosition(s.range.start),b=h.createText(s.item.data);h.insert(p,b)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(n,s,l)=>{l.convertAttributes(s.item),s.reconversion||!s.item.is("element")||s.item.isEmpty||l.convertChildren(s.item)},{priority:"lowest"}),this.upcastDispatcher=new b_({schema:t.schema}),this.viewDocument=new Or(e),this.stylesProcessor=e,this.htmlProcessor=new k_(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new qh(this.viewDocument),this.upcastDispatcher.on("text",(n,s,{schema:l,consumable:h,writer:p})=>{let b=s.modelCursor;if(!h.test(s.viewItem))return;if(!l.checkChild(b,"$text")){if(!dg(b,"$text",l)||0==s.viewItem.data.trim().length)return;const C=b.nodeBefore;b=hg(b,p),C&&C.is("element","$marker")&&(p.move(p.createRangeOn(C),b),b=p.createPositionAfter(C))}h.consume(s.viewItem);const A=p.createText(s.viewItem.data);p.insert(A,b),s.modelRange=p.createRange(b,b.getShiftedBy(A.offsetSize)),s.modelCursor=s.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(n,s,l)=>{if(!s.modelRange&&l.consumable.consume(s.viewItem,{name:!0})){const{modelRange:h,modelCursor:p}=l.convertChildren(s.viewItem,s.modelCursor);s.modelRange=h,s.modelCursor=p}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(n,s,l)=>{if(!s.modelRange&&l.consumable.consume(s.viewItem,{name:!0})){const{modelRange:h,modelCursor:p}=l.convertChildren(s.viewItem,s.modelCursor);s.modelRange=h,s.modelCursor=p}},{priority:"lowest"}),ne().prototype.decorate.call(this,"init"),ne().prototype.decorate.call(this,"set"),ne().prototype.decorate.call(this,"get"),ne().prototype.decorate.call(this,"toView"),ne().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},cg)},{priority:"lowest"})}get(t={}){const{rootName:e="main",trim:n="empty"}=t;if(!this._checkIfRootsExists([e]))throw new W("datacontroller-get-non-existent-root",this);const s=this.model.document.getRoot(e);return s.isAttached()||kt("datacontroller-get-detached-root",this),"empty"!==n||this.model.hasContent(s,{ignoreWhitespaces:!0})?this.stringify(s,t):""}stringify(t,e={}){const n=this.toView(t,e);return this.processor.toData(n)}toView(t,e={}){const n=this.viewDocument,s=this._viewWriter;this.mapper.clearBindings();const l=wt._createIn(t),h=new fo(n);this.mapper.bindElements(t,h);const p=t.is("documentFragment")?t.markers:function(b){const A=[],C=b.root.document;if(!C)return new Map;const E=wt._createIn(b);for(const P of C.model.markers){const F=P.getRange(),j=F.isCollapsed,Y=F.start.isEqual(E.start)||F.end.isEqual(E.end);if(j&&Y)A.push([P.name,F]);else{const $=E.getIntersection(F);$&&A.push([P.name,$])}}return A.sort(([P,F],[j,Y])=>{if("after"!==F.end.compareWith(Y.start))return 1;if("before"!==F.start.compareWith(Y.end))return-1;switch(F.start.compareWith(Y.start)){case"before":return 1;case"after":return-1;default:switch(F.end.compareWith(Y.end)){case"before":return 1;case"after":return-1;default:return j.localeCompare(P)}}}),new Map(A)}(t);return this.downcastDispatcher.convert(l,p,s,e),h}init(t){if(this.model.document.version)throw new W("datacontroller-init-document-not-empty",this);let e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new W("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},n=>{for(const s of Object.keys(e)){const l=this.model.document.getRoot(s);n.insert(this.parse(e[s],l),l,0)}}),Promise.resolve()}set(t,e={}){let n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new W("datacontroller-set-non-existent-root",this);this.model.enqueueChange(e.batchType||{},s=>{s.setSelection(null),s.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const l of Object.keys(n)){const h=this.model.document.getRoot(l);s.remove(s.createRangeIn(h)),s.insert(this.parse(n[l],h),h,0)}})}parse(t,e="$root"){const n=this.processor.toView(t);return this.toModel(n,e)}toModel(t,e="$root"){return this.model.change(n=>this.upcastDispatcher.convert(t,n,e))}addStyleProcessorRules(t){t(this.stylesProcessor)}registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}destroy(){this.stopListening()}_checkIfRootsExists(t){for(const e of t)if(!this.model.document.getRoot(e))return!1;return!0}}class w_{constructor(t,e){this._helpers=new Map,this._downcast=Ze(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Ze(e),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(t,e){const n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new W("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}for(t){if(!this._helpers.has(t))throw new W("conversion-for-unknown-group",this);return this._helpers.get(t)}elementToElement(t){this.for("downcast").elementToElement(t);for(const{model:e,view:n}of Eu(t))this.for("upcast").elementToElement({model:e,view:n,converterPriority:t.converterPriority})}attributeToElement(t){this.for("downcast").attributeToElement(t);for(const{model:e,view:n}of Eu(t))this.for("upcast").elementToAttribute({view:n,model:e,converterPriority:t.converterPriority})}attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);for(const{model:e,view:n}of Eu(t))this.for("upcast").attributeToAttribute({view:n,model:e})}_createConversionHelpers({name:t,dispatchers:e,isDowncast:n}){if(this._helpers.has(t))throw new W("conversion-group-exists",this);const s=n?new j0(e):new X0(e);this._helpers.set(t,s)}}function*Eu(r){if(r.model.values)for(const t of r.model.values){const e={key:r.model.key,value:t},n=r.view[t],s=r.upcastAlso?r.upcastAlso[t]:void 0;yield*Cg(e,n,s)}else yield*Cg(r.model,r.view,r.upcastAlso)}function*Cg(r,t,e){if(yield{model:r,view:t},e)for(const n of Ze(e))yield{model:r,view:n}}class Oi{constructor(t){this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}static get className(){return"Operation"}static fromJSON(t,e){return new this(t.baseVersion)}}function Tu(r,t){const e=Eg(t),n=e.reduce((h,p)=>h+p.offsetSize,0),s=r.parent;va(r);const l=r.index;return s._insertChild(l,e),ba(s,l+e.length),ba(s,l),new wt(r,r.getShiftedBy(n))}function yg(r){if(!r.isFlat)throw new W("operation-utils-remove-range-not-flat",this);const t=r.start.parent;va(r.start),va(r.end);const e=t._removeChildren(r.start.index,r.end.index-r.start.index);return ba(t,r.start.index),e}function fa(r,t){if(!r.isFlat)throw new W("operation-utils-move-range-not-flat",this);const e=yg(r);return Tu(t=t._getTransformedByDeletion(r.start,r.end.offset-r.start.offset),e)}function Eg(r){const t=[];!function e(n){if("string"==typeof n)t.push(new _e(n));else if(n instanceof Mi)t.push(new _e(n.data,n.getAttributes()));else if(n instanceof Bn)t.push(n);else if(ti(n))for(const s of n)e(s)}(r);for(let e=1;et.maxOffset)throw new W("move-operation-nodes-do-not-exist",this);if(t===e&&n=n&&this.targetPosition.path[l]n._clone(!0))),e=new Je(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}getReversed(){const e=new Dt(this.position.root.document.graveyard,[0]);return new ge(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}_validate(){const t=this.position.parent;if(!t||t.maxOffsete._clone(!0))),Tu(this.position,t)}toJSON(){const t=super.toJSON();return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}static get className(){return"InsertOperation"}static fromJSON(t,e){const n=[];for(const l of t.nodes)n.push(l.name?me.fromJSON(l):_e.fromJSON(l));const s=new Je(Dt.fromJSON(t.position,e),n,t.baseVersion);return s.shouldReceiveAttributes=t.shouldReceiveAttributes,s}}class Se extends Oi{constructor(t,e,n,s,l){super(l),this.splitPosition=t.clone(),this.splitPosition.stickiness="toNext",this.howMany=e,this.insertionPosition=n,this.graveyardPosition=s?s.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const t=this.insertionPosition.path.slice();return t.push(0),new Dt(this.insertionPosition.root,t)}get movedRange(){const t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new wt(this.splitPosition,t)}get affectedSelectable(){const t=[wt._createFromPositionAndShift(this.splitPosition,0),wt._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&t.push(wt._createFromPositionAndShift(this.graveyardPosition,0)),t}clone(){return new Se(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const e=new Dt(this.splitPosition.root.document.graveyard,[0]);return new Be(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}_validate(){const t=this.splitPosition.parent;if(!t||t.maxOffset{if(r.key===t.key&&r.range.start.hasSameParentAs(t.range.start)){const n=r.range.getDifference(t.range).map(l=>new Ue(l,r.key,r.oldValue,r.newValue,0)),s=r.range.getIntersection(t.range);return s&&e.aIsStrong&&n.push(new Ue(s,t.key,t.newValue,r.newValue,0)),0==n.length?[new Ve(0)]:n}return[r]}),de(Ue,Je,(r,t)=>{if(r.range.start.hasSameParentAs(t.position)&&r.range.containsPosition(t.position)){const e=r.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map(n=>new Ue(n,r.key,r.oldValue,r.newValue,r.baseVersion));if(t.shouldReceiveAttributes){const n=Lg(t,r.key,r.oldValue);n&&e.unshift(n)}return e}return r.range=r.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[r]}),de(Ue,Be,(r,t)=>{const e=[];r.range.start.hasSameParentAs(t.deletionPosition)&&(r.range.containsPosition(t.deletionPosition)||r.range.start.isEqual(t.deletionPosition))&&e.push(wt._createFromPositionAndShift(t.graveyardPosition,1));const n=r.range._getTransformedByMergeOperation(t);return n.isCollapsed||e.push(n),e.map(s=>new Ue(s,r.key,r.oldValue,r.newValue,r.baseVersion))}),de(Ue,ge,(r,t)=>function(n,s){const l=wt._createFromPositionAndShift(s.sourcePosition,s.howMany);let h=null,p=[];l.containsRange(n,!0)?h=n:n.start.hasSameParentAs(l.start)?(p=n.getDifference(l),h=n.getIntersection(l)):p=[n];const b=[];for(let A of p){A=A._getTransformedByDeletion(s.sourcePosition,s.howMany);const C=s.getMovedRangeStart(),E=A.start.hasSameParentAs(C),P=A._getTransformedByInsertion(C,s.howMany,E);b.push(...P)}return h&&b.push(h._getTransformedByMove(s.sourcePosition,s.targetPosition,s.howMany,!1)[0]),b}(r.range,t).map(n=>new Ue(n,r.key,r.oldValue,r.newValue,r.baseVersion))),de(Ue,Se,(r,t)=>{if(r.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||r.range.end.offset++,[r];if(r.range.start.hasSameParentAs(t.splitPosition)&&r.range.containsPosition(t.splitPosition)){const e=r.clone();return e.range=new wt(t.moveTargetPosition.clone(),r.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),r.range.end=t.splitPosition.clone(),r.range.end.stickiness="toPrevious",[r,e]}return r.range=r.range._getTransformedBySplitOperation(t),[r]}),de(Je,Ue,(r,t)=>{const e=[r];if(r.shouldReceiveAttributes&&r.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(r.position)){const n=Lg(r,t.key,t.newValue);n&&e.push(n)}return e}),de(Je,Je,(r,t,e)=>(r.position.isEqual(t.position)&&e.aIsStrong||(r.position=r.position._getTransformedByInsertOperation(t)),[r])),de(Je,ge,(r,t)=>(r.position=r.position._getTransformedByMoveOperation(t),[r])),de(Je,Se,(r,t)=>(r.position=r.position._getTransformedBySplitOperation(t),[r])),de(Je,Be,(r,t)=>(r.position=r.position._getTransformedByMergeOperation(t),[r])),de(_i,Je,(r,t)=>(r.oldRange&&(r.oldRange=r.oldRange._getTransformedByInsertOperation(t)[0]),r.newRange&&(r.newRange=r.newRange._getTransformedByInsertOperation(t)[0]),[r])),de(_i,_i,(r,t,e)=>{if(r.name==t.name){if(!e.aIsStrong)return[new Ve(0)];r.oldRange=t.newRange?t.newRange.clone():null}return[r]}),de(_i,Be,(r,t)=>(r.oldRange&&(r.oldRange=r.oldRange._getTransformedByMergeOperation(t)),r.newRange&&(r.newRange=r.newRange._getTransformedByMergeOperation(t)),[r])),de(_i,ge,(r,t,e)=>{if(r.oldRange&&(r.oldRange=wt._createFromRanges(r.oldRange._getTransformedByMoveOperation(t))),r.newRange){if(e.abRelation){const n=wt._createFromRanges(r.newRange._getTransformedByMoveOperation(t));if("left"==e.abRelation.side&&t.targetPosition.isEqual(r.newRange.start))return r.newRange.end=n.end,r.newRange.start.path=e.abRelation.path,[r];if("right"==e.abRelation.side&&t.targetPosition.isEqual(r.newRange.end))return r.newRange.start=n.start,r.newRange.end.path=e.abRelation.path,[r]}r.newRange=wt._createFromRanges(r.newRange._getTransformedByMoveOperation(t))}return[r]}),de(_i,Se,(r,t,e)=>{if(r.oldRange&&(r.oldRange=r.oldRange._getTransformedBySplitOperation(t)),r.newRange){if(e.abRelation){const n=r.newRange._getTransformedBySplitOperation(t);return r.newRange.start.isEqual(t.splitPosition)&&e.abRelation.wasStartBeforeMergedElement?r.newRange.start=Dt._createAt(t.insertionPosition):r.newRange.start.isEqual(t.splitPosition)&&!e.abRelation.wasInLeftElement&&(r.newRange.start=Dt._createAt(t.moveTargetPosition)),r.newRange.end=r.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasInRightElement?Dt._createAt(t.moveTargetPosition):r.newRange.end.isEqual(t.splitPosition)&&e.abRelation.wasEndBeforeMergedElement?Dt._createAt(t.insertionPosition):n.end,[r]}r.newRange=r.newRange._getTransformedBySplitOperation(t)}return[r]}),de(Be,Je,(r,t)=>(r.sourcePosition.hasSameParentAs(t.position)&&(r.howMany+=t.howMany),r.sourcePosition=r.sourcePosition._getTransformedByInsertOperation(t),r.targetPosition=r.targetPosition._getTransformedByInsertOperation(t),[r])),de(Be,Be,(r,t,e)=>{if(r.sourcePosition.isEqual(t.sourcePosition)&&r.targetPosition.isEqual(t.targetPosition)){if(e.bWasUndone){const n=t.graveyardPosition.path.slice();return n.push(0),r.sourcePosition=new Dt(t.graveyardPosition.root,n),r.howMany=0,[r]}return[new Ve(0)]}if(r.sourcePosition.isEqual(t.sourcePosition)&&!r.targetPosition.isEqual(t.targetPosition)&&!e.bWasUndone&&"splitAtSource"!=e.abRelation){const n="$graveyard"==r.targetPosition.root.rootName,s="$graveyard"==t.targetPosition.root.rootName;if(s&&!n||(!n||s)&&e.aIsStrong){const l=t.targetPosition._getTransformedByMergeOperation(t),h=r.targetPosition._getTransformedByMergeOperation(t);return[new ge(l,r.howMany,h,0)]}return[new Ve(0)]}return r.sourcePosition.hasSameParentAs(t.targetPosition)&&(r.howMany+=t.howMany),r.sourcePosition=r.sourcePosition._getTransformedByMergeOperation(t),r.targetPosition=r.targetPosition._getTransformedByMergeOperation(t),r.graveyardPosition.isEqual(t.graveyardPosition)&&e.aIsStrong||(r.graveyardPosition=r.graveyardPosition._getTransformedByMergeOperation(t)),[r]}),de(Be,ge,(r,t,e)=>{const n=wt._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!e.bWasUndone&&!e.forceWeakRemove&&r.deletionPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(r.sourcePosition)?[new Ve(0)]:(r.sourcePosition.hasSameParentAs(t.targetPosition)&&(r.howMany+=t.howMany),r.sourcePosition.hasSameParentAs(t.sourcePosition)&&(r.howMany-=t.howMany),r.sourcePosition=r.sourcePosition._getTransformedByMoveOperation(t),r.targetPosition=r.targetPosition._getTransformedByMoveOperation(t),r.graveyardPosition.isEqual(t.targetPosition)||(r.graveyardPosition=r.graveyardPosition._getTransformedByMoveOperation(t)),[r])}),de(Be,Se,(r,t,e)=>{if(t.graveyardPosition&&(r.graveyardPosition=r.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),r.deletionPosition.isEqual(t.graveyardPosition)&&(r.howMany=t.howMany)),r.targetPosition.isEqual(t.splitPosition)){const n=0!=t.howMany,s=t.graveyardPosition&&r.deletionPosition.isEqual(t.graveyardPosition);if(n||s||"mergeTargetNotMoved"==e.abRelation)return r.sourcePosition=r.sourcePosition._getTransformedBySplitOperation(t),[r]}if(r.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==e.abRelation)return r.howMany=0,r.targetPosition=r.targetPosition._getTransformedBySplitOperation(t),[r];if("mergeSameElement"==e.abRelation||r.sourcePosition.offset>0)return r.sourcePosition=t.moveTargetPosition.clone(),r.targetPosition=r.targetPosition._getTransformedBySplitOperation(t),[r]}return r.sourcePosition.hasSameParentAs(t.splitPosition)&&(r.howMany=t.splitPosition.offset),r.sourcePosition=r.sourcePosition._getTransformedBySplitOperation(t),r.targetPosition=r.targetPosition._getTransformedBySplitOperation(t),[r]}),de(ge,Je,(r,t)=>{const e=wt._createFromPositionAndShift(r.sourcePosition,r.howMany)._getTransformedByInsertOperation(t,!1)[0];return r.sourcePosition=e.start,r.howMany=e.end.offset-e.start.offset,r.targetPosition.isEqual(t.position)||(r.targetPosition=r.targetPosition._getTransformedByInsertOperation(t)),[r]}),de(ge,ge,(r,t,e)=>{const n=wt._createFromPositionAndShift(r.sourcePosition,r.howMany),s=wt._createFromPositionAndShift(t.sourcePosition,t.howMany);let l,h=e.aIsStrong,p=!e.aIsStrong;if("insertBefore"==e.abRelation||"insertAfter"==e.baRelation?p=!0:"insertAfter"!=e.abRelation&&"insertBefore"!=e.baRelation||(p=!1),l=r.targetPosition.isEqual(t.targetPosition)&&p?r.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):r.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Pg(r,t)&&Pg(t,r))return[t.getReversed()];if(n.containsPosition(t.targetPosition)&&n.containsRange(s,!0))return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),qr([n],l);if(s.containsPosition(r.targetPosition)&&s.containsRange(n,!0))return n.start=n.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),n.end=n.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),qr([n],l);const b=qe(r.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==b||"extension"==b)return n.start=n.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),n.end=n.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),qr([n],l);"remove"!=r.type||"remove"==t.type||e.aWasUndone||e.forceWeakRemove?"remove"==r.type||"remove"!=t.type||e.bWasUndone||e.forceWeakRemove||(h=!1):h=!0;const A=[],C=n.getDifference(s);for(const P of C){P.start=P.start._getTransformedByDeletion(t.sourcePosition,t.howMany),P.end=P.end._getTransformedByDeletion(t.sourcePosition,t.howMany);const F="same"==qe(P.start.getParentPath(),t.getMovedRangeStart().getParentPath()),j=P._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,F);A.push(...j)}const E=n.getIntersection(s);return null!==E&&h&&(E.start=E.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),E.end=E.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===A.length?A.push(E):1==A.length?s.start.isBefore(n.start)||s.start.isEqual(n.start)?A.unshift(E):A.push(E):A.splice(1,0,E)),0===A.length?[new Ve(r.baseVersion)]:qr(A,l)}),de(ge,Se,(r,t,e)=>{let n=r.targetPosition.clone();r.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=e.abRelation||(n=r.targetPosition._getTransformedBySplitOperation(t));const s=wt._createFromPositionAndShift(r.sourcePosition,r.howMany);if(s.end.isEqual(t.insertionPosition))return t.graveyardPosition||r.howMany++,r.targetPosition=n,[r];if(s.start.hasSameParentAs(t.splitPosition)&&s.containsPosition(t.splitPosition)){let h=new wt(t.splitPosition,s.end);return h=h._getTransformedBySplitOperation(t),qr([new wt(s.start,t.splitPosition),h],n)}r.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==e.abRelation&&(n=t.moveTargetPosition),r.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==e.abRelation&&(n=r.targetPosition);const l=[s._getTransformedBySplitOperation(t)];if(t.graveyardPosition){const h=s.start.isEqual(t.graveyardPosition)||s.containsPosition(t.graveyardPosition);r.howMany>1&&h&&!e.aWasUndone&&l.push(wt._createFromPositionAndShift(t.insertionPosition,1))}return qr(l,n)}),de(ge,Be,(r,t,e)=>{const n=wt._createFromPositionAndShift(r.sourcePosition,r.howMany);if(t.deletionPosition.hasSameParentAs(r.sourcePosition)&&n.containsPosition(t.sourcePosition))if("remove"!=r.type||e.forceWeakRemove){if(1==r.howMany)return e.bWasUndone?(r.sourcePosition=t.graveyardPosition.clone(),r.targetPosition=r.targetPosition._getTransformedByMergeOperation(t),[r]):[new Ve(0)]}else if(!e.aWasUndone){const l=[];let h=t.graveyardPosition.clone(),p=t.targetPosition._getTransformedByMergeOperation(t);r.howMany>1&&(l.push(new ge(r.sourcePosition,r.howMany-1,r.targetPosition,0)),h=h._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany-1),p=p._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany-1));const b=t.deletionPosition._getCombined(r.sourcePosition,r.targetPosition),A=new ge(h,1,b,0),C=A.getMovedRangeStart().path.slice();C.push(0);const E=new Dt(A.targetPosition.root,C);p=p._getTransformedByMove(h,b,1);const P=new ge(p,t.howMany,E,0);return l.push(A),l.push(P),l}const s=wt._createFromPositionAndShift(r.sourcePosition,r.howMany)._getTransformedByMergeOperation(t);return r.sourcePosition=s.start,r.howMany=s.end.offset-s.start.offset,r.targetPosition=r.targetPosition._getTransformedByMergeOperation(t),[r]}),de(wi,Je,(r,t)=>(r.position=r.position._getTransformedByInsertOperation(t),[r])),de(wi,Be,(r,t)=>r.position.isEqual(t.deletionPosition)?(r.position=t.graveyardPosition.clone(),r.position.stickiness="toNext",[r]):(r.position=r.position._getTransformedByMergeOperation(t),[r])),de(wi,ge,(r,t)=>(r.position=r.position._getTransformedByMoveOperation(t),[r])),de(wi,wi,(r,t,e)=>{if(r.position.isEqual(t.position)){if(!e.aIsStrong)return[new Ve(0)];r.oldName=t.newName}return[r]}),de(wi,Se,(r,t)=>{if("same"==qe(r.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){const e=new wi(r.position.getShiftedBy(1),r.oldName,r.newName,0);return[r,e]}return r.position=r.position._getTransformedBySplitOperation(t),[r]}),de(zn,zn,(r,t,e)=>{if(r.root===t.root&&r.key===t.key){if(!e.aIsStrong||r.newValue===t.newValue)return[new Ve(0)];r.oldValue=t.newValue}return[r]}),de(mn,mn,(r,t)=>r.rootName===t.rootName&&r.isAdd===t.isAdd?[new Ve(0)]:[r]),de(Se,Je,(r,t)=>(r.splitPosition.hasSameParentAs(t.position)&&r.splitPosition.offset{if(!r.graveyardPosition&&!e.bWasUndone&&r.splitPosition.hasSameParentAs(t.sourcePosition)){const n=t.graveyardPosition.path.slice();n.push(0);const s=new Dt(t.graveyardPosition.root,n),l=Se.getInsertionPosition(new Dt(t.graveyardPosition.root,n)),h=new Se(s,0,l,null,0);return r.splitPosition=r.splitPosition._getTransformedByMergeOperation(t),r.insertionPosition=Se.getInsertionPosition(r.splitPosition),r.graveyardPosition=h.insertionPosition.clone(),r.graveyardPosition.stickiness="toNext",[h,r]}return r.splitPosition.hasSameParentAs(t.deletionPosition)&&!r.splitPosition.isAfter(t.deletionPosition)&&r.howMany--,r.splitPosition.hasSameParentAs(t.targetPosition)&&(r.howMany+=t.howMany),r.splitPosition=r.splitPosition._getTransformedByMergeOperation(t),r.insertionPosition=Se.getInsertionPosition(r.splitPosition),r.graveyardPosition&&(r.graveyardPosition=r.graveyardPosition._getTransformedByMergeOperation(t)),[r]}),de(Se,ge,(r,t,e)=>{const n=wt._createFromPositionAndShift(t.sourcePosition,t.howMany);if(r.graveyardPosition){const l=n.start.isEqual(r.graveyardPosition)||n.containsPosition(r.graveyardPosition);if(!e.bWasUndone&&l){const h=r.splitPosition._getTransformedByMoveOperation(t),p=r.graveyardPosition._getTransformedByMoveOperation(t),b=p.path.slice();b.push(0);const A=new Dt(p.root,b);return[new ge(h,r.howMany,A,0)]}r.graveyardPosition=r.graveyardPosition._getTransformedByMoveOperation(t)}const s=r.splitPosition.isEqual(t.targetPosition);if(s&&("insertAtSource"==e.baRelation||"splitBefore"==e.abRelation))return r.howMany+=t.howMany,r.splitPosition=r.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),r.insertionPosition=Se.getInsertionPosition(r.splitPosition),[r];if(s&&e.abRelation&&e.abRelation.howMany){const{howMany:l,offset:h}=e.abRelation;return r.howMany+=l,r.splitPosition=r.splitPosition.getShiftedBy(h),[r]}return r.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(r.splitPosition)?(r.howMany-=t.howMany-(r.splitPosition.offset-t.sourcePosition.offset),r.splitPosition.hasSameParentAs(t.targetPosition)&&r.splitPosition.offset{if(r.splitPosition.isEqual(t.splitPosition)){if(!r.graveyardPosition&&!t.graveyardPosition)return[new Ve(0)];if(r.graveyardPosition&&t.graveyardPosition&&r.graveyardPosition.isEqual(t.graveyardPosition))return[new Ve(0)];if("splitBefore"==e.abRelation)return r.howMany=0,r.graveyardPosition=r.graveyardPosition._getTransformedBySplitOperation(t),[r]}if(r.graveyardPosition&&t.graveyardPosition&&r.graveyardPosition.isEqual(t.graveyardPosition)){const n="$graveyard"==r.splitPosition.root.rootName,s="$graveyard"==t.splitPosition.root.rootName;if(s&&!n||(!n||s)&&e.aIsStrong){const l=[];return t.howMany&&l.push(new ge(t.moveTargetPosition,t.howMany,t.splitPosition,0)),r.howMany&&l.push(new ge(r.splitPosition,r.howMany,r.moveTargetPosition,0)),l}return[new Ve(0)]}if(r.graveyardPosition&&(r.graveyardPosition=r.graveyardPosition._getTransformedBySplitOperation(t)),r.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==e.abRelation)return r.howMany++,[r];if(t.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==e.baRelation){const n=t.insertionPosition.path.slice();n.push(0);const s=new Dt(t.insertionPosition.root,n);return[r,new ge(r.insertionPosition,1,s,0)]}return r.splitPosition.hasSameParentAs(t.splitPosition)&&r.splitPosition.offset{const e=t[0];e.isDocumentOperation&&T_.call(this,e)},{priority:"low"})}function T_(r){const t=this.getTransformedByOperation(r);if(!this.isEqual(t)){const e=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",e)}}ii.prototype.is=function(r){return"livePosition"===r||"model:livePosition"===r||"position"==r||"model:position"===r};class Yr{constructor(t={}){"string"==typeof t&&(t="transparent"===t?{isUndoable:!1}:{},kt("batch-constructor-deprecated-string-type"));const{isUndoable:e=!0,isLocal:n=!0,isUndo:s=!1,isTyping:l=!1}=t;this.operations=[],this.isUndoable=e,this.isLocal=n,this.isUndo=s,this.isTyping=l}get type(){return kt("batch-type-deprecated"),"default"}get baseVersion(){for(const t of this.operations)if(null!==t.baseVersion)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}var S_=Object.defineProperty,I_=Object.defineProperties,D_=Object.getOwnPropertyDescriptors,Ng=Object.getOwnPropertySymbols,M_=Object.prototype.hasOwnProperty,L_=Object.prototype.propertyIsEnumerable,Og=(r,t,e)=>t in r?S_(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Bg=(r,t)=>{for(var e in t||(t={}))M_.call(t,e)&&Og(r,e,t[e]);if(Ng)for(var e of Ng(t))L_.call(t,e)&&Og(r,e,t[e]);return r};class P_{constructor(t){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=t}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(t){const e=t;switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const n of e.range.getItems({shallow:!0}))this._isInInsertedElement(n.parent)||this._markAttribute(n);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const n=this._isInInsertedElement(e.sourcePosition.parent),s=this._isInInsertedElement(e.targetPosition.parent);n||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),s||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const n=wt._createFromPositionAndShift(e.position,1);for(const s of this._markerCollection.getMarkersIntersectingRange(n)){const l=s.getData();this.bufferMarkerChange(s.name,l,l)}break}case"split":{const n=e.splitPosition.parent;this._isInInsertedElement(n)||this._markRemove(n,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{const n=e.sourcePosition.parent;this._isInInsertedElement(n.parent)||this._markRemove(n.parent,n.startOffset,1),this._markInsert(e.graveyardPosition.parent,e.graveyardPosition.offset,1);const l=e.targetPosition.parent;this._isInInsertedElement(l)||this._markInsert(l,e.targetPosition.offset,n.maxOffset);break}case"detachRoot":case"addRoot":{const n=e.affectedSelectable;if(!n._isLoaded||n.isAttached()==e.isAdd)return;this._bufferRootStateChange(e.rootName,e.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":if(!e.root._isLoaded)return;this._bufferRootAttributeChange(e.root.rootName,e.key,e.oldValue,e.newValue)}this._cachedChanges=null}bufferMarkerChange(t,e,n){e.range&&e.range.root.is("rootElement")&&!e.range.root._isLoaded&&(e.range=null),n.range&&n.range.root.is("rootElement")&&!n.range.root._isLoaded&&(n.range=null);let s=this._changedMarkers.get(t);s?s.newMarkerData=n:(s={newMarkerData:n,oldMarkerData:e},this._changedMarkers.set(t,s)),null==s.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(t)}getMarkersToRemove(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.oldMarkerData.range&&t.push({name:e,range:n.oldMarkerData.range});return t}getMarkersToAdd(){const t=[];for(const[e,n]of this._changedMarkers)null!=n.newMarkerData.range&&t.push({name:e,range:n.newMarkerData.range});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map(([t,e])=>({name:t,data:{oldRange:e.oldMarkerData.range,newRange:e.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0||this._changedRoots.size>0)return!0;for(const{newMarkerData:t,oldMarkerData:e}of this._changedMarkers.values()){if(t.affectsData!==e.affectsData)return!0;if(t.affectsData){const n=t.range&&!e.range,s=!t.range&&e.range,l=t.range&&e.range&&!t.range.isEqual(e.range);if(n||s||l)return!0}}return!1}getChanges(t={}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const n of this._changesInElement.keys()){const s=this._changesInElement.get(n).sort((C,E)=>C.offset===E.offset?C.type!=E.type?"remove"==C.type?-1:1:0:C.offsetn.position.root!=s.position.root?n.position.root.rootNamen);for(const n of e)delete n.changeCount,"attribute"==n.type&&(delete n.position,delete n.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(O_),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(t=>{const e=Bg({},t);return void 0!==e.state&&delete e.attributes,e})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(t,e){if(!this._changedRoots.has(t))return void this._changedRoots.set(t,{name:t,state:e?"attached":"detached"});const n=this._changedRoots.get(t);void 0!==n.state?(delete n.state,void 0===n.attributes&&this._changedRoots.delete(t)):n.state=e?"attached":"detached"}_bufferRootAttributeChange(t,e,n,s){const l=this._changedRoots.get(t)||{name:t},h=l.attributes||{};if(h[e]){const p=h[e];s===p.oldValue?delete h[e]:p.newValue=s}else h[e]={oldValue:n,newValue:s};0===Object.entries(h).length?(delete l.attributes,void 0===l.state&&this._changedRoots.delete(t)):(l.attributes=h,this._changedRoots.set(t,l))}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);const e=wt._createOn(t);for(const n of this._markerCollection.getMarkersIntersectingRange(e)){const s=n.getData();this.bufferMarkerChange(n.name,s,s)}this._cachedChanges=null}_bufferRootLoad(t){if(t.isAttached()){this._bufferRootStateChange(t.rootName,!0),this._markInsert(t,0,t.maxOffset);for(const n of t.getAttributeKeys())this._bufferRootAttributeChange(t.rootName,n,null,t.getAttribute(n));for(const n of this._markerCollection)if(n.getRange().root==t){const s=n.getData();this.bufferMarkerChange(n.name,(e=Bg({},s),I_(e,D_({range:null}))),s)}var e}}_markInsert(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const s={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,s)}_markRemove(t,e,n){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const s={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,s),this._removeAllNestedChanges(t,e,n)}_markAttribute(t){if(t.root.is("rootElement")&&!t.root._isLoaded)return;const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshot(t);const n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(let s=0;sn.offset){if(s>l){const h={type:"attribute",offset:l,howMany:s-l,count:this._changeCount++};this._handleChange(h,e),e.push(h)}t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=n.offset&&t.offsetl?(t.nodesToHandle=s-l,t.offset=l):t.nodesToHandle=0);if("remove"==n.type&&t.offsetn.offset){const h={type:"attribute",offset:n.offset,howMany:s-n.offset,count:this._changeCount++};this._handleChange(h,e),e.push(h),t.nodesToHandle=n.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==n.type&&(t.offset>=n.offset&&s<=l?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=n.offset&&s>=l&&(n.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,n){return{type:"insert",position:Dt._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(t,e,n){return{type:"remove",position:Dt._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(t,e,n){const s=[];n=new Map(n);for(const[l,h]of e){const p=n.has(l)?n.get(l):null;p!==h&&s.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:l,attributeOldValue:h,attributeNewValue:p,changeCount:this._changeCount++}),n.delete(l)}for(const[l,h]of n)s.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:l,attributeOldValue:null,attributeNewValue:h,changeCount:this._changeCount++});return s}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const n=this._changesInElement.get(e),s=t.startOffset;if(n)for(const l of n)if("insert"==l.type&&s>=l.offset&&sn){for(let h=0;hthis._version+1&&this._gaps.set(this._version,t),this._version=t}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(t){if(t.baseVersion!==this.version)throw new W("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}getOperations(t,e=this.version){if(!this._operations.length)return[];const n=this._operations[0];void 0===t&&(t=n.baseVersion);let s=e-1;for(const[p,b]of this._gaps)t>p&&tp&&sthis.lastOperation.baseVersion)return[];let l=this._baseVersionToOperationIndex.get(t);void 0===l&&(l=0);let h=this._baseVersionToOperationIndex.get(s);return void 0===h&&(h=this._operations.length-1),this._operations.slice(l,h+1)}getOperation(t){const e=this._baseVersionToOperationIndex.get(t);if(void 0!==e)return this._operations[e]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class Ic extends me{constructor(t,e,n="main"){super(e),this._isAttached=!0,this._isLoaded=!0,this._document=t,this.rootName=n}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}Ic.prototype.is=function(r,t){return t?t===this.name&&("rootElement"===r||"model:rootElement"===r||"element"===r||"model:element"===r):"rootElement"===r||"model:rootElement"===r||"element"===r||"model:element"===r||"node"===r||"model:node"===r};var F_=Object.defineProperty,z_=Object.defineProperties,R_=Object.getOwnPropertyDescriptors,zg=Object.getOwnPropertySymbols,Z_=Object.prototype.hasOwnProperty,U_=Object.prototype.propertyIsEnumerable,Rg=(r,t,e)=>t in r?F_(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Zg=(r,t)=>{for(var e in t||(t={}))Z_.call(t,e)&&Rg(r,e,t[e]);if(zg)for(var e of zg(t))U_.call(t,e)&&Rg(r,e,t[e]);return r},Ug=(r,t)=>z_(r,R_(t));const jg="$graveyard";class j_ extends(ie()){constructor(t){super(),this.model=t,this.history=new B_,this.selection=new rn(this),this.roots=new di({idProperty:"rootName"}),this.differ=new P_(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",jg),this.listenTo(t,"applyOperation",(e,n)=>{const s=n[0];s.isDocumentOperation&&this.differ.bufferOperation(s)},{priority:"high"}),this.listenTo(t,"applyOperation",(e,n)=>{const s=n[0];s.isDocumentOperation&&this.history.addOperation(s)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(t.markers,"update",(e,n,s,l,h)=>{const p=Ug(Zg({},n.getData()),{range:l});this.differ.bufferMarkerChange(n.name,h,p),null===s&&n.on("change",(b,A)=>{const C=n.getData();this.differ.bufferMarkerChange(n.name,Ug(Zg({},C),{range:A}),C)})}),this.registerPostFixer(e=>{let n=!1;for(const s of this.roots)s.isAttached()||s.isEmpty||(e.remove(e.createRangeIn(s)),n=!0);for(const s of this.model.markers)s.getRange().root.isAttached()||(e.removeMarker(s),n=!0);return n})}get version(){return this.history.version}set version(t){this.history.version=t}get graveyard(){return this.getRoot(jg)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new W("model-document-createroot-name-exists",this,{name:e});const n=new Ic(this,t,e);return this.roots.add(n),n}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(t=!1){return this.getRoots(t).map(e=>e.rootName)}getRoots(t=!1){return this.roots.filter(e=>e!=this.graveyard&&(t||e.isAttached())&&e._isLoaded)}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=Xl(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const t=this.getRoots();return t.length?t[0]:this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,n=e.schema,s=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(s)||e.createRange(s)}_validateSelectionRange(t){return Vg(t.start)&&Vg(t.end)}_callPostFixers(t){let e=!1;do{for(const n of this._postFixers)if(this.selection.refresh(),e=n(t),e)break}while(e)}}function Vg(r){const t=r.textNode;if(t){const e=t.data,n=r.offset-t.startOffset;return!Fs(e,n)&&!zs(e,n)}return!0}var V_=Object.defineProperty,q_=Object.defineProperties,Y_=Object.getOwnPropertyDescriptors,qg=Object.getOwnPropertySymbols,H_=Object.prototype.hasOwnProperty,G_=Object.prototype.propertyIsEnumerable,Yg=(r,t,e)=>t in r?V_(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class W_ extends(ie()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){return this._markers.has(t instanceof Hr?t.name:t)}get(t){return this._markers.get(t)||null}_set(t,e,n=!1,s=!1){const l=t instanceof Hr?t.name:t;if(l.includes(","))throw new W("markercollection-incorrect-marker-name",this);const h=this._markers.get(l);if(h){const C=h.getData(),E=h.getRange();let P=!1;return E.isEqual(e)||(h._attachLiveRange(Ni.fromRange(e)),P=!0),n!=h.managedUsingOperations&&(h._managedUsingOperations=n,P=!0),"boolean"==typeof s&&s!=h.affectsData&&(h._affectsData=s,P=!0),P&&this.fire(`update:${l}`,h,E,e,C),h}const p=Ni.fromRange(e),b=new Hr(l,p,n,s);var A;return this._markers.set(l,b),this.fire(`update:${l}`,b,null,e,(A=((C,E)=>{for(var P in E||(E={}))H_.call(E,P)&&Yg(C,P,E[P]);if(qg)for(var P of qg(E))G_.call(E,P)&&Yg(C,P,E[P]);return C})({},b.getData()),q_(A,Y_({range:null})))),b}_remove(t){const e=t instanceof Hr?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire(`update:${e}`,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}_refresh(t){const e=t instanceof Hr?t.name:t,n=this._markers.get(e);if(!n)throw new W("markercollection-refresh-marker-not-exists",this);const s=n.getRange();this.fire(`update:${e}`,n,s,s,n.getData())}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&&(yield e)}*getMarkersIntersectingRange(t){for(const e of this)null!==e.getRange().getIntersection(t)&&(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&&(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}class Hr extends(ie(gn)){constructor(t,e,n,s){super(),this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=n,this._affectsData=s}get managedUsingOperations(){if(!this._liveRange)throw new W("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new W("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new W("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new W("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new W("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}Hr.prototype.is=function(r){return"marker"===r||"model:marker"===r};class Q_ extends Oi{constructor(t,e){super(null),this.sourcePosition=t.clone(),this.howMany=e}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const t=super.toJSON();return t.sourcePosition=this.sourcePosition.toJSON(),t}_validate(){if(this.sourcePosition.root.document)throw new W("detach-operation-on-document-node",this)}_execute(){yg(wt._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Rn extends gn{constructor(t){super(),this.markers=new Map,this._children=new Wo,t&&this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const n of t)e=e.getChild(e.offsetToIndex(n));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const n of t)e.push(n.name?me.fromJSON(n):_e.fromJSON(n));return new Rn(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const n="string"==typeof(s=e)?[new _e(s)]:(ti(s)||(s=[s]),Array.from(s).map(l=>"string"==typeof l?new _e(l):l instanceof Mi?new _e(l.data,l.getAttributes()):l));var s;for(const s of n)null!==s.parent&&s._remove(),s.parent=this;this._children._insertNodes(t,n)}_removeChildren(t,e=1){const n=this._children._removeNodes(t,e);for(const s of n)s.parent=null;return n}}Rn.prototype.is=function(r){return"documentFragment"===r||"model:documentFragment"===r};class X_{constructor(t,e){this.model=t,this.batch=e}createText(t,e){return new _e(t,e)}createElement(t,e){return new me(t,e)}createDocumentFragment(){return new Rn}cloneElement(t,e=!0){return t._clone(e)}insert(t,e,n=0){if(this._assertWriterUsedCorrectly(),t instanceof _e&&""==t.data)return;const s=Dt._createAt(e,n);if(t.parent){if(Wg(t.root,s.root))return void this.move(wt._createOn(t),s);if(t.root.document)throw new W("model-writer-insert-forbidden-move",this);this.remove(t)}const h=new Je(s,t,s.root.document?s.root.document.version:null);if(t instanceof _e&&(h.shouldReceiveAttributes=!0),this.batch.addOperation(h),this.model.applyOperation(h),t instanceof Rn)for(const[p,b]of t.markers){const A=Dt._createAt(b.root,0),C={range:new wt(b.start._getCombined(A,s),b.end._getCombined(A,s)),usingOperation:!0,affectsData:!0};this.model.markers.has(p)?this.updateMarker(p,C):this.addMarker(p,C)}}insertText(t,e,n,s){e instanceof Rn||e instanceof me||e instanceof Dt?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,s)}insertElement(t,e,n,s){e instanceof Rn||e instanceof me||e instanceof Dt?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,s)}append(t,e){this.insert(t,e,"end")}appendText(t,e,n){e instanceof Rn||e instanceof me?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}appendElement(t,e,n){e instanceof Rn||e instanceof me?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof wt){const s=n.getMinimalFlatRanges();for(const l of s)Hg(this,t,e,l)}else Gg(this,t,e,n)}setAttributes(t,e){for(const[n,s]of ri(t))this.setAttribute(n,s,e)}removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof wt){const n=e.getMinimalFlatRanges();for(const s of n)Hg(this,t,null,s)}else Gg(this,t,null,e)}clearAttributes(t){this._assertWriterUsedCorrectly();const e=n=>{for(const s of n.getAttributeKeys())this.removeAttribute(s,n)};if(t instanceof wt)for(const n of t.getItems())e(n);else e(t)}move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof wt))throw new W("writer-move-invalid-range",this);if(!t.isFlat)throw new W("writer-move-range-not-flat",this);const s=Dt._createAt(e,n);if(s.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!Wg(t.root,s.root))throw new W("writer-move-different-document",this);const h=new ge(t.start,t.end.offset-t.start.offset,s,t.root.document?t.root.document.version:null);this.batch.addOperation(h),this.model.applyOperation(h)}remove(t){this._assertWriterUsedCorrectly();const e=(t instanceof wt?t:wt._createOn(t)).getMinimalFlatRanges().reverse();for(const n of e)this._addOperationForAffectedMarkers("move",n),K_(n.start,n.end.offset-n.start.offset,this.batch,this.model)}merge(t){this._assertWriterUsedCorrectly();const e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof me))throw new W("writer-merge-no-element-before",this);if(!(n instanceof me))throw new W("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n)}createPositionAt(t,e){return this.model.createPositionAt(t,e)}createPositionAfter(t){return this.model.createPositionAfter(t)}createPositionBefore(t){return this.model.createPositionBefore(t)}createRange(t,e){return this.model.createRange(t,e)}createRangeIn(t){return this.model.createRangeIn(t)}createRangeOn(t){return this.model.createRangeOn(t)}createSelection(...t){return this.model.createSelection(...t)}_mergeDetached(t){const e=t.nodeBefore,n=t.nodeAfter;this.move(wt._createIn(n),Dt._createAt(e,"end")),this.remove(n)}_merge(t){const e=Dt._createAt(t.nodeBefore,"end"),n=Dt._createAt(t.nodeAfter,0),l=new Dt(t.root.document.graveyard,[0]),p=new Be(n,t.nodeAfter.maxOffset,e,l,t.root.document.version);this.batch.addOperation(p),this.model.applyOperation(p)}rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof me))throw new W("writer-rename-not-element-instance",this);const n=t.root.document?t.root.document.version:null,s=new wi(Dt._createBefore(t),t.name,e,n);this.batch.addOperation(s),this.model.applyOperation(s)}split(t,e){this._assertWriterUsedCorrectly();let n,s,l=t.parent;if(!l.parent)throw new W("writer-split-element-no-parent",this);if(e||(e=l.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new W("writer-split-invalid-limit-element",this);do{const h=l.root.document?l.root.document.version:null,p=l.maxOffset-t.offset,b=Se.getInsertionPosition(t),A=new Se(t,p,b,null,h);this.batch.addOperation(A),this.model.applyOperation(A),n||s||(n=l,s=t.parent.nextSibling),l=(t=this.createPositionAfter(t.parent)).parent}while(l!==e);return{position:t,range:new wt(Dt._createAt(n,"end"),Dt._createAt(s,0))}}wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new W("writer-wrap-range-not-flat",this);const n=e instanceof me?e:new me(e);if(n.childCount>0)throw new W("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new W("writer-wrap-element-attached",this);this.insert(n,t.start);const s=new wt(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(s,Dt._createAt(n,0))}unwrap(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new W("writer-unwrap-element-no-parent",this);this.move(wt._createIn(t),this.createPositionAfter(t)),this.remove(t)}addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new W("writer-addmarker-no-usingoperation",this);const n=e.usingOperation,s=e.range,l=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new W("writer-addmarker-marker-exists",this);if(!s)throw new W("writer-addmarker-no-range",this);return n?(ka(this,t,null,s,l),this.model.markers.get(t)):this.model.markers._set(t,s,n,l)}updateMarker(t,e){this._assertWriterUsedCorrectly();const n="string"==typeof t?t:t.name,s=this.model.markers.get(n);if(!s)throw new W("writer-updatemarker-marker-not-exists",this);if(!e)return kt("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(s);const l="boolean"==typeof e.usingOperation,h="boolean"==typeof e.affectsData,p=h?e.affectsData:s.affectsData;if(!l&&!e.range&&!h)throw new W("writer-updatemarker-wrong-options",this);const b=s.getRange(),A=e.range?e.range:b;l&&e.usingOperation!==s.managedUsingOperations?e.usingOperation?ka(this,n,null,A,p):(ka(this,n,b,null,p),this.model.markers._set(n,A,void 0,p)):s.managedUsingOperations?ka(this,n,b,A,p):this.model.markers._set(n,A,void 0,p)}removeMarker(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new W("writer-removemarker-no-marker",this);const n=this.model.markers.get(e);n.managedUsingOperations?ka(this,e,n.getRange(),null,n.affectsData):this.model.markers._remove(e)}addRoot(t,e="$root"){this._assertWriterUsedCorrectly();const n=this.model.document.getRoot(t);if(n&&n.isAttached())throw new W("writer-addroot-root-exists",this);const s=this.model.document,l=new mn(t,e,!0,s,s.version);return this.batch.addOperation(l),this.model.applyOperation(l),this.model.document.getRoot(t)}detachRoot(t){this._assertWriterUsedCorrectly();const e="string"==typeof t?this.model.document.getRoot(t):t;if(!e||!e.isAttached())throw new W("writer-detachroot-no-root",this);for(const l of this.model.markers)l.getRange().root===e&&this.removeMarker(l);for(const l of e.getAttributeKeys())this.removeAttribute(l,e);this.remove(this.createRangeIn(e));const n=this.model.document,s=new mn(e.rootName,e.name,!1,n,n.version);this.batch.addOperation(s),this.model.applyOperation(s)}setSelection(...t){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...t)}setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else for(const[n,s]of ri(t))this._setSelectionAttribute(n,s)}removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else for(const e of t)this._removeSelectionAttribute(e)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t)}_setSelectionAttribute(t,e){const n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){const s=rn._getStoreAttributeKey(t);this.setAttribute(s,e,n.anchor.parent)}n._setAttribute(t,e)}_removeSelectionAttribute(t){const e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){const n=rn._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new W("writer-incorrect-use",this)}_addOperationForAffectedMarkers(t,e){for(const n of this.model.markers){if(!n.managedUsingOperations)continue;const s=n.getRange();let l=!1;if("move"===t){const h=e;l=h.containsPosition(s.start)||h.start.isEqual(s.start)||h.containsPosition(s.end)||h.end.isEqual(s.end)}else{const b=e.nodeAfter;l=s.start.parent==e.nodeBefore&&s.start.isAtEnd||s.end.parent==b&&0==s.end.offset||s.end.nodeAfter==b||s.start.nodeAfter==b}l&&this.updateMarker(n.name,{range:s})}}}function Hg(r,t,e,n){const s=r.model,l=s.document;let h,p,b,A=n.start;for(const E of n.getWalker({shallow:!0}))b=E.item.getAttribute(t),h&&p!=b&&(p!=e&&C(),A=h),h=E.nextPosition,p=b;function C(){const E=new wt(A,h),F=new Ue(E,t,p,e,E.root.document?l.version:null);r.batch.addOperation(F),s.applyOperation(F)}h instanceof Dt&&h!=A&&p!=e&&C()}function Gg(r,t,e,n){const s=r.model,l=s.document,h=n.getAttribute(t);let p,b;h!=e&&(n.root===n?b=new zn(n,t,h,e,n.document?l.version:null):(p=new wt(Dt._createBefore(n),r.createPositionAfter(n)),b=new Ue(p,t,h,e,p.root.document?l.version:null)),r.batch.addOperation(b),s.applyOperation(b))}function ka(r,t,e,n,s){const l=r.model,p=new _i(t,e,n,l.markers,!!s,l.document.version);r.batch.addOperation(p),l.applyOperation(p)}function K_(r,t,e,n){let s;if(r.root.document){const l=n.document,h=new Dt(l.graveyard,[0]);s=new ge(r,t,h,l.version)}else s=new Q_(r,t);e.addOperation(s),n.applyOperation(s)}function Wg(r,t){return r===t||r instanceof Ic&&t instanceof Ic}function J_(r,t,e={}){if(t.isCollapsed)return;const n=t.getFirstRange();if("$graveyard"==n.root.rootName)return;const s=r.schema;r.change(l=>{if(!e.doNotResetEntireContent&&function(A,C){const E=A.getLimitElement(C);if(!C.containsEntireContent(E))return!1;const P=C.getFirstRange();return P.start.parent!=P.end.parent&&A.checkChild(E,"paragraph")}(s,t))return void function(A,C){const E=A.model.schema.getLimitElement(C);A.remove(A.createRangeIn(E)),Kg(A,A.createPositionAt(E,0),C)}(l,t);const h={};if(!e.doNotAutoparagraph){const A=t.getSelectedElement();A&&Object.assign(h,s.getAttributesWithProperty(A,"copyOnReplace",!0))}const[p,b]=function(A){const C=A.root.document.model,E=A.start;let P=A.end;if(C.hasContent(A,{ignoreMarkers:!0})){const F=function(j){const Y=j.parent,$=Y.root.document.model.schema,st=Y.getAncestors({parentFirst:!0,includeSelf:!0});for(const ft of st){if($.isLimit(ft))return null;if($.isBlock(ft))return ft}}(P);if(F&&P.isTouching(C.createPositionAt(F,0))){const j=C.createSelection(A);C.modifySelection(j,{direction:"backward"});const Y=j.getLastPosition(),$=C.createRange(Y,P);C.hasContent($,{ignoreMarkers:!0})||(P=Y)}}return[ii.fromPosition(E,"toPrevious"),ii.fromPosition(P,"toNext")]}(n);p.isTouching(b)||l.remove(l.createRange(p,b)),e.leaveUnmerged||(function(A,C,E){const P=A.model;if(!Iu(A.model.schema,C,E))return;const[F,j]=function(Y,$){const st=Y.getAncestors(),ft=$.getAncestors();let At=0;for(;st[At]&&st[At]==ft[At];)At++;return[st[At],ft[At]]}(C,E);!F||!j||(!P.hasContent(F,{ignoreMarkers:!0})&&P.hasContent(j,{ignoreMarkers:!0})?Xg(A,C,E,F.parent):Qg(A,C,E,F.parent))}(l,p,b),s.removeDisallowedAttributes(p.parent.getChildren(),l)),Jg(l,t,p),!e.doNotAutoparagraph&&function(A,C){const E=A.checkChild(C,"$text"),P=A.checkChild(C,"paragraph");return!E&&P}(s,p)&&Kg(l,p,t,h),p.detach(),b.detach()})}function Qg(r,t,e,n){const s=t.parent,l=e.parent;if(s!=n&&l!=n){for(t=r.createPositionAfter(s),(e=r.createPositionBefore(l)).isEqual(t)||r.insert(l,t),r.merge(t);e.parent.isEmpty;){const h=e.parent;e=r.createPositionBefore(h),r.remove(h)}Iu(r.model.schema,t,e)&&Qg(r,t,e,n)}}function Xg(r,t,e,n){const s=t.parent,l=e.parent;if(s!=n&&l!=n){for(t=r.createPositionAfter(s),(e=r.createPositionBefore(l)).isEqual(t)||r.insert(s,e);t.parent.isEmpty;){const h=t.parent;t=r.createPositionBefore(h),r.remove(h)}e=r.createPositionBefore(l),function(h,p){const b=p.nodeBefore,A=p.nodeAfter;b.name!=A.name&&h.rename(b,A.name),h.clearAttributes(b),h.setAttributes(Object.fromEntries(A.getAttributes()),b),h.merge(p)}(r,e),Iu(r.model.schema,t,e)&&Xg(r,t,e,n)}}function Iu(r,t,e){const n=t.parent,s=e.parent;return n!=s&&!r.isLimit(n)&&!r.isLimit(s)&&function(l,h,p){const b=new wt(l,h);for(const A of b.getWalker())if(p.isLimit(A.item))return!1;return!0}(t,e,r)}function Kg(r,t,e,n={}){const s=r.createElement("paragraph");r.model.schema.setAllowedAttributes(s,n,r),r.insert(s,t),Jg(r,e,r.createPositionAt(s,0))}function Jg(r,t,e){t instanceof rn?r.setSelection(e):t.setTo(e)}function $g(r,t){const e=[];Array.from(r.getItems({direction:"backward"})).map(n=>t.createRangeOn(n)).filter(n=>(n.start.isAfter(r.start)||n.start.isEqual(r.start))&&(n.end.isBefore(r.end)||n.end.isEqual(r.end))).forEach(n=>{e.push(n.start.parent),t.remove(n)}),e.forEach(n=>{let s=n;for(;s.parent&&s.isEmpty;){const l=t.createRangeOn(s);s=s.parent,t.remove(l)}})}class $_{constructor(t,e,n){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=e.createDocumentFragment(),this._documentFragmentPosition=e.createPositionAt(this._documentFragment,0)}handleNodes(t){for(const e of Array.from(t))this._handleNode(e);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(t){const e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new W("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?wt._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new wt(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(t){if(this.schema.isObject(t))return void this._handleObject(t);let e=this._checkAndAutoParagraphToAllowedPosition(t);e||(e=this._checkAndSplitToAllowedPosition(t),e)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this._handleDisallowedNode(t)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const t=ii.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach()}_handleObject(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}_handleDisallowedNode(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}_appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new W("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this._nodeToSelect=this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?t:null,this._filterAttributesOf.push(t)}_setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=ii.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=ii.fromPosition(t,"toNext"))}_mergeOnLeft(){const t=this._firstNode;if(!(t instanceof me&&this._canMergeLeft(t)))return;const e=ii._createBefore(t);e.stickiness="toNext";const n=ii.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=ii._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=ii._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_mergeOnRight(){const t=this._lastNode;if(!(t instanceof me&&this._canMergeRight(t)))return;const e=ii._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new W("insertcontent-invalid-insertion-position",this);this.position=Dt._createAt(e.nodeBefore,"end");const n=ii.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=ii._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=ii._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}_canMergeLeft(t){const e=t.previousSibling;return e instanceof me&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}_canMergeRight(t){const e=t.nextSibling;return e instanceof me&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}_tryAutoparagraphing(t){const e=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,e)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e))}_checkAndAutoParagraphToAllowedPosition(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();const e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0}_checkAndSplitToAllowedPosition(t){const e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){const n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===e&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const n=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=n,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}function tm(r,t,e="auto"){const n=r.getSelectedElement();if(n&&t.schema.isObject(n)&&!t.schema.isInline(n))return"before"==e||"after"==e?t.createRange(t.createPositionAt(n,e)):t.createRangeOn(n);const s=Oe(r.getSelectedBlocks());if(!s)return t.createRange(r.focus);if(s.isEmpty)return t.createRange(t.createPositionAt(s,0));const l=t.createPositionAfter(s);return r.focus.isTouching(l)?t.createRange(l):t.createRange(t.createPositionBefore(s))}const ew=' ,.?!:;"-()';function iw(r,t){const{isForward:e,walker:n,unit:s,schema:l,treatEmojiAsSingleUnit:h}=r,{type:p,item:b,nextPosition:A}=t;if("text"==p)return"word"===r.unit?function(C,E){let P=C.position.textNode;for(P||(P=E?C.position.nodeAfter:C.position.nodeBefore);P&&P.is("$text");){const F=C.position.offset-P.startOffset;if(rw(P,F,E))P=E?C.position.nodeAfter:C.position.nodeBefore;else{if(ow(P.data,F,E))break;C.next()}}return C.position}(n,e):function(C,E,P){const F=C.position.textNode;if(F){const j=F.data;let Y=C.position.offset-F.startOffset;for(;Fs(j,Y)||"character"==E&&zs(j,Y)||P&&bl(j,Y);)C.next(),Y=C.position.offset-F.startOffset}return C.position}(n,s,h);if(p==(e?"elementStart":"elementEnd")){if(l.isSelectable(b))return Dt._createAt(b,e?"after":"before");if(l.checkChild(A,"$text"))return A}else{if(l.isLimit(b))return void n.skip(()=>!0);if(l.checkChild(A,"$text"))return A}}function nw(r,t){const n=Dt._createAt(r.root,t?"end":0);return t?new wt(r,n):new wt(n,r)}function ow(r,t,e){return ew.includes(r.charAt(t+(e?0:-1)))}function rw(r,t,e){return t===(e?r.offsetSize:0)}class sw extends(ne()){constructor(){super(),this.markers=new W_,this.document=new j_(this),this.schema=new t_,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(t=>this.decorate(t)),this.on("applyOperation",(t,e)=>{e[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((t,e)=>{if("$marker"===e.name)return!0}),function K0(r){r.document.registerPostFixer(t=>function(e,n){const s=n.document.selection,l=n.schema,h=[];let p=!1;for(const b of s.getRanges()){const A=vg(b,l);A&&!A.isEqual(b)?(h.push(A),p=!0):h.push(b)}return p&&e.setSelection(function(b){const A=[...b],C=new Set;let E=1;for(;E!C.has(F))}(h),{backward:s.isBackward}),!1}(t,r))}(this),this.document.registerPostFixer(cg),this.on("insertContent",(t,[e,n])=>{var s,l,h;t.return=(l=e,h=n,(s=this).change(p=>{const b=h||s.document.selection;b.isCollapsed||s.deleteContent(b,{doNotAutoparagraph:!0});const A=new $_(s,p,b.anchor),C=[];let E;if(l.is("documentFragment")){if(l.markers.size){const j=[];for(const[Y,$]of l.markers){const{start:st,end:ft}=$,At=st.isEqual(ft);j.push({position:st,name:Y,isCollapsed:At},{position:ft,name:Y,isCollapsed:At})}j.sort(({position:Y},{position:$})=>Y.isBefore($)?1:-1);for(const{position:Y,name:$,isCollapsed:st}of j){let ft=null,At=null;const Ft=Y.parent===l&&Y.isAtStart;Ft||Y.parent===l&&Y.isAtEnd?st&&(At=Ft?"start":"end"):(ft=p.createElement("$marker"),p.insert(ft,Y)),C.push({name:$,element:ft,collapsed:At})}}E=l.getChildren()}else E=[l];A.handleNodes(E);let P=A.getSelectionRange();if(l.is("documentFragment")&&C.length){const j=P?Ni.fromRange(P):null,Y={};for(let $=C.length-1;$>=0;$--){const{name:st,element:ft,collapsed:At}=C[$],Ft=!Y[st];if(Ft&&(Y[st]=[]),ft){const jt=p.createPositionAt(ft,"before");Y[st].push(jt),p.remove(ft)}else{const jt=A.getAffectedRange();if(!jt){At&&Y[st].push(A.position);continue}Y[st].push(At?jt[At]:Ft?jt.start:jt.end)}}for(const[$,[st,ft]]of Object.entries(Y))st&&ft&&st.root===ft.root&&p.addMarker($,{usingOperation:!0,affectsData:!0,range:new wt(st,ft)});j&&(P=j.toRange(),j.detach())}P&&(b instanceof rn?p.setSelection(P):b.setTo(P));const F=A.getAffectedRange()||s.createRange(b.anchor);return A.destroy(),F}))}),this.on("insertObject",(t,[e,n,s])=>{t.return=function tw(r,t,e,n={}){if(!r.schema.isObject(t))throw new W("insertobject-element-not-an-object",r,{object:t});const s=e||r.document.selection;let l=s;n.findOptimalPosition&&r.schema.isBlock(t)&&(l=r.createSelection(tm(s,r,n.findOptimalPosition)));const h=Oe(s.getSelectedBlocks()),p={};return h&&Object.assign(p,r.schema.getAttributesWithProperty(h,"copyOnReplace",!0)),r.change(b=>{l.isCollapsed||r.deleteContent(l,{doNotAutoparagraph:!0});let A=t;const C=l.anchor.parent;!r.schema.checkChild(C,t)&&r.schema.checkChild(C,"paragraph")&&r.schema.checkChild("paragraph",t)&&(A=b.createElement("paragraph"),b.insert(t,A)),r.schema.setAllowedAttributes(A,p,b);const E=r.insertContent(A,l);return E.isCollapsed||n.setSelection&&function(P,F,j,Y){const $=P.model;if("on"==j)return void P.setSelection(F,"on");if("after"!=j)throw new W("insertobject-invalid-place-parameter-value",$);let st=F.nextSibling;$.schema.isInline(F)?P.setSelection(F,"after"):(!(st&&$.schema.checkChild(st,"$text"))&&$.schema.checkChild(F.parent,"paragraph")&&(st=P.createElement("paragraph"),$.schema.setAllowedAttributes(st,Y,P),$.insertContent(st,P.createPositionAfter(F))),st&&P.setSelection(st,0))}(b,t,n.setSelection,p),E})}(this,e,n,s)}),this.on("canEditAt",t=>{const e=!this.document.isReadOnly;t.return=e,e||t.stop()})}change(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Yr,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(e){W.rethrowUnexpectedError(e,this)}}enqueueChange(t,e){try{t?"function"==typeof t?(e=t,t=new Yr):t instanceof Yr||(t=new Yr(t)):t=new Yr,this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(n){W.rethrowUnexpectedError(n,this)}}applyOperation(t){t._execute()}insertContent(t,e,n,...s){const l=Du(e,n);return this.fire("insertContent",[t,l,n,...s])}insertObject(t,e,n,s,...l){const h=Du(e,n);return this.fire("insertObject",[t,h,s,s,...l])}deleteContent(t,e){J_(this,t,e)}modifySelection(t,e){!function(n,s,l={}){const h=n.schema,p="backward"!=l.direction,b=l.unit?l.unit:"character",A=!!l.treatEmojiAsSingleUnit,E=new Li({boundaries:nw(s.focus,p),singleCharacters:!0,direction:p?"forward":"backward"}),P={walker:E,schema:h,isForward:p,unit:b,treatEmojiAsSingleUnit:A};let F;for(;F=E.next();){if(F.done)return;const j=iw(P,F.value);if(j)return void(s instanceof rn?n.change(Y=>{Y.setSelectionFocus(j)}):s.setFocus(j))}}(this,t,e)}getSelectedContent(t){return n=t,this.change(s=>{const l=s.createDocumentFragment(),h=n.getFirstRange();if(!h||h.isCollapsed)return l;const p=h.start.root,b=h.start.getCommonPath(h.end),A=p.getNodeByPath(b);let C;C=h.start.parent==h.end.parent?h:s.createRange(s.createPositionAt(A,h.start.path[b.length]),s.createPositionAt(A,h.end.path[b.length]+1));const E=C.end.offset-C.start.offset;for(const P of C.getItems({shallow:!0}))P.is("$textProxy")?s.appendText(P.data,P.getAttributes(),l):s.append(s.cloneElement(P,!0),l);if(C!=h){const P=h._getTransformedByMove(C.start,s.createPositionAt(l,0),E)[0],F=s.createRange(s.createPositionAt(l,0),P.start);$g(s.createRange(P.end,s.createPositionAt(l,"end")),s),$g(F,s)}return l});var n}hasContent(t,e={}){const n=t instanceof wt?t:wt._createIn(t);if(n.isCollapsed)return!1;const{ignoreWhitespaces:s=!1,ignoreMarkers:l=!1}=e;if(!l)for(const h of this.markers.getMarkersIntersectingRange(n))if(h.affectsData)return!0;for(const h of n.getItems())if(this.schema.isContent(h)&&(!h.is("$textProxy")||!s||-1!==h.data.search(/\S/)))return!0;return!1}canEditAt(t){const e=Du(t);return this.fire("canEditAt",[e])}createPositionFromPath(t,e,n){return new Dt(t,e,n)}createPositionAt(t,e){return Dt._createAt(t,e)}createPositionAfter(t){return Dt._createAfter(t)}createPositionBefore(t){return Dt._createBefore(t)}createRange(t,e){return new wt(t,e)}createRangeIn(t){return wt._createIn(t)}createRangeOn(t){return wt._createOn(t)}createSelection(...t){return new Pi(...t)}createBatch(t){return new Yr(t)}createOperationFromJSON(t){return A_.fromJSON(t,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){this._currentWriter=new X_(this,this._pendingChanges[0].batch);const n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return t}}function Du(r,t){if(r)return r instanceof Pi||r instanceof rn?r:r instanceof Bn?t||0===t?new Pi(r,t):r.is("rootElement")?new Pi(r,"in"):new Pi(r,"on"):new Pi(r)}class aw extends un{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(t){this.fire(t.type,t)}}class Mu extends un{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(t){this.fire(t.type,t)}}class ko{constructor(t){this.document=t}createDocumentFragment(t){return new fo(this.document,t)}createElement(t,e,n){return new hi(this.document,t,e,n)}createText(t){return new ke(this.document,t)}clone(t,e=!1){return t._clone(e)}appendChild(t,e){return e._appendChild(t)}insertChild(t,e,n){return n._insertChild(t,e)}removeChildren(t,e,n){return n._removeChildren(t,e)}remove(t){const e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}replace(t,e){const n=t.parent;if(n){const s=n.getChildIndex(t);return this.removeChildren(s,1,n),this.insertChild(s,e,n),!0}return!1}unwrapElement(t){const e=t.parent;if(e){const n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}rename(t,e){const n=new hi(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}setAttribute(t,e,n){n._setAttribute(t,e)}removeAttribute(t,e){e._removeAttribute(t)}addClass(t,e){e._addClass(t)}removeClass(t,e){e._removeClass(t)}setStyle(t,e,n){Ie(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e)}removeStyle(t,e){e._removeStyle(t)}setCustomProperty(t,e,n){n._setCustomProperty(t,e)}removeCustomProperty(t,e){return e._removeCustomProperty(t)}createPositionAt(t,e){return Bt._createAt(t,e)}createPositionAfter(t){return Bt._createAfter(t)}createPositionBefore(t){return Bt._createBefore(t)}createRange(t,e){return new Gt(t,e)}createRangeOn(t){return Gt._createOn(t)}createRangeIn(t){return Gt._createIn(t)}createSelection(...t){return new Ii(...t)}}class lw{constructor(){this._commands=new Map}add(t,e){this._commands.set(t,e)}get(t){return this._commands.get(t)}execute(t,...e){const n=this.get(t);if(!n)throw new W("commandcollection-command-not-found",this,{commandName:t});return n.execute(...e)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const t of this.commands())t.destroy()}}class cw extends(ne()){constructor(t={}){super();const e=this.constructor;this._context=t.context||new Yl({language:t.language||e.defaultConfig&&e.defaultConfig.language}),this._context._addEditor(this,!t.context);const s=Array.from(e.builtinPlugins||[]);this.config=new $a(t,e.defaultConfig),this.config.define("plugins",s),this.config.define(this._context._getEditorConfig()),this.plugins=new ql(this,s,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new lw,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new sw,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const l=new Rh;this.data=new __(this.model,l),this.editing=new J0(this.model,l),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new w_([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new ah(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(t){throw new W("editor-isreadonly-has-no-setter")}enableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new W("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)||(this._readOnlyLocks.add(t),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=typeof t)throw new W("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)&&(this._readOnlyLocks.delete(t),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],s=t.get("extraPlugins")||[],l=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(s),n,l)}destroy(){let t=Promise.resolve();return"initializing"==this.state&&(t=new Promise(e=>this.once("ready",e))),t.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(t,...e){try{return this.commands.execute(t,...e)}catch(n){W.rethrowUnexpectedError(n,this)}}focus(){this.editing.view.focus()}static create(...t){throw new Error("This is an abstract method.")}}function Dc(r){return class extends r{setData(t){this.data.set(t)}getData(t){return this.data.get(t)}}}{const r=Dc(Object);Dc.setData=r.prototype.setData,Dc.getData=r.prototype.getData}function Lu(r){return class extends r{updateSourceElement(t){if(!this.sourceElement)throw new W("editor-missing-sourceelement",this);const e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;if(!e&&!n)return void al(this.sourceElement,"");const s="string"==typeof t?t:this.data.get();al(this.sourceElement,s)}}}Lu.updateSourceElement=Lu(Object).prototype.updateSourceElement;class em extends Er{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new di({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(t){if("string"!=typeof t)throw new W("pendingactions-add-invalid-message",this);const e=new(ne());return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const Ae={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',history:'',image:'',imageUpload:'',imageAssetManager:'',imageUrl:'',lowVision:'\n',textAlternative:'',loupe:'',importExport:'',paragraph:'',plus:'',text:'',alignBottom:'',alignMiddle:'',alignTop:'',alignLeft:'',alignCenter:'',alignRight:'',alignJustify:'',objectLeft:'',objectCenter:'',objectRight:'',objectFullWidth:'',objectInline:'',objectBlockLeft:'',objectBlockRight:'',objectSizeFull:'',objectSizeLarge:'',objectSizeSmall:'',objectSizeMedium:'',pencil:'',pilcrow:'',quote:'',threeVerticalDots:'',dragIndicator:''};var im=lt(5542);Rt()(im.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const{threeVerticalDots:nm}=Ae,hw={alignLeft:Ae.alignLeft,bold:Ae.bold,importExport:Ae.importExport,paragraph:Ae.paragraph,plus:Ae.plus,text:Ae.text,threeVerticalDots:Ae.threeVerticalDots,pilcrow:Ae.pilcrow,dragIndicator:Ae.dragIndicator};class Pu extends Wt{constructor(t,e){super(t);const n=this.bindTemplate,s=this.t;this.options=e||{},this.set("ariaLabel",s("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new Ye,this.keystrokes=new vi,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new uw(t),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const l="rtl"===t.uiLanguageDirection;this._focusCycler=new en({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[l?"arrowright":"arrowleft","arrowup"],focusNext:[l?"arrowleft":"arrowright","arrowdown"]}});const h=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var p;this.options.shouldGroupWhenFull&&this.options.isFloating&&h.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:h,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(p=this,p.bindTemplate.to(b=>{b.target===p.element&&b.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new gw(this):new pw(this)}render(){super.render(),this.focusTracker.add(this.element);for(const t of this.items)this.focusTracker.add(t.element);this.items.on("add",(t,e)=>{this.focusTracker.add(e.element)}),this.items.on("remove",(t,e)=>{this.focusTracker.remove(e.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(t,e,n){this.items.addMany(this._buildItemsFromConfig(t,e,n))}_buildItemsFromConfig(t,e,n){const s=Zl(t),l=n||s.removeItems;return this._cleanItemsConfiguration(s.items,e,l).map(h=>te(h)?this._createNestedToolbarDropdown(h,e,l):"|"===h?new Bl:"-"===h?new nh:e.create(h)).filter(h=>!!h)}_cleanItemsConfiguration(t,e,n){const s=t.filter((l,h,p)=>"|"===l||-1===n.indexOf(l)&&("-"===l?!this.options.shouldGroupWhenFull||(kt("toolbarview-line-break-ignored-when-grouping-items",p),!1):!(!te(l)&&!e.has(l)&&(kt("toolbarview-item-unavailable",{item:l}),1))));return this._cleanSeparatorsAndLineBreaks(s)}_cleanSeparatorsAndLineBreaks(t){const e=h=>"-"!==h&&"|"!==h,n=t.length,s=t.findIndex(e);if(-1===s)return[];const l=n-t.slice().reverse().findIndex(e);return t.slice(s,l).filter((h,p,b)=>!!e(h)||!(p>0&&b[p-1]===h))}_createNestedToolbarDropdown(t,e,n){let{label:s,icon:l,items:h,tooltip:p=!0,withText:b=!1}=t;if(h=this._cleanItemsConfiguration(h,e,n),!h.length)return null;const A=Zn(this.locale);return s||kt("toolbarview-nested-toolbar-dropdown-missing-label",t),A.class="ck-toolbar__nested-toolbar-dropdown",A.buttonView.set({label:s,tooltip:p,withText:!!b}),!1!==l?A.buttonView.icon=hw[l]||l||nm:A.buttonView.withText=!0,Ou(A,()=>A.toolbarView._buildItemsFromConfig(h,e,n)),A}}class uw extends Wt{constructor(t){super(t),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class pw{constructor(t){const e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using(n=>n),t.focusables.bindTo(t.items).using(n=>n),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class gw{constructor(t){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),t.itemsView.children.bindTo(this.ungroupedItems).using(e=>e),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),t.children.on("change",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(e,n)=>{const s=n.index,l=Array.from(n.added);for(const h of n.removed)s>=this.ungroupedItems.length?this.groupedItems.remove(h):this.ungroupedItems.remove(h);for(let h=s;hthis.ungroupedItems.length?this.groupedItems.add(p,h-this.ungroupedItems.length):this.ungroupedItems.add(p,h)}this._updateGrouping()}),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!In(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const t=this.groupedItems.length;let e;for(;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new le(t.lastChild),s=new le(t);if(!this.cachedPadding){const l=Yt.window.getComputedStyle(t);this.cachedPadding=Number.parseInt(l["ltr"===e?"paddingRight":"paddingLeft"])}return"ltr"===e?n.right>s.right-this.cachedPadding:n.left{t&&t===e.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),t=e.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(t){t.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Bl),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const t=this.viewLocale,e=t.t,n=Zn(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",Ou(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:nm}),n}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(t=>{this.viewFocusables.add(t)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class Nu extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",e.if("isVisible","ck-hidden",n=>!n)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class om extends Wt{constructor(t){super(t),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}class Mc extends Wt{constructor(t,e=new js){super(t);const n=this.bindTemplate,s=new sm(t);this.set({label:"",isVisible:!0}),this.labelView=e,this.labelView.bind("text").to(this,"label"),this.children=this.createCollection(),this.children.addMany([this.labelView,s]),s.set({role:"group",ariaLabelledBy:e.id}),s.focusTracker.destroy(),s.keystrokes.destroy(),this.items=s.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",n.if("isVisible","ck-hidden",l=>!l)]},children:this.children})}focus(){if(this.items){const t=this.items.find(e=>!(e instanceof om));t&&t.focus()}}}var rm=lt(1046);Rt()(rm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class sm extends Wt{constructor(t){super(t),this._listItemGroupToChangeListeners=new WeakMap;const e=this.bindTemplate;this.focusables=new Ri,this.items=this.createCollection(),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusCycler=new en({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:e.to("role"),"aria-label":e.to("ariaLabel"),"aria-labelledby":e.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const t of this.items)t instanceof Mc?this._registerFocusableItemsGroup(t):t instanceof Nu&&this._registerFocusableListItem(t);this.items.on("change",(t,e)=>{for(const n of e.removed)n instanceof Mc?this._deregisterFocusableItemsGroup(n):this._deregisterFocusableListItem(n);for(const n of Array.from(e.added).reverse())n instanceof Mc?this._registerFocusableItemsGroup(n,e.index):this._registerFocusableListItem(n,e.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(t,e){this.focusTracker.add(t.element),this.focusables.add(t,e)}_deregisterFocusableListItem(t){this.focusTracker.remove(t.element),this.focusables.remove(t)}_getOnGroupItemsChangeCallback(t){return(e,n)=>{for(const s of n.removed)this._deregisterFocusableListItem(s);for(const s of Array.from(n.added).reverse())this._registerFocusableListItem(s,this.items.getIndex(t)+n.index)}}_registerFocusableItemsGroup(t,e){Array.from(t.items).forEach((s,l)=>{this._registerFocusableListItem(s,void 0!==e?e+l:void 0)});const n=this._getOnGroupItemsChangeCallback(t);this._listItemGroupToChangeListeners.set(t,n),t.items.on("change",n)}_deregisterFocusableItemsGroup(t){for(const e of t.items)this._deregisterFocusableListItem(e);t.items.off("change",this._listItemGroupToChangeListeners.get(t)),this._listItemGroupToChangeListeners.delete(t)}}var am=lt(7686);Rt()(am.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Lc extends Wt{constructor(t,e){super(t);const n=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(e),this.arrowView=this._createArrowView(),this.keystrokes=new vi,this.focusTracker=new Ye,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",n.to("class"),n.if("isVisible","ck-hidden",s=>!s),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(t,e)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),e())}),this.keystrokes.set("arrowleft",(t,e)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),e())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(t){const e=t||new ve;return t||e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}_createArrowView(){const t=new ve,e=t.bindTemplate;return t.icon=Qs,t.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":e.to("isOn"),"aria-haspopup":!0,"aria-expanded":e.to("isOn",n=>String(n))}}),t.bind("isEnabled").to(this),t.bind("label").to(this),t.bind("tooltip").to(this),t.delegate("execute").to(this,"open"),t}}var lm=lt(7339);Rt()(lm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var cm=lt(3949);function Zn(r,t=ih){const e="function"==typeof t?new t(r):t,n=new eh(r),s=new Ws(r,e,n);return e.bind("isEnabled").to(s),e instanceof Lc?e.arrowView.bind("isOn").to(s,"isOpen"):e.bind("isOn").to(s,"isOpen"),(h=l=s).on("render",()=>{et({emitter:h,activator:()=>h.isOpen,callback:()=>{h.isOpen=!1},contextElements:()=>[h.element,...h.focusTracker._elements]})}),function(h){h.on("execute",p=>{p.source instanceof xr||(h.isOpen=!1)})}(l),function(h){h.focusTracker.on("change:isFocused",(p,b,A)=>{h.isOpen&&!A&&(h.isOpen=!1)})}(l),function(h){h.keystrokes.set("arrowdown",(p,b)=>{h.isOpen&&(h.panelView.focus(),b())}),h.keystrokes.set("arrowup",(p,b)=>{h.isOpen&&(h.panelView.focusLast(),b())})}(l),function(h){h.on("change:isOpen",(p,b,A)=>{if(A)return;const C=h.panelView.element;C&&C.contains(Yt.document.activeElement)&&h.buttonView.focus()})}(l),function(h){h.on("change:isOpen",(p,b,A)=>{A&&h.panelView.focus()},{priority:"low"})}(l),s;var l,h}function Ou(r,t,e={}){r.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),r.isOpen?dm(r,t,e):r.once("change:isOpen",()=>dm(r,t,e),{priority:"highest"}),e.enableActiveItemFocusOnDropdownOpen&&pm(r,()=>r.toolbarView.items.find(n=>n.isOn))}function dm(r,t,e){const n=r.locale,s=n.t,l=r.toolbarView=new Pu(n),h="function"==typeof t?t():t;l.ariaLabel=e.ariaLabel||s("Dropdown toolbar"),e.maxWidth&&(l.maxWidth=e.maxWidth),e.class&&(l.class=e.class),e.isCompact&&(l.isCompact=e.isCompact),e.isVertical&&(l.isVertical=!0),h instanceof Ri?l.items.bindTo(h).using(p=>p):l.items.addMany(h),r.panelView.children.add(l),l.items.delegate("execute").to(r)}function hm(r,t,e={}){r.isOpen?um(r,t,e):r.once("change:isOpen",()=>um(r,t,e),{priority:"highest"}),pm(r,()=>r.listView.items.find(n=>n instanceof Nu&&n.children.first.isOn))}function um(r,t,e){const n=r.locale,s=r.listView=new sm(n),l="function"==typeof t?t():t;s.ariaLabel=e.ariaLabel,s.role=e.role,gm(r,s.items,l,n),r.panelView.children.add(s),s.items.delegate("execute").to(r)}function pm(r,t){r.on("change:isOpen",()=>{if(!r.isOpen)return;const e=t();e&&("function"==typeof e.focus?e.focus():kt("ui-dropdown-focus-child-on-open-child-missing-focus",{view:e}))},{priority:It.low-10})}function gm(r,t,e,n){t.bindTo(e).using(s=>{if("separator"===s.type)return new om(n);if("group"===s.type){const l=new Mc(n);return l.set({label:s.label}),gm(r,l.items,s.items,n),l.items.delegate("execute").to(r),l}if("button"===s.type||"switchbutton"===s.type){const l=new Nu(n);let h;return"button"===s.type?(h=new ve(n),h.extendTemplate({attributes:{"aria-checked":h.bindTemplate.to("isOn")}})):h=new xr(n),h.bind(...Object.keys(s.model)).to(s.model),h.delegate("execute").to(l),l.children.add(h),l}return null})}Rt()(cm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Pc=(r,t,e)=>{const n=new th(r.locale);return n.set({id:t,ariaDescribedById:e}),n.bind("isReadOnly").to(r,"isEnabled",s=>!s),n.bind("hasError").to(r,"errorText",s=>!!s),n.on("input",()=>{r.errorText=null}),r.bind("isEmpty","isFocused","placeholder").to(n),n},_a=(r,t=0,e=1)=>r>e?e:rMath.round(e*r)/e,Bu=r=>("#"===r[0]&&(r=r.substring(1)),r.length<6?{r:parseInt(r[0]+r[0],16),g:parseInt(r[1]+r[1],16),b:parseInt(r[2]+r[2],16),a:4===r.length?ni(parseInt(r[3]+r[3],16)/255,2):1}:{r:parseInt(r.substring(0,2),16),g:parseInt(r.substring(2,4),16),b:parseInt(r.substring(4,6),16),a:8===r.length?ni(parseInt(r.substring(6,8),16)/255,2):1}),Fu=r=>{const{h:t,s:e,l:n}=(({h:r,s:t,v:e,a:n})=>{const s=(200-t)*e/100;return{h:ni(r),s:ni(s>0&&s<200?t*e/100/(s<=100?s:200-s)*100:0),l:ni(s/2),a:ni(n,2)}})(r);return`hsl(${t}, ${e}%, ${n}%)`},Nc=r=>{const t=r.toString(16);return t.length<2?"0"+t:t},mm=(r,t)=>{if(r===t)return!0;for(const e in r)if(r[e]!==t[e])return!1;return!0},fm={},bm=r=>{let t=fm[r];return t||(t=document.createElement("template"),t.innerHTML=r,fm[r]=t),t},zu=(r,t,e)=>{r.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e}))};let Gr=!1;const Ru=r=>"touches"in r,vm=(r,t)=>{const e=Ru(t)?t.touches[0]:t,n=r.el.getBoundingClientRect();zu(r.el,"move",r.getMove({x:_a((e.pageX-(n.left+window.pageXOffset))/n.width),y:_a((e.pageY-(n.top+window.pageYOffset))/n.height)}))};class km{constructor(t,e,n,s){const l=bm(`
`);t.appendChild(l.content.cloneNode(!0));const h=t.querySelector(`[part=${e}]`);h.addEventListener("mousedown",this),h.addEventListener("touchstart",this),h.addEventListener("keydown",this),this.el=h,this.xy=s,this.nodes=[h.firstChild,h]}set dragging(t){const e=t?document.addEventListener:document.removeEventListener;e(Gr?"touchmove":"mousemove",this),e(Gr?"touchend":"mouseup",this)}handleEvent(t){switch(t.type){case"mousedown":case"touchstart":if(t.preventDefault(),e=t,Gr&&!Ru(e)||(Gr||(Gr=Ru(e)),0)||!Gr&&0!=t.button)return;this.el.focus(),vm(this,t),this.dragging=!0;break;case"mousemove":case"touchmove":t.preventDefault(),vm(this,t);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((e,n)=>{const s=n.keyCode;s>40||e.xy&&s<37||s<33||(n.preventDefault(),zu(e.el,"move",e.getMove({x:39===s?.01:37===s?-.01:34===s?.05:33===s?-.05:35===s?1:36===s?-1:0,y:40===s?.01:38===s?-.01:0},!0)))})(this,t)}var e}style(t){t.forEach((e,n)=>{for(const s in e)this.nodes[n].style.setProperty(s,e[s])})}}class xw extends km{constructor(t){super(t,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:t}){this.h=t,this.style([{left:t/360*100+"%",color:Fu({h:t,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${ni(t)}`)}getMove(t,e){return{h:e?_a(this.h+360*t.x,0,360):360*t.x}}}class Cw extends km{constructor(t){super(t,"saturation",'aria-label="Color"',!0)}update(t){this.hsva=t,this.style([{top:100-t.v+"%",left:`${t.s}%`,color:Fu(t)},{"background-color":Fu({h:t.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${ni(t.s)}%, Brightness ${ni(t.v)}%`)}getMove(t,e){return{s:e?_a(this.hsva.s+100*t.x,0,100):100*t.x,v:e?_a(this.hsva.v-100*t.y,0,100):Math.round(100-100*t.y)}}}const Oc=Symbol("same"),Zu=Symbol("color"),_m=Symbol("hsva"),Uu=Symbol("update"),wm=Symbol("parts"),Am=Symbol("css"),xm=Symbol("sliders");class yw extends HTMLElement{static get observedAttributes(){return["color"]}get[Am](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[xm](){return[Cw,xw]}get color(){return this[Zu]}set color(t){if(!this[Oc](t)){const e=this.colorModel.toHsva(t);this[Uu](e),this[Zu]=t}}constructor(){super();const t=bm(``),e=this.attachShadow({mode:"open"});e.appendChild(t.content.cloneNode(!0)),e.addEventListener("move",this),this[wm]=this[xm].map(n=>new n(e))}connectedCallback(){if(this.hasOwnProperty("color")){const t=this.color;delete this.color,this.color=t}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(t,e,n){const s=this.colorModel.fromAttr(n);this[Oc](s)||(this.color=s)}handleEvent(t){const e=this[_m],n={...e,...t.detail};let s;this[Uu](n),mm(n,e)||this[Oc](s=this.colorModel.fromHsva(n))||(this[Zu]=s,zu(this,"color-changed",{value:s}))}[Oc](t){return this.color&&this.colorModel.equal(t,this.color)}[Uu](t){this[_m]=t,this[wm].forEach(e=>e.update(t))}}const Ew={defaultColor:"#000",toHsva:r=>(({r,g:t,b:e,a:n})=>{const s=Math.max(r,t,e),l=s-Math.min(r,t,e),h=l?s===r?(t-e)/l:s===t?2+(e-r)/l:4+(r-t)/l:0;return{h:ni(60*(h<0?h+6:h)),s:ni(s?l/s*100:0),v:ni(s/255*100),a:n}})(Bu(r)),fromHsva:({h:r,s:t,v:e})=>(({r,g:t,b:e,a:n})=>{const s=n<1?Nc(ni(255*n)):"";return"#"+Nc(r)+Nc(t)+Nc(e)+s})((({h:r,s:t,v:e,a:n})=>{r=r/360*6,t/=100,e/=100;const s=Math.floor(r),l=e*(1-t),h=e*(1-(r-s)*t),p=e*(1-(1-r+s)*t),b=s%6;return{r:ni(255*[e,h,l,l,p,e][b]),g:ni(255*[p,e,e,h,l,l][b]),b:ni(255*[l,l,p,e,e,h][b]),a:ni(n,2)}})({h:r,s:t,v:e,a:1})),equal:(r,t)=>r.toLowerCase()===t.toLowerCase()||mm(Bu(r),Bu(t)),fromAttr:r=>r};class Tw extends yw{get colorModel(){return Ew}}customElements.define("hex-color-picker",class extends Tw{});var Cm=lt(3398);Rt()(Cm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ne(di);var ym=lt(4157);Rt()(ym.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Dw{constructor(t){this._components=new Map,this.editor=t}*names(){for(const t of this._components.values())yield t.originalName}add(t,e){this._components.set(ju(t),{callback:e,originalName:t})}create(t){if(!this.has(t))throw new W("componentfactory-item-missing",this,{name:t});return this._components.get(ju(t)).callback(this.editor.locale)}has(t){return this._components.has(ju(t))}}function ju(r){return String(r).toLowerCase()}var Em=lt(8793);Rt()(Em.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Lw=Object.defineProperty,Tm=Object.getOwnPropertySymbols,Pw=Object.prototype.hasOwnProperty,Nw=Object.prototype.propertyIsEnumerable,Sm=(r,t,e)=>t in r?Lw(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,pe=(r,t)=>{for(var e in t||(t={}))Pw.call(t,e)&&Sm(r,e,t[e]);if(Tm)for(var e of Tm(t))Nw.call(t,e)&&Sm(r,e,t[e]);return r};const Im=hn("px"),Dm=Yt.document.body,Ow={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},Vu=class extends Wt{constructor(r){super(r);const t=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",t.to("position",e=>`ck-balloon-panel_${e}`),t.if("isVisible","ck-balloon-panel_visible"),t.if("withArrow","ck-balloon-panel_with-arrow"),t.to("class")],style:{top:t.to("top",Im),left:t.to("left",Im)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(r){this.show();const t=Vu.defaultPositions,e=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast,t.viewportStickyNorth],limiter:Dm,fitInViewport:!0},r),n=Vu._getOptimalPosition(e)||Ow,s=parseInt(n.left),l=parseInt(n.top),h=n.name,p=n.config||{},{withArrow:b=!0}=p;this.top=l,this.left=s,this.position=h,this.withArrow=b}pin(r){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(r):this._stopPinning()},this._startPinning(r),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(r){this.attachTo(r);const t=qu(r.target),e=r.limiter?qu(r.limiter):Dm;this.listenTo(Yt.document,"scroll",(n,s)=>{const l=s.target,h=t&&l.contains(t),p=e&&l.contains(e);!h&&!p&&t&&e||this.attachTo(r)},{useCapture:!0}),this.listenTo(Yt.window,"resize",()=>{this.attachTo(r)})}_stopPinning(){this.stopListening(Yt.document,"scroll"),this.stopListening(Yt.window,"resize")}};let Ai=Vu;function qu(r){return Sn(r)?r:dn(r)?r.commonAncestorContainer:"function"==typeof r?qu(r()):null}function Mm(r={}){const{sideOffset:t=Ai.arrowSideOffset,heightOffset:e=Ai.arrowHeightOffset,stickyVerticalOffset:n=Ai.stickyVerticalOffset,config:s}=r;return{northWestArrowSouthWest:(p,b)=>pe({top:l(p,b),left:p.left-t,name:"arrow_sw"},s&&{config:s}),northWestArrowSouthMiddleWest:(p,b)=>pe({top:l(p,b),left:p.left-.25*b.width-t,name:"arrow_smw"},s&&{config:s}),northWestArrowSouth:(p,b)=>pe({top:l(p,b),left:p.left-b.width/2,name:"arrow_s"},s&&{config:s}),northWestArrowSouthMiddleEast:(p,b)=>pe({top:l(p,b),left:p.left-.75*b.width+t,name:"arrow_sme"},s&&{config:s}),northWestArrowSouthEast:(p,b)=>pe({top:l(p,b),left:p.left-b.width+t,name:"arrow_se"},s&&{config:s}),northArrowSouthWest:(p,b)=>pe({top:l(p,b),left:p.left+p.width/2-t,name:"arrow_sw"},s&&{config:s}),northArrowSouthMiddleWest:(p,b)=>pe({top:l(p,b),left:p.left+p.width/2-.25*b.width-t,name:"arrow_smw"},s&&{config:s}),northArrowSouth:(p,b)=>pe({top:l(p,b),left:p.left+p.width/2-b.width/2,name:"arrow_s"},s&&{config:s}),northArrowSouthMiddleEast:(p,b)=>pe({top:l(p,b),left:p.left+p.width/2-.75*b.width+t,name:"arrow_sme"},s&&{config:s}),northArrowSouthEast:(p,b)=>pe({top:l(p,b),left:p.left+p.width/2-b.width+t,name:"arrow_se"},s&&{config:s}),northEastArrowSouthWest:(p,b)=>pe({top:l(p,b),left:p.right-t,name:"arrow_sw"},s&&{config:s}),northEastArrowSouthMiddleWest:(p,b)=>pe({top:l(p,b),left:p.right-.25*b.width-t,name:"arrow_smw"},s&&{config:s}),northEastArrowSouth:(p,b)=>pe({top:l(p,b),left:p.right-b.width/2,name:"arrow_s"},s&&{config:s}),northEastArrowSouthMiddleEast:(p,b)=>pe({top:l(p,b),left:p.right-.75*b.width+t,name:"arrow_sme"},s&&{config:s}),northEastArrowSouthEast:(p,b)=>pe({top:l(p,b),left:p.right-b.width+t,name:"arrow_se"},s&&{config:s}),southWestArrowNorthWest:p=>pe({top:h(p),left:p.left-t,name:"arrow_nw"},s&&{config:s}),southWestArrowNorthMiddleWest:(p,b)=>pe({top:h(p),left:p.left-.25*b.width-t,name:"arrow_nmw"},s&&{config:s}),southWestArrowNorth:(p,b)=>pe({top:h(p),left:p.left-b.width/2,name:"arrow_n"},s&&{config:s}),southWestArrowNorthMiddleEast:(p,b)=>pe({top:h(p),left:p.left-.75*b.width+t,name:"arrow_nme"},s&&{config:s}),southWestArrowNorthEast:(p,b)=>pe({top:h(p),left:p.left-b.width+t,name:"arrow_ne"},s&&{config:s}),southArrowNorthWest:p=>pe({top:h(p),left:p.left+p.width/2-t,name:"arrow_nw"},s&&{config:s}),southArrowNorthMiddleWest:(p,b)=>pe({top:h(p),left:p.left+p.width/2-.25*b.width-t,name:"arrow_nmw"},s&&{config:s}),southArrowNorth:(p,b)=>pe({top:h(p),left:p.left+p.width/2-b.width/2,name:"arrow_n"},s&&{config:s}),southArrowNorthMiddleEast:(p,b)=>pe({top:h(p),left:p.left+p.width/2-.75*b.width+t,name:"arrow_nme"},s&&{config:s}),southArrowNorthEast:(p,b)=>pe({top:h(p),left:p.left+p.width/2-b.width+t,name:"arrow_ne"},s&&{config:s}),southEastArrowNorthWest:p=>pe({top:h(p),left:p.right-t,name:"arrow_nw"},s&&{config:s}),southEastArrowNorthMiddleWest:(p,b)=>pe({top:h(p),left:p.right-.25*b.width-t,name:"arrow_nmw"},s&&{config:s}),southEastArrowNorth:(p,b)=>pe({top:h(p),left:p.right-b.width/2,name:"arrow_n"},s&&{config:s}),southEastArrowNorthMiddleEast:(p,b)=>pe({top:h(p),left:p.right-.75*b.width+t,name:"arrow_nme"},s&&{config:s}),southEastArrowNorthEast:(p,b)=>pe({top:h(p),left:p.right-b.width+t,name:"arrow_ne"},s&&{config:s}),westArrowEast:(p,b)=>pe({top:p.top+p.height/2-b.height/2,left:p.left-b.width-e,name:"arrow_e"},s&&{config:s}),eastArrowWest:(p,b)=>pe({top:p.top+p.height/2-b.height/2,left:p.right+e,name:"arrow_w"},s&&{config:s}),viewportStickyNorth:(p,b,A,C)=>{const E=C||A;return p.getIntersection(E)?E.height-p.height>n?null:{top:E.top+n,left:p.left+p.width/2-b.width/2,name:"arrowless",config:pe({withArrow:!1},s)}:null}};function l(p,b){return p.top-b.height-e}function h(p){return p.bottom+e}}Ai.arrowSideOffset=25,Ai.arrowHeightOffset=10,Ai.stickyVerticalOffset=20,Ai._getOptimalPosition=Ls,Ai.defaultPositions=Mm();var Lm=lt(3332);Rt()(Lm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Pm="ck-tooltip",xi=class extends(bi()){constructor(r){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,xi._editors.add(r),xi._instance)return xi._instance;xi._instance=this,this.tooltipTextView=new Wt(r.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new Ai(r.locale),this.balloonPanelView.class=Pm,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=Go(this._pinTooltip,600),this.listenTo(Yt.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Yt.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Yt.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Yt.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Yt.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(r){const t=r.ui.view&&r.ui.view.body;xi._editors.delete(r),this.stopListening(r.ui),t&&t.has(this.balloonPanelView)&&t.remove(this.balloonPanelView),xi._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),xi._instance=null)}static getPositioningFunctions(r){const t=xi.defaultBalloonPositions;return{s:[t.southArrowNorth,t.southArrowNorthEast,t.southArrowNorthWest],n:[t.northArrowSouth],e:[t.eastArrowWest],w:[t.westArrowEast],sw:[t.southArrowNorthEast],se:[t.southArrowNorthWest]}[r]}_onEnterOrFocus(r,{target:t}){const e=Yu(t);var n;e&&e!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(e,{text:(n=e).dataset.ckeTooltipText,position:n.dataset.ckeTooltipPosition||"s",cssClass:n.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(r,{target:t,relatedTarget:e}){if("mouseleave"===r.name){if(!Sn(t)||this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;const n=Yu(t),s=Yu(e);n&&n!==s&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&t!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(r,{target:t}){this._currentElementWithTooltip&&(t.contains(this.balloonPanelView.element)&&t.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(r,{text:t,position:e,cssClass:n}){const s=Oe(xi._editors.values()).ui.view.body;s.has(this.balloonPanelView)||s.add(this.balloonPanelView),this.tooltipTextView.text=t,this.balloonPanelView.pin({target:r,positions:xi.getPositioningFunctions(e)}),this._resizeObserver=new Ro(r,()=>{In(r)||this._unpinTooltip()}),this.balloonPanelView.class=[Pm,n].filter(l=>l).join(" ");for(const l of xi._editors)this.listenTo(l.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=r,this._currentTooltipPosition=e}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const r of xi._editors)this.stopListening(r.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){In(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:xi.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}};let Bc=xi;function Yu(r){return Sn(r)?r.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}Bc.defaultBalloonPositions=Mm({heightOffset:5,sideOffset:13}),Bc._editors=new Set,Bc._instance=null;const Fc=function(r,t,e){var n=!0,s=!0;if("function"!=typeof r)throw new TypeError("Expected a function");return te(e)&&(n="leading"in e?!!e.leading:n,s="trailing"in e?!!e.trailing:s),Go(r,t,{leading:n,maxWait:t,trailing:s})};var Fw=Object.defineProperty,Nm=Object.getOwnPropertySymbols,zw=Object.prototype.hasOwnProperty,Rw=Object.prototype.propertyIsEnumerable,Om=(r,t,e)=>t in r?Fw(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class qw extends(bi()){constructor(t){super(),this.editor=t,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Fc(this._showBalloon.bind(this),50,{leading:!0}),t.on("ready",this._handleEditorReady.bind(this))}destroy(){const t=this._balloonView;t&&(t.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const t=this.editor;(t.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(e){function n(F){return F.length>=40&&F.length<=255?"VALID":"INVALID"}if(!e)return"INVALID";let s="";try{s=atob(e)}catch{return"INVALID"}const l=s.split("-"),h=l[0],p=l[1];if(!p)return n(e);try{atob(p)}catch{try{if(atob(h),!atob(h).length)return n(e)}catch{return n(e)}}if(h.length<40||h.length>255)return"INVALID";let b="";try{atob(h),b=atob(p)}catch{return"INVALID"}if(8!==b.length)return"INVALID";const A=Number(b.substring(0,4)),C=Number(b.substring(4,6))-1,E=Number(b.substring(6,8)),P=new Date(A,C,E);return P<$e||isNaN(Number(P))?"INVALID":"VALID"}(t.config.get("licenseKey")))&&t.ui.view&&(t.ui.focusTracker.on("change:isFocused",(e,n,s)=>{this._updateLastFocusedEditableElement(),s?this._showBalloon():this._hideBalloon()}),t.ui.focusTracker.on("change:focusedElement",(e,n,s)=>{this._updateLastFocusedEditableElement(),s&&this._showBalloon()}),t.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const t=this.editor,e=this._balloonView=new Ai,n=Fm(t),s=new Yw(t.locale,n.label);e.content.add(s),e.set({class:"ck-powered-by-balloon"}),t.ui.view.body.add(e),t.ui.focusTracker.add(e.element),this._balloonView=e}_showBalloon(){if(!this._lastFocusedEditableElement)return;const t=function(e,n){const s=Fm(e);var p;return{target:n,positions:["right"===s.side?Bm(n,p=s,(b,A)=>b.left+b.width-A.width-p.horizontalOffset):function(h,p){return Bm(h,p,b=>b.left+p.horizontalOffset)}(n,s)]}}(this.editor,this._lastFocusedEditableElement);t&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(t))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const t=this.editor,n=t.ui.focusTracker.focusedElement;if(!t.ui.focusTracker.isFocused||!n)return void(this._lastFocusedEditableElement=null);const s=Array.from(t.ui.getEditableElementsNames()).map(l=>t.ui.getEditableElement(l));this._lastFocusedEditableElement=s.includes(n)?n:s[0]}}class Yw extends Wt{constructor(t,e){super(t);const n=new Dn,s=this.bindTemplate;n.set({content:'\n',isColorInherited:!1}),n.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...e?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[e]}]:[],n],on:{dragstart:s.to(l=>l.preventDefault())}}]})}}function Bm(r,t,e){return(n,s)=>{const l=new le(r);if(l.width<350||l.height<50)return null;let h;h="inside"===t.position?l.bottom-s.height:l.bottom-s.height/2,h-=t.verticalOffset;const p=e(l,s),b=n.clone().moveTo(p,h).getIntersection(s.clone().moveTo(p,h)).getVisible();return!b||b.getArea(){for(var e in t||(t={}))zw.call(t,e)&&Om(r,e,t[e]);if(Nm)for(var e of Nm(t))Rw.call(t,e)&&Om(r,e,t[e]);return r})({position:e,label:"Powered by",verticalOffset:"inside"===e?5:0,horizontalOffset:5,side:"ltr"===r.locale.contentLanguageDirection?"right":"left"},t)}var zm=lt(3210);Rt()(zm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gw{constructor(t){this.editor=t}announce(t,e,n="polite"){const s=this.editor;this.view||(this.view=new Ww(s.locale),s.ui.view.body.add(this.view));let l=this.view.regionViews.find(h=>h.regionName===t);l||(l=new Qw(this.view.locale),this.view.regionViews.add(l)),l.set({regionName:t,text:e,politeness:n})}}class Ww extends Wt{constructor(t){super(t),this.regionViews=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-aria-live-announcer"]},children:this.regionViews})}}class Qw extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.set("regionName",""),this.set("text",""),this.set("politeness","polite"),this.setTemplate({tag:"div",attributes:{role:"region","data-region":e.to("regionName"),"aria-live":e.to("politeness")},children:[{text:e.to("text")}]})}}var Xw=Object.defineProperty,Rm=Object.getOwnPropertySymbols,Kw=Object.prototype.hasOwnProperty,Jw=Object.prototype.propertyIsEnumerable,Zm=(r,t,e)=>t in r?Xw(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class $w extends(ne()){constructor(t){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const e=t.editing.view;this.editor=t,this.componentFactory=new Dw(t),this.focusTracker=new Ye,this.tooltipManager=new Bc(t),this.poweredBy=new qw(t),this.ariaLiveAnnouncer=new Gw(t),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(e.document,"layoutChanged",this.update.bind(this)),this.listenTo(e,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const t of this._editableElementsMap.values())t.ckeditorInstance=null,this.editor.keystrokes.stopListening(t);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor),this.focusTracker.add(e);const n=()=>{this.editor.editing.view.getDomRoot(t)||this.editor.keystrokes.listenTo(e)};this.isReady?n():this.once("ready",n)}removeEditableElement(t){const e=this._editableElementsMap.get(t);e&&(this._editableElementsMap.delete(t),this.editor.keystrokes.stopListening(e),this.focusTracker.remove(e),e.ckeditorInstance=null)}getEditableElement(t="main"){return this._editableElementsMap.get(t)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(t,e={}){t.isRendered?(this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)):t.once("render",()=>{this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)}),this._focusableToolbarDefinitions.push({toolbarView:t,options:e})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;const n=t.config.get("toolbar.viewportTopOffset");return n?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:n}):{top:0}}_initFocusTracking(){const t=this.editor,e=t.editing.view;let n,s;t.keystrokes.set("Alt+F10",(l,h)=>{const p=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(p)&&!Array.from(e.domRoots.values()).includes(p)&&(n=p);const b=this._getCurrentFocusedToolbarDefinition();b&&s||(s=this._getFocusableCandidateToolbarDefinitions());for(let A=0;A{const p=this._getCurrentFocusedToolbarDefinition();p&&(n?(n.focus(),n=null):t.editing.view.focus(),p.options.afterBlur&&p.options.afterBlur(),h())})}_getFocusableCandidateToolbarDefinitions(){const t=[];for(const e of this._focusableToolbarDefinitions){const{toolbarView:n,options:s}=e;(In(n.element)||s.beforeFocus)&&t.push(e)}return t.sort((e,n)=>Um(e)-Um(n)),t}_getCurrentFocusedToolbarDefinition(){for(const t of this._focusableToolbarDefinitions)if(t.toolbarView.element&&t.toolbarView.element.contains(this.focusTracker.focusedElement))return t;return null}_focusFocusableCandidateToolbar(t){const{toolbarView:e,options:{beforeFocus:n}}=t;return n&&n(),!!In(e.element)&&(e.focus(),!0)}_handleScrollToTheSelection(t,e){const n=((s,l)=>{for(var h in l||(l={}))Kw.call(l,h)&&Zm(s,h,l[h]);if(Rm)for(var h of Rm(l))Jw.call(l,h)&&Zm(s,h,l[h]);return s})({top:0,bottom:0,left:0,right:0},this.viewportOffset);e.viewportOffset.top+=n.top,e.viewportOffset.bottom+=n.bottom,e.viewportOffset.left+=n.left,e.viewportOffset.right+=n.right}}function Um(r){const{toolbarView:t,options:e}=r;let n=10;return In(t.element)&&n--,e.isContextual&&n--,n}var jm=lt(9688);Rt()(jm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class e1 extends Wt{constructor(t){super(t),this.body=new Gd(t)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class n1 extends e1{constructor(t){super(t),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const t=this.t,e=new js;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}class o1 extends Wt{constructor(t,e,n){super(t),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=n,this._hasExternalElement=!!this._editableElement,this._editingView=e}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const t=this._editingView;function e(n){t.change(s=>{const l=t.document.getRoot(n.name);s.addClass(n.isFocused?"ck-focused":"ck-blurred",l),s.removeClass(n.isFocused?"ck-blurred":"ck-focused",l)})}t.isRenderingInProgress?function n(s){t.once("change:isRenderingInProgress",(l,h,p)=>{p?n(s):e(s)})}(this):e(this)}}class r1 extends o1{constructor(t,e,n,s={}){super(t,e,n);const l=t.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=s.label||(()=>l("Editor editing area: %0",this.name))}render(){super.render();const t=this._editingView;t.change(e=>{const n=t.document.getRoot(this.name);e.setAttribute("aria-label",this._generateLabel(this),n)})}}var Vm=lt(8847);Rt()(Vm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Hu extends Er{static get pluginName(){return"Notification"}init(){this.on("show:warning",(t,e)=>{window.alert(e.message)},{priority:"lowest"})}showSuccess(t,e={}){this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}showInfo(t,e={}){this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}showWarning(t,e={}){this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}_showNotification(t){this.fire(t.namespace?`show:${t.type}:${t.namespace}`:`show:${t.type}`,{message:t.message,type:t.type,title:t.title||""})}}class qm extends(ne()){constructor(t,e){super(),e&&On(this,e),t&&this.set(t)}}var Ym=lt(4650);Rt()(Ym.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Hm=lt(7676);Rt()(Hm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const zc=hn("px");class Rc extends Lt{constructor(t){super(t),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const e=this.editor.editing.view,n=e.document.selection.editableElement;return n?e.domConverter.mapViewToDom(n.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(t){return Array.from(this._viewToStack.keys()).includes(t)}add(t){if(this._view||this._createPanelView(),this.hasView(t.view))throw new W("contextualballoon-add-view-exist",[this,t]);const e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));const n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}remove(t){if(!this.hasView(t))throw new W("contextualballoon-remove-view-not-exist",[this,t]);const e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(t){this.visibleStack=t;const e=this._idToStack.get(t);if(!e)throw new W("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}_createPanelView(){this._view=new Ai(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(t){return Array.from(this._idToStack.entries()).find(e=>e[1]===t)[0]}_showNextStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}_showPrevStack(){const t=Array.from(this._idToStack.values());let e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}_createRotatorView(){const t=new c1(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(n,s)=>!s&&n>1),t.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(n,s)=>{if(s<2)return"";const l=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return e("%0 of %1",[l,s])}),t.buttonNextView.on("execute",()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),t.buttonPrevView.on("execute",()=>{t.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),t}_createFakePanelsView(){const t=new d1(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(e,n)=>!n&&e>=2?Math.min(e-1,2):0),t.listenTo(this.view,"change:top",()=>t.updatePosition()),t.listenTo(this.view,"change:left",()=>t.updatePosition()),this.editor.ui.view.body.add(t),t}_showView({view:t,balloonClassName:e="",withArrow:n=!0,singleViewMode:s=!1}){this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}_getBalloonPosition(){let t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t}}class c1 extends Wt{constructor(t){super(t);const e=t.t,n=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new Ye,this.buttonPrevView=this._createButtonView(e("Previous"),''),this.buttonNextView=this._createButtonView(e("Next"),''),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",s=>s?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(t){this.hideView(),this.content.add(t)}hideView(){this.content.clear()}_createButtonView(t,e){const n=new ve(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}class d1 extends Wt{constructor(t,e){super(t);const n=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=e,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",s=>s?"":"ck-hidden")],style:{top:n.to("top",zc),left:n.to("left",zc),width:n.to("width",zc),height:n.to("height",zc)}},children:this.content}),this.on("change:numberOfPanels",(s,l,h,p)=>{h>p?this._addPanels(h-p):this._removePanels(p-h),this.updatePosition()})}_addPanels(t){for(;t--;){const e=new Wt;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}_removePanels(t){for(;t--;){const e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:t,left:e}=this._balloonPanelView,{width:n,height:s}=new le(this._balloonPanelView.element);Object.assign(this,{top:t,left:e,width:n,height:s})}}}var Gm=lt(5868);Rt()(Gm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Wr=hn("px");class u1 extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new Ei({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",n=>n?"block":"none"),height:e.to("isSticky",n=>n?Wr(this._contentPanelRect.height):null)}}}).render(),this._contentPanel=new Ei({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",e.if("isSticky","ck-sticky-panel__content_sticky"),e.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:e.to("isSticky",n=>n?Wr(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:e.to("_stickyTopOffset",n=>n&&Wr(n)),bottom:e.to("_stickyBottomOffset",n=>n&&Wr(n)),marginLeft:e.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(Yt.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const t=new le(this.limiterElement);let e=t.getVisible();if(e){const n=new le(Yt.window);n.top+=this.viewportTopOffset,n.height-=this.viewportTopOffset,e=e.getIntersection(n)}if(e&&t.tope.bottom){const s=Math.max(t.bottom-e.bottom,0)+this.limiterBottomOffset;t.bottom-s>t.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(s):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset{this.reset(),this.focus(),this.fire("reset")}),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",l=>!l),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class g1 extends Wt{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",t.if("isVisible","ck-hidden",e=>!e)],tabindex:-1},children:[{tag:"span",children:[{text:[t.to("primaryText")]}]},{tag:"span",children:[{text:[t.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class m1 extends Wt{constructor(t){super(t),this.children=this.createCollection(),this.focusTracker=new Ye,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new en({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const t of this.children)this.focusTracker.add(t.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var Wm=/[\\^$.*+?()[\]{}|]/g,f1=RegExp(Wm.source);const Qm=function(r){return(r=$s(r))&&f1.test(r)?r.replace(Wm,"\\$&"):r};var Xm=lt(6770);Rt()(Xm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var v1=Object.defineProperty,Km=Object.getOwnPropertySymbols,k1=Object.prototype.hasOwnProperty,_1=Object.prototype.propertyIsEnumerable,Jm=(r,t,e)=>t in r?v1(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class w1 extends Wt{constructor(t,e){super(t),this._config=e,this.filteredView=e.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new Ye,this.keystrokes=new vi,this.resultsView=new m1(t),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),e.infoView&&e.infoView.instance?this.infoView=e.infoView.instance:(this.infoView=new g1,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new en({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(n,{resultsCount:s,totalItemsCount:l})=>{this.resultsCount=s,this.totalItemsCount=l}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",e.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const t=e=>e.stopPropagation();for(const e of this.focusableChildren)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(t){const e=t?new RegExp(Qm(t),"ig"):null,n=this.filteredView.filter(e);this.fire("search",((s,l)=>{for(var h in l||(l={}))k1.call(l,h)&&Jm(s,h,l[h]);if(Km)for(var h of Km(l))_1.call(l,h)&&Jm(s,h,l[h]);return s})({query:t},n))}_createSearchTextQueryView(){const t=new p1(this.locale,this._config.queryView);return this.listenTo(t.fieldView,"input",()=>{this.search(t.fieldView.element.value)}),t.on("reset",()=>this.reset()),t.bind("isEnabled").to(this),t}_enableDefaultInfoViewBehavior(){const t=this.locale.t,e=this.infoView;function n(s,{query:l,resultsCount:h,totalItemsCount:p}){return"function"==typeof s?s(l,h,p):s}this.on("search",(s,l)=>{if(l.resultsCount)e.set({isVisible:!1});else{const h=this._config.infoView&&this._config.infoView.text;let p,b;l.totalItemsCount?h&&h.notFound?(p=h.notFound.primary,b=h.notFound.secondary):(p=t("No results found"),b=""):h&&h.noSearchableItems?(p=h.noSearchableItems.primary,b=h.noSearchableItems.secondary):(p=t("No searchable items"),b=""),e.set({primaryText:n(p,l),secondaryText:n(b,l),isVisible:!0})}})}}var $m=lt(8157);Rt()($m.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Gu=class extends w1{constructor(r,t){super(r,t),this._config=t;const e=hn("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const n=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[n.if("isVisible","ck-hidden",s=>!s),n.to("_position",s=>`ck-search__results_${s}`)],style:{width:n.to("_width",e)}}}),this.focusTracker.on("change:isFocused",(s,l,h)=>{this._updateResultsVisibility(),h?this.resultsView.element.scrollTop=0:t.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(s,l)=>{this.resultsView.isVisible&&(this.queryView.focus(),this.resultsView.isVisible=!1,l())}),this.listenTo(Yt.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(s,{value:l})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=l,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new le(this.queryView.fieldView.element).width;const r=Gu._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:Gu.defaultResultsPositions});this.resultsView._position=r?r.name:"s"}_updateResultsVisibility(){this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&this.queryView.fieldView.element.value.length>=(void 0===this._config.queryMinChars?0:this._config.queryMinChars)}};let tf=Gu;tf.defaultResultsPositions=[r=>({top:r.bottom,left:r.left,name:"s"}),(r,t)=>({top:r.top-t.height,left:r.left,name:"n"})],tf._getOptimalPosition=Ls;var ef=lt(8960);Rt()(ef.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var nf=lt(8010);Rt()(nf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class y1 extends Wt{constructor(t,e){super(t);const n=this.bindTemplate;this.set("isCollapsed",!1),this.set("label",""),this.buttonView=this._createButtonView(),this.children=this.createCollection(),this.set("_collapsibleAriaLabelUid",void 0),e&&this.children.addMany(e),this.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",n.if("isCollapsed","ck-collapsible_collapsed")]},children:[this.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:n.if("isCollapsed","hidden"),"aria-labelledby":n.to("_collapsibleAriaLabelUid")},children:this.children}]})}render(){super.render(),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}focus(){this.buttonView.focus()}_createButtonView(){const t=new ve(this.locale),e=t.bindTemplate;return t.set({withText:!0,icon:Qs}),t.extendTemplate({attributes:{"aria-expanded":e.to("isOn",n=>String(n))}}),t.bind("label").to(this),t.bind("isOn").to(this,"isCollapsed",n=>!n),t.on("execute",()=>{this.isCollapsed=!this.isCollapsed}),t}}var of=lt(498);Rt()(of.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hn("px");var rf=lt(9695);Rt()(rf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hn("px"),hn("px");class S1 extends $w{constructor(t,e){super(t),this.view=e,this._toolbarConfig=Zl(t.config.get("toolbar")),this._elementReplacer=new rs,this.listenTo(t.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(t){const n=this.view,s=this.editor.editing.view,l=n.editable,h=s.document.getRoot();l.name=h.rootName,n.render();const p=l.element;this.setEditableElement(l.name,p),n.editable.bind("isFocused").to(this.focusTracker),s.attachDomRoot(p),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy()}_initToolbar(){const t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:e})=>e||0),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar)}_initPlaceholder(){const t=this.editor,e=t.editing.view,n=e.document.getRoot(),s=t.sourceElement;let l;const h=t.config.get("placeholder");h&&(l="string"==typeof h?h:h[this.view.editable.name]),!l&&s&&"textarea"===s.tagName.toLowerCase()&&(l=s.getAttribute("placeholder")),l&&(n.placeholder=l),Wl({view:e,element:n,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(t,e,n){const s=this.view.stickyPanel;if(s.isSticky){const l=new le(s.element).height;e.viewportOffset.top+=l}else{const l=()=>{this.editor.editing.view.scrollToTheSelection(n)};this.listenTo(s,"change:isSticky",l),setTimeout(()=>{this.stopListening(s,"change:isSticky",l)},20)}}}var sf=lt(3143);Rt()(sf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class D1 extends n1{constructor(t,e,n={}){super(t),this.stickyPanel=new u1(t),this.toolbar=new Pu(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),this.editable=new r1(t,e)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class af{constructor(t){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof t.crashNumberLimit?t.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof t.minimumNonErrorTimePeriod?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=e=>{const n="error"in e?e.error:e.reason;n instanceof Error&&this._handleError(n,e)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e)}off(t,e){this._listeners[t]=this._listeners[t].filter(n=>n!==e)}_fire(t,...e){const n=this._listeners[t]||[];for(const s of n)s.apply(this,[null,...e])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e instanceof ErrorEvent?e.filename:void 0,lineno:e instanceof ErrorEvent?e.lineno:void 0,colno:e instanceof ErrorEvent?e.colno:void 0,date:this._now()});const n=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:n}),n?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(t){return t.is&&t.is("CKEditorError")&&null!=t.context&&"ready"===this.state&&this._isErrorComingFromThisItem(t)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function Wu(r,t=new Set){const e=[r],n=new Set;let s=0;for(;e.length>s;){const l=e[s++];if(!n.has(l)&&M1(l)&&!t.has(l))if(n.add(l),Symbol.iterator in l)try{for(const h of l)e.push(h)}catch{}else for(const h in l)"defaultValue"!==h&&e.push(l[h])}return n}function M1(r){const t=Object.prototype.toString.call(r),e=typeof r;return!("number"===e||"boolean"===e||"string"===e||"symbol"===e||"function"===e||"[object Date]"===t||"[object RegExp]"===t||"[object Module]"===t||null==r||r._watchdogExcluded||r instanceof EventTarget||r instanceof Event)}function lf(r,t,e=new Set){if(r===t&&"object"==typeof(n=r)&&null!==n)return!0;var n;const s=Wu(r,e),l=Wu(t,e);for(const h of s)if(l.has(h))return!0;return!1}var L1=Object.defineProperty,P1=Object.defineProperties,N1=Object.getOwnPropertyDescriptors,Zc=Object.getOwnPropertySymbols,cf=Object.prototype.hasOwnProperty,df=Object.prototype.propertyIsEnumerable,hf=(r,t,e)=>t in r?L1(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Qu=(r,t)=>{for(var e in t||(t={}))cf.call(t,e)&&hf(r,e,t[e]);if(Zc)for(var e of Zc(t))df.call(t,e)&&hf(r,e,t[e]);return r};class uf extends af{constructor(t,e={}){super(e),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Fc(this._save.bind(this),"number"==typeof e.saveInterval?e.saveInterval:5e3),t&&(this._creator=(n,s)=>t.create(n,s)),this._destructor=n=>n.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(t){this._creator=t}setDestructor(t){this._destructor=t}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(t=>{console.error("An error happened during the editor destroying.",t)}).then(()=>{const t={},e=[],n=this._config.rootsAttributes||{},s={};for(const[b,A]of Object.entries(this._data.roots))A.isLoaded?(t[b]="",s[b]=n[b]||{}):e.push(b);const l=(h=Qu({},this._config),P1(h,N1({extraPlugins:this._config.extraPlugins||[],lazyRoots:e,rootsAttributes:s,_watchdogInitialData:this._data})));var h;return delete l.initialData,l.extraPlugins.push(O1),this._initUsingData?this.create(t,l,l.context):Sn(this._elementOrData)?this.create(this._elementOrData,l,l.context):this.create(this._editables,l,l.context)}).then(()=>{this._fire("restart")})}create(t=this._elementOrData,e=this._config,n){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=t,this._initUsingData="string"==typeof t||Object.keys(t).length>0&&"string"==typeof Object.values(t)[0],this._config=this._cloneEditorConfiguration(e)||{},this._config.context=n,this._creator(t,this._config))).then(s=>{this._editor=s,s.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=s.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const t=this._editor;return this._editor=null,t.model.document.off("change:data",this._throttledSave),this._destructor(t)})}_save(){const t=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=t}catch(e){console.error(e,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(t){this._excludedProps=t}_getData(){const t=this._editor,e=t.model.document.roots.filter(p=>p.isAttached()&&"$graveyard"!=p.rootName),{plugins:n}=t,s=n.has("CommentsRepository")&&n.get("CommentsRepository"),l=n.has("TrackChanges")&&n.get("TrackChanges"),h={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};e.forEach(p=>{h.roots[p.rootName]={content:JSON.stringify(Array.from(p.getChildren())),attributes:JSON.stringify(Array.from(p.getAttributes())),isLoaded:p._isLoaded}});for(const p of t.model.markers)p._affectsData&&(h.markers[p.name]={rangeJSON:p.getRange().toJSON(),usingOperation:p._managedUsingOperations,affectsData:p._affectsData});return s&&(h.commentThreads=JSON.stringify(s.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),l&&(h.suggestions=JSON.stringify(l.getSuggestions({toJSON:!0,skipNotAttached:!0}))),h}_getEditables(){const t={};for(const e of this.editor.model.document.getRootNames()){const n=this.editor.ui.getEditableElement(e);n&&(t[e]=n)}return t}_isErrorComingFromThisItem(t){return lf(this._editor,t.context,this._excludedProps)}_cloneEditorConfiguration(t){return Ss(t,(e,n)=>Sn(e)||"context"===n?e:void 0)}}class O1{constructor(t){this.editor=t,this._data=t.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",t=>{t.stop(),this.editor.model.enqueueChange({isUndoable:!1},e=>{this._restoreCollaborationData(),this._restoreEditorData(e)}),this.editor.data.fire("ready")},{priority:999})}_createNode(t,e){if("name"in e){const n=t.createElement(e.name,e.attributes);if(e.children)for(const s of e.children)n._appendChild(this._createNode(t,s));return n}return t.createText(e.data,e.attributes)}_restoreEditorData(t){const e=this.editor;Object.entries(this._data.roots).forEach(([n,{content:s,attributes:l}])=>{const h=JSON.parse(s),p=JSON.parse(l),b=e.model.document.getRoot(n);for(const[A,C]of p)t.setAttribute(A,C,b);for(const A of h){const C=this._createNode(t,A);t.insert(C,b,"end")}}),Object.entries(this._data.markers).forEach(([n,s])=>{const{document:l}=e.model,h=s,{rangeJSON:{start:p,end:b}}=h,A=((j,Y)=>{var $={};for(var st in j)cf.call(j,st)&&Y.indexOf(st)<0&&($[st]=j[st]);if(null!=j&&Zc)for(var st of Zc(j))Y.indexOf(st)<0&&df.call(j,st)&&($[st]=j[st]);return $})(h,["rangeJSON"]),C=l.getRoot(p.root),E=t.createPositionFromPath(C,p.path,p.stickiness),P=t.createPositionFromPath(C,b.path,b.stickiness),F=t.createRange(E,P);t.addMarker(n,Qu({range:F},A))})}_restoreCollaborationData(){const t=JSON.parse(this._data.commentThreads),e=JSON.parse(this._data.suggestions);t.forEach(n=>{const s=this.editor.config.get("collaboration.channelId"),l=this.editor.plugins.get("CommentsRepository");l.hasCommentThread(n.threadId)&&l.getCommentThread(n.threadId).remove(),l.addCommentThread(Qu({channelId:s},n))}),e.forEach(n=>{const s=this.editor.plugins.get("TrackChangesEditing");s.hasSuggestion(n.id)?s.getSuggestion(n.id).attributes=n.attributes:s.addSuggestionData(n)})}}const wa=Symbol("MainQueueId");class B1{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(t){this._onEmptyCallbacks.push(t)}enqueue(t,e){const n=t===wa;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());const s=Promise.all(n?this._queues.values():[this._queues.get(wa),this._queues.get(t)]).then(e),l=s.catch(()=>{});return this._queues.set(t,l),s.finally(()=>{this._activeActions--,this._queues.get(t)===l&&0===this._activeActions&&this._onEmptyCallbacks.forEach(h=>h())})}}function pf(r){return Array.isArray(r)?r:[r]}class Uc extends(Dc(Lu(cw))){constructor(t,e={}){if(!jc(t)&&void 0!==e.initialData)throw new W("editor-create-initial-data",null);var l,h;super(e),void 0===this.config.get("initialData")&&this.config.set("initialData",jc(l=t)?(h=l)instanceof HTMLTextAreaElement?h.value:h.innerHTML:l),jc(t)&&(this.sourceElement=t),this.model.document.createRoot();const n=!this.config.get("toolbar.shouldNotGroupWhenFull"),s=new D1(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:n});this.ui=new S1(this,s),function(l){if(!Ji(l.updateSourceElement))throw new W("attachtoform-missing-elementapi-interface",l);const h=l.sourceElement;if((p=h)&&"textarea"===p.tagName.toLowerCase()&&h.form){let p;const b=h.form,A=()=>l.updateSourceElement();Ji(b.submit)&&(p=b.submit,b.submit=()=>{A(),p.apply(b)}),b.addEventListener("submit",A),l.on("destroy",()=>{b.removeEventListener("submit",A),p&&(b.submit=p)})}var p}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(t,e={}){return new Promise(n=>{const s=new this(t,e);n(s.initPlugins().then(()=>s.ui.init(jc(t)?t:null)).then(()=>s.data.init(s.config.get("initialData"))).then(()=>s.fire("ready")).then(()=>s))})}}function jc(r){return Sn(r)}Uc.Context=Yl,Uc.EditorWatchdog=uf,Uc.ContextWatchdog=class extends af{constructor(r,t={}){super(t),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new B1,this._watchdogConfig=t,this._creator=e=>r.create(e),this._destructor=e=>e.destroy(),this._actionQueues.onEmpty(()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))})}setCreator(r){this._creator=r}setDestructor(r){this._destructor=r}get context(){return this._context}create(r={}){return this._actionQueues.enqueue(wa,()=>(this._contextConfig=r,this._create()))}getItem(r){return this._getWatchdog(r)._item}getItemState(r){return this._getWatchdog(r).state}add(r){const t=pf(r);return Promise.all(t.map(e=>this._actionQueues.enqueue(e.id,()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let n;if(this._watchdogs.has(e.id))throw new Error(`Item with the given id is already added: '${e.id}'.`);if("editor"===e.type)return n=new uf(null,this._watchdogConfig),n.setCreator(e.creator),n._setExcludedProperties(this._contextProps),e.destructor&&n.setDestructor(e.destructor),this._watchdogs.set(e.id,n),n.on("error",(s,{error:l,causesRestart:h})=>{this._fire("itemError",{itemId:e.id,error:l}),h&&this._actionQueues.enqueue(e.id,()=>new Promise(p=>{const b=()=>{n.off("restart",b),this._fire("itemRestart",{itemId:e.id}),p()};n.on("restart",b)}))}),n.create(e.sourceElementOrData,e.config,this._context);throw new Error(`Not supported item type: '${e.type}'.`)})))}remove(r){const t=pf(r);return Promise.all(t.map(e=>this._actionQueues.enqueue(e,()=>{const n=this._getWatchdog(e);return this._watchdogs.delete(e),n.destroy()})))}destroy(){return this._actionQueues.enqueue(wa,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(wa,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(r=>{console.error("An error happened during destroying the context or items.",r)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(r=>(this._context=r,this._contextProps=Wu(this._context),Promise.all(Array.from(this._watchdogs.values()).map(t=>(t._setExcludedProperties(this._contextProps),t.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();const r=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(t=>t.destroy())).then(()=>this._destructor(r))})}_getWatchdog(r){const t=this._watchdogs.get(r);if(!t)throw new Error(`Item with the given id was not registered: ${r}.`);return t}_isErrorComingFromThisItem(r){for(const t of this._watchdogs.values())if(t._isErrorComingFromThisItem(r))return!1;return lf(this._context,r.context)}};class Aa extends un{constructor(t){super(t),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const e=this.document;function n(s){return(l,h)=>{h.preventDefault();const p=h.dropRange?[h.dropRange]:null,b=new xt(e,s);e.fire(b,{dataTransfer:h.dataTransfer,method:l.name,targetRanges:p,target:h.target,domEvent:h.domEvent}),b.stop.called&&h.stopPropagation()}}this.listenTo(e,"paste",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"drop",n("clipboardInput"),{priority:"low"}),this.listenTo(e,"dragover",n("dragging"),{priority:"low"})}onDomEvent(t){const s={dataTransfer:new Cc("clipboardData"in t?t.clipboardData:t.dataTransfer,{cacheFiles:"drop"==t.type||"paste"==t.type})};"drop"!=t.type&&"dragover"!=t.type||(s.dropRange=function(l,h){const p=h.target.ownerDocument,b=h.clientX,A=h.clientY;let C;return p.caretRangeFromPoint&&p.caretRangeFromPoint(b,A)?C=p.caretRangeFromPoint(b,A):h.rangeParent&&(C=p.createRange(),C.setStart(h.rangeParent,h.rangeOffset),C.collapse(!0)),C?l.domConverter.domRangeToView(C):null}(this.view,t)),this.fire(t.type,t,s)}}const gf=["figcaption","li"],mf=["ol","ul"];function ff(r){if(r.is("$text")||r.is("$textProxy"))return r.data;if(r.is("element","img")&&r.hasAttribute("alt"))return r.getAttribute("alt");if(r.is("element","br"))return"\n";let t="",e=null;for(const n of r.getChildren())t+=F1(n,e)+ff(n),e=n;return t}function F1(r,t){return t?r.is("element","li")&&!r.isEmpty&&r.getChild(0).is("containerElement")||mf.includes(r.name)&&mf.includes(t.name)?"\n\n":r.is("containerElement")||t.is("containerElement")?gf.includes(r.name)||gf.includes(t.name)?"\n":"\n\n":"":""}class fn extends Lt{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(Aa),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(t,e,n){const s=this.editor.model.getSelectedContent(e);this.fire("outputTransformation",{dataTransfer:t,content:s,method:n})}_setupPasteDrop(){const t=this.editor,e=t.model,n=t.editing.view,s=n.document;this.listenTo(s,"clipboardInput",(l,h)=>{"paste"!=h.method||t.model.canEditAt(t.model.document.selection)||l.stop()},{priority:"highest"}),this.listenTo(s,"clipboardInput",(l,h)=>{const p=h.dataTransfer;let b;if(h.content)b=h.content;else{let E="";p.getData("text/html")?E=p.getData("text/html").replace(/(\s+)<\/span>/g,(F,j)=>1==j.length?" ":j).replace(//g,""):p.getData("text/plain")&&(((A=(A=p.getData("text/plain")).replace(/&/g,"&").replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/\t/g,"    ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||A.includes("
"))&&(A=`

${A}

`),E=A),b=this.editor.data.htmlProcessor.toView(E)}var A;const C=new xt(this,"inputTransformation");this.fire(C,{content:b,dataTransfer:p,targetRanges:h.targetRanges,method:h.method}),C.stop.called&&l.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(l,h)=>{if(h.content.isEmpty)return;const p=this.editor.data.toModel(h.content,"$clipboardHolder");0!=p.childCount&&(l.stop(),e.change(()=>{this.fire("contentInsertion",{content:p,method:h.method,dataTransfer:h.dataTransfer,targetRanges:h.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(l,h)=>{h.resultRange=e.insertContent(h.content)},{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document,s=(l,h)=>{const p=h.dataTransfer;h.preventDefault(),this._fireOutputTransformationEvent(p,e.selection,l.name)};this.listenTo(n,"copy",s,{priority:"low"}),this.listenTo(n,"cut",(l,h)=>{t.model.canEditAt(t.model.document.selection)?s(l,h):h.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(l,h)=>{const p=t.data.toView(h.content);n.fire("clipboardOutput",{dataTransfer:h.dataTransfer,content:p,method:h.method})},{priority:"low"}),this.listenTo(n,"clipboardOutput",(l,h)=>{h.content.isEmpty||(h.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(h.content)),h.dataTransfer.setData("text/plain",ff(h.content))),"cut"==h.method&&t.model.deleteContent(e.selection)},{priority:"low"})}}class bf{constructor(t,e=20){this._batch=null,this.model=t,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(n,s)=>{s.isLocal&&s.isUndoable&&s!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(t){this._size+=t,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t=!1){this.isLocked&&!t||(this._batch=null,this._size=0)}}class z1 extends Jt{constructor(t,e){super(t),this._buffer=new bf(t.model,e),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,s=t.text||"",l=s.length;let h=n.selection;if(t.selection?h=t.selection:t.range&&(h=e.createSelection(t.range)),!e.canEditAt(h))return;const p=t.resultRange;e.enqueueChange(this._buffer.batch,b=>{this._buffer.lock();const A=Array.from(n.selection.getAttributes());e.deleteContent(h),s&&e.insertContent(b.createText(s,A),h),p?b.setSelection(p):h.is("documentSelection")||b.setSelection(h),this._buffer.unlock(),this._buffer.input(l)})}}const vf=["insertText","insertReplacementText"];class R1 extends Vi{constructor(t){super(t),this.focusObserver=t.getObserver(Vr),it.isAndroid&&vf.push("insertCompositionText");const e=t.document;e.on("beforeinput",(n,s)=>{if(!this.isEnabled)return;const{data:l,targetRanges:h,inputType:p,domEvent:b}=s;if(!vf.includes(p))return;this.focusObserver.flush();const A=new xt(e,"insertText");e.fire(A,new bo(t,b,{text:l,selection:t.createSelection(h)})),A.stop.called&&n.stop()}),e.on("compositionend",(n,{data:s,domEvent:l})=>{this.isEnabled&&!it.isAndroid&&s&&e.fire("insertText",new bo(t,l,{text:s,selection:e.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class kf extends Lt{static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,s=e.document.selection;n.addObserver(R1);const l=new z1(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",l),t.commands.add("input",l),this.listenTo(n.document,"insertText",(h,p)=>{n.document.isComposing||p.preventDefault();const{text:b,selection:A,resultRange:C}=p,E=Array.from(A.getRanges()).map(j=>t.editing.mapper.toModelRange(j));let P=b;if(it.isAndroid){const j=Array.from(E[0].getItems()).reduce((Y,$)=>Y+($.is("$textProxy")?$.data:""),"");j&&(j.length<=P.length?P.startsWith(j)&&(P=P.substring(j.length),E[0].start=E[0].start.getShiftedBy(j.length)):j.startsWith(P)&&(E[0].start=E[0].start.getShiftedBy(P.length),P=""))}const F={text:P,selection:e.createSelection(E)};C&&(F.resultRange=t.editing.mapper.toModelRange(C)),t.execute("insertText",F),n.scrollToTheSelection()}),it.isAndroid?this.listenTo(n.document,"keydown",(h,p)=>{!s.isCollapsed&&229==p.keyCode&&n.document.isComposing&&_f(e,l)}):this.listenTo(n.document,"compositionstart",()=>{s.isCollapsed||_f(e,l)})}}function _f(r,t){if(!t.isEnabled)return;const e=t.buffer;e.lock(),r.enqueueChange(e.batch,()=>{r.deleteContent(r.document.selection)}),e.unlock()}class wf extends Jt{constructor(t,e){super(t),this.direction=e,this._buffer=new bf(t.model,t.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,s=>{this._buffer.lock();const l=s.createSelection(t.selection||n.selection);if(!e.canEditAt(l))return;const h=t.sequence||1,p=l.isCollapsed;if(l.isCollapsed&&e.modifySelection(l,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(h))return void this._replaceEntireContentWithParagraph(s);if(this._shouldReplaceFirstBlockWithParagraph(l,h))return void this.editor.execute("paragraph",{selection:l});if(l.isCollapsed)return;let b=0;l.getFirstRange().getMinimalFlatRanges().forEach(A=>{b+=yo(A.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),e.deleteContent(l,{doNotResetEntireContent:p,direction:this.direction}),this._buffer.input(b),s.setSelection(l),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,s=e.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(s)||!e.schema.checkChild(s,"paragraph"))return!1;const l=s.getChild(0);return!l||!l.is("element","paragraph")}_replaceEntireContentWithParagraph(t){const e=this.editor.model,s=e.schema.getLimitElement(e.document.selection),l=t.createElement("paragraph");t.remove(t.createRangeIn(s)),t.insert(l,s),t.setSelection(l,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||"backward"!=this.direction||!t.isCollapsed)return!1;const s=t.getFirstPosition(),l=n.schema.getLimitElement(s),h=l.getChild(0);return s.parent==h&&!!t.containsEntireContent(h)&&!!n.schema.checkChild(l,"paragraph")&&"paragraph"!=h.name}}const _o="selection",Qr="backward",xa="forward",xf={deleteContent:{unit:_o,direction:Qr},deleteContentBackward:{unit:"codePoint",direction:Qr},deleteWordBackward:{unit:"word",direction:Qr},deleteHardLineBackward:{unit:_o,direction:Qr},deleteSoftLineBackward:{unit:_o,direction:Qr},deleteContentForward:{unit:"character",direction:xa},deleteWordForward:{unit:"word",direction:xa},deleteHardLineForward:{unit:_o,direction:xa},deleteSoftLineForward:{unit:_o,direction:xa}};class Z1 extends Vi{constructor(t){super(t);const e=t.document;let n=0;e.on("keydown",()=>{n++}),e.on("keyup",()=>{n=0}),e.on("beforeinput",(s,l)=>{if(!this.isEnabled)return;const{targetRanges:h,domEvent:p,inputType:b}=l,A=xf[b];if(!A)return;const C={direction:A.direction,unit:A.unit,sequence:n};C.unit==_o&&(C.selectionToRemove=t.createSelection(h[0])),"deleteContentBackward"===b&&(it.isAndroid&&(C.sequence=1),function(P){if(1!=P.length||P[0].isCollapsed)return!1;const F=P[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let j=0;for(const{nextPosition:Y}of F){if(Y.parent.is("$text")){const $=Y.parent.data,st=Y.offset;if(Fs($,st)||zs($,st)||bl($,st))continue;j++}else j++;if(j>1)return!0}return!1}(h)&&(C.unit=_o,C.selectionToRemove=t.createSelection(h)));const E=new go(e,"delete",h[0]);e.fire(E,new bo(t,p,C)),E.stop.called&&s.stop()}),it.isBlink&&function(s){const l=s.view,h=l.document;let p=null,b=!1;function A(E){return E==se.backspace||E==se.delete}function C(E){return E==se.backspace?Qr:xa}h.on("keydown",(E,{keyCode:P})=>{p=P,b=!1}),h.on("keyup",(E,{keyCode:P,domEvent:F})=>{const j=h.selection,Y=s.isEnabled&&P==p&&A(P)&&!j.isCollapsed&&!b;if(p=null,Y){const $=j.getFirstRange(),st=new go(h,"delete",$),ft={unit:_o,direction:C(P),selectionToRemove:j};h.fire(st,new bo(l,F,ft))}}),h.on("beforeinput",(E,{inputType:P})=>{const F=xf[P];A(p)&&F&&F.direction==C(p)&&(b=!0)},{priority:"high"}),h.on("beforeinput",(E,{inputType:P,data:F})=>{p==se.delete&&"insertText"==P&&"\x7f"==F&&E.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class Un extends Lt{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,s=t.model.document;e.addObserver(Z1),this._undoOnBackspace=!1;const l=new wf(t,"forward");t.commands.add("deleteForward",l),t.commands.add("forwardDelete",l),t.commands.add("delete",new wf(t,"backward")),this.listenTo(n,"delete",(h,p)=>{n.isComposing||p.preventDefault();const{direction:b,sequence:A,selectionToRemove:C,unit:E}=p,P="forward"===b?"deleteForward":"delete",F={sequence:A};if("selection"==E){const j=Array.from(C.getRanges()).map(Y=>t.editing.mapper.toModelRange(Y));F.selection=t.model.createSelection(j)}else F.unit=E;t.execute(P,F),e.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(h,p)=>{this._undoOnBackspace&&"backward"==p.direction&&1==p.sequence&&"codePoint"==p.unit&&(this._undoOnBackspace=!1,t.execute("undo"),p.preventDefault(),h.stop())},{context:"$capture"}),this.listenTo(s,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class U1 extends Lt{static get requires(){return[kf,Un]}static get pluginName(){return"Typing"}}function Cf(r,t){let e=r.start;return{text:Array.from(r.getWalker({ignoreElementEnd:!1})).reduce((n,{item:s})=>s.is("$text")||s.is("$textProxy")?n+s.data:(e=t.createPositionAfter(s),""),""),range:t.createRange(e,r.end)}}class yf extends(ne()){constructor(t,e){super(),this.model=t,this.testCallback=e,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",(e,{directChange:n})=>{n&&(t.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(t,"change:data",(e,n)=>{!n.isUndo&&n.isLocal&&this._evaluateTextBeforeSelection("data",{batch:n})})}_evaluateTextBeforeSelection(t,e={}){const n=this.model,s=n.document.selection,l=n.createRange(n.createPositionAt(s.focus.parent,0),s.focus),{text:h,range:p}=Cf(l,n),b=this.testCallback(h);if(!b&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!b,b){const A=Object.assign(e,{text:h,range:p});"object"==typeof b&&Object.assign(A,b),this.fire(`matched:${t}`,A)}}}class Ef extends Lt{constructor(t){super(t),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const t=this.editor,s=t.locale,l=t.model.document.selection;this.listenTo(t.editing.view.document,"arrowKey",(h,p)=>{if(!l.isCollapsed||p.shiftKey||p.altKey||p.ctrlKey)return;const b=p.keyCode==se.arrowright,A=p.keyCode==se.arrowleft;if(!b&&!A)return;const C=s.contentLanguageDirection;let E=!1;E="ltr"===C&&b||"rtl"===C&&A?this._handleForwardMovement(p):this._handleBackwardMovement(p),!0===E&&h.stop()},{context:"$text",priority:"highest"}),this.listenTo(l,"change:range",(h,p)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!p.directChange&&Yi(l.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model,s=n.document.selection,l=s.getFirstPosition();return!(this._isGravityOverridden||l.isAtStart&&jn(s,e)||!Yi(l,e)||(ya(t),jn(s,e)&&Yi(l,e,!0)?Ca(n,e):this._overrideGravity(),0))}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,s=n.document.selection,l=s.getFirstPosition();return this._isGravityOverridden?(ya(t),this._restoreGravity(),Yi(l,e,!0)?Ca(n,e):Vc(n,e,l),!0):l.isAtStart?!!jn(s,e)&&(ya(t),Vc(n,e,l),!0):!jn(s,e)&&Yi(l,e,!0)?(ya(t),Vc(n,e,l),!0):!!Tf(l,e)&&(l.isAtEnd&&!jn(s,e)&&Yi(l,e)?(ya(t),Vc(n,e,l),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,s=t.editing.view.document;t.editing.view.addObserver(Mu);let l=!1;this.listenTo(s,"mousedown",()=>{l=!0}),this.listenTo(s,"selectionChange",()=>{const h=this.attributes;if(!l||(l=!1,!n.isCollapsed)||!jn(n,h))return;const p=n.getFirstPosition();Yi(p,h)&&(p.isAtStart||Yi(p,h,!0)?Ca(e,h):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection,n=this.attributes;this.listenTo(t,"insertContent",()=>{const s=e.getFirstPosition();jn(e,n)&&Yi(s,n)&&Ca(t,n)},{priority:"low"})}_handleDeleteContentAfterNode(){const t=this.editor,e=t.model,n=e.document.selection;let l=!1,h=!1;this.listenTo(t.editing.view.document,"delete",(p,b)=>{l="backward"===b.direction},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{if(!l)return;const p=n.getFirstPosition();h=jn(n,this.attributes)&&!Tf(p,this.attributes)},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{l&&(l=!1,h||t.model.enqueueChange(()=>{const p=n.getFirstPosition();jn(n,this.attributes)&&Yi(p,this.attributes)&&(p.isAtStart||Yi(p,this.attributes,!0)?Ca(e,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(t=>t.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function jn(r,t){for(const e of t)if(r.hasAttribute(e))return!0;return!1}function Vc(r,t,e){const n=e.nodeBefore;r.change(s=>{if(n){const l=[],h=r.schema.isObject(n)&&r.schema.isInline(n);for(const[p,b]of n.getAttributes())!r.schema.checkAttribute("$text",p)||h&&!1===r.schema.getAttributeProperties(p).copyFromObject||l.push([p,b]);s.setSelectionAttribute(l)}else s.removeSelectionAttribute(t)})}function Ca(r,t){r.change(e=>{e.removeSelectionAttribute(t)})}function ya(r){r.preventDefault()}function Tf(r,t){return Yi(r.getShiftedBy(-1),t)}function Yi(r,t,e=!1){const{nodeBefore:n,nodeAfter:s}=r;for(const l of t){const h=n?n.getAttribute(l):void 0,p=s?s.getAttribute(l):void 0;if((!e||void 0!==h&&void 0!==p)&&p!==h)return!0}return!1}const Sf={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:Xr('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:Xr("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:Xr("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:Xr('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:Xr('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:Xr("'"),to:[null,"\u201a",null,"\u2019"]}},If={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},j1=["symbols","mathematical","typography","quotes"];function V1(r){return"string"==typeof r?new RegExp(`(${Qm(r)})$`):r}function q1(r){return"string"==typeof r?()=>[r]:r instanceof Array?()=>r:r}function Y1(r){return(r.textNode?r.textNode:r.nodeAfter).getAttributes()}function Xr(r){return new RegExp(`(^|\\s)(${r})([^${r}]*)(${r})$`)}function qc(r,t,e,n){return n.createRange(Df(r,t,e,!0,n),Df(r,t,e,!1,n))}function Df(r,t,e,n,s){let l=r.textNode||(n?r.nodeBefore:r.nodeAfter),h=null;for(;l&&l.getAttribute(t)==e;)h=l,l=n?l.previousSibling:l.nextSibling;return h?s.createPositionAt(h,n?"before":"after"):r}function*Mf(r,t){for(const e of t)e&&r.getAttributeProperties(e[0]).copyOnEnter&&(yield e)}class H1 extends Jt{execute(){this.editor.model.change(t=>{this.enterBlock(t),this.fire("afterExecute",{writer:t})})}enterBlock(t){const e=this.editor.model,n=e.document.selection,s=e.schema,l=n.isCollapsed,h=n.getFirstRange(),p=h.start.parent,b=h.end.parent;if(s.isLimit(p)||s.isLimit(b))return l||p!=b||e.deleteContent(n),!1;if(l){const A=Mf(t.model.schema,n.getAttributes());return Lf(t,h.start),t.setSelectionAttribute(A),!0}{const A=!(h.start.isAtStart&&h.end.isAtEnd),C=p==b;if(e.deleteContent(n,{leaveUnmerged:A}),A){if(C)return Lf(t,n.focus),!0;t.setSelection(b,0)}}return!1}}function Lf(r,t){r.split(t),r.setSelection(t.parent.nextSibling,0)}const G1={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class Pf extends Vi{constructor(t){super(t);const e=this.document;let n=!1;e.on("keydown",(s,l)=>{n=l.shiftKey}),e.on("beforeinput",(s,l)=>{if(!this.isEnabled)return;let h=l.inputType;it.isSafari&&n&&"insertParagraph"==h&&(h="insertLineBreak");const p=l.domEvent,b=G1[h];if(!b)return;const A=new go(e,"enter",l.targetRanges[0]);e.fire(A,new bo(t,p,{isSoft:b.isSoft})),A.stop.called&&s.stop()})}observe(){}stopObserving(){}}class Yc extends Lt{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(Pf),t.commands.add("enter",new H1(t)),this.listenTo(n,"enter",(s,l)=>{n.isComposing||l.preventDefault(),l.isSoft||(t.execute("enter"),e.scrollToTheSelection())},{priority:"low"})}}class W1 extends Jt{execute(){const t=this.editor.model,e=t.document;t.change(n=>{(function(s,l,h){const p=h.isCollapsed,b=h.getFirstRange(),C=b.end.parent,E=b.start.parent==C;if(p){const P=Mf(s.schema,h.getAttributes());Nf(s,l,b.end),l.removeSelectionAttribute(h.getAttributeKeys()),l.setSelectionAttribute(P)}else{const P=!(b.start.isAtStart&&b.end.isAtEnd);s.deleteContent(h,{leaveUnmerged:P}),E?Nf(s,l,h.focus):P&&l.setSelection(C,0)}})(t,n,e.selection),this.fire("afterExecute",{writer:n})})}refresh(){const t=this.editor.model;this.isEnabled=function(n,s){if(s.rangeCount>1)return!1;const l=s.anchor;if(!l||!n.checkChild(l,"softBreak"))return!1;const h=s.getFirstRange(),p=h.start.parent,b=h.end.parent;return!((Xu(p,n)||Xu(b,n))&&p!==b)}(t.schema,t.document.selection)}}function Nf(r,t,e){const n=t.createElement("softBreak");r.insertContent(n,e),t.setSelection(n,"after")}function Xu(r,t){return!r.is("rootElement")&&(t.isLimit(r)||Xu(r.parent,t))}class Q1 extends Lt{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,n=t.conversion,s=t.editing.view,l=s.document;t.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(h,{writer:p})=>p.createEmptyElement("br")}),s.addObserver(Pf),t.commands.add("shiftEnter",new W1(t)),this.listenTo(l,"enter",(h,p)=>{l.isComposing||p.preventDefault(),p.isSoft&&(t.execute("shiftEnter"),s.scrollToTheSelection())},{priority:"low"})}}class X1 extends(ie()){constructor(){super(...arguments),this._stack=[]}add(t,e){const n=this._stack,s=n[0];this._insertDescriptor(t);const l=n[0];s===l||Ku(s,l)||this.fire("change:top",{oldDescriptor:s,newDescriptor:l,writer:e})}remove(t,e){const n=this._stack,s=n[0];this._removeDescriptor(t);const l=n[0];s===l||Ku(s,l)||this.fire("change:top",{oldDescriptor:s,newDescriptor:l,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex(l=>l.id===t.id);if(Ku(t,e[n]))return;n>-1&&e.splice(n,1);let s=0;for(;e[s]&&K1(e[s],t);)s++;e.splice(s,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex(s=>s.id===t);n>-1&&e.splice(n,1)}}function Ku(r,t){return r&&t&&r.priority==t.priority&&Hc(r.classes)==Hc(t.classes)}function K1(r,t){return r.priority>t.priority||!(r.priorityHc(t.classes)}function Hc(r){return Array.isArray(r)?r.sort().join(","):r}const J1='',$1="ck-widget",Of="ck-widget_selected";function He(r){return!!r.is("element")&&!!r.getCustomProperty("widget")}function Ju(r,t,e={}){if(!r.is("containerElement"))throw new W("widget-to-widget-wrong-element-type",null,{element:r});return t.setAttribute("contenteditable","false",r),t.addClass($1,r),t.setCustomProperty("widget",!0,r),r.getFillerOffset=iA,t.setCustomProperty("widgetLabel",[],r),e.label&&(s=e.label,r.getCustomProperty("widgetLabel").push(s)),e.hasSelectionHandle&&function(n,s){const l=s.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(h){const p=this.toDomElement(h),b=new Dn;return b.set("content",J1),b.render(),p.appendChild(b.element),p});s.insert(s.createPositionAt(n,0),l),s.addClass(["ck-widget_with-selection-handle"],n)}(r,t),Bf(r,t),r;var s}function tA(r,t,e){if(t.classes&&e.addClass(Ze(t.classes),r),t.attributes)for(const n in t.attributes)e.setAttribute(n,t.attributes[n],r)}function eA(r,t,e){if(t.classes&&e.removeClass(Ze(t.classes),r),t.attributes)for(const n in t.attributes)e.removeAttribute(n,r)}function Bf(r,t,e=tA,n=eA){const s=new X1;s.on("change:top",(l,h)=>{h.oldDescriptor&&n(r,h.oldDescriptor,h.writer),h.newDescriptor&&e(r,h.newDescriptor,h.writer)}),t.setCustomProperty("addHighlight",(l,h,p)=>s.add(h,p),r),t.setCustomProperty("removeHighlight",(l,h,p)=>s.remove(h,p),r)}function Ff(r,t,e={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],r),t.setAttribute("role","textbox",r),e.label&&t.setAttribute("aria-label",e.label,r),t.setAttribute("contenteditable",r.isReadOnly?"false":"true",r),r.on("change:isReadOnly",(n,s,l)=>{t.setAttribute("contenteditable",l?"false":"true",r)}),r.on("change:isFocused",(n,s,l)=>{l?t.addClass("ck-editor__nested-editable_focused",r):t.removeClass("ck-editor__nested-editable_focused",r)}),Bf(r,t),r}function zf(r,t){const e=r.getSelectedElement();if(e){const n=wo(r);if(n)return t.createRange(t.createPositionAt(e,n))}return tm(r,t)}function iA(){return null}const Vn="widget-type-around";function Jo(r,t,e){return!!r&&He(r)&&!e.isInline(t)}function wo(r){return r.getAttribute(Vn)}var Rf=lt(4921);Rt()(Rf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Zf=["before","after"],oA=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,Uf="ck-widget__type-around_disabled";class rA extends Lt{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Yc,Un]}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",(n,s,l)=>{e.change(h=>{for(const p of e.document.roots)l?h.removeClass(Uf,p):h.addClass(Uf,p)}),l||t.model.change(h=>{h.removeSelectionAttribute(Vn)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,s=n.editing.view,l=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:l}),s.focus(),s.scrollToTheSelection()}_listenToIfEnabled(t,e,n,s){this.listenTo(t,e,(...l)=>{this.isEnabled&&n(...l)},s)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=wo(t);if(!e)return!1;const n=t.getSelectedElement();return this._insertParagraph(n,e),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,s={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",(l,h,p)=>{const b=p.mapper.toViewElement(h.item);b&&Jo(b,h.item,e)&&(function(A,C,E){const P=A.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(F){const j=this.toDomElement(F);return function(Y,$){for(const st of Zf){const ft=new Ei({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${st}`],title:$[st],"aria-hidden":"true"},children:[Y.ownerDocument.importNode(oA,!0)]});Y.appendChild(ft.render())}}(j,C),function(Y){const $=new Ei({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Y.appendChild($.render())}(j),j});A.insert(A.createPositionAt(E,"end"),P)}(p.writer,s,b),b.getCustomProperty("widgetLabel").push(()=>this.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,s=e.schema;function h(p){return`ck-widget_type-around_show-fake-caret_${p}`}this._listenToIfEnabled(t.editing.view.document,"arrowKey",(p,b)=>{this._handleArrowKeyPress(p,b)},{context:[He,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",(p,b)=>{b.directChange&&t.model.change(A=>{A.removeSelectionAttribute(Vn)})}),this._listenToIfEnabled(e.document,"change:data",()=>{const p=n.getSelectedElement();p&&Jo(t.editing.mapper.toViewElement(p),p,s)||t.model.change(b=>{b.removeSelectionAttribute(Vn)})}),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(p,b,A)=>{const C=A.writer;if(this._currentFakeCaretModelElement){const j=A.mapper.toViewElement(this._currentFakeCaretModelElement);j&&(C.removeClass(Zf.map(h),j),this._currentFakeCaretModelElement=null)}const E=b.selection.getSelectedElement();if(!E)return;const P=A.mapper.toViewElement(E);if(!Jo(P,E,s))return;const F=wo(b.selection);F&&(C.addClass(h(F),P),this._currentFakeCaretModelElement=E)}),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(p,b,A)=>{A||t.model.change(C=>{C.removeSelectionAttribute(Vn)})})}_handleArrowKeyPress(t,e){const n=this.editor,s=n.model,l=s.document.selection,h=s.schema,p=n.editing.view,b=function(E,P){const F=Ns(E,P);return"down"===F||"right"===F}(e.keyCode,n.locale.contentLanguageDirection),A=p.document.selection.getSelectedElement();let C;Jo(A,n.editing.mapper.toModelElement(A),h)?C=this._handleArrowKeyPressOnSelectedWidget(b):l.isCollapsed?C=this._handleArrowKeyPressWhenSelectionNextToAWidget(b):e.shiftKey||(C=this._handleArrowKeyPressWhenNonCollapsedSelection(b)),C&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=wo(e.document.selection);return e.change(s=>n?n!==(t?"after":"before")&&(s.removeSelectionAttribute(Vn),!0):(s.setSelectionAttribute(Vn,t?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,s=n.schema,l=e.plugins.get("Widget"),h=l._getObjectElementNextToSelection(t);return!!Jo(e.editing.mapper.toViewElement(h),h,s)&&(n.change(p=>{l._setSelectionOverElement(h),p.setSelectionAttribute(Vn,t?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,s=n.schema,l=e.editing.mapper,h=n.document.selection,p=t?h.getLastPosition().nodeBefore:h.getFirstPosition().nodeAfter;return!!Jo(l.toViewElement(p),p,s)&&(n.change(b=>{b.setSelection(p,"on"),b.setSelectionAttribute(Vn,t?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",(n,s)=>{const l=s.domTarget.closest(".ck-widget__type-around__button");if(!l)return;const h=l.classList.contains("ck-widget__type-around__button_before")?"before":"after",p=function(A,C){const E=A.closest(".ck-widget");return C.mapDomToView(E)}(l,e.domConverter),b=t.editing.mapper.toModelElement(p);this._insertParagraph(b,h),s.preventDefault(),n.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection;this._listenToIfEnabled(t.editing.view.document,"enter",(s,l)=>{if("atTarget"!=s.eventPhase)return;const h=e.getSelectedElement(),p=t.editing.mapper.toViewElement(h),b=t.model.schema;let A;this._insertParagraphAccordingToFakeCaretPosition()?A=!0:Jo(p,h,b)&&(this._insertParagraph(h,l.isSoft?"before":"after"),A=!0),A&&(l.preventDefault(),s.stop())},{context:He})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(e,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection)},{priority:"high"}),it.isAndroid?this._listenToIfEnabled(t,"keydown",(e,n)=>{229==n.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(t,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,n=t.model,s=n.schema;this._listenToIfEnabled(t.editing.view.document,"delete",(l,h)=>{if("atTarget"!=l.eventPhase)return;const p=wo(n.document.selection);if(!p)return;const b=h.direction,A=n.document.selection.getSelectedElement(),C="forward"==b;if("before"===p===C)t.execute("delete",{selection:n.createSelection(A,"on")});else{const E=s.getNearestSelectionRange(n.createPositionAt(A,p),b);if(E)if(E.isCollapsed){const P=n.createSelection(E.start);if(n.modifySelection(P,{direction:b}),P.focus.isEqual(E.start)){const F=function(j,Y){let $=Y;for(const st of Y.getAncestors({parentFirst:!0})){if(st.childCount>1||j.isLimit(st))break;$=st}return $}(s,E.start.parent);n.deleteContent(n.createSelection(F,"on"),{doNotAutoparagraph:!0})}else n.change(F=>{F.setSelection(E),t.execute(C?"deleteForward":"delete")})}else n.change(P=>{P.setSelection(E),t.execute(C?"deleteForward":"delete")})}h.preventDefault(),l.stop()},{context:He})}_enableInsertContentIntegration(){const e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(s,[l,h])=>{if(h&&!h.is("documentSelection"))return;const p=wo(n);return p?(s.stop(),e.change(b=>{const A=n.getSelectedElement(),C=e.createPositionAt(A,p),E=b.createSelection(C),P=e.insertContent(l,E);return b.setSelection(E),P})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(n,s)=>{const[,l,h={}]=s;if(l&&!l.is("documentSelection"))return;const p=wo(e);p&&(h.findOptimalPosition=p,s[3]=h)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"deleteContent",(n,[s])=>{s&&!s.is("documentSelection")||wo(e)&&n.stop()},{priority:"high"})}}function jf(r,t,e){const n=r.schema,s=r.createRangeIn(t.root),l="forward"==e?"elementStart":"elementEnd";for(const{previousPosition:h,item:p,type:b}of s.getWalker({startPosition:t,direction:e})){if(n.isLimit(p)&&!n.isInline(p))return h;if(b==l&&n.isBlock(p))return null}return null}function Vf(r,t,e){const n="backward"==e?t.end:t.start;if(r.checkChild(n,"$text"))return n;for(const{nextPosition:s}of t.getWalker({direction:e}))if(r.checkChild(s,"$text"))return s;return null}var qf=lt(3488);Rt()(qf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ea extends Lt{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[rA,Un]}init(){const t=this.editor,e=t.editing.view,n=e.document;this.editor.editing.downcastDispatcher.on("selection",(s,l,h)=>{const p=h.writer,b=l.selection;if(b.isCollapsed)return;const A=b.getSelectedElement();if(!A)return;const C=t.editing.mapper.toViewElement(A);var E;He(C)&&h.consumable.consume(b,"selection")&&p.setSelection(p.createRangeOn(C),{fake:!0,label:(E=C,E.getCustomProperty("widgetLabel").reduce((P,F)=>"function"==typeof F?P?P+". "+F():F():P?P+". "+F:F,""))})}),this.editor.editing.downcastDispatcher.on("selection",(s,l,h)=>{this._clearPreviouslySelectedWidgets(h.writer);const p=h.writer,b=p.document.selection;let A=null;for(const C of b.getRanges())for(const E of C){const P=E.item;He(P)&&!lA(P,A)&&(p.addClass(Of,P),this._previouslySelected.add(P),A=P)}},{priority:"low"}),e.addObserver(Mu),this.listenTo(n,"mousedown",(...s)=>this._onMousedown(...s)),this.listenTo(n,"arrowKey",(...s)=>{this._handleSelectionChangeOnArrowKeyPress(...s)},{context:[He,"$text"]}),this.listenTo(n,"arrowKey",(...s)=>{this._preventDefaultOnArrowKeyPress(...s)},{context:"$root"}),this.listenTo(n,"arrowKey",function sA(r){const t=r.model;return(e,n)=>{const l=n.keyCode==se.arrowdown,h=n.shiftKey,p=t.document.selection;if(n.keyCode!=se.arrowup&&!l)return;const b=l;if(h&&!(C=p).isCollapsed&&C.isBackward==b)return;var C;const A=function(C,E,P){const F=C.model;if(P){const j=E.isCollapsed?E.focus:E.getLastPosition(),Y=jf(F,j,"forward");if(!Y)return null;const $=F.createRange(j,Y),st=Vf(F.schema,$,"backward");return st?F.createRange(j,st):null}{const j=E.isCollapsed?E.focus:E.getFirstPosition(),Y=jf(F,j,"backward");if(!Y)return null;const $=F.createRange(Y,j),st=Vf(F.schema,$,"forward");return st?F.createRange(st,j):null}}(r,p,b);if(A){if(A.isCollapsed&&(p.isCollapsed||h))return;(A.isCollapsed||function(C,E,P){const F=C.model,j=C.view.domConverter;if(P){const At=F.createSelection(E.start);F.modifySelection(At),At.focus.isAtEnd||E.start.isEqual(At.focus)||(E=F.createRange(At.focus,E.end))}const Y=C.mapper.toViewRange(E),$=j.viewRangeToDom(Y),st=le.getDomRangeRects($);let ft;for(const At of st)if(void 0!==ft){if(Math.round(At.top)>=ft)return!1;ft=Math.max(ft,Math.round(At.bottom))}else ft=Math.round(At.bottom);return!0}(r,A,b))&&(t.change(C=>{const E=b?A.end:A.start;if(h){const P=t.createSelection(p.anchor);P.setFocus(E),C.setSelection(P)}else C.setSelection(E)}),e.stop(),n.preventDefault(),n.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",(s,l)=>{this._handleDelete("forward"==l.direction)&&(l.preventDefault(),s.stop())},{context:"$root"})}_onMousedown(t,e){const n=this.editor,s=n.editing.view,l=s.document;let h=e.target;if(e.domEvent.detail>=3)return void(this._selectBlockContent(h)&&e.preventDefault());if(function(b){let A=b;for(;A;){if(A.is("editableElement")&&!A.is("rootElement"))return!0;if(He(A))return!1;A=A.parent}return!1}(h)||!He(h)&&(h=h.findAncestor(He),!h))return;it.isAndroid&&e.preventDefault(),l.isFocused||s.focus();const p=n.editing.mapper.toModelElement(h);this._setSelectionOverElement(p)}_selectBlockContent(t){const e=this.editor,n=e.model,s=e.editing.mapper,l=n.schema,h=s.findMappedViewAncestor(this.editor.editing.view.createPositionAt(t,0)),p=function(b,A){for(const C of b.getAncestors({includeSelf:!0,parentFirst:!0})){if(A.checkChild(C,"$text"))return C;if(A.isLimit(C)&&!A.isObject(C))break}return null}(s.toModelElement(h),n.schema);return!!p&&(n.change(b=>{const A=l.isLimit(p)?null:function(P,F){const j=new Li({startPosition:P});for(const{item:Y}of j){if(F.isLimit(Y)||!Y.is("element"))return null;if(F.checkChild(Y,"$text"))return Y}return null}(b.createPositionAfter(p),l),C=b.createPositionAt(p,0),E=A?b.createPositionAt(A,0):b.createPositionAt(p,"end");b.setSelection(b.createRange(C,E))}),!0)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,s=this.editor.model,l=s.schema,h=s.document.selection,p=h.getSelectedElement(),b=Ns(n,this.editor.locale.contentLanguageDirection),A="down"==b||"right"==b,C="up"==b||"down"==b;if(p&&l.isObject(p)){const P=A?h.getLastPosition():h.getFirstPosition(),F=l.getNearestSelectionRange(P,A?"forward":"backward");return void(F&&(s.change(j=>{j.setSelection(F)}),e.preventDefault(),t.stop()))}if(!h.isCollapsed&&!e.shiftKey){const P=h.getFirstPosition(),F=h.getLastPosition(),j=P.nodeAfter,Y=F.nodeBefore;return void((j&&l.isObject(j)||Y&&l.isObject(Y))&&(s.change($=>{$.setSelection(A?F:P)}),e.preventDefault(),t.stop()))}if(!h.isCollapsed)return;const E=this._getObjectElementNextToSelection(A);if(E&&l.isObject(E)){if(l.isInline(E)&&C)return;this._setSelectionOverElement(E),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,s=n.schema,l=n.document.selection.getSelectedElement();l&&s.isObject(l)&&(e.preventDefault(),t.stop())}_handleDelete(t){const e=this.editor.model.document.selection;if(!this.editor.model.canEditAt(e)||!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change(s=>{let l=e.anchor.parent;for(;l.isEmpty;){const h=l;l=h.parent,s.remove(h)}this._setSelectionOverElement(n)}),!0):void 0}_setSelectionOverElement(t){this.editor.model.change(e=>{e.setSelection(e.createRangeOn(t))})}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,s=e.document.selection,l=e.createSelection(s);if(e.modifySelection(l,{direction:t?"forward":"backward"}),l.isEqual(s))return null;const h=t?l.focus.nodeBefore:l.focus.nodeAfter;return h&&n.isObject(h)?h:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(Of,e);this._previouslySelected.clear()}}function lA(r,t){return!!t&&Array.from(r.getAncestors()).includes(t)}class Gc extends Lt{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[Rc]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",n=>{(function(s){const l=s.getSelectedElement();return!(!l||!He(l))})(t.editing.view.document.selection)&&n.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:s,balloonClassName:l="ck-toolbar-container"}){if(!n.length)return void kt("widget-toolbar-no-items",{toolbarId:t});const h=this.editor,p=h.t,b=new Pu(h.locale);if(b.ariaLabel=e||p("Widget toolbar"),this._toolbarDefinitions.has(t))throw new W("widget-toolbar-duplicated",this,{toolbarId:t});const A={view:b,getRelatedElement:s,balloonClassName:l,itemsConfig:n,initialized:!1};h.ui.addToolbar(b,{isContextual:!0,beforeFocus:()=>{const C=s(h.editing.view.document.selection);C&&this._showToolbar(A,C)},afterBlur:()=>{this._hideToolbar(A)}}),this._toolbarDefinitions.set(t,A)}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const s of this._toolbarDefinitions.values()){const l=s.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&l)if(this.editor.ui.focusTracker.isFocused){const h=l.getAncestors().length;h>t&&(t=h,e=l,n=s)}else this._isToolbarVisible(s)&&this._hideToolbar(s);else this._isToolbarInBalloon(s)&&this._hideToolbar(s)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?Yf(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:t.view,position:Hf(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const n of this._toolbarDefinitions.values())if(this._isToolbarVisible(n)){const s=n.getRelatedElement(this.editor.editing.view.document.selection);Yf(this.editor,s)}}))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function Yf(r,t){const e=r.plugins.get("ContextualBalloon"),n=Hf(r,t);e.updatePosition(n)}function Hf(r,t){const n=Ai.defaultPositions;return{target:r.editing.view.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}ne(),ne();var Gf=lt(8506);Rt()(Gf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const $u=hn("px");class dA extends Wt{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",t.if("isVisible","ck-hidden",e=>!e)],style:{left:t.to("left",e=>$u(e)),top:t.to("top",e=>$u(e)),width:t.to("width",e=>$u(e))}}})}}class Wc extends Lt{constructor(){super(...arguments),this.removeDropMarkerDelayed=Bs(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Fc(t=>this._updateDropMarker(t),40),this._reconvertMarkerThrottled=Fc(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new dA,this._domEmitter=new(bi()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:t}of this._scrollables.values())t.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(t,e,n,s,l,h){this.removeDropMarkerDelayed.cancel();const p=Wf(this.editor,t,e,n,s,l,h);if(p)return h&&h.containsRange(p)?this.removeDropMarker():void this._updateDropMarkerThrottled(p)}getFinalDropRange(t,e,n,s,l,h){const p=Wf(this.editor,t,e,n,s,l,h);return this.removeDropMarker(),p}removeDropMarker(){const t=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,t.markers.has("drop-target")&&t.change(e=>{e.removeMarker("drop-target")})}_setupDropMarker(){const t=this.editor;t.ui.view.body.add(this._dropTargetLineView),t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);e.markerRange.isCollapsed?this._updateDropTargetLine(e.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change(s=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||s.updateMarker("drop-target",{range:t}):s.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(t){return t.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(e){const n=this.toDomElement(e);return n.append("\u2060",e.createElement("span"),"\u2060"),n})}_updateDropTargetLine(t){const e=this.editor.editing,n=t.start.nodeBefore,s=t.start.nodeAfter,l=t.start.parent,h=n?e.mapper.toViewElement(n):null,p=h?e.view.domConverter.mapViewToDom(h):null,b=s?e.mapper.toViewElement(s):null,A=b?e.view.domConverter.mapViewToDom(b):null,C=e.mapper.toViewElement(l),E=e.view.domConverter.mapViewToDom(C),P=this._getScrollableRect(C),{scrollX:F,scrollY:j}=Yt.window,Y=p?new le(p):null,$=A?new le(A):null,st=new le(E).excludeScrollbarsAndBorders(),ft=Y?Y.bottom:st.top,At=$?$.top:st.bottom,Ft=Yt.window.getComputedStyle(E),jt=ft<=At?(ft+At)/2:At;if(P.topp.schema.checkChild(E,P))){if(p.schema.checkChild(E,"$text"))return p.createRange(E);if(C)return Qc(r,Xf(r,C.parent),n,s)}}}else if(p.schema.isInline(A))return Qc(r,A,n,s);if(p.schema.isBlock(A))return Qc(r,A,n,s);if(p.schema.checkChild(A,"$block")){const C=Array.from(A.getChildren()).filter(F=>F.is("element")&&!hA(r,F));let E=0,P=C.length;if(0==P)return p.createRange(p.createPositionAt(A,"end"));for(;Et in r?uA(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class bA extends Lt{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(bi())}static get pluginName(){return"DragDropBlockToolbar"}init(){const t=this.editor;if(this.listenTo(t,"change:isReadOnly",(e,n,s)=>{s?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),it.isAndroid&&this.forceDisabled("noAndroidSupport"),t.plugins.has("BlockToolbar")){const e=t.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(e,"dragstart",(n,s)=>this._handleBlockDragStart(s)),this._domEmitter.listenTo(Yt.document,"dragover",(n,s)=>this._handleBlockDragging(s)),this._domEmitter.listenTo(Yt.document,"drop",(n,s)=>this._handleBlockDragging(s)),this._domEmitter.listenTo(Yt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&e.setAttribute("draggable","true"),this.on("change:isEnabled",(n,s,l)=>{e.setAttribute("draggable",l?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(t){if(!this.isEnabled)return;const e=this.editor.model,s=this.editor.editing.view,l=Array.from(e.document.selection.getSelectedBlocks()),h=e.createRange(e.createPositionBefore(l[0]),e.createPositionAfter(l[l.length-1]));e.change(p=>p.setSelection(h)),this._isBlockDragging=!0,s.focus(),s.getObserver(Aa).onDomEvent(t)}_handleBlockDragging(t){if(!this.isEnabled||!this._isBlockDragging)return;const e=t.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),n=t.clientY,s=document.elementFromPoint(e,n),l=this.editor.editing.view;var h;s&&s.closest(".ck-editor__editable")&&l.getObserver(Aa).onDomEvent((h=((b,A)=>{for(var C in A||(A={}))mA.call(A,C)&&Jf(b,C,A[C]);if(Kf)for(var C of Kf(A))fA.call(A,C)&&Jf(b,C,A[C]);return b})({},t),pA(h,gA({type:t.type,dataTransfer:t.dataTransfer,target:s,clientX:e,clientY:n,preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var $f=lt(903);Rt()($f.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class kA extends Lt{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=Bs(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(bi())}static get pluginName(){return"DragDrop"}static get requires(){return[fn,Ea,Wc,bA]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(Aa),e.addObserver(Mu),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",(n,s,l)=>{l?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(n,s,l)=>{l||this._finalizeDragging(!1)}),it.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=t.editing.view,s=n.document,l=t.plugins.get(Wc);this.listenTo(s,"dragstart",(h,p)=>{if(p.target&&p.target.is("editableElement")||(this._prepareDraggedRange(p.target),!this._draggedRange))return void p.preventDefault();this._draggingUid=Mt(),p.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",p.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const b=e.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(p.dataTransfer,b,"dragstart");const{dataTransfer:A,domTarget:C,domEvent:E}=p,{clientX:P}=E;this._updatePreview({dataTransfer:A,domTarget:C,clientX:P}),p.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(s,"dragend",(h,p)=>{this._finalizeDragging(!p.dataTransfer.isCanceled&&"move"==p.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(Yt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(s,"dragenter",()=>{this.isEnabled&&n.focus()}),this.listenTo(s,"dragleave",()=>{l.removeDropMarkerDelayed()}),this.listenTo(s,"dragging",(h,p)=>{if(!this.isEnabled)return void(p.dataTransfer.dropEffect="none");const{clientX:b,clientY:A}=p.domEvent;l.updateDropMarker(p.target,p.targetRanges,b,A,this._blockMode,this._draggedRange),this._draggedRange||(p.dataTransfer.dropEffect="copy"),it.isGecko||("copy"==p.dataTransfer.effectAllowed?p.dataTransfer.dropEffect="copy":["all","copyMove"].includes(p.dataTransfer.effectAllowed)&&(p.dataTransfer.dropEffect="move")),h.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get(Wc);this.listenTo(e,"clipboardInput",(s,l)=>{if("drop"!=l.method)return;const{clientX:h,clientY:p}=l.domEvent,b=n.getFinalDropRange(l.target,l.targetRanges,h,p,this._blockMode,this._draggedRange);return b?(this._draggedRange&&this._draggingUid!=l.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==tb(l.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(b,!0)?(this._finalizeDragging(!1),void s.stop()):void(l.targetRanges=[t.editing.mapper.toViewRange(b)])):(this._finalizeDragging(!1),void s.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(fn);t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const s=n.targetRanges.map(l=>this.editor.editing.mapper.toModelRange(l));this.editor.model.change(l=>l.setSelection(s))},{priority:"high"}),t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const s="move"==tb(n.dataTransfer);this._finalizeDragging((!n.resultRange||!n.resultRange.isCollapsed)&&s)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",(s,l)=>{if(it.isAndroid||!l)return;this._clearDraggableAttributesDelayed.cancel();let h=eb(l.target);if(it.isBlink&&!t.isReadOnly&&!h&&!n.selection.isCollapsed){const p=n.selection.getSelectedElement();p&&He(p)||(h=n.selection.editableElement)}h&&(e.change(p=>{p.setAttribute("draggable","true",h)}),this._draggableElement=t.editing.mapper.toModelElement(h))}),this.listenTo(n,"mouseup",()=>{it.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change(e=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(t){const e=this.editor,n=e.model;e.plugins.get(Wc).removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(t&&this.isEnabled&&n.change(s=>{const l=n.createSelection(this._draggedRange);n.deleteContent(l,{doNotAutoparagraph:!0});const h=l.getFirstPosition().parent;h.isEmpty&&!n.schema.checkChild(h,"$text")&&n.schema.checkChild(h,"paragraph")&&s.insertElement("paragraph",h,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(t){const e=this.editor,n=e.model,s=n.document.selection,l=t?eb(t):null;if(l){const A=e.editing.mapper.toModelElement(l);return this._draggedRange=Ni.fromRange(n.createRangeOn(A)),this._blockMode=n.schema.isBlock(A),void(e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(s.isCollapsed&&!s.getFirstPosition().parent.isEmpty)return;const h=Array.from(s.getSelectedBlocks()),p=s.getFirstRange();if(0==h.length)return void(this._draggedRange=Ni.fromRange(p));const b=ib(n,h);if(h.length>1)this._draggedRange=Ni.fromRange(b),this._blockMode=!0;else if(1==h.length){const A=p.start.isTouching(b.start)&&p.end.isTouching(b.end);this._draggedRange=Ni.fromRange(A?b:p),this._blockMode=A}n.change(A=>A.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:t,domTarget:e,clientX:n}){const s=this.editor.editing.view,h=s.domConverter.mapViewToDom(s.document.selection.editableElement),p=Yt.window.getComputedStyle(h);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=yn(Yt.document,"div",{style:"position: fixed; left: -999999px;"}),Yt.document.body.appendChild(this._previewContainer));const b=new le(h);if(h.contains(e))return;const A=parseFloat(p.paddingLeft),C=yn(Yt.document,"div");C.className="ck ck-content",C.style.width=p.width,C.style.paddingLeft=`${b.left-n+A}px`,it.isiOS&&(C.style.backgroundColor="white"),C.innerHTML=t.getData("text/html"),t.setDragImage(C,0,0),this._previewContainer.appendChild(C)}}function tb(r){return it.isGecko?r.dropEffect:["all","copyMove"].includes(r.effectAllowed)?"move":"copy"}function eb(r){if(r.is("editableElement"))return null;if(r.hasClass("ck-widget__selection-handle"))return r.findAncestor(He);if(He(r))return r;const t=r.findAncestor(e=>He(e)||e.is("editableElement"));return He(t)?t:null}function ib(r,t){const e=t[0],n=t[t.length-1],s=e.getCommonAncestor(n),l=r.createPositionBefore(e),h=r.createPositionAfter(n);if(s&&s.is("element")&&!r.schema.isLimit(s)){const p=r.createRangeOn(s),b=l.isTouching(p.start),A=h.isTouching(p.end);if(b&&A)return ib(r,[s])}return r.createRange(l,h)}class _A extends Lt{static get pluginName(){return"PastePlainText"}static get requires(){return[fn]}init(){const t=this.editor,e=t.model,n=t.editing.view,s=n.document,l=e.document.selection;let h=!1;n.addObserver(Aa),this.listenTo(s,"keydown",(p,b)=>{h=b.shiftKey}),t.plugins.get(fn).on("contentInsertion",(p,b)=>{(h||function(A,C){if(A.childCount>1)return!1;const E=A.getChild(0);return!C.isObject(E)&&0==Array.from(E.getAttributeKeys()).length}(b.content,e.schema))&&e.change(A=>{const C=Array.from(l.getAttributes()).filter(([P])=>e.schema.getAttributeProperties(P).isFormatting);l.isCollapsed||e.deleteContent(l,{doNotAutoparagraph:!0}),C.push(...l.getAttributes());const E=A.createRangeIn(b.content);for(const P of E.getItems())P.is("$textProxy")&&A.setAttributes(C,P)})})}}class nb extends Lt{static get pluginName(){return"Clipboard"}static get requires(){return[fn,kA,_A]}}class wA extends Jt{constructor(t){super(t),this.affectsData=!1}execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!ob(t.schema,n))do{if(n=n.parent,!n)return}while(!ob(t.schema,n));t.change(s=>{s.setSelection(n,"in")})}}function ob(r,t){return r.isLimit(t)&&(r.checkChild(t,"$text")||r.checkChild(t,"paragraph"))}const AA=Vo("Ctrl+A");class xA extends Lt{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new wA(t)),this.listenTo(e,"keydown",(n,s)=>{so(s)===AA&&(t.execute("selectAll"),s.preventDefault())})}}class CA extends Lt{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",e=>{const n=t.commands.get("selectAll"),s=new ve(e);return s.set({label:(0,e.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),s.bind("isEnabled").to(n,"isEnabled"),this.listenTo(s,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),s})}}class yA extends Lt{static get requires(){return[xA,CA]}static get pluginName(){return"SelectAll"}}var EA=Object.defineProperty,rb=Object.getOwnPropertySymbols,TA=Object.prototype.hasOwnProperty,SA=Object.prototype.propertyIsEnumerable,sb=(r,t,e)=>t in r?EA(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class ab extends Jt{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,n)=>{n[1]=((l,h)=>{for(var p in h||(h={}))TA.call(h,p)&&sb(l,p,h[p]);if(rb)for(var p of rb(h))SA.call(h,p)&&sb(l,p,h[p]);return l})({},n[1]);const s=n[1];s.batchType||(s.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,n)=>{n[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const s=this.editor.model,l=s.document,h=[],p=t.map(A=>A.getTransformedByOperations(n)),b=p.flat();for(const A of p){const C=A.filter(E=>E.root!=l.graveyard).filter(E=>!DA(E,b));C.length&&(IA(C),h.push(C[0]))}h.length&&s.change(A=>{A.setSelection(h,{backward:e})})}_undo(t,e){const n=this.editor.model,s=n.document;this._createdBatches.add(e);const l=t.operations.slice().filter(h=>h.isDocumentOperation);l.reverse();for(const h of l){const b=Array.from(s.history.getOperations(h.baseVersion+1)),A=C_([h.getReversed()],b,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let C of A){const E=C.affectedSelectable;E&&!n.canEditAt(E)&&(C=new Ve(C.baseVersion)),e.addOperation(C),n.applyOperation(C),s.history.setOperationAsUndone(h,C)}}}}function IA(r){r.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;te!==r&&e.containsRange(r,!0))}class MA extends ab{execute(t=null){const e=t?this._stack.findIndex(l=>l.batch==t):this._stack.length-1,n=this._stack.splice(e,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(n.batch,s);const l=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,l)}),this.fire("revert",n.batch,s),this.refresh()}}class LA extends ab{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const s=this.editor.model.document.history.getOperations(t.batch.operations[t.batch.operations.length-1].baseVersion+1);this._restoreSelection(t.selection.ranges,t.selection.isBackward,s),this._undo(t.batch,e)}),this.refresh()}}class PA extends Lt{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const t=this.editor;this._undoCommand=new MA(t),this._redoCommand=new LA(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(e,n)=>{const s=n[0];if(!s.isDocumentOperation)return;const l=s.batch,h=this._redoCommand.createdBatches.has(l),p=this._undoCommand.createdBatches.has(l);this._batchRegistry.has(l)||(this._batchRegistry.add(l),l.isUndoable&&(h?this._undoCommand.addBatch(l):p||(this._undoCommand.addBatch(l),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,n,s)=>{this._redoCommand.addBatch(s)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}const lb='',cb='';class NA extends Lt{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,s="ltr"==e.uiLanguageDirection?lb:cb,l="ltr"==e.uiLanguageDirection?cb:lb;this._addButton("undo",n("Undo"),"CTRL+Z",s),this._addButton("redo",n("Redo"),"CTRL+Y",l)}_addButton(t,e,n,s){const l=this.editor;l.ui.componentFactory.add(t,h=>{const p=l.commands.get(t),b=new ve(h);return b.set({label:e,icon:s,keystroke:n,tooltip:!0}),b.bind("isEnabled").to(p,"isEnabled"),this.listenTo(b,"execute",()=>{l.execute(t),l.editing.view.focus()}),b})}}class db extends Lt{static get requires(){return[PA,NA]}static get pluginName(){return"Undo"}}class OA extends(ne()){constructor(){super();const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return this.total=t.size,new Promise((n,s)=>{e.onload=()=>{const l=e.result;this._data=l,n(l)},e.onerror=()=>{s("error")},e.onabort=()=>{s("aborted")},this._reader.readAsDataURL(t)})}abort(){this._reader.abort()}}class sn extends Lt{constructor(){super(...arguments),this.loaders=new di,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[em]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(t,e)=>e?t/e*100:0)}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return kt("filerepository-no-upload-adapter"),null;const e=new hb(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then(n=>{this._loadersMap.set(n,e)}).catch(()=>{}),e.on("change:uploaded",()=>{let n=0;for(const s of this.loaders)n+=s.uploaded;this.uploaded=n}),e.on("change:uploadTotal",()=>{let n=0;for(const s of this.loaders)s.uploadTotal&&(n+=s.uploadTotal);this.uploadTotal=n}),e}destroyLoader(t){const e=t instanceof hb?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach((n,s)=>{n===e&&this._loadersMap.delete(s)})}_updatePendingAction(){const t=this.editor.plugins.get(em);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=s=>`${e("Upload in progress")} ${parseInt(s)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}class hb extends(ne()){constructor(t,e){super(),this.id=Mt(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new OA,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(n,s)=>s?n/s*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(t=>this._filePromiseWrapper?t:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new W("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(t=>this._reader.read(t)).then(t=>{if("reading"!==this.status)throw this.status;return this.status="idle",t}).catch(t=>{throw"aborted"===t?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:t)})}upload(){if("idle"!=this.status)throw new W("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(t=>(this.uploadResponse=t,this.status="idle",t)).catch(t=>{throw"aborted"===this.status?"aborted":(this.status="error",t)})}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise((n,s)=>{e.rejecter=s,e.isFulfilled=!1,t.then(l=>{e.isFulfilled=!0,n(l)}).catch(l=>{e.isFulfilled=!0,s(l)})}),e}}class BA extends ve{constructor(t){super(t),this.buttonView=this,this._fileInputView=new FA(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",()=>{this._fileInputView.open()}),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}class FA extends Wt{constructor(t){super(t),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const ub="ckCsrfToken";class RA{constructor(t,e,n){this.loader=t,this.url=e,this.t=n}upload(){return this.loader.file.then(t=>new Promise((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}_initListeners(t,e,n){const s=this.xhr,l=this.loader,h=(0,this.t)("Cannot upload file:")+` ${n.name}.`;s.addEventListener("error",()=>e(h)),s.addEventListener("abort",()=>e()),s.addEventListener("load",()=>{const p=s.response;if(!p||!p.uploaded)return e(p&&p.error&&p.error.message?p.error.message:h);t({default:p.url})}),s.upload&&s.upload.addEventListener("progress",p=>{p.lengthComputable&&(l.uploadTotal=p.total,l.uploaded=p.loaded)})}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",function zA(){let r=function(n){n=n.toLowerCase();const s=document.cookie.split(";");for(const l of s){const h=l.split("=");if(decodeURIComponent(h[0].trim().toLowerCase())===n)return decodeURIComponent(h[1])}return null}(ub);var e;return r&&40==r.length||(r=function(n){let s="";const l=new Uint8Array(40);window.crypto.getRandomValues(l);for(let h=0;h.5?p.toUpperCase():p}return s}(),e=r,document.cookie=encodeURIComponent(ub)+"="+encodeURIComponent(e)+";path=/"),r}()),this.xhr.send(e)}}function Ao(r,t,e,n){let s,l=null;"function"==typeof n?s=n:(l=r.commands.get(n),s=()=>{r.execute(n)}),r.model.document.on("change:data",(h,p)=>{if(l&&!l.isEnabled||!t.isEnabled)return;const b=Oe(r.model.document.selection.getRanges());if(!b.isCollapsed||p.isUndo||!p.isLocal)return;const A=Array.from(r.model.document.differ.getChanges()),C=A[0];if(1!=A.length||"insert"!==C.type||"$text"!=C.name||1!=C.length)return;const E=C.position.parent;if(E.is("element","codeBlock")||E.is("element","listItem")&&"function"!=typeof n&&!["numberedList","bulletedList","todoList"].includes(n)||l&&!0===l.value)return;const P=E.getChild(0),F=r.model.createRangeOn(P);if(!F.containsRange(b)&&!b.end.isEqual(F.end))return;const j=e.exec(P.data.substr(0,b.end.offset));j&&r.model.enqueueChange(Y=>{const $=Y.createPositionAt(E,0),st=Y.createPositionAt(E,j[0].length),ft=new Ni($,st);if(!1!==s({match:j})){Y.remove(ft);const At=r.model.document.selection.getFirstRange(),Ft=Y.createRangeIn(E);!E.isEmpty||Ft.isEqual(At)||Ft.containsRange(At,!0)||Y.remove(E)}ft.detach(),r.model.enqueueChange(()=>{r.plugins.get("Delete").requestUndoOnBackspace()})})})}function Kr(r,t,e,n){let s,l;e instanceof RegExp?s=e:l=e,l=l||(h=>{let p;const b=[],A=[];for(;null!==(p=s.exec(h))&&!(p&&p.length<4);){let{index:C,1:E,2:P,3:F}=p;C+=p[0].length-(E+P+F).length;const $=[C+E.length+P.length,C+E.length+P.length+F.length];b.push([C,C+E.length]),b.push($),A.push([C+E.length,C+E.length+P.length])}return{remove:b,format:A}}),r.model.document.on("change:data",(h,p)=>{if(p.isUndo||!p.isLocal||!t.isEnabled)return;const b=r.model,A=b.document.selection;if(!A.isCollapsed)return;const C=Array.from(b.document.differ.getChanges()),E=C[0];if(1!=C.length||"insert"!==E.type||"$text"!=E.name||1!=E.length)return;const P=A.focus,F=P.parent,{text:j,range:Y}=function(At,Ft){let jt=At.start;return{text:Array.from(At.getItems()).reduce((ce,ze)=>!ze.is("$text")&&!ze.is("$textProxy")||ze.getAttribute("code")?(jt=Ft.createPositionAfter(ze),""):ce+ze.data,""),range:Ft.createRange(jt,At.end)}}(b.createRange(b.createPositionAt(F,0),P),b),$=l(j),st=gb(Y.start,$.format,b),ft=gb(Y.start,$.remove,b);st.length&&ft.length&&b.enqueueChange(At=>{if(!1!==n(At,st)){for(const Ft of ft.reverse())At.remove(Ft);b.enqueueChange(()=>{r.plugins.get("Delete").requestUndoOnBackspace()})}})})}function gb(r,t,e){return t.filter(n=>void 0!==n[0]&&void 0!==n[1]).map(n=>e.createRange(r.getShiftedBy(n[0]),r.getShiftedBy(n[1])))}function Xc(r,t){return(e,n)=>{if(!r.commands.get(t).isEnabled)return!1;const s=r.model.schema.getValidRanges(n,t);for(const l of s)e.setAttribute(t,!0,l);e.removeSelectionAttribute(t)}}class mb extends Jt{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,s=void 0===t.forceValue?!this.value:t.forceValue;e.change(l=>{if(n.isCollapsed)s?l.setSelectionAttribute(this.attributeKey,!0):l.removeSelectionAttribute(this.attributeKey);else{const h=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const p of h)s?l.setAttribute(this.attributeKey,s,p):l.removeAttribute(this.attributeKey,p)}})}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const s of n.getRanges())for(const l of s.getItems())if(e.checkAttribute(l,this.attributeKey))return l.hasAttribute(this.attributeKey);return!1}}const Jr="bold";class ZA extends Lt{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Jr}),t.model.schema.setAttributeProperties(Jr,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Jr,view:"strong",upcastAlso:["b",e=>{const n=e.getStyle("font-weight");return n&&("bold"==n||Number(n)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(Jr,new mb(t,Jr)),t.keystrokes.set("CTRL+B",Jr)}}const tp="bold";class UA extends Lt{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(tp,n=>{const s=t.commands.get(tp),l=new ve(n);return l.set({label:e("Bold"),icon:Ae.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute(tp),t.editing.view.focus()}),l})}}var fb=lt(8603);Rt()(fb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const $r="italic";class VA extends Lt{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:$r}),t.model.schema.setAttributeProperties($r,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:$r,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add($r,new mb(t,$r)),t.keystrokes.set("CTRL+I",$r)}}const ep="italic";class qA extends Lt{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(ep,n=>{const s=t.commands.get(ep),l=new ve(n);return l.set({label:e("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute(ep),t.editing.view.focus()}),l})}}class YA extends Jt{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,l=Array.from(e.document.selection.getSelectedBlocks()),h=void 0===t.forceValue?!this.value:t.forceValue;e.change(p=>{if(h){const b=l.filter(A=>Kc(A)||vb(n,A));this._applyQuote(p,b)}else this._removeQuote(p,l.filter(Kc))})}_getValue(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!Kc(t))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.schema,n=Oe(this.editor.model.document.selection.getSelectedBlocks());return!!n&&vb(e,n)}_removeQuote(t,e){bb(t,e).reverse().forEach(n=>{if(n.start.isAtStart&&n.end.isAtEnd)return void t.unwrap(n.start.parent);if(n.start.isAtStart){const l=t.createPositionBefore(n.start.parent);return void t.move(n,l)}n.end.isAtEnd||t.split(n.end);const s=t.createPositionAfter(n.end.parent);t.move(n,s)})}_applyQuote(t,e){const n=[];bb(t,e).reverse().forEach(s=>{let l=Kc(s.start);l||(l=t.createElement("blockQuote"),t.wrap(s,l)),n.push(l)}),n.reverse().reduce((s,l)=>s.nextSibling==l?(t.merge(t.createPositionAfter(s)),s):l)}}function Kc(r){return"blockQuote"==r.parent.name?r.parent:null}function bb(r,t){let e,n=0;const s=[];for(;n{const p=t.model.document.differ.getChanges();for(const b of p)if("insert"==b.type){const A=b.position.nodeAfter;if(!A)continue;if(A.is("element","blockQuote")&&A.isEmpty)return h.remove(A),!0;if(A.is("element","blockQuote")&&!e.checkChild(b.position,A))return h.unwrap(A),!0;if(A.is("element")){const C=h.createRangeIn(A);for(const E of C.getItems())if(E.is("element","blockQuote")&&!e.checkChild(h.createPositionBefore(E),E))return h.unwrap(E),!0}}else if("remove"==b.type){const A=b.position.parent;if(A.is("element","blockQuote")&&A.isEmpty)return h.remove(A),!0}return!1});const n=this.editor.editing.view.document,s=t.model.document.selection,l=t.commands.get("blockQuote");this.listenTo(n,"enter",(h,p)=>{!s.isCollapsed||!l.value||s.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),p.preventDefault(),h.stop())},{context:"blockquote"}),this.listenTo(n,"delete",(h,p)=>{if("backward"!=p.direction||!s.isCollapsed||!l.value)return;const b=s.getLastPosition().parent;b.isEmpty&&!b.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),p.preventDefault(),h.stop())},{context:"blockquote"})}}var kb=lt(3062);Rt()(kb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class WA extends Lt{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",n=>{const s=t.commands.get("blockQuote"),l=new ve(n);return l.set({label:e("Block quote"),icon:Ae.quote,tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute("blockQuote"),t.editing.view.focus()}),l})}}class QA extends Lt{static get pluginName(){return"CKBoxUI"}afterInit(){const t=this.editor,e=t.commands.get("ckbox");if(!e)return;const n=t.t;if(t.ui.componentFactory.add("ckbox",s=>{const l=new ve(s);return l.set({label:n("Open file manager"),icon:'',tooltip:!0}),l.bind("isOn","isEnabled").to(e,"value","isEnabled"),l.on("execute",()=>{t.execute("ckbox")}),l}),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI");s.registerIntegration({name:"assetManager",observable:e,buttonViewCreator:()=>{const l=this.editor.ui.componentFactory.create("ckbox");return l.icon=Ae.imageAssetManager,l.bind("label").to(s,"isImageSelected",h=>n(h?"Replace image with file manager":"Insert image with file manager")),l},formViewCreator:()=>{const l=this.editor.ui.componentFactory.create("ckbox");return l.icon=Ae.imageAssetManager,l.withText=!0,l.bind("label").to(s,"isImageSelected",h=>n(h?"Replace with file manager":"Insert with file manager")),l.on("execute",()=>{s.dropdownView.isOpen=!1}),l}})}}}var XA=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],Ta=r=>{let t=0;for(let e=0;e{let t=r/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},np=r=>{let t=Math.max(0,Math.min(1,r));return t<=.0031308?Math.trunc(12.92*t*255+.5):Math.trunc(255*(1.055*Math.pow(t,.4166666666666667)-.055)+.5)},op=(r,t)=>(r<0?-1:1)*Math.pow(Math.abs(r),t),_b=class extends Error{constructor(r){super(r),this.name="ValidationError",this.message=r}},JA=r=>{let t=r>>8&255,e=255&r;return[ip(r>>16),ip(t),ip(e)]},$A=(r,t)=>{let e=Math.floor(r/361),n=Math.floor(r/19)%19,s=r%19;return[op((e-9)/9,2)*t,op((n-9)/9,2)*t,op((s-9)/9,2)*t]},ex=Object.defineProperty,wb=Object.getOwnPropertySymbols,ix=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,Ab=(r,t,e)=>t in r?ex(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;function xb(r){const t=[];let e=0;for(const s in r){const l=parseInt(s,10);isNaN(l)||(l>e&&(e=l),t.push(`${r[s]} ${s}w`))}const n=[{srcset:t.join(","),sizes:`(max-width: ${e}px) 100vw, ${e}px`,type:"image/webp"}];return{imageFallbackUrl:r.default,imageSources:n}}function Cb({url:r,method:t="GET",data:e,onUploadProgress:n,signal:s,authorization:l}){const h=new XMLHttpRequest;h.open(t,r.toString()),h.setRequestHeader("Authorization",l),h.setRequestHeader("CKBox-Version","CKEditor 5"),h.responseType="json";const p=()=>{h.abort()};return new Promise((b,A)=>{s.throwIfAborted(),s.addEventListener("abort",p),h.addEventListener("loadstart",()=>{s.addEventListener("abort",p)}),h.addEventListener("loadend",()=>{s.removeEventListener("abort",p)}),h.addEventListener("error",()=>{A()}),h.addEventListener("abort",()=>{A()}),h.addEventListener("load",()=>{const C=h.response;if(!C||C.statusCode>=400)return A(C&&C.message);b(C)}),n&&h.upload.addEventListener("progress",C=>{n(C)}),h.send(e)})}const ox={"image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};var sx=Object.defineProperty,yb=Object.getOwnPropertySymbols,ax=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,Eb=(r,t,e)=>t in r?sx(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Tb=(r,t)=>{for(var e in t||(t={}))ax.call(t,e)&&Eb(r,e,t[e]);if(yb)for(var e of yb(t))lx.call(t,e)&&Eb(r,e,t[e]);return r};class cx extends Jt{constructor(t){super(t),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");return!(!t.isEnabled&&!e.isEnabled)}_prepareOptions(){const t=this.editor.config.get("ckbox");return{theme:t.theme,language:t.language,tokenUrl:t.tokenUrl,serviceOrigin:t.serviceOrigin,forceDemoLabel:t.forceDemoLabel,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:e=>this.fire("ckbox:choose",e)}}}_initListeners(){const t=this.editor,e=t.model,n=!t.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=yn(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null,t.editing.view.focus())}),this.on("ckbox:choose",(s,l)=>{if(!this.isEnabled)return;const h=t.commands.get("insertImage"),p=t.commands.get("link"),b=function({assets:C,isImageAllowed:E,isLinkAllowed:P}){return C.map(F=>function(j){const Y=j.data.metadata;return!!Y&&Y.width&&Y.height}(F)?{id:F.data.id,type:"image",attributes:dx(F)}:{id:F.data.id,type:"link",attributes:hx(F)}).filter(F=>"image"===F.type?E:P)}({assets:l,isImageAllowed:h.isEnabled,isLinkAllowed:p.isEnabled}),A=b.length;0!==A&&(e.change(C=>{for(const E of b)this._insertAsset(E,E===b[A-1],C,1===A),n&&(setTimeout(()=>this._chosenAssets.delete(E),1e3),this._chosenAssets.add(E))}),t.editing.view.focus())}),this.listenTo(t,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(t,e,n,s){const l=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),"image"===t.type?this._insertImage(t):this._insertLink(t,n,s),e||n.setSelection(l.getLastPosition())}_insertImage(t){const e=this.editor,{imageFallbackUrl:n,imageSources:s,imageTextAlternative:l,imageWidth:h,imageHeight:p,imagePlaceholder:b}=t.attributes;e.execute("insertImage",{source:Tb({src:n,sources:s,alt:l,width:h,height:p},b?{placeholder:b}:null)})}_insertLink(t,e,n){const s=this.editor,l=s.model,h=l.document.selection,{linkName:p,linkHref:b}=t.attributes;if(h.isCollapsed){const A=ri(h.getAttributes()),C=e.createText(p,A);if(!n){const P=h.getLastPosition(),F=P.parent;"paragraph"===F.name&&F.isEmpty||s.execute("insertParagraph",{position:P});const j=l.insertContent(C);return e.setSelection(j),void s.execute("link",b)}const E=l.insertContent(C);e.setSelection(E)}s.execute("link",b)}}function dx(r){const{imageFallbackUrl:t,imageSources:e}=xb(r.data.imageUrls),{description:n,width:s,height:l,blurHash:h}=r.data.metadata,p=function(b){if(b)try{const A="32px",C=document.createElement("canvas");C.setAttribute("width",A),C.setAttribute("height",A);const E=C.getContext("2d");if(!E)return;const P=E.createImageData(32,32),F=((r,t,e,n)=>{(r=>{if(!r||r.length<6)throw new _b("The blurhash string must be at least 6 characters");let t=Ta(r[0]),e=Math.floor(t/9)+1,n=t%9+1;if(r.length!==4+2*n*e)throw new _b(`blurhash length mismatch: length is ${r.length} but it should be ${4+2*n*e}`)})(r),n|=1;let s=Ta(r[0]),l=Math.floor(s/9)+1,h=s%9+1,p=(Ta(r[1])+1)/166,b=new Array(h*l);for(let E=0;Enew Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class Sb extends Lt{static get pluginName(){return"CKBoxUtils"}static get requires(){return["CloudServices"]}init(){return rp(this,null,function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;t.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:t.locale.uiLanguage,theme:"lark",tokenUrl:t.config.get("cloudServices.tokenUrl")});const s=t.plugins.get("CloudServices"),l=t.config.get("cloudServices.tokenUrl"),h=t.config.get("ckbox.tokenUrl");if(!h)throw new W("ckbox-plugin-missing-token-url",this);this._token=h==l?s.token:yield s.registerTokenUrl(h)})}getToken(){return this._token}getWorkspaceId(){const t=(0,this.editor.t)("Cannot access default workspace."),e=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),n=function(s,l){const[,h]=s.value.split("."),p=JSON.parse(atob(h)),b=p.auth&&p.auth.ckbox&&p.auth.ckbox.workspaces||[p.aud];return l?"superadmin"==(p.auth&&p.auth.ckbox&&p.auth.ckbox.role)||b.includes(l)?l:null:b[0]}(this._token,e);if(null==n)throw Pt("ckbox-access-default-workspace-error"),t;return n}getCategoryIdForFile(t,e){return rp(this,null,function*(){const n=(0,this.editor.t)("Cannot determine a category for the uploaded file."),s=this.editor.config.get("ckbox.defaultUploadCategories"),l=this._getAvailableCategories(e),h="string"==typeof t?(p=yield function rx(r,t){return e=this,s=function*(){try{const l=yield fetch(r,((h,p)=>{for(var b in p||(p={}))ix.call(p,b)&&Ab(h,b,p[b]);if(wb)for(var b of wb(p))nx.call(p,b)&&Ab(h,b,p[b]);return h})({method:"HEAD",cache:"force-cache"},t));return l.ok&&l.headers.get("content-type")||""}catch{return""}},new Promise((l,h)=>{var p=C=>{try{A(s.next(C))}catch(E){h(E)}},b=C=>{try{A(s.throw(C))}catch(E){h(E)}},A=C=>C.done?l(C.value):Promise.resolve(C.value).then(p,b);A((s=s.apply(e,null)).next())});var e,s}(t,e),ox[p]):function(C){const E=C.name,P=new RegExp("\\.(?[^.]+)$");return E.match(P).groups.ext.toLowerCase()}(t);var p;const b=yield l;if(!b)throw n;if(s){const C=Object.keys(s).find(E=>s[E].find(P=>P.toLowerCase()==h));if(C){const E=b.find(P=>P.id===C||P.name===C);if(!E)throw n;return E.id}}const A=b.find(C=>C.extensions.find(E=>E.toLowerCase()==h));if(!A)throw n;return A.id})}_getAvailableCategories(t){return rp(this,null,function*(){const e=this.editor,n=this._token,{signal:s}=t,l=e.config.get("ckbox.serviceOrigin"),h=this.getWorkspaceId();try{const b=[];let A,C=0;do{const E=yield p(C);b.push(...E.items),A=E.totalCount-(C+50),C+=50}while(A>0);return b}catch{return s.throwIfAborted(),void Pt("ckbox-fetch-category-http-error")}function p(b){const A=new URL("categories",l);return A.searchParams.set("limit",50..toString()),A.searchParams.set("offset",b.toString()),A.searchParams.set("workspaceId",h),Cb({url:A,signal:s,authorization:n.value})}})}}var sp=(r,t,e)=>new Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class px extends Lt{static get requires(){return["ImageUploadEditing","ImageUploadProgress",sn,Ib]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return sp(this,null,function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;const s=t.plugins.get(sn),l=t.plugins.get(Sb);s.createUploadAdapter=b=>new gx(b,t,l);const h=!t.config.get("ckbox.ignoreDataId"),p=t.plugins.get("ImageUploadEditing");h&&p.on("uploadComplete",(b,{imageElement:A,data:C})=>{t.model.change(E=>{E.setAttribute("ckboxImageId",C.ckboxImageId,A)})})})}}class gx{constructor(t,e,n){this.loader=t,this.token=n.getToken(),this.ckboxUtils=n,this.editor=e,this.controller=new AbortController,this.serviceOrigin=e.config.get("ckbox.serviceOrigin")}upload(){return sp(this,null,function*(){const t=this.ckboxUtils,e=this.editor.t,n=yield this.loader.file,s=yield t.getCategoryIdForFile(n,{signal:this.controller.signal}),l=new URL("assets",this.serviceOrigin),h=new FormData;return l.searchParams.set("workspaceId",t.getWorkspaceId()),h.append("categoryId",s),h.append("file",n),Cb({method:"POST",url:l,data:h,onUploadProgress:p=>{p.lengthComputable&&(this.loader.uploadTotal=p.total,this.loader.uploaded=p.loaded)},signal:this.controller.signal,authorization:this.token.value}).then(p=>sp(this,null,function*(){const b=xb(p.imageUrls);return{ckboxImageId:p.id,default:b.imageFallbackUrl,sources:b.imageSources}})).catch(()=>{const p=e("Cannot upload file:")+` ${n.name}.`;return Promise.reject(p)})})}abort(){this.controller.abort()}}class Ib extends Lt{static get pluginName(){return"CKBoxEditing"}static get requires(){return["LinkEditing","PictureEditing",px,Sb]}init(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;(e||n)&&(this._checkImagePlugins(),t.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),n&&t.commands.add("ckbox",new cx(t)))}_checkImagePlugins(){const t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||Pt("ckbox-plugin-image-feature-missing",t)}_initSchema(){const t=this.editor.model.schema;t.extend("$text",{allowAttributes:"ckboxLinkId"}),t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.addAttributeCheck((e,n)=>{if(!e.last.getAttribute("linkHref")&&"ckboxLinkId"===n)return!1})}_initConversion(){const t=this.editor;t.conversion.for("downcast").add(n=>{n.on("attribute:ckboxLinkId:imageBlock",(s,l,h)=>{const{writer:p,mapper:b,consumable:A}=h;if(!A.consume(l.item,s.name))return;const C=[...b.toViewElement(l.item).getChildren()].find(E=>"a"===E.name);C&&(l.item.hasAttribute("ckboxLinkId")?p.setAttribute("data-ckbox-resource-id",l.item.getAttribute("ckboxLinkId"),C):p.removeAttribute("data-ckbox-resource-id",C))},{priority:"low"}),n.on("attribute:ckboxLinkId",(s,l,h)=>{const{writer:p,mapper:b,consumable:A}=h;if(A.consume(l.item,s.name)){if(l.attributeOldValue){const C=Db(p,l.attributeOldValue);p.unwrap(b.toViewRange(l.range),C)}if(l.attributeNewValue){const C=Db(p,l.attributeNewValue);l.item.is("selection")?p.wrap(p.document.selection.getFirstRange(),C):p.wrap(b.toViewRange(l.range),C)}}},{priority:"low"})}),t.conversion.for("upcast").add(n=>{n.on("element:a",(s,l,h)=>{const{writer:p,consumable:b}=h;if(!l.viewItem.getAttribute("href")||!b.consume(l.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const A=l.viewItem.getAttribute("data-ckbox-resource-id");if(A)if(l.modelRange)for(let C of l.modelRange.getItems())C.is("$textProxy")&&(C=C.textNode),fx(C)&&p.setAttribute("ckboxLinkId",A,C);else p.setAttribute("ckboxLinkId",A,l.modelCursor.nodeBefore||l.modelCursor.parent)},{priority:"low"})}),t.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),t.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:n=>n.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}});const e=t.commands.get("replaceImageSource");e&&this.listenTo(e,"cleanupImage",(n,[s,l])=>{s.removeAttribute("ckboxImageId",l)})}_initFixers(){const t=this.editor,e=t.model,n=e.document.selection;var s;e.document.registerPostFixer((s=t,l=>{let h=!1;const p=s.model,b=s.commands.get("ckbox");if(!b)return h;for(const A of p.document.differ.getChanges()){if("insert"!==A.type&&"attribute"!==A.type)continue;const C="insert"===A.type?new wt(A.position,A.position.getShiftedBy(A.length)):A.range,E="attribute"===A.type&&"linkHref"===A.attributeKey&&null===A.attributeNewValue;for(const P of C.getItems()){if(E&&P.hasAttribute("ckboxLinkId")){l.removeAttribute("ckboxLinkId",P),h=!0;continue}const F=mx(P,b._chosenAssets);for(const j of F){const Y="image"===j.type?"ckboxImageId":"ckboxLinkId";j.id!==P.getAttribute(Y)&&(l.setAttribute(Y,j.id,P),h=!0)}}}return h})),e.document.registerPostFixer(function(s){return l=>!(s.hasAttribute("linkHref")||!s.hasAttribute("ckboxLinkId")||(l.removeSelectionAttribute("ckboxLinkId"),0))}(n))}}function mx(r,t){const e=r.is("element","imageInline")||r.is("element","imageBlock"),n=r.hasAttribute("linkHref");return[...t].filter(s=>"image"===s.type&&e?s.attributes.imageFallbackUrl===r.getAttribute("src"):"link"===s.type&&n?s.attributes.linkHref===r.getAttribute("linkHref"):void 0)}function Db(r,t){const e=r.createAttributeElement("a",{"data-ckbox-resource-id":t},{priority:5});return r.setCustomProperty("link",!0,e),e}function fx(r){return!!r.is("$text")||!(!r.is("element","imageInline")&&!r.is("element","imageBlock"))}var Mb=lt(443);Rt()(Mb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class vx extends Lt{static get pluginName(){return"CKFinderUI"}init(){const t=this.editor,n=t.t;if(t.ui.componentFactory.add("ckfinder",s=>{const l=t.commands.get("ckfinder"),h=new ve(s);return h.set({label:n("Insert image or file"),icon:'',tooltip:!0}),h.bind("isEnabled").to(l),h.on("execute",()=>{t.execute("ckfinder"),t.editing.view.focus()}),h}),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI"),l=t.commands.get("ckfinder");s.registerIntegration({name:"assetManager",observable:l,buttonViewCreator:()=>{const h=this.editor.ui.componentFactory.create("ckfinder");return h.icon=Ae.imageAssetManager,h.bind("label").to(s,"isImageSelected",p=>n(p?"Replace image with file manager":"Insert image with file manager")),h},formViewCreator:()=>{const h=this.editor.ui.componentFactory.create("ckfinder");return h.icon=Ae.imageAssetManager,h.withText=!0,h.bind("label").to(s,"isImageSelected",p=>n(p?"Replace with file manager":"Insert with file manager")),h.on("execute",()=>{s.dropdownView.isOpen=!1}),h}})}}}class kx extends Jt{constructor(t){super(t),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}execute(){const t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new W("ckfinder-unknown-openermethod",t);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const s=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=l=>{s&&s(l),l.on("files:choose",h=>{const p=h.data.files.toArray(),b=p.filter(E=>!E.isImage()),A=p.filter(E=>E.isImage());for(const E of b)t.execute("link",E.getUrl());const C=[];for(const E of A){const P=E.getUrl();C.push(P||l.request("file:getProxyUrl",{file:E}))}C.length&&Lb(t,C)}),l.on("file:choose:resizedImage",h=>{const p=h.data.resizedUrl;if(p)Lb(t,[p]);else{const b=t.plugins.get("Notification"),A=t.locale.t;b.showWarning(A("Could not obtain resized image URL."),{title:A("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[e](n)}}function Lb(r,t){if(r.commands.get("insertImage").isEnabled)r.execute("insertImage",{source:t});else{const e=r.plugins.get("Notification"),n=r.locale.t;e.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class _x extends Lt{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Hu,"LinkEditing"]}init(){const t=this.editor;if(!t.plugins.has("ImageBlockEditing")&&!t.plugins.has("ImageInlineEditing"))throw new W("ckfinder-missing-image-plugin",t);t.commands.add("ckfinder",new kx(t))}}class wx extends Lt{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",sn]}init(){const t=this.editor,e=t.plugins.get("CloudServices"),n=e.token,s=e.uploadUrl;if(!n)return;const l=t.plugins.get("CloudServicesCore");this._uploadGateway=l.createUploadGateway(n,s),t.plugins.get(sn).createUploadAdapter=h=>new Ax(this._uploadGateway,h)}}class Ax{constructor(t,e){this.uploadGateway=t,this.loader=e}upload(){return this.loader.file.then(t=>(this.fileUploader=this.uploadGateway.upload(t),this.fileUploader.on("progress",(e,n)=>{this.loader.uploadTotal=n.total,this.loader.uploaded=n.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class xx extends Jt{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=Oe(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Pb(e,t.schema)}execute(t={}){const e=this.editor.model,s=t.selection||e.document.selection;e.canEditAt(s)&&e.change(l=>{const h=s.getSelectedBlocks();for(const p of h)!p.is("element","paragraph")&&Pb(p,e.schema)&&l.rename(p,"paragraph")})}}function Pb(r,t){return t.checkChild(r.parent,"paragraph")&&!t.isObject(r)}class Cx extends Jt{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}execute(t){const e=this.editor.model,n=t.attributes;let s=t.position;e.canEditAt(s)&&e.change(l=>{if(s=this._findPositionToInsertParagraph(s,l),!s)return;const h=l.createElement("paragraph");n&&e.schema.setAllowedAttributes(h,n,l),e.insertContent(h,s),l.setSelection(h,"in")})}_findPositionToInsertParagraph(t,e){const n=this.editor.model;if(n.schema.checkChild(t,"paragraph"))return t;const s=n.schema.findAllowedParent(t,"paragraph");if(!s)return null;const l=t.parent,h=n.schema.checkChild(l,"$text");return l.isEmpty||h&&t.isAtEnd?n.createPositionAfter(l):!l.isEmpty&&h&&t.isAtStart?n.createPositionBefore(l):e.split(t,s).position}}const Nb=class extends Lt{static get pluginName(){return"Paragraph"}init(){const r=this.editor,t=r.model;r.commands.add("paragraph",new xx(r)),r.commands.add("insertParagraph",new Cx(r)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),r.conversion.elementToElement({model:"paragraph",view:"p"}),r.conversion.for("upcast").elementToElement({model:(e,{writer:n})=>Nb.paragraphLikeElements.has(e.name)?e.isEmpty?null:n.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let ap=Nb;ap.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class yx extends Jt{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some(e=>Ob(t,e,this.editor.model.schema))}execute(t){const e=this.editor.model,n=e.document,s=t.value;e.change(l=>{const h=Array.from(n.selection.getSelectedBlocks()).filter(p=>Ob(p,s,e.schema));for(const p of h)p.is("element",s)||l.rename(p,s)})}}function Ob(r,t,e){return e.checkChild(r.parent,t)&&!e.isObject(r)}const Bb="paragraph";class Ex extends Lt{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[ap]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const s of e)"paragraph"!==s.model&&(t.model.schema.register(s.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(s),n.push(s.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new yx(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",(s,l)=>{const h=t.model.document.selection.getFirstPosition().parent;n.some(p=>h.is("element",p.model))&&!h.is("element",Bb)&&0===h.childCount&&l.writer.rename(h,Bb)})}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:It.low+1})}}var Fb=lt(8733);Rt()(Fb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Sx extends Lt{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=function(h){const p=h.t,b={Paragraph:p("Paragraph"),"Heading 1":p("Heading 1"),"Heading 2":p("Heading 2"),"Heading 3":p("Heading 3"),"Heading 4":p("Heading 4"),"Heading 5":p("Heading 5"),"Heading 6":p("Heading 6")};return h.config.get("heading.options").map(A=>{const C=b[A.title];return C&&C!=A.title&&(A.title=C),A})}(t),s=e("Choose heading"),l=e("Heading");t.ui.componentFactory.add("heading",h=>{const p={},b=new di,A=t.commands.get("heading"),C=t.commands.get("paragraph"),E=[A];for(const F of n){const j={type:"button",model:new qm({label:F.title,class:F.class,role:"menuitemradio",withText:!0})};"paragraph"===F.model?(j.model.bind("isOn").to(C,"value"),j.model.set("commandName","paragraph"),E.push(C)):(j.model.bind("isOn").to(A,"value",Y=>Y===F.model),j.model.set({commandName:"heading",commandValue:F.model})),b.add(j),p[F.model]=F.title}const P=Zn(h);return hm(P,b,{ariaLabel:l,role:"menu"}),P.buttonView.set({ariaLabel:l,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:l}),P.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),P.bind("isEnabled").toMany(E,"isEnabled",(...F)=>F.some(j=>j)),P.buttonView.bind("label").to(A,"value",C,"value",(F,j)=>{const Y=F||j&&"paragraph";return"boolean"==typeof Y?s:p[Y]?p[Y]:s}),this.listenTo(P,"execute",F=>{const{commandName:j,commandValue:Y}=F.source;t.execute(j,Y?{value:Y}:void 0),t.editing.view.focus()}),P})}}function zb(r){return r.createContainerElement("figure",{class:"image"},[r.createEmptyElement("img"),r.createSlot("children")])}function Rb(r,t){const e=r.plugins.get("ImageUtils"),n=r.plugins.has("ImageInlineEditing")&&r.plugins.has("ImageBlockEditing");return l=>e.isInlineImageView(l)?n&&("block"==l.getStyle("display")||l.findAncestor(e.isBlockImageView)?"imageBlock":"imageInline")!==t?null:function s(l){const h={name:!0};return l.hasAttribute("src")&&(h.attributes=["src"]),h}(l):null}function lp(r,t){const e=Oe(t.getSelectedBlocks());return!e||r.isObject(e)||e.isEmpty&&"listItem"!=e.name?"imageBlock":"imageInline"}function Jc(r){return r&&r.endsWith("px")?parseInt(r):null}function Zb(r){const t=Jc(r.getStyle("width")),e=Jc(r.getStyle("height"));return!(!t||!e)}var Ix=Object.defineProperty,Ub=Object.getOwnPropertySymbols,Dx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,jb=(r,t,e)=>t in r?Ix(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Vb=(r,t)=>{for(var e in t||(t={}))Dx.call(t,e)&&jb(r,e,t[e]);if(Ub)for(var e of Ub(t))Mx.call(t,e)&&jb(r,e,t[e]);return r};const Lx=/^(image|image-inline)$/;class Ci extends Lt{constructor(){super(...arguments),this._domEmitter=new(bi())}static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null,s={}){const l=this.editor,h=l.model,p=h.document.selection,b=qb(l,e||p,n);t=Vb(Vb({},Object.fromEntries(p.getAttributes())),t);for(const A in t)h.schema.checkAttribute(b,A)||delete t[A];return h.change(A=>{const{setImageSizes:C=!0}=s,E=A.createElement(b,t);return h.insertObject(E,e,null,{setSelection:"on",findOptimalPosition:e||"imageInline"==b?void 0:"auto"}),E.parent?(C&&this.setImageNaturalSizeAttributes(E),E):null})}setImageNaturalSizeAttributes(t){const e=t.getAttribute("src");e&&(t.getAttribute("width")||t.getAttribute("height")||this.editor.model.change(n=>{const s=new Yt.window.Image;this._domEmitter.listenTo(s,"load",()=>{t.getAttribute("width")||t.getAttribute("height")||this.editor.model.enqueueChange(n.batch,l=>{l.setAttribute("width",s.naturalWidth,t),l.setAttribute("height",s.naturalHeight,t)}),this._domEmitter.stopListening(s,"load")}),s.src=e}))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let s=e.parent;for(;s;){if(s.is("element")&&this.isImageWidget(s))return s;s=s.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:Lx})}isImageAllowed(){const t=this.editor.model.document.selection;return function(e,n){if("imageBlock"==qb(e,n,null)){const l=function(h,p){const A=zf(h,p).start.parent;return A.isEmpty&&!A.is("element","$root")?A.parent:A}(n,e.model);if(e.model.schema.checkChild(l,"imageBlock"))return!0}else if(e.model.schema.checkChild(n.focus,"imageInline"))return!0;return!1}(this.editor,t)&&[...t.focus.getAncestors()].every(n=>!n.is("element","imageBlock"))}toImageWidget(t,e,n){return e.setCustomProperty("image",!0,t),Ju(t,e,{label:()=>{const s=this.findViewImgElement(t).getAttribute("alt");return s?`${s} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&He(t)}isBlockImage(t){return!!t&&t.is("element","imageBlock")}isInlineImage(t){return!!t&&t.is("element","imageInline")}findViewImgElement(t){if(this.isInlineImageView(t))return t;const e=this.editor.editing.view;for(const{item:n}of e.createRangeIn(t))if(this.isInlineImageView(n))return n}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function qb(r,t,e){const n=r.model.schema,s=r.config.get("image.insert.type");return r.plugins.has("ImageBlockEditing")?r.plugins.has("ImageInlineEditing")?e||("inline"===s?"imageInline":"auto"!==s?"imageBlock":t.is("selection")?lp(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class Px extends Jt{refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.value=!(!this.isEnabled||!t.hasAttribute("alt"))&&t.getAttribute("alt")}execute(t){const e=this.editor,n=e.plugins.get("ImageUtils"),s=e.model,l=n.getClosestSelectedImageElement(s.document.selection);s.change(h=>{h.setAttribute("alt",t.newValue,l)})}}class Nx extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Px(this.editor))}}var Yb=lt(1905);Rt()(Yb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Hb=lt(6764);Rt()(Hb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Fx extends Wt{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Ye,this.keystrokes=new vi,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._focusables=new Ri,this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),L({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}_createLabeledInputView(){const t=this.locale.t,e=new Cr(this.locale,Pc);return e.label=t("Text alternative"),e}}function Gb(r){const t=r.editing.view,e=Ai.defaultPositions,n=r.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(t.document.selection)),positions:[e.northArrowSouth,e.northArrowSouthWest,e.northArrowSouthEast,e.southArrowNorth,e.southArrowNorthWest,e.southArrowNorthEast,e.viewportStickyNorth]}}class zx extends Lt{static get requires(){return[Rc]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",n=>{const s=t.commands.get("imageTextAlternative"),l=new ve(n);return l.set({label:e("Change image text alternative"),icon:Ae.textAlternative,tooltip:!0}),l.bind("isEnabled").to(s,"isEnabled"),l.bind("isOn").to(s,"value",h=>!!h),this.listenTo(l,"execute",()=>{this._showForm()}),l})}_createForm(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(ct(Fx))(t.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(s,l)=>{this._hideForm(!0),l()}),this.listenTo(t.ui,"update",()=>{n.getClosestSelectedImageWidget(e.selection)?this._isVisible&&function(s){const l=s.plugins.get("ContextualBalloon");if(s.plugins.get("ImageUtils").getClosestSelectedImageWidget(s.editing.view.document.selection)){const h=Gb(s);l.updatePosition(h)}}(t):this._hideForm(!0)}),et({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Gb(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class Wb extends Lt{static get requires(){return[Nx,zx]}static get pluginName(){return"ImageTextAlternative"}}function Qb(r,t){const e=(n,s,l)=>{if(!l.consumable.consume(s.item,n.name))return;const h=l.writer,p=l.mapper.toViewElement(s.item),b=r.findViewImgElement(p);null===s.attributeNewValue?(h.removeAttribute("srcset",b),h.removeAttribute("sizes",b)):s.attributeNewValue&&(h.setAttribute("srcset",s.attributeNewValue,b),h.setAttribute("sizes","100vw",b))};return n=>{n.on(`attribute:srcset:${t}`,e)}}function $c(r,t,e){const n=(s,l,h)=>{if(!h.consumable.consume(l.item,s.name))return;const p=h.writer,b=h.mapper.toViewElement(l.item),A=r.findViewImgElement(b);p.setAttribute(l.attributeKey,l.attributeNewValue||"",A)};return s=>{s.on(`attribute:${e}:${t}`,n)}}class Xb extends Vi{observe(t){this.listenTo(t,"load",(e,n)=>{const s=n.target;this.checkShouldIgnoreEventFromTarget(s)||"IMG"==s.tagName&&this._fireEvents(n)},{useCapture:!0})}stopObserving(t){this.stopListening(t)}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}var Rx=Object.defineProperty,Kb=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Ux=Object.prototype.propertyIsEnumerable,Jb=(r,t,e)=>t in r?Rx(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,td=(r,t)=>{for(var e in t||(t={}))Zx.call(t,e)&&Jb(r,e,t[e]);if(Kb)for(var e of Kb(t))Ux.call(t,e)&&Jb(r,e,t[e]);return r};class jx extends Jt{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||"block"===e&&kt("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===e&&kt("image-inline-plugin-required")}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=Ze(t.source),n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageUtils"),l=Object.fromEntries(n.getAttributes());e.forEach((h,p)=>{const b=n.getSelectedElement();if("string"==typeof h&&(h={src:h}),p&&b&&s.isImage(b)){const A=this.editor.model.createPositionAfter(b);s.insertImage(td(td({},h),l),A)}else s.insertImage(td(td({},h),l))})}}class Vx extends Jt{constructor(t){super(t),this.decorate("cleanupImage")}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=t.isImage(e),this.value=this.isEnabled?e.getAttribute("src"):null}execute(t){const e=this.editor.model.document.selection.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");this.editor.model.change(s=>{s.setAttribute("src",t.source,e),this.cleanupImage(s,e),n.setImageNaturalSizeAttributes(e)})}cleanupImage(t,e){t.removeAttribute("srcset",e),t.removeAttribute("sizes",e),t.removeAttribute("sources",e),t.removeAttribute("width",e),t.removeAttribute("height",e),t.removeAttribute("alt",e)}}class cp extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(Xb),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new jx(t),s=new Vx(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",s),t.commands.add("imageInsert",n)}}class $b extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils"),s="imageBlock"===t?"figure":"img";function l(h,p,b,A){h.on(`attribute:${p}:${t}`,(C,E,P)=>{if(!P.consumable.consume(E.item,C.name))return;const F=P.writer,j=P.mapper.toViewElement(E.item),Y=n.findViewImgElement(j);if(null!==E.attributeNewValue?F.setAttribute(b,E.attributeNewValue,Y):F.removeAttribute(b,Y),E.item.hasAttribute("sources"))return;const $=E.item.hasAttribute("resizedWidth");if("imageInline"===t&&!$&&!A)return;const st=E.item.getAttribute("width"),ft=E.item.getAttribute("height");st&&ft&&F.setStyle("aspect-ratio",`${st}/${ft}`,Y)})}e.conversion.for("upcast").attributeToAttribute({view:{name:s,styles:{width:/.+/}},model:{key:"width",value:h=>Zb(h)?Jc(h.getStyle("width")):null}}).attributeToAttribute({view:{name:s,key:"width"},model:"width"}).attributeToAttribute({view:{name:s,styles:{height:/.+/}},model:{key:"height",value:h=>Zb(h)?Jc(h.getStyle("height")):null}}).attributeToAttribute({view:{name:s,key:"height"},model:"height"}),e.conversion.for("editingDowncast").add(h=>{l(h,"width","width",!0),l(h,"height","height",!0)}),e.conversion.for("dataDowncast").add(h=>{l(h,"width","width",!1),l(h,"height","height",!1)})}}class tv extends Jt{constructor(t,e){super(t),this._modelElementName=e}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled="imageBlock"===this._modelElementName?t.isInlineImage(e):t.isBlockImage(e)}execute(t={}){const n=this.editor.model,s=this.editor.plugins.get("ImageUtils"),l=s.getClosestSelectedImageElement(n.document.selection),h=Object.fromEntries(l.getAttributes());return h.src||h.uploadId?n.change(p=>{const{setImageSizes:b=!0}=t,A=Array.from(n.markers).filter(P=>P.getRange().containsItem(l)),C=s.insertImage(h,n.createSelection(l,"on"),this._modelElementName,{setImageSizes:b});if(!C)return null;const E=p.createRangeOn(C);for(const P of A){const F=P.getRange(),j="$graveyard"!=F.root.rootName?F.getJoined(E,!0):E;p.updateMarker(P,{range:j})}return{oldElement:l,newElement:C}}):null}}var ev=lt(2873);Rt()(ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class iv extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const t=this.editor.model.schema;t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["placeholder"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("editingDowncast").add(s=>{s.on("attribute:placeholder",(l,h,p)=>{if(!p.consumable.test(h.item,l.name)||!h.item.is("element","imageBlock")&&!h.item.is("element","imageInline"))return;p.consumable.consume(h.item,l.name);const b=p.writer,A=p.mapper.toViewElement(h.item),C=n.findViewImgElement(A);h.attributeNewValue?(b.addClass("image_placeholder",C),b.setStyle("background-image",`url(${h.attributeNewValue})`,C),b.setCustomProperty("editingPipeline:doNotReuseOnce",!0,C)):(b.removeClass("image_placeholder",C),b.removeStyle("background-image",C))})})}_setupLoadListener(){const t=this.editor,e=t.model,n=t.editing,s=n.view,l=t.plugins.get("ImageUtils");s.addObserver(Xb),this.listenTo(s.document,"imageLoaded",(h,p)=>{const b=s.domConverter.mapDomToView(p.target);if(!b)return;const A=l.getImageWidgetFromImageView(b);if(!A)return;const C=n.mapper.toModelElement(A);C&&C.hasAttribute("placeholder")&&e.enqueueChange({isUndoable:!1},E=>{E.removeAttribute("placeholder",C)})})}}class nv extends Lt{static get requires(){return[cp,$b,Ci,iv,fn]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new tv(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,s=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:h})=>zb(h)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:h})=>s.toImageWidget(zb(h),h,e("image widget"))}),n.for("downcast").add($c(s,"imageBlock","src")).add($c(s,"imageBlock","alt")).add(Qb(s,"imageBlock")),n.for("upcast").elementToElement({view:Rb(t,"imageBlock"),model:(l,{writer:h})=>h.createElement("imageBlock",l.hasAttribute("src")?{src:l.getAttribute("src")}:void 0)}).add(function(l){const h=(p,b,A)=>{if(!A.consumable.test(b.viewItem,{name:!0,classes:"image"}))return;const C=l.findViewImgElement(b.viewItem);if(!C||!A.consumable.test(C,{name:!0}))return;A.consumable.consume(b.viewItem,{name:!0,classes:"image"});const E=Oe(A.convertItem(C,b.modelCursor).modelRange.getItems());E?(A.convertChildren(b.viewItem,E),A.updateConversionResult(E,b)):A.consumable.revert(b.viewItem,{name:!0,classes:"image"})};return p=>{p.on("element:figure",h)}}(s))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,s=t.plugins.get("ImageUtils"),l=t.plugins.get("ClipboardPipeline");this.listenTo(l,"inputTransformation",(h,p)=>{const b=Array.from(p.content.getChildren());let A;if(!b.every(s.isInlineImageView))return;A=p.targetRanges?t.editing.mapper.toModelRange(p.targetRanges[0]):e.document.selection.getFirstRange();const C=e.createSelection(A);if("imageBlock"===lp(e.schema,C)){const E=new ko(n.document),P=b.map(F=>E.createElement("figure",{class:"image"},F));p.content=E.createDocumentFragment(P)}}),this.listenTo(l,"contentInsertion",(h,p)=>{"paste"===p.method&&e.change(b=>{const A=b.createRangeIn(p.content);for(const C of A.getItems())C.is("element","imageBlock")&&s.setImageNaturalSizeAttributes(C)})})}}var ov=lt(3535);Rt()(ov.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Hx extends Wt{constructor(t,e=[]){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri,this.children=this.createCollection(),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const n of e)this.children.add(n),this._focusables.add(n),n instanceof y1&&this._focusables.addMany(n.children);if(this._focusables.length>1)for(const n of this._focusables)Gx(n)&&(n.focusCycler.on("forwardCycle",s=>{this._focusCycler.focusNext(),s.stop()}),n.focusCycler.on("backwardCycle",s=>{this._focusCycler.focusPrevious(),s.stop()}));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),L({view:this});for(const e of this._focusables)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}function Gx(r){return"focusCycler"in r}class rv extends Lt{constructor(t){super(t),this._integrations=new Map,t.config.define("image.insert.integrations",["upload","assetManager","url"])}static get pluginName(){return"ImageInsertUI"}static get requires(){return[Ci]}init(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(t.model.document,"change",()=>{this.isImageSelected=n.isImage(e.getSelectedElement())});const s=l=>this._createToolbarComponent(l);t.ui.componentFactory.add("insertImage",s),t.ui.componentFactory.add("imageInsert",s)}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:s,requiresForm:l}){this._integrations.has(t)&&kt("image-insert-integration-exists",{name:t}),this._integrations.set(t,{observable:e,buttonViewCreator:n,formViewCreator:s,requiresForm:!!l})}_createToolbarComponent(t){const e=this.editor,n=t.t,s=this._prepareIntegrations();if(!s.length)return null;let l;const h=s[0];if(1==s.length){if(!h.requiresForm)return h.buttonViewCreator(!0);l=h.buttonViewCreator(!0)}else{const A=h.buttonViewCreator(!1);l=new Lc(t,A),l.tooltip=!0,l.bind("label").to(this,"isImageSelected",C=>n(C?"Replace image":"Insert image"))}const p=this.dropdownView=Zn(t,l),b=s.map(({observable:A})=>A);return p.bind("isEnabled").toMany(b,"isEnabled",(...A)=>A.some(C=>C)),p.once("change:isOpen",()=>{const A=s.map(({formViewCreator:E})=>E(1==s.length)),C=new Hx(e.locale,A);p.panelView.children.add(C)}),p}_prepareIntegrations(){const t=this.editor.config.get("image.insert.integrations"),e=[];if(!t.length)return kt("image-insert-integrations-not-specified"),e;for(const n of t)this._integrations.has(n)?e.push(this._integrations.get(n)):["upload","assetManager","url"].includes(n)||kt("image-insert-unknown-integration",{item:n});return e.length||kt("image-insert-integrations-not-registered"),e}}var sv=lt(3508);Rt()(sv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Qx extends Lt{static get requires(){return[nv,Ea,Wb,rv]}static get pluginName(){return"ImageBlock"}}class Xx extends Lt{static get requires(){return[cp,$b,Ci,iv,fn]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck((n,s)=>{if(n.endsWith("caption")&&"imageInline"===s.name)return!1}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new tv(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,s=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(l,{writer:h})=>h.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(l,{writer:h})=>{return s.toImageWidget((p=h).createContainerElement("span",{class:"image-inline"},p.createEmptyElement("img")),h,e("image widget"));var p}}),n.for("downcast").add($c(s,"imageInline","src")).add($c(s,"imageInline","alt")).add(Qb(s,"imageInline")),n.for("upcast").elementToElement({view:Rb(t,"imageInline"),model:(l,{writer:h})=>h.createElement("imageInline",l.hasAttribute("src")?{src:l.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,s=t.plugins.get("ImageUtils"),l=t.plugins.get("ClipboardPipeline");this.listenTo(l,"inputTransformation",(h,p)=>{const b=Array.from(p.content.getChildren());let A;if(!b.every(s.isBlockImageView))return;A=p.targetRanges?t.editing.mapper.toModelRange(p.targetRanges[0]):e.document.selection.getFirstRange();const C=e.createSelection(A);if("imageInline"===lp(e.schema,C)){const E=new ko(n.document),P=b.map(F=>1===F.childCount?(Array.from(F.getAttributes()).forEach(j=>E.setAttribute(...j,s.findViewImgElement(F))),F.getChild(0)):F);p.content=E.createDocumentFragment(P)}}),this.listenTo(l,"contentInsertion",(h,p)=>{"paste"===p.method&&e.change(b=>{const A=b.createRangeIn(p.content);for(const C of A.getItems())C.is("element","imageInline")&&s.setImageNaturalSizeAttributes(C)})})}}class Kx extends Lt{static get requires(){return[Xx,Ea,Wb,rv]}static get pluginName(){return"ImageInline"}}class av extends Lt{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Ci]}getCaptionFromImageModelElement(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(t){const e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(t){const e=this.editor.plugins.get("ImageUtils");return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}}class Jx extends Jt{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(nv))return this.isEnabled=!1,void(this.value=!1);const s=t.model.document.selection,l=s.getSelectedElement();if(!l){const h=e.getCaptionFromModelSelection(s);return this.isEnabled=!!h,void(this.value=!!h)}this.isEnabled=n.isImage(l),this.value=!!this.isEnabled&&!!e.getCaptionFromImageModelElement(l)}execute(t={}){const{focusCaptionOnShow:e}=t;this.editor.model.change(n=>{this.value?this._hideImageCaption(n):this._showImageCaption(n,e)})}_showImageCaption(t,e){const n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageCaptionEditing"),l=this.editor.plugins.get("ImageUtils");let h=n.getSelectedElement();const p=s._getSavedCaption(h);l.isInlineImage(h)&&(this.editor.execute("imageTypeBlock"),h=n.getSelectedElement());const b=p||t.createElement("caption");t.append(b,h),e&&t.setSelection(b,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,s=e.plugins.get("ImageCaptionEditing"),l=e.plugins.get("ImageCaptionUtils");let h,p=n.getSelectedElement();p?h=l.getCaptionFromImageModelElement(p):(h=l.getCaptionFromModelSelection(n),p=h.parent),s._saveCaption(p,h),t.setSelection(p,"on"),t.remove(h)}}class $x extends Lt{constructor(t){super(t),this._savedCaptionsMap=new WeakMap}static get requires(){return[Ci,av]}static get pluginName(){return"ImageCaptionEditing"}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new Jx(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),s=t.plugins.get("ImageCaptionUtils"),l=t.t;t.conversion.for("upcast").elementToElement({view:h=>s.matchImageCaptionViewElement(h),model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(h,{writer:p})=>n.isBlockImage(h.parent)?p.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(h,{writer:p})=>{if(!n.isBlockImage(h.parent))return null;const b=p.createEditableElement("figcaption");p.setCustomProperty("imageCaption",!0,b),b.placeholder=l("Enter image caption"),Wl({view:e,element:b,keepOnFocus:!0});const A=h.parent.getAttribute("alt");return Ff(b,p,{label:A?l("Caption for image: %0",[A]):l("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),s=t.commands.get("imageTypeInline"),l=t.commands.get("imageTypeBlock"),h=p=>{if(!p.return)return;const{oldElement:b,newElement:A}=p.return;if(!b)return;if(e.isBlockImage(b)){const E=n.getCaptionFromImageModelElement(b);if(E)return void this._saveCaption(A,E)}const C=this._getSavedCaption(b);C&&this._saveCaption(A,C)};s&&this.listenTo(s,"execute",h,{priority:"low"}),l&&this.listenTo(l,"execute",h,{priority:"low"})}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?me.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}_registerCaptionReconversion(){const t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),s=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",()=>{const l=e.document.differ.getChanges();for(const h of l){if("alt"!==h.attributeKey)continue;const p=h.range.start.nodeAfter;if(n.isBlockImage(p)){const b=s.getCaptionFromImageModelElement(p);if(!b)return;t.editing.reconvertItem(b)}}})}}class tC extends Lt{static get requires(){return[av]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),s=t.t;t.ui.componentFactory.add("toggleImageCaption",l=>{const h=t.commands.get("toggleImageCaption"),p=new ve(l);return p.set({icon:Ae.caption,tooltip:!0,isToggleable:!0}),p.bind("isOn","isEnabled").to(h,"value","isEnabled"),p.bind("label").to(h,"value",b=>s(b?"Toggle caption off":"Toggle caption on")),this.listenTo(p,"execute",()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const b=n.getCaptionFromModelSelection(t.model.document.selection);if(b){const A=t.editing.mapper.toViewElement(b);e.scrollToTheSelection(),e.change(C=>{C.addClass("image__caption_highlighted",A)})}t.editing.view.focus()}),p})}}var lv=lt(2640);function cv(r){const t=r.map(e=>e.replace("+","\\+"));return new RegExp(`^image\\/(${t.join("|")})$`)}function iC(r){return new Promise((t,e)=>{const n=r.getAttribute("src");fetch(n).then(s=>s.blob()).then(s=>{const l=dv(s,n),h=l.replace("image/",""),p=new File([s],`image.${h}`,{type:l});t(p)}).catch(s=>{return s&&"TypeError"===s.name?(l=n,(h=l,new Promise((p,b)=>{const A=Yt.document.createElement("img");A.addEventListener("load",()=>{const C=Yt.document.createElement("canvas");C.width=A.width,C.height=A.height,C.getContext("2d").drawImage(A,0,0),C.toBlob(E=>E?p(E):b())}),A.addEventListener("error",()=>b()),A.src=h})).then(h=>{const p=dv(h,l),b=p.replace("image/","");return new File([h],`image.${b}`,{type:p})})).then(t).catch(e):e(s);var l,h})})}function dv(r,t){return r.type?r.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}Rt()(lv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class nC extends Lt{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=s=>{const l=new BA(s),h=t.commands.get("uploadImage"),p=t.config.get("image.upload.types"),b=cv(p);return l.set({acceptedType:p.map(A=>`image/${A}`).join(","),allowMultipleFiles:!0,label:e("Upload image from computer"),icon:Ae.imageUpload,tooltip:!0}),l.bind("isEnabled").to(h),l.on("done",(A,C)=>{const E=Array.from(C).filter(P=>b.test(P.type));E.length&&(t.execute("uploadImage",{file:E}),t.editing.view.focus())}),l};if(t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI"),l=t.commands.get("uploadImage");s.registerIntegration({name:"upload",observable:l,buttonViewCreator:()=>{const h=t.ui.componentFactory.create("uploadImage");return h.bind("label").to(s,"isImageSelected",p=>e(p?"Replace image from computer":"Upload image from computer")),h},formViewCreator:()=>{const h=t.ui.componentFactory.create("uploadImage");return h.withText=!0,h.bind("label").to(s,"isImageSelected",p=>e(p?"Replace from computer":"Upload from computer")),h.on("execute",()=>{s.dropdownView.isOpen=!1}),h}})}}}var hv=lt(3689);Rt()(hv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var uv=lt(4036);Rt()(uv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pv=lt(3773);Rt()(pv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class aC extends Lt{constructor(t){super(t),this.uploadStatusChange=(e,n,s)=>{const l=this.editor,h=n.item,p=h.getAttribute("uploadId");if(!s.consumable.consume(n.item,e.name))return;const b=l.plugins.get("ImageUtils"),A=l.plugins.get(sn),C=p?n.attributeNewValue:null,E=this.placeholder,P=l.editing.mapper.toViewElement(h),F=s.writer;if("reading"==C)return gv(P,F),void mv(b,E,P,F);if("uploading"==C){const j=A.loaders.get(p);return gv(P,F),void(j?(fv(P,F),function(Y,$,st,ft){const At=function(Ft){const jt=Ft.createUIElement("div",{class:"ck-progress-bar"});return Ft.setCustomProperty("progressBar",!0,jt),jt}($);$.insert($.createPositionAt(Y,"end"),At),st.on("change:uploadedPercent",(Ft,jt,ae)=>{ft.change(ce=>{ce.setStyle("width",ae+"%",At)})})}(P,F,j,l.editing.view),function(Y,$,st,ft){if(ft.data){const At=Y.findViewImgElement($);st.setAttribute("src",ft.data,At)}}(b,P,F,j)):mv(b,E,P,F))}"complete"==C&&A.loaders.get(p)&&function(j,Y,$){const st=Y.createUIElement("div",{class:"ck-image-upload-complete-icon"});Y.insert(Y.createPositionAt(j,"end"),st),setTimeout(()=>{$.change(ft=>ft.remove(ft.createRangeOn(st)))},3e3)}(P,F,l.editing.view),vv(P,F,"progressBar"),fv(P,F),F.removeClass("ck-appear",P)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function gv(r,t){r.hasClass("ck-appear")||t.addClass("ck-appear",r)}function mv(r,t,e,n){e.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",e);const s=r.findViewImgElement(e);s.getAttribute("src")!==t&&n.setAttribute("src",t,s),bv(e,"placeholder")||n.insert(n.createPositionAfter(s),function(l){const h=l.createUIElement("div",{class:"ck-upload-placeholder-loader"});return l.setCustomProperty("placeholder",!0,h),h}(n))}function fv(r,t){r.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",r),vv(r,t,"placeholder")}function bv(r,t){for(const e of r.getChildren())if(e.getCustomProperty(t))return e}function vv(r,t,e){const n=bv(r,e);n&&t.remove(t.createRangeOn(n))}var lC=Object.defineProperty,cC=Object.defineProperties,dC=Object.getOwnPropertyDescriptors,kv=Object.getOwnPropertySymbols,hC=Object.prototype.hasOwnProperty,uC=Object.prototype.propertyIsEnumerable,_v=(r,t,e)=>t in r?lC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class pC extends Jt{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=Ze(t.file),n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageUtils"),l=Object.fromEntries(n.getAttributes());e.forEach((h,p)=>{const b=n.getSelectedElement();if(p&&b&&s.isImage(b)){const A=this.editor.model.createPositionAfter(b);this._uploadImage(h,l,A)}else this._uploadImage(h,l)})}_uploadImage(t,e,n){const s=this.editor,l=s.plugins.get(sn).createLoader(t),h=s.plugins.get("ImageUtils");var p;l&&h.insertImage((p=((A,C)=>{for(var E in C||(C={}))hC.call(C,E)&&_v(A,E,C[E]);if(kv)for(var E of kv(C))uC.call(C,E)&&_v(A,E,C[E]);return A})({},e),cC(p,dC({uploadId:l.id}))),n)}}class gC extends Lt{constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[sn,Hu,fn,Ci]}static get pluginName(){return"ImageUploadEditing"}init(){const t=this.editor,e=t.model.document,n=t.conversion,s=t.plugins.get(sn),l=t.plugins.get("ImageUtils"),h=t.plugins.get("ClipboardPipeline"),p=cv(t.config.get("image.upload.types")),b=new pC(t);t.commands.add("uploadImage",b),t.commands.add("imageUpload",b),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(A,C)=>{if(E=C.dataTransfer,Array.from(E.types).includes("text/html")&&""!==E.getData("text/html"))return;var E;const P=Array.from(C.dataTransfer.files).filter(F=>!!F&&p.test(F.type));P.length&&(A.stop(),t.model.change(F=>{C.targetRanges&&F.setSelection(C.targetRanges.map(j=>t.editing.mapper.toModelRange(j))),t.execute("uploadImage",{file:P})}))}),this.listenTo(h,"inputTransformation",(A,C)=>{const E=Array.from(t.editing.view.createRangeIn(C.content)).map(F=>F.item).filter(F=>{return!(!l.isInlineImageView(Y=F)||!Y.getAttribute("src")||!Y.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!Y.getAttribute("src").match(/^blob:/g)||F.getAttribute("uploadProcessed"));var Y}).map(F=>({promise:iC(F),imageElement:F}));if(!E.length)return;const P=new ko(t.editing.view.document);for(const F of E){P.setAttribute("uploadProcessed",!0,F.imageElement);const j=s.createLoader(F.promise);j&&(P.setAttribute("src","",F.imageElement),P.setAttribute("uploadId",j.id,F.imageElement))}}),t.editing.view.document.on("dragover",(A,C)=>{C.preventDefault()}),e.on("change",()=>{const A=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),C=new Set;for(const E of A)if("insert"==E.type&&"$text"!=E.name){const P=E.position.nodeAfter,F="$graveyard"==E.position.root.rootName;for(const j of mC(t,P)){const Y=j.getAttribute("uploadId");if(!Y)continue;const $=s.loaders.get(Y);$&&(F?C.has(Y)||$.abort():(C.add(Y),this._uploadImageElements.set(Y,j),"idle"==$.status&&this._readAndUpload($)))}}}),this.on("uploadComplete",(A,{imageElement:C,data:E})=>{const P=E.urls?E.urls:E;this.editor.model.change(F=>{F.setAttribute("src",P.default,C),this._parseAndSetSrcsetAttributeOnImage(P,C,F),l.setImageNaturalSizeAttributes(C)})},{priority:"low"})}afterInit(){const t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(t){const e=this.editor,n=e.model,s=e.locale.t,l=e.plugins.get(sn),h=e.plugins.get(Hu),p=e.plugins.get("ImageUtils"),b=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},C=>{C.setAttribute("uploadStatus","reading",b.get(t.id))}),t.read().then(()=>{const C=t.upload(),E=b.get(t.id);if(it.isSafari){const P=e.editing.mapper.toViewElement(E),F=p.findViewImgElement(P);e.editing.view.once("render",()=>{if(!F.parent)return;const j=e.editing.view.domConverter.mapViewToDom(F.parent);if(!j)return;const Y=j.style.display;j.style.display="none",j._ckHack=j.offsetHeight,j.style.display=Y})}return n.enqueueChange({isUndoable:!1},P=>{P.setAttribute("uploadStatus","uploading",E)}),C}).then(C=>{n.enqueueChange({isUndoable:!1},E=>{const P=b.get(t.id);E.setAttribute("uploadStatus","complete",P),this.fire("uploadComplete",{data:C,imageElement:P})}),A()}).catch(C=>{if("error"!==t.status&&"aborted"!==t.status)throw C;"error"==t.status&&C&&h.showWarning(C,{title:s("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},E=>{E.remove(b.get(t.id))}),A()});function A(){n.enqueueChange({isUndoable:!1},C=>{const E=b.get(t.id);C.removeAttribute("uploadId",E),C.removeAttribute("uploadStatus",E),b.delete(t.id)}),l.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let s=0;const l=Object.keys(t).filter(h=>{const p=parseInt(h,10);if(!isNaN(p))return s=Math.max(s,p),!0}).map(h=>`${t[h]} ${h}w`).join(", ");if(""!=l){const h={srcset:l};e.hasAttribute("width")||e.hasAttribute("height")||(h.width=s),n.setAttributes(h,e)}}}function mC(r,t){const e=r.plugins.get("ImageUtils");return Array.from(r.model.createRangeOn(t)).filter(n=>e.isImage(n.item)).map(n=>n.item)}var wv=lt(6270);Rt()(wv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class bC extends Jt{constructor(t,e){super(t),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(e.map(n=>{if(n.isDefault)for(const s of n.modelElements)this._defaultStyles[s]=n.name;return[n.name,n]}))}refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.value=!!this.isEnabled&&(t.hasAttribute("imageStyle")?t.getAttribute("imageStyle"):this._defaultStyles[t.name])}execute(t={}){const e=this.editor,n=e.model,s=e.plugins.get("ImageUtils");n.change(l=>{const h=t.value,{setImageSizes:p=!0}=t;let b=s.getClosestSelectedImageElement(n.document.selection);h&&this.shouldConvertImageType(h,b)&&(this.editor.execute(s.isBlockImage(b)?"imageTypeInline":"imageTypeBlock",{setImageSizes:p}),b=s.getClosestSelectedImageElement(n.document.selection)),!h||this._styles.get(h).isDefault?l.removeAttribute("imageStyle",b):l.setAttribute("imageStyle",h,b),p&&s.setImageNaturalSizeAttributes(b)})}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}var vC=Object.defineProperty,Av=Object.getOwnPropertySymbols,kC=Object.prototype.hasOwnProperty,_C=Object.prototype.propertyIsEnumerable,xv=(r,t,e)=>t in r?vC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Cv=(r,t)=>{for(var e in t||(t={}))kC.call(t,e)&&xv(r,e,t[e]);if(Av)for(var e of Av(t))_C.call(t,e)&&xv(r,e,t[e]);return r};const{objectFullWidth:wC,objectInline:yv,objectLeft:Ev,objectRight:dp,objectCenter:hp,objectBlockLeft:Tv,objectBlockRight:Sv}=Ae,ed={get inline(){return{name:"inline",title:"In line",icon:yv,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Ev,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Tv,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:hp,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:dp,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Sv,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:hp,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:dp,modelElements:["imageBlock"],className:"image-style-side"}}},Iv={full:wC,left:Tv,right:Sv,center:hp,inlineLeft:Ev,inlineRight:dp,inline:yv},Dv=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function Mv(r){kt("image-style-configuration-definition-invalid",r)}const up={normalizeStyles:function(r){return(r.configuredStyles.options||[]).map(t=>{return"string"==typeof(e="string"==typeof(e=t)?ed[e]?Cv({},ed[e]):{name:e}:function(n,s){const l=Cv({},s);for(const h in n)Object.prototype.hasOwnProperty.call(s,h)||(l[h]=n[h]);return l}(ed[e.name],e)).icon&&(e.icon=Iv[e.icon]||e.icon),e;var e}).filter(t=>function(e,{isBlockPluginLoaded:n,isInlinePluginLoaded:s}){const{modelElements:l,name:h}=e;if(!(l&&l.length&&h))return Mv({style:e}),!1;{const p=[n?"imageBlock":null,s?"imageInline":null];if(!l.some(b=>p.includes(b)))return kt("image-style-missing-dependency",{style:e,missingPlugins:l.map(b=>"imageBlock"===b?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(t,r))},getDefaultStylesConfiguration:function(r,t){return r&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:r?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(r){return r.has("ImageBlockEditing")&&r.has("ImageInlineEditing")?[...Dv]:[]},warnInvalidStyle:Mv,DEFAULT_OPTIONS:ed,DEFAULT_ICONS:Iv,DEFAULT_DROPDOWN_DEFINITIONS:Dv};function Lv(r,t){for(const e of t)if(e.name===r)return e}class Pv extends Lt{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Ci]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=up,n=this.editor,s=n.plugins.has("ImageBlockEditing"),l=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(s,l)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:s,isInlinePluginLoaded:l}),this._setupConversion(s,l),this._setupPostFixer(),n.commands.add("imageStyle",new bC(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,s=n.model.schema,l=(h=this.normalizedStyles,(b,A,C)=>{if(!C.consumable.consume(A.item,b.name))return;const E=Lv(A.attributeNewValue,h),P=Lv(A.attributeOldValue,h),F=C.mapper.toViewElement(A.item),j=C.writer;P&&j.removeClass(P.className,F),E&&j.addClass(E.className,F)});var h;const p=function(b){const A={imageInline:b.filter(C=>!C.isDefault&&C.modelElements.includes("imageInline")),imageBlock:b.filter(C=>!C.isDefault&&C.modelElements.includes("imageBlock"))};return(C,E,P)=>{if(!E.modelRange)return;const F=E.viewItem,j=Oe(E.modelRange.getItems());if(j&&P.schema.checkAttribute(j,"imageStyle"))for(const Y of A[j.name])P.consumable.consume(F,{classes:Y.className})&&P.writer.setAttribute("imageStyle",Y.name,j)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",l),n.data.downcastDispatcher.on("attribute:imageStyle",l),t&&(s.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",p,{priority:"low"})),e&&(s.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",p,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(Ci),s=new Map(this.normalizedStyles.map(l=>[l.name,l]));e.registerPostFixer(l=>{let h=!1;for(const p of e.differ.getChanges())if("insert"==p.type||"attribute"==p.type&&"imageStyle"==p.attributeKey){let b="insert"==p.type?p.position.nodeAfter:p.range.start.nodeAfter;if(b&&b.is("element","paragraph")&&b.childCount>0&&(b=b.getChild(0)),!n.isImage(b))continue;const A=b.getAttribute("imageStyle");if(!A)continue;const C=s.get(A);C&&C.modelElements.includes(b.name)||(l.removeAttribute("imageStyle",b),h=!0)}return h})}}var Nv=lt(5083);Rt()(Nv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xC extends Lt{static get requires(){return[Pv]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=Ov(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const l of n)this._createButton(l);const s=Ov([...e.filter(te),...up.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const l of s)this._createDropdown(l,n)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,s=>{let l;const{defaultItem:h,items:p,title:b}=t,A=p.filter(F=>e.find(({name:j})=>Bv(j)===F)).map(F=>{const j=n.create(F);return F===h&&(l=j),j});p.length!==A.length&&up.warnInvalidStyle({dropdown:t});const C=Zn(s,Lc),E=C.buttonView,P=E.arrowView;return Ou(C,A,{enableActiveItemFocusOnDropdownOpen:!0}),E.set({label:Fv(b,l.label),class:null,tooltip:!0}),P.unbind("label"),P.set({label:b}),E.bind("icon").toMany(A,"isOn",(...F)=>{const j=F.findIndex(Pn);return j<0?l.icon:A[j].icon}),E.bind("label").toMany(A,"isOn",(...F)=>{const j=F.findIndex(Pn);return Fv(b,j<0?l.label:A[j].label)}),E.bind("isOn").toMany(A,"isOn",(...F)=>F.some(Pn)),E.bind("class").toMany(A,"isOn",(...F)=>F.some(Pn)?"ck-splitbutton_flatten":void 0),E.on("execute",()=>{A.some(({isOn:F})=>F)?C.isOpen=!C.isOpen:l.fire("execute")}),C.bind("isEnabled").toMany(A,"isEnabled",(...F)=>F.some(Pn)),this.listenTo(C,"execute",()=>{this.editor.editing.view.focus()}),C})}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(Bv(e),n=>{const s=this.editor.commands.get("imageStyle"),l=new ve(n);return l.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),l.bind("isEnabled").to(s,"isEnabled"),l.bind("isOn").to(s,"value",h=>h===e),l.on("execute",this._executeCommand.bind(this,e)),l})}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function Ov(r,t){for(const e of r)t[e.title]&&(e.title=t[e.title]);return r}function Bv(r){return`imageStyle:${r}`}function Fv(r,t){return(r?r+": ":"")+t}class CC extends Lt{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new Vl(t)),t.commands.add("outdent",new Vl(t))}}const zv='',Rv='';class yC extends Lt{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,s="ltr"==e.uiLanguageDirection?zv:Rv,l="ltr"==e.uiLanguageDirection?Rv:zv;this._defineButton("indent",n("Increase indent"),s),this._defineButton("outdent",n("Decrease indent"),l)}_defineButton(t,e,n){const s=this.editor;s.ui.componentFactory.add(t,l=>{const h=s.commands.get(t),p=new ve(l);return p.set({label:e,icon:n,tooltip:!0}),p.bind("isEnabled").to(h,"isEnabled"),this.listenTo(p,"execute",()=>{s.execute(t),s.editing.view.focus()}),p})}}class EC{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach(e=>this._definitions.add(e)):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",(e,n,s)=>{if(!s.consumable.test(n.item,"attribute:linkHref")||!n.item.is("selection")&&!s.schema.isInline(n.item))return;const l=s.writer,h=l.document.selection;for(const p of this._definitions){const b=l.createAttributeElement("a",p.attributes,{priority:5});p.classes&&l.addClass(p.classes,b);for(const A in p.styles)l.setStyle(A,p.styles[A],b);l.setCustomProperty("link",!0,b),p.callback(n.attributeNewValue)?n.item.is("selection")?l.wrap(h.getFirstRange(),b):l.wrap(s.mapper.toViewRange(n.range),b):l.unwrap(s.mapper.toViewRange(n.range),b)}},{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",(e,n,{writer:s,mapper:l})=>{const h=l.toViewElement(n.item),p=Array.from(h.getChildren()).find(b=>b.is("element","a"));for(const b of this._definitions){const A=ri(b.attributes);if(b.callback(n.attributeNewValue)){for(const[C,E]of A)"class"===C?s.addClass(E,p):s.setAttribute(C,E,p);b.classes&&s.addClass(b.classes,p);for(const C in b.styles)s.setStyle(C,b.styles[C],p)}else{for(const[C,E]of A)"class"===C?s.removeClass(E,p):s.removeAttribute(C,p);b.classes&&s.removeClass(b.classes,p);for(const C in b.styles)s.removeStyle(C,p)}}})}}}var SC=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Zv=function(r){return SC.test(r)};var Uv="\\ud800-\\udfff",DC="["+Uv+"]",pp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",gp="\\ud83c[\\udffb-\\udfff]",jv="[^"+Uv+"]",Vv="(?:\\ud83c[\\udde6-\\uddff]){2}",qv="[\\ud800-\\udbff][\\udc00-\\udfff]",Yv="(?:"+pp+"|"+gp+")?",Hv="[\\ufe0e\\ufe0f]?",MC=Hv+Yv+"(?:\\u200d(?:"+[jv,Vv,qv].join("|")+")"+Hv+Yv+")*",LC="(?:"+[jv+pp+"?",pp,Vv,qv,DC].join("|")+")",PC=RegExp(gp+"(?="+gp+")|"+LC+MC,"g");const BC=function(t){t=$s(t);var e=Zv(t)?function(r){return Zv(r)?function(r){return r.match(PC)||[]}(r):function(r){return r.split("")}(r)}(t):void 0,n=e?e[0]:t.charAt(0),s=e?function(r,t,e){var n=r.length;return ec(r,1,e=void 0===e?n:e)}(e).join(""):t.slice(1);return n.toUpperCase()+s},FC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,zC=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,RC=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,ZC=/^((\w+:(\/{2,})?)|(\W))/i,mp="Ctrl+K";function Gv(r,{writer:t}){const e=t.createAttributeElement("a",{href:r},{priority:5});return t.setCustomProperty("link",!0,e),e}function Wv(r){const t=String(r);return t.replace(FC,"").match(zC)?t:"#"}function fp(r,t){return!!r&&t.checkAttribute(r.name,"linkHref")}function bp(r,t){const e=RC.test(r)?"mailto:":t,s=!!e&&!Qv(r);return r&&s?e+r:r}function Qv(r){return ZC.test(r)}function Xv(r){window.open(r,"_blank","noopener")}class UC extends Jt{constructor(){super(...arguments),this.manualDecorators=new di,this.automaticDecorators=new EC}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||Oe(e.getSelectedBlocks());fp(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));for(const s of this.manualDecorators)s.value=this._getDecoratorStateFromModel(s.id)}execute(t,e={}){const n=this.editor.model,s=n.document.selection,l=[],h=[];for(const p in e)e[p]?l.push(p):h.push(p);n.change(p=>{if(s.isCollapsed){const b=s.getFirstPosition();if(s.hasAttribute("linkHref")){const A=Kv(s);let C=qc(b,"linkHref",s.getAttribute("linkHref"),n);s.getAttribute("linkHref")===A&&(C=this._updateLinkContent(n,p,C,t)),p.setAttribute("linkHref",t,C),l.forEach(E=>{p.setAttribute(E,!0,C)}),h.forEach(E=>{p.removeAttribute(E,C)}),p.setSelection(p.createPositionAfter(C.end.nodeBefore))}else if(""!==t){const A=ri(s.getAttributes());A.set("linkHref",t),l.forEach(E=>{A.set(E,!0)});const{end:C}=n.insertContent(p.createText(t,A),b);p.setSelection(C)}["linkHref",...l,...h].forEach(A=>{p.removeSelectionAttribute(A)})}else{const b=n.schema.getValidRanges(s.getRanges(),"linkHref"),A=[];for(const E of s.getSelectedBlocks())n.schema.checkAttribute(E,"linkHref")&&A.push(p.createRangeOn(E));const C=A.slice();for(const E of b)this._isRangeToUpdate(E,A)&&C.push(E);for(const E of C){let P=E;if(1===C.length){const F=Kv(s);s.getAttribute("linkHref")===F&&(P=this._updateLinkContent(n,p,E,t),p.setSelection(p.createSelection(P)))}p.setAttribute("linkHref",t,P),l.forEach(F=>{p.setAttribute(F,!0,P)}),h.forEach(F=>{p.removeAttribute(F,P)})}}})}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,s=n.getSelectedElement();return fp(s,e.schema)?s.getAttribute(t):n.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}_updateLinkContent(t,e,n,s){const l=e.createText(s,{linkHref:s});return t.insertContent(l,n)}}function Kv(r){if(r.isCollapsed){const t=r.getFirstPosition();return t.textNode&&t.textNode.data}{const t=Array.from(r.getFirstRange().getItems());if(t.length>1)return null;const e=t[0];return e.is("$text")||e.is("$textProxy")?e.data:null}}class jC extends Jt{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();this.isEnabled=fp(n,t.schema)?t.schema.checkAttribute(n,"linkHref"):t.schema.checkAttributeInSelection(e,"linkHref")}execute(){const e=this.editor.model,n=e.document.selection,s=this.editor.commands.get("link");e.change(l=>{const h=n.isCollapsed?[qc(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const p of h)if(l.removeAttribute("linkHref",p),s)for(const b of s.manualDecorators)l.removeAttribute(b.id,p)})}}class VC extends(ne()){constructor({id:t,label:e,attributes:n,classes:s,styles:l,defaultValue:h}){super(),this.id=t,this.set("value",void 0),this.defaultValue=h,this.label=e,this.attributes=n,this.classes=s,this.styles=l}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Jv=lt(9773);Rt()(Jv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var YC=Object.defineProperty,$v=Object.getOwnPropertySymbols,HC=Object.prototype.hasOwnProperty,GC=Object.prototype.propertyIsEnumerable,tk=(r,t,e)=>t in r?YC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,WC=(r,t)=>{for(var e in t||(t={}))HC.call(t,e)&&tk(r,e,t[e]);if($v)for(var e of $v(t))GC.call(t,e)&&tk(r,e,t[e]);return r};const ek="automatic",QC=/^(https?:)?\/\//;class ik extends Lt{static get pluginName(){return"LinkEditing"}static get requires(){return[Ef,kf,fn]}constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Gv}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(n,s)=>Gv(Wv(n),s)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:n=>n.getAttribute("href")}}),t.commands.add("link",new UC(t)),t.commands.add("unlink",new jC(t));const e=function(n,s){const l={"Open in a new tab":n("Open in a new tab"),Downloadable:n("Downloadable")};return s.forEach(h=>("label"in h&&l[h.label]&&(h.label=l[h.label]),h)),s}(t.t,function(n){const s=[];if(n)for(const[l,h]of Object.entries(n)){const p=Object.assign({},h,{id:`link${BC(l)}`});s.push(p)}return s}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter(n=>n.mode===ek)),this._enableManualDecorators(e.filter(n=>"manual"===n.mode)),t.plugins.get(Ef).registerAttribute("linkHref"),function(n,s,l,h){const p=n.editing.view,b=new Set;p.document.registerPostFixer(A=>{const C=n.model.document.selection;let E=!1;if(C.hasAttribute(s)){const P=qc(C.getFirstPosition(),s,C.getAttribute(s),n.model),F=n.editing.mapper.toViewRange(P);for(const j of F.getItems())j.is("element","a")&&!j.hasClass(h)&&(A.addClass(h,j),b.add(j),E=!0)}return E}),n.conversion.for("editingDowncast").add(A=>{function C(){p.change(E=>{for(const P of b.values())E.removeClass(h,P),b.delete(P)})}A.on("insert",C,{priority:"highest"}),A.on("remove",C,{priority:"highest"}),A.on("attribute",C,{priority:"highest"}),A.on("selection",C,{priority:"highest"})})}(t,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:ek,callback:s=>!!s&&QC.test(s),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach(s=>{e.model.schema.extend("$text",{allowAttributes:s.id});const l=new VC(s);n.add(l),e.conversion.for("downcast").attributeToElement({model:l.id,view:(h,{writer:p,schema:b},{item:A})=>{if((A.is("selection")||b.isInline(A))&&h){const C=p.createAttributeElement("a",l.attributes,{priority:5});l.classes&&p.addClass(l.classes,C);for(const E in l.styles)p.setStyle(E,l.styles[E],C);return p.setCustomProperty("link",!0,C),C}}}),e.conversion.for("upcast").elementToAttribute({view:WC({name:"a"},l._createPattern()),model:{key:l.id}})})}_enableLinkOpen(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",(n,s)=>{if(!(it.isMac?s.domEvent.metaKey:s.domEvent.ctrlKey))return;let l=s.domTarget;if("a"!=l.tagName.toLowerCase()&&(l=l.closest("a")),!l)return;const h=l.getAttribute("href");h&&(n.stop(),s.preventDefault(),Xv(h))},{context:"$capture"}),this.listenTo(e,"keydown",(n,s)=>{const l=t.commands.get("link").value;l&&s.keyCode===se.enter&&s.altKey&&(n.stop(),Xv(l))})}_enableSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(e,"change:attribute",(n,{attributeKeys:s})=>{s.includes("linkHref")&&!e.hasAttribute("linkHref")&&t.change(l=>{var h;!function(p,b){p.removeSelectionAttribute("linkHref");for(const A of b)p.removeSelectionAttribute(A)}(l,(h=t.schema,h.getDefinition("$text").allowAttributes.filter(p=>p.startsWith("link"))))})})}_enableClipboardIntegration(){const t=this.editor,e=t.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(t.plugins.get("ClipboardPipeline"),"contentInsertion",(s,l)=>{e.change(h=>{const p=h.createRangeIn(l.content);for(const b of p.getItems())if(b.hasAttribute("linkHref")){const A=bp(b.getAttribute("linkHref"),n);h.setAttribute("linkHref",A,b)}})})}}var nk=lt(7754);Rt()(nk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class KC extends Wt{constructor(t,e){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri;const n=t.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const s=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&s.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:s,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((t,e)=>(t[e.name]=e.isOn,t),{})}render(){super.render(),L({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new Cr(this.locale,Pc);return e.label=t("Link URL"),e}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const s=new xr(this.locale);s.set({name:n.id,label:n.label,withText:!0}),s.bind("isOn").toMany([n,t],"value",(l,h)=>void 0===h&&void 0===l?!!n.defaultValue:!!l),s.on("execute",()=>{n.set("value",!s.isOn)}),e.add(s)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const n=new Wt;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(s=>({tag:"li",children:[s],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(n)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var ok=lt(2347);Rt()(ok.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class $C extends Wt{constructor(t){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri;const e=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("Unlink"),'',"unlink"),this.editButtonView=this._createButton(e("Edit link"),Ae.pencil,"edit"),this.set("href",void 0),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const s=new ve(this.locale);return s.set({label:t,icon:e,tooltip:!0}),s.delegate("execute").to(this,n),s}_createPreviewButton(){const t=new ve(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",s=>s&&Wv(s)),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",s=>s||n("This link has no URL")),t.bind("isEnabled").to(this,"href",s=>!!s),t.template.tag="a",t.template.eventListeners={},t}}const bn="link-ui";class ty extends Lt{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[Rc]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(aw),this._balloon=t.plugins.get(Rc),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:bn,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:bn,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const t=this.editor,e=new $C(t.locale),n=t.commands.get("link"),s=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(s),this.listenTo(e,"edit",()=>{this._addFormView()}),this.listenTo(e,"unlink",()=>{t.execute("unlink"),this._hideUI()}),e.keystrokes.set("Esc",(l,h)=>{this._hideUI(),h()}),e.keystrokes.set(mp,(l,h)=>{this._addFormView(),h()}),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),s=new(ct(KC))(t.locale,e);return s.urlInputView.fieldView.bind("value").to(e,"value"),s.urlInputView.bind("isEnabled").to(e,"isEnabled"),s.saveButtonView.bind("isEnabled").to(e),this.listenTo(s,"submit",()=>{const{value:l}=s.urlInputView.fieldView.element,h=bp(l,n);t.execute("link",h,s.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(s,"cancel",()=>{this._closeFormView()}),s.keystrokes.set("Esc",(l,h)=>{this._closeFormView(),h()}),s}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link"),n=t.t;t.ui.componentFactory.add("link",s=>{const l=new ve(s);return l.isEnabled=!0,l.label=n("Link"),l.icon='',l.keystroke=mp,l.tooltip=!0,l.isToggleable=!0,l.bind("isEnabled").to(e,"isEnabled"),l.bind("isOn").to(e,"value",h=>!!h),this.listenTo(l,"execute",()=>this._showUI(!0)),l})}_enableBalloonActivators(){const t=this.editor;this.listenTo(t.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),t.keystrokes.set(mp,(n,s)=>{s(),t.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())},{priority:"high"}),this.editor.keystrokes.set("Esc",(t,e)=>{this._isUIVisible&&(this._hideUI(),e())}),et({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=t.value||""}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),s=h();const l=()=>{const p=this._getSelectedLinkElement(),b=h();n&&!p||!n&&b!==s?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=p,s=b};function h(){return e.selection.focus.getAncestors().reverse().find(p=>p.is("element"))}this.listenTo(t.ui,"update",l),this.listenTo(this._balloon,"change:visibleView",l)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return!!this.formView&&this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,n=t.document;let s;if(this.editor.model.markers.has(bn)){const l=Array.from(this.editor.editing.mapper.markerNameToElements(bn)),h=t.createRange(t.createPositionBefore(l[0]),t.createPositionAfter(l[l.length-1]));s=t.domConverter.viewRangeToDom(h)}else s=()=>{const l=this._getSelectedLinkElement();return l?t.domConverter.mapViewToDom(l):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:s}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&He(n))return vp(e.getFirstPosition());{const s=e.getFirstRange().getTrimmed(),l=vp(s.start),h=vp(s.end);return l&&l==h&&t.createRangeIn(l).getTrimmed().isEqual(s)?l:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change(e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(bn))e.updateMarker(bn,{range:n});else if(n.start.isAtEnd){const s=n.start.getLastMatchingPosition(({item:l})=>!t.schema.isContent(l),{boundaries:n});e.addMarker(bn,{usingOperation:!1,affectsData:!1,range:e.createRange(s,n.end)})}else e.addMarker(bn,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(bn)&&t.change(e=>{e.removeMarker(bn)})}}function vp(r){return r.getAncestors().find(t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e})||null}const rk=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class ey extends Lt{static get requires(){return[Un,ik]}static get pluginName(){return"AutoLink"}init(){const t=this.editor.model.document.selection;t.on("change:range",()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(t,e){return e.textNode&&e.textNode.hasAttribute("linkHref")?qc(e,"linkHref",e.textNode.getAttribute("linkHref"),t):null}_selectEntireLinks(t,e){const n=this.editor.model,s=n.document.selection,l=s.getFirstPosition(),h=s.getLastPosition();let p=e.getJoined(this._expandLinkRange(n,l)||e);p&&(p=p.getJoined(this._expandLinkRange(n,h)||e)),p&&(p.start.isBefore(l)||p.end.isAfter(h))&&t.setSelection(p)}_enablePasteLinking(){const t=this.editor,e=t.model,n=e.document.selection,s=t.plugins.get("ClipboardPipeline"),l=t.commands.get("link");s.on("inputTransformation",(h,p)=>{if(!this.isEnabled||!l.isEnabled||n.isCollapsed||n.rangeCount>1)return;const b=n.getFirstRange(),A=p.dataTransfer.getData("text/plain");if(!A)return;const C=A.match(rk);C&&C[2]===A&&(e.change(E=>{this._selectEntireLinks(E,b),l.execute(A)}),h.stop())},{priority:"high"})}_enableTypingHandling(){const t=this.editor,e=new yf(t.model,n=>{if(!((l=n).length>4&&" "===l[l.length-1]&&" "!==l[l.length-2]))return;var l;const s=sk(n.substr(0,n.length-1));return s?{url:s}:void 0});e.on("matched:data",(n,s)=>{const{batch:l,range:h,url:p}=s;if(!l.isTyping)return;const b=h.end.getShiftedBy(-1),A=b.getShiftedBy(-p.length),C=t.model.createRange(A,b);this._applyAutoLink(p,C)}),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",()=>{const s=e.document.selection.getFirstPosition();if(!s.parent.previousSibling)return;const l=e.createRangeIn(s.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(l)})}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",()=>{const s=e.document.selection.getFirstPosition(),l=e.createRange(e.createPositionAt(s.parent,0),s.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(l)})}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:s}=Cf(t,e),l=sk(n);if(l){const h=e.createRange(s.end.getShiftedBy(-l.length),s.end);this._applyAutoLink(l,h)}}_applyAutoLink(t,e){const n=this.editor.model,s=bp(t,this.editor.config.get("link.defaultProtocol"));var h;this.isEnabled&&(h=n).schema.checkAttributeInSelection(h.createSelection(e),"linkHref")&&Qv(s)&&!function(l){const h=l.start.nodeAfter;return!!h&&h.hasAttribute("linkHref")}(e)&&this._persistAutoLink(s,e)}_persistAutoLink(t,e){const n=this.editor.model,s=this.editor.plugins.get("Delete");n.enqueueChange(l=>{l.setAttribute("linkHref",t,e),n.enqueueChange(()=>{s.requestUndoOnBackspace()})})}}function sk(r){const t=rk.exec(r);return t?t[2]:null}var ak=lt(111);Rt()(ak.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var lk=lt(5730);Rt()(lk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var ck=lt(4564);function dk(r,t,e,n){const s=t.parent,l=e.mapper,h=e.writer;let p=l.toViewPosition(n.createPositionBefore(r));const b=uk(r.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:r.getAttribute("listIndent")}),A=r.previousSibling;if(b&&b.getAttribute("listIndent")==r.getAttribute("listIndent")){const C=l.toViewElement(b);p=h.breakContainer(h.createPositionAfter(C))}else if(A&&"listItem"==A.name){p=l.toViewPosition(n.createPositionAt(A,"end"));const C=l.findMappedViewAncestor(p),E=function(P){for(const F of P.getChildren())if("ul"==F.name||"ol"==F.name)return F;return null}(C);p=E?h.createPositionBefore(E):h.createPositionAt(C,"end")}else p=l.toViewPosition(n.createPositionBefore(r));if(p=hk(p),h.insert(p,s),A&&"listItem"==A.name){const C=l.toViewElement(A),E=h.createRange(h.createPositionAt(C,0),p).getWalker({ignoreElementEnd:!0});for(const P of E)if(P.item.is("element","li")){const F=h.breakContainer(h.createPositionBefore(P.item)),j=P.item.parent,Y=h.createPositionAt(t,"end");Hi(h,Y.nodeBefore,Y.nodeAfter),h.move(h.createRangeOn(j),Y),E._position=F}}else{const C=s.nextSibling;if(C&&(C.is("element","ul")||C.is("element","ol"))){let E=null;for(const P of C.getChildren()){const F=l.toModelElement(P);if(!(F&&F.getAttribute("listIndent")>r.getAttribute("listIndent")))break;E=P}E&&(h.breakContainer(h.createPositionAfter(E)),h.move(h.createRangeOn(E.parent),h.createPositionAt(t,"end")))}}Hi(h,s,s.nextSibling),Hi(h,s.previousSibling,s)}function Hi(r,t,e){return!t||!e||"ul"!=t.name&&"ol"!=t.name||t.name!=e.name||t.getAttribute("class")!==e.getAttribute("class")?null:r.mergeContainers(r.createPositionAfter(t))}function hk(r){return r.getLastMatchingPosition(t=>t.item.is("uiElement"))}function uk(r,t){const e=!!t.sameIndent,n=!!t.smallerIndent,s=t.listIndent;let l=r;for(;l&&"listItem"==l.name;){const h=l.getAttribute("listIndent");if(e&&s==h||n&&s>h)return l;l="forward"===t.direction?l.nextSibling:l.previousSibling}return null}function pk(r,t,e,n){r.ui.componentFactory.add(t,s=>{const l=r.commands.get(t),h=new ve(s);return h.set({label:e,icon:n,tooltip:!0,isToggleable:!0}),h.bind("isOn","isEnabled").to(l,"value","isEnabled"),h.on("execute",()=>{r.execute(t),r.editing.view.focus()}),h})}function kp(r,t){const e=[],n=r.parent,s={ignoreElementEnd:!1,startPosition:r,shallow:!0,direction:t},l=n.getAttribute("listIndent"),h=[...new Li(s)].filter(p=>p.item.is("element")).map(p=>p.item);for(const p of h){if(!p.is("element","listItem")||p.getAttribute("listIndent")l)){if(p.getAttribute("listType")!==n.getAttribute("listType")||p.getAttribute("listStyle")!==n.getAttribute("listStyle")||p.getAttribute("listReversed")!==n.getAttribute("listReversed")||p.getAttribute("listStart")!==n.getAttribute("listStart"))break;"backward"===t?e.unshift(p):e.push(p)}}return e}Rt()(ck.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const sy=["disc","circle","square"],ay=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function ly(){const r=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||r?0:sc.call(this)}class cy extends Lt{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;pk(this.editor,"numberedList",t("Numbered List"),''),pk(this.editor,"bulletedList",t("Bulleted List"),'')}}const dy={},hy={},uy={},py=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:r,typeAttribute:t,listType:e}of py)dy[r]=e,hy[r]=t,t&&(uy[t]=r);var gk=lt(6082);Rt()(gk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var mk=lt(2417);Rt()(mk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class fk extends Jt{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model;let n=Array.from(t.document.selection.getSelectedBlocks());t.change(s=>{const l=n[n.length-1];let h=l.nextSibling;for(;h&&"listItem"==h.name&&h.getAttribute("listIndent")>l.getAttribute("listIndent");)n.push(h),h=h.nextSibling;this._indentBy<0&&(n=n.reverse());for(const p of n){const b=p.getAttribute("listIndent")+this._indentBy;b<0?s.rename(p,"paragraph"):s.setAttribute("listIndent",b,p)}this.fire("_executeCleanup",n)})}_checkEnabled(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let s=t.previousSibling;for(;s&&s.is("element","listItem")&&s.getAttribute("listIndent")>=e;){if(s.getAttribute("listIndent")==e)return s.getAttribute("listType")==n;s=s.previousSibling}return!1}return!0}}class bk extends Jt{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,s=Array.from(e.document.selection.getSelectedBlocks()).filter(h=>kk(h,e.schema)),l=void 0!==t.forceValue?!t.forceValue:this.value;e.change(h=>{if(l){let p=s[s.length-1].nextSibling,b=Number.POSITIVE_INFINITY,A=[];for(;p&&"listItem"==p.name&&0!==p.getAttribute("listIndent");){const C=p.getAttribute("listIndent");C=e;)l>s.getAttribute("listIndent")&&(l=s.getAttribute("listIndent")),s.getAttribute("listIndent")==l&&r[t?"unshift":"push"](s),s=s[t?"previousSibling":"nextSibling"]}}function kk(r,t){return t.checkChild(r.parent,"listItem")&&!t.isObject(r)}class fy extends Lt{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(t){return sy.includes(e=t)?"bulleted":ay.includes(e)?"numbered":null;var e}getSelectedListItems(t){return function(e){let n=[...e.document.selection.getSelectedBlocks()].filter(s=>s.is("element","listItem")).map(s=>{const l=e.change(h=>h.createPositionAt(s,0));return[...kp(l,"backward"),...kp(l,"forward")]}).flat();return n=[...new Set(n)],n}(t)}getSiblingNodes(t,e){return kp(t,e)}}function _k(r){return(t,e,n)=>{const s=n.consumable;if(!s.test(e.item,"insert")||!s.test(e.item,"attribute:listType")||!s.test(e.item,"attribute:listIndent"))return;s.consume(e.item,"insert"),s.consume(e.item,"attribute:listType"),s.consume(e.item,"attribute:listIndent");const l=e.item;dk(l,function ry(r,t){const e=t.mapper,n=t.writer,s="numbered"==r.getAttribute("listType")?"ol":"ul",l=function(p){const b=p.createContainerElement("li");return b.getFillerOffset=ly,b}(n),h=n.createContainerElement(s,null);return n.insert(n.createPositionAt(h,0),l),e.bindElements(r,l),l}(l,n),n,r)}}const by=(r,t,e)=>{if(!e.consumable.test(t.item,r.name))return;const n=e.mapper.toViewElement(t.item),s=e.writer;s.breakContainer(s.createPositionBefore(n)),s.breakContainer(s.createPositionAfter(n)),s.rename("numbered"==t.attributeNewValue?"ol":"ul",n.parent)},vy=(r,t,e)=>{e.consumable.consume(t.item,r.name);const n=e.mapper.toViewElement(t.item).parent,s=e.writer;Hi(s,n,n.nextSibling),Hi(s,n.previousSibling,n)},wk=(r,t,e)=>{if(e.consumable.test(t.item,r.name)&&"listItem"!=t.item.name){let n=e.mapper.toViewPosition(t.range.start);const s=e.writer,l=[];for(;("ul"==n.parent.name||"ol"==n.parent.name)&&(n=s.breakContainer(n),"li"==n.parent.name);){const h=n,p=s.createPositionAt(n.parent,"end");if(!h.isEqual(p)){const b=s.remove(s.createRange(h,p));l.push(b)}n=s.createPositionAfter(n.parent)}if(l.length>0){for(let h=0;h0){const b=Hi(s,p,p.nextSibling);b&&b.parent==p&&n.offset--}}Hi(s,n.nodeBefore,n.nodeAfter)}}},ky=(r,t,e)=>{const n=e.mapper.toViewPosition(t.position);Hi(e.writer,n.nodeBefore,n.nodeAfter)},_y=(r,t,e)=>{if(e.consumable.consume(t.viewItem,{name:!0})){const n=e.writer,s=n.createElement("listItem"),l=function(b){let A=0,C=b.parent;for(;C;){if(C.is("element","li"))A++;else{const E=C.previousSibling;E&&E.is("element","li")&&A++}C=C.parent}return A}(t.viewItem);if(n.setAttribute("listIndent",l,s),n.setAttribute("listType",t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted",s),!e.safeInsert(s,t.modelCursor))return;const p=function(b,A,C){const{writer:E,schema:P}=C;let F=E.createPositionAfter(b);for(const j of A)if("ul"==j.name||"ol"==j.name)F=C.convertItem(j,F).modelCursor;else{const Y=C.convertItem(j,E.createPositionAt(b,"end")),$=Y.modelRange.start.nodeAfter;$&&$.is("element")&&!P.checkChild(b,$.name)&&(b=Y.modelCursor.parent.is("element","listItem")?Y.modelCursor.parent:xy(Y.modelCursor),F=E.createPositionAfter(b))}return F}(s,t.viewItem.getChildren(),e);t.modelRange=n.createRange(t.modelCursor,p),e.updateConversionResult(s,t)}},Ak=(r,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){const n=Array.from(t.viewItem.getChildren());for(const s of n)!s.is("element","li")&&!ts(s)&&s._remove()}},wy=(r,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;const n=[...t.viewItem.getChildren()];let s=!1;for(const l of n)s&&!ts(l)&&l._remove(),ts(l)&&(s=!0)}};function xk(r){return(t,e)=>{if(e.isPhantom)return;const n=e.modelPosition.nodeBefore;if(n&&n.is("element","listItem")){const s=e.mapper.toViewElement(n),l=s.getAncestors().find(ts),h=r.createPositionAt(s,0).getWalker();for(const p of h){if("elementStart"==p.type&&p.item.is("element","li")){e.viewPosition=p.previousPosition;break}if("elementEnd"==p.type&&p.item==l){e.viewPosition=p.nextPosition;break}}}}}const Ay=function(r,[t,e]){let s,l=t.is("documentFragment")?t.getChild(0):t;if(s=e?this.createSelection(e):this.document.selection,l&&l.is("element","listItem")){const h=s.getFirstPosition();let p=null;if(h.parent.is("element","listItem")?p=h.parent:h.nodeBefore&&h.nodeBefore.is("element","listItem")&&(p=h.nodeBefore),p){const b=p.getAttribute("listIndent");if(b>0)for(;l&&l.is("element","listItem");)l._setAttribute("listIndent",l.getAttribute("listIndent")+b),l=l.nextSibling}}};function xy(r){const t=new Li({startPosition:r});let e;do{e=t.next()}while(!e.value.item.is("element","listItem"));return e.value.item}function Ck(r,t,e,n,s,l){const h=uk(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:r}),p=s.mapper,b=s.writer,A=h?h.getAttribute("listIndent"):null;let C;if(h)if(A==r){const E=p.toViewElement(h).parent;C=b.createPositionAfter(E)}else{const E=l.createPositionAt(h,"end");C=p.toViewPosition(E)}else C=e;C=hk(C);for(const E of[...n.getChildren()])ts(E)&&(C=b.move(b.createRangeOn(E),C).end,Hi(b,E,E.nextSibling),Hi(b,E.previousSibling,E))}function ts(r){return r.is("element","ol")||r.is("element","ul")}class Cy extends Lt{static get pluginName(){return"ListEditing"}static get requires(){return[Yc,Un,fy]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;var s;t.model.document.registerPostFixer(h=>function(p,b){const A=p.document.differ.getChanges(),C=new Map;let E=!1;for(const Y of A)if("insert"==Y.type&&"listItem"==Y.name)P(Y.position);else if("insert"==Y.type&&"listItem"!=Y.name){if("$text"!=Y.name){const $=Y.position.nodeAfter;$.hasAttribute("listIndent")&&(b.removeAttribute("listIndent",$),E=!0),$.hasAttribute("listType")&&(b.removeAttribute("listType",$),E=!0),$.hasAttribute("listStyle")&&(b.removeAttribute("listStyle",$),E=!0),$.hasAttribute("listReversed")&&(b.removeAttribute("listReversed",$),E=!0),$.hasAttribute("listStart")&&(b.removeAttribute("listStart",$),E=!0);for(const st of Array.from(p.createRangeIn($)).filter(ft=>ft.item.is("element","listItem")))P(st.previousPosition)}P(Y.position.getShiftedBy(Y.length))}else"remove"==Y.type&&"listItem"==Y.name?P(Y.position):("attribute"==Y.type&&"listIndent"==Y.attributeKey||"attribute"==Y.type&&"listType"==Y.attributeKey)&&P(Y.range.start);for(const Y of C.values())F(Y),j(Y);return E;function P(Y){const $=Y.nodeBefore;if($&&$.is("element","listItem")){let st=$;if(C.has(st))return;for(let ft=st.previousSibling;ft&&ft.is("element","listItem");ft=st.previousSibling)if(st=ft,C.has(st))return;C.set($,st)}else{const st=Y.nodeAfter;st&&st.is("element","listItem")&&C.set(st,st)}}function F(Y){let $=0,st=null;for(;Y&&Y.is("element","listItem");){const ft=Y.getAttribute("listIndent");if(ft>$){let At;null===st?(st=ft-$,At=$):(st>ft&&(st=ft),At=ft-st),b.setAttribute("listIndent",At,Y),E=!0}else st=null,$=Y.getAttribute("listIndent")+1;Y=Y.nextSibling}}function j(Y){let $=[],st=null;for(;Y&&Y.is("element","listItem");){const ft=Y.getAttribute("listIndent");if(st&&st.getAttribute("listIndent")>ft&&($=$.slice(0,ft+1)),0!=ft)if($[ft]){const At=$[ft];Y.getAttribute("listType")!=At&&(b.setAttribute("listType",At,Y),E=!0)}else $[ft]=Y.getAttribute("listType");st=Y,Y=Y.nextSibling}}}(t.model,h)),n.mapper.registerViewToModelLength("li",_p),e.mapper.registerViewToModelLength("li",_p),n.mapper.on("modelToViewPosition",xk(n.view)),n.mapper.on("viewToModelPosition",(s=t.model,(h,p)=>{const b=p.viewPosition,A=b.parent,C=p.mapper;if("ul"==A.name||"ol"==A.name){if(b.isAtEnd){const E=C.toModelElement(b.nodeBefore),P=C.getModelLength(b.nodeBefore);p.modelPosition=s.createPositionBefore(E).getShiftedBy(P)}else{const E=C.toModelElement(b.nodeAfter);p.modelPosition=s.createPositionBefore(E)}h.stop()}else if("li"==A.name&&b.nodeBefore&&("ul"==b.nodeBefore.name||"ol"==b.nodeBefore.name)){const E=C.toModelElement(A);let P=1,F=b.nodeBefore;for(;F&&ts(F);)P+=C.getModelLength(F),F=F.previousSibling;p.modelPosition=s.createPositionBefore(E).getShiftedBy(P),h.stop()}})),e.mapper.on("modelToViewPosition",xk(n.view)),t.conversion.for("editingDowncast").add(h=>{var p;h.on("insert",wk,{priority:"high"}),h.on("insert:listItem",_k(t.model)),h.on("attribute:listType:listItem",by,{priority:"high"}),h.on("attribute:listType:listItem",vy,{priority:"low"}),h.on("attribute:listIndent:listItem",(p=t.model,(b,A,C)=>{if(!C.consumable.consume(A.item,"attribute:listIndent"))return;const E=C.mapper.toViewElement(A.item),P=C.writer;P.breakContainer(P.createPositionBefore(E)),P.breakContainer(P.createPositionAfter(E));const F=E.parent,j=F.previousSibling,Y=P.createRangeOn(F);P.remove(Y),j&&j.nextSibling&&Hi(P,j,j.nextSibling),Ck(A.attributeOldValue+1,A.range.start,Y.start,E,C,p),dk(A.item,E,C,p);for(const $ of A.item.getChildren())C.consumable.consume($,"insert")})),h.on("remove:listItem",function(p){return(b,A,C)=>{const E=C.mapper.toViewPosition(A.position).getLastMatchingPosition(st=>!st.item.is("element","li")).nodeAfter,P=C.writer;P.breakContainer(P.createPositionBefore(E)),P.breakContainer(P.createPositionAfter(E));const F=E.parent,j=F.previousSibling,Y=P.createRangeOn(F),$=P.remove(Y);j&&j.nextSibling&&Hi(P,j,j.nextSibling),Ck(C.mapper.toModelElement(E).getAttribute("listIndent")+1,A.position,Y.start,E,C,p);for(const st of P.createRangeIn($).getItems())C.mapper.unbindViewElement(st);b.stop()}}(t.model)),h.on("remove",ky,{priority:"low"})}),t.conversion.for("dataDowncast").add(h=>{h.on("insert",wk,{priority:"high"}),h.on("insert:listItem",_k(t.model))}),t.conversion.for("upcast").add(h=>{h.on("element:ul",Ak,{priority:"high"}),h.on("element:ol",Ak,{priority:"high"}),h.on("element:li",wy,{priority:"high"}),h.on("element:li",_y)}),t.model.on("insertContent",Ay,{priority:"high"}),t.commands.add("numberedList",new bk(t,"numbered")),t.commands.add("bulletedList",new bk(t,"bulleted")),t.commands.add("indentList",new fk(t,"forward")),t.commands.add("outdentList",new fk(t,"backward"));const l=n.view.document;this.listenTo(l,"enter",(h,p)=>{const b=this.editor.model.document,A=b.selection.getLastPosition().parent;b.selection.isCollapsed&&"listItem"==A.name&&A.isEmpty&&(this.editor.execute("outdentList"),p.preventDefault(),h.stop())},{context:"li"}),this.listenTo(l,"delete",(h,p)=>{if("backward"!==p.direction)return;const b=this.editor.model.document.selection;if(!b.isCollapsed)return;const A=b.getFirstPosition();if(!A.isAtStart)return;const C=A.parent;"listItem"===C.name&&(C.previousSibling&&"listItem"===C.previousSibling.name||(this.editor.execute("outdentList"),p.preventDefault(),h.stop()))},{context:"li"}),this.listenTo(t.editing.view.document,"tab",(h,p)=>{const b=p.shiftKey?"outdentList":"indentList";this.editor.commands.get(b).isEnabled&&(t.execute(b),p.stopPropagation(),p.preventDefault(),h.stop())},{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function _p(r){let t=1;for(const e of r.getChildren())if("ul"==e.name||"ol"==e.name)for(const n of e.getChildren())t+=_p(n);return t}Vo("Ctrl+Enter");var yk=lt(1199);function Ek(r,t){const e=(n,s,l)=>{if(!l.consumable.consume(s.item,n.name))return;const h=s.attributeNewValue,p=l.writer,b=l.mapper.toViewElement(s.item),A=[...b.getChildren()].find(E=>E.getCustomProperty("media-content"));p.remove(A);const C=r.getMediaViewElement(p,h,t);p.insert(p.createPositionAt(b,0),C)};return n=>{n.on("attribute:url:media",e)}}function Tk(r,t,e,n){return r.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(r,e,n),r.createSlot()])}function Sk(r){const t=r.getSelectedElement();return t&&t.is("element","media")?t:null}function Ik(r,t,e,n){r.change(s=>{const l=s.createElement("media",{url:t});r.insertObject(l,e,null,{setSelection:"on",findOptimalPosition:n?"auto":void 0})})}Rt()(yk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Vo("Ctrl+Enter");class Ey extends Jt{refresh(){const t=this.editor.model,e=t.document.selection,n=Sk(e);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=function(s){const l=s.getSelectedElement();return!!l&&"media"===l.name}(e)||function(s,l){let p=zf(s,l).start.parent;return p.isEmpty&&!l.schema.isLimit(p)&&(p=p.parent),l.schema.checkChild(p,"media")}(e,t)}execute(t){const e=this.editor.model,n=e.document.selection,s=Sk(n);s?e.change(l=>{l.setAttribute("url",t,s)}):Ik(e,t,n,!0)}}class Ty{constructor(t,e){const n=e.providers,s=e.extraProviders||[],l=new Set(e.removeProviders),h=n.concat(s).filter(p=>{const b=p.name;return b?!l.has(b):(kt("media-embed-no-provider-name",{provider:p}),!1)});this.locale=t,this.providerDefinitions=h}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new Dk(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,s=Ze(e.url);for(const l of s){const h=this._getUrlMatches(t,l);if(h)return new Dk(this.locale,t,h,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let s=t.replace(/^https?:\/\//,"");return n=s.match(e),n||(s=s.replace(/^www\./,""),n=s.match(e),n||null)}}class Dk{constructor(t,e,n,s){this.url=this._getValidUrl(e),this._locale=t,this._match=n,this._previewRenderer=s}getViewElement(t,e){const n={};let s;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const l=this._getPreviewHtml(e);s=t.createRawElement("div",n,(h,p)=>{p.setContentOf(h,l)})}else this.url&&(n.url=this.url),s=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,s),s}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new Dn,e=this._locale.t;return t.content='',t.viewBox="0 0 64 42",new Ei({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}var Mk=lt(7442);Rt()(Mk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class id extends Lt{constructor(t){super(t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:e=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:e=>{const s=e[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new Ty(t.locale,t.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,s=t.conversion,l=t.config.get("mediaEmbed.previewsInData"),h=t.config.get("mediaEmbed.elementName"),p=this.registry;t.commands.add("mediaEmbed",new Ey(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),s.for("dataDowncast").elementToStructure({model:"media",view:(b,{writer:A})=>{const C=b.getAttribute("url");return Tk(A,p,C,{elementName:h,renderMediaPreview:!!C&&l})}}),s.for("dataDowncast").add(Ek(p,{elementName:h,renderMediaPreview:l})),s.for("editingDowncast").elementToStructure({model:"media",view:(b,{writer:A})=>{const C=b.getAttribute("url");return E=Tk(A,p,C,{elementName:h,renderForEditingView:!0}),P=A,F=n("media widget"),P.setCustomProperty("media",!0,E),Ju(E,P,{label:F});var E,P,F}}),s.for("editingDowncast").add(Ek(p,{elementName:h,renderForEditingView:!0})),s.for("upcast").elementToElement({view:b=>["oembed",h].includes(b.name)&&b.getAttribute("url")?{name:!0}:null,model:(b,{writer:A})=>{const C=b.getAttribute("url");return p.hasMedia(C)?A.createElement("media",{url:C}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(b,{writer:A})=>{const C=b.getAttribute("data-oembed-url");return p.hasMedia(C)?A.createElement("media",{url:C}):null}}).add(b=>{b.on("element:figure",(A,C,E)=>{if(!E.consumable.consume(C.viewItem,{name:!0,classes:"media"}))return;const{modelRange:P,modelCursor:F}=E.convertChildren(C.viewItem,C.modelCursor);C.modelRange=P,C.modelCursor=F,Oe(P.getItems())||E.consumable.revert(C.viewItem,{name:!0,classes:"media"})})})}}const Iy=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class Dy extends Lt{constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[nb,Un,db]}static get pluginName(){return"AutoMediaEmbed"}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{const s=e.selection.getFirstRange(),l=ii.fromPosition(s.start);l.stickiness="toPrevious";const h=ii.fromPosition(s.end);h.stickiness="toNext",e.once("change:data",()=>{this._embedMediaBetweenPositions(l,h),l.detach(),h.detach()},{priority:"high"})}),t.commands.get("undo").on("execute",()=>{this._timeoutId&&(Yt.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,s=n.plugins.get(id).registry,l=new Ni(t,e),h=l.getWalker({ignoreElementEnd:!0});let p="";for(const b of h)b.item.is("$textProxy")&&(p+=b.item.data);p=p.trim(),p.match(Iy)&&s.hasMedia(p)&&n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=ii.fromPosition(t),this._timeoutId=Yt.window.setTimeout(()=>{n.model.change(b=>{this._timeoutId=null,b.remove(l),l.detach();let A=null;"$graveyard"!==this._positionToInsert.root.rootName&&(A=this._positionToInsert),Ik(n.model,p,A,!1),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get(Un).requestUndoOnBackspace()},100)):l.detach()}}var Lk=lt(9292);Rt()(Lk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ly extends Wt{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Ye,this.keystrokes=new vi,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",s=>!!s),this.cancelButtonView=this._createButton(n("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._focusables=new Ri,this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),L({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Cr(this.locale,Pc),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()}),e}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}}class Py extends Lt{static get requires(){return[id]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",n=>{const s=Zn(n);return this._setUpDropdown(s,e),s})}_setUpDropdown(t,e){const n=this.editor,s=n.t,l=t.buttonView,h=n.plugins.get(id).registry;t.once("change:isOpen",()=>{const p=new(ct(Ly))((b=n.t,A=h,[C=>{if(!C.url.length)return b("The URL must not be empty.")},C=>{if(!A.hasMedia(C.url))return b("This media URL is not supported.")}]),n.locale);var b,A;t.panelView.children.add(p),l.on("open",()=>{p.disableCssTransitions(),p.url=e.value||"",p.urlInputView.fieldView.select(),p.enableCssTransitions()},{priority:"low"}),t.on("submit",()=>{p.isValid()&&(n.execute("mediaEmbed",p.url),n.editing.view.focus())}),t.on("change:isOpen",()=>p.resetFormStatus()),t.on("cancel",()=>{n.editing.view.focus()}),p.delegate("submit","cancel").to(t),p.urlInputView.fieldView.bind("value").to(e,"value"),p.urlInputView.bind("isEnabled").to(e,"isEnabled")}),t.bind("isEnabled").to(e),l.set({label:s("Insert media"),icon:'',tooltip:!0})}}var Pk=lt(4652);function By(r){if(r.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(r){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return r;default:return null}}function Nk(r,t,e){const n=t.parent,s=e.createElement(r.type),l=n.getChildIndex(t)+1;return e.insertChild(l,s,n),r.style&&e.setStyle("list-style-type",r.style,s),r.startIndex&&r.startIndex>1&&e.setAttribute("start",r.startIndex,s),s}function Fy(r){const t={},e=r.getStyle("mso-list");if(e){const n=e.match(/(^|\s{1,100})l(\d+)/i),s=e.match(/\s{0,100}lfo(\d+)/i),l=e.match(/\s{0,100}level(\d+)/i);n&&s&&l&&(t.id=n[2],t.order=s[1],t.indent=parseInt(l[1]))}return t}function Ry(r){return btoa(r.match(/\w{2}/g).map(t=>String.fromCharCode(parseInt(t,16))).join(""))}Rt()(Pk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Zy=//i,Uy=/xmlns:o="urn:schemas-microsoft-com/i;class jy{constructor(t){this.document=t}isActive(t){return Zy.test(t)||Uy.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;(function Oy(r,t){if(!r.childCount)return;const e=new ko(r.document),n=function(h,p){const b=p.createRangeIn(h),A=new Ti({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),C=[];for(const E of b)if("elementStart"===E.type&&A.match(E.item)){const P=Fy(E.item);C.push({element:E.item,id:P.id,order:P.order,indent:P.indent})}return C}(r,e);if(!n.length)return;let s=null,l=1;n.forEach((h,p)=>{const b=function(j,Y){if(!j)return!0;if(j.id!==Y.id)return Y.indent-j.indent!=1;const $=Y.element.previousSibling;return!$||!((st=$).is("element","ol")||st.is("element","ul"));var st}(n[p-1],h),C=(P=h,(E=b?null:n[p-1])?P.indent-E.indent:P.indent-1);var E,P;if(b&&(s=null,l=1),!s||0!==C){const j=function(Y,$){const ft=/mso-level-number-format:([^;]{0,100});/gi,At=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,Ft=new RegExp(`@list l${Y.id}:level${Y.indent}\\s*({[^}]*)`,"gi").exec($);let jt="decimal",ae="ol",ce=null;if(Ft&&Ft[1]){const ze=ft.exec(Ft[1]);if(ze&&ze[1]&&(jt=ze[1].trim(),ae="bullet"!==jt&&"image"!==jt?"ol":"ul"),"bullet"===jt){const Re=function(is){const vn=function(qn){if(qn.getChild(0).is("$text"))return null;for(const Yn of qn.getChildren()){if(!Yn.is("element","span"))continue;const ir=Yn.getChild(0);if(ir)return ir.is("$text")?ir:ir.getChild(0)}return null}(is);if(!vn)return null;const Gi=vn._data;return"o"===Gi?"circle":"\xb7"===Gi?"disc":"\xa7"===Gi?"square":null}(Y.element);Re&&(jt=Re)}else{const Re=At.exec(Ft[1]);Re&&Re[1]&&(ce=parseInt(Re[1]))}}return{type:ae,startIndex:ce,style:By(jt)}}(h,t);if(s)if(h.indent>l){const Y=s.getChild(s.childCount-1),$=Y.getChild(Y.childCount-1);s=Nk(j,$,e),l+=1}else h.indentl.indexOf(j)>-1)?C.push(P):P.getAttribute("src")||C.push(P)}for(const E of C)p.remove(E)})(n,r,e),function(l,h,p){const b=p.createRangeIn(h),A=[];for(const P of b)if("elementStart"==P.type&&P.item.is("element","v:shape")){const F=P.item.getAttribute("id");if(l.includes(F))continue;C(P.item.parent.getChildren(),F)||A.push(P.item)}for(const P of A){const F={src:E(P)};P.hasAttribute("alt")&&(F.alt=P.getAttribute("alt"));const j=p.createElement("img",F);p.insertChild(P.index+1,j,P.parent)}function C(P,F){for(const j of P)if(j.is("element")&&("img"==j.name&&j.getAttribute("v:shapes")==F||C(j.getChildren(),F)))return!0;return!1}function E(P){for(const F of P.getChildren())if(F.is("element")&&F.getAttribute("src"))return F.getAttribute("src")}}(n,r,e),function(l,h){const p=h.createRangeIn(l),b=new Ti({name:/v:(.+)/}),A=[];for(const C of p)"elementStart"==C.type&&b.match(C.item)&&A.push(C.item);for(const C of A)h.remove(C)}(r,e);const s=function(l,h){const p=h.createRangeIn(l),b=new Ti({name:"img"}),A=[];for(const C of p)C.item.is("element")&&b.match(C.item)&&C.item.getAttribute("src").startsWith("file://")&&A.push(C.item);return A}(r,e);s.length&&function(l,h,p){if(l.length===h.length)for(let b=0;bh.is("element")&&!n.includes(h.name)&&!s.includes(h.name),{direction:t}),"forward"==t?l.nodeAfter:l.nodeBefore}function Bk(r,t){return!!r&&r.is("element")&&t.includes(r.name)}const Vy=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class qy{constructor(t){this.document=t}isActive(t){return Vy.test(t)}execute(t){const e=new ko(this.document),{body:n}=t._parsedData;(function(s,l){for(const h of s.getChildren())if(h.is("element","b")&&"normal"===h.getStyle("font-weight")){const p=s.getChildIndex(h);l.remove(h),l.insertChild(p,h.getChildren(),s)}})(n,e),function(s,l){for(const h of l.createRangeIn(s)){const p=h.item;if(p.is("element","li")){const b=p.getChild(0);b&&b.is("element","p")&&l.unwrapElement(b)}}}(n,e),function(s,l){const h=new Or(l.document.stylesProcessor),p=new ha(h,{renderingMode:"data"}),b=p.blockElements,A=p.inlineObjectElements,C=[];for(const E of l.createRangeIn(s)){const P=E.item;if(P.is("element","br")){const F=Ok(P,"forward",l,{blockElements:b,inlineObjectElements:A}),j=Ok(P,"backward",l,{blockElements:b,inlineObjectElements:A}),Y=Bk(F,b);(Bk(j,b)||Y)&&C.push(P)}}for(const E of C)E.hasClass("Apple-interchange-newline")?l.remove(E):l.replace(E,l.createElement("p"))}(n,e),t.content=n}}const Yy=/(\s+)<\/span>/g,(t,e)=>1===e.length?" ":Array(e.length+1).join("\xa0 ").substr(0,e.length))}function Fe(r,t,e,n,s=1){null!=t&&null!=s&&t>s?n.setAttribute(r,t,e):n.removeAttribute(r,e)}function $o(r,t,e={}){const n=r.createElement("tableCell",e);return r.insertElement("paragraph",n),r.insert(n,t),n}function wp(r,t){const n=parseInt(t.parent.parent.getAttribute("headingColumns")||"0"),{column:s}=r.getCellLocation(t);return!!n&&s{t.on(`element:${r}`,(e,n,{writer:s})=>{if(!n.modelRange)return;const l=n.modelRange.start.nodeAfter,h=s.createPositionAt(l,0);if(n.viewItem.isEmpty)return void s.insertElement("paragraph",h);const p=Array.from(l.getChildren());if(p.every(b=>b.is("element","$marker"))){const b=s.createElement("paragraph");s.insert(b,s.createPositionAt(l,0));for(const A of p)s.move(s.createRangeOn(A),s.createPositionAt(b,"end"))}},{priority:"low"})}}function Qy(r){let t=0,e=0;const n=Array.from(r.getChildren()).filter(s=>"th"===s.name||"td"===s.name);for(;e1||h>1)&&this._recordSpans(s,h,l),this._shouldSkipSlot()||(e=this._formatOutValue(s)),this._nextCellAtColumn=this._column+l}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}skipRow(t){this._skipRows.add(t)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(t,e=this._row,n=this._column){return{done:!1,value:new Xy(this,t,e,n)}}_shouldSkipSlot(){return this._skipRows.has(this._row)||this._rowthis._endColumn}_getSpanned(){const t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}_recordSpans(t,e,n){const s={cell:t,row:this._row,column:this._column};for(let l=this._row;l0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const t=this._getRowLength(0);for(let e=this._startRow;!this._jumpedToStartRow;e--)t===this._getRowLength(e)&&(this._row=e,this._rowIndex=e,this._jumpedToStartRow=!0)}_getRowLength(t){return[...this._table.getChild(t).getChildren()].reduce((e,n)=>e+parseInt(n.getAttribute("colspan")||"1"),0)}}class Xy{constructor(t,e,n,s){this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=s,this._cellIndex=t._cellIndex,this._rowIndex=t._rowIndex,this._table=t._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Rk(r,t){return(e,{writer:n})=>{const s=e.getAttribute("headingRows")||0,l=n.createContainerElement("table",null,[]),h=n.createContainerElement("figure",{class:"table"},l);s>0&&n.insert(n.createPositionAt(l,"end"),n.createContainerElement("thead",null,n.createSlot(p=>p.is("element","tableRow")&&p.indexp.is("element","tableRow")&&p.index>=s)));for(const{positionOffset:p,filter:b}of t.additionalSlots)n.insert(n.createPositionAt(l,p),n.createSlot(b));return n.insert(n.createPositionAt(l,"after"),n.createSlot(p=>!p.is("element","tableRow")&&!t.additionalSlots.some(({filter:b})=>b(p)))),t.asWidget?((b=n).setCustomProperty("table",!0,p=h),Ju(p,b,{hasSelectionHandle:!0})):h;var p,b}}function Zk(r={}){return(t,{writer:e})=>{const n=t.parent,s=n.parent,l=s.getChildIndex(n),h=new xe(s,{row:l}),p=s.getAttribute("headingRows")||0,b=s.getAttribute("headingColumns")||0;let A=null;for(const C of h)if(C.cell==t){const E=C.row{if(!t.parent.is("element","tableCell")||!jk(t))return null;if(r.asWidget)return e.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const n=e.createContainerElement("p");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}}function jk(r){return 1==r.parent.childCount&&!!r.getAttributeKeys().next().done}class Ky extends Jt{refresh(){const t=this.editor.model;this.isEnabled=function(s,l){const h=s.getFirstPosition().parent;return l.checkChild(h===h.root?h:h.parent,"table")}(t.document.selection,t.schema)}execute(t={}){const e=this.editor,n=e.model,s=e.plugins.get("TableUtils"),l=e.config.get("table.defaultHeadings.rows"),h=e.config.get("table.defaultHeadings.columns");void 0===t.headingRows&&l&&(t.headingRows=l),void 0===t.headingColumns&&h&&(t.headingColumns=h),n.change(p=>{const b=s.createTable(p,t);n.insertObject(b,null,null,{findOptimalPosition:"auto"}),p.setSelection(p.createPositionAt(b.getNodeByPath([0,0,0]),0))})}}class Vk extends Jt{constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),s="above"===this.order,l=n.getSelectionAffectedTableCells(e),h=n.getRowIndexes(l),p=s?h.first:h.last,b=l[0].findAncestor("table");n.insertRows(b,{at:s?p:p+1,copyStructureFromAbove:!s})}}class qk extends Jt{constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),s="left"===this.order,l=n.getSelectionAffectedTableCells(e),h=n.getColumnIndexes(l),p=s?h.first:h.last,b=l[0].findAncestor("table");n.insertColumns(b,{columns:1,at:s?p:p+1})}}class Yk extends Jt{constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===t.length}execute(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?t.splitCellHorizontally(e,2):t.splitCellVertically(e,2)}}function Hk(r,t,e){const{startRow:n,startColumn:s,endRow:l,endColumn:h}=t,p=e.createElement("table"),b=l-n+1;for(let C=0;C0&&Fe("headingRows",Y-P,C,j,0);const $=parseInt(E.getAttribute("headingColumns")||"0");$>0&&Fe("headingColumns",$-F,C,j,0)}(p,r,n,s,e),p}function Gk(r,t,e=0){const n=[],s=new xe(r,{startRow:e,endRow:t-1});for(const l of s){const{row:h,cellHeight:p}=l;h1&&(p.rowspan=b);const A=parseInt(r.getAttribute("colspan")||"1");A>1&&(p.colspan=A);const C=l+h,E=[...new xe(s,{startRow:l,endRow:C,includeAllSlots:!0})];let P,F=null;for(const j of E){const{row:Y,column:$,cell:st}=j;st===r&&void 0===P&&(P=$),void 0!==P&&P===$&&Y===C&&(F=$o(e,j.getPositionBefore(),p))}return Fe("rowspan",h,r,e),F}function Qk(r,t){const e=[],n=new xe(r);for(const s of n){const{column:l,cellWidth:h}=s;l1&&(l.colspan=h);const p=parseInt(r.getAttribute("rowspan")||"1");p>1&&(l.rowspan=p);const b=$o(n,n.createPositionAfter(r),l);return Fe("colspan",s,r,n),b}function Kk(r,t,e,n,s,l){const h=parseInt(r.getAttribute("colspan")||"1"),p=parseInt(r.getAttribute("rowspan")||"1");e+h-1>s&&Fe("colspan",s-e+1,r,l,1),t+p-1>n&&Fe("rowspan",n-t+1,r,l,1)}function Ap(r,t){const e=t.getColumns(r),n=new Array(e).fill(0);for(const{column:l}of new xe(r))n[l]++;const s=n.reduce((l,h,p)=>h?l:[...l,p],[]);return s.length>0&&(t.removeColumns(r,{at:s[s.length-1]}),!0)}function xp(r,t){const e=[],n=t.getRows(r);for(let s=0;s0&&(t.removeRows(r,{at:e[e.length-1]}),!0)}function Cp(r,t){Ap(r,t)||xp(r,t)}function Jk(r,t){const e=Array.from(new xe(r,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));return e.every(({cellHeight:s})=>1===s)?t.lastRow:t.lastRow+(e[0].cellHeight-1)}function $k(r,t){const e=Array.from(new xe(r,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));return e.every(({cellWidth:s})=>1===s)?t.lastColumn:t.lastColumn+(e[0].cellWidth-1)}class nd extends Jt{constructor(t,e){super(t),this.direction=e.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}execute(){const t=this.editor.model,e=t.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(e.selection)[0],s=this.value,l=this.direction;t.change(h=>{const p="right"==l||"down"==l,b=p?n:s,A=p?s:n,C=A.parent;var Y,$,st;$=b,st=h,t0(Y=A)||(t0($)&&st.remove(st.createRangeIn($)),st.move(st.createRangeIn(Y),st.createPositionAt($,"end"))),st.remove(Y);const E=this.isHorizontal?"colspan":"rowspan",P=parseInt(n.getAttribute(E)||"1"),F=parseInt(s.getAttribute(E)||"1");h.setAttribute(E,P+F,b),h.setSelection(h.createRangeIn(b));const j=this.editor.plugins.get("TableUtils");Cp(C.findAncestor("table"),j)})}_getMergeableCell(){const t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(!n)return;const s=this.isHorizontal?function(p,b,A){const P="right"==b?p.nextSibling:p.previousSibling,F=(p.parent.parent.getAttribute("headingColumns")||0)>0;if(!P)return;const j="right"==b?p:P,Y="right"==b?P:p,{column:$}=A.getCellLocation(j),{column:st}=A.getCellLocation(Y),ft=parseInt(j.getAttribute("colspan")||"1"),At=wp(A,j),Ft=wp(A,Y);return F&&At!=Ft?void 0:$+ft===st?P:void 0}(n,this.direction,e):function(p,b,A){const C=p.parent,E=C.parent,P=E.getChildIndex(C);if("down"==b&&P===A.getRows(E)-1||"up"==b&&0===P)return null;const F=parseInt(p.getAttribute("rowspan")||"1"),j=E.getAttribute("headingRows")||0;if(j&&("down"==b&&P+F===j||"up"==b&&P===j))return null;const st=parseInt(p.getAttribute("rowspan")||"1"),ft="down"==b?P+st:P,At=[...new xe(E,{endRow:ft})],jt=At.find(ce=>ce.cell===p).column,ae=At.find(({row:ce,cellHeight:ze,column:Re})=>Re===jt&&("down"==b?ce===ft:ft===ce+ze));return ae&&ae.cell?ae.cell:null}(n,this.direction,e);if(!s)return;const l=this.isHorizontal?"rowspan":"colspan",h=parseInt(n.getAttribute(l)||"1");return parseInt(s.getAttribute(l)||"1")===h?s:void 0}}function t0(r){const t=r.getChild(0);return 1==r.childCount&&t.is("element","paragraph")&&t.isEmpty}class Jy extends Jt{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const s=n.findAncestor("table"),l=t.getRows(s)-1,h=t.getRowIndexes(e);this.isEnabled=!(0===h.first&&h.last===l)}else this.isEnabled=!1}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),s=e.getRowIndexes(n),l=n[0],h=l.findAncestor("table"),p=e.getCellLocation(l).column;t.change(b=>{e.removeRows(h,{at:s.first,rows:s.last-s.first+1});const C=function(E,P,F,j){const Y=E.getChild(Math.min(P,j-1));let $=Y.getChild(0),st=0;for(const ft of Y.getChildren()){if(st>F)return $;$=ft,st+=parseInt(ft.getAttribute("colspan")||"1")}return $}(h,s.first,p,e.getRows(h));b.setSelection(b.createPositionAt(C,0))})}}class $y extends Jt{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const s=n.findAncestor("table"),l=t.getColumns(s),{first:h,last:p}=t.getColumnIndexes(e);this.isEnabled=p-hb.cell===e).column,last:l.find(b=>b.cell===n).column},p=(b=l,A=e,C=n,E=h,parseInt(C.getAttribute("colspan")||"1")>1?C:A.previousSibling||C.nextSibling?C.nextSibling||A.previousSibling:E.first?b.reverse().find(({column:F})=>FF>E.last).cell);var b,A,C,E;this.editor.model.change(b=>{t.removeColumns(s,{at:h.first,columns:h.last-h.first+1}),b.setSelection(b.createPositionAt(p,0))})}}class t2 extends Jt{refresh(){const n=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),s=n.length>0;this.isEnabled=s,this.value=s&&n.every(l=>this._isInHeading(l,l.parent.parent))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,s=e.getSelectionAffectedTableCells(n.document.selection),l=s[0].findAncestor("table"),{first:h,last:p}=e.getRowIndexes(s),b=this.value?h:p+1,A=l.getAttribute("headingRows")||0;n.change(C=>{if(b){const E=Gk(l,b,b>A?A:0);for(const{cell:P}of E)Wk(P,b,C)}Fe("headingRows",b,l,C,0)})}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index0;this.isEnabled=s,this.value=s&&n.every(l=>wp(e,l))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,s=e.getSelectionAffectedTableCells(n.document.selection),l=s[0].findAncestor("table"),{first:h,last:p}=e.getColumnIndexes(s),b=this.value?h:p+1;n.change(A=>{if(b){const C=Qk(l,b);for(const{cell:E,column:P}of C)Xk(E,P,b,A)}Fe("headingColumns",b,l,A,0)})}}class si extends Lt{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,s=n.getChildIndex(e),l=new xe(n,{row:s});for(const{cell:h,row:p,column:b}of l)if(h===t)return{row:p,column:b}}createTable(t,e){const n=t.createElement("table"),s=e.rows||2,l=e.columns||2;return yp(t,n,0,s,l),e.headingRows&&Fe("headingRows",Math.min(e.headingRows,s),n,t,0),e.headingColumns&&Fe("headingColumns",Math.min(e.headingColumns,l),n,t,0),n}insertRows(t,e={}){const n=this.editor.model,s=e.at||0,l=e.rows||1,h=void 0!==e.copyStructureFromAbove,p=e.copyStructureFromAbove?s-1:s,b=this.getRows(t),A=this.getColumns(t);if(s>b)throw new W("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change(C=>{const E=t.getAttribute("headingRows")||0;if(E>s&&Fe("headingRows",E+l,t,C,0),!h&&(0===s||s===b))return void yp(C,t,s,l,A);const P=h?Math.max(s,p):s,F=new xe(t,{endRow:P}),j=new Array(A).fill(1);for(const{row:Y,column:$,cellHeight:st,cellWidth:ft,cell:At}of F){const Ft=Y+st-1,jt=Y<=p&&p<=Ft;Y0&&$o(C,At,ft>1?{colspan:ft}:void 0),st+=Math.abs(ft)-1}}})}insertColumns(t,e={}){const s=e.at||0,l=e.columns||1;this.editor.model.change(h=>{const p=t.getAttribute("headingColumns");sl-1)throw new W("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});n.change(b=>{const A={first:h,last:p},{cellsToMove:C,cellsToTrim:E}=function(P,{first:F,last:j}){const Y=new Map,$=[];for(const{row:st,column:ft,cellHeight:At,cell:Ft}of new xe(P,{endRow:j})){const jt=st+At-1;if(st>=F&&st<=j&&jt>j&&Y.set(ft,{cell:Ft,rowspan:At-(j-st+1)}),st=F){let ae;ae=jt>=j?j-F+1:jt-F+1,$.push({cell:Ft,rowspan:At-ae})}}return{cellsToMove:Y,cellsToTrim:$}}(t,A);C.size&&function(P,F,j,Y){const st=[...new xe(P,{includeAllSlots:!0,row:F})],ft=P.getChild(F);let At;for(const{column:Ft,cell:jt,isAnchor:ae}of st)if(j.has(Ft)){const{cell:ce,rowspan:ze}=j.get(Ft),Re=At?Y.createPositionAfter(At):Y.createPositionAt(ft,0);Y.move(Y.createRangeOn(ce),Re),Fe("rowspan",ze,ce,Y),At=ce}else ae&&(At=jt)}(t,p+1,C,b);for(let P=p;P>=h;P--)b.remove(t.getChild(P));for(const{rowspan:P,cell:F}of E)Fe("rowspan",P,F,b);(function(P,{first:F,last:j},Y){const $=P.getAttribute("headingRows")||0;F<$&&Fe("headingRows",j<$?$-(j-F+1):F,P,Y,0)})(t,A,b),Ap(t,this)||xp(t,this)})}removeColumns(t,e){const s=e.at,h=e.at+(e.columns||1)-1;this.editor.model.change(p=>{!function(A,C,E){const P=A.getAttribute("headingColumns")||0;if(P&&C.firste.is("element","tableColumnGroup"))}(r);return t?Array.from(t.getChildren()):[]}(t);for(let A=h;A>=s;A--){for(const{cell:C,column:E,cellWidth:P}of[...new xe(t)])E<=A&&P>1&&E+P>A?Fe("colspan",P-1,C,p):E===A&&p.remove(C);if(b[A]){const C=0===A?b[1]:b[A-1],E=parseFloat(b[A].getAttribute("columnWidth")),P=parseFloat(C.getAttribute("columnWidth"));p.remove(b[A]),p.setAttribute("columnWidth",E+P+"%",C)}}xp(t,this)||Ap(t,this)})}splitCellVertically(t,e=2){const n=this.editor.model,s=t.parent.parent,l=parseInt(t.getAttribute("rowspan")||"1"),h=parseInt(t.getAttribute("colspan")||"1");n.change(p=>{if(h>1){const{newCellsSpan:b,updatedSpan:A}=e0(h,e);Fe("colspan",A,t,p);const C={};b>1&&(C.colspan=b),l>1&&(C.rowspan=l),es(h>e?e-1:h-1,p,p.createPositionAfter(t),C)}if(hj===t),E=A.filter(({cell:j,cellWidth:Y,column:$})=>j!==t&&$===C||$C);for(const{cell:j,cellWidth:Y}of E)p.setAttribute("colspan",Y+b,j);const P={};l>1&&(P.rowspan=l),es(b,p,p.createPositionAfter(t),P);const F=s.getAttribute("headingColumns")||0;F>C&&Fe("headingColumns",F+b,s,p)}})}splitCellHorizontally(t,e=2){const n=this.editor.model,s=t.parent,l=s.parent,h=l.getChildIndex(s),p=parseInt(t.getAttribute("rowspan")||"1"),b=parseInt(t.getAttribute("colspan")||"1");n.change(A=>{if(p>1){const C=[...new xe(l,{startRow:h,endRow:h+p-1,includeAllSlots:!0})],{newCellsSpan:E,updatedSpan:P}=e0(p,e);Fe("rowspan",P,t,A);const{column:F}=C.find(({cell:Y})=>Y===t),j={};E>1&&(j.rowspan=E),b>1&&(j.colspan=b);for(const Y of C){const{column:$,row:st}=Y;st>=h+P&&$===F&&(st+h+P)%E==0&&es(1,A,Y.getPositionBefore(),j)}}if(ph&&A.setAttribute("rowspan",Y+C,j);const P={};b>1&&(P.colspan=b),yp(A,l,h+1,C,1,P);const F=l.getAttribute("headingRows")||0;F>h&&Fe("headingRows",F+C,l,A)}})}getColumns(t){return[...t.getChild(0).getChildren()].reduce((e,n)=>e+parseInt(n.getAttribute("colspan")||"1"),0)}getRows(t){return Array.from(t.getChildren()).reduce((e,n)=>n.is("element","tableRow")?e+1:e,0)}createTableWalker(t,e={}){return new xe(t,e)}getSelectedTableCells(t){const e=[];for(const n of this.sortRanges(t.getRanges())){const s=n.getContainedElement();s&&s.is("element","tableCell")&&e.push(s)}return e}getTableCellsContainingSelection(t){const e=[];for(const n of t.getRanges()){const s=n.start.findAncestor("tableCell");s&&e.push(s)}return e}getSelectionAffectedTableCells(t){const e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}getRowIndexes(t){const e=t.map(n=>n.parent.index);return this._getFirstLastIndexesObject(e)}getColumnIndexes(t){const e=t[0].findAncestor("table"),n=[...new xe(e)].filter(s=>t.includes(s.cell)).map(s=>s.column);return this._getFirstLastIndexesObject(n)}isSelectionRectangular(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;const e=new Set,n=new Set;let s=0;for(const h of t){const{row:p,column:b}=this.getCellLocation(h),A=parseInt(h.getAttribute("rowspan"))||1,C=parseInt(h.getAttribute("colspan"))||1;e.add(p),n.add(b),A>1&&e.add(p+A-1),C>1&&n.add(b+C-1),s+=A*C}return function(h,p){const b=Array.from(h.values()),A=Array.from(p.values());return(Math.max(...b)-Math.min(...b)+1)*(Math.max(...A)-Math.min(...A)+1)}(e,n)==s}sortRanges(t){return Array.from(t).sort(r2)}_getFirstLastIndexesObject(t){const e=t.sort((n,s)=>n-s);return{first:e[0],last:e[e.length-1]}}_areCellInTheSameTableSection(t){const e=t[0].findAncestor("table"),n=this.getRowIndexes(t),s=parseInt(e.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,s))return!1;const l=this.getColumnIndexes(t),h=parseInt(e.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(l,h)}_areIndexesInSameSection({first:t,last:e},n){return t{const s=e.getSelectedTableCells(t.document.selection),l=s.shift(),{mergeWidth:h,mergeHeight:p}=function(b,A,C){let E=0,P=0;for(const st of A){const{row:ft,column:At}=C.getCellLocation(st);E=o0(st,At,E,"colspan"),P=o0(st,ft,P,"rowspan")}const{row:F,column:j}=C.getCellLocation(b);return{mergeWidth:E-j,mergeHeight:P-F}}(l,s,e);Fe("colspan",h,l,n),Fe("rowspan",p,l,n);for(const b of s)a2(b,l,n);Cp(l.findAncestor("table"),e),n.setSelection(l,"in")})}}function a2(r,t,e){n0(r)||(n0(t)&&e.remove(e.createRangeIn(t)),e.move(e.createRangeIn(r),e.createPositionAt(t,"end"))),e.remove(r)}function n0(r){const t=r.getChild(0);return 1==r.childCount&&t.is("element","paragraph")&&t.isEmpty}function o0(r,t,e,n){const s=parseInt(r.getAttribute(n)||"1");return Math.max(e,t+s)}class l2 extends Jt{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),s=e.getRowIndexes(n),l=n[0].findAncestor("table"),h=[];for(let p=s.first;p<=s.last;p++)for(const b of l.getChild(p).getChildren())h.push(t.createRangeOn(b));t.change(p=>{p.setSelection(h)})}}class c2 extends Jt{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),s=n[0],l=n.pop(),h=s.findAncestor("table"),p=t.getCellLocation(s),b=t.getCellLocation(l),A=Math.min(p.column,b.column),C=Math.max(p.column,b.column),E=[];for(const P of new xe(h,{startColumn:A,endColumn:C}))E.push(e.createRangeOn(P.cell));e.change(P=>{P.setSelection(E)})}}function h2(r,t){let e=!1;const n=function(s){const l=parseInt(s.getAttribute("headingRows")||"0"),h=Array.from(s.getChildren()).reduce((b,A)=>A.is("element","tableRow")?b+1:b,0),p=[];for(const{row:b,cell:A,cellHeight:C}of new xe(s)){if(C<2)continue;const E=bE&&p.push({cell:A,rowspan:E-b})}return p}(r);if(n.length){e=!0;for(const s of n)Fe("rowspan",s.rowspan,s.cell,t,1)}return e}function u2(r,t){let e=!1;const n=function(p){const b=new Array(p.childCount).fill(0);for(const{rowIndex:A}of new xe(p,{includeAllSlots:!0}))b[A]++;return b}(r),s=[];for(const[p,b]of n.entries())!b&&r.getChild(p).is("element","tableRow")&&s.push(p);if(s.length){e=!0;for(const p of s.reverse())t.remove(r.getChild(p)),n.splice(p,1)}const l=n.filter((p,b)=>r.getChild(b).is("element","tableRow")),h=l[0];if(!l.every(p=>p===h)){const p=l.reduce((b,A)=>A>b?A:b,0);for(const[b,A]of l.entries()){const C=p-A;if(C){for(let E=0;En.is("$text"));for(const n of e)t.wrap(t.createRangeOn(n),"paragraph");return!!e.length}function f2(r){return!!r.position.parent.is("element","tableCell")&&("insert"==r.type&&"$text"==r.name||"remove"==r.type)}function b2(r,t){if(!r.is("element","paragraph"))return!1;const e=t.toViewElement(r);return!!e&&jk(r)!==e.is("element","span")}var s0=lt(3881);Rt()(s0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class k2 extends Lt{constructor(t){super(t),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[si]}init(){const t=this.editor,e=t.model,n=e.schema,s=t.conversion,l=t.plugins.get(si);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),s.for("upcast").add(h=>{h.on("element:figure",(p,b,A)=>{if(!A.consumable.test(b.viewItem,{name:!0,classes:"table"}))return;const C=function(P){for(const F of P.getChildren())if(F.is("element","table"))return F}(b.viewItem);if(!C||!A.consumable.test(C,{name:!0}))return;A.consumable.consume(b.viewItem,{name:!0,classes:"table"});const E=Oe(A.convertItem(C,b.modelCursor).modelRange.getItems());E?(A.convertChildren(b.viewItem,A.writer.createPositionAt(E,"end")),A.updateConversionResult(E,b)):A.consumable.revert(b.viewItem,{name:!0,classes:"table"})})}),s.for("upcast").add(function Wy(){return r=>{r.on("element:table",(t,e,n)=>{const s=e.viewItem;if(!n.consumable.test(s,{name:!0}))return;const{rows:l,headingRows:h,headingColumns:p}=function(C){let E,P=0;const F=[],j=[];let Y;for(const $ of Array.from(C.getChildren())){if("tbody"!==$.name&&"thead"!==$.name&&"tfoot"!==$.name)continue;"thead"!==$.name||Y||(Y=$);const st=Array.from($.getChildren()).filter(ft=>ft.is("element","tr"));for(const ft of st)if(Y&&$===Y||"tbody"===$.name&&Array.from(ft.getChildren()).length&&Array.from(ft.getChildren()).every(At=>At.is("element","th")))P++,F.push(ft);else{j.push(ft);const At=Qy(ft);(!E||Atn.convertItem(C,n.writer.createPositionAt(A,"end"))),n.convertChildren(s,n.writer.createPositionAt(A,"end")),A.isEmpty){const C=n.writer.createElement("tableRow");n.writer.insert(C,n.writer.createPositionAt(A,"end")),$o(n.writer,n.writer.createPositionAt(C,"end"))}n.updateConversionResult(A,e)}})}}()),s.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Rk(l,{asWidget:!0,additionalSlots:this._additionalSlots})}),s.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Rk(l,{additionalSlots:this._additionalSlots})}),s.for("upcast").elementToElement({model:"tableRow",view:"tr"}),s.for("upcast").add(h=>{h.on("element:tr",(p,b)=>{b.viewItem.isEmpty&&0==b.modelCursor.index&&p.stop()},{priority:"high"})}),s.for("downcast").elementToElement({model:"tableRow",view:(h,{writer:p})=>h.isEmpty?p.createEmptyElement("tr"):p.createContainerElement("tr")}),s.for("upcast").elementToElement({model:"tableCell",view:"td"}),s.for("upcast").elementToElement({model:"tableCell",view:"th"}),s.for("upcast").add(zk("td")),s.for("upcast").add(zk("th")),s.for("editingDowncast").elementToElement({model:"tableCell",view:Zk({asWidget:!0})}),s.for("dataDowncast").elementToElement({model:"tableCell",view:Zk()}),s.for("editingDowncast").elementToElement({model:"paragraph",view:Uk({asWidget:!0}),converterPriority:"high"}),s.for("dataDowncast").elementToElement({model:"paragraph",view:Uk(),converterPriority:"high"}),s.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),s.for("upcast").attributeToAttribute({model:{key:"colspan",value:a0("colspan")},view:"colspan"}),s.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),s.for("upcast").attributeToAttribute({model:{key:"rowspan",value:a0("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new Ky(t)),t.commands.add("insertTableRowAbove",new Vk(t,{order:"above"})),t.commands.add("insertTableRowBelow",new Vk(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new qk(t,{order:"left"})),t.commands.add("insertTableColumnRight",new qk(t,{order:"right"})),t.commands.add("removeTableRow",new Jy(t)),t.commands.add("removeTableColumn",new $y(t)),t.commands.add("splitTableCellVertically",new Yk(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new Yk(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new s2(t)),t.commands.add("mergeTableCellRight",new nd(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new nd(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new nd(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new nd(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new e2(t)),t.commands.add("setTableRowHeader",new t2(t)),t.commands.add("selectTableRow",new l2(t)),t.commands.add("selectTableColumn",new c2(t)),function d2(r){r.document.registerPostFixer(t=>function(e,n){const s=n.document.differ.getChanges();let l=!1;const h=new Set;for(const p of s){let b=null;"insert"==p.type&&"table"==p.name&&(b=p.position.nodeAfter),"insert"!=p.type&&"remove"!=p.type||"tableRow"!=p.name&&"tableCell"!=p.name||(b=p.position.findAncestor("table")),p2(p)&&(b=p.range.start.findAncestor("table")),b&&!h.has(b)&&(l=h2(b,e)||l,l=u2(b,e)||l,h.add(b))}return l}(t,r))}(e),function g2(r){r.document.registerPostFixer(t=>function(e,n){const s=n.document.differ.getChanges();let l=!1;for(const h of s)"insert"==h.type&&"table"==h.name&&(l=m2(h.position.nodeAfter,e)||l),"insert"==h.type&&"tableRow"==h.name&&(l=r0(h.position.nodeAfter,e)||l),"insert"==h.type&&"tableCell"==h.name&&(l=Ep(h.position.nodeAfter,e)||l),"remove"!=h.type&&"insert"!=h.type||!f2(h)||(l=Ep(h.position.parent,e)||l);return l}(t,r))}(e),this.listenTo(e.document,"change:data",()=>{(function(h,p){const b=h.document.differ;for(const A of b.getChanges()){let C,E=!1;if("attribute"==A.type){const Y=A.range.start.nodeAfter;if(!Y||!Y.is("element","table")||"headingRows"!=A.attributeKey&&"headingColumns"!=A.attributeKey)continue;C=Y,E="headingRows"==A.attributeKey}else"tableRow"!=A.name&&"tableCell"!=A.name||(C=A.position.findAncestor("table"),E="tableRow"==A.name);if(!C)continue;const P=C.getAttribute("headingRows")||0,F=C.getAttribute("headingColumns")||0,j=new xe(C);for(const Y of j){const $=Y.rowb2(P,p.mapper));for(const P of E)p.reconvertItem(P)}}(e,t.editing)})}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function a0(r){return t=>{const e=parseInt(t.getAttribute(r));return Number.isNaN(e)||e<=0?null:e}}var l0=lt(1613);Rt()(l0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class w2 extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new vi,this.focusTracker=new Ye,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(n,s)=>`${s} \xd7 ${n}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":e.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:e.to("label")}]}],on:{mousedown:e.to(n=>{n.preventDefault()}),click:e.to(()=>{this.fire("execute")})}}),this.on("boxover",(n,s)=>{const{row:l,column:h}=s.target.dataset;this.items.get(10*(parseInt(l,10)-1)+(parseInt(h,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(n,s,l)=>{if(!l)return;const{row:h,column:p}=l.dataset;this.set({rows:parseInt(h),columns:parseInt(p)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:t,focusTracker:e,gridItems:n,numberOfColumns:s,uiLanguageDirection:l}){const h="number"==typeof s?()=>s:s;function p(C){return E=>{const P=n.find(Y=>Y.element===e.focusedElement),F=n.getIndex(P),j=C(F,n);n.get(j).focus(),E.stopPropagation(),E.preventDefault()}}function b(C,E){return C===E-1?0:C+1}function A(C,E){return 0===C?E-1:C-1}t.set("arrowright",p((C,E)=>"rtl"===l?A(C,E.length):b(C,E.length))),t.set("arrowleft",p((C,E)=>"rtl"===l?b(C,E.length):A(C,E.length))),t.set("arrowup",p((C,E)=>{let P=C-h();return P<0&&(P=C+h()*Math.floor(E.length/h()),P>E.length-1&&(P-=h())),P})),t.set("arrowdown",p((C,E)=>{let P=C+h();return P>E.length-1&&(P=C%h()),P}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map((n,s)=>{const l=Math.floor(s/10){const l=t.commands.get("insertTable"),h=Zn(s);let p;return h.bind("isEnabled").to(l),h.buttonView.set({icon:'',label:e("Insert table"),tooltip:!0}),h.on("change:isOpen",()=>{p||(p=new w2(s),h.panelView.children.add(p),p.delegate("execute").to(h),h.on("execute",()=>{t.execute("insertTable",{rows:p.rows,columns:p.columns}),t.editing.view.focus()}))}),h}),t.ui.componentFactory.add("tableColumn",s=>{const l=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:e("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:e("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:e("Select column")}}];return this._prepareDropdown(e("Column"),'',l,s)}),t.ui.componentFactory.add("tableRow",s=>{const l=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:e("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:e("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:e("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:e("Select row")}}];return this._prepareDropdown(e("Row"),'',l,s)}),t.ui.componentFactory.add("mergeTableCells",s=>{const l=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:e("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(e("Merge cells"),'',l,s)})}_prepareDropdown(t,e,n,s){const l=this.editor,h=Zn(s),p=this._fillDropdownWithListOptions(h,n);return h.buttonView.set({label:t,icon:e,tooltip:!0}),h.bind("isEnabled").toMany(p,"isEnabled",(...b)=>b.some(A=>A)),this.listenTo(h,"execute",b=>{l.execute(b.source.commandName),b.source instanceof xr||l.editing.view.focus()}),h}_prepareMergeSplitButtonDropdown(t,e,n,s){const l=this.editor,h=Zn(s,Lc),p="mergeTableCells",b=l.commands.get(p),A=this._fillDropdownWithListOptions(h,n);return h.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),h.bind("isEnabled").toMany([b,...A],"isEnabled",(...C)=>C.some(E=>E)),this.listenTo(h.buttonView,"execute",()=>{l.execute(p),l.editing.view.focus()}),this.listenTo(h,"execute",C=>{l.execute(C.source.commandName),l.editing.view.focus()}),h}_fillDropdownWithListOptions(t,e){const n=this.editor,s=[],l=new di;for(const h of e)x2(h,n,s,l);return hm(t,l),s}}function x2(r,t,e,n){if("button"===r.type||"switchbutton"===r.type){const s=r.model=new qm(r.model),{commandName:l,bindIsOn:h}=r.model,p=t.commands.get(l);e.push(p),s.set({commandName:l}),s.bind("isEnabled").to(p),h&&s.bind("isOn").to(p,"value"),s.set({withText:!0})}n.add(r)}var c0=lt(6945);Rt()(c0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class tr extends Lt{static get pluginName(){return"TableSelection"}static get requires(){return[si,si]}init(){const t=this.editor,n=t.editing.view;this.listenTo(t.model,"deleteContent",(s,l)=>this._handleDeleteContent(s,l),{priority:"high"}),this.listenTo(n.document,"insertText",(s,l)=>this._handleInsertTextEvent(s,l),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const n=this.editor.plugins.get(si).getSelectedTableCells(this.editor.model.document.selection);return 0==n.length?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(si),e=this.getSelectedTableCells();return e?this.editor.model.change(n=>{const s=n.createDocumentFragment(),{first:l,last:h}=t.getColumnIndexes(e),{first:p,last:b}=t.getRowIndexes(e),A=e[0].findAncestor("table");let C=b,E=h;if(t.isSelectionRectangular(e)){const F={firstColumn:l,lastColumn:h,firstRow:p,lastRow:b};C=Jk(A,F),E=$k(A,F)}const P=Hk(A,{startRow:p,startColumn:l,endRow:C,endColumn:E},n);return n.insert(P,s,0),s}):null}setCellSelection(t,e){const n=this._getCellsToSelect(t,e);this.editor.model.change(s=>{s.setSelection(n.cells.map(l=>s.createRangeOn(l)),{backward:n.backward})})}getFocusCell(){const t=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}getAnchorCell(){const t=Oe(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add(n=>n.on("selection",(s,l,h)=>{const p=h.writer;!function(C){for(const E of e)C.removeClass("ck-editor__editable_selected",E);e.clear()}(p);const b=this.getSelectedTableCells();if(!b)return;for(const C of b){const E=h.mapper.toViewElement(C);p.addClass("ck-editor__editable_selected",E),e.add(E)}const A=h.mapper.toViewElement(b[b.length-1]);p.setSelection(A,0)},{priority:"lowest"}))}_enablePluginDisabling(){const t=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const e=this.getSelectedTableCells();if(!e)return;t.model.change(n=>{const s=n.createPositionAt(e[0],0),l=t.model.schema.getNearestSelectionRange(s);n.setSelection(l)})}})}_handleDeleteContent(t,e){const n=this.editor.plugins.get(si),s=e[0],l=e[1],h=this.editor.model,p=!l||"backward"==l.direction,b=n.getSelectedTableCells(s);b.length&&(t.stop(),h.change(A=>{const C=b[p?b.length-1:0];h.change(P=>{for(const F of b)h.deleteContent(P.createSelection(F,"in"))});const E=h.schema.getNearestSelectionRange(A.createPositionAt(C,0));s.is("documentSelection")?A.setSelection(E):s.setTo(E)}))}_handleInsertTextEvent(t,e){const n=this.editor,s=this.getSelectedTableCells();if(!s)return;const l=n.editing.view,h=n.editing.mapper,p=s.map(b=>l.createRangeOn(h.toViewElement(b)));e.selection=l.createSelection(p)}_getCellsToSelect(t,e){const n=this.editor.plugins.get("TableUtils"),s=n.getCellLocation(t),l=n.getCellLocation(e),h=Math.min(s.row,l.row),p=Math.max(s.row,l.row),b=Math.min(s.column,l.column),A=Math.max(s.column,l.column),C=new Array(p-h+1).fill(null).map(()=>[]),E={startRow:h,endRow:p,startColumn:b,endColumn:A};for(const{row:j,cell:Y}of new xe(t.findAncestor("table"),E))C[j-h].push(Y);const P=l.rowj.reverse()),{cells:C.flat(),backward:P||F}}}class y2 extends Lt{static get pluginName(){return"TableClipboard"}static get requires(){return[tr,si]}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"copy",(n,s)=>this._onCopyCut(n,s)),this.listenTo(e,"cut",(n,s)=>this._onCopyCut(n,s)),this.listenTo(t.model,"insertContent",(n,[s,l])=>this._onInsertContent(n,s,l),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(t,e){const n=this.editor.plugins.get(tr);if(!n.getSelectedTableCells()||"cut"==t.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;e.preventDefault(),t.stop();const l=this.editor.editing.view.document,h=this.editor.data.toView(n.getSelectionAsFragment());l.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:h,method:t.name})}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const s=this.editor.model,l=this.editor.plugins.get(si);let h=this.getTableIfOnlyTableInContent(e,s);if(!h)return;const p=l.getSelectionAffectedTableCells(s.document.selection);p.length?(t.stop(),s.change(b=>{const A={width:l.getColumns(h),height:l.getRows(h)},C=function($,st,ft,At){const Ft=$[0].findAncestor("table"),jt=At.getColumnIndexes($),ae=At.getRowIndexes($),ce={firstColumn:jt.first,lastColumn:jt.last,firstRow:ae.first,lastRow:ae.last},ze=1===$.length;return ze&&(ce.lastRow+=st.height-1,ce.lastColumn+=st.width-1,function(Re,is,vn,Gi){const qn=Gi.getColumns(Re),Yn=Gi.getRows(Re);vn>qn&&Gi.insertColumns(Re,{at:qn,columns:vn-qn}),is>Yn&&Gi.insertRows(Re,{at:Yn,rows:is-Yn})}(Ft,ce.lastRow+1,ce.lastColumn+1,At)),ze||!At.isSelectionRectangular($)?function(Re,is,vn){const{firstRow:Gi,lastRow:qn,firstColumn:Yn,lastColumn:ir}=is,T0={first:Gi,last:qn},S0={first:Yn,last:ir};Sp(Re,Yn,T0,vn),Sp(Re,ir+1,T0,vn),Tp(Re,Gi,S0,vn),Tp(Re,qn+1,S0,vn,Gi)}(Ft,ce,ft):(ce.lastRow=Jk(Ft,ce),ce.lastColumn=$k(Ft,ce)),ce}(p,A,b,l),P=C.lastColumn-C.firstColumn+1,F={startRow:0,startColumn:0,endRow:Math.min(C.lastRow-C.firstRow+1,A.height)-1,endColumn:Math.min(P,A.width)-1};h=Hk(h,F,b);const j=p[0].findAncestor("table"),Y=this._replaceSelectedCellsWithPasted(h,A,j,C,b);if(this.editor.plugins.get("TableSelection").isEnabled){const $=l.sortRanges(Y.map(st=>b.createRangeOn(st)));b.setSelection($)}else b.setSelection(Y[0],0)})):Cp(h,l)}_replaceSelectedCellsWithPasted(t,e,n,s,l){const{width:h,height:p}=e,b=function($,st,ft){const At=new Array(ft).fill(null).map(()=>new Array(st).fill(null));for(const{column:Ft,row:jt,cell:ae}of new xe($))At[jt][Ft]=ae;return At}(t,h,p),A=[...new xe(n,{startRow:s.firstRow,endRow:s.lastRow,startColumn:s.firstColumn,endColumn:s.lastColumn,includeAllSlots:!0})],C=[];let E;for(const $ of A){const{row:st,column:ft}=$;ft===s.firstColumn&&(E=$.getPositionBefore());const jt=b[(st-s.firstRow)%p][(ft-s.firstColumn)%h],ae=jt?l.cloneElement(jt):null,ce=this._replaceTableSlotCell($,ae,E,l);ce&&(Kk(ce,st,ft,s.lastRow,s.lastColumn,l),C.push(ce),E=l.createPositionAfter(ce))}const P=parseInt(n.getAttribute("headingRows")||"0"),F=parseInt(n.getAttribute("headingColumns")||"0"),Y=s.firstColumnd0(l,h,e)).map(({cell:l})=>Wk(l,t,n))}function Sp(r,t,e,n){if(!(t<1))return Qk(r,t).filter(({row:s,cellHeight:l})=>d0(s,l,e)).map(({cell:s,column:l})=>Xk(s,l,t,n))}function d0(r,t,e){const n=r+t-1,{first:s,last:l}=e;return r>=s&&r<=l||r=s}class E2 extends Lt{static get pluginName(){return"TableKeyboard"}static get requires(){return[tr,si]}init(){const t=this.editor.editing.view.document;this.listenTo(t,"arrowKey",(...e)=>this._onArrowKey(...e),{context:"table"}),this.listenTo(t,"tab",(...e)=>this._handleTabOnSelectedTable(...e),{context:"figure"}),this.listenTo(t,"tab",(...e)=>this._handleTab(...e),{context:["th","td"]})}_handleTabOnSelectedTable(t,e){const n=this.editor,s=n.model.document.selection.getSelectedElement();s&&s.is("element","table")&&(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change(l=>{l.setSelection(l.createRangeIn(s.getChild(0).getChild(0)))}))}_handleTab(t,e){const n=this.editor,s=this.editor.plugins.get(si),l=this.editor.plugins.get("TableSelection"),p=!e.shiftKey;let b=s.getTableCellsContainingSelection(n.model.document.selection)[0];if(b||(b=l.getFocusCell()),!b)return;e.preventDefault(),e.stopPropagation(),t.stop();const A=b.parent,C=A.parent,E=C.getChildIndex(A),P=A.getChildIndex(b),F=0===P;if(!p&&F&&0===E)return void n.model.change(st=>{st.setSelection(st.createRangeOn(C))});const j=P===A.childCount-1,Y=E===s.getRows(C)-1;if(p&&Y&&j&&(n.execute("insertTableRowBelow"),E===s.getRows(C)-1))return void n.model.change(st=>{st.setSelection(st.createRangeOn(C))});let $;if(p&&j)$=C.getChild(E+1).getChild(0);else if(!p&&F){const st=C.getChild(E-1);$=st.getChild(st.childCount-1)}else $=A.getChild(P+(p?1:-1));n.model.change(st=>{st.setSelection(st.createRangeIn($))})}_onArrowKey(t,e){const s=Ns(e.keyCode,this.editor.locale.contentLanguageDirection);this._handleArrowKeys(s,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.plugins.get(si),s=this.editor.plugins.get("TableSelection"),l=this.editor.model,h=l.document.selection,p=["right","down"].includes(t),b=n.getSelectedTableCells(h);if(b.length){let C;return C=e?s.getFocusCell():p?b[b.length-1]:b[0],this._navigateFromCellInDirection(C,t,e),!0}const A=h.focus.findAncestor("tableCell");if(!A)return!1;if(!h.isCollapsed)if(e){if(h.isBackward==p&&!h.containsEntireContent(A))return!1}else{const C=h.getSelectedElement();if(!C||!l.schema.isObject(C))return!1}return!!this._isSelectionAtCellEdge(h,A,p)&&(this._navigateFromCellInDirection(A,t,e),!0)}_isSelectionAtCellEdge(t,e,n){const s=this.editor.model,l=this.editor.model.schema,h=n?t.getLastPosition():t.getFirstPosition();if(!l.getLimitElement(h).is("element","tableCell"))return s.createPositionAt(e,n?"end":0).isTouching(h);const p=s.createSelection(h);return s.modifySelection(p,{direction:n?"forward":"backward"}),h.isEqual(p.focus)}_navigateFromCellInDirection(t,e,n=!1){const s=this.editor.model,l=t.findAncestor("table"),h=[...new xe(l,{includeAllSlots:!0})],{row:p,column:b}=h[h.length-1],A=h.find(({cell:Y})=>Y==t);let{row:C,column:E}=A;switch(e){case"left":E--;break;case"up":C--;break;case"right":E+=A.cellWidth;break;case"down":C+=A.cellHeight}if(C<0||C>p||E<0&&C<=0||E>b&&C>=p)return void s.change(Y=>{Y.setSelection(Y.createRangeOn(l))});E<0?(E=n?0:b,C--):E>b&&(E=n?b:0,C++);const P=h.find(Y=>Y.row==C&&Y.column==E).cell,F=["right","down"].includes(e),j=this.editor.plugins.get("TableSelection");if(n&&j.isEnabled){const Y=j.getAnchorCell()||t;j.setCellSelection(Y,P)}else{const Y=s.createPositionAt(P,F?0:"end");s.change($=>{$.setSelection(Y)})}}}class T2 extends un{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(t){this.fire(t.type,t)}}class S2 extends Lt{static get pluginName(){return"TableMouse"}static get requires(){return[tr,si]}init(){this.editor.editing.view.addObserver(T2),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(si);let n=!1;const s=t.plugins.get(tr);this.listenTo(t.editing.view.document,"mousedown",(l,h)=>{const p=t.model.document.selection;if(!this.isEnabled||!s.isEnabled||!h.domEvent.shiftKey)return;const b=s.getAnchorCell()||e.getTableCellsContainingSelection(p)[0];if(!b)return;const A=this._getModelTableCellFromDomEvent(h);A&&h0(b,A)&&(n=!0,s.setCellSelection(b,A),h.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{n=!1}),this.listenTo(t.editing.view.document,"selectionChange",l=>{n&&l.stop()},{priority:"highest"})}_enableMouseDragSelection(){const t=this.editor;let e,n,s=!1,l=!1;const h=t.plugins.get(tr);this.listenTo(t.editing.view.document,"mousedown",(p,b)=>{this.isEnabled&&h.isEnabled&&(b.domEvent.shiftKey||b.domEvent.ctrlKey||b.domEvent.altKey||(e=this._getModelTableCellFromDomEvent(b)))}),this.listenTo(t.editing.view.document,"mousemove",(p,b)=>{if(!b.domEvent.buttons||!e)return;const A=this._getModelTableCellFromDomEvent(b);A&&h0(e,A)&&(n=A,s||n==e||(s=!0)),s&&(l=!0,h.setCellSelection(e,n),b.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{s=!1,l=!1,e=null,n=null}),this.listenTo(t.editing.view.document,"selectionChange",p=>{l&&p.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(t){const n=this.editor.editing.view.createPositionAt(t.target,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function h0(r,t){return r.parent.parent==t.parent.parent}var u0=lt(6306);function D2(r){const t=r.getSelectedElement();return t&&p0(t)?t:null}function M2(r){const t=r.getFirstPosition();if(!t)return null;let e=t.parent;for(;e;){if(e.is("element")&&p0(e))return e;e=e.parent}return null}function p0(r){return!!r.getCustomProperty("table")&&He(r)}Rt()(u0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var g0=lt(7368);Rt()(g0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var m0=lt(9247);Rt()(m0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var f0=lt(4070);Rt()(f0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var b0=lt(6237);Rt()(b0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var v0=lt(5087);Rt()(v0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var k0=lt(7341);Rt()(k0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var _0=lt(2128);Rt()(_0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var w0=lt(4101);Rt()(w0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Z2=Object.defineProperty,A0=Object.getOwnPropertySymbols,U2=Object.prototype.hasOwnProperty,j2=Object.prototype.propertyIsEnumerable,x0=(r,t,e)=>t in r?Z2(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,C0=(r,t)=>{for(var e in t||(t={}))U2.call(t,e)&&x0(r,e,t[e]);if(A0)for(var e of A0(t))j2.call(t,e)&&x0(r,e,t[e]);return r};const V2={autoRefresh:!0};class Ip extends(ne()){constructor(t,e={}){if(super(),!t)throw new W("token-missing-token-url",this);e.initValue&&this._validateTokenValue(e.initValue),this.set("value",e.initValue),this._refresh="function"==typeof t?t:()=>{return n=t,new Promise((s,l)=>{const h=new XMLHttpRequest;h.open("GET",n),h.addEventListener("load",()=>{const p=h.status,b=h.response;return p<200||p>299?l(new W("token-cannot-download-new-token",null)):s(b)}),h.addEventListener("error",()=>l(new Error("Network Error"))),h.addEventListener("abort",()=>l(new Error("Abort"))),h.send()});var n},this._options=C0(C0({},V2),e)}init(){return new Promise((t,e)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),t(this)):this.refreshToken().then(t).catch(e)})}refreshToken(){return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(t){const e="string"==typeof t,n=!/^".*"$/.test(t),s=e&&3===t.split(".").length;if(!n||!s)throw new W("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{const[,t]=this.value.split("."),{exp:e}=JSON.parse(atob(t));return e?Math.floor((1e3*e-Date.now())/2):36e5}catch{return 36e5}}static create(t,e={}){return new Ip(t,e).init()}}const Dp=/^data:(\S*?);base64,/;class q2 extends(ie()){constructor(t,e,n){if(super(),!t)throw new W("fileuploader-missing-file",null);if(!e)throw new W("fileuploader-missing-token",null);if(!n)throw new W("fileuploader-missing-api-address",null);this.file=function(s){if("string"!=typeof s)return!1;const l=s.match(Dp);return!(!l||!l.length)}(t)?function(s,l=512){try{const h=s.match(Dp)[1],p=atob(s.replace(Dp,"")),b=[];for(let A=0;At(n)),this}onError(t){return this.once("error",(e,n)=>t(n)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const t=new XMLHttpRequest;t.open("POST",this._apiAddress),t.setRequestHeader("Authorization",this._token.value),t.responseType="json",this.xhr=t}_attachXHRListeners(){const t=this.xhr,e=n=>()=>this.fire("error",n);t.addEventListener("error",e("Network Error")),t.addEventListener("abort",e("Abort")),t.upload&&t.upload.addEventListener("progress",n=>{n.lengthComputable&&this.fire("progress",{total:n.total,uploaded:n.loaded})}),t.addEventListener("load",()=>{const n=t.status,s=t.response;if(n<200||n>299)return this.fire("error",s.message||s.error)})}_sendRequest(){const t=new FormData,e=this.xhr;return t.append("file",this.file),new Promise((n,s)=>{e.addEventListener("load",()=>{const l=e.status,h=e.response;return l<200||l>299?s(h.message?new W("fileuploader-uploading-data-failed",this,{message:h.message}):h.error):n(h)}),e.addEventListener("error",()=>s(new Error("Network Error"))),e.addEventListener("abort",()=>s(new Error("Abort"))),e.send(t)})}}class Y2{constructor(t,e){if(!t)throw new W("uploadgateway-missing-token",null);if(!e)throw new W("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=e}upload(t){return new q2(t,this._token,this._apiAddress)}}class H2 extends Er{static get pluginName(){return"CloudServicesCore"}createToken(t,e){return new Ip(t,e)}createUploadGateway(t,e){return new Y2(t,e)}}var E0=(r,t,e)=>new Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class Mp extends Uc{}Mp.builtinPlugins=[class extends Lt{static get requires(){return[nb,Yc,yA,Q1,U1,db]}static get pluginName(){return"Essentials"}},class extends Lt{static get requires(){return[sn]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const r=this.editor.config.get("ckfinder.uploadUrl");r&&(this.editor.plugins.get(sn).createUploadAdapter=t=>new RA(t,r,this.editor.t))}},class extends Lt{static get requires(){return[Un]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const r=this.editor.commands;r.get("bulletedList")&&Ao(this.editor,this,/^[*-]\s$/,"bulletedList"),r.get("numberedList")&&Ao(this.editor,this,/^1[.|)]\s$/,"numberedList"),r.get("todoList")&&Ao(this.editor,this,/^\[\s?\]\s$/,"todoList"),r.get("checkTodoList")&&Ao(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const r=this.editor.commands;if(r.get("bold")){const t=Xc(this.editor,"bold");Kr(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),Kr(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(r.get("italic")){const t=Xc(this.editor,"italic");Kr(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,t),Kr(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,t)}if(r.get("code")){const t=Xc(this.editor,"code");Kr(this.editor,this,/(`)([^`]+)(`)$/g,t)}if(r.get("strikethrough")){const t=Xc(this.editor,"strikethrough");Kr(this.editor,this,/(~~)([^~]+)(~~)$/g,t)}}_addHeadingAutoformats(){const r=this.editor.commands.get("heading");r&&r.modelElements.filter(t=>t.match(/^heading[1-6]$/)).forEach(t=>{const n=new RegExp(`^(#{${t[7]}})\\s$`);Ao(this.editor,this,n,()=>{if(!r.isEnabled||r.value===t)return!1;this.editor.execute("heading",{value:t})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Ao(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const r=this.editor,t=r.model.document.selection;r.commands.get("codeBlock")&&Ao(r,this,/^```$/,()=>{if(t.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Ao(this.editor,this,/^---$/,"horizontalLine")}},class extends Lt{static get requires(){return[ZA,UA]}static get pluginName(){return"Bold"}},class extends Lt{static get requires(){return[VA,qA]}static get pluginName(){return"Italic"}},class extends Lt{static get requires(){return[HA,WA]}static get pluginName(){return"BlockQuote"}},class extends Lt{static get pluginName(){return"CKBox"}static get requires(){return[Ib,QA]}},class extends Lt{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",_x,vx]}},class extends Er{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[H2]}init(){return E0(this,null,function*(){const r=this.context.config.get("cloudServices")||{};for(const[e,n]of Object.entries(r))this[e]=n;if(!this.tokenUrl)return void(this.token=null);const t=this.context.plugins.get("CloudServicesCore");this.token=yield t.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(r){return E0(this,null,function*(){if(this._tokens.has(r))return this.getTokenFor(r);const t=this.context.plugins.get("CloudServicesCore"),e=yield t.createToken(r).init();return this._tokens.set(r,e),e})}getTokenFor(r){const t=this._tokens.get(r);if(!t)throw new W("cloudservices-token-not-registered",this);return t}destroy(){super.destroy();for(const r of this._tokens.values())r.destroy()}},class extends Lt{static get pluginName(){return"EasyImage"}static get requires(){return[wx,"ImageUpload"]}init(){const r=this.editor;r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||kt("easy-image-image-feature-missing",r)}},class extends Lt{static get requires(){return[Ex,Sx]}static get pluginName(){return"Heading"}},class extends Lt{static get requires(){return[Qx,Kx]}static get pluginName(){return"Image"}},class extends Lt{static get requires(){return[$x,tC]}static get pluginName(){return"ImageCaption"}},class extends Lt{static get requires(){return[Pv,xC]}static get pluginName(){return"ImageStyle"}},class extends Lt{static get requires(){return[Gc,Ci]}static get pluginName(){return"ImageToolbar"}afterInit(){const r=this.editor,t=r.t,e=r.plugins.get(Gc),n=r.plugins.get("ImageUtils");var s;e.register("image",{ariaLabel:t("Image toolbar"),items:(s=r.config.get("image.toolbar")||[],s.map(l=>te(l)?l.name:l)),getRelatedElement:l=>n.getClosestSelectedImageWidget(l)})}},class extends Lt{static get pluginName(){return"ImageUpload"}static get requires(){return[gC,nC,aC]}},class extends Lt{static get pluginName(){return"Indent"}static get requires(){return[CC,yC]}},class extends Lt{static get requires(){return[ik,ty,ey]}static get pluginName(){return"Link"}},class extends Lt{static get requires(){return[Cy,cy]}static get pluginName(){return"List"}},class extends Lt{static get requires(){return[id,Py,Dy,Ea]}static get pluginName(){return"MediaEmbed"}},ap,class extends Lt{static get pluginName(){return"PasteFromOffice"}static get requires(){return[fn]}init(){const r=this.editor,t=r.plugins.get("ClipboardPipeline"),e=r.editing.view.document,n=[];n.push(new jy(e)),n.push(new qy(e)),n.push(new Hy(e)),t.on("inputTransformation",(s,l)=>{if(l._isTransformedWithPasteFromOffice||r.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const h=l.dataTransfer.getData("text/html"),p=n.find(b=>b.isActive(h));p&&(l._parsedData||(l._parsedData=function Gy(r,t){const e=new DOMParser,n=Fk(Fk(function(b){const E=b.indexOf("");if(E<0)return b;const P=b.indexOf("",E+7);return b.substring(0,E+7)+(P>=0?b.substring(P):"")}(r=(r=r.replace(//g,""):p.getData("text/plain")&&(((A=(A=p.getData("text/plain")).replace(/&/g,"&").replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/\t/g,"    ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||A.includes("
"))&&(A=`

${A}

`),E=A),b=this.editor.data.htmlProcessor.toView(E)}var A;const C=new xt(this,"inputTransformation");this.fire(C,{content:b,dataTransfer:p,targetRanges:h.targetRanges,method:h.method}),C.stop.called&&l.stop(),n.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(l,h)=>{if(h.content.isEmpty)return;const p=this.editor.data.toModel(h.content,"$clipboardHolder");0!=p.childCount&&(l.stop(),e.change(()=>{this.fire("contentInsertion",{content:p,method:h.method,dataTransfer:h.dataTransfer,targetRanges:h.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(l,h)=>{h.resultRange=e.insertContent(h.content)},{priority:"low"})}_setupCopyCut(){const t=this.editor,e=t.model.document,n=t.editing.view.document,s=(l,h)=>{const p=h.dataTransfer;h.preventDefault(),this._fireOutputTransformationEvent(p,e.selection,l.name)};this.listenTo(n,"copy",s,{priority:"low"}),this.listenTo(n,"cut",(l,h)=>{t.model.canEditAt(t.model.document.selection)?s(l,h):h.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(l,h)=>{const p=t.data.toView(h.content);n.fire("clipboardOutput",{dataTransfer:h.dataTransfer,content:p,method:h.method})},{priority:"low"}),this.listenTo(n,"clipboardOutput",(l,h)=>{h.content.isEmpty||(h.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(h.content)),h.dataTransfer.setData("text/plain",ff(h.content))),"cut"==h.method&&t.model.deleteContent(e.selection)},{priority:"low"})}}class bf{constructor(t,e=20){this._batch=null,this.model=t,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=(n,s)=>{s.isLocal&&s.isUndoable&&s!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(t){this._size+=t,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(t=!1){this.isLocked&&!t||(this._batch=null,this._size=0)}}class z1 extends Jt{constructor(t,e){super(t),this._buffer=new bf(t.model,e),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(t={}){const e=this.editor.model,n=e.document,s=t.text||"",l=s.length;let h=n.selection;if(t.selection?h=t.selection:t.range&&(h=e.createSelection(t.range)),!e.canEditAt(h))return;const p=t.resultRange;e.enqueueChange(this._buffer.batch,b=>{this._buffer.lock();const A=Array.from(n.selection.getAttributes());e.deleteContent(h),s&&e.insertContent(b.createText(s,A),h),p?b.setSelection(p):h.is("documentSelection")||b.setSelection(h),this._buffer.unlock(),this._buffer.input(l)})}}const vf=["insertText","insertReplacementText"];class R1 extends Vi{constructor(t){super(t),this.focusObserver=t.getObserver(Vr),it.isAndroid&&vf.push("insertCompositionText");const e=t.document;e.on("beforeinput",(n,s)=>{if(!this.isEnabled)return;const{data:l,targetRanges:h,inputType:p,domEvent:b}=s;if(!vf.includes(p))return;this.focusObserver.flush();const A=new xt(e,"insertText");e.fire(A,new bo(t,b,{text:l,selection:t.createSelection(h)})),A.stop.called&&n.stop()}),e.on("compositionend",(n,{data:s,domEvent:l})=>{this.isEnabled&&!it.isAndroid&&s&&e.fire("insertText",new bo(t,l,{text:s,selection:e.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class kf extends Lt{static get pluginName(){return"Input"}init(){const t=this.editor,e=t.model,n=t.editing.view,s=e.document.selection;n.addObserver(R1);const l=new z1(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",l),t.commands.add("input",l),this.listenTo(n.document,"insertText",(h,p)=>{n.document.isComposing||p.preventDefault();const{text:b,selection:A,resultRange:C}=p,E=Array.from(A.getRanges()).map(j=>t.editing.mapper.toModelRange(j));let P=b;if(it.isAndroid){const j=Array.from(E[0].getItems()).reduce((Y,$)=>Y+($.is("$textProxy")?$.data:""),"");j&&(j.length<=P.length?P.startsWith(j)&&(P=P.substring(j.length),E[0].start=E[0].start.getShiftedBy(j.length)):j.startsWith(P)&&(E[0].start=E[0].start.getShiftedBy(P.length),P=""))}const F={text:P,selection:e.createSelection(E)};C&&(F.resultRange=t.editing.mapper.toModelRange(C)),t.execute("insertText",F),n.scrollToTheSelection()}),it.isAndroid?this.listenTo(n.document,"keydown",(h,p)=>{!s.isCollapsed&&229==p.keyCode&&n.document.isComposing&&_f(e,l)}):this.listenTo(n.document,"compositionstart",()=>{s.isCollapsed||_f(e,l)})}}function _f(r,t){if(!t.isEnabled)return;const e=t.buffer;e.lock(),r.enqueueChange(e.batch,()=>{r.deleteContent(r.document.selection)}),e.unlock()}class wf extends Jt{constructor(t,e){super(t),this.direction=e,this._buffer=new bf(t.model,t.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(t={}){const e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,s=>{this._buffer.lock();const l=s.createSelection(t.selection||n.selection);if(!e.canEditAt(l))return;const h=t.sequence||1,p=l.isCollapsed;if(l.isCollapsed&&e.modifySelection(l,{direction:this.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(h))return void this._replaceEntireContentWithParagraph(s);if(this._shouldReplaceFirstBlockWithParagraph(l,h))return void this.editor.execute("paragraph",{selection:l});if(l.isCollapsed)return;let b=0;l.getFirstRange().getMinimalFlatRanges().forEach(A=>{b+=yo(A.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),e.deleteContent(l,{doNotResetEntireContent:p,direction:this.direction}),this._buffer.input(b),s.setSelection(l),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;const e=this.editor.model,n=e.document.selection,s=e.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(s)||!e.schema.checkChild(s,"paragraph"))return!1;const l=s.getChild(0);return!l||!l.is("element","paragraph")}_replaceEntireContentWithParagraph(t){const e=this.editor.model,s=e.schema.getLimitElement(e.document.selection),l=t.createElement("paragraph");t.remove(t.createRangeIn(s)),t.insert(l,s),t.setSelection(l,0)}_shouldReplaceFirstBlockWithParagraph(t,e){const n=this.editor.model;if(e>1||"backward"!=this.direction||!t.isCollapsed)return!1;const s=t.getFirstPosition(),l=n.schema.getLimitElement(s),h=l.getChild(0);return s.parent==h&&!!t.containsEntireContent(h)&&!!n.schema.checkChild(l,"paragraph")&&"paragraph"!=h.name}}const _o="selection",Qr="backward",xa="forward",xf={deleteContent:{unit:_o,direction:Qr},deleteContentBackward:{unit:"codePoint",direction:Qr},deleteWordBackward:{unit:"word",direction:Qr},deleteHardLineBackward:{unit:_o,direction:Qr},deleteSoftLineBackward:{unit:_o,direction:Qr},deleteContentForward:{unit:"character",direction:xa},deleteWordForward:{unit:"word",direction:xa},deleteHardLineForward:{unit:_o,direction:xa},deleteSoftLineForward:{unit:_o,direction:xa}};class Z1 extends Vi{constructor(t){super(t);const e=t.document;let n=0;e.on("keydown",()=>{n++}),e.on("keyup",()=>{n=0}),e.on("beforeinput",(s,l)=>{if(!this.isEnabled)return;const{targetRanges:h,domEvent:p,inputType:b}=l,A=xf[b];if(!A)return;const C={direction:A.direction,unit:A.unit,sequence:n};C.unit==_o&&(C.selectionToRemove=t.createSelection(h[0])),"deleteContentBackward"===b&&(it.isAndroid&&(C.sequence=1),function(P){if(1!=P.length||P[0].isCollapsed)return!1;const F=P[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let j=0;for(const{nextPosition:Y}of F){if(Y.parent.is("$text")){const $=Y.parent.data,st=Y.offset;if(Fs($,st)||zs($,st)||bl($,st))continue;j++}else j++;if(j>1)return!0}return!1}(h)&&(C.unit=_o,C.selectionToRemove=t.createSelection(h)));const E=new go(e,"delete",h[0]);e.fire(E,new bo(t,p,C)),E.stop.called&&s.stop()}),it.isBlink&&function(s){const l=s.view,h=l.document;let p=null,b=!1;function A(E){return E==se.backspace||E==se.delete}function C(E){return E==se.backspace?Qr:xa}h.on("keydown",(E,{keyCode:P})=>{p=P,b=!1}),h.on("keyup",(E,{keyCode:P,domEvent:F})=>{const j=h.selection,Y=s.isEnabled&&P==p&&A(P)&&!j.isCollapsed&&!b;if(p=null,Y){const $=j.getFirstRange(),st=new go(h,"delete",$),ft={unit:_o,direction:C(P),selectionToRemove:j};h.fire(st,new bo(l,F,ft))}}),h.on("beforeinput",(E,{inputType:P})=>{const F=xf[P];A(p)&&F&&F.direction==C(p)&&(b=!0)},{priority:"high"}),h.on("beforeinput",(E,{inputType:P,data:F})=>{p==se.delete&&"insertText"==P&&"\x7f"==F&&E.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class Un extends Lt{static get pluginName(){return"Delete"}init(){const t=this.editor,e=t.editing.view,n=e.document,s=t.model.document;e.addObserver(Z1),this._undoOnBackspace=!1;const l=new wf(t,"forward");t.commands.add("deleteForward",l),t.commands.add("forwardDelete",l),t.commands.add("delete",new wf(t,"backward")),this.listenTo(n,"delete",(h,p)=>{n.isComposing||p.preventDefault();const{direction:b,sequence:A,selectionToRemove:C,unit:E}=p,P="forward"===b?"deleteForward":"delete",F={sequence:A};if("selection"==E){const j=Array.from(C.getRanges()).map(Y=>t.editing.mapper.toModelRange(Y));F.selection=t.model.createSelection(j)}else F.unit=E;t.execute(P,F),e.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",(h,p)=>{this._undoOnBackspace&&"backward"==p.direction&&1==p.sequence&&"codePoint"==p.unit&&(this._undoOnBackspace=!1,t.execute("undo"),p.preventDefault(),h.stop())},{context:"$capture"}),this.listenTo(s,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class U1 extends Lt{static get requires(){return[kf,Un]}static get pluginName(){return"Typing"}}function Cf(r,t){let e=r.start;return{text:Array.from(r.getWalker({ignoreElementEnd:!1})).reduce((n,{item:s})=>s.is("$text")||s.is("$textProxy")?n+s.data:(e=t.createPositionAfter(s),""),""),range:t.createRange(e,r.end)}}class yf extends(ne()){constructor(t,e){super(),this.model=t,this.testCallback=e,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(t.document.selection),this.stopListening(t.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const t=this.model.document;this.listenTo(t.selection,"change:range",(e,{directChange:n})=>{n&&(t.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(t,"change:data",(e,n)=>{!n.isUndo&&n.isLocal&&this._evaluateTextBeforeSelection("data",{batch:n})})}_evaluateTextBeforeSelection(t,e={}){const n=this.model,s=n.document.selection,l=n.createRange(n.createPositionAt(s.focus.parent,0),s.focus),{text:h,range:p}=Cf(l,n),b=this.testCallback(h);if(!b&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!b,b){const A=Object.assign(e,{text:h,range:p});"object"==typeof b&&Object.assign(A,b),this.fire(`matched:${t}`,A)}}}class Ef extends Lt{constructor(t){super(t),this._isNextGravityRestorationSkipped=!1,this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const t=this.editor,s=t.locale,l=t.model.document.selection;this.listenTo(t.editing.view.document,"arrowKey",(h,p)=>{if(!l.isCollapsed||p.shiftKey||p.altKey||p.ctrlKey)return;const b=p.keyCode==se.arrowright,A=p.keyCode==se.arrowleft;if(!b&&!A)return;const C=s.contentLanguageDirection;let E=!1;E="ltr"===C&&b||"rtl"===C&&A?this._handleForwardMovement(p):this._handleBackwardMovement(p),!0===E&&h.stop()},{context:"$text",priority:"highest"}),this.listenTo(l,"change:range",(h,p)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!p.directChange&&Yi(l.getFirstPosition(),this.attributes)||this._restoreGravity())}),this._enableClickingAfterNode(),this._enableInsertContentSelectionAttributesFixer(),this._handleDeleteContentAfterNode()}registerAttribute(t){this.attributes.add(t)}_handleForwardMovement(t){const e=this.attributes,n=this.editor.model,s=n.document.selection,l=s.getFirstPosition();return!(this._isGravityOverridden||l.isAtStart&&jn(s,e)||!Yi(l,e)||(ya(t),jn(s,e)&&Yi(l,e,!0)?Ca(n,e):this._overrideGravity(),0))}_handleBackwardMovement(t){const e=this.attributes,n=this.editor.model,s=n.document.selection,l=s.getFirstPosition();return this._isGravityOverridden?(ya(t),this._restoreGravity(),Yi(l,e,!0)?Ca(n,e):Vc(n,e,l),!0):l.isAtStart?!!jn(s,e)&&(ya(t),Vc(n,e,l),!0):!jn(s,e)&&Yi(l,e,!0)?(ya(t),Vc(n,e,l),!0):!!Tf(l,e)&&(l.isAtEnd&&!jn(s,e)&&Yi(l,e)?(ya(t),Vc(n,e,l),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}_enableClickingAfterNode(){const t=this.editor,e=t.model,n=e.document.selection,s=t.editing.view.document;t.editing.view.addObserver(Mu);let l=!1;this.listenTo(s,"mousedown",()=>{l=!0}),this.listenTo(s,"selectionChange",()=>{const h=this.attributes;if(!l||(l=!1,!n.isCollapsed)||!jn(n,h))return;const p=n.getFirstPosition();Yi(p,h)&&(p.isAtStart||Yi(p,h,!0)?Ca(e,h):this._isGravityOverridden||this._overrideGravity())})}_enableInsertContentSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection,n=this.attributes;this.listenTo(t,"insertContent",()=>{const s=e.getFirstPosition();jn(e,n)&&Yi(s,n)&&Ca(t,n)},{priority:"low"})}_handleDeleteContentAfterNode(){const t=this.editor,e=t.model,n=e.document.selection;let l=!1,h=!1;this.listenTo(t.editing.view.document,"delete",(p,b)=>{l="backward"===b.direction},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{if(!l)return;const p=n.getFirstPosition();h=jn(n,this.attributes)&&!Tf(p,this.attributes)},{priority:"high"}),this.listenTo(e,"deleteContent",()=>{l&&(l=!1,h||t.model.enqueueChange(()=>{const p=n.getFirstPosition();jn(n,this.attributes)&&Yi(p,this.attributes)&&(p.isAtStart||Yi(p,this.attributes,!0)?Ca(e,this.attributes):this._isGravityOverridden||this._overrideGravity())}))},{priority:"low"})}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(t=>t.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(t=>{t.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function jn(r,t){for(const e of t)if(r.hasAttribute(e))return!0;return!1}function Vc(r,t,e){const n=e.nodeBefore;r.change(s=>{if(n){const l=[],h=r.schema.isObject(n)&&r.schema.isInline(n);for(const[p,b]of n.getAttributes())!r.schema.checkAttribute("$text",p)||h&&!1===r.schema.getAttributeProperties(p).copyFromObject||l.push([p,b]);s.setSelectionAttribute(l)}else s.removeSelectionAttribute(t)})}function Ca(r,t){r.change(e=>{e.removeSelectionAttribute(t)})}function ya(r){r.preventDefault()}function Tf(r,t){return Yi(r.getShiftedBy(-1),t)}function Yi(r,t,e=!1){const{nodeBefore:n,nodeAfter:s}=r;for(const l of t){const h=n?n.getAttribute(l):void 0,p=s?s.getAttribute(l):void 0;if((!e||void 0!==h&&void 0!==p)&&p!==h)return!0}return!1}const Sf={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:Xr('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:Xr("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:Xr("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:Xr('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:Xr('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:Xr("'"),to:[null,"\u201a",null,"\u2019"]}},If={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},j1=["symbols","mathematical","typography","quotes"];function V1(r){return"string"==typeof r?new RegExp(`(${Qm(r)})$`):r}function q1(r){return"string"==typeof r?()=>[r]:r instanceof Array?()=>r:r}function Y1(r){return(r.textNode?r.textNode:r.nodeAfter).getAttributes()}function Xr(r){return new RegExp(`(^|\\s)(${r})([^${r}]*)(${r})$`)}function qc(r,t,e,n){return n.createRange(Df(r,t,e,!0,n),Df(r,t,e,!1,n))}function Df(r,t,e,n,s){let l=r.textNode||(n?r.nodeBefore:r.nodeAfter),h=null;for(;l&&l.getAttribute(t)==e;)h=l,l=n?l.previousSibling:l.nextSibling;return h?s.createPositionAt(h,n?"before":"after"):r}function*Mf(r,t){for(const e of t)e&&r.getAttributeProperties(e[0]).copyOnEnter&&(yield e)}class H1 extends Jt{execute(){this.editor.model.change(t=>{this.enterBlock(t),this.fire("afterExecute",{writer:t})})}enterBlock(t){const e=this.editor.model,n=e.document.selection,s=e.schema,l=n.isCollapsed,h=n.getFirstRange(),p=h.start.parent,b=h.end.parent;if(s.isLimit(p)||s.isLimit(b))return l||p!=b||e.deleteContent(n),!1;if(l){const A=Mf(t.model.schema,n.getAttributes());return Lf(t,h.start),t.setSelectionAttribute(A),!0}{const A=!(h.start.isAtStart&&h.end.isAtEnd),C=p==b;if(e.deleteContent(n,{leaveUnmerged:A}),A){if(C)return Lf(t,n.focus),!0;t.setSelection(b,0)}}return!1}}function Lf(r,t){r.split(t),r.setSelection(t.parent.nextSibling,0)}const G1={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class Pf extends Vi{constructor(t){super(t);const e=this.document;let n=!1;e.on("keydown",(s,l)=>{n=l.shiftKey}),e.on("beforeinput",(s,l)=>{if(!this.isEnabled)return;let h=l.inputType;it.isSafari&&n&&"insertParagraph"==h&&(h="insertLineBreak");const p=l.domEvent,b=G1[h];if(!b)return;const A=new go(e,"enter",l.targetRanges[0]);e.fire(A,new bo(t,p,{isSoft:b.isSoft})),A.stop.called&&s.stop()})}observe(){}stopObserving(){}}class Yc extends Lt{static get pluginName(){return"Enter"}init(){const t=this.editor,e=t.editing.view,n=e.document;e.addObserver(Pf),t.commands.add("enter",new H1(t)),this.listenTo(n,"enter",(s,l)=>{n.isComposing||l.preventDefault(),l.isSoft||(t.execute("enter"),e.scrollToTheSelection())},{priority:"low"})}}class W1 extends Jt{execute(){const t=this.editor.model,e=t.document;t.change(n=>{(function(s,l,h){const p=h.isCollapsed,b=h.getFirstRange(),C=b.end.parent,E=b.start.parent==C;if(p){const P=Mf(s.schema,h.getAttributes());Nf(s,l,b.end),l.removeSelectionAttribute(h.getAttributeKeys()),l.setSelectionAttribute(P)}else{const P=!(b.start.isAtStart&&b.end.isAtEnd);s.deleteContent(h,{leaveUnmerged:P}),E?Nf(s,l,h.focus):P&&l.setSelection(C,0)}})(t,n,e.selection),this.fire("afterExecute",{writer:n})})}refresh(){const t=this.editor.model;this.isEnabled=function(n,s){if(s.rangeCount>1)return!1;const l=s.anchor;if(!l||!n.checkChild(l,"softBreak"))return!1;const h=s.getFirstRange(),p=h.start.parent,b=h.end.parent;return!((Xu(p,n)||Xu(b,n))&&p!==b)}(t.schema,t.document.selection)}}function Nf(r,t,e){const n=t.createElement("softBreak");r.insertContent(n,e),t.setSelection(n,"after")}function Xu(r,t){return!r.is("rootElement")&&(t.isLimit(r)||Xu(r.parent,t))}class Q1 extends Lt{static get pluginName(){return"ShiftEnter"}init(){const t=this.editor,n=t.conversion,s=t.editing.view,l=s.document;t.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:(h,{writer:p})=>p.createEmptyElement("br")}),s.addObserver(Pf),t.commands.add("shiftEnter",new W1(t)),this.listenTo(l,"enter",(h,p)=>{l.isComposing||p.preventDefault(),p.isSoft&&(t.execute("shiftEnter"),s.scrollToTheSelection())},{priority:"low"})}}class X1 extends(ie()){constructor(){super(...arguments),this._stack=[]}add(t,e){const n=this._stack,s=n[0];this._insertDescriptor(t);const l=n[0];s===l||Ku(s,l)||this.fire("change:top",{oldDescriptor:s,newDescriptor:l,writer:e})}remove(t,e){const n=this._stack,s=n[0];this._removeDescriptor(t);const l=n[0];s===l||Ku(s,l)||this.fire("change:top",{oldDescriptor:s,newDescriptor:l,writer:e})}_insertDescriptor(t){const e=this._stack,n=e.findIndex(l=>l.id===t.id);if(Ku(t,e[n]))return;n>-1&&e.splice(n,1);let s=0;for(;e[s]&&K1(e[s],t);)s++;e.splice(s,0,t)}_removeDescriptor(t){const e=this._stack,n=e.findIndex(s=>s.id===t);n>-1&&e.splice(n,1)}}function Ku(r,t){return r&&t&&r.priority==t.priority&&Hc(r.classes)==Hc(t.classes)}function K1(r,t){return r.priority>t.priority||!(r.priorityHc(t.classes)}function Hc(r){return Array.isArray(r)?r.sort().join(","):r}const J1='',$1="ck-widget",Of="ck-widget_selected";function He(r){return!!r.is("element")&&!!r.getCustomProperty("widget")}function Ju(r,t,e={}){if(!r.is("containerElement"))throw new W("widget-to-widget-wrong-element-type",null,{element:r});return t.setAttribute("contenteditable","false",r),t.addClass($1,r),t.setCustomProperty("widget",!0,r),r.getFillerOffset=iA,t.setCustomProperty("widgetLabel",[],r),e.label&&(s=e.label,r.getCustomProperty("widgetLabel").push(s)),e.hasSelectionHandle&&function(n,s){const l=s.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(h){const p=this.toDomElement(h),b=new Dn;return b.set("content",J1),b.render(),p.appendChild(b.element),p});s.insert(s.createPositionAt(n,0),l),s.addClass(["ck-widget_with-selection-handle"],n)}(r,t),Bf(r,t),r;var s}function tA(r,t,e){if(t.classes&&e.addClass(Ze(t.classes),r),t.attributes)for(const n in t.attributes)e.setAttribute(n,t.attributes[n],r)}function eA(r,t,e){if(t.classes&&e.removeClass(Ze(t.classes),r),t.attributes)for(const n in t.attributes)e.removeAttribute(n,r)}function Bf(r,t,e=tA,n=eA){const s=new X1;s.on("change:top",(l,h)=>{h.oldDescriptor&&n(r,h.oldDescriptor,h.writer),h.newDescriptor&&e(r,h.newDescriptor,h.writer)}),t.setCustomProperty("addHighlight",(l,h,p)=>s.add(h,p),r),t.setCustomProperty("removeHighlight",(l,h,p)=>s.remove(h,p),r)}function Ff(r,t,e={}){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],r),t.setAttribute("role","textbox",r),e.label&&t.setAttribute("aria-label",e.label,r),t.setAttribute("contenteditable",r.isReadOnly?"false":"true",r),r.on("change:isReadOnly",(n,s,l)=>{t.setAttribute("contenteditable",l?"false":"true",r)}),r.on("change:isFocused",(n,s,l)=>{l?t.addClass("ck-editor__nested-editable_focused",r):t.removeClass("ck-editor__nested-editable_focused",r)}),Bf(r,t),r}function zf(r,t){const e=r.getSelectedElement();if(e){const n=wo(r);if(n)return t.createRange(t.createPositionAt(e,n))}return tm(r,t)}function iA(){return null}const Vn="widget-type-around";function Jo(r,t,e){return!!r&&He(r)&&!e.isInline(t)}function wo(r){return r.getAttribute(Vn)}var Rf=lt(4921);Rt()(Rf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Zf=["before","after"],oA=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,Uf="ck-widget__type-around_disabled";class rA extends Lt{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Yc,Un]}init(){const t=this.editor,e=t.editing.view;this.on("change:isEnabled",(n,s,l)=>{e.change(h=>{for(const p of e.document.roots)l?h.removeClass(Uf,p):h.addClass(Uf,p)}),l||t.model.change(h=>{h.removeSelectionAttribute(Vn)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(t,e){const n=this.editor,s=n.editing.view,l=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:l}),s.focus(),s.scrollToTheSelection()}_listenToIfEnabled(t,e,n,s){this.listenTo(t,e,(...l)=>{this.isEnabled&&n(...l)},s)}_insertParagraphAccordingToFakeCaretPosition(){const t=this.editor.model.document.selection,e=wo(t);if(!e)return!1;const n=t.getSelectedElement();return this._insertParagraph(n,e),!0}_enableTypeAroundUIInjection(){const t=this.editor,e=t.model.schema,n=t.locale.t,s={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",(l,h,p)=>{const b=p.mapper.toViewElement(h.item);b&&Jo(b,h.item,e)&&(function(A,C,E){const P=A.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(F){const j=this.toDomElement(F);return function(Y,$){for(const st of Zf){const ft=new Ei({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${st}`],title:$[st],"aria-hidden":"true"},children:[Y.ownerDocument.importNode(oA,!0)]});Y.appendChild(ft.render())}}(j,C),function(Y){const $=new Ei({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Y.appendChild($.render())}(j),j});A.insert(A.createPositionAt(E,"end"),P)}(p.writer,s,b),b.getCustomProperty("widgetLabel").push(()=>this.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const t=this.editor,e=t.model,n=e.document.selection,s=e.schema;function h(p){return`ck-widget_type-around_show-fake-caret_${p}`}this._listenToIfEnabled(t.editing.view.document,"arrowKey",(p,b)=>{this._handleArrowKeyPress(p,b)},{context:[He,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",(p,b)=>{b.directChange&&t.model.change(A=>{A.removeSelectionAttribute(Vn)})}),this._listenToIfEnabled(e.document,"change:data",()=>{const p=n.getSelectedElement();p&&Jo(t.editing.mapper.toViewElement(p),p,s)||t.model.change(b=>{b.removeSelectionAttribute(Vn)})}),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(p,b,A)=>{const C=A.writer;if(this._currentFakeCaretModelElement){const j=A.mapper.toViewElement(this._currentFakeCaretModelElement);j&&(C.removeClass(Zf.map(h),j),this._currentFakeCaretModelElement=null)}const E=b.selection.getSelectedElement();if(!E)return;const P=A.mapper.toViewElement(E);if(!Jo(P,E,s))return;const F=wo(b.selection);F&&(C.addClass(h(F),P),this._currentFakeCaretModelElement=E)}),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(p,b,A)=>{A||t.model.change(C=>{C.removeSelectionAttribute(Vn)})})}_handleArrowKeyPress(t,e){const n=this.editor,s=n.model,l=s.document.selection,h=s.schema,p=n.editing.view,b=function(E,P){const F=Ns(E,P);return"down"===F||"right"===F}(e.keyCode,n.locale.contentLanguageDirection),A=p.document.selection.getSelectedElement();let C;Jo(A,n.editing.mapper.toModelElement(A),h)?C=this._handleArrowKeyPressOnSelectedWidget(b):l.isCollapsed?C=this._handleArrowKeyPressWhenSelectionNextToAWidget(b):e.shiftKey||(C=this._handleArrowKeyPressWhenNonCollapsedSelection(b)),C&&(e.preventDefault(),t.stop())}_handleArrowKeyPressOnSelectedWidget(t){const e=this.editor.model,n=wo(e.document.selection);return e.change(s=>n?n!==(t?"after":"before")&&(s.removeSelectionAttribute(Vn),!0):(s.setSelectionAttribute(Vn,t?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(t){const e=this.editor,n=e.model,s=n.schema,l=e.plugins.get("Widget"),h=l._getObjectElementNextToSelection(t);return!!Jo(e.editing.mapper.toViewElement(h),h,s)&&(n.change(p=>{l._setSelectionOverElement(h),p.setSelectionAttribute(Vn,t?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(t){const e=this.editor,n=e.model,s=n.schema,l=e.editing.mapper,h=n.document.selection,p=t?h.getLastPosition().nodeBefore:h.getFirstPosition().nodeAfter;return!!Jo(l.toViewElement(p),p,s)&&(n.change(b=>{b.setSelection(p,"on"),b.setSelectionAttribute(Vn,t?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",(n,s)=>{const l=s.domTarget.closest(".ck-widget__type-around__button");if(!l)return;const h=l.classList.contains("ck-widget__type-around__button_before")?"before":"after",p=function(A,C){const E=A.closest(".ck-widget");return C.mapDomToView(E)}(l,e.domConverter),b=t.editing.mapper.toModelElement(p);this._insertParagraph(b,h),s.preventDefault(),n.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const t=this.editor,e=t.model.document.selection;this._listenToIfEnabled(t.editing.view.document,"enter",(s,l)=>{if("atTarget"!=s.eventPhase)return;const h=e.getSelectedElement(),p=t.editing.mapper.toViewElement(h),b=t.model.schema;let A;this._insertParagraphAccordingToFakeCaretPosition()?A=!0:Jo(p,h,b)&&(this._insertParagraph(h,l.isSoft?"before":"after"),A=!0),A&&(l.preventDefault(),s.stop())},{context:He})}_enableInsertingParagraphsOnTypingKeystroke(){const t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(e,n)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection)},{priority:"high"}),it.isAndroid?this._listenToIfEnabled(t,"keydown",(e,n)=>{229==n.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(t,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const t=this.editor,n=t.model,s=n.schema;this._listenToIfEnabled(t.editing.view.document,"delete",(l,h)=>{if("atTarget"!=l.eventPhase)return;const p=wo(n.document.selection);if(!p)return;const b=h.direction,A=n.document.selection.getSelectedElement(),C="forward"==b;if("before"===p===C)t.execute("delete",{selection:n.createSelection(A,"on")});else{const E=s.getNearestSelectionRange(n.createPositionAt(A,p),b);if(E)if(E.isCollapsed){const P=n.createSelection(E.start);if(n.modifySelection(P,{direction:b}),P.focus.isEqual(E.start)){const F=function(j,Y){let $=Y;for(const st of Y.getAncestors({parentFirst:!0})){if(st.childCount>1||j.isLimit(st))break;$=st}return $}(s,E.start.parent);n.deleteContent(n.createSelection(F,"on"),{doNotAutoparagraph:!0})}else n.change(F=>{F.setSelection(E),t.execute(C?"deleteForward":"delete")})}else n.change(P=>{P.setSelection(E),t.execute(C?"deleteForward":"delete")})}h.preventDefault(),l.stop()},{context:He})}_enableInsertContentIntegration(){const e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(s,[l,h])=>{if(h&&!h.is("documentSelection"))return;const p=wo(n);return p?(s.stop(),e.change(b=>{const A=n.getSelectedElement(),C=e.createPositionAt(A,p),E=b.createSelection(C),P=e.insertContent(l,E);return b.setSelection(E),P})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const e=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(n,s)=>{const[,l,h={}]=s;if(l&&!l.is("documentSelection"))return;const p=wo(e);p&&(h.findOptimalPosition=p,s[3]=h)},{priority:"high"})}_enableDeleteContentIntegration(){const e=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"deleteContent",(n,[s])=>{s&&!s.is("documentSelection")||wo(e)&&n.stop()},{priority:"high"})}}function jf(r,t,e){const n=r.schema,s=r.createRangeIn(t.root),l="forward"==e?"elementStart":"elementEnd";for(const{previousPosition:h,item:p,type:b}of s.getWalker({startPosition:t,direction:e})){if(n.isLimit(p)&&!n.isInline(p))return h;if(b==l&&n.isBlock(p))return null}return null}function Vf(r,t,e){const n="backward"==e?t.end:t.start;if(r.checkChild(n,"$text"))return n;for(const{nextPosition:s}of t.getWalker({direction:e}))if(r.checkChild(s,"$text"))return s;return null}var qf=lt(3488);Rt()(qf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ea extends Lt{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[rA,Un]}init(){const t=this.editor,e=t.editing.view,n=e.document;this.editor.editing.downcastDispatcher.on("selection",(s,l,h)=>{const p=h.writer,b=l.selection;if(b.isCollapsed)return;const A=b.getSelectedElement();if(!A)return;const C=t.editing.mapper.toViewElement(A);var E;He(C)&&h.consumable.consume(b,"selection")&&p.setSelection(p.createRangeOn(C),{fake:!0,label:(E=C,E.getCustomProperty("widgetLabel").reduce((P,F)=>"function"==typeof F?P?P+". "+F():F():P?P+". "+F:F,""))})}),this.editor.editing.downcastDispatcher.on("selection",(s,l,h)=>{this._clearPreviouslySelectedWidgets(h.writer);const p=h.writer,b=p.document.selection;let A=null;for(const C of b.getRanges())for(const E of C){const P=E.item;He(P)&&!lA(P,A)&&(p.addClass(Of,P),this._previouslySelected.add(P),A=P)}},{priority:"low"}),e.addObserver(Mu),this.listenTo(n,"mousedown",(...s)=>this._onMousedown(...s)),this.listenTo(n,"arrowKey",(...s)=>{this._handleSelectionChangeOnArrowKeyPress(...s)},{context:[He,"$text"]}),this.listenTo(n,"arrowKey",(...s)=>{this._preventDefaultOnArrowKeyPress(...s)},{context:"$root"}),this.listenTo(n,"arrowKey",function sA(r){const t=r.model;return(e,n)=>{const l=n.keyCode==se.arrowdown,h=n.shiftKey,p=t.document.selection;if(n.keyCode!=se.arrowup&&!l)return;const b=l;if(h&&!(C=p).isCollapsed&&C.isBackward==b)return;var C;const A=function(C,E,P){const F=C.model;if(P){const j=E.isCollapsed?E.focus:E.getLastPosition(),Y=jf(F,j,"forward");if(!Y)return null;const $=F.createRange(j,Y),st=Vf(F.schema,$,"backward");return st?F.createRange(j,st):null}{const j=E.isCollapsed?E.focus:E.getFirstPosition(),Y=jf(F,j,"backward");if(!Y)return null;const $=F.createRange(Y,j),st=Vf(F.schema,$,"forward");return st?F.createRange(st,j):null}}(r,p,b);if(A){if(A.isCollapsed&&(p.isCollapsed||h))return;(A.isCollapsed||function(C,E,P){const F=C.model,j=C.view.domConverter;if(P){const At=F.createSelection(E.start);F.modifySelection(At),At.focus.isAtEnd||E.start.isEqual(At.focus)||(E=F.createRange(At.focus,E.end))}const Y=C.mapper.toViewRange(E),$=j.viewRangeToDom(Y),st=le.getDomRangeRects($);let ft;for(const At of st)if(void 0!==ft){if(Math.round(At.top)>=ft)return!1;ft=Math.max(ft,Math.round(At.bottom))}else ft=Math.round(At.bottom);return!0}(r,A,b))&&(t.change(C=>{const E=b?A.end:A.start;if(h){const P=t.createSelection(p.anchor);P.setFocus(E),C.setSelection(P)}else C.setSelection(E)}),e.stop(),n.preventDefault(),n.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",(s,l)=>{this._handleDelete("forward"==l.direction)&&(l.preventDefault(),s.stop())},{context:"$root"})}_onMousedown(t,e){const n=this.editor,s=n.editing.view,l=s.document;let h=e.target;if(e.domEvent.detail>=3)return void(this._selectBlockContent(h)&&e.preventDefault());if(function(b){let A=b;for(;A;){if(A.is("editableElement")&&!A.is("rootElement"))return!0;if(He(A))return!1;A=A.parent}return!1}(h)||!He(h)&&(h=h.findAncestor(He),!h))return;it.isAndroid&&e.preventDefault(),l.isFocused||s.focus();const p=n.editing.mapper.toModelElement(h);this._setSelectionOverElement(p)}_selectBlockContent(t){const e=this.editor,n=e.model,s=e.editing.mapper,l=n.schema,h=s.findMappedViewAncestor(this.editor.editing.view.createPositionAt(t,0)),p=function(b,A){for(const C of b.getAncestors({includeSelf:!0,parentFirst:!0})){if(A.checkChild(C,"$text"))return C;if(A.isLimit(C)&&!A.isObject(C))break}return null}(s.toModelElement(h),n.schema);return!!p&&(n.change(b=>{const A=l.isLimit(p)?null:function(P,F){const j=new Li({startPosition:P});for(const{item:Y}of j){if(F.isLimit(Y)||!Y.is("element"))return null;if(F.checkChild(Y,"$text"))return Y}return null}(b.createPositionAfter(p),l),C=b.createPositionAt(p,0),E=A?b.createPositionAt(A,0):b.createPositionAt(p,"end");b.setSelection(b.createRange(C,E))}),!0)}_handleSelectionChangeOnArrowKeyPress(t,e){const n=e.keyCode,s=this.editor.model,l=s.schema,h=s.document.selection,p=h.getSelectedElement(),b=Ns(n,this.editor.locale.contentLanguageDirection),A="down"==b||"right"==b,C="up"==b||"down"==b;if(p&&l.isObject(p)){const P=A?h.getLastPosition():h.getFirstPosition(),F=l.getNearestSelectionRange(P,A?"forward":"backward");return void(F&&(s.change(j=>{j.setSelection(F)}),e.preventDefault(),t.stop()))}if(!h.isCollapsed&&!e.shiftKey){const P=h.getFirstPosition(),F=h.getLastPosition(),j=P.nodeAfter,Y=F.nodeBefore;return void((j&&l.isObject(j)||Y&&l.isObject(Y))&&(s.change($=>{$.setSelection(A?F:P)}),e.preventDefault(),t.stop()))}if(!h.isCollapsed)return;const E=this._getObjectElementNextToSelection(A);if(E&&l.isObject(E)){if(l.isInline(E)&&C)return;this._setSelectionOverElement(E),e.preventDefault(),t.stop()}}_preventDefaultOnArrowKeyPress(t,e){const n=this.editor.model,s=n.schema,l=n.document.selection.getSelectedElement();l&&s.isObject(l)&&(e.preventDefault(),t.stop())}_handleDelete(t){const e=this.editor.model.document.selection;if(!this.editor.model.canEditAt(e)||!e.isCollapsed)return;const n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change(s=>{let l=e.anchor.parent;for(;l.isEmpty;){const h=l;l=h.parent,s.remove(h)}this._setSelectionOverElement(n)}),!0):void 0}_setSelectionOverElement(t){this.editor.model.change(e=>{e.setSelection(e.createRangeOn(t))})}_getObjectElementNextToSelection(t){const e=this.editor.model,n=e.schema,s=e.document.selection,l=e.createSelection(s);if(e.modifySelection(l,{direction:t?"forward":"backward"}),l.isEqual(s))return null;const h=t?l.focus.nodeBefore:l.focus.nodeAfter;return h&&n.isObject(h)?h:null}_clearPreviouslySelectedWidgets(t){for(const e of this._previouslySelected)t.removeClass(Of,e);this._previouslySelected.clear()}}function lA(r,t){return!!t&&Array.from(r.getAncestors()).includes(t)}class Gc extends Lt{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[Rc]}static get pluginName(){return"WidgetToolbarRepository"}init(){const t=this.editor;if(t.plugins.has("BalloonToolbar")){const e=t.plugins.get("BalloonToolbar");this.listenTo(e,"show",n=>{(function(s){const l=s.getSelectedElement();return!(!l||!He(l))})(t.editing.view.document.selection)&&n.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(t.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const t of this._toolbarDefinitions.values())t.view.destroy()}register(t,{ariaLabel:e,items:n,getRelatedElement:s,balloonClassName:l="ck-toolbar-container"}){if(!n.length)return void kt("widget-toolbar-no-items",{toolbarId:t});const h=this.editor,p=h.t,b=new Pu(h.locale);if(b.ariaLabel=e||p("Widget toolbar"),this._toolbarDefinitions.has(t))throw new W("widget-toolbar-duplicated",this,{toolbarId:t});const A={view:b,getRelatedElement:s,balloonClassName:l,itemsConfig:n,initialized:!1};h.ui.addToolbar(b,{isContextual:!0,beforeFocus:()=>{const C=s(h.editing.view.document.selection);C&&this._showToolbar(A,C)},afterBlur:()=>{this._hideToolbar(A)}}),this._toolbarDefinitions.set(t,A)}_updateToolbarsVisibility(){let t=0,e=null,n=null;for(const s of this._toolbarDefinitions.values()){const l=s.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&l)if(this.editor.ui.focusTracker.isFocused){const h=l.getAncestors().length;h>t&&(t=h,e=l,n=s)}else this._isToolbarVisible(s)&&this._hideToolbar(s);else this._isToolbarInBalloon(s)&&this._hideToolbar(s)}n&&this._showToolbar(n,e)}_hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(t,e){this._isToolbarVisible(t)?Yf(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:t.view,position:Hf(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const n of this._toolbarDefinitions.values())if(this._isToolbarVisible(n)){const s=n.getRelatedElement(this.editor.editing.view.document.selection);Yf(this.editor,s)}}))}_isToolbarVisible(t){return this._balloon.visibleView===t.view}_isToolbarInBalloon(t){return this._balloon.hasView(t.view)}}function Yf(r,t){const e=r.plugins.get("ContextualBalloon"),n=Hf(r,t);e.updatePosition(n)}function Hf(r,t){const n=Ai.defaultPositions;return{target:r.editing.view.domConverter.mapViewToDom(t),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}ne(),ne();var Gf=lt(8506);Rt()(Gf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const $u=hn("px");class dA extends Wt{constructor(){super();const t=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",t.if("isVisible","ck-hidden",e=>!e)],style:{left:t.to("left",e=>$u(e)),top:t.to("top",e=>$u(e)),width:t.to("width",e=>$u(e))}}})}}class Wc extends Lt{constructor(){super(...arguments),this.removeDropMarkerDelayed=Bs(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Fc(t=>this._updateDropMarker(t),40),this._reconvertMarkerThrottled=Fc(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new dA,this._domEmitter=new(bi()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:t}of this._scrollables.values())t.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(t,e,n,s,l,h){this.removeDropMarkerDelayed.cancel();const p=Wf(this.editor,t,e,n,s,l,h);if(p)return h&&h.containsRange(p)?this.removeDropMarker():void this._updateDropMarkerThrottled(p)}getFinalDropRange(t,e,n,s,l,h){const p=Wf(this.editor,t,e,n,s,l,h);return this.removeDropMarker(),p}removeDropMarker(){const t=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,t.markers.has("drop-target")&&t.change(e=>{e.removeMarker("drop-target")})}_setupDropMarker(){const t=this.editor;t.ui.view.body.add(this._dropTargetLineView),t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(e,{writer:n})=>{if(t.model.schema.checkChild(e.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(n);e.markerRange.isCollapsed?this._updateDropTargetLine(e.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(t){const e=this.editor,n=e.model.markers;e.model.change(s=>{n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||s.updateMarker("drop-target",{range:t}):s.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(t){return t.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(e){const n=this.toDomElement(e);return n.append("\u2060",e.createElement("span"),"\u2060"),n})}_updateDropTargetLine(t){const e=this.editor.editing,n=t.start.nodeBefore,s=t.start.nodeAfter,l=t.start.parent,h=n?e.mapper.toViewElement(n):null,p=h?e.view.domConverter.mapViewToDom(h):null,b=s?e.mapper.toViewElement(s):null,A=b?e.view.domConverter.mapViewToDom(b):null,C=e.mapper.toViewElement(l),E=e.view.domConverter.mapViewToDom(C),P=this._getScrollableRect(C),{scrollX:F,scrollY:j}=Yt.window,Y=p?new le(p):null,$=A?new le(A):null,st=new le(E).excludeScrollbarsAndBorders(),ft=Y?Y.bottom:st.top,At=$?$.top:st.bottom,Ft=Yt.window.getComputedStyle(E),jt=ft<=At?(ft+At)/2:At;if(P.topp.schema.checkChild(E,P))){if(p.schema.checkChild(E,"$text"))return p.createRange(E);if(C)return Qc(r,Xf(r,C.parent),n,s)}}}else if(p.schema.isInline(A))return Qc(r,A,n,s);if(p.schema.isBlock(A))return Qc(r,A,n,s);if(p.schema.checkChild(A,"$block")){const C=Array.from(A.getChildren()).filter(F=>F.is("element")&&!hA(r,F));let E=0,P=C.length;if(0==P)return p.createRange(p.createPositionAt(A,"end"));for(;Et in r?uA(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class bA extends Lt{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(bi())}static get pluginName(){return"DragDropBlockToolbar"}init(){const t=this.editor;if(this.listenTo(t,"change:isReadOnly",(e,n,s)=>{s?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),it.isAndroid&&this.forceDisabled("noAndroidSupport"),t.plugins.has("BlockToolbar")){const e=t.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(e,"dragstart",(n,s)=>this._handleBlockDragStart(s)),this._domEmitter.listenTo(Yt.document,"dragover",(n,s)=>this._handleBlockDragging(s)),this._domEmitter.listenTo(Yt.document,"drop",(n,s)=>this._handleBlockDragging(s)),this._domEmitter.listenTo(Yt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&e.setAttribute("draggable","true"),this.on("change:isEnabled",(n,s,l)=>{e.setAttribute("draggable",l?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(t){if(!this.isEnabled)return;const e=this.editor.model,s=this.editor.editing.view,l=Array.from(e.document.selection.getSelectedBlocks()),h=e.createRange(e.createPositionBefore(l[0]),e.createPositionAfter(l[l.length-1]));e.change(p=>p.setSelection(h)),this._isBlockDragging=!0,s.focus(),s.getObserver(Aa).onDomEvent(t)}_handleBlockDragging(t){if(!this.isEnabled||!this._isBlockDragging)return;const e=t.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),n=t.clientY,s=document.elementFromPoint(e,n),l=this.editor.editing.view;var h;s&&s.closest(".ck-editor__editable")&&l.getObserver(Aa).onDomEvent((h=((b,A)=>{for(var C in A||(A={}))mA.call(A,C)&&Jf(b,C,A[C]);if(Kf)for(var C of Kf(A))fA.call(A,C)&&Jf(b,C,A[C]);return b})({},t),pA(h,gA({type:t.type,dataTransfer:t.dataTransfer,target:s,clientX:e,clientY:n,preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var $f=lt(903);Rt()($f.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class kA extends Lt{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=Bs(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(bi())}static get pluginName(){return"DragDrop"}static get requires(){return[fn,Ea,Wc,bA]}init(){const t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,e.addObserver(Aa),e.addObserver(Mu),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",(n,s,l)=>{l?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(n,s,l)=>{l||this._finalizeDragging(!1)}),it.isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const t=this.editor,e=t.model,n=t.editing.view,s=n.document,l=t.plugins.get(Wc);this.listenTo(s,"dragstart",(h,p)=>{if(p.target&&p.target.is("editableElement")||(this._prepareDraggedRange(p.target),!this._draggedRange))return void p.preventDefault();this._draggingUid=Mt(),p.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",p.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const b=e.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(p.dataTransfer,b,"dragstart");const{dataTransfer:A,domTarget:C,domEvent:E}=p,{clientX:P}=E;this._updatePreview({dataTransfer:A,domTarget:C,clientX:P}),p.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(s,"dragend",(h,p)=>{this._finalizeDragging(!p.dataTransfer.isCanceled&&"move"==p.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(Yt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(s,"dragenter",()=>{this.isEnabled&&n.focus()}),this.listenTo(s,"dragleave",()=>{l.removeDropMarkerDelayed()}),this.listenTo(s,"dragging",(h,p)=>{if(!this.isEnabled)return void(p.dataTransfer.dropEffect="none");const{clientX:b,clientY:A}=p.domEvent;l.updateDropMarker(p.target,p.targetRanges,b,A,this._blockMode,this._draggedRange),this._draggedRange||(p.dataTransfer.dropEffect="copy"),it.isGecko||("copy"==p.dataTransfer.effectAllowed?p.dataTransfer.dropEffect="copy":["all","copyMove"].includes(p.dataTransfer.effectAllowed)&&(p.dataTransfer.dropEffect="move")),h.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get(Wc);this.listenTo(e,"clipboardInput",(s,l)=>{if("drop"!=l.method)return;const{clientX:h,clientY:p}=l.domEvent,b=n.getFinalDropRange(l.target,l.targetRanges,h,p,this._blockMode,this._draggedRange);return b?(this._draggedRange&&this._draggingUid!=l.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==tb(l.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(b,!0)?(this._finalizeDragging(!1),void s.stop()):void(l.targetRanges=[t.editing.mapper.toViewRange(b)])):(this._finalizeDragging(!1),void s.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const t=this.editor.plugins.get(fn);t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const s=n.targetRanges.map(l=>this.editor.editing.mapper.toModelRange(l));this.editor.model.change(l=>l.setSelection(s))},{priority:"high"}),t.on("contentInsertion",(e,n)=>{if(!this.isEnabled||"drop"!==n.method)return;const s="move"==tb(n.dataTransfer);this._finalizeDragging((!n.resultRange||!n.resultRange.isCollapsed)&&s)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",(s,l)=>{if(it.isAndroid||!l)return;this._clearDraggableAttributesDelayed.cancel();let h=eb(l.target);if(it.isBlink&&!t.isReadOnly&&!h&&!n.selection.isCollapsed){const p=n.selection.getSelectedElement();p&&He(p)||(h=n.selection.editableElement)}h&&(e.change(p=>{p.setAttribute("draggable","true",h)}),this._draggableElement=t.editing.mapper.toModelElement(h))}),this.listenTo(n,"mouseup",()=>{it.isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const t=this.editor.editing;t.view.change(e=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&e.removeAttribute("draggable",t.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(t){const e=this.editor,n=e.model;e.plugins.get(Wc).removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(t&&this.isEnabled&&n.change(s=>{const l=n.createSelection(this._draggedRange);n.deleteContent(l,{doNotAutoparagraph:!0});const h=l.getFirstPosition().parent;h.isEmpty&&!n.schema.checkChild(h,"$text")&&n.schema.checkChild(h,"paragraph")&&s.insertElement("paragraph",h,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(t){const e=this.editor,n=e.model,s=n.document.selection,l=t?eb(t):null;if(l){const A=e.editing.mapper.toModelElement(l);return this._draggedRange=Ni.fromRange(n.createRangeOn(A)),this._blockMode=n.schema.isBlock(A),void(e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(s.isCollapsed&&!s.getFirstPosition().parent.isEmpty)return;const h=Array.from(s.getSelectedBlocks()),p=s.getFirstRange();if(0==h.length)return void(this._draggedRange=Ni.fromRange(p));const b=ib(n,h);if(h.length>1)this._draggedRange=Ni.fromRange(b),this._blockMode=!0;else if(1==h.length){const A=p.start.isTouching(b.start)&&p.end.isTouching(b.end);this._draggedRange=Ni.fromRange(A?b:p),this._blockMode=A}n.change(A=>A.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:t,domTarget:e,clientX:n}){const s=this.editor.editing.view,h=s.domConverter.mapViewToDom(s.document.selection.editableElement),p=Yt.window.getComputedStyle(h);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=yn(Yt.document,"div",{style:"position: fixed; left: -999999px;"}),Yt.document.body.appendChild(this._previewContainer));const b=new le(h);if(h.contains(e))return;const A=parseFloat(p.paddingLeft),C=yn(Yt.document,"div");C.className="ck ck-content",C.style.width=p.width,C.style.paddingLeft=`${b.left-n+A}px`,it.isiOS&&(C.style.backgroundColor="white"),C.innerHTML=t.getData("text/html"),t.setDragImage(C,0,0),this._previewContainer.appendChild(C)}}function tb(r){return it.isGecko?r.dropEffect:["all","copyMove"].includes(r.effectAllowed)?"move":"copy"}function eb(r){if(r.is("editableElement"))return null;if(r.hasClass("ck-widget__selection-handle"))return r.findAncestor(He);if(He(r))return r;const t=r.findAncestor(e=>He(e)||e.is("editableElement"));return He(t)?t:null}function ib(r,t){const e=t[0],n=t[t.length-1],s=e.getCommonAncestor(n),l=r.createPositionBefore(e),h=r.createPositionAfter(n);if(s&&s.is("element")&&!r.schema.isLimit(s)){const p=r.createRangeOn(s),b=l.isTouching(p.start),A=h.isTouching(p.end);if(b&&A)return ib(r,[s])}return r.createRange(l,h)}class _A extends Lt{static get pluginName(){return"PastePlainText"}static get requires(){return[fn]}init(){const t=this.editor,e=t.model,n=t.editing.view,s=n.document,l=e.document.selection;let h=!1;n.addObserver(Aa),this.listenTo(s,"keydown",(p,b)=>{h=b.shiftKey}),t.plugins.get(fn).on("contentInsertion",(p,b)=>{(h||function(A,C){if(A.childCount>1)return!1;const E=A.getChild(0);return!C.isObject(E)&&0==Array.from(E.getAttributeKeys()).length}(b.content,e.schema))&&e.change(A=>{const C=Array.from(l.getAttributes()).filter(([P])=>e.schema.getAttributeProperties(P).isFormatting);l.isCollapsed||e.deleteContent(l,{doNotAutoparagraph:!0}),C.push(...l.getAttributes());const E=A.createRangeIn(b.content);for(const P of E.getItems())P.is("$textProxy")&&A.setAttributes(C,P)})})}}class nb extends Lt{static get pluginName(){return"Clipboard"}static get requires(){return[fn,kA,_A]}}class wA extends Jt{constructor(t){super(t),this.affectsData=!1}execute(){const t=this.editor.model,e=t.document.selection;let n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!ob(t.schema,n))do{if(n=n.parent,!n)return}while(!ob(t.schema,n));t.change(s=>{s.setSelection(n,"in")})}}function ob(r,t){return r.isLimit(t)&&(r.checkChild(t,"$text")||r.checkChild(t,"paragraph"))}const AA=Vo("Ctrl+A");class xA extends Lt{static get pluginName(){return"SelectAllEditing"}init(){const t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new wA(t)),this.listenTo(e,"keydown",(n,s)=>{so(s)===AA&&(t.execute("selectAll"),s.preventDefault())})}}class CA extends Lt{static get pluginName(){return"SelectAllUI"}init(){const t=this.editor;t.ui.componentFactory.add("selectAll",e=>{const n=t.commands.get("selectAll"),s=new ve(e);return s.set({label:(0,e.t)("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),s.bind("isEnabled").to(n,"isEnabled"),this.listenTo(s,"execute",()=>{t.execute("selectAll"),t.editing.view.focus()}),s})}}class yA extends Lt{static get requires(){return[xA,CA]}static get pluginName(){return"SelectAll"}}var EA=Object.defineProperty,rb=Object.getOwnPropertySymbols,TA=Object.prototype.hasOwnProperty,SA=Object.prototype.propertyIsEnumerable,sb=(r,t,e)=>t in r?EA(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class ab extends Jt{constructor(t){super(t),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(t.data,"set",(e,n)=>{n[1]=((l,h)=>{for(var p in h||(h={}))TA.call(h,p)&&sb(l,p,h[p]);if(rb)for(var p of rb(h))SA.call(h,p)&&sb(l,p,h[p]);return l})({},n[1]);const s=n[1];s.batchType||(s.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(t.data,"set",(e,n)=>{n[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(t){const e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(t,e,n){const s=this.editor.model,l=s.document,h=[],p=t.map(A=>A.getTransformedByOperations(n)),b=p.flat();for(const A of p){const C=A.filter(E=>E.root!=l.graveyard).filter(E=>!DA(E,b));C.length&&(IA(C),h.push(C[0]))}h.length&&s.change(A=>{A.setSelection(h,{backward:e})})}_undo(t,e){const n=this.editor.model,s=n.document;this._createdBatches.add(e);const l=t.operations.slice().filter(h=>h.isDocumentOperation);l.reverse();for(const h of l){const b=Array.from(s.history.getOperations(h.baseVersion+1)),A=C_([h.getReversed()],b,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let C of A){const E=C.affectedSelectable;E&&!n.canEditAt(E)&&(C=new Ve(C.baseVersion)),e.addOperation(C),n.applyOperation(C),s.history.setOperationAsUndone(h,C)}}}}function IA(r){r.sort((t,e)=>t.start.isBefore(e.start)?-1:1);for(let t=1;te!==r&&e.containsRange(r,!0))}class MA extends ab{execute(t=null){const e=t?this._stack.findIndex(l=>l.batch==t):this._stack.length-1,n=this._stack.splice(e,1)[0],s=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(s,()=>{this._undo(n.batch,s);const l=this.editor.model.document.history.getOperations(n.batch.baseVersion);this._restoreSelection(n.selection.ranges,n.selection.isBackward,l)}),this.fire("revert",n.batch,s),this.refresh()}}class LA extends ab{execute(){const t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,()=>{const s=this.editor.model.document.history.getOperations(t.batch.operations[t.batch.operations.length-1].baseVersion+1);this._restoreSelection(t.selection.ranges,t.selection.isBackward,s),this._undo(t.batch,e)}),this.refresh()}}class PA extends Lt{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const t=this.editor;this._undoCommand=new MA(t),this._redoCommand=new LA(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(e,n)=>{const s=n[0];if(!s.isDocumentOperation)return;const l=s.batch,h=this._redoCommand.createdBatches.has(l),p=this._undoCommand.createdBatches.has(l);this._batchRegistry.has(l)||(this._batchRegistry.add(l),l.isUndoable&&(h?this._undoCommand.addBatch(l):p||(this._undoCommand.addBatch(l),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(e,n,s)=>{this._redoCommand.addBatch(s)}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}const lb='',cb='';class NA extends Lt{static get pluginName(){return"UndoUI"}init(){const t=this.editor,e=t.locale,n=t.t,s="ltr"==e.uiLanguageDirection?lb:cb,l="ltr"==e.uiLanguageDirection?cb:lb;this._addButton("undo",n("Undo"),"CTRL+Z",s),this._addButton("redo",n("Redo"),"CTRL+Y",l)}_addButton(t,e,n,s){const l=this.editor;l.ui.componentFactory.add(t,h=>{const p=l.commands.get(t),b=new ve(h);return b.set({label:e,icon:s,keystroke:n,tooltip:!0}),b.bind("isEnabled").to(p,"isEnabled"),this.listenTo(b,"execute",()=>{l.execute(t),l.editing.view.focus()}),b})}}class db extends Lt{static get requires(){return[PA,NA]}static get pluginName(){return"Undo"}}class OA extends(ne()){constructor(){super();const t=new window.FileReader;this._reader=t,this._data=void 0,this.set("loaded",0),t.onprogress=e=>{this.loaded=e.loaded}}get error(){return this._reader.error}get data(){return this._data}read(t){const e=this._reader;return this.total=t.size,new Promise((n,s)=>{e.onload=()=>{const l=e.result;this._data=l,n(l)},e.onerror=()=>{s("error")},e.onabort=()=>{s("aborted")},this._reader.readAsDataURL(t)})}abort(){this._reader.abort()}}class sn extends Lt{constructor(){super(...arguments),this.loaders=new di,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[em]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(t,e)=>e?t/e*100:0)}getLoader(t){return this._loadersMap.get(t)||null}createLoader(t){if(!this.createUploadAdapter)return kt("filerepository-no-upload-adapter"),null;const e=new hb(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then(n=>{this._loadersMap.set(n,e)}).catch(()=>{}),e.on("change:uploaded",()=>{let n=0;for(const s of this.loaders)n+=s.uploaded;this.uploaded=n}),e.on("change:uploadTotal",()=>{let n=0;for(const s of this.loaders)s.uploadTotal&&(n+=s.uploadTotal);this.uploadTotal=n}),e}destroyLoader(t){const e=t instanceof hb?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach((n,s)=>{n===e&&this._loadersMap.delete(s)})}_updatePendingAction(){const t=this.editor.plugins.get(em);if(this.loaders.length){if(!this._pendingAction){const e=this.editor.t,n=s=>`${e("Upload in progress")} ${parseInt(s)}%.`;this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}class hb extends(ne()){constructor(t,e){super(),this.id=Mt(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=e(this),this._reader=new OA,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(n,s)=>s?n/s*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(t=>this._filePromiseWrapper?t:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new W("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(t=>this._reader.read(t)).then(t=>{if("reading"!==this.status)throw this.status;return this.status="idle",t}).catch(t=>{throw"aborted"===t?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:t)})}upload(){if("idle"!=this.status)throw new W("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(t=>(this.uploadResponse=t,this.status="idle",t)).catch(t=>{throw"aborted"===this.status?"aborted":(this.status="error",t)})}abort(){const t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(t){const e={};return e.promise=new Promise((n,s)=>{e.rejecter=s,e.isFulfilled=!1,t.then(l=>{e.isFulfilled=!0,n(l)}).catch(l=>{e.isFulfilled=!0,s(l)})}),e}}class BA extends ve{constructor(t){super(t),this.buttonView=this,this._fileInputView=new FA(t),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.on("execute",()=>{this._fileInputView.open()}),this.extendTemplate({attributes:{class:"ck-file-dialog-button"}})}render(){super.render(),this.children.add(this._fileInputView)}}class FA extends Wt{constructor(t){super(t),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const e=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const ub="ckCsrfToken";class RA{constructor(t,e,n){this.loader=t,this.url=e,this.t=n}upload(){return this.loader.file.then(t=>new Promise((e,n)=>{this._initRequest(),this._initListeners(e,n,t),this._sendRequest(t)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}_initListeners(t,e,n){const s=this.xhr,l=this.loader,h=(0,this.t)("Cannot upload file:")+` ${n.name}.`;s.addEventListener("error",()=>e(h)),s.addEventListener("abort",()=>e()),s.addEventListener("load",()=>{const p=s.response;if(!p||!p.uploaded)return e(p&&p.error&&p.error.message?p.error.message:h);t({default:p.url})}),s.upload&&s.upload.addEventListener("progress",p=>{p.lengthComputable&&(l.uploadTotal=p.total,l.uploaded=p.loaded)})}_sendRequest(t){const e=new FormData;e.append("upload",t),e.append("ckCsrfToken",function zA(){let r=function(n){n=n.toLowerCase();const s=document.cookie.split(";");for(const l of s){const h=l.split("=");if(decodeURIComponent(h[0].trim().toLowerCase())===n)return decodeURIComponent(h[1])}return null}(ub);var e;return r&&40==r.length||(r=function(n){let s="";const l=new Uint8Array(40);window.crypto.getRandomValues(l);for(let h=0;h.5?p.toUpperCase():p}return s}(),e=r,document.cookie=encodeURIComponent(ub)+"="+encodeURIComponent(e)+";path=/"),r}()),this.xhr.send(e)}}function Ao(r,t,e,n){let s,l=null;"function"==typeof n?s=n:(l=r.commands.get(n),s=()=>{r.execute(n)}),r.model.document.on("change:data",(h,p)=>{if(l&&!l.isEnabled||!t.isEnabled)return;const b=Oe(r.model.document.selection.getRanges());if(!b.isCollapsed||p.isUndo||!p.isLocal)return;const A=Array.from(r.model.document.differ.getChanges()),C=A[0];if(1!=A.length||"insert"!==C.type||"$text"!=C.name||1!=C.length)return;const E=C.position.parent;if(E.is("element","codeBlock")||E.is("element","listItem")&&"function"!=typeof n&&!["numberedList","bulletedList","todoList"].includes(n)||l&&!0===l.value)return;const P=E.getChild(0),F=r.model.createRangeOn(P);if(!F.containsRange(b)&&!b.end.isEqual(F.end))return;const j=e.exec(P.data.substr(0,b.end.offset));j&&r.model.enqueueChange(Y=>{const $=Y.createPositionAt(E,0),st=Y.createPositionAt(E,j[0].length),ft=new Ni($,st);if(!1!==s({match:j})){Y.remove(ft);const At=r.model.document.selection.getFirstRange(),Ft=Y.createRangeIn(E);!E.isEmpty||Ft.isEqual(At)||Ft.containsRange(At,!0)||Y.remove(E)}ft.detach(),r.model.enqueueChange(()=>{r.plugins.get("Delete").requestUndoOnBackspace()})})})}function Kr(r,t,e,n){let s,l;e instanceof RegExp?s=e:l=e,l=l||(h=>{let p;const b=[],A=[];for(;null!==(p=s.exec(h))&&!(p&&p.length<4);){let{index:C,1:E,2:P,3:F}=p;C+=p[0].length-(E+P+F).length;const $=[C+E.length+P.length,C+E.length+P.length+F.length];b.push([C,C+E.length]),b.push($),A.push([C+E.length,C+E.length+P.length])}return{remove:b,format:A}}),r.model.document.on("change:data",(h,p)=>{if(p.isUndo||!p.isLocal||!t.isEnabled)return;const b=r.model,A=b.document.selection;if(!A.isCollapsed)return;const C=Array.from(b.document.differ.getChanges()),E=C[0];if(1!=C.length||"insert"!==E.type||"$text"!=E.name||1!=E.length)return;const P=A.focus,F=P.parent,{text:j,range:Y}=function(At,Ft){let jt=At.start;return{text:Array.from(At.getItems()).reduce((ce,ze)=>!ze.is("$text")&&!ze.is("$textProxy")||ze.getAttribute("code")?(jt=Ft.createPositionAfter(ze),""):ce+ze.data,""),range:Ft.createRange(jt,At.end)}}(b.createRange(b.createPositionAt(F,0),P),b),$=l(j),st=gb(Y.start,$.format,b),ft=gb(Y.start,$.remove,b);st.length&&ft.length&&b.enqueueChange(At=>{if(!1!==n(At,st)){for(const Ft of ft.reverse())At.remove(Ft);b.enqueueChange(()=>{r.plugins.get("Delete").requestUndoOnBackspace()})}})})}function gb(r,t,e){return t.filter(n=>void 0!==n[0]&&void 0!==n[1]).map(n=>e.createRange(r.getShiftedBy(n[0]),r.getShiftedBy(n[1])))}function Xc(r,t){return(e,n)=>{if(!r.commands.get(t).isEnabled)return!1;const s=r.model.schema.getValidRanges(n,t);for(const l of s)e.setAttribute(t,!0,l);e.removeSelectionAttribute(t)}}class mb extends Jt{constructor(t,e){super(t),this.attributeKey=e}refresh(){const t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}execute(t={}){const e=this.editor.model,n=e.document.selection,s=void 0===t.forceValue?!this.value:t.forceValue;e.change(l=>{if(n.isCollapsed)s?l.setSelectionAttribute(this.attributeKey,!0):l.removeSelectionAttribute(this.attributeKey);else{const h=e.schema.getValidRanges(n.getRanges(),this.attributeKey);for(const p of h)s?l.setAttribute(this.attributeKey,s,p):l.removeAttribute(this.attributeKey,p)}})}_getValueFromFirstAllowedNode(){const t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);for(const s of n.getRanges())for(const l of s.getItems())if(e.checkAttribute(l,this.attributeKey))return l.hasAttribute(this.attributeKey);return!1}}const Jr="bold";class ZA extends Lt{static get pluginName(){return"BoldEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:Jr}),t.model.schema.setAttributeProperties(Jr,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Jr,view:"strong",upcastAlso:["b",e=>{const n=e.getStyle("font-weight");return n&&("bold"==n||Number(n)>=600)?{name:!0,styles:["font-weight"]}:null}]}),t.commands.add(Jr,new mb(t,Jr)),t.keystrokes.set("CTRL+B",Jr)}}const tp="bold";class UA extends Lt{static get pluginName(){return"BoldUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(tp,n=>{const s=t.commands.get(tp),l=new ve(n);return l.set({label:e("Bold"),icon:Ae.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute(tp),t.editing.view.focus()}),l})}}var fb=lt(8603);Rt()(fb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const $r="italic";class VA extends Lt{static get pluginName(){return"ItalicEditing"}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:$r}),t.model.schema.setAttributeProperties($r,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:$r,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add($r,new mb(t,$r)),t.keystrokes.set("CTRL+I",$r)}}const ep="italic";class qA extends Lt{static get pluginName(){return"ItalicUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add(ep,n=>{const s=t.commands.get(ep),l=new ve(n);return l.set({label:e("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute(ep),t.editing.view.focus()}),l})}}class YA extends Jt{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,n=e.schema,l=Array.from(e.document.selection.getSelectedBlocks()),h=void 0===t.forceValue?!this.value:t.forceValue;e.change(p=>{if(h){const b=l.filter(A=>Kc(A)||vb(n,A));this._applyQuote(p,b)}else this._removeQuote(p,l.filter(Kc))})}_getValue(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!Kc(t))}_checkEnabled(){if(this.value)return!0;const e=this.editor.model.schema,n=Oe(this.editor.model.document.selection.getSelectedBlocks());return!!n&&vb(e,n)}_removeQuote(t,e){bb(t,e).reverse().forEach(n=>{if(n.start.isAtStart&&n.end.isAtEnd)return void t.unwrap(n.start.parent);if(n.start.isAtStart){const l=t.createPositionBefore(n.start.parent);return void t.move(n,l)}n.end.isAtEnd||t.split(n.end);const s=t.createPositionAfter(n.end.parent);t.move(n,s)})}_applyQuote(t,e){const n=[];bb(t,e).reverse().forEach(s=>{let l=Kc(s.start);l||(l=t.createElement("blockQuote"),t.wrap(s,l)),n.push(l)}),n.reverse().reduce((s,l)=>s.nextSibling==l?(t.merge(t.createPositionAfter(s)),s):l)}}function Kc(r){return"blockQuote"==r.parent.name?r.parent:null}function bb(r,t){let e,n=0;const s=[];for(;n{const p=t.model.document.differ.getChanges();for(const b of p)if("insert"==b.type){const A=b.position.nodeAfter;if(!A)continue;if(A.is("element","blockQuote")&&A.isEmpty)return h.remove(A),!0;if(A.is("element","blockQuote")&&!e.checkChild(b.position,A))return h.unwrap(A),!0;if(A.is("element")){const C=h.createRangeIn(A);for(const E of C.getItems())if(E.is("element","blockQuote")&&!e.checkChild(h.createPositionBefore(E),E))return h.unwrap(E),!0}}else if("remove"==b.type){const A=b.position.parent;if(A.is("element","blockQuote")&&A.isEmpty)return h.remove(A),!0}return!1});const n=this.editor.editing.view.document,s=t.model.document.selection,l=t.commands.get("blockQuote");this.listenTo(n,"enter",(h,p)=>{!s.isCollapsed||!l.value||s.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),p.preventDefault(),h.stop())},{context:"blockquote"}),this.listenTo(n,"delete",(h,p)=>{if("backward"!=p.direction||!s.isCollapsed||!l.value)return;const b=s.getLastPosition().parent;b.isEmpty&&!b.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),p.preventDefault(),h.stop())},{context:"blockquote"})}}var kb=lt(3062);Rt()(kb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class WA extends Lt{static get pluginName(){return"BlockQuoteUI"}init(){const t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",n=>{const s=t.commands.get("blockQuote"),l=new ve(n);return l.set({label:e("Block quote"),icon:Ae.quote,tooltip:!0,isToggleable:!0}),l.bind("isOn","isEnabled").to(s,"value","isEnabled"),this.listenTo(l,"execute",()=>{t.execute("blockQuote"),t.editing.view.focus()}),l})}}class QA extends Lt{static get pluginName(){return"CKBoxUI"}afterInit(){const t=this.editor,e=t.commands.get("ckbox");if(!e)return;const n=t.t;if(t.ui.componentFactory.add("ckbox",s=>{const l=new ve(s);return l.set({label:n("Open file manager"),icon:'',tooltip:!0}),l.bind("isOn","isEnabled").to(e,"value","isEnabled"),l.on("execute",()=>{t.execute("ckbox")}),l}),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI");s.registerIntegration({name:"assetManager",observable:e,buttonViewCreator:()=>{const l=this.editor.ui.componentFactory.create("ckbox");return l.icon=Ae.imageAssetManager,l.bind("label").to(s,"isImageSelected",h=>n(h?"Replace image with file manager":"Insert image with file manager")),l},formViewCreator:()=>{const l=this.editor.ui.componentFactory.create("ckbox");return l.icon=Ae.imageAssetManager,l.withText=!0,l.bind("label").to(s,"isImageSelected",h=>n(h?"Replace with file manager":"Insert with file manager")),l.on("execute",()=>{s.dropdownView.isOpen=!1}),l}})}}}var XA=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","#","$","%","*","+",",","-",".",":",";","=","?","@","[","]","^","_","{","|","}","~"],Ta=r=>{let t=0;for(let e=0;e{let t=r/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},np=r=>{let t=Math.max(0,Math.min(1,r));return t<=.0031308?Math.trunc(12.92*t*255+.5):Math.trunc(255*(1.055*Math.pow(t,.4166666666666667)-.055)+.5)},op=(r,t)=>(r<0?-1:1)*Math.pow(Math.abs(r),t),_b=class extends Error{constructor(r){super(r),this.name="ValidationError",this.message=r}},JA=r=>{let t=r>>8&255,e=255&r;return[ip(r>>16),ip(t),ip(e)]},$A=(r,t)=>{let e=Math.floor(r/361),n=Math.floor(r/19)%19,s=r%19;return[op((e-9)/9,2)*t,op((n-9)/9,2)*t,op((s-9)/9,2)*t]},ex=Object.defineProperty,wb=Object.getOwnPropertySymbols,ix=Object.prototype.hasOwnProperty,nx=Object.prototype.propertyIsEnumerable,Ab=(r,t,e)=>t in r?ex(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;function xb(r){const t=[];let e=0;for(const s in r){const l=parseInt(s,10);isNaN(l)||(l>e&&(e=l),t.push(`${r[s]} ${s}w`))}const n=[{srcset:t.join(","),sizes:`(max-width: ${e}px) 100vw, ${e}px`,type:"image/webp"}];return{imageFallbackUrl:r.default,imageSources:n}}function Cb({url:r,method:t="GET",data:e,onUploadProgress:n,signal:s,authorization:l}){const h=new XMLHttpRequest;h.open(t,r.toString()),h.setRequestHeader("Authorization",l),h.setRequestHeader("CKBox-Version","CKEditor 5"),h.responseType="json";const p=()=>{h.abort()};return new Promise((b,A)=>{s.throwIfAborted(),s.addEventListener("abort",p),h.addEventListener("loadstart",()=>{s.addEventListener("abort",p)}),h.addEventListener("loadend",()=>{s.removeEventListener("abort",p)}),h.addEventListener("error",()=>{A()}),h.addEventListener("abort",()=>{A()}),h.addEventListener("load",()=>{const C=h.response;if(!C||C.statusCode>=400)return A(C&&C.message);b(C)}),n&&h.upload.addEventListener("progress",C=>{n(C)}),h.send(e)})}const ox={"image/gif":"gif","image/jpeg":"jpg","image/png":"png","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"};var sx=Object.defineProperty,yb=Object.getOwnPropertySymbols,ax=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,Eb=(r,t,e)=>t in r?sx(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Tb=(r,t)=>{for(var e in t||(t={}))ax.call(t,e)&&Eb(r,e,t[e]);if(yb)for(var e of yb(t))lx.call(t,e)&&Eb(r,e,t[e]);return r};class cx extends Jt{constructor(t){super(t),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");return!(!t.isEnabled&&!e.isEnabled)}_prepareOptions(){const t=this.editor.config.get("ckbox");return{theme:t.theme,language:t.language,tokenUrl:t.tokenUrl,serviceOrigin:t.serviceOrigin,forceDemoLabel:t.forceDemoLabel,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:e=>this.fire("ckbox:choose",e)}}}_initListeners(){const t=this.editor,e=t.model,n=!t.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=yn(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null,t.editing.view.focus())}),this.on("ckbox:choose",(s,l)=>{if(!this.isEnabled)return;const h=t.commands.get("insertImage"),p=t.commands.get("link"),b=function({assets:C,isImageAllowed:E,isLinkAllowed:P}){return C.map(F=>function(j){const Y=j.data.metadata;return!!Y&&Y.width&&Y.height}(F)?{id:F.data.id,type:"image",attributes:dx(F)}:{id:F.data.id,type:"link",attributes:hx(F)}).filter(F=>"image"===F.type?E:P)}({assets:l,isImageAllowed:h.isEnabled,isLinkAllowed:p.isEnabled}),A=b.length;0!==A&&(e.change(C=>{for(const E of b)this._insertAsset(E,E===b[A-1],C,1===A),n&&(setTimeout(()=>this._chosenAssets.delete(E),1e3),this._chosenAssets.add(E))}),t.editing.view.focus())}),this.listenTo(t,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(t,e,n,s){const l=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),"image"===t.type?this._insertImage(t):this._insertLink(t,n,s),e||n.setSelection(l.getLastPosition())}_insertImage(t){const e=this.editor,{imageFallbackUrl:n,imageSources:s,imageTextAlternative:l,imageWidth:h,imageHeight:p,imagePlaceholder:b}=t.attributes;e.execute("insertImage",{source:Tb({src:n,sources:s,alt:l,width:h,height:p},b?{placeholder:b}:null)})}_insertLink(t,e,n){const s=this.editor,l=s.model,h=l.document.selection,{linkName:p,linkHref:b}=t.attributes;if(h.isCollapsed){const A=ri(h.getAttributes()),C=e.createText(p,A);if(!n){const P=h.getLastPosition(),F=P.parent;"paragraph"===F.name&&F.isEmpty||s.execute("insertParagraph",{position:P});const j=l.insertContent(C);return e.setSelection(j),void s.execute("link",b)}const E=l.insertContent(C);e.setSelection(E)}s.execute("link",b)}}function dx(r){const{imageFallbackUrl:t,imageSources:e}=xb(r.data.imageUrls),{description:n,width:s,height:l,blurHash:h}=r.data.metadata,p=function(b){if(b)try{const A="32px",C=document.createElement("canvas");C.setAttribute("width",A),C.setAttribute("height",A);const E=C.getContext("2d");if(!E)return;const P=E.createImageData(32,32),F=((r,t,e,n)=>{(r=>{if(!r||r.length<6)throw new _b("The blurhash string must be at least 6 characters");let t=Ta(r[0]),e=Math.floor(t/9)+1,n=t%9+1;if(r.length!==4+2*n*e)throw new _b(`blurhash length mismatch: length is ${r.length} but it should be ${4+2*n*e}`)})(r),n|=1;let s=Ta(r[0]),l=Math.floor(s/9)+1,h=s%9+1,p=(Ta(r[1])+1)/166,b=new Array(h*l);for(let E=0;Enew Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class Sb extends Lt{static get pluginName(){return"CKBoxUtils"}static get requires(){return["CloudServices"]}init(){return rp(this,null,function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;t.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:t.locale.uiLanguage,theme:"lark",tokenUrl:t.config.get("cloudServices.tokenUrl")});const s=t.plugins.get("CloudServices"),l=t.config.get("cloudServices.tokenUrl"),h=t.config.get("ckbox.tokenUrl");if(!h)throw new W("ckbox-plugin-missing-token-url",this);this._token=h==l?s.token:yield s.registerTokenUrl(h)})}getToken(){return this._token}getWorkspaceId(){const t=(0,this.editor.t)("Cannot access default workspace."),e=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),n=function(s,l){const[,h]=s.value.split("."),p=JSON.parse(atob(h)),b=p.auth&&p.auth.ckbox&&p.auth.ckbox.workspaces||[p.aud];return l?"superadmin"==(p.auth&&p.auth.ckbox&&p.auth.ckbox.role)||b.includes(l)?l:null:b[0]}(this._token,e);if(null==n)throw Pt("ckbox-access-default-workspace-error"),t;return n}getCategoryIdForFile(t,e){return rp(this,null,function*(){const n=(0,this.editor.t)("Cannot determine a category for the uploaded file."),s=this.editor.config.get("ckbox.defaultUploadCategories"),l=this._getAvailableCategories(e),h="string"==typeof t?(p=yield function rx(r,t){return e=this,s=function*(){try{const l=yield fetch(r,((h,p)=>{for(var b in p||(p={}))ix.call(p,b)&&Ab(h,b,p[b]);if(wb)for(var b of wb(p))nx.call(p,b)&&Ab(h,b,p[b]);return h})({method:"HEAD",cache:"force-cache"},t));return l.ok&&l.headers.get("content-type")||""}catch{return""}},new Promise((l,h)=>{var p=C=>{try{A(s.next(C))}catch(E){h(E)}},b=C=>{try{A(s.throw(C))}catch(E){h(E)}},A=C=>C.done?l(C.value):Promise.resolve(C.value).then(p,b);A((s=s.apply(e,null)).next())});var e,s}(t,e),ox[p]):function(C){const E=C.name,P=new RegExp("\\.(?[^.]+)$");return E.match(P).groups.ext.toLowerCase()}(t);var p;const b=yield l;if(!b)throw n;if(s){const C=Object.keys(s).find(E=>s[E].find(P=>P.toLowerCase()==h));if(C){const E=b.find(P=>P.id===C||P.name===C);if(!E)throw n;return E.id}}const A=b.find(C=>C.extensions.find(E=>E.toLowerCase()==h));if(!A)throw n;return A.id})}_getAvailableCategories(t){return rp(this,null,function*(){const e=this.editor,n=this._token,{signal:s}=t,l=e.config.get("ckbox.serviceOrigin"),h=this.getWorkspaceId();try{const b=[];let A,C=0;do{const E=yield p(C);b.push(...E.items),A=E.totalCount-(C+50),C+=50}while(A>0);return b}catch{return s.throwIfAborted(),void Pt("ckbox-fetch-category-http-error")}function p(b){const A=new URL("categories",l);return A.searchParams.set("limit",50..toString()),A.searchParams.set("offset",b.toString()),A.searchParams.set("workspaceId",h),Cb({url:A,signal:s,authorization:n.value})}})}}var sp=(r,t,e)=>new Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class px extends Lt{static get requires(){return["ImageUploadEditing","ImageUploadProgress",sn,Ib]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return sp(this,null,function*(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!e&&!n)return;const s=t.plugins.get(sn),l=t.plugins.get(Sb);s.createUploadAdapter=b=>new gx(b,t,l);const h=!t.config.get("ckbox.ignoreDataId"),p=t.plugins.get("ImageUploadEditing");h&&p.on("uploadComplete",(b,{imageElement:A,data:C})=>{t.model.change(E=>{E.setAttribute("ckboxImageId",C.ckboxImageId,A)})})})}}class gx{constructor(t,e,n){this.loader=t,this.token=n.getToken(),this.ckboxUtils=n,this.editor=e,this.controller=new AbortController,this.serviceOrigin=e.config.get("ckbox.serviceOrigin")}upload(){return sp(this,null,function*(){const t=this.ckboxUtils,e=this.editor.t,n=yield this.loader.file,s=yield t.getCategoryIdForFile(n,{signal:this.controller.signal}),l=new URL("assets",this.serviceOrigin),h=new FormData;return l.searchParams.set("workspaceId",t.getWorkspaceId()),h.append("categoryId",s),h.append("file",n),Cb({method:"POST",url:l,data:h,onUploadProgress:p=>{p.lengthComputable&&(this.loader.uploadTotal=p.total,this.loader.uploaded=p.loaded)},signal:this.controller.signal,authorization:this.token.value}).then(p=>sp(this,null,function*(){const b=xb(p.imageUrls);return{ckboxImageId:p.id,default:b.imageFallbackUrl,sources:b.imageSources}})).catch(()=>{const p=e("Cannot upload file:")+` ${n.name}.`;return Promise.reject(p)})})}abort(){this.controller.abort()}}class Ib extends Lt{static get pluginName(){return"CKBoxEditing"}static get requires(){return["LinkEditing","PictureEditing",px,Sb]}init(){const t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;(e||n)&&(this._checkImagePlugins(),t.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),n&&t.commands.add("ckbox",new cx(t)))}_checkImagePlugins(){const t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||Pt("ckbox-plugin-image-feature-missing",t)}_initSchema(){const t=this.editor.model.schema;t.extend("$text",{allowAttributes:"ckboxLinkId"}),t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.addAttributeCheck((e,n)=>{if(!e.last.getAttribute("linkHref")&&"ckboxLinkId"===n)return!1})}_initConversion(){const t=this.editor;t.conversion.for("downcast").add(n=>{n.on("attribute:ckboxLinkId:imageBlock",(s,l,h)=>{const{writer:p,mapper:b,consumable:A}=h;if(!A.consume(l.item,s.name))return;const C=[...b.toViewElement(l.item).getChildren()].find(E=>"a"===E.name);C&&(l.item.hasAttribute("ckboxLinkId")?p.setAttribute("data-ckbox-resource-id",l.item.getAttribute("ckboxLinkId"),C):p.removeAttribute("data-ckbox-resource-id",C))},{priority:"low"}),n.on("attribute:ckboxLinkId",(s,l,h)=>{const{writer:p,mapper:b,consumable:A}=h;if(A.consume(l.item,s.name)){if(l.attributeOldValue){const C=Db(p,l.attributeOldValue);p.unwrap(b.toViewRange(l.range),C)}if(l.attributeNewValue){const C=Db(p,l.attributeNewValue);l.item.is("selection")?p.wrap(p.document.selection.getFirstRange(),C):p.wrap(b.toViewRange(l.range),C)}}},{priority:"low"})}),t.conversion.for("upcast").add(n=>{n.on("element:a",(s,l,h)=>{const{writer:p,consumable:b}=h;if(!l.viewItem.getAttribute("href")||!b.consume(l.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const A=l.viewItem.getAttribute("data-ckbox-resource-id");if(A)if(l.modelRange)for(let C of l.modelRange.getItems())C.is("$textProxy")&&(C=C.textNode),fx(C)&&p.setAttribute("ckboxLinkId",A,C);else p.setAttribute("ckboxLinkId",A,l.modelCursor.nodeBefore||l.modelCursor.parent)},{priority:"low"})}),t.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),t.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:n=>n.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}});const e=t.commands.get("replaceImageSource");e&&this.listenTo(e,"cleanupImage",(n,[s,l])=>{s.removeAttribute("ckboxImageId",l)})}_initFixers(){const t=this.editor,e=t.model,n=e.document.selection;var s;e.document.registerPostFixer((s=t,l=>{let h=!1;const p=s.model,b=s.commands.get("ckbox");if(!b)return h;for(const A of p.document.differ.getChanges()){if("insert"!==A.type&&"attribute"!==A.type)continue;const C="insert"===A.type?new wt(A.position,A.position.getShiftedBy(A.length)):A.range,E="attribute"===A.type&&"linkHref"===A.attributeKey&&null===A.attributeNewValue;for(const P of C.getItems()){if(E&&P.hasAttribute("ckboxLinkId")){l.removeAttribute("ckboxLinkId",P),h=!0;continue}const F=mx(P,b._chosenAssets);for(const j of F){const Y="image"===j.type?"ckboxImageId":"ckboxLinkId";j.id!==P.getAttribute(Y)&&(l.setAttribute(Y,j.id,P),h=!0)}}}return h})),e.document.registerPostFixer(function(s){return l=>!(s.hasAttribute("linkHref")||!s.hasAttribute("ckboxLinkId")||(l.removeSelectionAttribute("ckboxLinkId"),0))}(n))}}function mx(r,t){const e=r.is("element","imageInline")||r.is("element","imageBlock"),n=r.hasAttribute("linkHref");return[...t].filter(s=>"image"===s.type&&e?s.attributes.imageFallbackUrl===r.getAttribute("src"):"link"===s.type&&n?s.attributes.linkHref===r.getAttribute("linkHref"):void 0)}function Db(r,t){const e=r.createAttributeElement("a",{"data-ckbox-resource-id":t},{priority:5});return r.setCustomProperty("link",!0,e),e}function fx(r){return!!r.is("$text")||!(!r.is("element","imageInline")&&!r.is("element","imageBlock"))}var Mb=lt(443);Rt()(Mb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class vx extends Lt{static get pluginName(){return"CKFinderUI"}init(){const t=this.editor,n=t.t;if(t.ui.componentFactory.add("ckfinder",s=>{const l=t.commands.get("ckfinder"),h=new ve(s);return h.set({label:n("Insert image or file"),icon:'',tooltip:!0}),h.bind("isEnabled").to(l),h.on("execute",()=>{t.execute("ckfinder"),t.editing.view.focus()}),h}),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI"),l=t.commands.get("ckfinder");s.registerIntegration({name:"assetManager",observable:l,buttonViewCreator:()=>{const h=this.editor.ui.componentFactory.create("ckfinder");return h.icon=Ae.imageAssetManager,h.bind("label").to(s,"isImageSelected",p=>n(p?"Replace image with file manager":"Insert image with file manager")),h},formViewCreator:()=>{const h=this.editor.ui.componentFactory.create("ckfinder");return h.icon=Ae.imageAssetManager,h.withText=!0,h.bind("label").to(s,"isImageSelected",p=>n(p?"Replace with file manager":"Insert with file manager")),h.on("execute",()=>{s.dropdownView.isOpen=!1}),h}})}}}class kx extends Jt{constructor(t){super(t),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}execute(){const t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new W("ckfinder-unknown-openermethod",t);const n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;const s=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=l=>{s&&s(l),l.on("files:choose",h=>{const p=h.data.files.toArray(),b=p.filter(E=>!E.isImage()),A=p.filter(E=>E.isImage());for(const E of b)t.execute("link",E.getUrl());const C=[];for(const E of A){const P=E.getUrl();C.push(P||l.request("file:getProxyUrl",{file:E}))}C.length&&Lb(t,C)}),l.on("file:choose:resizedImage",h=>{const p=h.data.resizedUrl;if(p)Lb(t,[p]);else{const b=t.plugins.get("Notification"),A=t.locale.t;b.showWarning(A("Could not obtain resized image URL."),{title:A("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[e](n)}}function Lb(r,t){if(r.commands.get("insertImage").isEnabled)r.execute("insertImage",{source:t});else{const e=r.plugins.get("Notification"),n=r.locale.t;e.showWarning(n("Could not insert image at the current position."),{title:n("Inserting image failed"),namespace:"ckfinder"})}}class _x extends Lt{static get pluginName(){return"CKFinderEditing"}static get requires(){return[Hu,"LinkEditing"]}init(){const t=this.editor;if(!t.plugins.has("ImageBlockEditing")&&!t.plugins.has("ImageInlineEditing"))throw new W("ckfinder-missing-image-plugin",t);t.commands.add("ckfinder",new kx(t))}}class wx extends Lt{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",sn]}init(){const t=this.editor,e=t.plugins.get("CloudServices"),n=e.token,s=e.uploadUrl;if(!n)return;const l=t.plugins.get("CloudServicesCore");this._uploadGateway=l.createUploadGateway(n,s),t.plugins.get(sn).createUploadAdapter=h=>new Ax(this._uploadGateway,h)}}class Ax{constructor(t,e){this.uploadGateway=t,this.loader=e}upload(){return this.loader.file.then(t=>(this.fileUploader=this.uploadGateway.upload(t),this.fileUploader.on("progress",(e,n)=>{this.loader.uploadTotal=n.total,this.loader.uploaded=n.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class xx extends Jt{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}refresh(){const t=this.editor.model,e=Oe(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Pb(e,t.schema)}execute(t={}){const e=this.editor.model,s=t.selection||e.document.selection;e.canEditAt(s)&&e.change(l=>{const h=s.getSelectedBlocks();for(const p of h)!p.is("element","paragraph")&&Pb(p,e.schema)&&l.rename(p,"paragraph")})}}function Pb(r,t){return t.checkChild(r.parent,"paragraph")&&!t.isObject(r)}class Cx extends Jt{constructor(t){super(t),this._isEnabledBasedOnSelection=!1}execute(t){const e=this.editor.model,n=t.attributes;let s=t.position;e.canEditAt(s)&&e.change(l=>{if(s=this._findPositionToInsertParagraph(s,l),!s)return;const h=l.createElement("paragraph");n&&e.schema.setAllowedAttributes(h,n,l),e.insertContent(h,s),l.setSelection(h,"in")})}_findPositionToInsertParagraph(t,e){const n=this.editor.model;if(n.schema.checkChild(t,"paragraph"))return t;const s=n.schema.findAllowedParent(t,"paragraph");if(!s)return null;const l=t.parent,h=n.schema.checkChild(l,"$text");return l.isEmpty||h&&t.isAtEnd?n.createPositionAfter(l):!l.isEmpty&&h&&t.isAtStart?n.createPositionBefore(l):e.split(t,s).position}}const Nb=class extends Lt{static get pluginName(){return"Paragraph"}init(){const r=this.editor,t=r.model;r.commands.add("paragraph",new xx(r)),r.commands.add("insertParagraph",new Cx(r)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),r.conversion.elementToElement({model:"paragraph",view:"p"}),r.conversion.for("upcast").elementToElement({model:(e,{writer:n})=>Nb.paragraphLikeElements.has(e.name)?e.isEmpty?null:n.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let ap=Nb;ap.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class yx extends Jt{constructor(t,e){super(t),this.modelElements=e}refresh(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some(e=>Ob(t,e,this.editor.model.schema))}execute(t){const e=this.editor.model,n=e.document,s=t.value;e.change(l=>{const h=Array.from(n.selection.getSelectedBlocks()).filter(p=>Ob(p,s,e.schema));for(const p of h)p.is("element",s)||l.rename(p,s)})}}function Ob(r,t,e){return e.checkChild(r.parent,t)&&!e.isObject(r)}const Bb="paragraph";class Ex extends Lt{static get pluginName(){return"HeadingEditing"}constructor(t){super(t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[ap]}init(){const t=this.editor,e=t.config.get("heading.options"),n=[];for(const s of e)"paragraph"!==s.model&&(t.model.schema.register(s.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(s),n.push(s.model));this._addDefaultH1Conversion(t),t.commands.add("heading",new yx(t,n))}afterInit(){const t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",(s,l)=>{const h=t.model.document.selection.getFirstPosition().parent;n.some(p=>h.is("element",p.model))&&!h.is("element",Bb)&&0===h.childCount&&l.writer.rename(h,Bb)})}_addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:It.low+1})}}var Fb=lt(8733);Rt()(Fb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Sx extends Lt{static get pluginName(){return"HeadingUI"}init(){const t=this.editor,e=t.t,n=function(h){const p=h.t,b={Paragraph:p("Paragraph"),"Heading 1":p("Heading 1"),"Heading 2":p("Heading 2"),"Heading 3":p("Heading 3"),"Heading 4":p("Heading 4"),"Heading 5":p("Heading 5"),"Heading 6":p("Heading 6")};return h.config.get("heading.options").map(A=>{const C=b[A.title];return C&&C!=A.title&&(A.title=C),A})}(t),s=e("Choose heading"),l=e("Heading");t.ui.componentFactory.add("heading",h=>{const p={},b=new di,A=t.commands.get("heading"),C=t.commands.get("paragraph"),E=[A];for(const F of n){const j={type:"button",model:new qm({label:F.title,class:F.class,role:"menuitemradio",withText:!0})};"paragraph"===F.model?(j.model.bind("isOn").to(C,"value"),j.model.set("commandName","paragraph"),E.push(C)):(j.model.bind("isOn").to(A,"value",Y=>Y===F.model),j.model.set({commandName:"heading",commandValue:F.model})),b.add(j),p[F.model]=F.title}const P=Zn(h);return hm(P,b,{ariaLabel:l,role:"menu"}),P.buttonView.set({ariaLabel:l,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:l}),P.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),P.bind("isEnabled").toMany(E,"isEnabled",(...F)=>F.some(j=>j)),P.buttonView.bind("label").to(A,"value",C,"value",(F,j)=>{const Y=F||j&&"paragraph";return"boolean"==typeof Y?s:p[Y]?p[Y]:s}),this.listenTo(P,"execute",F=>{const{commandName:j,commandValue:Y}=F.source;t.execute(j,Y?{value:Y}:void 0),t.editing.view.focus()}),P})}}function zb(r){return r.createContainerElement("figure",{class:"image"},[r.createEmptyElement("img"),r.createSlot("children")])}function Rb(r,t){const e=r.plugins.get("ImageUtils"),n=r.plugins.has("ImageInlineEditing")&&r.plugins.has("ImageBlockEditing");return l=>e.isInlineImageView(l)?n&&("block"==l.getStyle("display")||l.findAncestor(e.isBlockImageView)?"imageBlock":"imageInline")!==t?null:function s(l){const h={name:!0};return l.hasAttribute("src")&&(h.attributes=["src"]),h}(l):null}function lp(r,t){const e=Oe(t.getSelectedBlocks());return!e||r.isObject(e)||e.isEmpty&&"listItem"!=e.name?"imageBlock":"imageInline"}function Jc(r){return r&&r.endsWith("px")?parseInt(r):null}function Zb(r){const t=Jc(r.getStyle("width")),e=Jc(r.getStyle("height"));return!(!t||!e)}var Ix=Object.defineProperty,Ub=Object.getOwnPropertySymbols,Dx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,jb=(r,t,e)=>t in r?Ix(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Vb=(r,t)=>{for(var e in t||(t={}))Dx.call(t,e)&&jb(r,e,t[e]);if(Ub)for(var e of Ub(t))Mx.call(t,e)&&jb(r,e,t[e]);return r};const Lx=/^(image|image-inline)$/;class Ci extends Lt{constructor(){super(...arguments),this._domEmitter=new(bi())}static get pluginName(){return"ImageUtils"}isImage(t){return this.isInlineImage(t)||this.isBlockImage(t)}isInlineImageView(t){return!!t&&t.is("element","img")}isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}insertImage(t={},e=null,n=null,s={}){const l=this.editor,h=l.model,p=h.document.selection,b=qb(l,e||p,n);t=Vb(Vb({},Object.fromEntries(p.getAttributes())),t);for(const A in t)h.schema.checkAttribute(b,A)||delete t[A];return h.change(A=>{const{setImageSizes:C=!0}=s,E=A.createElement(b,t);return h.insertObject(E,e,null,{setSelection:"on",findOptimalPosition:e||"imageInline"==b?void 0:"auto"}),E.parent?(C&&this.setImageNaturalSizeAttributes(E),E):null})}setImageNaturalSizeAttributes(t){const e=t.getAttribute("src");e&&(t.getAttribute("width")||t.getAttribute("height")||this.editor.model.change(n=>{const s=new Yt.window.Image;this._domEmitter.listenTo(s,"load",()=>{t.getAttribute("width")||t.getAttribute("height")||this.editor.model.enqueueChange(n.batch,l=>{l.setAttribute("width",s.naturalWidth,t),l.setAttribute("height",s.naturalHeight,t)}),this._domEmitter.stopListening(s,"load")}),s.src=e}))}getClosestSelectedImageWidget(t){const e=t.getFirstPosition();if(!e)return null;const n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;let s=e.parent;for(;s;){if(s.is("element")&&this.isImageWidget(s))return s;s=s.parent}return null}getClosestSelectedImageElement(t){const e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(t){return t.findAncestor({classes:Lx})}isImageAllowed(){const t=this.editor.model.document.selection;return function(e,n){if("imageBlock"==qb(e,n,null)){const l=function(h,p){const A=zf(h,p).start.parent;return A.isEmpty&&!A.is("element","$root")?A.parent:A}(n,e.model);if(e.model.schema.checkChild(l,"imageBlock"))return!0}else if(e.model.schema.checkChild(n.focus,"imageInline"))return!0;return!1}(this.editor,t)&&[...t.focus.getAncestors()].every(n=>!n.is("element","imageBlock"))}toImageWidget(t,e,n){return e.setCustomProperty("image",!0,t),Ju(t,e,{label:()=>{const s=this.findViewImgElement(t).getAttribute("alt");return s?`${s} ${n}`:n}})}isImageWidget(t){return!!t.getCustomProperty("image")&&He(t)}isBlockImage(t){return!!t&&t.is("element","imageBlock")}isInlineImage(t){return!!t&&t.is("element","imageInline")}findViewImgElement(t){if(this.isInlineImageView(t))return t;const e=this.editor.editing.view;for(const{item:n}of e.createRangeIn(t))if(this.isInlineImageView(n))return n}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function qb(r,t,e){const n=r.model.schema,s=r.config.get("image.insert.type");return r.plugins.has("ImageBlockEditing")?r.plugins.has("ImageInlineEditing")?e||("inline"===s?"imageInline":"auto"!==s?"imageBlock":t.is("selection")?lp(n,t):n.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class Px extends Jt{refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.value=!(!this.isEnabled||!t.hasAttribute("alt"))&&t.getAttribute("alt")}execute(t){const e=this.editor,n=e.plugins.get("ImageUtils"),s=e.model,l=n.getClosestSelectedImageElement(s.document.selection);s.change(h=>{h.setAttribute("alt",t.newValue,l)})}}class Nx extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Px(this.editor))}}var Yb=lt(1905);Rt()(Yb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Hb=lt(6764);Rt()(Hb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Fx extends Wt{constructor(t){super(t);const e=this.locale.t;this.focusTracker=new Ye,this.keystrokes=new vi,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(e("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(e("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._focusables=new Ri,this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),L({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}_createLabeledInputView(){const t=this.locale.t,e=new Cr(this.locale,Pc);return e.label=t("Text alternative"),e}}function Gb(r){const t=r.editing.view,e=Ai.defaultPositions,n=r.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(n.getClosestSelectedImageWidget(t.document.selection)),positions:[e.northArrowSouth,e.northArrowSouthWest,e.northArrowSouthEast,e.southArrowNorth,e.southArrowNorthWest,e.southArrowNorthEast,e.viewportStickyNorth]}}class zx extends Lt{static get requires(){return[Rc]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",n=>{const s=t.commands.get("imageTextAlternative"),l=new ve(n);return l.set({label:e("Change image text alternative"),icon:Ae.textAlternative,tooltip:!0}),l.bind("isEnabled").to(s,"isEnabled"),l.bind("isOn").to(s,"value",h=>!!h),this.listenTo(l,"execute",()=>{this._showForm()}),l})}_createForm(){const t=this.editor,e=t.editing.view.document,n=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(ct(Fx))(t.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{t.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(s,l)=>{this._hideForm(!0),l()}),this.listenTo(t.ui,"update",()=>{n.getClosestSelectedImageWidget(e.selection)?this._isVisible&&function(s){const l=s.plugins.get("ContextualBalloon");if(s.plugins.get("ImageUtils").getClosestSelectedImageWidget(s.editing.view.document.selection)){const h=Gb(s);l.updatePosition(h)}}(t):this._hideForm(!0)}),et({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Gb(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(t=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class Wb extends Lt{static get requires(){return[Nx,zx]}static get pluginName(){return"ImageTextAlternative"}}function Qb(r,t){const e=(n,s,l)=>{if(!l.consumable.consume(s.item,n.name))return;const h=l.writer,p=l.mapper.toViewElement(s.item),b=r.findViewImgElement(p);null===s.attributeNewValue?(h.removeAttribute("srcset",b),h.removeAttribute("sizes",b)):s.attributeNewValue&&(h.setAttribute("srcset",s.attributeNewValue,b),h.setAttribute("sizes","100vw",b))};return n=>{n.on(`attribute:srcset:${t}`,e)}}function $c(r,t,e){const n=(s,l,h)=>{if(!h.consumable.consume(l.item,s.name))return;const p=h.writer,b=h.mapper.toViewElement(l.item),A=r.findViewImgElement(b);p.setAttribute(l.attributeKey,l.attributeNewValue||"",A)};return s=>{s.on(`attribute:${e}:${t}`,n)}}class Xb extends Vi{observe(t){this.listenTo(t,"load",(e,n)=>{const s=n.target;this.checkShouldIgnoreEventFromTarget(s)||"IMG"==s.tagName&&this._fireEvents(n)},{useCapture:!0})}stopObserving(t){this.stopListening(t)}_fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}var Rx=Object.defineProperty,Kb=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Ux=Object.prototype.propertyIsEnumerable,Jb=(r,t,e)=>t in r?Rx(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,td=(r,t)=>{for(var e in t||(t={}))Zx.call(t,e)&&Jb(r,e,t[e]);if(Kb)for(var e of Kb(t))Ux.call(t,e)&&Jb(r,e,t[e]);return r};class jx extends Jt{constructor(t){super(t);const e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||"block"===e&&kt("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===e&&kt("image-inline-plugin-required")}refresh(){const t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed()}execute(t){const e=Ze(t.source),n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageUtils"),l=Object.fromEntries(n.getAttributes());e.forEach((h,p)=>{const b=n.getSelectedElement();if("string"==typeof h&&(h={src:h}),p&&b&&s.isImage(b)){const A=this.editor.model.createPositionAfter(b);s.insertImage(td(td({},h),l),A)}else s.insertImage(td(td({},h),l))})}}class Vx extends Jt{constructor(t){super(t),this.decorate("cleanupImage")}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=t.isImage(e),this.value=this.isEnabled?e.getAttribute("src"):null}execute(t){const e=this.editor.model.document.selection.getSelectedElement(),n=this.editor.plugins.get("ImageUtils");this.editor.model.change(s=>{s.setAttribute("src",t.source,e),this.cleanupImage(s,e),n.setImageNaturalSizeAttributes(e)})}cleanupImage(t,e){t.removeAttribute("srcset",e),t.removeAttribute("sizes",e),t.removeAttribute("sources",e),t.removeAttribute("width",e),t.removeAttribute("height",e),t.removeAttribute("alt",e)}}class cp extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageEditing"}init(){const t=this.editor,e=t.conversion;t.editing.view.addObserver(Xb),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const n=new jx(t),s=new Vx(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",s),t.commands.add("imageInsert",n)}}class $b extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(t){const e=this.editor,n=e.plugins.get("ImageUtils"),s="imageBlock"===t?"figure":"img";function l(h,p,b,A){h.on(`attribute:${p}:${t}`,(C,E,P)=>{if(!P.consumable.consume(E.item,C.name))return;const F=P.writer,j=P.mapper.toViewElement(E.item),Y=n.findViewImgElement(j);if(null!==E.attributeNewValue?F.setAttribute(b,E.attributeNewValue,Y):F.removeAttribute(b,Y),E.item.hasAttribute("sources"))return;const $=E.item.hasAttribute("resizedWidth");if("imageInline"===t&&!$&&!A)return;const st=E.item.getAttribute("width"),ft=E.item.getAttribute("height");st&&ft&&F.setStyle("aspect-ratio",`${st}/${ft}`,Y)})}e.conversion.for("upcast").attributeToAttribute({view:{name:s,styles:{width:/.+/}},model:{key:"width",value:h=>Zb(h)?Jc(h.getStyle("width")):null}}).attributeToAttribute({view:{name:s,key:"width"},model:"width"}).attributeToAttribute({view:{name:s,styles:{height:/.+/}},model:{key:"height",value:h=>Zb(h)?Jc(h.getStyle("height")):null}}).attributeToAttribute({view:{name:s,key:"height"},model:"height"}),e.conversion.for("editingDowncast").add(h=>{l(h,"width","width",!0),l(h,"height","height",!0)}),e.conversion.for("dataDowncast").add(h=>{l(h,"width","width",!1),l(h,"height","height",!1)})}}class tv extends Jt{constructor(t,e){super(t),this._modelElementName=e}refresh(){const t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled="imageBlock"===this._modelElementName?t.isInlineImage(e):t.isBlockImage(e)}execute(t={}){const n=this.editor.model,s=this.editor.plugins.get("ImageUtils"),l=s.getClosestSelectedImageElement(n.document.selection),h=Object.fromEntries(l.getAttributes());return h.src||h.uploadId?n.change(p=>{const{setImageSizes:b=!0}=t,A=Array.from(n.markers).filter(P=>P.getRange().containsItem(l)),C=s.insertImage(h,n.createSelection(l,"on"),this._modelElementName,{setImageSizes:b});if(!C)return null;const E=p.createRangeOn(C);for(const P of A){const F=P.getRange(),j="$graveyard"!=F.root.rootName?F.getJoined(E,!0):E;p.updateMarker(P,{range:j})}return{oldElement:l,newElement:C}}):null}}var ev=lt(2873);Rt()(ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class iv extends Lt{static get requires(){return[Ci]}static get pluginName(){return"ImagePlaceholder"}afterInit(){this._setupSchema(),this._setupConversion(),this._setupLoadListener()}_setupSchema(){const t=this.editor.model.schema;t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["placeholder"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["placeholder"]})}_setupConversion(){const t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("editingDowncast").add(s=>{s.on("attribute:placeholder",(l,h,p)=>{if(!p.consumable.test(h.item,l.name)||!h.item.is("element","imageBlock")&&!h.item.is("element","imageInline"))return;p.consumable.consume(h.item,l.name);const b=p.writer,A=p.mapper.toViewElement(h.item),C=n.findViewImgElement(A);h.attributeNewValue?(b.addClass("image_placeholder",C),b.setStyle("background-image",`url(${h.attributeNewValue})`,C),b.setCustomProperty("editingPipeline:doNotReuseOnce",!0,C)):(b.removeClass("image_placeholder",C),b.removeStyle("background-image",C))})})}_setupLoadListener(){const t=this.editor,e=t.model,n=t.editing,s=n.view,l=t.plugins.get("ImageUtils");s.addObserver(Xb),this.listenTo(s.document,"imageLoaded",(h,p)=>{const b=s.domConverter.mapDomToView(p.target);if(!b)return;const A=l.getImageWidgetFromImageView(b);if(!A)return;const C=n.mapper.toModelElement(A);C&&C.hasAttribute("placeholder")&&e.enqueueChange({isUndoable:!1},E=>{E.removeAttribute("placeholder",C)})})}}class nv extends Lt{static get requires(){return[cp,$b,Ci,iv,fn]}static get pluginName(){return"ImageBlockEditing"}init(){const t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new tv(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,s=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:h})=>zb(h)}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:(l,{writer:h})=>s.toImageWidget(zb(h),h,e("image widget"))}),n.for("downcast").add($c(s,"imageBlock","src")).add($c(s,"imageBlock","alt")).add(Qb(s,"imageBlock")),n.for("upcast").elementToElement({view:Rb(t,"imageBlock"),model:(l,{writer:h})=>h.createElement("imageBlock",l.hasAttribute("src")?{src:l.getAttribute("src")}:void 0)}).add(function(l){const h=(p,b,A)=>{if(!A.consumable.test(b.viewItem,{name:!0,classes:"image"}))return;const C=l.findViewImgElement(b.viewItem);if(!C||!A.consumable.test(C,{name:!0}))return;A.consumable.consume(b.viewItem,{name:!0,classes:"image"});const E=Oe(A.convertItem(C,b.modelCursor).modelRange.getItems());E?(A.convertChildren(b.viewItem,E),A.updateConversionResult(E,b)):A.consumable.revert(b.viewItem,{name:!0,classes:"image"})};return p=>{p.on("element:figure",h)}}(s))}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,s=t.plugins.get("ImageUtils"),l=t.plugins.get("ClipboardPipeline");this.listenTo(l,"inputTransformation",(h,p)=>{const b=Array.from(p.content.getChildren());let A;if(!b.every(s.isInlineImageView))return;A=p.targetRanges?t.editing.mapper.toModelRange(p.targetRanges[0]):e.document.selection.getFirstRange();const C=e.createSelection(A);if("imageBlock"===lp(e.schema,C)){const E=new ko(n.document),P=b.map(F=>E.createElement("figure",{class:"image"},F));p.content=E.createDocumentFragment(P)}}),this.listenTo(l,"contentInsertion",(h,p)=>{"paste"===p.method&&e.change(b=>{const A=b.createRangeIn(p.content);for(const C of A.getItems())C.is("element","imageBlock")&&s.setImageNaturalSizeAttributes(C)})})}}var ov=lt(3535);Rt()(ov.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Hx extends Wt{constructor(t,e=[]){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri,this.children=this.createCollection(),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});for(const n of e)this.children.add(n),this._focusables.add(n),n instanceof y1&&this._focusables.addMany(n.children);if(this._focusables.length>1)for(const n of this._focusables)Gx(n)&&(n.focusCycler.on("forwardCycle",s=>{this._focusCycler.focusNext(),s.stop()}),n.focusCycler.on("backwardCycle",s=>{this._focusCycler.focusPrevious(),s.stop()}));this.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:-1},children:this.children})}render(){super.render(),L({view:this});for(const e of this._focusables)this.focusTracker.add(e.element);this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}}function Gx(r){return"focusCycler"in r}class rv extends Lt{constructor(t){super(t),this._integrations=new Map,t.config.define("image.insert.integrations",["upload","assetManager","url"])}static get pluginName(){return"ImageInsertUI"}static get requires(){return[Ci]}init(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("ImageUtils");this.set("isImageSelected",!1),this.listenTo(t.model.document,"change",()=>{this.isImageSelected=n.isImage(e.getSelectedElement())});const s=l=>this._createToolbarComponent(l);t.ui.componentFactory.add("insertImage",s),t.ui.componentFactory.add("imageInsert",s)}registerIntegration({name:t,observable:e,buttonViewCreator:n,formViewCreator:s,requiresForm:l}){this._integrations.has(t)&&kt("image-insert-integration-exists",{name:t}),this._integrations.set(t,{observable:e,buttonViewCreator:n,formViewCreator:s,requiresForm:!!l})}_createToolbarComponent(t){const e=this.editor,n=t.t,s=this._prepareIntegrations();if(!s.length)return null;let l;const h=s[0];if(1==s.length){if(!h.requiresForm)return h.buttonViewCreator(!0);l=h.buttonViewCreator(!0)}else{const A=h.buttonViewCreator(!1);l=new Lc(t,A),l.tooltip=!0,l.bind("label").to(this,"isImageSelected",C=>n(C?"Replace image":"Insert image"))}const p=this.dropdownView=Zn(t,l),b=s.map(({observable:A})=>A);return p.bind("isEnabled").toMany(b,"isEnabled",(...A)=>A.some(C=>C)),p.once("change:isOpen",()=>{const A=s.map(({formViewCreator:E})=>E(1==s.length)),C=new Hx(e.locale,A);p.panelView.children.add(C)}),p}_prepareIntegrations(){const t=this.editor.config.get("image.insert.integrations"),e=[];if(!t.length)return kt("image-insert-integrations-not-specified"),e;for(const n of t)this._integrations.has(n)?e.push(this._integrations.get(n)):["upload","assetManager","url"].includes(n)||kt("image-insert-unknown-integration",{item:n});return e.length||kt("image-insert-integrations-not-registered"),e}}var sv=lt(3508);Rt()(sv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Qx extends Lt{static get requires(){return[nv,Ea,Wb,rv]}static get pluginName(){return"ImageBlock"}}class Xx extends Lt{static get requires(){return[cp,$b,Ci,iv,fn]}static get pluginName(){return"ImageInlineEditing"}init(){const t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck((n,s)=>{if(n.endsWith("caption")&&"imageInline"===s.name)return!1}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new tv(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const t=this.editor,e=t.t,n=t.conversion,s=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:(l,{writer:h})=>h.createEmptyElement("img")}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:(l,{writer:h})=>{return s.toImageWidget((p=h).createContainerElement("span",{class:"image-inline"},p.createEmptyElement("img")),h,e("image widget"));var p}}),n.for("downcast").add($c(s,"imageInline","src")).add($c(s,"imageInline","alt")).add(Qb(s,"imageInline")),n.for("upcast").elementToElement({view:Rb(t,"imageInline"),model:(l,{writer:h})=>h.createElement("imageInline",l.hasAttribute("src")?{src:l.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const t=this.editor,e=t.model,n=t.editing.view,s=t.plugins.get("ImageUtils"),l=t.plugins.get("ClipboardPipeline");this.listenTo(l,"inputTransformation",(h,p)=>{const b=Array.from(p.content.getChildren());let A;if(!b.every(s.isBlockImageView))return;A=p.targetRanges?t.editing.mapper.toModelRange(p.targetRanges[0]):e.document.selection.getFirstRange();const C=e.createSelection(A);if("imageInline"===lp(e.schema,C)){const E=new ko(n.document),P=b.map(F=>1===F.childCount?(Array.from(F.getAttributes()).forEach(j=>E.setAttribute(...j,s.findViewImgElement(F))),F.getChild(0)):F);p.content=E.createDocumentFragment(P)}}),this.listenTo(l,"contentInsertion",(h,p)=>{"paste"===p.method&&e.change(b=>{const A=b.createRangeIn(p.content);for(const C of A.getItems())C.is("element","imageInline")&&s.setImageNaturalSizeAttributes(C)})})}}class Kx extends Lt{static get requires(){return[Xx,Ea,Wb,rv]}static get pluginName(){return"ImageInline"}}class av extends Lt{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Ci]}getCaptionFromImageModelElement(t){for(const e of t.getChildren())if(e&&e.is("element","caption"))return e;return null}getCaptionFromModelSelection(t){const e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null}matchImageCaptionViewElement(t){const e=this.editor.plugins.get("ImageUtils");return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}}class Jx extends Jt{refresh(){const t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(nv))return this.isEnabled=!1,void(this.value=!1);const s=t.model.document.selection,l=s.getSelectedElement();if(!l){const h=e.getCaptionFromModelSelection(s);return this.isEnabled=!!h,void(this.value=!!h)}this.isEnabled=n.isImage(l),this.value=!!this.isEnabled&&!!e.getCaptionFromImageModelElement(l)}execute(t={}){const{focusCaptionOnShow:e}=t;this.editor.model.change(n=>{this.value?this._hideImageCaption(n):this._showImageCaption(n,e)})}_showImageCaption(t,e){const n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageCaptionEditing"),l=this.editor.plugins.get("ImageUtils");let h=n.getSelectedElement();const p=s._getSavedCaption(h);l.isInlineImage(h)&&(this.editor.execute("imageTypeBlock"),h=n.getSelectedElement());const b=p||t.createElement("caption");t.append(b,h),e&&t.setSelection(b,"in")}_hideImageCaption(t){const e=this.editor,n=e.model.document.selection,s=e.plugins.get("ImageCaptionEditing"),l=e.plugins.get("ImageCaptionUtils");let h,p=n.getSelectedElement();p?h=l.getCaptionFromImageModelElement(p):(h=l.getCaptionFromModelSelection(n),p=h.parent),s._saveCaption(p,h),t.setSelection(p,"on"),t.remove(h)}}class $x extends Lt{constructor(t){super(t),this._savedCaptionsMap=new WeakMap}static get requires(){return[Ci,av]}static get pluginName(){return"ImageCaptionEditing"}init(){const t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new Jx(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),s=t.plugins.get("ImageCaptionUtils"),l=t.t;t.conversion.for("upcast").elementToElement({view:h=>s.matchImageCaptionViewElement(h),model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:(h,{writer:p})=>n.isBlockImage(h.parent)?p.createContainerElement("figcaption"):null}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:(h,{writer:p})=>{if(!n.isBlockImage(h.parent))return null;const b=p.createEditableElement("figcaption");p.setCustomProperty("imageCaption",!0,b),b.placeholder=l("Enter image caption"),Wl({view:e,element:b,keepOnFocus:!0});const A=h.parent.getAttribute("alt");return Ff(b,p,{label:A?l("Caption for image: %0",[A]):l("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),s=t.commands.get("imageTypeInline"),l=t.commands.get("imageTypeBlock"),h=p=>{if(!p.return)return;const{oldElement:b,newElement:A}=p.return;if(!b)return;if(e.isBlockImage(b)){const E=n.getCaptionFromImageModelElement(b);if(E)return void this._saveCaption(A,E)}const C=this._getSavedCaption(b);C&&this._saveCaption(A,C)};s&&this.listenTo(s,"execute",h,{priority:"low"}),l&&this.listenTo(l,"execute",h,{priority:"low"})}_getSavedCaption(t){const e=this._savedCaptionsMap.get(t);return e?me.fromJSON(e):null}_saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON())}_registerCaptionReconversion(){const t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),s=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",()=>{const l=e.document.differ.getChanges();for(const h of l){if("alt"!==h.attributeKey)continue;const p=h.range.start.nodeAfter;if(n.isBlockImage(p)){const b=s.getCaptionFromImageModelElement(p);if(!b)return;t.editing.reconvertItem(b)}}})}}class tC extends Lt{static get requires(){return[av]}static get pluginName(){return"ImageCaptionUI"}init(){const t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),s=t.t;t.ui.componentFactory.add("toggleImageCaption",l=>{const h=t.commands.get("toggleImageCaption"),p=new ve(l);return p.set({icon:Ae.caption,tooltip:!0,isToggleable:!0}),p.bind("isOn","isEnabled").to(h,"value","isEnabled"),p.bind("label").to(h,"value",b=>s(b?"Toggle caption off":"Toggle caption on")),this.listenTo(p,"execute",()=>{t.execute("toggleImageCaption",{focusCaptionOnShow:!0});const b=n.getCaptionFromModelSelection(t.model.document.selection);if(b){const A=t.editing.mapper.toViewElement(b);e.scrollToTheSelection(),e.change(C=>{C.addClass("image__caption_highlighted",A)})}t.editing.view.focus()}),p})}}var lv=lt(2640);function cv(r){const t=r.map(e=>e.replace("+","\\+"));return new RegExp(`^image\\/(${t.join("|")})$`)}function iC(r){return new Promise((t,e)=>{const n=r.getAttribute("src");fetch(n).then(s=>s.blob()).then(s=>{const l=dv(s,n),h=l.replace("image/",""),p=new File([s],`image.${h}`,{type:l});t(p)}).catch(s=>{return s&&"TypeError"===s.name?(l=n,(h=l,new Promise((p,b)=>{const A=Yt.document.createElement("img");A.addEventListener("load",()=>{const C=Yt.document.createElement("canvas");C.width=A.width,C.height=A.height,C.getContext("2d").drawImage(A,0,0),C.toBlob(E=>E?p(E):b())}),A.addEventListener("error",()=>b()),A.src=h})).then(h=>{const p=dv(h,l),b=p.replace("image/","");return new File([h],`image.${b}`,{type:p})})).then(t).catch(e):e(s);var l,h})})}function dv(r,t){return r.type?r.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}Rt()(lv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class nC extends Lt{static get pluginName(){return"ImageUploadUI"}init(){const t=this.editor,e=t.t,n=s=>{const l=new BA(s),h=t.commands.get("uploadImage"),p=t.config.get("image.upload.types"),b=cv(p);return l.set({acceptedType:p.map(A=>`image/${A}`).join(","),allowMultipleFiles:!0,label:e("Upload image from computer"),icon:Ae.imageUpload,tooltip:!0}),l.bind("isEnabled").to(h),l.on("done",(A,C)=>{const E=Array.from(C).filter(P=>b.test(P.type));E.length&&(t.execute("uploadImage",{file:E}),t.editing.view.focus())}),l};if(t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n),t.plugins.has("ImageInsertUI")){const s=t.plugins.get("ImageInsertUI"),l=t.commands.get("uploadImage");s.registerIntegration({name:"upload",observable:l,buttonViewCreator:()=>{const h=t.ui.componentFactory.create("uploadImage");return h.bind("label").to(s,"isImageSelected",p=>e(p?"Replace image from computer":"Upload image from computer")),h},formViewCreator:()=>{const h=t.ui.componentFactory.create("uploadImage");return h.withText=!0,h.bind("label").to(s,"isImageSelected",p=>e(p?"Replace from computer":"Upload from computer")),h.on("execute",()=>{s.dropdownView.isOpen=!1}),h}})}}}var hv=lt(3689);Rt()(hv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var uv=lt(4036);Rt()(uv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pv=lt(3773);Rt()(pv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class aC extends Lt{constructor(t){super(t),this.uploadStatusChange=(e,n,s)=>{const l=this.editor,h=n.item,p=h.getAttribute("uploadId");if(!s.consumable.consume(n.item,e.name))return;const b=l.plugins.get("ImageUtils"),A=l.plugins.get(sn),C=p?n.attributeNewValue:null,E=this.placeholder,P=l.editing.mapper.toViewElement(h),F=s.writer;if("reading"==C)return gv(P,F),void mv(b,E,P,F);if("uploading"==C){const j=A.loaders.get(p);return gv(P,F),void(j?(fv(P,F),function(Y,$,st,ft){const At=function(Ft){const jt=Ft.createUIElement("div",{class:"ck-progress-bar"});return Ft.setCustomProperty("progressBar",!0,jt),jt}($);$.insert($.createPositionAt(Y,"end"),At),st.on("change:uploadedPercent",(Ft,jt,ae)=>{ft.change(ce=>{ce.setStyle("width",ae+"%",At)})})}(P,F,j,l.editing.view),function(Y,$,st,ft){if(ft.data){const At=Y.findViewImgElement($);st.setAttribute("src",ft.data,At)}}(b,P,F,j)):mv(b,E,P,F))}"complete"==C&&A.loaders.get(p)&&function(j,Y,$){const st=Y.createUIElement("div",{class:"ck-image-upload-complete-icon"});Y.insert(Y.createPositionAt(j,"end"),st),setTimeout(()=>{$.change(ft=>ft.remove(ft.createRangeOn(st)))},3e3)}(P,F,l.editing.view),vv(P,F,"progressBar"),fv(P,F),F.removeClass("ck-appear",P)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function gv(r,t){r.hasClass("ck-appear")||t.addClass("ck-appear",r)}function mv(r,t,e,n){e.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",e);const s=r.findViewImgElement(e);s.getAttribute("src")!==t&&n.setAttribute("src",t,s),bv(e,"placeholder")||n.insert(n.createPositionAfter(s),function(l){const h=l.createUIElement("div",{class:"ck-upload-placeholder-loader"});return l.setCustomProperty("placeholder",!0,h),h}(n))}function fv(r,t){r.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",r),vv(r,t,"placeholder")}function bv(r,t){for(const e of r.getChildren())if(e.getCustomProperty(t))return e}function vv(r,t,e){const n=bv(r,e);n&&t.remove(t.createRangeOn(n))}var lC=Object.defineProperty,cC=Object.defineProperties,dC=Object.getOwnPropertyDescriptors,kv=Object.getOwnPropertySymbols,hC=Object.prototype.hasOwnProperty,uC=Object.prototype.propertyIsEnumerable,_v=(r,t,e)=>t in r?lC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;class pC extends Jt{refresh(){const t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n)}execute(t){const e=Ze(t.file),n=this.editor.model.document.selection,s=this.editor.plugins.get("ImageUtils"),l=Object.fromEntries(n.getAttributes());e.forEach((h,p)=>{const b=n.getSelectedElement();if(p&&b&&s.isImage(b)){const A=this.editor.model.createPositionAfter(b);this._uploadImage(h,l,A)}else this._uploadImage(h,l)})}_uploadImage(t,e,n){const s=this.editor,l=s.plugins.get(sn).createLoader(t),h=s.plugins.get("ImageUtils");var p;l&&h.insertImage((p=((A,C)=>{for(var E in C||(C={}))hC.call(C,E)&&_v(A,E,C[E]);if(kv)for(var E of kv(C))uC.call(C,E)&&_v(A,E,C[E]);return A})({},e),cC(p,dC({uploadId:l.id}))),n)}}class gC extends Lt{constructor(t){super(t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[sn,Hu,fn,Ci]}static get pluginName(){return"ImageUploadEditing"}init(){const t=this.editor,e=t.model.document,n=t.conversion,s=t.plugins.get(sn),l=t.plugins.get("ImageUtils"),h=t.plugins.get("ClipboardPipeline"),p=cv(t.config.get("image.upload.types")),b=new pC(t);t.commands.add("uploadImage",b),t.commands.add("imageUpload",b),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(A,C)=>{if(E=C.dataTransfer,Array.from(E.types).includes("text/html")&&""!==E.getData("text/html"))return;var E;const P=Array.from(C.dataTransfer.files).filter(F=>!!F&&p.test(F.type));P.length&&(A.stop(),t.model.change(F=>{C.targetRanges&&F.setSelection(C.targetRanges.map(j=>t.editing.mapper.toModelRange(j))),t.execute("uploadImage",{file:P})}))}),this.listenTo(h,"inputTransformation",(A,C)=>{const E=Array.from(t.editing.view.createRangeIn(C.content)).map(F=>F.item).filter(F=>{return!(!l.isInlineImageView(Y=F)||!Y.getAttribute("src")||!Y.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!Y.getAttribute("src").match(/^blob:/g)||F.getAttribute("uploadProcessed"));var Y}).map(F=>({promise:iC(F),imageElement:F}));if(!E.length)return;const P=new ko(t.editing.view.document);for(const F of E){P.setAttribute("uploadProcessed",!0,F.imageElement);const j=s.createLoader(F.promise);j&&(P.setAttribute("src","",F.imageElement),P.setAttribute("uploadId",j.id,F.imageElement))}}),t.editing.view.document.on("dragover",(A,C)=>{C.preventDefault()}),e.on("change",()=>{const A=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),C=new Set;for(const E of A)if("insert"==E.type&&"$text"!=E.name){const P=E.position.nodeAfter,F="$graveyard"==E.position.root.rootName;for(const j of mC(t,P)){const Y=j.getAttribute("uploadId");if(!Y)continue;const $=s.loaders.get(Y);$&&(F?C.has(Y)||$.abort():(C.add(Y),this._uploadImageElements.set(Y,j),"idle"==$.status&&this._readAndUpload($)))}}}),this.on("uploadComplete",(A,{imageElement:C,data:E})=>{const P=E.urls?E.urls:E;this.editor.model.change(F=>{F.setAttribute("src",P.default,C),this._parseAndSetSrcsetAttributeOnImage(P,C,F),l.setImageNaturalSizeAttributes(C)})},{priority:"low"})}afterInit(){const t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(t){const e=this.editor,n=e.model,s=e.locale.t,l=e.plugins.get(sn),h=e.plugins.get(Hu),p=e.plugins.get("ImageUtils"),b=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},C=>{C.setAttribute("uploadStatus","reading",b.get(t.id))}),t.read().then(()=>{const C=t.upload(),E=b.get(t.id);if(it.isSafari){const P=e.editing.mapper.toViewElement(E),F=p.findViewImgElement(P);e.editing.view.once("render",()=>{if(!F.parent)return;const j=e.editing.view.domConverter.mapViewToDom(F.parent);if(!j)return;const Y=j.style.display;j.style.display="none",j._ckHack=j.offsetHeight,j.style.display=Y})}return n.enqueueChange({isUndoable:!1},P=>{P.setAttribute("uploadStatus","uploading",E)}),C}).then(C=>{n.enqueueChange({isUndoable:!1},E=>{const P=b.get(t.id);E.setAttribute("uploadStatus","complete",P),this.fire("uploadComplete",{data:C,imageElement:P})}),A()}).catch(C=>{if("error"!==t.status&&"aborted"!==t.status)throw C;"error"==t.status&&C&&h.showWarning(C,{title:s("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},E=>{E.remove(b.get(t.id))}),A()});function A(){n.enqueueChange({isUndoable:!1},C=>{const E=b.get(t.id);C.removeAttribute("uploadId",E),C.removeAttribute("uploadStatus",E),b.delete(t.id)}),l.destroyLoader(t)}}_parseAndSetSrcsetAttributeOnImage(t,e,n){let s=0;const l=Object.keys(t).filter(h=>{const p=parseInt(h,10);if(!isNaN(p))return s=Math.max(s,p),!0}).map(h=>`${t[h]} ${h}w`).join(", ");if(""!=l){const h={srcset:l};e.hasAttribute("width")||e.hasAttribute("height")||(h.width=s),n.setAttributes(h,e)}}}function mC(r,t){const e=r.plugins.get("ImageUtils");return Array.from(r.model.createRangeOn(t)).filter(n=>e.isImage(n.item)).map(n=>n.item)}var wv=lt(6270);Rt()(wv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class bC extends Jt{constructor(t,e){super(t),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(e.map(n=>{if(n.isDefault)for(const s of n.modelElements)this._defaultStyles[s]=n.name;return[n.name,n]}))}refresh(){const t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.value=!!this.isEnabled&&(t.hasAttribute("imageStyle")?t.getAttribute("imageStyle"):this._defaultStyles[t.name])}execute(t={}){const e=this.editor,n=e.model,s=e.plugins.get("ImageUtils");n.change(l=>{const h=t.value,{setImageSizes:p=!0}=t;let b=s.getClosestSelectedImageElement(n.document.selection);h&&this.shouldConvertImageType(h,b)&&(this.editor.execute(s.isBlockImage(b)?"imageTypeInline":"imageTypeBlock",{setImageSizes:p}),b=s.getClosestSelectedImageElement(n.document.selection)),!h||this._styles.get(h).isDefault?l.removeAttribute("imageStyle",b):l.setAttribute("imageStyle",h,b),p&&s.setImageNaturalSizeAttributes(b)})}shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}var vC=Object.defineProperty,Av=Object.getOwnPropertySymbols,kC=Object.prototype.hasOwnProperty,_C=Object.prototype.propertyIsEnumerable,xv=(r,t,e)=>t in r?vC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Cv=(r,t)=>{for(var e in t||(t={}))kC.call(t,e)&&xv(r,e,t[e]);if(Av)for(var e of Av(t))_C.call(t,e)&&xv(r,e,t[e]);return r};const{objectFullWidth:wC,objectInline:yv,objectLeft:Ev,objectRight:dp,objectCenter:hp,objectBlockLeft:Tv,objectBlockRight:Sv}=Ae,ed={get inline(){return{name:"inline",title:"In line",icon:yv,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Ev,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Tv,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:hp,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:dp,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Sv,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:hp,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:dp,modelElements:["imageBlock"],className:"image-style-side"}}},Iv={full:wC,left:Tv,right:Sv,center:hp,inlineLeft:Ev,inlineRight:dp,inline:yv},Dv=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function Mv(r){kt("image-style-configuration-definition-invalid",r)}const up={normalizeStyles:function(r){return(r.configuredStyles.options||[]).map(t=>{return"string"==typeof(e="string"==typeof(e=t)?ed[e]?Cv({},ed[e]):{name:e}:function(n,s){const l=Cv({},s);for(const h in n)Object.prototype.hasOwnProperty.call(s,h)||(l[h]=n[h]);return l}(ed[e.name],e)).icon&&(e.icon=Iv[e.icon]||e.icon),e;var e}).filter(t=>function(e,{isBlockPluginLoaded:n,isInlinePluginLoaded:s}){const{modelElements:l,name:h}=e;if(!(l&&l.length&&h))return Mv({style:e}),!1;{const p=[n?"imageBlock":null,s?"imageInline":null];if(!l.some(b=>p.includes(b)))return kt("image-style-missing-dependency",{style:e,missingPlugins:l.map(b=>"imageBlock"===b?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(t,r))},getDefaultStylesConfiguration:function(r,t){return r&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:r?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(r){return r.has("ImageBlockEditing")&&r.has("ImageInlineEditing")?[...Dv]:[]},warnInvalidStyle:Mv,DEFAULT_OPTIONS:ed,DEFAULT_ICONS:Iv,DEFAULT_DROPDOWN_DEFINITIONS:Dv};function Lv(r,t){for(const e of t)if(e.name===r)return e}class Pv extends Lt{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Ci]}init(){const{normalizeStyles:t,getDefaultStylesConfiguration:e}=up,n=this.editor,s=n.plugins.has("ImageBlockEditing"),l=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(s,l)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:s,isInlinePluginLoaded:l}),this._setupConversion(s,l),this._setupPostFixer(),n.commands.add("imageStyle",new bC(n,this.normalizedStyles))}_setupConversion(t,e){const n=this.editor,s=n.model.schema,l=(h=this.normalizedStyles,(b,A,C)=>{if(!C.consumable.consume(A.item,b.name))return;const E=Lv(A.attributeNewValue,h),P=Lv(A.attributeOldValue,h),F=C.mapper.toViewElement(A.item),j=C.writer;P&&j.removeClass(P.className,F),E&&j.addClass(E.className,F)});var h;const p=function(b){const A={imageInline:b.filter(C=>!C.isDefault&&C.modelElements.includes("imageInline")),imageBlock:b.filter(C=>!C.isDefault&&C.modelElements.includes("imageBlock"))};return(C,E,P)=>{if(!E.modelRange)return;const F=E.viewItem,j=Oe(E.modelRange.getItems());if(j&&P.schema.checkAttribute(j,"imageStyle"))for(const Y of A[j.name])P.consumable.consume(F,{classes:Y.className})&&P.writer.setAttribute("imageStyle",Y.name,j)}}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",l),n.data.downcastDispatcher.on("attribute:imageStyle",l),t&&(s.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",p,{priority:"low"})),e&&(s.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",p,{priority:"low"}))}_setupPostFixer(){const t=this.editor,e=t.model.document,n=t.plugins.get(Ci),s=new Map(this.normalizedStyles.map(l=>[l.name,l]));e.registerPostFixer(l=>{let h=!1;for(const p of e.differ.getChanges())if("insert"==p.type||"attribute"==p.type&&"imageStyle"==p.attributeKey){let b="insert"==p.type?p.position.nodeAfter:p.range.start.nodeAfter;if(b&&b.is("element","paragraph")&&b.childCount>0&&(b=b.getChild(0)),!n.isImage(b))continue;const A=b.getAttribute("imageStyle");if(!A)continue;const C=s.get(A);C&&C.modelElements.includes(b.name)||(l.removeAttribute("imageStyle",b),h=!0)}return h})}}var Nv=lt(5083);Rt()(Nv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xC extends Lt{static get requires(){return[Pv]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}init(){const t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=Ov(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const l of n)this._createButton(l);const s=Ov([...e.filter(te),...up.getDefaultDropdownDefinitions(t)],this.localizedDefaultStylesTitles);for(const l of s)this._createDropdown(l,n)}_createDropdown(t,e){const n=this.editor.ui.componentFactory;n.add(t.name,s=>{let l;const{defaultItem:h,items:p,title:b}=t,A=p.filter(F=>e.find(({name:j})=>Bv(j)===F)).map(F=>{const j=n.create(F);return F===h&&(l=j),j});p.length!==A.length&&up.warnInvalidStyle({dropdown:t});const C=Zn(s,Lc),E=C.buttonView,P=E.arrowView;return Ou(C,A,{enableActiveItemFocusOnDropdownOpen:!0}),E.set({label:Fv(b,l.label),class:null,tooltip:!0}),P.unbind("label"),P.set({label:b}),E.bind("icon").toMany(A,"isOn",(...F)=>{const j=F.findIndex(Pn);return j<0?l.icon:A[j].icon}),E.bind("label").toMany(A,"isOn",(...F)=>{const j=F.findIndex(Pn);return Fv(b,j<0?l.label:A[j].label)}),E.bind("isOn").toMany(A,"isOn",(...F)=>F.some(Pn)),E.bind("class").toMany(A,"isOn",(...F)=>F.some(Pn)?"ck-splitbutton_flatten":void 0),E.on("execute",()=>{A.some(({isOn:F})=>F)?C.isOpen=!C.isOpen:l.fire("execute")}),C.bind("isEnabled").toMany(A,"isEnabled",(...F)=>F.some(Pn)),this.listenTo(C,"execute",()=>{this.editor.editing.view.focus()}),C})}_createButton(t){const e=t.name;this.editor.ui.componentFactory.add(Bv(e),n=>{const s=this.editor.commands.get("imageStyle"),l=new ve(n);return l.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),l.bind("isEnabled").to(s,"isEnabled"),l.bind("isOn").to(s,"value",h=>h===e),l.on("execute",this._executeCommand.bind(this,e)),l})}_executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}function Ov(r,t){for(const e of r)t[e.title]&&(e.title=t[e.title]);return r}function Bv(r){return`imageStyle:${r}`}function Fv(r,t){return(r?r+": ":"")+t}class CC extends Lt{static get pluginName(){return"IndentEditing"}init(){const t=this.editor;t.commands.add("indent",new Vl(t)),t.commands.add("outdent",new Vl(t))}}const zv='',Rv='';class yC extends Lt{static get pluginName(){return"IndentUI"}init(){const t=this.editor,e=t.locale,n=t.t,s="ltr"==e.uiLanguageDirection?zv:Rv,l="ltr"==e.uiLanguageDirection?Rv:zv;this._defineButton("indent",n("Increase indent"),s),this._defineButton("outdent",n("Decrease indent"),l)}_defineButton(t,e,n){const s=this.editor;s.ui.componentFactory.add(t,l=>{const h=s.commands.get(t),p=new ve(l);return p.set({label:e,icon:n,tooltip:!0}),p.bind("isEnabled").to(h,"isEnabled"),this.listenTo(p,"execute",()=>{s.execute(t),s.editing.view.focus()}),p})}}class EC{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(t){Array.isArray(t)?t.forEach(e=>this._definitions.add(e)):this._definitions.add(t)}getDispatcher(){return t=>{t.on("attribute:linkHref",(e,n,s)=>{if(!s.consumable.test(n.item,"attribute:linkHref")||!n.item.is("selection")&&!s.schema.isInline(n.item))return;const l=s.writer,h=l.document.selection;for(const p of this._definitions){const b=l.createAttributeElement("a",p.attributes,{priority:5});p.classes&&l.addClass(p.classes,b);for(const A in p.styles)l.setStyle(A,p.styles[A],b);l.setCustomProperty("link",!0,b),p.callback(n.attributeNewValue)?n.item.is("selection")?l.wrap(h.getFirstRange(),b):l.wrap(s.mapper.toViewRange(n.range),b):l.unwrap(s.mapper.toViewRange(n.range),b)}},{priority:"high"})}}getDispatcherForLinkedImage(){return t=>{t.on("attribute:linkHref:imageBlock",(e,n,{writer:s,mapper:l})=>{const h=l.toViewElement(n.item),p=Array.from(h.getChildren()).find(b=>b.is("element","a"));for(const b of this._definitions){const A=ri(b.attributes);if(b.callback(n.attributeNewValue)){for(const[C,E]of A)"class"===C?s.addClass(E,p):s.setAttribute(C,E,p);b.classes&&s.addClass(b.classes,p);for(const C in b.styles)s.setStyle(C,b.styles[C],p)}else{for(const[C,E]of A)"class"===C?s.removeClass(E,p):s.removeAttribute(C,p);b.classes&&s.removeClass(b.classes,p);for(const C in b.styles)s.removeStyle(C,p)}}})}}}var SC=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Zv=function(r){return SC.test(r)};var Uv="\\ud800-\\udfff",DC="["+Uv+"]",pp="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",gp="\\ud83c[\\udffb-\\udfff]",jv="[^"+Uv+"]",Vv="(?:\\ud83c[\\udde6-\\uddff]){2}",qv="[\\ud800-\\udbff][\\udc00-\\udfff]",Yv="(?:"+pp+"|"+gp+")?",Hv="[\\ufe0e\\ufe0f]?",MC=Hv+Yv+"(?:\\u200d(?:"+[jv,Vv,qv].join("|")+")"+Hv+Yv+")*",LC="(?:"+[jv+pp+"?",pp,Vv,qv,DC].join("|")+")",PC=RegExp(gp+"(?="+gp+")|"+LC+MC,"g");const BC=function(t){t=$s(t);var e=Zv(t)?function(r){return Zv(r)?function(r){return r.match(PC)||[]}(r):function(r){return r.split("")}(r)}(t):void 0,n=e?e[0]:t.charAt(0),s=e?function(r,t,e){var n=r.length;return ec(r,1,e=void 0===e?n:e)}(e).join(""):t.slice(1);return n.toUpperCase()+s},FC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,zC=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,RC=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,ZC=/^((\w+:(\/{2,})?)|(\W))/i,mp="Ctrl+K";function Gv(r,{writer:t}){const e=t.createAttributeElement("a",{href:r},{priority:5});return t.setCustomProperty("link",!0,e),e}function Wv(r){const t=String(r);return t.replace(FC,"").match(zC)?t:"#"}function fp(r,t){return!!r&&t.checkAttribute(r.name,"linkHref")}function bp(r,t){const e=RC.test(r)?"mailto:":t,s=!!e&&!Qv(r);return r&&s?e+r:r}function Qv(r){return ZC.test(r)}function Xv(r){window.open(r,"_blank","noopener")}class UC extends Jt{constructor(){super(...arguments),this.manualDecorators=new di,this.automaticDecorators=new EC}restoreManualDecoratorStates(){for(const t of this.manualDecorators)t.value=this._getDecoratorStateFromModel(t.id)}refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||Oe(e.getSelectedBlocks());fp(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));for(const s of this.manualDecorators)s.value=this._getDecoratorStateFromModel(s.id)}execute(t,e={}){const n=this.editor.model,s=n.document.selection,l=[],h=[];for(const p in e)e[p]?l.push(p):h.push(p);n.change(p=>{if(s.isCollapsed){const b=s.getFirstPosition();if(s.hasAttribute("linkHref")){const A=Kv(s);let C=qc(b,"linkHref",s.getAttribute("linkHref"),n);s.getAttribute("linkHref")===A&&(C=this._updateLinkContent(n,p,C,t)),p.setAttribute("linkHref",t,C),l.forEach(E=>{p.setAttribute(E,!0,C)}),h.forEach(E=>{p.removeAttribute(E,C)}),p.setSelection(p.createPositionAfter(C.end.nodeBefore))}else if(""!==t){const A=ri(s.getAttributes());A.set("linkHref",t),l.forEach(E=>{A.set(E,!0)});const{end:C}=n.insertContent(p.createText(t,A),b);p.setSelection(C)}["linkHref",...l,...h].forEach(A=>{p.removeSelectionAttribute(A)})}else{const b=n.schema.getValidRanges(s.getRanges(),"linkHref"),A=[];for(const E of s.getSelectedBlocks())n.schema.checkAttribute(E,"linkHref")&&A.push(p.createRangeOn(E));const C=A.slice();for(const E of b)this._isRangeToUpdate(E,A)&&C.push(E);for(const E of C){let P=E;if(1===C.length){const F=Kv(s);s.getAttribute("linkHref")===F&&(P=this._updateLinkContent(n,p,E,t),p.setSelection(p.createSelection(P)))}p.setAttribute("linkHref",t,P),l.forEach(F=>{p.setAttribute(F,!0,P)}),h.forEach(F=>{p.removeAttribute(F,P)})}}})}_getDecoratorStateFromModel(t){const e=this.editor.model,n=e.document.selection,s=n.getSelectedElement();return fp(s,e.schema)?s.getAttribute(t):n.getAttribute(t)}_isRangeToUpdate(t,e){for(const n of e)if(n.containsRange(t))return!1;return!0}_updateLinkContent(t,e,n,s){const l=e.createText(s,{linkHref:s});return t.insertContent(l,n)}}function Kv(r){if(r.isCollapsed){const t=r.getFirstPosition();return t.textNode&&t.textNode.data}{const t=Array.from(r.getFirstRange().getItems());if(t.length>1)return null;const e=t[0];return e.is("$text")||e.is("$textProxy")?e.data:null}}class jC extends Jt{refresh(){const t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();this.isEnabled=fp(n,t.schema)?t.schema.checkAttribute(n,"linkHref"):t.schema.checkAttributeInSelection(e,"linkHref")}execute(){const e=this.editor.model,n=e.document.selection,s=this.editor.commands.get("link");e.change(l=>{const h=n.isCollapsed?[qc(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");for(const p of h)if(l.removeAttribute("linkHref",p),s)for(const b of s.manualDecorators)l.removeAttribute(b.id,p)})}}class VC extends(ne()){constructor({id:t,label:e,attributes:n,classes:s,styles:l,defaultValue:h}){super(),this.id=t,this.set("value",void 0),this.defaultValue=h,this.label=e,this.attributes=n,this.classes=s,this.styles=l}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Jv=lt(9773);Rt()(Jv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var YC=Object.defineProperty,$v=Object.getOwnPropertySymbols,HC=Object.prototype.hasOwnProperty,GC=Object.prototype.propertyIsEnumerable,tk=(r,t,e)=>t in r?YC(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,WC=(r,t)=>{for(var e in t||(t={}))HC.call(t,e)&&tk(r,e,t[e]);if($v)for(var e of $v(t))GC.call(t,e)&&tk(r,e,t[e]);return r};const ek="automatic",QC=/^(https?:)?\/\//;class ik extends Lt{static get pluginName(){return"LinkEditing"}static get requires(){return[Ef,kf,fn]}constructor(t){super(t),t.config.define("link",{addTargetToExternalLinks:!1})}init(){const t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Gv}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(n,s)=>Gv(Wv(n),s)}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:n=>n.getAttribute("href")}}),t.commands.add("link",new UC(t)),t.commands.add("unlink",new jC(t));const e=function(n,s){const l={"Open in a new tab":n("Open in a new tab"),Downloadable:n("Downloadable")};return s.forEach(h=>("label"in h&&l[h.label]&&(h.label=l[h.label]),h)),s}(t.t,function(n){const s=[];if(n)for(const[l,h]of Object.entries(n)){const p=Object.assign({},h,{id:`link${BC(l)}`});s.push(p)}return s}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter(n=>n.mode===ek)),this._enableManualDecorators(e.filter(n=>"manual"===n.mode)),t.plugins.get(Ef).registerAttribute("linkHref"),function(n,s,l,h){const p=n.editing.view,b=new Set;p.document.registerPostFixer(A=>{const C=n.model.document.selection;let E=!1;if(C.hasAttribute(s)){const P=qc(C.getFirstPosition(),s,C.getAttribute(s),n.model),F=n.editing.mapper.toViewRange(P);for(const j of F.getItems())j.is("element","a")&&!j.hasClass(h)&&(A.addClass(h,j),b.add(j),E=!0)}return E}),n.conversion.for("editingDowncast").add(A=>{function C(){p.change(E=>{for(const P of b.values())E.removeClass(h,P),b.delete(P)})}A.on("insert",C,{priority:"highest"}),A.on("remove",C,{priority:"highest"}),A.on("attribute",C,{priority:"highest"}),A.on("selection",C,{priority:"highest"})})}(t,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableSelectionAttributesFixer(),this._enableClipboardIntegration()}_enableAutomaticDecorators(t){const e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:ek,callback:s=>!!s&&QC.test(s),attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}_enableManualDecorators(t){if(!t.length)return;const e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach(s=>{e.model.schema.extend("$text",{allowAttributes:s.id});const l=new VC(s);n.add(l),e.conversion.for("downcast").attributeToElement({model:l.id,view:(h,{writer:p,schema:b},{item:A})=>{if((A.is("selection")||b.isInline(A))&&h){const C=p.createAttributeElement("a",l.attributes,{priority:5});l.classes&&p.addClass(l.classes,C);for(const E in l.styles)p.setStyle(E,l.styles[E],C);return p.setCustomProperty("link",!0,C),C}}}),e.conversion.for("upcast").elementToAttribute({view:WC({name:"a"},l._createPattern()),model:{key:l.id}})})}_enableLinkOpen(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",(n,s)=>{if(!(it.isMac?s.domEvent.metaKey:s.domEvent.ctrlKey))return;let l=s.domTarget;if("a"!=l.tagName.toLowerCase()&&(l=l.closest("a")),!l)return;const h=l.getAttribute("href");h&&(n.stop(),s.preventDefault(),Xv(h))},{context:"$capture"}),this.listenTo(e,"keydown",(n,s)=>{const l=t.commands.get("link").value;l&&s.keyCode===se.enter&&s.altKey&&(n.stop(),Xv(l))})}_enableSelectionAttributesFixer(){const t=this.editor.model,e=t.document.selection;this.listenTo(e,"change:attribute",(n,{attributeKeys:s})=>{s.includes("linkHref")&&!e.hasAttribute("linkHref")&&t.change(l=>{var h;!function(p,b){p.removeSelectionAttribute("linkHref");for(const A of b)p.removeSelectionAttribute(A)}(l,(h=t.schema,h.getDefinition("$text").allowAttributes.filter(p=>p.startsWith("link"))))})})}_enableClipboardIntegration(){const t=this.editor,e=t.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(t.plugins.get("ClipboardPipeline"),"contentInsertion",(s,l)=>{e.change(h=>{const p=h.createRangeIn(l.content);for(const b of p.getItems())if(b.hasAttribute("linkHref")){const A=bp(b.getAttribute("linkHref"),n);h.setAttribute("linkHref",A,b)}})})}}var nk=lt(7754);Rt()(nk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class KC extends Wt{constructor(t,e){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri;const n=t.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(n("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(e),this.children=this._createFormChildren(e.manualDecorators),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const s=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&s.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:s,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((t,e)=>(t[e.name]=e.isOn,t),{})}render(){super.render(),L({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const t=this.locale.t,e=new Cr(this.locale,Pc);return e.label=t("Link URL"),e}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}_createManualDecoratorSwitches(t){const e=this.createCollection();for(const n of t.manualDecorators){const s=new xr(this.locale);s.set({name:n.id,label:n.label,withText:!0}),s.bind("isOn").toMany([n,t],"value",(l,h)=>void 0===h&&void 0===l?!!n.defaultValue:!!l),s.on("execute",()=>{n.set("value",!s.isOn)}),e.add(s)}return e}_createFormChildren(t){const e=this.createCollection();if(e.add(this.urlInputView),t.length){const n=new Wt;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(s=>({tag:"li",children:[s],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(n)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}var ok=lt(2347);Rt()(ok.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class $C extends Wt{constructor(t){super(t),this.focusTracker=new Ye,this.keystrokes=new vi,this._focusables=new Ri;const e=t.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(e("Unlink"),'',"unlink"),this.editButtonView=this._createButton(e("Edit link"),Ae.pencil,"edit"),this.set("href",void 0),this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(t=>{this._focusables.add(t),this.focusTracker.add(t.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(t,e,n){const s=new ve(this.locale);return s.set({label:t,icon:e,tooltip:!0}),s.delegate("execute").to(this,n),s}_createPreviewButton(){const t=new ve(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",s=>s&&Wv(s)),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",s=>s||n("This link has no URL")),t.bind("isEnabled").to(this,"href",s=>!!s),t.template.tag="a",t.template.eventListeners={},t}}const bn="link-ui";class ty extends Lt{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[Rc]}static get pluginName(){return"LinkUI"}init(){const t=this.editor;t.editing.view.addObserver(aw),this._balloon=t.plugins.get(Rc),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:bn,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:bn,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const t=this.editor,e=new $C(t.locale),n=t.commands.get("link"),s=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(s),this.listenTo(e,"edit",()=>{this._addFormView()}),this.listenTo(e,"unlink",()=>{t.execute("unlink"),this._hideUI()}),e.keystrokes.set("Esc",(l,h)=>{this._hideUI(),h()}),e.keystrokes.set(mp,(l,h)=>{this._addFormView(),h()}),e}_createFormView(){const t=this.editor,e=t.commands.get("link"),n=t.config.get("link.defaultProtocol"),s=new(ct(KC))(t.locale,e);return s.urlInputView.fieldView.bind("value").to(e,"value"),s.urlInputView.bind("isEnabled").to(e,"isEnabled"),s.saveButtonView.bind("isEnabled").to(e),this.listenTo(s,"submit",()=>{const{value:l}=s.urlInputView.fieldView.element,h=bp(l,n);t.execute("link",h,s.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(s,"cancel",()=>{this._closeFormView()}),s.keystrokes.set("Esc",(l,h)=>{this._closeFormView(),h()}),s}_createToolbarLinkButton(){const t=this.editor,e=t.commands.get("link"),n=t.t;t.ui.componentFactory.add("link",s=>{const l=new ve(s);return l.isEnabled=!0,l.label=n("Link"),l.icon='',l.keystroke=mp,l.tooltip=!0,l.isToggleable=!0,l.bind("isEnabled").to(e,"isEnabled"),l.bind("isOn").to(e,"value",h=>!!h),this.listenTo(l,"execute",()=>this._showUI(!0)),l})}_enableBalloonActivators(){const t=this.editor;this.listenTo(t.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),t.keystrokes.set(mp,(n,s)=>{s(),t.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(t,e)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),e())},{priority:"high"}),this.editor.keystrokes.set("Esc",(t,e)=>{this._isUIVisible&&(this._hideUI(),e())}),et({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const t=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=t.value||""}_closeFormView(){const t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(t=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const t=this.editor,e=t.editing.view.document;let n=this._getSelectedLinkElement(),s=h();const l=()=>{const p=this._getSelectedLinkElement(),b=h();n&&!p||!n&&b!==s?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),n=p,s=b};function h(){return e.selection.focus.getAncestors().reverse().find(p=>p.is("element"))}this.listenTo(t.ui,"update",l),this.listenTo(this._balloon,"change:visibleView",l)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return!!this.formView&&this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const t=this.editor.editing.view,n=t.document;let s;if(this.editor.model.markers.has(bn)){const l=Array.from(this.editor.editing.mapper.markerNameToElements(bn)),h=t.createRange(t.createPositionBefore(l[0]),t.createPositionAfter(l[l.length-1]));s=t.domConverter.viewRangeToDom(h)}else s=()=>{const l=this._getSelectedLinkElement();return l?t.domConverter.mapViewToDom(l):t.domConverter.viewRangeToDom(n.selection.getFirstRange())};return{target:s}}_getSelectedLinkElement(){const t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&He(n))return vp(e.getFirstPosition());{const s=e.getFirstRange().getTrimmed(),l=vp(s.start),h=vp(s.end);return l&&l==h&&t.createRangeIn(l).getTrimmed().isEqual(s)?l:null}}_showFakeVisualSelection(){const t=this.editor.model;t.change(e=>{const n=t.document.selection.getFirstRange();if(t.markers.has(bn))e.updateMarker(bn,{range:n});else if(n.start.isAtEnd){const s=n.start.getLastMatchingPosition(({item:l})=>!t.schema.isContent(l),{boundaries:n});e.addMarker(bn,{usingOperation:!1,affectsData:!1,range:e.createRange(s,n.end)})}else e.addMarker(bn,{usingOperation:!1,affectsData:!1,range:n})})}_hideFakeVisualSelection(){const t=this.editor.model;t.markers.has(bn)&&t.change(e=>{e.removeMarker(bn)})}}function vp(r){return r.getAncestors().find(t=>{return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e})||null}const rk=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class ey extends Lt{static get requires(){return[Un,ik]}static get pluginName(){return"AutoLink"}init(){const t=this.editor.model.document.selection;t.on("change:range",()=>{this.isEnabled=!t.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling(),this._enablePasteLinking()}_expandLinkRange(t,e){return e.textNode&&e.textNode.hasAttribute("linkHref")?qc(e,"linkHref",e.textNode.getAttribute("linkHref"),t):null}_selectEntireLinks(t,e){const n=this.editor.model,s=n.document.selection,l=s.getFirstPosition(),h=s.getLastPosition();let p=e.getJoined(this._expandLinkRange(n,l)||e);p&&(p=p.getJoined(this._expandLinkRange(n,h)||e)),p&&(p.start.isBefore(l)||p.end.isAfter(h))&&t.setSelection(p)}_enablePasteLinking(){const t=this.editor,e=t.model,n=e.document.selection,s=t.plugins.get("ClipboardPipeline"),l=t.commands.get("link");s.on("inputTransformation",(h,p)=>{if(!this.isEnabled||!l.isEnabled||n.isCollapsed||n.rangeCount>1)return;const b=n.getFirstRange(),A=p.dataTransfer.getData("text/plain");if(!A)return;const C=A.match(rk);C&&C[2]===A&&(e.change(E=>{this._selectEntireLinks(E,b),l.execute(A)}),h.stop())},{priority:"high"})}_enableTypingHandling(){const t=this.editor,e=new yf(t.model,n=>{if(!((l=n).length>4&&" "===l[l.length-1]&&" "!==l[l.length-2]))return;var l;const s=sk(n.substr(0,n.length-1));return s?{url:s}:void 0});e.on("matched:data",(n,s)=>{const{batch:l,range:h,url:p}=s;if(!l.isTyping)return;const b=h.end.getShiftedBy(-1),A=b.getShiftedBy(-p.length),C=t.model.createRange(A,b);this._applyAutoLink(p,C)}),e.bind("isEnabled").to(this)}_enableEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",()=>{const s=e.document.selection.getFirstPosition();if(!s.parent.previousSibling)return;const l=e.createRangeIn(s.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(l)})}_enableShiftEnterHandling(){const t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",()=>{const s=e.document.selection.getFirstPosition(),l=e.createRange(e.createPositionAt(s.parent,0),s.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(l)})}_checkAndApplyAutoLinkOnRange(t){const e=this.editor.model,{text:n,range:s}=Cf(t,e),l=sk(n);if(l){const h=e.createRange(s.end.getShiftedBy(-l.length),s.end);this._applyAutoLink(l,h)}}_applyAutoLink(t,e){const n=this.editor.model,s=bp(t,this.editor.config.get("link.defaultProtocol"));var h;this.isEnabled&&(h=n).schema.checkAttributeInSelection(h.createSelection(e),"linkHref")&&Qv(s)&&!function(l){const h=l.start.nodeAfter;return!!h&&h.hasAttribute("linkHref")}(e)&&this._persistAutoLink(s,e)}_persistAutoLink(t,e){const n=this.editor.model,s=this.editor.plugins.get("Delete");n.enqueueChange(l=>{l.setAttribute("linkHref",t,e),n.enqueueChange(()=>{s.requestUndoOnBackspace()})})}}function sk(r){const t=rk.exec(r);return t?t[2]:null}var ak=lt(111);Rt()(ak.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var lk=lt(5730);Rt()(lk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var ck=lt(4564);function dk(r,t,e,n){const s=t.parent,l=e.mapper,h=e.writer;let p=l.toViewPosition(n.createPositionBefore(r));const b=uk(r.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:r.getAttribute("listIndent")}),A=r.previousSibling;if(b&&b.getAttribute("listIndent")==r.getAttribute("listIndent")){const C=l.toViewElement(b);p=h.breakContainer(h.createPositionAfter(C))}else if(A&&"listItem"==A.name){p=l.toViewPosition(n.createPositionAt(A,"end"));const C=l.findMappedViewAncestor(p),E=function(P){for(const F of P.getChildren())if("ul"==F.name||"ol"==F.name)return F;return null}(C);p=E?h.createPositionBefore(E):h.createPositionAt(C,"end")}else p=l.toViewPosition(n.createPositionBefore(r));if(p=hk(p),h.insert(p,s),A&&"listItem"==A.name){const C=l.toViewElement(A),E=h.createRange(h.createPositionAt(C,0),p).getWalker({ignoreElementEnd:!0});for(const P of E)if(P.item.is("element","li")){const F=h.breakContainer(h.createPositionBefore(P.item)),j=P.item.parent,Y=h.createPositionAt(t,"end");Hi(h,Y.nodeBefore,Y.nodeAfter),h.move(h.createRangeOn(j),Y),E._position=F}}else{const C=s.nextSibling;if(C&&(C.is("element","ul")||C.is("element","ol"))){let E=null;for(const P of C.getChildren()){const F=l.toModelElement(P);if(!(F&&F.getAttribute("listIndent")>r.getAttribute("listIndent")))break;E=P}E&&(h.breakContainer(h.createPositionAfter(E)),h.move(h.createRangeOn(E.parent),h.createPositionAt(t,"end")))}}Hi(h,s,s.nextSibling),Hi(h,s.previousSibling,s)}function Hi(r,t,e){return!t||!e||"ul"!=t.name&&"ol"!=t.name||t.name!=e.name||t.getAttribute("class")!==e.getAttribute("class")?null:r.mergeContainers(r.createPositionAfter(t))}function hk(r){return r.getLastMatchingPosition(t=>t.item.is("uiElement"))}function uk(r,t){const e=!!t.sameIndent,n=!!t.smallerIndent,s=t.listIndent;let l=r;for(;l&&"listItem"==l.name;){const h=l.getAttribute("listIndent");if(e&&s==h||n&&s>h)return l;l="forward"===t.direction?l.nextSibling:l.previousSibling}return null}function pk(r,t,e,n){r.ui.componentFactory.add(t,s=>{const l=r.commands.get(t),h=new ve(s);return h.set({label:e,icon:n,tooltip:!0,isToggleable:!0}),h.bind("isOn","isEnabled").to(l,"value","isEnabled"),h.on("execute",()=>{r.execute(t),r.editing.view.focus()}),h})}function kp(r,t){const e=[],n=r.parent,s={ignoreElementEnd:!1,startPosition:r,shallow:!0,direction:t},l=n.getAttribute("listIndent"),h=[...new Li(s)].filter(p=>p.item.is("element")).map(p=>p.item);for(const p of h){if(!p.is("element","listItem")||p.getAttribute("listIndent")l)){if(p.getAttribute("listType")!==n.getAttribute("listType")||p.getAttribute("listStyle")!==n.getAttribute("listStyle")||p.getAttribute("listReversed")!==n.getAttribute("listReversed")||p.getAttribute("listStart")!==n.getAttribute("listStart"))break;"backward"===t?e.unshift(p):e.push(p)}}return e}Rt()(ck.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const sy=["disc","circle","square"],ay=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function ly(){const r=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||r?0:sc.call(this)}class cy extends Lt{static get pluginName(){return"ListUI"}init(){const t=this.editor.t;pk(this.editor,"numberedList",t("Numbered List"),''),pk(this.editor,"bulletedList",t("Bulleted List"),'')}}const dy={},hy={},uy={},py=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:r,typeAttribute:t,listType:e}of py)dy[r]=e,hy[r]=t,t&&(uy[t]=r);var gk=lt(6082);Rt()(gk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var mk=lt(2417);Rt()(mk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class fk extends Jt{constructor(t,e){super(t),this._indentBy="forward"==e?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const t=this.editor.model;let n=Array.from(t.document.selection.getSelectedBlocks());t.change(s=>{const l=n[n.length-1];let h=l.nextSibling;for(;h&&"listItem"==h.name&&h.getAttribute("listIndent")>l.getAttribute("listIndent");)n.push(h),h=h.nextSibling;this._indentBy<0&&(n=n.reverse());for(const p of n){const b=p.getAttribute("listIndent")+this._indentBy;b<0?s.rename(p,"paragraph"):s.setAttribute("listIndent",b,p)}this.fire("_executeCleanup",n)})}_checkEnabled(){const t=Oe(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){const e=t.getAttribute("listIndent"),n=t.getAttribute("listType");let s=t.previousSibling;for(;s&&s.is("element","listItem")&&s.getAttribute("listIndent")>=e;){if(s.getAttribute("listIndent")==e)return s.getAttribute("listType")==n;s=s.previousSibling}return!1}return!0}}class bk extends Jt{constructor(t,e){super(t),this.type=e}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(t={}){const e=this.editor.model,s=Array.from(e.document.selection.getSelectedBlocks()).filter(h=>kk(h,e.schema)),l=void 0!==t.forceValue?!t.forceValue:this.value;e.change(h=>{if(l){let p=s[s.length-1].nextSibling,b=Number.POSITIVE_INFINITY,A=[];for(;p&&"listItem"==p.name&&0!==p.getAttribute("listIndent");){const C=p.getAttribute("listIndent");C=e;)l>s.getAttribute("listIndent")&&(l=s.getAttribute("listIndent")),s.getAttribute("listIndent")==l&&r[t?"unshift":"push"](s),s=s[t?"previousSibling":"nextSibling"]}}function kk(r,t){return t.checkChild(r.parent,"listItem")&&!t.isObject(r)}class fy extends Lt{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(t){return sy.includes(e=t)?"bulleted":ay.includes(e)?"numbered":null;var e}getSelectedListItems(t){return function(e){let n=[...e.document.selection.getSelectedBlocks()].filter(s=>s.is("element","listItem")).map(s=>{const l=e.change(h=>h.createPositionAt(s,0));return[...kp(l,"backward"),...kp(l,"forward")]}).flat();return n=[...new Set(n)],n}(t)}getSiblingNodes(t,e){return kp(t,e)}}function _k(r){return(t,e,n)=>{const s=n.consumable;if(!s.test(e.item,"insert")||!s.test(e.item,"attribute:listType")||!s.test(e.item,"attribute:listIndent"))return;s.consume(e.item,"insert"),s.consume(e.item,"attribute:listType"),s.consume(e.item,"attribute:listIndent");const l=e.item;dk(l,function ry(r,t){const e=t.mapper,n=t.writer,s="numbered"==r.getAttribute("listType")?"ol":"ul",l=function(p){const b=p.createContainerElement("li");return b.getFillerOffset=ly,b}(n),h=n.createContainerElement(s,null);return n.insert(n.createPositionAt(h,0),l),e.bindElements(r,l),l}(l,n),n,r)}}const by=(r,t,e)=>{if(!e.consumable.test(t.item,r.name))return;const n=e.mapper.toViewElement(t.item),s=e.writer;s.breakContainer(s.createPositionBefore(n)),s.breakContainer(s.createPositionAfter(n)),s.rename("numbered"==t.attributeNewValue?"ol":"ul",n.parent)},vy=(r,t,e)=>{e.consumable.consume(t.item,r.name);const n=e.mapper.toViewElement(t.item).parent,s=e.writer;Hi(s,n,n.nextSibling),Hi(s,n.previousSibling,n)},wk=(r,t,e)=>{if(e.consumable.test(t.item,r.name)&&"listItem"!=t.item.name){let n=e.mapper.toViewPosition(t.range.start);const s=e.writer,l=[];for(;("ul"==n.parent.name||"ol"==n.parent.name)&&(n=s.breakContainer(n),"li"==n.parent.name);){const h=n,p=s.createPositionAt(n.parent,"end");if(!h.isEqual(p)){const b=s.remove(s.createRange(h,p));l.push(b)}n=s.createPositionAfter(n.parent)}if(l.length>0){for(let h=0;h0){const b=Hi(s,p,p.nextSibling);b&&b.parent==p&&n.offset--}}Hi(s,n.nodeBefore,n.nodeAfter)}}},ky=(r,t,e)=>{const n=e.mapper.toViewPosition(t.position);Hi(e.writer,n.nodeBefore,n.nodeAfter)},_y=(r,t,e)=>{if(e.consumable.consume(t.viewItem,{name:!0})){const n=e.writer,s=n.createElement("listItem"),l=function(b){let A=0,C=b.parent;for(;C;){if(C.is("element","li"))A++;else{const E=C.previousSibling;E&&E.is("element","li")&&A++}C=C.parent}return A}(t.viewItem);if(n.setAttribute("listIndent",l,s),n.setAttribute("listType",t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted",s),!e.safeInsert(s,t.modelCursor))return;const p=function(b,A,C){const{writer:E,schema:P}=C;let F=E.createPositionAfter(b);for(const j of A)if("ul"==j.name||"ol"==j.name)F=C.convertItem(j,F).modelCursor;else{const Y=C.convertItem(j,E.createPositionAt(b,"end")),$=Y.modelRange.start.nodeAfter;$&&$.is("element")&&!P.checkChild(b,$.name)&&(b=Y.modelCursor.parent.is("element","listItem")?Y.modelCursor.parent:xy(Y.modelCursor),F=E.createPositionAfter(b))}return F}(s,t.viewItem.getChildren(),e);t.modelRange=n.createRange(t.modelCursor,p),e.updateConversionResult(s,t)}},Ak=(r,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){const n=Array.from(t.viewItem.getChildren());for(const s of n)!s.is("element","li")&&!ts(s)&&s._remove()}},wy=(r,t,e)=>{if(e.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;const n=[...t.viewItem.getChildren()];let s=!1;for(const l of n)s&&!ts(l)&&l._remove(),ts(l)&&(s=!0)}};function xk(r){return(t,e)=>{if(e.isPhantom)return;const n=e.modelPosition.nodeBefore;if(n&&n.is("element","listItem")){const s=e.mapper.toViewElement(n),l=s.getAncestors().find(ts),h=r.createPositionAt(s,0).getWalker();for(const p of h){if("elementStart"==p.type&&p.item.is("element","li")){e.viewPosition=p.previousPosition;break}if("elementEnd"==p.type&&p.item==l){e.viewPosition=p.nextPosition;break}}}}}const Ay=function(r,[t,e]){let s,l=t.is("documentFragment")?t.getChild(0):t;if(s=e?this.createSelection(e):this.document.selection,l&&l.is("element","listItem")){const h=s.getFirstPosition();let p=null;if(h.parent.is("element","listItem")?p=h.parent:h.nodeBefore&&h.nodeBefore.is("element","listItem")&&(p=h.nodeBefore),p){const b=p.getAttribute("listIndent");if(b>0)for(;l&&l.is("element","listItem");)l._setAttribute("listIndent",l.getAttribute("listIndent")+b),l=l.nextSibling}}};function xy(r){const t=new Li({startPosition:r});let e;do{e=t.next()}while(!e.value.item.is("element","listItem"));return e.value.item}function Ck(r,t,e,n,s,l){const h=uk(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:r}),p=s.mapper,b=s.writer,A=h?h.getAttribute("listIndent"):null;let C;if(h)if(A==r){const E=p.toViewElement(h).parent;C=b.createPositionAfter(E)}else{const E=l.createPositionAt(h,"end");C=p.toViewPosition(E)}else C=e;C=hk(C);for(const E of[...n.getChildren()])ts(E)&&(C=b.move(b.createRangeOn(E),C).end,Hi(b,E,E.nextSibling),Hi(b,E.previousSibling,E))}function ts(r){return r.is("element","ol")||r.is("element","ul")}class Cy extends Lt{static get pluginName(){return"ListEditing"}static get requires(){return[Yc,Un,fy]}init(){const t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const e=t.data,n=t.editing;var s;t.model.document.registerPostFixer(h=>function(p,b){const A=p.document.differ.getChanges(),C=new Map;let E=!1;for(const Y of A)if("insert"==Y.type&&"listItem"==Y.name)P(Y.position);else if("insert"==Y.type&&"listItem"!=Y.name){if("$text"!=Y.name){const $=Y.position.nodeAfter;$.hasAttribute("listIndent")&&(b.removeAttribute("listIndent",$),E=!0),$.hasAttribute("listType")&&(b.removeAttribute("listType",$),E=!0),$.hasAttribute("listStyle")&&(b.removeAttribute("listStyle",$),E=!0),$.hasAttribute("listReversed")&&(b.removeAttribute("listReversed",$),E=!0),$.hasAttribute("listStart")&&(b.removeAttribute("listStart",$),E=!0);for(const st of Array.from(p.createRangeIn($)).filter(ft=>ft.item.is("element","listItem")))P(st.previousPosition)}P(Y.position.getShiftedBy(Y.length))}else"remove"==Y.type&&"listItem"==Y.name?P(Y.position):("attribute"==Y.type&&"listIndent"==Y.attributeKey||"attribute"==Y.type&&"listType"==Y.attributeKey)&&P(Y.range.start);for(const Y of C.values())F(Y),j(Y);return E;function P(Y){const $=Y.nodeBefore;if($&&$.is("element","listItem")){let st=$;if(C.has(st))return;for(let ft=st.previousSibling;ft&&ft.is("element","listItem");ft=st.previousSibling)if(st=ft,C.has(st))return;C.set($,st)}else{const st=Y.nodeAfter;st&&st.is("element","listItem")&&C.set(st,st)}}function F(Y){let $=0,st=null;for(;Y&&Y.is("element","listItem");){const ft=Y.getAttribute("listIndent");if(ft>$){let At;null===st?(st=ft-$,At=$):(st>ft&&(st=ft),At=ft-st),b.setAttribute("listIndent",At,Y),E=!0}else st=null,$=Y.getAttribute("listIndent")+1;Y=Y.nextSibling}}function j(Y){let $=[],st=null;for(;Y&&Y.is("element","listItem");){const ft=Y.getAttribute("listIndent");if(st&&st.getAttribute("listIndent")>ft&&($=$.slice(0,ft+1)),0!=ft)if($[ft]){const At=$[ft];Y.getAttribute("listType")!=At&&(b.setAttribute("listType",At,Y),E=!0)}else $[ft]=Y.getAttribute("listType");st=Y,Y=Y.nextSibling}}}(t.model,h)),n.mapper.registerViewToModelLength("li",_p),e.mapper.registerViewToModelLength("li",_p),n.mapper.on("modelToViewPosition",xk(n.view)),n.mapper.on("viewToModelPosition",(s=t.model,(h,p)=>{const b=p.viewPosition,A=b.parent,C=p.mapper;if("ul"==A.name||"ol"==A.name){if(b.isAtEnd){const E=C.toModelElement(b.nodeBefore),P=C.getModelLength(b.nodeBefore);p.modelPosition=s.createPositionBefore(E).getShiftedBy(P)}else{const E=C.toModelElement(b.nodeAfter);p.modelPosition=s.createPositionBefore(E)}h.stop()}else if("li"==A.name&&b.nodeBefore&&("ul"==b.nodeBefore.name||"ol"==b.nodeBefore.name)){const E=C.toModelElement(A);let P=1,F=b.nodeBefore;for(;F&&ts(F);)P+=C.getModelLength(F),F=F.previousSibling;p.modelPosition=s.createPositionBefore(E).getShiftedBy(P),h.stop()}})),e.mapper.on("modelToViewPosition",xk(n.view)),t.conversion.for("editingDowncast").add(h=>{var p;h.on("insert",wk,{priority:"high"}),h.on("insert:listItem",_k(t.model)),h.on("attribute:listType:listItem",by,{priority:"high"}),h.on("attribute:listType:listItem",vy,{priority:"low"}),h.on("attribute:listIndent:listItem",(p=t.model,(b,A,C)=>{if(!C.consumable.consume(A.item,"attribute:listIndent"))return;const E=C.mapper.toViewElement(A.item),P=C.writer;P.breakContainer(P.createPositionBefore(E)),P.breakContainer(P.createPositionAfter(E));const F=E.parent,j=F.previousSibling,Y=P.createRangeOn(F);P.remove(Y),j&&j.nextSibling&&Hi(P,j,j.nextSibling),Ck(A.attributeOldValue+1,A.range.start,Y.start,E,C,p),dk(A.item,E,C,p);for(const $ of A.item.getChildren())C.consumable.consume($,"insert")})),h.on("remove:listItem",function(p){return(b,A,C)=>{const E=C.mapper.toViewPosition(A.position).getLastMatchingPosition(st=>!st.item.is("element","li")).nodeAfter,P=C.writer;P.breakContainer(P.createPositionBefore(E)),P.breakContainer(P.createPositionAfter(E));const F=E.parent,j=F.previousSibling,Y=P.createRangeOn(F),$=P.remove(Y);j&&j.nextSibling&&Hi(P,j,j.nextSibling),Ck(C.mapper.toModelElement(E).getAttribute("listIndent")+1,A.position,Y.start,E,C,p);for(const st of P.createRangeIn($).getItems())C.mapper.unbindViewElement(st);b.stop()}}(t.model)),h.on("remove",ky,{priority:"low"})}),t.conversion.for("dataDowncast").add(h=>{h.on("insert",wk,{priority:"high"}),h.on("insert:listItem",_k(t.model))}),t.conversion.for("upcast").add(h=>{h.on("element:ul",Ak,{priority:"high"}),h.on("element:ol",Ak,{priority:"high"}),h.on("element:li",wy,{priority:"high"}),h.on("element:li",_y)}),t.model.on("insertContent",Ay,{priority:"high"}),t.commands.add("numberedList",new bk(t,"numbered")),t.commands.add("bulletedList",new bk(t,"bulleted")),t.commands.add("indentList",new fk(t,"forward")),t.commands.add("outdentList",new fk(t,"backward"));const l=n.view.document;this.listenTo(l,"enter",(h,p)=>{const b=this.editor.model.document,A=b.selection.getLastPosition().parent;b.selection.isCollapsed&&"listItem"==A.name&&A.isEmpty&&(this.editor.execute("outdentList"),p.preventDefault(),h.stop())},{context:"li"}),this.listenTo(l,"delete",(h,p)=>{if("backward"!==p.direction)return;const b=this.editor.model.document.selection;if(!b.isCollapsed)return;const A=b.getFirstPosition();if(!A.isAtStart)return;const C=A.parent;"listItem"===C.name&&(C.previousSibling&&"listItem"===C.previousSibling.name||(this.editor.execute("outdentList"),p.preventDefault(),h.stop()))},{context:"li"}),this.listenTo(t.editing.view.document,"tab",(h,p)=>{const b=p.shiftKey?"outdentList":"indentList";this.editor.commands.get(b).isEnabled&&(t.execute(b),p.stopPropagation(),p.preventDefault(),h.stop())},{context:"li"})}afterInit(){const t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}function _p(r){let t=1;for(const e of r.getChildren())if("ul"==e.name||"ol"==e.name)for(const n of e.getChildren())t+=_p(n);return t}Vo("Ctrl+Enter");var yk=lt(1199);function Ek(r,t){const e=(n,s,l)=>{if(!l.consumable.consume(s.item,n.name))return;const h=s.attributeNewValue,p=l.writer,b=l.mapper.toViewElement(s.item),A=[...b.getChildren()].find(E=>E.getCustomProperty("media-content"));p.remove(A);const C=r.getMediaViewElement(p,h,t);p.insert(p.createPositionAt(b,0),C)};return n=>{n.on("attribute:url:media",e)}}function Tk(r,t,e,n){return r.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(r,e,n),r.createSlot()])}function Sk(r){const t=r.getSelectedElement();return t&&t.is("element","media")?t:null}function Ik(r,t,e,n){r.change(s=>{const l=s.createElement("media",{url:t});r.insertObject(l,e,null,{setSelection:"on",findOptimalPosition:n?"auto":void 0})})}Rt()(yk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Vo("Ctrl+Enter");class Ey extends Jt{refresh(){const t=this.editor.model,e=t.document.selection,n=Sk(e);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=function(s){const l=s.getSelectedElement();return!!l&&"media"===l.name}(e)||function(s,l){let p=zf(s,l).start.parent;return p.isEmpty&&!l.schema.isLimit(p)&&(p=p.parent),l.schema.checkChild(p,"media")}(e,t)}execute(t){const e=this.editor.model,n=e.document.selection,s=Sk(n);s?e.change(l=>{l.setAttribute("url",t,s)}):Ik(e,t,n,!0)}}class Ty{constructor(t,e){const n=e.providers,s=e.extraProviders||[],l=new Set(e.removeProviders),h=n.concat(s).filter(p=>{const b=p.name;return b?!l.has(b):(kt("media-embed-no-provider-name",{provider:p}),!1)});this.locale=t,this.providerDefinitions=h}hasMedia(t){return!!this._getMedia(t)}getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n)}_getMedia(t){if(!t)return new Dk(this.locale);t=t.trim();for(const e of this.providerDefinitions){const n=e.html,s=Ze(e.url);for(const l of s){const h=this._getUrlMatches(t,l);if(h)return new Dk(this.locale,t,h,n)}}return null}_getUrlMatches(t,e){let n=t.match(e);if(n)return n;let s=t.replace(/^https?:\/\//,"");return n=s.match(e),n||(s=s.replace(/^www\./,""),n=s.match(e),n||null)}}class Dk{constructor(t,e,n,s){this.url=this._getValidUrl(e),this._locale=t,this._match=n,this._previewRenderer=s}getViewElement(t,e){const n={};let s;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");const l=this._getPreviewHtml(e);s=t.createRawElement("div",n,(h,p)=>{p.setContentOf(h,l)})}else this.url&&(n.url=this.url),s=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,s),s}_getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const t=new Dn,e=this._locale.t;return t.content='',t.viewBox="0 0 64 42",new Ei({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null}}var Mk=lt(7442);Rt()(Mk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class id extends Lt{constructor(t){super(t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:[/^dailymotion\.com\/video\/(\w+)/,/^dai.ly\/(\w+)/],html:e=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:e=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:e=>{const s=e[2];return`
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:e=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new Ty(t.locale,t.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const t=this.editor,e=t.model.schema,n=t.t,s=t.conversion,l=t.config.get("mediaEmbed.previewsInData"),h=t.config.get("mediaEmbed.elementName"),p=this.registry;t.commands.add("mediaEmbed",new Ey(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),s.for("dataDowncast").elementToStructure({model:"media",view:(b,{writer:A})=>{const C=b.getAttribute("url");return Tk(A,p,C,{elementName:h,renderMediaPreview:!!C&&l})}}),s.for("dataDowncast").add(Ek(p,{elementName:h,renderMediaPreview:l})),s.for("editingDowncast").elementToStructure({model:"media",view:(b,{writer:A})=>{const C=b.getAttribute("url");return E=Tk(A,p,C,{elementName:h,renderForEditingView:!0}),P=A,F=n("media widget"),P.setCustomProperty("media",!0,E),Ju(E,P,{label:F});var E,P,F}}),s.for("editingDowncast").add(Ek(p,{elementName:h,renderForEditingView:!0})),s.for("upcast").elementToElement({view:b=>["oembed",h].includes(b.name)&&b.getAttribute("url")?{name:!0}:null,model:(b,{writer:A})=>{const C=b.getAttribute("url");return p.hasMedia(C)?A.createElement("media",{url:C}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(b,{writer:A})=>{const C=b.getAttribute("data-oembed-url");return p.hasMedia(C)?A.createElement("media",{url:C}):null}}).add(b=>{b.on("element:figure",(A,C,E)=>{if(!E.consumable.consume(C.viewItem,{name:!0,classes:"media"}))return;const{modelRange:P,modelCursor:F}=E.convertChildren(C.viewItem,C.modelCursor);C.modelRange=P,C.modelCursor=F,Oe(P.getItems())||E.consumable.revert(C.viewItem,{name:!0,classes:"media"})})})}}const Iy=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class Dy extends Lt{constructor(t){super(t),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[nb,Un,db]}static get pluginName(){return"AutoMediaEmbed"}init(){const t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",()=>{const s=e.selection.getFirstRange(),l=ii.fromPosition(s.start);l.stickiness="toPrevious";const h=ii.fromPosition(s.end);h.stickiness="toNext",e.once("change:data",()=>{this._embedMediaBetweenPositions(l,h),l.detach(),h.detach()},{priority:"high"})}),t.commands.get("undo").on("execute",()=>{this._timeoutId&&(Yt.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(t,e){const n=this.editor,s=n.plugins.get(id).registry,l=new Ni(t,e),h=l.getWalker({ignoreElementEnd:!0});let p="";for(const b of h)b.item.is("$textProxy")&&(p+=b.item.data);p=p.trim(),p.match(Iy)&&s.hasMedia(p)&&n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=ii.fromPosition(t),this._timeoutId=Yt.window.setTimeout(()=>{n.model.change(b=>{this._timeoutId=null,b.remove(l),l.detach();let A=null;"$graveyard"!==this._positionToInsert.root.rootName&&(A=this._positionToInsert),Ik(n.model,p,A,!1),this._positionToInsert.detach(),this._positionToInsert=null}),n.plugins.get(Un).requestUndoOnBackspace()},100)):l.detach()}}var Lk=lt(9292);Rt()(Lk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ly extends Wt{constructor(t,e){super(e);const n=e.t;this.focusTracker=new Ye,this.keystrokes=new vi,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(n("Save"),Ae.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",s=>!!s),this.cancelButtonView=this._createButton(n("Cancel"),Ae.cancel,"ck-button-cancel","cancel"),this._focusables=new Ri,this._focusCycler=new en({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=t,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),L({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(e=>{this._focusables.add(e),this.focusTracker.add(e.element)}),this.keystrokes.listenTo(this.element);const t=e=>e.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(t){this.urlInputView.fieldView.element.value=t.trim()}isValid(){this.resetFormStatus();for(const t of this._validators){const e=t(this);if(e)return this.urlInputView.errorText=e,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const t=this.locale.t,e=new Cr(this.locale,Pc),n=e.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",()=>{e.infoText=n.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=n.element.value.trim()}),e}_createButton(t,e,n,s){const l=new ve(this.locale);return l.set({label:t,icon:e,tooltip:!0}),l.extendTemplate({attributes:{class:n}}),s&&l.delegate("execute").to(this,s),l}}class Py extends Lt{static get requires(){return[id]}static get pluginName(){return"MediaEmbedUI"}init(){const t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",n=>{const s=Zn(n);return this._setUpDropdown(s,e),s})}_setUpDropdown(t,e){const n=this.editor,s=n.t,l=t.buttonView,h=n.plugins.get(id).registry;t.once("change:isOpen",()=>{const p=new(ct(Ly))((b=n.t,A=h,[C=>{if(!C.url.length)return b("The URL must not be empty.")},C=>{if(!A.hasMedia(C.url))return b("This media URL is not supported.")}]),n.locale);var b,A;t.panelView.children.add(p),l.on("open",()=>{p.disableCssTransitions(),p.url=e.value||"",p.urlInputView.fieldView.select(),p.enableCssTransitions()},{priority:"low"}),t.on("submit",()=>{p.isValid()&&(n.execute("mediaEmbed",p.url),n.editing.view.focus())}),t.on("change:isOpen",()=>p.resetFormStatus()),t.on("cancel",()=>{n.editing.view.focus()}),p.delegate("submit","cancel").to(t),p.urlInputView.fieldView.bind("value").to(e,"value"),p.urlInputView.bind("isEnabled").to(e,"isEnabled")}),t.bind("isEnabled").to(e),l.set({label:s("Insert media"),icon:'',tooltip:!0})}}var Pk=lt(4652);function By(r){if(r.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(r){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return r;default:return null}}function Nk(r,t,e){const n=t.parent,s=e.createElement(r.type),l=n.getChildIndex(t)+1;return e.insertChild(l,s,n),r.style&&e.setStyle("list-style-type",r.style,s),r.startIndex&&r.startIndex>1&&e.setAttribute("start",r.startIndex,s),s}function Fy(r){const t={},e=r.getStyle("mso-list");if(e){const n=e.match(/(^|\s{1,100})l(\d+)/i),s=e.match(/\s{0,100}lfo(\d+)/i),l=e.match(/\s{0,100}level(\d+)/i);n&&s&&l&&(t.id=n[2],t.order=s[1],t.indent=parseInt(l[1]))}return t}function Ry(r){return btoa(r.match(/\w{2}/g).map(t=>String.fromCharCode(parseInt(t,16))).join(""))}Rt()(Pk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Zy=//i,Uy=/xmlns:o="urn:schemas-microsoft-com/i;class jy{constructor(t){this.document=t}isActive(t){return Zy.test(t)||Uy.test(t)}execute(t){const{body:e,stylesString:n}=t._parsedData;(function Oy(r,t){if(!r.childCount)return;const e=new ko(r.document),n=function(h,p){const b=p.createRangeIn(h),A=new Ti({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),C=[];for(const E of b)if("elementStart"===E.type&&A.match(E.item)){const P=Fy(E.item);C.push({element:E.item,id:P.id,order:P.order,indent:P.indent})}return C}(r,e);if(!n.length)return;let s=null,l=1;n.forEach((h,p)=>{const b=function(j,Y){if(!j)return!0;if(j.id!==Y.id)return Y.indent-j.indent!=1;const $=Y.element.previousSibling;return!$||!((st=$).is("element","ol")||st.is("element","ul"));var st}(n[p-1],h),C=(P=h,(E=b?null:n[p-1])?P.indent-E.indent:P.indent-1);var E,P;if(b&&(s=null,l=1),!s||0!==C){const j=function(Y,$){const ft=/mso-level-number-format:([^;]{0,100});/gi,At=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,Ft=new RegExp(`@list l${Y.id}:level${Y.indent}\\s*({[^}]*)`,"gi").exec($);let jt="decimal",ae="ol",ce=null;if(Ft&&Ft[1]){const ze=ft.exec(Ft[1]);if(ze&&ze[1]&&(jt=ze[1].trim(),ae="bullet"!==jt&&"image"!==jt?"ol":"ul"),"bullet"===jt){const Re=function(is){const vn=function(qn){if(qn.getChild(0).is("$text"))return null;for(const Yn of qn.getChildren()){if(!Yn.is("element","span"))continue;const ir=Yn.getChild(0);if(ir)return ir.is("$text")?ir:ir.getChild(0)}return null}(is);if(!vn)return null;const Gi=vn._data;return"o"===Gi?"circle":"\xb7"===Gi?"disc":"\xa7"===Gi?"square":null}(Y.element);Re&&(jt=Re)}else{const Re=At.exec(Ft[1]);Re&&Re[1]&&(ce=parseInt(Re[1]))}}return{type:ae,startIndex:ce,style:By(jt)}}(h,t);if(s)if(h.indent>l){const Y=s.getChild(s.childCount-1),$=Y.getChild(Y.childCount-1);s=Nk(j,$,e),l+=1}else h.indentl.indexOf(j)>-1)?C.push(P):P.getAttribute("src")||C.push(P)}for(const E of C)p.remove(E)})(n,r,e),function(l,h,p){const b=p.createRangeIn(h),A=[];for(const P of b)if("elementStart"==P.type&&P.item.is("element","v:shape")){const F=P.item.getAttribute("id");if(l.includes(F))continue;C(P.item.parent.getChildren(),F)||A.push(P.item)}for(const P of A){const F={src:E(P)};P.hasAttribute("alt")&&(F.alt=P.getAttribute("alt"));const j=p.createElement("img",F);p.insertChild(P.index+1,j,P.parent)}function C(P,F){for(const j of P)if(j.is("element")&&("img"==j.name&&j.getAttribute("v:shapes")==F||C(j.getChildren(),F)))return!0;return!1}function E(P){for(const F of P.getChildren())if(F.is("element")&&F.getAttribute("src"))return F.getAttribute("src")}}(n,r,e),function(l,h){const p=h.createRangeIn(l),b=new Ti({name:/v:(.+)/}),A=[];for(const C of p)"elementStart"==C.type&&b.match(C.item)&&A.push(C.item);for(const C of A)h.remove(C)}(r,e);const s=function(l,h){const p=h.createRangeIn(l),b=new Ti({name:"img"}),A=[];for(const C of p)C.item.is("element")&&b.match(C.item)&&C.item.getAttribute("src").startsWith("file://")&&A.push(C.item);return A}(r,e);s.length&&function(l,h,p){if(l.length===h.length)for(let b=0;bh.is("element")&&!n.includes(h.name)&&!s.includes(h.name),{direction:t}),"forward"==t?l.nodeAfter:l.nodeBefore}function Bk(r,t){return!!r&&r.is("element")&&t.includes(r.name)}const Vy=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class qy{constructor(t){this.document=t}isActive(t){return Vy.test(t)}execute(t){const e=new ko(this.document),{body:n}=t._parsedData;(function(s,l){for(const h of s.getChildren())if(h.is("element","b")&&"normal"===h.getStyle("font-weight")){const p=s.getChildIndex(h);l.remove(h),l.insertChild(p,h.getChildren(),s)}})(n,e),function(s,l){for(const h of l.createRangeIn(s)){const p=h.item;if(p.is("element","li")){const b=p.getChild(0);b&&b.is("element","p")&&l.unwrapElement(b)}}}(n,e),function(s,l){const h=new Or(l.document.stylesProcessor),p=new ha(h,{renderingMode:"data"}),b=p.blockElements,A=p.inlineObjectElements,C=[];for(const E of l.createRangeIn(s)){const P=E.item;if(P.is("element","br")){const F=Ok(P,"forward",l,{blockElements:b,inlineObjectElements:A}),j=Ok(P,"backward",l,{blockElements:b,inlineObjectElements:A}),Y=Bk(F,b);(Bk(j,b)||Y)&&C.push(P)}}for(const E of C)E.hasClass("Apple-interchange-newline")?l.remove(E):l.replace(E,l.createElement("p"))}(n,e),t.content=n}}const Yy=/(\s+)<\/span>/g,(t,e)=>1===e.length?" ":Array(e.length+1).join("\xa0 ").substr(0,e.length))}function Fe(r,t,e,n,s=1){null!=t&&null!=s&&t>s?n.setAttribute(r,t,e):n.removeAttribute(r,e)}function $o(r,t,e={}){const n=r.createElement("tableCell",e);return r.insertElement("paragraph",n),r.insert(n,t),n}function wp(r,t){const n=parseInt(t.parent.parent.getAttribute("headingColumns")||"0"),{column:s}=r.getCellLocation(t);return!!n&&s{t.on(`element:${r}`,(e,n,{writer:s})=>{if(!n.modelRange)return;const l=n.modelRange.start.nodeAfter,h=s.createPositionAt(l,0);if(n.viewItem.isEmpty)return void s.insertElement("paragraph",h);const p=Array.from(l.getChildren());if(p.every(b=>b.is("element","$marker"))){const b=s.createElement("paragraph");s.insert(b,s.createPositionAt(l,0));for(const A of p)s.move(s.createRangeOn(A),s.createPositionAt(b,"end"))}},{priority:"low"})}}function Qy(r){let t=0,e=0;const n=Array.from(r.getChildren()).filter(s=>"th"===s.name||"td"===s.name);for(;e1||h>1)&&this._recordSpans(s,h,l),this._shouldSkipSlot()||(e=this._formatOutValue(s)),this._nextCellAtColumn=this._column+l}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}skipRow(t){this._skipRows.add(t)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(t,e=this._row,n=this._column){return{done:!1,value:new Xy(this,t,e,n)}}_shouldSkipSlot(){return this._skipRows.has(this._row)||this._rowthis._endColumn}_getSpanned(){const t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}_recordSpans(t,e,n){const s={cell:t,row:this._row,column:this._column};for(let l=this._row;l0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const t=this._getRowLength(0);for(let e=this._startRow;!this._jumpedToStartRow;e--)t===this._getRowLength(e)&&(this._row=e,this._rowIndex=e,this._jumpedToStartRow=!0)}_getRowLength(t){return[...this._table.getChild(t).getChildren()].reduce((e,n)=>e+parseInt(n.getAttribute("colspan")||"1"),0)}}class Xy{constructor(t,e,n,s){this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=s,this._cellIndex=t._cellIndex,this._rowIndex=t._rowIndex,this._table=t._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Rk(r,t){return(e,{writer:n})=>{const s=e.getAttribute("headingRows")||0,l=n.createContainerElement("table",null,[]),h=n.createContainerElement("figure",{class:"table"},l);s>0&&n.insert(n.createPositionAt(l,"end"),n.createContainerElement("thead",null,n.createSlot(p=>p.is("element","tableRow")&&p.indexp.is("element","tableRow")&&p.index>=s)));for(const{positionOffset:p,filter:b}of t.additionalSlots)n.insert(n.createPositionAt(l,p),n.createSlot(b));return n.insert(n.createPositionAt(l,"after"),n.createSlot(p=>!p.is("element","tableRow")&&!t.additionalSlots.some(({filter:b})=>b(p)))),t.asWidget?((b=n).setCustomProperty("table",!0,p=h),Ju(p,b,{hasSelectionHandle:!0})):h;var p,b}}function Zk(r={}){return(t,{writer:e})=>{const n=t.parent,s=n.parent,l=s.getChildIndex(n),h=new xe(s,{row:l}),p=s.getAttribute("headingRows")||0,b=s.getAttribute("headingColumns")||0;let A=null;for(const C of h)if(C.cell==t){const E=C.row{if(!t.parent.is("element","tableCell")||!jk(t))return null;if(r.asWidget)return e.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const n=e.createContainerElement("p");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}}function jk(r){return 1==r.parent.childCount&&!!r.getAttributeKeys().next().done}class Ky extends Jt{refresh(){const t=this.editor.model;this.isEnabled=function(s,l){const h=s.getFirstPosition().parent;return l.checkChild(h===h.root?h:h.parent,"table")}(t.document.selection,t.schema)}execute(t={}){const e=this.editor,n=e.model,s=e.plugins.get("TableUtils"),l=e.config.get("table.defaultHeadings.rows"),h=e.config.get("table.defaultHeadings.columns");void 0===t.headingRows&&l&&(t.headingRows=l),void 0===t.headingColumns&&h&&(t.headingColumns=h),n.change(p=>{const b=s.createTable(p,t);n.insertObject(b,null,null,{findOptimalPosition:"auto"}),p.setSelection(p.createPositionAt(b.getNodeByPath([0,0,0]),0))})}}class Vk extends Jt{constructor(t,e={}){super(t),this.order=e.order||"below"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),s="above"===this.order,l=n.getSelectionAffectedTableCells(e),h=n.getRowIndexes(l),p=s?h.first:h.last,b=l[0].findAncestor("table");n.insertRows(b,{at:s?p:p+1,copyStructureFromAbove:!s})}}class qk extends Jt{constructor(t,e={}){super(t),this.order=e.order||"right"}refresh(){const t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}execute(){const t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),s="left"===this.order,l=n.getSelectionAffectedTableCells(e),h=n.getColumnIndexes(l),p=s?h.first:h.last,b=l[0].findAncestor("table");n.insertColumns(b,{columns:1,at:s?p:p+1})}}class Yk extends Jt{constructor(t,e={}){super(t),this.direction=e.direction||"horizontally"}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===t.length}execute(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?t.splitCellHorizontally(e,2):t.splitCellVertically(e,2)}}function Hk(r,t,e){const{startRow:n,startColumn:s,endRow:l,endColumn:h}=t,p=e.createElement("table"),b=l-n+1;for(let C=0;C0&&Fe("headingRows",Y-P,C,j,0);const $=parseInt(E.getAttribute("headingColumns")||"0");$>0&&Fe("headingColumns",$-F,C,j,0)}(p,r,n,s,e),p}function Gk(r,t,e=0){const n=[],s=new xe(r,{startRow:e,endRow:t-1});for(const l of s){const{row:h,cellHeight:p}=l;h1&&(p.rowspan=b);const A=parseInt(r.getAttribute("colspan")||"1");A>1&&(p.colspan=A);const C=l+h,E=[...new xe(s,{startRow:l,endRow:C,includeAllSlots:!0})];let P,F=null;for(const j of E){const{row:Y,column:$,cell:st}=j;st===r&&void 0===P&&(P=$),void 0!==P&&P===$&&Y===C&&(F=$o(e,j.getPositionBefore(),p))}return Fe("rowspan",h,r,e),F}function Qk(r,t){const e=[],n=new xe(r);for(const s of n){const{column:l,cellWidth:h}=s;l1&&(l.colspan=h);const p=parseInt(r.getAttribute("rowspan")||"1");p>1&&(l.rowspan=p);const b=$o(n,n.createPositionAfter(r),l);return Fe("colspan",s,r,n),b}function Kk(r,t,e,n,s,l){const h=parseInt(r.getAttribute("colspan")||"1"),p=parseInt(r.getAttribute("rowspan")||"1");e+h-1>s&&Fe("colspan",s-e+1,r,l,1),t+p-1>n&&Fe("rowspan",n-t+1,r,l,1)}function Ap(r,t){const e=t.getColumns(r),n=new Array(e).fill(0);for(const{column:l}of new xe(r))n[l]++;const s=n.reduce((l,h,p)=>h?l:[...l,p],[]);return s.length>0&&(t.removeColumns(r,{at:s[s.length-1]}),!0)}function xp(r,t){const e=[],n=t.getRows(r);for(let s=0;s0&&(t.removeRows(r,{at:e[e.length-1]}),!0)}function Cp(r,t){Ap(r,t)||xp(r,t)}function Jk(r,t){const e=Array.from(new xe(r,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));return e.every(({cellHeight:s})=>1===s)?t.lastRow:t.lastRow+(e[0].cellHeight-1)}function $k(r,t){const e=Array.from(new xe(r,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));return e.every(({cellWidth:s})=>1===s)?t.lastColumn:t.lastColumn+(e[0].cellWidth-1)}class nd extends Jt{constructor(t,e){super(t),this.direction=e.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}execute(){const t=this.editor.model,e=t.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(e.selection)[0],s=this.value,l=this.direction;t.change(h=>{const p="right"==l||"down"==l,b=p?n:s,A=p?s:n,C=A.parent;var Y,$,st;$=b,st=h,t0(Y=A)||(t0($)&&st.remove(st.createRangeIn($)),st.move(st.createRangeIn(Y),st.createPositionAt($,"end"))),st.remove(Y);const E=this.isHorizontal?"colspan":"rowspan",P=parseInt(n.getAttribute(E)||"1"),F=parseInt(s.getAttribute(E)||"1");h.setAttribute(E,P+F,b),h.setSelection(h.createRangeIn(b));const j=this.editor.plugins.get("TableUtils");Cp(C.findAncestor("table"),j)})}_getMergeableCell(){const t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(!n)return;const s=this.isHorizontal?function(p,b,A){const P="right"==b?p.nextSibling:p.previousSibling,F=(p.parent.parent.getAttribute("headingColumns")||0)>0;if(!P)return;const j="right"==b?p:P,Y="right"==b?P:p,{column:$}=A.getCellLocation(j),{column:st}=A.getCellLocation(Y),ft=parseInt(j.getAttribute("colspan")||"1"),At=wp(A,j),Ft=wp(A,Y);return F&&At!=Ft?void 0:$+ft===st?P:void 0}(n,this.direction,e):function(p,b,A){const C=p.parent,E=C.parent,P=E.getChildIndex(C);if("down"==b&&P===A.getRows(E)-1||"up"==b&&0===P)return null;const F=parseInt(p.getAttribute("rowspan")||"1"),j=E.getAttribute("headingRows")||0;if(j&&("down"==b&&P+F===j||"up"==b&&P===j))return null;const st=parseInt(p.getAttribute("rowspan")||"1"),ft="down"==b?P+st:P,At=[...new xe(E,{endRow:ft})],jt=At.find(ce=>ce.cell===p).column,ae=At.find(({row:ce,cellHeight:ze,column:Re})=>Re===jt&&("down"==b?ce===ft:ft===ce+ze));return ae&&ae.cell?ae.cell:null}(n,this.direction,e);if(!s)return;const l=this.isHorizontal?"rowspan":"colspan",h=parseInt(n.getAttribute(l)||"1");return parseInt(s.getAttribute(l)||"1")===h?s:void 0}}function t0(r){const t=r.getChild(0);return 1==r.childCount&&t.is("element","paragraph")&&t.isEmpty}class Jy extends Jt{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const s=n.findAncestor("table"),l=t.getRows(s)-1,h=t.getRowIndexes(e);this.isEnabled=!(0===h.first&&h.last===l)}else this.isEnabled=!1}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),s=e.getRowIndexes(n),l=n[0],h=l.findAncestor("table"),p=e.getCellLocation(l).column;t.change(b=>{e.removeRows(h,{at:s.first,rows:s.last-s.first+1});const C=function(E,P,F,j){const Y=E.getChild(Math.min(P,j-1));let $=Y.getChild(0),st=0;for(const ft of Y.getChildren()){if(st>F)return $;$=ft,st+=parseInt(ft.getAttribute("colspan")||"1")}return $}(h,s.first,p,e.getRows(h));b.setSelection(b.createPositionAt(C,0))})}}class $y extends Jt{refresh(){const t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){const s=n.findAncestor("table"),l=t.getColumns(s),{first:h,last:p}=t.getColumnIndexes(e);this.isEnabled=p-hb.cell===e).column,last:l.find(b=>b.cell===n).column},p=(b=l,A=e,C=n,E=h,parseInt(C.getAttribute("colspan")||"1")>1?C:A.previousSibling||C.nextSibling?C.nextSibling||A.previousSibling:E.first?b.reverse().find(({column:F})=>FF>E.last).cell);var b,A,C,E;this.editor.model.change(b=>{t.removeColumns(s,{at:h.first,columns:h.last-h.first+1}),b.setSelection(b.createPositionAt(p,0))})}}class t2 extends Jt{refresh(){const n=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),s=n.length>0;this.isEnabled=s,this.value=s&&n.every(l=>this._isInHeading(l,l.parent.parent))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,s=e.getSelectionAffectedTableCells(n.document.selection),l=s[0].findAncestor("table"),{first:h,last:p}=e.getRowIndexes(s),b=this.value?h:p+1,A=l.getAttribute("headingRows")||0;n.change(C=>{if(b){const E=Gk(l,b,b>A?A:0);for(const{cell:P}of E)Wk(P,b,C)}Fe("headingRows",b,l,C,0)})}_isInHeading(t,e){const n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index0;this.isEnabled=s,this.value=s&&n.every(l=>wp(e,l))}execute(t={}){if(t.forceValue===this.value)return;const e=this.editor.plugins.get("TableUtils"),n=this.editor.model,s=e.getSelectionAffectedTableCells(n.document.selection),l=s[0].findAncestor("table"),{first:h,last:p}=e.getColumnIndexes(s),b=this.value?h:p+1;n.change(A=>{if(b){const C=Qk(l,b);for(const{cell:E,column:P}of C)Xk(E,P,b,A)}Fe("headingColumns",b,l,A,0)})}}class si extends Lt{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(t){const e=t.parent,n=e.parent,s=n.getChildIndex(e),l=new xe(n,{row:s});for(const{cell:h,row:p,column:b}of l)if(h===t)return{row:p,column:b}}createTable(t,e){const n=t.createElement("table"),s=e.rows||2,l=e.columns||2;return yp(t,n,0,s,l),e.headingRows&&Fe("headingRows",Math.min(e.headingRows,s),n,t,0),e.headingColumns&&Fe("headingColumns",Math.min(e.headingColumns,l),n,t,0),n}insertRows(t,e={}){const n=this.editor.model,s=e.at||0,l=e.rows||1,h=void 0!==e.copyStructureFromAbove,p=e.copyStructureFromAbove?s-1:s,b=this.getRows(t),A=this.getColumns(t);if(s>b)throw new W("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change(C=>{const E=t.getAttribute("headingRows")||0;if(E>s&&Fe("headingRows",E+l,t,C,0),!h&&(0===s||s===b))return void yp(C,t,s,l,A);const P=h?Math.max(s,p):s,F=new xe(t,{endRow:P}),j=new Array(A).fill(1);for(const{row:Y,column:$,cellHeight:st,cellWidth:ft,cell:At}of F){const Ft=Y+st-1,jt=Y<=p&&p<=Ft;Y0&&$o(C,At,ft>1?{colspan:ft}:void 0),st+=Math.abs(ft)-1}}})}insertColumns(t,e={}){const s=e.at||0,l=e.columns||1;this.editor.model.change(h=>{const p=t.getAttribute("headingColumns");sl-1)throw new W("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});n.change(b=>{const A={first:h,last:p},{cellsToMove:C,cellsToTrim:E}=function(P,{first:F,last:j}){const Y=new Map,$=[];for(const{row:st,column:ft,cellHeight:At,cell:Ft}of new xe(P,{endRow:j})){const jt=st+At-1;if(st>=F&&st<=j&&jt>j&&Y.set(ft,{cell:Ft,rowspan:At-(j-st+1)}),st=F){let ae;ae=jt>=j?j-F+1:jt-F+1,$.push({cell:Ft,rowspan:At-ae})}}return{cellsToMove:Y,cellsToTrim:$}}(t,A);C.size&&function(P,F,j,Y){const st=[...new xe(P,{includeAllSlots:!0,row:F})],ft=P.getChild(F);let At;for(const{column:Ft,cell:jt,isAnchor:ae}of st)if(j.has(Ft)){const{cell:ce,rowspan:ze}=j.get(Ft),Re=At?Y.createPositionAfter(At):Y.createPositionAt(ft,0);Y.move(Y.createRangeOn(ce),Re),Fe("rowspan",ze,ce,Y),At=ce}else ae&&(At=jt)}(t,p+1,C,b);for(let P=p;P>=h;P--)b.remove(t.getChild(P));for(const{rowspan:P,cell:F}of E)Fe("rowspan",P,F,b);(function(P,{first:F,last:j},Y){const $=P.getAttribute("headingRows")||0;F<$&&Fe("headingRows",j<$?$-(j-F+1):F,P,Y,0)})(t,A,b),Ap(t,this)||xp(t,this)})}removeColumns(t,e){const s=e.at,h=e.at+(e.columns||1)-1;this.editor.model.change(p=>{!function(A,C,E){const P=A.getAttribute("headingColumns")||0;if(P&&C.firste.is("element","tableColumnGroup"))}(r);return t?Array.from(t.getChildren()):[]}(t);for(let A=h;A>=s;A--){for(const{cell:C,column:E,cellWidth:P}of[...new xe(t)])E<=A&&P>1&&E+P>A?Fe("colspan",P-1,C,p):E===A&&p.remove(C);if(b[A]){const C=0===A?b[1]:b[A-1],E=parseFloat(b[A].getAttribute("columnWidth")),P=parseFloat(C.getAttribute("columnWidth"));p.remove(b[A]),p.setAttribute("columnWidth",E+P+"%",C)}}xp(t,this)||Ap(t,this)})}splitCellVertically(t,e=2){const n=this.editor.model,s=t.parent.parent,l=parseInt(t.getAttribute("rowspan")||"1"),h=parseInt(t.getAttribute("colspan")||"1");n.change(p=>{if(h>1){const{newCellsSpan:b,updatedSpan:A}=e0(h,e);Fe("colspan",A,t,p);const C={};b>1&&(C.colspan=b),l>1&&(C.rowspan=l),es(h>e?e-1:h-1,p,p.createPositionAfter(t),C)}if(hj===t),E=A.filter(({cell:j,cellWidth:Y,column:$})=>j!==t&&$===C||$C);for(const{cell:j,cellWidth:Y}of E)p.setAttribute("colspan",Y+b,j);const P={};l>1&&(P.rowspan=l),es(b,p,p.createPositionAfter(t),P);const F=s.getAttribute("headingColumns")||0;F>C&&Fe("headingColumns",F+b,s,p)}})}splitCellHorizontally(t,e=2){const n=this.editor.model,s=t.parent,l=s.parent,h=l.getChildIndex(s),p=parseInt(t.getAttribute("rowspan")||"1"),b=parseInt(t.getAttribute("colspan")||"1");n.change(A=>{if(p>1){const C=[...new xe(l,{startRow:h,endRow:h+p-1,includeAllSlots:!0})],{newCellsSpan:E,updatedSpan:P}=e0(p,e);Fe("rowspan",P,t,A);const{column:F}=C.find(({cell:Y})=>Y===t),j={};E>1&&(j.rowspan=E),b>1&&(j.colspan=b);for(const Y of C){const{column:$,row:st}=Y;st>=h+P&&$===F&&(st+h+P)%E==0&&es(1,A,Y.getPositionBefore(),j)}}if(ph&&A.setAttribute("rowspan",Y+C,j);const P={};b>1&&(P.colspan=b),yp(A,l,h+1,C,1,P);const F=l.getAttribute("headingRows")||0;F>h&&Fe("headingRows",F+C,l,A)}})}getColumns(t){return[...t.getChild(0).getChildren()].reduce((e,n)=>e+parseInt(n.getAttribute("colspan")||"1"),0)}getRows(t){return Array.from(t.getChildren()).reduce((e,n)=>n.is("element","tableRow")?e+1:e,0)}createTableWalker(t,e={}){return new xe(t,e)}getSelectedTableCells(t){const e=[];for(const n of this.sortRanges(t.getRanges())){const s=n.getContainedElement();s&&s.is("element","tableCell")&&e.push(s)}return e}getTableCellsContainingSelection(t){const e=[];for(const n of t.getRanges()){const s=n.start.findAncestor("tableCell");s&&e.push(s)}return e}getSelectionAffectedTableCells(t){const e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}getRowIndexes(t){const e=t.map(n=>n.parent.index);return this._getFirstLastIndexesObject(e)}getColumnIndexes(t){const e=t[0].findAncestor("table"),n=[...new xe(e)].filter(s=>t.includes(s.cell)).map(s=>s.column);return this._getFirstLastIndexesObject(n)}isSelectionRectangular(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;const e=new Set,n=new Set;let s=0;for(const h of t){const{row:p,column:b}=this.getCellLocation(h),A=parseInt(h.getAttribute("rowspan"))||1,C=parseInt(h.getAttribute("colspan"))||1;e.add(p),n.add(b),A>1&&e.add(p+A-1),C>1&&n.add(b+C-1),s+=A*C}return function(h,p){const b=Array.from(h.values()),A=Array.from(p.values());return(Math.max(...b)-Math.min(...b)+1)*(Math.max(...A)-Math.min(...A)+1)}(e,n)==s}sortRanges(t){return Array.from(t).sort(r2)}_getFirstLastIndexesObject(t){const e=t.sort((n,s)=>n-s);return{first:e[0],last:e[e.length-1]}}_areCellInTheSameTableSection(t){const e=t[0].findAncestor("table"),n=this.getRowIndexes(t),s=parseInt(e.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,s))return!1;const l=this.getColumnIndexes(t),h=parseInt(e.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(l,h)}_areIndexesInSameSection({first:t,last:e},n){return t{const s=e.getSelectedTableCells(t.document.selection),l=s.shift(),{mergeWidth:h,mergeHeight:p}=function(b,A,C){let E=0,P=0;for(const st of A){const{row:ft,column:At}=C.getCellLocation(st);E=o0(st,At,E,"colspan"),P=o0(st,ft,P,"rowspan")}const{row:F,column:j}=C.getCellLocation(b);return{mergeWidth:E-j,mergeHeight:P-F}}(l,s,e);Fe("colspan",h,l,n),Fe("rowspan",p,l,n);for(const b of s)a2(b,l,n);Cp(l.findAncestor("table"),e),n.setSelection(l,"in")})}}function a2(r,t,e){n0(r)||(n0(t)&&e.remove(e.createRangeIn(t)),e.move(e.createRangeIn(r),e.createPositionAt(t,"end"))),e.remove(r)}function n0(r){const t=r.getChild(0);return 1==r.childCount&&t.is("element","paragraph")&&t.isEmpty}function o0(r,t,e,n){const s=parseInt(r.getAttribute(n)||"1");return Math.max(e,t+s)}class l2 extends Jt{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),s=e.getRowIndexes(n),l=n[0].findAncestor("table"),h=[];for(let p=s.first;p<=s.last;p++)for(const b of l.getChild(p).getChildren())h.push(t.createRangeOn(b));t.change(p=>{p.setSelection(h)})}}class c2 extends Jt{constructor(t){super(t),this.affectsData=!1}refresh(){const t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}execute(){const t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),s=n[0],l=n.pop(),h=s.findAncestor("table"),p=t.getCellLocation(s),b=t.getCellLocation(l),A=Math.min(p.column,b.column),C=Math.max(p.column,b.column),E=[];for(const P of new xe(h,{startColumn:A,endColumn:C}))E.push(e.createRangeOn(P.cell));e.change(P=>{P.setSelection(E)})}}function h2(r,t){let e=!1;const n=function(s){const l=parseInt(s.getAttribute("headingRows")||"0"),h=Array.from(s.getChildren()).reduce((b,A)=>A.is("element","tableRow")?b+1:b,0),p=[];for(const{row:b,cell:A,cellHeight:C}of new xe(s)){if(C<2)continue;const E=bE&&p.push({cell:A,rowspan:E-b})}return p}(r);if(n.length){e=!0;for(const s of n)Fe("rowspan",s.rowspan,s.cell,t,1)}return e}function u2(r,t){let e=!1;const n=function(p){const b=new Array(p.childCount).fill(0);for(const{rowIndex:A}of new xe(p,{includeAllSlots:!0}))b[A]++;return b}(r),s=[];for(const[p,b]of n.entries())!b&&r.getChild(p).is("element","tableRow")&&s.push(p);if(s.length){e=!0;for(const p of s.reverse())t.remove(r.getChild(p)),n.splice(p,1)}const l=n.filter((p,b)=>r.getChild(b).is("element","tableRow")),h=l[0];if(!l.every(p=>p===h)){const p=l.reduce((b,A)=>A>b?A:b,0);for(const[b,A]of l.entries()){const C=p-A;if(C){for(let E=0;En.is("$text"));for(const n of e)t.wrap(t.createRangeOn(n),"paragraph");return!!e.length}function f2(r){return!!r.position.parent.is("element","tableCell")&&("insert"==r.type&&"$text"==r.name||"remove"==r.type)}function b2(r,t){if(!r.is("element","paragraph"))return!1;const e=t.toViewElement(r);return!!e&&jk(r)!==e.is("element","span")}var s0=lt(3881);Rt()(s0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class k2 extends Lt{constructor(t){super(t),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[si]}init(){const t=this.editor,e=t.model,n=e.schema,s=t.conversion,l=t.plugins.get(si);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),s.for("upcast").add(h=>{h.on("element:figure",(p,b,A)=>{if(!A.consumable.test(b.viewItem,{name:!0,classes:"table"}))return;const C=function(P){for(const F of P.getChildren())if(F.is("element","table"))return F}(b.viewItem);if(!C||!A.consumable.test(C,{name:!0}))return;A.consumable.consume(b.viewItem,{name:!0,classes:"table"});const E=Oe(A.convertItem(C,b.modelCursor).modelRange.getItems());E?(A.convertChildren(b.viewItem,A.writer.createPositionAt(E,"end")),A.updateConversionResult(E,b)):A.consumable.revert(b.viewItem,{name:!0,classes:"table"})})}),s.for("upcast").add(function Wy(){return r=>{r.on("element:table",(t,e,n)=>{const s=e.viewItem;if(!n.consumable.test(s,{name:!0}))return;const{rows:l,headingRows:h,headingColumns:p}=function(C){let E,P=0;const F=[],j=[];let Y;for(const $ of Array.from(C.getChildren())){if("tbody"!==$.name&&"thead"!==$.name&&"tfoot"!==$.name)continue;"thead"!==$.name||Y||(Y=$);const st=Array.from($.getChildren()).filter(ft=>ft.is("element","tr"));for(const ft of st)if(Y&&$===Y||"tbody"===$.name&&Array.from(ft.getChildren()).length&&Array.from(ft.getChildren()).every(At=>At.is("element","th")))P++,F.push(ft);else{j.push(ft);const At=Qy(ft);(!E||Atn.convertItem(C,n.writer.createPositionAt(A,"end"))),n.convertChildren(s,n.writer.createPositionAt(A,"end")),A.isEmpty){const C=n.writer.createElement("tableRow");n.writer.insert(C,n.writer.createPositionAt(A,"end")),$o(n.writer,n.writer.createPositionAt(C,"end"))}n.updateConversionResult(A,e)}})}}()),s.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Rk(l,{asWidget:!0,additionalSlots:this._additionalSlots})}),s.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Rk(l,{additionalSlots:this._additionalSlots})}),s.for("upcast").elementToElement({model:"tableRow",view:"tr"}),s.for("upcast").add(h=>{h.on("element:tr",(p,b)=>{b.viewItem.isEmpty&&0==b.modelCursor.index&&p.stop()},{priority:"high"})}),s.for("downcast").elementToElement({model:"tableRow",view:(h,{writer:p})=>h.isEmpty?p.createEmptyElement("tr"):p.createContainerElement("tr")}),s.for("upcast").elementToElement({model:"tableCell",view:"td"}),s.for("upcast").elementToElement({model:"tableCell",view:"th"}),s.for("upcast").add(zk("td")),s.for("upcast").add(zk("th")),s.for("editingDowncast").elementToElement({model:"tableCell",view:Zk({asWidget:!0})}),s.for("dataDowncast").elementToElement({model:"tableCell",view:Zk()}),s.for("editingDowncast").elementToElement({model:"paragraph",view:Uk({asWidget:!0}),converterPriority:"high"}),s.for("dataDowncast").elementToElement({model:"paragraph",view:Uk(),converterPriority:"high"}),s.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),s.for("upcast").attributeToAttribute({model:{key:"colspan",value:a0("colspan")},view:"colspan"}),s.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),s.for("upcast").attributeToAttribute({model:{key:"rowspan",value:a0("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new Ky(t)),t.commands.add("insertTableRowAbove",new Vk(t,{order:"above"})),t.commands.add("insertTableRowBelow",new Vk(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new qk(t,{order:"left"})),t.commands.add("insertTableColumnRight",new qk(t,{order:"right"})),t.commands.add("removeTableRow",new Jy(t)),t.commands.add("removeTableColumn",new $y(t)),t.commands.add("splitTableCellVertically",new Yk(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new Yk(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new s2(t)),t.commands.add("mergeTableCellRight",new nd(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new nd(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new nd(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new nd(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new e2(t)),t.commands.add("setTableRowHeader",new t2(t)),t.commands.add("selectTableRow",new l2(t)),t.commands.add("selectTableColumn",new c2(t)),function d2(r){r.document.registerPostFixer(t=>function(e,n){const s=n.document.differ.getChanges();let l=!1;const h=new Set;for(const p of s){let b=null;"insert"==p.type&&"table"==p.name&&(b=p.position.nodeAfter),"insert"!=p.type&&"remove"!=p.type||"tableRow"!=p.name&&"tableCell"!=p.name||(b=p.position.findAncestor("table")),p2(p)&&(b=p.range.start.findAncestor("table")),b&&!h.has(b)&&(l=h2(b,e)||l,l=u2(b,e)||l,h.add(b))}return l}(t,r))}(e),function g2(r){r.document.registerPostFixer(t=>function(e,n){const s=n.document.differ.getChanges();let l=!1;for(const h of s)"insert"==h.type&&"table"==h.name&&(l=m2(h.position.nodeAfter,e)||l),"insert"==h.type&&"tableRow"==h.name&&(l=r0(h.position.nodeAfter,e)||l),"insert"==h.type&&"tableCell"==h.name&&(l=Ep(h.position.nodeAfter,e)||l),"remove"!=h.type&&"insert"!=h.type||!f2(h)||(l=Ep(h.position.parent,e)||l);return l}(t,r))}(e),this.listenTo(e.document,"change:data",()=>{(function(h,p){const b=h.document.differ;for(const A of b.getChanges()){let C,E=!1;if("attribute"==A.type){const Y=A.range.start.nodeAfter;if(!Y||!Y.is("element","table")||"headingRows"!=A.attributeKey&&"headingColumns"!=A.attributeKey)continue;C=Y,E="headingRows"==A.attributeKey}else"tableRow"!=A.name&&"tableCell"!=A.name||(C=A.position.findAncestor("table"),E="tableRow"==A.name);if(!C)continue;const P=C.getAttribute("headingRows")||0,F=C.getAttribute("headingColumns")||0,j=new xe(C);for(const Y of j){const $=Y.rowb2(P,p.mapper));for(const P of E)p.reconvertItem(P)}}(e,t.editing)})}registerAdditionalSlot(t){this._additionalSlots.push(t)}}function a0(r){return t=>{const e=parseInt(t.getAttribute(r));return Number.isNaN(e)||e<=0?null:e}}var l0=lt(1613);Rt()(l0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class w2 extends Wt{constructor(t){super(t);const e=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new vi,this.focusTracker=new Ye,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(n,s)=>`${s} \xd7 ${n}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":e.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:e.to("label")}]}],on:{mousedown:e.to(n=>{n.preventDefault()}),click:e.to(()=>{this.fire("execute")})}}),this.on("boxover",(n,s)=>{const{row:l,column:h}=s.target.dataset;this.items.get(10*(parseInt(l,10)-1)+(parseInt(h,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(n,s,l)=>{if(!l)return;const{row:h,column:p}=l.dataset;this.set({rows:parseInt(h),columns:parseInt(p)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:t,focusTracker:e,gridItems:n,numberOfColumns:s,uiLanguageDirection:l}){const h="number"==typeof s?()=>s:s;function p(C){return E=>{const P=n.find(Y=>Y.element===e.focusedElement),F=n.getIndex(P),j=C(F,n);n.get(j).focus(),E.stopPropagation(),E.preventDefault()}}function b(C,E){return C===E-1?0:C+1}function A(C,E){return 0===C?E-1:C-1}t.set("arrowright",p((C,E)=>"rtl"===l?A(C,E.length):b(C,E.length))),t.set("arrowleft",p((C,E)=>"rtl"===l?b(C,E.length):A(C,E.length))),t.set("arrowup",p((C,E)=>{let P=C-h();return P<0&&(P=C+h()*Math.floor(E.length/h()),P>E.length-1&&(P-=h())),P})),t.set("arrowdown",p((C,E)=>{let P=C+h();return P>E.length-1&&(P=C%h()),P}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const t of this.items)this.focusTracker.add(t.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const t=this.rows,e=this.columns;this.items.map((n,s)=>{const l=Math.floor(s/10){const l=t.commands.get("insertTable"),h=Zn(s);let p;return h.bind("isEnabled").to(l),h.buttonView.set({icon:'',label:e("Insert table"),tooltip:!0}),h.on("change:isOpen",()=>{p||(p=new w2(s),h.panelView.children.add(p),p.delegate("execute").to(h),h.on("execute",()=>{t.execute("insertTable",{rows:p.rows,columns:p.columns}),t.editing.view.focus()}))}),h}),t.ui.componentFactory.add("tableColumn",s=>{const l=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:e("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:e("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:e("Select column")}}];return this._prepareDropdown(e("Column"),'',l,s)}),t.ui.componentFactory.add("tableRow",s=>{const l=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:e("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:e("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:e("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:e("Select row")}}];return this._prepareDropdown(e("Row"),'',l,s)}),t.ui.componentFactory.add("mergeTableCells",s=>{const l=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:e("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(e("Merge cells"),'',l,s)})}_prepareDropdown(t,e,n,s){const l=this.editor,h=Zn(s),p=this._fillDropdownWithListOptions(h,n);return h.buttonView.set({label:t,icon:e,tooltip:!0}),h.bind("isEnabled").toMany(p,"isEnabled",(...b)=>b.some(A=>A)),this.listenTo(h,"execute",b=>{l.execute(b.source.commandName),b.source instanceof xr||l.editing.view.focus()}),h}_prepareMergeSplitButtonDropdown(t,e,n,s){const l=this.editor,h=Zn(s,Lc),p="mergeTableCells",b=l.commands.get(p),A=this._fillDropdownWithListOptions(h,n);return h.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),h.bind("isEnabled").toMany([b,...A],"isEnabled",(...C)=>C.some(E=>E)),this.listenTo(h.buttonView,"execute",()=>{l.execute(p),l.editing.view.focus()}),this.listenTo(h,"execute",C=>{l.execute(C.source.commandName),l.editing.view.focus()}),h}_fillDropdownWithListOptions(t,e){const n=this.editor,s=[],l=new di;for(const h of e)x2(h,n,s,l);return hm(t,l),s}}function x2(r,t,e,n){if("button"===r.type||"switchbutton"===r.type){const s=r.model=new qm(r.model),{commandName:l,bindIsOn:h}=r.model,p=t.commands.get(l);e.push(p),s.set({commandName:l}),s.bind("isEnabled").to(p),h&&s.bind("isOn").to(p,"value"),s.set({withText:!0})}n.add(r)}var c0=lt(6945);Rt()(c0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class tr extends Lt{static get pluginName(){return"TableSelection"}static get requires(){return[si,si]}init(){const t=this.editor,n=t.editing.view;this.listenTo(t.model,"deleteContent",(s,l)=>this._handleDeleteContent(s,l),{priority:"high"}),this.listenTo(n.document,"insertText",(s,l)=>this._handleInsertTextEvent(s,l),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const n=this.editor.plugins.get(si).getSelectedTableCells(this.editor.model.document.selection);return 0==n.length?null:n}getSelectionAsFragment(){const t=this.editor.plugins.get(si),e=this.getSelectedTableCells();return e?this.editor.model.change(n=>{const s=n.createDocumentFragment(),{first:l,last:h}=t.getColumnIndexes(e),{first:p,last:b}=t.getRowIndexes(e),A=e[0].findAncestor("table");let C=b,E=h;if(t.isSelectionRectangular(e)){const F={firstColumn:l,lastColumn:h,firstRow:p,lastRow:b};C=Jk(A,F),E=$k(A,F)}const P=Hk(A,{startRow:p,startColumn:l,endRow:C,endColumn:E},n);return n.insert(P,s,0),s}):null}setCellSelection(t,e){const n=this._getCellsToSelect(t,e);this.editor.model.change(s=>{s.setSelection(n.cells.map(l=>s.createRangeOn(l)),{backward:n.backward})})}getFocusCell(){const t=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}getAnchorCell(){const t=Oe(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}_defineSelectionConverter(){const t=this.editor,e=new Set;t.conversion.for("editingDowncast").add(n=>n.on("selection",(s,l,h)=>{const p=h.writer;!function(C){for(const E of e)C.removeClass("ck-editor__editable_selected",E);e.clear()}(p);const b=this.getSelectedTableCells();if(!b)return;for(const C of b){const E=h.mapper.toViewElement(C);p.addClass("ck-editor__editable_selected",E),e.add(E)}const A=h.mapper.toViewElement(b[b.length-1]);p.setSelection(A,0)},{priority:"lowest"}))}_enablePluginDisabling(){const t=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const e=this.getSelectedTableCells();if(!e)return;t.model.change(n=>{const s=n.createPositionAt(e[0],0),l=t.model.schema.getNearestSelectionRange(s);n.setSelection(l)})}})}_handleDeleteContent(t,e){const n=this.editor.plugins.get(si),s=e[0],l=e[1],h=this.editor.model,p=!l||"backward"==l.direction,b=n.getSelectedTableCells(s);b.length&&(t.stop(),h.change(A=>{const C=b[p?b.length-1:0];h.change(P=>{for(const F of b)h.deleteContent(P.createSelection(F,"in"))});const E=h.schema.getNearestSelectionRange(A.createPositionAt(C,0));s.is("documentSelection")?A.setSelection(E):s.setTo(E)}))}_handleInsertTextEvent(t,e){const n=this.editor,s=this.getSelectedTableCells();if(!s)return;const l=n.editing.view,h=n.editing.mapper,p=s.map(b=>l.createRangeOn(h.toViewElement(b)));e.selection=l.createSelection(p)}_getCellsToSelect(t,e){const n=this.editor.plugins.get("TableUtils"),s=n.getCellLocation(t),l=n.getCellLocation(e),h=Math.min(s.row,l.row),p=Math.max(s.row,l.row),b=Math.min(s.column,l.column),A=Math.max(s.column,l.column),C=new Array(p-h+1).fill(null).map(()=>[]),E={startRow:h,endRow:p,startColumn:b,endColumn:A};for(const{row:j,cell:Y}of new xe(t.findAncestor("table"),E))C[j-h].push(Y);const P=l.rowj.reverse()),{cells:C.flat(),backward:P||F}}}class y2 extends Lt{static get pluginName(){return"TableClipboard"}static get requires(){return[tr,si]}init(){const t=this.editor,e=t.editing.view.document;this.listenTo(e,"copy",(n,s)=>this._onCopyCut(n,s)),this.listenTo(e,"cut",(n,s)=>this._onCopyCut(n,s)),this.listenTo(t.model,"insertContent",(n,[s,l])=>this._onInsertContent(n,s,l),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(t,e){const n=this.editor.plugins.get(tr);if(!n.getSelectedTableCells()||"cut"==t.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;e.preventDefault(),t.stop();const l=this.editor.editing.view.document,h=this.editor.data.toView(n.getSelectionAsFragment());l.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:h,method:t.name})}_onInsertContent(t,e,n){if(n&&!n.is("documentSelection"))return;const s=this.editor.model,l=this.editor.plugins.get(si);let h=this.getTableIfOnlyTableInContent(e,s);if(!h)return;const p=l.getSelectionAffectedTableCells(s.document.selection);p.length?(t.stop(),s.change(b=>{const A={width:l.getColumns(h),height:l.getRows(h)},C=function($,st,ft,At){const Ft=$[0].findAncestor("table"),jt=At.getColumnIndexes($),ae=At.getRowIndexes($),ce={firstColumn:jt.first,lastColumn:jt.last,firstRow:ae.first,lastRow:ae.last},ze=1===$.length;return ze&&(ce.lastRow+=st.height-1,ce.lastColumn+=st.width-1,function(Re,is,vn,Gi){const qn=Gi.getColumns(Re),Yn=Gi.getRows(Re);vn>qn&&Gi.insertColumns(Re,{at:qn,columns:vn-qn}),is>Yn&&Gi.insertRows(Re,{at:Yn,rows:is-Yn})}(Ft,ce.lastRow+1,ce.lastColumn+1,At)),ze||!At.isSelectionRectangular($)?function(Re,is,vn){const{firstRow:Gi,lastRow:qn,firstColumn:Yn,lastColumn:ir}=is,T0={first:Gi,last:qn},S0={first:Yn,last:ir};Sp(Re,Yn,T0,vn),Sp(Re,ir+1,T0,vn),Tp(Re,Gi,S0,vn),Tp(Re,qn+1,S0,vn,Gi)}(Ft,ce,ft):(ce.lastRow=Jk(Ft,ce),ce.lastColumn=$k(Ft,ce)),ce}(p,A,b,l),P=C.lastColumn-C.firstColumn+1,F={startRow:0,startColumn:0,endRow:Math.min(C.lastRow-C.firstRow+1,A.height)-1,endColumn:Math.min(P,A.width)-1};h=Hk(h,F,b);const j=p[0].findAncestor("table"),Y=this._replaceSelectedCellsWithPasted(h,A,j,C,b);if(this.editor.plugins.get("TableSelection").isEnabled){const $=l.sortRanges(Y.map(st=>b.createRangeOn(st)));b.setSelection($)}else b.setSelection(Y[0],0)})):Cp(h,l)}_replaceSelectedCellsWithPasted(t,e,n,s,l){const{width:h,height:p}=e,b=function($,st,ft){const At=new Array(ft).fill(null).map(()=>new Array(st).fill(null));for(const{column:Ft,row:jt,cell:ae}of new xe($))At[jt][Ft]=ae;return At}(t,h,p),A=[...new xe(n,{startRow:s.firstRow,endRow:s.lastRow,startColumn:s.firstColumn,endColumn:s.lastColumn,includeAllSlots:!0})],C=[];let E;for(const $ of A){const{row:st,column:ft}=$;ft===s.firstColumn&&(E=$.getPositionBefore());const jt=b[(st-s.firstRow)%p][(ft-s.firstColumn)%h],ae=jt?l.cloneElement(jt):null,ce=this._replaceTableSlotCell($,ae,E,l);ce&&(Kk(ce,st,ft,s.lastRow,s.lastColumn,l),C.push(ce),E=l.createPositionAfter(ce))}const P=parseInt(n.getAttribute("headingRows")||"0"),F=parseInt(n.getAttribute("headingColumns")||"0"),Y=s.firstColumnd0(l,h,e)).map(({cell:l})=>Wk(l,t,n))}function Sp(r,t,e,n){if(!(t<1))return Qk(r,t).filter(({row:s,cellHeight:l})=>d0(s,l,e)).map(({cell:s,column:l})=>Xk(s,l,t,n))}function d0(r,t,e){const n=r+t-1,{first:s,last:l}=e;return r>=s&&r<=l||r=s}class E2 extends Lt{static get pluginName(){return"TableKeyboard"}static get requires(){return[tr,si]}init(){const t=this.editor.editing.view.document;this.listenTo(t,"arrowKey",(...e)=>this._onArrowKey(...e),{context:"table"}),this.listenTo(t,"tab",(...e)=>this._handleTabOnSelectedTable(...e),{context:"figure"}),this.listenTo(t,"tab",(...e)=>this._handleTab(...e),{context:["th","td"]})}_handleTabOnSelectedTable(t,e){const n=this.editor,s=n.model.document.selection.getSelectedElement();s&&s.is("element","table")&&(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change(l=>{l.setSelection(l.createRangeIn(s.getChild(0).getChild(0)))}))}_handleTab(t,e){const n=this.editor,s=this.editor.plugins.get(si),l=this.editor.plugins.get("TableSelection"),p=!e.shiftKey;let b=s.getTableCellsContainingSelection(n.model.document.selection)[0];if(b||(b=l.getFocusCell()),!b)return;e.preventDefault(),e.stopPropagation(),t.stop();const A=b.parent,C=A.parent,E=C.getChildIndex(A),P=A.getChildIndex(b),F=0===P;if(!p&&F&&0===E)return void n.model.change(st=>{st.setSelection(st.createRangeOn(C))});const j=P===A.childCount-1,Y=E===s.getRows(C)-1;if(p&&Y&&j&&(n.execute("insertTableRowBelow"),E===s.getRows(C)-1))return void n.model.change(st=>{st.setSelection(st.createRangeOn(C))});let $;if(p&&j)$=C.getChild(E+1).getChild(0);else if(!p&&F){const st=C.getChild(E-1);$=st.getChild(st.childCount-1)}else $=A.getChild(P+(p?1:-1));n.model.change(st=>{st.setSelection(st.createRangeIn($))})}_onArrowKey(t,e){const s=Ns(e.keyCode,this.editor.locale.contentLanguageDirection);this._handleArrowKeys(s,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}_handleArrowKeys(t,e){const n=this.editor.plugins.get(si),s=this.editor.plugins.get("TableSelection"),l=this.editor.model,h=l.document.selection,p=["right","down"].includes(t),b=n.getSelectedTableCells(h);if(b.length){let C;return C=e?s.getFocusCell():p?b[b.length-1]:b[0],this._navigateFromCellInDirection(C,t,e),!0}const A=h.focus.findAncestor("tableCell");if(!A)return!1;if(!h.isCollapsed)if(e){if(h.isBackward==p&&!h.containsEntireContent(A))return!1}else{const C=h.getSelectedElement();if(!C||!l.schema.isObject(C))return!1}return!!this._isSelectionAtCellEdge(h,A,p)&&(this._navigateFromCellInDirection(A,t,e),!0)}_isSelectionAtCellEdge(t,e,n){const s=this.editor.model,l=this.editor.model.schema,h=n?t.getLastPosition():t.getFirstPosition();if(!l.getLimitElement(h).is("element","tableCell"))return s.createPositionAt(e,n?"end":0).isTouching(h);const p=s.createSelection(h);return s.modifySelection(p,{direction:n?"forward":"backward"}),h.isEqual(p.focus)}_navigateFromCellInDirection(t,e,n=!1){const s=this.editor.model,l=t.findAncestor("table"),h=[...new xe(l,{includeAllSlots:!0})],{row:p,column:b}=h[h.length-1],A=h.find(({cell:Y})=>Y==t);let{row:C,column:E}=A;switch(e){case"left":E--;break;case"up":C--;break;case"right":E+=A.cellWidth;break;case"down":C+=A.cellHeight}if(C<0||C>p||E<0&&C<=0||E>b&&C>=p)return void s.change(Y=>{Y.setSelection(Y.createRangeOn(l))});E<0?(E=n?0:b,C--):E>b&&(E=n?b:0,C++);const P=h.find(Y=>Y.row==C&&Y.column==E).cell,F=["right","down"].includes(e),j=this.editor.plugins.get("TableSelection");if(n&&j.isEnabled){const Y=j.getAnchorCell()||t;j.setCellSelection(Y,P)}else{const Y=s.createPositionAt(P,F?0:"end");s.change($=>{$.setSelection(Y)})}}}class T2 extends un{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(t){this.fire(t.type,t)}}class S2 extends Lt{static get pluginName(){return"TableMouse"}static get requires(){return[tr,si]}init(){this.editor.editing.view.addObserver(T2),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const t=this.editor,e=t.plugins.get(si);let n=!1;const s=t.plugins.get(tr);this.listenTo(t.editing.view.document,"mousedown",(l,h)=>{const p=t.model.document.selection;if(!this.isEnabled||!s.isEnabled||!h.domEvent.shiftKey)return;const b=s.getAnchorCell()||e.getTableCellsContainingSelection(p)[0];if(!b)return;const A=this._getModelTableCellFromDomEvent(h);A&&h0(b,A)&&(n=!0,s.setCellSelection(b,A),h.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{n=!1}),this.listenTo(t.editing.view.document,"selectionChange",l=>{n&&l.stop()},{priority:"highest"})}_enableMouseDragSelection(){const t=this.editor;let e,n,s=!1,l=!1;const h=t.plugins.get(tr);this.listenTo(t.editing.view.document,"mousedown",(p,b)=>{this.isEnabled&&h.isEnabled&&(b.domEvent.shiftKey||b.domEvent.ctrlKey||b.domEvent.altKey||(e=this._getModelTableCellFromDomEvent(b)))}),this.listenTo(t.editing.view.document,"mousemove",(p,b)=>{if(!b.domEvent.buttons||!e)return;const A=this._getModelTableCellFromDomEvent(b);A&&h0(e,A)&&(n=A,s||n==e||(s=!0)),s&&(l=!0,h.setCellSelection(e,n),b.preventDefault())}),this.listenTo(t.editing.view.document,"mouseup",()=>{s=!1,l=!1,e=null,n=null}),this.listenTo(t.editing.view.document,"selectionChange",p=>{l&&p.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(t){const n=this.editor.editing.view.createPositionAt(t.target,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}function h0(r,t){return r.parent.parent==t.parent.parent}var u0=lt(6306);function D2(r){const t=r.getSelectedElement();return t&&p0(t)?t:null}function M2(r){const t=r.getFirstPosition();if(!t)return null;let e=t.parent;for(;e;){if(e.is("element")&&p0(e))return e;e=e.parent}return null}function p0(r){return!!r.getCustomProperty("table")&&He(r)}Rt()(u0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var g0=lt(7368);Rt()(g0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var m0=lt(9247);Rt()(m0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var f0=lt(4070);Rt()(f0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var b0=lt(6237);Rt()(b0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var v0=lt(5087);Rt()(v0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var k0=lt(7341);Rt()(k0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var _0=lt(2128);Rt()(_0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var w0=lt(4101);Rt()(w0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Z2=Object.defineProperty,A0=Object.getOwnPropertySymbols,U2=Object.prototype.hasOwnProperty,j2=Object.prototype.propertyIsEnumerable,x0=(r,t,e)=>t in r?Z2(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,C0=(r,t)=>{for(var e in t||(t={}))U2.call(t,e)&&x0(r,e,t[e]);if(A0)for(var e of A0(t))j2.call(t,e)&&x0(r,e,t[e]);return r};const V2={autoRefresh:!0};class Ip extends(ne()){constructor(t,e={}){if(super(),!t)throw new W("token-missing-token-url",this);e.initValue&&this._validateTokenValue(e.initValue),this.set("value",e.initValue),this._refresh="function"==typeof t?t:()=>{return n=t,new Promise((s,l)=>{const h=new XMLHttpRequest;h.open("GET",n),h.addEventListener("load",()=>{const p=h.status,b=h.response;return p<200||p>299?l(new W("token-cannot-download-new-token",null)):s(b)}),h.addEventListener("error",()=>l(new Error("Network Error"))),h.addEventListener("abort",()=>l(new Error("Abort"))),h.send()});var n},this._options=C0(C0({},V2),e)}init(){return new Promise((t,e)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),t(this)):this.refreshToken().then(t).catch(e)})}refreshToken(){return this._refresh().then(t=>(this._validateTokenValue(t),this.set("value",t),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(t){const e="string"==typeof t,n=!/^".*"$/.test(t),s=e&&3===t.split(".").length;if(!n||!s)throw new W("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},t)}_getTokenRefreshTimeoutTime(){try{const[,t]=this.value.split("."),{exp:e}=JSON.parse(atob(t));return e?Math.floor((1e3*e-Date.now())/2):36e5}catch{return 36e5}}static create(t,e={}){return new Ip(t,e).init()}}const Dp=/^data:(\S*?);base64,/;class q2 extends(ie()){constructor(t,e,n){if(super(),!t)throw new W("fileuploader-missing-file",null);if(!e)throw new W("fileuploader-missing-token",null);if(!n)throw new W("fileuploader-missing-api-address",null);this.file=function(s){if("string"!=typeof s)return!1;const l=s.match(Dp);return!(!l||!l.length)}(t)?function(s,l=512){try{const h=s.match(Dp)[1],p=atob(s.replace(Dp,"")),b=[];for(let A=0;At(n)),this}onError(t){return this.once("error",(e,n)=>t(n)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const t=new XMLHttpRequest;t.open("POST",this._apiAddress),t.setRequestHeader("Authorization",this._token.value),t.responseType="json",this.xhr=t}_attachXHRListeners(){const t=this.xhr,e=n=>()=>this.fire("error",n);t.addEventListener("error",e("Network Error")),t.addEventListener("abort",e("Abort")),t.upload&&t.upload.addEventListener("progress",n=>{n.lengthComputable&&this.fire("progress",{total:n.total,uploaded:n.loaded})}),t.addEventListener("load",()=>{const n=t.status,s=t.response;if(n<200||n>299)return this.fire("error",s.message||s.error)})}_sendRequest(){const t=new FormData,e=this.xhr;return t.append("file",this.file),new Promise((n,s)=>{e.addEventListener("load",()=>{const l=e.status,h=e.response;return l<200||l>299?s(h.message?new W("fileuploader-uploading-data-failed",this,{message:h.message}):h.error):n(h)}),e.addEventListener("error",()=>s(new Error("Network Error"))),e.addEventListener("abort",()=>s(new Error("Abort"))),e.send(t)})}}class Y2{constructor(t,e){if(!t)throw new W("uploadgateway-missing-token",null);if(!e)throw new W("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=e}upload(t){return new q2(t,this._token,this._apiAddress)}}class H2 extends Er{static get pluginName(){return"CloudServicesCore"}createToken(t,e){return new Ip(t,e)}createUploadGateway(t,e){return new Y2(t,e)}}var E0=(r,t,e)=>new Promise((n,s)=>{var l=b=>{try{p(e.next(b))}catch(A){s(A)}},h=b=>{try{p(e.throw(b))}catch(A){s(A)}},p=b=>b.done?n(b.value):Promise.resolve(b.value).then(l,h);p((e=e.apply(r,t)).next())});class Mp extends Uc{}Mp.builtinPlugins=[class extends Lt{static get requires(){return[nb,Yc,yA,Q1,U1,db]}static get pluginName(){return"Essentials"}},class extends Lt{static get requires(){return[sn]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const r=this.editor.config.get("ckfinder.uploadUrl");r&&(this.editor.plugins.get(sn).createUploadAdapter=t=>new RA(t,r,this.editor.t))}},class extends Lt{static get requires(){return[Un]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const r=this.editor.commands;r.get("bulletedList")&&Ao(this.editor,this,/^[*-]\s$/,"bulletedList"),r.get("numberedList")&&Ao(this.editor,this,/^1[.|)]\s$/,"numberedList"),r.get("todoList")&&Ao(this.editor,this,/^\[\s?\]\s$/,"todoList"),r.get("checkTodoList")&&Ao(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const r=this.editor.commands;if(r.get("bold")){const t=Xc(this.editor,"bold");Kr(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,t),Kr(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,t)}if(r.get("italic")){const t=Xc(this.editor,"italic");Kr(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,t),Kr(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,t)}if(r.get("code")){const t=Xc(this.editor,"code");Kr(this.editor,this,/(`)([^`]+)(`)$/g,t)}if(r.get("strikethrough")){const t=Xc(this.editor,"strikethrough");Kr(this.editor,this,/(~~)([^~]+)(~~)$/g,t)}}_addHeadingAutoformats(){const r=this.editor.commands.get("heading");r&&r.modelElements.filter(t=>t.match(/^heading[1-6]$/)).forEach(t=>{const n=new RegExp(`^(#{${t[7]}})\\s$`);Ao(this.editor,this,n,()=>{if(!r.isEnabled||r.value===t)return!1;this.editor.execute("heading",{value:t})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Ao(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const r=this.editor,t=r.model.document.selection;r.commands.get("codeBlock")&&Ao(r,this,/^```$/,()=>{if(t.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Ao(this.editor,this,/^---$/,"horizontalLine")}},class extends Lt{static get requires(){return[ZA,UA]}static get pluginName(){return"Bold"}},class extends Lt{static get requires(){return[VA,qA]}static get pluginName(){return"Italic"}},class extends Lt{static get requires(){return[HA,WA]}static get pluginName(){return"BlockQuote"}},class extends Lt{static get pluginName(){return"CKBox"}static get requires(){return[Ib,QA]}},class extends Lt{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",_x,vx]}},class extends Er{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[H2]}init(){return E0(this,null,function*(){const r=this.context.config.get("cloudServices")||{};for(const[e,n]of Object.entries(r))this[e]=n;if(!this.tokenUrl)return void(this.token=null);const t=this.context.plugins.get("CloudServicesCore");this.token=yield t.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(r){return E0(this,null,function*(){if(this._tokens.has(r))return this.getTokenFor(r);const t=this.context.plugins.get("CloudServicesCore"),e=yield t.createToken(r).init();return this._tokens.set(r,e),e})}getTokenFor(r){const t=this._tokens.get(r);if(!t)throw new W("cloudservices-token-not-registered",this);return t}destroy(){super.destroy();for(const r of this._tokens.values())r.destroy()}},class extends Lt{static get pluginName(){return"EasyImage"}static get requires(){return[wx,"ImageUpload"]}init(){const r=this.editor;r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||kt("easy-image-image-feature-missing",r)}},class extends Lt{static get requires(){return[Ex,Sx]}static get pluginName(){return"Heading"}},class extends Lt{static get requires(){return[Qx,Kx]}static get pluginName(){return"Image"}},class extends Lt{static get requires(){return[$x,tC]}static get pluginName(){return"ImageCaption"}},class extends Lt{static get requires(){return[Pv,xC]}static get pluginName(){return"ImageStyle"}},class extends Lt{static get requires(){return[Gc,Ci]}static get pluginName(){return"ImageToolbar"}afterInit(){const r=this.editor,t=r.t,e=r.plugins.get(Gc),n=r.plugins.get("ImageUtils");var s;e.register("image",{ariaLabel:t("Image toolbar"),items:(s=r.config.get("image.toolbar")||[],s.map(l=>te(l)?l.name:l)),getRelatedElement:l=>n.getClosestSelectedImageWidget(l)})}},class extends Lt{static get pluginName(){return"ImageUpload"}static get requires(){return[gC,nC,aC]}},class extends Lt{static get pluginName(){return"Indent"}static get requires(){return[CC,yC]}},class extends Lt{static get requires(){return[ik,ty,ey]}static get pluginName(){return"Link"}},class extends Lt{static get requires(){return[Cy,cy]}static get pluginName(){return"List"}},class extends Lt{static get requires(){return[id,Py,Dy,Ea]}static get pluginName(){return"MediaEmbed"}},ap,class extends Lt{static get pluginName(){return"PasteFromOffice"}static get requires(){return[fn]}init(){const r=this.editor,t=r.plugins.get("ClipboardPipeline"),e=r.editing.view.document,n=[];n.push(new jy(e)),n.push(new qy(e)),n.push(new Hy(e)),t.on("inputTransformation",(s,l)=>{if(l._isTransformedWithPasteFromOffice||r.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const h=l.dataTransfer.getData("text/html"),p=n.find(b=>b.isActive(h));p&&(l._parsedData||(l._parsedData=function Gy(r,t){const e=new DOMParser,n=Fk(Fk(function(b){const E=b.indexOf("");if(E<0)return b;const P=b.indexOf("",E+7);return b.substring(0,E+7)+(P>=0?b.substring(P):"")}(r=(r=r.replace(/ - + @@ -37,5 +37,5 @@ - + diff --git a/en-US/main.564757f70d749b54.js b/en-US/main.564757f70d749b54.js deleted file mode 100644 index 2a573e3..0000000 --- a/en-US/main.564757f70d749b54.js +++ /dev/null @@ -1,3 +0,0 @@ -globalThis.$localize=Object.assign(globalThis.$localize || {},{locale:"en-US"}); -"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales["en"]=["en",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["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"]],u,[["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"]],u,[["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}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",plural,[[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);; -(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[179],{8743:(ft,Ie,C)=>{"use strict";C.d(Ie,{Ic:()=>l,Ym:()=>Z,e6:()=>te});var e=C(6825);function l(ce,_e,Re){return(0,e.X$)(ce,[(0,e.SB)("loading",(0,e.oB)({opacity:.1})),(0,e.SB)("loaded",(0,e.oB)({opacity:1})),(0,e.eR)(_e+" => "+Re,[(0,e.jt)(".5s")]),(0,e.eR)(Re+" => "+_e,[(0,e.jt)("0.1s")])])}function Z(ce,_e){return(0,e.X$)(ce,[(0,e.SB)("void",(0,e.oB)({transform:`translateX(${"left"==_e?"-100%":"100%"})`})),(0,e.eR)(":enter",[(0,e.jt)("300ms",(0,e.oB)({transform:"translateX(0)"}))])])}function te(ce){return(0,e.X$)(ce,[(0,e.eR)(":enter",[(0,e.oB)({transformOrigin:"top",transform:"rotateX(-90deg)"}),(0,e.jt)("400ms",(0,e.oB)({transform:"rotateX(0deg)"}))])])}},2350:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>e});class e{getErrorKey(D){return D+":error"}getMultiErrorKey(D,I){return D+":error:"+I}}},2159:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>ue});var e=C(8637),l=C(6405),D=C(7613),I=C(8743),S=C(3108),w=C(5879),n=C(30),Z=C(1662),ee=C(6945),re=C(8675);let ue=(()=>{class se extends e.H{constructor(oe,ce,_e,Re){super(oe,ce,_e),this.popup=Re,this.Layout=l.A,this.StringUtil=D.m,this.breadcrumbItems=[],this.layout=l.A.GRID,this.breadcrumbItems=this.getBreadcrumbItems()}ngOnInit(){let oe=this.getConfig().searchEndpoint,ce=S.n.retrieve(oe);this.layout=null!=ce?parseInt(ce):this.getConfig().defaultLayout,this.initialize()}onLayoutSelected(oe){this.layout=oe,S.n.put(this.getConfig().searchEndpoint,this.layout.toString())}openUpsertComponent(oe){let ce=this.getUpsertComponent();null!=ce&&(this.popup.open(ce,{id:oe}),this.popup.onCompleted.subscribe(_e=>{this.ngOnInit(),null!=_e&&this.onUpsertSuccess(_e),console.log("onSuccess. closing dialog")}),this.popup.onCanceled.subscribe(()=>{console.log("onCanceled. closing dialog")}))}onUpsertClick(oe){if(this.getConfig().upsertOnDialog)this.openUpsertComponent(oe);else{let ce=this.getRoutes();if(null==ce)return;let _e=null==oe?ce.create:ce.update(oe);this.router.navigate([_e],{queryParams:null!=oe?ce.params:{}})}}onUpsertSuccess(oe){console.log("onUpsertSuccess",oe)}static#e=this.\u0275fac=function(ce){return new(ce||se)(w.Y36(n.Y),w.Y36(Z.F0),w.Y36(ee.z),w.Y36(re.x))};static#t=this.\u0275cmp=w.Xpm({type:se,selectors:[["ng-component"]],features:[w.qOj],decls:0,vars:0,template:function(ce,_e){},encapsulation:2,data:{animation:[(0,I.Ym)("onGrid","left"),(0,I.Ym)("onColumn","right")]}})}return se})()},9870:(ft,Ie,C)=>{"use strict";C.d(Ie,{n:()=>ee});var e=C(8637),l=C(5879),D=C(7700),I=C(8743),S=C(1855),w=C(30),n=C(1662),Z=C(6945);let ee=(()=>{class re extends e.H{constructor(se,te,oe,ce,_e){super(se,te,oe),this.route=ce,this.dialogData=_e,this.breadcrumbItems=[],this.onCanceled=new l.vpe,this.onCompleted=new l.vpe,this.filterData=null,this.exId=null,this.dialogUpsert=!1,this.breadcrumbItems=this.getBreadcrumbItems(),this.dialogUpsert=null!=_e.dialogUpsert}ngOnInit(){this.loading=!1,this.route.queryParams.subscribe(se=>{this.filterData=(0,S.OP)(se)}),this.route.paramMap.subscribe(se=>{let te=se.get("id");if(null==te&&(te=this.dialogData?.id),null!=te){let oe=parseInt(te);isNaN(oe)||(this.exId=oe,this.initialize(this.exId))}})}navigateToListPage(se=null){this.router.navigate([this.getListPageRoute()],{queryParams:null==this.filterData?null:(0,S.oZ)(this.filterData)}).then(se)}onSuccess(se){this.loading=!1,this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCompleted.emit(se):this.navigateToListPage()}onCancel(){this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCanceled.emit():this.navigate(this.getListPageRoute(),se=>{})}static#e=this.\u0275fac=function(te){return new(te||re)(l.Y36(w.Y),l.Y36(n.F0),l.Y36(Z.z),l.Y36(n.gz),l.Y36(D.WI))};static#t=this.\u0275cmp=l.Xpm({type:re,selectors:[["ng-component"]],outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[l.qOj],decls:0,vars:0,template:function(te,oe){},encapsulation:2,data:{animation:[(0,I.e6)("loaded")]}})}return re})()},8637:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>ue});var e=C(3674),l=C(2350),D=C(7613),I=C(553),S=C(8743),w=C(190),n=C(5879),Z=C(30),ee=C(1662),re=C(6945);let ue=(()=>{class se extends l.R{constructor(oe,ce,_e){super(),this.eventBus=oe,this.router=ce,this.subContainer=_e,this.translations=w.I,this.loading=!0,this.swipeCoord=[0,0],this.swipeTime=0,this.SWIPE_START="swipe-action-start",this.SWIPE_END="swipe-action-end",this.SWIPE_LEFT="swipe-left",this.SWIPE_RIGHT="swipe-right"}subscribe(oe,ce,_e){this.subContainer.hasKey(oe)&&this.subContainer.disposeSubscription(oe);let Re=this.eventBus.on(oe).subscribe(mt=>{null!=ce?this.router.navigate([ce]).then(Ge=>{_e(Ge,mt)}):_e(!1,mt)});return this.subContainer.add(oe,Re),Re}reloadRoute(){this.navigate(this.router.url,oe=>{})}reloadRouteByUrl(){this.navigateByUrl(this.router.url,oe=>{})}navigate(oe,ce){oe==this.router.url&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload"),null!=oe&&this.router.navigate([oe]).then(_e=>ce(_e))}navigateByUrl(oe,ce){oe==this.router.url&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload"),null!=oe&&this.router.navigateByUrl(oe).then(_e=>ce(_e))}goHomeAndDoABarrelRoll(oe){this.router.navigateByUrl("").then(ce=>oe)}ngOnDestroy(){this.subContainer.disposeForComponent(this.constructor.name)}isInvalidInput(oe){return e.w.isInvalidInput(oe)}getFormError(oe,ce){return e.w.getFormError(oe,ce)}componentKey(oe){return this.componentName()+":"+oe}globalKey(oe){return"global:"+oe}firstWord(oe){return D.m.firstWord(oe)}errMsg(oe,ce,_e,Re){let mt=oe.controls[ce];return mt.touched&&mt.errors?Re:null}initSeoItems(oe,ce,_e,Re,mt,Ge,Lt,je,Tt){oe.setTitle(_e),ce.addTags([{name:"keywords",content:mt.join(",")},{name:"description",description:Re},{name:"robots",content:Ge??"index, follow"},{property:"og:type",content:Lt??"article"},{property:"og:title",content:_e},{property:"og:description",content:Re},{property:"og:image",content:je??""},{property:"og:url",content:Tt},{property:"og:site_name",content:I.N.app_name}])}getPermalink(){return I.N.app_url+this.router.url}swipe(oe,ce,_e){const Re=[oe.changedTouches[0].clientX,oe.changedTouches[0].clientY],mt=(new Date).getTime();if(ce===this.SWIPE_START)this.swipeCoord=Re,this.swipeTime=mt;else if(ce===this.SWIPE_END){const Ge=[Re[0]-this.swipeCoord[0],Re[1]-this.swipeCoord[1]];mt-this.swipeTime<1e3&&Math.abs(Ge[0])>30&&Math.abs(Ge[0])>Math.abs(3*Ge[1])&&this.eventBus.publish(_e,Ge[0]<0?this.SWIPE_RIGHT:this.SWIPE_LEFT)}}static#e=this.\u0275fac=function(ce){return new(ce||se)(n.Y36(Z.Y),n.Y36(ee.F0),n.Y36(re.z))};static#t=this.\u0275cmp=n.Xpm({type:se,selectors:[["ng-component"]],features:[n.qOj],decls:0,vars:0,template:function(ce,_e){},encapsulation:2,data:{animation:[(0,S.Ic)("dataLoaded","loading","loaded")]}})}return se})()},2495:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>D});var e=C(553),l=C(5879);class D{constructor(){}static#e=this.API_VERSION_1="/api/v1";static#t=this.API_VERSION_2="/api/v2";static toParamString(S){let w="";for(let n in S)null!=S[n]&&(w+=""===w?"?":"&",w=w+n+"="+this.convertToString(S[n]));return w}static convertToString(S){return S instanceof Date?S.toISOString():S.toString()}static#n=this.FILES={FILE_ENDPOINT:e.N.base_url+D.API_VERSION_2+"/files",IMAGE_ENDPOINT:e.N.base_url+D.API_VERSION_2+"/images",IMAGE_ENDPOINT_ADMIN:e.N.base_url+D.API_VERSION_2+"/admin/images",IMAGE_UPLOAD_ENDPOINT_BULK:e.N.base_url+D.API_VERSION_2+"/images/bulk",FILE_ENDPOINT_ADMIN:e.N.base_url+D.API_VERSION_2+"/admin/files",SEARCH:(S,w)=>S.concat(D.toParamString(w)),CREATE(){return this.FILE_ENDPOINT},UPLOAD(S){return this.IMAGE_UPLOAD_ENDPOINT_BULK.concat(D.toParamString(S))},GET(S){return this.FILE_ENDPOINT+"/"+S},UPDATE(S){return this.FILE_ENDPOINT+"/"+S}};static#i=this.\u0275fac=function(w){return new(w||D)};static#r=this.\u0275prov=l.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}},8674:(ft,Ie,C)=>{"use strict";function e(I){const S={};for(const w in I)Object.prototype.hasOwnProperty.call(I,w)&&(S[w]=I[w]instanceof Date?I[w].toISOString():"object"==typeof I[w]&&null!==I[w]?e(I[w]):I[w]);return S}C.d(Ie,{GN:()=>e,Q3:()=>l});const l=I=>{const S={};return I.forEach((w,n)=>{S[n]=w}),S}},6542:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>e});let e={content:[],pageable:{sort:{sorted:!1,unsorted:!1,empty:!1},pageNumber:0,pageSize:10,offset:0,paged:!1,unpaged:!1},totalPages:0,totalElements:0,last:!1,first:!0,sort:{sorted:!1,unsorted:!1,empty:!1},numberOfElements:0,size:10,number:0,empty:!0}},1547:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>S});var e=C(2350),l=C(5879),D=C(8480),I=C(5462);let S=(()=>{class w extends e.R{constructor(Z,ee){super(),this.authService=Z,this.notifier=ee}handleError(Z,ee,re){401===Z.status||0===Z.status||504===Z.status?(console.log("Refreshing token",Z),this.authService.refreshToken(ee)):(console.log("Other error",Z),re(Z))}static#e=this.\u0275fac=function(ee){return new(ee||w)(l.LFG(D.e),l.LFG(I.l))};static#t=this.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})()},6945:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>l});var e=C(5879);let l=(()=>{class D{constructor(){this.subs=new Map}getKeys(){return this.subs}add(S,w){null==S||null==w||this.subs.has(S)||this.subs.set(S,w)}hasKey(S){return this.subs.has(S)}dispose(){this.subs.forEach(S=>S.unsubscribe()),this.subs.clear()}disposeSubscription(S){this.subs.get(S)?.unsubscribe(),this.subs.delete(S)}disposeNonGlobal(){this.subs.forEach((S,w)=>{w.startsWith("global:")||(S.unsubscribe(),this.subs.delete(w))})}disposeForComponent(S){this.subs.forEach((w,n)=>{n.startsWith(S)&&(w.unsubscribe(),this.subs.delete(n))})}static#e=this.\u0275fac=function(w){return new(w||D)};static#t=this.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},6032:(ft,Ie,C)=>{"use strict";C.d(Ie,{s:()=>I});var e=C(2495),l=C(553),D=C(5879);class I extends e.O{constructor(){super()}static#e=this.CRUDEXAMPLES={CRUDEXAMPLE_ENDPOINT:l.N.base_url+"/api/v1/crudexamples",CRUDEXAMPLE_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/crudexamples",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.CRUDEXAMPLE_ENDPOINT},GET(w){return this.CRUDEXAMPLE_ENDPOINT+"/"+w},UPDATE(w){return this.CRUDEXAMPLE_ENDPOINT+"/"+w}};static#t=this.LABELS={LABEL_ENDPOINT_POLLBOX:l.N.base_url+"/api/v1/public/labels/POLLBOX/children",LABEL_ENDPOINT:l.N.base_url+"/api/v1/labels",LABEL_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/labels",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.LABEL_ENDPOINT},GET(w){return this.LABEL_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LABEL_ENDPOINT+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LABEL_ENDPOINT+"/"+w}};static#n=this.FEEDBACKS={FEEDBACK_ENDPOINT:l.N.base_url+"/api/v2/feedbacks",FEEDBACK_ENDPOINT_ADMIN:l.N.base_url+"/api/v2/admin/feedbacks",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.FEEDBACK_ENDPOINT},GET(w){return this.FEEDBACK_ENDPOINT+"/"+w},UPDATE(w){return this.FEEDBACK_ENDPOINT+"/"+w},TAKE_ACTION(w){return this.FEEDBACK_ENDPOINT_ADMIN+"/"+w+"/action"}};static#i=this.POPTIONS={POPTION_ENDPOINT:l.N.base_url+"/api/v1/poll-options",POPTION_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-options",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.POPTION_ENDPOINT},GET(w){return this.POPTION_ENDPOINT+"/"+w},UPDATE(w){return this.POPTION_ENDPOINT+"/"+w}};static#r=this.ACVALIDATIONTOKENS={ACVALIDATIONTOKEN_ENDPOINT:l.N.base_url+"/api/v1/validation-tokens",ACVALIDATIONTOKEN_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/validation-tokens",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.ACVALIDATIONTOKEN_ENDPOINT},GET(w){return this.ACVALIDATIONTOKEN_ENDPOINT+"/"+w},UPDATE(w){return this.ACVALIDATIONTOKEN_ENDPOINT+"/"+w}};static#o=this.LOCATIONTYPES={LOCATIONTYPE_ENDPOINT:l.N.base_url+"/api/v1/location-types",LOCATIONTYPE_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/location-types",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.LOCATIONTYPE_ENDPOINT},GET(w){return this.LOCATIONTYPE_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LOCATIONTYPE_ENDPOINT+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LOCATIONTYPE_ENDPOINT+"/"+w}};static#s=this.LOCATIONS={LOCATION_ENDPOINT:l.N.base_url+"/api/v1/locations",LOCATION_ENDPOINT_V2:l.N.base_url+"/api/v2/locations",LOCATION_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/locations",SEARCH:(w,n)=>w+"/child-locations".concat(e.O.toParamString(n)),GET_LOCATIONS_FOR_TYPE:(w,n)=>w+"/"+n+"/locations",CREATE(){return this.LOCATION_ENDPOINT},GET(w){return this.LOCATION_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LOCATION_ENDPOINT_V2+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LOCATION_ENDPOINT+"/"+w}};static#a=this.ADDRESSS={ADDRESS_ENDPOINT:l.N.base_url+"/api/v1/global-addresss",ADDRESS_ENDPOINT_V2:l.N.base_url+"/api/v2/global-addresses",ADDRESS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/global-addresss",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.ADDRESS_ENDPOINT},GET(w){return this.ADDRESS_ENDPOINT_V2+"/"+w},UPDATE(w){return this.ADDRESS_ENDPOINT+"/"+w}};static#l=this.\u0275fac=function(n){return new(n||I)};static#c=this.\u0275prov=D.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}},6405:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>e});var e=function(l){return l[l.GRID=0]="GRID",l[l.COLUMN=1]="COLUMN",l}(e||{})},190:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>l,s:()=>D});var e=function(I){return I.CAN_MANAGE_INVENTORY="CAN_MANAGE_INVENTORY",I.ADMINISTRATION="ADMINISTRATION",I.ACCESS_USER_RESOURCES="ACCESS_USER_RESOURCES",I.CAN_TAKE_EXAM="CAN_TAKE_EXAM",I}(e||{});const l={Dashboard:"Dashboard",Inventory:"Inventory",Stocks:"Stocks",Products:"Products",Categories:"Categories",Brands:"Brands",Variations:"Variations",Sales:"Sales",Orders:"Orders",Customers:"Customers","My Contents":"My Contents","Uploaded Files":"Uploaded Files",PollBox:"PollBox",Questionnaires:"Questionnaires",Polls:"Polls","Poll Options":"Poll Options",Votes:"Votes","Filterable Attributes":"Filterable Attributes",Stores:"Stores","My Wallet":"My Wallet","Validation Tokens":"Validation Tokens","Activity Logs":"Activity Logs","Location Types":"Location Types","Crud Examples":"Crud Examples",Specifications:"Specifications",Astha:"Astha",Social:"Social",Notifications:"Notifications",Feedbacks:"Feedbacks",Wallet:"Wallet",Administration:"Administration",Labels:"Labels",Users:"Users",Lockouts:"Lockouts",Locations:"Locations",Addresses:"Addresses","Search..":"Search","Enter Quantity":"Enter Quantity","Unit Price":"Unit Price","Enter Retail Price":"Enter Retail Price","Enter Discount":"Enter Discount","Enter Cashback (%)":"Enter Cashback (%)","Enter Name":"Enter Name","Enter Title":"Enter Title",Images:"Images",Image:"Image","Search Brand":"Search Brand","Search Category..":"Search Category..","Search Variations..":"Search Variations..","Search Attributes..":"Search Attributes..","Search Customer..":"Search Customer..","Search Stock..":"Search Stock..","Enter Phone":"Enter Phone","Search Store..":"Search Store..","Enter Description":"Enter Description",Logo:"Logo","Select File":"Select File","Feedback Actions":"Feedback Actions",Upsert:"Upsert","My Sales":"My Sales","Products in Stock":"Products in Stock","All Products":"All Products","My Customers":"My Customers",$:"$"},D=[{title:l.Dashboard,expanded:!0,icon:"fab fa-dashcube",items:[{title:l.Dashboard,icon:"bx bx-home-circle",link:"/admin/dashboard",selected:!1,children:[],permissions:[e.ACCESS_USER_RESOURCES]}]},{title:l.PollBox,expanded:!0,icon:"fa fa-poll",items:[{title:l.Questionnaires,icon:"fa fa-poll",link:"/admin/questionnaires",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l.Polls,icon:"fa fa-poll",link:"/admin/polls",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l["Poll Options"],icon:"fa fa-poll",link:"/admin/poll-options",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l.Votes,icon:"fa fa-poll",link:"/admin/votes",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Inventory,expanded:!0,icon:"fa fa-cubes",items:[{title:l.Stocks,icon:"fa fa-cubes",link:"/admin/inventory/stocks",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Products,icon:"fa fa-cubes",link:"/admin/inventory/products",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Categories,icon:"fa fa-folder",link:"/admin/inventory/categories",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Brands,icon:"fa fa-tags",link:"/admin/inventory/brands",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Variations,icon:"fa fa-trademark",link:"/admin/inventory/variations",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Specifications,icon:"fa fa-cube",link:"/admin/inventory/product-specifications",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Filterable Attributes"],icon:"fa fa-filter",link:"/admin/inventory/filterable-attributes",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Stores,icon:"fa fa-filter",link:"/admin/inventory/vendors",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Sales,expanded:!0,icon:"fa fa-shopping-cart",items:[{title:l.Orders,icon:"fa fa-shopping-cart",link:"/admin/sales/orders",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Customers,icon:"fa fa-user",link:"/admin/sales/customers",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]}]},{title:l["My Contents"],expanded:!0,icon:"fa fa-file",items:[{title:l["Uploaded Files"],icon:"fa fa-file",link:"/cms/files",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]}]},{title:l.Astha,expanded:!0,icon:"fa fa-heart",items:[{title:l["Uploaded Files"],icon:"fa fa-filter",link:"/admin/inventory/attributes",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Social,expanded:!0,icon:"fa fa-users",items:[{title:l.Notifications,icon:"fa fa-filter",link:"/admin/notifications",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Feedbacks,icon:"fa fa-filter",link:"/admin/feedbacks",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Wallet,expanded:!0,icon:"fa fa-wallet",items:[{title:l["My Wallet"],icon:"fa fa-wallet",link:"/admin/accounts/wallet",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Administration,expanded:!0,icon:"fas fa-cogs",items:[{title:l.Labels,icon:"fas fa-tag",link:"/admin/labels",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Users,icon:"fas fa-users",link:"/admin/users",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Validation Tokens"],icon:"fas fa-tag",link:"/admin/users/validation-tokens",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Activity Logs"],icon:"fas fa-tag",link:"/admin/users/activity-logs",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Lockouts,icon:"fas fa-tag",link:"/admin/users/request-credentials/lockouts",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Location Types"],icon:"fas fa-tag",link:"/admin/location-types",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Locations,icon:"fas fa-tag",link:"/admin/locations",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Addresses,icon:"fas fa-tag",link:"/admin/addresses",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Crud Examples"],icon:"fas fa-tag",link:"/admin/crudexamples",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]}]},2071:(ft,Ie,C)=>{"use strict";C.d(Ie,{B:()=>Be});var e=C(5879),l=C(8637),D=C(6223),I=C(2096),S=C(7259),w=C(30),n=C(1662),Z=C(6945),ee=C(1547),re=C(1259),ue=C(8480),se=C(5462),te=C(9862);let oe=(()=>{class Ee extends ee.b{constructor(me,tt,he,Ze){super(me,tt),this.http=he,this.eventBus=Ze}searchVendors(me,tt){const he=S.Z.VENDORS.SEARCH_VENDORS();return this.http.get(re.e.VENDORS.SEARCH({q:tt,flagship:me})).subscribe(Ze=>{this.eventBus.publish(he,Ze)},Ze=>{this.eventBus.publish(S.Z.VENDORS.FETCH_ERROR(),Ze)}),he}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.LFG(ue.e),e.LFG(se.l),e.LFG(te.eN),e.LFG(w.Y))};static#t=this.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();var ce=C(2951),_e=C(6814),Re=C(7700),mt=C(2296),Ge=C(469);function Lt(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"zxing-scanner",12),e.NdJ("scanSuccess",function(he){e.CHM(me);const Ze=e.oxw(2);return e.KtG(Ze.onScanSuccess(he))})("scanFailure",function(he){e.CHM(me);const Ze=e.oxw(2);return e.KtG(Ze.onScanFailure(he))}),e.qZA()}if(2&Ee){const me=e.oxw(2);e.Q6J("formats",me.allowedFormats)}}function je(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",7)(1,"div",13)(2,"label",14),e._uU(3,"Selected Shop"),e.qZA(),e._UZ(4,"input",15),e.qZA()()),2&Ee){const me=e.oxw(2);e.xp6(4),e.Q6J("value",me.scannedCode.name)}}function Tt(Ee,$e){1&Ee&&(e.TgZ(0,"div",23)(1,"span"),e._uU(2,"Minimum 10 to maximum 1000 can be redeemed."),e.qZA()())}function xt(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"div")(1,"div",16)(2,"h2"),e._uU(3,"Enter amount"),e.qZA(),e.TgZ(4,"div",7)(5,"div",13)(6,"label",17),e._uU(7,"Points"),e.qZA(),e._UZ(8,"input",18),e.qZA()(),e.YNc(9,Tt,3,0,"div",19),e.qZA(),e.TgZ(10,"div",20)(11,"button",21),e.NdJ("click",function(){e.CHM(me);const he=e.oxw(2);return e.KtG(he.redeem())}),e._UZ(12,"i",22),e._uU(13," REDEEM "),e.qZA()()()}if(2&Ee){const me=e.oxw(2);e.xp6(9),e.Q6J("ngIf",me.isInvalidInput(me.redeemForm.controls.points)),e.xp6(2),e.Q6J("disabled",me.redeemForm.invalid)}}function St(Ee,$e){if(1&Ee&&(e.TgZ(0,"div")(1,"mat-dialog-content",1),e._UZ(2,"section",2),e.TgZ(3,"form",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"p"),e._uU(8,"Scan QR to choose a shop"),e.qZA(),e.TgZ(9,"div",7),e.YNc(10,Lt,1,1,"zxing-scanner",8),e.YNc(11,je,5,1,"div",9),e.qZA()(),e.YNc(12,xt,14,2,"div",0),e.qZA()()()(),e.TgZ(13,"mat-dialog-actions",10)(14,"button",11),e._uU(15,"CANCEL"),e.qZA()()()),2&Ee){const me=e.oxw();e.xp6(3),e.Q6J("formGroup",me.redeemForm),e.xp6(7),e.Q6J("ngIf",null==me.scannedCode),e.xp6(1),e.Q6J("ngIf",null!=me.scannedCode),e.xp6(1),e.Q6J("ngIf",null!=me.scannedCode)}}function Zt(Ee,$e){if(1&Ee&&(e.TgZ(0,"div")(1,"h2",24),e._uU(2),e.qZA(),e.TgZ(3,"mat-dialog-content",1),e._uU(4),e.qZA(),e.TgZ(5,"mat-dialog-actions",10)(6,"button",11),e._uU(7,"CLOSE"),e.qZA()()()),2&Ee){const me=e.oxw();e.xp6(2),e.hij("Congratulations! Pay TK",me.redemption.discount_amount," less."),e.xp6(2),e.AsE(" You have successfully redeemed ",me.redemption.points," points. You got TK",me.redemption.discount_amount," discount from Astha loyalty points. ")}}let yt=(()=>{class Ee extends l.H{constructor(me,tt,he,Ze,rt,bt){super(me,tt,he),this.vendorService=Ze,this.leaderboardService=rt,this.notifier=bt,this.availablePoints=0,this.redemption=null,this.vendors=[],this.redeemForm=new D.cw({vendor:new D.NI("",D.kI.min(1)),points:new D.NI("",[D.kI.required,D.kI.min(100),D.kI.max(1e3)])}),this.allowedFormats=[11,7,4,5],this.scannedCode=null}componentName(){return"RedeemComponent"}ngOnInit(){}redeem(){if(null==this.scannedCode)return;let me=this.componentKey(S.Z.LEADERBOARDS.REDEEM_SUCCESS());this.leaderboardService.redeem(me,this.mapToRedeemReq(this.redeemForm)),this.subscribe(me,null,(tt,he)=>{this.redemption=he.data}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Failed!",he.data.error.message)})}searchVendors(){const tt=this.vendorService.searchVendors(!1,this.redeemForm.controls.vendor.value||"");this.subscribe(tt,null,(he,Ze)=>{this.vendors=Ze.data.content})}getVendors(){return(0,I.of)(this.vendors)}mapToRedeemReq(me){return{vendor_uuid:this.scannedCode?.uuid+"",points:me.controls.points.value}}onScanSuccess(me){try{this.scannedCode=JSON.parse(me)}catch(tt){this.notifier.warning("Invalid QR",String(tt))}}onScanFailure(me){console.log(me)}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.Y36(w.Y),e.Y36(n.F0),e.Y36(Z.z),e.Y36(oe),e.Y36(ce.S),e.Y36(se.l))};static#t=this.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-redeem"]],inputs:{availablePoints:"availablePoints"},features:[e.qOj],decls:2,vars:2,consts:[[4,"ngIf"],[1,"mat-typography"],["id","post_review_section"],["action","POST",3,"formGroup"],[1,"review-r-d-input-fields","pt-4"],[1,"container"],[1,"pros-area","mt-4"],[1,"pros-single-item-content","d-flex","align-items-end"],[3,"formats","scanSuccess","scanFailure",4,"ngIf"],["class","pros-single-item-content d-flex align-items-end",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],[3,"formats","scanSuccess","scanFailure"],[1,"fields"],["for","selected-vendor",1,"form-label"],["type","text","id","selected-vendor","required","required","readonly","",1,"form-control",3,"value"],[1,"cons-area","mt-4"],["for","points",1,"form-label"],["type","number","id","points","placeholder","Enter the amount you want to redeem","formControlName","points","required","required","min","3",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[1,"text-warning"],["mat-dialog-title",""]],template:function(tt,he){1&tt&&(e.YNc(0,St,16,4,"div",0),e.YNc(1,Zt,8,3,"div",0)),2&tt&&(e.Q6J("ngIf",null==he.redemption),e.xp6(1),e.Q6J("ngIf",null!=he.redemption))},dependencies:[_e.O5,D._Y,D.Fj,D.wV,D.JJ,D.JL,D.Q7,D.qQ,D.sg,D.u,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.S]})}return Ee})();var un=C(8174),Jt=C(1822),tn=C(4736);function wn(Ee,$e){1&Ee&&e._UZ(0,"util-progress",18),2&Ee&&e.Q6J("bar",!0)}function Ln(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"div",11)(1,"h3"),e._uU(2),e.qZA(),e.TgZ(3,"div",19),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.showLoyaltyPointHint())}),e.TgZ(4,"h5"),e._uU(5,"Redeemable"),e.qZA(),e.TgZ(6,"i"),e._uU(7,"(?)"),e.qZA()()()}if(2&Ee){const me=e.oxw();e.xp6(2),e.Oqu(null==me.wallet?null:me.wallet.loyalty_points)}}function Yn(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",11)(1,"h3"),e._uU(2),e.qZA(),e.TgZ(3,"h5"),e._uU(4,"Achieved Badge"),e.qZA()()),2&Ee){const me=e.oxw();e.xp6(2),e.Oqu(me.getCurrentBadgeTitle())}}function ti(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"a",20),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.openRedeemDialog())}),e._uU(1,"Redeem"),e.qZA()}}function gi(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.ALo(3,"date"),e.qZA(),e.TgZ(4,"td"),e._uU(5),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA(),e.TgZ(8,"td"),e._uU(9),e.qZA(),e.TgZ(10,"td"),e._uU(11),e.TgZ(12,"span",26),e.NdJ("click",function(){const Ze=e.CHM(me).$implicit,rt=e.oxw(3);return e.KtG(rt.copyToClipboard(Ze.trnx_id))}),e._uU(13,"COPY"),e.qZA()()()}if(2&Ee){const me=$e.$implicit;e.xp6(2),e.Oqu(e.xi3(3,5,me.created_at,"dd-MM-yyyy hh:m:s")),e.xp6(3),e.Oqu(me.description),e.xp6(2),e.Oqu(me.amount),e.xp6(2),e.Oqu(me.type),e.xp6(2),e.hij("",me.trnx_id," ")}}function Rn(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",23)(1,"table",24)(2,"thead")(3,"tr")(4,"th"),e._uU(5,"Date"),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Desc."),e.qZA(),e.TgZ(8,"th"),e._uU(9,"Amount"),e.qZA(),e.TgZ(10,"th"),e._uU(11,"Type"),e.qZA(),e.TgZ(12,"th"),e._uU(13,"Tnx"),e.qZA()()(),e.TgZ(14,"tbody"),e.YNc(15,gi,14,8,"tr",25),e.qZA()()()),2&Ee){const me=e.oxw(2);e.xp6(15),e.Q6J("ngForOf",null==me.wallet?null:me.wallet.recent_transactions)}}function dt(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"h4",4),e._uU(4,"Recent Transactions"),e.qZA(),e.TgZ(5,"div",21),e.YNc(6,Rn,16,1,"div",22),e.qZA()()()()),2&Ee){const me=e.oxw();e.xp6(6),e.Q6J("ngIf",me.showRecentTransactions)}}const at=function(Ee){return[Ee]};let Be=(()=>{class Ee extends l.H{constructor(me,tt,he,Ze,rt,bt,Nt,Qt,nn){super(tt,he,Ze),this.location=me,this.authService=rt,this.notifier=bt,this.dialog=Nt,this.leaderboardService=Qt,this.walletService=nn,this.username=null,this.leaderboard=null,this.wallet=null,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe,this.showRecentTransactions=!1,null==this.username&&(this.username=this.getAuthUsername())}componentName(){return"LeaderboardComponent"}ngOnInit(){null==this.leaderboard&&this.fetchLeaderboard(),null==this.wallet&&this.fetchWallet()}getAuth(){return this.authService.getAuth()}getAuthUsername(){return this.getAuth().username}isMyProfile(){return!!this.authService.isAuthenticated()&&this.getAuthUsername()===this.username}fetchLeaderboard(){if(this.loading=!0,null==this.username)return;let me=this.componentKey(S.Z.LEADERBOARDS.FETCH_LEADERBOARD(this.username));this.leaderboardService.fetchLeaderboard(me,this.username),this.subscribe(me,null,(tt,he)=>{this.leaderboard=he.data,this.loading=!1}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Error",he.data.error.message)})}fetchWallet(){this.loading=!0;let me=this.componentKey(S.Z.WALLET.FETCH_MY_WALLET());this.walletService.fetchWallet(me,{}),this.subscribe(me,null,(tt,he)=>{this.wallet=he.data,this.loading=!1}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Error",he.data.error.message)})}getRedeemedAmount(){return null==this.leaderboard?0:this.leaderboard.points-this.leaderboard.available_points}openRedeemDialog(){if(!this.authService.isAuthenticated())return void this.router.navigate(["/login"]);const me=this.dialog.open(yt);let tt=me.componentInstance,he=this.leaderboard?.available_points;tt.availablePoints=null==he?0:he,me.afterClosed().subscribe(Ze=>{this.ngOnInit(),console.log(`Dialog result: ${Ze}`)})}showLoyaltyPointHint(){this.notifier.info("Loyalty point updates every 100 threshold.","When you earn points on app, it's immediately added to your total points. But your loyalty points account is updated when you reach every 100 points threshold.")}getCurrentBadgeTitle(){return null==this.leaderboard?.current_badge?"N/A":this.leaderboard.current_badge.title}getBadgeCount(){return null==this.leaderboard?0:this.leaderboard.badges.length}copyToClipboard(me){un.g.copyToClipboard(me),this.notifier.info("Copied","Copied to clipboard")}onCloseClick(){this.onCanceled.emit()}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.Y36(_e.Ye),e.Y36(w.Y),e.Y36(n.F0),e.Y36(Z.z),e.Y36(ue.e),e.Y36(se.l),e.Y36(Re.uw),e.Y36(ce.S),e.Y36(Jt.X))};static#t=this.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-leaderboard"]],inputs:{username:"username",leaderboard:"leaderboard",wallet:"wallet"},features:[e.qOj],decls:46,vars:13,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"card"],[1,"card-body"],[1,"card-title"],["alt","Leaderboard",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"card-subtitle","font-14","text-muted"],["href","javascript:void(0);",3,"routerLink"],[1,"card-text","text-warning","mt-2"],[1,"card-body","col-12"],[1,"table"],[1,"text-center"],["class","text-center",4,"ngIf"],[1,"float-end"],["href","javascript: void(0);",1,"card-link","text-danger","pe-3",3,"click"],["href","javascript: void(0);",1,"card-link","text-primary","pe-3",3,"click"],["href","javascript: void(0);","class","btn btn-outline-info waves-effect waves-light",3,"click",4,"ngIf"],["class","row",4,"ngIf"],[3,"bar"],[3,"click"],["href","javascript: void(0);",1,"btn","btn-outline-info","waves-effect","waves-light",3,"click"],[1,"table-responsive"],["class","table table-bordered table-striped table-nowrap mb-0",4,"ngIf"],[1,"table","table-bordered","table-striped","table-nowrap","mb-0"],[1,"table","table-condensed","mt-2"],[4,"ngFor","ngForOf"],[1,"btn-copy",3,"click"]],template:function(tt,he){1&tt&&(e.YNc(0,wn,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),e._UZ(5,"img",5),e._uU(6," \xa0Leaderboard "),e.qZA(),e.TgZ(7,"h6",6)(8,"a",7),e._uU(9),e.qZA(),e.TgZ(10,"p",8),e._uU(11,"Redeemable point updates every 100 threshold."),e.qZA()()(),e.TgZ(12,"div",9)(13,"table",10)(14,"tbody")(15,"tr")(16,"td")(17,"div",11)(18,"h3"),e._uU(19),e.qZA(),e.TgZ(20,"h5"),e._uU(21,"Points"),e.qZA()()(),e.TgZ(22,"td"),e.YNc(23,Ln,8,1,"div",12),e.YNc(24,Yn,5,1,"div",12),e.qZA()(),e.TgZ(25,"tr")(26,"td")(27,"div",11)(28,"h3"),e._uU(29),e.qZA(),e.TgZ(30,"h5"),e._uU(31,"Total Redeemed"),e.qZA()()(),e.TgZ(32,"td")(33,"div",11)(34,"h3"),e._uU(35),e.qZA(),e.TgZ(36,"h5"),e._uU(37,"No of Badges"),e.qZA()()()()()()(),e.TgZ(38,"div",3)(39,"div",13)(40,"a",14),e.NdJ("click",function(){return he.onCloseClick()}),e._uU(41,"Close"),e.qZA(),e.TgZ(42,"a",15),e.NdJ("click",function(){return he.showRecentTransactions=!he.showRecentTransactions}),e._uU(43,"Transactions"),e.qZA(),e.YNc(44,ti,2,0,"a",16),e.qZA()()()(),e.YNc(45,dt,7,1,"div",17)),2&tt&&(e.Q6J("ngIf",he.loading),e.xp6(5),e.s9C("src",null==he.leaderboard?null:he.leaderboard.avatar,e.LSH),e.xp6(3),e.Q6J("routerLink",e.VKq(11,at,"/u/"+he.username)),e.xp6(1),e.hij("@",he.username,""),e.xp6(10),e.Oqu(null==he.leaderboard?null:he.leaderboard.points),e.xp6(4),e.Q6J("ngIf",he.isMyProfile()),e.xp6(1),e.Q6J("ngIf",!he.isMyProfile()),e.xp6(5),e.Oqu(he.getRedeemedAmount()),e.xp6(6),e.Oqu(he.getBadgeCount()),e.xp6(9),e.Q6J("ngIf",he.isMyProfile()),e.xp6(1),e.Q6J("ngIf",he.showRecentTransactions))},dependencies:[_e.sg,_e.O5,n.rH,tn.t,_e.uU],styles:[".leaderboard[_ngcontent-%COMP%]{background:#211e1e}.leaderboard[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .leaderboard[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f5f5f5}mat-dialog-content[_ngcontent-%COMP%]{padding-bottom:10px}mat-grid-tile[_ngcontent-%COMP%]{border:1px dashed whitesmoke}mat-grid-tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#44d62c}.btn-redeem[_ngcontent-%COMP%]{color:#44d62c}.info[_ngcontent-%COMP%]{margin-bottom:10px;font-size:.7em}.username[_ngcontent-%COMP%]{color:#44d62c}.header-avatar[_ngcontent-%COMP%]{max-height:50px;max-width:50px}.tnx-section[_ngcontent-%COMP%]{font-size:.8em;color:#f5f5f5;max-width:60%!important}.tnx-section[_ngcontent-%COMP%] .tnx-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.tnx-section[_ngcontent-%COMP%] .tnx-header-action[_ngcontent-%COMP%]{color:#44d62c}.tnx-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .tnx-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:.9em;color:#f5f5f5}.tnx-section[_ngcontent-%COMP%] .btn-copy[_ngcontent-%COMP%]{color:#44d62c;font-size:.8em}"]})}return Ee})()},2951:(ft,Ie,C)=>{"use strict";C.d(Ie,{S:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchLeaderboard(ue,se){this.http.get(l.e.LEADERBOARDS.FETCH_LEADERBOARD(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchLeaderboard(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}redeem(ue,se){this.http.post(l.e.LEADERBOARDS.REDEEM(),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.redeem(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}fetchRecentAchievements(ue,se){this.http.get(l.e.LEADERBOARDS.FETCH_RECENT_ACHIEVEMENTS(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchRecentAchievements(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},1822:(ft,Ie,C)=>{"use strict";C.d(Ie,{X:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchWallet(ue,se,te=null){let oe=null==te?l.e.WALLET.FETCH_MY_WALLET(se):l.e.WALLET.FETCH_USER_WALLET(te,se);this.http.get(oe).subscribe(ce=>{this.eventBus.publish(ue,ce)},ce=>{this.eventBus.publish(ue,ce)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},7222:(ft,Ie,C)=>{"use strict";C.d(Ie,{o:()=>I});var e=C(2495),l=C(553),D=C(5879);let I=(()=>{class S extends e.O{constructor(){super()}static#e=this.AUTH={LOGIN:n=>l.N.base_url+"/oauth/token"+e.O.toParamString(n),REFRESH_TOKEN:n=>l.N.base_url+"/oauth/token"+e.O.toParamString(n)};static#t=this.REGISTER={SEND_OTP:n=>l.N.base_url+"/api/v1/register/verify"+e.O.toParamString(n),REGISTER:n=>l.N.base_url+"/api/v1/register"+e.O.toParamString(n)};static#n=this.RESET_PASSWORD={REQUEST_TOKEN:n=>l.N.base_url+"/api/v1/reset_password"+e.O.toParamString(n),RESET_PASSWORD:n=>l.N.base_url+"/api/v1/reset_password"+e.O.toParamString(n)};static#i=this.\u0275fac=function(Z){return new(Z||S)};static#r=this.\u0275prov=D.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},7043:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{AuthModule:()=>Ze});var e=C(6814),l=C(1662),D=C(6223),I=C(7259),S=C(8637),w=C(5879),n=C(8480),Z=C(5462),ee=C(30),re=C(6945);const ue=function(){return["/reset-password"]};let se=(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(nn,Dn,Ot),this.authService=Nt,this.notifier=Qt,this.loginForm=new D.cw({username:new D.NI("",D.kI.required),password:new D.NI("",D.kI.required)})}componentName(){return"LoginComponent"}ngOnInit(){this.authService.isAuthenticated()&&this.navigateByUrl("/",Nt=>{})}login(){let Nt=this.componentKey(I.Z.AUTH.LOGIN_SUCCESS);this.authService.login(Nt,this.loginForm.value.username,this.loginForm.value.password),this.subscribe(Nt,null,Qt=>{this.navigate("/",nn=>{this.notifier.success("Success!","Successfully logged in.")})}),this.subscribe(this.getMultiErrorKey(Nt,1),"/auth/login",Qt=>{this.notifier.error("Something went wrong!","Error happened on server.")}),this.subscribe(this.getMultiErrorKey(Nt,2),"/auth/login",Qt=>{this.notifier.warning("Login Failed!","Wrong credentials or missing access rights to application.")})}isAuthenticated(){return this.authService.isAuthenticated()}forgotPassword(){this.notifier.info("Later!","Will be implemented later!")}register(){this.notifier.info("Later!","Will be implemented later!")}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-login"]],features:[w.qOj],decls:84,vars:4,consts:[["lang","en"],["charset","utf-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],["content","Premium Multipurpose Admin & Dashboard Template","name","description"],["content","Themesbrand","name","author"],["rel","shortcut icon","href","/assets/apanel/images/favicon.ico"],["href","/assets/apanel/css/bootstrap.min.css","id","bootstrap-style","rel","stylesheet","type","text/css"],["href","/assets/apanel/css/icons.min.css","rel","stylesheet","type","text/css"],["href","/assets/apanel/css/app.min.css","id","app-style","rel","stylesheet","type","text/css"],[1,"account-pages","my-5","pt-sm-5"],[1,"container"],[1,"row","justify-content-center"],[1,"col-md-8","col-lg-6","col-xl-5"],[1,"card","overflow-hidden"],[1,"bg-primary-subtle"],[1,"row"],[1,"col-7"],[1,"text-primary","p-4"],[1,"text-primary"],[1,"col-5","align-self-end"],["src","/assets/apanel/images/profile-img.png","alt","",1,"img-fluid"],[1,"card-body","pt-0"],[1,"auth-logo"],["href","index.html",1,"auth-logo-light"],[1,"avatar-md","profile-user-wid","mb-4"],[1,"avatar-title","rounded-circle","bg-light"],["src","/assets/apanel/images/logos/astha.svg","alt","","height","34",1,"rounded-circle"],["href","index.html",1,"auth-logo-dark"],[1,"p-2"],[1,"form-horizontal",3,"formGroup","ngSubmit"],[1,"mb-3"],["for","username",1,"form-label"],["type","text","id","username","formControlName","username","placeholder","Enter username",1,"form-control"],[1,"form-label"],[1,"input-group","auth-pass-inputgroup"],["type","password","placeholder","Enter password","formControlName","password","aria-label","Password","aria-describedby","password-addon",1,"form-control"],["type","button","id","password-addon",1,"btn","btn-light"],[1,"mdi","mdi-eye-outline"],[1,"form-check"],["type","checkbox","id","remember-check","checked","checked",1,"form-check-input"],["for","remember-check",1,"form-check-label"],[1,"mt-3","d-grid"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"disabled"],[1,"mt-4","text-center"],[1,"font-size-14","mb-3"],[1,"list-inline"],[1,"list-inline-item"],["href","javascript::void()",1,"social-list-item","bg-primary","text-white","border-primary"],[1,"mdi","mdi-facebook"],["href","javascript::void()",1,"social-list-item","bg-info","text-white","border-info"],[1,"mdi","mdi-twitter"],["href","javascript::void()",1,"social-list-item","bg-danger","text-white","border-danger"],[1,"mdi","mdi-google"],["href","javascript::void()",1,"text-muted",3,"routerLink"],[1,"mdi","mdi-lock","me-1"],[1,"mt-5","text-center"],["href","javascript::void()","routerLink","/sign-up",1,"fw-medium","text-primary"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"html",0)(1,"head"),w._UZ(2,"meta",1),w.TgZ(3,"title"),w._uU(4,"Login | Servicito"),w.qZA(),w._UZ(5,"meta",2)(6,"meta",3)(7,"meta",4)(8,"link",5)(9,"link",6)(10,"link",7)(11,"link",8),w.qZA(),w.TgZ(12,"body")(13,"div",9)(14,"div",10)(15,"div",11)(16,"div",12)(17,"div",13)(18,"div",14)(19,"div",15)(20,"div",16)(21,"div",17)(22,"h5",18),w._uU(23,"Welcome Back !"),w.qZA(),w.TgZ(24,"p"),w._uU(25,"Sign in to continue to Servicito."),w.qZA()()(),w.TgZ(26,"div",19),w._UZ(27,"img",20),w.qZA()()(),w.TgZ(28,"div",21)(29,"div",22)(30,"a",23)(31,"div",24)(32,"span",25),w._UZ(33,"img",26),w.qZA()()(),w.TgZ(34,"a",27)(35,"div",24)(36,"span",25),w._UZ(37,"img",26),w.qZA()()()(),w.TgZ(38,"div",28)(39,"form",29),w.NdJ("ngSubmit",function(){return nn.login()}),w.TgZ(40,"div",30)(41,"label",31),w._uU(42,"Username"),w.qZA(),w._UZ(43,"input",32),w.qZA(),w.TgZ(44,"div",30)(45,"label",33),w._uU(46,"Password"),w.qZA(),w.TgZ(47,"div",34),w._UZ(48,"input",35),w.TgZ(49,"button",36),w._UZ(50,"i",37),w.qZA()()(),w.TgZ(51,"div",38),w._UZ(52,"input",39),w.TgZ(53,"label",40),w._uU(54," Remember me "),w.qZA()(),w.TgZ(55,"div",41)(56,"button",42),w._uU(57,"Log In "),w.qZA()(),w.TgZ(58,"div",43)(59,"h5",44),w._uU(60,"Sign in with"),w.qZA(),w.TgZ(61,"ul",45)(62,"li",46)(63,"a",47),w._UZ(64,"i",48),w.qZA()(),w.TgZ(65,"li",46)(66,"a",49),w._UZ(67,"i",50),w.qZA()(),w.TgZ(68,"li",46)(69,"a",51),w._UZ(70,"i",52),w.qZA()()()(),w.TgZ(71,"div",43)(72,"a",53),w._UZ(73,"i",54),w._uU(74," Forgot your password?"),w.qZA()()()()()(),w.TgZ(75,"div",55)(76,"div")(77,"p"),w._uU(78,"Don't have an account ? "),w.TgZ(79,"a",56),w._uU(80," Signup now "),w.qZA()(),w.TgZ(81,"p"),w._uU(82,"\xa9 "),w._uU(83," servicito "),w.qZA()()()()()()()()()),2&Qt&&(w.xp6(39),w.Q6J("formGroup",nn.loginForm),w.xp6(17),w.Q6J("disabled",!nn.loginForm.valid),w.xp6(16),w.Q6J("routerLink",w.DdM(3,ue)))},dependencies:[l.rH,D._Y,D.Fj,D.JJ,D.JL,D.sg,D.u]})}return rt})();var te=function(rt){return rt[rt.INIT_VERIFICATION=0]="INIT_VERIFICATION",rt[rt.WAITING_FOR_CODE=1]="WAITING_FOR_CODE",rt[rt.VERIFIED=2]="VERIFIED",rt}(te||{}),oe=C(1547),ce=C(7222),_e=C(9862);let Re=(()=>{class rt extends oe.b{constructor(Nt,Qt,nn,Dn){super(Nt,Qt),this.http=nn,this.eventBus=Dn}sendOtp(Nt,Qt){this.http.post(ce.o.REGISTER.SEND_OTP({identity:Qt}),null).subscribe(nn=>{this.eventBus.publish(Nt,nn)},nn=>{this.eventBus.publish(this.getErrorKey(Nt),nn)})}register(Nt,Qt,nn){0===Qt.email?.trim().length&&(Qt.email=null),this.http.post(ce.o.REGISTER.REGISTER({token:nn}),Qt).subscribe(Dn=>{this.authService.setAuth(Dn),this.eventBus.publish(Nt,Dn)},Dn=>{this.eventBus.publish(this.getErrorKey(Nt),Dn)})}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.LFG(n.e),w.LFG(Z.l),w.LFG(_e.eN),w.LFG(ee.Y))};static#t=this.\u0275prov=w.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();function mt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Phone number should be 11 digits!"),w.qZA()())}function Ge(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"div",14),w.YNc(2,mt,3,0,"div",15),w.qZA(),w.TgZ(3,"div",16)(4,"span",17),w._uU(5,"+88"),w.qZA(),w._UZ(6,"input",18),w.qZA(),w.TgZ(7,"div",19)(8,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.sendOtp())}),w._uU(9,"Send OTP"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.phone)),w.xp6(4),w.Q6J("formControl",Nt.phone)}}function Lt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"OTP should be 6 digits!"),w.qZA()())}function je(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"div",14),w.YNc(2,Lt,3,0,"div",15),w.qZA(),w.TgZ(3,"div",16)(4,"span",17),w._uU(5,"OTP"),w.qZA(),w._UZ(6,"input",22),w.qZA(),w.TgZ(7,"div",19)(8,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.verifyOtp())}),w._uU(9,"Verify"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.otp)),w.xp6(4),w.Q6J("formControl",Nt.otp)}}function Tt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Name must be at least 3 characters!"),w.qZA()())}function xt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Must provide a valid username and should between least 6-20 characters!"),w.qZA()())}function St(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Name select a gender!"),w.qZA()())}function Zt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Invalid email!"),w.qZA()())}function yt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Password length must be at least 6!"),w.qZA()())}function un(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Password length must be at least 6!"),w.qZA()())}function Jt(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"form",23)(2,"div",24)(3,"span",17),w._UZ(4,"i",25),w.qZA(),w._UZ(5,"input",26),w.qZA(),w.TgZ(6,"div",14),w.YNc(7,Tt,3,0,"div",15),w.qZA(),w.TgZ(8,"div",24)(9,"span",17),w._UZ(10,"i",25),w.qZA(),w._UZ(11,"input",27),w.qZA(),w.TgZ(12,"div",14),w.YNc(13,xt,3,0,"div",15),w.qZA(),w.TgZ(14,"div")(15,"div",28),w._UZ(16,"input",29),w.TgZ(17,"label",30),w._uU(18," Male "),w.qZA()(),w.TgZ(19,"div",28),w._UZ(20,"input",31),w.TgZ(21,"label",32),w._uU(22," Female "),w.qZA()(),w.TgZ(23,"div",28),w._UZ(24,"input",33),w.TgZ(25,"label",34),w._uU(26," Other "),w.qZA()(),w.TgZ(27,"div",14),w.YNc(28,St,3,0,"div",15),w.qZA()(),w.TgZ(29,"div",16)(30,"span",17),w._uU(31,"@"),w.qZA(),w._UZ(32,"input",35),w.TgZ(33,"div",14),w.YNc(34,Zt,3,0,"div",15),w.qZA()(),w.TgZ(35,"div",24)(36,"span",17),w._UZ(37,"i",36),w.qZA(),w._UZ(38,"input",37),w.TgZ(39,"div",14),w.YNc(40,yt,3,0,"div",15),w.qZA()(),w.TgZ(41,"div",24)(42,"span",17),w._UZ(43,"i",36),w.qZA(),w._UZ(44,"input",38),w.TgZ(45,"div",14),w.YNc(46,un,3,0,"div",15),w.qZA()(),w.TgZ(47,"div",19)(48,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.register())}),w._uU(49,"submit"),w.qZA()()()()}if(2&rt){const Nt=w.oxw();w.xp6(1),w.Q6J("formGroup",Nt.registrationForm),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.name)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.username)),w.xp6(15),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.gender)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.email)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.password)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.confirmPassword))}}const tn=function(){return["/login"]};let wn=(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(Nt,Qt,nn),this.notifier=Dn,this.registrationService=Ot,this.step=te.INIT_VERIFICATION,this.phone=new D.NI("",[D.kI.required,D.kI.minLength(11),D.kI.maxLength(11)]),this.otp=new D.NI("",[D.kI.required,D.kI.minLength(6)]),this.registrationForm=new D.cw({name:new D.NI("",[D.kI.required,D.kI.minLength(3)]),gender:new D.NI("",[D.kI.required]),email:new D.NI("",[D.kI.email]),password:new D.NI("",[D.kI.required,D.kI.minLength(6)]),confirmPassword:new D.NI("",[D.kI.required,D.kI.minLength(6)]),username:new D.NI("",[D.kI.required,D.kI.minLength(6)])})}componentName(){return"RegistrationComponent"}ngOnInit(){this.registerSubscriptions()}isVerified(){return this.step===te.VERIFIED}isInitiating(){return this.step===te.INIT_VERIFICATION}isWaitingForCode(){return this.step===te.WAITING_FOR_CODE}sendOtp(){if(this.phone.invalid||null==this.phone.value)return void this.notifier.warning("Warning","Phone number should be 11 digits!");let Nt=this.phone.value;this.notifier.log(Nt);let Qt=this.componentKey(I.Z.REGISTRATION.OTP_SENT);this.registrationService.sendOtp(Qt,Nt),this.subscribe(Qt,null,(nn,Dn)=>{this.registrationForm.controls.username.setValue(this.phone.value),this.notifier.success("OTP Sent!","We've sent you an OTP. You need to provide the OTP here."),this.notifier.log(Dn),this.step=te.WAITING_FOR_CODE}),this.subscribe(this.getErrorKey(Qt),null,(nn,Dn)=>{this.notifier.warning("Failed",Dn.data.error.message)}),this.notifier.log(this.phone.value)}registerSubscriptions(){this.onRegisterEvent()}onRegisterEvent(){}verifyOtp(){this.otp.invalid||(this.step=te.VERIFIED)}register(){if(this.registrationForm.invalid)return void this.notifier.warning("Incorrect inputs!","Please fill the form correctly.");if(null==this.otp.value)return void this.notifier.warning("OTP Invalid!","Please enter OTP.");let Nt=this.prepare(this.registrationForm.value),Qt=this.componentKey(I.Z.REGISTRATION.REGISTER_SUCCESS);this.registrationService.register(Qt,Nt,this.otp.value),this.subscribe(Qt,"/choose-interests",(nn,Dn)=>{this.notifier.success("SUCCESS!","You've been successfully registered!")}),this.subscribe(this.getErrorKey(Qt),"/sign-up",(nn,Dn)=>{this.notifier.warning("Registration Failed!",Dn.data.error.message)})}prepare(Nt){return{email:Nt.email,gender:Nt.gender,name:Nt.name,password:Nt.password,phone:this.phone.value,role:"User",username:Nt.username}}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z),w.Y36(Z.l),w.Y36(Re))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-registration"]],features:[w.qOj],decls:25,vars:5,consts:[[1,"login-page-hero-section","py-4"],[1,"container"],["src","assets/img/login-page-images/login-hero-page.png","alt","astha login page"],[1,"login-form-section","pb-5","px-3"],[1,"row"],[1,"col-12"],[1,"section-title"],["class","astha-login-form-area",4,"ngIf"],[1,"login-area","mt-5"],[1,"text-center","text-white"],[1,"btn-login",3,"routerLink"],[1,"copyright-area","pb-5"],[1,"col-12","text-center"],[1,"astha-login-form-area"],[1,"err-msg"],["class","text-warning",4,"ngIf"],[1,"input-group","flex-nowrap"],[1,"input-group-text"],["type","text","placeholder","Enter phone number",1,"form-control",3,"formControl"],[1,"btn-action"],["type","submit",1,"btn-sign-up",3,"click"],[1,"text-warning"],["type","text","placeholder","Enter OTP",1,"form-control",3,"formControl"],["action","POST",3,"formGroup"],[1,"input-group"],[1,"flaticon-user"],["type","text","placeholder","Your name","formControlName","name","required","required","min","3",1,"form-control"],["type","text","name","username","placeholder","Username","formControlName","username","required","required","min","3",1,"form-control"],[1,"form-check"],["type","radio","name","gender","id","exampleRadios1","value","MALE","formControlName","gender","checked","",1,"form-check-input"],["for","exampleRadios1",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios2","value","FEMALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios2",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios3","value","OTHER","formControlName","gender",1,"form-check-input"],["for","exampleRadios3",1,"form-check-label"],["type","email","name","email","placeholder","Email ID","formControlName","email",1,"form-control"],[1,"icon-home-outline"],["type","password","name","password","placeholder","Password","formControlName","password","min","6",1,"form-control"],["type","password","name","confirmPassword","placeholder","Confirm Password","formControlName","confirmPassword","min","6",1,"form-control"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"section",0)(1,"div",1),w._UZ(2,"img",2),w.qZA()(),w.TgZ(3,"section",3)(4,"div",1)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1"),w._uU(9,"sign up"),w.qZA()()(),w.TgZ(10,"div",5),w.YNc(11,Ge,10,2,"div",7),w.YNc(12,je,10,2,"div",7),w.YNc(13,Jt,50,7,"div",7),w.qZA(),w.TgZ(14,"div",8)(15,"h4",9),w._uU(16,"Already Registered?"),w.qZA(),w.TgZ(17,"a",10),w._uU(18,"Login"),w.qZA()()()()(),w.TgZ(19,"section",11)(20,"div",1)(21,"div",4)(22,"div",12)(23,"h5"),w._uU(24,"\xa9 SERVICITO LTD"),w.qZA()()()()()),2&Qt&&(w.xp6(11),w.Q6J("ngIf",nn.isInitiating()),w.xp6(1),w.Q6J("ngIf",nn.isWaitingForCode()),w.xp6(1),w.Q6J("ngIf",nn.isVerified()),w.xp6(4),w.Q6J("routerLink",w.DdM(4,tn)))},dependencies:[e.O5,l.rH,D._Y,D.Fj,D._,D.JJ,D.JL,D.Q7,D.oH,D.sg,D.u],styles:[".login-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.err-msg[_ngcontent-%COMP%]{margin-bottom:30px}.login-area[_ngcontent-%COMP%] .btn-login[_ngcontent-%COMP%]{margin-top:20px;border:1px solid #44d62c;border-radius:2em;color:#44d62c;padding:5px 50px}.btn-action[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.btn-sign-up[_ngcontent-%COMP%]{margin-top:10px;border:1px solid #44d62c;border-radius:2em;color:#000;background-color:#44d62c;padding:10px 70px}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;color:#fff}.login-page-hero-section[_ngcontent-%COMP%]{text-align:center}.login-page-hero-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70%;height:200px}section.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-transform:capitalize;font-weight:600;font-size:35px}.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin-bottom:35px}.astha-login-form-area[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{padding:0;background:none;border:0;color:#98a0ac;font-size:18px}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:0;width:100%;text-transform:capitalize;border-radius:20px;background:#3961ED;color:#fff;font-size:22px;font-weight:600;padding:12px 20px;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{opacity:.7;letter-spacing:.05em}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:0}[placeholder][_ngcontent-%COMP%]:focus::-webkit-input-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus::-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-ms-input-placeholder{opacity:0}textarea[_ngcontent-%COMP%]:focus, input[type=text][_ngcontent-%COMP%]:focus, input[type=password][_ngcontent-%COMP%]:focus, input[type=email][_ngcontent-%COMP%]:focus, .uneditable-input[_ngcontent-%COMP%]:focus{border-color:transparent;box-shadow:0 1px 1px transparent;outline:0 none}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#b3b8c1;text-transform:capitalize}.astha-login-form-area[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border-bottom:2px solid #F0F1F3;margin-bottom:30px;padding:5px}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]{color:#778fd4;text-transform:capitalize;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]:hover{color:#333}.login-form-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;color:#b9bec6}.astha-ls-social-area[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;grid-gap:30px}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;border:2px solid #F0F2F4;padding:20px;font-size:25px;border-radius:20px;color:#3961ee;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#333;border-color:#333}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;text-transform:capitalize;color:#9198a4}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#3961ed}@media (max-width: 480px){.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:12px;border-radius:12px}.astha-ls-social-area[_ngcontent-%COMP%]{grid-gap:15px}}"]})}return rt})();var Ln=C(617);function Yn(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Username must be at least 6 characters!"),w.qZA()())}function ti(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",14)(1,"div",15)(2,"span",16),w._uU(3,"+88"),w.qZA(),w._UZ(4,"input",17),w.qZA(),w.TgZ(5,"div",18),w.YNc(6,Yn,3,0,"div",19),w.qZA(),w.TgZ(7,"div",20)(8,"button",21),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.requestToken())}),w._uU(9,"Send OTP"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(4),w.Q6J("formControl",Nt.username),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.username))}}function gi(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Name must be 11 characters!"),w.qZA()())}function Rn(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Token must be 5 characters!"),w.qZA()())}function dt(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"New must be at least 8 characters!"),w.qZA()())}function at(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",14)(1,"div",15)(2,"span",16),w._UZ(3,"i",23),w.qZA(),w._UZ(4,"input",24),w.qZA(),w.TgZ(5,"div",18),w.YNc(6,gi,3,0,"div",19),w.qZA(),w.TgZ(7,"div",15)(8,"span",16),w._uU(9,"OTP"),w.qZA(),w._UZ(10,"input",25),w.qZA(),w.TgZ(11,"div",18),w.YNc(12,Rn,3,0,"div",19),w.qZA(),w.TgZ(13,"div",15)(14,"span",16)(15,"mat-icon"),w._uU(16,"lock"),w.qZA()(),w._UZ(17,"input",26),w.qZA(),w.TgZ(18,"div",18),w.YNc(19,dt,3,0,"div",19),w.qZA(),w.TgZ(20,"div",20)(21,"button",27),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.resetPassword())}),w._uU(22,"Verify"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(4),w.Q6J("formControl",Nt.username),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.username)),w.xp6(4),w.Q6J("formControl",Nt.token),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.token)),w.xp6(5),w.Q6J("formControl",Nt.password),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.password)),w.xp6(2),w.Q6J("disabled",Nt.isVerifyButtonDisabled())}}const Be=function(){return["/login"]},Ee=function(){return["/sign-up"]},me=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"login",component:se},{path:"sign-up",component:wn},{path:"reset-password",component:(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(Nt,Qt,nn),this.notifier=Dn,this.authService=Ot,this.step=te.INIT_VERIFICATION,this.token=new D.NI("",[D.kI.required,D.kI.minLength(5)]),this.username=new D.NI("",[D.kI.required,D.kI.minLength(6),D.kI.maxLength(11)]),this.password=new D.NI("",[D.kI.required,D.kI.minLength(6)]),this.tokenValidity=new Date}componentName(){return"ResetPasswordComponent"}ngOnInit(){}isVerified(){return this.step===te.VERIFIED}isInitiating(){return this.step===te.INIT_VERIFICATION}isWaitingForCode(){return this.step===te.WAITING_FOR_CODE}requestToken(){if(this.username.invalid)return void this.notifier.warning("Warning","Username must be at least 6 characters!");let Nt=this.username.value;this.notifier.log(Nt);let Qt=this.componentKey(I.Z.RESET_PASSWORD.TOKEN_REQUESTED);this.authService.requestPasswordResetToken(Qt,Nt),this.subscribe(Qt,null,(nn,Dn)=>{this.step=te.WAITING_FOR_CODE;let Ot=Dn.data;this.tokenValidity=new Date((new Date).getMilliseconds()+Ot.tokenValidityMillis)}),this.subscribe(this.getErrorKey(Qt),null,(nn,Dn)=>{this.notifier.warning("Failed!",Dn.data.error.message)}),this.notifier.log(Nt)}verifyOtp(){this.step=te.VERIFIED}resetPassword(){let Nt=this.componentKey(I.Z.RESET_PASSWORD.RESET_SUCCESS);this.authService.resetPassword(Nt,this.token.value,this.username.value,this.password.value),this.subscribe(Nt,"/login",(Qt,nn)=>{this.notifier.success("Success!","Password has been reset successfully. Please login to continue.")}),this.subscribe(this.getErrorKey(Nt),null,(Qt,nn)=>{this.notifier.warning("Failed!",nn.data.error.message)})}isVerifyButtonDisabled(){return this.username.invalid||this.token.invalid||this.password.invalid}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z),w.Y36(Z.l),w.Y36(n.e))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-reset-password"]],features:[w.qOj],decls:30,vars:6,consts:[[1,"login-page-hero-section"],[1,"container"],["src","assets/img/login-page-images/login-hero-page.png","alt","astha login page"],[1,"login-form-section","mt-4","px-3"],[1,"row"],[1,"col-12"],[1,"section-title"],["class","astha-login-form-area",4,"ngIf"],[1,"reg-login-section","mt-5"],[1,"login-area"],[1,"text-center","text-white"],[1,"btn-login",3,"routerLink"],[1,"copyright-area","mt-5","pb-5"],[1,"col-12","text-center"],[1,"astha-login-form-area"],[1,"input-group","flex-nowrap"],[1,"input-group-text"],["type","text","placeholder","Enter phone number","required","required",1,"form-control",3,"formControl"],[1,"err-msg"],["class","text-warning",4,"ngIf"],[1,"btn-action"],["type","submit",1,"btn-reset",3,"click"],[1,"text-warning"],[1,"flaticon-user"],["type","text","placeholder","Enter OTP","required","required","readonly","",1,"form-control",3,"formControl"],["type","text","placeholder","Enter OTP","required","required",1,"form-control",3,"formControl"],["type","text","placeholder","Enter new password","required","required",1,"form-control",3,"formControl"],["type","submit",1,"btn-reset",3,"disabled","click"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"section",0)(1,"div",1),w._UZ(2,"img",2),w.qZA()(),w.TgZ(3,"section",3)(4,"div",1)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1"),w._uU(9,"Reset Password"),w.qZA()()(),w.TgZ(10,"div",5),w.YNc(11,ti,10,2,"div",7),w.YNc(12,at,23,7,"div",7),w.qZA()()()(),w.TgZ(13,"section",8)(14,"div",9)(15,"h5",10),w._uU(16,"Already Registered?"),w.qZA(),w.TgZ(17,"a",11),w._uU(18,"Login"),w.qZA()(),w.TgZ(19,"div",9)(20,"h5",10),w._uU(21,"Don't have an account yet?"),w.qZA(),w.TgZ(22,"a",11),w._uU(23,"Sign Up"),w.qZA()()(),w.TgZ(24,"section",12)(25,"div",1)(26,"div",4)(27,"div",13)(28,"h5"),w._uU(29,"\xa9 SERVICITO LTD"),w.qZA()()()()()),2&Qt&&(w.xp6(11),w.Q6J("ngIf",nn.isInitiating()),w.xp6(1),w.Q6J("ngIf",nn.isWaitingForCode()),w.xp6(5),w.Q6J("routerLink",w.DdM(4,Be)),w.xp6(5),w.Q6J("routerLink",w.DdM(5,Ee)))},dependencies:[e.O5,l.rH,D.Fj,D.JJ,D.Q7,D.oH,Ln.Hw],styles:[".reg-login-section[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly;align-items:baseline}.login-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.login-area[_ngcontent-%COMP%] .btn-login[_ngcontent-%COMP%]{margin-top:20px;border:1px solid #44d62c;border-radius:2em;color:#44d62c;padding:5px 50px}.btn-action[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.btn-reset[_ngcontent-%COMP%]{margin-top:10px;border:1px solid #44d62c;border-radius:2em;color:#000;background-color:#44d62c;padding:10px 70px}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;color:#fff}.login-page-hero-section[_ngcontent-%COMP%]{text-align:center}.login-page-hero-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70%;height:200px}section.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-transform:capitalize;font-weight:600;font-size:35px}.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin-bottom:35px}.astha-login-form-area[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{padding:0;background:none;border:0;color:#98a0ac;font-size:18px}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:0;width:100%;text-transform:capitalize;border-radius:20px;background:#3961ED;color:#fff;font-size:22px;font-weight:600;padding:12px 20px;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;cursor:pointer;opacity:1}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{opacity:.7;letter-spacing:.05em}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:0}[placeholder][_ngcontent-%COMP%]:focus::-webkit-input-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus::-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-ms-input-placeholder{opacity:0}textarea[_ngcontent-%COMP%]:focus, input[type=text][_ngcontent-%COMP%]:focus, input[type=password][_ngcontent-%COMP%]:focus, input[type=email][_ngcontent-%COMP%]:focus, .uneditable-input[_ngcontent-%COMP%]:focus{border-color:transparent;box-shadow:0 1px 1px transparent;outline:0 none}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#b3b8c1;text-transform:capitalize}.astha-login-form-area[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border-bottom:2px solid #F0F1F3;padding:5px}.err-msg[_ngcontent-%COMP%]{margin-bottom:30px}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]{color:#778fd4;text-transform:capitalize;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]:hover{color:#333}.login-form-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;color:#b9bec6}.astha-ls-social-area[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;grid-gap:30px}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;border:2px solid #F0F2F4;padding:20px;font-size:25px;border-radius:20px;color:#3961ee;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#333;border-color:#333}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;text-transform:capitalize;color:#9198a4}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#3961ed}@media (max-width: 480px){.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:12px;border-radius:12px}.astha-ls-social-area[_ngcontent-%COMP%]{grid-gap:15px}}"]})}return rt})()}];let tt=(()=>{class rt{static#e=this.\u0275fac=function(Qt){return new(Qt||rt)};static#t=this.\u0275mod=w.oAB({type:rt});static#n=this.\u0275inj=w.cJS({imports:[l.Bz.forChild(me),l.Bz]})}return rt})();var he=C(9890);let Ze=(()=>{class rt{static#e=this.\u0275fac=function(Qt){return new(Qt||rt)};static#t=this.\u0275mod=w.oAB({type:rt});static#n=this.\u0275inj=w.cJS({providers:[{provide:_e.TP,useClass:he.I,multi:!0}],imports:[e.ez,tt,D.UX,Ln.Ps]})}return rt})()},9890:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>S});var e=C(9862),l=C(5879),D=C(8480),I=C(1662);let S=(()=>{class w{constructor(Z,ee){this.authService=Z,this.router=ee,this.tryCount=0}intercept(Z,ee){let re=this.authService.getAccessToken();return null===re||0===re.trim().length||"OPTIONS"===Z.method?ee.handle(Z):ee.handle(this.applyCredentials(Z,re))}navigateByUrl(Z,ee){null!=Z&&this.router.navigateByUrl(Z).then(re=>ee(re))}static isAuthError(Z){return Z instanceof e.UA&&(401===Z.status||0===Z.status)}static isAccessTokenExpired(Z){return Z instanceof e.UA&&401===Z.status&&Z.error.error_description.startsWith("Access token expired")?(console.log("Access token expired",Z),!0):(console.log("Access token not expired",Z),!1)}applyCredentials(Z,ee){return Z.clone({headers:this.authService.getAuthHeadersFromToken(ee)})}static#e=this.\u0275fac=function(ee){return new(ee||w)(l.LFG(D.e),l.LFG(I.F0))};static#t=this.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac})}return w})()},9538:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>I});var e=C(5879),l=C(1662),D=C(8480);let I=(()=>{class S{constructor(n,Z){this.router=n,this.authService=Z}canActivate(n,Z){return!!this.authService.isAuthenticated()||(this.router.navigate(["/login"]).then(ee=>console.log(n)),!1)}static#e=this.\u0275fac=function(Z){return new(Z||S)(e.LFG(l.F0),e.LFG(D.e))};static#t=this.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},8480:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>te});var e=C(9862),l=C(3108),D=C(553),I=C(7222),S=C(7259);class w extends Error{}w.prototype.name="InvalidTokenError";var re=C(5879),ue=C(30),se=C(6945);let te=(()=>{class oe{constructor(_e,Re,mt){this.http=_e,this.eventBus=Re,this.subContainer=mt,this.refreshToken$=this.http.post(this.getRefreshTokenUrl(),null)}login(_e,Re,mt){const Ge=this.getLoginUrl(Re,mt);this.http.post(Ge,null).subscribe(je=>{this.setAuth(je),this.eventBus.publish(_e,je)},je=>{this.eventBus.publish(je.status>=500||0==je.status?_e+":error:1":_e+":error:2",je)})}setAuth(_e){l.n.putAuth(_e)}isAuthenticated(){return!!l.n.retrieve(l.n.KEYS.accessToken)}isAdmin(){return"admin"==this.getAuth().username}getAuthorities(){return function ee(oe,ce){if("string"!=typeof oe)throw new w("Invalid token specified: must be a string");ce||(ce={});const _e=!0===ce.header?0:1,Re=oe.split(".")[_e];if("string"!=typeof Re)throw new w(`Invalid token specified: missing part #${_e+1}`);let mt;try{mt=function Z(oe){let ce=oe.replace(/-/g,"+").replace(/_/g,"/");switch(ce.length%4){case 0:break;case 2:ce+="==";break;case 3:ce+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function n(oe){return decodeURIComponent(atob(oe).replace(/(.)/g,(ce,_e)=>{let Re=_e.charCodeAt(0).toString(16).toUpperCase();return Re.length<2&&(Re="0"+Re),"%"+Re}))}(ce)}catch{return atob(ce)}}(Re)}catch(Ge){throw new w(`Invalid token specified: invalid base64 for part #${_e+1} (${Ge.message})`)}try{return JSON.parse(mt)}catch(Ge){throw new w(`Invalid token specified: invalid json for part #${_e+1} (${Ge.message})`)}}(this.getAccessToken()).authorities}hasPrivilege(_e){const Re=this.getAuthorities();return!!Re&&Re.includes(_e)}logout(){let _e=this.globalKey(S.Z.AUTH.LOGOUT);return this.isAuthenticated()&&(l.n.clear(),this.eventBus.publish(_e,null)),this.subContainer.disposeNonGlobal(),location.reload(),console.log("Logged out! Disposing non-global subscriptions.."),console.log(Array.from(this.subContainer.getKeys().keys())),_e}globalKey(_e){return"global:"+_e}getAuth(){return l.n.getAuth()}getFirstName(){if(!this.isAuthenticated())return"";const _e=this.getAuth().name.split(" ");return _e.length<1?"":_e[0]}getAccessToken(){return l.n.retrieve(l.n.KEYS.accessToken)}getRefreshToken(){return l.n.retrieve(l.n.KEYS.refreshToken)}getLoginUrl(_e,Re){return I.o.AUTH.LOGIN({grant_type:"password",client_id:D.N.client_id,client_secret:D.N.client_secret,username:_e,password:Re})}getRefreshTokenUrl(){return I.o.AUTH.REFRESH_TOKEN({grant_type:"refresh_token",client_id:D.N.client_id,client_secret:D.N.client_secret,refresh_token:this.getRefreshToken()})}refreshToken(_e){this.refreshToken$.subscribe(Re=>{l.n.putAuth(Re),console.log("Token refreshed!"),_e(Re)},Re=>{this.logout()})}getAuthHeaders(){return new e.WM({Authorization:"Bearer "+this.getAccessToken()})}getAuthHeadersFromToken(_e){return new e.WM({Authorization:"Bearer "+_e})}requestPasswordResetToken(_e,Re){this.http.get(I.o.RESET_PASSWORD.REQUEST_TOKEN({username:Re})).subscribe(mt=>{this.eventBus.publish(_e,mt)},mt=>{this.eventBus.publish(S.Z.RESET_PASSWORD.RESET_PASSWORD_ERROR,mt)})}resetPassword(_e,Re,mt,Ge){this.http.post(I.o.RESET_PASSWORD.REQUEST_TOKEN({token:Re,username:mt,password:Ge}),null).subscribe(Lt=>{this.eventBus.publish(_e,Lt)},Lt=>{this.eventBus.publish(_e+"error",Lt)})}static#e=this.\u0275fac=function(Re){return new(Re||oe)(re.LFG(e.eN),re.LFG(ue.Y),re.LFG(se.z))};static#t=this.\u0275prov=re.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},5239:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}deleteAccount(ue){this.http.delete(l.e.USER.DELETE_ME()).subscribe(se=>{this.eventBus.publish(ue,se)},se=>{this.handleError(se,te=>{this.deleteAccount(ue)},te=>{this.eventBus.publish(this.getErrorKey(ue),te)})})}searchUsers(ue,se){this.http.get(l.e.USER.SEARCH(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.searchUsers(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9797:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{CmsModule:()=>ue});var e=C(6814),l=C(1662),D=C(5879),I=C(9661);const w=[{path:"files",component:(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275cmp=D.Xpm({type:se,selectors:[["app-file"]],decls:1,vars:0,template:function(ce,_e){1&ce&&D._UZ(0,"app-file-list")},dependencies:[I.E]})}return se})()}];let n=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=D.oAB({type:se});static#n=this.\u0275inj=D.cJS({imports:[l.Bz.forChild(w),l.Bz]})}return se})();var Z=C(7151),ee=C(6223),re=C(7700);let ue=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=D.oAB({type:se});static#n=this.\u0275inj=D.cJS({providers:[{provide:re.WI,useValue:{}}],imports:[e.ez,ee.UX,n,Z.g]})}return se})()},9661:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>Ve});var e=C(5879),l=C(6405),D=C(6032);let I={defaultLayout:l.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:D.s.FILES.FILE_ENDPOINT,imageEndpoint:D.s.FILES.IMAGE_ENDPOINT,delEndpoint:D.s.FILES.FILE_ENDPOINT,imgDelEndpoint:D.s.FILES.IMAGE_ENDPOINT},S={list:"/cms/files",create:"/cms/files/create",update(ct){return null==ct?this.create:"/admin/files/"+ct+"/update"}};var w=C(6542),n=C(7700),Z=C(1855),ee=C(7259),re=C(6223),ue=C(9870),se=C(8637),te=C(30),oe=C(1662),ce=C(6945),_e=C(9230),Re=C(5462),mt=C(6814),Ge=C(4736);function Lt(ct,Ct){1&ct&&e._UZ(0,"util-progress",10),2&ct&&e.Q6J("bar",!0)}function je(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"img",15),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(2);return e.KtG(ot.removeImage(Oe))}),e.qZA()}2&ct&&e.s9C("src",Ct.$implicit.previewUrl,e.LSH)}function Tt(ct,Ct){if(1&ct&&(e.TgZ(0,"div",11)(1,"small",12),e.SDv(2,13),e.qZA(),e._UZ(3,"br"),e.YNc(4,je,1,1,"img",14),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(4),e.Q6J("ngForOf",Ce.uploadFiles)}}function xt(ct,Ct){if(1&ct&&(e.TgZ(0,"h6",16),e._uU(1),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(1),e.Oqu(Ce.msg)}}let St=(()=>{class ct extends se.H{componentName(){return"ImageUploaderComponent"}constructor(Ce,J,ae,Oe,ot){super(Ce,J,ae),this.fileService=Oe,this.notifier=ot,this.title="Upload Images",this.msg="",this.multiSelect=!1,this.uploadFiles=[],this.required=!1,this.images=[],this.onUploaded=new e.vpe,this.loading=!1,null==this.uniqueNamespace&&(this.uniqueNamespace=this.getUniqueId(4))}ngOnInit(){console.log(this.images)}uploadImages(){if(0==this.uploadFiles.length)return void(this.required?this.msg="File not selected":this.onUploaded.emit(this.images));console.log("uploading images.."),this.loading=!0;let Ce=[];this.uploadFiles.forEach(ae=>{Ce.push(ae.file)});let J=this.componentKey(ee.Z.FILES.IMAGE_UPLOAD(this.uniqueNamespace+"-img"));this.fileService.uploadImagesV2(J,Ce),this.subscribe(J,null,(ae,Oe)=>{this.images=Oe.data,this.loading=!1,this.onUploaded.emit(this.images),console.log("Uploaded successfully!"),console.log(this.images)})}onImageSelected(Ce){if(Ce.target.files&&Ce.target.files[0]){if(null==Ce.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let ae={file:Ce.target.files[0],previewUrl:null};const Oe=new FileReader;Oe.readAsDataURL(Ce.target.files[0]),Oe.onload=Se=>{let Ft=Se.target?.result;null!=Ft&&(ae.previewUrl=Ft,this.multiSelect||(console.log("resetting images"),this.images=[],console.log(this.images),this.uploadFiles=[]),this.uploadFiles.push(ae),this.msg="")}}}removeImage(Ce){let J=this.uploadFiles.map(ae=>ae.previewUrl).indexOf(Ce.previewUrl);this.uploadFiles.splice(J,1)}removeExImage(Ce){let J=this.images.indexOf(Ce);this.images.splice(J)}getUniqueId(Ce){const J=[];for(let ae=0;ae0),e.xp6(2),e.Oqu(ae.title),e.xp6(5),e.Q6J("ngIf",ae.msg.length>0))},dependencies:[mt.sg,mt.O5,Ge.t]})}return ct})();function Zt(ct,Ct){1&ct&&e._UZ(0,"util-progress",11),2&ct&&e.Q6J("bar",!0)}let yt=(()=>{class ct extends ue.n{constructor(Ce,J,ae,Oe,ot,Se,Ft){super(Ce,J,ae,Oe,Ft),this.fileService=ot,this.notifier=Se,this.config=I,this.fileForm=new re.cw({image:new re.NI(null)})}componentName(){return"FileUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Files",link:"/admin/files",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(Ce){this.loading=!0;let J=this.componentKey(ee.Z.FILES.GET(Ce));this.fileService.fetchSingle(J,Ce),this.subscribe(J,null,(ae,Oe)=>{this.loading=!1,this.populateForm(Oe.data)}),this.subscribe(this.getErrorKey(J),null,(ae,Oe)=>{console.log(Oe.data),this.loading=!1})}getExImages(){return[{image_url:this.fileForm.controls.image.value,thumb_url:this.fileForm.controls.image.value}]}onSubmit(){this.fileForm.valid&&this.uploadComponent.uploadImages()}onImgUploaded(Ce){Ce.length>0&&this.fileForm.controls.image.setValue(Ce[0].thumb_url),setTimeout(()=>{this.onCompleted.emit(Ce)},500)}getConfig(){return this.config}getListPageRoute(){return S.list}populateForm(Ce){}static#e=this.\u0275fac=function(J){return new(J||ct)(e.Y36(te.Y),e.Y36(oe.F0),e.Y36(ce.z),e.Y36(oe.gz),e.Y36(_e.I),e.Y36(Re.l),e.Y36(n.WI))};static#t=this.\u0275cmp=e.Xpm({type:ct,selectors:[["app-file-upsert"]],viewQuery:function(J,ae){if(1&J&&e.Gf(St,5),2&J){let Oe;e.iGM(Oe=e.CRH())&&(ae.uploadComponent=Oe.first)}},features:[e.qOj],decls:14,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[3,"title","multiSelect","images","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(J,ae){1&J&&(e.YNc(0,Zt,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update File"),e.qZA(),e.TgZ(7,"form",6)(8,"app-image-uploader-v2",7),e.NdJ("onUploaded",function(ot){return ae.onImgUploaded(ot)}),e.qZA(),e.TgZ(9,"div",8)(10,"button",9),e.NdJ("click",function(){return ae.onCancel()}),e._uU(11," Cancel "),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return ae.onSubmit()}),e._uU(13," Submit "),e.qZA()()()()()()()),2&J&&(e.Q6J("ngIf",ae.loading),e.xp6(7),e.Q6J("formGroup",ae.fileForm),e.xp6(1),e.s9C("title",ae.translations["Select File"]),e.Q6J("multiSelect",!0)("images",ae.getExImages())("required",!0),e.xp6(4),e.Q6J("ngClass",ae.fileForm.valid?"":"disabled"))},dependencies:[mt.mk,mt.O5,re._Y,re.JL,re.sg,Ge.t,St]})}return ct})();var un=C(8174),Jt=C(2159),tn=C(8480),wn=C(8675),Ln=C(1836),Yn=C(6075),ti=C(9582),gi=C(2770);function Rn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",11)(1,"div",12)(2,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onCloseClicked())}),e._UZ(3,"i",14),e.qZA()()()}}function dt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",15)(1,"button",16),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.useSelectedFiles())}),e.TgZ(2,"span"),e.SDv(3,17),e.qZA()(),e.TgZ(4,"button",18),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.clearSelection())}),e.TgZ(5,"span"),e.SDv(6,19),e.qZA()()()}}function at(ct,Ct){1&ct&&e._UZ(0,"util-progress",20),2&ct&&e.Q6J("bar",!0)}function Be(ct,Ct){1&ct&&(e.TgZ(0,"h4",32),e.SDv(1,33),e.qZA())}function Ee(ct,Ct){1&ct&&(e.TgZ(0,"h4",34),e.SDv(1,35),e.qZA())}function $e(ct,Ct){if(1&ct&&(e.TgZ(0,"div",21)(1,"div",22)(2,"div",0)(3,"div",23)(4,"div",24)(5,"h1",25),e._UZ(6,"i",26),e.qZA(),e.YNc(7,Be,2,0,"h4",27),e.YNc(8,Ee,2,0,"h4",28),e.qZA()()(),e.TgZ(9,"div",29)(10,"div",30)(11,"div"),e._UZ(12,"img",31),e.qZA()()()()()),2&ct){const Ce=e.oxw();e.xp6(7),e.Q6J("ngIf",Ce.loading),e.xp6(1),e.Q6J("ngIf",!Ce.loading)}}function me(ct,Ct){1&ct&&(e.TgZ(0,"th"),e.SDv(1,50),e.qZA())}function tt(ct,Ct){1&ct&&(e.TgZ(0,"th"),e.SDv(1,51),e.qZA())}function he(ct,Ct){if(1&ct&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&ct){const Ce=e.oxw().$implicit;e.xp6(1),e.Oqu(Ce.created_by)}}function Ze(ct,Ct){1&ct&&e._UZ(0,"td",52)}function rt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,he,2,1,"td",8),e.TgZ(4,"td")(5,"a",13),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.onUpsertClick(Oe.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td")(8,"small"),e._uU(9),e.ALo(10,"readableDate"),e.qZA()(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td",52)(16,"a",53),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.onUpsertClick(Oe.id))}),e._UZ(17,"i",54),e.qZA()(),e.YNc(18,Ze,1,0,"td",55),e.qZA()}if(2&ct){const Ce=Ct.$implicit,J=e.oxw(3);e.xp6(2),e.Oqu(Ce.id),e.xp6(1),e.Q6J("ngIf",J.config.showUserFilter),e.xp6(3),e.hij(" ",Ce.image_url," "),e.xp6(3),e.Oqu(e.lcZ(10,6,Ce.created_at)),e.xp6(4),e.Oqu(e.lcZ(14,8,Ce.updated_at)),e.xp6(5),e.Q6J("ngIf",J.config.showDeleteButton)}}function bt(ct,Ct){if(1&ct&&(e.TgZ(0,"div",0)(1,"div",11)(2,"div",38)(3,"div",39)(4,"p",40),e.SDv(5,41),e.qZA(),e.TgZ(6,"div",42)(7,"table",43)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,44),e.qZA(),e.YNc(12,me,2,0,"th",8),e.TgZ(13,"th"),e.SDv(14,45),e.qZA(),e.TgZ(15,"th"),e.SDv(16,46),e.qZA(),e.TgZ(17,"th"),e.SDv(18,47),e.qZA(),e.TgZ(19,"th"),e.SDv(20,48),e.qZA(),e.YNc(21,tt,2,0,"th",8),e.qZA()(),e.TgZ(22,"tbody"),e.YNc(23,rt,19,10,"tr",49),e.qZA()()()()()()()),2&ct){const Ce=e.oxw(2);e.Q6J("@dataLoaded",Ce.loading?"loading":"loaded")("@onColumn",Ce.layout==Ce.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",Ce.config.showUserFilter),e.xp6(9),e.Q6J("ngIf",Ce.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",Ce.images.content)}}function Nt(ct,Ct){if(1&ct&&e._UZ(0,"img",68),2&ct){const Ce=e.oxw().$implicit;e.s9C("src",Ce.image_url,e.LSH)}}function Qt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",69),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw().$implicit,Oe=e.oxw(3);return e.KtG(Oe.toggleFileSelection(ae))}),e.TgZ(1,"h6",70)(2,"span"),e.SDv(3,71),e.qZA(),e._uU(4),e.qZA()()}if(2&ct){const Ce=e.oxw().$implicit;e.xp6(4),e.hij(" ",Ce.created_by," ")}}function nn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",65)(1,"app-delete",72),e.NdJ("deleteItemEvent",function(ae){e.CHM(Ce);const Oe=e.oxw(4);return e.KtG(Oe.onDeleted(ae))}),e.qZA()()}if(2&ct){const Ce=e.oxw().$implicit,J=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",J.config.imgDelEndpoint+"/"+Ce.id+"/delete")("look","bx")}}function Dn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",58)(1,"div",59)(2,"div",60),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.toggleFileSelection(Oe))}),e.TgZ(3,"a"),e.YNc(4,Nt,1,1,"img",61),e.qZA()(),e.YNc(5,Qt,5,1,"div",62),e.TgZ(6,"div",63)(7,"div",64)(8,"div",65)(9,"a",13),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.TextUtility.copyToClipboard(Oe.image_url))}),e._UZ(10,"i",66),e.qZA()(),e.YNc(11,nn,2,2,"div",67),e.qZA()()()()}if(2&ct){const Ce=Ct.$implicit,J=e.oxw(3);e.xp6(1),e.Q6J("ngClass",J.isSelected(Ce)?"border-3 border-success":""),e.xp6(3),e.Q6J("ngIf",Ce.image_url),e.xp6(1),e.Q6J("ngIf",J.isAdmin()),e.xp6(6),e.Q6J("ngIf",J.config.showDeleteButton)}}function Ot(ct,Ct){if(1&ct&&(e.TgZ(0,"div",56),e.YNc(1,Dn,12,4,"div",57),e.qZA()),2&ct){const Ce=e.oxw(2);e.Q6J("@dataLoaded",Ce.loading?"loading":"loaded")("@onGrid",Ce.layout==Ce.Layout.GRID)("ngClass",Ce.isWithinDialog()?"ms-2 me-2":""),e.xp6(1),e.Q6J("ngForOf",null==Ce.images?null:Ce.images.content)}}function rn(ct,Ct){if(1&ct&&(e.TgZ(0,"div"),e.YNc(1,bt,24,5,"div",36),e.YNc(2,Ot,2,4,"div",37),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(1),e.Q6J("ngIf",Ce.layout===Ce.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",Ce.layout===Ce.Layout.GRID)}}function vn(ct,Ct){if(1&ct&&e._UZ(0,"app-pagination",73),2&ct){const Ce=e.oxw();e.Q6J("page",Ce.images)}}function ei(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",83)(1,"button",16),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw(2);return e.KtG(ae.useSelectedFiles())}),e.TgZ(2,"span"),e.SDv(3,84),e.qZA()(),e.TgZ(4,"button",18),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw(2);return e.KtG(ae.clearSelection())}),e.TgZ(5,"span"),e.SDv(6,85),e.qZA()()()}}function Wn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",74)(1,"div",75),e.YNc(2,ei,7,0,"div",76),e.TgZ(3,"div",77)(4,"nav",78)(5,"ul",79)(6,"li",80)(7,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onPreviousClick())}),e.SDv(8,81),e.qZA()(),e.TgZ(9,"li",80)(10,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onNextClick())}),e.SDv(11,82),e.qZA()()()()()()()}if(2&ct){const Ce=e.oxw();e.xp6(2),e.Q6J("ngIf",Ce.isAnySelected()),e.xp6(5),e.Gre("page-link ",Ce.images.first?"disabled":"",""),e.xp6(3),e.Gre("page-link ",Ce.images.last?"disabled":"","")}}let Ve=(()=>{class ct extends Jt.R{componentName(){return"FileListComponent"}constructor(Ce,J,ae,Oe,ot,Se,Ft,lt,Bt){super(Ce,J,ae,ot),this.authService=Oe,this.activatedRoute=Se,this.fileService=Ft,this.notifier=lt,this.dialogData=Bt,this.config=I,this.images=w.H,this.selectedFiles=new Map,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe,this.TextUtility=un.g,Oe.isAdmin()&&(this.config.searchEndpoint=D.s.FILES.FILE_ENDPOINT_ADMIN,this.config.imageEndpoint=D.s.FILES.IMAGE_ENDPOINT_ADMIN),this.fileRequisitionDef=Bt.fileRequisitionDef}isAdmin(){return this.authService.isAdmin()}isWithinDialog(){return null!=this.fileRequisitionDef}initialize(){this.isWithinDialog()?(this.filterData=Z.M9,this.fetchWith(this.filterData)):this.activatedRoute.queryParams.subscribe(Ce=>{this.filterData=(0,Z.OP)(Ce,12),this.fetchWith(this.filterData)})}onFilterClick(Ce){this.filterData=Ce,this.fetchWith(this.filterData)}onNextClick(){this.filterData={...this.filterData,page:this.filterData.page+1},this.fetchWith(this.filterData)}onPreviousClick(){this.filterData={...this.filterData,page:this.filterData.page-1},this.fetchWith(this.filterData)}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Files",link:null,active:!0}]}fetchWith(Ce){this.fetchImages({username:Ce.username,from_date:Ce.fromDate,to_date:Ce.toDate,page:Ce.page,size:Ce.size})}fetchImages(Ce){this.loading=!0;const J=this.componentKey(ee.Z.FILES.SEARCH_IMAGES(Ce));this.fileService.search(J,this.config.imageEndpoint,Ce),this.subscribe(J,null,(ae,Oe)=>{this.images=Oe.data,this.loading=!1}),this.subscribe(this.getErrorKey(J),null,(ae,Oe)=>{this.notifier.error("Error",Oe.data.error.message)})}onDeleted(Ce){Ce&&(this.notifier.success("Success","File is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:S.create,update:Ce=>S.update(Ce),params:{}}}getUpsertComponent(){return yt}isSelected(Ce){return 1==this.selectedFiles.get(Ce)}useSelectedFiles(){let Ce=Array.from(this.selectedFiles.entries()).filter(([J,ae])=>ae).map(([J,ae])=>J);this.clearSelection(),this.onCompleted.emit(Ce)}clearSelection(){this.selectedFiles=new Map}isAnySelected(){return Array.from(this.selectedFiles.values()).some(Ce=>Ce)}toggleFileSelection(Ce){this.fileRequisitionDef.multiSelect||this.selectedFiles.clear(),this.selectedFiles.set(Ce,!this.isSelected(Ce))}onCloseClicked(){this.clearSelection(),this.onCanceled.emit()}static#e=this.\u0275fac=function(J){return new(J||ct)(e.Y36(te.Y),e.Y36(oe.F0),e.Y36(ce.z),e.Y36(tn.e),e.Y36(wn.x),e.Y36(oe.gz),e.Y36(_e.I),e.Y36(Re.l),e.Y36(n.WI))};static#t=this.\u0275cmp=e.Xpm({type:ct,selectors:[["app-file-list"]],inputs:{fileRequisitionDef:"fileRequisitionDef"},outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[e.qOj],decls:13,vars:9,consts:function(){let Ce,J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An,jn,ai,di,oi;return Ce="Use Selected",J="Clear Selection",ae="Cooking your data, please wait..",Oe="No items",ot="Files that I've created",Se="Id",Ft="Title",lt="Created At",Bt="Last Updated",Ut="Update",fn="Created By",gn="Delete",An="Uploaded By",jn="Previous",ai="Next",di="Use Selected",oi="Clear Selection",[[1,"row"],[1,"col-sm-12"],["class","col-12",4,"ngIf"],[1,"card","card-body"],[3,"addBtnText","useParamNavigation","addButtonClick","filterClick"],["class","col-sm-auto mt-3",4,"ngIf"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page",4,"ngIf"],["class","row ms-2 me-2",4,"ngIf"],[1,"col-12"],[1,"flex-fill","float-end","mt-2","me-2"],["href","javascript: void(0);",3,"click"],[1,"bx","bxs-x-circle","text-danger"],[1,"col-sm-auto","mt-3"],["type","button",1,"btn","btn-success","w-md","me-3",3,"click"],Ce,["type","button",1,"btn","btn-warning","w-md",3,"click"],J,[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","/assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],ae,[1,"text-uppercase"],Oe,["class","row",4,"ngIf"],["class","row",3,"ngClass",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],ot,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],Se,Ft,lt,Bt,Ut,[4,"ngFor","ngForOf"],fn,gn,[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"row",3,"ngClass"],["class","col-xxl-2 col-xl-3 col-sm-4 col-6",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4","col-6"],[1,"card","text-center",3,"ngClass"],[1,"image-container",3,"click"],["class","card-img-top img-fluid center-cropped-image","alt","Card image cap",3,"src",4,"ngIf"],["class","card-body",3,"click",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-copy","text-success"],["class","flex-fill",4,"ngIf"],["alt","Card image cap",1,"card-img-top","img-fluid","center-cropped-image",3,"src"],[1,"card-body",3,"click"],[1,"font-size-10","text-info"],An,[3,"requestUrl","look","deleteItemEvent"],[3,"page"],[1,"row","ms-2","me-2"],[1,"col-lg-12","grid-margin","stretch-card","mt-3"],["class","col-sm-auto float-start",4,"ngIf"],[1,"float-end"],["aria-label","Page navigation example"],[1,"pagination"],[1,"page-item"],jn,ai,[1,"col-sm-auto","float-start"],di,oi]},template:function(J,ae){1&J&&(e.TgZ(0,"div",0),e._UZ(1,"div",1),e.qZA(),e.TgZ(2,"div",0),e.YNc(3,Rn,4,0,"div",2),e.TgZ(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return ae.onUpsertClick(null)})("filterClick",function(ot){return ae.onFilterClick(ot)}),e.qZA(),e.YNc(7,dt,7,0,"div",5),e.qZA()(),e.YNc(8,at,1,1,"util-progress",6),e.YNc(9,$e,13,2,"div",7),e.YNc(10,rn,3,2,"div",8),e.YNc(11,vn,1,1,"app-pagination",9),e.YNc(12,Wn,12,7,"div",10),e.qZA()),2&J&&(e.xp6(3),e.Q6J("ngIf",ae.isWithinDialog()),e.xp6(3),e.Q6J("addBtnText","Upload")("useParamNavigation",!1),e.xp6(1),e.Q6J("ngIf",ae.isAnySelected()),e.xp6(1),e.Q6J("ngIf",ae.loading),e.xp6(1),e.Q6J("ngIf",ae.images.empty),e.xp6(1),e.Q6J("ngIf",!ae.images.empty),e.xp6(1),e.Q6J("ngIf",!ae.isWithinDialog()),e.xp6(1),e.Q6J("ngIf",ae.isWithinDialog()))},dependencies:[mt.mk,mt.sg,mt.O5,Ge.t,Ln.Q,Yn.D,ti.T,gi.G],styles:[".image-container[_ngcontent-%COMP%]{width:100%;height:200px;overflow:hidden;position:relative}.center-cropped-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;object-position:center}"]})}return ct})()},9230:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>ee});var e=C(1547),l=C(6032),D=C(2495),I=C(5879),S=C(8480),w=C(5462),n=C(9862),Z=C(30);let ee=(()=>{class re extends e.b{constructor(se,te,oe,ce){super(se,te),this.http=oe,this.eventBusService=ce}search(se,te,oe){let ce=l.s.FILES.SEARCH(te,oe);this.http.get(ce).subscribe(_e=>{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.search(se,te,oe)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}fetchSingle(se,te){this.http.get(l.s.FILES.GET(te)).subscribe(oe=>{this.eventBusService.publish(se,oe)},oe=>{this.handleError(oe,ce=>{this.fetchSingle(se,te)},ce=>{this.eventBusService.publish(this.getErrorKey(se),ce)})})}upsert(se,te,oe){let ce=null==oe?l.s.FILES.CREATE():l.s.FILES.UPDATE(oe);(null==oe?this.http.post(ce,te):this.http.patch(ce,te)).subscribe(Re=>{this.eventBusService.publish(se,Re)},Re=>{this.handleError(Re,mt=>{this.upsert(se,te,oe)},mt=>{this.eventBusService.publish(this.getErrorKey(se),mt)})})}upload(se){const te=new FormData;for(let ce=0;ce{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.uploadImages(se,te)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}uploadImagesV2(se,te){const oe=new FormData;for(let _e=0;_e{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.uploadImagesV2(se,te)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}static#e=this.\u0275fac=function(te){return new(te||re)(I.LFG(S.e),I.LFG(w.l),I.LFG(n.eN),I.LFG(Z.Y))};static#t=this.\u0275prov=I.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})()},1715:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>re});var e=C(1547),l=C(2495),D=C(553),I=C(5879);let S=(()=>{class ue extends l.O{constructor(){super()}static#e=this.NOTIFICATIONS={CREATE:()=>D.N.base_url+"/api/v1/notifications",GET:te=>D.N.base_url+"/api/v1/notifications/"+te,UPDATE:te=>D.N.base_url+"/api/v1/notifications/"+te,COUNT_UNREAD:te=>D.N.base_url+"/api/v1/notifications/unread/count"+l.O.toParamString(te),INCREASE_VIEW_COUNT:te=>D.N.base_url+"/api/v1/notifications/view/count/"+te,INCREASE_CLICK_COUNT:te=>D.N.base_url+"/api/v1/notifications/click/count/"+te,MARK_READ:te=>D.N.base_url+"/api/v1/notifications/mark-read"+l.O.toParamString(te),MAKE_STICKY:te=>D.N.base_url+"/api/v1/notifications/make-sticky"+l.O.toParamString(te),RESPOND:te=>D.N.base_url+"/api/v1/notifications/"+te+"/respond",FETCH_MY_NOTIFICATIONS:te=>D.N.base_url+"/api/v1/my-notifications"+l.O.toParamString(te),SEARCH:te=>D.N.base_url+"/api/v1/notifications"+l.O.toParamString(te)};static#t=this.\u0275fac=function(oe){return new(oe||ue)};static#n=this.\u0275prov=I.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})();var w=C(8480),n=C(5462),Z=C(9862),ee=C(30);let re=(()=>{class ue extends e.b{constructor(te,oe,ce,_e){super(te,oe),this.http=ce,this.eventBus=_e}searchNotifications(te,oe){this.http.get(S.NOTIFICATIONS.SEARCH(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.searchNotifications(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}fetchSingle(te,oe){this.http.get(S.NOTIFICATIONS.GET(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.fetchSingle(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}fetchMyNotifications(te,oe){this.http.get(S.NOTIFICATIONS.FETCH_MY_NOTIFICATIONS(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.fetchMyNotifications(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}markRead(te,oe,ce,_e){this.http.post(S.NOTIFICATIONS.MARK_READ({id:ce,read:_e}),null).subscribe(Re=>{this.eventBus.publish(te,Re),this.eventBus.publish(oe,Re)},Re=>{this.handleError(Re,mt=>{this.markRead(te,oe,ce,_e)},mt=>{this.eventBus.publish(this.getErrorKey(te),mt)})})}makeSticky(te,oe,ce){this.http.post(S.NOTIFICATIONS.MAKE_STICKY({id:oe,sticky:ce}),null).subscribe(_e=>{this.eventBus.publish(te,_e)},_e=>{this.handleError(_e,Re=>{this.makeSticky(te,oe,ce)},Re=>{this.eventBus.publish(this.getErrorKey(te),Re)})})}respond(te,oe,ce){this.http.post(S.NOTIFICATIONS.RESPOND(oe),ce).subscribe(_e=>{this.eventBus.publish(te,_e)},_e=>{this.handleError(_e,Re=>{this.respond(te,oe,ce)},Re=>{this.eventBus.publish(this.getErrorKey(te),Re)})})}countUnread(te){this.http.get(S.NOTIFICATIONS.COUNT_UNREAD({})).subscribe(oe=>{this.eventBus.publish(te,oe)},oe=>{this.handleError(oe,ce=>{this.countUnread(te)},ce=>{this.eventBus.publish(this.getErrorKey(te),ce)})})}increaseViewCount(te,oe){this.http.patch(S.NOTIFICATIONS.INCREASE_VIEW_COUNT(oe),{}).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.increaseViewCount(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}increaseClickCount(te,oe){this.http.patch(S.NOTIFICATIONS.INCREASE_CLICK_COUNT(oe),{}).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.increaseClickCount(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}upsert(te,oe,ce){let _e=null==ce?S.NOTIFICATIONS.CREATE():S.NOTIFICATIONS.UPDATE(ce);(null==ce?this.http.post(_e,oe):this.http.patch(_e,oe)).subscribe(mt=>{this.eventBus.publish(te,mt)},mt=>{this.handleError(mt,Ge=>{this.upsert(te,oe,ce)},Ge=>{this.eventBus.publish(this.getErrorKey(te),Ge)})})}static#e=this.\u0275fac=function(oe){return new(oe||ue)(I.LFG(w.e),I.LFG(n.l),I.LFG(Z.eN),I.LFG(ee.Y))};static#t=this.\u0275prov=I.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})()},1989:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{SocialModule:()=>te});var e=C(6814),l=C(1662),D=C(5879);const I=[];let S=(()=>{class oe{static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=D.oAB({type:oe});static#n=this.\u0275inj=D.cJS({imports:[l.Bz.forChild(I),l.Bz]})}return oe})();var w=C(9862),n=C(9890),Z=C(3365),ee=C(7151),re=C(5195),ue=C(6223),se=C(9299);let te=(()=>{class oe{static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=D.oAB({type:oe});static#n=this.\u0275inj=D.cJS({providers:[{provide:w.TP,useClass:n.I,multi:!0}],imports:[e.ez,S,Z.TU,ee.g,re.QW,ue.u5,se.d,ue.UX]})}return oe})()},6075:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>Zt});var e=C(5879),l=C(8637),D=C(6676),S=C(2739),w=C(1855),n=C(8674),Z=C(30),ee=C(1662),re=C(6945),ue=C(8480),se=C(6814),te=C(9277),oe=C(6223),ce=C(9432);function _e(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",4)(1,"button",28),e.NdJ("click",function(){e.CHM(Jt);const wn=e.oxw();return e.KtG(wn.onAddButtonClick())}),e._UZ(2,"i",29),e.TgZ(3,"span"),e.SDv(4,30),e.qZA()()()}}const Re=function(){return{standalone:!0}};function mt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"input",34),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.qZA()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.s9C("placeholder",Jt.placeholder),e.Q6J("ngModel",tn.filterData.extra[Jt.name])("ngModelOptions",e.DdM(3,Re))}}function Ge(yt,un){if(1&yt&&(e.TgZ(0,"option",36),e._uU(1),e.qZA()),2&yt){const Jt=un.$implicit;e.s9C("value",Jt.value),e.xp6(1),e.hij(" ",Jt.label," ")}}function Lt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"select",35),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.TgZ(1,"option",36),e._uU(2),e.qZA(),e.YNc(3,Ge,2,2,"option",37),e.qZA()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.Q6J("name",Jt.name)("ngModel",tn.filterData.extra[Jt.name]),e.xp6(1),e.s9C("value",null),e.xp6(1),e.Oqu(Jt.placeholder),e.xp6(1),e.Q6J("ngForOf",Jt.options)}}const je=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}};function Tt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",6)(1,"input",38),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.qZA()()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.xp6(1),e.s9C("id",Jt.name),e.Q6J("bsConfig",e.DdM(5,je))("name",Jt.name)("ngModel",tn.filterData.extra[Jt.name])("ngModelOptions",e.DdM(6,Re))}}function xt(yt,un){if(1&yt&&(e.TgZ(0,"div",4)(1,"label",5),e._uU(2),e.qZA(),e.YNc(3,mt,1,4,"input",31),e.YNc(4,Lt,4,5,"select",32),e.YNc(5,Tt,2,7,"div",33),e.qZA()),2&yt){const Jt=un.$implicit;e.xp6(2),e.Oqu(Jt.label),e.xp6(1),e.Q6J("ngIf","text"===Jt.type),e.xp6(1),e.Q6J("ngIf","dropdown"===Jt.type),e.xp6(1),e.Q6J("ngIf","date"===Jt.type)}}function St(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",39)(1,"app-user-filter",40),e.NdJ("selected",function(wn){e.CHM(Jt);const Ln=e.oxw();return e.KtG(Ln.filterData.username=wn)}),e.qZA()()}if(2&yt){const Jt=e.oxw();e.xp6(1),e.Q6J("username",Jt.filterData.username)}}let Zt=(()=>{class yt extends l.H{constructor(Jt,tn,wn,Ln,Yn){super(Jt,tn,wn),this.activatedRoute=Ln,this.authService=Yn,this.useParamNavigation=!0,this.showAddBtn=!0,this.addBtnText="Add New",this.addButtonRoute=null,this.extraFields=[],this.filterClick=new e.vpe,this.addButtonClick=new e.vpe,this.filterData=w.M9}componentName(){return"BasicFilterComponent"}ngOnInit(){this.filterData.extra=this.filterFieldsAsParams(),this.useParamNavigation&&this.activatedRoute.queryParams.subscribe(Jt=>{null!=this.filterData.fromDate&&null!=this.filterData.toDate?(this.filterData.fromDate=D(this.filterData.fromDate).toDate(),this.filterData.toDate=D(this.filterData.toDate).toDate()):(this.filterData.fromDate=new Date(0),this.filterData.toDate=new Date);let tn=this.filterFieldsAsParams();this.filterData=(0,w.OP)(Jt,10,tn)})}filterFieldsAsParams(){return Object.fromEntries(this.extraFields.map(Jt=>[Jt.name,Jt.value]))}onFilterClick(){this.useParamNavigation?this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{username:this.filterData.username,query:this.filterData.query,from_date:this.filterData.fromDate.toISOString(),to_date:this.filterData.toDate.toISOString(),page:this.filterData.page,size:this.filterData.size,...(0,n.GN)(this.filterData.extra)},queryParamsHandling:"merge"}).then(Jt=>{}):this.filterClick.emit(this.filterData)}isAdmin(){return this.authService.isAdmin()}onAddButtonClick(){this.addButtonClick.emit()}filterForToday(){this.filterData.fromDate=S.b.getDayStart(new Date),this.filterData.toDate=S.b.getDayEnd(new Date),this.onFilterClick()}filterForYesterday(){this.filterData.fromDate=S.b.getDayStart(S.b.addDays(new Date,-1)),this.filterData.toDate=S.b.getDayEnd(S.b.addDays(new Date,-1)),this.onFilterClick()}filterForLast7Days(){this.filterData.fromDate=S.b.last7DaysRange(new Date).start,this.filterData.toDate=S.b.last7DaysRange(new Date).end,this.onFilterClick()}filterForThisMonth(){this.filterData.fromDate=S.b.monthRange(new Date).start,this.filterData.toDate=S.b.monthRange(new Date).end,this.onFilterClick()}filterForLastMonth(){this.filterData.fromDate=S.b.monthRange(S.b.addMonths(new Date,-1)).start,this.filterData.toDate=S.b.monthRange(S.b.addMonths(new Date,-1)).end,this.onFilterClick()}filterForThisYear(){this.filterData.fromDate=S.b.yearRange(new Date).start,this.filterData.toDate=S.b.yearRange(new Date).end,this.onFilterClick()}filterForLastYear(){this.filterData.fromDate=S.b.yearRange(S.b.addYears(new Date,-1)).start,this.filterData.toDate=S.b.yearRange(S.b.addYears(new Date,-1)).end,this.onFilterClick()}clearFilter(){this.filterData.query=null,this.filterData.username=null,this.filterData.fromDate=S.b.getDayStart(new Date(0)),this.filterData.toDate=S.b.getDayEnd(new Date),this.filterData.page=0,this.filterData.size=10,this.filterData.extra=this.filterFieldsAsParams(),this.onFilterClick()}static#e=this.\u0275fac=function(tn){return new(tn||yt)(e.Y36(Z.Y),e.Y36(ee.F0),e.Y36(re.z),e.Y36(ee.gz),e.Y36(ue.e))};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["app-basic-filter"]],inputs:{useParamNavigation:"useParamNavigation",showAddBtn:"showAddBtn",addBtnText:"addBtnText",addButtonRoute:"addButtonRoute",extraFields:"extraFields"},outputs:{filterClick:"filterClick",addButtonClick:"addButtonClick"},features:[e.qOj],decls:41,vars:15,consts:function(){let Jt,tn,wn,Ln,Yn,ti,gi,Rn,dt,at;return Jt="Filter",tn="Today",wn="Yesterday",Ln="Last 7 days",Yn="This Month",ti="Last Month",gi="This Year",Rn="Last Year",dt="Clear",at="Add",[[1,"row","gy-2","gx-3","align-items-center"],["class","col-sm-auto",4,"ngIf"],["class","col-sm-auto",4,"ngFor","ngForOf"],["class","col-sm-2",4,"ngIf"],[1,"col-sm-auto"],["for","fromDate",1,"visually-hidden"],[1,"input-group"],["bsDatepicker","","id","fromDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","maxDate","ngModelChange"],["for","toDate",1,"visually-hidden"],["bsDatepicker","","id","toDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","minDate","ngModelChange"],[1,"col-sm-auto","btn-group"],["type","button",1,"btn","btn-primary",3,"click"],[1,"ms-2","me-2"],Jt,["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split"],[1,"mdi","mdi-chevron-down"],[1,"dropdown-menu"],["href","javascript: void(0);",1,"dropdown-item",3,"click"],tn,wn,Ln,[1,"dropdown-divider"],Yn,ti,gi,Rn,["type","button",1,"btn","btn-outline-primary",3,"click"],dt,["type","button",1,"btn","btn-success","w-md",3,"click"],[1,"mdi","mdi-plus-circle","me-2"],at,["type","text","class","form-control","id","title-input",3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],["id","formrow-inputState","class","form-select",3,"name","ngModel","ngModelChange",4,"ngIf"],["class","input-group",4,"ngIf"],["type","text","id","title-input",1,"form-control",3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["id","formrow-inputState",1,"form-select",3,"name","ngModel","ngModelChange"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["bsDatepicker","",1,"form-control",3,"id","bsConfig","name","ngModel","ngModelOptions","ngModelChange"],[1,"col-sm-2"],[3,"username","selected"]]},template:function(tn,wn){1&tn&&(e.TgZ(0,"form",0),e.YNc(1,_e,5,0,"div",1),e.YNc(2,xt,6,4,"div",2),e.YNc(3,St,2,1,"div",3),e.TgZ(4,"div",4)(5,"label",5),e._uU(6,"From"),e.qZA(),e.TgZ(7,"div",6)(8,"input",7),e.NdJ("ngModelChange",function(Yn){return wn.filterData.fromDate=Yn}),e.qZA()()(),e.TgZ(9,"div",4)(10,"label",8),e._uU(11,"To"),e.qZA(),e.TgZ(12,"div",6)(13,"input",9),e.NdJ("ngModelChange",function(Yn){return wn.filterData.toDate=Yn}),e.qZA()()(),e.TgZ(14,"div",10)(15,"button",11),e.NdJ("click",function(){return wn.onFilterClick()}),e.TgZ(16,"span",12),e.SDv(17,13),e.qZA()(),e.TgZ(18,"button",14),e._UZ(19,"i",15),e.qZA(),e.TgZ(20,"div",16)(21,"a",17),e.NdJ("click",function(){return wn.filterForToday()}),e.SDv(22,18),e.qZA(),e.TgZ(23,"a",17),e.NdJ("click",function(){return wn.filterForYesterday()}),e.SDv(24,19),e.qZA(),e.TgZ(25,"a",17),e.NdJ("click",function(){return wn.filterForLast7Days()}),e.SDv(26,20),e.qZA(),e._UZ(27,"div",21),e.TgZ(28,"a",17),e.NdJ("click",function(){return wn.filterForThisMonth()}),e.SDv(29,22),e.qZA(),e.TgZ(30,"a",17),e.NdJ("click",function(){return wn.filterForLastMonth()}),e.SDv(31,23),e.qZA(),e._UZ(32,"div",21),e.TgZ(33,"a",17),e.NdJ("click",function(){return wn.filterForThisYear()}),e.SDv(34,24),e.qZA(),e.TgZ(35,"a",17),e.NdJ("click",function(){return wn.filterForLastYear()}),e.SDv(36,25),e.qZA()()(),e.TgZ(37,"div",4)(38,"button",26),e.NdJ("click",function(){return wn.clearFilter()}),e.TgZ(39,"span",12),e.SDv(40,27),e.qZA()()()()),2&tn&&(e.xp6(1),e.Q6J("ngIf",wn.showAddBtn),e.xp6(1),e.Q6J("ngForOf",wn.extraFields),e.xp6(1),e.Q6J("ngIf",wn.isAdmin()),e.xp6(5),e.Q6J("bsConfig",e.DdM(11,je))("ngModel",wn.filterData.fromDate)("ngModelOptions",e.DdM(12,Re))("maxDate",wn.filterData.toDate),e.xp6(5),e.Q6J("bsConfig",e.DdM(13,je))("ngModel",wn.filterData.toDate)("ngModelOptions",e.DdM(14,Re))("minDate",wn.filterData.fromDate))},dependencies:[se.sg,se.O5,te.Np,te.Y5,oe._Y,oe.YN,oe.Kr,oe.Fj,oe.EJ,oe.JJ,oe.JL,oe.On,oe.F,ce.R]})}return yt})()},1855:(ft,Ie,C)=>{"use strict";C.d(Ie,{M9:()=>I,OP:()=>n,oZ:()=>w});var e=C(6676),D=C(2739);const I={query:null,fromDate:D.b.getDayStart(new Date(0)),toDate:D.b.getDayEnd(new Date),username:null,page:0,size:10,extra:{}};function w(ee){return{query:ee.query,username:ee.username,from_date:ee.fromDate.toISOString(),to_date:ee.toDate.toISOString(),page:ee.page,size:ee.size,...ee.extra}}function n(ee,re=10,ue={}){let se=ee.query,te=ee.username,oe=new Date(0),ce=new Date;return null!=ee.from_date&&null!=ee.to_date&&(oe=e(ee.from_date).toDate(),ce=e(ee.to_date).toDate()),{query:se,fromDate:oe,toDate:ce,username:null!=te&&te.length>0?te:null,page:ee.page?ee.page:0,size:ee.size?ee.size:re,extra:Z(ue,ee,["query","username","from_date","to_date","page","size"])}}function Z(ee,re,ue){return Object.keys(re).forEach(se=>{if(!ue.includes(se)){const te=re[se];if("string"==typeof te){const oe=Date.parse(te);ee[se]=isNaN(oe)||/^\d+$/.test(te)?"true"===te.toLowerCase()||"false"===te.toLowerCase()?"true"===te.toLowerCase():isNaN(Number(te))?te:Number(te):new Date(oe)}else ee[se]=te}}),ee}},9582:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>oe});var e=C(5879),l=C(8637),D=C(30),I=C(1662),S=C(6945),w=C(5462),n=C(1547),Z=C(8480),ee=C(9862);let re=(()=>{class ce extends n.b{constructor(Re,mt,Ge,Lt){super(Re,mt),this.http=Ge,this.eventBus=Lt}deleteItem(Re,mt){this.http.delete(mt).subscribe(Ge=>{this.eventBus.publish(Re,Ge)},Ge=>{this.handleError(Ge,Lt=>{this.deleteItem(Re,mt)},Lt=>{this.eventBus.publish(this.getErrorKey(Re),Lt)})})}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.LFG(Z.e),e.LFG(w.l),e.LFG(ee.eN),e.LFG(D.Y))};static#t=this.\u0275prov=e.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();var ue=C(6814);function se(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"a",2),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw();return e.KtG(Ge.deleteItem())}),e._UZ(1,"i",3),e.qZA()}}function te(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"a",4),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw();return e.KtG(Ge.deleteItem())}),e._UZ(1,"i",5),e.qZA()}}let oe=(()=>{class ce extends l.H{componentName(){return"DeleteComponent"}constructor(Re,mt,Ge,Lt,je){super(Re,mt,Ge),this.notifier=Lt,this.deleteService=je,this.deleteItemEvent=new e.vpe,this.look="fa"}ngOnInit(){}deleteItem(){if(!confirm("Are you sure to continue?"))return;let mt=this.componentKey(this.requestUrl);this.deleteService.deleteItem(mt,this.requestUrl),this.subscribe(mt,null,(Ge,Lt)=>{this.deleteItemEvent.emit(!0)}),this.subscribe(this.getErrorKey(mt),null,(Ge,Lt)=>{this.notifier.error("Error!",Lt.data.error.message),this.deleteItemEvent.emit(!1)})}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(D.Y),e.Y36(I.F0),e.Y36(S.z),e.Y36(w.l),e.Y36(re))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["app-delete"]],inputs:{requestUrl:"requestUrl",look:"look"},outputs:{deleteItemEvent:"deleteItemEvent"},features:[e.qOj],decls:2,vars:2,consts:[["class","btn btn-outline-danger btn-sm","title","Delete",3,"click",4,"ngIf"],["href","javascript: void(0);",3,"click",4,"ngIf"],["title","Delete",1,"btn","btn-outline-danger","btn-sm",3,"click"],[1,"fas","fa-trash"],["href","javascript: void(0);",3,"click"],["title","Delete",1,"bx","bx-trash","text-danger"]],template:function(mt,Ge){1&mt&&(e.YNc(0,se,2,0,"a",0),e.YNc(1,te,2,0,"a",1)),2&mt&&(e.Q6J("ngIf","fa"==Ge.look),e.xp6(1),e.Q6J("ngIf","bx"==Ge.look))},dependencies:[ue.O5]})}return ce})()},1836:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q:()=>_e});var e=C(5879),l=C(6542),D=C(8637),I=C(30),S=C(1662),w=C(6945),n=C(6814);function Z(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-4))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-4)}}function ee(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-3))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-3)}}function re(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-2))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-2)}}function ue(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-1))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-1)}}function se(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+1))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+1)}}function te(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+2))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+2)}}function oe(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+3))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+3)}}function ce(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+4))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+4)}}let _e=(()=>{class Re extends D.H{componentName(){return"PaginationComponent"}constructor(Ge,Lt,je,Tt){super(Ge,Lt,je),this.activatedRoute=Tt,this.page=l.H,this.pageNumber=0,this.pageSize=10,this.onPageChanged=new e.vpe}ngOnInit(){this.activatedRoute.queryParams.subscribe(Ge=>{let je=Ge.size;this.pageNumber=parseInt(Ge.page??this.page.number),this.pageSize=parseInt(je??this.page.size),this.onPageChanged.emit(Ge)})}processParams(Ge){let Lt={};for(let je of Object.entries(Ge))Lt[je[0]]=je[1];return Lt}onPageSelected(Ge){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:Ge,size:this.pageSize},queryParamsHandling:"merge"}).then(Lt=>{})}onNextClick(){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:this.pageNumber+1,size:this.pageSize},queryParamsHandling:"merge"}).then(Ge=>{})}onPreviousClick(){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:this.pageNumber-1,size:this.pageSize},queryParamsHandling:"merge"}).then(Ge=>{})}static#e=this.\u0275fac=function(Lt){return new(Lt||Re)(e.Y36(I.Y),e.Y36(S.F0),e.Y36(w.z),e.Y36(S.gz))};static#t=this.\u0275cmp=e.Xpm({type:Re,selectors:[["app-pagination"]],inputs:{page:"page"},outputs:{onPageChanged:"onPageChanged"},features:[e.qOj],decls:30,vars:15,consts:function(){let Ge,Lt;return Ge="Previous",Lt="Next",[[1,"row"],[1,"col-lg-12","grid-margin","stretch-card"],[1,"float-end"],["aria-label","Page navigation example"],[1,"pagination"],[1,"page-item"],["href","javascript: void(0);",3,"click"],Ge,["href","javascript: void(0);","class","page-link",3,"click",4,"ngIf"],["href","javascript: void(0);",1,"page-link","active",3,"click"],Lt,["href","javascript: void(0);",1,"page-link",3,"click"]]},template:function(Lt,je){1&Lt&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"nav",3)(4,"ul",4)(5,"li",5)(6,"a",6),e.NdJ("click",function(){return je.onPreviousClick()}),e.SDv(7,7),e.qZA()(),e.TgZ(8,"li",5),e.YNc(9,Z,2,1,"a",8),e.qZA(),e.TgZ(10,"li",5),e.YNc(11,ee,2,1,"a",8),e.qZA(),e.TgZ(12,"li",5),e.YNc(13,re,2,1,"a",8),e.qZA(),e.TgZ(14,"li",5),e.YNc(15,ue,2,1,"a",8),e.qZA(),e.TgZ(16,"li",5)(17,"a",9),e.NdJ("click",function(){return je.onPageSelected(je.page.number)}),e._uU(18),e.qZA()(),e.TgZ(19,"li",5),e.YNc(20,se,2,1,"a",8),e.qZA(),e.TgZ(21,"li",5),e.YNc(22,te,2,1,"a",8),e.qZA(),e.TgZ(23,"li",5),e.YNc(24,oe,2,1,"a",8),e.qZA(),e.TgZ(25,"li",5),e.YNc(26,ce,2,1,"a",8),e.qZA(),e.TgZ(27,"li",5)(28,"a",6),e.NdJ("click",function(){return je.onNextClick()}),e.SDv(29,10),e.qZA()()()()()()()),2&Lt&&(e.xp6(6),e.Gre("page-link ",je.page.first?"disabled":"",""),e.xp6(3),e.Q6J("ngIf",je.page.number>3),e.xp6(2),e.Q6J("ngIf",je.page.number>2),e.xp6(2),e.Q6J("ngIf",je.page.number>1),e.xp6(2),e.Q6J("ngIf",je.page.number>0),e.xp6(3),e.Oqu(je.page.number),e.xp6(2),e.Q6J("ngIf",je.page.number+1{"use strict";C.d(Ie,{x:()=>D});var e=C(5879),l=C(7700);let D=(()=>{class S{constructor(n){this.dialog=n,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe}openWithConfig(n,Z){const ee=this.dialog.open(n,Z);let re=ee.componentInstance;return re.onCanceled.subscribe(()=>{this.onCanceled.emit(),ee.close()}),re.onCompleted.subscribe(ue=>{this.onCompleted.emit(ue),ee.close()}),ee}open(n,Z){console.log(window.innerWidth,window.innerHeight);let re=function I(){let S=window.innerWidth;return S>=1600?60:S>=1400?50:S>=1200||S>=992?40:S>=768?70:80}(),ue={disableClose:!0,maxHeight:70*window.innerHeight/100+"px",width:window.innerWidth*re/100+"px",data:Z};return this.openWithConfig(n,ue)}static#e=this.\u0275fac=function(Z){return new(Z||S)(e.LFG(l.uw))};static#t=this.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},4736:(ft,Ie,C)=>{"use strict";C.d(Ie,{t:()=>se});var e=C(5879),l=C(6814),D=C(5940),I=C(6007);function S(te,oe){if(1&te&&(e.TgZ(0,"div")(1,"h5",1),e._uU(2),e.qZA()()),2&te){const ce=e.oxw();e.xp6(2),e.Oqu(ce.message)}}function w(te,oe){1&te&&e._UZ(0,"mat-progress-bar",4)}function n(te,oe){if(1&te&&(e.TgZ(0,"div",5),e._UZ(1,"mat-spinner",6),e.qZA()),2&te){const ce=e.oxw(2);e.vpz("padding: ",ce.padding,"px 0 ",ce.padding,"px 0;"),e.xp6(1),e.Q6J("diameter",ce.size)}}function Z(te,oe){if(1&te&&(e.TgZ(0,"div"),e.YNc(1,w,1,0,"mat-progress-bar",2),e.YNc(2,n,2,5,"div",3),e.qZA()),2&te){const ce=e.oxw();e.xp6(1),e.Q6J("ngIf",ce.bar),e.xp6(1),e.Q6J("ngIf",!ce.bar)}}function ee(te,oe){if(1&te&&e._UZ(0,"mat-progress-bar",8),2&te){const ce=e.oxw(2);e.Q6J("value",ce.determinateValue)}}function re(te,oe){if(1&te&&(e.TgZ(0,"div",5),e._UZ(1,"mat-spinner",9),e.qZA()),2&te){const ce=e.oxw(2);e.vpz("padding: ",ce.padding,"px 0 ",ce.padding,"px 0;"),e.xp6(1),e.Q6J("diameter",ce.size)("value",ce.determinateValue)}}function ue(te,oe){if(1&te&&(e.TgZ(0,"div"),e.YNc(1,ee,1,1,"mat-progress-bar",7),e.YNc(2,re,2,6,"div",3),e.qZA()),2&te){const ce=e.oxw();e.xp6(1),e.Q6J("ngIf",ce.bar),e.xp6(1),e.Q6J("ngIf",!ce.bar)}}let se=(()=>{class te{constructor(){this.size=50,this.padding=20,this.bar=!1,this.determinate=!1,this.determinateValue=0,this.message=null}ngOnInit(){}static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275cmp=e.Xpm({type:te,selectors:[["util-progress"]],inputs:{size:"size",padding:"padding",bar:"bar",determinate:"determinate",determinateValue:"determinateValue",message:"message"},decls:3,vars:3,consts:[[4,"ngIf"],[1,"loading-msg"],["mode","indeterminate",4,"ngIf"],["class","progress-section",3,"style",4,"ngIf"],["mode","indeterminate"],[1,"progress-section"],["mode","indeterminate",3,"diameter"],["mode","determinate",3,"value",4,"ngIf"],["mode","determinate",3,"value"],["mode","determinate",3,"diameter","value"]],template:function(_e,Re){1&_e&&(e.YNc(0,S,3,1,"div",0),e.YNc(1,Z,3,2,"div",0),e.YNc(2,ue,3,2,"div",0)),2&_e&&(e.Q6J("ngIf",null!=Re.message),e.xp6(1),e.Q6J("ngIf",!Re.determinate),e.xp6(1),e.Q6J("ngIf",Re.determinate))},dependencies:[l.O5,D.Ou,I.pW],styles:[".progress-section[_ngcontent-%COMP%]{display:grid;place-items:center}.loading-msg[_ngcontent-%COMP%]{font-size:1em;margin-bottom:20px}"]})}return te})()},9432:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>ce});var e=C(5879),l=C(8637),D=C(7259),I=C(8174),S=C(30),w=C(1662),n=C(6945),Z=C(5239),ee=C(6814),re=C(6223),ue=C(4807),se=C(4736);function te(_e,Re){1&_e&&e._UZ(0,"util-progress",3),2&_e&&e.Q6J("bar",!0)}const oe=function(){return{standalone:!0}};let ce=(()=>{class _e extends l.H{componentName(){return"UserFilterComponent"}constructor(mt,Ge,Lt,je){super(mt,Ge,Lt),this.userService=je,this.users=[],this.username=null,this.selected=new e.vpe}ngOnInit(){this.loading=!1,this.searchUsers({page:0,size:20,q:null,slice:!0})}onUserSelected(mt){this.selected.emit(this.username)}searchUsersForEvent(mt){let Ge=I.g.removeSpecialCharacters(mt.target?.value);Ge.length>2&&this.searchUsers({page:0,size:20,q:Ge,slice:!0})}searchUsers(mt){this.loading=!0;let Ge=this.componentKey(D.Z.USERS.SEARCH_USERS());this.userService.searchUsers(Ge,mt),this.subscribe(Ge,null,(Lt,je)=>{this.users=je.data.content,this.loading=!1})}static#e=this.\u0275fac=function(Ge){return new(Ge||_e)(e.Y36(S.Y),e.Y36(w.F0),e.Y36(n.z),e.Y36(Z.K))};static#t=this.\u0275cmp=e.Xpm({type:_e,selectors:[["app-user-filter"]],inputs:{username:"username"},outputs:{selected:"selected"},features:[e.qOj],decls:4,vars:8,consts:[["for","autoSizingInput",1,"visually-hidden"],[3,"bar",4,"ngIf"],["id","autoSizingInput","bindLabel","label","bindValue","username","placeholder","User",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]],template:function(Ge,Lt){1&Ge&&(e.TgZ(0,"label",0),e._uU(1,"User"),e.qZA(),e.YNc(2,te,1,1,"util-progress",1),e.TgZ(3,"ng-select",2),e.NdJ("keyup",function(Tt){return Lt.searchUsersForEvent(Tt)})("ngModelChange",function(Tt){return Lt.username=Tt})("change",function(Tt){return Lt.onUserSelected(Tt)}),e.qZA()),2&Ge&&(e.xp6(2),e.Q6J("ngIf",Lt.loading),e.xp6(1),e.Q6J("items",Lt.users)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",Lt.username)("ngModelOptions",e.DdM(7,oe)))},dependencies:[ee.O5,re.JJ,re.On,ue.w9,se.t]})}return _e})()},2770:(ft,Ie,C)=>{"use strict";C.d(Ie,{G:()=>I});var e=C(6814),l=C(2739),D=C(5879);let I=(()=>{class S{transform(n,Z=!1){if(null==n)return null;let ee="MMM dd, yyyy hh:mm a";if(!Z)return new e.uU("en-US").transform(n,ee);let re=l.b.getDuration(new Date,new Date(n));return re>432e5?new e.uU("en-US").transform(n,ee):l.b.msToReadableTime(re,!1)}static#e=this.\u0275fac=function(Z){return new(Z||S)};static#t=this.\u0275pipe=D.Yjl({name:"readableDate",type:S,pure:!0})}return S})()},8174:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>e});class e{static copyToClipboard(D){const I=document.createElement("textarea");I.style.position="fixed",I.style.left="0",I.style.top="0",I.style.opacity="0",I.value=D,document.body.appendChild(I),I.focus(),I.select(),document.execCommand("copy"),document.body.removeChild(I)}static findHashtags(D,I){let S=D.split(" ").filter(w=>w.startsWith("#"));return I?S.map(w=>w.replace("#","")):S}static removeSpecialCharacters(D,I=!0){return D.replace(I?/[^a-zA-Z0-9\s]/g:/[^a-zA-Z0-9]/g,"")}static slugify(D){return null==D?"":D.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}static codify(D){return null==D?"":D.toString().toUpperCase().replace(/\s+/g,"_").replace(/[^\w\_]+/g,"").replace(/\_\_+/g,"_").replace(/^_+/,"").replace(/_+$/,"")}static randomString(D){let I="";for(let n=0;n{"use strict";C.d(Ie,{b:()=>e,e:()=>l});class e{static getDuration(I,S){return Math.abs(I.getTime()-S.getTime())}static addDays(I,S){return new Date(I.getTime()+24*S*60*60*1e3)}static addMonths(I,S){return new Date(I.setMonth(I.getMonth()+S))}static addYears(I,S){return new Date(I.setFullYear(I.getFullYear()+S))}static weekRange(I){let S=I.getDay()||7;return 1!==S&&I.setHours(-24*(S-1)),{start:new Date(I.getFullYear(),I.getMonth(),I.getDate()),end:new Date(I.getFullYear(),I.getMonth(),I.getDate()+6)}}static last7DaysRange(I){return{start:this.addDays(I,-7),end:I}}static monthRange(I){return{start:new Date(I.getFullYear(),I.getMonth(),1),end:new Date(I.getFullYear(),I.getMonth()+1,0)}}static yearRange(I){return{start:new Date(I.getFullYear(),0,1),end:new Date(I.getFullYear(),11,31)}}static msToTime(I){let S=Math.floor(I%1e3/100),w=Math.floor(I/1e3%60),n=Math.floor(I/6e4%60),Z=Math.floor(I/36e5%24);return{h:Z<10?"0"+Z:Z+"",m:n<10?"0"+n:n+"",s:w<10?"0"+w:w+"",ms:S+""}}static msToReadableTime(I,S){let w=this.msToTime(I);if("00"===w.h&&"00"===w.m)return"just now";let n="";return"00"!==w.h&&(n=w.h+" h "),n=n+""+w.m+" min",S&&(n=" "+n+" sec"),n+" ago"}static calculateRange(I){switch(I){case"TODAY":{let S=new Date;return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(S)}}case"YESTERDAY":{let S=this.getDayBefore(new Date,1);return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(S)}}case"THIS_WEEK":{let S=this.getDayBefore(new Date,7);return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(new Date)}}case"THIS_MONTH":{let S=this.getFirstAndLastDayOfMonth(new Date);return{fromDate:S.firstDay,toDate:S.lastDay}}case"LAST_MONTH":{let S=new Date;S.setMonth(S.getMonth()-1);let w=this.getFirstAndLastDayOfMonth(S);return{fromDate:w.firstDay,toDate:w.lastDay}}}return null}static getDayBefore(I,S){return new Date(I.getTime()-24*S*60*60*1e3)}static getDayStart(I){return I.setHours(0,0,0,0),I}static getDayEnd(I){return I.setHours(23,59,59,999),I}static getFirstAndLastDayOfMonth(I){const S=new Date(I.getFullYear(),I.getMonth(),1),w=new Date(I.getFullYear(),I.getMonth()+1,0);return{firstDay:this.getDayStart(S),lastDay:this.getDayEnd(w)}}static dateFromMonth(I){const S=l.map(n=>n.value).findIndex(n=>n.toLowerCase()===I.toLowerCase()),w=new Date;return w.setUTCMonth(-1!==S?S:(new Date).getMonth()),w.setUTCDate(1),w.setUTCHours(0,0,0,0),w}}let l=[{title:"January",value:"january"},{title:"February",value:"february"},{title:"March",value:"march"},{title:"April",value:"april"},{title:"May",value:"may"},{title:"June",value:"june"},{title:"July",value:"july"},{title:"August",value:"august"},{title:"September",value:"september"},{title:"October",value:"october"},{title:"November",value:"november"},{title:"December",value:"december"}]},7151:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>re});var e=C(6814),l=C(5940),D=C(6007),I=C(9277),S=C(6223),w=C(4807),n=C(7700),Z=C(9299),ee=C(5879);let re=(()=>{class ue{static#e=this.\u0275fac=function(oe){return new(oe||ue)};static#t=this.\u0275mod=ee.oAB({type:ue});static#n=this.\u0275inj=ee.cJS({providers:[{provide:n.WI,useValue:{}},{provide:n.so,useValue:{}}],imports:[e.ez,l.Cq,D.Cv,I.kn,S.u5,w.A0,S.UX,Z.d]})}return ue})()},8914:(ft,Ie,C)=>{"use strict";C.d(Ie,{$:()=>e});const e=[{id:1,title:"TODAY",code:"TODAY"},{id:2,title:"YESTERDAY",code:"YESTERDAY"},{id:4,title:"THIS WEEK",code:"THIS_WEEK"},{id:4,title:"THIS MONTH",code:"THIS_MONTH"}]},6929:(ft,Ie,C)=>{"use strict";C.d(Ie,{v:()=>S});var e=C(5879),l=C(6814);function D(w,n){if(1&w){const Z=e.EpF();e.TgZ(0,"li",3),e.NdJ("click",function(){const ue=e.CHM(Z).$implicit,se=e.oxw();return e.KtG(se.onMenuItemClick(ue))}),e.TgZ(1,"a"),e._uU(2),e.qZA()()}if(2&w){const Z=n.$implicit;e.xp6(2),e.Oqu(Z.title)}}const I=function(w){return{"product-menu-bar":w}};let S=(()=>{class w{constructor(){this.showMenubar=!1,this.top=0,this.items=[],this.menuItemClick=new e.vpe}ngOnInit(){}onMenuItemClick(Z){this.menuItemClick.emit(Z)}static#e=this.\u0275fac=function(ee){return new(ee||w)};static#t=this.\u0275cmp=e.Xpm({type:w,selectors:[["app-menubox"]],inputs:{showMenubar:"showMenubar",top:"top",items:"items"},outputs:{menuItemClick:"menuItemClick"},decls:4,vars:7,consts:[[3,"ngClass"],[1,"productMenuBox"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(ee,re){1&ee&&(e.TgZ(0,"div",0)(1,"div",1)(2,"ul"),e.YNc(3,D,3,1,"li",2),e.qZA()()()),2&ee&&(e.Q6J("ngClass",e.VKq(5,I,re.showMenubar)),e.xp6(1),e.Jzz("top:",re.top,"px"),e.xp6(2),e.Q6J("ngForOf",re.items))},dependencies:[l.mk,l.sg],styles:['.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:250px;margin-top:10px;padding:0 10px;list-style:none;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return w})()},9029:(ft,Ie,C)=>{"use strict";C.d(Ie,{d:()=>w});var e=C(5879),l=C(7613),D=C(6814);const I=function(n){return{"background-image":n}};function S(n,Z){if(1&n){const ee=e.EpF();e.TgZ(0,"div",1,2),e.NdJ("click",function(){e.CHM(ee);const ue=e.oxw();return e.KtG(ue.onItemClick(ue.product))}),e.TgZ(2,"div",3)(3,"p",4),e._UZ(4,"i",5),e._uU(5),e.qZA(),e.TgZ(6,"h4")(7,"a",6),e.NdJ("click",function(){e.CHM(ee);const ue=e.oxw();return e.KtG(ue.onItemClick(ue.product))}),e.TgZ(8,"span",7),e._uU(9),e.qZA()()()()()}if(2&n){const ee=e.oxw();e.Q6J("ngStyle",e.VKq(3,I,"url("+ee.product.image+")")),e.xp6(5),e.hij(" ",ee.product.average_rating.toFixed(1),"/10 This week"),e.xp6(4),e.Oqu(ee.product.product_name)}}let w=(()=>{class n{constructor(){this.product=null,this.onClick=new e.vpe}ngOnInit(){}takeOnly(ee){return ee.length<25?ee:l.m.takeOnly(ee,25)+".."}onItemClick(ee){this.onClick.emit(ee)}static#e=this.\u0275fac=function(re){return new(re||n)};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["app-single-product-item"]],inputs:{product:"product"},outputs:{onClick:"onClick"},decls:1,vars:1,consts:[["class","single-product-area item",3,"ngStyle","click",4,"ngIf"],[1,"single-product-area","item",3,"ngStyle","click"],["el",""],[1,"product-content","text-light","align-items-end"],[2,"color","ghostwhite","text-shadow","1px 1px black"],[1,"flaticon-star-1",2,"font-size","1em"],[3,"click"],[1,"excerpt"]],template:function(re,ue){1&re&&e.YNc(0,S,10,5,"div",0),2&re&&e.Q6J("ngIf",null!=ue.product)},dependencies:[D.O5,D.PC],styles:[".single-product-area[_ngcontent-%COMP%]{object-fit:cover;background-size:cover;display:flex;justify-content:flex-end;flex-direction:column;border-radius:0}.product-content[_ngcontent-%COMP%]{border-radius:0;height:90px;background-color:transparent;background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}@media screen and (max-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:160px}}@media screen and (min-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:165px}}"]})}return n})()},5159:(ft,Ie,C)=>{"use strict";C.d(Ie,{q:()=>oe});var e=C(5879),l=C(8637),D=C(30),I=C(1662),S=C(6945),w=C(6814),n=C(8468);function Z(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",7),e.TgZ(2,"span",8),e._uU(3),e.qZA()()}if(2&ce){const Re=e.oxw(2).$implicit,mt=e.oxw();e.xp6(1),e.s9C("src",Re.img,e.LSH),e.xp6(2),e.Oqu(mt.firstWord(Re.title))}}function ee(ce,_e){1&ce&&e._UZ(0,"img",12),2&ce&&e.s9C("src",_e.$implicit,e.LSH)}function re(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",7),e.TgZ(2,"span",8),e._uU(3),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,ee,1,1,"img",11),e.qZA()()}if(2&ce){const Re=e.oxw(2).$implicit,mt=e.oxw();e.xp6(1),e.s9C("src",Re.img,e.LSH),e.xp6(2),e.Oqu(mt.firstWord(Re.title)),e.xp6(2),e.Q6J("ngForOf",Re.badges)}}function ue(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",12),e.qZA()}if(2&ce){const Re=e.oxw(2).$implicit;e.xp6(1),e.s9C("src",Re.img,e.LSH)}}function se(ce,_e){if(1&ce&&(e.YNc(0,Z,4,2,"div",3),e.YNc(1,re,6,3,"div",4),e.YNc(2,ue,2,1,"div",5)),2&ce){const Re=e.oxw(2);e.Q6J("ngIf","reviewers"===Re.design),e.xp6(1),e.Q6J("ngIf","achievements"===Re.design),e.xp6(1),e.Q6J("ngIf","youtube-reviews"===Re.design)}}function te(ce,_e){1&ce&&e.YNc(0,se,3,3,"ng-template",2)}let oe=(()=>{class ce extends l.H{constructor(Re,mt,Ge){super(Re,mt,Ge),this.carouselOptions={loop:!0,items:4,smartSpeed:500,autoplay:!1,autoWidth:!0,margin:10,nav:!1,dots:!1,responsive:{0:{items:5},480:{items:5},600:{items:7},800:{items:8},1200:{items:10}}},this.items=[],this.design="reviewers",this.itemClick=new e.vpe}componentName(){return"SmallCarouselComponent"}ngOnInit(){}onItemClick(Re){this.itemClick.emit(Re)}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(D.Y),e.Y36(I.F0),e.Y36(S.z))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["app-small-carousel"]],inputs:{items:"items",design:"design"},outputs:{itemClick:"itemClick"},features:[e.qOj],decls:2,vars:2,consts:[[3,"options"],[4,"ngFor","ngForOf"],["carouselSlide",""],["class","item single-reviewers-area text-center small-carousel",3,"click",4,"ngIf"],["class","item single-reviewers-area text-center small-carousel mb-5",3,"click",4,"ngIf"],["class","item youtube-reviews single-review-area text-center",3,"click",4,"ngIf"],[1,"item","single-reviewers-area","text-center","small-carousel",3,"click"],["alt","",1,"carousel-img",3,"src"],[1,"user-name"],[1,"item","single-reviewers-area","text-center","small-carousel","mb-5",3,"click"],[1,"acchievement-rating","my-2"],["alt","",3,"src",4,"ngFor","ngForOf"],["alt","",3,"src"],[1,"item","youtube-reviews","single-review-area","text-center",3,"click"]],template:function(mt,Ge){1&mt&&(e.TgZ(0,"owl-carousel-o",0),e.YNc(1,te,1,0,null,1),e.qZA()),2&mt&&(e.Q6J("options",Ge.carouselOptions),e.xp6(1),e.Q6J("ngForOf",Ge.items))},dependencies:[w.sg,w.O5,n.Fy,n.Mp],styles:[".carousel-img[_ngcontent-%COMP%]{height:100%}.acchievement-rating[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:25px}.acchievement-rating[_ngcontent-%COMP%]{display:flex;justify-content:center}.small-carousel[_ngcontent-%COMP%]{margin-bottom:30px}.user-name[_ngcontent-%COMP%]{display:block;max-width:64px;justify-content:center}"]})}return ce})()},2177:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>$e});var e=C(8637),l=C(7259),D=C(8914),I=C(2739),S=C(553),w=C(5879),n=C(8480),Z=C(5462),ee=C(30),re=C(1662),ue=C(6945),se=C(1081),te=C(9491),oe=C(2951),ce=C(6593),_e=C(6814),Re=C(4736),mt=C(5159),Ge=C(2498),Lt=C(7613),je=C(8468),Tt=C(9029);function xt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-single-product-item",3),w.NdJ("onClick",function(){w.CHM(he);const rt=w.oxw().$implicit,bt=w.oxw();return w.KtG(bt.onItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw().$implicit;w.Q6J("product",he)}}function St(me,tt){1&me&&w.YNc(0,xt,1,1,"ng-template",2)}let Zt=(()=>{class me{constructor(){this.carouselOptions={loop:!1,items:6,smartSpeed:500,autoplay:!1,autoWidth:!1,margin:0,nav:!1,dots:!1,stagePadding:10,responsive:{0:{items:2,stagePadding:10},480:{items:2,stagePadding:20},576:{items:3},600:{items:3},800:{items:5},1200:{items:6}}},this.items=[],this.itemClick=new w.vpe}ngOnInit(){}onItemClick(he){this.itemClick.emit(he)}takeOnly(he){return he.length<25?he:Lt.m.takeOnly(he,25)+".."}static#e=this.\u0275fac=function(Ze){return new(Ze||me)};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-product-carousel"]],inputs:{items:"items"},outputs:{itemClick:"itemClick"},decls:2,vars:2,consts:[[3,"options"],[4,"ngFor","ngForOf"],["carouselSlide",""],[3,"product","onClick"]],template:function(Ze,rt){1&Ze&&(w.TgZ(0,"owl-carousel-o",0),w.YNc(1,St,1,0,null,1),w.qZA()),2&Ze&&(w.Q6J("options",rt.carouselOptions),w.xp6(1),w.Q6J("ngForOf",rt.items))},dependencies:[_e.sg,je.Fy,je.Mp,Tt.d],styles:[".single-product-area[_ngcontent-%COMP%]{object-fit:cover;background-size:cover;display:flex;justify-content:flex-end;flex-direction:column;border-radius:0}.product-content[_ngcontent-%COMP%]{min-height:108px;border-radius:0;background-color:transparent;background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}@media screen and (max-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:160px}}@media screen and (min-width: 400px){.single-product-area[_ngcontent-%COMP%]{min-height:300px}}"]})}return me})();function yt(me,tt){1&me&&w._UZ(0,"util-progress")}function un(me,tt){if(1&me&&(w.TgZ(0,"div"),w._uU(1," No Items for period: "),w._UZ(2,"br"),w._uU(3),w.qZA()),2&me){const he=w.oxw();w.xp6(3),w.hij("",he.period," ")}}function Jt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-product-carousel",12),w.NdJ("itemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onProductItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("items",he.products)}}const tn=function(me){return{"product-menu-bar":me}};let wn=(()=>{class me extends e.H{constructor(he,Ze,rt,bt,Nt,Qt){super(rt,bt,Nt),this.authService=he,this.notifier=Ze,this.productService=Qt,this.title="",this.attrId=null,this.productsLoaded=new w.vpe,this.products=[],this.period="THIS MONTH",this.showMenubar=!1}componentName(){return"ProductListComponent"}ngOnInit(){let he=I.b.calculateRange("THIS_MONTH");this.fetchTopProducts({attribute_id:this.attrId,from_date:he?.fromDate,to_date:he?.toDate})}onProductItemClick(he){this.navigate("products/"+he.product_id+"/"+he.product_slug,Ze=>{console.log("Product Details: "+he.product_slug)})}onMenuClick(he){this.showMenubar=!this.showMenubar}onMenuItemClick(he){this.showMenubar=!1,this.period=he.replace("_"," ");let Ze=I.b.calculateRange(he);this.fetchTopProducts({attribute_id:this.attrId,from_date:Ze?.fromDate,to_date:Ze?.toDate})}fetchTopProducts(he){this.loading=!0;const Ze=this.componentKey(l.Z.PRODUCTS.PRODUCTS_LOADED(this.attrId));this.productService.fetchTopProducts(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.products=bt.data,this.loading=!1,this.productsLoaded.emit(!0)}),this.subscribe(this.getErrorKey(Ze),null,(rt,bt)=>{this.notifier.log(bt.data)})}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(re.F0),w.Y36(ue.z),w.Y36(Ge.M))};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-product-list"]],inputs:{title:"title",attrId:"attrId"},outputs:{productsLoaded:"productsLoaded"},features:[w.qOj],decls:29,vars:8,consts:[[1,"product-section","pt-4","mb-1"],[1,"container"],[1,"row","align-items-center","mb-3"],[1,"col-7"],[1,"col-5"],[1,"product-header-right","d-flex","justify-content-between"],[3,"click"],[3,"ngClass"],["src","assets/img/FunnelSimple.png","alt","",3,"click"],[1,"productMenuBox"],[4,"ngIf"],[3,"items","itemClick",4,"ngIf"],[3,"items","itemClick"]],template:function(Ze,rt){1&Ze&&(w.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5"),w._uU(5),w.qZA()(),w.TgZ(6,"div",4)(7,"div",5)(8,"h5",6),w.NdJ("click",function(Nt){return rt.onMenuClick(Nt)}),w._uU(9),w.qZA(),w.TgZ(10,"div",7)(11,"img",8),w.NdJ("click",function(Nt){return rt.onMenuClick(Nt)}),w.qZA(),w.TgZ(12,"div",9)(13,"ul")(14,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("TODAY")}),w.TgZ(15,"a"),w._uU(16,"Today"),w.qZA()(),w.TgZ(17,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("THIS_WEEK")}),w.TgZ(18,"a"),w._uU(19,"This Week"),w.qZA()(),w.TgZ(20,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("THIS_MONTH")}),w.TgZ(21,"a"),w._uU(22,"This Month"),w.qZA()(),w.TgZ(23,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("LAST_MONTH")}),w.TgZ(24,"a"),w._uU(25,"Last Month"),w.qZA()()()()()()()(),w.YNc(26,yt,1,0,"util-progress",10),w.YNc(27,un,4,1,"div",10),w.YNc(28,Jt,1,1,"app-product-carousel",11),w.qZA()()),2&Ze&&(w.xp6(5),w.hij("Top items for ",rt.title,""),w.xp6(4),w.Oqu(rt.period),w.xp6(1),w.Q6J("ngClass",w.VKq(6,tn,rt.showMenubar)),w.xp6(16),w.Q6J("ngIf",rt.loading),w.xp6(1),w.Q6J("ngIf",!rt.loading&&0===rt.products.length),w.xp6(1),w.Q6J("ngIf",!rt.loading))},dependencies:[_e.mk,_e.O5,Re.t,Zt],styles:['.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:250px;margin-top:10px;padding:0 10px;list-style:none;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7}.product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return me})();var Ln=C(6929);function Yn(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}function ti(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-menubox",22),w.NdJ("menuItemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onReviewersMenuItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("showMenubar",he.showReviewersMenu)("items",he.getMenuItems())}}function gi(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}const Rn=function(me){return{active:me}};function dt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"li",23),w.NdJ("click",function(){const bt=w.CHM(he).$implicit,Nt=w.oxw();return w.KtG(Nt.loadAttributes([bt]))}),w.TgZ(1,"a",24),w._uU(2),w.qZA()()}if(2&me){const he=tt.$implicit,Ze=w.oxw();w.Q6J("ngClass",w.VKq(2,Rn,Ze.selectedInterestItem===he.id)),w.xp6(2),w.Oqu(he.name)}}function at(me,tt){if(1&me&&w._UZ(0,"app-product-list",25),2&me){const he=tt.$implicit;w.Q6J("title",he.name)("attrId",he.id)}}function Be(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-menubox",22),w.NdJ("menuItemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onAchievementsMenuItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("showMenubar",he.showAchievementsMenu)("items",he.getMenuItems())}}function Ee(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}let $e=(()=>{class me extends e.H{constructor(he,Ze,rt,bt,Nt,Qt,nn,Dn,Ot,rn){super(rt,bt,Nt),this.authService=he,this.notifier=Ze,this.categoryService=Qt,this.reviewService=nn,this.leaderboardService=Dn,this.seoTitle=Ot,this.seoMeta=rn,this.interestsAttrLoading=!0,this.recentReviews=null,this.recentReviewers=[],this.reviewersLoading=!0,this.reviewersPeriod="THIS WEEK",this.showReviewersMenu=!1,this.recentAchievements=null,this.achievements=[],this.achievementsLoading=!0,this.achievementsPeriod="THIS WEEK",this.showAchievementsMenu=!1,this.userInterests=[],this.attributes=[],this.selectedInterestItem=null}componentName(){return"HomeComponent"}ngOnInit(){this.router.navigate(["/admin/dashboard"]).then(Ze=>{}),this.fetchInterests();let he=I.b.calculateRange(this.reviewersPeriod.replace(" ","_"));this.fetchRecentReviews({page:0,from_date:he?.fromDate,to_date:he?.toDate,slice:!0}),this.fetchAchievements({from_date:he?.fromDate,to_date:he?.toDate}),this.resolveSeo()}fetchRecentReviews(he){this.reviewersLoading=!0;let Ze=this.componentKey(l.Z.REVIEWS.FETCH_RECENT_REVIEWS());this.reviewService.fetchRecentReviews(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.recentReviews=bt.data,this.recentReviewers=me.mapToCarouselItems(bt.data),this.reviewersLoading=!1})}fetchAchievements(he){this.achievementsLoading=!0;let Ze=this.componentKey(l.Z.LEADERBOARDS.FETCH_RECENT_ACHIEVEMENTS());this.leaderboardService.fetchRecentAchievements(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.recentAchievements=bt.data,this.achievements=me.mapAchievementsToCarouselItems(bt.data),this.achievementsLoading=!1})}onRecentReviewerItemClick(he){let Ze=this.recentReviews?.content.filter(bt=>bt.id===he.id);if(null==Ze||0===Ze.length)return;let rt=Ze[0];this.navigate("/reviews/"+rt?.product_slug+"/"+rt?.slug+"/"+rt?.post_id,bt=>{})}onRecentAchievementsItemClick(he){let Ze=this.recentAchievements?.content.filter(bt=>bt.id===he.id);null!=Ze&&0!==Ze.length&&this.navigate("/u/"+Ze[0].achieved_by_username,bt=>{})}fetchInterests(){if(!this.authService.isAuthenticated())return void this.fetchRootCategories();let he=this.componentKey(l.Z.CATEGORIES.FETCH_INTERESTS());this.categoryService.fetchInterests(he),this.subscribe(he,null,(Ze,rt)=>{this.userInterests=rt.data.map(Nt=>Nt.category),this.loadAttributes(this.userInterests)})}fetchRootCategories(){let he=this.componentKey(l.Z.CATEGORIES.LOADED_ROOT_CATEGORIES());this.categoryService.loadCategories(he,null,null),this.subscribe(he,null,(Ze,rt)=>{this.userInterests=rt.data.content,this.loadAttributes(this.userInterests)})}loadAttributes(he){this.selectedInterestItem=1==he.length?he[0].id:null;let Ze=he.map(bt=>bt.id),rt=this.componentKey(l.Z.CATEGORIES.LOADED_CATEGORY_ATTRIBUTES(Ze));this.categoryService.loadAttributes(rt,Ze),this.subscribe(rt,null,(bt,Nt)=>{this.attributes=Nt.data,this.interestsAttrLoading=!1}),this.notifier.log("Initiate attributes for interests (unimplemented)")}onSearchBoxClicked(he){this.navigate("/search",Ze=>{})}static mapToCarouselItems(he){return he.content.map(Ze=>({id:Ze?.id,slug:Ze?.slug,title:Ze?.posted_by_name,img:null!=Ze?.posted_by_avatar?Ze?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+Ze.id+"/"+Ze.post_id,badges:[]}))}static mapAchievementsToCarouselItems(he){return he.content.map(Ze=>({id:Ze?.id,slug:"",title:Ze?.badge_name,img:null!=Ze?.achieved_by_avatar?Ze?.achieved_by_avatar:"assets/img/default-avatar.png",url:"/u/"+Ze.achieved_by_username,badges:Array(Ze?.total_badge_count).fill("assets/img/recent-acchievements/rating/badge1.png")}))}getMenuItems(){return D.$}onReviewersMenuItemClick(he){this.showReviewersMenu&&(this.showReviewersMenu=!1),this.reviewersPeriod=he.title;let Ze=I.b.calculateRange(he.code);this.fetchRecentReviews({page:0,from_date:Ze?.fromDate,to_date:Ze?.toDate,slice:!0})}onAchievementsMenuItemClick(he){console.log(he),this.showAchievementsMenu&&(this.showAchievementsMenu=!1),this.achievementsPeriod=he.title;let Ze=I.b.calculateRange(he.code);console.log(Ze?.fromDate),console.log(Ze?.toDate),this.fetchAchievements({from_date:Ze?.fromDate,to_date:Ze?.toDate})}onReviewersMenuClick(){this.showReviewersMenu=!this.showReviewersMenu}onAchievementsMenuClick(){this.showAchievementsMenu=!this.showAchievementsMenu}resolveSeo(){this.initSeoItems(this.seoTitle,this.seoMeta,S.N.app_name,"Blockchain based community oriented product quality assurance platform through review and rating.",[],"index","website","",S.N.app_url)}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(re.F0),w.Y36(ue.z),w.Y36(se.H),w.Y36(te.F),w.Y36(oe.S),w.Y36(ce.Dx),w.Y36(ce.h_))};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-home"]],features:[w.qOj],decls:39,vars:17,consts:[[3,"bar",4,"ngIf"],[1,"search-area",3,"click"],[1,"container"],[1,"search-box","d-flex","justify-content-center"],[1,"search"],["type","text","placeholder","Search for products, jobs anything","name","",1,"search-input"],["href","#",1,"search-icon"],[1,"icon-search"],[1,"reviewers-section","py-2","mt-3"],[1,"reviewers-content","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items","design","itemClick"],[1,"category-area","pt-3","mt-2","scrollable"],[1,"list-inline","list-unstyled"],[1,"list-inline-item",3,"ngClass"],["href","#",3,"click"],["class","list-inline-item",3,"ngClass","click",4,"ngFor","ngForOf"],[3,"title","attrId",4,"ngFor","ngForOf"],[1,"acchievements-section","py-3","mt-3"],[1,"acchievements-content","d-flex","justify-content-between","pb-3",3,"click"],[3,"bar"],[3,"showMenubar","items","menuItemClick"],[1,"list-inline-item",3,"ngClass","click"],["href","#"],[3,"title","attrId"]],template:function(Ze,rt){1&Ze&&(w.YNc(0,Yn,1,1,"util-progress",0),w.TgZ(1,"div")(2,"section",1),w.NdJ("click",function(Nt){return rt.onSearchBoxClicked(Nt)}),w.TgZ(3,"div",2)(4,"div",3)(5,"div",4),w._UZ(6,"input",5),w.TgZ(7,"a",6),w._UZ(8,"i",7),w.qZA()()()()(),w.TgZ(9,"section",8)(10,"div",2)(11,"div",9),w.NdJ("click",function(){return rt.onReviewersMenuClick()}),w.TgZ(12,"h5"),w._uU(13,"RECENT REVIEWERS"),w.qZA(),w.TgZ(14,"h5"),w._uU(15),w.qZA(),w._UZ(16,"img",10),w.qZA(),w.YNc(17,ti,1,2,"app-menubox",11),w.TgZ(18,"app-small-carousel",12),w.NdJ("itemClick",function(Nt){return rt.onRecentReviewerItemClick(Nt)}),w.qZA(),w.YNc(19,gi,1,1,"util-progress",0),w.qZA()(),w.TgZ(20,"section",13)(21,"div",2)(22,"ul",14)(23,"li",15)(24,"a",16),w.NdJ("click",function(){return rt.loadAttributes(rt.userInterests)}),w._uU(25,"All"),w.qZA()(),w.YNc(26,dt,3,4,"li",17),w.qZA()()(),w.YNc(27,at,1,2,"app-product-list",18),w.TgZ(28,"section",19)(29,"div",2)(30,"div",20),w.NdJ("click",function(){return rt.onAchievementsMenuClick()}),w.TgZ(31,"h5"),w._uU(32,"RECENT ACHIEVEMENTS"),w.qZA(),w.TgZ(33,"h5"),w._uU(34),w.qZA(),w._UZ(35,"img",10),w.qZA(),w.YNc(36,Be,1,2,"app-menubox",11),w.TgZ(37,"app-small-carousel",12),w.NdJ("itemClick",function(Nt){return rt.onRecentAchievementsItemClick(Nt)}),w.qZA(),w.YNc(38,Ee,1,1,"util-progress",0),w.qZA()()()),2&Ze&&(w.Q6J("ngIf",rt.interestsAttrLoading),w.xp6(1),w.Q6J("@dataLoaded",rt.interestsAttrLoading?"loading":"loaded"),w.xp6(14),w.Oqu(rt.reviewersPeriod),w.xp6(2),w.Q6J("ngIf",!rt.reviewersLoading),w.xp6(1),w.Q6J("items",rt.recentReviewers)("design","reviewers"),w.xp6(1),w.Q6J("ngIf",rt.reviewersLoading),w.xp6(4),w.Q6J("ngClass",w.VKq(15,Rn,null===rt.selectedInterestItem)),w.xp6(3),w.Q6J("ngForOf",rt.userInterests),w.xp6(1),w.Q6J("ngForOf",rt.attributes),w.xp6(7),w.Oqu(rt.reviewersPeriod),w.xp6(2),w.Q6J("ngIf",!rt.achievementsLoading),w.xp6(1),w.Q6J("items",rt.achievements)("design","achievements"),w.xp6(1),w.Q6J("ngIf",rt.achievementsLoading))},dependencies:[_e.mk,_e.sg,_e.O5,Re.t,mt.q,wn,Ln.v],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.list-inline-item[_ngcontent-%COMP%]{margin-right:1.5rem}.list-group-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#000}.category-area[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1.12em!important}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{height:auto;position:relative}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:40px;width:95%}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:16px;position:absolute;height:auto;width:auto;top:50%;left:12px;margin-top:-9px;display:inline-block}.reviewers-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#44d62c;letter-spacing:.05em}"]})}return me})()},1081:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}searchCategories(ue,se){this.http.get(l.e.CATEGORIES.SEARCH(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.notifier.log(te)})}loadCategories(ue,se,te){null==te&&(te=""),this.http.get(l.e.CATEGORIES.SEARCH(null==se?{q:te}:{parent_id:se,q:te})).subscribe(ce=>{this.eventBusService.publish(ue,ce)},ce=>{this.notifier.log(ce)})}saveInterests(ue,se){let te=se.map(oe=>oe.id);this.http.post(l.e.CATEGORIES.SAVE_INTERESTS(),{category_ids:te}).subscribe(oe=>{this.eventBusService.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.saveInterests(ue,se)},ce=>{this.eventBusService.publish(this.getErrorKey(ue),ce)})})}fetchInterests(ue){this.http.get(l.e.CATEGORIES.FETCH_INTERESTS()).subscribe(se=>{this.eventBusService.publish(ue,se)},se=>{this.notifier.log(se)})}loadAttributes(ue,se){this.http.get(l.e.CATEGORIES.FETCH_ATTRIBUTES({category_ids:se})).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.notifier.log(te)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},2498:(ft,Ie,C)=>{"use strict";C.d(Ie,{M:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}search(ue,se){this.http.get(l.e.PRODUCTS.SEARCH(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.search(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}searchBrands(ue,se){this.http.get(l.e.PRODUCTS.SEARCH_BRANDS(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.searchBrands(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchTopProducts(ue,se){this.http.get(l.e.PRODUCTS.GET_TOP_PRODUCTS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchTopProducts(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchDetails(ue,se){this.http.get(l.e.PRODUCTS.GET_DETAILS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchDetails(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchAvgRatings(ue,se){this.http.get(l.e.REVIEWS.FETCH_AVG_RATINGS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchAvgRatings(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9491:(ft,Ie,C)=>{"use strict";C.d(Ie,{F:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchRecentReviews(ue,se){this.http.get(l.e.REVIEWS.FETCH_RECENT_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchRecentReviews(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}loadReviewAttributes(ue,se){this.notifier.log("Loading attrs for product: "+se),this.http.get(l.e.ATTRIBUTES.GET_ATTRS_FOR_PRODUCT(se,{})).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.loadReviewAttributes(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}createReview(ue,se){this.http.post(l.e.REVIEWS.CREATE_REVIEW({}),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.createReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}updateReview(ue,se,te){this.http.patch(l.e.REVIEWS.UPDATE_REVIEW(se,{}),te).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.updateReview(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}fetchMyReview(ue,se){this.http.get(l.e.REVIEWS.FETCH_MY_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchMyReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}fetchReview(ue,se,te){return this.http.get(l.e.REVIEWS.FETCH_REVIEW(se,te)).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchReview(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})}),ue}fetchProductReviews(ue,se,te){this.http.get(l.e.REVIEWS.FETCH_PRODUCT_REVIEWS(se,te),{}).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchProductReviews(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}fetchUserReviews(ue,se,te){this.http.get(l.e.REVIEWS.FETCH_USER_REVIEWS(se,te),{}).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchUserReviews(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}verifyReview(ue,se){this.http.post(l.e.REVIEWS.SEND_VERIFICATION_REQUEST(),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.verifyReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}getVerificationForReview(ue,se){this.http.get(l.e.REVIEWS.GET_VERIFICATION_FOR_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.getVerificationForReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}reconsiderVerification(ue,se){this.http.patch(l.e.REVIEWS.RECONSIDER_VERIFICATION(se),null).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.reconsiderVerification(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},1259:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>I});var e=C(2495),l=C(553),D=C(5879);class I extends e.O{constructor(){super()}static#e=this.CATEGORIES={SEARCH:w=>l.N.base_url+"/api/v1/public/categories"+e.O.toParamString(w),SAVE_INTERESTS:()=>l.N.base_url+"/api/v1/user-interests",FETCH_INTERESTS:()=>l.N.base_url+"/api/v1/user-interests/my-interests",FETCH_ATTRIBUTES:w=>l.N.base_url+"/api/v1/public/categories/attributes"+e.O.toParamString(w)};static#t=this.PRODUCTS={SEARCH:w=>l.N.base_url+"/api/v1/public/products"+e.O.toParamString(w),SEARCH_BRANDS:w=>l.N.base_url+"/api/v1/public/brands"+e.O.toParamString(w),GET_TOP_PRODUCTS:w=>l.N.base_url+"/api/v1/public/ratings/top-rated-products"+e.O.toParamString(w),GET_DETAILS:w=>l.N.base_url+"/api/v2/public/products/"+w};static#n=this.VENDORS={SEARCH:w=>l.N.base_url+"/api/v1/public/vendors"+e.O.toParamString(w)};static#i=this.ATTRIBUTES={GET_ATTRS_FOR_PRODUCT:(w,n)=>l.N.base_url+"/api/v1/public/products/"+w+"/attributes"+e.O.toParamString(n)};static#r=this.REVIEWS={FETCH_RECENT_REVIEW:w=>l.N.base_url+"/api/v1/public/reviews/recent-reviews"+e.O.toParamString(w),CREATE_REVIEW:w=>l.N.base_url+"/api/v1/reviews"+e.O.toParamString(w),UPDATE_REVIEW:(w,n)=>l.N.base_url+"/api/v1/reviews/"+w+e.O.toParamString(n),FETCH_MY_REVIEW:w=>l.N.base_url+"/api/v1/products/"+w+"/my-review",FETCH_REVIEW:(w,n)=>l.N.base_url+"/api/v2/public/"+w+"/reviews/"+n,FETCH_PRODUCT_REVIEWS:(w,n)=>l.N.base_url+"/api/v1/public/products/"+w+"/reviews"+e.O.toParamString(n),FETCH_USER_REVIEWS:(w,n)=>l.N.base_url+"/api/v1/public/users/"+w+"/reviews"+e.O.toParamString(n),FETCH_AVG_RATINGS:w=>l.N.base_url+"/api/v1/public/products/"+w+"/avg_ratings",SEND_VERIFICATION_REQUEST:()=>l.N.base_url+"/api/v1/review-verifications",GET_VERIFICATION_FOR_REVIEW:w=>l.N.base_url+"/api/v1/public/reviews/"+w+"/verification",RECONSIDER_VERIFICATION:w=>l.N.base_url+"/api/v1/review-verifications/"+w+"/apply-for-reconsideration"};static#o=this.POSTS={FETCH_COMMENTS:(w,n)=>l.N.base_url+"/api/v1/social/posts/"+w+"/comments"+e.O.toParamString(n),SUBMIT_POST:()=>l.N.base_url+"/api/v1/social/posts",UPDATE_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,DELETE_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,REACT_TO_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w+"/reactions",FETCH_NEWS_FEED_POSTS:w=>l.N.base_url+"/api/v1/social/posts"+e.O.toParamString(w),FETCH_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,FETCH_POST_REACTIONS:(w,n)=>l.N.base_url+"/api/v1/social/posts/"+w+"/reactions"+e.O.toParamString(n),FETCH_REACTIONS:w=>l.N.base_url+"/api/v1/social/reactions"+e.O.toParamString(w),FETCH_USER_POSTS:(w,n)=>l.N.base_url+"/api/v1/public/social/users/"+w+"/posts"+e.O.toParamString(n),FETCH_TRENDING_TAGS:w=>l.N.base_url+"/api/v1/public/social/posts/trending-tags"+e.O.toParamString(w),POST_REVIEW_REPORT:()=>l.N.base_url+"/api/v1/report-reviews",GET_REPORT_DETAILS_FOR_POST:w=>l.N.base_url+"/api/v1/report-reviews/my-reports/for-post/"+w,GET_REPORT_COUNT_FOR_POST:w=>l.N.base_url+"/api/v1/report-reviews/my-reports/for-post/"+w+"/count"};static#s=this.NOTIFICATIONS={COUNT_UNREAD:w=>l.N.base_url+"/api/v1/notifications/unread/count"+e.O.toParamString(w),MARK_READ:w=>l.N.base_url+"/api/v1/notifications/mark-read"+e.O.toParamString(w),FETCH_MY_NOTIFICATIONS:w=>l.N.base_url+"/api/v1/my-notifications"+e.O.toParamString(w),DELETE:()=>l.N.base_url+"/api/v1/notifications/"};static#a=this.LEADERBOARDS={FETCH_LEADERBOARD:w=>l.N.base_url+"/api/v1/leaderboards/"+w+"/leaderboard",REDEEM:()=>l.N.base_url+"/api/v1/redeems",FETCH_RECENT_ACHIEVEMENTS:w=>l.N.base_url+"/api/v1/public/latest-achievements"+e.O.toParamString(w)};static#l=this.WALLET={FETCH_MY_WALLET:w=>l.N.base_url+"/api/v1/my-wallet"+e.O.toParamString(w),FETCH_USER_WALLET:(w,n)=>l.N.base_url+"/api/v1/admin/wallets/user-wallet/"+w+"/"+e.O.toParamString(n)};static#c=this.USER={FETCH_FOLLOW_STATS:w=>l.N.base_url+"/api/v1/follows/"+w+"/stats",FOLLOW_A_USER:w=>l.N.base_url+"/api/v1/follows/follow/"+w,UNFOLLOW_A_USER:w=>l.N.base_url+"/api/v1/follows/unfollow/"+w,GET_MY_FOLLOWERS:()=>l.N.base_url+"/api/v1/follows/my-followers",GET_MY_FOLLOWING:()=>l.N.base_url+"/api/v1/follows/following",GET_MY_PROFILE:()=>l.N.base_url+"/api/v1/my-profile",UPDATE_MY_PROFILE:()=>l.N.base_url+"/api/v1/my-profile",DELETE_ME:()=>l.N.base_url+"/api/v1/users/delete-me",SEARCH:w=>l.N.base_url+"/api/v1/admin/users"+e.O.toParamString(w)};static#d=this.ACTIVITY_LOGS={ADMIN_SEARCH:w=>l.N.base_url+"/api/v1/admin/activity-logs"+e.O.toParamString(w)};static#u=this.REQUEST_CREDENTIALS={ADMIN_SEARCH_LOCKOUTS:w=>l.N.base_url+"/api/v1/admin/request-credentials/lockouts"+e.O.toParamString(w)};static#h=this.QUESTIONNAIRES={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/questionnaires",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/questionnaires",SEARCH:(w,n)=>w+e.O.toParamString(n),GET_DETAILS:w=>l.N.base_url+"/api/v1/questionnaires/"+w,DELETE:()=>l.N.base_url+"/api/v1/questionnaires/",CREATE:()=>l.N.base_url+"/api/v1/questionnaires",UPDATE:w=>l.N.base_url+"/api/v1/questionnaires/"+w,TOGGLE_APPROVAL:(w,n)=>l.N.base_url+"/api/v1/questionnaires/"+w+"/toggle-approval"+e.O.toParamString(n),RESULT_SHEET:w=>l.N.base_url+"/api/v1/questionnaires/"+w+"/result-sheet"};static#f=this.POLLS={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/polls",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/polls",SEARCH:(w,n)=>w+e.O.toParamString(n),GET_DETAILS:w=>l.N.base_url+"/api/v1/polls/"+w,CREATE:()=>l.N.base_url+"/api/v1/polls",DELETE:()=>l.N.base_url+"/api/v1/polls/",UPDATE:w=>l.N.base_url+"/api/v1/polls/"+w};static#p=this.VOTES={SEARCH:w=>l.N.base_url+"/api/v1/admin/votes"+e.O.toParamString(w),FETCH_USER_VOTE_STATS:w=>l.N.base_url+"/api/v1/admin/votes/user-vote-count-stats"+e.O.toParamString(w),FETCH_POLL_VOTE_STATS:w=>l.N.base_url+"/api/v1/admin/votes/poll-vote-count-stats"+e.O.toParamString(w)};static#_=this.POLL_STATISTICS={OVERVIEW_STATS_ENDPOINT:l.N.base_url+"/api/v1/poll-stats/overview",OVERVIEW_STATS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-stats/overview",DATE_WISE_POLL_COUNTS_ENDPOINT:l.N.base_url+"/api/v1/poll-stats/date-wise-poll-counts",DATE_WISE_POLL_COUNTS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-stats/date-wise-poll-counts",OVERVIEW_STATS:(w,n)=>w+e.O.toParamString(n),DATE_WISE_POLL_COUNTS:(w,n)=>w+e.O.toParamString(n)};static#m=this.POLL_OPTIONS={SEARCH:w=>l.N.base_url+"/api/v1/poll-options"+e.O.toParamString(w),CREATE:()=>l.N.base_url+"/api/v1/poll-options",DELETE:()=>l.N.base_url+"/api/v1/poll-options/",UPDATE:w=>l.N.base_url+"/api/v1/poll-options/"+w};static#g=this.LABELS={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/labels",SEARCH_ENDPOINT_FOR_POLLBOX:l.N.base_url+"/api/v1/public/labels/POLLBOX/children",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/labels",SEARCH:(w,n)=>w+e.O.toParamString(n),CREATE:()=>l.N.base_url+"/api/v1/labels",UPDATE:w=>l.N.base_url+"/api/v1/labels/"+w};static#v=this.\u0275fac=function(n){return new(n||I)};static#b=this.\u0275prov=D.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}},9310:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{WebAppModule:()=>Id});var e=C(6814),l=C(1662),D=C(2177),I=C(8637),S=C(7259),w=C(7613),n=C(5879),Z=C(6223),ee=function(F){return F.RATING="RATING",F.PROVOKE_REVIEW="PROVOKE_REVIEW",F.REVIEW="REVIEW",F.PROVOKE_IMAGE_UPLOAD="PROVOKE_IMAGE_UPLOAD",F.IMAGE_UPLOAD="IMAGE_UPLOAD",F.FINISHED_DIALOG="FINISHED_DIALOG",F.SUBMIT_ERROR="SUBMIT_ERROR",F}(ee||{}),re=C(30),ue=C(6945),se=C(9491),te=C(5462),oe=C(8214),ce=C(2951),_e=C(8480),Re=C(7700),mt=C(2296),Ge=C(4736);function Lt(F,Xe){if(1&F&&n._UZ(0,"img",5),2&F){const g=n.oxw();n.s9C("src",g.img,n.LSH)}}function je(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",10)(1,"button",11),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onBtnClick(!1))}),n._uU(2),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(2),n.Oqu(g.negativeBtnTxt)}}function Tt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"a",12),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onBtnClick(!0))}),n._uU(1),n.qZA()}if(2&F){const g=n.oxw(2);n.xp6(1),n.Oqu(g.positiveBtnText)}}function xt(F,Xe){if(1&F&&(n.TgZ(0,"section",6)(1,"div",7),n.YNc(2,je,3,1,"div",8),n.YNc(3,Tt,2,1,"a",9),n.qZA()()),2&F){const g=n.oxw();n.xp6(2),n.Q6J("ngIf",null!=g.negativeBtnTxt),n.xp6(1),n.Q6J("ngIf",null!=g.positiveBtnText)}}let St=(()=>{class F{constructor(){this.step=2,this.img=null,this.title="",this.message="",this.positiveBtnText=null,this.negativeBtnTxt=null,this.titleColor="#44d62c",this.msgColor="#FFFFFF",this.onPositiveBtn=new n.vpe,this.onNegativeBtn=new n.vpe}ngOnInit(){}onBtnClick(g){g?this.onPositiveBtn.emit():this.onNegativeBtn.emit()}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-notice-view"]],inputs:{step:"step",img:"img",title:"title",message:"message",positiveBtnText:"positiveBtnText",negativeBtnTxt:"negativeBtnTxt",titleColor:"titleColor",msgColor:"msgColor"},outputs:{onPositiveBtn:"onPositiveBtn",onNegativeBtn:"onNegativeBtn"},decls:10,vars:10,consts:[[1,"notification-area","review-rdi","pb-4"],[1,"notify-image-area","text-center"],["alt","describe img","class","img-scale-half",3,"src",4,"ngIf"],[1,"notify-content"],["class","call-to-ac-area review-ro pb-3",4,"ngIf"],["alt","describe img",1,"img-scale-half",3,"src"],[1,"call-to-ac-area","review-ro","pb-3"],[1,"container","d-flex","justify-content-around","align-items-center"],["class","skip-btn",4,"ngIf"],["class","boxed-btn",3,"click",4,"ngIf"],[1,"skip-btn"],[3,"click"],[1,"boxed-btn",3,"click"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1),n.YNc(2,Lt,1,1,"img",2),n.TgZ(3,"p"),n._uU(4),n.qZA()(),n.TgZ(5,"div",3),n._UZ(6,"h2"),n.TgZ(7,"p"),n._uU(8),n.qZA()()(),n.YNc(9,xt,4,2,"section",4)),2&L&&(n.xp6(2),n.Q6J("ngIf",null!=R.img),n.xp6(1),n.Jzz("color: ",R.titleColor,";"),n.xp6(1),n.Oqu(R.title),n.xp6(3),n.Jzz("color: ",R.msgColor,";"),n.xp6(1),n.Oqu(R.message),n.xp6(1),n.Q6J("ngIf",null!=R.positiveBtnText||null!=R.negativeBtnTxt))},dependencies:[e.O5],styles:['@charset "UTF-8";.img-scale-half[_ngcontent-%COMP%]{transform:scale(.5);filter:progid:DXImageTransform.Microsoft.Matrix(M11=.9999619230641713,M12=-.008726535498373935,M21=.008726535498373935,M22=.9999619230641713,SizingMethod="auto expand")}']})}return F})();function Zt(F,Xe){1&F&&n._UZ(0,"util-progress",10),2&F&&n.Q6J("padding",50)}function yt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",21)(1,"div",22)(2,"div",23)(3,"button",24),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.updateRating(!0,ye.id))}),n._UZ(4,"i",25),n.qZA(),n._UZ(5,"input",26),n.TgZ(6,"button",24),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.updateRating(!1,ye.id))}),n._UZ(7,"i",27),n.qZA()(),n.TgZ(8,"p"),n._UZ(9,"i",28),n.qZA(),n.TgZ(10,"h5"),n._uU(11),n.qZA()()()}if(2&F){const g=Xe.$implicit;n.xp6(5),n.Q6J("formControlName",g.id),n.xp6(6),n.Oqu(g.name)}}function un(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",11)(1,"div",12)(2,"div",13)(3,"div",14)(4,"div",15)(5,"div",16)(6,"h5",17),n._uU(7,"AVG RATING"),n.qZA(),n.TgZ(8,"h2"),n._uU(9),n.qZA()()(),n.YNc(10,yt,12,2,"div",18),n.qZA()(),n.TgZ(11,"button",19),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("PROVOKE_REVIEW"))}),n._UZ(12,"i",20),n._uU(13," done "),n.qZA()()()}if(2&F){const g=n.oxw(3);n.xp6(9),n.Oqu(g.calculateAverageRating()),n.xp6(1),n.Q6J("ngForOf",g.attrs)}}function Jt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notice-view",29),n.NdJ("onPositiveBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("REVIEW"))})("onNegativeBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n.qZA()}2&F&&n.Q6J("img","assets/img/review-rating-only-images/reviews.png")("title","You can earn 3 more points!")("message","If you write your experience and thought about this product in short, you can earn 5 more points. This will take just a minute.")("positiveBtnText","ADD REVIEW")("negativeBtnTxt","JUST SUBMIT RATING")}function tn(F,Xe){if(1&F&&(n.TgZ(0,"div",58)(1,"h5"),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",39),n.qZA()()),2&F){const g=Xe.$implicit,L=n.oxw(4);n.xp6(2),n.Oqu(g.name),n.xp6(2),n.Oqu(L.getRatingForAttr(g.id))}}function wn(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Name must be at least 4 characters!"),n.qZA()())}function Ln(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Must not be empty or above 511 characters"),n.qZA()())}function Yn(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Must not be empty or above 511 characters"),n.qZA()())}function ti(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"header",30)(2,"div",31)(3,"div",32)(4,"h2"),n._uU(5,"Your Ratings"),n.qZA()(),n.TgZ(6,"div",33)(7,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.editRating())}),n._UZ(8,"i",35),n._uU(9," edit"),n.qZA()()()(),n.TgZ(10,"section",36)(11,"div",37)(12,"div",38)(13,"div",16)(14,"h5"),n._uU(15,"Avg Rating"),n.qZA(),n.TgZ(16,"p"),n._uU(17),n._UZ(18,"i",39),n.qZA()(),n.YNc(19,tn,6,2,"div",40),n.qZA()()(),n.TgZ(20,"div",41)(21,"div",37)(22,"div",42)(23,"h4",17),n._uU(24,"REVIEW TITLE"),n.qZA(),n.TgZ(25,"div",43)(26,"div",44)(27,"label",45),n._uU(28,"A nice title makes your review interesting."),n.qZA(),n._UZ(29,"textarea",46),n.qZA()(),n.YNc(30,wn,3,0,"div",47),n.qZA(),n.TgZ(31,"div",48)(32,"h4",17),n._uU(33,"POSITIVE EXPERIENCE"),n.qZA(),n.TgZ(34,"div",43)(35,"div",44)(36,"label",49),n._uU(37,"Write your positive experience with this item."),n.qZA(),n._UZ(38,"textarea",50),n.qZA()(),n.YNc(39,Ln,3,0,"div",47),n.qZA(),n.TgZ(40,"div",51)(41,"h4",17),n._uU(42,"NEGATIVE EXPERIENCE"),n.qZA(),n.TgZ(43,"div",52)(44,"div",44)(45,"label",53),n._uU(46,"If you had any negative experience with this item, please feel free to mention here"),n.qZA(),n._UZ(47,"textarea",54),n.qZA()(),n.YNc(48,Yn,3,0,"div",47),n.qZA(),n.TgZ(49,"div",55)(50,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.prevStep("PROVOKE_REVIEW"))}),n._uU(51,"BACK"),n.qZA(),n._uU(52,"\xa0\xa0 "),n.TgZ(53,"button",56),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("PROVOKE_IMAGE_UPLOAD"))}),n._UZ(54,"i",57),n._uU(55," SUBMIT "),n.qZA()()()()()}if(2&F){const g=n.oxw(3);n.xp6(17),n.Oqu(g.calculateAverageRating()),n.xp6(2),n.Q6J("ngForOf",g.attrs),n.xp6(11),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.title)),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.pros)),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.cons)),n.xp6(5),n.Q6J("disabled",g.postReviewForm.invalid)}}function gi(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notice-view",29),n.NdJ("onPositiveBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("IMAGE_UPLOAD"))})("onNegativeBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n.qZA()}2&F&&n.Q6J("img","assets/img/review-r-d-page/describe.png")("title","Wonderful! want 5 more points?")("message","Adding an image with your review makes it more attractive and trustworthy. You'll get 5 more points and also a chance to verify your review.")("positiveBtnText","UPLOAD")("negativeBtnTxt","JUST SUBMIT")}function Rn(F,Xe){if(1&F&&(n.TgZ(0,"div",58)(1,"h5"),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",39),n.qZA()()),2&F){const g=Xe.$implicit,L=n.oxw(4);n.xp6(2),n.Oqu(g.name),n.xp6(2),n.Oqu(L.getRatingForAttr(g.id))}}function dt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",67),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.removeExImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit,n.LSH)}function at(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",67),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Be(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"header",30)(2,"div",31)(3,"div",32)(4,"h2"),n._uU(5,"Your Ratings"),n.qZA()(),n.TgZ(6,"div",33)(7,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.editRating())}),n._UZ(8,"i",35),n._uU(9," edit"),n.qZA()()()(),n.TgZ(10,"section",36)(11,"div",37)(12,"div",38)(13,"div",16)(14,"h5"),n._uU(15,"Avg Rating"),n.qZA(),n.TgZ(16,"p"),n._uU(17),n._UZ(18,"i",39),n.qZA()(),n.YNc(19,Rn,6,2,"div",40),n.qZA()()(),n.TgZ(20,"section",60)(21,"div",37)(22,"h4",17),n._uU(23,"UPLOAD IMAGES"),n.qZA(),n.TgZ(24,"div",61)(25,"div"),n.YNc(26,dt,1,1,"img",62),n.YNc(27,at,1,1,"img",62),n.qZA(),n.TgZ(28,"label",63),n._UZ(29,"i",64),n.qZA(),n.TgZ(30,"input",65),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(3);return n.KtG(ye.onImageSelected(R))}),n.qZA()()(),n.TgZ(31,"div",55)(32,"button",66),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n._UZ(33,"i",57),n._uU(34," finish "),n.qZA()()()()}if(2&F){const g=n.oxw(3);n.xp6(17),n.Oqu(g.calculateAverageRating()),n.xp6(2),n.Q6J("ngForOf",g.attrs),n.xp6(7),n.Q6J("ngForOf",g.review.thumbs),n.xp6(1),n.Q6J("ngForOf",g.uploadFiles)}}function Ee(F,Xe){if(1&F&&(n.TgZ(0,"form",7),n.YNc(1,Zt,1,1,"util-progress",8),n.YNc(2,un,14,2,"section",5),n.YNc(3,Jt,1,5,"app-notice-view",9),n.YNc(4,ti,56,6,"div",0),n.YNc(5,gi,1,5,"app-notice-view",9),n.YNc(6,Be,35,4,"div",0),n.qZA()),2&F){const g=n.oxw(2);n.Q6J("formGroup",g.postReviewForm),n.xp6(1),n.Q6J("ngIf",g.ratingLoading),n.xp6(1),n.Q6J("ngIf",g.isStep("RATING")&&!g.ratingLoading),n.xp6(1),n.Q6J("ngIf",g.isStep("PROVOKE_REVIEW")),n.xp6(1),n.Q6J("ngIf",g.isStep("REVIEW")),n.xp6(1),n.Q6J("ngIf",g.isStep("PROVOKE_IMAGE_UPLOAD")),n.xp6(1),n.Q6J("ngIf",g.isStep("IMAGE_UPLOAD"))}}function $e(F,Xe){if(1&F&&(n.TgZ(0,"section",11)(1,"div",37)(2,"div",68),n._UZ(3,"img",69),n.TgZ(4,"p"),n._uU(5),n.qZA()(),n.TgZ(6,"div",70),n._UZ(7,"util-progress",71)(8,"hr"),n.TgZ(9,"h2"),n._uU(10,"A pigeon is carrying your review to us. Give it a bit of time."),n.qZA(),n._UZ(11,"p"),n.qZA()()()),2&F){const g=n.oxw(2);n.xp6(5),n.Oqu(g.reviewSubmitMessage),n.xp6(2),n.Q6J("determinate",!0)("bar",!0)("determinateValue",g.reviewSubmitProgress)}}function me(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",72),2&F){const g=n.oxw(2);n.Q6J("img","assets/img/review-r-d-i-page/achievement.png")("title","Congratulations! You've earned "+g.review.weight+" points.")("message","Your review has been successfully submitted. We thank you for your contributions to help this community out. We love you for your effort.")}}function tt(F,Xe){if(1&F&&(n.TgZ(0,"mat-dialog-content")(1,"div",2),n._UZ(2,"i",3),n.qZA(),n.YNc(3,Ee,7,7,"form",4),n.YNc(4,$e,12,4,"section",5),n.YNc(5,me,1,3,"app-notice-view",6),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("ngIf",0===g.reviewSubmitProgress),n.xp6(1),n.Q6J("ngIf",g.reviewSubmitProgress>0&&g.reviewSubmitProgress<100),n.xp6(1),n.Q6J("ngIf",g.isStep("FINISHED_DIALOG")&&100===g.reviewSubmitProgress)}}function he(F,Xe){if(1&F&&(n.TgZ(0,"mat-dialog-content")(1,"div",2),n._UZ(2,"i",3),n.qZA(),n._UZ(3,"app-notice-view",73),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("img","assets/img/scenario-page-image/idea.png")("title","Something went wrong!")("message",g.errorMsg)("titleColor","#ff042f")}}function Ze(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",74)(1,"button",75),n._uU(2,"Close"),n.qZA()())}let rt=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R),this.reviewService=ye,this.notifier=Dt,this.fileUploadService=Mn,this.leaderboardService=vi,this.auth=Fo,this.productId=0,this.stepDoneNavigateTo=null,this.onReviewPosted=new n.vpe,this.step=ee.RATING,this.attrs=[],this.uploadFiles=[],this.ratingLoading=!0,this.reviewSubmitProgress=0,this.reviewSubmitMessage="Please wait..",this.review={id:null,photos:[],thumbs:[],title:"",pros:"",cons:"",content:"",product_id:0,product_slug:"",ratings:[],weight:null,posted_by_name:null,average_rating:null,created_at:null,updated_at:null,post:null,verification_status:null,verified_by:null,verification_reconsiderable:!1,chained:!1,hash:"",product_name:"",slug:""},this.errorMsg="",this.ratingsFormGroup=new Z.cw({}),this.postReviewForm=new Z.cw({title:new Z.NI(this.review.title,[Z.kI.required,Z.kI.minLength(4)]),pros:new Z.NI(this.review.pros,[Z.kI.required,Z.kI.maxLength(511)]),cons:new Z.NI(this.review.cons,[Z.kI.required,Z.kI.maxLength(511)]),ratings:this.ratingsFormGroup})}componentName(){return"PostReviewComponent"}ngOnInit(){this.initFormState(),this.loadAttrs()}initFormState(){this.postReviewForm.controls.title.setValue(this.review.title),this.postReviewForm.controls.pros.setValue(this.review.pros),this.postReviewForm.controls.cons.setValue(this.review.cons)}nextStep(g){let L=g;L===ee.PROVOKE_IMAGE_UPLOAD&&this.postReviewForm.invalid||(this.step=L,this.notifier.log(this.postReviewForm.value),null!=this.stepDoneNavigateTo&&this.navigateByUrl(this.stepDoneNavigateTo,R=>{}),this.notifier.log("Step "+L+" completed."),this.notifier.log("Step "+(L+1)+" started!"))}prevStep(g){this.step=g}loadAttrs(){let g=this.componentKey(S.Z.ATTRS.ATTR_FOR_PRODUCT_LOADED(this.productId));this.reviewService.loadReviewAttributes(g,this.productId),this.subscribe(g,null,(L,R)=>{this.attrs=R.data,this.initiateReviewForm(this.attrs),this.ratingLoading=!1})}initiateReviewForm(g){g.forEach(L=>{this.ratingsFormGroup.addControl(String(L.id),new Z.NI(this.findRatingForAttr(L.id),Z.kI.required))})}findRatingForAttr(g){let L=this.review.ratings.filter(R=>R.attr_id===g).map(R=>R.value);return 0===L.length?0:L[0]}updateRating(g,L){let R=this.ratingsFormGroup.controls[L].value;if(g){if(R>=10)return void this.ratingsFormGroup.controls[String(L)].setValue(10);this.ratingsFormGroup.controls[String(L)].setValue(++R)}else{if(R<=0)return void this.ratingsFormGroup.controls[String(L)].setValue(0);this.ratingsFormGroup.controls[String(L)].setValue(--R)}}editRating(){this.step=ee.RATING}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Mn=>{let vi=Mn.target?.result;null!=vi&&(R.previewUrl=vi,this.uploadFiles.push(R))}}}initiatePostReview(){if(this.uploadFiles.length>0)return this.progress(20,"Preparing images.."),void this.uploadImages();this.progress(20,"Submitting review.."),this.postReview()}uploadImages(){console.log("uploading images..");let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.productId+"-review-img"));this.fileUploadService.uploadImages(L,g),this.progress(30,"Uploading Images.."),this.subscribe(L,null,(R,ye)=>{let Dt=ye.data;Dt.map(Mn=>Mn.image_url).forEach(Mn=>{this.review.photos.push(Mn)}),Dt.map(Mn=>Mn.thumb_url).forEach(Mn=>{this.review.thumbs.push(Mn)}),this.postReview(),this.progress(50,"Preparing review..")})}progress(g,L){this.reviewSubmitProgress=g,this.reviewSubmitMessage=L}postReview(){this.review.product_id=this.productId,this.review.title=this.postReviewForm.controls.title.value||"",this.review.pros=this.postReviewForm.controls.pros.value||"",this.review.cons=this.postReviewForm.controls.cons.value||"",this.review.ratings=F.prepareRating(this.postReviewForm.value.ratings),this.notifier.log("Submitting review.."),this.submitReview(this.productId,this.review),this.progress(60,"Submitting review..")}submitReview(g,L){let R=this.componentKey(S.Z.REVIEWS.POST_REVIEW(g));null==L.id?this.reviewService.createReview(R,this.review):this.reviewService.updateReview(R,L.id,L),this.subscribe(R,null,(ye,Dt)=>{this.reviewSubmitProgress=100,this.review=Dt.data,this.notifier.log(this.review);let Mn=this.globalKey(S.Z.REVIEWS.MY_REVIEW_POSTED(this.productId));this.eventBus.publish(Mn,this.review),this.nextStep(ee.FINISHED_DIALOG),this.onReviewPosted.emit(this.review),this.fetchLeaderboard()}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{let Mn=Dt.data;403===Mn.status&&(this.nextStep(ee.SUBMIT_ERROR),this.errorMsg=Mn.error.message)})}static prepareRating(g){let L=[];for(let R in g)L.push({attr_id:parseInt(R),attr_name:"",value:g[R],id:null,created_at:null,updated_at:null});return L}calculateAverageRating(){let g=F.prepareRating(this.postReviewForm.value.ratings),L=g.map(ye=>ye.value);return 0==L.length?"0":(L.reduce((ye,Dt)=>ye+Dt)/g.length).toFixed(1)}isStep(g){return this.step===g}fetchLeaderboard(){let g=this.componentKey(S.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.leaderboardService.fetchLeaderboard(g,this.auth.getAuth().username),this.subscribe(g,null,(L,R)=>{let ye=R.data,Dt=this.globalKey(S.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.eventBus.publish(Dt,ye)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}removeExImage(g){let L=this.review.thumbs.indexOf(g);this.review.thumbs.splice(L),this.review.photos.splice(L)}getRatingForAttr(g){return this.ratingsFormGroup.controls[String(g)].value||0}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(te.l),n.Y36(oe.J),n.Y36(ce.S),n.Y36(_e.e))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-review"]],inputs:{productId:"productId",stepDoneNavigateTo:"stepDoneNavigateTo"},outputs:{onReviewPosted:"onReviewPosted"},features:[n.qOj],decls:3,vars:3,consts:[[4,"ngIf"],["align","end",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[3,"formGroup",4,"ngIf"],["class","blog-post-area review-rdo mt-4",4,"ngIf"],[3,"img","title","message",4,"ngIf"],[3,"formGroup"],[3,"padding",4,"ngIf"],[3,"img","title","message","positiveBtnText","negativeBtnTxt","onPositiveBtn","onNegativeBtn",4,"ngIf"],[3,"padding"],[1,"blog-post-area","review-rdo","mt-4"],["formGroupName","ratings",1,"container"],[1,"all-avarage-rating","py-2"],[1,"row","g-4"],[1,"col-12"],[1,"single-rating-star"],[1,"title"],["class","col-6",4,"ngFor","ngForOf"],[1,"boxed-btn","mt-4",3,"click"],[1,"flaticon-checked"],[1,"col-6"],[1,"single-rating-star","d-flex","align-items-center"],[1,"number-input"],[3,"click"],[1,"flaticon-up-arrow-angle"],["min","0","max","10","value","0","type","number",1,"quantity",3,"formControlName"],[1,"flaticon-down-arrow"],[1,"flaticon-star"],[3,"img","title","message","positiveBtnText","negativeBtnTxt","onPositiveBtn","onNegativeBtn"],[1,"header-area","review-rdi"],[1,"container","d-flex","justify-content-between","align-items-center"],[1,"header-left"],[1,"header-right"],[1,"edit-boxed-inline-btn",3,"click"],[1,"flaticon-pen"],[1,"blog-post-area","review-rdi","mt-2"],[1,"container"],[1,"all-avarage-rating","d-flex","py-2","scrollable"],[1,"flaticon-star-1"],["class","single-rating-star col-sm-3 single-rating-star-margin-left",4,"ngFor","ngForOf"],[1,"review-r-d-input-fields"],[1,"pros-area"],[1,"pros-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","title",1,"form-label"],["name","pros","id","title","rows","1","placeholder","Write title","formControlName","title",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"pros-area","mt-4"],["for","pros",1,"form-label"],["name","pros","id","pros","rows","3","placeholder","Write positive experience","formControlName","pros",1,"form-control"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],["for","cons",1,"form-label"],["name","cons","id","cons","rows","3","placeholder","Write negative experience","formControlName","cons",1,"form-control"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[1,"single-rating-star","col-sm-3","single-rating-star-margin-left"],[1,"text-warning"],[1,"upload-img-area","review-rdi","pt-4"],[1,"post-last-step-gallery"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],["type","submit",1,"boxed-btn",3,"click"],["alt","",1,"m-1",3,"src","click"],[1,"notify-image-area","text-center","py-4"],["src","../../../../../../assets/img/review-r-d-i-page/achievement.png","alt","describe img",1,"img-scale-half"],[1,"notify-content"],[3,"determinate","bar","determinateValue"],[3,"img","title","message"],[3,"img","title","message","titleColor"],["align","end"],["mat-button","","mat-dialog-close","","cdkfocusinitial",""]],template:function(L,R){1&L&&(n.YNc(0,tt,6,3,"mat-dialog-content",0),n.YNc(1,he,4,4,"mat-dialog-content",0),n.YNc(2,Ze,3,0,"mat-dialog-actions",1)),2&L&&(n.Q6J("ngIf",!R.isStep("SUBMIT_ERROR")),n.xp6(1),n.Q6J("ngIf",R.isStep("SUBMIT_ERROR")),n.xp6(1),n.Q6J("ngIf",R.isStep("FINISHED_DIALOG")&&100===R.reviewSubmitProgress))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.wV,Z.JJ,Z.JL,Z.qQ,Z.Fd,Z.sg,Z.u,Z.x0,Re.ZT,Re.xY,Re.H8,mt.lW,Ge.t,St],styles:['@charset "UTF-8";.title[_ngcontent-%COMP%]{color:#44d62c;margin:0}textarea[_ngcontent-%COMP%]{border:1px dotted #44d62c}.edit-boxed-inline-btn[_ngcontent-%COMP%]{font-size:13px;height:35px;width:100px}.scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.single-rating-star-margin-left[_ngcontent-%COMP%]{margin-left:20px}.autocomplete-input[_ngcontent-%COMP%]{width:100%}.img-scale-half[_ngcontent-%COMP%]{transform:scale(.5);filter:progid:DXImageTransform.Microsoft.Matrix(M11=.9999619230641713,M12=-.008726535498373935,M21=.008726535498373935,M22=.9999619230641713,SizingMethod="auto expand")}.upload-img-area[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:20px 0}.edit-boxed-inline-btn[_ngcontent-%COMP%]{height:auto}']})}return F})();var bt=C(8914),Nt=C(2739),Qt=C(2498),nn=C(6593),Dn=C(5159),Ot=function(F){return F.LIKE="LIKE",F.LOVE="LOVE",F.HAHA="HAHA",F.WOW="WOW",F.SAD="SAD",F.ANGRY="ANGRY",F}(Ot||{}),rn=C(1547),vn=C(1259),ei=C(9862);let Wn=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}fetchPosts(g,L){this.http.get(vn.e.POSTS.FETCH_NEWS_FEED_POSTS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchPosts(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchPost(g,L){this.http.get(vn.e.POSTS.FETCH_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchPost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchComments(g,L){this.http.get(vn.e.POSTS.FETCH_COMMENTS(L,{})).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchComments(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}submitPost(g,L){this.http.post(vn.e.POSTS.SUBMIT_POST(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.submitPost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}updatePost(g,L){null!=L.id&&this.http.patch(vn.e.POSTS.UPDATE_POST(L.id),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.updatePost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}deletePost(g,L){this.http.delete(vn.e.POSTS.DELETE_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.deletePost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}react(g,L,R){this.http.post(vn.e.POSTS.REACT_TO_POST(L),{post_id:L,reaction_type:R}).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.react(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchPostReactions(g,L,R){this.http.get(vn.e.POSTS.FETCH_POST_REACTIONS(L,R)).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.fetchPostReactions(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchReactions(g,L){this.http.get(vn.e.POSTS.FETCH_REACTIONS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchReactions(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchUserPosts(g,L,R){this.http.get(vn.e.POSTS.FETCH_USER_POSTS(L,R)).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.fetchUserPosts(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchTrendingTags(g,L){this.http.get(vn.e.POSTS.FETCH_TRENDING_TAGS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();var Ve=C(3680),ct=C(8484),Ct=C(7131),Ce=C(4300),J=C(9388),ae=C(7394),Oe=C(8645),ot=C(2438),Se=C(2096),Ft=C(3019),lt=C(6232),Bt=C(5592),Ut=C(4825),fn=C(7921),gn=C(3997),An=C(9773),jn=C(8180),ai=C(4664),di=C(836),oi=C(2181),Jn=C(6825),qt=C(2605),_t=C(6672),G=C(2831),U=C(6028);function ve(F,Xe){}const Pe=function(F){return{animationDuration:F}},ut=function(F,Xe){return{value:F,params:Xe}};function We(F,Xe){1&F&&n.Hsn(0)}const ze=["*"],be=["tabListContainer"],Te=["tabList"],He=["tabListInner"],Wt=["nextPaginator"],Pn=["previousPaginator"],wt=["tabBodyWrapper"],Yt=["tabHeader"];function fe(F,Xe){}function Mt(F,Xe){if(1&F&&n.YNc(0,fe,0,0,"ng-template",14),2&F){const g=n.oxw().$implicit;n.Q6J("cdkPortalOutlet",g.templateLabel)}}function Vt(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw().$implicit;n.Oqu(g.textLabel)}}function ht(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6,7),n.NdJ("click",function(){const R=n.CHM(g),ye=R.$implicit,Dt=R.index,Mn=n.oxw(),vi=n.MAs(1);return n.KtG(Mn._handleClick(ye,vi,Dt))})("cdkFocusChange",function(R){const Dt=n.CHM(g).index,Mn=n.oxw();return n.KtG(Mn._tabFocusChanged(R,Dt))}),n._UZ(2,"span",8)(3,"div",9),n.TgZ(4,"span",10)(5,"span",11),n.YNc(6,Mt,1,1,"ng-template",12),n.YNc(7,Vt,1,1,"ng-template",null,13,n.W1O),n.qZA()()()}if(2&F){const g=Xe.$implicit,L=Xe.index,R=n.MAs(1),ye=n.MAs(8),Dt=n.oxw();n.ekj("mdc-tab--active",Dt.selectedIndex===L),n.Q6J("id",Dt._getTabLabelId(L))("ngClass",g.labelClass)("disabled",g.disabled)("fitInkBarToContent",Dt.fitInkBarToContent),n.uIk("tabIndex",Dt._getTabIndex(L))("aria-posinset",L+1)("aria-setsize",Dt._tabs.length)("aria-controls",Dt._getTabContentId(L))("aria-selected",Dt.selectedIndex===L)("aria-label",g.ariaLabel||null)("aria-labelledby",!g.ariaLabel&&g.ariaLabelledby?g.ariaLabelledby:null),n.xp6(3),n.Q6J("matRippleTrigger",R)("matRippleDisabled",g.disabled||Dt.disableRipple),n.xp6(3),n.Q6J("ngIf",g.templateLabel)("ngIfElse",ye)}}function st(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-tab-body",15),n.NdJ("_onCentered",function(){n.CHM(g);const R=n.oxw();return n.KtG(R._removeTabBodyWrapperHeight())})("_onCentering",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye._setTabBodyWrapperHeight(R))}),n.qZA()}if(2&F){const g=Xe.$implicit,L=Xe.index,R=n.oxw();n.ekj("mat-mdc-tab-body-active",R.selectedIndex===L),n.Q6J("id",R._getTabContentId(L))("ngClass",g.bodyClass)("content",g.content)("position",g.position)("origin",g.origin)("animationDuration",R.animationDuration)("preserveContent",R.preserveContent),n.uIk("tabindex",null!=R.contentTabIndex&&R.selectedIndex===L?R.contentTabIndex:null)("aria-labelledby",R._getTabLabelId(L))("aria-hidden",R.selectedIndex!==L)}}const _n={translateTab:(0,Jn.X$)("translateTab",[(0,Jn.SB)("center, void, left-origin-center, right-origin-center",(0,Jn.oB)({transform:"none"})),(0,Jn.SB)("left",(0,Jn.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Jn.SB)("right",(0,Jn.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Jn.eR)("* => left, * => right, left => center, right => center",(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Jn.eR)("void => left-origin-center",[(0,Jn.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Jn.eR)("void => right-origin-center",[(0,Jn.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let En=(()=>{class F extends ct.Pl{constructor(g,L,R,ye){super(g,L,ye),this._host=R,this._centeringSub=ae.w0.EMPTY,this._leavingSub=ae.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,fn.O)(this._host._isCenterPosition(this._host._position))).subscribe(g=>{g&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36((0,n.Gpc)(()=>ni)),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabBodyHost",""]],features:[n.qOj]})}return F})(),On=(()=>{class F{set position(g){this._positionIndex=g,this._computePositionAnimationState()}constructor(g,L,R){this._elementRef=g,this._dir=L,this._dirChangeSubscription=ae.w0.EMPTY,this._translateTabComplete=new Oe.x,this._onCentering=new n.vpe,this._beforeCentering=new n.vpe,this._afterLeavingCenter=new n.vpe,this._onCentered=new n.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,L&&(this._dirChangeSubscription=L.change.subscribe(ye=>{this._computePositionAnimationState(ye),R.markForCheck()})),this._translateTabComplete.pipe((0,gn.x)((ye,Dt)=>ye.fromState===Dt.fromState&&ye.toState===Dt.toState)).subscribe(ye=>{this._isCenterPosition(ye.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ye.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(g){const L=this._isCenterPosition(g.toState);this._beforeCentering.emit(L),L&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(g){return"center"==g||"left-origin-center"==g||"right-origin-center"==g}_computePositionAnimationState(g=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==g?"left":"right":this._positionIndex>0?"ltr"==g?"right":"left":"center"}_computePositionFromOrigin(g){const L=this._getLayoutDirection();return"ltr"==L&&g<=0||"rtl"==L&&g>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(J.Is,8),n.Y36(n.sBO))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}return F})(),ni=(()=>{class F extends On{constructor(g,L,R){super(g,L,R)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(J.Is,8),n.Y36(n.sBO))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-body"]],viewQuery:function(L,R){if(1&L&&n.Gf(ct.Pl,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R._portalHost=ye.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[n.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0,1),n.NdJ("@translateTab.start",function(Dt){return R._onTranslateTabStarted(Dt)})("@translateTab.done",function(Dt){return R._translateTabComplete.next(Dt)}),n.YNc(2,ve,0,0,"ng-template",2),n.qZA()),2&L&&n.Q6J("@translateTab",n.WLB(3,ut,R._position,n.VKq(1,Pe,R.animationDuration)))},dependencies:[En],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[_n.translateTab]}})}return F})();const Vn=new n.OlP("MatTabContent");let fr=(()=>{class F{constructor(g){this.template=g}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.Rgc))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabContent",""]],features:[n._Bn([{provide:Vn,useExisting:F}])]})}return F})();const ki=new n.OlP("MatTabLabel"),Kr=new n.OlP("MAT_TAB");let vr=(()=>{class F extends ct.ig{constructor(g,L,R){super(g,L),this._closestTab=R}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(Kr,8))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[n._Bn([{provide:ki,useExisting:F}]),n.qOj]})}return F})();const Bi="mdc-tab-indicator--active",co="mdc-tab-indicator--no-transition";class Ji{constructor(Xe){this._items=Xe}hide(){this._items.forEach(Xe=>Xe.deactivateInkBar())}alignToElement(Xe){const g=this._items.find(R=>R.elementRef.nativeElement===Xe),L=this._currentItem;if(g!==L&&(L?.deactivateInkBar(),g)){const R=L?.elementRef.nativeElement.getBoundingClientRect?.();g.activateInkBar(R),this._currentItem=g}}}function tr(F){return class extends F{constructor(...Xe){super(...Xe),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Xe){const g=(0,qt.Ig)(Xe);this._fitToContent!==g&&(this._fitToContent=g,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Xe){const g=this.elementRef.nativeElement;if(!Xe||!g.getBoundingClientRect||!this._inkBarContentElement)return void g.classList.add(Bi);const L=g.getBoundingClientRect(),R=Xe.width/L.width,ye=Xe.left-L.left;g.classList.add(co),this._inkBarContentElement.style.setProperty("transform",`translateX(${ye}px) scaleX(${R})`),g.getBoundingClientRect(),g.classList.remove(co),g.classList.add(Bi),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Bi)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Xe=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=Xe.createElement("span"),this._inkBarContentElement=Xe.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const pr=(0,Ve.Id)(class{}),$n=tr((()=>{class F extends pr{constructor(g){super(),this.elementRef=g}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq))};static#t=this.\u0275dir=n.lG2({type:F,features:[n.qOj]})}return F})());let yo=(()=>{class F extends $n{static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(L,R){2&L&&(n.uIk("aria-disabled",!!R.disabled),n.ekj("mat-mdc-tab-disabled",R.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[n.qOj]})}return F})();const Fr=(0,Ve.Id)(class{}),uo=new n.OlP("MAT_TAB_GROUP");let ho=(()=>{class F extends Fr{get content(){return this._contentPortal}constructor(g,L){super(),this._viewContainerRef=g,this._closestTabGroup=L,this.textLabel="",this._contentPortal=null,this._stateChanges=new Oe.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(g){(g.hasOwnProperty("textLabel")||g.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ct.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(g){g&&g._closestTab===this&&(this._templateLabel=g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.s_b),n.Y36(uo,8))};static#t=this.\u0275dir=n.lG2({type:F,viewQuery:function(L,R){if(1&L&&n.Gf(n.Rgc,7),2&L){let ye;n.iGM(ye=n.CRH())&&(R._implicitContent=ye.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[n.qOj,n.TTD]})}return F})(),to=(()=>{class F extends ho{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(g){this._setTemplateLabelInput(g)}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab"]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,fr,7,n.Rgc),n.Suo(ye,vr,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._explicitContent=Dt.first),n.iGM(Dt=n.CRH())&&(R.templateLabel=Dt.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[n._Bn([{provide:Kr,useExisting:F}]),n.qOj],ngContentSelectors:ze,decls:1,vars:0,template:function(L,R){1&L&&(n.F$t(),n.YNc(0,We,1,0,"ng-template"))},encapsulation:2})}return F})();const yr=(0,G.i$)({passive:!0});let xl=(()=>{class F{get disablePagination(){return this._disablePagination}set disablePagination(g){this._disablePagination=(0,qt.Ig)(g)}get selectedIndex(){return this._selectedIndex}set selectedIndex(g){g=(0,qt.su)(g),this._selectedIndex!=g&&(this._selectedIndexChanged=!0,this._selectedIndex=g,this._keyManager&&this._keyManager.updateActiveItem(g))}constructor(g,L,R,ye,Dt,Mn,vi){this._elementRef=g,this._changeDetectorRef=L,this._viewportRuler=R,this._dir=ye,this._ngZone=Dt,this._platform=Mn,this._animationMode=vi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Oe.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Oe.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new n.vpe,this.indexFocused=new n.vpe,Dt.runOutsideAngular(()=>{(0,ot.R)(g.nativeElement,"mouseleave").pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,ot.R)(this._previousPaginator.nativeElement,"touchstart",yr).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ot.R)(this._nextPaginator.nativeElement,"touchstart",yr).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const g=this._dir?this._dir.change:(0,Se.of)("ltr"),L=this._viewportRuler.change(150),R=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ce.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,jn.q)(1)).subscribe(R),(0,Ft.T)(g,L,this._items.changes,this._itemsResized()).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),R()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(ye=>{this.indexFocused.emit(ye),this._setTabFocus(ye)})}_itemsResized(){return"function"!=typeof ResizeObserver?lt.E:this._items.changes.pipe((0,fn.O)(this._items),(0,ai.w)(g=>new Bt.y(L=>this._ngZone.runOutsideAngular(()=>{const R=new ResizeObserver(ye=>L.next(ye));return g.forEach(ye=>R.observe(ye.elementRef.nativeElement)),()=>{R.disconnect()}}))),(0,di.T)(1),(0,oi.h)(g=>g.some(L=>L.contentRect.width>0&&L.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(g){if(!(0,U.Vb)(g))switch(g.keyCode){case U.K5:case U.L_:if(this.focusIndex!==this.selectedIndex){const L=this._items.get(this.focusIndex);L&&!L.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(g))}break;default:this._keyManager.onKeydown(g)}}_onContentChanges(){const g=this._elementRef.nativeElement.textContent;g!==this._currentTextContent&&(this._currentTextContent=g||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(g){!this._isValidIndex(g)||this.focusIndex===g||!this._keyManager||this._keyManager.setActiveItem(g)}_isValidIndex(g){return!this._items||!!this._items.toArray()[g]}_setTabFocus(g){if(this._showPaginationControls&&this._scrollToLabel(g),this._items&&this._items.length){this._items.toArray()[g].focus();const L=this._tabListContainer.nativeElement;L.scrollLeft="ltr"==this._getLayoutDirection()?0:L.scrollWidth-L.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const g=this.scrollDistance,L="ltr"===this._getLayoutDirection()?-g:g;this._tabList.nativeElement.style.transform=`translateX(${Math.round(L)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(g){this._scrollTo(g)}_scrollHeader(g){return this._scrollTo(this._scrollDistance+("before"==g?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(g){this._stopInterval(),this._scrollHeader(g)}_scrollToLabel(g){if(this.disablePagination)return;const L=this._items?this._items.toArray()[g]:null;if(!L)return;const R=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ye,offsetWidth:Dt}=L.elementRef.nativeElement;let Mn,vi;"ltr"==this._getLayoutDirection()?(Mn=ye,vi=Mn+Dt):(vi=this._tabListInner.nativeElement.offsetWidth-ye,Mn=vi-Dt);const Fo=this.scrollDistance,Ya=this.scrollDistance+R;MnYa&&(this.scrollDistance+=Math.min(vi-Ya,Mn-Fo))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const g=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;g||(this.scrollDistance=0),g!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=g}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const g=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,L=g?g.elementRef.nativeElement:null;L?this._inkBar.alignToElement(L):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(g,L){L&&null!=L.button&&0!==L.button||(this._stopInterval(),(0,Ut.H)(650,100).pipe((0,An.R)((0,Ft.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:R,distance:ye}=this._scrollHeader(g);(0===ye||ye>=R)&&this._stopInterval()}))}_scrollTo(g){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const L=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(L,g)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:L,distance:this._scrollDistance}}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{disablePagination:"disablePagination"}})}return F})(),So=(()=>{class F extends xl{get disableRipple(){return this._disableRipple}set disableRipple(g){this._disableRipple=(0,qt.Ig)(g)}constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,ye,Dt,Mn,vi),this._disableRipple=!1}_itemSelected(g){g.preventDefault()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{disableRipple:"disableRipple"},features:[n.qOj]})}return F})(),Ws=(()=>{class F extends So{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,ye,Dt,Mn,vi)}ngAfterContentInit(){this._inkBar=new Ji(this._items),super.ngAfterContentInit()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-header"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,yo,4),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._items=Dt)}},viewQuery:function(L,R){if(1&L&&(n.Gf(be,7),n.Gf(Te,7),n.Gf(He,7),n.Gf(Wt,5),n.Gf(Pn,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R._tabListContainer=ye.first),n.iGM(ye=n.CRH())&&(R._tabList=ye.first),n.iGM(ye=n.CRH())&&(R._tabListInner=ye.first),n.iGM(ye=n.CRH())&&(R._nextPaginator=ye.first),n.iGM(ye=n.CRH())&&(R._previousPaginator=ye.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(L,R){2&L&&n.ekj("mat-mdc-tab-header-pagination-controls-enabled",R._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==R._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[n.qOj],ngContentSelectors:ze,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"button",0,1),n.NdJ("click",function(){return R._handlePaginatorClick("before")})("mousedown",function(Dt){return R._handlePaginatorPress("before",Dt)})("touchend",function(){return R._stopInterval()}),n._UZ(2,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),n.TgZ(5,"div",5,6),n.NdJ("cdkObserveContent",function(){return R._onContentChanges()}),n.TgZ(7,"div",7,8),n.Hsn(9),n.qZA()()(),n.TgZ(10,"button",9,10),n.NdJ("mousedown",function(Dt){return R._handlePaginatorPress("after",Dt)})("click",function(){return R._handlePaginatorClick("after")})("touchend",function(){return R._stopInterval()}),n._UZ(12,"div",2),n.qZA()),2&L&&(n.ekj("mat-mdc-tab-header-pagination-disabled",R._disableScrollBefore),n.Q6J("matRippleDisabled",R._disableScrollBefore||R.disableRipple)("disabled",R._disableScrollBefore||null),n.xp6(3),n.ekj("_mat-animation-noopable","NoopAnimations"===R._animationMode),n.xp6(7),n.ekj("mat-mdc-tab-header-pagination-disabled",R._disableScrollAfter),n.Q6J("matRippleDisabled",R._disableScrollAfter||R.disableRipple)("disabled",R._disableScrollAfter||null))},dependencies:[Ve.wG,Ct.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return F})();const Ds=new n.OlP("MAT_TABS_CONFIG");let $s=0;const Uo=(0,Ve.pj)((0,Ve.Kr)(class{constructor(F){this._elementRef=F}}),"primary");let Jr=(()=>{class F extends Uo{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(g){this._dynamicHeight=(0,qt.Ig)(g)}get selectedIndex(){return this._selectedIndex}set selectedIndex(g){this._indexToSelect=(0,qt.su)(g,null)}get animationDuration(){return this._animationDuration}set animationDuration(g){this._animationDuration=/^\d+$/.test(g+"")?g+"ms":g}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(g){this._contentTabIndex=(0,qt.su)(g,null)}get disablePagination(){return this._disablePagination}set disablePagination(g){this._disablePagination=(0,qt.Ig)(g)}get preserveContent(){return this._preserveContent}set preserveContent(g){this._preserveContent=(0,qt.Ig)(g)}get backgroundColor(){return this._backgroundColor}set backgroundColor(g){const L=this._elementRef.nativeElement.classList;L.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),g&&L.add("mat-tabs-with-background",`mat-background-${g}`),this._backgroundColor=g}constructor(g,L,R,ye){super(g),this._changeDetectorRef=L,this._animationMode=ye,this._tabs=new n.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ae.w0.EMPTY,this._tabLabelSubscription=ae.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new n.vpe,this.focusChange=new n.vpe,this.animationDone=new n.vpe,this.selectedTabChange=new n.vpe(!0),this._groupId=$s++,this.animationDuration=R&&R.animationDuration?R.animationDuration:"500ms",this.disablePagination=!(!R||null==R.disablePagination)&&R.disablePagination,this.dynamicHeight=!(!R||null==R.dynamicHeight)&&R.dynamicHeight,this.contentTabIndex=R?.contentTabIndex??null,this.preserveContent=!!R?.preserveContent}ngAfterContentChecked(){const g=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=g){const L=null==this._selectedIndex;if(!L){this.selectedTabChange.emit(this._createChangeEvent(g));const R=this._tabBodyWrapper.nativeElement;R.style.minHeight=R.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((R,ye)=>R.isActive=ye===g),L||(this.selectedIndexChange.emit(g),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((L,R)=>{L.position=R-g,null!=this._selectedIndex&&0==L.position&&!L.origin&&(L.origin=g-this._selectedIndex)}),this._selectedIndex!==g&&(this._selectedIndex=g,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const g=this._clampTabIndex(this._indexToSelect);if(g===this._selectedIndex){const L=this._tabs.toArray();let R;for(let ye=0;ye{L[g].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(g))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,fn.O)(this._allTabs)).subscribe(g=>{this._tabs.reset(g.filter(L=>L._closestTabGroup===this||!L._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(g){const L=this._tabHeader;L&&(L.focusIndex=g)}_focusChanged(g){this._lastFocusedTabIndex=g,this.focusChange.emit(this._createChangeEvent(g))}_createChangeEvent(g){const L=new kr;return L.index=g,this._tabs&&this._tabs.length&&(L.tab=this._tabs.toArray()[g]),L}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Ft.T)(...this._tabs.map(g=>g._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(g){return Math.min(this._tabs.length-1,Math.max(g||0,0))}_getTabLabelId(g){return`mat-tab-label-${this._groupId}-${g}`}_getTabContentId(g){return`mat-tab-content-${this._groupId}-${g}`}_setTabBodyWrapperHeight(g){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const L=this._tabBodyWrapper.nativeElement;L.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(L.style.height=g+"px")}_removeTabBodyWrapperHeight(){const g=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=g.clientHeight,g.style.height="",this.animationDone.emit()}_handleClick(g,L,R){L.focusIndex=R,g.disabled||(this.selectedIndex=R)}_getTabIndex(g){return g===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(g,L){g&&"mouse"!==g&&"touch"!==g&&(this._tabHeader.focusIndex=L)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ds,8),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[n.qOj]})}return F})(),ga=(()=>{class F extends Jr{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(g){this._fitInkBarToContent=(0,qt.Ig)(g),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(g){this._stretchTabs=(0,qt.Ig)(g)}constructor(g,L,R,ye){super(g,L,R,ye),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!R||null==R.fitInkBarToContent)&&R.fitInkBarToContent,this.stretchTabs=!R||null==R.stretchTabs||R.stretchTabs}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ds,8),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-group"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,to,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._allTabs=Dt)}},viewQuery:function(L,R){if(1&L&&(n.Gf(wt,5),n.Gf(Yt,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R._tabBodyWrapper=ye.first),n.iGM(ye=n.CRH())&&(R._tabHeader=ye.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(L,R){2&L&&(n.Udp("--mat-tab-animation-duration",R.animationDuration),n.ekj("mat-mdc-tab-group-dynamic-height",R.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===R.headerPosition)("mat-mdc-tab-group-stretch-tabs",R.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[n._Bn([{provide:uo,useExisting:F}]),n.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-tab-header",0,1),n.NdJ("indexFocused",function(Dt){return R._focusChanged(Dt)})("selectFocusedIndex",function(Dt){return R.selectedIndex=Dt}),n.YNc(2,ht,9,17,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.YNc(5,st,1,12,"mat-tab-body",5),n.qZA()),2&L&&(n.Q6J("selectedIndex",R.selectedIndex||0)("disableRipple",R.disableRipple)("disablePagination",R.disablePagination),n.xp6(2),n.Q6J("ngForOf",R._tabs),n.xp6(1),n.ekj("_mat-animation-noopable","NoopAnimations"===R._animationMode),n.xp6(2),n.Q6J("ngForOf",R._tabs))},dependencies:[e.mk,e.sg,e.O5,ct.Pl,Ve.wG,Ce.kH,ni,yo,Ws],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return F})();class kr{}let Li=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[e.ez,Ve.BQ,ct.eL,Ve.si,Ct.Q8,Ce.rt,Ve.BQ]})}return F})();var Yr=C(2770);function dr(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw();n.hij(" ALL (",g.reactions.length,") ")}}function Ha(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h3",7),n._uU(2,"Empty"),n.qZA()())}function wr(F,Xe){if(1&F&&(n.TgZ(0,"section",9)(1,"div",10)(2,"div",11)(3,"div",12),n._UZ(4,"img",13),n.TgZ(5,"div",14)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small"),n._uU(9,"Reacted "),n.TgZ(10,"span",15),n._uU(11),n.qZA(),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()()()()()),2&F){const g=Xe.$implicit;n.xp6(4),n.s9C("src",g.reacted_by_photo,n.LSH),n.xp6(3),n.Oqu(g.reacted_by),n.xp6(4),n.Oqu(g.reaction_type),n.xp6(1),n.hij(" ",n.xi3(13,4,g.updated_at,!0),"")}}function al(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,wr,14,7,"section",8),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.reactions)}}function Vr(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw().$implicit,L=n.oxw();n.AsE(" ",g," (",L.filterReactions(g).length,") ")}}function Es(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h3",7),n._uU(2,"Empty"),n.qZA()())}function Js(F,Xe){if(1&F&&(n.TgZ(0,"section",9)(1,"div",10)(2,"div",11)(3,"div",12),n._UZ(4,"img",13),n.TgZ(5,"div",14)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small"),n._uU(9,"Reacted "),n.TgZ(10,"span",15),n._uU(11),n.qZA(),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()()()()()),2&F){const g=Xe.$implicit,L=n.oxw(2).$implicit;n.xp6(4),n.s9C("src",g.reacted_by_photo,n.LSH),n.xp6(3),n.Oqu(g.reacted_by),n.xp6(4),n.Oqu(L),n.xp6(1),n.hij(" on: ",n.xi3(13,4,g.updated_at,!0),"")}}function ll(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Js,14,7,"section",8),n.qZA()),2&F){const g=n.oxw().$implicit,L=n.oxw();n.xp6(1),n.Q6J("ngForOf",L.filterReactions(g))}}function er(F,Xe){if(1&F&&(n.TgZ(0,"mat-tab"),n.YNc(1,Vr,1,2,"ng-template",2),n.YNc(2,Es,3,0,"div",3),n.YNc(3,ll,2,1,"div",3),n.qZA()),2&F){const g=Xe.$implicit,L=n.oxw();n.xp6(2),n.Q6J("ngIf",0===L.filterReactions(g).length),n.xp6(1),n.Q6J("ngIf",L.filterReactions(g).length>0)}}let qn=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.postService=ye,this.postId=0,this.reactions=[]}componentName(){return"ReactionViewComponent"}ngOnInit(){this.fetchReactions(this.postId)}getReactionTypes(){let g=[];for(let L in Ot)g.push(L);return g}filterReactions(g){return this.reactions.filter(L=>L.reaction_type===g)}fetchReactions(g){let L=this.componentKey(S.Z.POSTS.FETCH_POST_REACTIONS(g));this.postService.fetchPostReactions(L,g,{slice:!0}),this.subscribe(L,null,(R,ye)=>{this.reactions=ye.data})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-reaction-view"]],inputs:{postId:"postId"},features:[n.qOj],decls:10,vars:3,consts:[[1,"dialog-content"],["mat-align-tabs","start"],["mat-tab-label",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["align","end"],["mat-button","","mat-dialog-close",""],[1,"txt-no-data"],["class","blog-post-area blog-post-area-comment bdr-top mt-2",4,"ngFor","ngForOf"],[1,"blog-post-area","blog-post-area-comment","bdr-top","mt-2"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","py-1"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"image-rounded",3,"src"],[1,"content","ms-2"],[2,"color","#44d62c"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-dialog-content",0)(1,"mat-tab-group",1)(2,"mat-tab"),n.YNc(3,dr,1,1,"ng-template",2),n.YNc(4,Ha,3,0,"div",3),n.YNc(5,al,2,1,"div",3),n.qZA(),n.YNc(6,er,4,2,"mat-tab",4),n.qZA()(),n.TgZ(7,"mat-dialog-actions",5)(8,"button",6),n._uU(9,"Close"),n.qZA()()),2&L&&(n.xp6(4),n.Q6J("ngIf",0===R.reactions.length),n.xp6(1),n.Q6J("ngIf",R.reactions.length>0),n.xp6(1),n.Q6J("ngForOf",R.getReactionTypes()))},dependencies:[e.sg,e.O5,Re.ZT,Re.xY,Re.H8,mt.lW,vr,to,ga,Yr.G],styles:[".dialog-content[_ngcontent-%COMP%]{min-height:200px;padding:0}.image-rounded[_ngcontent-%COMP%]{width:100px;height:100px;position:relative;overflow:hidden;border-radius:50%}img[_ngcontent-%COMP%]{display:inline;margin:0 auto;height:100%;width:auto}.txt-no-data[_ngcontent-%COMP%]{margin-top:50px;text-align:center}"]})}return F})();var bi=C(617);function _r(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("message","Submitting. Please wait..")}function wo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",29),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function jo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"label",30),n._UZ(2,"i",31),n.qZA(),n.TgZ(3,"input",32),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onImageSelected(R))}),n.qZA()()}}function no(F,Xe){1&F&&(n.TgZ(0,"div",33)(1,"small"),n._uU(2,"Minimum 1 document is needed."),n.qZA()())}function Ao(F,Xe){1&F&&(n.TgZ(0,"div",34)(1,"small"),n._uU(2,"Comment should be at least 20 characters."),n.qZA()())}function nr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6)(1,"form",7)(2,"div",8),n._UZ(3,"input",9),n.TgZ(4,"label",10),n._uU(5,"Add to Blockchain\xa0"),n.qZA(),n.TgZ(6,"small",11),n._uU(7,"If your review is added to the blockchain, you won't be able to further modify or delete this review in future."),n.qZA()(),n.TgZ(8,"section",12)(9,"h5",13),n._uU(10,"UPLOAD DOCUMENTS"),n.qZA(),n.TgZ(11,"small",14),n._uU(12,"Upload related documents."),n.qZA(),n.TgZ(13,"div",15)(14,"div"),n.YNc(15,wo,1,1,"img",16),n.qZA(),n.YNc(16,jo,4,0,"div",17),n.qZA(),n.YNc(17,no,3,0,"div",18),n.qZA(),n.TgZ(18,"div",19)(19,"h5",13),n._uU(20,"YOUR COMMENT/DESCRIPTION"),n.qZA(),n.TgZ(21,"div",20)(22,"div",21)(23,"label",22),n._uU(24,"Share related information about your purchase."),n.qZA(),n._UZ(25,"textarea",23),n.qZA()(),n.YNc(26,Ao,3,0,"div",24),n.qZA(),n.TgZ(27,"div",25)(28,"button",26),n._uU(29,"CANCEL"),n.qZA(),n._uU(30,"\xa0\xa0 "),n.TgZ(31,"button",27),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitVerificationRequest())}),n._UZ(32,"i",28),n._uU(33," SUBMIT "),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("formGroup",g.verificationForm),n.xp6(14),n.Q6J("ngForOf",g.uploadFiles),n.xp6(1),n.Q6J("ngIf",g.uploadFiles.length<3),n.xp6(1),n.Q6J("ngIf",g.isInvalidFileCount()),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.verificationForm.controls.comment)),n.xp6(5),n.Q6J("disabled",g.verificationForm.invalid||0===g.uploadFiles.length)}}function ps(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",5),2&F){const g=n.oxw();n.Q6J("message",g.completionMsg)}}function va(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",35)(1,"button",36),n._uU(2,"CLOSE"),n.qZA()())}let Ti=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.fileUploadService=ye,this.notifier=Dt,this.reviewService=Mn,this.reviewId=0,this.uploadFiles=[],this.verificationForm=new Z.cw({add_to_block_chain:new Z.NI(""),comment:new Z.NI("",[Z.kI.required,Z.kI.minLength(20)])}),this.completionMsg=null}componentName(){return"VerifyReviewComponent"}ngOnInit(){this.loading=!1}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}uploadImages(){this.loading=!0;let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.reviewId+"-verif-img"));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{let Mn=ye.data.map(vi=>vi.image_url);this.submitRequest(Mn)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}submitVerificationRequest(){this.notifier.log(this.verificationForm),this.uploadImages()}submitRequest(g){if(null==this.reviewId)return;this.loading=!0;let R={review_id:this.reviewId,add_to_block_chain:""!==this.verificationForm.controls.add_to_block_chain.value,comment:this.verificationForm.controls.comment.value,document_1:g.length>0?g[0]:"",document_2:g.length>1?g[1]:null,document_3:g.length>2?g[2]:null};const ye=this.componentKey(S.Z.REVIEWS.SEND_VERIFICATION_REQUEST(this.reviewId));this.reviewService.verifyReview(ye,R),this.subscribe(ye,null,(Dt,Mn)=>{this.loading=!1,this.notifier.success("Success","Request Sent."),this.completionMsg="Your request has been successfully submitted. You'll be notified once your request is reviewed."}),this.subscribe(this.getErrorKey(ye),null,(Dt,Mn)=>{this.loading=!1;let vi=Mn.data;this.completionMsg=vi.error.message,this.notifier.warning("Failed!",vi.error.message)})}isInvalidFileCount(){return 0===this.uploadFiles.length||this.uploadFiles.length>3}showInfo(){this.notifier.info("Info!","Upload related documents as a proof. For example invoice, payment slip etc.\n This will help us determine the authenticity of your affiliation with the item.",()=>{},1e4)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(oe.J),n.Y36(te.l),n.Y36(se.F))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-verify-review"]],inputs:{reviewId:"reviewId"},features:[n.qOj],decls:10,vars:4,consts:[["mat-dialog-title",""],[2,"float","right",3,"click"],[3,"message",4,"ngIf"],["class","review-r-d-input-fields",4,"ngIf"],["align","end",4,"ngIf"],[3,"message"],[1,"review-r-d-input-fields"],[3,"formGroup"],[1,"input-group","bdr-b","bdr-top"],["id","chk_add_to_block_chain","type","checkbox","name","add_to_block_chain","formControlName","add_to_block_chain",1,"form-check"],["for","chk_add_to_block_chain",1,"form-check-label","ms-2",2,"align-self","center"],[1,"field-subtitle","pb-2"],[1,"upload-img-area","review-rdi","pt-4","bdr-b","pb-4"],[1,"field-title"],[1,"field-subtitle"],[1,"post-last-step-gallery","mt-2"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","text-warning mt-1",4,"ngIf"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","cons",1,"form-label","field-subtitle"],["name","comment","id","cons","rows","3","placeholder","Enter description here..","formControlName","comment",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["mat-dialog-close","",1,"edit-boxed-inline-btn"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],["alt","",1,"m-1",3,"src","click"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],[1,"text-warning","mt-1"],[1,"text-warning"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"h5"),n._uU(2,"REQUEST VERIFICATION "),n.TgZ(3,"mat-icon",1),n.NdJ("click",function(){return R.showInfo()}),n._uU(4,"info"),n.qZA()()(),n.TgZ(5,"mat-dialog-content"),n.YNc(6,_r,1,1,"util-progress",2),n.YNc(7,nr,34,6,"div",3),n.YNc(8,ps,1,1,"app-notice-view",2),n.qZA(),n.YNc(9,va,3,0,"mat-dialog-actions",4)),2&L&&(n.xp6(6),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&null==R.completionMsg),n.xp6(1),n.Q6J("ngIf",!R.loading&&null!=R.completionMsg),n.xp6(1),n.Q6J("ngIf",null!=R.completionMsg))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.Wl,Z.JJ,Z.JL,Z.sg,Z.u,bi.Hw,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.t,St],styles:[".field-title[_ngcontent-%COMP%]{color:#44d62c}.field-subtitle[_ngcontent-%COMP%]{color:#f5f5f5;font-size:.8em}.dialog-subtitle[_ngcontent-%COMP%]{font-size:.8em;color:#01b9b9}"]})}return F})();function qs(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function ba(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)}function Qs(F,Xe){1&F&&(n.TgZ(0,"mat-icon",20),n._uU(1,"check_circle "),n.qZA())}function wi(F,Xe){1&F&&(n.TgZ(0,"div"),n._UZ(1,"img",21),n.TgZ(2,"small"),n._uU(3,"Added to Blockchain"),n.qZA()())}function Oo(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_1,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_1,n.LSH)}}function Ko(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_2,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_2,n.LSH)}}function or(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_3,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_3,n.LSH)}}function Xs(F,Xe){if(1&F&&(n.TgZ(0,"section",25)(1,"div",8)(2,"div",26)(3,"div",27)(4,"h6",28),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.TgZ(7,"p")(8,"span",29),n._uU(9),n.qZA(),n._uU(10),n.qZA(),n.TgZ(11,"h6",28),n._uU(12),n.qZA()()()()()),2&F){const g=Xe.$implicit;n.xp6(5),n.hij("On ",n.xi3(6,4,null==g?null:g.updated_at,!0),""),n.xp6(4),n.Oqu(null==g?null:g.action_taken_by_name),n.xp6(1),n.hij(" marked this review as ",null==g?null:g.status,""),n.xp6(2),n.hij(" ",null==g?null:g.reason," ")}}function Ml(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-dialog-actions",30)(1,"a",31),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.applyForReconsideration())}),n._uU(2,"APPLY FOR RECONSIDERATION"),n.qZA()()}}function Sr(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"section",7)(2,"div",8)(3,"div",9)(4,"div",10),n.YNc(5,Qs,2,0,"mat-icon",11),n.TgZ(6,"div",12)(7,"h4"),n._uU(8,"\xa0Verification Details"),n.qZA(),n.TgZ(9,"small",13),n._uU(10),n.qZA(),n.YNc(11,wi,4,0,"div",4),n.qZA()()(),n.TgZ(12,"div",14)(13,"p"),n._uU(14),n.qZA(),n.TgZ(15,"div",15),n.YNc(16,Oo,3,2,"div",16),n.YNc(17,Ko,3,2,"div",16),n.YNc(18,or,3,2,"div",16),n.qZA()()()(),n.TgZ(19,"section",17)(20,"h5"),n._uU(21,"Change Logs"),n.qZA()(),n.YNc(22,Xs,13,7,"section",18),n.YNc(23,Ml,3,0,"mat-dialog-actions",19),n.qZA()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",g.isVerified()),n.xp6(5),n.Oqu(null==g.verification?null:g.verification.status),n.xp6(1),n.Q6J("ngIf",null==g.verification||null==g.verification.review?null:g.verification.review.chained),n.xp6(3),n.Oqu(null==g.verification?null:g.verification.comment),n.xp6(2),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_1)),n.xp6(1),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_2)),n.xp6(1),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_3)),n.xp6(4),n.Q6J("ngForOf",null==g.verification?null:g.verification.actions),n.xp6(1),n.Q6J("ngIf",g.isReconsiderable())}}let jr=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.reviewService=ye,this.auth=Dt,this.notifier=Mn,this.reviewId=null,this.verification=null}componentName(){return"VerificationDetailsComponent"}ngOnInit(){this.fetchVerificationForReview()}fetchVerificationForReview(){if(null==this.reviewId)return;this.loading=!0;let g=this.componentKey(S.Z.REVIEWS.GET_VERIFICATION_FOR_REVIEW(this.reviewId));this.reviewService.getVerificationForReview(g,this.reviewId),this.subscribe(g,null,(L,R)=>{this.verification=R.data,console.log(this.verification),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}isVerified(){return"VERIFIED"===this.verification?.status}isReconsiderable(){return!this.verification?.already_reconsidered&&"REJECTED"===this.verification?.status}applyForReconsideration(){if(null==this.verification||!confirm("Do you want to send reconsideration request?"))return;let g=this.componentKey(S.Z.REVIEWS.RECONSIDER_VERIFICATION(this.verification.id));this.reviewService.reconsiderVerification(g,this.verification.id),this.subscribe(g,null,(L,R)=>{this.verification=R.data,this.notifier.success("Success","Request sent for reconsideration.")}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error","Could not send request for reconsideration.")})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-verification-details"]],inputs:{reviewId:"reviewId"},features:[n.qOj],decls:5,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[4,"ngIf"],[3,"bar"],[3,"padding"],[1,"blog-post-area","bdr-b"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","mb-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["class","verified-icon profile-img-rounded","aria-hidden","false","aria-label","View Product",4,"ngIf"],[1,"content"],[1,"verification-status"],[1,"blog-post-content","pb-3"],[1,"product-gallery","mt-2"],["class","single-product-item",4,"ngIf"],[1,"container","bdr-b","my-2","pb-1"],["class","blog-post-area blog-post-area-comment mt-2 bdr-b",4,"ngFor","ngForOf"],["align","end",4,"ngIf"],["aria-hidden","false","aria-label","View Product",1,"verified-icon","profile-img-rounded"],["src","assets/icons/blockchain.svg",2,"height","16px","width","auto","margin-right","10px"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],[1,"blog-post-area","blog-post-area-comment","mt-2","bdr-b"],[1,"blog-post-content"],[1,"comments-comment-item-content"],[2,"color","gray"],[1,"action-taken-by-name"],["align","end"],[3,"click"]],template:function(L,R){1&L&&(n.YNc(0,qs,1,1,"util-progress",0),n.YNc(1,ba,1,1,"util-progress",1),n.TgZ(2,"div",2),n._UZ(3,"i",3),n.qZA(),n.YNc(4,Sr,24,9,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(3),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,bi.Hw,Re.ZT,Re.H8,Ge.t,Yr.G],styles:[".action-taken-by-name[_ngcontent-%COMP%], .verified-icon[_ngcontent-%COMP%]{color:#44d62c}a[_ngcontent-%COMP%]{color:#44d62c;font-size:1em}.verification-status[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})();var xo=C(8174);let _s=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}reportReview(g,L){this.http.post(vn.e.POSTS.POST_REVIEW_REPORT(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}getReportCategories(){return[{name:"NUDITY OR SEXUAL ACTIVITY",value:"NUDITY_OR_SEXUAL_ACTIVITY"},{name:"HARASSMENT OR BULLYING",value:"HARASSMENT_OR_BULLYING"},{name:"OFFENSIVE",value:"OFFENSIVE"},{name:"FALSE INFORMATION",value:"FALSE_INFORMATION"},{name:"SPAM",value:"SPAM"},{name:"VIOLENCE",value:"VIOLENCE"},{name:"HATE SPEECH",value:"HATE_SPEECH"}]}getReportsForPost(g,L){this.http.get(vn.e.POSTS.GET_REPORT_DETAILS_FOR_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}getReportCountForPost(g,L){this.http.get(vn.e.POSTS.GET_REPORT_COUNT_FOR_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();var Ai=C(9157),Jo=C(8525);function Io(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("message","Submitting. Please wait..")}function Ys(F,Xe){if(1&F&&(n.TgZ(0,"mat-option",28),n._uU(1),n.qZA()),2&F){const g=Xe.$implicit;n.Q6J("value",g.value),n.xp6(1),n.hij(" ",g.name," ")}}function fo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",29),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Zr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"label",30),n._UZ(2,"i",31),n.qZA(),n.TgZ(3,"input",32),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onImageSelected(R))}),n.qZA()()}}function ms(F,Xe){1&F&&(n.TgZ(0,"div",33)(1,"small"),n._uU(2,"Minimum 1 document is needed."),n.qZA()())}function Co(F,Xe){1&F&&(n.TgZ(0,"div",34)(1,"small"),n._uU(2,"Comment should be at least 20 characters."),n.qZA()())}function Br(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6)(1,"form",7)(2,"mat-form-field",8)(3,"mat-label"),n._uU(4,"Report Category"),n.qZA(),n.TgZ(5,"mat-select",9),n.YNc(6,Ys,2,2,"mat-option",10),n.qZA()(),n.TgZ(7,"section",11)(8,"h5",12),n._uU(9,"UPLOAD DOCUMENTS"),n.qZA(),n.TgZ(10,"small",13),n._uU(11,"Upload related documents."),n.qZA(),n.TgZ(12,"div",14)(13,"div"),n.YNc(14,fo,1,1,"img",15),n.qZA(),n.YNc(15,Zr,4,0,"div",16),n.qZA(),n.YNc(16,ms,3,0,"div",17),n.qZA(),n.TgZ(17,"div",18)(18,"h5",12),n._uU(19,"YOUR COMMENT/DESCRIPTION"),n.qZA(),n.TgZ(20,"div",19)(21,"div",20)(22,"label",21),n._uU(23,"Share related information about your purchase."),n.qZA(),n._UZ(24,"textarea",22),n.qZA()(),n.YNc(25,Co,3,0,"div",23),n.qZA(),n.TgZ(26,"div",24)(27,"button",25),n._uU(28,"CANCEL"),n.qZA(),n._uU(29,"\xa0\xa0 "),n.TgZ(30,"button",26),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitVerificationRequest())}),n._UZ(31,"i",27),n._uU(32," SUBMIT "),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("formGroup",g.reportPostForm),n.xp6(5),n.Q6J("ngForOf",g.postCategory),n.xp6(8),n.Q6J("ngForOf",g.uploadFiles),n.xp6(1),n.Q6J("ngIf",g.uploadFiles.length<1),n.xp6(1),n.Q6J("ngIf",g.isInvalidFileCount()),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.reportPostForm.controls.description)),n.xp6(5),n.Q6J("disabled",g.reportPostForm.invalid||0===g.uploadFiles.length)}}function ea(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",5),2&F){const g=n.oxw();n.Q6J("message",g.completionMsg)}}function po(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",35)(1,"button",36),n._uU(2,"CLOSE"),n.qZA()())}let io=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.fileUploadService=ye,this.notifier=Dt,this.postReportService=Mn,this.reviewId=0,this.postId=0,this.uploadFiles=[],this.postCategory=this.postReportService.getReportCategories(),this.reportPostForm=new Z.cw({description:new Z.NI("",[Z.kI.required,Z.kI.minLength(20)]),category:new Z.NI("")}),this.completionMsg=null,this.selectedCategory=null}componentName(){return"PostReportComponent"}ngOnInit(){this.loading=!1}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}uploadImages(){this.loading=!0;let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.reviewId+"-verif-img"));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{let Mn=ye.data.map(vi=>vi.image_url);this.submitRequest(Mn)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}submitVerificationRequest(){this.notifier.log(this.reportPostForm),this.uploadImages()}submitRequest(g){if(null==this.reviewId)return;this.loading=!0;let L={post_id:this.postId,description:this.reportPostForm.controls.description.value,image:g.length>0?g[0]:"",category:this.reportPostForm.controls.category.value};const R=this.componentKey(S.Z.REVIEWS.POST_REVIEW_REPORT(this.reviewId));this.postReportService.reportReview(R,L),this.subscribe(R,null,(ye,Dt)=>{this.loading=!1,this.notifier.success("Success","Request Sent."),this.completionMsg="Your report has been successfully submitted. You'll be notified once your report is reviewed."}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{this.loading=!1;let Mn=Dt.data;this.completionMsg=Mn.error.message,this.notifier.warning("Failed!",Mn.error.message)})}isInvalidFileCount(){return 0===this.uploadFiles.length||this.uploadFiles.length>3}showInfo(){this.notifier.info("Info!","Upload related documents as a proof. For example invoice, payment slip etc.\n This will help us determine the authenticity of your affiliation with the item.",()=>{},1e4)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(oe.J),n.Y36(te.l),n.Y36(_s))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-report"]],inputs:{reviewId:"reviewId",postId:"postId"},features:[n.qOj],decls:10,vars:4,consts:[["mat-dialog-title",""],[2,"float","right",3,"click"],[3,"message",4,"ngIf"],["class","review-r-d-input-fields",4,"ngIf"],["align","end",4,"ngIf"],[3,"message"],[1,"review-r-d-input-fields"],[3,"formGroup"],["appearance","fill",1,"post-category"],["formControlName","category"],[3,"value",4,"ngFor","ngForOf"],[1,"upload-img-area","review-rdi","pt-4","bdr-b","pb-4"],[1,"field-title"],[1,"field-subtitle"],[1,"post-last-step-gallery","mt-2"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","text-warning mt-1",4,"ngIf"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","cons",1,"form-label","field-subtitle"],["name","comment","id","cons","rows","3","placeholder","Enter description here..","formControlName","description",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["mat-dialog-close","",1,"edit-boxed-inline-btn"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[3,"value"],["alt","",1,"m-1",3,"src","click"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],[1,"text-warning","mt-1"],[1,"text-warning"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"h5"),n._uU(2,"REPORT POST "),n.TgZ(3,"mat-icon",1),n.NdJ("click",function(){return R.showInfo()}),n._uU(4,"info"),n.qZA()()(),n.TgZ(5,"mat-dialog-content"),n.YNc(6,Io,1,1,"util-progress",2),n.YNc(7,Br,33,7,"div",3),n.YNc(8,ea,1,1,"app-notice-view",2),n.qZA(),n.YNc(9,po,3,0,"mat-dialog-actions",4)),2&L&&(n.xp6(6),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&null==R.completionMsg),n.xp6(1),n.Q6J("ngIf",!R.loading&&null!=R.completionMsg),n.xp6(1),n.Q6J("ngIf",null!=R.completionMsg))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.JJ,Z.JL,Z.sg,Z.u,bi.Hw,Ai.KE,Ai.hX,Ve.ey,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.t,Jo.gD,St],styles:[".field-title[_ngcontent-%COMP%]{color:#44d62c}.field-subtitle[_ngcontent-%COMP%]{color:#f5f5f5;font-size:.8em}.dialog-subtitle[_ngcontent-%COMP%]{font-size:.8em;color:#01b9b9}.post-category[_ngcontent-%COMP%]{width:100%} .mat-form-field-appearance-fill .mat-form-field-flex{background-color:#444}"]})}return F})();function qo(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function Ss(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)}function ya(F,Xe){1&F&&(n.TgZ(0,"mat-icon",19),n._uU(1,"check_circle "),n.qZA())}function sr(F,Xe){if(1&F&&(n.TgZ(0,"div",20)(1,"a",21),n._UZ(2,"img",22),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.report?null:g.report.image,n.LSH),n.xp6(1),n.s9C("src",null==g.report?null:g.report.image,n.LSH)}}function Oa(F,Xe){if(1&F&&(n.TgZ(0,"section",23)(1,"div",8)(2,"div",24)(3,"div",25)(4,"h6",26),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.TgZ(7,"p")(8,"span",27),n._uU(9),n.qZA(),n._uU(10),n.qZA(),n.TgZ(11,"h6",26),n._uU(12),n.qZA()()()()()),2&F){const g=Xe.$implicit;n.xp6(5),n.hij("On ",n.xi3(6,4,g.updated_at,!0),""),n.xp6(4),n.Oqu(g.action_taken_by_name),n.xp6(1),n.hij(" has taken action ",null==g?null:g.status,""),n.xp6(2),n.hij(" ",null==g?null:g.comment," ")}}function Ua(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"section",7)(2,"div",8)(3,"div",9)(4,"div",10),n.YNc(5,ya,2,0,"mat-icon",11),n.TgZ(6,"div",12)(7,"h4"),n._uU(8,"\xa0Report Details"),n.qZA(),n.TgZ(9,"small",13),n._uU(10),n.qZA()()()(),n.TgZ(11,"div",14)(12,"p"),n._uU(13),n.qZA(),n.TgZ(14,"div",15),n.YNc(15,sr,3,2,"div",16),n.qZA()()()(),n.TgZ(16,"section",17)(17,"h5"),n._uU(18,"Change Logs"),n.qZA()(),n.YNc(19,Oa,13,7,"section",18),n.qZA()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",g.hasReport()),n.xp6(5),n.hij("Status: ",null==g.report?null:g.report.status,""),n.xp6(3),n.Oqu(null==g.report?null:g.report.description),n.xp6(2),n.Q6J("ngIf",null!=(null==g.report?null:g.report.image)),n.xp6(4),n.Q6J("ngForOf",null==g.report?null:g.report.actions)}}let Ia=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.reviewService=ye,this.postReportService=Dt,this.auth=Mn,this.notifier=vi,this.reviewId=null,this.postId=null,this.report=null}componentName(){return"ReportDetailsComponent"}ngOnInit(){this.fetchReportDetails()}fetchReportDetails(){if(null==this.postId)return;this.loading=!0;let g=this.componentKey(S.Z.REVIEWS.GET_REPORT_DETAILS_FOR_REVIEW(this.reviewId));this.postReportService.getReportsForPost(g,this.postId),this.subscribe(g,null,(L,R)=>{let ye=R.data;ye.empty||(this.report=ye.content[0]),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}hasReport(){return null!=this.report}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(_s),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-report-details"]],inputs:{reviewId:"reviewId",postId:"postId"},features:[n.qOj],decls:5,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[4,"ngIf"],[3,"bar"],[3,"padding"],[1,"blog-post-area","bdr-b"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","mb-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["class","verified-icon profile-img-rounded","aria-hidden","false","aria-label","View Product",4,"ngIf"],[1,"content"],[1,"verification-status"],[1,"blog-post-content","pb-3"],[1,"product-gallery","mt-2"],["class","single-product-item",4,"ngIf"],[1,"container","bdr-b","my-2","pb-1"],["class","blog-post-area blog-post-area-comment mt-2 bdr-b",4,"ngFor","ngForOf"],["aria-hidden","false","aria-label","View Product",1,"verified-icon","profile-img-rounded"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],[1,"blog-post-area","blog-post-area-comment","mt-2","bdr-b"],[1,"blog-post-content"],[1,"comments-comment-item-content"],[2,"color","gray"],[1,"action-taken-by-name"]],template:function(L,R){1&L&&(n.YNc(0,qo,1,1,"util-progress",0),n.YNc(1,Ss,1,1,"util-progress",1),n.TgZ(2,"div",2),n._UZ(3,"i",3),n.qZA(),n.YNc(4,Ua,20,5,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(3),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,bi.Hw,Re.ZT,Ge.t,Yr.G],styles:[".action-taken-by-name[_ngcontent-%COMP%], .verified-icon[_ngcontent-%COMP%]{color:#44d62c}a[_ngcontent-%COMP%]{color:#44d62c;font-size:1em}.verification-status[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})();function ta(F,Xe){if(1&F&&(n.TgZ(0,"div",1)(1,"small",5),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",3),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(2),n.Oqu(null==g?null:g.attr_name),n.xp6(2),n.Oqu(null==g||null==g.value?null:g.value.toFixed(1))}}const na=function(F){return{"justify-content-around":F}};let Ae=(()=>{class F{constructor(){this.avgRating=0,this.ratings=[]}ngOnInit(){}getAvgRating(){return this.avgRating?.toFixed(1)}getRatings(){return null==this.ratings?[]:this.ratings}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-rating-view"]],inputs:{avgRating:"avgRating",ratings:"ratings"},decls:8,vars:5,consts:[[1,"all-avarage-rating","d-flex","py-3","scrollable",3,"ngClass"],[1,"single-rating-star"],[1,"avg"],[1,"icon-star"],["class","single-rating-star",4,"ngFor","ngForOf"],[1,"attr-name"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"div",1)(2,"small",2),n._uU(3,"Avg Rating"),n.qZA(),n.TgZ(4,"p",2),n._uU(5),n._UZ(6,"i",3),n.qZA()(),n.YNc(7,ta,6,2,"div",4),n.qZA()),2&L&&(n.Q6J("ngClass",n.VKq(3,na,R.getRatings().length<4)),n.xp6(5),n.Oqu(R.getAvgRating()),n.xp6(2),n.Q6J("ngForOf",R.getRatings()))},dependencies:[e.mk,e.sg],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.single-rating-star[_ngcontent-%COMP%]{margin-right:10px;padding-right:10px}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.5em!important}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff;font-size:10px!important;align-content:center}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}"]})}return F})();const Fe=function(F){return{"hide-reaction-box":F}};let le=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt){super(g,L,R),this.postService=ye,this.notifier=Dt,this.postId=null,this.onReacted=new n.vpe,this.reactionPostId=0}componentName(){return"ReactionComponent"}ngOnInit(){this.reactionPostId=0}onReactionItemClick(g){if(null==this.postId)return;let L=Ot[g],R=this.componentKey(S.Z.POSTS.SUBMIT_REACTION(this.postId));this.postService.react(R,this.postId,L);let ye=this.subscribe(R,null,(Dt,Mn)=>{this.onReacted.emit(L),ye?.unsubscribe(),this.reactionPostId=null==this.postId?0:this.postId,setTimeout(()=>{this.reactionPostId=0},5e3)});this.notifier.log("Reaction submitted: "+L)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-reaction"]],inputs:{postId:"postId"},outputs:{onReacted:"onReacted"},features:[n.qOj],decls:27,vars:6,consts:[[1,"box"],["type","checkbox",1,"field-reactions",3,"id"],[1,"text-desc"],[1,"btn-react",3,"for"],[1,"icon-smile"],[3,"ngClass"],[1,"toolbox"],[1,"overlay",3,"for"],[1,"reaction-like",3,"click"],[1,"legend-reaction"],[1,"reaction-love",3,"click"],[1,"reaction-haha",3,"click"],[1,"reaction-wow",3,"click"],[1,"reaction-sad",3,"click"],[1,"reaction-angry",3,"click"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0),n._UZ(1,"input",1),n.TgZ(2,"h3",2),n._uU(3,"Press space and after tab key to navigation"),n.qZA(),n.TgZ(4,"label",3),n._UZ(5,"i",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6)(8,"label",7),n.TgZ(9,"button",8),n.NdJ("click",function(){return R.onReactionItemClick("LIKE")}),n.TgZ(10,"span",9),n._uU(11,"Like"),n.qZA()(),n.TgZ(12,"button",10),n.NdJ("click",function(){return R.onReactionItemClick("LOVE")}),n.TgZ(13,"span",9),n._uU(14,"Love"),n.qZA()(),n.TgZ(15,"button",11),n.NdJ("click",function(){return R.onReactionItemClick("HAHA")}),n.TgZ(16,"span",9),n._uU(17,"Haha"),n.qZA()(),n.TgZ(18,"button",12),n.NdJ("click",function(){return R.onReactionItemClick("WOW")}),n.TgZ(19,"span",9),n._uU(20,"Wow"),n.qZA()(),n.TgZ(21,"button",13),n.NdJ("click",function(){return R.onReactionItemClick("SAD")}),n.TgZ(22,"span",9),n._uU(23,"Sad"),n.qZA()(),n.TgZ(24,"button",14),n.NdJ("click",function(){return R.onReactionItemClick("ANGRY")}),n.TgZ(25,"span",9),n._uU(26,"Angry"),n.qZA()()()()),2&L&&(n.xp6(1),n.MGl("id","like",R.postId,""),n.xp6(3),n.MGl("for","like",R.postId,""),n.xp6(2),n.Q6J("ngClass",n.VKq(4,Fe,R.reactionPostId===R.postId)),n.xp6(2),n.MGl("for","like",R.postId,""))},dependencies:[e.mk],styles:[".btn-react[_ngcontent-%COMP%]{font-size:20px;text-transform:uppercase;font-weight:600;letter-spacing:.05em;color:#fff;cursor:pointer;transition:.3s}.btn-react[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{opacity:.5}*[_ngcontent-%COMP%]{padding:0;margin:0}body[_ngcontent-%COMP%]{background:#e9eaed;font-family:arial,sans-serif}.field-reactions[_ngcontent-%COMP%]:checked:focus ~ .text-desc[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%], [class*=reaction-][_ngcontent-%COMP%], .text-desc[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);overflow:hidden;position:absolute;top:0;left:0}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%], .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:focus ~ .text-desc[_ngcontent-%COMP%]{clip:auto;overflow:visible;opacity:1}.main-title[_ngcontent-%COMP%]{background:#3a5795;padding:10px;color:#fff;text-align:center;font-size:16px;text-shadow:1px 1px 3px rgba(0,0,0,.3)}.text-desc[_ngcontent-%COMP%]{font-weight:400;text-align:center;transform:translateY(-50px);white-space:nowrap;font-size:13px;width:100%}[class*=reaction-][_ngcontent-%COMP%]{border:none;background-image:url(http://deividmarques.github.io/facebook-reactions-css/assets/images/facebook-reactions.png);background-color:transparent;display:block;cursor:pointer;height:48px;position:absolute;width:48px;z-index:11;top:-21px;transform-origin:50% 100%;transform:scale(.1);transition:all .3s;outline:none;will-change:transform;opacity:0}.box[_ngcontent-%COMP%]{position:relative}.overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:9;visibility:hidden}.field-reactions[_ngcontent-%COMP%]:focus ~ .label-reactions[_ngcontent-%COMP%]{border-color:#5890ff4d}.field-reactions[_ngcontent-%COMP%]:checked:focus ~ .label-reactions[_ngcontent-%COMP%]{border-color:transparent}.label-reactions[_ngcontent-%COMP%]{background:url(https://cdn4.iconfinder.com/data/icons/facebook-likes/100/1.png) no-repeat 0 0;border:2px dotted transparent;display:block;height:100px;margin:0 auto;width:100px;color:transparent;cursor:pointer}.toolbox[_ngcontent-%COMP%]{background:#fff;height:52px;box-shadow:0 0 0 1px #00000014,0 2px 2px #00000026;width:300px;border-radius:40px;top:-50px;left:0;position:absolute;visibility:hidden;opacity:0;transition:opacity .15s}.legend-reaction[_ngcontent-%COMP%]{background:rgba(0,0,0,.75);border-radius:10px;box-sizing:border-box;color:#fff;display:inline-block;font-size:11px;text-overflow:ellipsis;font-weight:700;line-height:20px;max-width:100%;opacity:0;overflow:hidden;padding:0 6px;transition:opacity 50ms ease;left:50%;position:absolute;text-align:center;top:-28px;transform:translate(-50%)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]{transform:scale(.8) translateY(-40px)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:hover, .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:focus{transition:all .2s ease-in;transform:scale(1) translateY(-35px)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:hover .legend-reaction[_ngcontent-%COMP%], .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:focus .legend-reaction[_ngcontent-%COMP%]{opacity:1}.box[_ngcontent-%COMP%]:hover .toolbox[_ngcontent-%COMP%]{opacity:1}.box[_ngcontent-%COMP%]:hover .toolbox[_ngcontent-%COMP%]{visibility:visible}.box[_ngcontent-%COMP%]:hover .reaction-love[_ngcontent-%COMP%]{transition-delay:.06s}.box[_ngcontent-%COMP%]:hover .reaction-haha[_ngcontent-%COMP%]{transition-delay:.09s}.box[_ngcontent-%COMP%]:hover .reaction-wow[_ngcontent-%COMP%]{transition-delay:.12s}.box[_ngcontent-%COMP%]:hover .reaction-sad[_ngcontent-%COMP%]{transition-delay:.15s}.box[_ngcontent-%COMP%]:hover .reaction-angry[_ngcontent-%COMP%]{transition-delay:.18s}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]{transform:scale(.8) translateY(-40px)}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:hover, .field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:focus{transition:all .2s ease-in;transform:scale(1) translateY(-35px)}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:hover .legend-reaction[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:focus .legend-reaction[_ngcontent-%COMP%]{opacity:1}.field-reactions[_ngcontent-%COMP%]:checked ~ .toolbox[_ngcontent-%COMP%]{opacity:1}.field-reactions[_ngcontent-%COMP%]:checked ~ .toolbox[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:checked ~ .overlay[_ngcontent-%COMP%]{visibility:visible}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-love[_ngcontent-%COMP%]{transition-delay:.03s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-haha[_ngcontent-%COMP%]{transition-delay:.09s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-wow[_ngcontent-%COMP%]{transition-delay:.12s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-sad[_ngcontent-%COMP%]{transition-delay:.15s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-angry[_ngcontent-%COMP%]{transition-delay:.18s}.reaction-like[_ngcontent-%COMP%]{left:0;background-position:0 -144px}.reaction-love[_ngcontent-%COMP%]{background-position:-48px 0;left:50px}.reaction-haha[_ngcontent-%COMP%]{background-position:-96px 0;left:100px}.reaction-wow[_ngcontent-%COMP%]{background-position:-144px 0;left:150px}.reaction-sad[_ngcontent-%COMP%]{background-position:-192px 0;left:200px}.reaction-angry[_ngcontent-%COMP%]{background-position:-240px 0;left:250px}.hide-reaction-box[_ngcontent-%COMP%]{display:none}"]})}return F})();function Qe(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",30),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onBlockChainMarkClick())}),n.qZA()}}function Ht(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-icon",31),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onVerifiedMarkClick())}),n._uU(1,"check_circle "),n.qZA()}}function Qn(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-icon",32),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDialog())}),n._uU(1,"check_circle "),n.qZA()}}function Ni(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDialog())}),n.TgZ(1,"a"),n._uU(2,"VERIFY"),n.qZA()()}}function Zo(F,Xe){1&F&&(n.TgZ(0,"small",34),n._uU(1,"RECONSIDER?"),n.qZA())}function Cl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDetails())}),n.TgZ(1,"a"),n._uU(2),n.YNc(3,Zo,2,0,"small",33),n.qZA()()}if(2&F){const g=n.oxw();n.xp6(2),n.hij(" VERIFICATION STATUS: ",null==g.review?null:g.review.verification_status," "),n.xp6(1),n.Q6J("ngIf",null==g.review?null:g.review.verification_reconsiderable)}}function ia(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onEditReviewClick())}),n.TgZ(1,"a"),n._uU(2,"EDIT REVIEW"),n.qZA()()}}function sc(F,Xe){if(1&F&&(n.TgZ(0,"div",38)(1,"a",39),n._UZ(2,"img",40),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function Lr(F,Xe){1&F&&(n.TgZ(0,"div",38)(1,"a",41),n._uU(2,"View All"),n.qZA()())}function Tl(F,Xe){if(1&F&&(n.TgZ(0,"div",35),n.YNc(1,sc,3,2,"div",36),n.YNc(2,Lr,3,0,"div",37),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.takeReviewThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.review.thumbs.length>3)}}const Dl=function(F){return{"background-tint":F}},Qo=function(F){return[F]},kc=function(F){return{"product-menu-bar":F}};let El=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R),this.reviewService=ye,this.dialog=Dt,this.auth=Mn,this.notifier=vi,this.reportService=Fo,this.review=null,this.tinted=!1,this.showMenuBox=!1}componentName(){return"SingleReviewItemComponent"}ngOnInit(){}onReacted(g){this.reloadReview()}reloadReview(){if(null==this.review||null==this.review.id)return;let g=this.componentKey(S.Z.REVIEWS.LOAD_REVIEW(this.review.slug));this.reviewService.fetchReview(g,this.review?.product_slug,this.review?.slug),this.subscribe(g,null,(L,R)=>{this.review=R.data})}takeReviewThumbs(g){return null==this.review||g<1?[]:this.review.thumbs.length{console.log(`Dialog result: ${ye}`)})}onItemClick(g){this.showMenuBox=!this.showMenuBox}openReviewDetails(){this.showMenuBox?this.showMenuBox=!1:this.navigate("/reviews/"+this.review?.product_slug+"/"+this.review?.slug+"/"+this.review?.post?.id,g=>{})}onEditReviewClick(){null!=this.review&&("VERIFIED"===this.review.verification_status?this.showVerifiedReviewEditWarning():this.openEditReviewDialog())}showVerifiedReviewEditWarning(){const g=this.dialog.open(St);let L=g.componentInstance;L.title="YOU'RE EDITING A VERIFIED REVIEW!!",L.message="\n If you update a verified review, it'll cause this review to be unverified automatically.\n In this case you'll need to apply for verification again.\n ",L.positiveBtnText="EDIT",L.negativeBtnTxt="CANCEL",L.onPositiveBtn.subscribe(()=>{this.openEditReviewDialog(),g.close()}),L.onNegativeBtn.subscribe(()=>{g.close()}),g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}openEditReviewDialog(){if(null==this.review)return;const g=this.dialog.open(rt);let L=g.componentInstance;L.review=this.review,L.productId=this.review.product_id,g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}isMine(){if(!this.auth.isAuthenticated())return!1;const g=this.auth.getAuth();return this.review?.post?.posted_by_username===g.username}canRequestVerification(){return this.isMine()&&null==this.review?.verification_status}hasVerification(){return this.isMine()&&null!=this.review?.verification_status}isVerified(){return"VERIFIED"===this.review?.verification_status}openVerificationDialog(){if(null==this.review)return;if(null!=this.review.verification_status)return void this.openVerificationDetails();const g=this.dialog.open(Ti);g.componentInstance.reviewId=this.review.id,g.afterClosed().subscribe(R=>{this.reloadReview()})}resolveReportView(){if(null==this.review?.post)return;let g=this.componentKey(S.Z.REVIEWS.GET_REPORT_EXISTS(this.review?.post.id));this.reportService.getReportCountForPost(g,this.review.post.id),this.subscribe(g,null,(L,R)=>{R.data>0?this.openReportDetails():this.openReportDialog(),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}openReportDialog(){if(null==this.review?.post)return;const g=this.dialog.open(io),L=g.componentInstance;L.reviewId=this.review.id,L.postId=this.review.post?.id,g.afterClosed().subscribe(R=>{this.reloadReview()})}onVerifiedMarkClick(){this.notifier.success("Verified Review","This review has been verified by "+this.review?.verified_by)}openVerificationDetails(){if(null==this.review)return;const g=this.dialog.open(jr);g.componentInstance.reviewId=this.review.id,g.afterClosed().subscribe(R=>{})}openReportDetails(){if(null==this.review?.post)return;const g=this.dialog.open(Ia),L=g.componentInstance;L.reviewId=this.review.id,L.postId=this.review.post.id,g.afterClosed().subscribe(R=>{})}isBlockChained(){return null!=this.review&&this.review.chained}onBlockChainMarkClick(){if(null==this.review)return;let g=this.review.hash;this.notifier.info("Info","Blockchain Digest: "+g,()=>{xo.g.copyToClipboard(g)},5e3)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(Re.uw),n.Y36(_e.e),n.Y36(te.l),n.Y36(_s))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-single-review-item"]],inputs:{review:"review",tinted:"tinted"},features:[n.qOj],decls:55,vars:36,consts:[[1,"blog-post-area","mt-4",3,"ngClass"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","my-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"profile-img","profile-img-rounded",3,"src","routerLink"],[1,"content","ms-2"],[3,"routerLink"],[1,"user-name"],[1,"top-icons-area","pt-2"],["style","height: 16px; width: auto; margin-right: 10px;","src","assets/icons/blockchain.svg",3,"click",4,"ngIf"],["class","verified-icon","aria-hidden","false","aria-label","View Product",3,"click",4,"ngIf"],["class","unverified-icon","aria-hidden","false","aria-label","View Product",3,"click",4,"ngIf"],["aria-hidden","false","aria-label","View Product",1,"inventory-icon",3,"routerLink"],[3,"ngClass","click"],[1,"icon-dot-3"],[1,"productMenuBox"],[3,"click",4,"ngIf"],[3,"click"],[3,"avgRating","ratings"],[1,"blog-post-content","py-2",3,"click"],[2,"color","green"],[2,"color","darkgoldenrod"],["class","product-gallery",4,"ngIf"],[1,"blog-post-comment-section","d-flex","justify-content-around","bdr-b","py-3","mt-2"],[1,"react","d-flex","align-items-center"],[3,"postId","onReacted"],[1,"comment","d-flex","align-items-center",3,"click"],[1,"icon-chat"],[1,"share","d-flex","align-items-center"],[1,"icon-paper-plane"],["src","assets/icons/blockchain.svg",2,"height","16px","width","auto","margin-right","10px",3,"click"],["aria-hidden","false","aria-label","View Product",1,"verified-icon",3,"click"],["aria-hidden","false","aria-label","View Product",1,"unverified-icon",3,"click"],["style","color: #4AD295;",4,"ngIf"],[2,"color","#4AD295"],[1,"product-gallery"],["class","single-product-item",4,"ngFor","ngForOf"],["class","single-product-item",4,"ngIf"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],["href","#"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),n._UZ(4,"img",4),n.TgZ(5,"div",5)(6,"a",6)(7,"h4",7),n._uU(8),n.qZA()(),n.TgZ(9,"p"),n._uU(10),n.ALo(11,"readableDate"),n.qZA()()(),n.TgZ(12,"div",8),n.YNc(13,Qe,1,0,"img",9),n.YNc(14,Ht,2,0,"mat-icon",10),n.YNc(15,Qn,2,0,"mat-icon",11),n.TgZ(16,"mat-icon",12),n._uU(17,"inventory_2 "),n.qZA(),n.TgZ(18,"div",13),n.NdJ("click",function(Dt){return R.onItemClick(Dt)}),n._UZ(19,"i",14),n.TgZ(20,"div",15)(21,"ul"),n.YNc(22,Ni,3,0,"li",16),n.YNc(23,Cl,4,2,"li",16),n.YNc(24,ia,3,0,"li",16),n.TgZ(25,"li",17),n.NdJ("click",function(){return R.resolveReportView()}),n.TgZ(26,"a"),n._uU(27,"REPORT"),n.qZA()()()()()()(),n._UZ(28,"app-rating-view",18),n.TgZ(29,"div",19),n.NdJ("click",function(){return R.openReviewDetails()}),n.TgZ(30,"h5"),n._uU(31),n.qZA(),n.TgZ(32,"p",20),n._uU(33,"Pros"),n.qZA(),n.TgZ(34,"p"),n._uU(35),n.qZA(),n._UZ(36,"br"),n.TgZ(37,"p",21),n._uU(38,"Cons"),n.qZA(),n.TgZ(39,"p"),n._uU(40),n.qZA()(),n.YNc(41,Tl,3,2,"div",22),n.qZA(),n.TgZ(42,"div",23)(43,"div",24)(44,"app-reaction",25),n.NdJ("onReacted",function(Dt){return R.onReacted(Dt)}),n.qZA(),n.TgZ(45,"h4",17),n.NdJ("click",function(Dt){return R.onReactionCountClick(Dt)}),n._uU(46),n.qZA()(),n.TgZ(47,"div",26),n.NdJ("click",function(){return R.openReviewDetails()}),n._UZ(48,"i",27),n.TgZ(49,"h4"),n._uU(50),n.qZA(),n._UZ(51,"h4"),n.qZA(),n.TgZ(52,"div",28),n._UZ(53,"i",29)(54,"h4"),n.qZA()()()),2&L&&(n.Q6J("ngClass",n.VKq(26,Dl,R.tinted)),n.xp6(4),n.s9C("src",null!=(null==R.review||null==R.review.post?null:R.review.post.posted_by_photo)?null==R.review||null==R.review.post?null:R.review.post.posted_by_photo:"assets/img/default-avatar.png",n.LSH),n.Q6J("routerLink",n.VKq(28,Qo,"/u/"+(null==R.review||null==R.review.post?null:R.review.post.posted_by_username))),n.xp6(2),n.Q6J("routerLink",n.VKq(30,Qo,"/u/"+(null==R.review||null==R.review.post?null:R.review.post.posted_by_username))),n.xp6(2),n.Oqu(null==R.review?null:R.review.posted_by_name),n.xp6(2),n.Oqu(n.xi3(11,23,null==R.review?null:R.review.updated_at,!0)),n.xp6(3),n.Q6J("ngIf",R.isBlockChained()),n.xp6(1),n.Q6J("ngIf",R.isVerified()),n.xp6(1),n.Q6J("ngIf",R.isMine()&&!R.isVerified()),n.xp6(1),n.Q6J("routerLink",n.VKq(32,Qo,"/products/"+(null==R.review?null:R.review.product_id)+"/"+(null==R.review?null:R.review.product_slug))),n.xp6(2),n.Q6J("ngClass",n.VKq(34,kc,R.showMenuBox)),n.xp6(4),n.Q6J("ngIf",R.canRequestVerification()),n.xp6(1),n.Q6J("ngIf",R.hasVerification()),n.xp6(1),n.Q6J("ngIf",R.isMine()),n.xp6(4),n.Q6J("avgRating",null==R.review?null:R.review.average_rating)("ratings",null==R.review?null:R.review.ratings),n.xp6(3),n.Oqu(null==R.review?null:R.review.title),n.xp6(4),n.Oqu(null==R.review?null:R.review.pros),n.xp6(5),n.Oqu(null==R.review?null:R.review.cons),n.xp6(1),n.Q6J("ngIf",null!=R.review&&R.review.thumbs.length>0),n.xp6(3),n.Q6J("postId",null==R.review||null==R.review.post?null:R.review.post.id),n.xp6(2),n.hij("(",null==R.review||null==R.review.post||null==R.review.post.reaction_stats?null:R.review.post.reaction_stats.total,")"),n.xp6(4),n.hij("(",null==R.review||null==R.review.post||null==R.review.post.reaction_stats?null:R.review.post.reaction_stats.comments,")"))},dependencies:[e.mk,e.sg,e.O5,l.rH,bi.Hw,Ae,le,Yr.G],styles:['.blog-post-area[_ngcontent-%COMP%] .blog-post-top-left[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.7rem}.user-name[_ngcontent-%COMP%]{color:#44d62c!important}.top-icons-area[_ngcontent-%COMP%]{display:flex}.inventory-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0}.verified-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0;color:#44d62c}.unverified-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0;color:gray}.flaticon-more[_ngcontent-%COMP%]{font-size:1.3em}.view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none;position:relative;cursor:pointer}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:10px;padding:0 10px;list-style:none;width:250px;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return F})();function wa(F,Xe){1&F&&n._UZ(0,"util-progress",7),2&F&&n.Q6J("bar",!0)}function Xo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",8)(1,"div",4)(2,"div",9)(3,"div",10)(4,"label",11)(5,"small"),n._uU(6,"From"),n.qZA()(),n._UZ(7,"input",12),n.qZA(),n.TgZ(8,"div",10)(9,"label",13)(10,"small"),n._uU(11,"To"),n.qZA()(),n.TgZ(12,"input",14),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.qZA()()(),n.TgZ(13,"div",15)(14,"div",16)(15,"div",17)(16,"label",18)(17,"small"),n._uU(18,"Verification"),n.qZA()(),n.TgZ(19,"select",19),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(20,"option",20),n._uU(21,"Choose"),n.qZA(),n.TgZ(22,"option",21),n._uU(23,"All Reviews"),n.qZA(),n.TgZ(24,"option",22),n._uU(25,"Only Verified"),n.qZA()()()(),n.TgZ(26,"div",16)(27,"div",17)(28,"label",23)(29,"small"),n._uU(30,"Rating"),n.qZA()(),n.TgZ(31,"select",24),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(32,"option",20),n._uU(33,"Choose"),n.qZA(),n.TgZ(34,"option",25),n._uU(35,"1"),n.qZA(),n.TgZ(36,"option",26),n._uU(37,"2"),n.qZA(),n.TgZ(38,"option",27),n._uU(39,"3"),n.qZA(),n.TgZ(40,"option",28),n._uU(41,"4"),n.qZA(),n.TgZ(42,"option",29),n._uU(43,"5"),n.qZA(),n.TgZ(44,"option",30),n._uU(45,"6"),n.qZA(),n.TgZ(46,"option",31),n._uU(47,"7"),n.qZA(),n.TgZ(48,"option",32),n._uU(49,"8"),n.qZA(),n.TgZ(50,"option",33),n._uU(51,"9"),n.qZA(),n.TgZ(52,"option",34),n._uU(53,"10"),n.qZA()()()(),n.TgZ(54,"div",16)(55,"div",17)(56,"label",35)(57,"small"),n._uU(58,"Sort"),n.qZA()(),n.TgZ(59,"select",36),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(60,"option",20),n._uU(61,"Choose"),n.qZA(),n.TgZ(62,"option",37),n._uU(63,"Ascending"),n.qZA(),n.TgZ(64,"option",38),n._uU(65,"Descending"),n.qZA()()()()()()()}if(2&F){const g=n.oxw();n.xp6(7),n.Q6J("formControl",g.fromDateFilter),n.xp6(5),n.Q6J("formControl",g.toDateFilter),n.xp6(7),n.Q6J("formControl",g.verificationFilter),n.xp6(1),n.Q6J("selected",""===g.verificationFilter.value),n.xp6(11),n.Q6J("formControl",g.ratingFilter),n.xp6(1),n.Q6J("selected",""===g.ratingFilter.value),n.xp6(27),n.Q6J("formControl",g.sortFilter),n.xp6(1),n.Q6J("selected",""===g.sortFilter.value)}}function Pr(F,Xe){1&F&&n._UZ(0,"util-progress",39),2&F&&n.Q6J("padding",50)}function Ms(F,Xe){if(1&F&&(n.TgZ(0,"div"),n._UZ(1,"app-single-review-item",41),n.qZA()),2&F){const g=Xe.$implicit;n.xp6(1),n.Q6J("review",g)}}function As(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Ms,2,1,"div",40),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.reviews?null:g.reviews.content)}}function qr(F,Xe){1&F&&(n.TgZ(0,"a",42),n._uU(1," View All Reviews "),n.qZA())}let Bs=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.eventBus=g,this.router=L,this.subContainer=R,this.reviewService=ye,this.productId=0,this.username=null,this.reviews=null,this.verificationFilter=new Z.NI(""),this.ratingFilter=new Z.NI(""),this.sortFilter=new Z.NI(""),this.fromDateFilter=new Z.NI(""),this.toDateFilter=new Z.NI("")}componentName(){return"ReviewListComponent"}ngOnInit(){this.fetchReviews({})}fetchReviews(g){null!=this.productId&&this.productId>0?this.fetchProductReviews(g):null!=this.username&&this.fetchUserReviews(g)}fetchProductReviews(g){this.loading=!0;let L=this.componentKey(S.Z.REVIEWS.LOADED_PRODUCT_REVIEWS(this.productId));this.reviewService.fetchProductReviews(L,this.productId,g),this.subscribe(L,null,(R,ye)=>{this.reviews=ye.data,this.loading=!1})}fetchUserReviews(g){if(null==this.username)return;this.loading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_USER_REVIEWS(this.username));this.reviewService.fetchUserReviews(L,this.username,g),this.subscribe(L,null,(R,ye)=>{this.reviews=ye.data,this.loading=!1})}onFilterChange(g){this.fetchReviews({verification_status:null==this.verificationFilter.value?"":this.verificationFilter.value,rating:null==this.ratingFilter.value?"":this.ratingFilter.value,sort_direction:null==this.sortFilter.value?"":this.sortFilter.value,from_date:""===this.fromDateFilter.value?"":new Date(this.fromDateFilter.value?this.fromDateFilter.value:""),to_date:""===this.toDateFilter.value?"":new Date(this.toDateFilter.value?this.toDateFilter.value:"")})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-review-list"]],inputs:{productId:"productId",username:"username"},features:[n.qOj],decls:7,vars:5,consts:[[3,"bar",4,"ngIf"],["class","select-category-area pt-4",4,"ngIf"],[3,"padding",4,"ngIf"],[4,"ngIf"],[1,"container"],[1,"view-all-reviews","pb-3","text-end"],["href","#",4,"ngIf"],[3,"bar"],[1,"select-category-area","pt-4"],[1,"date-filters","mb-2"],[1,"single-date-filter"],["for","from_date"],["id","from_date","type","date","name","from_date",3,"formControl"],["for","to_date"],["id","to_date","type","date","name","to_date",3,"formControl","change"],[1,"row"],[1,"col"],[1,"single-category-item"],["for","verification"],["id","verification","aria-label","Taste",1,"form-select",3,"formControl","change"],["value","",3,"selected"],["value",""],["value","VERIFIED"],["for","rating"],["id","rating","aria-label","1",1,"form-select",3,"formControl","change"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["value","8"],["value","9"],["value","10"],["for","sort"],["id","sort","aria-label","Select",1,"form-select",3,"formControl","change"],["value","ASC"],["value","DESC"],[3,"padding"],[4,"ngFor","ngForOf"],[3,"review"],["href","#"]],template:function(L,R){1&L&&(n.YNc(0,wa,1,1,"util-progress",0),n.YNc(1,Xo,66,8,"section",1),n.YNc(2,Pr,1,1,"util-progress",2),n.YNc(3,As,2,1,"div",3),n.TgZ(4,"div",4)(5,"div",5),n.YNc(6,qr,2,0,"a",6),n.qZA()()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(3),n.Q6J("ngIf",!(null!=R.reviews&&R.reviews.last)))},dependencies:[e.sg,e.O5,Z.YN,Z.Kr,Z.Fj,Z.EJ,Z.JJ,Z.oH,Ge.t,El],styles:["input[type=date][_ngcontent-%COMP%]{color:gray!important;background-color:#444;max-width:100%;padding:5px 10px;border-radius:.25em;border:.5px solid black;margin-top:5px}.single-date-filter[_ngcontent-%COMP%]{display:flex;flex-direction:column}.date-filters[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]})}return F})();var Ro=C(6929);function Va(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("padding",70)}function Sl(F,Xe){if(1&F&&(n.TgZ(0,"div",30)(1,"div",31)(2,"h2",32),n._uU(3),n.qZA(),n.TgZ(4,"h3"),n._uU(5),n.qZA(),n.TgZ(6,"span",32),n._uU(7),n.qZA()()()),2&F){const g=n.oxw();n.xp6(3),n.Oqu(g.product.name),n.xp6(2),n.Oqu(g.product.vendor_name),n.xp6(2),n.Oqu(g.product.description)}}function Gl(F,Xe){1&F&&n._UZ(0,"util-progress",33),2&F&&n.Q6J("size",30)("padding",70)}function Hs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",34)(1,"div",4)(2,"div",35),n._UZ(3,"img",36),n.TgZ(4,"div",37)(5,"h4"),n._uU(6),n.qZA(),n.TgZ(7,"p"),n._uU(8,"Your opinion matters. Let's help our community by posting a review."),n.qZA()()(),n.TgZ(9,"div",38)(10,"a",39),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openPostReviewDialog())}),n._UZ(11,"i",40),n.TgZ(12,"h4"),n._uU(13," Post a review"),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(3),n.s9C("src",g.isLoggedIn()?g.getAvatar():"assets/img/default-avatar.png",n.LSH),n.s9C("alt",g.getAuth().name),n.xp6(3),n.hij("Hey, ",g.getAuth().name,"")}}function ja(F,Xe){if(1&F&&n._UZ(0,"app-single-review-item",44),2&F){const g=n.oxw(2);n.Q6J("review",g.myReview)("tinted",!0)}}function es(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"h5",9),n._uU(2,"YOUR REVIEW"),n.qZA(),n.TgZ(3,"div",41),n._UZ(4,"div",42),n.YNc(5,ja,1,2,"app-single-review-item",43),n.qZA()()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",null!=g.myReview)}}function ts(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",45),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCriticReviewsMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showCriticReviewsMenu)("items",g.getMenuItems())}}function Wl(F,Xe){1&F&&n._UZ(0,"util-progress",46),2&F&&n.Q6J("bar",!0)}function gs(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}const ns=function(F){return{"background-image":F}};let vc=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){super(g,L,R),this.auth=Dt,this.reviewService=Mn,this.notifier=vi,this.productService=Fo,this.dialog=Ya,this.seoTitle=Rd,this.seoMeta=kd,this.carouselItems=[],this.productId=0,this.productSlug="",this.myReview=null,this.avgRatings=[],this.product=null,this.myReviewLoading=!1,this.criticReviews=null,this.criticReviewers=[],this.criticReviewsPeriod="THIS MONTH",this.criticReviewsLoading=!1,this.showCriticReviewsMenu=!1,this.badgeForCritic="Critic",this.productId=ye.snapshot.params.id,this.productSlug=ye.snapshot.params.slug}componentName(){return"ProductDetailsComponent"}ngOnInit(){this.registerSubscriptions(),this.fetchProductDetails()}fetchProductDetails(){let g=this.componentKey(S.Z.PRODUCTS.PRODUCT_DETAILS_LOADED(this.productSlug));this.productService.fetchDetails(g,this.productSlug),this.subscribe(g,null,(L,R)=>{this.product=R.data,this.resolveSeo(this.product),this.fetchAvgRating(this.productId),this.auth.isAuthenticated()&&this.fetchMyReview(this.productId);let ye=Nt.b.calculateRange(this.criticReviewsPeriod.replace(" ","_"));this.fetchCriticReviews({page:0,from_date:ye?.fromDate,to_date:ye?.toDate,slice:!0,badge:this.badgeForCritic})})}fetchMyReview(g){this.myReviewLoading=!0;let L=this.componentKey(S.Z.REVIEWS.LOAD_MY_REVIEW(g));this.reviewService.fetchMyReview(L,this.productId),this.subscribe(L,null,(R,ye)=>{this.myReview=ye.data,this.myReviewLoading=!1}),this.subscribe(this.getErrorKey(L),null,(R,ye)=>{this.myReviewLoading=!1})}fetchAvgRating(g){let L=this.componentKey(S.Z.REVIEWS.LOADED_PRODUCT_AVG_RATINGS());this.productService.fetchAvgRatings(L,g),this.subscribe(L,null,(R,ye)=>{this.avgRatings=ye.data})}getMenuItems(){return bt.$}fetchCriticReviews(g){this.criticReviewsLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_CRITIC_REVIEWS());this.reviewService.fetchProductReviews(L,this.productId,g),this.subscribe(L,null,(R,ye)=>{this.criticReviews=ye.data,this.criticReviewers=F.mapToCarouselItems(ye.data),this.criticReviewsLoading=!1})}static mapToCarouselItems(g){return g.content.map(L=>({id:L?.id,slug:L?.slug,title:L?.posted_by_name,img:null!=L?.posted_by_avatar?L?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+L.id+"/"+L.post_id,badges:[]}))}onCriticReviewsMenuItemClick(g){this.showCriticReviewsMenu&&(this.showCriticReviewsMenu=!1),this.criticReviewsPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic})}isLoggedIn(){return this.auth.isAuthenticated()}registerSubscriptions(){let g=this.globalKey(S.Z.REVIEWS.MY_REVIEW_POSTED(this.productId));this.subscribe(g,null,(L,R)=>{this.myReview=R.data,this.myReviewLoading=!1})}onUserItemClick(g){this.notifier.log(g)}strSubstring(g,L){let R=w.m.takeOnly(g,L);return null!=g&&g.length>L&&(R+="..See More.."),R}getAuth(){return this.auth.getAuth()}getAvatar(){return this.getAuth().avatar??"assets/img/default-avatar.png"}openPostReviewDialog(){if(!this.auth.isAuthenticated())return void this.router.navigate(["/login"]);const g=this.dialog.open(rt,{disableClose:!0});g.componentInstance.productId=this.productId,g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}resolveSeo(g){null!=g&&this.initSeoItems(this.seoTitle,this.seoMeta,"Review - Rating for "+g.name,g.description,["Buy "+g.name," review,"+g.name," rating, where to buy"],null,null,g?.cover_photo,this.getPermalink())}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(_e.e),n.Y36(se.F),n.Y36(te.l),n.Y36(Qt.M),n.Y36(Re.uw),n.Y36(nn.Dx),n.Y36(nn.h_))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-product-details"]],features:[n.qOj],decls:56,vars:19,consts:[[1,"product-single-post",3,"ngStyle"],[3,"padding",4,"ngIf"],["class","container d-flex align-items-end h-100 blurry-background",4,"ngIf"],["id","my_review",1,"rating-reviews-area","bdr-b","blog-post-area"],[1,"container"],[3,"ratings","avgRating"],[3,"size","padding",4,"ngIf"],["class","comunity-post-area pt-4 pb-3 mt-3 bdr-top",4,"ngIf"],[4,"ngIf"],[1,"section-header"],[1,"reviewers-section","pb-2","mt-2","bdr-b"],[1,"reviewers-content","section-title","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items"],[3,"bar",4,"ngIf"],[1,"bdr-top","mt-4"],[1,"container","section-header"],[3,"productId"],[1,"youtube-reviews-section","bdr-b","bdr-top","mb-5","pb-3"],[1,"section-title","d-flex","justify-content-between","my-4"],[3,"items","design"],[1,"owl-carousel","youtube-reviews"],[1,"item","single-review-area"],["src","../../../../../assets/img/youtube-reviews/youtube-review.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-2.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-3.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-4.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-5.png","alt",""],[3,"padding"],[1,"container","d-flex","align-items-end","h-100","blurry-background"],[1,"recipe-content","pb-4"],[1,"excerpt"],[3,"size","padding"],[1,"comunity-post-area","pt-4","pb-3","mt-3","bdr-top"],[1,"comunity-post","d-flex","mb-4"],[1,"profile-img-bg","profile-img-rounded",3,"src","alt"],[1,"content","ms-3"],[1,"comunity-add-post","d-flex","justify-content-end","align-items-center"],[1,"d-flex","align-items-center",3,"click"],[1,"flaticon-plus"],[1,"row","bdr-top","mb-3"],[1,"section-title","ms-2"],[3,"review","tinted",4,"ngIf"],[3,"review","tinted"],[3,"showMenubar","items","menuItemClick"],[3,"bar"]],template:function(L,R){1&L&&(n.TgZ(0,"div")(1,"section",0),n.YNc(2,Va,1,1,"util-progress",1),n.YNc(3,Sl,8,3,"div",2),n.qZA(),n.TgZ(4,"section",3)(5,"div",4),n._UZ(6,"app-rating-view",5),n.YNc(7,Gl,1,2,"util-progress",6),n.YNc(8,Hs,14,3,"section",7),n.qZA(),n.YNc(9,es,6,1,"div",8),n.qZA(),n.TgZ(10,"h5",9),n._uU(11,"CRITIC REVIEWS"),n.qZA(),n.TgZ(12,"section",10)(13,"div",4)(14,"div",11),n.NdJ("click",function(){return R.showCriticReviewsMenu=!R.showCriticReviewsMenu}),n.TgZ(15,"h6"),n._uU(16,"CHOOSE PERIOD"),n.qZA(),n.TgZ(17,"a")(18,"h5"),n._uU(19),n.qZA()(),n._UZ(20,"img",12),n.qZA(),n.YNc(21,ts,1,2,"app-menubox",13),n._UZ(22,"app-small-carousel",14),n.YNc(23,Wl,1,1,"util-progress",15),n.YNc(24,gs,3,0,"div",8),n.qZA()(),n.TgZ(25,"section",16)(26,"h5",17),n._uU(27,"USER REVIEWS"),n.qZA(),n._UZ(28,"app-review-list",18),n.qZA(),n.TgZ(29,"section",19)(30,"div",4)(31,"div",20)(32,"h5"),n._uU(33,"REVIEWS ON YOUTUBE"),n.qZA(),n.TgZ(34,"h5"),n._uU(35,"VIEW ALL"),n.qZA()(),n._UZ(36,"app-small-carousel",21),n.TgZ(37,"div",22)(38,"div",23),n._UZ(39,"img",24),n.qZA(),n.TgZ(40,"div",23),n._UZ(41,"img",25),n.qZA(),n.TgZ(42,"div",23),n._UZ(43,"img",26),n.qZA(),n.TgZ(44,"div",23),n._UZ(45,"img",27),n.qZA(),n.TgZ(46,"div",23),n._UZ(47,"img",28),n.qZA(),n.TgZ(48,"div",23),n._UZ(49,"img",25),n.qZA(),n.TgZ(50,"div",23),n._UZ(51,"img",26),n.qZA(),n.TgZ(52,"div",23),n._UZ(53,"img",27),n.qZA(),n.TgZ(54,"div",23),n._UZ(55,"img",28),n.qZA()()()()()),2&L&&(n.Q6J("@dataLoaded",null==R.product?"loading":"loaded"),n.xp6(1),n.Q6J("ngStyle",n.VKq(17,ns,"url("+(null==R.product?null:R.product.cover_photo)+")")),n.xp6(1),n.Q6J("ngIf",null==R.product),n.xp6(1),n.Q6J("ngIf",null!=R.product),n.xp6(3),n.Q6J("ratings",R.avgRatings)("avgRating",null==R.product?null:R.product.average_rating),n.xp6(1),n.Q6J("ngIf",R.myReviewLoading),n.xp6(1),n.Q6J("ngIf",!R.isLoggedIn()||null==R.myReview&&!R.myReviewLoading),n.xp6(1),n.Q6J("ngIf",R.isLoggedIn()&&0==R.myReviewLoading),n.xp6(10),n.Oqu(R.criticReviewsPeriod),n.xp6(2),n.Q6J("ngIf",!R.criticReviewsLoading),n.xp6(1),n.Q6J("items",R.criticReviewers),n.xp6(1),n.Q6J("ngIf",R.criticReviewsLoading),n.xp6(1),n.Q6J("ngIf",!R.criticReviewsLoading&&0===R.criticReviewers.length),n.xp6(4),n.Q6J("productId",R.productId),n.xp6(8),n.Q6J("items",R.carouselItems)("design","youtube-reviews"))},dependencies:[e.O5,e.PC,Ge.t,Dn.q,El,Ae,Bs,Ro.v],styles:[".blurry-background[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}.section-header[_ngcontent-%COMP%]{padding:1em;font-weight:700}"]})}return F})();var Os=function(F){return F.STATUS="STATUS",F.USER_REVIEW="USER_REVIEW",F}(Os||{}),Is=function(F){return F.STATUS="STATUS",F.USER_REVIEW="USER_REVIEW",F.REACTION="REACTION",F}(Is||{});function Za(F,Xe){1&F&&(n.TgZ(0,"span"),n._uU(1,"public"),n.qZA())}function za(F,Xe){1&F&&(n.TgZ(0,"span"),n._uU(1,"followers"),n.qZA())}function $l(F,Xe){1&F&&(n.TgZ(0,"div",29),n._UZ(1,"util-progress",30),n.qZA()),2&F&&(n.xp6(1),n.Q6J("bar",!0)("determinate",!1))}function Tr(F,Xe){if(1&F&&n._UZ(0,"textarea",31),2&F){const g=n.oxw(2);n.Q6J("formControl",g.content)}}function Lc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",32),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeExImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit,n.LSH)}function Kl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",32),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Rs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"h2"),n._uU(3,"Create a Post"),n.qZA(),n.TgZ(4,"a",4),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onCancel.emit(!0))}),n._UZ(5,"i",5),n.qZA()(),n.TgZ(6,"div",6)(7,"a",7),n._UZ(8,"img",8),n.qZA(),n.TgZ(9,"div",9)(10,"span",10),n._uU(11),n.qZA(),n.TgZ(12,"div",11),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.pr.is_public=!R.pr.is_public)}),n.TgZ(13,"a"),n._UZ(14,"i",12),n.YNc(15,Za,2,0,"span",13),n.YNc(16,za,2,0,"span",13),n._UZ(17,"i",14),n.qZA()()()(),n.TgZ(18,"div",15)(19,"form",16),n.YNc(20,$l,2,2,"div",17),n.YNc(21,Tr,1,1,"textarea",18),n.TgZ(22,"section",19)(23,"div",20)(24,"div",21)(25,"div"),n.YNc(26,Lc,1,1,"img",22),n.YNc(27,Kl,1,1,"img",22),n.qZA(),n.TgZ(28,"input",23),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onImageSelected(R))}),n.qZA()()()(),n.TgZ(29,"div",24)(30,"div",25)(31,"label",26),n._UZ(32,"i",27),n.qZA()(),n.TgZ(33,"button",28),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submit())}),n._uU(34,"post"),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(8),n.s9C("src",g.getAuth().avatar,n.LSH),n.xp6(3),n.Oqu(g.getAuth().name),n.xp6(4),n.Q6J("ngIf",g.pr.is_public),n.xp6(1),n.Q6J("ngIf",!g.pr.is_public),n.xp6(4),n.Q6J("ngIf",g.loading),n.xp6(1),n.Q6J("ngIf",!g.loading),n.xp6(5),n.Q6J("ngForOf",null==g.pr?null:g.pr.thumbs),n.xp6(1),n.Q6J("ngForOf",g.uploadFiles)}}function xa(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",33)(1,"div",20)(2,"div",34)(3,"input",35),n.NdJ("keyup.enter",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitPost())}),n.qZA(),n.TgZ(4,"a",36),n._UZ(5,"i",37),n.qZA(),n.TgZ(6,"a",38),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitPost())}),n._UZ(7,"i",39),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(3),n.Q6J("formControl",g.content)}}let Ga=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.notifier=ye,this.postService=Dt,this.auth=Mn,this.fileUploadService=vi,this.commentBox=!1,this.onPosted=new n.vpe,this.onCancel=new n.vpe,this.post=null,this.pr={id:null,parent_id:null,content:"",images:[],thumbs:[],type:"STATUS",hashtags:[],is_public:!0},this.content=new Z.NI("",[Z.kI.required,Z.kI.minLength(1)]),this.uploadFiles=[]}componentName(){return"PostBoxComponent"}ngOnInit(){this.loading=!1}ngAfterViewInit(){setTimeout(()=>{null!=this.post&&(this.pr.id=this.post.id,this.pr.images=this.post.images,this.pr.thumbs=this.post.thumbs,this.pr.content=this.post.content,this.content.setValue(this.pr.content))},200)}uploadImages(){console.log("uploading images..");let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD("post:"+this.pr?.id));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{this.notifier.log(ye.data);let Dt=ye.data;Dt.map(Mn=>Mn.image_url).forEach(Mn=>{this.pr.images.push(Mn)}),Dt.map(Mn=>Mn.thumb_url).forEach(Mn=>{this.pr.thumbs.push(Mn)}),this.submitPost()})}submit(){this.loading=!0,this.uploadFiles.length>0?this.uploadImages():this.submitPost()}submitPost(){if(!this.content.valid)return void this.notifier.warning("Invalid!","Need to input a valid comment.\n"+this.content.value);this.pr.parent_id=null==this.parentId?null:this.parentId,this.pr.content=this.content.value,this.pr.hashtags=xo.g.findHashtags(this.pr.content,!0);let g=this.componentKey(S.Z.POSTS.SUBMIT_POST(this.pr.parent_id,this.pr.content));null==this.pr.id?this.postService.submitPost(g,this.pr):this.postService.updatePost(g,this.pr),this.subscribe(g,null,(L,R)=>{this.onPosted.emit(R.data),this.content.setValue(""),this.loading=!1})}getAuth(){return this.auth.getAuth()}onImageSelected(g){if(this.uploadFiles.length>=3)this.notifier.info("Operation not allowed!","You can upload 3 photos in a post.");else if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}removeExImage(g){if(null==this.pr)return;let L=this.pr.thumbs.indexOf(g);this.pr.thumbs.splice(L),this.pr.images.splice(L)}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(te.l),n.Y36(Wn),n.Y36(_e.e),n.Y36(oe.J))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-box"]],inputs:{commentBox:"commentBox",parentId:"parentId",post:"post"},outputs:{onPosted:"onPosted",onCancel:"onCancel"},features:[n.qOj],decls:2,vars:2,consts:[["class","create-post-box",4,"ngIf"],["class","comment-box-area",4,"ngIf"],[1,"create-post-box"],[1,"cpb-top-area"],[1,"cancel-post",3,"click"],[1,"icon-cancel"],[1,"cpb-user-info-area"],["href","#",1,"cpb-user-avater"],["alt","astha create post user avater",3,"src"],[1,"cpb-user-info-wrapper"],[1,"user-name"],[1,"select-audions",3,"click"],[1,"icon-globe"],[4,"ngIf"],[1,"icon-down-dir"],[1,"cpb-write-post-area"],["method","post"],["class","my-5",4,"ngIf"],["autofocus","","name","message","id","message","rows","5","placeholder","what do you want to talk about?",3,"formControl",4,"ngIf"],[1,"upload-img-area","review-rdi","pt-4"],[1,"container"],[1,"post-last-step-gallery"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],["type","file","id","image-upload",3,"change"],[1,"cpb-share-creation-state-bottom"],[1,"share-creation-state-icon"],["for","image-upload"],[1,"icon-picture"],["type","button",3,"click"],[1,"my-5"],[3,"bar","determinate"],["autofocus","","name","message","id","message","rows","5","placeholder","what do you want to talk about?",3,"formControl"],["alt","",1,"m-1",3,"src","click"],[1,"comment-box-area"],[1,"write-comment-box"],["type","text","name","commentbox","id","commentbox","placeholder","Enter your comment","required","required",3,"formControl","keyup.enter"],[1,"upload-item"],[1,"icon-folder-add"],[1,"submit-icon",3,"click"],[1,"icon-paper-plane"]],template:function(L,R){1&L&&(n.YNc(0,Rs,35,8,"div",0),n.YNc(1,xa,8,1,"section",1)),2&L&&(n.Q6J("ngIf",!R.commentBox),n.xp6(1),n.Q6J("ngIf",R.commentBox))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.JJ,Z.JL,Z.Q7,Z.oH,Ge.t,Z.F],styles:[".write-comment-box[_ngcontent-%COMP%]{position:relative;margin-left:44px;border-radius:30px;display:flex;align-items:center;margin-top:30px}.write-comment-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;min-height:50px!important;border-radius:30px;padding:0 30px 0 35px;font-size:14px;font-weight:300;color:#c0bfbf;transition:width .4s linear;line-height:20px;border:0;outline:0;background:#3A3B3C;letter-spacing:.01em}.upload-item[_ngcontent-%COMP%], .submit-icon[_ngcontent-%COMP%]{position:absolute!important;right:15px;top:13px;cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.upload-item[_ngcontent-%COMP%]{right:auto;left:8px;top:12px;color:#fff}.submit-icon[_ngcontent-%COMP%]:hover{opacity:.5}.submit-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}.share-creation-state-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2em}.btn-comment-send[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .create-post-box[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f5f5f5}.view-more[_ngcontent-%COMP%]{display:flex;justify-content:center}.comunity-add-post.cpb[_ngcontent-%COMP%]{position:relative}.create-post-box[_ngcontent-%COMP%]{position:absolute;max-width:550px;background:#1D2226;z-index:9;border-radius:10px;left:0;right:0;margin:0 20px;top:10%}#message[_ngcontent-%COMP%]:focus{padding:10px;background:red}.cpb-top-area[_ngcontent-%COMP%]{position:relative;padding:20px 15px;display:flex;justify-content:space-between;border-bottom:1px solid #383D40}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0;border:1px solid;border-radius:5px}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%]:hover{opacity:.5}.cpb-user-avater[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:48px;height:48px;object-fit:cover;border-radius:50%;box-sizing:border-box}.cpb-user-info-area[_ngcontent-%COMP%]{display:flex;gap:15px;padding:15px}.cpb-user-info-wrapper[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-size:16px;text-transform:capitalize}.select-audions[_ngcontent-%COMP%]{border:1px solid whitesmoke;padding:2px 0 3px;margin-top:10px;font-size:15px;text-transform:capitalize;border-radius:50px}.select-audions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff!important;display:flex;align-items:center;justify-content:space-between}.select-audions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0!important;font-size:20px!important}.cpb-write-post-area[_ngcontent-%COMP%]{padding:0 15px}.cpb-write-post-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;background:transparent!important;border:0;min-height:125px;padding:10px}.cpb-write-post-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::placeholder{font-size:18px;line-height:1.3}textarea[_ngcontent-%COMP%]:focus{border:0;outline:0 none;background-color:transparent}.cpb-share-creation-state-bottom[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:15px;align-items:center}.cpb-share-creation-state-bottom[_ngcontent-%COMP%] button[type=button][_ngcontent-%COMP%]{border:0;text-transform:uppercase;font-weight:700;padding:8px 25px;background:#383D40;color:#fff;border-radius:30px;margin:15px 0;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.cpb-upload-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .share-creation-state-icon[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:0!important;cursor:pointer;transition:.3s}.share-creation-state-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block}.share-creation-state-icon[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.5}"]})}return F})();function Wa(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("size",30)}function bc(F,Xe){if(1&F&&n._UZ(0,"app-post",6),2&F){const g=Xe.$implicit,L=n.oxw(2);n.Q6J("post",g)("highlighted",(null==g?null:g.id)===L.latestCommentId)("isComment",!0)}}function ra(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"app-post-box",4),n.NdJ("onPosted",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCommentSubmitted(R))}),n.qZA(),n.YNc(2,bc,1,3,"app-post",5),n.qZA()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("commentBox",!0)("parentId",g.postId),n.xp6(1),n.Q6J("ngForOf",g.comments)}}let Al=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.postService=Dt,this.notifier=Mn,this.postId=null,this.comments=[]}componentName(){return"ConversationAreaComponent"}ngOnInit(){this.notifier.log("post id: "+this.postId),null!=this.postId&&this.loadComments(this.postId)}loadComments(g){const L=this.componentKey(S.Z.POSTS.FETCH_COMMENTS(g));this.postService.fetchComments(L,g),this.subscribe(L,null,(R,ye)=>{this.comments=ye.data.content,this.loading=!1})}onCommentSubmitted(g){this.latestCommentId=g.id,this.comments.unshift(g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-conversation-area"]],inputs:{postId:"postId"},features:[n.qOj],decls:3,vars:2,consts:[[1,"conversation-area"],[3,"size",4,"ngIf"],[4,"ngIf"],[3,"size"],[3,"commentBox","parentId","onPosted"],[3,"post","highlighted","isComment",4,"ngFor","ngForOf"],[3,"post","highlighted","isComment"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0),n.YNc(1,Wa,1,1,"util-progress",1),n.YNc(2,ra,3,3,"div",2),n.qZA()),2&L&&(n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading))},styles:[".conversation-area[_ngcontent-%COMP%]{padding-bottom:20px}"]})}return F})(),is=(()=>{class F{transform(g){let L;if(-1!==g.indexOf("#")){L=g+" ";const R=L.match(/#(.*?) /g);if(null==R)return g;for(let ye=0;ye'+Dt+""),L=L.replace("{{link}}",Mn)}}else L=g;return L}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275pipe=n.Yjl({name:"hashtag",type:F,pure:!0})}return F})();const ro=function(F){return[F]};function K(F,Xe){if(1&F&&(n.TgZ(0,"div",26)(1,"a",27),n._uU(2),n.qZA(),n._uU(3),n.TgZ(4,"h6",28),n._uU(5),n.ALo(6,"readableDate"),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.VKq(7,ro,"/u/"+(null==g.localMetaData?null:g.localMetaData.actorUsername))),n.xp6(1),n.Oqu(null==g.localMetaData?null:g.localMetaData.actorName),n.xp6(1),n.hij(" ",g.localMetaData.message," "),n.xp6(2),n.Oqu(n.xi3(6,4,g.localMetaData.timestamp,!0))}}function Ue(F,Xe){if(1&F&&(n.TgZ(0,"li")(1,"a",29),n._uU(2,"VIEW FULL REVIEW"),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.VKq(1,ro,"/reviews/"+g.getMetaData(g.post,"review_id"))+"/"+(null==g.post?null:g.post.id))}}function ge(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.editPost(R.post))}),n._uU(2,"EDIT POST"),n.qZA()()}}function Ne(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.deletePost(R.post))}),n._uU(2,"MOVE TO TRASH"),n.qZA()()}}function kt(F,Xe){1&F&&(n.TgZ(0,"li")(1,"a"),n._uU(2,"REPORT"),n.qZA()())}function pn(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"a")(1,"img",30),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.openPostDetailsPage(R.post))}),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(1),n.s9C("src",g.getFirstImage(),n.LSH)}}function Sn(F,Xe){if(1&F&&(n.TgZ(0,"div",35)(1,"h5",36),n._UZ(2,"i",37),n._uU(3),n.qZA(),n.TgZ(4,"h6",38),n._uU(5,"AVG RATING"),n.qZA()()),2&F){const g=n.oxw(3);n.xp6(1),n.Q6J("routerLink",n.VKq(2,ro,"/reviews/"+g.getMetaData(g.post,"review_id"))+"/"+(null==g.post?null:g.post.id)),n.xp6(2),n.hij("\xa0",g.getAvgRating(),"/10 ")}}function li(F,Xe){if(1&F&&(n.TgZ(0,"div",39)(1,"a",36)(2,"h5"),n._uU(3),n.qZA()(),n.TgZ(4,"h6",38),n._uU(5,"ITEM"),n.qZA()()),2&F){const g=n.oxw(3);let L;n.xp6(1),n.Q6J("routerLink",n.VKq(2,ro,"/products/"+g.getMetaData(g.post,"product_id"))),n.xp6(2),n.Oqu(null==(L=g.getProductName())?null:L.toUpperCase())}}function ur(F,Xe){if(1&F&&(n.TgZ(0,"div",31)(1,"div",32),n.YNc(2,Sn,6,4,"div",33),n.YNc(3,li,6,4,"div",34),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(2),n.Q6J("ngIf",null!=g.getAvgRating()),n.xp6(1),n.Q6J("ngIf",null!=g.getProductName())}}function hr(F,Xe){if(1&F&&(n.TgZ(0,"div",43)(1,"a",44),n._UZ(2,"img",45),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function ar(F,Xe){1&F&&(n.TgZ(0,"div",43)(1,"a",46),n._uU(2,"View All"),n.qZA()())}function xi(F,Xe){if(1&F&&(n.TgZ(0,"div",40),n.YNc(1,hr,3,2,"div",41),n.YNc(2,ar,3,0,"div",42),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",g.takePostThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>3)}}const Ar=function(F){return{"product-menu-bar":F}};function Nr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",2),n.YNc(1,K,7,9,"div",3),n.TgZ(2,"div",4)(3,"div",5)(4,"div",6),n._UZ(5,"img",7),n.TgZ(6,"div",8)(7,"h4")(8,"a",9),n._uU(9),n.qZA()(),n.TgZ(10,"p"),n._uU(11),n.ALo(12,"readableDate"),n.qZA()()(),n.TgZ(13,"div",10),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onItemClick(R))}),n._UZ(14,"i",11),n.TgZ(15,"div",12)(16,"ul"),n.YNc(17,Ue,3,3,"li",13),n.YNc(18,ge,3,0,"li",13),n.YNc(19,Ne,3,0,"li",13),n.YNc(20,kt,3,0,"li",13),n.qZA()()()(),n.YNc(21,pn,2,1,"a",13),n.TgZ(22,"div",14),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openPostDetailsPage(R.post))}),n.YNc(23,ur,4,2,"div",15),n._UZ(24,"p",16),n.ALo(25,"hashtag"),n.YNc(26,xi,3,2,"div",17),n.qZA()(),n.TgZ(27,"div",18)(28,"div",19)(29,"app-reaction",20),n.NdJ("onReacted",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onReacted(R))}),n.qZA(),n.TgZ(30,"h4",21),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onReactionCountClick(R))}),n._uU(31),n.qZA()(),n.TgZ(32,"div",22),n._UZ(33,"i",23),n.TgZ(34,"h4"),n._uU(35),n.qZA(),n._UZ(36,"h4"),n.qZA(),n.TgZ(37,"div",24),n._UZ(38,"i",25)(39,"h4"),n.qZA()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngIf",null!=g.localMetaData&&null!=g.localMetaData.message),n.xp6(4),n.s9C("src",null!=(null==g.post?null:g.post.posted_by_photo)?null==g.post?null:g.post.posted_by_photo:"assets/img/default-avatar.png",n.LSH),n.Q6J("routerLink",n.VKq(24,ro,"/u/"+(null==g.post?null:g.post.posted_by_username))),n.xp6(3),n.Q6J("routerLink",n.VKq(26,ro,"/u/"+(null==g.post?null:g.post.posted_by_username))),n.xp6(1),n.Oqu(null==g.post?null:g.post.posted_by_name),n.xp6(2),n.Oqu(n.xi3(12,19,null==g.post?null:g.post.updated_at,!0)),n.xp6(2),n.Q6J("ngClass",n.VKq(28,Ar,g.showPostMenu)),n.xp6(4),n.Q6J("ngIf",null!=g.getMetaData(g.post,"review_id")),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",1===(null==g.post||null==g.post.images?null:g.post.images.length)),n.xp6(2),n.Q6J("ngIf",g.isShowMetaSection()),n.xp6(1),n.Q6J("innerHTML",n.lcZ(25,22,g.getContent()),n.oJD),n.xp6(2),n.Q6J("ngIf",g.getThumbLength()>1),n.xp6(3),n.Q6J("postId",null==g.post?null:g.post.id),n.xp6(2),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.total,")"),n.xp6(1),n.Q6J("routerLink",n.VKq(30,ro,"/posts/"+(null==g.post?null:g.post.id))),n.xp6(3),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.comments,")")}}function mr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.editPost(R.post))}),n._uU(2,"EDIT POST"),n.qZA()()}}function vs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.deletePost(R.post))}),n._uU(2,"MOVE TO TRASH"),n.qZA()()}}function bs(F,Xe){if(1&F&&(n.TgZ(0,"div",43)(1,"a",44),n._UZ(2,"img",45),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function $a(F,Xe){1&F&&(n.TgZ(0,"div",43)(1,"a",46),n._uU(2,"View All"),n.qZA()())}function Ui(F,Xe){if(1&F&&(n.TgZ(0,"div",40),n.YNc(1,bs,3,2,"div",41),n.YNc(2,$a,3,0,"div",42),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",g.takePostThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>3)}}function Ma(F,Xe){if(1&F&&(n.TgZ(0,"small"),n._uU(1),n.qZA()),2&F){const g=n.oxw(3);n.xp6(1),n.hij("(",g.getTotalComments(),")")}}function Qr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",58)(1,"a",59)(2,"app-reaction",20),n.NdJ("onReacted",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onReacted(R))}),n.qZA(),n.TgZ(3,"h5",60),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onReactionCountClick(R))}),n._uU(4),n.qZA()(),n.TgZ(5,"a",61),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onReplyClick(null==R.post?null:R.post.id))}),n._uU(6,"Reply "),n.YNc(7,Ma,2,1,"small",13),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(2),n.Q6J("postId",null==g.post?null:g.post.id),n.xp6(2),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.total,")"),n.xp6(3),n.Q6J("ngIf",g.getTotalComments())}}function zr(F,Xe){if(1&F&&(n.TgZ(0,"div",62),n._UZ(1,"app-conversation-area",63),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("postId",null==g.post?null:g.post.id)}}const Qi=function(F){return{"post-highlighted":F}};function yi(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",47)(1,"div",4)(2,"div",48)(3,"a",49),n._UZ(4,"img",50),n.qZA(),n.TgZ(5,"div",51)(6,"div",52)(7,"div",53)(8,"span")(9,"b"),n._uU(10),n.qZA()(),n.TgZ(11,"h6",38),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()(),n.TgZ(14,"div",10),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onItemClick(R))}),n._UZ(15,"i",11),n.TgZ(16,"div",12)(17,"ul"),n.YNc(18,mr,3,0,"li",13),n.YNc(19,vs,3,0,"li",13),n.TgZ(20,"li")(21,"a"),n._uU(22,"REPORT"),n.qZA()()()()()()(),n.TgZ(23,"div",54)(24,"div",55)(25,"p"),n._uU(26),n.qZA(),n.YNc(27,Ui,3,2,"div",17),n.qZA(),n.YNc(28,Qr,8,3,"div",56),n.YNc(29,zr,2,1,"div",57),n.qZA()()()}if(2&F){const g=n.oxw();n.Q6J("ngClass",n.VKq(14,Qi,g.highlighted)),n.xp6(4),n.s9C("src",null==g.post?null:g.post.posted_by_photo,n.LSH),n.xp6(6),n.Oqu(null==g.post?null:g.post.posted_by_name),n.xp6(2),n.Oqu(n.xi3(13,11,null==g.post?null:g.post.updated_at,!0)),n.xp6(2),n.Q6J("ngClass",n.VKq(16,Ar,g.showPostMenu)),n.xp6(4),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(7),n.Oqu(null==g.post?null:g.post.content),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>0),n.xp6(1),n.Q6J("ngIf",g.isReplyEnabled()),n.xp6(1),n.Q6J("ngIf",g.replyToPostId===(null==g.post?null:g.post.id))}}let oa=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.postService=ye,this.dialog=Dt,this.auth=Mn,this.notifier=vi,this.isComment=!1,this.fullVersion=!1,this.post=null,this.highlighted=!1,this.showPostMenu=!1,this.replyToPostId=0,this.onDeletePost=new n.vpe}componentName(){return"PostComponent"}ngOnInit(){}onReacted(g){this.reloadPost()}takePostThumbs(g){return null==this.post||g<1?[]:this.post.thumbs.length{this.post=R.data})}onReactionCountClick(g){console.log("reactions clicked");const L=this.dialog.open(qn);null!=this.post&&(L.componentInstance.postId=this.post?.id),L.afterClosed().subscribe(ye=>{console.log(`Dialog result: ${ye}`)})}onItemClick(g){this.showPostMenu=!this.showPostMenu}isMyPost(){return!!this.auth.isAuthenticated()&&this.auth.getAuth().username==this.post?.posted_by_username}getAvgRating(){let g=this.getMetaData(this.post,"average_rating");if(null==g)return null;try{return parseFloat(g).toFixed(1)}catch{return null}}getProductName(){let g=this.getMetaData(this.post,"product_name");return w.m.takeOnly(g,20)}getMetaData(g,L){let R=g?.meta_data;return null==R?null:R[L]}isShowMetaSection(){return null!=this.post?.meta_data&&this.post.type===Os.USER_REVIEW}editPost(g){null!=g&&this.openPostBox(g)}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g,R.parentId=g?.parent_id,R.onPosted.subscribe(ye=>{this.reloadPost(),L.close()}),R.onCancel.subscribe(ye=>{L.close()})}openPostDetailsPage(g){this.showPostMenu?this.showPostMenu=!1:null!=g&&this.navigate("/posts/"+g.id,L=>{})}deletePost(g){if(null==g||!confirm("Are you sure you want to delete this post?"))return;let R=this.componentKey(S.Z.POSTS.DELETE_POST(g.id));this.postService.deletePost(R,g.id),this.subscribe(R,null,(ye,Dt)=>{this.notifier.success("Deleted!","Post is deleted."),this.reloadRoute()}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{this.notifier.error("Error!",Dt.data.error.message)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn),n.Y36(Re.uw),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post"]],inputs:{isComment:"isComment",fullVersion:"fullVersion",post:"post",localMetaData:"localMetaData",highlighted:"highlighted"},outputs:{onDeletePost:"onDeletePost"},features:[n.qOj],decls:2,vars:2,consts:[["class","blog-post-area bdr-top mt-4",4,"ngIf"],["class","blog-post-area blog-post-area-comment mt-2",3,"ngClass",4,"ngIf"],[1,"blog-post-area","bdr-top","mt-4"],["class","container post-meta",4,"ngIf"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","my-4","px-3"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"profile-img","profile-img-rounded",3,"routerLink","src"],[1,"content","ms-2"],[1,"user-name",3,"routerLink"],[1,"view-details","pt-2",3,"ngClass","click"],[1,"icon-dot-3"],[1,"productMenuBox"],[4,"ngIf"],[1,"blog-post-content","px-3","pb-3",3,"click"],["class","blog-post-meta py-3",4,"ngIf"],[3,"innerHTML"],["class","product-gallery",4,"ngIf"],[1,"blog-post-comment-section","d-flex","justify-content-around","bdr-top","bdr-b","py-3","mt-2","mb-3"],[1,"react","d-flex","align-items-center"],[3,"postId","onReacted"],[3,"click"],[1,"comment","d-flex","align-items-center",3,"routerLink"],[1,"icon-chat"],[1,"share","d-flex","align-items-center"],[1,"icon-paper-plane"],[1,"container","post-meta"],[1,"actor-name","user-name",3,"routerLink"],[1,"mt-1",2,"color","gray"],[3,"routerLink"],[1,"w-100","mb-2",3,"src","click"],[1,"blog-post-meta","py-3"],[1,"row","align-items-center","mb-2"],["class","col-6 rating",4,"ngIf"],["class","col-6 col-sm-4",4,"ngIf"],[1,"col-6","rating"],[1,"post-info-links",3,"routerLink"],[1,"icon-star"],[2,"color","gray"],[1,"col-6","col-sm-4"],[1,"product-gallery"],["class","single-product-item",4,"ngFor","ngForOf"],["class","single-product-item",4,"ngIf"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],["href","#"],[1,"blog-post-area","blog-post-area-comment","mt-2",3,"ngClass"],[1,"blog-post-top","d-flex","justify-content-between","my-4","comment-header"],["href","#",1,"comments-user-avater"],["alt","astha",3,"src"],[1,"comments-post-meta-profile-info-wrapper"],[1,"blog-post-top-left"],[1,"content"],[1,"blog-post-content"],[1,"comments-comment-item-content"],["class","comment-social-activity",4,"ngIf"],["class","nested-comment-box",4,"ngIf"],[1,"comment-social-activity"],[1,"react","d-flex"],[1,"mt-1",3,"click"],[1,"btn-reply-post",3,"click"],[1,"nested-comment-box"],[1,"conversation-area",3,"postId"]],template:function(L,R){1&L&&(n.YNc(0,Nr,40,32,"section",0),n.YNc(1,yi,30,18,"section",1)),2&L&&(n.Q6J("ngIf",!R.isComment),n.xp6(1),n.Q6J("ngIf",R.isComment))},dependencies:[e.mk,e.sg,e.O5,l.rH,le,Al,Yr.G,is],styles:['@keyframes _ngcontent-%COMP%_anim-highlight{0%{opacity:.5;background-color:#52575e}to{opacity:1;background-color:#202020}}.post-highlighted[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_anim-highlight;animation-duration:4s}.product-gallery[_ngcontent-%COMP%]{display:flex;grid-gap:20px;align-items:center;margin-top:20px}.btn-reply-post[_ngcontent-%COMP%]{position:absolute;right:20px;color:#44d62c}.blog-post-area[_ngcontent-%COMP%] .blog-post-top-left[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.7rem}.post-meta[_ngcontent-%COMP%]{padding-top:20px}a[_ngcontent-%COMP%]{color:#44d62c}.post-info-links[_ngcontent-%COMP%]{color:#f5f5f5!important;font-weight:800}.view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none;position:relative;cursor:pointer}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:10px;padding:0 10px;list-style:none;width:250px;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}.comment-header[_ngcontent-%COMP%]{margin-bottom:0!important}.comments-comment-item-content[_ngcontent-%COMP%]{background:#3A3B3C;padding:0 12px 15px;border-radius:0 0 10px 10px;-webkit-border-radius:0px 0px 10px 10px;-moz-border-radius:0px 0px 10px 10px;-ms-border-radius:0px 0px 10px 10px;-o-border-radius:0px 0px 10px 10px;margin-left:44px}.comments-user-avater[_ngcontent-%COMP%]{flex-shrink:0;align-self:flex-start;width:40px;height:40px}.comments-user-avater[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;object-fit:cover}.comments-post-meta-profile-info-wrapper[_ngcontent-%COMP%]{flex-grow:1;display:flex;justify-content:space-between;align-items:center;background:#3A3B3C;padding:8px 12px;border-radius:0 10px 0 0;margin-left:4px}.btn-reply-post[_ngcontent-%COMP%]{position:relative;right:auto!important;cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.btn-reply-post[_ngcontent-%COMP%]:hover{opacity:.5}.comment-social-activity[_ngcontent-%COMP%] app-reaction[_ngcontent-%COMP%]{width:25px}.comment-social-activity[_ngcontent-%COMP%] .react[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:14px!important;display:flex;align-items:center;margin-left:2px}.comment-social-activity[_ngcontent-%COMP%]{margin-top:5px;margin-left:55px;display:flex;gap:12px;align-items:center}']})}return F})();const cl=function(F){return{active:F}};function _o(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",4),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.onClick(ye))}),n.TgZ(1,"a"),n._uU(2),n.qZA()()}if(2&F){const g=Xe.$implicit,L=n.oxw();n.Q6J("ngClass",n.VKq(2,cl,L.selectedTabId===g.id)),n.xp6(2),n.Oqu(g.title)}}let Wi=(()=>{class F extends I.H{constructor(g,L,R){super(g,L,R),this.tabHeaders=[],this.selectedTabId=0,this.onSelect=new n.vpe,this.panelClass="active"}componentName(){return"TabHeaderComponent"}ngOnInit(){}onClick(g){this.selectedTabId=g.id,this.onSelect.emit(g.id)}trackbyFn(g,L){return g}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-tab-header"]],inputs:{tabHeaders:"tabHeaders",selectedTabId:"selectedTabId",panelClass:"panelClass"},outputs:{onSelect:"onSelect"},features:[n.qOj],decls:4,vars:2,consts:[[1,"tab-header","mt-2","scrollable"],[1,"container"],[1,"list-inline","list-unstyled"],["class","list-inline-item",3,"ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list-inline-item",3,"ngClass","click"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1)(2,"ul",2),n.YNc(3,_o,3,4,"li",3),n.qZA()()()),2&L&&(n.xp6(3),n.Q6J("ngForOf",R.tabHeaders)("ngForTrackBy",R.trackbyFn))},dependencies:[e.mk,e.sg],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.list-inline-item[_ngcontent-%COMP%]{margin-right:1.5rem}.list-group-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#000}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1.12em!important;text-decoration:none;color:#fff;text-transform:uppercase;font-weight:600;letter-spacing:.05em;transition:all .5s}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#f7f7f7}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background:#44d62c;padding:5px 12px;border-radius:16px}"]})}return F})();function Xi(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function dl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",30),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onIStoriesMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showStoriesMenu)("items",g.getMenuItems())}}function ko(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function rs(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}function ul(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",30),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCriticReviewsMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showCriticReviewsMenu)("items",g.getMenuItems())}}function Pc(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function Us(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}const Vs=function(F,Xe,g,L){return{actorName:F,actorUsername:Xe,message:g,timestamp:L}};function Nc(F,Xe){if(1&F&&(n.TgZ(0,"div"),n._UZ(1,"app-post",31),n.qZA()),2&F){const g=Xe.$implicit,L=n.oxw();n.xp6(1),n.Q6J("post",g.post)("localMetaData",n.l5B(2,Vs,g.actorName,g.actorUsername,L.getMessage(g),g.timestamp))}}function ac(F,Xe){1&F&&n._UZ(0,"util-progress",32),2&F&&n.Q6J("padding",70)}let To=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya){super(g,L,R),this.postService=Dt,this.auth=Mn,this.dialog=vi,this.reviewService=Fo,this.notifier=Ya,this.interestingStories=null,this.iStories=[],this.iStoriesPeriod="THIS MONTH",this.iStoriesLoading=!1,this.showStoriesMenu=!1,this.criticReviews=null,this.criticReviewers=[],this.criticReviewsPeriod="THIS MONTH",this.criticReviewsLoading=!1,this.showCriticReviewsMenu=!1,this.badgeForCritic="Critic",this.youtubeReviews=[],this.page=0,this.statusPosts=[],this.reviewPosts=[],this.reactions=[],this.newsfeedItems=[],this.trendingHashtags=[],this.selectedHashtag=null,this.selectedHashtag=ye.snapshot.queryParams.hashtag}componentName(){return"NewsfeedComponent"}ngOnInit(){let g=Nt.b.calculateRange(this.iStoriesPeriod.replace(" ","_"));this.fetchInterestingStories({page:0,from_date:g?.fromDate,to_date:g?.toDate,slice:!0});let L=Nt.b.calculateRange(this.criticReviewsPeriod.replace(" ","_"));this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic}),this.fetchYoutubeReviews(),this.fetchTrendingHashtags(),this.fetchNewsfeedItems(this.selectedHashtag,this.page)}fetchCriticReviews(g){this.criticReviewsLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_CRITIC_REVIEWS());this.reviewService.fetchRecentReviews(L,g),this.subscribe(L,null,(R,ye)=>{this.criticReviews=ye.data,this.criticReviewers=F.mapToCarouselItems(ye.data),this.criticReviewsLoading=!1})}fetchInterestingStories(g){this.iStoriesLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_INTERESTING_STORIES());this.reviewService.fetchRecentReviews(L,g),this.subscribe(L,null,(R,ye)=>{this.interestingStories=ye.data,this.iStories=F.mapToCarouselItems(ye.data),this.iStoriesLoading=!1})}static mapToCarouselItems(g){return g.content.map(L=>({id:L?.id,slug:L?.slug,title:L?.posted_by_name,img:null!=L?.posted_by_avatar?L?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+L.id+"/"+L.post_id,badges:[]}))}fetchYoutubeReviews(){this.youtubeReviews=[{id:1,title:null,slug:"",img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,title:null,slug:"",img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]}]}fetchNewsfeedItems(g,L){this.loading=!0;const R=this.componentKey(S.Z.POSTS.FETCH_NEWS_FEED_POSTS(Os.STATUS));this.postService.fetchPosts(R,{page:L,size:5,type:Os.STATUS,hashtag:g}),this.subscribe(R,null,(Dt,Mn)=>{this.statusPosts=Mn.data.content,this.addToNewsfeed(Is.STATUS,this.statusPosts),this.loading=!1});const ye=this.componentKey(S.Z.POSTS.FETCH_NEWS_FEED_POSTS(Os.USER_REVIEW));if(this.postService.fetchPosts(ye,{page:L,size:5,type:Os.USER_REVIEW,hashtag:g}),this.subscribe(ye,null,(Dt,Mn)=>{this.reviewPosts=Mn.data.content,this.addToNewsfeed(Is.USER_REVIEW,this.reviewPosts),this.loading=!1}),null==g||0===g?.length){const Dt=this.componentKey(S.Z.POSTS.FETCH_REACTIONS());this.postService.fetchReactions(Dt,{page:L,slice:!1}),this.subscribe(Dt,null,(Mn,vi)=>{this.reactions=vi.data.content,this.addReactionsToNewsfeed(this.reactions)})}}addToNewsfeed(g,L){L.map(R=>{this.newsfeedItems.push({timestamp:R.updated_at,actionType:g,actorName:R.posted_by_name,actorUsername:R.posted_by_username,post:R})}),this.sortNewsfeedItems()}addReactionsToNewsfeed(g){g.map(L=>{this.newsfeedItems.push({timestamp:L.updated_at,actionType:Is.REACTION,actorName:L.reacted_by_name,actorUsername:L.reacted_by_username,post:L.post})}),this.sortNewsfeedItems()}sortNewsfeedItems(){this.newsfeedItems=this.newsfeedItems.sort((g,L)=>new Date(L.timestamp).getTime()-new Date(g.timestamp).getTime())}getMessage(g){return g.actionType===Is.REACTION?"reacted.":g.actionType===Is.USER_REVIEW?"posted a review.":null}onViewMoreClick(){this.fetchNewsfeedItems(null,++this.page)}reloadNewsfeed(){this.newsfeedItems=[],this.fetchNewsfeedItems(null,0)}getAuth(){return this.auth.getAuth()}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g;const ye=R.onPosted.subscribe(Mn=>{ye.unsubscribe(),L.close()}),Dt=R.onCancel.subscribe(Mn=>{Dt.unsubscribe(),L.close()});L.afterClosed().subscribe(Mn=>{this.reloadRouteByUrl()})}getMenuItems(){return bt.$}onIStoriesMenuItemClick(g){this.showStoriesMenu&&(this.showStoriesMenu=!1),this.iStoriesPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchInterestingStories({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0})}onCriticReviewsMenuItemClick(g){this.showCriticReviewsMenu&&(this.showCriticReviewsMenu=!1),this.criticReviewsPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic})}getTabHeaders(){return this.trendingHashtags.map((g,L)=>({id:L,title:"#"+g.name}))}getSelectedHashtag(){return-1}onHashtagSelected(g){let L=this.trendingHashtags[g].name.replace("#","");L!==this.selectedHashtag?(this.selectedHashtag=L,this.router.navigateByUrl("/newsfeed?hashtag="+this.selectedHashtag),this.newsfeedItems=[],this.fetchNewsfeedItems(this.selectedHashtag,0)):this.navigateByUrl("/newsfeed",R=>{this.reloadRouteByUrl()})}fetchTrendingHashtags(){let g=this.componentKey(S.Z.POSTS.FETCH_TRENDING_HASHTAGS());this.postService.fetchTrendingTags(g,{}),this.subscribe(g,null,(L,R)=>{this.trendingHashtags=R.data}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.log(R.data)})}onStoriesItemClick(g){if(null==this.interestingStories)return;let L=this.interestingStories.content.find(R=>R.id==g.id);this.navigate("/reviews/"+L?.product_slug+"/"+L?.slug+"/"+L?.post_id,R=>{})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(_e.e),n.Y36(Re.uw),n.Y36(se.F),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-newsfeed"]],features:[n.qOj],decls:62,vars:20,consts:[[3,"bar",4,"ngIf"],[1,"reviewers-section","py-2","mt-3"],[1,"container"],[1,"reviewers-content","section-title","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items","itemClick"],[4,"ngIf"],[1,"comunity-post-area","pt-4","pb-3","mt-3","bdr-top"],[1,"comunity-post","d-flex","mb-4"],["alt","",1,"profile-img-rounded",3,"src"],[1,"content","ms-3"],[1,"closs-post"],[1,"icon-cancel-1"],[1,"comunity-add-post","cpb","d-flex","justify-content-end","align-items-center"],[1,"d-flex","align-items-center",3,"click"],[1,"icon-plus-2"],[1,"reviewers-section","py-2","mt-3","bdr-b"],[3,"items"],[1,"container","mt-4","bdr-b"],[3,"tabHeaders","selectedTabId","onSelect"],[4,"ngFor","ngForOf"],[3,"padding",4,"ngIf"],[1,"section-title","view-more","my-4","container"],[3,"click"],[1,"youtube-reviews-section","bdr-b","mb-5","pb-3"],[1,"section-title","d-flex","justify-content-between","my-4"],["href","#"],[3,"design","items"],[3,"bar"],[3,"showMenubar","items","menuItemClick"],[3,"post","localMetaData"],[3,"padding"]],template:function(L,R){1&L&&(n.YNc(0,Xi,1,1,"util-progress",0),n.TgZ(1,"div")(2,"section",1)(3,"div",2)(4,"div",3),n.NdJ("click",function(){return R.showStoriesMenu=!R.showStoriesMenu}),n.TgZ(5,"h5"),n._uU(6,"INTERESTING STORIES"),n.qZA(),n.TgZ(7,"a")(8,"h5"),n._uU(9),n.qZA()(),n._UZ(10,"img",4),n.qZA(),n.YNc(11,dl,1,2,"app-menubox",5),n.TgZ(12,"app-small-carousel",6),n.NdJ("itemClick",function(Dt){return R.onStoriesItemClick(Dt)}),n.qZA(),n.YNc(13,ko,1,1,"util-progress",0),n.YNc(14,rs,3,0,"div",7),n.qZA()(),n.TgZ(15,"section",8)(16,"div",2)(17,"div",9),n._UZ(18,"img",10),n.TgZ(19,"div",11)(20,"h4"),n._uU(21),n.qZA(),n.TgZ(22,"p"),n._uU(23,"Share your thoughts with the community and connect with people."),n.qZA()(),n.TgZ(24,"div",12),n._UZ(25,"i",13),n.qZA()(),n.TgZ(26,"div",14)(27,"a",15),n.NdJ("click",function(){return R.openPostBox(null)}),n._UZ(28,"i",16),n.TgZ(29,"h4"),n._uU(30,"Post a status"),n.qZA()()()()(),n.TgZ(31,"section",17)(32,"div",2)(33,"div",3),n.NdJ("click",function(){return R.showCriticReviewsMenu=!R.showCriticReviewsMenu}),n.TgZ(34,"h5"),n._uU(35,"CRITIC REVIEWS"),n.qZA(),n.TgZ(36,"a")(37,"h5"),n._uU(38),n.qZA()(),n._UZ(39,"img",4),n.qZA(),n.YNc(40,ul,1,2,"app-menubox",5),n._UZ(41,"app-small-carousel",18),n.YNc(42,Pc,1,1,"util-progress",0),n.YNc(43,Us,3,0,"div",7),n.qZA()(),n.TgZ(44,"div",19)(45,"h5"),n._uU(46,"TRENDING TAGS"),n.qZA(),n.TgZ(47,"app-tab-header",20),n.NdJ("onSelect",function(Dt){return R.onHashtagSelected(Dt)}),n.qZA()(),n.TgZ(48,"div"),n.YNc(49,Nc,2,7,"div",21),n.YNc(50,ac,1,1,"util-progress",22),n.TgZ(51,"div",23)(52,"a",24),n.NdJ("click",function(){return R.onViewMoreClick()}),n._uU(53,"VIEW MORE.."),n.qZA()()(),n.TgZ(54,"section",25)(55,"div",2)(56,"div",26)(57,"h3"),n._uU(58,"Youtube Reviews"),n.qZA(),n.TgZ(59,"a",27),n._uU(60,"View all"),n.qZA()(),n._UZ(61,"app-small-carousel",28),n.qZA()()()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("@dataLoaded",R.loading?"loading":"loaded"),n.xp6(8),n.Oqu(R.iStoriesPeriod),n.xp6(2),n.Q6J("ngIf",!R.iStoriesLoading),n.xp6(1),n.Q6J("items",R.iStories),n.xp6(1),n.Q6J("ngIf",R.iStoriesLoading),n.xp6(1),n.Q6J("ngIf",!R.iStoriesLoading&&0===R.iStories.length),n.xp6(4),n.s9C("src",R.getAuth().avatar,n.LSH),n.xp6(3),n.hij("Hey, ",R.getAuth().name,""),n.xp6(17),n.Oqu(R.criticReviewsPeriod),n.xp6(2),n.Q6J("ngIf",!R.criticReviewsLoading),n.xp6(1),n.Q6J("items",R.criticReviewers),n.xp6(1),n.Q6J("ngIf",R.criticReviewsLoading),n.xp6(1),n.Q6J("ngIf",!R.criticReviewsLoading&&0===R.criticReviewers.length),n.xp6(4),n.Q6J("tabHeaders",R.getTabHeaders())("selectedTabId",R.getSelectedHashtag()),n.xp6(2),n.Q6J("ngForOf",R.newsfeedItems),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(11),n.Q6J("design","youtube-reviews")("items",R.youtubeReviews))},dependencies:[e.sg,e.O5,Ge.t,Dn.q,oa,Wi,Ro.v]})}return F})();var nd=C(1081);function lc(F,Xe){1&F&&(n.TgZ(0,"span",7),n.Hsn(1,1),n.qZA())}function Ei(F,Xe){1&F&&(n.TgZ(0,"span",8),n.Hsn(1,2),n.qZA())}const Ca=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ks=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function cc(F,Xe){1&F&&(n.ynx(0),n._UZ(1,"span",8),n.BQk())}function hl(F,Xe){1&F&&(n.TgZ(0,"span",9),n.Hsn(1),n.qZA())}function od(F,Xe){1&F&&(n.ynx(0),n.Hsn(1,1),n.BQk())}function Mo(F,Xe){1&F&&n.Hsn(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function Ka(F,Xe){1&F&&n._UZ(0,"span",12)}function aa(F,Xe){if(1&F&&(n.ynx(0),n.YNc(1,Mo,1,0,"ng-content",10),n.YNc(2,Ka,1,0,"ng-template",null,11,n.W1O),n.BQk()),2&F){const g=n.MAs(3),L=n.oxw();n.xp6(1),n.Q6J("ngIf",L.contentEditInput)("ngIfElse",g)}}function Ol(F,Xe){1&F&&(n.TgZ(0,"span",13),n.Hsn(1,3),n.qZA())}const kn=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Fi=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],Jl=["*"],en=new n.OlP("mat-chips-default-options"),so=new n.OlP("MatChipAvatar"),gt=new n.OlP("MatChipTrailingIcon"),la=new n.OlP("MatChipRemove"),Ra=new n.OlP("MatChip");class Ls{}const os=(0,Ve.sb)(Ls,-1);let ss=(()=>{class F extends os{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(g){this._disabled=(0,qt.Ig)(g)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(g,L){super(),this._elementRef=g,this._parentChip=L,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===g.nativeElement.nodeName&&g.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(g){!this.disabled&&this.isInteractive&&this._isPrimary&&(g.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(g){(g.keyCode===U.K5||g.keyCode===U.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(g.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(Ra))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(L,R){1&L&&n.NdJ("click",function(Dt){return R._handleClick(Dt)})("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&(n.uIk("tabindex",R._getTabindex())("disabled",R._getDisabledAttribute())("aria-disabled",R.disabled),n.ekj("mdc-evolution-chip__action--primary",R._isPrimary)("mdc-evolution-chip__action--presentational",!R.isInteractive)("mdc-evolution-chip__action--trailing",!R._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[n.qOj]})}return F})(),ka=(()=>{class F extends ss{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(g){this.disabled||(g.stopPropagation(),g.preventDefault(),this._parentChip.remove())}_handleKeydown(g){(g.keyCode===U.K5||g.keyCode===U.L_)&&!this.disabled&&(g.stopPropagation(),g.preventDefault(),this._parentChip.remove())}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(L,R){2&L&&n.uIk("aria-hidden",null)},features:[n._Bn([{provide:la,useExisting:F}]),n.qOj]})}return F})(),ys=0;const W=(0,Ve.sb)((0,Ve.pj)((0,Ve.Kr)((0,Ve.Id)(class{constructor(F){this._elementRef=F}})),"primary"),-1);let ne=(()=>{class F extends W{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(g){this._value=g}get removable(){return this._removable}set removable(g){this._removable=(0,qt.Ig)(g)}get highlighted(){return this._highlighted}set highlighted(g){this._highlighted=(0,qt.Ig)(g)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(g){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,g)}constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(L),this._changeDetectorRef=g,this._ngZone=R,this._focusMonitor=ye,this._globalRippleOptions=vi,this._onFocus=new Oe.x,this._onBlur=new Oe.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+ys++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new n.vpe,this.destroyed=new n.vpe,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=(0,n.f3M)(Ve.Fq),this._document=Dt,this._animationsDisabled="NoopAnimations"===Mn,null!=Fo&&(this.tabIndex=parseInt(Fo)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const g=this._elementRef.nativeElement;this._isBasicChip=g.hasAttribute(this.basicChipAttrName)||g.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,Ft.T)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(g){(g.keyCode===U.ZH||g.keyCode===U.yY)&&(g.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(g){return this._getActions().find(L=>{const R=L._elementRef.nativeElement;return R===g||R.contains(g)})}_getActions(){const g=[];return this.primaryAction&&g.push(this.primaryAction),this.removeIcon&&g.push(this.removeIcon),this.trailingIcon&&g.push(this.trailingIcon),g}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(g=>{const L=null!==g;L!==this._hasFocusInternal&&(this._hasFocusInternal=L,L?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,jn.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Ce.tE),n.Y36(e.K0),n.Y36(n.QbO,8),n.Y36(Ve.Y2,8),n.$8M("tabindex"))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,so,5),n.Suo(ye,gt,5),n.Suo(ye,la,5),n.Suo(ye,so,5),n.Suo(ye,gt,5),n.Suo(ye,la,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.leadingIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R.trailingIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R.removeIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R._allLeadingIcons=Dt),n.iGM(Dt=n.CRH())&&(R._allTrailingIcons=Dt),n.iGM(Dt=n.CRH())&&(R._allRemoveIcons=Dt)}},viewQuery:function(L,R){if(1&L&&n.Gf(ss,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R.primaryAction=ye.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&(n.Ikx("id",R.id),n.uIk("role",R.role)("tabindex",R.role?R.tabIndex:null)("aria-label",R.ariaLabel),n.ekj("mdc-evolution-chip",!R._isBasicChip)("mdc-evolution-chip--disabled",R.disabled)("mdc-evolution-chip--with-trailing-action",R._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",R.leadingIcon)("mdc-evolution-chip--with-primary-icon",R.leadingIcon)("mdc-evolution-chip--with-avatar",R.leadingIcon)("mat-mdc-chip-with-avatar",R.leadingIcon)("mat-mdc-chip-highlighted",R.highlighted)("mat-mdc-chip-disabled",R.disabled)("mat-mdc-basic-chip",R._isBasicChip)("mat-mdc-standard-chip",!R._isBasicChip)("mat-mdc-chip-with-trailing-icon",R._hasTrailingIcon())("_mat-animation-noopable",R._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[n._Bn([{provide:Ra,useExisting:F}]),n.qOj],ngContentSelectors:ks,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(L,R){1&L&&(n.F$t(Ca),n._UZ(0,"span",0),n.TgZ(1,"span",1)(2,"span",2),n.YNc(3,lc,2,0,"span",3),n.TgZ(4,"span",4),n.Hsn(5),n._UZ(6,"span",5),n.qZA()()(),n.YNc(7,Ei,2,0,"span",6)),2&L&&(n.xp6(2),n.Q6J("isInteractive",!1),n.xp6(1),n.Q6J("ngIf",R.leadingIcon),n.xp6(4),n.Q6J("ngIf",R._hasTrailingIcon()))},dependencies:[e.O5,ss],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return F})(),xe=(()=>{class F{constructor(g,L){this._elementRef=g,this._document=L}initialize(g){this.getNativeElement().focus(),this.setValue(g)}getNativeElement(){return this._elementRef.nativeElement}setValue(g){this.getNativeElement().textContent=g,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const g=this._document.createRange();g.selectNodeContents(this.getNativeElement()),g.collapse(!1);const L=window.getSelection();L.removeAllRanges(),L.addRange(g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return F})(),qe=(()=>{class F extends ne{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R,ye,Dt,Mn,vi,Fo),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new n.vpe,this._isEditing=!1,this.role="row",this._onBlur.pipe((0,An.R)(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(g){g.keyCode!==U.K5||this.disabled?this._isEditing?g.stopPropagation():super._handleKeydown(g):this._isEditing?(g.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(g)}_handleDoubleclick(g){!this.disabled&&this.editable&&this._startEditing(g)}_startEditing(g){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(g.target)===this.removeIcon)return;const L=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(L),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Ce.tE),n.Y36(e.K0),n.Y36(n.QbO,8),n.Y36(Ve.Y2,8),n.$8M("tabindex"))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,xe,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.contentEditInput=Dt.first)}},viewQuery:function(L,R){if(1&L&&n.Gf(xe,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R.defaultEditInput=ye.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(L,R){1&L&&n.NdJ("focus",function(Dt){return R._handleFocus(Dt)})("dblclick",function(Dt){return R._handleDoubleclick(Dt)}),2&L&&(n.Ikx("id",R.id),n.uIk("tabindex",R.disabled?null:-1)("aria-label",null)("aria-description",null)("role",R.role),n.ekj("mat-mdc-chip-with-avatar",R.leadingIcon)("mat-mdc-chip-disabled",R.disabled)("mat-mdc-chip-editing",R._isEditing)("mat-mdc-chip-editable",R.editable)("mdc-evolution-chip--disabled",R.disabled)("mdc-evolution-chip--with-trailing-action",R._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",R.leadingIcon)("mdc-evolution-chip--with-primary-icon",R.leadingIcon)("mdc-evolution-chip--with-avatar",R.leadingIcon)("mat-mdc-chip-highlighted",R.highlighted)("mat-mdc-chip-with-trailing-icon",R._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[n._Bn([{provide:ne,useExisting:F},{provide:Ra,useExisting:F}]),n.qOj],ngContentSelectors:Fi,decls:10,vars:12,consts:[[4,"ngIf"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(L,R){1&L&&(n.F$t(kn),n.YNc(0,cc,2,0,"ng-container",0),n.TgZ(1,"span",1),n.YNc(2,hl,2,0,"span",2),n.TgZ(3,"span",3),n.YNc(4,od,2,0,"ng-container",4),n.YNc(5,aa,4,2,"ng-container",4),n._UZ(6,"span",5),n.qZA()(),n.YNc(7,Ol,2,0,"span",6),n.TgZ(8,"span",7),n._uU(9),n.qZA()),2&L&&(n.Q6J("ngIf",!R._isEditing),n.xp6(1),n.Q6J("tabIndex",R.tabIndex)("disabled",R.disabled),n.uIk("aria-label",R.ariaLabel)("aria-describedby",R._ariaDescriptionId),n.xp6(1),n.Q6J("ngIf",R.leadingIcon),n.xp6(1),n.Q6J("ngSwitch",R._isEditing),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(2),n.Q6J("ngIf",R._hasTrailingIcon()),n.xp6(1),n.Q6J("id",R._ariaDescriptionId),n.xp6(1),n.Oqu(R.ariaDescription))},dependencies:[e.O5,e.RF,e.n9,ss,xe],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return F})();class Pt{constructor(Xe){}}const mn=(0,Ve.sb)(Pt);let hn=(()=>{class F extends mn{get chipFocusChanges(){return this._getChipStream(g=>g._onFocus)}get chipDestroyedChanges(){return this._getChipStream(g=>g.destroyed)}get disabled(){return this._disabled}set disabled(g){this._disabled=(0,qt.Ig)(g),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(g){this._explicitRole=g}get focused(){return this._hasFocusedChip()}constructor(g,L,R){super(g),this._elementRef=g,this._changeDetectorRef=L,this._dir=R,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Oe.x,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new n.n_E}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(g=>g._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(g=>{g.disabled=this._disabled,g._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(g){this._originatesFromChip(g)&&this._keyManager.onKeydown(g)}_isValidIndex(g){return g>=0&&gthis.tabIndex=g)}}_getChipStream(g){return this._chips.changes.pipe((0,fn.O)(null),(0,ai.w)(()=>(0,Ft.T)(...this._chips.map(g))))}_originatesFromChip(g){let L=g.target;for(;L&&L!==this._elementRef.nativeElement;){if(L.classList.contains("mat-mdc-chip"))return!0;L=L.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe((0,fn.O)(this._chips)).subscribe(g=>{const L=[];g.forEach(R=>R._getActions().forEach(ye=>L.push(ye))),this._chipActions.reset(L),this._chipActions.notifyOnChanges()}),this._keyManager=new Ce.Em(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(g=>this._skipPredicate(g)),this.chipFocusChanges.pipe((0,An.R)(this._destroyed)).subscribe(({chip:g})=>{const L=g._getSourceAction(document.activeElement);L&&this._keyManager.updateActiveItem(L)}),this._dir?.change.pipe((0,An.R)(this._destroyed)).subscribe(g=>this._keyManager.withHorizontalOrientation(g))}_skipPredicate(g){return!g.isInteractive||g.disabled}_trackChipSetChanges(){this._chips.changes.pipe((0,fn.O)(null),(0,An.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe((0,An.R)(this._destroyed)).subscribe(g=>{const R=this._chips.toArray().indexOf(g.chip);this._isValidIndex(R)&&g.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=R)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const g=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),L=this._chips.toArray()[g];L.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():L.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(J.Is,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-set"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,ne,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._chips=Dt)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&n.uIk("role",R.role)},inputs:{disabled:"disabled",role:"role"},features:[n.qOj],ngContentSelectors:Jl,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return F})();class $i{constructor(Xe,g){this.source=Xe,this.value=g}}class mi extends hn{constructor(Xe,g,L,R,ye,Dt,Mn){super(Xe,g,L),this._defaultErrorStateMatcher=R,this._parentForm=ye,this._parentFormGroup=Dt,this.ngControl=Mn,this.stateChanges=new Oe.x}}const Ps=(0,Ve.FD)(mi);let fl=(()=>{class F extends Ps{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(g){this._disabled=(0,qt.Ig)(g),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(g){this._placeholder=g,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(Z.kI.required)??!1}set required(g){this._required=(0,qt.Ig)(g),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(g){this._value=g}get chipBlurChanges(){return this._getChipStream(g=>g._onBlur)}constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,Mn,ye,Dt,vi),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new n.vpe,this.valueChange=new n.vpe,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),(0,Ft.T)(this.chipFocusChanges,this._chips.changes).pipe((0,An.R)(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(g){this._chipInput=g,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(g){!this.disabled&&!this._originatesFromChip(g)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(g){this._ariaDescribedbyIds=g,this._chipInput?.setDescribedByIds(g)}writeValue(g){this._value=g}registerOnChange(g){this._onChange=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this.disabled=g,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(g){g.keyCode===U.Mf?this._chipInput.focused&&(0,U.Vb)(g,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(g.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(g),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const g=this._chips.length?this._chips.toArray().map(L=>L.value):[];this._value=g,this.change.emit(new $i(this,g)),this.valueChange.emit(g),this._onChange(g),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(J.Is,8),n.Y36(Z.F,8),n.Y36(Z.sg,8),n.Y36(Ve.rD),n.Y36(Z.a5,10))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-grid"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,qe,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._chips=Dt)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(L,R){1&L&&n.NdJ("focus",function(){return R.focus()})("blur",function(){return R._blur()}),2&L&&(n.Ikx("tabIndex",R._chips&&0===R._chips.length?-1:R.tabIndex),n.uIk("role",R.role)("aria-disabled",R.disabled.toString())("aria-invalid",R.errorState),n.ekj("mat-mdc-chip-list-disabled",R.disabled)("mat-mdc-chip-list-invalid",R.errorState)("mat-mdc-chip-list-required",R.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[n._Bn([{provide:Ai.Eo,useExisting:F}]),n.qOj],ngContentSelectors:Jl,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return F})(),Rl=0,Ja=(()=>{class F{set chipGrid(g){g&&(this._chipGrid=g,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(g){this._addOnBlur=(0,qt.Ig)(g)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(g){this._disabled=(0,qt.Ig)(g)}get empty(){return!this.inputElement.value}constructor(g,L,R){this._elementRef=g,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new n.vpe,this.placeholder="",this.id="mat-mdc-chip-list-input-"+Rl++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=L.separatorKeyCodes,R&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(g){if(g){if(g.keyCode===U.ZH&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void g.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(g)}_keyup(g){!this._focusLastChipOnBackspace&&g.keyCode===U.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,g.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(g){(!g||this._isSeparatorKey(g))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),g?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(g){const L=this._elementRef.nativeElement;g.length?L.setAttribute("aria-describedby",g.join(" ")):L.removeAttribute("aria-describedby")}_isSeparatorKey(g){return!(0,U.Vb)(g)&&new Set(this.separatorKeyCodes).has(g.keyCode)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(en),n.Y36(Ai.G_,8))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._keydown(Dt)})("keyup",function(Dt){return R._keyup(Dt)})("blur",function(){return R._blur()})("focus",function(){return R._focus()})("input",function(){return R._onInput()}),2&L&&(n.Ikx("id",R.id),n.uIk("disabled",R.disabled||null)("placeholder",R.placeholder||null)("aria-invalid",R._chipGrid&&R._chipGrid.ngControl?R._chipGrid.ngControl.invalid:null)("aria-required",R._chipGrid&&R._chipGrid.required||null)("required",R._chipGrid&&R._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[n.TTD]})}return F})(),Md=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[Ve.rD,{provide:en,useValue:{separatorKeyCodes:[U.K5]}}],imports:[Ve.BQ,e.ez,Ve.si,Ve.BQ]})}return F})();var Do=C(3651),qa=C(4911),xr=C(7398),dc=C(9397),Ec=C(5177);const sd=["panel"];function uc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",0,1),n.NdJ("@panelAnimation.done",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye._animationDone.next(R))}),n.Hsn(2),n.qZA()}if(2&F){const g=Xe.id,L=n.oxw();n.Q6J("id",L.id)("ngClass",L._classList)("@panelAnimation",L.isOpen?"visible":"hidden"),n.uIk("aria-label",L.ariaLabel||null)("aria-labelledby",L._getPanelAriaLabelledby(g))}}const hc=["*"],Qa=(0,Jn.X$)("panelAnimation",[(0,Jn.SB)("void, hidden",(0,Jn.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,Jn.eR)(":enter, hidden => visible",[(0,Jn.ru)([(0,Jn.jt)("0.03s linear",(0,Jn.oB)({opacity:1})),(0,Jn.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,Jn.oB)({transform:"scaleY(1)"}))])]),(0,Jn.eR)(":leave, visible => hidden",[(0,Jn.jt)("0.075s linear",(0,Jn.oB)({opacity:0}))])]);let js=0;class pl{constructor(Xe,g){this.source=Xe,this.option=g}}const ad=(0,Ve.Kr)(class{}),Pi=new n.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Xa(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let ld=(()=>{class F extends ad{get isOpen(){return this._isOpen&&this.showPanel}_setColor(g){this._color=g,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(g){this._autoActiveFirstOption=(0,qt.Ig)(g)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(g){this._autoSelectActiveOption=(0,qt.Ig)(g)}get requireSelection(){return this._requireSelection}set requireSelection(g){this._requireSelection=(0,qt.Ig)(g)}set classList(g){this._classList=g&&g.length?(0,qt.du)(g).reduce((L,R)=>(L[R]=!0,L),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(g,L,R,ye){super(),this._changeDetectorRef=g,this._elementRef=L,this._defaults=R,this._activeOptionChanges=ae.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new n.vpe,this.opened=new n.vpe,this.closed=new n.vpe,this.optionActivated=new n.vpe,this._classList={},this.id="mat-autocomplete-"+js++,this.inertGroups=ye?.SAFARI||!1,this._autoActiveFirstOption=!!R.autoActiveFirstOption,this._autoSelectActiveOption=!!R.autoSelectActiveOption,this._requireSelection=!!R.requireSelection}ngAfterContentInit(){this._keyManager=new Ce.s1(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(g=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[g]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(g){this.panel&&(this.panel.nativeElement.scrollTop=g)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(g){const L=new pl(this,g);this.optionSelected.emit(L)}_getPanelAriaLabelledby(g){return this.ariaLabel?null:this.ariaLabelledby?(g?g+" ":"")+this.ariaLabelledby:g}_setVisibilityClasses(g){g[this._visibleClass]=this.showPanel,g[this._hiddenClass]=!this.showPanel}_setThemeClasses(g){g["mat-primary"]="primary"===this._color,g["mat-warn"]="warn"===this._color,g["mat-accent"]="accent"===this._color}_skipPredicate(g){return g.disabled}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(Pi),n.Y36(G.t4))};static#t=this.\u0275dir=n.lG2({type:F,viewQuery:function(L,R){if(1&L&&(n.Gf(n.Rgc,7),n.Gf(sd,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R.template=ye.first),n.iGM(ye=n.CRH())&&(R.panel=ye.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[n.qOj]})}return F})(),Sc=(()=>{class F extends ld{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new n.vpe,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(g){this._hideSingleSelectionIndicator=(0,qt.Ig)(g),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const g of this.options)g._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(g){return!1}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-autocomplete"]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,Ve.K7,5),n.Suo(ye,Ve.ey,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.optionGroups=Dt),n.iGM(Dt=n.CRH())&&(R.options=Dt)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[n._Bn([{provide:Ve.HF,useExisting:F}]),n.qOj],ngContentSelectors:hc,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(L,R){1&L&&(n.F$t(),n.YNc(0,uc,3,5,"ng-template"))},dependencies:[e.mk],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Qa]},changeDetection:0})}return F})();const Td={provide:Z.JU,useExisting:(0,n.Gpc)(()=>Bc),multi:!0},ca=new n.OlP("mat-autocomplete-scroll-strategy"),Dd={provide:ca,deps:[Do.aV],useFactory:function zd(F){return()=>F.scrollStrategies.reposition()}};let Lo=(()=>{class F{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(g){this._autocompleteDisabled=(0,qt.Ig)(g)}constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){this._element=g,this._overlay=L,this._viewContainerRef=R,this._zone=ye,this._changeDetectorRef=Dt,this._dir=vi,this._formField=Fo,this._document=Ya,this._viewportRuler=Rd,this._defaults=kd,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=ae.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Oe.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,qa.P)(()=>{const tc=this.autocomplete?this.autocomplete.options:null;return tc?tc.changes.pipe((0,fn.O)(tc),(0,ai.w)(()=>(0,Ft.T)(...tc.map(Iu=>Iu.onSelectionChange)))):this._zone.onStable.pipe((0,jn.q)(1),(0,ai.w)(()=>this.optionSelections))}),this._handlePanelKeydown=tc=>{(tc.keyCode===U.hY&&!(0,U.Vb)(tc)||tc.keyCode===U.LH&&(0,U.Vb)(tc,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),tc.stopPropagation(),tc.preventDefault())},this._trackedModal=null,this._scrollStrategy=Mn}ngAfterViewInit(){const g=this._getWindow();typeof g<"u"&&this._zone.runOutsideAngular(()=>g.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(g){g.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const g=this._getWindow();typeof g<"u"&&g.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&(0,Ce.Zf)(this._trackedModal,"aria-owns",this.autocomplete.id)}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&(0,Ce.iD)(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Ft.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,oi.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,oi.h)(()=>this._overlayAttached)):(0,Se.of)()).pipe((0,xr.U)(g=>g instanceof Ve.rN?g:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Ft.T)((0,ot.R)(this._document,"click"),(0,ot.R)(this._document,"auxclick"),(0,ot.R)(this._document,"touchend")).pipe((0,oi.h)(g=>{const L=(0,G.sA)(g),R=this._formField?this._formField._elementRef.nativeElement:null,ye=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&L!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!R||!R.contains(L))&&(!ye||!ye.contains(L))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(L)}))}writeValue(g){Promise.resolve(null).then(()=>this._assignOptionValue(g))}registerOnChange(g){this._onChange=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this._element.nativeElement.disabled=g}_handleKeydown(g){const L=g.keyCode,R=(0,U.Vb)(g);if(L===U.hY&&!R&&g.preventDefault(),this.activeOption&&L===U.K5&&this.panelOpen&&!R)this.activeOption._selectViaInteraction(),this._resetActiveItem(),g.preventDefault();else if(this.autocomplete){const ye=this.autocomplete._keyManager.activeItem,Dt=L===U.LH||L===U.JH;L===U.Mf||Dt&&!R&&this.panelOpen?this.autocomplete._keyManager.onKeydown(g):Dt&&this._canOpen()&&this.openPanel(),(Dt||this.autocomplete._keyManager.activeItem!==ye)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(g){let L=g.target,R=L.value;"number"===L.type&&(R=""==R?null:parseFloat(R)),this._previousValue!==R&&(this._previousValue=R,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(R),R||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===g.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(g=!1){this._formField&&"auto"===this._formField.floatLabel&&(g?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const g=this._zone.onStable.pipe((0,jn.q)(1)),L=this.autocomplete.options.changes.pipe((0,dc.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Ec.g)(0));return(0,Ft.T)(g,L).pipe((0,ai.w)(()=>(this._zone.run(()=>{const R=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),R!==this.panelOpen&&(this.panelOpen?(this._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,jn.q)(1)).subscribe(R=>this._setValueAndClose(R))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(g){const L=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(g):g;this._updateNativeInputValue(L??"")}_updateNativeInputValue(g){this._formField?this._formField._control.value=g:this._element.nativeElement.value=g,this._previousValue=g}_setValueAndClose(g){const L=this.autocomplete,R=g?g.source:this._pendingAutoselectedOption;R?(this._clearPreviousSelectedOption(R),this._assignOptionValue(R.value),this._onChange(R.value),L._emitSelectEvent(R),this._element.nativeElement.focus()):L.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),L._animationDone?L._animationDone.pipe((0,jn.q)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(g,L){this.autocomplete?.options?.forEach(R=>{R!==g&&R.selected&&R.deselect(L)})}_attachOverlay(){let g=this._overlayRef;g?(this._positionStrategy.setOrigin(this._getConnectedElement()),g.updateSize({width:this._getPanelWidth()})):(this._portal=new ct.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),g=this._overlay.create(this._getOverlayConfig()),this._overlayRef=g,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&g&&g.updateSize({width:this._getPanelWidth()})})),g&&!g.hasAttached()&&(g.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const L=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&L!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const g=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=g.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=g.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Do.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const g=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(g),this._positionStrategy=g,g}_setStrategyPositions(g){const L=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],R=this._aboveClass,ye=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:R},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:R}];let Dt;Dt="above"===this.position?ye:"below"===this.position?L:[...L,...ye],g.withPositions(Dt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const g=this.autocomplete;if(g.autoActiveFirstOption){let L=-1;for(let R=0;R .cdk-overlay-container [aria-modal="true"]');if(!g)return;const L=this.autocomplete.id;this._trackedModal&&(0,Ce.iD)(this._trackedModal,"aria-owns",L),(0,Ce.Zf)(g,"aria-owns",L),this._trackedModal=g}_clearFromModal(){this._trackedModal&&((0,Ce.iD)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(Do.aV),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(ca),n.Y36(J.Is,8),n.Y36(Ai.G_,9),n.Y36(e.K0,8),n.Y36(_t.rL),n.Y36(Pi,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[n.TTD]})}return F})(),Bc=(()=>{class F extends Lo{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(L,R){1&L&&n.NdJ("focusin",function(){return R._handleFocus()})("blur",function(){return R._onTouched()})("input",function(Dt){return R._handleInput(Dt)})("keydown",function(Dt){return R._handleKeydown(Dt)})("click",function(){return R._handleClick()}),2&L&&n.uIk("autocomplete",R.autocompleteAttribute)("role",R.autocompleteDisabled?null:"combobox")("aria-autocomplete",R.autocompleteDisabled?null:"list")("aria-activedescendant",R.panelOpen&&R.activeOption?R.activeOption.id:null)("aria-expanded",R.autocompleteDisabled?null:R.panelOpen.toString())("aria-controls",R.autocompleteDisabled||!R.panelOpen||null==R.autocomplete?null:R.autocomplete.id)("aria-haspopup",R.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[n._Bn([Td]),n.qOj]})}return F})(),Ta=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[Dd],imports:[Do.U8,Ve.Ng,Ve.BQ,e.ez,_t.ZD,Ve.Ng,Ve.BQ]})}return F})();function Ed(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-chip-row",11),n.NdJ("removed",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.removeInterest(ye))}),n._uU(1),n.TgZ(2,"button",12)(3,"mat-icon"),n._uU(4,"cancel"),n.qZA()()()}if(2&F){const g=Xe.$implicit;n.xp6(1),n.hij(" ",g.name," "),n.xp6(1),n.uIk("aria-label","remove "+g.name)}}function yc(F,Xe){if(1&F&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&F){const g=Xe.$implicit;n.Q6J("value",g),n.xp6(1),n.hij(" ",g.name," ")}}let ql=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt){super(g,L,R),this.categoryService=ye,this.notifier=Dt,this.categories=[],this.selectedCategories=[],this.searchInputCtl=new Z.NI,this.separatorKeysCodes=[U.K5,U.OC],this.message=""}componentName(){return"ChooseInterestComponent"}ngOnInit(){this.loadCategories(null,null),this.loadMyInterests()}getAutoCompleteItems(){return(0,Se.of)(this.categories)}loadCategories(g,L){this.notifier.log("Loading child categories for: "+g);let R=null==g?S.Z.CATEGORIES.LOADED_ROOT_CATEGORIES():S.Z.CATEGORIES.LOADED_CHILD_CATEGORIES();R=this.componentKey(R),this.categoryService.loadCategories(R,g,L),this.subscribe(R,null,(ye,Dt)=>{this.categories=Dt.data.content,this.notifier.log(this.categories)})}chooseInterest(g){this.selectedCategories.map(L=>L.id).indexOf(g.id)>-1||this.selectedCategories.push(g)}removeInterest(g){let L=this.selectedCategories.map(R=>R.id).indexOf(g.id);this.selectedCategories.splice(L,1)}saveInterests(){let g=this.componentKey(S.Z.CATEGORIES.INTERESTS_SAVED());this.categoryService.saveInterests(g,this.selectedCategories),this.subscribe(g,"/",(L,R)=>{this.notifier.success("Success!","Interests Saved!"),this.notifier.log(R.data)}),this.subscribe(this.getErrorKey(g),"/",(L,R)=>{this.notifier.error("Failed!","Could not save interests!"),this.notifier.log(R.data)})}loadMyInterests(){let g=this.componentKey(S.Z.CATEGORIES.FETCH_INTERESTS());this.categoryService.fetchInterests(g),this.subscribe(g,null,(L,R)=>{this.selectedCategories=R.data.map(Dt=>Dt.category),0===this.selectedCategories.length&&(this.selectedCategories=this.categories,this.message="No interests found on your profile. So we automatically filled some items for you. You can remove, search for new items for interest profile.")})}add(g){}selected(g){this.chooseInterest(g.option.value),this.searchInputCtl.setValue("")}searchInputChange(){this.loadCategories(null,this.searchInputCtl.value)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(nd.H),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-choose-interest"]],features:[n.qOj],decls:15,vars:9,consts:[[1,"row","col-sm-12","ps-2"],[1,"example-chip-list"],["aria-label","Fruit selection"],["chipGrid",""],[3,"removed",4,"ngFor","ngForOf"],["placeholder","Search Interests...",3,"formControl","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","matChipInputTokenEnd","input"],["searchInput",""],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"btn","btn-success",3,"click"],[3,"removed"],["matChipRemove",""],[3,"value"]],template:function(L,R){if(1&L&&(n.TgZ(0,"div",0)(1,"em"),n._uU(2),n.qZA(),n.TgZ(3,"mat-form-field",1)(4,"mat-chip-grid",2,3),n.YNc(6,Ed,5,2,"mat-chip-row",4),n.qZA(),n.TgZ(7,"input",5,6),n.NdJ("matChipInputTokenEnd",function(Dt){return R.add(Dt)})("input",function(){return R.searchInputChange()}),n.qZA(),n.TgZ(9,"mat-autocomplete",7,8),n.NdJ("optionSelected",function(Dt){return R.selected(Dt)}),n.YNc(11,yc,2,2,"mat-option",9),n.ALo(12,"async"),n.qZA()(),n.TgZ(13,"button",10),n.NdJ("click",function(){return R.saveInterests()}),n._uU(14,"SAVE INTERESTS"),n.qZA()()),2&L){const ye=n.MAs(5),Dt=n.MAs(10);n.xp6(2),n.Oqu(R.message),n.xp6(4),n.Q6J("ngForOf",R.selectedCategories),n.xp6(1),n.Q6J("formControl",R.searchInputCtl)("matChipInputFor",ye)("matAutocomplete",Dt)("matChipInputSeparatorKeyCodes",R.separatorKeysCodes),n.xp6(4),n.Q6J("ngForOf",n.lcZ(12,7,R.getAutoCompleteItems()))}},dependencies:[e.sg,Z.Fj,Z.JJ,Z.oH,fl,Ja,ka,qe,bi.Hw,Ai.KE,Sc,Ve.ey,Bc,e.Ov],styles:[".interests-chip-list[_ngcontent-%COMP%]{width:100%;padding:10px}"]})}return F})(),wc=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}fetchFollowStats(g,L){this.http.get(vn.e.USER.FETCH_FOLLOW_STATS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchFollowStats(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}followUser(g,L,R){this.http.post(vn.e.USER.FOLLOW_A_USER(L),{message:R}).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.followUser(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}unfollowUser(g,L){this.http.post(vn.e.USER.UNFOLLOW_A_USER(L),null).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.unfollowUser(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}getFollowers(g,L){let R=L?vn.e.USER.GET_MY_FOLLOWING():vn.e.USER.GET_MY_FOLLOWERS();this.http.get(R).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.getFollowers(g,L)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}getMyProfile(g){this.http.get(vn.e.USER.GET_MY_PROFILE()).subscribe(L=>{this.eventBus.publish(g,L)},L=>{this.handleError(L,R=>{this.getMyProfile(g)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})})}updateProfile(g,L){this.http.patch(vn.e.USER.UPDATE_MY_PROFILE(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.updateProfile(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();function kl(F,Xe){1&F&&n._UZ(0,"util-progress",4),2&F&&n.Q6J("bar",!0)}function Ql(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",5),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.onItemClick(ye))}),n.TgZ(1,"div",6),n.NdJ("touchstart",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.swipe(R,ye.SWIPE_START,ye.swipeKey))})("touchend",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.swipe(R,ye.SWIPE_END,ye.swipeKey))}),n.TgZ(2,"div",7)(3,"div",8),n._UZ(4,"img",9),n.TgZ(5,"div",10)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small")(9,"span",11),n._uU(10),n.qZA()()()()()()()}if(2&F){const g=Xe.$implicit;n.xp6(4),n.s9C("src",g.avatar,n.LSH),n.xp6(3),n.Oqu(g.name),n.xp6(3),n.hij("@",g.username,"")}}let Ac=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.userService=ye,this.isFollowing=!1,this.followers=[],this.itemClick=new n.vpe,this.swipeKey=this.componentKey("swipe")}componentName(){return"FollowersComponent"}ngOnInit(){this.loadFollowers(this.isFollowing?1:2),this.registerSwipe()}getTabHeaders(){let g=[];return g.push({id:1,title:"Following"}),g.push({id:2,title:"Followers"}),g}onTabSelected(g){this.loadFollowers(g)}loadFollowers(g){this.loading=!0;let L=1===g,R=this.componentKey(S.Z.USERS.GET_MY_FOLLOWERS());this.userService.getFollowers(R,L),this.subscribe(R,null,(ye,Dt)=>{this.followers=Dt.data.content,this.loading=!1})}onItemClick(g){this.router.navigateByUrl("/profile",{skipLocationChange:!0}).then(()=>{this.navigate("/u/"+g.username,L=>{}),this.itemClick.emit(!0)})}registerSwipe(){this.subscribe(this.swipeKey,null,(g,L)=>{L.data===this.SWIPE_RIGHT?(this.isFollowing=!1,this.onTabSelected(2)):(this.isFollowing=!0,this.onTabSelected(1))})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(wc))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-followers"]],inputs:{isFollowing:"isFollowing"},outputs:{itemClick:"itemClick"},features:[n.qOj],decls:4,vars:4,consts:[["id","followers"],[3,"tabHeaders","selectedTabId","onSelect"],[3,"bar",4,"ngIf"],["class","blog-post-area blog-post-area-comment bdr-top mt-2",3,"click",4,"ngFor","ngForOf"],[3,"bar"],[1,"blog-post-area","blog-post-area-comment","bdr-top","mt-2",3,"click"],[1,"container",3,"touchstart","touchend"],[1,"blog-post-top","d-flex","justify-content-between","py-1"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"image-rounded",3,"src"],[1,"content","ms-2"],[2,"color","#44d62c"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"app-tab-header",1),n.NdJ("onSelect",function(Dt){return R.onTabSelected(Dt)}),n.qZA(),n.YNc(2,kl,1,1,"util-progress",2),n.YNc(3,Ql,11,3,"section",3),n.qZA()),2&L&&(n.xp6(1),n.Q6J("tabHeaders",R.getTabHeaders())("selectedTabId",R.isFollowing?1:2),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngForOf",R.followers))},dependencies:[e.sg,e.O5,Ge.t,Wi],styles:["#followers[_ngcontent-%COMP%]{background:black}"]})}return F})();function Hc(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function Eo(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)("size",30)("message","Loading profile..")}function Xl(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"This field is required!"),n.qZA()())}function cd(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Select a gender!"),n.qZA()())}function fc(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Invalid!"),n.qZA()())}function xc(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Select a gender!"),n.qZA()())}function Po(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Invalid religion!"),n.qZA()())}function da(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",7)(1,"div",8)(2,"form",9)(3,"div",10)(4,"div",11),n._UZ(5,"img",12),n.TgZ(6,"div",13)(7,"input",14),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onImageSelected(R))}),n.qZA()()()(),n.TgZ(8,"div",15)(9,"label",16),n._uU(10,"Public Profile?"),n.TgZ(11,"span",17),n._uU(12,"*"),n.qZA(),n._uU(13,"\xa0\xa0"),n.qZA(),n._UZ(14,"input",18),n.qZA(),n.TgZ(15,"div")(16,"h5",19),n._uU(17,"BIRTHDAY"),n.TgZ(18,"span",17),n._uU(19,"*"),n.qZA()(),n._UZ(20,"input",20),n.qZA(),n.YNc(21,Xl,3,0,"div",21),n.TgZ(22,"div",22)(23,"h5",19),n._uU(24,"SELECT GENDER"),n.TgZ(25,"span",17),n._uU(26,"*"),n.qZA()(),n.TgZ(27,"div",23),n._UZ(28,"input",24),n.TgZ(29,"label",25),n._uU(30," Male "),n.qZA()(),n.TgZ(31,"div",23),n._UZ(32,"input",26),n.TgZ(33,"label",27),n._uU(34," Female "),n.qZA()(),n.TgZ(35,"div",23),n._UZ(36,"input",28),n.TgZ(37,"label",29),n._uU(38," Other "),n.qZA()(),n.YNc(39,cd,3,0,"div",21),n.qZA(),n.TgZ(40,"div")(41,"h5",19),n._uU(42,"MARITAL STATUS"),n.qZA(),n.TgZ(43,"select",30)(44,"option",31),n._uU(45,"Married"),n.qZA(),n.TgZ(46,"option",32),n._uU(47,"Unmarried"),n.qZA(),n.TgZ(48,"option",33),n._uU(49,"Divorced"),n.qZA(),n.TgZ(50,"option",34),n._uU(51,"Separated"),n.qZA(),n.TgZ(52,"option",35),n._uU(53,"Widower"),n.qZA(),n.TgZ(54,"option",36),n._uU(55,"Widow"),n.qZA(),n.TgZ(56,"option",37),n._uU(57,"Other"),n.qZA()(),n.YNc(58,fc,3,0,"div",21),n.qZA(),n.TgZ(59,"h5",19),n._uU(60,"BLOOD GROUP"),n.qZA(),n.TgZ(61,"div",38)(62,"div",23),n._UZ(63,"input",39),n.TgZ(64,"label",40),n._uU(65," A+ "),n.qZA()(),n.TgZ(66,"div",23),n._UZ(67,"input",41),n.TgZ(68,"label",42),n._uU(69," A- "),n.qZA()(),n.TgZ(70,"div",23),n._UZ(71,"input",43),n.TgZ(72,"label",44),n._uU(73," B+ "),n.qZA()(),n.TgZ(74,"div",23),n._UZ(75,"input",45),n.TgZ(76,"label",46),n._uU(77," B- "),n.qZA()(),n.TgZ(78,"div",23),n._UZ(79,"input",47),n.TgZ(80,"label",48),n._uU(81," AB+ "),n.qZA()(),n.TgZ(82,"div",23),n._UZ(83,"input",49),n.TgZ(84,"label",50),n._uU(85," AB- "),n.qZA()(),n.TgZ(86,"div",23),n._UZ(87,"input",51),n.TgZ(88,"label",52),n._uU(89," O+ "),n.qZA()(),n.TgZ(90,"div",23),n._UZ(91,"input",53),n.TgZ(92,"label",54),n._uU(93," O- "),n.qZA()(),n.YNc(94,xc,3,0,"div",21),n.qZA(),n.TgZ(95,"div")(96,"h5",19),n._uU(97,"RELIGION"),n.qZA(),n.TgZ(98,"select",55)(99,"option",56),n._uU(100,"Islam"),n.qZA(),n.TgZ(101,"option",57),n._uU(102,"Hindu"),n.qZA(),n.TgZ(103,"option",58),n._uU(104,"Buddhist"),n.qZA(),n.TgZ(105,"option",59),n._uU(106,"Christian"),n.qZA(),n.TgZ(107,"option",60),n._uU(108,"Humanity"),n.qZA(),n.TgZ(109,"option",61),n._uU(110,"Other"),n.qZA()(),n.YNc(111,Po,3,0,"div",21),n.qZA(),n.TgZ(112,"mat-dialog-actions",62)(113,"button",63),n._uU(114,"CANCEL"),n.qZA(),n.TgZ(115,"button",64),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.updateProfile())}),n._uU(116,"UPDATE "),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(2),n.Q6J("formGroup",g.profileForm),n.xp6(3),n.s9C("src",g.hasProfilePhoto()?null==g.profile?null:g.profile.photo:"assets/img/default-avatar.png",n.LSH),n.xp6(16),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.birthday)),n.xp6(18),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.gender)),n.xp6(19),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.marital_status)),n.xp6(36),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.gender)),n.xp6(17),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.religion)),n.xp6(4),n.Q6J("mat-dialog-close",!0)("disabled",g.profileForm.invalid)}}let Ll=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya){super(L,R,ye),this.location=g,this.notifier=Dt,this.userService=Mn,this.auth=vi,this.datePipe=Fo,this.fileUploadService=Ya,this.userId=null,this.profileForm=new Z.cw({gender:new Z.NI("",[Z.kI.required]),birthday:new Z.NI("",[Z.kI.required]),public:new Z.NI(!1),blood_group:new Z.NI(""),marital_status:new Z.NI(""),religion:new Z.NI(""),use_photo_as_avatar:new Z.NI("")}),this.profile=null,this.uploadFiles=[]}componentName(){return"UpdateProfileComponent"}ngOnInit(){this.fetchMyProfile()}fetchMyProfile(){this.loading=!0;let g=this.componentKey(S.Z.USERS.GET_MY_PROFILE());this.userService.getMyProfile(g),this.subscribe(g,null,(L,R)=>{this.profile=R.data,this.loading=!1,this.updateForm(this.profile)}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{let ye=R.data;404==ye.error.code&&(this.loading=!1,this.notifier.info("No profile","Fill the form to create your profile ")),this.notifier.log(ye)})}updateProfile(){let g=this.mapToProfile(this.profileForm.value),L=this.componentKey(S.Z.USERS.UPDATE_MY_PROFILE());this.userService.updateProfile(L,g),this.subscribe(L,null,(R,ye)=>{this.profile=ye.data}),this.subscribe(this.getErrorKey(L),null,(R,ye)=>{this.notifier.log(ye.data)})}mapToProfile(g){return{gender:g.gender,birthday:new Date(g.birthday),blood_group:""===g.blood_group?null:g.blood_group,marital_status:""===g.marital_status?null:g.marital_status,religion:""===g.religion?null:g.religion,public:""!==g.public,use_photo_as_avatar:!0,photo:null==this.profile?.photo?null:this.profile.photo,user_id:this.auth.getAuth().id}}updateForm(g){null!=g&&(this.profileForm.controls.public.setValue(g.public),this.profileForm.controls.birthday.setValue(this.datePipe.transform(g.birthday,"yyyy-MM-dd")),this.profileForm.controls.gender.setValue(g.gender),this.profileForm.controls.marital_status.setValue(g.marital_status),this.profileForm.controls.blood_group.setValue(g.blood_group),this.profileForm.controls.religion.setValue(g.religion))}hasProfilePhoto(){return null!=this.profile?.photo&&""!==this.profile?.photo.trim()}onImageSelected(g){if(this.uploadFiles.length>=3)this.notifier.info("Operation not allowed!","You can upload 3 photos in a post.");else if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R),this.uploadPhoto())}}}uploadPhoto(){this.loading=!0;let g=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.userId+""));this.fileUploadService.uploadImages(g,this.uploadFiles.map(L=>L.file)),this.subscribe(g,null,(L,R)=>{this.loading=!1,null!=this.profile&&(this.profile.photo=R.data[0].thumb_url)}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.loading=!1,this.notifier.error("Error",R.data.error.message)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(e.Ye),n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(te.l),n.Y36(wc),n.Y36(_e.e),n.Y36(e.uU),n.Y36(oe.J))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-update-profile"]],inputs:{userId:"userId"},features:[n.qOj],decls:6,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding","size","message",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],["class","login-form-section",4,"ngIf"],[3,"bar"],[3,"padding","size","message"],[1,"login-form-section"],[1,"astha-login-form-area"],["action","POST",3,"formGroup"],[1,"profile-picture-area","text-center"],[1,"profile-avater"],["alt","",1,"profile-avatar-new","profile-img-rounded",3,"src"],[1,"upload-img-area"],["type","file","id","image-upload",3,"change"],[1,"input-group"],["for","public",1,"form-check-label"],[1,"astaric-required"],["id","public","type","checkbox","name","public","formControlName","public",1,"form-check"],[1,"update-profile-label"],["type","date","name","birthday","placeholder","Birthday","formControlName","birthday","required","required",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"input-group","d-inline"],[1,"form-check"],["type","radio","name","gender","id","exampleRadios1","value","MALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios1",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios2","value","FEMALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios2",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios3","value","OTHER","formControlName","gender",1,"form-check-input"],["for","exampleRadios3",1,"form-check-label"],["name","marital_status","formControlName","marital_status",1,"form-select"],["value","MARRIED"],["value","UNMARRIED"],["value","DIVORCED"],["value","SEPARATED"],["value","WIDOWER"],["value","WIDOW"],["value","OTHERS"],[1,"input-group","form-check-inline"],["type","radio","name","blood_group","id","bg1","value","A_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg1",1,"form-check-label"],["type","radio","name","blood_group","id","bg2","value","A_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg2",1,"form-check-label"],["type","radio","name","blood_group","id","bg3","value","B_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg3",1,"form-check-label"],["type","radio","name","blood_group","id","bg4","value","B_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg4",1,"form-check-label"],["type","radio","name","blood_group","id","bg5","value","AB_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg5",1,"form-check-label"],["type","radio","name","blood_group","id","bg6","value","AB_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg6",1,"form-check-label"],["type","radio","name","blood_group","id","bg7","value","O_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg7",1,"form-check-label"],["type","radio","name","blood_group","id","bg8","value","O_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg8",1,"form-check-label"],["name","religion","formControlName","religion",1,"form-select"],["value","ISLAM"],["value","HINDU"],["value","BUDDHIST"],["value","CHRISTIAN"],["value","HUMANITY"],["value","OTHER"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close","disabled","click"],[1,"text-warning"]],template:function(L,R){1&L&&(n.YNc(0,Hc,1,1,"util-progress",0),n.YNc(1,Eo,1,3,"util-progress",1),n.TgZ(2,"div")(3,"div",2),n._UZ(4,"i",3),n.qZA()(),n.YNc(5,da,117,9,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(4),n.Q6J("ngIf",!R.loading))},dependencies:[e.O5,Z._Y,Z.YN,Z.Kr,Z.Fj,Z.Wl,Z.EJ,Z._,Z.JJ,Z.JL,Z.Q7,Z.sg,Z.u,Re.ZT,Re.H8,mt.lW,Ge.t],styles:[".update-profile-label[_ngcontent-%COMP%]{color:#44d62c;margin:20px 0 5px}input[type=date][_ngcontent-%COMP%]{color:#000!important}.astaric-required[_ngcontent-%COMP%]{color:red}.action-buttons[_ngcontent-%COMP%]{margin-top:20px;padding-bottom:20px;display:flex;flex-direction:row;align-content:center;justify-content:space-between}.form-check[_ngcontent-%COMP%]{margin-right:20px}.profile-avatar-new[_ngcontent-%COMP%]{height:70px;width:70px;margin-bottom:10px;object-fit:cover}.profile-picture-area[_ngcontent-%COMP%]{margin-bottom:20px}.upload-img-area[_ngcontent-%COMP%]{font-size:12px}.btn-change-photo[_ngcontent-%COMP%]{color:#44d62c;margin-bottom:20px}"]})}return F})();var as=C(2071),pc=C(1822);function ir(F,Xe){1&F&&n._UZ(0,"util-progress")}function k(F,Xe){1&F&&n._UZ(0,"app-post",2),2&F&&n.Q6J("post",Xe.$implicit)}function j(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,k,1,1,"app-post",1),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.posts?null:g.posts.content)}}let pe=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.postService=ye,this.username=null,this.posts=null}componentName(){return"PostListComponent"}ngOnInit(){this.fetchPosts()}fetchPosts(){if(null==this.username)return;this.loading=!0;let g=this.componentKey(S.Z.POSTS.FETCH_USER_POSTS(this.username));this.postService.fetchUserPosts(g,this.username,{}),this.subscribe(g,null,(L,R)=>{this.posts=R.data,this.loading=!1})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-list"]],inputs:{username:"username"},features:[n.qOj],decls:2,vars:2,consts:[[4,"ngIf"],[3,"post",4,"ngFor","ngForOf"],[3,"post"]],template:function(L,R){1&L&&(n.YNc(0,ir,1,0,"util-progress",0),n.YNc(1,j,2,1,"div",0)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,Ge.t,oa]})}return F})();function ke(F,Xe){1&F&&(n.TgZ(0,"mat-icon",2),n._uU(1,"reviews"),n.qZA(),n._uU(2," Reviews "))}function nt(F,Xe){1&F&&(n.TgZ(0,"mat-icon",2),n._uU(1,"dynamic_feed"),n.qZA(),n._uU(2," Posts "))}let Kt=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.username=null}componentName(){return"UserResourcesComponent"}ngOnInit(){}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-user-resources"]],inputs:{username:"username"},features:[n.qOj],decls:7,vars:2,consts:[["mat-tab-label",""],[3,"username"],[1,"example-tab-icon"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-tab-group")(1,"mat-tab"),n.YNc(2,ke,3,0,"ng-template",0),n._UZ(3,"app-review-list",1),n.qZA(),n.TgZ(4,"mat-tab"),n.YNc(5,nt,3,0,"ng-template",0),n._UZ(6,"app-post-list",1),n.qZA()()),2&L&&(n.xp6(3),n.Q6J("username",R.username),n.xp6(3),n.Q6J("username",R.username))},dependencies:[bi.Hw,vr,to,ga,Bs,pe],styles:[".example-tab-icon[_ngcontent-%COMP%]{margin-right:8px} mat-tab-header{align-self:center}"]})}return F})();function xn(F,Xe){1&F&&n._UZ(0,"util-progress",26),2&F&&n.Q6J("bar",!0)}function Mi(F,Xe){1&F&&n._UZ(0,"img",28)}function Oi(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Mi,1,0,"img",27),n.TgZ(2,"h5"),n._uU(3),n.qZA()()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.leaderboard?null:g.leaderboard.badges),n.xp6(2),n.Oqu(null==g.leaderboard||null==g.leaderboard.current_badge?null:g.leaderboard.current_badge.title)}}function Hr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",33),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.unfollow(R.username))}),n._uU(1,"Pending"),n.qZA()}}function ws(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.unfollow(R.username))}),n._uU(1,"Following"),n.qZA()}}function tl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.follow(R.username))}),n._uU(1,"Follow"),n.qZA()}}function Zs(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Hr,2,0,"span",31),n.YNc(2,ws,2,0,"span",32),n.YNc(3,tl,2,0,"span",30),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngIf","PENDING"===(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf","ACCEPTED"===(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf","REJECTED"===(null==g.followStats?null:g.followStats.my_follow_state))}}function Uc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.follow(R.username))}),n._uU(1,"Follow"),n.qZA()}}function ls(F,Xe){if(1&F&&(n.TgZ(0,"button",29),n.YNc(1,Zs,4,3,"div",16),n.YNc(2,Uc,2,0,"span",30),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngIf",null!=(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf",null==(null==g.followStats?null:g.followStats.my_follow_state))}}let Gd=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){super(L,R,ye),this.location=g,this.authService=Dt,this.notifier=Mn,this.leaderboardService=vi,this.walletService=Fo,this.dialog=Ya,this.userService=Rd,this.leaderboard=null,this.followStats=null,this.username=null,this.username=kd.snapshot.params.username}componentName(){return"ProfileComponent"}ngOnInit(){null==this.username&&(this.username=this.getAuthUsername()),this.fetchLeaderboard(),this.fetchFollowStats()}getAuthUsername(){return this.getAuth().username}goBack(){this.location.back()}isLoadComplete(){return null!=this.leaderboard}myProfile(){return this.username===this.getAuthUsername()}getAuth(){return this.authService.getAuth()}fetchLeaderboard(){if(null==this.username)return;let g=this.componentKey(S.Z.LEADERBOARDS.FETCH_LEADERBOARD(this.username));this.leaderboardService.fetchLeaderboard(g,this.username),this.subscribe(g,null,(L,R)=>{this.leaderboard=R.data})}getBadgeCount(){return null==this.leaderboard?0:this.leaderboard.badges.length}fetchFollowStats(){if(null==this.username)return;let g=this.componentKey(S.Z.USERS.FETCH_FOLLOW_STATS(this.username));this.userService.fetchFollowStats(g,this.username),this.subscribe(g,null,(L,R)=>{this.followStats=R.data})}follow(g){if(null==g)return;const L=this.componentKey(S.Z.USERS.FOLLOW_USER(g));this.userService.followUser(L,g,""),this.subscribe(L,null,(R,ye)=>{let Dt=ye.data;this.notifier.log(this.followStats),this.followStats&&(this.followStats.my_follow_state=Dt.state)})}unfollow(g){if(null==g)return;const L=this.componentKey(S.Z.USERS.UNFOLLOW_USER(g));this.userService.unfollowUser(L,g),this.subscribe(L,null,(R,ye)=>{this.followStats&&(this.followStats.my_follow_state=null)})}isMyProfile(){return!!this.authService.isAuthenticated()&&this.getAuthUsername()===this.username}openFollowingDialog(g){if(!this.isMyProfile())return;const L=this.dialog.open(Ac);let R=L.componentInstance;R.isFollowing=g,R.itemClick.subscribe(ye=>{L.close()}),L.afterClosed().subscribe(ye=>{this.reloadRoute()})}openLeaderboard(){if(null==this.leaderboard)return;let L=this.dialog.open(as.B,{width:"600px"}).componentInstance;L.leaderboard=this.leaderboard,L.username=this.username}openUpdateProfileDialog(){if(!this.isMyProfile())return;this.dialog.open(Ll).afterClosed().subscribe(R=>{this.reloadRoute()})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(e.Ye),n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(_e.e),n.Y36(te.l),n.Y36(ce.S),n.Y36(pc.X),n.Y36(Re.uw),n.Y36(wc),n.Y36(l.gz))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-profile"]],features:[n.qOj],decls:44,vars:11,consts:[[3,"bar",4,"ngIf"],[1,"header-area","px-3","py-1"],[1,"container"],[1,"row","align-items-center"],[1,"col-4"],[1,"header-left"],[3,"click"],[1,"icon-left-small"],[1,"site-logo"],[1,"edit-profile-section","right",3,"click"],[1,"icon-edit",2,"font-size","1.2em"],[1,"profile-section","py-2"],[1,"profile-picture-area","text-center"],[1,"profile-avater"],["alt","",1,"profile-avatar-new","profile-img-rounded",2,"min-height","100px",3,"src"],[1,"author-name"],[4,"ngIf"],[1,"username"],[1,"action-area"],[1,"col-4","text-center",3,"click"],["class","btn btn-outline-light",4,"ngIf"],[1,"col-5","text-center",3,"click"],[1,"scans-users-codes-area"],[1,"row",2,"padding","0 5% 0 5%"],[1,"btn","btn-outline-light",3,"click"],[3,"username"],[3,"bar"],["src","assets/img/recent-acchievements/rating/badge1.png",4,"ngFor","ngForOf"],["src","assets/img/recent-acchievements/rating/badge1.png"],[1,"btn","btn-outline-light"],[3,"click",4,"ngIf"],["class","btn-selected-not-yet",3,"click",4,"ngIf"],["class","btn-selected",3,"click",4,"ngIf"],[1,"btn-selected-not-yet",3,"click"],[1,"btn-selected",3,"click"]],template:function(L,R){1&L&&(n.YNc(0,xn,1,1,"util-progress",0),n.TgZ(1,"div")(2,"header",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"a",6),n.NdJ("click",function(){return R.goBack()}),n._UZ(8,"i",7),n.qZA()()(),n.TgZ(9,"div",4)(10,"div",8)(11,"h3"),n._uU(12,"Profile"),n.qZA()()(),n.TgZ(13,"div",4)(14,"div",9),n.NdJ("click",function(){return R.openUpdateProfileDialog()}),n._UZ(15,"i",10),n.qZA()()()()(),n.TgZ(16,"div",11)(17,"div",2)(18,"div",12)(19,"div",13),n._UZ(20,"img",14),n.qZA(),n.TgZ(21,"div",15),n.YNc(22,Oi,4,2,"div",16),n.TgZ(23,"h2"),n._uU(24),n.qZA(),n.TgZ(25,"span",17),n._uU(26),n.qZA()()(),n.TgZ(27,"div",18)(28,"div",19),n.NdJ("click",function(){return R.openFollowingDialog(!0)}),n.TgZ(29,"h2"),n._uU(30),n.qZA(),n.TgZ(31,"h4"),n._uU(32,"Following"),n.qZA()(),n.YNc(33,ls,3,2,"button",20),n.TgZ(34,"div",21),n.NdJ("click",function(){return R.openFollowingDialog(!1)}),n.TgZ(35,"h2"),n._uU(36),n.qZA(),n.TgZ(37,"h4"),n._uU(38,"Followers"),n.qZA()()(),n.TgZ(39,"div",22)(40,"div",23)(41,"button",24),n.NdJ("click",function(){return R.openLeaderboard()}),n._uU(42),n.qZA()()()()(),n._UZ(43,"app-user-resources",25),n.qZA()),2&L&&(n.Q6J("ngIf",!R.isLoadComplete()),n.xp6(1),n.Q6J("@dataLoaded",R.isLoadComplete()?"loaded":"loading"),n.xp6(19),n.s9C("src",null!=(null==R.leaderboard?null:R.leaderboard.avatar)?null==R.leaderboard?null:R.leaderboard.avatar:"assets/img/default-avatar.png",n.LSH),n.xp6(2),n.Q6J("ngIf",R.getBadgeCount()>0),n.xp6(2),n.Oqu(null==R.leaderboard?null:R.leaderboard.name),n.xp6(2),n.hij("@",R.username,""),n.xp6(4),n.Oqu(null==R.followStats?null:R.followStats.following_count),n.xp6(3),n.Q6J("ngIf",null!=R.leaderboard),n.xp6(3),n.Oqu(null==R.followStats?null:R.followStats.followers_count),n.xp6(6),n.hij("EARNED POINTS: ",null==R.leaderboard?null:R.leaderboard.points," (?)"),n.xp6(1),n.Q6J("username",R.username))},dependencies:[e.sg,e.O5,Ge.t,Kt],styles:['img[_ngcontent-%COMP%]{max-width:100%;height:auto}body[_ngcontent-%COMP%]{background-color:var(--body-color);color:#222126}.header-area[_ngcontent-%COMP%] .header-left[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .header-area[_ngcontent-%COMP%] .site-logo[_ngcontent-%COMP%]{color:#f5f5f5}.header-area[_ngcontent-%COMP%] .site-logo[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center;font-size:22px;font-weight:600}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%]{margin-top:15px}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:25px;font-weight:600}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--light-gray);font-size:var(--font-size-14px)}.profile-section[_ngcontent-%COMP%] .profile-avater[_ngcontent-%COMP%]{position:relative;display:inline-block}.profile-avatar-new[_ngcontent-%COMP%]{display:inline;margin:0 auto;height:60px!important;width:100px!important;object-fit:cover}.profile-section[_ngcontent-%COMP%] .profile-avater[_ngcontent-%COMP%]:after{position:absolute;content:"";left:0;top:0;width:100%;height:100%;border:3px solid #756CB5;z-index:2;display:inline-block;border-radius:50%}.scans-users-codes-area[_ngcontent-%COMP%]{border-top:1px solid var(--light-gray);padding-top:20px;margin-bottom:20px}.scans-users-codes-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--light-gray);font-size:var(--font-size-14px);text-transform:capitalize}.author-name[_ngcontent-%COMP%] .username[_ngcontent-%COMP%]{color:#44d62c}.scans-users-codes-area[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{color:#f5f5f5}.action-area[_ngcontent-%COMP%]{margin:10px 0 0 10px;display:flex;justify-content:center;flex-direction:row}.action-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin:10px;min-width:25%}.btn-selected[_ngcontent-%COMP%]{color:#44d62c;font-size:.8em}.btn-selected-not-yet[_ngcontent-%COMP%]{color:orange;outline-color:orange;font-size:.8em}.edit-profile-section[_ngcontent-%COMP%]{float:right}']})}return F})();var _c=C(9538);function Sd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function Eu(F,Xe){if(1&F&&n._UZ(0,"app-single-review-item",4),2&F){const g=n.oxw();n.Q6J("review",g.review)}}let Ad=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.reviewService=Dt,this.seoTitle=Mn,this.seoMeta=vi,this.productSlug="",this.reviewSlug="",this.postId=0,this.review=null,this.productSlug=ye.snapshot.params.productSlug,this.reviewSlug=ye.snapshot.params.reviewSlug,this.postId=ye.snapshot.params.postId}componentName(){return"ReviewDetailsComponent"}ngOnInit(){let g=this.componentKey(S.Z.REVIEWS.LOAD_REVIEW(this.reviewSlug));this.reviewService.fetchReview(g,this.productSlug,this.reviewSlug),this.subscribe(g,null,(L,R)=>{this.review=R.data,this.resolveSeo(this.review),this.loading=!1})}resolveSeo(g){null!=g&&super.initSeoItems(this.seoTitle,this.seoMeta,g.title,g.pros+", "+g.cons,[g.product_name+" review","Rating for "+g.product_name],null,null,this.getCoverPhoto(g),this.getPermalink())}getCoverPhoto(g){return null==g.photos||0==g.photos.length?null:g.photos[0]}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(se.F),n.Y36(nn.Dx),n.Y36(nn.h_))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-review-details"]],features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"review",4,"ngIf"],[3,"postId"],[3,"bar"],[3,"review"]],template:function(L,R){1&L&&(n.YNc(0,Sd,1,1,"util-progress",0),n.YNc(1,Eu,1,1,"app-single-review-item",1),n._UZ(2,"app-conversation-area",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("postId",R.postId))},dependencies:[e.O5,Ge.t,El,Al]})}return F})();function Wd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function Pl(F,Xe){if(1&F&&n._UZ(0,"app-post",4),2&F){const g=n.oxw();n.Q6J("post",g.post)("fullVersion",!0)}}let ua=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.postService=Dt,this.dialog=Mn,this.postId=0,this.post=null,this.postId=ye.snapshot.params.postId}componentName(){return"PostDetailsComponent"}ngOnInit(){this.loadData(this.postId)}loadData(g){this.loading=!0;const L=this.componentKey(S.Z.POSTS.FETCH_POST(g));this.postService.fetchPost(L,this.postId),this.subscribe(L,null,(R,ye)=>{this.post=ye.data,this.loading=!1})}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g,R.onPosted.subscribe(ye=>{this.post=ye,L.close()}),R.onCancel.subscribe(ye=>{L.close()})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(Re.uw))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-details"]],inputs:{postId:"postId",post:"post"},features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"post","fullVersion",4,"ngIf"],[3,"postId"],[3,"bar"],[3,"post","fullVersion"]],template:function(L,R){1&L&&(n.YNc(0,Wd,1,1,"util-progress",0),n.YNc(1,Pl,1,2,"app-post",1),n._UZ(2,"app-conversation-area",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("postId",R.postId))},dependencies:[e.O5,Ge.t,oa,Al]})}return F})();var Or=C(9029);function Vc(F,Xe){1&F&&n._UZ(0,"util-progress",18),2&F&&n.Q6J("bar",!0)}function zo(F,Xe){1&F&&(n.TgZ(0,"em",19),n._uU(1,"Write at least 3 characters to start searching"),n.qZA())}function zi(F,Xe){1&F&&n._UZ(0,"util-progress",20),2&F&&n.Q6J("padding",100)}function Nl(F,Xe){1&F&&(n.TgZ(0,"div",21),n._UZ(1,"i",22),n.TgZ(2,"h3",23),n._uU(3,"Search for products"),n.qZA()())}function La(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-single-product-item",26),n.NdJ("onClick",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.onProductClick(ye))}),n.qZA()}2&F&&n.Q6J("product",Xe.$implicit)}function $d(F,Xe){if(1&F&&(n.TgZ(0,"div",24),n.YNc(1,La,1,1,"app-single-product-item",25),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.products)}}let mc=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.productService=ye,this.query=new Z.NI(""),this.productPage=null,this.products=[],this.filters={q:"",brand_id:null,category_id:null,min_retail_price:0,max_retail_price:9e4},this.showFilter=!1}componentName(){return"SearchComponent"}ngOnInit(){this.loading=!1,F.setDefaultFocus()}onQueryEntering(g){this.query.value.length<3||(this.filters.q=this.query.value,this.searchProducts())}static setDefaultFocus(){document.getElementById("search-input")?.focus()}searchProducts(){this.loading=!0;let g=this.componentKey(S.Z.PRODUCTS.SEARCH_PRODUCTS());this.productService.search(g,this.filters),this.subscribe(g,null,(L,R)=>{this.products=this.mapToSlice(R.data.content),this.loading=!1})}onProductClick(g){this.navigate("/products/"+g.product_id+"/"+g.product_slug,L=>{console.log(g)})}toggleFilter(){this.showFilter=!this.showFilter}onFilter(g){g.q=this.query.value,this.filters=g,this.searchProducts()}mapToSlice(g){let L=[];return g.forEach(R=>{L.push({image:R.cover_photo,description:R.description,product_id:R.id,product_name:R.name,product_slug:R.slug,average_rating:R.average_rating})}),L}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Qt.M))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-search"]],features:[n.qOj],decls:24,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"search-area"],[1,"container"],[1,"search-box","d-flex","justify-content-center"],[1,"search"],["type","text","id","search-input","placeholder","Search for products, jobs anything",1,"search-input",3,"formControl","input"],["href","#",1,"search-icon"],[1,"flaticon-search-interface-symbol"],["style","padding: 0 0 0 2px",4,"ngIf"],[1,"product-section","pt-4","mb-1"],[1,"row","align-items-center","mb-3"],[1,"col-7"],[1,"col-5",3,"click"],[1,"product-header-right","d-flex","justify-content-between"],["src","../../../../../assets/img/FunnelSimple.png","alt",""],[3,"padding",4,"ngIf"],["class","centerize",4,"ngIf"],["class","product-list-area",4,"ngIf"],[3,"bar"],[2,"padding","0 0 0 2px"],[3,"padding"],[1,"centerize"],[1,"flaticon-search-interface-symbol",2,"font-size","4em"],[1,"mt-3"],[1,"product-list-area"],["class","item",3,"product","onClick",4,"ngFor","ngForOf"],[1,"item",3,"product","onClick"]],template:function(L,R){1&L&&(n.YNc(0,Vc,1,1,"util-progress",0),n.TgZ(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"input",5),n.NdJ("input",function(Dt){return R.onQueryEntering(Dt)}),n.qZA(),n.TgZ(6,"a",6),n._UZ(7,"i",7),n.qZA()()(),n.YNc(8,zo,2,0,"em",8),n.qZA()(),n.TgZ(9,"section",9)(10,"div",2)(11,"div",10)(12,"div",11)(13,"h5"),n._uU(14,"Search Results"),n.qZA()(),n.TgZ(15,"div",12),n.NdJ("click",function(){return R.toggleFilter()}),n.TgZ(16,"div",13)(17,"h5"),n._uU(18,"Filter"),n.qZA(),n._UZ(19,"img",14),n.qZA()()(),n._UZ(20,"div"),n.qZA(),n.YNc(21,zi,1,1,"util-progress",15),n.YNc(22,Nl,4,0,"div",16),n.YNc(23,$d,2,1,"div",17),n.qZA()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(5),n.Q6J("formControl",R.query),n.xp6(3),n.Q6J("ngIf",R.query.value.length>0&&R.query.value.length<3),n.xp6(12),n.Q6J("@dataLoaded",R.showFilter?"loaded":"loading"),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&0===R.products.length),n.xp6(1),n.Q6J("ngIf",R.products.length>0))},dependencies:[e.sg,e.O5,Z.Fj,Z.JJ,Z.oH,Ge.t,Or.d],styles:[".product-list-area[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center;align-items:stretch;align-content:space-between}.product-list-area[_ngcontent-%COMP%]:after{display:block;margin:10px;flex:999 999 auto}.item[_ngcontent-%COMP%]{flex:0 0 auto;margin:10px}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{height:auto;position:relative}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:40px;width:95%}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:16px;position:absolute;height:auto;width:auto;top:50%;left:12px;margin-top:-9px;display:inline-block}"]})}return F})();var jc=C(1715),_l=C(5195);function Su(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.itemClick(R.notification))}),n.qZA()}if(2&F){const g=n.oxw(2);n.s9C("src",g.notification.image,n.LSH),n.s9C("alt",g.notification.title)}}function nu(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onActionRead(R.notification.id,!0))}),n._uU(1,"MARK READ"),n.qZA()}}function Pa(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onActionRead(R.notification.id,!1))}),n._uU(1,"MARK UNREAD"),n.qZA()}}const ao=function(F){return{read:F}};function Zc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-card",1)(1,"mat-card-title-group")(2,"mat-card-title",2),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.itemClick(R.notification))}),n._uU(3),n.qZA(),n.TgZ(4,"mat-card-subtitle"),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.YNc(7,Su,1,2,"img",3),n.qZA(),n.TgZ(8,"mat-card-content",2),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.itemClick(R.notification))}),n._uU(9),n.qZA(),n.TgZ(10,"mat-card-actions",4),n.YNc(11,nu,2,0,"button",5),n.YNc(12,Pa,2,0,"button",5),n.qZA()()}if(2&F){const g=n.oxw();n.Q6J("ngClass",n.VKq(10,ao,g.notification.read)),n.xp6(3),n.hij(" ",g.notification.title," "),n.xp6(2),n.Oqu(n.xi3(6,7,g.notification.created_at,!0)),n.xp6(2),n.Q6J("ngIf",null!=g.notification.image),n.xp6(2),n.hij(" ",g.notification.description," "),n.xp6(2),n.Q6J("ngIf",!g.notification.read),n.xp6(1),n.Q6J("ngIf",g.notification.read)}}let Go=(()=>{class F extends I.H{constructor(g,L,R){super(g,L,R),this.notification=null,this.notificationItemClick=new n.vpe,this.onMarkRead=new n.vpe}componentName(){return"NotificationComponent"}ngOnInit(){}itemClick(g){null!=g&&this.notificationItemClick.emit(g)}onActionRead(g,L){this.onMarkRead.emit({notificationId:g,read:L})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-notification"]],inputs:{notification:"notification"},outputs:{notificationItemClick:"notificationItemClick",onMarkRead:"onMarkRead"},features:[n.qOj],decls:1,vars:1,consts:[["class","notification-card",3,"ngClass",4,"ngIf"],[1,"notification-card",3,"ngClass"],[3,"click"],["class","card-img-sm-cover","mat-card-sm-image","",3,"src","alt","click",4,"ngIf"],["align","end"],["mat-button","",3,"click",4,"ngIf"],["mat-card-sm-image","",1,"card-img-sm-cover",3,"src","alt","click"],["mat-button","",3,"click"]],template:function(L,R){1&L&&n.YNc(0,Zc,13,12,"mat-card",0),2&L&&n.Q6J("ngIf",R.notification)},dependencies:[e.mk,e.O5,_l.a8,_l.hq,_l.dn,_l.vP,_l.$j,_l.n5,_l.C1,Yr.G],styles:[".notification-card[_ngcontent-%COMP%]{max-width:100%;margin-bottom:8px;font-family:Poppins,sans-serif}.read[_ngcontent-%COMP%]{color:#9d9d9d}mat-card-title[_ngcontent-%COMP%]{font-size:1em}mat-card-subtitle[_ngcontent-%COMP%]{font-size:.7em;color:gray}mat-card-content[_ngcontent-%COMP%]{font-size:.8em}.card-img-sm-cover[_ngcontent-%COMP%]{object-fit:cover;width:50px;height:50px;border-radius:10%;overflow:hidden}"]})}return F})();function Kd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function zc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notification",8),n.NdJ("notificationItemClick",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onNotificationItemClick(R))})("onMarkRead",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onMarkRead(R))}),n.qZA()}2&F&&n.Q6J("notification",Xe.$implicit)}function Jd(F,Xe){1&F&&(n.TgZ(0,"div",9),n._UZ(1,"i",10),n.TgZ(2,"h4",11),n._uU(3,"No notifications yet!"),n.qZA()())}function nl(F,Xe){if(1&F&&(n.TgZ(0,"div",4)(1,"h5",5),n._uU(2,"MY NOTIFICATIONS"),n.qZA(),n.YNc(3,zc,1,1,"app-notification",6),n.YNc(4,Jd,4,0,"div",7),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("ngForOf",null==g.notifications?null:g.notifications.content),n.xp6(1),n.Q6J("ngIf",!g.loading&&0===(null==g.notifications?null:g.notifications.numberOfElements))}}function Gc(F,Xe){1&F&&n._UZ(0,"util-progress",12),2&F&&n.Q6J("padding",70)}const ml=[{path:"",component:D.O},{path:"products/:id/:slug",component:vc},{path:"newsfeed",component:To,canActivate:[_c.P]},{path:"choose-interests",component:ql,canActivate:[_c.P]},{path:"profile",component:Gd,canActivate:[_c.P]},{path:"u/:username",component:Gd,canActivate:[_c.P]},{path:"reviews/:productSlug/:reviewSlug/:postId",component:Ad,canActivate:[_c.P]},{path:"posts/:postId",component:ua,canActivate:[_c.P]},{path:"search",component:mc},{path:"notifications",component:(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.notificationService=ye,this.notifications=null,this.params={page:0}}componentName(){return"MyNotificationsComponent"}ngOnInit(){this.fetchNotifications(this.params)}fetchNotifications(g){this.loading=!0;let L=this.componentKey(S.Z.NOTIFICATIONS.FETCH_MY_NOTIFICATIONS());this.notificationService.fetchMyNotifications(L,g),this.subscribe(L,null,(R,ye)=>{this.notifications=ye.data,this.loading=!1})}onNotificationItemClick(g){""!==g.redirect_url&&this.router.navigateByUrl(g.redirect_url)}onMarkRead(g){let L=this.componentKey(S.Z.NOTIFICATIONS.MARK_READ()),R=this.globalKey(S.Z.NOTIFICATIONS.COUNT_UNREAD());this.notificationService.markRead(L,R,g.notificationId,g.read),this.subscribe(L,null,(ye,Dt)=>{this.fetchNotifications(this.params)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(jc.g))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-my-notifications"]],features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],["class","notification-area mx-2",4,"ngIf"],[3,"padding",4,"ngIf"],[3,"bar"],[1,"notification-area","mx-2"],[1,"page-title","mb-2","bdr-top","pt-2"],[3,"notification","notificationItemClick","onMarkRead",4,"ngFor","ngForOf"],["class","centerize",4,"ngIf"],[3,"notification","notificationItemClick","onMarkRead"],[1,"centerize"],[1,"icon-pencil",2,"font-size","2em"],[1,"mt-3"],[3,"padding"]],template:function(L,R){1&L&&(n.YNc(0,Kd,1,1,"util-progress",0),n.YNc(1,nl,5,2,"div",1),n.YNc(2,Gc,1,1,"util-progress",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("ngIf",R.loading))},dependencies:[e.sg,e.O5,Ge.t,Go],styles:[".page-title[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})(),canActivate:[_c.P]}];let Oc=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[l.Bz.forChild(ml),l.Bz]})}return F})();var Au=C(8468);let Mc=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({})}return F})(),Bn=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[Ve.BQ,Ai.lN,Ai.lN,Mc,Ve.BQ]})}return F})();var ri=C(7151),Hn=C(469);let Od=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[Ve.uc,Ve.BQ,Ve.uc,Ve.BQ]})}return F})();var Tc=C(1989);let Id=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[e.uU],imports:[e.ez,Oc,Z.UX,Au.bB,Md,bi.Ps,Ai.lN,Ta,Ve.Ng,Re.Is,mt.ot,Bn,ri.g,Hn.f,Li,Od,_l.QW,Jo.LD,Z.u5,Tc.SocialModule]})}return F})();n.B6R(Al,[e.sg,e.O5,Ge.t,oa,Ga],[])},30:(ft,Ie,C)=>{"use strict";C.d(Ie,{Y:()=>D});var e=C(5879),l=C(5806);let D=(()=>{class I{constructor(w){this.eventBus=w}publish(w,n){this.eventBus.cast(w,n)}on(w){return this.eventBus.on(w)}static#e=this.\u0275fac=function(n){return new(n||I)(e.LFG(l.F))};static#t=this.\u0275prov=e.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},7259:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>l});var e=C(2495);let l=(()=>{class D{static#e=this.ERRORS={HTTP_UNAUTHORIZED_ERROR:"error:http:unauthorized"};static#t=this.AUTH={LOGIN_SUCCESS:"auth:login:success",SERVER_ERROR:"auth:login:server_error",ERROR_INVALID_CREDENTIALS:"auth:login:invalid_credentials",LOGOUT:"auth:logout:success"};static#n=this.REGISTRATION={OTP_SENT:"register:otp:sent",OTP_SEND_ERROR:"register:otp:send-error",REGISTER_SUCCESS:"register:success",REGISTER_ERROR:"register:error"};static#i=this.RESET_PASSWORD={TOKEN_REQUESTED:"reset:otp:token-requested",RESET_SUCCESS:"reset:password:success",RESET_PASSWORD_ERROR:"reset:password:error"};static#r=this.CATEGORIES={LOADED_ROOT_CATEGORIES:()=>"categories:load:success:root",LOADED_CHILD_CATEGORIES:()=>"categories:load:success:child",INTERESTS_SAVED:()=>"categories:interests:saved",FETCH_INTERESTS:()=>"categories:interests:fetch",LOADED_CATEGORY_ATTRIBUTES:S=>"categories:attributes:cat"+S,SEARCH_CATEGORIES:()=>"categories:search",SEARCH_CATEGORIES_FOR_FILTER:()=>"categories:search:filter-search",GET_MULTIPLE:S=>"categories:get-multiple:"+S.join(",")};static#o=this.PRODUCT_CATEGORIES={SEARCH:S=>"categorys:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"categorys:upsert:"+S,GET:S=>"categorys:get-single:"+S};static#s=this.PRODUCTS={SEARCH_PRODUCTS:()=>"product:search",SEARCH_BRANDS:()=>"product:search-brands",PRODUCTS_LOADED:S=>"products:load:success:attr"+S,PRODUCT_DETAILS_LOADED:S=>"products:load:details:success:"+S};static#a=this.PRODUCTS_V2={SEARCH:S=>"products:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"products:upsert:"+S,GET:S=>"products:get-single:"+S,APPROVE:S=>"products:approve-single:"+S};static#l=this.ATTRS={ATTR_FOR_PRODUCT_LOADED:S=>"attrs:load:success:"+S};static#c=this.FILES={IMAGE_UPLOAD:S=>"files:upload:images:"+S,SEARCH:S=>"files:search:search".concat(e.O.toParamString(S)),SEARCH_IMAGES:S=>"files:images:search".concat(e.O.toParamString(S)),UPSERT:S=>"files:upsert:"+S,GET:S=>"files:get-single:"+S};static#d=this.REVIEWS={POST_REVIEW:S=>"reviews:create-review"+S,LOAD_MY_REVIEW:S=>"reviews:fetch-my-review:"+S,LOAD_REVIEW:S=>"reviews:fetch-review:"+S,LOADED_PRODUCT_REVIEWS:S=>"reviews:loaded-product-reviews:"+S,FETCH_USER_REVIEWS:S=>"reviews:loaded-user-reviews:"+S,LOADED_PRODUCT_AVG_RATINGS:()=>"reviews:loaded-product-ratings:avg",MY_REVIEW_POSTED:S=>"review:post:my-review:p:"+S,FETCH_RECENT_REVIEWS:()=>"reviews:recent-reviews",FETCH_CRITIC_REVIEWS:()=>"reviews:critic-reviews",FETCH_INTERESTING_STORIES:()=>"reviews:interesting-stories",CLOSE_SHOW_REVIEW_DIALOG:()=>"close-dialog",SEND_VERIFICATION_REQUEST:S=>"review:send-verification-request:"+S,POST_REVIEW_REPORT:S=>"report:send-report-reviews-request:"+S,GET_VERIFICATION_FOR_REVIEW:S=>"review:get-verification-for-review:"+S,RECONSIDER_VERIFICATION:S=>"review:reconsider-verification:"+S,GET_REPORT_DETAILS_FOR_REVIEW:S=>"report:report-review-details:"+S,GET_REPORT_EXISTS:S=>"report:report-exists-for-post:"+S};static#u=this.POSTS={FETCH_NEWS_FEED_POSTS:S=>"posts:posts:newsfeed:fetch"+S,FETCH_COMMENTS:S=>"posts:comments:fetch:"+S,FETCH_ERROR:()=>"posts:fetch:error",SUBMIT_ERROR:()=>"posts:submit:error",SUBMIT_POST:(S,w)=>"posts:submit:success:"+S+":c:"+w,SUBMIT_REACTION:S=>"reaction:submit:success:"+S,FETCH_POST:S=>"post:fetch:single:"+S,FETCH_POST_REACTIONS:S=>"post:fetch:reactions:for:"+S,FETCH_REACTIONS:()=>"post:fetch:reactions",FETCH_USER_POSTS:S=>"posts:fetch:user-posts:"+S,UPDATE_POST:()=>"post:update",DELETE_POST:S=>"post:delete:"+S,FETCH_TRENDING_HASHTAGS:()=>"posts:fetch-trending-hashtags"};static#h=this.NOTIFICATIONS={SEARCH:()=>"notifications:search",GET:S=>"notifications:get-single:"+S,UPSERT:S=>"notifications:upsert:"+S,RESPOND:S=>"notifications:respond:"+S,FETCH_MY_NOTIFICATIONS:()=>"notifications:fetch-my-notifications",MARK_READ:()=>"notifications:mark-read",MAKE_STICKY:()=>"notifications:make-sticky",INCREASE_VIEW_COUNT:S=>"notifications:increase-read-count-"+S,INCREASE_CLICK_COUNT:S=>"notifications:increase-click-count-"+S,COUNT_UNREAD:()=>"notifications:count-unread"};static#f=this.LEADERBOARDS={FETCH_LEADERBOARD:S=>"leaderboards:fetch:"+S,FETCH_MY_LEADERBOARD:()=>"leaderboards:fetch:self",FETCH_ERROR:()=>"leaderboards:fetch:error",REDEEM_SUCCESS:()=>"leaderboard:redeem:success",REDEEM_SUCCESS_NOTIFY_PROFILE:()=>"leaderboard:redeem:success:notify-profile",REDEEM_ERROR:()=>"leaderboard:redeem:error",FETCH_RECENT_ACHIEVEMENTS:()=>"leaderboard:achievements:fetch-recent"};static#p=this.VENDORS={SEARCH_VENDORS:()=>"vendors:search",FETCH_ERROR:()=>"vendors:fetch:error",SEARCH:S=>"vendors:search:search".concat(e.O.toParamString(S)),MY_VENDORS:S=>"vendors:my-vendors:search".concat(e.O.toParamString(S)),UPSERT:S=>"vendors:upsert:"+S,GET:S=>"vendors:get-single:"+S,TOGGLE_APPROVAL:S=>"vendors:toggle-approval:"+S};static#_=this.WALLET={FETCH_MY_WALLET:()=>"wallet:fetch-my-wallet:success",FETCH_ERROR:()=>"wallet:fetch:error"};static#m=this.USERS={FETCH_FOLLOW_STATS:S=>"follow:stats:"+S,FOLLOW_USER:S=>"follow:user:"+S,UNFOLLOW_USER:S=>"unfollow:user:"+S,GET_MY_FOLLOWERS:()=>"follow:followers:find-followers",GET_MY_PROFILE:()=>"user:profile:get-my-profile",UPDATE_MY_PROFILE:()=>"user:profile:update-my-profile",DELETE_ME:()=>"users:delete-me",SEARCH_USERS:()=>"users:search-users",SEARCH:S=>"users:search:search".concat(e.O.toParamString(S)),SEARCH_CUSTOMERS:S=>"users:search:search-customers".concat(e.O.toParamString(S)),UPSERT:S=>"users:upsert:"+S,GET:S=>"users:get-single:"+S};static#g=this.REQUEST_CREDENTIALS={ADMIN_SEARCH_LOCKOUTS:()=>"req:cred:admin-search-lockouts"};static#v=this.ACTIVITY_LOGS={ADMIN_SEARCH:()=>"activity:logs:admin-search"};static#b=this.POLL_STATS={OVERVIEW:()=>"poll:stats:overview",DATE_WISE_POLL_COUNT:()=>"poll:stats:date-wise-poll-count"};static#y=this.CRUDEXAMPLES={SEARCH:S=>"crudexamples:search:".concat(e.O.toParamString(S)),UPSERT:S=>"crudexamples:upsert:"+S,GET:S=>"crudexamples:get-single:"+S};static#w=this.QUESTIONNAIRES={SEARCH:()=>"questionnaires:search",GET_DETAILS:S=>"questionnaires:details"+S,UPDATE:S=>"questionnaires:update"+S,CREATE:S=>"questionnaires:create"+S,TOGGLE_APPROVAL:S=>"questionnaires:toggle-approval"+S,FETCH_RESULT_SHEET:S=>"questionnaires:result-sheet:"+S};static#x=this.POLLS={SEARCH:()=>"polls:search",GET_DETAILS:S=>"polls:details"+S,UPDATE:S=>"polls:update"+S,CREATE:S=>"polls:create"+S};static#M=this.VOTES={SEARCH:()=>"votes:search",FETCH_USER_VOTE_STATS:()=>"votes:user-vote-stats",FETCH_POLL_VOTE_STATS:()=>"votes:poll-vote-stats"};static#C=this.POLL_OPTIONS={SEARCH_LEGACY:()=>"poll-options:search",SEARCH:S=>"poptions:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"poptions:upsert:"+S,GET:S=>"poptions:get-single:"+S,GET_DETAILS:S=>"poll-options:details"+S,UPDATE:S=>"poll-options:update"+S,CREATE:S=>"poll-options:create"+S};static#T=this.LABELS_LEGACY={SEARCH:()=>"labels-legacy:search",GET_LABEL_TREE:S=>"labels-legacy:search"+S,GET_DETAILS:S=>"labels-legacy:details"+S,UPDATE:S=>"labels-legacy:update"+S,CREATE:S=>"labels-legacy:create"+S};static#D=this.LABELS={SEARCH:S=>"labels:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"labels:upsert:"+S,GET:S=>"labels:get-single:"+S,GET_MULTIPLE:S=>"labels:get-multiple:"+S.join(",")};static#E=this.FEEDBACKS={SEARCH:S=>"feedbacks:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"feedbacks:upsert:"+S,GET:S=>"feedbacks:get-single:"+S,TAKE_ACTION:S=>"feedbacks:take-action:"+S};static#S=this.ATTRIBUTES={SEARCH:S=>"attributes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"attributes:upsert:"+S,GET:S=>"attributes:get-single:"+S};static#A=this.FILTERABLEATTRIBUTES={SEARCH:S=>"filterableattributes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"filterableattributes:upsert:"+S,GET:S=>"filterableattributes:get-single:"+S};static#O=this.BRANDS={SEARCH:S=>"brands:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"brands:upsert:"+S,GET:S=>"brands:get-single:"+S};static#I=this.ACVALIDATIONTOKENS={SEARCH:S=>"acvalidationtokens:search:search".concat(e.O.toParamString(S))};static#R=this.VARIATIONS={SEARCH:S=>"variations:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"variations:upsert:"+S,GET:S=>"variations:get-single:"+S};static#k=this.PRODUCTSPECIFICATIONS={SEARCH:S=>"productspecifications:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"productspecifications:upsert:"+S,GET:S=>"productspecifications:get-single:"+S};static#L=this.STOCKS={SEARCH:S=>"stocks:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"stocks:upsert:"+S,GET:S=>"stocks:get-single:"+S,GET_BY_SKU:S=>"stocks:get-single-by-sky:"+S};static#P=this.LOCATIONTYPES={SEARCH:S=>"locationtypes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"locationtypes:upsert:"+S,GET:S=>"locationtypes:get-single:"+S};static#N=this.LOCATIONS={SEARCH:S=>"locations:search:search".concat(e.O.toParamString(S)),GET_BY_TYPE:S=>"locations:get-by-type:"+S,UPSERT:S=>"locations:upsert:"+S,GET:S=>"locations:get-single:"+S,GET_MULTIPLE:S=>"locations:get-multiple:"+S.join(",")};static#F=this.ADDRESSS={SEARCH:S=>"addresss:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"addresss:upsert:"+S,GET:S=>"addresss:get-single:"+S};static#Y=this.ORDERS={SEARCH:S=>"orders:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"orders:upsert:"+S,GET:S=>"orders:get-single:"+S,MAKE_PAYMENT:S=>"orders:make-payment:"+S,CONFIRM_ORDER:S=>"orders:confirm-order:"+S,CHANGE_ORDER_STATUS:(S,w)=>"orders:change-order-status:"+S+":"+w};static#B=this.CUSTOMERS={SEARCH:S=>"customers:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"customers:upsert:"+S,GET:S=>"customers:get-single:"+S}}return D})()},8214:(ft,Ie,C)=>{"use strict";C.d(Ie,{J:()=>Z});var e=C(2495),l=C(1547),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends l.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}upload(ue){const se=new FormData;for(let oe=0;oe{this.eventBusService.publish(ue,ce)},ce=>{this.eventBusService.publish(this.getErrorKey(ue),ce)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},5462:(ft,Ie,C)=>{"use strict";C.d(Ie,{l:()=>D});var e=C(2425),l=C(5879);let D=(()=>{class I{constructor(w){this.toastr=w}info(w,n,Z=(()=>{}),ee=2e3){this.show("info",w,n,Z,ee)}success(w,n,Z=(()=>{}),ee=2e3){this.show("success",w,n,Z,ee)}warning(w,n,Z=(()=>{}),ee=2e3){this.show("warning",w,n,Z,ee)}error(w,n,Z=(()=>{}),ee=2e3){this.show("error",w,n,Z,ee)}show(w,n,Z,ee=(()=>{}),re=5e3){let se,ue={disableTimeOut:!1,timeOut:re,closeButton:!0,extendedTimeOut:1e3,progressBar:!0,progressAnimation:"decreasing",enableHtml:!0,easing:"ease-in",easeTime:300,tapToDismiss:!0,toastComponent:e.FN,onActivateTick:!1,newestOnTop:!0};switch(w){case"success":se=this.toastr.success(Z,n,ue);break;case"error":se=this.toastr.error(Z,n,ue);break;case"warning":se=this.toastr.warning(Z,n,ue);break;case"info":se=this.toastr.info(Z,n,ue)}se.onTap.subscribe(te=>{ee()})}log(w){console.log(w)}static#e=this.\u0275fac=function(n){return new(n||I)(l.LFG(e._W))};static#t=this.\u0275prov=l.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},3108:(ft,Ie,C)=>{"use strict";C.d(Ie,{n:()=>D});var e=C(553),l=C(5879);let D=(()=>{class I{constructor(){}static#e=this.KEYS={clientId:"*&^%&%frgter^87i5",clientSecret:"V%$#reg%786v*7i6",accessToken:"B57UB5&ehyr&5b&*6",refreshToken:"INB*gege&U4^345%36^5u",authorities:"BUegeg&v3$76u%^&*",phone:"phone",name:"name",email:"email",id:"id",username:"username",jti:"Jjjsdb!*(&*@&#*&Y#"};static putAuth(w){localStorage.setItem(this.KEYS.id,w.id.toString()),localStorage.setItem(this.KEYS.accessToken,w.access_token),localStorage.setItem(this.KEYS.refreshToken,w.refresh_token),localStorage.setItem(this.KEYS.phone,w.phone),localStorage.setItem(this.KEYS.name,w.name),localStorage.setItem(this.KEYS.email,w.email),localStorage.setItem(this.KEYS.username,w.username),localStorage.setItem(this.KEYS.jti,w.jti)}static getAuth(){const w=this.retrieve(this.KEYS.username);return{id:parseInt(this.retrieve(this.KEYS.id)),access_token:this.retrieve(this.KEYS.accessToken),refresh_token:this.retrieve(this.KEYS.refreshToken),name:this.retrieve(this.KEYS.name),username:w,email:this.retrieve(this.KEYS.email),phone:this.retrieve(this.KEYS.phone),jti:this.retrieve(this.KEYS.jti),avatar:e.N.base_url+"/api/v1/public/users/"+w+"/avatar"}}static put(w,n){localStorage.setItem(w,n)}static retrieve(w){return localStorage.getItem(w)}static clear(){localStorage.clear()}static#t=this.\u0275fac=function(n){return new(n||I)};static#n=this.\u0275prov=l.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},7613:(ft,Ie,C)=>{"use strict";C.d(Ie,{m:()=>e});class e{static takeOnly(D,I,S=!1){null==D&&(D="");let w=D.substr(0,Math.min(I,D.length));return S&&D.length>I?w+"...":w}static firstWord(D){null==D&&(D="");let I=D.split(" ");return I.length>0?I[0]:""}}},3674:(ft,Ie,C)=>{"use strict";C.d(Ie,{w:()=>e});class e{static isInvalidInput(D){return D.invalid&&(D.touched||D.dirty)}static getFormError(D,I){return D.errors?.[I]}static isValidPhone(D){return new RegExp("^(\\+88|0088)?01[3-9]\\d{8}$").test(D)}}},553:(ft,Ie,C)=>{"use strict";C.d(Ie,{N:()=>e});const e={production:!0,app_name:"Astha App",app_url:"https://astha.app",base_url:"https://dev.astha.app",client_id:"client_id",api_version:"/api/v1/",client_secret:"client_secret",resizeRedirectionEnabled:!0,redirectionWindowWidth:800,redirectUrl:"https://web.astha.app"}},913:(ft,Ie,C)=>{"use strict";var e=C(6593),l=C(5879),D=C(1662),I=C(553),S=C(8637),w=C(7259),n=C(2071),Z=C(8480),ee=C(5462),re=C(30),ue=C(6945),se=C(2951),te=C(1822),oe=C(7700),ce=C(1715),_e=C(6814),Re=C(6929);function mt(p,y){if(1&p&&(l.TgZ(0,"span",24)(1,"span",25),l._uU(2),l.qZA()()),2&p){const u=l.oxw();l.xp6(2),l.hij(" ",u.wallet.loyalty_points," ")}}function Ge(p,y){if(1&p&&(l.TgZ(0,"span",26)(1,"span",25),l._uU(2),l.qZA()()),2&p){const u=l.oxw();l.xp6(2),l.Oqu(u.notificationCount)}}function Lt(p,y){1&p&&l._UZ(0,"img",27)}function je(p,y){if(1&p&&l._UZ(0,"img",28),2&p){const u=l.oxw();l.s9C("src",u.getAvatar(),l.LSH)}}const Tt=function(){return["/"]},xt=function(){return["/notifications"]};let St=(()=>{class p extends S.H{constructor(u,m,T,B,Q,Le,Je,At,jt){super(B,T,Q),this.authService=u,this.notifier=m,this.leaderboardService=Le,this.walletService=Je,this.dialog=At,this.notificationService=jt,this.notificationCount=0,this.leaderboard=null,this.wallet=null,this.showMenubar=!1,T.events.subscribe(dn=>{dn instanceof D.m2&&(this.registerSubscriptions(),this.reloadData())})}componentName(){return"HeaderComponent"}ngOnInit(){this.reloadData()}reloadData(){this.fetchLeaderboard()}registerSubscriptions(){this.subscribe(this.globalKey(w.Z.AUTH.LOGOUT),null,(u,m)=>{this.router.navigateByUrl("/login").then(T=>{this.leaderboard=null,this.wallet=null,this.notificationCount=0})}),this.subscribe(this.globalKey(w.Z.NOTIFICATIONS.COUNT_UNREAD()),null,(u,m)=>{this.countUnreadNotifications()})}countUnreadNotifications(){let u=this.componentKey(w.Z.NOTIFICATIONS.COUNT_UNREAD());this.notificationService.countUnread(u),this.subscribe(u,null,(m,T)=>{this.notificationCount=T.data})}fetchLeaderboard(){let u=this.globalKey(w.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.authenticated()&&this.leaderboardService.fetchLeaderboard(u,this.authService.getAuth().username),this.subscribe(u,null,(m,T)=>{this.leaderboard=T.data,this.fetchWallet(),this.countUnreadNotifications()})}fetchWallet(){let u=this.componentKey(w.Z.WALLET.FETCH_MY_WALLET());this.authenticated()&&this.walletService.fetchWallet(u,{}),this.subscribe(u,null,(m,T)=>{this.wallet=T.data})}authenticated(){return this.authService.isAuthenticated()}getAuth(){return this.authService.getAuth()}getUserTitle(){return this.authService.isAuthenticated()?this.authService.getFirstName():"Profile"}getStyleAttrForProgress(){return"width: "+this.leaderboard?.completed_percentage+"%"}getNextThresholdPoints(){return null==this.leaderboard?.next_badge?0:this.leaderboard.next_badge.threshold_points}getLeaderboardPoints(){return null==this.leaderboard?0:this.leaderboard.points}getAvatar(){let u=this.getAuth().avatar;return null==u||0===u.trim().length?"assets/img/default-avatar.png":u}onMenuClick(u){this.showMenubar=!this.showMenubar}getMenuItems(){let u=[];return u.push({id:1,title:"My Interests",code:"MY_PROFILE"}),u.push({id:2,title:"My Profile",code:"MY_PROFILE"}),this.isAuthenticated()?u.push({id:3,title:"Logout",code:"LOGOUT"}):u.push({id:3,title:"Login",code:"LOGIN"}),u}isAuthenticated(){return this.authService.isAuthenticated()}onMenuItemClick(u){switch(u.id){case 2:this.navigate("/profile",m=>{});break;case 1:this.navigate("/choose-interests",m=>{});break;case 3:if(!this.isAuthenticated())return void this.navigate("/login",()=>{});this.authService.logout(),this.navigate("/",m=>{this.notifier.warning("Logged out","You have been successfully logged out.",()=>{this.router.navigate(["login"]).then(T=>{})},3e3)})}}openLeaderboard(){null!=this.leaderboard&&(this.dialog.open(n.B,{width:"600px"}).componentInstance.leaderboard=this.leaderboard)}onWalletClick(){this.authenticated()?this.openLeaderboard():this.navigate("/login",u=>{})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(Z.e),l.Y36(ee.l),l.Y36(D.F0),l.Y36(re.Y),l.Y36(ue.z),l.Y36(se.S),l.Y36(te.X),l.Y36(oe.uw),l.Y36(ce.g))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-web-header"]],features:[l.qOj],decls:32,vars:19,consts:[[1,"header-area","p-3"],[1,"container"],[1,"row"],[1,"col-7"],[1,"header-left"],[3,"routerLink"],[1,"batch-are","d-flex","mt-2",3,"click"],["src","assets/img/header-images/batch.png","alt",""],[1,"header-progress"],[1,"progress-content","d-flex","justify-content-between","mb-1"],[1,"progress-count"],[1,"progress"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-warning"],[1,"col-5","d-flex","justify-content-end"],[1,"social-icons"],[3,"click"],[1,"icon-wallet"],["class","notification-badge-wallet",4,"ngIf"],[1,"icon-bell-alt"],["class","notification-badge",4,"ngIf"],[1,"avater-section",3,"click"],["class","profile-img profile-img-rounded","src","assets/img/default-avatar.png","alt","",4,"ngIf"],["class","profile-img profile-img-rounded","alt","",3,"src",4,"ngIf"],[3,"showMenubar","top","items","menuItemClick"],[1,"notification-badge-wallet"],["aria-hidden","true",1,"notification-badge-count"],[1,"notification-badge"],["src","assets/img/default-avatar.png","alt","",1,"profile-img","profile-img-rounded"],["alt","",1,"profile-img","profile-img-rounded",3,"src"]],template:function(m,T){1&m&&(l.TgZ(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"a",5)(6,"h2"),l._uU(7,"Astha"),l.qZA()(),l.TgZ(8,"div",6),l.NdJ("click",function(){return T.openLeaderboard()}),l._UZ(9,"img",7),l.TgZ(10,"div",8)(11,"div",9)(12,"span",10),l._uU(13),l.qZA(),l.TgZ(14,"span"),l._uU(15),l.qZA()(),l.TgZ(16,"div",11),l._UZ(17,"div",12),l.qZA()()()()(),l.TgZ(18,"div",13)(19,"div",14)(20,"a",15),l.NdJ("click",function(){return T.onWalletClick()}),l._UZ(21,"i",16),l.YNc(22,mt,3,1,"span",17),l.qZA(),l.TgZ(23,"a",5),l._UZ(24,"i",18),l.YNc(25,Ge,3,1,"span",19),l.qZA()(),l.TgZ(26,"a",20),l.NdJ("click",function(Q){return T.onMenuClick(Q)}),l.YNc(27,Lt,1,0,"img",21),l.YNc(28,je,1,1,"img",22),l.TgZ(29,"h4"),l._uU(30),l.qZA(),l.TgZ(31,"app-menubox",23),l.NdJ("menuItemClick",function(Q){return T.onMenuItemClick(Q)}),l.qZA()()()()()()),2&m&&(l.xp6(5),l.Q6J("routerLink",l.DdM(17,Tt)),l.xp6(8),l.AsE("",T.getLeaderboardPoints()," /",T.getNextThresholdPoints(),""),l.xp6(2),l.Oqu(null==T.leaderboard||null==T.leaderboard.next_badge?null:T.leaderboard.next_badge.title),l.xp6(2),l.Akn(T.getStyleAttrForProgress()),l.uIk("aria-valuenow",null==T.leaderboard?null:T.leaderboard.points),l.xp6(5),l.Q6J("ngIf",null!=T.wallet),l.xp6(1),l.Q6J("routerLink",l.DdM(18,xt)),l.xp6(2),l.Q6J("ngIf",T.notificationCount>0),l.xp6(2),l.Q6J("ngIf",!T.authenticated()),l.xp6(1),l.Q6J("ngIf",T.authenticated()),l.xp6(2),l.Oqu(T.getUserTitle()),l.xp6(1),l.Q6J("showMenubar",T.showMenubar)("top",70)("items",T.getMenuItems()))},dependencies:[_e.O5,D.rH,Re.v],styles:["a[_ngcontent-%COMP%]{color:#fff}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:20px;margin-top:2px;display:inline-block;margin-right:10px;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.5}.avater-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.avater-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]:hover{opacity:.5}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:relative;display:inline-block}.notification-badge[_ngcontent-%COMP%]{position:absolute;top:-2px;right:-2px;width:18px;height:18px;text-align:center;line-height:13px;transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:167ms;background-color:#cc1016;display:block;z-index:1;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%}.notification-badge-count[_ngcontent-%COMP%]{font-size:12px}.notification-badge-wallet[_ngcontent-%COMP%]{position:absolute;top:-2px;right:-2px;width:18px;height:18px;text-align:center;line-height:13px;transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:167ms;background-color:#406440;display:block;z-index:1;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%}"]})}return p})();const Zt=function(){return["/"]},yt=function(){return["/newsfeed"]},un=function(){return["/search"]},Jt=function(){return["/profile"]};let tn=(()=>{class p{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-web-footer"]],decls:18,vars:9,consts:[[1,"footer-menu-area"],[1,"container-fluid"],[3,"routerLink"],[1,"icon-home"],[1,"icon-newspaper"],[1,"icon-search"],[1,"icon-bell-alt"],[1,"icon-user-circle-o"]],template:function(m,T){1&m&&(l.TgZ(0,"section",0)(1,"div",1)(2,"ul")(3,"li")(4,"a",2),l._UZ(5,"i",3),l.qZA()(),l.TgZ(6,"li")(7,"a",2),l._UZ(8,"i",4),l.qZA()(),l.TgZ(9,"li")(10,"a",2),l._UZ(11,"i",5),l.qZA()(),l.TgZ(12,"li")(13,"a",2),l._UZ(14,"i",6),l.qZA()(),l.TgZ(15,"li")(16,"a",2),l._UZ(17,"i",7),l.qZA()()()()()),2&m&&(l.xp6(4),l.Q6J("routerLink",l.DdM(5,Zt)),l.xp6(3),l.Q6J("routerLink",l.DdM(6,yt)),l.xp6(3),l.Q6J("routerLink",l.DdM(7,un)),l.xp6(3),l.Q6J("routerLink","/notifications"),l.xp6(3),l.Q6J("routerLink",l.DdM(8,Jt)))},dependencies:[D.rH],styles:[".center[_ngcontent-%COMP%]{margin:auto;width:50%;padding:10px}.footer[_ngcontent-%COMP%]{position:fixed;left:0;bottom:0;width:100%;background-color:#1976d2;color:#fff;text-align:center}.middle-item[_ngcontent-%COMP%]{color:#44d62c}"]})}return p})(),wn=(()=>{class p{constructor(){this.title="Astha App",this.windowWidth=0}ngOnInit(){this.windowWidth=window.innerWidth,this.resolveRedirection()}onResize(u){this.windowWidth=window.innerWidth,this.resolveRedirection()}resolveRedirection(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-layout"]],hostBindings:function(m,T){1&m&&l.NdJ("resize",function(Q){return T.onResize(Q)},!1,l.Jf7)},decls:4,vars:0,consts:[["role","main",1,"content","bottom-toolbar-margin"]],template:function(m,T){1&m&&(l._UZ(0,"app-web-header"),l.TgZ(1,"div",0),l._UZ(2,"router-outlet"),l.qZA(),l._UZ(3,"app-web-footer"))},dependencies:[D.lC,St,tn]})}return p})();var Ln=C(6223),Yn=C(8675);const ti=["rightBarToggle"];function gi(p,y){1&p&&l._UZ(0,"span",36)}function Rn(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",37),l.NdJ("click",function(){l.CHM(u);const T=l.oxw();return l.KtG(T.clearSearch())}),l._UZ(1,"span",38),l.qZA()}}const dt=function(p){return[p]};let at=(()=>{class p extends S.H{componentName(){return"AdminHeaderComponent"}constructor(u,m,T,B,Q,Le,Je){super(u,m,T),this.authService=B,this.renderer=Q,this.popupService=Le,this.activatedRoute=Je,this.search=new Ln.NI,this.isAdmin=!1,this.authorities=[],this.auth=this.authService.getAuth(),this.isAdmin=this.authService.isAdmin(),this.authorities=B.getAuthorities()}hasPrivilege(u){return this.isAdmin||this.authorities.includes(u)}ngOnInit(){this.activatedRoute.queryParams.subscribe(u=>{this.search.setValue(u.query)})}onSearch(){const m=this.router.parseUrl(this.router.url).root.children.primary.segments.map(T=>T.path).join("/");this.router.navigate([m],{queryParams:{query:this.search.value},queryParamsHandling:"merge"}).then(T=>{})}clearSearch(){this.search.setValue(null),this.onSearch()}logout(){this.authService.logout()}initLeftMenuCollapse(){const u=document.body;u.classList.toggle("sidebar-enable"),window.innerWidth>=992?u.classList.toggle("vertical-collpsed"):u.classList.remove("vertical-collpsed"),u.classList.contains("vertical-collpsed")?this.renderer.addClass(u,"vertical-collpsed"):this.renderer.removeClass(u,"vertical-collpsed")}initRightSidebar(){const u=document.querySelector("body");this.renderer.listen(u,"click",m=>{m.target.closest(".right-bar-toggle, .right-bar")||this.renderer.removeClass(u,"right-bar-enabled")}),this.renderer.listen(document.querySelector(".right-bar-toggle"),"click",()=>{this.renderer.addClass(u,"right-bar-enabled")})}openLeaderboard(){let u=this.popupService.open(n.B,{id:null});u.componentInstance.onCanceled.subscribe(()=>{u.close()})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(re.Y),l.Y36(D.F0),l.Y36(ue.z),l.Y36(Z.e),l.Y36(l.Qsj),l.Y36(Yn.x),l.Y36(D.gz))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-header"]],viewQuery:function(m,T){if(1&m&&l.Gf(ti,5),2&m){let B;l.iGM(B=l.CRH())&&(T.rightBarToggle=B.first)}},features:[l.qOj],decls:42,vars:9,consts:function(){let u,m,T;return u="Profile",m="Leaderboard",T="Logout",[["id","page-topbar"],[1,"navbar-header"],[1,"d-flex"],[1,"navbar-brand-box"],["routerLink","/admin",1,"logo","logo-dark"],[1,"logo-sm"],["src","assets/apanel/images/logos/astha.svg","alt","","height","36"],[1,"logo-lg"],["src","assets/apanel/images/logos/astha.svg","alt","","height","72"],["routerLink","/admin",1,"logo","logo-light"],["type","button","id","vertical-menu-btn",1,"btn","btn-sm","px-3","font-size-16","header-item","waves-effect",3,"click"],[1,"fa","fa-fw","fa-bars"],[1,"app-search","d-none","d-lg-block",3,"submit"],[1,"position-relative"],["type","text",1,"form-control",3,"placeholder","formControl"],["class","bx bx-search-alt",4,"ngIf"],["href","javascript: void(0);",3,"click",4,"ngIf"],[1,"dropdown","d-inline-block"],["type","button","id","page-header-user-dropdown","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","header-item","waves-effect"],["alt","Header Avatar",1,"rounded-circle","header-profile-user",3,"src"],["key","t-henry",1,"d-none","d-xl-inline-block","ms-1"],[1,"mdi","mdi-chevron-down","d-none","d-xl-inline-block"],[1,"dropdown-menu","dropdown-menu-end"],["href","javascript:void(0);",1,"dropdown-item",3,"routerLink"],[1,"bx","bx-user","font-size-16","align-middle","me-1"],["key","t-profile"],u,["href","javascript:void(0);",1,"dropdown-item",3,"click"],[1,"bx","bx-wallet","font-size-16","align-middle","me-1"],["key","t-my-wallet"],m,[1,"dropdown-divider"],["href","#",1,"dropdown-item","text-danger",3,"click"],[1,"bx","bx-power-off","font-size-16","align-middle","me-1","text-danger"],["key","t-logout"],T,[1,"bx","bx-search-alt"],["href","javascript: void(0);",3,"click"],[1,"bx","bx-x-circle","text-danger"]]},template:function(m,T){1&m&&(l.TgZ(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4)(5,"span",5),l._UZ(6,"img",6),l.qZA(),l.TgZ(7,"span",7),l._UZ(8,"img",8),l.qZA()(),l.TgZ(9,"a",9)(10,"span",5),l._UZ(11,"img",6),l.qZA(),l.TgZ(12,"span",7),l._UZ(13,"img",8),l.qZA()()(),l.TgZ(14,"button",10),l.NdJ("click",function(){return T.initLeftMenuCollapse()}),l._UZ(15,"i",11),l.qZA(),l.TgZ(16,"form",12),l.NdJ("submit",function(){return T.onSearch()}),l.TgZ(17,"div",13),l._UZ(18,"input",14),l.YNc(19,gi,1,0,"span",15),l.YNc(20,Rn,2,0,"a",16),l.qZA()()(),l.TgZ(21,"div",2)(22,"div",17)(23,"button",18),l._UZ(24,"img",19),l.TgZ(25,"span",20),l._uU(26),l.qZA(),l._UZ(27,"i",21),l.qZA(),l.TgZ(28,"div",22)(29,"a",23),l._UZ(30,"i",24),l.TgZ(31,"span",25),l.SDv(32,26),l.qZA()(),l.TgZ(33,"a",27),l.NdJ("click",function(){return T.openLeaderboard()}),l._UZ(34,"i",28),l.TgZ(35,"span",29),l.SDv(36,30),l.qZA()(),l._UZ(37,"div",31),l.TgZ(38,"a",32),l.NdJ("click",function(){return T.logout()}),l._UZ(39,"i",33),l.TgZ(40,"span",34),l.SDv(41,35),l.qZA()()()()()()()),2&m&&(l.xp6(18),l.s9C("placeholder",T.translations["Search.."]),l.Q6J("formControl",T.search),l.xp6(1),l.Q6J("ngIf",!T.search.value),l.xp6(1),l.Q6J("ngIf",T.search.value),l.xp6(4),l.s9C("src",T.auth.avatar,l.LSH),l.xp6(2),l.Oqu(T.auth.username),l.xp6(3),l.Q6J("routerLink",l.VKq(7,dt,"/u/"+T.auth.username)))},dependencies:[_e.O5,D.rH,Ln._Y,Ln.Fj,Ln.JJ,Ln.JL,Ln.F,Ln.oH],styles:["mat-toolbar[_ngcontent-%COMP%]{background:#004a9f;color:#fff}mat-sidenav[_ngcontent-%COMP%]{margin:16px;width:200px;border-right:none;background:#002b5c;color:#fff;border-radius:10px;padding:16px;text-align:center}.content[_ngcontent-%COMP%]{height:calc(100vh - 98px);border-radius:10px;margin:16px 16px 16px 32px;display:flex;justify-content:center;align-items:center;font-size:2rem;color:#d3d3d3}mat-sidenav-container[_ngcontent-%COMP%]{height:calc(100vh - 65px)}"]})}return p})(),Be=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-footer"]],decls:9,vars:0,consts:[[1,"footer"],[1,"container-fluid"],[1,"row"],[1,"col-sm-6"],["href","https://servicito.com"],[1,"text-sm-end","d-none","d-sm-block"]],template:function(m,T){1&m&&(l.TgZ(0,"footer",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),l._uU(5,"@servicito"),l.qZA()(),l.TgZ(6,"div",3)(7,"div",5),l._uU(8," admin@servicito.com "),l.qZA()()()()())}})}return p})(),Ee=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["admin-right-nav"]],decls:34,vars:0,consts:[[1,"right-bar"],["data-simplebar","",1,"h-100"],[1,"rightbar-title","d-flex","align-items-center","px-3","py-4"],[1,"m-0","me-2"],[1,"mt-0"],[1,"text-center","mb-0"],[1,"p-4"],[1,"mb-2"],["src","/assets/apanel/images/layouts/layout-1.jpg","alt","layout images",1,"img-thumbnail"],[1,"form-check","form-switch","mb-3"],["type","checkbox","id","light-mode-switch","checked","",1,"form-check-input","theme-choice"],["for","light-mode-switch",1,"form-check-label"],["src","/assets/apanel/images/layouts/layout-2.jpg","alt","layout images",1,"img-thumbnail"],["type","checkbox","id","dark-mode-switch",1,"form-check-input","theme-choice"],["for","dark-mode-switch",1,"form-check-label"],["src","/assets/apanel/images/layouts/layout-3.jpg","alt","layout images",1,"img-thumbnail"],["type","checkbox","id","rtl-mode-switch",1,"form-check-input","theme-choice"],["for","rtl-mode-switch",1,"form-check-label"],["src","/assets/apanel/images/layouts/layout-4.jpg","alt","layout images",1,"img-thumbnail"],[1,"form-check","form-switch","mb-5"],["type","checkbox","id","dark-rtl-mode-switch",1,"form-check-input","theme-choice"],["for","dark-rtl-mode-switch",1,"form-check-label"],[1,"rightbar-overlay"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3),l._uU(4,"Settings"),l.qZA()(),l._UZ(5,"hr",4),l.TgZ(6,"h6",5),l._uU(7,"Choose Layouts"),l.qZA(),l.TgZ(8,"div",6)(9,"div",7),l._UZ(10,"img",8),l.qZA(),l.TgZ(11,"div",9),l._UZ(12,"input",10),l.TgZ(13,"label",11),l._uU(14,"Light Mode"),l.qZA()(),l.TgZ(15,"div",7),l._UZ(16,"img",12),l.qZA(),l.TgZ(17,"div",9),l._UZ(18,"input",13),l.TgZ(19,"label",14),l._uU(20,"Dark Mode"),l.qZA()(),l.TgZ(21,"div",7),l._UZ(22,"img",15),l.qZA(),l.TgZ(23,"div",9),l._UZ(24,"input",16),l.TgZ(25,"label",17),l._uU(26,"RTL Mode"),l.qZA()(),l.TgZ(27,"div",7),l._UZ(28,"img",18),l.qZA(),l.TgZ(29,"div",19),l._UZ(30,"input",20),l.TgZ(31,"label",21),l._uU(32,"Dark RTL Mode"),l.qZA()()()()(),l._UZ(33,"div",22))}})}return p})();var $e=C(8743),me=C(190);let tt=(()=>{class p{transform(u){return "" + u + ""}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275pipe=l.Yjl({name:"appTranslate",type:p,pure:!0})}return p})();function he(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",9),l.NdJ("click",function(){l.CHM(u);const T=l.oxw().$implicit,B=l.oxw();return l.KtG(B.onMenuGroupClick(T.title))}),l._UZ(1,"i"),l.TgZ(2,"span",10),l._uU(3),l.ALo(4,"appTranslate"),l.qZA()()}if(2&p){const u=l.oxw().$implicit;l.xp6(1),l.Tol(u.icon),l.xp6(2),l.Oqu(l.lcZ(4,4,u.title))}}function Ze(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",15),l.NdJ("click",function(){l.CHM(u);const T=l.oxw().$implicit,B=l.oxw(3);return l.KtG(B.onMenuItemClick(T))}),l._uU(1),l.ALo(2,"appTranslate"),l.qZA()}if(2&p){const u=l.oxw().$implicit;l.Q6J("ngClass",u.selected?"text-primary":""),l.xp6(1),l.Oqu(l.lcZ(2,2,u.title))}}function rt(p,y){if(1&p&&(l.TgZ(0,"li",13),l.YNc(1,Ze,3,4,"a",14),l.qZA()),2&p){const u=y.$implicit,m=l.oxw(3);l.Q6J("ngClass",u.selected?"bg-primary-subtle":""),l.xp6(1),l.Q6J("ngIf",m.hasPermission(u))}}function bt(p,y){if(1&p&&(l.TgZ(0,"ul",11),l.YNc(1,rt,2,2,"li",12),l.qZA()),2&p){const u=l.oxw().$implicit;l.xp6(1),l.Q6J("ngForOf",u.items)}}function Nt(p,y){if(1&p&&(l.TgZ(0,"li"),l.YNc(1,he,5,6,"a",7),l.YNc(2,bt,2,1,"ul",8),l.qZA()),2&p){const u=y.$implicit,m=l.oxw();l.xp6(1),l.Q6J("ngIf",!m.shouldHide(u)),l.xp6(1),l.Q6J("ngIf",!m.shouldHide(u)&&u.expanded)}}let Qt=(()=>{class p{constructor(u,m,T){this.renderer=m,this.router=T,this.authorities=[],this.isMenuCollapsed=!1,this.menu=me.s,this.isTabletOrMobileScreen=window.innerWidth<=1280,this.isTabletScreen=window.innerWidth<=1280&&window.innerWidth>=992,this.isAdmin=u.isAdmin(),this.authorities=u.getAuthorities(),this.setActiveMenuItem(this.router.url),this.router.events.subscribe(B=>{B instanceof D.OD&&this.setActiveMenuItem(B.url)})}toggleLeftMenu(){if(!this.isTabletOrMobileScreen)return;const u=document.body;u.classList.toggle("sidebar-enable"),window.innerWidth<=992&&(u.classList.toggle("vertical-collpsed"),console.log(this.isMenuCollapsed),this.isMenuCollapsed=!this.isMenuCollapsed,console.log(this.isMenuCollapsed)),u.classList.contains("vertical-collpsed")?(this.renderer.addClass(u,"vertical-collpsed"),this.isMenuCollapsed=!0):(this.renderer.removeClass(u,"vertical-collpsed"),this.isMenuCollapsed=!1)}onMenuGroupClick(u){this.menu=this.menu.map(m=>(m.expanded=m.title==u&&!m.expanded,m))}expandSidebar(u){const m=document.body;console.log(this.isMenuCollapsed),this.isMenuCollapsed=!u,console.log(this.isMenuCollapsed),u?(m.classList.remove("sidebar-enable"),m.classList.remove("vertical-collpsed")):(m.classList.add("sidebar-enable"),m.classList.add("vertical-collpsed")),this.isTabletScreen&&!this.isMenuCollapsed&&(this.menu=this.menu.map(T=>(T.expanded=!0,T)))}setActiveMenuItem(u){this.menu=this.menu.map(m=>{let T=m.items.map(B=>(B.selected=u.includes(B.link),B));return m.items=T,m.expanded=T.some(B=>B.selected),m}),this.isTabletScreen&&this.expandSidebar(!1)}onMenuItemClick(u){this.router.navigateByUrl(u.link).then(m=>{})}hasPermission(u){return this.isAdmin||u.permissions.some(m=>this.authorities.includes(m))}shouldHide(u){return!u.items.some(m=>this.hasPermission(m))}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(Z.e),l.Y36(l.Qsj),l.Y36(D.F0))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["admin-left-nav"]],decls:7,vars:3,consts:function(){let u;return u="Menu",[[1,"vertical-menu"],["data-simplebar","",1,"h-100"],["id","sidebar-menu"],["id","side-menu",1,"metismenu","list-unstyled"],["key","t-menu",1,"menu-title"],u,[4,"ngFor","ngForOf"],["href","javascript: void(0);","class","has-arrow waves-effect",3,"click",4,"ngIf"],["class","sub-menu","aria-expanded","true",4,"ngIf"],["href","javascript: void(0);",1,"has-arrow","waves-effect",3,"click"],["key","t-dashboards"],["aria-expanded","true",1,"sub-menu"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["href","javascript: void(0);","key","t-saas",3,"ngClass","click",4,"ngIf"],["href","javascript: void(0);","key","t-saas",3,"ngClass","click"]]},template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"ul",3)(4,"li",4),l.SDv(5,5),l.qZA(),l.YNc(6,Nt,3,2,"li",6),l.qZA()()()()),2&m&&(l.Q6J("@slideIn",!T.isMenuCollapsed)("@expanded",void 0),l.xp6(6),l.Q6J("ngForOf",T.menu))},dependencies:[_e.mk,_e.sg,_e.O5,tt],data:{animation:[(0,$e.e6)("expanded"),(0,$e.Ym)("slideIn","left")]}})}return p})(),nn=(()=>{class p{constructor(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-layout"]],decls:10,vars:0,consts:[["id","layout-wrapper"],[1,"main-content"],[1,"page-content"],[1,"container-fluid"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0),l._UZ(1,"app-admin-header")(2,"admin-left-nav"),l.TgZ(3,"div",1)(4,"div",0)(5,"div",2)(6,"div",3),l._UZ(7,"router-outlet"),l.qZA()()(),l._UZ(8,"app-admin-footer"),l.qZA()(),l._UZ(9,"admin-right-nav"))},dependencies:[D.lC,at,Be,Ee,Qt],styles:["mat-toolbar[_ngcontent-%COMP%]{background:#004a9f;color:#fff}mat-sidenav[_ngcontent-%COMP%]{margin:16px;width:200px;border-right:none;background:#002b5c;color:#fff;border-radius:10px;padding:16px;text-align:center}.content[_ngcontent-%COMP%]{height:calc(100vh - 130px);border-radius:10px;margin:16px 16px 16px 32px;padding:16px;overflow:auto}mat-sidenav-container[_ngcontent-%COMP%]{height:calc(100vh - 65px)}.menu-button[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:flex-start;font-size:1rem}.menu-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}.avatar[_ngcontent-%COMP%]{margin-top:16px;width:100px;height:100px;border-radius:50%}.name[_ngcontent-%COMP%]{margin-top:8px;font-weight:400}.designation[_ngcontent-%COMP%]{margin-top:2px;font-size:.7rem;color:#d3d3d3}mat-divider[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px;background-color:#ffffff80}"]})}return p})();var Dn=C(9538),Ot=C(5239);const vn=[{path:"",component:wn,loadChildren:()=>Promise.resolve().then(C.bind(C,9310)).then(p=>p.WebAppModule)},{path:"auth",loadChildren:()=>Promise.resolve().then(C.bind(C,7043)).then(p=>p.AuthModule)},{path:"social",loadChildren:()=>Promise.resolve().then(C.bind(C,1989)).then(p=>p.SocialModule)},{path:"admin",component:nn,loadChildren:()=>C.e(424).then(C.bind(C,2241)).then(p=>p.AdminModule),canActivate:[Dn.P]},{path:"request-account-deletion",component:(()=>{class p extends S.H{constructor(u,m,T,B,Q,Le){super(u,m,T),this.notifier=B,this.userService=Q,this.authService=Le,this.username=null,null==this.username&&(this.username=this.getAuthUsername())}componentName(){return"UserDeleteComponent"}ngOnInit(){null==this.username&&(this.username=this.getAuthUsername())}getAuthUsername(){return this.authService.getAuth().username}deleteMyAccount(){if(!confirm("Are you sure to continue?"))return;if(!this.authService.isAuthenticated())return void this.router.navigate(["/login"]);let m=this.componentKey(w.Z.USERS.DELETE_ME());this.userService.deleteAccount(m),this.subscribe(m,"/login",(T,B)=>{this.notifier.success("Deleted!","Your account is deleted."),this.authService.logout(),this.reloadRoute()}),this.subscribe(this.getErrorKey(m),null,(T,B)=>{this.notifier.error("Error!",B.data.error.message)})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(re.Y),l.Y36(D.F0),l.Y36(ue.z),l.Y36(ee.l),l.Y36(Ot.K),l.Y36(Z.e))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-user-delete"]],features:[l.qOj],decls:9,vars:1,consts:[[1,"d-flex","flex-column","align-items-center","justify-content-center",2,"height","100vh"],[1,"p-2","m-2","rounded-2"],[1,"p-2","m-2","bg-danger","text-white","rounded-2","border-0",3,"click"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1),l._uU(2," Are you sure you want to permanently delete your account? "),l.qZA(),l.TgZ(3,"div",1),l._uU(4," Account will be deleted for username: "),l.TgZ(5,"span"),l._uU(6),l.qZA()(),l.TgZ(7,"button",2),l.NdJ("click",function(){return T.deleteMyAccount()}),l._uU(8," Delete "),l.qZA()()),2&m&&(l.xp6(6),l.Oqu(T.username))}})}return p})()},{path:"cms",loadChildren:()=>Promise.resolve().then(C.bind(C,9797)).then(p=>p.CmsModule),component:nn,canActivate:[Dn.P]}];let ei=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[D.Bz.forRoot(vn,{scrollPositionRestoration:"enabled"}),D.Bz]})}return p})(),Wn=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-root"]],decls:1,vars:0,template:function(m,T){1&m&&l._UZ(0,"router-outlet")},dependencies:[D.lC]})}return p})();var Ve=C(7043),ct=C(9862),Ct=C(5806),Ce=C(6825);function ae(p){return new l.vHH(3e3,!1)}function It(p){switch(p.length){case 0:return new Ce.ZN;case 1:return p[0];default:return new Ce.ZE(p)}}function cn(p,y,u=new Map,m=new Map){const T=[],B=[];let Q=-1,Le=null;if(y.forEach(Je=>{const At=Je.get("offset"),jt=At==Q,dn=jt&&Le||new Map;Je.forEach((Cn,Tn)=>{let Un=Tn,Xn=Cn;if("offset"!==Tn)switch(Un=p.normalizePropertyName(Un,T),Xn){case Ce.k1:Xn=u.get(Tn);break;case Ce.l3:Xn=m.get(Tn);break;default:Xn=p.normalizeStyleValue(Tn,Un,Xn,T)}dn.set(Un,Xn)}),jt||B.push(dn),Le=dn,Q=At}),T.length)throw function ze(p){return new l.vHH(3502,!1)}();return B}function _n(p,y,u,m){switch(y){case"start":p.onStart(()=>m(u&&En(u,"start",p)));break;case"done":p.onDone(()=>m(u&&En(u,"done",p)));break;case"destroy":p.onDestroy(()=>m(u&&En(u,"destroy",p)))}}function En(p,y,u){const B=On(p.element,p.triggerName,p.fromState,p.toState,y||p.phaseName,u.totalTime??p.totalTime,!!u.disabled),Q=p._data;return null!=Q&&(B._data=Q),B}function On(p,y,u,m,T="",B=0,Q){return{element:p,triggerName:y,fromState:u,toState:m,phaseName:T,totalTime:B,disabled:!!Q}}function ni(p,y,u){let m=p.get(y);return m||p.set(y,m=u),m}function Vn(p){const y=p.indexOf(":");return[p.substring(1,y),p.slice(y+1)]}const fr=(()=>typeof document>"u"?null:document.documentElement)();function ki(p){const y=p.parentNode||p.host||null;return y===fr?null:y}let vr=null,Bi=!1;function _i(p,y){for(;y;){if(y===p)return!0;y=ki(y)}return!1}function bo(p,y,u){if(u)return Array.from(p.querySelectorAll(y));const m=p.querySelector(y);return m?[m]:[]}let br=(()=>{class p{validateStyleProperty(u){return function co(p){vr||(vr=function tr(){return typeof document<"u"?document.body:null}()||{},Bi=!!vr.style&&"WebkitAppearance"in vr.style);let y=!0;return vr.style&&!function Kr(p){return"ebkit"==p.substring(1,6)}(p)&&(y=p in vr.style,!y&&Bi&&(y="Webkit"+p.charAt(0).toUpperCase()+p.slice(1)in vr.style)),y}(u)}matchesElement(u,m){return!1}containsElement(u,m){return _i(u,m)}getParentElement(u){return ki(u)}query(u,m,T){return bo(u,m,T)}computeStyle(u,m,T){return T||""}animate(u,m,T,B,Q,Le=[],Je){return new Ce.ZN(T,B)}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),$n=(()=>{class p{static#e=this.NOOP=new br}return p})();const yo=1e3,ho="ng-enter",to="ng-leave",yr="ng-trigger",Gs=".ng-trigger",Ba="ng-animating",xl=".ng-animating";function So(p){if("number"==typeof p)return p;const y=p.match(/^(-?[\.\d]+)(m?s)/);return!y||y.length<2?0:Ws(parseFloat(y[1]),y[2])}function Ws(p,y){return"s"===y?p*yo:p}function Ds(p,y,u){return p.hasOwnProperty("duration")?p:function $s(p,y,u){let T,B=0,Q="";if("string"==typeof p){const Le=p.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Le)return y.push(ae()),{duration:0,delay:0,easing:""};T=Ws(parseFloat(Le[1]),Le[2]);const Je=Le[3];null!=Je&&(B=Ws(parseFloat(Je),Le[4]));const At=Le[5];At&&(Q=At)}else T=p;if(!u){let Le=!1,Je=y.length;T<0&&(y.push(function Oe(){return new l.vHH(3100,!1)}()),Le=!0),B<0&&(y.push(function ot(){return new l.vHH(3101,!1)}()),Le=!0),Le&&y.splice(Je,0,ae())}return{duration:T,delay:B,easing:Q}}(p,y,u)}function Uo(p,y={}){return Object.keys(p).forEach(u=>{y[u]=p[u]}),y}function Jr(p){const y=new Map;return Object.keys(p).forEach(u=>{y.set(u,p[u])}),y}function oo(p,y=new Map,u){if(u)for(let[m,T]of u)y.set(m,T);for(let[m,T]of p)y.set(m,T);return y}function fs(p,y,u){y.forEach((m,T)=>{const B=dr(T);u&&!u.has(T)&&u.set(T,p.style[B]),p.style[B]=m})}function Sa(p,y){y.forEach((u,m)=>{const T=dr(m);p.style[T]=""})}function Vo(p){return Array.isArray(p)?1==p.length?p[0]:(0,Ce.vP)(p):p}const Ks=new RegExp("{{\\s*(.+?)\\s*}}","g");function Aa(p){let y=[];if("string"==typeof p){let u;for(;u=Ks.exec(p);)y.push(u[1]);Ks.lastIndex=0}return y}function qi(p,y,u){const m=p.toString(),T=m.replace(Ks,(B,Q)=>{let Le=y[Q];return null==Le&&(u.push(function Ft(p){return new l.vHH(3003,!1)}()),Le=""),Le.toString()});return T==m?p:T}function Li(p){const y=[];let u=p.next();for(;!u.done;)y.push(u.value),u=p.next();return y}const Yr=/-+([a-z0-9])/g;function dr(p){return p.replace(Yr,(...y)=>y[1].toUpperCase())}function Vr(p,y,u){switch(y.type){case 7:return p.visitTrigger(y,u);case 0:return p.visitState(y,u);case 1:return p.visitTransition(y,u);case 2:return p.visitSequence(y,u);case 3:return p.visitGroup(y,u);case 4:return p.visitAnimate(y,u);case 5:return p.visitKeyframes(y,u);case 6:return p.visitStyle(y,u);case 8:return p.visitReference(y,u);case 9:return p.visitAnimateChild(y,u);case 10:return p.visitAnimateRef(y,u);case 11:return p.visitQuery(y,u);case 12:return p.visitStagger(y,u);default:throw function lt(p){return new l.vHH(3004,!1)}()}}function Es(p,y){return window.getComputedStyle(p)[y]}const wo="*";function jo(p,y){const u=[];return"string"==typeof p?p.split(/\s*,\s*/).forEach(m=>function no(p,y,u){if(":"==p[0]){const Je=function Ao(p,y){switch(p){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(u,m)=>parseFloat(m)>parseFloat(u);case":decrement":return(u,m)=>parseFloat(m) *"}}(p,u);if("function"==typeof Je)return void y.push(Je);p=Je}const m=p.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==m||m.length<4)return u.push(function U(p){return new l.vHH(3015,!1)}()),y;const T=m[1],B=m[2],Q=m[3];y.push(va(T,Q));"<"==B[0]&&!(T==wo&&Q==wo)&&y.push(va(Q,T))}(m,u,y)):u.push(p),u}const nr=new Set(["true","1"]),ps=new Set(["false","0"]);function va(p,y){const u=nr.has(p)||ps.has(p),m=nr.has(y)||ps.has(y);return(T,B)=>{let Q=p==wo||p==T,Le=y==wo||y==B;return!Q&&u&&"boolean"==typeof T&&(Q=T?nr.has(p):ps.has(p)),!Le&&m&&"boolean"==typeof B&&(Le=B?nr.has(y):ps.has(y)),Q&&Le}}const qs=new RegExp("s*:selfs*,?","g");function ba(p,y,u,m){return new wi(p).build(y,u,m)}class wi{constructor(y){this._driver=y}build(y,u,m){const T=new or(u);return this._resetContextStyleTimingState(T),Vr(this,Vo(y),T)}_resetContextStyleTimingState(y){y.currentQuerySelector="",y.collectedStyles=new Map,y.collectedStyles.set("",new Map),y.currentTime=0}visitTrigger(y,u){let m=u.queryCount=0,T=u.depCount=0;const B=[],Q=[];return"@"==y.name.charAt(0)&&u.errors.push(function Ut(){return new l.vHH(3006,!1)}()),y.definitions.forEach(Le=>{if(this._resetContextStyleTimingState(u),0==Le.type){const Je=Le,At=Je.name;At.toString().split(/\s*,\s*/).forEach(jt=>{Je.name=jt,B.push(this.visitState(Je,u))}),Je.name=At}else if(1==Le.type){const Je=this.visitTransition(Le,u);m+=Je.queryCount,T+=Je.depCount,Q.push(Je)}else u.errors.push(function fn(){return new l.vHH(3007,!1)}())}),{type:7,name:y.name,states:B,transitions:Q,queryCount:m,depCount:T,options:null}}visitState(y,u){const m=this.visitStyle(y.styles,u),T=y.options&&y.options.params||null;if(m.containsDynamicStyles){const B=new Set,Q=T||{};m.styles.forEach(Le=>{Le instanceof Map&&Le.forEach(Je=>{Aa(Je).forEach(At=>{Q.hasOwnProperty(At)||B.add(At)})})}),B.size&&(Li(B.values()),u.errors.push(function gn(p,y){return new l.vHH(3008,!1)}()))}return{type:0,name:y.name,style:m,options:T?{params:T}:null}}visitTransition(y,u){u.queryCount=0,u.depCount=0;const m=Vr(this,Vo(y.animation),u);return{type:1,matchers:jo(y.expr,u.errors),animation:m,queryCount:u.queryCount,depCount:u.depCount,options:Sr(y.options)}}visitSequence(y,u){return{type:2,steps:y.steps.map(m=>Vr(this,m,u)),options:Sr(y.options)}}visitGroup(y,u){const m=u.currentTime;let T=0;const B=y.steps.map(Q=>{u.currentTime=m;const Le=Vr(this,Q,u);return T=Math.max(T,u.currentTime),Le});return u.currentTime=T,{type:3,steps:B,options:Sr(y.options)}}visitAnimate(y,u){const m=function Ml(p,y){if(p.hasOwnProperty("duration"))return p;if("number"==typeof p)return jr(Ds(p,y).duration,0,"");const u=p;if(u.split(/\s+/).some(B=>"{"==B.charAt(0)&&"{"==B.charAt(1))){const B=jr(0,0,"");return B.dynamic=!0,B.strValue=u,B}const T=Ds(u,y);return jr(T.duration,T.delay,T.easing)}(y.timings,u.errors);u.currentAnimateTimings=m;let T,B=y.styles?y.styles:(0,Ce.oB)({});if(5==B.type)T=this.visitKeyframes(B,u);else{let Q=y.styles,Le=!1;if(!Q){Le=!0;const At={};m.easing&&(At.easing=m.easing),Q=(0,Ce.oB)(At)}u.currentTime+=m.duration+m.delay;const Je=this.visitStyle(Q,u);Je.isEmptyStep=Le,T=Je}return u.currentAnimateTimings=null,{type:4,timings:m,style:T,options:null}}visitStyle(y,u){const m=this._makeStyleAst(y,u);return this._validateStyleAst(m,u),m}_makeStyleAst(y,u){const m=[],T=Array.isArray(y.styles)?y.styles:[y.styles];for(let Le of T)"string"==typeof Le?Le===Ce.l3?m.push(Le):u.errors.push(new l.vHH(3002,!1)):m.push(Jr(Le));let B=!1,Q=null;return m.forEach(Le=>{if(Le instanceof Map&&(Le.has("easing")&&(Q=Le.get("easing"),Le.delete("easing")),!B))for(let Je of Le.values())if(Je.toString().indexOf("{{")>=0){B=!0;break}}),{type:6,styles:m,easing:Q,offset:y.offset,containsDynamicStyles:B,options:null}}_validateStyleAst(y,u){const m=u.currentAnimateTimings;let T=u.currentTime,B=u.currentTime;m&&B>0&&(B-=m.duration+m.delay),y.styles.forEach(Q=>{"string"!=typeof Q&&Q.forEach((Le,Je)=>{const At=u.collectedStyles.get(u.currentQuerySelector),jt=At.get(Je);let dn=!0;jt&&(B!=T&&B>=jt.startTime&&T<=jt.endTime&&(u.errors.push(function ai(p,y,u,m,T){return new l.vHH(3010,!1)}()),dn=!1),B=jt.startTime),dn&&At.set(Je,{startTime:B,endTime:T}),u.options&&function oc(p,y,u){const m=y.params||{},T=Aa(p);T.length&&T.forEach(B=>{m.hasOwnProperty(B)||u.push(function Se(p){return new l.vHH(3001,!1)}())})}(Le,u.options,u.errors)})})}visitKeyframes(y,u){const m={type:5,styles:[],options:null};if(!u.currentAnimateTimings)return u.errors.push(function di(){return new l.vHH(3011,!1)}()),m;let B=0;const Q=[];let Le=!1,Je=!1,At=0;const jt=y.steps.map(Ii=>{const Ri=this._makeStyleAst(Ii,u);let rr=null!=Ri.offset?Ri.offset:function Xs(p){if("string"==typeof p)return null;let y=null;if(Array.isArray(p))p.forEach(u=>{if(u instanceof Map&&u.has("offset")){const m=u;y=parseFloat(m.get("offset")),m.delete("offset")}});else if(p instanceof Map&&p.has("offset")){const u=p;y=parseFloat(u.get("offset")),u.delete("offset")}return y}(Ri.styles),Si=0;return null!=rr&&(B++,Si=Ri.offset=rr),Je=Je||Si<0||Si>1,Le=Le||Si0&&B{const rr=Cn>0?Ri==Tn?1:Cn*Ri:Q[Ri],Si=rr*ii;u.currentTime=Un+Xn.delay+Si,Xn.duration=Si,this._validateStyleAst(Ii,u),Ii.offset=rr,m.styles.push(Ii)}),m}visitReference(y,u){return{type:8,animation:Vr(this,Vo(y.animation),u),options:Sr(y.options)}}visitAnimateChild(y,u){return u.depCount++,{type:9,options:Sr(y.options)}}visitAnimateRef(y,u){return{type:10,animation:this.visitReference(y.animation,u),options:Sr(y.options)}}visitQuery(y,u){const m=u.currentQuerySelector,T=y.options||{};u.queryCount++,u.currentQuery=y;const[B,Q]=function Oo(p){const y=!!p.split(/\s*,\s*/).find(u=>":self"==u);return y&&(p=p.replace(qs,"")),p=p.replace(/@\*/g,Gs).replace(/@\w+/g,u=>Gs+"-"+u.slice(1)).replace(/:animating/g,xl),[p,y]}(y.selector);u.currentQuerySelector=m.length?m+" "+B:B,ni(u.collectedStyles,u.currentQuerySelector,new Map);const Le=Vr(this,Vo(y.animation),u);return u.currentQuery=null,u.currentQuerySelector=m,{type:11,selector:B,limit:T.limit||0,optional:!!T.optional,includeSelf:Q,animation:Le,originalSelector:y.selector,options:Sr(y.options)}}visitStagger(y,u){u.currentQuery||u.errors.push(function _t(){return new l.vHH(3013,!1)}());const m="full"===y.timings?{duration:0,delay:0,easing:"full"}:Ds(y.timings,u.errors,!0);return{type:12,animation:Vr(this,Vo(y.animation),u),timings:m,options:null}}}class or{constructor(y){this.errors=y,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Sr(p){return p?(p=Uo(p)).params&&(p.params=function Ko(p){return p?Uo(p):null}(p.params)):p={},p}function jr(p,y,u){return{duration:p,delay:y,easing:u}}function xo(p,y,u,m,T,B,Q=null,Le=!1){return{type:1,element:p,keyframes:y,preStyleProps:u,postStyleProps:m,duration:T,delay:B,totalTime:T+B,easing:Q,subTimeline:Le}}class _s{constructor(){this._map=new Map}get(y){return this._map.get(y)||[]}append(y,u){let m=this._map.get(y);m||this._map.set(y,m=[]),m.push(...u)}has(y){return this._map.has(y)}clear(){this._map.clear()}}const Io=new RegExp(":enter","g"),fo=new RegExp(":leave","g");function Zr(p,y,u,m,T,B=new Map,Q=new Map,Le,Je,At=[]){return(new ms).buildKeyframes(p,y,u,m,T,B,Q,Le,Je,At)}class ms{buildKeyframes(y,u,m,T,B,Q,Le,Je,At,jt=[]){At=At||new _s;const dn=new Br(y,u,At,T,B,jt,[]);dn.options=Je;const Cn=Je.delay?So(Je.delay):0;dn.currentTimeline.delayNextStep(Cn),dn.currentTimeline.setStyles([Q],null,dn.errors,Je),Vr(this,m,dn);const Tn=dn.timelines.filter(Un=>Un.containsAnimation());if(Tn.length&&Le.size){let Un;for(let Xn=Tn.length-1;Xn>=0;Xn--){const ii=Tn[Xn];if(ii.element===u){Un=ii;break}}Un&&!Un.allowOnlyTimelineStyles()&&Un.setStyles([Le],null,dn.errors,Je)}return Tn.length?Tn.map(Un=>Un.buildKeyframes()):[xo(u,[],[],[],0,Cn,"",!1)]}visitTrigger(y,u){}visitState(y,u){}visitTransition(y,u){}visitAnimateChild(y,u){const m=u.subInstructions.get(u.element);if(m){const T=u.createSubContext(y.options),B=u.currentTimeline.currentTime,Q=this._visitSubInstructions(m,T,T.options);B!=Q&&u.transformIntoNewTimeline(Q)}u.previousNode=y}visitAnimateRef(y,u){const m=u.createSubContext(y.options);m.transformIntoNewTimeline(),this._applyAnimationRefDelays([y.options,y.animation.options],u,m),this.visitReference(y.animation,m),u.transformIntoNewTimeline(m.currentTimeline.currentTime),u.previousNode=y}_applyAnimationRefDelays(y,u,m){for(const T of y){const B=T?.delay;if(B){const Q="number"==typeof B?B:So(qi(B,T?.params??{},u.errors));m.delayNextStep(Q)}}}_visitSubInstructions(y,u,m){let B=u.currentTimeline.currentTime;const Q=null!=m.duration?So(m.duration):null,Le=null!=m.delay?So(m.delay):null;return 0!==Q&&y.forEach(Je=>{const At=u.appendInstructionToTimeline(Je,Q,Le);B=Math.max(B,At.duration+At.delay)}),B}visitReference(y,u){u.updateOptions(y.options,!0),Vr(this,y.animation,u),u.previousNode=y}visitSequence(y,u){const m=u.subContextCount;let T=u;const B=y.options;if(B&&(B.params||B.delay)&&(T=u.createSubContext(B),T.transformIntoNewTimeline(),null!=B.delay)){6==T.previousNode.type&&(T.currentTimeline.snapshotCurrentStyles(),T.previousNode=Co);const Q=So(B.delay);T.delayNextStep(Q)}y.steps.length&&(y.steps.forEach(Q=>Vr(this,Q,T)),T.currentTimeline.applyStylesToKeyframe(),T.subContextCount>m&&T.transformIntoNewTimeline()),u.previousNode=y}visitGroup(y,u){const m=[];let T=u.currentTimeline.currentTime;const B=y.options&&y.options.delay?So(y.options.delay):0;y.steps.forEach(Q=>{const Le=u.createSubContext(y.options);B&&Le.delayNextStep(B),Vr(this,Q,Le),T=Math.max(T,Le.currentTimeline.currentTime),m.push(Le.currentTimeline)}),m.forEach(Q=>u.currentTimeline.mergeTimelineCollectedStyles(Q)),u.transformIntoNewTimeline(T),u.previousNode=y}_visitTiming(y,u){if(y.dynamic){const m=y.strValue;return Ds(u.params?qi(m,u.params,u.errors):m,u.errors)}return{duration:y.duration,delay:y.delay,easing:y.easing}}visitAnimate(y,u){const m=u.currentAnimateTimings=this._visitTiming(y.timings,u),T=u.currentTimeline;m.delay&&(u.incrementTime(m.delay),T.snapshotCurrentStyles());const B=y.style;5==B.type?this.visitKeyframes(B,u):(u.incrementTime(m.duration),this.visitStyle(B,u),T.applyStylesToKeyframe()),u.currentAnimateTimings=null,u.previousNode=y}visitStyle(y,u){const m=u.currentTimeline,T=u.currentAnimateTimings;!T&&m.hasCurrentStyleProperties()&&m.forwardFrame();const B=T&&T.easing||y.easing;y.isEmptyStep?m.applyEmptyStep(B):m.setStyles(y.styles,B,u.errors,u.options),u.previousNode=y}visitKeyframes(y,u){const m=u.currentAnimateTimings,T=u.currentTimeline.duration,B=m.duration,Le=u.createSubContext().currentTimeline;Le.easing=m.easing,y.styles.forEach(Je=>{Le.forwardTime((Je.offset||0)*B),Le.setStyles(Je.styles,Je.easing,u.errors,u.options),Le.applyStylesToKeyframe()}),u.currentTimeline.mergeTimelineCollectedStyles(Le),u.transformIntoNewTimeline(T+B),u.previousNode=y}visitQuery(y,u){const m=u.currentTimeline.currentTime,T=y.options||{},B=T.delay?So(T.delay):0;B&&(6===u.previousNode.type||0==m&&u.currentTimeline.hasCurrentStyleProperties())&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Co);let Q=m;const Le=u.invokeQuery(y.selector,y.originalSelector,y.limit,y.includeSelf,!!T.optional,u.errors);u.currentQueryTotal=Le.length;let Je=null;Le.forEach((At,jt)=>{u.currentQueryIndex=jt;const dn=u.createSubContext(y.options,At);B&&dn.delayNextStep(B),At===u.element&&(Je=dn.currentTimeline),Vr(this,y.animation,dn),dn.currentTimeline.applyStylesToKeyframe(),Q=Math.max(Q,dn.currentTimeline.currentTime)}),u.currentQueryIndex=0,u.currentQueryTotal=0,u.transformIntoNewTimeline(Q),Je&&(u.currentTimeline.mergeTimelineCollectedStyles(Je),u.currentTimeline.snapshotCurrentStyles()),u.previousNode=y}visitStagger(y,u){const m=u.parentContext,T=u.currentTimeline,B=y.timings,Q=Math.abs(B.duration),Le=Q*(u.currentQueryTotal-1);let Je=Q*u.currentQueryIndex;switch(B.duration<0?"reverse":B.easing){case"reverse":Je=Le-Je;break;case"full":Je=m.currentStaggerTime}const jt=u.currentTimeline;Je&&jt.delayNextStep(Je);const dn=jt.currentTime;Vr(this,y.animation,u),u.previousNode=y,m.currentStaggerTime=T.currentTime-dn+(T.startTime-m.currentTimeline.startTime)}}const Co={};class Br{constructor(y,u,m,T,B,Q,Le,Je){this._driver=y,this.element=u,this.subInstructions=m,this._enterClassName=T,this._leaveClassName=B,this.errors=Q,this.timelines=Le,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Co,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Je||new ea(this._driver,u,0),Le.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(y,u){if(!y)return;const m=y;let T=this.options;null!=m.duration&&(T.duration=So(m.duration)),null!=m.delay&&(T.delay=So(m.delay));const B=m.params;if(B){let Q=T.params;Q||(Q=this.options.params={}),Object.keys(B).forEach(Le=>{(!u||!Q.hasOwnProperty(Le))&&(Q[Le]=qi(B[Le],Q,this.errors))})}}_copyOptions(){const y={};if(this.options){const u=this.options.params;if(u){const m=y.params={};Object.keys(u).forEach(T=>{m[T]=u[T]})}}return y}createSubContext(y=null,u,m){const T=u||this.element,B=new Br(this._driver,T,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(T,m||0));return B.previousNode=this.previousNode,B.currentAnimateTimings=this.currentAnimateTimings,B.options=this._copyOptions(),B.updateOptions(y),B.currentQueryIndex=this.currentQueryIndex,B.currentQueryTotal=this.currentQueryTotal,B.parentContext=this,this.subContextCount++,B}transformIntoNewTimeline(y){return this.previousNode=Co,this.currentTimeline=this.currentTimeline.fork(this.element,y),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(y,u,m){const T={duration:u??y.duration,delay:this.currentTimeline.currentTime+(m??0)+y.delay,easing:""},B=new po(this._driver,y.element,y.keyframes,y.preStyleProps,y.postStyleProps,T,y.stretchStartingKeyframe);return this.timelines.push(B),T}incrementTime(y){this.currentTimeline.forwardTime(this.currentTimeline.duration+y)}delayNextStep(y){y>0&&this.currentTimeline.delayNextStep(y)}invokeQuery(y,u,m,T,B,Q){let Le=[];if(T&&Le.push(this.element),y.length>0){y=(y=y.replace(Io,"."+this._enterClassName)).replace(fo,"."+this._leaveClassName);let At=this._driver.query(this.element,y,1!=m);0!==m&&(At=m<0?At.slice(At.length+m,At.length):At.slice(0,m)),Le.push(...At)}return!B&&0==Le.length&&Q.push(function G(p){return new l.vHH(3014,!1)}()),Le}}class ea{constructor(y,u,m,T){this._driver=y,this.element=u,this.startTime=m,this._elementTimelineStylesLookup=T,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(u),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(u,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(y){const u=1===this._keyframes.size&&this._pendingStyles.size;this.duration||u?(this.forwardTime(this.currentTime+y),u&&this.snapshotCurrentStyles()):this.startTime+=y}fork(y,u){return this.applyStylesToKeyframe(),new ea(this._driver,y,u||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(y){this.applyStylesToKeyframe(),this.duration=y,this._loadKeyframe()}_updateStyle(y,u){this._localTimelineStyles.set(y,u),this._globalTimelineStyles.set(y,u),this._styleSummary.set(y,{time:this.currentTime,value:u})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(y){y&&this._previousKeyframe.set("easing",y);for(let[u,m]of this._globalTimelineStyles)this._backFill.set(u,m||Ce.l3),this._currentKeyframe.set(u,Ce.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(y,u,m,T){u&&this._previousKeyframe.set("easing",u);const B=T&&T.params||{},Q=function qo(p,y){const u=new Map;let m;return p.forEach(T=>{if("*"===T){m=m||y.keys();for(let B of m)u.set(B,Ce.l3)}else oo(T,u)}),u}(y,this._globalTimelineStyles);for(let[Le,Je]of Q){const At=qi(Je,B,m);this._pendingStyles.set(Le,At),this._localTimelineStyles.has(Le)||this._backFill.set(Le,this._globalTimelineStyles.get(Le)??Ce.l3),this._updateStyle(Le,At)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((y,u)=>{this._currentKeyframe.set(u,y)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((y,u)=>{this._currentKeyframe.has(u)||this._currentKeyframe.set(u,y)}))}snapshotCurrentStyles(){for(let[y,u]of this._localTimelineStyles)this._pendingStyles.set(y,u),this._updateStyle(y,u)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const y=[];for(let u in this._currentKeyframe)y.push(u);return y}mergeTimelineCollectedStyles(y){y._styleSummary.forEach((u,m)=>{const T=this._styleSummary.get(m);(!T||u.time>T.time)&&this._updateStyle(m,u.value)})}buildKeyframes(){this.applyStylesToKeyframe();const y=new Set,u=new Set,m=1===this._keyframes.size&&0===this.duration;let T=[];this._keyframes.forEach((Le,Je)=>{const At=oo(Le,new Map,this._backFill);At.forEach((jt,dn)=>{jt===Ce.k1?y.add(dn):jt===Ce.l3&&u.add(dn)}),m||At.set("offset",Je/this.duration),T.push(At)});const B=y.size?Li(y.values()):[],Q=u.size?Li(u.values()):[];if(m){const Le=T[0],Je=new Map(Le);Le.set("offset",0),Je.set("offset",1),T=[Le,Je]}return xo(this.element,T,B,Q,this.duration,this.startTime,this.easing,!1)}}class po extends ea{constructor(y,u,m,T,B,Q,Le=!1){super(y,u,Q.delay),this.keyframes=m,this.preStyleProps=T,this.postStyleProps=B,this._stretchStartingKeyframe=Le,this.timings={duration:Q.duration,delay:Q.delay,easing:Q.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let y=this.keyframes,{delay:u,duration:m,easing:T}=this.timings;if(this._stretchStartingKeyframe&&u){const B=[],Q=m+u,Le=u/Q,Je=oo(y[0]);Je.set("offset",0),B.push(Je);const At=oo(y[0]);At.set("offset",io(Le)),B.push(At);const jt=y.length-1;for(let dn=1;dn<=jt;dn++){let Cn=oo(y[dn]);const Tn=Cn.get("offset");Cn.set("offset",io((u+Tn*m)/Q)),B.push(Cn)}m=Q,u=0,T="",y=B}return xo(this.element,y,this.preStyleProps,this.postStyleProps,m,u,T,!0)}}function io(p,y=3){const u=Math.pow(10,y-1);return Math.round(p*u)/u}class ya{}const Oa=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Ua extends ya{normalizePropertyName(y,u){return dr(y)}normalizeStyleValue(y,u,m,T){let B="";const Q=m.toString().trim();if(Oa.has(u)&&0!==m&&"0"!==m)if("number"==typeof m)B="px";else{const Le=m.match(/^[+-]?[\d\.]+([a-z]*)$/);Le&&0==Le[1].length&&T.push(function Bt(p,y){return new l.vHH(3005,!1)}())}return Q+B}}function Ia(p,y,u,m,T,B,Q,Le,Je,At,jt,dn,Cn){return{type:0,element:p,triggerName:y,isRemovalTransition:T,fromState:u,fromStyles:B,toState:m,toStyles:Q,timelines:Le,queriedElements:Je,preStyleProps:At,postStyleProps:jt,totalTime:dn,errors:Cn}}const ta={};class na{constructor(y,u,m){this._triggerName=y,this.ast=u,this._stateStyles=m}match(y,u,m,T){return function Fe(p,y,u,m,T){return p.some(B=>B(y,u,m,T))}(this.ast.matchers,y,u,m,T)}buildStyles(y,u,m){let T=this._stateStyles.get("*");return void 0!==y&&(T=this._stateStyles.get(y?.toString())||T),T?T.buildStyles(u,m):new Map}build(y,u,m,T,B,Q,Le,Je,At,jt){const dn=[],Cn=this.ast.options&&this.ast.options.params||ta,Un=this.buildStyles(m,Le&&Le.params||ta,dn),Xn=Je&&Je.params||ta,ii=this.buildStyles(T,Xn,dn),Ii=new Set,Ri=new Map,rr=new Map,Si="void"===T,lr={params:le(Xn,Cn),delay:this.ast.options?.delay},gr=jt?[]:Zr(y,u,this.ast.animation,B,Q,Un,ii,lr,At,dn);let Cr=0;if(gr.forEach($o=>{Cr=Math.max($o.duration+$o.delay,Cr)}),dn.length)return Ia(u,this._triggerName,m,T,Si,Un,ii,[],[],Ri,rr,Cr,dn);gr.forEach($o=>{const Bo=$o.element,sl=ni(Ri,Bo,new Set);$o.preStyleProps.forEach(zs=>sl.add(zs));const Zl=ni(rr,Bo,new Set);$o.postStyleProps.forEach(zs=>Zl.add(zs)),Bo!==u&&Ii.add(Bo)});const $r=Li(Ii.values());return Ia(u,this._triggerName,m,T,Si,Un,ii,gr,$r,Ri,rr,Cr)}}function le(p,y){const u=Uo(y);for(const m in p)p.hasOwnProperty(m)&&null!=p[m]&&(u[m]=p[m]);return u}class Qe{constructor(y,u,m){this.styles=y,this.defaultParams=u,this.normalizer=m}buildStyles(y,u){const m=new Map,T=Uo(this.defaultParams);return Object.keys(y).forEach(B=>{const Q=y[B];null!==Q&&(T[B]=Q)}),this.styles.styles.forEach(B=>{"string"!=typeof B&&B.forEach((Q,Le)=>{Q&&(Q=qi(Q,T,u));const Je=this.normalizer.normalizePropertyName(Le,u);Q=this.normalizer.normalizeStyleValue(Le,Je,Q,u),m.set(Le,Q)})}),m}}class Qn{constructor(y,u,m){this.name=y,this.ast=u,this._normalizer=m,this.transitionFactories=[],this.states=new Map,u.states.forEach(T=>{this.states.set(T.name,new Qe(T.style,T.options&&T.options.params||{},m))}),Zo(this.states,"true","1"),Zo(this.states,"false","0"),u.transitions.forEach(T=>{this.transitionFactories.push(new na(y,T,this.states))}),this.fallbackTransition=function Ni(p,y,u){return new na(p,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Q,Le)=>!0],options:null,queryCount:0,depCount:0},y)}(y,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(y,u,m,T){return this.transitionFactories.find(Q=>Q.match(y,u,m,T))||null}matchStyles(y,u,m){return this.fallbackTransition.buildStyles(y,u,m)}}function Zo(p,y,u){p.has(y)?p.has(u)||p.set(u,p.get(y)):p.has(u)&&p.set(y,p.get(u))}const Cl=new _s;class ia{constructor(y,u,m){this.bodyNode=y,this._driver=u,this._normalizer=m,this._animations=new Map,this._playersById=new Map,this.players=[]}register(y,u){const m=[],B=ba(this._driver,u,m,[]);if(m.length)throw function be(p){return new l.vHH(3503,!1)}();this._animations.set(y,B)}_buildPlayer(y,u,m){const T=y.element,B=cn(this._normalizer,y.keyframes,u,m);return this._driver.animate(T,B,y.duration,y.delay,y.easing,[],!0)}create(y,u,m={}){const T=[],B=this._animations.get(y);let Q;const Le=new Map;if(B?(Q=Zr(this._driver,u,B,ho,to,new Map,new Map,m,Cl,T),Q.forEach(jt=>{const dn=ni(Le,jt.element,new Map);jt.postStyleProps.forEach(Cn=>dn.set(Cn,null))})):(T.push(function Te(){return new l.vHH(3300,!1)}()),Q=[]),T.length)throw function He(p){return new l.vHH(3504,!1)}();Le.forEach((jt,dn)=>{jt.forEach((Cn,Tn)=>{jt.set(Tn,this._driver.computeStyle(dn,Tn,Ce.l3))})});const At=It(Q.map(jt=>{const dn=Le.get(jt.element);return this._buildPlayer(jt,new Map,dn)}));return this._playersById.set(y,At),At.onDestroy(()=>this.destroy(y)),this.players.push(At),At}destroy(y){const u=this._getPlayer(y);u.destroy(),this._playersById.delete(y);const m=this.players.indexOf(u);m>=0&&this.players.splice(m,1)}_getPlayer(y){const u=this._playersById.get(y);if(!u)throw function Wt(p){return new l.vHH(3301,!1)}();return u}listen(y,u,m,T){const B=On(u,"","","");return _n(this._getPlayer(y),m,B,T),()=>{}}command(y,u,m,T){if("register"==m)return void this.register(y,T[0]);if("create"==m)return void this.create(y,u,T[0]||{});const B=this._getPlayer(y);switch(m){case"play":B.play();break;case"pause":B.pause();break;case"reset":B.reset();break;case"restart":B.restart();break;case"finish":B.finish();break;case"init":B.init();break;case"setPosition":B.setPosition(parseFloat(T[0]));break;case"destroy":this.destroy(y)}}}const sc="ng-animate-queued",Tl="ng-animate-disabled",El=[],wa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Xo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pr="__ng_removed";class Ms{get params(){return this.options.params}constructor(y,u=""){this.namespaceId=u;const m=y&&y.hasOwnProperty("value");if(this.value=function Gl(p){return p??null}(m?y.value:y),m){const B=Uo(y);delete B.value,this.options=B}else this.options={};this.options.params||(this.options.params={})}absorbOptions(y){const u=y.params;if(u){const m=this.options.params;Object.keys(u).forEach(T=>{null==m[T]&&(m[T]=u[T])})}}}const As="void",qr=new Ms(As);class Bs{constructor(y,u,m){this.id=y,this.hostElement=u,this._engine=m,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+y,gs(u,this._hostClassName)}listen(y,u,m,T){if(!this._triggers.has(u))throw function Pn(p,y){return new l.vHH(3302,!1)}();if(null==m||0==m.length)throw function wt(p){return new l.vHH(3303,!1)}();if(!function ja(p){return"start"==p||"done"==p}(m))throw function Yt(p,y){return new l.vHH(3400,!1)}();const B=ni(this._elementListeners,y,[]),Q={name:u,phase:m,callback:T};B.push(Q);const Le=ni(this._engine.statesByElement,y,new Map);return Le.has(u)||(gs(y,yr),gs(y,yr+"-"+u),Le.set(u,qr)),()=>{this._engine.afterFlush(()=>{const Je=B.indexOf(Q);Je>=0&&B.splice(Je,1),this._triggers.has(u)||Le.delete(u)})}}register(y,u){return!this._triggers.has(y)&&(this._triggers.set(y,u),!0)}_getTrigger(y){const u=this._triggers.get(y);if(!u)throw function fe(p){return new l.vHH(3401,!1)}();return u}trigger(y,u,m,T=!0){const B=this._getTrigger(u),Q=new Va(this.id,u,y);let Le=this._engine.statesByElement.get(y);Le||(gs(y,yr),gs(y,yr+"-"+u),this._engine.statesByElement.set(y,Le=new Map));let Je=Le.get(u);const At=new Ms(m,this.id);if(!(m&&m.hasOwnProperty("value"))&&Je&&At.absorbOptions(Je.options),Le.set(u,At),Je||(Je=qr),At.value!==As&&Je.value===At.value){if(!function Za(p,y){const u=Object.keys(p),m=Object.keys(y);if(u.length!=m.length)return!1;for(let T=0;T{Sa(y,ii),fs(y,Ii)})}return}const Cn=ni(this._engine.playersByElement,y,[]);Cn.forEach(Xn=>{Xn.namespaceId==this.id&&Xn.triggerName==u&&Xn.queued&&Xn.destroy()});let Tn=B.matchTransition(Je.value,At.value,y,At.params),Un=!1;if(!Tn){if(!T)return;Tn=B.fallbackTransition,Un=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:u,transition:Tn,fromState:Je,toState:At,player:Q,isFallbackTransition:Un}),Un||(gs(y,sc),Q.onStart(()=>{ns(y,sc)})),Q.onDone(()=>{let Xn=this.players.indexOf(Q);Xn>=0&&this.players.splice(Xn,1);const ii=this._engine.playersByElement.get(y);if(ii){let Ii=ii.indexOf(Q);Ii>=0&&ii.splice(Ii,1)}}),this.players.push(Q),Cn.push(Q),Q}deregister(y){this._triggers.delete(y),this._engine.statesByElement.forEach(u=>u.delete(y)),this._elementListeners.forEach((u,m)=>{this._elementListeners.set(m,u.filter(T=>T.name!=y))})}clearElementCache(y){this._engine.statesByElement.delete(y),this._elementListeners.delete(y);const u=this._engine.playersByElement.get(y);u&&(u.forEach(m=>m.destroy()),this._engine.playersByElement.delete(y))}_signalRemovalForInnerTriggers(y,u){const m=this._engine.driver.query(y,Gs,!0);m.forEach(T=>{if(T[Pr])return;const B=this._engine.fetchNamespacesByElement(T);B.size?B.forEach(Q=>Q.triggerLeaveAnimation(T,u,!1,!0)):this.clearElementCache(T)}),this._engine.afterFlushAnimationsDone(()=>m.forEach(T=>this.clearElementCache(T)))}triggerLeaveAnimation(y,u,m,T){const B=this._engine.statesByElement.get(y),Q=new Map;if(B){const Le=[];if(B.forEach((Je,At)=>{if(Q.set(At,Je.value),this._triggers.has(At)){const jt=this.trigger(y,At,As,T);jt&&Le.push(jt)}}),Le.length)return this._engine.markElementAsRemoved(this.id,y,!0,u,Q),m&&It(Le).onDone(()=>this._engine.processLeaveNode(y)),!0}return!1}prepareLeaveAnimationListeners(y){const u=this._elementListeners.get(y),m=this._engine.statesByElement.get(y);if(u&&m){const T=new Set;u.forEach(B=>{const Q=B.name;if(T.has(Q))return;T.add(Q);const Je=this._triggers.get(Q).fallbackTransition,At=m.get(Q)||qr,jt=new Ms(As),dn=new Va(this.id,Q,y);this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:Q,transition:Je,fromState:At,toState:jt,player:dn,isFallbackTransition:!0})})}}removeNode(y,u){const m=this._engine;if(y.childElementCount&&this._signalRemovalForInnerTriggers(y,u),this.triggerLeaveAnimation(y,u,!0))return;let T=!1;if(m.totalAnimations){const B=m.players.length?m.playersByQueriedElement.get(y):[];if(B&&B.length)T=!0;else{let Q=y;for(;Q=Q.parentNode;)if(m.statesByElement.get(Q)){T=!0;break}}}if(this.prepareLeaveAnimationListeners(y),T)m.markElementAsRemoved(this.id,y,!1,u);else{const B=y[Pr];(!B||B===wa)&&(m.afterFlush(()=>this.clearElementCache(y)),m.destroyInnerAnimations(y),m._onRemovalComplete(y,u))}}insertNode(y,u){gs(y,this._hostClassName)}drainQueuedTransitions(y){const u=[];return this._queue.forEach(m=>{const T=m.player;if(T.destroyed)return;const B=m.element,Q=this._elementListeners.get(B);Q&&Q.forEach(Le=>{if(Le.name==m.triggerName){const Je=On(B,m.triggerName,m.fromState.value,m.toState.value);Je._data=y,_n(m.player,Le.phase,Je,Le.callback)}}),T.markedForDestroy?this._engine.afterFlush(()=>{T.destroy()}):u.push(m)}),this._queue=[],u.sort((m,T)=>{const B=m.transition.ast.depCount,Q=T.transition.ast.depCount;return 0==B||0==Q?B-Q:this._engine.driver.containsElement(m.element,T.element)?1:-1})}destroy(y){this.players.forEach(u=>u.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,y)}}class Ro{_onRemovalComplete(y,u){this.onRemovalComplete(y,u)}constructor(y,u,m){this.bodyNode=y,this.driver=u,this._normalizer=m,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=(T,B)=>{}}get queuedPlayers(){const y=[];return this._namespaceList.forEach(u=>{u.players.forEach(m=>{m.queued&&y.push(m)})}),y}createNamespace(y,u){const m=new Bs(y,u,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,u)?this._balanceNamespaceList(m,u):(this.newHostElements.set(u,m),this.collectEnterElement(u)),this._namespaceLookup[y]=m}_balanceNamespaceList(y,u){const m=this._namespaceList,T=this.namespacesByHostElement;if(m.length-1>=0){let Q=!1,Le=this.driver.getParentElement(u);for(;Le;){const Je=T.get(Le);if(Je){const At=m.indexOf(Je);m.splice(At+1,0,y),Q=!0;break}Le=this.driver.getParentElement(Le)}Q||m.unshift(y)}else m.push(y);return T.set(u,y),y}register(y,u){let m=this._namespaceLookup[y];return m||(m=this.createNamespace(y,u)),m}registerTrigger(y,u,m){let T=this._namespaceLookup[y];T&&T.register(u,m)&&this.totalAnimations++}destroy(y,u){y&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const m=this._fetchNamespace(y);this.namespacesByHostElement.delete(m.hostElement);const T=this._namespaceList.indexOf(m);T>=0&&this._namespaceList.splice(T,1),m.destroy(u),delete this._namespaceLookup[y]}))}_fetchNamespace(y){return this._namespaceLookup[y]}fetchNamespacesByElement(y){const u=new Set,m=this.statesByElement.get(y);if(m)for(let T of m.values())if(T.namespaceId){const B=this._fetchNamespace(T.namespaceId);B&&u.add(B)}return u}trigger(y,u,m,T){if(Hs(u)){const B=this._fetchNamespace(y);if(B)return B.trigger(u,m,T),!0}return!1}insertNode(y,u,m,T){if(!Hs(u))return;const B=u[Pr];if(B&&B.setForRemoval){B.setForRemoval=!1,B.setForMove=!0;const Q=this.collectedLeaveElements.indexOf(u);Q>=0&&this.collectedLeaveElements.splice(Q,1)}if(y){const Q=this._fetchNamespace(y);Q&&Q.insertNode(u,m)}T&&this.collectEnterElement(u)}collectEnterElement(y){this.collectedEnterElements.push(y)}markElementAsDisabled(y,u){u?this.disabledNodes.has(y)||(this.disabledNodes.add(y),gs(y,Tl)):this.disabledNodes.has(y)&&(this.disabledNodes.delete(y),ns(y,Tl))}removeNode(y,u,m){if(Hs(u)){const T=y?this._fetchNamespace(y):null;T?T.removeNode(u,m):this.markElementAsRemoved(y,u,!1,m);const B=this.namespacesByHostElement.get(u);B&&B.id!==y&&B.removeNode(u,m)}else this._onRemovalComplete(u,m)}markElementAsRemoved(y,u,m,T,B){this.collectedLeaveElements.push(u),u[Pr]={namespaceId:y,setForRemoval:T,hasAnimation:m,removedBeforeQueried:!1,previousTriggersValues:B}}listen(y,u,m,T,B){return Hs(u)?this._fetchNamespace(y).listen(u,m,T,B):()=>{}}_buildInstruction(y,u,m,T,B){return y.transition.build(this.driver,y.element,y.fromState.value,y.toState.value,m,T,y.fromState.options,y.toState.options,u,B)}destroyInnerAnimations(y){let u=this.driver.query(y,Gs,!0);u.forEach(m=>this.destroyActiveAnimationsForElement(m)),0!=this.playersByQueriedElement.size&&(u=this.driver.query(y,xl,!0),u.forEach(m=>this.finishActiveQueriedAnimationOnElement(m)))}destroyActiveAnimationsForElement(y){const u=this.playersByElement.get(y);u&&u.forEach(m=>{m.queued?m.markedForDestroy=!0:m.destroy()})}finishActiveQueriedAnimationOnElement(y){const u=this.playersByQueriedElement.get(y);u&&u.forEach(m=>m.finish())}whenRenderingDone(){return new Promise(y=>{if(this.players.length)return It(this.players).onDone(()=>y());y()})}processLeaveNode(y){const u=y[Pr];if(u&&u.setForRemoval){if(y[Pr]=wa,u.namespaceId){this.destroyInnerAnimations(y);const m=this._fetchNamespace(u.namespaceId);m&&m.clearElementCache(y)}this._onRemovalComplete(y,u.setForRemoval)}y.classList?.contains(Tl)&&this.markElementAsDisabled(y,!1),this.driver.query(y,".ng-animate-disabled",!0).forEach(m=>{this.markElementAsDisabled(m,!1)})}flush(y=-1){let u=[];if(this.newHostElements.size&&(this.newHostElements.forEach((m,T)=>this._balanceNamespaceList(m,T)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let m=0;mm()),this._flushFns=[],this._whenQuietFns.length){const m=this._whenQuietFns;this._whenQuietFns=[],u.length?It(u).onDone(()=>{m.forEach(T=>T())}):m.forEach(T=>T())}}reportError(y){throw function Mt(p){return new l.vHH(3402,!1)}()}_flushAnimations(y,u){const m=new _s,T=[],B=new Map,Q=[],Le=new Map,Je=new Map,At=new Map,jt=new Set;this.disabledNodes.forEach(ci=>{jt.add(ci);const Di=this.driver.query(ci,".ng-animate-queued",!0);for(let Zi=0;Zi{const Zi=ho+Xn++;Un.set(Di,Zi),ci.forEach(Er=>gs(Er,Zi))});const ii=[],Ii=new Set,Ri=new Set;for(let ci=0;ciIi.add(Er)):Ri.add(Di))}const rr=new Map,Si=Wl(Cn,Array.from(Ii));Si.forEach((ci,Di)=>{const Zi=to+Xn++;rr.set(Di,Zi),ci.forEach(Er=>gs(Er,Zi))}),y.push(()=>{Tn.forEach((ci,Di)=>{const Zi=Un.get(Di);ci.forEach(Er=>ns(Er,Zi))}),Si.forEach((ci,Di)=>{const Zi=rr.get(Di);ci.forEach(Er=>ns(Er,Zi))}),ii.forEach(ci=>{this.processLeaveNode(ci)})});const lr=[],gr=[];for(let ci=this._namespaceList.length-1;ci>=0;ci--)this._namespaceList[ci].drainQueuedTransitions(u).forEach(Zi=>{const Er=Zi.player,_a=Zi.element;if(lr.push(Er),this.collectedEnterElements.length){const ma=_a[Pr];if(ma&&ma.setForMove){if(ma.previousTriggersValues&&ma.previousTriggersValues.has(Zi.triggerName)){const wl=ma.previousTriggersValues.get(Zi.triggerName),zl=this.statesByElement.get(Zi.element);if(zl&&zl.has(Zi.triggerName)){const xu=zl.get(Zi.triggerName);xu.value=wl,zl.set(Zi.triggerName,xu)}}return void Er.destroy()}}const ed=!dn||!this.driver.containsElement(dn,_a),yl=rr.get(_a),vd=Un.get(_a),Ho=this._buildInstruction(Zi,m,vd,yl,ed);if(Ho.errors&&Ho.errors.length)return void gr.push(Ho);if(ed)return Er.onStart(()=>Sa(_a,Ho.fromStyles)),Er.onDestroy(()=>fs(_a,Ho.toStyles)),void T.push(Er);if(Zi.isFallbackTransition)return Er.onStart(()=>Sa(_a,Ho.fromStyles)),Er.onDestroy(()=>fs(_a,Ho.toStyles)),void T.push(Er);const Zd=[];Ho.timelines.forEach(ma=>{ma.stretchStartingKeyframe=!0,this.disabledNodes.has(ma.element)||Zd.push(ma)}),Ho.timelines=Zd,m.append(_a,Ho.timelines),Q.push({instruction:Ho,player:Er,element:_a}),Ho.queriedElements.forEach(ma=>ni(Le,ma,[]).push(Er)),Ho.preStyleProps.forEach((ma,wl)=>{if(ma.size){let zl=Je.get(wl);zl||Je.set(wl,zl=new Set),ma.forEach((xu,Zu)=>zl.add(Zu))}}),Ho.postStyleProps.forEach((ma,wl)=>{let zl=At.get(wl);zl||At.set(wl,zl=new Set),ma.forEach((xu,Zu)=>zl.add(Zu))})});if(gr.length){const ci=[];gr.forEach(Di=>{ci.push(function ht(p,y){return new l.vHH(3505,!1)}())}),lr.forEach(Di=>Di.destroy()),this.reportError(ci)}const Cr=new Map,$r=new Map;Q.forEach(ci=>{const Di=ci.element;m.has(Di)&&($r.set(Di,Di),this._beforeAnimationBuild(ci.player.namespaceId,ci.instruction,Cr))}),T.forEach(ci=>{const Di=ci.element;this._getPreviousPlayers(Di,!1,ci.namespaceId,ci.triggerName,null).forEach(Er=>{ni(Cr,Di,[]).push(Er),Er.destroy()})});const $o=ii.filter(ci=>za(ci,Je,At)),Bo=new Map;ts(Bo,this.driver,Ri,At,Ce.l3).forEach(ci=>{za(ci,Je,At)&&$o.push(ci)});const Zl=new Map;Tn.forEach((ci,Di)=>{ts(Zl,this.driver,new Set(ci),Je,Ce.k1)}),$o.forEach(ci=>{const Di=Bo.get(ci),Zi=Zl.get(ci);Bo.set(ci,new Map([...Di?.entries()??[],...Zi?.entries()??[]]))});const zs=[],jd=[],gd={};Q.forEach(ci=>{const{element:Di,player:Zi,instruction:Er}=ci;if(m.has(Di)){if(jt.has(Di))return Zi.onDestroy(()=>fs(Di,Er.toStyles)),Zi.disabled=!0,Zi.overrideTotalTime(Er.totalTime),void T.push(Zi);let _a=gd;if($r.size>1){let yl=Di;const vd=[];for(;yl=yl.parentNode;){const Ho=$r.get(yl);if(Ho){_a=Ho;break}vd.push(yl)}vd.forEach(Ho=>$r.set(Ho,_a))}const ed=this._buildAnimation(Zi.namespaceId,Er,Cr,B,Zl,Bo);if(Zi.setRealPlayer(ed),_a===gd)zs.push(Zi);else{const yl=this.playersByElement.get(_a);yl&&yl.length&&(Zi.parentPlayer=It(yl)),T.push(Zi)}}else Sa(Di,Er.fromStyles),Zi.onDestroy(()=>fs(Di,Er.toStyles)),jd.push(Zi),jt.has(Di)&&T.push(Zi)}),jd.forEach(ci=>{const Di=B.get(ci.element);if(Di&&Di.length){const Zi=It(Di);ci.setRealPlayer(Zi)}}),T.forEach(ci=>{ci.parentPlayer?ci.syncPlayerEvents(ci.parentPlayer):ci.destroy()});for(let ci=0;ci!ed.destroyed);_a.length?vc(this,Di,_a):this.processLeaveNode(Di)}return ii.length=0,zs.forEach(ci=>{this.players.push(ci),ci.onDone(()=>{ci.destroy();const Di=this.players.indexOf(ci);this.players.splice(Di,1)}),ci.play()}),zs}afterFlush(y){this._flushFns.push(y)}afterFlushAnimationsDone(y){this._whenQuietFns.push(y)}_getPreviousPlayers(y,u,m,T,B){let Q=[];if(u){const Le=this.playersByQueriedElement.get(y);Le&&(Q=Le)}else{const Le=this.playersByElement.get(y);if(Le){const Je=!B||B==As;Le.forEach(At=>{At.queued||!Je&&At.triggerName!=T||Q.push(At)})}}return(m||T)&&(Q=Q.filter(Le=>!(m&&m!=Le.namespaceId||T&&T!=Le.triggerName))),Q}_beforeAnimationBuild(y,u,m){const B=u.element,Q=u.isRemovalTransition?void 0:y,Le=u.isRemovalTransition?void 0:u.triggerName;for(const Je of u.timelines){const At=Je.element,jt=At!==B,dn=ni(m,At,[]);this._getPreviousPlayers(At,jt,Q,Le,u.toState).forEach(Tn=>{const Un=Tn.getRealPlayer();Un.beforeDestroy&&Un.beforeDestroy(),Tn.destroy(),dn.push(Tn)})}Sa(B,u.fromStyles)}_buildAnimation(y,u,m,T,B,Q){const Le=u.triggerName,Je=u.element,At=[],jt=new Set,dn=new Set,Cn=u.timelines.map(Un=>{const Xn=Un.element;jt.add(Xn);const ii=Xn[Pr];if(ii&&ii.removedBeforeQueried)return new Ce.ZN(Un.duration,Un.delay);const Ii=Xn!==Je,Ri=function Os(p){const y=[];return Is(p,y),y}((m.get(Xn)||El).map(Cr=>Cr.getRealPlayer())).filter(Cr=>!!Cr.element&&Cr.element===Xn),rr=B.get(Xn),Si=Q.get(Xn),lr=cn(this._normalizer,Un.keyframes,rr,Si),gr=this._buildPlayer(Un,lr,Ri);if(Un.subTimeline&&T&&dn.add(Xn),Ii){const Cr=new Va(y,Le,Xn);Cr.setRealPlayer(gr),At.push(Cr)}return gr});At.forEach(Un=>{ni(this.playersByQueriedElement,Un.element,[]).push(Un),Un.onDone(()=>function Sl(p,y,u){let m=p.get(y);if(m){if(m.length){const T=m.indexOf(u);m.splice(T,1)}0==m.length&&p.delete(y)}return m}(this.playersByQueriedElement,Un.element,Un))}),jt.forEach(Un=>gs(Un,Ba));const Tn=It(Cn);return Tn.onDestroy(()=>{jt.forEach(Un=>ns(Un,Ba)),fs(Je,u.toStyles)}),dn.forEach(Un=>{ni(T,Un,[]).push(Tn)}),Tn}_buildPlayer(y,u,m){return u.length>0?this.driver.animate(y.element,u,y.duration,y.delay,y.easing,m):new Ce.ZN(y.duration,y.delay)}}class Va{constructor(y,u,m){this.namespaceId=y,this.triggerName=u,this.element=m,this._player=new Ce.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(y){this._containsRealPlayer||(this._player=y,this._queuedCallbacks.forEach((u,m)=>{u.forEach(T=>_n(y,m,void 0,T))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(y.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(y){this.totalTime=y}syncPlayerEvents(y){const u=this._player;u.triggerCallback&&y.onStart(()=>u.triggerCallback("start")),y.onDone(()=>this.finish()),y.onDestroy(()=>this.destroy())}_queueEvent(y,u){ni(this._queuedCallbacks,y,[]).push(u)}onDone(y){this.queued&&this._queueEvent("done",y),this._player.onDone(y)}onStart(y){this.queued&&this._queueEvent("start",y),this._player.onStart(y)}onDestroy(y){this.queued&&this._queueEvent("destroy",y),this._player.onDestroy(y)}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(y){this.queued||this._player.setPosition(y)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(y){const u=this._player;u.triggerCallback&&u.triggerCallback(y)}}function Hs(p){return p&&1===p.nodeType}function es(p,y){const u=p.style.display;return p.style.display=y??"none",u}function ts(p,y,u,m,T){const B=[];u.forEach(Je=>B.push(es(Je)));const Q=[];m.forEach((Je,At)=>{const jt=new Map;Je.forEach(dn=>{const Cn=y.computeStyle(At,dn,T);jt.set(dn,Cn),(!Cn||0==Cn.length)&&(At[Pr]=Xo,Q.push(At))}),p.set(At,jt)});let Le=0;return u.forEach(Je=>es(Je,B[Le++])),Q}function Wl(p,y){const u=new Map;if(p.forEach(Le=>u.set(Le,[])),0==y.length)return u;const T=new Set(y),B=new Map;function Q(Le){if(!Le)return 1;let Je=B.get(Le);if(Je)return Je;const At=Le.parentNode;return Je=u.has(At)?At:T.has(At)?1:Q(At),B.set(Le,Je),Je}return y.forEach(Le=>{const Je=Q(Le);1!==Je&&u.get(Je).push(Le)}),u}function gs(p,y){p.classList?.add(y)}function ns(p,y){p.classList?.remove(y)}function vc(p,y,u){It(u).onDone(()=>p.processLeaveNode(y))}function Is(p,y){for(let u=0;uT.add(B)):y.set(p,m),u.delete(p),!0}class $l{constructor(y,u,m){this.bodyNode=y,this._driver=u,this._normalizer=m,this._triggerCache={},this.onRemovalComplete=(T,B)=>{},this._transitionEngine=new Ro(y,u,m),this._timelineEngine=new ia(y,u,m),this._transitionEngine.onRemovalComplete=(T,B)=>this.onRemovalComplete(T,B)}registerTrigger(y,u,m,T,B){const Q=y+"-"+T;let Le=this._triggerCache[Q];if(!Le){const Je=[],jt=ba(this._driver,B,Je,[]);if(Je.length)throw function We(p,y){return new l.vHH(3404,!1)}();Le=function Ht(p,y,u){return new Qn(p,y,u)}(T,jt,this._normalizer),this._triggerCache[Q]=Le}this._transitionEngine.registerTrigger(u,T,Le)}register(y,u){this._transitionEngine.register(y,u)}destroy(y,u){this._transitionEngine.destroy(y,u)}onInsert(y,u,m,T){this._transitionEngine.insertNode(y,u,m,T)}onRemove(y,u,m){this._transitionEngine.removeNode(y,u,m)}disableAnimations(y,u){this._transitionEngine.markElementAsDisabled(y,u)}process(y,u,m,T){if("@"==m.charAt(0)){const[B,Q]=Vn(m);this._timelineEngine.command(B,u,Q,T)}else this._transitionEngine.trigger(y,u,m,T)}listen(y,u,m,T,B){if("@"==m.charAt(0)){const[Q,Le]=Vn(m);return this._timelineEngine.listen(Q,u,Le,B)}return this._transitionEngine.listen(y,u,m,T,B)}flush(y=-1){this._transitionEngine.flush(y)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(y){this._transitionEngine.afterFlushAnimationsDone(y)}}let Lc=(()=>{class p{static#e=this.initialStylesByElement=new WeakMap;constructor(u,m,T){this._element=u,this._startStyles=m,this._endStyles=T,this._state=0;let B=p.initialStylesByElement.get(u);B||p.initialStylesByElement.set(u,B=new Map),this._initialStyles=B}start(){this._state<1&&(this._startStyles&&fs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fs(this._element,this._initialStyles),this._endStyles&&(fs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(p.initialStylesByElement.delete(this._element),this._startStyles&&(Sa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sa(this._element,this._endStyles),this._endStyles=null),fs(this._element,this._initialStyles),this._state=3)}}return p})();function Kl(p){let y=null;return p.forEach((u,m)=>{(function Rs(p){return"display"===p||"position"===p})(m)&&(y=y||new Map,y.set(m,u))}),y}class xa{constructor(y,u,m,T){this.element=y,this.keyframes=u,this.options=m,this._specialStyles=T,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=m.duration,this._delay=m.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(y=>y()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const y=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,y,this.options),this._finalKeyframe=y.length?y[y.length-1]:new Map;const u=()=>this._onFinish();this.domPlayer.addEventListener("finish",u),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",u)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(y){const u=[];return y.forEach(m=>{u.push(Object.fromEntries(m))}),u}_triggerWebAnimation(y,u,m){return y.animate(this._convertKeyframesToObject(u),m)}onStart(y){this._originalOnStartFns.push(y),this._onStartFns.push(y)}onDone(y){this._originalOnDoneFns.push(y),this._onDoneFns.push(y)}onDestroy(y){this._onDestroyFns.push(y)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(y=>y()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(y=>y()),this._onDestroyFns=[])}setPosition(y){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=y*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const y=new Map;this.hasStarted()&&this._finalKeyframe.forEach((m,T)=>{"offset"!==T&&y.set(T,this._finished?m:Es(this.element,T))}),this.currentSnapshot=y}triggerCallback(y){const u="start"===y?this._onStartFns:this._onDoneFns;u.forEach(m=>m()),u.length=0}}class Ga{validateStyleProperty(y){return!0}validateAnimatableStyleProperty(y){return!0}matchesElement(y,u){return!1}containsElement(y,u){return _i(y,u)}getParentElement(y){return ki(y)}query(y,u,m){return bo(y,u,m)}computeStyle(y,u,m){return window.getComputedStyle(y)[u]}animate(y,u,m,T,B,Q=[]){const Je={duration:m,delay:T,fill:0==T?"both":"forwards"};B&&(Je.easing=B);const At=new Map,jt=Q.filter(Tn=>Tn instanceof xa);(function wr(p,y){return 0===p||0===y})(m,T)&&jt.forEach(Tn=>{Tn.currentSnapshot.forEach((Un,Xn)=>At.set(Xn,Un))});let dn=function ga(p){return p.length?p[0]instanceof Map?p:p.map(y=>Jr(y)):[]}(u).map(Tn=>oo(Tn));dn=function al(p,y,u){if(u.size&&y.length){let m=y[0],T=[];if(u.forEach((B,Q)=>{m.has(Q)||T.push(Q),m.set(Q,B)}),T.length)for(let B=1;BQ.set(Le,Es(p,Le)))}}return y}(y,dn,At);const Cn=function Tr(p,y){let u=null,m=null;return Array.isArray(y)&&y.length?(u=Kl(y[0]),y.length>1&&(m=Kl(y[y.length-1]))):y instanceof Map&&(u=Kl(y)),u||m?new Lc(p,u,m):null}(y,dn);return new xa(y,dn,Je,Cn)}}let Wa=(()=>{class p extends Ce._j{constructor(u,m){super(),this._nextAnimationId=0,this._renderer=u.createRenderer(m.body,{id:"0",encapsulation:l.ifc.None,styles:[],data:{animation:[]}})}build(u){const m=this._nextAnimationId.toString();this._nextAnimationId++;const T=Array.isArray(u)?(0,Ce.vP)(u):u;return Al(this._renderer,null,m,"register",[T]),new bc(m,this._renderer)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.FYo),l.LFG(_e.K0))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();class bc extends Ce.LC{constructor(y,u){super(),this._id=y,this._renderer=u}create(y,u){return new ra(this._id,y,u||{},this._renderer)}}class ra{constructor(y,u,m,T){this.id=y,this.element=u,this._renderer=T,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",m)}_listen(y,u){return this._renderer.listen(this.element,`@@${this.id}:${y}`,u)}_command(y,...u){return Al(this._renderer,this.element,this.id,y,u)}onDone(y){this._listen("done",y)}onStart(y){this._listen("start",y)}onDestroy(y){this._listen("destroy",y)}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(y){this._command("setPosition",y)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Al(p,y,u,m,T){return p.setProperty(y,`@@${u}:${m}`,T)}const ro="@.disabled";let K=(()=>{class p{constructor(u,m,T){this.delegate=u,this.engine=m,this._zone=T,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,m.onRemovalComplete=(B,Q)=>{const Le=Q?.parentNode(B);Le&&Q.removeChild(Le,B)}}createRenderer(u,m){const B=this.delegate.createRenderer(u,m);if(!(u&&m&&m.data&&m.data.animation)){let jt=this._rendererCache.get(B);return jt||(jt=new Ue("",B,this.engine,()=>this._rendererCache.delete(B)),this._rendererCache.set(B,jt)),jt}const Q=m.id,Le=m.id+"-"+this._currentId;this._currentId++,this.engine.register(Le,u);const Je=jt=>{Array.isArray(jt)?jt.forEach(Je):this.engine.registerTrigger(Q,Le,u,jt.name,jt)};return m.data.animation.forEach(Je),new ge(this,Le,B,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(u,m,T){u>=0&&um(T)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(B=>{const[Q,Le]=B;Q(Le)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([m,T]))}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()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.FYo),l.LFG($l),l.LFG(l.R0b))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();class Ue{constructor(y,u,m,T){this.namespaceId=y,this.delegate=u,this.engine=m,this._onDestroy=T}get data(){return this.delegate.data}destroyNode(y){this.delegate.destroyNode?.(y)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(y,u){return this.delegate.createElement(y,u)}createComment(y){return this.delegate.createComment(y)}createText(y){return this.delegate.createText(y)}appendChild(y,u){this.delegate.appendChild(y,u),this.engine.onInsert(this.namespaceId,u,y,!1)}insertBefore(y,u,m,T=!0){this.delegate.insertBefore(y,u,m),this.engine.onInsert(this.namespaceId,u,y,T)}removeChild(y,u,m){this.engine.onRemove(this.namespaceId,u,this.delegate)}selectRootElement(y,u){return this.delegate.selectRootElement(y,u)}parentNode(y){return this.delegate.parentNode(y)}nextSibling(y){return this.delegate.nextSibling(y)}setAttribute(y,u,m,T){this.delegate.setAttribute(y,u,m,T)}removeAttribute(y,u,m){this.delegate.removeAttribute(y,u,m)}addClass(y,u){this.delegate.addClass(y,u)}removeClass(y,u){this.delegate.removeClass(y,u)}setStyle(y,u,m,T){this.delegate.setStyle(y,u,m,T)}removeStyle(y,u,m){this.delegate.removeStyle(y,u,m)}setProperty(y,u,m){"@"==u.charAt(0)&&u==ro?this.disableAnimations(y,!!m):this.delegate.setProperty(y,u,m)}setValue(y,u){this.delegate.setValue(y,u)}listen(y,u,m){return this.delegate.listen(y,u,m)}disableAnimations(y,u){this.engine.disableAnimations(y,u)}}class ge extends Ue{constructor(y,u,m,T,B){super(u,m,T,B),this.factory=y,this.namespaceId=u}setProperty(y,u,m){"@"==u.charAt(0)?"."==u.charAt(1)&&u==ro?this.disableAnimations(y,m=void 0===m||!!m):this.engine.process(this.namespaceId,y,u.slice(1),m):this.delegate.setProperty(y,u,m)}listen(y,u,m){if("@"==u.charAt(0)){const T=function Ne(p){switch(p){case"body":return document.body;case"document":return document;case"window":return window;default:return p}}(y);let B=u.slice(1),Q="";return"@"!=B.charAt(0)&&([B,Q]=function kt(p){const y=p.indexOf(".");return[p.substring(0,y),p.slice(y+1)]}(B)),this.engine.listen(this.namespaceId,T,B,Q,Le=>{this.factory.scheduleListenerCallback(Le._data||-1,m,Le)})}return this.delegate.listen(y,u,m)}}const ur=[{provide:Ce._j,useClass:Wa},{provide:ya,useFactory:function Sn(){return new Ua}},{provide:$l,useClass:(()=>{class p extends $l{constructor(u,m,T,B){super(u.body,m,T)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_e.K0),l.LFG($n),l.LFG(ya),l.LFG(l.z2F))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})()},{provide:l.FYo,useFactory:function li(p,y,u){return new K(p,y,u)},deps:[e.se,$l,l.R0b]}],hr=[{provide:$n,useFactory:()=>new Ga},{provide:l.QbO,useValue:"BrowserAnimations"},...ur],ar=[{provide:$n,useClass:br},{provide:l.QbO,useValue:"NoopAnimations"},...ur];let xi=(()=>{class p{static withConfig(u){return{ngModule:p,providers:u.disableAnimations?ar:hr}}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:hr,imports:[e.b2]})}return p})();var vs=C(9310),bs=C(7151),$a=C(617),Ui=C(8645),Ma=C(2296),Qr=C(8484),zr=C(2831),Qi=C(8180),yi=C(9773),oa=C(4300),cl=C(1088),_o=C(3651),Wi=C(3680);function Xi(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"div",2)(1,"button",3),l.NdJ("click",function(){l.CHM(u);const T=l.oxw();return l.KtG(T.action())}),l._uU(2),l.qZA()()}if(2&p){const u=l.oxw();l.xp6(2),l.hij(" ",u.data.action," ")}}const dl=["label"];function ko(p,y){}const rs=Math.pow(2,31)-1;class ul{constructor(y,u){this._overlayRef=u,this._afterDismissed=new Ui.x,this._afterOpened=new Ui.x,this._onAction=new Ui.x,this._dismissedByAction=!1,this.containerInstance=y,y._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(y){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(y,rs))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Pc=new l.OlP("MatSnackBarData");class Us{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Vs=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return p})(),Nc=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return p})(),ac=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return p})(),To=(()=>{class p{constructor(u,m){this.snackBarRef=u,this.data=m}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(ul),l.Y36(Pc))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0),l._uU(1),l.qZA(),l.YNc(2,Xi,3,1,"div",1)),2&m&&(l.xp6(1),l.hij(" ",T.data.message,"\n"),l.xp6(1),l.Q6J("ngIf",T.hasAction))},dependencies:[_e.O5,Ma.lW,Vs,Nc,ac],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return p})();const nd={snackBarState:(0,Ce.X$)("state",[(0,Ce.SB)("void, hidden",(0,Ce.oB)({transform:"scale(0.8)",opacity:0})),(0,Ce.SB)("visible",(0,Ce.oB)({transform:"scale(1)",opacity:1})),(0,Ce.eR)("* => visible",(0,Ce.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Ce.eR)("* => void, * => hidden",(0,Ce.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Ce.oB)({opacity:0})))])};let lc=0,Ei=(()=>{class p extends Qr.en{constructor(u,m,T,B,Q){super(),this._ngZone=u,this._elementRef=m,this._changeDetectorRef=T,this._platform=B,this.snackBarConfig=Q,this._document=(0,l.f3M)(_e.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Ui.x,this._onExit=new Ui.x,this._onEnter=new Ui.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+lc++,this.attachDomPortal=Le=>{this._assertNotAttached();const Je=this._portalOutlet.attachDomPortal(Le);return this._afterPortalAttached(),Je},this._live="assertive"!==Q.politeness||Q.announcementMessage?"off"===Q.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(u){this._assertNotAttached();const m=this._portalOutlet.attachComponentPortal(u);return this._afterPortalAttached(),m}attachTemplatePortal(u){this._assertNotAttached();const m=this._portalOutlet.attachTemplatePortal(u);return this._afterPortalAttached(),m}onAnimationEnd(u){const{fromState:m,toState:T}=u;if(("void"===T&&"void"!==m||"hidden"===T)&&this._completeExit(),"visible"===T){const B=this._onEnter;this._ngZone.run(()=>{B.next(),B.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,Qi.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const u=this._elementRef.nativeElement,m=this.snackBarConfig.panelClass;m&&(Array.isArray(m)?m.forEach(T=>u.classList.add(T)):u.classList.add(m)),this._exposeToModals()}_exposeToModals(){const u=this._liveElementId,m=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let T=0;T{const m=u.getAttribute("aria-owns");if(m){const T=m.replace(this._liveElementId,"").trim();T.length>0?u.setAttribute("aria-owns",T):u.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const u=this._elementRef.nativeElement.querySelector("[aria-hidden]"),m=this._elementRef.nativeElement.querySelector("[aria-live]");if(u&&m){let T=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&u.contains(document.activeElement)&&(T=document.activeElement),u.removeAttribute("aria-hidden"),m.appendChild(u),T?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(zr.t4),l.Y36(Us))};static#t=this.\u0275dir=l.lG2({type:p,viewQuery:function(m,T){if(1&m&&l.Gf(Qr.Pl,7),2&m){let B;l.iGM(B=l.CRH())&&(T._portalOutlet=B.first)}},features:[l.qOj]})}return p})(),Ca=(()=>{class p extends Ei{_afterPortalAttached(){super._afterPortalAttached();const u=this._label.nativeElement,m="mdc-snackbar__label";u.classList.toggle(m,!u.querySelector(`.${m}`))}static#e=this.\u0275fac=function(){let u;return function(T){return(u||(u=l.n5z(p)))(T||p)}}();static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["mat-snack-bar-container"]],viewQuery:function(m,T){if(1&m&&l.Gf(dl,7),2&m){let B;l.iGM(B=l.CRH())&&(T._label=B.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(m,T){1&m&&l.WFA("@state.done",function(Q){return T.onAnimationEnd(Q)}),2&m&&l.d8E("@state",T._animationState)},features:[l.qOj],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),l.YNc(4,ko,0,0,"ng-template",4),l.qZA(),l._UZ(5,"div"),l.qZA()()),2&m&&(l.xp6(5),l.uIk("aria-live",T._live)("role",T._role)("id",T._liveElementId))},dependencies:[Qr.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[nd.snackBarState]}})}return p})(),ks=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[_o.U8,Qr.eL,_e.ez,Ma.ot,Wi.BQ,Wi.BQ]})}return p})();const rd=new l.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function id(){return new Us}});let sa=(()=>{class p{get _openedSnackBarRef(){const u=this._parentSnackBar;return u?u._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(u){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=u:this._snackBarRefAtThisLevel=u}constructor(u,m,T,B,Q,Le){this._overlay=u,this._live=m,this._injector=T,this._breakpointObserver=B,this._parentSnackBar=Q,this._defaultConfig=Le,this._snackBarRefAtThisLevel=null}openFromComponent(u,m){return this._attach(u,m)}openFromTemplate(u,m){return this._attach(u,m)}open(u,m="",T){const B={...this._defaultConfig,...T};return B.data={message:u,action:m},B.announcementMessage===u&&(B.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,B)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(u,m){const B=l.zs3.create({parent:m&&m.viewContainerRef&&m.viewContainerRef.injector||this._injector,providers:[{provide:Us,useValue:m}]}),Q=new Qr.C5(this.snackBarContainerComponent,m.viewContainerRef,B),Le=u.attach(Q);return Le.instance.snackBarConfig=m,Le.instance}_attach(u,m){const T={...new Us,...this._defaultConfig,...m},B=this._createOverlay(T),Q=this._attachSnackBarContainer(B,T),Le=new ul(Q,B);if(u instanceof l.Rgc){const Je=new Qr.UE(u,null,{$implicit:T.data,snackBarRef:Le});Le.instance=Q.attachTemplatePortal(Je)}else{const Je=this._createInjector(T,Le),At=new Qr.C5(u,void 0,Je),jt=Q.attachComponentPortal(At);Le.instance=jt.instance}return this._breakpointObserver.observe(cl.u3.HandsetPortrait).pipe((0,yi.R)(B.detachments())).subscribe(Je=>{B.overlayElement.classList.toggle(this.handsetCssClass,Je.matches)}),T.announcementMessage&&Q._onAnnounce.subscribe(()=>{this._live.announce(T.announcementMessage,T.politeness)}),this._animateSnackBar(Le,T),this._openedSnackBarRef=Le,this._openedSnackBarRef}_animateSnackBar(u,m){u.afterDismissed().subscribe(()=>{this._openedSnackBarRef==u&&(this._openedSnackBarRef=null),m.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{u.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):u.containerInstance.enter(),m.duration&&m.duration>0&&u.afterOpened().subscribe(()=>u._dismissAfter(m.duration))}_createOverlay(u){const m=new _o.X_;m.direction=u.direction;let T=this._overlay.position().global();const B="rtl"===u.direction,Q="left"===u.horizontalPosition||"start"===u.horizontalPosition&&!B||"end"===u.horizontalPosition&&B,Le=!Q&&"center"!==u.horizontalPosition;return Q?T.left("0"):Le?T.right("0"):T.centerHorizontally(),"top"===u.verticalPosition?T.top("0"):T.bottom("0"),m.positionStrategy=T,this._overlay.create(m)}_createInjector(u,m){return l.zs3.create({parent:u&&u.viewContainerRef&&u.viewContainerRef.injector||this._injector,providers:[{provide:ul,useValue:m},{provide:Pc,useValue:u.data}]})}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_o.aV),l.LFG(oa.Kd),l.LFG(l.zs3),l.LFG(cl.Yg),l.LFG(p,12),l.LFG(rd))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),cc=(()=>{class p extends sa{constructor(u,m,T,B,Q,Le){super(u,m,T,B,Q,Le),this.simpleSnackBarComponent=To,this.snackBarContainerComponent=Ca,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_o.aV),l.LFG(oa.Kd),l.LFG(l.zs3),l.LFG(cl.Yg),l.LFG(p,12),l.LFG(rd))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:ks})}return p})();var hl=C(4911),od=C(8504),Mo=C(2438),Ka=C(2096),aa=C(5211),Ol=C(5592),kn=C(2420);const Fi=new Ol.y(kn.Z);var Il=C(3019),en=C(7398),so=C(2181),gt=C(4664),la=C(3168),Ra=C(4674),Ls=C(4829),os=C(9360);const Fc={connector:()=>new Ui.x};function mo(p,y=Fc){const{connector:u}=y;return(0,os.e)((m,T)=>{const B=u();(0,Ls.Xf)(p(function ss(p){return new Ol.y(y=>p.subscribe(y))}(B))).subscribe(T),T.add(m.subscribe(B))})}var W=C(9397),ne=C(5177);const V="Service workers are disabled or not supported by this browser";class xe{constructor(y){if(this.serviceWorker=y,y){const m=(0,Mo.R)(y,"controllerchange").pipe((0,en.U)(()=>y.controller)),T=(0,hl.P)(()=>(0,Ka.of)(y.controller)),B=(0,aa.z)(T,m);this.worker=B.pipe((0,so.h)(jt=>!!jt)),this.registration=this.worker.pipe((0,gt.w)(()=>y.getRegistration()));const At=(0,Mo.R)(y,"message").pipe((0,en.U)(jt=>jt.data)).pipe((0,so.h)(jt=>jt&&jt.type)).pipe(function ys(p){return p?y=>mo(p)(y):y=>function ka(p,y){const u=(0,Ra.m)(p)?p:()=>p;return(0,Ra.m)(y)?mo(y,{connector:u}):m=>new la.c(m,u)}(new Ui.x)(y)}());At.connect(),this.events=At}else this.worker=this.events=this.registration=function ie(p){return(0,hl.P)(()=>(0,od._)(new Error(p)))}(V)}postMessage(y,u){return this.worker.pipe((0,Qi.q)(1),(0,W.b)(m=>{m.postMessage({action:y,...u})})).toPromise().then(()=>{})}postMessageWithOperation(y,u,m){const T=this.waitForOperationCompleted(m),B=this.postMessage(y,u);return Promise.all([B,T]).then(([,Q])=>Q)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(y){let u;return u="string"==typeof y?m=>m.type===y:m=>y.includes(m.type),this.events.pipe((0,so.h)(u))}nextEventOfType(y){return this.eventsOfType(y).pipe((0,Qi.q)(1))}waitForOperationCompleted(y){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,so.h)(u=>u.nonce===y),(0,Qi.q)(1),(0,en.U)(u=>{if(void 0!==u.result)return u.result;throw new Error(u.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let qe=(()=>{class p{get isEnabled(){return this.sw.isEnabled}constructor(u){if(this.sw=u,this.pushManager=null,this.subscriptionChanges=new Ui.x,!u.isEnabled)return this.messages=Fi,this.notificationClicks=Fi,void(this.subscription=Fi);this.messages=this.sw.eventsOfType("PUSH").pipe((0,en.U)(T=>T.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,en.U)(T=>T.data)),this.pushManager=this.sw.registration.pipe((0,en.U)(T=>T.pushManager));const m=this.pushManager.pipe((0,gt.w)(T=>T.getSubscription()));this.subscription=(0,Il.T)(m,this.subscriptionChanges)}requestSubscription(u){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(V));const m={userVisibleOnly:!0};let T=this.decodeBase64(u.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),B=new Uint8Array(new ArrayBuffer(T.length));for(let Q=0;QQ.subscribe(m)),(0,Qi.q)(1)).toPromise().then(Q=>(this.subscriptionChanges.next(Q),Q))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,Qi.q)(1),(0,gt.w)(m=>{if(null===m)throw new Error("Not subscribed to push notifications.");return m.unsubscribe().then(T=>{if(!T)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(V))}decodeBase64(u){return atob(u)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(xe))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),Pt=(()=>{class p{get isEnabled(){return this.sw.isEnabled}constructor(u){if(this.sw=u,!u.isEnabled)return this.versionUpdates=Fi,this.available=Fi,this.activated=Fi,void(this.unrecoverable=Fi);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,so.h)(m=>"VERSION_READY"===m.type),(0,en.U)(m=>({type:"UPDATE_AVAILABLE",current:m.currentVersion,available:m.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(V));const u=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:u},u)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(V));const u=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:u},u)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(xe))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();const mn=new l.OlP("NGSW_REGISTER_SCRIPT");function hn(p,y,u,m){return()=>{if(!(0,_e.NF)(m)||!("serviceWorker"in navigator)||!1===u.enabled)return;let T;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof u.registrationStrategy)T=u.registrationStrategy();else{const[Q,...Le]=(u.registrationStrategy||"registerWhenStable:30000").split(":");switch(Q){case"registerImmediately":T=(0,Ka.of)(null);break;case"registerWithDelay":T=on(+Le[0]||0);break;case"registerWhenStable":T=Le[0]?(0,Il.T)(ji(p),on(+Le[0])):ji(p);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${u.registrationStrategy}`)}}p.get(l.R0b).runOutsideAngular(()=>T.pipe((0,Qi.q)(1)).subscribe(()=>navigator.serviceWorker.register(y,{scope:u.scope}).catch(Q=>console.error("Service worker registration failed with:",Q))))}}function on(p){return(0,Ka.of)(null).pipe((0,ne.g)(p))}function ji(p){return p.get(l.z2F).isStable.pipe((0,so.h)(u=>u))}function Gr(p,y){return new xe((0,_e.NF)(y)&&!1!==p.enabled?navigator.serviceWorker:void 0)}class $i{}function mi(p,y={}){return(0,l.MR2)([qe,Pt,{provide:mn,useValue:p},{provide:$i,useValue:y},{provide:xe,useFactory:Gr,deps:[$i,l.Lbi]},{provide:l.ip1,useFactory:hn,deps:[l.zs3,mn,$i,l.Lbi],multi:!0}])}let Ps=(()=>{class p{static register(u,m={}){return{ngModule:p,providers:[mi(u,m)]}}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:[qe,Pt]})}return p})();var fl=C(2268),Rl=C(6232),Ja=C(4825);const{isArray:xd}=Array;function Md(p){return 1===p.length&&xd(p[0])?p[0]:p}var Do=C(8251);var dc=C(9940);function Ec(...p){const y=(0,dc.jO)(p),u=Md(p);return u.length?new Ol.y(m=>{let T=u.map(()=>[]),B=u.map(()=>!1);m.add(()=>{T=B=null});for(let Q=0;!m.closed&&Q{if(T[Q].push(Le),T.every(Je=>Je.length)){const Je=T.map(At=>At.shift());m.next(y?y(...Je):Je),T.some((At,jt)=>!At.length&&B[jt])&&m.complete()}},()=>{B[Q]=!0,!T[Q].length&&m.complete()}));return()=>{T=B=null}}):Rl.E}var uc=C(2737);function hc(...p){const y=(0,dc.jO)(p);return(0,os.e)((u,m)=>{const T=p.length,B=new Array(T);let Q=p.map(()=>!1),Le=!1;for(let Je=0;Je{B[Je]=At,!Le&&!Q[Je]&&(Q[Je]=!0,(Le=Q.every(uc.y))&&(Q=null))},kn.Z));u.subscribe((0,Do.x)(m,Je=>{if(Le){const At=[Je,...B];m.next(y?y(...At):At)}}))})}C(7921),C(3997),C(836),Math,Math,Math;const qu=["*"],Wf=["dialog"];function vt(p){return"string"==typeof p}function Gt(p){return null!=p}function Kn(p){return(p||document.body).getBoundingClientRect()}const Dr={animation:!0,transitionTimerDelayMs:5},hs=()=>{},{transitionTimerDelayMs:Vl}=Dr,ic=new Map,Cs=(p,y,u,m)=>{let T=m.context||{};const B=ic.get(y);if(B)switch(m.runningTransition){case"continue":return Rl.E;case"stop":p.run(()=>B.transition$.complete()),T=Object.assign(B.context,T),ic.delete(y)}const Q=u(y,m.animation,T)||hs;if(!m.animation||"none"===window.getComputedStyle(y).transitionProperty)return p.run(()=>Q()),(0,Ka.of)(void 0).pipe(function fi(p){return y=>new Ol.y(u=>y.subscribe({next:Q=>p.run(()=>u.next(Q)),error:Q=>p.run(()=>u.error(Q)),complete:()=>p.run(()=>u.complete())}))}(p));const Le=new Ui.x,Je=new Ui.x,At=Le.pipe(function sd(...p){return y=>(0,aa.z)(y,(0,Ka.of)(...p))}(!0));ic.set(y,{transition$:Le,complete:()=>{Je.next(),Je.complete()},context:T});const jt=function go(p){const{transitionDelay:y,transitionDuration:u}=window.getComputedStyle(p);return 1e3*(parseFloat(y)+parseFloat(u))}(y);return p.runOutsideAngular(()=>{const dn=(0,Mo.R)(y,"transitionend").pipe((0,yi.R)(At),(0,so.h)(({target:Tn})=>Tn===y));(function qa(...p){return 1===(p=Md(p)).length?(0,Ls.Xf)(p[0]):new Ol.y(function xr(p){return y=>{let u=[];for(let m=0;u&&!y.closed&&m{if(u){for(let B=0;B{ic.delete(y),p.run(()=>{Q(),Le.next(),Le.complete()})})}),Le.asObservable()};let P=(()=>{class p{constructor(){this.animation=Dr.animation}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),Jf=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),C_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),dh=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),E_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();var Wo=function(p){return p[p.Tab=9]="Tab",p[p.Enter=13]="Enter",p[p.Escape=27]="Escape",p[p.Space=32]="Space",p[p.PageUp=33]="PageUp",p[p.PageDown=34]="PageDown",p[p.End=35]="End",p[p.Home=36]="Home",p[p.ArrowLeft=37]="ArrowLeft",p[p.ArrowUp=38]="ArrowUp",p[p.ArrowRight=39]="ArrowRight",p[p.ArrowDown=40]="ArrowDown",p}(Wo||{});typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const I_=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Vp(p){const y=Array.from(p.querySelectorAll(I_)).filter(u=>-1!==u.tabIndex);return[y[0],y[y.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let yg=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),Kp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();class Ki{constructor(y,u,m){this.nodes=y,this.viewRef=u,this.componentRef=m}}let $_=(()=>{class p{constructor(u,m){this._el=u,this._zone=m}ngOnInit(){this._zone.onStable.asObservable().pipe((0,Qi.q)(1)).subscribe(()=>{Cs(this._zone,this._el.nativeElement,(u,m)=>{m&&Kn(u),u.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Cs(this._zone,this._el.nativeElement,({classList:u})=>u.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(m,T){2&m&&(l.Tol("modal-backdrop"+(T.backdropClass?" "+T.backdropClass:"")),l.ekj("show",!T.animation)("fade",T.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[l.jDz],decls:0,vars:0,template:function(m,T){},encapsulation:2})}return p})();class fh{update(y){}close(y){}dismiss(y){}}const K_=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Tg=["animation","backdropClass"];class hp{_applyWindowOptions(y,u){K_.forEach(m=>{Gt(u[m])&&(y[m]=u[m])})}_applyBackdropOptions(y,u){Tg.forEach(m=>{Gt(u[m])&&(y[m]=u[m])})}update(y){this._applyWindowOptions(this._windowCmptRef.instance,y),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,y)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,yi.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,yi.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(y,u,m,T){this._windowCmptRef=y,this._contentRef=u,this._backdropCmptRef=m,this._beforeDismiss=T,this._closed=new Ui.x,this._dismissed=new Ui.x,this._hidden=new Ui.x,y.instance.dismissEvent.subscribe(B=>{this.dismiss(B)}),this.result=new Promise((B,Q)=>{this._resolve=B,this._reject=Q}),this.result.then(null,()=>{})}close(y){this._windowCmptRef&&(this._closed.next(y),this._resolve(y),this._removeModalElements())}_dismiss(y){this._dismissed.next(y),this._reject(y),this._removeModalElements()}dismiss(y){if(this._windowCmptRef)if(this._beforeDismiss){const u=this._beforeDismiss();!function an(p){return p&&p.then}(u)?!1!==u&&this._dismiss(y):u.then(m=>{!1!==m&&this._dismiss(y)},()=>{})}else this._dismiss(y)}_removeModalElements(){const y=this._windowCmptRef.instance.hide(),u=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,Ka.of)(void 0);y.subscribe(()=>{const{nativeElement:m}=this._windowCmptRef.location;m.parentNode.removeChild(m),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),u.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:m}=this._backdropCmptRef.location;m.parentNode.removeChild(m),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Ec(y,u).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Vu=function(p){return p[p.BACKDROP_CLICK=0]="BACKDROP_CLICK",p[p.ESC=1]="ESC",p}(Vu||{});let Jp=(()=>{class p{constructor(u,m,T){this._document=u,this._elRef=m,this._zone=T,this._closed$=new Ui.x,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new l.vpe,this.shown=new Ui.x,this.hidden=new Ui.x}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":vt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(u){this.dismissEvent.emit(u)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,Qi.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:u}=this._elRef,m={animation:this.animation,runningTransition:"stop"},Q=Ec(Cs(this._zone,u,()=>u.classList.remove("show"),m),Cs(this._zone,this._dialogEl.nativeElement,()=>{},m));return Q.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),Q}_show(){const u={animation:this.animation,runningTransition:"continue"};Ec(Cs(this._zone,this._elRef.nativeElement,(B,Q)=>{Q&&Kn(B),B.classList.add("show")},u),Cs(this._zone,this._dialogEl.nativeElement,()=>{},u)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:u}=this._elRef;this._zone.runOutsideAngular(()=>{(0,Mo.R)(u,"keydown").pipe((0,yi.R)(this._closed$),(0,so.h)(T=>T.which===Wo.Escape)).subscribe(T=>{this.keyboard?requestAnimationFrame(()=>{T.defaultPrevented||this._zone.run(()=>this.dismiss(Vu.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let m=!1;(0,Mo.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,yi.R)(this._closed$),(0,W.b)(()=>m=!1),(0,gt.w)(()=>(0,Mo.R)(u,"mouseup").pipe((0,yi.R)(this._closed$),(0,Qi.q)(1))),(0,so.h)(({target:T})=>u===T)).subscribe(()=>{m=!0}),(0,Mo.R)(u,"click").pipe((0,yi.R)(this._closed$)).subscribe(({target:T})=>{u===T&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!m&&this._zone.run(()=>this.dismiss(Vu.BACKDROP_CLICK))),m=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:u}=this._elRef;if(!u.contains(document.activeElement)){const m=u.querySelector("[ngbAutofocus]"),T=Vp(u)[0];(m||T||u).focus()}}_restoreFocus(){const u=this._document.body,m=this._elWithFocus;let T;T=m&&m.focus&&u.contains(m)?m:u,this._zone.runOutsideAngular(()=>{setTimeout(()=>T.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Cs(this._zone,this._elRef.nativeElement,({classList:u})=>(u.add("modal-static"),()=>u.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(_e.K0),l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["ngb-modal-window"]],viewQuery:function(m,T){if(1&m&&l.Gf(Wf,7),2&m){let B;l.iGM(B=l.CRH())&&(T._dialogEl=B.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(m,T){2&m&&(l.uIk("aria-modal",!0)("aria-labelledby",T.ariaLabelledBy)("aria-describedby",T.ariaDescribedBy),l.Tol("modal d-block"+(T.windowClass?" "+T.windowClass:"")),l.ekj("fade",T.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[l.jDz],ngContentSelectors:qu,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(m,T){1&m&&(l.F$t(),l.TgZ(0,"div",0,1)(2,"div",2),l.Hsn(3),l.qZA()()),2&m&&l.Tol("modal-dialog"+(T.size?" modal-"+T.size:"")+(T.centered?" modal-dialog-centered":"")+T.fullscreenClass+(T.scrollable?" modal-dialog-scrollable":"")+(T.modalDialogClass?" "+T.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return p})(),Pf=(()=>{class p{constructor(u){this._document=u}hide(){const u=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),m=this._document.body,T=m.style,{overflow:B,paddingRight:Q}=T;if(u>0){const Le=parseFloat(window.getComputedStyle(m).paddingRight);T.paddingRight=`${Le+u}px`}return T.overflow="hidden",()=>{u>0&&(T.paddingRight=Q),T.overflow=B}}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_e.K0))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),J_=(()=>{class p{constructor(u,m,T,B,Q,Le,Je){this._applicationRef=u,this._injector=m,this._environmentInjector=T,this._document=B,this._scrollBar=Q,this._rendererFactory=Le,this._ngZone=Je,this._activeWindowCmptHasChanged=new Ui.x,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new l.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const At=this._windowCmpts[this._windowCmpts.length-1];((p,y,u,m=!1)=>{p.runOutsideAngular(()=>{const T=(0,Mo.R)(y,"focusin").pipe((0,yi.R)(u),(0,en.U)(B=>B.target));(0,Mo.R)(y,"keydown").pipe((0,yi.R)(u),(0,so.h)(B=>B.which===Wo.Tab),hc(T)).subscribe(([B,Q])=>{const[Le,Je]=Vp(y);(Q===Le||Q===y)&&B.shiftKey&&(Je.focus(),B.preventDefault()),Q===Je&&!B.shiftKey&&(Le.focus(),B.preventDefault())}),m&&(0,Mo.R)(y,"click").pipe((0,yi.R)(u),hc(T),(0,en.U)(B=>B[1])).subscribe(B=>B.focus())})})(this._ngZone,At.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(At.location.nativeElement)}})}_restoreScrollBar(){const u=this._scrollBarRestoreFn;u&&(this._scrollBarRestoreFn=null,u())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(u,m,T){const B=T.container instanceof HTMLElement?T.container:Gt(T.container)?this._document.querySelector(T.container):this._document.body,Q=this._rendererFactory.createRenderer(null,null);if(!B)throw new Error(`The specified modal container "${T.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const Le=new fh,Je=(u=T.injector||u).get(l.lqb,null)||this._environmentInjector,At=this._getContentRef(u,Je,m,Le,T);let jt=!1!==T.backdrop?this._attachBackdrop(B):void 0,dn=this._attachWindowComponent(B,At.nodes),Cn=new hp(dn,At,jt,T.beforeDismiss);return this._registerModalRef(Cn),this._registerWindowCmpt(dn),Cn.hidden.pipe((0,Qi.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(Q.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),Le.close=Tn=>{Cn.close(Tn)},Le.dismiss=Tn=>{Cn.dismiss(Tn)},Le.update=Tn=>{Cn.update(Tn)},Cn.update(T),1===this._modalRefs.length&&Q.addClass(this._document.body,"modal-open"),jt&&jt.instance&&jt.changeDetectorRef.detectChanges(),dn.changeDetectorRef.detectChanges(),Cn}get activeInstances(){return this._activeInstances}dismissAll(u){this._modalRefs.forEach(m=>m.dismiss(u))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(u){let m=(0,l.LMc)($_,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(m.hostView),u.appendChild(m.location.nativeElement),m}_attachWindowComponent(u,m){let T=(0,l.LMc)(Jp,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:m});return this._applicationRef.attachView(T.hostView),u.appendChild(T.location.nativeElement),T}_getContentRef(u,m,T,B,Q){return T?T instanceof l.Rgc?this._createFromTemplateRef(T,B):vt(T)?this._createFromString(T):this._createFromComponent(u,m,T,B,Q):new Ki([])}_createFromTemplateRef(u,m){const B=u.createEmbeddedView({$implicit:m,close(Q){m.close(Q)},dismiss(Q){m.dismiss(Q)}});return this._applicationRef.attachView(B),new Ki([B.rootNodes],B)}_createFromString(u){const m=this._document.createTextNode(`${u}`);return new Ki([[m]])}_createFromComponent(u,m,T,B,Q){const Le=l.zs3.create({providers:[{provide:fh,useValue:B}],parent:u}),Je=(0,l.LMc)(T,{environmentInjector:m,elementInjector:Le}),At=Je.location.nativeElement;return Q.scrollable&&At.classList.add("component-host-scrollable"),this._applicationRef.attachView(Je.hostView),new Ki([[At]],Je.hostView,Je)}_setAriaHidden(u){const m=u.parentElement;m&&u!==this._document.body&&(Array.from(m.children).forEach(T=>{T!==u&&"SCRIPT"!==T.nodeName&&(this._ariaHiddenValues.set(T,T.getAttribute("aria-hidden")),T.setAttribute("aria-hidden","true"))}),this._setAriaHidden(m))}_revertAriaHidden(){this._ariaHiddenValues.forEach((u,m)=>{u?m.setAttribute("aria-hidden",u):m.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(u){const m=()=>{const T=this._modalRefs.indexOf(u);T>-1&&(this._modalRefs.splice(T,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(u),this._activeInstances.emit(this._modalRefs),u.result.then(m,m)}_registerWindowCmpt(u){this._windowCmpts.push(u),this._activeWindowCmptHasChanged.next(),u.onDestroy(()=>{const m=this._windowCmpts.indexOf(u);m>-1&&(this._windowCmpts.splice(m,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.z2F),l.LFG(l.zs3),l.LFG(l.lqb),l.LFG(_e.K0),l.LFG(Pf),l.LFG(l.FYo),l.LFG(l.R0b))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),qp=(()=>{class p{constructor(u){this._ngbConfig=u,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(u){this._animation=u}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(P))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),Qp=(()=>{class p{constructor(u,m,T){this._injector=u,this._modalStack=m,this._config=T}open(u,m={}){const T={...this._config,animation:this._config.animation,...m};return this._modalStack.open(this._injector,u,T)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(u){this._modalStack.dismissAll(u)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.zs3),l.LFG(J_),l.LFG(qp))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),fp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:[Qp]})}return p})(),tm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),gp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),sm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),n_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),vp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),dm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),hm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),s_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),fm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();new l.OlP("live announcer delay",{providedIn:"root",factory:function Gg(){return 100}});let _m=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),l_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();const mm=[Jf,C_,dh,E_,yg,Kp,fp,tm,l_,gp,sm,n_,vp,dm,hm,s_,fm,_m];let Jg=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[mm,Jf,C_,dh,E_,yg,Kp,fp,tm,l_,gp,sm,n_,vp,dm,hm,s_,fm,_m]})}return p})();var X0=C(9797),gm=C(2425);let vm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p,bootstrap:[Wn]});static#n=this.\u0275inj=l.cJS({providers:[Ct.F,cc],imports:[e.b2,ei,Ve.AuthModule,bs.g,X0.CmsModule,vs.WebAppModule,ct.JF,xi,gm.Rh.forRoot(),$a.Ps,Ps.register("ngsw-worker.js",{enabled:I.N.production,registrationStrategy:"registerWhenStable:30000"}),Ps.register("ngsw-worker.js",{enabled:!(0,l.X6Q)(),registrationStrategy:"registerWhenStable:30000"}),fl.z8.forRoot(),Jg]})}return p})();e.q6().bootstrapModule(vm).catch(p=>console.error(p))},3274:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(D){return/^nm$/i.test(D)},meridiem:function(D,I,S){return D<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(D){return D+(1===D||8===D||D>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},1867:function(ft,Ie,C){!function(e){"use strict";var l=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},I=function(n){return function(Z,ee,re,ue){var se=l(Z),te=D[n][l(Z)];return 2===se&&(te=te[ee?0:1]),te.replace(/%d/i,Z)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"\u0645"===n},meridiem:function(n,Z,ee){return n<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:I("s"),ss:I("s"),m:I("m"),mm:I("m"),h:I("h"),hh:I("h"),d:I("d"),dd:I("d"),M:I("M"),MM:I("M"),y:I("y"),yy:I("y")},postformat:function(n){return n.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(C(6676))},7078:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(C(6676))},7776:function(ft,Ie,C){!function(e){"use strict";var l={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},D=function(Z){return 0===Z?0:1===Z?1:2===Z?2:Z%100>=3&&Z%100<=10?3:Z%100>=11?4:5},I={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(Z){return function(ee,re,ue,se){var te=D(ee),oe=I[Z][D(ee)];return 2===te&&(oe=oe[re?0:1]),oe.replace(/%d/i,ee)}},w=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:w,monthsShort:w,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(Z){return"\u0645"===Z},meridiem:function(Z,ee,re){return Z<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(Z){return Z.replace(/\u060c/g,",")},postformat:function(Z){return Z.replace(/\d/g,function(ee){return l[ee]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},6789:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(C(6676))},6897:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(w){return D[w]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(C(6676))},1585:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(C(6676))},2097:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},I=function(ee){return 0===ee?0:1===ee?1:2===ee?2:ee%100>=3&&ee%100<=10?3:ee%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},w=function(ee){return function(re,ue,se,te){var oe=I(re),ce=S[ee][I(re)];return 2===oe&&(ce=ce[ue?0:1]),ce.replace(/%d/i,re)}},n=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:n,monthsShort:n,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(ee){return"\u0645"===ee},meridiem:function(ee,re,ue){return ee<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:w("s"),ss:w("s"),m:w("m"),mm:w("m"),h:w("h"),hh:w("h"),d:w("d"),dd:w("d"),M:w("M"),MM:w("M"),y:w("y"),yy:w("y")},preparse:function(ee){return ee.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(re){return D[re]}).replace(/\u060c/g,",")},postformat:function(ee){return ee.replace(/\d/g,function(re){return l[re]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},5611:function(ft,Ie,C){!function(e){"use strict";var l={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(I){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(I)},meridiem:function(I,S,w){return I<4?"gec\u0259":I<12?"s\u0259h\u0259r":I<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(I){if(0===I)return I+"-\u0131nc\u0131";var S=I%10;return I+(l[S]||l[I%100-S]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},2459:function(ft,Ie,C){!function(e){"use strict";function D(S,w,n){return"m"===n?w?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?w?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function l(S,w){var n=S.split("_");return w%10==1&&w%100!=11?n[0]:w%10>=2&&w%10<=4&&(w%100<10||w%100>=20)?n[1]:n[2]}({ss:w?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:w?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:w?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n],+S)}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:D,mm:D,h:D,hh:D,d:"\u0434\u0437\u0435\u043d\u044c",dd:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,w,n){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,w){switch(w){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(C(6676))},1825:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var I=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===I?D+"-\u0432\u0438":2===I?D+"-\u0440\u0438":7===I||8===I?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(C(6676))},5918:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(C(6676))},9683:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===w?S<4?S:S+12:"\u09ad\u09cb\u09b0"===w||"\u09b8\u0995\u09be\u09b2"===w?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===w?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===w||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(C(6676))},4065:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===w&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===w&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===w?S+12:S},meridiem:function(S,w,n){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(C(6676))},1034:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},D={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===w&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===w&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===w?S+12:S},meridiem:function(S,w,n){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(C(6676))},7671:function(ft,Ie,C){!function(e){"use strict";function l(ce,_e,Re){return ce+" "+function S(ce,_e){return 2===_e?function w(ce){var _e={m:"v",b:"v",d:"z"};return void 0===_e[ce.charAt(0)]?ce:_e[ce.charAt(0)]+ce.substring(1)}(ce):ce}({mm:"munutenn",MM:"miz",dd:"devezh"}[Re],ce)}function I(ce){return ce>9?I(ce%10):ce}var n=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Z=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,te=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:te,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:te,monthsRegex:Z,monthsShortRegex:Z,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:l,h:"un eur",hh:"%d eur",d:"un devezh",dd:l,M:"ur miz",MM:l,y:"ur bloaz",yy:function D(ce){switch(I(ce)){case 1:case 3:case 4:case 5:case 9:return ce+" bloaz";default:return ce+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ce){return ce+(1===ce?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ce){return"g.m."===ce},meridiem:function(ce,_e,Re){return ce<12?"a.m.":"g.m."}})}(C(6676))},8153:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var n=I+" ";switch(w){case"ss":return n+(1===I?"sekunda":2===I||3===I||4===I?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return n+(1===I?"minuta":2===I||3===I||4===I?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return n+(1===I?"sat":2===I||3===I||4===I?"sata":"sati");case"dd":return n+(1===I?"dan":"dana");case"MM":return n+(1===I?"mjesec":2===I||3===I||4===I?"mjeseca":"mjeseci");case"yy":return n+(1===I?"godina":2===I||3===I||4===I?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:l,m:l,mm:l,h:l,hh:l,d:"dan",dd:l,M:"mjesec",MM:l,y:"godinu",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},4287:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,I){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===I||"W"===I)&&(S="a"),D+S},week:{dow:1,doy:4}})}(C(6676))},2616:function(ft,Ie,C){!function(e){"use strict";var l={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},D="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),I=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function w(ee){return ee>1&&ee<5&&1!=~~(ee/10)}function n(ee,re,ue,se){var te=ee+" ";switch(ue){case"s":return re||se?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return re||se?te+(w(ee)?"sekundy":"sekund"):te+"sekundami";case"m":return re?"minuta":se?"minutu":"minutou";case"mm":return re||se?te+(w(ee)?"minuty":"minut"):te+"minutami";case"h":return re?"hodina":se?"hodinu":"hodinou";case"hh":return re||se?te+(w(ee)?"hodiny":"hodin"):te+"hodinami";case"d":return re||se?"den":"dnem";case"dd":return re||se?te+(w(ee)?"dny":"dn\xed"):te+"dny";case"M":return re||se?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return re||se?te+(w(ee)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):te+"m\u011bs\xedci";case"y":return re||se?"rok":"rokem";case"yy":return re||se?te+(w(ee)?"roky":"let"):te+"lety"}}e.defineLocale("cs",{months:l,monthsShort:D,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7049:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(D){return D+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(D)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(D)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(C(6676))},9172:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(D){var S="";return D>20?S=40===D||50===D||60===D||80===D||100===D?"fed":"ain":D>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][D]),D+S},week:{dow:1,doy:4}})}(C(6676))},605:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},3395:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9835:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4013:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4570:function(ft,Ie,C){!function(e){"use strict";var l=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],D=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,w,n){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(C(6676))},1859:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(I,S){return I?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[I.month()]:this._monthsNominativeEl[I.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(I,S,w){return I>11?w?"\u03bc\u03bc":"\u039c\u039c":w?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(I){return"\u03bc"===(I+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(I,S){var w=this._calendarEl[I],n=S&&S.hours();return function l(I){return typeof Function<"u"&&I instanceof Function||"[object Function]"===Object.prototype.toString.call(I)}(w)&&(w=w.apply(S)),w.replace("{}",n%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(C(6676))},5785:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:0,doy:4}})}(C(6676))},3792:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")}})}(C(6676))},7651:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},1929:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},9818:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")}})}(C(6676))},6612:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:0,doy:6}})}(C(6676))},4900:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},2721:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6570:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(D){return"p"===D.charAt(0).toLowerCase()},meridiem:function(D,I,S){return D>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(C(6676))},1780:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},3468:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(C(6676))},4938:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(C(6676))},1148:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(C(6676))},1453:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[I+"sekundi",I+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[I+" minuti",I+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[I+" tunni",I+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[I+" kuu",I+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[I+" aasta",I+" aastat"]};return S?Z[w][2]?Z[w][2]:Z[w][1]:n?Z[w][0]:Z[w][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:"%d p\xe4eva",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4697:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},2900:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},D={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,w,n){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(w){return D[w]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(C(6676))},9775:function(ft,Ie,C){!function(e){"use strict";var l="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),D=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",l[7],l[8],l[9]];function I(n,Z,ee,re){var ue="";switch(ee){case"s":return re?"muutaman sekunnin":"muutama sekunti";case"ss":ue=re?"sekunnin":"sekuntia";break;case"m":return re?"minuutin":"minuutti";case"mm":ue=re?"minuutin":"minuuttia";break;case"h":return re?"tunnin":"tunti";case"hh":ue=re?"tunnin":"tuntia";break;case"d":return re?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":ue=re?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return re?"kuukauden":"kuukausi";case"MM":ue=re?"kuukauden":"kuukautta";break;case"y":return re?"vuoden":"vuosi";case"yy":ue=re?"vuoden":"vuotta"}return function S(n,Z){return n<10?Z?D[n]:l[n]:n}(n,re)+" "+ue}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:I,ss:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4282:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},4236:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2830:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,I){switch(I){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}}})}(C(6676))},1412:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,I){switch(I){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}},week:{dow:1,doy:4}})}(C(6676))},9361:function(ft,Ie,C){!function(e){"use strict";var I=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:I,monthsShortRegex:I,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(n,Z){switch(Z){case"D":return n+(1===n?"er":"");default:case"M":case"Q":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}},week:{dow:1,doy:4}})}(C(6676))},6984:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),D="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,w){return S?/-MMM-/.test(w)?D[S.month()]:l[S.month()]:l},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},3961:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Z){return Z+(1===Z?"d":Z%10==2?"na":"mh")},week:{dow:1,doy:4}})}(C(6676))},8849:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Z){return Z+(1===Z?"d":Z%10==2?"na":"mh")},week:{dow:1,doy:4}})}(C(6676))},4273:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(D){return 0===D.indexOf("un")?"n"+D:"en "+D},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},623:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[I+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",I+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[I+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",I+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[I+" \u0935\u0930\u093e\u0902\u0928\u0940",I+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[I+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",I+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[I+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",I+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[I+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",I+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return n?Z[w][0]:Z[w][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(I,S){return"D"===S?I+"\u0935\u0947\u0930":I},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(I,S){return 12===I&&(I=0),"\u0930\u093e\u0924\u0940"===S?I<4?I:I+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?I:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?I>12?I:I+12:"\u0938\u093e\u0902\u091c\u0947"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"\u0930\u093e\u0924\u0940":I<12?"\u0938\u0915\u093e\u0933\u0940\u0902":I<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":I<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(C(6676))},2696:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["thoddea sekondamni","thodde sekond"],ss:[I+" sekondamni",I+" sekond"],m:["eka mintan","ek minut"],mm:[I+" mintamni",I+" mintam"],h:["eka voran","ek vor"],hh:[I+" voramni",I+" voram"],d:["eka disan","ek dis"],dd:[I+" disamni",I+" dis"],M:["eka mhoinean","ek mhoino"],MM:[I+" mhoineamni",I+" mhoine"],y:["eka vorsan","ek voros"],yy:[I+" vorsamni",I+" vorsam"]};return n?Z[w][0]:Z[w][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(I,S){return"D"===S?I+"er":I},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(I,S){return 12===I&&(I=0),"rati"===S?I<4?I:I+12:"sokallim"===S?I:"donparam"===S?I>12?I:I+12:"sanje"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"rati":I<12?"sokallim":I<16?"donparam":I<20?"sanje":"rati"}})}(C(6676))},6928:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},D={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===w?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===w?S:"\u0aac\u0aaa\u0acb\u0ab0"===w?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(C(6676))},4804:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(D){return 2===D?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":D+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(D){return 2===D?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":D+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(D){return 2===D?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":D+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(D){return 2===D?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":D%10==0&&10!==D?D+" \u05e9\u05e0\u05d4":D+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(D){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(D)},meridiem:function(D,I,S){return D<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":D<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":D<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":D<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(C(6676))},3015:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},I=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:I,longMonthsParse:I,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(Z){return D[Z]})},postformat:function(n){return n.replace(/\d/g,function(Z){return l[Z]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(n,Z){return 12===n&&(n=0),"\u0930\u093e\u0924"===Z?n<4?n:n+12:"\u0938\u0941\u092c\u0939"===Z?n:"\u0926\u094b\u092a\u0939\u0930"===Z?n>=10?n:n+12:"\u0936\u093e\u092e"===Z?n+12:void 0},meridiem:function(n,Z,ee){return n<4?"\u0930\u093e\u0924":n<10?"\u0938\u0941\u092c\u0939":n<17?"\u0926\u094b\u092a\u0939\u0930":n<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(C(6676))},7134:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var n=I+" ";switch(w){case"ss":return n+(1===I?"sekunda":2===I||3===I||4===I?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return n+(1===I?"minuta":2===I||3===I||4===I?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return n+(1===I?"sat":2===I||3===I||4===I?"sata":"sati");case"dd":return n+(1===I?"dan":"dana");case"MM":return n+(1===I?"mjesec":2===I||3===I||4===I?"mjeseca":"mjeseci");case"yy":return n+(1===I?"godina":2===I||3===I||4===I?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:l,m:l,mm:l,h:l,hh:l,d:"dan",dd:l,M:"mjesec",MM:l,y:"godinu",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},670:function(ft,Ie,C){!function(e){"use strict";var l="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function D(w,n,Z,ee){var re=w;switch(Z){case"s":return ee||n?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return re+(ee||n)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(ee||n?" perc":" perce");case"mm":return re+(ee||n?" perc":" perce");case"h":return"egy"+(ee||n?" \xf3ra":" \xf3r\xe1ja");case"hh":return re+(ee||n?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(ee||n?" nap":" napja");case"dd":return re+(ee||n?" nap":" napja");case"M":return"egy"+(ee||n?" h\xf3nap":" h\xf3napja");case"MM":return re+(ee||n?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(ee||n?" \xe9v":" \xe9ve");case"yy":return re+(ee||n?" \xe9v":" \xe9ve")}return""}function I(w){return(w?"":"[m\xfalt] ")+"["+l[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(w){return"u"===w.charAt(1).toLowerCase()},meridiem:function(w,n,Z){return w<12?!0===Z?"de":"DE":!0===Z?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return I.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return I.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4523:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(D){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(D)},meridiem:function(D){return D<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":D<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":D<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(D,I){switch(I){case"DDD":case"w":case"W":case"DDDo":return 1===D?D+"-\u056b\u0576":D+"-\u0580\u0564";default:return D}},week:{dow:1,doy:7}})}(C(6676))},9233:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"siang"===I?D>=11?D:D+12:"sore"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"siang":D<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(C(6676))},4693:function(ft,Ie,C){!function(e){"use strict";function l(S){return S%100==11||S%10!=1}function D(S,w,n,Z){var ee=S+" ";switch(n){case"s":return w||Z?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return l(S)?ee+(w||Z?"sek\xfandur":"sek\xfandum"):ee+"sek\xfanda";case"m":return w?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return l(S)?ee+(w||Z?"m\xedn\xfatur":"m\xedn\xfatum"):w?ee+"m\xedn\xfata":ee+"m\xedn\xfatu";case"hh":return l(S)?ee+(w||Z?"klukkustundir":"klukkustundum"):ee+"klukkustund";case"d":return w?"dagur":Z?"dag":"degi";case"dd":return l(S)?w?ee+"dagar":ee+(Z?"daga":"d\xf6gum"):w?ee+"dagur":ee+(Z?"dag":"degi");case"M":return w?"m\xe1nu\xf0ur":Z?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return l(S)?w?ee+"m\xe1nu\xf0ir":ee+(Z?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):w?ee+"m\xe1nu\xf0ur":ee+(Z?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return w||Z?"\xe1r":"\xe1ri";case"yy":return l(S)?ee+(w||Z?"\xe1r":"\xe1rum"):ee+(w||Z?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:D,ss:D,m:D,mm:D,h:"klukkustund",hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},8118:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(D){return(/^[0-9].+$/.test(D)?"tra":"in")+" "+D},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},3936:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},6871:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(D,I){return"\u5143"===I[1]?1:parseInt(I[1]||D,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(D){return"\u5348\u5f8c"===D},meridiem:function(D,I,S){return D<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(D){return D.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(D){return this.week()!==D.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(D,I){switch(I){case"y":return 1===D?"\u5143\u5e74":D+"\u5e74";case"d":case"D":case"DDD":return D+"\u65e5";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(C(6676))},8710:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(D,I){return 12===D&&(D=0),"enjing"===I?D:"siyang"===I?D>=11?D:D+12:"sonten"===I||"ndalu"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"enjing":D<15?"siyang":D<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(C(6676))},7125:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(D){return D.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(I,S,w){return"\u10d8"===w?S+"\u10e8\u10d8":S+w+"\u10e8\u10d8"})},past:function(D){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(D)?D.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(D)?D.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):D},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(D){return 0===D?D:1===D?D+"-\u10da\u10d8":D<20||D<=100&&D%20==0||D%100==0?"\u10db\u10d4-"+D:D+"-\u10d4"},week:{dow:1,doy:7}})}(C(6676))},2461:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},7399:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},D={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,w,n){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},week:{dow:1,doy:4}})}(C(6676))},8720:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},D={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===w?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===w?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===w?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(C(6676))},5306:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\uc77c";case"M":return D+"\uc6d4";case"w":case"W":return D+"\uc8fc";default:return D}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(D){return"\uc624\ud6c4"===D},meridiem:function(D,I,S){return D<12?"\uc624\uc804":"\uc624\ud6c4"}})}(C(6676))},2995:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},I=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:I,monthsShort:I,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(w){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(w)},meridiem:function(w,n,Z){return w<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(w){return w.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(n){return D[n]}).replace(/\u060c/g,",")},postformat:function(w){return w.replace(/\d/g,function(n){return l[n]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},8779:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},2057:function(ft,Ie,C){!function(e){"use strict";function l(n,Z,ee,re){var ue={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return Z?ue[ee][0]:ue[ee][1]}function S(n){if(n=parseInt(n,10),isNaN(n))return!1;if(n<0)return!0;if(n<10)return 4<=n&&n<=7;if(n<100){var Z=n%10;return S(0===Z?n/10:Z)}if(n<1e4){for(;n>=10;)n/=10;return S(n)}return S(n/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function D(n){return S(n.substr(0,n.indexOf(" ")))?"a "+n:"an "+n},past:function I(n){return S(n.substr(0,n.indexOf(" ")))?"viru "+n:"virun "+n},s:"e puer Sekonnen",ss:"%d Sekonnen",m:l,mm:"%d Minutten",h:l,hh:"%d Stonnen",d:l,dd:"%d Deeg",M:l,MM:"%d M\xe9int",y:l,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7192:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(D){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===D},meridiem:function(D,I,S){return D<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(D){return"\u0e97\u0eb5\u0ec8"+D}})}(C(6676))},5430:function(ft,Ie,C){!function(e){"use strict";var l={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function I(ee,re,ue,se){return re?w(ue)[0]:se?w(ue)[1]:w(ue)[2]}function S(ee){return ee%10==0||ee>10&&ee<20}function w(ee){return l[ee].split("_")}function n(ee,re,ue,se){var te=ee+" ";return 1===ee?te+I(0,re,ue[0],se):re?te+(S(ee)?w(ue)[1]:w(ue)[0]):se?te+w(ue)[1]:te+(S(ee)?w(ue)[1]:w(ue)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function D(ee,re,ue,se){return re?"kelios sekund\u0117s":se?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:n,m:I,mm:n,h:I,hh:n,d:I,dd:n,M:I,MM:n,y:I,yy:n},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(ee){return ee+"-oji"},week:{dow:1,doy:4}})}(C(6676))},3363:function(ft,Ie,C){!function(e){"use strict";var l={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function D(Z,ee,re){return re?ee%10==1&&ee%100!=11?Z[2]:Z[3]:ee%10==1&&ee%100!=11?Z[0]:Z[1]}function I(Z,ee,re){return Z+" "+D(l[re],Z,ee)}function S(Z,ee,re){return D(l[re],Z,ee)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function w(Z,ee){return ee?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:I,m:S,mm:I,h:S,hh:I,d:S,dd:I,M:S,MM:I,y:S,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2939:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(I,S){return 1===I?S[0]:I>=2&&I<=4?S[1]:S[2]},translate:function(I,S,w){var n=l.words[w];return 1===w.length?S?n[0]:n[1]:I+" "+l.correctGrammaticalCase(I,n)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:"dan",dd:l.translate,M:"mjesec",MM:l.translate,y:"godinu",yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},8212:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},9718:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var I=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===I?D+"-\u0432\u0438":2===I?D+"-\u0440\u0438":7===I||8===I?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(C(6676))},561:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(D,I){return 12===D&&(D=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===I&&D>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===I||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===I?D+12:D},meridiem:function(D,I,S){return D<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":D<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":D<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":D<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(C(6676))},8929:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){switch(w){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return I+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return I+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return I+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return I+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return I+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return I+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return I}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(I){return"\u04ae\u0425"===I},meridiem:function(I,S,w){return I<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(I,S){switch(S){case"d":case"D":case"DDD":return I+" \u04e9\u0434\u04e9\u0440";default:return I}}})}(C(6676))},4880:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function I(w,n,Z,ee){var re="";if(n)switch(Z){case"s":re="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":re="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":re="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":re="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":re="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":re="%d \u0924\u093e\u0938";break;case"d":re="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":re="%d \u0926\u093f\u0935\u0938";break;case"M":re="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":re="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":re="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":re="%d \u0935\u0930\u094d\u0937\u0947"}else switch(Z){case"s":re="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":re="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":re="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":re="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":re="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":re="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":re="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":re="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":re="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":re="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":re="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":re="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return re.replace(/%d/i,w)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:I,ss:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},preparse:function(w){return w.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return D[n]})},postformat:function(w){return w.replace(/\d/g,function(n){return l[n]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(w,n){return 12===w&&(w=0),"\u092a\u0939\u093e\u091f\u0947"===n||"\u0938\u0915\u093e\u0933\u0940"===n?w:"\u0926\u0941\u092a\u093e\u0930\u0940"===n||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===n||"\u0930\u093e\u0924\u094d\u0930\u0940"===n?w>=12?w:w+12:void 0},meridiem:function(w,n,Z){return w>=0&&w<6?"\u092a\u0939\u093e\u091f\u0947":w<12?"\u0938\u0915\u093e\u0933\u0940":w<17?"\u0926\u0941\u092a\u093e\u0930\u0940":w<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(C(6676))},2074:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"tengahari"===I?D>=11?D:D+12:"petang"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(C(6676))},3193:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"tengahari"===I?D>=11?D:D+12:"petang"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(C(6676))},4082:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},2261:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},D={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},week:{dow:1,doy:4}})}(C(6676))},5273:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9874:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===w?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===w?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===w?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===w?S+12:void 0},meridiem:function(S,w,n){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(C(6676))},1484:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),I=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},1667:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),I=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},7262:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9679:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,I){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===I||"W"===I)&&(S="a"),D+S},week:{dow:1,doy:4}})}(C(6676))},6830:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},D={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===w?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===w?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===w?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(C(6676))},3616:function(ft,Ie,C){!function(e){"use strict";var l="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),D="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),I=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(Z){return Z%10<5&&Z%10>1&&~~(Z/10)%10!=1}function w(Z,ee,re){var ue=Z+" ";switch(re){case"ss":return ue+(S(Z)?"sekundy":"sekund");case"m":return ee?"minuta":"minut\u0119";case"mm":return ue+(S(Z)?"minuty":"minut");case"h":return ee?"godzina":"godzin\u0119";case"hh":return ue+(S(Z)?"godziny":"godzin");case"ww":return ue+(S(Z)?"tygodnie":"tygodni");case"MM":return ue+(S(Z)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return ue+(S(Z)?"lata":"lat")}}e.defineLocale("pl",{months:function(Z,ee){return Z?/D MMMM/.test(ee)?D[Z.month()]:l[Z.month()]:l},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:w,m:w,mm:w,h:w,hh:w,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:w,M:"miesi\u0105c",MM:w,y:"rok",yy:w},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2751:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(C(6676))},5138:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},7968:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var Z=" ";return(I%100>=20||I>=100&&I%100==0)&&(Z=" de "),I+Z+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[w]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:l,m:"un minut",mm:l,h:"o or\u0103",hh:l,d:"o zi",dd:l,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:l,M:"o lun\u0103",MM:l,y:"un an",yy:l},week:{dow:1,doy:7}})}(C(6676))},1828:function(ft,Ie,C){!function(e){"use strict";function D(w,n,Z){return"m"===Z?n?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":w+" "+function l(w,n){var Z=w.split("_");return n%10==1&&n%100!=11?Z[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?Z[1]:Z[2]}({ss:n?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:n?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[Z],+w)}var I=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:I,longMonthsParse:I,shortMonthsParse:I,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(w){if(w.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(w){if(w.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0447\u0430\u0441",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(w){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(w)},meridiem:function(w,n,Z){return w<4?"\u043d\u043e\u0447\u0438":w<12?"\u0443\u0442\u0440\u0430":w<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(w,n){switch(n){case"M":case"d":case"DDD":return w+"-\u0439";case"D":return w+"-\u0433\u043e";case"w":case"W":return w+"-\u044f";default:return w}},week:{dow:1,doy:4}})}(C(6676))},2188:function(ft,Ie,C){!function(e){"use strict";var l=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],D=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(C(6676))},6562:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7172:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(D){return D+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(D){return"\u0db4.\u0dc0."===D||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===D},meridiem:function(D,I,S){return D>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(C(6676))},9966:function(ft,Ie,C){!function(e){"use strict";var l="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),D="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function I(n){return n>1&&n<5}function S(n,Z,ee,re){var ue=n+" ";switch(ee){case"s":return Z||re?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return Z||re?ue+(I(n)?"sekundy":"sek\xfand"):ue+"sekundami";case"m":return Z?"min\xfata":re?"min\xfatu":"min\xfatou";case"mm":return Z||re?ue+(I(n)?"min\xfaty":"min\xfat"):ue+"min\xfatami";case"h":return Z?"hodina":re?"hodinu":"hodinou";case"hh":return Z||re?ue+(I(n)?"hodiny":"hod\xedn"):ue+"hodinami";case"d":return Z||re?"de\u0148":"d\u0148om";case"dd":return Z||re?ue+(I(n)?"dni":"dn\xed"):ue+"d\u0148ami";case"M":return Z||re?"mesiac":"mesiacom";case"MM":return Z||re?ue+(I(n)?"mesiace":"mesiacov"):ue+"mesiacmi";case"y":return Z||re?"rok":"rokom";case"yy":return Z||re?ue+(I(n)?"roky":"rokov"):ue+"rokmi"}}e.defineLocale("sk",{months:l,monthsShort:D,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7520:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z=I+" ";switch(w){case"s":return S||n?"nekaj sekund":"nekaj sekundami";case"ss":return Z+(1===I?S?"sekundo":"sekundi":2===I?S||n?"sekundi":"sekundah":I<5?S||n?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return Z+(1===I?S?"minuta":"minuto":2===I?S||n?"minuti":"minutama":I<5?S||n?"minute":"minutami":S||n?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return Z+(1===I?S?"ura":"uro":2===I?S||n?"uri":"urama":I<5?S||n?"ure":"urami":S||n?"ur":"urami");case"d":return S||n?"en dan":"enim dnem";case"dd":return Z+(1===I?S||n?"dan":"dnem":2===I?S||n?"dni":"dnevoma":S||n?"dni":"dnevi");case"M":return S||n?"en mesec":"enim mesecem";case"MM":return Z+(1===I?S||n?"mesec":"mesecem":2===I?S||n?"meseca":"mesecema":I<5?S||n?"mesece":"meseci":S||n?"mesecev":"meseci");case"y":return S||n?"eno leto":"enim letom";case"yy":return Z+(1===I?S||n?"leto":"letom":2===I?S||n?"leti":"letoma":I<5?S||n?"leta":"leti":S||n?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},5291:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(D){return"M"===D.charAt(0)},meridiem:function(D,I,S){return D<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7603:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(I,S){return I%10>=1&&I%10<=4&&(I%100<10||I%100>=20)?I%10==1?S[0]:S[1]:S[2]},translate:function(I,S,w,n){var ee,Z=l.words[w];return 1===w.length?"y"===w&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":n||S?Z[0]:Z[1]:(ee=l.correctGrammaticalCase(I,Z),"yy"===w&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===ee?I+" \u0433\u043e\u0434\u0438\u043d\u0430":I+" "+ee)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:l.translate,dd:l.translate,M:l.translate,MM:l.translate,y:l.translate,yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},450:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(I,S){return I%10>=1&&I%10<=4&&(I%100<10||I%100>=20)?I%10==1?S[0]:S[1]:S[2]},translate:function(I,S,w,n){var ee,Z=l.words[w];return 1===w.length?"y"===w&&S?"jedna godina":n||S?Z[0]:Z[1]:(ee=l.correctGrammaticalCase(I,Z),"yy"===w&&S&&"godinu"===ee?I+" godina":I+" "+ee)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:l.translate,dd:l.translate,M:l.translate,MM:l.translate,y:l.translate,yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},383:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(D,I,S){return D<11?"ekuseni":D<15?"emini":D<19?"entsambama":"ebusuku"},meridiemHour:function(D,I){return 12===D&&(D=0),"ekuseni"===I?D:"emini"===I?D>=11?D:D+12:"entsambama"===I||"ebusuku"===I?0===D?0:D+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(C(6676))},7221:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?":e":1===I||2===I?":a":":e")},week:{dow:1,doy:4}})}(C(6676))},1743:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(C(6676))},6351:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},D={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,w,n){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,w){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===w?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===w||"\u0b95\u0bbe\u0bb2\u0bc8"===w||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===w&&S>=10?S:S+12},week:{dow:0,doy:6}})}(C(6676))},9620:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===I?D<4?D:D+12:"\u0c09\u0c26\u0c2f\u0c02"===I?D:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===I?D>=10?D:D+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===I?D+12:void 0},meridiem:function(D,I,S){return D<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":D<10?"\u0c09\u0c26\u0c2f\u0c02":D<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":D<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(C(6676))},6278:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6987:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(I,S){return 12===I&&(I=0),"\u0448\u0430\u0431"===S?I<4?I:I+12:"\u0441\u0443\u0431\u04b3"===S?I:"\u0440\u04ef\u0437"===S?I>=11?I:I+12:"\u0431\u0435\u0433\u043e\u04b3"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"\u0448\u0430\u0431":I<11?"\u0441\u0443\u0431\u04b3":I<16?"\u0440\u04ef\u0437":I<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},9325:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(D){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===D},meridiem:function(D,I,S){return D<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(C(6676))},3485:function(ft,Ie,C){!function(e){"use strict";var l={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(I,S){switch(S){case"d":case"D":case"Do":case"DD":return I;default:if(0===I)return I+"'unjy";var w=I%10;return I+(l[w]||l[I%100-w]||l[I>=100?100:null])}},week:{dow:1,doy:7}})}(C(6676))},8148:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},9616:function(ft,Ie,C){!function(e){"use strict";var l="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(Z,ee,re,ue){var se=function w(Z){var ee=Math.floor(Z%1e3/100),re=Math.floor(Z%100/10),ue=Z%10,se="";return ee>0&&(se+=l[ee]+"vatlh"),re>0&&(se+=(""!==se?" ":"")+l[re]+"maH"),ue>0&&(se+=(""!==se?" ":"")+l[ue]),""===se?"pagh":se}(Z);switch(re){case"ss":return se+" lup";case"mm":return se+" tup";case"hh":return se+" rep";case"dd":return se+" jaj";case"MM":return se+" jar";case"yy":return se+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function D(Z){var ee=Z;return-1!==Z.indexOf("jaj")?ee.slice(0,-3)+"leS":-1!==Z.indexOf("jar")?ee.slice(0,-3)+"waQ":-1!==Z.indexOf("DIS")?ee.slice(0,-3)+"nem":ee+" pIq"},past:function I(Z){var ee=Z;return-1!==Z.indexOf("jaj")?ee.slice(0,-3)+"Hu\u2019":-1!==Z.indexOf("jar")?ee.slice(0,-3)+"wen":-1!==Z.indexOf("DIS")?ee.slice(0,-3)+"ben":ee+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4040:function(ft,Ie,C){!function(e){"use strict";var l={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(I,S,w){return I<12?w?"\xf6\xf6":"\xd6\xd6":w?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(I){return"\xf6s"===I||"\xd6S"===I},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(I,S){switch(S){case"d":case"D":case"Do":case"DD":return I;default:if(0===I)return I+"'\u0131nc\u0131";var w=I%10;return I+(l[w]||l[I%100-w]||l[I>=100?100:null])}},week:{dow:1,doy:7}})}(C(6676))},594:function(ft,Ie,C){!function(e){"use strict";function D(I,S,w,n){var Z={s:["viensas secunds","'iensas secunds"],ss:[I+" secunds",I+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[I+" m\xeduts",I+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[I+" \xfeoras",I+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[I+" ziuas",I+" ziuas"],M:["'n mes","'iens mes"],MM:[I+" mesen",I+" mesen"],y:["'n ar","'iens ar"],yy:[I+" ars",I+" ars"]};return n||S?Z[w][0]:Z[w][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(I){return"d'o"===I.toLowerCase()},meridiem:function(I,S,w){return I>11?w?"d'o":"D'O":w?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},3226:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(C(6676))},673:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(C(6676))},9580:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===I||"\u0633\u06d5\u06be\u06d5\u0631"===I||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===I?D:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===I||"\u0643\u06d5\u0686"===I?D+12:D>=11?D:D+12},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":w<900?"\u0633\u06d5\u06be\u06d5\u0631":w<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":w<1230?"\u0686\u06c8\u0634":w<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return D+"-\u06be\u06d5\u067e\u062a\u06d5";default:return D}},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(C(6676))},7270:function(ft,Ie,C){!function(e){"use strict";function D(n,Z,ee){return"m"===ee?Z?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===ee?Z?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":n+" "+function l(n,Z){var ee=n.split("_");return Z%10==1&&Z%100!=11?ee[0]:Z%10>=2&&Z%10<=4&&(Z%100<10||Z%100>=20)?ee[1]:ee[2]}({ss:Z?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:Z?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:Z?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[ee],+n)}function S(n){return function(){return n+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function I(n,Z){var ee={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===n?ee.nominative.slice(1,7).concat(ee.nominative.slice(0,1)):n?ee[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(Z)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(Z)?"genitive":"nominative"][n.day()]:ee.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:D,y:"\u0440\u0456\u043a",yy:D},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(n)},meridiem:function(n,Z,ee){return n<4?"\u043d\u043e\u0447\u0456":n<12?"\u0440\u0430\u043d\u043a\u0443":n<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(n,Z){switch(Z){case"M":case"d":case"DDD":case"w":case"W":return n+"-\u0439";case"D":return n+"-\u0433\u043e";default:return n}},week:{dow:1,doy:7}})}(C(6676))},1656:function(ft,Ie,C){!function(e){"use strict";var l=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],D=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(C(6676))},8744:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(C(6676))},8364:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(C(6676))},5049:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(D){return/^ch$/i.test(D)},meridiem:function(D,I,S){return D<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},5106:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6199:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(C(6676))},7280:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:D>=11?D:D+12},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(D){return D.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(D){return this.week()!==D.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u5468";default:return D}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(C(6676))},6860:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1200?"\u4e0a\u5348":1200===w?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},2335:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},482:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},6676:function(ft,Ie,C){(ft=C.nmd(ft)).exports=function(){"use strict";var e,_e;function l(){return e.apply(null,arguments)}function I(k){return k instanceof Array||"[object Array]"===Object.prototype.toString.call(k)}function S(k){return null!=k&&"[object Object]"===Object.prototype.toString.call(k)}function w(k,j){return Object.prototype.hasOwnProperty.call(k,j)}function n(k){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(k).length;var j;for(j in k)if(w(k,j))return!1;return!0}function Z(k){return void 0===k}function ee(k){return"number"==typeof k||"[object Number]"===Object.prototype.toString.call(k)}function re(k){return k instanceof Date||"[object Date]"===Object.prototype.toString.call(k)}function ue(k,j){var ke,pe=[],nt=k.length;for(ke=0;ke>>0;for(ke=0;ke0)for(pe=0;pe=0?pe?"+":"":"-")+Math.pow(10,Math.max(0,j-ke.length)).toString().substr(1)+ke}var dt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,at=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Be={},Ee={};function $e(k,j,pe,ke){var nt=ke;"string"==typeof ke&&(nt=function(){return this[ke]()}),k&&(Ee[k]=nt),j&&(Ee[j[0]]=function(){return Rn(nt.apply(this,arguments),j[1],j[2])}),pe&&(Ee[pe]=function(){return this.localeData().ordinal(nt.apply(this,arguments),k)})}function me(k){return k.match(/\[[\s\S]/)?k.replace(/^\[|\]$/g,""):k.replace(/\\/g,"")}function he(k,j){return k.isValid()?(j=Ze(j,k.localeData()),Be[j]=Be[j]||function tt(k){var pe,ke,j=k.match(dt);for(pe=0,ke=j.length;pe=0&&at.test(k);)k=k.replace(at,ke),at.lastIndex=0,pe-=1;return k}var Wn={};function Ve(k,j){var pe=k.toLowerCase();Wn[pe]=Wn[pe+"s"]=Wn[j]=k}function ct(k){return"string"==typeof k?Wn[k]||Wn[k.toLowerCase()]:void 0}function Ct(k){var pe,ke,j={};for(ke in k)w(k,ke)&&(pe=ct(ke))&&(j[pe]=k[ke]);return j}var Ce={};function J(k,j){Ce[k]=j}function Oe(k){return k%4==0&&k%100!=0||k%400==0}function ot(k){return k<0?Math.ceil(k)||0:Math.floor(k)}function Se(k){var j=+k,pe=0;return 0!==j&&isFinite(j)&&(pe=ot(j)),pe}function Ft(k,j){return function(pe){return null!=pe?(Bt(this,k,pe),l.updateOffset(this,j),this):lt(this,k)}}function lt(k,j){return k.isValid()?k._d["get"+(k._isUTC?"UTC":"")+j]():NaN}function Bt(k,j,pe){k.isValid()&&!isNaN(pe)&&("FullYear"===j&&Oe(k.year())&&1===k.month()&&29===k.date()?(pe=Se(pe),k._d["set"+(k._isUTC?"UTC":"")+j](pe,k.month(),Kr(pe,k.month()))):k._d["set"+(k._isUTC?"UTC":"")+j](pe))}var Te,gn=/\d/,An=/\d\d/,jn=/\d{3}/,ai=/\d{4}/,di=/[+-]?\d{6}/,oi=/\d\d?/,Jn=/\d\d\d\d?/,qt=/\d\d\d\d\d\d?/,_t=/\d{1,3}/,G=/\d{1,4}/,U=/[+-]?\d{1,6}/,ve=/\d+/,Pe=/[+-]?\d+/,ut=/Z|[+-]\d\d:?\d\d/gi,We=/Z|[+-]\d\d(?::?\d\d)?/gi,be=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function He(k,j,pe){Te[k]=Jt(j)?j:function(ke,nt){return ke&&pe?pe:j}}function Wt(k,j){return w(Te,k)?Te[k](j._strict,j._locale):new RegExp(function Pn(k){return wt(k.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(j,pe,ke,nt,Kt){return pe||ke||nt||Kt}))}(k))}function wt(k){return k.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Te={};var Yt={};function fe(k,j){var pe,nt,ke=j;for("string"==typeof k&&(k=[k]),ee(j)&&(ke=function(Kt,xn){xn[j]=Se(Kt)}),nt=k.length,pe=0;pe68?1900:2e3)};var Gs=Ft("FullYear",!0);function xl(k,j,pe,ke,nt,Kt,xn){var Mi;return k<100&&k>=0?(Mi=new Date(k+400,j,pe,ke,nt,Kt,xn),isFinite(Mi.getFullYear())&&Mi.setFullYear(k)):Mi=new Date(k,j,pe,ke,nt,Kt,xn),Mi}function So(k){var j,pe;return k<100&&k>=0?((pe=Array.prototype.slice.call(arguments))[0]=k+400,j=new Date(Date.UTC.apply(null,pe)),isFinite(j.getUTCFullYear())&&j.setUTCFullYear(k)):j=new Date(Date.UTC.apply(null,arguments)),j}function Ws(k,j,pe){var ke=7+j-pe;return-(7+So(k,0,ke).getUTCDay()-j)%7+ke-1}function Ds(k,j,pe,ke,nt){var Oi,Hr,Mi=1+7*(j-1)+(7+pe-ke)%7+Ws(k,ke,nt);return Mi<=0?Hr=yr(Oi=k-1)+Mi:Mi>yr(k)?(Oi=k+1,Hr=Mi-yr(k)):(Oi=k,Hr=Mi),{year:Oi,dayOfYear:Hr}}function $s(k,j,pe){var Kt,xn,ke=Ws(k.year(),j,pe),nt=Math.floor((k.dayOfYear()-ke-1)/7)+1;return nt<1?Kt=nt+Uo(xn=k.year()-1,j,pe):nt>Uo(k.year(),j,pe)?(Kt=nt-Uo(k.year(),j,pe),xn=k.year()+1):(xn=k.year(),Kt=nt),{week:Kt,year:xn}}function Uo(k,j,pe){var ke=Ws(k,j,pe),nt=Ws(k+1,j,pe);return(yr(k)-ke+nt)/7}$e("w",["ww",2],"wo","week"),$e("W",["WW",2],"Wo","isoWeek"),Ve("week","w"),Ve("isoWeek","W"),J("week",5),J("isoWeek",5),He("w",oi),He("ww",oi,An),He("W",oi),He("WW",oi,An),Mt(["w","ww","W","WW"],function(k,j,pe,ke){j[ke.substr(0,1)]=Se(k)});function Ks(k,j){return k.slice(j,7).concat(k.slice(0,j))}$e("d",0,"do","day"),$e("dd",0,0,function(k){return this.localeData().weekdaysMin(this,k)}),$e("ddd",0,0,function(k){return this.localeData().weekdaysShort(this,k)}),$e("dddd",0,0,function(k){return this.localeData().weekdays(this,k)}),$e("e",0,0,"weekday"),$e("E",0,0,"isoWeekday"),Ve("day","d"),Ve("weekday","e"),Ve("isoWeekday","E"),J("day",11),J("weekday",11),J("isoWeekday",11),He("d",oi),He("e",oi),He("E",oi),He("dd",function(k,j){return j.weekdaysMinRegex(k)}),He("ddd",function(k,j){return j.weekdaysShortRegex(k)}),He("dddd",function(k,j){return j.weekdaysRegex(k)}),Mt(["dd","ddd","dddd"],function(k,j,pe,ke){var nt=pe._locale.weekdaysParse(k,ke,pe._strict);null!=nt?j.d=nt:ce(pe).invalidWeekday=k}),Mt(["d","e","E"],function(k,j,pe,ke){j[ke]=Se(k)});var Aa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Li="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yr=be,dr=be,Ha=be;function Es(k,j,pe){var ke,nt,Kt,xn=k.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ke=0;ke<7;++ke)Kt=te([2e3,1]).day(ke),this._minWeekdaysParse[ke]=this.weekdaysMin(Kt,"").toLocaleLowerCase(),this._shortWeekdaysParse[ke]=this.weekdaysShort(Kt,"").toLocaleLowerCase(),this._weekdaysParse[ke]=this.weekdays(Kt,"").toLocaleLowerCase();return pe?"dddd"===j?-1!==(nt=ki.call(this._weekdaysParse,xn))?nt:null:"ddd"===j?-1!==(nt=ki.call(this._shortWeekdaysParse,xn))?nt:null:-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:"dddd"===j?-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._shortWeekdaysParse,xn))||-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:"ddd"===j?-1!==(nt=ki.call(this._shortWeekdaysParse,xn))||-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:-1!==(nt=ki.call(this._minWeekdaysParse,xn))||-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._shortWeekdaysParse,xn))?nt:null}function jo(){function k(ws,tl){return tl.length-ws.length}var Kt,xn,Mi,Oi,Hr,j=[],pe=[],ke=[],nt=[];for(Kt=0;Kt<7;Kt++)xn=te([2e3,1]).day(Kt),Mi=wt(this.weekdaysMin(xn,"")),Oi=wt(this.weekdaysShort(xn,"")),Hr=wt(this.weekdays(xn,"")),j.push(Mi),pe.push(Oi),ke.push(Hr),nt.push(Mi),nt.push(Oi),nt.push(Hr);j.sort(k),pe.sort(k),ke.sort(k),nt.sort(k),this._weekdaysRegex=new RegExp("^("+nt.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ke.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+pe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+j.join("|")+")","i")}function no(){return this.hours()%12||12}function nr(k,j){$e(k,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),j)})}function ps(k,j){return j._meridiemParse}$e("H",["HH",2],0,"hour"),$e("h",["hh",2],0,no),$e("k",["kk",2],0,function Ao(){return this.hours()||24}),$e("hmm",0,0,function(){return""+no.apply(this)+Rn(this.minutes(),2)}),$e("hmmss",0,0,function(){return""+no.apply(this)+Rn(this.minutes(),2)+Rn(this.seconds(),2)}),$e("Hmm",0,0,function(){return""+this.hours()+Rn(this.minutes(),2)}),$e("Hmmss",0,0,function(){return""+this.hours()+Rn(this.minutes(),2)+Rn(this.seconds(),2)}),nr("a",!0),nr("A",!1),Ve("hour","h"),J("hour",13),He("a",ps),He("A",ps),He("H",oi),He("h",oi),He("k",oi),He("HH",oi,An),He("hh",oi,An),He("kk",oi,An),He("hmm",Jn),He("hmmss",qt),He("Hmm",Jn),He("Hmmss",qt),fe(["H","HH"],cn),fe(["k","kk"],function(k,j,pe){var ke=Se(k);j[cn]=24===ke?0:ke}),fe(["a","A"],function(k,j,pe){pe._isPm=pe._locale.isPM(k),pe._meridiem=k}),fe(["h","hh"],function(k,j,pe){j[cn]=Se(k),ce(pe).bigHour=!0}),fe("hmm",function(k,j,pe){var ke=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke)),ce(pe).bigHour=!0}),fe("hmmss",function(k,j,pe){var ke=k.length-4,nt=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke,2)),j[En]=Se(k.substr(nt)),ce(pe).bigHour=!0}),fe("Hmm",function(k,j,pe){var ke=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke))}),fe("Hmmss",function(k,j,pe){var ke=k.length-4,nt=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke,2)),j[En]=Se(k.substr(nt))});var qs=Ft("Hours",!0);var Ko,Qs={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:vr,monthsShort:Bi,week:{dow:0,doy:6},weekdays:Aa,weekdaysMin:Li,weekdaysShort:qi,meridiemParse:/[ap]\.?m?\.?/i},wi={},Oo={};function or(k,j){var pe,ke=Math.min(k.length,j.length);for(pe=0;pe0;){if(nt=jr(Kt.slice(0,pe).join("-")))return nt;if(ke&&ke.length>=pe&&or(Kt,ke)>=pe-1)break;pe--}j++}return Ko}(k)}function Ys(k){var j,pe=k._a;return pe&&-2===ce(k).overflow&&(j=pe[st]<0||pe[st]>11?st:pe[It]<1||pe[It]>Kr(pe[ht],pe[st])?It:pe[cn]<0||pe[cn]>24||24===pe[cn]&&(0!==pe[_n]||0!==pe[En]||0!==pe[On])?cn:pe[_n]<0||pe[_n]>59?_n:pe[En]<0||pe[En]>59?En:pe[On]<0||pe[On]>999?On:-1,ce(k)._overflowDayOfYear&&(jIt)&&(j=It),ce(k)._overflowWeeks&&-1===j&&(j=ni),ce(k)._overflowWeekday&&-1===j&&(j=Vn),ce(k).overflow=j),k}var fo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ms=/Z|[+-]\d\d(?::?\d\d)?/,Co=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Br=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ea=/^\/?Date\((-?\d+)/i,po=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,io={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qo(k){var j,pe,Kt,xn,Mi,Oi,ke=k._i,nt=fo.exec(ke)||Zr.exec(ke),Hr=Co.length,ws=Br.length;if(nt){for(ce(k).iso=!0,j=0,pe=Hr;j7)&&(Oi=!0)):(Kt=k._locale._week.dow,xn=k._locale._week.doy,Hr=$s(Lr(),Kt,xn),pe=na(j.gg,k._a[ht],Hr.year),ke=na(j.w,Hr.week),null!=j.d?((nt=j.d)<0||nt>6)&&(Oi=!0):null!=j.e?(nt=j.e+Kt,(j.e<0||j.e>6)&&(Oi=!0)):nt=Kt),ke<1||ke>Uo(pe,Kt,xn)?ce(k)._overflowWeeks=!0:null!=Oi?ce(k)._overflowWeekday=!0:(Mi=Ds(pe,ke,nt,Kt,xn),k._a[ht]=Mi.year,k._dayOfYear=Mi.dayOfYear)}(k),null!=k._dayOfYear&&(xn=na(k._a[ht],nt[ht]),(k._dayOfYear>yr(xn)||0===k._dayOfYear)&&(ce(k)._overflowDayOfYear=!0),pe=So(xn,0,k._dayOfYear),k._a[st]=pe.getUTCMonth(),k._a[It]=pe.getUTCDate()),j=0;j<3&&null==k._a[j];++j)k._a[j]=ke[j]=nt[j];for(;j<7;j++)k._a[j]=ke[j]=null==k._a[j]?2===j?1:0:k._a[j];24===k._a[cn]&&0===k._a[_n]&&0===k._a[En]&&0===k._a[On]&&(k._nextDay=!0,k._a[cn]=0),k._d=(k._useUTC?So:xl).apply(null,ke),Kt=k._useUTC?k._d.getUTCDay():k._d.getDay(),null!=k._tzm&&k._d.setUTCMinutes(k._d.getUTCMinutes()-k._tzm),k._nextDay&&(k._a[cn]=24),k._w&&typeof k._w.d<"u"&&k._w.d!==Kt&&(ce(k).weekdayMismatch=!0)}}function Qe(k){if(k._f!==l.ISO_8601)if(k._f!==l.RFC_2822){k._a=[],ce(k).empty=!0;var pe,ke,nt,Kt,xn,Hr,ws,j=""+k._i,Mi=j.length,Oi=0;for(ws=(nt=Ze(k._f,k._locale).match(dt)||[]).length,pe=0;pe0&&ce(k).unusedInput.push(xn),j=j.slice(j.indexOf(ke)+ke.length),Oi+=ke.length),Ee[Kt]?(ke?ce(k).empty=!1:ce(k).unusedTokens.push(Kt),Vt(Kt,ke,k)):k._strict&&!ke&&ce(k).unusedTokens.push(Kt);ce(k).charsLeftOver=Mi-Oi,j.length>0&&ce(k).unusedInput.push(j),k._a[cn]<=12&&!0===ce(k).bigHour&&k._a[cn]>0&&(ce(k).bigHour=void 0),ce(k).parsedDateParts=k._a.slice(0),ce(k).meridiem=k._meridiem,k._a[cn]=function Ht(k,j,pe){var ke;return null==pe?j:null!=k.meridiemHour?k.meridiemHour(j,pe):(null!=k.isPM&&((ke=k.isPM(pe))&&j<12&&(j+=12),!ke&&12===j&&(j=0)),j)}(k._locale,k._a[cn],k._meridiem),null!==(Hr=ce(k).era)&&(k._a[ht]=k._locale.erasConvertYear(Hr,k._a[ht])),Fe(k),Ys(k)}else Ia(k);else qo(k)}function Cl(k){var j=k._i,pe=k._f;return k._locale=k._locale||Jo(k._l),null===j||void 0===pe&&""===j?mt({nullInput:!0}):("string"==typeof j&&(k._i=j=k._locale.preparse(j)),xt(j)?new Tt(Ys(j)):(re(j)?k._d=j:I(pe)?function Qn(k){var j,pe,ke,nt,Kt,xn,Mi=!1,Oi=k._f.length;if(0===Oi)return ce(k).invalidFormat=!0,void(k._d=new Date(NaN));for(nt=0;ntthis?this:k:mt()});function Qo(k,j){var pe,ke;if(1===j.length&&I(j[0])&&(j=j[0]),!j.length)return Lr();for(pe=j[0],ke=1;ke=0?new Date(k+400,j,pe)-dl:new Date(k,j,pe).valueOf()}function ul(k,j,pe){return k<100&&k>=0?Date.UTC(k+400,j,pe)-dl:Date.UTC(k,j,pe)}function Fi(k,j){return j.erasAbbrRegex(k)}function so(){var nt,Kt,k=[],j=[],pe=[],ke=[],xn=this.eras();for(nt=0,Kt=xn.length;nt(Kt=Uo(k,ke,nt))&&(j=Kt),ka.call(this,k,j,pe,ke,nt))}function ka(k,j,pe,ke,nt){var Kt=Ds(k,j,pe,ke,nt),xn=So(Kt.year,0,Kt.dayOfYear);return this.year(xn.getUTCFullYear()),this.month(xn.getUTCMonth()),this.date(xn.getUTCDate()),this}$e("N",0,0,"eraAbbr"),$e("NN",0,0,"eraAbbr"),$e("NNN",0,0,"eraAbbr"),$e("NNNN",0,0,"eraName"),$e("NNNNN",0,0,"eraNarrow"),$e("y",["y",1],"yo","eraYear"),$e("y",["yy",2],0,"eraYear"),$e("y",["yyy",3],0,"eraYear"),$e("y",["yyyy",4],0,"eraYear"),He("N",Fi),He("NN",Fi),He("NNN",Fi),He("NNNN",function Jl(k,j){return j.erasNameRegex(k)}),He("NNNNN",function Il(k,j){return j.erasNarrowRegex(k)}),fe(["N","NN","NNN","NNNN","NNNNN"],function(k,j,pe,ke){var nt=pe._locale.erasParse(k,ke,pe._strict);nt?ce(pe).era=nt:ce(pe).invalidEra=k}),He("y",ve),He("yy",ve),He("yyy",ve),He("yyyy",ve),He("yo",function en(k,j){return j._eraYearOrdinalRegex||ve}),fe(["y","yy","yyy","yyyy"],ht),fe(["yo"],function(k,j,pe,ke){var nt;pe._locale._eraYearOrdinalRegex&&(nt=k.match(pe._locale._eraYearOrdinalRegex)),j[ht]=pe._locale.eraYearOrdinalParse?pe._locale.eraYearOrdinalParse(k,nt):parseInt(k,10)}),$e(0,["gg",2],0,function(){return this.weekYear()%100}),$e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gt("gggg","weekYear"),gt("ggggg","weekYear"),gt("GGGG","isoWeekYear"),gt("GGGGG","isoWeekYear"),Ve("weekYear","gg"),Ve("isoWeekYear","GG"),J("weekYear",1),J("isoWeekYear",1),He("G",Pe),He("g",Pe),He("GG",oi,An),He("gg",oi,An),He("GGGG",G,ai),He("gggg",G,ai),He("GGGGG",U,di),He("ggggg",U,di),Mt(["gggg","ggggg","GGGG","GGGGG"],function(k,j,pe,ke){j[ke.substr(0,2)]=Se(k)}),Mt(["gg","GG"],function(k,j,pe,ke){j[ke]=l.parseTwoDigitYear(k)}),$e("Q",0,"Qo","quarter"),Ve("quarter","Q"),J("quarter",7),He("Q",gn),fe("Q",function(k,j){j[st]=3*(Se(k)-1)}),$e("D",["DD",2],"Do","date"),Ve("date","D"),J("date",9),He("D",oi),He("DD",oi,An),He("Do",function(k,j){return k?j._dayOfMonthOrdinalParse||j._ordinalParse:j._dayOfMonthOrdinalParseLenient}),fe(["D","DD"],It),fe("Do",function(k,j){j[It]=Se(k.match(oi)[0])});var W=Ft("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear"),Ve("dayOfYear","DDD"),J("dayOfYear",4),He("DDD",_t),He("DDDD",jn),fe(["DDD","DDDD"],function(k,j,pe){pe._dayOfYear=Se(k)}),$e("m",["mm",2],0,"minute"),Ve("minute","m"),J("minute",14),He("m",oi),He("mm",oi,An),fe(["m","mm"],_n);var V=Ft("Minutes",!1);$e("s",["ss",2],0,"second"),Ve("second","s"),J("second",15),He("s",oi),He("ss",oi,An),fe(["s","ss"],En);var xe,qe,ie=Ft("Seconds",!1);for($e("S",0,0,function(){return~~(this.millisecond()/100)}),$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$e(0,["SSS",3],0,"millisecond"),$e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ve("millisecond","ms"),J("millisecond",16),He("S",_t,gn),He("SS",_t,An),He("SSS",_t,jn),xe="SSSS";xe.length<=9;xe+="S")He(xe,ve);function Pt(k,j){j[On]=Se(1e3*("0."+k))}for(xe="S";xe.length<=9;xe+="S")fe(xe,Pt);qe=Ft("Milliseconds",!1),$e("z",0,0,"zoneAbbr"),$e("zz",0,0,"zoneName");var on=Tt.prototype;function $i(k){return k}on.add=Al,on.calendar=function pn(k,j){1===arguments.length&&(arguments[0]?K(arguments[0])?(k=arguments[0],j=void 0):function Ne(k){var nt,j=S(k)&&!n(k),pe=!1,ke=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(nt=0;ntpe.valueOf():pe.valueOf()9999?he(pe,j?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Jt(Date.prototype.toISOString)?j?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",he(pe,"Z")):he(pe,j?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},on.inspect=function $a(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var pe,ke,k="moment",j="";return this.isLocal()||(k=0===this.utcOffset()?"moment.utc":"moment.parseZone",j="Z"),pe="["+k+'("]',ke=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(pe+ke+"-MM-DD[T]HH:mm:ss.SSS"+j+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(on[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),on.toJSON=function lc(){return this.isValid()?this.toISOString():null},on.toString=function vs(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function Nc(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function Vs(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function id(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.eraName=function hl(){var k,j,pe,ke=this.localeData().eras();for(k=0,j=ke.length;kthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function za(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function $l(){return!!this.isValid()&&this._isUTC},on.isUtc=Tr,on.isUTC=Tr,on.zoneAbbr=function mn(){return this._isUTC?"UTC":""},on.zoneName=function hn(){return this._isUTC?"Coordinated Universal Time":""},on.dates=Zt("dates accessor is deprecated. Use date instead.",W),on.months=Zt("months accessor is deprecated. Use month instead",yo),on.years=Zt("years accessor is deprecated. Use year instead",Gs),on.zone=Zt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Wl(k,j){return null!=k?("string"!=typeof k&&(k=-k),this.utcOffset(k,j),this):-this.utcOffset()}),on.isDSTShifted=Zt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Za(){if(!Z(this._isDSTShifted))return this._isDSTShifted;var j,k={};return je(k,this),(k=Cl(k))._a?(j=k._isUTC?te(k._a):Lr(k._a),this._isDSTShifted=this.isValid()&&function Va(k,j,pe){var xn,ke=Math.min(k.length,j.length),nt=Math.abs(k.length-j.length),Kt=0;for(xn=0;xn0):this._isDSTShifted=!1,this._isDSTShifted});var mi=Ln.prototype;function Ps(k,j,pe,ke){var nt=Jo(),Kt=te().set(ke,j);return nt[pe](Kt,k)}function fl(k,j,pe){if(ee(k)&&(j=k,k=void 0),k=k||"",null!=j)return Ps(k,j,pe,"month");var ke,nt=[];for(ke=0;ke<12;ke++)nt[ke]=Ps(k,ke,pe,"month");return nt}function Rl(k,j,pe,ke){"boolean"==typeof k?(ee(j)&&(pe=j,j=void 0),j=j||""):(pe=j=k,k=!1,ee(j)&&(pe=j,j=void 0),j=j||"");var xn,nt=Jo(),Kt=k?nt._week.dow:0,Mi=[];if(null!=pe)return Ps(j,(pe+Kt)%7,ke,"day");for(xn=0;xn<7;xn++)Mi[xn]=Ps(j,(xn+Kt)%7,ke,"day");return Mi}mi.calendar=function gi(k,j,pe){var ke=this._calendar[k]||this._calendar.sameElse;return Jt(ke)?ke.call(j,pe):ke},mi.longDateFormat=function bt(k){var j=this._longDateFormat[k],pe=this._longDateFormat[k.toUpperCase()];return j||!pe?j:(this._longDateFormat[k]=pe.match(dt).map(function(ke){return"MMMM"===ke||"MM"===ke||"DD"===ke||"dddd"===ke?ke.slice(1):ke}).join(""),this._longDateFormat[k])},mi.invalidDate=function Qt(){return this._invalidDate},mi.ordinal=function Ot(k){return this._ordinal.replace("%d",k)},mi.preparse=$i,mi.postformat=$i,mi.relativeTime=function vn(k,j,pe,ke){var nt=this._relativeTime[pe];return Jt(nt)?nt(k,j,pe,ke):nt.replace(/%d/i,k)},mi.pastFuture=function ei(k,j){var pe=this._relativeTime[k>0?"future":"past"];return Jt(pe)?pe(j):pe.replace(/%s/i,j)},mi.set=function tn(k){var j,pe;for(pe in k)w(k,pe)&&(Jt(j=k[pe])?this[pe]=j:this["_"+pe]=j);this._config=k,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},mi.eras=function rd(k,j){var pe,ke,nt,Kt=this._eras||Jo("en")._eras;for(pe=0,ke=Kt.length;pe=0)return Kt[ke]},mi.erasConvertYear=function cc(k,j){var pe=k.since<=k.until?1:-1;return void 0===j?l(k.since).year():l(k.since).year()+(j-k.offset)*pe},mi.erasAbbrRegex=function Ol(k){return w(this,"_erasAbbrRegex")||so.call(this),k?this._erasAbbrRegex:this._erasRegex},mi.erasNameRegex=function aa(k){return w(this,"_erasNameRegex")||so.call(this),k?this._erasNameRegex:this._erasRegex},mi.erasNarrowRegex=function kn(k){return w(this,"_erasNarrowRegex")||so.call(this),k?this._erasNarrowRegex:this._erasRegex},mi.months=function _i(k,j){return k?I(this._months)?this._months[k.month()]:this._months[(this._months.isFormat||co).test(j)?"format":"standalone"][k.month()]:I(this._months)?this._months:this._months.standalone},mi.monthsShort=function bo(k,j){return k?I(this._monthsShort)?this._monthsShort[k.month()]:this._monthsShort[co.test(j)?"format":"standalone"][k.month()]:I(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},mi.monthsParse=function br(k,j,pe){var ke,nt,Kt;if(this._monthsParseExact)return pr.call(this,k,j,pe);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ke=0;ke<12;ke++){if(nt=te([2e3,ke]),pe&&!this._longMonthsParse[ke]&&(this._longMonthsParse[ke]=new RegExp("^"+this.months(nt,"").replace(".","")+"$","i"),this._shortMonthsParse[ke]=new RegExp("^"+this.monthsShort(nt,"").replace(".","")+"$","i")),!pe&&!this._monthsParse[ke]&&(Kt="^"+this.months(nt,"")+"|^"+this.monthsShort(nt,""),this._monthsParse[ke]=new RegExp(Kt.replace(".",""),"i")),pe&&"MMMM"===j&&this._longMonthsParse[ke].test(k))return ke;if(pe&&"MMM"===j&&this._shortMonthsParse[ke].test(k))return ke;if(!pe&&this._monthsParse[ke].test(k))return ke}},mi.monthsRegex=function ho(k){return this._monthsParseExact?(w(this,"_monthsRegex")||to.call(this),k?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=tr),this._monthsStrictRegex&&k?this._monthsStrictRegex:this._monthsRegex)},mi.monthsShortRegex=function uo(k){return this._monthsParseExact?(w(this,"_monthsRegex")||to.call(this),k?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=Ji),this._monthsShortStrictRegex&&k?this._monthsShortStrictRegex:this._monthsShortRegex)},mi.week=function Jr(k){return $s(k,this._week.dow,this._week.doy).week},mi.firstDayOfYear=function oo(){return this._week.doy},mi.firstDayOfWeek=function kr(){return this._week.dow},mi.weekdays=function wr(k,j){var pe=I(this._weekdays)?this._weekdays:this._weekdays[k&&!0!==k&&this._weekdays.isFormat.test(j)?"format":"standalone"];return!0===k?Ks(pe,this._week.dow):k?pe[k.day()]:pe},mi.weekdaysMin=function Vr(k){return!0===k?Ks(this._weekdaysMin,this._week.dow):k?this._weekdaysMin[k.day()]:this._weekdaysMin},mi.weekdaysShort=function al(k){return!0===k?Ks(this._weekdaysShort,this._week.dow):k?this._weekdaysShort[k.day()]:this._weekdaysShort},mi.weekdaysParse=function Js(k,j,pe){var ke,nt,Kt;if(this._weekdaysParseExact)return Es.call(this,k,j,pe);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ke=0;ke<7;ke++){if(nt=te([2e3,1]).day(ke),pe&&!this._fullWeekdaysParse[ke]&&(this._fullWeekdaysParse[ke]=new RegExp("^"+this.weekdays(nt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ke]=new RegExp("^"+this.weekdaysShort(nt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ke]=new RegExp("^"+this.weekdaysMin(nt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ke]||(Kt="^"+this.weekdays(nt,"")+"|^"+this.weekdaysShort(nt,"")+"|^"+this.weekdaysMin(nt,""),this._weekdaysParse[ke]=new RegExp(Kt.replace(".",""),"i")),pe&&"dddd"===j&&this._fullWeekdaysParse[ke].test(k))return ke;if(pe&&"ddd"===j&&this._shortWeekdaysParse[ke].test(k))return ke;if(pe&&"dd"===j&&this._minWeekdaysParse[ke].test(k))return ke;if(!pe&&this._weekdaysParse[ke].test(k))return ke}},mi.weekdaysRegex=function bi(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=Yr),this._weekdaysStrictRegex&&k?this._weekdaysStrictRegex:this._weekdaysRegex)},mi.weekdaysShortRegex=function _r(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=dr),this._weekdaysShortStrictRegex&&k?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},mi.weekdaysMinRegex=function wo(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ha),this._weekdaysMinStrictRegex&&k?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},mi.isPM=function va(k){return"p"===(k+"").toLowerCase().charAt(0)},mi.meridiem=function ba(k,j,pe){return k>11?pe?"pm":"PM":pe?"am":"AM"},xo("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(k){var j=k%10;return k+(1===Se(k%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")}}),l.lang=Zt("moment.lang is deprecated. Use moment.locale instead.",xo),l.langData=Zt("moment.langData is deprecated. Use moment.localeData instead.",Jo);var xr=Math.abs;function Ec(k,j,pe,ke){var nt=Rs(j,pe);return k._milliseconds+=ke*nt._milliseconds,k._days+=ke*nt._days,k._months+=ke*nt._months,k._bubble()}function hc(k){return k<0?Math.floor(k):Math.ceil(k)}function js(k){return 4800*k/146097}function pl(k){return 146097*k/4800}function Xa(k){return function(){return this.as(k)}}var ld=Xa("ms"),Sc=Xa("s"),Cd=Xa("m"),el=Xa("h"),Td=Xa("d"),Yc=Xa("w"),ca=Xa("M"),zd=Xa("Q"),Dd=Xa("y");function Ta(k){return function(){return this.isValid()?this._data[k]:NaN}}var Ed=Ta("milliseconds"),yc=Ta("seconds"),ql=Ta("minutes"),wc=Ta("hours"),kl=Ta("days"),Ql=Ta("months"),Ac=Ta("years");var Eo=Math.round,Xl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cd(k,j,pe,ke,nt){return nt.relativeTime(j||1,!!pe,k,ke)}var Ll=Math.abs;function as(k){return(k>0)-(k<0)||+k}function pc(){if(!this.isValid())return this.localeData().invalidDate();var ke,nt,Kt,xn,Oi,Hr,ws,tl,k=Ll(this._milliseconds)/1e3,j=Ll(this._days),pe=Ll(this._months),Mi=this.asSeconds();return Mi?(ke=ot(k/60),nt=ot(ke/60),k%=60,ke%=60,Kt=ot(pe/12),pe%=12,xn=k?k.toFixed(3).replace(/\.?0+$/,""):"",Oi=Mi<0?"-":"",Hr=as(this._months)!==as(Mi)?"-":"",ws=as(this._days)!==as(Mi)?"-":"",tl=as(this._milliseconds)!==as(Mi)?"-":"",Oi+"P"+(Kt?Hr+Kt+"Y":"")+(pe?Hr+pe+"M":"")+(j?ws+j+"D":"")+(nt||ke||k?"T":"")+(nt?tl+nt+"H":"")+(ke?tl+ke+"M":"")+(k?tl+xn+"S":"")):"P0D"}var ir=qr.prototype;return ir.isValid=function Ms(){return this._isValid},ir.abs=function dc(){var k=this._data;return this._milliseconds=xr(this._milliseconds),this._days=xr(this._days),this._months=xr(this._months),k.milliseconds=xr(k.milliseconds),k.seconds=xr(k.seconds),k.minutes=xr(k.minutes),k.hours=xr(k.hours),k.months=xr(k.months),k.years=xr(k.years),this},ir.add=function sd(k,j){return Ec(this,k,j,1)},ir.subtract=function uc(k,j){return Ec(this,k,j,-1)},ir.as=function ad(k){if(!this.isValid())return NaN;var j,pe,ke=this._milliseconds;if("month"===(k=ct(k))||"quarter"===k||"year"===k)switch(j=this._days+ke/864e5,pe=this._months+js(j),k){case"month":return pe;case"quarter":return pe/3;case"year":return pe/12}else switch(j=this._days+Math.round(pl(this._months)),k){case"week":return j/7+ke/6048e5;case"day":return j+ke/864e5;case"hour":return 24*j+ke/36e5;case"minute":return 1440*j+ke/6e4;case"second":return 86400*j+ke/1e3;case"millisecond":return Math.floor(864e5*j)+ke;default:throw new Error("Unknown unit "+k)}},ir.asMilliseconds=ld,ir.asSeconds=Sc,ir.asMinutes=Cd,ir.asHours=el,ir.asDays=Td,ir.asWeeks=Yc,ir.asMonths=ca,ir.asQuarters=zd,ir.asYears=Dd,ir.valueOf=function Pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Se(this._months/12):NaN},ir._bubble=function Qa(){var nt,Kt,xn,Mi,Oi,k=this._milliseconds,j=this._days,pe=this._months,ke=this._data;return k>=0&&j>=0&&pe>=0||k<=0&&j<=0&&pe<=0||(k+=864e5*hc(pl(pe)+j),j=0,pe=0),ke.milliseconds=k%1e3,nt=ot(k/1e3),ke.seconds=nt%60,Kt=ot(nt/60),ke.minutes=Kt%60,xn=ot(Kt/60),ke.hours=xn%24,j+=ot(xn/24),pe+=Oi=ot(js(j)),j-=hc(pl(Oi)),Mi=ot(pe/12),pe%=12,ke.days=j,ke.months=pe,ke.years=Mi,this},ir.clone=function Lo(){return Rs(this)},ir.get=function Bc(k){return k=ct(k),this.isValid()?this[k+"s"]():NaN},ir.milliseconds=Ed,ir.seconds=yc,ir.minutes=ql,ir.hours=wc,ir.days=kl,ir.weeks=function Hc(){return ot(this.days()/7)},ir.months=Ql,ir.years=Ac,ir.humanize=function da(k,j){if(!this.isValid())return this.localeData().invalidDate();var nt,Kt,pe=!1,ke=Xl;return"object"==typeof k&&(j=k,k=!1),"boolean"==typeof k&&(pe=k),"object"==typeof j&&(ke=Object.assign({},Xl,j),null!=j.s&&null==j.ss&&(ke.ss=j.s-1)),Kt=function fc(k,j,pe,ke){var nt=Rs(k).abs(),Kt=Eo(nt.as("s")),xn=Eo(nt.as("m")),Mi=Eo(nt.as("h")),Oi=Eo(nt.as("d")),Hr=Eo(nt.as("M")),ws=Eo(nt.as("w")),tl=Eo(nt.as("y")),Zs=Kt<=pe.ss&&["s",Kt]||Kt0,Zs[4]=ke,cd.apply(null,Zs)}(this,!pe,ke,nt=this.localeData()),pe&&(Kt=nt.pastFuture(+this,Kt)),nt.postformat(Kt)},ir.toISOString=pc,ir.toString=pc,ir.toJSON=pc,ir.locale=yi,ir.localeData=cl,ir.toIsoString=Zt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pc),ir.lang=oa,$e("X",0,0,"unix"),$e("x",0,0,"valueOf"),He("x",Pe),He("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",function(k,j,pe){pe._d=new Date(1e3*parseFloat(k))}),fe("x",function(k,j,pe){pe._d=new Date(Se(k))}),l.version="2.29.4",function D(k){e=k}(Lr),l.fn=on,l.min=function kc(){return Qo("isBefore",[].slice.call(arguments,0))},l.max=function El(){return Qo("isAfter",[].slice.call(arguments,0))},l.now=function(){return Date.now?Date.now():+new Date},l.utc=te,l.unix=function ji(k){return Lr(1e3*k)},l.months=function Ja(k,j){return fl(k,j,"months")},l.isDate=re,l.locale=xo,l.invalid=mt,l.duration=Rs,l.isMoment=xt,l.weekdays=function Md(k,j,pe){return Rl(k,j,pe,"weekdays")},l.parseZone=function Gr(){return Lr.apply(null,arguments).parseZone()},l.localeData=Jo,l.isDuration=Bs,l.monthsShort=function xd(k,j){return fl(k,j,"monthsShort")},l.weekdaysMin=function qa(k,j,pe){return Rl(k,j,pe,"weekdaysMin")},l.defineLocale=_s,l.updateLocale=function Ai(k,j){if(null!=j){var pe,ke,nt=Qs;null!=wi[k]&&null!=wi[k].parentLocale?wi[k].set(wn(wi[k]._config,j)):(null!=(ke=jr(k))&&(nt=ke._config),j=wn(nt,j),null==ke&&(j.abbr=k),(pe=new Ln(j)).parentLocale=wi[k],wi[k]=pe),xo(k)}else null!=wi[k]&&(null!=wi[k].parentLocale?(wi[k]=wi[k].parentLocale,k===xo()&&xo(k)):null!=wi[k]&&delete wi[k]);return wi[k]},l.locales=function Io(){return Yn(wi)},l.weekdaysShort=function Do(k,j,pe){return Rl(k,j,pe,"weekdaysShort")},l.normalizeUnits=ct,l.relativeTimeRounding=function xc(k){return void 0===k?Eo:"function"==typeof k&&(Eo=k,!0)},l.relativeTimeThreshold=function Po(k,j){return void 0!==Xl[k]&&(void 0===j?Xl[k]:(Xl[k]=j,"s"===k&&(Xl.ss=j-1),!0))},l.calendarFormat=function kt(k,j){var pe=k.diff(j,"days",!0);return pe<-6?"sameElse":pe<-1?"lastWeek":pe<0?"lastDay":pe<1?"sameDay":pe<2?"nextDay":pe<7?"nextWeek":"sameElse"},l.prototype=on,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l}()},5619:(ft,Ie,C)=>{"use strict";C.d(Ie,{X:()=>l});var e=C(8645);class l extends e.x{constructor(I){super(),this._value=I}get value(){return this.getValue()}_subscribe(I){const S=super._subscribe(I);return!S.closed&&I.next(this._value),S}getValue(){const{hasError:I,thrownError:S,_value:w}=this;if(I)throw S;return this._throwIfClosed(),w}next(I){super.next(this._value=I)}}},5592:(ft,Ie,C)=>{"use strict";C.d(Ie,{y:()=>Z});var e=C(305),l=C(7394),D=C(4850),I=C(8407),S=C(2653),w=C(4674),n=C(1441);let Z=(()=>{class se{constructor(oe){oe&&(this._subscribe=oe)}lift(oe){const ce=new se;return ce.source=this,ce.operator=oe,ce}subscribe(oe,ce,_e){const Re=function ue(se){return se&&se instanceof e.Lv||function re(se){return se&&(0,w.m)(se.next)&&(0,w.m)(se.error)&&(0,w.m)(se.complete)}(se)&&(0,l.Nn)(se)}(oe)?oe:new e.Hp(oe,ce,_e);return(0,n.x)(()=>{const{operator:mt,source:Ge}=this;Re.add(mt?mt.call(Re,Ge):Ge?this._subscribe(Re):this._trySubscribe(Re))}),Re}_trySubscribe(oe){try{return this._subscribe(oe)}catch(ce){oe.error(ce)}}forEach(oe,ce){return new(ce=ee(ce))((_e,Re)=>{const mt=new e.Hp({next:Ge=>{try{oe(Ge)}catch(Lt){Re(Lt),mt.unsubscribe()}},error:Re,complete:_e});this.subscribe(mt)})}_subscribe(oe){var ce;return null===(ce=this.source)||void 0===ce?void 0:ce.subscribe(oe)}[D.L](){return this}pipe(...oe){return(0,I.U)(oe)(this)}toPromise(oe){return new(oe=ee(oe))((ce,_e)=>{let Re;this.subscribe(mt=>Re=mt,mt=>_e(mt),()=>ce(Re))})}}return se.create=te=>new se(te),se})();function ee(se){var te;return null!==(te=se??S.config.Promise)&&void 0!==te?te:Promise}},8645:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>n});var e=C(5592),l=C(7394);const I=(0,C(2306).d)(ee=>function(){ee(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=C(9039),w=C(1441);let n=(()=>{class ee extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(ue){const se=new Z(this,this);return se.operator=ue,se}_throwIfClosed(){if(this.closed)throw new I}next(ue){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const se of this.currentObservers)se.next(ue)}})}error(ue){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=ue;const{observers:se}=this;for(;se.length;)se.shift().error(ue)}})}complete(){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:ue}=this;for(;ue.length;)ue.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var ue;return(null===(ue=this.observers)||void 0===ue?void 0:ue.length)>0}_trySubscribe(ue){return this._throwIfClosed(),super._trySubscribe(ue)}_subscribe(ue){return this._throwIfClosed(),this._checkFinalizedStatuses(ue),this._innerSubscribe(ue)}_innerSubscribe(ue){const{hasError:se,isStopped:te,observers:oe}=this;return se||te?l.Lc:(this.currentObservers=null,oe.push(ue),new l.w0(()=>{this.currentObservers=null,(0,S.P)(oe,ue)}))}_checkFinalizedStatuses(ue){const{hasError:se,thrownError:te,isStopped:oe}=this;se?ue.error(te):oe&&ue.complete()}asObservable(){const ue=new e.y;return ue.source=this,ue}}return ee.create=(re,ue)=>new Z(re,ue),ee})();class Z extends n{constructor(re,ue){super(),this.destination=re,this.source=ue}next(re){var ue,se;null===(se=null===(ue=this.destination)||void 0===ue?void 0:ue.next)||void 0===se||se.call(ue,re)}error(re){var ue,se;null===(se=null===(ue=this.destination)||void 0===ue?void 0:ue.error)||void 0===se||se.call(ue,re)}complete(){var re,ue;null===(ue=null===(re=this.destination)||void 0===re?void 0:re.complete)||void 0===ue||ue.call(re)}_subscribe(re){var ue,se;return null!==(se=null===(ue=this.source)||void 0===ue?void 0:ue.subscribe(re))&&void 0!==se?se:l.Lc}}},305:(ft,Ie,C)=>{"use strict";C.d(Ie,{Hp:()=>_e,Lv:()=>se});var e=C(4674),l=C(7394),D=C(2653),I=C(3894),S=C(2420);const w=ee("C",void 0,void 0);function ee(je,Tt,xt){return{kind:je,value:Tt,error:xt}}var re=C(7599),ue=C(1441);class se extends l.w0{constructor(Tt){super(),this.isStopped=!1,Tt?(this.destination=Tt,(0,l.Nn)(Tt)&&Tt.add(this)):this.destination=Lt}static create(Tt,xt,St){return new _e(Tt,xt,St)}next(Tt){this.isStopped?Ge(function Z(je){return ee("N",je,void 0)}(Tt),this):this._next(Tt)}error(Tt){this.isStopped?Ge(function n(je){return ee("E",void 0,je)}(Tt),this):(this.isStopped=!0,this._error(Tt))}complete(){this.isStopped?Ge(w,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Tt){this.destination.next(Tt)}_error(Tt){try{this.destination.error(Tt)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const te=Function.prototype.bind;function oe(je,Tt){return te.call(je,Tt)}class ce{constructor(Tt){this.partialObserver=Tt}next(Tt){const{partialObserver:xt}=this;if(xt.next)try{xt.next(Tt)}catch(St){Re(St)}}error(Tt){const{partialObserver:xt}=this;if(xt.error)try{xt.error(Tt)}catch(St){Re(St)}else Re(Tt)}complete(){const{partialObserver:Tt}=this;if(Tt.complete)try{Tt.complete()}catch(xt){Re(xt)}}}class _e extends se{constructor(Tt,xt,St){let Zt;if(super(),(0,e.m)(Tt)||!Tt)Zt={next:Tt??void 0,error:xt??void 0,complete:St??void 0};else{let yt;this&&D.config.useDeprecatedNextContext?(yt=Object.create(Tt),yt.unsubscribe=()=>this.unsubscribe(),Zt={next:Tt.next&&oe(Tt.next,yt),error:Tt.error&&oe(Tt.error,yt),complete:Tt.complete&&oe(Tt.complete,yt)}):Zt=Tt}this.destination=new ce(Zt)}}function Re(je){D.config.useDeprecatedSynchronousErrorHandling?(0,ue.O)(je):(0,I.h)(je)}function Ge(je,Tt){const{onStoppedNotification:xt}=D.config;xt&&re.z.setTimeout(()=>xt(je,Tt))}const Lt={closed:!0,next:S.Z,error:function mt(je){throw je},complete:S.Z}},7394:(ft,Ie,C)=>{"use strict";C.d(Ie,{Lc:()=>w,w0:()=>S,Nn:()=>n});var e=C(4674);const D=(0,C(2306).d)(ee=>function(ue){ee(this),this.message=ue?`${ue.length} errors occurred during unsubscription:\n${ue.map((se,te)=>`${te+1}) ${se.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ue});var I=C(9039);class S{constructor(re){this.initialTeardown=re,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let re;if(!this.closed){this.closed=!0;const{_parentage:ue}=this;if(ue)if(this._parentage=null,Array.isArray(ue))for(const oe of ue)oe.remove(this);else ue.remove(this);const{initialTeardown:se}=this;if((0,e.m)(se))try{se()}catch(oe){re=oe instanceof D?oe.errors:[oe]}const{_finalizers:te}=this;if(te){this._finalizers=null;for(const oe of te)try{Z(oe)}catch(ce){re=re??[],ce instanceof D?re=[...re,...ce.errors]:re.push(ce)}}if(re)throw new D(re)}}add(re){var ue;if(re&&re!==this)if(this.closed)Z(re);else{if(re instanceof S){if(re.closed||re._hasParent(this))return;re._addParent(this)}(this._finalizers=null!==(ue=this._finalizers)&&void 0!==ue?ue:[]).push(re)}}_hasParent(re){const{_parentage:ue}=this;return ue===re||Array.isArray(ue)&&ue.includes(re)}_addParent(re){const{_parentage:ue}=this;this._parentage=Array.isArray(ue)?(ue.push(re),ue):ue?[ue,re]:re}_removeParent(re){const{_parentage:ue}=this;ue===re?this._parentage=null:Array.isArray(ue)&&(0,I.P)(ue,re)}remove(re){const{_finalizers:ue}=this;ue&&(0,I.P)(ue,re),re instanceof S&&re._removeParent(this)}}S.EMPTY=(()=>{const ee=new S;return ee.closed=!0,ee})();const w=S.EMPTY;function n(ee){return ee instanceof S||ee&&"closed"in ee&&(0,e.m)(ee.remove)&&(0,e.m)(ee.add)&&(0,e.m)(ee.unsubscribe)}function Z(ee){(0,e.m)(ee)?ee():ee.unsubscribe()}},2653:(ft,Ie,C)=>{"use strict";C.d(Ie,{config:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3168:(ft,Ie,C)=>{"use strict";C.d(Ie,{c:()=>w});var e=C(5592),l=C(7394),D=C(6196),I=C(8251),S=C(9360);class w extends e.y{constructor(Z,ee){super(),this.source=Z,this.subjectFactory=ee,this._subject=null,this._refCount=0,this._connection=null,(0,S.A)(Z)&&(this.lift=Z.lift)}_subscribe(Z){return this.getSubject().subscribe(Z)}getSubject(){const Z=this._subject;return(!Z||Z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Z}=this;this._subject=this._connection=null,Z?.unsubscribe()}connect(){let Z=this._connection;if(!Z){Z=this._connection=new l.w0;const ee=this.getSubject();Z.add(this.source.subscribe((0,I.x)(ee,void 0,()=>{this._teardown(),ee.complete()},re=>{this._teardown(),ee.error(re)},()=>this._teardown()))),Z.closed&&(this._connection=null,Z=l.w0.EMPTY)}return Z}refCount(){return(0,D.x)()(this)}}},2572:(ft,Ie,C)=>{"use strict";C.d(Ie,{a:()=>re});var e=C(5592),l=C(7453),D=C(9666),I=C(2737),S=C(7400),w=C(9940),n=C(2714),Z=C(8251),ee=C(7103);function re(...te){const oe=(0,w.yG)(te),ce=(0,w.jO)(te),{args:_e,keys:Re}=(0,l.D)(te);if(0===_e.length)return(0,D.D)([],oe);const mt=new e.y(function ue(te,oe,ce=I.y){return _e=>{se(oe,()=>{const{length:Re}=te,mt=new Array(Re);let Ge=Re,Lt=Re;for(let je=0;je{const Tt=(0,D.D)(te[je],oe);let xt=!1;Tt.subscribe((0,Z.x)(_e,St=>{mt[je]=St,xt||(xt=!0,Lt--),Lt||_e.next(ce(mt.slice()))},()=>{--Ge||_e.complete()}))},_e)},_e)}}(_e,oe,Re?Ge=>(0,n.n)(Re,Ge):I.y));return ce?mt.pipe((0,S.Z)(ce)):mt}function se(te,oe,ce){te?(0,ee.f)(ce,te,oe):oe()}},5211:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>S});var e=C(7537),D=C(9940),I=C(9666);function S(...w){return function l(){return(0,e.J)(1)}()((0,I.D)(w,(0,D.yG)(w)))}},4911:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>D});var e=C(5592),l=C(4829);function D(I){return new e.y(S=>{(0,l.Xf)(I()).subscribe(S)})}},6232:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>l});const l=new(C(5592).y)(S=>S.complete())},9315:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>Z});var e=C(5592),l=C(7453),D=C(4829),I=C(9940),S=C(8251),w=C(7400),n=C(2714);function Z(...ee){const re=(0,I.jO)(ee),{args:ue,keys:se}=(0,l.D)(ee),te=new e.y(oe=>{const{length:ce}=ue;if(!ce)return void oe.complete();const _e=new Array(ce);let Re=ce,mt=ce;for(let Ge=0;Ge{Lt||(Lt=!0,mt--),_e[Ge]=je},()=>Re--,void 0,()=>{(!Re||!Lt)&&(mt||oe.next(se?(0,n.n)(se,_e):_e),oe.complete())}))}});return re?te.pipe((0,w.Z)(re)):te}},9666:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>xt});var e=C(4829),l=C(3093),D=C(9360);function I(St,Zt=0){return(0,D.e)((yt,un)=>{un.add(St.schedule(()=>yt.subscribe(un),Zt))})}var n=C(5592),ee=C(4971),re=C(4674),ue=C(7103);function te(St,Zt){if(!St)throw new Error("Iterable cannot be null");return new n.y(yt=>{(0,ue.f)(yt,Zt,()=>{const un=St[Symbol.asyncIterator]();(0,ue.f)(yt,Zt,()=>{un.next().then(Jt=>{Jt.done?yt.complete():yt.next(Jt.value)})},0,!0)})})}var oe=C(8382),ce=C(4026),_e=C(4266),Re=C(3664),mt=C(5726),Ge=C(9853),Lt=C(541);function xt(St,Zt){return Zt?function Tt(St,Zt){if(null!=St){if((0,oe.c)(St))return function S(St,Zt){return(0,e.Xf)(St).pipe(I(Zt),(0,l.Q)(Zt))}(St,Zt);if((0,_e.z)(St))return function Z(St,Zt){return new n.y(yt=>{let un=0;return Zt.schedule(function(){un===St.length?yt.complete():(yt.next(St[un++]),yt.closed||this.schedule())})})}(St,Zt);if((0,ce.t)(St))return function w(St,Zt){return(0,e.Xf)(St).pipe(I(Zt),(0,l.Q)(Zt))}(St,Zt);if((0,mt.D)(St))return te(St,Zt);if((0,Re.T)(St))return function se(St,Zt){return new n.y(yt=>{let un;return(0,ue.f)(yt,Zt,()=>{un=St[ee.h](),(0,ue.f)(yt,Zt,()=>{let Jt,tn;try{({value:Jt,done:tn}=un.next())}catch(wn){return void yt.error(wn)}tn?yt.complete():yt.next(Jt)},0,!0)}),()=>(0,re.m)(un?.return)&&un.return()})}(St,Zt);if((0,Lt.L)(St))return function je(St,Zt){return te((0,Lt.Q)(St),Zt)}(St,Zt)}throw(0,Ge.z)(St)}(St,Zt):(0,e.Xf)(St)}},2438:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>re});var e=C(4829),l=C(5592),D=C(1631),I=C(4266),S=C(4674),w=C(7400);const n=["addListener","removeListener"],Z=["addEventListener","removeEventListener"],ee=["on","off"];function re(ce,_e,Re,mt){if((0,S.m)(Re)&&(mt=Re,Re=void 0),mt)return re(ce,_e,Re).pipe((0,w.Z)(mt));const[Ge,Lt]=function oe(ce){return(0,S.m)(ce.addEventListener)&&(0,S.m)(ce.removeEventListener)}(ce)?Z.map(je=>Tt=>ce[je](_e,Tt,Re)):function se(ce){return(0,S.m)(ce.addListener)&&(0,S.m)(ce.removeListener)}(ce)?n.map(ue(ce,_e)):function te(ce){return(0,S.m)(ce.on)&&(0,S.m)(ce.off)}(ce)?ee.map(ue(ce,_e)):[];if(!Ge&&(0,I.z)(ce))return(0,D.z)(je=>re(je,_e,Re))((0,e.Xf)(ce));if(!Ge)throw new TypeError("Invalid event target");return new l.y(je=>{const Tt=(...xt)=>je.next(1Lt(Tt)})}function ue(ce,_e){return Re=>mt=>ce[Re](_e,mt)}},4829:(ft,Ie,C)=>{"use strict";C.d(Ie,{Xf:()=>te});var e=C(7582),l=C(4266),D=C(4026),I=C(5592),S=C(8382),w=C(5726),n=C(9853),Z=C(3664),ee=C(541),re=C(4674),ue=C(3894),se=C(4850);function te(je){if(je instanceof I.y)return je;if(null!=je){if((0,S.c)(je))return function oe(je){return new I.y(Tt=>{const xt=je[se.L]();if((0,re.m)(xt.subscribe))return xt.subscribe(Tt);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(je);if((0,l.z)(je))return function ce(je){return new I.y(Tt=>{for(let xt=0;xt{je.then(xt=>{Tt.closed||(Tt.next(xt),Tt.complete())},xt=>Tt.error(xt)).then(null,ue.h)})}(je);if((0,w.D)(je))return mt(je);if((0,Z.T)(je))return function Re(je){return new I.y(Tt=>{for(const xt of je)if(Tt.next(xt),Tt.closed)return;Tt.complete()})}(je);if((0,ee.L)(je))return function Ge(je){return mt((0,ee.Q)(je))}(je)}throw(0,n.z)(je)}function mt(je){return new I.y(Tt=>{(function Lt(je,Tt){var xt,St,Zt,yt;return(0,e.mG)(this,void 0,void 0,function*(){try{for(xt=(0,e.KL)(je);!(St=yield xt.next()).done;)if(Tt.next(St.value),Tt.closed)return}catch(un){Zt={error:un}}finally{try{St&&!St.done&&(yt=xt.return)&&(yield yt.call(xt))}finally{if(Zt)throw Zt.error}}Tt.complete()})})(je,Tt).catch(xt=>Tt.error(xt))})}},3019:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>w});var e=C(7537),l=C(4829),D=C(6232),I=C(9940),S=C(9666);function w(...n){const Z=(0,I.yG)(n),ee=(0,I._6)(n,1/0),re=n;return re.length?1===re.length?(0,l.Xf)(re[0]):(0,e.J)(ee)((0,S.D)(re,Z)):D.E}},2096:(ft,Ie,C)=>{"use strict";C.d(Ie,{of:()=>D});var e=C(9940),l=C(9666);function D(...I){const S=(0,e.yG)(I);return(0,l.D)(I,S)}},8504:(ft,Ie,C)=>{"use strict";C.d(Ie,{_:()=>D});var e=C(5592),l=C(4674);function D(I,S){const w=(0,l.m)(I)?I:()=>I,n=Z=>Z.error(w());return new e.y(S?Z=>S.schedule(n,0,Z):n)}},4825:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>S});var e=C(5592),l=C(6321),D=C(671);function S(w=0,n,Z=l.P){let ee=-1;return null!=n&&((0,D.K)(n)?Z=n:ee=n),new e.y(re=>{let ue=function I(w){return w instanceof Date&&!isNaN(w)}(w)?+w-Z.now():w;ue<0&&(ue=0);let se=0;return Z.schedule(function(){re.closed||(re.next(se++),0<=ee?this.schedule(void 0,ee):re.complete())},ue)})}},8251:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>l});var e=C(305);function l(I,S,w,n,Z){return new D(I,S,w,n,Z)}class D extends e.Lv{constructor(S,w,n,Z,ee,re){super(S),this.onFinalize=ee,this.shouldUnsubscribe=re,this._next=w?function(ue){try{w(ue)}catch(se){S.error(se)}}:super._next,this._error=Z?function(ue){try{Z(ue)}catch(se){S.error(se)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(ue){S.error(ue)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:w}=this;super.unsubscribe(),!w&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},9028:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>n});var e=C(6321),l=C(9360),D=C(4829),I=C(8251),w=C(4825);function n(Z,ee=e.z){return function S(Z){return(0,l.e)((ee,re)=>{let ue=!1,se=null,te=null,oe=!1;const ce=()=>{if(te?.unsubscribe(),te=null,ue){ue=!1;const Re=se;se=null,re.next(Re)}oe&&re.complete()},_e=()=>{te=null,oe&&re.complete()};ee.subscribe((0,I.x)(re,Re=>{ue=!0,se=Re,te||(0,D.Xf)(Z(Re)).subscribe(te=(0,I.x)(re,ce,_e))},()=>{oe=!0,(!ue||!te||te.closed)&&re.complete()}))})}(()=>(0,w.H)(Z,ee))}},6306:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>I});var e=C(4829),l=C(8251),D=C(9360);function I(S){return(0,D.e)((w,n)=>{let re,Z=null,ee=!1;Z=w.subscribe((0,l.x)(n,void 0,void 0,ue=>{re=(0,e.Xf)(S(ue,I(S)(w))),Z?(Z.unsubscribe(),Z=null,re.subscribe(n)):ee=!0})),ee&&(Z.unsubscribe(),Z=null,re.subscribe(n))})}},6328:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>D});var e=C(1631),l=C(4674);function D(I,S){return(0,l.m)(S)?(0,e.z)(I,S,1):(0,e.z)(I,1)}},3620:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>I});var e=C(6321),l=C(9360),D=C(8251);function I(S,w=e.z){return(0,l.e)((n,Z)=>{let ee=null,re=null,ue=null;const se=()=>{if(ee){ee.unsubscribe(),ee=null;const oe=re;re=null,Z.next(oe)}};function te(){const oe=ue+S,ce=w.now();if(ce{re=oe,ue=w.now(),ee||(ee=w.schedule(te,S),Z.add(ee))},()=>{se(),Z.complete()},void 0,()=>{re=ee=null}))})}},3572:(ft,Ie,C)=>{"use strict";C.d(Ie,{d:()=>D});var e=C(9360),l=C(8251);function D(I){return(0,e.e)((S,w)=>{let n=!1;S.subscribe((0,l.x)(w,Z=>{n=!0,w.next(Z)},()=>{n||w.next(I),w.complete()}))})}},5177:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>te});var e=C(6321),l=C(5211),D=C(8180),I=C(9360),S=C(8251),w=C(2420),Z=C(975),ee=C(1631),re=C(4829);function ue(oe,ce){return ce?_e=>(0,l.z)(ce.pipe((0,D.q)(1),function n(){return(0,I.e)((oe,ce)=>{oe.subscribe((0,S.x)(ce,w.Z))})}()),_e.pipe(ue(oe))):(0,ee.z)((_e,Re)=>(0,re.Xf)(oe(_e,Re)).pipe((0,D.q)(1),(0,Z.h)(_e)))}var se=C(4825);function te(oe,ce=e.z){const _e=(0,se.H)(oe,ce);return ue(()=>_e)}},3997:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>I});var e=C(2737),l=C(9360),D=C(8251);function I(w,n=e.y){return w=w??S,(0,l.e)((Z,ee)=>{let re,ue=!0;Z.subscribe((0,D.x)(ee,se=>{const te=n(se);(ue||!w(re,te))&&(ue=!1,re=te,ee.next(se))}))})}function S(w,n){return w===n}},2181:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>D});var e=C(9360),l=C(8251);function D(I,S){return(0,e.e)((w,n)=>{let Z=0;w.subscribe((0,l.x)(n,ee=>I.call(S,ee,Z++)&&n.next(ee)))})}},4716:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>l});var e=C(9360);function l(D){return(0,e.e)((I,S)=>{try{I.subscribe(S)}finally{S.add(D)}})}},1374:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>n});var e=C(6973),l=C(2181),D=C(8180),I=C(3572),S=C(3026),w=C(2737);function n(Z,ee){const re=arguments.length>=2;return ue=>ue.pipe(Z?(0,l.h)((se,te)=>Z(se,te,ue)):w.y,(0,D.q)(1),re?(0,I.d)(ee):(0,S.T)(()=>new e.K))}},7398:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>D});var e=C(9360),l=C(8251);function D(I,S){return(0,e.e)((w,n)=>{let Z=0;w.subscribe((0,l.x)(n,ee=>{n.next(I.call(S,ee,Z++))}))})}},975:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>l});var e=C(7398);function l(D){return(0,e.U)(()=>D)}},7537:(ft,Ie,C)=>{"use strict";C.d(Ie,{J:()=>D});var e=C(1631),l=C(2737);function D(I=1/0){return(0,e.z)(l.y,I)}},1631:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>Z});var e=C(7398),l=C(4829),D=C(9360),I=C(7103),S=C(8251),n=C(4674);function Z(ee,re,ue=1/0){return(0,n.m)(re)?Z((se,te)=>(0,e.U)((oe,ce)=>re(se,oe,te,ce))((0,l.Xf)(ee(se,te))),ue):("number"==typeof re&&(ue=re),(0,D.e)((se,te)=>function w(ee,re,ue,se,te,oe,ce,_e){const Re=[];let mt=0,Ge=0,Lt=!1;const je=()=>{Lt&&!Re.length&&!mt&&re.complete()},Tt=St=>mt{oe&&re.next(St),mt++;let Zt=!1;(0,l.Xf)(ue(St,Ge++)).subscribe((0,S.x)(re,yt=>{te?.(yt),oe?Tt(yt):re.next(yt)},()=>{Zt=!0},void 0,()=>{if(Zt)try{for(mt--;Re.length&&mtxt(yt)):xt(yt)}je()}catch(yt){re.error(yt)}}))};return ee.subscribe((0,S.x)(re,Tt,()=>{Lt=!0,je()})),()=>{_e?.()}}(se,te,ee,ue)))}},3093:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q:()=>I});var e=C(7103),l=C(9360),D=C(8251);function I(S,w=0){return(0,l.e)((n,Z)=>{n.subscribe((0,D.x)(Z,ee=>(0,e.f)(Z,S,()=>Z.next(ee),w),()=>(0,e.f)(Z,S,()=>Z.complete(),w),ee=>(0,e.f)(Z,S,()=>Z.error(ee),w)))})}},6196:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>D});var e=C(9360),l=C(8251);function D(){return(0,e.e)((I,S)=>{let w=null;I._refCount++;const n=(0,l.x)(S,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(w=null);const Z=I._connection,ee=w;w=null,Z&&(!ee||Z===ee)&&Z.unsubscribe(),S.unsubscribe()});I.subscribe(n),n.closed||(w=I.connect())})}},6424:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>D});var e=C(9360),l=C(9732);function D(I,S){return(0,e.e)((0,l.U)(I,S,arguments.length>=2,!0))}},9732:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>l});var e=C(8251);function l(D,I,S,w,n){return(Z,ee)=>{let re=S,ue=I,se=0;Z.subscribe((0,e.x)(ee,te=>{const oe=se++;ue=re?D(ue,te,oe):(re=!0,te),w&&ee.next(ue)},n&&(()=>{re&&ee.next(ue),ee.complete()})))}}},3020:(ft,Ie,C)=>{"use strict";C.d(Ie,{B:()=>S});var e=C(4829),l=C(8645),D=C(305),I=C(9360);function S(n={}){const{connector:Z=(()=>new l.x),resetOnError:ee=!0,resetOnComplete:re=!0,resetOnRefCountZero:ue=!0}=n;return se=>{let te,oe,ce,_e=0,Re=!1,mt=!1;const Ge=()=>{oe?.unsubscribe(),oe=void 0},Lt=()=>{Ge(),te=ce=void 0,Re=mt=!1},je=()=>{const Tt=te;Lt(),Tt?.unsubscribe()};return(0,I.e)((Tt,xt)=>{_e++,!mt&&!Re&&Ge();const St=ce=ce??Z();xt.add(()=>{_e--,0===_e&&!mt&&!Re&&(oe=w(je,ue))}),St.subscribe(xt),!te&&_e>0&&(te=new D.Hp({next:Zt=>St.next(Zt),error:Zt=>{mt=!0,Ge(),oe=w(Lt,ee,Zt),St.error(Zt)},complete:()=>{Re=!0,Ge(),oe=w(Lt,re),St.complete()}}),(0,e.Xf)(Tt).subscribe(te))})(se)}}function w(n,Z,...ee){if(!0===Z)return void n();if(!1===Z)return;const re=new D.Hp({next:()=>{re.unsubscribe(),n()}});return(0,e.Xf)(Z(...ee)).subscribe(re)}},836:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>l});var e=C(2181);function l(D){return(0,e.h)((I,S)=>D<=S)}},7921:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>I});var e=C(5211),l=C(9940),D=C(9360);function I(...S){const w=(0,l.yG)(S);return(0,D.e)((n,Z)=>{(w?(0,e.z)(S,n,w):(0,e.z)(S,n)).subscribe(Z)})}},4664:(ft,Ie,C)=>{"use strict";C.d(Ie,{w:()=>I});var e=C(4829),l=C(9360),D=C(8251);function I(S,w){return(0,l.e)((n,Z)=>{let ee=null,re=0,ue=!1;const se=()=>ue&&!ee&&Z.complete();n.subscribe((0,D.x)(Z,te=>{ee?.unsubscribe();let oe=0;const ce=re++;(0,e.Xf)(S(te,ce)).subscribe(ee=(0,D.x)(Z,_e=>Z.next(w?w(te,_e,ce,oe++):_e),()=>{ee=null,se()}))},()=>{ue=!0,se()}))})}},8180:(ft,Ie,C)=>{"use strict";C.d(Ie,{q:()=>I});var e=C(6232),l=C(9360),D=C(8251);function I(S){return S<=0?()=>e.E:(0,l.e)((w,n)=>{let Z=0;w.subscribe((0,D.x)(n,ee=>{++Z<=S&&(n.next(ee),S<=Z&&n.complete())}))})}},9773:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>S});var e=C(9360),l=C(8251),D=C(4829),I=C(2420);function S(w){return(0,e.e)((n,Z)=>{(0,D.Xf)(w).subscribe((0,l.x)(Z,()=>Z.complete(),I.Z)),!Z.closed&&n.subscribe(Z)})}},9397:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>S});var e=C(4674),l=C(9360),D=C(8251),I=C(2737);function S(w,n,Z){const ee=(0,e.m)(w)||n||Z?{next:w,error:n,complete:Z}:w;return ee?(0,l.e)((re,ue)=>{var se;null===(se=ee.subscribe)||void 0===se||se.call(ee);let te=!0;re.subscribe((0,D.x)(ue,oe=>{var ce;null===(ce=ee.next)||void 0===ce||ce.call(ee,oe),ue.next(oe)},()=>{var oe;te=!1,null===(oe=ee.complete)||void 0===oe||oe.call(ee),ue.complete()},oe=>{var ce;te=!1,null===(ce=ee.error)||void 0===ce||ce.call(ee,oe),ue.error(oe)},()=>{var oe,ce;te&&(null===(oe=ee.unsubscribe)||void 0===oe||oe.call(ee)),null===(ce=ee.finalize)||void 0===ce||ce.call(ee)}))}):I.y}},3026:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>I});var e=C(6973),l=C(9360),D=C(8251);function I(w=S){return(0,l.e)((n,Z)=>{let ee=!1;n.subscribe((0,D.x)(Z,re=>{ee=!0,Z.next(re)},()=>ee?Z.complete():Z.error(w())))})}function S(){return new e.K}},1954:(ft,Ie,C)=>{"use strict";C.d(Ie,{o:()=>S});var e=C(7394);class l extends e.w0{constructor(n,Z){super()}schedule(n,Z=0){return this}}const D={setInterval(w,n,...Z){const{delegate:ee}=D;return ee?.setInterval?ee.setInterval(w,n,...Z):setInterval(w,n,...Z)},clearInterval(w){const{delegate:n}=D;return(n?.clearInterval||clearInterval)(w)},delegate:void 0};var I=C(9039);class S extends l{constructor(n,Z){super(n,Z),this.scheduler=n,this.work=Z,this.pending=!1}schedule(n,Z=0){var ee;if(this.closed)return this;this.state=n;const re=this.id,ue=this.scheduler;return null!=re&&(this.id=this.recycleAsyncId(ue,re,Z)),this.pending=!0,this.delay=Z,this.id=null!==(ee=this.id)&&void 0!==ee?ee:this.requestAsyncId(ue,this.id,Z),this}requestAsyncId(n,Z,ee=0){return D.setInterval(n.flush.bind(n,this),ee)}recycleAsyncId(n,Z,ee=0){if(null!=ee&&this.delay===ee&&!1===this.pending)return Z;null!=Z&&D.clearInterval(Z)}execute(n,Z){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ee=this._execute(n,Z);if(ee)return ee;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,Z){let re,ee=!1;try{this.work(n)}catch(ue){ee=!0,re=ue||new Error("Scheduled action threw falsy error")}if(ee)return this.unsubscribe(),re}unsubscribe(){if(!this.closed){const{id:n,scheduler:Z}=this,{actions:ee}=Z;this.work=this.state=this.scheduler=null,this.pending=!1,(0,I.P)(ee,this),null!=n&&(this.id=this.recycleAsyncId(Z,n,null)),this.delay=null,super.unsubscribe()}}}},2631:(ft,Ie,C)=>{"use strict";C.d(Ie,{v:()=>D});var e=C(4552);class l{constructor(S,w=l.now){this.schedulerActionCtor=S,this.now=w}schedule(S,w=0,n){return new this.schedulerActionCtor(this,S).schedule(n,w)}}l.now=e.l.now;class D extends l{constructor(S,w=l.now){super(S,w),this.actions=[],this._active=!1}flush(S){const{actions:w}=this;if(this._active)return void w.push(S);let n;this._active=!0;do{if(n=S.execute(S.state,S.delay))break}while(S=w.shift());if(this._active=!1,n){for(;S=w.shift();)S.unsubscribe();throw n}}}},927:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>n});var e=C(1954),l=C(7394);const D={schedule(ee){let re=requestAnimationFrame,ue=cancelAnimationFrame;const{delegate:se}=D;se&&(re=se.requestAnimationFrame,ue=se.cancelAnimationFrame);const te=re(oe=>{ue=void 0,ee(oe)});return new l.w0(()=>ue?.(te))},requestAnimationFrame(...ee){const{delegate:re}=D;return(re?.requestAnimationFrame||requestAnimationFrame)(...ee)},cancelAnimationFrame(...ee){const{delegate:re}=D;return(re?.cancelAnimationFrame||cancelAnimationFrame)(...ee)},delegate:void 0};var S=C(2631);const n=new class w extends S.v{flush(re){this._active=!0;const ue=this._scheduled;this._scheduled=void 0;const{actions:se}=this;let te;re=re||se.shift();do{if(te=re.execute(re.state,re.delay))break}while((re=se[0])&&re.id===ue&&se.shift());if(this._active=!1,te){for(;(re=se[0])&&re.id===ue&&se.shift();)re.unsubscribe();throw te}}}(class I extends e.o{constructor(re,ue){super(re,ue),this.scheduler=re,this.work=ue}requestAsyncId(re,ue,se=0){return null!==se&&se>0?super.requestAsyncId(re,ue,se):(re.actions.push(this),re._scheduled||(re._scheduled=D.requestAnimationFrame(()=>re.flush(void 0))))}recycleAsyncId(re,ue,se=0){var te;if(null!=se?se>0:this.delay>0)return super.recycleAsyncId(re,ue,se);const{actions:oe}=re;null!=ue&&(null===(te=oe[oe.length-1])||void 0===te?void 0:te.id)!==ue&&(D.cancelAnimationFrame(ue),re._scheduled=void 0)}})},6410:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>oe});var e=C(1954);let D,l=1;const I={};function S(_e){return _e in I&&(delete I[_e],!0)}const w={setImmediate(_e){const Re=l++;return I[Re]=!0,D||(D=Promise.resolve()),D.then(()=>S(Re)&&_e()),Re},clearImmediate(_e){S(_e)}},{setImmediate:Z,clearImmediate:ee}=w,re={setImmediate(..._e){const{delegate:Re}=re;return(Re?.setImmediate||Z)(..._e)},clearImmediate(_e){const{delegate:Re}=re;return(Re?.clearImmediate||ee)(_e)},delegate:void 0};var se=C(2631);const oe=new class te extends se.v{flush(Re){this._active=!0;const mt=this._scheduled;this._scheduled=void 0;const{actions:Ge}=this;let Lt;Re=Re||Ge.shift();do{if(Lt=Re.execute(Re.state,Re.delay))break}while((Re=Ge[0])&&Re.id===mt&&Ge.shift());if(this._active=!1,Lt){for(;(Re=Ge[0])&&Re.id===mt&&Ge.shift();)Re.unsubscribe();throw Lt}}}(class ue extends e.o{constructor(Re,mt){super(Re,mt),this.scheduler=Re,this.work=mt}requestAsyncId(Re,mt,Ge=0){return null!==Ge&&Ge>0?super.requestAsyncId(Re,mt,Ge):(Re.actions.push(this),Re._scheduled||(Re._scheduled=re.setImmediate(Re.flush.bind(Re,void 0))))}recycleAsyncId(Re,mt,Ge=0){var Lt;if(null!=Ge?Ge>0:this.delay>0)return super.recycleAsyncId(Re,mt,Ge);const{actions:je}=Re;null!=mt&&(null===(Lt=je[je.length-1])||void 0===Lt?void 0:Lt.id)!==mt&&(re.clearImmediate(mt),Re._scheduled===mt&&(Re._scheduled=void 0))}})},6321:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>I,z:()=>D});var e=C(1954);const D=new(C(2631).v)(e.o),I=D},4552:(ft,Ie,C)=>{"use strict";C.d(Ie,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},7599:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>e});const e={setTimeout(l,D,...I){const{delegate:S}=e;return S?.setTimeout?S.setTimeout(l,D,...I):setTimeout(l,D,...I)},clearTimeout(l){const{delegate:D}=e;return(D?.clearTimeout||clearTimeout)(l)},delegate:void 0}},4971:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>l});const l=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(ft,Ie,C)=>{"use strict";C.d(Ie,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>l});const l=(0,C(2306).d)(D=>function(){D(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(ft,Ie,C)=>{"use strict";C.d(Ie,{_6:()=>w,jO:()=>I,yG:()=>S});var e=C(4674),l=C(671);function D(n){return n[n.length-1]}function I(n){return(0,e.m)(D(n))?n.pop():void 0}function S(n){return(0,l.K)(D(n))?n.pop():void 0}function w(n,Z){return"number"==typeof D(n)?n.pop():Z}},7453:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>S});const{isArray:e}=Array,{getPrototypeOf:l,prototype:D,keys:I}=Object;function S(n){if(1===n.length){const Z=n[0];if(e(Z))return{args:Z,keys:null};if(function w(n){return n&&"object"==typeof n&&l(n)===D}(Z)){const ee=I(Z);return{args:ee.map(re=>Z[re]),keys:ee}}}return{args:n,keys:null}}},9039:(ft,Ie,C)=>{"use strict";function e(l,D){if(l){const I=l.indexOf(D);0<=I&&l.splice(I,1)}}C.d(Ie,{P:()=>e})},2306:(ft,Ie,C)=>{"use strict";function e(l){const I=l(S=>{Error.call(S),S.stack=(new Error).stack});return I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I}C.d(Ie,{d:()=>e})},2714:(ft,Ie,C)=>{"use strict";function e(l,D){return l.reduce((I,S,w)=>(I[S]=D[w],I),{})}C.d(Ie,{n:()=>e})},1441:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>I,x:()=>D});var e=C(2653);let l=null;function D(S){if(e.config.useDeprecatedSynchronousErrorHandling){const w=!l;if(w&&(l={errorThrown:!1,error:null}),S(),w){const{errorThrown:n,error:Z}=l;if(l=null,n)throw Z}}else S()}function I(S){e.config.useDeprecatedSynchronousErrorHandling&&l&&(l.errorThrown=!0,l.error=S)}},7103:(ft,Ie,C)=>{"use strict";function e(l,D,I,S=0,w=!1){const n=D.schedule(function(){I(),w?l.add(this.schedule(null,S)):this.unsubscribe()},S);if(l.add(n),!w)return n}C.d(Ie,{f:()=>e})},2737:(ft,Ie,C)=>{"use strict";function e(l){return l}C.d(Ie,{y:()=>e})},4266:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>e});const e=l=>l&&"number"==typeof l.length&&"function"!=typeof l},5726:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>l});var e=C(4674);function l(D){return Symbol.asyncIterator&&(0,e.m)(D?.[Symbol.asyncIterator])}},4674:(ft,Ie,C)=>{"use strict";function e(l){return"function"==typeof l}C.d(Ie,{m:()=>e})},8382:(ft,Ie,C)=>{"use strict";C.d(Ie,{c:()=>D});var e=C(4850),l=C(4674);function D(I){return(0,l.m)(I[e.L])}},3664:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>D});var e=C(4971),l=C(4674);function D(I){return(0,l.m)(I?.[e.h])}},4026:(ft,Ie,C)=>{"use strict";C.d(Ie,{t:()=>l});var e=C(4674);function l(D){return(0,e.m)(D?.then)}},541:(ft,Ie,C)=>{"use strict";C.d(Ie,{L:()=>I,Q:()=>D});var e=C(7582),l=C(4674);function D(S){return(0,e.FC)(this,arguments,function*(){const n=S.getReader();try{for(;;){const{value:Z,done:ee}=yield(0,e.qq)(n.read());if(ee)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(Z)}}finally{n.releaseLock()}})}function I(S){return(0,l.m)(S?.getReader)}},671:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>l});var e=C(4674);function l(D){return D&&(0,e.m)(D.schedule)}},9360:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>l,e:()=>D});var e=C(4674);function l(I){return(0,e.m)(I?.lift)}function D(I){return S=>{if(l(S))return S.lift(function(w){try{return I(w,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>I});var e=C(7398);const{isArray:l}=Array;function I(S){return(0,e.U)(w=>function D(S,w){return l(w)?S(...w):S(w)}(S,w))}},2420:(ft,Ie,C)=>{"use strict";function e(){}C.d(Ie,{Z:()=>e})},8407:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>D,z:()=>l});var e=C(2737);function l(...I){return D(I)}function D(I){return 0===I.length?e.y:1===I.length?I[0]:function(w){return I.reduce((n,Z)=>Z(n),w)}}},3894:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>D});var e=C(2653),l=C(7599);function D(I){l.z.setTimeout(()=>{const{onUnhandledError:S}=e.config;if(!S)throw I;S(I)})}},9853:(ft,Ie,C)=>{"use strict";function e(l){return new TypeError(`You provided ${null!==l&&"object"==typeof l?"an invalid object":`'${l}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(Ie,{z:()=>e})},6700:(ft,Ie,C)=>{var e={"./af":3274,"./af.js":3274,"./ar":2097,"./ar-dz":1867,"./ar-dz.js":1867,"./ar-kw":7078,"./ar-kw.js":7078,"./ar-ly":7776,"./ar-ly.js":7776,"./ar-ma":6789,"./ar-ma.js":6789,"./ar-sa":6897,"./ar-sa.js":6897,"./ar-tn":1585,"./ar-tn.js":1585,"./ar.js":2097,"./az":5611,"./az.js":5611,"./be":2459,"./be.js":2459,"./bg":1825,"./bg.js":1825,"./bm":5918,"./bm.js":5918,"./bn":4065,"./bn-bd":9683,"./bn-bd.js":9683,"./bn.js":4065,"./bo":1034,"./bo.js":1034,"./br":7671,"./br.js":7671,"./bs":8153,"./bs.js":8153,"./ca":4287,"./ca.js":4287,"./cs":2616,"./cs.js":2616,"./cv":7049,"./cv.js":7049,"./cy":9172,"./cy.js":9172,"./da":605,"./da.js":605,"./de":4013,"./de-at":3395,"./de-at.js":3395,"./de-ch":9835,"./de-ch.js":9835,"./de.js":4013,"./dv":4570,"./dv.js":4570,"./el":1859,"./el.js":1859,"./en-au":5785,"./en-au.js":5785,"./en-ca":3792,"./en-ca.js":3792,"./en-gb":7651,"./en-gb.js":7651,"./en-ie":1929,"./en-ie.js":1929,"./en-il":9818,"./en-il.js":9818,"./en-in":6612,"./en-in.js":6612,"./en-nz":4900,"./en-nz.js":4900,"./en-sg":2721,"./en-sg.js":2721,"./eo":6570,"./eo.js":6570,"./es":1148,"./es-do":1780,"./es-do.js":1780,"./es-mx":3468,"./es-mx.js":3468,"./es-us":4938,"./es-us.js":4938,"./es.js":1148,"./et":1453,"./et.js":1453,"./eu":4697,"./eu.js":4697,"./fa":2900,"./fa.js":2900,"./fi":9775,"./fi.js":9775,"./fil":4282,"./fil.js":4282,"./fo":4236,"./fo.js":4236,"./fr":9361,"./fr-ca":2830,"./fr-ca.js":2830,"./fr-ch":1412,"./fr-ch.js":1412,"./fr.js":9361,"./fy":6984,"./fy.js":6984,"./ga":3961,"./ga.js":3961,"./gd":8849,"./gd.js":8849,"./gl":4273,"./gl.js":4273,"./gom-deva":623,"./gom-deva.js":623,"./gom-latn":2696,"./gom-latn.js":2696,"./gu":6928,"./gu.js":6928,"./he":4804,"./he.js":4804,"./hi":3015,"./hi.js":3015,"./hr":7134,"./hr.js":7134,"./hu":670,"./hu.js":670,"./hy-am":4523,"./hy-am.js":4523,"./id":9233,"./id.js":9233,"./is":4693,"./is.js":4693,"./it":3936,"./it-ch":8118,"./it-ch.js":8118,"./it.js":3936,"./ja":6871,"./ja.js":6871,"./jv":8710,"./jv.js":8710,"./ka":7125,"./ka.js":7125,"./kk":2461,"./kk.js":2461,"./km":7399,"./km.js":7399,"./kn":8720,"./kn.js":8720,"./ko":5306,"./ko.js":5306,"./ku":2995,"./ku.js":2995,"./ky":8779,"./ky.js":8779,"./lb":2057,"./lb.js":2057,"./lo":7192,"./lo.js":7192,"./lt":5430,"./lt.js":5430,"./lv":3363,"./lv.js":3363,"./me":2939,"./me.js":2939,"./mi":8212,"./mi.js":8212,"./mk":9718,"./mk.js":9718,"./ml":561,"./ml.js":561,"./mn":8929,"./mn.js":8929,"./mr":4880,"./mr.js":4880,"./ms":3193,"./ms-my":2074,"./ms-my.js":2074,"./ms.js":3193,"./mt":4082,"./mt.js":4082,"./my":2261,"./my.js":2261,"./nb":5273,"./nb.js":5273,"./ne":9874,"./ne.js":9874,"./nl":1667,"./nl-be":1484,"./nl-be.js":1484,"./nl.js":1667,"./nn":7262,"./nn.js":7262,"./oc-lnc":9679,"./oc-lnc.js":9679,"./pa-in":6830,"./pa-in.js":6830,"./pl":3616,"./pl.js":3616,"./pt":5138,"./pt-br":2751,"./pt-br.js":2751,"./pt.js":5138,"./ro":7968,"./ro.js":7968,"./ru":1828,"./ru.js":1828,"./sd":2188,"./sd.js":2188,"./se":6562,"./se.js":6562,"./si":7172,"./si.js":7172,"./sk":9966,"./sk.js":9966,"./sl":7520,"./sl.js":7520,"./sq":5291,"./sq.js":5291,"./sr":450,"./sr-cyrl":7603,"./sr-cyrl.js":7603,"./sr.js":450,"./ss":383,"./ss.js":383,"./sv":7221,"./sv.js":7221,"./sw":1743,"./sw.js":1743,"./ta":6351,"./ta.js":6351,"./te":9620,"./te.js":9620,"./tet":6278,"./tet.js":6278,"./tg":6987,"./tg.js":6987,"./th":9325,"./th.js":9325,"./tk":3485,"./tk.js":3485,"./tl-ph":8148,"./tl-ph.js":8148,"./tlh":9616,"./tlh.js":9616,"./tr":4040,"./tr.js":4040,"./tzl":594,"./tzl.js":594,"./tzm":673,"./tzm-latn":3226,"./tzm-latn.js":3226,"./tzm.js":673,"./ug-cn":9580,"./ug-cn.js":9580,"./uk":7270,"./uk.js":7270,"./ur":1656,"./ur.js":1656,"./uz":8364,"./uz-latn":8744,"./uz-latn.js":8744,"./uz.js":8364,"./vi":5049,"./vi.js":5049,"./x-pseudo":5106,"./x-pseudo.js":5106,"./yo":6199,"./yo.js":6199,"./zh-cn":7280,"./zh-cn.js":7280,"./zh-hk":6860,"./zh-hk.js":6860,"./zh-mo":2335,"./zh-mo.js":2335,"./zh-tw":482,"./zh-tw.js":482};function l(I){var S=D(I);return C(S)}function D(I){if(!C.o(e,I)){var S=new Error("Cannot find module '"+I+"'");throw S.code="MODULE_NOT_FOUND",S}return e[I]}l.keys=function(){return Object.keys(e)},l.resolve=D,ft.exports=l,l.id=6700},9334:()=>{},6825:(ft,Ie,C)=>{"use strict";C.d(Ie,{IO:()=>ce,LC:()=>l,SB:()=>ee,X$:()=>I,ZE:()=>mt,ZN:()=>Re,_j:()=>e,eR:()=>ue,jt:()=>S,k1:()=>Ge,l3:()=>D,oB:()=>Z,pV:()=>te,ru:()=>w,vP:()=>n});class e{}class l{}const D="*";function I(Lt,je){return{type:7,name:Lt,definitions:je,options:{}}}function S(Lt,je=null){return{type:4,styles:je,timings:Lt}}function w(Lt,je=null){return{type:3,steps:Lt,options:je}}function n(Lt,je=null){return{type:2,steps:Lt,options:je}}function Z(Lt){return{type:6,styles:Lt,offset:null}}function ee(Lt,je,Tt){return{type:0,name:Lt,styles:je,options:Tt}}function ue(Lt,je,Tt=null){return{type:1,expr:Lt,animation:je,options:Tt}}function te(Lt=null){return{type:9,options:Lt}}function ce(Lt,je,Tt=null){return{type:11,selector:Lt,animation:je,options:Tt}}class Re{constructor(je=0,Tt=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=je+Tt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(je=>je()),this._onDoneFns=[])}onStart(je){this._originalOnStartFns.push(je),this._onStartFns.push(je)}onDone(je){this._originalOnDoneFns.push(je),this._onDoneFns.push(je)}onDestroy(je){this._onDestroyFns.push(je)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(je=>je()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(je=>je()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(je){this._position=this.totalTime?je*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(je){const Tt="start"==je?this._onStartFns:this._onDoneFns;Tt.forEach(xt=>xt()),Tt.length=0}}class mt{constructor(je){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=je;let Tt=0,xt=0,St=0;const Zt=this.players.length;0==Zt?queueMicrotask(()=>this._onFinish()):this.players.forEach(yt=>{yt.onDone(()=>{++Tt==Zt&&this._onFinish()}),yt.onDestroy(()=>{++xt==Zt&&this._onDestroy()}),yt.onStart(()=>{++St==Zt&&this._onStart()})}),this.totalTime=this.players.reduce((yt,un)=>Math.max(yt,un.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(je=>je()),this._onDoneFns=[])}init(){this.players.forEach(je=>je.init())}onStart(je){this._onStartFns.push(je)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(je=>je()),this._onStartFns=[])}onDone(je){this._onDoneFns.push(je)}onDestroy(je){this._onDestroyFns.push(je)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(je=>je.play())}pause(){this.players.forEach(je=>je.pause())}restart(){this.players.forEach(je=>je.restart())}finish(){this._onFinish(),this.players.forEach(je=>je.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(je=>je.destroy()),this._onDestroyFns.forEach(je=>je()),this._onDestroyFns=[])}reset(){this.players.forEach(je=>je.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(je){const Tt=je*this.totalTime;this.players.forEach(xt=>{const St=xt.totalTime?Math.min(1,Tt/xt.totalTime):1;xt.setPosition(St)})}getPosition(){const je=this.players.reduce((Tt,xt)=>null===Tt||xt.totalTime>Tt.totalTime?xt:Tt,null);return null!=je?je.getPosition():0}beforeDestroy(){this.players.forEach(je=>{je.beforeDestroy&&je.beforeDestroy()})}triggerCallback(je){const Tt="start"==je?this._onStartFns:this._onDoneFns;Tt.forEach(xt=>xt()),Tt.length=0}}const Ge="!"},4300:(ft,Ie,C)=>{"use strict";C.d(Ie,{$s:()=>Jt,Em:()=>ti,Kd:()=>Bt,X6:()=>Ve,Zf:()=>je,iD:()=>Tt,ic:()=>Rn,kH:()=>jn,qV:()=>nn,qm:()=>Jn,rt:()=>qt,s1:()=>Yn,tE:()=>An,yG:()=>ct});var e=C(6814),l=C(5879),D=C(2831),I=C(8645),S=C(7394),w=C(5619),n=C(2096),Z=C(6028),ee=C(9397),re=C(3620),ue=C(2181),se=C(7398),te=C(8180),oe=C(836),ce=C(3997),_e=C(9773),Re=C(2605),mt=C(7131),Ge=C(1088);const Lt=" ";function je(_t,G,U){const ve=xt(_t,G);ve.some(Pe=>Pe.trim()==U.trim())||(ve.push(U.trim()),_t.setAttribute(G,ve.join(Lt)))}function Tt(_t,G,U){const Pe=xt(_t,G).filter(ut=>ut!=U.trim());Pe.length?_t.setAttribute(G,Pe.join(Lt)):_t.removeAttribute(G)}function xt(_t,G){return(_t.getAttribute(G)||"").match(/\S+/g)||[]}const Zt="cdk-describedby-message",yt="cdk-describedby-host";let un=0,Jt=(()=>{class _t{constructor(U,ve){this._platform=ve,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+un++,this._document=U,this._id=(0,l.f3M)(l.AFp)+"-"+un++}describe(U,ve,Pe){if(!this._canBeDescribed(U,ve))return;const ut=tn(ve,Pe);"string"!=typeof ve?(wn(ve,this._id),this._messageRegistry.set(ut,{messageElement:ve,referenceCount:0})):this._messageRegistry.has(ut)||this._createMessageElement(ve,Pe),this._isElementDescribedByMessage(U,ut)||this._addMessageReference(U,ut)}removeDescription(U,ve,Pe){if(!ve||!this._isElementNode(U))return;const ut=tn(ve,Pe);if(this._isElementDescribedByMessage(U,ut)&&this._removeMessageReference(U,ut),"string"==typeof ve){const We=this._messageRegistry.get(ut);We&&0===We.referenceCount&&this._deleteMessageElement(ut)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const U=this._document.querySelectorAll(`[${yt}="${this._id}"]`);for(let ve=0;ve0!=Pe.indexOf(Zt));U.setAttribute("aria-describedby",ve.join(" "))}_addMessageReference(U,ve){const Pe=this._messageRegistry.get(ve);je(U,"aria-describedby",Pe.messageElement.id),U.setAttribute(yt,this._id),Pe.referenceCount++}_removeMessageReference(U,ve){const Pe=this._messageRegistry.get(ve);Pe.referenceCount--,Tt(U,"aria-describedby",Pe.messageElement.id),U.removeAttribute(yt)}_isElementDescribedByMessage(U,ve){const Pe=xt(U,"aria-describedby"),ut=this._messageRegistry.get(ve),We=ut&&ut.messageElement.id;return!!We&&-1!=Pe.indexOf(We)}_canBeDescribed(U,ve){if(!this._isElementNode(U))return!1;if(ve&&"object"==typeof ve)return!0;const Pe=null==ve?"":`${ve}`.trim(),ut=U.getAttribute("aria-label");return!(!Pe||ut&&ut.trim()===Pe)}_isElementNode(U){return U.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(e.K0),l.LFG(D.t4))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function tn(_t,G){return"string"==typeof _t?`${G||""}/${_t}`:_t}function wn(_t,G){_t.id||(_t.id=`${Zt}-${G}-${un++}`)}class Ln{constructor(G){this._items=G,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new I.x,this._typeaheadSubscription=S.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=U=>U.disabled,this._pressedLetters=[],this.tabOut=new I.x,this.change=new I.x,G instanceof l.n_E&&(this._itemChangesSubscription=G.changes.subscribe(U=>{if(this._activeItem){const Pe=U.toArray().indexOf(this._activeItem);Pe>-1&&Pe!==this._activeItemIndex&&(this._activeItemIndex=Pe)}}))}skipPredicate(G){return this._skipPredicateFn=G,this}withWrap(G=!0){return this._wrap=G,this}withVerticalOrientation(G=!0){return this._vertical=G,this}withHorizontalOrientation(G){return this._horizontal=G,this}withAllowedModifierKeys(G){return this._allowedModifierKeys=G,this}withTypeAhead(G=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ee.b)(U=>this._pressedLetters.push(U)),(0,re.b)(G),(0,ue.h)(()=>this._pressedLetters.length>0),(0,se.U)(()=>this._pressedLetters.join(""))).subscribe(U=>{const ve=this._getItemsArray();for(let Pe=1;Pe!G[ut]||this._allowedModifierKeys.indexOf(ut)>-1);switch(U){case Z.Mf:return void this.tabOut.next();case Z.JH:if(this._vertical&&Pe){this.setNextItemActive();break}return;case Z.LH:if(this._vertical&&Pe){this.setPreviousItemActive();break}return;case Z.SV:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Z.oh:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Z.Sd:if(this._homeAndEnd&&Pe){this.setFirstItemActive();break}return;case Z.uR:if(this._homeAndEnd&&Pe){this.setLastItemActive();break}return;case Z.Ku:if(this._pageUpAndDown.enabled&&Pe){const ut=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ut>0?ut:0,1);break}return;case Z.VM:if(this._pageUpAndDown.enabled&&Pe){const ut=this._activeItemIndex+this._pageUpAndDown.delta,We=this._getItemsArray().length;this._setActiveItemByIndex(ut=Z.A&&U<=Z.Z||U>=Z.xE&&U<=Z.aO)&&this._letterKeyStream.next(String.fromCharCode(U))))}this._pressedLetters=[],G.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(G){const U=this._getItemsArray(),ve="number"==typeof G?G:U.indexOf(G);this._activeItem=U[ve]??null,this._activeItemIndex=ve}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(G){this._wrap?this._setActiveInWrapMode(G):this._setActiveInDefaultMode(G)}_setActiveInWrapMode(G){const U=this._getItemsArray();for(let ve=1;ve<=U.length;ve++){const Pe=(this._activeItemIndex+G*ve+U.length)%U.length;if(!this._skipPredicateFn(U[Pe]))return void this.setActiveItem(Pe)}}_setActiveInDefaultMode(G){this._setActiveItemByIndex(this._activeItemIndex+G,G)}_setActiveItemByIndex(G,U){const ve=this._getItemsArray();if(ve[G]){for(;this._skipPredicateFn(ve[G]);)if(!ve[G+=U])return;this.setActiveItem(G)}}_getItemsArray(){return this._items instanceof l.n_E?this._items.toArray():this._items}}class Yn extends Ln{setActiveItem(G){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(G),this.activeItem&&this.activeItem.setActiveStyles()}}class ti extends Ln{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(G){return this._origin=G,this}setActiveItem(G){super.setActiveItem(G),this.activeItem&&this.activeItem.focus(this._origin)}}let Rn=(()=>{class _t{constructor(U){this._platform=U}isDisabled(U){return U.hasAttribute("disabled")}isVisible(U){return function at(_t){return!!(_t.offsetWidth||_t.offsetHeight||"function"==typeof _t.getClientRects&&_t.getClientRects().length)}(U)&&"visible"===getComputedStyle(U).visibility}isTabbable(U){if(!this._platform.isBrowser)return!1;const ve=function dt(_t){try{return _t.frameElement}catch{return null}}(function Nt(_t){return _t.ownerDocument&&_t.ownerDocument.defaultView||window}(U));if(ve&&(-1===Ze(ve)||!this.isVisible(ve)))return!1;let Pe=U.nodeName.toLowerCase(),ut=Ze(U);return U.hasAttribute("contenteditable")?-1!==ut:!("iframe"===Pe||"object"===Pe||this._platform.WEBKIT&&this._platform.IOS&&!function rt(_t){let G=_t.nodeName.toLowerCase(),U="input"===G&&_t.type;return"text"===U||"password"===U||"select"===G||"textarea"===G}(U))&&("audio"===Pe?!!U.hasAttribute("controls")&&-1!==ut:"video"===Pe?-1!==ut&&(null!==ut||this._platform.FIREFOX||U.hasAttribute("controls")):U.tabIndex>=0)}isFocusable(U,ve){return function bt(_t){return!function Ee(_t){return function me(_t){return"input"==_t.nodeName.toLowerCase()}(_t)&&"hidden"==_t.type}(_t)&&(function Be(_t){let G=_t.nodeName.toLowerCase();return"input"===G||"select"===G||"button"===G||"textarea"===G}(_t)||function $e(_t){return function tt(_t){return"a"==_t.nodeName.toLowerCase()}(_t)&&_t.hasAttribute("href")}(_t)||_t.hasAttribute("contenteditable")||he(_t))}(U)&&!this.isDisabled(U)&&(ve?.ignoreVisibility||this.isVisible(U))}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function he(_t){if(!_t.hasAttribute("tabindex")||void 0===_t.tabIndex)return!1;let G=_t.getAttribute("tabindex");return!(!G||isNaN(parseInt(G,10)))}function Ze(_t){if(!he(_t))return null;const G=parseInt(_t.getAttribute("tabindex")||"",10);return isNaN(G)?-1:G}class Qt{get enabled(){return this._enabled}set enabled(G){this._enabled=G,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}constructor(G,U,ve,Pe,ut=!1){this._element=G,this._checker=U,this._ngZone=ve,this._document=Pe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ut||this.attachAnchors()}destroy(){const G=this._startAnchor,U=this._endAnchor;G&&(G.removeEventListener("focus",this.startAnchorListener),G.remove()),U&&(U.removeEventListener("focus",this.endAnchorListener),U.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(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusInitialElement(G)))})}focusFirstTabbableElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusFirstTabbableElement(G)))})}focusLastTabbableElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusLastTabbableElement(G)))})}_getRegionBoundary(G){const U=this._element.querySelectorAll(`[cdk-focus-region-${G}], [cdkFocusRegion${G}], [cdk-focus-${G}]`);return"start"==G?U.length?U[0]:this._getFirstTabbableElement(this._element):U.length?U[U.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(G){const U=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(U){if(!this._checker.isFocusable(U)){const ve=this._getFirstTabbableElement(U);return ve?.focus(G),!!ve}return U.focus(G),!0}return this.focusFirstTabbableElement(G)}focusFirstTabbableElement(G){const U=this._getRegionBoundary("start");return U&&U.focus(G),!!U}focusLastTabbableElement(G){const U=this._getRegionBoundary("end");return U&&U.focus(G),!!U}hasAttached(){return this._hasAttached}_getFirstTabbableElement(G){if(this._checker.isFocusable(G)&&this._checker.isTabbable(G))return G;const U=G.children;for(let ve=0;ve=0;ve--){const Pe=U[ve].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(U[ve]):null;if(Pe)return Pe}return null}_createAnchor(){const G=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,G),G.classList.add("cdk-visually-hidden"),G.classList.add("cdk-focus-trap-anchor"),G.setAttribute("aria-hidden","true"),G}_toggleAnchorTabIndex(G,U){G?U.setAttribute("tabindex","0"):U.removeAttribute("tabindex")}toggleAnchors(G){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}_executeOnStable(G){this._ngZone.isStable?G():this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(G)}}let nn=(()=>{class _t{constructor(U,ve,Pe){this._checker=U,this._ngZone=ve,this._document=Pe}create(U,ve=!1){return new Qt(U,this._checker,this._ngZone,this._document,ve)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(Rn),l.LFG(l.R0b),l.LFG(e.K0))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function Ve(_t){return 0===_t.buttons||0===_t.detail}function ct(_t){const G=_t.touches&&_t.touches[0]||_t.changedTouches&&_t.changedTouches[0];return!(!G||-1!==G.identifier||null!=G.radiusX&&1!==G.radiusX||null!=G.radiusY&&1!==G.radiusY)}const Ct=new l.OlP("cdk-input-modality-detector-options"),Ce={ignoreKeys:[Z.zL,Z.jx,Z.b2,Z.MW,Z.JU]},ae=(0,D.i$)({passive:!0,capture:!0});let Oe=(()=>{class _t{get mostRecentModality(){return this._modality.value}constructor(U,ve,Pe,ut){this._platform=U,this._mostRecentTarget=null,this._modality=new w.X(null),this._lastTouchMs=0,this._onKeydown=We=>{this._options?.ignoreKeys?.some(ze=>ze===We.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,D.sA)(We))},this._onMousedown=We=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ve(We)?"keyboard":"mouse"),this._mostRecentTarget=(0,D.sA)(We))},this._onTouchstart=We=>{ct(We)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,D.sA)(We))},this._options={...Ce,...ut},this.modalityDetected=this._modality.pipe((0,oe.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ce.x)()),U.isBrowser&&ve.runOutsideAngular(()=>{Pe.addEventListener("keydown",this._onKeydown,ae),Pe.addEventListener("mousedown",this._onMousedown,ae),Pe.addEventListener("touchstart",this._onTouchstart,ae)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ae),document.removeEventListener("mousedown",this._onMousedown,ae),document.removeEventListener("touchstart",this._onTouchstart,ae))}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4),l.LFG(l.R0b),l.LFG(e.K0),l.LFG(Ct,8))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();const ot=new l.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Se(){return null}}),Ft=new l.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let lt=0,Bt=(()=>{class _t{constructor(U,ve,Pe,ut){this._ngZone=ve,this._defaultOptions=ut,this._document=Pe,this._liveElement=U||this._createLiveElement()}announce(U,...ve){const Pe=this._defaultOptions;let ut,We;return 1===ve.length&&"number"==typeof ve[0]?We=ve[0]:[ut,We]=ve,this.clear(),clearTimeout(this._previousTimeout),ut||(ut=Pe&&Pe.politeness?Pe.politeness:"polite"),null==We&&Pe&&(We=Pe.duration),this._liveElement.setAttribute("aria-live",ut),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ze=>this._currentResolve=ze)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=U,"number"==typeof We&&(this._previousTimeout=setTimeout(()=>this.clear(),We)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const U="cdk-live-announcer-element",ve=this._document.getElementsByClassName(U),Pe=this._document.createElement("div");for(let ut=0;ut .cdk-overlay-container [aria-modal="true"]');for(let Pe=0;Pe{class _t{constructor(U,ve,Pe,ut,We){this._ngZone=U,this._platform=ve,this._inputModalityDetector=Pe,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 I.x,this._rootNodeFocusAndBlurListener=ze=>{for(let Te=(0,D.sA)(ze);Te;Te=Te.parentElement)"focus"===ze.type?this._onFocus(ze,Te):this._onBlur(ze,Te)},this._document=ut,this._detectionMode=We?.detectionMode||0}monitor(U,ve=!1){const Pe=(0,Re.fI)(U);if(!this._platform.isBrowser||1!==Pe.nodeType)return(0,n.of)();const ut=(0,D.kV)(Pe)||this._getDocument(),We=this._elementInfo.get(Pe);if(We)return ve&&(We.checkChildren=!0),We.subject;const ze={checkChildren:ve,subject:new I.x,rootNode:ut};return this._elementInfo.set(Pe,ze),this._registerGlobalListeners(ze),ze.subject}stopMonitoring(U){const ve=(0,Re.fI)(U),Pe=this._elementInfo.get(ve);Pe&&(Pe.subject.complete(),this._setClasses(ve),this._elementInfo.delete(ve),this._removeGlobalListeners(Pe))}focusVia(U,ve,Pe){const ut=(0,Re.fI)(U);ut===this._getDocument().activeElement?this._getClosestElementsInfo(ut).forEach(([ze,be])=>this._originChanged(ze,ve,be)):(this._setOrigin(ve),"function"==typeof ut.focus&&ut.focus(Pe))}ngOnDestroy(){this._elementInfo.forEach((U,ve)=>this.stopMonitoring(ve))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(U){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(U)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:U&&this._isLastInteractionFromInputLabel(U)?"mouse":"program"}_shouldBeAttributedToTouch(U){return 1===this._detectionMode||!!U?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(U,ve){U.classList.toggle("cdk-focused",!!ve),U.classList.toggle("cdk-touch-focused","touch"===ve),U.classList.toggle("cdk-keyboard-focused","keyboard"===ve),U.classList.toggle("cdk-mouse-focused","mouse"===ve),U.classList.toggle("cdk-program-focused","program"===ve)}_setOrigin(U,ve=!1){this._ngZone.runOutsideAngular(()=>{this._origin=U,this._originFromTouchInteraction="touch"===U&&ve,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(U,ve){const Pe=this._elementInfo.get(ve),ut=(0,D.sA)(U);!Pe||!Pe.checkChildren&&ve!==ut||this._originChanged(ve,this._getFocusOrigin(ut),Pe)}_onBlur(U,ve){const Pe=this._elementInfo.get(ve);!Pe||Pe.checkChildren&&U.relatedTarget instanceof Node&&ve.contains(U.relatedTarget)||(this._setClasses(ve),this._emitOrigin(Pe,null))}_emitOrigin(U,ve){U.subject.observers.length&&this._ngZone.run(()=>U.subject.next(ve))}_registerGlobalListeners(U){if(!this._platform.isBrowser)return;const ve=U.rootNode,Pe=this._rootNodeFocusListenerCount.get(ve)||0;Pe||this._ngZone.runOutsideAngular(()=>{ve.addEventListener("focus",this._rootNodeFocusAndBlurListener,gn),ve.addEventListener("blur",this._rootNodeFocusAndBlurListener,gn)}),this._rootNodeFocusListenerCount.set(ve,Pe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_e.R)(this._stopInputModalityDetector)).subscribe(ut=>{this._setOrigin(ut,!0)}))}_removeGlobalListeners(U){const ve=U.rootNode;if(this._rootNodeFocusListenerCount.has(ve)){const Pe=this._rootNodeFocusListenerCount.get(ve);Pe>1?this._rootNodeFocusListenerCount.set(ve,Pe-1):(ve.removeEventListener("focus",this._rootNodeFocusAndBlurListener,gn),ve.removeEventListener("blur",this._rootNodeFocusAndBlurListener,gn),this._rootNodeFocusListenerCount.delete(ve))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(U,ve,Pe){this._setClasses(U,ve),this._emitOrigin(Pe,ve),this._lastFocusOrigin=ve}_getClosestElementsInfo(U){const ve=[];return this._elementInfo.forEach((Pe,ut)=>{(ut===U||Pe.checkChildren&&ut.contains(U))&&ve.push([ut,Pe])}),ve}_isLastInteractionFromInputLabel(U){const{_mostRecentTarget:ve,mostRecentModality:Pe}=this._inputModalityDetector;if("mouse"!==Pe||!ve||ve===U||"INPUT"!==U.nodeName&&"TEXTAREA"!==U.nodeName||U.disabled)return!1;const ut=U.labels;if(ut)for(let We=0;We{class _t{constructor(U,ve){this._elementRef=U,this._focusMonitor=ve,this._focusOrigin=null,this.cdkFocusChange=new l.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const U=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(U,1===U.nodeType&&U.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ve=>{this._focusOrigin=ve,this.cdkFocusChange.emit(ve)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.Y36(l.SBq),l.Y36(An))};static#t=this.\u0275dir=l.lG2({type:_t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return _t})();const ai="cdk-high-contrast-black-on-white",di="cdk-high-contrast-white-on-black",oi="cdk-high-contrast-active";let Jn=(()=>{class _t{constructor(U,ve){this._platform=U,this._document=ve,this._breakpointSubscription=(0,l.f3M)(Ge.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const U=this._document.createElement("div");U.style.backgroundColor="rgb(1,2,3)",U.style.position="absolute",this._document.body.appendChild(U);const ve=this._document.defaultView||window,Pe=ve&&ve.getComputedStyle?ve.getComputedStyle(U):null,ut=(Pe&&Pe.backgroundColor||"").replace(/ /g,"");switch(U.remove(),ut){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const U=this._document.body.classList;U.remove(oi,ai,di),this._hasCheckedHighContrastMode=!0;const ve=this.getHighContrastMode();1===ve?U.add(oi,ai):2===ve&&U.add(oi,di)}}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4),l.LFG(e.K0))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),qt=(()=>{class _t{constructor(U){U._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(Jn))};static#t=this.\u0275mod=l.oAB({type:_t});static#n=this.\u0275inj=l.cJS({imports:[mt.Q8]})}return _t})()},9388:(ft,Ie,C)=>{"use strict";C.d(Ie,{Is:()=>n,Lv:()=>Z,vT:()=>ee});var e=C(5879),l=C(6814);const D=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function I(){return(0,e.f3M)(l.K0)}}),S=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function w(re){const ue=re?.toLowerCase()||"";return"auto"===ue&&typeof navigator<"u"&&navigator?.language?S.test(navigator.language)?"rtl":"ltr":"rtl"===ue?"rtl":"ltr"}let n=(()=>{class re{constructor(se){this.value="ltr",this.change=new e.vpe,se&&(this.value=w((se.body?se.body.dir:null)||(se.documentElement?se.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(te){return new(te||re)(e.LFG(D,8))};static#t=this.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),Z=(()=>{class re{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new e.vpe}get dir(){return this._dir}set dir(se){const te=this._dir;this._dir=w(se),this._rawDir=se,te!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275dir=e.lG2({type:re,selectors:[["","dir",""]],hostVars:1,hostBindings:function(te,oe){2&te&&e.uIk("dir",oe._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[e._Bn([{provide:n,useExisting:re}])]})}return re})(),ee=(()=>{class re{static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275mod=e.oAB({type:re});static#n=this.\u0275inj=e.cJS({})}return re})()},2605:(ft,Ie,C)=>{"use strict";C.d(Ie,{Eq:()=>S,HM:()=>w,Ig:()=>l,du:()=>Z,fI:()=>n,su:()=>D});var e=C(5879);function l(ee){return null!=ee&&"false"!=`${ee}`}function D(ee,re=0){return function I(ee){return!isNaN(parseFloat(ee))&&!isNaN(Number(ee))}(ee)?Number(ee):re}function S(ee){return Array.isArray(ee)?ee:[ee]}function w(ee){return null==ee?"":"string"==typeof ee?ee:`${ee}px`}function n(ee){return ee instanceof e.SBq?ee.nativeElement:ee}function Z(ee,re=/\s+/){const ue=[];if(null!=ee){const se=Array.isArray(ee)?ee:`${ee}`.split(re);for(const te of se){const oe=`${te}`.trim();oe&&ue.push(oe)}}return ue}},8337:(ft,Ie,C)=>{"use strict";C.d(Ie,{A8:()=>re,Ov:()=>Z});var e=C(8645),l=C(5879);class Z{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(te=!1,oe,ce=!0,_e){this._multiple=te,this._emitChanges=ce,this.compareWith=_e,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,oe&&oe.length&&(te?oe.forEach(Re=>this._markSelected(Re)):this._markSelected(oe[0]),this._selectedToEmit.length=0)}select(...te){this._verifyValueAssignment(te),te.forEach(ce=>this._markSelected(ce));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}deselect(...te){this._verifyValueAssignment(te),te.forEach(ce=>this._unmarkSelected(ce));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}setSelection(...te){this._verifyValueAssignment(te);const oe=this.selected,ce=new Set(te);te.forEach(Re=>this._markSelected(Re)),oe.filter(Re=>!ce.has(Re)).forEach(Re=>this._unmarkSelected(Re));const _e=this._hasQueuedChanges();return this._emitChangeEvent(),_e}toggle(te){return this.isSelected(te)?this.deselect(te):this.select(te)}clear(te=!0){this._unmarkAll();const oe=this._hasQueuedChanges();return te&&this._emitChangeEvent(),oe}isSelected(te){return this._selection.has(this._getConcreteValue(te))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(te){this._multiple&&this.selected&&this._selected.sort(te)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(te){te=this._getConcreteValue(te),this.isSelected(te)||(this._multiple||this._unmarkAll(),this.isSelected(te)||this._selection.add(te),this._emitChanges&&this._selectedToEmit.push(te))}_unmarkSelected(te){te=this._getConcreteValue(te),this.isSelected(te)&&(this._selection.delete(te),this._emitChanges&&this._deselectedToEmit.push(te))}_unmarkAll(){this.isEmpty()||this._selection.forEach(te=>this._unmarkSelected(te))}_verifyValueAssignment(te){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(te){if(this.compareWith){for(let oe of this._selection)if(this.compareWith(te,oe))return oe;return te}return te}}let re=(()=>{class se{constructor(){this._listeners=[]}notify(oe,ce){for(let _e of this._listeners)_e(oe,ce)}listen(oe){return this._listeners.push(oe),()=>{this._listeners=this._listeners.filter(ce=>oe!==ce)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275prov=l.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"})}return se})()},6028:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>Ee,JH:()=>Lt,JU:()=>w,K5:()=>S,Ku:()=>te,LH:()=>mt,L_:()=>se,MW:()=>Ft,Mf:()=>D,OC:()=>Bi,SV:()=>Ge,Sd:()=>_e,VM:()=>oe,Vb:()=>uo,Z:()=>Se,ZH:()=>l,aO:()=>gi,b2:()=>Fr,hY:()=>ue,jx:()=>n,oh:()=>Re,uR:()=>ce,xE:()=>Zt,yY:()=>St,zL:()=>Z});const l=8,D=9,S=13,w=16,n=17,Z=18,ue=27,se=32,te=33,oe=34,ce=35,_e=36,Re=37,mt=38,Ge=39,Lt=40,St=46,Zt=48,gi=57,Ee=65,Se=90,Ft=91,Bi=188,Fr=224;function uo(ho,...to){return to.length?to.some(yr=>ho[yr]):ho.altKey||ho.shiftKey||ho.ctrlKey||ho.metaKey}},1088:(ft,Ie,C)=>{"use strict";C.d(Ie,{Yg:()=>Lt,u3:()=>Tt});var e=C(5879),l=C(2605),D=C(8645),I=C(2572),S=C(5211),w=C(5592),n=C(8180),Z=C(836),ee=C(3620),re=C(7398),ue=C(7921),se=C(9773),te=C(2831);const ce=new Set;let _e,Re=(()=>{class xt{constructor(Zt,yt){this._platform=Zt,this._nonce=yt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ge}matchMedia(Zt){return(this._platform.WEBKIT||this._platform.BLINK)&&function mt(xt,St){if(!ce.has(xt))try{_e||(_e=document.createElement("style"),St&&(_e.nonce=St),_e.setAttribute("type","text/css"),document.head.appendChild(_e)),_e.sheet&&(_e.sheet.insertRule(`@media ${xt} {body{ }}`,0),ce.add(xt))}catch(Zt){console.error(Zt)}}(Zt,this._nonce),this._matchMedia(Zt)}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.LFG(te.t4),e.LFG(e.Ojb,8))};static#t=this.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"})}return xt})();function Ge(xt){return{matches:"all"===xt||""===xt,media:xt,addListener:()=>{},removeListener:()=>{}}}let Lt=(()=>{class xt{constructor(Zt,yt){this._mediaMatcher=Zt,this._zone=yt,this._queries=new Map,this._destroySubject=new D.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Zt){return je((0,l.Eq)(Zt)).some(un=>this._registerQuery(un).mql.matches)}observe(Zt){const un=je((0,l.Eq)(Zt)).map(tn=>this._registerQuery(tn).observable);let Jt=(0,I.a)(un);return Jt=(0,S.z)(Jt.pipe((0,n.q)(1)),Jt.pipe((0,Z.T)(1),(0,ee.b)(0))),Jt.pipe((0,re.U)(tn=>{const wn={matches:!1,breakpoints:{}};return tn.forEach(({matches:Ln,query:Yn})=>{wn.matches=wn.matches||Ln,wn.breakpoints[Yn]=Ln}),wn}))}_registerQuery(Zt){if(this._queries.has(Zt))return this._queries.get(Zt);const yt=this._mediaMatcher.matchMedia(Zt),Jt={observable:new w.y(tn=>{const wn=Ln=>this._zone.run(()=>tn.next(Ln));return yt.addListener(wn),()=>{yt.removeListener(wn)}}).pipe((0,ue.O)(yt),(0,re.U)(({matches:tn})=>({query:Zt,matches:tn})),(0,se.R)(this._destroySubject)),mql:yt};return this._queries.set(Zt,Jt),Jt}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.LFG(Re),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"})}return xt})();function je(xt){return xt.map(St=>St.split(",")).reduce((St,Zt)=>St.concat(Zt)).map(St=>St.trim())}const Tt={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)"}},7131:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q8:()=>ee,wD:()=>Z});var e=C(2605),l=C(5879),D=C(5592),I=C(8645),S=C(3620);let w=(()=>{class re{create(se){return typeof MutationObserver>"u"?null:new MutationObserver(se)}static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275prov=l.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),n=(()=>{class re{constructor(se){this._mutationObserverFactory=se,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((se,te)=>this._cleanupObserver(te))}observe(se){const te=(0,e.fI)(se);return new D.y(oe=>{const _e=this._observeElement(te).subscribe(oe);return()=>{_e.unsubscribe(),this._unobserveElement(te)}})}_observeElement(se){if(this._observedElements.has(se))this._observedElements.get(se).count++;else{const te=new I.x,oe=this._mutationObserverFactory.create(ce=>te.next(ce));oe&&oe.observe(se,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(se,{observer:oe,stream:te,count:1})}return this._observedElements.get(se).stream}_unobserveElement(se){this._observedElements.has(se)&&(this._observedElements.get(se).count--,this._observedElements.get(se).count||this._cleanupObserver(se))}_cleanupObserver(se){if(this._observedElements.has(se)){const{observer:te,stream:oe}=this._observedElements.get(se);te&&te.disconnect(),oe.complete(),this._observedElements.delete(se)}}static#e=this.\u0275fac=function(te){return new(te||re)(l.LFG(w))};static#t=this.\u0275prov=l.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),Z=(()=>{class re{get disabled(){return this._disabled}set disabled(se){this._disabled=(0,e.Ig)(se),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(se){this._debounce=(0,e.su)(se),this._subscribe()}constructor(se,te,oe){this._contentObserver=se,this._elementRef=te,this._ngZone=oe,this.event=new l.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const se=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?se.pipe((0,S.b)(this.debounce)):se).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(te){return new(te||re)(l.Y36(n),l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275dir=l.lG2({type:re,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return re})(),ee=(()=>{class re{static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275mod=l.oAB({type:re});static#n=this.\u0275inj=l.cJS({providers:[w]})}return re})()},3651:(ft,Ie,C)=>{"use strict";C.d(Ie,{pI:()=>ei,xu:()=>vn,aV:()=>Dn,X_:()=>un,Xj:()=>dt,U8:()=>ct,Iu:()=>at});var e=C(6672),l=C(6814),D=C(5879),I=C(2605),S=C(2831),w=C(2181),n=C(8180),Z=C(9773),ee=C(9360),re=C(8251),se=C(9388),te=C(8484),oe=C(8645),ce=C(7394),_e=C(3019),Re=C(6028);const mt=(0,S.Mq)();class Ge{constructor(J,ae){this._viewportRuler=J,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ae}attach(){}enable(){if(this._canBeEnabled()){const J=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=J.style.left||"",this._previousHTMLStyles.top=J.style.top||"",J.style.left=(0,I.HM)(-this._previousScrollPosition.left),J.style.top=(0,I.HM)(-this._previousScrollPosition.top),J.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const J=this._document.documentElement,Oe=J.style,ot=this._document.body.style,Se=Oe.scrollBehavior||"",Ft=ot.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,J.classList.remove("cdk-global-scrollblock"),mt&&(Oe.scrollBehavior=ot.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),mt&&(Oe.scrollBehavior=Se,ot.scrollBehavior=Ft)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ae=this._document.body,Oe=this._viewportRuler.getViewportSize();return ae.scrollHeight>Oe.height||ae.scrollWidth>Oe.width}}class je{constructor(J,ae,Oe,ot){this._scrollDispatcher=J,this._ngZone=ae,this._viewportRuler=Oe,this._config=ot,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(J){this._overlayRef=J}enable(){if(this._scrollSubscription)return;const J=this._scrollDispatcher.scrolled(0).pipe((0,w.h)(ae=>!ae||!this._overlayRef.overlayElement.contains(ae.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=J.subscribe(()=>{const ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ae-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=J.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Tt{enable(){}disable(){}attach(){}}function xt(Ce,J){return J.some(ae=>Ce.bottomae.bottom||Ce.rightae.right)}function St(Ce,J){return J.some(ae=>Ce.topae.bottom||Ce.leftae.right)}class Zt{constructor(J,ae,Oe,ot){this._scrollDispatcher=J,this._viewportRuler=ae,this._ngZone=Oe,this._config=ot,this._scrollSubscription=null}attach(J){this._overlayRef=J}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 ae=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Oe,height:ot}=this._viewportRuler.getViewportSize();xt(ae,[{width:Oe,height:ot,bottom:ot,right:Oe,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 yt=(()=>{class Ce{constructor(ae,Oe,ot,Se){this._scrollDispatcher=ae,this._viewportRuler=Oe,this._ngZone=ot,this.noop=()=>new Tt,this.close=Ft=>new je(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ft),this.block=()=>new Ge(this._viewportRuler,this._document),this.reposition=Ft=>new Zt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ft),this._document=Se}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(e.mF),D.LFG(e.rL),D.LFG(D.R0b),D.LFG(l.K0))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();class un{constructor(J){if(this.scrollStrategy=new Tt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,J){const ae=Object.keys(J);for(const Oe of ae)void 0!==J[Oe]&&(this[Oe]=J[Oe])}}}class wn{constructor(J,ae){this.connectionPair=J,this.scrollableViewProperties=ae}}let ti=(()=>{class Ce{constructor(ae){this._attachedOverlays=[],this._document=ae}ngOnDestroy(){this.detach()}add(ae){this.remove(ae),this._attachedOverlays.push(ae)}remove(ae){const Oe=this._attachedOverlays.indexOf(ae);Oe>-1&&this._attachedOverlays.splice(Oe,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),gi=(()=>{class Ce extends ti{constructor(ae,Oe){super(ae),this._ngZone=Oe,this._keydownListener=ot=>{const Se=this._attachedOverlays;for(let Ft=Se.length-1;Ft>-1;Ft--)if(Se[Ft]._keydownEvents.observers.length>0){const lt=Se[Ft]._keydownEvents;this._ngZone?this._ngZone.run(()=>lt.next(ot)):lt.next(ot);break}}}add(ae){super.add(ae),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0),D.LFG(D.R0b,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),Rn=(()=>{class Ce extends ti{constructor(ae,Oe,ot){super(ae),this._platform=Oe,this._ngZone=ot,this._cursorStyleIsSet=!1,this._pointerDownListener=Se=>{this._pointerDownEventTarget=(0,S.sA)(Se)},this._clickListener=Se=>{const Ft=(0,S.sA)(Se),lt="click"===Se.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ft;this._pointerDownEventTarget=null;const Bt=this._attachedOverlays.slice();for(let Ut=Bt.length-1;Ut>-1;Ut--){const fn=Bt[Ut];if(fn._outsidePointerEvents.observers.length<1||!fn.hasAttached())continue;if(fn.overlayElement.contains(Ft)||fn.overlayElement.contains(lt))break;const gn=fn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>gn.next(Se)):gn.next(Se)}}}add(ae){if(super.add(ae),!this._isAttached){const Oe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Oe)):this._addEventListeners(Oe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Oe.style.cursor,Oe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ae=this._document.body;ae.removeEventListener("pointerdown",this._pointerDownListener,!0),ae.removeEventListener("click",this._clickListener,!0),ae.removeEventListener("auxclick",this._clickListener,!0),ae.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ae.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ae){ae.addEventListener("pointerdown",this._pointerDownListener,!0),ae.addEventListener("click",this._clickListener,!0),ae.addEventListener("auxclick",this._clickListener,!0),ae.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0),D.LFG(S.t4),D.LFG(D.R0b,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),dt=(()=>{class Ce{constructor(ae,Oe){this._platform=Oe,this._document=ae}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ae="cdk-overlay-container";if(this._platform.isBrowser||(0,S.Oy)()){const ot=this._document.querySelectorAll(`.${ae}[platform="server"], .${ae}[platform="test"]`);for(let Se=0;Sethis._backdropClick.next(gn),this._backdropTransitionendHandler=gn=>{this._disposeBackdrop(gn.target)},this._keydownEvents=new oe.x,this._outsidePointerEvents=new oe.x,ot.scrollStrategy&&(this._scrollStrategy=ot.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ot.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(J){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ae=this._portalOutlet.attach(J);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,n.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),"function"==typeof ae?.onDestroy&&ae.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ae}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const J=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),J}dispose(){const J=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,J&&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(J){J!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=J,this.hasAttached()&&(J.attach(this),this.updatePosition()))}updateSize(J){this._config={...this._config,...J},this._updateElementSize()}setDirection(J){this._config={...this._config,direction:J},this._updateElementDirection()}addPanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!0)}removePanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!1)}getDirection(){const J=this._config.direction;return J?"string"==typeof J?J:J.value:"ltr"}updateScrollStrategy(J){J!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=J,this.hasAttached()&&(J.attach(this),J.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const J=this._pane.style;J.width=(0,I.HM)(this._config.width),J.height=(0,I.HM)(this._config.height),J.minWidth=(0,I.HM)(this._config.minWidth),J.minHeight=(0,I.HM)(this._config.minHeight),J.maxWidth=(0,I.HM)(this._config.maxWidth),J.maxHeight=(0,I.HM)(this._config.maxHeight)}_togglePointerEvents(J){this._pane.style.pointerEvents=J?"":"none"}_attachBackdrop(){const J="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(J)})}):this._backdropElement.classList.add(J)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const J=this._backdropElement;if(J){if(this._animationsDisabled)return void this._disposeBackdrop(J);J.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{J.addEventListener("transitionend",this._backdropTransitionendHandler)}),J.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(J)},500))}}_toggleClasses(J,ae,Oe){const ot=(0,I.Eq)(ae||[]).filter(Se=>!!Se);ot.length&&(Oe?J.classList.add(...ot):J.classList.remove(...ot))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const J=this._ngZone.onStable.pipe((0,Z.R)((0,_e.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()),J.unsubscribe())})})}_disposeScrollStrategy(){const J=this._scrollStrategy;J&&(J.disable(),J.detach&&J.detach())}_disposeBackdrop(J){J&&(J.removeEventListener("click",this._backdropClickHandler),J.removeEventListener("transitionend",this._backdropTransitionendHandler),J.remove(),this._backdropElement===J&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Be="cdk-overlay-connected-position-bounding-box",Ee=/([A-Za-z%]+)$/;class $e{get positions(){return this._preferredPositions}constructor(J,ae,Oe,ot,Se){this._viewportRuler=ae,this._document=Oe,this._platform=ot,this._overlayContainer=Se,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new oe.x,this._resizeSubscription=ce.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(J)}attach(J){this._validatePositions(),J.hostElement.classList.add(Be),this._overlayRef=J,this._boundingBox=J.hostElement,this._pane=J.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{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 J=this._originRect,ae=this._overlayRect,Oe=this._viewportRect,ot=this._containerRect,Se=[];let Ft;for(let lt of this._preferredPositions){let Bt=this._getOriginPoint(J,ot,lt),Ut=this._getOverlayPoint(Bt,ae,lt),fn=this._getOverlayFit(Ut,ae,Oe,lt);if(fn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(lt,Bt);this._canFitWithFlexibleDimensions(fn,Ut,Oe)?Se.push({position:lt,origin:Bt,overlayRect:ae,boundingBoxRect:this._calculateBoundingBoxRect(Bt,lt)}):(!Ft||Ft.overlayFit.visibleAreaBt&&(Bt=fn,lt=Ut)}return this._isPushed=!1,void this._applyPosition(lt.position,lt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ft.position,Ft.originPoint);this._applyPosition(Ft.position,Ft.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&me(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const J=this._lastPosition;if(J){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ae=this._getOriginPoint(this._originRect,this._containerRect,J);this._applyPosition(J,ae)}else this.apply()}withScrollableContainers(J){return this._scrollables=J,this}withPositions(J){return this._preferredPositions=J,-1===J.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(J){return this._viewportMargin=J,this}withFlexibleDimensions(J=!0){return this._hasFlexibleDimensions=J,this}withGrowAfterOpen(J=!0){return this._growAfterOpen=J,this}withPush(J=!0){return this._canPush=J,this}withLockedPosition(J=!0){return this._positionLocked=J,this}setOrigin(J){return this._origin=J,this}withDefaultOffsetX(J){return this._offsetX=J,this}withDefaultOffsetY(J){return this._offsetY=J,this}withTransformOriginOn(J){return this._transformOriginSelector=J,this}_getOriginPoint(J,ae,Oe){let ot,Se;if("center"==Oe.originX)ot=J.left+J.width/2;else{const Ft=this._isRtl()?J.right:J.left,lt=this._isRtl()?J.left:J.right;ot="start"==Oe.originX?Ft:lt}return ae.left<0&&(ot-=ae.left),Se="center"==Oe.originY?J.top+J.height/2:"top"==Oe.originY?J.top:J.bottom,ae.top<0&&(Se-=ae.top),{x:ot,y:Se}}_getOverlayPoint(J,ae,Oe){let ot,Se;return ot="center"==Oe.overlayX?-ae.width/2:"start"===Oe.overlayX?this._isRtl()?-ae.width:0:this._isRtl()?0:-ae.width,Se="center"==Oe.overlayY?-ae.height/2:"top"==Oe.overlayY?0:-ae.height,{x:J.x+ot,y:J.y+Se}}_getOverlayFit(J,ae,Oe,ot){const Se=he(ae);let{x:Ft,y:lt}=J,Bt=this._getOffset(ot,"x"),Ut=this._getOffset(ot,"y");Bt&&(Ft+=Bt),Ut&&(lt+=Ut);let An=0-lt,jn=lt+Se.height-Oe.height,ai=this._subtractOverflows(Se.width,0-Ft,Ft+Se.width-Oe.width),di=this._subtractOverflows(Se.height,An,jn),oi=ai*di;return{visibleArea:oi,isCompletelyWithinViewport:Se.width*Se.height===oi,fitsInViewportVertically:di===Se.height,fitsInViewportHorizontally:ai==Se.width}}_canFitWithFlexibleDimensions(J,ae,Oe){if(this._hasFlexibleDimensions){const ot=Oe.bottom-ae.y,Se=Oe.right-ae.x,Ft=tt(this._overlayRef.getConfig().minHeight),lt=tt(this._overlayRef.getConfig().minWidth);return(J.fitsInViewportVertically||null!=Ft&&Ft<=ot)&&(J.fitsInViewportHorizontally||null!=lt&<<=Se)}return!1}_pushOverlayOnScreen(J,ae,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:J.x+this._previousPushAmount.x,y:J.y+this._previousPushAmount.y};const ot=he(ae),Se=this._viewportRect,Ft=Math.max(J.x+ot.width-Se.width,0),lt=Math.max(J.y+ot.height-Se.height,0),Bt=Math.max(Se.top-Oe.top-J.y,0),Ut=Math.max(Se.left-Oe.left-J.x,0);let fn=0,gn=0;return fn=ot.width<=Se.width?Ut||-Ft:J.xai&&!this._isInitialRender&&!this._growAfterOpen&&(Ft=J.y-ai/2)}if("end"===ae.overlayX&&!ot||"start"===ae.overlayX&&ot)An=Oe.width-J.x+this._viewportMargin,fn=J.x-this._viewportMargin;else if("start"===ae.overlayX&&!ot||"end"===ae.overlayX&&ot)gn=J.x,fn=Oe.right-J.x;else{const jn=Math.min(Oe.right-J.x+Oe.left,J.x),ai=this._lastBoundingBoxSize.width;fn=2*jn,gn=J.x-jn,fn>ai&&!this._isInitialRender&&!this._growAfterOpen&&(gn=J.x-ai/2)}return{top:Ft,left:gn,bottom:lt,right:An,width:fn,height:Se}}_setBoundingBoxStyles(J,ae){const Oe=this._calculateBoundingBoxRect(J,ae);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const ot={};if(this._hasExactPosition())ot.top=ot.left="0",ot.bottom=ot.right=ot.maxHeight=ot.maxWidth="",ot.width=ot.height="100%";else{const Se=this._overlayRef.getConfig().maxHeight,Ft=this._overlayRef.getConfig().maxWidth;ot.height=(0,I.HM)(Oe.height),ot.top=(0,I.HM)(Oe.top),ot.bottom=(0,I.HM)(Oe.bottom),ot.width=(0,I.HM)(Oe.width),ot.left=(0,I.HM)(Oe.left),ot.right=(0,I.HM)(Oe.right),ot.alignItems="center"===ae.overlayX?"center":"end"===ae.overlayX?"flex-end":"flex-start",ot.justifyContent="center"===ae.overlayY?"center":"bottom"===ae.overlayY?"flex-end":"flex-start",Se&&(ot.maxHeight=(0,I.HM)(Se)),Ft&&(ot.maxWidth=(0,I.HM)(Ft))}this._lastBoundingBoxSize=Oe,me(this._boundingBox.style,ot)}_resetBoundingBoxStyles(){me(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){me(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(J,ae){const Oe={},ot=this._hasExactPosition(),Se=this._hasFlexibleDimensions,Ft=this._overlayRef.getConfig();if(ot){const fn=this._viewportRuler.getViewportScrollPosition();me(Oe,this._getExactOverlayY(ae,J,fn)),me(Oe,this._getExactOverlayX(ae,J,fn))}else Oe.position="static";let lt="",Bt=this._getOffset(ae,"x"),Ut=this._getOffset(ae,"y");Bt&&(lt+=`translateX(${Bt}px) `),Ut&&(lt+=`translateY(${Ut}px)`),Oe.transform=lt.trim(),Ft.maxHeight&&(ot?Oe.maxHeight=(0,I.HM)(Ft.maxHeight):Se&&(Oe.maxHeight="")),Ft.maxWidth&&(ot?Oe.maxWidth=(0,I.HM)(Ft.maxWidth):Se&&(Oe.maxWidth="")),me(this._pane.style,Oe)}_getExactOverlayY(J,ae,Oe){let ot={top:"",bottom:""},Se=this._getOverlayPoint(ae,this._overlayRect,J);return this._isPushed&&(Se=this._pushOverlayOnScreen(Se,this._overlayRect,Oe)),"bottom"===J.overlayY?ot.bottom=this._document.documentElement.clientHeight-(Se.y+this._overlayRect.height)+"px":ot.top=(0,I.HM)(Se.y),ot}_getExactOverlayX(J,ae,Oe){let Ft,ot={left:"",right:""},Se=this._getOverlayPoint(ae,this._overlayRect,J);return this._isPushed&&(Se=this._pushOverlayOnScreen(Se,this._overlayRect,Oe)),Ft=this._isRtl()?"end"===J.overlayX?"left":"right":"end"===J.overlayX?"right":"left","right"===Ft?ot.right=this._document.documentElement.clientWidth-(Se.x+this._overlayRect.width)+"px":ot.left=(0,I.HM)(Se.x),ot}_getScrollVisibility(){const J=this._getOriginRect(),ae=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(ot=>ot.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:St(J,Oe),isOriginOutsideView:xt(J,Oe),isOverlayClipped:St(ae,Oe),isOverlayOutsideView:xt(ae,Oe)}}_subtractOverflows(J,...ae){return ae.reduce((Oe,ot)=>Oe-Math.max(ot,0),J)}_getNarrowedViewportRect(){const J=this._document.documentElement.clientWidth,ae=this._document.documentElement.clientHeight,Oe=this._viewportRuler.getViewportScrollPosition();return{top:Oe.top+this._viewportMargin,left:Oe.left+this._viewportMargin,right:Oe.left+J-this._viewportMargin,bottom:Oe.top+ae-this._viewportMargin,width:J-2*this._viewportMargin,height:ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(J,ae){return"x"===ae?null==J.offsetX?this._offsetX:J.offsetX:null==J.offsetY?this._offsetY:J.offsetY}_validatePositions(){}_addPanelClasses(J){this._pane&&(0,I.Eq)(J).forEach(ae=>{""!==ae&&-1===this._appliedPanelClasses.indexOf(ae)&&(this._appliedPanelClasses.push(ae),this._pane.classList.add(ae))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(J=>{this._pane.classList.remove(J)}),this._appliedPanelClasses=[])}_getOriginRect(){const J=this._origin;if(J instanceof D.SBq)return J.nativeElement.getBoundingClientRect();if(J instanceof Element)return J.getBoundingClientRect();const ae=J.width||0,Oe=J.height||0;return{top:J.y,bottom:J.y+Oe,left:J.x,right:J.x+ae,height:Oe,width:ae}}}function me(Ce,J){for(let ae in J)J.hasOwnProperty(ae)&&(Ce[ae]=J[ae]);return Ce}function tt(Ce){if("number"!=typeof Ce&&null!=Ce){const[J,ae]=Ce.split(Ee);return ae&&"px"!==ae?null:parseFloat(J)}return Ce||null}function he(Ce){return{top:Math.floor(Ce.top),right:Math.floor(Ce.right),bottom:Math.floor(Ce.bottom),left:Math.floor(Ce.left),width:Math.floor(Ce.width),height:Math.floor(Ce.height)}}const bt="cdk-global-overlay-wrapper";class Nt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(J){const ae=J.getConfig();this._overlayRef=J,this._width&&!ae.width&&J.updateSize({width:this._width}),this._height&&!ae.height&&J.updateSize({height:this._height}),J.hostElement.classList.add(bt),this._isDisposed=!1}top(J=""){return this._bottomOffset="",this._topOffset=J,this._alignItems="flex-start",this}left(J=""){return this._xOffset=J,this._xPosition="left",this}bottom(J=""){return this._topOffset="",this._bottomOffset=J,this._alignItems="flex-end",this}right(J=""){return this._xOffset=J,this._xPosition="right",this}start(J=""){return this._xOffset=J,this._xPosition="start",this}end(J=""){return this._xOffset=J,this._xPosition="end",this}width(J=""){return this._overlayRef?this._overlayRef.updateSize({width:J}):this._width=J,this}height(J=""){return this._overlayRef?this._overlayRef.updateSize({height:J}):this._height=J,this}centerHorizontally(J=""){return this.left(J),this._xPosition="center",this}centerVertically(J=""){return this.top(J),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const J=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:ot,height:Se,maxWidth:Ft,maxHeight:lt}=Oe,Bt=!("100%"!==ot&&"100vw"!==ot||Ft&&"100%"!==Ft&&"100vw"!==Ft),Ut=!("100%"!==Se&&"100vh"!==Se||lt&&"100%"!==lt&&"100vh"!==lt),fn=this._xPosition,gn=this._xOffset,An="rtl"===this._overlayRef.getConfig().direction;let jn="",ai="",di="";Bt?di="flex-start":"center"===fn?(di="center",An?ai=gn:jn=gn):An?"left"===fn||"end"===fn?(di="flex-end",jn=gn):("right"===fn||"start"===fn)&&(di="flex-start",ai=gn):"left"===fn||"start"===fn?(di="flex-start",jn=gn):("right"===fn||"end"===fn)&&(di="flex-end",ai=gn),J.position=this._cssPosition,J.marginLeft=Bt?"0":jn,J.marginTop=Ut?"0":this._topOffset,J.marginBottom=this._bottomOffset,J.marginRight=Bt?"0":ai,ae.justifyContent=di,ae.alignItems=Ut?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const J=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement,Oe=ae.style;ae.classList.remove(bt),Oe.justifyContent=Oe.alignItems=J.marginTop=J.marginBottom=J.marginLeft=J.marginRight=J.position="",this._overlayRef=null,this._isDisposed=!0}}let Qt=(()=>{class Ce{constructor(ae,Oe,ot,Se){this._viewportRuler=ae,this._document=Oe,this._platform=ot,this._overlayContainer=Se}global(){return new Nt}flexibleConnectedTo(ae){return new $e(ae,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(e.rL),D.LFG(l.K0),D.LFG(S.t4),D.LFG(dt))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),nn=0,Dn=(()=>{class Ce{constructor(ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An,jn){this.scrollStrategies=ae,this._overlayContainer=Oe,this._componentFactoryResolver=ot,this._positionBuilder=Se,this._keyboardDispatcher=Ft,this._injector=lt,this._ngZone=Bt,this._document=Ut,this._directionality=fn,this._location=gn,this._outsideClickDispatcher=An,this._animationsModuleType=jn}create(ae){const Oe=this._createHostElement(),ot=this._createPaneElement(Oe),Se=this._createPortalOutlet(ot),Ft=new un(ae);return Ft.direction=Ft.direction||this._directionality.value,new at(Se,Oe,ot,Ft,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ae){const Oe=this._document.createElement("div");return Oe.id="cdk-overlay-"+nn++,Oe.classList.add("cdk-overlay-pane"),ae.appendChild(Oe),Oe}_createHostElement(){const ae=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ae),ae}_createPortalOutlet(ae){return this._appRef||(this._appRef=this._injector.get(D.z2F)),new te.u0(ae,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(yt),D.LFG(dt),D.LFG(D._Vd),D.LFG(Qt),D.LFG(gi),D.LFG(D.zs3),D.LFG(D.R0b),D.LFG(l.K0),D.LFG(se.Is),D.LFG(l.Ye),D.LFG(Rn),D.LFG(D.QbO,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();const Ot=[{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"}],rn=new D.OlP("cdk-connected-overlay-scroll-strategy");let vn=(()=>{class Ce{constructor(ae){this.elementRef=ae}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.Y36(D.SBq))};static#t=this.\u0275dir=D.lG2({type:Ce,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return Ce})(),ei=(()=>{class Ce{get offsetX(){return this._offsetX}set offsetX(ae){this._offsetX=ae,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ae){this._offsetY=ae,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ae){this._hasBackdrop=(0,I.Ig)(ae)}get lockPosition(){return this._lockPosition}set lockPosition(ae){this._lockPosition=(0,I.Ig)(ae)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ae){this._flexibleDimensions=(0,I.Ig)(ae)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ae){this._growAfterOpen=(0,I.Ig)(ae)}get push(){return this._push}set push(ae){this._push=(0,I.Ig)(ae)}constructor(ae,Oe,ot,Se,Ft){this._overlay=ae,this._dir=Ft,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ce.w0.EMPTY,this._attachSubscription=ce.w0.EMPTY,this._detachSubscription=ce.w0.EMPTY,this._positionSubscription=ce.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new D.vpe,this.positionChange=new D.vpe,this.attach=new D.vpe,this.detach=new D.vpe,this.overlayKeydown=new D.vpe,this.overlayOutsideClick=new D.vpe,this._templatePortal=new te.UE(Oe,ot),this._scrollStrategyFactory=Se,this.scrollStrategy=this._scrollStrategyFactory()}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(ae){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ae.origin&&this.open&&this._position.apply()),ae.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ot);const ae=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ae.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ae.detachments().subscribe(()=>this.detach.emit()),ae.keydownEvents().subscribe(Oe=>{this.overlayKeydown.next(Oe),Oe.keyCode===Re.hY&&!this.disableClose&&!(0,Re.Vb)(Oe)&&(Oe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Oe=>{this.overlayOutsideClick.next(Oe)})}_buildConfig(){const ae=this._position=this.positionStrategy||this._createPositionStrategy(),Oe=new un({direction:this._dir,positionStrategy:ae,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Oe.width=this.width),(this.height||0===this.height)&&(Oe.height=this.height),(this.minWidth||0===this.minWidth)&&(Oe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Oe.minHeight=this.minHeight),this.backdropClass&&(Oe.backdropClass=this.backdropClass),this.panelClass&&(Oe.panelClass=this.panelClass),Oe}_updatePositionStrategy(ae){const Oe=this.positions.map(ot=>({originX:ot.originX,originY:ot.originY,overlayX:ot.overlayX,overlayY:ot.overlayY,offsetX:ot.offsetX||this.offsetX,offsetY:ot.offsetY||this.offsetY,panelClass:ot.panelClass||void 0}));return ae.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Oe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ae=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ae),ae}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof vn?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(ae=>{this.backdropClick.emit(ae)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ue(Ce,J=!1){return(0,ee.e)((ae,Oe)=>{let ot=0;ae.subscribe((0,re.x)(Oe,Se=>{const Ft=Ce(Se,ot++);(Ft||J)&&Oe.next(Se),!Ft&&Oe.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(ae=>{this.positionChange.emit(ae),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.Y36(Dn),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(rn),D.Y36(se.Is,8))};static#t=this.\u0275dir=D.lG2({type:Ce,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"],standalone:!0,features:[D.TTD]})}return Ce})();const Ve={provide:rn,deps:[Dn],useFactory:function Wn(Ce){return()=>Ce.scrollStrategies.reposition()}};let ct=(()=>{class Ce{static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)};static#t=this.\u0275mod=D.oAB({type:Ce});static#n=this.\u0275inj=D.cJS({providers:[Dn,Ve],imports:[se.vT,te.eL,e.Cl,e.Cl]})}return Ce})()},2831:(ft,Ie,C)=>{"use strict";C.d(Ie,{Mq:()=>oe,Oy:()=>je,ht:()=>Ge,i$:()=>ue,kV:()=>mt,sA:()=>Lt,t4:()=>I});var e=C(5879),l=C(6814);let D;try{D=typeof Intl<"u"&&Intl.v8BreakIterator}catch{D=!1}let ee,te,_e,I=(()=>{class Tt{constructor(St){this._platformId=St,this.isBrowser=this._platformId?(0,l.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&&!D)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(Zt){return new(Zt||Tt)(e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"})}return Tt})();function ue(Tt){return function re(){if(null==ee&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ee=!0}))}finally{ee=ee||!1}return ee}()?Tt:!!Tt.capture}function oe(){if(null==te){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return te=!1,te;if("scrollBehavior"in document.documentElement.style)te=!0;else{const Tt=Element.prototype.scrollTo;te=!!Tt&&!/\{\s*\[native code\]\s*\}/.test(Tt.toString())}}return te}function mt(Tt){if(function Re(){if(null==_e){const Tt=typeof document<"u"?document.head:null;_e=!(!Tt||!Tt.createShadowRoot&&!Tt.attachShadow)}return _e}()){const xt=Tt.getRootNode?Tt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&xt instanceof ShadowRoot)return xt}return null}function Ge(){let Tt=typeof document<"u"&&document?document.activeElement:null;for(;Tt&&Tt.shadowRoot;){const xt=Tt.shadowRoot.activeElement;if(xt===Tt)break;Tt=xt}return Tt}function Lt(Tt){return Tt.composedPath?Tt.composedPath()[0]:Tt.target}function je(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(ft,Ie,C)=>{"use strict";C.d(Ie,{C5:()=>re,Pl:()=>Ge,UE:()=>ue,eL:()=>je,en:()=>te,ig:()=>Re,u0:()=>ce});var e=C(5879),l=C(6814);class ee{attach(St){return this._attachedHost=St,St.attach(this)}detach(){let St=this._attachedHost;null!=St&&(this._attachedHost=null,St.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(St){this._attachedHost=St}}class re extends ee{constructor(St,Zt,yt,un,Jt){super(),this.component=St,this.viewContainerRef=Zt,this.injector=yt,this.componentFactoryResolver=un,this.projectableNodes=Jt}}class ue extends ee{constructor(St,Zt,yt,un){super(),this.templateRef=St,this.viewContainerRef=Zt,this.context=yt,this.injector=un}get origin(){return this.templateRef.elementRef}attach(St,Zt=this.context){return this.context=Zt,super.attach(St)}detach(){return this.context=void 0,super.detach()}}class se extends ee{constructor(St){super(),this.element=St instanceof e.SBq?St.nativeElement:St}}class te{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(St){return St instanceof re?(this._attachedPortal=St,this.attachComponentPortal(St)):St instanceof ue?(this._attachedPortal=St,this.attachTemplatePortal(St)):this.attachDomPortal&&St instanceof se?(this._attachedPortal=St,this.attachDomPortal(St)):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(St){this._disposeFn=St}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ce extends te{constructor(St,Zt,yt,un,Jt){super(),this.outletElement=St,this._componentFactoryResolver=Zt,this._appRef=yt,this._defaultInjector=un,this.attachDomPortal=tn=>{const wn=tn.element,Ln=this._document.createComment("dom-portal");wn.parentNode.insertBefore(Ln,wn),this.outletElement.appendChild(wn),this._attachedPortal=tn,super.setDisposeFn(()=>{Ln.parentNode&&Ln.parentNode.replaceChild(wn,Ln)})},this._document=Jt}attachComponentPortal(St){const yt=(St.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(St.component);let un;return St.viewContainerRef?(un=St.viewContainerRef.createComponent(yt,St.viewContainerRef.length,St.injector||St.viewContainerRef.injector,St.projectableNodes||void 0),this.setDisposeFn(()=>un.destroy())):(un=yt.create(St.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(un.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(un.hostView),un.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(un)),this._attachedPortal=St,un}attachTemplatePortal(St){let Zt=St.viewContainerRef,yt=Zt.createEmbeddedView(St.templateRef,St.context,{injector:St.injector});return yt.rootNodes.forEach(un=>this.outletElement.appendChild(un)),yt.detectChanges(),this.setDisposeFn(()=>{let un=Zt.indexOf(yt);-1!==un&&Zt.remove(un)}),this._attachedPortal=St,yt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(St){return St.hostView.rootNodes[0]}}let Re=(()=>{class xt extends ue{constructor(Zt,yt){super(Zt,yt)}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.Y36(e.Rgc),e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:xt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]})}return xt})(),Ge=(()=>{class xt extends te{constructor(Zt,yt,un){super(),this._componentFactoryResolver=Zt,this._viewContainerRef=yt,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=Jt=>{const tn=Jt.element,wn=this._document.createComment("dom-portal");Jt.setAttachedHost(this),tn.parentNode.insertBefore(wn,tn),this._getRootNode().appendChild(tn),this._attachedPortal=Jt,super.setDisposeFn(()=>{wn.parentNode&&wn.parentNode.replaceChild(tn,wn)})},this._document=un}get portal(){return this._attachedPortal}set portal(Zt){this.hasAttached()&&!Zt&&!this._isInitialized||(this.hasAttached()&&super.detach(),Zt&&super.attach(Zt),this._attachedPortal=Zt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Zt){Zt.setAttachedHost(this);const yt=null!=Zt.viewContainerRef?Zt.viewContainerRef:this._viewContainerRef,Jt=(Zt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Zt.component),tn=yt.createComponent(Jt,yt.length,Zt.injector||yt.injector,Zt.projectableNodes||void 0);return yt!==this._viewContainerRef&&this._getRootNode().appendChild(tn.hostView.rootNodes[0]),super.setDisposeFn(()=>tn.destroy()),this._attachedPortal=Zt,this._attachedRef=tn,this.attached.emit(tn),tn}attachTemplatePortal(Zt){Zt.setAttachedHost(this);const yt=this._viewContainerRef.createEmbeddedView(Zt.templateRef,Zt.context,{injector:Zt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Zt,this._attachedRef=yt,this.attached.emit(yt),yt}_getRootNode(){const Zt=this._viewContainerRef.element.nativeElement;return Zt.nodeType===Zt.ELEMENT_NODE?Zt:Zt.parentNode}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(l.K0))};static#t=this.\u0275dir=e.lG2({type:xt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]})}return xt})(),je=(()=>{class xt{static#e=this.\u0275fac=function(yt){return new(yt||xt)};static#t=this.\u0275mod=e.oAB({type:xt});static#n=this.\u0275inj=e.cJS({})}return xt})()},6672:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cl:()=>Rn,ZD:()=>gi,mF:()=>je,rL:()=>St});var e=C(2605),l=C(5879),D=C(8645),I=C(2096),S=C(5592),w=C(2438),ee=(C(927),C(6410),C(9028)),re=C(2181),ue=C(2831),se=C(6814),te=C(9388);let je=(()=>{class dt{constructor(Be,Ee,$e){this._ngZone=Be,this._platform=Ee,this._scrolled=new D.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=$e}register(Be){this.scrollContainers.has(Be)||this.scrollContainers.set(Be,Be.elementScrolled().subscribe(()=>this._scrolled.next(Be)))}deregister(Be){const Ee=this.scrollContainers.get(Be);Ee&&(Ee.unsubscribe(),this.scrollContainers.delete(Be))}scrolled(Be=20){return this._platform.isBrowser?new S.y(Ee=>{this._globalSubscription||this._addGlobalListener();const $e=Be>0?this._scrolled.pipe((0,ee.e)(Be)).subscribe(Ee):this._scrolled.subscribe(Ee);return this._scrolledCount++,()=>{$e.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,I.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Be,Ee)=>this.deregister(Ee)),this._scrolled.complete()}ancestorScrolled(Be,Ee){const $e=this.getAncestorScrollContainers(Be);return this.scrolled(Ee).pipe((0,re.h)(me=>!me||$e.indexOf(me)>-1))}getAncestorScrollContainers(Be){const Ee=[];return this.scrollContainers.forEach(($e,me)=>{this._scrollableContainsElement(me,Be)&&Ee.push(me)}),Ee}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Be,Ee){let $e=(0,e.fI)(Ee),me=Be.getElementRef().nativeElement;do{if($e==me)return!0}while($e=$e.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Be=this._getWindow();return(0,w.R)(Be.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(Ee){return new(Ee||dt)(l.LFG(l.R0b),l.LFG(ue.t4),l.LFG(se.K0,8))};static#t=this.\u0275prov=l.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"})}return dt})(),St=(()=>{class dt{constructor(Be,Ee,$e){this._platform=Be,this._change=new D.x,this._changeListener=me=>{this._change.next(me)},this._document=$e,Ee.runOutsideAngular(()=>{if(Be.isBrowser){const me=this._getWindow();me.addEventListener("resize",this._changeListener),me.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Be=this._getWindow();Be.removeEventListener("resize",this._changeListener),Be.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Be={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Be}getViewportRect(){const Be=this.getViewportScrollPosition(),{width:Ee,height:$e}=this.getViewportSize();return{top:Be.top,left:Be.left,bottom:Be.top+$e,right:Be.left+Ee,height:$e,width:Ee}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Be=this._document,Ee=this._getWindow(),$e=Be.documentElement,me=$e.getBoundingClientRect();return{top:-me.top||Be.body.scrollTop||Ee.scrollY||$e.scrollTop||0,left:-me.left||Be.body.scrollLeft||Ee.scrollX||$e.scrollLeft||0}}change(Be=20){return Be>0?this._change.pipe((0,ee.e)(Be)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Be=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Be.innerWidth,height:Be.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(Ee){return new(Ee||dt)(l.LFG(ue.t4),l.LFG(l.R0b),l.LFG(se.K0,8))};static#t=this.\u0275prov=l.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"})}return dt})(),gi=(()=>{class dt{static#e=this.\u0275fac=function(Ee){return new(Ee||dt)};static#t=this.\u0275mod=l.oAB({type:dt});static#n=this.\u0275inj=l.cJS({})}return dt})(),Rn=(()=>{class dt{static#e=this.\u0275fac=function(Ee){return new(Ee||dt)};static#t=this.\u0275mod=l.oAB({type:dt});static#n=this.\u0275inj=l.cJS({imports:[te.vT,gi,te.vT,gi]})}return dt})()},6814:(ft,Ie,C)=>{"use strict";C.d(Ie,{Do:()=>_e,ED:()=>Ba,EM:()=>Ko,HT:()=>I,JF:()=>Sr,JJ:()=>er,K0:()=>w,Mn:()=>Yn,Mx:()=>Bi,NF:()=>qs,O5:()=>Fr,Ov:()=>Sa,PC:()=>Ds,PM:()=>ba,RF:()=>yr,S$:()=>te,Tn:()=>yt,UT:()=>ti,V_:()=>Z,Ye:()=>Re,ax:()=>br,b0:()=>ce,bD:()=>nr,ez:()=>Ao,mk:()=>tr,n9:()=>Gs,p6:()=>Oe,q:()=>D,sg:()=>br,tP:()=>$s,uU:()=>dr,w_:()=>S,x:()=>Zt});var e=C(5879);let l=null;function D(){return l}function I(K){l||(l=K)}class S{}const w=new e.OlP("DocumentToken");let n=(()=>{class K{historyGo(ge){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return(0,e.f3M)(ee)},providedIn:"platform"})}return K})();const Z=new e.OlP("Location Initialized");let ee=(()=>{class K extends n{constructor(){super(),this._doc=(0,e.f3M)(w),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(ge){const Ne=D().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("popstate",ge,!1),()=>Ne.removeEventListener("popstate",ge)}onHashChange(ge){const Ne=D().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("hashchange",ge,!1),()=>Ne.removeEventListener("hashchange",ge)}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(ge){this._location.pathname=ge}pushState(ge,Ne,kt){this._history.pushState(ge,Ne,kt)}replaceState(ge,Ne,kt){this._history.replaceState(ge,Ne,kt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ge=0){this._history.go(ge)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return new K},providedIn:"platform"})}return K})();function re(K,Ue){if(0==K.length)return Ue;if(0==Ue.length)return K;let ge=0;return K.endsWith("/")&&ge++,Ue.startsWith("/")&&ge++,2==ge?K+Ue.substring(1):1==ge?K+Ue:K+"/"+Ue}function ue(K){const Ue=K.match(/#|\?|$/),ge=Ue&&Ue.index||K.length;return K.slice(0,ge-("/"===K[ge-1]?1:0))+K.slice(ge)}function se(K){return K&&"?"!==K[0]?"?"+K:K}let te=(()=>{class K{historyGo(ge){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return(0,e.f3M)(ce)},providedIn:"root"})}return K})();const oe=new e.OlP("appBaseHref");let ce=(()=>{class K extends te{constructor(ge,Ne){super(),this._platformLocation=ge,this._removeListenerFns=[],this._baseHref=Ne??this._platformLocation.getBaseHrefFromDOM()??(0,e.f3M)(w).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ge){this._removeListenerFns.push(this._platformLocation.onPopState(ge),this._platformLocation.onHashChange(ge))}getBaseHref(){return this._baseHref}prepareExternalUrl(ge){return re(this._baseHref,ge)}path(ge=!1){const Ne=this._platformLocation.pathname+se(this._platformLocation.search),kt=this._platformLocation.hash;return kt&&ge?`${Ne}${kt}`:Ne}pushState(ge,Ne,kt,pn){const Sn=this.prepareExternalUrl(kt+se(pn));this._platformLocation.pushState(ge,Ne,Sn)}replaceState(ge,Ne,kt,pn){const Sn=this.prepareExternalUrl(kt+se(pn));this._platformLocation.replaceState(ge,Ne,Sn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ge=0){this._platformLocation.historyGo?.(ge)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(n),e.LFG(oe,8))};static#t=this.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})(),_e=(()=>{class K extends te{constructor(ge,Ne){super(),this._platformLocation=ge,this._baseHref="",this._removeListenerFns=[],null!=Ne&&(this._baseHref=Ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ge){this._removeListenerFns.push(this._platformLocation.onPopState(ge),this._platformLocation.onHashChange(ge))}getBaseHref(){return this._baseHref}path(ge=!1){let Ne=this._platformLocation.hash;return null==Ne&&(Ne="#"),Ne.length>0?Ne.substring(1):Ne}prepareExternalUrl(ge){const Ne=re(this._baseHref,ge);return Ne.length>0?"#"+Ne:Ne}pushState(ge,Ne,kt,pn){let Sn=this.prepareExternalUrl(kt+se(pn));0==Sn.length&&(Sn=this._platformLocation.pathname),this._platformLocation.pushState(ge,Ne,Sn)}replaceState(ge,Ne,kt,pn){let Sn=this.prepareExternalUrl(kt+se(pn));0==Sn.length&&(Sn=this._platformLocation.pathname),this._platformLocation.replaceState(ge,Ne,Sn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ge=0){this._platformLocation.historyGo?.(ge)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(n),e.LFG(oe,8))};static#t=this.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac})}return K})(),Re=(()=>{class K{constructor(ge){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ge;const Ne=this._locationStrategy.getBaseHref();this._basePath=function je(K){if(new RegExp("^(https?:)?//").test(K)){const[,ge]=K.split(/\/\/[^\/]+/);return ge}return K}(ue(Lt(Ne))),this._locationStrategy.onPopState(kt=>{this._subject.emit({url:this.path(!0),pop:!0,state:kt.state,type:kt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(ge=!1){return this.normalize(this._locationStrategy.path(ge))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ge,Ne=""){return this.path()==this.normalize(ge+se(Ne))}normalize(ge){return K.stripTrailingSlash(function Ge(K,Ue){if(!K||!Ue.startsWith(K))return Ue;const ge=Ue.substring(K.length);return""===ge||["/",";","?","#"].includes(ge[0])?ge:Ue}(this._basePath,Lt(ge)))}prepareExternalUrl(ge){return ge&&"/"!==ge[0]&&(ge="/"+ge),this._locationStrategy.prepareExternalUrl(ge)}go(ge,Ne="",kt=null){this._locationStrategy.pushState(kt,"",ge,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(ge+se(Ne)),kt)}replaceState(ge,Ne="",kt=null){this._locationStrategy.replaceState(kt,"",ge,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(ge+se(Ne)),kt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ge=0){this._locationStrategy.historyGo?.(ge)}onUrlChange(ge){return this._urlChangeListeners.push(ge),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ne=>{this._notifyUrlChangeListeners(Ne.url,Ne.state)})),()=>{const Ne=this._urlChangeListeners.indexOf(ge);this._urlChangeListeners.splice(Ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ge="",Ne){this._urlChangeListeners.forEach(kt=>kt(ge,Ne))}subscribe(ge,Ne,kt){return this._subject.subscribe({next:ge,error:Ne,complete:kt})}static#e=this.normalizeQueryParams=se;static#t=this.joinWithSlash=re;static#n=this.stripTrailingSlash=ue;static#i=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(te))};static#r=this.\u0275prov=e.Yz7({token:K,factory:function(){return function mt(){return new Re((0,e.LFG)(te))}()},providedIn:"root"})}return K})();function Lt(K){return K.replace(/\/index.html$/,"")}var xt=function(K){return K[K.Decimal=0]="Decimal",K[K.Percent=1]="Percent",K[K.Currency=2]="Currency",K[K.Scientific=3]="Scientific",K}(xt||{}),Zt=function(K){return K[K.Format=0]="Format",K[K.Standalone=1]="Standalone",K}(Zt||{}),yt=function(K){return K[K.Narrow=0]="Narrow",K[K.Abbreviated=1]="Abbreviated",K[K.Wide=2]="Wide",K[K.Short=3]="Short",K}(yt||{}),un=function(K){return K[K.Short=0]="Short",K[K.Medium=1]="Medium",K[K.Long=2]="Long",K[K.Full=3]="Full",K}(un||{}),Jt=function(K){return K[K.Decimal=0]="Decimal",K[K.Group=1]="Group",K[K.List=2]="List",K[K.PercentSign=3]="PercentSign",K[K.PlusSign=4]="PlusSign",K[K.MinusSign=5]="MinusSign",K[K.Exponential=6]="Exponential",K[K.SuperscriptingExponent=7]="SuperscriptingExponent",K[K.PerMille=8]="PerMille",K[K.Infinity=9]="Infinity",K[K.NaN=10]="NaN",K[K.TimeSeparator=11]="TimeSeparator",K[K.CurrencyDecimal=12]="CurrencyDecimal",K[K.CurrencyGroup=13]="CurrencyGroup",K}(Jt||{});function Yn(K,Ue,ge){const Ne=(0,e.cg1)(K),pn=Ot([Ne[e.wAp.DaysFormat],Ne[e.wAp.DaysStandalone]],Ue);return Ot(pn,ge)}function ti(K,Ue,ge){const Ne=(0,e.cg1)(K),pn=Ot([Ne[e.wAp.MonthsFormat],Ne[e.wAp.MonthsStandalone]],Ue);return Ot(pn,ge)}function at(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.DateFormat],Ue)}function Be(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.TimeFormat],Ue)}function Ee(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.DateTimeFormat],Ue)}function $e(K,Ue){const ge=(0,e.cg1)(K),Ne=ge[e.wAp.NumberSymbols][Ue];if(typeof Ne>"u"){if(Ue===Jt.CurrencyDecimal)return ge[e.wAp.NumberSymbols][Jt.Decimal];if(Ue===Jt.CurrencyGroup)return ge[e.wAp.NumberSymbols][Jt.Group]}return Ne}function Nt(K){if(!K[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${K[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ot(K,Ue){for(let ge=Ue;ge>-1;ge--)if(typeof K[ge]<"u")return K[ge];throw new Error("Locale data API: locale data undefined")}function rn(K){const[Ue,ge]=K.split(":");return{hours:+Ue,minutes:+ge}}const Ve=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ct={},Ct=/((?:[^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 Ce=function(K){return K[K.Short=0]="Short",K[K.ShortGMT=1]="ShortGMT",K[K.Long=2]="Long",K[K.Extended=3]="Extended",K}(Ce||{}),J=function(K){return K[K.FullYear=0]="FullYear",K[K.Month=1]="Month",K[K.Date=2]="Date",K[K.Hours=3]="Hours",K[K.Minutes=4]="Minutes",K[K.Seconds=5]="Seconds",K[K.FractionalSeconds=6]="FractionalSeconds",K[K.Day=7]="Day",K}(J||{}),ae=function(K){return K[K.DayPeriods=0]="DayPeriods",K[K.Days=1]="Days",K[K.Months=2]="Months",K[K.Eras=3]="Eras",K}(ae||{});function Oe(K,Ue,ge,Ne){let kt=function We(K){if(be(K))return K;if("number"==typeof K&&!isNaN(K))return new Date(K);if("string"==typeof K){if(K=K.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(K)){const[kt,pn=1,Sn=1]=K.split("-").map(li=>+li);return ot(kt,pn-1,Sn)}const ge=parseFloat(K);if(!isNaN(K-ge))return new Date(ge);let Ne;if(Ne=K.match(Ve))return function ze(K){const Ue=new Date(0);let ge=0,Ne=0;const kt=K[8]?Ue.setUTCFullYear:Ue.setFullYear,pn=K[8]?Ue.setUTCHours:Ue.setHours;K[9]&&(ge=Number(K[9]+K[10]),Ne=Number(K[9]+K[11])),kt.call(Ue,Number(K[1]),Number(K[2])-1,Number(K[3]));const Sn=Number(K[4]||0)-ge,li=Number(K[5]||0)-Ne,ur=Number(K[6]||0),hr=Math.floor(1e3*parseFloat("0."+(K[7]||0)));return pn.call(Ue,Sn,li,ur,hr),Ue}(Ne)}const Ue=new Date(K);if(!be(Ue))throw new Error(`Unable to convert "${K}" into a date`);return Ue}(K);Ue=Se(ge,Ue)||Ue;let li,Sn=[];for(;Ue;){if(li=Ct.exec(Ue),!li){Sn.push(Ue);break}{Sn=Sn.concat(li.slice(1));const ar=Sn.pop();if(!ar)break;Ue=ar}}let ur=kt.getTimezoneOffset();Ne&&(ur=ve(Ne,ur),kt=function ut(K,Ue,ge){const Ne=ge?-1:1,kt=K.getTimezoneOffset();return function Pe(K,Ue){return(K=new Date(K.getTime())).setMinutes(K.getMinutes()+Ue),K}(K,Ne*(ve(Ue,kt)-kt))}(kt,Ne,!0));let hr="";return Sn.forEach(ar=>{const xi=function U(K){if(G[K])return G[K];let Ue;switch(K){case"G":case"GG":case"GGG":Ue=gn(ae.Eras,yt.Abbreviated);break;case"GGGG":Ue=gn(ae.Eras,yt.Wide);break;case"GGGGG":Ue=gn(ae.Eras,yt.Narrow);break;case"y":Ue=Ut(J.FullYear,1,0,!1,!0);break;case"yy":Ue=Ut(J.FullYear,2,0,!0,!0);break;case"yyy":Ue=Ut(J.FullYear,3,0,!1,!0);break;case"yyyy":Ue=Ut(J.FullYear,4,0,!1,!0);break;case"Y":Ue=_t(1);break;case"YY":Ue=_t(2,!0);break;case"YYY":Ue=_t(3);break;case"YYYY":Ue=_t(4);break;case"M":case"L":Ue=Ut(J.Month,1,1);break;case"MM":case"LL":Ue=Ut(J.Month,2,1);break;case"MMM":Ue=gn(ae.Months,yt.Abbreviated);break;case"MMMM":Ue=gn(ae.Months,yt.Wide);break;case"MMMMM":Ue=gn(ae.Months,yt.Narrow);break;case"LLL":Ue=gn(ae.Months,yt.Abbreviated,Zt.Standalone);break;case"LLLL":Ue=gn(ae.Months,yt.Wide,Zt.Standalone);break;case"LLLLL":Ue=gn(ae.Months,yt.Narrow,Zt.Standalone);break;case"w":Ue=qt(1);break;case"ww":Ue=qt(2);break;case"W":Ue=qt(1,!0);break;case"d":Ue=Ut(J.Date,1);break;case"dd":Ue=Ut(J.Date,2);break;case"c":case"cc":Ue=Ut(J.Day,1);break;case"ccc":Ue=gn(ae.Days,yt.Abbreviated,Zt.Standalone);break;case"cccc":Ue=gn(ae.Days,yt.Wide,Zt.Standalone);break;case"ccccc":Ue=gn(ae.Days,yt.Narrow,Zt.Standalone);break;case"cccccc":Ue=gn(ae.Days,yt.Short,Zt.Standalone);break;case"E":case"EE":case"EEE":Ue=gn(ae.Days,yt.Abbreviated);break;case"EEEE":Ue=gn(ae.Days,yt.Wide);break;case"EEEEE":Ue=gn(ae.Days,yt.Narrow);break;case"EEEEEE":Ue=gn(ae.Days,yt.Short);break;case"a":case"aa":case"aaa":Ue=gn(ae.DayPeriods,yt.Abbreviated);break;case"aaaa":Ue=gn(ae.DayPeriods,yt.Wide);break;case"aaaaa":Ue=gn(ae.DayPeriods,yt.Narrow);break;case"b":case"bb":case"bbb":Ue=gn(ae.DayPeriods,yt.Abbreviated,Zt.Standalone,!0);break;case"bbbb":Ue=gn(ae.DayPeriods,yt.Wide,Zt.Standalone,!0);break;case"bbbbb":Ue=gn(ae.DayPeriods,yt.Narrow,Zt.Standalone,!0);break;case"B":case"BB":case"BBB":Ue=gn(ae.DayPeriods,yt.Abbreviated,Zt.Format,!0);break;case"BBBB":Ue=gn(ae.DayPeriods,yt.Wide,Zt.Format,!0);break;case"BBBBB":Ue=gn(ae.DayPeriods,yt.Narrow,Zt.Format,!0);break;case"h":Ue=Ut(J.Hours,1,-12);break;case"hh":Ue=Ut(J.Hours,2,-12);break;case"H":Ue=Ut(J.Hours,1);break;case"HH":Ue=Ut(J.Hours,2);break;case"m":Ue=Ut(J.Minutes,1);break;case"mm":Ue=Ut(J.Minutes,2);break;case"s":Ue=Ut(J.Seconds,1);break;case"ss":Ue=Ut(J.Seconds,2);break;case"S":Ue=Ut(J.FractionalSeconds,1);break;case"SS":Ue=Ut(J.FractionalSeconds,2);break;case"SSS":Ue=Ut(J.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ue=jn(Ce.Short);break;case"ZZZZZ":Ue=jn(Ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ue=jn(Ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ue=jn(Ce.Long);break;default:return null}return G[K]=Ue,Ue}(ar);hr+=xi?xi(kt,ge,ur):"''"===ar?"'":ar.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),hr}function ot(K,Ue,ge){const Ne=new Date(0);return Ne.setFullYear(K,Ue,ge),Ne.setHours(0,0,0),Ne}function Se(K,Ue){const ge=function wn(K){return(0,e.cg1)(K)[e.wAp.LocaleId]}(K);if(ct[ge]=ct[ge]||{},ct[ge][Ue])return ct[ge][Ue];let Ne="";switch(Ue){case"shortDate":Ne=at(K,un.Short);break;case"mediumDate":Ne=at(K,un.Medium);break;case"longDate":Ne=at(K,un.Long);break;case"fullDate":Ne=at(K,un.Full);break;case"shortTime":Ne=Be(K,un.Short);break;case"mediumTime":Ne=Be(K,un.Medium);break;case"longTime":Ne=Be(K,un.Long);break;case"fullTime":Ne=Be(K,un.Full);break;case"short":const kt=Se(K,"shortTime"),pn=Se(K,"shortDate");Ne=Ft(Ee(K,un.Short),[kt,pn]);break;case"medium":const Sn=Se(K,"mediumTime"),li=Se(K,"mediumDate");Ne=Ft(Ee(K,un.Medium),[Sn,li]);break;case"long":const ur=Se(K,"longTime"),hr=Se(K,"longDate");Ne=Ft(Ee(K,un.Long),[ur,hr]);break;case"full":const ar=Se(K,"fullTime"),xi=Se(K,"fullDate");Ne=Ft(Ee(K,un.Full),[ar,xi])}return Ne&&(ct[ge][Ue]=Ne),Ne}function Ft(K,Ue){return Ue&&(K=K.replace(/\{([^}]+)}/g,function(ge,Ne){return null!=Ue&&Ne in Ue?Ue[Ne]:ge})),K}function lt(K,Ue,ge="-",Ne,kt){let pn="";(K<0||kt&&K<=0)&&(kt?K=1-K:(K=-K,pn=ge));let Sn=String(K);for(;Sn.length0||li>-ge)&&(li+=ge),K===J.Hours)0===li&&-12===ge&&(li=12);else if(K===J.FractionalSeconds)return function Bt(K,Ue){return lt(K,3).substring(0,Ue)}(li,Ue);const ur=$e(Sn,Jt.MinusSign);return lt(li,Ue,ur,Ne,kt)}}function gn(K,Ue,ge=Zt.Format,Ne=!1){return function(kt,pn){return function An(K,Ue,ge,Ne,kt,pn){switch(ge){case ae.Months:return ti(Ue,kt,Ne)[K.getMonth()];case ae.Days:return Yn(Ue,kt,Ne)[K.getDay()];case ae.DayPeriods:const Sn=K.getHours(),li=K.getMinutes();if(pn){const hr=function Qt(K){const Ue=(0,e.cg1)(K);return Nt(Ue),(Ue[e.wAp.ExtraData][2]||[]).map(Ne=>"string"==typeof Ne?rn(Ne):[rn(Ne[0]),rn(Ne[1])])}(Ue),ar=function nn(K,Ue,ge){const Ne=(0,e.cg1)(K);Nt(Ne);const pn=Ot([Ne[e.wAp.ExtraData][0],Ne[e.wAp.ExtraData][1]],Ue)||[];return Ot(pn,ge)||[]}(Ue,kt,Ne),xi=hr.findIndex(Ar=>{if(Array.isArray(Ar)){const[Nr,mr]=Ar,vs=Sn>=Nr.hours&&li>=Nr.minutes,bs=Sn0?Math.floor(kt/60):Math.ceil(kt/60);switch(K){case Ce.Short:return(kt>=0?"+":"")+lt(Sn,2,pn)+lt(Math.abs(kt%60),2,pn);case Ce.ShortGMT:return"GMT"+(kt>=0?"+":"")+lt(Sn,1,pn);case Ce.Long:return"GMT"+(kt>=0?"+":"")+lt(Sn,2,pn)+":"+lt(Math.abs(kt%60),2,pn);case Ce.Extended:return 0===Ne?"Z":(kt>=0?"+":"")+lt(Sn,2,pn)+":"+lt(Math.abs(kt%60),2,pn);default:throw new Error(`Unknown zone width "${K}"`)}}}const ai=0,di=4;function Jn(K){return ot(K.getFullYear(),K.getMonth(),K.getDate()+(di-K.getDay()))}function qt(K,Ue=!1){return function(ge,Ne){let kt;if(Ue){const pn=new Date(ge.getFullYear(),ge.getMonth(),1).getDay()-1,Sn=ge.getDate();kt=1+Math.floor((Sn+pn)/7)}else{const pn=Jn(ge),Sn=function oi(K){const Ue=ot(K,ai,1).getDay();return ot(K,0,1+(Ue<=di?di:di+7)-Ue)}(pn.getFullYear()),li=pn.getTime()-Sn.getTime();kt=1+Math.round(li/6048e5)}return lt(kt,K,$e(Ne,Jt.MinusSign))}}function _t(K,Ue=!1){return function(ge,Ne){return lt(Jn(ge).getFullYear(),K,$e(Ne,Jt.MinusSign),Ue)}}const G={};function ve(K,Ue){K=K.replace(/:/g,"");const ge=Date.parse("Jan 01, 1970 00:00:00 "+K)/6e4;return isNaN(ge)?Ue:ge}function be(K){return K instanceof Date&&!isNaN(K.valueOf())}const Te=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Vn(K){const Ue=parseInt(K);if(isNaN(Ue))throw new Error("Invalid integer literal when parsing "+K);return Ue}function Bi(K,Ue){Ue=encodeURIComponent(Ue);for(const ge of K.split(";")){const Ne=ge.indexOf("="),[kt,pn]=-1==Ne?[ge,""]:[ge.slice(0,Ne),ge.slice(Ne+1)];if(kt.trim()===Ue)return decodeURIComponent(pn)}return null}const co=/\s+/,Ji=[];let tr=(()=>{class K{constructor(ge,Ne,kt,pn){this._iterableDiffers=ge,this._keyValueDiffers=Ne,this._ngEl=kt,this._renderer=pn,this.initialClasses=Ji,this.stateMap=new Map}set klass(ge){this.initialClasses=null!=ge?ge.trim().split(co):Ji}set ngClass(ge){this.rawClass="string"==typeof ge?ge.trim().split(co):ge}ngDoCheck(){for(const Ne of this.initialClasses)this._updateState(Ne,!0);const ge=this.rawClass;if(Array.isArray(ge)||ge instanceof Set)for(const Ne of ge)this._updateState(Ne,!0);else if(null!=ge)for(const Ne of Object.keys(ge))this._updateState(Ne,!!ge[Ne]);this._applyStateDiff()}_updateState(ge,Ne){const kt=this.stateMap.get(ge);void 0!==kt?(kt.enabled!==Ne&&(kt.changed=!0,kt.enabled=Ne),kt.touched=!0):this.stateMap.set(ge,{enabled:Ne,changed:!0,touched:!0})}_applyStateDiff(){for(const ge of this.stateMap){const Ne=ge[0],kt=ge[1];kt.changed?(this._toggleClass(Ne,kt.enabled),kt.changed=!1):kt.touched||(kt.enabled&&this._toggleClass(Ne,!1),this.stateMap.delete(Ne)),kt.touched=!1}}_toggleClass(ge,Ne){(ge=ge.trim()).length>0&&ge.split(co).forEach(kt=>{Ne?this._renderer.addClass(this._ngEl.nativeElement,kt):this._renderer.removeClass(this._ngEl.nativeElement,kt)})}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return K})();class pr{constructor(Ue,ge,Ne,kt){this.$implicit=Ue,this.ngForOf=ge,this.index=Ne,this.count=kt}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 br=(()=>{class K{set ngForOf(ge){this._ngForOf=ge,this._ngForOfDirty=!0}set ngForTrackBy(ge){this._trackByFn=ge}get ngForTrackBy(){return this._trackByFn}constructor(ge,Ne,kt){this._viewContainer=ge,this._template=Ne,this._differs=kt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(ge){ge&&(this._template=ge)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ge=this._ngForOf;!this._differ&&ge&&(this._differ=this._differs.find(ge).create(this.ngForTrackBy))}if(this._differ){const ge=this._differ.diff(this._ngForOf);ge&&this._applyChanges(ge)}}_applyChanges(ge){const Ne=this._viewContainer;ge.forEachOperation((kt,pn,Sn)=>{if(null==kt.previousIndex)Ne.createEmbeddedView(this._template,new pr(kt.item,this._ngForOf,-1,-1),null===Sn?void 0:Sn);else if(null==Sn)Ne.remove(null===pn?void 0:pn);else if(null!==pn){const li=Ne.get(pn);Ne.move(li,Sn),$n(li,kt)}});for(let kt=0,pn=Ne.length;kt{$n(Ne.get(kt.currentIndex),kt)})}static ngTemplateContextGuard(ge,Ne){return!0}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return K})();function $n(K,Ue){K.context.$implicit=Ue.item}let Fr=(()=>{class K{constructor(ge,Ne){this._viewContainer=ge,this._context=new uo,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ne}set ngIf(ge){this._context.$implicit=this._context.ngIf=ge,this._updateView()}set ngIfThen(ge){ho("ngIfThen",ge),this._thenTemplateRef=ge,this._thenViewRef=null,this._updateView()}set ngIfElse(ge){ho("ngIfElse",ge),this._elseTemplateRef=ge,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(ge,Ne){return!0}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return K})();class uo{constructor(){this.$implicit=null,this.ngIf=null}}function ho(K,Ue){if(Ue&&!Ue.createEmbeddedView)throw new Error(`${K} must be a TemplateRef, but received '${(0,e.AaK)(Ue)}'.`)}class to{constructor(Ue,ge){this._viewContainerRef=Ue,this._templateRef=ge,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ue){Ue&&!this._created?this.create():!Ue&&this._created&&this.destroy()}}let yr=(()=>{class K{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(ge){this._ngSwitch=ge,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ge){this._defaultViews.push(ge)}_matchCase(ge){const Ne=ge==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ne}_updateDefaultCases(ge){if(this._defaultViews.length>0&&ge!==this._defaultUsed){this._defaultUsed=ge;for(const Ne of this._defaultViews)Ne.enforceState(ge)}}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return K})(),Gs=(()=>{class K{constructor(ge,Ne,kt){this.ngSwitch=kt,kt._addCase(),this._view=new to(ge,Ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(yr,9))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return K})(),Ba=(()=>{class K{constructor(ge,Ne,kt){kt._addDefault(new to(ge,Ne))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(yr,9))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return K})(),Ds=(()=>{class K{constructor(ge,Ne,kt){this._ngEl=ge,this._differs=Ne,this._renderer=kt,this._ngStyle=null,this._differ=null}set ngStyle(ge){this._ngStyle=ge,!this._differ&&ge&&(this._differ=this._differs.find(ge).create())}ngDoCheck(){if(this._differ){const ge=this._differ.diff(this._ngStyle);ge&&this._applyChanges(ge)}}_setStyle(ge,Ne){const[kt,pn]=ge.split("."),Sn=-1===kt.indexOf("-")?void 0:e.JOm.DashCase;null!=Ne?this._renderer.setStyle(this._ngEl.nativeElement,kt,pn?`${Ne}${pn}`:Ne,Sn):this._renderer.removeStyle(this._ngEl.nativeElement,kt,Sn)}_applyChanges(ge){ge.forEachRemovedItem(Ne=>this._setStyle(Ne.key,null)),ge.forEachAddedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue)),ge.forEachChangedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return K})(),$s=(()=>{class K{constructor(ge){this._viewContainerRef=ge,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(ge){if(ge.ngTemplateOutlet||ge.ngTemplateOutletInjector){const Ne=this._viewContainerRef;if(this._viewRef&&Ne.remove(Ne.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:kt,ngTemplateOutletContext:pn,ngTemplateOutletInjector:Sn}=this;this._viewRef=Ne.createEmbeddedView(kt,pn,Sn?{injector:Sn}:void 0)}else this._viewRef=null}else this._viewRef&&ge.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]})}return K})();function Jr(K,Ue){return new e.vHH(2100,!1)}class ga{createSubscription(Ue,ge){return(0,e.rg0)(()=>Ue.subscribe({next:ge,error:Ne=>{throw Ne}}))}dispose(Ue){(0,e.rg0)(()=>Ue.unsubscribe())}}class kr{createSubscription(Ue,ge){return Ue.then(ge,Ne=>{throw Ne})}dispose(Ue){}}const oo=new kr,fs=new ga;let Sa=(()=>{class K{constructor(ge){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ge}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ge){return this._obj?ge!==this._obj?(this._dispose(),this.transform(ge)):this._latestValue:(ge&&this._subscribe(ge),this._latestValue)}_subscribe(ge){this._obj=ge,this._strategy=this._selectStrategy(ge),this._subscription=this._strategy.createSubscription(ge,Ne=>this._updateLatestValue(ge,Ne))}_selectStrategy(ge){if((0,e.QGY)(ge))return oo;if((0,e.F4k)(ge))return fs;throw Jr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ge,Ne){ge===this._obj&&(this._latestValue=Ne,this._ref.markForCheck())}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.sBO,16))};static#t=this.\u0275pipe=e.Yjl({name:"async",type:K,pure:!1,standalone:!0})}return K})();const Li=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Yr=new e.OlP("DATE_PIPE_DEFAULT_OPTIONS");let dr=(()=>{class K{constructor(ge,Ne,kt){this.locale=ge,this.defaultTimezone=Ne,this.defaultOptions=kt}transform(ge,Ne,kt,pn){if(null==ge||""===ge||ge!=ge)return null;try{return Oe(ge,Ne??this.defaultOptions?.dateFormat??"mediumDate",pn||this.locale,kt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Sn){throw Jr()}}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.soG,16),e.Y36(Li,24),e.Y36(Yr,24))};static#t=this.\u0275pipe=e.Yjl({name:"date",type:K,pure:!0,standalone:!0})}return K})(),er=(()=>{class K{constructor(ge){this._locale=ge}transform(ge,Ne,kt){if(!function _r(K){return!(null==K||""===K||K!=K)}(ge))return null;kt=kt||this._locale;try{return function cn(K,Ue,ge){return function ht(K,Ue,ge,Ne,kt,pn,Sn=!1){let li="",ur=!1;if(isFinite(K)){let hr=function On(K){let Ne,kt,pn,Sn,li,Ue=Math.abs(K)+"",ge=0;for((kt=Ue.indexOf("."))>-1&&(Ue=Ue.replace(".","")),(pn=Ue.search(/e/i))>0?(kt<0&&(kt=pn),kt+=+Ue.slice(pn+1),Ue=Ue.substring(0,pn)):kt<0&&(kt=Ue.length),pn=0;"0"===Ue.charAt(pn);pn++);if(pn===(li=Ue.length))Ne=[0],kt=1;else{for(li--;"0"===Ue.charAt(li);)li--;for(kt-=pn,Ne=[],Sn=0;pn<=li;pn++,Sn++)Ne[Sn]=Number(Ue.charAt(pn))}return kt>22&&(Ne=Ne.splice(0,21),ge=kt-1,kt=1),{digits:Ne,exponent:ge,integerLen:kt}}(K);Sn&&(hr=function En(K){if(0===K.digits[0])return K;const Ue=K.digits.length-K.integerLen;return K.exponent?K.exponent+=2:(0===Ue?K.digits.push(0,0):1===Ue&&K.digits.push(0),K.integerLen+=2),K}(hr));let ar=Ue.minInt,xi=Ue.minFrac,Ar=Ue.maxFrac;if(pn){const Ui=pn.match(Te);if(null===Ui)throw new Error(`${pn} is not a valid digit info`);const Ma=Ui[1],Qr=Ui[3],zr=Ui[5];null!=Ma&&(ar=Vn(Ma)),null!=Qr&&(xi=Vn(Qr)),null!=zr?Ar=Vn(zr):null!=Qr&&xi>Ar&&(Ar=xi)}!function ni(K,Ue,ge){if(Ue>ge)throw new Error(`The minimum number of digits after fraction (${Ue}) is higher than the maximum (${ge}).`);let Ne=K.digits,kt=Ne.length-K.integerLen;const pn=Math.min(Math.max(Ue,kt),ge);let Sn=pn+K.integerLen,li=Ne[Sn];if(Sn>0){Ne.splice(Math.max(K.integerLen,Sn));for(let xi=Sn;xi=5)if(Sn-1<0){for(let xi=0;xi>Sn;xi--)Ne.unshift(0),K.integerLen++;Ne.unshift(1),K.integerLen++}else Ne[Sn-1]++;for(;kt=hr?mr.pop():ur=!1),Ar>=10?1:0},0);ar&&(Ne.unshift(ar),K.integerLen++)}(hr,xi,Ar);let Nr=hr.digits,mr=hr.integerLen;const vs=hr.exponent;let bs=[];for(ur=Nr.every(Ui=>!Ui);mr0?bs=Nr.splice(mr,Nr.length):(bs=Nr,Nr=[0]);const $a=[];for(Nr.length>=Ue.lgSize&&$a.unshift(Nr.splice(-Ue.lgSize,Nr.length).join(""));Nr.length>Ue.gSize;)$a.unshift(Nr.splice(-Ue.gSize,Nr.length).join(""));Nr.length&&$a.unshift(Nr.join("")),li=$a.join($e(ge,Ne)),bs.length&&(li+=$e(ge,kt)+bs.join("")),vs&&(li+=$e(ge,Jt.Exponential)+"+"+vs)}else li=$e(ge,Jt.Infinity);return li=K<0&&!ur?Ue.negPre+li+Ue.negSuf:Ue.posPre+li+Ue.posSuf,li}(K,function _n(K,Ue="-"){const ge={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ne=K.split(";"),kt=Ne[0],pn=Ne[1],Sn=-1!==kt.indexOf(".")?kt.split("."):[kt.substring(0,kt.lastIndexOf("0")+1),kt.substring(kt.lastIndexOf("0")+1)],li=Sn[0],ur=Sn[1]||"";ge.posPre=li.substring(0,li.indexOf("#"));for(let ar=0;ar{class K{static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275mod=e.oAB({type:K});static#n=this.\u0275inj=e.cJS({})}return K})();const nr="browser",ps="server";function qs(K){return K===nr}function ba(K){return K===ps}let Ko=(()=>{class K{static#e=this.\u0275prov=(0,e.Yz7)({token:K,providedIn:"root",factory:()=>new or((0,e.LFG)(w),window)})}return K})();class or{constructor(Ue,ge){this.document=Ue,this.window=ge,this.offset=()=>[0,0]}setOffset(Ue){this.offset=Array.isArray(Ue)?()=>Ue:Ue}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ue){this.supportsScrolling()&&this.window.scrollTo(Ue[0],Ue[1])}scrollToAnchor(Ue){if(!this.supportsScrolling())return;const ge=function Xs(K,Ue){const ge=K.getElementById(Ue)||K.getElementsByName(Ue)[0];if(ge)return ge;if("function"==typeof K.createTreeWalker&&K.body&&"function"==typeof K.body.attachShadow){const Ne=K.createTreeWalker(K.body,NodeFilter.SHOW_ELEMENT);let kt=Ne.currentNode;for(;kt;){const pn=kt.shadowRoot;if(pn){const Sn=pn.getElementById(Ue)||pn.querySelector(`[name="${Ue}"]`);if(Sn)return Sn}kt=Ne.nextNode()}}return null}(this.document,Ue);ge&&(this.scrollToElement(ge),ge.focus())}setHistoryScrollRestoration(Ue){this.supportsScrolling()&&(this.window.history.scrollRestoration=Ue)}scrollToElement(Ue){const ge=Ue.getBoundingClientRect(),Ne=ge.left+this.window.pageXOffset,kt=ge.top+this.window.pageYOffset,pn=this.offset();this.window.scrollTo(Ne-pn[0],kt-pn[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Sr{}},9862:(ft,Ie,C)=>{"use strict";C.d(Ie,{JF:()=>Te,TP:()=>Nt,UA:()=>gi,WM:()=>te,eN:()=>dt});var e=C(5879),l=C(2096),D=C(9666),I=C(5592),S=C(6328),w=C(2181),n=C(7398),Z=C(4716),ee=C(4664),re=C(6814);class ue{}class se{}class te{constructor(st){this.normalizedNames=new Map,this.lazyUpdate=null,st?"string"==typeof st?this.lazyInit=()=>{this.headers=new Map,st.split("\n").forEach(It=>{const cn=It.indexOf(":");if(cn>0){const _n=It.slice(0,cn),En=_n.toLowerCase(),On=It.slice(cn+1).trim();this.maybeSetNormalizedName(_n,En),this.headers.has(En)?this.headers.get(En).push(On):this.headers.set(En,[On])}})}:typeof Headers<"u"&&st instanceof Headers?(this.headers=new Map,st.forEach((It,cn)=>{this.setHeaderEntries(cn,It)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(st).forEach(([It,cn])=>{this.setHeaderEntries(It,cn)})}:this.headers=new Map}has(st){return this.init(),this.headers.has(st.toLowerCase())}get(st){this.init();const It=this.headers.get(st.toLowerCase());return It&&It.length>0?It[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(st){return this.init(),this.headers.get(st.toLowerCase())||null}append(st,It){return this.clone({name:st,value:It,op:"a"})}set(st,It){return this.clone({name:st,value:It,op:"s"})}delete(st,It){return this.clone({name:st,value:It,op:"d"})}maybeSetNormalizedName(st,It){this.normalizedNames.has(It)||this.normalizedNames.set(It,st)}init(){this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(st=>this.applyUpdate(st)),this.lazyUpdate=null))}copyFrom(st){st.init(),Array.from(st.headers.keys()).forEach(It=>{this.headers.set(It,st.headers.get(It)),this.normalizedNames.set(It,st.normalizedNames.get(It))})}clone(st){const It=new te;return It.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,It.lazyUpdate=(this.lazyUpdate||[]).concat([st]),It}applyUpdate(st){const It=st.name.toLowerCase();switch(st.op){case"a":case"s":let cn=st.value;if("string"==typeof cn&&(cn=[cn]),0===cn.length)return;this.maybeSetNormalizedName(st.name,It);const _n=("a"===st.op?this.headers.get(It):void 0)||[];_n.push(...cn),this.headers.set(It,_n);break;case"d":const En=st.value;if(En){let On=this.headers.get(It);if(!On)return;On=On.filter(ni=>-1===En.indexOf(ni)),0===On.length?(this.headers.delete(It),this.normalizedNames.delete(It)):this.headers.set(It,On)}else this.headers.delete(It),this.normalizedNames.delete(It)}}setHeaderEntries(st,It){const cn=(Array.isArray(It)?It:[It]).map(En=>En.toString()),_n=st.toLowerCase();this.headers.set(_n,cn),this.maybeSetNormalizedName(st,_n)}forEach(st){this.init(),Array.from(this.normalizedNames.keys()).forEach(It=>st(this.normalizedNames.get(It),this.headers.get(It)))}}class ce{encodeKey(st){return Ge(st)}encodeValue(st){return Ge(st)}decodeKey(st){return decodeURIComponent(st)}decodeValue(st){return decodeURIComponent(st)}}const Re=/%(\d[a-f0-9])/gi,mt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ge(ht){return encodeURIComponent(ht).replace(Re,(st,It)=>mt[It]??st)}function Lt(ht){return`${ht}`}class je{constructor(st={}){if(this.updates=null,this.cloneFrom=null,this.encoder=st.encoder||new ce,st.fromString){if(st.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _e(ht,st){const It=new Map;return ht.length>0&&ht.replace(/^\?/,"").split("&").forEach(_n=>{const En=_n.indexOf("="),[On,ni]=-1==En?[st.decodeKey(_n),""]:[st.decodeKey(_n.slice(0,En)),st.decodeValue(_n.slice(En+1))],Vn=It.get(On)||[];Vn.push(ni),It.set(On,Vn)}),It}(st.fromString,this.encoder)}else st.fromObject?(this.map=new Map,Object.keys(st.fromObject).forEach(It=>{const cn=st.fromObject[It],_n=Array.isArray(cn)?cn.map(Lt):[Lt(cn)];this.map.set(It,_n)})):this.map=null}has(st){return this.init(),this.map.has(st)}get(st){this.init();const It=this.map.get(st);return It?It[0]:null}getAll(st){return this.init(),this.map.get(st)||null}keys(){return this.init(),Array.from(this.map.keys())}append(st,It){return this.clone({param:st,value:It,op:"a"})}appendAll(st){const It=[];return Object.keys(st).forEach(cn=>{const _n=st[cn];Array.isArray(_n)?_n.forEach(En=>{It.push({param:cn,value:En,op:"a"})}):It.push({param:cn,value:_n,op:"a"})}),this.clone(It)}set(st,It){return this.clone({param:st,value:It,op:"s"})}delete(st,It){return this.clone({param:st,value:It,op:"d"})}toString(){return this.init(),this.keys().map(st=>{const It=this.encoder.encodeKey(st);return this.map.get(st).map(cn=>It+"="+this.encoder.encodeValue(cn)).join("&")}).filter(st=>""!==st).join("&")}clone(st){const It=new je({encoder:this.encoder});return It.cloneFrom=this.cloneFrom||this,It.updates=(this.updates||[]).concat(st),It}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(st=>this.map.set(st,this.cloneFrom.map.get(st))),this.updates.forEach(st=>{switch(st.op){case"a":case"s":const It=("a"===st.op?this.map.get(st.param):void 0)||[];It.push(Lt(st.value)),this.map.set(st.param,It);break;case"d":if(void 0===st.value){this.map.delete(st.param);break}{let cn=this.map.get(st.param)||[];const _n=cn.indexOf(Lt(st.value));-1!==_n&&cn.splice(_n,1),cn.length>0?this.map.set(st.param,cn):this.map.delete(st.param)}}}),this.cloneFrom=this.updates=null)}}class xt{constructor(){this.map=new Map}set(st,It){return this.map.set(st,It),this}get(st){return this.map.has(st)||this.map.set(st,st.defaultValue()),this.map.get(st)}delete(st){return this.map.delete(st),this}has(st){return this.map.has(st)}keys(){return this.map.keys()}}function Zt(ht){return typeof ArrayBuffer<"u"&&ht instanceof ArrayBuffer}function yt(ht){return typeof Blob<"u"&&ht instanceof Blob}function un(ht){return typeof FormData<"u"&&ht instanceof FormData}class tn{constructor(st,It,cn,_n){let En;if(this.url=It,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=st.toUpperCase(),function St(ht){switch(ht){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||_n?(this.body=void 0!==cn?cn:null,En=_n):En=cn,En&&(this.reportProgress=!!En.reportProgress,this.withCredentials=!!En.withCredentials,En.responseType&&(this.responseType=En.responseType),En.headers&&(this.headers=En.headers),En.context&&(this.context=En.context),En.params&&(this.params=En.params)),this.headers||(this.headers=new te),this.context||(this.context=new xt),this.params){const On=this.params.toString();if(0===On.length)this.urlWithParams=It;else{const ni=It.indexOf("?");this.urlWithParams=It+(-1===ni?"?":niKr.set(vr,st.setHeaders[vr]),Vn)),st.setParams&&(fr=Object.keys(st.setParams).reduce((Kr,vr)=>Kr.set(vr,st.setParams[vr]),fr)),new tn(It,cn,En,{params:fr,headers:Vn,context:ki,reportProgress:ni,responseType:_n,withCredentials:On})}}var wn=function(ht){return ht[ht.Sent=0]="Sent",ht[ht.UploadProgress=1]="UploadProgress",ht[ht.ResponseHeader=2]="ResponseHeader",ht[ht.DownloadProgress=3]="DownloadProgress",ht[ht.Response=4]="Response",ht[ht.User=5]="User",ht}(wn||{});class Ln{constructor(st,It=200,cn="OK"){this.headers=st.headers||new te,this.status=void 0!==st.status?st.status:It,this.statusText=st.statusText||cn,this.url=st.url||null,this.ok=this.status>=200&&this.status<300}}class Yn extends Ln{constructor(st={}){super(st),this.type=wn.ResponseHeader}clone(st={}){return new Yn({headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}class ti extends Ln{constructor(st={}){super(st),this.type=wn.Response,this.body=void 0!==st.body?st.body:null}clone(st={}){return new ti({body:void 0!==st.body?st.body:this.body,headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}class gi extends Ln{constructor(st){super(st,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${st.url||"(unknown url)"}`:`Http failure response for ${st.url||"(unknown url)"}: ${st.status} ${st.statusText}`,this.error=st.error||null}}function Rn(ht,st){return{body:st,headers:ht.headers,context:ht.context,observe:ht.observe,params:ht.params,reportProgress:ht.reportProgress,responseType:ht.responseType,withCredentials:ht.withCredentials}}let dt=(()=>{class ht{constructor(It){this.handler=It}request(It,cn,_n={}){let En;if(It instanceof tn)En=It;else{let Vn,fr;Vn=_n.headers instanceof te?_n.headers:new te(_n.headers),_n.params&&(fr=_n.params instanceof je?_n.params:new je({fromObject:_n.params})),En=new tn(It,cn,void 0!==_n.body?_n.body:null,{headers:Vn,context:_n.context,params:fr,reportProgress:_n.reportProgress,responseType:_n.responseType||"json",withCredentials:_n.withCredentials})}const On=(0,l.of)(En).pipe((0,S.b)(Vn=>this.handler.handle(Vn)));if(It instanceof tn||"events"===_n.observe)return On;const ni=On.pipe((0,w.h)(Vn=>Vn instanceof ti));switch(_n.observe||"body"){case"body":switch(En.responseType){case"arraybuffer":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&!(Vn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Vn.body}));case"blob":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&!(Vn.body instanceof Blob))throw new Error("Response is not a Blob.");return Vn.body}));case"text":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&"string"!=typeof Vn.body)throw new Error("Response is not a string.");return Vn.body}));default:return ni.pipe((0,n.U)(Vn=>Vn.body))}case"response":return ni;default:throw new Error(`Unreachable: unhandled observe type ${_n.observe}}`)}}delete(It,cn={}){return this.request("DELETE",It,cn)}get(It,cn={}){return this.request("GET",It,cn)}head(It,cn={}){return this.request("HEAD",It,cn)}jsonp(It,cn){return this.request("JSONP",It,{params:(new je).append(cn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(It,cn={}){return this.request("OPTIONS",It,cn)}patch(It,cn,_n={}){return this.request("PATCH",It,Rn(_n,cn))}post(It,cn,_n={}){return this.request("POST",It,Rn(_n,cn))}put(It,cn,_n={}){return this.request("PUT",It,Rn(_n,cn))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(ue))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();function Ze(ht,st){return st(ht)}function rt(ht,st){return(It,cn)=>st.intercept(It,{handle:_n=>ht(_n,cn)})}const Nt=new e.OlP(""),Qt=new e.OlP(""),nn=new e.OlP("");function Dn(){let ht=null;return(st,It)=>{null===ht&&(ht=((0,e.f3M)(Nt,{optional:!0})??[]).reduceRight(rt,Ze));const cn=(0,e.f3M)(e.HDt),_n=cn.add();return ht(st,It).pipe((0,Z.x)(()=>cn.remove(_n)))}}let Ot=(()=>{class ht extends ue{constructor(It,cn){super(),this.backend=It,this.injector=cn,this.chain=null,this.pendingTasks=(0,e.f3M)(e.HDt)}handle(It){if(null===this.chain){const _n=Array.from(new Set([...this.injector.get(Qt),...this.injector.get(nn,[])]));this.chain=_n.reduceRight((En,On)=>function bt(ht,st,It){return(cn,_n)=>It.runInContext(()=>st(cn,En=>ht(En,_n)))}(En,On,this.injector),Ze)}const cn=this.pendingTasks.add();return this.chain(It,_n=>this.backend.handle(_n)).pipe((0,Z.x)(()=>this.pendingTasks.remove(cn)))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(se),e.LFG(e.lqb))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();const ot=/^\)\]\}',?\n/;let Ft=(()=>{class ht{constructor(It){this.xhrFactory=It}handle(It){if("JSONP"===It.method)throw new e.vHH(-2800,!1);const cn=this.xhrFactory;return(cn.\u0275loadImpl?(0,D.D)(cn.\u0275loadImpl()):(0,l.of)(null)).pipe((0,ee.w)(()=>new I.y(En=>{const On=cn.build();if(On.open(It.method,It.urlWithParams),It.withCredentials&&(On.withCredentials=!0),It.headers.forEach((Ji,tr)=>On.setRequestHeader(Ji,tr.join(","))),It.headers.has("Accept")||On.setRequestHeader("Accept","application/json, text/plain, */*"),!It.headers.has("Content-Type")){const Ji=It.detectContentTypeHeader();null!==Ji&&On.setRequestHeader("Content-Type",Ji)}if(It.responseType){const Ji=It.responseType.toLowerCase();On.responseType="json"!==Ji?Ji:"text"}const ni=It.serializeBody();let Vn=null;const fr=()=>{if(null!==Vn)return Vn;const Ji=On.statusText||"OK",tr=new te(On.getAllResponseHeaders()),_i=function Se(ht){return"responseURL"in ht&&ht.responseURL?ht.responseURL:/^X-Request-URL:/m.test(ht.getAllResponseHeaders())?ht.getResponseHeader("X-Request-URL"):null}(On)||It.url;return Vn=new Yn({headers:tr,status:On.status,statusText:Ji,url:_i}),Vn},ki=()=>{let{headers:Ji,status:tr,statusText:_i,url:bo}=fr(),pr=null;204!==tr&&(pr=typeof On.response>"u"?On.responseText:On.response),0===tr&&(tr=pr?200:0);let br=tr>=200&&tr<300;if("json"===It.responseType&&"string"==typeof pr){const $n=pr;pr=pr.replace(ot,"");try{pr=""!==pr?JSON.parse(pr):null}catch(yo){pr=$n,br&&(br=!1,pr={error:yo,text:pr})}}br?(En.next(new ti({body:pr,headers:Ji,status:tr,statusText:_i,url:bo||void 0})),En.complete()):En.error(new gi({error:pr,headers:Ji,status:tr,statusText:_i,url:bo||void 0}))},Kr=Ji=>{const{url:tr}=fr(),_i=new gi({error:Ji,status:On.status||0,statusText:On.statusText||"Unknown Error",url:tr||void 0});En.error(_i)};let vr=!1;const Bi=Ji=>{vr||(En.next(fr()),vr=!0);let tr={type:wn.DownloadProgress,loaded:Ji.loaded};Ji.lengthComputable&&(tr.total=Ji.total),"text"===It.responseType&&On.responseText&&(tr.partialText=On.responseText),En.next(tr)},co=Ji=>{let tr={type:wn.UploadProgress,loaded:Ji.loaded};Ji.lengthComputable&&(tr.total=Ji.total),En.next(tr)};return On.addEventListener("load",ki),On.addEventListener("error",Kr),On.addEventListener("timeout",Kr),On.addEventListener("abort",Kr),It.reportProgress&&(On.addEventListener("progress",Bi),null!==ni&&On.upload&&On.upload.addEventListener("progress",co)),On.send(ni),En.next({type:wn.Sent}),()=>{On.removeEventListener("error",Kr),On.removeEventListener("abort",Kr),On.removeEventListener("load",ki),On.removeEventListener("timeout",Kr),It.reportProgress&&(On.removeEventListener("progress",Bi),null!==ni&&On.upload&&On.upload.removeEventListener("progress",co)),On.readyState!==On.DONE&&On.abort()}})))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(re.JF))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();const lt=new e.OlP("XSRF_ENABLED"),Ut=new e.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),gn=new e.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class An{}let jn=(()=>{class ht{constructor(It,cn,_n){this.doc=It,this.platform=cn,this.cookieName=_n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const It=this.doc.cookie||"";return It!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,re.Mx)(It,this.cookieName),this.lastCookieString=It),this.lastToken}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(re.K0),e.LFG(e.Lbi),e.LFG(Ut))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();function ai(ht,st){const It=ht.url.toLowerCase();if(!(0,e.f3M)(lt)||"GET"===ht.method||"HEAD"===ht.method||It.startsWith("http://")||It.startsWith("https://"))return st(ht);const cn=(0,e.f3M)(An).getToken(),_n=(0,e.f3M)(gn);return null!=cn&&!ht.headers.has(_n)&&(ht=ht.clone({headers:ht.headers.set(_n,cn)})),st(ht)}var oi=function(ht){return ht[ht.Interceptors=0]="Interceptors",ht[ht.LegacyInterceptors=1]="LegacyInterceptors",ht[ht.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ht[ht.NoXsrfProtection=3]="NoXsrfProtection",ht[ht.JsonpSupport=4]="JsonpSupport",ht[ht.RequestsMadeViaParent=5]="RequestsMadeViaParent",ht[ht.Fetch=6]="Fetch",ht}(oi||{});function qt(...ht){const st=[dt,Ft,Ot,{provide:ue,useExisting:Ot},{provide:se,useExisting:Ft},{provide:Qt,useValue:ai,multi:!0},{provide:lt,useValue:!0},{provide:An,useClass:jn}];for(const It of ht)st.push(...It.\u0275providers);return(0,e.MR2)(st)}const G=new e.OlP("LEGACY_INTERCEPTOR_FN");function U(){return function Jn(ht,st){return{\u0275kind:ht,\u0275providers:st}}(oi.LegacyInterceptors,[{provide:G,useFactory:Dn},{provide:Qt,useExisting:G,multi:!0}])}let Te=(()=>{class ht{static#e=this.\u0275fac=function(cn){return new(cn||ht)};static#t=this.\u0275mod=e.oAB({type:ht});static#n=this.\u0275inj=e.cJS({providers:[qt(U())]})}return ht})()},5879:(ft,Ie,C)=>{"use strict";C.d(Ie,{$8M:()=>Wd,$WT:()=>Ha,$Z:()=>K_,AFp:()=>S_,ALo:()=>Qb,AaK:()=>se,Akn:()=>Cu,AsE:()=>mv,B6R:()=>oo,BQk:()=>Dm,CHM:()=>Jl,CRH:()=>_y,DdM:()=>Ub,EJc:()=>IC,EiD:()=>hs,EpF:()=>a1,F$t:()=>f1,F4k:()=>l1,FYo:()=>jp,FiY:()=>Wr,Gf:()=>fy,GfV:()=>Zp,GkF:()=>rv,Gpc:()=>ce,Gre:()=>z1,HDt:()=>Yy,Hsn:()=>p1,Ikx:()=>vv,JOm:()=>fa,JVY:()=>vu,JZr:()=>Lt,Jf7:()=>Uu,Jzz:()=>G1,KtG:()=>Il,L6k:()=>o,LAX:()=>i,LFG:()=>wt,LMc:()=>ZT,LSH:()=>b,Lbi:()=>Ef,Lck:()=>MM,MAs:()=>r1,MGl:()=>Em,MMx:()=>kb,MR2:()=>Rc,N_p:()=>Cv,NdJ:()=>sv,O4$:()=>dc,Ojb:()=>Jm,OlP:()=>Ut,Oqu:()=>_v,P3R:()=>Gn,PXZ:()=>sT,Q6J:()=>tv,QGY:()=>ov,QbO:()=>Km,Qsj:()=>P_,R0b:()=>jl,RDi:()=>ah,Rgc:()=>y_,SBq:()=>Vh,SDv:()=>Eb,Sil:()=>LC,Suo:()=>py,TTD:()=>xi,TgZ:()=>Mm,Tol:()=>O1,Udp:()=>hv,VKq:()=>Vb,VuI:()=>VT,W1O:()=>by,WFA:()=>av,WLB:()=>jb,X6Q:()=>pT,XFs:()=>Ce,Xpm:()=>kr,Xq5:()=>vm,Xts:()=>Ea,Y36:()=>fh,YKP:()=>Ib,YNc:()=>e1,Yjl:()=>qi,Yz7:()=>Nt,Z0I:()=>Ot,ZZ4:()=>e0,_Bn:()=>Ob,_UZ:()=>iv,_Vd:()=>Af,_c5:()=>OT,_uU:()=>F1,aQg:()=>t0,c2e:()=>Fy,cJS:()=>nn,cg1:()=>yv,d8E:()=>bv,dDg:()=>nT,dqk:()=>Ft,eBb:()=>t,eFA:()=>$y,eJc:()=>Yv,ekj:()=>fv,eoX:()=>Zy,evT:()=>zh,f3M:()=>fe,g9A:()=>Df,gHi:()=>Gp,h0i:()=>Uf,hGG:()=>IT,hij:()=>Om,iGM:()=>hy,ifc:()=>On,ip1:()=>Ny,jDz:()=>Lb,kEZ:()=>Zb,kL8:()=>ib,kcU:()=>sd,ktI:()=>lp,l5B:()=>zb,lG2:()=>Aa,lcZ:()=>Xb,lnq:()=>gv,lqb:()=>bu,lri:()=>Vy,mCW:()=>N,n5z:()=>_c,n_E:()=>Pm,oAB:()=>Vo,oJD:()=>f,oxw:()=>h1,pB0:()=>s,q3G:()=>Cs,qFp:()=>zT,qLn:()=>uh,qOj:()=>pm,qZA:()=>Cm,qbA:()=>Gb,qzn:()=>Hd,rWj:()=>jy,rg0:()=>pn,s9C:()=>lv,sBO:()=>_T,s_b:()=>Ym,soG:()=>Hm,tHW:()=>Mv,tb:()=>$v,tp0:()=>Na,uIk:()=>Cn,vHH:()=>je,vpe:()=>vo,vpz:()=>W1,wAp:()=>Tp,xi3:()=>ey,xp6:()=>Cg,ynx:()=>Tm,z2F:()=>Ap,z3N:()=>qc,zSh:()=>qf,zW0:()=>Kg,zs3:()=>Vd});var e=C(8645),l=C(7394),D=C(5592),I=C(3019),S=C(5619),w=C(2096),n=C(3020),Z=C(4664),ee=C(3997);function re(r){for(let a in r)if(r[a]===re)return a;throw Error("Could not find renamed property on target object.")}function ue(r,a){for(const d in a)a.hasOwnProperty(d)&&!r.hasOwnProperty(d)&&(r[d]=a[d])}function se(r){if("string"==typeof r)return r;if(Array.isArray(r))return"["+r.map(se).join(", ")+"]";if(null==r)return""+r;if(r.overriddenName)return`${r.overriddenName}`;if(r.name)return`${r.name}`;const a=r.toString();if(null==a)return""+a;const d=a.indexOf("\n");return-1===d?a:a.substring(0,d)}function te(r,a){return null==r||""===r?null===a?"":a:null==a||""===a?r:r+" "+a}const oe=re({__forward_ref__:re});function ce(r){return r.__forward_ref__=ce,r.toString=function(){return se(this())},r}function _e(r){return Re(r)?r():r}function Re(r){return"function"==typeof r&&r.hasOwnProperty(oe)&&r.__forward_ref__===ce}function mt(r){return r&&!!r.\u0275providers}const Lt="https://g.co/ng/security#xss";class je extends Error{constructor(a,d){super(function Tt(r,a){return`NG0${Math.abs(r)}${a?": "+a:""}`}(a,d)),this.code=a}}function xt(r){return"string"==typeof r?r:null==r?"":String(r)}function Jt(r,a){throw new je(-201,!1)}function he(r,a,d,_){throw new Error(`ASSERTION ERROR: ${r}`+(null==_?"":` [Expected=> ${d} ${_} ${a} <=Actual]`))}function Nt(r){return{token:r.token,providedIn:r.providedIn||null,factory:r.factory,value:void 0}}function nn(r){return{providers:r.providers||[],imports:r.imports||[]}}function Dn(r){return rn(r,Wn)||rn(r,ct)}function Ot(r){return null!==Dn(r)}function rn(r,a){return r.hasOwnProperty(a)?r[a]:null}function ei(r){return r&&(r.hasOwnProperty(Ve)||r.hasOwnProperty(Ct))?r[Ve]:null}const Wn=re({\u0275prov:re}),Ve=re({\u0275inj:re}),ct=re({ngInjectableDef:re}),Ct=re({ngInjectorDef:re});var Ce=function(r){return r[r.Default=0]="Default",r[r.Host=1]="Host",r[r.Self=2]="Self",r[r.SkipSelf=4]="SkipSelf",r[r.Optional=8]="Optional",r}(Ce||{});let J;function ae(){return J}function Oe(r){const a=J;return J=r,a}function ot(r,a,d){const _=Dn(r);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:d&Ce.Optional?null:void 0!==a?a:void Jt(se(r))}const Ft=globalThis;class Ut{constructor(a,d){this._desc=a,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof d?this.__NG_ELEMENT_ID__=d:void 0!==d&&(this.\u0275prov=Nt({token:this,providedIn:d.providedIn||"root",factory:d.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const U={},ve="__NG_DI_FLAG__",Pe="ngTempTokenPath",We=/\n/gm,be="__source";let Te;function Wt(r){const a=Te;return Te=r,a}function Pn(r,a=Ce.Default){if(void 0===Te)throw new je(-203,!1);return null===Te?ot(r,void 0,a):Te.get(r,a&Ce.Optional?null:void 0,a)}function wt(r,a=Ce.Default){return(ae()||Pn)(_e(r),a)}function fe(r,a=Ce.Default){return wt(r,Mt(a))}function Mt(r){return typeof r>"u"||"number"==typeof r?r:0|(r.optional&&8)|(r.host&&1)|(r.self&&2)|(r.skipSelf&&4)}function Vt(r){const a=[];for(let d=0;da){Y=A-1;break}}}for(;AA?"":x[Rt+1].toLowerCase();const ln=8&_?Xt:null;if(ln&&-1!==tr(ln,De,0)||2&_&&De!==Xt){if(yr(_))return!1;Y=!0}}}}else{if(!Y&&!yr(_)&&!yr(X))return!1;if(Y&&yr(X))continue;Y=!1,_=X|1&_}}return yr(_)||Y}function yr(r){return 0==(1&r)}function Gs(r,a,d,_){if(null===a)return-1;let x=0;if(_||!d){let A=!1;for(;x-1)for(d++;d0?'="'+z+'"':"")+"]"}else 8&_?x+="."+Y:4&_&&(x+=" "+Y);else""!==x&&!yr(Y)&&(a+=$s(A,x),x=""),_=Y,A=A||!yr(_);d++}return""!==x&&(a+=$s(A,x)),a}function kr(r){return _n(()=>{const a=al(r),d={...a,decls:r.decls,vars:r.vars,template:r.template,consts:r.consts||null,ngContentSelectors:r.ngContentSelectors,onPush:r.changeDetection===En.OnPush,directiveDefs:null,pipeDefs:null,dependencies:a.standalone&&r.dependencies||null,getStandaloneInjector:null,signals:r.signals??!1,data:r.data||{},encapsulation:r.encapsulation||On.Emulated,styles:r.styles||Vn,_:null,schemas:r.schemas||null,tView:null,id:""};Vr(d);const _=r.dependencies;return d.directiveDefs=Es(_,!1),d.pipeDefs=Es(_,!0),d.id=function ll(r){let a=0;const d=[r.selectors,r.ngContentSelectors,r.hostVars,r.hostAttrs,r.consts,r.vars,r.decls,r.encapsulation,r.standalone,r.signals,r.exportAs,JSON.stringify(r.inputs),JSON.stringify(r.outputs),Object.getOwnPropertyNames(r.type.prototype),!!r.contentQueries,!!r.viewQuery].join("|");for(const x of d)a=Math.imul(31,a)+x.charCodeAt(0)<<0;return a+=2147483648,"c"+a}(d),d})}function oo(r,a,d){const _=r.\u0275cmp;_.directiveDefs=Es(a,!1),_.pipeDefs=Es(d,!0)}function fs(r){return Li(r)||Yr(r)}function Sa(r){return null!==r}function Vo(r){return _n(()=>({type:r.type,bootstrap:r.bootstrap||Vn,declarations:r.declarations||Vn,imports:r.imports||Vn,exports:r.exports||Vn,transitiveCompileScopes:null,schemas:r.schemas||null,id:r.id||null}))}function Ks(r,a){if(null==r)return ni;const d={};for(const _ in r)if(r.hasOwnProperty(_)){let x=r[_],A=x;Array.isArray(x)&&(A=x[1],x=x[0]),d[x]=_,a&&(a[x]=A)}return d}function Aa(r){return _n(()=>{const a=al(r);return Vr(a),a})}function qi(r){return{type:r.type,name:r.name,factory:null,pure:!1!==r.pure,standalone:!0===r.standalone,onDestroy:r.type.prototype.ngOnDestroy||null}}function Li(r){return r[fr]||null}function Yr(r){return r[ki]||null}function dr(r){return r[Kr]||null}function Ha(r){const a=Li(r)||Yr(r)||dr(r);return null!==a&&a.standalone}function wr(r,a){const d=r[vr]||null;if(!d&&!0===a)throw new Error(`Type ${se(r)} does not have '\u0275mod' property.`);return d}function al(r){const a={};return{type:r.type,providersResolver:null,factory:null,hostBindings:r.hostBindings||null,hostVars:r.hostVars||0,hostAttrs:r.hostAttrs||null,contentQueries:r.contentQueries||null,declaredInputs:a,inputTransforms:null,inputConfig:r.inputs||ni,exportAs:r.exportAs||null,standalone:!0===r.standalone,signals:!0===r.signals,selectors:r.selectors||Vn,viewQuery:r.viewQuery||null,features:r.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ks(r.inputs,a),outputs:Ks(r.outputs)}}function Vr(r){r.features?.forEach(a=>a(r))}function Es(r,a){if(!r)return null;const d=a?dr:fs;return()=>("function"==typeof r?r():r).map(_=>d(_)).filter(Sa)}const er=0,qn=1,bi=2,_r=3,wo=4,jo=5,no=6,Ao=7,nr=8,ps=9,va=10,Ti=11,qs=12,ba=13,Qs=14,wi=15,Oo=16,Ko=17,or=18,Xs=19,Ml=20,Sr=21,jr=22,xo=23,_s=24,Ai=25,Io=1,Ys=2,fo=7,ms=9,Br=11;function po(r){return Array.isArray(r)&&"object"==typeof r[Io]}function io(r){return Array.isArray(r)&&!0===r[Io]}function qo(r){return 0!=(4&r.flags)}function Ss(r){return r.componentOffset>-1}function ya(r){return 1==(1&r.flags)}function sr(r){return!!r.template}function Oa(r){return 0!=(512&r[bi])}function Xo(r,a){return r.hasOwnProperty(Bi)?r[Bi]:null}let qr=null,Bs=!1;function Ro(r){const a=qr;return qr=r,a}const Va={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Gl(r){if(!Is(r)||r.dirty){if(!r.producerMustRecompute(r)&&!gs(r))return void(r.dirty=!1);r.producerRecomputeValue(r),r.dirty=!1}}function es(r){r.dirty=!0,function Hs(r){if(void 0===r.liveConsumerNode)return;const a=Bs;Bs=!0;try{for(const d of r.liveConsumerNode)d.dirty||es(d)}finally{Bs=a}}(r),r.consumerMarkedDirty?.(r)}function ts(r){return r&&(r.nextProducerIndex=0),Ro(r)}function Wl(r,a){if(Ro(a),r&&void 0!==r.producerNode&&void 0!==r.producerIndexOfThis&&void 0!==r.producerLastReadVersion){if(Is(r))for(let d=r.nextProducerIndex;dr.nextProducerIndex;)r.producerNode.pop(),r.producerLastReadVersion.pop(),r.producerIndexOfThis.pop()}}function gs(r){Za(r);for(let a=0;a0}function Za(r){r.producerNode??=[],r.producerIndexOfThis??=[],r.producerLastReadVersion??=[]}let Ga=null;function pn(r){const a=Ro(null);try{return r()}finally{Ro(a)}}const li=()=>{},ur=(()=>({...Va,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:r=>{r.schedule(r.ref)},hasRun:!1,cleanupFn:li}))();class ar{constructor(a,d,_){this.previousValue=a,this.currentValue=d,this.firstChange=_}isFirstChange(){return this.firstChange}}function xi(){return Ar}function Ar(r){return r.type.prototype.ngOnChanges&&(r.setInput=mr),Nr}function Nr(){const r=bs(this),a=r?.current;if(a){const d=r.previous;if(d===ni)r.previous=a;else for(let _ in a)d[_]=a[_];r.current=null,this.ngOnChanges(a)}}function mr(r,a,d,_){const x=this.declaredInputs[d],A=bs(r)||function $a(r,a){return r[vs]=a}(r,{previous:ni,current:null}),Y=A.current||(A.current={}),z=A.previous,X=z[x];Y[x]=new ar(X&&X.currentValue,a,z===ni),r[_]=a}xi.ngInherit=!0;const vs="__ngSimpleChanges__";function bs(r){return r[vs]||null}const Qr=function(r,a,d){},zr="svg";function yi(r){for(;Array.isArray(r);)r=r[er];return r}function cl(r,a){return yi(a[r])}function _o(r,a){return yi(a[r.index])}function Xi(r,a){return r.data[a]}function dl(r,a){return r[a]}function ko(r,a){const d=a[r];return po(d)?d:d[er]}function Us(r,a){return null==a?null:r[a]}function Vs(r){r[Ko]=0}function Nc(r){1024&r[bi]||(r[bi]|=1024,To(r,1))}function ac(r){1024&r[bi]&&(r[bi]&=-1025,To(r,-1))}function To(r,a){let d=r[_r];if(null===d)return;d[jo]+=a;let _=d;for(d=d[_r];null!==d&&(1===a&&1===_[jo]||-1===a&&0===_[jo]);)d[jo]+=a,_=d,d=d[_r]}function nd(r,a){if(256==(256&r[bi]))throw new je(911,!1);null===r[Sr]&&(r[Sr]=[]),r[Sr].push(a)}const Ei={lFrame:Ps(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function cc(){return Ei.bindingsEnabled}function hl(){return null!==Ei.skipHydrationRootTNode}function kn(){return Ei.lFrame.lView}function Fi(){return Ei.lFrame.tView}function Jl(r){return Ei.lFrame.contextLView=r,r[nr]}function Il(r){return Ei.lFrame.contextLView=null,r}function en(){let r=so();for(;null!==r&&64===r.type;)r=r.parent;return r}function so(){return Ei.lFrame.currentTNode}function gt(){const r=Ei.lFrame,a=r.currentTNode;return r.isParent?a:a.parent}function la(r,a){const d=Ei.lFrame;d.currentTNode=r,d.isParent=a}function Ra(){return Ei.lFrame.isParent}function Ls(){Ei.lFrame.isParent=!1}function mo(){const r=Ei.lFrame;let a=r.bindingRootIndex;return-1===a&&(a=r.bindingRootIndex=r.tView.bindingStartIndex),a}function ka(){return Ei.lFrame.bindingIndex}function W(){return Ei.lFrame.bindingIndex++}function ne(r){const a=Ei.lFrame,d=a.bindingIndex;return a.bindingIndex=a.bindingIndex+r,d}function ie(r){Ei.lFrame.inI18n=r}function xe(r,a){const d=Ei.lFrame;d.bindingIndex=d.bindingRootIndex=r,Pt(a)}function Pt(r){Ei.lFrame.currentDirectiveIndex=r}function mn(r){const a=Ei.lFrame.currentDirectiveIndex;return-1===a?null:r[a]}function hn(){return Ei.lFrame.currentQueryIndex}function on(r){Ei.lFrame.currentQueryIndex=r}function ji(r){const a=r[qn];return 2===a.type?a.declTNode:1===a.type?r[no]:null}function Gr(r,a,d){if(d&Ce.SkipSelf){let x=a,A=r;for(;!(x=x.parent,null!==x||d&Ce.Host||(x=ji(A),null===x||(A=A[Qs],10&x.type))););if(null===x)return!1;a=x,r=A}const _=Ei.lFrame=mi();return _.currentTNode=a,_.lView=r,!0}function $i(r){const a=mi(),d=r[qn];Ei.lFrame=a,a.currentTNode=d.firstChild,a.lView=r,a.tView=d,a.contextLView=r,a.bindingIndex=d.bindingStartIndex,a.inI18n=!1}function mi(){const r=Ei.lFrame,a=null===r?null:r.child;return null===a?Ps(r):a}function Ps(r){const a={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:r,child:null,inI18n:!1};return null!==r&&(r.child=a),a}function fl(){const r=Ei.lFrame;return Ei.lFrame=r.parent,r.currentTNode=null,r.lView=null,r}const Rl=fl;function Ja(){const r=fl();r.isParent=!0,r.tView=null,r.selectedIndex=-1,r.contextLView=null,r.elementDepthCount=0,r.currentDirectiveIndex=-1,r.currentNamespace=null,r.bindingRootIndex=-1,r.bindingIndex=-1,r.currentQueryIndex=0}function Do(){return Ei.lFrame.selectedIndex}function qa(r){Ei.lFrame.selectedIndex=r}function xr(){const r=Ei.lFrame;return Xi(r.tView,r.selectedIndex)}function dc(){Ei.lFrame.currentNamespace=zr}function sd(){!function uc(){Ei.lFrame.currentNamespace=null}()}let Qa=!0;function js(){return Qa}function pl(r){Qa=r}function Pi(r,a){for(let d=a.directiveStart,_=a.directiveEnd;d<_;d++){const A=r.data[d].type.prototype,{ngAfterContentInit:Y,ngAfterContentChecked:z,ngAfterViewInit:X,ngAfterViewChecked:De,ngOnDestroy:Ke}=A;Y&&(r.contentHooks??=[]).push(-d,Y),z&&((r.contentHooks??=[]).push(d,z),(r.contentCheckHooks??=[]).push(d,z)),X&&(r.viewHooks??=[]).push(-d,X),De&&((r.viewHooks??=[]).push(d,De),(r.viewCheckHooks??=[]).push(d,De)),null!=Ke&&(r.destroyHooks??=[]).push(d,Ke)}}function Xa(r,a,d){Cd(r,a,3,d)}function ld(r,a,d,_){(3&r[bi])===d&&Cd(r,a,d,_)}function Sc(r,a){let d=r[bi];(3&d)===a&&(d&=8191,d+=1,r[bi]=d)}function Cd(r,a,d,_){const A=_??-1,Y=a.length-1;let z=0;for(let X=void 0!==_?65535&r[Ko]:0;X=_)break}else a[X]<0&&(r[Ko]+=65536),(z>13>16&&(3&r[bi])===a&&(r[bi]+=8192,el(z,A)):el(z,A)}const Yc=-1;class ca{constructor(a,d,_){this.factory=a,this.resolving=!1,this.canSeeViewProviders=d,this.injectImpl=_}}function wc(r){return r!==Yc}function kl(r){return 32767&r}function Ac(r,a){let d=function Ql(r){return r>>16}(r),_=a;for(;d>0;)_=_[Qs],d--;return _}let Hc=!0;function Eo(r){const a=Hc;return Hc=r,a}const cd=255,fc=5;let xc=0;const Po={};function Ll(r,a){const d=pc(r,a);if(-1!==d)return d;const _=a[qn];_.firstCreatePass&&(r.injectorIndex=a.length,as(_.data,r),as(a,null),as(_.blueprint,null));const x=ir(r,a),A=r.injectorIndex;if(wc(x)){const Y=kl(x),z=Ac(x,a),X=z[qn].data;for(let De=0;De<8;De++)a[A+De]=z[Y+De]|X[Y+De]}return a[A+8]=x,A}function as(r,a){r.push(0,0,0,0,0,0,0,0,a)}function pc(r,a){return-1===r.injectorIndex||r.parent&&r.parent.injectorIndex===r.injectorIndex||null===a[r.injectorIndex+8]?-1:r.injectorIndex}function ir(r,a){if(r.parent&&-1!==r.parent.injectorIndex)return r.parent.injectorIndex;let d=0,_=null,x=a;for(;null!==x;){if(_=Ad(x),null===_)return Yc;if(d++,x=x[Qs],-1!==_.injectorIndex)return _.injectorIndex|d<<16}return Yc}function k(r,a,d){!function da(r,a,d){let _;"string"==typeof d?_=d.charCodeAt(0)||0:d.hasOwnProperty(co)&&(_=d[co]),null==_&&(_=d[co]=xc++);const x=_&cd;a.data[r+(x>>fc)]|=1<=0?a&cd:Gd:a}(d);if("function"==typeof A){if(!Gr(a,r,_))return _&Ce.Host?pe(x,0,_):ke(a,d,_,x);try{let Y;if(Y=A(_),null!=Y||_&Ce.Optional)return Y;Jt()}finally{Rl()}}else if("number"==typeof A){let Y=null,z=pc(r,a),X=Yc,De=_&Ce.Host?a[wi][no]:null;for((-1===z||_&Ce.SkipSelf)&&(X=-1===z?ir(r,a):a[z+8],X!==Yc&&tl(_,!1)?(Y=a[qn],z=kl(X),a=Ac(X,a)):z=-1);-1!==z;){const Ke=a[qn];if(ws(A,z,Ke.data)){const Rt=xn(z,a,d,Y,_,De);if(Rt!==Po)return Rt}X=a[z+8],X!==Yc&&tl(_,a[qn].data[z+8]===De)&&ws(A,z,a)?(Y=Ke,z=kl(X),a=Ac(X,a)):z=-1}}return x}function xn(r,a,d,_,x,A){const Y=a[qn],z=Y.data[r+8],Ke=Mi(z,Y,d,null==_?Ss(z)&&Hc:_!=Y&&0!=(3&z.type),x&Ce.Host&&A===z);return null!==Ke?Oi(a,Y,Ke,z):Po}function Mi(r,a,d,_,x){const A=r.providerIndexes,Y=a.data,z=1048575&A,X=r.directiveStart,Ke=A>>20,Xt=x?z+Ke:r.directiveEnd;for(let ln=_?z:z+Ke;ln=X&&In.type===d)return ln}if(x){const ln=Y[X];if(ln&&sr(ln)&&ln.type===d)return X}return null}function Oi(r,a,d,_){let x=r[d];const A=a.data;if(function zd(r){return r instanceof ca}(x)){const Y=x;Y.resolving&&function Zt(r,a){const d=a?`. Dependency path: ${a.join(" > ")} > ${r}`:"";throw new je(-200,`Circular dependency in DI detected for ${r}${d}`)}(function St(r){return"function"==typeof r?r.name||r.toString():"object"==typeof r&&null!=r&&"function"==typeof r.type?r.type.name||r.type.toString():xt(r)}(A[d]));const z=Eo(Y.canSeeViewProviders);Y.resolving=!0;const De=Y.injectImpl?Oe(Y.injectImpl):null;Gr(r,_,Ce.Default);try{x=r[d]=Y.factory(void 0,A,r,_),a.firstCreatePass&&d>=_.directiveStart&&function ad(r,a,d){const{ngOnChanges:_,ngOnInit:x,ngDoCheck:A}=a.type.prototype;if(_){const Y=Ar(a);(d.preOrderHooks??=[]).push(r,Y),(d.preOrderCheckHooks??=[]).push(r,Y)}x&&(d.preOrderHooks??=[]).push(0-r,x),A&&((d.preOrderHooks??=[]).push(r,A),(d.preOrderCheckHooks??=[]).push(r,A))}(d,A[d],a)}finally{null!==De&&Oe(De),Eo(z),Y.resolving=!1,Rl()}}return x}function ws(r,a,d){return!!(d[a+(r>>fc)]&1<{const a=r.prototype.constructor,d=a[Bi]||Sd(a),_=Object.prototype;let x=Object.getPrototypeOf(r.prototype).constructor;for(;x&&x!==_;){const A=x[Bi]||Sd(x);if(A&&A!==d)return A;x=Object.getPrototypeOf(x)}return A=>new A})}function Sd(r){return Re(r)?()=>{const a=Sd(_e(r));return a&&a()}:Xo(r)}function Ad(r){const a=r[qn],d=a.type;return 2===d?a.declTNode:1===d?r[no]:null}function Wd(r){return function j(r,a){if("class"===a)return r.classes;if("style"===a)return r.styles;const d=r.attrs;if(d){const _=d.length;let x=0;for(;x<_;){const A=d[x];if(bo(A))break;if(0===A)x+=2;else if("number"==typeof A)for(x++;x<_&&"string"==typeof d[x];)x++;else{if(A===a)return d[x+1];x+=2}}}return null}(en(),r)}const ua="__parameters__";function zi(r,a,d){return _n(()=>{const _=function zo(r){return function(...d){if(r){const _=r(...d);for(const x in _)this[x]=_[x]}}}(a);function x(...A){if(this instanceof x)return _.apply(this,A),this;const Y=new x(...A);return z.annotation=Y,z;function z(X,De,Ke){const Rt=X.hasOwnProperty(ua)?X[ua]:Object.defineProperty(X,ua,{value:[]})[ua];for(;Rt.length<=Ke;)Rt.push(null);return(Rt[Ke]=Rt[Ke]||[]).push(Y),X}}return d&&(x.prototype=Object.create(d.prototype)),x.prototype.ngMetadataName=r,x.annotationCls=x,x})}function Gc(r,a){r.forEach(d=>Array.isArray(d)?Gc(d,a):a(d))}function qd(r,a,d){a>=r.length?r.push(d):r.splice(a,0,d)}function ml(r,a){return a>=r.length-1?r.pop():r.splice(a,1)[0]}function Oc(r,a){const d=[];for(let _=0;_=0?r[1|_]=d:(_=~_,function pi(r,a,d,_){let x=r.length;if(x==a)r.push(d,_);else if(1===x)r.push(_,r[0]),r[0]=d;else{for(x--,r.push(r[x-1],r[x]);x>a;)r[x]=r[x-2],x--;r[a]=d,r[a+1]=_}}(r,_,a,d)),_}function Mc(r,a){const d=No(r,a);if(d>=0)return r[1|d]}function No(r,a){return function Ye(r,a,d){let _=0,x=r.length>>d;for(;x!==_;){const A=_+(x-_>>1),Y=r[A<a?x=A:_=A+1}return~(x<|^->||--!>|)/g,ef="\u200b$1\u200b";const au=new Map;let vh=0;const $u="__ngContext__";function rl(r,a){po(a)?(r[$u]=a[Xs],function nf(r){au.set(r[Xs],r)}(a)):r[$u]=a}let xh;function Mh(r,a){return xh(r,a)}function du(r){const a=r[_r];return io(a)?a[_r]:a}function nc(r){return lf(r[qs])}function Ch(r){return lf(r[wo])}function lf(r){for(;null!==r&&!io(r);)r=r[wo];return r}function uu(r,a,d,_,x){if(null!=_){let A,Y=!1;io(_)?A=_:po(_)&&(Y=!0,_=_[er]);const z=yi(_);0===r&&null!==d?null==x?lo(a,d,z):Jc(a,d,z,x||null,!0):1===r&&null!==d?Jc(a,d,z,x||null,!0):2===r?function Yu(r,a,d){const _=Pu(r,a);_&&function ud(r,a,d,_){r.removeChild(a,d,_)}(r,_,a,d)}(a,z,Y):3===r&&a.destroyNode(z),null!=A&&function Bu(r,a,d,_,x){const A=d[fo];A!==yi(d)&&uu(a,r,_,A,x);for(let z=Br;za.replace(Xh,ef))}(a))}function hu(r,a,d){return r.createElement(a,d)}function Dh(r,a){const d=r[ms],_=d.indexOf(a);ac(a),d.splice(_,1)}function Lu(r,a){if(r.length<=Br)return;const d=Br+a,_=r[d];if(_){const x=_[Oo];null!==x&&x!==r&&Dh(x,_),a>0&&(r[d-1][wo]=_[wo]);const A=ml(r,Br+a);!function cf(r,a){_u(r,a,a[Ti],2,null,null),a[er]=null,a[no]=null}(_[qn],_);const Y=A[or];null!==Y&&Y.detachView(A[qn]),_[_r]=null,_[wo]=null,_[bi]&=-129}return _}function eh(r,a){if(!(256&a[bi])){const d=a[Ti];a[xo]&&ns(a[xo]),a[_s]&&ns(a[_s]),d.destroyNode&&_u(r,a,d,3,null,null),function hf(r){let a=r[qs];if(!a)return Ld(r[qn],r);for(;a;){let d=null;if(po(a))d=a[qs];else{const _=a[Br];_&&(d=_)}if(!d){for(;a&&!a[wo]&&a!==r;)po(a)&&Ld(a[qn],a),a=a[_r];null===a&&(a=r),po(a)&&Ld(a[qn],a),d=a&&a[wo]}a=d}}(a)}}function Ld(r,a){if(!(256&a[bi])){a[bi]&=-129,a[bi]|=256,function ol(r,a){let d;if(null!=r&&null!=(d=r.destroyHooks))for(let _=0;_=0?_[Y]():_[-Y].unsubscribe(),A+=2}else d[A].call(_[d[A+1]]);null!==_&&(a[Ao]=null);const x=a[Sr];if(null!==x){a[Sr]=null;for(let A=0;A-1){const{encapsulation:A}=r.data[_.directiveStart+x];if(A===On.None||A===On.Emulated)return null}return _o(_,d)}}function Jc(r,a,d,_,x){r.insertBefore(a,d,_,x)}function lo(r,a,d){r.appendChild(a,d)}function fu(r,a,d,_,x){null!==_?Jc(r,a,d,_,x):lo(r,a,d)}function Pu(r,a){return r.parentNode(a)}function Eh(r,a,d){return Sh(r,a,d)}function th(r,a,d){return 40&r.type?_o(r,d):null}let nh,Yo,Ih,tu,Sh=th;function eu(r,a){Sh=r,nh=a}function Dc(r,a,d,_){const x=Pd(r,_,a),A=a[Ti],z=Eh(_.parent||a[no],_,a);if(null!=x)if(Array.isArray(d))for(let X=0;Xr,createScript:r=>r,createScriptURL:r=>r})}catch{}return Yo}()?.createHTML(r)||r}function ah(r){Ih=r}function Bd(){if(void 0!==Ih)return Ih;if(typeof document<"u")return document;throw new je(210,!1)}function lh(){if(void 0===tu&&(tu=null,Ft.trustedTypes))try{tu=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:r=>r,createScript:r=>r,createScriptURL:r=>r})}catch{}return tu}function mf(r){return lh()?.createHTML(r)||r}function gf(r){return lh()?.createScriptURL(r)||r}class gu{constructor(a){this.changingThisBreaksApplicationSecurity=a}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Lt})`}}class fd extends gu{getTypeName(){return"HTML"}}class vf extends gu{getTypeName(){return"Style"}}class kh extends gu{getTypeName(){return"Script"}}class Rp extends gu{getTypeName(){return"URL"}}class bf extends gu{getTypeName(){return"ResourceURL"}}function qc(r){return r instanceof gu?r.changingThisBreaksApplicationSecurity:r}function Hd(r,a){const d=function $f(r){return r instanceof gu&&r.getTypeName()||null}(r);if(null!=d&&d!==a){if("ResourceURL"===d&&"URL"===a)return!0;throw new Error(`Required a safe ${a}, got a ${d} (see ${Lt})`)}return d===a}function vu(r){return new fd(r)}function o(r){return new vf(r)}function t(r){return new kh(r)}function i(r){return new Rp(r)}function s(r){return new bf(r)}function c(r){const a=new v(r);return function M(){try{return!!(new window.DOMParser).parseFromString(Yd(""),"text/html")}catch{return!1}}()?new h(a):a}class h{constructor(a){this.inertDocumentHelper=a}getInertBodyElement(a){a=""+a;try{const d=(new window.DOMParser).parseFromString(Yd(a),"text/html").body;return null===d?this.inertDocumentHelper.getInertBodyElement(a):(d.removeChild(d.firstChild),d)}catch{return null}}}class v{constructor(a){this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(a){const d=this.inertDocument.createElement("template");return d.innerHTML=Yd(a),d}}const O=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function N(r){return(r=String(r)).match(O)?r:"unsafe:"+r}function $(r){const a={};for(const d of r.split(","))a[d]=!0;return a}function q(...r){const a={};for(const d of r)for(const _ in d)d.hasOwnProperty(_)&&(a[_]=!0);return a}const de=$("area,br,col,hr,img,wbr"),we=$("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),et=$("rp,rt"),Gt=q(de,q(we,$("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),q(et,$("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),q(et,we)),an=$("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zn=q(an,$("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Kn=$("script,style,template");class fi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(a){let d=a.firstChild,_=!0;for(;d;)if(d.nodeType===Node.ELEMENT_NODE?_=this.startElement(d):d.nodeType===Node.TEXT_NODE?this.chars(d.nodeValue):this.sanitizedSomething=!0,_&&d.firstChild)d=d.firstChild;else for(;d;){d.nodeType===Node.ELEMENT_NODE&&this.endElement(d);let x=this.checkClobberedElement(d,d.nextSibling);if(x){d=x;break}d=this.checkClobberedElement(d,d.parentNode)}return this.buf.join("")}startElement(a){const d=a.nodeName.toLowerCase();if(!Gt.hasOwnProperty(d))return this.sanitizedSomething=!0,!Kn.hasOwnProperty(d);this.buf.push("<"),this.buf.push(d);const _=a.attributes;for(let x=0;x<_.length;x++){const A=_.item(x),Y=A.name,z=Y.toLowerCase();if(!Zn.hasOwnProperty(z)){this.sanitizedSomething=!0;continue}let X=A.value;an[z]&&(X=N(X)),this.buf.push(" ",Y,'="',go(X),'"')}return this.buf.push(">"),!0}endElement(a){const d=a.nodeName.toLowerCase();Gt.hasOwnProperty(d)&&!de.hasOwnProperty(d)&&(this.buf.push(""))}chars(a){this.buf.push(go(a))}checkClobberedElement(a,d){if(d&&(a.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${a.outerHTML}`);return d}}const Gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vi=/([^\#-~ |!])/g;function go(r){return r.replace(/&/g,"&").replace(Gi,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(Vi,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}let Dr;function hs(r,a){let d=null;try{Dr=Dr||c(r);let _=a?String(a):"";d=Dr.getInertBodyElement(_);let x=5,A=_;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,_=A,A=d.innerHTML,d=Dr.getInertBodyElement(_)}while(_!==A);return Yd((new fi).sanitizeChildren(Vl(d)||d))}finally{if(d){const _=Vl(d)||d;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Vl(r){return"content"in r&&function ic(r){return r.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===r.nodeName}(r)?r.content:null}var Cs=function(r){return r[r.NONE=0]="NONE",r[r.HTML=1]="HTML",r[r.STYLE=2]="STYLE",r[r.SCRIPT=3]="SCRIPT",r[r.URL=4]="URL",r[r.RESOURCE_URL=5]="RESOURCE_URL",r}(Cs||{});function f(r){const a=pa();return a?mf(a.sanitize(Cs.HTML,r)||""):Hd(r,"HTML")?mf(qc(r)):hs(Bd(),xt(r))}function b(r){const a=pa();return a?a.sanitize(Cs.URL,r)||"":Hd(r,"URL")?qc(r):N(xt(r))}function P(r){const a=pa();if(a)return gf(a.sanitize(Cs.RESOURCE_URL,r)||"");if(Hd(r,"ResourceURL"))return gf(qc(r));throw new je(904,!1)}function Gn(r,a,d){return function yn(r,a){return"src"===a&&("embed"===r||"frame"===r||"iframe"===r||"media"===r||"script"===r)||"href"===a&&("base"===r||"link"===r)?P:b}(a,d)(r)}function pa(){const r=kn();return r&&r[va].sanitizer}const Ea=new Ut("ENVIRONMENT_INITIALIZER"),Lh=new Ut("INJECTOR",-1),yf=new Ut("INJECTOR_DEF_TYPES");class wf{get(a,d=U){if(d===U){const _=new Error(`NullInjectorError: No provider for ${se(a)}!`);throw _.name="NullInjectorError",_}return d}}function Rc(r){return{\u0275providers:r}}function Qc(...r){return{\u0275providers:ch(0,r),\u0275fromNgModule:!0}}function ch(r,...a){const d=[],_=new Set;let x;const A=Y=>{d.push(Y)};return Gc(a,Y=>{const z=Y;Kf(z,A,[],_)&&(x||=[],x.push(z))}),void 0!==x&&M_(x,A),d}function M_(r,a){for(let d=0;d{a(A,_)})}}function Kf(r,a,d,_){if(!(r=_e(r)))return!1;let x=null,A=ei(r);const Y=!A&&Li(r);if(A||Y){if(Y&&!Y.standalone)return!1;x=r}else{const X=r.ngModule;if(A=ei(X),!A)return!1;x=X}const z=_.has(x);if(Y){if(z)return!1;if(_.add(x),Y.dependencies){const X="function"==typeof Y.dependencies?Y.dependencies():Y.dependencies;for(const De of X)Kf(De,a,d,_)}}else{if(!A)return!1;{if(null!=A.imports&&!z){let De;_.add(x);try{Gc(A.imports,Ke=>{Kf(Ke,a,d,_)&&(De||=[],De.push(Ke))})}finally{}void 0!==De&&M_(De,a)}if(!z){const De=Xo(x)||(()=>new x);a({provide:x,useFactory:De,deps:Vn},x),a({provide:yf,useValue:x,multi:!0},x),a({provide:Ea,useValue:()=>wt(x),multi:!0},x)}const X=A.providers;if(null!=X&&!z){const De=r;xf(X,Ke=>{a(Ke,De)})}}}return x!==r&&void 0!==r.providers}function xf(r,a){for(let d of r)mt(d)&&(d=d.\u0275providers),Array.isArray(d)?xf(d,a):a(d)}const o0=re({provide:String,useValue:re});function Jf(r){return null!==r&&"object"==typeof r&&o0 in r}function Nh(r){return"function"==typeof r}const qf=new Ut("Set Injector scope."),Mf={},Cf={};let Fh;function kp(){return void 0===Fh&&(Fh=new wf),Fh}class bu{}class Tf extends bu{get destroyed(){return this._destroyed}constructor(a,d,_,x){super(),this.parent=d,this.source=_,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qf(a,Y=>this.processProvider(Y)),this.records.set(Lh,dh(void 0,this)),x.has("environment")&&this.records.set(bu,dh(void 0,this));const A=this.records.get(qf);null!=A&&"string"==typeof A.value&&this.scopes.add(A.value),this.injectorDefTypes=new Set(this.get(yf.multi,Vn,Ce.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const d of this._ngOnDestroyHooks)d.ngOnDestroy();const a=this._onDestroyHooks;this._onDestroyHooks=[];for(const d of a)d()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(a){return this.assertNotDestroyed(),this._onDestroyHooks.push(a),()=>this.removeOnDestroy(a)}runInContext(a){this.assertNotDestroyed();const d=Wt(this),_=Oe(void 0);try{return a()}finally{Wt(d),Oe(_)}}get(a,d=U,_=Ce.Default){if(this.assertNotDestroyed(),a.hasOwnProperty(Ji))return a[Ji](this);_=Mt(_);const A=Wt(this),Y=Oe(void 0);try{if(!(_&Ce.SkipSelf)){let X=this.records.get(a);if(void 0===X){const De=function Yh(r){return"function"==typeof r||"object"==typeof r&&r instanceof Ut}(a)&&Dn(a);X=De&&this.injectableDefInScope(De)?dh(T_(a),Mf):null,this.records.set(a,X)}if(null!=X)return this.hydrate(a,X)}return(_&Ce.Self?kp():this.parent).get(a,d=_&Ce.Optional&&d===U?null:d)}catch(z){if("NullInjectorError"===z.name){if((z[Pe]=z[Pe]||[]).unshift(se(a)),A)throw z;return function It(r,a,d,_){const x=r[Pe];throw a[be]&&x.unshift(a[be]),r.message=function cn(r,a,d,_=null){r=r&&"\n"===r.charAt(0)&&"\u0275"==r.charAt(1)?r.slice(2):r;let x=se(a);if(Array.isArray(a))x=a.map(se).join(" -> ");else if("object"==typeof a){let A=[];for(let Y in a)if(a.hasOwnProperty(Y)){let z=a[Y];A.push(Y+":"+("string"==typeof z?JSON.stringify(z):se(z)))}x=`{${A.join(", ")}}`}return`${d}${_?"("+_+")":""}[${x}]: ${r.replace(We,"\n ")}`}("\n"+r.message,x,d,_),r.ngTokenPath=x,r[Pe]=null,r}(z,a,"R3InjectorError",this.source)}throw z}finally{Oe(Y),Wt(A)}}resolveInjectorInitializers(){const a=Wt(this),d=Oe(void 0);try{const x=this.get(Ea.multi,Vn,Ce.Self);for(const A of x)A()}finally{Wt(a),Oe(d)}}toString(){const a=[],d=this.records;for(const _ of d.keys())a.push(se(_));return`R3Injector[${a.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new je(205,!1)}processProvider(a){let d=Nh(a=_e(a))?a:_e(a&&a.provide);const _=function a0(r){return Jf(r)?dh(void 0,r.useValue):dh(D_(r),Mf)}(a);if(Nh(a)||!0!==a.multi)this.records.get(d);else{let x=this.records.get(d);x||(x=dh(void 0,Mf,!0),x.factory=()=>Vt(x.multi),this.records.set(d,x)),d=a,x.multi.push(a)}this.records.set(d,_)}hydrate(a,d){return d.value===Mf&&(d.value=Cf,d.value=d.factory()),"object"==typeof d.value&&d.value&&function bl(r){return null!==r&&"object"==typeof r&&"function"==typeof r.ngOnDestroy}(d.value)&&this._ngOnDestroyHooks.add(d.value),d.value}injectableDefInScope(a){if(!a.providedIn)return!1;const d=_e(a.providedIn);return"string"==typeof d?"any"===d||this.scopes.has(d):this.injectorDefTypes.has(d)}removeOnDestroy(a){const d=this._onDestroyHooks.indexOf(a);-1!==d&&this._onDestroyHooks.splice(d,1)}}function T_(r){const a=Dn(r),d=null!==a?a.factory:Xo(r);if(null!==d)return d;if(r instanceof Ut)throw new je(204,!1);if(r instanceof Function)return function s0(r){const a=r.length;if(a>0)throw Oc(a,"?"),new je(204,!1);const d=function vn(r){return r&&(r[Wn]||r[ct])||null}(r);return null!==d?()=>d.factory(r):()=>new r}(r);throw new je(204,!1)}function D_(r,a,d){let _;if(Nh(r)){const x=_e(r);return Xo(x)||T_(x)}if(Jf(r))_=()=>_e(r.useValue);else if(function Wm(r){return!(!r||!r.useFactory)}(r))_=()=>r.useFactory(...Vt(r.deps||[]));else if(function Gm(r){return!(!r||!r.useExisting)}(r))_=()=>wt(_e(r.useExisting));else{const x=_e(r&&(r.useClass||r.provide));if(!function E_(r){return!!r.deps}(r))return Xo(x)||T_(x);_=()=>new x(...Vt(r.deps))}return _}function dh(r,a,d=!1){return{factory:r,value:a,multi:d?[]:void 0}}function Qf(r,a){for(const d of r)Array.isArray(d)?Qf(d,a):d&&mt(d)?Qf(d.\u0275providers,a):a(d)}const S_=new Ut("AppId",{providedIn:"root",factory:()=>$m}),$m="ng",Df=new Ut("Platform Initializer"),Ef=new Ut("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Km=new Ut("AnimationModuleType"),Jm=new Ut("CSP nonce",{providedIn:"root",factory:()=>Bd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let O_=(r,a,d)=>null;function np(r,a,d=!1){return O_(r,a,d)}class tg{}class R_{}class ig{resolveComponentFactory(a){throw function ng(r){const a=Error(`No component factory found for ${se(r)}.`);return a.ngComponent=r,a}(a)}}let Af=(()=>{class r{static#e=this.NULL=new ig}return r})();function rg(){return Uh(en(),kn())}function Uh(r,a){return new Vh(_o(r,a))}let Vh=(()=>{class r{constructor(d){this.nativeElement=d}static#e=this.__NG_ELEMENT_ID__=rg}return r})();function L_(r){return r instanceof Vh?r.nativeElement:r}class jp{}let P_=(()=>{class r{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function N_(){const r=kn(),d=ko(en().index,r);return(po(d)?d:r)[Ti]}()}return r})(),og=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>null})}return r})();class Zp{constructor(a){this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")}}const sg=new Zp("16.2.12"),zp={};function Gp(r){if(!ae()&&!function He(){return Te}())throw new je(-203,!1)}function dg(r,a=null,d=null,_){const x=ug(r,a,d,_);return x.resolveInjectorInitializers(),x}function ug(r,a=null,d=null,_,x=new Set){const A=[d||Vn,Qc(r)];return _=_||("object"==typeof r?void 0:se(r)),new Tf(A,a||kp(),_||null,x)}let Vd=(()=>{class r{static#e=this.THROW_IF_NOT_FOUND=U;static#t=this.NULL=new wf;static create(d,_){if(Array.isArray(d))return dg({name:""},_,d,"");{const x=d.name??"";return dg({name:x},d.parent,d.providers,x)}}static#n=this.\u0275prov=Nt({token:r,providedIn:"any",factory:()=>wt(Lh)});static#i=this.__NG_ELEMENT_ID__=-1}return r})();function F_(r){return r.ngOriginalError}class uh{constructor(){this._console=console}handleError(a){const d=this._findOriginalError(a);this._console.error("ERROR",a),d&&this._console.error("ORIGINAL ERROR",d)}_findOriginalError(a){let d=a&&F_(a);for(;d&&F_(d);)d=F_(d);return d||null}}let lp=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=Y_;static#t=this.__NG_ENV_ID__=d=>d}return r})();class v0 extends lp{constructor(a){super(),this._lView=a}onDestroy(a){return nd(this._lView,a),()=>function lc(r,a){if(null===r[Sr])return;const d=r[Sr].indexOf(a);-1!==d&&r[Sr].splice(d,1)}(this._lView,a)}}function Y_(){return new v0(kn())}function Xc(r){return a=>{setTimeout(r,void 0,a)}}const vo=class b0 extends e.x{constructor(a=!1){super(),this.__isAsync=a}emit(a){super.next(a)}subscribe(a,d,_){let x=a,A=d||(()=>null),Y=_;if(a&&"object"==typeof a){const X=a;x=X.next?.bind(X),A=X.error?.bind(X),Y=X.complete?.bind(X)}this.__isAsync&&(A=Xc(A),x&&(x=Xc(x)),Y&&(Y=Xc(Y)));const z=super.subscribe({next:x,error:A,complete:Y});return a instanceof l.w0&&a.add(z),z}};function cp(...r){}class jl{constructor({enableLongStackTrace:a=!1,shouldCoalesceEventChangeDetection:d=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vo(!1),this.onMicrotaskEmpty=new vo(!1),this.onStable=new vo(!1),this.onError=new vo(!1),typeof Zone>"u")throw new je(908,!1);Zone.assertZonePatched();const x=this;x._nesting=0,x._outer=x._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!_&&d,x.shouldCoalesceRunChangeDetection=_,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function B_(){const r="function"==typeof Ft.requestAnimationFrame;let a=Ft[r?"requestAnimationFrame":"setTimeout"],d=Ft[r?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&a&&d){const _=a[Zone.__symbol__("OriginalDelegate")];_&&(a=_);const x=d[Zone.__symbol__("OriginalDelegate")];x&&(d=x)}return{nativeRequestAnimationFrame:a,nativeCancelAnimationFrame:d}}().nativeRequestAnimationFrame,function If(r){const a=()=>{!function y0(r){r.isCheckStableRunning||-1!==r.lastRequestAnimationFrameId||(r.lastRequestAnimationFrameId=r.nativeRequestAnimationFrame.call(Ft,()=>{r.fakeTopEventTask||(r.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{r.lastRequestAnimationFrameId=-1,jh(r),r.isCheckStableRunning=!0,Of(r),r.isCheckStableRunning=!1},void 0,()=>{},()=>{})),r.fakeTopEventTask.invoke()}),jh(r))}(r)};r._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(d,_,x,A,Y,z)=>{if(function Zh(r){return!(!Array.isArray(r)||1!==r.length)&&!0===r[0].data?.__ignore_ng_zone__}(z))return d.invokeTask(x,A,Y,z);try{return Wp(r),d.invokeTask(x,A,Y,z)}finally{(r.shouldCoalesceEventChangeDetection&&"eventTask"===A.type||r.shouldCoalesceRunChangeDetection)&&a(),U_(r)}},onInvoke:(d,_,x,A,Y,z,X)=>{try{return Wp(r),d.invoke(x,A,Y,z,X)}finally{r.shouldCoalesceRunChangeDetection&&a(),U_(r)}},onHasTask:(d,_,x,A)=>{d.hasTask(x,A),_===x&&("microTask"==A.change?(r._hasPendingMicrotasks=A.microTask,jh(r),Of(r)):"macroTask"==A.change&&(r.hasPendingMacrotasks=A.macroTask))},onHandleError:(d,_,x,A)=>(d.handleError(x,A),r.runOutsideAngular(()=>r.onError.emit(A)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jl.isInAngularZone())throw new je(909,!1)}static assertNotInAngularZone(){if(jl.isInAngularZone())throw new je(909,!1)}run(a,d,_){return this._inner.run(a,d,_)}runTask(a,d,_,x){const A=this._inner,Y=A.scheduleEventTask("NgZoneEvent: "+x,a,fg,cp,cp);try{return A.runTask(Y,d,_)}finally{A.cancelTask(Y)}}runGuarded(a,d,_){return this._inner.runGuarded(a,d,_)}runOutsideAngular(a){return this._outer.run(a)}}const fg={};function Of(r){if(0==r._nesting&&!r.hasPendingMicrotasks&&!r.isStable)try{r._nesting++,r.onMicrotaskEmpty.emit(null)}finally{if(r._nesting--,!r.hasPendingMicrotasks)try{r.runOutsideAngular(()=>r.onStable.emit(null))}finally{r.isStable=!0}}}function jh(r){r.hasPendingMicrotasks=!!(r._hasPendingMicrotasks||(r.shouldCoalesceEventChangeDetection||r.shouldCoalesceRunChangeDetection)&&-1!==r.lastRequestAnimationFrameId)}function Wp(r){r._nesting++,r.isStable&&(r.isStable=!1,r.onUnstable.emit(null))}function U_(r){r._nesting--,Of(r)}class pg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vo,this.onMicrotaskEmpty=new vo,this.onStable=new vo,this.onError=new vo}run(a,d,_){return a.apply(d,_)}runGuarded(a,d,_){return a.apply(d,_)}runOutsideAngular(a){return a()}runTask(a,d,_,x){return a.apply(d,_)}}const V_=new Ut("",{providedIn:"root",factory:j_});function j_(){const r=fe(jl);let a=!0;const d=new D.y(x=>{a=r.isStable&&!r.hasPendingMacrotasks&&!r.hasPendingMicrotasks,r.runOutsideAngular(()=>{x.next(a),x.complete()})}),_=new D.y(x=>{let A;r.runOutsideAngular(()=>{A=r.onStable.subscribe(()=>{jl.assertNotInAngularZone(),queueMicrotask(()=>{!a&&!r.hasPendingMacrotasks&&!r.hasPendingMicrotasks&&(a=!0,x.next(!0))})})});const Y=r.onUnstable.subscribe(()=>{jl.assertInAngularZone(),a&&(a=!1,r.runOutsideAngular(()=>{x.next(!1)}))});return()=>{A.unsubscribe(),Y.unsubscribe()}});return(0,I.T)(d,_.pipe((0,n.B)()))}function Uu(r){return r.ownerDocument.defaultView}function zh(r){return r.ownerDocument}function pd(r){return r instanceof Function?r():r}let z_=(()=>{class r{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>new r})}return r})();function dp(r){for(;r;){r[bi]|=64;const a=du(r);if(Oa(r)&&!a)return r;r=a}return null}const vg=new Ut("",{providedIn:"root",factory:()=>!1});let kf=null;function Lf(r,a){return r[a]??Kp()}function W_(r,a){const d=Kp();d.producerNode?.length&&(r[a]=kf,d.lView=r,kf=Mg())}const up={...Va,consumerIsAlwaysLive:!0,consumerMarkedDirty:r=>{dp(r.lView)},lView:null};function Mg(){return Object.create(up)}function Kp(){return kf??=Mg(),kf}const Ki={};function Cg(r){$_(Fi(),kn(),Do()+r,!1)}function $_(r,a,d,_){if(!_)if(3==(3&a[bi])){const A=r.preOrderCheckHooks;null!==A&&Xa(a,A,d)}else{const A=r.preOrderHooks;null!==A&&ld(a,A,0,d)}qa(d)}function fh(r,a=Ce.Default){const d=kn();return null===d?wt(r,a):nt(en(),d,_e(r),a)}function K_(){throw new Error("invalid")}function hp(r,a,d,_,x,A,Y,z,X,De,Ke){const Rt=a.blueprint.slice();return Rt[er]=x,Rt[bi]=140|_,(null!==De||r&&2048&r[bi])&&(Rt[bi]|=2048),Vs(Rt),Rt[_r]=Rt[Qs]=r,Rt[nr]=d,Rt[va]=Y||r&&r[va],Rt[Ti]=z||r&&r[Ti],Rt[ps]=X||r&&r[ps]||null,Rt[no]=A,Rt[Xs]=function tf(){return vh++}(),Rt[jr]=Ke,Rt[Ml]=De,Rt[wi]=2==a.type?r[wi]:Rt,Rt}function Vu(r,a,d,_,x){let A=r.data[a];if(null===A)A=Jp(r,a,d,_,x),function V(){return Ei.lFrame.inI18n}()&&(A.flags|=32);else if(64&A.type){A.type=d,A.value=_,A.attrs=x;const Y=gt();A.injectorIndex=null===Y?-1:Y.injectorIndex}return la(A,!0),A}function Jp(r,a,d,_,x){const A=so(),Y=Ra(),X=r.data[a]=function Ag(r,a,d,_,x,A){let Y=a?a.injectorIndex:-1,z=0;return hl()&&(z|=128),{type:d,index:_,insertBeforeIndex:null,injectorIndex:Y,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:z,providerIndexes:0,value:x,attrs:A,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:a,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,Y?A:A&&A.parent,d,a,_,x);return null===r.firstChild&&(r.firstChild=X),null!==A&&(Y?null==A.child&&null!==X.parent&&(A.child=X):null===A.next&&(A.next=X,X.prev=A)),X}function Pf(r,a,d,_){if(0===d)return-1;const x=a.length;for(let A=0;AAi&&$_(r,a,Ai,!1),Qr(z?2:0,x);const De=z?A:null,Ke=ts(De);try{null!==De&&(De.dirty=!1),d(_,x)}finally{Wl(De,Ke)}}finally{z&&null===a[xo]&&W_(a,xo),qa(Y),Qr(z?3:1,x)}}function qp(r,a,d){if(qo(a)){const _=Ro(null);try{const A=a.directiveEnd;for(let Y=a.directiveStart;Ynull;function X_(r,a,d,_){for(let x in r)if(r.hasOwnProperty(x)){d=null===d?{}:d;const A=r[x];null===_?em(d,a,x,A):_.hasOwnProperty(x)&&em(d,a,_[x],A)}return d}function em(r,a,d,_){r.hasOwnProperty(d)?r[d].push(a,_):r[d]=[a,_]}function md(r,a,d,_,x,A,Y,z){const X=_o(a,d);let Ke,De=a.inputs;!z&&null!=De&&(Ke=De[_])?(lm(r,d,Ke,_,x),Ss(a)&&function tm(r,a){const d=ko(a,r);16&d[bi]||(d[bi]|=64)}(d,a.index)):3&a.type&&(_=function E0(r){return"class"===r?"className":"for"===r?"htmlFor":"formaction"===r?"formAction":"innerHtml"===r?"innerHTML":"readonly"===r?"readOnly":"tabindex"===r?"tabIndex":r}(_),x=null!=Y?Y(x,a.value||"",_):x,A.setProperty(X,_,x))}function mp(r,a,d,_){if(cc()){const x=null===_?null:{"":-1},A=function A0(r,a){const d=r.directiveRegistry;let _=null,x=null;if(d)for(let A=0;A0;){const d=r[--a];if("number"==typeof d&&d<0)return d}return 0})(Y)!=z&&Y.push(z),Y.push(d,_,A)}}(r,a,_,Pf(r,d,x.hostVars,Ki),x)}function wu(r,a,d,_,x,A){const Y=_o(r,a);!function om(r,a,d,_,x,A,Y){if(null==A)r.removeAttribute(a,x,d);else{const z=null==Y?xt(A):Y(A,_||"",x);r.setAttribute(a,x,z,d)}}(a[Ti],Y,A,r.value,d,_,x)}function sm(r,a,d,_,x,A){const Y=A[a];if(null!==Y)for(let z=0;z{class r{constructor(){this.all=new Set,this.queue=new Map}create(d,_,x){const A=typeof Zone>"u"?null:Zone.current,Y=function Sn(r,a,d){const _=Object.create(ur);d&&(_.consumerAllowSignalWrites=!0),_.fn=r,_.schedule=a;const x=Y=>{_.cleanupFn=Y};return _.ref={notify:()=>es(_),run:()=>{if(_.dirty=!1,_.hasRun&&!gs(_))return;_.hasRun=!0;const Y=ts(_);try{_.cleanupFn(),_.cleanupFn=li,_.fn(x)}finally{Wl(_,Y)}},cleanup:()=>_.cleanupFn()},_.ref}(d,De=>{this.all.has(De)&&this.queue.set(De,A)},x);let z;this.all.add(Y),Y.notify();const X=()=>{Y.cleanup(),z?.(),this.all.delete(Y),this.queue.delete(Y)};return z=_?.onDestroy(X),{destroy:X}}flush(){if(0!==this.queue.size)for(const[d,_]of this.queue)this.queue.delete(d),_?_.run(()=>d.run()):d.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>new r})}return r})();function r_(r,a,d){let _=d?r.styles:null,x=d?r.classes:null,A=0;if(null!==a)for(let Y=0;Y0){Vg(r,1);const x=d.components;null!==x&&Zg(r,x,1)}}function Zg(r,a,d){for(let _=0;_-1&&(Lu(a,_),ml(d,_))}this._attachedToViewContainer=!1}eh(this._lView[qn],this._lView)}onDestroy(a){nd(this._lView,a)}markForCheck(){dp(this._cdRefInjectingView||this._lView)}detach(){this._lView[bi]&=-129}reattach(){this._lView[bi]|=128}detectChanges(){o_(this._lView[qn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new je(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function uf(r,a){_u(r,a,a[Ti],2,null,null)}(this._lView[qn],this._lView)}attachToAppRef(a){if(this._attachedToViewContainer)throw new je(902,!1);this._appRef=a}}class B0 extends yp{constructor(a){super(a),this._view=a}detectChanges(){const a=this._view;o_(a[qn],a,a[nr],!1)}checkNoChanges(){}get context(){return null}}class s_ extends Af{constructor(a){super(),this.ngModule=a}resolveComponentFactory(a){const d=Li(a);return new wp(d,this.ngModule)}}function zg(r){const a=[];for(let d in r)r.hasOwnProperty(d)&&a.push({propName:r[d],templateName:d});return a}class U0{constructor(a,d){this.injector=a,this.parentInjector=d}get(a,d,_){_=Mt(_);const x=this.injector.get(a,zp,_);return x!==zp||d===zp?x:this.parentInjector.get(a,d,_)}}class wp extends R_{get inputs(){const a=this.componentDef,d=a.inputTransforms,_=zg(a.inputs);if(null!==d)for(const x of _)d.hasOwnProperty(x.propName)&&(x.transform=d[x.propName]);return _}get outputs(){return zg(this.componentDef.outputs)}constructor(a,d){super(),this.componentDef=a,this.ngModule=d,this.componentType=a.type,this.selector=function Jr(r){return r.map(Uo).join(",")}(a.selectors),this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[],this.isBoundToModule=!!d}create(a,d,_,x){let A=(x=x||this.ngModule)instanceof bu?x:x?.injector;A&&null!==this.componentDef.getStandaloneInjector&&(A=this.componentDef.getStandaloneInjector(A)||A);const Y=A?new U0(a,A):a,z=Y.get(jp,null);if(null===z)throw new je(407,!1);const Rt={rendererFactory:z,sanitizer:Y.get(og,null),effectManager:Y.get(Bg,null),afterRenderEventManager:Y.get(z_,null)},Xt=z.createRenderer(null,this.componentDef),ln=this.componentDef.selectors[0][0]||"div",In=_?function Q_(r,a,d,_){const A=_.get(vg,!1)||d===On.ShadowDom,Y=r.selectRootElement(a,A);return function Eg(r){Gh(r)}(Y),Y}(Xt,_,this.componentDef.encapsulation,Y):hu(Xt,ln,function H0(r){const a=r.toLowerCase();return"svg"===a?zr:"math"===a?"math":null}(ln)),Yi=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Fn=null;null!==In&&(Fn=np(In,Y,!0));const cr=pp(0,null,null,1,0,null,null,null,null,null,null),Ur=hp(null,cr,null,Yi,null,null,Rt,Xt,Y,null,Fn);let xs,wd;$i(Ur);try{const mh=this.componentDef;let Op,r0=null;mh.findHostDirectiveDefs?(Op=[],r0=new Map,mh.findHostDirectiveDefs(mh,Op,r0),Op.push(mh)):Op=[mh];const GT=function V0(r,a){const d=r[qn],_=Ai;return r[_]=a,Vu(d,_,2,"#host",null)}(Ur,In),WT=function j0(r,a,d,_,x,A,Y){const z=x[qn];!function Z0(r,a,d,_){for(const x of r)a.mergedAttrs=br(a.mergedAttrs,x.hostAttrs);null!==a.mergedAttrs&&(r_(a,a.mergedAttrs,!0),null!==d&&us(_,d,a))}(_,r,a,Y);let X=null;null!==a&&(X=np(a,x[ps]));const De=A.rendererFactory.createRenderer(a,d);let Ke=16;d.signals?Ke=4096:d.onPush&&(Ke=64);const Rt=hp(x,q_(d),null,Ke,x[r.index],r,A,De,null,null,X);return z.firstCreatePass&&gp(z,r,_.length-1),i_(x,Rt),x[r.index]=Rt}(GT,In,mh,Op,Ur,Rt,Xt);wd=Xi(cr,Ai),In&&function Gg(r,a,d,_){if(_)_i(r,d,["ng-version",sg.full]);else{const{attrs:x,classes:A}=function ga(r){const a=[],d=[];let _=1,x=2;for(;_0&&Fd(r,d,A.join(" "))}}(Xt,mh,In,_),void 0!==d&&function G0(r,a,d){const _=r.projection=[];for(let x=0;x=0;_--){const x=r[_];x.hostVars=a+=x.hostVars,x.hostAttrs=br(x.hostAttrs,d=br(d,x.hostAttrs))}}(_)}function a_(r){return r===ni?{}:r===Vn?[]:r}function $0(r,a){const d=r.viewQuery;r.viewQuery=d?(_,x)=>{a(_,x),d(_,x)}:a}function $g(r,a){const d=r.contentQueries;r.contentQueries=d?(_,x,A)=>{a(_,x,A),d(_,x,A)}:a}function K0(r,a){const d=r.hostBindings;r.hostBindings=d?(_,x)=>{a(_,x),d(_,x)}:a}function Kg(r){return a=>{a.findHostDirectiveDefs=l_,a.hostDirectives=(Array.isArray(r)?r:r()).map(d=>"function"==typeof d?{directive:_e(d),inputs:ni,outputs:ni}:{directive:_e(d.directive),inputs:mm(d.inputs),outputs:mm(d.outputs)})}}function l_(r,a,d){if(null!==r.hostDirectives)for(const _ of r.hostDirectives){const x=Yr(_.directive);Jg(x.declaredInputs,_.inputs),l_(x,a,d),d.set(x,_),a.push(x)}}function mm(r){if(void 0===r||0===r.length)return ni;const a={};for(let d=0;d(pl(!0),hu(_,x,function hc(){return Ei.lFrame.currentNamespace}()));function Tm(r,a,d){const _=kn(),x=Fi(),A=r+Ai,Y=x.firstCreatePass?function Lw(r,a,d,_,x){const A=a.consts,Y=Us(A,_),z=Vu(a,r,8,"ng-container",Y);return null!==Y&&r_(z,Y,!0),mp(a,d,z,Us(A,x)),null!==a.queries&&a.queries.elementStart(a,z),z}(A,x,_,a,d):x.data[A];la(Y,!0);const z=s1(x,_,Y,r);return _[A]=z,js()&&Dc(x,_,z,Y),rl(z,_),ya(Y)&&(Qp(x,_,Y),qp(x,Y,_)),null!=d&&fp(_,Y),Tm}function Dm(){let r=en();const a=Fi();return Ra()?Ls():(r=r.parent,la(r,!1)),a.firstCreatePass&&(Pi(a,r),qo(r)&&a.queries.elementEnd(r)),Dm}function rv(r,a,d){return Tm(r,a,d),Dm(),rv}let s1=(r,a,d,_)=>(pl(!0),Qu(a[Ti],""));function a1(){return kn()}function ov(r){return!!r&&"function"==typeof r.then}function l1(r){return!!r&&"function"==typeof r.subscribe}function sv(r,a,d,_){const x=kn(),A=Fi(),Y=en();return c1(A,x,x[Ti],Y,r,a,_),sv}function av(r,a){const d=en(),_=kn(),x=Fi();return c1(x,_,Fg(mn(x.data),d,_),d,r,a),av}function c1(r,a,d,_,x,A,Y){const z=ya(_),De=r.firstCreatePass&&Ng(r),Ke=a[nr],Rt=am(a);let Xt=!0;if(3&_.type||Y){const zn=_o(_,a),ui=Y?Y(zn):zn,Yi=Rt.length,Fn=Y?Ur=>Y(yi(Ur[_.index])):_.index;let cr=null;if(!Y&&z&&(cr=function Fw(r,a,d,_){const x=r.cleanup;if(null!=x)for(let A=0;AX?z[X]:null}"string"==typeof Y&&(A+=2)}return null}(r,a,x,_.index)),null!==cr)(cr.__ngLastListenerFn__||cr).__ngNextListenerFn__=A,cr.__ngLastListenerFn__=A,Xt=!1;else{A=u1(_,a,Ke,A,!1);const Ur=d.listen(ui,x,A);Rt.push(A,Ur),De&&De.push(x,Fn,Yi,Yi+1)}}else A=u1(_,a,Ke,A,!1);const ln=_.outputs;let In;if(Xt&&null!==ln&&(In=ln[x])){const zn=In.length;if(zn)for(let ui=0;ui-1?ko(r.index,a):a);let X=d1(a,d,_,Y),De=A.__ngNextListenerFn__;for(;De;)X=d1(a,d,De,Y)&&X,De=De.__ngNextListenerFn__;return x&&!1===X&&Y.preventDefault(),X}}function h1(r=1){return function xd(r){return(Ei.lFrame.contextLView=function Md(r,a){for(;r>0;)a=a[Qs],r--;return a}(r,Ei.lFrame.contextLView))[nr]}(r)}function Yw(r,a){let d=null;const _=function xl(r){const a=r.attrs;if(null!=a){const d=a.indexOf(5);if(!(1&d))return a[d+1]}return null}(r);for(let x=0;x>17&32767}function cv(r){return 2|r}function Bf(r){return(131068&r)>>2}function dv(r,a){return-131069&r|a<<2}function uv(r){return 1|r}function M1(r,a,d,_,x){const A=r[d+1],Y=null===a;let z=_?$h(A):Bf(A),X=!1;for(;0!==z&&(!1===X||Y);){const Ke=r[z+1];Zw(r[z],a)&&(X=!0,r[z+1]=_?uv(Ke):cv(Ke)),z=_?$h(Ke):Bf(Ke)}X&&(r[d+1]=_?cv(A):uv(A))}function Zw(r,a){return null===r||null==a||(Array.isArray(r)?r[1]:r)===a||!(!Array.isArray(r)||"string"!=typeof a)&&No(r,a)>=0}const rc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function C1(r){return r.substring(rc.key,rc.keyEnd)}function zw(r){return r.substring(rc.value,rc.valueEnd)}function T1(r,a){const d=rc.textEnd;return d===a?-1:(a=rc.keyEnd=function $w(r,a,d){for(;a32;)a++;return a}(r,rc.key=a,d),Mp(r,a,d))}function D1(r,a){const d=rc.textEnd;let _=rc.key=Mp(r,a,d);return d===_?-1:(_=rc.keyEnd=function Kw(r,a,d){let _;for(;a=65&&(-33&_)<=90||_>=48&&_<=57);)a++;return a}(r,_,d),_=S1(r,_,d),_=rc.value=Mp(r,_,d),_=rc.valueEnd=function Jw(r,a,d){let _=-1,x=-1,A=-1,Y=a,z=Y;for(;Y32&&(z=Y),A=x,x=_,_=-33&X}return z}(r,_,d),S1(r,_,d))}function E1(r){rc.key=0,rc.keyEnd=0,rc.value=0,rc.valueEnd=0,rc.textEnd=r.length}function Mp(r,a,d){for(;a=0;d=D1(a,d))k1(r,C1(a),zw(a))}function O1(r){Du(ix,zu,r,!0)}function zu(r,a){for(let d=function Gw(r){return E1(r),T1(r,Mp(r,0,rc.textEnd))}(a);d>=0;d=T1(a,d))Xr(r,C1(a),!0)}function Tu(r,a,d,_){const x=kn(),A=Fi(),Y=ne(2);A.firstUpdatePass&&R1(A,r,Y,_),a!==Ki&&Je(x,Y,a)&&L1(A,A.data[Do()],x,x[Ti],r,x[Y+1]=function ox(r,a){return null==r||""===r||("string"==typeof a?r+=a:"object"==typeof r&&(r=se(qc(r)))),r}(a,d),_,Y)}function Du(r,a,d,_){const x=Fi(),A=ne(2);x.firstUpdatePass&&R1(x,null,A,_);const Y=kn();if(d!==Ki&&Je(Y,A,d)){const z=x.data[Do()];if(N1(z,_)&&!I1(x,A)){let X=_?z.classesWithoutHost:z.stylesWithoutHost;null!==X&&(d=te(X,d||"")),nv(x,z,Y,d,_)}else!function rx(r,a,d,_,x,A,Y,z){x===Ki&&(x=Vn);let X=0,De=0,Ke=0=r.expandoStartIndex}function R1(r,a,d,_){const x=r.data;if(null===x[d+1]){const A=x[Do()],Y=I1(r,d);N1(A,_)&&null===a&&!Y&&(a=!1),a=function Qw(r,a,d,_){const x=mn(r);let A=_?a.residualClasses:a.residualStyles;if(null===x)0===(_?a.classBindings:a.styleBindings)&&(d=h_(d=pv(null,r,a,d,_),a.attrs,_),A=null);else{const Y=a.directiveStylingLast;if(-1===Y||r[Y]!==x)if(d=pv(x,r,a,d,_),null===A){let X=function Xw(r,a,d){const _=d?a.classBindings:a.styleBindings;if(0!==Bf(_))return r[$h(_)]}(r,a,_);void 0!==X&&Array.isArray(X)&&(X=pv(null,r,a,X[1],_),X=h_(X,a.attrs,_),function ex(r,a,d,_){r[$h(d?a.classBindings:a.styleBindings)]=_}(r,a,_,X))}else A=function tx(r,a,d){let _;const x=a.directiveEnd;for(let A=1+a.directiveStylingLast;A0)&&(De=!0)):Ke=d,x)if(0!==X){const Xt=$h(r[z+1]);r[_+1]=Sm(Xt,z),0!==Xt&&(r[Xt+1]=dv(r[Xt+1],_)),r[z+1]=function Hw(r,a){return 131071&r|a<<17}(r[z+1],_)}else r[_+1]=Sm(z,0),0!==z&&(r[z+1]=dv(r[z+1],_)),z=_;else r[_+1]=Sm(X,0),0===z?z=_:r[X+1]=dv(r[X+1],_),X=_;De&&(r[_+1]=cv(r[_+1])),M1(r,Ke,_,!0),M1(r,Ke,_,!1),function jw(r,a,d,_,x){const A=x?r.residualClasses:r.residualStyles;null!=A&&"string"==typeof a&&No(A,a)>=0&&(d[_+1]=uv(d[_+1]))}(a,Ke,r,_,A),Y=Sm(z,X),A?a.classBindings=Y:a.styleBindings=Y}(x,A,a,d,Y,_)}}function pv(r,a,d,_,x){let A=null;const Y=d.directiveEnd;let z=d.directiveStylingLast;for(-1===z?z=d.directiveStart:z++;z0;){const X=r[x],De=Array.isArray(X),Ke=De?X[1]:X,Rt=null===Ke;let Xt=d[x+1];Xt===Ki&&(Xt=Rt?Vn:void 0);let ln=Rt?Mc(Xt,_):Ke===_?Xt:void 0;if(De&&!Am(ln)&&(ln=Mc(X,_)),Am(ln)&&(z=ln,Y))return z;const In=r[x+1];x=Y?$h(In):Bf(In)}if(null!==a){let X=A?a.residualClasses:a.residualStyles;null!=X&&(z=Mc(X,_))}return z}function Am(r){return void 0!==r}function N1(r,a){return 0!=(r.flags&(a?8:16))}function F1(r,a=""){const d=kn(),_=Fi(),x=r+Ai,A=_.firstCreatePass?Vu(_,x,1,a,null):_.data[x],Y=Y1(_,d,A,a,r);d[x]=Y,js()&&Dc(_,d,Y,A),la(A,!1)}let Y1=(r,a,d,_,x)=>(pl(!0),ku(a[Ti],_));function _v(r){return Om("",r,""),_v}function Om(r,a,d){const _=kn(),x=Un(_,r,a,d);return x!==Ki&&ju(_,Do(),x),Om}function mv(r,a,d,_,x){const A=kn(),Y=Xn(A,r,a,d,_,x);return Y!==Ki&&ju(A,Do(),Y),mv}function gv(r,a,d,_,x,A,Y){const z=kn(),X=function ii(r,a,d,_,x,A,Y,z){const De=jt(r,ka(),d,x,Y);return ne(3),De?a+xt(d)+_+xt(x)+A+xt(Y)+z:Ki}(z,r,a,d,_,x,A,Y);return X!==Ki&&ju(z,Do(),X),gv}function z1(r,a,d){Du(Xr,zu,Un(kn(),r,a,d),!0)}function G1(r,a,d){Cu(Un(kn(),r,a,d))}function W1(r,a,d,_,x){Cu(Xn(kn(),r,a,d,_,x))}function vv(r,a,d){const _=kn();return Je(_,W(),a)&&md(Fi(),xr(),_,r,a,_[Ti],d,!0),vv}function bv(r,a,d){const _=kn();if(Je(_,W(),a)){const A=Fi(),Y=xr();md(A,Y,_,r,a,Fg(mn(A.data),Y,_),d,!0)}return bv}const Hf=void 0;var Cx=["en",[["a","p"],["AM","PM"],Hf],[["AM","PM"],Hf,Hf],[["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"]],Hf,[["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"]],Hf,[["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}",Hf,"{1} 'at' {0}",Hf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mx(r){const d=Math.floor(Math.abs(r)),_=r.toString().replace(/^[^.]*\.?/,"").length;return 1===d&&0===_?1:5}];let Cp={};function yv(r){const a=function Tx(r){return r.toLowerCase().replace(/_/g,"-")}(r);let d=rb(a);if(d)return d;const _=a.split("-")[0];if(d=rb(_),d)return d;if("en"===_)return Cx;throw new je(701,!1)}function ib(r){return yv(r)[Tp.PluralCase]}function rb(r){return r in Cp||(Cp[r]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[r]),Cp[r]}var Tp=function(r){return r[r.LocaleId=0]="LocaleId",r[r.DayPeriodsFormat=1]="DayPeriodsFormat",r[r.DayPeriodsStandalone=2]="DayPeriodsStandalone",r[r.DaysFormat=3]="DaysFormat",r[r.DaysStandalone=4]="DaysStandalone",r[r.MonthsFormat=5]="MonthsFormat",r[r.MonthsStandalone=6]="MonthsStandalone",r[r.Eras=7]="Eras",r[r.FirstDayOfWeek=8]="FirstDayOfWeek",r[r.WeekendRange=9]="WeekendRange",r[r.DateFormat=10]="DateFormat",r[r.TimeFormat=11]="TimeFormat",r[r.DateTimeFormat=12]="DateTimeFormat",r[r.NumberSymbols=13]="NumberSymbols",r[r.NumberFormats=14]="NumberFormats",r[r.CurrencyCode=15]="CurrencyCode",r[r.CurrencySymbol=16]="CurrencySymbol",r[r.CurrencyName=17]="CurrencyName",r[r.Currencies=18]="Currencies",r[r.Directionality=19]="Directionality",r[r.PluralCase=20]="PluralCase",r[r.ExtraData=21]="ExtraData",r}(Tp||{});const Dp="en-US",Im={marker:"element"},Rm={marker:"ICU"};var bd=function(r){return r[r.SHIFT=2]="SHIFT",r[r.APPEND_EAGERLY=1]="APPEND_EAGERLY",r[r.COMMENT=2]="COMMENT",r}(bd||{});let ob=Dp;function sb(r){(function tt(r,a){null==r&&he(a,r,null,"!=")})(r,"Expected localeId to be defined"),"string"==typeof r&&(ob=r.toLowerCase().replace(/_/g,"-"))}function ab(r,a,d){const _=a.insertBeforeIndex,x=Array.isArray(_)?_[0]:_;return null===x?th(r,0,d):yi(d[x])}function lb(r,a,d,_,x){const A=a.insertBeforeIndex;if(Array.isArray(A)){let Y=_,z=null;if(3&a.type||(z=Y,Y=x),null!==Y&&-1===a.componentOffset)for(let X=1;X1)for(let d=r.length-2;d>=0;d--){const _=r[d];db(_)||Ox(_,a)&&null===Ix(_)&&Rx(_,a.index)}}function db(r){return!(64&r.type)}function Ox(r,a){return db(a)||r.index>a.index}function Ix(r){const a=r.insertBeforeIndex;return Array.isArray(a)?a[0]:a}function Rx(r,a){const d=r.insertBeforeIndex;Array.isArray(d)?d[0]=a:(eu(ab,lb),r.insertBeforeIndex=a)}function Px(r,a,d){const _=Jp(r,d,64,null,null);return cb(a,_),_}function Vx(){const r=[];let d,_,a=-1;function A(z,X){a=0;const De=function km(r,a){const d=a[r.currentCaseLViewIndex];return null===d?d:d<0?~d:d}(z,X);_=null!==De?z.remove[De]:Vn}function Y(){if(a<_.length){const z=_[a++];return z>0?d[z]:(r.push(a,_),A(d[qn].data[~z],d),Y())}return 0===r.length?null:(_=r.pop(),a=r.pop(),Y())}return function x(z,X){for(d=X;r.length;)r.pop();return A(z.value,X),Y}}const Lm=/\ufffd(\d+):?\d*\ufffd/gi,Zx=/\ufffd(\d+)\ufffd/,bb=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,m_="\ufffd",zx=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Gx=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Wx=/\uE500/g;function yb(r,a,d,_,x,A,Y){const z=Pf(r,_,1,null);let X=z<d.length&&d.push(X)}return{type:_,mainBinding:x,cases:a,values:d}}function wv(r){if(!r)return[];let a=0;const d=[],_=[],x=/[{}]/g;let A;for(x.lastIndex=0;A=x.exec(r);){const z=A.index;if("}"==A[0]){if(d.pop(),0==d.length){const X=r.substring(a,z);bb.test(X)?_.push(tM(X)):_.push(X),a=z+1}}else{if(0==d.length){const X=r.substring(a,z);_.push(X),a=z+1}d.push("{")}}const Y=r.substring(a);return _.push(Y),_}function nM(r,a,d,_,x,A,Y,z){const X=[],De=[],Ke=[];a.cases.push(A),a.create.push(X),a.remove.push(De),a.update.push(Ke);const Xt=c(Bd()).getInertBodyElement(Y),ln=Vl(Xt)||Xt;return ln?Cb(r,a,d,_,X,De,Ke,ln,x,z,0):0}function Cb(r,a,d,_,x,A,Y,z,X,De,Ke){let Rt=0,Xt=z.firstChild;for(;Xt;){const ln=Pf(r,d,1,null);switch(Xt.nodeType){case Node.ELEMENT_NODE:const In=Xt,zn=In.tagName.toLowerCase();if(Gt.hasOwnProperty(zn)){xv(x,Im,zn,X,ln),r.data[ln]=zn;const cr=In.attributes;for(let Ur=0;Ur>>bd.SHIFT;let Rt=r[Ke];null===Rt&&(Rt=r[Ke]=(Y&bd.COMMENT)===bd.COMMENT?x.createComment(z):ku(x,z)),De&&null!==d&&Jc(x,d,Rt,_,!1)}})(x,X.create,Ke,z&&8&z.type?x[z.index]:null),ie(!0)}function Cv(){ie(!1)}function Eb(r,a,d){Mv(r,a,d),Cv()}function Tv(r,a,d,_,x){if(r=_e(r),Array.isArray(r))for(let A=0;A>20;if(Nh(r)||!r.multi){const ln=new ca(De,x,fh),In=Ev(X,a,x?Ke:Ke+Xt,Rt);-1===In?(k(Ll(z,Y),A,X),Dv(A,r,a.length),a.push(X),z.directiveStart++,z.directiveEnd++,x&&(z.providerIndexes+=1048576),d.push(ln),Y.push(ln)):(d[In]=ln,Y[In]=ln)}else{const ln=Ev(X,a,Ke+Xt,Rt),In=Ev(X,a,Ke,Ke+Xt),ui=In>=0&&d[In];if(x&&!ui||!x&&!(ln>=0&&d[ln])){k(Ll(z,Y),A,X);const Yi=function xM(r,a,d,_,x){const A=new ca(r,d,fh);return A.multi=[],A.index=a,A.componentProviders=0,Ab(A,x,_&&!d),A}(x?wM:yM,d.length,x,_,De);!x&&ui&&(d[In].providerFactory=Yi),Dv(A,r,a.length,0),a.push(X),z.directiveStart++,z.directiveEnd++,x&&(z.providerIndexes+=1048576),d.push(Yi),Y.push(Yi)}else Dv(A,r,ln>-1?ln:In,Ab(d[x?In:ln],De,!x&&_));!x&&_&&ui&&d[In].componentProviders++}}}function Dv(r,a,d,_){const x=Nh(a),A=function C_(r){return!!r.useClass}(a);if(x||A){const X=(A?_e(a.useClass):a).prototype.ngOnDestroy;if(X){const De=r.destroyHooks||(r.destroyHooks=[]);if(!x&&a.multi){const Ke=De.indexOf(d);-1===Ke?De.push(d,[_,X]):De[Ke+1].push(_,X)}else De.push(d,X)}}}function Ab(r,a,d){return d&&r.componentProviders++,r.multi.push(a)-1}function Ev(r,a,d,_){for(let x=d;x<_;x++)if(a[x]===r)return x;return-1}function yM(r,a,d,_){return Sv(this.multi,[])}function wM(r,a,d,_){const x=this.multi;let A;if(this.providerFactory){const Y=this.providerFactory.componentProviders,z=Oi(d,d[qn],this.providerFactory.index,_);A=z.slice(0,Y),Sv(x,A);for(let X=Y;X{d.providersResolver=(_,x)=>function bM(r,a,d){const _=Fi();if(_.firstCreatePass){const x=sr(r);Tv(d,_.data,_.blueprint,x,!0),Tv(a,_.data,_.blueprint,x,!1)}}(_,x?x(r):r,a)}}class Uf{}class Ib{}function MM(r,a){return new Av(r,a??null,[])}class Av extends Uf{constructor(a,d,_){super(),this._parent=d,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new s_(this);const x=wr(a);this._bootstrapComponents=pd(x.bootstrap),this._r3Injector=ug(a,d,[{provide:Uf,useValue:this},{provide:Af,useValue:this.componentFactoryResolver},..._],se(a),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(a)}get injector(){return this._r3Injector}destroy(){const a=this._r3Injector;!a.destroyed&&a.destroy(),this.destroyCbs.forEach(d=>d()),this.destroyCbs=null}onDestroy(a){this.destroyCbs.push(a)}}class Ov extends Ib{constructor(a){super(),this.moduleType=a}create(a){return new Av(this.moduleType,a,[])}}class Rb extends Uf{constructor(a){super(),this.componentFactoryResolver=new s_(this),this.instance=null;const d=new Tf([...a.providers,{provide:Uf,useValue:this},{provide:Af,useValue:this.componentFactoryResolver}],a.parent||kp(),a.debugName,new Set(["environment"]));this.injector=d,a.runEnvironmentInitializers&&d.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(a){this.injector.onDestroy(a)}}function kb(r,a,d=null){return new Rb({providers:r,parent:a,debugName:d,runEnvironmentInitializers:!0}).injector}let TM=(()=>{class r{constructor(d){this._injector=d,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(d){if(!d.standalone)return null;if(!this.cachedInjectors.has(d)){const _=ch(0,d.type),x=_.length>0?kb([_],this._injector,`Standalone[${d.type.name}]`):null;this.cachedInjectors.set(d,x)}return this.cachedInjectors.get(d)}ngOnDestroy(){try{for(const d of this.cachedInjectors.values())null!==d&&d.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Nt({token:r,providedIn:"environment",factory:()=>new r(wt(bu))})}return r})();function Lb(r){r.getStandaloneInjector=a=>a.get(TM).getOrCreateStandaloneInjector(r)}function Ub(r,a,d){const _=mo()+r,x=kn();return x[_]===Ki?Q(x,_,d?a.call(d):a()):Le(x,_)}function Vb(r,a,d,_){return Wb(kn(),mo(),r,a,d,_)}function jb(r,a,d,_,x){return $b(kn(),mo(),r,a,d,_,x)}function Zb(r,a,d,_,x,A){return function Kb(r,a,d,_,x,A,Y,z){const X=a+d;return jt(r,X,x,A,Y)?Q(r,X+3,z?_.call(z,x,A,Y):_(x,A,Y)):v_(r,X+3)}(kn(),mo(),r,a,d,_,x,A)}function zb(r,a,d,_,x,A,Y){return function Jb(r,a,d,_,x,A,Y,z,X){const De=a+d;return dn(r,De,x,A,Y,z)?Q(r,De+4,X?_.call(X,x,A,Y,z):_(x,A,Y,z)):v_(r,De+4)}(kn(),mo(),r,a,d,_,x,A,Y)}function Gb(r,a,d,_,x,A,Y,z){const X=mo()+r,De=kn(),Ke=dn(De,X,d,_,x,A);return Je(De,X+4,Y)||Ke?Q(De,X+5,z?a.call(z,d,_,x,A,Y):a(d,_,x,A,Y)):Le(De,X+5)}function v_(r,a){const d=r[a];return d===Ki?void 0:d}function Wb(r,a,d,_,x,A){const Y=a+d;return Je(r,Y,x)?Q(r,Y+1,A?_.call(A,x):_(x)):v_(r,Y+1)}function $b(r,a,d,_,x,A,Y){const z=a+d;return At(r,z,x,A)?Q(r,z+2,Y?_.call(Y,x,A):_(x,A)):v_(r,z+2)}function Qb(r,a){const d=Fi();let _;const x=r+Ai;d.firstCreatePass?(_=function YM(r,a){if(a)for(let d=a.length-1;d>=0;d--){const _=a[d];if(r===_.name)return _}}(a,d.pipeRegistry),d.data[x]=_,_.onDestroy&&(d.destroyHooks??=[]).push(x,_.onDestroy)):_=d.data[x];const A=_.factory||(_.factory=Xo(_.type)),z=Oe(fh);try{const X=Eo(!1),De=A();return Eo(X),function Ow(r,a,d,_){d>=r.data.length&&(r.data[d]=null,r.blueprint[d]=null),a[d]=_}(d,kn(),x,De),De}finally{Oe(z)}}function Xb(r,a,d){const _=r+Ai,x=kn(),A=dl(x,_);return b_(x,_)?Wb(x,mo(),a,A.transform,d,A):A.transform(d)}function ey(r,a,d,_){const x=r+Ai,A=kn(),Y=dl(A,x);return b_(A,x)?$b(A,mo(),a,Y.transform,d,_,Y):Y.transform(d,_)}function b_(r,a){return r[qn].data[a].pure}function VM(){return this._results[Symbol.iterator]()}class Pm{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new vo)}constructor(a=!1){this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const d=Pm.prototype;d[Symbol.iterator]||(d[Symbol.iterator]=VM)}get(a){return this._results[a]}map(a){return this._results.map(a)}filter(a){return this._results.filter(a)}find(a){return this._results.find(a)}reduce(a,d){return this._results.reduce(a,d)}forEach(a){this._results.forEach(a)}some(a){return this._results.some(a)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(a,d){const _=this;_.dirty=!1;const x=function nl(r){return r.flat(Number.POSITIVE_INFINITY)}(a);(this._changesDetected=!function Jd(r,a,d){if(r.length!==a.length)return!1;for(let _=0;_0&&(d[x-1][wo]=a),_{class r{static#e=this.__NG_ELEMENT_ID__=WM}return r})();const zM=y_,GM=class extends zM{constructor(a,d,_){super(),this._declarationLView=a,this._declarationTContainer=d,this.elementRef=_}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(a,d){return this.createEmbeddedViewImpl(a,d)}createEmbeddedViewImpl(a,d,_){const x=function jM(r,a,d,_){const x=a.tView,z=hp(r,x,d,4096&r[bi]?4096:16,null,a,null,null,null,_?.injector??null,_?.hydrationInfo??null);z[Oo]=r[a.index];const De=r[or];return null!==De&&(z[or]=De.createEmbeddedView(x)),cm(x,z,d),z}(this._declarationLView,this._declarationTContainer,a,{injector:d,hydrationInfo:_});return new yp(x)}};function WM(){return Nm(en(),kn())}function Nm(r,a){return 4&r.type?new GM(a,r,Uh(r,a)):null}let Ym=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=XM}return r})();function XM(){return ay(en(),kn())}const eC=Ym,oy=class extends eC{constructor(a,d,_){super(),this._lContainer=a,this._hostTNode=d,this._hostLView=_}get element(){return Uh(this._hostTNode,this._hostLView)}get injector(){return new ls(this._hostTNode,this._hostLView)}get parentInjector(){const a=ir(this._hostTNode,this._hostLView);if(wc(a)){const d=Ac(a,this._hostLView),_=kl(a);return new ls(d[qn].data[_+8],d)}return new ls(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(a){const d=sy(this._lContainer);return null!==d&&d[a]||null}get length(){return this._lContainer.length-Br}createEmbeddedView(a,d,_){let x,A;"number"==typeof _?x=_:null!=_&&(x=_.index,A=_.injector);const z=a.createEmbeddedViewImpl(d||{},A,null);return this.insertImpl(z,x,false),z}createComponent(a,d,_,x,A){const Y=a&&!function zc(r){return"function"==typeof r}(a);let z;if(Y)z=d;else{const zn=d||{};z=zn.index,_=zn.injector,x=zn.projectableNodes,A=zn.environmentInjector||zn.ngModuleRef}const X=Y?a:new wp(Li(a)),De=_||this.parentInjector;if(!A&&null==X.ngModule){const ui=(Y?De:this.parentInjector).get(bu,null);ui&&(A=ui)}Li(X.componentType??{});const ln=X.create(De,x,null,A);return this.insertImpl(ln.hostView,z,false),ln}insert(a,d){return this.insertImpl(a,d,!1)}insertImpl(a,d,_){const x=a._lView;if(function Pc(r){return io(r[_r])}(x)){const X=this.indexOf(a);if(-1!==X)this.detach(X);else{const De=x[_r],Ke=new oy(De,De[no],De[_r]);Ke.detach(Ke.indexOf(a))}}const Y=this._adjustIndex(d),z=this._lContainer;return ZM(z,x,Y,!_),a.attachToViewContainerRef(),qd(Rv(z),Y,a),a}move(a,d){return this.insert(a,d)}indexOf(a){const d=sy(this._lContainer);return null!==d?d.indexOf(a):-1}remove(a){const d=this._adjustIndex(a,-1),_=Lu(this._lContainer,d);_&&(ml(Rv(this._lContainer),d),eh(_[qn],_))}detach(a){const d=this._adjustIndex(a,-1),_=Lu(this._lContainer,d);return _&&null!=ml(Rv(this._lContainer),d)?new yp(_):null}_adjustIndex(a,d=0){return a??this.length+d}};function sy(r){return r[8]}function Rv(r){return r[8]||(r[8]=[])}function ay(r,a){let d;const _=a[r.index];return io(_)?d=_:(d=n_(_,a,null,r),a[r.index]=d,i_(a,d)),ly(d,a,r,_),new oy(d,r,a)}let ly=function cy(r,a,d,_){if(r[fo])return;let x;x=8&d.type?yi(_):function tC(r,a){const d=r[Ti],_=d.createComment(""),x=_o(a,r);return Jc(d,Pu(d,x),_,function pf(r,a){return r.nextSibling(a)}(d,x),!1),_}(a,d),r[fo]=x};class kv{constructor(a){this.queryList=a,this.matches=null}clone(){return new kv(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lv{constructor(a=[]){this.queries=a}createEmbeddedView(a){const d=a.queries;if(null!==d){const _=null!==a.contentQueries?a.contentQueries[0]:d.length,x=[];for(let A=0;A<_;A++){const Y=d.getByIndex(A);x.push(this.queries[Y.indexInDeclarationView].clone())}return new Lv(x)}return null}insertView(a){this.dirtyQueriesWithMatches(a)}detachView(a){this.dirtyQueriesWithMatches(a)}dirtyQueriesWithMatches(a){for(let d=0;d0)_.push(Y[z/2]);else{const De=A[z+1],Ke=a[-X];for(let Rt=Br;Rt{class r{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((d,_)=>{this.resolve=d,this.reject=_}),this.appInits=fe(Ny,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const d=[];for(const x of this.appInits){const A=x();if(ov(A))d.push(A);else if(l1(A)){const Y=new Promise((z,X)=>{A.subscribe({complete:z,error:X})});d.push(Y)}}const _=()=>{this.done=!0,this.resolve()};Promise.all(d).then(()=>{_()}).catch(x=>{this.reject(x)}),0===d.length&&_(),this.initialized=!0}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Fy=(()=>{class r{log(d){console.log(d)}warn(d){console.warn(d)}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})();const Hm=new Ut("LocaleId",{providedIn:"root",factory:()=>fe(Hm,Ce.Optional|Ce.SkipSelf)||function OC(){return typeof $localize<"u"&&$localize.locale||Dp}()}),IC=new Ut("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Yy=(()=>{class r{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new S.X(!1)}add(){this.hasPendingTasks.next(!0);const d=this.taskId++;return this.pendingTasks.add(d),d}remove(d){this.pendingTasks.delete(d),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();class kC{constructor(a,d){this.ngModuleFactory=a,this.componentFactories=d}}let LC=(()=>{class r{compileModuleSync(d){return new Ov(d)}compileModuleAsync(d){return Promise.resolve(this.compileModuleSync(d))}compileModuleAndAllComponentsSync(d){const _=this.compileModuleSync(d),A=pd(wr(d).declarations).reduce((Y,z)=>{const X=Li(z);return X&&Y.push(new wp(X)),Y},[]);return new kC(_,A)}compileModuleAndAllComponentsAsync(d){return Promise.resolve(this.compileModuleAndAllComponentsSync(d))}clearCache(){}clearCacheFor(d){}getModuleId(d){}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const Vy=new Ut(""),jy=new Ut("");let Gv,nT=(()=>{class r{constructor(d,_,x){this._ngZone=d,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gv||(function iT(r){Gv=r}(x),x.addToWindow(_)),this._watchAngularEvents(),d.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{jl.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let d=this._callbacks.pop();clearTimeout(d.timeoutId),d.doneCb(this._didWork)}this._didWork=!1});else{let d=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(d)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(d=>({source:d.source,creationLocation:d.creationLocation,data:d.data})):[]}addCallback(d,_,x){let A=-1;_&&_>0&&(A=setTimeout(()=>{this._callbacks=this._callbacks.filter(Y=>Y.timeoutId!==A),d(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:d,timeoutId:A,updateCb:x})}whenStable(d,_,x){if(x&&!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(d,_,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(d){this.registry.registerApplication(d,this)}unregisterApplication(d){this.registry.unregisterApplication(d)}findProviders(d,_,x){return[]}static#e=this.\u0275fac=function(_){return new(_||r)(wt(jl),wt(Zy),wt(jy))};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac})}return r})(),Zy=(()=>{class r{constructor(){this._applications=new Map}registerApplication(d,_){this._applications.set(d,_)}unregisterApplication(d){this._applications.delete(d)}unregisterAllApplications(){this._applications.clear()}getTestability(d){return this._applications.get(d)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(d,_=!0){return Gv?.findTestabilityInTree(this,d,_)??null}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})(),Kh=null;const zy=new Ut("AllowMultipleToken"),Wv=new Ut("PlatformDestroyListeners"),$v=new Ut("appBootstrapListener");class sT{constructor(a,d){this.name=a,this.token=d}}function $y(r,a,d=[]){const _=`Platform: ${a}`,x=new Ut(_);return(A=[])=>{let Y=Kv();if(!Y||Y.injector.get(zy,!1)){const z=[...d,...A,{provide:x,useValue:!0}];r?r(z):function aT(r){if(Kh&&!Kh.get(zy,!1))throw new je(400,!1);(function Gy(){!function bc(r){Ga=r}(()=>{throw new je(600,!1)})})(),Kh=r;const a=r.get(Jy);(function Wy(r){r.get(Df,null)?.forEach(d=>d())})(r)}(function Ky(r=[],a){return Vd.create({name:a,providers:[{provide:qf,useValue:"platform"},{provide:Wv,useValue:new Set([()=>Kh=null])},...r]})}(z,_))}return function cT(r){const a=Kv();if(!a)throw new je(401,!1);return a}()}}function Kv(){return Kh?.get(Jy)??null}let Jy=(()=>{class r{constructor(d){this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(d,_){const x=function dT(r="zone.js",a){return"noop"===r?new pg:"zone.js"===r?new jl(a):r}(_?.ngZone,function qy(r){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:r?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:r?.runCoalescing??!1}}({eventCoalescing:_?.ngZoneEventCoalescing,runCoalescing:_?.ngZoneRunCoalescing}));return x.run(()=>{const A=function CM(r,a,d){return new Av(r,a,d)}(d.moduleType,this.injector,function nw(r){return[{provide:jl,useFactory:r},{provide:Ea,multi:!0,useFactory:()=>{const a=fe(hT,{optional:!0});return()=>a.initialize()}},{provide:tw,useFactory:uT},{provide:V_,useFactory:j_}]}(()=>x)),Y=A.injector.get(uh,null);return x.runOutsideAngular(()=>{const z=x.onError.subscribe({next:X=>{Y.handleError(X)}});A.onDestroy(()=>{Vm(this._modules,A),z.unsubscribe()})}),function Qy(r,a,d){try{const _=d();return ov(_)?_.catch(x=>{throw a.runOutsideAngular(()=>r.handleError(x)),x}):_}catch(_){throw a.runOutsideAngular(()=>r.handleError(_)),_}}(Y,x,()=>{const z=A.injector.get(jv);return z.runInitializers(),z.donePromise.then(()=>(sb(A.injector.get(Hm,Dp)||Dp),this._moduleDoBootstrap(A),A))})})}bootstrapModule(d,_=[]){const x=Xy({},_);return function rT(r,a,d){const _=new Ov(d);return Promise.resolve(_)}(0,0,d).then(A=>this.bootstrapModuleFactory(A,x))}_moduleDoBootstrap(d){const _=d.injector.get(Ap);if(d._bootstrapComponents.length>0)d._bootstrapComponents.forEach(x=>_.bootstrap(x));else{if(!d.instance.ngDoBootstrap)throw new je(-403,!1);d.instance.ngDoBootstrap(_)}this._modules.push(d)}onDestroy(d){this._destroyListeners.push(d)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new je(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const d=this._injector.get(Wv,null);d&&(d.forEach(_=>_()),d.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(_){return new(_||r)(wt(Vd))};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})();function Xy(r,a){return Array.isArray(a)?a.reduce(Xy,r):{...r,...a}}let Ap=(()=>{class r{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=fe(tw),this.zoneIsStable=fe(V_),this.componentTypes=[],this.components=[],this.isStable=fe(Yy).hasPendingTasks.pipe((0,Z.w)(d=>d?(0,w.of)(!1):this.zoneIsStable),(0,ee.x)(),(0,n.B)()),this._injector=fe(bu)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(d,_){const x=d instanceof R_;if(!this._injector.get(jv).done)throw!x&&Ha(d),new je(405,!1);let Y;Y=x?d:this._injector.get(Af).resolveComponentFactory(d),this.componentTypes.push(Y.componentType);const z=function oT(r){return r.isBoundToModule}(Y)?void 0:this._injector.get(Uf),De=Y.create(Vd.NULL,[],_||Y.selector,z),Ke=De.location.nativeElement,Rt=De.injector.get(Vy,null);return Rt?.registerApplication(Ke),De.onDestroy(()=>{this.detachView(De.hostView),Vm(this.components,De),Rt?.unregisterApplication(Ke)}),this._loadComponent(De),De}tick(){if(this._runningTick)throw new je(101,!1);try{this._runningTick=!0;for(let d of this._views)d.detectChanges()}catch(d){this.internalErrorHandler(d)}finally{this._runningTick=!1}}attachView(d){const _=d;this._views.push(_),_.attachToAppRef(this)}detachView(d){const _=d;Vm(this._views,_),_.detachFromAppRef()}_loadComponent(d){this.attachView(d.hostView),this.tick(),this.components.push(d);const _=this._injector.get($v,[]);_.push(...this._bootstrapListeners),_.forEach(x=>x(d))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(d=>d()),this._views.slice().forEach(d=>d.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(d){return this._destroyListeners.push(d),()=>Vm(this._destroyListeners,d)}destroy(){if(this._destroyed)throw new je(406,!1);const d=this._injector;d.destroy&&!d.destroyed&&d.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Vm(r,a){const d=r.indexOf(a);d>-1&&r.splice(d,1)}const tw=new Ut("",{providedIn:"root",factory:()=>fe(uh).handleError.bind(void 0)});function uT(){const r=fe(jl),a=fe(uh);return d=>r.runOutsideAngular(()=>a.handleError(d))}let hT=(()=>{class r{constructor(){this.zone=fe(jl),this.applicationRef=fe(Ap)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function pT(){return!1}let _T=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=mT}return r})();function mT(r){return function gT(r,a,d){if(Ss(r)&&!d){const _=ko(r.index,a);return new yp(_,_)}return 47&r.type?new yp(a[wi],a):null}(en(),kn(),16==(16&r))}class sw{constructor(){}supports(a){return y(a)}create(a){return new MT(a)}}const xT=(r,a)=>a;class MT{constructor(a){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=a||xT}forEachItem(a){let d;for(d=this._itHead;null!==d;d=d._next)a(d)}forEachOperation(a){let d=this._itHead,_=this._removalsHead,x=0,A=null;for(;d||_;){const Y=!_||d&&d.currentIndex{Y=this._trackByFn(x,z),null!==d&&Object.is(d.trackById,Y)?(_&&(d=this._verifyReinsertion(d,z,Y,x)),Object.is(d.item,z)||this._addIdentityChange(d,z)):(d=this._mismatch(d,z,Y,x),_=!0),d=d._next,x++}),this.length=x;return this._truncate(d),this.collection=a,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;for(this._additionsHead=this._additionsTail=null,a=this._movesHead;null!==a;a=a._nextMoved)a.previousIndex=a.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(a,d,_,x){let A;return null===a?A=this._itTail:(A=a._prev,this._remove(a)),null!==(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(a.item,d)||this._addIdentityChange(a,d),this._reinsertAfter(a,A,x)):null!==(a=null===this._linkedRecords?null:this._linkedRecords.get(_,x))?(Object.is(a.item,d)||this._addIdentityChange(a,d),this._moveAfter(a,A,x)):a=this._addAfter(new CT(d,_),A,x),a}_verifyReinsertion(a,d,_,x){let A=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==A?a=this._reinsertAfter(A,a._prev,x):a.currentIndex!=x&&(a.currentIndex=x,this._addToMoves(a,x)),a}_truncate(a){for(;null!==a;){const d=a._next;this._addToRemovals(this._unlink(a)),a=d}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(a,d,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);const x=a._prevRemoved,A=a._nextRemoved;return null===x?this._removalsHead=A:x._nextRemoved=A,null===A?this._removalsTail=x:A._prevRemoved=x,this._insertAfter(a,d,_),this._addToMoves(a,_),a}_moveAfter(a,d,_){return this._unlink(a),this._insertAfter(a,d,_),this._addToMoves(a,_),a}_addAfter(a,d,_){return this._insertAfter(a,d,_),this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a,a}_insertAfter(a,d,_){const x=null===d?this._itHead:d._next;return a._next=x,a._prev=d,null===x?this._itTail=a:x._prev=a,null===d?this._itHead=a:d._next=a,null===this._linkedRecords&&(this._linkedRecords=new aw),this._linkedRecords.put(a),a.currentIndex=_,a}_remove(a){return this._addToRemovals(this._unlink(a))}_unlink(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);const d=a._prev,_=a._next;return null===d?this._itHead=_:d._next=_,null===_?this._itTail=d:_._prev=d,a}_addToMoves(a,d){return a.previousIndex===d||(this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a),a}_addToRemovals(a){return null===this._unlinkedRecords&&(this._unlinkedRecords=new aw),this._unlinkedRecords.put(a),a.currentIndex=null,a._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a),a}_addIdentityChange(a,d){return a.item=d,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a,a}}class CT{constructor(a,d){this.item=a,this.trackById=d,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 TT{constructor(){this._head=null,this._tail=null}add(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)}get(a,d){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===d||d<=_.currentIndex)&&Object.is(_.trackById,a))return _;return null}remove(a){const d=a._prevDup,_=a._nextDup;return null===d?this._head=_:d._nextDup=_,null===_?this._tail=d:_._prevDup=d,null===this._head}}class aw{constructor(){this.map=new Map}put(a){const d=a.trackById;let _=this.map.get(d);_||(_=new TT,this.map.set(d,_)),_.add(a)}get(a,d){const x=this.map.get(a);return x?x.get(a,d):null}remove(a){const d=a.trackById;return this.map.get(d).remove(a)&&this.map.delete(d),a}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function lw(r,a,d){const _=r.previousIndex;if(null===_)return _;let x=0;return d&&_{if(d&&d.key===x)this._maybeAddToChanges(d,_),this._appendAfter=d,d=d._next;else{const A=this._getOrCreateRecordForKey(x,_);d=this._insertBeforeOrAppend(d,A)}}),d){d._prev&&(d._prev._next=null),this._removalsHead=d;for(let _=d;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(a,d){if(a){const _=a._prev;return d._next=a,d._prev=_,a._prev=d,_&&(_._next=d),a===this._mapHead&&(this._mapHead=d),this._appendAfter=a,a}return this._appendAfter?(this._appendAfter._next=d,d._prev=this._appendAfter):this._mapHead=d,this._appendAfter=d,null}_getOrCreateRecordForKey(a,d){if(this._records.has(a)){const x=this._records.get(a);this._maybeAddToChanges(x,d);const A=x._prev,Y=x._next;return A&&(A._next=Y),Y&&(Y._prev=A),x._next=null,x._prev=null,x}const _=new ET(a);return this._records.set(a,_),_.currentValue=d,this._addToAdditions(_),_}_reset(){if(this.isDirty){let a;for(this._previousMapHead=this._mapHead,a=this._previousMapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(a,d){Object.is(d,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=d,this._addToChanges(a))}_addToAdditions(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:(this._additionsTail._nextAdded=a,this._additionsTail=a)}_addToChanges(a){null===this._changesHead?this._changesHead=this._changesTail=a:(this._changesTail._nextChanged=a,this._changesTail=a)}_forEach(a,d){a instanceof Map?a.forEach(d):Object.keys(a).forEach(_=>d(a[_],_))}}class ET{constructor(a){this.key=a,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 dw(){return new e0([new sw])}let e0=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:dw});constructor(d){this.factories=d}static create(d,_){if(null!=_){const x=_.factories.slice();d=d.concat(x)}return new r(d)}static extend(d){return{provide:r,useFactory:_=>r.create(d,_||dw()),deps:[[r,new Na,new Wr]]}}find(d){const _=this.factories.find(x=>x.supports(d));if(null!=_)return _;throw new je(901,!1)}}return r})();function uw(){return new t0([new cw])}let t0=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:uw});constructor(d){this.factories=d}static create(d,_){if(_){const x=_.factories.slice();d=d.concat(x)}return new r(d)}static extend(d){return{provide:r,useFactory:_=>r.create(d,_||uw()),deps:[[r,new Na,new Wr]]}}find(d){const _=this.factories.find(x=>x.supports(d));if(_)return _;throw new je(901,!1)}}return r})();const OT=$y(null,"core",[]);let IT=(()=>{class r{constructor(d){}static#e=this.\u0275fac=function(_){return new(_||r)(wt(Ap))};static#t=this.\u0275mod=Vo({type:r});static#n=this.\u0275inj=nn({})}return r})();function VT(r){return"boolean"==typeof r?r:null!=r&&"false"!==r}function ZT(r,a){const d=Li(r),_=a.elementInjector||kp();return new wp(d).create(_,a.projectableNodes,a.hostElement,a.environmentInjector)}function zT(r){const a=Li(r);if(!a)return null;const d=new wp(a);return{get selector(){return d.selector},get type(){return d.componentType},get inputs(){return d.inputs},get outputs(){return d.outputs},get ngContentSelectors(){return d.ngContentSelectors},get isStandalone(){return a.standalone},get isSignal(){return a.signals}}}},6223:(ft,Ie,C)=>{"use strict";C.d(Ie,{CE:()=>Js,Cf:()=>Re,EJ:()=>jo,F:()=>$n,Fd:()=>Ko,Fj:()=>oe,JJ:()=>vn,JL:()=>ei,JU:()=>Z,Kr:()=>qs,NI:()=>uo,Oe:()=>io,On:()=>Jr,Q7:()=>jr,UX:()=>na,Wl:()=>re,YN:()=>no,_:()=>Ks,_Y:()=>ga,a5:()=>nn,cw:()=>We,kI:()=>Lt,nD:()=>fo,oH:()=>dr,qQ:()=>Xs,qu:()=>sr,sg:()=>wr,u:()=>qn,u5:()=>ta,wV:()=>oo,x0:()=>Vr});var e=C(5879),l=C(6814),D=C(9666),I=C(9315),S=C(7398);let w=(()=>{class Ae{constructor(le,Qe){this._renderer=le,this._elementRef=Qe,this.onChange=Ht=>{},this.onTouched=()=>{}}setProperty(le,Qe){this._renderer.setProperty(this._elementRef.nativeElement,le,Qe)}registerOnTouched(le){this.onTouched=le}registerOnChange(le){this.onChange=le}setDisabledState(le){this.setProperty("disabled",le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:Ae})}return Ae})(),n=(()=>{class Ae extends w{static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.qOj]})}return Ae})();const Z=new e.OlP("NgValueAccessor"),ee={provide:Z,useExisting:(0,e.Gpc)(()=>re),multi:!0};let re=(()=>{class Ae extends n{writeValue(le){this.setProperty("checked",le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(Ni){return Ht.onChange(Ni.target.checked)})("blur",function(){return Ht.onTouched()})},features:[e._Bn([ee]),e.qOj]})}return Ae})();const ue={provide:Z,useExisting:(0,e.Gpc)(()=>oe),multi:!0},te=new e.OlP("CompositionEventMode");let oe=(()=>{class Ae extends w{constructor(le,Qe,Ht){super(le,Qe),this._compositionMode=Ht,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function se(){const Ae=(0,l.q)()?(0,l.q)().getUserAgent():"";return/android (\d+)/.test(Ae.toLowerCase())}())}writeValue(le){this.setProperty("value",le??"")}_handleInput(le){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(le)}_compositionStart(){this._composing=!0}_compositionEnd(le){this._composing=!1,this._compositionMode&&this.onChange(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(te,8))};static#t=this.\u0275dir=e.lG2({type:Ae,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(Qe,Ht){1&Qe&&e.NdJ("input",function(Ni){return Ht._handleInput(Ni.target.value)})("blur",function(){return Ht.onTouched()})("compositionstart",function(){return Ht._compositionStart()})("compositionend",function(Ni){return Ht._compositionEnd(Ni.target.value)})},features:[e._Bn([ue]),e.qOj]})}return Ae})();function ce(Ae){return null==Ae||("string"==typeof Ae||Array.isArray(Ae))&&0===Ae.length}function _e(Ae){return null!=Ae&&"number"==typeof Ae.length}const Re=new e.OlP("NgValidators"),mt=new e.OlP("NgAsyncValidators"),Ge=/^(?=.{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 Lt{static min(Fe){return je(Fe)}static max(Fe){return Tt(Fe)}static required(Fe){return xt(Fe)}static requiredTrue(Fe){return function St(Ae){return!0===Ae.value?null:{required:!0}}(Fe)}static email(Fe){return function Zt(Ae){return ce(Ae.value)||Ge.test(Ae.value)?null:{email:!0}}(Fe)}static minLength(Fe){return function yt(Ae){return Fe=>ce(Fe.value)||!_e(Fe.value)?null:Fe.value.length{if(ce(Qe.value))return null;const Ht=Qe.value;return Fe.test(Ht)?null:{pattern:{requiredPattern:le,actualValue:Ht}}}}(Fe)}static nullValidator(Fe){return null}static compose(Fe){return dt(Fe)}static composeAsync(Fe){return Be(Fe)}}function je(Ae){return Fe=>{if(ce(Fe.value)||ce(Ae))return null;const le=parseFloat(Fe.value);return!isNaN(le)&&le{if(ce(Fe.value)||ce(Ae))return null;const le=parseFloat(Fe.value);return!isNaN(le)&&le>Ae?{max:{max:Ae,actual:Fe.value}}:null}}function xt(Ae){return ce(Ae.value)?{required:!0}:null}function un(Ae){return Fe=>_e(Fe.value)&&Fe.value.length>Ae?{maxlength:{requiredLength:Ae,actualLength:Fe.value.length}}:null}function tn(Ae){return null}function wn(Ae){return null!=Ae}function Ln(Ae){return(0,e.QGY)(Ae)?(0,D.D)(Ae):Ae}function Yn(Ae){let Fe={};return Ae.forEach(le=>{Fe=null!=le?{...Fe,...le}:Fe}),0===Object.keys(Fe).length?null:Fe}function ti(Ae,Fe){return Fe.map(le=>le(Ae))}function Rn(Ae){return Ae.map(Fe=>function gi(Ae){return!Ae.validate}(Fe)?Fe:le=>Fe.validate(le))}function dt(Ae){if(!Ae)return null;const Fe=Ae.filter(wn);return 0==Fe.length?null:function(le){return Yn(ti(le,Fe))}}function at(Ae){return null!=Ae?dt(Rn(Ae)):null}function Be(Ae){if(!Ae)return null;const Fe=Ae.filter(wn);return 0==Fe.length?null:function(le){const Qe=ti(le,Fe).map(Ln);return(0,I.D)(Qe).pipe((0,S.U)(Yn))}}function Ee(Ae){return null!=Ae?Be(Rn(Ae)):null}function $e(Ae,Fe){return null===Ae?[Fe]:Array.isArray(Ae)?[...Ae,Fe]:[Ae,Fe]}function me(Ae){return Ae._rawValidators}function tt(Ae){return Ae._rawAsyncValidators}function he(Ae){return Ae?Array.isArray(Ae)?Ae:[Ae]:[]}function Ze(Ae,Fe){return Array.isArray(Ae)?Ae.includes(Fe):Ae===Fe}function rt(Ae,Fe){const le=he(Fe);return he(Ae).forEach(Ht=>{Ze(le,Ht)||le.push(Ht)}),le}function bt(Ae,Fe){return he(Fe).filter(le=>!Ze(Ae,le))}class Nt{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(Fe){this._rawValidators=Fe||[],this._composedValidatorFn=at(this._rawValidators)}_setAsyncValidators(Fe){this._rawAsyncValidators=Fe||[],this._composedAsyncValidatorFn=Ee(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Fe){this._onDestroyCallbacks.push(Fe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Fe=>Fe()),this._onDestroyCallbacks=[]}reset(Fe=void 0){this.control&&this.control.reset(Fe)}hasError(Fe,le){return!!this.control&&this.control.hasError(Fe,le)}getError(Fe,le){return this.control?this.control.getError(Fe,le):null}}class Qt extends Nt{get formDirective(){return null}get path(){return null}}class nn extends Nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dn{constructor(Fe){this._cd=Fe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let vn=(()=>{class Ae extends Dn{constructor(le){super(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(nn,2))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Qe,Ht){2&Qe&&e.ekj("ng-untouched",Ht.isUntouched)("ng-touched",Ht.isTouched)("ng-pristine",Ht.isPristine)("ng-dirty",Ht.isDirty)("ng-valid",Ht.isValid)("ng-invalid",Ht.isInvalid)("ng-pending",Ht.isPending)},features:[e.qOj]})}return Ae})(),ei=(()=>{class Ae extends Dn{constructor(le){super(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Qe,Ht){2&Qe&&e.ekj("ng-untouched",Ht.isUntouched)("ng-touched",Ht.isTouched)("ng-pristine",Ht.isPristine)("ng-dirty",Ht.isDirty)("ng-valid",Ht.isValid)("ng-invalid",Ht.isInvalid)("ng-pending",Ht.isPending)("ng-submitted",Ht.isSubmitted)},features:[e.qOj]})}return Ae})();const jn="VALID",ai="INVALID",di="PENDING",oi="DISABLED";function Jn(Ae){return(U(Ae)?Ae.validators:Ae)||null}function _t(Ae,Fe){return(U(Fe)?Fe.asyncValidators:Ae)||null}function U(Ae){return null!=Ae&&!Array.isArray(Ae)&&"object"==typeof Ae}function ve(Ae,Fe,le){const Qe=Ae.controls;if(!(Fe?Object.keys(Qe):Qe).length)throw new e.vHH(1e3,"");if(!Qe[le])throw new e.vHH(1001,"")}function Pe(Ae,Fe,le){Ae._forEachChild((Qe,Ht)=>{if(void 0===le[Ht])throw new e.vHH(1002,"")})}class ut{constructor(Fe,le){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Fe),this._assignAsyncValidators(le)}get validator(){return this._composedValidatorFn}set validator(Fe){this._rawValidators=this._composedValidatorFn=Fe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Fe){this._rawAsyncValidators=this._composedAsyncValidatorFn=Fe}get parent(){return this._parent}get valid(){return this.status===jn}get invalid(){return this.status===ai}get pending(){return this.status==di}get disabled(){return this.status===oi}get enabled(){return this.status!==oi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Fe){this._assignValidators(Fe)}setAsyncValidators(Fe){this._assignAsyncValidators(Fe)}addValidators(Fe){this.setValidators(rt(Fe,this._rawValidators))}addAsyncValidators(Fe){this.setAsyncValidators(rt(Fe,this._rawAsyncValidators))}removeValidators(Fe){this.setValidators(bt(Fe,this._rawValidators))}removeAsyncValidators(Fe){this.setAsyncValidators(bt(Fe,this._rawAsyncValidators))}hasValidator(Fe){return Ze(this._rawValidators,Fe)}hasAsyncValidator(Fe){return Ze(this._rawAsyncValidators,Fe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Fe={}){this.touched=!0,this._parent&&!Fe.onlySelf&&this._parent.markAsTouched(Fe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Fe=>Fe.markAllAsTouched())}markAsUntouched(Fe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(le=>{le.markAsUntouched({onlySelf:!0})}),this._parent&&!Fe.onlySelf&&this._parent._updateTouched(Fe)}markAsDirty(Fe={}){this.pristine=!1,this._parent&&!Fe.onlySelf&&this._parent.markAsDirty(Fe)}markAsPristine(Fe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(le=>{le.markAsPristine({onlySelf:!0})}),this._parent&&!Fe.onlySelf&&this._parent._updatePristine(Fe)}markAsPending(Fe={}){this.status=di,!1!==Fe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Fe.onlySelf&&this._parent.markAsPending(Fe)}disable(Fe={}){const le=this._parentMarkedDirty(Fe.onlySelf);this.status=oi,this.errors=null,this._forEachChild(Qe=>{Qe.disable({...Fe,onlySelf:!0})}),this._updateValue(),!1!==Fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Fe,skipPristineCheck:le}),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(Fe={}){const le=this._parentMarkedDirty(Fe.onlySelf);this.status=jn,this._forEachChild(Qe=>{Qe.enable({...Fe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Fe.emitEvent}),this._updateAncestors({...Fe,skipPristineCheck:le}),this._onDisabledChange.forEach(Qe=>Qe(!1))}_updateAncestors(Fe){this._parent&&!Fe.onlySelf&&(this._parent.updateValueAndValidity(Fe),Fe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Fe){this._parent=Fe}getRawValue(){return this.value}updateValueAndValidity(Fe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===jn||this.status===di)&&this._runAsyncValidator(Fe.emitEvent)),!1!==Fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Fe.onlySelf&&this._parent.updateValueAndValidity(Fe)}_updateTreeValidity(Fe={emitEvent:!0}){this._forEachChild(le=>le._updateTreeValidity(Fe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Fe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?oi:jn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Fe){if(this.asyncValidator){this.status=di,this._hasOwnPendingAsyncValidator=!0;const le=Ln(this.asyncValidator(this));this._asyncValidationSubscription=le.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:Fe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Fe,le={}){this.errors=Fe,this._updateControlsErrors(!1!==le.emitEvent)}get(Fe){let le=Fe;return null==le||(Array.isArray(le)||(le=le.split(".")),0===le.length)?null:le.reduce((Qe,Ht)=>Qe&&Qe._find(Ht),this)}getError(Fe,le){const Qe=le?this.get(le):this;return Qe&&Qe.errors?Qe.errors[Fe]:null}hasError(Fe,le){return!!this.getError(Fe,le)}get root(){let Fe=this;for(;Fe._parent;)Fe=Fe._parent;return Fe}_updateControlsErrors(Fe){this.status=this._calculateStatus(),Fe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Fe)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?oi:this.errors?ai:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(di)?di:this._anyControlsHaveStatus(ai)?ai:jn}_anyControlsHaveStatus(Fe){return this._anyControls(le=>le.status===Fe)}_anyControlsDirty(){return this._anyControls(Fe=>Fe.dirty)}_anyControlsTouched(){return this._anyControls(Fe=>Fe.touched)}_updatePristine(Fe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Fe.onlySelf&&this._parent._updatePristine(Fe)}_updateTouched(Fe={}){this.touched=this._anyControlsTouched(),this._parent&&!Fe.onlySelf&&this._parent._updateTouched(Fe)}_registerOnCollectionChange(Fe){this._onCollectionChange=Fe}_setUpdateStrategy(Fe){U(Fe)&&null!=Fe.updateOn&&(this._updateOn=Fe.updateOn)}_parentMarkedDirty(Fe){return!Fe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Fe){return null}_assignValidators(Fe){this._rawValidators=Array.isArray(Fe)?Fe.slice():Fe,this._composedValidatorFn=function qt(Ae){return Array.isArray(Ae)?at(Ae):Ae||null}(this._rawValidators)}_assignAsyncValidators(Fe){this._rawAsyncValidators=Array.isArray(Fe)?Fe.slice():Fe,this._composedAsyncValidatorFn=function G(Ae){return Array.isArray(Ae)?Ee(Ae):Ae||null}(this._rawAsyncValidators)}}class We extends ut{constructor(Fe,le,Qe){super(Jn(le),_t(Qe,le)),this.controls=Fe,this._initObservables(),this._setUpdateStrategy(le),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Fe,le){return this.controls[Fe]?this.controls[Fe]:(this.controls[Fe]=le,le.setParent(this),le._registerOnCollectionChange(this._onCollectionChange),le)}addControl(Fe,le,Qe={}){this.registerControl(Fe,le),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(Fe,le={}){this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),delete this.controls[Fe],this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}setControl(Fe,le,Qe={}){this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),delete this.controls[Fe],le&&this.registerControl(Fe,le),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(Fe){return this.controls.hasOwnProperty(Fe)&&this.controls[Fe].enabled}setValue(Fe,le={}){Pe(this,0,Fe),Object.keys(Fe).forEach(Qe=>{ve(this,!0,Qe),this.controls[Qe].setValue(Fe[Qe],{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le)}patchValue(Fe,le={}){null!=Fe&&(Object.keys(Fe).forEach(Qe=>{const Ht=this.controls[Qe];Ht&&Ht.patchValue(Fe[Qe],{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le))}reset(Fe={},le={}){this._forEachChild((Qe,Ht)=>{Qe.reset(Fe?Fe[Ht]:null,{onlySelf:!0,emitEvent:le.emitEvent})}),this._updatePristine(le),this._updateTouched(le),this.updateValueAndValidity(le)}getRawValue(){return this._reduceChildren({},(Fe,le,Qe)=>(Fe[Qe]=le.getRawValue(),Fe))}_syncPendingControls(){let Fe=this._reduceChildren(!1,(le,Qe)=>!!Qe._syncPendingControls()||le);return Fe&&this.updateValueAndValidity({onlySelf:!0}),Fe}_forEachChild(Fe){Object.keys(this.controls).forEach(le=>{const Qe=this.controls[le];Qe&&Fe(Qe,le)})}_setUpControls(){this._forEachChild(Fe=>{Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Fe){for(const[le,Qe]of Object.entries(this.controls))if(this.contains(le)&&Fe(Qe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(le,Qe,Ht)=>((Qe.enabled||this.disabled)&&(le[Ht]=Qe.value),le))}_reduceChildren(Fe,le){let Qe=Fe;return this._forEachChild((Ht,Qn)=>{Qe=le(Qe,Ht,Qn)}),Qe}_allControlsDisabled(){for(const Fe of Object.keys(this.controls))if(this.controls[Fe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Fe){return this.controls.hasOwnProperty(Fe)?this.controls[Fe]:null}}class Te extends We{}const Wt=new e.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Pn}),Pn="always";function wt(Ae,Fe){return[...Fe.path,Ae]}function Yt(Ae,Fe,le=Pn){ht(Ae,Fe),Fe.valueAccessor.writeValue(Ae.value),(Ae.disabled||"always"===le)&&Fe.valueAccessor.setDisabledState?.(Ae.disabled),function It(Ae,Fe){Fe.valueAccessor.registerOnChange(le=>{Ae._pendingValue=le,Ae._pendingChange=!0,Ae._pendingDirty=!0,"change"===Ae.updateOn&&_n(Ae,Fe)})}(Ae,Fe),function En(Ae,Fe){const le=(Qe,Ht)=>{Fe.valueAccessor.writeValue(Qe),Ht&&Fe.viewToModelUpdate(Qe)};Ae.registerOnChange(le),Fe._registerOnDestroy(()=>{Ae._unregisterOnChange(le)})}(Ae,Fe),function cn(Ae,Fe){Fe.valueAccessor.registerOnTouched(()=>{Ae._pendingTouched=!0,"blur"===Ae.updateOn&&Ae._pendingChange&&_n(Ae,Fe),"submit"!==Ae.updateOn&&Ae.markAsTouched()})}(Ae,Fe),function Vt(Ae,Fe){if(Fe.valueAccessor.setDisabledState){const le=Qe=>{Fe.valueAccessor.setDisabledState(Qe)};Ae.registerOnDisabledChange(le),Fe._registerOnDestroy(()=>{Ae._unregisterOnDisabledChange(le)})}}(Ae,Fe)}function fe(Ae,Fe,le=!0){const Qe=()=>{};Fe.valueAccessor&&(Fe.valueAccessor.registerOnChange(Qe),Fe.valueAccessor.registerOnTouched(Qe)),st(Ae,Fe),Ae&&(Fe._invokeOnDestroyCallbacks(),Ae._registerOnCollectionChange(()=>{}))}function Mt(Ae,Fe){Ae.forEach(le=>{le.registerOnValidatorChange&&le.registerOnValidatorChange(Fe)})}function ht(Ae,Fe){const le=me(Ae);null!==Fe.validator?Ae.setValidators($e(le,Fe.validator)):"function"==typeof le&&Ae.setValidators([le]);const Qe=tt(Ae);null!==Fe.asyncValidator?Ae.setAsyncValidators($e(Qe,Fe.asyncValidator)):"function"==typeof Qe&&Ae.setAsyncValidators([Qe]);const Ht=()=>Ae.updateValueAndValidity();Mt(Fe._rawValidators,Ht),Mt(Fe._rawAsyncValidators,Ht)}function st(Ae,Fe){let le=!1;if(null!==Ae){if(null!==Fe.validator){const Ht=me(Ae);if(Array.isArray(Ht)&&Ht.length>0){const Qn=Ht.filter(Ni=>Ni!==Fe.validator);Qn.length!==Ht.length&&(le=!0,Ae.setValidators(Qn))}}if(null!==Fe.asyncValidator){const Ht=tt(Ae);if(Array.isArray(Ht)&&Ht.length>0){const Qn=Ht.filter(Ni=>Ni!==Fe.asyncValidator);Qn.length!==Ht.length&&(le=!0,Ae.setAsyncValidators(Qn))}}}const Qe=()=>{};return Mt(Fe._rawValidators,Qe),Mt(Fe._rawAsyncValidators,Qe),le}function _n(Ae,Fe){Ae._pendingDirty&&Ae.markAsDirty(),Ae.setValue(Ae._pendingValue,{emitModelToViewChange:!1}),Fe.viewToModelUpdate(Ae._pendingValue),Ae._pendingChange=!1}function On(Ae,Fe){ht(Ae,Fe)}function Bi(Ae,Fe){if(!Ae.hasOwnProperty("model"))return!1;const le=Ae.model;return!!le.isFirstChange()||!Object.is(Fe,le.currentValue)}function Ji(Ae,Fe){Ae._syncPendingControls(),Fe.forEach(le=>{const Qe=le.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(le.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function tr(Ae,Fe){if(!Fe)return null;let le,Qe,Ht;return Array.isArray(Fe),Fe.forEach(Qn=>{Qn.constructor===oe?le=Qn:function co(Ae){return Object.getPrototypeOf(Ae.constructor)===n}(Qn)?Qe=Qn:Ht=Qn}),Ht||Qe||le||null}const pr={provide:Qt,useExisting:(0,e.Gpc)(()=>$n)},br=(()=>Promise.resolve())();let $n=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.callSetDisabledState=Ht,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new We({},at(le),Ee(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(le){br.then(()=>{const Qe=this._findContainer(le.path);le.control=Qe.registerControl(le.name,le.control),Yt(le.control,le,this.callSetDisabledState),le.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(le)})}getControl(le){return this.form.get(le.path)}removeControl(le){br.then(()=>{const Qe=this._findContainer(le.path);Qe&&Qe.removeControl(le.name),this._directives.delete(le)})}addFormGroup(le){br.then(()=>{const Qe=this._findContainer(le.path),Ht=new We({});On(Ht,le),Qe.registerControl(le.name,Ht),Ht.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(le){br.then(()=>{const Qe=this._findContainer(le.path);Qe&&Qe.removeControl(le.name)})}getFormGroup(le){return this.form.get(le.path)}updateModel(le,Qe){br.then(()=>{this.form.get(le.path).setValue(Qe)})}setValue(le){this.control.setValue(le)}onSubmit(le){return this.submitted=!0,Ji(this.form,this._directives),this.ngSubmit.emit(le),"dialog"===le?.target?.method}onReset(){this.resetForm()}resetForm(le=void 0){this.form.reset(le),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(le){return le.pop(),le.length?this.form.get(le):this.form}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("submit",function(Ni){return Ht.onSubmit(Ni)})("reset",function(){return Ht.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([pr]),e.qOj]})}return Ae})();function yo(Ae,Fe){const le=Ae.indexOf(Fe);le>-1&&Ae.splice(le,1)}function Fr(Ae){return"object"==typeof Ae&&null!==Ae&&2===Object.keys(Ae).length&&"value"in Ae&&"disabled"in Ae}const uo=class extends ut{constructor(Fe=null,le,Qe){super(Jn(le),_t(Qe,le)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Fe),this._setUpdateStrategy(le),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),U(le)&&(le.nonNullable||le.initialValueIsDefault)&&(this.defaultValue=Fr(Fe)?Fe.value:Fe)}setValue(Fe,le={}){this.value=this._pendingValue=Fe,this._onChange.length&&!1!==le.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==le.emitViewToModelChange)),this.updateValueAndValidity(le)}patchValue(Fe,le={}){this.setValue(Fe,le)}reset(Fe=this.defaultValue,le={}){this._applyFormState(Fe),this.markAsPristine(le),this.markAsUntouched(le),this.setValue(this.value,le),this._pendingChange=!1}_updateValue(){}_anyControls(Fe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Fe){this._onChange.push(Fe)}_unregisterOnChange(Fe){yo(this._onChange,Fe)}registerOnDisabledChange(Fe){this._onDisabledChange.push(Fe)}_unregisterOnDisabledChange(Fe){yo(this._onDisabledChange,Fe)}_forEachChild(Fe){}_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(Fe){Fr(Fe)?(this.value=this._pendingValue=Fe.value,Fe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Fe}};let yr=(()=>{class Ae extends Qt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.qOj]})}return Ae})();const $s={provide:nn,useExisting:(0,e.Gpc)(()=>Jr)},Uo=(()=>Promise.resolve())();let Jr=(()=>{class Ae extends nn{constructor(le,Qe,Ht,Qn,Ni,Zo){super(),this._changeDetectorRef=Ni,this.callSetDisabledState=Zo,this.control=new uo,this._registered=!1,this.name="",this.update=new e.vpe,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht),this.valueAccessor=tr(0,Qn)}ngOnChanges(le){if(this._checkForErrors(),!this._registered||"name"in le){if(this._registered&&(this._checkName(),this.formDirective)){const Qe=le.name.previousValue;this.formDirective.removeControl({name:Qe,path:this._getPath(Qe)})}this._setUpControl()}"isDisabled"in le&&this._updateDisabled(le),Bi(le,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}_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(){Yt(this.control,this,this.callSetDisabledState),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(le){Uo.then(()=>{this.control.setValue(le,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(le){const Qe=le.isDisabled.currentValue,Ht=0!==Qe&&(0,e.VuI)(Qe);Uo.then(()=>{Ht&&!this.control.disabled?this.control.disable():!Ht&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(le){return this._parent?wt(le,this._parent):[le]}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,9),e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(e.sBO,8),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([$s]),e.qOj,e.TTD]})}return Ae})(),ga=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Ae})();const kr={provide:Z,useExisting:(0,e.Gpc)(()=>oo),multi:!0};let oo=(()=>{class Ae extends n{writeValue(le){this.setProperty("value",le??"")}registerOnChange(le){this.onChange=Qe=>{le(""==Qe?null:parseFloat(Qe))}}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("input",function(Ni){return Ht.onChange(Ni.target.value)})("blur",function(){return Ht.onTouched()})},features:[e._Bn([kr]),e.qOj]})}return Ae})();const fs={provide:Z,useExisting:(0,e.Gpc)(()=>Ks),multi:!0};let Vo=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({})}return Ae})(),oc=(()=>{class Ae{constructor(){this._accessors=[]}add(le,Qe){this._accessors.push([le,Qe])}remove(le){for(let Qe=this._accessors.length-1;Qe>=0;--Qe)if(this._accessors[Qe][1]===le)return void this._accessors.splice(Qe,1)}select(le){this._accessors.forEach(Qe=>{this._isSameGroup(Qe,le)&&Qe[1]!==le&&Qe[1].fireUncheck(le.value)})}_isSameGroup(le,Qe){return!!le[0].control&&le[0]._parent===Qe._control._parent&&le[1].name===Qe.name}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:Vo})}return Ae})(),Ks=(()=>{class Ae extends n{constructor(le,Qe,Ht,Qn){super(le,Qe),this._registry=Ht,this._injector=Qn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,e.f3M)(Wt,{optional:!0})??Pn}ngOnInit(){this._control=this._injector.get(nn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(le){this._state=le===this.value,this.setProperty("checked",this._state)}registerOnChange(le){this._fn=le,this.onChange=()=>{le(this.value),this._registry.select(this)}}setDisabledState(le){(this.setDisabledStateFired||le||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",le),this.setDisabledStateFired=!0}fireUncheck(le){this.writeValue(le)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(oc),e.Y36(e.zs3))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(){return Ht.onChange()})("blur",function(){return Ht.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e._Bn([fs]),e.qOj]})}return Ae})();const Li=new e.OlP("NgModelWithFormControlWarning"),Yr={provide:nn,useExisting:(0,e.Gpc)(()=>dr)};let dr=(()=>{class Ae extends nn{set isDisabled(le){}static#e=this._ngModelWarningSentOnce=!1;constructor(le,Qe,Ht,Qn,Ni){super(),this._ngModelWarningConfig=Qn,this.callSetDisabledState=Ni,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(le),this._setAsyncValidators(Qe),this.valueAccessor=tr(0,Ht)}ngOnChanges(le){if(this._isControlChanged(le)){const Qe=le.form.previousValue;Qe&&fe(Qe,this,!1),Yt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Bi(le,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&fe(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}_isControlChanged(le){return le.hasOwnProperty("form")}static#t=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(Li,8),e.Y36(Wt,8))};static#n=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Yr]),e.qOj,e.TTD]})}return Ae})();const Ha={provide:Qt,useExisting:(0,e.Gpc)(()=>wr)};let wr=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.callSetDisabledState=Ht,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(le),this._setAsyncValidators(Qe)}ngOnChanges(le){this._checkFormPresent(),le.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(st(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(le){const Qe=this.form.get(le.path);return Yt(Qe,le,this.callSetDisabledState),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(le),Qe}getControl(le){return this.form.get(le.path)}removeControl(le){fe(le.control||null,le,!1),function _i(Ae,Fe){const le=Ae.indexOf(Fe);le>-1&&Ae.splice(le,1)}(this.directives,le)}addFormGroup(le){this._setUpFormContainer(le)}removeFormGroup(le){this._cleanUpFormContainer(le)}getFormGroup(le){return this.form.get(le.path)}addFormArray(le){this._setUpFormContainer(le)}removeFormArray(le){this._cleanUpFormContainer(le)}getFormArray(le){return this.form.get(le.path)}updateModel(le,Qe){this.form.get(le.path).setValue(Qe)}onSubmit(le){return this.submitted=!0,Ji(this.form,this.directives),this.ngSubmit.emit(le),"dialog"===le?.target?.method}onReset(){this.resetForm()}resetForm(le=void 0){this.form.reset(le),this.submitted=!1}_updateDomValue(){this.directives.forEach(le=>{const Qe=le.control,Ht=this.form.get(le.path);Qe!==Ht&&(fe(Qe||null,le),(Ae=>Ae instanceof uo)(Ht)&&(Yt(Ht,le,this.callSetDisabledState),le.control=Ht))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(le){const Qe=this.form.get(le.path);On(Qe,le),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(le){if(this.form){const Qe=this.form.get(le.path);Qe&&function ni(Ae,Fe){return st(Ae,Fe)}(Qe,le)&&Qe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ht(this.form,this),this._oldForm&&st(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroup",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("submit",function(Ni){return Ht.onSubmit(Ni)})("reset",function(){return Ht.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ha]),e.qOj,e.TTD]})}return Ae})();const al={provide:Qt,useExisting:(0,e.Gpc)(()=>Vr)};let Vr=(()=>{class Ae extends yr{constructor(le,Qe,Ht){super(),this.name=null,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht)}_checkParentType(){ll(this._parent)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[e._Bn([al]),e.qOj]})}return Ae})();const Es={provide:Qt,useExisting:(0,e.Gpc)(()=>Js)};let Js=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.name=null,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){ll(this._parent)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[e._Bn([Es]),e.qOj]})}return Ae})();function ll(Ae){return!(Ae instanceof Vr||Ae instanceof wr||Ae instanceof Js)}const er={provide:nn,useExisting:(0,e.Gpc)(()=>qn)};let qn=(()=>{class Ae extends nn{set isDisabled(le){}static#e=this._ngModelWarningSentOnce=!1;constructor(le,Qe,Ht,Qn,Ni){super(),this._ngModelWarningConfig=Ni,this._added=!1,this.name=null,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht),this.valueAccessor=tr(0,Qn)}ngOnChanges(le){this._added||this._setUpControl(),Bi(le,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}get path(){return wt(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._added=!0}static#t=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(Li,8))};static#n=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([er]),e.qOj,e.TTD]})}return Ae})();const bi={provide:Z,useExisting:(0,e.Gpc)(()=>jo),multi:!0};function _r(Ae,Fe){return null==Ae?`${Fe}`:(Fe&&"object"==typeof Fe&&(Fe="Object"),`${Ae}: ${Fe}`.slice(0,50))}let jo=(()=>{class Ae extends n{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(le){this._compareWith=le}writeValue(le){this.value=le;const Ht=_r(this._getOptionId(le),le);this.setProperty("value",Ht)}registerOnChange(le){this.onChange=Qe=>{this.value=this._getOptionValue(Qe),le(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(le){for(const Qe of this._optionMap.keys())if(this._compareWith(this._optionMap.get(Qe),le))return Qe;return null}_getOptionValue(le){const Qe=function wo(Ae){return Ae.split(":")[0]}(le);return this._optionMap.has(Qe)?this._optionMap.get(Qe):le}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(Ni){return Ht.onChange(Ni.target.value)})("blur",function(){return Ht.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([bi]),e.qOj]})}return Ae})(),no=(()=>{class Ae{constructor(le,Qe,Ht){this._element=le,this._renderer=Qe,this._select=Ht,this._select&&(this.id=this._select._registerOption())}set ngValue(le){null!=this._select&&(this._select._optionMap.set(this.id,le),this._setElementValue(_r(this.id,le)),this._select.writeValue(this._select.value))}set value(le){this._setElementValue(le),this._select&&this._select.writeValue(this._select.value)}_setElementValue(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(jo,9))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Ae})();const Ao={provide:Z,useExisting:(0,e.Gpc)(()=>Ti),multi:!0};function nr(Ae,Fe){return null==Ae?`${Fe}`:("string"==typeof Fe&&(Fe=`'${Fe}'`),Fe&&"object"==typeof Fe&&(Fe="Object"),`${Ae}: ${Fe}`.slice(0,50))}let Ti=(()=>{class Ae extends n{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(le){this._compareWith=le}writeValue(le){let Qe;if(this.value=le,Array.isArray(le)){const Ht=le.map(Qn=>this._getOptionId(Qn));Qe=(Qn,Ni)=>{Qn._setSelected(Ht.indexOf(Ni.toString())>-1)}}else Qe=(Ht,Qn)=>{Ht._setSelected(!1)};this._optionMap.forEach(Qe)}registerOnChange(le){this.onChange=Qe=>{const Ht=[],Qn=Qe.selectedOptions;if(void 0!==Qn){const Ni=Qn;for(let Zo=0;Zo{class Ae{constructor(le,Qe,Ht){this._element=le,this._renderer=Qe,this._select=Ht,this._select&&(this.id=this._select._registerOption(this))}set ngValue(le){null!=this._select&&(this._value=le,this._setElementValue(nr(this.id,le)),this._select.writeValue(this._select.value))}set value(le){this._select?(this._value=le,this._setElementValue(nr(this.id,le)),this._select.writeValue(this._select.value)):this._setElementValue(le)}_setElementValue(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}_setSelected(le){this._renderer.setProperty(this._element.nativeElement,"selected",le)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ti,9))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Ae})();function Qs(Ae){return"number"==typeof Ae?Ae:parseFloat(Ae)}let wi=(()=>{class Ae{constructor(){this._validator=tn}ngOnChanges(le){if(this.inputName in le){const Qe=this.normalizeInput(le[this.inputName].currentValue);this._enabled=this.enabled(Qe),this._validator=this._enabled?this.createValidator(Qe):tn,this._onChange&&this._onChange()}}validate(le){return this._validator(le)}registerOnValidatorChange(le){this._onChange=le}enabled(le){return null!=le}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.TTD]})}return Ae})();const Oo={provide:Re,useExisting:(0,e.Gpc)(()=>Ko),multi:!0};let Ko=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=le=>Qs(le),this.createValidator=le=>Tt(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("max",Ht._enabled?Ht.max:null)},inputs:{max:"max"},features:[e._Bn([Oo]),e.qOj]})}return Ae})();const or={provide:Re,useExisting:(0,e.Gpc)(()=>Xs),multi:!0};let Xs=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=le=>Qs(le),this.createValidator=le=>je(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("min",Ht._enabled?Ht.min:null)},inputs:{min:"min"},features:[e._Bn([or]),e.qOj]})}return Ae})();const Ml={provide:Re,useExisting:(0,e.Gpc)(()=>jr),multi:!0};let jr=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.VuI,this.createValidator=le=>xt}enabled(le){return le}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("required",Ht._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Ml]),e.qOj]})}return Ae})();const Ys={provide:Re,useExisting:(0,e.Gpc)(()=>fo),multi:!0};let fo=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=le=>function ba(Ae){return"number"==typeof Ae?Ae:parseInt(Ae,10)}(le),this.createValidator=le=>un(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("maxlength",Ht._enabled?Ht.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e._Bn([Ys]),e.qOj]})}return Ae})(),po=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[Vo]})}return Ae})();class io extends ut{constructor(Fe,le,Qe){super(Jn(le),_t(Qe,le)),this.controls=Fe,this._initObservables(),this._setUpdateStrategy(le),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Fe){return this.controls[this._adjustIndex(Fe)]}push(Fe,le={}){this.controls.push(Fe),this._registerControl(Fe),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}insert(Fe,le,Qe={}){this.controls.splice(Fe,0,le),this._registerControl(le),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(Fe,le={}){let Qe=this._adjustIndex(Fe);Qe<0&&(Qe=0),this.controls[Qe]&&this.controls[Qe]._registerOnCollectionChange(()=>{}),this.controls.splice(Qe,1),this.updateValueAndValidity({emitEvent:le.emitEvent})}setControl(Fe,le,Qe={}){let Ht=this._adjustIndex(Fe);Ht<0&&(Ht=0),this.controls[Ht]&&this.controls[Ht]._registerOnCollectionChange(()=>{}),this.controls.splice(Ht,1),le&&(this.controls.splice(Ht,0,le),this._registerControl(le)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Fe,le={}){Pe(this,0,Fe),Fe.forEach((Qe,Ht)=>{ve(this,!1,Ht),this.at(Ht).setValue(Qe,{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le)}patchValue(Fe,le={}){null!=Fe&&(Fe.forEach((Qe,Ht)=>{this.at(Ht)&&this.at(Ht).patchValue(Qe,{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le))}reset(Fe=[],le={}){this._forEachChild((Qe,Ht)=>{Qe.reset(Fe[Ht],{onlySelf:!0,emitEvent:le.emitEvent})}),this._updatePristine(le),this._updateTouched(le),this.updateValueAndValidity(le)}getRawValue(){return this.controls.map(Fe=>Fe.getRawValue())}clear(Fe={}){this.controls.length<1||(this._forEachChild(le=>le._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Fe.emitEvent}))}_adjustIndex(Fe){return Fe<0?Fe+this.length:Fe}_syncPendingControls(){let Fe=this.controls.reduce((le,Qe)=>!!Qe._syncPendingControls()||le,!1);return Fe&&this.updateValueAndValidity({onlySelf:!0}),Fe}_forEachChild(Fe){this.controls.forEach((le,Qe)=>{Fe(le,Qe)})}_updateValue(){this.value=this.controls.filter(Fe=>Fe.enabled||this.disabled).map(Fe=>Fe.value)}_anyControls(Fe){return this.controls.some(le=>le.enabled&&Fe(le))}_setUpControls(){this._forEachChild(Fe=>this._registerControl(Fe))}_allControlsDisabled(){for(const Fe of this.controls)if(Fe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Fe){Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange)}_find(Fe){return this.at(Fe)??null}}function ya(Ae){return!!Ae&&(void 0!==Ae.asyncValidators||void 0!==Ae.validators||void 0!==Ae.updateOn)}let sr=(()=>{class Ae{constructor(){this.useNonNullable=!1}get nonNullable(){const le=new Ae;return le.useNonNullable=!0,le}group(le,Qe=null){const Ht=this._reduceControls(le);let Qn={};return ya(Qe)?Qn=Qe:null!==Qe&&(Qn.validators=Qe.validator,Qn.asyncValidators=Qe.asyncValidator),new We(Ht,Qn)}record(le,Qe=null){const Ht=this._reduceControls(le);return new Te(Ht,Qe)}control(le,Qe,Ht){let Qn={};return this.useNonNullable?(ya(Qe)?Qn=Qe:(Qn.validators=Qe,Qn.asyncValidators=Ht),new uo(le,{...Qn,nonNullable:!0})):new uo(le,Qe,Ht)}array(le,Qe,Ht){const Qn=le.map(Ni=>this._createControl(Ni));return new io(Qn,Qe,Ht)}_reduceControls(le){const Qe={};return Object.keys(le).forEach(Ht=>{Qe[Ht]=this._createControl(le[Ht])}),Qe}_createControl(le){return le instanceof uo||le instanceof ut?le:Array.isArray(le)?this.control(le[0],le.length>1?le[1]:null,le.length>2?le[2]:null):this.control(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})(),ta=(()=>{class Ae{static withConfig(le){return{ngModule:Ae,providers:[{provide:Wt,useValue:le.callSetDisabledState??Pn}]}}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[po]})}return Ae})(),na=(()=>{class Ae{static withConfig(le){return{ngModule:Ae,providers:[{provide:Li,useValue:le.warnOnNgModelWithFormControl??"always"},{provide:Wt,useValue:le.callSetDisabledState??Pn}]}}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[po]})}return Ae})()},2296:(ft,Ie,C)=>{"use strict";C.d(Ie,{RK:()=>Rn,lW:()=>Zt,ot:()=>at});var e=C(2831),l=C(5879),D=C(4300),I=C(2605),S=C(3680);const w=["mat-button",""],n=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Z=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],oe=["mat-icon-button",""],ce=["*"],Ge=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Lt=(0,S.pj)((0,S.Id)((0,S.Kr)(class{constructor(Be){this._elementRef=Be}})));let je=(()=>{class Be extends Lt{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple($e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,$e)}get disableRipple(){return this._disableRipple}set disableRipple($e){this._disableRipple=(0,I.Ig)($e),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled($e){this._disabled=(0,I.Ig)($e),this._updateRippleDisabled()}constructor($e,me,tt,he){super($e),this._platform=me,this._ngZone=tt,this._animationMode=he,this._focusMonitor=(0,l.f3M)(D.tE),this._rippleLoader=(0,l.f3M)(S.Fq),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const Ze=$e.nativeElement.classList;for(const rt of Ge)this._hasHostAttributes(rt.selector)&&rt.mdcClasses.forEach(bt=>{Ze.add(bt)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus($e="program",me){$e?this._focusMonitor.focusVia(this._elementRef.nativeElement,$e,me):this._elementRef.nativeElement.focus(me)}_hasHostAttributes(...$e){return $e.some(me=>this._elementRef.nativeElement.hasAttribute(me))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(me){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Be,features:[l.qOj]})}return Be})(),Zt=(()=>{class Be extends je{constructor($e,me,tt,he){super($e,me,tt,he)}static#e=this.\u0275fac=function(me){return new(me||Be)(l.Y36(l.SBq),l.Y36(e.t4),l.Y36(l.R0b),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Be,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(me,tt){2&me&&(l.uIk("disabled",tt.disabled||null),l.ekj("_mat-animation-noopable","NoopAnimations"===tt._animationMode)("mat-unthemed",!tt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[l.qOj],attrs:w,ngContentSelectors:Z,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(me,tt){1&me&&(l.F$t(n),l._UZ(0,"span",0),l.Hsn(1),l.TgZ(2,"span",1),l.Hsn(3,1),l.qZA(),l.Hsn(4,2),l._UZ(5,"span",2)(6,"span",3)),2&me&&l.ekj("mdc-button__ripple",!tt._isFab)("mdc-fab__ripple",tt._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Be})(),Rn=(()=>{class Be extends je{constructor($e,me,tt,he){super($e,me,tt,he),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(me){return new(me||Be)(l.Y36(l.SBq),l.Y36(e.t4),l.Y36(l.R0b),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Be,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(me,tt){2&me&&(l.uIk("disabled",tt.disabled||null),l.ekj("_mat-animation-noopable","NoopAnimations"===tt._animationMode)("mat-unthemed",!tt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[l.qOj],attrs:oe,ngContentSelectors:ce,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(me,tt){1&me&&(l.F$t(),l._UZ(0,"span",0),l.Hsn(1),l._UZ(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Be})(),at=(()=>{class Be{static#e=this.\u0275fac=function(me){return new(me||Be)};static#t=this.\u0275mod=l.oAB({type:Be});static#n=this.\u0275inj=l.cJS({imports:[S.BQ,S.si,S.BQ]})}return Be})()},5195:(ft,Ie,C)=>{"use strict";C.d(Ie,{$j:()=>oe,C1:()=>se,QW:()=>Zt,a8:()=>re,dn:()=>te,hq:()=>ce,n5:()=>ue,vP:()=>Ge});var e=C(5879),l=C(6814),D=C(3680);const I=["*"],S=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],w=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]","*"],ee=new e.OlP("MAT_CARD_CONFIG");let re=(()=>{class yt{constructor(Jt){this.appearance=Jt?.appearance||"raised"}static#e=this.\u0275fac=function(tn){return new(tn||yt)(e.Y36(ee,8))};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(tn,wn){2&tn&&e.ekj("mat-mdc-card-outlined","outlined"===wn.appearance)("mdc-card--outlined","outlined"===wn.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:I,decls:1,vars:0,template:function(tn,wn){1&tn&&(e.F$t(),e.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return yt})(),ue=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return yt})(),se=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-mdc-card-title-group"],ngContentSelectors:w,decls:4,vars:0,template:function(tn,wn){1&tn&&(e.F$t(S),e.TgZ(0,"div"),e.Hsn(1),e.qZA(),e.Hsn(2,1),e.Hsn(3,2))},encapsulation:2,changeDetection:0})}return yt})(),te=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return yt})(),oe=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return yt})(),ce=(()=>{class yt{constructor(){this.align="start"}static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(tn,wn){2&tn&&e.ekj("mat-mdc-card-actions-align-end","end"===wn.align)},inputs:{align:"align"},exportAs:["matCardActions"]})}return yt})(),Ge=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-mdc-card-sm-image","mdc-card__media"]})}return yt})(),Zt=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275mod=e.oAB({type:yt});static#n=this.\u0275inj=e.cJS({imports:[D.BQ,l.ez,D.BQ]})}return yt})()},3680:(ft,Ie,C)=>{"use strict";C.d(Ie,{rD:()=>rt,K7:()=>fn,HF:()=>Ft,Y2:()=>J,BQ:()=>St,uc:()=>nn,ey:()=>di,Ng:()=>qt,rN:()=>jn,wG:()=>ae,Fq:()=>We,si:()=>Oe,CB:()=>oi,jH:()=>Jn,pj:()=>tn,Kr:()=>wn,Id:()=>Jt,FD:()=>Yn,dB:()=>ti,sb:()=>Ln});var e=C(5879),l=C(4300),D=C(9388),S=C(6814),w=C(2831),n=C(2605),Z=C(5592),ee=C(8645),re=C(6028);const te=["text"];function oe(ze,be){if(1&ze&&e._UZ(0,"mat-pseudo-checkbox",6),2&ze){const Te=e.oxw();e.Q6J("disabled",Te.disabled)("state",Te.selected?"checked":"unchecked")}}function ce(ze,be){if(1&ze&&e._UZ(0,"mat-pseudo-checkbox",7),2&ze){const Te=e.oxw();e.Q6J("disabled",Te.disabled)}}function _e(ze,be){if(1&ze&&(e.TgZ(0,"span",8),e._uU(1),e.qZA()),2&ze){const Te=e.oxw();e.xp6(1),e.hij("(",Te.group.label,")")}}const Re=[[["mat-icon"]],"*"],mt=["mat-icon","*"],xt=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Tt(){return!0}});let St=(()=>{class ze{constructor(Te,He,Wt){this._sanityChecks=He,this._document=Wt,this._hasDoneGlobalChecks=!1,Te._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Te){return!(0,w.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Te])}static#e=this.\u0275fac=function(He){return new(He||ze)(e.LFG(l.qm),e.LFG(xt,8),e.LFG(S.K0))};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[D.vT,D.vT]})}return ze})();function Jt(ze){return class extends ze{get disabled(){return this._disabled}set disabled(be){this._disabled=(0,n.Ig)(be)}constructor(...be){super(...be),this._disabled=!1}}}function tn(ze,be){return class extends ze{get color(){return this._color}set color(Te){const He=Te||this.defaultColor;He!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),He&&this._elementRef.nativeElement.classList.add(`mat-${He}`),this._color=He)}constructor(...Te){super(...Te),this.defaultColor=be,this.color=be}}}function wn(ze){return class extends ze{get disableRipple(){return this._disableRipple}set disableRipple(be){this._disableRipple=(0,n.Ig)(be)}constructor(...be){super(...be),this._disableRipple=!1}}}function Ln(ze,be=0){return class extends ze{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Te){this._tabIndex=null!=Te?(0,n.su)(Te):this.defaultTabIndex}constructor(...Te){super(...Te),this._tabIndex=be,this.defaultTabIndex=be}}}function Yn(ze){return class extends ze{updateErrorState(){const be=this.errorState,Pn=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Pn!==be&&(this.errorState=Pn,this.stateChanges.next())}constructor(...be){super(...be),this.errorState=!1}}}function ti(ze){return class extends ze{constructor(...be){super(...be),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Z.y(Te=>{this._isInitialized?this._notifySubscriber(Te):this._pendingSubscribers.push(Te)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(be){be.next(),be.complete()}}}let rt=(()=>{class ze{isErrorState(Te,He){return!!(Te&&Te.invalid&&(Te.touched||He&&He.submitted))}static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})(),nn=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St,St]})}return ze})();class Dn{constructor(be,Te,He,Wt=!1){this._renderer=be,this.element=Te,this.config=He,this._animationForciblyDisabledThroughCss=Wt,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ot=(0,w.i$)({passive:!0,capture:!0});class rn{constructor(){this._events=new Map,this._delegateEventHandler=be=>{const Te=(0,w.sA)(be);Te&&this._events.get(be.type)?.forEach((He,Wt)=>{(Wt===Te||Wt.contains(Te))&&He.forEach(Pn=>Pn.handleEvent(be))})}}addHandler(be,Te,He,Wt){const Pn=this._events.get(Te);if(Pn){const wt=Pn.get(He);wt?wt.add(Wt):Pn.set(He,new Set([Wt]))}else this._events.set(Te,new Map([[He,new Set([Wt])]])),be.runOutsideAngular(()=>{document.addEventListener(Te,this._delegateEventHandler,Ot)})}removeHandler(be,Te,He){const Wt=this._events.get(be);if(!Wt)return;const Pn=Wt.get(Te);Pn&&(Pn.delete(He),0===Pn.size&&Wt.delete(Te),0===Wt.size&&(this._events.delete(be),document.removeEventListener(be,this._delegateEventHandler,Ot)))}}const vn={enterDuration:225,exitDuration:150},Wn=(0,w.i$)({passive:!0,capture:!0}),Ve=["mousedown","touchstart"],ct=["mouseup","mouseleave","touchend","touchcancel"];class Ct{static#e=this._eventManager=new rn;constructor(be,Te,He,Wt){this._target=be,this._ngZone=Te,this._platform=Wt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Wt.isBrowser&&(this._containerElement=(0,n.fI)(He))}fadeInRipple(be,Te,He={}){const Wt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Pn={...vn,...He.animation};He.centered&&(be=Wt.left+Wt.width/2,Te=Wt.top+Wt.height/2);const wt=He.radius||function Ce(ze,be,Te){const He=Math.max(Math.abs(ze-Te.left),Math.abs(ze-Te.right)),Wt=Math.max(Math.abs(be-Te.top),Math.abs(be-Te.bottom));return Math.sqrt(He*He+Wt*Wt)}(be,Te,Wt),Yt=be-Wt.left,fe=Te-Wt.top,Mt=Pn.enterDuration,Vt=document.createElement("div");Vt.classList.add("mat-ripple-element"),Vt.style.left=Yt-wt+"px",Vt.style.top=fe-wt+"px",Vt.style.height=2*wt+"px",Vt.style.width=2*wt+"px",null!=He.color&&(Vt.style.backgroundColor=He.color),Vt.style.transitionDuration=`${Mt}ms`,this._containerElement.appendChild(Vt);const ht=window.getComputedStyle(Vt),It=ht.transitionDuration,cn="none"===ht.transitionProperty||"0s"===It||"0s, 0s"===It||0===Wt.width&&0===Wt.height,_n=new Dn(this,Vt,He,cn);Vt.style.transform="scale3d(1, 1, 1)",_n.state=0,He.persistent||(this._mostRecentTransientRipple=_n);let En=null;return!cn&&(Mt||Pn.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const On=()=>this._finishRippleTransition(_n),ni=()=>this._destroyRipple(_n);Vt.addEventListener("transitionend",On),Vt.addEventListener("transitioncancel",ni),En={onTransitionEnd:On,onTransitionCancel:ni}}),this._activeRipples.set(_n,En),(cn||!Mt)&&this._finishRippleTransition(_n),_n}fadeOutRipple(be){if(2===be.state||3===be.state)return;const Te=be.element,He={...vn,...be.config.animation};Te.style.transitionDuration=`${He.exitDuration}ms`,Te.style.opacity="0",be.state=2,(be._animationForciblyDisabledThroughCss||!He.exitDuration)&&this._finishRippleTransition(be)}fadeOutAll(){this._getActiveRipples().forEach(be=>be.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(be=>{be.config.persistent||be.fadeOut()})}setupTriggerEvents(be){const Te=(0,n.fI)(be);!this._platform.isBrowser||!Te||Te===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Te,Ve.forEach(He=>{Ct._eventManager.addHandler(this._ngZone,He,Te,this)}))}handleEvent(be){"mousedown"===be.type?this._onMousedown(be):"touchstart"===be.type?this._onTouchStart(be):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ct.forEach(Te=>{this._triggerElement.addEventListener(Te,this,Wn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(be){0===be.state?this._startFadeOutTransition(be):2===be.state&&this._destroyRipple(be)}_startFadeOutTransition(be){const Te=be===this._mostRecentTransientRipple,{persistent:He}=be.config;be.state=1,!He&&(!Te||!this._isPointerDown)&&be.fadeOut()}_destroyRipple(be){const Te=this._activeRipples.get(be)??null;this._activeRipples.delete(be),this._activeRipples.size||(this._containerRect=null),be===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),be.state=3,null!==Te&&(be.element.removeEventListener("transitionend",Te.onTransitionEnd),be.element.removeEventListener("transitioncancel",Te.onTransitionCancel)),be.element.remove()}_onMousedown(be){const Te=(0,l.X6)(be),He=this._lastTouchStartEvent&&Date.now(){!be.config.persistent&&(1===be.state||be.config.terminateOnPointerUp&&0===be.state)&&be.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const be=this._triggerElement;be&&(Ve.forEach(Te=>Ct._eventManager.removeHandler(Te,be,this)),this._pointerUpEventsRegistered&&ct.forEach(Te=>be.removeEventListener(Te,this,Wn)))}}const J=new e.OlP("mat-ripple-global-options");let ae=(()=>{class ze{get disabled(){return this._disabled}set disabled(Te){Te&&this.fadeOutAllNonPersistent(),this._disabled=Te,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Te){this._trigger=Te,this._setupTriggerEventsIfEnabled()}constructor(Te,He,Wt,Pn,wt){this._elementRef=Te,this._animationMode=wt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Pn||{},this._rippleRenderer=new Ct(this,He,Te,Wt)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Te,He=0,Wt){return"number"==typeof Te?this._rippleRenderer.fadeInRipple(Te,He,{...this.rippleConfig,...Wt}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Te})}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(w.t4),e.Y36(J,8),e.Y36(e.QbO,8))};static#t=this.\u0275dir=e.lG2({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(He,Wt){2&He&&e.ekj("mat-ripple-unbounded",Wt.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return ze})(),Oe=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St,St]})}return ze})(),ot=(()=>{class ze{constructor(Te){this._animationMode=Te,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(He,Wt){2&He&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Wt.state)("mat-pseudo-checkbox-checked","checked"===Wt.state)("mat-pseudo-checkbox-disabled",Wt.disabled)("mat-pseudo-checkbox-minimal","minimal"===Wt.appearance)("mat-pseudo-checkbox-full","full"===Wt.appearance)("_mat-animation-noopable","NoopAnimations"===Wt._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(He,Wt){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return ze})(),Se=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St]})}return ze})();const Ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),fn=new e.OlP("MatOptgroup");let An=0;class jn{constructor(be,Te=!1){this.source=be,this.isUserInput=Te}}let ai=(()=>{class ze{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Te){this._disabled=(0,n.Ig)(Te)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(Te,He,Wt,Pn){this._element=Te,this._changeDetectorRef=He,this._parent=Wt,this.group=Pn,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+An++,this.onSelectionChange=new e.vpe,this._stateChanges=new ee.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Te=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Te&&this._emitSelectionChangeEvent())}deselect(Te=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Te&&this._emitSelectionChangeEvent())}focus(Te,He){const Wt=this._getHostElement();"function"==typeof Wt.focus&&Wt.focus(He)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Te){(Te.keyCode===re.K5||Te.keyCode===re.L_)&&!(0,re.Vb)(Te)&&(this._selectViaInteraction(),Te.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Te=this.viewValue;Te!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Te)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Te=!1){this.onSelectionChange.emit(new jn(this,Te))}static#e=this.\u0275fac=function(He){e.$Z()};static#t=this.\u0275dir=e.lG2({type:ze,viewQuery:function(He,Wt){if(1&He&&e.Gf(te,7),2&He){let Pn;e.iGM(Pn=e.CRH())&&(Wt._text=Pn.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return ze})(),di=(()=>{class ze extends ai{constructor(Te,He,Wt,Pn){super(Te,He,Wt,Pn)}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ft,8),e.Y36(fn,8))};static#t=this.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(He,Wt){1&He&&e.NdJ("click",function(){return Wt._selectViaInteraction()})("keydown",function(wt){return Wt._handleKeydown(wt)}),2&He&&(e.Ikx("id",Wt.id),e.uIk("aria-selected",Wt.selected)("aria-disabled",Wt.disabled.toString()),e.ekj("mdc-list-item--selected",Wt.selected)("mat-mdc-option-multiple",Wt.multiple)("mat-mdc-option-active",Wt.active)("mdc-list-item--disabled",Wt.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:mt,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(He,Wt){1&He&&(e.F$t(Re),e.YNc(0,oe,1,2,"mat-pseudo-checkbox",0),e.Hsn(1),e.TgZ(2,"span",1,2),e.Hsn(4,1),e.qZA(),e.YNc(5,ce,1,1,"mat-pseudo-checkbox",3),e.YNc(6,_e,2,1,"span",4),e._UZ(7,"div",5)),2&He&&(e.Q6J("ngIf",Wt.multiple),e.xp6(5),e.Q6J("ngIf",!Wt.multiple&&Wt.selected&&!Wt.hideSingleSelectionIndicator),e.xp6(1),e.Q6J("ngIf",Wt.group&&Wt.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Wt._getHostElement())("matRippleDisabled",Wt.disabled||Wt.disableRipple))},dependencies:[ae,S.O5,ot],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return ze})();function oi(ze,be,Te){if(Te.length){let He=be.toArray(),Wt=Te.toArray(),Pn=0;for(let wt=0;wtTe+He?Math.max(0,ze-He+be):Te}let qt=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[Oe,S.ez,St,Se]})}return ze})();const _t={capture:!0},G=["focus","click","mouseenter","touchstart"],U="mat-ripple-loader-uninitialized",ve="mat-ripple-loader-class-name",Pe="mat-ripple-loader-centered",ut="mat-ripple-loader-disabled";let We=(()=>{class ze{constructor(){this._document=(0,e.f3M)(S.K0,{optional:!0}),this._animationMode=(0,e.f3M)(e.QbO,{optional:!0}),this._globalRippleOptions=(0,e.f3M)(J,{optional:!0}),this._platform=(0,e.f3M)(w.t4),this._ngZone=(0,e.f3M)(e.R0b),this._onInteraction=Te=>{if(!(Te.target instanceof HTMLElement))return;const Wt=Te.target.closest(`[${U}]`);Wt&&this.createRipple(Wt)},this._ngZone.runOutsideAngular(()=>{for(const Te of G)this._document?.addEventListener(Te,this._onInteraction,_t)})}ngOnDestroy(){for(const Te of G)this._document?.removeEventListener(Te,this._onInteraction,_t)}configureRipple(Te,He){Te.setAttribute(U,""),(He.className||!Te.hasAttribute(ve))&&Te.setAttribute(ve,He.className||""),He.centered&&Te.setAttribute(Pe,""),He.disabled&&Te.setAttribute(ut,"")}getRipple(Te){return Te.matRipple?Te.matRipple:this.createRipple(Te)}setDisabled(Te,He){const Wt=Te.matRipple;Wt?Wt.disabled=He:He?Te.setAttribute(ut,""):Te.removeAttribute(ut)}createRipple(Te){if(!this._document)return;Te.querySelector(".mat-ripple")?.remove();const He=this._document.createElement("span");He.classList.add("mat-ripple",Te.getAttribute(ve)),Te.append(He);const Wt=new ae(new e.SBq(He),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return Wt._isInitialized=!0,Wt.trigger=Te,Wt.centered=Te.hasAttribute(Pe),Wt.disabled=Te.hasAttribute(ut),this.attachRipple(Te,Wt),Wt}attachRipple(Te,He){Te.removeAttribute(U),Te.matRipple=He}static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})()},7700:(ft,Ie,C)=>{"use strict";C.d(Ie,{WI:()=>bt,uw:()=>ei,H8:()=>Ce,ZT:()=>Ve,xY:()=>Ct,Is:()=>ae,so:()=>Ze,uh:()=>ct});var e=C(3651),l=C(6814),D=C(5879),I=C(4300),S=C(2831),w=C(8484),n=C(6028),Z=C(8645),ee=C(4911),re=C(2096),ue=C(9388),se=C(7921);function te(Se,Ft){}class oe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let _e=(()=>{class Se extends w.en{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(),this._elementRef=lt,this._focusTrapFactory=Bt,this._config=fn,this._interactivityChecker=gn,this._ngZone=An,this._overlayRef=jn,this._focusMonitor=ai,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=di=>{this._portalOutlet.hasAttached();const oi=this._portalOutlet.attachDomPortal(di);return this._contentAttached(),oi},this._document=Ut,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(lt){this._portalOutlet.hasAttached();const Bt=this._portalOutlet.attachComponentPortal(lt);return this._contentAttached(),Bt}attachTemplatePortal(lt){this._portalOutlet.hasAttached();const Bt=this._portalOutlet.attachTemplatePortal(lt);return this._contentAttached(),Bt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(lt,Bt){this._interactivityChecker.isFocusable(lt)||(lt.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ut=()=>{lt.removeEventListener("blur",Ut),lt.removeEventListener("mousedown",Ut),lt.removeAttribute("tabindex")};lt.addEventListener("blur",Ut),lt.addEventListener("mousedown",Ut)})),lt.focus(Bt)}_focusByCssSelector(lt,Bt){let Ut=this._elementRef.nativeElement.querySelector(lt);Ut&&this._forceFocus(Ut,Bt)}_trapFocus(){const lt=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||lt.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Bt=>{Bt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const lt=this._config.restoreFocus;let Bt=null;if("string"==typeof lt?Bt=this._document.querySelector(lt):"boolean"==typeof lt?Bt=lt?this._elementFocusedBeforeDialogWasOpened:null:lt&&(Bt=lt),this._config.restoreFocus&&Bt&&"function"==typeof Bt.focus){const Ut=(0,S.ht)(),fn=this._elementRef.nativeElement;(!Ut||Ut===this._document.body||Ut===fn||fn.contains(Ut))&&(this._focusMonitor?(this._focusMonitor.focusVia(Bt,this._closeInteractionType),this._closeInteractionType=null):Bt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const lt=this._elementRef.nativeElement,Bt=(0,S.ht)();return lt===Bt||lt.contains(Bt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,S.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(oe),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["cdk-dialog-container"]],viewQuery:function(Bt,Ut){if(1&Bt&&D.Gf(w.Pl,7),2&Bt){let fn;D.iGM(fn=D.CRH())&&(Ut._portalOutlet=fn.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Bt,Ut){2&Bt&&D.uIk("id",Ut._config.id||null)("role",Ut._config.role)("aria-modal",Ut._config.ariaModal)("aria-labelledby",Ut._config.ariaLabel?null:Ut._ariaLabelledByQueue[0])("aria-label",Ut._config.ariaLabel)("aria-describedby",Ut._config.ariaDescribedBy||null)},features:[D.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Bt,Ut){1&Bt&&D.YNc(0,te,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return Se})();class Re{constructor(Ft,lt){this.overlayRef=Ft,this.config=lt,this.closed=new Z.x,this.disableClose=lt.disableClose,this.backdropClick=Ft.backdropClick(),this.keydownEvents=Ft.keydownEvents(),this.outsidePointerEvents=Ft.outsidePointerEvents(),this.id=lt.id,this.keydownEvents.subscribe(Bt=>{Bt.keyCode===n.hY&&!this.disableClose&&!(0,n.Vb)(Bt)&&(Bt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Ft.detachments().subscribe(()=>{!1!==lt.closeOnOverlayDetachments&&this.close()})}close(Ft,lt){if(this.containerInstance){const Bt=this.closed;this.containerInstance._closeInteractionType=lt?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),Bt.next(Ft),Bt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Ft="",lt=""){return this.overlayRef.updateSize({width:Ft,height:lt}),this}addPanelClass(Ft){return this.overlayRef.addPanelClass(Ft),this}removePanelClass(Ft){return this.overlayRef.removePanelClass(Ft),this}}const mt=new D.OlP("DialogScrollStrategy"),Ge=new D.OlP("DialogData"),Lt=new D.OlP("DefaultDialogConfig"),Tt={provide:mt,deps:[e.aV],useFactory:function je(Se){return()=>Se.scrollStrategies.block()}};let xt=0,St=(()=>{class Se{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(lt,Bt,Ut,fn,gn,An){this._overlay=lt,this._injector=Bt,this._defaultOptions=Ut,this._parentDialog=fn,this._overlayContainer=gn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z.x,this._afterOpenedAtThisLevel=new Z.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,ee.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,se.O)(void 0))),this._scrollStrategy=An}open(lt,Bt){(Bt={...this._defaultOptions||new oe,...Bt}).id=Bt.id||"cdk-dialog-"+xt++,Bt.id&&this.getDialogById(Bt.id);const fn=this._getOverlayConfig(Bt),gn=this._overlay.create(fn),An=new Re(gn,Bt),jn=this._attachContainer(gn,An,Bt);return An.containerInstance=jn,this._attachDialogContent(lt,An,jn,Bt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(An),An.closed.subscribe(()=>this._removeOpenDialog(An,!0)),this.afterOpened.next(An),An}closeAll(){Zt(this.openDialogs,lt=>lt.close())}getDialogById(lt){return this.openDialogs.find(Bt=>Bt.id===lt)}ngOnDestroy(){Zt(this._openDialogsAtThisLevel,lt=>{!1===lt.config.closeOnDestroy&&this._removeOpenDialog(lt,!1)}),Zt(this._openDialogsAtThisLevel,lt=>lt.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(lt){const Bt=new e.X_({positionStrategy:lt.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:lt.scrollStrategy||this._scrollStrategy(),panelClass:lt.panelClass,hasBackdrop:lt.hasBackdrop,direction:lt.direction,minWidth:lt.minWidth,minHeight:lt.minHeight,maxWidth:lt.maxWidth,maxHeight:lt.maxHeight,width:lt.width,height:lt.height,disposeOnNavigation:lt.closeOnNavigation});return lt.backdropClass&&(Bt.backdropClass=lt.backdropClass),Bt}_attachContainer(lt,Bt,Ut){const fn=Ut.injector||Ut.viewContainerRef?.injector,gn=[{provide:oe,useValue:Ut},{provide:Re,useValue:Bt},{provide:e.Iu,useValue:lt}];let An;Ut.container?"function"==typeof Ut.container?An=Ut.container:(An=Ut.container.type,gn.push(...Ut.container.providers(Ut))):An=_e;const jn=new w.C5(An,Ut.viewContainerRef,D.zs3.create({parent:fn||this._injector,providers:gn}),Ut.componentFactoryResolver);return lt.attach(jn).instance}_attachDialogContent(lt,Bt,Ut,fn){if(lt instanceof D.Rgc){const gn=this._createInjector(fn,Bt,Ut,void 0);let An={$implicit:fn.data,dialogRef:Bt};fn.templateContext&&(An={...An,..."function"==typeof fn.templateContext?fn.templateContext():fn.templateContext}),Ut.attachTemplatePortal(new w.UE(lt,null,An,gn))}else{const gn=this._createInjector(fn,Bt,Ut,this._injector),An=Ut.attachComponentPortal(new w.C5(lt,fn.viewContainerRef,gn,fn.componentFactoryResolver));Bt.componentRef=An,Bt.componentInstance=An.instance}}_createInjector(lt,Bt,Ut,fn){const gn=lt.injector||lt.viewContainerRef?.injector,An=[{provide:Ge,useValue:lt.data},{provide:Re,useValue:Bt}];return lt.providers&&("function"==typeof lt.providers?An.push(...lt.providers(Bt,lt,Ut)):An.push(...lt.providers)),lt.direction&&(!gn||!gn.get(ue.Is,null,{optional:!0}))&&An.push({provide:ue.Is,useValue:{value:lt.direction,change:(0,re.of)()}}),D.zs3.create({parent:gn||fn,providers:An})}_removeOpenDialog(lt,Bt){const Ut=this.openDialogs.indexOf(lt);Ut>-1&&(this.openDialogs.splice(Ut,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((fn,gn)=>{fn?gn.setAttribute("aria-hidden",fn):gn.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Bt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const lt=this._overlayContainer.getContainerElement();if(lt.parentElement){const Bt=lt.parentElement.children;for(let Ut=Bt.length-1;Ut>-1;Ut--){const fn=Bt[Ut];fn!==lt&&"SCRIPT"!==fn.nodeName&&"STYLE"!==fn.nodeName&&!fn.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(fn,fn.getAttribute("aria-hidden")),fn.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const lt=this._parentDialog;return lt?lt._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.LFG(e.aV),D.LFG(D.zs3),D.LFG(Lt,8),D.LFG(Se,12),D.LFG(e.Xj),D.LFG(mt))};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})();function Zt(Se,Ft){let lt=Se.length;for(;lt--;)Ft(Se[lt])}let yt=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275mod=D.oAB({type:Se});static#n=this.\u0275inj=D.cJS({providers:[St,Tt],imports:[e.U8,w.eL,I.rt,w.eL]})}return Se})();var un=C(2605),Jt=C(3019),tn=C(2181),wn=C(8180),Ln=C(3680);function ti(Se,Ft){}C(6825);class gi{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Rn="mdc-dialog--open",dt="mdc-dialog--opening",at="mdc-dialog--closing";let $e=(()=>{class Se extends _e{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(lt,Bt,Ut,fn,gn,An,jn,ai),this._animationStateChanged=new D.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(lt){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:lt})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(gi),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["ng-component"]],features:[D.qOj],decls:0,vars:0,template:function(Bt,Ut){},encapsulation:2})}return Se})();const me="--mat-dialog-transition-duration";function tt(Se){return null==Se?null:"number"==typeof Se?Se:Se.endsWith("ms")?(0,un.su)(Se.substring(0,Se.length-2)):Se.endsWith("s")?1e3*(0,un.su)(Se.substring(0,Se.length-1)):"0"===Se?0:null}let he=(()=>{class Se extends $e{constructor(lt,Bt,Ut,fn,gn,An,jn,ai,di){super(lt,Bt,Ut,fn,gn,An,jn,di),this._animationMode=ai,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?tt(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?tt(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(me,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dt,Rn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Rn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Rn),this._animationsEnabled?(this._hostElement.style.setProperty(me,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(at)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(dt,at)}_waitForAnimationToComplete(lt,Bt){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Bt,lt)}_requestAnimationFrame(lt){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(lt):lt()})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(gi),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(D.QbO,8),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Bt,Ut){2&Bt&&(D.Ikx("id",Ut._config.id),D.uIk("aria-modal",Ut._config.ariaModal)("role",Ut._config.role)("aria-labelledby",Ut._config.ariaLabel?null:Ut._ariaLabelledByQueue[0])("aria-label",Ut._config.ariaLabel)("aria-describedby",Ut._config.ariaDescribedBy||null),D.ekj("_mat-animation-noopable",!Ut._animationsEnabled))},features:[D.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Bt,Ut){1&Bt&&(D.TgZ(0,"div",0)(1,"div",1),D.YNc(2,ti,0,0,"ng-template",2),D.qZA()())},dependencies:[w.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return Se})();class Ze{constructor(Ft,lt,Bt){this._ref=Ft,this._containerInstance=Bt,this._afterOpened=new Z.x,this._beforeClosed=new Z.x,this._state=0,this.disableClose=lt.disableClose,this.id=Ft.id,Bt._animationStateChanged.pipe((0,tn.h)(Ut=>"opened"===Ut.state),(0,wn.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Bt._animationStateChanged.pipe((0,tn.h)(Ut=>"closed"===Ut.state),(0,wn.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ft.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Jt.T)(this.backdropClick(),this.keydownEvents().pipe((0,tn.h)(Ut=>Ut.keyCode===n.hY&&!this.disableClose&&!(0,n.Vb)(Ut)))).subscribe(Ut=>{this.disableClose||(Ut.preventDefault(),rt(this,"keydown"===Ut.type?"keyboard":"mouse"))})}close(Ft){this._result=Ft,this._containerInstance._animationStateChanged.pipe((0,tn.h)(lt=>"closing"===lt.state),(0,wn.q)(1)).subscribe(lt=>{this._beforeClosed.next(Ft),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),lt.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Ft){let lt=this._ref.config.positionStrategy;return Ft&&(Ft.left||Ft.right)?Ft.left?lt.left(Ft.left):lt.right(Ft.right):lt.centerHorizontally(),Ft&&(Ft.top||Ft.bottom)?Ft.top?lt.top(Ft.top):lt.bottom(Ft.bottom):lt.centerVertically(),this._ref.updatePosition(),this}updateSize(Ft="",lt=""){return this._ref.updateSize(Ft,lt),this}addPanelClass(Ft){return this._ref.addPanelClass(Ft),this}removePanelClass(Ft){return this._ref.removePanelClass(Ft),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function rt(Se,Ft,lt){return Se._closeInteractionType=Ft,Se.close(lt)}const bt=new D.OlP("MatMdcDialogData"),Nt=new D.OlP("mat-mdc-dialog-default-options"),Qt=new D.OlP("mat-mdc-dialog-scroll-strategy"),Dn={provide:Qt,deps:[e.aV],useFactory:function nn(Se){return()=>Se.scrollStrategies.block()}};let rn=0,vn=(()=>{class Se{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const lt=this._parentDialog;return lt?lt._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(lt,Bt,Ut,fn,gn,An,jn,ai,di,oi){this._overlay=lt,this._defaultOptions=Ut,this._parentDialog=fn,this._dialogRefConstructor=jn,this._dialogContainerType=ai,this._dialogDataToken=di,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z.x,this._afterOpenedAtThisLevel=new Z.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=gi,this.afterAllClosed=(0,ee.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,se.O)(void 0))),this._scrollStrategy=An,this._dialog=Bt.get(St)}open(lt,Bt){let Ut;(Bt={...this._defaultOptions||new gi,...Bt}).id=Bt.id||`${this._idPrefix}${rn++}`,Bt.scrollStrategy=Bt.scrollStrategy||this._scrollStrategy();const fn=this._dialog.open(lt,{...Bt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Bt},{provide:oe,useValue:Bt}]},templateContext:()=>({dialogRef:Ut}),providers:(gn,An,jn)=>(Ut=new this._dialogRefConstructor(gn,Bt,jn),Ut.updatePosition(Bt?.position),[{provide:this._dialogContainerType,useValue:jn},{provide:this._dialogDataToken,useValue:An.data},{provide:this._dialogRefConstructor,useValue:Ut}])});return Ut.componentRef=fn.componentRef,Ut.componentInstance=fn.componentInstance,this.openDialogs.push(Ut),this.afterOpened.next(Ut),Ut.afterClosed().subscribe(()=>{const gn=this.openDialogs.indexOf(Ut);gn>-1&&(this.openDialogs.splice(gn,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ut}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(lt){return this.openDialogs.find(Bt=>Bt.id===lt)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(lt){let Bt=lt.length;for(;Bt--;)lt[Bt].close()}static#e=this.\u0275fac=function(Bt){D.$Z()};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})(),ei=(()=>{class Se extends vn{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(lt,Bt,fn,An,jn,gn,Ze,he,bt,ai),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.LFG(e.aV),D.LFG(D.zs3),D.LFG(l.Ye,8),D.LFG(Nt,8),D.LFG(Qt),D.LFG(Se,12),D.LFG(e.Xj),D.LFG(D.QbO,8))};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})(),Wn=0,Ve=(()=>{class Se{constructor(lt,Bt,Ut){this.dialogRef=lt,this._elementRef=Bt,this._dialog=Ut,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=J(this._elementRef,this._dialog.openDialogs))}ngOnChanges(lt){const Bt=lt._matDialogClose||lt._matDialogCloseResult;Bt&&(this.dialogResult=Bt.currentValue)}_onButtonClick(lt){rt(this.dialogRef,0===lt.screenX&&0===lt.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(Ze,8),D.Y36(D.SBq),D.Y36(ei))};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Bt,Ut){1&Bt&&D.NdJ("click",function(gn){return Ut._onButtonClick(gn)}),2&Bt&&D.uIk("aria-label",Ut.ariaLabel||null)("type",Ut.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[D.TTD]})}return Se})(),ct=(()=>{class Se{constructor(lt,Bt,Ut){this._dialogRef=lt,this._elementRef=Bt,this._dialog=Ut,this.id="mat-mdc-dialog-title-"+Wn++}ngOnInit(){this._dialogRef||(this._dialogRef=J(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const lt=this._dialogRef?._containerInstance?._ariaLabelledByQueue;lt&&Promise.resolve().then(()=>{const Bt=lt.indexOf(this.id);Bt>-1&<.splice(Bt,1)})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(Ze,8),D.Y36(D.SBq),D.Y36(ei))};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(Bt,Ut){2&Bt&&D.Ikx("id",Ut.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return Se})(),Ct=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return Se})(),Ce=(()=>{class Se{constructor(){this.align="start"}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(Bt,Ut){2&Bt&&D.ekj("mat-mdc-dialog-actions-align-center","center"===Ut.align)("mat-mdc-dialog-actions-align-end","end"===Ut.align)},inputs:{align:"align"}})}return Se})();function J(Se,Ft){let lt=Se.nativeElement.parentElement;for(;lt&&!lt.classList.contains("mat-mdc-dialog-container");)lt=lt.parentElement;return lt?Ft.find(Bt=>Bt.id===lt.id):null}let ae=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275mod=D.oAB({type:Se});static#n=this.\u0275inj=D.cJS({providers:[ei,Dn],imports:[yt,e.U8,w.eL,Ln.BQ,Ln.BQ]})}return Se})()},9157:(ft,Ie,C)=>{"use strict";C.d(Ie,{G_:()=>fn,KE:()=>Jn,Eo:()=>Ft,lN:()=>qt,hX:()=>Nt});var e=C(5879),l=C(9388),D=C(2831),I=C(7394),S=C(8645),w=C(3019),n=C(9773),Z=C(5592),ee=C(2181),re=C(4552);class ue extends S.x{constructor(G=1/0,U=1/0,ve=re.l){super(),this._bufferSize=G,this._windowTime=U,this._timestampProvider=ve,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=U===1/0,this._bufferSize=Math.max(1,G),this._windowTime=Math.max(1,U)}next(G){const{isStopped:U,_buffer:ve,_infiniteTimeWindow:Pe,_timestampProvider:ut,_windowTime:We}=this;U||(ve.push(G),!Pe&&ve.push(ut.now()+We)),this._trimBuffer(),super.next(G)}_subscribe(G){this._throwIfClosed(),this._trimBuffer();const U=this._innerSubscribe(G),{_infiniteTimeWindow:ve,_buffer:Pe}=this,ut=Pe.slice();for(let We=0;Wethis._resizeSubject.next(U)))}observe(G){return this._elementObservables.has(G)||this._elementObservables.set(G,new Z.y(U=>{const ve=this._resizeSubject.subscribe(U);return this._resizeObserver?.observe(G,{box:this._box}),()=>{this._resizeObserver?.unobserve(G),ve.unsubscribe(),this._elementObservables.delete(G)}}).pipe((0,ee.h)(U=>U.some(ve=>ve.target===G)),function te(_t,G,U){let ve,Pe=!1;return _t&&"object"==typeof _t?({bufferSize:ve=1/0,windowTime:G=1/0,refCount:Pe=!1,scheduler:U}=_t):ve=_t??1/0,(0,se.B)({connector:()=>new ue(ve,G,U),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Pe})}({bufferSize:1,refCount:!0}),(0,n.R)(this._destroyed))),this._elementObservables.get(G)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let _e=(()=>{class _t{constructor(){this._observers=new Map,this._ngZone=(0,e.f3M)(e.R0b)}ngOnDestroy(){for(const[,U]of this._observers)U.destroy();this._observers.clear()}observe(U,ve){const Pe=ve?.box||"content-box";return this._observers.has(Pe)||this._observers.set(Pe,new ce(Pe)),this._observers.get(Pe).observe(U)}static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275prov=e.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();var Re=C(2605),mt=C(6825),Ge=C(6814),Lt=C(7131),je=C(3680);const Tt=["notch"],xt=["matFormFieldNotchedOutline",""],St=["*"],Zt=["textField"],yt=["iconPrefixContainer"],un=["textPrefixContainer"];function Jt(_t,G){1&_t&&e._UZ(0,"span",19)}function tn(_t,G){if(1&_t&&(e.TgZ(0,"label",17),e.Hsn(1,1),e.YNc(2,Jt,1,0,"span",18),e.qZA()),2&_t){const U=e.oxw(2);e.Q6J("floating",U._shouldLabelFloat())("monitorResize",U._hasOutline())("id",U._labelId),e.uIk("for",U._control.id),e.xp6(2),e.Q6J("ngIf",!U.hideRequiredMarker&&U._control.required)}}function wn(_t,G){if(1&_t&&e.YNc(0,tn,3,5,"label",16),2&_t){const U=e.oxw();e.Q6J("ngIf",U._hasFloatingLabel())}}function Ln(_t,G){1&_t&&e._UZ(0,"div",20)}function Yn(_t,G){}function ti(_t,G){if(1&_t&&e.YNc(0,Yn,0,0,"ng-template",22),2&_t){e.oxw(2);const U=e.MAs(1);e.Q6J("ngTemplateOutlet",U)}}function gi(_t,G){if(1&_t&&(e.TgZ(0,"div",21),e.YNc(1,ti,1,1,"ng-template",9),e.qZA()),2&_t){const U=e.oxw();e.Q6J("matFormFieldNotchedOutlineOpen",U._shouldLabelFloat()),e.xp6(1),e.Q6J("ngIf",!U._forceDisplayInfixLabel())}}function Rn(_t,G){1&_t&&(e.TgZ(0,"div",23,24),e.Hsn(2,2),e.qZA())}function dt(_t,G){1&_t&&(e.TgZ(0,"div",25,26),e.Hsn(2,3),e.qZA())}function at(_t,G){}function Be(_t,G){if(1&_t&&e.YNc(0,at,0,0,"ng-template",22),2&_t){e.oxw();const U=e.MAs(1);e.Q6J("ngTemplateOutlet",U)}}function Ee(_t,G){1&_t&&(e.TgZ(0,"div",27),e.Hsn(1,4),e.qZA())}function $e(_t,G){1&_t&&(e.TgZ(0,"div",28),e.Hsn(1,5),e.qZA())}function me(_t,G){1&_t&&e._UZ(0,"div",29)}function tt(_t,G){if(1&_t&&(e.TgZ(0,"div",30),e.Hsn(1,6),e.qZA()),2&_t){const U=e.oxw();e.Q6J("@transitionMessages",U._subscriptAnimationState)}}function he(_t,G){if(1&_t&&(e.TgZ(0,"mat-hint",34),e._uU(1),e.qZA()),2&_t){const U=e.oxw(2);e.Q6J("id",U._hintLabelId),e.xp6(1),e.Oqu(U.hintLabel)}}function Ze(_t,G){if(1&_t&&(e.TgZ(0,"div",31),e.YNc(1,he,2,2,"mat-hint",32),e.Hsn(2,7),e._UZ(3,"div",33),e.Hsn(4,8),e.qZA()),2&_t){const U=e.oxw();e.Q6J("@transitionMessages",U._subscriptAnimationState),e.xp6(1),e.Q6J("ngIf",U.hintLabel)}}const rt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Nt=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["mat-label"]]})}return _t})();const nn=new e.OlP("MatError");let Ot=0,rn=(()=>{class _t{constructor(){this.align="start",this.id="mat-mdc-hint-"+Ot++}static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(ve,Pe){2&ve&&(e.Ikx("id",Pe.id),e.uIk("align",null),e.ekj("mat-mdc-form-field-hint-end","end"===Pe.align))},inputs:{align:"align",id:"id"}})}return _t})();const vn=new e.OlP("MatPrefix"),Wn=new e.OlP("MatSuffix"),ct=new e.OlP("FloatingLabelParent");let Ct=(()=>{class _t{get floating(){return this._floating}set floating(U){this._floating=U,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(U){this._monitorResize=U,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(U){this._elementRef=U,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,e.f3M)(_e),this._ngZone=(0,e.f3M)(e.R0b),this._parent=(0,e.f3M)(ct),this._resizeSubscription=new I.w0}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Ce(_t){if(null!==_t.offsetParent)return _t.scrollWidth;const U=_t.cloneNode(!0);U.style.setProperty("position","absolute"),U.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(U);const ve=U.scrollWidth;return U.remove(),ve}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(ve,Pe){2&ve&&e.ekj("mdc-floating-label--float-above",Pe.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return _t})();const J="mdc-line-ripple--active",ae="mdc-line-ripple--deactivating";let Oe=(()=>{class _t{constructor(U,ve){this._elementRef=U,this._handleTransitionEnd=Pe=>{const ut=this._elementRef.nativeElement.classList,We=ut.contains(ae);"opacity"===Pe.propertyName&&We&&ut.remove(J,ae)},ve.runOutsideAngular(()=>{U.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const U=this._elementRef.nativeElement.classList;U.remove(ae),U.add(J)}deactivate(){this._elementRef.nativeElement.classList.add(ae)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return _t})(),ot=(()=>{class _t{constructor(U,ve){this._elementRef=U,this._ngZone=ve,this.open=!1}ngAfterViewInit(){const U=this._elementRef.nativeElement.querySelector(".mdc-floating-label");U?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(U.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>U.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(U){this._notch.nativeElement.style.width=this.open&&U?`calc(${U}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275cmp=e.Xpm({type:_t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(ve,Pe){if(1&ve&&e.Gf(Tt,5),2&ve){let ut;e.iGM(ut=e.CRH())&&(Pe._notch=ut.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(ve,Pe){2&ve&&e.ekj("mdc-notched-outline--notched",Pe.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:xt,ngContentSelectors:St,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(ve,Pe){1&ve&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1,2),e.Hsn(3),e.qZA(),e._UZ(4,"div",3))},encapsulation:2,changeDetection:0})}return _t})();const Se={transitionMessages:(0,mt.X$)("transitionMessages",[(0,mt.SB)("enter",(0,mt.oB)({opacity:1,transform:"translateY(0%)"})),(0,mt.eR)("void => enter",[(0,mt.oB)({opacity:0,transform:"translateY(-5px)"}),(0,mt.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ft=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t})}return _t})();const fn=new e.OlP("MatFormField"),gn=new e.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let An=0,Jn=(()=>{class _t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(U){this._hideRequiredMarker=(0,Re.Ig)(U)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(U){U!==this._floatLabel&&(this._floatLabel=U,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(U){const ve=this._appearance;this._appearance=U||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==ve&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(U){this._subscriptSizing=U||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(U){this._hintLabel=U,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(U){this._explicitFormFieldControl=U}constructor(U,ve,Pe,ut,We,ze,be,Te){this._elementRef=U,this._changeDetectorRef=ve,this._ngZone=Pe,this._dir=ut,this._platform=We,this._defaults=ze,this._animationMode=be,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+An++,this._hintLabelId="mat-mdc-hint-"+An++,this._subscriptAnimationState="",this._destroyed=new S.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,ze&&(ze.appearance&&(this.appearance=ze.appearance),this._hideRequiredMarker=!!ze?.hideRequiredMarker,ze.color&&(this.color=ze.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const U=this._control;U.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${U.controlType}`),U.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),U.ngControl&&U.ngControl.valueChanges&&U.ngControl.valueChanges.pipe((0,n.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(U=>!U._isText),this._hasTextPrefix=!!this._prefixChildren.find(U=>U._isText),this._hasIconSuffix=!!this._suffixChildren.find(U=>!U._isText),this._hasTextSuffix=!!this._suffixChildren.find(U=>U._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,w.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,n.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,n.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(U){const ve=this._control?this._control.ngControl:null;return ve&&ve[U]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let U=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&U.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ve=this._hintChildren?this._hintChildren.find(ut=>"start"===ut.align):null,Pe=this._hintChildren?this._hintChildren.find(ut=>"end"===ut.align):null;ve?U.push(ve.id):this._hintLabel&&U.push(this._hintLabelId),Pe&&U.push(Pe.id)}else this._errorChildren&&U.push(...this._errorChildren.map(ve=>ve.id));this._control.setDescribedByIds(U)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const U=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(U.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const ve=this._iconPrefixContainer?.nativeElement,Pe=this._textPrefixContainer?.nativeElement,ut=ve?.getBoundingClientRect().width??0,We=Pe?.getBoundingClientRect().width??0;U.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${ut+We}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const U=this._elementRef.nativeElement;if(U.getRootNode){const ve=U.getRootNode();return ve&&ve!==U}return document.documentElement.contains(U)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(l.Is),e.Y36(D.t4),e.Y36(gn,8),e.Y36(e.QbO,8),e.Y36(Ge.K0))};static#t=this.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-form-field"]],contentQueries:function(ve,Pe,ut){if(1&ve&&(e.Suo(ut,Nt,5),e.Suo(ut,Nt,7),e.Suo(ut,Ft,5),e.Suo(ut,vn,5),e.Suo(ut,Wn,5),e.Suo(ut,nn,5),e.Suo(ut,rn,5)),2&ve){let We;e.iGM(We=e.CRH())&&(Pe._labelChildNonStatic=We.first),e.iGM(We=e.CRH())&&(Pe._labelChildStatic=We.first),e.iGM(We=e.CRH())&&(Pe._formFieldControl=We.first),e.iGM(We=e.CRH())&&(Pe._prefixChildren=We),e.iGM(We=e.CRH())&&(Pe._suffixChildren=We),e.iGM(We=e.CRH())&&(Pe._errorChildren=We),e.iGM(We=e.CRH())&&(Pe._hintChildren=We)}},viewQuery:function(ve,Pe){if(1&ve&&(e.Gf(Zt,5),e.Gf(yt,5),e.Gf(un,5),e.Gf(Ct,5),e.Gf(ot,5),e.Gf(Oe,5)),2&ve){let ut;e.iGM(ut=e.CRH())&&(Pe._textField=ut.first),e.iGM(ut=e.CRH())&&(Pe._iconPrefixContainer=ut.first),e.iGM(ut=e.CRH())&&(Pe._textPrefixContainer=ut.first),e.iGM(ut=e.CRH())&&(Pe._floatingLabel=ut.first),e.iGM(ut=e.CRH())&&(Pe._notchedOutline=ut.first),e.iGM(ut=e.CRH())&&(Pe._lineRipple=ut.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(ve,Pe){2&ve&&e.ekj("mat-mdc-form-field-label-always-float",Pe._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Pe._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Pe._hasIconSuffix)("mat-form-field-invalid",Pe._control.errorState)("mat-form-field-disabled",Pe._control.disabled)("mat-form-field-autofilled",Pe._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Pe._animationMode)("mat-form-field-appearance-fill","fill"==Pe.appearance)("mat-form-field-appearance-outline","outline"==Pe.appearance)("mat-form-field-hide-placeholder",Pe._hasFloatingLabel()&&!Pe._shouldLabelFloat())("mat-focused",Pe._control.focused)("mat-primary","accent"!==Pe.color&&"warn"!==Pe.color)("mat-accent","accent"===Pe.color)("mat-warn","warn"===Pe.color)("ng-untouched",Pe._shouldForward("untouched"))("ng-touched",Pe._shouldForward("touched"))("ng-pristine",Pe._shouldForward("pristine"))("ng-dirty",Pe._shouldForward("dirty"))("ng-valid",Pe._shouldForward("valid"))("ng-invalid",Pe._shouldForward("invalid"))("ng-pending",Pe._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e._Bn([{provide:fn,useExisting:_t},{provide:ct,useExisting:_t}])],ngContentSelectors:bt,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(ve,Pe){1&ve&&(e.F$t(rt),e.YNc(0,wn,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.NdJ("click",function(We){return Pe._control.onContainerClick(We)}),e.YNc(4,Ln,1,0,"div",3),e.TgZ(5,"div",4),e.YNc(6,gi,2,2,"div",5),e.YNc(7,Rn,3,0,"div",6),e.YNc(8,dt,3,0,"div",7),e.TgZ(9,"div",8),e.YNc(10,Be,1,1,"ng-template",9),e.Hsn(11),e.qZA(),e.YNc(12,Ee,2,0,"div",10),e.YNc(13,$e,2,0,"div",11),e.qZA(),e.YNc(14,me,1,0,"div",12),e.qZA(),e.TgZ(15,"div",13),e.YNc(16,tt,2,1,"div",14),e.YNc(17,Ze,5,2,"div",15),e.qZA()),2&ve&&(e.xp6(2),e.ekj("mdc-text-field--filled",!Pe._hasOutline())("mdc-text-field--outlined",Pe._hasOutline())("mdc-text-field--no-label",!Pe._hasFloatingLabel())("mdc-text-field--disabled",Pe._control.disabled)("mdc-text-field--invalid",Pe._control.errorState),e.xp6(2),e.Q6J("ngIf",!Pe._hasOutline()&&!Pe._control.disabled),e.xp6(2),e.Q6J("ngIf",Pe._hasOutline()),e.xp6(1),e.Q6J("ngIf",Pe._hasIconPrefix),e.xp6(1),e.Q6J("ngIf",Pe._hasTextPrefix),e.xp6(2),e.Q6J("ngIf",!Pe._hasOutline()||Pe._forceDisplayInfixLabel()),e.xp6(2),e.Q6J("ngIf",Pe._hasTextSuffix),e.xp6(1),e.Q6J("ngIf",Pe._hasIconSuffix),e.xp6(1),e.Q6J("ngIf",!Pe._hasOutline()),e.xp6(1),e.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Pe.subscriptSizing),e.Q6J("ngSwitch",Pe._getDisplayedMessages()),e.xp6(1),e.Q6J("ngSwitchCase","error"),e.xp6(1),e.Q6J("ngSwitchCase","hint"))},dependencies:[Ge.O5,Ge.tP,Ge.RF,Ge.n9,rn,Ct,ot,Oe],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Se.transitionMessages]},changeDetection:0})}return _t})(),qt=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275mod=e.oAB({type:_t});static#n=this.\u0275inj=e.cJS({imports:[je.BQ,Ge.ez,Lt.Q8,je.BQ]})}return _t})()},617:(ft,Ie,C)=>{"use strict";C.d(Ie,{Hw:()=>Ee,Ps:()=>$e});var e=C(5879),l=C(3680),D=C(2605),I=C(6814),S=C(2096),w=C(8504),n=C(9315),Z=C(7394),ee=C(9397),re=C(7398),ue=C(6306),se=C(4716),te=C(3020),oe=C(8180),ce=C(9862),_e=C(6593);const Re=["*"];let mt;function Lt(me){return function Ge(){if(void 0===mt&&(mt=null,typeof window<"u")){const me=window;void 0!==me.trustedTypes&&(mt=me.trustedTypes.createPolicy("angular#components",{createHTML:tt=>tt}))}return mt}()?.createHTML(me)||me}function je(me){return Error(`Unable to find icon with the name "${me}"`)}function xt(me){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${me}".`)}function St(me){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${me}".`)}class Zt{constructor(tt,he,Ze){this.url=tt,this.svgText=he,this.options=Ze}}let yt=(()=>{class me{constructor(he,Ze,rt,bt){this._httpClient=he,this._sanitizer=Ze,this._errorHandler=bt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=rt}addSvgIcon(he,Ze,rt){return this.addSvgIconInNamespace("",he,Ze,rt)}addSvgIconLiteral(he,Ze,rt){return this.addSvgIconLiteralInNamespace("",he,Ze,rt)}addSvgIconInNamespace(he,Ze,rt,bt){return this._addSvgIconConfig(he,Ze,new Zt(rt,null,bt))}addSvgIconResolver(he){return this._resolvers.push(he),this}addSvgIconLiteralInNamespace(he,Ze,rt,bt){const Nt=this._sanitizer.sanitize(e.q3G.HTML,rt);if(!Nt)throw St(rt);const Qt=Lt(Nt);return this._addSvgIconConfig(he,Ze,new Zt("",Qt,bt))}addSvgIconSet(he,Ze){return this.addSvgIconSetInNamespace("",he,Ze)}addSvgIconSetLiteral(he,Ze){return this.addSvgIconSetLiteralInNamespace("",he,Ze)}addSvgIconSetInNamespace(he,Ze,rt){return this._addSvgIconSetConfig(he,new Zt(Ze,null,rt))}addSvgIconSetLiteralInNamespace(he,Ze,rt){const bt=this._sanitizer.sanitize(e.q3G.HTML,Ze);if(!bt)throw St(Ze);const Nt=Lt(bt);return this._addSvgIconSetConfig(he,new Zt("",Nt,rt))}registerFontClassAlias(he,Ze=he){return this._fontCssClassesByAlias.set(he,Ze),this}classNameForFontAlias(he){return this._fontCssClassesByAlias.get(he)||he}setDefaultFontSetClass(...he){return this._defaultFontSetClass=he,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(he){const Ze=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,he);if(!Ze)throw xt(he);const rt=this._cachedIconsByUrl.get(Ze);return rt?(0,S.of)(tn(rt)):this._loadSvgIconFromConfig(new Zt(he,null)).pipe((0,ee.b)(bt=>this._cachedIconsByUrl.set(Ze,bt)),(0,re.U)(bt=>tn(bt)))}getNamedSvgIcon(he,Ze=""){const rt=wn(Ze,he);let bt=this._svgIconConfigs.get(rt);if(bt)return this._getSvgFromConfig(bt);if(bt=this._getIconConfigFromResolvers(Ze,he),bt)return this._svgIconConfigs.set(rt,bt),this._getSvgFromConfig(bt);const Nt=this._iconSetConfigs.get(Ze);return Nt?this._getSvgFromIconSetConfigs(he,Nt):(0,w._)(je(rt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(he){return he.svgText?(0,S.of)(tn(this._svgElementFromConfig(he))):this._loadSvgIconFromConfig(he).pipe((0,re.U)(Ze=>tn(Ze)))}_getSvgFromIconSetConfigs(he,Ze){const rt=this._extractIconWithNameFromAnySet(he,Ze);if(rt)return(0,S.of)(rt);const bt=Ze.filter(Nt=>!Nt.svgText).map(Nt=>this._loadSvgIconSetFromConfig(Nt).pipe((0,ue.K)(Qt=>{const Dn=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Nt.url)} failed: ${Qt.message}`;return this._errorHandler.handleError(new Error(Dn)),(0,S.of)(null)})));return(0,n.D)(bt).pipe((0,re.U)(()=>{const Nt=this._extractIconWithNameFromAnySet(he,Ze);if(!Nt)throw je(he);return Nt}))}_extractIconWithNameFromAnySet(he,Ze){for(let rt=Ze.length-1;rt>=0;rt--){const bt=Ze[rt];if(bt.svgText&&bt.svgText.toString().indexOf(he)>-1){const Nt=this._svgElementFromConfig(bt),Qt=this._extractSvgIconFromSet(Nt,he,bt.options);if(Qt)return Qt}}return null}_loadSvgIconFromConfig(he){return this._fetchIcon(he).pipe((0,ee.b)(Ze=>he.svgText=Ze),(0,re.U)(()=>this._svgElementFromConfig(he)))}_loadSvgIconSetFromConfig(he){return he.svgText?(0,S.of)(null):this._fetchIcon(he).pipe((0,ee.b)(Ze=>he.svgText=Ze))}_extractSvgIconFromSet(he,Ze,rt){const bt=he.querySelector(`[id="${Ze}"]`);if(!bt)return null;const Nt=bt.cloneNode(!0);if(Nt.removeAttribute("id"),"svg"===Nt.nodeName.toLowerCase())return this._setSvgAttributes(Nt,rt);if("symbol"===Nt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Nt),rt);const Qt=this._svgElementFromString(Lt(""));return Qt.appendChild(Nt),this._setSvgAttributes(Qt,rt)}_svgElementFromString(he){const Ze=this._document.createElement("DIV");Ze.innerHTML=he;const rt=Ze.querySelector("svg");if(!rt)throw Error(" tag not found");return rt}_toSvgElement(he){const Ze=this._svgElementFromString(Lt("")),rt=he.attributes;for(let bt=0;btLt(Dn)),(0,se.x)(()=>this._inProgressUrlFetches.delete(Nt)),(0,te.B)());return this._inProgressUrlFetches.set(Nt,nn),nn}_addSvgIconConfig(he,Ze,rt){return this._svgIconConfigs.set(wn(he,Ze),rt),this}_addSvgIconSetConfig(he,Ze){const rt=this._iconSetConfigs.get(he);return rt?rt.push(Ze):this._iconSetConfigs.set(he,[Ze]),this}_svgElementFromConfig(he){if(!he.svgElement){const Ze=this._svgElementFromString(he.svgText);this._setSvgAttributes(Ze,he.options),he.svgElement=Ze}return he.svgElement}_getIconConfigFromResolvers(he,Ze){for(let rt=0;rttt?tt.pathname+tt.search:""}}}),dt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],at=dt.map(me=>`[${me}]`).join(", "),Be=/^url\(['"]?#(.*?)['"]?\)$/;let Ee=(()=>{class me extends Yn{get inline(){return this._inline}set inline(he){this._inline=(0,D.Ig)(he)}get svgIcon(){return this._svgIcon}set svgIcon(he){he!==this._svgIcon&&(he?this._updateSvgIcon(he):this._svgIcon&&this._clearSvgElement(),this._svgIcon=he)}get fontSet(){return this._fontSet}set fontSet(he){const Ze=this._cleanupFontValue(he);Ze!==this._fontSet&&(this._fontSet=Ze,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(he){const Ze=this._cleanupFontValue(he);Ze!==this._fontIcon&&(this._fontIcon=Ze,this._updateFontIconClasses())}constructor(he,Ze,rt,bt,Nt,Qt){super(he),this._iconRegistry=Ze,this._location=bt,this._errorHandler=Nt,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Z.w0.EMPTY,Qt&&(Qt.color&&(this.color=this.defaultColor=Qt.color),Qt.fontSet&&(this.fontSet=Qt.fontSet)),rt||he.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(he){if(!he)return["",""];const Ze=he.split(":");switch(Ze.length){case 1:return["",Ze[0]];case 2:return Ze;default:throw Error(`Invalid icon name: "${he}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const he=this._elementsWithExternalReferences;if(he&&he.size){const Ze=this._location.getPathname();Ze!==this._previousPath&&(this._previousPath=Ze,this._prependPathToReferences(Ze))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(he){this._clearSvgElement();const Ze=this._location.getPathname();this._previousPath=Ze,this._cacheChildrenWithExternalReferences(he),this._prependPathToReferences(Ze),this._elementRef.nativeElement.appendChild(he)}_clearSvgElement(){const he=this._elementRef.nativeElement;let Ze=he.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ze--;){const rt=he.childNodes[Ze];(1!==rt.nodeType||"svg"===rt.nodeName.toLowerCase())&&rt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const he=this._elementRef.nativeElement,Ze=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(rt=>rt.length>0);this._previousFontSetClass.forEach(rt=>he.classList.remove(rt)),Ze.forEach(rt=>he.classList.add(rt)),this._previousFontSetClass=Ze,this.fontIcon!==this._previousFontIconClass&&!Ze.includes("mat-ligature-font")&&(this._previousFontIconClass&&he.classList.remove(this._previousFontIconClass),this.fontIcon&&he.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(he){return"string"==typeof he?he.trim().split(" ")[0]:he}_prependPathToReferences(he){const Ze=this._elementsWithExternalReferences;Ze&&Ze.forEach((rt,bt)=>{rt.forEach(Nt=>{bt.setAttribute(Nt.name,`url('${he}#${Nt.value}')`)})})}_cacheChildrenWithExternalReferences(he){const Ze=he.querySelectorAll(at),rt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let bt=0;bt{const Qt=Ze[bt],nn=Qt.getAttribute(Nt),Dn=nn?nn.match(Be):null;if(Dn){let Ot=rt.get(Qt);Ot||(Ot=[],rt.set(Qt,Ot)),Ot.push({name:Nt,value:Dn[1]})}})}_updateSvgIcon(he){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),he){const[Ze,rt]=this._splitIconName(he);Ze&&(this._svgNamespace=Ze),rt&&(this._svgName=rt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(rt,Ze).pipe((0,oe.q)(1)).subscribe(bt=>this._setSvgElement(bt),bt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ze}:${rt}! ${bt.message}`))})}}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(e.Y36(e.SBq),e.Y36(yt),e.$8M("aria-hidden"),e.Y36(gi),e.Y36(e.qLn),e.Y36(ti,8))};static#t=this.\u0275cmp=e.Xpm({type:me,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Ze,rt){2&Ze&&(e.uIk("data-mat-icon-type",rt._usingFontIcon()?"font":"svg")("data-mat-icon-name",rt._svgName||rt.fontIcon)("data-mat-icon-namespace",rt._svgNamespace||rt.fontSet)("fontIcon",rt._usingFontIcon()?rt.fontIcon:null),e.ekj("mat-icon-inline",rt.inline)("mat-icon-no-color","primary"!==rt.color&&"accent"!==rt.color&&"warn"!==rt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:Re,decls:1,vars:0,template:function(Ze,rt){1&Ze&&(e.F$t(),e.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return me})(),$e=(()=>{class me{static#e=this.\u0275fac=function(Ze){return new(Ze||me)};static#t=this.\u0275mod=e.oAB({type:me});static#n=this.\u0275inj=e.cJS({imports:[l.BQ,l.BQ]})}return me})()},3365:(ft,Ie,C)=>{"use strict";C.d(Ie,{NW:()=>Ve,TU:()=>ct});var e=C(6814),l=C(5879),D=C(8645),I=C(2296),S=C(8525),w=C(9773),n=C(8180),Z=C(2605),ee=C(6028),re=C(2831),ue=C(4300),se=C(9388),te=C(3651),oe=C(6672),ce=C(8484),Re=(C(6825),C(3680));const mt=["tooltip"],je=new l.OlP("mat-tooltip-scroll-strategy"),xt={provide:je,deps:[te.aV],useFactory:function Tt(Ct){return()=>Ct.scrollStrategies.reposition({scrollThrottle:20})}},Zt=new l.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function St(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),un="tooltip-panel",Jt=(0,re.i$)({passive:!0});let gi=(()=>{class Ct{get position(){return this._position}set position(J){J!==this._position&&(this._position=J,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(J){this._positionAtOrigin=(0,Z.Ig)(J),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(J){this._disabled=(0,Z.Ig)(J),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(J){this._showDelay=(0,Z.su)(J)}get hideDelay(){return this._hideDelay}set hideDelay(J){this._hideDelay=(0,Z.su)(J),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(J){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=J?String(J).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(J){this._tooltipClass=J,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An){this._overlay=J,this._elementRef=ae,this._scrollDispatcher=Oe,this._viewContainerRef=ot,this._ngZone=Se,this._platform=Ft,this._ariaDescriber=lt,this._focusMonitor=Bt,this._dir=fn,this._defaultOptions=gn,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new D.x,this._scrollStrategy=Ut,this._document=An,gn&&(this._showDelay=gn.showDelay,this._hideDelay=gn.hideDelay,gn.position&&(this.position=gn.position),gn.positionAtOrigin&&(this.positionAtOrigin=gn.positionAtOrigin),gn.touchGestures&&(this.touchGestures=gn.touchGestures)),fn.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,w.R)(this._destroyed)).subscribe(J=>{J?"keyboard"===J&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const J=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ae,Oe])=>{J.removeEventListener(ae,Oe,Jt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(J,this.message,"tooltip"),this._focusMonitor.stopMonitoring(J)}show(J=this.showDelay,ae){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Oe=this._createOverlay(ae);this._detach(),this._portal=this._portal||new ce.C5(this._tooltipComponent,this._viewContainerRef);const ot=this._tooltipInstance=Oe.attach(this._portal).instance;ot._triggerElement=this._elementRef.nativeElement,ot._mouseLeaveHideDelay=this._hideDelay,ot.afterHidden().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ot.show(J)}hide(J=this.hideDelay){const ae=this._tooltipInstance;ae&&(ae.isVisible()?ae.hide(J):(ae._cancelPendingAnimations(),this._detach()))}toggle(J){this._isTooltipVisible()?this.hide():this.show(void 0,J)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(J){if(this._overlayRef){const ot=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!J)&&ot._origin instanceof l.SBq)return this._overlayRef;this._detach()}const ae=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Oe=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&J||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ae);return Oe.positionChanges.pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this._updateCurrentPositionClass(ot.connectionPair),this._tooltipInstance&&ot.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Oe,panelClass:`${this._cssClassPrefix}-${un}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this._isTooltipVisible()&&ot.keyCode===ee.hY&&!(0,ee.Vb)(ot)&&(ot.preventDefault(),ot.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(J){const ae=J.getConfig().positionStrategy,Oe=this._getOrigin(),ot=this._getOverlayPosition();ae.withPositions([this._addOffset({...Oe.main,...ot.main}),this._addOffset({...Oe.fallback,...ot.fallback})])}_addOffset(J){return J}_getOrigin(){const J=!this._dir||"ltr"==this._dir.value,ae=this.position;let Oe;"above"==ae||"below"==ae?Oe={originX:"center",originY:"above"==ae?"top":"bottom"}:"before"==ae||"left"==ae&&J||"right"==ae&&!J?Oe={originX:"start",originY:"center"}:("after"==ae||"right"==ae&&J||"left"==ae&&!J)&&(Oe={originX:"end",originY:"center"});const{x:ot,y:Se}=this._invertPosition(Oe.originX,Oe.originY);return{main:Oe,fallback:{originX:ot,originY:Se}}}_getOverlayPosition(){const J=!this._dir||"ltr"==this._dir.value,ae=this.position;let Oe;"above"==ae?Oe={overlayX:"center",overlayY:"bottom"}:"below"==ae?Oe={overlayX:"center",overlayY:"top"}:"before"==ae||"left"==ae&&J||"right"==ae&&!J?Oe={overlayX:"end",overlayY:"center"}:("after"==ae||"right"==ae&&J||"left"==ae&&!J)&&(Oe={overlayX:"start",overlayY:"center"});const{x:ot,y:Se}=this._invertPosition(Oe.overlayX,Oe.overlayY);return{main:Oe,fallback:{overlayX:ot,overlayY:Se}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,n.q)(1),(0,w.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(J){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=J,this._tooltipInstance._markForCheck())}_invertPosition(J,ae){return"above"===this.position||"below"===this.position?"top"===ae?ae="bottom":"bottom"===ae&&(ae="top"):"end"===J?J="start":"start"===J&&(J="end"),{x:J,y:ae}}_updateCurrentPositionClass(J){const{overlayY:ae,originX:Oe,originY:ot}=J;let Se;if(Se="center"===ae?this._dir&&"rtl"===this._dir.value?"end"===Oe?"left":"right":"start"===Oe?"left":"right":"bottom"===ae&&"top"===ot?"above":"below",Se!==this._currentPosition){const Ft=this._overlayRef;if(Ft){const lt=`${this._cssClassPrefix}-${un}-`;Ft.removePanelClass(lt+this._currentPosition),Ft.addPanelClass(lt+Se)}this._currentPosition=Se}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",J=>{let ae;this._setupPointerExitEventsIfNeeded(),void 0!==J.x&&void 0!==J.y&&(ae=J),this.show(void 0,ae)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",J=>{const ae=J.targetTouches?.[0],Oe=ae?{x:ae.clientX,y:ae.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,Oe),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const J=[];if(this._platformSupportsMouseEvents())J.push(["mouseleave",ae=>{const Oe=ae.relatedTarget;(!Oe||!this._overlayRef?.overlayElement.contains(Oe))&&this.hide()}],["wheel",ae=>this._wheelListener(ae)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ae=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};J.push(["touchend",ae],["touchcancel",ae])}this._addListeners(J),this._passiveListeners.push(...J)}_addListeners(J){J.forEach(([ae,Oe])=>{this._elementRef.nativeElement.addEventListener(ae,Oe,Jt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(J){if(this._isTooltipVisible()){const ae=this._document.elementFromPoint(J.clientX,J.clientY),Oe=this._elementRef.nativeElement;ae!==Oe&&!Oe.contains(ae)&&this.hide()}}_disableNativeGesturesIfNecessary(){const J=this.touchGestures;if("off"!==J){const ae=this._elementRef.nativeElement,Oe=ae.style;("on"===J||"INPUT"!==ae.nodeName&&"TEXTAREA"!==ae.nodeName)&&(Oe.userSelect=Oe.msUserSelect=Oe.webkitUserSelect=Oe.MozUserSelect="none"),("on"===J||!ae.draggable)&&(Oe.webkitUserDrag="none"),Oe.touchAction="none",Oe.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(ae){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Ct,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}})}return Ct})(),Rn=(()=>{class Ct extends gi{constructor(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An){super(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An),this._tooltipComponent=at,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(J){const Oe=!this._dir||"ltr"==this._dir.value;return"top"===J.originY?J.offsetY=-8:"bottom"===J.originY?J.offsetY=8:"start"===J.originX?J.offsetX=Oe?-8:8:"end"===J.originX&&(J.offsetX=Oe?8:-8),J}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(te.aV),l.Y36(l.SBq),l.Y36(oe.mF),l.Y36(l.s_b),l.Y36(l.R0b),l.Y36(re.t4),l.Y36(ue.$s),l.Y36(ue.tE),l.Y36(je),l.Y36(se.Is,8),l.Y36(Zt,8),l.Y36(e.K0))};static#t=this.\u0275dir=l.lG2({type:Ct,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(ae,Oe){2&ae&&l.ekj("mat-mdc-tooltip-disabled",Oe.disabled)},exportAs:["matTooltip"],features:[l.qOj]})}return Ct})(),dt=(()=>{class Ct{constructor(J,ae){this._changeDetectorRef=J,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new D.x,this._animationsDisabled="NoopAnimations"===ae}show(J){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},J)}hide(J){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},J)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:J}){(!J||!this._triggerElement.contains(J))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:J}){(J===this._showAnimation||J===this._hideAnimation)&&this._finalizeAnimation(J===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(J){J?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(J){const ae=this._tooltip.nativeElement,Oe=this._showAnimation,ot=this._hideAnimation;if(ae.classList.remove(J?ot:Oe),ae.classList.add(J?Oe:ot),this._isVisible=J,J&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Se=getComputedStyle(ae);("0s"===Se.getPropertyValue("animation-duration")||"none"===Se.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}J&&this._onShow(),this._animationsDisabled&&(ae.classList.add("_mat-animation-noopable"),this._finalizeAnimation(J))}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(l.sBO),l.Y36(l.QbO,8))};static#t=this.\u0275dir=l.lG2({type:Ct})}return Ct})(),at=(()=>{class Ct extends dt{constructor(J,ae,Oe){super(J,Oe),this._elementRef=ae,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const J=this._elementRef.nativeElement.getBoundingClientRect();return J.height>24&&J.width>=200}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Ct,selectors:[["mat-tooltip-component"]],viewQuery:function(ae,Oe){if(1&ae&&l.Gf(mt,7),2&ae){let ot;l.iGM(ot=l.CRH())&&(Oe._tooltip=ot.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ae,Oe){1&ae&&l.NdJ("mouseleave",function(Se){return Oe._handleMouseLeave(Se)}),2&ae&&l.Udp("zoom",Oe.isVisible()?1:null)},features:[l.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(ae,Oe){1&ae&&(l.TgZ(0,"div",0,1),l.NdJ("animationend",function(Se){return Oe._handleAnimationEnd(Se)}),l.TgZ(2,"div",2),l._uU(3),l.qZA()()),2&ae&&(l.ekj("mdc-tooltip--multiline",Oe._isMultiline),l.Q6J("ngClass",Oe.tooltipClass),l.xp6(3),l.Oqu(Oe.message))},dependencies:[e.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return Ct})(),Ee=(()=>{class Ct{static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275mod=l.oAB({type:Ct});static#n=this.\u0275inj=l.cJS({providers:[xt],imports:[ue.rt,e.ez,te.U8,Re.BQ,Re.BQ,oe.ZD]})}return Ct})();var $e=C(9157);function me(Ct,Ce){if(1&Ct&&(l.TgZ(0,"mat-option",19),l._uU(1),l.qZA()),2&Ct){const J=Ce.$implicit;l.Q6J("value",J),l.xp6(1),l.hij(" ",J," ")}}function tt(Ct,Ce){if(1&Ct){const J=l.EpF();l.TgZ(0,"mat-form-field",16)(1,"mat-select",17),l.NdJ("selectionChange",function(Oe){l.CHM(J);const ot=l.oxw(2);return l.KtG(ot._changePageSize(Oe.value))}),l.YNc(2,me,2,2,"mat-option",18),l.qZA()()}if(2&Ct){const J=l.oxw(2);l.Q6J("appearance",J._formFieldAppearance)("color",J.color),l.xp6(1),l.Q6J("value",J.pageSize)("disabled",J.disabled)("aria-labelledby",J._pageSizeLabelId)("panelClass",J.selectConfig.panelClass||"")("disableOptionCentering",J.selectConfig.disableOptionCentering),l.xp6(1),l.Q6J("ngForOf",J._displayedPageSizeOptions)}}function he(Ct,Ce){if(1&Ct&&(l.TgZ(0,"div",20),l._uU(1),l.qZA()),2&Ct){const J=l.oxw(2);l.xp6(1),l.Oqu(J.pageSize)}}function Ze(Ct,Ce){if(1&Ct&&(l.TgZ(0,"div",12)(1,"div",13),l._uU(2),l.qZA(),l.YNc(3,tt,3,8,"mat-form-field",14),l.YNc(4,he,2,1,"div",15),l.qZA()),2&Ct){const J=l.oxw();l.xp6(1),l.s9C("id",J._pageSizeLabelId),l.xp6(1),l.hij(" ",J._intl.itemsPerPageLabel," "),l.xp6(1),l.Q6J("ngIf",J._displayedPageSizeOptions.length>1),l.xp6(1),l.Q6J("ngIf",J._displayedPageSizeOptions.length<=1)}}function rt(Ct,Ce){if(1&Ct){const J=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){l.CHM(J);const Oe=l.oxw();return l.KtG(Oe.firstPage())}),l.O4$(),l.TgZ(1,"svg",7),l._UZ(2,"path",22),l.qZA()()}if(2&Ct){const J=l.oxw();l.Q6J("matTooltip",J._intl.firstPageLabel)("matTooltipDisabled",J._previousButtonsDisabled())("matTooltipPosition","above")("disabled",J._previousButtonsDisabled()),l.uIk("aria-label",J._intl.firstPageLabel)}}function bt(Ct,Ce){if(1&Ct){const J=l.EpF();l.O4$(),l.kcU(),l.TgZ(0,"button",23),l.NdJ("click",function(){l.CHM(J);const Oe=l.oxw();return l.KtG(Oe.lastPage())}),l.O4$(),l.TgZ(1,"svg",7),l._UZ(2,"path",24),l.qZA()()}if(2&Ct){const J=l.oxw();l.Q6J("matTooltip",J._intl.lastPageLabel)("matTooltipDisabled",J._nextButtonsDisabled())("matTooltipPosition","above")("disabled",J._nextButtonsDisabled()),l.uIk("aria-label",J._intl.lastPageLabel)}}let Nt=(()=>{class Ct{constructor(){this.changes=new D.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(J,ae,Oe)=>{if(0==Oe||0==ae)return`0 of ${Oe}`;const ot=J*ae;return`${ot+1} \u2013 ${ot<(Oe=Math.max(Oe,0))?Math.min(ot+ae,Oe):ot+ae} of ${Oe}`}}static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275prov=l.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"})}return Ct})();const nn={provide:Nt,deps:[[new l.FiY,new l.tp0,Nt]],useFactory:function Qt(Ct){return Ct||new Nt}},rn=new l.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),vn=(0,Re.Id)((0,Re.dB)(class{}));let ei=(()=>{class Ct extends vn{get pageIndex(){return this._pageIndex}set pageIndex(J){this._pageIndex=Math.max((0,Z.su)(J),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(J){this._length=(0,Z.su)(J),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(J){this._pageSize=Math.max((0,Z.su)(J),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(J){this._pageSizeOptions=(J||[]).map(ae=>(0,Z.su)(ae)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(J){this._hidePageSize=(0,Z.Ig)(J)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(J){this._showFirstLastButtons=(0,Z.Ig)(J)}constructor(J,ae,Oe){if(super(),this._intl=J,this._changeDetectorRef=ae,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new l.vpe,this._intlChanges=J.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Oe){const{pageSize:ot,pageSizeOptions:Se,hidePageSize:Ft,showFirstLastButtons:lt}=Oe;null!=ot&&(this._pageSize=ot),null!=Se&&(this._pageSizeOptions=Se),null!=Ft&&(this._hidePageSize=Ft),null!=lt&&(this._showFirstLastButtons=lt)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const J=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(J)}previousPage(){if(!this.hasPreviousPage())return;const J=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(J)}firstPage(){if(!this.hasPreviousPage())return;const J=this.pageIndex;this.pageIndex=0,this._emitPageEvent(J)}lastPage(){if(!this.hasNextPage())return;const J=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(J)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const J=this.getNumberOfPages()-1;return this.pageIndexJ-ae),this._changeDetectorRef.markForCheck())}_emitPageEvent(J){this.page.emit({previousPageIndex:J,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(ae){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Ct,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[l.qOj]})}return Ct})(),Wn=0,Ve=(()=>{class Ct extends ei{constructor(J,ae,Oe){super(J,ae,Oe),this._pageSizeLabelId="mat-paginator-page-size-label-"+Wn++,this._formFieldAppearance=Oe?.formFieldAppearance||"outline"}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(Nt),l.Y36(l.sBO),l.Y36(rn,8))};static#t=this.\u0275cmp=l.Xpm({type:Ct,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[l.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(ae,Oe){1&ae&&(l.TgZ(0,"div",0)(1,"div",1),l.YNc(2,Ze,5,4,"div",2),l.TgZ(3,"div",3)(4,"div",4),l._uU(5),l.qZA(),l.YNc(6,rt,3,5,"button",5),l.TgZ(7,"button",6),l.NdJ("click",function(){return Oe.previousPage()}),l.O4$(),l.TgZ(8,"svg",7),l._UZ(9,"path",8),l.qZA()(),l.kcU(),l.TgZ(10,"button",9),l.NdJ("click",function(){return Oe.nextPage()}),l.O4$(),l.TgZ(11,"svg",7),l._UZ(12,"path",10),l.qZA()(),l.YNc(13,bt,3,5,"button",11),l.qZA()()()),2&ae&&(l.xp6(2),l.Q6J("ngIf",!Oe.hidePageSize),l.xp6(3),l.hij(" ",Oe._intl.getRangeLabel(Oe.pageIndex,Oe.pageSize,Oe.length)," "),l.xp6(1),l.Q6J("ngIf",Oe.showFirstLastButtons),l.xp6(1),l.Q6J("matTooltip",Oe._intl.previousPageLabel)("matTooltipDisabled",Oe._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Oe._previousButtonsDisabled()),l.uIk("aria-label",Oe._intl.previousPageLabel),l.xp6(3),l.Q6J("matTooltip",Oe._intl.nextPageLabel)("matTooltipDisabled",Oe._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Oe._nextButtonsDisabled()),l.uIk("aria-label",Oe._intl.nextPageLabel),l.xp6(3),l.Q6J("ngIf",Oe.showFirstLastButtons))},dependencies:[e.sg,e.O5,I.RK,$e.KE,S.gD,Re.ey,Rn],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Ct})(),ct=(()=>{class Ct{static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275mod=l.oAB({type:Ct});static#n=this.\u0275inj=l.cJS({providers:[nn],imports:[e.ez,I.ot,S.LD,Ee]})}return Ct})()},6007:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cv:()=>ue,pW:()=>ee});var e=C(5879),D=(C(6814),C(3680)),I=C(2605);const S=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Z=(0,D.pj)(class{constructor(se){this._elementRef=se}},"primary");let ee=(()=>{class se extends Z{constructor(oe,ce,_e,Re,mt){super(oe),this._ngZone=ce,this._changeDetectorRef=_e,this._animationMode=Re,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._mode="determinate",this._transitionendHandler=Ge=>{0===this.animationEnd.observers.length||!Ge.target||!Ge.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===Re,mt&&(mt.color&&(this.color=this.defaultColor=mt.color),this.mode=mt.mode||this.mode)}get value(){return this._value}set value(oe){this._value=re((0,I.su)(oe)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(oe){this._bufferValue=re((0,I.su)(oe)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(oe){this._mode=oe,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(ce){return new(ce||se)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.QbO,8),e.Y36(S,8))};static#t=this.\u0275cmp=e.Xpm({type:se,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(ce,_e){2&ce&&(e.uIk("aria-valuenow",_e._isIndeterminate()?null:_e.value)("mode",_e.mode),e.ekj("_mat-animation-noopable",_e._isNoopAnimation)("mdc-linear-progress--animation-ready",!_e._isNoopAnimation)("mdc-linear-progress--indeterminate",_e._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(ce,_e){1&ce&&(e.TgZ(0,"div",0),e._UZ(1,"div",1)(2,"div",2),e.qZA(),e.TgZ(3,"div",3),e._UZ(4,"span",4),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"span",4),e.qZA()),2&ce&&(e.xp6(1),e.Udp("flex-basis",_e._getBufferBarFlexBasis()),e.xp6(2),e.Udp("transform",_e._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return se})();function re(se,te=0,oe=100){return Math.max(te,Math.min(oe,se))}let ue=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=e.oAB({type:se});static#n=this.\u0275inj=e.cJS({imports:[D.BQ]})}return se})()},5940:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cq:()=>oe,Ou:()=>se});var e=C(5879),l=C(3680),D=C(2605),I=C(6814);const S=["determinateSpinner"];function w(ce,_e){if(1&ce&&(e.O4$(),e.TgZ(0,"svg",11),e._UZ(1,"circle",12),e.qZA()),2&ce){const Re=e.oxw();e.uIk("viewBox",Re._viewBox()),e.xp6(1),e.Udp("stroke-dasharray",Re._strokeCircumference(),"px")("stroke-dashoffset",Re._strokeCircumference()/2,"px")("stroke-width",Re._circleStrokeWidth(),"%"),e.uIk("r",Re._circleRadius())}}const n=(0,l.pj)(class{constructor(ce){this._elementRef=ce}},"primary"),Z=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function ee(){return{diameter:re}}}),re=100;let se=(()=>{class ce extends n{constructor(Re,mt,Ge){super(Re),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=re,this._noopAnimations="NoopAnimations"===mt&&!!Ge&&!Ge._forceAnimations,Ge&&(Ge.color&&(this.color=this.defaultColor=Ge.color),Ge.diameter&&(this.diameter=Ge.diameter),Ge.strokeWidth&&(this.strokeWidth=Ge.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(Re){this._value=Math.max(0,Math.min(100,(0,D.su)(Re)))}get diameter(){return this._diameter}set diameter(Re){this._diameter=(0,D.su)(Re)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(Re){this._strokeWidth=(0,D.su)(Re)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const Re=2*this._circleRadius()+this.strokeWidth;return`0 0 ${Re} ${Re}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(e.SBq),e.Y36(e.QbO,8),e.Y36(Z))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(mt,Ge){if(1&mt&&e.Gf(S,5),2&mt){let Lt;e.iGM(Lt=e.CRH())&&(Ge._determinateCircle=Lt.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(mt,Ge){2&mt&&(e.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===Ge.mode?Ge.value:null)("mode",Ge.mode),e.Udp("width",Ge.diameter,"px")("height",Ge.diameter,"px")("--mdc-circular-progress-size",Ge.diameter+"px")("--mdc-circular-progress-active-indicator-width",Ge.diameter+"px"),e.ekj("_mat-animation-noopable",Ge._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===Ge.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(mt,Ge){if(1&mt&&(e.YNc(0,w,2,8,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.O4$(),e.TgZ(4,"svg",3),e._UZ(5,"circle",4),e.qZA()(),e.kcU(),e.TgZ(6,"div",5)(7,"div",6)(8,"div",7),e.GkF(9,8),e.qZA(),e.TgZ(10,"div",9),e.GkF(11,8),e.qZA(),e.TgZ(12,"div",10),e.GkF(13,8),e.qZA()()()),2&mt){const Lt=e.MAs(1);e.xp6(4),e.uIk("viewBox",Ge._viewBox()),e.xp6(1),e.Udp("stroke-dasharray",Ge._strokeCircumference(),"px")("stroke-dashoffset",Ge._strokeDashOffset(),"px")("stroke-width",Ge._circleStrokeWidth(),"%"),e.uIk("r",Ge._circleRadius()),e.xp6(4),e.Q6J("ngTemplateOutlet",Lt),e.xp6(2),e.Q6J("ngTemplateOutlet",Lt),e.xp6(2),e.Q6J("ngTemplateOutlet",Lt)}},dependencies:[I.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return ce})(),oe=(()=>{class ce{static#e=this.\u0275fac=function(mt){return new(mt||ce)};static#t=this.\u0275mod=e.oAB({type:ce});static#n=this.\u0275inj=e.cJS({imports:[I.ez,l.BQ]})}return ce})()},8525:(ft,Ie,C)=>{"use strict";C.d(Ie,{LD:()=>Qt,gD:()=>Nt});var e=C(3651),l=C(6814),D=C(5879),I=C(3680),S=C(9157),w=C(6672),n=C(4300),Z=C(9388),ee=C(2605),re=C(8337),ue=C(6028),se=C(6223),te=C(8645),oe=C(4911),ce=C(3019),_e=C(7921),Re=C(4664),mt=C(8180),Ge=C(2181),Lt=C(7398),je=C(3997),Tt=C(9773),xt=C(6825);const St=["trigger"],Zt=["panel"];function yt(nn,Dn){if(1&nn&&(D.TgZ(0,"span",10),D._uU(1),D.qZA()),2&nn){const Ot=D.oxw();D.xp6(1),D.Oqu(Ot.placeholder)}}function un(nn,Dn){if(1&nn&&(D.TgZ(0,"span",14),D._uU(1),D.qZA()),2&nn){const Ot=D.oxw(2);D.xp6(1),D.Oqu(Ot.triggerValue)}}function Jt(nn,Dn){1&nn&&D.Hsn(0,0,["*ngSwitchCase","true"])}function tn(nn,Dn){if(1&nn&&(D.TgZ(0,"span",11),D.YNc(1,un,2,1,"span",12),D.YNc(2,Jt,1,0,"ng-content",13),D.qZA()),2&nn){const Ot=D.oxw();D.Q6J("ngSwitch",!!Ot.customTrigger),D.xp6(2),D.Q6J("ngSwitchCase",!0)}}function wn(nn,Dn){if(1&nn){const Ot=D.EpF();D.O4$(),D.kcU(),D.TgZ(0,"div",15,16),D.NdJ("@transformPanel.done",function(vn){D.CHM(Ot);const ei=D.oxw();return D.KtG(ei._panelDoneAnimatingStream.next(vn.toState))})("keydown",function(vn){D.CHM(Ot);const ei=D.oxw();return D.KtG(ei._handleKeydown(vn))}),D.Hsn(2,1),D.qZA()}if(2&nn){const Ot=D.oxw();D.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Ot._getPanelTheme(),""),D.Q6J("ngClass",Ot.panelClass)("@transformPanel","showing"),D.uIk("id",Ot.id+"-panel")("aria-multiselectable",Ot.multiple)("aria-label",Ot.ariaLabel||null)("aria-labelledby",Ot._getPanelAriaLabelledby())}}const Ln=[[["mat-select-trigger"]],"*"],Yn=["mat-select-trigger","*"],ti={transformPanelWrap:(0,xt.X$)("transformPanelWrap",[(0,xt.eR)("* => void",(0,xt.IO)("@transformPanel",[(0,xt.pV)()],{optional:!0}))]),transformPanel:(0,xt.X$)("transformPanel",[(0,xt.SB)("void",(0,xt.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,xt.eR)("void => showing",(0,xt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,xt.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,xt.eR)("* => void",(0,xt.jt)("100ms linear",(0,xt.oB)({opacity:0})))])};let at=0;const Be=new D.OlP("mat-select-scroll-strategy"),$e=new D.OlP("MAT_SELECT_CONFIG"),me={provide:Be,deps:[e.aV],useFactory:function Ee(nn){return()=>nn.scrollStrategies.reposition()}},tt=new D.OlP("MatSelectTrigger");class he{constructor(Dn,Ot){this.source=Dn,this.value=Ot}}const Ze=(0,I.Kr)((0,I.sb)((0,I.Id)((0,I.FD)(class{constructor(nn,Dn,Ot,rn,vn){this._elementRef=nn,this._defaultErrorStateMatcher=Dn,this._parentForm=Ot,this._parentFormGroup=rn,this.ngControl=vn,this.stateChanges=new te.x}}))));let rt=(()=>{class nn extends Ze{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Ot){this._placeholder=Ot,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(se.kI.required)??!1}set required(Ot){this._required=(0,ee.Ig)(Ot),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Ot){this._multiple=(0,ee.Ig)(Ot)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Ot){this._disableOptionCentering=(0,ee.Ig)(Ot)}get compareWith(){return this._compareWith}set compareWith(Ot){this._compareWith=Ot,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Ot){this._assignValue(Ot)&&this._onChange(Ot)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Ot){this._typeaheadDebounceInterval=(0,ee.su)(Ot)}get id(){return this._id}set id(Ot){this._id=Ot||this._uid,this.stateChanges.next()}constructor(Ot,rn,vn,ei,Wn,Ve,ct,Ct,Ce,J,ae,Oe,ot,Se){super(Wn,ei,ct,Ct,J),this._viewportRuler=Ot,this._changeDetectorRef=rn,this._ngZone=vn,this._dir=Ve,this._parentFormField=Ce,this._liveAnnouncer=ot,this._defaultOptions=Se,this._panelOpen=!1,this._compareWith=(Ft,lt)=>Ft===lt,this._uid="mat-select-"+at++,this._triggerAriaLabelledBy=null,this._destroy=new te.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+at++,this._panelDoneAnimatingStream=new te.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,oe.P)(()=>{const Ft=this.options;return Ft?Ft.changes.pipe((0,_e.O)(Ft),(0,Re.w)(()=>(0,ce.T)(...Ft.map(lt=>lt.onSelectionChange)))):this._ngZone.onStable.pipe((0,mt.q)(1),(0,Re.w)(()=>this.optionSelectionChanges))}),this.openedChange=new D.vpe,this._openedStream=this.openedChange.pipe((0,Ge.h)(Ft=>Ft),(0,Lt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Ge.h)(Ft=>!Ft),(0,Lt.U)(()=>{})),this.selectionChange=new D.vpe,this.valueChange=new D.vpe,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Se?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Se.typeaheadDebounceInterval),this._scrollStrategyFactory=Oe,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ae)||0,this.id=this.id}ngOnInit(){this._selectionModel=new re.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,je.x)(),(0,Tt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Tt.R)(this._destroy)).subscribe(Ot=>{Ot.added.forEach(rn=>rn.select()),Ot.removed.forEach(rn=>rn.deselect())}),this.options.changes.pipe((0,_e.O)(null),(0,Tt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Ot=this._getTriggerAriaLabelledby(),rn=this.ngControl;if(Ot!==this._triggerAriaLabelledBy){const vn=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Ot,Ot?vn.setAttribute("aria-labelledby",Ot):vn.removeAttribute("aria-labelledby")}rn&&(this._previousControl!==rn.control&&(void 0!==this._previousControl&&null!==rn.disabled&&rn.disabled!==this.disabled&&(this.disabled=rn.disabled),this._previousControl=rn.control),this.updateErrorState())}ngOnChanges(Ot){(Ot.disabled||Ot.userAriaDescribedBy)&&this.stateChanges.next(),Ot.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const Ot=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Ot)return;const rn=`${this.id}-panel`;this._trackedModal&&(0,n.iD)(this._trackedModal,"aria-owns",rn),(0,n.Zf)(Ot,"aria-owns",rn),this._trackedModal=Ot}_clearFromModal(){this._trackedModal&&((0,n.iD)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Ot){this._assignValue(Ot)}registerOnChange(Ot){this._onChange=Ot}registerOnTouched(Ot){this._onTouched=Ot}setDisabledState(Ot){this.disabled=Ot,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Ot=this._selectionModel.selected.map(rn=>rn.viewValue);return this._isRtl()&&Ot.reverse(),Ot.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Ot){this.disabled||(this.panelOpen?this._handleOpenKeydown(Ot):this._handleClosedKeydown(Ot))}_handleClosedKeydown(Ot){const rn=Ot.keyCode,vn=rn===ue.JH||rn===ue.LH||rn===ue.oh||rn===ue.SV,ei=rn===ue.K5||rn===ue.L_,Wn=this._keyManager;if(!Wn.isTyping()&&ei&&!(0,ue.Vb)(Ot)||(this.multiple||Ot.altKey)&&vn)Ot.preventDefault(),this.open();else if(!this.multiple){const Ve=this.selected;Wn.onKeydown(Ot);const ct=this.selected;ct&&Ve!==ct&&this._liveAnnouncer.announce(ct.viewValue,1e4)}}_handleOpenKeydown(Ot){const rn=this._keyManager,vn=Ot.keyCode,ei=vn===ue.JH||vn===ue.LH,Wn=rn.isTyping();if(ei&&Ot.altKey)Ot.preventDefault(),this.close();else if(Wn||vn!==ue.K5&&vn!==ue.L_||!rn.activeItem||(0,ue.Vb)(Ot))if(!Wn&&this._multiple&&vn===ue.A&&Ot.ctrlKey){Ot.preventDefault();const Ve=this.options.some(ct=>!ct.disabled&&!ct.selected);this.options.forEach(ct=>{ct.disabled||(Ve?ct.select():ct.deselect())})}else{const Ve=rn.activeItemIndex;rn.onKeydown(Ot),this._multiple&&ei&&Ot.shiftKey&&rn.activeItem&&rn.activeItemIndex!==Ve&&rn.activeItem._selectViaInteraction()}else Ot.preventDefault(),rn.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,mt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Ot){if(this.options.forEach(rn=>rn.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Ot)Array.isArray(Ot),Ot.forEach(rn=>this._selectOptionByValue(rn)),this._sortValues();else{const rn=this._selectOptionByValue(Ot);rn?this._keyManager.updateActiveItem(rn):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Ot){const rn=this.options.find(vn=>{if(this._selectionModel.isSelected(vn))return!1;try{return null!=vn.value&&this._compareWith(vn.value,Ot)}catch{return!1}});return rn&&this._selectionModel.select(rn),rn}_assignValue(Ot){return!!(Ot!==this._value||this._multiple&&Array.isArray(Ot))&&(this.options&&this._setSelectionByValue(Ot),this._value=Ot,!0)}_skipPredicate(Ot){return Ot.disabled}_initKeyManager(){this._keyManager=new n.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Ot=(0,ce.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Tt.R)(Ot)).subscribe(rn=>{this._onSelect(rn.source,rn.isUserInput),rn.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ce.T)(...this.options.map(rn=>rn._stateChanges)).pipe((0,Tt.R)(Ot)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Ot,rn){const vn=this._selectionModel.isSelected(Ot);null!=Ot.value||this._multiple?(vn!==Ot.selected&&(Ot.selected?this._selectionModel.select(Ot):this._selectionModel.deselect(Ot)),rn&&this._keyManager.setActiveItem(Ot),this.multiple&&(this._sortValues(),rn&&this.focus())):(Ot.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Ot.value)),vn!==this._selectionModel.isSelected(Ot)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Ot=this.options.toArray();this._selectionModel.sort((rn,vn)=>this.sortComparator?this.sortComparator(rn,vn,Ot):Ot.indexOf(rn)-Ot.indexOf(vn)),this.stateChanges.next()}}_propagateChanges(Ot){let rn=null;rn=this.multiple?this.selected.map(vn=>vn.value):this.selected?this.selected.value:Ot,this._value=rn,this.valueChange.emit(rn),this._onChange(rn),this.selectionChange.emit(this._getChangeEvent(rn)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let Ot=-1;for(let rn=0;rn0}focus(Ot){this._elementRef.nativeElement.focus(Ot)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Ot=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Ot?Ot+" ":"")+this.ariaLabelledby:Ot}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Ot=this._parentFormField?.getLabelId();let rn=(Ot?Ot+" ":"")+this._valueId;return this.ariaLabelledby&&(rn+=" "+this.ariaLabelledby),rn}_panelDoneAnimating(Ot){this.openedChange.emit(Ot)}setDescribedByIds(Ot){Ot.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ot.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static#e=this.\u0275fac=function(rn){return new(rn||nn)(D.Y36(w.rL),D.Y36(D.sBO),D.Y36(D.R0b),D.Y36(I.rD),D.Y36(D.SBq),D.Y36(Z.Is,8),D.Y36(se.F,8),D.Y36(se.sg,8),D.Y36(S.G_,8),D.Y36(se.a5,10),D.$8M("tabindex"),D.Y36(Be),D.Y36(n.Kd),D.Y36($e,8))};static#t=this.\u0275dir=D.lG2({type:nn,viewQuery:function(rn,vn){if(1&rn&&(D.Gf(St,5),D.Gf(Zt,5),D.Gf(e.pI,5)),2&rn){let ei;D.iGM(ei=D.CRH())&&(vn.trigger=ei.first),D.iGM(ei=D.CRH())&&(vn.panel=ei.first),D.iGM(ei=D.CRH())&&(vn._overlayDir=ei.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[D.qOj,D.TTD]})}return nn})(),Nt=(()=>{class nn extends rt{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=Ot=>!this.panelOpen&&Ot.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Tt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(Ot){const rn=this.options.toArray()[Ot];if(rn){const vn=this.panel.nativeElement,ei=(0,I.CB)(Ot,this.options,this.optionGroups),Wn=rn._getHostElement();vn.scrollTop=0===Ot&&1===ei?0:(0,I.jH)(Wn.offsetTop,Wn.offsetHeight,vn.scrollTop,vn.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Ot){return new he(this,Ot)}_getOverlayWidth(Ot){return"auto"===this.panelWidth?(Ot instanceof e.xu?Ot.elementRef:Ot||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Ot){this._hideSingleSelectionIndicator=(0,ee.Ig)(Ot),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Ot of this.options)Ot._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(){let Ot;return function(vn){return(Ot||(Ot=D.n5z(nn)))(vn||nn)}}();static#t=this.\u0275cmp=D.Xpm({type:nn,selectors:[["mat-select"]],contentQueries:function(rn,vn,ei){if(1&rn&&(D.Suo(ei,tt,5),D.Suo(ei,I.ey,5),D.Suo(ei,I.K7,5)),2&rn){let Wn;D.iGM(Wn=D.CRH())&&(vn.customTrigger=Wn.first),D.iGM(Wn=D.CRH())&&(vn.options=Wn),D.iGM(Wn=D.CRH())&&(vn.optionGroups=Wn)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(rn,vn){1&rn&&D.NdJ("keydown",function(Wn){return vn._handleKeydown(Wn)})("focus",function(){return vn._onFocus()})("blur",function(){return vn._onBlur()}),2&rn&&(D.uIk("id",vn.id)("tabindex",vn.tabIndex)("aria-controls",vn.panelOpen?vn.id+"-panel":null)("aria-expanded",vn.panelOpen)("aria-label",vn.ariaLabel||null)("aria-required",vn.required.toString())("aria-disabled",vn.disabled.toString())("aria-invalid",vn.errorState)("aria-activedescendant",vn._getAriaActiveDescendant()),D.ekj("mat-mdc-select-disabled",vn.disabled)("mat-mdc-select-invalid",vn.errorState)("mat-mdc-select-required",vn.required)("mat-mdc-select-empty",vn.empty)("mat-mdc-select-multiple",vn.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[D._Bn([{provide:S.Eo,useExisting:nn},{provide:I.HF,useExisting:nn}]),D.qOj],ngContentSelectors:Yn,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(rn,vn){if(1&rn&&(D.F$t(Ln),D.TgZ(0,"div",0,1),D.NdJ("click",function(){return vn.toggle()}),D.TgZ(3,"div",2),D.YNc(4,yt,2,1,"span",3),D.YNc(5,tn,3,2,"span",4),D.qZA(),D.TgZ(6,"div",5)(7,"div",6),D.O4$(),D.TgZ(8,"svg",7),D._UZ(9,"path",8),D.qZA()()()(),D.YNc(10,wn,3,9,"ng-template",9),D.NdJ("backdropClick",function(){return vn.close()})("attach",function(){return vn._onAttached()})("detach",function(){return vn.close()})),2&rn){const ei=D.MAs(1);D.xp6(3),D.Q6J("ngSwitch",vn.empty),D.uIk("id",vn._valueId),D.xp6(1),D.Q6J("ngSwitchCase",!0),D.xp6(1),D.Q6J("ngSwitchCase",!1),D.xp6(5),D.Q6J("cdkConnectedOverlayPanelClass",vn._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",vn._scrollStrategy)("cdkConnectedOverlayOrigin",vn._preferredOverlayOrigin||ei)("cdkConnectedOverlayOpen",vn.panelOpen)("cdkConnectedOverlayPositions",vn._positions)("cdkConnectedOverlayWidth",vn._overlayWidth)}},dependencies:[l.mk,l.RF,l.n9,l.ED,e.pI,e.xu],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ti.transformPanel]},changeDetection:0})}return nn})(),Qt=(()=>{class nn{static#e=this.\u0275fac=function(rn){return new(rn||nn)};static#t=this.\u0275mod=D.oAB({type:nn});static#n=this.\u0275inj=D.cJS({providers:[me],imports:[l.ez,e.U8,I.Ng,I.BQ,w.ZD,S.lN,I.Ng,I.BQ]})}return nn})()},6593:(ft,Ie,C)=>{"use strict";C.d(Ie,{Dx:()=>Ve,H7:()=>ai,b2:()=>Ot,h_:()=>vn,q6:()=>Nt,se:()=>yt});var e=C(5879),l=C(6814);class D extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class I extends D{static makeCurrent(){(0,l.HT)(new I)}onAndCancel(ze,be,Te){return ze.addEventListener(be,Te),()=>{ze.removeEventListener(be,Te)}}dispatchEvent(ze,be){ze.dispatchEvent(be)}remove(ze){ze.parentNode&&ze.parentNode.removeChild(ze)}createElement(ze,be){return(be=be||this.getDefaultDocument()).createElement(ze)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ze){return ze.nodeType===Node.ELEMENT_NODE}isShadowRoot(ze){return ze instanceof DocumentFragment}getGlobalEventTarget(ze,be){return"window"===be?window:"document"===be?ze:"body"===be?ze.body:null}getBaseHref(ze){const be=function w(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==be?null:function Z(We){n=n||document.createElement("a"),n.setAttribute("href",We);const ze=n.pathname;return"/"===ze.charAt(0)?ze:`/${ze}`}(be)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(ze){return(0,l.Mx)(document.cookie,ze)}}let n,S=null,re=(()=>{class We{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Te){return new(Te||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const ue=new e.OlP("EventManagerPlugins");let se=(()=>{class We{constructor(be,Te){this._zone=Te,this._eventNameToPlugin=new Map,be.forEach(He=>{He.manager=this}),this._plugins=be.slice().reverse()}addEventListener(be,Te,He){return this._findPluginFor(Te).addEventListener(be,Te,He)}getZone(){return this._zone}_findPluginFor(be){let Te=this._eventNameToPlugin.get(be);if(Te)return Te;if(Te=this._plugins.find(Wt=>Wt.supports(be)),!Te)throw new e.vHH(5101,!1);return this._eventNameToPlugin.set(be,Te),Te}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(ue),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();class te{constructor(ze){this._doc=ze}}const oe="ng-app-id";let ce=(()=>{class We{constructor(be,Te,He,Wt={}){this.doc=be,this.appId=Te,this.nonce=He,this.platformId=Wt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,l.PM)(Wt),this.resetHostNodes()}addStyles(be){for(const Te of be)1===this.changeUsageCount(Te,1)&&this.onStyleAdded(Te)}removeStyles(be){for(const Te of be)this.changeUsageCount(Te,-1)<=0&&this.onStyleRemoved(Te)}ngOnDestroy(){const be=this.styleNodesInDOM;be&&(be.forEach(Te=>Te.remove()),be.clear());for(const Te of this.getAllStyles())this.onStyleRemoved(Te);this.resetHostNodes()}addHost(be){this.hostNodes.add(be);for(const Te of this.getAllStyles())this.addStyleToHost(be,Te)}removeHost(be){this.hostNodes.delete(be)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(be){for(const Te of this.hostNodes)this.addStyleToHost(Te,be)}onStyleRemoved(be){const Te=this.styleRef;Te.get(be)?.elements?.forEach(He=>He.remove()),Te.delete(be)}collectServerRenderedStyles(){const be=this.doc.head?.querySelectorAll(`style[${oe}="${this.appId}"]`);if(be?.length){const Te=new Map;return be.forEach(He=>{null!=He.textContent&&Te.set(He.textContent,He)}),Te}return null}changeUsageCount(be,Te){const He=this.styleRef;if(He.has(be)){const Wt=He.get(be);return Wt.usage+=Te,Wt.usage}return He.set(be,{usage:Te,elements:[]}),Te}getStyleElement(be,Te){const He=this.styleNodesInDOM,Wt=He?.get(Te);if(Wt?.parentNode===be)return He.delete(Te),Wt.removeAttribute(oe),Wt;{const Pn=this.doc.createElement("style");return this.nonce&&Pn.setAttribute("nonce",this.nonce),Pn.textContent=Te,this.platformIsServer&&Pn.setAttribute(oe,this.appId),Pn}}addStyleToHost(be,Te){const He=this.getStyleElement(be,Te);be.appendChild(He);const Wt=this.styleRef,Pn=Wt.get(Te)?.elements;Pn?Pn.push(He):Wt.set(Te,{elements:[He],usage:1})}resetHostNodes(){const be=this.hostNodes;be.clear(),be.add(this.doc.head)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0),e.LFG(e.AFp),e.LFG(e.Ojb,8),e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const _e={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/",math:"http://www.w3.org/1998/MathML/"},Re=/%COMP%/g,Tt=new e.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Zt(We,ze){return ze.map(be=>be.replace(Re,We))}let yt=(()=>{class We{constructor(be,Te,He,Wt,Pn,wt,Yt,fe=null){this.eventManager=be,this.sharedStylesHost=Te,this.appId=He,this.removeStylesOnCompDestroy=Wt,this.doc=Pn,this.platformId=wt,this.ngZone=Yt,this.nonce=fe,this.rendererByCompId=new Map,this.platformIsServer=(0,l.PM)(wt),this.defaultRenderer=new un(be,Pn,Yt,this.platformIsServer)}createRenderer(be,Te){if(!be||!Te)return this.defaultRenderer;this.platformIsServer&&Te.encapsulation===e.ifc.ShadowDom&&(Te={...Te,encapsulation:e.ifc.Emulated});const He=this.getOrCreateRenderer(be,Te);return He instanceof ti?He.applyToHost(be):He instanceof Yn&&He.applyStyles(),He}getOrCreateRenderer(be,Te){const He=this.rendererByCompId;let Wt=He.get(Te.id);if(!Wt){const Pn=this.doc,wt=this.ngZone,Yt=this.eventManager,fe=this.sharedStylesHost,Mt=this.removeStylesOnCompDestroy,Vt=this.platformIsServer;switch(Te.encapsulation){case e.ifc.Emulated:Wt=new ti(Yt,fe,Te,this.appId,Mt,Pn,wt,Vt);break;case e.ifc.ShadowDom:return new Ln(Yt,fe,be,Te,Pn,wt,this.nonce,Vt);default:Wt=new Yn(Yt,fe,Te,Mt,Pn,wt,Vt)}He.set(Te.id,Wt)}return Wt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(se),e.LFG(ce),e.LFG(e.AFp),e.LFG(Tt),e.LFG(l.K0),e.LFG(e.Lbi),e.LFG(e.R0b),e.LFG(e.Ojb))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();class un{constructor(ze,be,Te,He){this.eventManager=ze,this.doc=be,this.ngZone=Te,this.platformIsServer=He,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ze,be){return be?this.doc.createElementNS(_e[be]||be,ze):this.doc.createElement(ze)}createComment(ze){return this.doc.createComment(ze)}createText(ze){return this.doc.createTextNode(ze)}appendChild(ze,be){(wn(ze)?ze.content:ze).appendChild(be)}insertBefore(ze,be,Te){ze&&(wn(ze)?ze.content:ze).insertBefore(be,Te)}removeChild(ze,be){ze&&ze.removeChild(be)}selectRootElement(ze,be){let Te="string"==typeof ze?this.doc.querySelector(ze):ze;if(!Te)throw new e.vHH(-5104,!1);return be||(Te.textContent=""),Te}parentNode(ze){return ze.parentNode}nextSibling(ze){return ze.nextSibling}setAttribute(ze,be,Te,He){if(He){be=He+":"+be;const Wt=_e[He];Wt?ze.setAttributeNS(Wt,be,Te):ze.setAttribute(be,Te)}else ze.setAttribute(be,Te)}removeAttribute(ze,be,Te){if(Te){const He=_e[Te];He?ze.removeAttributeNS(He,be):ze.removeAttribute(`${Te}:${be}`)}else ze.removeAttribute(be)}addClass(ze,be){ze.classList.add(be)}removeClass(ze,be){ze.classList.remove(be)}setStyle(ze,be,Te,He){He&(e.JOm.DashCase|e.JOm.Important)?ze.style.setProperty(be,Te,He&e.JOm.Important?"important":""):ze.style[be]=Te}removeStyle(ze,be,Te){Te&e.JOm.DashCase?ze.style.removeProperty(be):ze.style[be]=""}setProperty(ze,be,Te){ze[be]=Te}setValue(ze,be){ze.nodeValue=be}listen(ze,be,Te){if("string"==typeof ze&&!(ze=(0,l.q)().getGlobalEventTarget(this.doc,ze)))throw new Error(`Unsupported event target ${ze} for event ${be}`);return this.eventManager.addEventListener(ze,be,this.decoratePreventDefault(Te))}decoratePreventDefault(ze){return be=>{if("__ngUnwrap__"===be)return ze;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ze(be)):ze(be))&&be.preventDefault()}}}function wn(We){return"TEMPLATE"===We.tagName&&void 0!==We.content}class Ln extends un{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){super(ze,Wt,Pn,Yt),this.sharedStylesHost=be,this.hostEl=Te,this.shadowRoot=Te.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const fe=Zt(He.id,He.styles);for(const Mt of fe){const Vt=document.createElement("style");wt&&Vt.setAttribute("nonce",wt),Vt.textContent=Mt,this.shadowRoot.appendChild(Vt)}}nodeOrShadowRoot(ze){return ze===this.hostEl?this.shadowRoot:ze}appendChild(ze,be){return super.appendChild(this.nodeOrShadowRoot(ze),be)}insertBefore(ze,be,Te){return super.insertBefore(this.nodeOrShadowRoot(ze),be,Te)}removeChild(ze,be){return super.removeChild(this.nodeOrShadowRoot(ze),be)}parentNode(ze){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ze)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Yn extends un{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){super(ze,Wt,Pn,wt),this.sharedStylesHost=be,this.removeStylesOnCompDestroy=He,this.styles=Yt?Zt(Yt,Te.styles):Te.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class ti extends Yn{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){const fe=He+"-"+Te.id;super(ze,be,Te,Wt,Pn,wt,Yt,fe),this.contentAttr=function xt(We){return"_ngcontent-%COMP%".replace(Re,We)}(fe),this.hostAttr=function St(We){return"_nghost-%COMP%".replace(Re,We)}(fe)}applyToHost(ze){this.applyStyles(),this.setAttribute(ze,this.hostAttr,"")}createElement(ze,be){const Te=super.createElement(ze,be);return super.setAttribute(Te,this.contentAttr,""),Te}}let gi=(()=>{class We extends te{constructor(be){super(be)}supports(be){return!0}addEventListener(be,Te,He){return be.addEventListener(Te,He,!1),()=>this.removeEventListener(be,Te,He)}removeEventListener(be,Te,He){return be.removeEventListener(Te,He)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const Rn=["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"},at={alt:We=>We.altKey,control:We=>We.ctrlKey,meta:We=>We.metaKey,shift:We=>We.shiftKey};let Be=(()=>{class We extends te{constructor(be){super(be)}supports(be){return null!=We.parseEventName(be)}addEventListener(be,Te,He){const Wt=We.parseEventName(Te),Pn=We.eventCallback(Wt.fullKey,He,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(be,Wt.domEventName,Pn))}static parseEventName(be){const Te=be.toLowerCase().split("."),He=Te.shift();if(0===Te.length||"keydown"!==He&&"keyup"!==He)return null;const Wt=We._normalizeKey(Te.pop());let Pn="",wt=Te.indexOf("code");if(wt>-1&&(Te.splice(wt,1),Pn="code."),Rn.forEach(fe=>{const Mt=Te.indexOf(fe);Mt>-1&&(Te.splice(Mt,1),Pn+=fe+".")}),Pn+=Wt,0!=Te.length||0===Wt.length)return null;const Yt={};return Yt.domEventName=He,Yt.fullKey=Pn,Yt}static matchEventFullKeyCode(be,Te){let He=dt[be.key]||be.key,Wt="";return Te.indexOf("code.")>-1&&(He=be.code,Wt="code."),!(null==He||!He)&&(He=He.toLowerCase()," "===He?He="space":"."===He&&(He="dot"),Rn.forEach(Pn=>{Pn!==He&&(0,at[Pn])(be)&&(Wt+=Pn+".")}),Wt+=He,Wt===Te)}static eventCallback(be,Te,He){return Wt=>{We.matchEventFullKeyCode(Wt,be)&&He.runGuarded(()=>Te(Wt))}}static _normalizeKey(be){return"esc"===be?"escape":be}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const Nt=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:l.bD},{provide:e.g9A,useValue:function he(){I.makeCurrent()},multi:!0},{provide:l.K0,useFactory:function rt(){return(0,e.RDi)(document),document},deps:[]}]),Qt=new e.OlP(""),nn=[{provide:e.rWj,useClass:class ee{addToWindow(ze){e.dqk.getAngularTestability=(Te,He=!0)=>{const Wt=ze.findTestabilityInTree(Te,He);if(null==Wt)throw new e.vHH(5103,!1);return Wt},e.dqk.getAllAngularTestabilities=()=>ze.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>ze.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(Te=>{const He=e.dqk.getAllAngularTestabilities();let Wt=He.length,Pn=!1;const wt=function(Yt){Pn=Pn||Yt,Wt--,0==Wt&&Te(Pn)};He.forEach(Yt=>{Yt.whenStable(wt)})})}findTestabilityInTree(ze,be,Te){return null==be?null:ze.getTestability(be)??(Te?(0,l.q)().isShadowRoot(be)?this.findTestabilityInTree(ze,be.host,!0):this.findTestabilityInTree(ze,be.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],Dn=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Ze(){return new e.qLn},deps:[]},{provide:ue,useClass:gi,multi:!0,deps:[l.K0,e.R0b,e.Lbi]},{provide:ue,useClass:Be,multi:!0,deps:[l.K0]},yt,ce,se,{provide:e.FYo,useExisting:yt},{provide:l.JF,useClass:re,deps:[]},[]];let Ot=(()=>{class We{constructor(be){}static withServerTransition(be){return{ngModule:We,providers:[{provide:e.AFp,useValue:be.appId}]}}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(Qt,12))};static#t=this.\u0275mod=e.oAB({type:We});static#n=this.\u0275inj=e.cJS({providers:[...Dn,...nn],imports:[l.ez,e.hGG]})}return We})(),vn=(()=>{class We{constructor(be){this._doc=be,this._dom=(0,l.q)()}addTag(be,Te=!1){return be?this._getOrCreateElement(be,Te):null}addTags(be,Te=!1){return be?be.reduce((He,Wt)=>(Wt&&He.push(this._getOrCreateElement(Wt,Te)),He),[]):[]}getTag(be){return be&&this._doc.querySelector(`meta[${be}]`)||null}getTags(be){if(!be)return[];const Te=this._doc.querySelectorAll(`meta[${be}]`);return Te?[].slice.call(Te):[]}updateTag(be,Te){if(!be)return null;Te=Te||this._parseSelector(be);const He=this.getTag(Te);return He?this._setMetaElementAttributes(be,He):this._getOrCreateElement(be,!0)}removeTag(be){this.removeTagElement(this.getTag(be))}removeTagElement(be){be&&this._dom.remove(be)}_getOrCreateElement(be,Te=!1){if(!Te){const Pn=this._parseSelector(be),wt=this.getTags(Pn).filter(Yt=>this._containsAttributes(be,Yt))[0];if(void 0!==wt)return wt}const He=this._dom.createElement("meta");return this._setMetaElementAttributes(be,He),this._doc.getElementsByTagName("head")[0].appendChild(He),He}_setMetaElementAttributes(be,Te){return Object.keys(be).forEach(He=>Te.setAttribute(this._getMetaKeyMap(He),be[He])),Te}_parseSelector(be){const Te=be.name?"name":"property";return`${Te}="${be[Te]}"`}_containsAttributes(be,Te){return Object.keys(be).every(He=>Te.getAttribute(this._getMetaKeyMap(He))===be[He])}_getMetaKeyMap(be){return ei[be]||be}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function rn(){return new vn((0,e.LFG)(l.K0))}(),He},providedIn:"root"})}return We})();const ei={httpEquiv:"http-equiv"};let Ve=(()=>{class We{constructor(be){this._doc=be}getTitle(){return this._doc.title}setTitle(be){this._doc.title=be||""}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function Wn(){return new Ve((0,e.LFG)(l.K0))}(),He},providedIn:"root"})}return We})();typeof window<"u"&&window;let ai=(()=>{class We{static#e=this.\u0275fac=function(Te){return new(Te||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new(Te||We):e.LFG(oi),He},providedIn:"root"})}return We})(),oi=(()=>{class We extends ai{constructor(be){super(),this._doc=be}sanitize(be,Te){if(null==Te)return null;switch(be){case e.q3G.NONE:return Te;case e.q3G.HTML:return(0,e.qzn)(Te,"HTML")?(0,e.z3N)(Te):(0,e.EiD)(this._doc,String(Te)).toString();case e.q3G.STYLE:return(0,e.qzn)(Te,"Style")?(0,e.z3N)(Te):Te;case e.q3G.SCRIPT:if((0,e.qzn)(Te,"Script"))return(0,e.z3N)(Te);throw new e.vHH(5200,!1);case e.q3G.URL:return(0,e.qzn)(Te,"URL")?(0,e.z3N)(Te):(0,e.mCW)(String(Te));case e.q3G.RESOURCE_URL:if((0,e.qzn)(Te,"ResourceURL"))return(0,e.z3N)(Te);throw new e.vHH(5201,!1);default:throw new e.vHH(5202,!1)}}bypassSecurityTrustHtml(be){return(0,e.JVY)(be)}bypassSecurityTrustStyle(be){return(0,e.L6k)(be)}bypassSecurityTrustScript(be){return(0,e.eBb)(be)}bypassSecurityTrustUrl(be){return(0,e.LAX)(be)}bypassSecurityTrustResourceUrl(be){return(0,e.pB0)(be)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function di(We){return new oi(We.get(l.K0))}(e.LFG(e.zs3)),He},providedIn:"root"})}return We})()},1662:(ft,Ie,C)=>{"use strict";C.d(Ie,{gz:()=>wr,m2:()=>yo,OD:()=>$n,F0:()=>zr,rH:()=>oa,Bz:()=>Jl,lC:()=>_r});var e=C(5879),l=C(5592),D=C(4674),S=C(9666),w=C(2096),n=C(5619),Z=C(2572),ee=C(6973),re=C(5211),ue=C(4911),se=C(8407),te=C(8504),oe=C(6232),ce=C(3168),_e=C(8645),Re=C(7394),mt=C(6814),Ge=C(7398),Lt=C(4664),je=C(8180),Tt=C(7921),xt=C(2181),St=C(1631),Zt=C(1374),yt=C(6328),un=C(9397),Jt=C(6306),tn=C(6424),wn=C(3572),Ln=C(9360),Yn=C(8251);function ti(W){return W<=0?()=>oe.E:(0,Ln.e)((ne,V)=>{let ie=[];ne.subscribe((0,Yn.x)(V,xe=>{ie.push(xe),W{for(const xe of ie)V.next(xe);V.complete()},void 0,()=>{ie=null}))})}var gi=C(3026),Rn=C(2737),at=C(975),Be=C(4716),Ee=C(6196),$e=C(9773),me=C(7537),tt=C(6593);const he="primary",Ze=Symbol("RouteTitle");class rt{constructor(ne){this.params=ne||{}}has(ne){return Object.prototype.hasOwnProperty.call(this.params,ne)}get(ne){if(this.has(ne)){const V=this.params[ne];return Array.isArray(V)?V[0]:V}return null}getAll(ne){if(this.has(ne)){const V=this.params[ne];return Array.isArray(V)?V:[V]}return[]}get keys(){return Object.keys(this.params)}}function bt(W){return new rt(W)}function Nt(W,ne,V){const ie=V.path.split("/");if(ie.length>W.length||"full"===V.pathMatch&&(ne.hasChildren()||ie.lengthie[qe]===xe)}return W===ne}function Ot(W){return W.length>0?W[W.length-1]:null}function rn(W){return function I(W){return!!W&&(W instanceof l.y||(0,D.m)(W.lift)&&(0,D.m)(W.subscribe))}(W)?W:(0,e.QGY)(W)?(0,S.D)(Promise.resolve(W)):(0,w.of)(W)}const vn={exact:function ct(W,ne,V){if(!lt(W.segments,ne.segments)||!ae(W.segments,ne.segments,V)||W.numberOfChildren!==ne.numberOfChildren)return!1;for(const ie in ne.children)if(!W.children[ie]||!ct(W.children[ie],ne.children[ie],V))return!1;return!0},subset:Ce},ei={exact:function Ve(W,ne){return nn(W,ne)},subset:function Ct(W,ne){return Object.keys(ne).length<=Object.keys(W).length&&Object.keys(ne).every(V=>Dn(W[V],ne[V]))},ignored:()=>!0};function Wn(W,ne,V){return vn[V.paths](W.root,ne.root,V.matrixParams)&&ei[V.queryParams](W.queryParams,ne.queryParams)&&!("exact"===V.fragment&&W.fragment!==ne.fragment)}function Ce(W,ne,V){return J(W,ne,ne.segments,V)}function J(W,ne,V,ie){if(W.segments.length>V.length){const xe=W.segments.slice(0,V.length);return!(!lt(xe,V)||ne.hasChildren()||!ae(xe,V,ie))}if(W.segments.length===V.length){if(!lt(W.segments,V)||!ae(W.segments,V,ie))return!1;for(const xe in ne.children)if(!W.children[xe]||!Ce(W.children[xe],ne.children[xe],ie))return!1;return!0}{const xe=V.slice(0,W.segments.length),qe=V.slice(W.segments.length);return!!(lt(W.segments,xe)&&ae(W.segments,xe,ie)&&W.children[he])&&J(W.children[he],ne,qe,ie)}}function ae(W,ne,V){return ne.every((ie,xe)=>ei[V](W[xe].parameters,ie.parameters))}class Oe{constructor(ne=new ot([],{}),V={},ie=null){this.root=ne,this.queryParams=V,this.fragment=ie}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}toString(){return gn.serialize(this)}}class ot{constructor(ne,V){this.segments=ne,this.children=V,this.parent=null,Object.values(V).forEach(ie=>ie.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return An(this)}}class Se{constructor(ne,V){this.path=ne,this.parameters=V}get parameterMap(){return this._parameterMap||(this._parameterMap=bt(this.parameters)),this._parameterMap}toString(){return G(this)}}function lt(W,ne){return W.length===ne.length&&W.every((V,ie)=>V.path===ne[ie].path)}let Ut=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return new fn},providedIn:"root"})}return W})();class fn{parse(ne){const V=new Pn(ne);return new Oe(V.parseRootSegment(),V.parseQueryParams(),V.parseFragment())}serialize(ne){const V=`/${jn(ne.root,!0)}`,ie=function ve(W){const ne=Object.keys(W).map(V=>{const ie=W[V];return Array.isArray(ie)?ie.map(xe=>`${di(V)}=${di(xe)}`).join("&"):`${di(V)}=${di(ie)}`}).filter(V=>!!V);return ne.length?`?${ne.join("&")}`:""}(ne.queryParams);return`${V}${ie}${"string"==typeof ne.fragment?`#${function oi(W){return encodeURI(W)}(ne.fragment)}`:""}`}}const gn=new fn;function An(W){return W.segments.map(ne=>G(ne)).join("/")}function jn(W,ne){if(!W.hasChildren())return An(W);if(ne){const V=W.children[he]?jn(W.children[he],!1):"",ie=[];return Object.entries(W.children).forEach(([xe,qe])=>{xe!==he&&ie.push(`${xe}:${jn(qe,!1)}`)}),ie.length>0?`${V}(${ie.join("//")})`:V}{const V=function Bt(W,ne){let V=[];return Object.entries(W.children).forEach(([ie,xe])=>{ie===he&&(V=V.concat(ne(xe,ie)))}),Object.entries(W.children).forEach(([ie,xe])=>{ie!==he&&(V=V.concat(ne(xe,ie)))}),V}(W,(ie,xe)=>xe===he?[jn(W.children[he],!1)]:[`${xe}:${jn(ie,!1)}`]);return 1===Object.keys(W.children).length&&null!=W.children[he]?`${An(W)}/${V[0]}`:`${An(W)}/(${V.join("//")})`}}function ai(W){return encodeURIComponent(W).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function di(W){return ai(W).replace(/%3B/gi,";")}function Jn(W){return ai(W).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qt(W){return decodeURIComponent(W)}function _t(W){return qt(W.replace(/\+/g,"%20"))}function G(W){return`${Jn(W.path)}${function U(W){return Object.keys(W).map(ne=>`;${Jn(ne)}=${Jn(W[ne])}`).join("")}(W.parameters)}`}const Pe=/^[^\/()?;#]+/;function ut(W){const ne=W.match(Pe);return ne?ne[0]:""}const We=/^[^\/()?;=#]+/,be=/^[^=?&#]+/,He=/^[^&#]+/;class Pn{constructor(ne){this.url=ne,this.remaining=ne}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ot([],{}):new ot([],this.parseChildren())}parseQueryParams(){const ne={};if(this.consumeOptional("?"))do{this.parseQueryParam(ne)}while(this.consumeOptional("&"));return ne}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ne=[];for(this.peekStartsWith("(")||ne.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ne.push(this.parseSegment());let V={};this.peekStartsWith("/(")&&(this.capture("/"),V=this.parseParens(!0));let ie={};return this.peekStartsWith("(")&&(ie=this.parseParens(!1)),(ne.length>0||Object.keys(V).length>0)&&(ie[he]=new ot(ne,V)),ie}parseSegment(){const ne=ut(this.remaining);if(""===ne&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(ne),new Se(qt(ne),this.parseMatrixParams())}parseMatrixParams(){const ne={};for(;this.consumeOptional(";");)this.parseParam(ne);return ne}parseParam(ne){const V=function ze(W){const ne=W.match(We);return ne?ne[0]:""}(this.remaining);if(!V)return;this.capture(V);let ie="";if(this.consumeOptional("=")){const xe=ut(this.remaining);xe&&(ie=xe,this.capture(ie))}ne[qt(V)]=qt(ie)}parseQueryParam(ne){const V=function Te(W){const ne=W.match(be);return ne?ne[0]:""}(this.remaining);if(!V)return;this.capture(V);let ie="";if(this.consumeOptional("=")){const Pt=function Wt(W){const ne=W.match(He);return ne?ne[0]:""}(this.remaining);Pt&&(ie=Pt,this.capture(ie))}const xe=_t(V),qe=_t(ie);if(ne.hasOwnProperty(xe)){let Pt=ne[xe];Array.isArray(Pt)||(Pt=[Pt],ne[xe]=Pt),Pt.push(qe)}else ne[xe]=qe}parseParens(ne){const V={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ie=ut(this.remaining),xe=this.remaining[ie.length];if("/"!==xe&&")"!==xe&&";"!==xe)throw new e.vHH(4010,!1);let qe;ie.indexOf(":")>-1?(qe=ie.slice(0,ie.indexOf(":")),this.capture(qe),this.capture(":")):ne&&(qe=he);const Pt=this.parseChildren();V[qe]=1===Object.keys(Pt).length?Pt[he]:new ot([],Pt),this.consumeOptional("//")}return V}peekStartsWith(ne){return this.remaining.startsWith(ne)}consumeOptional(ne){return!!this.peekStartsWith(ne)&&(this.remaining=this.remaining.substring(ne.length),!0)}capture(ne){if(!this.consumeOptional(ne))throw new e.vHH(4011,!1)}}function wt(W){return W.segments.length>0?new ot([],{[he]:W}):W}function Yt(W){const ne={};for(const ie of Object.keys(W.children)){const qe=Yt(W.children[ie]);if(ie===he&&0===qe.segments.length&&qe.hasChildren())for(const[Pt,mn]of Object.entries(qe.children))ne[Pt]=mn;else(qe.segments.length>0||qe.hasChildren())&&(ne[ie]=qe)}return function fe(W){if(1===W.numberOfChildren&&W.children[he]){const ne=W.children[he];return new ot(W.segments.concat(ne.segments),ne.children)}return W}(new ot(W.segments,ne))}function Mt(W){return W instanceof Oe}function ht(W){let ne;const xe=wt(function V(qe){const Pt={};for(const hn of qe.children){const on=V(hn);Pt[hn.outlet]=on}const mn=new ot(qe.url,Pt);return qe===W&&(ne=mn),mn}(W.root));return ne??xe}function st(W,ne,V,ie){let xe=W;for(;xe.parent;)xe=xe.parent;if(0===ne.length)return _n(xe,xe,xe,V,ie);const qe=function ni(W){if("string"==typeof W[0]&&1===W.length&&"/"===W[0])return new On(!0,0,W);let ne=0,V=!1;const ie=W.reduce((xe,qe,Pt)=>{if("object"==typeof qe&&null!=qe){if(qe.outlets){const mn={};return Object.entries(qe.outlets).forEach(([hn,on])=>{mn[hn]="string"==typeof on?on.split("/"):on}),[...xe,{outlets:mn}]}if(qe.segmentPath)return[...xe,qe.segmentPath]}return"string"!=typeof qe?[...xe,qe]:0===Pt?(qe.split("/").forEach((mn,hn)=>{0==hn&&"."===mn||(0==hn&&""===mn?V=!0:".."===mn?ne++:""!=mn&&xe.push(mn))}),xe):[...xe,qe]},[]);return new On(V,ne,ie)}(ne);if(qe.toRoot())return _n(xe,xe,new ot([],{}),V,ie);const Pt=function fr(W,ne,V){if(W.isAbsolute)return new Vn(ne,!0,0);if(!V)return new Vn(ne,!1,NaN);if(null===V.parent)return new Vn(V,!0,0);const ie=It(W.commands[0])?0:1;return function ki(W,ne,V){let ie=W,xe=ne,qe=V;for(;qe>xe;){if(qe-=xe,ie=ie.parent,!ie)throw new e.vHH(4005,!1);xe=ie.segments.length}return new Vn(ie,!1,xe-qe)}(V,V.segments.length-1+ie,W.numberOfDoubleDots)}(qe,xe,W),mn=Pt.processChildren?Bi(Pt.segmentGroup,Pt.index,qe.commands):vr(Pt.segmentGroup,Pt.index,qe.commands);return _n(xe,Pt.segmentGroup,mn,V,ie)}function It(W){return"object"==typeof W&&null!=W&&!W.outlets&&!W.segmentPath}function cn(W){return"object"==typeof W&&null!=W&&W.outlets}function _n(W,ne,V,ie,xe){let Pt,qe={};ie&&Object.entries(ie).forEach(([hn,on])=>{qe[hn]=Array.isArray(on)?on.map(ji=>`${ji}`):`${on}`}),Pt=W===ne?V:En(W,ne,V);const mn=wt(Yt(Pt));return new Oe(mn,qe,xe)}function En(W,ne,V){const ie={};return Object.entries(W.children).forEach(([xe,qe])=>{ie[xe]=qe===ne?V:En(qe,ne,V)}),new ot(W.segments,ie)}class On{constructor(ne,V,ie){if(this.isAbsolute=ne,this.numberOfDoubleDots=V,this.commands=ie,ne&&ie.length>0&&It(ie[0]))throw new e.vHH(4003,!1);const xe=ie.find(cn);if(xe&&xe!==Ot(ie))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Vn{constructor(ne,V,ie){this.segmentGroup=ne,this.processChildren=V,this.index=ie}}function vr(W,ne,V){if(W||(W=new ot([],{})),0===W.segments.length&&W.hasChildren())return Bi(W,ne,V);const ie=function co(W,ne,V){let ie=0,xe=ne;const qe={match:!1,pathIndex:0,commandIndex:0};for(;xe=V.length)return qe;const Pt=W.segments[xe],mn=V[ie];if(cn(mn))break;const hn=`${mn}`,on=ie0&&void 0===hn)break;if(hn&&on&&"object"==typeof on&&void 0===on.outlets){if(!bo(hn,on,Pt))return qe;ie+=2}else{if(!bo(hn,{},Pt))return qe;ie++}xe++}return{match:!0,pathIndex:xe,commandIndex:ie}}(W,ne,V),xe=V.slice(ie.commandIndex);if(ie.match&&ie.pathIndexqe!==he)&&W.children[he]&&1===W.numberOfChildren&&0===W.children[he].segments.length){const qe=Bi(W.children[he],ne,V);return new ot(W.segments,qe.children)}return Object.entries(ie).forEach(([qe,Pt])=>{"string"==typeof Pt&&(Pt=[Pt]),null!==Pt&&(xe[qe]=vr(W.children[qe],ne,Pt))}),Object.entries(W.children).forEach(([qe,Pt])=>{void 0===ie[qe]&&(xe[qe]=Pt)}),new ot(W.segments,xe)}}function Ji(W,ne,V){const ie=W.segments.slice(0,ne);let xe=0;for(;xe{"string"==typeof ie&&(ie=[ie]),null!==ie&&(ne[V]=Ji(new ot([],{}),0,ie))}),ne}function _i(W){const ne={};return Object.entries(W).forEach(([V,ie])=>ne[V]=`${ie}`),ne}function bo(W,ne,V){return W==V.path&&nn(ne,V.parameters)}const pr="imperative";class br{constructor(ne,V){this.id=ne,this.url=V}}class $n extends br{constructor(ne,V,ie="imperative",xe=null){super(ne,V),this.type=0,this.navigationTrigger=ie,this.restoredState=xe}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yo extends br{constructor(ne,V,ie){super(ne,V),this.urlAfterRedirects=ie,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Fr extends br{constructor(ne,V,ie,xe){super(ne,V),this.reason=ie,this.code=xe,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class uo extends br{constructor(ne,V,ie,xe){super(ne,V),this.reason=ie,this.code=xe,this.type=16}}class ho extends br{constructor(ne,V,ie,xe){super(ne,V),this.error=ie,this.target=xe,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class to extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yr extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gs extends br{constructor(ne,V,ie,xe,qe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.shouldActivate=qe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ba extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xl extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class So{constructor(ne){this.route=ne,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ws{constructor(ne){this.route=ne,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ds{constructor(ne){this.snapshot=ne,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $s{constructor(ne){this.snapshot=ne,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Uo{constructor(ne){this.snapshot=ne,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jr{constructor(ne){this.snapshot=ne,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ga{constructor(ne,V,ie){this.routerEvent=ne,this.position=V,this.anchor=ie,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class kr{}class oo{constructor(ne){this.url=ne}}class Sa{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Vo,this.attachRef=null}}let Vo=(()=>{class W{constructor(){this.contexts=new Map}onChildOutletCreated(V,ie){const xe=this.getOrCreateContext(V);xe.outlet=ie,this.contexts.set(V,xe)}onChildOutletDestroyed(V){const ie=this.getContext(V);ie&&(ie.outlet=null,ie.attachRef=null)}onOutletDeactivated(){const V=this.contexts;return this.contexts=new Map,V}onOutletReAttached(V){this.contexts=V}getOrCreateContext(V){let ie=this.getContext(V);return ie||(ie=new Sa,this.contexts.set(V,ie)),ie}getContext(V){return this.contexts.get(V)||null}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();class oc{constructor(ne){this._root=ne}get root(){return this._root.value}parent(ne){const V=this.pathFromRoot(ne);return V.length>1?V[V.length-2]:null}children(ne){const V=Ks(ne,this._root);return V?V.children.map(ie=>ie.value):[]}firstChild(ne){const V=Ks(ne,this._root);return V&&V.children.length>0?V.children[0].value:null}siblings(ne){const V=Aa(ne,this._root);return V.length<2?[]:V[V.length-2].children.map(xe=>xe.value).filter(xe=>xe!==ne)}pathFromRoot(ne){return Aa(ne,this._root).map(V=>V.value)}}function Ks(W,ne){if(W===ne.value)return ne;for(const V of ne.children){const ie=Ks(W,V);if(ie)return ie}return null}function Aa(W,ne){if(W===ne.value)return[ne];for(const V of ne.children){const ie=Aa(W,V);if(ie.length)return ie.unshift(ne),ie}return[]}class qi{constructor(ne,V){this.value=ne,this.children=V}toString(){return`TreeNode(${this.value})`}}function Li(W){const ne={};return W&&W.children.forEach(V=>ne[V.value.outlet]=V),ne}class Yr extends oc{constructor(ne,V){super(ne),this.snapshot=V,ll(this,ne)}toString(){return this.snapshot.toString()}}function dr(W,ne){const V=function Ha(W,ne){const Pt=new Es([],{},{},"",{},he,ne,null,{});return new Js("",new qi(Pt,[]))}(0,ne),ie=new n.X([new Se("",{})]),xe=new n.X({}),qe=new n.X({}),Pt=new n.X({}),mn=new n.X(""),hn=new wr(ie,xe,Pt,mn,qe,he,ne,V.root);return hn.snapshot=V.root,new Yr(new qi(hn,[]),V)}class wr{constructor(ne,V,ie,xe,qe,Pt,mn,hn){this.urlSubject=ne,this.paramsSubject=V,this.queryParamsSubject=ie,this.fragmentSubject=xe,this.dataSubject=qe,this.outlet=Pt,this.component=mn,this._futureSnapshot=hn,this.title=this.dataSubject?.pipe((0,Ge.U)(on=>on[Ze]))??(0,w.of)(void 0),this.url=ne,this.params=V,this.queryParams=ie,this.fragment=xe,this.data=qe}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,Ge.U)(ne=>bt(ne)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ge.U)(ne=>bt(ne)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function al(W,ne="emptyOnly"){const V=W.pathFromRoot;let ie=0;if("always"!==ne)for(ie=V.length-1;ie>=1;){const xe=V[ie],qe=V[ie-1];if(xe.routeConfig&&""===xe.routeConfig.path)ie--;else{if(qe.component)break;ie--}}return function Vr(W){return W.reduce((ne,V)=>({params:{...ne.params,...V.params},data:{...ne.data,...V.data},resolve:{...V.data,...ne.resolve,...V.routeConfig?.data,...V._resolvedData}}),{params:{},data:{},resolve:{}})}(V.slice(ie))}class Es{get title(){return this.data?.[Ze]}constructor(ne,V,ie,xe,qe,Pt,mn,hn,on){this.url=ne,this.params=V,this.queryParams=ie,this.fragment=xe,this.data=qe,this.outlet=Pt,this.component=mn,this.routeConfig=hn,this._resolve=on}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=bt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(ie=>ie.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Js extends oc{constructor(ne,V){super(V),this.url=ne,ll(this,V)}toString(){return er(this._root)}}function ll(W,ne){ne.value._routerState=W,ne.children.forEach(V=>ll(W,V))}function er(W){const ne=W.children.length>0?` { ${W.children.map(er).join(", ")} } `:"";return`${W.value}${ne}`}function qn(W){if(W.snapshot){const ne=W.snapshot,V=W._futureSnapshot;W.snapshot=V,nn(ne.queryParams,V.queryParams)||W.queryParamsSubject.next(V.queryParams),ne.fragment!==V.fragment&&W.fragmentSubject.next(V.fragment),nn(ne.params,V.params)||W.paramsSubject.next(V.params),function Qt(W,ne){if(W.length!==ne.length)return!1;for(let V=0;Vnn(V.parameters,ne[ie].parameters))}(W.url,ne.url);return V&&!(!W.parent!=!ne.parent)&&(!W.parent||bi(W.parent,ne.parent))}let _r=(()=>{class W{constructor(){this.activated=null,this._activatedRoute=null,this.name=he,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.parentContexts=(0,e.f3M)(Vo),this.location=(0,e.f3M)(e.s_b),this.changeDetector=(0,e.f3M)(e.sBO),this.environmentInjector=(0,e.f3M)(e.lqb),this.inputBinder=(0,e.f3M)(jo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(V){if(V.name){const{firstChange:ie,previousValue:xe}=V.name;if(ie)return;this.isTrackedInParentContexts(xe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(xe)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(V){return this.parentContexts.getContext(V)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const V=this.parentContexts.getContext(this.name);V?.route&&(V.attachRef?this.attach(V.attachRef,V.route):this.activateWith(V.route,V.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,!1);this.location.detach();const V=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(V.instance),V}attach(V,ie){this.activated=V,this._activatedRoute=ie,this.location.insert(V.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(V.instance)}deactivate(){if(this.activated){const V=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(V)}}activateWith(V,ie){if(this.isActivated)throw new e.vHH(4013,!1);this._activatedRoute=V;const xe=this.location,Pt=V.snapshot.component,mn=this.parentContexts.getOrCreateContext(this.name).children,hn=new wo(V,mn,xe.injector);this.activated=xe.createComponent(Pt,{index:xe.length,injector:hn,environmentInjector:ie??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275dir=e.lG2({type:W,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.TTD]})}return W})();class wo{constructor(ne,V,ie){this.route=ne,this.childContexts=V,this.parent=ie}get(ne,V){return ne===wr?this.route:ne===Vo?this.childContexts:this.parent.get(ne,V)}}const jo=new e.OlP("");let no=(()=>{class W{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(V){this.unsubscribeFromRouteData(V),this.subscribeToRouteData(V)}unsubscribeFromRouteData(V){this.outletDataSubscriptions.get(V)?.unsubscribe(),this.outletDataSubscriptions.delete(V)}subscribeToRouteData(V){const{activatedRoute:ie}=V,xe=(0,Z.a)([ie.queryParams,ie.params,ie.data]).pipe((0,Lt.w)(([qe,Pt,mn],hn)=>(mn={...qe,...Pt,...mn},0===hn?(0,w.of)(mn):Promise.resolve(mn)))).subscribe(qe=>{if(!V.isActivated||!V.activatedComponentRef||V.activatedRoute!==ie||null===ie.component)return void this.unsubscribeFromRouteData(V);const Pt=(0,e.qFp)(ie.component);if(Pt)for(const{templateName:mn}of Pt.inputs)V.activatedComponentRef.setInput(mn,qe[mn]);else this.unsubscribeFromRouteData(V)});this.outletDataSubscriptions.set(V,xe)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac})}return W})();function nr(W,ne,V){if(V&&W.shouldReuseRoute(ne.value,V.value.snapshot)){const ie=V.value;ie._futureSnapshot=ne.value;const xe=function ps(W,ne,V){return ne.children.map(ie=>{for(const xe of V.children)if(W.shouldReuseRoute(ie.value,xe.value.snapshot))return nr(W,ie,xe);return nr(W,ie)})}(W,ne,V);return new qi(ie,xe)}{if(W.shouldAttach(ne.value)){const qe=W.retrieve(ne.value);if(null!==qe){const Pt=qe.route;return Pt.value._futureSnapshot=ne.value,Pt.children=ne.children.map(mn=>nr(W,mn)),Pt}}const ie=function va(W){return new wr(new n.X(W.url),new n.X(W.params),new n.X(W.queryParams),new n.X(W.fragment),new n.X(W.data),W.outlet,W.component,W)}(ne.value),xe=ne.children.map(qe=>nr(W,qe));return new qi(ie,xe)}}const Ti="ngNavigationCancelingError";function qs(W,ne){const{redirectTo:V,navigationBehaviorOptions:ie}=Mt(ne)?{redirectTo:ne,navigationBehaviorOptions:void 0}:ne,xe=ba(!1,0,ne);return xe.url=V,xe.navigationBehaviorOptions=ie,xe}function ba(W,ne,V){const ie=new Error("NavigationCancelingError: "+(W||""));return ie[Ti]=!0,ie.cancellationCode=ne,V&&(ie.url=V),ie}function wi(W){return W&&W[Ti]}let Oo=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275cmp=e.Xpm({type:W,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:1,vars:0,template:function(ie,xe){1&ie&&e._UZ(0,"router-outlet")},dependencies:[_r],encapsulation:2})}return W})();function Jo(W){const ne=W.children&&W.children.map(Jo),V=ne?{...W,children:ne}:{...W};return!V.component&&!V.loadComponent&&(ne||V.loadChildren)&&V.outlet&&V.outlet!==he&&(V.component=Oo),V}function Io(W){return W.outlet||he}function fo(W){if(!W)return null;if(W.routeConfig?._injector)return W.routeConfig._injector;for(let ne=W.parent;ne;ne=ne.parent){const V=ne.routeConfig;if(V?._loadedInjector)return V._loadedInjector;if(V?._injector)return V._injector}return null}class Co{constructor(ne,V,ie,xe,qe){this.routeReuseStrategy=ne,this.futureState=V,this.currState=ie,this.forwardEvent=xe,this.inputBindingEnabled=qe}activate(ne){const V=this.futureState._root,ie=this.currState?this.currState._root:null;this.deactivateChildRoutes(V,ie,ne),qn(this.futureState.root),this.activateChildRoutes(V,ie,ne)}deactivateChildRoutes(ne,V,ie){const xe=Li(V);ne.children.forEach(qe=>{const Pt=qe.value.outlet;this.deactivateRoutes(qe,xe[Pt],ie),delete xe[Pt]}),Object.values(xe).forEach(qe=>{this.deactivateRouteAndItsChildren(qe,ie)})}deactivateRoutes(ne,V,ie){const xe=ne.value,qe=V?V.value:null;if(xe===qe)if(xe.component){const Pt=ie.getContext(xe.outlet);Pt&&this.deactivateChildRoutes(ne,V,Pt.children)}else this.deactivateChildRoutes(ne,V,ie);else qe&&this.deactivateRouteAndItsChildren(V,ie)}deactivateRouteAndItsChildren(ne,V){ne.value.component&&this.routeReuseStrategy.shouldDetach(ne.value.snapshot)?this.detachAndStoreRouteSubtree(ne,V):this.deactivateRouteAndOutlet(ne,V)}detachAndStoreRouteSubtree(ne,V){const ie=V.getContext(ne.value.outlet),xe=ie&&ne.value.component?ie.children:V,qe=Li(ne);for(const Pt of Object.keys(qe))this.deactivateRouteAndItsChildren(qe[Pt],xe);if(ie&&ie.outlet){const Pt=ie.outlet.detach(),mn=ie.children.onOutletDeactivated();this.routeReuseStrategy.store(ne.value.snapshot,{componentRef:Pt,route:ne,contexts:mn})}}deactivateRouteAndOutlet(ne,V){const ie=V.getContext(ne.value.outlet),xe=ie&&ne.value.component?ie.children:V,qe=Li(ne);for(const Pt of Object.keys(qe))this.deactivateRouteAndItsChildren(qe[Pt],xe);ie&&(ie.outlet&&(ie.outlet.deactivate(),ie.children.onOutletDeactivated()),ie.attachRef=null,ie.route=null)}activateChildRoutes(ne,V,ie){const xe=Li(V);ne.children.forEach(qe=>{this.activateRoutes(qe,xe[qe.value.outlet],ie),this.forwardEvent(new Jr(qe.value.snapshot))}),ne.children.length&&this.forwardEvent(new $s(ne.value.snapshot))}activateRoutes(ne,V,ie){const xe=ne.value,qe=V?V.value:null;if(qn(xe),xe===qe)if(xe.component){const Pt=ie.getOrCreateContext(xe.outlet);this.activateChildRoutes(ne,V,Pt.children)}else this.activateChildRoutes(ne,V,ie);else if(xe.component){const Pt=ie.getOrCreateContext(xe.outlet);if(this.routeReuseStrategy.shouldAttach(xe.snapshot)){const mn=this.routeReuseStrategy.retrieve(xe.snapshot);this.routeReuseStrategy.store(xe.snapshot,null),Pt.children.onOutletReAttached(mn.contexts),Pt.attachRef=mn.componentRef,Pt.route=mn.route.value,Pt.outlet&&Pt.outlet.attach(mn.componentRef,mn.route.value),qn(mn.route.value),this.activateChildRoutes(ne,null,Pt.children)}else{const mn=fo(xe.snapshot);Pt.attachRef=null,Pt.route=xe,Pt.injector=mn,Pt.outlet&&Pt.outlet.activateWith(xe,Pt.injector),this.activateChildRoutes(ne,null,Pt.children)}}else this.activateChildRoutes(ne,null,ie)}}class Br{constructor(ne){this.path=ne,this.route=this.path[this.path.length-1]}}class ea{constructor(ne,V){this.component=ne,this.route=V}}function po(W,ne,V){const ie=W._root;return Ss(ie,ne?ne._root:null,V,[ie.value])}function qo(W,ne){const V=Symbol(),ie=ne.get(W,V);return ie===V?"function"!=typeof W||(0,e.Z0I)(W)?ne.get(W):W:ie}function Ss(W,ne,V,ie,xe={canDeactivateChecks:[],canActivateChecks:[]}){const qe=Li(ne);return W.children.forEach(Pt=>{(function ya(W,ne,V,ie,xe={canDeactivateChecks:[],canActivateChecks:[]}){const qe=W.value,Pt=ne?ne.value:null,mn=V?V.getContext(W.value.outlet):null;if(Pt&&qe.routeConfig===Pt.routeConfig){const hn=function sr(W,ne,V){if("function"==typeof V)return V(W,ne);switch(V){case"pathParamsChange":return!lt(W.url,ne.url);case"pathParamsOrQueryParamsChange":return!lt(W.url,ne.url)||!nn(W.queryParams,ne.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bi(W,ne)||!nn(W.queryParams,ne.queryParams);default:return!bi(W,ne)}}(Pt,qe,qe.routeConfig.runGuardsAndResolvers);hn?xe.canActivateChecks.push(new Br(ie)):(qe.data=Pt.data,qe._resolvedData=Pt._resolvedData),Ss(W,ne,qe.component?mn?mn.children:null:V,ie,xe),hn&&mn&&mn.outlet&&mn.outlet.isActivated&&xe.canDeactivateChecks.push(new ea(mn.outlet.component,Pt))}else Pt&&Oa(ne,mn,xe),xe.canActivateChecks.push(new Br(ie)),Ss(W,null,qe.component?mn?mn.children:null:V,ie,xe)})(Pt,qe[Pt.value.outlet],V,ie.concat([Pt.value]),xe),delete qe[Pt.value.outlet]}),Object.entries(qe).forEach(([Pt,mn])=>Oa(mn,V.getContext(Pt),xe)),xe}function Oa(W,ne,V){const ie=Li(W),xe=W.value;Object.entries(ie).forEach(([qe,Pt])=>{Oa(Pt,xe.component?ne?ne.children.getContext(qe):null:ne,V)}),V.canDeactivateChecks.push(new ea(xe.component&&ne&&ne.outlet&&ne.outlet.isActivated?ne.outlet.component:null,xe))}function Ua(W){return"function"==typeof W}function Qn(W){return W instanceof ee.K||"EmptyError"===W?.name}const Ni=Symbol("INITIAL_VALUE");function Zo(){return(0,Lt.w)(W=>(0,Z.a)(W.map(ne=>ne.pipe((0,je.q)(1),(0,Tt.O)(Ni)))).pipe((0,Ge.U)(ne=>{for(const V of ne)if(!0!==V){if(V===Ni)return Ni;if(!1===V||V instanceof Oe)return V}return!0}),(0,xt.h)(ne=>ne!==Ni),(0,je.q)(1)))}function wa(W){return(0,se.z)((0,un.b)(ne=>{if(Mt(ne))throw qs(0,ne)}),(0,Ge.U)(ne=>!0===ne))}class Pr{constructor(ne){this.segmentGroup=ne||null}}class Ms{constructor(ne){this.urlTree=ne}}function As(W){return(0,te._)(new Pr(W))}function qr(W){return(0,te._)(new Ms(W))}class Va{constructor(ne,V){this.urlSerializer=ne,this.urlTree=V}noMatchError(ne){return new e.vHH(4002,!1)}lineralizeSegments(ne,V){let ie=[],xe=V.root;for(;;){if(ie=ie.concat(xe.segments),0===xe.numberOfChildren)return(0,w.of)(ie);if(xe.numberOfChildren>1||!xe.children[he])return(0,te._)(new e.vHH(4e3,!1));xe=xe.children[he]}}applyRedirectCommands(ne,V,ie){return this.applyRedirectCreateUrlTree(V,this.urlSerializer.parse(V),ne,ie)}applyRedirectCreateUrlTree(ne,V,ie,xe){const qe=this.createSegmentGroup(ne,V.root,ie,xe);return new Oe(qe,this.createQueryParams(V.queryParams,this.urlTree.queryParams),V.fragment)}createQueryParams(ne,V){const ie={};return Object.entries(ne).forEach(([xe,qe])=>{if("string"==typeof qe&&qe.startsWith(":")){const mn=qe.substring(1);ie[xe]=V[mn]}else ie[xe]=qe}),ie}createSegmentGroup(ne,V,ie,xe){const qe=this.createSegments(ne,V.segments,ie,xe);let Pt={};return Object.entries(V.children).forEach(([mn,hn])=>{Pt[mn]=this.createSegmentGroup(ne,hn,ie,xe)}),new ot(qe,Pt)}createSegments(ne,V,ie,xe){return V.map(qe=>qe.path.startsWith(":")?this.findPosParam(ne,qe,xe):this.findOrReturn(qe,ie))}findPosParam(ne,V,ie){const xe=ie[V.path.substring(1)];if(!xe)throw new e.vHH(4001,!1);return xe}findOrReturn(ne,V){let ie=0;for(const xe of V){if(xe.path===ne.path)return V.splice(ie),xe;ie++}return ne}}const Sl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gl(W,ne,V,ie,xe){const qe=Hs(W,ne,V);return qe.matched?(ie=function Ko(W,ne){return W.providers&&!W._injector&&(W._injector=(0,e.MMx)(W.providers,ne,`Route: ${W.path}`)),W._injector??ne}(ne,ie),function Xo(W,ne,V,ie){const xe=ne.canMatch;if(!xe||0===xe.length)return(0,w.of)(!0);const qe=xe.map(Pt=>{const mn=qo(Pt,W);return rn(function le(W){return W&&Ua(W.canMatch)}(mn)?mn.canMatch(ne,V):W.runInContext(()=>mn(ne,V)))});return(0,w.of)(qe).pipe(Zo(),wa())}(ie,ne,V).pipe((0,Ge.U)(Pt=>!0===Pt?qe:{...Sl}))):(0,w.of)(qe)}function Hs(W,ne,V){if(""===ne.path)return"full"===ne.pathMatch&&(W.hasChildren()||V.length>0)?{...Sl}:{matched:!0,consumedSegments:[],remainingSegments:V,parameters:{},positionalParamSegments:{}};const xe=(ne.matcher||Nt)(V,W,ne);if(!xe)return{...Sl};const qe={};Object.entries(xe.posParams??{}).forEach(([mn,hn])=>{qe[mn]=hn.path});const Pt=xe.consumed.length>0?{...qe,...xe.consumed[xe.consumed.length-1].parameters}:qe;return{matched:!0,consumedSegments:xe.consumed,remainingSegments:V.slice(xe.consumed.length),parameters:Pt,positionalParamSegments:xe.posParams??{}}}function ja(W,ne,V,ie){return V.length>0&&function Wl(W,ne,V){return V.some(ie=>ns(W,ne,ie)&&Io(ie)!==he)}(W,V,ie)?{segmentGroup:new ot(ne,ts(ie,new ot(V,W.children))),slicedSegments:[]}:0===V.length&&function gs(W,ne,V){return V.some(ie=>ns(W,ne,ie))}(W,V,ie)?{segmentGroup:new ot(W.segments,es(W,0,V,ie,W.children)),slicedSegments:V}:{segmentGroup:new ot(W.segments,W.children),slicedSegments:V}}function es(W,ne,V,ie,xe){const qe={};for(const Pt of ie)if(ns(W,V,Pt)&&!xe[Io(Pt)]){const mn=new ot([],{});qe[Io(Pt)]=mn}return{...xe,...qe}}function ts(W,ne){const V={};V[he]=ne;for(const ie of W)if(""===ie.path&&Io(ie)!==he){const xe=new ot([],{});V[Io(ie)]=xe}return V}function ns(W,ne,V){return(!(W.hasChildren()||ne.length>0)||"full"!==V.pathMatch)&&""===V.path}class Za{constructor(ne,V,ie,xe,qe,Pt,mn){this.injector=ne,this.configLoader=V,this.rootComponentType=ie,this.config=xe,this.urlTree=qe,this.paramsInheritanceStrategy=Pt,this.urlSerializer=mn,this.allowRedirects=!0,this.applyRedirects=new Va(this.urlSerializer,this.urlTree)}noMatchError(ne){return new e.vHH(4002,!1)}recognize(){const ne=ja(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ne,he).pipe((0,Jt.K)(V=>{if(V instanceof Ms)return this.allowRedirects=!1,this.urlTree=V.urlTree,this.match(V.urlTree);throw V instanceof Pr?this.noMatchError(V):V}),(0,Ge.U)(V=>{const ie=new Es([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},he,this.rootComponentType,null,{}),xe=new qi(ie,V),qe=new Js("",xe),Pt=function Vt(W,ne,V=null,ie=null){return st(ht(W),ne,V,ie)}(ie,[],this.urlTree.queryParams,this.urlTree.fragment);return Pt.queryParams=this.urlTree.queryParams,qe.url=this.urlSerializer.serialize(Pt),this.inheritParamsAndData(qe._root),{state:qe,tree:Pt}}))}match(ne){return this.processSegmentGroup(this.injector,this.config,ne.root,he).pipe((0,Jt.K)(ie=>{throw ie instanceof Pr?this.noMatchError(ie):ie}))}inheritParamsAndData(ne){const V=ne.value,ie=al(V,this.paramsInheritanceStrategy);V.params=Object.freeze(ie.params),V.data=Object.freeze(ie.data),ne.children.forEach(xe=>this.inheritParamsAndData(xe))}processSegmentGroup(ne,V,ie,xe){return 0===ie.segments.length&&ie.hasChildren()?this.processChildren(ne,V,ie):this.processSegment(ne,V,ie,ie.segments,xe,!0)}processChildren(ne,V,ie){const xe=[];for(const qe of Object.keys(ie.children))"primary"===qe?xe.unshift(qe):xe.push(qe);return(0,S.D)(xe).pipe((0,yt.b)(qe=>{const Pt=ie.children[qe],mn=function Ys(W,ne){const V=W.filter(ie=>Io(ie)===ne);return V.push(...W.filter(ie=>Io(ie)!==ne)),V}(V,qe);return this.processSegmentGroup(ne,mn,Pt,qe)}),(0,tn.R)((qe,Pt)=>(qe.push(...Pt),qe)),(0,wn.d)(null),function dt(W,ne){const V=arguments.length>=2;return ie=>ie.pipe(W?(0,xt.h)((xe,qe)=>W(xe,qe,ie)):Rn.y,ti(1),V?(0,wn.d)(ne):(0,gi.T)(()=>new ee.K))}(),(0,St.z)(qe=>{if(null===qe)return As(ie);const Pt=Tr(qe);return function za(W){W.sort((ne,V)=>ne.value.outlet===he?-1:V.value.outlet===he?1:ne.value.outlet.localeCompare(V.value.outlet))}(Pt),(0,w.of)(Pt)}))}processSegment(ne,V,ie,xe,qe,Pt){return(0,S.D)(V).pipe((0,yt.b)(mn=>this.processSegmentAgainstRoute(mn._injector??ne,V,mn,ie,xe,qe,Pt).pipe((0,Jt.K)(hn=>{if(hn instanceof Pr)return(0,w.of)(null);throw hn}))),(0,Zt.P)(mn=>!!mn),(0,Jt.K)(mn=>{if(Qn(mn))return function Os(W,ne,V){return 0===ne.length&&!W.children[V]}(ie,xe,qe)?(0,w.of)([]):As(ie);throw mn}))}processSegmentAgainstRoute(ne,V,ie,xe,qe,Pt,mn){return function vc(W,ne,V,ie){return!!(Io(W)===ie||ie!==he&&ns(ne,V,W))&&("**"===W.path||Hs(ne,W,V).matched)}(ie,xe,qe,Pt)?void 0===ie.redirectTo?this.matchSegmentAgainstRoute(ne,xe,ie,qe,Pt,mn):mn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ne,xe,V,ie,qe,Pt):As(xe):As(xe)}expandSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt){return"**"===xe.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ne,ie,xe,Pt):this.expandRegularSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ne,V,ie,xe){const qe=this.applyRedirects.applyRedirectCommands([],ie.redirectTo,{});return ie.redirectTo.startsWith("/")?qr(qe):this.applyRedirects.lineralizeSegments(ie,qe).pipe((0,St.z)(Pt=>{const mn=new ot(Pt,{});return this.processSegment(ne,V,mn,Pt,xe,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt){const{matched:mn,consumedSegments:hn,remainingSegments:on,positionalParamSegments:ji}=Hs(V,xe,qe);if(!mn)return As(V);const Gr=this.applyRedirects.applyRedirectCommands(hn,xe.redirectTo,ji);return xe.redirectTo.startsWith("/")?qr(Gr):this.applyRedirects.lineralizeSegments(xe,Gr).pipe((0,St.z)($i=>this.processSegment(ne,ie,V,$i.concat(on),Pt,!1)))}matchSegmentAgainstRoute(ne,V,ie,xe,qe,Pt){let mn;if("**"===ie.path){const hn=xe.length>0?Ot(xe).parameters:{},on=new Es(xe,hn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kl(ie),Io(ie),ie.component??ie._loadedComponent??null,ie,Rs(ie));mn=(0,w.of)({snapshot:on,consumedSegments:[],remainingSegments:[]}),V.children={}}else mn=Gl(V,ie,xe,ne).pipe((0,Ge.U)(({matched:hn,consumedSegments:on,remainingSegments:ji,parameters:Gr})=>hn?{snapshot:new Es(on,Gr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kl(ie),Io(ie),ie.component??ie._loadedComponent??null,ie,Rs(ie)),consumedSegments:on,remainingSegments:ji}:null));return mn.pipe((0,Lt.w)(hn=>null===hn?As(V):this.getChildConfig(ne=ie._injector??ne,ie,xe).pipe((0,Lt.w)(({routes:on})=>{const ji=ie._loadedInjector??ne,{snapshot:Gr,consumedSegments:$i,remainingSegments:mi}=hn,{segmentGroup:Ps,slicedSegments:fl}=ja(V,$i,mi,on);if(0===fl.length&&Ps.hasChildren())return this.processChildren(ji,on,Ps).pipe((0,Ge.U)(Ja=>null===Ja?null:[new qi(Gr,Ja)]));if(0===on.length&&0===fl.length)return(0,w.of)([new qi(Gr,[])]);const Rl=Io(ie)===qe;return this.processSegment(ji,on,Ps,fl,Rl?he:qe,!0).pipe((0,Ge.U)(Ja=>[new qi(Gr,Ja)]))}))))}getChildConfig(ne,V,ie){return V.children?(0,w.of)({routes:V.children,injector:ne}):V.loadChildren?void 0!==V._loadedRoutes?(0,w.of)({routes:V._loadedRoutes,injector:V._loadedInjector}):function El(W,ne,V,ie){const xe=ne.canLoad;if(void 0===xe||0===xe.length)return(0,w.of)(!0);const qe=xe.map(Pt=>{const mn=qo(Pt,W);return rn(function ta(W){return W&&Ua(W.canLoad)}(mn)?mn.canLoad(ne,V):W.runInContext(()=>mn(ne,V)))});return(0,w.of)(qe).pipe(Zo(),wa())}(ne,V,ie).pipe((0,St.z)(xe=>xe?this.configLoader.loadChildren(ne,V).pipe((0,un.b)(qe=>{V._loadedRoutes=qe.routes,V._loadedInjector=qe.injector})):function Ro(W){return(0,te._)(ba(!1,3))}())):(0,w.of)({routes:[],injector:ne})}}function $l(W){const ne=W.value.routeConfig;return ne&&""===ne.path}function Tr(W){const ne=[],V=new Set;for(const ie of W){if(!$l(ie)){ne.push(ie);continue}const xe=ne.find(qe=>ie.value.routeConfig===qe.value.routeConfig);void 0!==xe?(xe.children.push(...ie.children),V.add(xe)):ne.push(ie)}for(const ie of V){const xe=Tr(ie.children);ne.push(new qi(ie.value,xe))}return ne.filter(ie=>!V.has(ie))}function Kl(W){return W.data||{}}function Rs(W){return W.resolve||{}}function is(W){return"string"==typeof W.title||null===W.title}function ro(W){return(0,Lt.w)(ne=>{const V=W(ne);return V?(0,S.D)(V).pipe((0,Ge.U)(()=>ne)):(0,w.of)(ne)})}const K=new e.OlP("ROUTES");let Ue=(()=>{class W{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,e.f3M)(e.Sil)}loadComponent(V){if(this.componentLoaders.get(V))return this.componentLoaders.get(V);if(V._loadedComponent)return(0,w.of)(V._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(V);const ie=rn(V.loadComponent()).pipe((0,Ge.U)(kt),(0,un.b)(qe=>{this.onLoadEndListener&&this.onLoadEndListener(V),V._loadedComponent=qe}),(0,Be.x)(()=>{this.componentLoaders.delete(V)})),xe=new ce.c(ie,()=>new _e.x).pipe((0,Ee.x)());return this.componentLoaders.set(V,xe),xe}loadChildren(V,ie){if(this.childrenLoaders.get(ie))return this.childrenLoaders.get(ie);if(ie._loadedRoutes)return(0,w.of)({routes:ie._loadedRoutes,injector:ie._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(ie);const qe=function ge(W,ne,V,ie){return rn(W.loadChildren()).pipe((0,Ge.U)(kt),(0,St.z)(xe=>xe instanceof e.YKP||Array.isArray(xe)?(0,w.of)(xe):(0,S.D)(ne.compileModuleAsync(xe))),(0,Ge.U)(xe=>{ie&&ie(W);let qe,Pt,mn=!1;return Array.isArray(xe)?(Pt=xe,!0):(qe=xe.create(V).injector,Pt=qe.get(K,[],{optional:!0,self:!0}).flat()),{routes:Pt.map(Jo),injector:qe}}))}(ie,this.compiler,V,this.onLoadEndListener).pipe((0,Be.x)(()=>{this.childrenLoaders.delete(ie)})),Pt=new ce.c(qe,()=>new _e.x).pipe((0,Ee.x)());return this.childrenLoaders.set(ie,Pt),Pt}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function kt(W){return function Ne(W){return W&&"object"==typeof W&&"default"in W}(W)?W.default:W}let pn=(()=>{class W{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new _e.x,this.transitionAbortSubject=new _e.x,this.configLoader=(0,e.f3M)(Ue),this.environmentInjector=(0,e.f3M)(e.lqb),this.urlSerializer=(0,e.f3M)(Ut),this.rootContexts=(0,e.f3M)(Vo),this.inputBindingEnabled=null!==(0,e.f3M)(jo,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,w.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=xe=>this.events.next(new Ws(xe)),this.configLoader.onLoadStartListener=xe=>this.events.next(new So(xe))}complete(){this.transitions?.complete()}handleNavigationRequest(V){const ie=++this.navigationId;this.transitions?.next({...this.transitions.value,...V,id:ie})}setupNavigations(V,ie,xe){return this.transitions=new n.X({id:0,currentUrlTree:ie,currentRawUrl:ie,currentBrowserUrl:ie,extractedUrl:V.urlHandlingStrategy.extract(ie),urlAfterRedirects:V.urlHandlingStrategy.extract(ie),rawUrl:ie,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:pr,restoredState:null,currentSnapshot:xe.snapshot,targetSnapshot:null,currentRouterState:xe,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,xt.h)(qe=>0!==qe.id),(0,Ge.U)(qe=>({...qe,extractedUrl:V.urlHandlingStrategy.extract(qe.rawUrl)})),(0,Lt.w)(qe=>{this.currentTransition=qe;let Pt=!1,mn=!1;return(0,w.of)(qe).pipe((0,un.b)(hn=>{this.currentNavigation={id:hn.id,initialUrl:hn.rawUrl,extractedUrl:hn.extractedUrl,trigger:hn.source,extras:hn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Lt.w)(hn=>{const on=hn.currentBrowserUrl.toString(),ji=!V.navigated||hn.extractedUrl.toString()!==on||on!==hn.currentUrlTree.toString();if(!ji&&"reload"!==(hn.extras.onSameUrlNavigation??V.onSameUrlNavigation)){const $i="";return this.events.next(new uo(hn.id,this.urlSerializer.serialize(hn.rawUrl),$i,0)),hn.resolve(null),oe.E}if(V.urlHandlingStrategy.shouldProcessUrl(hn.rawUrl))return(0,w.of)(hn).pipe((0,Lt.w)($i=>{const mi=this.transitions?.getValue();return this.events.next(new $n($i.id,this.urlSerializer.serialize($i.extractedUrl),$i.source,$i.restoredState)),mi!==this.transitions?.getValue()?oe.E:Promise.resolve($i)}),function xa(W,ne,V,ie,xe,qe){return(0,St.z)(Pt=>function Is(W,ne,V,ie,xe,qe,Pt="emptyOnly"){return new Za(W,ne,V,ie,xe,Pt,qe).recognize()}(W,ne,V,ie,Pt.extractedUrl,xe,qe).pipe((0,Ge.U)(({state:mn,tree:hn})=>({...Pt,targetSnapshot:mn,urlAfterRedirects:hn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,V.config,this.urlSerializer,V.paramsInheritanceStrategy),(0,un.b)($i=>{qe.targetSnapshot=$i.targetSnapshot,qe.urlAfterRedirects=$i.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:$i.urlAfterRedirects};const mi=new to($i.id,this.urlSerializer.serialize($i.extractedUrl),this.urlSerializer.serialize($i.urlAfterRedirects),$i.targetSnapshot);this.events.next(mi)}));if(ji&&V.urlHandlingStrategy.shouldProcessUrl(hn.currentRawUrl)){const{id:$i,extractedUrl:mi,source:Ps,restoredState:fl,extras:Rl}=hn,Ja=new $n($i,this.urlSerializer.serialize(mi),Ps,fl);this.events.next(Ja);const xd=dr(0,this.rootComponentType).snapshot;return this.currentTransition=qe={...hn,targetSnapshot:xd,urlAfterRedirects:mi,extras:{...Rl,skipLocationChange:!1,replaceUrl:!1}},(0,w.of)(qe)}{const $i="";return this.events.next(new uo(hn.id,this.urlSerializer.serialize(hn.extractedUrl),$i,1)),hn.resolve(null),oe.E}}),(0,un.b)(hn=>{const on=new yr(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects),hn.targetSnapshot);this.events.next(on)}),(0,Ge.U)(hn=>(this.currentTransition=qe={...hn,guards:po(hn.targetSnapshot,hn.currentSnapshot,this.rootContexts)},qe)),function Cl(W,ne){return(0,St.z)(V=>{const{targetSnapshot:ie,currentSnapshot:xe,guards:{canActivateChecks:qe,canDeactivateChecks:Pt}}=V;return 0===Pt.length&&0===qe.length?(0,w.of)({...V,guardsResult:!0}):function ia(W,ne,V,ie){return(0,S.D)(W).pipe((0,St.z)(xe=>function kc(W,ne,V,ie,xe){const qe=ne&&ne.routeConfig?ne.routeConfig.canDeactivate:null;if(!qe||0===qe.length)return(0,w.of)(!0);const Pt=qe.map(mn=>{const hn=fo(ne)??xe,on=qo(mn,hn);return rn(function Fe(W){return W&&Ua(W.canDeactivate)}(on)?on.canDeactivate(W,ne,V,ie):hn.runInContext(()=>on(W,ne,V,ie))).pipe((0,Zt.P)())});return(0,w.of)(Pt).pipe(Zo())}(xe.component,xe.route,V,ne,ie)),(0,Zt.P)(xe=>!0!==xe,!0))}(Pt,ie,xe,W).pipe((0,St.z)(mn=>mn&&function Ia(W){return"boolean"==typeof W}(mn)?function sc(W,ne,V,ie){return(0,S.D)(ne).pipe((0,yt.b)(xe=>(0,re.z)(function Tl(W,ne){return null!==W&&ne&&ne(new Ds(W)),(0,w.of)(!0)}(xe.route.parent,ie),function Lr(W,ne){return null!==W&&ne&&ne(new Uo(W)),(0,w.of)(!0)}(xe.route,ie),function Qo(W,ne,V){const ie=ne[ne.length-1],qe=ne.slice(0,ne.length-1).reverse().map(Pt=>function io(W){const ne=W.routeConfig?W.routeConfig.canActivateChild:null;return ne&&0!==ne.length?{node:W,guards:ne}:null}(Pt)).filter(Pt=>null!==Pt).map(Pt=>(0,ue.P)(()=>{const mn=Pt.guards.map(hn=>{const on=fo(Pt.node)??V,ji=qo(hn,on);return rn(function Ae(W){return W&&Ua(W.canActivateChild)}(ji)?ji.canActivateChild(ie,W):on.runInContext(()=>ji(ie,W))).pipe((0,Zt.P)())});return(0,w.of)(mn).pipe(Zo())}));return(0,w.of)(qe).pipe(Zo())}(W,xe.path,V),function Dl(W,ne,V){const ie=ne.routeConfig?ne.routeConfig.canActivate:null;if(!ie||0===ie.length)return(0,w.of)(!0);const xe=ie.map(qe=>(0,ue.P)(()=>{const Pt=fo(ne)??V,mn=qo(qe,Pt);return rn(function na(W){return W&&Ua(W.canActivate)}(mn)?mn.canActivate(ne,W):Pt.runInContext(()=>mn(ne,W))).pipe((0,Zt.P)())}));return(0,w.of)(xe).pipe(Zo())}(W,xe.route,V))),(0,Zt.P)(xe=>!0!==xe,!0))}(ie,qe,W,ne):(0,w.of)(mn)),(0,Ge.U)(mn=>({...V,guardsResult:mn})))})}(this.environmentInjector,hn=>this.events.next(hn)),(0,un.b)(hn=>{if(qe.guardsResult=hn.guardsResult,Mt(hn.guardsResult))throw qs(0,hn.guardsResult);const on=new Gs(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects),hn.targetSnapshot,!!hn.guardsResult);this.events.next(on)}),(0,xt.h)(hn=>!!hn.guardsResult||(this.cancelNavigationTransition(hn,"",3),!1)),ro(hn=>{if(hn.guards.canActivateChecks.length)return(0,w.of)(hn).pipe((0,un.b)(on=>{const ji=new Ba(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot);this.events.next(ji)}),(0,Lt.w)(on=>{let ji=!1;return(0,w.of)(on).pipe(function Ga(W,ne){return(0,St.z)(V=>{const{targetSnapshot:ie,guards:{canActivateChecks:xe}}=V;if(!xe.length)return(0,w.of)(V);let qe=0;return(0,S.D)(xe).pipe((0,yt.b)(Pt=>function Wa(W,ne,V,ie){const xe=W.routeConfig,qe=W._resolve;return void 0!==xe?.title&&!is(xe)&&(qe[Ze]=xe.title),function bc(W,ne,V,ie){const xe=function ra(W){return[...Object.keys(W),...Object.getOwnPropertySymbols(W)]}(W);if(0===xe.length)return(0,w.of)({});const qe={};return(0,S.D)(xe).pipe((0,St.z)(Pt=>function Al(W,ne,V,ie){const xe=fo(ne)??ie,qe=qo(W,xe);return rn(qe.resolve?qe.resolve(ne,V):xe.runInContext(()=>qe(ne,V)))}(W[Pt],ne,V,ie).pipe((0,Zt.P)(),(0,un.b)(mn=>{qe[Pt]=mn}))),ti(1),(0,at.h)(qe),(0,Jt.K)(Pt=>Qn(Pt)?oe.E:(0,te._)(Pt)))}(qe,W,ne,ie).pipe((0,Ge.U)(Pt=>(W._resolvedData=Pt,W.data=al(W,V).resolve,xe&&is(xe)&&(W.data[Ze]=xe.title),null)))}(Pt.route,ie,W,ne)),(0,un.b)(()=>qe++),ti(1),(0,St.z)(Pt=>qe===xe.length?(0,w.of)(V):oe.E))})}(V.paramsInheritanceStrategy,this.environmentInjector),(0,un.b)({next:()=>ji=!0,complete:()=>{ji||this.cancelNavigationTransition(on,"",2)}}))}),(0,un.b)(on=>{const ji=new xl(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot);this.events.next(ji)}))}),ro(hn=>{const on=ji=>{const Gr=[];ji.routeConfig?.loadComponent&&!ji.routeConfig._loadedComponent&&Gr.push(this.configLoader.loadComponent(ji.routeConfig).pipe((0,un.b)($i=>{ji.component=$i}),(0,Ge.U)(()=>{})));for(const $i of ji.children)Gr.push(...on($i));return Gr};return(0,Z.a)(on(hn.targetSnapshot.root)).pipe((0,wn.d)(),(0,je.q)(1))}),ro(()=>this.afterPreactivation()),(0,Ge.U)(hn=>{const on=function Ao(W,ne,V){const ie=nr(W,ne._root,V?V._root:void 0);return new Yr(ie,ne)}(V.routeReuseStrategy,hn.targetSnapshot,hn.currentRouterState);return this.currentTransition=qe={...hn,targetRouterState:on},qe}),(0,un.b)(()=>{this.events.next(new kr)}),((W,ne,V,ie)=>(0,Ge.U)(xe=>(new Co(ne,xe.targetRouterState,xe.currentRouterState,V,ie).activate(W),xe)))(this.rootContexts,V.routeReuseStrategy,hn=>this.events.next(hn),this.inputBindingEnabled),(0,je.q)(1),(0,un.b)({next:hn=>{Pt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new yo(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects))),V.titleStrategy?.updateTitle(hn.targetRouterState.snapshot),hn.resolve(!0)},complete:()=>{Pt=!0}}),(0,$e.R)(this.transitionAbortSubject.pipe((0,un.b)(hn=>{throw hn}))),(0,Be.x)(()=>{Pt||mn||this.cancelNavigationTransition(qe,"",1),this.currentNavigation?.id===qe.id&&(this.currentNavigation=null)}),(0,Jt.K)(hn=>{if(mn=!0,wi(hn))this.events.next(new Fr(qe.id,this.urlSerializer.serialize(qe.extractedUrl),hn.message,hn.cancellationCode)),function Qs(W){return wi(W)&&Mt(W.url)}(hn)?this.events.next(new oo(hn.url)):qe.resolve(!1);else{this.events.next(new ho(qe.id,this.urlSerializer.serialize(qe.extractedUrl),hn,qe.targetSnapshot??void 0));try{qe.resolve(V.errorHandler(hn))}catch(on){qe.reject(on)}}return oe.E}))}))}cancelNavigationTransition(V,ie,xe){const qe=new Fr(V.id,this.urlSerializer.serialize(V.extractedUrl),ie,xe);this.events.next(qe),V.resolve(!1)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function Sn(W){return W!==pr}let li=(()=>{class W{buildTitle(V){let ie,xe=V.root;for(;void 0!==xe;)ie=this.getResolvedTitleForRoute(xe)??ie,xe=xe.children.find(qe=>qe.outlet===he);return ie}getResolvedTitleForRoute(V){return V.data[Ze]}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(ur)},providedIn:"root"})}return W})(),ur=(()=>{class W extends li{constructor(V){super(),this.title=V}updateTitle(V){const ie=this.buildTitle(V);void 0!==ie&&this.title.setTitle(ie)}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(tt.Dx))};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})(),hr=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(xi)},providedIn:"root"})}return W})();class ar{shouldDetach(ne){return!1}store(ne,V){}shouldAttach(ne){return!1}retrieve(ne){return null}shouldReuseRoute(ne,V){return ne.routeConfig===V.routeConfig}}let xi=(()=>{class W extends ar{static#e=this.\u0275fac=function(){let V;return function(xe){return(V||(V=e.n5z(W)))(xe||W)}}();static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();const Ar=new e.OlP("",{providedIn:"root",factory:()=>({})});let Nr=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(mr)},providedIn:"root"})}return W})(),mr=(()=>{class W{shouldProcessUrl(V){return!0}extract(V){return V}merge(V,ie){return V}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();var vs=function(W){return W[W.COMPLETE=0]="COMPLETE",W[W.FAILED=1]="FAILED",W[W.REDIRECTING=2]="REDIRECTING",W}(vs||{});function bs(W,ne){W.events.pipe((0,xt.h)(V=>V instanceof yo||V instanceof Fr||V instanceof ho||V instanceof uo),(0,Ge.U)(V=>V instanceof yo||V instanceof uo?vs.COMPLETE:V instanceof Fr&&(0===V.code||1===V.code)?vs.REDIRECTING:vs.FAILED),(0,xt.h)(V=>V!==vs.REDIRECTING),(0,je.q)(1)).subscribe(()=>{ne()})}function $a(W){throw W}function Ui(W,ne,V){return ne.parse("/")}const Ma={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let zr=(()=>{class W{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,e.f3M)(e.c2e),this.isNgZoneEnabled=!1,this._events=new _e.x,this.options=(0,e.f3M)(Ar,{optional:!0})||{},this.pendingTasks=(0,e.f3M)(e.HDt),this.errorHandler=this.options.errorHandler||$a,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Ui,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,e.f3M)(Nr),this.routeReuseStrategy=(0,e.f3M)(hr),this.titleStrategy=(0,e.f3M)(li),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,e.f3M)(K,{optional:!0})?.flat()??[],this.navigationTransitions=(0,e.f3M)(pn),this.urlSerializer=(0,e.f3M)(Ut),this.location=(0,e.f3M)(mt.Ye),this.componentInputBindingEnabled=!!(0,e.f3M)(jo,{optional:!0}),this.eventsSubscription=new Re.w0,this.isNgZoneEnabled=(0,e.f3M)(e.R0b)instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Oe,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dr(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(V=>{this.lastSuccessfulId=V.id,this.currentPageId=this.browserPageId},V=>{this.console.warn(`Unhandled Navigation Error: ${V}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const V=this.navigationTransitions.events.subscribe(ie=>{try{const{currentTransition:xe}=this.navigationTransitions;if(null===xe)return void(yi(ie)&&this._events.next(ie));if(ie instanceof $n)Sn(xe.source)&&(this.browserUrlTree=xe.extractedUrl);else if(ie instanceof uo)this.rawUrlTree=xe.rawUrl;else if(ie instanceof to){if("eager"===this.urlUpdateStrategy){if(!xe.extras.skipLocationChange){const qe=this.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl);this.setBrowserUrl(qe,xe)}this.browserUrlTree=xe.urlAfterRedirects}}else if(ie instanceof kr)this.currentUrlTree=xe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl),this.routerState=xe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(xe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,xe),this.browserUrlTree=xe.urlAfterRedirects);else if(ie instanceof Fr)0!==ie.code&&1!==ie.code&&(this.navigated=!0),(3===ie.code||2===ie.code)&&this.restoreHistory(xe);else if(ie instanceof oo){const qe=this.urlHandlingStrategy.merge(ie.url,xe.currentRawUrl),Pt={skipLocationChange:xe.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Sn(xe.source)};this.scheduleNavigation(qe,pr,null,Pt,{resolve:xe.resolve,reject:xe.reject,promise:xe.promise})}ie instanceof ho&&this.restoreHistory(xe,!0),ie instanceof yo&&(this.navigated=!0),yi(ie)&&this._events.next(ie)}catch(xe){this.navigationTransitions.transitionAbortSubject.next(xe)}});this.eventsSubscription.add(V)}resetRootComponentType(V){this.routerState.root.component=V,this.navigationTransitions.rootComponentType=V}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const V=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),pr,V)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(V=>{const ie="popstate"===V.type?"popstate":"hashchange";"popstate"===ie&&setTimeout(()=>{this.navigateToSyncWithBrowser(V.url,ie,V.state)},0)}))}navigateToSyncWithBrowser(V,ie,xe){const qe={replaceUrl:!0},Pt=xe?.navigationId?xe:null;if(xe){const hn={...xe};delete hn.navigationId,delete hn.\u0275routerPageId,0!==Object.keys(hn).length&&(qe.state=hn)}const mn=this.parseUrl(V);this.scheduleNavigation(mn,ie,Pt,qe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(V){this.config=V.map(Jo),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(V,ie={}){const{relativeTo:xe,queryParams:qe,fragment:Pt,queryParamsHandling:mn,preserveFragment:hn}=ie,on=hn?this.currentUrlTree.fragment:Pt;let Gr,ji=null;switch(mn){case"merge":ji={...this.currentUrlTree.queryParams,...qe};break;case"preserve":ji=this.currentUrlTree.queryParams;break;default:ji=qe||null}null!==ji&&(ji=this.removeEmptyProps(ji));try{Gr=ht(xe?xe.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof V[0]||!V[0].startsWith("/"))&&(V=[]),Gr=this.currentUrlTree.root}return st(Gr,V,ji,on??null)}navigateByUrl(V,ie={skipLocationChange:!1}){const xe=Mt(V)?V:this.parseUrl(V),qe=this.urlHandlingStrategy.merge(xe,this.rawUrlTree);return this.scheduleNavigation(qe,pr,null,ie)}navigate(V,ie={skipLocationChange:!1}){return function Qi(W){for(let ne=0;ne{const qe=V[xe];return null!=qe&&(ie[xe]=qe),ie},{})}scheduleNavigation(V,ie,xe,qe,Pt){if(this.disposed)return Promise.resolve(!1);let mn,hn,on;Pt?(mn=Pt.resolve,hn=Pt.reject,on=Pt.promise):on=new Promise((Gr,$i)=>{mn=Gr,hn=$i});const ji=this.pendingTasks.add();return bs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ji))}),this.navigationTransitions.handleNavigationRequest({source:ie,restoredState:xe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:V,extras:qe,resolve:mn,reject:hn,promise:on,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),on.catch(Gr=>Promise.reject(Gr))}setBrowserUrl(V,ie){const xe=this.urlSerializer.serialize(V);if(this.location.isCurrentPathEqualTo(xe)||ie.extras.replaceUrl){const Pt={...ie.extras.state,...this.generateNgRouterState(ie.id,this.browserPageId)};this.location.replaceState(xe,"",Pt)}else{const qe={...ie.extras.state,...this.generateNgRouterState(ie.id,this.browserPageId+1)};this.location.go(xe,"",qe)}}restoreHistory(V,ie=!1){if("computed"===this.canceledNavigationResolution){const qe=this.currentPageId-this.browserPageId;0!==qe?this.location.historyGo(qe):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===qe&&(this.resetState(V),this.browserUrlTree=V.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(ie&&this.resetState(V),this.resetUrlToCurrentUrlTree())}resetState(V){this.routerState=V.currentRouterState,this.currentUrlTree=V.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,V.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(V,ie){return"computed"===this.canceledNavigationResolution?{navigationId:V,\u0275routerPageId:ie}:{navigationId:V}}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function yi(W){return!(W instanceof kr||W instanceof oo)}let oa=(()=>{class W{constructor(V,ie,xe,qe,Pt,mn){this.router=V,this.route=ie,this.tabIndexAttribute=xe,this.renderer=qe,this.el=Pt,this.locationStrategy=mn,this.href=null,this.commands=null,this.onChanges=new _e.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const hn=Pt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===hn||"area"===hn,this.isAnchorElement?this.subscription=V.events.subscribe(on=>{on instanceof yo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(V){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",V)}ngOnChanges(V){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(V){null!=V?(this.commands=Array.isArray(V)?V:[V],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(V,ie,xe,qe,Pt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==V||ie||xe||qe||Pt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const V=null===this.href?null:(0,e.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",V)}applyAttributeValue(V,ie){const xe=this.renderer,qe=this.el.nativeElement;null!==ie?xe.setAttribute(qe,V,ie):xe.removeAttribute(qe,V)}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:this.preserveFragment})}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.Y36(zr),e.Y36(wr),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(mt.S$))};static#t=this.\u0275dir=e.lG2({type:W,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(ie,xe){1&ie&&e.NdJ("click",function(Pt){return xe.onClick(Pt.button,Pt.ctrlKey,Pt.shiftKey,Pt.altKey,Pt.metaKey)}),2&ie&&e.uIk("target",xe.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",e.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",e.VuI],replaceUrl:["replaceUrl","replaceUrl",e.VuI],routerLink:"routerLink"},standalone:!0,features:[e.Xq5,e.TTD]})}return W})();class Wi{}let ko=(()=>{class W{constructor(V,ie,xe,qe,Pt){this.router=V,this.injector=xe,this.preloadingStrategy=qe,this.loader=Pt}setUpPreloading(){this.subscription=this.router.events.pipe((0,xt.h)(V=>V instanceof yo),(0,yt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(V,ie){const xe=[];for(const qe of ie){qe.providers&&!qe._injector&&(qe._injector=(0,e.MMx)(qe.providers,V,`Route: ${qe.path}`));const Pt=qe._injector??V,mn=qe._loadedInjector??Pt;(qe.loadChildren&&!qe._loadedRoutes&&void 0===qe.canLoad||qe.loadComponent&&!qe._loadedComponent)&&xe.push(this.preloadConfig(Pt,qe)),(qe.children||qe._loadedRoutes)&&xe.push(this.processRoutes(mn,qe.children??qe._loadedRoutes))}return(0,S.D)(xe).pipe((0,me.J)())}preloadConfig(V,ie){return this.preloadingStrategy.preload(ie,()=>{let xe;xe=ie.loadChildren&&void 0===ie.canLoad?this.loader.loadChildren(V,ie):(0,w.of)(null);const qe=xe.pipe((0,St.z)(Pt=>null===Pt?(0,w.of)(void 0):(ie._loadedRoutes=Pt.routes,ie._loadedInjector=Pt.injector,this.processRoutes(Pt.injector??V,Pt.routes))));if(ie.loadComponent&&!ie._loadedComponent){const Pt=this.loader.loadComponent(ie);return(0,S.D)([qe,Pt]).pipe((0,me.J)())}return qe})}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(zr),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Wi),e.LFG(Ue))};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();const rs=new e.OlP("");let ul=(()=>{class W{constructor(V,ie,xe,qe,Pt={}){this.urlSerializer=V,this.transitions=ie,this.viewportScroller=xe,this.zone=qe,this.options=Pt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Pt.scrollPositionRestoration=Pt.scrollPositionRestoration||"disabled",Pt.anchorScrolling=Pt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(V=>{V instanceof $n?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=V.navigationTrigger,this.restoredId=V.restoredState?V.restoredState.navigationId:0):V instanceof yo?(this.lastId=V.id,this.scheduleScrollEvent(V,this.urlSerializer.parse(V.urlAfterRedirects).fragment)):V instanceof uo&&0===V.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(V,this.urlSerializer.parse(V.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(V=>{V instanceof ga&&(V.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(V.position):V.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(V.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(V,ie){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ga(V,"popstate"===this.lastSource?this.store[this.restoredId]:null,ie))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(ie){e.$Z()};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac})}return W})();function Vs(W,ne){return{\u0275kind:W,\u0275providers:ne}}function lc(){const W=(0,e.f3M)(e.zs3);return ne=>{const V=W.get(e.z2F);if(ne!==V.components[0])return;const ie=W.get(zr),xe=W.get(Ei);1===W.get(Ca)&&ie.initialNavigation(),W.get(sa,null,e.XFs.Optional)?.setUpPreloading(),W.get(rs,null,e.XFs.Optional)?.init(),ie.resetRootComponentType(V.componentTypes[0]),xe.closed||(xe.next(),xe.complete(),xe.unsubscribe())}}const Ei=new e.OlP("",{factory:()=>new _e.x}),Ca=new e.OlP("",{providedIn:"root",factory:()=>1}),sa=new e.OlP("");function cc(W){return Vs(0,[{provide:sa,useExisting:ko},{provide:Wi,useExisting:W}])}const Ol=new e.OlP("ROUTER_FORROOT_GUARD"),kn=[mt.Ye,{provide:Ut,useClass:fn},zr,Vo,{provide:wr,useFactory:function Us(W){return W.routerState.root},deps:[zr]},Ue,[]];function Fi(){return new e.PXZ("Router",zr)}let Jl=(()=>{class W{constructor(V){}static forRoot(V,ie){return{ngModule:W,providers:[kn,[],{provide:K,multi:!0,useValue:V},{provide:Ol,useFactory:gt,deps:[[zr,new e.FiY,new e.tp0]]},{provide:Ar,useValue:ie||{}},ie?.useHash?{provide:mt.S$,useClass:mt.Do}:{provide:mt.S$,useClass:mt.b0},{provide:rs,useFactory:()=>{const W=(0,e.f3M)(mt.EM),ne=(0,e.f3M)(e.R0b),V=(0,e.f3M)(Ar),ie=(0,e.f3M)(pn),xe=(0,e.f3M)(Ut);return V.scrollOffset&&W.setOffset(V.scrollOffset),new ul(xe,ie,W,ne,V)}},ie?.preloadingStrategy?cc(ie.preloadingStrategy).\u0275providers:[],{provide:e.PXZ,multi:!0,useFactory:Fi},ie?.initialNavigation?la(ie):[],ie?.bindToComponentInputs?Vs(8,[no,{provide:jo,useExisting:no}]).\u0275providers:[],[{provide:Ra,useFactory:lc},{provide:e.tb,multi:!0,useExisting:Ra}]]}}static forChild(V){return{ngModule:W,providers:[{provide:K,multi:!0,useValue:V}]}}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(Ol,8))};static#t=this.\u0275mod=e.oAB({type:W});static#n=this.\u0275inj=e.cJS({})}return W})();function gt(W){return"guarded"}function la(W){return["disabled"===W.initialNavigation?Vs(3,[{provide:e.ip1,multi:!0,useFactory:()=>{const ne=(0,e.f3M)(zr);return()=>{ne.setUpLocationChangeListener()}}},{provide:Ca,useValue:2}]).\u0275providers:[],"enabledBlocking"===W.initialNavigation?Vs(2,[{provide:Ca,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:ne=>{const V=ne.get(mt.V_,Promise.resolve());return()=>V.then(()=>new Promise(ie=>{const xe=ne.get(zr),qe=ne.get(Ei);bs(xe,()=>{ie(!0)}),ne.get(pn).afterPreactivation=()=>(ie(!0),qe.closed?(0,w.of)(void 0):qe),xe.initialNavigation()}))}}]).\u0275providers:[]]}const Ra=new e.OlP("")},9299:(ft,Ie,C)=>{"use strict";C.d(Ie,{u:()=>Mc,d:()=>dd});var e=C(5861),l=C(5879);function n(Ye,it=new Set){const pt=[Ye],sn=new Set;let Bn=0;for(;pt.length>Bn;){const ri=pt[Bn++];if(!sn.has(ri)&&Z(ri)&&!it.has(ri))if(sn.add(ri),Symbol.iterator in ri)try{for(const Hn of ri)pt.push(Hn)}catch{}else for(const Hn in ri)"defaultValue"!==Hn&&pt.push(ri[Hn])}return sn}function Z(Ye){const it=Object.prototype.toString.call(Ye),pt=typeof Ye;return!("number"===pt||"boolean"===pt||"string"===pt||"symbol"===pt||"function"===pt||"[object Date]"===it||"[object RegExp]"===it||"[object Module]"===it||null==Ye||Ye._watchdogExcluded||Ye instanceof EventTarget||Ye instanceof Event)}Symbol("MainQueueId");class se{constructor(it){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof it.crashNumberLimit?it.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof it.minimumNonErrorTimePeriod?it.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=pt=>{const sn="error"in pt?pt.error:pt.reason;sn instanceof Error&&this._handleError(sn,pt)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(it,pt){this._listeners[it]||(this._listeners[it]=[]),this._listeners[it].push(pt)}off(it,pt){this._listeners[it]=this._listeners[it].filter(sn=>sn!==pt)}_fire(it,...pt){const sn=this._listeners[it]||[];for(const Bn of sn)Bn.apply(this,[null,...pt])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(it,pt){if(this._shouldReactToError(it)){this.crashes.push({message:it.message,stack:it.stack,filename:pt instanceof ErrorEvent?pt.filename:void 0,lineno:pt instanceof ErrorEvent?pt.lineno:void 0,colno:pt instanceof ErrorEvent?pt.colno:void 0,date:this._now()});const sn=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:it,causesRestart:sn}),sn?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(it){return it.is&&it.is("CKEditorError")&&null!=it.context&&"ready"===this.state&&this._isErrorComingFromThisItem(it)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}const oe=function te(Ye){var it=typeof Ye;return null!=Ye&&("object"==it||"function"==it)},_e="object"==typeof global&&global&&global.Object===Object&&global;var Re="object"==typeof self&&self&&self.Object===Object&&self;const Ge=_e||Re||Function("return this")(),je=function(){return Ge.Date.now()};var Tt=/\s/;var Zt=/^\s+/;const un=function yt(Ye){return Ye&&Ye.slice(0,function xt(Ye){for(var it=Ye.length;it--&&Tt.test(Ye.charAt(it)););return it}(Ye)+1).replace(Zt,"")},tn=Ge.Symbol;var wn=Object.prototype,Ln=wn.hasOwnProperty,Yn=wn.toString,ti=tn?tn.toStringTag:void 0;var at=Object.prototype.toString;var tt=tn?tn.toStringTag:void 0;const Ze=function he(Ye){return null==Ye?void 0===Ye?"[object Undefined]":"[object Null]":tt&&tt in Object(Ye)?function gi(Ye){var it=Ln.call(Ye,ti),pt=Ye[ti];try{Ye[ti]=void 0;var sn=!0}catch{}var Bn=Yn.call(Ye);return sn&&(it?Ye[ti]=pt:delete Ye[ti]),Bn}(Ye):function Be(Ye){return at.call(Ye)}(Ye)},bt=function rt(Ye){return null!=Ye&&"object"==typeof Ye};var Ot=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,vn=/^0o[0-7]+$/i,ei=parseInt;const Ve=function Wn(Ye){if("number"==typeof Ye)return Ye;if(function Qt(Ye){return"symbol"==typeof Ye||bt(Ye)&&"[object Symbol]"==Ze(Ye)}(Ye))return NaN;if(oe(Ye)){var it="function"==typeof Ye.valueOf?Ye.valueOf():Ye;Ye=oe(it)?it+"":it}if("string"!=typeof Ye)return 0===Ye?Ye:+Ye;Ye=un(Ye);var pt=rn.test(Ye);return pt||vn.test(Ye)?ei(Ye.slice(2),pt?2:8):Ot.test(Ye)?NaN:+Ye};var Ct=Math.max,Ce=Math.min;const Se=function ot(Ye,it,pt){var sn=!0,Bn=!0;if("function"!=typeof Ye)throw new TypeError("Expected a function");return oe(pt)&&(sn="leading"in pt?!!pt.leading:sn,Bn="trailing"in pt?!!pt.trailing:Bn),function J(Ye,it,pt){var sn,Bn,ri,Hn,hi,Ci,Hi=0,Wr=!1,Ns=!1,Na=!0;if("function"!=typeof Ye)throw new TypeError("Expected a function");function Fl(cs){var gc=sn,vl=Bn;return sn=Bn=void 0,Hi=cs,Hn=Ye.apply(vl,gc)}function Da(cs){var gc=cs-Ci;return void 0===Ci||gc>=it||gc<0||Ns&&cs-Hi>=ri}function gl(){var cs=je();if(Da(cs))return Kc(cs);hi=setTimeout(gl,function $c(cs){var Yl=it-(cs-Ci);return Ns?Ce(Yl,ri-(cs-Hi)):Yl}(cs))}function Kc(cs){return hi=void 0,Na&&sn?Fl(cs):(sn=Bn=void 0,Hn)}function Ic(){var cs=je(),gc=Da(cs);if(sn=arguments,Bn=this,Ci=cs,gc){if(void 0===hi)return function ec(cs){return Hi=cs,hi=setTimeout(gl,it),Wr?Fl(cs):Hn}(Ci);if(Ns)return clearTimeout(hi),hi=setTimeout(gl,it),Fl(Ci)}return void 0===hi&&(hi=setTimeout(gl,it)),Hn}return it=Ve(it)||0,oe(pt)&&(Wr=!!pt.leading,ri=(Ns="maxWait"in pt)?Ct(Ve(pt.maxWait)||0,it):ri,Na="trailing"in pt?!!pt.trailing:Na),Ic.cancel=function Qd(){void 0!==hi&&clearTimeout(hi),Hi=0,sn=Ci=Bn=hi=void 0},Ic.flush=function Cc(){return void 0===hi?Hn:Kc(je())},Ic}(Ye,it,{leading:sn,maxWait:it,trailing:Bn})},lt=function Ft(Ye,it){return function(pt){return Ye(it(pt))}},Ut=lt(Object.getPrototypeOf,Object);var jn=Function.prototype.toString,ai=Object.prototype.hasOwnProperty,di=jn.call(Object);const _t=function qt(Ye){return bt(Ye)&&1===Ye.nodeType&&!function oi(Ye){if(!bt(Ye)||"[object Object]"!=Ze(Ye))return!1;var it=Ut(Ye);if(null===it)return!0;var pt=ai.call(it,"constructor")&&it.constructor;return"function"==typeof pt&&pt instanceof pt&&jn.call(pt)==di}(Ye)},Pe=function ve(Ye,it){return Ye===it||Ye!=Ye&&it!=it},We=function ut(Ye,it){for(var pt=Ye.length;pt--;)if(Pe(Ye[pt][0],it))return pt;return-1};var be=Array.prototype.splice;function Vt(Ye){var it=-1,pt=null==Ye?0:Ye.length;for(this.clear();++it-1},Vt.prototype.set=function fe(Ye,it){var pt=this.__data__,sn=We(pt,Ye);return sn<0?(++this.size,pt.push([Ye,it])):pt[sn][1]=it,this};const ht=Vt,co=function Bi(Ye){if(!oe(Ye))return!1;var it=Ze(Ye);return"[object Function]"==it||"[object GeneratorFunction]"==it||"[object AsyncFunction]"==it||"[object Proxy]"==it};var Ye,Ji=Ge["__core-js_shared__"],_i=(Ye=/[^.]+$/.exec(Ji&&Ji.keys&&Ji.keys.IE_PROTO||""))?"Symbol(src)_1."+Ye:"";var $n=Function.prototype.toString;const Fr=function yo(Ye){if(null!=Ye){try{return $n.call(Ye)}catch{}try{return Ye+""}catch{}}return""};var ho=/^\[object .+?Constructor\]$/,xl=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ws=function So(Ye){return!(!oe(Ye)||function bo(Ye){return!!_i&&_i in Ye}(Ye))&&(co(Ye)?xl:ho).test(Fr(Ye))},Jr=function Uo(Ye,it){var pt=function Ds(Ye,it){return Ye?.[it]}(Ye,it);return Ws(pt)?pt:void 0},kr=Jr(Ge,"Map"),fs=Jr(Object,"create");var Li=Object.prototype.hasOwnProperty;var wr=Object.prototype.hasOwnProperty;function er(Ye){var it=-1,pt=null==Ye?0:Ye.length;for(this.clear();++it-1&&Ye%1==0&&Ye-1&&Ye%1==0&&Ye<=9007199254740991};var Tr={};Tr["[object Float32Array]"]=Tr["[object Float64Array]"]=Tr["[object Int8Array]"]=Tr["[object Int16Array]"]=Tr["[object Int32Array]"]=Tr["[object Uint8Array]"]=Tr["[object Uint8ClampedArray]"]=Tr["[object Uint16Array]"]=Tr["[object Uint32Array]"]=!0,Tr["[object Arguments]"]=Tr["[object Array]"]=Tr["[object ArrayBuffer]"]=Tr["[object Boolean]"]=Tr["[object DataView]"]=Tr["[object Date]"]=Tr["[object Error]"]=Tr["[object Function]"]=Tr["[object Map]"]=Tr["[object Number]"]=Tr["[object Object]"]=Tr["[object RegExp]"]=Tr["[object Set]"]=Tr["[object String]"]=Tr["[object WeakMap]"]=!1;const xa=function Rs(Ye){return function(it){return Ye(it)}};var Ga="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wa=Ga&&"object"==typeof module&&module&&!module.nodeType&&module,ra=Wa&&Wa.exports===Ga&&_e.process;const is=function(){try{return Wa&&Wa.require&&Wa.require("util").types||ra&&ra.binding&&ra.binding("util")}catch{}}();var ro=is&&is.isTypedArray;const Ue=ro?xa(ro):function Lc(Ye){return bt(Ye)&&El(Ye.length)&&!!Tr[Ze(Ye)]};var Ne=Object.prototype.hasOwnProperty;const pn=function kt(Ye,it){var pt=Ae(Ye),sn=!pt&&ta(Ye),Bn=!pt&&!sn&&ia(Ye),ri=!pt&&!sn&&!Bn&&Ue(Ye),Hn=pt||sn||Bn||ri,hi=Hn?function po(Ye,it){for(var pt=-1,sn=Array(Ye);++ptit.create(sn,Bn)),this._destructor=sn=>sn.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(it){this._creator=it}setDestructor(it){this._destructor=it}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(it=>{console.error("An error happened during the editor destroying.",it)}).then(()=>{const it={},pt=[],sn=this._config.rootsAttributes||{},Bn={};for(const[Hn,hi]of Object.entries(this._data.roots))hi.isLoaded?(it[Hn]="",Bn[Hn]=sn[Hn]||{}):pt.push(Hn);const ri={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:pt,rootsAttributes:Bn,_watchdogInitialData:this._data};return delete ri.initialData,ri.extraPlugins.push(qd),this._initUsingData?this.create(it,ri,ri.context):_t(this._elementOrData)?this.create(this._elementOrData,ri,ri.context):this.create(this._editables,ri,ri.context)}).then(()=>{this._fire("restart")})}create(it=this._elementOrData,pt=this._config,sn){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=it,this._initUsingData="string"==typeof it||Object.keys(it).length>0&&"string"==typeof Object.values(it)[0],this._config=this._cloneEditorConfiguration(pt)||{},this._config.context=sn,this._creator(it,this._config))).then(Bn=>{this._editor=Bn,Bn.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=Bn.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const it=this._editor;return this._editor=null,it.model.document.off("change:data",this._throttledSave),this._destructor(it)})}_save(){const it=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=it}catch(pt){console.error(pt,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(it){this._excludedProps=it}_getData(){const it=this._editor,pt=it.model.document.roots.filter(hi=>hi.isAttached()&&"$graveyard"!=hi.rootName),{plugins:sn}=it,Bn=sn.has("CommentsRepository")&&sn.get("CommentsRepository"),ri=sn.has("TrackChanges")&&sn.get("TrackChanges"),Hn={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};pt.forEach(hi=>{Hn.roots[hi.rootName]={content:JSON.stringify(Array.from(hi.getChildren())),attributes:JSON.stringify(Array.from(hi.getAttributes())),isLoaded:hi._isLoaded}});for(const hi of it.model.markers)hi._affectsData&&(Hn.markers[hi.name]={rangeJSON:hi.getRange().toJSON(),usingOperation:hi._managedUsingOperations,affectsData:hi._affectsData});return Bn&&(Hn.commentThreads=JSON.stringify(Bn.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),ri&&(Hn.suggestions=JSON.stringify(ri.getSuggestions({toJSON:!0,skipNotAttached:!0}))),Hn}_getEditables(){const it={};for(const pt of this.editor.model.document.getRootNames()){const sn=this.editor.ui.getEditableElement(pt);sn&&(it[pt]=sn)}return it}_isErrorComingFromThisItem(it){return function ee(Ye,it,pt=new Set){if(Ye===it&&function ue(Ye){return"object"==typeof Ye&&null!==Ye}(Ye))return!0;const sn=n(Ye,pt),Bn=n(it,pt);for(const ri of sn)if(Bn.has(ri))return!0;return!1}(this._editor,it.context,this._excludedProps)}_cloneEditorConfiguration(it){return function Jd(Ye,it){return Go(Ye,5,it="function"==typeof it?it:void 0)}(it,(pt,sn)=>{if(_t(pt)||"context"===sn)return pt})}}class qd{constructor(it){this.editor=it,this._data=it.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",it=>{it.stop(),this.editor.model.enqueueChange({isUndoable:!1},pt=>{this._restoreCollaborationData(),this._restoreEditorData(pt)}),this.editor.data.fire("ready")},{priority:999})}_createNode(it,pt){if("name"in pt){const sn=it.createElement(pt.name,pt.attributes);if(pt.children)for(const Bn of pt.children)sn._appendChild(this._createNode(it,Bn));return sn}return it.createText(pt.data,pt.attributes)}_restoreEditorData(it){const pt=this.editor;Object.entries(this._data.roots).forEach(([sn,{content:Bn,attributes:ri}])=>{const Hn=JSON.parse(Bn),hi=JSON.parse(ri),Ci=pt.model.document.getRoot(sn);for(const[Hi,Wr]of hi)it.setAttribute(Hi,Wr,Ci);for(const Hi of Hn){const Wr=this._createNode(it,Hi);it.insert(Wr,Ci,"end")}}),Object.entries(this._data.markers).forEach(([sn,Bn])=>{const{document:ri}=pt.model,{rangeJSON:{start:Hn,end:hi},...Ci}=Bn,Hi=ri.getRoot(Hn.root),Wr=it.createPositionFromPath(Hi,Hn.path,Hn.stickiness),Ns=it.createPositionFromPath(Hi,hi.path,hi.stickiness),Na=it.createRange(Wr,Ns);it.addMarker(sn,{range:Na,...Ci})})}_restoreCollaborationData(){const it=JSON.parse(this._data.commentThreads),pt=JSON.parse(this._data.suggestions);it.forEach(sn=>{const Bn=this.editor.config.get("collaboration.channelId"),ri=this.editor.plugins.get("CommentsRepository");ri.hasCommentThread(sn.threadId)&&ri.getCommentThread(sn.threadId).remove(),ri.addCommentThread({channelId:Bn,...sn})}),pt.forEach(sn=>{const Bn=this.editor.plugins.get("TrackChangesEditing");Bn.hasSuggestion(sn.id)?Bn.getSuggestion(sn.id).attributes=sn.attributes:Bn.addSuggestionData(sn)})}}var ml=C(1374),Oc=C(6223),Au=C(6814);function iu(Ye,it){}const pi=new Array(256).fill(0).map((Ye,it)=>("0"+it.toString(16)).slice(-2)),Xr="Lock from Angular integration (@ckeditor/ckeditor5-angular)";let Mc=(()=>{class Ye{constructor(pt,sn){this.config={},this.data="",this.tagName="div",this.disableTwoWayDataBinding=!1,this.ready=new l.vpe,this.change=new l.vpe,this.blur=new l.vpe,this.focus=new l.vpe,this.error=new l.vpe,this.initiallyDisabled=!1,this.isEditorSettingData=!1,this.id=function Wc(){const Ye=4294967296*Math.random()>>>0,it=4294967296*Math.random()>>>0,pt=4294967296*Math.random()>>>0,sn=4294967296*Math.random()>>>0;return"e"+pi[Ye>>0&255]+pi[Ye>>8&255]+pi[Ye>>16&255]+pi[Ye>>24&255]+pi[it>>0&255]+pi[it>>8&255]+pi[it>>16&255]+pi[it>>24&255]+pi[pt>>0&255]+pi[pt>>8&255]+pi[pt>>16&255]+pi[pt>>24&255]+pi[sn>>0&255]+pi[sn>>8&255]+pi[sn>>16&255]+pi[sn>>24&255]}(),this.ngZone=sn,this.elementRef=pt;const{CKEDITOR_VERSION:Bn}=window;if(Bn){const[ri]=Bn.split(".").map(Number);ri<37&&console.warn("The component requires using CKEditor 5 in version 37 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')}set disabled(pt){this.setDisabledState(pt)}get disabled(){return this.editorInstance?this.editorInstance.isReadOnly:this.initiallyDisabled}get editorInstance(){let pt=this.editorWatchdog;return this.watchdog&&(pt=this.watchdog._watchdogs.get(this.id)),pt?pt.editor:null}getId(){return this.id}ngOnChanges(pt){Object.prototype.hasOwnProperty.call(pt,"data")&&pt.data&&!pt.data.isFirstChange()&&this.writeValue(pt.data.currentValue)}ngAfterViewInit(){this.attachToWatchdog()}ngOnDestroy(){var pt=this;return(0,e.Z)(function*(){pt.watchdog?yield pt.watchdog.remove(pt.id):pt.editorWatchdog&&pt.editorWatchdog.editor&&(yield pt.editorWatchdog.destroy(),pt.editorWatchdog=void 0)})()}writeValue(pt){null===pt&&(pt=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.data.set(pt),this.isEditorSettingData=!1):(this.data=pt,this.ready.pipe((0,ml.P)()).subscribe(sn=>{sn.data.set(this.data)}))}registerOnChange(pt){this.cvaOnChange=pt}registerOnTouched(pt){this.cvaOnTouched=pt}setDisabledState(pt){this.editorInstance&&(pt?this.editorInstance.enableReadOnlyMode(Xr):this.editorInstance.disableReadOnlyMode(Xr)),this.initiallyDisabled=pt}attachToWatchdog(){var pt=this;const sn=(Ci,Hi)=>this.ngZone.runOutsideAngular((0,e.Z)(function*(){pt.elementRef.nativeElement.appendChild(Ci);const Wr=yield pt.editor.create(Ci,Hi);return pt.initiallyDisabled&&Wr.enableReadOnlyMode(Xr),pt.ngZone.run(()=>{pt.ready.emit(Wr)}),pt.setUpEditorEvents(Wr),Wr})),Bn=function(){var Ci=(0,e.Z)(function*(Hi){yield Hi.destroy(),pt.elementRef.nativeElement.removeChild(pt.editorElement)});return function(Wr){return Ci.apply(this,arguments)}}(),ri=Ci=>{(function No(Ye){return Ye.observed||Ye.observers.length>0})(this.error)&&this.ngZone.run(()=>this.error.emit(Ci))},Hn=document.createElement(this.tagName),hi=this.getConfig();if(this.editorElement=Hn,this.watchdog)this.watchdog.add({id:this.id,type:"editor",creator:sn,destructor:Bn,sourceElementOrData:Hn,config:hi}).catch(Ci=>{ri(Ci)}),this.watchdog.on("itemError",(Ci,{itemId:Hi})=>{Hi===this.id&&ri()});else{const Ci=new Gc(this.editor,this.editorWatchdogConfig);Ci.setCreator(sn),Ci.setDestructor(Bn),Ci.on("error",ri),this.editorWatchdog=Ci,this.ngZone.runOutsideAngular(()=>{Ci.create(Hn,hi).catch(Hi=>{ri(Hi)})})}}getConfig(){if(this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");const pt={...this.config},sn=this.config.initialData||this.data;return sn&&(pt.initialData=sn),pt}setUpEditorEvents(pt){const Bn=pt.editing.view.document;pt.model.document.on("change:data",ri=>{this.ngZone.run(()=>{if(!this.disableTwoWayDataBinding){if(this.cvaOnChange&&!this.isEditorSettingData){const Hn=pt.data.get();this.cvaOnChange(Hn)}this.change.emit({event:ri,editor:pt})}})}),Bn.on("focus",ri=>{this.ngZone.run(()=>{this.focus.emit({event:ri,editor:pt})})}),Bn.on("blur",ri=>{this.ngZone.run(()=>{this.cvaOnTouched&&this.cvaOnTouched(),this.blur.emit({event:ri,editor:pt})})})}}return Ye.\u0275fac=function(pt){return new(pt||Ye)(l.Y36(l.SBq),l.Y36(l.R0b))},Ye.\u0275cmp=l.Xpm({type:Ye,selectors:[["ckeditor"]],inputs:{editor:"editor",config:"config",data:"data",tagName:"tagName",watchdog:"watchdog",editorWatchdogConfig:"editorWatchdogConfig",disableTwoWayDataBinding:"disableTwoWayDataBinding",disabled:"disabled"},outputs:{ready:"ready",change:"change",blur:"blur",focus:"focus",error:"error"},features:[l._Bn([{provide:Oc.JU,useExisting:(0,l.Gpc)(()=>Ye),multi:!0}]),l.TTD],decls:1,vars:0,template:function(pt,sn){1&pt&&l.YNc(0,iu,0,0,"ng-template")},encapsulation:2}),Ye})(),dd=(()=>{class Ye{}return Ye.\u0275fac=function(pt){return new(pt||Ye)},Ye.\u0275mod=l.oAB({type:Ye}),Ye.\u0275inj=l.cJS({imports:[[Oc.u5,Au.ez]]}),Ye})()},4807:(ft,Ie,C)=>{"use strict";C.d(Ie,{A0:()=>Pn,ir:()=>ot,w9:()=>Te});var e=C(5879),l=C(6223),D=C(9773),I=C(9028),S=C(7921),w=C(9397),n=C(3620),Z=C(2181),ee=C(7398),re=C(927),ue=C(6410),se=C(8645),te=C(2438),oe=C(3019),ce=C(6814);const _e=["content"],Re=["scroll"],mt=["padding"],Ge=function(wt){return{searchTerm:wt}};function Lt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",6),e.GkF(1,7),e.qZA()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",fe.headerTemplate)("ngTemplateOutletContext",e.VKq(2,Ge,fe.filterValue))}}function je(wt,Yt){if(1&wt&&(e.TgZ(0,"div",8),e.GkF(1,7),e.qZA()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",fe.footerTemplate)("ngTemplateOutletContext",e.VKq(2,Ge,fe.filterValue))}}const Tt=["*"],xt=["searchInput"],St=["clearButton"];function Zt(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"span",15),e.NdJ("click",function(){e.CHM(fe);const Vt=e.oxw().$implicit,ht=e.oxw(2);return e.KtG(ht.unselect(Vt))}),e._uU(1,"\xd7"),e.qZA(),e._UZ(2,"span",16)}if(2&wt){const fe=e.oxw().$implicit,Mt=e.oxw(2);e.xp6(2),e.Q6J("ngItemLabel",fe.label)("escape",Mt.escapeHTML)}}function yt(wt,Yt){}const un=function(wt,Yt,fe){return{item:wt,clear:Yt,label:fe}};function Jt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",12),e.YNc(1,Zt,3,2,"ng-template",null,13,e.W1O),e.YNc(3,yt,0,0,"ng-template",14),e.qZA()),2&wt){const fe=Yt.$implicit,Mt=e.MAs(2),Vt=e.oxw(2);e.ekj("ng-value-disabled",fe.disabled),e.xp6(3),e.Q6J("ngTemplateOutlet",Vt.labelTemplate||Mt)("ngTemplateOutletContext",e.kEZ(4,un,fe.value,Vt.clearItem,fe.label))}}function tn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Jt,4,8,"div",11),e.BQk()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngForOf",fe.selectedItems)("ngForTrackBy",fe.trackByOption)}}function wn(wt,Yt){}const Ln=function(wt,Yt){return{items:wt,clear:Yt}};function Yn(wt,Yt){if(1&wt&&e.YNc(0,wn,0,0,"ng-template",14),2&wt){const fe=e.oxw();e.Q6J("ngTemplateOutlet",fe.multiLabelTemplate)("ngTemplateOutletContext",e.WLB(2,Ln,fe.selectedValues,fe.clearItem))}}function ti(wt,Yt){1&wt&&e._UZ(0,"div",19)}function gi(wt,Yt){}function Rn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,ti,1,0,"ng-template",null,17,e.W1O),e.YNc(3,gi,0,0,"ng-template",18),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw();e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.loadingSpinnerTemplate||fe)}}function dt(wt,Yt){if(1&wt&&(e.TgZ(0,"span",20,21)(2,"span",22),e._uU(3,"\xd7"),e.qZA()()),2&wt){const fe=e.oxw();e.s9C("title",fe.clearAllText)}}function at(wt,Yt){if(1&wt&&e._UZ(0,"span",28),2&wt){const fe=e.oxw().$implicit,Mt=e.oxw(2);e.Q6J("ngItemLabel",fe.label)("escape",Mt.escapeHTML)}}function Be(wt,Yt){}const Ee=function(wt,Yt,fe,Mt){return{item:wt,item$:Yt,index:fe,searchTerm:Mt}};function $e(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"div",26),e.NdJ("click",function(){const ht=e.CHM(fe).$implicit,st=e.oxw(2);return e.KtG(st.toggleItem(ht))})("mouseover",function(){const ht=e.CHM(fe).$implicit,st=e.oxw(2);return e.KtG(st.onItemHover(ht))}),e.YNc(1,at,1,2,"ng-template",null,27,e.W1O),e.YNc(3,Be,0,0,"ng-template",14),e.qZA()}if(2&wt){const fe=Yt.$implicit,Mt=e.MAs(2),Vt=e.oxw(2);e.ekj("ng-option-disabled",fe.disabled)("ng-option-selected",fe.selected)("ng-optgroup",fe.children)("ng-option",!fe.children)("ng-option-child",!!fe.parent)("ng-option-marked",fe===Vt.itemsList.markedItem),e.uIk("role",fe.children?"group":"option")("aria-selected",fe.selected)("id",null==fe?null:fe.htmlId),e.xp6(3),e.Q6J("ngTemplateOutlet",fe.children?Vt.optgroupTemplate||Mt:Vt.optionTemplate||Mt)("ngTemplateOutletContext",e.l5B(17,Ee,fe.value,fe,fe.index,Vt.searchTerm))}}function me(wt,Yt){if(1&wt&&(e.TgZ(0,"span")(1,"span",31),e._uU(2),e.qZA(),e._uU(3),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(2),e.Oqu(fe.addTagText),e.xp6(1),e.hij('"',fe.searchTerm,'"')}}function tt(wt,Yt){}function he(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"div",29),e.NdJ("mouseover",function(){e.CHM(fe);const Vt=e.oxw(2);return e.KtG(Vt.itemsList.unmarkItem())})("click",function(){e.CHM(fe);const Vt=e.oxw(2);return e.KtG(Vt.selectTag())}),e.YNc(1,me,4,2,"ng-template",null,30,e.W1O),e.YNc(3,tt,0,0,"ng-template",14),e.qZA()}if(2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.ekj("ng-option-marked",!Mt.itemsList.markedItem),e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.tagTemplate||fe)("ngTemplateOutletContext",e.VKq(4,Ge,Mt.searchTerm))}}function Ze(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.notFoundText)}}function rt(wt,Yt){}function bt(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Ze,2,1,"ng-template",null,32,e.W1O),e.YNc(3,rt,0,0,"ng-template",14),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.notFoundTemplate||fe)("ngTemplateOutletContext",e.VKq(2,Ge,Mt.searchTerm))}}function Nt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.typeToSearchText)}}function Qt(wt,Yt){}function nn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Nt,2,1,"ng-template",null,34,e.W1O),e.YNc(3,Qt,0,0,"ng-template",18),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.typeToSearchTemplate||fe)}}function Dn(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.loadingText)}}function Ot(wt,Yt){}function rn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Dn,2,1,"ng-template",null,35,e.W1O),e.YNc(3,Ot,0,0,"ng-template",14),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.loadingTextTemplate||fe)("ngTemplateOutletContext",e.VKq(2,Ge,Mt.searchTerm))}}function vn(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"ng-dropdown-panel",23),e.NdJ("update",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.viewPortItems=Vt)})("scroll",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.scroll.emit(Vt))})("scrollToEnd",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.scrollToEnd.emit(Vt))})("outsideClick",function(){e.CHM(fe);const Vt=e.oxw();return e.KtG(Vt.close())}),e.ynx(1),e.YNc(2,$e,4,22,"div",24),e.YNc(3,he,4,6,"div",25),e.BQk(),e.YNc(4,bt,4,4,"ng-container",3),e.YNc(5,nn,4,1,"ng-container",3),e.YNc(6,rn,4,4,"ng-container",3),e.qZA()}if(2&wt){const fe=e.oxw();e.ekj("ng-select-multiple",fe.multiple),e.Q6J("virtualScroll",fe.virtualScroll)("bufferAmount",fe.bufferAmount)("appendTo",fe.appendTo)("position",fe.dropdownPosition)("headerTemplate",fe.headerTemplate)("footerTemplate",fe.footerTemplate)("filterValue",fe.searchTerm)("items",fe.itemsList.filteredItems)("markedItem",fe.itemsList.markedItem)("ngClass",fe.appendTo?fe.classes:null)("id",fe.dropdownId),e.xp6(2),e.Q6J("ngForOf",fe.viewPortItems)("ngForTrackBy",fe.trackByOption),e.xp6(1),e.Q6J("ngIf",fe.showAddTag),e.xp6(1),e.Q6J("ngIf",fe.showNoItemsFound()),e.xp6(1),e.Q6J("ngIf",fe.showTypeToSearch()),e.xp6(1),e.Q6J("ngIf",fe.loading&&0===fe.itemsList.filteredItems.length)}}const ei=/[&<>"']/g,Wn=RegExp(ei.source),Ve={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ct(wt){return null!=wt}function Ce(wt){return"object"==typeof wt&&Ct(wt)}function ae(wt){return wt instanceof Function}let Oe=(()=>{class wt{constructor(fe){this.element=fe,this.escape=!0}ngOnChanges(fe){this.element.nativeElement.innerHTML=this.escape?function ct(wt){return wt&&Wn.test(wt)?wt.replace(ei,Yt=>Ve[Yt]):wt}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[e.TTD]})}return wt})(),ot=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-option-tmp",""]]})}return wt})(),Se=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-optgroup-tmp",""]]})}return wt})(),Ft=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-label-tmp",""]]})}return wt})(),lt=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-multi-label-tmp",""]]})}return wt})(),Bt=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-header-tmp",""]]})}return wt})(),Ut=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-footer-tmp",""]]})}return wt})(),fn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-notfound-tmp",""]]})}return wt})(),gn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-typetosearch-tmp",""]]})}return wt})(),An=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-loadingtext-tmp",""]]})}return wt})(),jn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-tag-tmp",""]]})}return wt})(),ai=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-loadingspinner-tmp",""]]})}return wt})();function di(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const oi={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function Jn(wt){return wt.replace(/[^\u0000-\u007E]/g,fe=>oi[fe]||fe)}class qt{constructor(Yt,fe){this._ngSelect=Yt,this._selectionModel=fe,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let Yt=this.selectedItems.length-1;for(;Yt>=0;Yt--){const fe=this.selectedItems[Yt];if(!fe.disabled)return fe}return null}setItems(Yt){this._items=Yt.map((fe,Mt)=>this.mapItem(fe,Mt)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(Yt){if(Yt.selected||this.maxItemsSelected)return;const fe=this._ngSelect.multiple;fe||this.clearSelected(),this._selectionModel.select(Yt,fe,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(Yt)}unselect(Yt){Yt.selected&&(this._selectionModel.unselect(Yt,this._ngSelect.multiple),this._ngSelect.hideSelected&&Ct(Yt.index)&&this._ngSelect.multiple&&this._showSelected(Yt))}findItem(Yt){let fe;return fe=this._ngSelect.compareWith?Mt=>this._ngSelect.compareWith(Mt.value,Yt):this._ngSelect.bindValue?Mt=>!Mt.children&&this.resolveNested(Mt.value,this._ngSelect.bindValue)===Yt:Mt=>Mt.value===Yt||!Mt.children&&Mt.label&&Mt.label===this.resolveNested(Yt,this._ngSelect.bindLabel),this._items.find(Mt=>fe(Mt))}addItem(Yt){const fe=this.mapItem(Yt,this._items.length);return this._items.push(fe),this._filteredItems.push(fe),fe}clearSelected(Yt=!1){this._selectionModel.clear(Yt),this._items.forEach(fe=>{fe.selected=Yt&&fe.selected&&fe.disabled,fe.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(Yt){return Yt=Jn(Yt).toLocaleLowerCase(),this.filteredItems.find(fe=>Jn(fe.label).toLocaleLowerCase().substr(0,Yt.length)===Yt)}filter(Yt){if(!Yt)return void this.resetFilteredItems();this._filteredItems=[],Yt=this._ngSelect.searchFn?Yt:Jn(Yt).toLocaleLowerCase();const fe=this._ngSelect.searchFn||this._defaultSearchFn,Mt=this._ngSelect.hideSelected;for(const Vt of Array.from(this._groups.keys())){const ht=[];for(const st of this._groups.get(Vt))Mt&&(st.parent&&st.parent.selected||st.selected)||fe(Yt,this._ngSelect.searchFn?st.value:st)&&ht.push(st);if(ht.length>0){const[st]=ht.slice(-1);if(st.parent){const It=this._items.find(cn=>cn===st.parent);this._filteredItems.push(It)}this._filteredItems.push(...ht)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(Yt=>!Yt.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(Yt){this._markedIndex=this._filteredItems.indexOf(Yt)}markSelectedOrDefault(Yt){if(0===this._filteredItems.length)return;const fe=this._getLastMarkedIndex();this._markedIndex=fe>-1?fe:Yt?this.filteredItems.findIndex(Mt=>!Mt.disabled):-1}resolveNested(Yt,fe){if(!Ce(Yt))return Yt;if(-1===fe.indexOf("."))return Yt[fe];{const Mt=fe.split(".");let Vt=Yt;for(let ht=0,st=Mt.length;ht-1===this.selectedItems.indexOf(fe)))}_showSelected(Yt){if(this._filteredItems.push(Yt),Yt.parent){const fe=Yt.parent;this._filteredItems.find(Vt=>Vt===fe)||this._filteredItems.push(fe)}else if(Yt.children)for(const fe of Yt.children)fe.selected=!1,this._filteredItems.push(fe);this._filteredItems=[...this._filteredItems.sort((fe,Mt)=>fe.index-Mt.index)]}_hideSelected(Yt){this._filteredItems=this._filteredItems.filter(fe=>fe!==Yt),Yt.parent?Yt.parent.children.every(Mt=>Mt.selected)&&(this._filteredItems=this._filteredItems.filter(Mt=>Mt!==Yt.parent)):Yt.children&&(this._filteredItems=this.filteredItems.filter(fe=>fe.parent!==Yt))}_defaultSearchFn(Yt,fe){return Jn(fe.label).toLocaleLowerCase().indexOf(Yt)>-1}_getNextItemIndex(Yt){return Yt>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(Yt){0===this._filteredItems.length||this._filteredItems.every(fe=>fe.disabled)||(this._markedIndex=this._getNextItemIndex(Yt),this.markedItem.disabled&&this._stepToItem(Yt))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const Yt=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&Yt<0?-1:Math.max(this.markedIndex,Yt)}_groupBy(Yt,fe){const Mt=new Map;if(0===Yt.length)return Mt;if(Array.isArray(Yt[0].value[fe])){for(const st of Yt){const It=(st.value[fe]||[]).map((cn,_n)=>this.mapItem(cn,_n));Mt.set(st,It)}return Mt}const Vt=ae(this._ngSelect.groupBy),ht=st=>{const It=Vt?fe(st.value):st.value[fe];return Ct(It)?It:void 0};for(const st of Yt){const It=ht(st),cn=Mt.get(It);cn?cn.push(st):Mt.set(It,[st])}return Mt}_flatten(Yt){const fe=ae(this._ngSelect.groupBy),Mt=[];for(const Vt of Array.from(Yt.keys())){let ht=Mt.length;if(void 0===Vt){const On=Yt.get(void 0)||[];Mt.push(...On.map(ni=>(ni.index=ht++,ni)));continue}const st=Ce(Vt),It={label:st?"":String(Vt),children:void 0,parent:null,index:ht++,disabled:!this._ngSelect.selectableGroup,htmlId:di()},cn=fe?this._ngSelect.bindLabel:this._ngSelect.groupBy,_n=this._ngSelect.groupValue||(()=>st?Vt.value:{[cn]:Vt}),En=Yt.get(Vt).map(On=>(On.parent=It,On.children=void 0,On.index=ht++,On));It.children=En,It.value=_n(Vt,En.map(On=>On.value)),Mt.push(It),Mt.push(...En)}return Mt}}var _t=function(wt){return wt[wt.Tab=9]="Tab",wt[wt.Enter=13]="Enter",wt[wt.Esc=27]="Esc",wt[wt.Space=32]="Space",wt[wt.ArrowUp=38]="ArrowUp",wt[wt.ArrowDown=40]="ArrowDown",wt[wt.Backspace=8]="Backspace",wt}(_t||{});let G=(()=>{class wt{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(fe,Mt,Vt){const ht=this._dimensions,st=ht.itemHeight*Mt,cn=Math.max(0,fe)/st*Mt;let _n=Math.min(Mt,Math.ceil(cn)+(ht.itemsPerViewport+1));const On=Math.max(0,_n-ht.itemsPerViewport);let ni=Math.min(On,Math.floor(cn)),Vn=ht.itemHeight*Math.ceil(ni)-ht.itemHeight*Math.min(ni,Vt);return Vn=isNaN(Vn)?0:Vn,ni=isNaN(ni)?-1:ni,_n=isNaN(_n)?-1:_n,ni-=Vt,ni=Math.max(0,ni),_n+=Vt,_n=Math.min(Mt,_n),{topPadding:Vn,scrollHeight:st,start:ni,end:_n}}setDimensions(fe,Mt){const Vt=Math.max(1,Math.floor(Mt/fe));this._dimensions={itemHeight:fe,panelHeight:Mt,itemsPerViewport:Vt}}getScrollTo(fe,Mt,Vt){const{panelHeight:ht}=this.dimensions,st=fe+Mt,cn=Vt+ht;return ht>=st&&Vt===fe?null:st>cn?Vt+st-cn:fe<=Vt?fe:null}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac})}return wt})();const U=["top","right","bottom","left"],ve=typeof requestAnimationFrame<"u"?re.Z:ue.E;let Pe=(()=>{class wt{constructor(fe,Mt,Vt,ht,st){this._renderer=fe,this._zone=Mt,this._panelService=Vt,this._document=st,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.outsideClick=new e.vpe,this._destroy$=new se.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=ht.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(fe){fe!==this._itemsLength&&(this._itemsLength=fe,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:fe,panelHeight:Mt}=this._panelService.dimensions,Vt=this.markedItem.index*fe;return Mt>Vt?0:Vt}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(fe){if(fe.items){const Mt=fe.items;this._onItemsChange(Mt.currentValue,Mt.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(fe,Mt=!1){if(!fe)return;const Vt=this.items.indexOf(fe);if(Vt<0||Vt>=this.itemsLength)return;let ht;if(this.virtualScroll){const st=this._panelService.dimensions.itemHeight;ht=this._panelService.getScrollTo(Vt*st,st,this._lastScrollPosition)}else{const st=this._dropdown.querySelector(`#${fe.htmlId}`);ht=this._panelService.getScrollTo(st.offsetTop,st.clientHeight,Mt?st.offsetTop:this._lastScrollPosition)}Ct(ht)&&(this._scrollablePanel.scrollTop=ht)}scrollToTag(){const fe=this._scrollablePanel;fe.scrollTop=fe.scrollHeight-fe.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),U.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(fe){U.forEach(Vt=>{const ht=`ng-select-${Vt}`;this._renderer.removeClass(this._dropdown,ht),this._renderer.removeClass(this._select,ht)});const Mt=`ng-select-${fe}`;this._renderer.addClass(this._dropdown,Mt),this._renderer.addClass(this._select,Mt)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,te.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,D.R)(this._destroy$),(0,I.e)(0,ve)).subscribe(fe=>{const Mt=fe.path||fe.composedPath&&fe.composedPath();this._onContentScrolled(Mt&&0!==Mt.length?Mt[0].scrollTop:fe.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,oe.T)((0,te.R)(this._document,"touchstart",{capture:!0}),(0,te.R)(this._document,"mousedown",{capture:!0})).pipe((0,D.R)(this._destroy$)).subscribe(fe=>this._checkToClose(fe))})}_checkToClose(fe){if(this._select.contains(fe.target)||this._dropdown.contains(fe.target))return;const Mt=fe.path||fe.composedPath&&fe.composedPath();fe.target&&fe.target.shadowRoot&&Mt&&Mt[0]&&this._select.contains(Mt[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(fe,Mt){this.items=fe||[],this._scrollToEndFired=!1,this.itemsLength=fe.length,this.virtualScroll?this._updateItemsRange(Mt):(this._setVirtualHeight(),this._updateItems(Mt))}_updateItems(fe){this.update.emit(this.items),!1!==fe&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,fe)})})}_updateItemsRange(fe){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{fe?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(fe){this.virtualScroll&&this._renderItemsRange(fe),this._lastScrollPosition=fe,this._fireScrollToEnd(fe)}_updateVirtualHeight(fe){this._updateScrollHeight&&(this._virtualPadding.style.height=`${fe}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(fe=null){if(fe&&this._lastScrollPosition===fe)return;const Mt=this._panelService.calculateItems(fe=fe||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(Mt.scrollHeight),this._contentPanel.style.transform=`translateY(${Mt.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(Mt.start,Mt.end)),this.scroll.emit({start:Mt.start,end:Mt.end})}),Ct(fe)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=fe,this._lastScrollPosition=fe)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[fe]=this.items;return this.update.emit([fe]),Promise.resolve().then(()=>{const Vt=this._dropdown.querySelector(`#${fe.htmlId}`).clientHeight;return this._virtualPadding.style.height=Vt*this.itemsLength+"px",this._panelService.setDimensions(Vt,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(fe){this._scrollToEndFired||0===fe||fe+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(fe){if("auto"!==this.position)return this.position;const Mt=this._select.getBoundingClientRect(),Vt=document.documentElement.scrollTop||document.body.scrollTop;return Mt.top+window.pageYOffset+Mt.height+fe.getBoundingClientRect().height>Vt+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const fe=this._select.getBoundingClientRect(),Mt=this._parent.getBoundingClientRect();this._dropdown.style.left=fe.left-Mt.left+"px",this._dropdown.style.width=fe.width+"px",this._dropdown.style.minWidth=fe.width+"px"}_updateYPosition(){const fe=this._select.getBoundingClientRect(),Mt=this._parent.getBoundingClientRect(),Vt=fe.height;"top"===this._currentPosition?(this._dropdown.style.bottom=Mt.bottom-fe.bottom+Vt+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=fe.top-Mt.top+Vt+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,te.R)(this._dropdown,"mousedown").pipe((0,D.R)(this._destroy$)).subscribe(fe=>{"INPUT"!==fe.target.tagName&&fe.preventDefault()})})}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(G),e.Y36(e.SBq),e.Y36(ce.K0,8))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-dropdown-panel"]],viewQuery:function(Mt,Vt){if(1&Mt&&(e.Gf(_e,7,e.SBq),e.Gf(Re,7,e.SBq),e.Gf(mt,7,e.SBq)),2&Mt){let ht;e.iGM(ht=e.CRH())&&(Vt.contentElementRef=ht.first),e.iGM(ht=e.CRH())&&(Vt.scrollElementRef=ht.first),e.iGM(ht=e.CRH())&&(Vt.paddingElementRef=ht.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[e.TTD],ngContentSelectors:Tt,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(Mt,Vt){1&Mt&&(e.F$t(),e.YNc(0,Lt,2,4,"div",0),e.TgZ(1,"div",1,2),e._UZ(3,"div",null,3),e.TgZ(5,"div",null,4),e.Hsn(7),e.qZA()(),e.YNc(8,je,2,4,"div",5)),2&Mt&&(e.Q6J("ngIf",Vt.headerTemplate),e.xp6(3),e.ekj("total-padding",Vt.virtualScroll),e.xp6(2),e.ekj("scrollable-content",Vt.virtualScroll&&Vt.items.length),e.xp6(3),e.Q6J("ngIf",Vt.footerTemplate))},dependencies:[ce.O5,ce.tP],encapsulation:2,changeDetection:0})}return wt})(),ut=(()=>{class wt{get disabled(){return this._disabled}set disabled(fe){this._disabled=this._isDisabled(fe)}constructor(fe){this.elementRef=fe,this.stateChange$=new se.x,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(fe){fe.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(fe){return null!=fe&&"false"!=`${fe}`}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.SBq))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[e.TTD],ngContentSelectors:Tt,decls:1,vars:0,template:function(Mt,Vt){1&Mt&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0})}return wt})(),We=(()=>{class wt{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"})}return wt})(),ze=(()=>{class wt{warn(fe){console.warn(fe)}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"})}return wt})();const be=new e.OlP("ng-select-selection-model");let Te=(()=>{class wt{get items(){return this._items}set items(fe){null===fe&&(fe=[]),this._itemsAreUsed=!0,this._items=fe}get compareWith(){return this._compareWith}set compareWith(fe){if(null!=fe&&!ae(fe))throw Error("`compareWith` must be a function.");this._compareWith=fe}get clearSearchOnAdd(){return Ct(this._clearSearchOnAdd)?this._clearSearchOnAdd:Ct(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(fe){this._clearSearchOnAdd=fe}get deselectOnClick(){return Ct(this._deselectOnClick)?this._deselectOnClick:Ct(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(fe){this._deselectOnClick=fe}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(fe,Mt,Vt,ht,st,It,cn){this.classes=fe,this.autoFocus=Mt,this.config=Vt,this._cd=It,this._console=cn,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=_n=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new e.vpe,this.focusEvent=new e.vpe,this.changeEvent=new e.vpe,this.openEvent=new e.vpe,this.closeEvent=new e.vpe,this.searchEvent=new e.vpe,this.clearEvent=new e.vpe,this.addEvent=new e.vpe,this.removeEvent=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=di(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new se.x,this._keyPress$=new se.x,this._onChange=_n=>{},this._onTouched=()=>{},this.clearItem=_n=>{const En=this.selectedItems.find(On=>On.value===_n);this.unselect(En)},this.trackByOption=(_n,En)=>this.trackByFn?this.trackByFn(En.value):En,this._mergeGlobalConfig(Vt),this.itemsList=new qt(this,ht()),this.element=st.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(fe=>fe.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(fe){fe.multiple&&this.itemsList.clearSelected(),fe.items&&this._setItems(fe.items.currentValue||[]),fe.isOpen&&(this._manualOpen=Ct(fe.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ct(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(fe){if(_t[fe.which]){if(!1===this.keyDownFn(fe))return;this.handleKeyCode(fe)}else fe.key&&1===fe.key.length&&this._keyPress$.next(fe.key.toLocaleLowerCase())}handleKeyCode(fe){this.clearButton&&this.clearButton.nativeElement===fe.target?this.handleKeyCodeClear(fe):this.handleKeyCodeInput(fe)}handleKeyCodeInput(fe){switch(fe.which){case _t.ArrowDown:this._handleArrowDown(fe);break;case _t.ArrowUp:this._handleArrowUp(fe);break;case _t.Space:this._handleSpace(fe);break;case _t.Enter:this._handleEnter(fe);break;case _t.Tab:this._handleTab(fe);break;case _t.Esc:this.close(),fe.preventDefault();break;case _t.Backspace:this._handleBackspace()}}handleKeyCodeClear(fe){fe.which===_t.Enter&&(this.handleClearClick(),fe.preventDefault())}handleMousedown(fe){const Mt=fe.target;"INPUT"!==Mt.tagName&&fe.preventDefault(),Mt.classList.contains("ng-clear-wrapper")?this.handleClearClick():Mt.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():Mt.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(fe){this.itemsList.clearSelected(),this._handleWriteValue(fe),this._cd.markForCheck()}registerOnChange(fe){this._onChange=fe}registerOnTouched(fe){this._onTouched=fe}setDisabledState(fe){this._disabled=fe,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(fe){!fe||fe.disabled||this.disabled||(this.deselectOnClick&&fe.selected?this.unselect(fe):this.select(fe),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(fe){fe.selected||(this.itemsList.select(fe),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(fe.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(fe){fe&&(this.itemsList.unselect(fe),this.focus(),this._updateNgModel(),this.removeEvent.emit(fe.value))}selectTag(){let fe;fe=ae(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const Mt=Vt=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(Vt,null):this.itemsList.addItem(Vt);!function J(wt){return wt instanceof Promise}(fe)?fe&&this.select(Mt(fe)):fe.then(Vt=>this.select(Mt(Vt))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const fe=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(Mt=>Mt.label.toLowerCase()===fe)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(Mt=>Mt.label.toLowerCase()===fe))&&!this.loading}showNoItemsFound(){const fe=0===this.itemsList.filteredItems.length;return(fe&&!this._isTypeahead&&!this.loading||fe&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(fe){this._isComposing=!1,!this.searchWhileComposing&&this.filter(fe)}filter(fe){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=fe,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(fe),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:fe,items:this.itemsList.filteredItems.map(Mt=>Mt.value)}),this.open())}onInputFocus(fe){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(fe),this.focused=!0)}onInputBlur(fe){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(fe),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(fe){fe.disabled||this.itemsList.markItem(fe)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const fe=this.selectedItems&&this.selectedItems[0];this.searchTerm=fe&&fe.label||null}_setItems(fe){const Mt=fe[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Ct(Mt)?!Ce(Mt):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(fe),fe.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Ct(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const fe=Vt=>{this.items=Vt.map(ht=>({$ngOptionValue:ht.value,$ngOptionLabel:ht.elementRef.nativeElement.innerHTML,disabled:ht.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},Mt=()=>{const Vt=(0,oe.T)(this.ngOptions.changes,this._destroy$);(0,oe.T)(...this.ngOptions.map(ht=>ht.stateChange$)).pipe((0,D.R)(Vt)).subscribe(ht=>{const st=this.itemsList.findItem(ht.value);st.disabled=ht.disabled,st.label=ht.label||st.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,S.O)(this.ngOptions),(0,D.R)(this._destroy$)).subscribe(Vt=>{this.bindLabel=this._defaultLabel,fe(Vt),Mt()})}_isValidWriteValue(fe){if(!Ct(fe)||this.multiple&&""===fe||Array.isArray(fe)&&0===fe.length)return!1;const Mt=Vt=>!(!Ct(this.compareWith)&&Ce(Vt)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(Vt)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(fe)?fe.every(Vt=>Mt(Vt)):(this._console.warn("Multiple select ngModel should be array."),!1):Mt(fe)}_handleWriteValue(fe){if(!this._isValidWriteValue(fe))return;const Mt=Vt=>{let ht=this.itemsList.findItem(Vt);if(ht)this.itemsList.select(ht);else{const st=Ce(Vt);st||!st&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(Vt,null)):this.bindValue&&(ht={[this.bindLabel]:null,[this.bindValue]:Vt},this.itemsList.select(this.itemsList.mapItem(ht,null)))}};this.multiple?fe.forEach(Vt=>Mt(Vt)):Mt(fe)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,D.R)(this._destroy$),(0,w.b)(fe=>this._pressedKeys.push(fe)),(0,n.b)(200),(0,Z.h)(()=>this._pressedKeys.length>0),(0,ee.U)(()=>this._pressedKeys.join(""))).subscribe(fe=>{const Mt=this.itemsList.findByLabel(fe);Mt&&(this.isOpen?(this.itemsList.markItem(Mt),this._scrollToMarked(),this._cd.markForCheck()):this.select(Mt)),this._pressedKeys=[]})}_setInputAttributes(){const fe=this.searchInput.nativeElement,Mt={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const Vt of Object.keys(Mt))fe.setAttribute(Vt,Mt[Vt])}_updateNgModel(){const fe=[];for(const Vt of this.selectedItems)if(this.bindValue){let ht=null;ht=Vt.children?Vt.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(Vt.value,this.bindValue),fe.push(ht)}else fe.push(Vt.value);const Mt=this.selectedItems.map(Vt=>Vt.value);this.multiple?(this._onChange(fe),this.changeEvent.emit(Mt)):(this._onChange(Ct(fe[0])?fe[0]:null),this.changeEvent.emit(Mt[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(fe){this.searchTerm=fe,this._isTypeahead&&this.typeahead.next(fe)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(fe){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),fe.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),fe.preventDefault()):this.showAddTag?(this.selectTag(),fe.preventDefault()):this.close():this.close()}_handleEnter(fe){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}fe.preventDefault()}_handleSpace(fe){this.isOpen||this._manualOpen||(this.open(),fe.preventDefault())}_handleArrowDown(fe){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),fe.preventDefault()}_handleArrowUp(fe){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),fe.preventDefault())}_nextItemIsTag(fe){const Mt=this.itemsList.markedIndex+fe;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(Mt<0||Mt===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const fe=this.searchTerm&&this.searchTerm.trim();return fe&&fe.length>=this.minTermLength}_mergeGlobalConfig(fe){this.placeholder=this.placeholder||fe.placeholder,this.notFoundText=this.notFoundText||fe.notFoundText,this.typeToSearchText=this.typeToSearchText||fe.typeToSearchText,this.addTagText=this.addTagText||fe.addTagText,this.loadingText=this.loadingText||fe.loadingText,this.clearAllText=this.clearAllText||fe.clearAllText,this.virtualScroll=Ct(this.virtualScroll)?this.virtualScroll:!!Ct(fe.disableVirtualScroll)&&!fe.disableVirtualScroll,this.openOnEnter=Ct(this.openOnEnter)?this.openOnEnter:fe.openOnEnter,this.appendTo=this.appendTo||fe.appendTo,this.bindValue=this.bindValue||fe.bindValue,this.bindLabel=this.bindLabel||fe.bindLabel,this.appearance=this.appearance||fe.appearance}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.$8M("class"),e.$8M("autofocus"),e.Y36(We),e.Y36(be),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ze))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-select"]],contentQueries:function(Mt,Vt,ht){if(1&Mt&&(e.Suo(ht,ot,5,e.Rgc),e.Suo(ht,Se,5,e.Rgc),e.Suo(ht,Ft,5,e.Rgc),e.Suo(ht,lt,5,e.Rgc),e.Suo(ht,Bt,5,e.Rgc),e.Suo(ht,Ut,5,e.Rgc),e.Suo(ht,fn,5,e.Rgc),e.Suo(ht,gn,5,e.Rgc),e.Suo(ht,An,5,e.Rgc),e.Suo(ht,jn,5,e.Rgc),e.Suo(ht,ai,5,e.Rgc),e.Suo(ht,ut,5)),2&Mt){let st;e.iGM(st=e.CRH())&&(Vt.optionTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.optgroupTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.labelTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.multiLabelTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.headerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.footerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.notFoundTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.typeToSearchTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.loadingTextTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.tagTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.loadingSpinnerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.ngOptions=st)}},viewQuery:function(Mt,Vt){if(1&Mt&&(e.Gf(Pe,5),e.Gf(xt,7),e.Gf(St,5)),2&Mt){let ht;e.iGM(ht=e.CRH())&&(Vt.dropdownPanel=ht.first),e.iGM(ht=e.CRH())&&(Vt.searchInput=ht.first),e.iGM(ht=e.CRH())&&(Vt.clearButton=ht.first)}},hostVars:20,hostBindings:function(Mt,Vt){1&Mt&&e.NdJ("keydown",function(st){return Vt.handleKeyDown(st)}),2&Mt&&e.ekj("ng-select-typeahead",Vt.typeahead)("ng-select-multiple",Vt.multiple)("ng-select-taggable",Vt.addTag)("ng-select-searchable",Vt.searchable)("ng-select-clearable",Vt.clearable)("ng-select-opened",Vt.isOpen)("ng-select",Vt.useDefaultClass)("ng-select-disabled",Vt.disabled)("ng-select-filtered",Vt.filtered)("ng-select-single",Vt.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[e._Bn([{provide:l.JU,useExisting:(0,e.Gpc)(()=>wt),multi:!0},G]),e.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(Mt,Vt){if(1&Mt){const ht=e.EpF();e.TgZ(0,"div",0),e.NdJ("mousedown",function(It){return Vt.handleMousedown(It)}),e.TgZ(1,"div",1)(2,"div",2),e._uU(3),e.qZA(),e.YNc(4,tn,2,2,"ng-container",3),e.YNc(5,Yn,1,5,null,3),e.TgZ(6,"div",4)(7,"input",5,6),e.NdJ("input",function(){e.CHM(ht);const It=e.MAs(8);return e.KtG(Vt.filter(It.value))})("compositionstart",function(){return Vt.onCompositionStart()})("compositionend",function(){e.CHM(ht);const It=e.MAs(8);return e.KtG(Vt.onCompositionEnd(It.value))})("focus",function(It){return Vt.onInputFocus(It)})("blur",function(It){return Vt.onInputBlur(It)})("change",function(It){return It.stopPropagation()}),e.qZA()()(),e.YNc(9,Rn,4,1,"ng-container",3),e.YNc(10,dt,4,1,"span",7),e.TgZ(11,"span",8),e._UZ(12,"span",9),e.qZA()(),e.YNc(13,vn,7,19,"ng-dropdown-panel",10)}2&Mt&&(e.ekj("ng-appearance-outline","outline"===Vt.appearance)("ng-has-value",Vt.hasValue),e.xp6(3),e.Oqu(Vt.placeholder),e.xp6(1),e.Q6J("ngIf",(!Vt.multiLabelTemplate||!Vt.multiple)&&Vt.selectedItems.length>0),e.xp6(1),e.Q6J("ngIf",Vt.multiple&&Vt.multiLabelTemplate&&Vt.selectedValues.length>0),e.xp6(1),e.uIk("aria-expanded",Vt.isOpen)("aria-owns",Vt.isOpen?Vt.dropdownId:null),e.xp6(1),e.Q6J("readOnly",!Vt.searchable||Vt.itemsList.maxItemsSelected)("disabled",Vt.disabled)("value",Vt.searchTerm?Vt.searchTerm:""),e.uIk("id",Vt.labelForId)("tabindex",Vt.tabIndex)("aria-activedescendant",Vt.isOpen?null==Vt.itemsList||null==Vt.itemsList.markedItem?null:Vt.itemsList.markedItem.htmlId:null)("aria-controls",Vt.isOpen?Vt.dropdownId:null),e.xp6(2),e.Q6J("ngIf",Vt.loading),e.xp6(1),e.Q6J("ngIf",Vt.showClear()),e.xp6(3),e.Q6J("ngIf",Vt.isOpen))},dependencies:[ce.mk,ce.sg,ce.O5,ce.tP,Pe,Oe],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return wt})();function He(){return new Wt}class Wt{constructor(){this._selected=[]}get value(){return this._selected}select(Yt,fe,Mt){if(Yt.selected=!0,(!Yt.children||!fe&&Mt)&&this._selected.push(Yt),fe)if(Yt.parent){const Vt=Yt.parent.children.length,ht=Yt.parent.children.filter(st=>st.selected).length;Yt.parent.selected=Vt===ht}else Yt.children&&(this._setChildrenSelectedState(Yt.children,!0),this._removeChildren(Yt),this._selected=Mt&&this._activeChildren(Yt)?[...this._selected.filter(Vt=>Vt.parent!==Yt),Yt]:[...this._selected,...Yt.children.filter(Vt=>!Vt.disabled)])}unselect(Yt,fe){if(this._selected=this._selected.filter(Mt=>Mt!==Yt),Yt.selected=!1,fe)if(Yt.parent&&Yt.parent.selected){const Mt=Yt.parent.children;this._removeParent(Yt.parent),this._removeChildren(Yt.parent),this._selected.push(...Mt.filter(Vt=>Vt!==Yt&&!Vt.disabled)),Yt.parent.selected=!1}else Yt.children&&(this._setChildrenSelectedState(Yt.children,!1),this._removeChildren(Yt))}clear(Yt){this._selected=Yt?this._selected.filter(fe=>fe.disabled):[]}_setChildrenSelectedState(Yt,fe){for(const Mt of Yt)Mt.disabled||(Mt.selected=fe)}_removeChildren(Yt){this._selected=[...this._selected.filter(fe=>fe.parent!==Yt),...Yt.children.filter(fe=>fe.parent===Yt&&fe.disabled&&fe.selected)]}_removeParent(Yt){this._selected=this._selected.filter(fe=>fe!==Yt)}_activeChildren(Yt){return Yt.children.every(fe=>!fe.disabled||fe.selected)}}let Pn=(()=>{class wt{static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275mod=e.oAB({type:wt});static#n=this.\u0275inj=e.cJS({providers:[{provide:be,useValue:He}],imports:[ce.ez]})}return wt})()},469:(ft,Ie,C)=>{"use strict";C.d(Ie,{S:()=>$f,f:()=>vu});var e=C(5861),l=C(6814),D=C(5879),I=C(6223);var o,n=(o=function(i,s){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(c[v]=h[v])})(i,s)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}),Z=function(o){function t(i,s){var c=this.constructor,h=o.call(this,i,s)||this;return Object.defineProperty(h,"name",{value:c.name,enumerable:!1,configurable:!0}),function S(o,t){var i=Object.setPrototypeOf;i?i(o,t):o.__proto__=t}(h,c.prototype),function w(o,t){void 0===t&&(t=o.constructor);var i=Error.captureStackTrace;i&&i(o,t)}(h),h}return n(t,o),t}(Error),ue=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),se=function(o){function t(i){void 0===i&&(i=void 0);var s=o.call(this,i)||this;return s.message=i,s}return ue(t,o),t.prototype.getKind=function(){return this.constructor.kind},t.kind="Exception",t}(Z);const te=se;var oe=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ce=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return oe(t,o),t.kind="ArgumentException",t}(te);const _e=ce;var Re=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),mt=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Re(t,o),t.kind="IllegalArgumentException",t}(te);const Ge=mt;var Lt=function(){function o(t){if(this.binarizer=t,null===t)throw new Ge("Binarizer must be non-null.")}return o.prototype.getWidth=function(){return this.binarizer.getWidth()},o.prototype.getHeight=function(){return this.binarizer.getHeight()},o.prototype.getBlackRow=function(t,i){return this.binarizer.getBlackRow(t,i)},o.prototype.getBlackMatrix=function(){return null==this.matrix&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},o.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},o.prototype.crop=function(t,i,s,c){var h=this.binarizer.getLuminanceSource().crop(t,i,s,c);return new o(this.binarizer.createBinarizer(h))},o.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},o.prototype.rotateCounterClockwise=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new o(this.binarizer.createBinarizer(t))},o.prototype.rotateCounterClockwise45=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new o(this.binarizer.createBinarizer(t))},o.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},o}();const je=Lt;var Tt=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),xt=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Tt(t,o),t.getChecksumInstance=function(){return new t},t.kind="ChecksumException",t}(te);const St=xt;var Zt=function(){function o(t){this.source=t}return o.prototype.getLuminanceSource=function(){return this.source},o.prototype.getWidth=function(){return this.source.getWidth()},o.prototype.getHeight=function(){return this.source.getHeight()},o}();const yt=Zt;var un=function(){function o(){}return o.arraycopy=function(t,i,s,c,h){for(;h--;)s[c++]=t[i++]},o.currentTimeMillis=function(){return Date.now()},o}();const Jt=un;var tn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),wn=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return tn(t,o),t.kind="IndexOutOfBoundsException",t}(te);const Ln=wn;var Yn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ti=function(o){function t(i,s){void 0===i&&(i=void 0),void 0===s&&(s=void 0);var c=o.call(this,s)||this;return c.index=i,c.message=s,c}return Yn(t,o),t.kind="ArrayIndexOutOfBoundsException",t}(Ln);const gi=ti;var dt=function(){function o(){}return o.fill=function(t,i){for(var s=0,c=t.length;ss)throw new Ge("fromIndex("+i+") > toIndex("+s+")");if(i<0)throw new gi(i);if(s>t)throw new gi(s)},o.asList=function(){for(var t=[],i=0;i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),v=h.next();!v.done;v=h.next())c=31*c+v.value}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c},o.fillUint8Array=function(t,i){for(var s=0;s!==t.length;s++)t[s]=i},o.copyOf=function(t,i){return t.slice(0,i)},o.copyOfUint8Array=function(t,i){if(t.length<=i){var s=new Uint8Array(i);return s.set(t),s}return t.slice(0,i)},o.copyOfRange=function(t,i,s){var c=s-i,h=new Int32Array(c);return Jt.arraycopy(t,i,h,0,c),h},o.binarySearch=function(t,i,s){void 0===s&&(s=o.numberComparator);for(var c=0,h=t.length-1;c<=h;){var v=h+c>>1,M=s(i,t[v]);if(M>0)c=v+1;else{if(!(M<0))return v;h=v-1}}return-c-1},o.numberComparator=function(t,i){return t-i},o}();const at=dt;var Be=function(){function o(){}return o.numberOfTrailingZeros=function(t){var i;if(0===t)return 32;var s=31;return 0!=(i=t<<16)&&(s-=16,t=i),0!=(i=t<<8)&&(s-=8,t=i),0!=(i=t<<4)&&(s-=4,t=i),0!=(i=t<<2)&&(s-=2,t=i),s-(t<<1>>>31)},o.numberOfLeadingZeros=function(t){if(0===t)return 32;var i=1;return t>>>16||(i+=16,t<<=16),t>>>24||(i+=8,t<<=8),t>>>28||(i+=4,t<<=4),t>>>30||(i+=2,t<<=2),i-(t>>>31)},o.toHexString=function(t){return t.toString(16)},o.toBinaryString=function(t){return String(parseInt(String(t),2))},o.bitCount=function(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,63&(t+=t>>>8)+(t>>>16)},o.truncDivision=function(t,i){return Math.trunc(t/i)},o.parseInt=function(t,i){return void 0===i&&(i=void 0),parseInt(t,i)},o.MIN_VALUE_32_BITS=-2147483648,o.MAX_VALUE=Number.MAX_SAFE_INTEGER,o}();const Ee=Be;var $e=function(){function o(t,i){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=null==i?o.makeArray(t):i)}return o.prototype.getSize=function(){return this.size},o.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},o.prototype.ensureCapacity=function(t){if(t>32*this.bits.length){var i=o.makeArray(t);Jt.arraycopy(this.bits,0,i,0,this.bits.length),this.bits=i}},o.prototype.get=function(t){return 0!=(this.bits[Math.floor(t/32)]&1<<(31&t))},o.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(31&t)},o.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(31&t)},o.prototype.getNextSet=function(t){var i=this.size;if(t>=i)return i;var s=this.bits,c=Math.floor(t/32),h=s[c];h&=~((1<<(31&t))-1);for(var v=s.length;0===h;){if(++c===v)return i;h=s[c]}var M=32*c+Ee.numberOfTrailingZeros(h);return M>i?i:M},o.prototype.getNextUnset=function(t){var i=this.size;if(t>=i)return i;var s=this.bits,c=Math.floor(t/32),h=~s[c];h&=~((1<<(31&t))-1);for(var v=s.length;0===h;){if(++c===v)return i;h=~s[c]}var M=32*c+Ee.numberOfTrailingZeros(h);return M>i?i:M},o.prototype.setBulk=function(t,i){this.bits[Math.floor(t/32)]=i},o.prototype.setRange=function(t,i){if(ithis.size)throw new Ge;if(i!==t){i--;for(var s=Math.floor(t/32),c=Math.floor(i/32),h=this.bits,v=s;v<=c;v++)h[v]|=(2<<(vs?0:31&t))}},o.prototype.clear=function(){for(var t=this.bits.length,i=this.bits,s=0;sthis.size)throw new Ge;if(i===t)return!0;i--;for(var c=Math.floor(t/32),h=Math.floor(i/32),v=this.bits,M=c;M<=h;M++){var $=(2<<(Mc?0:31&t))&4294967295;if((v[M]&$)!==(s?$:0))return!1}return!0},o.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},o.prototype.appendBits=function(t,i){if(i<0||i>32)throw new Ge("Num bits must be between 0 and 32");this.ensureCapacity(this.size+i);for(var s=i;s>0;s--)this.appendBit(1==(t>>s-1&1))},o.prototype.appendBitArray=function(t){var i=t.size;this.ensureCapacity(this.size+i);for(var s=0;s>1&1431655765|(1431655765&v)<<1)>>2&858993459|(858993459&v)<<2)>>4&252645135|(252645135&v)<<4)>>8&16711935|(16711935&v)<<8)>>16&65535|(65535&v)<<16}if(this.size!==32*s){var M=32*s-this.size,O=t[0]>>>M;for(h=1;h>>M}t[s-1]=O}this.bits=t},o.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},o.prototype.equals=function(t){return t instanceof o&&(this.size===t.size&&at.equals(this.bits,t.bits))},o.prototype.hashCode=function(){return 31*this.size+at.hashCode(this.bits)},o.prototype.toString=function(){for(var t="",i=0,s=this.size;i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(v),we=de.next();!we.done;we=de.next())o.NAME_TO_ECI.set(we.value,this)}catch(vt){c={error:vt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}}return o.prototype.getValueIdentifier=function(){return this.valueIdentifier},o.prototype.getName=function(){return this.name},o.prototype.getValue=function(){return this.values[0]},o.getCharacterSetECIByValue=function(t){if(t<0||t>=900)throw new bt("incorect value");var i=o.VALUES_TO_ECI.get(t);if(void 0===i)throw new bt("incorect value");return i},o.getCharacterSetECIByName=function(t){var i=o.NAME_TO_ECI.get(t);if(void 0===i)throw new bt("incorect value");return i},o.prototype.equals=function(t){if(!(t instanceof o))return!1;var i=t;return this.getName()===i.getName()},o.VALUE_IDENTIFIER_TO_ECI=new Map,o.VALUES_TO_ECI=new Map,o.NAME_TO_ECI=new Map,o.Cp437=new o(Qt.Cp437,Int32Array.from([0,2]),"Cp437"),o.ISO8859_1=new o(Qt.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),o.ISO8859_2=new o(Qt.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),o.ISO8859_3=new o(Qt.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),o.ISO8859_4=new o(Qt.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),o.ISO8859_5=new o(Qt.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),o.ISO8859_6=new o(Qt.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),o.ISO8859_7=new o(Qt.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),o.ISO8859_8=new o(Qt.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),o.ISO8859_9=new o(Qt.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),o.ISO8859_10=new o(Qt.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),o.ISO8859_11=new o(Qt.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),o.ISO8859_13=new o(Qt.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),o.ISO8859_14=new o(Qt.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),o.ISO8859_15=new o(Qt.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),o.ISO8859_16=new o(Qt.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),o.SJIS=new o(Qt.SJIS,20,"SJIS","Shift_JIS"),o.Cp1250=new o(Qt.Cp1250,21,"Cp1250","windows-1250"),o.Cp1251=new o(Qt.Cp1251,22,"Cp1251","windows-1251"),o.Cp1252=new o(Qt.Cp1252,23,"Cp1252","windows-1252"),o.Cp1256=new o(Qt.Cp1256,24,"Cp1256","windows-1256"),o.UnicodeBigUnmarked=new o(Qt.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),o.UTF8=new o(Qt.UTF8,26,"UTF8","UTF-8"),o.ASCII=new o(Qt.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),o.Big5=new o(Qt.Big5,28,"Big5"),o.GB18030=new o(Qt.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),o.EUC_KR=new o(Qt.EUC_KR,30,"EUC_KR","EUC-KR"),o}();const Dn=nn;var Ot=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),rn=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Ot(t,o),t.kind="UnsupportedOperationException",t}(te);const vn=rn;var ei=function(){function o(){}return o.decode=function(t,i){var s=this.encodingName(i);return this.customDecoder?this.customDecoder(t,s):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(s)?this.decodeFallback(t,s):new TextDecoder(s).decode(t)},o.shouldDecodeOnFallback=function(t){return!o.isBrowser()&&"ISO-8859-1"===t},o.encode=function(t,i){var s=this.encodingName(i);return this.customEncoder?this.customEncoder(t,s):typeof TextEncoder>"u"?this.encodeFallback(t):(new TextEncoder).encode(t)},o.isBrowser=function(){return typeof window<"u"&&"[object Window]"==={}.toString.call(window)},o.encodingName=function(t){return"string"==typeof t?t:t.getName()},o.encodingCharacterSet=function(t){return t instanceof Dn?t:Dn.getCharacterSetECIByName(t)},o.decodeFallback=function(t,i){var s=this.encodingCharacterSet(i);if(o.isDecodeFallbackSupported(s)){for(var c="",h=0,v=t.length;h3&&239===t[0]&&187===t[1]&&191===t[2],an=0;an0?128&bn?M--:v=!1:128&bn&&(64&bn?(M++,32&bn?(M++,16&bn?(M++,8&bn?v=!1:$++):N++):O++):v=!1)),c&&(bn>127&&bn<160?c=!1:bn>159&&(bn<192||215===bn||247===bn)&&$t++),h&&(q>0?bn<64||127===bn||bn>252?h=!1:q--:128===bn||160===bn||bn>239?h=!1:bn>160&&bn<224?(de++,et=0,++we>vt&&(vt=we)):bn>127?(q++,we=0,++et>zt&&(zt=et)):(we=0,et=0))}return v&&M>0&&(v=!1),h&&q>0&&(h=!1),v&&(Gt||O+N+$>0)?o.UTF8:h&&(o.ASSUME_SHIFT_JIS||vt>=3||zt>=3)?o.SHIFT_JIS:c&&h?2===vt&&2===de||10*$t>=s?o.SHIFT_JIS:o.ISO88591:c?o.ISO88591:h?o.SHIFT_JIS:v?o.UTF8:o.PLATFORM_DEFAULT_ENCODING},o.format=function(t){for(var i=[],s=1;sv){if(-1===M)M=h-v;else if(h-v!==M)throw new Ge("row lengths do not match");v=h,O++}N++}else if(t.substring(N,N+i.length)===i)N+=i.length,c[h]=!0,h++;else{if(t.substring(N,N+s.length)!==s)throw new Ge("illegal character encountered: "+t.substring(N));N+=s.length,c[h]=!1,h++}if(h>v){if(-1===M)M=h-v;else if(h-v!==M)throw new Ge("row lengths do not match");O++}for(var $=new o(M,O),q=0;q>>(31&t)&1)},o.prototype.set=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]|=1<<(31&t)&4294967295},o.prototype.unset=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]&=~(1<<(31&t)&4294967295)},o.prototype.flip=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]^=1<<(31&t)&4294967295},o.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new Ge("input matrix dimensions do not match");for(var i=new me(Math.floor(this.width/32)+1),s=this.rowSize,c=this.bits,h=0,v=this.height;hthis.height||h>this.width)throw new Ge("The region must fit inside the matrix");for(var M=this.rowSize,O=this.bits,N=i;NO&&(O=N),32*$M){for(de=31;!(q>>>de);)de--;32*$+de>M&&(M=32*$+de)}}}return M=0&&0===i[s];)s--;if(s<0)return null;for(var c=Math.floor(s/t),h=32*Math.floor(s%t),v=i[s],M=31;!(v>>>M);)M--;return Int32Array.from([h+=M,c])},o.prototype.getWidth=function(){return this.width},o.prototype.getHeight=function(){return this.height},o.prototype.getRowSize=function(){return this.rowSize},o.prototype.equals=function(t){return t instanceof o&&(this.width===t.width&&this.height===t.height&&this.rowSize===t.rowSize&&at.equals(this.bits,t.bits))},o.prototype.hashCode=function(){var t=this.width;return 31*(t=31*(t=31*(t=31*t+this.width)+this.height)+this.rowSize)+at.hashCode(this.bits)},o.prototype.toString=function(t,i,s){return void 0===t&&(t="X "),void 0===i&&(i=" "),void 0===s&&(s="\n"),this.buildToString(t,i,s)},o.prototype.buildToString=function(t,i,s){for(var c=new Ce,h=0,v=this.height;h>t.LUMINANCE_SHIFT]++;var N=t.estimateBlackPoint(M);if(h<3)for(O=0;O>t.LUMINANCE_SHIFT]++;var we=t.estimateBlackPoint(v),et=i.getMatrix();for(M=0;Mv&&(h=M,v=i[M]),i[M]>c&&(c=i[M]);var O=0,N=0;for(M=0;MN&&(O=M,N=q)}if(h>O){var de=h;h=O,O=de}if(O-h<=s/16)throw new Se;var we=O-1,et=-1;for(M=O-1;M>h;M--){var q,vt=M-h;(q=vt*vt*(O-M)*(c-i[M]))>et&&(we=M,et=q)}return we<=t.MINIMUM_DIMENSION&&c>=t.MINIMUM_DIMENSION){var h=i.getMatrix(),v=s>>t.BLOCK_SIZE_POWER;s&t.BLOCK_SIZE_MASK&&v++;var M=c>>t.BLOCK_SIZE_POWER;c&t.BLOCK_SIZE_MASK&&M++;var O=t.calculateBlackPoints(h,v,M,s,c),N=new ae(s,c);t.calculateThresholdForBlock(h,v,M,s,c,O,N),this.matrix=N}else this.matrix=o.prototype.getBlackMatrix.call(this);return this.matrix},t.prototype.createBinarizer=function(i){return new t(i)},t.calculateThresholdForBlock=function(i,s,c,h,v,M,O){for(var N=v-t.BLOCK_SIZE,$=h-t.BLOCK_SIZE,q=0;qN&&(de=N);for(var we=t.cap(q,2,c-3),et=0;et$&&(vt=$);for(var zt=t.cap(et,2,s-3),$t=0,Gt=-2;Gt<=2;Gt++){var an=M[we+Gt];$t+=an[zt-2]+an[zt-1]+an[zt]+an[zt+1]+an[zt+2]}t.thresholdBlock(i,vt,de,$t/25,h,O)}}},t.cap=function(i,s,c){return ic?c:i},t.thresholdBlock=function(i,s,c,h,v,M){for(var O=0,N=c*v+s;OM&&(q=M);for(var de=0;deO&&(we=O);for(var et=0,vt=255,zt=0,$t=0,Gt=q*h+we;$tzt&&(zt=bn)}if(zt-vt>t.MIN_DYNAMIC_RANGE)for($t++,Gt+=h;$t>2*t.BLOCK_SIZE_POWER;if(zt-vt<=t.MIN_DYNAMIC_RANGE&&(Nn=vt/2,$>0&&de>0)){var Zn=(N[$-1][de]+2*N[$][de-1]+N[$-1][de-1])/4;vt>10}else{v=0,M=0;for(var et=i.length;v>10)}return h},t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth(),h=i*c;return null===s?s=this.buffer.slice(h,h+c):(s.length0&&h[h.length-1])&&(6===N[0]||2===N[0])){i=0;continue}if(3===N[0]&&(!h||N[1]>h[0]&&N[1]=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),c=s.next();!c.done;c=s.next())"videoinput"===(v="video"===(h=c.value).kind?"videoinput":h.kind)&&i.push({deviceId:h.deviceId||h.id,label:h.label||"Video device "+(i.length+1),kind:v,groupId:h.groupId})}catch(et){q={error:et}}finally{try{c&&!c.done&&(de=s.return)&&de.call(s)}finally{if(q)throw q.error}}return[2,i]}})})},o.prototype.getVideoInputDevices=function(){return G(this,void 0,void 0,function(){return U(this,function(i){switch(i.label){case 0:return[4,this.listVideoInputDevices()];case 1:return[2,i.sent().map(function(s){return new _t(s.deviceId,s.label)})]}})})},o.prototype.findDeviceById=function(t){return G(this,void 0,void 0,function(){var i;return U(this,function(s){switch(s.label){case 0:return[4,this.listVideoInputDevices()];case 1:return(i=s.sent())?[2,i.find(function(c){return c.deviceId===t})]:[2,null]}})})},o.prototype.decodeFromInputVideoDevice=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:return[4,this.decodeOnceFromVideoDevice(t,i)];case 1:return[2,s.sent()]}})})},o.prototype.decodeOnceFromVideoDevice=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.decodeOnceFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i)];case 1:return[2,h.sent()]}})})},o.prototype.decodeOnceFromConstraints=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(c){switch(c.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return s=c.sent(),[4,this.decodeOnceFromStream(s,i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromStream=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,i)];case 1:return s=h.sent(),[4,this.decodeOnce(s)];case 2:return[2,h.sent()]}})})},o.prototype.decodeFromInputVideoDeviceContinuously=function(t,i,s){return G(this,void 0,void 0,function(){return U(this,function(c){switch(c.label){case 0:return[4,this.decodeFromVideoDevice(t,i,s)];case 1:return[2,c.sent()]}})})},o.prototype.decodeFromVideoDevice=function(t,i,s){return G(this,void 0,void 0,function(){return U(this,function(v){switch(v.label){case 0:return[4,this.decodeFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i,s)];case 1:return[2,v.sent()]}})})},o.prototype.decodeFromConstraints=function(t,i,s){return G(this,void 0,void 0,function(){var c;return U(this,function(h){switch(h.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return c=h.sent(),[4,this.decodeFromStream(c,i,s)];case 2:return[2,h.sent()]}})})},o.prototype.decodeFromStream=function(t,i,s){return G(this,void 0,void 0,function(){var c;return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,i)];case 1:return c=h.sent(),[4,this.decodeContinuously(c,s)];case 2:return[2,h.sent()]}})})},o.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},o.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},o.prototype.attachStreamToVideo=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(c){switch(c.label){case 0:return s=this.prepareVideoElement(i),this.addVideoSource(s,t),this.videoElement=s,this.stream=t,[4,this.playVideoOnLoadAsync(s)];case 1:return c.sent(),[2,s]}})})},o.prototype.playVideoOnLoadAsync=function(t){var i=this;return new Promise(function(s,c){return i.playVideoOnLoad(t,function(){return s()})})},o.prototype.playVideoOnLoad=function(t,i){var s=this;this.videoEndedListener=function(){return s.stopStreams()},this.videoCanPlayListener=function(){return s.tryPlayVideo(t)},t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",i),this.tryPlayVideo(t)},o.prototype.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2},o.prototype.tryPlayVideo=function(t){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:if(this.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.play()];case 2:return s.sent(),[3,4];case 3:return s.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},o.prototype.getMediaElement=function(t,i){var s=document.getElementById(t);if(!s)throw new _e("element with id '"+t+"' not found");if(s.nodeName.toLowerCase()!==i.toLowerCase())throw new _e("element with id '"+t+"' must be an "+i+" element");return s},o.prototype.decodeFromImage=function(t,i){if(!t&&!i)throw new _e("either imageElement with a src set or an url must be provided");return i&&!t?this.decodeFromImageUrl(i):this.decodeFromImageElement(t)},o.prototype.decodeFromVideo=function(t,i){if(!t&&!i)throw new _e("Either an element with a src set or an URL must be provided");return i&&!t?this.decodeFromVideoUrl(i):this.decodeFromVideoElement(t)},o.prototype.decodeFromVideoContinuously=function(t,i,s){if(void 0===t&&void 0===i)throw new _e("Either an element with a src set or an URL must be provided");return i&&!t?this.decodeFromVideoUrlContinuously(i,s):this.decodeFromVideoElementContinuously(t,s)},o.prototype.decodeFromImageElement=function(t){if(!t)throw new _e("An image element must be provided.");this.reset();var i=this.prepareImageElement(t);return this.imageElement=i,this.isImageLoaded(i)?this.decodeOnce(i,!1,!0):this._decodeOnLoadImage(i)},o.prototype.decodeFromVideoElement=function(t){var i=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(i)},o.prototype.decodeFromVideoElementContinuously=function(t,i){var s=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(s,i)},o.prototype._decodeFromVideoElementSetup=function(t){if(!t)throw new _e("A video element must be provided.");this.reset();var i=this.prepareVideoElement(t);return this.videoElement=i,i},o.prototype.decodeFromImageUrl=function(t){if(!t)throw new _e("An URL must be provided.");this.reset();var i=this.prepareImageElement();this.imageElement=i;var s=this._decodeOnLoadImage(i);return i.src=t,s},o.prototype.decodeFromVideoUrl=function(t){if(!t)throw new _e("An URL must be provided.");this.reset();var i=this.prepareVideoElement(),s=this.decodeFromVideoElement(i);return i.src=t,s},o.prototype.decodeFromVideoUrlContinuously=function(t,i){if(!t)throw new _e("An URL must be provided.");this.reset();var s=this.prepareVideoElement(),c=this.decodeFromVideoElementContinuously(s,i);return s.src=t,c},o.prototype._decodeOnLoadImage=function(t){var i=this;return new Promise(function(s,c){i.imageLoadedListener=function(){return i.decodeOnce(t,!1,!0).then(s,c)},t.addEventListener("load",i.imageLoadedListener)})},o.prototype._decodeOnLoadVideo=function(t){return G(this,void 0,void 0,function(){return U(this,function(i){switch(i.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return i.sent(),[4,this.decodeOnce(t)];case 2:return[2,i.sent()]}})})},o.prototype._decodeOnLoadVideoContinuously=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return s.sent(),this.decodeContinuously(t,i),[2]}})})},o.prototype.isImageLoaded=function(t){return!(!t.complete||0===t.naturalWidth)},o.prototype.prepareImageElement=function(t){var i;return typeof t>"u"&&((i=document.createElement("img")).width=200,i.height=200),"string"==typeof t&&(i=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(i=t),i},o.prototype.prepareVideoElement=function(t){var i;return!t&&typeof document<"u"&&((i=document.createElement("video")).width=200,i.height=200),"string"==typeof t&&(i=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(i=t),i.setAttribute("autoplay","true"),i.setAttribute("muted","true"),i.setAttribute("playsinline","true"),i},o.prototype.decodeOnce=function(t,i,s){var c=this;void 0===i&&(i=!0),void 0===s&&(s=!0),this._stopAsyncDecode=!1;var h=function(v,M){if(c._stopAsyncDecode)return M(new Se("Video stream has ended before any code could be detected.")),void(c._stopAsyncDecode=void 0);try{v(c.decode(t))}catch(de){if(i&&de instanceof Se||(de instanceof St||de instanceof bt)&&s)return setTimeout(h,c._timeBetweenDecodingAttempts,v,M);M(de)}};return new Promise(function(v,M){return h(v,M)})},o.prototype.decodeContinuously=function(t,i){var s=this;this._stopContinuousDecode=!1;var c=function(){if(s._stopContinuousDecode)s._stopContinuousDecode=void 0;else try{var h=s.decode(t);i(h,null),setTimeout(c,s.timeBetweenScansMillis)}catch(O){i(null,O),(O instanceof St||O instanceof bt||O instanceof Se)&&setTimeout(c,s._timeBetweenDecodingAttempts)}};c()},o.prototype.decode=function(t){var i=this.createBinaryBitmap(t);return this.decodeBitmap(i)},o.prototype.createBinaryBitmap=function(t){this.getCaptureCanvasContext(t),t instanceof HTMLVideoElement?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);var s=this.getCaptureCanvas(t),c=new qt(s),h=new gn(c);return new je(h)},o.prototype.getCaptureCanvasContext=function(t){if(!this.captureCanvasContext){var i=this.getCaptureCanvas(t),s=void 0;try{s=i.getContext("2d",{willReadFrequently:!0})}catch{s=i.getContext("2d")}this.captureCanvasContext=s}return this.captureCanvasContext},o.prototype.getCaptureCanvas=function(t){if(!this.captureCanvas){var i=this.createCaptureCanvas(t);this.captureCanvas=i}return this.captureCanvas},o.prototype.drawFrameOnCanvas=function(t,i,s){void 0===i&&(i={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),void 0===s&&(s=this.captureCanvasContext),s.drawImage(t,i.sx,i.sy,i.sWidth,i.sHeight,i.dx,i.dy,i.dWidth,i.dHeight)},o.prototype.drawImageOnCanvas=function(t,i,s){void 0===i&&(i={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),void 0===s&&(s=this.captureCanvasContext),s.drawImage(t,i.sx,i.sy,i.sWidth,i.sHeight,i.dx,i.dy,i.dWidth,i.dHeight)},o.prototype.decodeBitmap=function(t){return this.reader.decode(t,this._hints)},o.prototype.createCaptureCanvas=function(t){if(typeof document>"u")return this._destroyCaptureCanvas(),null;var s,c,i=document.createElement("canvas");return typeof t<"u"&&(t instanceof HTMLVideoElement?(s=t.videoWidth,c=t.videoHeight):t instanceof HTMLImageElement&&(s=t.naturalWidth||t.width,c=t.naturalHeight||t.height)),i.style.width=s+"px",i.style.height=c+"px",i.width=s,i.height=c,i},o.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(t){return t.stop()}),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},o.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},o.prototype._destroyVideoElement=function(){this.videoElement&&(typeof this.videoEndedListener<"u"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener<"u"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener<"u"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},o.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},o.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},o.prototype.addVideoSource=function(t,i){try{t.srcObject=i}catch{t.src=URL.createObjectURL(i)}},o.prototype.cleanVideoSource=function(t){try{t.srcObject=null}catch{t.src=""}this.videoElement.removeAttribute("src")},o}(),ut=function(){function o(t,i,s,c,h,v){void 0===s&&(s=null==i?0:8*i.length),void 0===v&&(v=Jt.currentTimeMillis()),this.text=t,this.rawBytes=i,this.numBits=s,this.resultPoints=c,this.format=h,this.timestamp=v,this.text=t,this.rawBytes=i,this.numBits=null==s?null==i?0:8*i.length:s,this.resultPoints=c,this.format=h,this.resultMetadata=null,this.timestamp=null==v?Jt.currentTimeMillis():v}return o.prototype.getText=function(){return this.text},o.prototype.getRawBytes=function(){return this.rawBytes},o.prototype.getNumBits=function(){return this.numBits},o.prototype.getResultPoints=function(){return this.resultPoints},o.prototype.getBarcodeFormat=function(){return this.format},o.prototype.getResultMetadata=function(){return this.resultMetadata},o.prototype.putMetadata=function(t,i){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(t,i)},o.prototype.putAllMetadata=function(t){null!==t&&(this.resultMetadata=null===this.resultMetadata?t:new Map(t))},o.prototype.addResultPoints=function(t){var i=this.resultPoints;if(null===i)this.resultPoints=t;else if(null!==t&&t.length>0){var s=new Array(i.length+t.length);Jt.arraycopy(i,0,s,0,i.length),Jt.arraycopy(t,0,s,i.length,t.length),this.resultPoints=s}},o.prototype.getTimestamp=function(){return this.timestamp},o.prototype.toString=function(){return this.text},o}();const We=ut;var ze=function(o){return o[o.AZTEC=0]="AZTEC",o[o.CODABAR=1]="CODABAR",o[o.CODE_39=2]="CODE_39",o[o.CODE_93=3]="CODE_93",o[o.CODE_128=4]="CODE_128",o[o.DATA_MATRIX=5]="DATA_MATRIX",o[o.EAN_8=6]="EAN_8",o[o.EAN_13=7]="EAN_13",o[o.ITF=8]="ITF",o[o.MAXICODE=9]="MAXICODE",o[o.PDF_417=10]="PDF_417",o[o.QR_CODE=11]="QR_CODE",o[o.RSS_14=12]="RSS_14",o[o.RSS_EXPANDED=13]="RSS_EXPANDED",o[o.UPC_A=14]="UPC_A",o[o.UPC_E=15]="UPC_E",o[o.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION",o}(ze||{});const be=ze;var Te=function(o){return o[o.OTHER=0]="OTHER",o[o.ORIENTATION=1]="ORIENTATION",o[o.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",o[o.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",o[o.ISSUE_NUMBER=4]="ISSUE_NUMBER",o[o.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",o[o.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",o[o.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",o[o.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",o[o.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",o[o.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY",o}(Te||{});const He=Te;var Wt=function(){function o(t,i,s,c,h,v){void 0===h&&(h=-1),void 0===v&&(v=-1),this.rawBytes=t,this.text=i,this.byteSegments=s,this.ecLevel=c,this.structuredAppendSequenceNumber=h,this.structuredAppendParity=v,this.numBits=null==t?0:8*t.length}return o.prototype.getRawBytes=function(){return this.rawBytes},o.prototype.getNumBits=function(){return this.numBits},o.prototype.setNumBits=function(t){this.numBits=t},o.prototype.getText=function(){return this.text},o.prototype.getByteSegments=function(){return this.byteSegments},o.prototype.getECLevel=function(){return this.ecLevel},o.prototype.getErrorsCorrected=function(){return this.errorsCorrected},o.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},o.prototype.getErasures=function(){return this.erasures},o.prototype.setErasures=function(t){this.erasures=t},o.prototype.getOther=function(){return this.other},o.prototype.setOther=function(t){this.other=t},o.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},o.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},o.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},o}();const Pn=Wt;var wt=function(){function o(){}return o.prototype.exp=function(t){return this.expTable[t]},o.prototype.log=function(t){if(0===t)throw new Ge;return this.logTable[t]},o.addOrSubtract=function(t,i){return t^i},o}();const Yt=wt;var fe=function(){function o(t,i){if(0===i.length)throw new Ge;this.field=t;var s=i.length;if(s>1&&0===i[0]){for(var c=1;cs.length){var c=i;i=s,s=c}var h=new Int32Array(s.length),v=s.length-i.length;Jt.arraycopy(s,0,h,0,v);for(var M=v;M=t.getDegree()&&!c.isZero();){var M=c.getDegree()-t.getDegree(),O=i.multiply(c.getCoefficient(c.getDegree()),v),N=t.multiplyByMonomial(M,O),$=i.buildMonomial(M,O);s=s.addOrSubtract($),c=c.addOrSubtract(N)}return[s,c]},o.prototype.toString=function(){for(var t="",i=this.getDegree();i>=0;i--){var s=this.getCoefficient(i);if(0!==s){if(s<0?(t+=" - ",s=-s):t.length>0&&(t+=" + "),0===i||1!==s){var c=this.field.log(s);0===c?t+="1":1===c?t+="a":(t+="a^",t+=c)}0!==i&&(1===i?t+="x":(t+="x^",t+=i))}}return t},o}();const Mt=fe;var Vt=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ht=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Vt(t,o),t.kind="ArithmeticException",t}(te);const st=ht;var It=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),cn=function(o){function t(i,s,c){var h=o.call(this)||this;h.primitive=i,h.size=s,h.generatorBase=c;for(var v=new Int32Array(s),M=1,O=0;O=s&&(M^=i,M&=s-1);h.expTable=v;var N=new Int32Array(s);for(O=0;O=(s/2|0);){var $=v,q=O;if(O=N,(v=M).isZero())throw new ni("r_{i-1} was zero");M=$;for(var de=h.getZero(),we=v.getCoefficient(v.getDegree()),et=h.inverse(we);M.getDegree()>=v.getDegree()&&!M.isZero();){var vt=M.getDegree()-v.getDegree(),zt=h.multiply(M.getCoefficient(M.getDegree()),et);de=de.addOrSubtract(h.buildMonomial(vt,zt)),M=M.addOrSubtract(v.multiplyByMonomial(vt,zt))}if(N=de.multiply(O).addOrSubtract(q),M.getDegree()>=v.getDegree())throw new ki("Division algorithm failed to reduce polynomial?")}var $t=N.getCoefficient(0);if(0===$t)throw new ni("sigmaTilde(0) was zero");var Gt=h.inverse($t);return[N.multiplyScalar(Gt),M.multiplyScalar(Gt)]},o.prototype.findErrorLocations=function(t){var i=t.getDegree();if(1===i)return Int32Array.from([t.getCoefficient(1)]);for(var s=new Int32Array(i),c=0,h=this.field,v=1;v1,et,et+s-1),et+=s-1;else for(var vt=s-1;vt>=0;--vt)we[et++]=0!=(de&1<=8?o.readCode(t,i,8):o.readCode(t,i,s)<<8-s},o.convertBoolArrayToByteArray=function(t){for(var i=new Uint8Array((t.length+7)/8),s=0;s","?","[","]","{","}","CTRL_UL"],o.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],o}();const Ji=co;var tr=function(){function o(){}return o.round=function(t){return isNaN(t)?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0},o.distance=function(t,i,s,c){var h=t-s,v=i-c;return Math.sqrt(h*h+v*v)},o.sum=function(t){for(var i=0,s=0,c=t.length;s!==c;s++)i+=t[s];return i},o}();const _i=tr;var bo=function(){function o(){}return o.floatToIntBits=function(t){return t},o.MAX_VALUE=Number.MAX_SAFE_INTEGER,o}();const pr=bo;var br=function(){function o(t,i){this.x=t,this.y=i}return o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.equals=function(t){return t instanceof o&&(this.x===t.x&&this.y===t.y)},o.prototype.hashCode=function(){return 31*pr.floatToIntBits(this.x)+pr.floatToIntBits(this.y)},o.prototype.toString=function(){return"("+this.x+","+this.y+")"},o.orderBestPatterns=function(t){var h,v,M,i=this.distance(t[0],t[1]),s=this.distance(t[1],t[2]),c=this.distance(t[0],t[2]);if(s>=i&&s>=c?(v=t[0],h=t[1],M=t[2]):c>=s&&c>=i?(v=t[1],h=t[0],M=t[2]):(v=t[2],h=t[0],M=t[1]),this.crossProductZ(h,v,M)<0){var O=h;h=M,M=O}t[0]=h,t[1]=v,t[2]=M},o.distance=function(t,i){return _i.distance(t.x,t.y,i.x,i.y)},o.crossProductZ=function(t,i,s){var c=i.x,h=i.y;return(s.x-c)*(t.y-h)-(s.y-h)*(t.x-c)},o}();const $n=br;var yo=function(){function o(t,i){this.bits=t,this.points=i}return o.prototype.getBits=function(){return this.bits},o.prototype.getPoints=function(){return this.points},o}();const Fr=yo;var uo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ho=function(o){function t(i,s,c,h,v){var M=o.call(this,i,s)||this;return M.compact=c,M.nbDatablocks=h,M.nbLayers=v,M}return uo(t,o),t.prototype.getNbLayers=function(){return this.nbLayers},t.prototype.getNbDatablocks=function(){return this.nbDatablocks},t.prototype.isCompact=function(){return this.compact},t}(Fr);const to=ho;var yr=function(){function o(t,i,s,c){this.image=t,this.height=t.getHeight(),this.width=t.getWidth(),null==i&&(i=o.INIT_SIZE),null==s&&(s=t.getWidth()/2|0),null==c&&(c=t.getHeight()/2|0);var h=i/2|0;if(this.leftInit=s-h,this.rightInit=s+h,this.upInit=c-h,this.downInit=c+h,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new Se}return o.prototype.detect=function(){for(var t=this.leftInit,i=this.rightInit,s=this.upInit,c=this.downInit,h=!1,v=!0,M=!1,O=!1,N=!1,$=!1,q=!1,de=this.width,we=this.height;v;){v=!1;for(var et=!0;(et||!O)&&i=de){h=!0;break}for(var vt=!0;(vt||!N)&&c=we){h=!0;break}for(var zt=!0;(zt||!$)&&t>=0;)(zt=this.containsBlackPoint(s,c,t,!1))?(t--,v=!0,$=!0):$||t--;if(t<0){h=!0;break}for(var $t=!0;($t||!q)&&s>=0;)($t=this.containsBlackPoint(t,i,s,!0))?(s--,v=!0,q=!0):q||s--;if(s<0){h=!0;break}v&&(M=!0)}if(!h&&M){for(var Gt=i-t,an=null,bn=1;null===an&&bns||O<-1||O>c)throw new Se;h=!1,-1===M?(i[v]=0,h=!0):M===s&&(i[v]=s-1,h=!0),-1===O?(i[v+1]=0,h=!0):O===c&&(i[v+1]=c-1,h=!0)}for(h=!0,v=i.length-2;v>=0&&h;v-=2){if(M=Math.floor(i[v]),O=Math.floor(i[v+1]),M<-1||M>s||O<-1||O>c)throw new Se;h=!1,-1===M?(i[v]=0,h=!0):M===s&&(i[v]=s-1,h=!0),-1===O?(i[v+1]=0,h=!0):O===c&&(i[v+1]=c-1,h=!0)}},o}();const xl=Ba;var So=function(){function o(t,i,s,c,h,v,M,O,N){this.a11=t,this.a21=i,this.a31=s,this.a12=c,this.a22=h,this.a32=v,this.a13=M,this.a23=O,this.a33=N}return o.quadrilateralToQuadrilateral=function(t,i,s,c,h,v,M,O,N,$,q,de,we,et,vt,zt){var $t=o.quadrilateralToSquare(t,i,s,c,h,v,M,O);return o.squareToQuadrilateral(N,$,q,de,we,et,vt,zt).times($t)},o.prototype.transformPoints=function(t){for(var i=t.length,s=this.a11,c=this.a12,h=this.a13,v=this.a21,M=this.a22,O=this.a23,N=this.a31,$=this.a32,q=this.a33,de=0;de>1&127):(c<<=10,c+=(v>>2&992)+(v>>1&31))}var M=this.getCorrectedParameterData(c,this.compact);this.compact?(this.nbLayers=1+(M>>6),this.nbDataBlocks=1+(63&M)):(this.nbLayers=1+(M>>11),this.nbDataBlocks=1+(2047&M))},o.prototype.getRotation=function(t,i){var s=0;t.forEach(function(h,v,M){s=(h>>i-2<<1)+(1&h)+(s<<3)}),s=((1&s)<<11)+(s>>1);for(var c=0;c<4;c++)if(Ee.bitCount(s^this.EXPECTED_CORNER_BITS[c])<=2)return c;throw new Se},o.prototype.getCorrectedParameterData=function(t,i){var s,c;i?(s=7,c=2):(s=10,c=4);for(var h=s-c,v=new Int32Array(s),M=s-1;M>=0;--M)v[M]=15&t,t>>=4;try{new vr(_n.AZTEC_PARAM).decode(v,h)}catch{throw new Se}var N=0;for(M=0;M2){var q=this.distancePoint($,M)*this.nbCenterLayers/(this.distancePoint(h,i)*(this.nbCenterLayers+2));if(q<.75||q>1.25||!this.isWhiteOrBlackRectangle(M,O,N,$))break}i=M,s=O,c=N,h=$,v=!v}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new Se;this.compact=5===this.nbCenterLayers;var de=new $n(i.getX()+.5,i.getY()-.5),we=new $n(s.getX()+.5,s.getY()+.5),et=new $n(c.getX()-.5,c.getY()+.5),vt=new $n(h.getX()-.5,h.getY()-.5);return this.expandSquare([de,we,et,vt],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},o.prototype.getMatrixCenter=function(){var t,i,s,c;try{t=(h=new Gs(this.image).detect())[0],i=h[1],s=h[2],c=h[3]}catch{var v=this.image.getWidth()/2,M=this.image.getHeight()/2;t=this.getFirstDifferent(new kr(v+7,M-7),!1,1,-1).toResultPoint(),i=this.getFirstDifferent(new kr(v+7,M+7),!1,1,1).toResultPoint(),s=this.getFirstDifferent(new kr(v-7,M+7),!1,-1,1).toResultPoint(),c=this.getFirstDifferent(new kr(v-7,M-7),!1,-1,-1).toResultPoint()}var O=_i.round((t.getX()+c.getX()+i.getX()+s.getX())/4),N=_i.round((t.getY()+c.getY()+i.getY()+s.getY())/4);try{var h;t=(h=new Gs(this.image,15,O,N).detect())[0],i=h[1],s=h[2],c=h[3]}catch{t=this.getFirstDifferent(new kr(O+7,N-7),!1,1,-1).toResultPoint(),i=this.getFirstDifferent(new kr(O+7,N+7),!1,1,1).toResultPoint(),s=this.getFirstDifferent(new kr(O-7,N+7),!1,-1,1).toResultPoint(),c=this.getFirstDifferent(new kr(O-7,N-7),!1,-1,-1).toResultPoint()}return O=_i.round((t.getX()+c.getX()+i.getX()+s.getX())/4),N=_i.round((t.getY()+c.getY()+i.getY()+s.getY())/4),new kr(O,N)},o.prototype.getMatrixCornerPoints=function(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())},o.prototype.sampleGrid=function(t,i,s,c,h){var v=ga.getInstance(),M=this.getDimension(),O=M/2-this.nbCenterLayers,N=M/2+this.nbCenterLayers;return v.sampleGrid(t,M,M,O,O,N,O,N,N,O,N,i.getX(),i.getY(),s.getX(),s.getY(),c.getX(),c.getY(),h.getX(),h.getY())},o.prototype.sampleLine=function(t,i,s){for(var c=0,h=this.distanceResultPoint(t,i),v=h/s,M=t.getX(),O=t.getY(),N=v*(i.getX()-t.getX())/h,$=v*(i.getY()-t.getY())/h,q=0;q.1&&de<.9?0:de<=.1===N?1:-1},o.prototype.getFirstDifferent=function(t,i,s,c){for(var h=t.getX()+s,v=t.getY()+c;this.isValid(h,v)&&this.image.get(h,v)===i;)h+=s,v+=c;for(h-=s,v-=c;this.isValid(h,v)&&this.image.get(h,v)===i;)h+=s;for(h-=s;this.isValid(h,v)&&this.image.get(h,v)===i;)v+=c;return new kr(h,v-=c)},o.prototype.expandSquare=function(t,i,s){var c=s/(2*i),h=t[0].getX()-t[2].getX(),v=t[0].getY()-t[2].getY(),M=(t[0].getX()+t[2].getX())/2,O=(t[0].getY()+t[2].getY())/2,N=new $n(M+c*h,O+c*v),$=new $n(M-c*h,O-c*v);return h=t[1].getX()-t[3].getX(),v=t[1].getY()-t[3].getY(),M=(t[1].getX()+t[3].getX())/2,O=(t[1].getY()+t[3].getY())/2,[N,new $n(M+c*h,O+c*v),$,new $n(M-c*h,O-c*v)]},o.prototype.isValid=function(t,i){return t>=0&&t0&&i>(v?8:5));O=v?c:15;for(var N=Math.trunc(c/2),$=0;$=c)break;try{h=t.getBlackRow(we,h)}catch{continue}for(var et=function(Gt){if(1===Gt&&(h.reverse(),i&&!0===i.get(he.NEED_RESULT_POINT_CALLBACK))){var an=new Map;i.forEach(function(Zn,Kn){return an.set(Kn,Zn)}),an.delete(he.NEED_RESULT_POINT_CALLBACK),i=an}try{var bn=vt.decodeRow(we,h,i);if(1===Gt){bn.putMetadata(He.ORIENTATION,180);var Nn=bn.getResultPoints();null!==Nn&&(Nn[0]=new $n(s-Nn[0].getX()-1,Nn[0].getY()),Nn[1]=new $n(s-Nn[1].getX()-1,Nn[1].getY()))}return{value:bn}}catch{}},vt=this,zt=0;zt<2;zt++){var $t=et(zt);if("object"==typeof $t)return $t.value}}throw new Se},o.recordPattern=function(t,i,s){for(var c=s.length,h=0;h=v)throw new Se;for(var M=!t.get(i),O=0,N=i;N0&&c>=0;)t.get(--i)!==h&&(c--,h=!h);if(c>=0)throw new Se;o.recordPattern(t,i+1,s)},o.patternMatchVariance=function(t,i,s){for(var c=t.length,h=0,v=0,M=0;Mde?q-de:de-q;if(we>s)return Number.POSITIVE_INFINITY;N+=we}return N/h},o}());const qi=Aa;var Li=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Yr=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Li(t,o),t.findStartPattern=function(i){for(var s=i.getSize(),c=i.getNextSet(0),h=0,v=Int32Array.from([0,0,0,0,0,0]),M=c,O=!1,$=c;$=0&&i.isRange(Math.max(0,M-($-M)/2),M,!1))return Int32Array.from([M,$,de]);M+=v[0]+v[1],(v=v.slice(2,v.length-1))[h-1]=0,v[h]=0,h--}else h++;v[h]=1,O=!O}throw new Se},t.decodeCode=function(i,s,c){qi.recordPattern(i,c,s);for(var h=t.MAX_AVG_VARIANCE,v=-1,M=0;M=0)return v;throw new Se},t.prototype.decodeRow=function(i,s,c){var $,h=c&&!0===c.get(he.ASSUME_GS1),v=t.findStartPattern(s),M=v[2],O=0,N=new Uint8Array(20);switch(N[O++]=M,M){case t.CODE_START_A:$=t.CODE_CODE_A;break;case t.CODE_START_B:$=t.CODE_CODE_B;break;case t.CODE_START_C:$=t.CODE_CODE_C;break;default:throw new bt}for(var q=!1,de=!1,we="",et=v[0],vt=v[1],zt=Int32Array.from([0,0,0,0,0,0]),$t=0,Gt=0,an=M,bn=0,Nn=!0,Zn=!1,Kn=!1;!q;){var fi=de;switch(de=!1,$t=Gt,Gt=t.decodeCode(s,zt,vt),N[O++]=Gt,Gt!==t.CODE_STOP&&(Nn=!0),Gt!==t.CODE_STOP&&(an+=++bn*Gt),et=vt,vt+=zt.reduce(function(f,E){return f+E},0),Gt){case t.CODE_START_A:case t.CODE_START_B:case t.CODE_START_C:throw new bt}switch($){case t.CODE_CODE_A:if(Gt<64)we+=String.fromCharCode(Kn===Zn?" ".charCodeAt(0)+Gt:" ".charCodeAt(0)+Gt+128),Kn=!1;else if(Gt<96)we+=String.fromCharCode(Kn===Zn?Gt-64:Gt+64),Kn=!1;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_A:!Zn&&Kn?(Zn=!0,Kn=!1):Zn&&Kn?(Zn=!1,Kn=!1):Kn=!0;break;case t.CODE_SHIFT:de=!0,$=t.CODE_CODE_B;break;case t.CODE_CODE_B:$=t.CODE_CODE_B;break;case t.CODE_CODE_C:$=t.CODE_CODE_C;break;case t.CODE_STOP:q=!0}break;case t.CODE_CODE_B:if(Gt<96)we+=String.fromCharCode(Kn===Zn?" ".charCodeAt(0)+Gt:" ".charCodeAt(0)+Gt+128),Kn=!1;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_B:!Zn&&Kn?(Zn=!0,Kn=!1):Zn&&Kn?(Zn=!1,Kn=!1):Kn=!0;break;case t.CODE_SHIFT:de=!0,$=t.CODE_CODE_A;break;case t.CODE_CODE_A:$=t.CODE_CODE_A;break;case t.CODE_CODE_C:$=t.CODE_CODE_C;break;case t.CODE_STOP:q=!0}break;case t.CODE_CODE_C:if(Gt<100)Gt<10&&(we+="0"),we+=Gt;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_CODE_A:$=t.CODE_CODE_A;break;case t.CODE_CODE_B:$=t.CODE_CODE_B;break;case t.CODE_STOP:q=!0}}fi&&($=$===t.CODE_CODE_A?t.CODE_CODE_B:t.CODE_CODE_A)}var Gi=vt-et;if(vt=s.getNextUnset(vt),!s.isRange(vt,Math.min(s.getSize(),vt+(vt-et)/2),!1))throw new Se;if((an-=bn*$t)%103!==$t)throw new St;var Vi=we.length;if(0===Vi)throw new Se;Vi>0&&Nn&&(we=we.substring(0,$===t.CODE_CODE_C?Vi-2:Vi-1));for(var go=(v[1]+v[0])/2,Dr=et+Gi/2,hs=N.length,Vl=new Uint8Array(hs),ic=0;ic=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},al=function(o){function t(i,s){void 0===i&&(i=!1),void 0===s&&(s=!1);var c=o.call(this)||this;return c.usingCheckDigit=i,c.extendedMode=s,c.decodeRowResult="",c.counters=new Int32Array(9),c}return Ha(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,N=this.counters;N.fill(0),this.decodeRowResult="";var we,et,$=t.findAsteriskPattern(s,N),q=s.getNextSet($[1]),de=s.getSize();do{t.recordPattern(s,q,N);var vt=t.toNarrowWidePattern(N);if(vt<0)throw new Se;we=t.patternToChar(vt),this.decodeRowResult+=we,et=q;try{for(var zt=(h=void 0,wr(N)),$t=zt.next();!$t.done;$t=zt.next())q+=$t.value}catch(hs){h={error:hs}}finally{try{$t&&!$t.done&&(v=zt.return)&&v.call(zt)}finally{if(h)throw h.error}}q=s.getNextSet(q)}while("*"!==we);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var Vi,an=0;try{for(var bn=wr(N),Nn=bn.next();!Nn.done;Nn=bn.next())an+=Nn.value}catch(hs){M={error:hs}}finally{try{Nn&&!Nn.done&&(O=bn.return)&&O.call(bn)}finally{if(M)throw M.error}}if(q!==de&&2*(q-et-an)v&&(O=q)}catch(vt){s={error:vt}}finally{try{$&&!$.done&&(c=N.return)&&c.call(N)}finally{if(s)throw s.error}}v=O,M=0;for(var de=0,we=0,et=0;etv&&(we|=1<0;et++){var q;if((q=i[et])>v&&(M--,2*q>=de))return-1}return we}}while(M>3);return-1},t.patternToChar=function(i){for(var s=0;s="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)+32);break;case"$":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)-64);break;case"%":if(M>="A"&&M<="E")O=String.fromCharCode(M.charCodeAt(0)-38);else if(M>="F"&&M<="J")O=String.fromCharCode(M.charCodeAt(0)-11);else if(M>="K"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)+16);else if(M>="P"&&M<="T")O=String.fromCharCode(M.charCodeAt(0)+43);else if("U"===M)O="\0";else if("V"===M)O="@";else if("W"===M)O="`";else{if("X"!==M&&"Y"!==M&&"Z"!==M)throw new bt;O="\x7f"}break;case"/":if(M>="A"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)-32);else{if("Z"!==M)throw new bt;O=":"}}c+=O,h++}else c+=v}return c},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",t.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],t.ASTERISK_ENCODING=148,t}(qi);const Vr=al;var Es=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Js=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ll=function(o){function t(){var i=o.call(this)||this;return i.decodeRowResult="",i.counters=new Int32Array(6),i}return Es(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,we,et,N=this.findAsteriskPattern(s),$=s.getNextSet(N[1]),q=s.getSize(),de=this.counters;de.fill(0),this.decodeRowResult="";do{t.recordPattern(s,$,de);var vt=this.toPattern(de);if(vt<0)throw new Se;we=this.patternToChar(vt),this.decodeRowResult+=we,et=$;try{for(var zt=(h=void 0,Js(de)),$t=zt.next();!$t.done;$t=zt.next())$+=$t.value}catch(Gi){h={error:Gi}}finally{try{$t&&!$t.done&&(v=zt.return)&&v.call(zt)}finally{if(h)throw h.error}}$=s.getNextSet($)}while("*"!==we);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var an=0;try{for(var bn=Js(de),Nn=bn.next();!Nn.done;Nn=bn.next())an+=Nn.value}catch(Gi){M={error:Gi}}finally{try{Nn&&!Nn.done&&(O=bn.return)&&O.call(bn)}finally{if(M)throw M.error}}if($===q||!s.get($))throw new Se;if(this.decodeRowResult.length<2)throw new Se;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var Zn=this.decodeExtended(this.decodeRowResult),fi=et+an/2;return new We(Zn,null,0,[new $n((N[1]+N[0])/2,i),new $n(fi,i)],be.CODE_93,(new Date).getTime())},t.prototype.findAsteriskPattern=function(i){var s=i.getSize(),c=i.getNextSet(0);this.counters.fill(0);for(var h=this.counters,v=c,M=!1,O=h.length,N=0,$=c;$4)return-1;if(1&q)N<<=de;else for(var we=0;we="a"&&v<="d"){if(h>=s-1)throw new bt;var M=i.charAt(h+1),O="\0";switch(v){case"d":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)+32);break;case"a":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)-64);break;case"b":if(M>="A"&&M<="E")O=String.fromCharCode(M.charCodeAt(0)-38);else if(M>="F"&&M<="J")O=String.fromCharCode(M.charCodeAt(0)-11);else if(M>="K"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)+16);else if(M>="P"&&M<="T")O=String.fromCharCode(M.charCodeAt(0)+43);else if("U"===M)O="\0";else if("V"===M)O="@";else if("W"===M)O="`";else{if(!(M>="X"&&M<="Z"))throw new bt;O=String.fromCharCode(127)}break;case"c":if(M>="A"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)-32);else{if("Z"!==M)throw new bt;O=":"}}c+=O,h++}else c+=v}return c},t.prototype.checkChecksums=function(i){var s=i.length;this.checkOneChecksum(i,s-2,20),this.checkOneChecksum(i,s-1,15)},t.prototype.checkOneChecksum=function(i,s,c){for(var h=1,v=0,M=s-1;M>=0;M--)v+=h*t.ALPHABET_STRING.indexOf(i.charAt(M)),++h>c&&(h=1);if(i.charAt(s)!==t.ALPHABET_STRING[v%47])throw new St},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",t.ASTERISK_ENCODING=(t.CHARACTER_ENCODINGS=[276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350])[47],t}(qi);const er=ll;var qn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),_r=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.narrowLineWidth=-1,i}return qn(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M=this.decodeStart(s),O=this.decodeEnd(s),N=new Ce;t.decodeMiddle(s,M[1],O[0],N);var $=N.toString(),q=null;null!=c&&(q=c.get(he.ALLOWED_LENGTHS)),null==q&&(q=t.DEFAULT_ALLOWED_LENGTHS);var de=$.length,we=!1,et=0;try{for(var vt=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(q),zt=vt.next();!zt.done;zt=vt.next()){var $t=zt.value;if(de===$t){we=!0;break}$t>et&&(et=$t)}}catch(bn){h={error:bn}}finally{try{zt&&!zt.done&&(v=vt.return)&&v.call(vt)}finally{if(h)throw h.error}}if(!we&&de>et&&(we=!0),!we)throw new bt;var Gt=[new $n(M[1],i),new $n(O[0],i)];return new We($,null,0,Gt,be.ITF,(new Date).getTime())},t.decodeMiddle=function(i,s,c,h){var v=new Int32Array(10),M=new Int32Array(5),O=new Int32Array(5);for(v.fill(0),M.fill(0),O.fill(0);s0&&h>=0&&!i.get(h);h--)c--;if(0!==c)throw new Se},t.skipWhiteSpace=function(i){var s=i.getSize(),c=i.getNextSet(0);if(c===s)throw new Se;return c},t.prototype.decodeEnd=function(i){i.reverse();try{var s=t.skipWhiteSpace(i),c=void 0;try{c=t.findGuardPattern(i,s,t.END_PATTERN_REVERSED[0])}catch(v){v instanceof Se&&(c=t.findGuardPattern(i,s,t.END_PATTERN_REVERSED[1]))}this.validateQuietZone(i,c[0]);var h=c[0];return c[0]=i.getSize()-c[1],c[1]=i.getSize()-h,c}finally{i.reverse()}},t.findGuardPattern=function(i,s,c){var h=c.length,v=new Int32Array(h),M=i.getSize(),O=!1,N=0,$=s;v.fill(0);for(var q=s;q=0)return c%10;throw new Se},t.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],t.MAX_AVG_VARIANCE=.38,t.MAX_INDIVIDUAL_VARIANCE=.5,t.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],t.START_PATTERN=Int32Array.from([1,1,1,1]),t.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],t}(qi);const wo=_r;var jo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),no=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.decodeRowStringBuffer="",i}return jo(t,o),t.findStartGuardPattern=function(i){for(var c,s=!1,h=0,v=Int32Array.from([0,0,0]);!s;){v=Int32Array.from([0,0,0]);var M=(c=t.findGuardPattern(i,h,!1,this.START_END_PATTERN,v))[0],O=M-((h=c[1])-M);O>=0&&(s=i.isRange(O,M,!1))}return c},t.checkChecksum=function(i){return t.checkStandardUPCEANChecksum(i)},t.checkStandardUPCEANChecksum=function(i){var s=i.length;if(0===s)return!1;var c=parseInt(i.charAt(s-1),10);return t.getStandardUPCEANChecksum(i.substring(0,s-1))===c},t.getStandardUPCEANChecksum=function(i){for(var s=i.length,c=0,h=s-1;h>=0;h-=2){if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}for(c*=3,h=s-2;h>=0;h-=2){var v;if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}return(1e3-c)%10},t.decodeEnd=function(i,s){return t.findGuardPattern(i,s,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t.findGuardPatternWithoutCounters=function(i,s,c,h){return this.findGuardPattern(i,s,c,h,new Int32Array(h.length))},t.findGuardPattern=function(i,s,c,h,v){for(var M=i.getSize(),O=0,N=s=c?i.getNextUnset(s):i.getNextSet(s),$=h.length,q=c,de=s;de=0)return M;throw new Se},t.MAX_AVG_VARIANCE=.48,t.MAX_INDIVIDUAL_VARIANCE=.7,t.START_END_PATTERN=Int32Array.from([1,1,1]),t.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),t.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],t}(qi);const Ao=no;var nr=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ps=function(){function o(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return o.prototype.decodeRow=function(t,i,s){var c=this.decodeRowStringBuffer,h=this.decodeMiddle(i,s,c),v=c.toString(),M=o.parseExtensionString(v),O=[new $n((s[0]+s[1])/2,t),new $n(h,t)],N=new We(v,null,0,O,be.UPC_EAN_EXTENSION,(new Date).getTime());return null!=M&&N.putAllMetadata(M),N},o.prototype.decodeMiddle=function(t,i,s){var c,h,v=this.decodeMiddleCounters;v[0]=0,v[1]=0,v[2]=0,v[3]=0;for(var M=t.getSize(),O=i[1],N=0,$=0;$<5&&O=10&&(N|=1<<4-$),4!==$&&(O=t.getNextSet(O),O=t.getNextUnset(O))}if(5!==s.length)throw new Se;var vt=this.determineCheckDigit(N);if(o.extensionChecksum(s.toString())!==vt)throw new Se;return O},o.extensionChecksum=function(t){for(var i=t.length,s=0,c=i-2;c>=0;c-=2)s+=t.charAt(c).charCodeAt(0)-"0".charCodeAt(0);for(s*=3,c=i-1;c>=0;c-=2)s+=t.charAt(c).charCodeAt(0)-"0".charCodeAt(0);return(s*=3)%10},o.prototype.determineCheckDigit=function(t){for(var i=0;i<10;i++)if(t===this.CHECK_DIGIT_ENCODINGS[i])return i;throw new Se},o.parseExtensionString=function(t){if(5!==t.length)return null;var i=o.parseExtension5String(t);return null==i?null:new Map([[He.SUGGESTED_PRICE,i]])},o.parseExtension5String=function(t){var i;switch(t.charAt(0)){case"0":i="\xa3";break;case"5":i="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}i="";break;default:i=""}var s=parseInt(t.substring(1)),h=s%100;return i+(s/100).toString()+"."+(h<10?"0"+h:h.toString())},o}();const va=ps;var Ti=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qs=function(){function o(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return o.prototype.decodeRow=function(t,i,s){var c=this.decodeRowStringBuffer,h=this.decodeMiddle(i,s,c),v=c.toString(),M=o.parseExtensionString(v),O=[new $n((s[0]+s[1])/2,t),new $n(h,t)],N=new We(v,null,0,O,be.UPC_EAN_EXTENSION,(new Date).getTime());return null!=M&&N.putAllMetadata(M),N},o.prototype.decodeMiddle=function(t,i,s){var c,h,v=this.decodeMiddleCounters;v[0]=0,v[1]=0,v[2]=0,v[3]=0;for(var M=t.getSize(),O=i[1],N=0,$=0;$<2&&O=10&&(N|=1<<1-$),1!==$&&(O=t.getNextSet(O),O=t.getNextUnset(O))}if(2!==s.length)throw new Se;if(parseInt(s.toString())%4!==N)throw new Se;return O},o.parseExtensionString=function(t){return 2!==t.length?null:new Map([[He.ISSUE_NUMBER,parseInt(t)]])},o}();const ba=qs;var Qs=function(){function o(){}return o.decodeRow=function(t,i,s){var c=Ao.findGuardPattern(i,s,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new va).decodeRow(t,i,c)}catch{return(new ba).decodeRow(t,i,c)}},o.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),o}();const wi=Qs;var Oo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ko=function(o){function t(){var i=o.call(this)||this;i.decodeRowStringBuffer="",t.L_AND_G_PATTERNS=t.L_PATTERNS.map(function(M){return Int32Array.from(M)});for(var s=10;s<20;s++){for(var c=t.L_PATTERNS[s-10],h=new Int32Array(c.length),v=0;v=s.getSize()||!s.isRange(et,vt,!1))throw new Se;var zt=$.toString();if(zt.length<8)throw new bt;if(!t.checkChecksum(zt))throw new St;var $t=(h[1]+h[0])/2,Gt=(de[1]+de[0])/2,an=this.getBarcodeFormat(),bn=[new $n($t,i),new $n(Gt,i)],Nn=new We(zt,null,0,bn,an,(new Date).getTime()),Zn=0;try{var Kn=wi.decodeRow(i,s,de[1]);Nn.putMetadata(He.UPC_EAN_EXTENSION,Kn.getText()),Nn.putAllMetadata(Kn.getResultMetadata()),Nn.addResultPoints(Kn.getResultPoints()),Zn=Kn.getText().length}catch{}var fi=null==c?null:c.get(he.ALLOWED_EAN_EXTENSIONS);if(null!=fi){var Gi=!1;for(var Vi in fi)if(Zn.toString()===Vi){Gi=!0;break}if(!Gi)throw new Se}return Nn},t.checkChecksum=function(i){return t.checkStandardUPCEANChecksum(i)},t.checkStandardUPCEANChecksum=function(i){var s=i.length;if(0===s)return!1;var c=parseInt(i.charAt(s-1),10);return t.getStandardUPCEANChecksum(i.substring(0,s-1))===c},t.getStandardUPCEANChecksum=function(i){for(var s=i.length,c=0,h=s-1;h>=0;h-=2){if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}for(c*=3,h=s-2;h>=0;h-=2){var v;if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}return(1e3-c)%10},t.decodeEnd=function(i,s){return t.findGuardPattern(i,s,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t}(Ao);const or=Ko;var Xs=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ml=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Sr=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=Int32Array.from([0,0,0,0]),i}return Xs(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M,O,N=this.decodeMiddleCounters;N[0]=0,N[1]=0,N[2]=0,N[3]=0;for(var $=i.getSize(),q=s[1],de=0,we=0;we<6&&q<$;we++){var et=or.decodeDigit(i,N,q,or.L_AND_G_PATTERNS);c+=String.fromCharCode("0".charCodeAt(0)+et%10);try{for(var vt=(h=void 0,Ml(N)),zt=vt.next();!zt.done;zt=vt.next())q+=zt.value}catch(Nn){h={error:Nn}}finally{try{zt&&!zt.done&&(v=vt.return)&&v.call(vt)}finally{if(h)throw h.error}}et>=10&&(de|=1<<5-we)}for(c=t.determineFirstDigit(c,de),q=or.findGuardPattern(i,q,!0,or.MIDDLE_PATTERN,new Int32Array(or.MIDDLE_PATTERN.length).fill(0))[1],we=0;we<6&&q<$;we++){et=or.decodeDigit(i,N,q,or.L_PATTERNS),c+=String.fromCharCode("0".charCodeAt(0)+et);try{for(var an=(M=void 0,Ml(N)),bn=an.next();!bn.done;bn=an.next())q+=bn.value}catch(Kn){M={error:Kn}}finally{try{bn&&!bn.done&&(O=an.return)&&O.call(an)}finally{if(M)throw M.error}}}return{rowOffset:q,resultString:c}},t.prototype.getBarcodeFormat=function(){return be.EAN_13},t.determineFirstDigit=function(i,s){for(var c=0;c<10;c++)if(s===this.FIRST_DIGIT_ENCODINGS[c])return String.fromCharCode("0".charCodeAt(0)+c)+i;throw new Se},t.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],t}(or);const jr=Sr;var xo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),_s=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ai=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=Int32Array.from([0,0,0,0]),i}return xo(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M,O,N=this.decodeMiddleCounters;N[0]=0,N[1]=0,N[2]=0,N[3]=0;for(var $=i.getSize(),q=s[1],de=0;de<4&&q<$;de++){var we=or.decodeDigit(i,N,q,or.L_PATTERNS);c+=String.fromCharCode("0".charCodeAt(0)+we);try{for(var et=(h=void 0,_s(N)),vt=et.next();!vt.done;vt=et.next())q+=vt.value}catch(bn){h={error:bn}}finally{try{vt&&!vt.done&&(v=et.return)&&v.call(et)}finally{if(h)throw h.error}}}for(q=or.findGuardPattern(i,q,!0,or.MIDDLE_PATTERN,new Int32Array(or.MIDDLE_PATTERN.length).fill(0))[1],de=0;de<4&&q<$;de++){we=or.decodeDigit(i,N,q,or.L_PATTERNS),c+=String.fromCharCode("0".charCodeAt(0)+we);try{for(var Gt=(M=void 0,_s(N)),an=Gt.next();!an.done;an=Gt.next())q+=an.value}catch(Zn){M={error:Zn}}finally{try{an&&!an.done&&(O=Gt.return)&&O.call(Gt)}finally{if(M)throw M.error}}}return{rowOffset:q,resultString:c}},t.prototype.getBarcodeFormat=function(){return be.EAN_8},t}(or);const Jo=Ai;var Io=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ys=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.ean13Reader=new jr,i}return Io(t,o),t.prototype.getBarcodeFormat=function(){return be.UPC_A},t.prototype.decode=function(i,s){return this.maybeReturnResult(this.ean13Reader.decode(i))},t.prototype.decodeRow=function(i,s,c){return this.maybeReturnResult(this.ean13Reader.decodeRow(i,s,c))},t.prototype.decodeMiddle=function(i,s,c){return this.ean13Reader.decodeMiddle(i,s,c)},t.prototype.maybeReturnResult=function(i){var s=i.getText();if("0"===s.charAt(0)){var c=new We(s.substring(1),null,null,i.getResultPoints(),be.UPC_A);return null!=i.getResultMetadata()&&c.putAllMetadata(i.getResultMetadata()),c}throw new Se},t.prototype.reset=function(){this.ean13Reader.reset()},t}(or);const fo=Ys;var Zr=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ms=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Co=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=new Int32Array(4),i}return Zr(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M=this.decodeMiddleCounters.map(function(zt){return zt});M[0]=0,M[1]=0,M[2]=0,M[3]=0;for(var O=i.getSize(),N=s[1],$=0,q=0;q<6&&N=10&&($|=1<<5-q)}return t.determineNumSysAndCheckDigit(new Ce(c),$),N},t.prototype.decodeEnd=function(i,s){return t.findGuardPatternWithoutCounters(i,s,!0,t.MIDDLE_END_PATTERN)},t.prototype.checkChecksum=function(i){return or.checkChecksum(t.convertUPCEtoUPCA(i))},t.determineNumSysAndCheckDigit=function(i,s){for(var c=0;c<=1;c++)for(var h=0;h<10;h++)if(s===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[c][h])return i.insert(0,"0"+c),void i.append("0"+h);throw Se.getNotFoundInstance()},t.prototype.getBarcodeFormat=function(){return be.UPC_E},t.convertUPCEtoUPCA=function(i){var s=i.slice(1,7).split("").map(function(v){return v.charCodeAt(0)}),c=new Ce;c.append(i.charAt(0));var h=s[5];switch(h){case 0:case 1:case 2:c.appendChars(s,0,2),c.append(h),c.append("0000"),c.appendChars(s,2,3);break;case 3:c.appendChars(s,0,3),c.append("00000"),c.appendChars(s,3,2);break;case 4:c.appendChars(s,0,4),c.append("00000"),c.append(s[4]);break;default:c.appendChars(s,0,5),c.append("0000"),c.append(h)}return i.length>=8&&c.append(i.charAt(7)),c.toString()},t.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],t}(or);const Br=Co;var ea=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),po=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},io=function(o){function t(i){var s=o.call(this)||this,c=null==i?null:i.get(he.POSSIBLE_FORMATS),h=[];return null!=c&&(c.indexOf(be.EAN_13)>-1&&h.push(new jr),c.indexOf(be.UPC_A)>-1&&h.push(new fo),c.indexOf(be.EAN_8)>-1&&h.push(new Jo),c.indexOf(be.UPC_E)>-1&&h.push(new Br)),0===h.length&&(h.push(new jr),h.push(new fo),h.push(new Jo),h.push(new Br)),s.readers=h,s}return ea(t,o),t.prototype.decodeRow=function(i,s,c){var h,v;try{for(var M=po(this.readers),O=M.next();!O.done;O=M.next()){var N=O.value;try{var $=N.decodeRow(i,s,c),q=$.getBarcodeFormat()===be.EAN_13&&"0"===$.getText().charAt(0),de=null==c?null:c.get(he.POSSIBLE_FORMATS),we=null==de||de.includes(be.UPC_A);if(q&&we){var et=$.getRawBytes(),vt=new We($.getText().substring(1),et,et?et.length:null,$.getResultPoints(),be.UPC_A);return vt.putAllMetadata($.getResultMetadata()),vt}return $}catch{}}}catch(zt){h={error:zt}}finally{try{O&&!O.done&&(v=M.return)&&v.call(M)}finally{if(h)throw h.error}}throw new Se},t.prototype.reset=function(){var i,s;try{for(var c=po(this.readers),h=c.next();!h.done;h=c.next())h.value.reset()}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},t}(qi);const qo=io;var Ss=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ya=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.CODA_BAR_CHAR_SET={nnnnnww:"0",nnnnwwn:"1",nnnwnnw:"2",wwnnnnn:"3",nnwnnwn:"4",wnnnnwn:"5",nwnnnnw:"6",nwnnwnn:"7",nwwnnnn:"8",wnnwnnn:"9",nnnwwnn:"-",nnwwnnn:"$",wnnnwnw:":",wnwnnnw:"/",wnwnwnn:".",nnwwwww:"+",nnwwnwn:"A",nwnwnnw:"B",nnnwnww:"C",nnnwwwn:"D"},i}return Ss(t,o),t.prototype.decodeRow=function(i,s,c){var h=this.getValidRowData(s);if(!h)throw new Se;var v=this.codaBarDecodeRow(h.row);if(!v)throw new Se;return new We(v,null,0,[new $n(h.left,i),new $n(h.right,i)],be.CODABAR,(new Date).getTime())},t.prototype.getValidRowData=function(i){var s=i.toArray(),c=s.indexOf(!0);if(-1===c)return null;var h=s.lastIndexOf(!0);if(h<=c)return null;for(var v=[],M=(s=s.slice(c,h+1))[0],O=1,N=1;N0;){var v=i.splice(0,8).splice(0,7).map(function(O){return Oh&&(h=s[v],c=v);i[c]++},t.decrement=function(i,s){for(var c=0,h=s[0],v=1;v=t.MIN_FINDER_PATTERN_RATIO&&M<=t.MAX_FINDER_PATTERN_RATIO){var O=Number.MAX_SAFE_INTEGER,N=Number.MIN_SAFE_INTEGER;try{for(var $=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),q=$.next();!q.done;q=$.next()){var de=q.value;de>N&&(N=de),de=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),O=M.next();!O.done;O=M.next())v+=O.value}catch(Gt){c={error:Gt}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}for(var $=0,q=0,de=t.length,we=0;we=de-we-1&&(vt-=o.combins(v-et-(de-we),de-we-2)),de-we-1>1){for(var zt=0,$t=v-et-(de-we-2);$t>i;$t--)zt+=o.combins(v-et-$t-1,de-we-3);vt-=zt*(de-1-we)}else v-et>i&&vt--;$+=vt}v-=et}return $},o.combins=function(t,i){var s,c;t-i>i?(c=i,s=t-i):(c=t-i,s=i);for(var h=1,v=1,M=t;M>s;M--)h*=M,v<=c&&(h/=v,v++);for(;v<=c;)h/=v,v++;return h},o}();const Qn=Ht;var Ni=function(){function o(){}return o.buildBitArray=function(t){var i=2*t.length-1;null==t[t.length-1].getRightChar()&&(i-=1);for(var c=new me(12*i),h=0,M=t[0].getRightChar().getValue(),O=11;O>=0;--O)M&1<=0;--q)$&1<=0;--q)de&1<10||c<0||c>10)throw new bt;return h.firstDigit=s,h.secondDigit=c,h}return Xo(t,o),t.prototype.getFirstDigit=function(){return this.firstDigit},t.prototype.getSecondDigit=function(){return this.secondDigit},t.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},t.prototype.isFirstDigitFNC1=function(){return this.firstDigit===t.FNC1},t.prototype.isSecondDigitFNC1=function(){return this.secondDigit===t.FNC1},t.prototype.isAnyFNC1=function(){return this.firstDigit===t.FNC1||this.secondDigit===t.FNC1},t.FNC1=10,t}(Lr);const Ms=Pr;var As=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qr=function(){function o(){}return o.parseFieldsInGeneralPurpose=function(t){var i,s,c,h,v,M,O,N;if(!t)return null;if(t.length<2)throw new Se;var $=t.substring(0,2);try{for(var q=As(o.TWO_DIGIT_DATA_LENGTH),de=q.next();!de.done;de=q.next())if((we=de.value)[0]===$)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(2,we[2],t):o.processFixedAI(2,we[1],t)}catch(Zn){i={error:Zn}}finally{try{de&&!de.done&&(s=q.return)&&s.call(q)}finally{if(i)throw i.error}}if(t.length<3)throw new Se;var et=t.substring(0,3);try{for(var vt=As(o.THREE_DIGIT_DATA_LENGTH),zt=vt.next();!zt.done;zt=vt.next())if((we=zt.value)[0]===et)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(3,we[2],t):o.processFixedAI(3,we[1],t)}catch(Zn){c={error:Zn}}finally{try{zt&&!zt.done&&(h=vt.return)&&h.call(vt)}finally{if(c)throw c.error}}try{for(var $t=As(o.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),Gt=$t.next();!Gt.done;Gt=$t.next())if((we=Gt.value)[0]===et)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(4,we[2],t):o.processFixedAI(4,we[1],t)}catch(Zn){v={error:Zn}}finally{try{Gt&&!Gt.done&&(M=$t.return)&&M.call($t)}finally{if(v)throw v.error}}if(t.length<4)throw new Se;var an=t.substring(0,4);try{for(var bn=As(o.FOUR_DIGIT_DATA_LENGTH),Nn=bn.next();!Nn.done;Nn=bn.next()){var we;if((we=Nn.value)[0]===an)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(4,we[2],t):o.processFixedAI(4,we[1],t)}}catch(Zn){O={error:Zn}}finally{try{Nn&&!Nn.done&&(N=bn.return)&&N.call(bn)}finally{if(O)throw O.error}}throw new Se},o.processFixedAI=function(t,i,s){if(s.lengththis.information.getSize())return t+4<=this.information.getSize();for(var i=t;ithis.information.getSize()){var i=this.extractNumericValueFromBitArray(t,4);return new Ms(this.information.getSize(),0===i?Ms.FNC1:i-1,Ms.FNC1)}var s=this.extractNumericValueFromBitArray(t,7);return new Ms(t+7,(s-8)/11,(s-8)%11)},o.prototype.extractNumericValueFromBitArray=function(t,i){return o.extractNumericValueFromBitArray(this.information,t,i)},o.extractNumericValueFromBitArray=function(t,i,s){for(var c=0,h=0;hthis.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(t,5);if(i>=5&&i<16)return!0;if(t+7>this.information.getSize())return!1;var s=this.extractNumericValueFromBitArray(t,7);if(s>=64&&s<116)return!0;if(t+8>this.information.getSize())return!1;var c=this.extractNumericValueFromBitArray(t,8);return c>=232&&c<253},o.prototype.decodeIsoIec646=function(t){var i=this.extractNumericValueFromBitArray(t,5);if(15===i)return new Qo(t+5,Qo.FNC1);if(i>=5&&i<15)return new Qo(t+5,"0"+(i-5));var h,s=this.extractNumericValueFromBitArray(t,7);if(s>=64&&s<90)return new Qo(t+7,""+(s+1));if(s>=90&&s<116)return new Qo(t+7,""+(s+7));switch(this.extractNumericValueFromBitArray(t,8)){case 232:h="!";break;case 233:h='"';break;case 234:h="%";break;case 235:h="&";break;case 236:h="'";break;case 237:h="(";break;case 238:h=")";break;case 239:h="*";break;case 240:h="+";break;case 241:h=",";break;case 242:h="-";break;case 243:h=".";break;case 244:h="/";break;case 245:h=":";break;case 246:h=";";break;case 247:h="<";break;case 248:h="=";break;case 249:h=">";break;case 250:h="?";break;case 251:h="_";break;case 252:h=" ";break;default:throw new bt}return new Qo(t+8,h)},o.prototype.isStillAlpha=function(t){if(t+5>this.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(t,5);if(i>=5&&i<16)return!0;if(t+6>this.information.getSize())return!1;var s=this.extractNumericValueFromBitArray(t,6);return s>=16&&s<63},o.prototype.decodeAlphanumeric=function(t){var i=this.extractNumericValueFromBitArray(t,5);if(15===i)return new Qo(t+5,Qo.FNC1);if(i>=5&&i<15)return new Qo(t+5,"0"+(i-5));var c,s=this.extractNumericValueFromBitArray(t,6);if(s>=32&&s<58)return new Qo(t+6,""+(s+33));switch(s){case 58:c="*";break;case 59:c=",";break;case 60:c="-";break;case 61:c=".";break;case 62:c="/";break;default:throw new ki("Decoding invalid alphanumeric value: "+s)}return new Qo(t+6,c)},o.prototype.isAlphaTo646ToAlphaLatch=function(t){if(t+1>this.information.getSize())return!1;for(var i=0;i<5&&i+tthis.information.getSize())return!1;for(var i=t;ithis.information.getSize())return!1;for(var i=0;i<4&&i+t=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ar=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.pairs=new Array(t.MAX_PAIRS),i.rows=new Array,i.startEnd=[2],i}return ar(t,o),t.prototype.decodeRow=function(i,s,c){this.pairs.length=0,this.startFromEven=!1;try{return t.constructResult(this.decodeRow2pairs(i,s))}catch{}return this.pairs.length=0,this.startFromEven=!0,t.constructResult(this.decodeRow2pairs(i,s))},t.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},t.prototype.decodeRow2pairs=function(i,s){for(var c=!1;!c;)try{this.pairs.push(this.retrieveNextPair(s,this.pairs,i))}catch(M){if(M instanceof Se){if(!this.pairs.length)throw new Se;c=!0}}if(this.checkChecksum())return this.pairs;var h;if(h=!!this.rows.length,this.storeRow(i,!1),h){var v=this.checkRowsBoolean(!1);if(null!=v||null!=(v=this.checkRowsBoolean(!0)))return v}throw new Se},t.prototype.checkRowsBoolean=function(i){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,i&&(this.rows=this.rows.reverse());var s=null;try{s=this.checkRows(new Array,0)}catch(c){console.log(c)}return i&&(this.rows=this.rows.reverse()),s},t.prototype.checkRows=function(i,s){for(var c,h,v=s;vM.length)){for(var O=!0,N=0;Ni){v=M.isEquivalent(this.pairs);break}h=M.isEquivalent(this.pairs),c++}v||h||t.isPartialRow(this.pairs,this.rows)||(this.rows.push(c,new hr(this.pairs,i,s)),this.removePartialRows(this.pairs,this.rows))},t.prototype.removePartialRows=function(i,s){var c,h,v,M,O,N;try{for(var $=xi(s),q=$.next();!q.done;q=$.next()){var de=q.value;if(de.getPairs().length!==i.length)try{for(var et=(v=void 0,xi(de.getPairs())),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value;try{for(var Gt=(O=void 0,xi(i)),an=Gt.next();!an.done;an=Gt.next())if(li.equals(zt,an.value)){!0;break}}catch(Nn){O={error:Nn}}finally{try{an&&!an.done&&(N=Gt.return)&&N.call(Gt)}finally{if(O)throw O.error}}}}catch(Nn){v={error:Nn}}finally{try{vt&&!vt.done&&(M=et.return)&&M.call(et)}finally{if(v)throw v.error}}}}catch(Nn){c={error:Nn}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}},t.isPartialRow=function(i,s){var c,h,v,M,O,N;try{for(var $=xi(s),q=$.next();!q.done;q=$.next()){var de=q.value,we=!0;try{for(var et=(v=void 0,xi(i)),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value,$t=!1;try{for(var Gt=(O=void 0,xi(de.getPairs())),an=Gt.next();!an.done;an=Gt.next())if(zt.equals(an.value)){$t=!0;break}}catch(Nn){O={error:Nn}}finally{try{an&&!an.done&&(N=Gt.return)&&N.call(Gt)}finally{if(O)throw O.error}}if(!$t){we=!1;break}}}catch(Nn){v={error:Nn}}finally{try{vt&&!vt.done&&(M=et.return)&&M.call(et)}finally{if(v)throw v.error}}if(we)return!0}}catch(Nn){c={error:Nn}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}return!1},t.prototype.getRows=function(){return this.rows},t.constructResult=function(i){var c=function pn(o){try{if(o.get(1))return new gs(o);if(!o.get(2))return new Os(o);switch(Va.extractNumericValueFromBitArray(o,1,4)){case 4:return new xa(o);case 5:return new bc(o)}switch(Va.extractNumericValueFromBitArray(o,1,5)){case 12:return new is(o);case 13:return new Ue(o)}switch(Va.extractNumericValueFromBitArray(o,1,7)){case 56:return new kt(o,"310","11");case 57:return new kt(o,"320","11");case 58:return new kt(o,"310","13");case 59:return new kt(o,"320","13");case 60:return new kt(o,"310","15");case 61:return new kt(o,"320","15");case 62:return new kt(o,"310","17");case 63:return new kt(o,"320","17")}}catch(c){throw console.log(c),new ki("unknown decoder: "+o)}}(Zo.buildBitArray(i)),h=c.parseInformation(),v=i[0].getFinderPattern().getResultPoints(),M=i[i.length-1].getFinderPattern().getResultPoints();return new We(h,null,null,[v[0],v[1],M[0],M[1]],be.RSS_EXPANDED,null)},t.prototype.checkChecksum=function(){var i=this.pairs.get(0),s=i.getLeftChar(),c=i.getRightChar();if(null===c)return!1;for(var h=c.getChecksumPortion(),v=2,M=1;M=0?c:this.isEmptyPair(s)?0:s[s.length-1].getFinderPattern().getStartEnd()[1];var N=s.length%2!=0;this.startFromEven&&(N=!N);for(var $=!1;M=0&&!i.get(O);)O--;O++,h=this.startEnd[0]-O,v=O,M=this.startEnd[1]}else v=this.startEnd[0],h=(M=i.getNextUnset(this.startEnd[1]+1))-this.startEnd[1];var $,N=this.getDecodeFinderCounters();Jt.arraycopy(N,0,N,1,N.length-1),N[0]=h;try{$=this.parseFinderValue(N,t.FINDER_PATTERNS)}catch{return null}return new le($,[v,M],v,M,s)},t.prototype.decodeDataCharacter=function(i,s,c,h){for(var v=this.getDataCharacterCounters(),M=0;M.3)throw new Se;var et=this.getOddCounts(),vt=this.getEvenCounts(),zt=this.getOddRoundingErrors(),$t=this.getEvenRoundingErrors();for(O=0;O8){if(Gt>8.7)throw new Se;an=8}var bn=O/2;1&O?(vt[bn]=an,$t[bn]=Gt-an):(et[bn]=an,zt[bn]=Gt-an)}this.adjustOddEvenCounts(17);var Nn=4*s.getValue()+(c?0:2)+(h?0:1)-1,Zn=0,Kn=0;for(O=et.length-1;O>=0;O--)t.isNotA1left(s,c,h)&&(Kn+=et[O]*t.WEIGHTS[Nn][2*O]),Zn+=et[O];var Gi=0;for(O=vt.length-1;O>=0;O--)t.isNotA1left(s,c,h)&&(Gi+=vt[O]*t.WEIGHTS[Nn][2*O+1]);var Vi=Kn+Gi;if(1&Zn||Zn>13||Zn<4)throw new Se;var go=(13-Zn)/2,Dr=t.SYMBOL_WIDEST[go],hs=9-Dr,Vl=Qn.getRSSvalue(et,Dr,!0),ic=Qn.getRSSvalue(vt,hs,!1);return new Ae(Vl*t.EVEN_TOTAL_SUBSET[go]+ic+t.GSUM[go],Vi)},t.isNotA1left=function(i,s,c){return!(0===i.getValue()&&s&&c)},t.prototype.adjustOddEvenCounts=function(i){var s=_i.sum(new Int32Array(this.getOddCounts())),c=_i.sum(new Int32Array(this.getEvenCounts())),h=!1,v=!1;s>13?v=!0:s<4&&(h=!0);var M=!1,O=!1;c>13?O=!0:c<4&&(M=!0);var N=s+c-i,$=1==(1&s),q=0==(1&c);if(1===N)if($){if(q)throw new Se;v=!0}else{if(!q)throw new Se;O=!0}else if(-1===N)if($){if(q)throw new Se;h=!0}else{if(!q)throw new Se;M=!0}else{if(0!==N)throw new Se;if($){if(!q)throw new Se;s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ma=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.possibleLeftPairs=[],i.possibleRightPairs=[],i}return $a(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,N=this.decodePair(s,!1,i,c);t.addOrTally(this.possibleLeftPairs,N),s.reverse();var $=this.decodePair(s,!0,i,c);t.addOrTally(this.possibleRightPairs,$),s.reverse();try{for(var q=Ui(this.possibleLeftPairs),de=q.next();!de.done;de=q.next()){var we=de.value;if(we.getCount()>1)try{for(var et=(M=void 0,Ui(this.possibleRightPairs)),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value;if(zt.getCount()>1&&t.checkChecksum(we,zt))return t.constructResult(we,zt)}}catch($t){M={error:$t}}finally{try{vt&&!vt.done&&(O=et.return)&&O.call(et)}finally{if(M)throw M.error}}}}catch($t){h={error:$t}}finally{try{de&&!de.done&&(v=q.return)&&v.call(q)}finally{if(h)throw h.error}}throw new Se},t.addOrTally=function(i,s){var c,h;if(null!=s){var v=!1;try{for(var M=Ui(i),O=M.next();!O.done;O=M.next()){var N=O.value;if(N.getValue()===s.getValue()){N.incrementCount(),v=!0;break}}}catch($){c={error:$}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}v||i.push(s)}},t.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},t.constructResult=function(i,s){for(var c=4537077*i.getValue()+s.getValue(),h=new String(c).toString(),v=new Ce,M=13-h.length;M>0;M--)v.append("0");v.append(h);var O=0;for(M=0;M<13;M++){var N=v.charAt(M).charCodeAt(0)-"0".charCodeAt(0);O+=1&M?N:3*N}10==(O=10-O%10)&&(O=0),v.append(O.toString());var $=i.getFinderPattern().getResultPoints(),q=s.getFinderPattern().getResultPoints();return new We(v.toString(),null,0,[$[0],$[1],q[0],q[1]],be.RSS_14,(new Date).getTime())},t.checkChecksum=function(i,s){var c=(i.getChecksumPortion()+16*s.getChecksumPortion())%79,h=9*i.getFinderPattern().getValue()+s.getFinderPattern().getValue();return h>72&&h--,h>8&&h--,c===h},t.prototype.decodePair=function(i,s,c,h){try{var v=this.findFinderPattern(i,s),M=this.parseFoundFinderPattern(i,c,s,v),O=null==h?null:h.get(he.NEED_RESULT_POINT_CALLBACK);if(null!=O){var N=(v[0]+v[1])/2;s&&(N=i.getSize()-1-N),O.foundPossibleResultPoint(new $n(N,c))}var $=this.decodeDataCharacter(i,M,!0),q=this.decodeDataCharacter(i,M,!1);return new bs(1597*$.getValue()+q.getValue(),$.getChecksumPortion()+4*q.getChecksumPortion(),M)}catch{return null}},t.prototype.decodeDataCharacter=function(i,s,c){for(var h=this.getDataCharacterCounters(),v=0;v8&&($t=8);var Gt=Math.floor(M/2);1&M?(we[Gt]=$t,vt[Gt]=zt-$t):(de[Gt]=$t,et[Gt]=zt-$t)}this.adjustOddEvenCounts(c,$);var an=0,bn=0;for(M=de.length-1;M>=0;M--)bn*=9,bn+=de[M],an+=de[M];var Nn=0,Zn=0;for(M=we.length-1;M>=0;M--)Nn*=9,Nn+=we[M],Zn+=we[M];var fi,Gi,Kn=bn+3*Nn;if(c){if(1&an||an>12||an<4)throw new Se;var Vi=9-(Gi=t.OUTSIDE_ODD_WIDEST[fi=(12-an)/2]),go=Qn.getRSSvalue(de,Gi,!1),Dr=Qn.getRSSvalue(we,Vi,!0);return new Ae(go*t.OUTSIDE_EVEN_TOTAL_SUBSET[fi]+Dr+t.OUTSIDE_GSUM[fi],Kn)}if(1&Zn||Zn>10||Zn<4)throw new Se;return Vi=9-(Gi=t.INSIDE_ODD_WIDEST[fi=(10-Zn)/2]),go=Qn.getRSSvalue(de,Gi,!0),Dr=Qn.getRSSvalue(we,Vi,!1),new Ae(Dr*t.INSIDE_ODD_TOTAL_SUBSET[fi]+go+t.INSIDE_GSUM[fi],Kn)},t.prototype.findFinderPattern=function(i,s){var c=this.getDecodeFinderCounters();c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var h=i.getSize(),v=!1,M=0;M=0&&v!==i.get(M);)M--;M++;var O=h[0]-M,N=this.getDecodeFinderCounters(),$=new Int32Array(N.length);Jt.arraycopy(N,0,$,1,N.length-1),$[0]=O;var q=this.parseFinderValue($,t.FINDER_PATTERNS),de=M,we=h[1];return c&&(de=i.getSize()-1-de,we=i.getSize()-1-we),new le(q,[M,h[1]],de,we,s)},t.prototype.adjustOddEvenCounts=function(i,s){var c=_i.sum(new Int32Array(this.getOddCounts())),h=_i.sum(new Int32Array(this.getEvenCounts())),v=!1,M=!1,O=!1,N=!1;i?(c>12?M=!0:c<4&&(v=!0),h>12?N=!0:h<4&&(O=!0)):(c>11?M=!0:c<5&&(v=!0),h>10?N=!0:h<4&&(O=!0));var $=c+h-s,q=(1&c)==(i?1:0),de=1==(1&h);if(1===$)if(q){if(de)throw new Se;M=!0}else{if(!de)throw new Se;N=!0}else if(-1===$)if(q){if(de)throw new Se;v=!0}else{if(!de)throw new Se;O=!0}else{if(0!==$)throw new Se;if(q){if(!de)throw new Se;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),Wi=function(){function o(t,i,s){this.ecCodewords=t,this.ecBlocks=[i],s&&this.ecBlocks.push(s)}return o.prototype.getECCodewords=function(){return this.ecCodewords},o.prototype.getECBlocks=function(){return this.ecBlocks},o}(),Xi=function(){function o(t,i){this.count=t,this.dataCodewords=i}return o.prototype.getCount=function(){return this.count},o.prototype.getDataCodewords=function(){return this.dataCodewords},o}(),dl=function(){function o(t,i,s,c,h,v){var M,O;this.versionNumber=t,this.symbolSizeRows=i,this.symbolSizeColumns=s,this.dataRegionSizeRows=c,this.dataRegionSizeColumns=h,this.ecBlocks=v;var N=0,$=v.getECCodewords(),q=v.getECBlocks();try{for(var de=_o(q),we=de.next();!we.done;we=de.next()){var et=we.value;N+=et.getCount()*(et.getDataCodewords()+$)}}catch(vt){M={error:vt}}finally{try{we&&!we.done&&(O=de.return)&&O.call(de)}finally{if(M)throw M.error}}this.totalCodewords=N}return o.prototype.getVersionNumber=function(){return this.versionNumber},o.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},o.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},o.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},o.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},o.prototype.getTotalCodewords=function(){return this.totalCodewords},o.prototype.getECBlocks=function(){return this.ecBlocks},o.getVersionForDimensions=function(t,i){var s,c;if(1&t||1&i)throw new bt;try{for(var h=_o(o.VERSIONS),v=h.next();!v.done;v=h.next()){var M=v.value;if(M.symbolSizeRows===t&&M.symbolSizeColumns===i)return M}}catch(O){s={error:O}}finally{try{v&&!v.done&&(c=h.return)&&c.call(h)}finally{if(s)throw s.error}}throw new bt},o.prototype.toString=function(){return""+this.versionNumber},o.buildVersions=function(){return[new o(1,10,10,8,8,new Wi(5,new Xi(1,3))),new o(2,12,12,10,10,new Wi(7,new Xi(1,5))),new o(3,14,14,12,12,new Wi(10,new Xi(1,8))),new o(4,16,16,14,14,new Wi(12,new Xi(1,12))),new o(5,18,18,16,16,new Wi(14,new Xi(1,18))),new o(6,20,20,18,18,new Wi(18,new Xi(1,22))),new o(7,22,22,20,20,new Wi(20,new Xi(1,30))),new o(8,24,24,22,22,new Wi(24,new Xi(1,36))),new o(9,26,26,24,24,new Wi(28,new Xi(1,44))),new o(10,32,32,14,14,new Wi(36,new Xi(1,62))),new o(11,36,36,16,16,new Wi(42,new Xi(1,86))),new o(12,40,40,18,18,new Wi(48,new Xi(1,114))),new o(13,44,44,20,20,new Wi(56,new Xi(1,144))),new o(14,48,48,22,22,new Wi(68,new Xi(1,174))),new o(15,52,52,24,24,new Wi(42,new Xi(2,102))),new o(16,64,64,14,14,new Wi(56,new Xi(2,140))),new o(17,72,72,16,16,new Wi(36,new Xi(4,92))),new o(18,80,80,18,18,new Wi(48,new Xi(4,114))),new o(19,88,88,20,20,new Wi(56,new Xi(4,144))),new o(20,96,96,22,22,new Wi(68,new Xi(4,174))),new o(21,104,104,24,24,new Wi(56,new Xi(6,136))),new o(22,120,120,18,18,new Wi(68,new Xi(6,175))),new o(23,132,132,20,20,new Wi(62,new Xi(8,163))),new o(24,144,144,22,22,new Wi(62,new Xi(8,156),new Xi(2,155))),new o(25,8,18,6,16,new Wi(7,new Xi(1,5))),new o(26,8,32,6,14,new Wi(11,new Xi(1,10))),new o(27,12,26,10,24,new Wi(14,new Xi(1,16))),new o(28,12,36,10,16,new Wi(18,new Xi(1,22))),new o(29,16,36,14,16,new Wi(24,new Xi(1,32))),new o(30,16,48,14,22,new Wi(28,new Xi(1,49)))]},o.VERSIONS=o.buildVersions(),o}();const ko=dl;var rs=function(){function o(t){var i=t.getHeight();if(i<8||i>144||1&i)throw new bt;this.version=o.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new ae(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return o.prototype.getVersion=function(){return this.version},o.readVersion=function(t){var i=t.getHeight(),s=t.getWidth();return ko.getVersionForDimensions(i,s)},o.prototype.readCodewords=function(){var t=new Int8Array(this.version.getTotalCodewords()),i=0,s=4,c=0,h=this.mappingBitMatrix.getHeight(),v=this.mappingBitMatrix.getWidth(),M=!1,O=!1,N=!1,$=!1;do{if(s!==h||0!==c||M)if(s===h-2&&0===c&&3&v&&!O)t[i++]=255&this.readCorner2(h,v),s-=2,c+=2,O=!0;else if(s!==h+4||2!==c||7&v||N)if(s!==h-2||0!==c||4!=(7&v)||$){do{s=0&&!this.readMappingMatrix.get(c,s)&&(t[i++]=255&this.readUtah(s,c,h,v)),s-=2,c+=2}while(s>=0&&c=0&&c=0);s+=3,c+=1}else t[i++]=255&this.readCorner4(h,v),s-=2,c+=2,$=!0;else t[i++]=255&this.readCorner3(h,v),s-=2,c+=2,N=!0;else t[i++]=255&this.readCorner1(h,v),s-=2,c+=2,M=!0}while(s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Us=function(){function o(t,i){this.numDataCodewords=t,this.codewords=i}return o.getDataBlocks=function(t,i){var s,c,h,v,M=i.getECBlocks(),O=0,N=M.getECBlocks();try{for(var $=Pc(N),q=$.next();!q.done;q=$.next())O+=(de=q.value).getCount()}catch(Vl){s={error:Vl}}finally{try{q&&!q.done&&(c=$.return)&&c.call($)}finally{if(s)throw s.error}}var we=new Array(O),et=0;try{for(var vt=Pc(N),zt=vt.next();!zt.done;zt=vt.next())for(var de=zt.value,$t=0;$t7?$t-1:$t]=t[Kn++]}if(Kn!==t.length)throw new Ge;return we},o.prototype.getNumDataCodewords=function(){return this.numDataCodewords},o.prototype.getCodewords=function(){return this.codewords},o}();const Vs=Us;var Nc=function(){function o(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}return o.prototype.getBitOffset=function(){return this.bitOffset},o.prototype.getByteOffset=function(){return this.byteOffset},o.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new Ge(""+t);var i=0,s=this.bitOffset,c=this.byteOffset,h=this.bytes;if(s>0){var v=8-s,M=t>8-M<<(O=v-M))>>O,t-=M,8===(s+=M)&&(s=0,c++)}if(t>0){for(;t>=8;)i=i<<8|255&h[c],c++,t-=8;var O;t>0&&(i=i<>(O=8-t)<>O,s+=t)}return this.bitOffset=s,this.byteOffset=c,i},o.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},o}();const ac=Nc;var To=function(o){return o[o.PAD_ENCODE=0]="PAD_ENCODE",o[o.ASCII_ENCODE=1]="ASCII_ENCODE",o[o.C40_ENCODE=2]="C40_ENCODE",o[o.TEXT_ENCODE=3]="TEXT_ENCODE",o[o.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",o[o.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",o[o.BASE256_ENCODE=6]="BASE256_ENCODE",o}(To||{}),nd=function(){function o(){}return o.decode=function(t){var i=new ac(t),s=new Ce,c=new Ce,h=new Array,v=To.ASCII_ENCODE;do{if(v===To.ASCII_ENCODE)v=this.decodeAsciiSegment(i,s,c);else{switch(v){case To.C40_ENCODE:this.decodeC40Segment(i,s);break;case To.TEXT_ENCODE:this.decodeTextSegment(i,s);break;case To.ANSIX12_ENCODE:this.decodeAnsiX12Segment(i,s);break;case To.EDIFACT_ENCODE:this.decodeEdifactSegment(i,s);break;case To.BASE256_ENCODE:this.decodeBase256Segment(i,s,h);break;default:throw new bt}v=To.ASCII_ENCODE}}while(v!==To.PAD_ENCODE&&i.available()>0);return c.length()>0&&s.append(c.toString()),new Pn(t,s.toString(),0===h.length?null:h,null)},o.decodeAsciiSegment=function(t,i,s){var c=!1;do{var h=t.readBits(8);if(0===h)throw new bt;if(h<=128)return c&&(h+=128),i.append(String.fromCharCode(h-1)),To.ASCII_ENCODE;if(129===h)return To.PAD_ENCODE;if(h<=229){var v=h-130;v<10&&i.append("0"),i.append(""+v)}else switch(h){case 230:return To.C40_ENCODE;case 231:return To.BASE256_ENCODE;case 232:i.append(String.fromCharCode(29));break;case 233:case 234:case 241:break;case 235:c=!0;break;case 236:i.append("[)>\x1e05\x1d"),s.insert(0,"\x1e\x04");break;case 237:i.append("[)>\x1e06\x1d"),s.insert(0,"\x1e\x04");break;case 238:return To.ANSIX12_ENCODE;case 239:return To.TEXT_ENCODE;case 240:return To.EDIFACT_ENCODE;default:if(254!==h||0!==t.available())throw new bt}}while(t.available()>0);return To.ASCII_ENCODE},o.decodeC40Segment=function(t,i){var s=!1,c=[],h=0;do{if(8===t.available())return;var v=t.readBits(8);if(254===v)return;this.parseTwoBytes(v,t.readBits(8),c);for(var M=0;M<3;M++){var O=c[M];switch(h){case 0:if(O<3)h=O+1;else{if(!(O0)},o.decodeTextSegment=function(t,i){var s=!1,c=[],h=0;do{if(8===t.available())return;var v=t.readBits(8);if(254===v)return;this.parseTwoBytes(v,t.readBits(8),c);for(var M=0;M<3;M++){var O=c[M];switch(h){case 0:if(O<3)h=O+1;else{if(!(O0)},o.decodeAnsiX12Segment=function(t,i){var s=[];do{if(8===t.available())return;var c=t.readBits(8);if(254===c)return;this.parseTwoBytes(c,t.readBits(8),s);for(var h=0;h<3;h++){var v=s[h];switch(v){case 0:i.append("\r");break;case 1:i.append("*");break;case 2:i.append(">");break;case 3:i.append(" ");break;default:if(v<14)i.append(String.fromCharCode(v+44));else{if(!(v<40))throw new bt;i.append(String.fromCharCode(v+51))}}}}while(t.available()>0)},o.parseTwoBytes=function(t,i,s){var c=(t<<8)+i-1,h=Math.floor(c/1600);s[0]=h,c-=1600*h,h=Math.floor(c/40),s[1]=h,s[2]=c-40*h},o.decodeEdifactSegment=function(t,i){do{if(t.available()<=16)return;for(var s=0;s<4;s++){var c=t.readBits(6);if(31===c){var h=8-t.getBitOffset();return void(8!==h&&t.readBits(h))}32&c||(c|=64),i.append(String.fromCharCode(c))}}while(t.available()>0)},o.decodeBase256Segment=function(t,i,s){var v,c=1+t.getByteOffset(),h=this.unrandomize255State(t.readBits(8),c++);if((v=0===h?t.available()/8|0:h<250?h:250*(h-249)+this.unrandomize255State(t.readBits(8),c++))<0)throw new bt;for(var M=new Uint8Array(v),O=0;O=0?c:c+256},o.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],o.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],o.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],o.TEXT_SHIFT2_SET_CHARS=o.C40_SHIFT2_SET_CHARS,o.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],o}();const lc=nd;var Ca=function(){function o(){this.rsDecoder=new vr(_n.DATA_MATRIX_FIELD_256)}return o.prototype.decode=function(t){var i,s,c=new ul(t),h=c.getVersion(),v=c.readCodewords(),M=Vs.getDataBlocks(v,h),O=0;try{for(var N=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(M),$=N.next();!$.done;$=N.next())O+=$.value.getNumDataCodewords()}catch(an){i={error:an}}finally{try{$&&!$.done&&(s=N.return)&&s.call(N)}finally{if(i)throw i.error}}for(var de=new Uint8Array(O),we=M.length,et=0;etM&&($=M,q[0]=i,q[1]=s,q[2]=c,q[3]=h),$>O&&($=O,q[0]=s,q[1]=c,q[2]=h,q[3]=i),$>N&&(q[0]=c,q[1]=h,q[2]=i,q[3]=s),q},o.prototype.detectSolid2=function(t){var i=t[0],s=t[1],c=t[2],h=t[3],v=this.transitionsBetween(i,h),M=o.shiftPoint(s,c,4*(v+1)),O=o.shiftPoint(c,s,4*(v+1));return this.transitionsBetween(M,i)this.transitionsBetween(O,q)+this.transitionsBetween(N,q)?$:q:$:this.isValid(q)?q:null},o.prototype.shiftToModuleCenter=function(t){var i=t[0],s=t[1],c=t[2],h=t[3],v=this.transitionsBetween(i,h)+1,M=this.transitionsBetween(c,h)+1,O=o.shiftPoint(i,s,4*M),N=o.shiftPoint(c,s,4*v);1==(1&(v=this.transitionsBetween(O,h)+1))&&(v+=1),1==(1&(M=this.transitionsBetween(N,h)+1))&&(M+=1);var de,we,$=(i.getX()+s.getX()+c.getX()+h.getX())/4,q=(i.getY()+s.getY()+c.getY()+h.getY())/4;return i=o.moveAway(i,$,q),s=o.moveAway(s,$,q),c=o.moveAway(c,$,q),h=o.moveAway(h,$,q),O=o.shiftPoint(i,s,4*M),O=o.shiftPoint(O,h,4*v),de=o.shiftPoint(s,i,4*M),de=o.shiftPoint(de,c,4*v),N=o.shiftPoint(c,h,4*M),N=o.shiftPoint(N,s,4*v),we=o.shiftPoint(h,c,4*M),[O,de,N,we=o.shiftPoint(we,i,4*v)]},o.prototype.isValid=function(t){return t.getX()>=0&&t.getX()0&&t.getY()Math.abs(h-s);if(M){var O=s;s=c,c=O,O=h,h=v,v=O}for(var N=Math.abs(h-s),$=Math.abs(v-c),q=-N/2,de=c0){if($t===v)break;$t+=de,q-=N}}return et},o}();const rd=id;var sa=function(){function o(){this.decoder=new ks}return o.prototype.decode=function(t,i){var s,c;if(void 0===i&&(i=null),null!=i&&i.has(he.PURE_BARCODE)){var h=o.extractPureBits(t.getBlackMatrix());s=this.decoder.decode(h),c=o.NO_POINTS}else{var v=new rd(t.getBlackMatrix()).detect();s=this.decoder.decode(v.getBits()),c=v.getPoints()}var M=s.getRawBytes(),O=new We(s.getText(),M,8*M.length,c,be.DATA_MATRIX,Jt.currentTimeMillis()),N=s.getByteSegments();null!=N&&O.putMetadata(He.BYTE_SEGMENTS,N);var $=s.getECLevel();return null!=$&&O.putMetadata(He.ERROR_CORRECTION_LEVEL,$),O},o.prototype.reset=function(){},o.extractPureBits=function(t){var i=t.getTopLeftOnBit(),s=t.getBottomRightOnBit();if(null==i||null==s)throw new Se;var c=this.moduleSize(i,t),h=i[1],M=i[0],N=(s[0]-M+1)/c,$=(s[1]-h+1)/c;if(N<=0||$<=0)throw new Se;var q=c/2;h+=q,M+=q;for(var de=new ae(N,$),we=0;we<$;we++)for(var et=h+we*c,vt=0;vt=o.FOR_BITS.size)throw new Ge;return o.FOR_BITS.get(t)},o.FOR_BITS=new Map,o.FOR_VALUE=new Map,o.L=new o(Mo.L,"L",1),o.M=new o(Mo.M,"M",0),o.Q=new o(Mo.Q,"Q",3),o.H=new o(Mo.H,"H",2),o}();const aa=Ka;var kn=function(){function o(t){this.errorCorrectionLevel=aa.forBits(t>>3&3),this.dataMask=7&t}return o.numBitsDiffering=function(t,i){return Ee.bitCount(t^i)},o.decodeFormatInformation=function(t,i){var s=o.doDecodeFormatInformation(t,i);return null!==s?s:o.doDecodeFormatInformation(t^o.FORMAT_INFO_MASK_QR,i^o.FORMAT_INFO_MASK_QR)},o.doDecodeFormatInformation=function(t,i){var s,c,h=Number.MAX_SAFE_INTEGER,v=0;try{for(var M=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o.FORMAT_INFO_DECODE_LOOKUP),O=M.next();!O.done;O=M.next()){var N=O.value,$=N[0];if($===t||$===i)return new o(N[1]);var q=o.numBitsDiffering(t,$);q=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),v=h.next();!v.done;v=h.next())s+=v.value.getCount()}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return s},o.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},o.prototype.getECBlocks=function(){return this.ecBlocks},o}();const en=Il;var so=function(){function o(t,i){this.count=t,this.dataCodewords=i}return o.prototype.getCount=function(){return this.count},o.prototype.getDataCodewords=function(){return this.dataCodewords},o}();const gt=so;var Ra=function(){function o(t,i){for(var s,c,h=[],v=2;v=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(N),q=$.next();!q.done;q=$.next()){var de=q.value;M+=de.getCount()*(de.getDataCodewords()+O)}}catch(we){s={error:we}}finally{try{q&&!q.done&&(c=$.return)&&c.call($)}finally{if(s)throw s.error}}this.totalCodewords=M}return o.prototype.getVersionNumber=function(){return this.versionNumber},o.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},o.prototype.getTotalCodewords=function(){return this.totalCodewords},o.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},o.prototype.getECBlocksForLevel=function(t){return this.ecBlocks[t.getValue()]},o.getProvisionalVersionForDimension=function(t){if(t%4!=1)throw new bt;try{return this.getVersionForNumber((t-17)/4)}catch{throw new bt}},o.getVersionForNumber=function(t){if(t<1||t>40)throw new Ge;return o.VERSIONS[t-1]},o.decodeVersionInformation=function(t){for(var i=Number.MAX_SAFE_INTEGER,s=0,c=0;c6&&(i.setRegion(t-11,0,3,6),i.setRegion(0,t-11,6,3)),i},o.prototype.toString=function(){return""+this.versionNumber},o.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),o.VERSIONS=[new o(1,new Int32Array(0),new en(7,new gt(1,19)),new en(10,new gt(1,16)),new en(13,new gt(1,13)),new en(17,new gt(1,9))),new o(2,Int32Array.from([6,18]),new en(10,new gt(1,34)),new en(16,new gt(1,28)),new en(22,new gt(1,22)),new en(28,new gt(1,16))),new o(3,Int32Array.from([6,22]),new en(15,new gt(1,55)),new en(26,new gt(1,44)),new en(18,new gt(2,17)),new en(22,new gt(2,13))),new o(4,Int32Array.from([6,26]),new en(20,new gt(1,80)),new en(18,new gt(2,32)),new en(26,new gt(2,24)),new en(16,new gt(4,9))),new o(5,Int32Array.from([6,30]),new en(26,new gt(1,108)),new en(24,new gt(2,43)),new en(18,new gt(2,15),new gt(2,16)),new en(22,new gt(2,11),new gt(2,12))),new o(6,Int32Array.from([6,34]),new en(18,new gt(2,68)),new en(16,new gt(4,27)),new en(24,new gt(4,19)),new en(28,new gt(4,15))),new o(7,Int32Array.from([6,22,38]),new en(20,new gt(2,78)),new en(18,new gt(4,31)),new en(18,new gt(2,14),new gt(4,15)),new en(26,new gt(4,13),new gt(1,14))),new o(8,Int32Array.from([6,24,42]),new en(24,new gt(2,97)),new en(22,new gt(2,38),new gt(2,39)),new en(22,new gt(4,18),new gt(2,19)),new en(26,new gt(4,14),new gt(2,15))),new o(9,Int32Array.from([6,26,46]),new en(30,new gt(2,116)),new en(22,new gt(3,36),new gt(2,37)),new en(20,new gt(4,16),new gt(4,17)),new en(24,new gt(4,12),new gt(4,13))),new o(10,Int32Array.from([6,28,50]),new en(18,new gt(2,68),new gt(2,69)),new en(26,new gt(4,43),new gt(1,44)),new en(24,new gt(6,19),new gt(2,20)),new en(28,new gt(6,15),new gt(2,16))),new o(11,Int32Array.from([6,30,54]),new en(20,new gt(4,81)),new en(30,new gt(1,50),new gt(4,51)),new en(28,new gt(4,22),new gt(4,23)),new en(24,new gt(3,12),new gt(8,13))),new o(12,Int32Array.from([6,32,58]),new en(24,new gt(2,92),new gt(2,93)),new en(22,new gt(6,36),new gt(2,37)),new en(26,new gt(4,20),new gt(6,21)),new en(28,new gt(7,14),new gt(4,15))),new o(13,Int32Array.from([6,34,62]),new en(26,new gt(4,107)),new en(22,new gt(8,37),new gt(1,38)),new en(24,new gt(8,20),new gt(4,21)),new en(22,new gt(12,11),new gt(4,12))),new o(14,Int32Array.from([6,26,46,66]),new en(30,new gt(3,115),new gt(1,116)),new en(24,new gt(4,40),new gt(5,41)),new en(20,new gt(11,16),new gt(5,17)),new en(24,new gt(11,12),new gt(5,13))),new o(15,Int32Array.from([6,26,48,70]),new en(22,new gt(5,87),new gt(1,88)),new en(24,new gt(5,41),new gt(5,42)),new en(30,new gt(5,24),new gt(7,25)),new en(24,new gt(11,12),new gt(7,13))),new o(16,Int32Array.from([6,26,50,74]),new en(24,new gt(5,98),new gt(1,99)),new en(28,new gt(7,45),new gt(3,46)),new en(24,new gt(15,19),new gt(2,20)),new en(30,new gt(3,15),new gt(13,16))),new o(17,Int32Array.from([6,30,54,78]),new en(28,new gt(1,107),new gt(5,108)),new en(28,new gt(10,46),new gt(1,47)),new en(28,new gt(1,22),new gt(15,23)),new en(28,new gt(2,14),new gt(17,15))),new o(18,Int32Array.from([6,30,56,82]),new en(30,new gt(5,120),new gt(1,121)),new en(26,new gt(9,43),new gt(4,44)),new en(28,new gt(17,22),new gt(1,23)),new en(28,new gt(2,14),new gt(19,15))),new o(19,Int32Array.from([6,30,58,86]),new en(28,new gt(3,113),new gt(4,114)),new en(26,new gt(3,44),new gt(11,45)),new en(26,new gt(17,21),new gt(4,22)),new en(26,new gt(9,13),new gt(16,14))),new o(20,Int32Array.from([6,34,62,90]),new en(28,new gt(3,107),new gt(5,108)),new en(26,new gt(3,41),new gt(13,42)),new en(30,new gt(15,24),new gt(5,25)),new en(28,new gt(15,15),new gt(10,16))),new o(21,Int32Array.from([6,28,50,72,94]),new en(28,new gt(4,116),new gt(4,117)),new en(26,new gt(17,42)),new en(28,new gt(17,22),new gt(6,23)),new en(30,new gt(19,16),new gt(6,17))),new o(22,Int32Array.from([6,26,50,74,98]),new en(28,new gt(2,111),new gt(7,112)),new en(28,new gt(17,46)),new en(30,new gt(7,24),new gt(16,25)),new en(24,new gt(34,13))),new o(23,Int32Array.from([6,30,54,78,102]),new en(30,new gt(4,121),new gt(5,122)),new en(28,new gt(4,47),new gt(14,48)),new en(30,new gt(11,24),new gt(14,25)),new en(30,new gt(16,15),new gt(14,16))),new o(24,Int32Array.from([6,28,54,80,106]),new en(30,new gt(6,117),new gt(4,118)),new en(28,new gt(6,45),new gt(14,46)),new en(30,new gt(11,24),new gt(16,25)),new en(30,new gt(30,16),new gt(2,17))),new o(25,Int32Array.from([6,32,58,84,110]),new en(26,new gt(8,106),new gt(4,107)),new en(28,new gt(8,47),new gt(13,48)),new en(30,new gt(7,24),new gt(22,25)),new en(30,new gt(22,15),new gt(13,16))),new o(26,Int32Array.from([6,30,58,86,114]),new en(28,new gt(10,114),new gt(2,115)),new en(28,new gt(19,46),new gt(4,47)),new en(28,new gt(28,22),new gt(6,23)),new en(30,new gt(33,16),new gt(4,17))),new o(27,Int32Array.from([6,34,62,90,118]),new en(30,new gt(8,122),new gt(4,123)),new en(28,new gt(22,45),new gt(3,46)),new en(30,new gt(8,23),new gt(26,24)),new en(30,new gt(12,15),new gt(28,16))),new o(28,Int32Array.from([6,26,50,74,98,122]),new en(30,new gt(3,117),new gt(10,118)),new en(28,new gt(3,45),new gt(23,46)),new en(30,new gt(4,24),new gt(31,25)),new en(30,new gt(11,15),new gt(31,16))),new o(29,Int32Array.from([6,30,54,78,102,126]),new en(30,new gt(7,116),new gt(7,117)),new en(28,new gt(21,45),new gt(7,46)),new en(30,new gt(1,23),new gt(37,24)),new en(30,new gt(19,15),new gt(26,16))),new o(30,Int32Array.from([6,26,52,78,104,130]),new en(30,new gt(5,115),new gt(10,116)),new en(28,new gt(19,47),new gt(10,48)),new en(30,new gt(15,24),new gt(25,25)),new en(30,new gt(23,15),new gt(25,16))),new o(31,Int32Array.from([6,30,56,82,108,134]),new en(30,new gt(13,115),new gt(3,116)),new en(28,new gt(2,46),new gt(29,47)),new en(30,new gt(42,24),new gt(1,25)),new en(30,new gt(23,15),new gt(28,16))),new o(32,Int32Array.from([6,34,60,86,112,138]),new en(30,new gt(17,115)),new en(28,new gt(10,46),new gt(23,47)),new en(30,new gt(10,24),new gt(35,25)),new en(30,new gt(19,15),new gt(35,16))),new o(33,Int32Array.from([6,30,58,86,114,142]),new en(30,new gt(17,115),new gt(1,116)),new en(28,new gt(14,46),new gt(21,47)),new en(30,new gt(29,24),new gt(19,25)),new en(30,new gt(11,15),new gt(46,16))),new o(34,Int32Array.from([6,34,62,90,118,146]),new en(30,new gt(13,115),new gt(6,116)),new en(28,new gt(14,46),new gt(23,47)),new en(30,new gt(44,24),new gt(7,25)),new en(30,new gt(59,16),new gt(1,17))),new o(35,Int32Array.from([6,30,54,78,102,126,150]),new en(30,new gt(12,121),new gt(7,122)),new en(28,new gt(12,47),new gt(26,48)),new en(30,new gt(39,24),new gt(14,25)),new en(30,new gt(22,15),new gt(41,16))),new o(36,Int32Array.from([6,24,50,76,102,128,154]),new en(30,new gt(6,121),new gt(14,122)),new en(28,new gt(6,47),new gt(34,48)),new en(30,new gt(46,24),new gt(10,25)),new en(30,new gt(2,15),new gt(64,16))),new o(37,Int32Array.from([6,28,54,80,106,132,158]),new en(30,new gt(17,122),new gt(4,123)),new en(28,new gt(29,46),new gt(14,47)),new en(30,new gt(49,24),new gt(10,25)),new en(30,new gt(24,15),new gt(46,16))),new o(38,Int32Array.from([6,32,58,84,110,136,162]),new en(30,new gt(4,122),new gt(18,123)),new en(28,new gt(13,46),new gt(32,47)),new en(30,new gt(48,24),new gt(14,25)),new en(30,new gt(42,15),new gt(32,16))),new o(39,Int32Array.from([6,26,54,82,110,138,166]),new en(30,new gt(20,117),new gt(4,118)),new en(28,new gt(40,47),new gt(7,48)),new en(30,new gt(43,24),new gt(22,25)),new en(30,new gt(10,15),new gt(67,16))),new o(40,Int32Array.from([6,30,58,86,114,142,170]),new en(30,new gt(19,118),new gt(6,119)),new en(28,new gt(18,47),new gt(31,48)),new en(30,new gt(34,24),new gt(34,25)),new en(30,new gt(20,15),new gt(61,16)))],o}();const Ls=Ra;var os=function(o){return o[o.DATA_MASK_000=0]="DATA_MASK_000",o[o.DATA_MASK_001=1]="DATA_MASK_001",o[o.DATA_MASK_010=2]="DATA_MASK_010",o[o.DATA_MASK_011=3]="DATA_MASK_011",o[o.DATA_MASK_100=4]="DATA_MASK_100",o[o.DATA_MASK_101=5]="DATA_MASK_101",o[o.DATA_MASK_110=6]="DATA_MASK_110",o[o.DATA_MASK_111=7]="DATA_MASK_111",o}(os||{}),ss=function(){function o(t,i){this.value=t,this.isMasked=i}return o.prototype.unmaskBitMatrix=function(t,i){for(var s=0;s=0;s--)t=this.copyBit(8,s,t);var c=this.bitMatrix.getHeight(),h=0,v=c-7;for(s=c-1;s>=v;s--)h=this.copyBit(8,s,h);for(i=c-8;i=0;h--)for(var v=t-9;v>=c;v--)s=this.copyBit(v,h,s);var M=Ls.decodeVersionInformation(s);if(null!==M&&M.getDimensionForVersion()===t)return this.parsedVersion=M,M;for(s=0,v=5;v>=0;v--)for(h=t-9;h>=c;h--)s=this.copyBit(v,h,s);if(null!==(M=Ls.decodeVersionInformation(s))&&M.getDimensionForVersion()===t)return this.parsedVersion=M,M;throw new bt},o.prototype.copyBit=function(t,i,s){return(this.isMirror?this.bitMatrix.get(i,t):this.bitMatrix.get(t,i))?s<<1|1:s<<1},o.prototype.readCodewords=function(){var t=this.readFormatInformation(),i=this.readVersion(),s=Fc.values.get(t.getDataMask()),c=this.bitMatrix.getHeight();s.unmaskBitMatrix(this.bitMatrix,c);for(var h=i.buildFunctionPattern(),v=!0,M=new Uint8Array(i.getTotalCodewords()),O=0,N=0,$=0,q=c-1;q>0;q-=2){6===q&&q--;for(var de=0;de=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},W=function(){function o(t,i){this.numDataCodewords=t,this.codewords=i}return o.getDataBlocks=function(t,i,s){var c,h,v,M;if(t.length!==i.getTotalCodewords())throw new Ge;var O=i.getECBlocksForLevel(s),N=0,$=O.getECBlocks();try{for(var q=ys($),de=q.next();!de.done;de=q.next())N+=(we=de.value).getCount()}catch(hs){c={error:hs}}finally{try{de&&!de.done&&(h=q.return)&&h.call(q)}finally{if(c)throw c.error}}var et=new Array(N),vt=0;try{for(var zt=ys($),$t=zt.next();!$t.done;$t=zt.next())for(var we=$t.value,Gt=0;Gt=0&&et[Zn].codewords.length!==Nn;)Zn--;Zn++;var fi=Nn-O.getECCodewordsPerBlock(),Gi=0;for(Gt=0;Gtt.available())throw new bt;for(var c=new Uint8Array(2*s),h=0;s>0;){var v=t.readBits(13),M=v/96<<8&4294967295|v%96;c[h]=(M+=M<959?41377:42657)>>8&255,c[h+1]=255&M,h+=2,s--}try{i.append(Wn.decode(c,ct.GB2312))}catch(O){throw new bt(O)}},o.decodeKanjiSegment=function(t,i,s){if(13*s>t.available())throw new bt;for(var c=new Uint8Array(2*s),h=0;s>0;){var v=t.readBits(13),M=v/192<<8&4294967295|v%192;c[h]=(M+=M<7936?33088:49472)>>8,c[h+1]=M,h+=2,s--}try{i.append(Wn.decode(c,ct.SHIFT_JIS))}catch(O){throw new bt(O)}},o.decodeByteSegment=function(t,i,s,c,h,v){if(8*s>t.available())throw new bt;for(var M=new Uint8Array(s),O=0;O=o.ALPHANUMERIC_CHARS.length)throw new bt;return o.ALPHANUMERIC_CHARS[t]},o.decodeAlphanumericSegment=function(t,i,s,c){for(var h=i.length();s>1;){if(t.available()<11)throw new bt;var v=t.readBits(11);i.append(o.toAlphaNumericChar(Math.floor(v/45))),i.append(o.toAlphaNumericChar(v%45)),s-=2}if(1===s){if(t.available()<6)throw new bt;i.append(o.toAlphaNumericChar(t.readBits(6)))}if(c)for(var M=h;M=3;){if(t.available()<10)throw new bt;var c=t.readBits(10);if(c>=1e3)throw new bt;i.append(o.toAlphaNumericChar(Math.floor(c/100))),i.append(o.toAlphaNumericChar(Math.floor(c/10)%10)),i.append(o.toAlphaNumericChar(c%10)),s-=3}if(2===s){if(t.available()<7)throw new bt;var h=t.readBits(7);if(h>=100)throw new bt;i.append(o.toAlphaNumericChar(Math.floor(h/10))),i.append(o.toAlphaNumericChar(h%10))}else if(1===s){if(t.available()<4)throw new bt;var v=t.readBits(4);if(v>=10)throw new bt;i.append(o.toAlphaNumericChar(v))}},o.parseECIValue=function(t){var i=t.readBits(8);if(!(128&i))return 127&i;if(128==(192&i))return(63&i)<<8&4294967295|t.readBits(8);if(192==(224&i))return(31&i)<<16&4294967295|t.readBits(16);throw new bt},o.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",o.GB2312_SUBSET=1,o}();const Pt=qe;var mn=function(){function o(t){this.mirrored=t}return o.prototype.isMirrored=function(){return this.mirrored},o.prototype.applyMirroredCorrection=function(t){if(this.mirrored&&null!==t&&!(t.length<3)){var i=t[0];t[0]=t[2],t[2]=i}},o}();const hn=mn;var on=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ji=function(){function o(){this.rsDecoder=new vr(_n.QR_CODE_FIELD_256)}return o.prototype.decodeBooleanArray=function(t,i){return this.decodeBitMatrix(ae.parseFromBooleanArray(t),i)},o.prototype.decodeBitMatrix=function(t,i){var s=new ka(t),c=null;try{return this.decodeBitMatrixParser(s,i)}catch(v){c=v}try{s.remask(),s.setMirror(!0),s.readVersion(),s.readFormatInformation(),s.mirror();var h=this.decodeBitMatrixParser(s,i);return h.setOther(new hn(!0)),h}catch(v){throw null!==c?c:v}},o.prototype.decodeBitMatrixParser=function(t,i){var s,c,h,v,M=t.readVersion(),O=t.readFormatInformation().getErrorCorrectionLevel(),N=t.readCodewords(),$=ne.getDataBlocks(N,M,O),q=0;try{for(var de=on($),we=de.next();!we.done;we=de.next())q+=(et=we.value).getNumDataCodewords()}catch(Zn){s={error:Zn}}finally{try{we&&!we.done&&(c=de.return)&&c.call(de)}finally{if(s)throw s.error}}var vt=new Uint8Array(q),zt=0;try{for(var $t=on($),Gt=$t.next();!Gt.done;Gt=$t.next()){var et,an=(et=Gt.value).getCodewords(),bn=et.getNumDataCodewords();this.correctErrors(an,bn);for(var Nn=0;Nn=s)return!1;return!0},o.prototype.crossCheckVertical=function(t,i,s,c){var h=this.image,v=h.getHeight(),M=this.crossCheckStateCount;M[0]=0,M[1]=0,M[2]=0;for(var O=t;O>=0&&h.get(i,O)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&!h.get(i,O)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;Os)return NaN;for(;Os||5*Math.abs(M[0]+M[1]+M[2]-c)>=2*c?NaN:this.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.handlePossibleCenter=function(t,i,s){var c,h,v=t[0]+t[1]+t[2],M=o.centerFromEnd(t,s),O=this.crossCheckVertical(i,M,2*t[1],v);if(!isNaN(O)){var N=(t[0]+t[1]+t[2])/3;try{for(var $=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.possibleCenters),q=$.next();!q.done;q=$.next()){var de=q.value;if(de.aboutEquals(N,O,M))return de.combineEstimate(O,M,N)}}catch(et){c={error:et}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}var we=new Ps(M,O,N);this.possibleCenters.push(we),null!=this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(we)}return null},o}();const Ja=Rl;var xd=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Md=function(o){function t(i,s,c,h){var v=o.call(this,i,s)||this;return v.estimatedModuleSize=c,v.count=h,void 0===h&&(v.count=1),v}return xd(t,o),t.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},t.prototype.getCount=function(){return this.count},t.prototype.aboutEquals=function(i,s,c){if(Math.abs(s-this.getY())<=i&&Math.abs(c-this.getX())<=i){var h=Math.abs(i-this.estimatedModuleSize);return h<=1||h<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(i,s,c){var h=this.count+1;return new t((this.count*this.getX()+s)/h,(this.count*this.getY()+i)/h,(this.count*this.estimatedModuleSize+c)/h,h)},t}($n);const Do=Md;var qa=function(){function o(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}return o.prototype.getBottomLeft=function(){return this.bottomLeft},o.prototype.getTopLeft=function(){return this.topLeft},o.prototype.getTopRight=function(){return this.topRight},o}();const xr=qa;var dc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ec=function(){function o(t,i){this.image=t,this.resultPointCallback=i,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=i}return o.prototype.getImage=function(){return this.image},o.prototype.getPossibleCenters=function(){return this.possibleCenters},o.prototype.find=function(t){var i=null!=t&&void 0!==t.get(he.TRY_HARDER),s=null!=t&&void 0!==t.get(he.PURE_BARCODE),c=this.image,h=c.getHeight(),v=c.getWidth(),M=Math.floor(3*h/(4*o.MAX_MODULES));(MN[2]&&($+=et-N[2]-M,de=v-1)}q=0,N[0]=0,N[1]=0,N[2]=0,N[3]=0,N[4]=0}else N[0]=N[2],N[1]=N[3],N[2]=N[4],N[3]=1,N[4]=0,q=3;else N[++q]++;o.foundPatternCross(N)&&!0===this.handlePossibleCenter(N,$,v,s)&&(M=N[0],this.hasSkipped&&(O=this.haveMultiplyConfirmedCenters()))}var vt=this.selectBestPatterns();return $n.orderBestPatterns(vt),new xr(vt)},o.centerFromEnd=function(t,i){return i-t[4]-t[3]-t[2]/2},o.foundPatternCross=function(t){for(var i=0,s=0;s<5;s++){var c=t[s];if(0===c)return!1;i+=c}if(i<7)return!1;var h=i/7,v=h/2;return Math.abs(h-t[0])=v&&i>=v&&M.get(i-v,t-v);)h[2]++,v++;if(t=v&&i>=v&&!M.get(i-v,t-v)&&h[1]<=s;)h[1]++,v++;if(ts)return!1;for(;t>=v&&i>=v&&M.get(i-v,t-v)&&h[0]<=s;)h[0]++,v++;if(h[0]>s)return!1;var O=M.getHeight(),N=M.getWidth();for(v=1;t+v=O||i+v>=N)return!1;for(;t+v=O||i+v>=N||h[3]>=s)return!1;for(;t+v=s)&&Math.abs(h[0]+h[1]+h[2]+h[3]+h[4]-c)<2*c&&o.foundPatternCross(h)},o.prototype.crossCheckVertical=function(t,i,s,c){for(var h=this.image,v=h.getHeight(),M=this.getCrossCheckStateCount(),O=t;O>=0&&h.get(i,O);)M[2]++,O--;if(O<0)return NaN;for(;O>=0&&!h.get(i,O)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&h.get(i,O)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;O=s)return NaN;for(;O=s||5*Math.abs(M[0]+M[1]+M[2]+M[3]+M[4]-c)>=2*c?NaN:o.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.crossCheckHorizontal=function(t,i,s,c){for(var h=this.image,v=h.getWidth(),M=this.getCrossCheckStateCount(),O=t;O>=0&&h.get(O,i);)M[2]++,O--;if(O<0)return NaN;for(;O>=0&&!h.get(O,i)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&h.get(O,i)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;O=s)return NaN;for(;O=s||5*Math.abs(M[0]+M[1]+M[2]+M[3]+M[4]-c)>=c?NaN:o.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.handlePossibleCenter=function(t,i,s,c){var h=t[0]+t[1]+t[2]+t[3]+t[4],v=o.centerFromEnd(t,s),M=this.crossCheckVertical(i,Math.floor(v),t[2],h);if(!isNaN(M)&&(v=this.crossCheckHorizontal(Math.floor(v),Math.floor(M),t[2],h),!isNaN(v)&&(!c||this.crossCheckDiagonal(Math.floor(M),Math.floor(v),t[2],h)))){for(var O=h/7,N=!1,$=this.possibleCenters,q=0,de=$.length;q=o.CENTER_QUORUM){if(null!=c)return this.hasSkipped=!0,Math.floor((Math.abs(c.getX()-M.getX())-Math.abs(c.getY()-M.getY()))/2);c=M}}}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return 0},o.prototype.haveMultiplyConfirmedCenters=function(){var t,i,s,c,h=0,v=0,M=this.possibleCenters.length;try{for(var O=dc(this.possibleCenters),N=O.next();!N.done;N=O.next())($=N.value).getCount()>=o.CENTER_QUORUM&&(h++,v+=$.getEstimatedModuleSize())}catch(vt){t={error:vt}}finally{try{N&&!N.done&&(i=O.return)&&i.call(O)}finally{if(t)throw t.error}}if(h<3)return!1;var q=v/M,de=0;try{for(var we=dc(this.possibleCenters),et=we.next();!et.done;et=we.next()){var $=et.value;de+=Math.abs($.getEstimatedModuleSize()-q)}}catch(vt){s={error:vt}}finally{try{et&&!et.done&&(c=we.return)&&c.call(we)}finally{if(s)throw s.error}}return de<=.05*v},o.prototype.selectBestPatterns=function(){var t,i,s,c,h=this.possibleCenters.length;if(h<3)throw new Se;var M,v=this.possibleCenters;if(h>3){var O=0,N=0;try{for(var $=dc(this.possibleCenters),q=$.next();!q.done;q=$.next()){var we=q.value.getEstimatedModuleSize();O+=we,N+=we*we}}catch(Nn){t={error:Nn}}finally{try{q&&!q.done&&(i=$.return)&&i.call($)}finally{if(t)throw t.error}}M=O/h;var et=Math.sqrt(N/h-M*M);v.sort(function(Nn,Zn){var Kn=Math.abs(Zn.getEstimatedModuleSize()-M),fi=Math.abs(Nn.getEstimatedModuleSize()-M);return Knfi?1:0});for(var vt=Math.max(.2*M,et),zt=0;zt3;zt++)Math.abs(v[zt].getEstimatedModuleSize()-M)>vt&&(v.splice(zt,1),zt--)}if(v.length>3){O=0;try{for(var Gt=dc(v),an=Gt.next();!an.done;an=Gt.next())O+=an.value.getEstimatedModuleSize()}catch(Zn){s={error:Zn}}finally{try{an&&!an.done&&(c=Gt.return)&&c.call(Gt)}finally{if(s)throw s.error}}M=O/v.length,v.sort(function(Zn,Kn){if(Kn.getCount()===Zn.getCount()){var fi=Math.abs(Kn.getEstimatedModuleSize()-M),Gi=Math.abs(Zn.getEstimatedModuleSize()-M);return fiGi?-1:0}return Kn.getCount()-Zn.getCount()}),v.splice(3)}return[v[0],v[1],v[2]]},o.CENTER_QUORUM=2,o.MIN_SKIP=3,o.MAX_MODULES=57,o}();const sd=Ec;var uc=function(){function o(t){this.image=t}return o.prototype.getImage=function(){return this.image},o.prototype.getResultPointCallback=function(){return this.resultPointCallback},o.prototype.detect=function(t){this.resultPointCallback=null==t?null:t.get(he.NEED_RESULT_POINT_CALLBACK);var s=new sd(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(s)},o.prototype.processFinderPatternInfo=function(t){var i=t.getTopLeft(),s=t.getTopRight(),c=t.getBottomLeft(),h=this.calculateModuleSize(i,s,c);if(h<1)throw new Se("No pattern found in proccess finder.");var v=o.computeDimension(i,s,c,h),M=Ls.getProvisionalVersionForDimension(v),O=M.getDimensionForVersion()-7,N=null;if(M.getAlignmentPatternCenters().length>0)for(var $=s.getX()-i.getX()+c.getX(),q=s.getY()-i.getY()+c.getY(),de=1-3/O,we=Math.floor(i.getX()+de*($-i.getX())),et=Math.floor(i.getY()+de*(q-i.getY())),vt=4;vt<=16;vt<<=1)try{N=this.findAlignmentInRegion(h,we,et,vt);break}catch(an){if(!(an instanceof Se))throw an}var zt=o.createTransform(i,s,c,N,v),$t=o.sampleGrid(this.image,zt,v);return new Fr($t,null===N?[c,i,s]:[c,i,s,N])},o.createTransform=function(t,i,s,c,h){var M,O,N,$,v=h-3.5;return null!==c?(M=c.getX(),O=c.getY(),$=N=v-3):(M=i.getX()-t.getX()+s.getX(),O=i.getY()-t.getY()+s.getY(),N=v,$=v),Ws.quadrilateralToQuadrilateral(3.5,3.5,v,3.5,N,$,3.5,v,t.getX(),t.getY(),i.getX(),i.getY(),M,O,s.getX(),s.getY())},o.sampleGrid=function(t,i,s){return ga.getInstance().sampleGridWithTransform(t,s,s,i)},o.computeDimension=function(t,i,s,c){var h=_i.round($n.distance(t,i)/c),v=_i.round($n.distance(t,s)/c),M=Math.floor((h+v)/2)+7;switch(3&M){case 0:M++;break;case 2:M--;break;case 3:throw new Se("Dimensions could be not found.")}return M},o.prototype.calculateModuleSize=function(t,i,s){return(this.calculateModuleSizeOneWay(t,i)+this.calculateModuleSizeOneWay(t,s))/2},o.prototype.calculateModuleSizeOneWay=function(t,i){var s=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(i.getX()),Math.floor(i.getY())),c=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(i.getX()),Math.floor(i.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(s)?c/7:isNaN(c)?s/7:(s+c)/14},o.prototype.sizeOfBlackWhiteBlackRunBothWays=function(t,i,s,c){var h=this.sizeOfBlackWhiteBlackRun(t,i,s,c),v=1,M=t-(s-t);M<0?(v=t/(t-M),M=0):M>=this.image.getWidth()&&(v=(this.image.getWidth()-1-t)/(M-t),M=this.image.getWidth()-1);var O=Math.floor(i-(c-i)*v);return v=1,O<0?(v=i/(i-O),O=0):O>=this.image.getHeight()&&(v=(this.image.getHeight()-1-i)/(O-i),O=this.image.getHeight()-1),M=Math.floor(t+(M-t)*v),(h+=this.sizeOfBlackWhiteBlackRun(t,i,M,O))-1},o.prototype.sizeOfBlackWhiteBlackRun=function(t,i,s,c){var h=Math.abs(c-i)>Math.abs(s-t);if(h){var v=t;t=i,i=v,v=s,s=c,c=v}for(var M=Math.abs(s-t),O=Math.abs(c-i),N=-M/2,$=t0){if(vt===c)break;vt+=q,N-=M}}return 2===de?_i.distance(s+$,c,t,i):NaN},o.prototype.findAlignmentInRegion=function(t,i,s,c){var h=Math.floor(c*t),v=Math.max(0,i-h),M=Math.min(this.image.getWidth()-1,i+h);if(M-v<3*t)throw new Se("Alignment top exceeds estimated module size.");var O=Math.max(0,s-h),N=Math.min(this.image.getHeight()-1,s+h);if(N-O<3*t)throw new Se("Alignment bottom exceeds estimated module size.");return new Ja(this.image,v,O,M-v,N-O,t,this.resultPointCallback).find()},o}();const hc=uc;var Qa=function(){function o(){this.decoder=new Gr}return o.prototype.getDecoder=function(){return this.decoder},o.prototype.decode=function(t,i){var s,c;if(null!=i&&void 0!==i.get(he.PURE_BARCODE)){var h=o.extractPureBits(t.getBlackMatrix());s=this.decoder.decodeBitMatrix(h,i),c=o.NO_POINTS}else{var v=new hc(t.getBlackMatrix()).detect(i);s=this.decoder.decodeBitMatrix(v.getBits(),i),c=v.getPoints()}s.getOther()instanceof hn&&s.getOther().applyMirroredCorrection(c);var M=new We(s.getText(),s.getRawBytes(),void 0,c,be.QR_CODE,void 0),O=s.getByteSegments();null!==O&&M.putMetadata(He.BYTE_SEGMENTS,O);var N=s.getECLevel();return null!==N&&M.putMetadata(He.ERROR_CORRECTION_LEVEL,N),s.hasStructuredAppend()&&(M.putMetadata(He.STRUCTURED_APPEND_SEQUENCE,s.getStructuredAppendSequenceNumber()),M.putMetadata(He.STRUCTURED_APPEND_PARITY,s.getStructuredAppendParity())),M},o.prototype.reset=function(){},o.extractPureBits=function(t){var i=t.getTopLeftOnBit(),s=t.getBottomRightOnBit();if(null===i||null===s)throw new Se;var c=this.moduleSize(i,t),h=i[1],v=s[1],M=i[0],O=s[0];if(M>=O||h>=v)throw new Se;if(v-h!=O-M&&(O=M+(v-h))>=t.getWidth())throw new Se;var N=Math.round((O-M+1)/c),$=Math.round((v-h+1)/c);if(N<=0||$<=0)throw new Se;if($!==N)throw new Se;var q=Math.floor(c/2);h+=q;var de=(M+=q)+Math.floor((N-1)*c)-O;if(de>0){if(de>q)throw new Se;M-=de}var we=h+Math.floor(($-1)*c)-v;if(we>0){if(we>q)throw new Se;h-=we}for(var et=new ae(N,$),vt=0;vt<$;vt++)for(var zt=h+Math.floor(vt*c),$t=0;$t=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),M=v.next();!M.done;M=v.next())c[h++]=M.value}catch(N){i={error:N}}finally{try{M&&!M.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return c},o.getCodeword=function(t){var i=at.binarySearch(o.SYMBOL_TABLE,262143&t);return i<0?-1:(o.CODEWORD_TABLE[i]-1)%o.NUMBER_OF_CODEWORDS},o.MAX_CODEWORDS_IN_BARCODE=(o.NUMBER_OF_CODEWORDS=929)-1,o.MIN_ROWS_IN_BARCODE=3,o.MAX_ROWS_IN_BARCODE=90,o.MODULES_IN_CODEWORD=17,o.MODULES_IN_STOP_PATTERN=18,o.BARS_IN_MODULE=8,o.EMPTY_INT_ARRAY=new Int32Array([]),o.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),o.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),o}();const Pi=ad;var Xa=function(){function o(t,i){this.bits=t,this.points=i}return o.prototype.getBits=function(){return this.bits},o.prototype.getPoints=function(){return this.points},o}();const ld=Xa;var Sc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Cd=function(){function o(){}return o.detectMultiple=function(t,i,s){var c=t.getBlackMatrix(),h=o.detect(s,c);return h.length||((c=c.clone()).rotate180(),h=o.detect(s,c)),new ld(c,h)},o.detect=function(t,i){for(var s,c,h=new Array,v=0,M=0,O=!1;v0;){if(null==(q=o.findGuardPattern(t,h,--c,s,!1,v,N))){c++;break}$=q}M[0]=new $n($[0],c),M[1]=new $n($[1],c),O=!0;break}var de=c+1;if(O){for(var we=0,q=Int32Array.from([Math.trunc(M[0].getX()),Math.trunc(M[1].getX())]);deo.SKIPPED_ROW_COUNT_MAX)break;we++}}M[2]=new $n(q[0],de-=we+1),M[3]=new $n(q[1],de)}return de-c0&&N++de?q-de:de-q;if(we>s)return 1/0;N+=we}return N/h},o.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),o.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),o.MAX_AVG_VARIANCE=.42,o.MAX_INDIVIDUAL_VARIANCE=.8,o.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),o.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),o.MAX_PIXEL_DRIFT=3,o.MAX_PATTERN_DRIFT=5,o.SKIPPED_ROW_COUNT_MAX=25,o.ROW_STEP=5,o.BARCODE_MIN_HEIGHT=10,o}();const el=Cd;var Yc=function(){function o(t,i){if(0===i.length)throw new Ge;this.field=t;var s=i.length;if(s>1&&0===i[0]){for(var c=1;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.coefficients),v=h.next();!v.done;v=h.next())c=this.field.add(c,v.value)}catch(q){i={error:q}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c}for(var O=this.coefficients[0],N=this.coefficients.length,$=1;$s.length){var c=i;i=s,s=c}var h=new Int32Array(s.length),v=s.length-i.length;Jt.arraycopy(s,0,h,0,v);for(var M=v;M=0;i--){var s=this.getCoefficient(i);0!==s&&(s<0?(t.append(" - "),s=-s):t.length()>0&&t.append(" + "),(0===i||1!==s)&&t.append(s),0!==i&&(1===i?t.append("x"):(t.append("x^"),t.append(i))))}return t.toString()},o}();const ca=Yc;var zd=function(){function o(){}return o.prototype.add=function(t,i){return(t+i)%this.modulus},o.prototype.subtract=function(t,i){return(this.modulus+t-i)%this.modulus},o.prototype.exp=function(t){return this.expTable[t]},o.prototype.log=function(t){if(0===t)throw new Ge;return this.logTable[t]},o.prototype.inverse=function(t){if(0===t)throw new st;return this.expTable[this.modulus-this.logTable[t]-1]},o.prototype.multiply=function(t,i){return 0===t||0===i?0:this.expTable[(this.logTable[t]+this.logTable[i])%(this.modulus-1)]},o.prototype.getSize=function(){return this.modulus},o.prototype.equals=function(t){return t===this},o}();const Dd=zd;var Lo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Bc=function(o){function t(i,s){var c=o.call(this)||this;c.modulus=i,c.expTable=new Int32Array(i),c.logTable=new Int32Array(i);for(var h=1,v=0;v0;N--){var $=v.evaluateAt(this.field.exp(N));M[i-N]=$,0!==$&&(O=!0)}if(!O)return 0;var q=this.field.getOne();if(null!=s)try{for(var de=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s),we=de.next();!we.done;we=de.next()){var vt=this.field.exp(t.length-1-we.value),zt=new ca(this.field,new Int32Array([this.field.subtract(0,vt),1]));q=q.multiply(zt)}}catch(fi){c={error:fi}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}var $t=new ca(this.field,M),Gt=this.runEuclideanAlgorithm(this.field.buildMonomial(i,1),$t,i),an=Gt[0],bn=Gt[1],Nn=this.findErrorLocations(an),Zn=this.findErrorMagnitudes(bn,an,Nn);for(N=0;N=Math.round(s/2);){var N=h,$=M;if(M=O,(h=v).isZero())throw St.getChecksumInstance();v=N;for(var q=this.field.getZero(),de=h.getCoefficient(h.getDegree()),we=this.field.inverse(de);v.getDegree()>=h.getDegree()&&!v.isZero();){var et=v.getDegree()-h.getDegree(),vt=this.field.multiply(v.getCoefficient(v.getDegree()),we);q=q.add(this.field.buildMonomial(et,vt)),v=v.subtract(h.multiplyByMonomial(et,vt))}O=q.multiply(M).subtract($).negative()}var zt=O.getCoefficient(0);if(0===zt)throw St.getChecksumInstance();var $t=this.field.inverse(zt);return[O.multiply($t),v.multiply($t)]},o.prototype.findErrorLocations=function(t){for(var i=t.getDegree(),s=new Int32Array(i),c=0,h=1;h0){var O=s?this.topLeft:this.topRight,N=Math.trunc(O.getY()-t);N<0&&(N=0);var $=new $n(O.getX(),N);s?c=$:v=$}if(i>0){var q=s?this.bottomLeft:this.bottomRight,de=Math.trunc(q.getY()+i);de>=this.image.getHeight()&&(de=this.image.getHeight()-1);var we=new $n(q.getX(),de);s?h=we:M=we}return new o(this.image,c,h,v,M)},o.prototype.getMinX=function(){return this.minX},o.prototype.getMaxX=function(){return this.maxX},o.prototype.getMinY=function(){return this.minY},o.prototype.getMaxY=function(){return this.maxY},o.prototype.getTopLeft=function(){return this.topLeft},o.prototype.getTopRight=function(){return this.topRight},o.prototype.getBottomLeft=function(){return this.bottomLeft},o.prototype.getBottomRight=function(){return this.bottomRight},o}();const kl=wc;var Ql=function(){function o(t,i,s,c){this.columnCount=t,this.errorCorrectionLevel=c,this.rowCountUpperPart=i,this.rowCountLowerPart=s,this.rowCount=i+s}return o.prototype.getColumnCount=function(){return this.columnCount},o.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},o.prototype.getRowCount=function(){return this.rowCount},o.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},o.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},o}();const Ac=Ql;var Hc=function(){function o(){this.buffer=""}return o.form=function(t,i){var s=-1;return t.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,function c(v,M,O,N,$,q){if("%%"===v)return"%";if(void 0!==i[++s]){v=N?parseInt(N.substr(1)):void 0;var we,de=$?parseInt($.substr(1)):void 0;switch(q){case"s":we=i[s];break;case"c":we=i[s][0];break;case"f":we=parseFloat(i[s]).toFixed(v);break;case"p":we=parseFloat(i[s]).toPrecision(v);break;case"e":we=parseFloat(i[s]).toExponential(v);break;case"x":we=parseInt(i[s]).toString(de||16);break;case"d":we=parseFloat(parseInt(i[s],de||10).toPrecision(v)).toFixed(0)}we="object"==typeof we?JSON.stringify(we):(+we).toString(de);for(var et=parseInt(O),vt=O&&O[0]+""=="0"?"0":" ";we.length=0&&null!=(i=this.codewords[c])||(c=this.imageRowToCodewordIndex(t)+s)=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.codewords),v=h.next();!v.done;v=h.next()){var M=v.value;null!=M?s.format("%3d: %3d|%3d%n",c++,M.getRowNumber(),M.getValue()):s.format("%3d: | %n",c++)}}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return s.toString()},o.MAX_NEARBY_DISTANCE=5,o}();const fc=cd;var Po=function(o,t){var i="function"==typeof Symbol&&o[Symbol.iterator];if(!i)return o;var c,v,s=i.call(o),h=[];try{for(;(void 0===t||t-- >0)&&!(c=s.next()).done;)h.push(c.value)}catch(M){v={error:M}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(v)throw v.error}}return h},da=function(){function o(){this.values=new Map}return o.prototype.setValue=function(t){t=Math.trunc(t);var i=this.values.get(t);null==i&&(i=0),i++,this.values.set(t,i)},o.prototype.getValue=function(){var t,i,s=-1,c=new Array,h=function(q,de){var we_getKey=function(){return q},we_getValue=function(){return de};we_getValue()>s?(s=we_getValue(),(c=[]).push(we_getKey())):we_getValue()===s&&c.push(we_getKey())};try{for(var v=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.values.entries()),M=v.next();!M.done;M=v.next()){var O=Po(M.value,2);h(O[0],O[1])}}catch(q){t={error:q}}finally{try{M&&!M.done&&(i=v.return)&&i.call(v)}finally{if(t)throw t.error}}return Pi.toIntArray(c)},o.prototype.getConfidence=function(t){return this.values.get(t)},o}();const Ll=da;var as=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),pc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ir=function(o){function t(i,s){var c=o.call(this,i)||this;return c._isLeft=s,c}return as(t,o),t.prototype.setRowNumbers=function(){var i,s;try{for(var c=pc(this.getCodewords()),h=c.next();!h.done;h=c.next()){var v=h.value;v?.setRowNumberAsRowIndicatorColumn()}}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},t.prototype.adjustCompleteIndicatorColumnRowNumbers=function(i){var s=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(s,i);for(var c=this.getBoundingBox(),h=this._isLeft?c.getTopLeft():c.getTopRight(),v=this._isLeft?c.getBottomLeft():c.getBottomRight(),M=this.imageRowToCodewordIndex(Math.trunc(h.getY())),O=this.imageRowToCodewordIndex(Math.trunc(v.getY())),N=-1,$=1,q=0,de=M;de=i.getRowCount()||et>de)s[de]=null;else{for(var vt,zt=(vt=$>2?($-2)*et:et)>=de,$t=1;$t<=vt&&!zt;$t++)zt=null!=s[de-$t];zt?s[de]=null:(N=we.getRowNumber(),q=1)}}},t.prototype.getRowHeights=function(){var i,s,c=this.getBarcodeMetadata();if(null==c)return null;this.adjustIncompleteIndicatorColumnRowNumbers(c);var h=new Int32Array(c.getRowCount());try{for(var v=pc(this.getCodewords()),M=v.next();!M.done;M=v.next()){var O=M.value;if(null!=O){var N=O.getRowNumber();if(N>=h.length)continue;h[N]++}}}catch($){i={error:$}}finally{try{M&&!M.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return h},t.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(i){for(var s=this.getBoundingBox(),c=this._isLeft?s.getTopLeft():s.getTopRight(),h=this._isLeft?s.getBottomLeft():s.getBottomRight(),v=this.imageRowToCodewordIndex(Math.trunc(c.getY())),M=this.imageRowToCodewordIndex(Math.trunc(h.getY())),O=this.getCodewords(),N=-1,$=1,q=0,de=v;de=i.getRowCount()?O[de]=null:(N=we.getRowNumber(),q=1)}},t.prototype.getBarcodeMetadata=function(){var i,s,c=this.getCodewords(),h=new Ll,v=new Ll,M=new Ll,O=new Ll;try{for(var N=pc(c),$=N.next();!$.done;$=N.next()){var q=$.value;if(null!=q){q.setRowNumberAsRowIndicatorColumn();var de=q.getValue()%30,we=q.getRowNumber();switch(this._isLeft||(we+=2),we%3){case 0:v.setValue(3*de+1);break;case 1:O.setValue(de/3),M.setValue(de%3);break;case 2:h.setValue(de+1)}}}}catch(vt){i={error:vt}}finally{try{$&&!$.done&&(s=N.return)&&s.call(N)}finally{if(i)throw i.error}}if(0===h.getValue().length||0===v.getValue().length||0===M.getValue().length||0===O.getValue().length||h.getValue()[0]<1||v.getValue()[0]+M.getValue()[0]Pi.MAX_ROWS_IN_BARCODE)return null;var et=new Ac(h.getValue()[0],v.getValue()[0],M.getValue()[0],O.getValue()[0]);return this.removeIncorrectCodewords(c,et),et},t.prototype.removeIncorrectCodewords=function(i,s){for(var c=0;cs.getRowCount()){i[c]=null;continue}switch(this._isLeft||(M+=2),M%3){case 0:3*v+1!==s.getRowCountUpperPart()&&(i[c]=null);break;case 1:(Math.trunc(v/3)!==s.getErrorCorrectionLevel()||v%3!==s.getRowCountLowerPart())&&(i[c]=null);break;case 2:v+1!==s.getColumnCount()&&(i[c]=null)}}}},t.prototype.isLeft=function(){return this._isLeft},t.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+o.prototype.toString.call(this)},t}(fc);const k=ir;var pe=function(){function o(t,i){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=i,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return o.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var i,t=Pi.MAX_CODEWORDS_IN_BARCODE;do{i=t,t=this.adjustRowNumbersAndGetCount()}while(t>0&&t0&&h0&&(N[0]=s[i-1],N[4]=M[i-1],N[5]=O[i-1]),i>1&&(N[8]=s[i-2],N[10]=M[i-2],N[11]=O[i-2]),i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(N),q=$.next();!q.done;q=$.next())if(o.adjustRowNumber(v,q.value))return}catch(we){c={error:we}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}}},o.adjustRowNumber=function(t,i){return!(null==i||!i.hasValidRowNumber()||i.getBucket()!==t.getBucket()||(t.setRowNumber(i.getRowNumber()),0))},o.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},o.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},o.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},o.prototype.setBoundingBox=function(t){this.boundingBox=t},o.prototype.getBoundingBox=function(){return this.boundingBox},o.prototype.setDetectionResultColumn=function(t,i){this.detectionResultColumns[t]=i},o.prototype.getDetectionResultColumn=function(t){return this.detectionResultColumns[t]},o.prototype.toString=function(){var t=this.detectionResultColumns[0];null==t&&(t=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var i=new Eo,s=0;s>=1;s=1&i,o.RATIOS_TABLE[t]||(o.RATIOS_TABLE[t]=new Array(Pi.BARS_IN_MODULE)),o.RATIOS_TABLE[t][Pi.BARS_IN_MODULE-c-1]=Math.fround(h/Pi.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},o.getDecodedValue=function(t){var i=o.getDecodedCodewordValue(o.sampleBitCounts(t));return-1!==i?i:o.getClosestDecodedValue(t)},o.sampleBitCounts=function(t){for(var i=_i.sum(t),s=new Int32Array(Pi.BARS_IN_MODULE),c=0,h=0,v=0;v1)for(var c=0;c=h)break}Ot.length||s<0||i+s>t.length||i+s<0)throw new Ln;if(0!==s)for(var c=0;c0&&this.grow(i)},t.prototype.grow=function(i){var c=this.buf.length<<1;if(c-i<0&&(c=i),c<0){if(i<0)throw new Ad;c=Ee.MAX_VALUE}this.buf=at.copyOfUint8Array(this.buf,c)},t.prototype.write=function(i){this.ensureCapacity(this.count+1),this.buf[this.count]=i,this.count+=1},t.prototype.writeBytesOffset=function(i,s,c){if(s<0||s>i.length||c<0||s+c-i.length>0)throw new Ln;this.ensureCapacity(this.count+c),Jt.arraycopy(i,s,this.buf,this.count,c),this.count+=c},t.prototype.writeTo=function(i){i.writeBytesOffset(this.buf,0,this.count)},t.prototype.reset=function(){this.count=0},t.prototype.toByteArray=function(){return at.copyOfUint8Array(this.buf,this.count)},t.prototype.size=function(){return this.count},t.prototype.toString=function(i){return i?"string"==typeof i?this.toString_string(i):this.toString_number(i):this.toString_void()},t.prototype.toString_void=function(){return new String(this.buf).toString()},t.prototype.toString_string=function(i){return new String(this.buf).toString()},t.prototype.toString_number=function(i){return new String(this.buf).toString()},t.prototype.close=function(){},t}(_c);const ua=Pl;var zo,Or=function(o){return o[o.ALPHA=0]="ALPHA",o[o.LOWER=1]="LOWER",o[o.MIXED=2]="MIXED",o[o.PUNCT=3]="PUNCT",o[o.ALPHA_SHIFT=4]="ALPHA_SHIFT",o[o.PUNCT_SHIFT=5]="PUNCT_SHIFT",o}(Or||{});function Vc(){if(typeof window<"u")return window.BigInt||null;if(typeof global<"u")return global.BigInt||null;if(typeof self<"u")return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}function zi(o){if(typeof zo>"u"&&(zo=Vc()),null===zo)throw new Error("BigInt is not supported!");return zo(o)}var La=function(){function o(){}return o.decode=function(t,i){var s=new Ce(""),c=Dn.ISO8859_1;s.enableDecoding(c);for(var h=1,v=t[h++],M=new Hr;ht[0])throw bt.getFormatInstance();for(var c=new Int32Array(o.NUMBER_OF_SEQUENCE_CODEWORDS),h=0;h0){for(var de=0;de<6;++de)v.write(Number(zi(O)>>zi(8*(5-de))));O=0,M=0}}c===i[0]&&q0){for(de=0;de<6;++de)v.write(Number(zi(O)>>zi(8*(5-de))));O=0,M=0}}}return h.append(Wn.decode(v.toByteArray(),s)),c},o.numericCompaction=function(t,i,s){for(var c=0,h=!1,v=new Int32Array(o.MAX_NUMERIC_CODEWORDS);i0&&(s.append(o.decodeBase900toBase10(v,c)),c=0)}return i},o.decodeBase900toBase10=function(t,i){for(var s=zi(0),c=0;c@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",o.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",o.EXP900=Vc()?function Nl(){var o=[];o[0]=zi(1);var t=zi(900);o[1]=t;for(var i=2;i<16;i++)o[i]=o[i-1]*t;return o}():[],o.NUMBER_OF_SEQUENCE_CODEWORDS=2,o}();const $d=La;var mc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jc=function(){function o(){}return o.decode=function(t,i,s,c,h,v,M){for(var q,O=new kl(t,i,s,c,h),N=null,$=null,de=!0;;de=!1){if(null!=i&&(N=o.getRowIndicatorColumn(t,O,i,!0,v,M)),null!=c&&($=o.getRowIndicatorColumn(t,O,c,!1,v,M)),null==(q=o.merge(N,$)))throw Se.getNotFoundInstance();var we=q.getBoundingBox();if(!de||null==we||!(we.getMinY()O.getMaxY()))break;O=we}q.setBoundingBox(O);var et=q.getBarcodeColumnCount()+1;q.setDetectionResultColumn(0,N),q.setDetectionResultColumn(et,$);for(var vt=null!=N,zt=1;zt<=et;zt++){var $t=vt?zt:et-zt;if(void 0===q.getDetectionResultColumn($t)){var Gt=void 0;Gt=0===$t||$t===et?new k(O,0===$t):new fc(O),q.setDetectionResultColumn($t,Gt);for(var an=-1,bn=an,Nn=O.getMinY();Nn<=O.getMaxY();Nn++){if((an=o.getStartColumn(q,$t,Nn,vt))<0||an>O.getMaxX()){if(-1===bn)continue;an=bn}var Zn=o.detectCodeword(t,O.getMinX(),O.getMaxX(),vt,an,Nn,v,M);null!=Zn&&(Gt.setCodeword(Nn,Zn),bn=an,v=Math.min(v,Zn.getWidth()),M=Math.max(M,Zn.getWidth()))}}}return o.createDecoderResult(q)},o.merge=function(t,i){if(null==t&&null==i)return null;var s=o.getBarcodeMetadata(t,i);if(null==s)return null;var c=kl.merge(o.adjustBoundingBox(t),o.adjustBoundingBox(i));return new ke(s,c)},o.adjustBoundingBox=function(t){var i,s;if(null==t)return null;var c=t.getRowHeights();if(null==c)return null;var h=o.getMax(c),v=0;try{for(var M=mc(c),O=M.next();!O.done;O=M.next()){var N=O.value;if(v+=h-N,N>0)break}}catch(we){i={error:we}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}for(var $=t.getCodewords(),q=0;v>0&&null==$[q];q++)v--;var de=0;for(q=c.length-1;q>=0&&(de+=h-c[q],!(c[q]>0));q--);for(q=$.length-1;de>0&&null==$[q];q--)de--;return t.getBoundingBox().addMissingRows(v,de,t.isLeft())},o.getMax=function(t){var i,s,c=-1;try{for(var h=mc(t),v=h.next();!v.done;v=h.next())c=Math.max(c,v.value)}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c},o.getBarcodeMetadata=function(t,i){var s,c;return null==t||null==(s=t.getBarcodeMetadata())?null==i?null:i.getBarcodeMetadata():null==i||null==(c=i.getBarcodeMetadata())?s:s.getColumnCount()!==c.getColumnCount()&&s.getErrorCorrectionLevel()!==c.getErrorCorrectionLevel()&&s.getRowCount()!==c.getRowCount()?null:s},o.getRowIndicatorColumn=function(t,i,s,c,h,v){for(var M=new k(i,c),O=0;O<2;O++)for(var N=0===O?1:-1,$=Math.trunc(Math.trunc(s.getX())),q=Math.trunc(Math.trunc(s.getY()));q<=i.getMaxY()&&q>=i.getMinY();q+=N){var de=o.detectCodeword(t,0,t.getWidth(),c,$,q,h,v);null!=de&&(M.setCodeword(q,de),$=c?de.getStartX():de.getEndX())}return M},o.adjustCodewordCount=function(t,i){var s=i[0][1],c=s.getValue(),h=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-o.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===c.length){if(h<1||h>Pi.MAX_CODEWORDS_IN_BARCODE)throw Se.getNotFoundInstance();s.setValue(h)}else c[0]!==h&&s.setValue(h)},o.createDecoderResult=function(t){var i=o.createBarcodeMatrix(t);o.adjustCodewordCount(t,i);for(var s=new Array,c=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),h=[],v=new Array,M=0;M0;){for(var O=0;O=0){if(zt>=v.length)continue;v[zt][N].setValue(vt.getValue())}}}}catch($t){c={error:$t}}finally{try{et&&!et.done&&(h=we.return)&&h.call(we)}finally{if(c)throw c.error}}N++}}catch($t){i={error:$t}}finally{try{q&&!q.done&&(s=$.return)&&s.call($)}finally{if(i)throw i.error}}return v},o.isValidBarcodeColumn=function(t,i){return i>=0&&i<=t.getBarcodeColumnCount()+1},o.getStartColumn=function(t,i,s,c){var h,v,M=c?1:-1,O=null;if(o.isValidBarcodeColumn(t,i-M)&&(O=t.getDetectionResultColumn(i-M).getCodeword(s)),null!=O)return c?O.getEndX():O.getStartX();if(null!=(O=t.getDetectionResultColumn(i).getCodewordNearby(s)))return c?O.getStartX():O.getEndX();if(o.isValidBarcodeColumn(t,i-M)&&(O=t.getDetectionResultColumn(i-M).getCodewordNearby(s)),null!=O)return c?O.getEndX():O.getStartX();for(var N=0;o.isValidBarcodeColumn(t,i-M);){i-=M;try{for(var $=(h=void 0,mc(t.getDetectionResultColumn(i).getCodewords())),q=$.next();!q.done;q=$.next()){var de=q.value;if(null!=de)return(c?de.getEndX():de.getStartX())+M*N*(de.getEndX()-de.getStartX())}}catch(we){h={error:we}}finally{try{q&&!q.done&&(v=$.return)&&v.call($)}finally{if(h)throw h.error}}N++}return c?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()},o.detectCodeword=function(t,i,s,c,h,v,M,O){h=o.adjustCodewordStartColumn(t,i,s,c,h,v);var N=o.getModuleBitCount(t,i,s,c,h,v);if(null==N)return null;var $,q=_i.sum(N);if(c)$=h+q;else{for(var de=0;de=i)&&N=i:Mo.CODEWORD_SKEW_SIZE)return h;M+=O}O=-O,c=!c}return M},o.checkCodewordSkew=function(t,i,s){return i-o.CODEWORD_SKEW_SIZE<=t&&t<=s+o.CODEWORD_SKEW_SIZE},o.decodeCodewords=function(t,i,s){if(0===t.length)throw bt.getFormatInstance();var c=1<s/2+o.MAX_ERRORS||s<0||s>o.MAX_EC_CODEWORDS)throw St.getChecksumInstance();return o.errorCorrection.decode(t,s,i)},o.verifyCodewordCount=function(t,i){if(t.length<4)throw bt.getFormatInstance();var s=t[0];if(s>t.length)throw bt.getFormatInstance();if(0===s){if(!(i>=1;return i},o.getCodewordBucketNumber=function(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)},o.getCodewordBucketNumber_number=function(t){return o.getCodewordBucketNumber(o.getBitCountForCodeword(t))},o.getCodewordBucketNumber_Int32Array=function(t){return(t[0]-t[2]+t[4]-t[6]+9)%9},o.toString=function(t){for(var i=new Eo,s=0;s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(M.getPoints()),N=O.next();!N.done;N=O.next()){var $=N.value,q=_l.decode(M.getBits(),$[4],$[5],$[6],$[7],o.getMinCodewordWidth($),o.getMaxCodewordWidth($)),de=new We(q.getText(),q.getRawBytes(),void 0,$,be.PDF_417);de.putMetadata(He.ERROR_CORRECTION_LEVEL,q.getECLevel());var we=q.getOther();null!=we&&de.putMetadata(He.PDF417_EXTRA_METADATA,we),v.push(de)}}catch(et){c={error:et}}finally{try{N&&!N.done&&(h=O.return)&&h.call(O)}finally{if(c)throw c.error}}return v.map(function(et){return et})},o.getMaxWidth=function(t,i){return null==t||null==i?0:Math.trunc(Math.abs(t.getX()-i.getX()))},o.getMinWidth=function(t,i){return null==t||null==i?Ee.MAX_VALUE:Math.trunc(Math.abs(t.getX()-i.getX()))},o.getMaxCodewordWidth=function(t){return Math.floor(Math.max(Math.max(o.getMaxWidth(t[0],t[4]),o.getMaxWidth(t[6],t[2])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN),Math.max(o.getMaxWidth(t[1],t[5]),o.getMaxWidth(t[7],t[3])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN)))},o.getMinCodewordWidth=function(t){return Math.floor(Math.min(Math.min(o.getMinWidth(t[0],t[4]),o.getMinWidth(t[6],t[2])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN),Math.min(o.getMinWidth(t[1],t[5]),o.getMinWidth(t[7],t[3])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN)))},o.prototype.reset=function(){},o}();const Pa=nu;var ao=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Zc=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return ao(t,o),t.kind="ReaderException",t}(te);const Go=Zc;var Kd=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},zc=function(){function o(){}return o.prototype.decode=function(t,i){return this.setHints(i),this.decodeInternal(t)},o.prototype.decodeWithState=function(t){return null==this.readers&&this.setHints(null),this.decodeInternal(t)},o.prototype.setHints=function(t){this.hints=t;var i=null!=t&&void 0!==t.get(he.TRY_HARDER),s=null==t?null:t.get(he.POSSIBLE_FORMATS),c=new Array;if(null!=s){var h=s.some(function(v){return v===be.UPC_A||v===be.UPC_E||v===be.EAN_13||v===be.EAN_8||v===be.CODABAR||v===be.CODE_39||v===be.CODE_93||v===be.CODE_128||v===be.ITF||v===be.RSS_14||v===be.RSS_EXPANDED});h&&!i&&c.push(new yi(t)),s.includes(be.QR_CODE)&&c.push(new js),s.includes(be.DATA_MATRIX)&&c.push(new cc),s.includes(be.AZTEC)&&c.push(new Vo),s.includes(be.PDF_417)&&c.push(new Pa),h&&i&&c.push(new yi(t))}0===c.length&&(i||c.push(new yi(t)),c.push(new js),c.push(new cc),c.push(new Vo),c.push(new Pa),i&&c.push(new yi(t))),this.readers=c},o.prototype.reset=function(){var t,i;if(null!==this.readers)try{for(var s=Kd(this.readers),c=s.next();!c.done;c=s.next())c.value.reset()}catch(v){t={error:v}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}},o.prototype.decodeInternal=function(t){var i,s;if(null===this.readers)throw new Go("No readers where selected, nothing can be read.");try{for(var c=Kd(this.readers),h=c.next();!h.done;h=c.next()){var v=h.value;try{return v.decode(t,this.hints)}catch(M){if(M instanceof Go)continue}}}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}throw new Se("No MultiFormat Readers were able to detect the code.")},o}();const Jd=zc;var nl=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),qd=(function(o){function t(i,s){void 0===i&&(i=null),void 0===s&&(s=500);var h=new Jd;return h.setHints(i),o.call(this,h,s)||this}nl(t,o),t.prototype.decodeBitmap=function(i){return this.reader.decodeWithState(i)}}(Pe),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),Oc=(function(o){qd(function t(i){return void 0===i&&(i=500),o.call(this,new Pa,i)||this},o)}(Pe),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),iu=(function(o){Oc(function t(i){return void 0===i&&(i=500),o.call(this,new js,i)||this},o)}(Pe),function(o){return o[o.ERROR_CORRECTION=0]="ERROR_CORRECTION",o[o.CHARACTER_SET=1]="CHARACTER_SET",o[o.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",o[o.DATA_MATRIX_COMPACT=3]="DATA_MATRIX_COMPACT",o[o.MIN_SIZE=4]="MIN_SIZE",o[o.MAX_SIZE=5]="MAX_SIZE",o[o.MARGIN=6]="MARGIN",o[o.PDF417_COMPACT=7]="PDF417_COMPACT",o[o.PDF417_COMPACTION=8]="PDF417_COMPACTION",o[o.PDF417_DIMENSIONS=9]="PDF417_DIMENSIONS",o[o.AZTEC_LAYERS=10]="AZTEC_LAYERS",o[o.QR_VERSION=11]="QR_VERSION",o[o.GS1_FORMAT=12]="GS1_FORMAT",o[o.FORCE_C40=13]="FORCE_C40",o}(iu||{}));const pi=iu;var Wc=function(){function o(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new Mt(t,Int32Array.from([1])))}return o.prototype.buildGenerator=function(t){var i=this.cachedGenerators;if(t>=i.length)for(var s=i[i.length-1],c=this.field,h=i.length;h<=t;h++){var v=s.multiply(new Mt(c,Int32Array.from([1,c.exp(h-1+c.getGeneratorBase())])));i.push(v),s=v}return i[t]},o.prototype.encode=function(t,i){if(0===i)throw new Ge("No error correction bytes");var s=t.length-i;if(s<=0)throw new Ge("No data bytes provided");var c=this.buildGenerator(i),h=new Int32Array(s);Jt.arraycopy(t,0,h,0,s);for(var v=new Mt(this.field,h),O=(v=v.multiplyByMonomial(i,1)).divide(c)[1].getCoefficients(),N=i-O.length,$=0;$=5&&(s+=o.N1+(O-5)),O=1,N=q)}O>=5&&(s+=o.N1+(O-5))}return s},o.N1=3,o.N2=3,o.N3=40,o.N4=10,o}();const No=Mc;var Ye=function(){function o(t,i){this.width=t,this.height=i;for(var s=new Array(i),c=0;c!==i;c++)s[c]=new Uint8Array(t);this.bytes=s}return o.prototype.getHeight=function(){return this.height},o.prototype.getWidth=function(){return this.width},o.prototype.get=function(t,i){return this.bytes[i][t]},o.prototype.getArray=function(){return this.bytes},o.prototype.setNumber=function(t,i,s){this.bytes[i][t]=s},o.prototype.setBoolean=function(t,i,s){this.bytes[i][t]=s?1:0},o.prototype.clear=function(t){var i,s;try{for(var c=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.bytes),h=c.next();!h.done;h=c.next())at.fill(h.value,t)}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},o.prototype.equals=function(t){if(!(t instanceof o))return!1;var i=t;if(this.width!==i.width||this.height!==i.height)return!1;for(var s=0,c=this.height;s>\n"),t.toString()},o.prototype.setMode=function(t){this.mode=t},o.prototype.setECLevel=function(t){this.ecLevel=t},o.prototype.setVersion=function(t){this.version=t},o.prototype.setMaskPattern=function(t){this.maskPattern=t},o.prototype.setMatrix=function(t){this.matrix=t},o.isValidMaskPattern=function(t){return t>=0&&t0;){for(6===v&&(v-=1);M>=0&&M=s;)t^=i<=0)for(var O=0;O!==v;O++){var N=c[O];N>=0&&o.isEmpty(i.get(N,M))&&o.embedPositionAdjustmentPattern(N-2,M-2,i)}}},o.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),o.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),o.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),o.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),o.VERSION_INFO_POLY=7973,o.TYPE_INFO_POLY=1335,o.TYPE_INFO_MASK_PATTERN=21522,o}();const Ci=hi;var Hi=function(){function o(t,i){this.dataBytes=t,this.errorCorrectionBytes=i}return o.prototype.getDataBytes=function(){return this.dataBytes},o.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},o}();const Wr=Hi;var Ns=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Na=function(){function o(){}return o.calculateMaskPenalty=function(t){return No.applyMaskPenaltyRule1(t)+No.applyMaskPenaltyRule2(t)+No.applyMaskPenaltyRule3(t)+No.applyMaskPenaltyRule4(t)},o.encode=function(t,i,s){void 0===s&&(s=null);var c=o.DEFAULT_BYTE_MODE_ENCODING,h=null!==s&&void 0!==s.get(pi.CHARACTER_SET);h&&(c=s.get(pi.CHARACTER_SET).toString());var v=this.chooseMode(t,c),M=new me;if(v===xe.BYTE&&(h||o.DEFAULT_BYTE_MODE_ENCODING!==c)){var O=Dn.getCharacterSetECIByName(c);void 0!==O&&this.appendECI(O,M)}this.appendModeInfo(v,M);var $,N=new me;if(this.appendBytes(t,v,N,c),null!==s&&void 0!==s.get(pi.QR_VERSION)){var q=Number.parseInt(s.get(pi.QR_VERSION).toString(),10);$=Ls.getVersionForNumber(q);var de=this.calculateBitsNeeded(v,M,N,$);if(!this.willFit(de,$,i))throw new Hn("Data too big for requested version")}else $=this.recommendVersion(i,v,M,N);var we=new me;we.appendBitArray(M);var et=v===xe.BYTE?N.getSizeInBytes():t.length;this.appendLengthInfo(et,$,v,we),we.appendBitArray(N);var vt=$.getECBlocksForLevel(i),zt=$.getTotalCodewords()-vt.getTotalECCodewords();this.terminateBits(zt,we);var $t=this.interleaveWithECBytes(we,$.getTotalCodewords(),zt,vt.getNumBlocks()),Gt=new sn;Gt.setECLevel(i),Gt.setMode(v),Gt.setVersion($);var an=$.getDimensionForVersion(),bn=new it(an,an),Nn=this.chooseMaskPattern($t,i,$,bn);return Gt.setMaskPattern(Nn),Ci.buildMatrix($t,i,$,Nn,bn),Gt.setMatrix(bn),Gt},o.recommendVersion=function(t,i,s,c){var h=this.calculateBitsNeeded(i,s,c,Ls.getVersionForNumber(1)),v=this.chooseVersion(h,t),M=this.calculateBitsNeeded(i,s,c,v);return this.chooseVersion(M,t)},o.calculateBitsNeeded=function(t,i,s,c){return i.getSize()+t.getCharacterCountBits(c)+s.getSize()},o.getAlphanumericCode=function(t){return t159)&&(h<224||h>235))return!1}return!0},o.chooseMaskPattern=function(t,i,s,c){for(var h=Number.MAX_SAFE_INTEGER,v=-1,M=0;M=(t+7)/8},o.terminateBits=function(t,i){var s=8*t;if(i.getSize()>s)throw new Hn("data bits cannot fit in the QR Code"+i.getSize()+" > "+s);for(var c=0;c<4&&i.getSize()0)for(c=h;c<8;c++)i.appendBit(!1);var v=t-i.getSizeInBytes();for(c=0;c=s)throw new Hn("Block ID too large");var M=t%s,O=s-M,N=Math.floor(t/s),$=N+1,q=Math.floor(i/s),de=q+1,we=N-q,et=$-de;if(we!==et)throw new Hn("EC bytes mismatch");if(s!==O+M)throw new Hn("RS blocks mismatch");if(t!==(q+we)*O+(de+et)*M)throw new Hn("Total bytes mismatch");c=1<=0&&i<=9},o.appendNumericBytes=function(t,i){for(var s=t.length,c=0;c=33088&&O<=40956?N=O-33088:O>=57408&&O<=60351&&(N=O-49472),-1===N)throw new Hn("Invalid byte sequence");i.appendBits(192*(N>>8)+(255&N),13)}},o.appendECI=function(t,i){i.appendBits(xe.ECI.getBits(),4),i.appendBits(t.getValue(),8)},o.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),o.DEFAULT_BYTE_MODE_ENCODING=Dn.UTF8.getName(),o}();const Fl=Na;!function(){function o(){}o.prototype.write=function(t,i,s,c){if(void 0===c&&(c=null),0===t.length)throw new Ge("Found empty contents");if(i<0||s<0)throw new Ge("Requested dimensions are too small: "+i+"x"+s);var h=aa.L,v=o.QUIET_ZONE_SIZE;null!==c&&(void 0!==c.get(pi.ERROR_CORRECTION)&&(h=aa.fromString(c.get(pi.ERROR_CORRECTION).toString())),void 0!==c.get(pi.MARGIN)&&(v=Number.parseInt(c.get(pi.MARGIN).toString(),10)));var M=Fl.encode(t,h,c);return this.renderResult(M,i,s,v)},o.prototype.writeToDom=function(t,i,s,c,h){void 0===h&&(h=null),"string"==typeof t&&(t=document.querySelector(t));var v=this.write(i,s,c,h);t&&t.appendChild(v)},o.prototype.renderResult=function(t,i,s,c){var h=t.getMatrix();if(null===h)throw new ki;for(var v=h.getWidth(),M=h.getHeight(),O=v+2*c,N=M+2*c,$=Math.max(i,O),q=Math.max(s,N),de=Math.min(Math.floor($/O),Math.floor(q/N)),we=Math.floor(($-v*de)/2),et=Math.floor((q-M*de)/2),vt=this.createSVGElement($,q),zt=0,$t=et;zts||v+O>c)throw new Ge("Crop rectangle does not fit within image data.");return N&&$.reverseHorizontal(M,O),$}Qd(t,o),t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth();return(null==s||s.length>16&255)+(we>>7&510)+(255&we))/4&255}N.luminances=q}else N.luminances=i;if(void 0===h&&(N.dataWidth=s),void 0===v&&(N.dataHeight=c),void 0===M&&(N.left=0),void 0===O&&(N.top=0),N.left+s>N.dataWidth||N.top+c>N.dataHeight)throw new Ge("Crop rectangle does not fit within image data.");return N}cs(t,o),t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth();return(null==s||s.length=0&&this.noBit(s,i)&&this.utah(i,s,t++),i-=2,s+=2}while(i>=0&&s=0&&s=0);i+=3,s++}while(i=256&&(i^=301);return{LOG:o,ALOG:t}}([],[]),F.LOG),Dt=F.ALOG,ru="[)>\x1e05\x1d",ou="[)>\x1e06\x1d",Qh=function(){function o(){}return o.encodeECC200=function(t,i){if(t.length!==i.getDataCapacity())throw new Error("The number of codewords does not match the selected symbol");var s=new Ce;s.append(t);var c=i.getInterleavedBlockCount();if(1===c){var h=this.createECCBlock(t,i.getErrorCodewords());s.append(h)}else{for(var v=[],M=[],O=0;O0;O--)v[O]=0!==M&&0!==h[O]?v[O-1]^Dt[(ye[M]+ye[h[O]])%255]:v[O-1];v[0]=0!==M&&0!==h[0]?Dt[(ye[M]+ye[h[0]])%255]:0}var N=[];for(c=0;c=2)t.writeCodeword(this.encodeASCIIDigits(t.getMessage().charCodeAt(t.pos),t.getMessage().charCodeAt(t.pos+1))),t.pos+=2;else{var s=t.getCurrentChar(),c=Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(c!==this.getEncodingMode())switch(c){case 5:return t.writeCodeword(231),void t.signalEncoderChange(5);case 1:return t.writeCodeword(230),void t.signalEncoderChange(1);case 3:t.writeCodeword(238),t.signalEncoderChange(3);break;case 2:t.writeCodeword(239),t.signalEncoderChange(2);break;case 4:t.writeCodeword(240),t.signalEncoderChange(4);break;default:throw new Error("Illegal mode: "+c)}else Mr.isExtendedASCII(s)?(t.writeCodeword(235),t.writeCodeword(s-128+1),t.pos++):(t.writeCodeword(s+1),t.pos++)}},o.prototype.encodeASCIIDigits=function(t,i){if(Mr.isDigit(t)&&Mr.isDigit(i))return 10*(t-48)+(i-48)+130;throw new Error("not digits: "+t+i)},o}(),gh=function(){function o(){}return o.prototype.getEncodingMode=function(){return 5},o.prototype.encode=function(t){var i=new Ce;for(i.append(0);t.hasMoreCharacters();){var s=t.getCurrentChar();if(i.append(s),t.pos++,Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}var h=i.length()-1,M=t.getCodewordCount()+h+1;t.updateSymbolInfo(M);var O=t.getSymbolInfo().getDataCapacity()-M>0;if(t.hasMoreCharacters()||O)if(h<=249)i.setCharAt(0,ct.getCharAt(h));else{if(!(h<=1555))throw new Error("Message length not in valid ranges: "+h);i.setCharAt(0,ct.getCharAt(Math.floor(h/250)+249)),i.insert(1,ct.getCharAt(h%250))}var N=0;for(s=i.length();N3||1!==N))&&(t.pos=c)}i.length()>0&&t.writeCodeword(230),this.handleEOD(t,i)},o.prototype.encode=function(t){for(var i=new Ce;t.hasMoreCharacters();){var s=t.getCurrentChar();t.pos++;var c=this.encodeChar(s,i),h=2*Math.floor(i.length()/3),v=t.getCodewordCount()+h;t.updateSymbolInfo(v);var M=t.getSymbolInfo().getDataCapacity()-v;if(!t.hasMoreCharacters()){var O=new Ce;for(i.length()%3==2&&2!==M&&(c=this.backtrackOneCharacter(t,i,O,c));i.length()%3==1&&(c>3||1!==M);)c=this.backtrackOneCharacter(t,i,O,c);break}if(i.length()%3==0&&Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}this.handleEOD(t,i)},o.prototype.backtrackOneCharacter=function(t,i,s,c){var h=i.length(),v=i.toString().substring(0,h-c);i.setLengthToZero(),i.append(v),t.pos--;var M=t.getCurrentChar();return c=this.encodeChar(M,s),t.resetSymbolInfo(),c},o.prototype.writeNextTriplet=function(t,i){t.writeCodewords(this.encodeToCodewords(i.toString()));var s=i.toString().substring(3);i.setLengthToZero(),i.append(s)},o.prototype.handleEOD=function(t,i){var s=Math.floor(i.length()/3*2),c=i.length()%3,h=t.getCodewordCount()+s;t.updateSymbolInfo(h);var v=t.getSymbolInfo().getDataCapacity()-h;if(2===c){for(i.append("\0");i.length()>=3;)this.writeNextTriplet(t,i);t.hasMoreCharacters()&&t.writeCodeword(254)}else if(1===v&&1===c){for(;i.length()>=3;)this.writeNextTriplet(t,i);t.hasMoreCharacters()&&t.writeCodeword(254),t.pos--}else{if(0!==c)throw new Error("Unexpected case. Please report!");for(;i.length()>=3;)this.writeNextTriplet(t,i);(v>0||t.hasMoreCharacters())&&t.writeCodeword(254)}t.signalEncoderChange(0)},o.prototype.encodeChar=function(t,i){return t===" ".charCodeAt(0)?(i.append(3),1):t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)?(i.append(t-48+4),1):t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)?(i.append(t-65+14),1):t<" ".charCodeAt(0)?(i.append(0),i.append(t),2):t<="/".charCodeAt(0)?(i.append(1),i.append(t-33),2):t<="@".charCodeAt(0)?(i.append(1),i.append(t-58+15),2):t<="_".charCodeAt(0)?(i.append(1),i.append(t-91+22),2):t<=127?(i.append(2),i.append(t-96),2):(i.append("1\x1e"),2+this.encodeChar(t-128,i))},o.prototype.encodeToCodewords=function(t){var i=1600*t.charCodeAt(0)+40*t.charCodeAt(1)+t.charCodeAt(2)+1,s=i/256,c=i%256,h=new Ce;return h.append(s),h.append(c),h.toString()},o}(),vh=function(){function o(){}return o.prototype.getEncodingMode=function(){return 4},o.prototype.encode=function(t){for(var i=new Ce;t.hasMoreCharacters();){var s=t.getCurrentChar();if(this.encodeChar(s,i),t.pos++,i.length()>=4){t.writeCodewords(this.encodeToCodewords(i.toString()));var h=i.toString().substring(4);if(i.setLengthToZero(),i.append(h),Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}}i.append(ct.getCharAt(31)),this.handleEOD(t,i)},o.prototype.handleEOD=function(t,i){try{var s=i.length();if(0===s)return;if(1===s){t.updateSymbolInfo();var c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount(),h=t.getRemainingCharacters();if(h>c&&(t.updateSymbolInfo(t.getCodewordCount()+1),c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount()),h<=c&&c<=2)return}if(s>4)throw new Error("Count must not exceed 4");var v=s-1,M=this.encodeToCodewords(i.toString()),N=!t.hasMoreCharacters()&&v<=2;v<=2&&(t.updateSymbolInfo(t.getCodewordCount()+v),(c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount())>=3&&(N=!1,t.updateSymbolInfo(t.getCodewordCount()+M.length))),N?(t.resetSymbolInfo(),t.pos-=v):t.writeCodewords(M)}finally{t.signalEncoderChange(0)}},o.prototype.encodeChar=function(t,i){t>=" ".charCodeAt(0)&&t<="?".charCodeAt(0)?i.append(t):t>="@".charCodeAt(0)&&t<="^".charCodeAt(0)?i.append(ct.getCharAt(t-64)):Mr.illegalCharacter(ct.getCharAt(t))},o.prototype.encodeToCodewords=function(t){var i=t.length;if(0===i)throw new Error("StringBuilder must not be empty");var M=(t.charAt(0).charCodeAt(0)<<18)+((i>=2?t.charAt(1).charCodeAt(0):0)<<12)+((i>=3?t.charAt(2).charCodeAt(0):0)<<6)+(i>=4?t.charAt(3).charCodeAt(0):0),O=M>>16&255,N=M>>8&255,$=255&M,q=new Ce;return q.append(O),i>=2&&q.append(N),i>=3&&q.append($),q.toString()},o}(),tf=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),eo=function(){function o(t,i,s,c,h,v,M,O){void 0===M&&(M=0),void 0===O&&(O=0),this.rectangular=t,this.dataCapacity=i,this.errorCodewords=s,this.matrixWidth=c,this.matrixHeight=h,this.dataRegions=v,this.rsBlockData=M,this.rsBlockError=O}return o.lookup=function(t,i,s,c,h){var v,M;void 0===i&&(i=0),void 0===s&&(s=null),void 0===c&&(c=null),void 0===h&&(h=!0);try{for(var O=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Bl),N=O.next();!N.done;N=O.next()){var $=N.value;if((1!==i||!$.rectangular)&&(2!==i||$.rectangular)&&(null==s||!($.getSymbolWidth()c.getWidth()||$.getSymbolHeight()>c.getHeight()))&&t<=$.dataCapacity)return $}}catch(q){v={error:q}}finally{try{N&&!N.done&&(M=O.return)&&M.call(O)}finally{if(v)throw v.error}}if(h)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+t);return null},o.prototype.getHorizontalDataRegions=function(){switch(this.dataRegions){case 1:return 1;case 2:case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},o.prototype.getVerticalDataRegions=function(){switch(this.dataRegions){case 1:case 2:return 1;case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},o.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},o.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},o.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+2*this.getHorizontalDataRegions()},o.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+2*this.getVerticalDataRegions()},o.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},o.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},o.prototype.getDataCapacity=function(){return this.dataCapacity},o.prototype.getErrorCodewords=function(){return this.errorCodewords},o.prototype.getDataLengthForInterleavedBlock=function(t){return this.rsBlockData},o.prototype.getErrorLengthForInterleavedBlock=function(t){return this.rsBlockError},o}();const bh=eo;var jf=function(o){function t(){return o.call(this,!1,1558,620,22,22,36,-1,62)||this}return tf(t,o),t.prototype.getInterleavedBlockCount=function(){return 10},t.prototype.getDataLengthForInterleavedBlock=function(i){return i<=8?156:155},t}(eo),Bl=[new eo(!1,3,5,8,8,1),new eo(!1,5,7,10,10,1),new eo(!0,5,7,16,6,1),new eo(!1,8,10,12,12,1),new eo(!0,10,11,14,6,2),new eo(!1,12,12,14,14,1),new eo(!0,16,14,24,10,1),new eo(!1,18,14,16,16,1),new eo(!1,22,18,18,18,1),new eo(!0,22,18,16,10,2),new eo(!1,30,20,20,20,1),new eo(!0,32,24,16,14,2),new eo(!1,36,24,22,22,1),new eo(!1,44,28,24,24,1),new eo(!0,49,28,22,14,2),new eo(!1,62,36,14,14,4),new eo(!1,86,42,16,16,4),new eo(!1,114,48,18,18,4),new eo(!1,144,56,20,20,4),new eo(!1,174,68,22,22,4),new eo(!1,204,84,24,24,4,102,42),new eo(!1,280,112,14,14,16,140,56),new eo(!1,368,144,16,16,16,92,36),new eo(!1,456,192,18,18,16,114,48),new eo(!1,576,224,20,20,16,144,56),new eo(!1,696,272,22,22,16,174,68),new eo(!1,816,336,24,24,16,136,56),new eo(!1,1050,408,18,18,36,175,68),new eo(!1,1304,496,20,20,36,163,62),new jf],Wu=function(){function o(t){this.msg=t,this.pos=0,this.skipAtEnd=0;for(var i=t.split("").map(function(M){return M.charCodeAt(0)}),s=new Ce,c=0,h=i.length;cthis.symbolInfo.getDataCapacity())&&(this.symbolInfo=bh.lookup(t,this.shape,this.minSize,this.maxSize,!0))},o.prototype.resetSymbolInfo=function(){this.symbolInfo=null},o}(),yh=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),$u=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return yh(t,o),t.prototype.getEncodingMode=function(){return 3},t.prototype.encode=function(i){for(var s=new Ce;i.hasMoreCharacters();){var c=i.getCurrentChar();if(i.pos++,this.encodeChar(c,s),s.length()%3==0&&(this.writeNextTriplet(i,s),Mr.lookAheadTest(i.getMessage(),i.pos,this.getEncodingMode())!==this.getEncodingMode())){i.signalEncoderChange(0);break}}this.handleEOD(i,s)},t.prototype.encodeChar=function(i,s){switch(i){case 13:s.append(0);break;case"*".charCodeAt(0):s.append(1);break;case">".charCodeAt(0):s.append(2);break;case" ".charCodeAt(0):s.append(3);break;default:i>="0".charCodeAt(0)&&i<="9".charCodeAt(0)?s.append(i-48+4):i>="A".charCodeAt(0)&&i<="Z".charCodeAt(0)?s.append(i-65+14):Mr.illegalCharacter(ct.getCharAt(i))}return 1},t.prototype.handleEOD=function(i,s){i.updateSymbolInfo();var c=i.getSymbolInfo().getDataCapacity()-i.getCodewordCount(),h=s.length();i.pos-=h,(i.getRemainingCharacters()>1||c>1||i.getRemainingCharacters()!==c)&&i.writeCodeword(254),i.getNewEncoding()<0&&i.signalEncoderChange(0)},t}(au),rl=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),lu=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return rl(t,o),t.prototype.getEncodingMode=function(){return 2},t.prototype.encodeChar=function(i,s){return i===" ".charCodeAt(0)?(s.append(3),1):i>="0".charCodeAt(0)&&i<="9".charCodeAt(0)?(s.append(i-48+4),1):i>="a".charCodeAt(0)&&i<="z".charCodeAt(0)?(s.append(i-97+14),1):i<" ".charCodeAt(0)?(s.append(0),s.append(i),2):i<="/".charCodeAt(0)?(s.append(1),s.append(i-33),2):i<="@".charCodeAt(0)?(s.append(1),s.append(i-58+15),2):i>="[".charCodeAt(0)&&i<="_".charCodeAt(0)?(s.append(1),s.append(i-91+22),2):i==="`".charCodeAt(0)?(s.append(2),s.append(0),2):i<="Z".charCodeAt(0)?(s.append(2),s.append(i-65+1),2):i<=127?(s.append(2),s.append(i-123+27),2):(s.append("1\x1e"),2+this.encodeChar(i-128,s))},t}(au),wh=function(){function o(){}return o.randomize253State=function(t){var s=149*t%253+1+129;return s<=254?s:s-254},o.encodeHighLevel=function(t,i,s,c,h){void 0===i&&(i=0),void 0===s&&(s=null),void 0===c&&(c=null),void 0===h&&(h=!1);var v=new au,M=[new ef,v,new lu,new $u,new vh,new gh],O=new Wu(t);O.setSymbolShape(i),O.setSizeConstraints(s,c),t.startsWith(ru)&&t.endsWith("\x1e\x04")?(O.writeCodeword(236),O.setSkipAtEnd(2),O.pos+=7):t.startsWith(ou)&&t.endsWith("\x1e\x04")&&(O.writeCodeword(237),O.setSkipAtEnd(2),O.pos+=7);var N=0;for(h&&(v.encodeMaximal(O),N=O.getNewEncoding(),O.resetEncoderSignal());O.hasMoreCharacters();)M[N].encode(O),O.getNewEncoding()>=0&&(N=O.getNewEncoding(),O.resetEncoderSignal());var $=O.getCodewordCount();O.updateSymbolInfo();var q=O.getSymbolInfo().getDataCapacity();$=t.length)return s;var c;0===s?c=[0,1,1,1,1,1.25]:(c=[1,2,2,2,2,2.25])[s]=0;for(var h=0,v=new Uint8Array(6),M=[];;){if(i+h===t.length){at.fill(v,0),at.fill(M,0);var O=this.findMinimums(c,M,Ee.MAX_VALUE,v),N=this.getMinimumCount(v);if(M[0]===O)return 0;if(1===N){if(v[5]>0)return 5;if(v[4]>0)return 4;if(v[2]>0)return 2;if(v[3]>0)return 3}return 1}var $=t.charCodeAt(i+h);if(h++,this.isDigit($)?c[0]+=.5:this.isExtendedASCII($)?(c[0]=Math.ceil(c[0]),c[0]+=2):(c[0]=Math.ceil(c[0]),c[0]++),this.isNativeC40($)?c[1]+=2/3:this.isExtendedASCII($)?c[1]+=8/3:c[1]+=4/3,this.isNativeText($)?c[2]+=2/3:this.isExtendedASCII($)?c[2]+=8/3:c[2]+=4/3,this.isNativeX12($)?c[3]+=2/3:this.isExtendedASCII($)?c[3]+=13/3:c[3]+=10/3,this.isNativeEDIFACT($)?c[4]+=3/4:this.isExtendedASCII($)?c[4]+=4.25:c[4]+=3.25,this.isSpecialB256($)?c[5]+=4:c[5]++,h>=4){if(at.fill(v,0),at.fill(M,0),this.findMinimums(c,M,Ee.MAX_VALUE,v),M[0]v&&(s=v,at.fill(c,0)),s===v&&(c[h]=c[h]+1)}return s},o.getMinimumCount=function(t){for(var i=0,s=0;s<6;s++)i+=t[s];return i||0},o.isDigit=function(t){return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)},o.isExtendedASCII=function(t){return t>=128&&t<=255},o.isNativeC40=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},o.isNativeText=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)},o.isNativeX12=function(t){return this.isX12TermSep(t)||t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},o.isX12TermSep=function(t){return 13===t||t==="*".charCodeAt(0)||t===">".charCodeAt(0)},o.isNativeEDIFACT=function(t){return t>=" ".charCodeAt(0)&&t<="^".charCodeAt(0)},o.isSpecialB256=function(t){return!1},o.determineConsecutiveDigitCount=function(t,i){void 0===i&&(i=0);for(var s=t.length,c=i;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ju=function(){function o(t){this.charset=t,this.name=t.name}return o.prototype.canEncode=function(t){try{return null!=Wn.encode(t,this.charset)}catch{return!1}},o}(),rf=function(){function o(t,i,s){var c,h,v,M,O,N;this.ENCODERS=["IBM437","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","windows-1250","windows-1251","windows-1252","windows-1256","Shift_JIS"].map(function(Gi){return new Ju(Fa.forName(Gi))}),this.encoders=[];var $=[];$.push(new Ju(Ou.ISO_8859_1));for(var q=null!=i&&i.name.startsWith("UTF"),de=0;de=this.bytes.length)return!1;for(var s=0;s=this.length())throw new Error(""+t);if(this.isECI(t))throw new Error("value at "+t+" is not a character but an ECI");return this.isFNC1(t)?this.fnc1:this.bytes[t]},o.prototype.subSequence=function(t,i){if(t<0||t>i||i>this.length())throw new Error(""+t);for(var s=new Ce,c=t;c=this.length())throw new Error(""+t);return this.bytes[t]>255&&this.bytes[t]<=999},o.prototype.isFNC1=function(t){if(t<0||t>=this.length())throw new Error(""+t);return 1e3===this.bytes[t]},o.prototype.getECIValue=function(t){if(t<0||t>=this.length())throw new Error(""+t);if(!this.isECI(t))throw new Error("value at "+t+" is not an ECI but a character");return this.bytes[t]-256},o.prototype.addEdge=function(t,i,s){(null==t[i][s.encoderIndex]||t[i][s.encoderIndex].cachedTotalSize>s.cachedTotalSize)&&(t[i][s.encoderIndex]=s)},o.prototype.addEdges=function(t,i,s,c,h,v){var M=t.charAt(c).charCodeAt(0),O=0,N=i.length();i.getPriorityEncoderIndex()>=0&&(M===v||i.canEncode(M,i.getPriorityEncoderIndex()))&&(N=(O=i.getPriorityEncoderIndex())+1);for(var $=O;$=0;v--)q.unshift(255&we[v])}(null===de.previous?0:de.previous.encoderIndex)!==de.encoderIndex&&q.unshift(256+i.getECIValue(de.encoderIndex)),de=de.previous}var vt=[];for(v=0;v=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xh=function(o,t){var i="function"==typeof Symbol&&o[Symbol.iterator];if(!i)return o;var c,v,s=i.call(o),h=[];try{for(;(void 0===t||t-- >0)&&!(c=s.next()).done;)h.push(c.value)}catch(M){v={error:M}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(v)throw v.error}}return h},si=function(o){return o[o.ASCII=0]="ASCII",o[o.C40=1]="C40",o[o.TEXT=2]="TEXT",o[o.X12=3]="X12",o[o.EDF=4]="EDF",o[o.B256=5]="B256",o}(si||{}),du=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],Hl=function(){function o(){}return o.isExtendedASCII=function(t,i){return t!==i&&t>=128&&t<=255},o.isInC40Shift1Set=function(t){return t<=31},o.isInC40Shift2Set=function(t,i){var s,c;try{for(var h=cu(du),v=h.next();!v.done;v=h.next())if(v.value.charCodeAt(0)===t)return!0}catch(O){s={error:O}}finally{try{v&&!v.done&&(c=h.return)&&c.call(h)}finally{if(s)throw s.error}}return t===i},o.isInTextShift1Set=function(t){return this.isInC40Shift1Set(t)},o.isInTextShift2Set=function(t,i){return this.isInC40Shift2Set(t,i)},o.encodeHighLevel=function(t,i,s,c){void 0===i&&(i=null),void 0===s&&(s=-1),void 0===c&&(c=0);var h=0;return t.startsWith(ru)&&t.endsWith("\x1e\x04")?(h=5,t=t.substring(7,t.length-2)):t.startsWith(ou)&&t.endsWith("\x1e\x04")&&(h=6,t=t.substring(7,t.length-2)),decodeURIComponent(escape(String.fromCharCode.apply(String,function(){for(var o=[],t=0;ti.cachedTotalSize)&&(t[s][i.getEndMode()]=i)},o.getNumberOfC40Words=function(t,i,s,c){for(var h=0,v=i;v=128&&(s&&Mr.isNativeC40(O-128)||!s&&Mr.isNativeText(O-128))?h+=3:h+=4}else h+=2;if(h%3==0||(h-2)%3==0&&v+1===t.length())return c[0]=v-i+1,Math.ceil(h/3)}return c[0]=0,0},o.addEdges=function(t,i,s,c){var h,v;if(t.isECI(s))this.addEdge(i,new nc(t,si.ASCII,s,1,c));else{var we,M=t.charAt(s);if(null===c||c.getEndMode()!==si.EDF){Mr.isDigit(M)&&t.haveNCharacters(s,2)&&Mr.isDigit(t.charAt(s+1))?this.addEdge(i,new nc(t,si.ASCII,s,2,c)):this.addEdge(i,new nc(t,si.ASCII,s,1,c));var O=[si.C40,si.TEXT];try{for(var N=cu(O),$=N.next();!$.done;$=N.next()){var q=$.value,de=[];o.getNumberOfC40Words(t,s,q===si.C40,de)>0&&this.addEdge(i,new nc(t,q,s,de[0],c))}}catch(vt){h={error:vt}}finally{try{$&&!$.done&&(v=N.return)&&v.call(N)}finally{if(h)throw h.error}}t.haveNCharacters(s,3)&&Mr.isNativeX12(t.charAt(s))&&Mr.isNativeX12(t.charAt(s+1))&&Mr.isNativeX12(t.charAt(s+2))&&this.addEdge(i,new nc(t,si.X12,s,3,c)),this.addEdge(i,new nc(t,si.B256,s,1,c))}for(we=0;we<3;we++){var et=s+we;if(!t.haveNCharacters(et,1)||!Mr.isNativeEDIFACT(t.charAt(et)))break;this.addEdge(i,new nc(t,si.EDF,s,we+1,c))}3===we&&t.haveNCharacters(s,4)&&Mr.isNativeEDIFACT(t.charAt(s+3))&&this.addEdge(i,new nc(t,si.EDF,s,4,c))}},o.encodeMinimally=function(t){var i=t.length(),s=Array(i+1).fill(null).map(function(){return Array(6).fill(0)});this.addEdges(t,s,0,null);for(var c=1;c<=i;c++){for(var h=0;h<6;h++)null!==s[c][h]&&c=1&&h<=3?O.cachedTotalSize+1:O.cachedTotalSize;N0&&(s+=this.prepend(nc.getBytes(232),c));for(var O=0;O=0;s--)i.unshift(t[s]);return t.length},o.prototype.randomize253State=function(t){var s=149*t%253+1+129;return s<=254?s:s-254},o.prototype.applyRandomPattern=function(t,i,s){for(var c=0;c0&&this.getCodewordsRemaining(this.cachedTotalSize+t)<=2-t)return si.ASCII}if(this.mode===si.C40||this.mode===si.TEXT||this.mode===si.X12){if(this.fromPosition+this.characterLength>=this.input.length()&&0===this.getCodewordsRemaining(this.cachedTotalSize))return si.ASCII;var t;if(1===(t=this.getLastASCII())&&0===this.getCodewordsRemaining(this.cachedTotalSize+1))return si.ASCII}return this.mode},o.prototype.getMode=function(){return this.mode},o.prototype.getLastASCII=function(){var t=this.input.length(),i=this.fromPosition+this.characterLength;return t-i>4||i>=t?0:t-i==1?Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())?0:1:t-i==2?Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())||Hl.isExtendedASCII(this.input.charAt(i+1),this.input.getFNC1Character())?0:Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))?1:2:t-i==3?Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))&&!Hl.isExtendedASCII(this.input.charAt(i+2),this.input.getFNC1Character())||Mr.isDigit(this.input.charAt(i+1))&&Mr.isDigit(this.input.charAt(i+2))&&!Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())?2:0:Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))&&Mr.isDigit(this.input.charAt(i+2))&&Mr.isDigit(this.input.charAt(i+3))?2:0},o.prototype.getMinSymbolSize=function(t){var i,s,c,h,v,M;switch(this.input.getShapeHint()){case 1:try{for(var O=cu(this.squareCodewordCapacities),N=O.next();!N.done;N=O.next())if(($=N.value)>=t)return $}catch(vt){i={error:vt}}finally{try{N&&!N.done&&(s=O.return)&&s.call(O)}finally{if(i)throw i.error}}break;case 2:try{for(var q=cu(this.rectangularCodewordCapacities),de=q.next();!de.done;de=q.next())if(($=de.value)>=t)return $}catch(vt){c={error:vt}}finally{try{de&&!de.done&&(h=q.return)&&h.call(q)}finally{if(c)throw c.error}}}try{for(var we=cu(this.allCodewordCapacities),et=we.next();!et.done;et=we.next()){var $;if(($=et.value)>=t)return $}}catch(vt){v={error:vt}}finally{try{et&&!et.done&&(M=we.return)&&M.call(we)}finally{if(v)throw v.error}}return this.allCodewordCapacities[this.allCodewordCapacities.length-1]},o.prototype.getCodewordsRemaining=function(t){return this.getMinSymbolSize(t)-t},o.getBytes=function(t,i){var s=new Uint8Array(i?2:1);return s[0]=t,i&&(s[1]=i),s},o.prototype.setC40Word=function(t,i,s,c,h){var v=1600*(255&s)+40*(255&c)+(255&h)+1;t[i]=v/256,t[i+1]=v%256},o.prototype.getX12Value=function(t){return 13===t?0:42===t?1:62===t?2:32===t?3:t>=48&&t<=57?t-44:t>=65&&t<=90?t-51:t},o.prototype.getX12Words=function(){if(this.characterLength%3!=0)throw new Error("X12 words must be a multiple of 3");for(var t=new Uint8Array(this.characterLength/3*2),i=0;i=33&&s<=47?s-33:s>=48&&s<=57?s-44:s>=58&&s<=64?s-43:s>=65&&s<=90?s-64:s>=91&&s<=95?s-69:96===s?0:s>=97&&s<=122?s-83:s>=123&&s<=127?s-96:s},o.prototype.getC40Words=function(t,i){for(var s=[],c=0;c>16&255,i[h+1]=O>>8&255,i[h+2]=255&O}return i},o.prototype.getLatchBytes=function(){switch(this.getPreviousMode()){case si.ASCII:case si.B256:switch(this.mode){case si.B256:return o.getBytes(231);case si.C40:return o.getBytes(230);case si.TEXT:return o.getBytes(239);case si.X12:return o.getBytes(238);case si.EDF:return o.getBytes(240)}break;case si.C40:case si.TEXT:case si.X12:if(this.mode!==this.getPreviousMode())switch(this.mode){case si.ASCII:return o.getBytes(254);case si.B256:return o.getBytes(254,231);case si.C40:return o.getBytes(254,230);case si.TEXT:return o.getBytes(254,239);case si.X12:return o.getBytes(254,238);case si.EDF:return o.getBytes(254,240)}break;case si.EDF:if(this.mode!==si.EDF)throw new Error("Cannot switch from EDF to "+this.mode)}return new Uint8Array(0)},o.prototype.getDataBytes=function(){switch(this.mode){case si.ASCII:return this.input.isECI(this.fromPosition)?o.getBytes(241,this.input.getECIValue(this.fromPosition)+1):Hl.isExtendedASCII(this.input.charAt(this.fromPosition),this.input.getFNC1Character())?o.getBytes(235,this.input.charAt(this.fromPosition)-127):2===this.characterLength?o.getBytes(10*this.input.charAt(this.fromPosition)+this.input.charAt(this.fromPosition+1)+130):this.input.isFNC1(this.fromPosition)?o.getBytes(232):o.getBytes(this.input.charAt(this.fromPosition)+1);case si.B256:return o.getBytes(this.input.charAt(this.fromPosition));case si.C40:return this.getC40Words(!0,this.input.getFNC1Character());case si.TEXT:return this.getC40Words(!1,this.input.getFNC1Character());case si.X12:return this.getX12Words();case si.EDF:return this.getEDFBytes()}},o}(),Ch=function(o){function t(i,s,c,h,v){var M=o.call(this,i,s,c)||this;return M.shape=h,M.macroId=v,M}return zf(t,o),t.prototype.getMacroId=function(){return this.macroId},t.prototype.getShapeHint=function(){return this.shape},t}(Zf);!function(){function o(){}o.prototype.encode=function(t,i,s,c,h){if(void 0===h&&(h=null),""===t.trim())throw new Error("Found empty contents");if(i!==be.DATA_MATRIX)throw new Error("Can only encode DATA_MATRIX, but got "+i);if(s<0||c<0)throw new Error("Requested dimensions can't be negative: "+s+"x"+c);var de,v=0,M=null,O=null;if(null!=h){var N=h.get(pi.DATA_MATRIX_SHAPE);null!=N&&(v=N);var $=h.get(pi.MIN_SIZE);null!=$&&(M=$);var q=h.get(pi.MAX_SIZE);null!=q&&(O=q)}if(null!=h&&h.has(pi.DATA_MATRIX_COMPACT)&&h.get(pi.DATA_MATRIX_COMPACT).toString()){var et=h.has(pi.GS1_FORMAT)&&!!h.get(pi.GS1_FORMAT).toString(),vt=null;h.has(pi.CHARACTER_SET)&&(vt=Fa.forName(h.get(pi.CHARACTER_SET).toString())),de=Hl.encodeHighLevel(t,vt,et?29:-1,v)}else{var $t=null!=h&&h.has(pi.FORCE_C40)&&!!h.get(pi.FORCE_C40).toString();de=Mr.encodeHighLevel(t,v,M,O,$t)}var Gt=bh.lookup(de.length,v,M,O,!0),an=Xh.encodeECC200(de,Gt),bn=new Id(an,Gt.getSymbolDataWidth(),Gt.getSymbolDataHeight());return bn.place(),this.encodeLowLevel(bn,Gt,s,c)},o.prototype.encodeLowLevel=function(t,i,s,c){for(var h=i.getSymbolDataWidth(),v=i.getSymbolDataHeight(),M=new it(i.getSymbolWidth(),i.getSymbolHeight()),O=0,N=0;N"},t}(df);const Xu=hf;var ff=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Dh=function(o){function t(i,s,c){var h=o.call(this,i,0,0)||this;return h.binaryShiftStart=s,h.binaryShiftByteCount=c,h}return ff(t,o),t.prototype.appendTo=function(i,s){for(var c=0;c62?i.appendBits(this.binaryShiftByteCount-31,16):i.appendBits(0===c?Math.min(this.binaryShiftByteCount,31):this.binaryShiftByteCount-31,5)),i.appendBits(s[this.binaryShiftStart+c],8)},t.prototype.addBinaryShift=function(i,s){return new t(this,i,s)},t.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},t}(Xu);const Lu=Dh;function Ld(o,t,i){return new Xu(o,t,i)}var Gf=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],fu=new Xu(null,0,0),ud=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])],pf=function Pu(o){var t,i;try{for(var s=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),c=s.next();!c.done;c=s.next())at.fill(c.value,-1)}catch(v){t={error:v}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return o[0][4]=0,o[1][4]=0,o[1][0]=28,o[3][4]=0,o[2][4]=0,o[2][0]=15,o}(at.createInt32Array(6,6)),th=function(){function o(t,i,s,c){this.token=t,this.mode=i,this.binaryShiftByteCount=s,this.bitCount=c}return o.prototype.getMode=function(){return this.mode},o.prototype.getToken=function(){return this.token},o.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},o.prototype.getBitCount=function(){return this.bitCount},o.prototype.latchAndAppend=function(t,i){var s=this.bitCount,c=this.token;if(t!==this.mode){var h=ud[this.mode][t];c=Ld(c,65535&h,h>>16),s+=h>>16}var v=2===t?4:5;return new o(c=Ld(c,i,v),t,0,s+v)},o.prototype.shiftAndAppend=function(t,i){var s=this.token,c=2===this.mode?4:5;return s=Ld(s,pf[this.mode][t],c),new o(s=Ld(s,i,5),this.mode,0,this.bitCount+c+5)},o.prototype.addBinaryShiftChar=function(t){var i=this.token,s=this.mode,c=this.bitCount;if(4===this.mode||2===this.mode){var h=ud[s][0];i=Ld(i,65535&h,h>>16),c+=h>>16,s=0}var M=new o(i,s,this.binaryShiftByteCount+1,c+(0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8));return 2078===M.binaryShiftByteCount&&(M=M.endBinaryShift(t+1)),M},o.prototype.endBinaryShift=function(t){if(0===this.binaryShiftByteCount)return this;var i=this.token;return i=function eh(o,t,i){return new Lu(o,t,i)}(i,t-this.binaryShiftByteCount,this.binaryShiftByteCount),new o(i,this.mode,0,this.bitCount)},o.prototype.isBetterThanOrEqualTo=function(t){var i=this.bitCount+(ud[this.mode][t.mode]>>16);return this.binaryShiftByteCountt.binaryShiftByteCount&&t.binaryShiftByteCount>0&&(i+=10),i<=t.bitCount},o.prototype.toBitArray=function(t){for(var i,s,c=[],h=this.endBinaryShift(t.length).token;null!==h;h=h.getPrevious())c.unshift(h);var v=new me;try{for(var M=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),O=M.next();!O.done;O=M.next())O.value.appendTo(v,t)}catch($){i={error:$}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}return v},o.prototype.toString=function(){return ct.format("%s bits=%d bytes=%d",Gf[this.mode],this.bitCount,this.binaryShiftByteCount)},o.calculateBinaryShiftCost=function(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0},o.INITIAL_STATE=new o(fu,0,0,0),o}();const Sh=th;var eu=function nh(o){var t=ct.getCharCode(" "),i=ct.getCharCode("."),s=ct.getCharCode(",");o[0][t]=1;for(var c=ct.getCharCode("Z"),h=ct.getCharCode("A"),v=h;v<=c;v++)o[0][v]=v-h+2;o[1][t]=1;var M=ct.getCharCode("z"),O=ct.getCharCode("a");for(v=O;v<=M;v++)o[1][v]=v-O+2;o[2][t]=1;var N=ct.getCharCode("9"),$=ct.getCharCode("0");for(v=$;v<=N;v++)o[2][v]=v-$+2;o[2][s]=12,o[2][i]=13;for(var q=["\0"," ","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\v","\f","\r","\x1b","\x1c","\x1d","\x1e","\x1f","@","\\","^","_","`","|","~","\x7f"],de=0;de","?","[","]","{","}"];for(de=0;de0&&(o[4][ct.getCharCode(we[de])]=de);return o}(at.createInt32Array(5,256)),Dc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Nd=function(){function o(t){this.text=t}return o.prototype.encode=function(){for(var t=ct.getCharCode(" "),i=ct.getCharCode("\n"),s=hu.singletonList(Sh.INITIAL_STATE),c=0;c0?(s=o.updateStateListForPair(s,c,h),c++):s=this.updateStateListForChar(s,c)}return hu.min(s,function(O,N){return O.getBitCount()-N.getBitCount()}).toBitArray(this.text)},o.prototype.updateStateListForChar=function(t,i){var s,c,h=[];try{for(var v=Dc(t),M=v.next();!M.done;M=v.next())this.updateStateForChar(M.value,i,h)}catch(N){s={error:N}}finally{try{M&&!M.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}return o.simplifyStates(h)},o.prototype.updateStateForChar=function(t,i,s){for(var c=255&this.text[i],h=eu[t.getMode()][c]>0,v=null,M=0;M<=4;M++){var O=eu[M][c];if(O>0){if(null==v&&(v=t.endBinaryShift(i)),!h||M===t.getMode()||2===M){var N=v.latchAndAppend(M,O);s.push(N)}if(!h&&pf[t.getMode()][M]>=0){var $=v.shiftAndAppend(M,O);s.push($)}}}if(t.getBinaryShiftByteCount()>0||0===eu[t.getMode()][c]){var q=t.addBinaryShiftChar(i);s.push(q)}},o.updateStateListForPair=function(t,i,s){var c,h,v=[];try{for(var M=Dc(t),O=M.next();!O.done;O=M.next())this.updateStateForPair(O.value,i,s,v)}catch($){c={error:$}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}return this.simplifyStates(v)},o.updateStateForPair=function(t,i,s,c){var h=t.endBinaryShift(i);if(c.push(h.latchAndAppend(4,s)),4!==t.getMode()&&c.push(h.shiftAndAppend(4,s)),3===s||4===s){var v=h.latchAndAppend(2,16-s).latchAndAppend(2,1);c.push(v)}if(t.getBinaryShiftByteCount()>0){var M=t.addBinaryShiftChar(i).addBinaryShiftChar(i+1);c.push(M)}},o.simplifyStates=function(t){var i,s,c,h,v=[];try{for(var M=Dc(t),O=M.next();!O.done;O=M.next()){var N=O.value,$=!0,q=function(zt){if(zt.isBetterThanOrEqualTo(N))return $=!1,"break";N.isBetterThanOrEqualTo(zt)&&(v=v.filter(function($t){return $t!==zt}))};try{for(var de=(c=void 0,Dc(v)),we=de.next();!we.done&&"break"!==q(we.value);we=de.next());}catch(zt){c={error:zt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}$&&v.push(N)}}catch(zt){i={error:zt}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}return v},o}();const Nu=Nd;var Yu=function(){function o(){}return o.encodeBytes=function(t){return o.encode(t,o.DEFAULT_EC_PERCENT,o.DEFAULT_AZTEC_LAYERS)},o.encode=function(t,i,s){var M,O,N,$,q,c=new Nu(t).encode(),h=Ee.truncDivision(c.getSize()*i,100)+11,v=c.getSize()+h;if(s!==o.DEFAULT_AZTEC_LAYERS){if(M=s<0,(O=Math.abs(s))>(M?o.MAX_NB_BITS_COMPACT:o.MAX_NB_BITS))throw new Ge(ct.format("Illegal value %s for layers",s));var de=(N=o.totalBitsInLayer(O,M))-N%($=o.WORD_SIZE[O]);if((q=o.stuffBits(c,$)).getSize()+h>de)throw new Ge("Data to large for user specified layer");if(M&&q.getSize()>64*$)throw new Ge("Data to large for user specified layer")}else{$=0,q=null;for(var we=0;;we++){if(we>o.MAX_NB_BITS)throw new Ge("Data too large for an Aztec code");if(!(v>(N=o.totalBitsInLayer(O=(M=we<=3)?we+1:we,M)))&&((null==q||$!==o.WORD_SIZE[O])&&(q=o.stuffBits(c,$=o.WORD_SIZE[O])),de=N-N%$,!(M&&q.getSize()>64*$)&&q.getSize()+h<=de))break}}var an,et=o.generateCheckWords(q,N,$),vt=q.getSize()/$,zt=o.generateModeMessage(M,O,vt),$t=(M?11:14)+4*O,Gt=new Int32Array($t);if(M)for(an=$t,we=0;we=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Array.from(N)),we=de.next();!we.done;we=de.next())q.appendBits(we.value,s)}catch(vt){c={error:vt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}return q},o.bitsToWords=function(t,i,s){var h,v,c=new Int32Array(s);for(h=0,v=t.getSize()/i;h=c||t.get(v+O))&&(M|=1<>10}return h},t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth(),h=i*c;return null===s?s=this.buffer.slice(h,h+c):(s.length0&&h[h.length-1])&&(6===N[0]||2===N[0])){i=0;continue}if(3===N[0]&&(!h||N[1]>h[0]&&N[1]=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Yd={delayBetweenScanAttempts:500,delayBetweenScanSuccess:500,tryPlayVideoTimeout:5e3},hd=function(){function o(t,i,s){void 0===i&&(i=new Map),void 0===s&&(s={}),this.reader=t,this.hints=i,this.options=Fd(Fd({},Yd),s)}return Object.defineProperty(o.prototype,"possibleFormats",{set:function(t){this.hints.set(he.POSSIBLE_FORMATS,t)},enumerable:!1,configurable:!0}),o.addVideoSource=function(t,i){try{t.srcObject=i}catch{console.error("got interrupted by new loading request")}},o.mediaStreamSetTorch=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(s){switch(s.label){case 0:return[4,t.applyConstraints({advanced:[{fillLightMode:i?"flash":"off",torch:!!i}]})];case 1:return s.sent(),[2]}})})},o.mediaStreamIsTorchCompatible=function(t){var i,s,c=t.getVideoTracks();try{for(var h=mu(c),v=h.next();!v.done;v=h.next())if(o.mediaStreamIsTorchCompatibleTrack(v.value))return!0}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return!1},o.mediaStreamIsTorchCompatibleTrack=function(t){try{return"torch"in t.getCapabilities()}catch(s){return console.error(s),console.warn("Your browser may be not fully compatible with WebRTC and/or ImageCapture specs. Torch will not be available."),!1}},o.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&t.readyState>2},o.getMediaElement=function(t,i){var s=document.getElementById(t);if(!s)throw new _e("element with id '".concat(t,"' not found"));if(s.nodeName.toLowerCase()!==i.toLowerCase())throw new _e("element with id '".concat(t,"' must be an ").concat(i," element"));return s},o.createVideoElement=function(t){if(t instanceof HTMLVideoElement)return t;if("string"==typeof t)return o.getMediaElement(t,"video");if(!t&&typeof document<"u"){var i=document.createElement("video");return i.width=200,i.height=200,i}throw new Error("Couldn't get videoElement from videoSource!")},o.prepareImageElement=function(t){if(t instanceof HTMLImageElement)return t;if("string"==typeof t)return o.getMediaElement(t,"img");if(typeof t>"u"){var i=document.createElement("img");return i.width=200,i.height=200,i}throw new Error("Couldn't get imageElement from imageSource!")},o.prepareVideoElement=function(t){var i=o.createVideoElement(t);return i.setAttribute("autoplay","true"),i.setAttribute("muted","true"),i.setAttribute("playsinline","true"),i},o.isImageLoaded=function(t){return!(!t.complete||0===t.naturalWidth)},o.createBinaryBitmapFromCanvas=function(t){var i=new rh(t),s=new gn(i);return new je(s)},o.drawImageOnCanvas=function(t,i){t.drawImage(i,0,0)},o.getMediaElementDimensions=function(t){if(t instanceof HTMLVideoElement)return{height:t.videoHeight,width:t.videoWidth};if(t instanceof HTMLImageElement)return{height:t.naturalHeight||t.height,width:t.naturalWidth||t.width};throw new Error("Couldn't find the Source's dimensions!")},o.createCaptureCanvas=function(t){if(!t)throw new _e("Cannot create a capture canvas without a media element.");if(typeof document>"u")throw new Error('The page "Document" is undefined, make sure you\'re running in a browser.');var i=document.createElement("canvas"),s=o.getMediaElementDimensions(t),c=s.width,h=s.height;return i.style.width=c+"px",i.style.height=h+"px",i.width=c,i.height=h,i},o.tryPlayVideo=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(t?.ended)return console.error("Trying to play video that has ended."),[2,!1];if(o.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2,!0];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.play()];case 2:return s.sent(),[2,!0];case 3:return i=s.sent(),console.warn("It was not possible to play the video.",i),[2,!1];case 4:return[2]}})})},o.createCanvasFromMediaElement=function(t){var i=o.createCaptureCanvas(t),s=i.getContext("2d");if(!s)throw new Error("Couldn't find Canvas 2D Context.");return o.drawImageOnCanvas(s,t),i},o.createBinaryBitmapFromMediaElem=function(t){var i=o.createCanvasFromMediaElement(t);return o.createBinaryBitmapFromCanvas(i)},o.destroyImageElement=function(t){t.src="",t.removeAttribute("src"),t=void 0},o.listVideoInputDevices=function(){return us(this,void 0,void 0,function(){var t,i,s,c,h,v,M,O,q,de;return Yo(this,function(we){switch(we.label){case 0:if(!Bu())throw new Error("Can't enumerate devices, navigator is not present.");if(!function sh(){return!(!function oh(){return Bu()&&!!navigator.mediaDevices}()||!navigator.mediaDevices.enumerateDevices)}())throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=we.sent(),i=[];try{for(s=mu(t),c=s.next();!c.done;c=s.next())"videoinput"===(v="video"===(h=c.value).kind?"videoinput":h.kind)&&(M=h.deviceId||h.id,O=h.label||"Video device ".concat(i.length+1),i.push({deviceId:M,label:O,kind:v,groupId:h.groupId}))}catch(et){q={error:et}}finally{try{c&&!c.done&&(de=s.return)&&de.call(s)}finally{if(q)throw q.error}}return[2,i]}})})},o.findDeviceById=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:return[4,o.listVideoInputDevices()];case 1:return(i=s.sent())?[2,i.find(function(c){return c.deviceId===t})]:[2]}})})},o.cleanVideoSource=function(t){if(t){try{t.srcObject=null}catch{t.src=""}t&&t.removeAttribute("src")}},o.releaseAllStreams=function(){0!==o.streamTracker.length&&o.streamTracker.forEach(function(t){t.getTracks().forEach(function(i){return i.stop()})}),o.streamTracker=[]},o.playVideoOnLoadAsync=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(c){switch(c.label){case 0:return[4,o.tryPlayVideo(t)];case 1:return c.sent()?[2,!0]:[2,new Promise(function(h,v){var M=setTimeout(function(){o.isVideoPlaying(t)||(v(!1),t.removeEventListener("canplay",O))},i),O=function(){o.tryPlayVideo(t).then(function(N){clearTimeout(M),t.removeEventListener("canplay",O),h(N)})};t.addEventListener("canplay",O)})]}})})},o.attachStreamToVideo=function(t,i,s){return void 0===s&&(s=5e3),us(this,void 0,void 0,function(){var c;return Yo(this,function(h){switch(h.label){case 0:return c=o.prepareVideoElement(i),o.addVideoSource(c,t),[4,o.playVideoOnLoadAsync(c,s)];case 1:return h.sent(),[2,c]}})})},o._waitImageLoad=function(t){return new Promise(function(i,s){var h=setTimeout(function(){o.isImageLoaded(t)||(t.removeEventListener("load",v),s())},1e4),v=function(){clearTimeout(h),t.removeEventListener("load",v),i()};t.addEventListener("load",v)})},o.checkCallbackFnOrThrow=function(t){if(!t)throw new _e("`callbackFn` is a required parameter, you cannot capture results without it.")},o.disposeMediaStream=function(t){t.getVideoTracks().forEach(function(i){return i.stop()}),t=void 0},o.prototype.decode=function(t){var i=o.createCanvasFromMediaElement(t);return this.decodeFromCanvas(i)},o.prototype.decodeBitmap=function(t){return this.reader.decode(t,this.hints)},o.prototype.decodeFromCanvas=function(t){var i=o.createBinaryBitmapFromCanvas(t);return this.decodeBitmap(i)},o.prototype.decodeFromImageElement=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(!t)throw new _e("An image element must be provided.");return i=o.prepareImageElement(t),[4,this._decodeOnLoadImage(i)];case 1:return[2,s.sent()]}})})},o.prototype.decodeFromImageUrl=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(!t)throw new _e("An URL must be provided.");(i=o.prepareImageElement()).src=t,s.label=1;case 1:return s.trys.push([1,,3,4]),[4,this.decodeFromImageElement(i)];case 2:return[2,s.sent()];case 3:return o.destroyImageElement(i),[7];case 4:return[2]}})})},o.prototype.decodeFromConstraints=function(t,i,s){return us(this,void 0,void 0,function(){var c,h;return Yo(this,function(v){switch(v.label){case 0:return o.checkCallbackFnOrThrow(s),[4,this.getUserMedia(t)];case 1:c=v.sent(),v.label=2;case 2:return v.trys.push([2,4,,5]),[4,this.decodeFromStream(c,i,s)];case 3:return[2,v.sent()];case 4:throw h=v.sent(),o.disposeMediaStream(c),h;case 5:return[2]}})})},o.prototype.decodeFromStream=function(t,i,s){return us(this,void 0,void 0,function(){var h,M,O,N,q,de,we=this;return Yo(this,function(et){switch(et.label){case 0:return o.checkCallbackFnOrThrow(s),[4,o.attachStreamToVideo(t,i,this.options.tryPlayVideoTimeout)];case 1:return h=et.sent(),M=this.scan(h,s,function(){o.disposeMediaStream(t),o.cleanVideoSource(h)}),O=t.getVideoTracks(),N=Fd(Fd({},M),{stop:function(){M.stop()},streamVideoConstraintsApply:function(vt,zt){return us(this,void 0,void 0,function(){var $t,Gt,an,Nn,Zn,Kn;return Yo(this,function(fi){switch(fi.label){case 0:$t=zt?O.filter(zt):O,fi.label=1;case 1:fi.trys.push([1,6,7,8]),Gt=mu($t),an=Gt.next(),fi.label=2;case 2:return an.done?[3,5]:[4,an.value.applyConstraints(vt)];case 3:fi.sent(),fi.label=4;case 4:return an=Gt.next(),[3,2];case 5:return[3,8];case 6:return Nn=fi.sent(),Zn={error:Nn},[3,8];case 7:try{an&&!an.done&&(Kn=Gt.return)&&Kn.call(Gt)}finally{if(Zn)throw Zn.error}return[7];case 8:return[2]}})})},streamVideoConstraintsGet:function(vt){return O.find(vt).getConstraints()},streamVideoSettingsGet:function(vt){return O.find(vt).getSettings()},streamVideoCapabilitiesGet:function(vt){return O.find(vt).getCapabilities()}}),o.mediaStreamIsTorchCompatible(t)&&(q=O?.find(function(vt){return o.mediaStreamIsTorchCompatibleTrack(vt)}),N.switchTorch=de=function(vt){return us(we,void 0,void 0,function(){return Yo(this,function(zt){switch(zt.label){case 0:return[4,o.mediaStreamSetTorch(q,vt)];case 1:return zt.sent(),[2]}})})},N.stop=function(){return us(we,void 0,void 0,function(){return Yo(this,function(vt){switch(vt.label){case 0:return M.stop(),[4,de(!1)];case 1:return vt.sent(),[2]}})})}),[2,N]}})})},o.prototype.decodeFromVideoDevice=function(t,i,s){return us(this,void 0,void 0,function(){return Yo(this,function(v){switch(v.label){case 0:return o.checkCallbackFnOrThrow(s),[4,this.decodeFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i,s)];case 1:return[2,v.sent()]}})})},o.prototype.decodeFromVideoElement=function(t,i){return us(this,void 0,void 0,function(){var s;return Yo(this,function(h){switch(h.label){case 0:if(o.checkCallbackFnOrThrow(i),!t)throw new _e("A video element must be provided.");return s=o.prepareVideoElement(t),[4,o.playVideoOnLoadAsync(s,this.options.tryPlayVideoTimeout)];case 1:return h.sent(),[2,this.scan(s,i)]}})})},o.prototype.decodeFromVideoUrl=function(t,i){return us(this,void 0,void 0,function(){var s,c;return Yo(this,function(M){switch(M.label){case 0:if(o.checkCallbackFnOrThrow(i),!t)throw new _e("An URL must be provided.");return(s=o.prepareVideoElement()).src=t,c=function(){o.cleanVideoSource(s)},[4,o.playVideoOnLoadAsync(s,this.options.tryPlayVideoTimeout)];case 1:return M.sent(),[2,this.scan(s,i,c)]}})})},o.prototype.decodeOnceFromConstraints=function(t,i){return us(this,void 0,void 0,function(){var s;return Yo(this,function(c){switch(c.label){case 0:return[4,this.getUserMedia(t)];case 1:return s=c.sent(),[4,this.decodeOnceFromStream(s,i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromStream=function(t,i){return us(this,void 0,void 0,function(){var s,c;return Yo(this,function(v){switch(v.label){case 0:return s=!!i,[4,o.attachStreamToVideo(t,i)];case 1:c=v.sent(),v.label=2;case 2:return v.trys.push([2,,4,5]),[4,this.scanOneResult(c)];case 3:return[2,v.sent()];case 4:return s||o.cleanVideoSource(c),[7];case 5:return[2]}})})},o.prototype.decodeOnceFromVideoDevice=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(h){switch(h.label){case 0:return[4,this.decodeOnceFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i)];case 1:return[2,h.sent()]}})})},o.prototype.decodeOnceFromVideoElement=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(c){switch(c.label){case 0:if(!t)throw new _e("A video element must be provided.");return i=o.prepareVideoElement(t),[4,o.playVideoOnLoadAsync(i,this.options.tryPlayVideoTimeout)];case 1:return c.sent(),[4,this.scanOneResult(i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromVideoUrl=function(t){return us(this,void 0,void 0,function(){var i,s;return Yo(this,function(c){switch(c.label){case 0:if(!t)throw new _e("An URL must be provided.");(i=o.prepareVideoElement()).src=t,s=this.decodeOnceFromVideoElement(i),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,s];case 2:return[2,c.sent()];case 3:return o.cleanVideoSource(i),[7];case 4:return[2]}})})},o.prototype.scanOneResult=function(t,i,s,c){var h=this;return void 0===i&&(i=!0),void 0===s&&(s=!0),void 0===c&&(c=!0),new Promise(function(v,M){h.scan(t,function(O,N,$){if(O)return v(O),void $.stop();if(N){if(N instanceof Se&&i||N instanceof St&&s||N instanceof bt&&c)return;$.stop(),M(N)}})})},o.prototype.scan=function(t,i,s){var c=this;o.checkCallbackFnOrThrow(i);var h=o.createCaptureCanvas(t),v=h.getContext("2d");if(!v)throw new Error("Couldn't create canvas for visual element scan.");var N,M=function(){v=void 0,h=void 0},O=!1,q={stop:function(){O=!0,clearTimeout(N),M(),s&&s()}},de=function(){if(!O)try{o.drawImageOnCanvas(v,t);var we=c.decodeFromCanvas(h);i(we,void 0,q),N=setTimeout(de,c.options.delayBetweenScanSuccess)}catch($t){if(i(void 0,$t,q),$t instanceof St||$t instanceof bt||$t instanceof Se)return void(N=setTimeout(de,c.options.delayBetweenScanAttempts));M(),s&&s($t)}};return de(),q},o.prototype._decodeOnLoadImage=function(t){return us(this,void 0,void 0,function(){return Yo(this,function(s){switch(s.label){case 0:return o.isImageLoaded(t)?[3,2]:[4,o._waitImageLoad(t)];case 1:s.sent(),s.label=2;case 2:return[2,this.decode(t)]}})})},o.prototype.getUserMedia=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return i=s.sent(),o.streamTracker.push(i),[2,i]}})})},o.streamTracker=[],o}(),_f=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Oh=(function(o){_f(function t(i,s){return o.call(this,new Vo,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),ah=(function(o){Oh(function t(i,s){return o.call(this,new yi(i),i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),tu=(function(o){ah(function t(i,s){return o.call(this,new cc,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),lh=function(o){function t(i,s){var c=this,h=new Jd;return h.setHints(i),(c=o.call(this,h,i,s)||this).reader=h,c}return tu(t,o),Object.defineProperty(t.prototype,"possibleFormats",{set:function(i){this.hints.set(he.POSSIBLE_FORMATS,i),this.reader.setHints(this.hints)},enumerable:!1,configurable:!0}),t.prototype.decodeBitmap=function(i){return this.reader.decodeWithState(i)},t.prototype.setHints=function(i){this.hints=i,this.reader.setHints(this.hints)},t}(hd),mf=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),gf=(function(o){mf(function t(i,s){return o.call(this,new Pa,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),fd=(function(o){gf(function t(i,s){return o.call(this,new js,i,s)||this},o)}(hd),"http://www.w3.org/2000/svg"),kh=(function(){function o(t){if("string"==typeof t){var i=document.getElementById(t);if(!i)throw new Error("Could not find a Container element with '".concat(t,"'."));this.containerElement=i}else this.containerElement=t}o.prototype.write=function(t,i,s,c){if(0===t.length)throw new Ge("Found empty contents");if(i<0||s<0)throw new Ge("Requested dimensions are too small: "+i+"x"+s);var h=c&&void 0!==c.get(pi.MARGIN)?Number.parseInt(c.get(pi.MARGIN).toString(),10):o.QUIET_ZONE_SIZE,v=this.encode(c,t);return this.renderResult(v,i,s,h)},o.prototype.createSVGElement=function(t,i){var s=document.createElementNS(o.SVG_NS,"svg");return s.setAttributeNS(fd,"width",i.toString()),s.setAttributeNS(fd,"height",t.toString()),s},o.prototype.createSvgPathPlaceholderElement=function(t,i){var s=document.createElementNS(o.SVG_NS,"path");return s.setAttributeNS(fd,"d","M0 0h".concat(t,"v").concat(i,"H0z")),s.setAttributeNS(fd,"fill","none"),s},o.prototype.createSvgRectElement=function(t,i,s,c){var h=document.createElementNS(o.SVG_NS,"rect");return h.setAttributeNS(fd,"x",t.toString()),h.setAttributeNS(fd,"y",i.toString()),h.setAttributeNS(fd,"height",s.toString()),h.setAttributeNS(fd,"width",c.toString()),h.setAttributeNS(fd,"fill","#000000"),h},o.prototype.encode=function(t,i){var s=aa.L;if(t&&void 0!==t.get(pi.ERROR_CORRECTION)){var c=t.get(pi.ERROR_CORRECTION).toString();s=aa.fromString(c)}return Fl.encode(i,s,t)},o.prototype.renderResult=function(t,i,s,c){var h=t.getMatrix();if(null===h)throw new ki;var v=h.getWidth(),M=h.getHeight(),O=v+2*c,N=M+2*c,$=Math.max(i,O),q=Math.max(s,N),de=Math.min(Math.floor($/O),Math.floor(q/N)),we=Math.floor(($-v*de)/2),et=Math.floor((q-M*de)/2),vt=this.createSVGElement($,q),zt=this.createSvgPathPlaceholderElement(i,s);vt.appendChild(zt),this.containerElement.appendChild(vt);for(var $t=0,Gt=et;$t{if(!M)return void c.next({result:v});const O=M.name;O===Se.name||O===St.name||O===bt.name||M.message.includes("No MultiFormat Readers were able to detect the code.")?c.next({error:M}):(c.error(M),s.scannerControls.stop(),s.scannerControls=void 0)}),s.scannerControls={...h,stop(){h.stop(),c.complete()}}}catch(v){c.error(v),s.scannerControls?.stop(),s.scannerControls=void 0}return c.asObservable()})()}}let $f=(()=>{class o{get codeReader(){return this._codeReader}set device(i){this._ready?this.isAutostarting?console.warn("Avoid setting a device during auto-start."):this.isCurrentDevice(i)?console.warn("Setting the same device is not allowed."):this.hasPermission?this.setDevice(i):console.warn("Permissions not set yet, waiting for them to be set to apply device change."):this._devicePreStart=i}get device(){return this._device}get formats(){return this.hints.get(he.POSSIBLE_FORMATS)}set formats(i){if("string"==typeof i)throw new Error("Invalid formats, make sure the [formats] input is a binding.");const s=i.map(h=>this.getBarcodeFormatOrFail(h)),c=this.hints;c.set(he.POSSIBLE_FORMATS,s),this.hints=c}get hints(){return this._hints}set hints(i){this._hints=i,this.codeReader?.setHints(this._hints)}set videoConstraints(i){const s=this.codeReader?.getScannerControls();s&&s?.streamVideoConstraintsApply(i)}set isAutostarting(i){this._isAutostarting=i,this.autostarting.next(i)}get isAutostarting(){return this._isAutostarting}set torch(i){try{this.getCodeReader().getScannerControls().switchTorch(i)}catch{}}set enable(i){this._enabled=!!i,this._enabled?this.device?this.scanFromDevice(this.device.deviceId):this.init():(this.reset(),Hd.releaseAllStreams())}get enabled(){return this._enabled}get tryHarder(){return this.hints.get(he.TRY_HARDER)}set tryHarder(i){const s=this.hints;i?s.set(he.TRY_HARDER,!0):s.delete(he.TRY_HARDER),this.hints=s}constructor(){this.timeBetweenScans=500,this.delayBetweenScanSuccess=500,this.previewFitMode="cover",this.poster="",this._ready=!1,this.autostarted=new D.vpe,this.autostarting=new D.vpe,this.torchCompatible=new D.vpe(!1),this.scanSuccess=new D.vpe,this.scanFailure=new D.vpe,this.scanError=new D.vpe,this.scanComplete=new D.vpe,this.camerasFound=new D.vpe,this.camerasNotFound=new D.vpe,this.permissionResponse=new D.vpe(!0),this.hasDevices=new D.vpe,this.deviceChange=new D.vpe,this._enabled=!0,this._hints=new Map,this.autofocusEnabled=!0,this.autostart=!0,this.formats=[be.QR_CODE],this.hasNavigator=typeof navigator<"u",this.isMediaDevicesSupported=this.hasNavigator&&!!navigator.mediaDevices}askForPermission(){var i=this;return(0,e.Z)(function*(){if(!i.hasNavigator)return console.error("@zxing/ngx-scanner","Can't ask permission, navigator is not present."),i.setPermission(null),i.hasPermission;if(!i.isMediaDevicesSupported)return console.error("@zxing/ngx-scanner","Can't get user media, this is not supported."),i.setPermission(null),i.hasPermission;let s,c;try{s=yield i.getAnyVideoDevice(),c=!!s}catch(h){return i.handlePermissionException(h)}finally{i.terminateStream(s)}return i.setPermission(c),c})()}getAnyVideoDevice(){return navigator.mediaDevices.getUserMedia({video:!0})}terminateStream(i){i&&i.getTracks().forEach(s=>s.stop()),i=void 0}init(){var i=this;return(0,e.Z)(function*(){if(!i.autostart)return console.warn("Feature 'autostart' disabled. Permissions and devices recovery has to be run manually."),i.initAutostartOff(),void(i._ready=!0);yield i.initAutostartOn(),i._ready=!0})()}initAutostartOff(){this.isAutostarting=!1,this.updateVideoInputDevices(),this._device&&this._devicePreStart&&this.setDevice(this._devicePreStart)}initAutostartOn(){var i=this;return(0,e.Z)(function*(){let s;i.isAutostarting=!0;try{s=yield i.askForPermission()}catch(c){return void console.error("Exception occurred while asking for permission:",c)}if(s){const c=yield i.updateVideoInputDevices();yield i.autostartScanner([...c])}i.isAutostarting=!1,i.autostarted.next()})()}isCurrentDevice(i){return i?.deviceId===this._device?.deviceId}ngOnDestroy(){this.reset(),Hd.releaseAllStreams()}ngOnInit(){this.init()}scanStop(){this._scanSubscription&&(this.codeReader?.getScannerControls().stop(),this._scanSubscription?.unsubscribe(),this._scanSubscription=void 0),this.torchCompatible.next(!1)}scanStart(){if(this._scanSubscription)throw new Error("There is already a scan process running.");if(!this._device)throw new Error("No device defined, cannot start scan, please define a device.");this.scanFromDevice(this._device.deviceId)}restart(){this._codeReader=void 0;const i=this._reset();i&&(this.device=i)}updateVideoInputDevices(){var i=this;return(0,e.Z)(function*(){const s=(yield hd.listVideoInputDevices())||[],c=s&&s.length>0;return i.hasDevices.next(c),i.camerasFound.next([...s]),c||i.camerasNotFound.next(null),s})()}autostartScanner(i){var s=this;return(0,e.Z)(function*(){const h=i.find(({label:v})=>/back|tr\xe1s|rear|traseira|environment|ambiente/gi.test(v))||i.pop();if(!h)throw new Error("Impossible to autostart, no input devices available.");yield s.setDevice(h),s.deviceChange.next(h)})()}dispatchScanSuccess(i){this.scanSuccess.next(i.getText())}dispatchScanFailure(i){this.scanFailure.next(i)}dispatchScanError(i){this.scanError.observed||(console.error(`zxing scanner component: ${i.name}`,i),console.warn("Use the `(scanError)` property to handle errors like this!")),this.scanError.next(i)}dispatchScanComplete(i){this.scanComplete.next(i)}handlePermissionException(i){let s;switch(console.error("@zxing/ngx-scanner","Error when asking for permission.",i),i.name){case"NotSupportedError":console.warn("@zxing/ngx-scanner",i.message),s=null,this.hasDevices.next(null);break;case"NotAllowedError":console.warn("@zxing/ngx-scanner",i.message),s=!1,this.hasDevices.next(!0);break;case"NotFoundError":console.warn("@zxing/ngx-scanner",i.message),s=null,this.hasDevices.next(!1),this.camerasNotFound.next(i);break;case"NotReadableError":console.warn("@zxing/ngx-scanner","Couldn't read the device(s)'s stream, it's probably in use by another app."),s=null,this.hasDevices.next(!1),this.camerasNotFound.next(i);break;default:console.warn("@zxing/ngx-scanner","I was not able to define if I have permissions for camera or not.",i),s=null}return this.setPermission(s),this.permissionResponse.error(i),s}getBarcodeFormatOrFail(i){return"string"==typeof i?be[i.trim().toUpperCase()]:i}getCodeReader(){return this._codeReader||(this._codeReader=new Hd(this.hints,{delayBetweenScanAttempts:this.timeBetweenScans,delayBetweenScanSuccess:this.delayBetweenScanSuccess})),this._codeReader}scanFromDevice(i){var s=this;return(0,e.Z)(function*(){const c=s.previewElemRef.nativeElement,h=s.getCodeReader(),v=yield h.scanFromDeviceObservable(i,c);if(!v)throw new Error("Undefined decoding stream, aborting.");if(s._scanSubscription=v.subscribe(de=>s._onDecodeResult(de.result,de.error),de=>s._onDecodeError(de),()=>{}),s._scanSubscription.closed)return;const q=typeof h.getScannerControls().switchTorch<"u";s.torchCompatible.next(q)})()}_onDecodeError(i){this.dispatchScanError(i)}_onDecodeResult(i,s){i?this.dispatchScanSuccess(i):this.dispatchScanFailure(s),this.dispatchScanComplete(i)}_reset(){if(!this._codeReader)return;this._codeReader=void 0;const i=this._device;return this.device=void 0,i}reset(){this._reset(),this.deviceChange.emit(null)}setDevice(i){var s=this;return(0,e.Z)(function*(){s.scanStop(),s._device=i||void 0,s._device||hd.cleanVideoSource(s.previewElemRef.nativeElement),s._enabled&&i&&(yield s.scanFromDevice(i.deviceId))})()}setPermission(i){this.hasPermission=i,this.permissionResponse.next(i)}static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275cmp=D.Xpm({type:o,selectors:[["zxing-scanner"]],viewQuery:function(s,c){if(1&s&&D.Gf(qc,7),2&s){let h;D.iGM(h=D.CRH())&&(c.previewElemRef=h.first)}},inputs:{autofocusEnabled:"autofocusEnabled",timeBetweenScans:"timeBetweenScans",delayBetweenScanSuccess:"delayBetweenScanSuccess",autostart:"autostart",previewFitMode:"previewFitMode",poster:"poster",device:"device",formats:"formats",videoConstraints:"videoConstraints",torch:"torch",enable:"enable",tryHarder:"tryHarder"},outputs:{autostarted:"autostarted",autostarting:"autostarting",torchCompatible:"torchCompatible",scanSuccess:"scanSuccess",scanFailure:"scanFailure",scanError:"scanError",scanComplete:"scanComplete",camerasFound:"camerasFound",camerasNotFound:"camerasNotFound",permissionResponse:"permissionResponse",hasDevices:"hasDevices",deviceChange:"deviceChange"},decls:6,vars:3,consts:[[3,"poster"],["preview",""]],template:function(s,c){1&s&&(D.TgZ(0,"video",0,1)(2,"p"),D._uU(3," Your browser does not support this feature, please try to upgrade it. "),D.qZA(),D.TgZ(4,"p"),D._uU(5," Seu navegador n\xe3o suporta este recurso, por favor tente atualiz\xe1-lo. "),D.qZA()()),2&s&&(D.Udp("object-fit",c.previewFitMode),D.Q6J("poster",c.poster,D.LSH))},styles:["[_nghost-%COMP%]{display:block}video[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:contain}"],changeDetection:0})}return o})(),vu=(()=>{class o{static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=D.oAB({type:o});static#n=this.\u0275inj=D.cJS({imports:[l.ez,I.u5]})}return o})()},5806:(ft,Ie,C)=>{"use strict";C.d(Ie,{F:()=>S});var e=C(8645),l=C(2181),D=C(7398);class I{constructor(n,Z){this._id=this.uuid(),this._key=n,this._data=Z,this._timestamp=(new Date).getTime()}get id(){return this._id}get key(){return this._key}get data(){return this._data}get timestamp(){return this._timestamp}uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const Z=16*Math.random()|0;return("x"===n?Z:3&Z|8).toString(16)})}}class S{constructor(){this.separator=":",this.eventBus=new e.x}keyMatch(n,Z){const ue=(mt,Ge)=>"*"===mt||mt===Ge,se=this.separator,te=n.split(se),oe=Z.split(se),Re=Math.max(te.length,oe.length);for(let mt=0;mtthis.keyMatch(Z.key,n)),(0,D.U)(Z=>Z.metadata))}}},1835:(ft,Ie,C)=>{"use strict";C.d(Ie,{oj:()=>Z});var e=C(5879),l=C(3161),D=C(4060),I=C(6814);class w{constructor(re,ue,se){this.nodes=re,this.viewRef=ue,this.componentRef=se}}class n{constructor(re,ue,se,te,oe,ce,_e,Re,mt){this._viewContainerRef=re,this._renderer=ue,this._elementRef=se,this._injector=te,this._componentFactoryResolver=oe,this._ngZone=ce,this._applicationRef=_e,this._posService=Re,this._document=mt,this.onBeforeShow=new e.vpe,this.onShown=new e.vpe,this.onBeforeHide=new e.vpe,this.onHidden=new e.vpe,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(re){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(re),this}to(re){return this.container=re||this.container,this}position(re){return re?(this.attachment=re.attachment||this.attachment,this._elementRef=re.target||this._elementRef,this):this}provide(re){return this._providers.push(re),this}show(re={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(re.content,re.context,re.initialState);const ue=e.zs3.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(ue,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,re),this.container instanceof e.SBq&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const se=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!se)return;se.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(re.id?{id:re.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(re){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const ue=this._componentRef.location.nativeElement;return ue.parentNode?.removeChild(ue),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(re?{id:re}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(re){this.triggers=re.triggers||this.triggers,this._listenOpts.outsideClick=re.outsideClick,this._listenOpts.outsideEsc=re.outsideEsc,re.target=re.target||this._elementRef?.nativeElement;const ue=this._listenOpts.hide=()=>re.hide?re.hide():void this.hide(),se=this._listenOpts.show=oe=>{re.show?re.show(oe):this.show(oe),oe()};return this._renderer&&(this._unregisterListenersFn=(0,l.wo)(this._renderer,{target:re.target,triggers:re.triggers,show:se,hide:ue,toggle:oe=>{this.isShown?ue():se(oe)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(re,ue){return re&&ue&&(this._inlineViewRef=re.createEmbeddedView(ue)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const re=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=(0,l.Rg)(this._renderer,{targets:[re,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=(0,l.C)(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(re,ue,se){if(!re)return new w([]);if(re instanceof e.Rgc){if(this._viewContainerRef){const ce=this._viewContainerRef.createEmbeddedView(re,ue);return ce.markForCheck(),new w([ce.rootNodes],ce)}const oe=re.createEmbeddedView({});return this._applicationRef.attachView(oe),new w([oe.rootNodes],oe)}if("function"==typeof re){const oe=this._componentFactoryResolver.resolveComponentFactory(re),ce=e.zs3.create({providers:this._providers,parent:this._injector}),_e=oe.create(ce);return Object.assign(_e.instance,se),this._applicationRef.attachView(_e.hostView),new w([[_e.location.nativeElement]],_e.hostView,_e)}const te=this._renderer?[this._renderer.createText(`${re}`)]:[];return new w([te])}}let Z=(()=>{class ee{constructor(ue,se,te,oe,ce,_e){this._componentFactoryResolver=ue,this._ngZone=se,this._injector=te,this._posService=oe,this._applicationRef=ce,this._document=_e}createLoader(ue,se,te){return new n(se,te,ue,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static#e=this.\u0275fac=function(se){return new(se||ee)(e.LFG(e._Vd),e.LFG(e.R0b),e.LFG(e.zs3),e.LFG(D.sA),e.LFG(e.z2F),e.LFG(I.K0))};static#t=this.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9277:(ft,Ie,C)=>{"use strict";C.d(Ie,{Np:()=>vt,Y5:()=>Gi,kn:()=>Cs});var e=C(5879),l=C(2181),D=C(7398),I=C(8180),S=C(9773),w=C(3997);function Z(f){return f<0?Math.ceil(f)||0:Math.floor(f)}function ee(f){return"string"==typeof f}function re(f){return f instanceof Date||"[object Date]"===Object.prototype.toString.call(f)}function se(f){return f&&f.getTime&&!isNaN(f.getTime())}function te(f){return f instanceof Function||"[object Function]"===Object.prototype.toString.call(f)}function oe(f){return"number"==typeof f||"[object Number]"===Object.prototype.toString.call(f)}function ce(f){return f instanceof Array||"[object Array]"===Object.prototype.toString.call(f)}function _e(f,E){return Object.prototype.hasOwnProperty.call(f,E)}function Re(f){return null!=f&&"[object Object]"===Object.prototype.toString.call(f)}function Ge(f){return void 0===f}function Lt(f){const E=+f;let b=0;return 0!==E&&isFinite(E)&&(b=Z(E)),b}const je={},Tt={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function xt(f,E){const b=f.toLowerCase();let P=f;b in Tt&&(P=Tt[b]),je[b]=je[`${b}s`]=je[E]=P}function St(f){return ee(f)?je[f]||je[f.toLowerCase()]:void 0}const yt=0,un=1,Jt=2,tn=3,wn=4,Ln=5,Yn=6,ti=7,gi=8;function Rn(f,E,b){const P=`${Math.abs(f)}`;return(f>=0?b?"+":"":"-")+Math.pow(10,Math.max(0,E-P.length)).toString().substr(1)+P}const dt={},at={},Be=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function Ee(f,E,b,P){f&&(at[f]=P),E&&(at[E[0]]=function(){return Rn(P.apply(null,arguments),E[1],E[2])}),b&&(at[b]=function(H,Me){return Me.locale.ordinal(P.apply(null,arguments),f)})}function me(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}function tt(f,E,b){const P=new Date(Date.UTC.apply(null,arguments));return f<100&&f>=0&&isFinite(P.getUTCFullYear())&&P.setUTCFullYear(f),P}function he(f,E=0,b=1,P=0,H=0,Me=0,Et=0){const yn=new Date(f,E,b,P,H,Me,Et);return f<100&&f>=0&&isFinite(yn.getFullYear())&&yn.setFullYear(f),yn}function Ze(f,E=!1){return E?f.getUTCHours():f.getHours()}function rt(f,E=!1){return E?f.getUTCMinutes():f.getMinutes()}function bt(f,E=!1){return E?f.getUTCSeconds():f.getSeconds()}function Nt(f,E=!1){return E?f.getUTCMilliseconds():f.getMilliseconds()}function nn(f,E=!1){return E?f.getUTCDay():f.getDay()}function Dn(f,E=!1){return E?f.getUTCDate():f.getDate()}function Ot(f,E=!1){return E?f.getUTCMonth():f.getMonth()}function rn(f,E=!1){return E?f.getUTCFullYear():f.getFullYear()}function Ce(f,E){return!(!f||!E)&&J(f,E)&&Ot(f)===Ot(E)}function J(f,E){return!(!f||!E)&&rn(f)===rn(E)}function ae(f,E){return!(!f||!E)&&J(f,E)&&Ce(f,E)&&Dn(f)===Dn(E)}const Oe=/\d/,ot=/\d\d/,Se=/\d{3}/,Ft=/\d{4}/,lt=/[+-]?\d{6}/,Bt=/\d\d?/,Ut=/\d\d\d\d?/,fn=/\d\d\d\d\d\d?/,gn=/\d{1,3}/,An=/\d{1,4}/,jn=/[+-]?\d{1,6}/,ai=/\d+/,di=/[+-]?\d+/,Jn=/Z|[+-]\d\d(?::?\d\d)?/gi,qt=/[+-]?\d+(\.\d{1,3})?/,_t=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,G={};function U(f,E,b){G[f]=te(E)?E:function(P,H){return P&&b?b:E}}function ve(f,E){return _e(G,f)?G[f](!1,E):new RegExp(function Pe(f){return ut(f.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(E,b,P,H,Me)=>b||P||H||Me))}(f))}function ut(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const We={};function ze(f,E){const b=ee(f)?[f]:f;let P=E;if(oe(E)&&(P=function(H,Me,Et){return Me[E]=Lt(H),Et}),ce(b)&&te(P)){let H;for(H=0;H68?1900:2e3)}function ht(f){return st(f)?366:365}function st(f){return f%4==0&&f%100!=0||f%400==0}function It(f,E){if(isNaN(f)||isNaN(E))return NaN;const b=function n(f,E){return(f%E+E)%E}(E,12);return 1===b?st(f+(E-b)/12)?29:28:31-b%7%2}const _n={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function En(f,E){const b=Object.assign({},_n,E),P=f.getFullYear()+(b.year||0),H=f.getMonth()+(b.month||0);let Me=f.getDate()+(b.day||0);return b.month&&!b.day&&(Me=Math.min(Me,It(P,H))),he(P,H,Me,f.getHours()+(b.hour||0),f.getMinutes()+(b.minute||0),f.getSeconds()+(b.seconds||0))}function ni(f,E){return oe(E)?E:f}function fr(f,E,b){const P=Math.min(Dn(f),It(rn(f),E));return b?f.setUTCMonth(E,P):f.setMonth(E,P),f}function Ji(f,E,b){return b?f.setUTCDate(E):f.setDate(E),f}function _i(f){return new Date(f.getTime())}function bo(f,E,b){const P=_i(f);switch(E){case"year":fr(P,0,b);case"quarter":case"month":Ji(P,1,b);case"week":case"isoWeek":case"day":case"date":!function Kr(f,E,b){b?f.setUTCHours(E):f.setHours(E)}(P,0,b);case"hours":!function vr(f,E,b){b?f.setUTCMinutes(E):f.setMinutes(E)}(P,0,b);case"minutes":!function Bi(f,E,b){b?f.setUTCSeconds(E):f.setSeconds(E)}(P,0,b);case"seconds":!function co(f,E,b){b?f.setUTCMilliseconds(E):f.setMilliseconds(E)}(P,0,b)}return"week"===E&&function oa(f,E,b={}){mr(f,E-yi(f,b.locale,b.isUTC),"day")}(P,0,{isUTC:b}),"isoWeek"===E&&function _o(f,E,b={}){const P=function Ma(f,E=sr()){return ee(f)?E.weekdaysParse(f)%7||7:oe(f)&&isNaN(f)?null:f}(E,b.locale);zr(f,function Qi(f,E){return nn(f,E)}(f)%7?P:P-7)}(P,1),"quarter"===E&&fr(P,3*Math.floor(Ot(P,b)/3),b),P}function pr(f,E,b){let P=E;return"date"===P&&(P="day"),function vs(f,E,b,P){return bs(f,hr(E,b),-1,P)}(mr(bo(f,P,b),1,"isoWeek"===P?"week":P,b),1,"milliseconds",b)}function $n(f,E){const b=+bo(f,"day",E),P=+bo(f,"year",E);return Math.round((b-P)/864e5)+1}function Fr(f,E,b){const P=E-b+7;return-(tt(f,0,P).getUTCDay()-E+7)%7+P-1}function ho(f,E,b,P){const H=Fr(rn(f,P),E,b),Me=Math.floor(($n(f,P)-H-1)/7)+1;let Et,yn;return Me<1?(yn=rn(f,P)-1,Et=Me+to(yn,E,b)):Me>to(rn(f,P),E,b)?(Et=Me-to(rn(f,P),E,b),yn=rn(f,P)+1):(yn=rn(f,P),Et=Me),{week:Et,year:yn}}function to(f,E,b){const P=Fr(f,E,b),H=Fr(f+1,E,b);return(ht(f)-P+H)/7}const yr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Gs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ba="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),So="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ws="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ds={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Jr=_t,ga=_t;class kr{constructor(E){E&&this.set(E)}set(E){let b;for(b in E){if(!E.hasOwnProperty(b))continue;const P=E[b];this[te(P)?b:`_${b}`]=P}this._config=E}calendar(E,b,P){const H=this._calendar[E]||this._calendar.sameElse;return te(H)?H.call(null,b,P):H}longDateFormat(E){const b=this._longDateFormat[E],P=this._longDateFormat[E.toUpperCase()];return b||!P?b:(this._longDateFormat[E]=P.replace(/MMMM|MM|DD|dddd/g,function(H){return H.slice(1)}),this._longDateFormat[E])}get invalidDate(){return this._invalidDate}set invalidDate(E){this._invalidDate=E}ordinal(E,b){return this._ordinal.replace("%d",E.toString(10))}preparse(E,b){return E}getFullYear(E,b=!1){return rn(E,b)}postformat(E){return E}relativeTime(E,b,P,H){const Me=this._relativeTime[P];return te(Me)?Me(E,b,P,H):Me.replace(/%d/i,E.toString(10))}pastFuture(E,b){const P=this._relativeTime[E>0?"future":"past"];return te(P)?P(b):P.replace(/%s/i,b)}months(E,b,P=!1){if(!E)return ce(this._months)?this._months:this._months.standalone;if(ce(this._months))return this._months[Ot(E,P)];const H=(this._months.isFormat||yr).test(b)?"format":"standalone";return this._months[H][Ot(E,P)]}monthsShort(E,b,P=!1){if(!E)return ce(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(ce(this._monthsShort))return this._monthsShort[Ot(E,P)];const H=yr.test(b)?"format":"standalone";return this._monthsShort[H][Ot(E,P)]}monthsParse(E,b,P){let H,Me,Et;if(this._monthsParseExact)return this.handleMonthStrictParse(E,b,P);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Et=0;Et<12;Et++){if(H=new Date(Date.UTC(2e3,Et)),P&&!this._longMonthsParse[Et]){const yn=this.months(H,"",!0).replace(".",""),Gn=this.monthsShort(H,"",!0).replace(".","");this._longMonthsParse[Et]=new RegExp(`^${yn}$`,"i"),this._shortMonthsParse[Et]=new RegExp(`^${Gn}$`,"i")}if(!P&&!this._monthsParse[Et]&&(Me=`^${this.months(H,"",!0)}|^${this.monthsShort(H,"",!0)}`,this._monthsParse[Et]=new RegExp(Me.replace(".",""),"i")),P&&"MMMM"===b&&this._longMonthsParse[Et].test(E)||P&&"MMM"===b&&this._shortMonthsParse[Et].test(E)||!P&&this._monthsParse[Et].test(E))return Et}}monthsRegex(E){return this._monthsParseExact?(_e(this,"_monthsRegex")||this.computeMonthsParse(),E?this._monthsStrictRegex:this._monthsRegex):(_e(this,"_monthsRegex")||(this._monthsRegex=ga),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(E){return this._monthsParseExact?(_e(this,"_monthsRegex")||this.computeMonthsParse(),E?this._monthsShortStrictRegex:this._monthsShortRegex):(_e(this,"_monthsShortRegex")||(this._monthsShortRegex=Jr),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)}week(E,b){return ho(E,this._week.dow,this._week.doy,b).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(E,b,P){if(!E)return ce(this._weekdays)?this._weekdays:this._weekdays.standalone;if(ce(this._weekdays))return this._weekdays[nn(E,P)];const H=this._weekdays.isFormat.test(b)?"format":"standalone";return this._weekdays[H][nn(E,P)]}weekdaysMin(E,b,P){return E?this._weekdaysMin[nn(E,P)]:this._weekdaysMin}weekdaysShort(E,b,P){return E?this._weekdaysShort[nn(E,P)]:this._weekdaysShort}weekdaysParse(E,b,P){let H,Me;if(this._weekdaysParseExact)return this.handleWeekStrictParse(E,b,P);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),H=0;H<7;H++){const Et=zr(new Date(Date.UTC(2e3,1)),H,null,!0);if(P&&!this._fullWeekdaysParse[H]&&(this._fullWeekdaysParse[H]=new RegExp(`^${this.weekdays(Et,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[H]=new RegExp(`^${this.weekdaysShort(Et,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[H]=new RegExp(`^${this.weekdaysMin(Et,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[H]||(Me=`^${this.weekdays(Et,"",!0)}|^${this.weekdaysShort(Et,"",!0)}|^${this.weekdaysMin(Et,"",!0)}`,this._weekdaysParse[H]=new RegExp(Me.replace(".",""),"i")),!(ce(this._fullWeekdaysParse)&&ce(this._shortWeekdaysParse)&&ce(this._minWeekdaysParse)&&ce(this._weekdaysParse)))return;if(P&&"dddd"===b&&this._fullWeekdaysParse[H].test(E))return H;if(P&&"ddd"===b&&this._shortWeekdaysParse[H].test(E))return H;if(P&&"dd"===b&&this._minWeekdaysParse[H].test(E))return H;if(!P&&this._weekdaysParse[H].test(E))return H}}weekdaysRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysStrictRegex:this._weekdaysRegex):(_e(this,"_weekdaysRegex")||(this._weekdaysRegex=_t),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_e(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_t),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_e(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_t),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(E){return"p"===E.toLowerCase().charAt(0)}meridiem(E,b,P){return E>11?P?"pm":"PM":P?"am":"AM"}formatLongDate(E){this._longDateFormat=this._longDateFormat?this._longDateFormat:Ds;const b=this._longDateFormat[E],P=this._longDateFormat[E.toUpperCase()];return b||!P?b:(this._longDateFormat[E]=P.replace(/MMMM|MM|DD|dddd/g,H=>H.slice(1)),this._longDateFormat[E])}handleMonthStrictParse(E,b,P){const H=E.toLocaleLowerCase();let Me,Et,yn;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Me=0;Me<12;++Me)yn=new Date(2e3,Me),this._shortMonthsParse[Me]=this.monthsShort(yn,"").toLocaleLowerCase(),this._longMonthsParse[Me]=this.months(yn,"").toLocaleLowerCase();return P?"MMM"===b?(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:null):(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:null):"MMM"===b?(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:null)):(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:null))}handleWeekStrictParse(E,b,P){let H;const Me=E.toLocaleLowerCase();if(!this._weekdaysParse){let Et;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Et=0;Et<7;++Et){const yn=zr(new Date(Date.UTC(2e3,1)),Et,null,!0);this._minWeekdaysParse[Et]=this.weekdaysMin(yn).toLocaleLowerCase(),this._shortWeekdaysParse[Et]=this.weekdaysShort(yn).toLocaleLowerCase(),this._weekdaysParse[Et]=this.weekdays(yn,"").toLocaleLowerCase()}}if(ce(this._weekdaysParse)&&ce(this._shortWeekdaysParse)&&ce(this._minWeekdaysParse))return P?"dddd"===b?(H=this._weekdaysParse.indexOf(Me),-1!==H?H:null):"ddd"===b?(H=this._shortWeekdaysParse.indexOf(Me),-1!==H?H:null):(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null):"dddd"===b?(H=this._weekdaysParse.indexOf(Me),-1!==H||(H=this._shortWeekdaysParse.indexOf(Me),-1!==H)?H:(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null)):"ddd"===b?(H=this._shortWeekdaysParse.indexOf(Me),-1!==H||(H=this._weekdaysParse.indexOf(Me),-1!==H)?H:(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null)):(H=this._minWeekdaysParse.indexOf(Me),-1!==H||(H=this._weekdaysParse.indexOf(Me),-1!==H)?H:(H=this._shortWeekdaysParse.indexOf(Me),-1!==H?H:null))}computeMonthsParse(){const E=[],b=[],P=[];let H,Me;for(Me=0;Me<12;Me++)H=new Date(2e3,Me),E.push(this.monthsShort(H,"")),b.push(this.months(H,"")),P.push(this.months(H,"")),P.push(this.monthsShort(H,""));for(E.sort(oo),b.sort(oo),P.sort(oo),Me=0;Me<12;Me++)E[Me]=ut(E[Me]),b[Me]=ut(b[Me]);for(Me=0;Me<24;Me++)P[Me]=ut(P[Me]);this._monthsRegex=new RegExp(`^(${P.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${b.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${E.join("|")})`,"i")}computeWeekdaysParse(){const E=[],b=[],P=[],H=[];let Me;for(Me=0;Me<7;Me++){const Et=zr(new Date(Date.UTC(2e3,1)),Me,null,!0),yn=this.weekdaysMin(Et),Gn=this.weekdaysShort(Et),Rr=this.weekdays(Et);E.push(yn),b.push(Gn),P.push(Rr),H.push(yn),H.push(Gn),H.push(Rr)}for(E.sort(oo),b.sort(oo),P.sort(oo),H.sort(oo),Me=0;Me<7;Me++)b[Me]=ut(b[Me]),P[Me]=ut(P[Me]),H[Me]=ut(H[Me]);this._weekdaysRegex=new RegExp(`^(${H.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${P.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${b.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${E.join("|")})`,"i")}}function oo(f,E){return E.length-f.length}const Aa={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:Ds,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Gs,monthsShort:Ba,week:{dow:0,doy:6},weekdays:xl,weekdaysMin:Ws,weekdaysShort:So,meridiemParse:/[ap]\.?m?\.?/i};function qi(f,E,b){const P=Math.min(f.length,E.length),H=Math.abs(f.length-E.length);let Et,Me=0;for(Et=0;Et0;){if(b=io(H.slice(0,Me).join("-")),b)return b;if(E&&E.length>=Me&&qi(H,E,!0)>=Me-1)break;Me--}P++}return null}(ce(f)?f:[f]):Co}const Ia=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],ta=Ia.reduce((f,E)=>(f[E]=!0,f),{});function Ae(f){return f<0?Math.floor(f):Math.ceil(f)}function le(f){return 4800*f/146097}function Qe(f){return 146097*f/4800}let Ht=Math.round;const Qn_ss=44,Qn_s=45,Qn_m=45,Qn_h=22,Qn_d=26,Qn_M=11;function Ni(f,E,b,P,H){return H.relativeTime(E||1,!!b,f,P)}class sc{constructor(E,b={}){this._data={},this._locale=sr(),this._locale=b&&b._locale||sr();const H=E.year||0,Me=E.quarter||0,Et=E.month||0,yn=E.week||0,Gn=E.day||0,Rr=E.hours||0,Ts=E.minutes||0,pa=E.seconds||0,Ea=E.milliseconds||0;return this._isValid=function na(f){if(Object.keys(f).some(P=>P in ta&&null===f[P]||isNaN(f[P])))return!1;let b=!1;for(let P=0;P=0&&b>=0&&P>=0||E<=0&&b<=0&&P<=0||(E+=864e5*Ae(Qe(P)+b),b=0,P=0),H.milliseconds=E%1e3;const Me=Z(E/1e3);H.seconds=Me%60;const Et=Z(Me/60);H.minutes=Et%60;const yn=Z(Et/60);H.hours=yn%24,b+=Z(yn/24);const Gn=Z(le(b));P+=Gn,b-=Ae(Qe(Gn));const Rr=Z(P/12);return P%=12,H.day=b,H.month=P,H.year=Rr,f}(this)}isValid(){return this._isValid}humanize(E){if(!this.isValid())return this.localeData().invalidDate;const b=this.localeData();let P=function Zo(f,E,b){const P=hr(f).abs(),H=Ht(P.as("s")),Me=Ht(P.as("m")),Et=Ht(P.as("h")),yn=Ht(P.as("d")),Gn=Ht(P.as("M")),Rr=Ht(P.as("y")),Ts=H<=Qn_ss&&["s",H]||H0,b])}(this,!E,b);return E&&(P=b.pastFuture(+this,P)),b.postformat(P)}localeData(){return this._locale}locale(E){return E?(this._locale=sr(E)||this._locale,this):this._locale._abbr}abs(){const E=Math.abs,b=this._data;return this._milliseconds=E(this._milliseconds),this._days=E(this._days),this._months=E(this._months),b.milliseconds=E(b.milliseconds),b.seconds=E(b.seconds),b.minutes=E(b.minutes),b.hours=E(b.hours),b.month=E(b.month),b.year=E(b.year),this}as(E){if(!this.isValid())return NaN;let b,P;const H=this._milliseconds,Me=St(E);if("month"===Me||"year"===Me)return b=this._days+H/864e5,P=this._months+le(b),"month"===Me?P:P/12;switch(b=this._days+Math.round(Qe(this._months)),Me){case"week":return b/7+H/6048e5;case"day":return b+H/864e5;case"hours":return 24*b+H/36e5;case"minutes":return 1440*b+H/6e4;case"seconds":return 86400*b+H/1e3;case"milliseconds":return Math.floor(864e5*b)+H;default:throw new Error(`Unknown unit ${Me}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Lt(this._months/12):NaN}}function Tl(f){if(null==f._isValid){const E=Yt(f),b=Array.prototype.some.call(E.parsedDateParts,function(H){return null!=H});let P=!isNaN(f._d&&f._d.getTime())&&E.overflow<0&&!E.empty&&!E.invalidMonth&&!E.invalidWeekday&&!E.weekdayMismatch&&!E.nullInput&&!E.invalidFormat&&!E.userInvalidated&&(!E.meridiem||E.meridiem&&b);if(f._strict&&(P=P&&0===E.charsLeftOver&&0===E.unusedTokens.length&&void 0===E.bigHour),null!=Object.isFrozen&&Object.isFrozen(f))return P;f._isValid=P}return f._isValid}function Dl(f,E){return f._d=new Date(NaN),Object.assign(Yt(f),E||{userInvalidated:!0}),f}const kc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,El=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wa=/Z|[+-]\d\d(?::?\d\d)?/,Xo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],Pr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ms=/^\/?Date\((\-?\d+)/i,As={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},qr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Bs(f){if(!ee(f._i))return f;const E=f._i,b=kc.exec(E)||El.exec(E);let P,H,Me,Et,yn,Gn;if(!b)return f._isValid=!1,f;for(yn=0,Gn=Xo.length;ynE.formatLongDate(Et)||Et;for(H.lastIndex=0;P>=0&&H.test(b);)b=b.replace(H,Me),H.lastIndex=0,P-=1;return b}function ns(f,E,b){return f??E??b}function Os(f){const E=[];let b,P,H;if(f._d)return f;const Me=function vc(f){const E=new Date;return f._useUTC?[E.getUTCFullYear(),E.getUTCMonth(),E.getUTCDate()]:[E.getFullYear(),E.getMonth(),E.getDate()]}(f);for(f._w&&null==f._a[Jt]&&null==f._a[un]&&function Is(f){let E,b,P,H,Me,Et,yn;const Gn=f._w;if(null!=Gn.GG||null!=Gn.W||null!=Gn.E)H=1,Me=4,E=ns(Gn.GG,f._a[yt],ho(new Date,1,4).year),b=ns(Gn.W,1),P=ns(Gn.E,1),(P<1||P>7)&&(yn=!0);else{H=f._locale._week.dow,Me=f._locale._week.doy;const Rr=ho(new Date,H,Me);E=ns(Gn.gg,f._a[yt],Rr.year),b=ns(Gn.w,Rr.week),null!=Gn.d?(P=Gn.d,(P<0||P>6)&&(yn=!0)):null!=Gn.e?(P=Gn.e+H,(Gn.e<0||Gn.e>6)&&(yn=!0)):P=H}b<1||b>to(E,H,Me)?Yt(f)._overflowWeeks=!0:null!=yn?Yt(f)._overflowWeekday=!0:(Et=function uo(f,E,b,P,H){const yn=1+7*(E-1)+(7+b-P)%7+Fr(f,P,H);let Gn,Rr;return yn<=0?(Gn=f-1,Rr=ht(Gn)+yn):yn>ht(f)?(Gn=f+1,Rr=yn-ht(f)):(Gn=f,Rr=yn),{year:Gn,dayOfYear:Rr}}(E,b,P,H,Me),f._a[yt]=Et.year,f._dayOfYear=Et.dayOfYear)}(f),null!=f._dayOfYear&&(H=ns(f._a[yt],Me[yt]),(f._dayOfYear>ht(H)||0===f._dayOfYear)&&(Yt(f)._overflowDayOfYear=!0),P=new Date(Date.UTC(H,0,f._dayOfYear)),f._a[un]=P.getUTCMonth(),f._a[Jt]=P.getUTCDate()),b=0;b<3&&null==f._a[b];++b)f._a[b]=E[b]=Me[b];for(;b<7;b++)f._a[b]=E[b]=null==f._a[b]?2===b?1:0:f._a[b];24===f._a[tn]&&0===f._a[wn]&&0===f._a[Ln]&&0===f._a[Yn]&&(f._nextDay=!0,f._a[tn]=0),f._d=(f._useUTC?tt:he).apply(null,E);const Et=f._useUTC?f._d.getUTCDay():f._d.getDay();return null!=f._tzm&&f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),f._nextDay&&(f._a[tn]=24),f._w&&typeof f._w.d<"u"&&f._w.d!==Et&&(Yt(f).weekdayMismatch=!0),f}function Za(f){let E;const b=f._a;return b&&-2===Yt(f).overflow&&(E=b[un]<0||b[un]>11?un:b[Jt]<1||b[Jt]>It(b[yt],b[un])?Jt:b[tn]<0||b[tn]>24||24===b[tn]&&(0!==b[wn]||0!==b[Ln]||0!==b[Yn])?tn:b[wn]<0||b[wn]>59?wn:b[Ln]<0||b[Ln]>59?Ln:b[Yn]<0||b[Yn]>999?Yn:-1,Yt(f)._overflowDayOfYear&&(EJt)&&(E=Jt),Yt(f)._overflowWeeks&&-1===E&&(E=ti),Yt(f)._overflowWeekday&&-1===E&&(E=gi),Yt(f).overflow=E),f}const za="ISO_8601",$l="RFC_2822";function Tr(f){if(f._f===za)return Bs(f);if(f._f===$l)return ja(f);if(f._a=[],Yt(f).empty=!0,ce(f._f)||!f._i&&0!==f._i)return f;let E=f._i.toString(),b=0;const P=E.length,H=gs(f._f,f._locale).match(Be)||[];let Me,Et,yn,Gn;for(Me=0;Me0&&Yt(f).unusedInput.push(Gn),E=E.slice(E.indexOf(yn)+yn.length),b+=yn.length),at[Et]?(yn?Yt(f).empty=!1:Yt(f).unusedTokens.push(Et),Te(Et,yn,f)):f._strict&&!yn&&Yt(f).unusedTokens.push(Et);return Yt(f).charsLeftOver=P-b,E.length>0&&Yt(f).unusedInput.push(E),f._a[tn]<=12&&!0===Yt(f).bigHour&&f._a[tn]>0&&(Yt(f).bigHour=void 0),Yt(f).parsedDateParts=f._a.slice(0),Yt(f).meridiem=f._meridiem,f._a[tn]=function Lc(f,E,b){let P=E;if(null==b)return P;if(null!=f.meridiemHour)return f.meridiemHour(P,b);if(null==f.isPM)return P;const H=f.isPM(b);return H&&P<12&&(P+=12),!H&&12===P&&(P=0),P}(f._locale,f._a[tn],f._meridiem),Os(f),Za(f)}function xa(f){const E=Za(function Ga(f){let E=f._i;const b=f._f;return f._locale=f._locale||sr(f._l),null===E||void 0===b&&""===E?Dl(f,{nullInput:!0}):(ee(E)&&(f._i=E=f._locale.preparse(E,b)),re(E)?(f._d=_i(E),f):(ce(b)?function Kl(f){let E,b,P,H,Me;if(!f._f||0===f._f.length)return Yt(f).invalidFormat=!0,Dl(f);for(Me=0;Meee(P)?parseInt(P,10):P),Os(f)}else if(Re(E))!function Rs(f){if(f._d)return f;const E=f._i;if(Re(E)){const b=function Zt(f){const E={};let b,P;for(P in f)_e(f,P)&&(b=St(P),b&&(E[b]=f[P]));return E}(E);f._a=[b.year,b.month,b.day,b.hours,b.minutes,b.seconds,b.milliseconds].map(P=>ee(P)?parseInt(P,10):P)}return Os(f)}(f);else{if(!oe(E))return Dl(f);f._d=new Date(E)}}(f),Tl(f)||(f._d=null),f))}(f));return E._d=new Date(null!=E._d?E._d.getTime():NaN),Tl(Object.assign({},E,{_isValid:null}))||(E._d=new Date(NaN)),E}function ra(f,E,b,P,H){return re(f)?f:function bc(f,E,b,P,H){const Me={};let Et=f;return(Re(Et)&&function mt(f){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(f).length;let E;for(E in f)if(f.hasOwnProperty(E))return!1;return!0}(Et)||ce(Et)&&0===Et.length)&&(Et=void 0),Me._useUTC=Me._isUTC=H,Me._l=b,Me._i=Et,Me._f=E,Me._strict=P,xa(Me)}(f,E,b,P,H)._d}function Al(f){return f instanceof Date?new Date(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()):null}function is(f){return f<0?-1*Math.round(-1*f):Math.round(f)}function ro(f,E,b="milliseconds"){return!(!f||!E)&&("milliseconds"===b?f.valueOf()>E.valueOf():E.valueOf()=3&&f%100<=10?3:f%100>=11?4:5},ko={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},rs=function(f){return function(E,b){const P=dl(E);let H=ko[f][dl(E)];return 2===P&&(H=H[b?0:1]),H.replace(/%d/i,E.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),rs("s"),rs("s"),rs("m"),rs("m"),rs("h"),rs("h"),rs("d"),rs("d"),rs("M"),rs("M"),rs("y"),rs("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const lc="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),Ei="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(f,E){let b,P=[];for(b=0;b<12;b++)P[b]=new RegExp("^"+f[b]+"$|^"+E[b]+"$","i")})(lc,Ei),function(f){let E,b=[];for(E=0;E<12;E++)b[E]=new RegExp("^"+f[E]+"$","i")}(Ei),function(f){let E,b=[];for(E=0;E<12;E++)b[E]=new RegExp("^"+f[E]+"$","i")}(lc),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const pe={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:f=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===f,meridiem:(f,E,b)=>f<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(f,E){const b=pe.longDateFormat[E]?pe.longDateFormat[E]:E;return-1!==b.indexOf("YYYY",b.length-4)?f.substr(0,f.length-4)+(parseInt(f.substr(f.length-4),10)-543):f},getFullYear:(f,E=!1)=>543+(E?f.getUTCFullYear():f.getFullYear())};function Oi(f){return function(E){return f+"\u043e"+(11===Ze(E)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),Oi("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),Oi("[\u0417\u0430\u0432\u0442\u0440\u0430 "),Oi("[\u0412\u0447\u043e\u0440\u0430 "),Oi("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\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".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");var Zs=C(4060),Uc=C(6223),ls=C(5619),Gd=C(1954),Sd=C(2631);const Ad=new class Eu extends Sd.v{}(class _c extends Gd.o{constructor(E,b){super(E,b),this.scheduler=E,this.work=b}schedule(E,b=0){return b>0?super.schedule(E,b):(this.delay=b,this.state=E,this.scheduler.flush(this),this)}execute(E,b){return b>0||this.closed?super.execute(E,b):this._execute(E,b)}requestAsyncId(E,b,P=0){return null!=P&&P>0||null==P&&this.delay>0?super.requestAsyncId(E,b,P):(E.flush(this),0)}});var Pl=C(5592),ua=C(3093),Or=C(6424);class Vc extends ls.X{constructor(E,b,P){super(E),b.pipe((0,ua.Q)(Ad)).pipe((0,Or.R)((Et,yn)=>yn?P(Et,yn):Et,E)).subscribe(Et=>this.next(Et))}}class zo extends Pl.y{constructor(E,b,P){super(),this._dispatcher=E,this._reducer=b,this.source=P}select(E){return(this.source?.pipe((0,D.U)(E))||(new Pl.y).pipe((0,D.U)(E))).pipe((0,w.x)())}lift(E){const b=new zo(this._dispatcher,this._reducer,this);return b.operator=E,b}dispatch(E){this._dispatcher.next(E)}next(E){this._dispatcher.next(E)}error(E){this._dispatcher.error(E)}complete(){}}var zi=C(6814);function Nl(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function La(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(H.minuteStep))}),e._UZ(2,"span",2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canIncrementMinutes||!b.isEditable)}}function $d(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0"),e.qZA())}function mc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(H.secondsStep))}),e._UZ(2,"span",2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canIncrementSeconds||!b.isEditable)}}function jc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function _l(f,E){1&f&&e._UZ(0,"td")}function Su(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0:\xa0"),e.qZA())}function nu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4)(1,"input",5),e.NdJ("wheel",function(H){e.CHM(b);const Me=e.oxw();return Me.prevDef(H),e.KtG(Me.changeMinutes(Me.minuteStep*Me.wheelSign(H),"wheel"))})("keydown.ArrowUp",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(H.minuteStep,"key"))})("keydown.ArrowDown",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(-H.minuteStep,"key"))})("change",function(H){e.CHM(b);const Me=e.oxw();return e.KtG(Me.updateMinutes(H.target))}),e.qZA()()}if(2&f){const b=e.oxw();e.ekj("has-error",b.invalidMinutes),e.xp6(1),e.ekj("is-invalid",b.invalidMinutes),e.Q6J("placeholder",b.minutesPlaceholder)("readonly",b.readonlyInput)("disabled",b.disabled)("value",b.minutes),e.uIk("aria-label",b.labelMinutes)}}function Pa(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0:\xa0"),e.qZA())}function ao(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4)(1,"input",5),e.NdJ("wheel",function(H){e.CHM(b);const Me=e.oxw();return Me.prevDef(H),e.KtG(Me.changeSeconds(Me.secondsStep*Me.wheelSign(H),"wheel"))})("keydown.ArrowUp",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(H.secondsStep,"key"))})("keydown.ArrowDown",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(-H.secondsStep,"key"))})("change",function(H){e.CHM(b);const Me=e.oxw();return e.KtG(Me.updateSeconds(H.target))}),e.qZA()()}if(2&f){const b=e.oxw();e.ekj("has-error",b.invalidSeconds),e.xp6(1),e.ekj("is-invalid",b.invalidSeconds),e.Q6J("placeholder",b.secondsPlaceholder)("readonly",b.readonlyInput)("disabled",b.disabled)("value",b.seconds),e.uIk("aria-label",b.labelSeconds)}}function Zc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Go(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"button",8),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.toggleMeridian())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.isEditable||!b.canToggleMeridian),e.Q6J("disabled",!b.isEditable||!b.canToggleMeridian),e.xp6(1),e.hij("",b.meridian," ")}}function Kd(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function zc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(-H.minuteStep))}),e._UZ(2,"span",7),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canDecrementMinutes||!b.isEditable)}}function Jd(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0"),e.qZA())}function nl(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(-H.secondsStep))}),e._UZ(2,"span",7),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canDecrementSeconds||!b.isEditable)}}function Gc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function qd(f,E){1&f&&e._UZ(0,"td")}let ml=(()=>{class f{static#e=this.WRITE_VALUE="[timepicker] write value from ng model";static#t=this.CHANGE_HOURS="[timepicker] change hours";static#n=this.CHANGE_MINUTES="[timepicker] change minutes";static#i=this.CHANGE_SECONDS="[timepicker] change seconds";static#r=this.SET_TIME_UNIT="[timepicker] set time unit";static#o=this.UPDATE_CONTROLS="[timepicker] update controls";writeValue(b){return{type:f.WRITE_VALUE,payload:b}}changeHours(b){return{type:f.CHANGE_HOURS,payload:b}}changeMinutes(b){return{type:f.CHANGE_MINUTES,payload:b}}changeSeconds(b){return{type:f.CHANGE_SECONDS,payload:b}}setTime(b){return{type:f.SET_TIME_UNIT,payload:b}}updateControls(b){return{type:f.UPDATE_CONTROLS,payload:b}}static#s=this.\u0275fac=function(P){return new(P||f)};static#a=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const Oc=10,Au=24,iu=12,pi=60,Wc=60;function Xr(f){return!(!f||f instanceof Date&&isNaN(f.getHours()))&&("string"!=typeof f||Xr(new Date(f)))}function Mc(f,E){return!(f.min&&Ef.max)}function No(f){return typeof f>"u"?NaN:"number"==typeof f?f:parseInt(f,Oc)}function Ye(f,E=!1){const b=No(f);return isNaN(b)||b<0||b>(E?iu:Au)?NaN:b}function it(f){const E=No(f);return isNaN(E)||E<0||E>pi?NaN:E}function pt(f){const E=No(f);return isNaN(E)||E<0||E>Wc?NaN:E}function sn(f){return"string"==typeof f?new Date(f):f}function Bn(f,E){if(!f)return Bn(Hn(new Date,0,0,0),E);if(!E)return f;let b=f.getHours(),P=f.getMinutes(),H=f.getSeconds();return E.hour&&(b+=No(E.hour)),E.minute&&(P+=No(E.minute)),E.seconds&&(H+=No(E.seconds)),Hn(f,b,P,H)}function ri(f,E){let b=Ye(E.hour);const P=it(E.minute),H=pt(E.seconds)||0;return E.isPM&&12!==b&&(b+=iu),f?isNaN(b)||isNaN(P)?f:Hn(f,b,P,H):isNaN(b)||isNaN(P)?f:Hn(new Date,b,P,H)}function Hn(f,E,b,P){const H=new Date(f.getFullYear(),f.getMonth(),f.getDate(),E,b,P,f.getMilliseconds());return H.setFullYear(f.getFullYear()),H.setMonth(f.getMonth()),H.setDate(f.getDate()),H}function hi(f){const E=f.toString();return E.length>1?E:`0${E}`}function Ci(f,E){return!isNaN(Ye(f,E))}function Hi(f){return!isNaN(it(f))}function Wr(f){return!isNaN(pt(f))}function Fl(f,E="0",b="0",P){return Ci(f,P)&&Hi(E)&&Wr(b)}function ec(f,E){return!(f.readonlyInput||f.disabled||E&&("wheel"===E.source&&!f.mousewheel||"key"===E.source&&!f.arrowkeys))}function Kc(f){const{hourStep:E,minuteStep:b,secondsStep:P,readonlyInput:H,disabled:Me,mousewheel:Et,arrowkeys:yn,showSpinners:Gn,showMeridian:Rr,showSeconds:Ts,meridians:pa,min:Ea,max:Lh}=f;return{hourStep:E,minuteStep:b,secondsStep:P,readonlyInput:H,disabled:Me,mousewheel:Et,arrowkeys:yn,showSpinners:Gn,showMeridian:Rr,showSeconds:Ts,meridians:pa,min:Ea,max:Lh}}let Cc=(()=>{class f{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})();const Ic={value:void 0,config:new Cc,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function cs(f=Ic,E){switch(E.type){case ml.WRITE_VALUE:return Object.assign({},f,{value:E.payload});case ml.CHANGE_HOURS:{if(!ec(f.config,E.payload)||!function $c(f,E){return!(!f.step||f.step>0&&!E.canIncrementHours||f.step<0&&!E.canDecrementHours)}(E.payload,f.controls))return f;const b=Bn(f.value,{hour:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.CHANGE_MINUTES:{if(!ec(f.config,E.payload)||!function Da(f,E){return!(!f.step||f.step>0&&!E.canIncrementMinutes||f.step<0&&!E.canDecrementMinutes)}(E.payload,f.controls))return f;const b=Bn(f.value,{minute:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.CHANGE_SECONDS:{if(!ec(f.config,E.payload)||!function gl(f,E){return!(!f.step||f.step>0&&!E.canIncrementSeconds||f.step<0&&!E.canDecrementSeconds)}(E.payload,f.controls))return f;const b=Bn(f.value,{seconds:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.SET_TIME_UNIT:{if(!ec(f.config))return f;const b=ri(f.value,E.payload);return Object.assign({},f,{value:b})}case ml.UPDATE_CONTROLS:{const b=function Qd(f,E){const{min:H,max:Me,hourStep:Et,minuteStep:yn,secondsStep:Gn,showSeconds:Rr}=E,Ts={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!f)return Ts;if(Me){const pa=Bn(f,{hour:Et});if(Ts.canIncrementHours=Me>pa&&f.getHours()+Et<24,!Ts.canIncrementHours){const Ea=Bn(f,{minute:yn});Ts.canIncrementMinutes=Rr?Me>Ea:Me>=Ea}if(!Ts.canIncrementMinutes){const Ea=Bn(f,{seconds:Gn});Ts.canIncrementSeconds=Me>=Ea}f.getHours()<12&&(Ts.canToggleMeridian=Bn(f,{hour:12})=12&&(Ts.canToggleMeridian=Bn(f,{hour:-12})>H)}return Ts}(f.value,E.payload),P={value:f.value,config:E.payload,controls:b};return f.config.showMeridian!==P.config.showMeridian&&f.value&&(P.value=new Date(f.value)),Object.assign({},f,P)}default:return f}}let gc=(()=>{class f extends zo{constructor(){const b=new ls.X({type:"[mini-ngrx] dispatcher init"});super(b,cs,new Vc(Ic,b,cs))}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const vl={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>Yl),multi:!0};let Yl=(()=>{class f{constructor(b,P,H,Me){this._cd=P,this._store=H,this._timepickerActions=Me,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new e.vpe,this.meridianChange=new e.vpe,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=b,Object.assign(this,this.config),this.timepickerSub=H.select(Et=>Et.value).subscribe(Et=>{this._renderTime(Et),this.onChange(Et),this._store.dispatch(this._timepickerActions.updateControls(Kc(this)))}),H.select(Et=>Et.controls).subscribe(Et=>{const yn=Fl(this.hours,this.minutes,this.seconds,this.isPM()),Gn=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||yn;this.isValid.emit(Gn),Object.assign(this,Et),P.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(b){b.preventDefault()}wheelSign(b){return-1*Math.sign(b.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(Kc(this)))}changeHours(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:b,source:P}))}changeMinutes(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:b,source:P}))}changeSeconds(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:b,source:P}))}updateHours(b){this.resetValidation(),this.hours=b.value;const P=Ci(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(b){this.resetValidation(),this.minutes=b.value;const P=Hi(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(b){this.resetValidation(),this.seconds=b.value;const P=Wr(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function Ns(f,E,b){const P=ri(new Date,f);return!(!P||E&&P>E||b&&P=12?1:0],this.meridianChange.emit(this.meridian),Me%=12,0===Me&&(Me=12)),this.hours=hi(Me),this.minutes=hi(P.getMinutes()),this.seconds=hi(P.getUTCSeconds())}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Cc),e.Y36(e.sBO),e.Y36(gc),e.Y36(ml))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meridians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[e._Bn([vl,gc]),e.TTD],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],["href","javascript:void(0);",1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"placeholder","readonly","disabled","value","wheel","keydown.ArrowUp","keydown.ArrowDown","change"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"disabled","click"]],template:function(P,H){1&P&&(e.TgZ(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),e.NdJ("click",function(){return H.changeHours(H.hourStep)}),e._UZ(5,"span",2),e.qZA()(),e.YNc(6,Nl,2,0,"td",3),e.YNc(7,La,3,2,"td",3),e.YNc(8,$d,2,0,"td",3),e.YNc(9,mc,3,2,"td",3),e.YNc(10,jc,2,0,"td",3),e.YNc(11,_l,1,0,"td",3),e.qZA(),e.TgZ(12,"tr")(13,"td",4)(14,"input",5),e.NdJ("wheel",function(Et){return H.prevDef(Et),H.changeHours(H.hourStep*H.wheelSign(Et),"wheel")})("keydown.ArrowUp",function(){return H.changeHours(H.hourStep,"key")})("keydown.ArrowDown",function(){return H.changeHours(-H.hourStep,"key")})("change",function(Et){return H.updateHours(Et.target)}),e.qZA()(),e.YNc(15,Su,2,0,"td",3),e.YNc(16,nu,2,9,"td",6),e.YNc(17,Pa,2,0,"td",3),e.YNc(18,ao,2,9,"td",6),e.YNc(19,Zc,2,0,"td",3),e.YNc(20,Go,3,4,"td",3),e.qZA(),e.TgZ(21,"tr",0)(22,"td")(23,"a",1),e.NdJ("click",function(){return H.changeHours(-H.hourStep)}),e._UZ(24,"span",7),e.qZA()(),e.YNc(25,Kd,2,0,"td",3),e.YNc(26,zc,3,2,"td",3),e.YNc(27,Jd,2,0,"td",3),e.YNc(28,nl,3,2,"td",3),e.YNc(29,Gc,2,0,"td",3),e.YNc(30,qd,1,0,"td",3),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("hidden",!H.showSpinners),e.xp6(2),e.ekj("disabled",!H.canIncrementHours||!H.isEditable),e.xp6(2),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(2),e.ekj("has-error",H.invalidHours),e.xp6(1),e.ekj("is-invalid",H.invalidHours),e.Q6J("placeholder",H.hoursPlaceholder)("readonly",H.readonlyInput)("disabled",H.disabled)("value",H.hours),e.uIk("aria-label",H.labelHours),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("hidden",!H.showSpinners),e.xp6(2),e.ekj("disabled",!H.canDecrementHours||!H.isEditable),e.xp6(2),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian))},dependencies:[zi.O5],styles:[".bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{transform:rotate(45deg);top:2px}.bs-chevron-down{transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}\n"],encapsulation:2,changeDetection:0})}return f})(),Gu=(()=>{class f{static forRoot(){return{ngModule:f,providers:[ml,gc]}}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275mod=e.oAB({type:f});static#n=this.\u0275inj=e.cJS({providers:[gc],imports:[zi.ez]})}return f})();var Fa=C(6825),Od=C(7394),Ou=C(2572),Tc=C(8645),Id=C(2268),F=C(1835);function Xe(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"button",2),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw();return e.KtG(Et.selectFromRanges(Me))}),e._uU(1),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw();e.ekj("selected",b.value===P.selectedRange),e.xp6(1),e.hij(" ",b.label," ")}}function g(f,E){1&f&&e._UZ(0,"bs-current-date",4)}function L(f,E){1&f&&e._UZ(0,"bs-timepicker")}const R=[[["bs-datepicker-navigation-view"]],"*"],ye=["bs-datepicker-navigation-view","*"],Dt=["bsDatepickerDayDecorator",""];function Mn(f,E){if(1&f){const b=e.EpF();e.ynx(0),e._uU(1," \u200b "),e.TgZ(2,"button",2),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.view("month"))}),e.TgZ(3,"span"),e._uU(4),e.qZA()(),e.BQk()}if(2&f){const b=e.oxw();e.xp6(2),e.Q6J("disabled",b.isDisabled),e.xp6(2),e.Oqu(b.calendar.monthTitle)}}function vi(f,E){1&f&&e._UZ(0,"th")}function Fo(f,E){if(1&f&&(e.TgZ(0,"th",5),e._uU(1),e.qZA()),2&f){const b=E.index,P=e.oxw();e.xp6(1),e.hij("",P.calendar.weekdays[b]," ")}}function Ya(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",11),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.selectWeek(H))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw(2).index,P=e.oxw();e.xp6(1),e.Oqu(P.calendar.weekNumbers[b])}}function Rd(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.selectWeek(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.weekHoverHandler(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.weekHoverHandler(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw(2).index,P=e.oxw();e.xp6(1),e.Oqu(P.calendar.weekNumbers[b])}}function kd(f,E){if(1&f&&(e.TgZ(0,"td",8),e.YNc(1,Ya,2,1,"span",9),e.YNc(2,Rd,2,1,"span",10),e.qZA()),2&f){const b=e.oxw(2);e.ekj("active-week",b.isWeekHovered),e.xp6(1),e.Q6J("ngIf",b.isiOS),e.xp6(1),e.Q6J("ngIf",!b.isiOS)}}function tc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.s9C("tooltip",b.tooltipText),e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 3")}}function Iu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",18),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 2")}}function Jh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 1")}}function qh(f,E){if(1&f&&(e.TgZ(0,"td",13),e.YNc(1,tc,2,3,"span",14),e.YNc(2,Iu,2,2,"span",15),e.YNc(3,Jh,2,2,"span",16),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!b.isiOS&&b.isShowTooltip),e.xp6(1),e.Q6J("ngIf",!b.isiOS&&!b.isShowTooltip),e.xp6(1),e.Q6J("ngIf",b.isiOS)}}function Xd(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,kd,3,4,"td",6),e.YNc(2,qh,4,3,"td",7),e.qZA()),2&f){const b=E.$implicit,P=e.oxw();e.xp6(1),e.Q6J("ngIf",P.options&&P.options.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",b.days)}}function Ru(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.viewMonth(Me))})("mouseenter",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverMonth(Me,!0))})("mouseleave",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverMonth(Me,!1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&f){const b=E.$implicit;e.ekj("disabled",b.isDisabled)("is-highlighted",b.isHovered),e.xp6(1),e.ekj("selected",b.isSelected),e.xp6(1),e.Oqu(b.label)}}function ru(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,Ru,3,7,"td",3),e.qZA()),2&f){const b=E.$implicit;e.xp6(1),e.Q6J("ngForOf",b)}}function ou(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.viewYear(Me))})("mouseenter",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverYear(Me,!0))})("mouseleave",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverYear(Me,!1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&f){const b=E.$implicit;e.ekj("disabled",b.isDisabled)("is-highlighted",b.isHovered),e.xp6(1),e.ekj("selected",b.isSelected),e.xp6(1),e.Oqu(b.label)}}function su(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,ou,3,7,"td",3),e.qZA()),2&f){const b=E.$implicit;e.xp6(1),e.Q6J("ngForOf",b)}}const Ir=["startTP"];function ha(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-days-calendar-view",11),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.dayHoverHandler(H))})("onHoverWeek",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.weekHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.daySelectHandler(H))}),e.ALo(1,"async"),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)("isDisabled",P.isDatePickerDisabled)("options",e.lcZ(1,5,P.options$))}}function il(f,E){if(1&f&&e._UZ(0,"timepicker",13,16),2&f){const b=e.oxw(4);e.Q6J("disabled",b.isDatePickerDisabled)}}function Fs(f,E){if(1&f&&(e.TgZ(0,"div",12),e._UZ(1,"timepicker",13,14),e.YNc(3,il,2,1,"timepicker",15),e.qZA()),2&f){const b=e.oxw(3);e.xp6(1),e.Q6J("disabled",b.isDatePickerDisabled),e.xp6(2),e.Q6J("ngIf",b.isRangePicker)}}function ds(f,E){if(1&f&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,ha,2,7,"bs-days-calendar-view",9),e.ALo(3,"async"),e.qZA(),e.YNc(4,Fs,4,2,"div",10),e.BQk()),2&f){const b=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,b.daysCalendar$)),e.xp6(2),e.Q6J("ngIf",b.withTimepicker)}}function fa(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-month-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function Qh(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,fa,1,3,"bs-month-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.monthsCalendar))}}function Xh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-years-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function ef(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,Xh,1,3,"bs-years-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.yearsCalendar))}}function gh(f,E){1&f&&(e.TgZ(0,"div",19)(1,"button",20),e._uU(2,"Apply"),e.qZA(),e.TgZ(3,"button",21),e._uU(4,"Cancel"),e.qZA()())}function au(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",24)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.setToday())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("today-left","left"===b.todayPos)("today-right","right"===b.todayPos)("today-center","center"===b.todayPos),e.xp6(2),e.Oqu(b.todayBtnLbl)}}function vh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",26)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.clearDate())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("clear-left","left"===b.clearPos)("clear-right","right"===b.clearPos)("clear-center","center"===b.clearPos),e.xp6(2),e.Oqu(b.clearBtnLbl)}}function tf(f,E){if(1&f&&(e.TgZ(0,"div",19),e.YNc(1,au,3,7,"div",22),e.YNc(2,vh,3,7,"div",23),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",b.showTodayBtn),e.xp6(1),e.Q6J("ngIf",b.showClearBtn)}}function nf(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",27)(1,"bs-custom-date-view",28),e.NdJ("onSelect",function(H){e.CHM(b);const Me=e.oxw(2);return e.KtG(Me.setRangeOnCalendar(H))}),e.qZA()()}if(2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("selectedRange",b.chosenRange)("ranges",b.customRanges)("customRangeLabel",b.customRangeBtnLbl)}}function eo(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.NdJ("@datepickerAnimation.done",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.positionServiceEnable())}),e.TgZ(2,"div",3),e.ALo(3,"async"),e.YNc(4,ds,5,4,"ng-container",4),e.YNc(5,Qh,3,3,"div",5),e.YNc(6,ef,3,3,"div",5),e.qZA(),e.YNc(7,gh,5,0,"div",6),e.YNc(8,tf,3,2,"div",6),e.qZA(),e.YNc(9,nf,2,3,"div",7),e.qZA()}if(2&f){const b=e.oxw();e.Q6J("ngClass",b.containerClass),e.xp6(1),e.Q6J("@datepickerAnimation",b.animationState),e.xp6(1),e.Q6J("ngSwitch",e.lcZ(3,9,b.viewMode)),e.xp6(2),e.Q6J("ngSwitchCase","day"),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",b.showTodayBtn||b.showClearBtn),e.xp6(1),e.Q6J("ngIf",b.customRanges&&b.customRanges.length>0)}}const Zf=["endTP"];function qu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-days-calendar-view",11),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.dayHoverHandler(H))})("onHoverWeek",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.weekHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.daySelectHandler(H))}),e.ALo(1,"async"),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)("isDisabled",P.isDatePickerDisabled)("options",e.lcZ(1,5,P.options$))}}function zf(f,E){if(1&f&&e._UZ(0,"timepicker",13,16),2&f){const b=e.oxw(4);e.Q6J("disabled",b.isDatePickerDisabled)}}function cu(f,E){if(1&f&&(e.TgZ(0,"div",12),e._UZ(1,"timepicker",13,14),e.YNc(3,zf,2,1,"timepicker",15),e.qZA()),2&f){const b=e.oxw(3);e.xp6(1),e.Q6J("disabled",b.isDatePickerDisabled),e.xp6(2),e.Q6J("ngIf",b.isRangePicker)}}function xh(f,E){if(1&f&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,qu,2,7,"bs-days-calendar-view",9),e.ALo(3,"async"),e.qZA(),e.YNc(4,cu,4,2,"div",10),e.BQk()),2&f){const b=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,b.daysCalendar$)),e.xp6(2),e.Q6J("ngIf",b.withTimepicker)}}function Mh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-month-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function si(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,Mh,1,3,"bs-month-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.monthsCalendar))}}function du(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-years-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function Hl(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,du,1,3,"bs-years-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.yearsCalendar))}}function af(f,E){1&f&&(e.TgZ(0,"div",19)(1,"button",20),e._uU(2,"Apply"),e.qZA(),e.TgZ(3,"button",21),e._uU(4,"Cancel"),e.qZA()())}function nc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",24)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.setToday())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("today-left","left"===b.todayPos)("today-right","right"===b.todayPos)("today-center","center"===b.todayPos),e.xp6(2),e.Oqu(b.todayBtnLbl)}}function Ch(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",26)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.clearDate())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("clear-left","left"===b.clearPos)("clear-right","right"===b.clearPos)("clear-center","center"===b.clearPos),e.xp6(2),e.Oqu(b.clearBtnLbl)}}function lf(f,E){if(1&f&&(e.TgZ(0,"div",19),e.YNc(1,nc,3,7,"div",22),e.YNc(2,Ch,3,7,"div",23),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",b.showTodayBtn),e.xp6(1),e.Q6J("ngIf",b.showClearBtn)}}function uu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",27)(1,"bs-custom-date-view",28),e.NdJ("onSelect",function(H){e.CHM(b);const Me=e.oxw(2);return e.KtG(Me.setRangeOnCalendar(H))}),e.qZA()()}if(2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("selectedRange",b.chosenRange)("ranges",b.customRanges)("customRangeLabel",b.customRangeBtnLbl)}}function ku(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.NdJ("@datepickerAnimation.done",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.positionServiceEnable())}),e.TgZ(2,"div",3),e.ALo(3,"async"),e.YNc(4,xh,5,4,"ng-container",4),e.YNc(5,si,3,3,"div",5),e.YNc(6,Hl,3,3,"div",5),e.qZA(),e.YNc(7,af,5,0,"div",6),e.YNc(8,lf,3,2,"div",6),e.qZA(),e.YNc(9,uu,2,3,"div",7),e.qZA()}if(2&f){const b=e.oxw();e.Q6J("ngClass",b.containerClass),e.xp6(1),e.Q6J("@datepickerAnimation",b.animationState),e.xp6(1),e.Q6J("ngSwitch",e.lcZ(3,9,b.viewMode)),e.xp6(2),e.Q6J("ngSwitchCase","day"),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",b.showTodayBtn||b.showClearBtn),e.xp6(1),e.Q6J("ngIf",b.customRanges&&b.customRanges.length>0)}}let ol=(()=>{class f{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})();const Pd="220ms cubic-bezier(0, 0, 0.2, 1)",Ul=(0,Fa.X$)("datepickerAnimation",[(0,Fa.SB)("animated-down",(0,Fa.oB)({height:"*",overflow:"hidden"})),(0,Fa.eR)("* => animated-down",[(0,Fa.oB)({height:0,overflow:"hidden"}),(0,Fa.jt)(Pd)]),(0,Fa.SB)("animated-up",(0,Fa.oB)({height:"*",overflow:"hidden"})),(0,Fa.eR)("* => animated-up",[(0,Fa.oB)({height:"*",overflow:"hidden"}),(0,Fa.jt)(Pd)]),(0,Fa.eR)("* => unanimated",(0,Fa.jt)("0s"))]);class Jc{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new Od.w0,this.selectedTimeSub=new Od.w0}set minDate(E){this._effects?.setMinDate(E)}set maxDate(E){this._effects?.setMaxDate(E)}set daysDisabled(E){this._effects?.setDaysDisabled(E)}set datesDisabled(E){this._effects?.setDatesDisabled(E)}set datesEnabled(E){this._effects?.setDatesEnabled(E)}set isDisabled(E){this._effects?.setDisabled(E)}set dateCustomClasses(E){this._effects?.setDateCustomClasses(E)}set dateTooltipTexts(E){this._effects?.setDateTooltipTexts(E)}set daysCalendar$(E){this._daysCalendar$=E,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(b=>{this.multipleCalendars=!!b&&b.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(E){}navigateTo(E){}dayHoverHandler(E){}weekHoverHandler(E){}monthHoverHandler(E){}yearHoverHandler(E){}timeSelectHandler(E,b){}daySelectHandler(E){}monthSelectHandler(E){}yearSelectHandler(E){}setRangeOnCalendar(E){}setToday(){}clearDate(){}_stopPropagation(E){E.stopPropagation()}}let lo=(()=>{class f{static#e=this.CALCULATE="[datepicker] calculate dates matrix";static#t=this.FORMAT="[datepicker] format datepicker values";static#n=this.FLAG="[datepicker] set flags";static#i=this.SELECT="[datepicker] select date";static#r=this.NAVIGATE_OFFSET="[datepicker] shift view date";static#o=this.NAVIGATE_TO="[datepicker] change view date";static#s=this.SET_OPTIONS="[datepicker] update render options";static#a=this.HOVER="[datepicker] hover date";static#l=this.CHANGE_VIEWMODE="[datepicker] switch view mode";static#c=this.SET_MIN_DATE="[datepicker] set min date";static#d=this.SET_MAX_DATE="[datepicker] set max date";static#u=this.SET_DAYSDISABLED="[datepicker] set days disabled";static#h=this.SET_DATESDISABLED="[datepicker] set dates disabled";static#f=this.SET_DATESENABLED="[datepicker] set dates enabled";static#p=this.SET_IS_DISABLED="[datepicker] set is disabled";static#_=this.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes";static#m=this.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts";static#g=this.SET_LOCALE="[datepicker] set datepicker locale";static#v=this.SELECT_TIME="[datepicker] select time";static#b=this.SELECT_RANGE="[daterangepicker] select dates range";calculate(){return{type:f.CALCULATE}}format(){return{type:f.FORMAT}}flag(){return{type:f.FLAG}}select(b){return{type:f.SELECT,payload:b}}selectTime(b,P){return{type:f.SELECT_TIME,payload:{date:b,index:P}}}changeViewMode(b){return{type:f.CHANGE_VIEWMODE,payload:b}}navigateTo(b){return{type:f.NAVIGATE_TO,payload:b}}navigateStep(b){return{type:f.NAVIGATE_OFFSET,payload:b}}setOptions(b){return{type:f.SET_OPTIONS,payload:b}}selectRange(b){return{type:f.SELECT_RANGE,payload:b}}hoverDay(b){return{type:f.HOVER,payload:b.isHovered?b.cell.date:null}}minDate(b){return{type:f.SET_MIN_DATE,payload:b}}maxDate(b){return{type:f.SET_MAX_DATE,payload:b}}daysDisabled(b){return{type:f.SET_DAYSDISABLED,payload:b}}datesDisabled(b){return{type:f.SET_DATESDISABLED,payload:b}}datesEnabled(b){return{type:f.SET_DATESENABLED,payload:b}}isDisabled(b){return{type:f.SET_IS_DISABLED,payload:b}}setDateCustomClasses(b){return{type:f.SET_DATE_CUSTOM_CLASSES,payload:b}}setDateTooltipTexts(b){return{type:f.SET_DATE_TOOLTIP_TEXTS,payload:b}}setLocale(b){return{type:f.SET_LOCALE,payload:b}}static#y=this.\u0275fac=function(P){return new(P||f)};static#w=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),fu=(()=>{class f{constructor(){this._defaultLocale="en",this._locale=new ls.X(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(b){b!==this.currentLocale&&this._locale.next(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),ud=(()=>{class f{constructor(b,P){this._actions=b,this._localeService=P,this._subs=[]}init(b){return this._store=b,this}setValue(b){this._store?.dispatch(this._actions.select(b))}setRangeValue(b){this._store?.dispatch(this._actions.selectRange(b))}setMinDate(b){return this._store?.dispatch(this._actions.minDate(b)),this}setMaxDate(b){return this._store?.dispatch(this._actions.maxDate(b)),this}setDaysDisabled(b){return this._store?.dispatch(this._actions.daysDisabled(b)),this}setDatesDisabled(b){return this._store?.dispatch(this._actions.datesDisabled(b)),this}setDatesEnabled(b){return this._store?.dispatch(this._actions.datesEnabled(b)),this}setDisabled(b){return this._store?.dispatch(this._actions.isDisabled(b)),this}setDateCustomClasses(b){return this._store?.dispatch(this._actions.setDateCustomClasses(b)),this}setDateTooltipTexts(b){return this._store?.dispatch(this._actions.setDateTooltipTexts(b)),this}setOptions(b){const P=Object.assign({locale:this._localeService.currentLocale},b);return this._store?.dispatch(this._actions.setOptions(P)),this}setBindings(b){return this._store?(b.selectedTime=this._store.select(P=>P.selectedTime).pipe((0,l.h)(P=>!!P)),b.daysCalendar$=this._store.select(P=>P.flaggedMonths).pipe((0,l.h)(P=>!!P)),b.monthsCalendar=this._store.select(P=>P.flaggedMonthsCalendar).pipe((0,l.h)(P=>!!P)),b.yearsCalendar=this._store.select(P=>P.yearsCalendarFlagged).pipe((0,l.h)(P=>!!P)),b.viewMode=this._store.select(P=>P.view?.mode),b.options$=(0,Ou.a)([this._store.select(P=>P.showWeekNumbers),this._store.select(P=>P.displayMonths)]).pipe((0,D.U)(P=>({showWeekNumbers:P[0],displayMonths:P[1]}))),this):this}setEventHandlers(b){return b.setViewMode=P=>{this._store?.dispatch(this._actions.changeViewMode(P))},b.navigateTo=P=>{this._store?.dispatch(this._actions.navigateStep(P.step))},b.dayHoverHandler=P=>{const H=P.cell;H.isOtherMonth||H.isDisabled||(this._store?.dispatch(this._actions.hoverDay(P)),H.isHovered=P.isHovered)},b.monthHoverHandler=P=>{P.cell.isHovered=P.isHovered},b.yearHoverHandler=P=>{P.cell.isHovered=P.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(b=>b.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(b=>b.monthsModel).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(b=>b.formattedMonths).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.selectedDate).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.selectedRange).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.yearsCalendarModel).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.hoveredDate).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.dateCustomClasses).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.dateTooltipTexts).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(b=>this._store?.dispatch(this._actions.setLocale(b)))),this):this}destroy(){for(const b of this._subs)b.unsubscribe()}static#e=this.\u0275fac=function(P){return new(P||f)(e.LFG(lo),e.LFG(fu))};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const Eh={date:new Date,mode:"day"},th=Object.assign(new ol,{locale:"en",view:Eh,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function eu(f,E,b){const P=E&&K(pr(f,"month"),E,"day"),H=b&&ro(bo(f,"month"),b,"day");return P||H||!1}function Dc(f,E,b){const P=E&&K(pr(f,"year"),E,"day"),H=b&&ro(bo(f,"year"),b,"day");return P||H||!1}function Nd(f,E,b){return!!(E&&ce(E)&&E.length)&&(b&&"year"===b&&!E[0].getDate()?E.some(P=>Ne(f,P,"year")):E.some(P=>Ne(f,P,"date")))}function Nu(f,E,b){return!!(E&&ce(E)&&E.length)&&!E.some(P=>Ne(f,P,b||"date"))}function Fu(f,E=0){const b=f&&f.yearsCalendarModel&&f.yearsCalendarModel[E];return b?.years[0]&&b.years[0][0]&&b.years[0][0].date}function Yu(f,E){return!f||!E||!f.length&&!f[0].value||f.forEach(b=>(!b||!b.value||b.value instanceof Date||!(b.value instanceof Array&&b.value.length)||(b.value=ih(b.value,E)),f)),f}function pu(f,E){return!f||!E||f instanceof Array&&!f.length||f instanceof Date?f:ih(f,E)}function ih(f,E){return f instanceof Array?f.map(P=>P&&(ro(P,E,"date")&&(P=E),P)):f}function _u(f){return f&&rh(f)}function Ah(f){return f?.length&&f.map(E=>E&&rh(E)),f}function rh(f){const E=new Date;return f.setMilliseconds(E.getMilliseconds()),f.setSeconds(E.getSeconds()),f.setMinutes(E.getMinutes()),f.setHours(E.getHours()),f}function Bu(f,E){let b=f.initialDate;const P=new Array(f.height);for(let H=0;HEt),month:b}}function Fd(f,E,b){return f.map(P=>P[0]?ts(P[0],E,b):"")}function us(f){const E=sr(f),b=E.weekdaysShort(),P=E.firstDayOfWeek();return[...b.slice(P),...b.slice(0,P)]}function Yd(f,E){return!E||f>=E}const hd=4,_f=3,Ip={month:1};function Oh(f,E){const b=bo(f,"year");return{months:Bu({width:_f,height:hd,initialDate:b,shift:Ip},Me=>({date:Me,label:ts(Me,E.monthLabel,E.locale)})),monthTitle:"",yearTitle:ts(f,E.yearTitle,E.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const ah=4,Bd=4,tu=ah*Bd,lh=-1*(Math.floor(tu/2)-1),mf={year:1};function Rh(f,E,b){const P=function gf(f,E){return E&&f.getFullYear()>=E.getFullYear()&&f.getFullYear()({date:yn,label:ts(yn,E.yearLabel,E.locale)})),Et=function gu(f,E){return`${ts(f[0][0].date,E.yearTitle,E.locale)} - ${ts(f[ah-1][Bd-1].date,E.yearTitle,E.locale)}`}(Me,E);return{years:Me,monthTitle:"",yearTitle:Et,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function vf(f,E){!f||!isNaN(f.getTime())||(f.setHours(E.getHours()),f.setMinutes(E.getMinutes()),f.setSeconds(E.getSeconds()),f.setMilliseconds(E.getMilliseconds()))}function kh(f=th,E){switch(E.type){case lo.CALCULATE:return function Rp(f){if(!f.view)return f;let E;E=f.displayOneMonthRange&&t(f.view.date,f.minDate,f.maxDate)?1:f.displayMonths||1;let b=f.view.date;if("day"===f.view.mode&&f.monthViewOptions){f.showPreviousMonth&&f.selectedRange&&0===f.selectedRange.length&&(b=En(b,{month:-1})),f.monthViewOptions.firstDayOfWeek=sr(f.locale).firstDayOfWeek();let P=new Array(E);for(let H=0;Hf.monthViewOptions?oh(Me.month,f.monthViewOptions):null).filter(Me=>null!==Me))}return Object.assign({},f,{monthsModel:P})}if("month"===f.view.mode){const P=new Array(E);for(let H=0;Hfunction sh(f,E,b){return{month:f.month,monthTitle:ts(f.month,E.monthTitle,E.locale),yearTitle:ts(f.month,E.yearTitle,E.locale),weekNumbers:Fd(f.daysMatrix,E.weekNumbers,E.locale),weekdays:us(E.locale),weeks:f.daysMatrix.map((P,H)=>({days:P.map((Me,Et)=>({date:Me,label:ts(Me,E.dayLabel,E.locale),monthIndex:b,weekIndex:H,dayIndex:Et}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(H,vu(f),Me));return Object.assign({},f,{formattedMonths:P})}const E=f.displayMonths||1;let b=f.view.date;if("month"===f.view.mode){const P=new Array(E);for(let H=0;Hfunction Yo(f,E){return f.weeks.forEach(b=>{b.days.forEach((P,H)=>{const Me=!Ce(P.date,f.month),Et=!Me&&ae(P.date,E.hoveredDate),yn=!Me&&E.selectedRange&&ae(P.date,E.selectedRange[0]),Gn=!Me&&E.selectedRange&&ae(P.date,E.selectedRange[1]),Rr=!Me&&ae(P.date,E.selectedDate)||yn||Gn,Ts=!Me&&E.selectedRange&&function mu(f,E,b){return!!(f&&E&&E[0])&&(E[1]?f>E[0]&&f<=E[1]:!!b&&f>E[0]&&f<=b)}(P.date,E.selectedRange,E.hoveredDate),pa=E.isDisabled||K(P.date,E.minDate,"day")||ro(P.date,E.maxDate,"day")||function Ue(f,E){return!(typeof E>"u"||!E||!E.length)&&E.some(b=>b===f.getDay())}(P.date,E.daysDisabled)||Nd(P.date,E.datesDisabled)||Nu(P.date,E.datesEnabled),Lh=!Me&&ae(P.date,new Date),yf=E.dateCustomClasses&&E.dateCustomClasses.map(Qc=>ae(P.date,Qc.date)?Qc.classes:[]).reduce((Qc,ch)=>Qc.concat(ch),[]).join(" ")||"",wf=E.dateTooltipTexts&&E.dateTooltipTexts.map(Qc=>ae(P.date,Qc.date)?Qc.tooltipText:"").reduce((Qc,ch)=>(Qc.push(ch),Qc),[]).join(" ")||"",Rc=Object.assign({},P,{isOtherMonth:Me,isHovered:Et,isSelected:Rr,isSelectionStart:yn,isSelectionEnd:Gn,isInRange:Ts,isDisabled:pa,isToday:Lh,customClasses:yf,tooltipText:wf});(P.isOtherMonth!==Rc.isOtherMonth||P.isHovered!==Rc.isHovered||P.isSelected!==Rc.isSelected||P.isSelectionStart!==Rc.isSelectionStart||P.isSelectionEnd!==Rc.isSelectionEnd||P.isDisabled!==Rc.isDisabled||P.isInRange!==Rc.isInRange||P.customClasses!==Rc.customClasses||P.tooltipText!==Rc.tooltipText)&&(b.days[H]=Rc)})}),f.hideLeftArrow=E.isDisabled||!!E.monthIndex&&E.monthIndex>0&&E.monthIndex!==E.displayMonths,f.hideRightArrow=E.isDisabled||(!!E.monthIndex||0===E.monthIndex)&&!!E.displayMonths&&E.monthIndexfunction Ih(f,E){return f.months.forEach((b,P)=>{b.forEach((H,Me)=>{let Et;const yn=Ce(H.date,E.hoveredMonth),Gn=E.isDisabled||Nd(H.date,E.datesDisabled)||Nu(H.date,E.datesEnabled,"month")||eu(H.date,E.minDate,E.maxDate);!E.selectedDate&&E.selectedRange?(Et=Ce(H.date,E.selectedRange[0]),Et||(Et=Ce(H.date,E.selectedRange[1]))):Et=Ce(H.date,E.selectedDate);const Rr=Object.assign(H,{isHovered:yn,isDisabled:Gn,isSelected:Et});(H.isHovered!==Rr.isHovered||H.isDisabled!==Rr.isDisabled||H.isSelected!==Rr.isSelected)&&(f.months[P][Me]=Rr)})}),f.hideLeftArrow=!!E.monthIndex&&E.monthIndex>0&&E.monthIndex!==E.displayMonths,f.hideRightArrow=(!!E.monthIndex||0===E.monthIndex)&&(!!E.displayMonths||0===E.displayMonths)&&E.monthIndexfunction fd(f,E){f.years.forEach((H,Me)=>{H.forEach((Et,yn)=>{let Gn;const Rr=J(Et.date,E.hoveredYear),Ts=E.isDisabled||Nd(Et.date,E.datesDisabled,"year")||Nu(Et.date,E.datesEnabled,"year")||Dc(Et.date,E.minDate,E.maxDate);!E.selectedDate&&E.selectedRange?(Gn=J(Et.date,E.selectedRange[0]),Gn||(Gn=J(Et.date,E.selectedRange[1]))):Gn=J(Et.date,E.selectedDate);const pa=Object.assign(Et,{isHovered:Rr,isDisabled:Ts,isSelected:Gn});(Et.isHovered!==pa.isHovered||Et.isDisabled!==pa.isDisabled||Et.isSelected!==pa.isSelected)&&(f.years[Me][yn]=pa)})}),f.hideLeftArrow=!!E.yearIndex&&E.yearIndex>0&&E.yearIndex!==E.displayMonths,f.hideRightArrow=!!E.yearIndex&&!!E.displayMonths&&E.yearIndexEt)),b.value instanceof Date&&(b.selectedDate=b.value,b.selectedTime=[b.value])),Object.assign({},f,b)}case lo.SELECT_RANGE:{if(!f.view)return f;const b={selectedRange:E.payload,view:f.view};b.selectedRange?.forEach((Et,yn)=>{if(Array.isArray(f.selectedTime)){const Gn=f.selectedTime[yn];Gn&&vf(Et,Gn)}});const P=f.view.mode,Me=o(E.payload&&E.payload[0]||f.view.date,f.minDate,f.maxDate);return b.view={mode:P,date:Me},Object.assign({},f,b)}case lo.SET_MIN_DATE:return Object.assign({},f,{minDate:E.payload});case lo.SET_MAX_DATE:return Object.assign({},f,{maxDate:E.payload});case lo.SET_IS_DISABLED:return Object.assign({},f,{isDisabled:E.payload});case lo.SET_DATE_CUSTOM_CLASSES:return Object.assign({},f,{dateCustomClasses:E.payload});case lo.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},f,{dateTooltipTexts:E.payload});default:return f}}function vu(f){return{locale:f.locale,monthTitle:f.monthTitle,yearTitle:f.yearTitle,dayLabel:f.dayLabel,monthLabel:f.monthLabel,yearLabel:f.yearLabel,weekNumbers:f.weekNumbers}}function o(f,E,b){const P=Array.isArray(f)?f[0]:f;return E&&ro(E,P,"day")?E:b&&K(b,P,"day")?b:P}function t(f,E,b){return!(!b||!Ne(b,f,"day"))||E&&b&&E.getMonth()===b.getMonth()}let i=(()=>{class f extends zo{constructor(){const b=new ls.X({type:"[datepicker] dispatcher init"});super(b,kh,new Vc(th,b,kh))}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),s=(()=>{class f{constructor(){this.onSelect=new e.vpe}selectFromRanges(b){this.onSelect.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(P,H){1&P&&(e.TgZ(0,"div",0),e.YNc(1,Xe,2,3,"button",1),e.qZA()),2&P&&(e.xp6(1),e.Q6J("ngForOf",H.ranges))},dependencies:[zi.sg],encapsulation:2,changeDetection:0})}return f})();var c=function(f){return f[f.UP=0]="UP",f[f.DOWN=1]="DOWN",f}(c||{});let et,h=(()=>{class f{static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(P,H){1&P&&(e.TgZ(0,"div",0)(1,"span"),e._uU(2),e.qZA()()),2&P&&(e.xp6(2),e.Oqu(H.title))},encapsulation:2})}return f})(),v=(()=>{class f{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(P,H){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e._uU(3,"-"),e.qZA(),e._UZ(4,"input",3),e.TgZ(5,"button",4),e._uU(6,"+"),e.qZA()(),e.TgZ(7,"div",1)(8,"button",2),e._uU(9,"-"),e.qZA(),e._UZ(10,"input",3),e.TgZ(11,"button",4),e._uU(12,"+"),e.qZA()(),e.TgZ(13,"button",5),e._uU(14),e._UZ(15,"img",6),e.qZA()()),2&P&&(e.xp6(4),e.Q6J("value",H.hours),e.xp6(6),e.Q6J("value",H.minutes),e.xp6(4),e.hij("",H.ampm," "))},encapsulation:2})}return f})(),M=(()=>{class f{static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-calendar-layout"]],ngContentSelectors:ye,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(P,H){1&P&&(e.F$t(R),e.YNc(0,g,1,0,"bs-current-date",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.TgZ(3,"div",2),e.Hsn(4,1),e.qZA(),e.YNc(5,L,1,0,"bs-timepicker",3)),2&P&&(e.Q6J("ngIf",!1),e.xp6(5),e.Q6J("ngIf",!1))},dependencies:[zi.O5,h,v],encapsulation:2})}return f})(),O=(()=>{class f{constructor(b,P,H){this._config=b,this._elRef=P,this._renderer=H,this.day={date:new Date,label:""}}ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day?.customClasses&&this.day?.customClasses.split(" ").filter(b=>b).forEach(b=>{this._renderer.addClass(this._elRef.nativeElement,b)})}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol),e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(P,H){2&P&&e.ekj("disabled",H.day.isDisabled)("is-highlighted",H.day.isHovered)("is-other-month",H.day.isOtherMonth)("is-active-other-month",H.day.isOtherMonthHovered)("in-range",H.day.isInRange)("select-start",H.day.isSelectionStart)("select-end",H.day.isSelectionEnd)("selected",H.day.isSelected)},inputs:{day:"day"},attrs:Dt,decls:1,vars:1,template:function(P,H){1&P&&e._uU(0),2&P&&e.Oqu(H.day&&H.day.label||"")},encapsulation:2,changeDetection:0})}return f})(),N=(()=>{class f{constructor(){this.isDisabled=!1,this.onNavigate=new e.vpe,this.onViewMode=new e.vpe}navTo(b){this.onNavigate.emit(b?c.DOWN:c.UP)}view(b){this.isDisabled||this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"disabled","click"],[4,"ngIf"],["type","button",1,"current",3,"disabled","click"],["type","button",1,"next",3,"disabled","click"]],template:function(P,H){1&P&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return H.navTo(!0)}),e.TgZ(1,"span"),e._uU(2,"\u2039"),e.qZA()(),e.YNc(3,Mn,5,2,"ng-container",1),e._uU(4," \u200b "),e.TgZ(5,"button",2),e.NdJ("click",function(){return H.view("year")}),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e._uU(8," \u200b "),e.TgZ(9,"button",3),e.NdJ("click",function(){return H.navTo(!1)}),e.TgZ(10,"span"),e._uU(11,"\u203a"),e.qZA()()),2&P&&(e.Udp("visibility",H.calendar.hideLeftArrow?"hidden":"visible"),e.Q6J("disabled",H.calendar.disableLeftArrow),e.xp6(3),e.Q6J("ngIf",H.calendar&&H.calendar.monthTitle),e.xp6(2),e.Q6J("disabled",H.isDisabled),e.xp6(2),e.Oqu(H.calendar.yearTitle),e.xp6(2),e.Udp("visibility",H.calendar.hideRightArrow?"hidden":"visible"),e.Q6J("disabled",H.calendar.disableRightArrow))},dependencies:[zi.O5],encapsulation:2,changeDetection:0})}return f})(),$=(()=>{class f{constructor(b){this._config=b,this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe,this.onHoverWeek=new e.vpe,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(b){this.onNavigate.emit({step:{month:c.DOWN===b?-1:1}})}changeViewMode(b){this.onViewMode.emit(b)}selectDay(b){this.onSelect.emit(b)}selectWeek(b){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===b.days.length)return;if(this._config.selectWeek&&b.days[0]&&!b.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(b.days[0]);const P=b.days.find(H=>(this._config.selectFromOtherMonth||!H.isOtherMonth)&&!H.isDisabled);if(this.onSelect.emit(P),this._config.selectWeekDateRange){const Me=b.days.slice(0).reverse().find(Et=>(this._config.selectFromOtherMonth||!Et.isOtherMonth)&&!Et.isDisabled);this.onSelect.emit(Me)}}weekHoverHandler(b,P){(this._config.selectWeek||this._config.selectWeekDateRange)&&b.days.find(Me=>(this._config.selectFromOtherMonth||!Me.isOtherMonth)&&!Me.isDisabled)&&(b.isHovered=P,this.isWeekHovered=P,this.onHoverWeek.emit(b))}hoverDay(b,P){this._config.selectFromOtherMonth&&b.isOtherMonth&&(b.isOtherMonthHovered=P),this._config.dateTooltipTexts&&(b.tooltipText="",this._config.dateTooltipTexts.forEach(H=>{ae(H.date,b.date)&&(b.tooltipText=H.tooltipText)})),this.onHover.emit({cell:b,isHovered:P})}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"calendar","isDisabled","onNavigate","onViewMode"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"thead")(4,"tr"),e.YNc(5,vi,1,0,"th",2),e.YNc(6,Fo,2,1,"th",3),e.qZA()(),e.TgZ(7,"tbody"),e.YNc(8,Xd,3,2,"tr",4),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar)("isDisabled",!!H.isDisabled),e.xp6(4),e.Q6J("ngIf",H.options&&H.options.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",H.calendar.weekdays),e.xp6(2),e.Q6J("ngForOf",H.calendar.weeks))},dependencies:[zi.sg,zi.O5,Id.i9,M,O,N],encapsulation:2})}return f})(),q=(()=>{class f{constructor(){this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe}navigateTo(b){this.onNavigate.emit({step:{year:c.DOWN===b?-1:1}})}viewMonth(b){this.onSelect.emit(b)}hoverMonth(b,P){this.onHover.emit({cell:b,isHovered:P})}changeViewMode(b){this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"tbody"),e.YNc(4,ru,2,1,"tr",2),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar),e.xp6(3),e.Q6J("ngForOf",null==H.calendar?null:H.calendar.months))},dependencies:[zi.sg,M,N],encapsulation:2})}return f})(),de=(()=>{class f{constructor(){this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe}navigateTo(b){this.onNavigate.emit({step:{year:(c.DOWN===b?-1:1)*tu}})}viewYear(b){this.onSelect.emit(b)}hoverYear(b,P){this.onHover.emit({cell:b,isHovered:P})}changeViewMode(b){this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"tbody"),e.YNc(4,su,2,1,"tr",2),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar),e.xp6(3),e.Q6J("ngForOf",null==H.calendar?null:H.calendar.years))},dependencies:[zi.sg,M,N],encapsulation:2})}return f})(),we=(()=>{class f extends Jc{set value(b){this._effects?.setValue(b)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(b,P,H,Me,Et,yn,Gn){super(),this._config=P,this._store=H,this._element=Me,this._actions=Et,this._positionService=Gn,this.valueChange=new e.vpe,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=yn,b.setStyle(Me.nativeElement,"display","block"),b.setStyle(Me.nativeElement,"position","absolute")}ngOnInit(){let b;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,I.q)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(P=>P.selectedDate).subscribe(P=>{b=P,this.valueChange.emit(P)})),this._subs.push(this._store.select(P=>P.selectedTime).subscribe(P=>{!P[0]||!(P[0]instanceof Date)||P[0]===b||this.valueChange.emit(P[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(b=>{Array.isArray(b)&&b.length>=1&&this.startTimepicker?.writeValue(b[0])})),this.startTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(b,P){this._store.dispatch(this._actions.selectTime(b,P))}daySelectHandler(b){!b||(this.isOtherMonthsActive?b.isDisabled:b.isOtherMonth||b.isDisabled)||this._store.dispatch(this._actions.select(b.date))}monthSelectHandler(b){!b||b.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:Ot(b.date),year:rn(b.date)},viewMode:"day"}))}yearSelectHandler(b){!b||b.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:rn(b.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const b of this._subs)b.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(e.Qsj),e.Y36(ol),e.Y36(i),e.Y36(e.SBq),e.Y36(lo),e.Y36(ud),e.Y36(Zs.sA))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-datepicker-container"]],viewQuery:function(P,H){if(1&P&&e.Gf(Ir,5),2&P){let Me;e.iGM(Me=e.CRH())&&(H.startTimepicker=Me.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(P,H){1&P&&e.NdJ("click",function(Et){return H._stopPropagation(Et)}),2&P&&e.uIk("disabled",H.isDatepickerDisabled)("readonly",H.isDatepickerReadonly)},features:[e._Bn([i,ud]),e.qOj],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(P,H){1&P&&(e.YNc(0,eo,10,11,"div",0),e.ALo(1,"async")),2&P&&e.Q6J("ngIf",e.lcZ(1,1,H.viewMode))},dependencies:[zi.mk,zi.sg,zi.O5,zi.RF,zi.n9,Yl,s,$,q,de,zi.Ov],encapsulation:2,data:{animation:[Ul]}})}return f})(),vt=(()=>{class f{get readonlyValue(){return this.isDisabled?"":null}constructor(b,P,H,Me,Et){this._config=b,this._elementRef=P,this._renderer=H,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Tc.x,this.isDisabled=!1,this.bsValueChange=new e.vpe,this._subs=[],this._dateInputFormat$=new Tc.x,Object.assign(this,this._config),this._datepicker=Et.createLoader(P,Me,H),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new ls.X(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(b){this.isOpen$.next(b)}set bsValue(b){this._bsValue&&b&&this._bsValue.getTime()===b.getTime()||(!this._bsValue&&b&&!this._config.withTimepicker&&vf(b,new Date),b&&this.bsConfig?.initCurrentTime&&(b=_u(b)),this.initPreviousValue(),this._bsValue=b,this.bsValueChange.emit(b))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){et=this._bsValue}ngOnChanges(b){b.bsConfig&&(b.bsConfig.currentValue?.initCurrentTime&&b.bsConfig.currentValue?.initCurrentTime!==b.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=_u(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(b.minDate&&(this._datepickerRef.instance.minDate=this.minDate),b.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),b.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),b.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),b.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),b.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),b.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),b.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(b=>{this._datepickerRef&&(this._datepickerRef.instance.value=b)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(b=>{this.initPreviousValue(),this.bsValue=b,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!!(et&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return et instanceof Date&&this._bsValue?.getDate()===et?.getDate()&&this._bsValue?.getMonth()===et?.getMonth()&&this._bsValue?.getFullYear()===et?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe((0,l.h)(b=>b!==this.isOpen),(0,S.R)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:ol,useValue:this._config}).attach(we).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const b of this._subs)b.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:pu(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(b=>b.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(F.oj))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(P,H){2&P&&e.uIk("readonly",H.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[e.TTD]})}return f})(),bn=(()=>{class f extends Jc{set value(b){this._effects?.setRangeValue(b)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(b,P,H,Me,Et,yn,Gn){super(),this._config=P,this._store=H,this._element=Me,this._actions=Et,this._positionService=Gn,this.valueChange=new e.vpe,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=yn,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,b.setStyle(Me.nativeElement,"display","block"),b.setStyle(Me.nativeElement,"position","absolute")}ngOnInit(){let b;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,I.q)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(P=>P.selectedRange).subscribe(P=>{b=P,this.valueChange.emit(P),this.chosenRange=P||[]})),this._subs.push(this._store.select(P=>P.selectedTime).subscribe(P=>{!P[0]||!P[1]||!(P[0]instanceof Date)||!(P[1]instanceof Date)||b&&P[0]===b[0]&&P[1]===b[1]||(this.valueChange.emit(P),this.chosenRange=P||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(b=>{Array.isArray(b)&&b.length>=2&&(this.startTimepicker?.writeValue(b[0]),this.endTimepicker?.writeValue(b[1]))})),this.startTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,0)}),this.endTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(b,P){this._store.dispatch(this._actions.selectTime(b,P))}daySelectHandler(b){!b||(this.isOtherMonthsActive?b.isDisabled:b.isOtherMonth||b.isDisabled)||this.rangesProcessing(b)}monthSelectHandler(b){if(b&&!b.isDisabled){if(b.isSelected=!0,"month"!==this._config.minMode){if(b.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:Ot(b.date),year:rn(b.date)},viewMode:"day"}))}this.rangesProcessing(b)}}yearSelectHandler(b){if(b&&!b.isDisabled){if(b.isSelected=!0,"year"!==this._config.minMode){if(b.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:rn(b.date)},viewMode:"month"}))}this.rangesProcessing(b)}}rangesProcessing(b){1===this._rangeStack.length&&(this._rangeStack=b.date>=this._rangeStack[0]?[this._rangeStack[0],b.date]:[b.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(b.date),0===this._rangeStack.length&&(this._rangeStack=[b.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(b.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const b of this._subs)b.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(b){b&&(this._rangeStack=b.value instanceof Date?[b.value]:b.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(b){let P=new Date(b);if(this._config.maxDate){const H=this._config.maxDate.getTime(),Me=b.getTime()+864e5*(this._config.maxDateRange||0);P=Me>H?new Date(this._config.maxDate):new Date(Me)}else P.setDate(b.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(P)}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(e.Qsj),e.Y36(ol),e.Y36(i),e.Y36(e.SBq),e.Y36(lo),e.Y36(ud),e.Y36(Zs.sA))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-daterangepicker-container"]],viewQuery:function(P,H){if(1&P&&(e.Gf(Ir,5),e.Gf(Zf,5)),2&P){let Me;e.iGM(Me=e.CRH())&&(H.startTimepicker=Me.first),e.iGM(Me=e.CRH())&&(H.endTimepicker=Me.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(P,H){1&P&&e.NdJ("click",function(Et){return H._stopPropagation(Et)}),2&P&&e.uIk("disabled",H.isDatepickerDisabled)("readonly",H.isDatepickerReadonly)},features:[e._Bn([i,ud]),e.qOj],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(P,H){1&P&&(e.YNc(0,ku,10,11,"div",0),e.ALo(1,"async")),2&P&&e.Q6J("ngIf",e.lcZ(1,1,H.viewMode))},dependencies:[zi.mk,zi.sg,zi.O5,zi.RF,zi.n9,Yl,s,$,q,de,zi.Ov],encapsulation:2,data:{animation:[Ul]}})}return f})();const Kn={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>Gi),multi:!0},fi={provide:Uc.Cf,useExisting:(0,e.Gpc)(()=>Gi),multi:!0};let go,Gi=(()=>{class f{constructor(b,P,H,Me,Et){this._picker=b,this._localeService=P,this._renderer=H,this._elRef=Me,this.changeDetection=Et,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Od.w0}ngOnInit(){const b=P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&b(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(b)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe((0,w.x)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(b){(13===b.keyCode||"Enter"===b.code)&&this.hide()}_setInputValue(b){const P=b?ts(b,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",P)}onChange(b){this.writeValue(b.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(b){const P=b.value;if(null==P||""===P)return null;if(re(P)){if(!se(P))return{bsDate:{invalid:P}};if(this._picker&&this._picker.minDate&&K(P,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&ro(P,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(b){this._validatorChange=b}writeValue(b){if(b){const P=this._localeService.currentLocale;if(!sr(P))throw new Error(`Locale "${P}" is not defined, please add it with "defineLocale(...)"`);this._value=ra(b,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=Al(this._value))}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(b){this._picker.isDisabled=b,b?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(vt,1),e.Y36(fu),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["input","bsDatepicker",""]],hostBindings:function(P,H){1&P&&e.NdJ("change",function(Et){return H.onChange(Et)})("keyup.esc",function(){return H.hide()})("keydown",function(Et){return H.onKeydownEvent(Et)})("blur",function(){return H.onBlur()})},features:[e._Bn([Kn,fi])]})}return f})(),Vi=(()=>{class f extends ol{constructor(){super(...arguments),this.displayMonths=2}static#e=this.\u0275fac=function(){let b;return function(H){return(b||(b=e.n5z(f)))(H||f)}}();static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})(),Dr=(()=>{class f{get isOpen(){return this._datepicker.isShown}set isOpen(b){this.isOpen$.next(b)}set bsValue(b){this._bsValue!==b&&(b&&this.bsConfig?.initCurrentTime&&(b=Ah(b)),this.initPreviousValue(),this._bsValue=b,this.bsValueChange.emit(b))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(b,P,H,Me,Et){this._config=b,this._elementRef=P,this._renderer=H,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Tc.x,this.isDisabled=!1,this.bsValueChange=new e.vpe,this._subs=[],this._rangeInputFormat$=new Tc.x,this._datepicker=Et.createLoader(P,Me,H),Object.assign(this,b),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new ls.X(this.isOpen)}ngOnInit(){this.isDestroy$=new Tc.x,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(b){b.bsConfig&&(b.bsConfig.currentValue?.initCurrentTime&&b.bsConfig.currentValue?.initCurrentTime!==b.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Ah(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(b.bsConfig.currentValue&&b.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(b.minDate&&(this._datepickerRef.instance.minDate=this.minDate),b.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),b.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),b.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),b.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),b.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),b.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe((0,l.h)(b=>b!==this.isOpen),(0,S.R)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:ol,useValue:this._config}).attach(bn).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(b=>{this._datepickerRef&&(this._datepickerRef.instance.value=b)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe((0,l.h)(b=>b&&b[0]&&!!b[1])).subscribe(b=>{this.initPreviousValue(),this.bsValue=b,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){go=this._bsValue}keepDatepickerModalOpened(){return!!(go&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===go?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===go?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===go?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===go?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===go?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===go?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:pu(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:Yu(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(const b of this._subs)b.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(b=>b.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Vi),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(F.oj))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(P,H){2&P&&e.uIk("readonly",H.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[e.TTD]})}return f})();const hs={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>ic),multi:!0},Vl={provide:Uc.Cf,useExisting:(0,e.Gpc)(()=>ic),multi:!0};let ic=(()=>{class f{constructor(b,P,H,Me,Et){this._picker=b,this._localeService=P,this._renderer=H,this._elRef=Me,this.changeDetection=Et,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Od.w0}ngOnInit(){this._picker._bsValue&&(P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe((0,w.x)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(b){(13===b.keyCode||"Enter"===b.code)&&this.hide()}_setInputValue(b){let P="";if(b){const H=b[0]?ts(b[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",Me=b[1]?ts(b[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";P=H&&Me?H+this._picker._config.rangeSeparator+Me:""}this._renderer.setProperty(this._elRef.nativeElement,"value",P)}onChange(b){this.writeValue(b.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(b){let P=b.value;const H=[];if(null==P||!ce(P))return null;P=P.slice().sort((yn,Gn)=>yn.getTime()-Gn.getTime());const Me=se(P[0]),Et=se(P[1]);return Me?Et?(this._picker&&this._picker.minDate&&K(P[0],this._picker.minDate,"date")&&(P[0]=this._picker.minDate,H.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&ro(P[1],this._picker.maxDate,"date")&&(P[1]=this._picker.maxDate,H.push({bsDate:{maxDate:this._picker.maxDate}})),H.length>0?(this.writeValue(P),H):null):{bsDate:{invalid:P[1]}}:{bsDate:{invalid:P[0]}}}registerOnValidatorChange(b){this._validatorChange=b}writeValue(b){if(b){const P=this._localeService.currentLocale;if(!sr(P))throw new Error(`Locale "${P}" is not defined, please add it with "defineLocale(...)"`);let Me=[];if("string"==typeof b){const Et=this._picker._config.rangeSeparator.trim();Me=b.replace(/[^-]/g,"").length>1?b.split(this._picker._config.rangeSeparator):b.split(Et.length>0?Et:this._picker._config.rangeSeparator).map(yn=>yn.trim())}Array.isArray(b)&&(Me=b),this._value=Me.map(Et=>this._picker._config.useUtc?Al(ra(Et,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):ra(Et,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(Et=>isNaN(Et.valueOf())?void 0:Et)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(b){this._picker.isDisabled=b,b?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Dr,1),e.Y36(fu),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(P,H){1&P&&e.NdJ("change",function(Et){return H.onChange(Et)})("keyup.esc",function(){return H.hide()})("keydown",function(Et){return H.onKeydownEvent(Et)})("blur",function(){return H.onBlur()})},features:[e._Bn([hs,Vl])]})}return f})(),Cs=(()=>{class f{static forRoot(){return{ngModule:f,providers:[F.oj,Zs.sA,i,lo,ud,fu,ml]}}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275mod=e.oAB({type:f});static#n=this.\u0275inj=e.cJS({imports:[zi.ez,Id.z8,Gu]})}return f})()},4060:(ft,Ie,C)=>{"use strict";C.d(Ie,{Bz:()=>re,sA:()=>ei});var e=C(3161),l=C(5879),D=C(6814),I=C(8645),S=C(3019),w=C(2438),n=C(2096),Z=C(927),ee=function(Ve){return Ve.top="top",Ve.bottom="bottom",Ve.left="left",Ve.right="right",Ve.auto="auto",Ve.end="right",Ve.start="left",Ve["top left"]="top left",Ve["top right"]="top right",Ve["right top"]="right top",Ve["right bottom"]="right bottom",Ve["bottom right"]="bottom right",Ve["bottom left"]="bottom left",Ve["left bottom"]="left bottom",Ve["left top"]="left top",Ve["top start"]="top left",Ve["top end"]="top right",Ve["end top"]="right top",Ve["end bottom"]="right bottom",Ve["bottom end"]="bottom right",Ve["bottom start"]="bottom left",Ve["start bottom"]="start bottom",Ve["start top"]="left top",Ve}(ee||{}),re=function(Ve){return Ve.top="top",Ve.bottom="bottom",Ve.left="start",Ve.right="end",Ve.auto="auto",Ve.end="end",Ve.start="start",Ve["top left"]="top start",Ve["top right"]="top end",Ve["right top"]="end top",Ve["right bottom"]="end bottom",Ve["bottom right"]="bottom end",Ve["bottom left"]="bottom start",Ve["left bottom"]="start bottom",Ve["left top"]="start top",Ve["top start"]="top start",Ve["top end"]="top end",Ve["end top"]="end top",Ve["end bottom"]="end bottom",Ve["bottom end"]="bottom end",Ve["bottom start"]="bottom start",Ve["start bottom"]="start bottom",Ve["start top"]="start top",Ve}(re||{});function ue(Ve,ct){if(1!==Ve.nodeType)return[];const Ce=Ve.ownerDocument.defaultView?.getComputedStyle(Ve,null);return ct?Ce&&Ce[ct]:Ce}function se(Ve){if(!Ve)return document.documentElement;let Ce,Ct=Ve?.offsetParent;for(;null===Ct&&Ve.nextElementSibling&&Ce!==Ve.nextElementSibling;)Ce=Ve.nextElementSibling,Ct=Ce.offsetParent;const J=Ct&&Ct.nodeName;return J&&"BODY"!==J&&"HTML"!==J?Ct&&-1!==["TH","TD","TABLE"].indexOf(Ct.nodeName)&&"static"===ue(Ct,"position")?se(Ct):Ct:Ce?Ce.ownerDocument.documentElement:document.documentElement}function oe(Ve){return null!==Ve.parentNode?oe(Ve.parentNode):Ve}function ce(Ve,ct){if(!(Ve&&Ve.nodeType&&ct&&ct.nodeType))return document.documentElement;const Ct=Ve.compareDocumentPosition(ct)&Node.DOCUMENT_POSITION_FOLLOWING,Ce=Ct?Ve:ct,J=Ct?ct:Ve,ae=document.createRange();ae.setStart(Ce,0),ae.setEnd(J,0);const Oe=ae.commonAncestorContainer;if(Ve!==Oe&&ct!==Oe||Ce.contains(J))return function te(Ve){const{nodeName:ct}=Ve;return"BODY"!==ct&&("HTML"===ct||se(Ve.firstElementChild)===Ve)}(Oe)?Oe:se(Oe);const ot=oe(Ve);return ot.host?ce(ot.host,ct):ce(Ve,oe(ct).host)}function _e(Ve){if(!Ve||!Ve.parentElement)return document.documentElement;let ct=Ve.parentElement;for(;ct?.parentElement&&"none"===ue(ct,"transform");)ct=ct.parentElement;return ct||document.documentElement}function Re(Ve,ct){const Ct="x"===ct?"Left":"Top",Ce="Left"===Ct?"Right":"Bottom";return parseFloat(Ve[`border${Ct}Width`])+parseFloat(Ve[`border${Ce}Width`])}function mt(Ve,ct,Ct,Ce){return Math.max(ct[`offset${Ve}`],ct[`scroll${Ve}`],Ct[`client${Ve}`],Ct[`offset${Ve}`],Ct[`scroll${Ve}`],0)}function Ge(Ve){const ct=Ve.body,Ct=Ve.documentElement;return{height:mt("Height",ct,Ct),width:mt("Width",ct,Ct)}}function Lt(Ve){return{...Ve,right:(Ve.left||0)+Ve.width,bottom:(Ve.top||0)+Ve.height}}function Tt(Ve){return"number"==typeof Ve||"[object Number]"===Object.prototype.toString.call(Ve)}function xt(Ve){const ct=Ve.getBoundingClientRect();if(!(ct&&Tt(ct.top)&&Tt(ct.left)&&Tt(ct.bottom)&&Tt(ct.right)))return ct;const Ct={left:ct.left,top:ct.top,width:ct.right-ct.left,height:ct.bottom-ct.top},Ce="HTML"===Ve.nodeName?Ge(Ve.ownerDocument):void 0,J=Ce?.width||Ve.clientWidth||Tt(ct.right)&&Tt(Ct.left)&&ct.right-Ct.left||0,ae=Ce?.height||Ve.clientHeight||Tt(ct.bottom)&&Tt(Ct.top)&&ct.bottom-Ct.top||0;let Oe=Ve.offsetWidth-J,ot=Ve.offsetHeight-ae;if(Oe||ot){const Se=ue(Ve);Oe-=Re(Se,"x"),ot-=Re(Se,"y"),Ct.width-=Oe,Ct.height-=ot}return Lt(Ct)}function St(Ve){return"HTML"===Ve.nodeName?Ve:Ve.parentNode||Ve.host}function Zt(Ve){if(!Ve)return document.body;switch(Ve.nodeName){case"HTML":case"BODY":return Ve.ownerDocument.body;case"#document":return Ve.body}const{overflow:ct,overflowX:Ct,overflowY:Ce}=ue(Ve);return/(auto|scroll|overlay)/.test(String(ct)+String(Ce)+String(Ct))?Ve:Zt(St(Ve))}function yt(Ve,ct,Ct=!1){const Ce="HTML"===ct.nodeName,J=xt(Ve),ae=xt(ct),ot=(Zt(Ve),ue(ct)),Se=parseFloat(ot.borderTopWidth),Ft=parseFloat(ot.borderLeftWidth);Ct&&Ce&&(ae.top=Math.max(ae.top??0,0),ae.left=Math.max(ae.left??0,0));const lt=Lt({top:(J.top??0)-(ae.top??0)-Se,left:(J.left??0)-(ae.left??0)-Ft,width:J.width,height:J.height});if(lt.marginTop=0,lt.marginLeft=0,Ce){const Bt=parseFloat(ot.marginTop),Ut=parseFloat(ot.marginLeft);Tt(lt.top)&&(lt.top-=Se-Bt),Tt(lt.bottom)&&(lt.bottom-=Se-Bt),Tt(lt.left)&&(lt.left-=Ft-Ut),Tt(lt.right)&&(lt.right-=Ft-Ut),lt.marginTop=Bt,lt.marginLeft=Ut}return lt}function un(Ve,ct="top"){const Ct="top"===ct?"scrollTop":"scrollLeft",Ce=Ve.nodeName;return"BODY"===Ce||"HTML"===Ce?(Ve.ownerDocument.scrollingElement||Ve.ownerDocument.documentElement)[Ct]:Ve[Ct]}function tn(Ve){const ct=Ve.nodeName;return"BODY"!==ct&&"HTML"!==ct&&("fixed"===ue(Ve,"position")||tn(St(Ve)))}function wn(Ve,ct,Ct=0,Ce,J=!1){let ae={top:0,left:0};const Oe=J?_e(Ve):ce(Ve,ct);if("viewport"===Ce)ae=function Jt(Ve,ct=!1){const Ct=Ve.ownerDocument.documentElement,Ce=yt(Ve,Ct),J=Math.max(Ct.clientWidth,window.innerWidth||0),ae=Math.max(Ct.clientHeight,window.innerHeight||0),Oe=ct?0:un(Ct),ot=ct?0:un(Ct,"left");return Lt({top:Oe-Number(Ce?.top)+Number(Ce?.marginTop),left:ot-Number(Ce?.left)+Number(Ce?.marginLeft),width:J,height:ae})}(Oe,J);else{let ot;"scrollParent"===Ce?(ot=Zt(St(ct)),"BODY"===ot.nodeName&&(ot=Ve.ownerDocument.documentElement)):ot="window"===Ce?Ve.ownerDocument.documentElement:Ce;const Se=yt(ot,Oe,J);if(Se&&"HTML"===ot.nodeName&&!tn(Oe)){const{height:Ft,width:lt}=Ge(Ve.ownerDocument);Tt(ae.top)&&Tt(Se.top)&&Tt(Se.marginTop)&&(ae.top+=Se.top-Se.marginTop),Tt(ae.top)&&(ae.bottom=Number(Ft)+Number(Se.top)),Tt(ae.left)&&Tt(Se.left)&&Tt(Se.marginLeft)&&(ae.left+=Se.left-Se.marginLeft),Tt(ae.top)&&(ae.right=Number(lt)+Number(Se.left))}else Se&&(ae=Se)}return Tt(ae.left)&&(ae.left+=Ct),Tt(ae.top)&&(ae.top+=Ct),Tt(ae.right)&&(ae.right-=Ct),Tt(ae.bottom)&&(ae.bottom-=Ct),ae}function Ln({width:Ve,height:ct}){return Ve*ct}function Yn(Ve,ct,Ct,Ce,J=["top","bottom","right","left"],ae="viewport",Oe=0){if(-1===Ve.indexOf("auto"))return Ve;const ot=wn(Ct,Ce,Oe,ae),Se={top:{width:ot?.width??0,height:(ct?.top??0)-(ot?.top??0)},right:{width:(ot?.right??0)-(ct?.right??0),height:ot?.height??0},bottom:{width:ot?.width??0,height:(ot?.bottom??0)-(ct?.bottom??0)},left:{width:(ct.left??0)-(ot?.left??0),height:ot?.height??0}},Ft=Object.keys(Se).map(fn=>({position:fn,...Se[fn],area:Ln(Se[fn])})).sort((fn,gn)=>gn.area-fn.area);let lt=Ft.filter(({width:fn,height:gn})=>fn>=Ct.clientWidth&&gn>=Ct.clientHeight);lt=lt.filter(({position:fn})=>J.some(gn=>gn===fn));const Bt=lt.length>0?lt[0].position:Ft[0].position,Ut=Ve.split(" ")[1];return Ct.className=Ct.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${(0,e.Wl)().isBs5?re[Bt]:Bt}`),Bt+(Ut?`-${Ut}`:"")}const dt=(Ve,ct=0)=>Ve?parseFloat(Ve):ct;function at(Ve){const Ct=Ve.ownerDocument.defaultView?.getComputedStyle(Ve),Ce=dt(Ct?.marginTop)+dt(Ct?.marginBottom),J=dt(Ct?.marginLeft)+dt(Ct?.marginRight);return{width:Number(Ve.offsetWidth)+J,height:Number(Ve.offsetHeight)+Ce}}function Be(Ve,ct,Ct){return yt(ct,Ct?_e(Ve):ce(Ve,ct),Ct)}function Ee(Ve,ct,Ct){const Ce=Ct.split(" ")[0],J=at(Ve),ae={width:J.width,height:J.height},Oe=-1!==["right","left"].indexOf(Ce),ot=Oe?"top":"left",Se=Oe?"left":"top",Ft=Oe?"height":"width",lt=Oe?"width":"height";return ae[ot]=(ct[ot]??0)+ct[Ft]/2-J[Ft]/2,ae[Se]=Ce===Se?(ct[Se]??0)-J[lt]:ct[function gi(Ve){const ct={left:"right",right:"left",bottom:"top",top:"bottom"};return Ve.replace(/left|right|bottom|top/g,Ct=>ct[Ct])}(Se)]??0,ae}function $e(Ve,ct){return!!Ve.modifiers[ct]?.enabled}const me={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function tt(Ve,ct){return!!(0,e.Wl)().isBs5&&me[ct].includes(Ve)}function rt(Ve,ct,Ct){!Ve||!ct||Object.keys(ct).forEach(Ce=>{let J="";-1!==["width","height","top","right","bottom","left"].indexOf(Ce)&&function je(Ve){return""!==Ve&&!isNaN(parseFloat(Ve))&&isFinite(Number(Ve))}(ct[Ce])&&(J="px"),Ct?Ct.setStyle(Ve,Ce,`${String(ct[Ce])}${J}`):Ve.style[Ce]=String(ct[Ce])+J})}function bt(Ve){let ct=Ve.offsets.target;const Ct=Ve.instance.target.querySelector(".arrow");if(!Ct)return Ve;const Ce=-1!==["left","right"].indexOf(Ve.placement.split(" ")[0]),J=Ce?"height":"width",ae=Ce?"Top":"Left",Oe=ae.toLowerCase(),ot=Ce?"left":"top",Se=Ce?"bottom":"right",Ft=at(Ct)[J],lt=Ve.placement.split(" ")[1];(Ve.offsets.host[Se]??0)-Ft<(ct[Oe]??0)&&(ct[Oe]-=(ct[Oe]??0)-((Ve.offsets.host[Se]??0)-Ft)),Number(Ve.offsets.host[Oe])+Number(Ft)>(ct[Se]??0)&&(ct[Oe]+=Number(Ve.offsets.host[Oe])+Number(Ft)-Number(ct[Se])),ct=Lt(ct);const Bt=ue(Ve.instance.target),Ut=parseFloat(Bt[`margin${ae}`])||0,fn=parseFloat(Bt[`border${ae}Width`])||0;let gn;if(lt){const jn=parseFloat(Bt.borderRadius)||0,ai=Number(Ut+fn+jn);gn=Oe===lt?Number(Ve.offsets.host[Oe])+ai:Number(Ve.offsets.host[Oe])+Number(Ve.offsets.host[J]-ai)}else gn=Number(Ve.offsets.host[Oe])+Number(Ve.offsets.host[J]/2-Ft/2);let An=gn-(ct[Oe]??0)-Ut-fn;return An=Math.max(Math.min(ct[J]-(Ft+5),An),0),Ve.offsets.arrow={[Oe]:Math.round(An),[ot]:""},Ve.instance.arrow=Ct,Ve}function Nt(Ve){if(Ve.offsets.target=Lt(Ve.offsets.target),!$e(Ve.options,"flip"))return Ve.offsets.target={...Ve.offsets.target,...Ee(Ve.instance.target,Ve.offsets.host,Ve.placement)},Ve;const ct=wn(Ve.instance.target,Ve.instance.host,0,"viewport",!1);let Ct=Ve.placement.split(" ")[0],Ce=Ve.placement.split(" ")[1]||"";const ot=Yn("auto",Ve.offsets.host,Ve.instance.target,Ve.instance.host,Ve.options.allowedPositions),Se=[Ct,ot];return Se.forEach((Ft,lt)=>{if(Ct!==Ft||Se.length===lt+1)return;Ct=Ve.placement.split(" ")[0];const Bt="left"===Ct&&Math.floor(Ve.offsets.target.right??0)>Math.floor(Ve.offsets.host.left??0)||"right"===Ct&&Math.floor(Ve.offsets.target.left??0)Math.floor(Ve.offsets.host.top??0)||"bottom"===Ct&&Math.floor(Ve.offsets.target.top??0)Math.floor(ct.right??0),gn=Math.floor(Ve.offsets.target.top??0)Math.floor(ct.bottom??0),jn="left"===Ct&&Ut||"right"===Ct&&fn||"top"===Ct&&gn||"bottom"===Ct&&An,ai=-1!==["top","bottom"].indexOf(Ct),di=ai&&"left"===Ce&&Ut||ai&&"right"===Ce&&fn||!ai&&"left"===Ce&&gn||!ai&&"right"===Ce&&An;(Bt||jn||di)&&((Bt||jn)&&(Ct=Se[lt+1]),di&&(Ce=function Rn(Ve){return"right"===Ve?"left":"left"===Ve?"right":Ve}(Ce)),Ve.placement=Ct+(Ce?` ${Ce}`:""),Ve.offsets.target={...Ve.offsets.target,...Ee(Ve.instance.target,Ve.offsets.host,Ve.placement)})}),Ve}function nn(Ve){if(!$e(Ve.options,"preventOverflow"))return Ve;const ct="transform",Ct=Ve.instance.target.style,{top:Ce,left:J,[ct]:ae}=Ct;Ct.top="",Ct.left="",Ct[ct]="";const Oe=wn(Ve.instance.target,Ve.instance.host,0,Ve.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);Ct.top=Ce,Ct.left=J,Ct[ct]=ae;const Se={primary(Ft){let lt=Ve.offsets.target[Ft];return(Ve.offsets.target[Ft]??0)<(Oe[Ft]??0)&&(lt=Math.max(Ve.offsets.target[Ft]??0,Oe[Ft]??0)),{[Ft]:lt}},secondary(Ft){const lt="right"===Ft,Bt=lt?"left":"top";let fn=Ve.offsets.target[Bt];return(Ve.offsets.target[Ft]??0)>(Oe[Ft]??0)&&(fn=Math.min(Ve.offsets.target[Bt]??0,(Oe[Ft]??0)-Ve.offsets.target[lt?"width":"height"])),{[Bt]:fn}}};return["left","right","top","bottom"].forEach(Ft=>{const lt=-1!==["left","top","start"].indexOf(Ft)?Se.primary:Se.secondary;Ve.offsets.target={...Ve.offsets.target,...lt(Ft)}}),Ve}function Dn(Ve){const ct=Ve.placement,Ct=ct.split(" ")[0],Ce=ct.split(" ")[1];if(Ce){const{host:J,target:ae}=Ve.offsets,Oe=-1!==["bottom","top"].indexOf(Ct),ot=Oe?"left":"top",Se=Oe?"width":"height",Ft={start:{[ot]:J[ot]},end:{[ot]:(J[ot]??0)+J[Se]-ae[Se]}};Ve.offsets.target={...ae,[ot]:ot===Ce?Ft.start[ot]:Ft.end[ot]}}return Ve}const rn=new class Ot{position(ct,Ct){return this.offset(ct,Ct)}offset(ct,Ct){return Be(Ct,ct)}positionElements(ct,Ct,Ce,J,ae){const Oe=[Nt,Dn,nn,bt],Se=function Qt(Ve,ct,Ct,Ce){if(!Ve||!ct)return;const J=Be(Ve,ct);!Ct.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!Ct.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(Ct="auto");const ae=!!Ct.match(/auto/g);let Oe=Ct.match(/auto\s(left|right|top|bottom|start|end)/)?Ct.split(" ")[1]||"auto":Ct;const ot=Oe.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return ot&&(Oe=ot[1]+(ot[2]?` ${ot[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(Oe)&&(Oe="auto"),Oe=Yn(Oe,J,Ve,ct,Ce?Ce.allowedPositions:void 0),{options:Ce||{modifiers:{}},instance:{target:Ve,host:ct,arrow:void 0},offsets:{target:Ee(Ve,J,Oe),host:J,arrow:void 0},positionFixed:!1,placement:Oe,placementAuto:ae}}(Ct,ct,ee[Ce],ae);if(Se)return Oe.reduce((Ft,lt)=>lt(Ft),Se)}};function vn(Ve,ct,Ct,Ce,J,ae){const Oe=rn.positionElements(Ve,ct,Ct,Ce,J);if(!Oe)return;const ot=function ti(Ve){return{width:Ve.offsets.target.width,height:Ve.offsets.target.height,left:Math.floor(Ve.offsets.target.left??0),top:Math.round(Ve.offsets.target.top??0),bottom:Math.round(Ve.offsets.target.bottom??0),right:Math.floor(Ve.offsets.target.right??0)}}(Oe);rt(ct,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${ot.left}px, ${ot.top}px, 0px)`},ae),Oe.instance.arrow&&rt(Oe.instance.arrow,Oe.offsets.arrow,ae),function Ze(Ve,ct){const Ct=Ve.instance.target;let Ce=Ct.className;const J=(0,e.Wl)().isBs5?re[Ve.placement]:Ve.placement;Ve.placementAuto&&(Ce=Ce.replace(/bs-popover-auto/g,`bs-popover-${J}`),Ce=Ce.replace(/ms-2|me-2|mb-2|mt-2/g,""),Ce=Ce.replace(/bs-tooltip-auto/g,`bs-tooltip-${J}`),Ce=Ce.replace(/\sauto/g,` ${J}`),-1!==Ce.indexOf("popover")&&(Ce=Ce+" "+function he(Ve){return(0,e.Wl)().isBs5?tt(Ve,"end")?"ms-2":tt(Ve,"start")?"me-2":tt(Ve,"top")?"mb-2":tt(Ve,"bottom")?"mt-2":"":""}(J)),-1!==Ce.indexOf("popover")&&-1===Ce.indexOf("popover-auto")&&(Ce+=" popover-auto"),-1!==Ce.indexOf("tooltip")&&-1===Ce.indexOf("tooltip-auto")&&(Ce+=" tooltip-auto")),Ce=Ce.replace(/left|right|top|bottom|end|start/g,`${J.split(" ")[0]}`),ct?ct.setAttribute(Ct,"class",Ce):Ct.className=Ce}(Oe,ae)}let ei=(()=>{class Ve{constructor(Ct,Ce,J){this.update$$=new I.x,this.positionElements=new Map,this.isDisabled=!1,(0,D.NF)(J)&&Ct.runOutsideAngular(()=>{this.triggerEvent$=(0,S.T)((0,w.R)(window,"scroll",{passive:!0}),(0,w.R)(window,"resize",{passive:!0}),(0,n.of)(0,Z.Z),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(ae=>{vn(Wn(ae.target),Wn(ae.element),ae.attachment,ae.appendToBody,this.options,Ce.createRenderer(null,null))})})})}position(Ct){this.addPositionElement(Ct)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(Ct){this.positionElements.set(Wn(Ct.element),Ct)}calcPosition(){this.update$$.next(null)}deletePositionElement(Ct){this.positionElements.delete(Wn(Ct))}setOptions(Ct){this.options=Ct}static#e=this.\u0275fac=function(Ce){return new(Ce||Ve)(l.LFG(l.R0b),l.LFG(l.FYo),l.LFG(l.Lbi))};static#t=this.\u0275prov=l.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})();function Wn(Ve){return"string"==typeof Ve?document.querySelector(Ve):Ve instanceof l.SBq?Ve.nativeElement:Ve??null}},2268:(ft,Ie,C)=>{"use strict";C.d(Ie,{i9:()=>se,z8:()=>te});var e=C(5879),l=C(3161),D=C(4060),I=C(7582),S=C(1835),w=C(4825),n=C(6814);const Z=["*"];let ee=(()=>{class oe{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),re=(()=>{class oe{get _bsVersions(){return(0,l.Wl)()}constructor(_e){Object.assign(this,_e)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=D.Bz[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}static#e=this.\u0275fac=function(Re){return new(Re||oe)(e.Y36(ee))};static#t=this.\u0275cmp=e.Xpm({type:oe,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(Re,mt){2&Re&&(e.uIk("id",mt.id),e.Tol("show tooltip in tooltip-"+mt.placement+" bs-tooltip-"+mt.placement+" "+mt.placement+" "+mt.containerClass))},ngContentSelectors:Z,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(Re,mt){1&Re&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}return oe})(),ue=0,se=(()=>{class oe{get isOpen(){return this._tooltip.isShown}set isOpen(_e){_e?this.show():this.hide()}set htmlContent(_e){(0,l.O4)("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=_e}set _placement(_e){(0,l.O4)("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=_e}set _isOpen(_e){(0,l.O4)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=_e}get _isOpen(){return(0,l.O4)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(_e){(0,l.O4)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!_e}get _enable(){return(0,l.O4)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(_e){(0,l.O4)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=_e?"body":this.container}get _appendToBody(){return(0,l.O4)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(_e){(0,l.O4)("tooltipClass deprecated")}set _tooltipContext(_e){(0,l.O4)("tooltipContext deprecated")}set _tooltipPopupDelay(_e){(0,l.O4)("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=_e}get _tooltipTrigger(){return(0,l.O4)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(_e){(0,l.O4)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(_e||"").toString()}constructor(_e,Re,mt,Ge,Lt,je){this._elementRef=Ge,this._renderer=Lt,this._positionService=je,this.tooltipId=ue++,this.adaptivePosition=!0,this.tooltipChange=new e.vpe,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new e.vpe,this._tooltip=Re.createLoader(this._elementRef,_e,this._renderer).provide({provide:ee,useValue:mt}),Object.assign(this,mt),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(_e=>{_e||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const _e=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(re).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},Re=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=(0,w.H)(this.delay).subscribe(()=>{_e(),Re()}),this.triggers&&(0,l.AL)(this.triggers).forEach(mt=>{mt.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,mt.close,()=>{this._delaySubscription?.unsubscribe(),Re()}))})):_e()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}static#e=this.\u0275fac=function(Re){return new(Re||oe)(e.Y36(e.s_b),e.Y36(S.oj),e.Y36(ee),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(D.sA))};static#t=this.\u0275dir=e.lG2({type:oe,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:["tooltipHtml","htmlContent"],_placement:["tooltipPlacement","_placement"],_isOpen:["tooltipIsOpen","_isOpen"],_enable:["tooltipEnable","_enable"],_appendToBody:["tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:["tooltipClass","_popupClass"],_tooltipContext:["tooltipContext","_tooltipContext"],_tooltipPopupDelay:["tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:["tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]})}return(0,I.gn)([(0,l.GU)(),(0,I.w6)("design:type",Object)],oe.prototype,"tooltip",void 0),oe})(),te=(()=>{class oe{static forRoot(){return{ngModule:oe,providers:[S.oj,D.sA]}}static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=e.oAB({type:oe});static#n=this.\u0275inj=e.cJS({imports:[n.ez]})}return oe})()},3161:(ft,Ie,C)=>{"use strict";C.d(Ie,{AL:()=>I,C:()=>Z,GU:()=>wn,O4:()=>gi,Rg:()=>n,Wl:()=>un,wo:()=>w});var e=C(5879);class l{constructor(dt,at){this.open=dt,this.close=at||dt}isManual(){return"manual"===this.open||"manual"===this.close}}const D={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function I(Rn,dt=D){const at=(Rn||"").trim();if(0===at.length)return[];const Be=at.split(/\s+/).map($e=>$e.split(":")).map($e=>{const me=dt[$e[0]]||$e;return new l(me[0],me[1])}),Ee=Be.filter($e=>$e.isManual());if(Ee.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===Ee.length&&Be.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return Be}function w(Rn,dt){const at=I(dt.triggers),Be=dt.target;if(1===at.length&&at[0].isManual())return Function.prototype;const Ee=[],$e=[],me=()=>{$e.forEach(tt=>Ee.push(tt())),$e.length=0};return at.forEach(tt=>{const he=tt.open===tt.close,Ze=he?dt.toggle:dt.show;if(!he&&tt.close&&dt.hide){const rt=tt.close,bt=dt.hide;$e.push(()=>Rn.listen(Be,rt,bt))}Ze&&Ee.push(Rn.listen(Be,tt.open,()=>Ze(me)))}),()=>{Ee.forEach(tt=>tt())}}function n(Rn,dt){return dt.outsideClick?Rn.listen("document","click",at=>{dt.target&&dt.target.contains(at.target)||dt.targets&&dt.targets.some(Be=>Be.contains(at.target))||dt.hide&&dt.hide()}):Function.prototype}function Z(Rn,dt){return dt.outsideEsc?Rn.listen("document","keyup.esc",at=>{dt.target&&dt.target.contains(at.target)||dt.targets&&dt.targets.some(Be=>Be.contains(at.target))||dt.hide&&dt.hide()}):Function.prototype}const ee=typeof window<"u"&&window||{};let Tt;function xt(){const Rn=ee.document.createElement("span");Rn.innerText="testing bs version",Rn.classList.add("d-none"),Rn.classList.add("pl-1"),ee.document.head.appendChild(Rn);const dt=ee.getComputedStyle(Rn).paddingLeft;return dt&&parseFloat(dt)?(ee.document.head.removeChild(Rn),"bs4"):(ee.document.head.removeChild(Rn),"bs5")}function un(){return{isBs4:(Tt||(Tt=xt()),"bs4"===Tt),isBs5:(Tt||(Tt=xt()),"bs5"===Tt)}}function wn(){return function(at,Be){const Ee=` __${Be}Value`;Object.defineProperty(at,Be,{get(){return this[Ee]},set($e){const me=this[Ee];this[Ee]=$e,me!==$e&&this[Be+"Change"]&&this[Be+"Change"].emit($e)}})}}const Yn={},ti=typeof console>"u"||!("warn"in console);function gi(Rn){!(0,e.X6Q)()||ti||Rn in Yn||(Yn[Rn]=!0,console.warn(Rn))}},8468:(ft,Ie,C)=>{"use strict";C.d(Ie,{Fy:()=>fn,bB:()=>oi,Mp:()=>lt});var e=C(5879),l=C(6814),D=C(8645),I=C(3019),S=C(2096),w=C(2438),n=C(9666),Z=C(9397),ee=C(2181),re=C(4664),ue=C(1374),se=C(8180),te=C(836),oe=C(7398),ce=C(9732),_e=C(9360);const mt=(qt,_t)=>(qt.push(_t),qt);var Lt=C(5177),je=C(1662),Tt=C(6825);function xt(qt,_t){}const St=function(qt,_t){return{$implicit:qt,index:_t}};function Zt(qt,_t){if(1&qt&&e.YNc(0,xt,0,0,"ng-template",4),2&qt){const G=e.oxw(),U=G.$implicit,ve=G.index,Pe=e.oxw();e.Q6J("ngTemplateOutlet",U.tplRef)("ngTemplateOutletContext",e.WLB(2,St,Pe.preparePublicSlide(U),ve))}}const yt=function(qt,_t,G,U){return{width:qt,"margin-left":_t,"margin-right":G,left:U}};function un(qt,_t){if(1&qt){const G=e.EpF();e.ynx(0),e.TgZ(1,"div",2),e.NdJ("animationend",function(){const Pe=e.CHM(G).$implicit,ut=e.oxw();return e.KtG(ut.clear(Pe.id))}),e.YNc(2,Zt,1,5,null,3),e.qZA(),e.BQk()}if(2&qt){const G=_t.$implicit;e.xp6(1),e.Q6J("ngClass",G.classes)("ngStyle",e.l5B(4,yt,G.width+"px",G.marginL?G.marginL+"px":"",G.marginR?G.marginR+"px":"",G.left))("@autoHeight",G.heightState),e.xp6(1),e.Q6J("ngIf",G.load)}}const Jt=function(qt,_t,G,U,ve){return{width:qt,transform:_t,transition:G,"padding-left":U,"padding-right":ve}},tn=function(qt,_t){return{isMouseDragable:qt,isTouchDragable:_t}};function wn(qt,_t){if(1&qt&&(e.TgZ(0,"div",4),e._UZ(1,"owl-stage",5),e.qZA()),2&qt){const G=e.oxw();e.xp6(1),e.Q6J("owlDraggable",e.WLB(3,tn,null==G.owlDOMData?null:G.owlDOMData.isMouseDragable,null==G.owlDOMData?null:G.owlDOMData.isTouchDragable))("stageData",G.stageData)("slidesData",G.slidesData)}}const Ln=function(qt,_t){return{active:qt,"owl-dot-text":_t}};function Yn(qt,_t){if(1&qt){const G=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const Pe=e.CHM(G).$implicit,ut=e.oxw(2);return e.KtG(ut.moveByDot(Pe.id))}),e._UZ(1,"span",12),e.qZA()}if(2&qt){const G=_t.$implicit;e.Q6J("ngClass",e.WLB(2,Ln,G.active,G.showInnerContent)),e.xp6(1),e.Q6J("innerHTML",G.innerContent,e.oJD)}}const ti=function(qt){return{disabled:qt}};function gi(qt,_t){if(1&qt){const G=e.EpF();e.ynx(0),e.TgZ(1,"div",6)(2,"div",7),e.NdJ("click",function(){e.CHM(G);const ve=e.oxw();return e.KtG(ve.prev())}),e.qZA(),e.TgZ(3,"div",8),e.NdJ("click",function(){e.CHM(G);const ve=e.oxw();return e.KtG(ve.next())}),e.qZA()(),e.TgZ(4,"div",9),e.YNc(5,Yn,2,5,"div",10),e.qZA(),e.BQk()}if(2&qt){const G=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(7,ti,null==G.navData?null:G.navData.disabled)),e.xp6(1),e.Q6J("ngClass",e.VKq(9,ti,null==G.navData||null==G.navData.prev?null:G.navData.prev.disabled))("innerHTML",null==G.navData||null==G.navData.prev?null:G.navData.prev.htmlText,e.oJD),e.xp6(1),e.Q6J("ngClass",e.VKq(11,ti,null==G.navData||null==G.navData.next?null:G.navData.next.disabled))("innerHTML",null==G.navData||null==G.navData.next?null:G.navData.next.htmlText,e.oJD),e.xp6(1),e.Q6J("ngClass",e.VKq(13,ti,null==G.dotsData?null:G.dotsData.disabled)),e.xp6(1),e.Q6J("ngForOf",null==G.dotsData?null:G.dotsData.dots)}}const Rn=function(qt,_t,G,U,ve){return{"owl-rtl":qt,"owl-loaded":_t,"owl-responsive":G,"owl-drag":U,"owl-grab":ve}};class dt{items=3;skip_validateItems=!1;loop=!1;center=!1;rewind=!1;mouseDrag=!0;touchDrag=!0;pullDrag=!0;freeDrag=!1;margin=0;stagePadding=0;merge=!1;mergeFit=!0;autoWidth=!1;startPosition=0;rtl=!1;smartSpeed=250;fluidSpeed=!1;dragEndSpeed=!1;responsive={};responsiveRefreshRate=200;nav=!1;navText=["prev","next"];navSpeed=!1;slideBy=1;dots=!0;dotsEach=!1;dotsData=!1;dotsSpeed=!1;autoplay=!1;autoplayTimeout=5e3;autoplayHoverPause=!1;autoplaySpeed=!1;autoplayMouseleaveTimeout=1;lazyLoad=!1;lazyLoadEager=0;slideTransition="";animateOut=!1;animateIn=!1;autoHeight=!1;URLhashListener=!1;constructor(){}}class at{items="number";skip_validateItems="boolean";loop="boolean";center="boolean";rewind="boolean";mouseDrag="boolean";touchDrag="boolean";pullDrag="boolean";freeDrag="boolean";margin="number";stagePadding="number";merge="boolean";mergeFit="boolean";autoWidth="boolean";startPosition="number|string";rtl="boolean";smartSpeed="number";fluidSpeed="boolean";dragEndSpeed="number|boolean";responsive={};responsiveRefreshRate="number";nav="boolean";navText="string[]";navSpeed="number|boolean";slideBy="number|string";dots="boolean";dotsEach="number|boolean";dotsData="boolean";dotsSpeed="number|boolean";autoplay="boolean";autoplayTimeout="number";autoplayHoverPause="boolean";autoplaySpeed="number|boolean";autoplayMouseleaveTimeout="number";lazyLoad="boolean";lazyLoadEager="number";slideTransition="string";animateOut="string|boolean";animateIn="string|boolean";autoHeight="boolean";URLhashListener="boolean";constructor(){}}let Be=(()=>{class qt{errorHandler;constructor(G){this.errorHandler=G}log(G,...U){(0,e.X6Q)()&&console.log(G,...U)}error(G){this.errorHandler.handleError(G)}warn(G,...U){console.warn(G,...U)}static \u0275fac=function(U){return new(U||qt)(e.LFG(e.qLn))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})();var $e=function(qt){return qt.Event="event",qt.State="state",qt}($e||{}),me=function(qt){return qt.Default="default",qt.Inner="inner",qt.Outer="outer",qt}(me||{});let Ze=(()=>{class qt{logger;_viewSettingsShipper$=new D.x;_initializedCarousel$=new D.x;_changeSettingsCarousel$=new D.x;_changedSettingsCarousel$=new D.x;_translateCarousel$=new D.x;_translatedCarousel$=new D.x;_resizeCarousel$=new D.x;_resizedCarousel$=new D.x;_refreshCarousel$=new D.x;_refreshedCarousel$=new D.x;_dragCarousel$=new D.x;_draggedCarousel$=new D.x;settings={items:0};owlDOMData={rtl:!1,isResponsive:!1,isRefreshed:!1,isLoaded:!1,isLoading:!1,isMouseDragable:!1,isGrab:!1,isTouchDragable:!1};stageData={transform:"translate3d(0px,0px,0px)",transition:"0s",width:0,paddingL:0,paddingR:0};slidesData;navData;dotsData;_width;_items=[];_widths=[];_supress={};_plugins={};_current=null;_clones=[];_mergers=[];_speed=null;_coordinates=[];_breakpoint=null;clonedIdPrefix="cloned-";_options={};_invalidated={};get invalidated(){return this._invalidated}_states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}};get states(){return this._states}_pipe=[{filter:["width","items","settings"],run:G=>{G.current=this._items&&this._items[this.relative(this._current)]?.id}},{filter:["width","items","settings"],run:G=>{const U=this.settings.margin||"",Pe=this.settings.rtl,ut={"margin-left":Pe?U:"","margin-right":Pe?"":U};!this.settings.autoWidth||this.slidesData.forEach(We=>{We.marginL=ut["margin-left"],We.marginR=ut["margin-right"]}),G.css=ut}},{filter:["width","items","settings"],run:G=>{const U=+(this.width()/this.settings.items).toFixed(3)-this.settings.margin,ve=!this.settings.autoWidth,Pe=[];let ut=null,We=this._items.length;for(G.items={merge:!1,width:U};We-- >0;)ut=this._mergers[We],ut=this.settings.mergeFit&&Math.min(ut,this.settings.items)||ut,G.items.merge=ut>1||G.items.merge,Pe[We]=ve?U*ut:this._items[We].width?this._items[We].width:U;this._widths=Pe,this.slidesData.forEach((ze,be)=>{ze.width=this._widths[be],ze.marginR=G.css["margin-right"],ze.marginL=G.css["margin-left"]})}},{filter:["items","settings"],run:()=>{const G=[],U=this._items,ve=this.settings,Pe=Math.max(2*ve.items,4),ut=2*Math.ceil(U.length/2);let We=[],ze=[],be=ve.loop&&U.length?ve.rewind?Pe:Math.max(Pe,ut):0;for(be/=2;be-- >0;)G.push(this.normalize(G.length/2,!0)),We.push({...this.slidesData[G[G.length-1]]}),G.push(this.normalize(U.length-1-(G.length-1)/2,!0)),ze.unshift({...this.slidesData[G[G.length-1]]});this._clones=G,We=We.map(Te=>(Te.id=`${this.clonedIdPrefix}${Te.id}`,Te.isActive=!1,Te.isCloned=!0,Te)),ze=ze.map(Te=>(Te.id=`${this.clonedIdPrefix}${Te.id}`,Te.isActive=!1,Te.isCloned=!0,Te)),this.slidesData=ze.concat(this.slidesData).concat(We)}},{filter:["width","items","settings"],run:()=>{const G=this.settings.rtl?1:-1,U=this._clones.length+this._items.length,ve=[];let Pe=-1,ut=0,We=0;for(;++Pe{const G=this.settings.stagePadding,U=this._coordinates,ve={width:Math.ceil(Math.abs(U[U.length-1]))+2*G,"padding-left":G||"","padding-right":G||""};this.stageData.width=ve.width,this.stageData.paddingL=ve["padding-left"],this.stageData.paddingR=ve["padding-right"]}},{filter:["width","items","settings"],run:G=>{let U=G.current?this.slidesData.findIndex(ve=>ve.id===G.current):0;U=Math.max(this.minimum(),Math.min(this.maximum(),U)),this.reset(U)}},{filter:["position"],run:()=>{this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:()=>{const G=this.settings.rtl?1:-1,U=2*this.settings.stagePadding,ve=[];let Pe,ut,We,ze,be,Te;if(Pe=this.coordinates(this.current()),"number"==typeof Pe?Pe+=U:Pe=0,ut=Pe+this.width()*G,-1===G&&this.settings.center){const He=this._coordinates.filter(Wt=>this.settings.items%2==1?Wt>=Pe:Wt>Pe);Pe=He.length?He[He.length-1]:Pe}for(be=0,Te=this._coordinates.length;be",ut)||this._op(ze,"<",Pe)&&this._op(ze,">",ut))&&ve.push(be);this.slidesData.forEach(He=>(He.isActive=!1,He)),ve.forEach(He=>{this.slidesData[He].isActive=!0}),this.settings.center&&(this.slidesData.forEach(He=>(He.isCentered=!1,He)),this.slidesData[this.current()].isCentered=!0)}}];constructor(G){this.logger=G}getViewCurSettings(){return this._viewSettingsShipper$.asObservable()}getInitializedState(){return this._initializedCarousel$.asObservable()}getChangeState(){return this._changeSettingsCarousel$.asObservable()}getChangedState(){return this._changedSettingsCarousel$.asObservable()}getTranslateState(){return this._translateCarousel$.asObservable()}getTranslatedState(){return this._translatedCarousel$.asObservable()}getResizeState(){return this._resizeCarousel$.asObservable()}getResizedState(){return this._resizedCarousel$.asObservable()}getRefreshState(){return this._refreshCarousel$.asObservable()}getRefreshedState(){return this._refreshedCarousel$.asObservable()}getDragState(){return this._dragCarousel$.asObservable()}getDraggedState(){return this._draggedCarousel$.asObservable()}setOptions(G){const U=new dt,ve=this._validateOptions(G,U);this._options={...U,...ve}}_validateOptions(G,U){const ve={...G},Pe=new at,ut=(We,ze)=>(this.logger.log(`options.${ze} must be type of ${We}; ${ze}=${G[ze]} skipped to defaults: ${ze}=${U[ze]}`),U[ze]);for(const We in ve)if(ve.hasOwnProperty(We))if("number"===Pe[We])this._isNumeric(ve[We])?(ve[We]=+ve[We],ve[We]="items"===We?this._validateItems(ve[We],ve.skip_validateItems):ve[We]):ve[We]=ut(Pe[We],We);else if("boolean"===Pe[We]&&"boolean"!=typeof ve[We])ve[We]=ut(Pe[We],We);else if("number|boolean"!==Pe[We]||this._isNumberOrBoolean(ve[We]))if("number|string"!==Pe[We]||this._isNumberOrString(ve[We]))if("string|boolean"!==Pe[We]||this._isStringOrBoolean(ve[We])){if("string[]"===Pe[We])if(Array.isArray(ve[We])){let ze=!1;ve[We].forEach(be=>{ze="string"==typeof be}),ze||(ve[We]=ut(Pe[We],We))}else ve[We]=ut(Pe[We],We)}else ve[We]=ut(Pe[We],We);else ve[We]=ut(Pe[We],We);else ve[We]=ut(Pe[We],We);return ve}_validateItems(G,U){let ve=G;return G>this._items.length?U?this.logger.log("The option 'items' in your options is bigger than the number of slides. The navigation got disabled"):(ve=this._items.length,this.logger.log("The option 'items' in your options is bigger than the number of slides. This option is updated to the current number of slides and the navigation got disabled")):G===this._items.length&&(this.settings.dots||this.settings.nav)&&this.logger.log("Option 'items' in your options is equal to the number of slides. So the navigation got disabled"),ve}setCarouselWidth(G){this._width=G}setup(G,U,ve){this.setCarouselWidth(G),this.setItems(U),this._defineSlidesData(),this.setOptions(ve),this.settings={...this._options},this.setOptionsForViewport(),this._trigger("change",{property:{name:"settings",value:this.settings}}),this.invalidate("settings"),this._trigger("changed",{property:{name:"settings",value:this.settings}})}setOptionsForViewport(){const G=this._width,U=this._options.responsive;let ve=-1;if(!Object.keys(U).length)return;if(!G)return void(this.settings.items=1);for(const ut in U)U.hasOwnProperty(ut)&&+ut<=G&&+ut>ve&&(ve=Number(ut));this.settings={...this._options,...U[ve],items:U[ve]&&U[ve].items?this._validateItems(U[ve].items,this._options.skip_validateItems):this._options.items},delete this.settings.responsive,this.owlDOMData.isResponsive=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag;const Pe=[];this._items.forEach(ut=>{Pe.push(this.settings.merge?ut.dataMerge:1)}),this._mergers=Pe,this._breakpoint=ve,this.invalidate("settings")}initialize(G){this.enter("initializing"),this.owlDOMData.rtl=this.settings.rtl,this._mergers.length&&(this._mergers=[]),G.forEach(U=>{this._mergers.push(this.settings.merge?U.dataMerge:1)}),this._clones=[],this.reset(this._isNumeric(this.settings.startPosition)?+this.settings.startPosition:0),this.invalidate("items"),this.refresh(),this.owlDOMData.isLoaded=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag,this.sendChanges(),this.leave("initializing"),this._trigger("initialized")}sendChanges(){this._viewSettingsShipper$.next({owlDOMData:this.owlDOMData,stageData:this.stageData,slidesData:this.slidesData,navData:this.navData,dotsData:this.dotsData})}_optionsLogic(){this.settings.autoWidth&&(this.settings.stagePadding=0,this.settings.merge=!1)}update(){let G=0;const U=this._pipe.length,ve=ut=>this._invalidated[ut],Pe={};for(;G0)&&this._pipe[G].run(Pe),G++}this.slidesData.forEach(ut=>ut.classes=this.setCurSlideClasses(ut)),this.sendChanges(),this._invalidated={},this.is("valid")||this.enter("valid")}width(G){switch(G=G||me.Default){case me.Inner:case me.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}}refresh(){this.enter("refreshing"),this._trigger("refresh"),this._defineSlidesData(),this.setOptionsForViewport(),this._optionsLogic(),this.update(),this.leave("refreshing"),this._trigger("refreshed")}onResize(G){if(!this._items.length)return!1;this.setCarouselWidth(G),this.enter("resizing"),this._trigger("resize"),this.invalidate("width"),this.refresh(),this.leave("resizing"),this._trigger("resized")}prepareDragging(G){let ve,U=null;return ve=this.stageData.transform.replace(/.*\(|\)| |[^,-\d]\w|\)/g,"").split(","),U={x:+ve[0],y:+ve[1]},this.is("animating")&&this.invalidate("position"),"mousedown"===G.type&&(this.owlDOMData.isGrab=!0),this.speed(0),U}enterDragging(){this.enter("dragging"),this._trigger("drag")}defineNewCoordsDrag(G,U){let ve=null,Pe=null,ut=null;const We=this.difference(U.pointer,this.pointer(G)),ze=this.difference(U.stage.start,We);return!!this.is("dragging")&&(this.settings.loop?(ve=this.coordinates(this.minimum()),Pe=+this.coordinates(this.maximum()+1)-ve,ze.x=((ze.x-ve)%Pe+Pe)%Pe+ve):(ve=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),Pe=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),ut=this.settings.pullDrag?-1*We.x/5:0,ze.x=Math.max(Math.min(ze.x,ve+ut),Pe+ut)),ze)}finishDragging(G,U,ve){const ut=this.difference(U.pointer,this.pointer(G)),We=U.stage.current,ze=["right","left"][+(this.settings.rtl?ut.x<+this.settings.rtl:ut.x>+this.settings.rtl)];let be,Te,He;(0!==ut.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(+this.settings.dragEndSpeed||this.settings.smartSpeed),be=this.closest(We.x,0!==ut.x?ze:U.direction),Te=this.current(),He=this.current(-1===be?void 0:be),Te!==He&&(this.invalidate("position"),this.update()),U.direction=ze,(Math.abs(ut.x)>3||(new Date).getTime()-U.time>300)&&ve()),this.is("dragging")&&(this.leave("dragging"),this._trigger("dragged"))}closest(G,U){const Pe=this.width();let ut=this.coordinates(),We=-1;this.settings.center&&(ut=ut.map(ze=>(0===ze&&(ze+=1e-6),ze)));for(let ze=0;zeut[ze]-30&&Gut[ze]-Pe-30&&G",ut[ze+1]||ut[ze]-Pe)?We="left"===U?ze+1:ze:null===U&&G>ut[ze]-30&&G",ut[this.minimum()])?We=G=this.minimum():this._op(G,"<",ut[this.maximum()])&&(We=G=this.maximum())),We}animate(G){const U=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),U&&(this.enter("animating"),this._trigger("translate")),this.stageData.transform="translate3d("+G+"px,0px,0px)",this.stageData.transition=this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}is(G){return this._states.current[G]&&this._states.current[G]>0}current(G){return void 0===G?this._current:0!==this._items.length?(G=this.normalize(G),this._current!==G&&(this._trigger("change",{property:{name:"position",value:G}}),this._current=G,this.invalidate("position"),this._trigger("changed",{property:{name:"position",value:this._current}})),this._current):void 0}invalidate(G){return"string"==typeof G&&(this._invalidated[G]=!0,this.is("valid")&&this.leave("valid")),Object.keys(this._invalidated)}reset(G){void 0!==(G=this.normalize(G))&&(this._speed=0,this._current=G,this._suppress(["translate","translated"]),this.animate(this.coordinates(G)),this._release(["translate","translated"]))}normalize(G,U){const ve=this._items.length,Pe=U?0:this._clones.length;return!this._isNumeric(G)||ve<1?G=void 0:(G<0||G>=ve+Pe)&&(G=((G-Pe/2)%ve+ve)%ve+Pe/2),G}relative(G){return this.normalize(G-=this._clones.length/2,!0)}maximum(G=!1){const U=this.settings;let Pe,ut,We,ve=this._coordinates.length;if(U.loop)ve=this._clones.length/2+this._items.length-1;else if(U.autoWidth||U.merge){for(Pe=this._items.length,ut=this.slidesData[--Pe].width,We=this._width;Pe-- >0&&(ut+=+this.slidesData[Pe].width+this.settings.margin,!(ut>We)););ve=Pe+1}else ve=U.center?this._items.length-1:this._items.length-U.items;return G&&(ve-=this._clones.length/2),Math.max(ve,0)}minimum(G=!1){return G?0:this._clones.length/2}items(G){return void 0===G?this._items.slice():(G=this.normalize(G,!0),[this._items[G]])}mergers(G){return void 0===G?this._mergers.slice():(G=this.normalize(G,!0),this._mergers[G])}clones(G){const U=this._clones.length/2,ve=U+this._items.length,Pe=ut=>ut%2==0?ve+ut/2:U-(ut+1)/2;return void 0===G?this._clones.map((ut,We)=>Pe(We)):this._clones.map((ut,We)=>ut===G?Pe(We):null).filter(ut=>ut)}speed(G){return void 0!==G&&(this._speed=G),this._speed}coordinates(G){let Pe,ut,U=1,ve=G-1;return void 0===G?(ut=this._coordinates.map((We,ze)=>this.coordinates(ze)),ut):(this.settings.center?(this.settings.rtl&&(U=-1,ve=G+1),Pe=this._coordinates[G],Pe+=(this.width()-Pe+(this._coordinates[ve]||0))/2*U):Pe=this._coordinates[ve]||0,Pe=Math.ceil(Pe),Pe)}_duration(G,U,ve){return 0===ve?0:Math.min(Math.max(Math.abs(U-G),1),6)*Math.abs(+ve||this.settings.smartSpeed)}to(G,U){let ve=this.current(),Pe=null,ut=G-this.relative(ve),We=this.maximum(),ze=0;const be=+(ut>0)-+(ut<0),Te=this._items.length,He=this.minimum();this.settings.loop?(!this.settings.rewind&&Math.abs(ut)>Te/2&&(ut+=-1*be*Te),Pe=(((G=ve+ut)-He)%Te+Te)%Te+He,Pe!==G&&Pe-ut<=We&&Pe-ut>0&&(ve=Pe-ut,G=Pe,ze=30,this.reset(ve),this.sendChanges())):this.settings.rewind?(We+=1,G=(G%We+We)%We):G=Math.max(He,Math.min(We,G)),setTimeout(()=>{this.speed(this._duration(ve,G,U)),this.current(G),this.update()},ze)}next(G){G=G||!1,this.to(this.relative(this.current())+1,G)}prev(G){G=G||!1,this.to(this.relative(this.current())-1,G)}onTransitionEnd(G){if(void 0!==G)return!1;this.leave("animating"),this._trigger("translated")}_viewport(){let G;return this._width?G=this._width:this.logger.log("Can not detect viewport width."),G}setItems(G){this._items=G}_defineSlidesData(){let G;this.slidesData&&this.slidesData.length&&(G=new Map,this.slidesData.forEach(U=>{U.load&&G.set(U.id,U.load)})),this.slidesData=this._items.map(U=>({id:`${U.id}`,isActive:!1,tplRef:U.tplRef,dataMerge:U.dataMerge,width:0,isCloned:!1,load:!!G&&G.get(U.id),hashFragment:U.dataHash}))}setCurSlideClasses(G){const U={active:G.isActive,center:G.isCentered,cloned:G.isCloned,animated:G.isAnimated,"owl-animated-in":G.isDefAnimatedIn,"owl-animated-out":G.isDefAnimatedOut};return this.settings.animateIn&&(U[this.settings.animateIn]=G.isCustomAnimatedIn),this.settings.animateOut&&(U[this.settings.animateOut]=G.isCustomAnimatedOut),U}_op(G,U,ve){const Pe=this.settings.rtl;switch(U){case"<":return Pe?G>ve:G":return Pe?Gve;case">=":return Pe?G<=ve:G>=ve;case"<=":return Pe?G>=ve:G<=ve}}_trigger(G,U,ve,Pe,ut){switch(G){case"initialized":this._initializedCarousel$.next(G);break;case"change":this._changeSettingsCarousel$.next(U);break;case"changed":this._changedSettingsCarousel$.next(U);break;case"drag":this._dragCarousel$.next(G);break;case"dragged":this._draggedCarousel$.next(G);break;case"resize":this._resizeCarousel$.next(G);break;case"resized":this._resizedCarousel$.next(G);break;case"refresh":this._refreshCarousel$.next(G);break;case"refreshed":this._refreshedCarousel$.next(G);break;case"translate":this._translateCarousel$.next(G);break;case"translated":this._translatedCarousel$.next(G)}}enter(G){[G].concat(this._states.tags[G]||[]).forEach(U=>{void 0===this._states.current[U]&&(this._states.current[U]=0),this._states.current[U]++})}leave(G){[G].concat(this._states.tags[G]||[]).forEach(U=>{(0===this._states.current[U]||this._states.current[U])&&this._states.current[U]--})}register(G){G.type===$e.State&&(this._states.tags[G.name]=this._states.tags[G.name]?this._states.tags[G.name].concat(G.tags):G.tags,this._states.tags[G.name]=this._states.tags[G.name].filter((U,ve)=>this._states.tags[G.name].indexOf(U)===ve))}_suppress(G){G.forEach(U=>{this._supress[U]=!0})}_release(G){G.forEach(U=>{delete this._supress[U]})}pointer(G){const U={x:null,y:null};return(G=(G=G.originalEvent||G||window.event).touches&&G.touches.length?G.touches[0]:G.changedTouches&&G.changedTouches.length?G.changedTouches[0]:G).pageX?(U.x=G.pageX,U.y=G.pageY):(U.x=G.clientX,U.y=G.clientY),U}_isNumeric(G){return!isNaN(parseFloat(G))}_isNumberOrBoolean(G){return this._isNumeric(G)||"boolean"==typeof G}_isNumberOrString(G){return this._isNumeric(G)||"string"==typeof G}_isStringOrBoolean(G){return"string"==typeof G||"boolean"==typeof G}difference(G,U){return null===G||null===U?{x:0,y:0}:{x:G.x-U.x,y:G.y-U.y}}static \u0275fac=function(U){return new(U||qt)(e.LFG(Be))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),rt=(()=>{class qt{carouselService;navSubscription;_initialized=!1;_pages=[];_navData={disabled:!1,prev:{disabled:!1,htmlText:""},next:{disabled:!1,htmlText:""}};_dotsData={disabled:!1,dots:[]};constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.navSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(ut=>{this.initialize(),this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),U=this.carouselService.getChangedState().pipe((0,ee.h)(ut=>"position"===ut.property.name),(0,Z.b)(ut=>{this.update()})),ve=this.carouselService.getRefreshedState().pipe((0,Z.b)(()=>{this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),Pe=(0,I.T)(G,U,ve);this.navSubscription=Pe.subscribe(()=>{})}initialize(){this._navData.disabled=!0,this._navData.prev.htmlText=this.carouselService.settings.navText[0],this._navData.next.htmlText=this.carouselService.settings.navText[1],this._dotsData.disabled=!0,this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}_updateNavPages(){let G,U,ve;const Pe=this.carouselService.clones().length/2,ut=Pe+this.carouselService.items().length,We=this.carouselService.maximum(!0),ze=[],be=this.carouselService.settings;let Te=be.center||be.autoWidth||be.dotsData?1:Math.floor(Number(be.dotsEach))||Math.floor(be.items);if(Te=+Te,"page"!==be.slideBy&&(be.slideBy=Math.min(+be.slideBy,be.items)),be.dots||"page"===be.slideBy)for(G=Pe,U=0,ve=0;G=Te||0===U){if(ze.push({start:Math.min(We,G-Pe),end:G-Pe+Te-1}),Math.min(We,G-Pe)===We)break;U=0,++ve}U+=this.carouselService.mergers(this.carouselService.relative(G))}this._pages=ze}draw(){let G;const U=this.carouselService.settings,ve=this.carouselService.items(),Pe=ve.length<=U.items;if(this._navData.disabled=!U.nav||Pe,this._dotsData.disabled=!U.dots||Pe,U.dots)if(G=this._pages.length-this._dotsData.dots.length,U.dotsData&&0!==G)this._dotsData.dots=[],ve.forEach(ut=>{this._dotsData.dots.push({active:!1,id:`dot-${ut.id}`,innerContent:ut.dotContent,showInnerContent:!0})});else if(G>0){const ut=this._dotsData.dots.length>0?this._dotsData.dots.length:0;for(let We=0;We=this.carouselService.maximum(!0)),this.carouselService.navData=this._navData}_updateDots(){let G;this.carouselService.settings.dots&&(this._dotsData.dots.forEach(U=>{!0===U.active&&(U.active=!1)}),G=this._current(),this._dotsData.dots.length&&(this._dotsData.dots[G].active=!0),this.carouselService.dotsData=this._dotsData)}_current(){const G=this.carouselService.relative(this.carouselService.current());let U;const ve=this._pages.filter((Pe,ut)=>Pe.start<=G&&Pe.end>=G).pop();return U=this._pages.findIndex(Pe=>Pe.start===ve.start&&Pe.end===ve.end),U}_getPosition(G){let U,ve;const Pe=this.carouselService.settings;return"page"===Pe.slideBy?(U=this._current(),ve=this._pages.length,G?++U:--U,U=this._pages[(U%ve+ve)%ve].start):(U=this.carouselService.relative(this.carouselService.current()),ve=this.carouselService.items().length,G?U+=+Pe.slideBy:U-=+Pe.slideBy),U}next(G){this.carouselService.to(this._getPosition(!0),G)}prev(G){this.carouselService.to(this._getPosition(!1),G)}to(G,U,ve){let Pe;!ve&&this._pages.length?(Pe=this._pages.length,this.carouselService.to(this._pages[(G%Pe+Pe)%Pe].start,U)):this.carouselService.to(G,U)}moveByDot(G){const U=this._dotsData.dots.findIndex(ve=>G===ve.id);this.to(U,this.carouselService.settings.dotsSpeed)}toSlideById(G){const U=this.carouselService.slidesData.findIndex(ve=>ve.id===G&&!1===ve.isCloned);-1===U||U===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(U),!1)}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})();const bt=new e.OlP("WindowToken");class Nt{get nativeWindow(){throw new Error("Not implemented.")}}const rn=[{provide:Nt,useClass:(()=>{class qt extends Nt{constructor(){super()}get nativeWindow(){return window}static \u0275fac=function(U){return new(U||qt)};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})()},{provide:bt,useFactory:function nn(qt,_t){return(0,l.NF)(_t)?qt.nativeWindow:{setTimeout:(U,ve)=>{},clearTimeout:U=>{}}},deps:[Nt,e.Lbi]}],vn=new e.OlP("DocumentToken");class ei{get nativeDocument(){throw new Error("Not implemented.")}}const Ce=[{provide:ei,useClass:(()=>{class qt extends ei{constructor(){super()}get nativeDocument(){return document}static \u0275fac=function(U){return new(U||qt)};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})()},{provide:vn,useFactory:function Ve(qt,_t){return(0,l.NF)(_t)?qt.nativeDocument:{hidden:!1,visibilityState:"visible"}},deps:[ei,e.Lbi]}];let J=(()=>{class qt{carouselService;ngZone;autoplaySubscription;_timeout=null;_paused=!1;_isArtificialAutoplayTimeout;_isAutoplayStopped=!1;get isAutoplayStopped(){return this._isAutoplayStopped}set isAutoplayStopped(G){this._isAutoplayStopped=G}winRef;docRef;constructor(G,U,ve,Pe){this.carouselService=G,this.ngZone=Pe,this.winRef=U,this.docRef=ve,this.spyDataStreams()}ngOnDestroy(){this.autoplaySubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{this.carouselService.settings.autoplay&&this.play()})),U=this.carouselService.getChangedState().pipe((0,Z.b)(ut=>{this._handleChangeObservable(ut)})),ve=this.carouselService.getResizedState().pipe((0,Z.b)(()=>{this.carouselService.settings.autoplay&&!this._isAutoplayStopped?this.play():this.stop()})),Pe=(0,I.T)(G,U,ve);this.autoplaySubscription=Pe.subscribe(()=>{})}play(G,U){this._paused&&(this._paused=!1,this._setAutoPlayInterval(this.carouselService.settings.autoplayMouseleaveTimeout)),!this.carouselService.is("rotating")&&(this.carouselService.enter("rotating"),this._setAutoPlayInterval())}_getNextTimeout(G,U){return this._timeout&&this.winRef.clearTimeout(this._timeout),this._isArtificialAutoplayTimeout=!!G,this.ngZone.runOutsideAngular(()=>this.winRef.setTimeout(()=>{this.ngZone.run(()=>{this._paused||this.carouselService.is("busy")||this.carouselService.is("interacting")||this.docRef.hidden||this.carouselService.next(U||this.carouselService.settings.autoplaySpeed)})},G||this.carouselService.settings.autoplayTimeout))}_setAutoPlayInterval(G){this._timeout=this._getNextTimeout(G)}stop(){this.carouselService.is("rotating")&&(this._paused=!0,this.winRef.clearTimeout(this._timeout),this.carouselService.leave("rotating"))}pause(){this.carouselService.is("rotating")&&(this._paused=!0)}_handleChangeObservable(G){"settings"===G.property.name?this.carouselService.settings.autoplay?this.play():this.stop():"position"===G.property.name&&this.carouselService.settings.autoplay&&this._setAutoPlayInterval()}_playAfterTranslated(){(0,S.of)("translated").pipe((0,re.w)(G=>this.carouselService.getTranslatedState()),(0,ue.P)(),(0,ee.h)(()=>this._isArtificialAutoplayTimeout),(0,Z.b)(()=>this._setAutoPlayInterval())).subscribe(()=>{})}startPausing(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&this.pause()}startPlayingMouseLeave(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}startPlayingTouchEnd(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze),e.LFG(bt),e.LFG(vn),e.LFG(e.R0b))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),ae=(()=>{class qt{carouselService;lazyLoadSubscription;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.lazyLoadSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{const ut=this.carouselService.settings&&!this.carouselService.settings.lazyLoad;this.carouselService.slidesData.forEach(We=>We.load=!!ut)})),U=this.carouselService.getChangeState(),ve=this.carouselService.getResizedState(),Pe=(0,I.T)(G,U,ve).pipe((0,Z.b)(ut=>this._defineLazyLoadSlides(ut)));this.lazyLoadSubscription=Pe.subscribe(()=>{})}_defineLazyLoadSlides(G){if(this.carouselService.settings&&this.carouselService.settings.lazyLoad&&(G.property&&"position"===G.property.name||"initialized"===G||"resized"===G)){const U=this.carouselService.settings,ve=this.carouselService.clones().length;let Pe=U.center&&Math.ceil(U.items/2)||U.items,ut=U.center&&-1*Pe||0,We=(G.property&&void 0!==G.property.value?G.property.value:this.carouselService.current())+ut;for(U.lazyLoadEager>0&&(Pe+=U.lazyLoadEager,U.loop&&(We-=U.lazyLoadEager,Pe++));ut++this._load(ze)),We++}}_load(G){this.carouselService.slidesData[G].load||(this.carouselService.slidesData[G].load=!0)}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Oe=(()=>{class qt{carouselService;animateSubscription;swapping=!0;previous=void 0;next=void 0;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.animateSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getChangeState().pipe((0,Z.b)(be=>{"position"===be.property.name&&(this.previous=this.carouselService.current(),this.next=be.property.value)})),U=this.carouselService.getDragState(),ve=this.carouselService.getDraggedState(),Pe=this.carouselService.getTranslatedState(),ut=(0,I.T)(U,ve,Pe).pipe((0,Z.b)(be=>this.swapping="translated"===be)),We=this.carouselService.getTranslateState().pipe((0,Z.b)(be=>{this.swapping&&(this.carouselService._options.animateOut||this.carouselService._options.animateIn)&&this._swap()})),ze=(0,I.T)(G,We,ut).pipe();this.animateSubscription=ze.subscribe(()=>{})}_swap(){if(1!==this.carouselService.settings.items)return;let G;this.carouselService.speed(0);const U=this.carouselService.slidesData[this.previous],ve=this.carouselService.slidesData[this.next],Pe=this.carouselService.settings.animateIn,ut=this.carouselService.settings.animateOut;this.carouselService.current()!==this.previous&&(ut&&(G=+this.carouselService.coordinates(this.previous)-+this.carouselService.coordinates(this.next),this.carouselService.slidesData.forEach(We=>{We.id===U.id&&(We.left=`${G}px`,We.isAnimated=!0,We.isDefAnimatedOut=!0,We.isCustomAnimatedOut=!0)})),Pe&&this.carouselService.slidesData.forEach(We=>{We.id===ve.id&&(We.isAnimated=!0,We.isDefAnimatedIn=!0,We.isCustomAnimatedIn=!0)}))}clear(G){this.carouselService.slidesData.forEach(U=>{U.id===G&&(U.left="",U.isAnimated=!1,U.isDefAnimatedOut=!1,U.isCustomAnimatedOut=!1,U.isDefAnimatedIn=!1,U.isCustomAnimatedIn=!1,U.classes=this.carouselService.setCurSlideClasses(U))}),this.carouselService.onTransitionEnd()}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),ot=(()=>{class qt{carouselService;autoHeightSubscription;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.autoHeightSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight?this.update():this.carouselService.slidesData.forEach(We=>We.heightState="full")})),U=this.carouselService.getChangedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight&&"position"===ut.property.name&&this.update()})),ve=this.carouselService.getRefreshedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight&&this.update()})),Pe=(0,I.T)(G,U,ve);this.autoHeightSubscription=Pe.subscribe(()=>{})}update(){const G=this.carouselService.settings.items;let U=this.carouselService.current(),ve=U+G;this.carouselService.settings.center&&(U=G%2==1?U-(G-1)/2:U-G/2,ve=G%2==1?U+G:U+G+1),this.carouselService.slidesData.forEach((Pe,ut)=>{Pe.heightState=ut>=U&&ut{class qt{carouselService;route;router;hashSubscription;currentHashFragment;constructor(G,U,ve){this.carouselService=G,this.route=U,this.router=ve,this.spyDataStreams(),this.route||(this.route={fragment:(0,S.of)("no route").pipe((0,se.q)(1))}),this.router||(this.router={navigate:(Pe,ut)=>{}})}ngOnDestroy(){this.hashSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>this.listenToRoute())),U=this.carouselService.getChangedState().pipe((0,Z.b)(Pe=>{if(this.carouselService.settings.URLhashListener&&"position"===Pe.property.name){const ut=this.carouselService.current(),We=this.carouselService.slidesData[ut].hashFragment;if(!We||We===this.currentHashFragment)return;this.router.navigate(["./"],{fragment:We,relativeTo:this.route})}})),ve=(0,I.T)(G,U);this.hashSubscription=ve.subscribe(()=>{})}rewind(G){const U=this.carouselService.slidesData.findIndex(ve=>ve.hashFragment===G&&!1===ve.isCloned);-1===U||U===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(U),!1)}listenToRoute(){this.route.fragment.pipe((0,te.T)("URLHash"===this.carouselService.settings.startPosition?0:2)).subscribe(U=>{this.currentHashFragment=U,this.rewind(U)})}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze),e.LFG(je.gz,8),e.LFG(je.F0,8))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Ft=0,lt=(()=>{class qt{tplRef;id="owl-slide-"+Ft++;_dataMerge=1;set dataMerge(G){this._dataMerge=this.isNumeric(G)?G:1}get dataMerge(){return this._dataMerge}width=0;dotContent="";dataHash="";constructor(G){this.tplRef=G}isNumeric(G){return!isNaN(parseFloat(G))}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.Rgc))};static \u0275dir=e.lG2({type:qt,selectors:[["ng-template","carouselSlide",""]],inputs:{id:"id",dataMerge:"dataMerge",width:"width",dotContent:"dotContent",dataHash:"dataHash"}})}return qt})(),Bt=(()=>{class qt{resizeObservable$;get onResize$(){return this.resizeObservable$}constructor(G,U){this.resizeObservable$=(0,l.NF)(U)?(0,w.R)(G,"resize"):(new D.x).asObservable()}static \u0275fac=function(U){return new(U||qt)(e.LFG(bt),e.LFG(e.Lbi))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Ut=(()=>{class qt{zone;el;renderer;carouselService;animateService;owlDraggable;stageData;slidesData;listenerMouseMove;listenerTouchMove;listenerOneMouseMove;listenerOneTouchMove;listenerMouseUp;listenerTouchEnd;listenerOneClick;listenerATag;_drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1};_oneDragMove$=new D.x;_oneMoveSubsription;preparePublicSlide=G=>{const U={...G};return delete U.tplRef,U};constructor(G,U,ve,Pe,ut){this.zone=G,this.el=U,this.renderer=ve,this.carouselService=Pe,this.animateService=ut}onMouseDown(G){this.owlDraggable.isMouseDragable&&this._onDragStart(G)}onTouchStart(G){if(G.targetTouches.length>=2)return!1;this.owlDraggable.isTouchDragable&&this._onDragStart(G)}onTouchCancel(G){this._onDragEnd(G)}onDragStart(){if(this.owlDraggable.isMouseDragable)return!1}onSelectStart(){if(this.owlDraggable.isMouseDragable)return!1}ngOnInit(){this._oneMoveSubsription=this._oneDragMove$.pipe((0,ue.P)()).subscribe(()=>{this._sendChanges()})}ngOnDestroy(){this._oneMoveSubsription.unsubscribe()}bindOneMouseTouchMove=G=>{this._oneMouseTouchMove(G)};bindOnDragMove=G=>{this._onDragMove(G)};bindOnDragEnd=G=>{this._onDragEnd(G)};_onDragStart(G){let U=null;3!==G.which&&(U=this._prepareDragging(G),this._drag.time=(new Date).getTime(),this._drag.target=G.target,this._drag.stage.start=U,this._drag.stage.current=U,this._drag.pointer=this._pointer(G),this.listenerMouseUp=this.renderer.listen(document,"mouseup",this.bindOnDragEnd),this.listenerTouchEnd=this.renderer.listen(document,"touchend",this.bindOnDragEnd),this.zone.runOutsideAngular(()=>{this.listenerOneMouseMove=this.renderer.listen(document,"mousemove",this.bindOneMouseTouchMove),this.listenerOneTouchMove=this.renderer.listen(document,"touchmove",this.bindOneMouseTouchMove)}))}_oneMouseTouchMove(G){const U=this._difference(this._drag.pointer,this._pointer(G));this.listenerATag&&this.listenerATag(),!(Math.abs(U.x)<3&&Math.abs(U.y)<3&&this._is("valid"))&&(Math.abs(U.x)<3&&Math.abs(U.x)!1))}_onDragMove(G){let U;const ve=this.carouselService.defineNewCoordsDrag(G,this._drag);!1!==ve&&(U=ve,G.preventDefault(),this._drag.stage.current=U,this._animate(U.x-this._drag.stage.start.x))}_animate(G){this.renderer.setStyle(this.el.nativeElement.children[0],"transform",`translate3d(${G}px,0px,0px`),this.renderer.setStyle(this.el.nativeElement.children[0],"transition","0s")}_onDragEnd(G){this.carouselService.owlDOMData.isGrab=!1,this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving&&(this.renderer.setStyle(this.el.nativeElement.children[0],"transform",""),this.renderer.setStyle(this.el.nativeElement.children[0],"transition",this.carouselService.speed(+this.carouselService.settings.dragEndSpeed||this.carouselService.settings.smartSpeed)/1e3+"s"),this._finishDragging(G),this.listenerMouseMove(),this.listenerTouchMove()),this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this.listenerMouseUp(),this.listenerTouchEnd()}_prepareDragging(G){return this.carouselService.prepareDragging(G)}_oneClickHandler=()=>{this.listenerOneClick=this.renderer.listen(this._drag.target,"click",()=>!1),this.listenerOneClick()};_finishDragging(G){this.carouselService.finishDragging(G,this._drag,this._oneClickHandler)}_pointer(G){return this.carouselService.pointer(G)}_difference(G,U){return this.carouselService.difference(G,U)}_is(G){return this.carouselService.is(G)}_enter(G){this.carouselService.enter(G)}_sendChanges(){this.carouselService.sendChanges()}onTransitionEnd(){this.carouselService.onTransitionEnd()}_enterDragging(){this.carouselService.enterDragging()}clear(G){this.animateService.clear(G)}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ze),e.Y36(Oe))};static \u0275cmp=e.Xpm({type:qt,selectors:[["owl-stage"]],hostBindings:function(U,ve){1&U&&e.NdJ("mousedown",function(ut){return ve.onMouseDown(ut)})("touchstart",function(ut){return ve.onTouchStart(ut)})("touchcancel",function(ut){return ve.onTouchCancel(ut)})("dragstart",function(){return ve.onDragStart()})("selectstart",function(){return ve.onSelectStart()})},inputs:{owlDraggable:"owlDraggable",stageData:"stageData",slidesData:"slidesData"},decls:3,vars:8,consts:[[1,"owl-stage",3,"ngStyle","transitionend"],[4,"ngFor","ngForOf"],[1,"owl-item",3,"ngClass","ngStyle","animationend"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(U,ve){1&U&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("transitionend",function(){return ve.onTransitionEnd()}),e.YNc(2,un,3,9,"ng-container",1),e.qZA()()),2&U&&(e.xp6(1),e.Q6J("ngStyle",e.qbA(2,Jt,ve.stageData.width+"px",ve.stageData.transform,ve.stageData.transition,ve.stageData.paddingL?ve.stageData.paddingL+"px":"",ve.stageData.paddingR?ve.stageData.paddingR+"px":"")),e.xp6(1),e.Q6J("ngForOf",ve.slidesData))},dependencies:[l.mk,l.sg,l.O5,l.tP,l.PC],encapsulation:2,data:{animation:[(0,Tt.X$)("autoHeight",[(0,Tt.SB)("nulled",(0,Tt.oB)({height:0})),(0,Tt.SB)("full",(0,Tt.oB)({height:"*"})),(0,Tt.eR)("full => nulled",[(0,Tt.jt)("700ms 350ms")]),(0,Tt.eR)("nulled => full",[(0,Tt.jt)(350)])])]}})}return qt})(),fn=(()=>{class qt{el;resizeService;carouselService;navigationService;autoplayService;lazyLoadService;animateService;autoHeightService;hashService;logger;changeDetectorRef;slides;translated=new e.vpe;dragging=new e.vpe;change=new e.vpe;changed=new e.vpe;initialized=new e.vpe;carouselWindowWidth;resizeSubscription;_allObservSubscription;_slidesChangesSubscription;owlDOMData;stageData;slidesData=[];navData;dotsData;slidesOutputData;carouselLoaded=!1;options;prevOptions;_viewCurSettings$;_translatedCarousel$;_draggingCarousel$;_changeCarousel$;_changedCarousel$;_initializedCarousel$;_carouselMerge$;docRef;constructor(G,U,ve,Pe,ut,We,ze,be,Te,He,Wt,Pn){this.el=G,this.resizeService=U,this.carouselService=ve,this.navigationService=Pe,this.autoplayService=ut,this.lazyLoadService=We,this.animateService=ze,this.autoHeightService=be,this.hashService=Te,this.logger=He,this.changeDetectorRef=Wt,this.docRef=Pn}onVisibilityChange(G){if(this.carouselService.settings.autoplay)switch(this.docRef.visibilityState){case"visible":!this.autoplayService.isAutoplayStopped&&this.autoplayService.play();break;case"hidden":this.autoplayService.pause()}}ngOnInit(){this.spyDataStreams(),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}ngOnChanges(){this.prevOptions!==this.options&&(this.prevOptions&&this.slides?.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray())):this.prevOptions&&!this.slides?.toArray().length?(this.carouselLoaded=!1,this.logger.log("There are no slides to show. So the carousel won't be re-rendered")):this.carouselLoaded=!1,this.prevOptions=this.options)}ngAfterContentInit(){this.slides.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray()),this._winResizeWatcher()):this.logger.log("There are no slides to show. So the carousel won't be rendered"),this._slidesChangesSubscription=this.slides.changes.pipe((0,Z.b)(G=>{this.carouselService.setup(this.carouselWindowWidth,G.toArray(),this.options),this.carouselService.initialize(G.toArray()),G.toArray().length||(this.carouselLoaded=!1),G.toArray().length&&!this.resizeSubscription&&this._winResizeWatcher()})).subscribe(()=>{})}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe(),this._slidesChangesSubscription&&this._slidesChangesSubscription.unsubscribe(),this._allObservSubscription&&this._allObservSubscription.unsubscribe()}spyDataStreams(){this._viewCurSettings$=this.carouselService.getViewCurSettings().pipe((0,Z.b)(G=>{this.owlDOMData=G.owlDOMData,this.stageData=G.stageData,this.slidesData=G.slidesData,this.carouselLoaded||(this.carouselLoaded=!0),this.navData=G.navData,this.dotsData=G.dotsData,this.changeDetectorRef.markForCheck()})),this._initializedCarousel$=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.initialized.emit(this.slidesOutputData)})),this._translatedCarousel$=this.carouselService.getTranslatedState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.translated.emit(this.slidesOutputData)})),this._changeCarousel$=this.carouselService.getChangeState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.change.emit(this.slidesOutputData)})),this._changedCarousel$=this.carouselService.getChangeState().pipe((0,re.w)(G=>{const U=(0,S.of)(G).pipe((0,ee.h)(()=>"position"===G.property.name),(0,re.w)(()=>(0,n.D)(this.slidesData)),(0,te.T)(G.property.value),(0,se.q)(this.carouselService.settings.items),(0,oe.U)(ve=>{const Pe=this.carouselService.clonedIdPrefix,ut=ve.id.indexOf(Pe)>=0?ve.id.slice(Pe.length):ve.id;return{...ve,id:ut,isActive:!0}}),function Ge(){return(0,_e.e)((qt,_t)=>{(function Re(qt,_t){return(0,_e.e)((0,ce.U)(qt,_t,arguments.length>=2,!1,!0))})(mt,[])(qt).subscribe(_t)})}(),(0,oe.U)(ve=>({slides:ve,startPosition:this.carouselService.relative(G.property.value)})));return(0,I.T)(U)}),(0,Z.b)(G=>{this.gatherTranslatedData(),this.changed.emit(G.slides.length?G:this.slidesOutputData)})),this._draggingCarousel$=this.carouselService.getDragState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.dragging.emit({dragging:!0,data:this.slidesOutputData})}),(0,re.w)(()=>this.carouselService.getDraggedState().pipe((0,oe.U)(()=>!!this.carouselService.is("animating")))),(0,re.w)(G=>G?this.carouselService.getTranslatedState().pipe((0,ue.P)()):(0,S.of)("not animating")),(0,Z.b)(()=>{this.dragging.emit({dragging:!1,data:this.slidesOutputData})})),this._carouselMerge$=(0,I.T)(this._viewCurSettings$,this._translatedCarousel$,this._draggingCarousel$,this._changeCarousel$,this._changedCarousel$,this._initializedCarousel$),this._allObservSubscription=this._carouselMerge$.subscribe(()=>{})}_winResizeWatcher(){Object.keys(this.carouselService._options.responsive).length&&(this.resizeSubscription=this.resizeService.onResize$.pipe((0,ee.h)(()=>this.carouselWindowWidth!==this.el.nativeElement.querySelector(".owl-carousel").clientWidth),(0,Lt.g)(this.carouselService.settings.responsiveRefreshRate)).subscribe(()=>{this.carouselService.onResize(this.el.nativeElement.querySelector(".owl-carousel").clientWidth),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}))}onTransitionEnd(){this.carouselService.onTransitionEnd()}next(){this.carouselLoaded&&this.navigationService.next(this.carouselService.settings.navSpeed)}prev(){this.carouselLoaded&&this.navigationService.prev(this.carouselService.settings.navSpeed)}moveByDot(G){this.carouselLoaded&&this.navigationService.moveByDot(G)}to(G){this.carouselLoaded&&this.navigationService.toSlideById(G)}gatherTranslatedData(){let G;const U=this.carouselService.clonedIdPrefix,ve=this.slidesData.filter(Pe=>!0===Pe.isActive).map(Pe=>({id:Pe.id.indexOf(U)>=0?Pe.id.slice(U.length):Pe.id,width:Pe.width,marginL:Pe.marginL,marginR:Pe.marginR,center:Pe.isCentered}));G=this.carouselService.relative(this.carouselService.current()),this.slidesOutputData={startPosition:G,slides:ve}}startPausing(){this.autoplayService.startPausing()}startPlayML(){this.autoplayService.startPlayingMouseLeave()}startPlayTE(){this.autoplayService.startPlayingTouchEnd()}stopAutoplay(){this.autoplayService.isAutoplayStopped=!0,this.autoplayService.stop()}startAutoplay(){this.autoplayService.isAutoplayStopped=!1,this.autoplayService.play()}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.SBq),e.Y36(Bt),e.Y36(Ze),e.Y36(rt),e.Y36(J),e.Y36(ae),e.Y36(Oe),e.Y36(ot),e.Y36(Se),e.Y36(Be),e.Y36(e.sBO),e.Y36(vn))};static \u0275cmp=e.Xpm({type:qt,selectors:[["owl-carousel-o"]],contentQueries:function(U,ve,Pe){if(1&U&&e.Suo(Pe,lt,4),2&U){let ut;e.iGM(ut=e.CRH())&&(ve.slides=ut)}},hostBindings:function(U,ve){1&U&&e.NdJ("visibilitychange",function(ut){return ve.onVisibilityChange(ut)},!1,e.evT)},inputs:{options:"options"},outputs:{translated:"translated",dragging:"dragging",change:"change",changed:"changed",initialized:"initialized"},features:[e._Bn([rt,J,Ze,ae,Oe,ot,Se]),e.TTD],decls:4,vars:9,consts:[[1,"owl-carousel","owl-theme",3,"ngClass","mouseover","mouseleave","touchstart","touchend"],["owlCarousel",""],["class","owl-stage-outer",4,"ngIf"],[4,"ngIf"],[1,"owl-stage-outer"],[3,"owlDraggable","stageData","slidesData"],[1,"owl-nav",3,"ngClass"],[1,"owl-prev",3,"ngClass","innerHTML","click"],[1,"owl-next",3,"ngClass","innerHTML","click"],[1,"owl-dots",3,"ngClass"],["class","owl-dot",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"owl-dot",3,"ngClass","click"],[3,"innerHTML"]],template:function(U,ve){1&U&&(e.TgZ(0,"div",0,1),e.NdJ("mouseover",function(){return ve.startPausing()})("mouseleave",function(){return ve.startPlayML()})("touchstart",function(){return ve.startPausing()})("touchend",function(){return ve.startPlayTE()}),e.YNc(2,wn,2,6,"div",2),e.YNc(3,gi,6,15,"ng-container",3),e.qZA()),2&U&&(e.Q6J("ngClass",e.qbA(3,Rn,null==ve.owlDOMData?null:ve.owlDOMData.rtl,null==ve.owlDOMData?null:ve.owlDOMData.isLoaded,null==ve.owlDOMData?null:ve.owlDOMData.isResponsive,null==ve.owlDOMData?null:ve.owlDOMData.isMouseDragable,null==ve.owlDOMData?null:ve.owlDOMData.isGrab)),e.xp6(2),e.Q6J("ngIf",ve.carouselLoaded),e.xp6(1),e.Q6J("ngIf",ve.slides.toArray().length))},dependencies:[l.mk,l.sg,l.O5,Ut],styles:[".owl-theme[_ngcontent-%COMP%]{display:block}"],changeDetection:0})}return qt})(),oi=(()=>{class qt{static \u0275fac=function(U){return new(U||qt)};static \u0275mod=e.oAB({type:qt});static \u0275inj=e.cJS({providers:[rn,Bt,Ce,Be],imports:[l.ez]})}return qt})()},2425:(ft,Ie,C)=>{"use strict";C.d(Ie,{FN:()=>Ln,Rh:()=>gi,_W:()=>wn});var e=C(5879),l=C(6825),D=C(6814),I=C(8645),S=C(6593);const w=["toast-component",""];function n(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.remove())}),e.TgZ(1,"span",6),e._uU(2,"\xd7"),e.qZA()()}}function Z(Ee,$e){if(1&Ee&&(e.ynx(0),e._uU(1),e.BQk()),2&Ee){const me=e.oxw(2);e.xp6(1),e.hij("[",me.duplicatesCount+1,"]")}}function ee(Ee,$e){if(1&Ee&&(e.TgZ(0,"div"),e._uU(1),e.YNc(2,Z,2,1,"ng-container",4),e.qZA()),2&Ee){const me=e.oxw();e.Tol(me.options.titleClass),e.uIk("aria-label",me.title),e.xp6(1),e.hij(" ",me.title," "),e.xp6(1),e.Q6J("ngIf",me.duplicatesCount)}}function re(Ee,$e){if(1&Ee&&e._UZ(0,"div",7),2&Ee){const me=e.oxw();e.Tol(me.options.messageClass),e.Q6J("innerHTML",me.message,e.oJD)}}function ue(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&Ee){const me=e.oxw();e.Tol(me.options.messageClass),e.uIk("aria-label",me.message),e.xp6(1),e.hij(" ",me.message," ")}}function se(Ee,$e){if(1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"div",9),e.qZA()),2&Ee){const me=e.oxw();e.xp6(1),e.Udp("width",me.width+"%")}}class Lt{_attachedHost;component;viewContainerRef;injector;constructor($e,me){this.component=$e,this.injector=me}attach($e,me){return this._attachedHost=$e,$e.attach(this,me)}detach(){const $e=this._attachedHost;if($e)return this._attachedHost=void 0,$e.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost($e){this._attachedHost=$e}}class je{_attachedPortal;_disposeFn;attach($e,me){return this._attachedPortal=$e,this.attachComponentPortal($e,me)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn($e){this._disposeFn=$e}}class Tt{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new I.x;_activate=new I.x;_manualClose=new I.x;_resetTimeout=new I.x;_countDuplicate=new I.x;constructor($e){this._overlayRef=$e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate($e,me){$e&&this._resetTimeout.next(),me&&this._countDuplicate.next(++this.duplicatesCount)}}class xt{toastId;config;message;title;toastType;toastRef;_onTap=new I.x;_onAction=new I.x;constructor($e,me,tt,he,Ze,rt){this.toastId=$e,this.config=me,this.message=tt,this.title=he,this.toastType=Ze,this.toastRef=rt,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction($e){this._onAction.next($e)}onAction(){return this._onAction.asObservable()}}const Zt=new e.OlP("ToastConfig");class yt extends je{_hostDomElement;_componentFactoryResolver;_appRef;constructor($e,me,tt){super(),this._hostDomElement=$e,this._componentFactoryResolver=me,this._appRef=tt}attachComponentPortal($e,me){const tt=this._componentFactoryResolver.resolveComponentFactory($e.component);let he;return he=tt.create($e.injector),this._appRef.attachView(he.hostView),this.setDisposeFn(()=>{this._appRef.detachView(he.hostView),he.destroy()}),me?this._hostDomElement.insertBefore(this._getComponentRootNode(he),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(he)),he}_getComponentRootNode($e){return $e.hostView.rootNodes[0]}}let un=(()=>{class Ee{_document=(0,e.f3M)(D.K0);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const me=this._document.createElement("div");me.classList.add("overlay-container"),me.setAttribute("aria-live","polite"),this._document.body.appendChild(me),this._containerElement=me}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();class Jt{_portalHost;constructor($e){this._portalHost=$e}attach($e,me=!0){return this._portalHost.attach($e,me)}detach(){return this._portalHost.detach()}}let tn=(()=>{class Ee{_overlayContainer=(0,e.f3M)(un);_componentFactoryResolver=(0,e.f3M)(e._Vd);_appRef=(0,e.f3M)(e.z2F);_document=(0,e.f3M)(D.K0);_paneElements=new Map;create(me,tt){return this._createOverlayRef(this.getPaneElement(me,tt))}getPaneElement(me="",tt){return this._paneElements.get(tt)||this._paneElements.set(tt,{}),this._paneElements.get(tt)[me]||(this._paneElements.get(tt)[me]=this._createPaneElement(me,tt)),this._paneElements.get(tt)[me]}_createPaneElement(me,tt){const he=this._document.createElement("div");return he.id="toast-container",he.classList.add(me),he.classList.add("toast-container"),tt?tt.getContainerElement().appendChild(he):this._overlayContainer.getContainerElement().appendChild(he),he}_createPortalHost(me){return new yt(me,this._componentFactoryResolver,this._appRef)}_createOverlayRef(me){return new Jt(this._createPortalHost(me))}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),wn=(()=>{class Ee{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(me,tt,he,Ze,rt){this.overlay=tt,this._injector=he,this.sanitizer=Ze,this.ngZone=rt,this.toastrConfig={...me.default,...me.config},me.config.iconClasses&&(this.toastrConfig.iconClasses={...me.default.iconClasses,...me.config.iconClasses})}show(me,tt,he={},Ze=""){return this._preBuildNotification(Ze,me,tt,this.applyConfig(he))}success(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",me,tt,this.applyConfig(he))}error(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",me,tt,this.applyConfig(he))}info(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",me,tt,this.applyConfig(he))}warning(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",me,tt,this.applyConfig(he))}clear(me){for(const tt of this.toasts)if(void 0!==me){if(tt.toastId===me)return void tt.toastRef.manualClose()}else tt.toastRef.manualClose()}remove(me){const tt=this._findToast(me);if(!tt||(tt.activeToast.toastRef.close(),this.toasts.splice(tt.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(me,tt,he,Ze)):this._buildNotification(me,tt,he,Ze)}_buildNotification(me,tt,he,Ze){if(!Ze.toastComponent)throw new Error("toastComponent required");const rt=this.findDuplicate(he,tt,this.toastrConfig.resetTimeoutOnDuplicate&&Ze.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&he||tt)&&this.toastrConfig.preventDuplicates&&null!==rt)return rt;this.previousToastMessage=tt;let bt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(bt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Nt=this.overlay.create(Ze.positionClass,this.overlayContainer);this.index=this.index+1;let Qt=tt;tt&&Ze.enableHtml&&(Qt=this.sanitizer.sanitize(e.q3G.HTML,tt));const nn=new Tt(Nt),Dn=new xt(this.index,Ze,Qt,he,me,nn),rn=e.zs3.create({providers:[{provide:xt,useValue:Dn}],parent:this._injector}),vn=new Lt(Ze.toastComponent,rn),ei=Nt.attach(vn,Ze.newestOnTop);nn.componentInstance=ei.instance;const Wn={toastId:this.index,title:he||"",message:tt||"",toastRef:nn,onShown:nn.afterActivate(),onHidden:nn.afterClosed(),onTap:Dn.onTap(),onAction:Dn.onAction(),portal:ei};return bt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Wn.toastRef.activate()})),this.toasts.push(Wn),Wn}static \u0275fac=function(tt){return new(tt||Ee)(e.LFG(Zt),e.LFG(tn),e.LFG(e.zs3),e.LFG(S.H7),e.LFG(e.R0b))};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),Ln=(()=>{class Ee{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(me,tt,he){this.toastrService=me,this.toastPackage=tt,this.ngZone=he,this.message=tt.message,this.title=tt.title,this.options=tt.config,this.originalTimeout=tt.config.timeOut,this.toastClasses=`${tt.toastType} ${tt.config.toastClass}`,this.sub=tt.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=tt.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=tt.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=tt.toastRef.countDuplicate().subscribe(Ze=>{this.duplicatesCount=Ze}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const me=(new Date).getTime();this.width=(this.hideTime-me)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(me,tt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(me),tt)):this.timeout=setTimeout(()=>me(),tt)}outsideInterval(me,tt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(me),tt)):this.intervalId=setInterval(()=>me(),tt)}runInsideAngular(me){this.ngZone?this.ngZone.run(()=>me()):me()}static \u0275fac=function(tt){return new(tt||Ee)(e.Y36(wn),e.Y36(xt),e.Y36(e.R0b))};static \u0275cmp=e.Xpm({type:Ee,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(tt,he){1&tt&&e.NdJ("click",function(){return he.tapToast()})("mouseenter",function(){return he.stickAround()})("mouseleave",function(){return he.delayedHideToast()}),2&tt&&(e.d8E("@flyInOut",he.state),e.Tol(he.toastClasses),e.Udp("display",he.displayStyle))},standalone:!0,features:[e.jDz],attrs:w,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(tt,he){1&tt&&(e.YNc(0,n,3,0,"button",0),e.YNc(1,ee,3,5,"div",1),e.YNc(2,re,1,3,"div",2),e.YNc(3,ue,2,4,"div",3),e.YNc(4,se,2,2,"div",4)),2&tt&&(e.Q6J("ngIf",he.options.closeButton),e.xp6(1),e.Q6J("ngIf",he.title),e.xp6(1),e.Q6J("ngIf",he.message&&he.options.enableHtml),e.xp6(1),e.Q6J("ngIf",he.message&&!he.options.enableHtml),e.xp6(1),e.Q6J("ngIf",he.options.progressBar))},dependencies:[D.O5],encapsulation:2,data:{animation:[(0,l.X$)("flyInOut",[(0,l.SB)("inactive",(0,l.oB)({opacity:0})),(0,l.SB)("active",(0,l.oB)({opacity:1})),(0,l.SB)("removed",(0,l.oB)({opacity:0})),(0,l.eR)("inactive => active",(0,l.jt)("{{ easeTime }}ms {{ easing }}")),(0,l.eR)("active => removed",(0,l.jt)("{{ easeTime }}ms {{ easing }}"))])]}})}return Ee})();const Yn={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:Ln},ti=(Ee={})=>(0,e.MR2)([{provide:Zt,useValue:{default:Yn,config:Ee}}]);let gi=(()=>{class Ee{static forRoot(me={}){return{ngModule:Ee,providers:[ti(me)]}}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275mod=e.oAB({type:Ee});static \u0275inj=e.cJS({})}return Ee})()},5861:(ft,Ie,C)=>{"use strict";function e(D,I,S,w,n,Z,ee){try{var re=D[Z](ee),ue=re.value}catch(se){return void S(se)}re.done?I(ue):Promise.resolve(ue).then(w,n)}function l(D){return function(){var I=this,S=arguments;return new Promise(function(w,n){var Z=D.apply(I,S);function ee(ue){e(Z,w,n,ee,re,"next",ue)}function re(ue){e(Z,w,n,ee,re,"throw",ue)}ee(void 0)})}}C.d(Ie,{Z:()=>l})},7582:(ft,Ie,C)=>{"use strict";function S(dt,at,Be,Ee){var tt,$e=arguments.length,me=$e<3?at:null===Ee?Ee=Object.getOwnPropertyDescriptor(at,Be):Ee;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)me=Reflect.decorate(dt,at,Be,Ee);else for(var he=dt.length-1;he>=0;he--)(tt=dt[he])&&(me=($e<3?tt(me):$e>3?tt(at,Be,me):tt(at,Be))||me);return $e>3&&me&&Object.defineProperty(at,Be,me),me}function ue(dt,at){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(dt,at)}function se(dt,at,Be,Ee){return new(Be||(Be=Promise))(function(me,tt){function he(bt){try{rt(Ee.next(bt))}catch(Nt){tt(Nt)}}function Ze(bt){try{rt(Ee.throw(bt))}catch(Nt){tt(Nt)}}function rt(bt){bt.done?me(bt.value):function $e(me){return me instanceof Be?me:new Be(function(tt){tt(me)})}(bt.value).then(he,Ze)}rt((Ee=Ee.apply(dt,at||[])).next())})}function je(dt){return this instanceof je?(this.v=dt,this):new je(dt)}function Tt(dt,at,Be){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $e,Ee=Be.apply(dt,at||[]),me=[];return $e={},tt("next"),tt("throw"),tt("return"),$e[Symbol.asyncIterator]=function(){return this},$e;function tt(Qt){Ee[Qt]&&($e[Qt]=function(nn){return new Promise(function(Dn,Ot){me.push([Qt,nn,Dn,Ot])>1||he(Qt,nn)})})}function he(Qt,nn){try{!function Ze(Qt){Qt.value instanceof je?Promise.resolve(Qt.value.v).then(rt,bt):Nt(me[0][2],Qt)}(Ee[Qt](nn))}catch(Dn){Nt(me[0][3],Dn)}}function rt(Qt){he("next",Qt)}function bt(Qt){he("throw",Qt)}function Nt(Qt,nn){Qt(nn),me.shift(),me.length&&he(me[0][0],me[0][1])}}function St(dt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Be,at=dt[Symbol.asyncIterator];return at?at.call(dt):(dt=function _e(dt){var at="function"==typeof Symbol&&Symbol.iterator,Be=at&&dt[at],Ee=0;if(Be)return Be.call(dt);if(dt&&"number"==typeof dt.length)return{next:function(){return dt&&Ee>=dt.length&&(dt=void 0),{value:dt&&dt[Ee++],done:!dt}}};throw new TypeError(at?"Object is not iterable.":"Symbol.iterator is not defined.")}(dt),Be={},Ee("next"),Ee("throw"),Ee("return"),Be[Symbol.asyncIterator]=function(){return this},Be);function Ee(me){Be[me]=dt[me]&&function(tt){return new Promise(function(he,Ze){!function $e(me,tt,he,Ze){Promise.resolve(Ze).then(function(rt){me({value:rt,done:he})},tt)}(he,Ze,(tt=dt[me](tt)).done,tt.value)})}}}C.d(Ie,{FC:()=>Tt,KL:()=>St,gn:()=>S,mG:()=>se,qq:()=>je,w6:()=>ue}),"function"==typeof SuppressedError&&SuppressedError}},ft=>{var Ie=e=>ft(ft.s=e);Ie(9334),Ie(913)}]); \ No newline at end of file diff --git a/en-US/main.cdd6c90df8adce6a.js b/en-US/main.cdd6c90df8adce6a.js new file mode 100644 index 0000000..db60fa3 --- /dev/null +++ b/en-US/main.cdd6c90df8adce6a.js @@ -0,0 +1,3 @@ +globalThis.$localize=Object.assign(globalThis.$localize || {},{locale:"en-US"}); +"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length;if(i===1&&v===0)return 1;return 5}global.ng.common.locales["en"]=["en",[["a","p"],["AM","PM"],u],[["AM","PM"],u,u],[["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"]],u,[["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"]],u,[["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}",u,"{1} 'at' {0}",u],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",plural,[[["mi","n","in the morning","in the afternoon","in the evening","at night"],["midnight","noon","in the morning","in the afternoon","in the evening","at night"],u],[["midnight","noon","morning","afternoon","evening","night"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","18:00"],["18:00","21:00"],["21:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);; +(self.webpackChunkbankrupt_frontend=self.webpackChunkbankrupt_frontend||[]).push([[179],{8743:(ft,Ie,C)=>{"use strict";C.d(Ie,{Ic:()=>l,Ym:()=>Z,e6:()=>te});var e=C(6825);function l(ce,_e,Re){return(0,e.X$)(ce,[(0,e.SB)("loading",(0,e.oB)({opacity:.1})),(0,e.SB)("loaded",(0,e.oB)({opacity:1})),(0,e.eR)(_e+" => "+Re,[(0,e.jt)(".5s")]),(0,e.eR)(Re+" => "+_e,[(0,e.jt)("0.1s")])])}function Z(ce,_e){return(0,e.X$)(ce,[(0,e.SB)("void",(0,e.oB)({transform:`translateX(${"left"==_e?"-100%":"100%"})`})),(0,e.eR)(":enter",[(0,e.jt)("300ms",(0,e.oB)({transform:"translateX(0)"}))])])}function te(ce){return(0,e.X$)(ce,[(0,e.eR)(":enter",[(0,e.oB)({transformOrigin:"top",transform:"rotateX(-90deg)"}),(0,e.jt)("400ms",(0,e.oB)({transform:"rotateX(0deg)"}))])])}},2350:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>e});class e{getErrorKey(D){return D+":error"}getMultiErrorKey(D,I){return D+":error:"+I}}},2159:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>ue});var e=C(8637),l=C(6405),D=C(7613),I=C(8743),S=C(3108),w=C(5879),n=C(30),Z=C(1662),ee=C(6945),re=C(8675);let ue=(()=>{class se extends e.H{constructor(oe,ce,_e,Re){super(oe,ce,_e),this.popup=Re,this.Layout=l.A,this.StringUtil=D.m,this.breadcrumbItems=[],this.layout=l.A.GRID,this.breadcrumbItems=this.getBreadcrumbItems()}ngOnInit(){let oe=this.getConfig().searchEndpoint,ce=S.n.retrieve(oe);this.layout=null!=ce?parseInt(ce):this.getConfig().defaultLayout,this.initialize()}onLayoutSelected(oe){this.layout=oe,S.n.put(this.getConfig().searchEndpoint,this.layout.toString())}openUpsertComponent(oe){let ce=this.getUpsertComponent();null!=ce&&(this.popup.open(ce,{id:oe}),this.popup.onCompleted.subscribe(_e=>{this.ngOnInit(),null!=_e&&this.onUpsertSuccess(_e),console.log("onSuccess. closing dialog")}),this.popup.onCanceled.subscribe(()=>{console.log("onCanceled. closing dialog")}))}onUpsertClick(oe){if(this.getConfig().upsertOnDialog)this.openUpsertComponent(oe);else{let ce=this.getRoutes();if(null==ce)return;let _e=null==oe?ce.create:ce.update(oe);this.router.navigate([_e],{queryParams:null!=oe?ce.params:{}})}}onUpsertSuccess(oe){console.log("onUpsertSuccess",oe)}static#e=this.\u0275fac=function(ce){return new(ce||se)(w.Y36(n.Y),w.Y36(Z.F0),w.Y36(ee.z),w.Y36(re.x))};static#t=this.\u0275cmp=w.Xpm({type:se,selectors:[["ng-component"]],features:[w.qOj],decls:0,vars:0,template:function(ce,_e){},encapsulation:2,data:{animation:[(0,I.Ym)("onGrid","left"),(0,I.Ym)("onColumn","right")]}})}return se})()},9870:(ft,Ie,C)=>{"use strict";C.d(Ie,{n:()=>ee});var e=C(8637),l=C(5879),D=C(7700),I=C(8743),S=C(1855),w=C(30),n=C(1662),Z=C(6945);let ee=(()=>{class re extends e.H{constructor(se,te,oe,ce,_e){super(se,te,oe),this.route=ce,this.dialogData=_e,this.breadcrumbItems=[],this.onCanceled=new l.vpe,this.onCompleted=new l.vpe,this.filterData=null,this.exId=null,this.dialogUpsert=!1,this.breadcrumbItems=this.getBreadcrumbItems(),this.dialogUpsert=null!=_e.dialogUpsert}ngOnInit(){this.loading=!1,this.route.queryParams.subscribe(se=>{this.filterData=(0,S.OP)(se)}),this.route.paramMap.subscribe(se=>{let te=se.get("id");if(null==te&&(te=this.dialogData?.id),null!=te){let oe=parseInt(te);isNaN(oe)||(this.exId=oe,this.initialize(this.exId))}})}navigateToListPage(se=null){this.router.navigate([this.getListPageRoute()],{queryParams:null==this.filterData?null:(0,S.oZ)(this.filterData)}).then(se)}onSuccess(se){this.loading=!1,this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCompleted.emit(se):this.navigateToListPage()}onCancel(){this.dialogUpsert||this.getConfig().upsertOnDialog?this.onCanceled.emit():this.navigate(this.getListPageRoute(),se=>{})}static#e=this.\u0275fac=function(te){return new(te||re)(l.Y36(w.Y),l.Y36(n.F0),l.Y36(Z.z),l.Y36(n.gz),l.Y36(D.WI))};static#t=this.\u0275cmp=l.Xpm({type:re,selectors:[["ng-component"]],outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[l.qOj],decls:0,vars:0,template:function(te,oe){},encapsulation:2,data:{animation:[(0,I.e6)("loaded")]}})}return re})()},8637:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>ue});var e=C(3674),l=C(2350),D=C(7613),I=C(553),S=C(8743),w=C(190),n=C(5879),Z=C(30),ee=C(1662),re=C(6945);let ue=(()=>{class se extends l.R{constructor(oe,ce,_e){super(),this.eventBus=oe,this.router=ce,this.subContainer=_e,this.translations=w.I,this.loading=!0,this.swipeCoord=[0,0],this.swipeTime=0,this.SWIPE_START="swipe-action-start",this.SWIPE_END="swipe-action-end",this.SWIPE_LEFT="swipe-left",this.SWIPE_RIGHT="swipe-right"}subscribe(oe,ce,_e){this.subContainer.hasKey(oe)&&this.subContainer.disposeSubscription(oe);let Re=this.eventBus.on(oe).subscribe(mt=>{null!=ce?this.router.navigate([ce]).then(Ge=>{_e(Ge,mt)}):_e(!1,mt)});return this.subContainer.add(oe,Re),Re}reloadRoute(){this.navigate(this.router.url,oe=>{})}reloadRouteByUrl(){this.navigateByUrl(this.router.url,oe=>{})}navigate(oe,ce){oe==this.router.url&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload"),null!=oe&&this.router.navigate([oe]).then(_e=>ce(_e))}navigateByUrl(oe,ce){oe==this.router.url&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload"),null!=oe&&this.router.navigateByUrl(oe).then(_e=>ce(_e))}goHomeAndDoABarrelRoll(oe){this.router.navigateByUrl("").then(ce=>oe)}ngOnDestroy(){this.subContainer.disposeForComponent(this.constructor.name)}isInvalidInput(oe){return e.w.isInvalidInput(oe)}getFormError(oe,ce){return e.w.getFormError(oe,ce)}componentKey(oe){return this.componentName()+":"+oe}globalKey(oe){return"global:"+oe}firstWord(oe){return D.m.firstWord(oe)}errMsg(oe,ce,_e,Re){let mt=oe.controls[ce];return mt.touched&&mt.errors?Re:null}initSeoItems(oe,ce,_e,Re,mt,Ge,Lt,je,Tt){oe.setTitle(_e),ce.addTags([{name:"keywords",content:mt.join(",")},{name:"description",description:Re},{name:"robots",content:Ge??"index, follow"},{property:"og:type",content:Lt??"article"},{property:"og:title",content:_e},{property:"og:description",content:Re},{property:"og:image",content:je??""},{property:"og:url",content:Tt},{property:"og:site_name",content:I.N.app_name}])}getPermalink(){return I.N.app_url+this.router.url}swipe(oe,ce,_e){const Re=[oe.changedTouches[0].clientX,oe.changedTouches[0].clientY],mt=(new Date).getTime();if(ce===this.SWIPE_START)this.swipeCoord=Re,this.swipeTime=mt;else if(ce===this.SWIPE_END){const Ge=[Re[0]-this.swipeCoord[0],Re[1]-this.swipeCoord[1]];mt-this.swipeTime<1e3&&Math.abs(Ge[0])>30&&Math.abs(Ge[0])>Math.abs(3*Ge[1])&&this.eventBus.publish(_e,Ge[0]<0?this.SWIPE_RIGHT:this.SWIPE_LEFT)}}static#e=this.\u0275fac=function(ce){return new(ce||se)(n.Y36(Z.Y),n.Y36(ee.F0),n.Y36(re.z))};static#t=this.\u0275cmp=n.Xpm({type:se,selectors:[["ng-component"]],features:[n.qOj],decls:0,vars:0,template:function(ce,_e){},encapsulation:2,data:{animation:[(0,S.Ic)("dataLoaded","loading","loaded")]}})}return se})()},2495:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>D});var e=C(553),l=C(5879);class D{constructor(){}static#e=this.API_VERSION_1="/api/v1";static#t=this.API_VERSION_2="/api/v2";static toParamString(S){let w="";for(let n in S)null!=S[n]&&(w+=""===w?"?":"&",w=w+n+"="+this.convertToString(S[n]));return w}static convertToString(S){return S instanceof Date?S.toISOString():S.toString()}static#n=this.FILES={FILE_ENDPOINT:e.N.base_url+D.API_VERSION_2+"/files",IMAGE_ENDPOINT:e.N.base_url+D.API_VERSION_2+"/images",IMAGE_ENDPOINT_ADMIN:e.N.base_url+D.API_VERSION_2+"/admin/images",IMAGE_UPLOAD_ENDPOINT_BULK:e.N.base_url+D.API_VERSION_2+"/images/bulk",FILE_ENDPOINT_ADMIN:e.N.base_url+D.API_VERSION_2+"/admin/files",SEARCH:(S,w)=>S.concat(D.toParamString(w)),CREATE(){return this.FILE_ENDPOINT},UPLOAD(S){return this.IMAGE_UPLOAD_ENDPOINT_BULK.concat(D.toParamString(S))},GET(S){return this.FILE_ENDPOINT+"/"+S},UPDATE(S){return this.FILE_ENDPOINT+"/"+S}};static#i=this.\u0275fac=function(w){return new(w||D)};static#r=this.\u0275prov=l.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}},8674:(ft,Ie,C)=>{"use strict";function e(I){const S={};for(const w in I)Object.prototype.hasOwnProperty.call(I,w)&&(S[w]=I[w]instanceof Date?I[w].toISOString():"object"==typeof I[w]&&null!==I[w]?e(I[w]):I[w]);return S}C.d(Ie,{GN:()=>e,Q3:()=>l});const l=I=>{const S={};return I.forEach((w,n)=>{S[n]=w}),S}},6542:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>e});let e={content:[],pageable:{sort:{sorted:!1,unsorted:!1,empty:!1},pageNumber:0,pageSize:10,offset:0,paged:!1,unpaged:!1},totalPages:0,totalElements:0,last:!1,first:!0,sort:{sorted:!1,unsorted:!1,empty:!1},numberOfElements:0,size:10,number:0,empty:!0}},1547:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>S});var e=C(2350),l=C(5879),D=C(8480),I=C(5462);let S=(()=>{class w extends e.R{constructor(Z,ee){super(),this.authService=Z,this.notifier=ee}handleError(Z,ee,re){401===Z.status||0===Z.status||504===Z.status?(console.log("Refreshing token",Z),this.authService.refreshToken(ee)):(console.log("Other error",Z),re(Z))}static#e=this.\u0275fac=function(ee){return new(ee||w)(l.LFG(D.e),l.LFG(I.l))};static#t=this.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac,providedIn:"root"})}return w})()},6945:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>l});var e=C(5879);let l=(()=>{class D{constructor(){this.subs=new Map}getKeys(){return this.subs}add(S,w){null==S||null==w||this.subs.has(S)||this.subs.set(S,w)}hasKey(S){return this.subs.has(S)}dispose(){this.subs.forEach(S=>S.unsubscribe()),this.subs.clear()}disposeSubscription(S){this.subs.get(S)?.unsubscribe(),this.subs.delete(S)}disposeNonGlobal(){this.subs.forEach((S,w)=>{w.startsWith("global:")||(S.unsubscribe(),this.subs.delete(w))})}disposeForComponent(S){this.subs.forEach((w,n)=>{n.startsWith(S)&&(w.unsubscribe(),this.subs.delete(n))})}static#e=this.\u0275fac=function(w){return new(w||D)};static#t=this.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"})}return D})()},6032:(ft,Ie,C)=>{"use strict";C.d(Ie,{s:()=>I});var e=C(2495),l=C(553),D=C(5879);class I extends e.O{constructor(){super()}static#e=this.CRUDEXAMPLES={CRUDEXAMPLE_ENDPOINT:l.N.base_url+"/api/v1/crudexamples",CRUDEXAMPLE_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/crudexamples",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.CRUDEXAMPLE_ENDPOINT},GET(w){return this.CRUDEXAMPLE_ENDPOINT+"/"+w},UPDATE(w){return this.CRUDEXAMPLE_ENDPOINT+"/"+w}};static#t=this.LABELS={LABEL_ENDPOINT_POLLBOX:l.N.base_url+"/api/v1/public/labels/POLLBOX/children",LABEL_ENDPOINT:l.N.base_url+"/api/v1/labels",LABEL_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/labels",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.LABEL_ENDPOINT},GET(w){return this.LABEL_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LABEL_ENDPOINT+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LABEL_ENDPOINT+"/"+w}};static#n=this.FEEDBACKS={FEEDBACK_ENDPOINT:l.N.base_url+"/api/v2/feedbacks",FEEDBACK_ENDPOINT_ADMIN:l.N.base_url+"/api/v2/admin/feedbacks",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.FEEDBACK_ENDPOINT},GET(w){return this.FEEDBACK_ENDPOINT+"/"+w},UPDATE(w){return this.FEEDBACK_ENDPOINT+"/"+w},TAKE_ACTION(w){return this.FEEDBACK_ENDPOINT_ADMIN+"/"+w+"/action"}};static#i=this.POPTIONS={POPTION_ENDPOINT:l.N.base_url+"/api/v1/poll-options",POPTION_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-options",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.POPTION_ENDPOINT},GET(w){return this.POPTION_ENDPOINT+"/"+w},UPDATE(w){return this.POPTION_ENDPOINT+"/"+w}};static#r=this.ACVALIDATIONTOKENS={ACVALIDATIONTOKEN_ENDPOINT:l.N.base_url+"/api/v1/validation-tokens",ACVALIDATIONTOKEN_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/validation-tokens",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.ACVALIDATIONTOKEN_ENDPOINT},GET(w){return this.ACVALIDATIONTOKEN_ENDPOINT+"/"+w},UPDATE(w){return this.ACVALIDATIONTOKEN_ENDPOINT+"/"+w}};static#o=this.LOCATIONTYPES={LOCATIONTYPE_ENDPOINT:l.N.base_url+"/api/v1/location-types",LOCATIONTYPE_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/location-types",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.LOCATIONTYPE_ENDPOINT},GET(w){return this.LOCATIONTYPE_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LOCATIONTYPE_ENDPOINT+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LOCATIONTYPE_ENDPOINT+"/"+w}};static#s=this.LOCATIONS={LOCATION_ENDPOINT:l.N.base_url+"/api/v1/locations",LOCATION_ENDPOINT_V2:l.N.base_url+"/api/v2/locations",LOCATION_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/locations",SEARCH:(w,n)=>w+"/child-locations".concat(e.O.toParamString(n)),GET_LOCATIONS_FOR_TYPE:(w,n)=>w+"/"+n+"/locations",CREATE(){return this.LOCATION_ENDPOINT},GET(w){return this.LOCATION_ENDPOINT+"/"+w},GET_MULTIPLE(w){return this.LOCATION_ENDPOINT_V2+"/multiple/by-ids?ids="+w.join(",")},UPDATE(w){return this.LOCATION_ENDPOINT+"/"+w}};static#a=this.ADDRESSS={ADDRESS_ENDPOINT:l.N.base_url+"/api/v1/global-addresss",ADDRESS_ENDPOINT_V2:l.N.base_url+"/api/v2/global-addresses",ADDRESS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/global-addresss",SEARCH:(w,n)=>w.concat(e.O.toParamString(n)),CREATE(){return this.ADDRESS_ENDPOINT},GET(w){return this.ADDRESS_ENDPOINT_V2+"/"+w},UPDATE(w){return this.ADDRESS_ENDPOINT+"/"+w}};static#l=this.\u0275fac=function(n){return new(n||I)};static#c=this.\u0275prov=D.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}},6405:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>e});var e=function(l){return l[l.GRID=0]="GRID",l[l.COLUMN=1]="COLUMN",l}(e||{})},190:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>l,s:()=>D});var e=function(I){return I.CAN_MANAGE_INVENTORY="CAN_MANAGE_INVENTORY",I.ADMINISTRATION="ADMINISTRATION",I.ACCESS_USER_RESOURCES="ACCESS_USER_RESOURCES",I.CAN_TAKE_EXAM="CAN_TAKE_EXAM",I}(e||{});const l={Dashboard:"Dashboard",Inventory:"Inventory",Stocks:"Stocks",Products:"Products",Categories:"Categories",Brands:"Brands",Variations:"Variations",Sales:"Sales",Orders:"Orders",Customers:"Customers","My Contents":"My Contents","Uploaded Files":"Uploaded Files",PollBox:"PollBox",Questionnaires:"Questionnaires",Polls:"Polls","Poll Options":"Poll Options",Votes:"Votes","Filterable Attributes":"Filterable Attributes",Stores:"Stores","My Wallet":"My Wallet","Validation Tokens":"Validation Tokens","Activity Logs":"Activity Logs","Location Types":"Location Types","Crud Examples":"Crud Examples",Specifications:"Specifications",Astha:"Astha",Social:"Social",Notifications:"Notifications",Feedbacks:"Feedbacks",Wallet:"Wallet",Administration:"Administration",Labels:"Labels",Users:"Users",Lockouts:"Lockouts",Locations:"Locations",Addresses:"Addresses","Search..":"Search","Enter Quantity":"Enter Quantity","Unit Price":"Unit Price","Enter Retail Price":"Enter Retail Price","Enter Discount":"Enter Discount","Enter Cashback (%)":"Enter Cashback (%)","Enter Name":"Enter Name","Enter Title":"Enter Title",Images:"Images",Image:"Image","Search Brand":"Search Brand","Search Category..":"Search Category..","Search Variations..":"Search Variations..","Search Attributes..":"Search Attributes..","Search Customer..":"Search Customer..","Search Stock..":"Search Stock..","Enter Phone":"Enter Phone","Search Store..":"Search Store..","Enter Description":"Enter Description",Logo:"Logo","Select File":"Select File","Feedback Actions":"Feedback Actions",Upsert:"Upsert","My Sales":"My Sales","Products in Stock":"Products in Stock","All Products":"All Products","My Customers":"My Customers",$:"$"},D=[{title:l.Dashboard,expanded:!0,icon:"fab fa-dashcube",items:[{title:l.Dashboard,icon:"bx bx-home-circle",link:"/admin/dashboard",selected:!1,children:[],permissions:[e.ACCESS_USER_RESOURCES]}]},{title:l.PollBox,expanded:!0,icon:"fa fa-poll",items:[{title:l.Questionnaires,icon:"fa fa-poll",link:"/admin/questionnaires",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l.Polls,icon:"fa fa-poll",link:"/admin/polls",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l["Poll Options"],icon:"fa fa-poll",link:"/admin/poll-options",selected:!1,children:[],permissions:[e.CAN_TAKE_EXAM]},{title:l.Votes,icon:"fa fa-poll",link:"/admin/votes",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Inventory,expanded:!0,icon:"fa fa-cubes",items:[{title:l.Stocks,icon:"fa fa-cubes",link:"/admin/inventory/stocks",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Products,icon:"fa fa-cubes",link:"/admin/inventory/products",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Categories,icon:"fa fa-folder",link:"/admin/inventory/categories",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Brands,icon:"fa fa-tags",link:"/admin/inventory/brands",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Variations,icon:"fa fa-trademark",link:"/admin/inventory/variations",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Specifications,icon:"fa fa-cube",link:"/admin/inventory/product-specifications",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Filterable Attributes"],icon:"fa fa-filter",link:"/admin/inventory/filterable-attributes",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Stores,icon:"fa fa-filter",link:"/admin/inventory/vendors",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Sales,expanded:!0,icon:"fa fa-shopping-cart",items:[{title:l.Orders,icon:"fa fa-shopping-cart",link:"/admin/sales/orders",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]},{title:l.Customers,icon:"fa fa-user",link:"/admin/sales/customers",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]}]},{title:l["My Contents"],expanded:!0,icon:"fa fa-file",items:[{title:l["Uploaded Files"],icon:"fa fa-file",link:"/cms/files",selected:!1,children:[],permissions:[e.CAN_MANAGE_INVENTORY]}]},{title:l.Astha,expanded:!0,icon:"fa fa-heart",items:[{title:l["Uploaded Files"],icon:"fa fa-filter",link:"/admin/inventory/attributes",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Social,expanded:!0,icon:"fa fa-users",items:[{title:l.Notifications,icon:"fa fa-filter",link:"/admin/notifications",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Feedbacks,icon:"fa fa-filter",link:"/admin/feedbacks",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Wallet,expanded:!0,icon:"fa fa-wallet",items:[{title:l["My Wallet"],icon:"fa fa-wallet",link:"/admin/accounts/wallet",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]},{title:l.Administration,expanded:!0,icon:"fas fa-cogs",items:[{title:l.Labels,icon:"fas fa-tag",link:"/admin/labels",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Users,icon:"fas fa-users",link:"/admin/users",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Validation Tokens"],icon:"fas fa-tag",link:"/admin/users/validation-tokens",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Activity Logs"],icon:"fas fa-tag",link:"/admin/users/activity-logs",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Lockouts,icon:"fas fa-tag",link:"/admin/users/request-credentials/lockouts",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Location Types"],icon:"fas fa-tag",link:"/admin/location-types",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Locations,icon:"fas fa-tag",link:"/admin/locations",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l.Addresses,icon:"fas fa-tag",link:"/admin/addresses",selected:!1,children:[],permissions:[e.ADMINISTRATION]},{title:l["Crud Examples"],icon:"fas fa-tag",link:"/admin/crudexamples",selected:!1,children:[],permissions:[e.ADMINISTRATION]}]}]},2071:(ft,Ie,C)=>{"use strict";C.d(Ie,{B:()=>Be});var e=C(5879),l=C(8637),D=C(6223),I=C(2096),S=C(7259),w=C(30),n=C(1662),Z=C(6945),ee=C(1547),re=C(1259),ue=C(8480),se=C(5462),te=C(9862);let oe=(()=>{class Ee extends ee.b{constructor(me,tt,he,Ze){super(me,tt),this.http=he,this.eventBus=Ze}searchVendors(me,tt){const he=S.Z.VENDORS.SEARCH_VENDORS();return this.http.get(re.e.VENDORS.SEARCH({q:tt,flagship:me})).subscribe(Ze=>{this.eventBus.publish(he,Ze)},Ze=>{this.eventBus.publish(S.Z.VENDORS.FETCH_ERROR(),Ze)}),he}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.LFG(ue.e),e.LFG(se.l),e.LFG(te.eN),e.LFG(w.Y))};static#t=this.\u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();var ce=C(2951),_e=C(6814),Re=C(7700),mt=C(2296),Ge=C(469);function Lt(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"zxing-scanner",12),e.NdJ("scanSuccess",function(he){e.CHM(me);const Ze=e.oxw(2);return e.KtG(Ze.onScanSuccess(he))})("scanFailure",function(he){e.CHM(me);const Ze=e.oxw(2);return e.KtG(Ze.onScanFailure(he))}),e.qZA()}if(2&Ee){const me=e.oxw(2);e.Q6J("formats",me.allowedFormats)}}function je(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",7)(1,"div",13)(2,"label",14),e._uU(3,"Selected Shop"),e.qZA(),e._UZ(4,"input",15),e.qZA()()),2&Ee){const me=e.oxw(2);e.xp6(4),e.Q6J("value",me.scannedCode.name)}}function Tt(Ee,$e){1&Ee&&(e.TgZ(0,"div",23)(1,"span"),e._uU(2,"Minimum 10 to maximum 1000 can be redeemed."),e.qZA()())}function xt(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"div")(1,"div",16)(2,"h2"),e._uU(3,"Enter amount"),e.qZA(),e.TgZ(4,"div",7)(5,"div",13)(6,"label",17),e._uU(7,"Points"),e.qZA(),e._UZ(8,"input",18),e.qZA()(),e.YNc(9,Tt,3,0,"div",19),e.qZA(),e.TgZ(10,"div",20)(11,"button",21),e.NdJ("click",function(){e.CHM(me);const he=e.oxw(2);return e.KtG(he.redeem())}),e._UZ(12,"i",22),e._uU(13," REDEEM "),e.qZA()()()}if(2&Ee){const me=e.oxw(2);e.xp6(9),e.Q6J("ngIf",me.isInvalidInput(me.redeemForm.controls.points)),e.xp6(2),e.Q6J("disabled",me.redeemForm.invalid)}}function St(Ee,$e){if(1&Ee&&(e.TgZ(0,"div")(1,"mat-dialog-content",1),e._UZ(2,"section",2),e.TgZ(3,"form",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"p"),e._uU(8,"Scan QR to choose a shop"),e.qZA(),e.TgZ(9,"div",7),e.YNc(10,Lt,1,1,"zxing-scanner",8),e.YNc(11,je,5,1,"div",9),e.qZA()(),e.YNc(12,xt,14,2,"div",0),e.qZA()()()(),e.TgZ(13,"mat-dialog-actions",10)(14,"button",11),e._uU(15,"CANCEL"),e.qZA()()()),2&Ee){const me=e.oxw();e.xp6(3),e.Q6J("formGroup",me.redeemForm),e.xp6(7),e.Q6J("ngIf",null==me.scannedCode),e.xp6(1),e.Q6J("ngIf",null!=me.scannedCode),e.xp6(1),e.Q6J("ngIf",null!=me.scannedCode)}}function Zt(Ee,$e){if(1&Ee&&(e.TgZ(0,"div")(1,"h2",24),e._uU(2),e.qZA(),e.TgZ(3,"mat-dialog-content",1),e._uU(4),e.qZA(),e.TgZ(5,"mat-dialog-actions",10)(6,"button",11),e._uU(7,"CLOSE"),e.qZA()()()),2&Ee){const me=e.oxw();e.xp6(2),e.hij("Congratulations! Pay TK",me.redemption.discount_amount," less."),e.xp6(2),e.AsE(" You have successfully redeemed ",me.redemption.points," points. You got TK",me.redemption.discount_amount," discount from Astha loyalty points. ")}}let yt=(()=>{class Ee extends l.H{constructor(me,tt,he,Ze,rt,bt){super(me,tt,he),this.vendorService=Ze,this.leaderboardService=rt,this.notifier=bt,this.availablePoints=0,this.redemption=null,this.vendors=[],this.redeemForm=new D.cw({vendor:new D.NI("",D.kI.min(1)),points:new D.NI("",[D.kI.required,D.kI.min(100),D.kI.max(1e3)])}),this.allowedFormats=[11,7,4,5],this.scannedCode=null}componentName(){return"RedeemComponent"}ngOnInit(){}redeem(){if(null==this.scannedCode)return;let me=this.componentKey(S.Z.LEADERBOARDS.REDEEM_SUCCESS());this.leaderboardService.redeem(me,this.mapToRedeemReq(this.redeemForm)),this.subscribe(me,null,(tt,he)=>{this.redemption=he.data}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Failed!",he.data.error.message)})}searchVendors(){const tt=this.vendorService.searchVendors(!1,this.redeemForm.controls.vendor.value||"");this.subscribe(tt,null,(he,Ze)=>{this.vendors=Ze.data.content})}getVendors(){return(0,I.of)(this.vendors)}mapToRedeemReq(me){return{vendor_uuid:this.scannedCode?.uuid+"",points:me.controls.points.value}}onScanSuccess(me){try{this.scannedCode=JSON.parse(me)}catch(tt){this.notifier.warning("Invalid QR",String(tt))}}onScanFailure(me){console.log(me)}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.Y36(w.Y),e.Y36(n.F0),e.Y36(Z.z),e.Y36(oe),e.Y36(ce.S),e.Y36(se.l))};static#t=this.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-redeem"]],inputs:{availablePoints:"availablePoints"},features:[e.qOj],decls:2,vars:2,consts:[[4,"ngIf"],[1,"mat-typography"],["id","post_review_section"],["action","POST",3,"formGroup"],[1,"review-r-d-input-fields","pt-4"],[1,"container"],[1,"pros-area","mt-4"],[1,"pros-single-item-content","d-flex","align-items-end"],[3,"formats","scanSuccess","scanFailure",4,"ngIf"],["class","pros-single-item-content d-flex align-items-end",4,"ngIf"],["align","end"],["mat-button","","mat-dialog-close",""],[3,"formats","scanSuccess","scanFailure"],[1,"fields"],["for","selected-vendor",1,"form-label"],["type","text","id","selected-vendor","required","required","readonly","",1,"form-control",3,"value"],[1,"cons-area","mt-4"],["for","points",1,"form-label"],["type","number","id","points","placeholder","Enter the amount you want to redeem","formControlName","points","required","required","min","3",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[1,"text-warning"],["mat-dialog-title",""]],template:function(tt,he){1&tt&&(e.YNc(0,St,16,4,"div",0),e.YNc(1,Zt,8,3,"div",0)),2&tt&&(e.Q6J("ngIf",null==he.redemption),e.xp6(1),e.Q6J("ngIf",null!=he.redemption))},dependencies:[_e.O5,D._Y,D.Fj,D.wV,D.JJ,D.JL,D.Q7,D.qQ,D.sg,D.u,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.S]})}return Ee})();var un=C(8174),Jt=C(1822),tn=C(4736);function wn(Ee,$e){1&Ee&&e._UZ(0,"util-progress",18),2&Ee&&e.Q6J("bar",!0)}function Ln(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"div",11)(1,"h3"),e._uU(2),e.qZA(),e.TgZ(3,"div",19),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.showLoyaltyPointHint())}),e.TgZ(4,"h5"),e._uU(5,"Redeemable"),e.qZA(),e.TgZ(6,"i"),e._uU(7,"(?)"),e.qZA()()()}if(2&Ee){const me=e.oxw();e.xp6(2),e.Oqu(null==me.wallet?null:me.wallet.loyalty_points)}}function Yn(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",11)(1,"h3"),e._uU(2),e.qZA(),e.TgZ(3,"h5"),e._uU(4,"Achieved Badge"),e.qZA()()),2&Ee){const me=e.oxw();e.xp6(2),e.Oqu(me.getCurrentBadgeTitle())}}function ti(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"a",20),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.openRedeemDialog())}),e._uU(1,"Redeem"),e.qZA()}}function gi(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.ALo(3,"date"),e.qZA(),e.TgZ(4,"td"),e._uU(5),e.qZA(),e.TgZ(6,"td"),e._uU(7),e.qZA(),e.TgZ(8,"td"),e._uU(9),e.qZA(),e.TgZ(10,"td"),e._uU(11),e.TgZ(12,"span",26),e.NdJ("click",function(){const Ze=e.CHM(me).$implicit,rt=e.oxw(3);return e.KtG(rt.copyToClipboard(Ze.trnx_id))}),e._uU(13,"COPY"),e.qZA()()()}if(2&Ee){const me=$e.$implicit;e.xp6(2),e.Oqu(e.xi3(3,5,me.created_at,"dd-MM-yyyy hh:m:s")),e.xp6(3),e.Oqu(me.description),e.xp6(2),e.Oqu(me.amount),e.xp6(2),e.Oqu(me.type),e.xp6(2),e.hij("",me.trnx_id," ")}}function Rn(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",23)(1,"table",24)(2,"thead")(3,"tr")(4,"th"),e._uU(5,"Date"),e.qZA(),e.TgZ(6,"th"),e._uU(7,"Desc."),e.qZA(),e.TgZ(8,"th"),e._uU(9,"Amount"),e.qZA(),e.TgZ(10,"th"),e._uU(11,"Type"),e.qZA(),e.TgZ(12,"th"),e._uU(13,"Tnx"),e.qZA()()(),e.TgZ(14,"tbody"),e.YNc(15,gi,14,8,"tr",25),e.qZA()()()),2&Ee){const me=e.oxw(2);e.xp6(15),e.Q6J("ngForOf",null==me.wallet?null:me.wallet.recent_transactions)}}function dt(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"h4",4),e._uU(4,"Recent Transactions"),e.qZA(),e.TgZ(5,"div",21),e.YNc(6,Rn,16,1,"div",22),e.qZA()()()()),2&Ee){const me=e.oxw();e.xp6(6),e.Q6J("ngIf",me.showRecentTransactions)}}const at=function(Ee){return[Ee]};let Be=(()=>{class Ee extends l.H{constructor(me,tt,he,Ze,rt,bt,Nt,Qt,nn){super(tt,he,Ze),this.location=me,this.authService=rt,this.notifier=bt,this.dialog=Nt,this.leaderboardService=Qt,this.walletService=nn,this.username=null,this.leaderboard=null,this.wallet=null,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe,this.showRecentTransactions=!1,null==this.username&&(this.username=this.getAuthUsername())}componentName(){return"LeaderboardComponent"}ngOnInit(){null==this.leaderboard&&this.fetchLeaderboard(),null==this.wallet&&this.fetchWallet()}getAuth(){return this.authService.getAuth()}getAuthUsername(){return this.getAuth().username}isMyProfile(){return!!this.authService.isAuthenticated()&&this.getAuthUsername()===this.username}fetchLeaderboard(){if(this.loading=!0,null==this.username)return;let me=this.componentKey(S.Z.LEADERBOARDS.FETCH_LEADERBOARD(this.username));this.leaderboardService.fetchLeaderboard(me,this.username),this.subscribe(me,null,(tt,he)=>{this.leaderboard=he.data,this.loading=!1}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Error",he.data.error.message)})}fetchWallet(){this.loading=!0;let me=this.componentKey(S.Z.WALLET.FETCH_MY_WALLET());this.walletService.fetchWallet(me,{}),this.subscribe(me,null,(tt,he)=>{this.wallet=he.data,this.loading=!1}),this.subscribe(this.getErrorKey(me),null,(tt,he)=>{this.notifier.warning("Error",he.data.error.message)})}getRedeemedAmount(){return null==this.leaderboard?0:this.leaderboard.points-this.leaderboard.available_points}openRedeemDialog(){if(!this.authService.isAuthenticated())return void this.router.navigate(["/login"]);const me=this.dialog.open(yt);let tt=me.componentInstance,he=this.leaderboard?.available_points;tt.availablePoints=null==he?0:he,me.afterClosed().subscribe(Ze=>{this.ngOnInit(),console.log(`Dialog result: ${Ze}`)})}showLoyaltyPointHint(){this.notifier.info("Loyalty point updates every 100 threshold.","When you earn points on app, it's immediately added to your total points. But your loyalty points account is updated when you reach every 100 points threshold.")}getCurrentBadgeTitle(){return null==this.leaderboard?.current_badge?"N/A":this.leaderboard.current_badge.title}getBadgeCount(){return null==this.leaderboard?0:this.leaderboard.badges.length}copyToClipboard(me){un.g.copyToClipboard(me),this.notifier.info("Copied","Copied to clipboard")}onCloseClick(){this.onCanceled.emit()}static#e=this.\u0275fac=function(tt){return new(tt||Ee)(e.Y36(_e.Ye),e.Y36(w.Y),e.Y36(n.F0),e.Y36(Z.z),e.Y36(ue.e),e.Y36(se.l),e.Y36(Re.uw),e.Y36(ce.S),e.Y36(Jt.X))};static#t=this.\u0275cmp=e.Xpm({type:Ee,selectors:[["app-leaderboard"]],inputs:{username:"username",leaderboard:"leaderboard",wallet:"wallet"},features:[e.qOj],decls:46,vars:13,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"card"],[1,"card-body"],[1,"card-title"],["alt","Leaderboard",1,"rounded-circle","avatar-sm","object-fit-cover",3,"src"],[1,"card-subtitle","font-14","text-muted"],["href","javascript:void(0);",3,"routerLink"],[1,"card-text","text-warning","mt-2"],[1,"card-body","col-12"],[1,"table"],[1,"text-center"],["class","text-center",4,"ngIf"],[1,"float-end"],["href","javascript: void(0);",1,"card-link","text-danger","pe-3",3,"click"],["href","javascript: void(0);",1,"card-link","text-primary","pe-3",3,"click"],["href","javascript: void(0);","class","btn btn-outline-info waves-effect waves-light",3,"click",4,"ngIf"],["class","row",4,"ngIf"],[3,"bar"],[3,"click"],["href","javascript: void(0);",1,"btn","btn-outline-info","waves-effect","waves-light",3,"click"],[1,"table-responsive"],["class","table table-bordered table-striped table-nowrap mb-0",4,"ngIf"],[1,"table","table-bordered","table-striped","table-nowrap","mb-0"],[1,"table","table-condensed","mt-2"],[4,"ngFor","ngForOf"],[1,"btn-copy",3,"click"]],template:function(tt,he){1&tt&&(e.YNc(0,wn,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"h4",4),e._UZ(5,"img",5),e._uU(6," \xa0Leaderboard "),e.qZA(),e.TgZ(7,"h6",6)(8,"a",7),e._uU(9),e.qZA(),e.TgZ(10,"p",8),e._uU(11,"Redeemable point updates every 100 threshold."),e.qZA()()(),e.TgZ(12,"div",9)(13,"table",10)(14,"tbody")(15,"tr")(16,"td")(17,"div",11)(18,"h3"),e._uU(19),e.qZA(),e.TgZ(20,"h5"),e._uU(21,"Points"),e.qZA()()(),e.TgZ(22,"td"),e.YNc(23,Ln,8,1,"div",12),e.YNc(24,Yn,5,1,"div",12),e.qZA()(),e.TgZ(25,"tr")(26,"td")(27,"div",11)(28,"h3"),e._uU(29),e.qZA(),e.TgZ(30,"h5"),e._uU(31,"Total Redeemed"),e.qZA()()(),e.TgZ(32,"td")(33,"div",11)(34,"h3"),e._uU(35),e.qZA(),e.TgZ(36,"h5"),e._uU(37,"No of Badges"),e.qZA()()()()()()(),e.TgZ(38,"div",3)(39,"div",13)(40,"a",14),e.NdJ("click",function(){return he.onCloseClick()}),e._uU(41,"Close"),e.qZA(),e.TgZ(42,"a",15),e.NdJ("click",function(){return he.showRecentTransactions=!he.showRecentTransactions}),e._uU(43,"Transactions"),e.qZA(),e.YNc(44,ti,2,0,"a",16),e.qZA()()()(),e.YNc(45,dt,7,1,"div",17)),2&tt&&(e.Q6J("ngIf",he.loading),e.xp6(5),e.s9C("src",null==he.leaderboard?null:he.leaderboard.avatar,e.LSH),e.xp6(3),e.Q6J("routerLink",e.VKq(11,at,"/u/"+he.username)),e.xp6(1),e.hij("@",he.username,""),e.xp6(10),e.Oqu(null==he.leaderboard?null:he.leaderboard.points),e.xp6(4),e.Q6J("ngIf",he.isMyProfile()),e.xp6(1),e.Q6J("ngIf",!he.isMyProfile()),e.xp6(5),e.Oqu(he.getRedeemedAmount()),e.xp6(6),e.Oqu(he.getBadgeCount()),e.xp6(9),e.Q6J("ngIf",he.isMyProfile()),e.xp6(1),e.Q6J("ngIf",he.showRecentTransactions))},dependencies:[_e.sg,_e.O5,n.rH,tn.t,_e.uU],styles:[".leaderboard[_ngcontent-%COMP%]{background:#211e1e}.leaderboard[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .leaderboard[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f5f5f5}mat-dialog-content[_ngcontent-%COMP%]{padding-bottom:10px}mat-grid-tile[_ngcontent-%COMP%]{border:1px dashed whitesmoke}mat-grid-tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#44d62c}.btn-redeem[_ngcontent-%COMP%]{color:#44d62c}.info[_ngcontent-%COMP%]{margin-bottom:10px;font-size:.7em}.username[_ngcontent-%COMP%]{color:#44d62c}.header-avatar[_ngcontent-%COMP%]{max-height:50px;max-width:50px}.tnx-section[_ngcontent-%COMP%]{font-size:.8em;color:#f5f5f5;max-width:60%!important}.tnx-section[_ngcontent-%COMP%] .tnx-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.tnx-section[_ngcontent-%COMP%] .tnx-header-action[_ngcontent-%COMP%]{color:#44d62c}.tnx-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .tnx-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{font-size:.9em;color:#f5f5f5}.tnx-section[_ngcontent-%COMP%] .btn-copy[_ngcontent-%COMP%]{color:#44d62c;font-size:.8em}"]})}return Ee})()},2951:(ft,Ie,C)=>{"use strict";C.d(Ie,{S:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchLeaderboard(ue,se){this.http.get(l.e.LEADERBOARDS.FETCH_LEADERBOARD(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchLeaderboard(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}redeem(ue,se){this.http.post(l.e.LEADERBOARDS.REDEEM(),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.redeem(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}fetchRecentAchievements(ue,se){this.http.get(l.e.LEADERBOARDS.FETCH_RECENT_ACHIEVEMENTS(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchRecentAchievements(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},1822:(ft,Ie,C)=>{"use strict";C.d(Ie,{X:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchWallet(ue,se,te=null){let oe=null==te?l.e.WALLET.FETCH_MY_WALLET(se):l.e.WALLET.FETCH_USER_WALLET(te,se);this.http.get(oe).subscribe(ce=>{this.eventBus.publish(ue,ce)},ce=>{this.eventBus.publish(ue,ce)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},7222:(ft,Ie,C)=>{"use strict";C.d(Ie,{o:()=>I});var e=C(2495),l=C(553),D=C(5879);let I=(()=>{class S extends e.O{constructor(){super()}static#e=this.AUTH={LOGIN:n=>l.N.base_url+"/oauth/token"+e.O.toParamString(n),REFRESH_TOKEN:n=>l.N.base_url+"/oauth/token"+e.O.toParamString(n)};static#t=this.REGISTER={SEND_OTP:n=>l.N.base_url+"/api/v1/register/verify"+e.O.toParamString(n),REGISTER:n=>l.N.base_url+"/api/v1/register"+e.O.toParamString(n)};static#n=this.RESET_PASSWORD={REQUEST_TOKEN:n=>l.N.base_url+"/api/v1/reset_password"+e.O.toParamString(n),RESET_PASSWORD:n=>l.N.base_url+"/api/v1/reset_password"+e.O.toParamString(n)};static#i=this.\u0275fac=function(Z){return new(Z||S)};static#r=this.\u0275prov=D.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},7043:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{AuthModule:()=>Ze});var e=C(6814),l=C(1662),D=C(6223),I=C(7259),S=C(8637),w=C(5879),n=C(8480),Z=C(5462),ee=C(30),re=C(6945);const ue=function(){return["/reset-password"]};let se=(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(nn,Dn,Ot),this.authService=Nt,this.notifier=Qt,this.loginForm=new D.cw({username:new D.NI("",D.kI.required),password:new D.NI("",D.kI.required)})}componentName(){return"LoginComponent"}ngOnInit(){this.authService.isAuthenticated()&&this.navigateByUrl("/",Nt=>{})}login(){let Nt=this.componentKey(I.Z.AUTH.LOGIN_SUCCESS);this.authService.login(Nt,this.loginForm.value.username,this.loginForm.value.password),this.subscribe(Nt,null,Qt=>{this.navigate("/",nn=>{this.notifier.success("Success!","Successfully logged in.")})}),this.subscribe(this.getMultiErrorKey(Nt,1),"/auth/login",Qt=>{this.notifier.error("Something went wrong!","Error happened on server.")}),this.subscribe(this.getMultiErrorKey(Nt,2),"/auth/login",Qt=>{this.notifier.warning("Login Failed!","Wrong credentials or missing access rights to application.")})}isAuthenticated(){return this.authService.isAuthenticated()}forgotPassword(){this.notifier.info("Later!","Will be implemented later!")}register(){this.notifier.info("Later!","Will be implemented later!")}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-login"]],features:[w.qOj],decls:84,vars:4,consts:[["lang","en"],["charset","utf-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],["content","Premium Multipurpose Admin & Dashboard Template","name","description"],["content","Themesbrand","name","author"],["rel","shortcut icon","href","assets/apanel/images/favicon.ico"],["href","/assets/apanel/css/bootstrap.min.css","id","bootstrap-style","rel","stylesheet","type","text/css"],["href","/assets/apanel/css/icons.min.css","rel","stylesheet","type","text/css"],["href","/assets/apanel/css/app.min.css","id","app-style","rel","stylesheet","type","text/css"],[1,"account-pages","my-5","pt-sm-5"],[1,"container"],[1,"row","justify-content-center"],[1,"col-md-8","col-lg-6","col-xl-5"],[1,"card","overflow-hidden"],[1,"bg-primary-subtle"],[1,"row"],[1,"col-7"],[1,"text-primary","p-4"],[1,"text-primary"],[1,"col-5","align-self-end"],["src","assets/apanel/images/profile-img.png","alt","",1,"img-fluid"],[1,"card-body","pt-0"],[1,"auth-logo"],["href","index.html",1,"auth-logo-light"],[1,"avatar-md","profile-user-wid","mb-4"],[1,"avatar-title","rounded-circle","bg-light"],["src","assets/apanel/images/logos/astha.svg","alt","","height","34",1,"rounded-circle"],["href","index.html",1,"auth-logo-dark"],[1,"p-2"],[1,"form-horizontal",3,"formGroup","ngSubmit"],[1,"mb-3"],["for","username",1,"form-label"],["type","text","id","username","formControlName","username","placeholder","Enter username",1,"form-control"],[1,"form-label"],[1,"input-group","auth-pass-inputgroup"],["type","password","placeholder","Enter password","formControlName","password","aria-label","Password","aria-describedby","password-addon",1,"form-control"],["type","button","id","password-addon",1,"btn","btn-light"],[1,"mdi","mdi-eye-outline"],[1,"form-check"],["type","checkbox","id","remember-check","checked","checked",1,"form-check-input"],["for","remember-check",1,"form-check-label"],[1,"mt-3","d-grid"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"disabled"],[1,"mt-4","text-center"],[1,"font-size-14","mb-3"],[1,"list-inline"],[1,"list-inline-item"],["href","javascript::void()",1,"social-list-item","bg-primary","text-white","border-primary"],[1,"mdi","mdi-facebook"],["href","javascript::void()",1,"social-list-item","bg-info","text-white","border-info"],[1,"mdi","mdi-twitter"],["href","javascript::void()",1,"social-list-item","bg-danger","text-white","border-danger"],[1,"mdi","mdi-google"],["href","javascript::void()",1,"text-muted",3,"routerLink"],[1,"mdi","mdi-lock","me-1"],[1,"mt-5","text-center"],["href","javascript::void()","routerLink","/sign-up",1,"fw-medium","text-primary"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"html",0)(1,"head"),w._UZ(2,"meta",1),w.TgZ(3,"title"),w._uU(4,"Login | Servicito"),w.qZA(),w._UZ(5,"meta",2)(6,"meta",3)(7,"meta",4)(8,"link",5)(9,"link",6)(10,"link",7)(11,"link",8),w.qZA(),w.TgZ(12,"body")(13,"div",9)(14,"div",10)(15,"div",11)(16,"div",12)(17,"div",13)(18,"div",14)(19,"div",15)(20,"div",16)(21,"div",17)(22,"h5",18),w._uU(23,"Welcome Back !"),w.qZA(),w.TgZ(24,"p"),w._uU(25,"Sign in to continue to Servicito."),w.qZA()()(),w.TgZ(26,"div",19),w._UZ(27,"img",20),w.qZA()()(),w.TgZ(28,"div",21)(29,"div",22)(30,"a",23)(31,"div",24)(32,"span",25),w._UZ(33,"img",26),w.qZA()()(),w.TgZ(34,"a",27)(35,"div",24)(36,"span",25),w._UZ(37,"img",26),w.qZA()()()(),w.TgZ(38,"div",28)(39,"form",29),w.NdJ("ngSubmit",function(){return nn.login()}),w.TgZ(40,"div",30)(41,"label",31),w._uU(42,"Username"),w.qZA(),w._UZ(43,"input",32),w.qZA(),w.TgZ(44,"div",30)(45,"label",33),w._uU(46,"Password"),w.qZA(),w.TgZ(47,"div",34),w._UZ(48,"input",35),w.TgZ(49,"button",36),w._UZ(50,"i",37),w.qZA()()(),w.TgZ(51,"div",38),w._UZ(52,"input",39),w.TgZ(53,"label",40),w._uU(54," Remember me "),w.qZA()(),w.TgZ(55,"div",41)(56,"button",42),w._uU(57,"Log In "),w.qZA()(),w.TgZ(58,"div",43)(59,"h5",44),w._uU(60,"Sign in with"),w.qZA(),w.TgZ(61,"ul",45)(62,"li",46)(63,"a",47),w._UZ(64,"i",48),w.qZA()(),w.TgZ(65,"li",46)(66,"a",49),w._UZ(67,"i",50),w.qZA()(),w.TgZ(68,"li",46)(69,"a",51),w._UZ(70,"i",52),w.qZA()()()(),w.TgZ(71,"div",43)(72,"a",53),w._UZ(73,"i",54),w._uU(74," Forgot your password?"),w.qZA()()()()()(),w.TgZ(75,"div",55)(76,"div")(77,"p"),w._uU(78,"Don't have an account ? "),w.TgZ(79,"a",56),w._uU(80," Signup now "),w.qZA()(),w.TgZ(81,"p"),w._uU(82,"\xa9 "),w._uU(83," servicito "),w.qZA()()()()()()()()()),2&Qt&&(w.xp6(39),w.Q6J("formGroup",nn.loginForm),w.xp6(17),w.Q6J("disabled",!nn.loginForm.valid),w.xp6(16),w.Q6J("routerLink",w.DdM(3,ue)))},dependencies:[l.rH,D._Y,D.Fj,D.JJ,D.JL,D.sg,D.u]})}return rt})();var te=function(rt){return rt[rt.INIT_VERIFICATION=0]="INIT_VERIFICATION",rt[rt.WAITING_FOR_CODE=1]="WAITING_FOR_CODE",rt[rt.VERIFIED=2]="VERIFIED",rt}(te||{}),oe=C(1547),ce=C(7222),_e=C(9862);let Re=(()=>{class rt extends oe.b{constructor(Nt,Qt,nn,Dn){super(Nt,Qt),this.http=nn,this.eventBus=Dn}sendOtp(Nt,Qt){this.http.post(ce.o.REGISTER.SEND_OTP({identity:Qt}),null).subscribe(nn=>{this.eventBus.publish(Nt,nn)},nn=>{this.eventBus.publish(this.getErrorKey(Nt),nn)})}register(Nt,Qt,nn){0===Qt.email?.trim().length&&(Qt.email=null),this.http.post(ce.o.REGISTER.REGISTER({token:nn}),Qt).subscribe(Dn=>{this.authService.setAuth(Dn),this.eventBus.publish(Nt,Dn)},Dn=>{this.eventBus.publish(this.getErrorKey(Nt),Dn)})}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.LFG(n.e),w.LFG(Z.l),w.LFG(_e.eN),w.LFG(ee.Y))};static#t=this.\u0275prov=w.Yz7({token:rt,factory:rt.\u0275fac,providedIn:"root"})}return rt})();function mt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Phone number should be 11 digits!"),w.qZA()())}function Ge(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"div",14),w.YNc(2,mt,3,0,"div",15),w.qZA(),w.TgZ(3,"div",16)(4,"span",17),w._uU(5,"+88"),w.qZA(),w._UZ(6,"input",18),w.qZA(),w.TgZ(7,"div",19)(8,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.sendOtp())}),w._uU(9,"Send OTP"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.phone)),w.xp6(4),w.Q6J("formControl",Nt.phone)}}function Lt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"OTP should be 6 digits!"),w.qZA()())}function je(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"div",14),w.YNc(2,Lt,3,0,"div",15),w.qZA(),w.TgZ(3,"div",16)(4,"span",17),w._uU(5,"OTP"),w.qZA(),w._UZ(6,"input",22),w.qZA(),w.TgZ(7,"div",19)(8,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.verifyOtp())}),w._uU(9,"Verify"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.otp)),w.xp6(4),w.Q6J("formControl",Nt.otp)}}function Tt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Name must be at least 3 characters!"),w.qZA()())}function xt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Must provide a valid username and should between least 6-20 characters!"),w.qZA()())}function St(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Name select a gender!"),w.qZA()())}function Zt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Invalid email!"),w.qZA()())}function yt(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Password length must be at least 6!"),w.qZA()())}function un(rt,bt){1&rt&&(w.TgZ(0,"div",21)(1,"span"),w._uU(2,"Password length must be at least 6!"),w.qZA()())}function Jt(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",13)(1,"form",23)(2,"div",24)(3,"span",17),w._UZ(4,"i",25),w.qZA(),w._UZ(5,"input",26),w.qZA(),w.TgZ(6,"div",14),w.YNc(7,Tt,3,0,"div",15),w.qZA(),w.TgZ(8,"div",24)(9,"span",17),w._UZ(10,"i",25),w.qZA(),w._UZ(11,"input",27),w.qZA(),w.TgZ(12,"div",14),w.YNc(13,xt,3,0,"div",15),w.qZA(),w.TgZ(14,"div")(15,"div",28),w._UZ(16,"input",29),w.TgZ(17,"label",30),w._uU(18," Male "),w.qZA()(),w.TgZ(19,"div",28),w._UZ(20,"input",31),w.TgZ(21,"label",32),w._uU(22," Female "),w.qZA()(),w.TgZ(23,"div",28),w._UZ(24,"input",33),w.TgZ(25,"label",34),w._uU(26," Other "),w.qZA()(),w.TgZ(27,"div",14),w.YNc(28,St,3,0,"div",15),w.qZA()(),w.TgZ(29,"div",16)(30,"span",17),w._uU(31,"@"),w.qZA(),w._UZ(32,"input",35),w.TgZ(33,"div",14),w.YNc(34,Zt,3,0,"div",15),w.qZA()(),w.TgZ(35,"div",24)(36,"span",17),w._UZ(37,"i",36),w.qZA(),w._UZ(38,"input",37),w.TgZ(39,"div",14),w.YNc(40,yt,3,0,"div",15),w.qZA()(),w.TgZ(41,"div",24)(42,"span",17),w._UZ(43,"i",36),w.qZA(),w._UZ(44,"input",38),w.TgZ(45,"div",14),w.YNc(46,un,3,0,"div",15),w.qZA()(),w.TgZ(47,"div",19)(48,"button",20),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.register())}),w._uU(49,"submit"),w.qZA()()()()}if(2&rt){const Nt=w.oxw();w.xp6(1),w.Q6J("formGroup",Nt.registrationForm),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.name)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.username)),w.xp6(15),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.gender)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.email)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.password)),w.xp6(6),w.Q6J("ngIf",Nt.isInvalidInput(Nt.registrationForm.controls.confirmPassword))}}const tn=function(){return["/login"]};let wn=(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(Nt,Qt,nn),this.notifier=Dn,this.registrationService=Ot,this.step=te.INIT_VERIFICATION,this.phone=new D.NI("",[D.kI.required,D.kI.minLength(11),D.kI.maxLength(11)]),this.otp=new D.NI("",[D.kI.required,D.kI.minLength(6)]),this.registrationForm=new D.cw({name:new D.NI("",[D.kI.required,D.kI.minLength(3)]),gender:new D.NI("",[D.kI.required]),email:new D.NI("",[D.kI.email]),password:new D.NI("",[D.kI.required,D.kI.minLength(6)]),confirmPassword:new D.NI("",[D.kI.required,D.kI.minLength(6)]),username:new D.NI("",[D.kI.required,D.kI.minLength(6)])})}componentName(){return"RegistrationComponent"}ngOnInit(){this.registerSubscriptions()}isVerified(){return this.step===te.VERIFIED}isInitiating(){return this.step===te.INIT_VERIFICATION}isWaitingForCode(){return this.step===te.WAITING_FOR_CODE}sendOtp(){if(this.phone.invalid||null==this.phone.value)return void this.notifier.warning("Warning","Phone number should be 11 digits!");let Nt=this.phone.value;this.notifier.log(Nt);let Qt=this.componentKey(I.Z.REGISTRATION.OTP_SENT);this.registrationService.sendOtp(Qt,Nt),this.subscribe(Qt,null,(nn,Dn)=>{this.registrationForm.controls.username.setValue(this.phone.value),this.notifier.success("OTP Sent!","We've sent you an OTP. You need to provide the OTP here."),this.notifier.log(Dn),this.step=te.WAITING_FOR_CODE}),this.subscribe(this.getErrorKey(Qt),null,(nn,Dn)=>{this.notifier.warning("Failed",Dn.data.error.message)}),this.notifier.log(this.phone.value)}registerSubscriptions(){this.onRegisterEvent()}onRegisterEvent(){}verifyOtp(){this.otp.invalid||(this.step=te.VERIFIED)}register(){if(this.registrationForm.invalid)return void this.notifier.warning("Incorrect inputs!","Please fill the form correctly.");if(null==this.otp.value)return void this.notifier.warning("OTP Invalid!","Please enter OTP.");let Nt=this.prepare(this.registrationForm.value),Qt=this.componentKey(I.Z.REGISTRATION.REGISTER_SUCCESS);this.registrationService.register(Qt,Nt,this.otp.value),this.subscribe(Qt,"/choose-interests",(nn,Dn)=>{this.notifier.success("SUCCESS!","You've been successfully registered!")}),this.subscribe(this.getErrorKey(Qt),"/sign-up",(nn,Dn)=>{this.notifier.warning("Registration Failed!",Dn.data.error.message)})}prepare(Nt){return{email:Nt.email,gender:Nt.gender,name:Nt.name,password:Nt.password,phone:this.phone.value,role:"User",username:Nt.username}}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z),w.Y36(Z.l),w.Y36(Re))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-registration"]],features:[w.qOj],decls:25,vars:5,consts:[[1,"login-page-hero-section","py-4"],[1,"container"],["src","assets/img/login-page-images/login-hero-page.png","alt","astha login page"],[1,"login-form-section","pb-5","px-3"],[1,"row"],[1,"col-12"],[1,"section-title"],["class","astha-login-form-area",4,"ngIf"],[1,"login-area","mt-5"],[1,"text-center","text-white"],[1,"btn-login",3,"routerLink"],[1,"copyright-area","pb-5"],[1,"col-12","text-center"],[1,"astha-login-form-area"],[1,"err-msg"],["class","text-warning",4,"ngIf"],[1,"input-group","flex-nowrap"],[1,"input-group-text"],["type","text","placeholder","Enter phone number",1,"form-control",3,"formControl"],[1,"btn-action"],["type","submit",1,"btn-sign-up",3,"click"],[1,"text-warning"],["type","text","placeholder","Enter OTP",1,"form-control",3,"formControl"],["action","POST",3,"formGroup"],[1,"input-group"],[1,"flaticon-user"],["type","text","placeholder","Your name","formControlName","name","required","required","min","3",1,"form-control"],["type","text","name","username","placeholder","Username","formControlName","username","required","required","min","3",1,"form-control"],[1,"form-check"],["type","radio","name","gender","id","exampleRadios1","value","MALE","formControlName","gender","checked","",1,"form-check-input"],["for","exampleRadios1",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios2","value","FEMALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios2",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios3","value","OTHER","formControlName","gender",1,"form-check-input"],["for","exampleRadios3",1,"form-check-label"],["type","email","name","email","placeholder","Email ID","formControlName","email",1,"form-control"],[1,"icon-home-outline"],["type","password","name","password","placeholder","Password","formControlName","password","min","6",1,"form-control"],["type","password","name","confirmPassword","placeholder","Confirm Password","formControlName","confirmPassword","min","6",1,"form-control"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"section",0)(1,"div",1),w._UZ(2,"img",2),w.qZA()(),w.TgZ(3,"section",3)(4,"div",1)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1"),w._uU(9,"sign up"),w.qZA()()(),w.TgZ(10,"div",5),w.YNc(11,Ge,10,2,"div",7),w.YNc(12,je,10,2,"div",7),w.YNc(13,Jt,50,7,"div",7),w.qZA(),w.TgZ(14,"div",8)(15,"h4",9),w._uU(16,"Already Registered?"),w.qZA(),w.TgZ(17,"a",10),w._uU(18,"Login"),w.qZA()()()()(),w.TgZ(19,"section",11)(20,"div",1)(21,"div",4)(22,"div",12)(23,"h5"),w._uU(24,"\xa9 SERVICITO LTD"),w.qZA()()()()()),2&Qt&&(w.xp6(11),w.Q6J("ngIf",nn.isInitiating()),w.xp6(1),w.Q6J("ngIf",nn.isWaitingForCode()),w.xp6(1),w.Q6J("ngIf",nn.isVerified()),w.xp6(4),w.Q6J("routerLink",w.DdM(4,tn)))},dependencies:[e.O5,l.rH,D._Y,D.Fj,D._,D.JJ,D.JL,D.Q7,D.oH,D.sg,D.u],styles:[".login-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.err-msg[_ngcontent-%COMP%]{margin-bottom:30px}.login-area[_ngcontent-%COMP%] .btn-login[_ngcontent-%COMP%]{margin-top:20px;border:1px solid #44d62c;border-radius:2em;color:#44d62c;padding:5px 50px}.btn-action[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.btn-sign-up[_ngcontent-%COMP%]{margin-top:10px;border:1px solid #44d62c;border-radius:2em;color:#000;background-color:#44d62c;padding:10px 70px}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;color:#fff}.login-page-hero-section[_ngcontent-%COMP%]{text-align:center}.login-page-hero-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70%;height:200px}section.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-transform:capitalize;font-weight:600;font-size:35px}.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin-bottom:35px}.astha-login-form-area[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{padding:0;background:none;border:0;color:#98a0ac;font-size:18px}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:0;width:100%;text-transform:capitalize;border-radius:20px;background:#3961ED;color:#fff;font-size:22px;font-weight:600;padding:12px 20px;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{opacity:.7;letter-spacing:.05em}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:0}[placeholder][_ngcontent-%COMP%]:focus::-webkit-input-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus::-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-ms-input-placeholder{opacity:0}textarea[_ngcontent-%COMP%]:focus, input[type=text][_ngcontent-%COMP%]:focus, input[type=password][_ngcontent-%COMP%]:focus, input[type=email][_ngcontent-%COMP%]:focus, .uneditable-input[_ngcontent-%COMP%]:focus{border-color:transparent;box-shadow:0 1px 1px transparent;outline:0 none}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#b3b8c1;text-transform:capitalize}.astha-login-form-area[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border-bottom:2px solid #F0F1F3;margin-bottom:30px;padding:5px}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]{color:#778fd4;text-transform:capitalize;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]:hover{color:#333}.login-form-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;color:#b9bec6}.astha-ls-social-area[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;grid-gap:30px}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;border:2px solid #F0F2F4;padding:20px;font-size:25px;border-radius:20px;color:#3961ee;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#333;border-color:#333}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;text-transform:capitalize;color:#9198a4}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#3961ed}@media (max-width: 480px){.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:12px;border-radius:12px}.astha-ls-social-area[_ngcontent-%COMP%]{grid-gap:15px}}"]})}return rt})();var Ln=C(617);function Yn(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Username must be at least 6 characters!"),w.qZA()())}function ti(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",14)(1,"div",15)(2,"span",16),w._uU(3,"+88"),w.qZA(),w._UZ(4,"input",17),w.qZA(),w.TgZ(5,"div",18),w.YNc(6,Yn,3,0,"div",19),w.qZA(),w.TgZ(7,"div",20)(8,"button",21),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.requestToken())}),w._uU(9,"Send OTP"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(4),w.Q6J("formControl",Nt.username),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.username))}}function gi(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Name must be 11 characters!"),w.qZA()())}function Rn(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"Token must be 5 characters!"),w.qZA()())}function dt(rt,bt){1&rt&&(w.TgZ(0,"div",22)(1,"span"),w._uU(2,"New must be at least 8 characters!"),w.qZA()())}function at(rt,bt){if(1&rt){const Nt=w.EpF();w.TgZ(0,"div",14)(1,"div",15)(2,"span",16),w._UZ(3,"i",23),w.qZA(),w._UZ(4,"input",24),w.qZA(),w.TgZ(5,"div",18),w.YNc(6,gi,3,0,"div",19),w.qZA(),w.TgZ(7,"div",15)(8,"span",16),w._uU(9,"OTP"),w.qZA(),w._UZ(10,"input",25),w.qZA(),w.TgZ(11,"div",18),w.YNc(12,Rn,3,0,"div",19),w.qZA(),w.TgZ(13,"div",15)(14,"span",16)(15,"mat-icon"),w._uU(16,"lock"),w.qZA()(),w._UZ(17,"input",26),w.qZA(),w.TgZ(18,"div",18),w.YNc(19,dt,3,0,"div",19),w.qZA(),w.TgZ(20,"div",20)(21,"button",27),w.NdJ("click",function(){w.CHM(Nt);const nn=w.oxw();return w.KtG(nn.resetPassword())}),w._uU(22,"Verify"),w.qZA()()()}if(2&rt){const Nt=w.oxw();w.xp6(4),w.Q6J("formControl",Nt.username),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.username)),w.xp6(4),w.Q6J("formControl",Nt.token),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.token)),w.xp6(5),w.Q6J("formControl",Nt.password),w.xp6(2),w.Q6J("ngIf",Nt.isInvalidInput(Nt.password)),w.xp6(2),w.Q6J("disabled",Nt.isVerifyButtonDisabled())}}const Be=function(){return["/login"]},Ee=function(){return["/sign-up"]},me=[{path:"",pathMatch:"full",redirectTo:"login"},{path:"login",component:se},{path:"sign-up",component:wn},{path:"reset-password",component:(()=>{class rt extends S.H{constructor(Nt,Qt,nn,Dn,Ot){super(Nt,Qt,nn),this.notifier=Dn,this.authService=Ot,this.step=te.INIT_VERIFICATION,this.token=new D.NI("",[D.kI.required,D.kI.minLength(5)]),this.username=new D.NI("",[D.kI.required,D.kI.minLength(6),D.kI.maxLength(11)]),this.password=new D.NI("",[D.kI.required,D.kI.minLength(6)]),this.tokenValidity=new Date}componentName(){return"ResetPasswordComponent"}ngOnInit(){}isVerified(){return this.step===te.VERIFIED}isInitiating(){return this.step===te.INIT_VERIFICATION}isWaitingForCode(){return this.step===te.WAITING_FOR_CODE}requestToken(){if(this.username.invalid)return void this.notifier.warning("Warning","Username must be at least 6 characters!");let Nt=this.username.value;this.notifier.log(Nt);let Qt=this.componentKey(I.Z.RESET_PASSWORD.TOKEN_REQUESTED);this.authService.requestPasswordResetToken(Qt,Nt),this.subscribe(Qt,null,(nn,Dn)=>{this.step=te.WAITING_FOR_CODE;let Ot=Dn.data;this.tokenValidity=new Date((new Date).getMilliseconds()+Ot.tokenValidityMillis)}),this.subscribe(this.getErrorKey(Qt),null,(nn,Dn)=>{this.notifier.warning("Failed!",Dn.data.error.message)}),this.notifier.log(Nt)}verifyOtp(){this.step=te.VERIFIED}resetPassword(){let Nt=this.componentKey(I.Z.RESET_PASSWORD.RESET_SUCCESS);this.authService.resetPassword(Nt,this.token.value,this.username.value,this.password.value),this.subscribe(Nt,"/login",(Qt,nn)=>{this.notifier.success("Success!","Password has been reset successfully. Please login to continue.")}),this.subscribe(this.getErrorKey(Nt),null,(Qt,nn)=>{this.notifier.warning("Failed!",nn.data.error.message)})}isVerifyButtonDisabled(){return this.username.invalid||this.token.invalid||this.password.invalid}static#e=this.\u0275fac=function(Qt){return new(Qt||rt)(w.Y36(ee.Y),w.Y36(l.F0),w.Y36(re.z),w.Y36(Z.l),w.Y36(n.e))};static#t=this.\u0275cmp=w.Xpm({type:rt,selectors:[["app-reset-password"]],features:[w.qOj],decls:30,vars:6,consts:[[1,"login-page-hero-section"],[1,"container"],["src","assets/img/login-page-images/login-hero-page.png","alt","astha login page"],[1,"login-form-section","mt-4","px-3"],[1,"row"],[1,"col-12"],[1,"section-title"],["class","astha-login-form-area",4,"ngIf"],[1,"reg-login-section","mt-5"],[1,"login-area"],[1,"text-center","text-white"],[1,"btn-login",3,"routerLink"],[1,"copyright-area","mt-5","pb-5"],[1,"col-12","text-center"],[1,"astha-login-form-area"],[1,"input-group","flex-nowrap"],[1,"input-group-text"],["type","text","placeholder","Enter phone number","required","required",1,"form-control",3,"formControl"],[1,"err-msg"],["class","text-warning",4,"ngIf"],[1,"btn-action"],["type","submit",1,"btn-reset",3,"click"],[1,"text-warning"],[1,"flaticon-user"],["type","text","placeholder","Enter OTP","required","required","readonly","",1,"form-control",3,"formControl"],["type","text","placeholder","Enter OTP","required","required",1,"form-control",3,"formControl"],["type","text","placeholder","Enter new password","required","required",1,"form-control",3,"formControl"],["type","submit",1,"btn-reset",3,"disabled","click"]],template:function(Qt,nn){1&Qt&&(w.TgZ(0,"section",0)(1,"div",1),w._UZ(2,"img",2),w.qZA()(),w.TgZ(3,"section",3)(4,"div",1)(5,"div",4)(6,"div",5)(7,"div",6)(8,"h1"),w._uU(9,"Reset Password"),w.qZA()()(),w.TgZ(10,"div",5),w.YNc(11,ti,10,2,"div",7),w.YNc(12,at,23,7,"div",7),w.qZA()()()(),w.TgZ(13,"section",8)(14,"div",9)(15,"h5",10),w._uU(16,"Already Registered?"),w.qZA(),w.TgZ(17,"a",11),w._uU(18,"Login"),w.qZA()(),w.TgZ(19,"div",9)(20,"h5",10),w._uU(21,"Don't have an account yet?"),w.qZA(),w.TgZ(22,"a",11),w._uU(23,"Sign Up"),w.qZA()()(),w.TgZ(24,"section",12)(25,"div",1)(26,"div",4)(27,"div",13)(28,"h5"),w._uU(29,"\xa9 SERVICITO LTD"),w.qZA()()()()()),2&Qt&&(w.xp6(11),w.Q6J("ngIf",nn.isInitiating()),w.xp6(1),w.Q6J("ngIf",nn.isWaitingForCode()),w.xp6(5),w.Q6J("routerLink",w.DdM(4,Be)),w.xp6(5),w.Q6J("routerLink",w.DdM(5,Ee)))},dependencies:[e.O5,l.rH,D.Fj,D.JJ,D.Q7,D.oH,Ln.Hw],styles:[".reg-login-section[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-evenly;align-items:baseline}.login-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.login-area[_ngcontent-%COMP%] .btn-login[_ngcontent-%COMP%]{margin-top:20px;border:1px solid #44d62c;border-radius:2em;color:#44d62c;padding:5px 50px}.btn-action[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:center}.btn-reset[_ngcontent-%COMP%]{margin-top:10px;border:1px solid #44d62c;border-radius:2em;color:#000;background-color:#44d62c;padding:10px 70px}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:none;color:#fff}.login-page-hero-section[_ngcontent-%COMP%]{text-align:center}.login-page-hero-section[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:70%;height:200px}section.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{text-transform:capitalize;font-weight:600;font-size:35px}.login-form-section[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{margin-bottom:35px}.astha-login-form-area[_ngcontent-%COMP%] .input-group-text[_ngcontent-%COMP%]{padding:0;background:none;border:0;color:#98a0ac;font-size:18px}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border:0;width:100%;text-transform:capitalize;border-radius:20px;background:#3961ED;color:#fff;font-size:22px;font-weight:600;padding:12px 20px;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease;cursor:pointer;opacity:1}.astha-login-form-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{opacity:.7;letter-spacing:.05em}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{border:0}[placeholder][_ngcontent-%COMP%]:focus::-webkit-input-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus::-moz-placeholder{opacity:0}[placeholder][_ngcontent-%COMP%]:focus:-ms-input-placeholder{opacity:0}textarea[_ngcontent-%COMP%]:focus, input[type=text][_ngcontent-%COMP%]:focus, input[type=password][_ngcontent-%COMP%]:focus, input[type=email][_ngcontent-%COMP%]:focus, .uneditable-input[_ngcontent-%COMP%]:focus{border-color:transparent;box-shadow:0 1px 1px transparent;outline:0 none}.astha-login-form-area[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#b3b8c1;text-transform:capitalize}.astha-login-form-area[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{border-bottom:2px solid #F0F1F3;padding:5px}.err-msg[_ngcontent-%COMP%]{margin-bottom:30px}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]{color:#778fd4;text-transform:capitalize;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-login-form-area[_ngcontent-%COMP%] .reset-pass[_ngcontent-%COMP%]:hover{color:#333}.login-form-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;color:#b9bec6}.astha-ls-social-area[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;grid-gap:30px}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;border:2px solid #F0F2F4;padding:20px;font-size:25px;border-radius:20px;color:#3961ee;transition:all .5s ease;-webkit-transition:all .5s ease;-moz-transition:all .5s ease;-ms-transition:all .5s ease;-o-transition:all .5s ease}.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#333;border-color:#333}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:18px;text-transform:capitalize;color:#9198a4}.copyright-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#3961ed}@media (max-width: 480px){.astha-ls-social-area[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:12px;border-radius:12px}.astha-ls-social-area[_ngcontent-%COMP%]{grid-gap:15px}}"]})}return rt})()}];let tt=(()=>{class rt{static#e=this.\u0275fac=function(Qt){return new(Qt||rt)};static#t=this.\u0275mod=w.oAB({type:rt});static#n=this.\u0275inj=w.cJS({imports:[l.Bz.forChild(me),l.Bz]})}return rt})();var he=C(9890);let Ze=(()=>{class rt{static#e=this.\u0275fac=function(Qt){return new(Qt||rt)};static#t=this.\u0275mod=w.oAB({type:rt});static#n=this.\u0275inj=w.cJS({providers:[{provide:_e.TP,useClass:he.I,multi:!0}],imports:[e.ez,tt,D.UX,Ln.Ps]})}return rt})()},9890:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>S});var e=C(9862),l=C(5879),D=C(8480),I=C(1662);let S=(()=>{class w{constructor(Z,ee){this.authService=Z,this.router=ee,this.tryCount=0}intercept(Z,ee){let re=this.authService.getAccessToken();return null===re||0===re.trim().length||"OPTIONS"===Z.method?ee.handle(Z):ee.handle(this.applyCredentials(Z,re))}navigateByUrl(Z,ee){null!=Z&&this.router.navigateByUrl(Z).then(re=>ee(re))}static isAuthError(Z){return Z instanceof e.UA&&(401===Z.status||0===Z.status)}static isAccessTokenExpired(Z){return Z instanceof e.UA&&401===Z.status&&Z.error.error_description.startsWith("Access token expired")?(console.log("Access token expired",Z),!0):(console.log("Access token not expired",Z),!1)}applyCredentials(Z,ee){return Z.clone({headers:this.authService.getAuthHeadersFromToken(ee)})}static#e=this.\u0275fac=function(ee){return new(ee||w)(l.LFG(D.e),l.LFG(I.F0))};static#t=this.\u0275prov=l.Yz7({token:w,factory:w.\u0275fac})}return w})()},9538:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>I});var e=C(5879),l=C(1662),D=C(8480);let I=(()=>{class S{constructor(n,Z){this.router=n,this.authService=Z}canActivate(n,Z){return!!this.authService.isAuthenticated()||(this.router.navigate(["/login"]).then(ee=>console.log(n)),!1)}static#e=this.\u0275fac=function(Z){return new(Z||S)(e.LFG(l.F0),e.LFG(D.e))};static#t=this.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},8480:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>te});var e=C(9862),l=C(3108),D=C(553),I=C(7222),S=C(7259);class w extends Error{}w.prototype.name="InvalidTokenError";var re=C(5879),ue=C(30),se=C(6945);let te=(()=>{class oe{constructor(_e,Re,mt){this.http=_e,this.eventBus=Re,this.subContainer=mt,this.refreshToken$=this.http.post(this.getRefreshTokenUrl(),null)}login(_e,Re,mt){const Ge=this.getLoginUrl(Re,mt);this.http.post(Ge,null).subscribe(je=>{this.setAuth(je),this.eventBus.publish(_e,je)},je=>{this.eventBus.publish(je.status>=500||0==je.status?_e+":error:1":_e+":error:2",je)})}setAuth(_e){l.n.putAuth(_e)}isAuthenticated(){return!!l.n.retrieve(l.n.KEYS.accessToken)}isAdmin(){return"admin"==this.getAuth().username}getAuthorities(){return function ee(oe,ce){if("string"!=typeof oe)throw new w("Invalid token specified: must be a string");ce||(ce={});const _e=!0===ce.header?0:1,Re=oe.split(".")[_e];if("string"!=typeof Re)throw new w(`Invalid token specified: missing part #${_e+1}`);let mt;try{mt=function Z(oe){let ce=oe.replace(/-/g,"+").replace(/_/g,"/");switch(ce.length%4){case 0:break;case 2:ce+="==";break;case 3:ce+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function n(oe){return decodeURIComponent(atob(oe).replace(/(.)/g,(ce,_e)=>{let Re=_e.charCodeAt(0).toString(16).toUpperCase();return Re.length<2&&(Re="0"+Re),"%"+Re}))}(ce)}catch{return atob(ce)}}(Re)}catch(Ge){throw new w(`Invalid token specified: invalid base64 for part #${_e+1} (${Ge.message})`)}try{return JSON.parse(mt)}catch(Ge){throw new w(`Invalid token specified: invalid json for part #${_e+1} (${Ge.message})`)}}(this.getAccessToken()).authorities}hasPrivilege(_e){const Re=this.getAuthorities();return!!Re&&Re.includes(_e)}logout(){let _e=this.globalKey(S.Z.AUTH.LOGOUT);return this.isAuthenticated()&&(l.n.clear(),this.eventBus.publish(_e,null)),this.subContainer.disposeNonGlobal(),location.reload(),console.log("Logged out! Disposing non-global subscriptions.."),console.log(Array.from(this.subContainer.getKeys().keys())),_e}globalKey(_e){return"global:"+_e}getAuth(){return l.n.getAuth()}getFirstName(){if(!this.isAuthenticated())return"";const _e=this.getAuth().name.split(" ");return _e.length<1?"":_e[0]}getAccessToken(){return l.n.retrieve(l.n.KEYS.accessToken)}getRefreshToken(){return l.n.retrieve(l.n.KEYS.refreshToken)}getLoginUrl(_e,Re){return I.o.AUTH.LOGIN({grant_type:"password",client_id:D.N.client_id,client_secret:D.N.client_secret,username:_e,password:Re})}getRefreshTokenUrl(){return I.o.AUTH.REFRESH_TOKEN({grant_type:"refresh_token",client_id:D.N.client_id,client_secret:D.N.client_secret,refresh_token:this.getRefreshToken()})}refreshToken(_e){this.refreshToken$.subscribe(Re=>{l.n.putAuth(Re),console.log("Token refreshed!"),_e(Re)},Re=>{this.logout()})}getAuthHeaders(){return new e.WM({Authorization:"Bearer "+this.getAccessToken()})}getAuthHeadersFromToken(_e){return new e.WM({Authorization:"Bearer "+_e})}requestPasswordResetToken(_e,Re){this.http.get(I.o.RESET_PASSWORD.REQUEST_TOKEN({username:Re})).subscribe(mt=>{this.eventBus.publish(_e,mt)},mt=>{this.eventBus.publish(S.Z.RESET_PASSWORD.RESET_PASSWORD_ERROR,mt)})}resetPassword(_e,Re,mt,Ge){this.http.post(I.o.RESET_PASSWORD.REQUEST_TOKEN({token:Re,username:mt,password:Ge}),null).subscribe(Lt=>{this.eventBus.publish(_e,Lt)},Lt=>{this.eventBus.publish(_e+"error",Lt)})}static#e=this.\u0275fac=function(Re){return new(Re||oe)(re.LFG(e.eN),re.LFG(ue.Y),re.LFG(se.z))};static#t=this.\u0275prov=re.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},5239:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}deleteAccount(ue){this.http.delete(l.e.USER.DELETE_ME()).subscribe(se=>{this.eventBus.publish(ue,se)},se=>{this.handleError(se,te=>{this.deleteAccount(ue)},te=>{this.eventBus.publish(this.getErrorKey(ue),te)})})}searchUsers(ue,se){this.http.get(l.e.USER.SEARCH(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.searchUsers(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9797:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{CmsModule:()=>ue});var e=C(6814),l=C(1662),D=C(5879),I=C(9661);const w=[{path:"files",component:(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275cmp=D.Xpm({type:se,selectors:[["app-file"]],decls:1,vars:0,template:function(ce,_e){1&ce&&D._UZ(0,"app-file-list")},dependencies:[I.E]})}return se})()}];let n=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=D.oAB({type:se});static#n=this.\u0275inj=D.cJS({imports:[l.Bz.forChild(w),l.Bz]})}return se})();var Z=C(7151),ee=C(6223),re=C(7700);let ue=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=D.oAB({type:se});static#n=this.\u0275inj=D.cJS({providers:[{provide:re.WI,useValue:{}}],imports:[e.ez,ee.UX,n,Z.g]})}return se})()},9661:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>Ve});var e=C(5879),l=C(6405),D=C(6032);let I={defaultLayout:l.A.GRID,upsertOnDialog:!0,showUserFilter:!1,showDeleteButton:!0,searchEndpoint:D.s.FILES.FILE_ENDPOINT,imageEndpoint:D.s.FILES.IMAGE_ENDPOINT,delEndpoint:D.s.FILES.FILE_ENDPOINT,imgDelEndpoint:D.s.FILES.IMAGE_ENDPOINT},S={list:"/cms/files",create:"/cms/files/create",update(ct){return null==ct?this.create:"/admin/files/"+ct+"/update"}};var w=C(6542),n=C(7700),Z=C(1855),ee=C(7259),re=C(6223),ue=C(9870),se=C(8637),te=C(30),oe=C(1662),ce=C(6945),_e=C(9230),Re=C(5462),mt=C(6814),Ge=C(4736);function Lt(ct,Ct){1&ct&&e._UZ(0,"util-progress",10),2&ct&&e.Q6J("bar",!0)}function je(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"img",15),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(2);return e.KtG(ot.removeImage(Oe))}),e.qZA()}2&ct&&e.s9C("src",Ct.$implicit.previewUrl,e.LSH)}function Tt(ct,Ct){if(1&ct&&(e.TgZ(0,"div",11)(1,"small",12),e.SDv(2,13),e.qZA(),e._UZ(3,"br"),e.YNc(4,je,1,1,"img",14),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(4),e.Q6J("ngForOf",Ce.uploadFiles)}}function xt(ct,Ct){if(1&ct&&(e.TgZ(0,"h6",16),e._uU(1),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(1),e.Oqu(Ce.msg)}}let St=(()=>{class ct extends se.H{componentName(){return"ImageUploaderComponent"}constructor(Ce,J,ae,Oe,ot){super(Ce,J,ae),this.fileService=Oe,this.notifier=ot,this.title="Upload Images",this.msg="",this.multiSelect=!1,this.uploadFiles=[],this.required=!1,this.images=[],this.onUploaded=new e.vpe,this.loading=!1,null==this.uniqueNamespace&&(this.uniqueNamespace=this.getUniqueId(4))}ngOnInit(){console.log(this.images)}uploadImages(){if(0==this.uploadFiles.length)return void(this.required?this.msg="File not selected":this.onUploaded.emit(this.images));console.log("uploading images.."),this.loading=!0;let Ce=[];this.uploadFiles.forEach(ae=>{Ce.push(ae.file)});let J=this.componentKey(ee.Z.FILES.IMAGE_UPLOAD(this.uniqueNamespace+"-img"));this.fileService.uploadImagesV2(J,Ce),this.subscribe(J,null,(ae,Oe)=>{this.images=Oe.data,this.loading=!1,this.onUploaded.emit(this.images),console.log("Uploaded successfully!"),console.log(this.images)})}onImageSelected(Ce){if(Ce.target.files&&Ce.target.files[0]){if(null==Ce.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let ae={file:Ce.target.files[0],previewUrl:null};const Oe=new FileReader;Oe.readAsDataURL(Ce.target.files[0]),Oe.onload=Se=>{let Ft=Se.target?.result;null!=Ft&&(ae.previewUrl=Ft,this.multiSelect||(console.log("resetting images"),this.images=[],console.log(this.images),this.uploadFiles=[]),this.uploadFiles.push(ae),this.msg="")}}}removeImage(Ce){let J=this.uploadFiles.map(ae=>ae.previewUrl).indexOf(Ce.previewUrl);this.uploadFiles.splice(J,1)}removeExImage(Ce){let J=this.images.indexOf(Ce);this.images.splice(J)}getUniqueId(Ce){const J=[];for(let ae=0;ae0),e.xp6(2),e.Oqu(ae.title),e.xp6(5),e.Q6J("ngIf",ae.msg.length>0))},dependencies:[mt.sg,mt.O5,Ge.t]})}return ct})();function Zt(ct,Ct){1&ct&&e._UZ(0,"util-progress",11),2&ct&&e.Q6J("bar",!0)}let yt=(()=>{class ct extends ue.n{constructor(Ce,J,ae,Oe,ot,Se,Ft){super(Ce,J,ae,Oe,Ft),this.fileService=ot,this.notifier=Se,this.config=I,this.fileForm=new re.cw({image:new re.NI(null)})}componentName(){return"FileUpsertComponent"}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Files",link:"/admin/files",active:!1},{text:"Upsert",link:null,active:!0}]}initialize(Ce){this.loading=!0;let J=this.componentKey(ee.Z.FILES.GET(Ce));this.fileService.fetchSingle(J,Ce),this.subscribe(J,null,(ae,Oe)=>{this.loading=!1,this.populateForm(Oe.data)}),this.subscribe(this.getErrorKey(J),null,(ae,Oe)=>{console.log(Oe.data),this.loading=!1})}getExImages(){return[{image_url:this.fileForm.controls.image.value,thumb_url:this.fileForm.controls.image.value}]}onSubmit(){this.fileForm.valid&&this.uploadComponent.uploadImages()}onImgUploaded(Ce){Ce.length>0&&this.fileForm.controls.image.setValue(Ce[0].thumb_url),setTimeout(()=>{this.onCompleted.emit(Ce)},500)}getConfig(){return this.config}getListPageRoute(){return S.list}populateForm(Ce){}static#e=this.\u0275fac=function(J){return new(J||ct)(e.Y36(te.Y),e.Y36(oe.F0),e.Y36(ce.z),e.Y36(oe.gz),e.Y36(_e.I),e.Y36(Re.l),e.Y36(n.WI))};static#t=this.\u0275cmp=e.Xpm({type:ct,selectors:[["app-file-upsert"]],viewQuery:function(J,ae){if(1&J&&e.Gf(St,5),2&J){let Oe;e.iGM(Oe=e.CRH())&&(ae.uploadComponent=Oe.first)}},features:[e.qOj],decls:14,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"row"],[1,"col-xl-12"],[1,"card"],[1,"card-body"],[1,"card-title","mb-4"],[3,"formGroup"],[3,"title","multiSelect","images","required","onUploaded"],[1,"d-flex","flex-wrap","gap-3","float-end"],[1,"btn","btn-secondary","waves-effect",3,"click"],["type","submit",1,"btn","btn-primary","waves-effect","waves-light",3,"ngClass","click"],[3,"bar"]],template:function(J,ae){1&J&&(e.YNc(0,Zt,1,1,"util-progress",0),e.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h4",5),e._uU(6,"Create/Update File"),e.qZA(),e.TgZ(7,"form",6)(8,"app-image-uploader-v2",7),e.NdJ("onUploaded",function(ot){return ae.onImgUploaded(ot)}),e.qZA(),e.TgZ(9,"div",8)(10,"button",9),e.NdJ("click",function(){return ae.onCancel()}),e._uU(11," Cancel "),e.qZA(),e.TgZ(12,"button",10),e.NdJ("click",function(){return ae.onSubmit()}),e._uU(13," Submit "),e.qZA()()()()()()()),2&J&&(e.Q6J("ngIf",ae.loading),e.xp6(7),e.Q6J("formGroup",ae.fileForm),e.xp6(1),e.s9C("title",ae.translations["Select File"]),e.Q6J("multiSelect",!0)("images",ae.getExImages())("required",!0),e.xp6(4),e.Q6J("ngClass",ae.fileForm.valid?"":"disabled"))},dependencies:[mt.mk,mt.O5,re._Y,re.JL,re.sg,Ge.t,St]})}return ct})();var un=C(8174),Jt=C(2159),tn=C(8480),wn=C(8675),Ln=C(1836),Yn=C(6075),ti=C(9582),gi=C(2770);function Rn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",11)(1,"div",12)(2,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onCloseClicked())}),e._UZ(3,"i",14),e.qZA()()()}}function dt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",15)(1,"button",16),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.useSelectedFiles())}),e.TgZ(2,"span"),e.SDv(3,17),e.qZA()(),e.TgZ(4,"button",18),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.clearSelection())}),e.TgZ(5,"span"),e.SDv(6,19),e.qZA()()()}}function at(ct,Ct){1&ct&&e._UZ(0,"util-progress",20),2&ct&&e.Q6J("bar",!0)}function Be(ct,Ct){1&ct&&(e.TgZ(0,"h4",32),e.SDv(1,33),e.qZA())}function Ee(ct,Ct){1&ct&&(e.TgZ(0,"h4",34),e.SDv(1,35),e.qZA())}function $e(ct,Ct){if(1&ct&&(e.TgZ(0,"div",21)(1,"div",22)(2,"div",0)(3,"div",23)(4,"div",24)(5,"h1",25),e._UZ(6,"i",26),e.qZA(),e.YNc(7,Be,2,0,"h4",27),e.YNc(8,Ee,2,0,"h4",28),e.qZA()()(),e.TgZ(9,"div",29)(10,"div",30)(11,"div"),e._UZ(12,"img",31),e.qZA()()()()()),2&ct){const Ce=e.oxw();e.xp6(7),e.Q6J("ngIf",Ce.loading),e.xp6(1),e.Q6J("ngIf",!Ce.loading)}}function me(ct,Ct){1&ct&&(e.TgZ(0,"th"),e.SDv(1,50),e.qZA())}function tt(ct,Ct){1&ct&&(e.TgZ(0,"th"),e.SDv(1,51),e.qZA())}function he(ct,Ct){if(1&ct&&(e.TgZ(0,"td"),e._uU(1),e.qZA()),2&ct){const Ce=e.oxw().$implicit;e.xp6(1),e.Oqu(Ce.created_by)}}function Ze(ct,Ct){1&ct&&e._UZ(0,"td",52)}function rt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"tr")(1,"td"),e._uU(2),e.qZA(),e.YNc(3,he,2,1,"td",8),e.TgZ(4,"td")(5,"a",13),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.onUpsertClick(Oe.id))}),e._uU(6),e.qZA()(),e.TgZ(7,"td")(8,"small"),e._uU(9),e.ALo(10,"readableDate"),e.qZA()(),e.TgZ(11,"td")(12,"small"),e._uU(13),e.ALo(14,"readableDate"),e.qZA()(),e.TgZ(15,"td",52)(16,"a",53),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.onUpsertClick(Oe.id))}),e._UZ(17,"i",54),e.qZA()(),e.YNc(18,Ze,1,0,"td",55),e.qZA()}if(2&ct){const Ce=Ct.$implicit,J=e.oxw(3);e.xp6(2),e.Oqu(Ce.id),e.xp6(1),e.Q6J("ngIf",J.config.showUserFilter),e.xp6(3),e.hij(" ",Ce.image_url," "),e.xp6(3),e.Oqu(e.lcZ(10,6,Ce.created_at)),e.xp6(4),e.Oqu(e.lcZ(14,8,Ce.updated_at)),e.xp6(5),e.Q6J("ngIf",J.config.showDeleteButton)}}function bt(ct,Ct){if(1&ct&&(e.TgZ(0,"div",0)(1,"div",11)(2,"div",38)(3,"div",39)(4,"p",40),e.SDv(5,41),e.qZA(),e.TgZ(6,"div",42)(7,"table",43)(8,"thead")(9,"tr")(10,"th"),e.SDv(11,44),e.qZA(),e.YNc(12,me,2,0,"th",8),e.TgZ(13,"th"),e.SDv(14,45),e.qZA(),e.TgZ(15,"th"),e.SDv(16,46),e.qZA(),e.TgZ(17,"th"),e.SDv(18,47),e.qZA(),e.TgZ(19,"th"),e.SDv(20,48),e.qZA(),e.YNc(21,tt,2,0,"th",8),e.qZA()(),e.TgZ(22,"tbody"),e.YNc(23,rt,19,10,"tr",49),e.qZA()()()()()()()),2&ct){const Ce=e.oxw(2);e.Q6J("@dataLoaded",Ce.loading?"loading":"loaded")("@onColumn",Ce.layout==Ce.Layout.COLUMN),e.xp6(12),e.Q6J("ngIf",Ce.config.showUserFilter),e.xp6(9),e.Q6J("ngIf",Ce.config.showDeleteButton),e.xp6(2),e.Q6J("ngForOf",Ce.images.content)}}function Nt(ct,Ct){if(1&ct&&e._UZ(0,"img",68),2&ct){const Ce=e.oxw().$implicit;e.s9C("src",Ce.image_url,e.LSH)}}function Qt(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",69),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw().$implicit,Oe=e.oxw(3);return e.KtG(Oe.toggleFileSelection(ae))}),e.TgZ(1,"h6",70)(2,"span"),e.SDv(3,71),e.qZA(),e._uU(4),e.qZA()()}if(2&ct){const Ce=e.oxw().$implicit;e.xp6(4),e.hij(" ",Ce.created_by," ")}}function nn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",65)(1,"app-delete",72),e.NdJ("deleteItemEvent",function(ae){e.CHM(Ce);const Oe=e.oxw(4);return e.KtG(Oe.onDeleted(ae))}),e.qZA()()}if(2&ct){const Ce=e.oxw().$implicit,J=e.oxw(3);e.xp6(1),e.Q6J("requestUrl",J.config.imgDelEndpoint+"/"+Ce.id+"/delete")("look","bx")}}function Dn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",58)(1,"div",59)(2,"div",60),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.toggleFileSelection(Oe))}),e.TgZ(3,"a"),e.YNc(4,Nt,1,1,"img",61),e.qZA()(),e.YNc(5,Qt,5,1,"div",62),e.TgZ(6,"div",63)(7,"div",64)(8,"div",65)(9,"a",13),e.NdJ("click",function(){const Oe=e.CHM(Ce).$implicit,ot=e.oxw(3);return e.KtG(ot.TextUtility.copyToClipboard(Oe.image_url))}),e._UZ(10,"i",66),e.qZA()(),e.YNc(11,nn,2,2,"div",67),e.qZA()()()()}if(2&ct){const Ce=Ct.$implicit,J=e.oxw(3);e.xp6(1),e.Q6J("ngClass",J.isSelected(Ce)?"border-3 border-success":""),e.xp6(3),e.Q6J("ngIf",Ce.image_url),e.xp6(1),e.Q6J("ngIf",J.isAdmin()),e.xp6(6),e.Q6J("ngIf",J.config.showDeleteButton)}}function Ot(ct,Ct){if(1&ct&&(e.TgZ(0,"div",56),e.YNc(1,Dn,12,4,"div",57),e.qZA()),2&ct){const Ce=e.oxw(2);e.Q6J("@dataLoaded",Ce.loading?"loading":"loaded")("@onGrid",Ce.layout==Ce.Layout.GRID)("ngClass",Ce.isWithinDialog()?"ms-2 me-2":""),e.xp6(1),e.Q6J("ngForOf",null==Ce.images?null:Ce.images.content)}}function rn(ct,Ct){if(1&ct&&(e.TgZ(0,"div"),e.YNc(1,bt,24,5,"div",36),e.YNc(2,Ot,2,4,"div",37),e.qZA()),2&ct){const Ce=e.oxw();e.xp6(1),e.Q6J("ngIf",Ce.layout===Ce.Layout.COLUMN),e.xp6(1),e.Q6J("ngIf",Ce.layout===Ce.Layout.GRID)}}function vn(ct,Ct){if(1&ct&&e._UZ(0,"app-pagination",73),2&ct){const Ce=e.oxw();e.Q6J("page",Ce.images)}}function ei(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",83)(1,"button",16),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw(2);return e.KtG(ae.useSelectedFiles())}),e.TgZ(2,"span"),e.SDv(3,84),e.qZA()(),e.TgZ(4,"button",18),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw(2);return e.KtG(ae.clearSelection())}),e.TgZ(5,"span"),e.SDv(6,85),e.qZA()()()}}function Wn(ct,Ct){if(1&ct){const Ce=e.EpF();e.TgZ(0,"div",74)(1,"div",75),e.YNc(2,ei,7,0,"div",76),e.TgZ(3,"div",77)(4,"nav",78)(5,"ul",79)(6,"li",80)(7,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onPreviousClick())}),e.SDv(8,81),e.qZA()(),e.TgZ(9,"li",80)(10,"a",13),e.NdJ("click",function(){e.CHM(Ce);const ae=e.oxw();return e.KtG(ae.onNextClick())}),e.SDv(11,82),e.qZA()()()()()()()}if(2&ct){const Ce=e.oxw();e.xp6(2),e.Q6J("ngIf",Ce.isAnySelected()),e.xp6(5),e.Gre("page-link ",Ce.images.first?"disabled":"",""),e.xp6(3),e.Gre("page-link ",Ce.images.last?"disabled":"","")}}let Ve=(()=>{class ct extends Jt.R{componentName(){return"FileListComponent"}constructor(Ce,J,ae,Oe,ot,Se,Ft,lt,Bt){super(Ce,J,ae,ot),this.authService=Oe,this.activatedRoute=Se,this.fileService=Ft,this.notifier=lt,this.dialogData=Bt,this.config=I,this.images=w.H,this.selectedFiles=new Map,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe,this.TextUtility=un.g,Oe.isAdmin()&&(this.config.searchEndpoint=D.s.FILES.FILE_ENDPOINT_ADMIN,this.config.imageEndpoint=D.s.FILES.IMAGE_ENDPOINT_ADMIN),this.fileRequisitionDef=Bt.fileRequisitionDef}isAdmin(){return this.authService.isAdmin()}isWithinDialog(){return null!=this.fileRequisitionDef}initialize(){this.isWithinDialog()?(this.filterData=Z.M9,this.fetchWith(this.filterData)):this.activatedRoute.queryParams.subscribe(Ce=>{this.filterData=(0,Z.OP)(Ce,12),this.fetchWith(this.filterData)})}onFilterClick(Ce){this.filterData=Ce,this.fetchWith(this.filterData)}onNextClick(){this.filterData={...this.filterData,page:this.filterData.page+1},this.fetchWith(this.filterData)}onPreviousClick(){this.filterData={...this.filterData,page:this.filterData.page-1},this.fetchWith(this.filterData)}getBreadcrumbItems(){return[{text:this.translations.Dashboard,link:null,active:!1},{text:"Files",link:null,active:!0}]}fetchWith(Ce){this.fetchImages({username:Ce.username,from_date:Ce.fromDate,to_date:Ce.toDate,page:Ce.page,size:Ce.size})}fetchImages(Ce){this.loading=!0;const J=this.componentKey(ee.Z.FILES.SEARCH_IMAGES(Ce));this.fileService.search(J,this.config.imageEndpoint,Ce),this.subscribe(J,null,(ae,Oe)=>{this.images=Oe.data,this.loading=!1}),this.subscribe(this.getErrorKey(J),null,(ae,Oe)=>{this.notifier.error("Error",Oe.data.error.message)})}onDeleted(Ce){Ce&&(this.notifier.success("Success","File is deleted"),this.ngOnInit())}getConfig(){return this.config}getRoutes(){return{create:S.create,update:Ce=>S.update(Ce),params:{}}}getUpsertComponent(){return yt}isSelected(Ce){return 1==this.selectedFiles.get(Ce)}useSelectedFiles(){let Ce=Array.from(this.selectedFiles.entries()).filter(([J,ae])=>ae).map(([J,ae])=>J);this.clearSelection(),this.onCompleted.emit(Ce)}clearSelection(){this.selectedFiles=new Map}isAnySelected(){return Array.from(this.selectedFiles.values()).some(Ce=>Ce)}toggleFileSelection(Ce){this.fileRequisitionDef.multiSelect||this.selectedFiles.clear(),this.selectedFiles.set(Ce,!this.isSelected(Ce))}onCloseClicked(){this.clearSelection(),this.onCanceled.emit()}static#e=this.\u0275fac=function(J){return new(J||ct)(e.Y36(te.Y),e.Y36(oe.F0),e.Y36(ce.z),e.Y36(tn.e),e.Y36(wn.x),e.Y36(oe.gz),e.Y36(_e.I),e.Y36(Re.l),e.Y36(n.WI))};static#t=this.\u0275cmp=e.Xpm({type:ct,selectors:[["app-file-list"]],inputs:{fileRequisitionDef:"fileRequisitionDef"},outputs:{onCanceled:"onCanceled",onCompleted:"onCompleted"},features:[e.qOj],decls:13,vars:9,consts:function(){let Ce,J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An,jn,ai,di,oi;return Ce="Use Selected",J="Clear Selection",ae="Cooking your data, please wait..",Oe="No items",ot="Files that I've created",Se="Id",Ft="Title",lt="Created At",Bt="Last Updated",Ut="Update",fn="Created By",gn="Delete",An="Uploaded By",jn="Previous",ai="Next",di="Use Selected",oi="Clear Selection",[[1,"row"],[1,"col-sm-12"],["class","col-12",4,"ngIf"],[1,"card","card-body"],[3,"addBtnText","useParamNavigation","addButtonClick","filterClick"],["class","col-sm-auto mt-3",4,"ngIf"],[3,"bar",4,"ngIf"],["class","account-pages my-2",4,"ngIf"],[4,"ngIf"],[3,"page",4,"ngIf"],["class","row ms-2 me-2",4,"ngIf"],[1,"col-12"],[1,"flex-fill","float-end","mt-2","me-2"],["href","javascript: void(0);",3,"click"],[1,"bx","bxs-x-circle","text-danger"],[1,"col-sm-auto","mt-3"],["type","button",1,"btn","btn-success","w-md","me-3",3,"click"],Ce,["type","button",1,"btn","btn-warning","w-md",3,"click"],J,[3,"bar"],[1,"account-pages","my-2"],[1,"container"],[1,"col-lg-12"],[1,"text-center","mb-5"],[1,"display-2","fw-medium"],[1,"bx","bx-buoy","bx-spin","text-primary","display-3"],["class","text-primary",4,"ngIf"],["class","text-uppercase",4,"ngIf"],[1,"row","justify-content-center"],[1,"col-md-8","col-xl-6"],["src","assets/apanel/images/error-img.png","alt","",1,"img-fluid"],[1,"text-primary"],ae,[1,"text-uppercase"],Oe,["class","row",4,"ngIf"],["class","row",3,"ngClass",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"card-title-desc"],ot,[1,"table","table-responsive"],[1,"table","table-editable","table-nowrap","align-middle","table-edits","table-hover","table-bordered"],Se,Ft,lt,Bt,Ut,[4,"ngFor","ngForOf"],fn,gn,[2,"width","100px"],["title","Edit",1,"btn","btn-outline-warning","btn-sm","edit",3,"click"],[1,"fas","fa-pencil-alt"],["style","width: 100px",4,"ngIf"],[1,"row",3,"ngClass"],["class","col-xxl-2 col-xl-3 col-sm-4 col-6",4,"ngFor","ngForOf"],[1,"col-xxl-2","col-xl-3","col-sm-4","col-6"],[1,"card","text-center",3,"ngClass"],[1,"image-container",3,"click"],["class","card-img-top img-fluid center-cropped-image","alt","Card image cap",3,"src",4,"ngIf"],["class","card-body",3,"click",4,"ngIf"],[1,"card-footer","bg-transparent","border-top"],[1,"contact-links","d-flex","font-size-20"],[1,"flex-fill"],[1,"bx","bx-copy","text-success"],["class","flex-fill",4,"ngIf"],["alt","Card image cap",1,"card-img-top","img-fluid","center-cropped-image",3,"src"],[1,"card-body",3,"click"],[1,"font-size-10","text-info"],An,[3,"requestUrl","look","deleteItemEvent"],[3,"page"],[1,"row","ms-2","me-2"],[1,"col-lg-12","grid-margin","stretch-card","mt-3"],["class","col-sm-auto float-start",4,"ngIf"],[1,"float-end"],["aria-label","Page navigation example"],[1,"pagination"],[1,"page-item"],jn,ai,[1,"col-sm-auto","float-start"],di,oi]},template:function(J,ae){1&J&&(e.TgZ(0,"div",0),e._UZ(1,"div",1),e.qZA(),e.TgZ(2,"div",0),e.YNc(3,Rn,4,0,"div",2),e.TgZ(4,"div",1)(5,"div",3)(6,"app-basic-filter",4),e.NdJ("addButtonClick",function(){return ae.onUpsertClick(null)})("filterClick",function(ot){return ae.onFilterClick(ot)}),e.qZA(),e.YNc(7,dt,7,0,"div",5),e.qZA()(),e.YNc(8,at,1,1,"util-progress",6),e.YNc(9,$e,13,2,"div",7),e.YNc(10,rn,3,2,"div",8),e.YNc(11,vn,1,1,"app-pagination",9),e.YNc(12,Wn,12,7,"div",10),e.qZA()),2&J&&(e.xp6(3),e.Q6J("ngIf",ae.isWithinDialog()),e.xp6(3),e.Q6J("addBtnText","Upload")("useParamNavigation",!1),e.xp6(1),e.Q6J("ngIf",ae.isAnySelected()),e.xp6(1),e.Q6J("ngIf",ae.loading),e.xp6(1),e.Q6J("ngIf",ae.images.empty),e.xp6(1),e.Q6J("ngIf",!ae.images.empty),e.xp6(1),e.Q6J("ngIf",!ae.isWithinDialog()),e.xp6(1),e.Q6J("ngIf",ae.isWithinDialog()))},dependencies:[mt.mk,mt.sg,mt.O5,Ge.t,Ln.Q,Yn.D,ti.T,gi.G],styles:[".image-container[_ngcontent-%COMP%]{width:100%;height:200px;overflow:hidden;position:relative}.center-cropped-image[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;object-position:center}"]})}return ct})()},9230:(ft,Ie,C)=>{"use strict";C.d(Ie,{I:()=>ee});var e=C(1547),l=C(6032),D=C(2495),I=C(5879),S=C(8480),w=C(5462),n=C(9862),Z=C(30);let ee=(()=>{class re extends e.b{constructor(se,te,oe,ce){super(se,te),this.http=oe,this.eventBusService=ce}search(se,te,oe){let ce=l.s.FILES.SEARCH(te,oe);this.http.get(ce).subscribe(_e=>{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.search(se,te,oe)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}fetchSingle(se,te){this.http.get(l.s.FILES.GET(te)).subscribe(oe=>{this.eventBusService.publish(se,oe)},oe=>{this.handleError(oe,ce=>{this.fetchSingle(se,te)},ce=>{this.eventBusService.publish(this.getErrorKey(se),ce)})})}upsert(se,te,oe){let ce=null==oe?l.s.FILES.CREATE():l.s.FILES.UPDATE(oe);(null==oe?this.http.post(ce,te):this.http.patch(ce,te)).subscribe(Re=>{this.eventBusService.publish(se,Re)},Re=>{this.handleError(Re,mt=>{this.upsert(se,te,oe)},mt=>{this.eventBusService.publish(this.getErrorKey(se),mt)})})}upload(se){const te=new FormData;for(let ce=0;ce{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.uploadImages(se,te)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}uploadImagesV2(se,te){const oe=new FormData;for(let _e=0;_e{this.eventBusService.publish(se,_e)},_e=>{this.handleError(_e,Re=>{this.uploadImagesV2(se,te)},Re=>{this.eventBusService.publish(this.getErrorKey(se),Re)})})}static#e=this.\u0275fac=function(te){return new(te||re)(I.LFG(S.e),I.LFG(w.l),I.LFG(n.eN),I.LFG(Z.Y))};static#t=this.\u0275prov=I.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})()},1715:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>re});var e=C(1547),l=C(2495),D=C(553),I=C(5879);let S=(()=>{class ue extends l.O{constructor(){super()}static#e=this.NOTIFICATIONS={CREATE:()=>D.N.base_url+"/api/v1/notifications",GET:te=>D.N.base_url+"/api/v1/notifications/"+te,UPDATE:te=>D.N.base_url+"/api/v1/notifications/"+te,COUNT_UNREAD:te=>D.N.base_url+"/api/v1/notifications/unread/count"+l.O.toParamString(te),INCREASE_VIEW_COUNT:te=>D.N.base_url+"/api/v1/notifications/view/count/"+te,INCREASE_CLICK_COUNT:te=>D.N.base_url+"/api/v1/notifications/click/count/"+te,MARK_READ:te=>D.N.base_url+"/api/v1/notifications/mark-read"+l.O.toParamString(te),MAKE_STICKY:te=>D.N.base_url+"/api/v1/notifications/make-sticky"+l.O.toParamString(te),RESPOND:te=>D.N.base_url+"/api/v1/notifications/"+te+"/respond",FETCH_MY_NOTIFICATIONS:te=>D.N.base_url+"/api/v1/my-notifications"+l.O.toParamString(te),SEARCH:te=>D.N.base_url+"/api/v1/notifications"+l.O.toParamString(te)};static#t=this.\u0275fac=function(oe){return new(oe||ue)};static#n=this.\u0275prov=I.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})();var w=C(8480),n=C(5462),Z=C(9862),ee=C(30);let re=(()=>{class ue extends e.b{constructor(te,oe,ce,_e){super(te,oe),this.http=ce,this.eventBus=_e}searchNotifications(te,oe){this.http.get(S.NOTIFICATIONS.SEARCH(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.searchNotifications(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}fetchSingle(te,oe){this.http.get(S.NOTIFICATIONS.GET(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.fetchSingle(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}fetchMyNotifications(te,oe){this.http.get(S.NOTIFICATIONS.FETCH_MY_NOTIFICATIONS(oe)).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.fetchMyNotifications(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}markRead(te,oe,ce,_e){this.http.post(S.NOTIFICATIONS.MARK_READ({id:ce,read:_e}),null).subscribe(Re=>{this.eventBus.publish(te,Re),this.eventBus.publish(oe,Re)},Re=>{this.handleError(Re,mt=>{this.markRead(te,oe,ce,_e)},mt=>{this.eventBus.publish(this.getErrorKey(te),mt)})})}makeSticky(te,oe,ce){this.http.post(S.NOTIFICATIONS.MAKE_STICKY({id:oe,sticky:ce}),null).subscribe(_e=>{this.eventBus.publish(te,_e)},_e=>{this.handleError(_e,Re=>{this.makeSticky(te,oe,ce)},Re=>{this.eventBus.publish(this.getErrorKey(te),Re)})})}respond(te,oe,ce){this.http.post(S.NOTIFICATIONS.RESPOND(oe),ce).subscribe(_e=>{this.eventBus.publish(te,_e)},_e=>{this.handleError(_e,Re=>{this.respond(te,oe,ce)},Re=>{this.eventBus.publish(this.getErrorKey(te),Re)})})}countUnread(te){this.http.get(S.NOTIFICATIONS.COUNT_UNREAD({})).subscribe(oe=>{this.eventBus.publish(te,oe)},oe=>{this.handleError(oe,ce=>{this.countUnread(te)},ce=>{this.eventBus.publish(this.getErrorKey(te),ce)})})}increaseViewCount(te,oe){this.http.patch(S.NOTIFICATIONS.INCREASE_VIEW_COUNT(oe),{}).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.increaseViewCount(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}increaseClickCount(te,oe){this.http.patch(S.NOTIFICATIONS.INCREASE_CLICK_COUNT(oe),{}).subscribe(ce=>{this.eventBus.publish(te,ce)},ce=>{this.handleError(ce,_e=>{this.increaseClickCount(te,oe)},_e=>{this.eventBus.publish(this.getErrorKey(te),_e)})})}upsert(te,oe,ce){let _e=null==ce?S.NOTIFICATIONS.CREATE():S.NOTIFICATIONS.UPDATE(ce);(null==ce?this.http.post(_e,oe):this.http.patch(_e,oe)).subscribe(mt=>{this.eventBus.publish(te,mt)},mt=>{this.handleError(mt,Ge=>{this.upsert(te,oe,ce)},Ge=>{this.eventBus.publish(this.getErrorKey(te),Ge)})})}static#e=this.\u0275fac=function(oe){return new(oe||ue)(I.LFG(w.e),I.LFG(n.l),I.LFG(Z.eN),I.LFG(ee.Y))};static#t=this.\u0275prov=I.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"})}return ue})()},1989:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{SocialModule:()=>te});var e=C(6814),l=C(1662),D=C(5879);const I=[];let S=(()=>{class oe{static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=D.oAB({type:oe});static#n=this.\u0275inj=D.cJS({imports:[l.Bz.forChild(I),l.Bz]})}return oe})();var w=C(9862),n=C(9890),Z=C(3365),ee=C(7151),re=C(5195),ue=C(6223),se=C(9299);let te=(()=>{class oe{static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=D.oAB({type:oe});static#n=this.\u0275inj=D.cJS({providers:[{provide:w.TP,useClass:n.I,multi:!0}],imports:[e.ez,S,Z.TU,ee.g,re.QW,ue.u5,se.d,ue.UX]})}return oe})()},6075:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>Zt});var e=C(5879),l=C(8637),D=C(6676),S=C(2739),w=C(1855),n=C(8674),Z=C(30),ee=C(1662),re=C(6945),ue=C(8480),se=C(6814),te=C(9277),oe=C(6223),ce=C(9432);function _e(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",4)(1,"button",28),e.NdJ("click",function(){e.CHM(Jt);const wn=e.oxw();return e.KtG(wn.onAddButtonClick())}),e._UZ(2,"i",29),e.TgZ(3,"span"),e.SDv(4,30),e.qZA()()()}}const Re=function(){return{standalone:!0}};function mt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"input",34),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.qZA()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.s9C("placeholder",Jt.placeholder),e.Q6J("ngModel",tn.filterData.extra[Jt.name])("ngModelOptions",e.DdM(3,Re))}}function Ge(yt,un){if(1&yt&&(e.TgZ(0,"option",36),e._uU(1),e.qZA()),2&yt){const Jt=un.$implicit;e.s9C("value",Jt.value),e.xp6(1),e.hij(" ",Jt.label," ")}}function Lt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"select",35),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.TgZ(1,"option",36),e._uU(2),e.qZA(),e.YNc(3,Ge,2,2,"option",37),e.qZA()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.Q6J("name",Jt.name)("ngModel",tn.filterData.extra[Jt.name]),e.xp6(1),e.s9C("value",null),e.xp6(1),e.Oqu(Jt.placeholder),e.xp6(1),e.Q6J("ngForOf",Jt.options)}}const je=function(){return{dateInputFormat:"DD-MM-YYYY h:mm:ss a"}};function Tt(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",6)(1,"input",38),e.NdJ("ngModelChange",function(wn){e.CHM(Jt);const Ln=e.oxw().$implicit,Yn=e.oxw();return e.KtG(Yn.filterData.extra[Ln.name]=wn)}),e.qZA()()}if(2&yt){const Jt=e.oxw().$implicit,tn=e.oxw();e.xp6(1),e.s9C("id",Jt.name),e.Q6J("bsConfig",e.DdM(5,je))("name",Jt.name)("ngModel",tn.filterData.extra[Jt.name])("ngModelOptions",e.DdM(6,Re))}}function xt(yt,un){if(1&yt&&(e.TgZ(0,"div",4)(1,"label",5),e._uU(2),e.qZA(),e.YNc(3,mt,1,4,"input",31),e.YNc(4,Lt,4,5,"select",32),e.YNc(5,Tt,2,7,"div",33),e.qZA()),2&yt){const Jt=un.$implicit;e.xp6(2),e.Oqu(Jt.label),e.xp6(1),e.Q6J("ngIf","text"===Jt.type),e.xp6(1),e.Q6J("ngIf","dropdown"===Jt.type),e.xp6(1),e.Q6J("ngIf","date"===Jt.type)}}function St(yt,un){if(1&yt){const Jt=e.EpF();e.TgZ(0,"div",39)(1,"app-user-filter",40),e.NdJ("selected",function(wn){e.CHM(Jt);const Ln=e.oxw();return e.KtG(Ln.filterData.username=wn)}),e.qZA()()}if(2&yt){const Jt=e.oxw();e.xp6(1),e.Q6J("username",Jt.filterData.username)}}let Zt=(()=>{class yt extends l.H{constructor(Jt,tn,wn,Ln,Yn){super(Jt,tn,wn),this.activatedRoute=Ln,this.authService=Yn,this.useParamNavigation=!0,this.showAddBtn=!0,this.addBtnText="Add New",this.addButtonRoute=null,this.extraFields=[],this.filterClick=new e.vpe,this.addButtonClick=new e.vpe,this.filterData=w.M9}componentName(){return"BasicFilterComponent"}ngOnInit(){this.filterData.extra=this.filterFieldsAsParams(),this.useParamNavigation&&this.activatedRoute.queryParams.subscribe(Jt=>{null!=this.filterData.fromDate&&null!=this.filterData.toDate?(this.filterData.fromDate=D(this.filterData.fromDate).toDate(),this.filterData.toDate=D(this.filterData.toDate).toDate()):(this.filterData.fromDate=new Date(0),this.filterData.toDate=new Date);let tn=this.filterFieldsAsParams();this.filterData=(0,w.OP)(Jt,10,tn)})}filterFieldsAsParams(){return Object.fromEntries(this.extraFields.map(Jt=>[Jt.name,Jt.value]))}onFilterClick(){this.useParamNavigation?this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{username:this.filterData.username,query:this.filterData.query,from_date:this.filterData.fromDate.toISOString(),to_date:this.filterData.toDate.toISOString(),page:this.filterData.page,size:this.filterData.size,...(0,n.GN)(this.filterData.extra)},queryParamsHandling:"merge"}).then(Jt=>{}):this.filterClick.emit(this.filterData)}isAdmin(){return this.authService.isAdmin()}onAddButtonClick(){this.addButtonClick.emit()}filterForToday(){this.filterData.fromDate=S.b.getDayStart(new Date),this.filterData.toDate=S.b.getDayEnd(new Date),this.onFilterClick()}filterForYesterday(){this.filterData.fromDate=S.b.getDayStart(S.b.addDays(new Date,-1)),this.filterData.toDate=S.b.getDayEnd(S.b.addDays(new Date,-1)),this.onFilterClick()}filterForLast7Days(){this.filterData.fromDate=S.b.last7DaysRange(new Date).start,this.filterData.toDate=S.b.last7DaysRange(new Date).end,this.onFilterClick()}filterForThisMonth(){this.filterData.fromDate=S.b.monthRange(new Date).start,this.filterData.toDate=S.b.monthRange(new Date).end,this.onFilterClick()}filterForLastMonth(){this.filterData.fromDate=S.b.monthRange(S.b.addMonths(new Date,-1)).start,this.filterData.toDate=S.b.monthRange(S.b.addMonths(new Date,-1)).end,this.onFilterClick()}filterForThisYear(){this.filterData.fromDate=S.b.yearRange(new Date).start,this.filterData.toDate=S.b.yearRange(new Date).end,this.onFilterClick()}filterForLastYear(){this.filterData.fromDate=S.b.yearRange(S.b.addYears(new Date,-1)).start,this.filterData.toDate=S.b.yearRange(S.b.addYears(new Date,-1)).end,this.onFilterClick()}clearFilter(){this.filterData.query=null,this.filterData.username=null,this.filterData.fromDate=S.b.getDayStart(new Date(0)),this.filterData.toDate=S.b.getDayEnd(new Date),this.filterData.page=0,this.filterData.size=10,this.filterData.extra=this.filterFieldsAsParams(),this.onFilterClick()}static#e=this.\u0275fac=function(tn){return new(tn||yt)(e.Y36(Z.Y),e.Y36(ee.F0),e.Y36(re.z),e.Y36(ee.gz),e.Y36(ue.e))};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["app-basic-filter"]],inputs:{useParamNavigation:"useParamNavigation",showAddBtn:"showAddBtn",addBtnText:"addBtnText",addButtonRoute:"addButtonRoute",extraFields:"extraFields"},outputs:{filterClick:"filterClick",addButtonClick:"addButtonClick"},features:[e.qOj],decls:41,vars:15,consts:function(){let Jt,tn,wn,Ln,Yn,ti,gi,Rn,dt,at;return Jt="Filter",tn="Today",wn="Yesterday",Ln="Last 7 days",Yn="This Month",ti="Last Month",gi="This Year",Rn="Last Year",dt="Clear",at="Add",[[1,"row","gy-2","gx-3","align-items-center"],["class","col-sm-auto",4,"ngIf"],["class","col-sm-auto",4,"ngFor","ngForOf"],["class","col-sm-2",4,"ngIf"],[1,"col-sm-auto"],["for","fromDate",1,"visually-hidden"],[1,"input-group"],["bsDatepicker","","id","fromDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","maxDate","ngModelChange"],["for","toDate",1,"visually-hidden"],["bsDatepicker","","id","toDate",1,"form-control",3,"bsConfig","ngModel","ngModelOptions","minDate","ngModelChange"],[1,"col-sm-auto","btn-group"],["type","button",1,"btn","btn-primary",3,"click"],[1,"ms-2","me-2"],Jt,["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-primary","dropdown-toggle","dropdown-toggle-split"],[1,"mdi","mdi-chevron-down"],[1,"dropdown-menu"],["href","javascript: void(0);",1,"dropdown-item",3,"click"],tn,wn,Ln,[1,"dropdown-divider"],Yn,ti,gi,Rn,["type","button",1,"btn","btn-outline-primary",3,"click"],dt,["type","button",1,"btn","btn-success","w-md",3,"click"],[1,"mdi","mdi-plus-circle","me-2"],at,["type","text","class","form-control","id","title-input",3,"placeholder","ngModel","ngModelOptions","ngModelChange",4,"ngIf"],["id","formrow-inputState","class","form-select",3,"name","ngModel","ngModelChange",4,"ngIf"],["class","input-group",4,"ngIf"],["type","text","id","title-input",1,"form-control",3,"placeholder","ngModel","ngModelOptions","ngModelChange"],["id","formrow-inputState",1,"form-select",3,"name","ngModel","ngModelChange"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["bsDatepicker","",1,"form-control",3,"id","bsConfig","name","ngModel","ngModelOptions","ngModelChange"],[1,"col-sm-2"],[3,"username","selected"]]},template:function(tn,wn){1&tn&&(e.TgZ(0,"form",0),e.YNc(1,_e,5,0,"div",1),e.YNc(2,xt,6,4,"div",2),e.YNc(3,St,2,1,"div",3),e.TgZ(4,"div",4)(5,"label",5),e._uU(6,"From"),e.qZA(),e.TgZ(7,"div",6)(8,"input",7),e.NdJ("ngModelChange",function(Yn){return wn.filterData.fromDate=Yn}),e.qZA()()(),e.TgZ(9,"div",4)(10,"label",8),e._uU(11,"To"),e.qZA(),e.TgZ(12,"div",6)(13,"input",9),e.NdJ("ngModelChange",function(Yn){return wn.filterData.toDate=Yn}),e.qZA()()(),e.TgZ(14,"div",10)(15,"button",11),e.NdJ("click",function(){return wn.onFilterClick()}),e.TgZ(16,"span",12),e.SDv(17,13),e.qZA()(),e.TgZ(18,"button",14),e._UZ(19,"i",15),e.qZA(),e.TgZ(20,"div",16)(21,"a",17),e.NdJ("click",function(){return wn.filterForToday()}),e.SDv(22,18),e.qZA(),e.TgZ(23,"a",17),e.NdJ("click",function(){return wn.filterForYesterday()}),e.SDv(24,19),e.qZA(),e.TgZ(25,"a",17),e.NdJ("click",function(){return wn.filterForLast7Days()}),e.SDv(26,20),e.qZA(),e._UZ(27,"div",21),e.TgZ(28,"a",17),e.NdJ("click",function(){return wn.filterForThisMonth()}),e.SDv(29,22),e.qZA(),e.TgZ(30,"a",17),e.NdJ("click",function(){return wn.filterForLastMonth()}),e.SDv(31,23),e.qZA(),e._UZ(32,"div",21),e.TgZ(33,"a",17),e.NdJ("click",function(){return wn.filterForThisYear()}),e.SDv(34,24),e.qZA(),e.TgZ(35,"a",17),e.NdJ("click",function(){return wn.filterForLastYear()}),e.SDv(36,25),e.qZA()()(),e.TgZ(37,"div",4)(38,"button",26),e.NdJ("click",function(){return wn.clearFilter()}),e.TgZ(39,"span",12),e.SDv(40,27),e.qZA()()()()),2&tn&&(e.xp6(1),e.Q6J("ngIf",wn.showAddBtn),e.xp6(1),e.Q6J("ngForOf",wn.extraFields),e.xp6(1),e.Q6J("ngIf",wn.isAdmin()),e.xp6(5),e.Q6J("bsConfig",e.DdM(11,je))("ngModel",wn.filterData.fromDate)("ngModelOptions",e.DdM(12,Re))("maxDate",wn.filterData.toDate),e.xp6(5),e.Q6J("bsConfig",e.DdM(13,je))("ngModel",wn.filterData.toDate)("ngModelOptions",e.DdM(14,Re))("minDate",wn.filterData.fromDate))},dependencies:[se.sg,se.O5,te.Np,te.Y5,oe._Y,oe.YN,oe.Kr,oe.Fj,oe.EJ,oe.JJ,oe.JL,oe.On,oe.F,ce.R]})}return yt})()},1855:(ft,Ie,C)=>{"use strict";C.d(Ie,{M9:()=>I,OP:()=>n,oZ:()=>w});var e=C(6676),D=C(2739);const I={query:null,fromDate:D.b.getDayStart(new Date(0)),toDate:D.b.getDayEnd(new Date),username:null,page:0,size:10,extra:{}};function w(ee){return{query:ee.query,username:ee.username,from_date:ee.fromDate.toISOString(),to_date:ee.toDate.toISOString(),page:ee.page,size:ee.size,...ee.extra}}function n(ee,re=10,ue={}){let se=ee.query,te=ee.username,oe=new Date(0),ce=new Date;return null!=ee.from_date&&null!=ee.to_date&&(oe=e(ee.from_date).toDate(),ce=e(ee.to_date).toDate()),{query:se,fromDate:oe,toDate:ce,username:null!=te&&te.length>0?te:null,page:ee.page?ee.page:0,size:ee.size?ee.size:re,extra:Z(ue,ee,["query","username","from_date","to_date","page","size"])}}function Z(ee,re,ue){return Object.keys(re).forEach(se=>{if(!ue.includes(se)){const te=re[se];if("string"==typeof te){const oe=Date.parse(te);ee[se]=isNaN(oe)||/^\d+$/.test(te)?"true"===te.toLowerCase()||"false"===te.toLowerCase()?"true"===te.toLowerCase():isNaN(Number(te))?te:Number(te):new Date(oe)}else ee[se]=te}}),ee}},9582:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>oe});var e=C(5879),l=C(8637),D=C(30),I=C(1662),S=C(6945),w=C(5462),n=C(1547),Z=C(8480),ee=C(9862);let re=(()=>{class ce extends n.b{constructor(Re,mt,Ge,Lt){super(Re,mt),this.http=Ge,this.eventBus=Lt}deleteItem(Re,mt){this.http.delete(mt).subscribe(Ge=>{this.eventBus.publish(Re,Ge)},Ge=>{this.handleError(Ge,Lt=>{this.deleteItem(Re,mt)},Lt=>{this.eventBus.publish(this.getErrorKey(Re),Lt)})})}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.LFG(Z.e),e.LFG(w.l),e.LFG(ee.eN),e.LFG(D.Y))};static#t=this.\u0275prov=e.Yz7({token:ce,factory:ce.\u0275fac,providedIn:"root"})}return ce})();var ue=C(6814);function se(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"a",2),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw();return e.KtG(Ge.deleteItem())}),e._UZ(1,"i",3),e.qZA()}}function te(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"a",4),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw();return e.KtG(Ge.deleteItem())}),e._UZ(1,"i",5),e.qZA()}}let oe=(()=>{class ce extends l.H{componentName(){return"DeleteComponent"}constructor(Re,mt,Ge,Lt,je){super(Re,mt,Ge),this.notifier=Lt,this.deleteService=je,this.deleteItemEvent=new e.vpe,this.look="fa"}ngOnInit(){}deleteItem(){if(!confirm("Are you sure to continue?"))return;let mt=this.componentKey(this.requestUrl);this.deleteService.deleteItem(mt,this.requestUrl),this.subscribe(mt,null,(Ge,Lt)=>{this.deleteItemEvent.emit(!0)}),this.subscribe(this.getErrorKey(mt),null,(Ge,Lt)=>{this.notifier.error("Error!",Lt.data.error.message),this.deleteItemEvent.emit(!1)})}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(D.Y),e.Y36(I.F0),e.Y36(S.z),e.Y36(w.l),e.Y36(re))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["app-delete"]],inputs:{requestUrl:"requestUrl",look:"look"},outputs:{deleteItemEvent:"deleteItemEvent"},features:[e.qOj],decls:2,vars:2,consts:[["class","btn btn-outline-danger btn-sm","title","Delete",3,"click",4,"ngIf"],["href","javascript: void(0);",3,"click",4,"ngIf"],["title","Delete",1,"btn","btn-outline-danger","btn-sm",3,"click"],[1,"fas","fa-trash"],["href","javascript: void(0);",3,"click"],["title","Delete",1,"bx","bx-trash","text-danger"]],template:function(mt,Ge){1&mt&&(e.YNc(0,se,2,0,"a",0),e.YNc(1,te,2,0,"a",1)),2&mt&&(e.Q6J("ngIf","fa"==Ge.look),e.xp6(1),e.Q6J("ngIf","bx"==Ge.look))},dependencies:[ue.O5]})}return ce})()},1836:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q:()=>_e});var e=C(5879),l=C(6542),D=C(8637),I=C(30),S=C(1662),w=C(6945),n=C(6814);function Z(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-4))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-4)}}function ee(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-3))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-3)}}function re(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-2))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-2)}}function ue(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number-1))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number-1)}}function se(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+1))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+1)}}function te(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+2))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+2)}}function oe(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+3))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+3)}}function ce(Re,mt){if(1&Re){const Ge=e.EpF();e.TgZ(0,"a",11),e.NdJ("click",function(){e.CHM(Ge);const je=e.oxw();return e.KtG(je.onPageSelected(je.page.number+4))}),e._uU(1),e.qZA()}if(2&Re){const Ge=e.oxw();e.xp6(1),e.Oqu(Ge.page.number+4)}}let _e=(()=>{class Re extends D.H{componentName(){return"PaginationComponent"}constructor(Ge,Lt,je,Tt){super(Ge,Lt,je),this.activatedRoute=Tt,this.page=l.H,this.pageNumber=0,this.pageSize=10,this.onPageChanged=new e.vpe}ngOnInit(){this.activatedRoute.queryParams.subscribe(Ge=>{let je=Ge.size;this.pageNumber=parseInt(Ge.page??this.page.number),this.pageSize=parseInt(je??this.page.size),this.onPageChanged.emit(Ge)})}processParams(Ge){let Lt={};for(let je of Object.entries(Ge))Lt[je[0]]=je[1];return Lt}onPageSelected(Ge){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:Ge,size:this.pageSize},queryParamsHandling:"merge"}).then(Lt=>{})}onNextClick(){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:this.pageNumber+1,size:this.pageSize},queryParamsHandling:"merge"}).then(Ge=>{})}onPreviousClick(){this.router.navigate(["."],{relativeTo:this.activatedRoute,queryParams:{page:this.pageNumber-1,size:this.pageSize},queryParamsHandling:"merge"}).then(Ge=>{})}static#e=this.\u0275fac=function(Lt){return new(Lt||Re)(e.Y36(I.Y),e.Y36(S.F0),e.Y36(w.z),e.Y36(S.gz))};static#t=this.\u0275cmp=e.Xpm({type:Re,selectors:[["app-pagination"]],inputs:{page:"page"},outputs:{onPageChanged:"onPageChanged"},features:[e.qOj],decls:30,vars:15,consts:function(){let Ge,Lt;return Ge="Previous",Lt="Next",[[1,"row"],[1,"col-lg-12","grid-margin","stretch-card"],[1,"float-end"],["aria-label","Page navigation example"],[1,"pagination"],[1,"page-item"],["href","javascript: void(0);",3,"click"],Ge,["href","javascript: void(0);","class","page-link",3,"click",4,"ngIf"],["href","javascript: void(0);",1,"page-link","active",3,"click"],Lt,["href","javascript: void(0);",1,"page-link",3,"click"]]},template:function(Lt,je){1&Lt&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"nav",3)(4,"ul",4)(5,"li",5)(6,"a",6),e.NdJ("click",function(){return je.onPreviousClick()}),e.SDv(7,7),e.qZA()(),e.TgZ(8,"li",5),e.YNc(9,Z,2,1,"a",8),e.qZA(),e.TgZ(10,"li",5),e.YNc(11,ee,2,1,"a",8),e.qZA(),e.TgZ(12,"li",5),e.YNc(13,re,2,1,"a",8),e.qZA(),e.TgZ(14,"li",5),e.YNc(15,ue,2,1,"a",8),e.qZA(),e.TgZ(16,"li",5)(17,"a",9),e.NdJ("click",function(){return je.onPageSelected(je.page.number)}),e._uU(18),e.qZA()(),e.TgZ(19,"li",5),e.YNc(20,se,2,1,"a",8),e.qZA(),e.TgZ(21,"li",5),e.YNc(22,te,2,1,"a",8),e.qZA(),e.TgZ(23,"li",5),e.YNc(24,oe,2,1,"a",8),e.qZA(),e.TgZ(25,"li",5),e.YNc(26,ce,2,1,"a",8),e.qZA(),e.TgZ(27,"li",5)(28,"a",6),e.NdJ("click",function(){return je.onNextClick()}),e.SDv(29,10),e.qZA()()()()()()()),2&Lt&&(e.xp6(6),e.Gre("page-link ",je.page.first?"disabled":"",""),e.xp6(3),e.Q6J("ngIf",je.page.number>3),e.xp6(2),e.Q6J("ngIf",je.page.number>2),e.xp6(2),e.Q6J("ngIf",je.page.number>1),e.xp6(2),e.Q6J("ngIf",je.page.number>0),e.xp6(3),e.Oqu(je.page.number),e.xp6(2),e.Q6J("ngIf",je.page.number+1{"use strict";C.d(Ie,{x:()=>D});var e=C(5879),l=C(7700);let D=(()=>{class S{constructor(n){this.dialog=n,this.onCanceled=new e.vpe,this.onCompleted=new e.vpe}openWithConfig(n,Z){const ee=this.dialog.open(n,Z);let re=ee.componentInstance;return re.onCanceled.subscribe(()=>{this.onCanceled.emit(),ee.close()}),re.onCompleted.subscribe(ue=>{this.onCompleted.emit(ue),ee.close()}),ee}open(n,Z){console.log(window.innerWidth,window.innerHeight);let re=function I(){let S=window.innerWidth;return S>=1600?60:S>=1400?50:S>=1200||S>=992?40:S>=768?70:80}(),ue={disableClose:!0,maxHeight:70*window.innerHeight/100+"px",width:window.innerWidth*re/100+"px",data:Z};return this.openWithConfig(n,ue)}static#e=this.\u0275fac=function(Z){return new(Z||S)(e.LFG(l.uw))};static#t=this.\u0275prov=e.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})()},4736:(ft,Ie,C)=>{"use strict";C.d(Ie,{t:()=>se});var e=C(5879),l=C(6814),D=C(5940),I=C(6007);function S(te,oe){if(1&te&&(e.TgZ(0,"div")(1,"h5",1),e._uU(2),e.qZA()()),2&te){const ce=e.oxw();e.xp6(2),e.Oqu(ce.message)}}function w(te,oe){1&te&&e._UZ(0,"mat-progress-bar",4)}function n(te,oe){if(1&te&&(e.TgZ(0,"div",5),e._UZ(1,"mat-spinner",6),e.qZA()),2&te){const ce=e.oxw(2);e.vpz("padding: ",ce.padding,"px 0 ",ce.padding,"px 0;"),e.xp6(1),e.Q6J("diameter",ce.size)}}function Z(te,oe){if(1&te&&(e.TgZ(0,"div"),e.YNc(1,w,1,0,"mat-progress-bar",2),e.YNc(2,n,2,5,"div",3),e.qZA()),2&te){const ce=e.oxw();e.xp6(1),e.Q6J("ngIf",ce.bar),e.xp6(1),e.Q6J("ngIf",!ce.bar)}}function ee(te,oe){if(1&te&&e._UZ(0,"mat-progress-bar",8),2&te){const ce=e.oxw(2);e.Q6J("value",ce.determinateValue)}}function re(te,oe){if(1&te&&(e.TgZ(0,"div",5),e._UZ(1,"mat-spinner",9),e.qZA()),2&te){const ce=e.oxw(2);e.vpz("padding: ",ce.padding,"px 0 ",ce.padding,"px 0;"),e.xp6(1),e.Q6J("diameter",ce.size)("value",ce.determinateValue)}}function ue(te,oe){if(1&te&&(e.TgZ(0,"div"),e.YNc(1,ee,1,1,"mat-progress-bar",7),e.YNc(2,re,2,6,"div",3),e.qZA()),2&te){const ce=e.oxw();e.xp6(1),e.Q6J("ngIf",ce.bar),e.xp6(1),e.Q6J("ngIf",!ce.bar)}}let se=(()=>{class te{constructor(){this.size=50,this.padding=20,this.bar=!1,this.determinate=!1,this.determinateValue=0,this.message=null}ngOnInit(){}static#e=this.\u0275fac=function(_e){return new(_e||te)};static#t=this.\u0275cmp=e.Xpm({type:te,selectors:[["util-progress"]],inputs:{size:"size",padding:"padding",bar:"bar",determinate:"determinate",determinateValue:"determinateValue",message:"message"},decls:3,vars:3,consts:[[4,"ngIf"],[1,"loading-msg"],["mode","indeterminate",4,"ngIf"],["class","progress-section",3,"style",4,"ngIf"],["mode","indeterminate"],[1,"progress-section"],["mode","indeterminate",3,"diameter"],["mode","determinate",3,"value",4,"ngIf"],["mode","determinate",3,"value"],["mode","determinate",3,"diameter","value"]],template:function(_e,Re){1&_e&&(e.YNc(0,S,3,1,"div",0),e.YNc(1,Z,3,2,"div",0),e.YNc(2,ue,3,2,"div",0)),2&_e&&(e.Q6J("ngIf",null!=Re.message),e.xp6(1),e.Q6J("ngIf",!Re.determinate),e.xp6(1),e.Q6J("ngIf",Re.determinate))},dependencies:[l.O5,D.Ou,I.pW],styles:[".progress-section[_ngcontent-%COMP%]{display:grid;place-items:center}.loading-msg[_ngcontent-%COMP%]{font-size:1em;margin-bottom:20px}"]})}return te})()},9432:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>ce});var e=C(5879),l=C(8637),D=C(7259),I=C(8174),S=C(30),w=C(1662),n=C(6945),Z=C(5239),ee=C(6814),re=C(6223),ue=C(4807),se=C(4736);function te(_e,Re){1&_e&&e._UZ(0,"util-progress",3),2&_e&&e.Q6J("bar",!0)}const oe=function(){return{standalone:!0}};let ce=(()=>{class _e extends l.H{componentName(){return"UserFilterComponent"}constructor(mt,Ge,Lt,je){super(mt,Ge,Lt),this.userService=je,this.users=[],this.username=null,this.selected=new e.vpe}ngOnInit(){this.loading=!1,this.searchUsers({page:0,size:20,q:null,slice:!0})}onUserSelected(mt){this.selected.emit(this.username)}searchUsersForEvent(mt){let Ge=I.g.removeSpecialCharacters(mt.target?.value);Ge.length>2&&this.searchUsers({page:0,size:20,q:Ge,slice:!0})}searchUsers(mt){this.loading=!0;let Ge=this.componentKey(D.Z.USERS.SEARCH_USERS());this.userService.searchUsers(Ge,mt),this.subscribe(Ge,null,(Lt,je)=>{this.users=je.data.content,this.loading=!1})}static#e=this.\u0275fac=function(Ge){return new(Ge||_e)(e.Y36(S.Y),e.Y36(w.F0),e.Y36(n.z),e.Y36(Z.K))};static#t=this.\u0275cmp=e.Xpm({type:_e,selectors:[["app-user-filter"]],inputs:{username:"username"},outputs:{selected:"selected"},features:[e.qOj],decls:4,vars:8,consts:[["for","autoSizingInput",1,"visually-hidden"],[3,"bar",4,"ngIf"],["id","autoSizingInput","bindLabel","label","bindValue","username","placeholder","User",3,"items","hideSelected","multiple","addTag","ngModel","ngModelOptions","keyup","ngModelChange","change"],[3,"bar"]],template:function(Ge,Lt){1&Ge&&(e.TgZ(0,"label",0),e._uU(1,"User"),e.qZA(),e.YNc(2,te,1,1,"util-progress",1),e.TgZ(3,"ng-select",2),e.NdJ("keyup",function(Tt){return Lt.searchUsersForEvent(Tt)})("ngModelChange",function(Tt){return Lt.username=Tt})("change",function(Tt){return Lt.onUserSelected(Tt)}),e.qZA()),2&Ge&&(e.xp6(2),e.Q6J("ngIf",Lt.loading),e.xp6(1),e.Q6J("items",Lt.users)("hideSelected",!0)("multiple",!1)("addTag",!0)("ngModel",Lt.username)("ngModelOptions",e.DdM(7,oe)))},dependencies:[ee.O5,re.JJ,re.On,ue.w9,se.t]})}return _e})()},2770:(ft,Ie,C)=>{"use strict";C.d(Ie,{G:()=>I});var e=C(6814),l=C(2739),D=C(5879);let I=(()=>{class S{transform(n,Z=!1){if(null==n)return null;let ee="MMM dd, yyyy hh:mm a";if(!Z)return new e.uU("en-US").transform(n,ee);let re=l.b.getDuration(new Date,new Date(n));return re>432e5?new e.uU("en-US").transform(n,ee):l.b.msToReadableTime(re,!1)}static#e=this.\u0275fac=function(Z){return new(Z||S)};static#t=this.\u0275pipe=D.Yjl({name:"readableDate",type:S,pure:!0})}return S})()},8174:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>e});class e{static copyToClipboard(D){const I=document.createElement("textarea");I.style.position="fixed",I.style.left="0",I.style.top="0",I.style.opacity="0",I.value=D,document.body.appendChild(I),I.focus(),I.select(),document.execCommand("copy"),document.body.removeChild(I)}static findHashtags(D,I){let S=D.split(" ").filter(w=>w.startsWith("#"));return I?S.map(w=>w.replace("#","")):S}static removeSpecialCharacters(D,I=!0){return D.replace(I?/[^a-zA-Z0-9\s]/g:/[^a-zA-Z0-9]/g,"")}static slugify(D){return null==D?"":D.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}static codify(D){return null==D?"":D.toString().toUpperCase().replace(/\s+/g,"_").replace(/[^\w\_]+/g,"").replace(/\_\_+/g,"_").replace(/^_+/,"").replace(/_+$/,"")}static randomString(D){let I="";for(let n=0;n{"use strict";C.d(Ie,{b:()=>e,e:()=>l});class e{static getDuration(I,S){return Math.abs(I.getTime()-S.getTime())}static addDays(I,S){return new Date(I.getTime()+24*S*60*60*1e3)}static addMonths(I,S){return new Date(I.setMonth(I.getMonth()+S))}static addYears(I,S){return new Date(I.setFullYear(I.getFullYear()+S))}static weekRange(I){let S=I.getDay()||7;return 1!==S&&I.setHours(-24*(S-1)),{start:new Date(I.getFullYear(),I.getMonth(),I.getDate()),end:new Date(I.getFullYear(),I.getMonth(),I.getDate()+6)}}static last7DaysRange(I){return{start:this.addDays(I,-7),end:I}}static monthRange(I){return{start:new Date(I.getFullYear(),I.getMonth(),1),end:new Date(I.getFullYear(),I.getMonth()+1,0)}}static yearRange(I){return{start:new Date(I.getFullYear(),0,1),end:new Date(I.getFullYear(),11,31)}}static msToTime(I){let S=Math.floor(I%1e3/100),w=Math.floor(I/1e3%60),n=Math.floor(I/6e4%60),Z=Math.floor(I/36e5%24);return{h:Z<10?"0"+Z:Z+"",m:n<10?"0"+n:n+"",s:w<10?"0"+w:w+"",ms:S+""}}static msToReadableTime(I,S){let w=this.msToTime(I);if("00"===w.h&&"00"===w.m)return"just now";let n="";return"00"!==w.h&&(n=w.h+" h "),n=n+""+w.m+" min",S&&(n=" "+n+" sec"),n+" ago"}static calculateRange(I){switch(I){case"TODAY":{let S=new Date;return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(S)}}case"YESTERDAY":{let S=this.getDayBefore(new Date,1);return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(S)}}case"THIS_WEEK":{let S=this.getDayBefore(new Date,7);return{fromDate:this.getDayStart(S),toDate:this.getDayEnd(new Date)}}case"THIS_MONTH":{let S=this.getFirstAndLastDayOfMonth(new Date);return{fromDate:S.firstDay,toDate:S.lastDay}}case"LAST_MONTH":{let S=new Date;S.setMonth(S.getMonth()-1);let w=this.getFirstAndLastDayOfMonth(S);return{fromDate:w.firstDay,toDate:w.lastDay}}}return null}static getDayBefore(I,S){return new Date(I.getTime()-24*S*60*60*1e3)}static getDayStart(I){return I.setHours(0,0,0,0),I}static getDayEnd(I){return I.setHours(23,59,59,999),I}static getFirstAndLastDayOfMonth(I){const S=new Date(I.getFullYear(),I.getMonth(),1),w=new Date(I.getFullYear(),I.getMonth()+1,0);return{firstDay:this.getDayStart(S),lastDay:this.getDayEnd(w)}}static dateFromMonth(I){const S=l.map(n=>n.value).findIndex(n=>n.toLowerCase()===I.toLowerCase()),w=new Date;return w.setUTCMonth(-1!==S?S:(new Date).getMonth()),w.setUTCDate(1),w.setUTCHours(0,0,0,0),w}}let l=[{title:"January",value:"january"},{title:"February",value:"february"},{title:"March",value:"march"},{title:"April",value:"april"},{title:"May",value:"may"},{title:"June",value:"june"},{title:"July",value:"july"},{title:"August",value:"august"},{title:"September",value:"september"},{title:"October",value:"october"},{title:"November",value:"november"},{title:"December",value:"december"}]},7151:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>re});var e=C(6814),l=C(5940),D=C(6007),I=C(9277),S=C(6223),w=C(4807),n=C(7700),Z=C(9299),ee=C(5879);let re=(()=>{class ue{static#e=this.\u0275fac=function(oe){return new(oe||ue)};static#t=this.\u0275mod=ee.oAB({type:ue});static#n=this.\u0275inj=ee.cJS({providers:[{provide:n.WI,useValue:{}},{provide:n.so,useValue:{}}],imports:[e.ez,l.Cq,D.Cv,I.kn,S.u5,w.A0,S.UX,Z.d]})}return ue})()},8914:(ft,Ie,C)=>{"use strict";C.d(Ie,{$:()=>e});const e=[{id:1,title:"TODAY",code:"TODAY"},{id:2,title:"YESTERDAY",code:"YESTERDAY"},{id:4,title:"THIS WEEK",code:"THIS_WEEK"},{id:4,title:"THIS MONTH",code:"THIS_MONTH"}]},6929:(ft,Ie,C)=>{"use strict";C.d(Ie,{v:()=>S});var e=C(5879),l=C(6814);function D(w,n){if(1&w){const Z=e.EpF();e.TgZ(0,"li",3),e.NdJ("click",function(){const ue=e.CHM(Z).$implicit,se=e.oxw();return e.KtG(se.onMenuItemClick(ue))}),e.TgZ(1,"a"),e._uU(2),e.qZA()()}if(2&w){const Z=n.$implicit;e.xp6(2),e.Oqu(Z.title)}}const I=function(w){return{"product-menu-bar":w}};let S=(()=>{class w{constructor(){this.showMenubar=!1,this.top=0,this.items=[],this.menuItemClick=new e.vpe}ngOnInit(){}onMenuItemClick(Z){this.menuItemClick.emit(Z)}static#e=this.\u0275fac=function(ee){return new(ee||w)};static#t=this.\u0275cmp=e.Xpm({type:w,selectors:[["app-menubox"]],inputs:{showMenubar:"showMenubar",top:"top",items:"items"},outputs:{menuItemClick:"menuItemClick"},decls:4,vars:7,consts:[[3,"ngClass"],[1,"productMenuBox"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(ee,re){1&ee&&(e.TgZ(0,"div",0)(1,"div",1)(2,"ul"),e.YNc(3,D,3,1,"li",2),e.qZA()()()),2&ee&&(e.Q6J("ngClass",e.VKq(5,I,re.showMenubar)),e.xp6(1),e.Jzz("top:",re.top,"px"),e.xp6(2),e.Q6J("ngForOf",re.items))},dependencies:[l.mk,l.sg],styles:['.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:250px;margin-top:10px;padding:0 10px;list-style:none;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return w})()},9029:(ft,Ie,C)=>{"use strict";C.d(Ie,{d:()=>w});var e=C(5879),l=C(7613),D=C(6814);const I=function(n){return{"background-image":n}};function S(n,Z){if(1&n){const ee=e.EpF();e.TgZ(0,"div",1,2),e.NdJ("click",function(){e.CHM(ee);const ue=e.oxw();return e.KtG(ue.onItemClick(ue.product))}),e.TgZ(2,"div",3)(3,"p",4),e._UZ(4,"i",5),e._uU(5),e.qZA(),e.TgZ(6,"h4")(7,"a",6),e.NdJ("click",function(){e.CHM(ee);const ue=e.oxw();return e.KtG(ue.onItemClick(ue.product))}),e.TgZ(8,"span",7),e._uU(9),e.qZA()()()()()}if(2&n){const ee=e.oxw();e.Q6J("ngStyle",e.VKq(3,I,"url("+ee.product.image+")")),e.xp6(5),e.hij(" ",ee.product.average_rating.toFixed(1),"/10 This week"),e.xp6(4),e.Oqu(ee.product.product_name)}}let w=(()=>{class n{constructor(){this.product=null,this.onClick=new e.vpe}ngOnInit(){}takeOnly(ee){return ee.length<25?ee:l.m.takeOnly(ee,25)+".."}onItemClick(ee){this.onClick.emit(ee)}static#e=this.\u0275fac=function(re){return new(re||n)};static#t=this.\u0275cmp=e.Xpm({type:n,selectors:[["app-single-product-item"]],inputs:{product:"product"},outputs:{onClick:"onClick"},decls:1,vars:1,consts:[["class","single-product-area item",3,"ngStyle","click",4,"ngIf"],[1,"single-product-area","item",3,"ngStyle","click"],["el",""],[1,"product-content","text-light","align-items-end"],[2,"color","ghostwhite","text-shadow","1px 1px black"],[1,"flaticon-star-1",2,"font-size","1em"],[3,"click"],[1,"excerpt"]],template:function(re,ue){1&re&&e.YNc(0,S,10,5,"div",0),2&re&&e.Q6J("ngIf",null!=ue.product)},dependencies:[D.O5,D.PC],styles:[".single-product-area[_ngcontent-%COMP%]{object-fit:cover;background-size:cover;display:flex;justify-content:flex-end;flex-direction:column;border-radius:0}.product-content[_ngcontent-%COMP%]{border-radius:0;height:90px;background-color:transparent;background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}@media screen and (max-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:160px}}@media screen and (min-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:165px}}"]})}return n})()},5159:(ft,Ie,C)=>{"use strict";C.d(Ie,{q:()=>oe});var e=C(5879),l=C(8637),D=C(30),I=C(1662),S=C(6945),w=C(6814),n=C(8468);function Z(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",7),e.TgZ(2,"span",8),e._uU(3),e.qZA()()}if(2&ce){const Re=e.oxw(2).$implicit,mt=e.oxw();e.xp6(1),e.s9C("src",Re.img,e.LSH),e.xp6(2),e.Oqu(mt.firstWord(Re.title))}}function ee(ce,_e){1&ce&&e._UZ(0,"img",12),2&ce&&e.s9C("src",_e.$implicit,e.LSH)}function re(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",7),e.TgZ(2,"span",8),e._uU(3),e.qZA(),e.TgZ(4,"div",10),e.YNc(5,ee,1,1,"img",11),e.qZA()()}if(2&ce){const Re=e.oxw(2).$implicit,mt=e.oxw();e.xp6(1),e.s9C("src",Re.img,e.LSH),e.xp6(2),e.Oqu(mt.firstWord(Re.title)),e.xp6(2),e.Q6J("ngForOf",Re.badges)}}function ue(ce,_e){if(1&ce){const Re=e.EpF();e.TgZ(0,"div",13),e.NdJ("click",function(){e.CHM(Re);const Ge=e.oxw(2).$implicit,Lt=e.oxw();return e.KtG(Lt.onItemClick(Ge))}),e._UZ(1,"img",12),e.qZA()}if(2&ce){const Re=e.oxw(2).$implicit;e.xp6(1),e.s9C("src",Re.img,e.LSH)}}function se(ce,_e){if(1&ce&&(e.YNc(0,Z,4,2,"div",3),e.YNc(1,re,6,3,"div",4),e.YNc(2,ue,2,1,"div",5)),2&ce){const Re=e.oxw(2);e.Q6J("ngIf","reviewers"===Re.design),e.xp6(1),e.Q6J("ngIf","achievements"===Re.design),e.xp6(1),e.Q6J("ngIf","youtube-reviews"===Re.design)}}function te(ce,_e){1&ce&&e.YNc(0,se,3,3,"ng-template",2)}let oe=(()=>{class ce extends l.H{constructor(Re,mt,Ge){super(Re,mt,Ge),this.carouselOptions={loop:!0,items:4,smartSpeed:500,autoplay:!1,autoWidth:!0,margin:10,nav:!1,dots:!1,responsive:{0:{items:5},480:{items:5},600:{items:7},800:{items:8},1200:{items:10}}},this.items=[],this.design="reviewers",this.itemClick=new e.vpe}componentName(){return"SmallCarouselComponent"}ngOnInit(){}onItemClick(Re){this.itemClick.emit(Re)}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(D.Y),e.Y36(I.F0),e.Y36(S.z))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["app-small-carousel"]],inputs:{items:"items",design:"design"},outputs:{itemClick:"itemClick"},features:[e.qOj],decls:2,vars:2,consts:[[3,"options"],[4,"ngFor","ngForOf"],["carouselSlide",""],["class","item single-reviewers-area text-center small-carousel",3,"click",4,"ngIf"],["class","item single-reviewers-area text-center small-carousel mb-5",3,"click",4,"ngIf"],["class","item youtube-reviews single-review-area text-center",3,"click",4,"ngIf"],[1,"item","single-reviewers-area","text-center","small-carousel",3,"click"],["alt","",1,"carousel-img",3,"src"],[1,"user-name"],[1,"item","single-reviewers-area","text-center","small-carousel","mb-5",3,"click"],[1,"acchievement-rating","my-2"],["alt","",3,"src",4,"ngFor","ngForOf"],["alt","",3,"src"],[1,"item","youtube-reviews","single-review-area","text-center",3,"click"]],template:function(mt,Ge){1&mt&&(e.TgZ(0,"owl-carousel-o",0),e.YNc(1,te,1,0,null,1),e.qZA()),2&mt&&(e.Q6J("options",Ge.carouselOptions),e.xp6(1),e.Q6J("ngForOf",Ge.items))},dependencies:[w.sg,w.O5,n.Fy,n.Mp],styles:[".carousel-img[_ngcontent-%COMP%]{height:100%}.acchievement-rating[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:25px}.acchievement-rating[_ngcontent-%COMP%]{display:flex;justify-content:center}.small-carousel[_ngcontent-%COMP%]{margin-bottom:30px}.user-name[_ngcontent-%COMP%]{display:block;max-width:64px;justify-content:center}"]})}return ce})()},2177:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>$e});var e=C(8637),l=C(7259),D=C(8914),I=C(2739),S=C(553),w=C(5879),n=C(8480),Z=C(5462),ee=C(30),re=C(1662),ue=C(6945),se=C(1081),te=C(9491),oe=C(2951),ce=C(6593),_e=C(6814),Re=C(4736),mt=C(5159),Ge=C(2498),Lt=C(7613),je=C(8468),Tt=C(9029);function xt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-single-product-item",3),w.NdJ("onClick",function(){w.CHM(he);const rt=w.oxw().$implicit,bt=w.oxw();return w.KtG(bt.onItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw().$implicit;w.Q6J("product",he)}}function St(me,tt){1&me&&w.YNc(0,xt,1,1,"ng-template",2)}let Zt=(()=>{class me{constructor(){this.carouselOptions={loop:!1,items:6,smartSpeed:500,autoplay:!1,autoWidth:!1,margin:0,nav:!1,dots:!1,stagePadding:10,responsive:{0:{items:2,stagePadding:10},480:{items:2,stagePadding:20},576:{items:3},600:{items:3},800:{items:5},1200:{items:6}}},this.items=[],this.itemClick=new w.vpe}ngOnInit(){}onItemClick(he){this.itemClick.emit(he)}takeOnly(he){return he.length<25?he:Lt.m.takeOnly(he,25)+".."}static#e=this.\u0275fac=function(Ze){return new(Ze||me)};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-product-carousel"]],inputs:{items:"items"},outputs:{itemClick:"itemClick"},decls:2,vars:2,consts:[[3,"options"],[4,"ngFor","ngForOf"],["carouselSlide",""],[3,"product","onClick"]],template:function(Ze,rt){1&Ze&&(w.TgZ(0,"owl-carousel-o",0),w.YNc(1,St,1,0,null,1),w.qZA()),2&Ze&&(w.Q6J("options",rt.carouselOptions),w.xp6(1),w.Q6J("ngForOf",rt.items))},dependencies:[_e.sg,je.Fy,je.Mp,Tt.d],styles:[".single-product-area[_ngcontent-%COMP%]{object-fit:cover;background-size:cover;display:flex;justify-content:flex-end;flex-direction:column;border-radius:0}.product-content[_ngcontent-%COMP%]{min-height:108px;border-radius:0;background-color:transparent;background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}@media screen and (max-width: 400px){.single-product-area[_ngcontent-%COMP%]{height:250px;max-width:160px}}@media screen and (min-width: 400px){.single-product-area[_ngcontent-%COMP%]{min-height:300px}}"]})}return me})();function yt(me,tt){1&me&&w._UZ(0,"util-progress")}function un(me,tt){if(1&me&&(w.TgZ(0,"div"),w._uU(1," No Items for period: "),w._UZ(2,"br"),w._uU(3),w.qZA()),2&me){const he=w.oxw();w.xp6(3),w.hij("",he.period," ")}}function Jt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-product-carousel",12),w.NdJ("itemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onProductItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("items",he.products)}}const tn=function(me){return{"product-menu-bar":me}};let wn=(()=>{class me extends e.H{constructor(he,Ze,rt,bt,Nt,Qt){super(rt,bt,Nt),this.authService=he,this.notifier=Ze,this.productService=Qt,this.title="",this.attrId=null,this.productsLoaded=new w.vpe,this.products=[],this.period="THIS MONTH",this.showMenubar=!1}componentName(){return"ProductListComponent"}ngOnInit(){let he=I.b.calculateRange("THIS_MONTH");this.fetchTopProducts({attribute_id:this.attrId,from_date:he?.fromDate,to_date:he?.toDate})}onProductItemClick(he){this.navigate("products/"+he.product_id+"/"+he.product_slug,Ze=>{console.log("Product Details: "+he.product_slug)})}onMenuClick(he){this.showMenubar=!this.showMenubar}onMenuItemClick(he){this.showMenubar=!1,this.period=he.replace("_"," ");let Ze=I.b.calculateRange(he);this.fetchTopProducts({attribute_id:this.attrId,from_date:Ze?.fromDate,to_date:Ze?.toDate})}fetchTopProducts(he){this.loading=!0;const Ze=this.componentKey(l.Z.PRODUCTS.PRODUCTS_LOADED(this.attrId));this.productService.fetchTopProducts(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.products=bt.data,this.loading=!1,this.productsLoaded.emit(!0)}),this.subscribe(this.getErrorKey(Ze),null,(rt,bt)=>{this.notifier.log(bt.data)})}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(re.F0),w.Y36(ue.z),w.Y36(Ge.M))};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-product-list"]],inputs:{title:"title",attrId:"attrId"},outputs:{productsLoaded:"productsLoaded"},features:[w.qOj],decls:29,vars:8,consts:[[1,"product-section","pt-4","mb-1"],[1,"container"],[1,"row","align-items-center","mb-3"],[1,"col-7"],[1,"col-5"],[1,"product-header-right","d-flex","justify-content-between"],[3,"click"],[3,"ngClass"],["src","assets/img/FunnelSimple.png","alt","",3,"click"],[1,"productMenuBox"],[4,"ngIf"],[3,"items","itemClick",4,"ngIf"],[3,"items","itemClick"]],template:function(Ze,rt){1&Ze&&(w.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5"),w._uU(5),w.qZA()(),w.TgZ(6,"div",4)(7,"div",5)(8,"h5",6),w.NdJ("click",function(Nt){return rt.onMenuClick(Nt)}),w._uU(9),w.qZA(),w.TgZ(10,"div",7)(11,"img",8),w.NdJ("click",function(Nt){return rt.onMenuClick(Nt)}),w.qZA(),w.TgZ(12,"div",9)(13,"ul")(14,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("TODAY")}),w.TgZ(15,"a"),w._uU(16,"Today"),w.qZA()(),w.TgZ(17,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("THIS_WEEK")}),w.TgZ(18,"a"),w._uU(19,"This Week"),w.qZA()(),w.TgZ(20,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("THIS_MONTH")}),w.TgZ(21,"a"),w._uU(22,"This Month"),w.qZA()(),w.TgZ(23,"li",6),w.NdJ("click",function(){return rt.onMenuItemClick("LAST_MONTH")}),w.TgZ(24,"a"),w._uU(25,"Last Month"),w.qZA()()()()()()()(),w.YNc(26,yt,1,0,"util-progress",10),w.YNc(27,un,4,1,"div",10),w.YNc(28,Jt,1,1,"app-product-carousel",11),w.qZA()()),2&Ze&&(w.xp6(5),w.hij("Top items for ",rt.title,""),w.xp6(4),w.Oqu(rt.period),w.xp6(1),w.Q6J("ngClass",w.VKq(6,tn,rt.showMenubar)),w.xp6(16),w.Q6J("ngIf",rt.loading),w.xp6(1),w.Q6J("ngIf",!rt.loading&&0===rt.products.length),w.xp6(1),w.Q6J("ngIf",!rt.loading))},dependencies:[_e.mk,_e.O5,Re.t,Zt],styles:['.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{width:250px;margin-top:10px;padding:0 10px;list-style:none;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7}.product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .product-header-right[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return me})();var Ln=C(6929);function Yn(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}function ti(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-menubox",22),w.NdJ("menuItemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onReviewersMenuItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("showMenubar",he.showReviewersMenu)("items",he.getMenuItems())}}function gi(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}const Rn=function(me){return{active:me}};function dt(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"li",23),w.NdJ("click",function(){const bt=w.CHM(he).$implicit,Nt=w.oxw();return w.KtG(Nt.loadAttributes([bt]))}),w.TgZ(1,"a",24),w._uU(2),w.qZA()()}if(2&me){const he=tt.$implicit,Ze=w.oxw();w.Q6J("ngClass",w.VKq(2,Rn,Ze.selectedInterestItem===he.id)),w.xp6(2),w.Oqu(he.name)}}function at(me,tt){if(1&me&&w._UZ(0,"app-product-list",25),2&me){const he=tt.$implicit;w.Q6J("title",he.name)("attrId",he.id)}}function Be(me,tt){if(1&me){const he=w.EpF();w.TgZ(0,"app-menubox",22),w.NdJ("menuItemClick",function(rt){w.CHM(he);const bt=w.oxw();return w.KtG(bt.onAchievementsMenuItemClick(rt))}),w.qZA()}if(2&me){const he=w.oxw();w.Q6J("showMenubar",he.showAchievementsMenu)("items",he.getMenuItems())}}function Ee(me,tt){1&me&&w._UZ(0,"util-progress",21),2&me&&w.Q6J("bar",!0)}let $e=(()=>{class me extends e.H{constructor(he,Ze,rt,bt,Nt,Qt,nn,Dn,Ot,rn){super(rt,bt,Nt),this.authService=he,this.notifier=Ze,this.categoryService=Qt,this.reviewService=nn,this.leaderboardService=Dn,this.seoTitle=Ot,this.seoMeta=rn,this.interestsAttrLoading=!0,this.recentReviews=null,this.recentReviewers=[],this.reviewersLoading=!0,this.reviewersPeriod="THIS WEEK",this.showReviewersMenu=!1,this.recentAchievements=null,this.achievements=[],this.achievementsLoading=!0,this.achievementsPeriod="THIS WEEK",this.showAchievementsMenu=!1,this.userInterests=[],this.attributes=[],this.selectedInterestItem=null}componentName(){return"HomeComponent"}ngOnInit(){this.router.navigate(["/admin/dashboard"]).then(Ze=>{}),this.fetchInterests();let he=I.b.calculateRange(this.reviewersPeriod.replace(" ","_"));this.fetchRecentReviews({page:0,from_date:he?.fromDate,to_date:he?.toDate,slice:!0}),this.fetchAchievements({from_date:he?.fromDate,to_date:he?.toDate}),this.resolveSeo()}fetchRecentReviews(he){this.reviewersLoading=!0;let Ze=this.componentKey(l.Z.REVIEWS.FETCH_RECENT_REVIEWS());this.reviewService.fetchRecentReviews(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.recentReviews=bt.data,this.recentReviewers=me.mapToCarouselItems(bt.data),this.reviewersLoading=!1})}fetchAchievements(he){this.achievementsLoading=!0;let Ze=this.componentKey(l.Z.LEADERBOARDS.FETCH_RECENT_ACHIEVEMENTS());this.leaderboardService.fetchRecentAchievements(Ze,he),this.subscribe(Ze,null,(rt,bt)=>{this.recentAchievements=bt.data,this.achievements=me.mapAchievementsToCarouselItems(bt.data),this.achievementsLoading=!1})}onRecentReviewerItemClick(he){let Ze=this.recentReviews?.content.filter(bt=>bt.id===he.id);if(null==Ze||0===Ze.length)return;let rt=Ze[0];this.navigate("/reviews/"+rt?.product_slug+"/"+rt?.slug+"/"+rt?.post_id,bt=>{})}onRecentAchievementsItemClick(he){let Ze=this.recentAchievements?.content.filter(bt=>bt.id===he.id);null!=Ze&&0!==Ze.length&&this.navigate("/u/"+Ze[0].achieved_by_username,bt=>{})}fetchInterests(){if(!this.authService.isAuthenticated())return void this.fetchRootCategories();let he=this.componentKey(l.Z.CATEGORIES.FETCH_INTERESTS());this.categoryService.fetchInterests(he),this.subscribe(he,null,(Ze,rt)=>{this.userInterests=rt.data.map(Nt=>Nt.category),this.loadAttributes(this.userInterests)})}fetchRootCategories(){let he=this.componentKey(l.Z.CATEGORIES.LOADED_ROOT_CATEGORIES());this.categoryService.loadCategories(he,null,null),this.subscribe(he,null,(Ze,rt)=>{this.userInterests=rt.data.content,this.loadAttributes(this.userInterests)})}loadAttributes(he){this.selectedInterestItem=1==he.length?he[0].id:null;let Ze=he.map(bt=>bt.id),rt=this.componentKey(l.Z.CATEGORIES.LOADED_CATEGORY_ATTRIBUTES(Ze));this.categoryService.loadAttributes(rt,Ze),this.subscribe(rt,null,(bt,Nt)=>{this.attributes=Nt.data,this.interestsAttrLoading=!1}),this.notifier.log("Initiate attributes for interests (unimplemented)")}onSearchBoxClicked(he){this.navigate("/search",Ze=>{})}static mapToCarouselItems(he){return he.content.map(Ze=>({id:Ze?.id,slug:Ze?.slug,title:Ze?.posted_by_name,img:null!=Ze?.posted_by_avatar?Ze?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+Ze.id+"/"+Ze.post_id,badges:[]}))}static mapAchievementsToCarouselItems(he){return he.content.map(Ze=>({id:Ze?.id,slug:"",title:Ze?.badge_name,img:null!=Ze?.achieved_by_avatar?Ze?.achieved_by_avatar:"assets/img/default-avatar.png",url:"/u/"+Ze.achieved_by_username,badges:Array(Ze?.total_badge_count).fill("assets/img/recent-acchievements/rating/badge1.png")}))}getMenuItems(){return D.$}onReviewersMenuItemClick(he){this.showReviewersMenu&&(this.showReviewersMenu=!1),this.reviewersPeriod=he.title;let Ze=I.b.calculateRange(he.code);this.fetchRecentReviews({page:0,from_date:Ze?.fromDate,to_date:Ze?.toDate,slice:!0})}onAchievementsMenuItemClick(he){console.log(he),this.showAchievementsMenu&&(this.showAchievementsMenu=!1),this.achievementsPeriod=he.title;let Ze=I.b.calculateRange(he.code);console.log(Ze?.fromDate),console.log(Ze?.toDate),this.fetchAchievements({from_date:Ze?.fromDate,to_date:Ze?.toDate})}onReviewersMenuClick(){this.showReviewersMenu=!this.showReviewersMenu}onAchievementsMenuClick(){this.showAchievementsMenu=!this.showAchievementsMenu}resolveSeo(){this.initSeoItems(this.seoTitle,this.seoMeta,S.N.app_name,"Blockchain based community oriented product quality assurance platform through review and rating.",[],"index","website","",S.N.app_url)}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(w.Y36(n.e),w.Y36(Z.l),w.Y36(ee.Y),w.Y36(re.F0),w.Y36(ue.z),w.Y36(se.H),w.Y36(te.F),w.Y36(oe.S),w.Y36(ce.Dx),w.Y36(ce.h_))};static#t=this.\u0275cmp=w.Xpm({type:me,selectors:[["app-home"]],features:[w.qOj],decls:39,vars:17,consts:[[3,"bar",4,"ngIf"],[1,"search-area",3,"click"],[1,"container"],[1,"search-box","d-flex","justify-content-center"],[1,"search"],["type","text","placeholder","Search for products, jobs anything","name","",1,"search-input"],["href","#",1,"search-icon"],[1,"icon-search"],[1,"reviewers-section","py-2","mt-3"],[1,"reviewers-content","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items","design","itemClick"],[1,"category-area","pt-3","mt-2","scrollable"],[1,"list-inline","list-unstyled"],[1,"list-inline-item",3,"ngClass"],["href","#",3,"click"],["class","list-inline-item",3,"ngClass","click",4,"ngFor","ngForOf"],[3,"title","attrId",4,"ngFor","ngForOf"],[1,"acchievements-section","py-3","mt-3"],[1,"acchievements-content","d-flex","justify-content-between","pb-3",3,"click"],[3,"bar"],[3,"showMenubar","items","menuItemClick"],[1,"list-inline-item",3,"ngClass","click"],["href","#"],[3,"title","attrId"]],template:function(Ze,rt){1&Ze&&(w.YNc(0,Yn,1,1,"util-progress",0),w.TgZ(1,"div")(2,"section",1),w.NdJ("click",function(Nt){return rt.onSearchBoxClicked(Nt)}),w.TgZ(3,"div",2)(4,"div",3)(5,"div",4),w._UZ(6,"input",5),w.TgZ(7,"a",6),w._UZ(8,"i",7),w.qZA()()()()(),w.TgZ(9,"section",8)(10,"div",2)(11,"div",9),w.NdJ("click",function(){return rt.onReviewersMenuClick()}),w.TgZ(12,"h5"),w._uU(13,"RECENT REVIEWERS"),w.qZA(),w.TgZ(14,"h5"),w._uU(15),w.qZA(),w._UZ(16,"img",10),w.qZA(),w.YNc(17,ti,1,2,"app-menubox",11),w.TgZ(18,"app-small-carousel",12),w.NdJ("itemClick",function(Nt){return rt.onRecentReviewerItemClick(Nt)}),w.qZA(),w.YNc(19,gi,1,1,"util-progress",0),w.qZA()(),w.TgZ(20,"section",13)(21,"div",2)(22,"ul",14)(23,"li",15)(24,"a",16),w.NdJ("click",function(){return rt.loadAttributes(rt.userInterests)}),w._uU(25,"All"),w.qZA()(),w.YNc(26,dt,3,4,"li",17),w.qZA()()(),w.YNc(27,at,1,2,"app-product-list",18),w.TgZ(28,"section",19)(29,"div",2)(30,"div",20),w.NdJ("click",function(){return rt.onAchievementsMenuClick()}),w.TgZ(31,"h5"),w._uU(32,"RECENT ACHIEVEMENTS"),w.qZA(),w.TgZ(33,"h5"),w._uU(34),w.qZA(),w._UZ(35,"img",10),w.qZA(),w.YNc(36,Be,1,2,"app-menubox",11),w.TgZ(37,"app-small-carousel",12),w.NdJ("itemClick",function(Nt){return rt.onRecentAchievementsItemClick(Nt)}),w.qZA(),w.YNc(38,Ee,1,1,"util-progress",0),w.qZA()()()),2&Ze&&(w.Q6J("ngIf",rt.interestsAttrLoading),w.xp6(1),w.Q6J("@dataLoaded",rt.interestsAttrLoading?"loading":"loaded"),w.xp6(14),w.Oqu(rt.reviewersPeriod),w.xp6(2),w.Q6J("ngIf",!rt.reviewersLoading),w.xp6(1),w.Q6J("items",rt.recentReviewers)("design","reviewers"),w.xp6(1),w.Q6J("ngIf",rt.reviewersLoading),w.xp6(4),w.Q6J("ngClass",w.VKq(15,Rn,null===rt.selectedInterestItem)),w.xp6(3),w.Q6J("ngForOf",rt.userInterests),w.xp6(1),w.Q6J("ngForOf",rt.attributes),w.xp6(7),w.Oqu(rt.reviewersPeriod),w.xp6(2),w.Q6J("ngIf",!rt.achievementsLoading),w.xp6(1),w.Q6J("items",rt.achievements)("design","achievements"),w.xp6(1),w.Q6J("ngIf",rt.achievementsLoading))},dependencies:[_e.mk,_e.sg,_e.O5,Re.t,mt.q,wn,Ln.v],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.list-inline-item[_ngcontent-%COMP%]{margin-right:1.5rem}.list-group-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#000}.category-area[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1.12em!important}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{height:auto;position:relative}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:40px;width:95%}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:16px;position:absolute;height:auto;width:auto;top:50%;left:12px;margin-top:-9px;display:inline-block}.reviewers-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{color:#44d62c;letter-spacing:.05em}"]})}return me})()},1081:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}searchCategories(ue,se){this.http.get(l.e.CATEGORIES.SEARCH(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.notifier.log(te)})}loadCategories(ue,se,te){null==te&&(te=""),this.http.get(l.e.CATEGORIES.SEARCH(null==se?{q:te}:{parent_id:se,q:te})).subscribe(ce=>{this.eventBusService.publish(ue,ce)},ce=>{this.notifier.log(ce)})}saveInterests(ue,se){let te=se.map(oe=>oe.id);this.http.post(l.e.CATEGORIES.SAVE_INTERESTS(),{category_ids:te}).subscribe(oe=>{this.eventBusService.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.saveInterests(ue,se)},ce=>{this.eventBusService.publish(this.getErrorKey(ue),ce)})})}fetchInterests(ue){this.http.get(l.e.CATEGORIES.FETCH_INTERESTS()).subscribe(se=>{this.eventBusService.publish(ue,se)},se=>{this.notifier.log(se)})}loadAttributes(ue,se){this.http.get(l.e.CATEGORIES.FETCH_ATTRIBUTES({category_ids:se})).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.notifier.log(te)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},2498:(ft,Ie,C)=>{"use strict";C.d(Ie,{M:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}search(ue,se){this.http.get(l.e.PRODUCTS.SEARCH(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.search(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}searchBrands(ue,se){this.http.get(l.e.PRODUCTS.SEARCH_BRANDS(se)).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.searchBrands(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchTopProducts(ue,se){this.http.get(l.e.PRODUCTS.GET_TOP_PRODUCTS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchTopProducts(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchDetails(ue,se){this.http.get(l.e.PRODUCTS.GET_DETAILS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchDetails(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}fetchAvgRatings(ue,se){this.http.get(l.e.REVIEWS.FETCH_AVG_RATINGS(se),{}).subscribe(te=>{this.eventBusService.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchAvgRatings(ue,se)},oe=>{this.eventBusService.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9491:(ft,Ie,C)=>{"use strict";C.d(Ie,{F:()=>Z});var e=C(1547),l=C(1259),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends e.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBus=oe}fetchRecentReviews(ue,se){this.http.get(l.e.REVIEWS.FETCH_RECENT_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchRecentReviews(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}loadReviewAttributes(ue,se){this.notifier.log("Loading attrs for product: "+se),this.http.get(l.e.ATTRIBUTES.GET_ATTRS_FOR_PRODUCT(se,{})).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.loadReviewAttributes(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}createReview(ue,se){this.http.post(l.e.REVIEWS.CREATE_REVIEW({}),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.createReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}updateReview(ue,se,te){this.http.patch(l.e.REVIEWS.UPDATE_REVIEW(se,{}),te).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.updateReview(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}fetchMyReview(ue,se){this.http.get(l.e.REVIEWS.FETCH_MY_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.fetchMyReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}fetchReview(ue,se,te){return this.http.get(l.e.REVIEWS.FETCH_REVIEW(se,te)).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchReview(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})}),ue}fetchProductReviews(ue,se,te){this.http.get(l.e.REVIEWS.FETCH_PRODUCT_REVIEWS(se,te),{}).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchProductReviews(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}fetchUserReviews(ue,se,te){this.http.get(l.e.REVIEWS.FETCH_USER_REVIEWS(se,te),{}).subscribe(oe=>{this.eventBus.publish(ue,oe)},oe=>{this.handleError(oe,ce=>{this.fetchUserReviews(ue,se,te)},ce=>{this.eventBus.publish(this.getErrorKey(ue),ce)})})}verifyReview(ue,se){this.http.post(l.e.REVIEWS.SEND_VERIFICATION_REQUEST(),se).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.verifyReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}getVerificationForReview(ue,se){this.http.get(l.e.REVIEWS.GET_VERIFICATION_FOR_REVIEW(se)).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.getVerificationForReview(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}reconsiderVerification(ue,se){this.http.patch(l.e.REVIEWS.RECONSIDER_VERIFICATION(se),null).subscribe(te=>{this.eventBus.publish(ue,te)},te=>{this.handleError(te,oe=>{this.reconsiderVerification(ue,se)},oe=>{this.eventBus.publish(this.getErrorKey(ue),oe)})})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},1259:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>I});var e=C(2495),l=C(553),D=C(5879);class I extends e.O{constructor(){super()}static#e=this.CATEGORIES={SEARCH:w=>l.N.base_url+"/api/v1/public/categories"+e.O.toParamString(w),SAVE_INTERESTS:()=>l.N.base_url+"/api/v1/user-interests",FETCH_INTERESTS:()=>l.N.base_url+"/api/v1/user-interests/my-interests",FETCH_ATTRIBUTES:w=>l.N.base_url+"/api/v1/public/categories/attributes"+e.O.toParamString(w)};static#t=this.PRODUCTS={SEARCH:w=>l.N.base_url+"/api/v1/public/products"+e.O.toParamString(w),SEARCH_BRANDS:w=>l.N.base_url+"/api/v1/public/brands"+e.O.toParamString(w),GET_TOP_PRODUCTS:w=>l.N.base_url+"/api/v1/public/ratings/top-rated-products"+e.O.toParamString(w),GET_DETAILS:w=>l.N.base_url+"/api/v2/public/products/"+w};static#n=this.VENDORS={SEARCH:w=>l.N.base_url+"/api/v1/public/vendors"+e.O.toParamString(w)};static#i=this.ATTRIBUTES={GET_ATTRS_FOR_PRODUCT:(w,n)=>l.N.base_url+"/api/v1/public/products/"+w+"/attributes"+e.O.toParamString(n)};static#r=this.REVIEWS={FETCH_RECENT_REVIEW:w=>l.N.base_url+"/api/v1/public/reviews/recent-reviews"+e.O.toParamString(w),CREATE_REVIEW:w=>l.N.base_url+"/api/v1/reviews"+e.O.toParamString(w),UPDATE_REVIEW:(w,n)=>l.N.base_url+"/api/v1/reviews/"+w+e.O.toParamString(n),FETCH_MY_REVIEW:w=>l.N.base_url+"/api/v1/products/"+w+"/my-review",FETCH_REVIEW:(w,n)=>l.N.base_url+"/api/v2/public/"+w+"/reviews/"+n,FETCH_PRODUCT_REVIEWS:(w,n)=>l.N.base_url+"/api/v1/public/products/"+w+"/reviews"+e.O.toParamString(n),FETCH_USER_REVIEWS:(w,n)=>l.N.base_url+"/api/v1/public/users/"+w+"/reviews"+e.O.toParamString(n),FETCH_AVG_RATINGS:w=>l.N.base_url+"/api/v1/public/products/"+w+"/avg_ratings",SEND_VERIFICATION_REQUEST:()=>l.N.base_url+"/api/v1/review-verifications",GET_VERIFICATION_FOR_REVIEW:w=>l.N.base_url+"/api/v1/public/reviews/"+w+"/verification",RECONSIDER_VERIFICATION:w=>l.N.base_url+"/api/v1/review-verifications/"+w+"/apply-for-reconsideration"};static#o=this.POSTS={FETCH_COMMENTS:(w,n)=>l.N.base_url+"/api/v1/social/posts/"+w+"/comments"+e.O.toParamString(n),SUBMIT_POST:()=>l.N.base_url+"/api/v1/social/posts",UPDATE_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,DELETE_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,REACT_TO_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w+"/reactions",FETCH_NEWS_FEED_POSTS:w=>l.N.base_url+"/api/v1/social/posts"+e.O.toParamString(w),FETCH_POST:w=>l.N.base_url+"/api/v1/social/posts/"+w,FETCH_POST_REACTIONS:(w,n)=>l.N.base_url+"/api/v1/social/posts/"+w+"/reactions"+e.O.toParamString(n),FETCH_REACTIONS:w=>l.N.base_url+"/api/v1/social/reactions"+e.O.toParamString(w),FETCH_USER_POSTS:(w,n)=>l.N.base_url+"/api/v1/public/social/users/"+w+"/posts"+e.O.toParamString(n),FETCH_TRENDING_TAGS:w=>l.N.base_url+"/api/v1/public/social/posts/trending-tags"+e.O.toParamString(w),POST_REVIEW_REPORT:()=>l.N.base_url+"/api/v1/report-reviews",GET_REPORT_DETAILS_FOR_POST:w=>l.N.base_url+"/api/v1/report-reviews/my-reports/for-post/"+w,GET_REPORT_COUNT_FOR_POST:w=>l.N.base_url+"/api/v1/report-reviews/my-reports/for-post/"+w+"/count"};static#s=this.NOTIFICATIONS={COUNT_UNREAD:w=>l.N.base_url+"/api/v1/notifications/unread/count"+e.O.toParamString(w),MARK_READ:w=>l.N.base_url+"/api/v1/notifications/mark-read"+e.O.toParamString(w),FETCH_MY_NOTIFICATIONS:w=>l.N.base_url+"/api/v1/my-notifications"+e.O.toParamString(w),DELETE:()=>l.N.base_url+"/api/v1/notifications/"};static#a=this.LEADERBOARDS={FETCH_LEADERBOARD:w=>l.N.base_url+"/api/v1/leaderboards/"+w+"/leaderboard",REDEEM:()=>l.N.base_url+"/api/v1/redeems",FETCH_RECENT_ACHIEVEMENTS:w=>l.N.base_url+"/api/v1/public/latest-achievements"+e.O.toParamString(w)};static#l=this.WALLET={FETCH_MY_WALLET:w=>l.N.base_url+"/api/v1/my-wallet"+e.O.toParamString(w),FETCH_USER_WALLET:(w,n)=>l.N.base_url+"/api/v1/admin/wallets/user-wallet/"+w+"/"+e.O.toParamString(n)};static#c=this.USER={FETCH_FOLLOW_STATS:w=>l.N.base_url+"/api/v1/follows/"+w+"/stats",FOLLOW_A_USER:w=>l.N.base_url+"/api/v1/follows/follow/"+w,UNFOLLOW_A_USER:w=>l.N.base_url+"/api/v1/follows/unfollow/"+w,GET_MY_FOLLOWERS:()=>l.N.base_url+"/api/v1/follows/my-followers",GET_MY_FOLLOWING:()=>l.N.base_url+"/api/v1/follows/following",GET_MY_PROFILE:()=>l.N.base_url+"/api/v1/my-profile",UPDATE_MY_PROFILE:()=>l.N.base_url+"/api/v1/my-profile",DELETE_ME:()=>l.N.base_url+"/api/v1/users/delete-me",SEARCH:w=>l.N.base_url+"/api/v1/admin/users"+e.O.toParamString(w)};static#d=this.ACTIVITY_LOGS={ADMIN_SEARCH:w=>l.N.base_url+"/api/v1/admin/activity-logs"+e.O.toParamString(w)};static#u=this.REQUEST_CREDENTIALS={ADMIN_SEARCH_LOCKOUTS:w=>l.N.base_url+"/api/v1/admin/request-credentials/lockouts"+e.O.toParamString(w)};static#h=this.QUESTIONNAIRES={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/questionnaires",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/questionnaires",SEARCH:(w,n)=>w+e.O.toParamString(n),GET_DETAILS:w=>l.N.base_url+"/api/v1/questionnaires/"+w,DELETE:()=>l.N.base_url+"/api/v1/questionnaires/",CREATE:()=>l.N.base_url+"/api/v1/questionnaires",UPDATE:w=>l.N.base_url+"/api/v1/questionnaires/"+w,TOGGLE_APPROVAL:(w,n)=>l.N.base_url+"/api/v1/questionnaires/"+w+"/toggle-approval"+e.O.toParamString(n),RESULT_SHEET:w=>l.N.base_url+"/api/v1/questionnaires/"+w+"/result-sheet"};static#f=this.POLLS={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/polls",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/polls",SEARCH:(w,n)=>w+e.O.toParamString(n),GET_DETAILS:w=>l.N.base_url+"/api/v1/polls/"+w,CREATE:()=>l.N.base_url+"/api/v1/polls",DELETE:()=>l.N.base_url+"/api/v1/polls/",UPDATE:w=>l.N.base_url+"/api/v1/polls/"+w};static#p=this.VOTES={SEARCH:w=>l.N.base_url+"/api/v1/admin/votes"+e.O.toParamString(w),FETCH_USER_VOTE_STATS:w=>l.N.base_url+"/api/v1/admin/votes/user-vote-count-stats"+e.O.toParamString(w),FETCH_POLL_VOTE_STATS:w=>l.N.base_url+"/api/v1/admin/votes/poll-vote-count-stats"+e.O.toParamString(w)};static#_=this.POLL_STATISTICS={OVERVIEW_STATS_ENDPOINT:l.N.base_url+"/api/v1/poll-stats/overview",OVERVIEW_STATS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-stats/overview",DATE_WISE_POLL_COUNTS_ENDPOINT:l.N.base_url+"/api/v1/poll-stats/date-wise-poll-counts",DATE_WISE_POLL_COUNTS_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/poll-stats/date-wise-poll-counts",OVERVIEW_STATS:(w,n)=>w+e.O.toParamString(n),DATE_WISE_POLL_COUNTS:(w,n)=>w+e.O.toParamString(n)};static#m=this.POLL_OPTIONS={SEARCH:w=>l.N.base_url+"/api/v1/poll-options"+e.O.toParamString(w),CREATE:()=>l.N.base_url+"/api/v1/poll-options",DELETE:()=>l.N.base_url+"/api/v1/poll-options/",UPDATE:w=>l.N.base_url+"/api/v1/poll-options/"+w};static#g=this.LABELS={SEARCH_ENDPOINT:l.N.base_url+"/api/v1/labels",SEARCH_ENDPOINT_FOR_POLLBOX:l.N.base_url+"/api/v1/public/labels/POLLBOX/children",SEARCH_ENDPOINT_ADMIN:l.N.base_url+"/api/v1/admin/labels",SEARCH:(w,n)=>w+e.O.toParamString(n),CREATE:()=>l.N.base_url+"/api/v1/labels",UPDATE:w=>l.N.base_url+"/api/v1/labels/"+w};static#v=this.\u0275fac=function(n){return new(n||I)};static#b=this.\u0275prov=D.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}},9310:(ft,Ie,C)=>{"use strict";C.r(Ie),C.d(Ie,{WebAppModule:()=>Id});var e=C(6814),l=C(1662),D=C(2177),I=C(8637),S=C(7259),w=C(7613),n=C(5879),Z=C(6223),ee=function(F){return F.RATING="RATING",F.PROVOKE_REVIEW="PROVOKE_REVIEW",F.REVIEW="REVIEW",F.PROVOKE_IMAGE_UPLOAD="PROVOKE_IMAGE_UPLOAD",F.IMAGE_UPLOAD="IMAGE_UPLOAD",F.FINISHED_DIALOG="FINISHED_DIALOG",F.SUBMIT_ERROR="SUBMIT_ERROR",F}(ee||{}),re=C(30),ue=C(6945),se=C(9491),te=C(5462),oe=C(8214),ce=C(2951),_e=C(8480),Re=C(7700),mt=C(2296),Ge=C(4736);function Lt(F,Xe){if(1&F&&n._UZ(0,"img",5),2&F){const g=n.oxw();n.s9C("src",g.img,n.LSH)}}function je(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",10)(1,"button",11),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onBtnClick(!1))}),n._uU(2),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(2),n.Oqu(g.negativeBtnTxt)}}function Tt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"a",12),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onBtnClick(!0))}),n._uU(1),n.qZA()}if(2&F){const g=n.oxw(2);n.xp6(1),n.Oqu(g.positiveBtnText)}}function xt(F,Xe){if(1&F&&(n.TgZ(0,"section",6)(1,"div",7),n.YNc(2,je,3,1,"div",8),n.YNc(3,Tt,2,1,"a",9),n.qZA()()),2&F){const g=n.oxw();n.xp6(2),n.Q6J("ngIf",null!=g.negativeBtnTxt),n.xp6(1),n.Q6J("ngIf",null!=g.positiveBtnText)}}let St=(()=>{class F{constructor(){this.step=2,this.img=null,this.title="",this.message="",this.positiveBtnText=null,this.negativeBtnTxt=null,this.titleColor="#44d62c",this.msgColor="#FFFFFF",this.onPositiveBtn=new n.vpe,this.onNegativeBtn=new n.vpe}ngOnInit(){}onBtnClick(g){g?this.onPositiveBtn.emit():this.onNegativeBtn.emit()}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-notice-view"]],inputs:{step:"step",img:"img",title:"title",message:"message",positiveBtnText:"positiveBtnText",negativeBtnTxt:"negativeBtnTxt",titleColor:"titleColor",msgColor:"msgColor"},outputs:{onPositiveBtn:"onPositiveBtn",onNegativeBtn:"onNegativeBtn"},decls:10,vars:10,consts:[[1,"notification-area","review-rdi","pb-4"],[1,"notify-image-area","text-center"],["alt","describe img","class","img-scale-half",3,"src",4,"ngIf"],[1,"notify-content"],["class","call-to-ac-area review-ro pb-3",4,"ngIf"],["alt","describe img",1,"img-scale-half",3,"src"],[1,"call-to-ac-area","review-ro","pb-3"],[1,"container","d-flex","justify-content-around","align-items-center"],["class","skip-btn",4,"ngIf"],["class","boxed-btn",3,"click",4,"ngIf"],[1,"skip-btn"],[3,"click"],[1,"boxed-btn",3,"click"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1),n.YNc(2,Lt,1,1,"img",2),n.TgZ(3,"p"),n._uU(4),n.qZA()(),n.TgZ(5,"div",3),n._UZ(6,"h2"),n.TgZ(7,"p"),n._uU(8),n.qZA()()(),n.YNc(9,xt,4,2,"section",4)),2&L&&(n.xp6(2),n.Q6J("ngIf",null!=R.img),n.xp6(1),n.Jzz("color: ",R.titleColor,";"),n.xp6(1),n.Oqu(R.title),n.xp6(3),n.Jzz("color: ",R.msgColor,";"),n.xp6(1),n.Oqu(R.message),n.xp6(1),n.Q6J("ngIf",null!=R.positiveBtnText||null!=R.negativeBtnTxt))},dependencies:[e.O5],styles:['@charset "UTF-8";.img-scale-half[_ngcontent-%COMP%]{transform:scale(.5);filter:progid:DXImageTransform.Microsoft.Matrix(M11=.9999619230641713,M12=-.008726535498373935,M21=.008726535498373935,M22=.9999619230641713,SizingMethod="auto expand")}']})}return F})();function Zt(F,Xe){1&F&&n._UZ(0,"util-progress",10),2&F&&n.Q6J("padding",50)}function yt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",21)(1,"div",22)(2,"div",23)(3,"button",24),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.updateRating(!0,ye.id))}),n._UZ(4,"i",25),n.qZA(),n._UZ(5,"input",26),n.TgZ(6,"button",24),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.updateRating(!1,ye.id))}),n._UZ(7,"i",27),n.qZA()(),n.TgZ(8,"p"),n._UZ(9,"i",28),n.qZA(),n.TgZ(10,"h5"),n._uU(11),n.qZA()()()}if(2&F){const g=Xe.$implicit;n.xp6(5),n.Q6J("formControlName",g.id),n.xp6(6),n.Oqu(g.name)}}function un(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",11)(1,"div",12)(2,"div",13)(3,"div",14)(4,"div",15)(5,"div",16)(6,"h5",17),n._uU(7,"AVG RATING"),n.qZA(),n.TgZ(8,"h2"),n._uU(9),n.qZA()()(),n.YNc(10,yt,12,2,"div",18),n.qZA()(),n.TgZ(11,"button",19),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("PROVOKE_REVIEW"))}),n._UZ(12,"i",20),n._uU(13," done "),n.qZA()()()}if(2&F){const g=n.oxw(3);n.xp6(9),n.Oqu(g.calculateAverageRating()),n.xp6(1),n.Q6J("ngForOf",g.attrs)}}function Jt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notice-view",29),n.NdJ("onPositiveBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("REVIEW"))})("onNegativeBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n.qZA()}2&F&&n.Q6J("img","assets/img/review-rating-only-images/reviews.png")("title","You can earn 3 more points!")("message","If you write your experience and thought about this product in short, you can earn 5 more points. This will take just a minute.")("positiveBtnText","ADD REVIEW")("negativeBtnTxt","JUST SUBMIT RATING")}function tn(F,Xe){if(1&F&&(n.TgZ(0,"div",58)(1,"h5"),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",39),n.qZA()()),2&F){const g=Xe.$implicit,L=n.oxw(4);n.xp6(2),n.Oqu(g.name),n.xp6(2),n.Oqu(L.getRatingForAttr(g.id))}}function wn(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Name must be at least 4 characters!"),n.qZA()())}function Ln(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Must not be empty or above 511 characters"),n.qZA()())}function Yn(F,Xe){1&F&&(n.TgZ(0,"div",59)(1,"span"),n._uU(2,"Must not be empty or above 511 characters"),n.qZA()())}function ti(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"header",30)(2,"div",31)(3,"div",32)(4,"h2"),n._uU(5,"Your Ratings"),n.qZA()(),n.TgZ(6,"div",33)(7,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.editRating())}),n._UZ(8,"i",35),n._uU(9," edit"),n.qZA()()()(),n.TgZ(10,"section",36)(11,"div",37)(12,"div",38)(13,"div",16)(14,"h5"),n._uU(15,"Avg Rating"),n.qZA(),n.TgZ(16,"p"),n._uU(17),n._UZ(18,"i",39),n.qZA()(),n.YNc(19,tn,6,2,"div",40),n.qZA()()(),n.TgZ(20,"div",41)(21,"div",37)(22,"div",42)(23,"h4",17),n._uU(24,"REVIEW TITLE"),n.qZA(),n.TgZ(25,"div",43)(26,"div",44)(27,"label",45),n._uU(28,"A nice title makes your review interesting."),n.qZA(),n._UZ(29,"textarea",46),n.qZA()(),n.YNc(30,wn,3,0,"div",47),n.qZA(),n.TgZ(31,"div",48)(32,"h4",17),n._uU(33,"POSITIVE EXPERIENCE"),n.qZA(),n.TgZ(34,"div",43)(35,"div",44)(36,"label",49),n._uU(37,"Write your positive experience with this item."),n.qZA(),n._UZ(38,"textarea",50),n.qZA()(),n.YNc(39,Ln,3,0,"div",47),n.qZA(),n.TgZ(40,"div",51)(41,"h4",17),n._uU(42,"NEGATIVE EXPERIENCE"),n.qZA(),n.TgZ(43,"div",52)(44,"div",44)(45,"label",53),n._uU(46,"If you had any negative experience with this item, please feel free to mention here"),n.qZA(),n._UZ(47,"textarea",54),n.qZA()(),n.YNc(48,Yn,3,0,"div",47),n.qZA(),n.TgZ(49,"div",55)(50,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.prevStep("PROVOKE_REVIEW"))}),n._uU(51,"BACK"),n.qZA(),n._uU(52,"\xa0\xa0 "),n.TgZ(53,"button",56),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("PROVOKE_IMAGE_UPLOAD"))}),n._UZ(54,"i",57),n._uU(55," SUBMIT "),n.qZA()()()()()}if(2&F){const g=n.oxw(3);n.xp6(17),n.Oqu(g.calculateAverageRating()),n.xp6(2),n.Q6J("ngForOf",g.attrs),n.xp6(11),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.title)),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.pros)),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.postReviewForm.controls.cons)),n.xp6(5),n.Q6J("disabled",g.postReviewForm.invalid)}}function gi(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notice-view",29),n.NdJ("onPositiveBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.nextStep("IMAGE_UPLOAD"))})("onNegativeBtn",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n.qZA()}2&F&&n.Q6J("img","assets/img/review-r-d-page/describe.png")("title","Wonderful! want 5 more points?")("message","Adding an image with your review makes it more attractive and trustworthy. You'll get 5 more points and also a chance to verify your review.")("positiveBtnText","UPLOAD")("negativeBtnTxt","JUST SUBMIT")}function Rn(F,Xe){if(1&F&&(n.TgZ(0,"div",58)(1,"h5"),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",39),n.qZA()()),2&F){const g=Xe.$implicit,L=n.oxw(4);n.xp6(2),n.Oqu(g.name),n.xp6(2),n.Oqu(L.getRatingForAttr(g.id))}}function dt(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",67),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.removeExImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit,n.LSH)}function at(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",67),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(4);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Be(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"header",30)(2,"div",31)(3,"div",32)(4,"h2"),n._uU(5,"Your Ratings"),n.qZA()(),n.TgZ(6,"div",33)(7,"button",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.editRating())}),n._UZ(8,"i",35),n._uU(9," edit"),n.qZA()()()(),n.TgZ(10,"section",36)(11,"div",37)(12,"div",38)(13,"div",16)(14,"h5"),n._uU(15,"Avg Rating"),n.qZA(),n.TgZ(16,"p"),n._uU(17),n._UZ(18,"i",39),n.qZA()(),n.YNc(19,Rn,6,2,"div",40),n.qZA()()(),n.TgZ(20,"section",60)(21,"div",37)(22,"h4",17),n._uU(23,"UPLOAD IMAGES"),n.qZA(),n.TgZ(24,"div",61)(25,"div"),n.YNc(26,dt,1,1,"img",62),n.YNc(27,at,1,1,"img",62),n.qZA(),n.TgZ(28,"label",63),n._UZ(29,"i",64),n.qZA(),n.TgZ(30,"input",65),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(3);return n.KtG(ye.onImageSelected(R))}),n.qZA()()(),n.TgZ(31,"div",55)(32,"button",66),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.initiatePostReview())}),n._UZ(33,"i",57),n._uU(34," finish "),n.qZA()()()()}if(2&F){const g=n.oxw(3);n.xp6(17),n.Oqu(g.calculateAverageRating()),n.xp6(2),n.Q6J("ngForOf",g.attrs),n.xp6(7),n.Q6J("ngForOf",g.review.thumbs),n.xp6(1),n.Q6J("ngForOf",g.uploadFiles)}}function Ee(F,Xe){if(1&F&&(n.TgZ(0,"form",7),n.YNc(1,Zt,1,1,"util-progress",8),n.YNc(2,un,14,2,"section",5),n.YNc(3,Jt,1,5,"app-notice-view",9),n.YNc(4,ti,56,6,"div",0),n.YNc(5,gi,1,5,"app-notice-view",9),n.YNc(6,Be,35,4,"div",0),n.qZA()),2&F){const g=n.oxw(2);n.Q6J("formGroup",g.postReviewForm),n.xp6(1),n.Q6J("ngIf",g.ratingLoading),n.xp6(1),n.Q6J("ngIf",g.isStep("RATING")&&!g.ratingLoading),n.xp6(1),n.Q6J("ngIf",g.isStep("PROVOKE_REVIEW")),n.xp6(1),n.Q6J("ngIf",g.isStep("REVIEW")),n.xp6(1),n.Q6J("ngIf",g.isStep("PROVOKE_IMAGE_UPLOAD")),n.xp6(1),n.Q6J("ngIf",g.isStep("IMAGE_UPLOAD"))}}function $e(F,Xe){if(1&F&&(n.TgZ(0,"section",11)(1,"div",37)(2,"div",68),n._UZ(3,"img",69),n.TgZ(4,"p"),n._uU(5),n.qZA()(),n.TgZ(6,"div",70),n._UZ(7,"util-progress",71)(8,"hr"),n.TgZ(9,"h2"),n._uU(10,"A pigeon is carrying your review to us. Give it a bit of time."),n.qZA(),n._UZ(11,"p"),n.qZA()()()),2&F){const g=n.oxw(2);n.xp6(5),n.Oqu(g.reviewSubmitMessage),n.xp6(2),n.Q6J("determinate",!0)("bar",!0)("determinateValue",g.reviewSubmitProgress)}}function me(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",72),2&F){const g=n.oxw(2);n.Q6J("img","assets/img/review-r-d-i-page/achievement.png")("title","Congratulations! You've earned "+g.review.weight+" points.")("message","Your review has been successfully submitted. We thank you for your contributions to help this community out. We love you for your effort.")}}function tt(F,Xe){if(1&F&&(n.TgZ(0,"mat-dialog-content")(1,"div",2),n._UZ(2,"i",3),n.qZA(),n.YNc(3,Ee,7,7,"form",4),n.YNc(4,$e,12,4,"section",5),n.YNc(5,me,1,3,"app-notice-view",6),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("ngIf",0===g.reviewSubmitProgress),n.xp6(1),n.Q6J("ngIf",g.reviewSubmitProgress>0&&g.reviewSubmitProgress<100),n.xp6(1),n.Q6J("ngIf",g.isStep("FINISHED_DIALOG")&&100===g.reviewSubmitProgress)}}function he(F,Xe){if(1&F&&(n.TgZ(0,"mat-dialog-content")(1,"div",2),n._UZ(2,"i",3),n.qZA(),n._UZ(3,"app-notice-view",73),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("img","assets/img/scenario-page-image/idea.png")("title","Something went wrong!")("message",g.errorMsg)("titleColor","#ff042f")}}function Ze(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",74)(1,"button",75),n._uU(2,"Close"),n.qZA()())}let rt=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R),this.reviewService=ye,this.notifier=Dt,this.fileUploadService=Mn,this.leaderboardService=vi,this.auth=Fo,this.productId=0,this.stepDoneNavigateTo=null,this.onReviewPosted=new n.vpe,this.step=ee.RATING,this.attrs=[],this.uploadFiles=[],this.ratingLoading=!0,this.reviewSubmitProgress=0,this.reviewSubmitMessage="Please wait..",this.review={id:null,photos:[],thumbs:[],title:"",pros:"",cons:"",content:"",product_id:0,product_slug:"",ratings:[],weight:null,posted_by_name:null,average_rating:null,created_at:null,updated_at:null,post:null,verification_status:null,verified_by:null,verification_reconsiderable:!1,chained:!1,hash:"",product_name:"",slug:""},this.errorMsg="",this.ratingsFormGroup=new Z.cw({}),this.postReviewForm=new Z.cw({title:new Z.NI(this.review.title,[Z.kI.required,Z.kI.minLength(4)]),pros:new Z.NI(this.review.pros,[Z.kI.required,Z.kI.maxLength(511)]),cons:new Z.NI(this.review.cons,[Z.kI.required,Z.kI.maxLength(511)]),ratings:this.ratingsFormGroup})}componentName(){return"PostReviewComponent"}ngOnInit(){this.initFormState(),this.loadAttrs()}initFormState(){this.postReviewForm.controls.title.setValue(this.review.title),this.postReviewForm.controls.pros.setValue(this.review.pros),this.postReviewForm.controls.cons.setValue(this.review.cons)}nextStep(g){let L=g;L===ee.PROVOKE_IMAGE_UPLOAD&&this.postReviewForm.invalid||(this.step=L,this.notifier.log(this.postReviewForm.value),null!=this.stepDoneNavigateTo&&this.navigateByUrl(this.stepDoneNavigateTo,R=>{}),this.notifier.log("Step "+L+" completed."),this.notifier.log("Step "+(L+1)+" started!"))}prevStep(g){this.step=g}loadAttrs(){let g=this.componentKey(S.Z.ATTRS.ATTR_FOR_PRODUCT_LOADED(this.productId));this.reviewService.loadReviewAttributes(g,this.productId),this.subscribe(g,null,(L,R)=>{this.attrs=R.data,this.initiateReviewForm(this.attrs),this.ratingLoading=!1})}initiateReviewForm(g){g.forEach(L=>{this.ratingsFormGroup.addControl(String(L.id),new Z.NI(this.findRatingForAttr(L.id),Z.kI.required))})}findRatingForAttr(g){let L=this.review.ratings.filter(R=>R.attr_id===g).map(R=>R.value);return 0===L.length?0:L[0]}updateRating(g,L){let R=this.ratingsFormGroup.controls[L].value;if(g){if(R>=10)return void this.ratingsFormGroup.controls[String(L)].setValue(10);this.ratingsFormGroup.controls[String(L)].setValue(++R)}else{if(R<=0)return void this.ratingsFormGroup.controls[String(L)].setValue(0);this.ratingsFormGroup.controls[String(L)].setValue(--R)}}editRating(){this.step=ee.RATING}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Mn=>{let vi=Mn.target?.result;null!=vi&&(R.previewUrl=vi,this.uploadFiles.push(R))}}}initiatePostReview(){if(this.uploadFiles.length>0)return this.progress(20,"Preparing images.."),void this.uploadImages();this.progress(20,"Submitting review.."),this.postReview()}uploadImages(){console.log("uploading images..");let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.productId+"-review-img"));this.fileUploadService.uploadImages(L,g),this.progress(30,"Uploading Images.."),this.subscribe(L,null,(R,ye)=>{let Dt=ye.data;Dt.map(Mn=>Mn.image_url).forEach(Mn=>{this.review.photos.push(Mn)}),Dt.map(Mn=>Mn.thumb_url).forEach(Mn=>{this.review.thumbs.push(Mn)}),this.postReview(),this.progress(50,"Preparing review..")})}progress(g,L){this.reviewSubmitProgress=g,this.reviewSubmitMessage=L}postReview(){this.review.product_id=this.productId,this.review.title=this.postReviewForm.controls.title.value||"",this.review.pros=this.postReviewForm.controls.pros.value||"",this.review.cons=this.postReviewForm.controls.cons.value||"",this.review.ratings=F.prepareRating(this.postReviewForm.value.ratings),this.notifier.log("Submitting review.."),this.submitReview(this.productId,this.review),this.progress(60,"Submitting review..")}submitReview(g,L){let R=this.componentKey(S.Z.REVIEWS.POST_REVIEW(g));null==L.id?this.reviewService.createReview(R,this.review):this.reviewService.updateReview(R,L.id,L),this.subscribe(R,null,(ye,Dt)=>{this.reviewSubmitProgress=100,this.review=Dt.data,this.notifier.log(this.review);let Mn=this.globalKey(S.Z.REVIEWS.MY_REVIEW_POSTED(this.productId));this.eventBus.publish(Mn,this.review),this.nextStep(ee.FINISHED_DIALOG),this.onReviewPosted.emit(this.review),this.fetchLeaderboard()}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{let Mn=Dt.data;403===Mn.status&&(this.nextStep(ee.SUBMIT_ERROR),this.errorMsg=Mn.error.message)})}static prepareRating(g){let L=[];for(let R in g)L.push({attr_id:parseInt(R),attr_name:"",value:g[R],id:null,created_at:null,updated_at:null});return L}calculateAverageRating(){let g=F.prepareRating(this.postReviewForm.value.ratings),L=g.map(ye=>ye.value);return 0==L.length?"0":(L.reduce((ye,Dt)=>ye+Dt)/g.length).toFixed(1)}isStep(g){return this.step===g}fetchLeaderboard(){let g=this.componentKey(S.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.leaderboardService.fetchLeaderboard(g,this.auth.getAuth().username),this.subscribe(g,null,(L,R)=>{let ye=R.data,Dt=this.globalKey(S.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.eventBus.publish(Dt,ye)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}removeExImage(g){let L=this.review.thumbs.indexOf(g);this.review.thumbs.splice(L),this.review.photos.splice(L)}getRatingForAttr(g){return this.ratingsFormGroup.controls[String(g)].value||0}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(te.l),n.Y36(oe.J),n.Y36(ce.S),n.Y36(_e.e))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-review"]],inputs:{productId:"productId",stepDoneNavigateTo:"stepDoneNavigateTo"},outputs:{onReviewPosted:"onReviewPosted"},features:[n.qOj],decls:3,vars:3,consts:[[4,"ngIf"],["align","end",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[3,"formGroup",4,"ngIf"],["class","blog-post-area review-rdo mt-4",4,"ngIf"],[3,"img","title","message",4,"ngIf"],[3,"formGroup"],[3,"padding",4,"ngIf"],[3,"img","title","message","positiveBtnText","negativeBtnTxt","onPositiveBtn","onNegativeBtn",4,"ngIf"],[3,"padding"],[1,"blog-post-area","review-rdo","mt-4"],["formGroupName","ratings",1,"container"],[1,"all-avarage-rating","py-2"],[1,"row","g-4"],[1,"col-12"],[1,"single-rating-star"],[1,"title"],["class","col-6",4,"ngFor","ngForOf"],[1,"boxed-btn","mt-4",3,"click"],[1,"flaticon-checked"],[1,"col-6"],[1,"single-rating-star","d-flex","align-items-center"],[1,"number-input"],[3,"click"],[1,"flaticon-up-arrow-angle"],["min","0","max","10","value","0","type","number",1,"quantity",3,"formControlName"],[1,"flaticon-down-arrow"],[1,"flaticon-star"],[3,"img","title","message","positiveBtnText","negativeBtnTxt","onPositiveBtn","onNegativeBtn"],[1,"header-area","review-rdi"],[1,"container","d-flex","justify-content-between","align-items-center"],[1,"header-left"],[1,"header-right"],[1,"edit-boxed-inline-btn",3,"click"],[1,"flaticon-pen"],[1,"blog-post-area","review-rdi","mt-2"],[1,"container"],[1,"all-avarage-rating","d-flex","py-2","scrollable"],[1,"flaticon-star-1"],["class","single-rating-star col-sm-3 single-rating-star-margin-left",4,"ngFor","ngForOf"],[1,"review-r-d-input-fields"],[1,"pros-area"],[1,"pros-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","title",1,"form-label"],["name","pros","id","title","rows","1","placeholder","Write title","formControlName","title",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"pros-area","mt-4"],["for","pros",1,"form-label"],["name","pros","id","pros","rows","3","placeholder","Write positive experience","formControlName","pros",1,"form-control"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],["for","cons",1,"form-label"],["name","cons","id","cons","rows","3","placeholder","Write negative experience","formControlName","cons",1,"form-control"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[1,"single-rating-star","col-sm-3","single-rating-star-margin-left"],[1,"text-warning"],[1,"upload-img-area","review-rdi","pt-4"],[1,"post-last-step-gallery"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],["type","submit",1,"boxed-btn",3,"click"],["alt","",1,"m-1",3,"src","click"],[1,"notify-image-area","text-center","py-4"],["src","../../../../../../assets/img/review-r-d-i-page/achievement.png","alt","describe img",1,"img-scale-half"],[1,"notify-content"],[3,"determinate","bar","determinateValue"],[3,"img","title","message"],[3,"img","title","message","titleColor"],["align","end"],["mat-button","","mat-dialog-close","","cdkfocusinitial",""]],template:function(L,R){1&L&&(n.YNc(0,tt,6,3,"mat-dialog-content",0),n.YNc(1,he,4,4,"mat-dialog-content",0),n.YNc(2,Ze,3,0,"mat-dialog-actions",1)),2&L&&(n.Q6J("ngIf",!R.isStep("SUBMIT_ERROR")),n.xp6(1),n.Q6J("ngIf",R.isStep("SUBMIT_ERROR")),n.xp6(1),n.Q6J("ngIf",R.isStep("FINISHED_DIALOG")&&100===R.reviewSubmitProgress))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.wV,Z.JJ,Z.JL,Z.qQ,Z.Fd,Z.sg,Z.u,Z.x0,Re.ZT,Re.xY,Re.H8,mt.lW,Ge.t,St],styles:['@charset "UTF-8";.title[_ngcontent-%COMP%]{color:#44d62c;margin:0}textarea[_ngcontent-%COMP%]{border:1px dotted #44d62c}.edit-boxed-inline-btn[_ngcontent-%COMP%]{font-size:13px;height:35px;width:100px}.scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.single-rating-star-margin-left[_ngcontent-%COMP%]{margin-left:20px}.autocomplete-input[_ngcontent-%COMP%]{width:100%}.img-scale-half[_ngcontent-%COMP%]{transform:scale(.5);filter:progid:DXImageTransform.Microsoft.Matrix(M11=.9999619230641713,M12=-.008726535498373935,M21=.008726535498373935,M22=.9999619230641713,SizingMethod="auto expand")}.upload-img-area[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:20px 0}.edit-boxed-inline-btn[_ngcontent-%COMP%]{height:auto}']})}return F})();var bt=C(8914),Nt=C(2739),Qt=C(2498),nn=C(6593),Dn=C(5159),Ot=function(F){return F.LIKE="LIKE",F.LOVE="LOVE",F.HAHA="HAHA",F.WOW="WOW",F.SAD="SAD",F.ANGRY="ANGRY",F}(Ot||{}),rn=C(1547),vn=C(1259),ei=C(9862);let Wn=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}fetchPosts(g,L){this.http.get(vn.e.POSTS.FETCH_NEWS_FEED_POSTS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchPosts(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchPost(g,L){this.http.get(vn.e.POSTS.FETCH_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchPost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchComments(g,L){this.http.get(vn.e.POSTS.FETCH_COMMENTS(L,{})).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchComments(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}submitPost(g,L){this.http.post(vn.e.POSTS.SUBMIT_POST(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.submitPost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}updatePost(g,L){null!=L.id&&this.http.patch(vn.e.POSTS.UPDATE_POST(L.id),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.updatePost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}deletePost(g,L){this.http.delete(vn.e.POSTS.DELETE_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.deletePost(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}react(g,L,R){this.http.post(vn.e.POSTS.REACT_TO_POST(L),{post_id:L,reaction_type:R}).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.react(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchPostReactions(g,L,R){this.http.get(vn.e.POSTS.FETCH_POST_REACTIONS(L,R)).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.fetchPostReactions(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchReactions(g,L){this.http.get(vn.e.POSTS.FETCH_REACTIONS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchReactions(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}fetchUserPosts(g,L,R){this.http.get(vn.e.POSTS.FETCH_USER_POSTS(L,R)).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.fetchUserPosts(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}fetchTrendingTags(g,L){this.http.get(vn.e.POSTS.FETCH_TRENDING_TAGS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();var Ve=C(3680),ct=C(8484),Ct=C(7131),Ce=C(4300),J=C(9388),ae=C(7394),Oe=C(8645),ot=C(2438),Se=C(2096),Ft=C(3019),lt=C(6232),Bt=C(5592),Ut=C(4825),fn=C(7921),gn=C(3997),An=C(9773),jn=C(8180),ai=C(4664),di=C(836),oi=C(2181),Jn=C(6825),qt=C(2605),_t=C(6672),G=C(2831),U=C(6028);function ve(F,Xe){}const Pe=function(F){return{animationDuration:F}},ut=function(F,Xe){return{value:F,params:Xe}};function We(F,Xe){1&F&&n.Hsn(0)}const ze=["*"],be=["tabListContainer"],Te=["tabList"],He=["tabListInner"],Wt=["nextPaginator"],Pn=["previousPaginator"],wt=["tabBodyWrapper"],Yt=["tabHeader"];function fe(F,Xe){}function Mt(F,Xe){if(1&F&&n.YNc(0,fe,0,0,"ng-template",14),2&F){const g=n.oxw().$implicit;n.Q6J("cdkPortalOutlet",g.templateLabel)}}function Vt(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw().$implicit;n.Oqu(g.textLabel)}}function ht(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6,7),n.NdJ("click",function(){const R=n.CHM(g),ye=R.$implicit,Dt=R.index,Mn=n.oxw(),vi=n.MAs(1);return n.KtG(Mn._handleClick(ye,vi,Dt))})("cdkFocusChange",function(R){const Dt=n.CHM(g).index,Mn=n.oxw();return n.KtG(Mn._tabFocusChanged(R,Dt))}),n._UZ(2,"span",8)(3,"div",9),n.TgZ(4,"span",10)(5,"span",11),n.YNc(6,Mt,1,1,"ng-template",12),n.YNc(7,Vt,1,1,"ng-template",null,13,n.W1O),n.qZA()()()}if(2&F){const g=Xe.$implicit,L=Xe.index,R=n.MAs(1),ye=n.MAs(8),Dt=n.oxw();n.ekj("mdc-tab--active",Dt.selectedIndex===L),n.Q6J("id",Dt._getTabLabelId(L))("ngClass",g.labelClass)("disabled",g.disabled)("fitInkBarToContent",Dt.fitInkBarToContent),n.uIk("tabIndex",Dt._getTabIndex(L))("aria-posinset",L+1)("aria-setsize",Dt._tabs.length)("aria-controls",Dt._getTabContentId(L))("aria-selected",Dt.selectedIndex===L)("aria-label",g.ariaLabel||null)("aria-labelledby",!g.ariaLabel&&g.ariaLabelledby?g.ariaLabelledby:null),n.xp6(3),n.Q6J("matRippleTrigger",R)("matRippleDisabled",g.disabled||Dt.disableRipple),n.xp6(3),n.Q6J("ngIf",g.templateLabel)("ngIfElse",ye)}}function st(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-tab-body",15),n.NdJ("_onCentered",function(){n.CHM(g);const R=n.oxw();return n.KtG(R._removeTabBodyWrapperHeight())})("_onCentering",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye._setTabBodyWrapperHeight(R))}),n.qZA()}if(2&F){const g=Xe.$implicit,L=Xe.index,R=n.oxw();n.ekj("mat-mdc-tab-body-active",R.selectedIndex===L),n.Q6J("id",R._getTabContentId(L))("ngClass",g.bodyClass)("content",g.content)("position",g.position)("origin",g.origin)("animationDuration",R.animationDuration)("preserveContent",R.preserveContent),n.uIk("tabindex",null!=R.contentTabIndex&&R.selectedIndex===L?R.contentTabIndex:null)("aria-labelledby",R._getTabLabelId(L))("aria-hidden",R.selectedIndex!==L)}}const _n={translateTab:(0,Jn.X$)("translateTab",[(0,Jn.SB)("center, void, left-origin-center, right-origin-center",(0,Jn.oB)({transform:"none"})),(0,Jn.SB)("left",(0,Jn.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Jn.SB)("right",(0,Jn.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Jn.eR)("* => left, * => right, left => center, right => center",(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Jn.eR)("void => left-origin-center",[(0,Jn.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Jn.eR)("void => right-origin-center",[(0,Jn.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Jn.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let En=(()=>{class F extends ct.Pl{constructor(g,L,R,ye){super(g,L,ye),this._host=R,this._centeringSub=ae.w0.EMPTY,this._leavingSub=ae.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,fn.O)(this._host._isCenterPosition(this._host._position))).subscribe(g=>{g&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n._Vd),n.Y36(n.s_b),n.Y36((0,n.Gpc)(()=>ni)),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabBodyHost",""]],features:[n.qOj]})}return F})(),On=(()=>{class F{set position(g){this._positionIndex=g,this._computePositionAnimationState()}constructor(g,L,R){this._elementRef=g,this._dir=L,this._dirChangeSubscription=ae.w0.EMPTY,this._translateTabComplete=new Oe.x,this._onCentering=new n.vpe,this._beforeCentering=new n.vpe,this._afterLeavingCenter=new n.vpe,this._onCentered=new n.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,L&&(this._dirChangeSubscription=L.change.subscribe(ye=>{this._computePositionAnimationState(ye),R.markForCheck()})),this._translateTabComplete.pipe((0,gn.x)((ye,Dt)=>ye.fromState===Dt.fromState&&ye.toState===Dt.toState)).subscribe(ye=>{this._isCenterPosition(ye.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ye.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(g){const L=this._isCenterPosition(g.toState);this._beforeCentering.emit(L),L&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(g){return"center"==g||"left-origin-center"==g||"right-origin-center"==g}_computePositionAnimationState(g=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==g?"left":"right":this._positionIndex>0?"ltr"==g?"right":"left":"center"}_computePositionFromOrigin(g){const L=this._getLayoutDirection();return"ltr"==L&&g<=0||"rtl"==L&&g>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(J.Is,8),n.Y36(n.sBO))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}})}return F})(),ni=(()=>{class F extends On{constructor(g,L,R){super(g,L,R)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(J.Is,8),n.Y36(n.sBO))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-body"]],viewQuery:function(L,R){if(1&L&&n.Gf(ct.Pl,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R._portalHost=ye.first)}},hostAttrs:[1,"mat-mdc-tab-body"],features:[n.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0,1),n.NdJ("@translateTab.start",function(Dt){return R._onTranslateTabStarted(Dt)})("@translateTab.done",function(Dt){return R._translateTabComplete.next(Dt)}),n.YNc(2,ve,0,0,"ng-template",2),n.qZA()),2&L&&n.Q6J("@translateTab",n.WLB(3,ut,R._position,n.VKq(1,Pe,R.animationDuration)))},dependencies:[En],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[_n.translateTab]}})}return F})();const Vn=new n.OlP("MatTabContent");let fr=(()=>{class F{constructor(g){this.template=g}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.Rgc))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabContent",""]],features:[n._Bn([{provide:Vn,useExisting:F}])]})}return F})();const ki=new n.OlP("MatTabLabel"),Kr=new n.OlP("MAT_TAB");let vr=(()=>{class F extends ct.ig{constructor(g,L,R){super(g,L),this._closestTab=R}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(Kr,8))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[n._Bn([{provide:ki,useExisting:F}]),n.qOj]})}return F})();const Bi="mdc-tab-indicator--active",co="mdc-tab-indicator--no-transition";class Ji{constructor(Xe){this._items=Xe}hide(){this._items.forEach(Xe=>Xe.deactivateInkBar())}alignToElement(Xe){const g=this._items.find(R=>R.elementRef.nativeElement===Xe),L=this._currentItem;if(g!==L&&(L?.deactivateInkBar(),g)){const R=L?.elementRef.nativeElement.getBoundingClientRect?.();g.activateInkBar(R),this._currentItem=g}}}function tr(F){return class extends F{constructor(...Xe){super(...Xe),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(Xe){const g=(0,qt.Ig)(Xe);this._fitToContent!==g&&(this._fitToContent=g,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(Xe){const g=this.elementRef.nativeElement;if(!Xe||!g.getBoundingClientRect||!this._inkBarContentElement)return void g.classList.add(Bi);const L=g.getBoundingClientRect(),R=Xe.width/L.width,ye=Xe.left-L.left;g.classList.add(co),this._inkBarContentElement.style.setProperty("transform",`translateX(${ye}px) scaleX(${R})`),g.getBoundingClientRect(),g.classList.remove(co),g.classList.add(Bi),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(Bi)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const Xe=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=Xe.createElement("span"),this._inkBarContentElement=Xe.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const pr=(0,Ve.Id)(class{}),$n=tr((()=>{class F extends pr{constructor(g){super(),this.elementRef=g}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq))};static#t=this.\u0275dir=n.lG2({type:F,features:[n.qOj]})}return F})());let yo=(()=>{class F extends $n{static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(L,R){2&L&&(n.uIk("aria-disabled",!!R.disabled),n.ekj("mat-mdc-tab-disabled",R.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[n.qOj]})}return F})();const Fr=(0,Ve.Id)(class{}),uo=new n.OlP("MAT_TAB_GROUP");let ho=(()=>{class F extends Fr{get content(){return this._contentPortal}constructor(g,L){super(),this._viewContainerRef=g,this._closestTabGroup=L,this.textLabel="",this._contentPortal=null,this._stateChanges=new Oe.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(g){(g.hasOwnProperty("textLabel")||g.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new ct.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(g){g&&g._closestTab===this&&(this._templateLabel=g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.s_b),n.Y36(uo,8))};static#t=this.\u0275dir=n.lG2({type:F,viewQuery:function(L,R){if(1&L&&n.Gf(n.Rgc,7),2&L){let ye;n.iGM(ye=n.CRH())&&(R._implicitContent=ye.first)}},inputs:{textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},features:[n.qOj,n.TTD]})}return F})(),to=(()=>{class F extends ho{constructor(){super(...arguments),this._explicitContent=void 0}get templateLabel(){return this._templateLabel}set templateLabel(g){this._setTemplateLabelInput(g)}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab"]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,fr,7,n.Rgc),n.Suo(ye,vr,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._explicitContent=Dt.first),n.iGM(Dt=n.CRH())&&(R.templateLabel=Dt.first)}},inputs:{disabled:"disabled"},exportAs:["matTab"],features:[n._Bn([{provide:Kr,useExisting:F}]),n.qOj],ngContentSelectors:ze,decls:1,vars:0,template:function(L,R){1&L&&(n.F$t(),n.YNc(0,We,1,0,"ng-template"))},encapsulation:2})}return F})();const yr=(0,G.i$)({passive:!0});let xl=(()=>{class F{get disablePagination(){return this._disablePagination}set disablePagination(g){this._disablePagination=(0,qt.Ig)(g)}get selectedIndex(){return this._selectedIndex}set selectedIndex(g){g=(0,qt.su)(g),this._selectedIndex!=g&&(this._selectedIndexChanged=!0,this._selectedIndex=g,this._keyManager&&this._keyManager.updateActiveItem(g))}constructor(g,L,R,ye,Dt,Mn,vi){this._elementRef=g,this._changeDetectorRef=L,this._viewportRuler=R,this._dir=ye,this._ngZone=Dt,this._platform=Mn,this._animationMode=vi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Oe.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Oe.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new n.vpe,this.indexFocused=new n.vpe,Dt.runOutsideAngular(()=>{(0,ot.R)(g.nativeElement,"mouseleave").pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,ot.R)(this._previousPaginator.nativeElement,"touchstart",yr).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,ot.R)(this._nextPaginator.nativeElement,"touchstart",yr).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const g=this._dir?this._dir.change:(0,Se.of)("ltr"),L=this._viewportRuler.change(150),R=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ce.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,jn.q)(1)).subscribe(R),(0,Ft.T)(g,L,this._items.changes,this._itemsResized()).pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),R()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(ye=>{this.indexFocused.emit(ye),this._setTabFocus(ye)})}_itemsResized(){return"function"!=typeof ResizeObserver?lt.E:this._items.changes.pipe((0,fn.O)(this._items),(0,ai.w)(g=>new Bt.y(L=>this._ngZone.runOutsideAngular(()=>{const R=new ResizeObserver(ye=>L.next(ye));return g.forEach(ye=>R.observe(ye.elementRef.nativeElement)),()=>{R.disconnect()}}))),(0,di.T)(1),(0,oi.h)(g=>g.some(L=>L.contentRect.width>0&&L.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(g){if(!(0,U.Vb)(g))switch(g.keyCode){case U.K5:case U.L_:if(this.focusIndex!==this.selectedIndex){const L=this._items.get(this.focusIndex);L&&!L.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(g))}break;default:this._keyManager.onKeydown(g)}}_onContentChanges(){const g=this._elementRef.nativeElement.textContent;g!==this._currentTextContent&&(this._currentTextContent=g||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(g){!this._isValidIndex(g)||this.focusIndex===g||!this._keyManager||this._keyManager.setActiveItem(g)}_isValidIndex(g){return!this._items||!!this._items.toArray()[g]}_setTabFocus(g){if(this._showPaginationControls&&this._scrollToLabel(g),this._items&&this._items.length){this._items.toArray()[g].focus();const L=this._tabListContainer.nativeElement;L.scrollLeft="ltr"==this._getLayoutDirection()?0:L.scrollWidth-L.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const g=this.scrollDistance,L="ltr"===this._getLayoutDirection()?-g:g;this._tabList.nativeElement.style.transform=`translateX(${Math.round(L)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(g){this._scrollTo(g)}_scrollHeader(g){return this._scrollTo(this._scrollDistance+("before"==g?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(g){this._stopInterval(),this._scrollHeader(g)}_scrollToLabel(g){if(this.disablePagination)return;const L=this._items?this._items.toArray()[g]:null;if(!L)return;const R=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ye,offsetWidth:Dt}=L.elementRef.nativeElement;let Mn,vi;"ltr"==this._getLayoutDirection()?(Mn=ye,vi=Mn+Dt):(vi=this._tabListInner.nativeElement.offsetWidth-ye,Mn=vi-Dt);const Fo=this.scrollDistance,Ya=this.scrollDistance+R;MnYa&&(this.scrollDistance+=Math.min(vi-Ya,Mn-Fo))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const g=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;g||(this.scrollDistance=0),g!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=g}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const g=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,L=g?g.elementRef.nativeElement:null;L?this._inkBar.alignToElement(L):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(g,L){L&&null!=L.button&&0!==L.button||(this._stopInterval(),(0,Ut.H)(650,100).pipe((0,An.R)((0,Ft.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:R,distance:ye}=this._scrollHeader(g);(0===ye||ye>=R)&&this._stopInterval()}))}_scrollTo(g){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const L=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(L,g)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:L,distance:this._scrollDistance}}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{disablePagination:"disablePagination"}})}return F})(),So=(()=>{class F extends xl{get disableRipple(){return this._disableRipple}set disableRipple(g){this._disableRipple=(0,qt.Ig)(g)}constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,ye,Dt,Mn,vi),this._disableRipple=!1}_itemSelected(g){g.preventDefault()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{disableRipple:"disableRipple"},features:[n.qOj]})}return F})(),Ws=(()=>{class F extends So{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,ye,Dt,Mn,vi)}ngAfterContentInit(){this._inkBar=new Ji(this._items),super.ngAfterContentInit()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(_t.rL),n.Y36(J.Is,8),n.Y36(n.R0b),n.Y36(G.t4),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-header"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,yo,4),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._items=Dt)}},viewQuery:function(L,R){if(1&L&&(n.Gf(be,7),n.Gf(Te,7),n.Gf(He,7),n.Gf(Wt,5),n.Gf(Pn,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R._tabListContainer=ye.first),n.iGM(ye=n.CRH())&&(R._tabList=ye.first),n.iGM(ye=n.CRH())&&(R._tabListInner=ye.first),n.iGM(ye=n.CRH())&&(R._nextPaginator=ye.first),n.iGM(ye=n.CRH())&&(R._previousPaginator=ye.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(L,R){2&L&&n.ekj("mat-mdc-tab-header-pagination-controls-enabled",R._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==R._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[n.qOj],ngContentSelectors:ze,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"button",0,1),n.NdJ("click",function(){return R._handlePaginatorClick("before")})("mousedown",function(Dt){return R._handlePaginatorPress("before",Dt)})("touchend",function(){return R._stopInterval()}),n._UZ(2,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),n.TgZ(5,"div",5,6),n.NdJ("cdkObserveContent",function(){return R._onContentChanges()}),n.TgZ(7,"div",7,8),n.Hsn(9),n.qZA()()(),n.TgZ(10,"button",9,10),n.NdJ("mousedown",function(Dt){return R._handlePaginatorPress("after",Dt)})("click",function(){return R._handlePaginatorClick("after")})("touchend",function(){return R._stopInterval()}),n._UZ(12,"div",2),n.qZA()),2&L&&(n.ekj("mat-mdc-tab-header-pagination-disabled",R._disableScrollBefore),n.Q6J("matRippleDisabled",R._disableScrollBefore||R.disableRipple)("disabled",R._disableScrollBefore||null),n.xp6(3),n.ekj("_mat-animation-noopable","NoopAnimations"===R._animationMode),n.xp6(7),n.ekj("mat-mdc-tab-header-pagination-disabled",R._disableScrollAfter),n.Q6J("matRippleDisabled",R._disableScrollAfter||R.disableRipple)("disabled",R._disableScrollAfter||null))},dependencies:[Ve.wG,Ct.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0;--mdc-tab-indicator-active-indicator-height:2px;--mdc-tab-indicator-active-indicator-shape:0;--mdc-secondary-navigation-tab-container-height:48px}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return F})();const Ds=new n.OlP("MAT_TABS_CONFIG");let $s=0;const Uo=(0,Ve.pj)((0,Ve.Kr)(class{constructor(F){this._elementRef=F}}),"primary");let Jr=(()=>{class F extends Uo{get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(g){this._dynamicHeight=(0,qt.Ig)(g)}get selectedIndex(){return this._selectedIndex}set selectedIndex(g){this._indexToSelect=(0,qt.su)(g,null)}get animationDuration(){return this._animationDuration}set animationDuration(g){this._animationDuration=/^\d+$/.test(g+"")?g+"ms":g}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(g){this._contentTabIndex=(0,qt.su)(g,null)}get disablePagination(){return this._disablePagination}set disablePagination(g){this._disablePagination=(0,qt.Ig)(g)}get preserveContent(){return this._preserveContent}set preserveContent(g){this._preserveContent=(0,qt.Ig)(g)}get backgroundColor(){return this._backgroundColor}set backgroundColor(g){const L=this._elementRef.nativeElement.classList;L.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),g&&L.add("mat-tabs-with-background",`mat-background-${g}`),this._backgroundColor=g}constructor(g,L,R,ye){super(g),this._changeDetectorRef=L,this._animationMode=ye,this._tabs=new n.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=ae.w0.EMPTY,this._tabLabelSubscription=ae.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new n.vpe,this.focusChange=new n.vpe,this.animationDone=new n.vpe,this.selectedTabChange=new n.vpe(!0),this._groupId=$s++,this.animationDuration=R&&R.animationDuration?R.animationDuration:"500ms",this.disablePagination=!(!R||null==R.disablePagination)&&R.disablePagination,this.dynamicHeight=!(!R||null==R.dynamicHeight)&&R.dynamicHeight,this.contentTabIndex=R?.contentTabIndex??null,this.preserveContent=!!R?.preserveContent}ngAfterContentChecked(){const g=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=g){const L=null==this._selectedIndex;if(!L){this.selectedTabChange.emit(this._createChangeEvent(g));const R=this._tabBodyWrapper.nativeElement;R.style.minHeight=R.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((R,ye)=>R.isActive=ye===g),L||(this.selectedIndexChange.emit(g),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((L,R)=>{L.position=R-g,null!=this._selectedIndex&&0==L.position&&!L.origin&&(L.origin=g-this._selectedIndex)}),this._selectedIndex!==g&&(this._selectedIndex=g,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const g=this._clampTabIndex(this._indexToSelect);if(g===this._selectedIndex){const L=this._tabs.toArray();let R;for(let ye=0;ye{L[g].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(g))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,fn.O)(this._allTabs)).subscribe(g=>{this._tabs.reset(g.filter(L=>L._closestTabGroup===this||!L._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(g){const L=this._tabHeader;L&&(L.focusIndex=g)}_focusChanged(g){this._lastFocusedTabIndex=g,this.focusChange.emit(this._createChangeEvent(g))}_createChangeEvent(g){const L=new kr;return L.index=g,this._tabs&&this._tabs.length&&(L.tab=this._tabs.toArray()[g]),L}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Ft.T)(...this._tabs.map(g=>g._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(g){return Math.min(this._tabs.length-1,Math.max(g||0,0))}_getTabLabelId(g){return`mat-tab-label-${this._groupId}-${g}`}_getTabContentId(g){return`mat-tab-content-${this._groupId}-${g}`}_setTabBodyWrapperHeight(g){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const L=this._tabBodyWrapper.nativeElement;L.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(L.style.height=g+"px")}_removeTabBodyWrapperHeight(){const g=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=g.clientHeight,g.style.height="",this.animationDone.emit()}_handleClick(g,L,R){L.focusIndex=R,g.disabled||(this.selectedIndex=R)}_getTabIndex(g){return g===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(g,L){g&&"mouse"!==g&&"touch"!==g&&(this._tabHeader.focusIndex=L)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ds,8),n.Y36(n.QbO,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[n.qOj]})}return F})(),ga=(()=>{class F extends Jr{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(g){this._fitInkBarToContent=(0,qt.Ig)(g),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(g){this._stretchTabs=(0,qt.Ig)(g)}constructor(g,L,R,ye){super(g,L,R,ye),this._fitInkBarToContent=!1,this._stretchTabs=!0,this.fitInkBarToContent=!(!R||null==R.fitInkBarToContent)&&R.fitInkBarToContent,this.stretchTabs=!R||null==R.stretchTabs||R.stretchTabs}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Ds,8),n.Y36(n.QbO,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-tab-group"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,to,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._allTabs=Dt)}},viewQuery:function(L,R){if(1&L&&(n.Gf(wt,5),n.Gf(Yt,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R._tabBodyWrapper=ye.first),n.iGM(ye=n.CRH())&&(R._tabHeader=ye.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(L,R){2&L&&(n.Udp("--mat-tab-animation-duration",R.animationDuration),n.ekj("mat-mdc-tab-group-dynamic-height",R.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===R.headerPosition)("mat-mdc-tab-group-stretch-tabs",R.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"]},exportAs:["matTabGroup"],features:[n._Bn([{provide:uo,useExisting:F}]),n.qOj],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-tab-header",0,1),n.NdJ("indexFocused",function(Dt){return R._focusChanged(Dt)})("selectFocusedIndex",function(Dt){return R.selectedIndex=Dt}),n.YNc(2,ht,9,17,"div",2),n.qZA(),n.TgZ(3,"div",3,4),n.YNc(5,st,1,12,"mat-tab-body",5),n.qZA()),2&L&&(n.Q6J("selectedIndex",R.selectedIndex||0)("disableRipple",R.disableRipple)("disablePagination",R.disablePagination),n.xp6(2),n.Q6J("ngForOf",R._tabs),n.xp6(1),n.ekj("_mat-animation-noopable","NoopAnimations"===R._animationMode),n.xp6(2),n.Q6J("ngForOf",R._tabs))},dependencies:[e.mk,e.sg,e.O5,ct.Pl,Ve.wG,Ce.kH,ni,yo,Ws],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return F})();class kr{}let Li=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[e.ez,Ve.BQ,ct.eL,Ve.si,Ct.Q8,Ce.rt,Ve.BQ]})}return F})();var Yr=C(2770);function dr(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw();n.hij(" ALL (",g.reactions.length,") ")}}function Ha(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h3",7),n._uU(2,"Empty"),n.qZA()())}function wr(F,Xe){if(1&F&&(n.TgZ(0,"section",9)(1,"div",10)(2,"div",11)(3,"div",12),n._UZ(4,"img",13),n.TgZ(5,"div",14)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small"),n._uU(9,"Reacted "),n.TgZ(10,"span",15),n._uU(11),n.qZA(),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()()()()()),2&F){const g=Xe.$implicit;n.xp6(4),n.s9C("src",g.reacted_by_photo,n.LSH),n.xp6(3),n.Oqu(g.reacted_by),n.xp6(4),n.Oqu(g.reaction_type),n.xp6(1),n.hij(" ",n.xi3(13,4,g.updated_at,!0),"")}}function al(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,wr,14,7,"section",8),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.reactions)}}function Vr(F,Xe){if(1&F&&n._uU(0),2&F){const g=n.oxw().$implicit,L=n.oxw();n.AsE(" ",g," (",L.filterReactions(g).length,") ")}}function Es(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h3",7),n._uU(2,"Empty"),n.qZA()())}function Js(F,Xe){if(1&F&&(n.TgZ(0,"section",9)(1,"div",10)(2,"div",11)(3,"div",12),n._UZ(4,"img",13),n.TgZ(5,"div",14)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small"),n._uU(9,"Reacted "),n.TgZ(10,"span",15),n._uU(11),n.qZA(),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()()()()()),2&F){const g=Xe.$implicit,L=n.oxw(2).$implicit;n.xp6(4),n.s9C("src",g.reacted_by_photo,n.LSH),n.xp6(3),n.Oqu(g.reacted_by),n.xp6(4),n.Oqu(L),n.xp6(1),n.hij(" on: ",n.xi3(13,4,g.updated_at,!0),"")}}function ll(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Js,14,7,"section",8),n.qZA()),2&F){const g=n.oxw().$implicit,L=n.oxw();n.xp6(1),n.Q6J("ngForOf",L.filterReactions(g))}}function er(F,Xe){if(1&F&&(n.TgZ(0,"mat-tab"),n.YNc(1,Vr,1,2,"ng-template",2),n.YNc(2,Es,3,0,"div",3),n.YNc(3,ll,2,1,"div",3),n.qZA()),2&F){const g=Xe.$implicit,L=n.oxw();n.xp6(2),n.Q6J("ngIf",0===L.filterReactions(g).length),n.xp6(1),n.Q6J("ngIf",L.filterReactions(g).length>0)}}let qn=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.postService=ye,this.postId=0,this.reactions=[]}componentName(){return"ReactionViewComponent"}ngOnInit(){this.fetchReactions(this.postId)}getReactionTypes(){let g=[];for(let L in Ot)g.push(L);return g}filterReactions(g){return this.reactions.filter(L=>L.reaction_type===g)}fetchReactions(g){let L=this.componentKey(S.Z.POSTS.FETCH_POST_REACTIONS(g));this.postService.fetchPostReactions(L,g,{slice:!0}),this.subscribe(L,null,(R,ye)=>{this.reactions=ye.data})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-reaction-view"]],inputs:{postId:"postId"},features:[n.qOj],decls:10,vars:3,consts:[[1,"dialog-content"],["mat-align-tabs","start"],["mat-tab-label",""],[4,"ngIf"],[4,"ngFor","ngForOf"],["align","end"],["mat-button","","mat-dialog-close",""],[1,"txt-no-data"],["class","blog-post-area blog-post-area-comment bdr-top mt-2",4,"ngFor","ngForOf"],[1,"blog-post-area","blog-post-area-comment","bdr-top","mt-2"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","py-1"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"image-rounded",3,"src"],[1,"content","ms-2"],[2,"color","#44d62c"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-dialog-content",0)(1,"mat-tab-group",1)(2,"mat-tab"),n.YNc(3,dr,1,1,"ng-template",2),n.YNc(4,Ha,3,0,"div",3),n.YNc(5,al,2,1,"div",3),n.qZA(),n.YNc(6,er,4,2,"mat-tab",4),n.qZA()(),n.TgZ(7,"mat-dialog-actions",5)(8,"button",6),n._uU(9,"Close"),n.qZA()()),2&L&&(n.xp6(4),n.Q6J("ngIf",0===R.reactions.length),n.xp6(1),n.Q6J("ngIf",R.reactions.length>0),n.xp6(1),n.Q6J("ngForOf",R.getReactionTypes()))},dependencies:[e.sg,e.O5,Re.ZT,Re.xY,Re.H8,mt.lW,vr,to,ga,Yr.G],styles:[".dialog-content[_ngcontent-%COMP%]{min-height:200px;padding:0}.image-rounded[_ngcontent-%COMP%]{width:100px;height:100px;position:relative;overflow:hidden;border-radius:50%}img[_ngcontent-%COMP%]{display:inline;margin:0 auto;height:100%;width:auto}.txt-no-data[_ngcontent-%COMP%]{margin-top:50px;text-align:center}"]})}return F})();var bi=C(617);function _r(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("message","Submitting. Please wait..")}function wo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",29),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function jo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"label",30),n._UZ(2,"i",31),n.qZA(),n.TgZ(3,"input",32),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onImageSelected(R))}),n.qZA()()}}function no(F,Xe){1&F&&(n.TgZ(0,"div",33)(1,"small"),n._uU(2,"Minimum 1 document is needed."),n.qZA()())}function Ao(F,Xe){1&F&&(n.TgZ(0,"div",34)(1,"small"),n._uU(2,"Comment should be at least 20 characters."),n.qZA()())}function nr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6)(1,"form",7)(2,"div",8),n._UZ(3,"input",9),n.TgZ(4,"label",10),n._uU(5,"Add to Blockchain\xa0"),n.qZA(),n.TgZ(6,"small",11),n._uU(7,"If your review is added to the blockchain, you won't be able to further modify or delete this review in future."),n.qZA()(),n.TgZ(8,"section",12)(9,"h5",13),n._uU(10,"UPLOAD DOCUMENTS"),n.qZA(),n.TgZ(11,"small",14),n._uU(12,"Upload related documents."),n.qZA(),n.TgZ(13,"div",15)(14,"div"),n.YNc(15,wo,1,1,"img",16),n.qZA(),n.YNc(16,jo,4,0,"div",17),n.qZA(),n.YNc(17,no,3,0,"div",18),n.qZA(),n.TgZ(18,"div",19)(19,"h5",13),n._uU(20,"YOUR COMMENT/DESCRIPTION"),n.qZA(),n.TgZ(21,"div",20)(22,"div",21)(23,"label",22),n._uU(24,"Share related information about your purchase."),n.qZA(),n._UZ(25,"textarea",23),n.qZA()(),n.YNc(26,Ao,3,0,"div",24),n.qZA(),n.TgZ(27,"div",25)(28,"button",26),n._uU(29,"CANCEL"),n.qZA(),n._uU(30,"\xa0\xa0 "),n.TgZ(31,"button",27),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitVerificationRequest())}),n._UZ(32,"i",28),n._uU(33," SUBMIT "),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("formGroup",g.verificationForm),n.xp6(14),n.Q6J("ngForOf",g.uploadFiles),n.xp6(1),n.Q6J("ngIf",g.uploadFiles.length<3),n.xp6(1),n.Q6J("ngIf",g.isInvalidFileCount()),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.verificationForm.controls.comment)),n.xp6(5),n.Q6J("disabled",g.verificationForm.invalid||0===g.uploadFiles.length)}}function ps(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",5),2&F){const g=n.oxw();n.Q6J("message",g.completionMsg)}}function va(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",35)(1,"button",36),n._uU(2,"CLOSE"),n.qZA()())}let Ti=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.fileUploadService=ye,this.notifier=Dt,this.reviewService=Mn,this.reviewId=0,this.uploadFiles=[],this.verificationForm=new Z.cw({add_to_block_chain:new Z.NI(""),comment:new Z.NI("",[Z.kI.required,Z.kI.minLength(20)])}),this.completionMsg=null}componentName(){return"VerifyReviewComponent"}ngOnInit(){this.loading=!1}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}uploadImages(){this.loading=!0;let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.reviewId+"-verif-img"));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{let Mn=ye.data.map(vi=>vi.image_url);this.submitRequest(Mn)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}submitVerificationRequest(){this.notifier.log(this.verificationForm),this.uploadImages()}submitRequest(g){if(null==this.reviewId)return;this.loading=!0;let R={review_id:this.reviewId,add_to_block_chain:""!==this.verificationForm.controls.add_to_block_chain.value,comment:this.verificationForm.controls.comment.value,document_1:g.length>0?g[0]:"",document_2:g.length>1?g[1]:null,document_3:g.length>2?g[2]:null};const ye=this.componentKey(S.Z.REVIEWS.SEND_VERIFICATION_REQUEST(this.reviewId));this.reviewService.verifyReview(ye,R),this.subscribe(ye,null,(Dt,Mn)=>{this.loading=!1,this.notifier.success("Success","Request Sent."),this.completionMsg="Your request has been successfully submitted. You'll be notified once your request is reviewed."}),this.subscribe(this.getErrorKey(ye),null,(Dt,Mn)=>{this.loading=!1;let vi=Mn.data;this.completionMsg=vi.error.message,this.notifier.warning("Failed!",vi.error.message)})}isInvalidFileCount(){return 0===this.uploadFiles.length||this.uploadFiles.length>3}showInfo(){this.notifier.info("Info!","Upload related documents as a proof. For example invoice, payment slip etc.\n This will help us determine the authenticity of your affiliation with the item.",()=>{},1e4)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(oe.J),n.Y36(te.l),n.Y36(se.F))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-verify-review"]],inputs:{reviewId:"reviewId"},features:[n.qOj],decls:10,vars:4,consts:[["mat-dialog-title",""],[2,"float","right",3,"click"],[3,"message",4,"ngIf"],["class","review-r-d-input-fields",4,"ngIf"],["align","end",4,"ngIf"],[3,"message"],[1,"review-r-d-input-fields"],[3,"formGroup"],[1,"input-group","bdr-b","bdr-top"],["id","chk_add_to_block_chain","type","checkbox","name","add_to_block_chain","formControlName","add_to_block_chain",1,"form-check"],["for","chk_add_to_block_chain",1,"form-check-label","ms-2",2,"align-self","center"],[1,"field-subtitle","pb-2"],[1,"upload-img-area","review-rdi","pt-4","bdr-b","pb-4"],[1,"field-title"],[1,"field-subtitle"],[1,"post-last-step-gallery","mt-2"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","text-warning mt-1",4,"ngIf"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","cons",1,"form-label","field-subtitle"],["name","comment","id","cons","rows","3","placeholder","Enter description here..","formControlName","comment",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["mat-dialog-close","",1,"edit-boxed-inline-btn"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],["alt","",1,"m-1",3,"src","click"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],[1,"text-warning","mt-1"],[1,"text-warning"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"h5"),n._uU(2,"REQUEST VERIFICATION "),n.TgZ(3,"mat-icon",1),n.NdJ("click",function(){return R.showInfo()}),n._uU(4,"info"),n.qZA()()(),n.TgZ(5,"mat-dialog-content"),n.YNc(6,_r,1,1,"util-progress",2),n.YNc(7,nr,34,6,"div",3),n.YNc(8,ps,1,1,"app-notice-view",2),n.qZA(),n.YNc(9,va,3,0,"mat-dialog-actions",4)),2&L&&(n.xp6(6),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&null==R.completionMsg),n.xp6(1),n.Q6J("ngIf",!R.loading&&null!=R.completionMsg),n.xp6(1),n.Q6J("ngIf",null!=R.completionMsg))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.Wl,Z.JJ,Z.JL,Z.sg,Z.u,bi.Hw,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.t,St],styles:[".field-title[_ngcontent-%COMP%]{color:#44d62c}.field-subtitle[_ngcontent-%COMP%]{color:#f5f5f5;font-size:.8em}.dialog-subtitle[_ngcontent-%COMP%]{font-size:.8em;color:#01b9b9}"]})}return F})();function qs(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function ba(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)}function Qs(F,Xe){1&F&&(n.TgZ(0,"mat-icon",20),n._uU(1,"check_circle "),n.qZA())}function wi(F,Xe){1&F&&(n.TgZ(0,"div"),n._UZ(1,"img",21),n.TgZ(2,"small"),n._uU(3,"Added to Blockchain"),n.qZA()())}function Oo(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_1,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_1,n.LSH)}}function Ko(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_2,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_2,n.LSH)}}function or(F,Xe){if(1&F&&(n.TgZ(0,"div",22)(1,"a",23),n._UZ(2,"img",24),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.verification?null:g.verification.document_3,n.LSH),n.xp6(1),n.s9C("src",null==g.verification?null:g.verification.document_3,n.LSH)}}function Xs(F,Xe){if(1&F&&(n.TgZ(0,"section",25)(1,"div",8)(2,"div",26)(3,"div",27)(4,"h6",28),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.TgZ(7,"p")(8,"span",29),n._uU(9),n.qZA(),n._uU(10),n.qZA(),n.TgZ(11,"h6",28),n._uU(12),n.qZA()()()()()),2&F){const g=Xe.$implicit;n.xp6(5),n.hij("On ",n.xi3(6,4,null==g?null:g.updated_at,!0),""),n.xp6(4),n.Oqu(null==g?null:g.action_taken_by_name),n.xp6(1),n.hij(" marked this review as ",null==g?null:g.status,""),n.xp6(2),n.hij(" ",null==g?null:g.reason," ")}}function Ml(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-dialog-actions",30)(1,"a",31),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.applyForReconsideration())}),n._uU(2,"APPLY FOR RECONSIDERATION"),n.qZA()()}}function Sr(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"section",7)(2,"div",8)(3,"div",9)(4,"div",10),n.YNc(5,Qs,2,0,"mat-icon",11),n.TgZ(6,"div",12)(7,"h4"),n._uU(8,"\xa0Verification Details"),n.qZA(),n.TgZ(9,"small",13),n._uU(10),n.qZA(),n.YNc(11,wi,4,0,"div",4),n.qZA()()(),n.TgZ(12,"div",14)(13,"p"),n._uU(14),n.qZA(),n.TgZ(15,"div",15),n.YNc(16,Oo,3,2,"div",16),n.YNc(17,Ko,3,2,"div",16),n.YNc(18,or,3,2,"div",16),n.qZA()()()(),n.TgZ(19,"section",17)(20,"h5"),n._uU(21,"Change Logs"),n.qZA()(),n.YNc(22,Xs,13,7,"section",18),n.YNc(23,Ml,3,0,"mat-dialog-actions",19),n.qZA()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",g.isVerified()),n.xp6(5),n.Oqu(null==g.verification?null:g.verification.status),n.xp6(1),n.Q6J("ngIf",null==g.verification||null==g.verification.review?null:g.verification.review.chained),n.xp6(3),n.Oqu(null==g.verification?null:g.verification.comment),n.xp6(2),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_1)),n.xp6(1),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_2)),n.xp6(1),n.Q6J("ngIf",null!=(null==g.verification?null:g.verification.document_3)),n.xp6(4),n.Q6J("ngForOf",null==g.verification?null:g.verification.actions),n.xp6(1),n.Q6J("ngIf",g.isReconsiderable())}}let jr=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.reviewService=ye,this.auth=Dt,this.notifier=Mn,this.reviewId=null,this.verification=null}componentName(){return"VerificationDetailsComponent"}ngOnInit(){this.fetchVerificationForReview()}fetchVerificationForReview(){if(null==this.reviewId)return;this.loading=!0;let g=this.componentKey(S.Z.REVIEWS.GET_VERIFICATION_FOR_REVIEW(this.reviewId));this.reviewService.getVerificationForReview(g,this.reviewId),this.subscribe(g,null,(L,R)=>{this.verification=R.data,console.log(this.verification),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}isVerified(){return"VERIFIED"===this.verification?.status}isReconsiderable(){return!this.verification?.already_reconsidered&&"REJECTED"===this.verification?.status}applyForReconsideration(){if(null==this.verification||!confirm("Do you want to send reconsideration request?"))return;let g=this.componentKey(S.Z.REVIEWS.RECONSIDER_VERIFICATION(this.verification.id));this.reviewService.reconsiderVerification(g,this.verification.id),this.subscribe(g,null,(L,R)=>{this.verification=R.data,this.notifier.success("Success","Request sent for reconsideration.")}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error","Could not send request for reconsideration.")})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-verification-details"]],inputs:{reviewId:"reviewId"},features:[n.qOj],decls:5,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[4,"ngIf"],[3,"bar"],[3,"padding"],[1,"blog-post-area","bdr-b"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","mb-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["class","verified-icon profile-img-rounded","aria-hidden","false","aria-label","View Product",4,"ngIf"],[1,"content"],[1,"verification-status"],[1,"blog-post-content","pb-3"],[1,"product-gallery","mt-2"],["class","single-product-item",4,"ngIf"],[1,"container","bdr-b","my-2","pb-1"],["class","blog-post-area blog-post-area-comment mt-2 bdr-b",4,"ngFor","ngForOf"],["align","end",4,"ngIf"],["aria-hidden","false","aria-label","View Product",1,"verified-icon","profile-img-rounded"],["src","assets/icons/blockchain.svg",2,"height","16px","width","auto","margin-right","10px"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],[1,"blog-post-area","blog-post-area-comment","mt-2","bdr-b"],[1,"blog-post-content"],[1,"comments-comment-item-content"],[2,"color","gray"],[1,"action-taken-by-name"],["align","end"],[3,"click"]],template:function(L,R){1&L&&(n.YNc(0,qs,1,1,"util-progress",0),n.YNc(1,ba,1,1,"util-progress",1),n.TgZ(2,"div",2),n._UZ(3,"i",3),n.qZA(),n.YNc(4,Sr,24,9,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(3),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,bi.Hw,Re.ZT,Re.H8,Ge.t,Yr.G],styles:[".action-taken-by-name[_ngcontent-%COMP%], .verified-icon[_ngcontent-%COMP%]{color:#44d62c}a[_ngcontent-%COMP%]{color:#44d62c;font-size:1em}.verification-status[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})();var xo=C(8174);let _s=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}reportReview(g,L){this.http.post(vn.e.POSTS.POST_REVIEW_REPORT(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}getReportCategories(){return[{name:"NUDITY OR SEXUAL ACTIVITY",value:"NUDITY_OR_SEXUAL_ACTIVITY"},{name:"HARASSMENT OR BULLYING",value:"HARASSMENT_OR_BULLYING"},{name:"OFFENSIVE",value:"OFFENSIVE"},{name:"FALSE INFORMATION",value:"FALSE_INFORMATION"},{name:"SPAM",value:"SPAM"},{name:"VIOLENCE",value:"VIOLENCE"},{name:"HATE SPEECH",value:"HATE_SPEECH"}]}getReportsForPost(g,L){this.http.get(vn.e.POSTS.GET_REPORT_DETAILS_FOR_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}getReportCountForPost(g,L){this.http.get(vn.e.POSTS.GET_REPORT_COUNT_FOR_POST(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();var Ai=C(9157),Jo=C(8525);function Io(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("message","Submitting. Please wait..")}function Ys(F,Xe){if(1&F&&(n.TgZ(0,"mat-option",28),n._uU(1),n.qZA()),2&F){const g=Xe.$implicit;n.Q6J("value",g.value),n.xp6(1),n.hij(" ",g.name," ")}}function fo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",29),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Zr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"label",30),n._UZ(2,"i",31),n.qZA(),n.TgZ(3,"input",32),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onImageSelected(R))}),n.qZA()()}}function ms(F,Xe){1&F&&(n.TgZ(0,"div",33)(1,"small"),n._uU(2,"Minimum 1 document is needed."),n.qZA()())}function Co(F,Xe){1&F&&(n.TgZ(0,"div",34)(1,"small"),n._uU(2,"Comment should be at least 20 characters."),n.qZA()())}function Br(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",6)(1,"form",7)(2,"mat-form-field",8)(3,"mat-label"),n._uU(4,"Report Category"),n.qZA(),n.TgZ(5,"mat-select",9),n.YNc(6,Ys,2,2,"mat-option",10),n.qZA()(),n.TgZ(7,"section",11)(8,"h5",12),n._uU(9,"UPLOAD DOCUMENTS"),n.qZA(),n.TgZ(10,"small",13),n._uU(11,"Upload related documents."),n.qZA(),n.TgZ(12,"div",14)(13,"div"),n.YNc(14,fo,1,1,"img",15),n.qZA(),n.YNc(15,Zr,4,0,"div",16),n.qZA(),n.YNc(16,ms,3,0,"div",17),n.qZA(),n.TgZ(17,"div",18)(18,"h5",12),n._uU(19,"YOUR COMMENT/DESCRIPTION"),n.qZA(),n.TgZ(20,"div",19)(21,"div",20)(22,"label",21),n._uU(23,"Share related information about your purchase."),n.qZA(),n._UZ(24,"textarea",22),n.qZA()(),n.YNc(25,Co,3,0,"div",23),n.qZA(),n.TgZ(26,"div",24)(27,"button",25),n._uU(28,"CANCEL"),n.qZA(),n._uU(29,"\xa0\xa0 "),n.TgZ(30,"button",26),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitVerificationRequest())}),n._UZ(31,"i",27),n._uU(32," SUBMIT "),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("formGroup",g.reportPostForm),n.xp6(5),n.Q6J("ngForOf",g.postCategory),n.xp6(8),n.Q6J("ngForOf",g.uploadFiles),n.xp6(1),n.Q6J("ngIf",g.uploadFiles.length<1),n.xp6(1),n.Q6J("ngIf",g.isInvalidFileCount()),n.xp6(9),n.Q6J("ngIf",g.isInvalidInput(g.reportPostForm.controls.description)),n.xp6(5),n.Q6J("disabled",g.reportPostForm.invalid||0===g.uploadFiles.length)}}function ea(F,Xe){if(1&F&&n._UZ(0,"app-notice-view",5),2&F){const g=n.oxw();n.Q6J("message",g.completionMsg)}}function po(F,Xe){1&F&&(n.TgZ(0,"mat-dialog-actions",35)(1,"button",36),n._uU(2,"CLOSE"),n.qZA()())}let io=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.fileUploadService=ye,this.notifier=Dt,this.postReportService=Mn,this.reviewId=0,this.postId=0,this.uploadFiles=[],this.postCategory=this.postReportService.getReportCategories(),this.reportPostForm=new Z.cw({description:new Z.NI("",[Z.kI.required,Z.kI.minLength(20)]),category:new Z.NI("")}),this.completionMsg=null,this.selectedCategory=null}componentName(){return"PostReportComponent"}ngOnInit(){this.loading=!1}onImageSelected(g){if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}uploadImages(){this.loading=!0;let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.reviewId+"-verif-img"));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{let Mn=ye.data.map(vi=>vi.image_url);this.submitRequest(Mn)})}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}submitVerificationRequest(){this.notifier.log(this.reportPostForm),this.uploadImages()}submitRequest(g){if(null==this.reviewId)return;this.loading=!0;let L={post_id:this.postId,description:this.reportPostForm.controls.description.value,image:g.length>0?g[0]:"",category:this.reportPostForm.controls.category.value};const R=this.componentKey(S.Z.REVIEWS.POST_REVIEW_REPORT(this.reviewId));this.postReportService.reportReview(R,L),this.subscribe(R,null,(ye,Dt)=>{this.loading=!1,this.notifier.success("Success","Request Sent."),this.completionMsg="Your report has been successfully submitted. You'll be notified once your report is reviewed."}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{this.loading=!1;let Mn=Dt.data;this.completionMsg=Mn.error.message,this.notifier.warning("Failed!",Mn.error.message)})}isInvalidFileCount(){return 0===this.uploadFiles.length||this.uploadFiles.length>3}showInfo(){this.notifier.info("Info!","Upload related documents as a proof. For example invoice, payment slip etc.\n This will help us determine the authenticity of your affiliation with the item.",()=>{},1e4)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(oe.J),n.Y36(te.l),n.Y36(_s))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-report"]],inputs:{reviewId:"reviewId",postId:"postId"},features:[n.qOj],decls:10,vars:4,consts:[["mat-dialog-title",""],[2,"float","right",3,"click"],[3,"message",4,"ngIf"],["class","review-r-d-input-fields",4,"ngIf"],["align","end",4,"ngIf"],[3,"message"],[1,"review-r-d-input-fields"],[3,"formGroup"],["appearance","fill",1,"post-category"],["formControlName","category"],[3,"value",4,"ngFor","ngForOf"],[1,"upload-img-area","review-rdi","pt-4","bdr-b","pb-4"],[1,"field-title"],[1,"field-subtitle"],[1,"post-last-step-gallery","mt-2"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],[4,"ngIf"],["class","text-warning mt-1",4,"ngIf"],[1,"cons-area","mt-4"],[1,"cons-single-item-content","d-flex","align-items-end"],[1,"fields"],["for","cons",1,"form-label","field-subtitle"],["name","comment","id","cons","rows","3","placeholder","Enter description here..","formControlName","description",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"post-btn","d-flex","justify-content-end","mt-4"],["mat-dialog-close","",1,"edit-boxed-inline-btn"],["type","submit",1,"boxed-btn",3,"disabled","click"],[1,"flaticon-plus"],[3,"value"],["alt","",1,"m-1",3,"src","click"],["for","image-upload"],[1,"flaticon-add"],["type","file","id","image-upload",3,"change"],[1,"text-warning","mt-1"],[1,"text-warning"],["align","end"],["mat-button","","mat-dialog-close",""]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"h5"),n._uU(2,"REPORT POST "),n.TgZ(3,"mat-icon",1),n.NdJ("click",function(){return R.showInfo()}),n._uU(4,"info"),n.qZA()()(),n.TgZ(5,"mat-dialog-content"),n.YNc(6,Io,1,1,"util-progress",2),n.YNc(7,Br,33,7,"div",3),n.YNc(8,ea,1,1,"app-notice-view",2),n.qZA(),n.YNc(9,po,3,0,"mat-dialog-actions",4)),2&L&&(n.xp6(6),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&null==R.completionMsg),n.xp6(1),n.Q6J("ngIf",!R.loading&&null!=R.completionMsg),n.xp6(1),n.Q6J("ngIf",null!=R.completionMsg))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.JJ,Z.JL,Z.sg,Z.u,bi.Hw,Ai.KE,Ai.hX,Ve.ey,Re.ZT,Re.uh,Re.xY,Re.H8,mt.lW,Ge.t,Jo.gD,St],styles:[".field-title[_ngcontent-%COMP%]{color:#44d62c}.field-subtitle[_ngcontent-%COMP%]{color:#f5f5f5;font-size:.8em}.dialog-subtitle[_ngcontent-%COMP%]{font-size:.8em;color:#01b9b9}.post-category[_ngcontent-%COMP%]{width:100%} .mat-form-field-appearance-fill .mat-form-field-flex{background-color:#444}"]})}return F})();function qo(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function Ss(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)}function ya(F,Xe){1&F&&(n.TgZ(0,"mat-icon",19),n._uU(1,"check_circle "),n.qZA())}function sr(F,Xe){if(1&F&&(n.TgZ(0,"div",20)(1,"a",21),n._UZ(2,"img",22),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.s9C("href",null==g.report?null:g.report.image,n.LSH),n.xp6(1),n.s9C("src",null==g.report?null:g.report.image,n.LSH)}}function Oa(F,Xe){if(1&F&&(n.TgZ(0,"section",23)(1,"div",8)(2,"div",24)(3,"div",25)(4,"h6",26),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.TgZ(7,"p")(8,"span",27),n._uU(9),n.qZA(),n._uU(10),n.qZA(),n.TgZ(11,"h6",26),n._uU(12),n.qZA()()()()()),2&F){const g=Xe.$implicit;n.xp6(5),n.hij("On ",n.xi3(6,4,g.updated_at,!0),""),n.xp6(4),n.Oqu(g.action_taken_by_name),n.xp6(1),n.hij(" has taken action ",null==g?null:g.status,""),n.xp6(2),n.hij(" ",null==g?null:g.comment," ")}}function Ua(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"section",7)(2,"div",8)(3,"div",9)(4,"div",10),n.YNc(5,ya,2,0,"mat-icon",11),n.TgZ(6,"div",12)(7,"h4"),n._uU(8,"\xa0Report Details"),n.qZA(),n.TgZ(9,"small",13),n._uU(10),n.qZA()()()(),n.TgZ(11,"div",14)(12,"p"),n._uU(13),n.qZA(),n.TgZ(14,"div",15),n.YNc(15,sr,3,2,"div",16),n.qZA()()()(),n.TgZ(16,"section",17)(17,"h5"),n._uU(18,"Change Logs"),n.qZA()(),n.YNc(19,Oa,13,7,"section",18),n.qZA()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",g.hasReport()),n.xp6(5),n.hij("Status: ",null==g.report?null:g.report.status,""),n.xp6(3),n.Oqu(null==g.report?null:g.report.description),n.xp6(2),n.Q6J("ngIf",null!=(null==g.report?null:g.report.image)),n.xp6(4),n.Q6J("ngForOf",null==g.report?null:g.report.actions)}}let Ia=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.reviewService=ye,this.postReportService=Dt,this.auth=Mn,this.notifier=vi,this.reviewId=null,this.postId=null,this.report=null}componentName(){return"ReportDetailsComponent"}ngOnInit(){this.fetchReportDetails()}fetchReportDetails(){if(null==this.postId)return;this.loading=!0;let g=this.componentKey(S.Z.REVIEWS.GET_REPORT_DETAILS_FOR_REVIEW(this.reviewId));this.postReportService.getReportsForPost(g,this.postId),this.subscribe(g,null,(L,R)=>{let ye=R.data;ye.empty||(this.report=ye.content[0]),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}hasReport(){return null!=this.report}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(_s),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-report-details"]],inputs:{reviewId:"reviewId",postId:"postId"},features:[n.qOj],decls:5,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],[4,"ngIf"],[3,"bar"],[3,"padding"],[1,"blog-post-area","bdr-b"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","mb-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["class","verified-icon profile-img-rounded","aria-hidden","false","aria-label","View Product",4,"ngIf"],[1,"content"],[1,"verification-status"],[1,"blog-post-content","pb-3"],[1,"product-gallery","mt-2"],["class","single-product-item",4,"ngIf"],[1,"container","bdr-b","my-2","pb-1"],["class","blog-post-area blog-post-area-comment mt-2 bdr-b",4,"ngFor","ngForOf"],["aria-hidden","false","aria-label","View Product",1,"verified-icon","profile-img-rounded"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],[1,"blog-post-area","blog-post-area-comment","mt-2","bdr-b"],[1,"blog-post-content"],[1,"comments-comment-item-content"],[2,"color","gray"],[1,"action-taken-by-name"]],template:function(L,R){1&L&&(n.YNc(0,qo,1,1,"util-progress",0),n.YNc(1,Ss,1,1,"util-progress",1),n.TgZ(2,"div",2),n._UZ(3,"i",3),n.qZA(),n.YNc(4,Ua,20,5,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(3),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,bi.Hw,Re.ZT,Ge.t,Yr.G],styles:[".action-taken-by-name[_ngcontent-%COMP%], .verified-icon[_ngcontent-%COMP%]{color:#44d62c}a[_ngcontent-%COMP%]{color:#44d62c;font-size:1em}.verification-status[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})();function ta(F,Xe){if(1&F&&(n.TgZ(0,"div",1)(1,"small",5),n._uU(2),n.qZA(),n.TgZ(3,"p"),n._uU(4),n._UZ(5,"i",3),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(2),n.Oqu(null==g?null:g.attr_name),n.xp6(2),n.Oqu(null==g||null==g.value?null:g.value.toFixed(1))}}const na=function(F){return{"justify-content-around":F}};let Ae=(()=>{class F{constructor(){this.avgRating=0,this.ratings=[]}ngOnInit(){}getAvgRating(){return this.avgRating?.toFixed(1)}getRatings(){return null==this.ratings?[]:this.ratings}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-rating-view"]],inputs:{avgRating:"avgRating",ratings:"ratings"},decls:8,vars:5,consts:[[1,"all-avarage-rating","d-flex","py-3","scrollable",3,"ngClass"],[1,"single-rating-star"],[1,"avg"],[1,"icon-star"],["class","single-rating-star",4,"ngFor","ngForOf"],[1,"attr-name"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"div",1)(2,"small",2),n._uU(3,"Avg Rating"),n.qZA(),n.TgZ(4,"p",2),n._uU(5),n._UZ(6,"i",3),n.qZA()(),n.YNc(7,ta,6,2,"div",4),n.qZA()),2&L&&(n.Q6J("ngClass",n.VKq(3,na,R.getRatings().length<4)),n.xp6(5),n.Oqu(R.getAvgRating()),n.xp6(2),n.Q6J("ngForOf",R.getRatings()))},dependencies:[e.mk,e.sg],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.single-rating-star[_ngcontent-%COMP%]{margin-right:10px;padding-right:10px}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.5em!important}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff;font-size:10px!important;align-content:center}.single-rating-star[_ngcontent-%COMP%] p[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}"]})}return F})();const Fe=function(F){return{"hide-reaction-box":F}};let le=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt){super(g,L,R),this.postService=ye,this.notifier=Dt,this.postId=null,this.onReacted=new n.vpe,this.reactionPostId=0}componentName(){return"ReactionComponent"}ngOnInit(){this.reactionPostId=0}onReactionItemClick(g){if(null==this.postId)return;let L=Ot[g],R=this.componentKey(S.Z.POSTS.SUBMIT_REACTION(this.postId));this.postService.react(R,this.postId,L);let ye=this.subscribe(R,null,(Dt,Mn)=>{this.onReacted.emit(L),ye?.unsubscribe(),this.reactionPostId=null==this.postId?0:this.postId,setTimeout(()=>{this.reactionPostId=0},5e3)});this.notifier.log("Reaction submitted: "+L)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-reaction"]],inputs:{postId:"postId"},outputs:{onReacted:"onReacted"},features:[n.qOj],decls:27,vars:6,consts:[[1,"box"],["type","checkbox",1,"field-reactions",3,"id"],[1,"text-desc"],[1,"btn-react",3,"for"],[1,"icon-smile"],[3,"ngClass"],[1,"toolbox"],[1,"overlay",3,"for"],[1,"reaction-like",3,"click"],[1,"legend-reaction"],[1,"reaction-love",3,"click"],[1,"reaction-haha",3,"click"],[1,"reaction-wow",3,"click"],[1,"reaction-sad",3,"click"],[1,"reaction-angry",3,"click"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0),n._UZ(1,"input",1),n.TgZ(2,"h3",2),n._uU(3,"Press space and after tab key to navigation"),n.qZA(),n.TgZ(4,"label",3),n._UZ(5,"i",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6)(8,"label",7),n.TgZ(9,"button",8),n.NdJ("click",function(){return R.onReactionItemClick("LIKE")}),n.TgZ(10,"span",9),n._uU(11,"Like"),n.qZA()(),n.TgZ(12,"button",10),n.NdJ("click",function(){return R.onReactionItemClick("LOVE")}),n.TgZ(13,"span",9),n._uU(14,"Love"),n.qZA()(),n.TgZ(15,"button",11),n.NdJ("click",function(){return R.onReactionItemClick("HAHA")}),n.TgZ(16,"span",9),n._uU(17,"Haha"),n.qZA()(),n.TgZ(18,"button",12),n.NdJ("click",function(){return R.onReactionItemClick("WOW")}),n.TgZ(19,"span",9),n._uU(20,"Wow"),n.qZA()(),n.TgZ(21,"button",13),n.NdJ("click",function(){return R.onReactionItemClick("SAD")}),n.TgZ(22,"span",9),n._uU(23,"Sad"),n.qZA()(),n.TgZ(24,"button",14),n.NdJ("click",function(){return R.onReactionItemClick("ANGRY")}),n.TgZ(25,"span",9),n._uU(26,"Angry"),n.qZA()()()()),2&L&&(n.xp6(1),n.MGl("id","like",R.postId,""),n.xp6(3),n.MGl("for","like",R.postId,""),n.xp6(2),n.Q6J("ngClass",n.VKq(4,Fe,R.reactionPostId===R.postId)),n.xp6(2),n.MGl("for","like",R.postId,""))},dependencies:[e.mk],styles:[".btn-react[_ngcontent-%COMP%]{font-size:20px;text-transform:uppercase;font-weight:600;letter-spacing:.05em;color:#fff;cursor:pointer;transition:.3s}.btn-react[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{opacity:.5}*[_ngcontent-%COMP%]{padding:0;margin:0}body[_ngcontent-%COMP%]{background:#e9eaed;font-family:arial,sans-serif}.field-reactions[_ngcontent-%COMP%]:checked:focus ~ .text-desc[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%], [class*=reaction-][_ngcontent-%COMP%], .text-desc[_ngcontent-%COMP%]{clip:rect(1px,1px,1px,1px);overflow:hidden;position:absolute;top:0;left:0}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%], .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:focus ~ .text-desc[_ngcontent-%COMP%]{clip:auto;overflow:visible;opacity:1}.main-title[_ngcontent-%COMP%]{background:#3a5795;padding:10px;color:#fff;text-align:center;font-size:16px;text-shadow:1px 1px 3px rgba(0,0,0,.3)}.text-desc[_ngcontent-%COMP%]{font-weight:400;text-align:center;transform:translateY(-50px);white-space:nowrap;font-size:13px;width:100%}[class*=reaction-][_ngcontent-%COMP%]{border:none;background-image:url(http://deividmarques.github.io/facebook-reactions-css/assets/images/facebook-reactions.png);background-color:transparent;display:block;cursor:pointer;height:48px;position:absolute;width:48px;z-index:11;top:-21px;transform-origin:50% 100%;transform:scale(.1);transition:all .3s;outline:none;will-change:transform;opacity:0}.box[_ngcontent-%COMP%]{position:relative}.overlay[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:9;visibility:hidden}.field-reactions[_ngcontent-%COMP%]:focus ~ .label-reactions[_ngcontent-%COMP%]{border-color:#5890ff4d}.field-reactions[_ngcontent-%COMP%]:checked:focus ~ .label-reactions[_ngcontent-%COMP%]{border-color:transparent}.label-reactions[_ngcontent-%COMP%]{background:url(https://cdn4.iconfinder.com/data/icons/facebook-likes/100/1.png) no-repeat 0 0;border:2px dotted transparent;display:block;height:100px;margin:0 auto;width:100px;color:transparent;cursor:pointer}.toolbox[_ngcontent-%COMP%]{background:#fff;height:52px;box-shadow:0 0 0 1px #00000014,0 2px 2px #00000026;width:300px;border-radius:40px;top:-50px;left:0;position:absolute;visibility:hidden;opacity:0;transition:opacity .15s}.legend-reaction[_ngcontent-%COMP%]{background:rgba(0,0,0,.75);border-radius:10px;box-sizing:border-box;color:#fff;display:inline-block;font-size:11px;text-overflow:ellipsis;font-weight:700;line-height:20px;max-width:100%;opacity:0;overflow:hidden;padding:0 6px;transition:opacity 50ms ease;left:50%;position:absolute;text-align:center;top:-28px;transform:translate(-50%)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]{transform:scale(.8) translateY(-40px)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:hover, .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:focus{transition:all .2s ease-in;transform:scale(1) translateY(-35px)}.box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:hover .legend-reaction[_ngcontent-%COMP%], .box[_ngcontent-%COMP%]:hover [class*=reaction-][_ngcontent-%COMP%]:focus .legend-reaction[_ngcontent-%COMP%]{opacity:1}.box[_ngcontent-%COMP%]:hover .toolbox[_ngcontent-%COMP%]{opacity:1}.box[_ngcontent-%COMP%]:hover .toolbox[_ngcontent-%COMP%]{visibility:visible}.box[_ngcontent-%COMP%]:hover .reaction-love[_ngcontent-%COMP%]{transition-delay:.06s}.box[_ngcontent-%COMP%]:hover .reaction-haha[_ngcontent-%COMP%]{transition-delay:.09s}.box[_ngcontent-%COMP%]:hover .reaction-wow[_ngcontent-%COMP%]{transition-delay:.12s}.box[_ngcontent-%COMP%]:hover .reaction-sad[_ngcontent-%COMP%]{transition-delay:.15s}.box[_ngcontent-%COMP%]:hover .reaction-angry[_ngcontent-%COMP%]{transition-delay:.18s}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]{transform:scale(.8) translateY(-40px)}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:hover, .field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:focus{transition:all .2s ease-in;transform:scale(1) translateY(-35px)}.field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:hover .legend-reaction[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:checked ~ [class*=reaction-][_ngcontent-%COMP%]:focus .legend-reaction[_ngcontent-%COMP%]{opacity:1}.field-reactions[_ngcontent-%COMP%]:checked ~ .toolbox[_ngcontent-%COMP%]{opacity:1}.field-reactions[_ngcontent-%COMP%]:checked ~ .toolbox[_ngcontent-%COMP%], .field-reactions[_ngcontent-%COMP%]:checked ~ .overlay[_ngcontent-%COMP%]{visibility:visible}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-love[_ngcontent-%COMP%]{transition-delay:.03s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-haha[_ngcontent-%COMP%]{transition-delay:.09s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-wow[_ngcontent-%COMP%]{transition-delay:.12s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-sad[_ngcontent-%COMP%]{transition-delay:.15s}.field-reactions[_ngcontent-%COMP%]:checked ~ .reaction-angry[_ngcontent-%COMP%]{transition-delay:.18s}.reaction-like[_ngcontent-%COMP%]{left:0;background-position:0 -144px}.reaction-love[_ngcontent-%COMP%]{background-position:-48px 0;left:50px}.reaction-haha[_ngcontent-%COMP%]{background-position:-96px 0;left:100px}.reaction-wow[_ngcontent-%COMP%]{background-position:-144px 0;left:150px}.reaction-sad[_ngcontent-%COMP%]{background-position:-192px 0;left:200px}.reaction-angry[_ngcontent-%COMP%]{background-position:-240px 0;left:250px}.hide-reaction-box[_ngcontent-%COMP%]{display:none}"]})}return F})();function Qe(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",30),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onBlockChainMarkClick())}),n.qZA()}}function Ht(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-icon",31),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onVerifiedMarkClick())}),n._uU(1,"check_circle "),n.qZA()}}function Qn(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-icon",32),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDialog())}),n._uU(1,"check_circle "),n.qZA()}}function Ni(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDialog())}),n.TgZ(1,"a"),n._uU(2,"VERIFY"),n.qZA()()}}function Zo(F,Xe){1&F&&(n.TgZ(0,"small",34),n._uU(1,"RECONSIDER?"),n.qZA())}function Cl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openVerificationDetails())}),n.TgZ(1,"a"),n._uU(2),n.YNc(3,Zo,2,0,"small",33),n.qZA()()}if(2&F){const g=n.oxw();n.xp6(2),n.hij(" VERIFICATION STATUS: ",null==g.review?null:g.review.verification_status," "),n.xp6(1),n.Q6J("ngIf",null==g.review?null:g.review.verification_reconsiderable)}}function ia(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",17),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onEditReviewClick())}),n.TgZ(1,"a"),n._uU(2,"EDIT REVIEW"),n.qZA()()}}function sc(F,Xe){if(1&F&&(n.TgZ(0,"div",38)(1,"a",39),n._UZ(2,"img",40),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function Lr(F,Xe){1&F&&(n.TgZ(0,"div",38)(1,"a",41),n._uU(2,"View All"),n.qZA()())}function Tl(F,Xe){if(1&F&&(n.TgZ(0,"div",35),n.YNc(1,sc,3,2,"div",36),n.YNc(2,Lr,3,0,"div",37),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.takeReviewThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.review.thumbs.length>3)}}const Dl=function(F){return{"background-tint":F}},Qo=function(F){return[F]},kc=function(F){return{"product-menu-bar":F}};let El=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R),this.reviewService=ye,this.dialog=Dt,this.auth=Mn,this.notifier=vi,this.reportService=Fo,this.review=null,this.tinted=!1,this.showMenuBox=!1}componentName(){return"SingleReviewItemComponent"}ngOnInit(){}onReacted(g){this.reloadReview()}reloadReview(){if(null==this.review||null==this.review.id)return;let g=this.componentKey(S.Z.REVIEWS.LOAD_REVIEW(this.review.slug));this.reviewService.fetchReview(g,this.review?.product_slug,this.review?.slug),this.subscribe(g,null,(L,R)=>{this.review=R.data})}takeReviewThumbs(g){return null==this.review||g<1?[]:this.review.thumbs.length{console.log(`Dialog result: ${ye}`)})}onItemClick(g){this.showMenuBox=!this.showMenuBox}openReviewDetails(){this.showMenuBox?this.showMenuBox=!1:this.navigate("/reviews/"+this.review?.product_slug+"/"+this.review?.slug+"/"+this.review?.post?.id,g=>{})}onEditReviewClick(){null!=this.review&&("VERIFIED"===this.review.verification_status?this.showVerifiedReviewEditWarning():this.openEditReviewDialog())}showVerifiedReviewEditWarning(){const g=this.dialog.open(St);let L=g.componentInstance;L.title="YOU'RE EDITING A VERIFIED REVIEW!!",L.message="\n If you update a verified review, it'll cause this review to be unverified automatically.\n In this case you'll need to apply for verification again.\n ",L.positiveBtnText="EDIT",L.negativeBtnTxt="CANCEL",L.onPositiveBtn.subscribe(()=>{this.openEditReviewDialog(),g.close()}),L.onNegativeBtn.subscribe(()=>{g.close()}),g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}openEditReviewDialog(){if(null==this.review)return;const g=this.dialog.open(rt);let L=g.componentInstance;L.review=this.review,L.productId=this.review.product_id,g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}isMine(){if(!this.auth.isAuthenticated())return!1;const g=this.auth.getAuth();return this.review?.post?.posted_by_username===g.username}canRequestVerification(){return this.isMine()&&null==this.review?.verification_status}hasVerification(){return this.isMine()&&null!=this.review?.verification_status}isVerified(){return"VERIFIED"===this.review?.verification_status}openVerificationDialog(){if(null==this.review)return;if(null!=this.review.verification_status)return void this.openVerificationDetails();const g=this.dialog.open(Ti);g.componentInstance.reviewId=this.review.id,g.afterClosed().subscribe(R=>{this.reloadReview()})}resolveReportView(){if(null==this.review?.post)return;let g=this.componentKey(S.Z.REVIEWS.GET_REPORT_EXISTS(this.review?.post.id));this.reportService.getReportCountForPost(g,this.review.post.id),this.subscribe(g,null,(L,R)=>{R.data>0?this.openReportDetails():this.openReportDialog(),this.loading=!1}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.error("Error",R.data.error.message),this.loading=!1})}openReportDialog(){if(null==this.review?.post)return;const g=this.dialog.open(io),L=g.componentInstance;L.reviewId=this.review.id,L.postId=this.review.post?.id,g.afterClosed().subscribe(R=>{this.reloadReview()})}onVerifiedMarkClick(){this.notifier.success("Verified Review","This review has been verified by "+this.review?.verified_by)}openVerificationDetails(){if(null==this.review)return;const g=this.dialog.open(jr);g.componentInstance.reviewId=this.review.id,g.afterClosed().subscribe(R=>{})}openReportDetails(){if(null==this.review?.post)return;const g=this.dialog.open(Ia),L=g.componentInstance;L.reviewId=this.review.id,L.postId=this.review.post.id,g.afterClosed().subscribe(R=>{})}isBlockChained(){return null!=this.review&&this.review.chained}onBlockChainMarkClick(){if(null==this.review)return;let g=this.review.hash;this.notifier.info("Info","Blockchain Digest: "+g,()=>{xo.g.copyToClipboard(g)},5e3)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F),n.Y36(Re.uw),n.Y36(_e.e),n.Y36(te.l),n.Y36(_s))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-single-review-item"]],inputs:{review:"review",tinted:"tinted"},features:[n.qOj],decls:55,vars:36,consts:[[1,"blog-post-area","mt-4",3,"ngClass"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","my-2"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"profile-img","profile-img-rounded",3,"src","routerLink"],[1,"content","ms-2"],[3,"routerLink"],[1,"user-name"],[1,"top-icons-area","pt-2"],["style","height: 16px; width: auto; margin-right: 10px;","src","assets/icons/blockchain.svg",3,"click",4,"ngIf"],["class","verified-icon","aria-hidden","false","aria-label","View Product",3,"click",4,"ngIf"],["class","unverified-icon","aria-hidden","false","aria-label","View Product",3,"click",4,"ngIf"],["aria-hidden","false","aria-label","View Product",1,"inventory-icon",3,"routerLink"],[3,"ngClass","click"],[1,"icon-dot-3"],[1,"productMenuBox"],[3,"click",4,"ngIf"],[3,"click"],[3,"avgRating","ratings"],[1,"blog-post-content","py-2",3,"click"],[2,"color","green"],[2,"color","darkgoldenrod"],["class","product-gallery",4,"ngIf"],[1,"blog-post-comment-section","d-flex","justify-content-around","bdr-b","py-3","mt-2"],[1,"react","d-flex","align-items-center"],[3,"postId","onReacted"],[1,"comment","d-flex","align-items-center",3,"click"],[1,"icon-chat"],[1,"share","d-flex","align-items-center"],[1,"icon-paper-plane"],["src","assets/icons/blockchain.svg",2,"height","16px","width","auto","margin-right","10px",3,"click"],["aria-hidden","false","aria-label","View Product",1,"verified-icon",3,"click"],["aria-hidden","false","aria-label","View Product",1,"unverified-icon",3,"click"],["style","color: #4AD295;",4,"ngIf"],[2,"color","#4AD295"],[1,"product-gallery"],["class","single-product-item",4,"ngFor","ngForOf"],["class","single-product-item",4,"ngIf"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],["href","#"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),n._UZ(4,"img",4),n.TgZ(5,"div",5)(6,"a",6)(7,"h4",7),n._uU(8),n.qZA()(),n.TgZ(9,"p"),n._uU(10),n.ALo(11,"readableDate"),n.qZA()()(),n.TgZ(12,"div",8),n.YNc(13,Qe,1,0,"img",9),n.YNc(14,Ht,2,0,"mat-icon",10),n.YNc(15,Qn,2,0,"mat-icon",11),n.TgZ(16,"mat-icon",12),n._uU(17,"inventory_2 "),n.qZA(),n.TgZ(18,"div",13),n.NdJ("click",function(Dt){return R.onItemClick(Dt)}),n._UZ(19,"i",14),n.TgZ(20,"div",15)(21,"ul"),n.YNc(22,Ni,3,0,"li",16),n.YNc(23,Cl,4,2,"li",16),n.YNc(24,ia,3,0,"li",16),n.TgZ(25,"li",17),n.NdJ("click",function(){return R.resolveReportView()}),n.TgZ(26,"a"),n._uU(27,"REPORT"),n.qZA()()()()()()(),n._UZ(28,"app-rating-view",18),n.TgZ(29,"div",19),n.NdJ("click",function(){return R.openReviewDetails()}),n.TgZ(30,"h5"),n._uU(31),n.qZA(),n.TgZ(32,"p",20),n._uU(33,"Pros"),n.qZA(),n.TgZ(34,"p"),n._uU(35),n.qZA(),n._UZ(36,"br"),n.TgZ(37,"p",21),n._uU(38,"Cons"),n.qZA(),n.TgZ(39,"p"),n._uU(40),n.qZA()(),n.YNc(41,Tl,3,2,"div",22),n.qZA(),n.TgZ(42,"div",23)(43,"div",24)(44,"app-reaction",25),n.NdJ("onReacted",function(Dt){return R.onReacted(Dt)}),n.qZA(),n.TgZ(45,"h4",17),n.NdJ("click",function(Dt){return R.onReactionCountClick(Dt)}),n._uU(46),n.qZA()(),n.TgZ(47,"div",26),n.NdJ("click",function(){return R.openReviewDetails()}),n._UZ(48,"i",27),n.TgZ(49,"h4"),n._uU(50),n.qZA(),n._UZ(51,"h4"),n.qZA(),n.TgZ(52,"div",28),n._UZ(53,"i",29)(54,"h4"),n.qZA()()()),2&L&&(n.Q6J("ngClass",n.VKq(26,Dl,R.tinted)),n.xp6(4),n.s9C("src",null!=(null==R.review||null==R.review.post?null:R.review.post.posted_by_photo)?null==R.review||null==R.review.post?null:R.review.post.posted_by_photo:"assets/img/default-avatar.png",n.LSH),n.Q6J("routerLink",n.VKq(28,Qo,"/u/"+(null==R.review||null==R.review.post?null:R.review.post.posted_by_username))),n.xp6(2),n.Q6J("routerLink",n.VKq(30,Qo,"/u/"+(null==R.review||null==R.review.post?null:R.review.post.posted_by_username))),n.xp6(2),n.Oqu(null==R.review?null:R.review.posted_by_name),n.xp6(2),n.Oqu(n.xi3(11,23,null==R.review?null:R.review.updated_at,!0)),n.xp6(3),n.Q6J("ngIf",R.isBlockChained()),n.xp6(1),n.Q6J("ngIf",R.isVerified()),n.xp6(1),n.Q6J("ngIf",R.isMine()&&!R.isVerified()),n.xp6(1),n.Q6J("routerLink",n.VKq(32,Qo,"/products/"+(null==R.review?null:R.review.product_id)+"/"+(null==R.review?null:R.review.product_slug))),n.xp6(2),n.Q6J("ngClass",n.VKq(34,kc,R.showMenuBox)),n.xp6(4),n.Q6J("ngIf",R.canRequestVerification()),n.xp6(1),n.Q6J("ngIf",R.hasVerification()),n.xp6(1),n.Q6J("ngIf",R.isMine()),n.xp6(4),n.Q6J("avgRating",null==R.review?null:R.review.average_rating)("ratings",null==R.review?null:R.review.ratings),n.xp6(3),n.Oqu(null==R.review?null:R.review.title),n.xp6(4),n.Oqu(null==R.review?null:R.review.pros),n.xp6(5),n.Oqu(null==R.review?null:R.review.cons),n.xp6(1),n.Q6J("ngIf",null!=R.review&&R.review.thumbs.length>0),n.xp6(3),n.Q6J("postId",null==R.review||null==R.review.post?null:R.review.post.id),n.xp6(2),n.hij("(",null==R.review||null==R.review.post||null==R.review.post.reaction_stats?null:R.review.post.reaction_stats.total,")"),n.xp6(4),n.hij("(",null==R.review||null==R.review.post||null==R.review.post.reaction_stats?null:R.review.post.reaction_stats.comments,")"))},dependencies:[e.mk,e.sg,e.O5,l.rH,bi.Hw,Ae,le,Yr.G],styles:['.blog-post-area[_ngcontent-%COMP%] .blog-post-top-left[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.7rem}.user-name[_ngcontent-%COMP%]{color:#44d62c!important}.top-icons-area[_ngcontent-%COMP%]{display:flex}.inventory-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0}.verified-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0;color:#44d62c}.unverified-icon[_ngcontent-%COMP%]{font-size:1.3em;margin:0 10px 0 0;color:gray}.flaticon-more[_ngcontent-%COMP%]{font-size:1.3em}.view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none;position:relative;cursor:pointer}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:10px;padding:0 10px;list-style:none;width:250px;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}']})}return F})();function wa(F,Xe){1&F&&n._UZ(0,"util-progress",7),2&F&&n.Q6J("bar",!0)}function Xo(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",8)(1,"div",4)(2,"div",9)(3,"div",10)(4,"label",11)(5,"small"),n._uU(6,"From"),n.qZA()(),n._UZ(7,"input",12),n.qZA(),n.TgZ(8,"div",10)(9,"label",13)(10,"small"),n._uU(11,"To"),n.qZA()(),n.TgZ(12,"input",14),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.qZA()()(),n.TgZ(13,"div",15)(14,"div",16)(15,"div",17)(16,"label",18)(17,"small"),n._uU(18,"Verification"),n.qZA()(),n.TgZ(19,"select",19),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(20,"option",20),n._uU(21,"Choose"),n.qZA(),n.TgZ(22,"option",21),n._uU(23,"All Reviews"),n.qZA(),n.TgZ(24,"option",22),n._uU(25,"Only Verified"),n.qZA()()()(),n.TgZ(26,"div",16)(27,"div",17)(28,"label",23)(29,"small"),n._uU(30,"Rating"),n.qZA()(),n.TgZ(31,"select",24),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(32,"option",20),n._uU(33,"Choose"),n.qZA(),n.TgZ(34,"option",25),n._uU(35,"1"),n.qZA(),n.TgZ(36,"option",26),n._uU(37,"2"),n.qZA(),n.TgZ(38,"option",27),n._uU(39,"3"),n.qZA(),n.TgZ(40,"option",28),n._uU(41,"4"),n.qZA(),n.TgZ(42,"option",29),n._uU(43,"5"),n.qZA(),n.TgZ(44,"option",30),n._uU(45,"6"),n.qZA(),n.TgZ(46,"option",31),n._uU(47,"7"),n.qZA(),n.TgZ(48,"option",32),n._uU(49,"8"),n.qZA(),n.TgZ(50,"option",33),n._uU(51,"9"),n.qZA(),n.TgZ(52,"option",34),n._uU(53,"10"),n.qZA()()()(),n.TgZ(54,"div",16)(55,"div",17)(56,"label",35)(57,"small"),n._uU(58,"Sort"),n.qZA()(),n.TgZ(59,"select",36),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onFilterChange(R))}),n.TgZ(60,"option",20),n._uU(61,"Choose"),n.qZA(),n.TgZ(62,"option",37),n._uU(63,"Ascending"),n.qZA(),n.TgZ(64,"option",38),n._uU(65,"Descending"),n.qZA()()()()()()()}if(2&F){const g=n.oxw();n.xp6(7),n.Q6J("formControl",g.fromDateFilter),n.xp6(5),n.Q6J("formControl",g.toDateFilter),n.xp6(7),n.Q6J("formControl",g.verificationFilter),n.xp6(1),n.Q6J("selected",""===g.verificationFilter.value),n.xp6(11),n.Q6J("formControl",g.ratingFilter),n.xp6(1),n.Q6J("selected",""===g.ratingFilter.value),n.xp6(27),n.Q6J("formControl",g.sortFilter),n.xp6(1),n.Q6J("selected",""===g.sortFilter.value)}}function Pr(F,Xe){1&F&&n._UZ(0,"util-progress",39),2&F&&n.Q6J("padding",50)}function Ms(F,Xe){if(1&F&&(n.TgZ(0,"div"),n._UZ(1,"app-single-review-item",41),n.qZA()),2&F){const g=Xe.$implicit;n.xp6(1),n.Q6J("review",g)}}function As(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Ms,2,1,"div",40),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.reviews?null:g.reviews.content)}}function qr(F,Xe){1&F&&(n.TgZ(0,"a",42),n._uU(1," View All Reviews "),n.qZA())}let Bs=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.eventBus=g,this.router=L,this.subContainer=R,this.reviewService=ye,this.productId=0,this.username=null,this.reviews=null,this.verificationFilter=new Z.NI(""),this.ratingFilter=new Z.NI(""),this.sortFilter=new Z.NI(""),this.fromDateFilter=new Z.NI(""),this.toDateFilter=new Z.NI("")}componentName(){return"ReviewListComponent"}ngOnInit(){this.fetchReviews({})}fetchReviews(g){null!=this.productId&&this.productId>0?this.fetchProductReviews(g):null!=this.username&&this.fetchUserReviews(g)}fetchProductReviews(g){this.loading=!0;let L=this.componentKey(S.Z.REVIEWS.LOADED_PRODUCT_REVIEWS(this.productId));this.reviewService.fetchProductReviews(L,this.productId,g),this.subscribe(L,null,(R,ye)=>{this.reviews=ye.data,this.loading=!1})}fetchUserReviews(g){if(null==this.username)return;this.loading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_USER_REVIEWS(this.username));this.reviewService.fetchUserReviews(L,this.username,g),this.subscribe(L,null,(R,ye)=>{this.reviews=ye.data,this.loading=!1})}onFilterChange(g){this.fetchReviews({verification_status:null==this.verificationFilter.value?"":this.verificationFilter.value,rating:null==this.ratingFilter.value?"":this.ratingFilter.value,sort_direction:null==this.sortFilter.value?"":this.sortFilter.value,from_date:""===this.fromDateFilter.value?"":new Date(this.fromDateFilter.value?this.fromDateFilter.value:""),to_date:""===this.toDateFilter.value?"":new Date(this.toDateFilter.value?this.toDateFilter.value:"")})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(se.F))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-review-list"]],inputs:{productId:"productId",username:"username"},features:[n.qOj],decls:7,vars:5,consts:[[3,"bar",4,"ngIf"],["class","select-category-area pt-4",4,"ngIf"],[3,"padding",4,"ngIf"],[4,"ngIf"],[1,"container"],[1,"view-all-reviews","pb-3","text-end"],["href","#",4,"ngIf"],[3,"bar"],[1,"select-category-area","pt-4"],[1,"date-filters","mb-2"],[1,"single-date-filter"],["for","from_date"],["id","from_date","type","date","name","from_date",3,"formControl"],["for","to_date"],["id","to_date","type","date","name","to_date",3,"formControl","change"],[1,"row"],[1,"col"],[1,"single-category-item"],["for","verification"],["id","verification","aria-label","Taste",1,"form-select",3,"formControl","change"],["value","",3,"selected"],["value",""],["value","VERIFIED"],["for","rating"],["id","rating","aria-label","1",1,"form-select",3,"formControl","change"],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["value","8"],["value","9"],["value","10"],["for","sort"],["id","sort","aria-label","Select",1,"form-select",3,"formControl","change"],["value","ASC"],["value","DESC"],[3,"padding"],[4,"ngFor","ngForOf"],[3,"review"],["href","#"]],template:function(L,R){1&L&&(n.YNc(0,wa,1,1,"util-progress",0),n.YNc(1,Xo,66,8,"section",1),n.YNc(2,Pr,1,1,"util-progress",2),n.YNc(3,As,2,1,"div",3),n.TgZ(4,"div",4)(5,"div",5),n.YNc(6,qr,2,0,"a",6),n.qZA()()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(3),n.Q6J("ngIf",!(null!=R.reviews&&R.reviews.last)))},dependencies:[e.sg,e.O5,Z.YN,Z.Kr,Z.Fj,Z.EJ,Z.JJ,Z.oH,Ge.t,El],styles:["input[type=date][_ngcontent-%COMP%]{color:gray!important;background-color:#444;max-width:100%;padding:5px 10px;border-radius:.25em;border:.5px solid black;margin-top:5px}.single-date-filter[_ngcontent-%COMP%]{display:flex;flex-direction:column}.date-filters[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}"]})}return F})();var Ro=C(6929);function Va(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("padding",70)}function Sl(F,Xe){if(1&F&&(n.TgZ(0,"div",30)(1,"div",31)(2,"h2",32),n._uU(3),n.qZA(),n.TgZ(4,"h3"),n._uU(5),n.qZA(),n.TgZ(6,"span",32),n._uU(7),n.qZA()()()),2&F){const g=n.oxw();n.xp6(3),n.Oqu(g.product.name),n.xp6(2),n.Oqu(g.product.vendor_name),n.xp6(2),n.Oqu(g.product.description)}}function Gl(F,Xe){1&F&&n._UZ(0,"util-progress",33),2&F&&n.Q6J("size",30)("padding",70)}function Hs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",34)(1,"div",4)(2,"div",35),n._UZ(3,"img",36),n.TgZ(4,"div",37)(5,"h4"),n._uU(6),n.qZA(),n.TgZ(7,"p"),n._uU(8,"Your opinion matters. Let's help our community by posting a review."),n.qZA()()(),n.TgZ(9,"div",38)(10,"a",39),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openPostReviewDialog())}),n._UZ(11,"i",40),n.TgZ(12,"h4"),n._uU(13," Post a review"),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(3),n.s9C("src",g.isLoggedIn()?g.getAvatar():"assets/img/default-avatar.png",n.LSH),n.s9C("alt",g.getAuth().name),n.xp6(3),n.hij("Hey, ",g.getAuth().name,"")}}function ja(F,Xe){if(1&F&&n._UZ(0,"app-single-review-item",44),2&F){const g=n.oxw(2);n.Q6J("review",g.myReview)("tinted",!0)}}function es(F,Xe){if(1&F&&(n.TgZ(0,"div")(1,"h5",9),n._uU(2,"YOUR REVIEW"),n.qZA(),n.TgZ(3,"div",41),n._UZ(4,"div",42),n.YNc(5,ja,1,2,"app-single-review-item",43),n.qZA()()),2&F){const g=n.oxw();n.xp6(5),n.Q6J("ngIf",null!=g.myReview)}}function ts(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",45),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCriticReviewsMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showCriticReviewsMenu)("items",g.getMenuItems())}}function Wl(F,Xe){1&F&&n._UZ(0,"util-progress",46),2&F&&n.Q6J("bar",!0)}function gs(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}const ns=function(F){return{"background-image":F}};let vc=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){super(g,L,R),this.auth=Dt,this.reviewService=Mn,this.notifier=vi,this.productService=Fo,this.dialog=Ya,this.seoTitle=Rd,this.seoMeta=kd,this.carouselItems=[],this.productId=0,this.productSlug="",this.myReview=null,this.avgRatings=[],this.product=null,this.myReviewLoading=!1,this.criticReviews=null,this.criticReviewers=[],this.criticReviewsPeriod="THIS MONTH",this.criticReviewsLoading=!1,this.showCriticReviewsMenu=!1,this.badgeForCritic="Critic",this.productId=ye.snapshot.params.id,this.productSlug=ye.snapshot.params.slug}componentName(){return"ProductDetailsComponent"}ngOnInit(){this.registerSubscriptions(),this.fetchProductDetails()}fetchProductDetails(){let g=this.componentKey(S.Z.PRODUCTS.PRODUCT_DETAILS_LOADED(this.productSlug));this.productService.fetchDetails(g,this.productSlug),this.subscribe(g,null,(L,R)=>{this.product=R.data,this.resolveSeo(this.product),this.fetchAvgRating(this.productId),this.auth.isAuthenticated()&&this.fetchMyReview(this.productId);let ye=Nt.b.calculateRange(this.criticReviewsPeriod.replace(" ","_"));this.fetchCriticReviews({page:0,from_date:ye?.fromDate,to_date:ye?.toDate,slice:!0,badge:this.badgeForCritic})})}fetchMyReview(g){this.myReviewLoading=!0;let L=this.componentKey(S.Z.REVIEWS.LOAD_MY_REVIEW(g));this.reviewService.fetchMyReview(L,this.productId),this.subscribe(L,null,(R,ye)=>{this.myReview=ye.data,this.myReviewLoading=!1}),this.subscribe(this.getErrorKey(L),null,(R,ye)=>{this.myReviewLoading=!1})}fetchAvgRating(g){let L=this.componentKey(S.Z.REVIEWS.LOADED_PRODUCT_AVG_RATINGS());this.productService.fetchAvgRatings(L,g),this.subscribe(L,null,(R,ye)=>{this.avgRatings=ye.data})}getMenuItems(){return bt.$}fetchCriticReviews(g){this.criticReviewsLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_CRITIC_REVIEWS());this.reviewService.fetchProductReviews(L,this.productId,g),this.subscribe(L,null,(R,ye)=>{this.criticReviews=ye.data,this.criticReviewers=F.mapToCarouselItems(ye.data),this.criticReviewsLoading=!1})}static mapToCarouselItems(g){return g.content.map(L=>({id:L?.id,slug:L?.slug,title:L?.posted_by_name,img:null!=L?.posted_by_avatar?L?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+L.id+"/"+L.post_id,badges:[]}))}onCriticReviewsMenuItemClick(g){this.showCriticReviewsMenu&&(this.showCriticReviewsMenu=!1),this.criticReviewsPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic})}isLoggedIn(){return this.auth.isAuthenticated()}registerSubscriptions(){let g=this.globalKey(S.Z.REVIEWS.MY_REVIEW_POSTED(this.productId));this.subscribe(g,null,(L,R)=>{this.myReview=R.data,this.myReviewLoading=!1})}onUserItemClick(g){this.notifier.log(g)}strSubstring(g,L){let R=w.m.takeOnly(g,L);return null!=g&&g.length>L&&(R+="..See More.."),R}getAuth(){return this.auth.getAuth()}getAvatar(){return this.getAuth().avatar??"assets/img/default-avatar.png"}openPostReviewDialog(){if(!this.auth.isAuthenticated())return void this.router.navigate(["/login"]);const g=this.dialog.open(rt,{disableClose:!0});g.componentInstance.productId=this.productId,g.afterClosed().subscribe(R=>{console.log(`Dialog result: ${R}`)})}resolveSeo(g){null!=g&&this.initSeoItems(this.seoTitle,this.seoMeta,"Review - Rating for "+g.name,g.description,["Buy "+g.name," review,"+g.name," rating, where to buy"],null,null,g?.cover_photo,this.getPermalink())}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(_e.e),n.Y36(se.F),n.Y36(te.l),n.Y36(Qt.M),n.Y36(Re.uw),n.Y36(nn.Dx),n.Y36(nn.h_))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-product-details"]],features:[n.qOj],decls:56,vars:19,consts:[[1,"product-single-post",3,"ngStyle"],[3,"padding",4,"ngIf"],["class","container d-flex align-items-end h-100 blurry-background",4,"ngIf"],["id","my_review",1,"rating-reviews-area","bdr-b","blog-post-area"],[1,"container"],[3,"ratings","avgRating"],[3,"size","padding",4,"ngIf"],["class","comunity-post-area pt-4 pb-3 mt-3 bdr-top",4,"ngIf"],[4,"ngIf"],[1,"section-header"],[1,"reviewers-section","pb-2","mt-2","bdr-b"],[1,"reviewers-content","section-title","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items"],[3,"bar",4,"ngIf"],[1,"bdr-top","mt-4"],[1,"container","section-header"],[3,"productId"],[1,"youtube-reviews-section","bdr-b","bdr-top","mb-5","pb-3"],[1,"section-title","d-flex","justify-content-between","my-4"],[3,"items","design"],[1,"owl-carousel","youtube-reviews"],[1,"item","single-review-area"],["src","../../../../../assets/img/youtube-reviews/youtube-review.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-2.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-3.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-4.png","alt",""],["src","../../../../../assets/img/youtube-reviews/youtube-review-5.png","alt",""],[3,"padding"],[1,"container","d-flex","align-items-end","h-100","blurry-background"],[1,"recipe-content","pb-4"],[1,"excerpt"],[3,"size","padding"],[1,"comunity-post-area","pt-4","pb-3","mt-3","bdr-top"],[1,"comunity-post","d-flex","mb-4"],[1,"profile-img-bg","profile-img-rounded",3,"src","alt"],[1,"content","ms-3"],[1,"comunity-add-post","d-flex","justify-content-end","align-items-center"],[1,"d-flex","align-items-center",3,"click"],[1,"flaticon-plus"],[1,"row","bdr-top","mb-3"],[1,"section-title","ms-2"],[3,"review","tinted",4,"ngIf"],[3,"review","tinted"],[3,"showMenubar","items","menuItemClick"],[3,"bar"]],template:function(L,R){1&L&&(n.TgZ(0,"div")(1,"section",0),n.YNc(2,Va,1,1,"util-progress",1),n.YNc(3,Sl,8,3,"div",2),n.qZA(),n.TgZ(4,"section",3)(5,"div",4),n._UZ(6,"app-rating-view",5),n.YNc(7,Gl,1,2,"util-progress",6),n.YNc(8,Hs,14,3,"section",7),n.qZA(),n.YNc(9,es,6,1,"div",8),n.qZA(),n.TgZ(10,"h5",9),n._uU(11,"CRITIC REVIEWS"),n.qZA(),n.TgZ(12,"section",10)(13,"div",4)(14,"div",11),n.NdJ("click",function(){return R.showCriticReviewsMenu=!R.showCriticReviewsMenu}),n.TgZ(15,"h6"),n._uU(16,"CHOOSE PERIOD"),n.qZA(),n.TgZ(17,"a")(18,"h5"),n._uU(19),n.qZA()(),n._UZ(20,"img",12),n.qZA(),n.YNc(21,ts,1,2,"app-menubox",13),n._UZ(22,"app-small-carousel",14),n.YNc(23,Wl,1,1,"util-progress",15),n.YNc(24,gs,3,0,"div",8),n.qZA()(),n.TgZ(25,"section",16)(26,"h5",17),n._uU(27,"USER REVIEWS"),n.qZA(),n._UZ(28,"app-review-list",18),n.qZA(),n.TgZ(29,"section",19)(30,"div",4)(31,"div",20)(32,"h5"),n._uU(33,"REVIEWS ON YOUTUBE"),n.qZA(),n.TgZ(34,"h5"),n._uU(35,"VIEW ALL"),n.qZA()(),n._UZ(36,"app-small-carousel",21),n.TgZ(37,"div",22)(38,"div",23),n._UZ(39,"img",24),n.qZA(),n.TgZ(40,"div",23),n._UZ(41,"img",25),n.qZA(),n.TgZ(42,"div",23),n._UZ(43,"img",26),n.qZA(),n.TgZ(44,"div",23),n._UZ(45,"img",27),n.qZA(),n.TgZ(46,"div",23),n._UZ(47,"img",28),n.qZA(),n.TgZ(48,"div",23),n._UZ(49,"img",25),n.qZA(),n.TgZ(50,"div",23),n._UZ(51,"img",26),n.qZA(),n.TgZ(52,"div",23),n._UZ(53,"img",27),n.qZA(),n.TgZ(54,"div",23),n._UZ(55,"img",28),n.qZA()()()()()),2&L&&(n.Q6J("@dataLoaded",null==R.product?"loading":"loaded"),n.xp6(1),n.Q6J("ngStyle",n.VKq(17,ns,"url("+(null==R.product?null:R.product.cover_photo)+")")),n.xp6(1),n.Q6J("ngIf",null==R.product),n.xp6(1),n.Q6J("ngIf",null!=R.product),n.xp6(3),n.Q6J("ratings",R.avgRatings)("avgRating",null==R.product?null:R.product.average_rating),n.xp6(1),n.Q6J("ngIf",R.myReviewLoading),n.xp6(1),n.Q6J("ngIf",!R.isLoggedIn()||null==R.myReview&&!R.myReviewLoading),n.xp6(1),n.Q6J("ngIf",R.isLoggedIn()&&0==R.myReviewLoading),n.xp6(10),n.Oqu(R.criticReviewsPeriod),n.xp6(2),n.Q6J("ngIf",!R.criticReviewsLoading),n.xp6(1),n.Q6J("items",R.criticReviewers),n.xp6(1),n.Q6J("ngIf",R.criticReviewsLoading),n.xp6(1),n.Q6J("ngIf",!R.criticReviewsLoading&&0===R.criticReviewers.length),n.xp6(4),n.Q6J("productId",R.productId),n.xp6(8),n.Q6J("items",R.carouselItems)("design","youtube-reviews"))},dependencies:[e.O5,e.PC,Ge.t,Dn.q,El,Ae,Bs,Ro.v],styles:[".blurry-background[_ngcontent-%COMP%]{background-image:linear-gradient(to bottom,rgba(25,0,0,0),rgba(3,12,0,.91))}.section-header[_ngcontent-%COMP%]{padding:1em;font-weight:700}"]})}return F})();var Os=function(F){return F.STATUS="STATUS",F.USER_REVIEW="USER_REVIEW",F}(Os||{}),Is=function(F){return F.STATUS="STATUS",F.USER_REVIEW="USER_REVIEW",F.REACTION="REACTION",F}(Is||{});function Za(F,Xe){1&F&&(n.TgZ(0,"span"),n._uU(1,"public"),n.qZA())}function za(F,Xe){1&F&&(n.TgZ(0,"span"),n._uU(1,"followers"),n.qZA())}function $l(F,Xe){1&F&&(n.TgZ(0,"div",29),n._UZ(1,"util-progress",30),n.qZA()),2&F&&(n.xp6(1),n.Q6J("bar",!0)("determinate",!1))}function Tr(F,Xe){if(1&F&&n._UZ(0,"textarea",31),2&F){const g=n.oxw(2);n.Q6J("formControl",g.content)}}function Lc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",32),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeExImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit,n.LSH)}function Kl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",32),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.removeImage(ye))}),n.qZA()}2&F&&n.s9C("src",Xe.$implicit.previewUrl,n.LSH)}function Rs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"h2"),n._uU(3,"Create a Post"),n.qZA(),n.TgZ(4,"a",4),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.onCancel.emit(!0))}),n._UZ(5,"i",5),n.qZA()(),n.TgZ(6,"div",6)(7,"a",7),n._UZ(8,"img",8),n.qZA(),n.TgZ(9,"div",9)(10,"span",10),n._uU(11),n.qZA(),n.TgZ(12,"div",11),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.pr.is_public=!R.pr.is_public)}),n.TgZ(13,"a"),n._UZ(14,"i",12),n.YNc(15,Za,2,0,"span",13),n.YNc(16,za,2,0,"span",13),n._UZ(17,"i",14),n.qZA()()()(),n.TgZ(18,"div",15)(19,"form",16),n.YNc(20,$l,2,2,"div",17),n.YNc(21,Tr,1,1,"textarea",18),n.TgZ(22,"section",19)(23,"div",20)(24,"div",21)(25,"div"),n.YNc(26,Lc,1,1,"img",22),n.YNc(27,Kl,1,1,"img",22),n.qZA(),n.TgZ(28,"input",23),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onImageSelected(R))}),n.qZA()()()(),n.TgZ(29,"div",24)(30,"div",25)(31,"label",26),n._UZ(32,"i",27),n.qZA()(),n.TgZ(33,"button",28),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submit())}),n._uU(34,"post"),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(8),n.s9C("src",g.getAuth().avatar,n.LSH),n.xp6(3),n.Oqu(g.getAuth().name),n.xp6(4),n.Q6J("ngIf",g.pr.is_public),n.xp6(1),n.Q6J("ngIf",!g.pr.is_public),n.xp6(4),n.Q6J("ngIf",g.loading),n.xp6(1),n.Q6J("ngIf",!g.loading),n.xp6(5),n.Q6J("ngForOf",null==g.pr?null:g.pr.thumbs),n.xp6(1),n.Q6J("ngForOf",g.uploadFiles)}}function xa(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",33)(1,"div",20)(2,"div",34)(3,"input",35),n.NdJ("keyup.enter",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitPost())}),n.qZA(),n.TgZ(4,"a",36),n._UZ(5,"i",37),n.qZA(),n.TgZ(6,"a",38),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.submitPost())}),n._UZ(7,"i",39),n.qZA()()()()}if(2&F){const g=n.oxw();n.xp6(3),n.Q6J("formControl",g.content)}}let Ga=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.notifier=ye,this.postService=Dt,this.auth=Mn,this.fileUploadService=vi,this.commentBox=!1,this.onPosted=new n.vpe,this.onCancel=new n.vpe,this.post=null,this.pr={id:null,parent_id:null,content:"",images:[],thumbs:[],type:"STATUS",hashtags:[],is_public:!0},this.content=new Z.NI("",[Z.kI.required,Z.kI.minLength(1)]),this.uploadFiles=[]}componentName(){return"PostBoxComponent"}ngOnInit(){this.loading=!1}ngAfterViewInit(){setTimeout(()=>{null!=this.post&&(this.pr.id=this.post.id,this.pr.images=this.post.images,this.pr.thumbs=this.post.thumbs,this.pr.content=this.post.content,this.content.setValue(this.pr.content))},200)}uploadImages(){console.log("uploading images..");let g=[];this.uploadFiles.forEach(R=>{g.push(R.file)});let L=this.componentKey(S.Z.FILES.IMAGE_UPLOAD("post:"+this.pr?.id));this.fileUploadService.uploadImages(L,g),this.subscribe(L,null,(R,ye)=>{this.notifier.log(ye.data);let Dt=ye.data;Dt.map(Mn=>Mn.image_url).forEach(Mn=>{this.pr.images.push(Mn)}),Dt.map(Mn=>Mn.thumb_url).forEach(Mn=>{this.pr.thumbs.push(Mn)}),this.submitPost()})}submit(){this.loading=!0,this.uploadFiles.length>0?this.uploadImages():this.submitPost()}submitPost(){if(!this.content.valid)return void this.notifier.warning("Invalid!","Need to input a valid comment.\n"+this.content.value);this.pr.parent_id=null==this.parentId?null:this.parentId,this.pr.content=this.content.value,this.pr.hashtags=xo.g.findHashtags(this.pr.content,!0);let g=this.componentKey(S.Z.POSTS.SUBMIT_POST(this.pr.parent_id,this.pr.content));null==this.pr.id?this.postService.submitPost(g,this.pr):this.postService.updatePost(g,this.pr),this.subscribe(g,null,(L,R)=>{this.onPosted.emit(R.data),this.content.setValue(""),this.loading=!1})}getAuth(){return this.auth.getAuth()}onImageSelected(g){if(this.uploadFiles.length>=3)this.notifier.info("Operation not allowed!","You can upload 3 photos in a post.");else if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R))}}}removeExImage(g){if(null==this.pr)return;let L=this.pr.thumbs.indexOf(g);this.pr.thumbs.splice(L),this.pr.images.splice(L)}removeImage(g){let L=this.uploadFiles.map(R=>R.previewUrl).indexOf(g.previewUrl);this.uploadFiles.splice(L,1)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(te.l),n.Y36(Wn),n.Y36(_e.e),n.Y36(oe.J))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-box"]],inputs:{commentBox:"commentBox",parentId:"parentId",post:"post"},outputs:{onPosted:"onPosted",onCancel:"onCancel"},features:[n.qOj],decls:2,vars:2,consts:[["class","create-post-box",4,"ngIf"],["class","comment-box-area",4,"ngIf"],[1,"create-post-box"],[1,"cpb-top-area"],[1,"cancel-post",3,"click"],[1,"icon-cancel"],[1,"cpb-user-info-area"],["href","#",1,"cpb-user-avater"],["alt","astha create post user avater",3,"src"],[1,"cpb-user-info-wrapper"],[1,"user-name"],[1,"select-audions",3,"click"],[1,"icon-globe"],[4,"ngIf"],[1,"icon-down-dir"],[1,"cpb-write-post-area"],["method","post"],["class","my-5",4,"ngIf"],["autofocus","","name","message","id","message","rows","5","placeholder","what do you want to talk about?",3,"formControl",4,"ngIf"],[1,"upload-img-area","review-rdi","pt-4"],[1,"container"],[1,"post-last-step-gallery"],["class","m-1","alt","",3,"src","click",4,"ngFor","ngForOf"],["type","file","id","image-upload",3,"change"],[1,"cpb-share-creation-state-bottom"],[1,"share-creation-state-icon"],["for","image-upload"],[1,"icon-picture"],["type","button",3,"click"],[1,"my-5"],[3,"bar","determinate"],["autofocus","","name","message","id","message","rows","5","placeholder","what do you want to talk about?",3,"formControl"],["alt","",1,"m-1",3,"src","click"],[1,"comment-box-area"],[1,"write-comment-box"],["type","text","name","commentbox","id","commentbox","placeholder","Enter your comment","required","required",3,"formControl","keyup.enter"],[1,"upload-item"],[1,"icon-folder-add"],[1,"submit-icon",3,"click"],[1,"icon-paper-plane"]],template:function(L,R){1&L&&(n.YNc(0,Rs,35,8,"div",0),n.YNc(1,xa,8,1,"section",1)),2&L&&(n.Q6J("ngIf",!R.commentBox),n.xp6(1),n.Q6J("ngIf",R.commentBox))},dependencies:[e.sg,e.O5,Z._Y,Z.Fj,Z.JJ,Z.JL,Z.Q7,Z.oH,Ge.t,Z.F],styles:[".write-comment-box[_ngcontent-%COMP%]{position:relative;margin-left:44px;border-radius:30px;display:flex;align-items:center;margin-top:30px}.write-comment-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;min-height:50px!important;border-radius:30px;padding:0 30px 0 35px;font-size:14px;font-weight:300;color:#c0bfbf;transition:width .4s linear;line-height:20px;border:0;outline:0;background:#3A3B3C;letter-spacing:.01em}.upload-item[_ngcontent-%COMP%], .submit-icon[_ngcontent-%COMP%]{position:absolute!important;right:15px;top:13px;cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.upload-item[_ngcontent-%COMP%]{right:auto;left:8px;top:12px;color:#fff}.submit-icon[_ngcontent-%COMP%]:hover{opacity:.5}.submit-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff}.share-creation-state-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:2em}.btn-comment-send[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .create-post-box[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#f5f5f5}.view-more[_ngcontent-%COMP%]{display:flex;justify-content:center}.comunity-add-post.cpb[_ngcontent-%COMP%]{position:relative}.create-post-box[_ngcontent-%COMP%]{position:absolute;max-width:550px;background:#1D2226;z-index:9;border-radius:10px;left:0;right:0;margin:0 20px;top:10%}#message[_ngcontent-%COMP%]:focus{padding:10px;background:red}.cpb-top-area[_ngcontent-%COMP%]{position:relative;padding:20px 15px;display:flex;justify-content:space-between;border-bottom:1px solid #383D40}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0;border:1px solid;border-radius:5px}.cpb-top-area[_ngcontent-%COMP%] .cancel-post[_ngcontent-%COMP%]:hover{opacity:.5}.cpb-user-avater[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:48px;height:48px;object-fit:cover;border-radius:50%;box-sizing:border-box}.cpb-user-info-area[_ngcontent-%COMP%]{display:flex;gap:15px;padding:15px}.cpb-user-info-wrapper[_ngcontent-%COMP%] .user-name[_ngcontent-%COMP%]{font-size:16px;text-transform:capitalize}.select-audions[_ngcontent-%COMP%]{border:1px solid whitesmoke;padding:2px 0 3px;margin-top:10px;font-size:15px;text-transform:capitalize;border-radius:50px}.select-audions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff!important;display:flex;align-items:center;justify-content:space-between}.select-audions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0!important;font-size:20px!important}.cpb-write-post-area[_ngcontent-%COMP%]{padding:0 15px}.cpb-write-post-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;background:transparent!important;border:0;min-height:125px;padding:10px}.cpb-write-post-area[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::placeholder{font-size:18px;line-height:1.3}textarea[_ngcontent-%COMP%]:focus{border:0;outline:0 none;background-color:transparent}.cpb-share-creation-state-bottom[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-bottom:15px;align-items:center}.cpb-share-creation-state-bottom[_ngcontent-%COMP%] button[type=button][_ngcontent-%COMP%]{border:0;text-transform:uppercase;font-weight:700;padding:8px 25px;background:#383D40;color:#fff;border-radius:30px;margin:15px 0;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.cpb-upload-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .share-creation-state-icon[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-top:0!important;cursor:pointer;transition:.3s}.share-creation-state-icon[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block}.share-creation-state-icon[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.5}"]})}return F})();function Wa(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("size",30)}function bc(F,Xe){if(1&F&&n._UZ(0,"app-post",6),2&F){const g=Xe.$implicit,L=n.oxw(2);n.Q6J("post",g)("highlighted",(null==g?null:g.id)===L.latestCommentId)("isComment",!0)}}function ra(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div")(1,"app-post-box",4),n.NdJ("onPosted",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCommentSubmitted(R))}),n.qZA(),n.YNc(2,bc,1,3,"app-post",5),n.qZA()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("commentBox",!0)("parentId",g.postId),n.xp6(1),n.Q6J("ngForOf",g.comments)}}let Al=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.postService=Dt,this.notifier=Mn,this.postId=null,this.comments=[]}componentName(){return"ConversationAreaComponent"}ngOnInit(){this.notifier.log("post id: "+this.postId),null!=this.postId&&this.loadComments(this.postId)}loadComments(g){const L=this.componentKey(S.Z.POSTS.FETCH_COMMENTS(g));this.postService.fetchComments(L,g),this.subscribe(L,null,(R,ye)=>{this.comments=ye.data.content,this.loading=!1})}onCommentSubmitted(g){this.latestCommentId=g.id,this.comments.unshift(g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-conversation-area"]],inputs:{postId:"postId"},features:[n.qOj],decls:3,vars:2,consts:[[1,"conversation-area"],[3,"size",4,"ngIf"],[4,"ngIf"],[3,"size"],[3,"commentBox","parentId","onPosted"],[3,"post","highlighted","isComment",4,"ngFor","ngForOf"],[3,"post","highlighted","isComment"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0),n.YNc(1,Wa,1,1,"util-progress",1),n.YNc(2,ra,3,3,"div",2),n.qZA()),2&L&&(n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading))},styles:[".conversation-area[_ngcontent-%COMP%]{padding-bottom:20px}"]})}return F})(),is=(()=>{class F{transform(g){let L;if(-1!==g.indexOf("#")){L=g+" ";const R=L.match(/#(.*?) /g);if(null==R)return g;for(let ye=0;ye'+Dt+""),L=L.replace("{{link}}",Mn)}}else L=g;return L}static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275pipe=n.Yjl({name:"hashtag",type:F,pure:!0})}return F})();const ro=function(F){return[F]};function K(F,Xe){if(1&F&&(n.TgZ(0,"div",26)(1,"a",27),n._uU(2),n.qZA(),n._uU(3),n.TgZ(4,"h6",28),n._uU(5),n.ALo(6,"readableDate"),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.VKq(7,ro,"/u/"+(null==g.localMetaData?null:g.localMetaData.actorUsername))),n.xp6(1),n.Oqu(null==g.localMetaData?null:g.localMetaData.actorName),n.xp6(1),n.hij(" ",g.localMetaData.message," "),n.xp6(2),n.Oqu(n.xi3(6,4,g.localMetaData.timestamp,!0))}}function Ue(F,Xe){if(1&F&&(n.TgZ(0,"li")(1,"a",29),n._uU(2,"VIEW FULL REVIEW"),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("routerLink",n.VKq(1,ro,"/reviews/"+g.getMetaData(g.post,"review_id"))+"/"+(null==g.post?null:g.post.id))}}function ge(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.editPost(R.post))}),n._uU(2,"EDIT POST"),n.qZA()()}}function Ne(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.deletePost(R.post))}),n._uU(2,"MOVE TO TRASH"),n.qZA()()}}function kt(F,Xe){1&F&&(n.TgZ(0,"li")(1,"a"),n._uU(2,"REPORT"),n.qZA()())}function pn(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"a")(1,"img",30),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.openPostDetailsPage(R.post))}),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(1),n.s9C("src",g.getFirstImage(),n.LSH)}}function Sn(F,Xe){if(1&F&&(n.TgZ(0,"div",35)(1,"h5",36),n._UZ(2,"i",37),n._uU(3),n.qZA(),n.TgZ(4,"h6",38),n._uU(5,"AVG RATING"),n.qZA()()),2&F){const g=n.oxw(3);n.xp6(1),n.Q6J("routerLink",n.VKq(2,ro,"/reviews/"+g.getMetaData(g.post,"review_id"))+"/"+(null==g.post?null:g.post.id)),n.xp6(2),n.hij("\xa0",g.getAvgRating(),"/10 ")}}function li(F,Xe){if(1&F&&(n.TgZ(0,"div",39)(1,"a",36)(2,"h5"),n._uU(3),n.qZA()(),n.TgZ(4,"h6",38),n._uU(5,"ITEM"),n.qZA()()),2&F){const g=n.oxw(3);let L;n.xp6(1),n.Q6J("routerLink",n.VKq(2,ro,"/products/"+g.getMetaData(g.post,"product_id"))),n.xp6(2),n.Oqu(null==(L=g.getProductName())?null:L.toUpperCase())}}function ur(F,Xe){if(1&F&&(n.TgZ(0,"div",31)(1,"div",32),n.YNc(2,Sn,6,4,"div",33),n.YNc(3,li,6,4,"div",34),n.qZA()()),2&F){const g=n.oxw(2);n.xp6(2),n.Q6J("ngIf",null!=g.getAvgRating()),n.xp6(1),n.Q6J("ngIf",null!=g.getProductName())}}function hr(F,Xe){if(1&F&&(n.TgZ(0,"div",43)(1,"a",44),n._UZ(2,"img",45),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function ar(F,Xe){1&F&&(n.TgZ(0,"div",43)(1,"a",46),n._uU(2,"View All"),n.qZA()())}function xi(F,Xe){if(1&F&&(n.TgZ(0,"div",40),n.YNc(1,hr,3,2,"div",41),n.YNc(2,ar,3,0,"div",42),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",g.takePostThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>3)}}const Ar=function(F){return{"product-menu-bar":F}};function Nr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",2),n.YNc(1,K,7,9,"div",3),n.TgZ(2,"div",4)(3,"div",5)(4,"div",6),n._UZ(5,"img",7),n.TgZ(6,"div",8)(7,"h4")(8,"a",9),n._uU(9),n.qZA()(),n.TgZ(10,"p"),n._uU(11),n.ALo(12,"readableDate"),n.qZA()()(),n.TgZ(13,"div",10),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onItemClick(R))}),n._UZ(14,"i",11),n.TgZ(15,"div",12)(16,"ul"),n.YNc(17,Ue,3,3,"li",13),n.YNc(18,ge,3,0,"li",13),n.YNc(19,Ne,3,0,"li",13),n.YNc(20,kt,3,0,"li",13),n.qZA()()()(),n.YNc(21,pn,2,1,"a",13),n.TgZ(22,"div",14),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.openPostDetailsPage(R.post))}),n.YNc(23,ur,4,2,"div",15),n._UZ(24,"p",16),n.ALo(25,"hashtag"),n.YNc(26,xi,3,2,"div",17),n.qZA()(),n.TgZ(27,"div",18)(28,"div",19)(29,"app-reaction",20),n.NdJ("onReacted",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onReacted(R))}),n.qZA(),n.TgZ(30,"h4",21),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onReactionCountClick(R))}),n._uU(31),n.qZA()(),n.TgZ(32,"div",22),n._UZ(33,"i",23),n.TgZ(34,"h4"),n._uU(35),n.qZA(),n._UZ(36,"h4"),n.qZA(),n.TgZ(37,"div",24),n._UZ(38,"i",25)(39,"h4"),n.qZA()()()}if(2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngIf",null!=g.localMetaData&&null!=g.localMetaData.message),n.xp6(4),n.s9C("src",null!=(null==g.post?null:g.post.posted_by_photo)?null==g.post?null:g.post.posted_by_photo:"assets/img/default-avatar.png",n.LSH),n.Q6J("routerLink",n.VKq(24,ro,"/u/"+(null==g.post?null:g.post.posted_by_username))),n.xp6(3),n.Q6J("routerLink",n.VKq(26,ro,"/u/"+(null==g.post?null:g.post.posted_by_username))),n.xp6(1),n.Oqu(null==g.post?null:g.post.posted_by_name),n.xp6(2),n.Oqu(n.xi3(12,19,null==g.post?null:g.post.updated_at,!0)),n.xp6(2),n.Q6J("ngClass",n.VKq(28,Ar,g.showPostMenu)),n.xp6(4),n.Q6J("ngIf",null!=g.getMetaData(g.post,"review_id")),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",1===(null==g.post||null==g.post.images?null:g.post.images.length)),n.xp6(2),n.Q6J("ngIf",g.isShowMetaSection()),n.xp6(1),n.Q6J("innerHTML",n.lcZ(25,22,g.getContent()),n.oJD),n.xp6(2),n.Q6J("ngIf",g.getThumbLength()>1),n.xp6(3),n.Q6J("postId",null==g.post?null:g.post.id),n.xp6(2),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.total,")"),n.xp6(1),n.Q6J("routerLink",n.VKq(30,ro,"/posts/"+(null==g.post?null:g.post.id))),n.xp6(3),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.comments,")")}}function mr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.editPost(R.post))}),n._uU(2,"EDIT POST"),n.qZA()()}}function vs(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li")(1,"a",21),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.deletePost(R.post))}),n._uU(2,"MOVE TO TRASH"),n.qZA()()}}function bs(F,Xe){if(1&F&&(n.TgZ(0,"div",43)(1,"a",44),n._UZ(2,"img",45),n.qZA()()),2&F){const g=Xe.$implicit;n.xp6(1),n.s9C("href",g,n.LSH),n.xp6(1),n.s9C("src",g,n.LSH)}}function $a(F,Xe){1&F&&(n.TgZ(0,"div",43)(1,"a",46),n._uU(2,"View All"),n.qZA()())}function Ui(F,Xe){if(1&F&&(n.TgZ(0,"div",40),n.YNc(1,bs,3,2,"div",41),n.YNc(2,$a,3,0,"div",42),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",g.takePostThumbs(3)),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>3)}}function Ma(F,Xe){if(1&F&&(n.TgZ(0,"small"),n._uU(1),n.qZA()),2&F){const g=n.oxw(3);n.xp6(1),n.hij("(",g.getTotalComments(),")")}}function Qr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",58)(1,"a",59)(2,"app-reaction",20),n.NdJ("onReacted",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onReacted(R))}),n.qZA(),n.TgZ(3,"h5",60),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onReactionCountClick(R))}),n._uU(4),n.qZA()(),n.TgZ(5,"a",61),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onReplyClick(null==R.post?null:R.post.id))}),n._uU(6,"Reply "),n.YNc(7,Ma,2,1,"small",13),n.qZA()()}if(2&F){const g=n.oxw(2);n.xp6(2),n.Q6J("postId",null==g.post?null:g.post.id),n.xp6(2),n.hij("(",null==g.post||null==g.post.reaction_stats?null:g.post.reaction_stats.total,")"),n.xp6(3),n.Q6J("ngIf",g.getTotalComments())}}function zr(F,Xe){if(1&F&&(n.TgZ(0,"div",62),n._UZ(1,"app-conversation-area",63),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("postId",null==g.post?null:g.post.id)}}const Qi=function(F){return{"post-highlighted":F}};function yi(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",47)(1,"div",4)(2,"div",48)(3,"a",49),n._UZ(4,"img",50),n.qZA(),n.TgZ(5,"div",51)(6,"div",52)(7,"div",53)(8,"span")(9,"b"),n._uU(10),n.qZA()(),n.TgZ(11,"h6",38),n._uU(12),n.ALo(13,"readableDate"),n.qZA()()(),n.TgZ(14,"div",10),n.NdJ("click",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onItemClick(R))}),n._UZ(15,"i",11),n.TgZ(16,"div",12)(17,"ul"),n.YNc(18,mr,3,0,"li",13),n.YNc(19,vs,3,0,"li",13),n.TgZ(20,"li")(21,"a"),n._uU(22,"REPORT"),n.qZA()()()()()()(),n.TgZ(23,"div",54)(24,"div",55)(25,"p"),n._uU(26),n.qZA(),n.YNc(27,Ui,3,2,"div",17),n.qZA(),n.YNc(28,Qr,8,3,"div",56),n.YNc(29,zr,2,1,"div",57),n.qZA()()()}if(2&F){const g=n.oxw();n.Q6J("ngClass",n.VKq(14,Qi,g.highlighted)),n.xp6(4),n.s9C("src",null==g.post?null:g.post.posted_by_photo,n.LSH),n.xp6(6),n.Oqu(null==g.post?null:g.post.posted_by_name),n.xp6(2),n.Oqu(n.xi3(13,11,null==g.post?null:g.post.updated_at,!0)),n.xp6(2),n.Q6J("ngClass",n.VKq(16,Ar,g.showPostMenu)),n.xp6(4),n.Q6J("ngIf",g.isMyPost()),n.xp6(1),n.Q6J("ngIf",g.isMyPost()),n.xp6(7),n.Oqu(null==g.post?null:g.post.content),n.xp6(1),n.Q6J("ngIf",g.getThumbLength()>0),n.xp6(1),n.Q6J("ngIf",g.isReplyEnabled()),n.xp6(1),n.Q6J("ngIf",g.replyToPostId===(null==g.post?null:g.post.id))}}let oa=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.postService=ye,this.dialog=Dt,this.auth=Mn,this.notifier=vi,this.isComment=!1,this.fullVersion=!1,this.post=null,this.highlighted=!1,this.showPostMenu=!1,this.replyToPostId=0,this.onDeletePost=new n.vpe}componentName(){return"PostComponent"}ngOnInit(){}onReacted(g){this.reloadPost()}takePostThumbs(g){return null==this.post||g<1?[]:this.post.thumbs.length{this.post=R.data})}onReactionCountClick(g){console.log("reactions clicked");const L=this.dialog.open(qn);null!=this.post&&(L.componentInstance.postId=this.post?.id),L.afterClosed().subscribe(ye=>{console.log(`Dialog result: ${ye}`)})}onItemClick(g){this.showPostMenu=!this.showPostMenu}isMyPost(){return!!this.auth.isAuthenticated()&&this.auth.getAuth().username==this.post?.posted_by_username}getAvgRating(){let g=this.getMetaData(this.post,"average_rating");if(null==g)return null;try{return parseFloat(g).toFixed(1)}catch{return null}}getProductName(){let g=this.getMetaData(this.post,"product_name");return w.m.takeOnly(g,20)}getMetaData(g,L){let R=g?.meta_data;return null==R?null:R[L]}isShowMetaSection(){return null!=this.post?.meta_data&&this.post.type===Os.USER_REVIEW}editPost(g){null!=g&&this.openPostBox(g)}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g,R.parentId=g?.parent_id,R.onPosted.subscribe(ye=>{this.reloadPost(),L.close()}),R.onCancel.subscribe(ye=>{L.close()})}openPostDetailsPage(g){this.showPostMenu?this.showPostMenu=!1:null!=g&&this.navigate("/posts/"+g.id,L=>{})}deletePost(g){if(null==g||!confirm("Are you sure you want to delete this post?"))return;let R=this.componentKey(S.Z.POSTS.DELETE_POST(g.id));this.postService.deletePost(R,g.id),this.subscribe(R,null,(ye,Dt)=>{this.notifier.success("Deleted!","Post is deleted."),this.reloadRoute()}),this.subscribe(this.getErrorKey(R),null,(ye,Dt)=>{this.notifier.error("Error!",Dt.data.error.message)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn),n.Y36(Re.uw),n.Y36(_e.e),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post"]],inputs:{isComment:"isComment",fullVersion:"fullVersion",post:"post",localMetaData:"localMetaData",highlighted:"highlighted"},outputs:{onDeletePost:"onDeletePost"},features:[n.qOj],decls:2,vars:2,consts:[["class","blog-post-area bdr-top mt-4",4,"ngIf"],["class","blog-post-area blog-post-area-comment mt-2",3,"ngClass",4,"ngIf"],[1,"blog-post-area","bdr-top","mt-4"],["class","container post-meta",4,"ngIf"],[1,"container"],[1,"blog-post-top","d-flex","justify-content-between","my-4","px-3"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"profile-img","profile-img-rounded",3,"routerLink","src"],[1,"content","ms-2"],[1,"user-name",3,"routerLink"],[1,"view-details","pt-2",3,"ngClass","click"],[1,"icon-dot-3"],[1,"productMenuBox"],[4,"ngIf"],[1,"blog-post-content","px-3","pb-3",3,"click"],["class","blog-post-meta py-3",4,"ngIf"],[3,"innerHTML"],["class","product-gallery",4,"ngIf"],[1,"blog-post-comment-section","d-flex","justify-content-around","bdr-top","bdr-b","py-3","mt-2","mb-3"],[1,"react","d-flex","align-items-center"],[3,"postId","onReacted"],[3,"click"],[1,"comment","d-flex","align-items-center",3,"routerLink"],[1,"icon-chat"],[1,"share","d-flex","align-items-center"],[1,"icon-paper-plane"],[1,"container","post-meta"],[1,"actor-name","user-name",3,"routerLink"],[1,"mt-1",2,"color","gray"],[3,"routerLink"],[1,"w-100","mb-2",3,"src","click"],[1,"blog-post-meta","py-3"],[1,"row","align-items-center","mb-2"],["class","col-6 rating",4,"ngIf"],["class","col-6 col-sm-4",4,"ngIf"],[1,"col-6","rating"],[1,"post-info-links",3,"routerLink"],[1,"icon-star"],[2,"color","gray"],[1,"col-6","col-sm-4"],[1,"product-gallery"],["class","single-product-item",4,"ngFor","ngForOf"],["class","single-product-item",4,"ngIf"],[1,"single-product-item"],["target","_blank",3,"href"],["alt","",3,"src"],["href","#"],[1,"blog-post-area","blog-post-area-comment","mt-2",3,"ngClass"],[1,"blog-post-top","d-flex","justify-content-between","my-4","comment-header"],["href","#",1,"comments-user-avater"],["alt","astha",3,"src"],[1,"comments-post-meta-profile-info-wrapper"],[1,"blog-post-top-left"],[1,"content"],[1,"blog-post-content"],[1,"comments-comment-item-content"],["class","comment-social-activity",4,"ngIf"],["class","nested-comment-box",4,"ngIf"],[1,"comment-social-activity"],[1,"react","d-flex"],[1,"mt-1",3,"click"],[1,"btn-reply-post",3,"click"],[1,"nested-comment-box"],[1,"conversation-area",3,"postId"]],template:function(L,R){1&L&&(n.YNc(0,Nr,40,32,"section",0),n.YNc(1,yi,30,18,"section",1)),2&L&&(n.Q6J("ngIf",!R.isComment),n.xp6(1),n.Q6J("ngIf",R.isComment))},dependencies:[e.mk,e.sg,e.O5,l.rH,le,Al,Yr.G,is],styles:['@keyframes _ngcontent-%COMP%_anim-highlight{0%{opacity:.5;background-color:#52575e}to{opacity:1;background-color:#202020}}.post-highlighted[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_anim-highlight;animation-duration:4s}.product-gallery[_ngcontent-%COMP%]{display:flex;grid-gap:20px;align-items:center;margin-top:20px}.btn-reply-post[_ngcontent-%COMP%]{position:absolute;right:20px;color:#44d62c}.blog-post-area[_ngcontent-%COMP%] .blog-post-top-left[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:.7rem}.post-meta[_ngcontent-%COMP%]{padding-top:20px}a[_ngcontent-%COMP%]{color:#44d62c}.post-info-links[_ngcontent-%COMP%]{color:#f5f5f5!important;font-weight:800}.view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%]{opacity:0;visibility:hidden;display:none;position:relative;cursor:pointer}.product-menu-bar[_ngcontent-%COMP%] .productMenuBox[_ngcontent-%COMP%]{display:block;visibility:visible;opacity:1;position:absolute;right:0;z-index:99}.product-menu-bar[_ngcontent-%COMP%]{position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-top:10px;padding:0 10px;list-style:none;width:250px;background:#151515;border:1px solid #2F3031;border-radius:5px;-webkit-border-radius:5px;-moz-border-radius:5px;-ms-border-radius:5px;-o-border-radius:5px;position:relative}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]:after{position:absolute;content:"";right:6px;top:-7px;width:14px;height:14px;background-color:#151515;transform:rotate(45deg);border-left:1px solid #2F3031;border-top:1px solid #2F3031;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg)}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;color:#fff;text-transform:capitalize;padding:10px 15px;border-bottom:1px solid rgba(204,204,204,.2705882353);line-height:1.7;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover, .view-details[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{opacity:.5}.productMenuBox[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child a[_ngcontent-%COMP%]{border:0}.comment-header[_ngcontent-%COMP%]{margin-bottom:0!important}.comments-comment-item-content[_ngcontent-%COMP%]{background:#3A3B3C;padding:0 12px 15px;border-radius:0 0 10px 10px;-webkit-border-radius:0px 0px 10px 10px;-moz-border-radius:0px 0px 10px 10px;-ms-border-radius:0px 0px 10px 10px;-o-border-radius:0px 0px 10px 10px;margin-left:44px}.comments-user-avater[_ngcontent-%COMP%]{flex-shrink:0;align-self:flex-start;width:40px;height:40px}.comments-user-avater[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%;object-fit:cover}.comments-post-meta-profile-info-wrapper[_ngcontent-%COMP%]{flex-grow:1;display:flex;justify-content:space-between;align-items:center;background:#3A3B3C;padding:8px 12px;border-radius:0 10px 0 0;margin-left:4px}.btn-reply-post[_ngcontent-%COMP%]{position:relative;right:auto!important;cursor:pointer;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.btn-reply-post[_ngcontent-%COMP%]:hover{opacity:.5}.comment-social-activity[_ngcontent-%COMP%] app-reaction[_ngcontent-%COMP%]{width:25px}.comment-social-activity[_ngcontent-%COMP%] .react[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:14px!important;display:flex;align-items:center;margin-left:2px}.comment-social-activity[_ngcontent-%COMP%]{margin-top:5px;margin-left:55px;display:flex;gap:12px;align-items:center}']})}return F})();const cl=function(F){return{active:F}};function _o(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"li",4),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.onClick(ye))}),n.TgZ(1,"a"),n._uU(2),n.qZA()()}if(2&F){const g=Xe.$implicit,L=n.oxw();n.Q6J("ngClass",n.VKq(2,cl,L.selectedTabId===g.id)),n.xp6(2),n.Oqu(g.title)}}let Wi=(()=>{class F extends I.H{constructor(g,L,R){super(g,L,R),this.tabHeaders=[],this.selectedTabId=0,this.onSelect=new n.vpe,this.panelClass="active"}componentName(){return"TabHeaderComponent"}ngOnInit(){}onClick(g){this.selectedTabId=g.id,this.onSelect.emit(g.id)}trackbyFn(g,L){return g}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-tab-header"]],inputs:{tabHeaders:"tabHeaders",selectedTabId:"selectedTabId",panelClass:"panelClass"},outputs:{onSelect:"onSelect"},features:[n.qOj],decls:4,vars:2,consts:[[1,"tab-header","mt-2","scrollable"],[1,"container"],[1,"list-inline","list-unstyled"],["class","list-inline-item",3,"ngClass","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"list-inline-item",3,"ngClass","click"]],template:function(L,R){1&L&&(n.TgZ(0,"section",0)(1,"div",1)(2,"ul",2),n.YNc(3,_o,3,4,"li",3),n.qZA()()()),2&L&&(n.xp6(3),n.Q6J("ngForOf",R.tabHeaders)("ngForTrackBy",R.trackbyFn))},dependencies:[e.mk,e.sg],styles:[".scrollable[_ngcontent-%COMP%]{white-space:nowrap;position:relative;overflow-x:scroll;overflow-y:hidden;-webkit-overflow-scrolling:touch}[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.list-inline-item[_ngcontent-%COMP%]{margin-right:1.5rem}.list-group-item[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{color:#000}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:1.12em!important;text-decoration:none;color:#fff;text-transform:uppercase;font-weight:600;letter-spacing:.05em;transition:all .5s}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#f7f7f7}.tab-header[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background:#44d62c;padding:5px 12px;border-radius:16px}"]})}return F})();function Xi(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function dl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",30),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onIStoriesMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showStoriesMenu)("items",g.getMenuItems())}}function ko(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function rs(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}function ul(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-menubox",30),n.NdJ("menuItemClick",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onCriticReviewsMenuItemClick(R))}),n.qZA()}if(2&F){const g=n.oxw();n.Q6J("showMenubar",g.showCriticReviewsMenu)("items",g.getMenuItems())}}function Pc(F,Xe){1&F&&n._UZ(0,"util-progress",29),2&F&&n.Q6J("bar",!0)}function Us(F,Xe){1&F&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"No Items"),n.qZA()())}const Vs=function(F,Xe,g,L){return{actorName:F,actorUsername:Xe,message:g,timestamp:L}};function Nc(F,Xe){if(1&F&&(n.TgZ(0,"div"),n._UZ(1,"app-post",31),n.qZA()),2&F){const g=Xe.$implicit,L=n.oxw();n.xp6(1),n.Q6J("post",g.post)("localMetaData",n.l5B(2,Vs,g.actorName,g.actorUsername,L.getMessage(g),g.timestamp))}}function ac(F,Xe){1&F&&n._UZ(0,"util-progress",32),2&F&&n.Q6J("padding",70)}let To=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya){super(g,L,R),this.postService=Dt,this.auth=Mn,this.dialog=vi,this.reviewService=Fo,this.notifier=Ya,this.interestingStories=null,this.iStories=[],this.iStoriesPeriod="THIS MONTH",this.iStoriesLoading=!1,this.showStoriesMenu=!1,this.criticReviews=null,this.criticReviewers=[],this.criticReviewsPeriod="THIS MONTH",this.criticReviewsLoading=!1,this.showCriticReviewsMenu=!1,this.badgeForCritic="Critic",this.youtubeReviews=[],this.page=0,this.statusPosts=[],this.reviewPosts=[],this.reactions=[],this.newsfeedItems=[],this.trendingHashtags=[],this.selectedHashtag=null,this.selectedHashtag=ye.snapshot.queryParams.hashtag}componentName(){return"NewsfeedComponent"}ngOnInit(){let g=Nt.b.calculateRange(this.iStoriesPeriod.replace(" ","_"));this.fetchInterestingStories({page:0,from_date:g?.fromDate,to_date:g?.toDate,slice:!0});let L=Nt.b.calculateRange(this.criticReviewsPeriod.replace(" ","_"));this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic}),this.fetchYoutubeReviews(),this.fetchTrendingHashtags(),this.fetchNewsfeedItems(this.selectedHashtag,this.page)}fetchCriticReviews(g){this.criticReviewsLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_CRITIC_REVIEWS());this.reviewService.fetchRecentReviews(L,g),this.subscribe(L,null,(R,ye)=>{this.criticReviews=ye.data,this.criticReviewers=F.mapToCarouselItems(ye.data),this.criticReviewsLoading=!1})}fetchInterestingStories(g){this.iStoriesLoading=!0;let L=this.componentKey(S.Z.REVIEWS.FETCH_INTERESTING_STORIES());this.reviewService.fetchRecentReviews(L,g),this.subscribe(L,null,(R,ye)=>{this.interestingStories=ye.data,this.iStories=F.mapToCarouselItems(ye.data),this.iStoriesLoading=!1})}static mapToCarouselItems(g){return g.content.map(L=>({id:L?.id,slug:L?.slug,title:L?.posted_by_name,img:null!=L?.posted_by_avatar?L?.posted_by_avatar:"assets/img/default-avatar.png",url:"/reviews/"+L.id+"/"+L.post_id,badges:[]}))}fetchYoutubeReviews(){this.youtubeReviews=[{id:1,title:null,slug:"",img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,title:null,slug:"",img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-3.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-4.png",url:"",badges:[]},{id:1,slug:"",title:null,img:"assets/img/youtube-reviews/youtube-review-5.png",url:"",badges:[]}]}fetchNewsfeedItems(g,L){this.loading=!0;const R=this.componentKey(S.Z.POSTS.FETCH_NEWS_FEED_POSTS(Os.STATUS));this.postService.fetchPosts(R,{page:L,size:5,type:Os.STATUS,hashtag:g}),this.subscribe(R,null,(Dt,Mn)=>{this.statusPosts=Mn.data.content,this.addToNewsfeed(Is.STATUS,this.statusPosts),this.loading=!1});const ye=this.componentKey(S.Z.POSTS.FETCH_NEWS_FEED_POSTS(Os.USER_REVIEW));if(this.postService.fetchPosts(ye,{page:L,size:5,type:Os.USER_REVIEW,hashtag:g}),this.subscribe(ye,null,(Dt,Mn)=>{this.reviewPosts=Mn.data.content,this.addToNewsfeed(Is.USER_REVIEW,this.reviewPosts),this.loading=!1}),null==g||0===g?.length){const Dt=this.componentKey(S.Z.POSTS.FETCH_REACTIONS());this.postService.fetchReactions(Dt,{page:L,slice:!1}),this.subscribe(Dt,null,(Mn,vi)=>{this.reactions=vi.data.content,this.addReactionsToNewsfeed(this.reactions)})}}addToNewsfeed(g,L){L.map(R=>{this.newsfeedItems.push({timestamp:R.updated_at,actionType:g,actorName:R.posted_by_name,actorUsername:R.posted_by_username,post:R})}),this.sortNewsfeedItems()}addReactionsToNewsfeed(g){g.map(L=>{this.newsfeedItems.push({timestamp:L.updated_at,actionType:Is.REACTION,actorName:L.reacted_by_name,actorUsername:L.reacted_by_username,post:L.post})}),this.sortNewsfeedItems()}sortNewsfeedItems(){this.newsfeedItems=this.newsfeedItems.sort((g,L)=>new Date(L.timestamp).getTime()-new Date(g.timestamp).getTime())}getMessage(g){return g.actionType===Is.REACTION?"reacted.":g.actionType===Is.USER_REVIEW?"posted a review.":null}onViewMoreClick(){this.fetchNewsfeedItems(null,++this.page)}reloadNewsfeed(){this.newsfeedItems=[],this.fetchNewsfeedItems(null,0)}getAuth(){return this.auth.getAuth()}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g;const ye=R.onPosted.subscribe(Mn=>{ye.unsubscribe(),L.close()}),Dt=R.onCancel.subscribe(Mn=>{Dt.unsubscribe(),L.close()});L.afterClosed().subscribe(Mn=>{this.reloadRouteByUrl()})}getMenuItems(){return bt.$}onIStoriesMenuItemClick(g){this.showStoriesMenu&&(this.showStoriesMenu=!1),this.iStoriesPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchInterestingStories({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0})}onCriticReviewsMenuItemClick(g){this.showCriticReviewsMenu&&(this.showCriticReviewsMenu=!1),this.criticReviewsPeriod=g.title;let L=Nt.b.calculateRange(g.code);this.fetchCriticReviews({page:0,from_date:L?.fromDate,to_date:L?.toDate,slice:!0,badge:this.badgeForCritic})}getTabHeaders(){return this.trendingHashtags.map((g,L)=>({id:L,title:"#"+g.name}))}getSelectedHashtag(){return-1}onHashtagSelected(g){let L=this.trendingHashtags[g].name.replace("#","");L!==this.selectedHashtag?(this.selectedHashtag=L,this.router.navigateByUrl("/newsfeed?hashtag="+this.selectedHashtag),this.newsfeedItems=[],this.fetchNewsfeedItems(this.selectedHashtag,0)):this.navigateByUrl("/newsfeed",R=>{this.reloadRouteByUrl()})}fetchTrendingHashtags(){let g=this.componentKey(S.Z.POSTS.FETCH_TRENDING_HASHTAGS());this.postService.fetchTrendingTags(g,{}),this.subscribe(g,null,(L,R)=>{this.trendingHashtags=R.data}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.notifier.log(R.data)})}onStoriesItemClick(g){if(null==this.interestingStories)return;let L=this.interestingStories.content.find(R=>R.id==g.id);this.navigate("/reviews/"+L?.product_slug+"/"+L?.slug+"/"+L?.post_id,R=>{})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(_e.e),n.Y36(Re.uw),n.Y36(se.F),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-newsfeed"]],features:[n.qOj],decls:62,vars:20,consts:[[3,"bar",4,"ngIf"],[1,"reviewers-section","py-2","mt-3"],[1,"container"],[1,"reviewers-content","section-title","d-flex","justify-content-between","pb-3",3,"click"],["src","assets/img/FunnelSimple.png","alt",""],[3,"showMenubar","items","menuItemClick",4,"ngIf"],[3,"items","itemClick"],[4,"ngIf"],[1,"comunity-post-area","pt-4","pb-3","mt-3","bdr-top"],[1,"comunity-post","d-flex","mb-4"],["alt","",1,"profile-img-rounded",3,"src"],[1,"content","ms-3"],[1,"closs-post"],[1,"icon-cancel-1"],[1,"comunity-add-post","cpb","d-flex","justify-content-end","align-items-center"],[1,"d-flex","align-items-center",3,"click"],[1,"icon-plus-2"],[1,"reviewers-section","py-2","mt-3","bdr-b"],[3,"items"],[1,"container","mt-4","bdr-b"],[3,"tabHeaders","selectedTabId","onSelect"],[4,"ngFor","ngForOf"],[3,"padding",4,"ngIf"],[1,"section-title","view-more","my-4","container"],[3,"click"],[1,"youtube-reviews-section","bdr-b","mb-5","pb-3"],[1,"section-title","d-flex","justify-content-between","my-4"],["href","#"],[3,"design","items"],[3,"bar"],[3,"showMenubar","items","menuItemClick"],[3,"post","localMetaData"],[3,"padding"]],template:function(L,R){1&L&&(n.YNc(0,Xi,1,1,"util-progress",0),n.TgZ(1,"div")(2,"section",1)(3,"div",2)(4,"div",3),n.NdJ("click",function(){return R.showStoriesMenu=!R.showStoriesMenu}),n.TgZ(5,"h5"),n._uU(6,"INTERESTING STORIES"),n.qZA(),n.TgZ(7,"a")(8,"h5"),n._uU(9),n.qZA()(),n._UZ(10,"img",4),n.qZA(),n.YNc(11,dl,1,2,"app-menubox",5),n.TgZ(12,"app-small-carousel",6),n.NdJ("itemClick",function(Dt){return R.onStoriesItemClick(Dt)}),n.qZA(),n.YNc(13,ko,1,1,"util-progress",0),n.YNc(14,rs,3,0,"div",7),n.qZA()(),n.TgZ(15,"section",8)(16,"div",2)(17,"div",9),n._UZ(18,"img",10),n.TgZ(19,"div",11)(20,"h4"),n._uU(21),n.qZA(),n.TgZ(22,"p"),n._uU(23,"Share your thoughts with the community and connect with people."),n.qZA()(),n.TgZ(24,"div",12),n._UZ(25,"i",13),n.qZA()(),n.TgZ(26,"div",14)(27,"a",15),n.NdJ("click",function(){return R.openPostBox(null)}),n._UZ(28,"i",16),n.TgZ(29,"h4"),n._uU(30,"Post a status"),n.qZA()()()()(),n.TgZ(31,"section",17)(32,"div",2)(33,"div",3),n.NdJ("click",function(){return R.showCriticReviewsMenu=!R.showCriticReviewsMenu}),n.TgZ(34,"h5"),n._uU(35,"CRITIC REVIEWS"),n.qZA(),n.TgZ(36,"a")(37,"h5"),n._uU(38),n.qZA()(),n._UZ(39,"img",4),n.qZA(),n.YNc(40,ul,1,2,"app-menubox",5),n._UZ(41,"app-small-carousel",18),n.YNc(42,Pc,1,1,"util-progress",0),n.YNc(43,Us,3,0,"div",7),n.qZA()(),n.TgZ(44,"div",19)(45,"h5"),n._uU(46,"TRENDING TAGS"),n.qZA(),n.TgZ(47,"app-tab-header",20),n.NdJ("onSelect",function(Dt){return R.onHashtagSelected(Dt)}),n.qZA()(),n.TgZ(48,"div"),n.YNc(49,Nc,2,7,"div",21),n.YNc(50,ac,1,1,"util-progress",22),n.TgZ(51,"div",23)(52,"a",24),n.NdJ("click",function(){return R.onViewMoreClick()}),n._uU(53,"VIEW MORE.."),n.qZA()()(),n.TgZ(54,"section",25)(55,"div",2)(56,"div",26)(57,"h3"),n._uU(58,"Youtube Reviews"),n.qZA(),n.TgZ(59,"a",27),n._uU(60,"View all"),n.qZA()(),n._UZ(61,"app-small-carousel",28),n.qZA()()()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("@dataLoaded",R.loading?"loading":"loaded"),n.xp6(8),n.Oqu(R.iStoriesPeriod),n.xp6(2),n.Q6J("ngIf",!R.iStoriesLoading),n.xp6(1),n.Q6J("items",R.iStories),n.xp6(1),n.Q6J("ngIf",R.iStoriesLoading),n.xp6(1),n.Q6J("ngIf",!R.iStoriesLoading&&0===R.iStories.length),n.xp6(4),n.s9C("src",R.getAuth().avatar,n.LSH),n.xp6(3),n.hij("Hey, ",R.getAuth().name,""),n.xp6(17),n.Oqu(R.criticReviewsPeriod),n.xp6(2),n.Q6J("ngIf",!R.criticReviewsLoading),n.xp6(1),n.Q6J("items",R.criticReviewers),n.xp6(1),n.Q6J("ngIf",R.criticReviewsLoading),n.xp6(1),n.Q6J("ngIf",!R.criticReviewsLoading&&0===R.criticReviewers.length),n.xp6(4),n.Q6J("tabHeaders",R.getTabHeaders())("selectedTabId",R.getSelectedHashtag()),n.xp6(2),n.Q6J("ngForOf",R.newsfeedItems),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(11),n.Q6J("design","youtube-reviews")("items",R.youtubeReviews))},dependencies:[e.sg,e.O5,Ge.t,Dn.q,oa,Wi,Ro.v]})}return F})();var nd=C(1081);function lc(F,Xe){1&F&&(n.TgZ(0,"span",7),n.Hsn(1,1),n.qZA())}function Ei(F,Xe){1&F&&(n.TgZ(0,"span",8),n.Hsn(1,2),n.qZA())}const Ca=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],ks=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"];function cc(F,Xe){1&F&&(n.ynx(0),n._UZ(1,"span",8),n.BQk())}function hl(F,Xe){1&F&&(n.TgZ(0,"span",9),n.Hsn(1),n.qZA())}function od(F,Xe){1&F&&(n.ynx(0),n.Hsn(1,1),n.BQk())}function Mo(F,Xe){1&F&&n.Hsn(0,2,["*ngIf","contentEditInput; else defaultMatChipEditInput"])}function Ka(F,Xe){1&F&&n._UZ(0,"span",12)}function aa(F,Xe){if(1&F&&(n.ynx(0),n.YNc(1,Mo,1,0,"ng-content",10),n.YNc(2,Ka,1,0,"ng-template",null,11,n.W1O),n.BQk()),2&F){const g=n.MAs(3),L=n.oxw();n.xp6(1),n.Q6J("ngIf",L.contentEditInput)("ngIfElse",g)}}function Ol(F,Xe){1&F&&(n.TgZ(0,"span",13),n.Hsn(1,3),n.qZA())}const kn=[[["mat-chip-avatar"],["","matChipAvatar",""]],"*",[["","matChipEditInput",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],Fi=["mat-chip-avatar, [matChipAvatar]","*","[matChipEditInput]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],Jl=["*"],en=new n.OlP("mat-chips-default-options"),so=new n.OlP("MatChipAvatar"),gt=new n.OlP("MatChipTrailingIcon"),la=new n.OlP("MatChipRemove"),Ra=new n.OlP("MatChip");class Ls{}const os=(0,Ve.sb)(Ls,-1);let ss=(()=>{class F extends os{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(g){this._disabled=(0,qt.Ig)(g)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(g,L){super(),this._elementRef=g,this._parentChip=L,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===g.nativeElement.nodeName&&g.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(g){!this.disabled&&this.isInteractive&&this._isPrimary&&(g.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(g){(g.keyCode===U.K5||g.keyCode===U.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(g.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(Ra))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(L,R){1&L&&n.NdJ("click",function(Dt){return R._handleClick(Dt)})("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&(n.uIk("tabindex",R._getTabindex())("disabled",R._getDisabledAttribute())("aria-disabled",R.disabled),n.ekj("mdc-evolution-chip__action--primary",R._isPrimary)("mdc-evolution-chip__action--presentational",!R.isInteractive)("mdc-evolution-chip__action--trailing",!R._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[n.qOj]})}return F})(),ka=(()=>{class F extends ss{constructor(){super(...arguments),this._isPrimary=!1}_handleClick(g){this.disabled||(g.stopPropagation(),g.preventDefault(),this._parentChip.remove())}_handleKeydown(g){(g.keyCode===U.K5||g.keyCode===U.L_)&&!this.disabled&&(g.stopPropagation(),g.preventDefault(),this._parentChip.remove())}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["","matChipRemove",""]],hostAttrs:["role","button",1,"mat-mdc-chip-remove","mat-mdc-chip-trailing-icon","mat-mdc-focus-indicator","mdc-evolution-chip__icon","mdc-evolution-chip__icon--trailing"],hostVars:1,hostBindings:function(L,R){2&L&&n.uIk("aria-hidden",null)},features:[n._Bn([{provide:la,useExisting:F}]),n.qOj]})}return F})(),ys=0;const W=(0,Ve.sb)((0,Ve.pj)((0,Ve.Kr)((0,Ve.Id)(class{constructor(F){this._elementRef=F}})),"primary"),-1);let ne=(()=>{class F extends W{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(g){this._value=g}get removable(){return this._removable}set removable(g){this._removable=(0,qt.Ig)(g)}get highlighted(){return this._highlighted}set highlighted(g){this._highlighted=(0,qt.Ig)(g)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(g){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,g)}constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(L),this._changeDetectorRef=g,this._ngZone=R,this._focusMonitor=ye,this._globalRippleOptions=vi,this._onFocus=new Oe.x,this._onBlur=new Oe.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+ys++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new n.vpe,this.destroyed=new n.vpe,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=(0,n.f3M)(Ve.Fq),this._document=Dt,this._animationsDisabled="NoopAnimations"===Mn,null!=Fo&&(this.tabIndex=parseInt(Fo)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const g=this._elementRef.nativeElement;this._isBasicChip=g.hasAttribute(this.basicChipAttrName)||g.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,Ft.T)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(g){(g.keyCode===U.ZH||g.keyCode===U.yY)&&(g.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(g){return this._getActions().find(L=>{const R=L._elementRef.nativeElement;return R===g||R.contains(g)})}_getActions(){const g=[];return this.primaryAction&&g.push(this.primaryAction),this.removeIcon&&g.push(this.removeIcon),this.trailingIcon&&g.push(this.trailingIcon),g}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(g=>{const L=null!==g;L!==this._hasFocusInternal&&(this._hasFocusInternal=L,L?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,jn.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Ce.tE),n.Y36(e.K0),n.Y36(n.QbO,8),n.Y36(Ve.Y2,8),n.$8M("tabindex"))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,so,5),n.Suo(ye,gt,5),n.Suo(ye,la,5),n.Suo(ye,so,5),n.Suo(ye,gt,5),n.Suo(ye,la,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.leadingIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R.trailingIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R.removeIcon=Dt.first),n.iGM(Dt=n.CRH())&&(R._allLeadingIcons=Dt),n.iGM(Dt=n.CRH())&&(R._allTrailingIcons=Dt),n.iGM(Dt=n.CRH())&&(R._allRemoveIcons=Dt)}},viewQuery:function(L,R){if(1&L&&n.Gf(ss,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R.primaryAction=ye.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&(n.Ikx("id",R.id),n.uIk("role",R.role)("tabindex",R.role?R.tabIndex:null)("aria-label",R.ariaLabel),n.ekj("mdc-evolution-chip",!R._isBasicChip)("mdc-evolution-chip--disabled",R.disabled)("mdc-evolution-chip--with-trailing-action",R._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",R.leadingIcon)("mdc-evolution-chip--with-primary-icon",R.leadingIcon)("mdc-evolution-chip--with-avatar",R.leadingIcon)("mat-mdc-chip-with-avatar",R.leadingIcon)("mat-mdc-chip-highlighted",R.highlighted)("mat-mdc-chip-disabled",R.disabled)("mat-mdc-basic-chip",R._isBasicChip)("mat-mdc-standard-chip",!R._isBasicChip)("mat-mdc-chip-with-trailing-icon",R._hasTrailingIcon())("_mat-animation-noopable",R._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[n._Bn([{provide:Ra,useExisting:F}]),n.qOj],ngContentSelectors:ks,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing",4,"ngIf"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(L,R){1&L&&(n.F$t(Ca),n._UZ(0,"span",0),n.TgZ(1,"span",1)(2,"span",2),n.YNc(3,lc,2,0,"span",3),n.TgZ(4,"span",4),n.Hsn(5),n._UZ(6,"span",5),n.qZA()()(),n.YNc(7,Ei,2,0,"span",6)),2&L&&(n.xp6(2),n.Q6J("isInteractive",!1),n.xp6(1),n.Q6J("ngIf",R.leadingIcon),n.xp6(4),n.Q6J("ngIf",R._hasTrailingIcon()))},dependencies:[e.O5,ss],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return F})(),xe=(()=>{class F{constructor(g,L){this._elementRef=g,this._document=L}initialize(g){this.getNativeElement().focus(),this.setValue(g)}getNativeElement(){return this._elementRef.nativeElement}setValue(g){this.getNativeElement().textContent=g,this._moveCursorToEndOfInput()}getValue(){return this.getNativeElement().textContent||""}_moveCursorToEndOfInput(){const g=this._document.createRange();g.selectNodeContents(this.getNativeElement()),g.collapse(!1);const L=window.getSelection();L.removeAllRanges(),L.addRange(g)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(e.K0))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["span","matChipEditInput",""]],hostAttrs:["role","textbox","tabindex","-1","contenteditable","true",1,"mat-chip-edit-input"]})}return F})(),qe=(()=>{class F extends ne{constructor(g,L,R,ye,Dt,Mn,vi,Fo){super(g,L,R,ye,Dt,Mn,vi,Fo),this.basicChipAttrName="mat-basic-chip-row",this._editStartPending=!1,this.editable=!1,this.edited=new n.vpe,this._isEditing=!1,this.role="row",this._onBlur.pipe((0,An.R)(this.destroyed)).subscribe(()=>{this._isEditing&&!this._editStartPending&&this._onEditFinish()})}_hasTrailingIcon(){return!this._isEditing&&super._hasTrailingIcon()}_handleFocus(){!this._isEditing&&!this.disabled&&this.focus()}_handleKeydown(g){g.keyCode!==U.K5||this.disabled?this._isEditing?g.stopPropagation():super._handleKeydown(g):this._isEditing?(g.preventDefault(),this._onEditFinish()):this.editable&&this._startEditing(g)}_handleDoubleclick(g){!this.disabled&&this.editable&&this._startEditing(g)}_startEditing(g){if(!this.primaryAction||this.removeIcon&&this._getSourceAction(g.target)===this.removeIcon)return;const L=this.value;this._isEditing=this._editStartPending=!0,this._changeDetectorRef.detectChanges(),setTimeout(()=>{this._getEditInput().initialize(L),this._editStartPending=!1})}_onEditFinish(){this._isEditing=this._editStartPending=!1,this.edited.emit({chip:this,value:this._getEditInput().getValue()}),(this._document.activeElement===this._getEditInput().getNativeElement()||this._document.activeElement===this._document.body)&&this.primaryAction.focus()}_isRippleDisabled(){return super._isRippleDisabled()||this._isEditing}_getEditInput(){return this.contentEditInput||this.defaultEditInput}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(Ce.tE),n.Y36(e.K0),n.Y36(n.QbO,8),n.Y36(Ve.Y2,8),n.$8M("tabindex"))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-row"],["","mat-chip-row",""],["mat-basic-chip-row"],["","mat-basic-chip-row",""]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,xe,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.contentEditInput=Dt.first)}},viewQuery:function(L,R){if(1&L&&n.Gf(xe,5),2&L){let ye;n.iGM(ye=n.CRH())&&(R.defaultEditInput=ye.first)}},hostAttrs:[1,"mat-mdc-chip","mat-mdc-chip-row","mdc-evolution-chip"],hostVars:27,hostBindings:function(L,R){1&L&&n.NdJ("focus",function(Dt){return R._handleFocus(Dt)})("dblclick",function(Dt){return R._handleDoubleclick(Dt)}),2&L&&(n.Ikx("id",R.id),n.uIk("tabindex",R.disabled?null:-1)("aria-label",null)("aria-description",null)("role",R.role),n.ekj("mat-mdc-chip-with-avatar",R.leadingIcon)("mat-mdc-chip-disabled",R.disabled)("mat-mdc-chip-editing",R._isEditing)("mat-mdc-chip-editable",R.editable)("mdc-evolution-chip--disabled",R.disabled)("mdc-evolution-chip--with-trailing-action",R._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",R.leadingIcon)("mdc-evolution-chip--with-primary-icon",R.leadingIcon)("mdc-evolution-chip--with-avatar",R.leadingIcon)("mat-mdc-chip-highlighted",R.highlighted)("mat-mdc-chip-with-trailing-icon",R._hasTrailingIcon()))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",editable:"editable"},outputs:{edited:"edited"},features:[n._Bn([{provide:ne,useExisting:F},{provide:Ra,useExisting:F}]),n.qOj],ngContentSelectors:Fi,decls:10,vars:12,consts:[[4,"ngIf"],["role","gridcell","matChipAction","",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary",3,"tabIndex","disabled"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic",4,"ngIf"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label",3,"ngSwitch"],[4,"ngSwitchCase"],["aria-hidden","true",1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing","role","gridcell",4,"ngIf"],[1,"cdk-visually-hidden",3,"id"],[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[4,"ngIf","ngIfElse"],["defaultMatChipEditInput",""],["matChipEditInput",""],["role","gridcell",1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(L,R){1&L&&(n.F$t(kn),n.YNc(0,cc,2,0,"ng-container",0),n.TgZ(1,"span",1),n.YNc(2,hl,2,0,"span",2),n.TgZ(3,"span",3),n.YNc(4,od,2,0,"ng-container",4),n.YNc(5,aa,4,2,"ng-container",4),n._UZ(6,"span",5),n.qZA()(),n.YNc(7,Ol,2,0,"span",6),n.TgZ(8,"span",7),n._uU(9),n.qZA()),2&L&&(n.Q6J("ngIf",!R._isEditing),n.xp6(1),n.Q6J("tabIndex",R.tabIndex)("disabled",R.disabled),n.uIk("aria-label",R.ariaLabel)("aria-describedby",R._ariaDescriptionId),n.xp6(1),n.Q6J("ngIf",R.leadingIcon),n.xp6(1),n.Q6J("ngSwitch",R._isEditing),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(2),n.Q6J("ngIf",R._hasTrailingIcon()),n.xp6(1),n.Q6J("id",R._ariaDescriptionId),n.xp6(1),n.Oqu(R.ariaDescription))},dependencies:[e.O5,e.RF,e.n9,ss,xe],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height);--mdc-chip-container-shape-family:rounded;--mdc-chip-container-shape-radius:16px 16px 16px 16px;--mdc-chip-with-avatar-avatar-shape-family:rounded;--mdc-chip-with-avatar-avatar-shape-radius:14px 14px 14px 14px;--mdc-chip-with-avatar-avatar-size:28px;--mdc-chip-with-icon-icon-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px) * -1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return F})();class Pt{constructor(Xe){}}const mn=(0,Ve.sb)(Pt);let hn=(()=>{class F extends mn{get chipFocusChanges(){return this._getChipStream(g=>g._onFocus)}get chipDestroyedChanges(){return this._getChipStream(g=>g.destroyed)}get disabled(){return this._disabled}set disabled(g){this._disabled=(0,qt.Ig)(g),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(g){this._explicitRole=g}get focused(){return this._hasFocusedChip()}constructor(g,L,R){super(g),this._elementRef=g,this._changeDetectorRef=L,this._dir=R,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new Oe.x,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new n.n_E}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(g=>g._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(g=>{g.disabled=this._disabled,g._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(g){this._originatesFromChip(g)&&this._keyManager.onKeydown(g)}_isValidIndex(g){return g>=0&&gthis.tabIndex=g)}}_getChipStream(g){return this._chips.changes.pipe((0,fn.O)(null),(0,ai.w)(()=>(0,Ft.T)(...this._chips.map(g))))}_originatesFromChip(g){let L=g.target;for(;L&&L!==this._elementRef.nativeElement;){if(L.classList.contains("mat-mdc-chip"))return!0;L=L.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe((0,fn.O)(this._chips)).subscribe(g=>{const L=[];g.forEach(R=>R._getActions().forEach(ye=>L.push(ye))),this._chipActions.reset(L),this._chipActions.notifyOnChanges()}),this._keyManager=new Ce.Em(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(g=>this._skipPredicate(g)),this.chipFocusChanges.pipe((0,An.R)(this._destroyed)).subscribe(({chip:g})=>{const L=g._getSourceAction(document.activeElement);L&&this._keyManager.updateActiveItem(L)}),this._dir?.change.pipe((0,An.R)(this._destroyed)).subscribe(g=>this._keyManager.withHorizontalOrientation(g))}_skipPredicate(g){return!g.isInteractive||g.disabled}_trackChipSetChanges(){this._chips.changes.pipe((0,fn.O)(null),(0,An.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe((0,An.R)(this._destroyed)).subscribe(g=>{const R=this._chips.toArray().indexOf(g.chip);this._isValidIndex(R)&&g.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=R)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const g=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),L=this._chips.toArray()[g];L.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():L.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(J.Is,8))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-set"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,ne,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._chips=Dt)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._handleKeydown(Dt)}),2&L&&n.uIk("role",R.role)},inputs:{disabled:"disabled",role:"role"},features:[n.qOj],ngContentSelectors:Jl,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return F})();class $i{constructor(Xe,g){this.source=Xe,this.value=g}}class mi extends hn{constructor(Xe,g,L,R,ye,Dt,Mn){super(Xe,g,L),this._defaultErrorStateMatcher=R,this._parentForm=ye,this._parentFormGroup=Dt,this.ngControl=Mn,this.stateChanges=new Oe.x}}const Ps=(0,Ve.FD)(mi);let fl=(()=>{class F extends Ps{get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(g){this._disabled=(0,qt.Ig)(g),this._syncChipsState()}get id(){return this._chipInput.id}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this._chips||0===this._chips.length)}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(g){this._placeholder=g,this.stateChanges.next()}get focused(){return this._chipInput.focused||this._hasFocusedChip()}get required(){return this._required??this.ngControl?.control?.hasValidator(Z.kI.required)??!1}set required(g){this._required=(0,qt.Ig)(g),this.stateChanges.next()}get shouldLabelFloat(){return!this.empty||this.focused}get value(){return this._value}set value(g){this._value=g}get chipBlurChanges(){return this._getChipStream(g=>g._onBlur)}constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R,Mn,ye,Dt,vi),this.controlType="mat-chip-grid",this._defaultRole="grid",this._ariaDescribedbyIds=[],this._onTouched=()=>{},this._onChange=()=>{},this._value=[],this.change=new n.vpe,this.valueChange=new n.vpe,this._chips=void 0,this.ngControl&&(this.ngControl.valueAccessor=this)}ngAfterContentInit(){this.chipBlurChanges.pipe((0,An.R)(this._destroyed)).subscribe(()=>{this._blur(),this.stateChanges.next()}),(0,Ft.T)(this.chipFocusChanges,this._chips.changes).pipe((0,An.R)(this._destroyed)).subscribe(()=>this.stateChanges.next())}ngAfterViewInit(){super.ngAfterViewInit()}ngDoCheck(){this.ngControl&&this.updateErrorState()}ngOnDestroy(){super.ngOnDestroy(),this.stateChanges.complete()}registerInput(g){this._chipInput=g,this._chipInput.setDescribedByIds(this._ariaDescribedbyIds)}onContainerClick(g){!this.disabled&&!this._originatesFromChip(g)&&this.focus()}focus(){this.disabled||this._chipInput.focused||(!this._chips.length||this._chips.first.disabled?Promise.resolve().then(()=>this._chipInput.focus()):this._chips.length&&this._keyManager.setFirstItemActive(),this.stateChanges.next())}setDescribedByIds(g){this._ariaDescribedbyIds=g,this._chipInput?.setDescribedByIds(g)}writeValue(g){this._value=g}registerOnChange(g){this._onChange=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this.disabled=g,this.stateChanges.next()}_blur(){this.disabled||setTimeout(()=>{this.focused||(this._propagateChanges(),this._markAsTouched())})}_allowFocusEscape(){this._chipInput.focused||super._allowFocusEscape()}_handleKeydown(g){g.keyCode===U.Mf?this._chipInput.focused&&(0,U.Vb)(g,"shiftKey")&&this._chips.length&&!this._chips.last.disabled?(g.preventDefault(),this._keyManager.activeItem?this._keyManager.setActiveItem(this._keyManager.activeItem):this._focusLastChip()):super._allowFocusEscape():this._chipInput.focused||super._handleKeydown(g),this.stateChanges.next()}_focusLastChip(){this._chips.length&&this._chips.last.focus()}_propagateChanges(){const g=this._chips.length?this._chips.toArray().map(L=>L.value):[];this._value=g,this.change.emit(new $i(this,g)),this.valueChange.emit(g),this._onChange(g),this._changeDetectorRef.markForCheck()}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(J.Is,8),n.Y36(Z.F,8),n.Y36(Z.sg,8),n.Y36(Ve.rD),n.Y36(Z.a5,10))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-chip-grid"]],contentQueries:function(L,R,ye){if(1&L&&n.Suo(ye,qe,5),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R._chips=Dt)}},hostAttrs:[1,"mat-mdc-chip-set","mat-mdc-chip-grid","mdc-evolution-chip-set"],hostVars:10,hostBindings:function(L,R){1&L&&n.NdJ("focus",function(){return R.focus()})("blur",function(){return R._blur()}),2&L&&(n.Ikx("tabIndex",R._chips&&0===R._chips.length?-1:R.tabIndex),n.uIk("role",R.role)("aria-disabled",R.disabled.toString())("aria-invalid",R.errorState),n.ekj("mat-mdc-chip-list-disabled",R.disabled)("mat-mdc-chip-list-invalid",R.errorState)("mat-mdc-chip-list-required",R.required))},inputs:{tabIndex:"tabIndex",disabled:"disabled",placeholder:"placeholder",required:"required",value:"value",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},features:[n._Bn([{provide:Ai.Eo,useExisting:F}]),n.qOj],ngContentSelectors:Jl,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(L,R){1&L&&(n.F$t(),n.TgZ(0,"div",0),n.Hsn(1),n.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return F})(),Rl=0,Ja=(()=>{class F{set chipGrid(g){g&&(this._chipGrid=g,this._chipGrid.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(g){this._addOnBlur=(0,qt.Ig)(g)}get disabled(){return this._disabled||this._chipGrid&&this._chipGrid.disabled}set disabled(g){this._disabled=(0,qt.Ig)(g)}get empty(){return!this.inputElement.value}constructor(g,L,R){this._elementRef=g,this.focused=!1,this._addOnBlur=!1,this.chipEnd=new n.vpe,this.placeholder="",this.id="mat-mdc-chip-list-input-"+Rl++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement,this.separatorKeyCodes=L.separatorKeyCodes,R&&this.inputElement.classList.add("mat-mdc-form-field-input-control")}ngOnChanges(){this._chipGrid.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(g){if(g){if(g.keyCode===U.ZH&&this._focusLastChipOnBackspace)return this._chipGrid._focusLastChip(),void g.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(g)}_keyup(g){!this._focusLastChipOnBackspace&&g.keyCode===U.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,g.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipGrid.focused||this._chipGrid._blur(),this._chipGrid.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipGrid.stateChanges.next()}_emitChipEnd(g){(!g||this._isSeparatorKey(g))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),g?.preventDefault())}_onInput(){this._chipGrid.stateChanges.next()}focus(){this.inputElement.focus()}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}setDescribedByIds(g){const L=this._elementRef.nativeElement;g.length?L.setAttribute("aria-describedby",g.join(" ")):L.removeAttribute("aria-describedby")}_isSeparatorKey(g){return!(0,U.Vb)(g)&&new Set(this.separatorKeyCodes).has(g.keyCode)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(en),n.Y36(Ai.G_,8))};static#t=this.\u0275dir=n.lG2({type:F,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-mdc-chip-input","mat-mdc-input-element","mdc-text-field__input","mat-input-element"],hostVars:6,hostBindings:function(L,R){1&L&&n.NdJ("keydown",function(Dt){return R._keydown(Dt)})("keyup",function(Dt){return R._keyup(Dt)})("blur",function(){return R._blur()})("focus",function(){return R._focus()})("input",function(){return R._onInput()}),2&L&&(n.Ikx("id",R.id),n.uIk("disabled",R.disabled||null)("placeholder",R.placeholder||null)("aria-invalid",R._chipGrid&&R._chipGrid.ngControl?R._chipGrid.ngControl.invalid:null)("aria-required",R._chipGrid&&R._chipGrid.required||null)("required",R._chipGrid&&R._chipGrid.required||null))},inputs:{chipGrid:["matChipInputFor","chipGrid"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[n.TTD]})}return F})(),Md=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[Ve.rD,{provide:en,useValue:{separatorKeyCodes:[U.K5]}}],imports:[Ve.BQ,e.ez,Ve.si,Ve.BQ]})}return F})();var Do=C(3651),qa=C(4911),xr=C(7398),dc=C(9397),Ec=C(5177);const sd=["panel"];function uc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",0,1),n.NdJ("@panelAnimation.done",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye._animationDone.next(R))}),n.Hsn(2),n.qZA()}if(2&F){const g=Xe.id,L=n.oxw();n.Q6J("id",L.id)("ngClass",L._classList)("@panelAnimation",L.isOpen?"visible":"hidden"),n.uIk("aria-label",L.ariaLabel||null)("aria-labelledby",L._getPanelAriaLabelledby(g))}}const hc=["*"],Qa=(0,Jn.X$)("panelAnimation",[(0,Jn.SB)("void, hidden",(0,Jn.oB)({opacity:0,transform:"scaleY(0.8)"})),(0,Jn.eR)(":enter, hidden => visible",[(0,Jn.ru)([(0,Jn.jt)("0.03s linear",(0,Jn.oB)({opacity:1})),(0,Jn.jt)("0.12s cubic-bezier(0, 0, 0.2, 1)",(0,Jn.oB)({transform:"scaleY(1)"}))])]),(0,Jn.eR)(":leave, visible => hidden",[(0,Jn.jt)("0.075s linear",(0,Jn.oB)({opacity:0}))])]);let js=0;class pl{constructor(Xe,g){this.source=Xe,this.option=g}}const ad=(0,Ve.Kr)(class{}),Pi=new n.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function Xa(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1}}});let ld=(()=>{class F extends ad{get isOpen(){return this._isOpen&&this.showPanel}_setColor(g){this._color=g,this._setThemeClasses(this._classList)}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(g){this._autoActiveFirstOption=(0,qt.Ig)(g)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(g){this._autoSelectActiveOption=(0,qt.Ig)(g)}get requireSelection(){return this._requireSelection}set requireSelection(g){this._requireSelection=(0,qt.Ig)(g)}set classList(g){this._classList=g&&g.length?(0,qt.du)(g).reduce((L,R)=>(L[R]=!0,L),{}):{},this._setVisibilityClasses(this._classList),this._setThemeClasses(this._classList),this._elementRef.nativeElement.className=""}constructor(g,L,R,ye){super(),this._changeDetectorRef=g,this._elementRef=L,this._defaults=R,this._activeOptionChanges=ae.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new n.vpe,this.opened=new n.vpe,this.closed=new n.vpe,this.optionActivated=new n.vpe,this._classList={},this.id="mat-autocomplete-"+js++,this.inertGroups=ye?.SAFARI||!1,this._autoActiveFirstOption=!!R.autoActiveFirstOption,this._autoSelectActiveOption=!!R.autoSelectActiveOption,this._requireSelection=!!R.requireSelection}ngAfterContentInit(){this._keyManager=new Ce.s1(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(g=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[g]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(g){this.panel&&(this.panel.nativeElement.scrollTop=g)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(g){const L=new pl(this,g);this.optionSelected.emit(L)}_getPanelAriaLabelledby(g){return this.ariaLabel?null:this.ariaLabelledby?(g?g+" ":"")+this.ariaLabelledby:g}_setVisibilityClasses(g){g[this._visibleClass]=this.showPanel,g[this._hiddenClass]=!this.showPanel}_setThemeClasses(g){g["mat-primary"]="primary"===this._color,g["mat-warn"]="warn"===this._color,g["mat-accent"]="accent"===this._color}_skipPredicate(g){return g.disabled}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(Pi),n.Y36(G.t4))};static#t=this.\u0275dir=n.lG2({type:F,viewQuery:function(L,R){if(1&L&&(n.Gf(n.Rgc,7),n.Gf(sd,5)),2&L){let ye;n.iGM(ye=n.CRH())&&(R.template=ye.first),n.iGM(ye=n.CRH())&&(R.panel=ye.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",requireSelection:"requireSelection",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[n.qOj]})}return F})(),Sc=(()=>{class F extends ld{constructor(){super(...arguments),this._visibleClass="mat-mdc-autocomplete-visible",this._hiddenClass="mat-mdc-autocomplete-hidden",this._animationDone=new n.vpe,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(g){this._hideSingleSelectionIndicator=(0,qt.Ig)(g),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const g of this.options)g._changeDetectorRef.markForCheck()}ngOnDestroy(){super.ngOnDestroy(),this._animationDone.complete()}_skipPredicate(g){return!1}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["mat-autocomplete"]],contentQueries:function(L,R,ye){if(1&L&&(n.Suo(ye,Ve.K7,5),n.Suo(ye,Ve.ey,5)),2&L){let Dt;n.iGM(Dt=n.CRH())&&(R.optionGroups=Dt),n.iGM(Dt=n.CRH())&&(R.options=Dt)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-autocomplete"],inputs:{disableRipple:"disableRipple",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matAutocomplete"],features:[n._Bn([{provide:Ve.HF,useExisting:F}]),n.qOj],ngContentSelectors:hc,decls:1,vars:0,consts:[["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id","ngClass"],["panel",""]],template:function(L,R){1&L&&(n.F$t(),n.YNc(0,uc,3,5,"ng-template"))},dependencies:[e.mk],styles:["div.mat-mdc-autocomplete-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-autocomplete-background-color)}.cdk-high-contrast-active div.mat-mdc-autocomplete-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden}mat-autocomplete{display:none}"],encapsulation:2,data:{animation:[Qa]},changeDetection:0})}return F})();const Td={provide:Z.JU,useExisting:(0,n.Gpc)(()=>Bc),multi:!0},ca=new n.OlP("mat-autocomplete-scroll-strategy"),Dd={provide:ca,deps:[Do.aV],useFactory:function zd(F){return()=>F.scrollStrategies.reposition()}};let Lo=(()=>{class F{get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(g){this._autocompleteDisabled=(0,qt.Ig)(g)}constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){this._element=g,this._overlay=L,this._viewContainerRef=R,this._zone=ye,this._changeDetectorRef=Dt,this._dir=vi,this._formField=Fo,this._document=Ya,this._viewportRuler=Rd,this._defaults=kd,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=ae.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Oe.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,qa.P)(()=>{const tc=this.autocomplete?this.autocomplete.options:null;return tc?tc.changes.pipe((0,fn.O)(tc),(0,ai.w)(()=>(0,Ft.T)(...tc.map(Iu=>Iu.onSelectionChange)))):this._zone.onStable.pipe((0,jn.q)(1),(0,ai.w)(()=>this.optionSelections))}),this._handlePanelKeydown=tc=>{(tc.keyCode===U.hY&&!(0,U.Vb)(tc)||tc.keyCode===U.LH&&(0,U.Vb)(tc,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),tc.stopPropagation(),tc.preventDefault())},this._trackedModal=null,this._scrollStrategy=Mn}ngAfterViewInit(){const g=this._getWindow();typeof g<"u"&&this._zone.runOutsideAngular(()=>g.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(g){g.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const g=this._getWindow();typeof g<"u"&&g.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel(),this._trackedModal&&(0,Ce.Zf)(this._trackedModal,"aria-owns",this.autocomplete.id)}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal)&&(0,Ce.iD)(this._trackedModal,"aria-owns",this.autocomplete.id)}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,Ft.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,oi.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,oi.h)(()=>this._overlayAttached)):(0,Se.of)()).pipe((0,xr.U)(g=>g instanceof Ve.rN?g:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,Ft.T)((0,ot.R)(this._document,"click"),(0,ot.R)(this._document,"auxclick"),(0,ot.R)(this._document,"touchend")).pipe((0,oi.h)(g=>{const L=(0,G.sA)(g),R=this._formField?this._formField._elementRef.nativeElement:null,ye=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&L!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!R||!R.contains(L))&&(!ye||!ye.contains(L))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(L)}))}writeValue(g){Promise.resolve(null).then(()=>this._assignOptionValue(g))}registerOnChange(g){this._onChange=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this._element.nativeElement.disabled=g}_handleKeydown(g){const L=g.keyCode,R=(0,U.Vb)(g);if(L===U.hY&&!R&&g.preventDefault(),this.activeOption&&L===U.K5&&this.panelOpen&&!R)this.activeOption._selectViaInteraction(),this._resetActiveItem(),g.preventDefault();else if(this.autocomplete){const ye=this.autocomplete._keyManager.activeItem,Dt=L===U.LH||L===U.JH;L===U.Mf||Dt&&!R&&this.panelOpen?this.autocomplete._keyManager.onKeydown(g):Dt&&this._canOpen()&&this.openPanel(),(Dt||this.autocomplete._keyManager.activeItem!==ye)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(g){let L=g.target,R=L.value;"number"===L.type&&(R=""==R?null:parseFloat(R)),this._previousValue!==R&&(this._previousValue=R,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(R),R||this._clearPreviousSelectedOption(null,!1),this._canOpen()&&this._document.activeElement===g.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(g=!1){this._formField&&"auto"===this._formField.floatLabel&&(g?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const g=this._zone.onStable.pipe((0,jn.q)(1)),L=this.autocomplete.options.changes.pipe((0,dc.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,Ec.g)(0));return(0,Ft.T)(g,L).pipe((0,ai.w)(()=>(this._zone.run(()=>{const R=this.panelOpen;this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),R!==this.panelOpen&&(this.panelOpen?(this._captureValueOnAttach(),this._emitOpened()):this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,jn.q)(1)).subscribe(R=>this._setValueAndClose(R))}_emitOpened(){this.autocomplete.opened.emit()}_captureValueOnAttach(){this._valueOnAttach=this._element.nativeElement.value}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(g){const L=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(g):g;this._updateNativeInputValue(L??"")}_updateNativeInputValue(g){this._formField?this._formField._control.value=g:this._element.nativeElement.value=g,this._previousValue=g}_setValueAndClose(g){const L=this.autocomplete,R=g?g.source:this._pendingAutoselectedOption;R?(this._clearPreviousSelectedOption(R),this._assignOptionValue(R.value),this._onChange(R.value),L._emitSelectEvent(R),this._element.nativeElement.focus()):L.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),L._animationDone?L._animationDone.pipe((0,jn.q)(1)).subscribe(()=>this._onChange(null)):this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(g,L){this.autocomplete?.options?.forEach(R=>{R!==g&&R.selected&&R.deselect(L)})}_attachOverlay(){let g=this._overlayRef;g?(this._positionStrategy.setOrigin(this._getConnectedElement()),g.updateSize({width:this._getPanelWidth()})):(this._portal=new ct.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),g=this._overlay.create(this._getOverlayConfig()),this._overlayRef=g,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&g&&g.updateSize({width:this._getPanelWidth()})})),g&&!g.hasAttached()&&(g.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const L=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this._captureValueOnAttach(),this.panelOpen&&L!==this.panelOpen&&this._emitOpened()}_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){const g=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=g.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=g.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new Do.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const g=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(g),this._positionStrategy=g,g}_setStrategyPositions(g){const L=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],R=this._aboveClass,ye=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:R},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:R}];let Dt;Dt="above"===this.position?ye:"below"===this.position?L:[...L,...ye],g.withPositions(Dt)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const g=this.autocomplete;if(g.autoActiveFirstOption){let L=-1;for(let R=0;R .cdk-overlay-container [aria-modal="true"]');if(!g)return;const L=this.autocomplete.id;this._trackedModal&&(0,Ce.iD)(this._trackedModal,"aria-owns",L),(0,Ce.Zf)(g,"aria-owns",L),this._trackedModal=g}_clearFromModal(){this._trackedModal&&((0,Ce.iD)(this._trackedModal,"aria-owns",this.autocomplete.id),this._trackedModal=null)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(n.SBq),n.Y36(Do.aV),n.Y36(n.s_b),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(ca),n.Y36(J.Is,8),n.Y36(Ai.G_,9),n.Y36(e.K0,8),n.Y36(_t.rL),n.Y36(Pi,8))};static#t=this.\u0275dir=n.lG2({type:F,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[n.TTD]})}return F})(),Bc=(()=>{class F extends Lo{constructor(){super(...arguments),this._aboveClass="mat-mdc-autocomplete-panel-above"}static#e=this.\u0275fac=function(){let g;return function(R){return(g||(g=n.n5z(F)))(R||F)}}();static#t=this.\u0275dir=n.lG2({type:F,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(L,R){1&L&&n.NdJ("focusin",function(){return R._handleFocus()})("blur",function(){return R._onTouched()})("input",function(Dt){return R._handleInput(Dt)})("keydown",function(Dt){return R._handleKeydown(Dt)})("click",function(){return R._handleClick()}),2&L&&n.uIk("autocomplete",R.autocompleteAttribute)("role",R.autocompleteDisabled?null:"combobox")("aria-autocomplete",R.autocompleteDisabled?null:"list")("aria-activedescendant",R.panelOpen&&R.activeOption?R.activeOption.id:null)("aria-expanded",R.autocompleteDisabled?null:R.panelOpen.toString())("aria-controls",R.autocompleteDisabled||!R.panelOpen||null==R.autocomplete?null:R.autocomplete.id)("aria-haspopup",R.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[n._Bn([Td]),n.qOj]})}return F})(),Ta=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[Dd],imports:[Do.U8,Ve.Ng,Ve.BQ,e.ez,_t.ZD,Ve.Ng,Ve.BQ]})}return F})();function Ed(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-chip-row",11),n.NdJ("removed",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.removeInterest(ye))}),n._uU(1),n.TgZ(2,"button",12)(3,"mat-icon"),n._uU(4,"cancel"),n.qZA()()()}if(2&F){const g=Xe.$implicit;n.xp6(1),n.hij(" ",g.name," "),n.xp6(1),n.uIk("aria-label","remove "+g.name)}}function yc(F,Xe){if(1&F&&(n.TgZ(0,"mat-option",13),n._uU(1),n.qZA()),2&F){const g=Xe.$implicit;n.Q6J("value",g),n.xp6(1),n.hij(" ",g.name," ")}}let ql=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt){super(g,L,R),this.categoryService=ye,this.notifier=Dt,this.categories=[],this.selectedCategories=[],this.searchInputCtl=new Z.NI,this.separatorKeysCodes=[U.K5,U.OC],this.message=""}componentName(){return"ChooseInterestComponent"}ngOnInit(){this.loadCategories(null,null),this.loadMyInterests()}getAutoCompleteItems(){return(0,Se.of)(this.categories)}loadCategories(g,L){this.notifier.log("Loading child categories for: "+g);let R=null==g?S.Z.CATEGORIES.LOADED_ROOT_CATEGORIES():S.Z.CATEGORIES.LOADED_CHILD_CATEGORIES();R=this.componentKey(R),this.categoryService.loadCategories(R,g,L),this.subscribe(R,null,(ye,Dt)=>{this.categories=Dt.data.content,this.notifier.log(this.categories)})}chooseInterest(g){this.selectedCategories.map(L=>L.id).indexOf(g.id)>-1||this.selectedCategories.push(g)}removeInterest(g){let L=this.selectedCategories.map(R=>R.id).indexOf(g.id);this.selectedCategories.splice(L,1)}saveInterests(){let g=this.componentKey(S.Z.CATEGORIES.INTERESTS_SAVED());this.categoryService.saveInterests(g,this.selectedCategories),this.subscribe(g,"/",(L,R)=>{this.notifier.success("Success!","Interests Saved!"),this.notifier.log(R.data)}),this.subscribe(this.getErrorKey(g),"/",(L,R)=>{this.notifier.error("Failed!","Could not save interests!"),this.notifier.log(R.data)})}loadMyInterests(){let g=this.componentKey(S.Z.CATEGORIES.FETCH_INTERESTS());this.categoryService.fetchInterests(g),this.subscribe(g,null,(L,R)=>{this.selectedCategories=R.data.map(Dt=>Dt.category),0===this.selectedCategories.length&&(this.selectedCategories=this.categories,this.message="No interests found on your profile. So we automatically filled some items for you. You can remove, search for new items for interest profile.")})}add(g){}selected(g){this.chooseInterest(g.option.value),this.searchInputCtl.setValue("")}searchInputChange(){this.loadCategories(null,this.searchInputCtl.value)}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(nd.H),n.Y36(te.l))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-choose-interest"]],features:[n.qOj],decls:15,vars:9,consts:[[1,"row","col-sm-12","ps-2"],[1,"example-chip-list"],["aria-label","Fruit selection"],["chipGrid",""],[3,"removed",4,"ngFor","ngForOf"],["placeholder","Search Interests...",3,"formControl","matChipInputFor","matAutocomplete","matChipInputSeparatorKeyCodes","matChipInputTokenEnd","input"],["searchInput",""],[3,"optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[1,"btn","btn-success",3,"click"],[3,"removed"],["matChipRemove",""],[3,"value"]],template:function(L,R){if(1&L&&(n.TgZ(0,"div",0)(1,"em"),n._uU(2),n.qZA(),n.TgZ(3,"mat-form-field",1)(4,"mat-chip-grid",2,3),n.YNc(6,Ed,5,2,"mat-chip-row",4),n.qZA(),n.TgZ(7,"input",5,6),n.NdJ("matChipInputTokenEnd",function(Dt){return R.add(Dt)})("input",function(){return R.searchInputChange()}),n.qZA(),n.TgZ(9,"mat-autocomplete",7,8),n.NdJ("optionSelected",function(Dt){return R.selected(Dt)}),n.YNc(11,yc,2,2,"mat-option",9),n.ALo(12,"async"),n.qZA()(),n.TgZ(13,"button",10),n.NdJ("click",function(){return R.saveInterests()}),n._uU(14,"SAVE INTERESTS"),n.qZA()()),2&L){const ye=n.MAs(5),Dt=n.MAs(10);n.xp6(2),n.Oqu(R.message),n.xp6(4),n.Q6J("ngForOf",R.selectedCategories),n.xp6(1),n.Q6J("formControl",R.searchInputCtl)("matChipInputFor",ye)("matAutocomplete",Dt)("matChipInputSeparatorKeyCodes",R.separatorKeysCodes),n.xp6(4),n.Q6J("ngForOf",n.lcZ(12,7,R.getAutoCompleteItems()))}},dependencies:[e.sg,Z.Fj,Z.JJ,Z.oH,fl,Ja,ka,qe,bi.Hw,Ai.KE,Sc,Ve.ey,Bc,e.Ov],styles:[".interests-chip-list[_ngcontent-%COMP%]{width:100%;padding:10px}"]})}return F})(),wc=(()=>{class F extends rn.b{constructor(g,L,R,ye){super(g,L),this.http=R,this.eventBus=ye}fetchFollowStats(g,L){this.http.get(vn.e.USER.FETCH_FOLLOW_STATS(L)).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.fetchFollowStats(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}followUser(g,L,R){this.http.post(vn.e.USER.FOLLOW_A_USER(L),{message:R}).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.followUser(g,L,R)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}unfollowUser(g,L){this.http.post(vn.e.USER.UNFOLLOW_A_USER(L),null).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.unfollowUser(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}getFollowers(g,L){let R=L?vn.e.USER.GET_MY_FOLLOWING():vn.e.USER.GET_MY_FOLLOWERS();this.http.get(R).subscribe(ye=>{this.eventBus.publish(g,ye)},ye=>{this.handleError(ye,Dt=>{this.getFollowers(g,L)},Dt=>{this.eventBus.publish(this.getErrorKey(g),Dt)})})}getMyProfile(g){this.http.get(vn.e.USER.GET_MY_PROFILE()).subscribe(L=>{this.eventBus.publish(g,L)},L=>{this.handleError(L,R=>{this.getMyProfile(g)},R=>{this.eventBus.publish(this.getErrorKey(g),R)})})}updateProfile(g,L){this.http.patch(vn.e.USER.UPDATE_MY_PROFILE(),L).subscribe(R=>{this.eventBus.publish(g,R)},R=>{this.handleError(R,ye=>{this.updateProfile(g,L)},ye=>{this.eventBus.publish(this.getErrorKey(g),ye)})})}static#e=this.\u0275fac=function(L){return new(L||F)(n.LFG(_e.e),n.LFG(te.l),n.LFG(ei.eN),n.LFG(re.Y))};static#t=this.\u0275prov=n.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})();function kl(F,Xe){1&F&&n._UZ(0,"util-progress",4),2&F&&n.Q6J("bar",!0)}function Ql(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"section",5),n.NdJ("click",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw();return n.KtG(Dt.onItemClick(ye))}),n.TgZ(1,"div",6),n.NdJ("touchstart",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.swipe(R,ye.SWIPE_START,ye.swipeKey))})("touchend",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.swipe(R,ye.SWIPE_END,ye.swipeKey))}),n.TgZ(2,"div",7)(3,"div",8),n._UZ(4,"img",9),n.TgZ(5,"div",10)(6,"h4"),n._uU(7),n.qZA(),n.TgZ(8,"small")(9,"span",11),n._uU(10),n.qZA()()()()()()()}if(2&F){const g=Xe.$implicit;n.xp6(4),n.s9C("src",g.avatar,n.LSH),n.xp6(3),n.Oqu(g.name),n.xp6(3),n.hij("@",g.username,"")}}let Ac=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.userService=ye,this.isFollowing=!1,this.followers=[],this.itemClick=new n.vpe,this.swipeKey=this.componentKey("swipe")}componentName(){return"FollowersComponent"}ngOnInit(){this.loadFollowers(this.isFollowing?1:2),this.registerSwipe()}getTabHeaders(){let g=[];return g.push({id:1,title:"Following"}),g.push({id:2,title:"Followers"}),g}onTabSelected(g){this.loadFollowers(g)}loadFollowers(g){this.loading=!0;let L=1===g,R=this.componentKey(S.Z.USERS.GET_MY_FOLLOWERS());this.userService.getFollowers(R,L),this.subscribe(R,null,(ye,Dt)=>{this.followers=Dt.data.content,this.loading=!1})}onItemClick(g){this.router.navigateByUrl("/profile",{skipLocationChange:!0}).then(()=>{this.navigate("/u/"+g.username,L=>{}),this.itemClick.emit(!0)})}registerSwipe(){this.subscribe(this.swipeKey,null,(g,L)=>{L.data===this.SWIPE_RIGHT?(this.isFollowing=!1,this.onTabSelected(2)):(this.isFollowing=!0,this.onTabSelected(1))})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(wc))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-followers"]],inputs:{isFollowing:"isFollowing"},outputs:{itemClick:"itemClick"},features:[n.qOj],decls:4,vars:4,consts:[["id","followers"],[3,"tabHeaders","selectedTabId","onSelect"],[3,"bar",4,"ngIf"],["class","blog-post-area blog-post-area-comment bdr-top mt-2",3,"click",4,"ngFor","ngForOf"],[3,"bar"],[1,"blog-post-area","blog-post-area-comment","bdr-top","mt-2",3,"click"],[1,"container",3,"touchstart","touchend"],[1,"blog-post-top","d-flex","justify-content-between","py-1"],[1,"blog-post-top-left","d-flex","align-items-center"],["alt","",1,"image-rounded",3,"src"],[1,"content","ms-2"],[2,"color","#44d62c"]],template:function(L,R){1&L&&(n.TgZ(0,"div",0)(1,"app-tab-header",1),n.NdJ("onSelect",function(Dt){return R.onTabSelected(Dt)}),n.qZA(),n.YNc(2,kl,1,1,"util-progress",2),n.YNc(3,Ql,11,3,"section",3),n.qZA()),2&L&&(n.xp6(1),n.Q6J("tabHeaders",R.getTabHeaders())("selectedTabId",R.isFollowing?1:2),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngForOf",R.followers))},dependencies:[e.sg,e.O5,Ge.t,Wi],styles:["#followers[_ngcontent-%COMP%]{background:black}"]})}return F})();function Hc(F,Xe){1&F&&n._UZ(0,"util-progress",5),2&F&&n.Q6J("bar",!0)}function Eo(F,Xe){1&F&&n._UZ(0,"util-progress",6),2&F&&n.Q6J("padding",50)("size",30)("message","Loading profile..")}function Xl(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"This field is required!"),n.qZA()())}function cd(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Select a gender!"),n.qZA()())}function fc(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Invalid!"),n.qZA()())}function xc(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Select a gender!"),n.qZA()())}function Po(F,Xe){1&F&&(n.TgZ(0,"div",65)(1,"span"),n._uU(2,"Invalid religion!"),n.qZA()())}function da(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"div",7)(1,"div",8)(2,"form",9)(3,"div",10)(4,"div",11),n._UZ(5,"img",12),n.TgZ(6,"div",13)(7,"input",14),n.NdJ("change",function(R){n.CHM(g);const ye=n.oxw();return n.KtG(ye.onImageSelected(R))}),n.qZA()()()(),n.TgZ(8,"div",15)(9,"label",16),n._uU(10,"Public Profile?"),n.TgZ(11,"span",17),n._uU(12,"*"),n.qZA(),n._uU(13,"\xa0\xa0"),n.qZA(),n._UZ(14,"input",18),n.qZA(),n.TgZ(15,"div")(16,"h5",19),n._uU(17,"BIRTHDAY"),n.TgZ(18,"span",17),n._uU(19,"*"),n.qZA()(),n._UZ(20,"input",20),n.qZA(),n.YNc(21,Xl,3,0,"div",21),n.TgZ(22,"div",22)(23,"h5",19),n._uU(24,"SELECT GENDER"),n.TgZ(25,"span",17),n._uU(26,"*"),n.qZA()(),n.TgZ(27,"div",23),n._UZ(28,"input",24),n.TgZ(29,"label",25),n._uU(30," Male "),n.qZA()(),n.TgZ(31,"div",23),n._UZ(32,"input",26),n.TgZ(33,"label",27),n._uU(34," Female "),n.qZA()(),n.TgZ(35,"div",23),n._UZ(36,"input",28),n.TgZ(37,"label",29),n._uU(38," Other "),n.qZA()(),n.YNc(39,cd,3,0,"div",21),n.qZA(),n.TgZ(40,"div")(41,"h5",19),n._uU(42,"MARITAL STATUS"),n.qZA(),n.TgZ(43,"select",30)(44,"option",31),n._uU(45,"Married"),n.qZA(),n.TgZ(46,"option",32),n._uU(47,"Unmarried"),n.qZA(),n.TgZ(48,"option",33),n._uU(49,"Divorced"),n.qZA(),n.TgZ(50,"option",34),n._uU(51,"Separated"),n.qZA(),n.TgZ(52,"option",35),n._uU(53,"Widower"),n.qZA(),n.TgZ(54,"option",36),n._uU(55,"Widow"),n.qZA(),n.TgZ(56,"option",37),n._uU(57,"Other"),n.qZA()(),n.YNc(58,fc,3,0,"div",21),n.qZA(),n.TgZ(59,"h5",19),n._uU(60,"BLOOD GROUP"),n.qZA(),n.TgZ(61,"div",38)(62,"div",23),n._UZ(63,"input",39),n.TgZ(64,"label",40),n._uU(65," A+ "),n.qZA()(),n.TgZ(66,"div",23),n._UZ(67,"input",41),n.TgZ(68,"label",42),n._uU(69," A- "),n.qZA()(),n.TgZ(70,"div",23),n._UZ(71,"input",43),n.TgZ(72,"label",44),n._uU(73," B+ "),n.qZA()(),n.TgZ(74,"div",23),n._UZ(75,"input",45),n.TgZ(76,"label",46),n._uU(77," B- "),n.qZA()(),n.TgZ(78,"div",23),n._UZ(79,"input",47),n.TgZ(80,"label",48),n._uU(81," AB+ "),n.qZA()(),n.TgZ(82,"div",23),n._UZ(83,"input",49),n.TgZ(84,"label",50),n._uU(85," AB- "),n.qZA()(),n.TgZ(86,"div",23),n._UZ(87,"input",51),n.TgZ(88,"label",52),n._uU(89," O+ "),n.qZA()(),n.TgZ(90,"div",23),n._UZ(91,"input",53),n.TgZ(92,"label",54),n._uU(93," O- "),n.qZA()(),n.YNc(94,xc,3,0,"div",21),n.qZA(),n.TgZ(95,"div")(96,"h5",19),n._uU(97,"RELIGION"),n.qZA(),n.TgZ(98,"select",55)(99,"option",56),n._uU(100,"Islam"),n.qZA(),n.TgZ(101,"option",57),n._uU(102,"Hindu"),n.qZA(),n.TgZ(103,"option",58),n._uU(104,"Buddhist"),n.qZA(),n.TgZ(105,"option",59),n._uU(106,"Christian"),n.qZA(),n.TgZ(107,"option",60),n._uU(108,"Humanity"),n.qZA(),n.TgZ(109,"option",61),n._uU(110,"Other"),n.qZA()(),n.YNc(111,Po,3,0,"div",21),n.qZA(),n.TgZ(112,"mat-dialog-actions",62)(113,"button",63),n._uU(114,"CANCEL"),n.qZA(),n.TgZ(115,"button",64),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.updateProfile())}),n._uU(116,"UPDATE "),n.qZA()()()()()}if(2&F){const g=n.oxw();n.xp6(2),n.Q6J("formGroup",g.profileForm),n.xp6(3),n.s9C("src",g.hasProfilePhoto()?null==g.profile?null:g.profile.photo:"assets/img/default-avatar.png",n.LSH),n.xp6(16),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.birthday)),n.xp6(18),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.gender)),n.xp6(19),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.marital_status)),n.xp6(36),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.gender)),n.xp6(17),n.Q6J("ngIf",g.isInvalidInput(g.profileForm.controls.religion)),n.xp6(4),n.Q6J("mat-dialog-close",!0)("disabled",g.profileForm.invalid)}}let Ll=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya){super(L,R,ye),this.location=g,this.notifier=Dt,this.userService=Mn,this.auth=vi,this.datePipe=Fo,this.fileUploadService=Ya,this.userId=null,this.profileForm=new Z.cw({gender:new Z.NI("",[Z.kI.required]),birthday:new Z.NI("",[Z.kI.required]),public:new Z.NI(!1),blood_group:new Z.NI(""),marital_status:new Z.NI(""),religion:new Z.NI(""),use_photo_as_avatar:new Z.NI("")}),this.profile=null,this.uploadFiles=[]}componentName(){return"UpdateProfileComponent"}ngOnInit(){this.fetchMyProfile()}fetchMyProfile(){this.loading=!0;let g=this.componentKey(S.Z.USERS.GET_MY_PROFILE());this.userService.getMyProfile(g),this.subscribe(g,null,(L,R)=>{this.profile=R.data,this.loading=!1,this.updateForm(this.profile)}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{let ye=R.data;404==ye.error.code&&(this.loading=!1,this.notifier.info("No profile","Fill the form to create your profile ")),this.notifier.log(ye)})}updateProfile(){let g=this.mapToProfile(this.profileForm.value),L=this.componentKey(S.Z.USERS.UPDATE_MY_PROFILE());this.userService.updateProfile(L,g),this.subscribe(L,null,(R,ye)=>{this.profile=ye.data}),this.subscribe(this.getErrorKey(L),null,(R,ye)=>{this.notifier.log(ye.data)})}mapToProfile(g){return{gender:g.gender,birthday:new Date(g.birthday),blood_group:""===g.blood_group?null:g.blood_group,marital_status:""===g.marital_status?null:g.marital_status,religion:""===g.religion?null:g.religion,public:""!==g.public,use_photo_as_avatar:!0,photo:null==this.profile?.photo?null:this.profile.photo,user_id:this.auth.getAuth().id}}updateForm(g){null!=g&&(this.profileForm.controls.public.setValue(g.public),this.profileForm.controls.birthday.setValue(this.datePipe.transform(g.birthday,"yyyy-MM-dd")),this.profileForm.controls.gender.setValue(g.gender),this.profileForm.controls.marital_status.setValue(g.marital_status),this.profileForm.controls.blood_group.setValue(g.blood_group),this.profileForm.controls.religion.setValue(g.religion))}hasProfilePhoto(){return null!=this.profile?.photo&&""!==this.profile?.photo.trim()}onImageSelected(g){if(this.uploadFiles.length>=3)this.notifier.info("Operation not allowed!","You can upload 3 photos in a post.");else if(g.target.files&&g.target.files[0]){if(null==g.target.files[0].type.match(/image\/*/))return void this.notifier.warning("Unsupported","Only images are supported.");let R={file:g.target.files[0],previewUrl:null};const ye=new FileReader;ye.readAsDataURL(g.target.files[0]),ye.onload=Dt=>{let Mn=Dt.target?.result;null!=Mn&&(R.previewUrl=Mn,this.uploadFiles.push(R),this.uploadPhoto())}}}uploadPhoto(){this.loading=!0;let g=this.componentKey(S.Z.FILES.IMAGE_UPLOAD(this.userId+""));this.fileUploadService.uploadImages(g,this.uploadFiles.map(L=>L.file)),this.subscribe(g,null,(L,R)=>{this.loading=!1,null!=this.profile&&(this.profile.photo=R.data[0].thumb_url)}),this.subscribe(this.getErrorKey(g),null,(L,R)=>{this.loading=!1,this.notifier.error("Error",R.data.error.message)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(e.Ye),n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(te.l),n.Y36(wc),n.Y36(_e.e),n.Y36(e.uU),n.Y36(oe.J))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-update-profile"]],inputs:{userId:"userId"},features:[n.qOj],decls:6,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"padding","size","message",4,"ngIf"],["mat-dialog-close","",1,"closs-post",2,"float","right"],[1,"flaticon-letter-x"],["class","login-form-section",4,"ngIf"],[3,"bar"],[3,"padding","size","message"],[1,"login-form-section"],[1,"astha-login-form-area"],["action","POST",3,"formGroup"],[1,"profile-picture-area","text-center"],[1,"profile-avater"],["alt","",1,"profile-avatar-new","profile-img-rounded",3,"src"],[1,"upload-img-area"],["type","file","id","image-upload",3,"change"],[1,"input-group"],["for","public",1,"form-check-label"],[1,"astaric-required"],["id","public","type","checkbox","name","public","formControlName","public",1,"form-check"],[1,"update-profile-label"],["type","date","name","birthday","placeholder","Birthday","formControlName","birthday","required","required",1,"form-control"],["class","text-warning",4,"ngIf"],[1,"input-group","d-inline"],[1,"form-check"],["type","radio","name","gender","id","exampleRadios1","value","MALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios1",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios2","value","FEMALE","formControlName","gender",1,"form-check-input"],["for","exampleRadios2",1,"form-check-label"],["type","radio","name","gender","id","exampleRadios3","value","OTHER","formControlName","gender",1,"form-check-input"],["for","exampleRadios3",1,"form-check-label"],["name","marital_status","formControlName","marital_status",1,"form-select"],["value","MARRIED"],["value","UNMARRIED"],["value","DIVORCED"],["value","SEPARATED"],["value","WIDOWER"],["value","WIDOW"],["value","OTHERS"],[1,"input-group","form-check-inline"],["type","radio","name","blood_group","id","bg1","value","A_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg1",1,"form-check-label"],["type","radio","name","blood_group","id","bg2","value","A_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg2",1,"form-check-label"],["type","radio","name","blood_group","id","bg3","value","B_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg3",1,"form-check-label"],["type","radio","name","blood_group","id","bg4","value","B_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg4",1,"form-check-label"],["type","radio","name","blood_group","id","bg5","value","AB_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg5",1,"form-check-label"],["type","radio","name","blood_group","id","bg6","value","AB_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg6",1,"form-check-label"],["type","radio","name","blood_group","id","bg7","value","O_POSITIVE","formControlName","blood_group","checked","",1,"form-check-input"],["for","bg7",1,"form-check-label"],["type","radio","name","blood_group","id","bg8","value","O_NEGATIVE","formControlName","blood_group",1,"form-check-input"],["for","bg8",1,"form-check-label"],["name","religion","formControlName","religion",1,"form-select"],["value","ISLAM"],["value","HINDU"],["value","BUDDHIST"],["value","CHRISTIAN"],["value","HUMANITY"],["value","OTHER"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","","cdkFocusInitial","",3,"mat-dialog-close","disabled","click"],[1,"text-warning"]],template:function(L,R){1&L&&(n.YNc(0,Hc,1,1,"util-progress",0),n.YNc(1,Eo,1,3,"util-progress",1),n.TgZ(2,"div")(3,"div",2),n._UZ(4,"i",3),n.qZA()(),n.YNc(5,da,117,9,"div",4)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(4),n.Q6J("ngIf",!R.loading))},dependencies:[e.O5,Z._Y,Z.YN,Z.Kr,Z.Fj,Z.Wl,Z.EJ,Z._,Z.JJ,Z.JL,Z.Q7,Z.sg,Z.u,Re.ZT,Re.H8,mt.lW,Ge.t],styles:[".update-profile-label[_ngcontent-%COMP%]{color:#44d62c;margin:20px 0 5px}input[type=date][_ngcontent-%COMP%]{color:#000!important}.astaric-required[_ngcontent-%COMP%]{color:red}.action-buttons[_ngcontent-%COMP%]{margin-top:20px;padding-bottom:20px;display:flex;flex-direction:row;align-content:center;justify-content:space-between}.form-check[_ngcontent-%COMP%]{margin-right:20px}.profile-avatar-new[_ngcontent-%COMP%]{height:70px;width:70px;margin-bottom:10px;object-fit:cover}.profile-picture-area[_ngcontent-%COMP%]{margin-bottom:20px}.upload-img-area[_ngcontent-%COMP%]{font-size:12px}.btn-change-photo[_ngcontent-%COMP%]{color:#44d62c;margin-bottom:20px}"]})}return F})();var as=C(2071),pc=C(1822);function ir(F,Xe){1&F&&n._UZ(0,"util-progress")}function k(F,Xe){1&F&&n._UZ(0,"app-post",2),2&F&&n.Q6J("post",Xe.$implicit)}function j(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,k,1,1,"app-post",1),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.posts?null:g.posts.content)}}let pe=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.postService=ye,this.username=null,this.posts=null}componentName(){return"PostListComponent"}ngOnInit(){this.fetchPosts()}fetchPosts(){if(null==this.username)return;this.loading=!0;let g=this.componentKey(S.Z.POSTS.FETCH_USER_POSTS(this.username));this.postService.fetchUserPosts(g,this.username,{}),this.subscribe(g,null,(L,R)=>{this.posts=R.data,this.loading=!1})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Wn))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-list"]],inputs:{username:"username"},features:[n.qOj],decls:2,vars:2,consts:[[4,"ngIf"],[3,"post",4,"ngFor","ngForOf"],[3,"post"]],template:function(L,R){1&L&&(n.YNc(0,ir,1,0,"util-progress",0),n.YNc(1,j,2,1,"div",0)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading))},dependencies:[e.sg,e.O5,Ge.t,oa]})}return F})();function ke(F,Xe){1&F&&(n.TgZ(0,"mat-icon",2),n._uU(1,"reviews"),n.qZA(),n._uU(2," Reviews "))}function nt(F,Xe){1&F&&(n.TgZ(0,"mat-icon",2),n._uU(1,"dynamic_feed"),n.qZA(),n._uU(2," Posts "))}let Kt=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.username=null}componentName(){return"UserResourcesComponent"}ngOnInit(){}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-user-resources"]],inputs:{username:"username"},features:[n.qOj],decls:7,vars:2,consts:[["mat-tab-label",""],[3,"username"],[1,"example-tab-icon"]],template:function(L,R){1&L&&(n.TgZ(0,"mat-tab-group")(1,"mat-tab"),n.YNc(2,ke,3,0,"ng-template",0),n._UZ(3,"app-review-list",1),n.qZA(),n.TgZ(4,"mat-tab"),n.YNc(5,nt,3,0,"ng-template",0),n._UZ(6,"app-post-list",1),n.qZA()()),2&L&&(n.xp6(3),n.Q6J("username",R.username),n.xp6(3),n.Q6J("username",R.username))},dependencies:[bi.Hw,vr,to,ga,Bs,pe],styles:[".example-tab-icon[_ngcontent-%COMP%]{margin-right:8px} mat-tab-header{align-self:center}"]})}return F})();function xn(F,Xe){1&F&&n._UZ(0,"util-progress",26),2&F&&n.Q6J("bar",!0)}function Mi(F,Xe){1&F&&n._UZ(0,"img",28)}function Oi(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Mi,1,0,"img",27),n.TgZ(2,"h5"),n._uU(3),n.qZA()()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",null==g.leaderboard?null:g.leaderboard.badges),n.xp6(2),n.Oqu(null==g.leaderboard||null==g.leaderboard.current_badge?null:g.leaderboard.current_badge.title)}}function Hr(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",33),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.unfollow(R.username))}),n._uU(1,"Pending"),n.qZA()}}function ws(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",34),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.unfollow(R.username))}),n._uU(1,"Following"),n.qZA()}}function tl(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(3);return n.KtG(R.follow(R.username))}),n._uU(1,"Follow"),n.qZA()}}function Zs(F,Xe){if(1&F&&(n.TgZ(0,"div"),n.YNc(1,Hr,2,0,"span",31),n.YNc(2,ws,2,0,"span",32),n.YNc(3,tl,2,0,"span",30),n.qZA()),2&F){const g=n.oxw(2);n.xp6(1),n.Q6J("ngIf","PENDING"===(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf","ACCEPTED"===(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf","REJECTED"===(null==g.followStats?null:g.followStats.my_follow_state))}}function Uc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"span",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.follow(R.username))}),n._uU(1,"Follow"),n.qZA()}}function ls(F,Xe){if(1&F&&(n.TgZ(0,"button",29),n.YNc(1,Zs,4,3,"div",16),n.YNc(2,Uc,2,0,"span",30),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngIf",null!=(null==g.followStats?null:g.followStats.my_follow_state)),n.xp6(1),n.Q6J("ngIf",null==(null==g.followStats?null:g.followStats.my_follow_state))}}let Gd=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi,Fo,Ya,Rd,kd){super(L,R,ye),this.location=g,this.authService=Dt,this.notifier=Mn,this.leaderboardService=vi,this.walletService=Fo,this.dialog=Ya,this.userService=Rd,this.leaderboard=null,this.followStats=null,this.username=null,this.username=kd.snapshot.params.username}componentName(){return"ProfileComponent"}ngOnInit(){null==this.username&&(this.username=this.getAuthUsername()),this.fetchLeaderboard(),this.fetchFollowStats()}getAuthUsername(){return this.getAuth().username}goBack(){this.location.back()}isLoadComplete(){return null!=this.leaderboard}myProfile(){return this.username===this.getAuthUsername()}getAuth(){return this.authService.getAuth()}fetchLeaderboard(){if(null==this.username)return;let g=this.componentKey(S.Z.LEADERBOARDS.FETCH_LEADERBOARD(this.username));this.leaderboardService.fetchLeaderboard(g,this.username),this.subscribe(g,null,(L,R)=>{this.leaderboard=R.data})}getBadgeCount(){return null==this.leaderboard?0:this.leaderboard.badges.length}fetchFollowStats(){if(null==this.username)return;let g=this.componentKey(S.Z.USERS.FETCH_FOLLOW_STATS(this.username));this.userService.fetchFollowStats(g,this.username),this.subscribe(g,null,(L,R)=>{this.followStats=R.data})}follow(g){if(null==g)return;const L=this.componentKey(S.Z.USERS.FOLLOW_USER(g));this.userService.followUser(L,g,""),this.subscribe(L,null,(R,ye)=>{let Dt=ye.data;this.notifier.log(this.followStats),this.followStats&&(this.followStats.my_follow_state=Dt.state)})}unfollow(g){if(null==g)return;const L=this.componentKey(S.Z.USERS.UNFOLLOW_USER(g));this.userService.unfollowUser(L,g),this.subscribe(L,null,(R,ye)=>{this.followStats&&(this.followStats.my_follow_state=null)})}isMyProfile(){return!!this.authService.isAuthenticated()&&this.getAuthUsername()===this.username}openFollowingDialog(g){if(!this.isMyProfile())return;const L=this.dialog.open(Ac);let R=L.componentInstance;R.isFollowing=g,R.itemClick.subscribe(ye=>{L.close()}),L.afterClosed().subscribe(ye=>{this.reloadRoute()})}openLeaderboard(){if(null==this.leaderboard)return;let L=this.dialog.open(as.B,{width:"600px"}).componentInstance;L.leaderboard=this.leaderboard,L.username=this.username}openUpdateProfileDialog(){if(!this.isMyProfile())return;this.dialog.open(Ll).afterClosed().subscribe(R=>{this.reloadRoute()})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(e.Ye),n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(_e.e),n.Y36(te.l),n.Y36(ce.S),n.Y36(pc.X),n.Y36(Re.uw),n.Y36(wc),n.Y36(l.gz))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-profile"]],features:[n.qOj],decls:44,vars:11,consts:[[3,"bar",4,"ngIf"],[1,"header-area","px-3","py-1"],[1,"container"],[1,"row","align-items-center"],[1,"col-4"],[1,"header-left"],[3,"click"],[1,"icon-left-small"],[1,"site-logo"],[1,"edit-profile-section","right",3,"click"],[1,"icon-edit",2,"font-size","1.2em"],[1,"profile-section","py-2"],[1,"profile-picture-area","text-center"],[1,"profile-avater"],["alt","",1,"profile-avatar-new","profile-img-rounded",2,"min-height","100px",3,"src"],[1,"author-name"],[4,"ngIf"],[1,"username"],[1,"action-area"],[1,"col-4","text-center",3,"click"],["class","btn btn-outline-light",4,"ngIf"],[1,"col-5","text-center",3,"click"],[1,"scans-users-codes-area"],[1,"row",2,"padding","0 5% 0 5%"],[1,"btn","btn-outline-light",3,"click"],[3,"username"],[3,"bar"],["src","assets/img/recent-acchievements/rating/badge1.png",4,"ngFor","ngForOf"],["src","assets/img/recent-acchievements/rating/badge1.png"],[1,"btn","btn-outline-light"],[3,"click",4,"ngIf"],["class","btn-selected-not-yet",3,"click",4,"ngIf"],["class","btn-selected",3,"click",4,"ngIf"],[1,"btn-selected-not-yet",3,"click"],[1,"btn-selected",3,"click"]],template:function(L,R){1&L&&(n.YNc(0,xn,1,1,"util-progress",0),n.TgZ(1,"div")(2,"header",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"a",6),n.NdJ("click",function(){return R.goBack()}),n._UZ(8,"i",7),n.qZA()()(),n.TgZ(9,"div",4)(10,"div",8)(11,"h3"),n._uU(12,"Profile"),n.qZA()()(),n.TgZ(13,"div",4)(14,"div",9),n.NdJ("click",function(){return R.openUpdateProfileDialog()}),n._UZ(15,"i",10),n.qZA()()()()(),n.TgZ(16,"div",11)(17,"div",2)(18,"div",12)(19,"div",13),n._UZ(20,"img",14),n.qZA(),n.TgZ(21,"div",15),n.YNc(22,Oi,4,2,"div",16),n.TgZ(23,"h2"),n._uU(24),n.qZA(),n.TgZ(25,"span",17),n._uU(26),n.qZA()()(),n.TgZ(27,"div",18)(28,"div",19),n.NdJ("click",function(){return R.openFollowingDialog(!0)}),n.TgZ(29,"h2"),n._uU(30),n.qZA(),n.TgZ(31,"h4"),n._uU(32,"Following"),n.qZA()(),n.YNc(33,ls,3,2,"button",20),n.TgZ(34,"div",21),n.NdJ("click",function(){return R.openFollowingDialog(!1)}),n.TgZ(35,"h2"),n._uU(36),n.qZA(),n.TgZ(37,"h4"),n._uU(38,"Followers"),n.qZA()()(),n.TgZ(39,"div",22)(40,"div",23)(41,"button",24),n.NdJ("click",function(){return R.openLeaderboard()}),n._uU(42),n.qZA()()()()(),n._UZ(43,"app-user-resources",25),n.qZA()),2&L&&(n.Q6J("ngIf",!R.isLoadComplete()),n.xp6(1),n.Q6J("@dataLoaded",R.isLoadComplete()?"loaded":"loading"),n.xp6(19),n.s9C("src",null!=(null==R.leaderboard?null:R.leaderboard.avatar)?null==R.leaderboard?null:R.leaderboard.avatar:"assets/img/default-avatar.png",n.LSH),n.xp6(2),n.Q6J("ngIf",R.getBadgeCount()>0),n.xp6(2),n.Oqu(null==R.leaderboard?null:R.leaderboard.name),n.xp6(2),n.hij("@",R.username,""),n.xp6(4),n.Oqu(null==R.followStats?null:R.followStats.following_count),n.xp6(3),n.Q6J("ngIf",null!=R.leaderboard),n.xp6(3),n.Oqu(null==R.followStats?null:R.followStats.followers_count),n.xp6(6),n.hij("EARNED POINTS: ",null==R.leaderboard?null:R.leaderboard.points," (?)"),n.xp6(1),n.Q6J("username",R.username))},dependencies:[e.sg,e.O5,Ge.t,Kt],styles:['img[_ngcontent-%COMP%]{max-width:100%;height:auto}body[_ngcontent-%COMP%]{background-color:var(--body-color);color:#222126}.header-area[_ngcontent-%COMP%] .header-left[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .header-area[_ngcontent-%COMP%] .site-logo[_ngcontent-%COMP%]{color:#f5f5f5}.header-area[_ngcontent-%COMP%] .site-logo[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{text-align:center;font-size:22px;font-weight:600}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%]{margin-top:15px}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:25px;font-weight:600}.profile-section[_ngcontent-%COMP%] .author-name[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--light-gray);font-size:var(--font-size-14px)}.profile-section[_ngcontent-%COMP%] .profile-avater[_ngcontent-%COMP%]{position:relative;display:inline-block}.profile-avatar-new[_ngcontent-%COMP%]{display:inline;margin:0 auto;height:60px!important;width:100px!important;object-fit:cover}.profile-section[_ngcontent-%COMP%] .profile-avater[_ngcontent-%COMP%]:after{position:absolute;content:"";left:0;top:0;width:100%;height:100%;border:3px solid #756CB5;z-index:2;display:inline-block;border-radius:50%}.scans-users-codes-area[_ngcontent-%COMP%]{border-top:1px solid var(--light-gray);padding-top:20px;margin-bottom:20px}.scans-users-codes-area[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--light-gray);font-size:var(--font-size-14px);text-transform:capitalize}.author-name[_ngcontent-%COMP%] .username[_ngcontent-%COMP%]{color:#44d62c}.scans-users-codes-area[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{color:#f5f5f5}.action-area[_ngcontent-%COMP%]{margin:10px 0 0 10px;display:flex;justify-content:center;flex-direction:row}.action-area[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{margin:10px;min-width:25%}.btn-selected[_ngcontent-%COMP%]{color:#44d62c;font-size:.8em}.btn-selected-not-yet[_ngcontent-%COMP%]{color:orange;outline-color:orange;font-size:.8em}.edit-profile-section[_ngcontent-%COMP%]{float:right}']})}return F})();var _c=C(9538);function Sd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function Eu(F,Xe){if(1&F&&n._UZ(0,"app-single-review-item",4),2&F){const g=n.oxw();n.Q6J("review",g.review)}}let Ad=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn,vi){super(g,L,R),this.reviewService=Dt,this.seoTitle=Mn,this.seoMeta=vi,this.productSlug="",this.reviewSlug="",this.postId=0,this.review=null,this.productSlug=ye.snapshot.params.productSlug,this.reviewSlug=ye.snapshot.params.reviewSlug,this.postId=ye.snapshot.params.postId}componentName(){return"ReviewDetailsComponent"}ngOnInit(){let g=this.componentKey(S.Z.REVIEWS.LOAD_REVIEW(this.reviewSlug));this.reviewService.fetchReview(g,this.productSlug,this.reviewSlug),this.subscribe(g,null,(L,R)=>{this.review=R.data,this.resolveSeo(this.review),this.loading=!1})}resolveSeo(g){null!=g&&super.initSeoItems(this.seoTitle,this.seoMeta,g.title,g.pros+", "+g.cons,[g.product_name+" review","Rating for "+g.product_name],null,null,this.getCoverPhoto(g),this.getPermalink())}getCoverPhoto(g){return null==g.photos||0==g.photos.length?null:g.photos[0]}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(se.F),n.Y36(nn.Dx),n.Y36(nn.h_))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-review-details"]],features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"review",4,"ngIf"],[3,"postId"],[3,"bar"],[3,"review"]],template:function(L,R){1&L&&(n.YNc(0,Sd,1,1,"util-progress",0),n.YNc(1,Eu,1,1,"app-single-review-item",1),n._UZ(2,"app-conversation-area",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("postId",R.postId))},dependencies:[e.O5,Ge.t,El,Al]})}return F})();function Wd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function Pl(F,Xe){if(1&F&&n._UZ(0,"app-post",4),2&F){const g=n.oxw();n.Q6J("post",g.post)("fullVersion",!0)}}let ua=(()=>{class F extends I.H{constructor(g,L,R,ye,Dt,Mn){super(g,L,R),this.postService=Dt,this.dialog=Mn,this.postId=0,this.post=null,this.postId=ye.snapshot.params.postId}componentName(){return"PostDetailsComponent"}ngOnInit(){this.loadData(this.postId)}loadData(g){this.loading=!0;const L=this.componentKey(S.Z.POSTS.FETCH_POST(g));this.postService.fetchPost(L,this.postId),this.subscribe(L,null,(R,ye)=>{this.post=ye.data,this.loading=!1})}openPostBox(g){const L=this.dialog.open(Ga,{disableClose:!0});let R=L.componentInstance;R.commentBox=!1,R.post=g,R.onPosted.subscribe(ye=>{this.post=ye,L.close()}),R.onCancel.subscribe(ye=>{L.close()})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(l.gz),n.Y36(Wn),n.Y36(Re.uw))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-post-details"]],inputs:{postId:"postId",post:"post"},features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],[3,"post","fullVersion",4,"ngIf"],[3,"postId"],[3,"bar"],[3,"post","fullVersion"]],template:function(L,R){1&L&&(n.YNc(0,Wd,1,1,"util-progress",0),n.YNc(1,Pl,1,2,"app-post",1),n._UZ(2,"app-conversation-area",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("postId",R.postId))},dependencies:[e.O5,Ge.t,oa,Al]})}return F})();var Or=C(9029);function Vc(F,Xe){1&F&&n._UZ(0,"util-progress",18),2&F&&n.Q6J("bar",!0)}function zo(F,Xe){1&F&&(n.TgZ(0,"em",19),n._uU(1,"Write at least 3 characters to start searching"),n.qZA())}function zi(F,Xe){1&F&&n._UZ(0,"util-progress",20),2&F&&n.Q6J("padding",100)}function Nl(F,Xe){1&F&&(n.TgZ(0,"div",21),n._UZ(1,"i",22),n.TgZ(2,"h3",23),n._uU(3,"Search for products"),n.qZA()())}function La(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-single-product-item",26),n.NdJ("onClick",function(){const ye=n.CHM(g).$implicit,Dt=n.oxw(2);return n.KtG(Dt.onProductClick(ye))}),n.qZA()}2&F&&n.Q6J("product",Xe.$implicit)}function $d(F,Xe){if(1&F&&(n.TgZ(0,"div",24),n.YNc(1,La,1,1,"app-single-product-item",25),n.qZA()),2&F){const g=n.oxw();n.xp6(1),n.Q6J("ngForOf",g.products)}}let mc=(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.productService=ye,this.query=new Z.NI(""),this.productPage=null,this.products=[],this.filters={q:"",brand_id:null,category_id:null,min_retail_price:0,max_retail_price:9e4},this.showFilter=!1}componentName(){return"SearchComponent"}ngOnInit(){this.loading=!1,F.setDefaultFocus()}onQueryEntering(g){this.query.value.length<3||(this.filters.q=this.query.value,this.searchProducts())}static setDefaultFocus(){document.getElementById("search-input")?.focus()}searchProducts(){this.loading=!0;let g=this.componentKey(S.Z.PRODUCTS.SEARCH_PRODUCTS());this.productService.search(g,this.filters),this.subscribe(g,null,(L,R)=>{this.products=this.mapToSlice(R.data.content),this.loading=!1})}onProductClick(g){this.navigate("/products/"+g.product_id+"/"+g.product_slug,L=>{console.log(g)})}toggleFilter(){this.showFilter=!this.showFilter}onFilter(g){g.q=this.query.value,this.filters=g,this.searchProducts()}mapToSlice(g){let L=[];return g.forEach(R=>{L.push({image:R.cover_photo,description:R.description,product_id:R.id,product_name:R.name,product_slug:R.slug,average_rating:R.average_rating})}),L}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(Qt.M))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-search"]],features:[n.qOj],decls:24,vars:7,consts:[[3,"bar",4,"ngIf"],[1,"search-area"],[1,"container"],[1,"search-box","d-flex","justify-content-center"],[1,"search"],["type","text","id","search-input","placeholder","Search for products, jobs anything",1,"search-input",3,"formControl","input"],["href","#",1,"search-icon"],[1,"flaticon-search-interface-symbol"],["style","padding: 0 0 0 2px",4,"ngIf"],[1,"product-section","pt-4","mb-1"],[1,"row","align-items-center","mb-3"],[1,"col-7"],[1,"col-5",3,"click"],[1,"product-header-right","d-flex","justify-content-between"],["src","../../../../../assets/img/FunnelSimple.png","alt",""],[3,"padding",4,"ngIf"],["class","centerize",4,"ngIf"],["class","product-list-area",4,"ngIf"],[3,"bar"],[2,"padding","0 0 0 2px"],[3,"padding"],[1,"centerize"],[1,"flaticon-search-interface-symbol",2,"font-size","4em"],[1,"mt-3"],[1,"product-list-area"],["class","item",3,"product","onClick",4,"ngFor","ngForOf"],[1,"item",3,"product","onClick"]],template:function(L,R){1&L&&(n.YNc(0,Vc,1,1,"util-progress",0),n.TgZ(1,"section",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"input",5),n.NdJ("input",function(Dt){return R.onQueryEntering(Dt)}),n.qZA(),n.TgZ(6,"a",6),n._UZ(7,"i",7),n.qZA()()(),n.YNc(8,zo,2,0,"em",8),n.qZA()(),n.TgZ(9,"section",9)(10,"div",2)(11,"div",10)(12,"div",11)(13,"h5"),n._uU(14,"Search Results"),n.qZA()(),n.TgZ(15,"div",12),n.NdJ("click",function(){return R.toggleFilter()}),n.TgZ(16,"div",13)(17,"h5"),n._uU(18,"Filter"),n.qZA(),n._UZ(19,"img",14),n.qZA()()(),n._UZ(20,"div"),n.qZA(),n.YNc(21,zi,1,1,"util-progress",15),n.YNc(22,Nl,4,0,"div",16),n.YNc(23,$d,2,1,"div",17),n.qZA()),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(5),n.Q6J("formControl",R.query),n.xp6(3),n.Q6J("ngIf",R.query.value.length>0&&R.query.value.length<3),n.xp6(12),n.Q6J("@dataLoaded",R.showFilter?"loaded":"loading"),n.xp6(1),n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading&&0===R.products.length),n.xp6(1),n.Q6J("ngIf",R.products.length>0))},dependencies:[e.sg,e.O5,Z.Fj,Z.JJ,Z.oH,Ge.t,Or.d],styles:[".product-list-area[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;flex-direction:row;justify-content:center;align-items:stretch;align-content:space-between}.product-list-area[_ngcontent-%COMP%]:after{display:block;margin:10px;flex:999 999 auto}.item[_ngcontent-%COMP%]{flex:0 0 auto;margin:10px}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{height:auto;position:relative}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{height:40px;width:95%}.search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{font-size:16px;position:absolute;height:auto;width:auto;top:50%;left:12px;margin-top:-9px;display:inline-block}"]})}return F})();var jc=C(1715),_l=C(5195);function Su(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"img",6),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.itemClick(R.notification))}),n.qZA()}if(2&F){const g=n.oxw(2);n.s9C("src",g.notification.image,n.LSH),n.s9C("alt",g.notification.title)}}function nu(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onActionRead(R.notification.id,!0))}),n._uU(1,"MARK READ"),n.qZA()}}function Pa(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(g);const R=n.oxw(2);return n.KtG(R.onActionRead(R.notification.id,!1))}),n._uU(1,"MARK UNREAD"),n.qZA()}}const ao=function(F){return{read:F}};function Zc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"mat-card",1)(1,"mat-card-title-group")(2,"mat-card-title",2),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.itemClick(R.notification))}),n._uU(3),n.qZA(),n.TgZ(4,"mat-card-subtitle"),n._uU(5),n.ALo(6,"readableDate"),n.qZA(),n.YNc(7,Su,1,2,"img",3),n.qZA(),n.TgZ(8,"mat-card-content",2),n.NdJ("click",function(){n.CHM(g);const R=n.oxw();return n.KtG(R.itemClick(R.notification))}),n._uU(9),n.qZA(),n.TgZ(10,"mat-card-actions",4),n.YNc(11,nu,2,0,"button",5),n.YNc(12,Pa,2,0,"button",5),n.qZA()()}if(2&F){const g=n.oxw();n.Q6J("ngClass",n.VKq(10,ao,g.notification.read)),n.xp6(3),n.hij(" ",g.notification.title," "),n.xp6(2),n.Oqu(n.xi3(6,7,g.notification.created_at,!0)),n.xp6(2),n.Q6J("ngIf",null!=g.notification.image),n.xp6(2),n.hij(" ",g.notification.description," "),n.xp6(2),n.Q6J("ngIf",!g.notification.read),n.xp6(1),n.Q6J("ngIf",g.notification.read)}}let Go=(()=>{class F extends I.H{constructor(g,L,R){super(g,L,R),this.notification=null,this.notificationItemClick=new n.vpe,this.onMarkRead=new n.vpe}componentName(){return"NotificationComponent"}ngOnInit(){}itemClick(g){null!=g&&this.notificationItemClick.emit(g)}onActionRead(g,L){this.onMarkRead.emit({notificationId:g,read:L})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-notification"]],inputs:{notification:"notification"},outputs:{notificationItemClick:"notificationItemClick",onMarkRead:"onMarkRead"},features:[n.qOj],decls:1,vars:1,consts:[["class","notification-card",3,"ngClass",4,"ngIf"],[1,"notification-card",3,"ngClass"],[3,"click"],["class","card-img-sm-cover","mat-card-sm-image","",3,"src","alt","click",4,"ngIf"],["align","end"],["mat-button","",3,"click",4,"ngIf"],["mat-card-sm-image","",1,"card-img-sm-cover",3,"src","alt","click"],["mat-button","",3,"click"]],template:function(L,R){1&L&&n.YNc(0,Zc,13,12,"mat-card",0),2&L&&n.Q6J("ngIf",R.notification)},dependencies:[e.mk,e.O5,_l.a8,_l.hq,_l.dn,_l.vP,_l.$j,_l.n5,_l.C1,Yr.G],styles:[".notification-card[_ngcontent-%COMP%]{max-width:100%;margin-bottom:8px;font-family:Poppins,sans-serif}.read[_ngcontent-%COMP%]{color:#9d9d9d}mat-card-title[_ngcontent-%COMP%]{font-size:1em}mat-card-subtitle[_ngcontent-%COMP%]{font-size:.7em;color:gray}mat-card-content[_ngcontent-%COMP%]{font-size:.8em}.card-img-sm-cover[_ngcontent-%COMP%]{object-fit:cover;width:50px;height:50px;border-radius:10%;overflow:hidden}"]})}return F})();function Kd(F,Xe){1&F&&n._UZ(0,"util-progress",3),2&F&&n.Q6J("bar",!0)}function zc(F,Xe){if(1&F){const g=n.EpF();n.TgZ(0,"app-notification",8),n.NdJ("notificationItemClick",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onNotificationItemClick(R))})("onMarkRead",function(R){n.CHM(g);const ye=n.oxw(2);return n.KtG(ye.onMarkRead(R))}),n.qZA()}2&F&&n.Q6J("notification",Xe.$implicit)}function Jd(F,Xe){1&F&&(n.TgZ(0,"div",9),n._UZ(1,"i",10),n.TgZ(2,"h4",11),n._uU(3,"No notifications yet!"),n.qZA()())}function nl(F,Xe){if(1&F&&(n.TgZ(0,"div",4)(1,"h5",5),n._uU(2,"MY NOTIFICATIONS"),n.qZA(),n.YNc(3,zc,1,1,"app-notification",6),n.YNc(4,Jd,4,0,"div",7),n.qZA()),2&F){const g=n.oxw();n.xp6(3),n.Q6J("ngForOf",null==g.notifications?null:g.notifications.content),n.xp6(1),n.Q6J("ngIf",!g.loading&&0===(null==g.notifications?null:g.notifications.numberOfElements))}}function Gc(F,Xe){1&F&&n._UZ(0,"util-progress",12),2&F&&n.Q6J("padding",70)}const ml=[{path:"",component:D.O},{path:"products/:id/:slug",component:vc},{path:"newsfeed",component:To,canActivate:[_c.P]},{path:"choose-interests",component:ql,canActivate:[_c.P]},{path:"profile",component:Gd,canActivate:[_c.P]},{path:"u/:username",component:Gd,canActivate:[_c.P]},{path:"reviews/:productSlug/:reviewSlug/:postId",component:Ad,canActivate:[_c.P]},{path:"posts/:postId",component:ua,canActivate:[_c.P]},{path:"search",component:mc},{path:"notifications",component:(()=>{class F extends I.H{constructor(g,L,R,ye){super(g,L,R),this.notificationService=ye,this.notifications=null,this.params={page:0}}componentName(){return"MyNotificationsComponent"}ngOnInit(){this.fetchNotifications(this.params)}fetchNotifications(g){this.loading=!0;let L=this.componentKey(S.Z.NOTIFICATIONS.FETCH_MY_NOTIFICATIONS());this.notificationService.fetchMyNotifications(L,g),this.subscribe(L,null,(R,ye)=>{this.notifications=ye.data,this.loading=!1})}onNotificationItemClick(g){""!==g.redirect_url&&this.router.navigateByUrl(g.redirect_url)}onMarkRead(g){let L=this.componentKey(S.Z.NOTIFICATIONS.MARK_READ()),R=this.globalKey(S.Z.NOTIFICATIONS.COUNT_UNREAD());this.notificationService.markRead(L,R,g.notificationId,g.read),this.subscribe(L,null,(ye,Dt)=>{this.fetchNotifications(this.params)})}static#e=this.\u0275fac=function(L){return new(L||F)(n.Y36(re.Y),n.Y36(l.F0),n.Y36(ue.z),n.Y36(jc.g))};static#t=this.\u0275cmp=n.Xpm({type:F,selectors:[["app-my-notifications"]],features:[n.qOj],decls:3,vars:3,consts:[[3,"bar",4,"ngIf"],["class","notification-area mx-2",4,"ngIf"],[3,"padding",4,"ngIf"],[3,"bar"],[1,"notification-area","mx-2"],[1,"page-title","mb-2","bdr-top","pt-2"],[3,"notification","notificationItemClick","onMarkRead",4,"ngFor","ngForOf"],["class","centerize",4,"ngIf"],[3,"notification","notificationItemClick","onMarkRead"],[1,"centerize"],[1,"icon-pencil",2,"font-size","2em"],[1,"mt-3"],[3,"padding"]],template:function(L,R){1&L&&(n.YNc(0,Kd,1,1,"util-progress",0),n.YNc(1,nl,5,2,"div",1),n.YNc(2,Gc,1,1,"util-progress",2)),2&L&&(n.Q6J("ngIf",R.loading),n.xp6(1),n.Q6J("ngIf",!R.loading),n.xp6(1),n.Q6J("ngIf",R.loading))},dependencies:[e.sg,e.O5,Ge.t,Go],styles:[".page-title[_ngcontent-%COMP%]{color:#44d62c}"]})}return F})(),canActivate:[_c.P]}];let Oc=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[l.Bz.forChild(ml),l.Bz]})}return F})();var Au=C(8468);let Mc=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({})}return F})(),Bn=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[Ve.BQ,Ai.lN,Ai.lN,Mc,Ve.BQ]})}return F})();var ri=C(7151),Hn=C(469);let Od=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({imports:[Ve.uc,Ve.BQ,Ve.uc,Ve.BQ]})}return F})();var Tc=C(1989);let Id=(()=>{class F{static#e=this.\u0275fac=function(L){return new(L||F)};static#t=this.\u0275mod=n.oAB({type:F});static#n=this.\u0275inj=n.cJS({providers:[e.uU],imports:[e.ez,Oc,Z.UX,Au.bB,Md,bi.Ps,Ai.lN,Ta,Ve.Ng,Re.Is,mt.ot,Bn,ri.g,Hn.f,Li,Od,_l.QW,Jo.LD,Z.u5,Tc.SocialModule]})}return F})();n.B6R(Al,[e.sg,e.O5,Ge.t,oa,Ga],[])},30:(ft,Ie,C)=>{"use strict";C.d(Ie,{Y:()=>D});var e=C(5879),l=C(5806);let D=(()=>{class I{constructor(w){this.eventBus=w}publish(w,n){this.eventBus.cast(w,n)}on(w){return this.eventBus.on(w)}static#e=this.\u0275fac=function(n){return new(n||I)(e.LFG(l.F))};static#t=this.\u0275prov=e.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},7259:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>l});var e=C(2495);let l=(()=>{class D{static#e=this.ERRORS={HTTP_UNAUTHORIZED_ERROR:"error:http:unauthorized"};static#t=this.AUTH={LOGIN_SUCCESS:"auth:login:success",SERVER_ERROR:"auth:login:server_error",ERROR_INVALID_CREDENTIALS:"auth:login:invalid_credentials",LOGOUT:"auth:logout:success"};static#n=this.REGISTRATION={OTP_SENT:"register:otp:sent",OTP_SEND_ERROR:"register:otp:send-error",REGISTER_SUCCESS:"register:success",REGISTER_ERROR:"register:error"};static#i=this.RESET_PASSWORD={TOKEN_REQUESTED:"reset:otp:token-requested",RESET_SUCCESS:"reset:password:success",RESET_PASSWORD_ERROR:"reset:password:error"};static#r=this.CATEGORIES={LOADED_ROOT_CATEGORIES:()=>"categories:load:success:root",LOADED_CHILD_CATEGORIES:()=>"categories:load:success:child",INTERESTS_SAVED:()=>"categories:interests:saved",FETCH_INTERESTS:()=>"categories:interests:fetch",LOADED_CATEGORY_ATTRIBUTES:S=>"categories:attributes:cat"+S,SEARCH_CATEGORIES:()=>"categories:search",SEARCH_CATEGORIES_FOR_FILTER:()=>"categories:search:filter-search",GET_MULTIPLE:S=>"categories:get-multiple:"+S.join(",")};static#o=this.PRODUCT_CATEGORIES={SEARCH:S=>"categorys:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"categorys:upsert:"+S,GET:S=>"categorys:get-single:"+S};static#s=this.PRODUCTS={SEARCH_PRODUCTS:()=>"product:search",SEARCH_BRANDS:()=>"product:search-brands",PRODUCTS_LOADED:S=>"products:load:success:attr"+S,PRODUCT_DETAILS_LOADED:S=>"products:load:details:success:"+S};static#a=this.PRODUCTS_V2={SEARCH:S=>"products:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"products:upsert:"+S,GET:S=>"products:get-single:"+S,APPROVE:S=>"products:approve-single:"+S};static#l=this.ATTRS={ATTR_FOR_PRODUCT_LOADED:S=>"attrs:load:success:"+S};static#c=this.FILES={IMAGE_UPLOAD:S=>"files:upload:images:"+S,SEARCH:S=>"files:search:search".concat(e.O.toParamString(S)),SEARCH_IMAGES:S=>"files:images:search".concat(e.O.toParamString(S)),UPSERT:S=>"files:upsert:"+S,GET:S=>"files:get-single:"+S};static#d=this.REVIEWS={POST_REVIEW:S=>"reviews:create-review"+S,LOAD_MY_REVIEW:S=>"reviews:fetch-my-review:"+S,LOAD_REVIEW:S=>"reviews:fetch-review:"+S,LOADED_PRODUCT_REVIEWS:S=>"reviews:loaded-product-reviews:"+S,FETCH_USER_REVIEWS:S=>"reviews:loaded-user-reviews:"+S,LOADED_PRODUCT_AVG_RATINGS:()=>"reviews:loaded-product-ratings:avg",MY_REVIEW_POSTED:S=>"review:post:my-review:p:"+S,FETCH_RECENT_REVIEWS:()=>"reviews:recent-reviews",FETCH_CRITIC_REVIEWS:()=>"reviews:critic-reviews",FETCH_INTERESTING_STORIES:()=>"reviews:interesting-stories",CLOSE_SHOW_REVIEW_DIALOG:()=>"close-dialog",SEND_VERIFICATION_REQUEST:S=>"review:send-verification-request:"+S,POST_REVIEW_REPORT:S=>"report:send-report-reviews-request:"+S,GET_VERIFICATION_FOR_REVIEW:S=>"review:get-verification-for-review:"+S,RECONSIDER_VERIFICATION:S=>"review:reconsider-verification:"+S,GET_REPORT_DETAILS_FOR_REVIEW:S=>"report:report-review-details:"+S,GET_REPORT_EXISTS:S=>"report:report-exists-for-post:"+S};static#u=this.POSTS={FETCH_NEWS_FEED_POSTS:S=>"posts:posts:newsfeed:fetch"+S,FETCH_COMMENTS:S=>"posts:comments:fetch:"+S,FETCH_ERROR:()=>"posts:fetch:error",SUBMIT_ERROR:()=>"posts:submit:error",SUBMIT_POST:(S,w)=>"posts:submit:success:"+S+":c:"+w,SUBMIT_REACTION:S=>"reaction:submit:success:"+S,FETCH_POST:S=>"post:fetch:single:"+S,FETCH_POST_REACTIONS:S=>"post:fetch:reactions:for:"+S,FETCH_REACTIONS:()=>"post:fetch:reactions",FETCH_USER_POSTS:S=>"posts:fetch:user-posts:"+S,UPDATE_POST:()=>"post:update",DELETE_POST:S=>"post:delete:"+S,FETCH_TRENDING_HASHTAGS:()=>"posts:fetch-trending-hashtags"};static#h=this.NOTIFICATIONS={SEARCH:()=>"notifications:search",GET:S=>"notifications:get-single:"+S,UPSERT:S=>"notifications:upsert:"+S,RESPOND:S=>"notifications:respond:"+S,FETCH_MY_NOTIFICATIONS:()=>"notifications:fetch-my-notifications",MARK_READ:()=>"notifications:mark-read",MAKE_STICKY:()=>"notifications:make-sticky",INCREASE_VIEW_COUNT:S=>"notifications:increase-read-count-"+S,INCREASE_CLICK_COUNT:S=>"notifications:increase-click-count-"+S,COUNT_UNREAD:()=>"notifications:count-unread"};static#f=this.LEADERBOARDS={FETCH_LEADERBOARD:S=>"leaderboards:fetch:"+S,FETCH_MY_LEADERBOARD:()=>"leaderboards:fetch:self",FETCH_ERROR:()=>"leaderboards:fetch:error",REDEEM_SUCCESS:()=>"leaderboard:redeem:success",REDEEM_SUCCESS_NOTIFY_PROFILE:()=>"leaderboard:redeem:success:notify-profile",REDEEM_ERROR:()=>"leaderboard:redeem:error",FETCH_RECENT_ACHIEVEMENTS:()=>"leaderboard:achievements:fetch-recent"};static#p=this.VENDORS={SEARCH_VENDORS:()=>"vendors:search",FETCH_ERROR:()=>"vendors:fetch:error",SEARCH:S=>"vendors:search:search".concat(e.O.toParamString(S)),MY_VENDORS:S=>"vendors:my-vendors:search".concat(e.O.toParamString(S)),UPSERT:S=>"vendors:upsert:"+S,GET:S=>"vendors:get-single:"+S,TOGGLE_APPROVAL:S=>"vendors:toggle-approval:"+S};static#_=this.WALLET={FETCH_MY_WALLET:()=>"wallet:fetch-my-wallet:success",FETCH_ERROR:()=>"wallet:fetch:error"};static#m=this.USERS={FETCH_FOLLOW_STATS:S=>"follow:stats:"+S,FOLLOW_USER:S=>"follow:user:"+S,UNFOLLOW_USER:S=>"unfollow:user:"+S,GET_MY_FOLLOWERS:()=>"follow:followers:find-followers",GET_MY_PROFILE:()=>"user:profile:get-my-profile",UPDATE_MY_PROFILE:()=>"user:profile:update-my-profile",DELETE_ME:()=>"users:delete-me",SEARCH_USERS:()=>"users:search-users",SEARCH:S=>"users:search:search".concat(e.O.toParamString(S)),SEARCH_CUSTOMERS:S=>"users:search:search-customers".concat(e.O.toParamString(S)),UPSERT:S=>"users:upsert:"+S,GET:S=>"users:get-single:"+S};static#g=this.REQUEST_CREDENTIALS={ADMIN_SEARCH_LOCKOUTS:()=>"req:cred:admin-search-lockouts"};static#v=this.ACTIVITY_LOGS={ADMIN_SEARCH:()=>"activity:logs:admin-search"};static#b=this.POLL_STATS={OVERVIEW:()=>"poll:stats:overview",DATE_WISE_POLL_COUNT:()=>"poll:stats:date-wise-poll-count"};static#y=this.CRUDEXAMPLES={SEARCH:S=>"crudexamples:search:".concat(e.O.toParamString(S)),UPSERT:S=>"crudexamples:upsert:"+S,GET:S=>"crudexamples:get-single:"+S};static#w=this.QUESTIONNAIRES={SEARCH:()=>"questionnaires:search",GET_DETAILS:S=>"questionnaires:details"+S,UPDATE:S=>"questionnaires:update"+S,CREATE:S=>"questionnaires:create"+S,TOGGLE_APPROVAL:S=>"questionnaires:toggle-approval"+S,FETCH_RESULT_SHEET:S=>"questionnaires:result-sheet:"+S};static#x=this.POLLS={SEARCH:()=>"polls:search",GET_DETAILS:S=>"polls:details"+S,UPDATE:S=>"polls:update"+S,CREATE:S=>"polls:create"+S};static#M=this.VOTES={SEARCH:()=>"votes:search",FETCH_USER_VOTE_STATS:()=>"votes:user-vote-stats",FETCH_POLL_VOTE_STATS:()=>"votes:poll-vote-stats"};static#C=this.POLL_OPTIONS={SEARCH_LEGACY:()=>"poll-options:search",SEARCH:S=>"poptions:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"poptions:upsert:"+S,GET:S=>"poptions:get-single:"+S,GET_DETAILS:S=>"poll-options:details"+S,UPDATE:S=>"poll-options:update"+S,CREATE:S=>"poll-options:create"+S};static#T=this.LABELS_LEGACY={SEARCH:()=>"labels-legacy:search",GET_LABEL_TREE:S=>"labels-legacy:search"+S,GET_DETAILS:S=>"labels-legacy:details"+S,UPDATE:S=>"labels-legacy:update"+S,CREATE:S=>"labels-legacy:create"+S};static#D=this.LABELS={SEARCH:S=>"labels:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"labels:upsert:"+S,GET:S=>"labels:get-single:"+S,GET_MULTIPLE:S=>"labels:get-multiple:"+S.join(",")};static#E=this.FEEDBACKS={SEARCH:S=>"feedbacks:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"feedbacks:upsert:"+S,GET:S=>"feedbacks:get-single:"+S,TAKE_ACTION:S=>"feedbacks:take-action:"+S};static#S=this.ATTRIBUTES={SEARCH:S=>"attributes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"attributes:upsert:"+S,GET:S=>"attributes:get-single:"+S};static#A=this.FILTERABLEATTRIBUTES={SEARCH:S=>"filterableattributes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"filterableattributes:upsert:"+S,GET:S=>"filterableattributes:get-single:"+S};static#O=this.BRANDS={SEARCH:S=>"brands:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"brands:upsert:"+S,GET:S=>"brands:get-single:"+S};static#I=this.ACVALIDATIONTOKENS={SEARCH:S=>"acvalidationtokens:search:search".concat(e.O.toParamString(S))};static#R=this.VARIATIONS={SEARCH:S=>"variations:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"variations:upsert:"+S,GET:S=>"variations:get-single:"+S};static#k=this.PRODUCTSPECIFICATIONS={SEARCH:S=>"productspecifications:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"productspecifications:upsert:"+S,GET:S=>"productspecifications:get-single:"+S};static#L=this.STOCKS={SEARCH:S=>"stocks:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"stocks:upsert:"+S,GET:S=>"stocks:get-single:"+S,GET_BY_SKU:S=>"stocks:get-single-by-sky:"+S};static#P=this.LOCATIONTYPES={SEARCH:S=>"locationtypes:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"locationtypes:upsert:"+S,GET:S=>"locationtypes:get-single:"+S};static#N=this.LOCATIONS={SEARCH:S=>"locations:search:search".concat(e.O.toParamString(S)),GET_BY_TYPE:S=>"locations:get-by-type:"+S,UPSERT:S=>"locations:upsert:"+S,GET:S=>"locations:get-single:"+S,GET_MULTIPLE:S=>"locations:get-multiple:"+S.join(",")};static#F=this.ADDRESSS={SEARCH:S=>"addresss:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"addresss:upsert:"+S,GET:S=>"addresss:get-single:"+S};static#Y=this.ORDERS={SEARCH:S=>"orders:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"orders:upsert:"+S,GET:S=>"orders:get-single:"+S,MAKE_PAYMENT:S=>"orders:make-payment:"+S,CONFIRM_ORDER:S=>"orders:confirm-order:"+S,CHANGE_ORDER_STATUS:(S,w)=>"orders:change-order-status:"+S+":"+w};static#B=this.CUSTOMERS={SEARCH:S=>"customers:search:search".concat(e.O.toParamString(S)),UPSERT:S=>"customers:upsert:"+S,GET:S=>"customers:get-single:"+S}}return D})()},8214:(ft,Ie,C)=>{"use strict";C.d(Ie,{J:()=>Z});var e=C(2495),l=C(1547),D=C(5879),I=C(8480),S=C(5462),w=C(9862),n=C(30);let Z=(()=>{class ee extends l.b{constructor(ue,se,te,oe){super(ue,se),this.http=te,this.eventBusService=oe}upload(ue){const se=new FormData;for(let oe=0;oe{this.eventBusService.publish(ue,ce)},ce=>{this.eventBusService.publish(this.getErrorKey(ue),ce)})}static#e=this.\u0275fac=function(se){return new(se||ee)(D.LFG(I.e),D.LFG(S.l),D.LFG(w.eN),D.LFG(n.Y))};static#t=this.\u0275prov=D.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},5462:(ft,Ie,C)=>{"use strict";C.d(Ie,{l:()=>D});var e=C(2425),l=C(5879);let D=(()=>{class I{constructor(w){this.toastr=w}info(w,n,Z=(()=>{}),ee=2e3){this.show("info",w,n,Z,ee)}success(w,n,Z=(()=>{}),ee=2e3){this.show("success",w,n,Z,ee)}warning(w,n,Z=(()=>{}),ee=2e3){this.show("warning",w,n,Z,ee)}error(w,n,Z=(()=>{}),ee=2e3){this.show("error",w,n,Z,ee)}show(w,n,Z,ee=(()=>{}),re=5e3){let se,ue={disableTimeOut:!1,timeOut:re,closeButton:!0,extendedTimeOut:1e3,progressBar:!0,progressAnimation:"decreasing",enableHtml:!0,easing:"ease-in",easeTime:300,tapToDismiss:!0,toastComponent:e.FN,onActivateTick:!1,newestOnTop:!0};switch(w){case"success":se=this.toastr.success(Z,n,ue);break;case"error":se=this.toastr.error(Z,n,ue);break;case"warning":se=this.toastr.warning(Z,n,ue);break;case"info":se=this.toastr.info(Z,n,ue)}se.onTap.subscribe(te=>{ee()})}log(w){console.log(w)}static#e=this.\u0275fac=function(n){return new(n||I)(l.LFG(e._W))};static#t=this.\u0275prov=l.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},3108:(ft,Ie,C)=>{"use strict";C.d(Ie,{n:()=>D});var e=C(553),l=C(5879);let D=(()=>{class I{constructor(){}static#e=this.KEYS={clientId:"*&^%&%frgter^87i5",clientSecret:"V%$#reg%786v*7i6",accessToken:"B57UB5&ehyr&5b&*6",refreshToken:"INB*gege&U4^345%36^5u",authorities:"BUegeg&v3$76u%^&*",phone:"phone",name:"name",email:"email",id:"id",username:"username",jti:"Jjjsdb!*(&*@&#*&Y#"};static putAuth(w){localStorage.setItem(this.KEYS.id,w.id.toString()),localStorage.setItem(this.KEYS.accessToken,w.access_token),localStorage.setItem(this.KEYS.refreshToken,w.refresh_token),localStorage.setItem(this.KEYS.phone,w.phone),localStorage.setItem(this.KEYS.name,w.name),localStorage.setItem(this.KEYS.email,w.email),localStorage.setItem(this.KEYS.username,w.username),localStorage.setItem(this.KEYS.jti,w.jti)}static getAuth(){const w=this.retrieve(this.KEYS.username);return{id:parseInt(this.retrieve(this.KEYS.id)),access_token:this.retrieve(this.KEYS.accessToken),refresh_token:this.retrieve(this.KEYS.refreshToken),name:this.retrieve(this.KEYS.name),username:w,email:this.retrieve(this.KEYS.email),phone:this.retrieve(this.KEYS.phone),jti:this.retrieve(this.KEYS.jti),avatar:e.N.base_url+"/api/v1/public/users/"+w+"/avatar"}}static put(w,n){localStorage.setItem(w,n)}static retrieve(w){return localStorage.getItem(w)}static clear(){localStorage.clear()}static#t=this.\u0275fac=function(n){return new(n||I)};static#n=this.\u0275prov=l.Yz7({token:I,factory:I.\u0275fac,providedIn:"root"})}return I})()},7613:(ft,Ie,C)=>{"use strict";C.d(Ie,{m:()=>e});class e{static takeOnly(D,I,S=!1){null==D&&(D="");let w=D.substr(0,Math.min(I,D.length));return S&&D.length>I?w+"...":w}static firstWord(D){null==D&&(D="");let I=D.split(" ");return I.length>0?I[0]:""}}},3674:(ft,Ie,C)=>{"use strict";C.d(Ie,{w:()=>e});class e{static isInvalidInput(D){return D.invalid&&(D.touched||D.dirty)}static getFormError(D,I){return D.errors?.[I]}static isValidPhone(D){return new RegExp("^(\\+88|0088)?01[3-9]\\d{8}$").test(D)}}},553:(ft,Ie,C)=>{"use strict";C.d(Ie,{N:()=>e});const e={production:!0,app_name:"Astha App",app_url:"https://astha.app",base_url:"https://dev.astha.app",client_id:"client_id",api_version:"/api/v1/",client_secret:"client_secret",resizeRedirectionEnabled:!0,redirectionWindowWidth:800,redirectUrl:"https://web.astha.app"}},913:(ft,Ie,C)=>{"use strict";var e=C(6593),l=C(5879),D=C(1662),I=C(553),S=C(8637),w=C(7259),n=C(2071),Z=C(8480),ee=C(5462),re=C(30),ue=C(6945),se=C(2951),te=C(1822),oe=C(7700),ce=C(1715),_e=C(6814),Re=C(6929);function mt(p,y){if(1&p&&(l.TgZ(0,"span",24)(1,"span",25),l._uU(2),l.qZA()()),2&p){const u=l.oxw();l.xp6(2),l.hij(" ",u.wallet.loyalty_points," ")}}function Ge(p,y){if(1&p&&(l.TgZ(0,"span",26)(1,"span",25),l._uU(2),l.qZA()()),2&p){const u=l.oxw();l.xp6(2),l.Oqu(u.notificationCount)}}function Lt(p,y){1&p&&l._UZ(0,"img",27)}function je(p,y){if(1&p&&l._UZ(0,"img",28),2&p){const u=l.oxw();l.s9C("src",u.getAvatar(),l.LSH)}}const Tt=function(){return["/"]},xt=function(){return["/notifications"]};let St=(()=>{class p extends S.H{constructor(u,m,T,B,Q,Le,Je,At,jt){super(B,T,Q),this.authService=u,this.notifier=m,this.leaderboardService=Le,this.walletService=Je,this.dialog=At,this.notificationService=jt,this.notificationCount=0,this.leaderboard=null,this.wallet=null,this.showMenubar=!1,T.events.subscribe(dn=>{dn instanceof D.m2&&(this.registerSubscriptions(),this.reloadData())})}componentName(){return"HeaderComponent"}ngOnInit(){this.reloadData()}reloadData(){this.fetchLeaderboard()}registerSubscriptions(){this.subscribe(this.globalKey(w.Z.AUTH.LOGOUT),null,(u,m)=>{this.router.navigateByUrl("/login").then(T=>{this.leaderboard=null,this.wallet=null,this.notificationCount=0})}),this.subscribe(this.globalKey(w.Z.NOTIFICATIONS.COUNT_UNREAD()),null,(u,m)=>{this.countUnreadNotifications()})}countUnreadNotifications(){let u=this.componentKey(w.Z.NOTIFICATIONS.COUNT_UNREAD());this.notificationService.countUnread(u),this.subscribe(u,null,(m,T)=>{this.notificationCount=T.data})}fetchLeaderboard(){let u=this.globalKey(w.Z.LEADERBOARDS.FETCH_MY_LEADERBOARD());this.authenticated()&&this.leaderboardService.fetchLeaderboard(u,this.authService.getAuth().username),this.subscribe(u,null,(m,T)=>{this.leaderboard=T.data,this.fetchWallet(),this.countUnreadNotifications()})}fetchWallet(){let u=this.componentKey(w.Z.WALLET.FETCH_MY_WALLET());this.authenticated()&&this.walletService.fetchWallet(u,{}),this.subscribe(u,null,(m,T)=>{this.wallet=T.data})}authenticated(){return this.authService.isAuthenticated()}getAuth(){return this.authService.getAuth()}getUserTitle(){return this.authService.isAuthenticated()?this.authService.getFirstName():"Profile"}getStyleAttrForProgress(){return"width: "+this.leaderboard?.completed_percentage+"%"}getNextThresholdPoints(){return null==this.leaderboard?.next_badge?0:this.leaderboard.next_badge.threshold_points}getLeaderboardPoints(){return null==this.leaderboard?0:this.leaderboard.points}getAvatar(){let u=this.getAuth().avatar;return null==u||0===u.trim().length?"assets/img/default-avatar.png":u}onMenuClick(u){this.showMenubar=!this.showMenubar}getMenuItems(){let u=[];return u.push({id:1,title:"My Interests",code:"MY_PROFILE"}),u.push({id:2,title:"My Profile",code:"MY_PROFILE"}),this.isAuthenticated()?u.push({id:3,title:"Logout",code:"LOGOUT"}):u.push({id:3,title:"Login",code:"LOGIN"}),u}isAuthenticated(){return this.authService.isAuthenticated()}onMenuItemClick(u){switch(u.id){case 2:this.navigate("/profile",m=>{});break;case 1:this.navigate("/choose-interests",m=>{});break;case 3:if(!this.isAuthenticated())return void this.navigate("/login",()=>{});this.authService.logout(),this.navigate("/",m=>{this.notifier.warning("Logged out","You have been successfully logged out.",()=>{this.router.navigate(["login"]).then(T=>{})},3e3)})}}openLeaderboard(){null!=this.leaderboard&&(this.dialog.open(n.B,{width:"600px"}).componentInstance.leaderboard=this.leaderboard)}onWalletClick(){this.authenticated()?this.openLeaderboard():this.navigate("/login",u=>{})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(Z.e),l.Y36(ee.l),l.Y36(D.F0),l.Y36(re.Y),l.Y36(ue.z),l.Y36(se.S),l.Y36(te.X),l.Y36(oe.uw),l.Y36(ce.g))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-web-header"]],features:[l.qOj],decls:32,vars:19,consts:[[1,"header-area","p-3"],[1,"container"],[1,"row"],[1,"col-7"],[1,"header-left"],[3,"routerLink"],[1,"batch-are","d-flex","mt-2",3,"click"],["src","assets/img/header-images/batch.png","alt",""],[1,"header-progress"],[1,"progress-content","d-flex","justify-content-between","mb-1"],[1,"progress-count"],[1,"progress"],["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"progress-bar","bg-warning"],[1,"col-5","d-flex","justify-content-end"],[1,"social-icons"],[3,"click"],[1,"icon-wallet"],["class","notification-badge-wallet",4,"ngIf"],[1,"icon-bell-alt"],["class","notification-badge",4,"ngIf"],[1,"avater-section",3,"click"],["class","profile-img profile-img-rounded","src","assets/img/default-avatar.png","alt","",4,"ngIf"],["class","profile-img profile-img-rounded","alt","",3,"src",4,"ngIf"],[3,"showMenubar","top","items","menuItemClick"],[1,"notification-badge-wallet"],["aria-hidden","true",1,"notification-badge-count"],[1,"notification-badge"],["src","assets/img/default-avatar.png","alt","",1,"profile-img","profile-img-rounded"],["alt","",1,"profile-img","profile-img-rounded",3,"src"]],template:function(m,T){1&m&&(l.TgZ(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"a",5)(6,"h2"),l._uU(7,"Astha"),l.qZA()(),l.TgZ(8,"div",6),l.NdJ("click",function(){return T.openLeaderboard()}),l._UZ(9,"img",7),l.TgZ(10,"div",8)(11,"div",9)(12,"span",10),l._uU(13),l.qZA(),l.TgZ(14,"span"),l._uU(15),l.qZA()(),l.TgZ(16,"div",11),l._UZ(17,"div",12),l.qZA()()()()(),l.TgZ(18,"div",13)(19,"div",14)(20,"a",15),l.NdJ("click",function(){return T.onWalletClick()}),l._UZ(21,"i",16),l.YNc(22,mt,3,1,"span",17),l.qZA(),l.TgZ(23,"a",5),l._UZ(24,"i",18),l.YNc(25,Ge,3,1,"span",19),l.qZA()(),l.TgZ(26,"a",20),l.NdJ("click",function(Q){return T.onMenuClick(Q)}),l.YNc(27,Lt,1,0,"img",21),l.YNc(28,je,1,1,"img",22),l.TgZ(29,"h4"),l._uU(30),l.qZA(),l.TgZ(31,"app-menubox",23),l.NdJ("menuItemClick",function(Q){return T.onMenuItemClick(Q)}),l.qZA()()()()()()),2&m&&(l.xp6(5),l.Q6J("routerLink",l.DdM(17,Tt)),l.xp6(8),l.AsE("",T.getLeaderboardPoints()," /",T.getNextThresholdPoints(),""),l.xp6(2),l.Oqu(null==T.leaderboard||null==T.leaderboard.next_badge?null:T.leaderboard.next_badge.title),l.xp6(2),l.Akn(T.getStyleAttrForProgress()),l.uIk("aria-valuenow",null==T.leaderboard?null:T.leaderboard.points),l.xp6(5),l.Q6J("ngIf",null!=T.wallet),l.xp6(1),l.Q6J("routerLink",l.DdM(18,xt)),l.xp6(2),l.Q6J("ngIf",T.notificationCount>0),l.xp6(2),l.Q6J("ngIf",!T.authenticated()),l.xp6(1),l.Q6J("ngIf",T.authenticated()),l.xp6(2),l.Oqu(T.getUserTitle()),l.xp6(1),l.Q6J("showMenubar",T.showMenubar)("top",70)("items",T.getMenuItems()))},dependencies:[_e.O5,D.rH,Re.v],styles:["a[_ngcontent-%COMP%]{color:#fff}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:20px;margin-top:2px;display:inline-block;margin-right:10px;transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{opacity:.5}.avater-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{transition:all .3s ease;-webkit-transition:all .3s ease;-moz-transition:all .3s ease;-ms-transition:all .3s ease;-o-transition:all .3s ease}.avater-section[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]:hover{opacity:.5}.social-icons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:relative;display:inline-block}.notification-badge[_ngcontent-%COMP%]{position:absolute;top:-2px;right:-2px;width:18px;height:18px;text-align:center;line-height:13px;transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:167ms;background-color:#cc1016;display:block;z-index:1;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%}.notification-badge-count[_ngcontent-%COMP%]{font-size:12px}.notification-badge-wallet[_ngcontent-%COMP%]{position:absolute;top:-2px;right:-2px;width:18px;height:18px;text-align:center;line-height:13px;transition-timing-function:cubic-bezier(.4,0,1,1);transition-duration:167ms;background-color:#406440;display:block;z-index:1;border-radius:50%;-webkit-border-radius:50%;-moz-border-radius:50%;-ms-border-radius:50%;-o-border-radius:50%}"]})}return p})();const Zt=function(){return["/"]},yt=function(){return["/newsfeed"]},un=function(){return["/search"]},Jt=function(){return["/profile"]};let tn=(()=>{class p{constructor(){}ngOnInit(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-web-footer"]],decls:18,vars:9,consts:[[1,"footer-menu-area"],[1,"container-fluid"],[3,"routerLink"],[1,"icon-home"],[1,"icon-newspaper"],[1,"icon-search"],[1,"icon-bell-alt"],[1,"icon-user-circle-o"]],template:function(m,T){1&m&&(l.TgZ(0,"section",0)(1,"div",1)(2,"ul")(3,"li")(4,"a",2),l._UZ(5,"i",3),l.qZA()(),l.TgZ(6,"li")(7,"a",2),l._UZ(8,"i",4),l.qZA()(),l.TgZ(9,"li")(10,"a",2),l._UZ(11,"i",5),l.qZA()(),l.TgZ(12,"li")(13,"a",2),l._UZ(14,"i",6),l.qZA()(),l.TgZ(15,"li")(16,"a",2),l._UZ(17,"i",7),l.qZA()()()()()),2&m&&(l.xp6(4),l.Q6J("routerLink",l.DdM(5,Zt)),l.xp6(3),l.Q6J("routerLink",l.DdM(6,yt)),l.xp6(3),l.Q6J("routerLink",l.DdM(7,un)),l.xp6(3),l.Q6J("routerLink","/notifications"),l.xp6(3),l.Q6J("routerLink",l.DdM(8,Jt)))},dependencies:[D.rH],styles:[".center[_ngcontent-%COMP%]{margin:auto;width:50%;padding:10px}.footer[_ngcontent-%COMP%]{position:fixed;left:0;bottom:0;width:100%;background-color:#1976d2;color:#fff;text-align:center}.middle-item[_ngcontent-%COMP%]{color:#44d62c}"]})}return p})(),wn=(()=>{class p{constructor(){this.title="Astha App",this.windowWidth=0}ngOnInit(){this.windowWidth=window.innerWidth,this.resolveRedirection()}onResize(u){this.windowWidth=window.innerWidth,this.resolveRedirection()}resolveRedirection(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-layout"]],hostBindings:function(m,T){1&m&&l.NdJ("resize",function(Q){return T.onResize(Q)},!1,l.Jf7)},decls:4,vars:0,consts:[["role","main",1,"content","bottom-toolbar-margin"]],template:function(m,T){1&m&&(l._UZ(0,"app-web-header"),l.TgZ(1,"div",0),l._UZ(2,"router-outlet"),l.qZA(),l._UZ(3,"app-web-footer"))},dependencies:[D.lC,St,tn]})}return p})();var Ln=C(6223),Yn=C(8675);const ti=["rightBarToggle"];function gi(p,y){1&p&&l._UZ(0,"span",36)}function Rn(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",37),l.NdJ("click",function(){l.CHM(u);const T=l.oxw();return l.KtG(T.clearSearch())}),l._UZ(1,"span",38),l.qZA()}}const dt=function(p){return[p]};let at=(()=>{class p extends S.H{componentName(){return"AdminHeaderComponent"}constructor(u,m,T,B,Q,Le,Je){super(u,m,T),this.authService=B,this.renderer=Q,this.popupService=Le,this.activatedRoute=Je,this.search=new Ln.NI,this.isAdmin=!1,this.authorities=[],this.auth=this.authService.getAuth(),this.isAdmin=this.authService.isAdmin(),this.authorities=B.getAuthorities()}hasPrivilege(u){return this.isAdmin||this.authorities.includes(u)}ngOnInit(){this.activatedRoute.queryParams.subscribe(u=>{this.search.setValue(u.query)})}onSearch(){const m=this.router.parseUrl(this.router.url).root.children.primary.segments.map(T=>T.path).join("/");this.router.navigate([m],{queryParams:{query:this.search.value},queryParamsHandling:"merge"}).then(T=>{})}clearSearch(){this.search.setValue(null),this.onSearch()}logout(){this.authService.logout()}initLeftMenuCollapse(){const u=document.body;u.classList.toggle("sidebar-enable"),window.innerWidth>=992?u.classList.toggle("vertical-collpsed"):u.classList.remove("vertical-collpsed"),u.classList.contains("vertical-collpsed")?this.renderer.addClass(u,"vertical-collpsed"):this.renderer.removeClass(u,"vertical-collpsed")}initRightSidebar(){const u=document.querySelector("body");this.renderer.listen(u,"click",m=>{m.target.closest(".right-bar-toggle, .right-bar")||this.renderer.removeClass(u,"right-bar-enabled")}),this.renderer.listen(document.querySelector(".right-bar-toggle"),"click",()=>{this.renderer.addClass(u,"right-bar-enabled")})}openLeaderboard(){let u=this.popupService.open(n.B,{id:null});u.componentInstance.onCanceled.subscribe(()=>{u.close()})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(re.Y),l.Y36(D.F0),l.Y36(ue.z),l.Y36(Z.e),l.Y36(l.Qsj),l.Y36(Yn.x),l.Y36(D.gz))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-header"]],viewQuery:function(m,T){if(1&m&&l.Gf(ti,5),2&m){let B;l.iGM(B=l.CRH())&&(T.rightBarToggle=B.first)}},features:[l.qOj],decls:42,vars:9,consts:function(){let u,m,T;return u="Profile",m="Leaderboard",T="Logout",[["id","page-topbar"],[1,"navbar-header"],[1,"d-flex"],[1,"navbar-brand-box"],["routerLink","/admin",1,"logo","logo-dark"],[1,"logo-sm"],["src","assets/apanel/images/logos/astha.svg","alt","","height","36"],[1,"logo-lg"],["src","assets/apanel/images/logos/astha.svg","alt","","height","72"],["routerLink","/admin",1,"logo","logo-light"],["type","button","id","vertical-menu-btn",1,"btn","btn-sm","px-3","font-size-16","header-item","waves-effect",3,"click"],[1,"fa","fa-fw","fa-bars"],[1,"app-search","d-none","d-lg-block",3,"submit"],[1,"position-relative"],["type","text",1,"form-control",3,"placeholder","formControl"],["class","bx bx-search-alt",4,"ngIf"],["href","javascript: void(0);",3,"click",4,"ngIf"],[1,"dropdown","d-inline-block"],["type","button","id","page-header-user-dropdown","data-bs-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"btn","header-item","waves-effect"],["alt","Header Avatar",1,"rounded-circle","header-profile-user",3,"src"],["key","t-henry",1,"d-none","d-xl-inline-block","ms-1"],[1,"mdi","mdi-chevron-down","d-none","d-xl-inline-block"],[1,"dropdown-menu","dropdown-menu-end"],["href","javascript:void(0);",1,"dropdown-item",3,"routerLink"],[1,"bx","bx-user","font-size-16","align-middle","me-1"],["key","t-profile"],u,["href","javascript:void(0);",1,"dropdown-item",3,"click"],[1,"bx","bx-wallet","font-size-16","align-middle","me-1"],["key","t-my-wallet"],m,[1,"dropdown-divider"],["href","#",1,"dropdown-item","text-danger",3,"click"],[1,"bx","bx-power-off","font-size-16","align-middle","me-1","text-danger"],["key","t-logout"],T,[1,"bx","bx-search-alt"],["href","javascript: void(0);",3,"click"],[1,"bx","bx-x-circle","text-danger"]]},template:function(m,T){1&m&&(l.TgZ(0,"header",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4)(5,"span",5),l._UZ(6,"img",6),l.qZA(),l.TgZ(7,"span",7),l._UZ(8,"img",8),l.qZA()(),l.TgZ(9,"a",9)(10,"span",5),l._UZ(11,"img",6),l.qZA(),l.TgZ(12,"span",7),l._UZ(13,"img",8),l.qZA()()(),l.TgZ(14,"button",10),l.NdJ("click",function(){return T.initLeftMenuCollapse()}),l._UZ(15,"i",11),l.qZA(),l.TgZ(16,"form",12),l.NdJ("submit",function(){return T.onSearch()}),l.TgZ(17,"div",13),l._UZ(18,"input",14),l.YNc(19,gi,1,0,"span",15),l.YNc(20,Rn,2,0,"a",16),l.qZA()()(),l.TgZ(21,"div",2)(22,"div",17)(23,"button",18),l._UZ(24,"img",19),l.TgZ(25,"span",20),l._uU(26),l.qZA(),l._UZ(27,"i",21),l.qZA(),l.TgZ(28,"div",22)(29,"a",23),l._UZ(30,"i",24),l.TgZ(31,"span",25),l.SDv(32,26),l.qZA()(),l.TgZ(33,"a",27),l.NdJ("click",function(){return T.openLeaderboard()}),l._UZ(34,"i",28),l.TgZ(35,"span",29),l.SDv(36,30),l.qZA()(),l._UZ(37,"div",31),l.TgZ(38,"a",32),l.NdJ("click",function(){return T.logout()}),l._UZ(39,"i",33),l.TgZ(40,"span",34),l.SDv(41,35),l.qZA()()()()()()()),2&m&&(l.xp6(18),l.s9C("placeholder",T.translations["Search.."]),l.Q6J("formControl",T.search),l.xp6(1),l.Q6J("ngIf",!T.search.value),l.xp6(1),l.Q6J("ngIf",T.search.value),l.xp6(4),l.s9C("src",T.auth.avatar,l.LSH),l.xp6(2),l.Oqu(T.auth.username),l.xp6(3),l.Q6J("routerLink",l.VKq(7,dt,"/u/"+T.auth.username)))},dependencies:[_e.O5,D.rH,Ln._Y,Ln.Fj,Ln.JJ,Ln.JL,Ln.F,Ln.oH],styles:["mat-toolbar[_ngcontent-%COMP%]{background:#004a9f;color:#fff}mat-sidenav[_ngcontent-%COMP%]{margin:16px;width:200px;border-right:none;background:#002b5c;color:#fff;border-radius:10px;padding:16px;text-align:center}.content[_ngcontent-%COMP%]{height:calc(100vh - 98px);border-radius:10px;margin:16px 16px 16px 32px;display:flex;justify-content:center;align-items:center;font-size:2rem;color:#d3d3d3}mat-sidenav-container[_ngcontent-%COMP%]{height:calc(100vh - 65px)}"]})}return p})(),Be=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-footer"]],decls:9,vars:0,consts:[[1,"footer"],[1,"container-fluid"],[1,"row"],[1,"col-sm-6"],["href","https://servicito.com"],[1,"text-sm-end","d-none","d-sm-block"]],template:function(m,T){1&m&&(l.TgZ(0,"footer",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),l._uU(5,"@servicito"),l.qZA()(),l.TgZ(6,"div",3)(7,"div",5),l._uU(8," admin@servicito.com "),l.qZA()()()()())}})}return p})(),Ee=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["admin-right-nav"]],decls:34,vars:0,consts:[[1,"right-bar"],["data-simplebar","",1,"h-100"],[1,"rightbar-title","d-flex","align-items-center","px-3","py-4"],[1,"m-0","me-2"],[1,"mt-0"],[1,"text-center","mb-0"],[1,"p-4"],[1,"mb-2"],["src","assets/apanel/images/layouts/layout-1.jpg","alt","layout images",1,"img-thumbnail"],[1,"form-check","form-switch","mb-3"],["type","checkbox","id","light-mode-switch","checked","",1,"form-check-input","theme-choice"],["for","light-mode-switch",1,"form-check-label"],["src","assets/apanel/images/layouts/layout-2.jpg","alt","layout images",1,"img-thumbnail"],["type","checkbox","id","dark-mode-switch",1,"form-check-input","theme-choice"],["for","dark-mode-switch",1,"form-check-label"],["src","assets/apanel/images/layouts/layout-3.jpg","alt","layout images",1,"img-thumbnail"],["type","checkbox","id","rtl-mode-switch",1,"form-check-input","theme-choice"],["for","rtl-mode-switch",1,"form-check-label"],["src","assets/apanel/images/layouts/layout-4.jpg","alt","layout images",1,"img-thumbnail"],[1,"form-check","form-switch","mb-5"],["type","checkbox","id","dark-rtl-mode-switch",1,"form-check-input","theme-choice"],["for","dark-rtl-mode-switch",1,"form-check-label"],[1,"rightbar-overlay"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5",3),l._uU(4,"Settings"),l.qZA()(),l._UZ(5,"hr",4),l.TgZ(6,"h6",5),l._uU(7,"Choose Layouts"),l.qZA(),l.TgZ(8,"div",6)(9,"div",7),l._UZ(10,"img",8),l.qZA(),l.TgZ(11,"div",9),l._UZ(12,"input",10),l.TgZ(13,"label",11),l._uU(14,"Light Mode"),l.qZA()(),l.TgZ(15,"div",7),l._UZ(16,"img",12),l.qZA(),l.TgZ(17,"div",9),l._UZ(18,"input",13),l.TgZ(19,"label",14),l._uU(20,"Dark Mode"),l.qZA()(),l.TgZ(21,"div",7),l._UZ(22,"img",15),l.qZA(),l.TgZ(23,"div",9),l._UZ(24,"input",16),l.TgZ(25,"label",17),l._uU(26,"RTL Mode"),l.qZA()(),l.TgZ(27,"div",7),l._UZ(28,"img",18),l.qZA(),l.TgZ(29,"div",19),l._UZ(30,"input",20),l.TgZ(31,"label",21),l._uU(32,"Dark RTL Mode"),l.qZA()()()()(),l._UZ(33,"div",22))}})}return p})();var $e=C(8743),me=C(190);let tt=(()=>{class p{transform(u){return "" + u + ""}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275pipe=l.Yjl({name:"appTranslate",type:p,pure:!0})}return p})();function he(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",9),l.NdJ("click",function(){l.CHM(u);const T=l.oxw().$implicit,B=l.oxw();return l.KtG(B.onMenuGroupClick(T.title))}),l._UZ(1,"i"),l.TgZ(2,"span",10),l._uU(3),l.ALo(4,"appTranslate"),l.qZA()()}if(2&p){const u=l.oxw().$implicit;l.xp6(1),l.Tol(u.icon),l.xp6(2),l.Oqu(l.lcZ(4,4,u.title))}}function Ze(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"a",15),l.NdJ("click",function(){l.CHM(u);const T=l.oxw().$implicit,B=l.oxw(3);return l.KtG(B.onMenuItemClick(T))}),l._uU(1),l.ALo(2,"appTranslate"),l.qZA()}if(2&p){const u=l.oxw().$implicit;l.Q6J("ngClass",u.selected?"text-primary":""),l.xp6(1),l.Oqu(l.lcZ(2,2,u.title))}}function rt(p,y){if(1&p&&(l.TgZ(0,"li",13),l.YNc(1,Ze,3,4,"a",14),l.qZA()),2&p){const u=y.$implicit,m=l.oxw(3);l.Q6J("ngClass",u.selected?"bg-primary-subtle":""),l.xp6(1),l.Q6J("ngIf",m.hasPermission(u))}}function bt(p,y){if(1&p&&(l.TgZ(0,"ul",11),l.YNc(1,rt,2,2,"li",12),l.qZA()),2&p){const u=l.oxw().$implicit;l.xp6(1),l.Q6J("ngForOf",u.items)}}function Nt(p,y){if(1&p&&(l.TgZ(0,"li"),l.YNc(1,he,5,6,"a",7),l.YNc(2,bt,2,1,"ul",8),l.qZA()),2&p){const u=y.$implicit,m=l.oxw();l.xp6(1),l.Q6J("ngIf",!m.shouldHide(u)),l.xp6(1),l.Q6J("ngIf",!m.shouldHide(u)&&u.expanded)}}let Qt=(()=>{class p{constructor(u,m,T){this.renderer=m,this.router=T,this.authorities=[],this.isMenuCollapsed=!1,this.menu=me.s,this.isTabletOrMobileScreen=window.innerWidth<=1280,this.isTabletScreen=window.innerWidth<=1280&&window.innerWidth>=992,this.isAdmin=u.isAdmin(),this.authorities=u.getAuthorities(),this.setActiveMenuItem(this.router.url),this.router.events.subscribe(B=>{B instanceof D.OD&&this.setActiveMenuItem(B.url)})}toggleLeftMenu(){if(!this.isTabletOrMobileScreen)return;const u=document.body;u.classList.toggle("sidebar-enable"),window.innerWidth<=992&&(u.classList.toggle("vertical-collpsed"),console.log(this.isMenuCollapsed),this.isMenuCollapsed=!this.isMenuCollapsed,console.log(this.isMenuCollapsed)),u.classList.contains("vertical-collpsed")?(this.renderer.addClass(u,"vertical-collpsed"),this.isMenuCollapsed=!0):(this.renderer.removeClass(u,"vertical-collpsed"),this.isMenuCollapsed=!1)}onMenuGroupClick(u){this.menu=this.menu.map(m=>(m.expanded=m.title==u&&!m.expanded,m))}expandSidebar(u){const m=document.body;console.log(this.isMenuCollapsed),this.isMenuCollapsed=!u,console.log(this.isMenuCollapsed),u?(m.classList.remove("sidebar-enable"),m.classList.remove("vertical-collpsed")):(m.classList.add("sidebar-enable"),m.classList.add("vertical-collpsed")),this.isTabletScreen&&!this.isMenuCollapsed&&(this.menu=this.menu.map(T=>(T.expanded=!0,T)))}setActiveMenuItem(u){this.menu=this.menu.map(m=>{let T=m.items.map(B=>(B.selected=u.includes(B.link),B));return m.items=T,m.expanded=T.some(B=>B.selected),m}),this.isTabletScreen&&this.expandSidebar(!1)}onMenuItemClick(u){this.router.navigateByUrl(u.link).then(m=>{})}hasPermission(u){return this.isAdmin||u.permissions.some(m=>this.authorities.includes(m))}shouldHide(u){return!u.items.some(m=>this.hasPermission(m))}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(Z.e),l.Y36(l.Qsj),l.Y36(D.F0))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["admin-left-nav"]],decls:7,vars:3,consts:function(){let u;return u="Menu",[[1,"vertical-menu"],["data-simplebar","",1,"h-100"],["id","sidebar-menu"],["id","side-menu",1,"metismenu","list-unstyled"],["key","t-menu",1,"menu-title"],u,[4,"ngFor","ngForOf"],["href","javascript: void(0);","class","has-arrow waves-effect",3,"click",4,"ngIf"],["class","sub-menu","aria-expanded","true",4,"ngIf"],["href","javascript: void(0);",1,"has-arrow","waves-effect",3,"click"],["key","t-dashboards"],["aria-expanded","true",1,"sub-menu"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],["href","javascript: void(0);","key","t-saas",3,"ngClass","click",4,"ngIf"],["href","javascript: void(0);","key","t-saas",3,"ngClass","click"]]},template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"ul",3)(4,"li",4),l.SDv(5,5),l.qZA(),l.YNc(6,Nt,3,2,"li",6),l.qZA()()()()),2&m&&(l.Q6J("@slideIn",!T.isMenuCollapsed)("@expanded",void 0),l.xp6(6),l.Q6J("ngForOf",T.menu))},dependencies:[_e.mk,_e.sg,_e.O5,tt],data:{animation:[(0,$e.e6)("expanded"),(0,$e.Ym)("slideIn","left")]}})}return p})(),nn=(()=>{class p{constructor(){}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-admin-layout"]],decls:10,vars:0,consts:[["id","layout-wrapper"],[1,"main-content"],[1,"page-content"],[1,"container-fluid"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0),l._UZ(1,"app-admin-header")(2,"admin-left-nav"),l.TgZ(3,"div",1)(4,"div",0)(5,"div",2)(6,"div",3),l._UZ(7,"router-outlet"),l.qZA()()(),l._UZ(8,"app-admin-footer"),l.qZA()(),l._UZ(9,"admin-right-nav"))},dependencies:[D.lC,at,Be,Ee,Qt],styles:["mat-toolbar[_ngcontent-%COMP%]{background:#004a9f;color:#fff}mat-sidenav[_ngcontent-%COMP%]{margin:16px;width:200px;border-right:none;background:#002b5c;color:#fff;border-radius:10px;padding:16px;text-align:center}.content[_ngcontent-%COMP%]{height:calc(100vh - 130px);border-radius:10px;margin:16px 16px 16px 32px;padding:16px;overflow:auto}mat-sidenav-container[_ngcontent-%COMP%]{height:calc(100vh - 65px)}.menu-button[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:flex-start;font-size:1rem}.menu-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}.avatar[_ngcontent-%COMP%]{margin-top:16px;width:100px;height:100px;border-radius:50%}.name[_ngcontent-%COMP%]{margin-top:8px;font-weight:400}.designation[_ngcontent-%COMP%]{margin-top:2px;font-size:.7rem;color:#d3d3d3}mat-divider[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px;background-color:#ffffff80}"]})}return p})();var Dn=C(9538),Ot=C(5239);const vn=[{path:"",component:wn,loadChildren:()=>Promise.resolve().then(C.bind(C,9310)).then(p=>p.WebAppModule)},{path:"auth",loadChildren:()=>Promise.resolve().then(C.bind(C,7043)).then(p=>p.AuthModule)},{path:"social",loadChildren:()=>Promise.resolve().then(C.bind(C,1989)).then(p=>p.SocialModule)},{path:"admin",component:nn,loadChildren:()=>C.e(424).then(C.bind(C,2241)).then(p=>p.AdminModule),canActivate:[Dn.P]},{path:"request-account-deletion",component:(()=>{class p extends S.H{constructor(u,m,T,B,Q,Le){super(u,m,T),this.notifier=B,this.userService=Q,this.authService=Le,this.username=null,null==this.username&&(this.username=this.getAuthUsername())}componentName(){return"UserDeleteComponent"}ngOnInit(){null==this.username&&(this.username=this.getAuthUsername())}getAuthUsername(){return this.authService.getAuth().username}deleteMyAccount(){if(!confirm("Are you sure to continue?"))return;if(!this.authService.isAuthenticated())return void this.router.navigate(["/login"]);let m=this.componentKey(w.Z.USERS.DELETE_ME());this.userService.deleteAccount(m),this.subscribe(m,"/login",(T,B)=>{this.notifier.success("Deleted!","Your account is deleted."),this.authService.logout(),this.reloadRoute()}),this.subscribe(this.getErrorKey(m),null,(T,B)=>{this.notifier.error("Error!",B.data.error.message)})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(re.Y),l.Y36(D.F0),l.Y36(ue.z),l.Y36(ee.l),l.Y36(Ot.K),l.Y36(Z.e))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-user-delete"]],features:[l.qOj],decls:9,vars:1,consts:[[1,"d-flex","flex-column","align-items-center","justify-content-center",2,"height","100vh"],[1,"p-2","m-2","rounded-2"],[1,"p-2","m-2","bg-danger","text-white","rounded-2","border-0",3,"click"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1),l._uU(2," Are you sure you want to permanently delete your account? "),l.qZA(),l.TgZ(3,"div",1),l._uU(4," Account will be deleted for username: "),l.TgZ(5,"span"),l._uU(6),l.qZA()(),l.TgZ(7,"button",2),l.NdJ("click",function(){return T.deleteMyAccount()}),l._uU(8," Delete "),l.qZA()()),2&m&&(l.xp6(6),l.Oqu(T.username))}})}return p})()},{path:"cms",loadChildren:()=>Promise.resolve().then(C.bind(C,9797)).then(p=>p.CmsModule),component:nn,canActivate:[Dn.P]}];let ei=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[D.Bz.forRoot(vn,{scrollPositionRestoration:"enabled"}),D.Bz]})}return p})(),Wn=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["app-root"]],decls:1,vars:0,template:function(m,T){1&m&&l._UZ(0,"router-outlet")},dependencies:[D.lC]})}return p})();var Ve=C(7043),ct=C(9862),Ct=C(5806),Ce=C(6825);function ae(p){return new l.vHH(3e3,!1)}function It(p){switch(p.length){case 0:return new Ce.ZN;case 1:return p[0];default:return new Ce.ZE(p)}}function cn(p,y,u=new Map,m=new Map){const T=[],B=[];let Q=-1,Le=null;if(y.forEach(Je=>{const At=Je.get("offset"),jt=At==Q,dn=jt&&Le||new Map;Je.forEach((Cn,Tn)=>{let Un=Tn,Xn=Cn;if("offset"!==Tn)switch(Un=p.normalizePropertyName(Un,T),Xn){case Ce.k1:Xn=u.get(Tn);break;case Ce.l3:Xn=m.get(Tn);break;default:Xn=p.normalizeStyleValue(Tn,Un,Xn,T)}dn.set(Un,Xn)}),jt||B.push(dn),Le=dn,Q=At}),T.length)throw function ze(p){return new l.vHH(3502,!1)}();return B}function _n(p,y,u,m){switch(y){case"start":p.onStart(()=>m(u&&En(u,"start",p)));break;case"done":p.onDone(()=>m(u&&En(u,"done",p)));break;case"destroy":p.onDestroy(()=>m(u&&En(u,"destroy",p)))}}function En(p,y,u){const B=On(p.element,p.triggerName,p.fromState,p.toState,y||p.phaseName,u.totalTime??p.totalTime,!!u.disabled),Q=p._data;return null!=Q&&(B._data=Q),B}function On(p,y,u,m,T="",B=0,Q){return{element:p,triggerName:y,fromState:u,toState:m,phaseName:T,totalTime:B,disabled:!!Q}}function ni(p,y,u){let m=p.get(y);return m||p.set(y,m=u),m}function Vn(p){const y=p.indexOf(":");return[p.substring(1,y),p.slice(y+1)]}const fr=(()=>typeof document>"u"?null:document.documentElement)();function ki(p){const y=p.parentNode||p.host||null;return y===fr?null:y}let vr=null,Bi=!1;function _i(p,y){for(;y;){if(y===p)return!0;y=ki(y)}return!1}function bo(p,y,u){if(u)return Array.from(p.querySelectorAll(y));const m=p.querySelector(y);return m?[m]:[]}let br=(()=>{class p{validateStyleProperty(u){return function co(p){vr||(vr=function tr(){return typeof document<"u"?document.body:null}()||{},Bi=!!vr.style&&"WebkitAppearance"in vr.style);let y=!0;return vr.style&&!function Kr(p){return"ebkit"==p.substring(1,6)}(p)&&(y=p in vr.style,!y&&Bi&&(y="Webkit"+p.charAt(0).toUpperCase()+p.slice(1)in vr.style)),y}(u)}matchesElement(u,m){return!1}containsElement(u,m){return _i(u,m)}getParentElement(u){return ki(u)}query(u,m,T){return bo(u,m,T)}computeStyle(u,m,T){return T||""}animate(u,m,T,B,Q,Le=[],Je){return new Ce.ZN(T,B)}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),$n=(()=>{class p{static#e=this.NOOP=new br}return p})();const yo=1e3,ho="ng-enter",to="ng-leave",yr="ng-trigger",Gs=".ng-trigger",Ba="ng-animating",xl=".ng-animating";function So(p){if("number"==typeof p)return p;const y=p.match(/^(-?[\.\d]+)(m?s)/);return!y||y.length<2?0:Ws(parseFloat(y[1]),y[2])}function Ws(p,y){return"s"===y?p*yo:p}function Ds(p,y,u){return p.hasOwnProperty("duration")?p:function $s(p,y,u){let T,B=0,Q="";if("string"==typeof p){const Le=p.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Le)return y.push(ae()),{duration:0,delay:0,easing:""};T=Ws(parseFloat(Le[1]),Le[2]);const Je=Le[3];null!=Je&&(B=Ws(parseFloat(Je),Le[4]));const At=Le[5];At&&(Q=At)}else T=p;if(!u){let Le=!1,Je=y.length;T<0&&(y.push(function Oe(){return new l.vHH(3100,!1)}()),Le=!0),B<0&&(y.push(function ot(){return new l.vHH(3101,!1)}()),Le=!0),Le&&y.splice(Je,0,ae())}return{duration:T,delay:B,easing:Q}}(p,y,u)}function Uo(p,y={}){return Object.keys(p).forEach(u=>{y[u]=p[u]}),y}function Jr(p){const y=new Map;return Object.keys(p).forEach(u=>{y.set(u,p[u])}),y}function oo(p,y=new Map,u){if(u)for(let[m,T]of u)y.set(m,T);for(let[m,T]of p)y.set(m,T);return y}function fs(p,y,u){y.forEach((m,T)=>{const B=dr(T);u&&!u.has(T)&&u.set(T,p.style[B]),p.style[B]=m})}function Sa(p,y){y.forEach((u,m)=>{const T=dr(m);p.style[T]=""})}function Vo(p){return Array.isArray(p)?1==p.length?p[0]:(0,Ce.vP)(p):p}const Ks=new RegExp("{{\\s*(.+?)\\s*}}","g");function Aa(p){let y=[];if("string"==typeof p){let u;for(;u=Ks.exec(p);)y.push(u[1]);Ks.lastIndex=0}return y}function qi(p,y,u){const m=p.toString(),T=m.replace(Ks,(B,Q)=>{let Le=y[Q];return null==Le&&(u.push(function Ft(p){return new l.vHH(3003,!1)}()),Le=""),Le.toString()});return T==m?p:T}function Li(p){const y=[];let u=p.next();for(;!u.done;)y.push(u.value),u=p.next();return y}const Yr=/-+([a-z0-9])/g;function dr(p){return p.replace(Yr,(...y)=>y[1].toUpperCase())}function Vr(p,y,u){switch(y.type){case 7:return p.visitTrigger(y,u);case 0:return p.visitState(y,u);case 1:return p.visitTransition(y,u);case 2:return p.visitSequence(y,u);case 3:return p.visitGroup(y,u);case 4:return p.visitAnimate(y,u);case 5:return p.visitKeyframes(y,u);case 6:return p.visitStyle(y,u);case 8:return p.visitReference(y,u);case 9:return p.visitAnimateChild(y,u);case 10:return p.visitAnimateRef(y,u);case 11:return p.visitQuery(y,u);case 12:return p.visitStagger(y,u);default:throw function lt(p){return new l.vHH(3004,!1)}()}}function Es(p,y){return window.getComputedStyle(p)[y]}const wo="*";function jo(p,y){const u=[];return"string"==typeof p?p.split(/\s*,\s*/).forEach(m=>function no(p,y,u){if(":"==p[0]){const Je=function Ao(p,y){switch(p){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(u,m)=>parseFloat(m)>parseFloat(u);case":decrement":return(u,m)=>parseFloat(m) *"}}(p,u);if("function"==typeof Je)return void y.push(Je);p=Je}const m=p.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==m||m.length<4)return u.push(function U(p){return new l.vHH(3015,!1)}()),y;const T=m[1],B=m[2],Q=m[3];y.push(va(T,Q));"<"==B[0]&&!(T==wo&&Q==wo)&&y.push(va(Q,T))}(m,u,y)):u.push(p),u}const nr=new Set(["true","1"]),ps=new Set(["false","0"]);function va(p,y){const u=nr.has(p)||ps.has(p),m=nr.has(y)||ps.has(y);return(T,B)=>{let Q=p==wo||p==T,Le=y==wo||y==B;return!Q&&u&&"boolean"==typeof T&&(Q=T?nr.has(p):ps.has(p)),!Le&&m&&"boolean"==typeof B&&(Le=B?nr.has(y):ps.has(y)),Q&&Le}}const qs=new RegExp("s*:selfs*,?","g");function ba(p,y,u,m){return new wi(p).build(y,u,m)}class wi{constructor(y){this._driver=y}build(y,u,m){const T=new or(u);return this._resetContextStyleTimingState(T),Vr(this,Vo(y),T)}_resetContextStyleTimingState(y){y.currentQuerySelector="",y.collectedStyles=new Map,y.collectedStyles.set("",new Map),y.currentTime=0}visitTrigger(y,u){let m=u.queryCount=0,T=u.depCount=0;const B=[],Q=[];return"@"==y.name.charAt(0)&&u.errors.push(function Ut(){return new l.vHH(3006,!1)}()),y.definitions.forEach(Le=>{if(this._resetContextStyleTimingState(u),0==Le.type){const Je=Le,At=Je.name;At.toString().split(/\s*,\s*/).forEach(jt=>{Je.name=jt,B.push(this.visitState(Je,u))}),Je.name=At}else if(1==Le.type){const Je=this.visitTransition(Le,u);m+=Je.queryCount,T+=Je.depCount,Q.push(Je)}else u.errors.push(function fn(){return new l.vHH(3007,!1)}())}),{type:7,name:y.name,states:B,transitions:Q,queryCount:m,depCount:T,options:null}}visitState(y,u){const m=this.visitStyle(y.styles,u),T=y.options&&y.options.params||null;if(m.containsDynamicStyles){const B=new Set,Q=T||{};m.styles.forEach(Le=>{Le instanceof Map&&Le.forEach(Je=>{Aa(Je).forEach(At=>{Q.hasOwnProperty(At)||B.add(At)})})}),B.size&&(Li(B.values()),u.errors.push(function gn(p,y){return new l.vHH(3008,!1)}()))}return{type:0,name:y.name,style:m,options:T?{params:T}:null}}visitTransition(y,u){u.queryCount=0,u.depCount=0;const m=Vr(this,Vo(y.animation),u);return{type:1,matchers:jo(y.expr,u.errors),animation:m,queryCount:u.queryCount,depCount:u.depCount,options:Sr(y.options)}}visitSequence(y,u){return{type:2,steps:y.steps.map(m=>Vr(this,m,u)),options:Sr(y.options)}}visitGroup(y,u){const m=u.currentTime;let T=0;const B=y.steps.map(Q=>{u.currentTime=m;const Le=Vr(this,Q,u);return T=Math.max(T,u.currentTime),Le});return u.currentTime=T,{type:3,steps:B,options:Sr(y.options)}}visitAnimate(y,u){const m=function Ml(p,y){if(p.hasOwnProperty("duration"))return p;if("number"==typeof p)return jr(Ds(p,y).duration,0,"");const u=p;if(u.split(/\s+/).some(B=>"{"==B.charAt(0)&&"{"==B.charAt(1))){const B=jr(0,0,"");return B.dynamic=!0,B.strValue=u,B}const T=Ds(u,y);return jr(T.duration,T.delay,T.easing)}(y.timings,u.errors);u.currentAnimateTimings=m;let T,B=y.styles?y.styles:(0,Ce.oB)({});if(5==B.type)T=this.visitKeyframes(B,u);else{let Q=y.styles,Le=!1;if(!Q){Le=!0;const At={};m.easing&&(At.easing=m.easing),Q=(0,Ce.oB)(At)}u.currentTime+=m.duration+m.delay;const Je=this.visitStyle(Q,u);Je.isEmptyStep=Le,T=Je}return u.currentAnimateTimings=null,{type:4,timings:m,style:T,options:null}}visitStyle(y,u){const m=this._makeStyleAst(y,u);return this._validateStyleAst(m,u),m}_makeStyleAst(y,u){const m=[],T=Array.isArray(y.styles)?y.styles:[y.styles];for(let Le of T)"string"==typeof Le?Le===Ce.l3?m.push(Le):u.errors.push(new l.vHH(3002,!1)):m.push(Jr(Le));let B=!1,Q=null;return m.forEach(Le=>{if(Le instanceof Map&&(Le.has("easing")&&(Q=Le.get("easing"),Le.delete("easing")),!B))for(let Je of Le.values())if(Je.toString().indexOf("{{")>=0){B=!0;break}}),{type:6,styles:m,easing:Q,offset:y.offset,containsDynamicStyles:B,options:null}}_validateStyleAst(y,u){const m=u.currentAnimateTimings;let T=u.currentTime,B=u.currentTime;m&&B>0&&(B-=m.duration+m.delay),y.styles.forEach(Q=>{"string"!=typeof Q&&Q.forEach((Le,Je)=>{const At=u.collectedStyles.get(u.currentQuerySelector),jt=At.get(Je);let dn=!0;jt&&(B!=T&&B>=jt.startTime&&T<=jt.endTime&&(u.errors.push(function ai(p,y,u,m,T){return new l.vHH(3010,!1)}()),dn=!1),B=jt.startTime),dn&&At.set(Je,{startTime:B,endTime:T}),u.options&&function oc(p,y,u){const m=y.params||{},T=Aa(p);T.length&&T.forEach(B=>{m.hasOwnProperty(B)||u.push(function Se(p){return new l.vHH(3001,!1)}())})}(Le,u.options,u.errors)})})}visitKeyframes(y,u){const m={type:5,styles:[],options:null};if(!u.currentAnimateTimings)return u.errors.push(function di(){return new l.vHH(3011,!1)}()),m;let B=0;const Q=[];let Le=!1,Je=!1,At=0;const jt=y.steps.map(Ii=>{const Ri=this._makeStyleAst(Ii,u);let rr=null!=Ri.offset?Ri.offset:function Xs(p){if("string"==typeof p)return null;let y=null;if(Array.isArray(p))p.forEach(u=>{if(u instanceof Map&&u.has("offset")){const m=u;y=parseFloat(m.get("offset")),m.delete("offset")}});else if(p instanceof Map&&p.has("offset")){const u=p;y=parseFloat(u.get("offset")),u.delete("offset")}return y}(Ri.styles),Si=0;return null!=rr&&(B++,Si=Ri.offset=rr),Je=Je||Si<0||Si>1,Le=Le||Si0&&B{const rr=Cn>0?Ri==Tn?1:Cn*Ri:Q[Ri],Si=rr*ii;u.currentTime=Un+Xn.delay+Si,Xn.duration=Si,this._validateStyleAst(Ii,u),Ii.offset=rr,m.styles.push(Ii)}),m}visitReference(y,u){return{type:8,animation:Vr(this,Vo(y.animation),u),options:Sr(y.options)}}visitAnimateChild(y,u){return u.depCount++,{type:9,options:Sr(y.options)}}visitAnimateRef(y,u){return{type:10,animation:this.visitReference(y.animation,u),options:Sr(y.options)}}visitQuery(y,u){const m=u.currentQuerySelector,T=y.options||{};u.queryCount++,u.currentQuery=y;const[B,Q]=function Oo(p){const y=!!p.split(/\s*,\s*/).find(u=>":self"==u);return y&&(p=p.replace(qs,"")),p=p.replace(/@\*/g,Gs).replace(/@\w+/g,u=>Gs+"-"+u.slice(1)).replace(/:animating/g,xl),[p,y]}(y.selector);u.currentQuerySelector=m.length?m+" "+B:B,ni(u.collectedStyles,u.currentQuerySelector,new Map);const Le=Vr(this,Vo(y.animation),u);return u.currentQuery=null,u.currentQuerySelector=m,{type:11,selector:B,limit:T.limit||0,optional:!!T.optional,includeSelf:Q,animation:Le,originalSelector:y.selector,options:Sr(y.options)}}visitStagger(y,u){u.currentQuery||u.errors.push(function _t(){return new l.vHH(3013,!1)}());const m="full"===y.timings?{duration:0,delay:0,easing:"full"}:Ds(y.timings,u.errors,!0);return{type:12,animation:Vr(this,Vo(y.animation),u),timings:m,options:null}}}class or{constructor(y){this.errors=y,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Sr(p){return p?(p=Uo(p)).params&&(p.params=function Ko(p){return p?Uo(p):null}(p.params)):p={},p}function jr(p,y,u){return{duration:p,delay:y,easing:u}}function xo(p,y,u,m,T,B,Q=null,Le=!1){return{type:1,element:p,keyframes:y,preStyleProps:u,postStyleProps:m,duration:T,delay:B,totalTime:T+B,easing:Q,subTimeline:Le}}class _s{constructor(){this._map=new Map}get(y){return this._map.get(y)||[]}append(y,u){let m=this._map.get(y);m||this._map.set(y,m=[]),m.push(...u)}has(y){return this._map.has(y)}clear(){this._map.clear()}}const Io=new RegExp(":enter","g"),fo=new RegExp(":leave","g");function Zr(p,y,u,m,T,B=new Map,Q=new Map,Le,Je,At=[]){return(new ms).buildKeyframes(p,y,u,m,T,B,Q,Le,Je,At)}class ms{buildKeyframes(y,u,m,T,B,Q,Le,Je,At,jt=[]){At=At||new _s;const dn=new Br(y,u,At,T,B,jt,[]);dn.options=Je;const Cn=Je.delay?So(Je.delay):0;dn.currentTimeline.delayNextStep(Cn),dn.currentTimeline.setStyles([Q],null,dn.errors,Je),Vr(this,m,dn);const Tn=dn.timelines.filter(Un=>Un.containsAnimation());if(Tn.length&&Le.size){let Un;for(let Xn=Tn.length-1;Xn>=0;Xn--){const ii=Tn[Xn];if(ii.element===u){Un=ii;break}}Un&&!Un.allowOnlyTimelineStyles()&&Un.setStyles([Le],null,dn.errors,Je)}return Tn.length?Tn.map(Un=>Un.buildKeyframes()):[xo(u,[],[],[],0,Cn,"",!1)]}visitTrigger(y,u){}visitState(y,u){}visitTransition(y,u){}visitAnimateChild(y,u){const m=u.subInstructions.get(u.element);if(m){const T=u.createSubContext(y.options),B=u.currentTimeline.currentTime,Q=this._visitSubInstructions(m,T,T.options);B!=Q&&u.transformIntoNewTimeline(Q)}u.previousNode=y}visitAnimateRef(y,u){const m=u.createSubContext(y.options);m.transformIntoNewTimeline(),this._applyAnimationRefDelays([y.options,y.animation.options],u,m),this.visitReference(y.animation,m),u.transformIntoNewTimeline(m.currentTimeline.currentTime),u.previousNode=y}_applyAnimationRefDelays(y,u,m){for(const T of y){const B=T?.delay;if(B){const Q="number"==typeof B?B:So(qi(B,T?.params??{},u.errors));m.delayNextStep(Q)}}}_visitSubInstructions(y,u,m){let B=u.currentTimeline.currentTime;const Q=null!=m.duration?So(m.duration):null,Le=null!=m.delay?So(m.delay):null;return 0!==Q&&y.forEach(Je=>{const At=u.appendInstructionToTimeline(Je,Q,Le);B=Math.max(B,At.duration+At.delay)}),B}visitReference(y,u){u.updateOptions(y.options,!0),Vr(this,y.animation,u),u.previousNode=y}visitSequence(y,u){const m=u.subContextCount;let T=u;const B=y.options;if(B&&(B.params||B.delay)&&(T=u.createSubContext(B),T.transformIntoNewTimeline(),null!=B.delay)){6==T.previousNode.type&&(T.currentTimeline.snapshotCurrentStyles(),T.previousNode=Co);const Q=So(B.delay);T.delayNextStep(Q)}y.steps.length&&(y.steps.forEach(Q=>Vr(this,Q,T)),T.currentTimeline.applyStylesToKeyframe(),T.subContextCount>m&&T.transformIntoNewTimeline()),u.previousNode=y}visitGroup(y,u){const m=[];let T=u.currentTimeline.currentTime;const B=y.options&&y.options.delay?So(y.options.delay):0;y.steps.forEach(Q=>{const Le=u.createSubContext(y.options);B&&Le.delayNextStep(B),Vr(this,Q,Le),T=Math.max(T,Le.currentTimeline.currentTime),m.push(Le.currentTimeline)}),m.forEach(Q=>u.currentTimeline.mergeTimelineCollectedStyles(Q)),u.transformIntoNewTimeline(T),u.previousNode=y}_visitTiming(y,u){if(y.dynamic){const m=y.strValue;return Ds(u.params?qi(m,u.params,u.errors):m,u.errors)}return{duration:y.duration,delay:y.delay,easing:y.easing}}visitAnimate(y,u){const m=u.currentAnimateTimings=this._visitTiming(y.timings,u),T=u.currentTimeline;m.delay&&(u.incrementTime(m.delay),T.snapshotCurrentStyles());const B=y.style;5==B.type?this.visitKeyframes(B,u):(u.incrementTime(m.duration),this.visitStyle(B,u),T.applyStylesToKeyframe()),u.currentAnimateTimings=null,u.previousNode=y}visitStyle(y,u){const m=u.currentTimeline,T=u.currentAnimateTimings;!T&&m.hasCurrentStyleProperties()&&m.forwardFrame();const B=T&&T.easing||y.easing;y.isEmptyStep?m.applyEmptyStep(B):m.setStyles(y.styles,B,u.errors,u.options),u.previousNode=y}visitKeyframes(y,u){const m=u.currentAnimateTimings,T=u.currentTimeline.duration,B=m.duration,Le=u.createSubContext().currentTimeline;Le.easing=m.easing,y.styles.forEach(Je=>{Le.forwardTime((Je.offset||0)*B),Le.setStyles(Je.styles,Je.easing,u.errors,u.options),Le.applyStylesToKeyframe()}),u.currentTimeline.mergeTimelineCollectedStyles(Le),u.transformIntoNewTimeline(T+B),u.previousNode=y}visitQuery(y,u){const m=u.currentTimeline.currentTime,T=y.options||{},B=T.delay?So(T.delay):0;B&&(6===u.previousNode.type||0==m&&u.currentTimeline.hasCurrentStyleProperties())&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Co);let Q=m;const Le=u.invokeQuery(y.selector,y.originalSelector,y.limit,y.includeSelf,!!T.optional,u.errors);u.currentQueryTotal=Le.length;let Je=null;Le.forEach((At,jt)=>{u.currentQueryIndex=jt;const dn=u.createSubContext(y.options,At);B&&dn.delayNextStep(B),At===u.element&&(Je=dn.currentTimeline),Vr(this,y.animation,dn),dn.currentTimeline.applyStylesToKeyframe(),Q=Math.max(Q,dn.currentTimeline.currentTime)}),u.currentQueryIndex=0,u.currentQueryTotal=0,u.transformIntoNewTimeline(Q),Je&&(u.currentTimeline.mergeTimelineCollectedStyles(Je),u.currentTimeline.snapshotCurrentStyles()),u.previousNode=y}visitStagger(y,u){const m=u.parentContext,T=u.currentTimeline,B=y.timings,Q=Math.abs(B.duration),Le=Q*(u.currentQueryTotal-1);let Je=Q*u.currentQueryIndex;switch(B.duration<0?"reverse":B.easing){case"reverse":Je=Le-Je;break;case"full":Je=m.currentStaggerTime}const jt=u.currentTimeline;Je&&jt.delayNextStep(Je);const dn=jt.currentTime;Vr(this,y.animation,u),u.previousNode=y,m.currentStaggerTime=T.currentTime-dn+(T.startTime-m.currentTimeline.startTime)}}const Co={};class Br{constructor(y,u,m,T,B,Q,Le,Je){this._driver=y,this.element=u,this.subInstructions=m,this._enterClassName=T,this._leaveClassName=B,this.errors=Q,this.timelines=Le,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Co,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=Je||new ea(this._driver,u,0),Le.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(y,u){if(!y)return;const m=y;let T=this.options;null!=m.duration&&(T.duration=So(m.duration)),null!=m.delay&&(T.delay=So(m.delay));const B=m.params;if(B){let Q=T.params;Q||(Q=this.options.params={}),Object.keys(B).forEach(Le=>{(!u||!Q.hasOwnProperty(Le))&&(Q[Le]=qi(B[Le],Q,this.errors))})}}_copyOptions(){const y={};if(this.options){const u=this.options.params;if(u){const m=y.params={};Object.keys(u).forEach(T=>{m[T]=u[T]})}}return y}createSubContext(y=null,u,m){const T=u||this.element,B=new Br(this._driver,T,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(T,m||0));return B.previousNode=this.previousNode,B.currentAnimateTimings=this.currentAnimateTimings,B.options=this._copyOptions(),B.updateOptions(y),B.currentQueryIndex=this.currentQueryIndex,B.currentQueryTotal=this.currentQueryTotal,B.parentContext=this,this.subContextCount++,B}transformIntoNewTimeline(y){return this.previousNode=Co,this.currentTimeline=this.currentTimeline.fork(this.element,y),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(y,u,m){const T={duration:u??y.duration,delay:this.currentTimeline.currentTime+(m??0)+y.delay,easing:""},B=new po(this._driver,y.element,y.keyframes,y.preStyleProps,y.postStyleProps,T,y.stretchStartingKeyframe);return this.timelines.push(B),T}incrementTime(y){this.currentTimeline.forwardTime(this.currentTimeline.duration+y)}delayNextStep(y){y>0&&this.currentTimeline.delayNextStep(y)}invokeQuery(y,u,m,T,B,Q){let Le=[];if(T&&Le.push(this.element),y.length>0){y=(y=y.replace(Io,"."+this._enterClassName)).replace(fo,"."+this._leaveClassName);let At=this._driver.query(this.element,y,1!=m);0!==m&&(At=m<0?At.slice(At.length+m,At.length):At.slice(0,m)),Le.push(...At)}return!B&&0==Le.length&&Q.push(function G(p){return new l.vHH(3014,!1)}()),Le}}class ea{constructor(y,u,m,T){this._driver=y,this.element=u,this.startTime=m,this._elementTimelineStylesLookup=T,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(u),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(u,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(y){const u=1===this._keyframes.size&&this._pendingStyles.size;this.duration||u?(this.forwardTime(this.currentTime+y),u&&this.snapshotCurrentStyles()):this.startTime+=y}fork(y,u){return this.applyStylesToKeyframe(),new ea(this._driver,y,u||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(y){this.applyStylesToKeyframe(),this.duration=y,this._loadKeyframe()}_updateStyle(y,u){this._localTimelineStyles.set(y,u),this._globalTimelineStyles.set(y,u),this._styleSummary.set(y,{time:this.currentTime,value:u})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(y){y&&this._previousKeyframe.set("easing",y);for(let[u,m]of this._globalTimelineStyles)this._backFill.set(u,m||Ce.l3),this._currentKeyframe.set(u,Ce.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(y,u,m,T){u&&this._previousKeyframe.set("easing",u);const B=T&&T.params||{},Q=function qo(p,y){const u=new Map;let m;return p.forEach(T=>{if("*"===T){m=m||y.keys();for(let B of m)u.set(B,Ce.l3)}else oo(T,u)}),u}(y,this._globalTimelineStyles);for(let[Le,Je]of Q){const At=qi(Je,B,m);this._pendingStyles.set(Le,At),this._localTimelineStyles.has(Le)||this._backFill.set(Le,this._globalTimelineStyles.get(Le)??Ce.l3),this._updateStyle(Le,At)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((y,u)=>{this._currentKeyframe.set(u,y)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((y,u)=>{this._currentKeyframe.has(u)||this._currentKeyframe.set(u,y)}))}snapshotCurrentStyles(){for(let[y,u]of this._localTimelineStyles)this._pendingStyles.set(y,u),this._updateStyle(y,u)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const y=[];for(let u in this._currentKeyframe)y.push(u);return y}mergeTimelineCollectedStyles(y){y._styleSummary.forEach((u,m)=>{const T=this._styleSummary.get(m);(!T||u.time>T.time)&&this._updateStyle(m,u.value)})}buildKeyframes(){this.applyStylesToKeyframe();const y=new Set,u=new Set,m=1===this._keyframes.size&&0===this.duration;let T=[];this._keyframes.forEach((Le,Je)=>{const At=oo(Le,new Map,this._backFill);At.forEach((jt,dn)=>{jt===Ce.k1?y.add(dn):jt===Ce.l3&&u.add(dn)}),m||At.set("offset",Je/this.duration),T.push(At)});const B=y.size?Li(y.values()):[],Q=u.size?Li(u.values()):[];if(m){const Le=T[0],Je=new Map(Le);Le.set("offset",0),Je.set("offset",1),T=[Le,Je]}return xo(this.element,T,B,Q,this.duration,this.startTime,this.easing,!1)}}class po extends ea{constructor(y,u,m,T,B,Q,Le=!1){super(y,u,Q.delay),this.keyframes=m,this.preStyleProps=T,this.postStyleProps=B,this._stretchStartingKeyframe=Le,this.timings={duration:Q.duration,delay:Q.delay,easing:Q.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let y=this.keyframes,{delay:u,duration:m,easing:T}=this.timings;if(this._stretchStartingKeyframe&&u){const B=[],Q=m+u,Le=u/Q,Je=oo(y[0]);Je.set("offset",0),B.push(Je);const At=oo(y[0]);At.set("offset",io(Le)),B.push(At);const jt=y.length-1;for(let dn=1;dn<=jt;dn++){let Cn=oo(y[dn]);const Tn=Cn.get("offset");Cn.set("offset",io((u+Tn*m)/Q)),B.push(Cn)}m=Q,u=0,T="",y=B}return xo(this.element,y,this.preStyleProps,this.postStyleProps,m,u,T,!0)}}function io(p,y=3){const u=Math.pow(10,y-1);return Math.round(p*u)/u}class ya{}const Oa=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Ua extends ya{normalizePropertyName(y,u){return dr(y)}normalizeStyleValue(y,u,m,T){let B="";const Q=m.toString().trim();if(Oa.has(u)&&0!==m&&"0"!==m)if("number"==typeof m)B="px";else{const Le=m.match(/^[+-]?[\d\.]+([a-z]*)$/);Le&&0==Le[1].length&&T.push(function Bt(p,y){return new l.vHH(3005,!1)}())}return Q+B}}function Ia(p,y,u,m,T,B,Q,Le,Je,At,jt,dn,Cn){return{type:0,element:p,triggerName:y,isRemovalTransition:T,fromState:u,fromStyles:B,toState:m,toStyles:Q,timelines:Le,queriedElements:Je,preStyleProps:At,postStyleProps:jt,totalTime:dn,errors:Cn}}const ta={};class na{constructor(y,u,m){this._triggerName=y,this.ast=u,this._stateStyles=m}match(y,u,m,T){return function Fe(p,y,u,m,T){return p.some(B=>B(y,u,m,T))}(this.ast.matchers,y,u,m,T)}buildStyles(y,u,m){let T=this._stateStyles.get("*");return void 0!==y&&(T=this._stateStyles.get(y?.toString())||T),T?T.buildStyles(u,m):new Map}build(y,u,m,T,B,Q,Le,Je,At,jt){const dn=[],Cn=this.ast.options&&this.ast.options.params||ta,Un=this.buildStyles(m,Le&&Le.params||ta,dn),Xn=Je&&Je.params||ta,ii=this.buildStyles(T,Xn,dn),Ii=new Set,Ri=new Map,rr=new Map,Si="void"===T,lr={params:le(Xn,Cn),delay:this.ast.options?.delay},gr=jt?[]:Zr(y,u,this.ast.animation,B,Q,Un,ii,lr,At,dn);let Cr=0;if(gr.forEach($o=>{Cr=Math.max($o.duration+$o.delay,Cr)}),dn.length)return Ia(u,this._triggerName,m,T,Si,Un,ii,[],[],Ri,rr,Cr,dn);gr.forEach($o=>{const Bo=$o.element,sl=ni(Ri,Bo,new Set);$o.preStyleProps.forEach(zs=>sl.add(zs));const Zl=ni(rr,Bo,new Set);$o.postStyleProps.forEach(zs=>Zl.add(zs)),Bo!==u&&Ii.add(Bo)});const $r=Li(Ii.values());return Ia(u,this._triggerName,m,T,Si,Un,ii,gr,$r,Ri,rr,Cr)}}function le(p,y){const u=Uo(y);for(const m in p)p.hasOwnProperty(m)&&null!=p[m]&&(u[m]=p[m]);return u}class Qe{constructor(y,u,m){this.styles=y,this.defaultParams=u,this.normalizer=m}buildStyles(y,u){const m=new Map,T=Uo(this.defaultParams);return Object.keys(y).forEach(B=>{const Q=y[B];null!==Q&&(T[B]=Q)}),this.styles.styles.forEach(B=>{"string"!=typeof B&&B.forEach((Q,Le)=>{Q&&(Q=qi(Q,T,u));const Je=this.normalizer.normalizePropertyName(Le,u);Q=this.normalizer.normalizeStyleValue(Le,Je,Q,u),m.set(Le,Q)})}),m}}class Qn{constructor(y,u,m){this.name=y,this.ast=u,this._normalizer=m,this.transitionFactories=[],this.states=new Map,u.states.forEach(T=>{this.states.set(T.name,new Qe(T.style,T.options&&T.options.params||{},m))}),Zo(this.states,"true","1"),Zo(this.states,"false","0"),u.transitions.forEach(T=>{this.transitionFactories.push(new na(y,T,this.states))}),this.fallbackTransition=function Ni(p,y,u){return new na(p,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Q,Le)=>!0],options:null,queryCount:0,depCount:0},y)}(y,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(y,u,m,T){return this.transitionFactories.find(Q=>Q.match(y,u,m,T))||null}matchStyles(y,u,m){return this.fallbackTransition.buildStyles(y,u,m)}}function Zo(p,y,u){p.has(y)?p.has(u)||p.set(u,p.get(y)):p.has(u)&&p.set(y,p.get(u))}const Cl=new _s;class ia{constructor(y,u,m){this.bodyNode=y,this._driver=u,this._normalizer=m,this._animations=new Map,this._playersById=new Map,this.players=[]}register(y,u){const m=[],B=ba(this._driver,u,m,[]);if(m.length)throw function be(p){return new l.vHH(3503,!1)}();this._animations.set(y,B)}_buildPlayer(y,u,m){const T=y.element,B=cn(this._normalizer,y.keyframes,u,m);return this._driver.animate(T,B,y.duration,y.delay,y.easing,[],!0)}create(y,u,m={}){const T=[],B=this._animations.get(y);let Q;const Le=new Map;if(B?(Q=Zr(this._driver,u,B,ho,to,new Map,new Map,m,Cl,T),Q.forEach(jt=>{const dn=ni(Le,jt.element,new Map);jt.postStyleProps.forEach(Cn=>dn.set(Cn,null))})):(T.push(function Te(){return new l.vHH(3300,!1)}()),Q=[]),T.length)throw function He(p){return new l.vHH(3504,!1)}();Le.forEach((jt,dn)=>{jt.forEach((Cn,Tn)=>{jt.set(Tn,this._driver.computeStyle(dn,Tn,Ce.l3))})});const At=It(Q.map(jt=>{const dn=Le.get(jt.element);return this._buildPlayer(jt,new Map,dn)}));return this._playersById.set(y,At),At.onDestroy(()=>this.destroy(y)),this.players.push(At),At}destroy(y){const u=this._getPlayer(y);u.destroy(),this._playersById.delete(y);const m=this.players.indexOf(u);m>=0&&this.players.splice(m,1)}_getPlayer(y){const u=this._playersById.get(y);if(!u)throw function Wt(p){return new l.vHH(3301,!1)}();return u}listen(y,u,m,T){const B=On(u,"","","");return _n(this._getPlayer(y),m,B,T),()=>{}}command(y,u,m,T){if("register"==m)return void this.register(y,T[0]);if("create"==m)return void this.create(y,u,T[0]||{});const B=this._getPlayer(y);switch(m){case"play":B.play();break;case"pause":B.pause();break;case"reset":B.reset();break;case"restart":B.restart();break;case"finish":B.finish();break;case"init":B.init();break;case"setPosition":B.setPosition(parseFloat(T[0]));break;case"destroy":this.destroy(y)}}}const sc="ng-animate-queued",Tl="ng-animate-disabled",El=[],wa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Xo={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Pr="__ng_removed";class Ms{get params(){return this.options.params}constructor(y,u=""){this.namespaceId=u;const m=y&&y.hasOwnProperty("value");if(this.value=function Gl(p){return p??null}(m?y.value:y),m){const B=Uo(y);delete B.value,this.options=B}else this.options={};this.options.params||(this.options.params={})}absorbOptions(y){const u=y.params;if(u){const m=this.options.params;Object.keys(u).forEach(T=>{null==m[T]&&(m[T]=u[T])})}}}const As="void",qr=new Ms(As);class Bs{constructor(y,u,m){this.id=y,this.hostElement=u,this._engine=m,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+y,gs(u,this._hostClassName)}listen(y,u,m,T){if(!this._triggers.has(u))throw function Pn(p,y){return new l.vHH(3302,!1)}();if(null==m||0==m.length)throw function wt(p){return new l.vHH(3303,!1)}();if(!function ja(p){return"start"==p||"done"==p}(m))throw function Yt(p,y){return new l.vHH(3400,!1)}();const B=ni(this._elementListeners,y,[]),Q={name:u,phase:m,callback:T};B.push(Q);const Le=ni(this._engine.statesByElement,y,new Map);return Le.has(u)||(gs(y,yr),gs(y,yr+"-"+u),Le.set(u,qr)),()=>{this._engine.afterFlush(()=>{const Je=B.indexOf(Q);Je>=0&&B.splice(Je,1),this._triggers.has(u)||Le.delete(u)})}}register(y,u){return!this._triggers.has(y)&&(this._triggers.set(y,u),!0)}_getTrigger(y){const u=this._triggers.get(y);if(!u)throw function fe(p){return new l.vHH(3401,!1)}();return u}trigger(y,u,m,T=!0){const B=this._getTrigger(u),Q=new Va(this.id,u,y);let Le=this._engine.statesByElement.get(y);Le||(gs(y,yr),gs(y,yr+"-"+u),this._engine.statesByElement.set(y,Le=new Map));let Je=Le.get(u);const At=new Ms(m,this.id);if(!(m&&m.hasOwnProperty("value"))&&Je&&At.absorbOptions(Je.options),Le.set(u,At),Je||(Je=qr),At.value!==As&&Je.value===At.value){if(!function Za(p,y){const u=Object.keys(p),m=Object.keys(y);if(u.length!=m.length)return!1;for(let T=0;T{Sa(y,ii),fs(y,Ii)})}return}const Cn=ni(this._engine.playersByElement,y,[]);Cn.forEach(Xn=>{Xn.namespaceId==this.id&&Xn.triggerName==u&&Xn.queued&&Xn.destroy()});let Tn=B.matchTransition(Je.value,At.value,y,At.params),Un=!1;if(!Tn){if(!T)return;Tn=B.fallbackTransition,Un=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:u,transition:Tn,fromState:Je,toState:At,player:Q,isFallbackTransition:Un}),Un||(gs(y,sc),Q.onStart(()=>{ns(y,sc)})),Q.onDone(()=>{let Xn=this.players.indexOf(Q);Xn>=0&&this.players.splice(Xn,1);const ii=this._engine.playersByElement.get(y);if(ii){let Ii=ii.indexOf(Q);Ii>=0&&ii.splice(Ii,1)}}),this.players.push(Q),Cn.push(Q),Q}deregister(y){this._triggers.delete(y),this._engine.statesByElement.forEach(u=>u.delete(y)),this._elementListeners.forEach((u,m)=>{this._elementListeners.set(m,u.filter(T=>T.name!=y))})}clearElementCache(y){this._engine.statesByElement.delete(y),this._elementListeners.delete(y);const u=this._engine.playersByElement.get(y);u&&(u.forEach(m=>m.destroy()),this._engine.playersByElement.delete(y))}_signalRemovalForInnerTriggers(y,u){const m=this._engine.driver.query(y,Gs,!0);m.forEach(T=>{if(T[Pr])return;const B=this._engine.fetchNamespacesByElement(T);B.size?B.forEach(Q=>Q.triggerLeaveAnimation(T,u,!1,!0)):this.clearElementCache(T)}),this._engine.afterFlushAnimationsDone(()=>m.forEach(T=>this.clearElementCache(T)))}triggerLeaveAnimation(y,u,m,T){const B=this._engine.statesByElement.get(y),Q=new Map;if(B){const Le=[];if(B.forEach((Je,At)=>{if(Q.set(At,Je.value),this._triggers.has(At)){const jt=this.trigger(y,At,As,T);jt&&Le.push(jt)}}),Le.length)return this._engine.markElementAsRemoved(this.id,y,!0,u,Q),m&&It(Le).onDone(()=>this._engine.processLeaveNode(y)),!0}return!1}prepareLeaveAnimationListeners(y){const u=this._elementListeners.get(y),m=this._engine.statesByElement.get(y);if(u&&m){const T=new Set;u.forEach(B=>{const Q=B.name;if(T.has(Q))return;T.add(Q);const Je=this._triggers.get(Q).fallbackTransition,At=m.get(Q)||qr,jt=new Ms(As),dn=new Va(this.id,Q,y);this._engine.totalQueuedPlayers++,this._queue.push({element:y,triggerName:Q,transition:Je,fromState:At,toState:jt,player:dn,isFallbackTransition:!0})})}}removeNode(y,u){const m=this._engine;if(y.childElementCount&&this._signalRemovalForInnerTriggers(y,u),this.triggerLeaveAnimation(y,u,!0))return;let T=!1;if(m.totalAnimations){const B=m.players.length?m.playersByQueriedElement.get(y):[];if(B&&B.length)T=!0;else{let Q=y;for(;Q=Q.parentNode;)if(m.statesByElement.get(Q)){T=!0;break}}}if(this.prepareLeaveAnimationListeners(y),T)m.markElementAsRemoved(this.id,y,!1,u);else{const B=y[Pr];(!B||B===wa)&&(m.afterFlush(()=>this.clearElementCache(y)),m.destroyInnerAnimations(y),m._onRemovalComplete(y,u))}}insertNode(y,u){gs(y,this._hostClassName)}drainQueuedTransitions(y){const u=[];return this._queue.forEach(m=>{const T=m.player;if(T.destroyed)return;const B=m.element,Q=this._elementListeners.get(B);Q&&Q.forEach(Le=>{if(Le.name==m.triggerName){const Je=On(B,m.triggerName,m.fromState.value,m.toState.value);Je._data=y,_n(m.player,Le.phase,Je,Le.callback)}}),T.markedForDestroy?this._engine.afterFlush(()=>{T.destroy()}):u.push(m)}),this._queue=[],u.sort((m,T)=>{const B=m.transition.ast.depCount,Q=T.transition.ast.depCount;return 0==B||0==Q?B-Q:this._engine.driver.containsElement(m.element,T.element)?1:-1})}destroy(y){this.players.forEach(u=>u.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,y)}}class Ro{_onRemovalComplete(y,u){this.onRemovalComplete(y,u)}constructor(y,u,m){this.bodyNode=y,this.driver=u,this._normalizer=m,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=(T,B)=>{}}get queuedPlayers(){const y=[];return this._namespaceList.forEach(u=>{u.players.forEach(m=>{m.queued&&y.push(m)})}),y}createNamespace(y,u){const m=new Bs(y,u,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,u)?this._balanceNamespaceList(m,u):(this.newHostElements.set(u,m),this.collectEnterElement(u)),this._namespaceLookup[y]=m}_balanceNamespaceList(y,u){const m=this._namespaceList,T=this.namespacesByHostElement;if(m.length-1>=0){let Q=!1,Le=this.driver.getParentElement(u);for(;Le;){const Je=T.get(Le);if(Je){const At=m.indexOf(Je);m.splice(At+1,0,y),Q=!0;break}Le=this.driver.getParentElement(Le)}Q||m.unshift(y)}else m.push(y);return T.set(u,y),y}register(y,u){let m=this._namespaceLookup[y];return m||(m=this.createNamespace(y,u)),m}registerTrigger(y,u,m){let T=this._namespaceLookup[y];T&&T.register(u,m)&&this.totalAnimations++}destroy(y,u){y&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const m=this._fetchNamespace(y);this.namespacesByHostElement.delete(m.hostElement);const T=this._namespaceList.indexOf(m);T>=0&&this._namespaceList.splice(T,1),m.destroy(u),delete this._namespaceLookup[y]}))}_fetchNamespace(y){return this._namespaceLookup[y]}fetchNamespacesByElement(y){const u=new Set,m=this.statesByElement.get(y);if(m)for(let T of m.values())if(T.namespaceId){const B=this._fetchNamespace(T.namespaceId);B&&u.add(B)}return u}trigger(y,u,m,T){if(Hs(u)){const B=this._fetchNamespace(y);if(B)return B.trigger(u,m,T),!0}return!1}insertNode(y,u,m,T){if(!Hs(u))return;const B=u[Pr];if(B&&B.setForRemoval){B.setForRemoval=!1,B.setForMove=!0;const Q=this.collectedLeaveElements.indexOf(u);Q>=0&&this.collectedLeaveElements.splice(Q,1)}if(y){const Q=this._fetchNamespace(y);Q&&Q.insertNode(u,m)}T&&this.collectEnterElement(u)}collectEnterElement(y){this.collectedEnterElements.push(y)}markElementAsDisabled(y,u){u?this.disabledNodes.has(y)||(this.disabledNodes.add(y),gs(y,Tl)):this.disabledNodes.has(y)&&(this.disabledNodes.delete(y),ns(y,Tl))}removeNode(y,u,m){if(Hs(u)){const T=y?this._fetchNamespace(y):null;T?T.removeNode(u,m):this.markElementAsRemoved(y,u,!1,m);const B=this.namespacesByHostElement.get(u);B&&B.id!==y&&B.removeNode(u,m)}else this._onRemovalComplete(u,m)}markElementAsRemoved(y,u,m,T,B){this.collectedLeaveElements.push(u),u[Pr]={namespaceId:y,setForRemoval:T,hasAnimation:m,removedBeforeQueried:!1,previousTriggersValues:B}}listen(y,u,m,T,B){return Hs(u)?this._fetchNamespace(y).listen(u,m,T,B):()=>{}}_buildInstruction(y,u,m,T,B){return y.transition.build(this.driver,y.element,y.fromState.value,y.toState.value,m,T,y.fromState.options,y.toState.options,u,B)}destroyInnerAnimations(y){let u=this.driver.query(y,Gs,!0);u.forEach(m=>this.destroyActiveAnimationsForElement(m)),0!=this.playersByQueriedElement.size&&(u=this.driver.query(y,xl,!0),u.forEach(m=>this.finishActiveQueriedAnimationOnElement(m)))}destroyActiveAnimationsForElement(y){const u=this.playersByElement.get(y);u&&u.forEach(m=>{m.queued?m.markedForDestroy=!0:m.destroy()})}finishActiveQueriedAnimationOnElement(y){const u=this.playersByQueriedElement.get(y);u&&u.forEach(m=>m.finish())}whenRenderingDone(){return new Promise(y=>{if(this.players.length)return It(this.players).onDone(()=>y());y()})}processLeaveNode(y){const u=y[Pr];if(u&&u.setForRemoval){if(y[Pr]=wa,u.namespaceId){this.destroyInnerAnimations(y);const m=this._fetchNamespace(u.namespaceId);m&&m.clearElementCache(y)}this._onRemovalComplete(y,u.setForRemoval)}y.classList?.contains(Tl)&&this.markElementAsDisabled(y,!1),this.driver.query(y,".ng-animate-disabled",!0).forEach(m=>{this.markElementAsDisabled(m,!1)})}flush(y=-1){let u=[];if(this.newHostElements.size&&(this.newHostElements.forEach((m,T)=>this._balanceNamespaceList(m,T)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let m=0;mm()),this._flushFns=[],this._whenQuietFns.length){const m=this._whenQuietFns;this._whenQuietFns=[],u.length?It(u).onDone(()=>{m.forEach(T=>T())}):m.forEach(T=>T())}}reportError(y){throw function Mt(p){return new l.vHH(3402,!1)}()}_flushAnimations(y,u){const m=new _s,T=[],B=new Map,Q=[],Le=new Map,Je=new Map,At=new Map,jt=new Set;this.disabledNodes.forEach(ci=>{jt.add(ci);const Di=this.driver.query(ci,".ng-animate-queued",!0);for(let Zi=0;Zi{const Zi=ho+Xn++;Un.set(Di,Zi),ci.forEach(Er=>gs(Er,Zi))});const ii=[],Ii=new Set,Ri=new Set;for(let ci=0;ciIi.add(Er)):Ri.add(Di))}const rr=new Map,Si=Wl(Cn,Array.from(Ii));Si.forEach((ci,Di)=>{const Zi=to+Xn++;rr.set(Di,Zi),ci.forEach(Er=>gs(Er,Zi))}),y.push(()=>{Tn.forEach((ci,Di)=>{const Zi=Un.get(Di);ci.forEach(Er=>ns(Er,Zi))}),Si.forEach((ci,Di)=>{const Zi=rr.get(Di);ci.forEach(Er=>ns(Er,Zi))}),ii.forEach(ci=>{this.processLeaveNode(ci)})});const lr=[],gr=[];for(let ci=this._namespaceList.length-1;ci>=0;ci--)this._namespaceList[ci].drainQueuedTransitions(u).forEach(Zi=>{const Er=Zi.player,_a=Zi.element;if(lr.push(Er),this.collectedEnterElements.length){const ma=_a[Pr];if(ma&&ma.setForMove){if(ma.previousTriggersValues&&ma.previousTriggersValues.has(Zi.triggerName)){const wl=ma.previousTriggersValues.get(Zi.triggerName),zl=this.statesByElement.get(Zi.element);if(zl&&zl.has(Zi.triggerName)){const xu=zl.get(Zi.triggerName);xu.value=wl,zl.set(Zi.triggerName,xu)}}return void Er.destroy()}}const ed=!dn||!this.driver.containsElement(dn,_a),yl=rr.get(_a),vd=Un.get(_a),Ho=this._buildInstruction(Zi,m,vd,yl,ed);if(Ho.errors&&Ho.errors.length)return void gr.push(Ho);if(ed)return Er.onStart(()=>Sa(_a,Ho.fromStyles)),Er.onDestroy(()=>fs(_a,Ho.toStyles)),void T.push(Er);if(Zi.isFallbackTransition)return Er.onStart(()=>Sa(_a,Ho.fromStyles)),Er.onDestroy(()=>fs(_a,Ho.toStyles)),void T.push(Er);const Zd=[];Ho.timelines.forEach(ma=>{ma.stretchStartingKeyframe=!0,this.disabledNodes.has(ma.element)||Zd.push(ma)}),Ho.timelines=Zd,m.append(_a,Ho.timelines),Q.push({instruction:Ho,player:Er,element:_a}),Ho.queriedElements.forEach(ma=>ni(Le,ma,[]).push(Er)),Ho.preStyleProps.forEach((ma,wl)=>{if(ma.size){let zl=Je.get(wl);zl||Je.set(wl,zl=new Set),ma.forEach((xu,Zu)=>zl.add(Zu))}}),Ho.postStyleProps.forEach((ma,wl)=>{let zl=At.get(wl);zl||At.set(wl,zl=new Set),ma.forEach((xu,Zu)=>zl.add(Zu))})});if(gr.length){const ci=[];gr.forEach(Di=>{ci.push(function ht(p,y){return new l.vHH(3505,!1)}())}),lr.forEach(Di=>Di.destroy()),this.reportError(ci)}const Cr=new Map,$r=new Map;Q.forEach(ci=>{const Di=ci.element;m.has(Di)&&($r.set(Di,Di),this._beforeAnimationBuild(ci.player.namespaceId,ci.instruction,Cr))}),T.forEach(ci=>{const Di=ci.element;this._getPreviousPlayers(Di,!1,ci.namespaceId,ci.triggerName,null).forEach(Er=>{ni(Cr,Di,[]).push(Er),Er.destroy()})});const $o=ii.filter(ci=>za(ci,Je,At)),Bo=new Map;ts(Bo,this.driver,Ri,At,Ce.l3).forEach(ci=>{za(ci,Je,At)&&$o.push(ci)});const Zl=new Map;Tn.forEach((ci,Di)=>{ts(Zl,this.driver,new Set(ci),Je,Ce.k1)}),$o.forEach(ci=>{const Di=Bo.get(ci),Zi=Zl.get(ci);Bo.set(ci,new Map([...Di?.entries()??[],...Zi?.entries()??[]]))});const zs=[],jd=[],gd={};Q.forEach(ci=>{const{element:Di,player:Zi,instruction:Er}=ci;if(m.has(Di)){if(jt.has(Di))return Zi.onDestroy(()=>fs(Di,Er.toStyles)),Zi.disabled=!0,Zi.overrideTotalTime(Er.totalTime),void T.push(Zi);let _a=gd;if($r.size>1){let yl=Di;const vd=[];for(;yl=yl.parentNode;){const Ho=$r.get(yl);if(Ho){_a=Ho;break}vd.push(yl)}vd.forEach(Ho=>$r.set(Ho,_a))}const ed=this._buildAnimation(Zi.namespaceId,Er,Cr,B,Zl,Bo);if(Zi.setRealPlayer(ed),_a===gd)zs.push(Zi);else{const yl=this.playersByElement.get(_a);yl&&yl.length&&(Zi.parentPlayer=It(yl)),T.push(Zi)}}else Sa(Di,Er.fromStyles),Zi.onDestroy(()=>fs(Di,Er.toStyles)),jd.push(Zi),jt.has(Di)&&T.push(Zi)}),jd.forEach(ci=>{const Di=B.get(ci.element);if(Di&&Di.length){const Zi=It(Di);ci.setRealPlayer(Zi)}}),T.forEach(ci=>{ci.parentPlayer?ci.syncPlayerEvents(ci.parentPlayer):ci.destroy()});for(let ci=0;ci!ed.destroyed);_a.length?vc(this,Di,_a):this.processLeaveNode(Di)}return ii.length=0,zs.forEach(ci=>{this.players.push(ci),ci.onDone(()=>{ci.destroy();const Di=this.players.indexOf(ci);this.players.splice(Di,1)}),ci.play()}),zs}afterFlush(y){this._flushFns.push(y)}afterFlushAnimationsDone(y){this._whenQuietFns.push(y)}_getPreviousPlayers(y,u,m,T,B){let Q=[];if(u){const Le=this.playersByQueriedElement.get(y);Le&&(Q=Le)}else{const Le=this.playersByElement.get(y);if(Le){const Je=!B||B==As;Le.forEach(At=>{At.queued||!Je&&At.triggerName!=T||Q.push(At)})}}return(m||T)&&(Q=Q.filter(Le=>!(m&&m!=Le.namespaceId||T&&T!=Le.triggerName))),Q}_beforeAnimationBuild(y,u,m){const B=u.element,Q=u.isRemovalTransition?void 0:y,Le=u.isRemovalTransition?void 0:u.triggerName;for(const Je of u.timelines){const At=Je.element,jt=At!==B,dn=ni(m,At,[]);this._getPreviousPlayers(At,jt,Q,Le,u.toState).forEach(Tn=>{const Un=Tn.getRealPlayer();Un.beforeDestroy&&Un.beforeDestroy(),Tn.destroy(),dn.push(Tn)})}Sa(B,u.fromStyles)}_buildAnimation(y,u,m,T,B,Q){const Le=u.triggerName,Je=u.element,At=[],jt=new Set,dn=new Set,Cn=u.timelines.map(Un=>{const Xn=Un.element;jt.add(Xn);const ii=Xn[Pr];if(ii&&ii.removedBeforeQueried)return new Ce.ZN(Un.duration,Un.delay);const Ii=Xn!==Je,Ri=function Os(p){const y=[];return Is(p,y),y}((m.get(Xn)||El).map(Cr=>Cr.getRealPlayer())).filter(Cr=>!!Cr.element&&Cr.element===Xn),rr=B.get(Xn),Si=Q.get(Xn),lr=cn(this._normalizer,Un.keyframes,rr,Si),gr=this._buildPlayer(Un,lr,Ri);if(Un.subTimeline&&T&&dn.add(Xn),Ii){const Cr=new Va(y,Le,Xn);Cr.setRealPlayer(gr),At.push(Cr)}return gr});At.forEach(Un=>{ni(this.playersByQueriedElement,Un.element,[]).push(Un),Un.onDone(()=>function Sl(p,y,u){let m=p.get(y);if(m){if(m.length){const T=m.indexOf(u);m.splice(T,1)}0==m.length&&p.delete(y)}return m}(this.playersByQueriedElement,Un.element,Un))}),jt.forEach(Un=>gs(Un,Ba));const Tn=It(Cn);return Tn.onDestroy(()=>{jt.forEach(Un=>ns(Un,Ba)),fs(Je,u.toStyles)}),dn.forEach(Un=>{ni(T,Un,[]).push(Tn)}),Tn}_buildPlayer(y,u,m){return u.length>0?this.driver.animate(y.element,u,y.duration,y.delay,y.easing,m):new Ce.ZN(y.duration,y.delay)}}class Va{constructor(y,u,m){this.namespaceId=y,this.triggerName=u,this.element=m,this._player=new Ce.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(y){this._containsRealPlayer||(this._player=y,this._queuedCallbacks.forEach((u,m)=>{u.forEach(T=>_n(y,m,void 0,T))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(y.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(y){this.totalTime=y}syncPlayerEvents(y){const u=this._player;u.triggerCallback&&y.onStart(()=>u.triggerCallback("start")),y.onDone(()=>this.finish()),y.onDestroy(()=>this.destroy())}_queueEvent(y,u){ni(this._queuedCallbacks,y,[]).push(u)}onDone(y){this.queued&&this._queueEvent("done",y),this._player.onDone(y)}onStart(y){this.queued&&this._queueEvent("start",y),this._player.onStart(y)}onDestroy(y){this.queued&&this._queueEvent("destroy",y),this._player.onDestroy(y)}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(y){this.queued||this._player.setPosition(y)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(y){const u=this._player;u.triggerCallback&&u.triggerCallback(y)}}function Hs(p){return p&&1===p.nodeType}function es(p,y){const u=p.style.display;return p.style.display=y??"none",u}function ts(p,y,u,m,T){const B=[];u.forEach(Je=>B.push(es(Je)));const Q=[];m.forEach((Je,At)=>{const jt=new Map;Je.forEach(dn=>{const Cn=y.computeStyle(At,dn,T);jt.set(dn,Cn),(!Cn||0==Cn.length)&&(At[Pr]=Xo,Q.push(At))}),p.set(At,jt)});let Le=0;return u.forEach(Je=>es(Je,B[Le++])),Q}function Wl(p,y){const u=new Map;if(p.forEach(Le=>u.set(Le,[])),0==y.length)return u;const T=new Set(y),B=new Map;function Q(Le){if(!Le)return 1;let Je=B.get(Le);if(Je)return Je;const At=Le.parentNode;return Je=u.has(At)?At:T.has(At)?1:Q(At),B.set(Le,Je),Je}return y.forEach(Le=>{const Je=Q(Le);1!==Je&&u.get(Je).push(Le)}),u}function gs(p,y){p.classList?.add(y)}function ns(p,y){p.classList?.remove(y)}function vc(p,y,u){It(u).onDone(()=>p.processLeaveNode(y))}function Is(p,y){for(let u=0;uT.add(B)):y.set(p,m),u.delete(p),!0}class $l{constructor(y,u,m){this.bodyNode=y,this._driver=u,this._normalizer=m,this._triggerCache={},this.onRemovalComplete=(T,B)=>{},this._transitionEngine=new Ro(y,u,m),this._timelineEngine=new ia(y,u,m),this._transitionEngine.onRemovalComplete=(T,B)=>this.onRemovalComplete(T,B)}registerTrigger(y,u,m,T,B){const Q=y+"-"+T;let Le=this._triggerCache[Q];if(!Le){const Je=[],jt=ba(this._driver,B,Je,[]);if(Je.length)throw function We(p,y){return new l.vHH(3404,!1)}();Le=function Ht(p,y,u){return new Qn(p,y,u)}(T,jt,this._normalizer),this._triggerCache[Q]=Le}this._transitionEngine.registerTrigger(u,T,Le)}register(y,u){this._transitionEngine.register(y,u)}destroy(y,u){this._transitionEngine.destroy(y,u)}onInsert(y,u,m,T){this._transitionEngine.insertNode(y,u,m,T)}onRemove(y,u,m){this._transitionEngine.removeNode(y,u,m)}disableAnimations(y,u){this._transitionEngine.markElementAsDisabled(y,u)}process(y,u,m,T){if("@"==m.charAt(0)){const[B,Q]=Vn(m);this._timelineEngine.command(B,u,Q,T)}else this._transitionEngine.trigger(y,u,m,T)}listen(y,u,m,T,B){if("@"==m.charAt(0)){const[Q,Le]=Vn(m);return this._timelineEngine.listen(Q,u,Le,B)}return this._transitionEngine.listen(y,u,m,T,B)}flush(y=-1){this._transitionEngine.flush(y)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(y){this._transitionEngine.afterFlushAnimationsDone(y)}}let Lc=(()=>{class p{static#e=this.initialStylesByElement=new WeakMap;constructor(u,m,T){this._element=u,this._startStyles=m,this._endStyles=T,this._state=0;let B=p.initialStylesByElement.get(u);B||p.initialStylesByElement.set(u,B=new Map),this._initialStyles=B}start(){this._state<1&&(this._startStyles&&fs(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fs(this._element,this._initialStyles),this._endStyles&&(fs(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(p.initialStylesByElement.delete(this._element),this._startStyles&&(Sa(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Sa(this._element,this._endStyles),this._endStyles=null),fs(this._element,this._initialStyles),this._state=3)}}return p})();function Kl(p){let y=null;return p.forEach((u,m)=>{(function Rs(p){return"display"===p||"position"===p})(m)&&(y=y||new Map,y.set(m,u))}),y}class xa{constructor(y,u,m,T){this.element=y,this.keyframes=u,this.options=m,this._specialStyles=T,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=m.duration,this._delay=m.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(y=>y()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const y=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,y,this.options),this._finalKeyframe=y.length?y[y.length-1]:new Map;const u=()=>this._onFinish();this.domPlayer.addEventListener("finish",u),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",u)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(y){const u=[];return y.forEach(m=>{u.push(Object.fromEntries(m))}),u}_triggerWebAnimation(y,u,m){return y.animate(this._convertKeyframesToObject(u),m)}onStart(y){this._originalOnStartFns.push(y),this._onStartFns.push(y)}onDone(y){this._originalOnDoneFns.push(y),this._onDoneFns.push(y)}onDestroy(y){this._onDestroyFns.push(y)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(y=>y()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(y=>y()),this._onDestroyFns=[])}setPosition(y){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=y*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const y=new Map;this.hasStarted()&&this._finalKeyframe.forEach((m,T)=>{"offset"!==T&&y.set(T,this._finished?m:Es(this.element,T))}),this.currentSnapshot=y}triggerCallback(y){const u="start"===y?this._onStartFns:this._onDoneFns;u.forEach(m=>m()),u.length=0}}class Ga{validateStyleProperty(y){return!0}validateAnimatableStyleProperty(y){return!0}matchesElement(y,u){return!1}containsElement(y,u){return _i(y,u)}getParentElement(y){return ki(y)}query(y,u,m){return bo(y,u,m)}computeStyle(y,u,m){return window.getComputedStyle(y)[u]}animate(y,u,m,T,B,Q=[]){const Je={duration:m,delay:T,fill:0==T?"both":"forwards"};B&&(Je.easing=B);const At=new Map,jt=Q.filter(Tn=>Tn instanceof xa);(function wr(p,y){return 0===p||0===y})(m,T)&&jt.forEach(Tn=>{Tn.currentSnapshot.forEach((Un,Xn)=>At.set(Xn,Un))});let dn=function ga(p){return p.length?p[0]instanceof Map?p:p.map(y=>Jr(y)):[]}(u).map(Tn=>oo(Tn));dn=function al(p,y,u){if(u.size&&y.length){let m=y[0],T=[];if(u.forEach((B,Q)=>{m.has(Q)||T.push(Q),m.set(Q,B)}),T.length)for(let B=1;BQ.set(Le,Es(p,Le)))}}return y}(y,dn,At);const Cn=function Tr(p,y){let u=null,m=null;return Array.isArray(y)&&y.length?(u=Kl(y[0]),y.length>1&&(m=Kl(y[y.length-1]))):y instanceof Map&&(u=Kl(y)),u||m?new Lc(p,u,m):null}(y,dn);return new xa(y,dn,Je,Cn)}}let Wa=(()=>{class p extends Ce._j{constructor(u,m){super(),this._nextAnimationId=0,this._renderer=u.createRenderer(m.body,{id:"0",encapsulation:l.ifc.None,styles:[],data:{animation:[]}})}build(u){const m=this._nextAnimationId.toString();this._nextAnimationId++;const T=Array.isArray(u)?(0,Ce.vP)(u):u;return Al(this._renderer,null,m,"register",[T]),new bc(m,this._renderer)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.FYo),l.LFG(_e.K0))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();class bc extends Ce.LC{constructor(y,u){super(),this._id=y,this._renderer=u}create(y,u){return new ra(this._id,y,u||{},this._renderer)}}class ra{constructor(y,u,m,T){this.id=y,this.element=u,this._renderer=T,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",m)}_listen(y,u){return this._renderer.listen(this.element,`@@${this.id}:${y}`,u)}_command(y,...u){return Al(this._renderer,this.element,this.id,y,u)}onDone(y){this._listen("done",y)}onStart(y){this._listen("start",y)}onDestroy(y){this._listen("destroy",y)}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(y){this._command("setPosition",y)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Al(p,y,u,m,T){return p.setProperty(y,`@@${u}:${m}`,T)}const ro="@.disabled";let K=(()=>{class p{constructor(u,m,T){this.delegate=u,this.engine=m,this._zone=T,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,m.onRemovalComplete=(B,Q)=>{const Le=Q?.parentNode(B);Le&&Q.removeChild(Le,B)}}createRenderer(u,m){const B=this.delegate.createRenderer(u,m);if(!(u&&m&&m.data&&m.data.animation)){let jt=this._rendererCache.get(B);return jt||(jt=new Ue("",B,this.engine,()=>this._rendererCache.delete(B)),this._rendererCache.set(B,jt)),jt}const Q=m.id,Le=m.id+"-"+this._currentId;this._currentId++,this.engine.register(Le,u);const Je=jt=>{Array.isArray(jt)?jt.forEach(Je):this.engine.registerTrigger(Q,Le,u,jt.name,jt)};return m.data.animation.forEach(Je),new ge(this,Le,B,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(u,m,T){u>=0&&um(T)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(B=>{const[Q,Le]=B;Q(Le)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([m,T]))}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()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.FYo),l.LFG($l),l.LFG(l.R0b))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();class Ue{constructor(y,u,m,T){this.namespaceId=y,this.delegate=u,this.engine=m,this._onDestroy=T}get data(){return this.delegate.data}destroyNode(y){this.delegate.destroyNode?.(y)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(y,u){return this.delegate.createElement(y,u)}createComment(y){return this.delegate.createComment(y)}createText(y){return this.delegate.createText(y)}appendChild(y,u){this.delegate.appendChild(y,u),this.engine.onInsert(this.namespaceId,u,y,!1)}insertBefore(y,u,m,T=!0){this.delegate.insertBefore(y,u,m),this.engine.onInsert(this.namespaceId,u,y,T)}removeChild(y,u,m){this.engine.onRemove(this.namespaceId,u,this.delegate)}selectRootElement(y,u){return this.delegate.selectRootElement(y,u)}parentNode(y){return this.delegate.parentNode(y)}nextSibling(y){return this.delegate.nextSibling(y)}setAttribute(y,u,m,T){this.delegate.setAttribute(y,u,m,T)}removeAttribute(y,u,m){this.delegate.removeAttribute(y,u,m)}addClass(y,u){this.delegate.addClass(y,u)}removeClass(y,u){this.delegate.removeClass(y,u)}setStyle(y,u,m,T){this.delegate.setStyle(y,u,m,T)}removeStyle(y,u,m){this.delegate.removeStyle(y,u,m)}setProperty(y,u,m){"@"==u.charAt(0)&&u==ro?this.disableAnimations(y,!!m):this.delegate.setProperty(y,u,m)}setValue(y,u){this.delegate.setValue(y,u)}listen(y,u,m){return this.delegate.listen(y,u,m)}disableAnimations(y,u){this.engine.disableAnimations(y,u)}}class ge extends Ue{constructor(y,u,m,T,B){super(u,m,T,B),this.factory=y,this.namespaceId=u}setProperty(y,u,m){"@"==u.charAt(0)?"."==u.charAt(1)&&u==ro?this.disableAnimations(y,m=void 0===m||!!m):this.engine.process(this.namespaceId,y,u.slice(1),m):this.delegate.setProperty(y,u,m)}listen(y,u,m){if("@"==u.charAt(0)){const T=function Ne(p){switch(p){case"body":return document.body;case"document":return document;case"window":return window;default:return p}}(y);let B=u.slice(1),Q="";return"@"!=B.charAt(0)&&([B,Q]=function kt(p){const y=p.indexOf(".");return[p.substring(0,y),p.slice(y+1)]}(B)),this.engine.listen(this.namespaceId,T,B,Q,Le=>{this.factory.scheduleListenerCallback(Le._data||-1,m,Le)})}return this.delegate.listen(y,u,m)}}const ur=[{provide:Ce._j,useClass:Wa},{provide:ya,useFactory:function Sn(){return new Ua}},{provide:$l,useClass:(()=>{class p extends $l{constructor(u,m,T,B){super(u.body,m,T)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_e.K0),l.LFG($n),l.LFG(ya),l.LFG(l.z2F))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})()},{provide:l.FYo,useFactory:function li(p,y,u){return new K(p,y,u)},deps:[e.se,$l,l.R0b]}],hr=[{provide:$n,useFactory:()=>new Ga},{provide:l.QbO,useValue:"BrowserAnimations"},...ur],ar=[{provide:$n,useClass:br},{provide:l.QbO,useValue:"NoopAnimations"},...ur];let xi=(()=>{class p{static withConfig(u){return{ngModule:p,providers:u.disableAnimations?ar:hr}}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:hr,imports:[e.b2]})}return p})();var vs=C(9310),bs=C(7151),$a=C(617),Ui=C(8645),Ma=C(2296),Qr=C(8484),zr=C(2831),Qi=C(8180),yi=C(9773),oa=C(4300),cl=C(1088),_o=C(3651),Wi=C(3680);function Xi(p,y){if(1&p){const u=l.EpF();l.TgZ(0,"div",2)(1,"button",3),l.NdJ("click",function(){l.CHM(u);const T=l.oxw();return l.KtG(T.action())}),l._uU(2),l.qZA()()}if(2&p){const u=l.oxw();l.xp6(2),l.hij(" ",u.data.action," ")}}const dl=["label"];function ko(p,y){}const rs=Math.pow(2,31)-1;class ul{constructor(y,u){this._overlayRef=u,this._afterDismissed=new Ui.x,this._afterOpened=new Ui.x,this._onAction=new Ui.x,this._dismissedByAction=!1,this.containerInstance=y,y._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(y){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(y,rs))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}const Pc=new l.OlP("MatSnackBarData");class Us{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}let Vs=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return p})(),Nc=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return p})(),ac=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275dir=l.lG2({type:p,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return p})(),To=(()=>{class p{constructor(u,m){this.snackBarRef=u,this.data=m}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(ul),l.Y36(Pc))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions","",4,"ngIf"],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(m,T){1&m&&(l.TgZ(0,"div",0),l._uU(1),l.qZA(),l.YNc(2,Xi,3,1,"div",1)),2&m&&(l.xp6(1),l.hij(" ",T.data.message,"\n"),l.xp6(1),l.Q6J("ngIf",T.hasAction))},dependencies:[_e.O5,Ma.lW,Vs,Nc,ac],styles:[".mat-mdc-simple-snack-bar{display:flex}"],encapsulation:2,changeDetection:0})}return p})();const nd={snackBarState:(0,Ce.X$)("state",[(0,Ce.SB)("void, hidden",(0,Ce.oB)({transform:"scale(0.8)",opacity:0})),(0,Ce.SB)("visible",(0,Ce.oB)({transform:"scale(1)",opacity:1})),(0,Ce.eR)("* => visible",(0,Ce.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,Ce.eR)("* => void, * => hidden",(0,Ce.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,Ce.oB)({opacity:0})))])};let lc=0,Ei=(()=>{class p extends Qr.en{constructor(u,m,T,B,Q){super(),this._ngZone=u,this._elementRef=m,this._changeDetectorRef=T,this._platform=B,this.snackBarConfig=Q,this._document=(0,l.f3M)(_e.K0),this._trackedModals=new Set,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new Ui.x,this._onExit=new Ui.x,this._onEnter=new Ui.x,this._animationState="void",this._liveElementId="mat-snack-bar-container-live-"+lc++,this.attachDomPortal=Le=>{this._assertNotAttached();const Je=this._portalOutlet.attachDomPortal(Le);return this._afterPortalAttached(),Je},this._live="assertive"!==Q.politeness||Q.announcementMessage?"off"===Q.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(u){this._assertNotAttached();const m=this._portalOutlet.attachComponentPortal(u);return this._afterPortalAttached(),m}attachTemplatePortal(u){this._assertNotAttached();const m=this._portalOutlet.attachTemplatePortal(u);return this._afterPortalAttached(),m}onAnimationEnd(u){const{fromState:m,toState:T}=u;if(("void"===T&&"void"!==m||"hidden"===T)&&this._completeExit(),"visible"===T){const B=this._onEnter;this._ngZone.run(()=>{B.next(),B.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._ngZone.run(()=>{this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId)}),this._onExit}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe((0,Qi.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_afterPortalAttached(){const u=this._elementRef.nativeElement,m=this.snackBarConfig.panelClass;m&&(Array.isArray(m)?m.forEach(T=>u.classList.add(T)):u.classList.add(m)),this._exposeToModals()}_exposeToModals(){const u=this._liveElementId,m=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let T=0;T{const m=u.getAttribute("aria-owns");if(m){const T=m.replace(this._liveElementId,"").trim();T.length>0?u.setAttribute("aria-owns",T):u.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const u=this._elementRef.nativeElement.querySelector("[aria-hidden]"),m=this._elementRef.nativeElement.querySelector("[aria-live]");if(u&&m){let T=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&u.contains(document.activeElement)&&(T=document.activeElement),u.removeAttribute("aria-hidden"),m.appendChild(u),T?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(l.R0b),l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(zr.t4),l.Y36(Us))};static#t=this.\u0275dir=l.lG2({type:p,viewQuery:function(m,T){if(1&m&&l.Gf(Qr.Pl,7),2&m){let B;l.iGM(B=l.CRH())&&(T._portalOutlet=B.first)}},features:[l.qOj]})}return p})(),Ca=(()=>{class p extends Ei{_afterPortalAttached(){super._afterPortalAttached();const u=this._label.nativeElement,m="mdc-snackbar__label";u.classList.toggle(m,!u.querySelector(`.${m}`))}static#e=this.\u0275fac=function(){let u;return function(T){return(u||(u=l.n5z(p)))(T||p)}}();static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["mat-snack-bar-container"]],viewQuery:function(m,T){if(1&m&&l.Gf(dl,7),2&m){let B;l.iGM(B=l.CRH())&&(T._label=B.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container","mdc-snackbar--open"],hostVars:1,hostBindings:function(m,T){1&m&&l.WFA("@state.done",function(Q){return T.onAnimationEnd(Q)}),2&m&&l.d8E("@state",T._animationState)},features:[l.qOj],decls:6,vars:3,consts:[[1,"mdc-snackbar__surface"],[1,"mat-mdc-snack-bar-label"],["label",""],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(m,T){1&m&&(l.TgZ(0,"div",0)(1,"div",1,2)(3,"div",3),l.YNc(4,ko,0,0,"ng-template",4),l.qZA(),l._UZ(5,"div"),l.qZA()()),2&m&&(l.xp6(5),l.uIk("aria-live",T._live)("role",T._role)("id",T._liveElementId))},dependencies:[Qr.Pl],styles:['.mdc-snackbar{display:none;position:fixed;right:0;bottom:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;pointer-events:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mdc-snackbar--opening,.mdc-snackbar--open,.mdc-snackbar--closing{display:flex}.mdc-snackbar--open .mdc-snackbar__label,.mdc-snackbar--open .mdc-snackbar__actions{visibility:visible}.mdc-snackbar__surface{padding-left:0;padding-right:8px;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;transform:scale(0.8);opacity:0}.mdc-snackbar__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-snackbar__surface::before{border-color:CanvasText}}[dir=rtl] .mdc-snackbar__surface,.mdc-snackbar__surface[dir=rtl]{padding-left:8px;padding-right:0}.mdc-snackbar--open .mdc-snackbar__surface{transform:scale(1);opacity:1;pointer-events:auto}.mdc-snackbar--closing .mdc-snackbar__surface{transform:scale(1)}.mdc-snackbar__label{padding-left:16px;padding-right:8px;width:100%;flex-grow:1;box-sizing:border-box;margin:0;visibility:hidden;padding-top:14px;padding-bottom:14px}[dir=rtl] .mdc-snackbar__label,.mdc-snackbar__label[dir=rtl]{padding-left:8px;padding-right:16px}.mdc-snackbar__label::before{display:inline;content:attr(data-mdc-snackbar-label-text)}.mdc-snackbar__actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box;visibility:hidden}.mdc-snackbar__action+.mdc-snackbar__dismiss{margin-left:8px;margin-right:0}[dir=rtl] .mdc-snackbar__action+.mdc-snackbar__dismiss,.mdc-snackbar__action+.mdc-snackbar__dismiss[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-snack-bar-container{margin:8px;--mdc-snackbar-container-shape:4px;position:static}.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:344px}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container .mdc-snackbar__surface{min-width:100%}}@media(max-width: 480px),(max-width: 344px){.mat-mdc-snack-bar-container{width:100vw}}.mat-mdc-snack-bar-container .mdc-snackbar__surface{max-width:672px}.mat-mdc-snack-bar-container .mdc-snackbar__surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{background-color:var(--mdc-snackbar-container-color)}.mat-mdc-snack-bar-container .mdc-snackbar__surface{border-radius:var(--mdc-snackbar-container-shape)}.mat-mdc-snack-bar-container .mdc-snackbar__label{color:var(--mdc-snackbar-supporting-text-color)}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-size:var(--mdc-snackbar-supporting-text-size);font-family:var(--mdc-snackbar-supporting-text-font);font-weight:var(--mdc-snackbar-supporting-text-weight);line-height:var(--mdc-snackbar-supporting-text-line-height)}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){color:var(--mat-snack-bar-button-color);--mat-mdc-button-persistent-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{background-color:currentColor;opacity:.1}.mat-mdc-snack-bar-container .mdc-snackbar__label::before{display:none}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-handset .mdc-snackbar__surface{width:100%}'],encapsulation:2,data:{animation:[nd.snackBarState]}})}return p})(),ks=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[_o.U8,Qr.eL,_e.ez,Ma.ot,Wi.BQ,Wi.BQ]})}return p})();const rd=new l.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function id(){return new Us}});let sa=(()=>{class p{get _openedSnackBarRef(){const u=this._parentSnackBar;return u?u._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(u){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=u:this._snackBarRefAtThisLevel=u}constructor(u,m,T,B,Q,Le){this._overlay=u,this._live=m,this._injector=T,this._breakpointObserver=B,this._parentSnackBar=Q,this._defaultConfig=Le,this._snackBarRefAtThisLevel=null}openFromComponent(u,m){return this._attach(u,m)}openFromTemplate(u,m){return this._attach(u,m)}open(u,m="",T){const B={...this._defaultConfig,...T};return B.data={message:u,action:m},B.announcementMessage===u&&(B.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,B)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(u,m){const B=l.zs3.create({parent:m&&m.viewContainerRef&&m.viewContainerRef.injector||this._injector,providers:[{provide:Us,useValue:m}]}),Q=new Qr.C5(this.snackBarContainerComponent,m.viewContainerRef,B),Le=u.attach(Q);return Le.instance.snackBarConfig=m,Le.instance}_attach(u,m){const T={...new Us,...this._defaultConfig,...m},B=this._createOverlay(T),Q=this._attachSnackBarContainer(B,T),Le=new ul(Q,B);if(u instanceof l.Rgc){const Je=new Qr.UE(u,null,{$implicit:T.data,snackBarRef:Le});Le.instance=Q.attachTemplatePortal(Je)}else{const Je=this._createInjector(T,Le),At=new Qr.C5(u,void 0,Je),jt=Q.attachComponentPortal(At);Le.instance=jt.instance}return this._breakpointObserver.observe(cl.u3.HandsetPortrait).pipe((0,yi.R)(B.detachments())).subscribe(Je=>{B.overlayElement.classList.toggle(this.handsetCssClass,Je.matches)}),T.announcementMessage&&Q._onAnnounce.subscribe(()=>{this._live.announce(T.announcementMessage,T.politeness)}),this._animateSnackBar(Le,T),this._openedSnackBarRef=Le,this._openedSnackBarRef}_animateSnackBar(u,m){u.afterDismissed().subscribe(()=>{this._openedSnackBarRef==u&&(this._openedSnackBarRef=null),m.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{u.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):u.containerInstance.enter(),m.duration&&m.duration>0&&u.afterOpened().subscribe(()=>u._dismissAfter(m.duration))}_createOverlay(u){const m=new _o.X_;m.direction=u.direction;let T=this._overlay.position().global();const B="rtl"===u.direction,Q="left"===u.horizontalPosition||"start"===u.horizontalPosition&&!B||"end"===u.horizontalPosition&&B,Le=!Q&&"center"!==u.horizontalPosition;return Q?T.left("0"):Le?T.right("0"):T.centerHorizontally(),"top"===u.verticalPosition?T.top("0"):T.bottom("0"),m.positionStrategy=T,this._overlay.create(m)}_createInjector(u,m){return l.zs3.create({parent:u&&u.viewContainerRef&&u.viewContainerRef.injector||this._injector,providers:[{provide:ul,useValue:m},{provide:Pc,useValue:u.data}]})}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_o.aV),l.LFG(oa.Kd),l.LFG(l.zs3),l.LFG(cl.Yg),l.LFG(p,12),l.LFG(rd))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),cc=(()=>{class p extends sa{constructor(u,m,T,B,Q,Le){super(u,m,T,B,Q,Le),this.simpleSnackBarComponent=To,this.snackBarContainerComponent=Ca,this.handsetCssClass="mat-mdc-snack-bar-handset"}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_o.aV),l.LFG(oa.Kd),l.LFG(l.zs3),l.LFG(cl.Yg),l.LFG(p,12),l.LFG(rd))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:ks})}return p})();var hl=C(4911),od=C(8504),Mo=C(2438),Ka=C(2096),aa=C(5211),Ol=C(5592),kn=C(2420);const Fi=new Ol.y(kn.Z);var Il=C(3019),en=C(7398),so=C(2181),gt=C(4664),la=C(3168),Ra=C(4674),Ls=C(4829),os=C(9360);const Fc={connector:()=>new Ui.x};function mo(p,y=Fc){const{connector:u}=y;return(0,os.e)((m,T)=>{const B=u();(0,Ls.Xf)(p(function ss(p){return new Ol.y(y=>p.subscribe(y))}(B))).subscribe(T),T.add(m.subscribe(B))})}var W=C(9397),ne=C(5177);const V="Service workers are disabled or not supported by this browser";class xe{constructor(y){if(this.serviceWorker=y,y){const m=(0,Mo.R)(y,"controllerchange").pipe((0,en.U)(()=>y.controller)),T=(0,hl.P)(()=>(0,Ka.of)(y.controller)),B=(0,aa.z)(T,m);this.worker=B.pipe((0,so.h)(jt=>!!jt)),this.registration=this.worker.pipe((0,gt.w)(()=>y.getRegistration()));const At=(0,Mo.R)(y,"message").pipe((0,en.U)(jt=>jt.data)).pipe((0,so.h)(jt=>jt&&jt.type)).pipe(function ys(p){return p?y=>mo(p)(y):y=>function ka(p,y){const u=(0,Ra.m)(p)?p:()=>p;return(0,Ra.m)(y)?mo(y,{connector:u}):m=>new la.c(m,u)}(new Ui.x)(y)}());At.connect(),this.events=At}else this.worker=this.events=this.registration=function ie(p){return(0,hl.P)(()=>(0,od._)(new Error(p)))}(V)}postMessage(y,u){return this.worker.pipe((0,Qi.q)(1),(0,W.b)(m=>{m.postMessage({action:y,...u})})).toPromise().then(()=>{})}postMessageWithOperation(y,u,m){const T=this.waitForOperationCompleted(m),B=this.postMessage(y,u);return Promise.all([B,T]).then(([,Q])=>Q)}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(y){let u;return u="string"==typeof y?m=>m.type===y:m=>y.includes(m.type),this.events.pipe((0,so.h)(u))}nextEventOfType(y){return this.eventsOfType(y).pipe((0,Qi.q)(1))}waitForOperationCompleted(y){return this.eventsOfType("OPERATION_COMPLETED").pipe((0,so.h)(u=>u.nonce===y),(0,Qi.q)(1),(0,en.U)(u=>{if(void 0!==u.result)return u.result;throw new Error(u.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let qe=(()=>{class p{get isEnabled(){return this.sw.isEnabled}constructor(u){if(this.sw=u,this.pushManager=null,this.subscriptionChanges=new Ui.x,!u.isEnabled)return this.messages=Fi,this.notificationClicks=Fi,void(this.subscription=Fi);this.messages=this.sw.eventsOfType("PUSH").pipe((0,en.U)(T=>T.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe((0,en.U)(T=>T.data)),this.pushManager=this.sw.registration.pipe((0,en.U)(T=>T.pushManager));const m=this.pushManager.pipe((0,gt.w)(T=>T.getSubscription()));this.subscription=(0,Il.T)(m,this.subscriptionChanges)}requestSubscription(u){if(!this.sw.isEnabled||null===this.pushManager)return Promise.reject(new Error(V));const m={userVisibleOnly:!0};let T=this.decodeBase64(u.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),B=new Uint8Array(new ArrayBuffer(T.length));for(let Q=0;QQ.subscribe(m)),(0,Qi.q)(1)).toPromise().then(Q=>(this.subscriptionChanges.next(Q),Q))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe((0,Qi.q)(1),(0,gt.w)(m=>{if(null===m)throw new Error("Not subscribed to push notifications.");return m.unsubscribe().then(T=>{if(!T)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(V))}decodeBase64(u){return atob(u)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(xe))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})(),Pt=(()=>{class p{get isEnabled(){return this.sw.isEnabled}constructor(u){if(this.sw=u,!u.isEnabled)return this.versionUpdates=Fi,this.available=Fi,this.activated=Fi,void(this.unrecoverable=Fi);this.versionUpdates=this.sw.eventsOfType(["VERSION_DETECTED","VERSION_INSTALLATION_FAILED","VERSION_READY","NO_NEW_VERSION_DETECTED"]),this.available=this.versionUpdates.pipe((0,so.h)(m=>"VERSION_READY"===m.type),(0,en.U)(m=>({type:"UPDATE_AVAILABLE",current:m.currentVersion,available:m.latestVersion}))),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED"),this.unrecoverable=this.sw.eventsOfType("UNRECOVERABLE_STATE")}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(V));const u=this.sw.generateNonce();return this.sw.postMessageWithOperation("CHECK_FOR_UPDATES",{nonce:u},u)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(V));const u=this.sw.generateNonce();return this.sw.postMessageWithOperation("ACTIVATE_UPDATE",{nonce:u},u)}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(xe))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac})}return p})();const mn=new l.OlP("NGSW_REGISTER_SCRIPT");function hn(p,y,u,m){return()=>{if(!(0,_e.NF)(m)||!("serviceWorker"in navigator)||!1===u.enabled)return;let T;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof u.registrationStrategy)T=u.registrationStrategy();else{const[Q,...Le]=(u.registrationStrategy||"registerWhenStable:30000").split(":");switch(Q){case"registerImmediately":T=(0,Ka.of)(null);break;case"registerWithDelay":T=on(+Le[0]||0);break;case"registerWhenStable":T=Le[0]?(0,Il.T)(ji(p),on(+Le[0])):ji(p);break;default:throw new Error(`Unknown ServiceWorker registration strategy: ${u.registrationStrategy}`)}}p.get(l.R0b).runOutsideAngular(()=>T.pipe((0,Qi.q)(1)).subscribe(()=>navigator.serviceWorker.register(y,{scope:u.scope}).catch(Q=>console.error("Service worker registration failed with:",Q))))}}function on(p){return(0,Ka.of)(null).pipe((0,ne.g)(p))}function ji(p){return p.get(l.z2F).isStable.pipe((0,so.h)(u=>u))}function Gr(p,y){return new xe((0,_e.NF)(y)&&!1!==p.enabled?navigator.serviceWorker:void 0)}class $i{}function mi(p,y={}){return(0,l.MR2)([qe,Pt,{provide:mn,useValue:p},{provide:$i,useValue:y},{provide:xe,useFactory:Gr,deps:[$i,l.Lbi]},{provide:l.ip1,useFactory:hn,deps:[l.zs3,mn,$i,l.Lbi],multi:!0}])}let Ps=(()=>{class p{static register(u,m={}){return{ngModule:p,providers:[mi(u,m)]}}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:[qe,Pt]})}return p})();var fl=C(2268),Rl=C(6232),Ja=C(4825);const{isArray:xd}=Array;function Md(p){return 1===p.length&&xd(p[0])?p[0]:p}var Do=C(8251);var dc=C(9940);function Ec(...p){const y=(0,dc.jO)(p),u=Md(p);return u.length?new Ol.y(m=>{let T=u.map(()=>[]),B=u.map(()=>!1);m.add(()=>{T=B=null});for(let Q=0;!m.closed&&Q{if(T[Q].push(Le),T.every(Je=>Je.length)){const Je=T.map(At=>At.shift());m.next(y?y(...Je):Je),T.some((At,jt)=>!At.length&&B[jt])&&m.complete()}},()=>{B[Q]=!0,!T[Q].length&&m.complete()}));return()=>{T=B=null}}):Rl.E}var uc=C(2737);function hc(...p){const y=(0,dc.jO)(p);return(0,os.e)((u,m)=>{const T=p.length,B=new Array(T);let Q=p.map(()=>!1),Le=!1;for(let Je=0;Je{B[Je]=At,!Le&&!Q[Je]&&(Q[Je]=!0,(Le=Q.every(uc.y))&&(Q=null))},kn.Z));u.subscribe((0,Do.x)(m,Je=>{if(Le){const At=[Je,...B];m.next(y?y(...At):At)}}))})}C(7921),C(3997),C(836),Math,Math,Math;const qu=["*"],Wf=["dialog"];function vt(p){return"string"==typeof p}function Gt(p){return null!=p}function Kn(p){return(p||document.body).getBoundingClientRect()}const Dr={animation:!0,transitionTimerDelayMs:5},hs=()=>{},{transitionTimerDelayMs:Vl}=Dr,ic=new Map,Cs=(p,y,u,m)=>{let T=m.context||{};const B=ic.get(y);if(B)switch(m.runningTransition){case"continue":return Rl.E;case"stop":p.run(()=>B.transition$.complete()),T=Object.assign(B.context,T),ic.delete(y)}const Q=u(y,m.animation,T)||hs;if(!m.animation||"none"===window.getComputedStyle(y).transitionProperty)return p.run(()=>Q()),(0,Ka.of)(void 0).pipe(function fi(p){return y=>new Ol.y(u=>y.subscribe({next:Q=>p.run(()=>u.next(Q)),error:Q=>p.run(()=>u.error(Q)),complete:()=>p.run(()=>u.complete())}))}(p));const Le=new Ui.x,Je=new Ui.x,At=Le.pipe(function sd(...p){return y=>(0,aa.z)(y,(0,Ka.of)(...p))}(!0));ic.set(y,{transition$:Le,complete:()=>{Je.next(),Je.complete()},context:T});const jt=function go(p){const{transitionDelay:y,transitionDuration:u}=window.getComputedStyle(p);return 1e3*(parseFloat(y)+parseFloat(u))}(y);return p.runOutsideAngular(()=>{const dn=(0,Mo.R)(y,"transitionend").pipe((0,yi.R)(At),(0,so.h)(({target:Tn})=>Tn===y));(function qa(...p){return 1===(p=Md(p)).length?(0,Ls.Xf)(p[0]):new Ol.y(function xr(p){return y=>{let u=[];for(let m=0;u&&!y.closed&&m{if(u){for(let B=0;B{ic.delete(y),p.run(()=>{Q(),Le.next(),Le.complete()})})}),Le.asObservable()};let P=(()=>{class p{constructor(){this.animation=Dr.animation}static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),Jf=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),C_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),dh=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),E_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();var Wo=function(p){return p[p.Tab=9]="Tab",p[p.Enter=13]="Enter",p[p.Escape=27]="Escape",p[p.Space=32]="Space",p[p.PageUp=33]="PageUp",p[p.PageDown=34]="PageDown",p[p.End=35]="End",p[p.Home=36]="Home",p[p.ArrowLeft=37]="ArrowLeft",p[p.ArrowUp=38]="ArrowUp",p[p.ArrowRight=39]="ArrowRight",p[p.ArrowDown=40]="ArrowDown",p}(Wo||{});typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const I_=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Vp(p){const y=Array.from(p.querySelectorAll(I_)).filter(u=>-1!==u.tabIndex);return[y[0],y[y.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let yg=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),Kp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();class Ki{constructor(y,u,m){this.nodes=y,this.viewRef=u,this.componentRef=m}}let $_=(()=>{class p{constructor(u,m){this._el=u,this._zone=m}ngOnInit(){this._zone.onStable.asObservable().pipe((0,Qi.q)(1)).subscribe(()=>{Cs(this._zone,this._el.nativeElement,(u,m)=>{m&&Kn(u),u.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return Cs(this._zone,this._el.nativeElement,({classList:u})=>u.remove("show"),{animation:this.animation,runningTransition:"stop"})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(m,T){2&m&&(l.Tol("modal-backdrop"+(T.backdropClass?" "+T.backdropClass:"")),l.ekj("show",!T.animation)("fade",T.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[l.jDz],decls:0,vars:0,template:function(m,T){},encapsulation:2})}return p})();class fh{update(y){}close(y){}dismiss(y){}}const K_=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Tg=["animation","backdropClass"];class hp{_applyWindowOptions(y,u){K_.forEach(m=>{Gt(u[m])&&(y[m]=u[m])})}_applyBackdropOptions(y,u){Tg.forEach(m=>{Gt(u[m])&&(y[m]=u[m])})}update(y){this._applyWindowOptions(this._windowCmptRef.instance,y),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,y)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,yi.R)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,yi.R)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(y,u,m,T){this._windowCmptRef=y,this._contentRef=u,this._backdropCmptRef=m,this._beforeDismiss=T,this._closed=new Ui.x,this._dismissed=new Ui.x,this._hidden=new Ui.x,y.instance.dismissEvent.subscribe(B=>{this.dismiss(B)}),this.result=new Promise((B,Q)=>{this._resolve=B,this._reject=Q}),this.result.then(null,()=>{})}close(y){this._windowCmptRef&&(this._closed.next(y),this._resolve(y),this._removeModalElements())}_dismiss(y){this._dismissed.next(y),this._reject(y),this._removeModalElements()}dismiss(y){if(this._windowCmptRef)if(this._beforeDismiss){const u=this._beforeDismiss();!function an(p){return p&&p.then}(u)?!1!==u&&this._dismiss(y):u.then(m=>{!1!==m&&this._dismiss(y)},()=>{})}else this._dismiss(y)}_removeModalElements(){const y=this._windowCmptRef.instance.hide(),u=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,Ka.of)(void 0);y.subscribe(()=>{const{nativeElement:m}=this._windowCmptRef.location;m.parentNode.removeChild(m),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),u.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:m}=this._backdropCmptRef.location;m.parentNode.removeChild(m),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),Ec(y,u).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Vu=function(p){return p[p.BACKDROP_CLICK=0]="BACKDROP_CLICK",p[p.ESC=1]="ESC",p}(Vu||{});let Jp=(()=>{class p{constructor(u,m,T){this._document=u,this._elRef=m,this._zone=T,this._closed$=new Ui.x,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new l.vpe,this.shown=new Ui.x,this.hidden=new Ui.x}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":vt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(u){this.dismissEvent.emit(u)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,Qi.q)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:u}=this._elRef,m={animation:this.animation,runningTransition:"stop"},Q=Ec(Cs(this._zone,u,()=>u.classList.remove("show"),m),Cs(this._zone,this._dialogEl.nativeElement,()=>{},m));return Q.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),Q}_show(){const u={animation:this.animation,runningTransition:"continue"};Ec(Cs(this._zone,this._elRef.nativeElement,(B,Q)=>{Q&&Kn(B),B.classList.add("show")},u),Cs(this._zone,this._dialogEl.nativeElement,()=>{},u)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:u}=this._elRef;this._zone.runOutsideAngular(()=>{(0,Mo.R)(u,"keydown").pipe((0,yi.R)(this._closed$),(0,so.h)(T=>T.which===Wo.Escape)).subscribe(T=>{this.keyboard?requestAnimationFrame(()=>{T.defaultPrevented||this._zone.run(()=>this.dismiss(Vu.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let m=!1;(0,Mo.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,yi.R)(this._closed$),(0,W.b)(()=>m=!1),(0,gt.w)(()=>(0,Mo.R)(u,"mouseup").pipe((0,yi.R)(this._closed$),(0,Qi.q)(1))),(0,so.h)(({target:T})=>u===T)).subscribe(()=>{m=!0}),(0,Mo.R)(u,"click").pipe((0,yi.R)(this._closed$)).subscribe(({target:T})=>{u===T&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!m&&this._zone.run(()=>this.dismiss(Vu.BACKDROP_CLICK))),m=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:u}=this._elRef;if(!u.contains(document.activeElement)){const m=u.querySelector("[ngbAutofocus]"),T=Vp(u)[0];(m||T||u).focus()}}_restoreFocus(){const u=this._document.body,m=this._elWithFocus;let T;T=m&&m.focus&&u.contains(m)?m:u,this._zone.runOutsideAngular(()=>{setTimeout(()=>T.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&Cs(this._zone,this._elRef.nativeElement,({classList:u})=>(u.add("modal-static"),()=>u.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static#e=this.\u0275fac=function(m){return new(m||p)(l.Y36(_e.K0),l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275cmp=l.Xpm({type:p,selectors:[["ngb-modal-window"]],viewQuery:function(m,T){if(1&m&&l.Gf(Wf,7),2&m){let B;l.iGM(B=l.CRH())&&(T._dialogEl=B.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(m,T){2&m&&(l.uIk("aria-modal",!0)("aria-labelledby",T.ariaLabelledBy)("aria-describedby",T.ariaDescribedBy),l.Tol("modal d-block"+(T.windowClass?" "+T.windowClass:"")),l.ekj("fade",T.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[l.jDz],ngContentSelectors:qu,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(m,T){1&m&&(l.F$t(),l.TgZ(0,"div",0,1)(2,"div",2),l.Hsn(3),l.qZA()()),2&m&&l.Tol("modal-dialog"+(T.size?" modal-"+T.size:"")+(T.centered?" modal-dialog-centered":"")+T.fullscreenClass+(T.scrollable?" modal-dialog-scrollable":"")+(T.modalDialogClass?" "+T.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}return p})(),Pf=(()=>{class p{constructor(u){this._document=u}hide(){const u=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),m=this._document.body,T=m.style,{overflow:B,paddingRight:Q}=T;if(u>0){const Le=parseFloat(window.getComputedStyle(m).paddingRight);T.paddingRight=`${Le+u}px`}return T.overflow="hidden",()=>{u>0&&(T.paddingRight=Q),T.overflow=B}}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(_e.K0))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),J_=(()=>{class p{constructor(u,m,T,B,Q,Le,Je){this._applicationRef=u,this._injector=m,this._environmentInjector=T,this._document=B,this._scrollBar=Q,this._rendererFactory=Le,this._ngZone=Je,this._activeWindowCmptHasChanged=new Ui.x,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new l.vpe,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const At=this._windowCmpts[this._windowCmpts.length-1];((p,y,u,m=!1)=>{p.runOutsideAngular(()=>{const T=(0,Mo.R)(y,"focusin").pipe((0,yi.R)(u),(0,en.U)(B=>B.target));(0,Mo.R)(y,"keydown").pipe((0,yi.R)(u),(0,so.h)(B=>B.which===Wo.Tab),hc(T)).subscribe(([B,Q])=>{const[Le,Je]=Vp(y);(Q===Le||Q===y)&&B.shiftKey&&(Je.focus(),B.preventDefault()),Q===Je&&!B.shiftKey&&(Le.focus(),B.preventDefault())}),m&&(0,Mo.R)(y,"click").pipe((0,yi.R)(u),hc(T),(0,en.U)(B=>B[1])).subscribe(B=>B.focus())})})(this._ngZone,At.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(At.location.nativeElement)}})}_restoreScrollBar(){const u=this._scrollBarRestoreFn;u&&(this._scrollBarRestoreFn=null,u())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(u,m,T){const B=T.container instanceof HTMLElement?T.container:Gt(T.container)?this._document.querySelector(T.container):this._document.body,Q=this._rendererFactory.createRenderer(null,null);if(!B)throw new Error(`The specified modal container "${T.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const Le=new fh,Je=(u=T.injector||u).get(l.lqb,null)||this._environmentInjector,At=this._getContentRef(u,Je,m,Le,T);let jt=!1!==T.backdrop?this._attachBackdrop(B):void 0,dn=this._attachWindowComponent(B,At.nodes),Cn=new hp(dn,At,jt,T.beforeDismiss);return this._registerModalRef(Cn),this._registerWindowCmpt(dn),Cn.hidden.pipe((0,Qi.q)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(Q.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),Le.close=Tn=>{Cn.close(Tn)},Le.dismiss=Tn=>{Cn.dismiss(Tn)},Le.update=Tn=>{Cn.update(Tn)},Cn.update(T),1===this._modalRefs.length&&Q.addClass(this._document.body,"modal-open"),jt&&jt.instance&&jt.changeDetectorRef.detectChanges(),dn.changeDetectorRef.detectChanges(),Cn}get activeInstances(){return this._activeInstances}dismissAll(u){this._modalRefs.forEach(m=>m.dismiss(u))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(u){let m=(0,l.LMc)($_,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(m.hostView),u.appendChild(m.location.nativeElement),m}_attachWindowComponent(u,m){let T=(0,l.LMc)(Jp,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:m});return this._applicationRef.attachView(T.hostView),u.appendChild(T.location.nativeElement),T}_getContentRef(u,m,T,B,Q){return T?T instanceof l.Rgc?this._createFromTemplateRef(T,B):vt(T)?this._createFromString(T):this._createFromComponent(u,m,T,B,Q):new Ki([])}_createFromTemplateRef(u,m){const B=u.createEmbeddedView({$implicit:m,close(Q){m.close(Q)},dismiss(Q){m.dismiss(Q)}});return this._applicationRef.attachView(B),new Ki([B.rootNodes],B)}_createFromString(u){const m=this._document.createTextNode(`${u}`);return new Ki([[m]])}_createFromComponent(u,m,T,B,Q){const Le=l.zs3.create({providers:[{provide:fh,useValue:B}],parent:u}),Je=(0,l.LMc)(T,{environmentInjector:m,elementInjector:Le}),At=Je.location.nativeElement;return Q.scrollable&&At.classList.add("component-host-scrollable"),this._applicationRef.attachView(Je.hostView),new Ki([[At]],Je.hostView,Je)}_setAriaHidden(u){const m=u.parentElement;m&&u!==this._document.body&&(Array.from(m.children).forEach(T=>{T!==u&&"SCRIPT"!==T.nodeName&&(this._ariaHiddenValues.set(T,T.getAttribute("aria-hidden")),T.setAttribute("aria-hidden","true"))}),this._setAriaHidden(m))}_revertAriaHidden(){this._ariaHiddenValues.forEach((u,m)=>{u?m.setAttribute("aria-hidden",u):m.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(u){const m=()=>{const T=this._modalRefs.indexOf(u);T>-1&&(this._modalRefs.splice(T,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(u),this._activeInstances.emit(this._modalRefs),u.result.then(m,m)}_registerWindowCmpt(u){this._windowCmpts.push(u),this._activeWindowCmptHasChanged.next(),u.onDestroy(()=>{const m=this._windowCmpts.indexOf(u);m>-1&&(this._windowCmpts.splice(m,1),this._activeWindowCmptHasChanged.next())})}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.z2F),l.LFG(l.zs3),l.LFG(l.lqb),l.LFG(_e.K0),l.LFG(Pf),l.LFG(l.FYo),l.LFG(l.R0b))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),qp=(()=>{class p{constructor(u){this._ngbConfig=u,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(u){this._animation=u}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(P))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),Qp=(()=>{class p{constructor(u,m,T){this._injector=u,this._modalStack=m,this._config=T}open(u,m={}){const T={...this._config,animation:this._config.animation,...m};return this._modalStack.open(this._injector,u,T)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(u){this._modalStack.dismissAll(u)}hasOpenModals(){return this._modalStack.hasOpenModals()}static#e=this.\u0275fac=function(m){return new(m||p)(l.LFG(l.zs3),l.LFG(J_),l.LFG(qp))};static#t=this.\u0275prov=l.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})}return p})(),fp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({providers:[Qp]})}return p})(),tm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),gp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),sm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),n_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),vp=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),dm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),hm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),s_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),fm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();new l.OlP("live announcer delay",{providedIn:"root",factory:function Gg(){return 100}});let _m=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})(),l_=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({})}return p})();const mm=[Jf,C_,dh,E_,yg,Kp,fp,tm,l_,gp,sm,n_,vp,dm,hm,s_,fm,_m];let Jg=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p});static#n=this.\u0275inj=l.cJS({imports:[mm,Jf,C_,dh,E_,yg,Kp,fp,tm,l_,gp,sm,n_,vp,dm,hm,s_,fm,_m]})}return p})();var X0=C(9797),gm=C(2425);let vm=(()=>{class p{static#e=this.\u0275fac=function(m){return new(m||p)};static#t=this.\u0275mod=l.oAB({type:p,bootstrap:[Wn]});static#n=this.\u0275inj=l.cJS({providers:[Ct.F,cc],imports:[e.b2,ei,Ve.AuthModule,bs.g,X0.CmsModule,vs.WebAppModule,ct.JF,xi,gm.Rh.forRoot(),$a.Ps,Ps.register("ngsw-worker.js",{enabled:I.N.production,registrationStrategy:"registerWhenStable:30000"}),Ps.register("ngsw-worker.js",{enabled:!(0,l.X6Q)(),registrationStrategy:"registerWhenStable:30000"}),fl.z8.forRoot(),Jg]})}return p})();e.q6().bootstrapModule(vm).catch(p=>console.error(p))},3274:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(D){return/^nm$/i.test(D)},meridiem:function(D,I,S){return D<12?S?"vm":"VM":S?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(D){return D+(1===D||8===D||D>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},1867:function(ft,Ie,C){!function(e){"use strict";var l=function(n){return 0===n?0:1===n?1:2===n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5},D={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},I=function(n){return function(Z,ee,re,ue){var se=l(Z),te=D[n][l(Z)];return 2===se&&(te=te[ee?0:1]),te.replace(/%d/i,Z)}},S=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:S,monthsShort:S,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(n){return"\u0645"===n},meridiem:function(n,Z,ee){return n<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:I("s"),ss:I("s"),m:I("m"),mm:I("m"),h:I("h"),hh:I("h"),d:I("d"),dd:I("d"),M:I("M"),MM:I("M"),y:I("y"),yy:I("y")},postformat:function(n){return n.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(C(6676))},7078:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(C(6676))},7776:function(ft,Ie,C){!function(e){"use strict";var l={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},D=function(Z){return 0===Z?0:1===Z?1:2===Z?2:Z%100>=3&&Z%100<=10?3:Z%100>=11?4:5},I={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},S=function(Z){return function(ee,re,ue,se){var te=D(ee),oe=I[Z][D(ee)];return 2===te&&(oe=oe[re?0:1]),oe.replace(/%d/i,ee)}},w=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:w,monthsShort:w,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(Z){return"\u0645"===Z},meridiem:function(Z,ee,re){return Z<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:S("s"),ss:S("s"),m:S("m"),mm:S("m"),h:S("h"),hh:S("h"),d:S("d"),dd:S("d"),M:S("M"),MM:S("M"),y:S("y"),yy:S("y")},preparse:function(Z){return Z.replace(/\u060c/g,",")},postformat:function(Z){return Z.replace(/\d/g,function(ee){return l[ee]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},6789:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(C(6676))},6897:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(S){return"\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(S){return S.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(w){return D[w]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(C(6676))},1585:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(C(6676))},2097:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},I=function(ee){return 0===ee?0:1===ee?1:2===ee?2:ee%100>=3&&ee%100<=10?3:ee%100>=11?4:5},S={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},w=function(ee){return function(re,ue,se,te){var oe=I(re),ce=S[ee][I(re)];return 2===oe&&(ce=ce[ue?0:1]),ce.replace(/%d/i,re)}},n=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:n,monthsShort:n,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(ee){return"\u0645"===ee},meridiem:function(ee,re,ue){return ee<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:w("s"),ss:w("s"),m:w("m"),mm:w("m"),h:w("h"),hh:w("h"),d:w("d"),dd:w("d"),M:w("M"),MM:w("M"),y:w("y"),yy:w("y")},preparse:function(ee){return ee.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(re){return D[re]}).replace(/\u060c/g,",")},postformat:function(ee){return ee.replace(/\d/g,function(re){return l[re]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},5611:function(ft,Ie,C){!function(e){"use strict";var l={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(I){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(I)},meridiem:function(I,S,w){return I<4?"gec\u0259":I<12?"s\u0259h\u0259r":I<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(I){if(0===I)return I+"-\u0131nc\u0131";var S=I%10;return I+(l[S]||l[I%100-S]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},2459:function(ft,Ie,C){!function(e){"use strict";function D(S,w,n){return"m"===n?w?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?w?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":S+" "+function l(S,w){var n=S.split("_");return w%10==1&&w%100!=11?n[0]:w%10>=2&&w%10<=4&&(w%100<10||w%100>=20)?n[1]:n[2]}({ss:w?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:w?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:w?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n],+S)}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:D,mm:D,h:D,hh:D,d:"\u0434\u0437\u0435\u043d\u044c",dd:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(S){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(S)},meridiem:function(S,w,n){return S<4?"\u043d\u043e\u0447\u044b":S<12?"\u0440\u0430\u043d\u0456\u0446\u044b":S<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(S,w){switch(w){case"M":case"d":case"DDD":case"w":case"W":return S%10!=2&&S%10!=3||S%100==12||S%100==13?S+"-\u044b":S+"-\u0456";case"D":return S+"-\u0433\u0430";default:return S}},week:{dow:1,doy:7}})}(C(6676))},1825:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var I=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===I?D+"-\u0432\u0438":2===I?D+"-\u0440\u0438":7===I||8===I?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(C(6676))},5918:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(C(6676))},9683:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===w?S<4?S:S+12:"\u09ad\u09cb\u09b0"===w||"\u09b8\u0995\u09be\u09b2"===w?S:"\u09a6\u09c1\u09aa\u09c1\u09b0"===w?S>=3?S:S+12:"\u09ac\u09bf\u0995\u09be\u09b2"===w||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u09b0\u09be\u09a4":S<6?"\u09ad\u09cb\u09b0":S<12?"\u09b8\u0995\u09be\u09b2":S<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<18?"\u09ac\u09bf\u0995\u09be\u09b2":S<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(C(6676))},4065:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},D={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(S){return S.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u09b0\u09be\u09a4"===w&&S>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===w&&S<5||"\u09ac\u09bf\u0995\u09be\u09b2"===w?S+12:S},meridiem:function(S,w,n){return S<4?"\u09b0\u09be\u09a4":S<10?"\u09b8\u0995\u09be\u09b2":S<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":S<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(C(6676))},1034:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},D={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u0f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(S){return S.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===w&&S>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===w&&S<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===w?S+12:S},meridiem:function(S,w,n){return S<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":S<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":S<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":S<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(C(6676))},7671:function(ft,Ie,C){!function(e){"use strict";function l(ce,_e,Re){return ce+" "+function S(ce,_e){return 2===_e?function w(ce){var _e={m:"v",b:"v",d:"z"};return void 0===_e[ce.charAt(0)]?ce:_e[ce.charAt(0)]+ce.substring(1)}(ce):ce}({mm:"munutenn",MM:"miz",dd:"devezh"}[Re],ce)}function I(ce){return ce>9?I(ce%10):ce}var n=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],Z=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,te=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:te,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:te,monthsRegex:Z,monthsShortRegex:Z,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:l,h:"un eur",hh:"%d eur",d:"un devezh",dd:l,M:"ur miz",MM:l,y:"ur bloaz",yy:function D(ce){switch(I(ce)){case 1:case 3:case 4:case 5:case 9:return ce+" bloaz";default:return ce+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ce){return ce+(1===ce?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(ce){return"g.m."===ce},meridiem:function(ce,_e,Re){return ce<12?"a.m.":"g.m."}})}(C(6676))},8153:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var n=I+" ";switch(w){case"ss":return n+(1===I?"sekunda":2===I||3===I||4===I?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return n+(1===I?"minuta":2===I||3===I||4===I?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return n+(1===I?"sat":2===I||3===I||4===I?"sata":"sati");case"dd":return n+(1===I?"dan":"dana");case"MM":return n+(1===I?"mjesec":2===I||3===I||4===I?"mjeseca":"mjeseci");case"yy":return n+(1===I?"godina":2===I||3===I||4===I?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:l,m:l,mm:l,h:l,hh:l,d:"dan",dd:l,M:"mjesec",MM:l,y:"godinu",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},4287:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,I){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===I||"W"===I)&&(S="a"),D+S},week:{dow:1,doy:4}})}(C(6676))},2616:function(ft,Ie,C){!function(e){"use strict";var l={format:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),standalone:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_")},D="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),I=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],S=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function w(ee){return ee>1&&ee<5&&1!=~~(ee/10)}function n(ee,re,ue,se){var te=ee+" ";switch(ue){case"s":return re||se?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return re||se?te+(w(ee)?"sekundy":"sekund"):te+"sekundami";case"m":return re?"minuta":se?"minutu":"minutou";case"mm":return re||se?te+(w(ee)?"minuty":"minut"):te+"minutami";case"h":return re?"hodina":se?"hodinu":"hodinou";case"hh":return re||se?te+(w(ee)?"hodiny":"hodin"):te+"hodinami";case"d":return re||se?"den":"dnem";case"dd":return re||se?te+(w(ee)?"dny":"dn\xed"):te+"dny";case"M":return re||se?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return re||se?te+(w(ee)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):te+"m\u011bs\xedci";case"y":return re||se?"rok":"rokem";case"yy":return re||se?te+(w(ee)?"roky":"let"):te+"lety"}}e.defineLocale("cs",{months:l,monthsShort:D,monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7049:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(D){return D+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(D)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(D)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(C(6676))},9172:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(D){var S="";return D>20?S=40===D||50===D||60===D||80===D||100===D?"fed":"ain":D>0&&(S=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][D]),D+S},week:{dow:1,doy:4}})}(C(6676))},605:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},3395:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9835:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4013:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[I+" Tage",I+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[I+" Monate",I+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[I+" Jahre",I+" Jahren"]};return S?Z[w][0]:Z[w][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:l,mm:"%d Minuten",h:l,hh:"%d Stunden",d:l,dd:l,w:l,ww:"%d Wochen",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4570:function(ft,Ie,C){!function(e){"use strict";var l=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],D=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(S){return"\u0789\u078a"===S},meridiem:function(S,w,n){return S<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(C(6676))},1859:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(I,S){return I?"string"==typeof S&&/D/.test(S.substring(0,S.indexOf("MMMM")))?this._monthsGenitiveEl[I.month()]:this._monthsNominativeEl[I.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(I,S,w){return I>11?w?"\u03bc\u03bc":"\u039c\u039c":w?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(I){return"\u03bc"===(I+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(I,S){var w=this._calendarEl[I],n=S&&S.hours();return function l(I){return typeof Function<"u"&&I instanceof Function||"[object Function]"===Object.prototype.toString.call(I)}(w)&&(w=w.apply(S)),w.replace("{}",n%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(C(6676))},5785:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:0,doy:4}})}(C(6676))},3792:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")}})}(C(6676))},7651:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},1929:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},9818:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")}})}(C(6676))},6612:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:0,doy:6}})}(C(6676))},4900:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},2721:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6570:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(D){return"p"===D.charAt(0).toLowerCase()},meridiem:function(D,I,S){return D>11?S?"p.t.m.":"P.T.M.":S?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(C(6676))},1780:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},3468:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(C(6676))},4938:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(C(6676))},1148:function(ft,Ie,C){!function(e){"use strict";var l="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),D="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),I=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],S=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(C(6676))},1453:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[I+"sekundi",I+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[I+" minuti",I+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[I+" tunni",I+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[I+" kuu",I+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[I+" aasta",I+" aastat"]};return S?Z[w][2]?Z[w][2]:Z[w][1]:n?Z[w][0]:Z[w][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:"%d p\xe4eva",M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4697:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},2900:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},D={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(S){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(S)},meridiem:function(S,w,n){return S<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/[\u06f0-\u06f9]/g,function(w){return D[w]}).replace(/\u060c/g,",")},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(C(6676))},9775:function(ft,Ie,C){!function(e){"use strict";var l="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),D=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",l[7],l[8],l[9]];function I(n,Z,ee,re){var ue="";switch(ee){case"s":return re?"muutaman sekunnin":"muutama sekunti";case"ss":ue=re?"sekunnin":"sekuntia";break;case"m":return re?"minuutin":"minuutti";case"mm":ue=re?"minuutin":"minuuttia";break;case"h":return re?"tunnin":"tunti";case"hh":ue=re?"tunnin":"tuntia";break;case"d":return re?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":ue=re?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return re?"kuukauden":"kuukausi";case"MM":ue=re?"kuukauden":"kuukautta";break;case"y":return re?"vuoden":"vuosi";case"yy":ue=re?"vuoden":"vuotta"}return function S(n,Z){return n<10?Z?D[n]:l[n]:n}(n,re)+" "+ue}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:I,ss:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4282:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},4236:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2830:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,I){switch(I){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}}})}(C(6676))},1412:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(D,I){switch(I){default:case"M":case"Q":case"D":case"DDD":case"d":return D+(1===D?"er":"e");case"w":case"W":return D+(1===D?"re":"e")}},week:{dow:1,doy:4}})}(C(6676))},9361:function(ft,Ie,C){!function(e){"use strict";var I=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,S=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:I,monthsShortRegex:I,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:S,longMonthsParse:S,shortMonthsParse:S,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(n,Z){switch(Z){case"D":return n+(1===n?"er":"");default:case"M":case"Q":case"DDD":case"d":return n+(1===n?"er":"e");case"w":case"W":return n+(1===n?"re":"e")}},week:{dow:1,doy:4}})}(C(6676))},6984:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),D="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(S,w){return S?/-MMM-/.test(w)?D[S.month()]:l[S.month()]:l},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(S){return S+(1===S||8===S||S>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},3961:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Z){return Z+(1===Z?"d":Z%10==2?"na":"mh")},week:{dow:1,doy:4}})}(C(6676))},8849:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(Z){return Z+(1===Z?"d":Z%10==2?"na":"mh")},week:{dow:1,doy:4}})}(C(6676))},4273:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(D){return 0===D.indexOf("un")?"n"+D:"en "+D},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},623:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[I+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",I+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[I+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",I+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[I+" \u0935\u0930\u093e\u0902\u0928\u0940",I+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[I+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",I+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[I+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",I+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[I+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",I+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return n?Z[w][0]:Z[w][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(I,S){return"D"===S?I+"\u0935\u0947\u0930":I},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(I,S){return 12===I&&(I=0),"\u0930\u093e\u0924\u0940"===S?I<4?I:I+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===S?I:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===S?I>12?I:I+12:"\u0938\u093e\u0902\u091c\u0947"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"\u0930\u093e\u0924\u0940":I<12?"\u0938\u0915\u093e\u0933\u0940\u0902":I<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":I<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(C(6676))},2696:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z={s:["thoddea sekondamni","thodde sekond"],ss:[I+" sekondamni",I+" sekond"],m:["eka mintan","ek minut"],mm:[I+" mintamni",I+" mintam"],h:["eka voran","ek vor"],hh:[I+" voramni",I+" voram"],d:["eka disan","ek dis"],dd:[I+" disamni",I+" dis"],M:["eka mhoinean","ek mhoino"],MM:[I+" mhoineamni",I+" mhoine"],y:["eka vorsan","ek voros"],yy:[I+" vorsamni",I+" vorsam"]};return n?Z[w][0]:Z[w][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(I,S){return"D"===S?I+"er":I},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(I,S){return 12===I&&(I=0),"rati"===S?I<4?I:I+12:"sokallim"===S?I:"donparam"===S?I>12?I:I+12:"sanje"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"rati":I<12?"sokallim":I<16?"donparam":I<20?"sanje":"rati"}})}(C(6676))},6928:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},D={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(S){return S.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0ab0\u0abe\u0aa4"===w?S<4?S:S+12:"\u0ab8\u0ab5\u0abe\u0ab0"===w?S:"\u0aac\u0aaa\u0acb\u0ab0"===w?S>=10?S:S+12:"\u0ab8\u0abe\u0a82\u0a9c"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0ab0\u0abe\u0aa4":S<10?"\u0ab8\u0ab5\u0abe\u0ab0":S<17?"\u0aac\u0aaa\u0acb\u0ab0":S<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(C(6676))},4804:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(D){return 2===D?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":D+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(D){return 2===D?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":D+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(D){return 2===D?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":D+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(D){return 2===D?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":D%10==0&&10!==D?D+" \u05e9\u05e0\u05d4":D+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(D){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(D)},meridiem:function(D,I,S){return D<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":D<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":D<12?S?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":D<18?S?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(C(6676))},3015:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},I=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:I,longMonthsParse:I,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(n){return n.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(Z){return D[Z]})},postformat:function(n){return n.replace(/\d/g,function(Z){return l[Z]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(n,Z){return 12===n&&(n=0),"\u0930\u093e\u0924"===Z?n<4?n:n+12:"\u0938\u0941\u092c\u0939"===Z?n:"\u0926\u094b\u092a\u0939\u0930"===Z?n>=10?n:n+12:"\u0936\u093e\u092e"===Z?n+12:void 0},meridiem:function(n,Z,ee){return n<4?"\u0930\u093e\u0924":n<10?"\u0938\u0941\u092c\u0939":n<17?"\u0926\u094b\u092a\u0939\u0930":n<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(C(6676))},7134:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var n=I+" ";switch(w){case"ss":return n+(1===I?"sekunda":2===I||3===I||4===I?"sekunde":"sekundi");case"m":return S?"jedna minuta":"jedne minute";case"mm":return n+(1===I?"minuta":2===I||3===I||4===I?"minute":"minuta");case"h":return S?"jedan sat":"jednog sata";case"hh":return n+(1===I?"sat":2===I||3===I||4===I?"sata":"sati");case"dd":return n+(1===I?"dan":"dana");case"MM":return n+(1===I?"mjesec":2===I||3===I||4===I?"mjeseca":"mjeseci");case"yy":return n+(1===I?"godina":2===I||3===I||4===I?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:l,m:l,mm:l,h:l,hh:l,d:"dan",dd:l,M:"mjesec",MM:l,y:"godinu",yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},670:function(ft,Ie,C){!function(e){"use strict";var l="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function D(w,n,Z,ee){var re=w;switch(Z){case"s":return ee||n?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return re+(ee||n)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(ee||n?" perc":" perce");case"mm":return re+(ee||n?" perc":" perce");case"h":return"egy"+(ee||n?" \xf3ra":" \xf3r\xe1ja");case"hh":return re+(ee||n?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(ee||n?" nap":" napja");case"dd":return re+(ee||n?" nap":" napja");case"M":return"egy"+(ee||n?" h\xf3nap":" h\xf3napja");case"MM":return re+(ee||n?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(ee||n?" \xe9v":" \xe9ve");case"yy":return re+(ee||n?" \xe9v":" \xe9ve")}return""}function I(w){return(w?"":"[m\xfalt] ")+"["+l[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(w){return"u"===w.charAt(1).toLowerCase()},meridiem:function(w,n,Z){return w<12?!0===Z?"de":"DE":!0===Z?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return I.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return I.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4523:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(D){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(D)},meridiem:function(D){return D<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":D<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":D<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(D,I){switch(I){case"DDD":case"w":case"W":case"DDDo":return 1===D?D+"-\u056b\u0576":D+"-\u0580\u0564";default:return D}},week:{dow:1,doy:7}})}(C(6676))},9233:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"siang"===I?D>=11?D:D+12:"sore"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"siang":D<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(C(6676))},4693:function(ft,Ie,C){!function(e){"use strict";function l(S){return S%100==11||S%10!=1}function D(S,w,n,Z){var ee=S+" ";switch(n){case"s":return w||Z?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return l(S)?ee+(w||Z?"sek\xfandur":"sek\xfandum"):ee+"sek\xfanda";case"m":return w?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return l(S)?ee+(w||Z?"m\xedn\xfatur":"m\xedn\xfatum"):w?ee+"m\xedn\xfata":ee+"m\xedn\xfatu";case"hh":return l(S)?ee+(w||Z?"klukkustundir":"klukkustundum"):ee+"klukkustund";case"d":return w?"dagur":Z?"dag":"degi";case"dd":return l(S)?w?ee+"dagar":ee+(Z?"daga":"d\xf6gum"):w?ee+"dagur":ee+(Z?"dag":"degi");case"M":return w?"m\xe1nu\xf0ur":Z?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return l(S)?w?ee+"m\xe1nu\xf0ir":ee+(Z?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):w?ee+"m\xe1nu\xf0ur":ee+(Z?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return w||Z?"\xe1r":"\xe1ri";case"yy":return l(S)?ee+(w||Z?"\xe1r":"\xe1rum"):ee+(w||Z?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:D,ss:D,m:D,mm:D,h:"klukkustund",hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},8118:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(D){return(/^[0-9].+$/.test(D)?"tra":"in")+" "+D},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},3936:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},6871:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(D,I){return"\u5143"===I[1]?1:parseInt(I[1]||D,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(D){return"\u5348\u5f8c"===D},meridiem:function(D,I,S){return D<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(D){return D.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(D){return this.week()!==D.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(D,I){switch(I){case"y":return 1===D?"\u5143\u5e74":D+"\u5e74";case"d":case"D":case"DDD":return D+"\u65e5";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(C(6676))},8710:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(D,I){return 12===D&&(D=0),"enjing"===I?D:"siyang"===I?D>=11?D:D+12:"sonten"===I||"ndalu"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"enjing":D<15?"siyang":D<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(C(6676))},7125:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(D){return D.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(I,S,w){return"\u10d8"===w?S+"\u10e8\u10d8":S+w+"\u10e8\u10d8"})},past:function(D){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(D)?D.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(D)?D.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):D},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(D){return 0===D?D:1===D?D+"-\u10da\u10d8":D<20||D<=100&&D%20==0||D%100==0?"\u10db\u10d4-"+D:D+"-\u10d4"},week:{dow:1,doy:7}})}(C(6676))},2461:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},7399:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},D={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(S){return"\u179b\u17d2\u1784\u17b6\u1785"===S},meridiem:function(S,w,n){return S<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(S){return S.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},week:{dow:1,doy:4}})}(C(6676))},8720:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},D={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(S){return S.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===w?S<4?S:S+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===w?S:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===w?S>=10?S:S+12:"\u0cb8\u0c82\u0c9c\u0cc6"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":S<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":S<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":S<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(S){return S+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(C(6676))},5306:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\uc77c";case"M":return D+"\uc6d4";case"w":case"W":return D+"\uc8fc";default:return D}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(D){return"\uc624\ud6c4"===D},meridiem:function(D,I,S){return D<12?"\uc624\uc804":"\uc624\ud6c4"}})}(C(6676))},2995:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},D={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},I=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:I,monthsShort:I,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(w){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(w)},meridiem:function(w,n,Z){return w<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(w){return w.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(n){return D[n]}).replace(/\u060c/g,",")},postformat:function(w){return w.replace(/\d/g,function(n){return l[n]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(C(6676))},8779:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},2057:function(ft,Ie,C){!function(e){"use strict";function l(n,Z,ee,re){var ue={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return Z?ue[ee][0]:ue[ee][1]}function S(n){if(n=parseInt(n,10),isNaN(n))return!1;if(n<0)return!0;if(n<10)return 4<=n&&n<=7;if(n<100){var Z=n%10;return S(0===Z?n/10:Z)}if(n<1e4){for(;n>=10;)n/=10;return S(n)}return S(n/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function D(n){return S(n.substr(0,n.indexOf(" ")))?"a "+n:"an "+n},past:function I(n){return S(n.substr(0,n.indexOf(" ")))?"viru "+n:"virun "+n},s:"e puer Sekonnen",ss:"%d Sekonnen",m:l,mm:"%d Minutten",h:l,hh:"%d Stonnen",d:l,dd:"%d Deeg",M:l,MM:"%d M\xe9int",y:l,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7192:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(D){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===D},meridiem:function(D,I,S){return D<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(D){return"\u0e97\u0eb5\u0ec8"+D}})}(C(6676))},5430:function(ft,Ie,C){!function(e){"use strict";var l={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function I(ee,re,ue,se){return re?w(ue)[0]:se?w(ue)[1]:w(ue)[2]}function S(ee){return ee%10==0||ee>10&&ee<20}function w(ee){return l[ee].split("_")}function n(ee,re,ue,se){var te=ee+" ";return 1===ee?te+I(0,re,ue[0],se):re?te+(S(ee)?w(ue)[1]:w(ue)[0]):se?te+w(ue)[1]:te+(S(ee)?w(ue)[1]:w(ue)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function D(ee,re,ue,se){return re?"kelios sekund\u0117s":se?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:n,m:I,mm:n,h:I,hh:n,d:I,dd:n,M:I,MM:n,y:I,yy:n},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(ee){return ee+"-oji"},week:{dow:1,doy:4}})}(C(6676))},3363:function(ft,Ie,C){!function(e){"use strict";var l={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function D(Z,ee,re){return re?ee%10==1&&ee%100!=11?Z[2]:Z[3]:ee%10==1&&ee%100!=11?Z[0]:Z[1]}function I(Z,ee,re){return Z+" "+D(l[re],Z,ee)}function S(Z,ee,re){return D(l[re],Z,ee)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function w(Z,ee){return ee?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:I,m:S,mm:I,h:S,hh:I,d:S,dd:I,M:S,MM:I,y:S,yy:I},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2939:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(I,S){return 1===I?S[0]:I>=2&&I<=4?S[1]:S[2]},translate:function(I,S,w){var n=l.words[w];return 1===w.length?S?n[0]:n[1]:I+" "+l.correctGrammaticalCase(I,n)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:"dan",dd:l.translate,M:"mjesec",MM:l.translate,y:"godinu",yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},8212:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},9718:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(D){var I=D%10,S=D%100;return 0===D?D+"-\u0435\u0432":0===S?D+"-\u0435\u043d":S>10&&S<20?D+"-\u0442\u0438":1===I?D+"-\u0432\u0438":2===I?D+"-\u0440\u0438":7===I||8===I?D+"-\u043c\u0438":D+"-\u0442\u0438"},week:{dow:1,doy:7}})}(C(6676))},561:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(D,I){return 12===D&&(D=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===I&&D>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===I||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===I?D+12:D},meridiem:function(D,I,S){return D<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":D<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":D<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":D<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(C(6676))},8929:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){switch(w){case"s":return S?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return I+(S?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return I+(S?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return I+(S?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return I+(S?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return I+(S?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return I+(S?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return I}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(I){return"\u04ae\u0425"===I},meridiem:function(I,S,w){return I<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(I,S){switch(S){case"d":case"D":case"DDD":return I+" \u04e9\u0434\u04e9\u0440";default:return I}}})}(C(6676))},4880:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function I(w,n,Z,ee){var re="";if(n)switch(Z){case"s":re="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":re="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":re="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":re="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":re="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":re="%d \u0924\u093e\u0938";break;case"d":re="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":re="%d \u0926\u093f\u0935\u0938";break;case"M":re="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":re="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":re="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":re="%d \u0935\u0930\u094d\u0937\u0947"}else switch(Z){case"s":re="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":re="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":re="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":re="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":re="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":re="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":re="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":re="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":re="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":re="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":re="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":re="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return re.replace(/%d/i,w)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:I,ss:I,m:I,mm:I,h:I,hh:I,d:I,dd:I,M:I,MM:I,y:I,yy:I},preparse:function(w){return w.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(n){return D[n]})},postformat:function(w){return w.replace(/\d/g,function(n){return l[n]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(w,n){return 12===w&&(w=0),"\u092a\u0939\u093e\u091f\u0947"===n||"\u0938\u0915\u093e\u0933\u0940"===n?w:"\u0926\u0941\u092a\u093e\u0930\u0940"===n||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===n||"\u0930\u093e\u0924\u094d\u0930\u0940"===n?w>=12?w:w+12:void 0},meridiem:function(w,n,Z){return w>=0&&w<6?"\u092a\u0939\u093e\u091f\u0947":w<12?"\u0938\u0915\u093e\u0933\u0940":w<17?"\u0926\u0941\u092a\u093e\u0930\u0940":w<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(C(6676))},2074:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"tengahari"===I?D>=11?D:D+12:"petang"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(C(6676))},3193:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(D,I){return 12===D&&(D=0),"pagi"===I?D:"tengahari"===I?D>=11?D:D+12:"petang"===I||"malam"===I?D+12:void 0},meridiem:function(D,I,S){return D<11?"pagi":D<15?"tengahari":D<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(C(6676))},4082:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},2261:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},D={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(S){return S.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},week:{dow:1,doy:4}})}(C(6676))},5273:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9874:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},D={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(S){return S.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0930\u093e\u0924\u093f"===w?S<4?S:S+12:"\u092c\u093f\u0939\u093e\u0928"===w?S:"\u0926\u093f\u0909\u0901\u0938\u094b"===w?S>=10?S:S+12:"\u0938\u093e\u0901\u091d"===w?S+12:void 0},meridiem:function(S,w,n){return S<3?"\u0930\u093e\u0924\u093f":S<12?"\u092c\u093f\u0939\u093e\u0928":S<16?"\u0926\u093f\u0909\u0901\u0938\u094b":S<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(C(6676))},1484:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),I=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},1667:function(ft,Ie,C){!function(e){"use strict";var l="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),D="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),I=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],S=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(n,Z){return n?/-MMM-/.test(Z)?D[n.month()]:l[n.month()]:l},monthsRegex:S,monthsShortRegex:S,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?"ste":"de")},week:{dow:1,doy:4}})}(C(6676))},7262:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},9679:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(D,I){var S=1===D?"r":2===D?"n":3===D?"r":4===D?"t":"\xe8";return("w"===I||"W"===I)&&(S="a"),D+S},week:{dow:1,doy:4}})}(C(6676))},6830:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},D={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(S){return S.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(S,w){return 12===S&&(S=0),"\u0a30\u0a3e\u0a24"===w?S<4?S:S+12:"\u0a38\u0a35\u0a47\u0a30"===w?S:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===w?S>=10?S:S+12:"\u0a38\u0a3c\u0a3e\u0a2e"===w?S+12:void 0},meridiem:function(S,w,n){return S<4?"\u0a30\u0a3e\u0a24":S<10?"\u0a38\u0a35\u0a47\u0a30":S<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":S<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(C(6676))},3616:function(ft,Ie,C){!function(e){"use strict";var l="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),D="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),I=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function S(Z){return Z%10<5&&Z%10>1&&~~(Z/10)%10!=1}function w(Z,ee,re){var ue=Z+" ";switch(re){case"ss":return ue+(S(Z)?"sekundy":"sekund");case"m":return ee?"minuta":"minut\u0119";case"mm":return ue+(S(Z)?"minuty":"minut");case"h":return ee?"godzina":"godzin\u0119";case"hh":return ue+(S(Z)?"godziny":"godzin");case"ww":return ue+(S(Z)?"tygodnie":"tygodni");case"MM":return ue+(S(Z)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return ue+(S(Z)?"lata":"lat")}}e.defineLocale("pl",{months:function(Z,ee){return Z?/D MMMM/.test(ee)?D[Z.month()]:l[Z.month()]:l},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:I,longMonthsParse:I,shortMonthsParse:I,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:w,m:w,mm:w,h:w,hh:w,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:w,M:"miesi\u0105c",MM:w,y:"rok",yy:w},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},2751:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(C(6676))},5138:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(C(6676))},7968:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w){var Z=" ";return(I%100>=20||I>=100&&I%100==0)&&(Z=" de "),I+Z+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[w]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:l,m:"un minut",mm:l,h:"o or\u0103",hh:l,d:"o zi",dd:l,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:l,M:"o lun\u0103",MM:l,y:"un an",yy:l},week:{dow:1,doy:7}})}(C(6676))},1828:function(ft,Ie,C){!function(e){"use strict";function D(w,n,Z){return"m"===Z?n?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":w+" "+function l(w,n){var Z=w.split("_");return n%10==1&&n%100!=11?Z[0]:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?Z[1]:Z[2]}({ss:n?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:n?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[Z],+w)}var I=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:I,longMonthsParse:I,shortMonthsParse:I,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(w){if(w.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(w){if(w.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0447\u0430\u0441",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:D,M:"\u043c\u0435\u0441\u044f\u0446",MM:D,y:"\u0433\u043e\u0434",yy:D},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(w){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(w)},meridiem:function(w,n,Z){return w<4?"\u043d\u043e\u0447\u0438":w<12?"\u0443\u0442\u0440\u0430":w<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(w,n){switch(n){case"M":case"d":case"DDD":return w+"-\u0439";case"D":return w+"-\u0433\u043e";case"w":case"W":return w+"-\u044f";default:return w}},week:{dow:1,doy:4}})}(C(6676))},2188:function(ft,Ie,C){!function(e){"use strict";var l=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],D=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(C(6676))},6562:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7172:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(D){return D+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(D){return"\u0db4.\u0dc0."===D||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===D},meridiem:function(D,I,S){return D>11?S?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":S?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(C(6676))},9966:function(ft,Ie,C){!function(e){"use strict";var l="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),D="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function I(n){return n>1&&n<5}function S(n,Z,ee,re){var ue=n+" ";switch(ee){case"s":return Z||re?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return Z||re?ue+(I(n)?"sekundy":"sek\xfand"):ue+"sekundami";case"m":return Z?"min\xfata":re?"min\xfatu":"min\xfatou";case"mm":return Z||re?ue+(I(n)?"min\xfaty":"min\xfat"):ue+"min\xfatami";case"h":return Z?"hodina":re?"hodinu":"hodinou";case"hh":return Z||re?ue+(I(n)?"hodiny":"hod\xedn"):ue+"hodinami";case"d":return Z||re?"de\u0148":"d\u0148om";case"dd":return Z||re?ue+(I(n)?"dni":"dn\xed"):ue+"d\u0148ami";case"M":return Z||re?"mesiac":"mesiacom";case"MM":return Z||re?ue+(I(n)?"mesiace":"mesiacov"):ue+"mesiacmi";case"y":return Z||re?"rok":"rokom";case"yy":return Z||re?ue+(I(n)?"roky":"rokov"):ue+"rokmi"}}e.defineLocale("sk",{months:l,monthsShort:D,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:S,ss:S,m:S,mm:S,h:S,hh:S,d:S,dd:S,M:S,MM:S,y:S,yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7520:function(ft,Ie,C){!function(e){"use strict";function l(I,S,w,n){var Z=I+" ";switch(w){case"s":return S||n?"nekaj sekund":"nekaj sekundami";case"ss":return Z+(1===I?S?"sekundo":"sekundi":2===I?S||n?"sekundi":"sekundah":I<5?S||n?"sekunde":"sekundah":"sekund");case"m":return S?"ena minuta":"eno minuto";case"mm":return Z+(1===I?S?"minuta":"minuto":2===I?S||n?"minuti":"minutama":I<5?S||n?"minute":"minutami":S||n?"minut":"minutami");case"h":return S?"ena ura":"eno uro";case"hh":return Z+(1===I?S?"ura":"uro":2===I?S||n?"uri":"urama":I<5?S||n?"ure":"urami":S||n?"ur":"urami");case"d":return S||n?"en dan":"enim dnem";case"dd":return Z+(1===I?S||n?"dan":"dnem":2===I?S||n?"dni":"dnevoma":S||n?"dni":"dnevi");case"M":return S||n?"en mesec":"enim mesecem";case"MM":return Z+(1===I?S||n?"mesec":"mesecem":2===I?S||n?"meseca":"mesecema":I<5?S||n?"mesece":"meseci":S||n?"mesecev":"meseci");case"y":return S||n?"eno leto":"enim letom";case"yy":return Z+(1===I?S||n?"leto":"letom":2===I?S||n?"leti":"letoma":I<5?S||n?"leta":"leti":S||n?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:l,ss:l,m:l,mm:l,h:l,hh:l,d:l,dd:l,M:l,MM:l,y:l,yy:l},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},5291:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(D){return"M"===D.charAt(0)},meridiem:function(D,I,S){return D<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},7603:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(I,S){return I%10>=1&&I%10<=4&&(I%100<10||I%100>=20)?I%10==1?S[0]:S[1]:S[2]},translate:function(I,S,w,n){var ee,Z=l.words[w];return 1===w.length?"y"===w&&S?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":n||S?Z[0]:Z[1]:(ee=l.correctGrammaticalCase(I,Z),"yy"===w&&S&&"\u0433\u043e\u0434\u0438\u043d\u0443"===ee?I+" \u0433\u043e\u0434\u0438\u043d\u0430":I+" "+ee)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:l.translate,dd:l.translate,M:l.translate,MM:l.translate,y:l.translate,yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},450:function(ft,Ie,C){!function(e){"use strict";var l={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(I,S){return I%10>=1&&I%10<=4&&(I%100<10||I%100>=20)?I%10==1?S[0]:S[1]:S[2]},translate:function(I,S,w,n){var ee,Z=l.words[w];return 1===w.length?"y"===w&&S?"jedna godina":n||S?Z[0]:Z[1]:(ee=l.correctGrammaticalCase(I,Z),"yy"===w&&S&&"godinu"===ee?I+" godina":I+" "+ee)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:l.translate,m:l.translate,mm:l.translate,h:l.translate,hh:l.translate,d:l.translate,dd:l.translate,M:l.translate,MM:l.translate,y:l.translate,yy:l.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(C(6676))},383:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(D,I,S){return D<11?"ekuseni":D<15?"emini":D<19?"entsambama":"ebusuku"},meridiemHour:function(D,I){return 12===D&&(D=0),"ekuseni"===I?D:"emini"===I?D>=11?D:D+12:"entsambama"===I||"ebusuku"===I?0===D?0:D+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(C(6676))},7221:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?":e":1===I||2===I?":a":":e")},week:{dow:1,doy:4}})}(C(6676))},1743:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(C(6676))},6351:function(ft,Ie,C){!function(e){"use strict";var l={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},D={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(S){return S+"\u0bb5\u0ba4\u0bc1"},preparse:function(S){return S.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(w){return D[w]})},postformat:function(S){return S.replace(/\d/g,function(w){return l[w]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(S,w,n){return S<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":S<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":S<10?" \u0b95\u0bbe\u0bb2\u0bc8":S<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":S<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":S<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(S,w){return 12===S&&(S=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===w?S<2?S:S+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===w||"\u0b95\u0bbe\u0bb2\u0bc8"===w||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===w&&S>=10?S:S+12},week:{dow:0,doy:6}})}(C(6676))},9620:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===I?D<4?D:D+12:"\u0c09\u0c26\u0c2f\u0c02"===I?D:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===I?D>=10?D:D+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===I?D+12:void 0},meridiem:function(D,I,S){return D<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":D<10?"\u0c09\u0c26\u0c2f\u0c02":D<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":D<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(C(6676))},6278:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6987:function(ft,Ie,C){!function(e){"use strict";var l={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(I,S){return 12===I&&(I=0),"\u0448\u0430\u0431"===S?I<4?I:I+12:"\u0441\u0443\u0431\u04b3"===S?I:"\u0440\u04ef\u0437"===S?I>=11?I:I+12:"\u0431\u0435\u0433\u043e\u04b3"===S?I+12:void 0},meridiem:function(I,S,w){return I<4?"\u0448\u0430\u0431":I<11?"\u0441\u0443\u0431\u04b3":I<16?"\u0440\u04ef\u0437":I<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(I){return I+(l[I]||l[I%10]||l[I>=100?100:null])},week:{dow:1,doy:7}})}(C(6676))},9325:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(D){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===D},meridiem:function(D,I,S){return D<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(C(6676))},3485:function(ft,Ie,C){!function(e){"use strict";var l={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(I,S){switch(S){case"d":case"D":case"Do":case"DD":return I;default:if(0===I)return I+"'unjy";var w=I%10;return I+(l[w]||l[I%100-w]||l[I>=100?100:null])}},week:{dow:1,doy:7}})}(C(6676))},8148:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},9616:function(ft,Ie,C){!function(e){"use strict";var l="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function S(Z,ee,re,ue){var se=function w(Z){var ee=Math.floor(Z%1e3/100),re=Math.floor(Z%100/10),ue=Z%10,se="";return ee>0&&(se+=l[ee]+"vatlh"),re>0&&(se+=(""!==se?" ":"")+l[re]+"maH"),ue>0&&(se+=(""!==se?" ":"")+l[ue]),""===se?"pagh":se}(Z);switch(re){case"ss":return se+" lup";case"mm":return se+" tup";case"hh":return se+" rep";case"dd":return se+" jaj";case"MM":return se+" jar";case"yy":return se+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function D(Z){var ee=Z;return-1!==Z.indexOf("jaj")?ee.slice(0,-3)+"leS":-1!==Z.indexOf("jar")?ee.slice(0,-3)+"waQ":-1!==Z.indexOf("DIS")?ee.slice(0,-3)+"nem":ee+" pIq"},past:function I(Z){var ee=Z;return-1!==Z.indexOf("jaj")?ee.slice(0,-3)+"Hu\u2019":-1!==Z.indexOf("jar")?ee.slice(0,-3)+"wen":-1!==Z.indexOf("DIS")?ee.slice(0,-3)+"ben":ee+" ret"},s:"puS lup",ss:S,m:"wa\u2019 tup",mm:S,h:"wa\u2019 rep",hh:S,d:"wa\u2019 jaj",dd:S,M:"wa\u2019 jar",MM:S,y:"wa\u2019 DIS",yy:S},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},4040:function(ft,Ie,C){!function(e){"use strict";var l={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(I,S,w){return I<12?w?"\xf6\xf6":"\xd6\xd6":w?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(I){return"\xf6s"===I||"\xd6S"===I},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(I,S){switch(S){case"d":case"D":case"Do":case"DD":return I;default:if(0===I)return I+"'\u0131nc\u0131";var w=I%10;return I+(l[w]||l[I%100-w]||l[I>=100?100:null])}},week:{dow:1,doy:7}})}(C(6676))},594:function(ft,Ie,C){!function(e){"use strict";function D(I,S,w,n){var Z={s:["viensas secunds","'iensas secunds"],ss:[I+" secunds",I+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[I+" m\xeduts",I+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[I+" \xfeoras",I+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[I+" ziuas",I+" ziuas"],M:["'n mes","'iens mes"],MM:[I+" mesen",I+" mesen"],y:["'n ar","'iens ar"],yy:[I+" ars",I+" ars"]};return n||S?Z[w][0]:Z[w][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(I){return"d'o"===I.toLowerCase()},meridiem:function(I,S,w){return I>11?w?"d'o":"D'O":w?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:D,ss:D,m:D,mm:D,h:D,hh:D,d:D,dd:D,M:D,MM:D,y:D,yy:D},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(C(6676))},3226:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(C(6676))},673:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(C(6676))},9580:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===I||"\u0633\u06d5\u06be\u06d5\u0631"===I||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===I?D:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===I||"\u0643\u06d5\u0686"===I?D+12:D>=11?D:D+12},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":w<900?"\u0633\u06d5\u06be\u06d5\u0631":w<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":w<1230?"\u0686\u06c8\u0634":w<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return D+"-\u06be\u06d5\u067e\u062a\u06d5";default:return D}},preparse:function(D){return D.replace(/\u060c/g,",")},postformat:function(D){return D.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(C(6676))},7270:function(ft,Ie,C){!function(e){"use strict";function D(n,Z,ee){return"m"===ee?Z?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===ee?Z?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":n+" "+function l(n,Z){var ee=n.split("_");return Z%10==1&&Z%100!=11?ee[0]:Z%10>=2&&Z%10<=4&&(Z%100<10||Z%100>=20)?ee[1]:ee[2]}({ss:Z?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:Z?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:Z?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[ee],+n)}function S(n){return function(){return n+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function I(n,Z){var ee={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===n?ee.nominative.slice(1,7).concat(ee.nominative.slice(0,1)):n?ee[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(Z)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(Z)?"genitive":"nominative"][n.day()]:ee.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:S("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:S("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:S("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:S("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return S("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:D,m:D,mm:D,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:D,d:"\u0434\u0435\u043d\u044c",dd:D,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:D,y:"\u0440\u0456\u043a",yy:D},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(n){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(n)},meridiem:function(n,Z,ee){return n<4?"\u043d\u043e\u0447\u0456":n<12?"\u0440\u0430\u043d\u043a\u0443":n<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(n,Z){switch(Z){case"M":case"d":case"DDD":case"w":case"W":return n+"-\u0439";case"D":return n+"-\u0433\u043e";default:return n}},week:{dow:1,doy:7}})}(C(6676))},1656:function(ft,Ie,C){!function(e){"use strict";var l=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],D=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];e.defineLocale("ur",{months:l,monthsShort:l,weekdays:D,weekdaysShort:D,weekdaysMin:D,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(S){return"\u0634\u0627\u0645"===S},meridiem:function(S,w,n){return S<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(S){return S.replace(/\u060c/g,",")},postformat:function(S){return S.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(C(6676))},8744:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(C(6676))},8364:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(C(6676))},5049:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(D){return/^ch$/i.test(D)},meridiem:function(D,I,S){return D<12?S?"sa":"SA":S?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(D){return D},week:{dow:1,doy:4}})}(C(6676))},5106:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(D){var I=D%10;return D+(1==~~(D%100/10)?"th":1===I?"st":2===I?"nd":3===I?"rd":"th")},week:{dow:1,doy:4}})}(C(6676))},6199:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(C(6676))},7280:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:D>=11?D:D+12},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(D){return D.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(D){return this.week()!==D.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u5468";default:return D}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(C(6676))},6860:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1200?"\u4e0a\u5348":1200===w?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},2335:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},482:function(ft,Ie,C){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\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".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(D,I){return 12===D&&(D=0),"\u51cc\u6668"===I||"\u65e9\u4e0a"===I||"\u4e0a\u5348"===I?D:"\u4e2d\u5348"===I?D>=11?D:D+12:"\u4e0b\u5348"===I||"\u665a\u4e0a"===I?D+12:void 0},meridiem:function(D,I,S){var w=100*D+I;return w<600?"\u51cc\u6668":w<900?"\u65e9\u4e0a":w<1130?"\u4e0a\u5348":w<1230?"\u4e2d\u5348":w<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(D,I){switch(I){case"d":case"D":case"DDD":return D+"\u65e5";case"M":return D+"\u6708";case"w":case"W":return D+"\u9031";default:return D}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(C(6676))},6676:function(ft,Ie,C){(ft=C.nmd(ft)).exports=function(){"use strict";var e,_e;function l(){return e.apply(null,arguments)}function I(k){return k instanceof Array||"[object Array]"===Object.prototype.toString.call(k)}function S(k){return null!=k&&"[object Object]"===Object.prototype.toString.call(k)}function w(k,j){return Object.prototype.hasOwnProperty.call(k,j)}function n(k){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(k).length;var j;for(j in k)if(w(k,j))return!1;return!0}function Z(k){return void 0===k}function ee(k){return"number"==typeof k||"[object Number]"===Object.prototype.toString.call(k)}function re(k){return k instanceof Date||"[object Date]"===Object.prototype.toString.call(k)}function ue(k,j){var ke,pe=[],nt=k.length;for(ke=0;ke>>0;for(ke=0;ke0)for(pe=0;pe=0?pe?"+":"":"-")+Math.pow(10,Math.max(0,j-ke.length)).toString().substr(1)+ke}var dt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,at=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Be={},Ee={};function $e(k,j,pe,ke){var nt=ke;"string"==typeof ke&&(nt=function(){return this[ke]()}),k&&(Ee[k]=nt),j&&(Ee[j[0]]=function(){return Rn(nt.apply(this,arguments),j[1],j[2])}),pe&&(Ee[pe]=function(){return this.localeData().ordinal(nt.apply(this,arguments),k)})}function me(k){return k.match(/\[[\s\S]/)?k.replace(/^\[|\]$/g,""):k.replace(/\\/g,"")}function he(k,j){return k.isValid()?(j=Ze(j,k.localeData()),Be[j]=Be[j]||function tt(k){var pe,ke,j=k.match(dt);for(pe=0,ke=j.length;pe=0&&at.test(k);)k=k.replace(at,ke),at.lastIndex=0,pe-=1;return k}var Wn={};function Ve(k,j){var pe=k.toLowerCase();Wn[pe]=Wn[pe+"s"]=Wn[j]=k}function ct(k){return"string"==typeof k?Wn[k]||Wn[k.toLowerCase()]:void 0}function Ct(k){var pe,ke,j={};for(ke in k)w(k,ke)&&(pe=ct(ke))&&(j[pe]=k[ke]);return j}var Ce={};function J(k,j){Ce[k]=j}function Oe(k){return k%4==0&&k%100!=0||k%400==0}function ot(k){return k<0?Math.ceil(k)||0:Math.floor(k)}function Se(k){var j=+k,pe=0;return 0!==j&&isFinite(j)&&(pe=ot(j)),pe}function Ft(k,j){return function(pe){return null!=pe?(Bt(this,k,pe),l.updateOffset(this,j),this):lt(this,k)}}function lt(k,j){return k.isValid()?k._d["get"+(k._isUTC?"UTC":"")+j]():NaN}function Bt(k,j,pe){k.isValid()&&!isNaN(pe)&&("FullYear"===j&&Oe(k.year())&&1===k.month()&&29===k.date()?(pe=Se(pe),k._d["set"+(k._isUTC?"UTC":"")+j](pe,k.month(),Kr(pe,k.month()))):k._d["set"+(k._isUTC?"UTC":"")+j](pe))}var Te,gn=/\d/,An=/\d\d/,jn=/\d{3}/,ai=/\d{4}/,di=/[+-]?\d{6}/,oi=/\d\d?/,Jn=/\d\d\d\d?/,qt=/\d\d\d\d\d\d?/,_t=/\d{1,3}/,G=/\d{1,4}/,U=/[+-]?\d{1,6}/,ve=/\d+/,Pe=/[+-]?\d+/,ut=/Z|[+-]\d\d:?\d\d/gi,We=/Z|[+-]\d\d(?::?\d\d)?/gi,be=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function He(k,j,pe){Te[k]=Jt(j)?j:function(ke,nt){return ke&&pe?pe:j}}function Wt(k,j){return w(Te,k)?Te[k](j._strict,j._locale):new RegExp(function Pn(k){return wt(k.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(j,pe,ke,nt,Kt){return pe||ke||nt||Kt}))}(k))}function wt(k){return k.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Te={};var Yt={};function fe(k,j){var pe,nt,ke=j;for("string"==typeof k&&(k=[k]),ee(j)&&(ke=function(Kt,xn){xn[j]=Se(Kt)}),nt=k.length,pe=0;pe68?1900:2e3)};var Gs=Ft("FullYear",!0);function xl(k,j,pe,ke,nt,Kt,xn){var Mi;return k<100&&k>=0?(Mi=new Date(k+400,j,pe,ke,nt,Kt,xn),isFinite(Mi.getFullYear())&&Mi.setFullYear(k)):Mi=new Date(k,j,pe,ke,nt,Kt,xn),Mi}function So(k){var j,pe;return k<100&&k>=0?((pe=Array.prototype.slice.call(arguments))[0]=k+400,j=new Date(Date.UTC.apply(null,pe)),isFinite(j.getUTCFullYear())&&j.setUTCFullYear(k)):j=new Date(Date.UTC.apply(null,arguments)),j}function Ws(k,j,pe){var ke=7+j-pe;return-(7+So(k,0,ke).getUTCDay()-j)%7+ke-1}function Ds(k,j,pe,ke,nt){var Oi,Hr,Mi=1+7*(j-1)+(7+pe-ke)%7+Ws(k,ke,nt);return Mi<=0?Hr=yr(Oi=k-1)+Mi:Mi>yr(k)?(Oi=k+1,Hr=Mi-yr(k)):(Oi=k,Hr=Mi),{year:Oi,dayOfYear:Hr}}function $s(k,j,pe){var Kt,xn,ke=Ws(k.year(),j,pe),nt=Math.floor((k.dayOfYear()-ke-1)/7)+1;return nt<1?Kt=nt+Uo(xn=k.year()-1,j,pe):nt>Uo(k.year(),j,pe)?(Kt=nt-Uo(k.year(),j,pe),xn=k.year()+1):(xn=k.year(),Kt=nt),{week:Kt,year:xn}}function Uo(k,j,pe){var ke=Ws(k,j,pe),nt=Ws(k+1,j,pe);return(yr(k)-ke+nt)/7}$e("w",["ww",2],"wo","week"),$e("W",["WW",2],"Wo","isoWeek"),Ve("week","w"),Ve("isoWeek","W"),J("week",5),J("isoWeek",5),He("w",oi),He("ww",oi,An),He("W",oi),He("WW",oi,An),Mt(["w","ww","W","WW"],function(k,j,pe,ke){j[ke.substr(0,1)]=Se(k)});function Ks(k,j){return k.slice(j,7).concat(k.slice(0,j))}$e("d",0,"do","day"),$e("dd",0,0,function(k){return this.localeData().weekdaysMin(this,k)}),$e("ddd",0,0,function(k){return this.localeData().weekdaysShort(this,k)}),$e("dddd",0,0,function(k){return this.localeData().weekdays(this,k)}),$e("e",0,0,"weekday"),$e("E",0,0,"isoWeekday"),Ve("day","d"),Ve("weekday","e"),Ve("isoWeekday","E"),J("day",11),J("weekday",11),J("isoWeekday",11),He("d",oi),He("e",oi),He("E",oi),He("dd",function(k,j){return j.weekdaysMinRegex(k)}),He("ddd",function(k,j){return j.weekdaysShortRegex(k)}),He("dddd",function(k,j){return j.weekdaysRegex(k)}),Mt(["dd","ddd","dddd"],function(k,j,pe,ke){var nt=pe._locale.weekdaysParse(k,ke,pe._strict);null!=nt?j.d=nt:ce(pe).invalidWeekday=k}),Mt(["d","e","E"],function(k,j,pe,ke){j[ke]=Se(k)});var Aa="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Li="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Yr=be,dr=be,Ha=be;function Es(k,j,pe){var ke,nt,Kt,xn=k.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ke=0;ke<7;++ke)Kt=te([2e3,1]).day(ke),this._minWeekdaysParse[ke]=this.weekdaysMin(Kt,"").toLocaleLowerCase(),this._shortWeekdaysParse[ke]=this.weekdaysShort(Kt,"").toLocaleLowerCase(),this._weekdaysParse[ke]=this.weekdays(Kt,"").toLocaleLowerCase();return pe?"dddd"===j?-1!==(nt=ki.call(this._weekdaysParse,xn))?nt:null:"ddd"===j?-1!==(nt=ki.call(this._shortWeekdaysParse,xn))?nt:null:-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:"dddd"===j?-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._shortWeekdaysParse,xn))||-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:"ddd"===j?-1!==(nt=ki.call(this._shortWeekdaysParse,xn))||-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._minWeekdaysParse,xn))?nt:null:-1!==(nt=ki.call(this._minWeekdaysParse,xn))||-1!==(nt=ki.call(this._weekdaysParse,xn))||-1!==(nt=ki.call(this._shortWeekdaysParse,xn))?nt:null}function jo(){function k(ws,tl){return tl.length-ws.length}var Kt,xn,Mi,Oi,Hr,j=[],pe=[],ke=[],nt=[];for(Kt=0;Kt<7;Kt++)xn=te([2e3,1]).day(Kt),Mi=wt(this.weekdaysMin(xn,"")),Oi=wt(this.weekdaysShort(xn,"")),Hr=wt(this.weekdays(xn,"")),j.push(Mi),pe.push(Oi),ke.push(Hr),nt.push(Mi),nt.push(Oi),nt.push(Hr);j.sort(k),pe.sort(k),ke.sort(k),nt.sort(k),this._weekdaysRegex=new RegExp("^("+nt.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ke.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+pe.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+j.join("|")+")","i")}function no(){return this.hours()%12||12}function nr(k,j){$e(k,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),j)})}function ps(k,j){return j._meridiemParse}$e("H",["HH",2],0,"hour"),$e("h",["hh",2],0,no),$e("k",["kk",2],0,function Ao(){return this.hours()||24}),$e("hmm",0,0,function(){return""+no.apply(this)+Rn(this.minutes(),2)}),$e("hmmss",0,0,function(){return""+no.apply(this)+Rn(this.minutes(),2)+Rn(this.seconds(),2)}),$e("Hmm",0,0,function(){return""+this.hours()+Rn(this.minutes(),2)}),$e("Hmmss",0,0,function(){return""+this.hours()+Rn(this.minutes(),2)+Rn(this.seconds(),2)}),nr("a",!0),nr("A",!1),Ve("hour","h"),J("hour",13),He("a",ps),He("A",ps),He("H",oi),He("h",oi),He("k",oi),He("HH",oi,An),He("hh",oi,An),He("kk",oi,An),He("hmm",Jn),He("hmmss",qt),He("Hmm",Jn),He("Hmmss",qt),fe(["H","HH"],cn),fe(["k","kk"],function(k,j,pe){var ke=Se(k);j[cn]=24===ke?0:ke}),fe(["a","A"],function(k,j,pe){pe._isPm=pe._locale.isPM(k),pe._meridiem=k}),fe(["h","hh"],function(k,j,pe){j[cn]=Se(k),ce(pe).bigHour=!0}),fe("hmm",function(k,j,pe){var ke=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke)),ce(pe).bigHour=!0}),fe("hmmss",function(k,j,pe){var ke=k.length-4,nt=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke,2)),j[En]=Se(k.substr(nt)),ce(pe).bigHour=!0}),fe("Hmm",function(k,j,pe){var ke=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke))}),fe("Hmmss",function(k,j,pe){var ke=k.length-4,nt=k.length-2;j[cn]=Se(k.substr(0,ke)),j[_n]=Se(k.substr(ke,2)),j[En]=Se(k.substr(nt))});var qs=Ft("Hours",!0);var Ko,Qs={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:vr,monthsShort:Bi,week:{dow:0,doy:6},weekdays:Aa,weekdaysMin:Li,weekdaysShort:qi,meridiemParse:/[ap]\.?m?\.?/i},wi={},Oo={};function or(k,j){var pe,ke=Math.min(k.length,j.length);for(pe=0;pe0;){if(nt=jr(Kt.slice(0,pe).join("-")))return nt;if(ke&&ke.length>=pe&&or(Kt,ke)>=pe-1)break;pe--}j++}return Ko}(k)}function Ys(k){var j,pe=k._a;return pe&&-2===ce(k).overflow&&(j=pe[st]<0||pe[st]>11?st:pe[It]<1||pe[It]>Kr(pe[ht],pe[st])?It:pe[cn]<0||pe[cn]>24||24===pe[cn]&&(0!==pe[_n]||0!==pe[En]||0!==pe[On])?cn:pe[_n]<0||pe[_n]>59?_n:pe[En]<0||pe[En]>59?En:pe[On]<0||pe[On]>999?On:-1,ce(k)._overflowDayOfYear&&(jIt)&&(j=It),ce(k)._overflowWeeks&&-1===j&&(j=ni),ce(k)._overflowWeekday&&-1===j&&(j=Vn),ce(k).overflow=j),k}var fo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Zr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ms=/Z|[+-]\d\d(?::?\d\d)?/,Co=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Br=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ea=/^\/?Date\((-?\d+)/i,po=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,io={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qo(k){var j,pe,Kt,xn,Mi,Oi,ke=k._i,nt=fo.exec(ke)||Zr.exec(ke),Hr=Co.length,ws=Br.length;if(nt){for(ce(k).iso=!0,j=0,pe=Hr;j7)&&(Oi=!0)):(Kt=k._locale._week.dow,xn=k._locale._week.doy,Hr=$s(Lr(),Kt,xn),pe=na(j.gg,k._a[ht],Hr.year),ke=na(j.w,Hr.week),null!=j.d?((nt=j.d)<0||nt>6)&&(Oi=!0):null!=j.e?(nt=j.e+Kt,(j.e<0||j.e>6)&&(Oi=!0)):nt=Kt),ke<1||ke>Uo(pe,Kt,xn)?ce(k)._overflowWeeks=!0:null!=Oi?ce(k)._overflowWeekday=!0:(Mi=Ds(pe,ke,nt,Kt,xn),k._a[ht]=Mi.year,k._dayOfYear=Mi.dayOfYear)}(k),null!=k._dayOfYear&&(xn=na(k._a[ht],nt[ht]),(k._dayOfYear>yr(xn)||0===k._dayOfYear)&&(ce(k)._overflowDayOfYear=!0),pe=So(xn,0,k._dayOfYear),k._a[st]=pe.getUTCMonth(),k._a[It]=pe.getUTCDate()),j=0;j<3&&null==k._a[j];++j)k._a[j]=ke[j]=nt[j];for(;j<7;j++)k._a[j]=ke[j]=null==k._a[j]?2===j?1:0:k._a[j];24===k._a[cn]&&0===k._a[_n]&&0===k._a[En]&&0===k._a[On]&&(k._nextDay=!0,k._a[cn]=0),k._d=(k._useUTC?So:xl).apply(null,ke),Kt=k._useUTC?k._d.getUTCDay():k._d.getDay(),null!=k._tzm&&k._d.setUTCMinutes(k._d.getUTCMinutes()-k._tzm),k._nextDay&&(k._a[cn]=24),k._w&&typeof k._w.d<"u"&&k._w.d!==Kt&&(ce(k).weekdayMismatch=!0)}}function Qe(k){if(k._f!==l.ISO_8601)if(k._f!==l.RFC_2822){k._a=[],ce(k).empty=!0;var pe,ke,nt,Kt,xn,Hr,ws,j=""+k._i,Mi=j.length,Oi=0;for(ws=(nt=Ze(k._f,k._locale).match(dt)||[]).length,pe=0;pe0&&ce(k).unusedInput.push(xn),j=j.slice(j.indexOf(ke)+ke.length),Oi+=ke.length),Ee[Kt]?(ke?ce(k).empty=!1:ce(k).unusedTokens.push(Kt),Vt(Kt,ke,k)):k._strict&&!ke&&ce(k).unusedTokens.push(Kt);ce(k).charsLeftOver=Mi-Oi,j.length>0&&ce(k).unusedInput.push(j),k._a[cn]<=12&&!0===ce(k).bigHour&&k._a[cn]>0&&(ce(k).bigHour=void 0),ce(k).parsedDateParts=k._a.slice(0),ce(k).meridiem=k._meridiem,k._a[cn]=function Ht(k,j,pe){var ke;return null==pe?j:null!=k.meridiemHour?k.meridiemHour(j,pe):(null!=k.isPM&&((ke=k.isPM(pe))&&j<12&&(j+=12),!ke&&12===j&&(j=0)),j)}(k._locale,k._a[cn],k._meridiem),null!==(Hr=ce(k).era)&&(k._a[ht]=k._locale.erasConvertYear(Hr,k._a[ht])),Fe(k),Ys(k)}else Ia(k);else qo(k)}function Cl(k){var j=k._i,pe=k._f;return k._locale=k._locale||Jo(k._l),null===j||void 0===pe&&""===j?mt({nullInput:!0}):("string"==typeof j&&(k._i=j=k._locale.preparse(j)),xt(j)?new Tt(Ys(j)):(re(j)?k._d=j:I(pe)?function Qn(k){var j,pe,ke,nt,Kt,xn,Mi=!1,Oi=k._f.length;if(0===Oi)return ce(k).invalidFormat=!0,void(k._d=new Date(NaN));for(nt=0;ntthis?this:k:mt()});function Qo(k,j){var pe,ke;if(1===j.length&&I(j[0])&&(j=j[0]),!j.length)return Lr();for(pe=j[0],ke=1;ke=0?new Date(k+400,j,pe)-dl:new Date(k,j,pe).valueOf()}function ul(k,j,pe){return k<100&&k>=0?Date.UTC(k+400,j,pe)-dl:Date.UTC(k,j,pe)}function Fi(k,j){return j.erasAbbrRegex(k)}function so(){var nt,Kt,k=[],j=[],pe=[],ke=[],xn=this.eras();for(nt=0,Kt=xn.length;nt(Kt=Uo(k,ke,nt))&&(j=Kt),ka.call(this,k,j,pe,ke,nt))}function ka(k,j,pe,ke,nt){var Kt=Ds(k,j,pe,ke,nt),xn=So(Kt.year,0,Kt.dayOfYear);return this.year(xn.getUTCFullYear()),this.month(xn.getUTCMonth()),this.date(xn.getUTCDate()),this}$e("N",0,0,"eraAbbr"),$e("NN",0,0,"eraAbbr"),$e("NNN",0,0,"eraAbbr"),$e("NNNN",0,0,"eraName"),$e("NNNNN",0,0,"eraNarrow"),$e("y",["y",1],"yo","eraYear"),$e("y",["yy",2],0,"eraYear"),$e("y",["yyy",3],0,"eraYear"),$e("y",["yyyy",4],0,"eraYear"),He("N",Fi),He("NN",Fi),He("NNN",Fi),He("NNNN",function Jl(k,j){return j.erasNameRegex(k)}),He("NNNNN",function Il(k,j){return j.erasNarrowRegex(k)}),fe(["N","NN","NNN","NNNN","NNNNN"],function(k,j,pe,ke){var nt=pe._locale.erasParse(k,ke,pe._strict);nt?ce(pe).era=nt:ce(pe).invalidEra=k}),He("y",ve),He("yy",ve),He("yyy",ve),He("yyyy",ve),He("yo",function en(k,j){return j._eraYearOrdinalRegex||ve}),fe(["y","yy","yyy","yyyy"],ht),fe(["yo"],function(k,j,pe,ke){var nt;pe._locale._eraYearOrdinalRegex&&(nt=k.match(pe._locale._eraYearOrdinalRegex)),j[ht]=pe._locale.eraYearOrdinalParse?pe._locale.eraYearOrdinalParse(k,nt):parseInt(k,10)}),$e(0,["gg",2],0,function(){return this.weekYear()%100}),$e(0,["GG",2],0,function(){return this.isoWeekYear()%100}),gt("gggg","weekYear"),gt("ggggg","weekYear"),gt("GGGG","isoWeekYear"),gt("GGGGG","isoWeekYear"),Ve("weekYear","gg"),Ve("isoWeekYear","GG"),J("weekYear",1),J("isoWeekYear",1),He("G",Pe),He("g",Pe),He("GG",oi,An),He("gg",oi,An),He("GGGG",G,ai),He("gggg",G,ai),He("GGGGG",U,di),He("ggggg",U,di),Mt(["gggg","ggggg","GGGG","GGGGG"],function(k,j,pe,ke){j[ke.substr(0,2)]=Se(k)}),Mt(["gg","GG"],function(k,j,pe,ke){j[ke]=l.parseTwoDigitYear(k)}),$e("Q",0,"Qo","quarter"),Ve("quarter","Q"),J("quarter",7),He("Q",gn),fe("Q",function(k,j){j[st]=3*(Se(k)-1)}),$e("D",["DD",2],"Do","date"),Ve("date","D"),J("date",9),He("D",oi),He("DD",oi,An),He("Do",function(k,j){return k?j._dayOfMonthOrdinalParse||j._ordinalParse:j._dayOfMonthOrdinalParseLenient}),fe(["D","DD"],It),fe("Do",function(k,j){j[It]=Se(k.match(oi)[0])});var W=Ft("Date",!0);$e("DDD",["DDDD",3],"DDDo","dayOfYear"),Ve("dayOfYear","DDD"),J("dayOfYear",4),He("DDD",_t),He("DDDD",jn),fe(["DDD","DDDD"],function(k,j,pe){pe._dayOfYear=Se(k)}),$e("m",["mm",2],0,"minute"),Ve("minute","m"),J("minute",14),He("m",oi),He("mm",oi,An),fe(["m","mm"],_n);var V=Ft("Minutes",!1);$e("s",["ss",2],0,"second"),Ve("second","s"),J("second",15),He("s",oi),He("ss",oi,An),fe(["s","ss"],En);var xe,qe,ie=Ft("Seconds",!1);for($e("S",0,0,function(){return~~(this.millisecond()/100)}),$e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$e(0,["SSS",3],0,"millisecond"),$e(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$e(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$e(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$e(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$e(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$e(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Ve("millisecond","ms"),J("millisecond",16),He("S",_t,gn),He("SS",_t,An),He("SSS",_t,jn),xe="SSSS";xe.length<=9;xe+="S")He(xe,ve);function Pt(k,j){j[On]=Se(1e3*("0."+k))}for(xe="S";xe.length<=9;xe+="S")fe(xe,Pt);qe=Ft("Milliseconds",!1),$e("z",0,0,"zoneAbbr"),$e("zz",0,0,"zoneName");var on=Tt.prototype;function $i(k){return k}on.add=Al,on.calendar=function pn(k,j){1===arguments.length&&(arguments[0]?K(arguments[0])?(k=arguments[0],j=void 0):function Ne(k){var nt,j=S(k)&&!n(k),pe=!1,ke=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(nt=0;ntpe.valueOf():pe.valueOf()9999?he(pe,j?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Jt(Date.prototype.toISOString)?j?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",he(pe,"Z")):he(pe,j?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},on.inspect=function $a(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var pe,ke,k="moment",j="";return this.isLocal()||(k=0===this.utcOffset()?"moment.utc":"moment.parseZone",j="Z"),pe="["+k+'("]',ke=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(pe+ke+"-MM-DD[T]HH:mm:ss.SSS"+j+'[")]')},typeof Symbol<"u"&&null!=Symbol.for&&(on[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),on.toJSON=function lc(){return this.isValid()?this.toISOString():null},on.toString=function vs(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function Nc(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function Vs(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function id(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.eraName=function hl(){var k,j,pe,ke=this.localeData().eras();for(k=0,j=ke.length;kthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function za(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function $l(){return!!this.isValid()&&this._isUTC},on.isUtc=Tr,on.isUTC=Tr,on.zoneAbbr=function mn(){return this._isUTC?"UTC":""},on.zoneName=function hn(){return this._isUTC?"Coordinated Universal Time":""},on.dates=Zt("dates accessor is deprecated. Use date instead.",W),on.months=Zt("months accessor is deprecated. Use month instead",yo),on.years=Zt("years accessor is deprecated. Use year instead",Gs),on.zone=Zt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function Wl(k,j){return null!=k?("string"!=typeof k&&(k=-k),this.utcOffset(k,j),this):-this.utcOffset()}),on.isDSTShifted=Zt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function Za(){if(!Z(this._isDSTShifted))return this._isDSTShifted;var j,k={};return je(k,this),(k=Cl(k))._a?(j=k._isUTC?te(k._a):Lr(k._a),this._isDSTShifted=this.isValid()&&function Va(k,j,pe){var xn,ke=Math.min(k.length,j.length),nt=Math.abs(k.length-j.length),Kt=0;for(xn=0;xn0):this._isDSTShifted=!1,this._isDSTShifted});var mi=Ln.prototype;function Ps(k,j,pe,ke){var nt=Jo(),Kt=te().set(ke,j);return nt[pe](Kt,k)}function fl(k,j,pe){if(ee(k)&&(j=k,k=void 0),k=k||"",null!=j)return Ps(k,j,pe,"month");var ke,nt=[];for(ke=0;ke<12;ke++)nt[ke]=Ps(k,ke,pe,"month");return nt}function Rl(k,j,pe,ke){"boolean"==typeof k?(ee(j)&&(pe=j,j=void 0),j=j||""):(pe=j=k,k=!1,ee(j)&&(pe=j,j=void 0),j=j||"");var xn,nt=Jo(),Kt=k?nt._week.dow:0,Mi=[];if(null!=pe)return Ps(j,(pe+Kt)%7,ke,"day");for(xn=0;xn<7;xn++)Mi[xn]=Ps(j,(xn+Kt)%7,ke,"day");return Mi}mi.calendar=function gi(k,j,pe){var ke=this._calendar[k]||this._calendar.sameElse;return Jt(ke)?ke.call(j,pe):ke},mi.longDateFormat=function bt(k){var j=this._longDateFormat[k],pe=this._longDateFormat[k.toUpperCase()];return j||!pe?j:(this._longDateFormat[k]=pe.match(dt).map(function(ke){return"MMMM"===ke||"MM"===ke||"DD"===ke||"dddd"===ke?ke.slice(1):ke}).join(""),this._longDateFormat[k])},mi.invalidDate=function Qt(){return this._invalidDate},mi.ordinal=function Ot(k){return this._ordinal.replace("%d",k)},mi.preparse=$i,mi.postformat=$i,mi.relativeTime=function vn(k,j,pe,ke){var nt=this._relativeTime[pe];return Jt(nt)?nt(k,j,pe,ke):nt.replace(/%d/i,k)},mi.pastFuture=function ei(k,j){var pe=this._relativeTime[k>0?"future":"past"];return Jt(pe)?pe(j):pe.replace(/%s/i,j)},mi.set=function tn(k){var j,pe;for(pe in k)w(k,pe)&&(Jt(j=k[pe])?this[pe]=j:this["_"+pe]=j);this._config=k,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},mi.eras=function rd(k,j){var pe,ke,nt,Kt=this._eras||Jo("en")._eras;for(pe=0,ke=Kt.length;pe=0)return Kt[ke]},mi.erasConvertYear=function cc(k,j){var pe=k.since<=k.until?1:-1;return void 0===j?l(k.since).year():l(k.since).year()+(j-k.offset)*pe},mi.erasAbbrRegex=function Ol(k){return w(this,"_erasAbbrRegex")||so.call(this),k?this._erasAbbrRegex:this._erasRegex},mi.erasNameRegex=function aa(k){return w(this,"_erasNameRegex")||so.call(this),k?this._erasNameRegex:this._erasRegex},mi.erasNarrowRegex=function kn(k){return w(this,"_erasNarrowRegex")||so.call(this),k?this._erasNarrowRegex:this._erasRegex},mi.months=function _i(k,j){return k?I(this._months)?this._months[k.month()]:this._months[(this._months.isFormat||co).test(j)?"format":"standalone"][k.month()]:I(this._months)?this._months:this._months.standalone},mi.monthsShort=function bo(k,j){return k?I(this._monthsShort)?this._monthsShort[k.month()]:this._monthsShort[co.test(j)?"format":"standalone"][k.month()]:I(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},mi.monthsParse=function br(k,j,pe){var ke,nt,Kt;if(this._monthsParseExact)return pr.call(this,k,j,pe);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ke=0;ke<12;ke++){if(nt=te([2e3,ke]),pe&&!this._longMonthsParse[ke]&&(this._longMonthsParse[ke]=new RegExp("^"+this.months(nt,"").replace(".","")+"$","i"),this._shortMonthsParse[ke]=new RegExp("^"+this.monthsShort(nt,"").replace(".","")+"$","i")),!pe&&!this._monthsParse[ke]&&(Kt="^"+this.months(nt,"")+"|^"+this.monthsShort(nt,""),this._monthsParse[ke]=new RegExp(Kt.replace(".",""),"i")),pe&&"MMMM"===j&&this._longMonthsParse[ke].test(k))return ke;if(pe&&"MMM"===j&&this._shortMonthsParse[ke].test(k))return ke;if(!pe&&this._monthsParse[ke].test(k))return ke}},mi.monthsRegex=function ho(k){return this._monthsParseExact?(w(this,"_monthsRegex")||to.call(this),k?this._monthsStrictRegex:this._monthsRegex):(w(this,"_monthsRegex")||(this._monthsRegex=tr),this._monthsStrictRegex&&k?this._monthsStrictRegex:this._monthsRegex)},mi.monthsShortRegex=function uo(k){return this._monthsParseExact?(w(this,"_monthsRegex")||to.call(this),k?this._monthsShortStrictRegex:this._monthsShortRegex):(w(this,"_monthsShortRegex")||(this._monthsShortRegex=Ji),this._monthsShortStrictRegex&&k?this._monthsShortStrictRegex:this._monthsShortRegex)},mi.week=function Jr(k){return $s(k,this._week.dow,this._week.doy).week},mi.firstDayOfYear=function oo(){return this._week.doy},mi.firstDayOfWeek=function kr(){return this._week.dow},mi.weekdays=function wr(k,j){var pe=I(this._weekdays)?this._weekdays:this._weekdays[k&&!0!==k&&this._weekdays.isFormat.test(j)?"format":"standalone"];return!0===k?Ks(pe,this._week.dow):k?pe[k.day()]:pe},mi.weekdaysMin=function Vr(k){return!0===k?Ks(this._weekdaysMin,this._week.dow):k?this._weekdaysMin[k.day()]:this._weekdaysMin},mi.weekdaysShort=function al(k){return!0===k?Ks(this._weekdaysShort,this._week.dow):k?this._weekdaysShort[k.day()]:this._weekdaysShort},mi.weekdaysParse=function Js(k,j,pe){var ke,nt,Kt;if(this._weekdaysParseExact)return Es.call(this,k,j,pe);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ke=0;ke<7;ke++){if(nt=te([2e3,1]).day(ke),pe&&!this._fullWeekdaysParse[ke]&&(this._fullWeekdaysParse[ke]=new RegExp("^"+this.weekdays(nt,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ke]=new RegExp("^"+this.weekdaysShort(nt,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ke]=new RegExp("^"+this.weekdaysMin(nt,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ke]||(Kt="^"+this.weekdays(nt,"")+"|^"+this.weekdaysShort(nt,"")+"|^"+this.weekdaysMin(nt,""),this._weekdaysParse[ke]=new RegExp(Kt.replace(".",""),"i")),pe&&"dddd"===j&&this._fullWeekdaysParse[ke].test(k))return ke;if(pe&&"ddd"===j&&this._shortWeekdaysParse[ke].test(k))return ke;if(pe&&"dd"===j&&this._minWeekdaysParse[ke].test(k))return ke;if(!pe&&this._weekdaysParse[ke].test(k))return ke}},mi.weekdaysRegex=function bi(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysStrictRegex:this._weekdaysRegex):(w(this,"_weekdaysRegex")||(this._weekdaysRegex=Yr),this._weekdaysStrictRegex&&k?this._weekdaysStrictRegex:this._weekdaysRegex)},mi.weekdaysShortRegex=function _r(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=dr),this._weekdaysShortStrictRegex&&k?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},mi.weekdaysMinRegex=function wo(k){return this._weekdaysParseExact?(w(this,"_weekdaysRegex")||jo.call(this),k?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ha),this._weekdaysMinStrictRegex&&k?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},mi.isPM=function va(k){return"p"===(k+"").toLowerCase().charAt(0)},mi.meridiem=function ba(k,j,pe){return k>11?pe?"pm":"PM":pe?"am":"AM"},xo("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(k){var j=k%10;return k+(1===Se(k%100/10)?"th":1===j?"st":2===j?"nd":3===j?"rd":"th")}}),l.lang=Zt("moment.lang is deprecated. Use moment.locale instead.",xo),l.langData=Zt("moment.langData is deprecated. Use moment.localeData instead.",Jo);var xr=Math.abs;function Ec(k,j,pe,ke){var nt=Rs(j,pe);return k._milliseconds+=ke*nt._milliseconds,k._days+=ke*nt._days,k._months+=ke*nt._months,k._bubble()}function hc(k){return k<0?Math.floor(k):Math.ceil(k)}function js(k){return 4800*k/146097}function pl(k){return 146097*k/4800}function Xa(k){return function(){return this.as(k)}}var ld=Xa("ms"),Sc=Xa("s"),Cd=Xa("m"),el=Xa("h"),Td=Xa("d"),Yc=Xa("w"),ca=Xa("M"),zd=Xa("Q"),Dd=Xa("y");function Ta(k){return function(){return this.isValid()?this._data[k]:NaN}}var Ed=Ta("milliseconds"),yc=Ta("seconds"),ql=Ta("minutes"),wc=Ta("hours"),kl=Ta("days"),Ql=Ta("months"),Ac=Ta("years");var Eo=Math.round,Xl={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cd(k,j,pe,ke,nt){return nt.relativeTime(j||1,!!pe,k,ke)}var Ll=Math.abs;function as(k){return(k>0)-(k<0)||+k}function pc(){if(!this.isValid())return this.localeData().invalidDate();var ke,nt,Kt,xn,Oi,Hr,ws,tl,k=Ll(this._milliseconds)/1e3,j=Ll(this._days),pe=Ll(this._months),Mi=this.asSeconds();return Mi?(ke=ot(k/60),nt=ot(ke/60),k%=60,ke%=60,Kt=ot(pe/12),pe%=12,xn=k?k.toFixed(3).replace(/\.?0+$/,""):"",Oi=Mi<0?"-":"",Hr=as(this._months)!==as(Mi)?"-":"",ws=as(this._days)!==as(Mi)?"-":"",tl=as(this._milliseconds)!==as(Mi)?"-":"",Oi+"P"+(Kt?Hr+Kt+"Y":"")+(pe?Hr+pe+"M":"")+(j?ws+j+"D":"")+(nt||ke||k?"T":"")+(nt?tl+nt+"H":"")+(ke?tl+ke+"M":"")+(k?tl+xn+"S":"")):"P0D"}var ir=qr.prototype;return ir.isValid=function Ms(){return this._isValid},ir.abs=function dc(){var k=this._data;return this._milliseconds=xr(this._milliseconds),this._days=xr(this._days),this._months=xr(this._months),k.milliseconds=xr(k.milliseconds),k.seconds=xr(k.seconds),k.minutes=xr(k.minutes),k.hours=xr(k.hours),k.months=xr(k.months),k.years=xr(k.years),this},ir.add=function sd(k,j){return Ec(this,k,j,1)},ir.subtract=function uc(k,j){return Ec(this,k,j,-1)},ir.as=function ad(k){if(!this.isValid())return NaN;var j,pe,ke=this._milliseconds;if("month"===(k=ct(k))||"quarter"===k||"year"===k)switch(j=this._days+ke/864e5,pe=this._months+js(j),k){case"month":return pe;case"quarter":return pe/3;case"year":return pe/12}else switch(j=this._days+Math.round(pl(this._months)),k){case"week":return j/7+ke/6048e5;case"day":return j+ke/864e5;case"hour":return 24*j+ke/36e5;case"minute":return 1440*j+ke/6e4;case"second":return 86400*j+ke/1e3;case"millisecond":return Math.floor(864e5*j)+ke;default:throw new Error("Unknown unit "+k)}},ir.asMilliseconds=ld,ir.asSeconds=Sc,ir.asMinutes=Cd,ir.asHours=el,ir.asDays=Td,ir.asWeeks=Yc,ir.asMonths=ca,ir.asQuarters=zd,ir.asYears=Dd,ir.valueOf=function Pi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Se(this._months/12):NaN},ir._bubble=function Qa(){var nt,Kt,xn,Mi,Oi,k=this._milliseconds,j=this._days,pe=this._months,ke=this._data;return k>=0&&j>=0&&pe>=0||k<=0&&j<=0&&pe<=0||(k+=864e5*hc(pl(pe)+j),j=0,pe=0),ke.milliseconds=k%1e3,nt=ot(k/1e3),ke.seconds=nt%60,Kt=ot(nt/60),ke.minutes=Kt%60,xn=ot(Kt/60),ke.hours=xn%24,j+=ot(xn/24),pe+=Oi=ot(js(j)),j-=hc(pl(Oi)),Mi=ot(pe/12),pe%=12,ke.days=j,ke.months=pe,ke.years=Mi,this},ir.clone=function Lo(){return Rs(this)},ir.get=function Bc(k){return k=ct(k),this.isValid()?this[k+"s"]():NaN},ir.milliseconds=Ed,ir.seconds=yc,ir.minutes=ql,ir.hours=wc,ir.days=kl,ir.weeks=function Hc(){return ot(this.days()/7)},ir.months=Ql,ir.years=Ac,ir.humanize=function da(k,j){if(!this.isValid())return this.localeData().invalidDate();var nt,Kt,pe=!1,ke=Xl;return"object"==typeof k&&(j=k,k=!1),"boolean"==typeof k&&(pe=k),"object"==typeof j&&(ke=Object.assign({},Xl,j),null!=j.s&&null==j.ss&&(ke.ss=j.s-1)),Kt=function fc(k,j,pe,ke){var nt=Rs(k).abs(),Kt=Eo(nt.as("s")),xn=Eo(nt.as("m")),Mi=Eo(nt.as("h")),Oi=Eo(nt.as("d")),Hr=Eo(nt.as("M")),ws=Eo(nt.as("w")),tl=Eo(nt.as("y")),Zs=Kt<=pe.ss&&["s",Kt]||Kt0,Zs[4]=ke,cd.apply(null,Zs)}(this,!pe,ke,nt=this.localeData()),pe&&(Kt=nt.pastFuture(+this,Kt)),nt.postformat(Kt)},ir.toISOString=pc,ir.toString=pc,ir.toJSON=pc,ir.locale=yi,ir.localeData=cl,ir.toIsoString=Zt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pc),ir.lang=oa,$e("X",0,0,"unix"),$e("x",0,0,"valueOf"),He("x",Pe),He("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",function(k,j,pe){pe._d=new Date(1e3*parseFloat(k))}),fe("x",function(k,j,pe){pe._d=new Date(Se(k))}),l.version="2.29.4",function D(k){e=k}(Lr),l.fn=on,l.min=function kc(){return Qo("isBefore",[].slice.call(arguments,0))},l.max=function El(){return Qo("isAfter",[].slice.call(arguments,0))},l.now=function(){return Date.now?Date.now():+new Date},l.utc=te,l.unix=function ji(k){return Lr(1e3*k)},l.months=function Ja(k,j){return fl(k,j,"months")},l.isDate=re,l.locale=xo,l.invalid=mt,l.duration=Rs,l.isMoment=xt,l.weekdays=function Md(k,j,pe){return Rl(k,j,pe,"weekdays")},l.parseZone=function Gr(){return Lr.apply(null,arguments).parseZone()},l.localeData=Jo,l.isDuration=Bs,l.monthsShort=function xd(k,j){return fl(k,j,"monthsShort")},l.weekdaysMin=function qa(k,j,pe){return Rl(k,j,pe,"weekdaysMin")},l.defineLocale=_s,l.updateLocale=function Ai(k,j){if(null!=j){var pe,ke,nt=Qs;null!=wi[k]&&null!=wi[k].parentLocale?wi[k].set(wn(wi[k]._config,j)):(null!=(ke=jr(k))&&(nt=ke._config),j=wn(nt,j),null==ke&&(j.abbr=k),(pe=new Ln(j)).parentLocale=wi[k],wi[k]=pe),xo(k)}else null!=wi[k]&&(null!=wi[k].parentLocale?(wi[k]=wi[k].parentLocale,k===xo()&&xo(k)):null!=wi[k]&&delete wi[k]);return wi[k]},l.locales=function Io(){return Yn(wi)},l.weekdaysShort=function Do(k,j,pe){return Rl(k,j,pe,"weekdaysShort")},l.normalizeUnits=ct,l.relativeTimeRounding=function xc(k){return void 0===k?Eo:"function"==typeof k&&(Eo=k,!0)},l.relativeTimeThreshold=function Po(k,j){return void 0!==Xl[k]&&(void 0===j?Xl[k]:(Xl[k]=j,"s"===k&&(Xl.ss=j-1),!0))},l.calendarFormat=function kt(k,j){var pe=k.diff(j,"days",!0);return pe<-6?"sameElse":pe<-1?"lastWeek":pe<0?"lastDay":pe<1?"sameDay":pe<2?"nextDay":pe<7?"nextWeek":"sameElse"},l.prototype=on,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},l}()},5619:(ft,Ie,C)=>{"use strict";C.d(Ie,{X:()=>l});var e=C(8645);class l extends e.x{constructor(I){super(),this._value=I}get value(){return this.getValue()}_subscribe(I){const S=super._subscribe(I);return!S.closed&&I.next(this._value),S}getValue(){const{hasError:I,thrownError:S,_value:w}=this;if(I)throw S;return this._throwIfClosed(),w}next(I){super.next(this._value=I)}}},5592:(ft,Ie,C)=>{"use strict";C.d(Ie,{y:()=>Z});var e=C(305),l=C(7394),D=C(4850),I=C(8407),S=C(2653),w=C(4674),n=C(1441);let Z=(()=>{class se{constructor(oe){oe&&(this._subscribe=oe)}lift(oe){const ce=new se;return ce.source=this,ce.operator=oe,ce}subscribe(oe,ce,_e){const Re=function ue(se){return se&&se instanceof e.Lv||function re(se){return se&&(0,w.m)(se.next)&&(0,w.m)(se.error)&&(0,w.m)(se.complete)}(se)&&(0,l.Nn)(se)}(oe)?oe:new e.Hp(oe,ce,_e);return(0,n.x)(()=>{const{operator:mt,source:Ge}=this;Re.add(mt?mt.call(Re,Ge):Ge?this._subscribe(Re):this._trySubscribe(Re))}),Re}_trySubscribe(oe){try{return this._subscribe(oe)}catch(ce){oe.error(ce)}}forEach(oe,ce){return new(ce=ee(ce))((_e,Re)=>{const mt=new e.Hp({next:Ge=>{try{oe(Ge)}catch(Lt){Re(Lt),mt.unsubscribe()}},error:Re,complete:_e});this.subscribe(mt)})}_subscribe(oe){var ce;return null===(ce=this.source)||void 0===ce?void 0:ce.subscribe(oe)}[D.L](){return this}pipe(...oe){return(0,I.U)(oe)(this)}toPromise(oe){return new(oe=ee(oe))((ce,_e)=>{let Re;this.subscribe(mt=>Re=mt,mt=>_e(mt),()=>ce(Re))})}}return se.create=te=>new se(te),se})();function ee(se){var te;return null!==(te=se??S.config.Promise)&&void 0!==te?te:Promise}},8645:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>n});var e=C(5592),l=C(7394);const I=(0,C(2306).d)(ee=>function(){ee(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var S=C(9039),w=C(1441);let n=(()=>{class ee extends e.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(ue){const se=new Z(this,this);return se.operator=ue,se}_throwIfClosed(){if(this.closed)throw new I}next(ue){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const se of this.currentObservers)se.next(ue)}})}error(ue){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=ue;const{observers:se}=this;for(;se.length;)se.shift().error(ue)}})}complete(){(0,w.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:ue}=this;for(;ue.length;)ue.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var ue;return(null===(ue=this.observers)||void 0===ue?void 0:ue.length)>0}_trySubscribe(ue){return this._throwIfClosed(),super._trySubscribe(ue)}_subscribe(ue){return this._throwIfClosed(),this._checkFinalizedStatuses(ue),this._innerSubscribe(ue)}_innerSubscribe(ue){const{hasError:se,isStopped:te,observers:oe}=this;return se||te?l.Lc:(this.currentObservers=null,oe.push(ue),new l.w0(()=>{this.currentObservers=null,(0,S.P)(oe,ue)}))}_checkFinalizedStatuses(ue){const{hasError:se,thrownError:te,isStopped:oe}=this;se?ue.error(te):oe&&ue.complete()}asObservable(){const ue=new e.y;return ue.source=this,ue}}return ee.create=(re,ue)=>new Z(re,ue),ee})();class Z extends n{constructor(re,ue){super(),this.destination=re,this.source=ue}next(re){var ue,se;null===(se=null===(ue=this.destination)||void 0===ue?void 0:ue.next)||void 0===se||se.call(ue,re)}error(re){var ue,se;null===(se=null===(ue=this.destination)||void 0===ue?void 0:ue.error)||void 0===se||se.call(ue,re)}complete(){var re,ue;null===(ue=null===(re=this.destination)||void 0===re?void 0:re.complete)||void 0===ue||ue.call(re)}_subscribe(re){var ue,se;return null!==(se=null===(ue=this.source)||void 0===ue?void 0:ue.subscribe(re))&&void 0!==se?se:l.Lc}}},305:(ft,Ie,C)=>{"use strict";C.d(Ie,{Hp:()=>_e,Lv:()=>se});var e=C(4674),l=C(7394),D=C(2653),I=C(3894),S=C(2420);const w=ee("C",void 0,void 0);function ee(je,Tt,xt){return{kind:je,value:Tt,error:xt}}var re=C(7599),ue=C(1441);class se extends l.w0{constructor(Tt){super(),this.isStopped=!1,Tt?(this.destination=Tt,(0,l.Nn)(Tt)&&Tt.add(this)):this.destination=Lt}static create(Tt,xt,St){return new _e(Tt,xt,St)}next(Tt){this.isStopped?Ge(function Z(je){return ee("N",je,void 0)}(Tt),this):this._next(Tt)}error(Tt){this.isStopped?Ge(function n(je){return ee("E",void 0,je)}(Tt),this):(this.isStopped=!0,this._error(Tt))}complete(){this.isStopped?Ge(w,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Tt){this.destination.next(Tt)}_error(Tt){try{this.destination.error(Tt)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const te=Function.prototype.bind;function oe(je,Tt){return te.call(je,Tt)}class ce{constructor(Tt){this.partialObserver=Tt}next(Tt){const{partialObserver:xt}=this;if(xt.next)try{xt.next(Tt)}catch(St){Re(St)}}error(Tt){const{partialObserver:xt}=this;if(xt.error)try{xt.error(Tt)}catch(St){Re(St)}else Re(Tt)}complete(){const{partialObserver:Tt}=this;if(Tt.complete)try{Tt.complete()}catch(xt){Re(xt)}}}class _e extends se{constructor(Tt,xt,St){let Zt;if(super(),(0,e.m)(Tt)||!Tt)Zt={next:Tt??void 0,error:xt??void 0,complete:St??void 0};else{let yt;this&&D.config.useDeprecatedNextContext?(yt=Object.create(Tt),yt.unsubscribe=()=>this.unsubscribe(),Zt={next:Tt.next&&oe(Tt.next,yt),error:Tt.error&&oe(Tt.error,yt),complete:Tt.complete&&oe(Tt.complete,yt)}):Zt=Tt}this.destination=new ce(Zt)}}function Re(je){D.config.useDeprecatedSynchronousErrorHandling?(0,ue.O)(je):(0,I.h)(je)}function Ge(je,Tt){const{onStoppedNotification:xt}=D.config;xt&&re.z.setTimeout(()=>xt(je,Tt))}const Lt={closed:!0,next:S.Z,error:function mt(je){throw je},complete:S.Z}},7394:(ft,Ie,C)=>{"use strict";C.d(Ie,{Lc:()=>w,w0:()=>S,Nn:()=>n});var e=C(4674);const D=(0,C(2306).d)(ee=>function(ue){ee(this),this.message=ue?`${ue.length} errors occurred during unsubscription:\n${ue.map((se,te)=>`${te+1}) ${se.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ue});var I=C(9039);class S{constructor(re){this.initialTeardown=re,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let re;if(!this.closed){this.closed=!0;const{_parentage:ue}=this;if(ue)if(this._parentage=null,Array.isArray(ue))for(const oe of ue)oe.remove(this);else ue.remove(this);const{initialTeardown:se}=this;if((0,e.m)(se))try{se()}catch(oe){re=oe instanceof D?oe.errors:[oe]}const{_finalizers:te}=this;if(te){this._finalizers=null;for(const oe of te)try{Z(oe)}catch(ce){re=re??[],ce instanceof D?re=[...re,...ce.errors]:re.push(ce)}}if(re)throw new D(re)}}add(re){var ue;if(re&&re!==this)if(this.closed)Z(re);else{if(re instanceof S){if(re.closed||re._hasParent(this))return;re._addParent(this)}(this._finalizers=null!==(ue=this._finalizers)&&void 0!==ue?ue:[]).push(re)}}_hasParent(re){const{_parentage:ue}=this;return ue===re||Array.isArray(ue)&&ue.includes(re)}_addParent(re){const{_parentage:ue}=this;this._parentage=Array.isArray(ue)?(ue.push(re),ue):ue?[ue,re]:re}_removeParent(re){const{_parentage:ue}=this;ue===re?this._parentage=null:Array.isArray(ue)&&(0,I.P)(ue,re)}remove(re){const{_finalizers:ue}=this;ue&&(0,I.P)(ue,re),re instanceof S&&re._removeParent(this)}}S.EMPTY=(()=>{const ee=new S;return ee.closed=!0,ee})();const w=S.EMPTY;function n(ee){return ee instanceof S||ee&&"closed"in ee&&(0,e.m)(ee.remove)&&(0,e.m)(ee.add)&&(0,e.m)(ee.unsubscribe)}function Z(ee){(0,e.m)(ee)?ee():ee.unsubscribe()}},2653:(ft,Ie,C)=>{"use strict";C.d(Ie,{config:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},3168:(ft,Ie,C)=>{"use strict";C.d(Ie,{c:()=>w});var e=C(5592),l=C(7394),D=C(6196),I=C(8251),S=C(9360);class w extends e.y{constructor(Z,ee){super(),this.source=Z,this.subjectFactory=ee,this._subject=null,this._refCount=0,this._connection=null,(0,S.A)(Z)&&(this.lift=Z.lift)}_subscribe(Z){return this.getSubject().subscribe(Z)}getSubject(){const Z=this._subject;return(!Z||Z.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Z}=this;this._subject=this._connection=null,Z?.unsubscribe()}connect(){let Z=this._connection;if(!Z){Z=this._connection=new l.w0;const ee=this.getSubject();Z.add(this.source.subscribe((0,I.x)(ee,void 0,()=>{this._teardown(),ee.complete()},re=>{this._teardown(),ee.error(re)},()=>this._teardown()))),Z.closed&&(this._connection=null,Z=l.w0.EMPTY)}return Z}refCount(){return(0,D.x)()(this)}}},2572:(ft,Ie,C)=>{"use strict";C.d(Ie,{a:()=>re});var e=C(5592),l=C(7453),D=C(9666),I=C(2737),S=C(7400),w=C(9940),n=C(2714),Z=C(8251),ee=C(7103);function re(...te){const oe=(0,w.yG)(te),ce=(0,w.jO)(te),{args:_e,keys:Re}=(0,l.D)(te);if(0===_e.length)return(0,D.D)([],oe);const mt=new e.y(function ue(te,oe,ce=I.y){return _e=>{se(oe,()=>{const{length:Re}=te,mt=new Array(Re);let Ge=Re,Lt=Re;for(let je=0;je{const Tt=(0,D.D)(te[je],oe);let xt=!1;Tt.subscribe((0,Z.x)(_e,St=>{mt[je]=St,xt||(xt=!0,Lt--),Lt||_e.next(ce(mt.slice()))},()=>{--Ge||_e.complete()}))},_e)},_e)}}(_e,oe,Re?Ge=>(0,n.n)(Re,Ge):I.y));return ce?mt.pipe((0,S.Z)(ce)):mt}function se(te,oe,ce){te?(0,ee.f)(ce,te,oe):oe()}},5211:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>S});var e=C(7537),D=C(9940),I=C(9666);function S(...w){return function l(){return(0,e.J)(1)}()((0,I.D)(w,(0,D.yG)(w)))}},4911:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>D});var e=C(5592),l=C(4829);function D(I){return new e.y(S=>{(0,l.Xf)(I()).subscribe(S)})}},6232:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>l});const l=new(C(5592).y)(S=>S.complete())},9315:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>Z});var e=C(5592),l=C(7453),D=C(4829),I=C(9940),S=C(8251),w=C(7400),n=C(2714);function Z(...ee){const re=(0,I.jO)(ee),{args:ue,keys:se}=(0,l.D)(ee),te=new e.y(oe=>{const{length:ce}=ue;if(!ce)return void oe.complete();const _e=new Array(ce);let Re=ce,mt=ce;for(let Ge=0;Ge{Lt||(Lt=!0,mt--),_e[Ge]=je},()=>Re--,void 0,()=>{(!Re||!Lt)&&(mt||oe.next(se?(0,n.n)(se,_e):_e),oe.complete())}))}});return re?te.pipe((0,w.Z)(re)):te}},9666:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>xt});var e=C(4829),l=C(3093),D=C(9360);function I(St,Zt=0){return(0,D.e)((yt,un)=>{un.add(St.schedule(()=>yt.subscribe(un),Zt))})}var n=C(5592),ee=C(4971),re=C(4674),ue=C(7103);function te(St,Zt){if(!St)throw new Error("Iterable cannot be null");return new n.y(yt=>{(0,ue.f)(yt,Zt,()=>{const un=St[Symbol.asyncIterator]();(0,ue.f)(yt,Zt,()=>{un.next().then(Jt=>{Jt.done?yt.complete():yt.next(Jt.value)})},0,!0)})})}var oe=C(8382),ce=C(4026),_e=C(4266),Re=C(3664),mt=C(5726),Ge=C(9853),Lt=C(541);function xt(St,Zt){return Zt?function Tt(St,Zt){if(null!=St){if((0,oe.c)(St))return function S(St,Zt){return(0,e.Xf)(St).pipe(I(Zt),(0,l.Q)(Zt))}(St,Zt);if((0,_e.z)(St))return function Z(St,Zt){return new n.y(yt=>{let un=0;return Zt.schedule(function(){un===St.length?yt.complete():(yt.next(St[un++]),yt.closed||this.schedule())})})}(St,Zt);if((0,ce.t)(St))return function w(St,Zt){return(0,e.Xf)(St).pipe(I(Zt),(0,l.Q)(Zt))}(St,Zt);if((0,mt.D)(St))return te(St,Zt);if((0,Re.T)(St))return function se(St,Zt){return new n.y(yt=>{let un;return(0,ue.f)(yt,Zt,()=>{un=St[ee.h](),(0,ue.f)(yt,Zt,()=>{let Jt,tn;try{({value:Jt,done:tn}=un.next())}catch(wn){return void yt.error(wn)}tn?yt.complete():yt.next(Jt)},0,!0)}),()=>(0,re.m)(un?.return)&&un.return()})}(St,Zt);if((0,Lt.L)(St))return function je(St,Zt){return te((0,Lt.Q)(St),Zt)}(St,Zt)}throw(0,Ge.z)(St)}(St,Zt):(0,e.Xf)(St)}},2438:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>re});var e=C(4829),l=C(5592),D=C(1631),I=C(4266),S=C(4674),w=C(7400);const n=["addListener","removeListener"],Z=["addEventListener","removeEventListener"],ee=["on","off"];function re(ce,_e,Re,mt){if((0,S.m)(Re)&&(mt=Re,Re=void 0),mt)return re(ce,_e,Re).pipe((0,w.Z)(mt));const[Ge,Lt]=function oe(ce){return(0,S.m)(ce.addEventListener)&&(0,S.m)(ce.removeEventListener)}(ce)?Z.map(je=>Tt=>ce[je](_e,Tt,Re)):function se(ce){return(0,S.m)(ce.addListener)&&(0,S.m)(ce.removeListener)}(ce)?n.map(ue(ce,_e)):function te(ce){return(0,S.m)(ce.on)&&(0,S.m)(ce.off)}(ce)?ee.map(ue(ce,_e)):[];if(!Ge&&(0,I.z)(ce))return(0,D.z)(je=>re(je,_e,Re))((0,e.Xf)(ce));if(!Ge)throw new TypeError("Invalid event target");return new l.y(je=>{const Tt=(...xt)=>je.next(1Lt(Tt)})}function ue(ce,_e){return Re=>mt=>ce[Re](_e,mt)}},4829:(ft,Ie,C)=>{"use strict";C.d(Ie,{Xf:()=>te});var e=C(7582),l=C(4266),D=C(4026),I=C(5592),S=C(8382),w=C(5726),n=C(9853),Z=C(3664),ee=C(541),re=C(4674),ue=C(3894),se=C(4850);function te(je){if(je instanceof I.y)return je;if(null!=je){if((0,S.c)(je))return function oe(je){return new I.y(Tt=>{const xt=je[se.L]();if((0,re.m)(xt.subscribe))return xt.subscribe(Tt);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(je);if((0,l.z)(je))return function ce(je){return new I.y(Tt=>{for(let xt=0;xt{je.then(xt=>{Tt.closed||(Tt.next(xt),Tt.complete())},xt=>Tt.error(xt)).then(null,ue.h)})}(je);if((0,w.D)(je))return mt(je);if((0,Z.T)(je))return function Re(je){return new I.y(Tt=>{for(const xt of je)if(Tt.next(xt),Tt.closed)return;Tt.complete()})}(je);if((0,ee.L)(je))return function Ge(je){return mt((0,ee.Q)(je))}(je)}throw(0,n.z)(je)}function mt(je){return new I.y(Tt=>{(function Lt(je,Tt){var xt,St,Zt,yt;return(0,e.mG)(this,void 0,void 0,function*(){try{for(xt=(0,e.KL)(je);!(St=yield xt.next()).done;)if(Tt.next(St.value),Tt.closed)return}catch(un){Zt={error:un}}finally{try{St&&!St.done&&(yt=xt.return)&&(yield yt.call(xt))}finally{if(Zt)throw Zt.error}}Tt.complete()})})(je,Tt).catch(xt=>Tt.error(xt))})}},3019:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>w});var e=C(7537),l=C(4829),D=C(6232),I=C(9940),S=C(9666);function w(...n){const Z=(0,I.yG)(n),ee=(0,I._6)(n,1/0),re=n;return re.length?1===re.length?(0,l.Xf)(re[0]):(0,e.J)(ee)((0,S.D)(re,Z)):D.E}},2096:(ft,Ie,C)=>{"use strict";C.d(Ie,{of:()=>D});var e=C(9940),l=C(9666);function D(...I){const S=(0,e.yG)(I);return(0,l.D)(I,S)}},8504:(ft,Ie,C)=>{"use strict";C.d(Ie,{_:()=>D});var e=C(5592),l=C(4674);function D(I,S){const w=(0,l.m)(I)?I:()=>I,n=Z=>Z.error(w());return new e.y(S?Z=>S.schedule(n,0,Z):n)}},4825:(ft,Ie,C)=>{"use strict";C.d(Ie,{H:()=>S});var e=C(5592),l=C(6321),D=C(671);function S(w=0,n,Z=l.P){let ee=-1;return null!=n&&((0,D.K)(n)?Z=n:ee=n),new e.y(re=>{let ue=function I(w){return w instanceof Date&&!isNaN(w)}(w)?+w-Z.now():w;ue<0&&(ue=0);let se=0;return Z.schedule(function(){re.closed||(re.next(se++),0<=ee?this.schedule(void 0,ee):re.complete())},ue)})}},8251:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>l});var e=C(305);function l(I,S,w,n,Z){return new D(I,S,w,n,Z)}class D extends e.Lv{constructor(S,w,n,Z,ee,re){super(S),this.onFinalize=ee,this.shouldUnsubscribe=re,this._next=w?function(ue){try{w(ue)}catch(se){S.error(se)}}:super._next,this._error=Z?function(ue){try{Z(ue)}catch(se){S.error(se)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(ue){S.error(ue)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var S;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:w}=this;super.unsubscribe(),!w&&(null===(S=this.onFinalize)||void 0===S||S.call(this))}}}},9028:(ft,Ie,C)=>{"use strict";C.d(Ie,{e:()=>n});var e=C(6321),l=C(9360),D=C(4829),I=C(8251),w=C(4825);function n(Z,ee=e.z){return function S(Z){return(0,l.e)((ee,re)=>{let ue=!1,se=null,te=null,oe=!1;const ce=()=>{if(te?.unsubscribe(),te=null,ue){ue=!1;const Re=se;se=null,re.next(Re)}oe&&re.complete()},_e=()=>{te=null,oe&&re.complete()};ee.subscribe((0,I.x)(re,Re=>{ue=!0,se=Re,te||(0,D.Xf)(Z(Re)).subscribe(te=(0,I.x)(re,ce,_e))},()=>{oe=!0,(!ue||!te||te.closed)&&re.complete()}))})}(()=>(0,w.H)(Z,ee))}},6306:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>I});var e=C(4829),l=C(8251),D=C(9360);function I(S){return(0,D.e)((w,n)=>{let re,Z=null,ee=!1;Z=w.subscribe((0,l.x)(n,void 0,void 0,ue=>{re=(0,e.Xf)(S(ue,I(S)(w))),Z?(Z.unsubscribe(),Z=null,re.subscribe(n)):ee=!0})),ee&&(Z.unsubscribe(),Z=null,re.subscribe(n))})}},6328:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>D});var e=C(1631),l=C(4674);function D(I,S){return(0,l.m)(S)?(0,e.z)(I,S,1):(0,e.z)(I,1)}},3620:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>I});var e=C(6321),l=C(9360),D=C(8251);function I(S,w=e.z){return(0,l.e)((n,Z)=>{let ee=null,re=null,ue=null;const se=()=>{if(ee){ee.unsubscribe(),ee=null;const oe=re;re=null,Z.next(oe)}};function te(){const oe=ue+S,ce=w.now();if(ce{re=oe,ue=w.now(),ee||(ee=w.schedule(te,S),Z.add(ee))},()=>{se(),Z.complete()},void 0,()=>{re=ee=null}))})}},3572:(ft,Ie,C)=>{"use strict";C.d(Ie,{d:()=>D});var e=C(9360),l=C(8251);function D(I){return(0,e.e)((S,w)=>{let n=!1;S.subscribe((0,l.x)(w,Z=>{n=!0,w.next(Z)},()=>{n||w.next(I),w.complete()}))})}},5177:(ft,Ie,C)=>{"use strict";C.d(Ie,{g:()=>te});var e=C(6321),l=C(5211),D=C(8180),I=C(9360),S=C(8251),w=C(2420),Z=C(975),ee=C(1631),re=C(4829);function ue(oe,ce){return ce?_e=>(0,l.z)(ce.pipe((0,D.q)(1),function n(){return(0,I.e)((oe,ce)=>{oe.subscribe((0,S.x)(ce,w.Z))})}()),_e.pipe(ue(oe))):(0,ee.z)((_e,Re)=>(0,re.Xf)(oe(_e,Re)).pipe((0,D.q)(1),(0,Z.h)(_e)))}var se=C(4825);function te(oe,ce=e.z){const _e=(0,se.H)(oe,ce);return ue(()=>_e)}},3997:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>I});var e=C(2737),l=C(9360),D=C(8251);function I(w,n=e.y){return w=w??S,(0,l.e)((Z,ee)=>{let re,ue=!0;Z.subscribe((0,D.x)(ee,se=>{const te=n(se);(ue||!w(re,te))&&(ue=!1,re=te,ee.next(se))}))})}function S(w,n){return w===n}},2181:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>D});var e=C(9360),l=C(8251);function D(I,S){return(0,e.e)((w,n)=>{let Z=0;w.subscribe((0,l.x)(n,ee=>I.call(S,ee,Z++)&&n.next(ee)))})}},4716:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>l});var e=C(9360);function l(D){return(0,e.e)((I,S)=>{try{I.subscribe(S)}finally{S.add(D)}})}},1374:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>n});var e=C(6973),l=C(2181),D=C(8180),I=C(3572),S=C(3026),w=C(2737);function n(Z,ee){const re=arguments.length>=2;return ue=>ue.pipe(Z?(0,l.h)((se,te)=>Z(se,te,ue)):w.y,(0,D.q)(1),re?(0,I.d)(ee):(0,S.T)(()=>new e.K))}},7398:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>D});var e=C(9360),l=C(8251);function D(I,S){return(0,e.e)((w,n)=>{let Z=0;w.subscribe((0,l.x)(n,ee=>{n.next(I.call(S,ee,Z++))}))})}},975:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>l});var e=C(7398);function l(D){return(0,e.U)(()=>D)}},7537:(ft,Ie,C)=>{"use strict";C.d(Ie,{J:()=>D});var e=C(1631),l=C(2737);function D(I=1/0){return(0,e.z)(l.y,I)}},1631:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>Z});var e=C(7398),l=C(4829),D=C(9360),I=C(7103),S=C(8251),n=C(4674);function Z(ee,re,ue=1/0){return(0,n.m)(re)?Z((se,te)=>(0,e.U)((oe,ce)=>re(se,oe,te,ce))((0,l.Xf)(ee(se,te))),ue):("number"==typeof re&&(ue=re),(0,D.e)((se,te)=>function w(ee,re,ue,se,te,oe,ce,_e){const Re=[];let mt=0,Ge=0,Lt=!1;const je=()=>{Lt&&!Re.length&&!mt&&re.complete()},Tt=St=>mt{oe&&re.next(St),mt++;let Zt=!1;(0,l.Xf)(ue(St,Ge++)).subscribe((0,S.x)(re,yt=>{te?.(yt),oe?Tt(yt):re.next(yt)},()=>{Zt=!0},void 0,()=>{if(Zt)try{for(mt--;Re.length&&mtxt(yt)):xt(yt)}je()}catch(yt){re.error(yt)}}))};return ee.subscribe((0,S.x)(re,Tt,()=>{Lt=!0,je()})),()=>{_e?.()}}(se,te,ee,ue)))}},3093:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q:()=>I});var e=C(7103),l=C(9360),D=C(8251);function I(S,w=0){return(0,l.e)((n,Z)=>{n.subscribe((0,D.x)(Z,ee=>(0,e.f)(Z,S,()=>Z.next(ee),w),()=>(0,e.f)(Z,S,()=>Z.complete(),w),ee=>(0,e.f)(Z,S,()=>Z.error(ee),w)))})}},6196:(ft,Ie,C)=>{"use strict";C.d(Ie,{x:()=>D});var e=C(9360),l=C(8251);function D(){return(0,e.e)((I,S)=>{let w=null;I._refCount++;const n=(0,l.x)(S,void 0,void 0,void 0,()=>{if(!I||I._refCount<=0||0<--I._refCount)return void(w=null);const Z=I._connection,ee=w;w=null,Z&&(!ee||Z===ee)&&Z.unsubscribe(),S.unsubscribe()});I.subscribe(n),n.closed||(w=I.connect())})}},6424:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>D});var e=C(9360),l=C(9732);function D(I,S){return(0,e.e)((0,l.U)(I,S,arguments.length>=2,!0))}},9732:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>l});var e=C(8251);function l(D,I,S,w,n){return(Z,ee)=>{let re=S,ue=I,se=0;Z.subscribe((0,e.x)(ee,te=>{const oe=se++;ue=re?D(ue,te,oe):(re=!0,te),w&&ee.next(ue)},n&&(()=>{re&&ee.next(ue),ee.complete()})))}}},3020:(ft,Ie,C)=>{"use strict";C.d(Ie,{B:()=>S});var e=C(4829),l=C(8645),D=C(305),I=C(9360);function S(n={}){const{connector:Z=(()=>new l.x),resetOnError:ee=!0,resetOnComplete:re=!0,resetOnRefCountZero:ue=!0}=n;return se=>{let te,oe,ce,_e=0,Re=!1,mt=!1;const Ge=()=>{oe?.unsubscribe(),oe=void 0},Lt=()=>{Ge(),te=ce=void 0,Re=mt=!1},je=()=>{const Tt=te;Lt(),Tt?.unsubscribe()};return(0,I.e)((Tt,xt)=>{_e++,!mt&&!Re&&Ge();const St=ce=ce??Z();xt.add(()=>{_e--,0===_e&&!mt&&!Re&&(oe=w(je,ue))}),St.subscribe(xt),!te&&_e>0&&(te=new D.Hp({next:Zt=>St.next(Zt),error:Zt=>{mt=!0,Ge(),oe=w(Lt,ee,Zt),St.error(Zt)},complete:()=>{Re=!0,Ge(),oe=w(Lt,re),St.complete()}}),(0,e.Xf)(Tt).subscribe(te))})(se)}}function w(n,Z,...ee){if(!0===Z)return void n();if(!1===Z)return;const re=new D.Hp({next:()=>{re.unsubscribe(),n()}});return(0,e.Xf)(Z(...ee)).subscribe(re)}},836:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>l});var e=C(2181);function l(D){return(0,e.h)((I,S)=>D<=S)}},7921:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>I});var e=C(5211),l=C(9940),D=C(9360);function I(...S){const w=(0,l.yG)(S);return(0,D.e)((n,Z)=>{(w?(0,e.z)(S,n,w):(0,e.z)(S,n)).subscribe(Z)})}},4664:(ft,Ie,C)=>{"use strict";C.d(Ie,{w:()=>I});var e=C(4829),l=C(9360),D=C(8251);function I(S,w){return(0,l.e)((n,Z)=>{let ee=null,re=0,ue=!1;const se=()=>ue&&!ee&&Z.complete();n.subscribe((0,D.x)(Z,te=>{ee?.unsubscribe();let oe=0;const ce=re++;(0,e.Xf)(S(te,ce)).subscribe(ee=(0,D.x)(Z,_e=>Z.next(w?w(te,_e,ce,oe++):_e),()=>{ee=null,se()}))},()=>{ue=!0,se()}))})}},8180:(ft,Ie,C)=>{"use strict";C.d(Ie,{q:()=>I});var e=C(6232),l=C(9360),D=C(8251);function I(S){return S<=0?()=>e.E:(0,l.e)((w,n)=>{let Z=0;w.subscribe((0,D.x)(n,ee=>{++Z<=S&&(n.next(ee),S<=Z&&n.complete())}))})}},9773:(ft,Ie,C)=>{"use strict";C.d(Ie,{R:()=>S});var e=C(9360),l=C(8251),D=C(4829),I=C(2420);function S(w){return(0,e.e)((n,Z)=>{(0,D.Xf)(w).subscribe((0,l.x)(Z,()=>Z.complete(),I.Z)),!Z.closed&&n.subscribe(Z)})}},9397:(ft,Ie,C)=>{"use strict";C.d(Ie,{b:()=>S});var e=C(4674),l=C(9360),D=C(8251),I=C(2737);function S(w,n,Z){const ee=(0,e.m)(w)||n||Z?{next:w,error:n,complete:Z}:w;return ee?(0,l.e)((re,ue)=>{var se;null===(se=ee.subscribe)||void 0===se||se.call(ee);let te=!0;re.subscribe((0,D.x)(ue,oe=>{var ce;null===(ce=ee.next)||void 0===ce||ce.call(ee,oe),ue.next(oe)},()=>{var oe;te=!1,null===(oe=ee.complete)||void 0===oe||oe.call(ee),ue.complete()},oe=>{var ce;te=!1,null===(ce=ee.error)||void 0===ce||ce.call(ee,oe),ue.error(oe)},()=>{var oe,ce;te&&(null===(oe=ee.unsubscribe)||void 0===oe||oe.call(ee)),null===(ce=ee.finalize)||void 0===ce||ce.call(ee)}))}):I.y}},3026:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>I});var e=C(6973),l=C(9360),D=C(8251);function I(w=S){return(0,l.e)((n,Z)=>{let ee=!1;n.subscribe((0,D.x)(Z,re=>{ee=!0,Z.next(re)},()=>ee?Z.complete():Z.error(w())))})}function S(){return new e.K}},1954:(ft,Ie,C)=>{"use strict";C.d(Ie,{o:()=>S});var e=C(7394);class l extends e.w0{constructor(n,Z){super()}schedule(n,Z=0){return this}}const D={setInterval(w,n,...Z){const{delegate:ee}=D;return ee?.setInterval?ee.setInterval(w,n,...Z):setInterval(w,n,...Z)},clearInterval(w){const{delegate:n}=D;return(n?.clearInterval||clearInterval)(w)},delegate:void 0};var I=C(9039);class S extends l{constructor(n,Z){super(n,Z),this.scheduler=n,this.work=Z,this.pending=!1}schedule(n,Z=0){var ee;if(this.closed)return this;this.state=n;const re=this.id,ue=this.scheduler;return null!=re&&(this.id=this.recycleAsyncId(ue,re,Z)),this.pending=!0,this.delay=Z,this.id=null!==(ee=this.id)&&void 0!==ee?ee:this.requestAsyncId(ue,this.id,Z),this}requestAsyncId(n,Z,ee=0){return D.setInterval(n.flush.bind(n,this),ee)}recycleAsyncId(n,Z,ee=0){if(null!=ee&&this.delay===ee&&!1===this.pending)return Z;null!=Z&&D.clearInterval(Z)}execute(n,Z){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const ee=this._execute(n,Z);if(ee)return ee;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,Z){let re,ee=!1;try{this.work(n)}catch(ue){ee=!0,re=ue||new Error("Scheduled action threw falsy error")}if(ee)return this.unsubscribe(),re}unsubscribe(){if(!this.closed){const{id:n,scheduler:Z}=this,{actions:ee}=Z;this.work=this.state=this.scheduler=null,this.pending=!1,(0,I.P)(ee,this),null!=n&&(this.id=this.recycleAsyncId(Z,n,null)),this.delay=null,super.unsubscribe()}}}},2631:(ft,Ie,C)=>{"use strict";C.d(Ie,{v:()=>D});var e=C(4552);class l{constructor(S,w=l.now){this.schedulerActionCtor=S,this.now=w}schedule(S,w=0,n){return new this.schedulerActionCtor(this,S).schedule(n,w)}}l.now=e.l.now;class D extends l{constructor(S,w=l.now){super(S,w),this.actions=[],this._active=!1}flush(S){const{actions:w}=this;if(this._active)return void w.push(S);let n;this._active=!0;do{if(n=S.execute(S.state,S.delay))break}while(S=w.shift());if(this._active=!1,n){for(;S=w.shift();)S.unsubscribe();throw n}}}},927:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>n});var e=C(1954),l=C(7394);const D={schedule(ee){let re=requestAnimationFrame,ue=cancelAnimationFrame;const{delegate:se}=D;se&&(re=se.requestAnimationFrame,ue=se.cancelAnimationFrame);const te=re(oe=>{ue=void 0,ee(oe)});return new l.w0(()=>ue?.(te))},requestAnimationFrame(...ee){const{delegate:re}=D;return(re?.requestAnimationFrame||requestAnimationFrame)(...ee)},cancelAnimationFrame(...ee){const{delegate:re}=D;return(re?.cancelAnimationFrame||cancelAnimationFrame)(...ee)},delegate:void 0};var S=C(2631);const n=new class w extends S.v{flush(re){this._active=!0;const ue=this._scheduled;this._scheduled=void 0;const{actions:se}=this;let te;re=re||se.shift();do{if(te=re.execute(re.state,re.delay))break}while((re=se[0])&&re.id===ue&&se.shift());if(this._active=!1,te){for(;(re=se[0])&&re.id===ue&&se.shift();)re.unsubscribe();throw te}}}(class I extends e.o{constructor(re,ue){super(re,ue),this.scheduler=re,this.work=ue}requestAsyncId(re,ue,se=0){return null!==se&&se>0?super.requestAsyncId(re,ue,se):(re.actions.push(this),re._scheduled||(re._scheduled=D.requestAnimationFrame(()=>re.flush(void 0))))}recycleAsyncId(re,ue,se=0){var te;if(null!=se?se>0:this.delay>0)return super.recycleAsyncId(re,ue,se);const{actions:oe}=re;null!=ue&&(null===(te=oe[oe.length-1])||void 0===te?void 0:te.id)!==ue&&(D.cancelAnimationFrame(ue),re._scheduled=void 0)}})},6410:(ft,Ie,C)=>{"use strict";C.d(Ie,{E:()=>oe});var e=C(1954);let D,l=1;const I={};function S(_e){return _e in I&&(delete I[_e],!0)}const w={setImmediate(_e){const Re=l++;return I[Re]=!0,D||(D=Promise.resolve()),D.then(()=>S(Re)&&_e()),Re},clearImmediate(_e){S(_e)}},{setImmediate:Z,clearImmediate:ee}=w,re={setImmediate(..._e){const{delegate:Re}=re;return(Re?.setImmediate||Z)(..._e)},clearImmediate(_e){const{delegate:Re}=re;return(Re?.clearImmediate||ee)(_e)},delegate:void 0};var se=C(2631);const oe=new class te extends se.v{flush(Re){this._active=!0;const mt=this._scheduled;this._scheduled=void 0;const{actions:Ge}=this;let Lt;Re=Re||Ge.shift();do{if(Lt=Re.execute(Re.state,Re.delay))break}while((Re=Ge[0])&&Re.id===mt&&Ge.shift());if(this._active=!1,Lt){for(;(Re=Ge[0])&&Re.id===mt&&Ge.shift();)Re.unsubscribe();throw Lt}}}(class ue extends e.o{constructor(Re,mt){super(Re,mt),this.scheduler=Re,this.work=mt}requestAsyncId(Re,mt,Ge=0){return null!==Ge&&Ge>0?super.requestAsyncId(Re,mt,Ge):(Re.actions.push(this),Re._scheduled||(Re._scheduled=re.setImmediate(Re.flush.bind(Re,void 0))))}recycleAsyncId(Re,mt,Ge=0){var Lt;if(null!=Ge?Ge>0:this.delay>0)return super.recycleAsyncId(Re,mt,Ge);const{actions:je}=Re;null!=mt&&(null===(Lt=je[je.length-1])||void 0===Lt?void 0:Lt.id)!==mt&&(re.clearImmediate(mt),Re._scheduled===mt&&(Re._scheduled=void 0))}})},6321:(ft,Ie,C)=>{"use strict";C.d(Ie,{P:()=>I,z:()=>D});var e=C(1954);const D=new(C(2631).v)(e.o),I=D},4552:(ft,Ie,C)=>{"use strict";C.d(Ie,{l:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},7599:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>e});const e={setTimeout(l,D,...I){const{delegate:S}=e;return S?.setTimeout?S.setTimeout(l,D,...I):setTimeout(l,D,...I)},clearTimeout(l){const{delegate:D}=e;return(D?.clearTimeout||clearTimeout)(l)},delegate:void 0}},4971:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>l});const l=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(ft,Ie,C)=>{"use strict";C.d(Ie,{L:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},6973:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>l});const l=(0,C(2306).d)(D=>function(){D(this),this.name="EmptyError",this.message="no elements in sequence"})},9940:(ft,Ie,C)=>{"use strict";C.d(Ie,{_6:()=>w,jO:()=>I,yG:()=>S});var e=C(4674),l=C(671);function D(n){return n[n.length-1]}function I(n){return(0,e.m)(D(n))?n.pop():void 0}function S(n){return(0,l.K)(D(n))?n.pop():void 0}function w(n,Z){return"number"==typeof D(n)?n.pop():Z}},7453:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>S});const{isArray:e}=Array,{getPrototypeOf:l,prototype:D,keys:I}=Object;function S(n){if(1===n.length){const Z=n[0];if(e(Z))return{args:Z,keys:null};if(function w(n){return n&&"object"==typeof n&&l(n)===D}(Z)){const ee=I(Z);return{args:ee.map(re=>Z[re]),keys:ee}}}return{args:n,keys:null}}},9039:(ft,Ie,C)=>{"use strict";function e(l,D){if(l){const I=l.indexOf(D);0<=I&&l.splice(I,1)}}C.d(Ie,{P:()=>e})},2306:(ft,Ie,C)=>{"use strict";function e(l){const I=l(S=>{Error.call(S),S.stack=(new Error).stack});return I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I}C.d(Ie,{d:()=>e})},2714:(ft,Ie,C)=>{"use strict";function e(l,D){return l.reduce((I,S,w)=>(I[S]=D[w],I),{})}C.d(Ie,{n:()=>e})},1441:(ft,Ie,C)=>{"use strict";C.d(Ie,{O:()=>I,x:()=>D});var e=C(2653);let l=null;function D(S){if(e.config.useDeprecatedSynchronousErrorHandling){const w=!l;if(w&&(l={errorThrown:!1,error:null}),S(),w){const{errorThrown:n,error:Z}=l;if(l=null,n)throw Z}}else S()}function I(S){e.config.useDeprecatedSynchronousErrorHandling&&l&&(l.errorThrown=!0,l.error=S)}},7103:(ft,Ie,C)=>{"use strict";function e(l,D,I,S=0,w=!1){const n=D.schedule(function(){I(),w?l.add(this.schedule(null,S)):this.unsubscribe()},S);if(l.add(n),!w)return n}C.d(Ie,{f:()=>e})},2737:(ft,Ie,C)=>{"use strict";function e(l){return l}C.d(Ie,{y:()=>e})},4266:(ft,Ie,C)=>{"use strict";C.d(Ie,{z:()=>e});const e=l=>l&&"number"==typeof l.length&&"function"!=typeof l},5726:(ft,Ie,C)=>{"use strict";C.d(Ie,{D:()=>l});var e=C(4674);function l(D){return Symbol.asyncIterator&&(0,e.m)(D?.[Symbol.asyncIterator])}},4674:(ft,Ie,C)=>{"use strict";function e(l){return"function"==typeof l}C.d(Ie,{m:()=>e})},8382:(ft,Ie,C)=>{"use strict";C.d(Ie,{c:()=>D});var e=C(4850),l=C(4674);function D(I){return(0,l.m)(I[e.L])}},3664:(ft,Ie,C)=>{"use strict";C.d(Ie,{T:()=>D});var e=C(4971),l=C(4674);function D(I){return(0,l.m)(I?.[e.h])}},4026:(ft,Ie,C)=>{"use strict";C.d(Ie,{t:()=>l});var e=C(4674);function l(D){return(0,e.m)(D?.then)}},541:(ft,Ie,C)=>{"use strict";C.d(Ie,{L:()=>I,Q:()=>D});var e=C(7582),l=C(4674);function D(S){return(0,e.FC)(this,arguments,function*(){const n=S.getReader();try{for(;;){const{value:Z,done:ee}=yield(0,e.qq)(n.read());if(ee)return yield(0,e.qq)(void 0);yield yield(0,e.qq)(Z)}}finally{n.releaseLock()}})}function I(S){return(0,l.m)(S?.getReader)}},671:(ft,Ie,C)=>{"use strict";C.d(Ie,{K:()=>l});var e=C(4674);function l(D){return D&&(0,e.m)(D.schedule)}},9360:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>l,e:()=>D});var e=C(4674);function l(I){return(0,e.m)(I?.lift)}function D(I){return S=>{if(l(S))return S.lift(function(w){try{return I(w,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(ft,Ie,C)=>{"use strict";C.d(Ie,{Z:()=>I});var e=C(7398);const{isArray:l}=Array;function I(S){return(0,e.U)(w=>function D(S,w){return l(w)?S(...w):S(w)}(S,w))}},2420:(ft,Ie,C)=>{"use strict";function e(){}C.d(Ie,{Z:()=>e})},8407:(ft,Ie,C)=>{"use strict";C.d(Ie,{U:()=>D,z:()=>l});var e=C(2737);function l(...I){return D(I)}function D(I){return 0===I.length?e.y:1===I.length?I[0]:function(w){return I.reduce((n,Z)=>Z(n),w)}}},3894:(ft,Ie,C)=>{"use strict";C.d(Ie,{h:()=>D});var e=C(2653),l=C(7599);function D(I){l.z.setTimeout(()=>{const{onUnhandledError:S}=e.config;if(!S)throw I;S(I)})}},9853:(ft,Ie,C)=>{"use strict";function e(l){return new TypeError(`You provided ${null!==l&&"object"==typeof l?"an invalid object":`'${l}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(Ie,{z:()=>e})},6700:(ft,Ie,C)=>{var e={"./af":3274,"./af.js":3274,"./ar":2097,"./ar-dz":1867,"./ar-dz.js":1867,"./ar-kw":7078,"./ar-kw.js":7078,"./ar-ly":7776,"./ar-ly.js":7776,"./ar-ma":6789,"./ar-ma.js":6789,"./ar-sa":6897,"./ar-sa.js":6897,"./ar-tn":1585,"./ar-tn.js":1585,"./ar.js":2097,"./az":5611,"./az.js":5611,"./be":2459,"./be.js":2459,"./bg":1825,"./bg.js":1825,"./bm":5918,"./bm.js":5918,"./bn":4065,"./bn-bd":9683,"./bn-bd.js":9683,"./bn.js":4065,"./bo":1034,"./bo.js":1034,"./br":7671,"./br.js":7671,"./bs":8153,"./bs.js":8153,"./ca":4287,"./ca.js":4287,"./cs":2616,"./cs.js":2616,"./cv":7049,"./cv.js":7049,"./cy":9172,"./cy.js":9172,"./da":605,"./da.js":605,"./de":4013,"./de-at":3395,"./de-at.js":3395,"./de-ch":9835,"./de-ch.js":9835,"./de.js":4013,"./dv":4570,"./dv.js":4570,"./el":1859,"./el.js":1859,"./en-au":5785,"./en-au.js":5785,"./en-ca":3792,"./en-ca.js":3792,"./en-gb":7651,"./en-gb.js":7651,"./en-ie":1929,"./en-ie.js":1929,"./en-il":9818,"./en-il.js":9818,"./en-in":6612,"./en-in.js":6612,"./en-nz":4900,"./en-nz.js":4900,"./en-sg":2721,"./en-sg.js":2721,"./eo":6570,"./eo.js":6570,"./es":1148,"./es-do":1780,"./es-do.js":1780,"./es-mx":3468,"./es-mx.js":3468,"./es-us":4938,"./es-us.js":4938,"./es.js":1148,"./et":1453,"./et.js":1453,"./eu":4697,"./eu.js":4697,"./fa":2900,"./fa.js":2900,"./fi":9775,"./fi.js":9775,"./fil":4282,"./fil.js":4282,"./fo":4236,"./fo.js":4236,"./fr":9361,"./fr-ca":2830,"./fr-ca.js":2830,"./fr-ch":1412,"./fr-ch.js":1412,"./fr.js":9361,"./fy":6984,"./fy.js":6984,"./ga":3961,"./ga.js":3961,"./gd":8849,"./gd.js":8849,"./gl":4273,"./gl.js":4273,"./gom-deva":623,"./gom-deva.js":623,"./gom-latn":2696,"./gom-latn.js":2696,"./gu":6928,"./gu.js":6928,"./he":4804,"./he.js":4804,"./hi":3015,"./hi.js":3015,"./hr":7134,"./hr.js":7134,"./hu":670,"./hu.js":670,"./hy-am":4523,"./hy-am.js":4523,"./id":9233,"./id.js":9233,"./is":4693,"./is.js":4693,"./it":3936,"./it-ch":8118,"./it-ch.js":8118,"./it.js":3936,"./ja":6871,"./ja.js":6871,"./jv":8710,"./jv.js":8710,"./ka":7125,"./ka.js":7125,"./kk":2461,"./kk.js":2461,"./km":7399,"./km.js":7399,"./kn":8720,"./kn.js":8720,"./ko":5306,"./ko.js":5306,"./ku":2995,"./ku.js":2995,"./ky":8779,"./ky.js":8779,"./lb":2057,"./lb.js":2057,"./lo":7192,"./lo.js":7192,"./lt":5430,"./lt.js":5430,"./lv":3363,"./lv.js":3363,"./me":2939,"./me.js":2939,"./mi":8212,"./mi.js":8212,"./mk":9718,"./mk.js":9718,"./ml":561,"./ml.js":561,"./mn":8929,"./mn.js":8929,"./mr":4880,"./mr.js":4880,"./ms":3193,"./ms-my":2074,"./ms-my.js":2074,"./ms.js":3193,"./mt":4082,"./mt.js":4082,"./my":2261,"./my.js":2261,"./nb":5273,"./nb.js":5273,"./ne":9874,"./ne.js":9874,"./nl":1667,"./nl-be":1484,"./nl-be.js":1484,"./nl.js":1667,"./nn":7262,"./nn.js":7262,"./oc-lnc":9679,"./oc-lnc.js":9679,"./pa-in":6830,"./pa-in.js":6830,"./pl":3616,"./pl.js":3616,"./pt":5138,"./pt-br":2751,"./pt-br.js":2751,"./pt.js":5138,"./ro":7968,"./ro.js":7968,"./ru":1828,"./ru.js":1828,"./sd":2188,"./sd.js":2188,"./se":6562,"./se.js":6562,"./si":7172,"./si.js":7172,"./sk":9966,"./sk.js":9966,"./sl":7520,"./sl.js":7520,"./sq":5291,"./sq.js":5291,"./sr":450,"./sr-cyrl":7603,"./sr-cyrl.js":7603,"./sr.js":450,"./ss":383,"./ss.js":383,"./sv":7221,"./sv.js":7221,"./sw":1743,"./sw.js":1743,"./ta":6351,"./ta.js":6351,"./te":9620,"./te.js":9620,"./tet":6278,"./tet.js":6278,"./tg":6987,"./tg.js":6987,"./th":9325,"./th.js":9325,"./tk":3485,"./tk.js":3485,"./tl-ph":8148,"./tl-ph.js":8148,"./tlh":9616,"./tlh.js":9616,"./tr":4040,"./tr.js":4040,"./tzl":594,"./tzl.js":594,"./tzm":673,"./tzm-latn":3226,"./tzm-latn.js":3226,"./tzm.js":673,"./ug-cn":9580,"./ug-cn.js":9580,"./uk":7270,"./uk.js":7270,"./ur":1656,"./ur.js":1656,"./uz":8364,"./uz-latn":8744,"./uz-latn.js":8744,"./uz.js":8364,"./vi":5049,"./vi.js":5049,"./x-pseudo":5106,"./x-pseudo.js":5106,"./yo":6199,"./yo.js":6199,"./zh-cn":7280,"./zh-cn.js":7280,"./zh-hk":6860,"./zh-hk.js":6860,"./zh-mo":2335,"./zh-mo.js":2335,"./zh-tw":482,"./zh-tw.js":482};function l(I){var S=D(I);return C(S)}function D(I){if(!C.o(e,I)){var S=new Error("Cannot find module '"+I+"'");throw S.code="MODULE_NOT_FOUND",S}return e[I]}l.keys=function(){return Object.keys(e)},l.resolve=D,ft.exports=l,l.id=6700},9334:()=>{},6825:(ft,Ie,C)=>{"use strict";C.d(Ie,{IO:()=>ce,LC:()=>l,SB:()=>ee,X$:()=>I,ZE:()=>mt,ZN:()=>Re,_j:()=>e,eR:()=>ue,jt:()=>S,k1:()=>Ge,l3:()=>D,oB:()=>Z,pV:()=>te,ru:()=>w,vP:()=>n});class e{}class l{}const D="*";function I(Lt,je){return{type:7,name:Lt,definitions:je,options:{}}}function S(Lt,je=null){return{type:4,styles:je,timings:Lt}}function w(Lt,je=null){return{type:3,steps:Lt,options:je}}function n(Lt,je=null){return{type:2,steps:Lt,options:je}}function Z(Lt){return{type:6,styles:Lt,offset:null}}function ee(Lt,je,Tt){return{type:0,name:Lt,styles:je,options:Tt}}function ue(Lt,je,Tt=null){return{type:1,expr:Lt,animation:je,options:Tt}}function te(Lt=null){return{type:9,options:Lt}}function ce(Lt,je,Tt=null){return{type:11,selector:Lt,animation:je,options:Tt}}class Re{constructor(je=0,Tt=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=je+Tt}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(je=>je()),this._onDoneFns=[])}onStart(je){this._originalOnStartFns.push(je),this._onStartFns.push(je)}onDone(je){this._originalOnDoneFns.push(je),this._onDoneFns.push(je)}onDestroy(je){this._onDestroyFns.push(je)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(je=>je()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(je=>je()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(je){this._position=this.totalTime?je*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(je){const Tt="start"==je?this._onStartFns:this._onDoneFns;Tt.forEach(xt=>xt()),Tt.length=0}}class mt{constructor(je){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=je;let Tt=0,xt=0,St=0;const Zt=this.players.length;0==Zt?queueMicrotask(()=>this._onFinish()):this.players.forEach(yt=>{yt.onDone(()=>{++Tt==Zt&&this._onFinish()}),yt.onDestroy(()=>{++xt==Zt&&this._onDestroy()}),yt.onStart(()=>{++St==Zt&&this._onStart()})}),this.totalTime=this.players.reduce((yt,un)=>Math.max(yt,un.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(je=>je()),this._onDoneFns=[])}init(){this.players.forEach(je=>je.init())}onStart(je){this._onStartFns.push(je)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(je=>je()),this._onStartFns=[])}onDone(je){this._onDoneFns.push(je)}onDestroy(je){this._onDestroyFns.push(je)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(je=>je.play())}pause(){this.players.forEach(je=>je.pause())}restart(){this.players.forEach(je=>je.restart())}finish(){this._onFinish(),this.players.forEach(je=>je.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(je=>je.destroy()),this._onDestroyFns.forEach(je=>je()),this._onDestroyFns=[])}reset(){this.players.forEach(je=>je.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(je){const Tt=je*this.totalTime;this.players.forEach(xt=>{const St=xt.totalTime?Math.min(1,Tt/xt.totalTime):1;xt.setPosition(St)})}getPosition(){const je=this.players.reduce((Tt,xt)=>null===Tt||xt.totalTime>Tt.totalTime?xt:Tt,null);return null!=je?je.getPosition():0}beforeDestroy(){this.players.forEach(je=>{je.beforeDestroy&&je.beforeDestroy()})}triggerCallback(je){const Tt="start"==je?this._onStartFns:this._onDoneFns;Tt.forEach(xt=>xt()),Tt.length=0}}const Ge="!"},4300:(ft,Ie,C)=>{"use strict";C.d(Ie,{$s:()=>Jt,Em:()=>ti,Kd:()=>Bt,X6:()=>Ve,Zf:()=>je,iD:()=>Tt,ic:()=>Rn,kH:()=>jn,qV:()=>nn,qm:()=>Jn,rt:()=>qt,s1:()=>Yn,tE:()=>An,yG:()=>ct});var e=C(6814),l=C(5879),D=C(2831),I=C(8645),S=C(7394),w=C(5619),n=C(2096),Z=C(6028),ee=C(9397),re=C(3620),ue=C(2181),se=C(7398),te=C(8180),oe=C(836),ce=C(3997),_e=C(9773),Re=C(2605),mt=C(7131),Ge=C(1088);const Lt=" ";function je(_t,G,U){const ve=xt(_t,G);ve.some(Pe=>Pe.trim()==U.trim())||(ve.push(U.trim()),_t.setAttribute(G,ve.join(Lt)))}function Tt(_t,G,U){const Pe=xt(_t,G).filter(ut=>ut!=U.trim());Pe.length?_t.setAttribute(G,Pe.join(Lt)):_t.removeAttribute(G)}function xt(_t,G){return(_t.getAttribute(G)||"").match(/\S+/g)||[]}const Zt="cdk-describedby-message",yt="cdk-describedby-host";let un=0,Jt=(()=>{class _t{constructor(U,ve){this._platform=ve,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+un++,this._document=U,this._id=(0,l.f3M)(l.AFp)+"-"+un++}describe(U,ve,Pe){if(!this._canBeDescribed(U,ve))return;const ut=tn(ve,Pe);"string"!=typeof ve?(wn(ve,this._id),this._messageRegistry.set(ut,{messageElement:ve,referenceCount:0})):this._messageRegistry.has(ut)||this._createMessageElement(ve,Pe),this._isElementDescribedByMessage(U,ut)||this._addMessageReference(U,ut)}removeDescription(U,ve,Pe){if(!ve||!this._isElementNode(U))return;const ut=tn(ve,Pe);if(this._isElementDescribedByMessage(U,ut)&&this._removeMessageReference(U,ut),"string"==typeof ve){const We=this._messageRegistry.get(ut);We&&0===We.referenceCount&&this._deleteMessageElement(ut)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const U=this._document.querySelectorAll(`[${yt}="${this._id}"]`);for(let ve=0;ve0!=Pe.indexOf(Zt));U.setAttribute("aria-describedby",ve.join(" "))}_addMessageReference(U,ve){const Pe=this._messageRegistry.get(ve);je(U,"aria-describedby",Pe.messageElement.id),U.setAttribute(yt,this._id),Pe.referenceCount++}_removeMessageReference(U,ve){const Pe=this._messageRegistry.get(ve);Pe.referenceCount--,Tt(U,"aria-describedby",Pe.messageElement.id),U.removeAttribute(yt)}_isElementDescribedByMessage(U,ve){const Pe=xt(U,"aria-describedby"),ut=this._messageRegistry.get(ve),We=ut&&ut.messageElement.id;return!!We&&-1!=Pe.indexOf(We)}_canBeDescribed(U,ve){if(!this._isElementNode(U))return!1;if(ve&&"object"==typeof ve)return!0;const Pe=null==ve?"":`${ve}`.trim(),ut=U.getAttribute("aria-label");return!(!Pe||ut&&ut.trim()===Pe)}_isElementNode(U){return U.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(e.K0),l.LFG(D.t4))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function tn(_t,G){return"string"==typeof _t?`${G||""}/${_t}`:_t}function wn(_t,G){_t.id||(_t.id=`${Zt}-${G}-${un++}`)}class Ln{constructor(G){this._items=G,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new I.x,this._typeaheadSubscription=S.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=U=>U.disabled,this._pressedLetters=[],this.tabOut=new I.x,this.change=new I.x,G instanceof l.n_E&&(this._itemChangesSubscription=G.changes.subscribe(U=>{if(this._activeItem){const Pe=U.toArray().indexOf(this._activeItem);Pe>-1&&Pe!==this._activeItemIndex&&(this._activeItemIndex=Pe)}}))}skipPredicate(G){return this._skipPredicateFn=G,this}withWrap(G=!0){return this._wrap=G,this}withVerticalOrientation(G=!0){return this._vertical=G,this}withHorizontalOrientation(G){return this._horizontal=G,this}withAllowedModifierKeys(G){return this._allowedModifierKeys=G,this}withTypeAhead(G=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,ee.b)(U=>this._pressedLetters.push(U)),(0,re.b)(G),(0,ue.h)(()=>this._pressedLetters.length>0),(0,se.U)(()=>this._pressedLetters.join(""))).subscribe(U=>{const ve=this._getItemsArray();for(let Pe=1;Pe!G[ut]||this._allowedModifierKeys.indexOf(ut)>-1);switch(U){case Z.Mf:return void this.tabOut.next();case Z.JH:if(this._vertical&&Pe){this.setNextItemActive();break}return;case Z.LH:if(this._vertical&&Pe){this.setPreviousItemActive();break}return;case Z.SV:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Z.oh:if(this._horizontal&&Pe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Z.Sd:if(this._homeAndEnd&&Pe){this.setFirstItemActive();break}return;case Z.uR:if(this._homeAndEnd&&Pe){this.setLastItemActive();break}return;case Z.Ku:if(this._pageUpAndDown.enabled&&Pe){const ut=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(ut>0?ut:0,1);break}return;case Z.VM:if(this._pageUpAndDown.enabled&&Pe){const ut=this._activeItemIndex+this._pageUpAndDown.delta,We=this._getItemsArray().length;this._setActiveItemByIndex(ut=Z.A&&U<=Z.Z||U>=Z.xE&&U<=Z.aO)&&this._letterKeyStream.next(String.fromCharCode(U))))}this._pressedLetters=[],G.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(G){const U=this._getItemsArray(),ve="number"==typeof G?G:U.indexOf(G);this._activeItem=U[ve]??null,this._activeItemIndex=ve}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(G){this._wrap?this._setActiveInWrapMode(G):this._setActiveInDefaultMode(G)}_setActiveInWrapMode(G){const U=this._getItemsArray();for(let ve=1;ve<=U.length;ve++){const Pe=(this._activeItemIndex+G*ve+U.length)%U.length;if(!this._skipPredicateFn(U[Pe]))return void this.setActiveItem(Pe)}}_setActiveInDefaultMode(G){this._setActiveItemByIndex(this._activeItemIndex+G,G)}_setActiveItemByIndex(G,U){const ve=this._getItemsArray();if(ve[G]){for(;this._skipPredicateFn(ve[G]);)if(!ve[G+=U])return;this.setActiveItem(G)}}_getItemsArray(){return this._items instanceof l.n_E?this._items.toArray():this._items}}class Yn extends Ln{setActiveItem(G){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(G),this.activeItem&&this.activeItem.setActiveStyles()}}class ti extends Ln{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(G){return this._origin=G,this}setActiveItem(G){super.setActiveItem(G),this.activeItem&&this.activeItem.focus(this._origin)}}let Rn=(()=>{class _t{constructor(U){this._platform=U}isDisabled(U){return U.hasAttribute("disabled")}isVisible(U){return function at(_t){return!!(_t.offsetWidth||_t.offsetHeight||"function"==typeof _t.getClientRects&&_t.getClientRects().length)}(U)&&"visible"===getComputedStyle(U).visibility}isTabbable(U){if(!this._platform.isBrowser)return!1;const ve=function dt(_t){try{return _t.frameElement}catch{return null}}(function Nt(_t){return _t.ownerDocument&&_t.ownerDocument.defaultView||window}(U));if(ve&&(-1===Ze(ve)||!this.isVisible(ve)))return!1;let Pe=U.nodeName.toLowerCase(),ut=Ze(U);return U.hasAttribute("contenteditable")?-1!==ut:!("iframe"===Pe||"object"===Pe||this._platform.WEBKIT&&this._platform.IOS&&!function rt(_t){let G=_t.nodeName.toLowerCase(),U="input"===G&&_t.type;return"text"===U||"password"===U||"select"===G||"textarea"===G}(U))&&("audio"===Pe?!!U.hasAttribute("controls")&&-1!==ut:"video"===Pe?-1!==ut&&(null!==ut||this._platform.FIREFOX||U.hasAttribute("controls")):U.tabIndex>=0)}isFocusable(U,ve){return function bt(_t){return!function Ee(_t){return function me(_t){return"input"==_t.nodeName.toLowerCase()}(_t)&&"hidden"==_t.type}(_t)&&(function Be(_t){let G=_t.nodeName.toLowerCase();return"input"===G||"select"===G||"button"===G||"textarea"===G}(_t)||function $e(_t){return function tt(_t){return"a"==_t.nodeName.toLowerCase()}(_t)&&_t.hasAttribute("href")}(_t)||_t.hasAttribute("contenteditable")||he(_t))}(U)&&!this.isDisabled(U)&&(ve?.ignoreVisibility||this.isVisible(U))}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function he(_t){if(!_t.hasAttribute("tabindex")||void 0===_t.tabIndex)return!1;let G=_t.getAttribute("tabindex");return!(!G||isNaN(parseInt(G,10)))}function Ze(_t){if(!he(_t))return null;const G=parseInt(_t.getAttribute("tabindex")||"",10);return isNaN(G)?-1:G}class Qt{get enabled(){return this._enabled}set enabled(G){this._enabled=G,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}constructor(G,U,ve,Pe,ut=!1){this._element=G,this._checker=U,this._ngZone=ve,this._document=Pe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ut||this.attachAnchors()}destroy(){const G=this._startAnchor,U=this._endAnchor;G&&(G.removeEventListener("focus",this.startAnchorListener),G.remove()),U&&(U.removeEventListener("focus",this.endAnchorListener),U.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(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusInitialElement(G)))})}focusFirstTabbableElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusFirstTabbableElement(G)))})}focusLastTabbableElementWhenReady(G){return new Promise(U=>{this._executeOnStable(()=>U(this.focusLastTabbableElement(G)))})}_getRegionBoundary(G){const U=this._element.querySelectorAll(`[cdk-focus-region-${G}], [cdkFocusRegion${G}], [cdk-focus-${G}]`);return"start"==G?U.length?U[0]:this._getFirstTabbableElement(this._element):U.length?U[U.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(G){const U=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(U){if(!this._checker.isFocusable(U)){const ve=this._getFirstTabbableElement(U);return ve?.focus(G),!!ve}return U.focus(G),!0}return this.focusFirstTabbableElement(G)}focusFirstTabbableElement(G){const U=this._getRegionBoundary("start");return U&&U.focus(G),!!U}focusLastTabbableElement(G){const U=this._getRegionBoundary("end");return U&&U.focus(G),!!U}hasAttached(){return this._hasAttached}_getFirstTabbableElement(G){if(this._checker.isFocusable(G)&&this._checker.isTabbable(G))return G;const U=G.children;for(let ve=0;ve=0;ve--){const Pe=U[ve].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(U[ve]):null;if(Pe)return Pe}return null}_createAnchor(){const G=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,G),G.classList.add("cdk-visually-hidden"),G.classList.add("cdk-focus-trap-anchor"),G.setAttribute("aria-hidden","true"),G}_toggleAnchorTabIndex(G,U){G?U.setAttribute("tabindex","0"):U.removeAttribute("tabindex")}toggleAnchors(G){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(G,this._startAnchor),this._toggleAnchorTabIndex(G,this._endAnchor))}_executeOnStable(G){this._ngZone.isStable?G():this._ngZone.onStable.pipe((0,te.q)(1)).subscribe(G)}}let nn=(()=>{class _t{constructor(U,ve,Pe){this._checker=U,this._ngZone=ve,this._document=Pe}create(U,ve=!1){return new Qt(U,this._checker,this._ngZone,this._document,ve)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(Rn),l.LFG(l.R0b),l.LFG(e.K0))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();function Ve(_t){return 0===_t.buttons||0===_t.detail}function ct(_t){const G=_t.touches&&_t.touches[0]||_t.changedTouches&&_t.changedTouches[0];return!(!G||-1!==G.identifier||null!=G.radiusX&&1!==G.radiusX||null!=G.radiusY&&1!==G.radiusY)}const Ct=new l.OlP("cdk-input-modality-detector-options"),Ce={ignoreKeys:[Z.zL,Z.jx,Z.b2,Z.MW,Z.JU]},ae=(0,D.i$)({passive:!0,capture:!0});let Oe=(()=>{class _t{get mostRecentModality(){return this._modality.value}constructor(U,ve,Pe,ut){this._platform=U,this._mostRecentTarget=null,this._modality=new w.X(null),this._lastTouchMs=0,this._onKeydown=We=>{this._options?.ignoreKeys?.some(ze=>ze===We.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,D.sA)(We))},this._onMousedown=We=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ve(We)?"keyboard":"mouse"),this._mostRecentTarget=(0,D.sA)(We))},this._onTouchstart=We=>{ct(We)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,D.sA)(We))},this._options={...Ce,...ut},this.modalityDetected=this._modality.pipe((0,oe.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,ce.x)()),U.isBrowser&&ve.runOutsideAngular(()=>{Pe.addEventListener("keydown",this._onKeydown,ae),Pe.addEventListener("mousedown",this._onMousedown,ae),Pe.addEventListener("touchstart",this._onTouchstart,ae)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ae),document.removeEventListener("mousedown",this._onMousedown,ae),document.removeEventListener("touchstart",this._onTouchstart,ae))}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4),l.LFG(l.R0b),l.LFG(e.K0),l.LFG(Ct,8))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();const ot=new l.OlP("liveAnnouncerElement",{providedIn:"root",factory:function Se(){return null}}),Ft=new l.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let lt=0,Bt=(()=>{class _t{constructor(U,ve,Pe,ut){this._ngZone=ve,this._defaultOptions=ut,this._document=Pe,this._liveElement=U||this._createLiveElement()}announce(U,...ve){const Pe=this._defaultOptions;let ut,We;return 1===ve.length&&"number"==typeof ve[0]?We=ve[0]:[ut,We]=ve,this.clear(),clearTimeout(this._previousTimeout),ut||(ut=Pe&&Pe.politeness?Pe.politeness:"polite"),null==We&&Pe&&(We=Pe.duration),this._liveElement.setAttribute("aria-live",ut),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(ze=>this._currentResolve=ze)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=U,"number"==typeof We&&(this._previousTimeout=setTimeout(()=>this.clear(),We)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const U="cdk-live-announcer-element",ve=this._document.getElementsByClassName(U),Pe=this._document.createElement("div");for(let ut=0;ut .cdk-overlay-container [aria-modal="true"]');for(let Pe=0;Pe{class _t{constructor(U,ve,Pe,ut,We){this._ngZone=U,this._platform=ve,this._inputModalityDetector=Pe,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 I.x,this._rootNodeFocusAndBlurListener=ze=>{for(let Te=(0,D.sA)(ze);Te;Te=Te.parentElement)"focus"===ze.type?this._onFocus(ze,Te):this._onBlur(ze,Te)},this._document=ut,this._detectionMode=We?.detectionMode||0}monitor(U,ve=!1){const Pe=(0,Re.fI)(U);if(!this._platform.isBrowser||1!==Pe.nodeType)return(0,n.of)();const ut=(0,D.kV)(Pe)||this._getDocument(),We=this._elementInfo.get(Pe);if(We)return ve&&(We.checkChildren=!0),We.subject;const ze={checkChildren:ve,subject:new I.x,rootNode:ut};return this._elementInfo.set(Pe,ze),this._registerGlobalListeners(ze),ze.subject}stopMonitoring(U){const ve=(0,Re.fI)(U),Pe=this._elementInfo.get(ve);Pe&&(Pe.subject.complete(),this._setClasses(ve),this._elementInfo.delete(ve),this._removeGlobalListeners(Pe))}focusVia(U,ve,Pe){const ut=(0,Re.fI)(U);ut===this._getDocument().activeElement?this._getClosestElementsInfo(ut).forEach(([ze,be])=>this._originChanged(ze,ve,be)):(this._setOrigin(ve),"function"==typeof ut.focus&&ut.focus(Pe))}ngOnDestroy(){this._elementInfo.forEach((U,ve)=>this.stopMonitoring(ve))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(U){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(U)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:U&&this._isLastInteractionFromInputLabel(U)?"mouse":"program"}_shouldBeAttributedToTouch(U){return 1===this._detectionMode||!!U?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(U,ve){U.classList.toggle("cdk-focused",!!ve),U.classList.toggle("cdk-touch-focused","touch"===ve),U.classList.toggle("cdk-keyboard-focused","keyboard"===ve),U.classList.toggle("cdk-mouse-focused","mouse"===ve),U.classList.toggle("cdk-program-focused","program"===ve)}_setOrigin(U,ve=!1){this._ngZone.runOutsideAngular(()=>{this._origin=U,this._originFromTouchInteraction="touch"===U&&ve,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(U,ve){const Pe=this._elementInfo.get(ve),ut=(0,D.sA)(U);!Pe||!Pe.checkChildren&&ve!==ut||this._originChanged(ve,this._getFocusOrigin(ut),Pe)}_onBlur(U,ve){const Pe=this._elementInfo.get(ve);!Pe||Pe.checkChildren&&U.relatedTarget instanceof Node&&ve.contains(U.relatedTarget)||(this._setClasses(ve),this._emitOrigin(Pe,null))}_emitOrigin(U,ve){U.subject.observers.length&&this._ngZone.run(()=>U.subject.next(ve))}_registerGlobalListeners(U){if(!this._platform.isBrowser)return;const ve=U.rootNode,Pe=this._rootNodeFocusListenerCount.get(ve)||0;Pe||this._ngZone.runOutsideAngular(()=>{ve.addEventListener("focus",this._rootNodeFocusAndBlurListener,gn),ve.addEventListener("blur",this._rootNodeFocusAndBlurListener,gn)}),this._rootNodeFocusListenerCount.set(ve,Pe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,_e.R)(this._stopInputModalityDetector)).subscribe(ut=>{this._setOrigin(ut,!0)}))}_removeGlobalListeners(U){const ve=U.rootNode;if(this._rootNodeFocusListenerCount.has(ve)){const Pe=this._rootNodeFocusListenerCount.get(ve);Pe>1?this._rootNodeFocusListenerCount.set(ve,Pe-1):(ve.removeEventListener("focus",this._rootNodeFocusAndBlurListener,gn),ve.removeEventListener("blur",this._rootNodeFocusAndBlurListener,gn),this._rootNodeFocusListenerCount.delete(ve))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(U,ve,Pe){this._setClasses(U,ve),this._emitOrigin(Pe,ve),this._lastFocusOrigin=ve}_getClosestElementsInfo(U){const ve=[];return this._elementInfo.forEach((Pe,ut)=>{(ut===U||Pe.checkChildren&&ut.contains(U))&&ve.push([ut,Pe])}),ve}_isLastInteractionFromInputLabel(U){const{_mostRecentTarget:ve,mostRecentModality:Pe}=this._inputModalityDetector;if("mouse"!==Pe||!ve||ve===U||"INPUT"!==U.nodeName&&"TEXTAREA"!==U.nodeName||U.disabled)return!1;const ut=U.labels;if(ut)for(let We=0;We{class _t{constructor(U,ve){this._elementRef=U,this._focusMonitor=ve,this._focusOrigin=null,this.cdkFocusChange=new l.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const U=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(U,1===U.nodeType&&U.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ve=>{this._focusOrigin=ve,this.cdkFocusChange.emit(ve)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.Y36(l.SBq),l.Y36(An))};static#t=this.\u0275dir=l.lG2({type:_t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return _t})();const ai="cdk-high-contrast-black-on-white",di="cdk-high-contrast-white-on-black",oi="cdk-high-contrast-active";let Jn=(()=>{class _t{constructor(U,ve){this._platform=U,this._document=ve,this._breakpointSubscription=(0,l.f3M)(Ge.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const U=this._document.createElement("div");U.style.backgroundColor="rgb(1,2,3)",U.style.position="absolute",this._document.body.appendChild(U);const ve=this._document.defaultView||window,Pe=ve&&ve.getComputedStyle?ve.getComputedStyle(U):null,ut=(Pe&&Pe.backgroundColor||"").replace(/ /g,"");switch(U.remove(),ut){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const U=this._document.body.classList;U.remove(oi,ai,di),this._hasCheckedHighContrastMode=!0;const ve=this.getHighContrastMode();1===ve?U.add(oi,ai):2===ve&&U.add(oi,di)}}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(D.t4),l.LFG(e.K0))};static#t=this.\u0275prov=l.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})(),qt=(()=>{class _t{constructor(U){U._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(ve){return new(ve||_t)(l.LFG(Jn))};static#t=this.\u0275mod=l.oAB({type:_t});static#n=this.\u0275inj=l.cJS({imports:[mt.Q8]})}return _t})()},9388:(ft,Ie,C)=>{"use strict";C.d(Ie,{Is:()=>n,Lv:()=>Z,vT:()=>ee});var e=C(5879),l=C(6814);const D=new e.OlP("cdk-dir-doc",{providedIn:"root",factory:function I(){return(0,e.f3M)(l.K0)}}),S=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function w(re){const ue=re?.toLowerCase()||"";return"auto"===ue&&typeof navigator<"u"&&navigator?.language?S.test(navigator.language)?"rtl":"ltr":"rtl"===ue?"rtl":"ltr"}let n=(()=>{class re{constructor(se){this.value="ltr",this.change=new e.vpe,se&&(this.value=w((se.body?se.body.dir:null)||(se.documentElement?se.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(te){return new(te||re)(e.LFG(D,8))};static#t=this.\u0275prov=e.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),Z=(()=>{class re{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new e.vpe}get dir(){return this._dir}set dir(se){const te=this._dir;this._dir=w(se),this._rawDir=se,te!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275dir=e.lG2({type:re,selectors:[["","dir",""]],hostVars:1,hostBindings:function(te,oe){2&te&&e.uIk("dir",oe._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[e._Bn([{provide:n,useExisting:re}])]})}return re})(),ee=(()=>{class re{static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275mod=e.oAB({type:re});static#n=this.\u0275inj=e.cJS({})}return re})()},2605:(ft,Ie,C)=>{"use strict";C.d(Ie,{Eq:()=>S,HM:()=>w,Ig:()=>l,du:()=>Z,fI:()=>n,su:()=>D});var e=C(5879);function l(ee){return null!=ee&&"false"!=`${ee}`}function D(ee,re=0){return function I(ee){return!isNaN(parseFloat(ee))&&!isNaN(Number(ee))}(ee)?Number(ee):re}function S(ee){return Array.isArray(ee)?ee:[ee]}function w(ee){return null==ee?"":"string"==typeof ee?ee:`${ee}px`}function n(ee){return ee instanceof e.SBq?ee.nativeElement:ee}function Z(ee,re=/\s+/){const ue=[];if(null!=ee){const se=Array.isArray(ee)?ee:`${ee}`.split(re);for(const te of se){const oe=`${te}`.trim();oe&&ue.push(oe)}}return ue}},8337:(ft,Ie,C)=>{"use strict";C.d(Ie,{A8:()=>re,Ov:()=>Z});var e=C(8645),l=C(5879);class Z{get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}constructor(te=!1,oe,ce=!0,_e){this._multiple=te,this._emitChanges=ce,this.compareWith=_e,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new e.x,oe&&oe.length&&(te?oe.forEach(Re=>this._markSelected(Re)):this._markSelected(oe[0]),this._selectedToEmit.length=0)}select(...te){this._verifyValueAssignment(te),te.forEach(ce=>this._markSelected(ce));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}deselect(...te){this._verifyValueAssignment(te),te.forEach(ce=>this._unmarkSelected(ce));const oe=this._hasQueuedChanges();return this._emitChangeEvent(),oe}setSelection(...te){this._verifyValueAssignment(te);const oe=this.selected,ce=new Set(te);te.forEach(Re=>this._markSelected(Re)),oe.filter(Re=>!ce.has(Re)).forEach(Re=>this._unmarkSelected(Re));const _e=this._hasQueuedChanges();return this._emitChangeEvent(),_e}toggle(te){return this.isSelected(te)?this.deselect(te):this.select(te)}clear(te=!0){this._unmarkAll();const oe=this._hasQueuedChanges();return te&&this._emitChangeEvent(),oe}isSelected(te){return this._selection.has(this._getConcreteValue(te))}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(te){this._multiple&&this.selected&&this._selected.sort(te)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(te){te=this._getConcreteValue(te),this.isSelected(te)||(this._multiple||this._unmarkAll(),this.isSelected(te)||this._selection.add(te),this._emitChanges&&this._selectedToEmit.push(te))}_unmarkSelected(te){te=this._getConcreteValue(te),this.isSelected(te)&&(this._selection.delete(te),this._emitChanges&&this._deselectedToEmit.push(te))}_unmarkAll(){this.isEmpty()||this._selection.forEach(te=>this._unmarkSelected(te))}_verifyValueAssignment(te){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}_getConcreteValue(te){if(this.compareWith){for(let oe of this._selection)if(this.compareWith(te,oe))return oe;return te}return te}}let re=(()=>{class se{constructor(){this._listeners=[]}notify(oe,ce){for(let _e of this._listeners)_e(oe,ce)}listen(oe){return this._listeners.push(oe),()=>{this._listeners=this._listeners.filter(ce=>oe!==ce)}}ngOnDestroy(){this._listeners=[]}static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275prov=l.Yz7({token:se,factory:se.\u0275fac,providedIn:"root"})}return se})()},6028:(ft,Ie,C)=>{"use strict";C.d(Ie,{A:()=>Ee,JH:()=>Lt,JU:()=>w,K5:()=>S,Ku:()=>te,LH:()=>mt,L_:()=>se,MW:()=>Ft,Mf:()=>D,OC:()=>Bi,SV:()=>Ge,Sd:()=>_e,VM:()=>oe,Vb:()=>uo,Z:()=>Se,ZH:()=>l,aO:()=>gi,b2:()=>Fr,hY:()=>ue,jx:()=>n,oh:()=>Re,uR:()=>ce,xE:()=>Zt,yY:()=>St,zL:()=>Z});const l=8,D=9,S=13,w=16,n=17,Z=18,ue=27,se=32,te=33,oe=34,ce=35,_e=36,Re=37,mt=38,Ge=39,Lt=40,St=46,Zt=48,gi=57,Ee=65,Se=90,Ft=91,Bi=188,Fr=224;function uo(ho,...to){return to.length?to.some(yr=>ho[yr]):ho.altKey||ho.shiftKey||ho.ctrlKey||ho.metaKey}},1088:(ft,Ie,C)=>{"use strict";C.d(Ie,{Yg:()=>Lt,u3:()=>Tt});var e=C(5879),l=C(2605),D=C(8645),I=C(2572),S=C(5211),w=C(5592),n=C(8180),Z=C(836),ee=C(3620),re=C(7398),ue=C(7921),se=C(9773),te=C(2831);const ce=new Set;let _e,Re=(()=>{class xt{constructor(Zt,yt){this._platform=Zt,this._nonce=yt,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Ge}matchMedia(Zt){return(this._platform.WEBKIT||this._platform.BLINK)&&function mt(xt,St){if(!ce.has(xt))try{_e||(_e=document.createElement("style"),St&&(_e.nonce=St),_e.setAttribute("type","text/css"),document.head.appendChild(_e)),_e.sheet&&(_e.sheet.insertRule(`@media ${xt} {body{ }}`,0),ce.add(xt))}catch(Zt){console.error(Zt)}}(Zt,this._nonce),this._matchMedia(Zt)}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.LFG(te.t4),e.LFG(e.Ojb,8))};static#t=this.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"})}return xt})();function Ge(xt){return{matches:"all"===xt||""===xt,media:xt,addListener:()=>{},removeListener:()=>{}}}let Lt=(()=>{class xt{constructor(Zt,yt){this._mediaMatcher=Zt,this._zone=yt,this._queries=new Map,this._destroySubject=new D.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Zt){return je((0,l.Eq)(Zt)).some(un=>this._registerQuery(un).mql.matches)}observe(Zt){const un=je((0,l.Eq)(Zt)).map(tn=>this._registerQuery(tn).observable);let Jt=(0,I.a)(un);return Jt=(0,S.z)(Jt.pipe((0,n.q)(1)),Jt.pipe((0,Z.T)(1),(0,ee.b)(0))),Jt.pipe((0,re.U)(tn=>{const wn={matches:!1,breakpoints:{}};return tn.forEach(({matches:Ln,query:Yn})=>{wn.matches=wn.matches||Ln,wn.breakpoints[Yn]=Ln}),wn}))}_registerQuery(Zt){if(this._queries.has(Zt))return this._queries.get(Zt);const yt=this._mediaMatcher.matchMedia(Zt),Jt={observable:new w.y(tn=>{const wn=Ln=>this._zone.run(()=>tn.next(Ln));return yt.addListener(wn),()=>{yt.removeListener(wn)}}).pipe((0,ue.O)(yt),(0,re.U)(({matches:tn})=>({query:Zt,matches:tn})),(0,se.R)(this._destroySubject)),mql:yt};return this._queries.set(Zt,Jt),Jt}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.LFG(Re),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:xt,factory:xt.\u0275fac,providedIn:"root"})}return xt})();function je(xt){return xt.map(St=>St.split(",")).reduce((St,Zt)=>St.concat(Zt)).map(St=>St.trim())}const Tt={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)"}},7131:(ft,Ie,C)=>{"use strict";C.d(Ie,{Q8:()=>ee,wD:()=>Z});var e=C(2605),l=C(5879),D=C(5592),I=C(8645),S=C(3620);let w=(()=>{class re{create(se){return typeof MutationObserver>"u"?null:new MutationObserver(se)}static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275prov=l.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),n=(()=>{class re{constructor(se){this._mutationObserverFactory=se,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((se,te)=>this._cleanupObserver(te))}observe(se){const te=(0,e.fI)(se);return new D.y(oe=>{const _e=this._observeElement(te).subscribe(oe);return()=>{_e.unsubscribe(),this._unobserveElement(te)}})}_observeElement(se){if(this._observedElements.has(se))this._observedElements.get(se).count++;else{const te=new I.x,oe=this._mutationObserverFactory.create(ce=>te.next(ce));oe&&oe.observe(se,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(se,{observer:oe,stream:te,count:1})}return this._observedElements.get(se).stream}_unobserveElement(se){this._observedElements.has(se)&&(this._observedElements.get(se).count--,this._observedElements.get(se).count||this._cleanupObserver(se))}_cleanupObserver(se){if(this._observedElements.has(se)){const{observer:te,stream:oe}=this._observedElements.get(se);te&&te.disconnect(),oe.complete(),this._observedElements.delete(se)}}static#e=this.\u0275fac=function(te){return new(te||re)(l.LFG(w))};static#t=this.\u0275prov=l.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"})}return re})(),Z=(()=>{class re{get disabled(){return this._disabled}set disabled(se){this._disabled=(0,e.Ig)(se),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(se){this._debounce=(0,e.su)(se),this._subscribe()}constructor(se,te,oe){this._contentObserver=se,this._elementRef=te,this._ngZone=oe,this.event=new l.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const se=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?se.pipe((0,S.b)(this.debounce)):se).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(te){return new(te||re)(l.Y36(n),l.Y36(l.SBq),l.Y36(l.R0b))};static#t=this.\u0275dir=l.lG2({type:re,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return re})(),ee=(()=>{class re{static#e=this.\u0275fac=function(te){return new(te||re)};static#t=this.\u0275mod=l.oAB({type:re});static#n=this.\u0275inj=l.cJS({providers:[w]})}return re})()},3651:(ft,Ie,C)=>{"use strict";C.d(Ie,{pI:()=>ei,xu:()=>vn,aV:()=>Dn,X_:()=>un,Xj:()=>dt,U8:()=>ct,Iu:()=>at});var e=C(6672),l=C(6814),D=C(5879),I=C(2605),S=C(2831),w=C(2181),n=C(8180),Z=C(9773),ee=C(9360),re=C(8251),se=C(9388),te=C(8484),oe=C(8645),ce=C(7394),_e=C(3019),Re=C(6028);const mt=(0,S.Mq)();class Ge{constructor(J,ae){this._viewportRuler=J,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=ae}attach(){}enable(){if(this._canBeEnabled()){const J=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=J.style.left||"",this._previousHTMLStyles.top=J.style.top||"",J.style.left=(0,I.HM)(-this._previousScrollPosition.left),J.style.top=(0,I.HM)(-this._previousScrollPosition.top),J.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const J=this._document.documentElement,Oe=J.style,ot=this._document.body.style,Se=Oe.scrollBehavior||"",Ft=ot.scrollBehavior||"";this._isEnabled=!1,Oe.left=this._previousHTMLStyles.left,Oe.top=this._previousHTMLStyles.top,J.classList.remove("cdk-global-scrollblock"),mt&&(Oe.scrollBehavior=ot.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),mt&&(Oe.scrollBehavior=Se,ot.scrollBehavior=Ft)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const ae=this._document.body,Oe=this._viewportRuler.getViewportSize();return ae.scrollHeight>Oe.height||ae.scrollWidth>Oe.width}}class je{constructor(J,ae,Oe,ot){this._scrollDispatcher=J,this._ngZone=ae,this._viewportRuler=Oe,this._config=ot,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(J){this._overlayRef=J}enable(){if(this._scrollSubscription)return;const J=this._scrollDispatcher.scrolled(0).pipe((0,w.h)(ae=>!ae||!this._overlayRef.overlayElement.contains(ae.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=J.subscribe(()=>{const ae=this._viewportRuler.getViewportScrollPosition().top;Math.abs(ae-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=J.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Tt{enable(){}disable(){}attach(){}}function xt(Ce,J){return J.some(ae=>Ce.bottomae.bottom||Ce.rightae.right)}function St(Ce,J){return J.some(ae=>Ce.topae.bottom||Ce.leftae.right)}class Zt{constructor(J,ae,Oe,ot){this._scrollDispatcher=J,this._viewportRuler=ae,this._ngZone=Oe,this._config=ot,this._scrollSubscription=null}attach(J){this._overlayRef=J}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 ae=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Oe,height:ot}=this._viewportRuler.getViewportSize();xt(ae,[{width:Oe,height:ot,bottom:ot,right:Oe,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 yt=(()=>{class Ce{constructor(ae,Oe,ot,Se){this._scrollDispatcher=ae,this._viewportRuler=Oe,this._ngZone=ot,this.noop=()=>new Tt,this.close=Ft=>new je(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ft),this.block=()=>new Ge(this._viewportRuler,this._document),this.reposition=Ft=>new Zt(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ft),this._document=Se}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(e.mF),D.LFG(e.rL),D.LFG(D.R0b),D.LFG(l.K0))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();class un{constructor(J){if(this.scrollStrategy=new Tt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,J){const ae=Object.keys(J);for(const Oe of ae)void 0!==J[Oe]&&(this[Oe]=J[Oe])}}}class wn{constructor(J,ae){this.connectionPair=J,this.scrollableViewProperties=ae}}let ti=(()=>{class Ce{constructor(ae){this._attachedOverlays=[],this._document=ae}ngOnDestroy(){this.detach()}add(ae){this.remove(ae),this._attachedOverlays.push(ae)}remove(ae){const Oe=this._attachedOverlays.indexOf(ae);Oe>-1&&this._attachedOverlays.splice(Oe,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),gi=(()=>{class Ce extends ti{constructor(ae,Oe){super(ae),this._ngZone=Oe,this._keydownListener=ot=>{const Se=this._attachedOverlays;for(let Ft=Se.length-1;Ft>-1;Ft--)if(Se[Ft]._keydownEvents.observers.length>0){const lt=Se[Ft]._keydownEvents;this._ngZone?this._ngZone.run(()=>lt.next(ot)):lt.next(ot);break}}}add(ae){super.add(ae),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0),D.LFG(D.R0b,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),Rn=(()=>{class Ce extends ti{constructor(ae,Oe,ot){super(ae),this._platform=Oe,this._ngZone=ot,this._cursorStyleIsSet=!1,this._pointerDownListener=Se=>{this._pointerDownEventTarget=(0,S.sA)(Se)},this._clickListener=Se=>{const Ft=(0,S.sA)(Se),lt="click"===Se.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ft;this._pointerDownEventTarget=null;const Bt=this._attachedOverlays.slice();for(let Ut=Bt.length-1;Ut>-1;Ut--){const fn=Bt[Ut];if(fn._outsidePointerEvents.observers.length<1||!fn.hasAttached())continue;if(fn.overlayElement.contains(Ft)||fn.overlayElement.contains(lt))break;const gn=fn._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>gn.next(Se)):gn.next(Se)}}}add(ae){if(super.add(ae),!this._isAttached){const Oe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Oe)):this._addEventListeners(Oe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Oe.style.cursor,Oe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const ae=this._document.body;ae.removeEventListener("pointerdown",this._pointerDownListener,!0),ae.removeEventListener("click",this._clickListener,!0),ae.removeEventListener("auxclick",this._clickListener,!0),ae.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(ae.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(ae){ae.addEventListener("pointerdown",this._pointerDownListener,!0),ae.addEventListener("click",this._clickListener,!0),ae.addEventListener("auxclick",this._clickListener,!0),ae.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(l.K0),D.LFG(S.t4),D.LFG(D.R0b,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),dt=(()=>{class Ce{constructor(ae,Oe){this._platform=Oe,this._document=ae}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const ae="cdk-overlay-container";if(this._platform.isBrowser||(0,S.Oy)()){const ot=this._document.querySelectorAll(`.${ae}[platform="server"], .${ae}[platform="test"]`);for(let Se=0;Sethis._backdropClick.next(gn),this._backdropTransitionendHandler=gn=>{this._disposeBackdrop(gn.target)},this._keydownEvents=new oe.x,this._outsidePointerEvents=new oe.x,ot.scrollStrategy&&(this._scrollStrategy=ot.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=ot.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(J){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const ae=this._portalOutlet.attach(J);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,n.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),"function"==typeof ae?.onDestroy&&ae.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),ae}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const J=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),J}dispose(){const J=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),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,J&&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(J){J!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=J,this.hasAttached()&&(J.attach(this),this.updatePosition()))}updateSize(J){this._config={...this._config,...J},this._updateElementSize()}setDirection(J){this._config={...this._config,direction:J},this._updateElementDirection()}addPanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!0)}removePanelClass(J){this._pane&&this._toggleClasses(this._pane,J,!1)}getDirection(){const J=this._config.direction;return J?"string"==typeof J?J:J.value:"ltr"}updateScrollStrategy(J){J!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=J,this.hasAttached()&&(J.attach(this),J.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const J=this._pane.style;J.width=(0,I.HM)(this._config.width),J.height=(0,I.HM)(this._config.height),J.minWidth=(0,I.HM)(this._config.minWidth),J.minHeight=(0,I.HM)(this._config.minHeight),J.maxWidth=(0,I.HM)(this._config.maxWidth),J.maxHeight=(0,I.HM)(this._config.maxHeight)}_togglePointerEvents(J){this._pane.style.pointerEvents=J?"":"none"}_attachBackdrop(){const J="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(J)})}):this._backdropElement.classList.add(J)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const J=this._backdropElement;if(J){if(this._animationsDisabled)return void this._disposeBackdrop(J);J.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{J.addEventListener("transitionend",this._backdropTransitionendHandler)}),J.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(J)},500))}}_toggleClasses(J,ae,Oe){const ot=(0,I.Eq)(ae||[]).filter(Se=>!!Se);ot.length&&(Oe?J.classList.add(...ot):J.classList.remove(...ot))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const J=this._ngZone.onStable.pipe((0,Z.R)((0,_e.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()),J.unsubscribe())})})}_disposeScrollStrategy(){const J=this._scrollStrategy;J&&(J.disable(),J.detach&&J.detach())}_disposeBackdrop(J){J&&(J.removeEventListener("click",this._backdropClickHandler),J.removeEventListener("transitionend",this._backdropTransitionendHandler),J.remove(),this._backdropElement===J&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Be="cdk-overlay-connected-position-bounding-box",Ee=/([A-Za-z%]+)$/;class $e{get positions(){return this._preferredPositions}constructor(J,ae,Oe,ot,Se){this._viewportRuler=ae,this._document=Oe,this._platform=ot,this._overlayContainer=Se,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new oe.x,this._resizeSubscription=ce.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(J)}attach(J){this._validatePositions(),J.hostElement.classList.add(Be),this._overlayRef=J,this._boundingBox=J.hostElement,this._pane=J.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{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 J=this._originRect,ae=this._overlayRect,Oe=this._viewportRect,ot=this._containerRect,Se=[];let Ft;for(let lt of this._preferredPositions){let Bt=this._getOriginPoint(J,ot,lt),Ut=this._getOverlayPoint(Bt,ae,lt),fn=this._getOverlayFit(Ut,ae,Oe,lt);if(fn.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(lt,Bt);this._canFitWithFlexibleDimensions(fn,Ut,Oe)?Se.push({position:lt,origin:Bt,overlayRect:ae,boundingBoxRect:this._calculateBoundingBoxRect(Bt,lt)}):(!Ft||Ft.overlayFit.visibleAreaBt&&(Bt=fn,lt=Ut)}return this._isPushed=!1,void this._applyPosition(lt.position,lt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ft.position,Ft.originPoint);this._applyPosition(Ft.position,Ft.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&me(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Be),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const J=this._lastPosition;if(J){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ae=this._getOriginPoint(this._originRect,this._containerRect,J);this._applyPosition(J,ae)}else this.apply()}withScrollableContainers(J){return this._scrollables=J,this}withPositions(J){return this._preferredPositions=J,-1===J.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(J){return this._viewportMargin=J,this}withFlexibleDimensions(J=!0){return this._hasFlexibleDimensions=J,this}withGrowAfterOpen(J=!0){return this._growAfterOpen=J,this}withPush(J=!0){return this._canPush=J,this}withLockedPosition(J=!0){return this._positionLocked=J,this}setOrigin(J){return this._origin=J,this}withDefaultOffsetX(J){return this._offsetX=J,this}withDefaultOffsetY(J){return this._offsetY=J,this}withTransformOriginOn(J){return this._transformOriginSelector=J,this}_getOriginPoint(J,ae,Oe){let ot,Se;if("center"==Oe.originX)ot=J.left+J.width/2;else{const Ft=this._isRtl()?J.right:J.left,lt=this._isRtl()?J.left:J.right;ot="start"==Oe.originX?Ft:lt}return ae.left<0&&(ot-=ae.left),Se="center"==Oe.originY?J.top+J.height/2:"top"==Oe.originY?J.top:J.bottom,ae.top<0&&(Se-=ae.top),{x:ot,y:Se}}_getOverlayPoint(J,ae,Oe){let ot,Se;return ot="center"==Oe.overlayX?-ae.width/2:"start"===Oe.overlayX?this._isRtl()?-ae.width:0:this._isRtl()?0:-ae.width,Se="center"==Oe.overlayY?-ae.height/2:"top"==Oe.overlayY?0:-ae.height,{x:J.x+ot,y:J.y+Se}}_getOverlayFit(J,ae,Oe,ot){const Se=he(ae);let{x:Ft,y:lt}=J,Bt=this._getOffset(ot,"x"),Ut=this._getOffset(ot,"y");Bt&&(Ft+=Bt),Ut&&(lt+=Ut);let An=0-lt,jn=lt+Se.height-Oe.height,ai=this._subtractOverflows(Se.width,0-Ft,Ft+Se.width-Oe.width),di=this._subtractOverflows(Se.height,An,jn),oi=ai*di;return{visibleArea:oi,isCompletelyWithinViewport:Se.width*Se.height===oi,fitsInViewportVertically:di===Se.height,fitsInViewportHorizontally:ai==Se.width}}_canFitWithFlexibleDimensions(J,ae,Oe){if(this._hasFlexibleDimensions){const ot=Oe.bottom-ae.y,Se=Oe.right-ae.x,Ft=tt(this._overlayRef.getConfig().minHeight),lt=tt(this._overlayRef.getConfig().minWidth);return(J.fitsInViewportVertically||null!=Ft&&Ft<=ot)&&(J.fitsInViewportHorizontally||null!=lt&<<=Se)}return!1}_pushOverlayOnScreen(J,ae,Oe){if(this._previousPushAmount&&this._positionLocked)return{x:J.x+this._previousPushAmount.x,y:J.y+this._previousPushAmount.y};const ot=he(ae),Se=this._viewportRect,Ft=Math.max(J.x+ot.width-Se.width,0),lt=Math.max(J.y+ot.height-Se.height,0),Bt=Math.max(Se.top-Oe.top-J.y,0),Ut=Math.max(Se.left-Oe.left-J.x,0);let fn=0,gn=0;return fn=ot.width<=Se.width?Ut||-Ft:J.xai&&!this._isInitialRender&&!this._growAfterOpen&&(Ft=J.y-ai/2)}if("end"===ae.overlayX&&!ot||"start"===ae.overlayX&&ot)An=Oe.width-J.x+this._viewportMargin,fn=J.x-this._viewportMargin;else if("start"===ae.overlayX&&!ot||"end"===ae.overlayX&&ot)gn=J.x,fn=Oe.right-J.x;else{const jn=Math.min(Oe.right-J.x+Oe.left,J.x),ai=this._lastBoundingBoxSize.width;fn=2*jn,gn=J.x-jn,fn>ai&&!this._isInitialRender&&!this._growAfterOpen&&(gn=J.x-ai/2)}return{top:Ft,left:gn,bottom:lt,right:An,width:fn,height:Se}}_setBoundingBoxStyles(J,ae){const Oe=this._calculateBoundingBoxRect(J,ae);!this._isInitialRender&&!this._growAfterOpen&&(Oe.height=Math.min(Oe.height,this._lastBoundingBoxSize.height),Oe.width=Math.min(Oe.width,this._lastBoundingBoxSize.width));const ot={};if(this._hasExactPosition())ot.top=ot.left="0",ot.bottom=ot.right=ot.maxHeight=ot.maxWidth="",ot.width=ot.height="100%";else{const Se=this._overlayRef.getConfig().maxHeight,Ft=this._overlayRef.getConfig().maxWidth;ot.height=(0,I.HM)(Oe.height),ot.top=(0,I.HM)(Oe.top),ot.bottom=(0,I.HM)(Oe.bottom),ot.width=(0,I.HM)(Oe.width),ot.left=(0,I.HM)(Oe.left),ot.right=(0,I.HM)(Oe.right),ot.alignItems="center"===ae.overlayX?"center":"end"===ae.overlayX?"flex-end":"flex-start",ot.justifyContent="center"===ae.overlayY?"center":"bottom"===ae.overlayY?"flex-end":"flex-start",Se&&(ot.maxHeight=(0,I.HM)(Se)),Ft&&(ot.maxWidth=(0,I.HM)(Ft))}this._lastBoundingBoxSize=Oe,me(this._boundingBox.style,ot)}_resetBoundingBoxStyles(){me(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){me(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(J,ae){const Oe={},ot=this._hasExactPosition(),Se=this._hasFlexibleDimensions,Ft=this._overlayRef.getConfig();if(ot){const fn=this._viewportRuler.getViewportScrollPosition();me(Oe,this._getExactOverlayY(ae,J,fn)),me(Oe,this._getExactOverlayX(ae,J,fn))}else Oe.position="static";let lt="",Bt=this._getOffset(ae,"x"),Ut=this._getOffset(ae,"y");Bt&&(lt+=`translateX(${Bt}px) `),Ut&&(lt+=`translateY(${Ut}px)`),Oe.transform=lt.trim(),Ft.maxHeight&&(ot?Oe.maxHeight=(0,I.HM)(Ft.maxHeight):Se&&(Oe.maxHeight="")),Ft.maxWidth&&(ot?Oe.maxWidth=(0,I.HM)(Ft.maxWidth):Se&&(Oe.maxWidth="")),me(this._pane.style,Oe)}_getExactOverlayY(J,ae,Oe){let ot={top:"",bottom:""},Se=this._getOverlayPoint(ae,this._overlayRect,J);return this._isPushed&&(Se=this._pushOverlayOnScreen(Se,this._overlayRect,Oe)),"bottom"===J.overlayY?ot.bottom=this._document.documentElement.clientHeight-(Se.y+this._overlayRect.height)+"px":ot.top=(0,I.HM)(Se.y),ot}_getExactOverlayX(J,ae,Oe){let Ft,ot={left:"",right:""},Se=this._getOverlayPoint(ae,this._overlayRect,J);return this._isPushed&&(Se=this._pushOverlayOnScreen(Se,this._overlayRect,Oe)),Ft=this._isRtl()?"end"===J.overlayX?"left":"right":"end"===J.overlayX?"right":"left","right"===Ft?ot.right=this._document.documentElement.clientWidth-(Se.x+this._overlayRect.width)+"px":ot.left=(0,I.HM)(Se.x),ot}_getScrollVisibility(){const J=this._getOriginRect(),ae=this._pane.getBoundingClientRect(),Oe=this._scrollables.map(ot=>ot.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:St(J,Oe),isOriginOutsideView:xt(J,Oe),isOverlayClipped:St(ae,Oe),isOverlayOutsideView:xt(ae,Oe)}}_subtractOverflows(J,...ae){return ae.reduce((Oe,ot)=>Oe-Math.max(ot,0),J)}_getNarrowedViewportRect(){const J=this._document.documentElement.clientWidth,ae=this._document.documentElement.clientHeight,Oe=this._viewportRuler.getViewportScrollPosition();return{top:Oe.top+this._viewportMargin,left:Oe.left+this._viewportMargin,right:Oe.left+J-this._viewportMargin,bottom:Oe.top+ae-this._viewportMargin,width:J-2*this._viewportMargin,height:ae-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(J,ae){return"x"===ae?null==J.offsetX?this._offsetX:J.offsetX:null==J.offsetY?this._offsetY:J.offsetY}_validatePositions(){}_addPanelClasses(J){this._pane&&(0,I.Eq)(J).forEach(ae=>{""!==ae&&-1===this._appliedPanelClasses.indexOf(ae)&&(this._appliedPanelClasses.push(ae),this._pane.classList.add(ae))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(J=>{this._pane.classList.remove(J)}),this._appliedPanelClasses=[])}_getOriginRect(){const J=this._origin;if(J instanceof D.SBq)return J.nativeElement.getBoundingClientRect();if(J instanceof Element)return J.getBoundingClientRect();const ae=J.width||0,Oe=J.height||0;return{top:J.y,bottom:J.y+Oe,left:J.x,right:J.x+ae,height:Oe,width:ae}}}function me(Ce,J){for(let ae in J)J.hasOwnProperty(ae)&&(Ce[ae]=J[ae]);return Ce}function tt(Ce){if("number"!=typeof Ce&&null!=Ce){const[J,ae]=Ce.split(Ee);return ae&&"px"!==ae?null:parseFloat(J)}return Ce||null}function he(Ce){return{top:Math.floor(Ce.top),right:Math.floor(Ce.right),bottom:Math.floor(Ce.bottom),left:Math.floor(Ce.left),width:Math.floor(Ce.width),height:Math.floor(Ce.height)}}const bt="cdk-global-overlay-wrapper";class Nt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(J){const ae=J.getConfig();this._overlayRef=J,this._width&&!ae.width&&J.updateSize({width:this._width}),this._height&&!ae.height&&J.updateSize({height:this._height}),J.hostElement.classList.add(bt),this._isDisposed=!1}top(J=""){return this._bottomOffset="",this._topOffset=J,this._alignItems="flex-start",this}left(J=""){return this._xOffset=J,this._xPosition="left",this}bottom(J=""){return this._topOffset="",this._bottomOffset=J,this._alignItems="flex-end",this}right(J=""){return this._xOffset=J,this._xPosition="right",this}start(J=""){return this._xOffset=J,this._xPosition="start",this}end(J=""){return this._xOffset=J,this._xPosition="end",this}width(J=""){return this._overlayRef?this._overlayRef.updateSize({width:J}):this._width=J,this}height(J=""){return this._overlayRef?this._overlayRef.updateSize({height:J}):this._height=J,this}centerHorizontally(J=""){return this.left(J),this._xPosition="center",this}centerVertically(J=""){return this.top(J),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const J=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement.style,Oe=this._overlayRef.getConfig(),{width:ot,height:Se,maxWidth:Ft,maxHeight:lt}=Oe,Bt=!("100%"!==ot&&"100vw"!==ot||Ft&&"100%"!==Ft&&"100vw"!==Ft),Ut=!("100%"!==Se&&"100vh"!==Se||lt&&"100%"!==lt&&"100vh"!==lt),fn=this._xPosition,gn=this._xOffset,An="rtl"===this._overlayRef.getConfig().direction;let jn="",ai="",di="";Bt?di="flex-start":"center"===fn?(di="center",An?ai=gn:jn=gn):An?"left"===fn||"end"===fn?(di="flex-end",jn=gn):("right"===fn||"start"===fn)&&(di="flex-start",ai=gn):"left"===fn||"start"===fn?(di="flex-start",jn=gn):("right"===fn||"end"===fn)&&(di="flex-end",ai=gn),J.position=this._cssPosition,J.marginLeft=Bt?"0":jn,J.marginTop=Ut?"0":this._topOffset,J.marginBottom=this._bottomOffset,J.marginRight=Bt?"0":ai,ae.justifyContent=di,ae.alignItems=Ut?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const J=this._overlayRef.overlayElement.style,ae=this._overlayRef.hostElement,Oe=ae.style;ae.classList.remove(bt),Oe.justifyContent=Oe.alignItems=J.marginTop=J.marginBottom=J.marginLeft=J.marginRight=J.position="",this._overlayRef=null,this._isDisposed=!0}}let Qt=(()=>{class Ce{constructor(ae,Oe,ot,Se){this._viewportRuler=ae,this._document=Oe,this._platform=ot,this._overlayContainer=Se}global(){return new Nt}flexibleConnectedTo(ae){return new $e(ae,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(e.rL),D.LFG(l.K0),D.LFG(S.t4),D.LFG(dt))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})(),nn=0,Dn=(()=>{class Ce{constructor(ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An,jn){this.scrollStrategies=ae,this._overlayContainer=Oe,this._componentFactoryResolver=ot,this._positionBuilder=Se,this._keyboardDispatcher=Ft,this._injector=lt,this._ngZone=Bt,this._document=Ut,this._directionality=fn,this._location=gn,this._outsideClickDispatcher=An,this._animationsModuleType=jn}create(ae){const Oe=this._createHostElement(),ot=this._createPaneElement(Oe),Se=this._createPortalOutlet(ot),Ft=new un(ae);return Ft.direction=Ft.direction||this._directionality.value,new at(Se,Oe,ot,Ft,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(ae){const Oe=this._document.createElement("div");return Oe.id="cdk-overlay-"+nn++,Oe.classList.add("cdk-overlay-pane"),ae.appendChild(Oe),Oe}_createHostElement(){const ae=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(ae),ae}_createPortalOutlet(ae){return this._appRef||(this._appRef=this._injector.get(D.z2F)),new te.u0(ae,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.LFG(yt),D.LFG(dt),D.LFG(D._Vd),D.LFG(Qt),D.LFG(gi),D.LFG(D.zs3),D.LFG(D.R0b),D.LFG(l.K0),D.LFG(se.Is),D.LFG(l.Ye),D.LFG(Rn),D.LFG(D.QbO,8))};static#t=this.\u0275prov=D.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})();const Ot=[{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"}],rn=new D.OlP("cdk-connected-overlay-scroll-strategy");let vn=(()=>{class Ce{constructor(ae){this.elementRef=ae}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.Y36(D.SBq))};static#t=this.\u0275dir=D.lG2({type:Ce,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"],standalone:!0})}return Ce})(),ei=(()=>{class Ce{get offsetX(){return this._offsetX}set offsetX(ae){this._offsetX=ae,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(ae){this._offsetY=ae,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ae){this._hasBackdrop=(0,I.Ig)(ae)}get lockPosition(){return this._lockPosition}set lockPosition(ae){this._lockPosition=(0,I.Ig)(ae)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(ae){this._flexibleDimensions=(0,I.Ig)(ae)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(ae){this._growAfterOpen=(0,I.Ig)(ae)}get push(){return this._push}set push(ae){this._push=(0,I.Ig)(ae)}constructor(ae,Oe,ot,Se,Ft){this._overlay=ae,this._dir=Ft,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=ce.w0.EMPTY,this._attachSubscription=ce.w0.EMPTY,this._detachSubscription=ce.w0.EMPTY,this._positionSubscription=ce.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new D.vpe,this.positionChange=new D.vpe,this.attach=new D.vpe,this.detach=new D.vpe,this.overlayKeydown=new D.vpe,this.overlayOutsideClick=new D.vpe,this._templatePortal=new te.UE(Oe,ot),this._scrollStrategyFactory=Se,this.scrollStrategy=this._scrollStrategyFactory()}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(ae){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),ae.origin&&this.open&&this._position.apply()),ae.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ot);const ae=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=ae.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=ae.detachments().subscribe(()=>this.detach.emit()),ae.keydownEvents().subscribe(Oe=>{this.overlayKeydown.next(Oe),Oe.keyCode===Re.hY&&!this.disableClose&&!(0,Re.Vb)(Oe)&&(Oe.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Oe=>{this.overlayOutsideClick.next(Oe)})}_buildConfig(){const ae=this._position=this.positionStrategy||this._createPositionStrategy(),Oe=new un({direction:this._dir,positionStrategy:ae,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Oe.width=this.width),(this.height||0===this.height)&&(Oe.height=this.height),(this.minWidth||0===this.minWidth)&&(Oe.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Oe.minHeight=this.minHeight),this.backdropClass&&(Oe.backdropClass=this.backdropClass),this.panelClass&&(Oe.panelClass=this.panelClass),Oe}_updatePositionStrategy(ae){const Oe=this.positions.map(ot=>({originX:ot.originX,originY:ot.originY,overlayX:ot.overlayX,overlayY:ot.overlayY,offsetX:ot.offsetX||this.offsetX,offsetY:ot.offsetY||this.offsetY,panelClass:ot.panelClass||void 0}));return ae.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Oe).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const ae=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(ae),ae}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof vn?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(ae=>{this.backdropClick.emit(ae)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function ue(Ce,J=!1){return(0,ee.e)((ae,Oe)=>{let ot=0;ae.subscribe((0,re.x)(Oe,Se=>{const Ft=Ce(Se,ot++);(Ft||J)&&Oe.next(Se),!Ft&&Oe.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(ae=>{this.positionChange.emit(ae),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)(D.Y36(Dn),D.Y36(D.Rgc),D.Y36(D.s_b),D.Y36(rn),D.Y36(se.Is,8))};static#t=this.\u0275dir=D.lG2({type:Ce,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"],standalone:!0,features:[D.TTD]})}return Ce})();const Ve={provide:rn,deps:[Dn],useFactory:function Wn(Ce){return()=>Ce.scrollStrategies.reposition()}};let ct=(()=>{class Ce{static#e=this.\u0275fac=function(Oe){return new(Oe||Ce)};static#t=this.\u0275mod=D.oAB({type:Ce});static#n=this.\u0275inj=D.cJS({providers:[Dn,Ve],imports:[se.vT,te.eL,e.Cl,e.Cl]})}return Ce})()},2831:(ft,Ie,C)=>{"use strict";C.d(Ie,{Mq:()=>oe,Oy:()=>je,ht:()=>Ge,i$:()=>ue,kV:()=>mt,sA:()=>Lt,t4:()=>I});var e=C(5879),l=C(6814);let D;try{D=typeof Intl<"u"&&Intl.v8BreakIterator}catch{D=!1}let ee,te,_e,I=(()=>{class Tt{constructor(St){this._platformId=St,this.isBrowser=this._platformId?(0,l.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&&!D)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static#e=this.\u0275fac=function(Zt){return new(Zt||Tt)(e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:Tt,factory:Tt.\u0275fac,providedIn:"root"})}return Tt})();function ue(Tt){return function re(){if(null==ee&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ee=!0}))}finally{ee=ee||!1}return ee}()?Tt:!!Tt.capture}function oe(){if(null==te){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return te=!1,te;if("scrollBehavior"in document.documentElement.style)te=!0;else{const Tt=Element.prototype.scrollTo;te=!!Tt&&!/\{\s*\[native code\]\s*\}/.test(Tt.toString())}}return te}function mt(Tt){if(function Re(){if(null==_e){const Tt=typeof document<"u"?document.head:null;_e=!(!Tt||!Tt.createShadowRoot&&!Tt.attachShadow)}return _e}()){const xt=Tt.getRootNode?Tt.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&xt instanceof ShadowRoot)return xt}return null}function Ge(){let Tt=typeof document<"u"&&document?document.activeElement:null;for(;Tt&&Tt.shadowRoot;){const xt=Tt.shadowRoot.activeElement;if(xt===Tt)break;Tt=xt}return Tt}function Lt(Tt){return Tt.composedPath?Tt.composedPath()[0]:Tt.target}function je(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},8484:(ft,Ie,C)=>{"use strict";C.d(Ie,{C5:()=>re,Pl:()=>Ge,UE:()=>ue,eL:()=>je,en:()=>te,ig:()=>Re,u0:()=>ce});var e=C(5879),l=C(6814);class ee{attach(St){return this._attachedHost=St,St.attach(this)}detach(){let St=this._attachedHost;null!=St&&(this._attachedHost=null,St.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(St){this._attachedHost=St}}class re extends ee{constructor(St,Zt,yt,un,Jt){super(),this.component=St,this.viewContainerRef=Zt,this.injector=yt,this.componentFactoryResolver=un,this.projectableNodes=Jt}}class ue extends ee{constructor(St,Zt,yt,un){super(),this.templateRef=St,this.viewContainerRef=Zt,this.context=yt,this.injector=un}get origin(){return this.templateRef.elementRef}attach(St,Zt=this.context){return this.context=Zt,super.attach(St)}detach(){return this.context=void 0,super.detach()}}class se extends ee{constructor(St){super(),this.element=St instanceof e.SBq?St.nativeElement:St}}class te{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(St){return St instanceof re?(this._attachedPortal=St,this.attachComponentPortal(St)):St instanceof ue?(this._attachedPortal=St,this.attachTemplatePortal(St)):this.attachDomPortal&&St instanceof se?(this._attachedPortal=St,this.attachDomPortal(St)):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(St){this._disposeFn=St}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class ce extends te{constructor(St,Zt,yt,un,Jt){super(),this.outletElement=St,this._componentFactoryResolver=Zt,this._appRef=yt,this._defaultInjector=un,this.attachDomPortal=tn=>{const wn=tn.element,Ln=this._document.createComment("dom-portal");wn.parentNode.insertBefore(Ln,wn),this.outletElement.appendChild(wn),this._attachedPortal=tn,super.setDisposeFn(()=>{Ln.parentNode&&Ln.parentNode.replaceChild(wn,Ln)})},this._document=Jt}attachComponentPortal(St){const yt=(St.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(St.component);let un;return St.viewContainerRef?(un=St.viewContainerRef.createComponent(yt,St.viewContainerRef.length,St.injector||St.viewContainerRef.injector,St.projectableNodes||void 0),this.setDisposeFn(()=>un.destroy())):(un=yt.create(St.injector||this._defaultInjector||e.zs3.NULL),this._appRef.attachView(un.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(un.hostView),un.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(un)),this._attachedPortal=St,un}attachTemplatePortal(St){let Zt=St.viewContainerRef,yt=Zt.createEmbeddedView(St.templateRef,St.context,{injector:St.injector});return yt.rootNodes.forEach(un=>this.outletElement.appendChild(un)),yt.detectChanges(),this.setDisposeFn(()=>{let un=Zt.indexOf(yt);-1!==un&&Zt.remove(un)}),this._attachedPortal=St,yt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(St){return St.hostView.rootNodes[0]}}let Re=(()=>{class xt extends ue{constructor(Zt,yt){super(Zt,yt)}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.Y36(e.Rgc),e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:xt,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[e.qOj]})}return xt})(),Ge=(()=>{class xt extends te{constructor(Zt,yt,un){super(),this._componentFactoryResolver=Zt,this._viewContainerRef=yt,this._isInitialized=!1,this.attached=new e.vpe,this.attachDomPortal=Jt=>{const tn=Jt.element,wn=this._document.createComment("dom-portal");Jt.setAttachedHost(this),tn.parentNode.insertBefore(wn,tn),this._getRootNode().appendChild(tn),this._attachedPortal=Jt,super.setDisposeFn(()=>{wn.parentNode&&wn.parentNode.replaceChild(tn,wn)})},this._document=un}get portal(){return this._attachedPortal}set portal(Zt){this.hasAttached()&&!Zt&&!this._isInitialized||(this.hasAttached()&&super.detach(),Zt&&super.attach(Zt),this._attachedPortal=Zt||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(Zt){Zt.setAttachedHost(this);const yt=null!=Zt.viewContainerRef?Zt.viewContainerRef:this._viewContainerRef,Jt=(Zt.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Zt.component),tn=yt.createComponent(Jt,yt.length,Zt.injector||yt.injector,Zt.projectableNodes||void 0);return yt!==this._viewContainerRef&&this._getRootNode().appendChild(tn.hostView.rootNodes[0]),super.setDisposeFn(()=>tn.destroy()),this._attachedPortal=Zt,this._attachedRef=tn,this.attached.emit(tn),tn}attachTemplatePortal(Zt){Zt.setAttachedHost(this);const yt=this._viewContainerRef.createEmbeddedView(Zt.templateRef,Zt.context,{injector:Zt.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Zt,this._attachedRef=yt,this.attached.emit(yt),yt}_getRootNode(){const Zt=this._viewContainerRef.element.nativeElement;return Zt.nodeType===Zt.ELEMENT_NODE?Zt:Zt.parentNode}static#e=this.\u0275fac=function(yt){return new(yt||xt)(e.Y36(e._Vd),e.Y36(e.s_b),e.Y36(l.K0))};static#t=this.\u0275dir=e.lG2({type:xt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.qOj]})}return xt})(),je=(()=>{class xt{static#e=this.\u0275fac=function(yt){return new(yt||xt)};static#t=this.\u0275mod=e.oAB({type:xt});static#n=this.\u0275inj=e.cJS({})}return xt})()},6672:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cl:()=>Rn,ZD:()=>gi,mF:()=>je,rL:()=>St});var e=C(2605),l=C(5879),D=C(8645),I=C(2096),S=C(5592),w=C(2438),ee=(C(927),C(6410),C(9028)),re=C(2181),ue=C(2831),se=C(6814),te=C(9388);let je=(()=>{class dt{constructor(Be,Ee,$e){this._ngZone=Be,this._platform=Ee,this._scrolled=new D.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=$e}register(Be){this.scrollContainers.has(Be)||this.scrollContainers.set(Be,Be.elementScrolled().subscribe(()=>this._scrolled.next(Be)))}deregister(Be){const Ee=this.scrollContainers.get(Be);Ee&&(Ee.unsubscribe(),this.scrollContainers.delete(Be))}scrolled(Be=20){return this._platform.isBrowser?new S.y(Ee=>{this._globalSubscription||this._addGlobalListener();const $e=Be>0?this._scrolled.pipe((0,ee.e)(Be)).subscribe(Ee):this._scrolled.subscribe(Ee);return this._scrolledCount++,()=>{$e.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,I.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((Be,Ee)=>this.deregister(Ee)),this._scrolled.complete()}ancestorScrolled(Be,Ee){const $e=this.getAncestorScrollContainers(Be);return this.scrolled(Ee).pipe((0,re.h)(me=>!me||$e.indexOf(me)>-1))}getAncestorScrollContainers(Be){const Ee=[];return this.scrollContainers.forEach(($e,me)=>{this._scrollableContainsElement(me,Be)&&Ee.push(me)}),Ee}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(Be,Ee){let $e=(0,e.fI)(Ee),me=Be.getElementRef().nativeElement;do{if($e==me)return!0}while($e=$e.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const Be=this._getWindow();return(0,w.R)(Be.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(Ee){return new(Ee||dt)(l.LFG(l.R0b),l.LFG(ue.t4),l.LFG(se.K0,8))};static#t=this.\u0275prov=l.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"})}return dt})(),St=(()=>{class dt{constructor(Be,Ee,$e){this._platform=Be,this._change=new D.x,this._changeListener=me=>{this._change.next(me)},this._document=$e,Ee.runOutsideAngular(()=>{if(Be.isBrowser){const me=this._getWindow();me.addEventListener("resize",this._changeListener),me.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const Be=this._getWindow();Be.removeEventListener("resize",this._changeListener),Be.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const Be={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),Be}getViewportRect(){const Be=this.getViewportScrollPosition(),{width:Ee,height:$e}=this.getViewportSize();return{top:Be.top,left:Be.left,bottom:Be.top+$e,right:Be.left+Ee,height:$e,width:Ee}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const Be=this._document,Ee=this._getWindow(),$e=Be.documentElement,me=$e.getBoundingClientRect();return{top:-me.top||Be.body.scrollTop||Ee.scrollY||$e.scrollTop||0,left:-me.left||Be.body.scrollLeft||Ee.scrollX||$e.scrollLeft||0}}change(Be=20){return Be>0?this._change.pipe((0,ee.e)(Be)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const Be=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:Be.innerWidth,height:Be.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(Ee){return new(Ee||dt)(l.LFG(ue.t4),l.LFG(l.R0b),l.LFG(se.K0,8))};static#t=this.\u0275prov=l.Yz7({token:dt,factory:dt.\u0275fac,providedIn:"root"})}return dt})(),gi=(()=>{class dt{static#e=this.\u0275fac=function(Ee){return new(Ee||dt)};static#t=this.\u0275mod=l.oAB({type:dt});static#n=this.\u0275inj=l.cJS({})}return dt})(),Rn=(()=>{class dt{static#e=this.\u0275fac=function(Ee){return new(Ee||dt)};static#t=this.\u0275mod=l.oAB({type:dt});static#n=this.\u0275inj=l.cJS({imports:[te.vT,gi,te.vT,gi]})}return dt})()},6814:(ft,Ie,C)=>{"use strict";C.d(Ie,{Do:()=>_e,ED:()=>Ba,EM:()=>Ko,HT:()=>I,JF:()=>Sr,JJ:()=>er,K0:()=>w,Mn:()=>Yn,Mx:()=>Bi,NF:()=>qs,O5:()=>Fr,Ov:()=>Sa,PC:()=>Ds,PM:()=>ba,RF:()=>yr,S$:()=>te,Tn:()=>yt,UT:()=>ti,V_:()=>Z,Ye:()=>Re,ax:()=>br,b0:()=>ce,bD:()=>nr,ez:()=>Ao,mk:()=>tr,n9:()=>Gs,p6:()=>Oe,q:()=>D,sg:()=>br,tP:()=>$s,uU:()=>dr,w_:()=>S,x:()=>Zt});var e=C(5879);let l=null;function D(){return l}function I(K){l||(l=K)}class S{}const w=new e.OlP("DocumentToken");let n=(()=>{class K{historyGo(ge){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return(0,e.f3M)(ee)},providedIn:"platform"})}return K})();const Z=new e.OlP("Location Initialized");let ee=(()=>{class K extends n{constructor(){super(),this._doc=(0,e.f3M)(w),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return D().getBaseHref(this._doc)}onPopState(ge){const Ne=D().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("popstate",ge,!1),()=>Ne.removeEventListener("popstate",ge)}onHashChange(ge){const Ne=D().getGlobalEventTarget(this._doc,"window");return Ne.addEventListener("hashchange",ge,!1),()=>Ne.removeEventListener("hashchange",ge)}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(ge){this._location.pathname=ge}pushState(ge,Ne,kt){this._history.pushState(ge,Ne,kt)}replaceState(ge,Ne,kt){this._history.replaceState(ge,Ne,kt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(ge=0){this._history.go(ge)}getState(){return this._history.state}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return new K},providedIn:"platform"})}return K})();function re(K,Ue){if(0==K.length)return Ue;if(0==Ue.length)return K;let ge=0;return K.endsWith("/")&&ge++,Ue.startsWith("/")&&ge++,2==ge?K+Ue.substring(1):1==ge?K+Ue:K+"/"+Ue}function ue(K){const Ue=K.match(/#|\?|$/),ge=Ue&&Ue.index||K.length;return K.slice(0,ge-("/"===K[ge-1]?1:0))+K.slice(ge)}function se(K){return K&&"?"!==K[0]?"?"+K:K}let te=(()=>{class K{historyGo(ge){throw new Error("Not implemented")}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275prov=e.Yz7({token:K,factory:function(){return(0,e.f3M)(ce)},providedIn:"root"})}return K})();const oe=new e.OlP("appBaseHref");let ce=(()=>{class K extends te{constructor(ge,Ne){super(),this._platformLocation=ge,this._removeListenerFns=[],this._baseHref=Ne??this._platformLocation.getBaseHrefFromDOM()??(0,e.f3M)(w).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ge){this._removeListenerFns.push(this._platformLocation.onPopState(ge),this._platformLocation.onHashChange(ge))}getBaseHref(){return this._baseHref}prepareExternalUrl(ge){return re(this._baseHref,ge)}path(ge=!1){const Ne=this._platformLocation.pathname+se(this._platformLocation.search),kt=this._platformLocation.hash;return kt&&ge?`${Ne}${kt}`:Ne}pushState(ge,Ne,kt,pn){const Sn=this.prepareExternalUrl(kt+se(pn));this._platformLocation.pushState(ge,Ne,Sn)}replaceState(ge,Ne,kt,pn){const Sn=this.prepareExternalUrl(kt+se(pn));this._platformLocation.replaceState(ge,Ne,Sn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ge=0){this._platformLocation.historyGo?.(ge)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(n),e.LFG(oe,8))};static#t=this.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})(),_e=(()=>{class K extends te{constructor(ge,Ne){super(),this._platformLocation=ge,this._baseHref="",this._removeListenerFns=[],null!=Ne&&(this._baseHref=Ne)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(ge){this._removeListenerFns.push(this._platformLocation.onPopState(ge),this._platformLocation.onHashChange(ge))}getBaseHref(){return this._baseHref}path(ge=!1){let Ne=this._platformLocation.hash;return null==Ne&&(Ne="#"),Ne.length>0?Ne.substring(1):Ne}prepareExternalUrl(ge){const Ne=re(this._baseHref,ge);return Ne.length>0?"#"+Ne:Ne}pushState(ge,Ne,kt,pn){let Sn=this.prepareExternalUrl(kt+se(pn));0==Sn.length&&(Sn=this._platformLocation.pathname),this._platformLocation.pushState(ge,Ne,Sn)}replaceState(ge,Ne,kt,pn){let Sn=this.prepareExternalUrl(kt+se(pn));0==Sn.length&&(Sn=this._platformLocation.pathname),this._platformLocation.replaceState(ge,Ne,Sn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(ge=0){this._platformLocation.historyGo?.(ge)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(n),e.LFG(oe,8))};static#t=this.\u0275prov=e.Yz7({token:K,factory:K.\u0275fac})}return K})(),Re=(()=>{class K{constructor(ge){this._subject=new e.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=ge;const Ne=this._locationStrategy.getBaseHref();this._basePath=function je(K){if(new RegExp("^(https?:)?//").test(K)){const[,ge]=K.split(/\/\/[^\/]+/);return ge}return K}(ue(Lt(Ne))),this._locationStrategy.onPopState(kt=>{this._subject.emit({url:this.path(!0),pop:!0,state:kt.state,type:kt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(ge=!1){return this.normalize(this._locationStrategy.path(ge))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(ge,Ne=""){return this.path()==this.normalize(ge+se(Ne))}normalize(ge){return K.stripTrailingSlash(function Ge(K,Ue){if(!K||!Ue.startsWith(K))return Ue;const ge=Ue.substring(K.length);return""===ge||["/",";","?","#"].includes(ge[0])?ge:Ue}(this._basePath,Lt(ge)))}prepareExternalUrl(ge){return ge&&"/"!==ge[0]&&(ge="/"+ge),this._locationStrategy.prepareExternalUrl(ge)}go(ge,Ne="",kt=null){this._locationStrategy.pushState(kt,"",ge,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(ge+se(Ne)),kt)}replaceState(ge,Ne="",kt=null){this._locationStrategy.replaceState(kt,"",ge,Ne),this._notifyUrlChangeListeners(this.prepareExternalUrl(ge+se(Ne)),kt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(ge=0){this._locationStrategy.historyGo?.(ge)}onUrlChange(ge){return this._urlChangeListeners.push(ge),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Ne=>{this._notifyUrlChangeListeners(Ne.url,Ne.state)})),()=>{const Ne=this._urlChangeListeners.indexOf(ge);this._urlChangeListeners.splice(Ne,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(ge="",Ne){this._urlChangeListeners.forEach(kt=>kt(ge,Ne))}subscribe(ge,Ne,kt){return this._subject.subscribe({next:ge,error:Ne,complete:kt})}static#e=this.normalizeQueryParams=se;static#t=this.joinWithSlash=re;static#n=this.stripTrailingSlash=ue;static#i=this.\u0275fac=function(Ne){return new(Ne||K)(e.LFG(te))};static#r=this.\u0275prov=e.Yz7({token:K,factory:function(){return function mt(){return new Re((0,e.LFG)(te))}()},providedIn:"root"})}return K})();function Lt(K){return K.replace(/\/index.html$/,"")}var xt=function(K){return K[K.Decimal=0]="Decimal",K[K.Percent=1]="Percent",K[K.Currency=2]="Currency",K[K.Scientific=3]="Scientific",K}(xt||{}),Zt=function(K){return K[K.Format=0]="Format",K[K.Standalone=1]="Standalone",K}(Zt||{}),yt=function(K){return K[K.Narrow=0]="Narrow",K[K.Abbreviated=1]="Abbreviated",K[K.Wide=2]="Wide",K[K.Short=3]="Short",K}(yt||{}),un=function(K){return K[K.Short=0]="Short",K[K.Medium=1]="Medium",K[K.Long=2]="Long",K[K.Full=3]="Full",K}(un||{}),Jt=function(K){return K[K.Decimal=0]="Decimal",K[K.Group=1]="Group",K[K.List=2]="List",K[K.PercentSign=3]="PercentSign",K[K.PlusSign=4]="PlusSign",K[K.MinusSign=5]="MinusSign",K[K.Exponential=6]="Exponential",K[K.SuperscriptingExponent=7]="SuperscriptingExponent",K[K.PerMille=8]="PerMille",K[K.Infinity=9]="Infinity",K[K.NaN=10]="NaN",K[K.TimeSeparator=11]="TimeSeparator",K[K.CurrencyDecimal=12]="CurrencyDecimal",K[K.CurrencyGroup=13]="CurrencyGroup",K}(Jt||{});function Yn(K,Ue,ge){const Ne=(0,e.cg1)(K),pn=Ot([Ne[e.wAp.DaysFormat],Ne[e.wAp.DaysStandalone]],Ue);return Ot(pn,ge)}function ti(K,Ue,ge){const Ne=(0,e.cg1)(K),pn=Ot([Ne[e.wAp.MonthsFormat],Ne[e.wAp.MonthsStandalone]],Ue);return Ot(pn,ge)}function at(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.DateFormat],Ue)}function Be(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.TimeFormat],Ue)}function Ee(K,Ue){return Ot((0,e.cg1)(K)[e.wAp.DateTimeFormat],Ue)}function $e(K,Ue){const ge=(0,e.cg1)(K),Ne=ge[e.wAp.NumberSymbols][Ue];if(typeof Ne>"u"){if(Ue===Jt.CurrencyDecimal)return ge[e.wAp.NumberSymbols][Jt.Decimal];if(Ue===Jt.CurrencyGroup)return ge[e.wAp.NumberSymbols][Jt.Group]}return Ne}function Nt(K){if(!K[e.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${K[e.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ot(K,Ue){for(let ge=Ue;ge>-1;ge--)if(typeof K[ge]<"u")return K[ge];throw new Error("Locale data API: locale data undefined")}function rn(K){const[Ue,ge]=K.split(":");return{hours:+Ue,minutes:+ge}}const Ve=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ct={},Ct=/((?:[^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 Ce=function(K){return K[K.Short=0]="Short",K[K.ShortGMT=1]="ShortGMT",K[K.Long=2]="Long",K[K.Extended=3]="Extended",K}(Ce||{}),J=function(K){return K[K.FullYear=0]="FullYear",K[K.Month=1]="Month",K[K.Date=2]="Date",K[K.Hours=3]="Hours",K[K.Minutes=4]="Minutes",K[K.Seconds=5]="Seconds",K[K.FractionalSeconds=6]="FractionalSeconds",K[K.Day=7]="Day",K}(J||{}),ae=function(K){return K[K.DayPeriods=0]="DayPeriods",K[K.Days=1]="Days",K[K.Months=2]="Months",K[K.Eras=3]="Eras",K}(ae||{});function Oe(K,Ue,ge,Ne){let kt=function We(K){if(be(K))return K;if("number"==typeof K&&!isNaN(K))return new Date(K);if("string"==typeof K){if(K=K.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(K)){const[kt,pn=1,Sn=1]=K.split("-").map(li=>+li);return ot(kt,pn-1,Sn)}const ge=parseFloat(K);if(!isNaN(K-ge))return new Date(ge);let Ne;if(Ne=K.match(Ve))return function ze(K){const Ue=new Date(0);let ge=0,Ne=0;const kt=K[8]?Ue.setUTCFullYear:Ue.setFullYear,pn=K[8]?Ue.setUTCHours:Ue.setHours;K[9]&&(ge=Number(K[9]+K[10]),Ne=Number(K[9]+K[11])),kt.call(Ue,Number(K[1]),Number(K[2])-1,Number(K[3]));const Sn=Number(K[4]||0)-ge,li=Number(K[5]||0)-Ne,ur=Number(K[6]||0),hr=Math.floor(1e3*parseFloat("0."+(K[7]||0)));return pn.call(Ue,Sn,li,ur,hr),Ue}(Ne)}const Ue=new Date(K);if(!be(Ue))throw new Error(`Unable to convert "${K}" into a date`);return Ue}(K);Ue=Se(ge,Ue)||Ue;let li,Sn=[];for(;Ue;){if(li=Ct.exec(Ue),!li){Sn.push(Ue);break}{Sn=Sn.concat(li.slice(1));const ar=Sn.pop();if(!ar)break;Ue=ar}}let ur=kt.getTimezoneOffset();Ne&&(ur=ve(Ne,ur),kt=function ut(K,Ue,ge){const Ne=ge?-1:1,kt=K.getTimezoneOffset();return function Pe(K,Ue){return(K=new Date(K.getTime())).setMinutes(K.getMinutes()+Ue),K}(K,Ne*(ve(Ue,kt)-kt))}(kt,Ne,!0));let hr="";return Sn.forEach(ar=>{const xi=function U(K){if(G[K])return G[K];let Ue;switch(K){case"G":case"GG":case"GGG":Ue=gn(ae.Eras,yt.Abbreviated);break;case"GGGG":Ue=gn(ae.Eras,yt.Wide);break;case"GGGGG":Ue=gn(ae.Eras,yt.Narrow);break;case"y":Ue=Ut(J.FullYear,1,0,!1,!0);break;case"yy":Ue=Ut(J.FullYear,2,0,!0,!0);break;case"yyy":Ue=Ut(J.FullYear,3,0,!1,!0);break;case"yyyy":Ue=Ut(J.FullYear,4,0,!1,!0);break;case"Y":Ue=_t(1);break;case"YY":Ue=_t(2,!0);break;case"YYY":Ue=_t(3);break;case"YYYY":Ue=_t(4);break;case"M":case"L":Ue=Ut(J.Month,1,1);break;case"MM":case"LL":Ue=Ut(J.Month,2,1);break;case"MMM":Ue=gn(ae.Months,yt.Abbreviated);break;case"MMMM":Ue=gn(ae.Months,yt.Wide);break;case"MMMMM":Ue=gn(ae.Months,yt.Narrow);break;case"LLL":Ue=gn(ae.Months,yt.Abbreviated,Zt.Standalone);break;case"LLLL":Ue=gn(ae.Months,yt.Wide,Zt.Standalone);break;case"LLLLL":Ue=gn(ae.Months,yt.Narrow,Zt.Standalone);break;case"w":Ue=qt(1);break;case"ww":Ue=qt(2);break;case"W":Ue=qt(1,!0);break;case"d":Ue=Ut(J.Date,1);break;case"dd":Ue=Ut(J.Date,2);break;case"c":case"cc":Ue=Ut(J.Day,1);break;case"ccc":Ue=gn(ae.Days,yt.Abbreviated,Zt.Standalone);break;case"cccc":Ue=gn(ae.Days,yt.Wide,Zt.Standalone);break;case"ccccc":Ue=gn(ae.Days,yt.Narrow,Zt.Standalone);break;case"cccccc":Ue=gn(ae.Days,yt.Short,Zt.Standalone);break;case"E":case"EE":case"EEE":Ue=gn(ae.Days,yt.Abbreviated);break;case"EEEE":Ue=gn(ae.Days,yt.Wide);break;case"EEEEE":Ue=gn(ae.Days,yt.Narrow);break;case"EEEEEE":Ue=gn(ae.Days,yt.Short);break;case"a":case"aa":case"aaa":Ue=gn(ae.DayPeriods,yt.Abbreviated);break;case"aaaa":Ue=gn(ae.DayPeriods,yt.Wide);break;case"aaaaa":Ue=gn(ae.DayPeriods,yt.Narrow);break;case"b":case"bb":case"bbb":Ue=gn(ae.DayPeriods,yt.Abbreviated,Zt.Standalone,!0);break;case"bbbb":Ue=gn(ae.DayPeriods,yt.Wide,Zt.Standalone,!0);break;case"bbbbb":Ue=gn(ae.DayPeriods,yt.Narrow,Zt.Standalone,!0);break;case"B":case"BB":case"BBB":Ue=gn(ae.DayPeriods,yt.Abbreviated,Zt.Format,!0);break;case"BBBB":Ue=gn(ae.DayPeriods,yt.Wide,Zt.Format,!0);break;case"BBBBB":Ue=gn(ae.DayPeriods,yt.Narrow,Zt.Format,!0);break;case"h":Ue=Ut(J.Hours,1,-12);break;case"hh":Ue=Ut(J.Hours,2,-12);break;case"H":Ue=Ut(J.Hours,1);break;case"HH":Ue=Ut(J.Hours,2);break;case"m":Ue=Ut(J.Minutes,1);break;case"mm":Ue=Ut(J.Minutes,2);break;case"s":Ue=Ut(J.Seconds,1);break;case"ss":Ue=Ut(J.Seconds,2);break;case"S":Ue=Ut(J.FractionalSeconds,1);break;case"SS":Ue=Ut(J.FractionalSeconds,2);break;case"SSS":Ue=Ut(J.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Ue=jn(Ce.Short);break;case"ZZZZZ":Ue=jn(Ce.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Ue=jn(Ce.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Ue=jn(Ce.Long);break;default:return null}return G[K]=Ue,Ue}(ar);hr+=xi?xi(kt,ge,ur):"''"===ar?"'":ar.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),hr}function ot(K,Ue,ge){const Ne=new Date(0);return Ne.setFullYear(K,Ue,ge),Ne.setHours(0,0,0),Ne}function Se(K,Ue){const ge=function wn(K){return(0,e.cg1)(K)[e.wAp.LocaleId]}(K);if(ct[ge]=ct[ge]||{},ct[ge][Ue])return ct[ge][Ue];let Ne="";switch(Ue){case"shortDate":Ne=at(K,un.Short);break;case"mediumDate":Ne=at(K,un.Medium);break;case"longDate":Ne=at(K,un.Long);break;case"fullDate":Ne=at(K,un.Full);break;case"shortTime":Ne=Be(K,un.Short);break;case"mediumTime":Ne=Be(K,un.Medium);break;case"longTime":Ne=Be(K,un.Long);break;case"fullTime":Ne=Be(K,un.Full);break;case"short":const kt=Se(K,"shortTime"),pn=Se(K,"shortDate");Ne=Ft(Ee(K,un.Short),[kt,pn]);break;case"medium":const Sn=Se(K,"mediumTime"),li=Se(K,"mediumDate");Ne=Ft(Ee(K,un.Medium),[Sn,li]);break;case"long":const ur=Se(K,"longTime"),hr=Se(K,"longDate");Ne=Ft(Ee(K,un.Long),[ur,hr]);break;case"full":const ar=Se(K,"fullTime"),xi=Se(K,"fullDate");Ne=Ft(Ee(K,un.Full),[ar,xi])}return Ne&&(ct[ge][Ue]=Ne),Ne}function Ft(K,Ue){return Ue&&(K=K.replace(/\{([^}]+)}/g,function(ge,Ne){return null!=Ue&&Ne in Ue?Ue[Ne]:ge})),K}function lt(K,Ue,ge="-",Ne,kt){let pn="";(K<0||kt&&K<=0)&&(kt?K=1-K:(K=-K,pn=ge));let Sn=String(K);for(;Sn.length0||li>-ge)&&(li+=ge),K===J.Hours)0===li&&-12===ge&&(li=12);else if(K===J.FractionalSeconds)return function Bt(K,Ue){return lt(K,3).substring(0,Ue)}(li,Ue);const ur=$e(Sn,Jt.MinusSign);return lt(li,Ue,ur,Ne,kt)}}function gn(K,Ue,ge=Zt.Format,Ne=!1){return function(kt,pn){return function An(K,Ue,ge,Ne,kt,pn){switch(ge){case ae.Months:return ti(Ue,kt,Ne)[K.getMonth()];case ae.Days:return Yn(Ue,kt,Ne)[K.getDay()];case ae.DayPeriods:const Sn=K.getHours(),li=K.getMinutes();if(pn){const hr=function Qt(K){const Ue=(0,e.cg1)(K);return Nt(Ue),(Ue[e.wAp.ExtraData][2]||[]).map(Ne=>"string"==typeof Ne?rn(Ne):[rn(Ne[0]),rn(Ne[1])])}(Ue),ar=function nn(K,Ue,ge){const Ne=(0,e.cg1)(K);Nt(Ne);const pn=Ot([Ne[e.wAp.ExtraData][0],Ne[e.wAp.ExtraData][1]],Ue)||[];return Ot(pn,ge)||[]}(Ue,kt,Ne),xi=hr.findIndex(Ar=>{if(Array.isArray(Ar)){const[Nr,mr]=Ar,vs=Sn>=Nr.hours&&li>=Nr.minutes,bs=Sn0?Math.floor(kt/60):Math.ceil(kt/60);switch(K){case Ce.Short:return(kt>=0?"+":"")+lt(Sn,2,pn)+lt(Math.abs(kt%60),2,pn);case Ce.ShortGMT:return"GMT"+(kt>=0?"+":"")+lt(Sn,1,pn);case Ce.Long:return"GMT"+(kt>=0?"+":"")+lt(Sn,2,pn)+":"+lt(Math.abs(kt%60),2,pn);case Ce.Extended:return 0===Ne?"Z":(kt>=0?"+":"")+lt(Sn,2,pn)+":"+lt(Math.abs(kt%60),2,pn);default:throw new Error(`Unknown zone width "${K}"`)}}}const ai=0,di=4;function Jn(K){return ot(K.getFullYear(),K.getMonth(),K.getDate()+(di-K.getDay()))}function qt(K,Ue=!1){return function(ge,Ne){let kt;if(Ue){const pn=new Date(ge.getFullYear(),ge.getMonth(),1).getDay()-1,Sn=ge.getDate();kt=1+Math.floor((Sn+pn)/7)}else{const pn=Jn(ge),Sn=function oi(K){const Ue=ot(K,ai,1).getDay();return ot(K,0,1+(Ue<=di?di:di+7)-Ue)}(pn.getFullYear()),li=pn.getTime()-Sn.getTime();kt=1+Math.round(li/6048e5)}return lt(kt,K,$e(Ne,Jt.MinusSign))}}function _t(K,Ue=!1){return function(ge,Ne){return lt(Jn(ge).getFullYear(),K,$e(Ne,Jt.MinusSign),Ue)}}const G={};function ve(K,Ue){K=K.replace(/:/g,"");const ge=Date.parse("Jan 01, 1970 00:00:00 "+K)/6e4;return isNaN(ge)?Ue:ge}function be(K){return K instanceof Date&&!isNaN(K.valueOf())}const Te=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Vn(K){const Ue=parseInt(K);if(isNaN(Ue))throw new Error("Invalid integer literal when parsing "+K);return Ue}function Bi(K,Ue){Ue=encodeURIComponent(Ue);for(const ge of K.split(";")){const Ne=ge.indexOf("="),[kt,pn]=-1==Ne?[ge,""]:[ge.slice(0,Ne),ge.slice(Ne+1)];if(kt.trim()===Ue)return decodeURIComponent(pn)}return null}const co=/\s+/,Ji=[];let tr=(()=>{class K{constructor(ge,Ne,kt,pn){this._iterableDiffers=ge,this._keyValueDiffers=Ne,this._ngEl=kt,this._renderer=pn,this.initialClasses=Ji,this.stateMap=new Map}set klass(ge){this.initialClasses=null!=ge?ge.trim().split(co):Ji}set ngClass(ge){this.rawClass="string"==typeof ge?ge.trim().split(co):ge}ngDoCheck(){for(const Ne of this.initialClasses)this._updateState(Ne,!0);const ge=this.rawClass;if(Array.isArray(ge)||ge instanceof Set)for(const Ne of ge)this._updateState(Ne,!0);else if(null!=ge)for(const Ne of Object.keys(ge))this._updateState(Ne,!!ge[Ne]);this._applyStateDiff()}_updateState(ge,Ne){const kt=this.stateMap.get(ge);void 0!==kt?(kt.enabled!==Ne&&(kt.changed=!0,kt.enabled=Ne),kt.touched=!0):this.stateMap.set(ge,{enabled:Ne,changed:!0,touched:!0})}_applyStateDiff(){for(const ge of this.stateMap){const Ne=ge[0],kt=ge[1];kt.changed?(this._toggleClass(Ne,kt.enabled),kt.changed=!1):kt.touched||(kt.enabled&&this._toggleClass(Ne,!1),this.stateMap.delete(Ne)),kt.touched=!1}}_toggleClass(ge,Ne){(ge=ge.trim()).length>0&&ge.split(co).forEach(kt=>{Ne?this._renderer.addClass(this._ngEl.nativeElement,kt):this._renderer.removeClass(this._ngEl.nativeElement,kt)})}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.ZZ4),e.Y36(e.aQg),e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return K})();class pr{constructor(Ue,ge,Ne,kt){this.$implicit=Ue,this.ngForOf=ge,this.index=Ne,this.count=kt}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 br=(()=>{class K{set ngForOf(ge){this._ngForOf=ge,this._ngForOfDirty=!0}set ngForTrackBy(ge){this._trackByFn=ge}get ngForTrackBy(){return this._trackByFn}constructor(ge,Ne,kt){this._viewContainer=ge,this._template=Ne,this._differs=kt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(ge){ge&&(this._template=ge)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const ge=this._ngForOf;!this._differ&&ge&&(this._differ=this._differs.find(ge).create(this.ngForTrackBy))}if(this._differ){const ge=this._differ.diff(this._ngForOf);ge&&this._applyChanges(ge)}}_applyChanges(ge){const Ne=this._viewContainer;ge.forEachOperation((kt,pn,Sn)=>{if(null==kt.previousIndex)Ne.createEmbeddedView(this._template,new pr(kt.item,this._ngForOf,-1,-1),null===Sn?void 0:Sn);else if(null==Sn)Ne.remove(null===pn?void 0:pn);else if(null!==pn){const li=Ne.get(pn);Ne.move(li,Sn),$n(li,kt)}});for(let kt=0,pn=Ne.length;kt{$n(Ne.get(kt.currentIndex),kt)})}static ngTemplateContextGuard(ge,Ne){return!0}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(e.ZZ4))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return K})();function $n(K,Ue){K.context.$implicit=Ue.item}let Fr=(()=>{class K{constructor(ge,Ne){this._viewContainer=ge,this._context=new uo,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Ne}set ngIf(ge){this._context.$implicit=this._context.ngIf=ge,this._updateView()}set ngIfThen(ge){ho("ngIfThen",ge),this._thenTemplateRef=ge,this._thenViewRef=null,this._updateView()}set ngIfElse(ge){ho("ngIfElse",ge),this._elseTemplateRef=ge,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(ge,Ne){return!0}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return K})();class uo{constructor(){this.$implicit=null,this.ngIf=null}}function ho(K,Ue){if(Ue&&!Ue.createEmbeddedView)throw new Error(`${K} must be a TemplateRef, but received '${(0,e.AaK)(Ue)}'.`)}class to{constructor(Ue,ge){this._viewContainerRef=Ue,this._templateRef=ge,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Ue){Ue&&!this._created?this.create():!Ue&&this._created&&this.destroy()}}let yr=(()=>{class K{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(ge){this._ngSwitch=ge,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(ge){this._defaultViews.push(ge)}_matchCase(ge){const Ne=ge==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||Ne,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),Ne}_updateDefaultCases(ge){if(this._defaultViews.length>0&&ge!==this._defaultUsed){this._defaultUsed=ge;for(const Ne of this._defaultViews)Ne.enforceState(ge)}}static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return K})(),Gs=(()=>{class K{constructor(ge,Ne,kt){this.ngSwitch=kt,kt._addCase(),this._view=new to(ge,Ne)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(yr,9))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return K})(),Ba=(()=>{class K{constructor(ge,Ne,kt){kt._addDefault(new to(ge,Ne))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b),e.Y36(e.Rgc),e.Y36(yr,9))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return K})(),Ds=(()=>{class K{constructor(ge,Ne,kt){this._ngEl=ge,this._differs=Ne,this._renderer=kt,this._ngStyle=null,this._differ=null}set ngStyle(ge){this._ngStyle=ge,!this._differ&&ge&&(this._differ=this._differs.find(ge).create())}ngDoCheck(){if(this._differ){const ge=this._differ.diff(this._ngStyle);ge&&this._applyChanges(ge)}}_setStyle(ge,Ne){const[kt,pn]=ge.split("."),Sn=-1===kt.indexOf("-")?void 0:e.JOm.DashCase;null!=Ne?this._renderer.setStyle(this._ngEl.nativeElement,kt,pn?`${Ne}${pn}`:Ne,Sn):this._renderer.removeStyle(this._ngEl.nativeElement,kt,Sn)}_applyChanges(ge){ge.forEachRemovedItem(Ne=>this._setStyle(Ne.key,null)),ge.forEachAddedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue)),ge.forEachChangedItem(Ne=>this._setStyle(Ne.key,Ne.currentValue))}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.SBq),e.Y36(e.aQg),e.Y36(e.Qsj))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}return K})(),$s=(()=>{class K{constructor(ge){this._viewContainerRef=ge,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(ge){if(ge.ngTemplateOutlet||ge.ngTemplateOutletInjector){const Ne=this._viewContainerRef;if(this._viewRef&&Ne.remove(Ne.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:kt,ngTemplateOutletContext:pn,ngTemplateOutletInjector:Sn}=this;this._viewRef=Ne.createEmbeddedView(kt,pn,Sn?{injector:Sn}:void 0)}else this._viewRef=null}else this._viewRef&&ge.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.s_b))};static#t=this.\u0275dir=e.lG2({type:K,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.TTD]})}return K})();function Jr(K,Ue){return new e.vHH(2100,!1)}class ga{createSubscription(Ue,ge){return(0,e.rg0)(()=>Ue.subscribe({next:ge,error:Ne=>{throw Ne}}))}dispose(Ue){(0,e.rg0)(()=>Ue.unsubscribe())}}class kr{createSubscription(Ue,ge){return Ue.then(ge,Ne=>{throw Ne})}dispose(Ue){}}const oo=new kr,fs=new ga;let Sa=(()=>{class K{constructor(ge){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=ge}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(ge){return this._obj?ge!==this._obj?(this._dispose(),this.transform(ge)):this._latestValue:(ge&&this._subscribe(ge),this._latestValue)}_subscribe(ge){this._obj=ge,this._strategy=this._selectStrategy(ge),this._subscription=this._strategy.createSubscription(ge,Ne=>this._updateLatestValue(ge,Ne))}_selectStrategy(ge){if((0,e.QGY)(ge))return oo;if((0,e.F4k)(ge))return fs;throw Jr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(ge,Ne){ge===this._obj&&(this._latestValue=Ne,this._ref.markForCheck())}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.sBO,16))};static#t=this.\u0275pipe=e.Yjl({name:"async",type:K,pure:!1,standalone:!0})}return K})();const Li=new e.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Yr=new e.OlP("DATE_PIPE_DEFAULT_OPTIONS");let dr=(()=>{class K{constructor(ge,Ne,kt){this.locale=ge,this.defaultTimezone=Ne,this.defaultOptions=kt}transform(ge,Ne,kt,pn){if(null==ge||""===ge||ge!=ge)return null;try{return Oe(ge,Ne??this.defaultOptions?.dateFormat??"mediumDate",pn||this.locale,kt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Sn){throw Jr()}}static#e=this.\u0275fac=function(Ne){return new(Ne||K)(e.Y36(e.soG,16),e.Y36(Li,24),e.Y36(Yr,24))};static#t=this.\u0275pipe=e.Yjl({name:"date",type:K,pure:!0,standalone:!0})}return K})(),er=(()=>{class K{constructor(ge){this._locale=ge}transform(ge,Ne,kt){if(!function _r(K){return!(null==K||""===K||K!=K)}(ge))return null;kt=kt||this._locale;try{return function cn(K,Ue,ge){return function ht(K,Ue,ge,Ne,kt,pn,Sn=!1){let li="",ur=!1;if(isFinite(K)){let hr=function On(K){let Ne,kt,pn,Sn,li,Ue=Math.abs(K)+"",ge=0;for((kt=Ue.indexOf("."))>-1&&(Ue=Ue.replace(".","")),(pn=Ue.search(/e/i))>0?(kt<0&&(kt=pn),kt+=+Ue.slice(pn+1),Ue=Ue.substring(0,pn)):kt<0&&(kt=Ue.length),pn=0;"0"===Ue.charAt(pn);pn++);if(pn===(li=Ue.length))Ne=[0],kt=1;else{for(li--;"0"===Ue.charAt(li);)li--;for(kt-=pn,Ne=[],Sn=0;pn<=li;pn++,Sn++)Ne[Sn]=Number(Ue.charAt(pn))}return kt>22&&(Ne=Ne.splice(0,21),ge=kt-1,kt=1),{digits:Ne,exponent:ge,integerLen:kt}}(K);Sn&&(hr=function En(K){if(0===K.digits[0])return K;const Ue=K.digits.length-K.integerLen;return K.exponent?K.exponent+=2:(0===Ue?K.digits.push(0,0):1===Ue&&K.digits.push(0),K.integerLen+=2),K}(hr));let ar=Ue.minInt,xi=Ue.minFrac,Ar=Ue.maxFrac;if(pn){const Ui=pn.match(Te);if(null===Ui)throw new Error(`${pn} is not a valid digit info`);const Ma=Ui[1],Qr=Ui[3],zr=Ui[5];null!=Ma&&(ar=Vn(Ma)),null!=Qr&&(xi=Vn(Qr)),null!=zr?Ar=Vn(zr):null!=Qr&&xi>Ar&&(Ar=xi)}!function ni(K,Ue,ge){if(Ue>ge)throw new Error(`The minimum number of digits after fraction (${Ue}) is higher than the maximum (${ge}).`);let Ne=K.digits,kt=Ne.length-K.integerLen;const pn=Math.min(Math.max(Ue,kt),ge);let Sn=pn+K.integerLen,li=Ne[Sn];if(Sn>0){Ne.splice(Math.max(K.integerLen,Sn));for(let xi=Sn;xi=5)if(Sn-1<0){for(let xi=0;xi>Sn;xi--)Ne.unshift(0),K.integerLen++;Ne.unshift(1),K.integerLen++}else Ne[Sn-1]++;for(;kt=hr?mr.pop():ur=!1),Ar>=10?1:0},0);ar&&(Ne.unshift(ar),K.integerLen++)}(hr,xi,Ar);let Nr=hr.digits,mr=hr.integerLen;const vs=hr.exponent;let bs=[];for(ur=Nr.every(Ui=>!Ui);mr0?bs=Nr.splice(mr,Nr.length):(bs=Nr,Nr=[0]);const $a=[];for(Nr.length>=Ue.lgSize&&$a.unshift(Nr.splice(-Ue.lgSize,Nr.length).join(""));Nr.length>Ue.gSize;)$a.unshift(Nr.splice(-Ue.gSize,Nr.length).join(""));Nr.length&&$a.unshift(Nr.join("")),li=$a.join($e(ge,Ne)),bs.length&&(li+=$e(ge,kt)+bs.join("")),vs&&(li+=$e(ge,Jt.Exponential)+"+"+vs)}else li=$e(ge,Jt.Infinity);return li=K<0&&!ur?Ue.negPre+li+Ue.negSuf:Ue.posPre+li+Ue.posSuf,li}(K,function _n(K,Ue="-"){const ge={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},Ne=K.split(";"),kt=Ne[0],pn=Ne[1],Sn=-1!==kt.indexOf(".")?kt.split("."):[kt.substring(0,kt.lastIndexOf("0")+1),kt.substring(kt.lastIndexOf("0")+1)],li=Sn[0],ur=Sn[1]||"";ge.posPre=li.substring(0,li.indexOf("#"));for(let ar=0;ar{class K{static#e=this.\u0275fac=function(Ne){return new(Ne||K)};static#t=this.\u0275mod=e.oAB({type:K});static#n=this.\u0275inj=e.cJS({})}return K})();const nr="browser",ps="server";function qs(K){return K===nr}function ba(K){return K===ps}let Ko=(()=>{class K{static#e=this.\u0275prov=(0,e.Yz7)({token:K,providedIn:"root",factory:()=>new or((0,e.LFG)(w),window)})}return K})();class or{constructor(Ue,ge){this.document=Ue,this.window=ge,this.offset=()=>[0,0]}setOffset(Ue){this.offset=Array.isArray(Ue)?()=>Ue:Ue}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Ue){this.supportsScrolling()&&this.window.scrollTo(Ue[0],Ue[1])}scrollToAnchor(Ue){if(!this.supportsScrolling())return;const ge=function Xs(K,Ue){const ge=K.getElementById(Ue)||K.getElementsByName(Ue)[0];if(ge)return ge;if("function"==typeof K.createTreeWalker&&K.body&&"function"==typeof K.body.attachShadow){const Ne=K.createTreeWalker(K.body,NodeFilter.SHOW_ELEMENT);let kt=Ne.currentNode;for(;kt;){const pn=kt.shadowRoot;if(pn){const Sn=pn.getElementById(Ue)||pn.querySelector(`[name="${Ue}"]`);if(Sn)return Sn}kt=Ne.nextNode()}}return null}(this.document,Ue);ge&&(this.scrollToElement(ge),ge.focus())}setHistoryScrollRestoration(Ue){this.supportsScrolling()&&(this.window.history.scrollRestoration=Ue)}scrollToElement(Ue){const ge=Ue.getBoundingClientRect(),Ne=ge.left+this.window.pageXOffset,kt=ge.top+this.window.pageYOffset,pn=this.offset();this.window.scrollTo(Ne-pn[0],kt-pn[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class Sr{}},9862:(ft,Ie,C)=>{"use strict";C.d(Ie,{JF:()=>Te,TP:()=>Nt,UA:()=>gi,WM:()=>te,eN:()=>dt});var e=C(5879),l=C(2096),D=C(9666),I=C(5592),S=C(6328),w=C(2181),n=C(7398),Z=C(4716),ee=C(4664),re=C(6814);class ue{}class se{}class te{constructor(st){this.normalizedNames=new Map,this.lazyUpdate=null,st?"string"==typeof st?this.lazyInit=()=>{this.headers=new Map,st.split("\n").forEach(It=>{const cn=It.indexOf(":");if(cn>0){const _n=It.slice(0,cn),En=_n.toLowerCase(),On=It.slice(cn+1).trim();this.maybeSetNormalizedName(_n,En),this.headers.has(En)?this.headers.get(En).push(On):this.headers.set(En,[On])}})}:typeof Headers<"u"&&st instanceof Headers?(this.headers=new Map,st.forEach((It,cn)=>{this.setHeaderEntries(cn,It)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(st).forEach(([It,cn])=>{this.setHeaderEntries(It,cn)})}:this.headers=new Map}has(st){return this.init(),this.headers.has(st.toLowerCase())}get(st){this.init();const It=this.headers.get(st.toLowerCase());return It&&It.length>0?It[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(st){return this.init(),this.headers.get(st.toLowerCase())||null}append(st,It){return this.clone({name:st,value:It,op:"a"})}set(st,It){return this.clone({name:st,value:It,op:"s"})}delete(st,It){return this.clone({name:st,value:It,op:"d"})}maybeSetNormalizedName(st,It){this.normalizedNames.has(It)||this.normalizedNames.set(It,st)}init(){this.lazyInit&&(this.lazyInit instanceof te?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(st=>this.applyUpdate(st)),this.lazyUpdate=null))}copyFrom(st){st.init(),Array.from(st.headers.keys()).forEach(It=>{this.headers.set(It,st.headers.get(It)),this.normalizedNames.set(It,st.normalizedNames.get(It))})}clone(st){const It=new te;return It.lazyInit=this.lazyInit&&this.lazyInit instanceof te?this.lazyInit:this,It.lazyUpdate=(this.lazyUpdate||[]).concat([st]),It}applyUpdate(st){const It=st.name.toLowerCase();switch(st.op){case"a":case"s":let cn=st.value;if("string"==typeof cn&&(cn=[cn]),0===cn.length)return;this.maybeSetNormalizedName(st.name,It);const _n=("a"===st.op?this.headers.get(It):void 0)||[];_n.push(...cn),this.headers.set(It,_n);break;case"d":const En=st.value;if(En){let On=this.headers.get(It);if(!On)return;On=On.filter(ni=>-1===En.indexOf(ni)),0===On.length?(this.headers.delete(It),this.normalizedNames.delete(It)):this.headers.set(It,On)}else this.headers.delete(It),this.normalizedNames.delete(It)}}setHeaderEntries(st,It){const cn=(Array.isArray(It)?It:[It]).map(En=>En.toString()),_n=st.toLowerCase();this.headers.set(_n,cn),this.maybeSetNormalizedName(st,_n)}forEach(st){this.init(),Array.from(this.normalizedNames.keys()).forEach(It=>st(this.normalizedNames.get(It),this.headers.get(It)))}}class ce{encodeKey(st){return Ge(st)}encodeValue(st){return Ge(st)}decodeKey(st){return decodeURIComponent(st)}decodeValue(st){return decodeURIComponent(st)}}const Re=/%(\d[a-f0-9])/gi,mt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ge(ht){return encodeURIComponent(ht).replace(Re,(st,It)=>mt[It]??st)}function Lt(ht){return`${ht}`}class je{constructor(st={}){if(this.updates=null,this.cloneFrom=null,this.encoder=st.encoder||new ce,st.fromString){if(st.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function _e(ht,st){const It=new Map;return ht.length>0&&ht.replace(/^\?/,"").split("&").forEach(_n=>{const En=_n.indexOf("="),[On,ni]=-1==En?[st.decodeKey(_n),""]:[st.decodeKey(_n.slice(0,En)),st.decodeValue(_n.slice(En+1))],Vn=It.get(On)||[];Vn.push(ni),It.set(On,Vn)}),It}(st.fromString,this.encoder)}else st.fromObject?(this.map=new Map,Object.keys(st.fromObject).forEach(It=>{const cn=st.fromObject[It],_n=Array.isArray(cn)?cn.map(Lt):[Lt(cn)];this.map.set(It,_n)})):this.map=null}has(st){return this.init(),this.map.has(st)}get(st){this.init();const It=this.map.get(st);return It?It[0]:null}getAll(st){return this.init(),this.map.get(st)||null}keys(){return this.init(),Array.from(this.map.keys())}append(st,It){return this.clone({param:st,value:It,op:"a"})}appendAll(st){const It=[];return Object.keys(st).forEach(cn=>{const _n=st[cn];Array.isArray(_n)?_n.forEach(En=>{It.push({param:cn,value:En,op:"a"})}):It.push({param:cn,value:_n,op:"a"})}),this.clone(It)}set(st,It){return this.clone({param:st,value:It,op:"s"})}delete(st,It){return this.clone({param:st,value:It,op:"d"})}toString(){return this.init(),this.keys().map(st=>{const It=this.encoder.encodeKey(st);return this.map.get(st).map(cn=>It+"="+this.encoder.encodeValue(cn)).join("&")}).filter(st=>""!==st).join("&")}clone(st){const It=new je({encoder:this.encoder});return It.cloneFrom=this.cloneFrom||this,It.updates=(this.updates||[]).concat(st),It}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(st=>this.map.set(st,this.cloneFrom.map.get(st))),this.updates.forEach(st=>{switch(st.op){case"a":case"s":const It=("a"===st.op?this.map.get(st.param):void 0)||[];It.push(Lt(st.value)),this.map.set(st.param,It);break;case"d":if(void 0===st.value){this.map.delete(st.param);break}{let cn=this.map.get(st.param)||[];const _n=cn.indexOf(Lt(st.value));-1!==_n&&cn.splice(_n,1),cn.length>0?this.map.set(st.param,cn):this.map.delete(st.param)}}}),this.cloneFrom=this.updates=null)}}class xt{constructor(){this.map=new Map}set(st,It){return this.map.set(st,It),this}get(st){return this.map.has(st)||this.map.set(st,st.defaultValue()),this.map.get(st)}delete(st){return this.map.delete(st),this}has(st){return this.map.has(st)}keys(){return this.map.keys()}}function Zt(ht){return typeof ArrayBuffer<"u"&&ht instanceof ArrayBuffer}function yt(ht){return typeof Blob<"u"&&ht instanceof Blob}function un(ht){return typeof FormData<"u"&&ht instanceof FormData}class tn{constructor(st,It,cn,_n){let En;if(this.url=It,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=st.toUpperCase(),function St(ht){switch(ht){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||_n?(this.body=void 0!==cn?cn:null,En=_n):En=cn,En&&(this.reportProgress=!!En.reportProgress,this.withCredentials=!!En.withCredentials,En.responseType&&(this.responseType=En.responseType),En.headers&&(this.headers=En.headers),En.context&&(this.context=En.context),En.params&&(this.params=En.params)),this.headers||(this.headers=new te),this.context||(this.context=new xt),this.params){const On=this.params.toString();if(0===On.length)this.urlWithParams=It;else{const ni=It.indexOf("?");this.urlWithParams=It+(-1===ni?"?":niKr.set(vr,st.setHeaders[vr]),Vn)),st.setParams&&(fr=Object.keys(st.setParams).reduce((Kr,vr)=>Kr.set(vr,st.setParams[vr]),fr)),new tn(It,cn,En,{params:fr,headers:Vn,context:ki,reportProgress:ni,responseType:_n,withCredentials:On})}}var wn=function(ht){return ht[ht.Sent=0]="Sent",ht[ht.UploadProgress=1]="UploadProgress",ht[ht.ResponseHeader=2]="ResponseHeader",ht[ht.DownloadProgress=3]="DownloadProgress",ht[ht.Response=4]="Response",ht[ht.User=5]="User",ht}(wn||{});class Ln{constructor(st,It=200,cn="OK"){this.headers=st.headers||new te,this.status=void 0!==st.status?st.status:It,this.statusText=st.statusText||cn,this.url=st.url||null,this.ok=this.status>=200&&this.status<300}}class Yn extends Ln{constructor(st={}){super(st),this.type=wn.ResponseHeader}clone(st={}){return new Yn({headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}class ti extends Ln{constructor(st={}){super(st),this.type=wn.Response,this.body=void 0!==st.body?st.body:null}clone(st={}){return new ti({body:void 0!==st.body?st.body:this.body,headers:st.headers||this.headers,status:void 0!==st.status?st.status:this.status,statusText:st.statusText||this.statusText,url:st.url||this.url||void 0})}}class gi extends Ln{constructor(st){super(st,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${st.url||"(unknown url)"}`:`Http failure response for ${st.url||"(unknown url)"}: ${st.status} ${st.statusText}`,this.error=st.error||null}}function Rn(ht,st){return{body:st,headers:ht.headers,context:ht.context,observe:ht.observe,params:ht.params,reportProgress:ht.reportProgress,responseType:ht.responseType,withCredentials:ht.withCredentials}}let dt=(()=>{class ht{constructor(It){this.handler=It}request(It,cn,_n={}){let En;if(It instanceof tn)En=It;else{let Vn,fr;Vn=_n.headers instanceof te?_n.headers:new te(_n.headers),_n.params&&(fr=_n.params instanceof je?_n.params:new je({fromObject:_n.params})),En=new tn(It,cn,void 0!==_n.body?_n.body:null,{headers:Vn,context:_n.context,params:fr,reportProgress:_n.reportProgress,responseType:_n.responseType||"json",withCredentials:_n.withCredentials})}const On=(0,l.of)(En).pipe((0,S.b)(Vn=>this.handler.handle(Vn)));if(It instanceof tn||"events"===_n.observe)return On;const ni=On.pipe((0,w.h)(Vn=>Vn instanceof ti));switch(_n.observe||"body"){case"body":switch(En.responseType){case"arraybuffer":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&!(Vn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Vn.body}));case"blob":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&!(Vn.body instanceof Blob))throw new Error("Response is not a Blob.");return Vn.body}));case"text":return ni.pipe((0,n.U)(Vn=>{if(null!==Vn.body&&"string"!=typeof Vn.body)throw new Error("Response is not a string.");return Vn.body}));default:return ni.pipe((0,n.U)(Vn=>Vn.body))}case"response":return ni;default:throw new Error(`Unreachable: unhandled observe type ${_n.observe}}`)}}delete(It,cn={}){return this.request("DELETE",It,cn)}get(It,cn={}){return this.request("GET",It,cn)}head(It,cn={}){return this.request("HEAD",It,cn)}jsonp(It,cn){return this.request("JSONP",It,{params:(new je).append(cn,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(It,cn={}){return this.request("OPTIONS",It,cn)}patch(It,cn,_n={}){return this.request("PATCH",It,Rn(_n,cn))}post(It,cn,_n={}){return this.request("POST",It,Rn(_n,cn))}put(It,cn,_n={}){return this.request("PUT",It,Rn(_n,cn))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(ue))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();function Ze(ht,st){return st(ht)}function rt(ht,st){return(It,cn)=>st.intercept(It,{handle:_n=>ht(_n,cn)})}const Nt=new e.OlP(""),Qt=new e.OlP(""),nn=new e.OlP("");function Dn(){let ht=null;return(st,It)=>{null===ht&&(ht=((0,e.f3M)(Nt,{optional:!0})??[]).reduceRight(rt,Ze));const cn=(0,e.f3M)(e.HDt),_n=cn.add();return ht(st,It).pipe((0,Z.x)(()=>cn.remove(_n)))}}let Ot=(()=>{class ht extends ue{constructor(It,cn){super(),this.backend=It,this.injector=cn,this.chain=null,this.pendingTasks=(0,e.f3M)(e.HDt)}handle(It){if(null===this.chain){const _n=Array.from(new Set([...this.injector.get(Qt),...this.injector.get(nn,[])]));this.chain=_n.reduceRight((En,On)=>function bt(ht,st,It){return(cn,_n)=>It.runInContext(()=>st(cn,En=>ht(En,_n)))}(En,On,this.injector),Ze)}const cn=this.pendingTasks.add();return this.chain(It,_n=>this.backend.handle(_n)).pipe((0,Z.x)(()=>this.pendingTasks.remove(cn)))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(se),e.LFG(e.lqb))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();const ot=/^\)\]\}',?\n/;let Ft=(()=>{class ht{constructor(It){this.xhrFactory=It}handle(It){if("JSONP"===It.method)throw new e.vHH(-2800,!1);const cn=this.xhrFactory;return(cn.\u0275loadImpl?(0,D.D)(cn.\u0275loadImpl()):(0,l.of)(null)).pipe((0,ee.w)(()=>new I.y(En=>{const On=cn.build();if(On.open(It.method,It.urlWithParams),It.withCredentials&&(On.withCredentials=!0),It.headers.forEach((Ji,tr)=>On.setRequestHeader(Ji,tr.join(","))),It.headers.has("Accept")||On.setRequestHeader("Accept","application/json, text/plain, */*"),!It.headers.has("Content-Type")){const Ji=It.detectContentTypeHeader();null!==Ji&&On.setRequestHeader("Content-Type",Ji)}if(It.responseType){const Ji=It.responseType.toLowerCase();On.responseType="json"!==Ji?Ji:"text"}const ni=It.serializeBody();let Vn=null;const fr=()=>{if(null!==Vn)return Vn;const Ji=On.statusText||"OK",tr=new te(On.getAllResponseHeaders()),_i=function Se(ht){return"responseURL"in ht&&ht.responseURL?ht.responseURL:/^X-Request-URL:/m.test(ht.getAllResponseHeaders())?ht.getResponseHeader("X-Request-URL"):null}(On)||It.url;return Vn=new Yn({headers:tr,status:On.status,statusText:Ji,url:_i}),Vn},ki=()=>{let{headers:Ji,status:tr,statusText:_i,url:bo}=fr(),pr=null;204!==tr&&(pr=typeof On.response>"u"?On.responseText:On.response),0===tr&&(tr=pr?200:0);let br=tr>=200&&tr<300;if("json"===It.responseType&&"string"==typeof pr){const $n=pr;pr=pr.replace(ot,"");try{pr=""!==pr?JSON.parse(pr):null}catch(yo){pr=$n,br&&(br=!1,pr={error:yo,text:pr})}}br?(En.next(new ti({body:pr,headers:Ji,status:tr,statusText:_i,url:bo||void 0})),En.complete()):En.error(new gi({error:pr,headers:Ji,status:tr,statusText:_i,url:bo||void 0}))},Kr=Ji=>{const{url:tr}=fr(),_i=new gi({error:Ji,status:On.status||0,statusText:On.statusText||"Unknown Error",url:tr||void 0});En.error(_i)};let vr=!1;const Bi=Ji=>{vr||(En.next(fr()),vr=!0);let tr={type:wn.DownloadProgress,loaded:Ji.loaded};Ji.lengthComputable&&(tr.total=Ji.total),"text"===It.responseType&&On.responseText&&(tr.partialText=On.responseText),En.next(tr)},co=Ji=>{let tr={type:wn.UploadProgress,loaded:Ji.loaded};Ji.lengthComputable&&(tr.total=Ji.total),En.next(tr)};return On.addEventListener("load",ki),On.addEventListener("error",Kr),On.addEventListener("timeout",Kr),On.addEventListener("abort",Kr),It.reportProgress&&(On.addEventListener("progress",Bi),null!==ni&&On.upload&&On.upload.addEventListener("progress",co)),On.send(ni),En.next({type:wn.Sent}),()=>{On.removeEventListener("error",Kr),On.removeEventListener("abort",Kr),On.removeEventListener("load",ki),On.removeEventListener("timeout",Kr),It.reportProgress&&(On.removeEventListener("progress",Bi),null!==ni&&On.upload&&On.upload.removeEventListener("progress",co)),On.readyState!==On.DONE&&On.abort()}})))}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(re.JF))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();const lt=new e.OlP("XSRF_ENABLED"),Ut=new e.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),gn=new e.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class An{}let jn=(()=>{class ht{constructor(It,cn,_n){this.doc=It,this.platform=cn,this.cookieName=_n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const It=this.doc.cookie||"";return It!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,re.Mx)(It,this.cookieName),this.lastCookieString=It),this.lastToken}static#e=this.\u0275fac=function(cn){return new(cn||ht)(e.LFG(re.K0),e.LFG(e.Lbi),e.LFG(Ut))};static#t=this.\u0275prov=e.Yz7({token:ht,factory:ht.\u0275fac})}return ht})();function ai(ht,st){const It=ht.url.toLowerCase();if(!(0,e.f3M)(lt)||"GET"===ht.method||"HEAD"===ht.method||It.startsWith("http://")||It.startsWith("https://"))return st(ht);const cn=(0,e.f3M)(An).getToken(),_n=(0,e.f3M)(gn);return null!=cn&&!ht.headers.has(_n)&&(ht=ht.clone({headers:ht.headers.set(_n,cn)})),st(ht)}var oi=function(ht){return ht[ht.Interceptors=0]="Interceptors",ht[ht.LegacyInterceptors=1]="LegacyInterceptors",ht[ht.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",ht[ht.NoXsrfProtection=3]="NoXsrfProtection",ht[ht.JsonpSupport=4]="JsonpSupport",ht[ht.RequestsMadeViaParent=5]="RequestsMadeViaParent",ht[ht.Fetch=6]="Fetch",ht}(oi||{});function qt(...ht){const st=[dt,Ft,Ot,{provide:ue,useExisting:Ot},{provide:se,useExisting:Ft},{provide:Qt,useValue:ai,multi:!0},{provide:lt,useValue:!0},{provide:An,useClass:jn}];for(const It of ht)st.push(...It.\u0275providers);return(0,e.MR2)(st)}const G=new e.OlP("LEGACY_INTERCEPTOR_FN");function U(){return function Jn(ht,st){return{\u0275kind:ht,\u0275providers:st}}(oi.LegacyInterceptors,[{provide:G,useFactory:Dn},{provide:Qt,useExisting:G,multi:!0}])}let Te=(()=>{class ht{static#e=this.\u0275fac=function(cn){return new(cn||ht)};static#t=this.\u0275mod=e.oAB({type:ht});static#n=this.\u0275inj=e.cJS({providers:[qt(U())]})}return ht})()},5879:(ft,Ie,C)=>{"use strict";C.d(Ie,{$8M:()=>Wd,$WT:()=>Ha,$Z:()=>K_,AFp:()=>S_,ALo:()=>Qb,AaK:()=>se,Akn:()=>Cu,AsE:()=>mv,B6R:()=>oo,BQk:()=>Dm,CHM:()=>Jl,CRH:()=>_y,DdM:()=>Ub,EJc:()=>IC,EiD:()=>hs,EpF:()=>a1,F$t:()=>f1,F4k:()=>l1,FYo:()=>jp,FiY:()=>Wr,Gf:()=>fy,GfV:()=>Zp,GkF:()=>rv,Gpc:()=>ce,Gre:()=>z1,HDt:()=>Yy,Hsn:()=>p1,Ikx:()=>vv,JOm:()=>fa,JVY:()=>vu,JZr:()=>Lt,Jf7:()=>Uu,Jzz:()=>G1,KtG:()=>Il,L6k:()=>o,LAX:()=>i,LFG:()=>wt,LMc:()=>ZT,LSH:()=>b,Lbi:()=>Ef,Lck:()=>MM,MAs:()=>r1,MGl:()=>Em,MMx:()=>kb,MR2:()=>Rc,N_p:()=>Cv,NdJ:()=>sv,O4$:()=>dc,Ojb:()=>Jm,OlP:()=>Ut,Oqu:()=>_v,P3R:()=>Gn,PXZ:()=>sT,Q6J:()=>tv,QGY:()=>ov,QbO:()=>Km,Qsj:()=>P_,R0b:()=>jl,RDi:()=>ah,Rgc:()=>y_,SBq:()=>Vh,SDv:()=>Eb,Sil:()=>LC,Suo:()=>py,TTD:()=>xi,TgZ:()=>Mm,Tol:()=>O1,Udp:()=>hv,VKq:()=>Vb,VuI:()=>VT,W1O:()=>by,WFA:()=>av,WLB:()=>jb,X6Q:()=>pT,XFs:()=>Ce,Xpm:()=>kr,Xq5:()=>vm,Xts:()=>Ea,Y36:()=>fh,YKP:()=>Ib,YNc:()=>e1,Yjl:()=>qi,Yz7:()=>Nt,Z0I:()=>Ot,ZZ4:()=>e0,_Bn:()=>Ob,_UZ:()=>iv,_Vd:()=>Af,_c5:()=>OT,_uU:()=>F1,aQg:()=>t0,c2e:()=>Fy,cJS:()=>nn,cg1:()=>yv,d8E:()=>bv,dDg:()=>nT,dqk:()=>Ft,eBb:()=>t,eFA:()=>$y,eJc:()=>Yv,ekj:()=>fv,eoX:()=>Zy,evT:()=>zh,f3M:()=>fe,g9A:()=>Df,gHi:()=>Gp,h0i:()=>Uf,hGG:()=>IT,hij:()=>Om,iGM:()=>hy,ifc:()=>On,ip1:()=>Ny,jDz:()=>Lb,kEZ:()=>Zb,kL8:()=>ib,kcU:()=>sd,ktI:()=>lp,l5B:()=>zb,lG2:()=>Aa,lcZ:()=>Xb,lnq:()=>gv,lqb:()=>bu,lri:()=>Vy,mCW:()=>N,n5z:()=>_c,n_E:()=>Pm,oAB:()=>Vo,oJD:()=>f,oxw:()=>h1,pB0:()=>s,q3G:()=>Cs,qFp:()=>zT,qLn:()=>uh,qOj:()=>pm,qZA:()=>Cm,qbA:()=>Gb,qzn:()=>Hd,rWj:()=>jy,rg0:()=>pn,s9C:()=>lv,sBO:()=>_T,s_b:()=>Ym,soG:()=>Hm,tHW:()=>Mv,tb:()=>$v,tp0:()=>Na,uIk:()=>Cn,vHH:()=>je,vpe:()=>vo,vpz:()=>W1,wAp:()=>Tp,xi3:()=>ey,xp6:()=>Cg,ynx:()=>Tm,z2F:()=>Ap,z3N:()=>qc,zSh:()=>qf,zW0:()=>Kg,zs3:()=>Vd});var e=C(8645),l=C(7394),D=C(5592),I=C(3019),S=C(5619),w=C(2096),n=C(3020),Z=C(4664),ee=C(3997);function re(r){for(let a in r)if(r[a]===re)return a;throw Error("Could not find renamed property on target object.")}function ue(r,a){for(const d in a)a.hasOwnProperty(d)&&!r.hasOwnProperty(d)&&(r[d]=a[d])}function se(r){if("string"==typeof r)return r;if(Array.isArray(r))return"["+r.map(se).join(", ")+"]";if(null==r)return""+r;if(r.overriddenName)return`${r.overriddenName}`;if(r.name)return`${r.name}`;const a=r.toString();if(null==a)return""+a;const d=a.indexOf("\n");return-1===d?a:a.substring(0,d)}function te(r,a){return null==r||""===r?null===a?"":a:null==a||""===a?r:r+" "+a}const oe=re({__forward_ref__:re});function ce(r){return r.__forward_ref__=ce,r.toString=function(){return se(this())},r}function _e(r){return Re(r)?r():r}function Re(r){return"function"==typeof r&&r.hasOwnProperty(oe)&&r.__forward_ref__===ce}function mt(r){return r&&!!r.\u0275providers}const Lt="https://g.co/ng/security#xss";class je extends Error{constructor(a,d){super(function Tt(r,a){return`NG0${Math.abs(r)}${a?": "+a:""}`}(a,d)),this.code=a}}function xt(r){return"string"==typeof r?r:null==r?"":String(r)}function Jt(r,a){throw new je(-201,!1)}function he(r,a,d,_){throw new Error(`ASSERTION ERROR: ${r}`+(null==_?"":` [Expected=> ${d} ${_} ${a} <=Actual]`))}function Nt(r){return{token:r.token,providedIn:r.providedIn||null,factory:r.factory,value:void 0}}function nn(r){return{providers:r.providers||[],imports:r.imports||[]}}function Dn(r){return rn(r,Wn)||rn(r,ct)}function Ot(r){return null!==Dn(r)}function rn(r,a){return r.hasOwnProperty(a)?r[a]:null}function ei(r){return r&&(r.hasOwnProperty(Ve)||r.hasOwnProperty(Ct))?r[Ve]:null}const Wn=re({\u0275prov:re}),Ve=re({\u0275inj:re}),ct=re({ngInjectableDef:re}),Ct=re({ngInjectorDef:re});var Ce=function(r){return r[r.Default=0]="Default",r[r.Host=1]="Host",r[r.Self=2]="Self",r[r.SkipSelf=4]="SkipSelf",r[r.Optional=8]="Optional",r}(Ce||{});let J;function ae(){return J}function Oe(r){const a=J;return J=r,a}function ot(r,a,d){const _=Dn(r);return _&&"root"==_.providedIn?void 0===_.value?_.value=_.factory():_.value:d&Ce.Optional?null:void 0!==a?a:void Jt(se(r))}const Ft=globalThis;class Ut{constructor(a,d){this._desc=a,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof d?this.__NG_ELEMENT_ID__=d:void 0!==d&&(this.\u0275prov=Nt({token:this,providedIn:d.providedIn||"root",factory:d.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const U={},ve="__NG_DI_FLAG__",Pe="ngTempTokenPath",We=/\n/gm,be="__source";let Te;function Wt(r){const a=Te;return Te=r,a}function Pn(r,a=Ce.Default){if(void 0===Te)throw new je(-203,!1);return null===Te?ot(r,void 0,a):Te.get(r,a&Ce.Optional?null:void 0,a)}function wt(r,a=Ce.Default){return(ae()||Pn)(_e(r),a)}function fe(r,a=Ce.Default){return wt(r,Mt(a))}function Mt(r){return typeof r>"u"||"number"==typeof r?r:0|(r.optional&&8)|(r.host&&1)|(r.self&&2)|(r.skipSelf&&4)}function Vt(r){const a=[];for(let d=0;da){Y=A-1;break}}}for(;AA?"":x[Rt+1].toLowerCase();const ln=8&_?Xt:null;if(ln&&-1!==tr(ln,De,0)||2&_&&De!==Xt){if(yr(_))return!1;Y=!0}}}}else{if(!Y&&!yr(_)&&!yr(X))return!1;if(Y&&yr(X))continue;Y=!1,_=X|1&_}}return yr(_)||Y}function yr(r){return 0==(1&r)}function Gs(r,a,d,_){if(null===a)return-1;let x=0;if(_||!d){let A=!1;for(;x-1)for(d++;d0?'="'+z+'"':"")+"]"}else 8&_?x+="."+Y:4&_&&(x+=" "+Y);else""!==x&&!yr(Y)&&(a+=$s(A,x),x=""),_=Y,A=A||!yr(_);d++}return""!==x&&(a+=$s(A,x)),a}function kr(r){return _n(()=>{const a=al(r),d={...a,decls:r.decls,vars:r.vars,template:r.template,consts:r.consts||null,ngContentSelectors:r.ngContentSelectors,onPush:r.changeDetection===En.OnPush,directiveDefs:null,pipeDefs:null,dependencies:a.standalone&&r.dependencies||null,getStandaloneInjector:null,signals:r.signals??!1,data:r.data||{},encapsulation:r.encapsulation||On.Emulated,styles:r.styles||Vn,_:null,schemas:r.schemas||null,tView:null,id:""};Vr(d);const _=r.dependencies;return d.directiveDefs=Es(_,!1),d.pipeDefs=Es(_,!0),d.id=function ll(r){let a=0;const d=[r.selectors,r.ngContentSelectors,r.hostVars,r.hostAttrs,r.consts,r.vars,r.decls,r.encapsulation,r.standalone,r.signals,r.exportAs,JSON.stringify(r.inputs),JSON.stringify(r.outputs),Object.getOwnPropertyNames(r.type.prototype),!!r.contentQueries,!!r.viewQuery].join("|");for(const x of d)a=Math.imul(31,a)+x.charCodeAt(0)<<0;return a+=2147483648,"c"+a}(d),d})}function oo(r,a,d){const _=r.\u0275cmp;_.directiveDefs=Es(a,!1),_.pipeDefs=Es(d,!0)}function fs(r){return Li(r)||Yr(r)}function Sa(r){return null!==r}function Vo(r){return _n(()=>({type:r.type,bootstrap:r.bootstrap||Vn,declarations:r.declarations||Vn,imports:r.imports||Vn,exports:r.exports||Vn,transitiveCompileScopes:null,schemas:r.schemas||null,id:r.id||null}))}function Ks(r,a){if(null==r)return ni;const d={};for(const _ in r)if(r.hasOwnProperty(_)){let x=r[_],A=x;Array.isArray(x)&&(A=x[1],x=x[0]),d[x]=_,a&&(a[x]=A)}return d}function Aa(r){return _n(()=>{const a=al(r);return Vr(a),a})}function qi(r){return{type:r.type,name:r.name,factory:null,pure:!1!==r.pure,standalone:!0===r.standalone,onDestroy:r.type.prototype.ngOnDestroy||null}}function Li(r){return r[fr]||null}function Yr(r){return r[ki]||null}function dr(r){return r[Kr]||null}function Ha(r){const a=Li(r)||Yr(r)||dr(r);return null!==a&&a.standalone}function wr(r,a){const d=r[vr]||null;if(!d&&!0===a)throw new Error(`Type ${se(r)} does not have '\u0275mod' property.`);return d}function al(r){const a={};return{type:r.type,providersResolver:null,factory:null,hostBindings:r.hostBindings||null,hostVars:r.hostVars||0,hostAttrs:r.hostAttrs||null,contentQueries:r.contentQueries||null,declaredInputs:a,inputTransforms:null,inputConfig:r.inputs||ni,exportAs:r.exportAs||null,standalone:!0===r.standalone,signals:!0===r.signals,selectors:r.selectors||Vn,viewQuery:r.viewQuery||null,features:r.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ks(r.inputs,a),outputs:Ks(r.outputs)}}function Vr(r){r.features?.forEach(a=>a(r))}function Es(r,a){if(!r)return null;const d=a?dr:fs;return()=>("function"==typeof r?r():r).map(_=>d(_)).filter(Sa)}const er=0,qn=1,bi=2,_r=3,wo=4,jo=5,no=6,Ao=7,nr=8,ps=9,va=10,Ti=11,qs=12,ba=13,Qs=14,wi=15,Oo=16,Ko=17,or=18,Xs=19,Ml=20,Sr=21,jr=22,xo=23,_s=24,Ai=25,Io=1,Ys=2,fo=7,ms=9,Br=11;function po(r){return Array.isArray(r)&&"object"==typeof r[Io]}function io(r){return Array.isArray(r)&&!0===r[Io]}function qo(r){return 0!=(4&r.flags)}function Ss(r){return r.componentOffset>-1}function ya(r){return 1==(1&r.flags)}function sr(r){return!!r.template}function Oa(r){return 0!=(512&r[bi])}function Xo(r,a){return r.hasOwnProperty(Bi)?r[Bi]:null}let qr=null,Bs=!1;function Ro(r){const a=qr;return qr=r,a}const Va={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function Gl(r){if(!Is(r)||r.dirty){if(!r.producerMustRecompute(r)&&!gs(r))return void(r.dirty=!1);r.producerRecomputeValue(r),r.dirty=!1}}function es(r){r.dirty=!0,function Hs(r){if(void 0===r.liveConsumerNode)return;const a=Bs;Bs=!0;try{for(const d of r.liveConsumerNode)d.dirty||es(d)}finally{Bs=a}}(r),r.consumerMarkedDirty?.(r)}function ts(r){return r&&(r.nextProducerIndex=0),Ro(r)}function Wl(r,a){if(Ro(a),r&&void 0!==r.producerNode&&void 0!==r.producerIndexOfThis&&void 0!==r.producerLastReadVersion){if(Is(r))for(let d=r.nextProducerIndex;dr.nextProducerIndex;)r.producerNode.pop(),r.producerLastReadVersion.pop(),r.producerIndexOfThis.pop()}}function gs(r){Za(r);for(let a=0;a0}function Za(r){r.producerNode??=[],r.producerIndexOfThis??=[],r.producerLastReadVersion??=[]}let Ga=null;function pn(r){const a=Ro(null);try{return r()}finally{Ro(a)}}const li=()=>{},ur=(()=>({...Va,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:r=>{r.schedule(r.ref)},hasRun:!1,cleanupFn:li}))();class ar{constructor(a,d,_){this.previousValue=a,this.currentValue=d,this.firstChange=_}isFirstChange(){return this.firstChange}}function xi(){return Ar}function Ar(r){return r.type.prototype.ngOnChanges&&(r.setInput=mr),Nr}function Nr(){const r=bs(this),a=r?.current;if(a){const d=r.previous;if(d===ni)r.previous=a;else for(let _ in a)d[_]=a[_];r.current=null,this.ngOnChanges(a)}}function mr(r,a,d,_){const x=this.declaredInputs[d],A=bs(r)||function $a(r,a){return r[vs]=a}(r,{previous:ni,current:null}),Y=A.current||(A.current={}),z=A.previous,X=z[x];Y[x]=new ar(X&&X.currentValue,a,z===ni),r[_]=a}xi.ngInherit=!0;const vs="__ngSimpleChanges__";function bs(r){return r[vs]||null}const Qr=function(r,a,d){},zr="svg";function yi(r){for(;Array.isArray(r);)r=r[er];return r}function cl(r,a){return yi(a[r])}function _o(r,a){return yi(a[r.index])}function Xi(r,a){return r.data[a]}function dl(r,a){return r[a]}function ko(r,a){const d=a[r];return po(d)?d:d[er]}function Us(r,a){return null==a?null:r[a]}function Vs(r){r[Ko]=0}function Nc(r){1024&r[bi]||(r[bi]|=1024,To(r,1))}function ac(r){1024&r[bi]&&(r[bi]&=-1025,To(r,-1))}function To(r,a){let d=r[_r];if(null===d)return;d[jo]+=a;let _=d;for(d=d[_r];null!==d&&(1===a&&1===_[jo]||-1===a&&0===_[jo]);)d[jo]+=a,_=d,d=d[_r]}function nd(r,a){if(256==(256&r[bi]))throw new je(911,!1);null===r[Sr]&&(r[Sr]=[]),r[Sr].push(a)}const Ei={lFrame:Ps(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function cc(){return Ei.bindingsEnabled}function hl(){return null!==Ei.skipHydrationRootTNode}function kn(){return Ei.lFrame.lView}function Fi(){return Ei.lFrame.tView}function Jl(r){return Ei.lFrame.contextLView=r,r[nr]}function Il(r){return Ei.lFrame.contextLView=null,r}function en(){let r=so();for(;null!==r&&64===r.type;)r=r.parent;return r}function so(){return Ei.lFrame.currentTNode}function gt(){const r=Ei.lFrame,a=r.currentTNode;return r.isParent?a:a.parent}function la(r,a){const d=Ei.lFrame;d.currentTNode=r,d.isParent=a}function Ra(){return Ei.lFrame.isParent}function Ls(){Ei.lFrame.isParent=!1}function mo(){const r=Ei.lFrame;let a=r.bindingRootIndex;return-1===a&&(a=r.bindingRootIndex=r.tView.bindingStartIndex),a}function ka(){return Ei.lFrame.bindingIndex}function W(){return Ei.lFrame.bindingIndex++}function ne(r){const a=Ei.lFrame,d=a.bindingIndex;return a.bindingIndex=a.bindingIndex+r,d}function ie(r){Ei.lFrame.inI18n=r}function xe(r,a){const d=Ei.lFrame;d.bindingIndex=d.bindingRootIndex=r,Pt(a)}function Pt(r){Ei.lFrame.currentDirectiveIndex=r}function mn(r){const a=Ei.lFrame.currentDirectiveIndex;return-1===a?null:r[a]}function hn(){return Ei.lFrame.currentQueryIndex}function on(r){Ei.lFrame.currentQueryIndex=r}function ji(r){const a=r[qn];return 2===a.type?a.declTNode:1===a.type?r[no]:null}function Gr(r,a,d){if(d&Ce.SkipSelf){let x=a,A=r;for(;!(x=x.parent,null!==x||d&Ce.Host||(x=ji(A),null===x||(A=A[Qs],10&x.type))););if(null===x)return!1;a=x,r=A}const _=Ei.lFrame=mi();return _.currentTNode=a,_.lView=r,!0}function $i(r){const a=mi(),d=r[qn];Ei.lFrame=a,a.currentTNode=d.firstChild,a.lView=r,a.tView=d,a.contextLView=r,a.bindingIndex=d.bindingStartIndex,a.inI18n=!1}function mi(){const r=Ei.lFrame,a=null===r?null:r.child;return null===a?Ps(r):a}function Ps(r){const a={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:r,child:null,inI18n:!1};return null!==r&&(r.child=a),a}function fl(){const r=Ei.lFrame;return Ei.lFrame=r.parent,r.currentTNode=null,r.lView=null,r}const Rl=fl;function Ja(){const r=fl();r.isParent=!0,r.tView=null,r.selectedIndex=-1,r.contextLView=null,r.elementDepthCount=0,r.currentDirectiveIndex=-1,r.currentNamespace=null,r.bindingRootIndex=-1,r.bindingIndex=-1,r.currentQueryIndex=0}function Do(){return Ei.lFrame.selectedIndex}function qa(r){Ei.lFrame.selectedIndex=r}function xr(){const r=Ei.lFrame;return Xi(r.tView,r.selectedIndex)}function dc(){Ei.lFrame.currentNamespace=zr}function sd(){!function uc(){Ei.lFrame.currentNamespace=null}()}let Qa=!0;function js(){return Qa}function pl(r){Qa=r}function Pi(r,a){for(let d=a.directiveStart,_=a.directiveEnd;d<_;d++){const A=r.data[d].type.prototype,{ngAfterContentInit:Y,ngAfterContentChecked:z,ngAfterViewInit:X,ngAfterViewChecked:De,ngOnDestroy:Ke}=A;Y&&(r.contentHooks??=[]).push(-d,Y),z&&((r.contentHooks??=[]).push(d,z),(r.contentCheckHooks??=[]).push(d,z)),X&&(r.viewHooks??=[]).push(-d,X),De&&((r.viewHooks??=[]).push(d,De),(r.viewCheckHooks??=[]).push(d,De)),null!=Ke&&(r.destroyHooks??=[]).push(d,Ke)}}function Xa(r,a,d){Cd(r,a,3,d)}function ld(r,a,d,_){(3&r[bi])===d&&Cd(r,a,d,_)}function Sc(r,a){let d=r[bi];(3&d)===a&&(d&=8191,d+=1,r[bi]=d)}function Cd(r,a,d,_){const A=_??-1,Y=a.length-1;let z=0;for(let X=void 0!==_?65535&r[Ko]:0;X=_)break}else a[X]<0&&(r[Ko]+=65536),(z>13>16&&(3&r[bi])===a&&(r[bi]+=8192,el(z,A)):el(z,A)}const Yc=-1;class ca{constructor(a,d,_){this.factory=a,this.resolving=!1,this.canSeeViewProviders=d,this.injectImpl=_}}function wc(r){return r!==Yc}function kl(r){return 32767&r}function Ac(r,a){let d=function Ql(r){return r>>16}(r),_=a;for(;d>0;)_=_[Qs],d--;return _}let Hc=!0;function Eo(r){const a=Hc;return Hc=r,a}const cd=255,fc=5;let xc=0;const Po={};function Ll(r,a){const d=pc(r,a);if(-1!==d)return d;const _=a[qn];_.firstCreatePass&&(r.injectorIndex=a.length,as(_.data,r),as(a,null),as(_.blueprint,null));const x=ir(r,a),A=r.injectorIndex;if(wc(x)){const Y=kl(x),z=Ac(x,a),X=z[qn].data;for(let De=0;De<8;De++)a[A+De]=z[Y+De]|X[Y+De]}return a[A+8]=x,A}function as(r,a){r.push(0,0,0,0,0,0,0,0,a)}function pc(r,a){return-1===r.injectorIndex||r.parent&&r.parent.injectorIndex===r.injectorIndex||null===a[r.injectorIndex+8]?-1:r.injectorIndex}function ir(r,a){if(r.parent&&-1!==r.parent.injectorIndex)return r.parent.injectorIndex;let d=0,_=null,x=a;for(;null!==x;){if(_=Ad(x),null===_)return Yc;if(d++,x=x[Qs],-1!==_.injectorIndex)return _.injectorIndex|d<<16}return Yc}function k(r,a,d){!function da(r,a,d){let _;"string"==typeof d?_=d.charCodeAt(0)||0:d.hasOwnProperty(co)&&(_=d[co]),null==_&&(_=d[co]=xc++);const x=_&cd;a.data[r+(x>>fc)]|=1<=0?a&cd:Gd:a}(d);if("function"==typeof A){if(!Gr(a,r,_))return _&Ce.Host?pe(x,0,_):ke(a,d,_,x);try{let Y;if(Y=A(_),null!=Y||_&Ce.Optional)return Y;Jt()}finally{Rl()}}else if("number"==typeof A){let Y=null,z=pc(r,a),X=Yc,De=_&Ce.Host?a[wi][no]:null;for((-1===z||_&Ce.SkipSelf)&&(X=-1===z?ir(r,a):a[z+8],X!==Yc&&tl(_,!1)?(Y=a[qn],z=kl(X),a=Ac(X,a)):z=-1);-1!==z;){const Ke=a[qn];if(ws(A,z,Ke.data)){const Rt=xn(z,a,d,Y,_,De);if(Rt!==Po)return Rt}X=a[z+8],X!==Yc&&tl(_,a[qn].data[z+8]===De)&&ws(A,z,a)?(Y=Ke,z=kl(X),a=Ac(X,a)):z=-1}}return x}function xn(r,a,d,_,x,A){const Y=a[qn],z=Y.data[r+8],Ke=Mi(z,Y,d,null==_?Ss(z)&&Hc:_!=Y&&0!=(3&z.type),x&Ce.Host&&A===z);return null!==Ke?Oi(a,Y,Ke,z):Po}function Mi(r,a,d,_,x){const A=r.providerIndexes,Y=a.data,z=1048575&A,X=r.directiveStart,Ke=A>>20,Xt=x?z+Ke:r.directiveEnd;for(let ln=_?z:z+Ke;ln=X&&In.type===d)return ln}if(x){const ln=Y[X];if(ln&&sr(ln)&&ln.type===d)return X}return null}function Oi(r,a,d,_){let x=r[d];const A=a.data;if(function zd(r){return r instanceof ca}(x)){const Y=x;Y.resolving&&function Zt(r,a){const d=a?`. Dependency path: ${a.join(" > ")} > ${r}`:"";throw new je(-200,`Circular dependency in DI detected for ${r}${d}`)}(function St(r){return"function"==typeof r?r.name||r.toString():"object"==typeof r&&null!=r&&"function"==typeof r.type?r.type.name||r.type.toString():xt(r)}(A[d]));const z=Eo(Y.canSeeViewProviders);Y.resolving=!0;const De=Y.injectImpl?Oe(Y.injectImpl):null;Gr(r,_,Ce.Default);try{x=r[d]=Y.factory(void 0,A,r,_),a.firstCreatePass&&d>=_.directiveStart&&function ad(r,a,d){const{ngOnChanges:_,ngOnInit:x,ngDoCheck:A}=a.type.prototype;if(_){const Y=Ar(a);(d.preOrderHooks??=[]).push(r,Y),(d.preOrderCheckHooks??=[]).push(r,Y)}x&&(d.preOrderHooks??=[]).push(0-r,x),A&&((d.preOrderHooks??=[]).push(r,A),(d.preOrderCheckHooks??=[]).push(r,A))}(d,A[d],a)}finally{null!==De&&Oe(De),Eo(z),Y.resolving=!1,Rl()}}return x}function ws(r,a,d){return!!(d[a+(r>>fc)]&1<{const a=r.prototype.constructor,d=a[Bi]||Sd(a),_=Object.prototype;let x=Object.getPrototypeOf(r.prototype).constructor;for(;x&&x!==_;){const A=x[Bi]||Sd(x);if(A&&A!==d)return A;x=Object.getPrototypeOf(x)}return A=>new A})}function Sd(r){return Re(r)?()=>{const a=Sd(_e(r));return a&&a()}:Xo(r)}function Ad(r){const a=r[qn],d=a.type;return 2===d?a.declTNode:1===d?r[no]:null}function Wd(r){return function j(r,a){if("class"===a)return r.classes;if("style"===a)return r.styles;const d=r.attrs;if(d){const _=d.length;let x=0;for(;x<_;){const A=d[x];if(bo(A))break;if(0===A)x+=2;else if("number"==typeof A)for(x++;x<_&&"string"==typeof d[x];)x++;else{if(A===a)return d[x+1];x+=2}}}return null}(en(),r)}const ua="__parameters__";function zi(r,a,d){return _n(()=>{const _=function zo(r){return function(...d){if(r){const _=r(...d);for(const x in _)this[x]=_[x]}}}(a);function x(...A){if(this instanceof x)return _.apply(this,A),this;const Y=new x(...A);return z.annotation=Y,z;function z(X,De,Ke){const Rt=X.hasOwnProperty(ua)?X[ua]:Object.defineProperty(X,ua,{value:[]})[ua];for(;Rt.length<=Ke;)Rt.push(null);return(Rt[Ke]=Rt[Ke]||[]).push(Y),X}}return d&&(x.prototype=Object.create(d.prototype)),x.prototype.ngMetadataName=r,x.annotationCls=x,x})}function Gc(r,a){r.forEach(d=>Array.isArray(d)?Gc(d,a):a(d))}function qd(r,a,d){a>=r.length?r.push(d):r.splice(a,0,d)}function ml(r,a){return a>=r.length-1?r.pop():r.splice(a,1)[0]}function Oc(r,a){const d=[];for(let _=0;_=0?r[1|_]=d:(_=~_,function pi(r,a,d,_){let x=r.length;if(x==a)r.push(d,_);else if(1===x)r.push(_,r[0]),r[0]=d;else{for(x--,r.push(r[x-1],r[x]);x>a;)r[x]=r[x-2],x--;r[a]=d,r[a+1]=_}}(r,_,a,d)),_}function Mc(r,a){const d=No(r,a);if(d>=0)return r[1|d]}function No(r,a){return function Ye(r,a,d){let _=0,x=r.length>>d;for(;x!==_;){const A=_+(x-_>>1),Y=r[A<a?x=A:_=A+1}return~(x<|^->||--!>|)/g,ef="\u200b$1\u200b";const au=new Map;let vh=0;const $u="__ngContext__";function rl(r,a){po(a)?(r[$u]=a[Xs],function nf(r){au.set(r[Xs],r)}(a)):r[$u]=a}let xh;function Mh(r,a){return xh(r,a)}function du(r){const a=r[_r];return io(a)?a[_r]:a}function nc(r){return lf(r[qs])}function Ch(r){return lf(r[wo])}function lf(r){for(;null!==r&&!io(r);)r=r[wo];return r}function uu(r,a,d,_,x){if(null!=_){let A,Y=!1;io(_)?A=_:po(_)&&(Y=!0,_=_[er]);const z=yi(_);0===r&&null!==d?null==x?lo(a,d,z):Jc(a,d,z,x||null,!0):1===r&&null!==d?Jc(a,d,z,x||null,!0):2===r?function Yu(r,a,d){const _=Pu(r,a);_&&function ud(r,a,d,_){r.removeChild(a,d,_)}(r,_,a,d)}(a,z,Y):3===r&&a.destroyNode(z),null!=A&&function Bu(r,a,d,_,x){const A=d[fo];A!==yi(d)&&uu(a,r,_,A,x);for(let z=Br;za.replace(Xh,ef))}(a))}function hu(r,a,d){return r.createElement(a,d)}function Dh(r,a){const d=r[ms],_=d.indexOf(a);ac(a),d.splice(_,1)}function Lu(r,a){if(r.length<=Br)return;const d=Br+a,_=r[d];if(_){const x=_[Oo];null!==x&&x!==r&&Dh(x,_),a>0&&(r[d-1][wo]=_[wo]);const A=ml(r,Br+a);!function cf(r,a){_u(r,a,a[Ti],2,null,null),a[er]=null,a[no]=null}(_[qn],_);const Y=A[or];null!==Y&&Y.detachView(A[qn]),_[_r]=null,_[wo]=null,_[bi]&=-129}return _}function eh(r,a){if(!(256&a[bi])){const d=a[Ti];a[xo]&&ns(a[xo]),a[_s]&&ns(a[_s]),d.destroyNode&&_u(r,a,d,3,null,null),function hf(r){let a=r[qs];if(!a)return Ld(r[qn],r);for(;a;){let d=null;if(po(a))d=a[qs];else{const _=a[Br];_&&(d=_)}if(!d){for(;a&&!a[wo]&&a!==r;)po(a)&&Ld(a[qn],a),a=a[_r];null===a&&(a=r),po(a)&&Ld(a[qn],a),d=a&&a[wo]}a=d}}(a)}}function Ld(r,a){if(!(256&a[bi])){a[bi]&=-129,a[bi]|=256,function ol(r,a){let d;if(null!=r&&null!=(d=r.destroyHooks))for(let _=0;_=0?_[Y]():_[-Y].unsubscribe(),A+=2}else d[A].call(_[d[A+1]]);null!==_&&(a[Ao]=null);const x=a[Sr];if(null!==x){a[Sr]=null;for(let A=0;A-1){const{encapsulation:A}=r.data[_.directiveStart+x];if(A===On.None||A===On.Emulated)return null}return _o(_,d)}}function Jc(r,a,d,_,x){r.insertBefore(a,d,_,x)}function lo(r,a,d){r.appendChild(a,d)}function fu(r,a,d,_,x){null!==_?Jc(r,a,d,_,x):lo(r,a,d)}function Pu(r,a){return r.parentNode(a)}function Eh(r,a,d){return Sh(r,a,d)}function th(r,a,d){return 40&r.type?_o(r,d):null}let nh,Yo,Ih,tu,Sh=th;function eu(r,a){Sh=r,nh=a}function Dc(r,a,d,_){const x=Pd(r,_,a),A=a[Ti],z=Eh(_.parent||a[no],_,a);if(null!=x)if(Array.isArray(d))for(let X=0;Xr,createScript:r=>r,createScriptURL:r=>r})}catch{}return Yo}()?.createHTML(r)||r}function ah(r){Ih=r}function Bd(){if(void 0!==Ih)return Ih;if(typeof document<"u")return document;throw new je(210,!1)}function lh(){if(void 0===tu&&(tu=null,Ft.trustedTypes))try{tu=Ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:r=>r,createScript:r=>r,createScriptURL:r=>r})}catch{}return tu}function mf(r){return lh()?.createHTML(r)||r}function gf(r){return lh()?.createScriptURL(r)||r}class gu{constructor(a){this.changingThisBreaksApplicationSecurity=a}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Lt})`}}class fd extends gu{getTypeName(){return"HTML"}}class vf extends gu{getTypeName(){return"Style"}}class kh extends gu{getTypeName(){return"Script"}}class Rp extends gu{getTypeName(){return"URL"}}class bf extends gu{getTypeName(){return"ResourceURL"}}function qc(r){return r instanceof gu?r.changingThisBreaksApplicationSecurity:r}function Hd(r,a){const d=function $f(r){return r instanceof gu&&r.getTypeName()||null}(r);if(null!=d&&d!==a){if("ResourceURL"===d&&"URL"===a)return!0;throw new Error(`Required a safe ${a}, got a ${d} (see ${Lt})`)}return d===a}function vu(r){return new fd(r)}function o(r){return new vf(r)}function t(r){return new kh(r)}function i(r){return new Rp(r)}function s(r){return new bf(r)}function c(r){const a=new v(r);return function M(){try{return!!(new window.DOMParser).parseFromString(Yd(""),"text/html")}catch{return!1}}()?new h(a):a}class h{constructor(a){this.inertDocumentHelper=a}getInertBodyElement(a){a=""+a;try{const d=(new window.DOMParser).parseFromString(Yd(a),"text/html").body;return null===d?this.inertDocumentHelper.getInertBodyElement(a):(d.removeChild(d.firstChild),d)}catch{return null}}}class v{constructor(a){this.defaultDoc=a,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(a){const d=this.inertDocument.createElement("template");return d.innerHTML=Yd(a),d}}const O=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function N(r){return(r=String(r)).match(O)?r:"unsafe:"+r}function $(r){const a={};for(const d of r.split(","))a[d]=!0;return a}function q(...r){const a={};for(const d of r)for(const _ in d)d.hasOwnProperty(_)&&(a[_]=!0);return a}const de=$("area,br,col,hr,img,wbr"),we=$("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),et=$("rp,rt"),Gt=q(de,q(we,$("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),q(et,$("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),q(et,we)),an=$("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zn=q(an,$("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Kn=$("script,style,template");class fi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(a){let d=a.firstChild,_=!0;for(;d;)if(d.nodeType===Node.ELEMENT_NODE?_=this.startElement(d):d.nodeType===Node.TEXT_NODE?this.chars(d.nodeValue):this.sanitizedSomething=!0,_&&d.firstChild)d=d.firstChild;else for(;d;){d.nodeType===Node.ELEMENT_NODE&&this.endElement(d);let x=this.checkClobberedElement(d,d.nextSibling);if(x){d=x;break}d=this.checkClobberedElement(d,d.parentNode)}return this.buf.join("")}startElement(a){const d=a.nodeName.toLowerCase();if(!Gt.hasOwnProperty(d))return this.sanitizedSomething=!0,!Kn.hasOwnProperty(d);this.buf.push("<"),this.buf.push(d);const _=a.attributes;for(let x=0;x<_.length;x++){const A=_.item(x),Y=A.name,z=Y.toLowerCase();if(!Zn.hasOwnProperty(z)){this.sanitizedSomething=!0;continue}let X=A.value;an[z]&&(X=N(X)),this.buf.push(" ",Y,'="',go(X),'"')}return this.buf.push(">"),!0}endElement(a){const d=a.nodeName.toLowerCase();Gt.hasOwnProperty(d)&&!de.hasOwnProperty(d)&&(this.buf.push(""))}chars(a){this.buf.push(go(a))}checkClobberedElement(a,d){if(d&&(a.compareDocumentPosition(d)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${a.outerHTML}`);return d}}const Gi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Vi=/([^\#-~ |!])/g;function go(r){return r.replace(/&/g,"&").replace(Gi,function(a){return"&#"+(1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320)+65536)+";"}).replace(Vi,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(//g,">")}let Dr;function hs(r,a){let d=null;try{Dr=Dr||c(r);let _=a?String(a):"";d=Dr.getInertBodyElement(_);let x=5,A=_;do{if(0===x)throw new Error("Failed to sanitize html because the input is unstable");x--,_=A,A=d.innerHTML,d=Dr.getInertBodyElement(_)}while(_!==A);return Yd((new fi).sanitizeChildren(Vl(d)||d))}finally{if(d){const _=Vl(d)||d;for(;_.firstChild;)_.removeChild(_.firstChild)}}}function Vl(r){return"content"in r&&function ic(r){return r.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===r.nodeName}(r)?r.content:null}var Cs=function(r){return r[r.NONE=0]="NONE",r[r.HTML=1]="HTML",r[r.STYLE=2]="STYLE",r[r.SCRIPT=3]="SCRIPT",r[r.URL=4]="URL",r[r.RESOURCE_URL=5]="RESOURCE_URL",r}(Cs||{});function f(r){const a=pa();return a?mf(a.sanitize(Cs.HTML,r)||""):Hd(r,"HTML")?mf(qc(r)):hs(Bd(),xt(r))}function b(r){const a=pa();return a?a.sanitize(Cs.URL,r)||"":Hd(r,"URL")?qc(r):N(xt(r))}function P(r){const a=pa();if(a)return gf(a.sanitize(Cs.RESOURCE_URL,r)||"");if(Hd(r,"ResourceURL"))return gf(qc(r));throw new je(904,!1)}function Gn(r,a,d){return function yn(r,a){return"src"===a&&("embed"===r||"frame"===r||"iframe"===r||"media"===r||"script"===r)||"href"===a&&("base"===r||"link"===r)?P:b}(a,d)(r)}function pa(){const r=kn();return r&&r[va].sanitizer}const Ea=new Ut("ENVIRONMENT_INITIALIZER"),Lh=new Ut("INJECTOR",-1),yf=new Ut("INJECTOR_DEF_TYPES");class wf{get(a,d=U){if(d===U){const _=new Error(`NullInjectorError: No provider for ${se(a)}!`);throw _.name="NullInjectorError",_}return d}}function Rc(r){return{\u0275providers:r}}function Qc(...r){return{\u0275providers:ch(0,r),\u0275fromNgModule:!0}}function ch(r,...a){const d=[],_=new Set;let x;const A=Y=>{d.push(Y)};return Gc(a,Y=>{const z=Y;Kf(z,A,[],_)&&(x||=[],x.push(z))}),void 0!==x&&M_(x,A),d}function M_(r,a){for(let d=0;d{a(A,_)})}}function Kf(r,a,d,_){if(!(r=_e(r)))return!1;let x=null,A=ei(r);const Y=!A&&Li(r);if(A||Y){if(Y&&!Y.standalone)return!1;x=r}else{const X=r.ngModule;if(A=ei(X),!A)return!1;x=X}const z=_.has(x);if(Y){if(z)return!1;if(_.add(x),Y.dependencies){const X="function"==typeof Y.dependencies?Y.dependencies():Y.dependencies;for(const De of X)Kf(De,a,d,_)}}else{if(!A)return!1;{if(null!=A.imports&&!z){let De;_.add(x);try{Gc(A.imports,Ke=>{Kf(Ke,a,d,_)&&(De||=[],De.push(Ke))})}finally{}void 0!==De&&M_(De,a)}if(!z){const De=Xo(x)||(()=>new x);a({provide:x,useFactory:De,deps:Vn},x),a({provide:yf,useValue:x,multi:!0},x),a({provide:Ea,useValue:()=>wt(x),multi:!0},x)}const X=A.providers;if(null!=X&&!z){const De=r;xf(X,Ke=>{a(Ke,De)})}}}return x!==r&&void 0!==r.providers}function xf(r,a){for(let d of r)mt(d)&&(d=d.\u0275providers),Array.isArray(d)?xf(d,a):a(d)}const o0=re({provide:String,useValue:re});function Jf(r){return null!==r&&"object"==typeof r&&o0 in r}function Nh(r){return"function"==typeof r}const qf=new Ut("Set Injector scope."),Mf={},Cf={};let Fh;function kp(){return void 0===Fh&&(Fh=new wf),Fh}class bu{}class Tf extends bu{get destroyed(){return this._destroyed}constructor(a,d,_,x){super(),this.parent=d,this.source=_,this.scopes=x,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Qf(a,Y=>this.processProvider(Y)),this.records.set(Lh,dh(void 0,this)),x.has("environment")&&this.records.set(bu,dh(void 0,this));const A=this.records.get(qf);null!=A&&"string"==typeof A.value&&this.scopes.add(A.value),this.injectorDefTypes=new Set(this.get(yf.multi,Vn,Ce.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const d of this._ngOnDestroyHooks)d.ngOnDestroy();const a=this._onDestroyHooks;this._onDestroyHooks=[];for(const d of a)d()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(a){return this.assertNotDestroyed(),this._onDestroyHooks.push(a),()=>this.removeOnDestroy(a)}runInContext(a){this.assertNotDestroyed();const d=Wt(this),_=Oe(void 0);try{return a()}finally{Wt(d),Oe(_)}}get(a,d=U,_=Ce.Default){if(this.assertNotDestroyed(),a.hasOwnProperty(Ji))return a[Ji](this);_=Mt(_);const A=Wt(this),Y=Oe(void 0);try{if(!(_&Ce.SkipSelf)){let X=this.records.get(a);if(void 0===X){const De=function Yh(r){return"function"==typeof r||"object"==typeof r&&r instanceof Ut}(a)&&Dn(a);X=De&&this.injectableDefInScope(De)?dh(T_(a),Mf):null,this.records.set(a,X)}if(null!=X)return this.hydrate(a,X)}return(_&Ce.Self?kp():this.parent).get(a,d=_&Ce.Optional&&d===U?null:d)}catch(z){if("NullInjectorError"===z.name){if((z[Pe]=z[Pe]||[]).unshift(se(a)),A)throw z;return function It(r,a,d,_){const x=r[Pe];throw a[be]&&x.unshift(a[be]),r.message=function cn(r,a,d,_=null){r=r&&"\n"===r.charAt(0)&&"\u0275"==r.charAt(1)?r.slice(2):r;let x=se(a);if(Array.isArray(a))x=a.map(se).join(" -> ");else if("object"==typeof a){let A=[];for(let Y in a)if(a.hasOwnProperty(Y)){let z=a[Y];A.push(Y+":"+("string"==typeof z?JSON.stringify(z):se(z)))}x=`{${A.join(", ")}}`}return`${d}${_?"("+_+")":""}[${x}]: ${r.replace(We,"\n ")}`}("\n"+r.message,x,d,_),r.ngTokenPath=x,r[Pe]=null,r}(z,a,"R3InjectorError",this.source)}throw z}finally{Oe(Y),Wt(A)}}resolveInjectorInitializers(){const a=Wt(this),d=Oe(void 0);try{const x=this.get(Ea.multi,Vn,Ce.Self);for(const A of x)A()}finally{Wt(a),Oe(d)}}toString(){const a=[],d=this.records;for(const _ of d.keys())a.push(se(_));return`R3Injector[${a.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new je(205,!1)}processProvider(a){let d=Nh(a=_e(a))?a:_e(a&&a.provide);const _=function a0(r){return Jf(r)?dh(void 0,r.useValue):dh(D_(r),Mf)}(a);if(Nh(a)||!0!==a.multi)this.records.get(d);else{let x=this.records.get(d);x||(x=dh(void 0,Mf,!0),x.factory=()=>Vt(x.multi),this.records.set(d,x)),d=a,x.multi.push(a)}this.records.set(d,_)}hydrate(a,d){return d.value===Mf&&(d.value=Cf,d.value=d.factory()),"object"==typeof d.value&&d.value&&function bl(r){return null!==r&&"object"==typeof r&&"function"==typeof r.ngOnDestroy}(d.value)&&this._ngOnDestroyHooks.add(d.value),d.value}injectableDefInScope(a){if(!a.providedIn)return!1;const d=_e(a.providedIn);return"string"==typeof d?"any"===d||this.scopes.has(d):this.injectorDefTypes.has(d)}removeOnDestroy(a){const d=this._onDestroyHooks.indexOf(a);-1!==d&&this._onDestroyHooks.splice(d,1)}}function T_(r){const a=Dn(r),d=null!==a?a.factory:Xo(r);if(null!==d)return d;if(r instanceof Ut)throw new je(204,!1);if(r instanceof Function)return function s0(r){const a=r.length;if(a>0)throw Oc(a,"?"),new je(204,!1);const d=function vn(r){return r&&(r[Wn]||r[ct])||null}(r);return null!==d?()=>d.factory(r):()=>new r}(r);throw new je(204,!1)}function D_(r,a,d){let _;if(Nh(r)){const x=_e(r);return Xo(x)||T_(x)}if(Jf(r))_=()=>_e(r.useValue);else if(function Wm(r){return!(!r||!r.useFactory)}(r))_=()=>r.useFactory(...Vt(r.deps||[]));else if(function Gm(r){return!(!r||!r.useExisting)}(r))_=()=>wt(_e(r.useExisting));else{const x=_e(r&&(r.useClass||r.provide));if(!function E_(r){return!!r.deps}(r))return Xo(x)||T_(x);_=()=>new x(...Vt(r.deps))}return _}function dh(r,a,d=!1){return{factory:r,value:a,multi:d?[]:void 0}}function Qf(r,a){for(const d of r)Array.isArray(d)?Qf(d,a):d&&mt(d)?Qf(d.\u0275providers,a):a(d)}const S_=new Ut("AppId",{providedIn:"root",factory:()=>$m}),$m="ng",Df=new Ut("Platform Initializer"),Ef=new Ut("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Km=new Ut("AnimationModuleType"),Jm=new Ut("CSP nonce",{providedIn:"root",factory:()=>Bd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let O_=(r,a,d)=>null;function np(r,a,d=!1){return O_(r,a,d)}class tg{}class R_{}class ig{resolveComponentFactory(a){throw function ng(r){const a=Error(`No component factory found for ${se(r)}.`);return a.ngComponent=r,a}(a)}}let Af=(()=>{class r{static#e=this.NULL=new ig}return r})();function rg(){return Uh(en(),kn())}function Uh(r,a){return new Vh(_o(r,a))}let Vh=(()=>{class r{constructor(d){this.nativeElement=d}static#e=this.__NG_ELEMENT_ID__=rg}return r})();function L_(r){return r instanceof Vh?r.nativeElement:r}class jp{}let P_=(()=>{class r{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function N_(){const r=kn(),d=ko(en().index,r);return(po(d)?d:r)[Ti]}()}return r})(),og=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>null})}return r})();class Zp{constructor(a){this.full=a,this.major=a.split(".")[0],this.minor=a.split(".")[1],this.patch=a.split(".").slice(2).join(".")}}const sg=new Zp("16.2.12"),zp={};function Gp(r){if(!ae()&&!function He(){return Te}())throw new je(-203,!1)}function dg(r,a=null,d=null,_){const x=ug(r,a,d,_);return x.resolveInjectorInitializers(),x}function ug(r,a=null,d=null,_,x=new Set){const A=[d||Vn,Qc(r)];return _=_||("object"==typeof r?void 0:se(r)),new Tf(A,a||kp(),_||null,x)}let Vd=(()=>{class r{static#e=this.THROW_IF_NOT_FOUND=U;static#t=this.NULL=new wf;static create(d,_){if(Array.isArray(d))return dg({name:""},_,d,"");{const x=d.name??"";return dg({name:x},d.parent,d.providers,x)}}static#n=this.\u0275prov=Nt({token:r,providedIn:"any",factory:()=>wt(Lh)});static#i=this.__NG_ELEMENT_ID__=-1}return r})();function F_(r){return r.ngOriginalError}class uh{constructor(){this._console=console}handleError(a){const d=this._findOriginalError(a);this._console.error("ERROR",a),d&&this._console.error("ORIGINAL ERROR",d)}_findOriginalError(a){let d=a&&F_(a);for(;d&&F_(d);)d=F_(d);return d||null}}let lp=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=Y_;static#t=this.__NG_ENV_ID__=d=>d}return r})();class v0 extends lp{constructor(a){super(),this._lView=a}onDestroy(a){return nd(this._lView,a),()=>function lc(r,a){if(null===r[Sr])return;const d=r[Sr].indexOf(a);-1!==d&&r[Sr].splice(d,1)}(this._lView,a)}}function Y_(){return new v0(kn())}function Xc(r){return a=>{setTimeout(r,void 0,a)}}const vo=class b0 extends e.x{constructor(a=!1){super(),this.__isAsync=a}emit(a){super.next(a)}subscribe(a,d,_){let x=a,A=d||(()=>null),Y=_;if(a&&"object"==typeof a){const X=a;x=X.next?.bind(X),A=X.error?.bind(X),Y=X.complete?.bind(X)}this.__isAsync&&(A=Xc(A),x&&(x=Xc(x)),Y&&(Y=Xc(Y)));const z=super.subscribe({next:x,error:A,complete:Y});return a instanceof l.w0&&a.add(z),z}};function cp(...r){}class jl{constructor({enableLongStackTrace:a=!1,shouldCoalesceEventChangeDetection:d=!1,shouldCoalesceRunChangeDetection:_=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new vo(!1),this.onMicrotaskEmpty=new vo(!1),this.onStable=new vo(!1),this.onError=new vo(!1),typeof Zone>"u")throw new je(908,!1);Zone.assertZonePatched();const x=this;x._nesting=0,x._outer=x._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(x._inner=x._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(x._inner=x._inner.fork(Zone.longStackTraceZoneSpec)),x.shouldCoalesceEventChangeDetection=!_&&d,x.shouldCoalesceRunChangeDetection=_,x.lastRequestAnimationFrameId=-1,x.nativeRequestAnimationFrame=function B_(){const r="function"==typeof Ft.requestAnimationFrame;let a=Ft[r?"requestAnimationFrame":"setTimeout"],d=Ft[r?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&a&&d){const _=a[Zone.__symbol__("OriginalDelegate")];_&&(a=_);const x=d[Zone.__symbol__("OriginalDelegate")];x&&(d=x)}return{nativeRequestAnimationFrame:a,nativeCancelAnimationFrame:d}}().nativeRequestAnimationFrame,function If(r){const a=()=>{!function y0(r){r.isCheckStableRunning||-1!==r.lastRequestAnimationFrameId||(r.lastRequestAnimationFrameId=r.nativeRequestAnimationFrame.call(Ft,()=>{r.fakeTopEventTask||(r.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{r.lastRequestAnimationFrameId=-1,jh(r),r.isCheckStableRunning=!0,Of(r),r.isCheckStableRunning=!1},void 0,()=>{},()=>{})),r.fakeTopEventTask.invoke()}),jh(r))}(r)};r._inner=r._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(d,_,x,A,Y,z)=>{if(function Zh(r){return!(!Array.isArray(r)||1!==r.length)&&!0===r[0].data?.__ignore_ng_zone__}(z))return d.invokeTask(x,A,Y,z);try{return Wp(r),d.invokeTask(x,A,Y,z)}finally{(r.shouldCoalesceEventChangeDetection&&"eventTask"===A.type||r.shouldCoalesceRunChangeDetection)&&a(),U_(r)}},onInvoke:(d,_,x,A,Y,z,X)=>{try{return Wp(r),d.invoke(x,A,Y,z,X)}finally{r.shouldCoalesceRunChangeDetection&&a(),U_(r)}},onHasTask:(d,_,x,A)=>{d.hasTask(x,A),_===x&&("microTask"==A.change?(r._hasPendingMicrotasks=A.microTask,jh(r),Of(r)):"macroTask"==A.change&&(r.hasPendingMacrotasks=A.macroTask))},onHandleError:(d,_,x,A)=>(d.handleError(x,A),r.runOutsideAngular(()=>r.onError.emit(A)),!1)})}(x)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!jl.isInAngularZone())throw new je(909,!1)}static assertNotInAngularZone(){if(jl.isInAngularZone())throw new je(909,!1)}run(a,d,_){return this._inner.run(a,d,_)}runTask(a,d,_,x){const A=this._inner,Y=A.scheduleEventTask("NgZoneEvent: "+x,a,fg,cp,cp);try{return A.runTask(Y,d,_)}finally{A.cancelTask(Y)}}runGuarded(a,d,_){return this._inner.runGuarded(a,d,_)}runOutsideAngular(a){return this._outer.run(a)}}const fg={};function Of(r){if(0==r._nesting&&!r.hasPendingMicrotasks&&!r.isStable)try{r._nesting++,r.onMicrotaskEmpty.emit(null)}finally{if(r._nesting--,!r.hasPendingMicrotasks)try{r.runOutsideAngular(()=>r.onStable.emit(null))}finally{r.isStable=!0}}}function jh(r){r.hasPendingMicrotasks=!!(r._hasPendingMicrotasks||(r.shouldCoalesceEventChangeDetection||r.shouldCoalesceRunChangeDetection)&&-1!==r.lastRequestAnimationFrameId)}function Wp(r){r._nesting++,r.isStable&&(r.isStable=!1,r.onUnstable.emit(null))}function U_(r){r._nesting--,Of(r)}class pg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new vo,this.onMicrotaskEmpty=new vo,this.onStable=new vo,this.onError=new vo}run(a,d,_){return a.apply(d,_)}runGuarded(a,d,_){return a.apply(d,_)}runOutsideAngular(a){return a()}runTask(a,d,_,x){return a.apply(d,_)}}const V_=new Ut("",{providedIn:"root",factory:j_});function j_(){const r=fe(jl);let a=!0;const d=new D.y(x=>{a=r.isStable&&!r.hasPendingMacrotasks&&!r.hasPendingMicrotasks,r.runOutsideAngular(()=>{x.next(a),x.complete()})}),_=new D.y(x=>{let A;r.runOutsideAngular(()=>{A=r.onStable.subscribe(()=>{jl.assertNotInAngularZone(),queueMicrotask(()=>{!a&&!r.hasPendingMacrotasks&&!r.hasPendingMicrotasks&&(a=!0,x.next(!0))})})});const Y=r.onUnstable.subscribe(()=>{jl.assertInAngularZone(),a&&(a=!1,r.runOutsideAngular(()=>{x.next(!1)}))});return()=>{A.unsubscribe(),Y.unsubscribe()}});return(0,I.T)(d,_.pipe((0,n.B)()))}function Uu(r){return r.ownerDocument.defaultView}function zh(r){return r.ownerDocument}function pd(r){return r instanceof Function?r():r}let z_=(()=>{class r{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>new r})}return r})();function dp(r){for(;r;){r[bi]|=64;const a=du(r);if(Oa(r)&&!a)return r;r=a}return null}const vg=new Ut("",{providedIn:"root",factory:()=>!1});let kf=null;function Lf(r,a){return r[a]??Kp()}function W_(r,a){const d=Kp();d.producerNode?.length&&(r[a]=kf,d.lView=r,kf=Mg())}const up={...Va,consumerIsAlwaysLive:!0,consumerMarkedDirty:r=>{dp(r.lView)},lView:null};function Mg(){return Object.create(up)}function Kp(){return kf??=Mg(),kf}const Ki={};function Cg(r){$_(Fi(),kn(),Do()+r,!1)}function $_(r,a,d,_){if(!_)if(3==(3&a[bi])){const A=r.preOrderCheckHooks;null!==A&&Xa(a,A,d)}else{const A=r.preOrderHooks;null!==A&&ld(a,A,0,d)}qa(d)}function fh(r,a=Ce.Default){const d=kn();return null===d?wt(r,a):nt(en(),d,_e(r),a)}function K_(){throw new Error("invalid")}function hp(r,a,d,_,x,A,Y,z,X,De,Ke){const Rt=a.blueprint.slice();return Rt[er]=x,Rt[bi]=140|_,(null!==De||r&&2048&r[bi])&&(Rt[bi]|=2048),Vs(Rt),Rt[_r]=Rt[Qs]=r,Rt[nr]=d,Rt[va]=Y||r&&r[va],Rt[Ti]=z||r&&r[Ti],Rt[ps]=X||r&&r[ps]||null,Rt[no]=A,Rt[Xs]=function tf(){return vh++}(),Rt[jr]=Ke,Rt[Ml]=De,Rt[wi]=2==a.type?r[wi]:Rt,Rt}function Vu(r,a,d,_,x){let A=r.data[a];if(null===A)A=Jp(r,a,d,_,x),function V(){return Ei.lFrame.inI18n}()&&(A.flags|=32);else if(64&A.type){A.type=d,A.value=_,A.attrs=x;const Y=gt();A.injectorIndex=null===Y?-1:Y.injectorIndex}return la(A,!0),A}function Jp(r,a,d,_,x){const A=so(),Y=Ra(),X=r.data[a]=function Ag(r,a,d,_,x,A){let Y=a?a.injectorIndex:-1,z=0;return hl()&&(z|=128),{type:d,index:_,insertBeforeIndex:null,injectorIndex:Y,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:z,providerIndexes:0,value:x,attrs:A,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:a,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,Y?A:A&&A.parent,d,a,_,x);return null===r.firstChild&&(r.firstChild=X),null!==A&&(Y?null==A.child&&null!==X.parent&&(A.child=X):null===A.next&&(A.next=X,X.prev=A)),X}function Pf(r,a,d,_){if(0===d)return-1;const x=a.length;for(let A=0;AAi&&$_(r,a,Ai,!1),Qr(z?2:0,x);const De=z?A:null,Ke=ts(De);try{null!==De&&(De.dirty=!1),d(_,x)}finally{Wl(De,Ke)}}finally{z&&null===a[xo]&&W_(a,xo),qa(Y),Qr(z?3:1,x)}}function qp(r,a,d){if(qo(a)){const _=Ro(null);try{const A=a.directiveEnd;for(let Y=a.directiveStart;Ynull;function X_(r,a,d,_){for(let x in r)if(r.hasOwnProperty(x)){d=null===d?{}:d;const A=r[x];null===_?em(d,a,x,A):_.hasOwnProperty(x)&&em(d,a,_[x],A)}return d}function em(r,a,d,_){r.hasOwnProperty(d)?r[d].push(a,_):r[d]=[a,_]}function md(r,a,d,_,x,A,Y,z){const X=_o(a,d);let Ke,De=a.inputs;!z&&null!=De&&(Ke=De[_])?(lm(r,d,Ke,_,x),Ss(a)&&function tm(r,a){const d=ko(a,r);16&d[bi]||(d[bi]|=64)}(d,a.index)):3&a.type&&(_=function E0(r){return"class"===r?"className":"for"===r?"htmlFor":"formaction"===r?"formAction":"innerHtml"===r?"innerHTML":"readonly"===r?"readOnly":"tabindex"===r?"tabIndex":r}(_),x=null!=Y?Y(x,a.value||"",_):x,A.setProperty(X,_,x))}function mp(r,a,d,_){if(cc()){const x=null===_?null:{"":-1},A=function A0(r,a){const d=r.directiveRegistry;let _=null,x=null;if(d)for(let A=0;A0;){const d=r[--a];if("number"==typeof d&&d<0)return d}return 0})(Y)!=z&&Y.push(z),Y.push(d,_,A)}}(r,a,_,Pf(r,d,x.hostVars,Ki),x)}function wu(r,a,d,_,x,A){const Y=_o(r,a);!function om(r,a,d,_,x,A,Y){if(null==A)r.removeAttribute(a,x,d);else{const z=null==Y?xt(A):Y(A,_||"",x);r.setAttribute(a,x,z,d)}}(a[Ti],Y,A,r.value,d,_,x)}function sm(r,a,d,_,x,A){const Y=A[a];if(null!==Y)for(let z=0;z{class r{constructor(){this.all=new Set,this.queue=new Map}create(d,_,x){const A=typeof Zone>"u"?null:Zone.current,Y=function Sn(r,a,d){const _=Object.create(ur);d&&(_.consumerAllowSignalWrites=!0),_.fn=r,_.schedule=a;const x=Y=>{_.cleanupFn=Y};return _.ref={notify:()=>es(_),run:()=>{if(_.dirty=!1,_.hasRun&&!gs(_))return;_.hasRun=!0;const Y=ts(_);try{_.cleanupFn(),_.cleanupFn=li,_.fn(x)}finally{Wl(_,Y)}},cleanup:()=>_.cleanupFn()},_.ref}(d,De=>{this.all.has(De)&&this.queue.set(De,A)},x);let z;this.all.add(Y),Y.notify();const X=()=>{Y.cleanup(),z?.(),this.all.delete(Y),this.queue.delete(Y)};return z=_?.onDestroy(X),{destroy:X}}flush(){if(0!==this.queue.size)for(const[d,_]of this.queue)this.queue.delete(d),_?_.run(()=>d.run()):d.run()}get isQueueEmpty(){return 0===this.queue.size}static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:()=>new r})}return r})();function r_(r,a,d){let _=d?r.styles:null,x=d?r.classes:null,A=0;if(null!==a)for(let Y=0;Y0){Vg(r,1);const x=d.components;null!==x&&Zg(r,x,1)}}function Zg(r,a,d){for(let _=0;_-1&&(Lu(a,_),ml(d,_))}this._attachedToViewContainer=!1}eh(this._lView[qn],this._lView)}onDestroy(a){nd(this._lView,a)}markForCheck(){dp(this._cdRefInjectingView||this._lView)}detach(){this._lView[bi]&=-129}reattach(){this._lView[bi]|=128}detectChanges(){o_(this._lView[qn],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new je(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function uf(r,a){_u(r,a,a[Ti],2,null,null)}(this._lView[qn],this._lView)}attachToAppRef(a){if(this._attachedToViewContainer)throw new je(902,!1);this._appRef=a}}class B0 extends yp{constructor(a){super(a),this._view=a}detectChanges(){const a=this._view;o_(a[qn],a,a[nr],!1)}checkNoChanges(){}get context(){return null}}class s_ extends Af{constructor(a){super(),this.ngModule=a}resolveComponentFactory(a){const d=Li(a);return new wp(d,this.ngModule)}}function zg(r){const a=[];for(let d in r)r.hasOwnProperty(d)&&a.push({propName:r[d],templateName:d});return a}class U0{constructor(a,d){this.injector=a,this.parentInjector=d}get(a,d,_){_=Mt(_);const x=this.injector.get(a,zp,_);return x!==zp||d===zp?x:this.parentInjector.get(a,d,_)}}class wp extends R_{get inputs(){const a=this.componentDef,d=a.inputTransforms,_=zg(a.inputs);if(null!==d)for(const x of _)d.hasOwnProperty(x.propName)&&(x.transform=d[x.propName]);return _}get outputs(){return zg(this.componentDef.outputs)}constructor(a,d){super(),this.componentDef=a,this.ngModule=d,this.componentType=a.type,this.selector=function Jr(r){return r.map(Uo).join(",")}(a.selectors),this.ngContentSelectors=a.ngContentSelectors?a.ngContentSelectors:[],this.isBoundToModule=!!d}create(a,d,_,x){let A=(x=x||this.ngModule)instanceof bu?x:x?.injector;A&&null!==this.componentDef.getStandaloneInjector&&(A=this.componentDef.getStandaloneInjector(A)||A);const Y=A?new U0(a,A):a,z=Y.get(jp,null);if(null===z)throw new je(407,!1);const Rt={rendererFactory:z,sanitizer:Y.get(og,null),effectManager:Y.get(Bg,null),afterRenderEventManager:Y.get(z_,null)},Xt=z.createRenderer(null,this.componentDef),ln=this.componentDef.selectors[0][0]||"div",In=_?function Q_(r,a,d,_){const A=_.get(vg,!1)||d===On.ShadowDom,Y=r.selectRootElement(a,A);return function Eg(r){Gh(r)}(Y),Y}(Xt,_,this.componentDef.encapsulation,Y):hu(Xt,ln,function H0(r){const a=r.toLowerCase();return"svg"===a?zr:"math"===a?"math":null}(ln)),Yi=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let Fn=null;null!==In&&(Fn=np(In,Y,!0));const cr=pp(0,null,null,1,0,null,null,null,null,null,null),Ur=hp(null,cr,null,Yi,null,null,Rt,Xt,Y,null,Fn);let xs,wd;$i(Ur);try{const mh=this.componentDef;let Op,r0=null;mh.findHostDirectiveDefs?(Op=[],r0=new Map,mh.findHostDirectiveDefs(mh,Op,r0),Op.push(mh)):Op=[mh];const GT=function V0(r,a){const d=r[qn],_=Ai;return r[_]=a,Vu(d,_,2,"#host",null)}(Ur,In),WT=function j0(r,a,d,_,x,A,Y){const z=x[qn];!function Z0(r,a,d,_){for(const x of r)a.mergedAttrs=br(a.mergedAttrs,x.hostAttrs);null!==a.mergedAttrs&&(r_(a,a.mergedAttrs,!0),null!==d&&us(_,d,a))}(_,r,a,Y);let X=null;null!==a&&(X=np(a,x[ps]));const De=A.rendererFactory.createRenderer(a,d);let Ke=16;d.signals?Ke=4096:d.onPush&&(Ke=64);const Rt=hp(x,q_(d),null,Ke,x[r.index],r,A,De,null,null,X);return z.firstCreatePass&&gp(z,r,_.length-1),i_(x,Rt),x[r.index]=Rt}(GT,In,mh,Op,Ur,Rt,Xt);wd=Xi(cr,Ai),In&&function Gg(r,a,d,_){if(_)_i(r,d,["ng-version",sg.full]);else{const{attrs:x,classes:A}=function ga(r){const a=[],d=[];let _=1,x=2;for(;_0&&Fd(r,d,A.join(" "))}}(Xt,mh,In,_),void 0!==d&&function G0(r,a,d){const _=r.projection=[];for(let x=0;x=0;_--){const x=r[_];x.hostVars=a+=x.hostVars,x.hostAttrs=br(x.hostAttrs,d=br(d,x.hostAttrs))}}(_)}function a_(r){return r===ni?{}:r===Vn?[]:r}function $0(r,a){const d=r.viewQuery;r.viewQuery=d?(_,x)=>{a(_,x),d(_,x)}:a}function $g(r,a){const d=r.contentQueries;r.contentQueries=d?(_,x,A)=>{a(_,x,A),d(_,x,A)}:a}function K0(r,a){const d=r.hostBindings;r.hostBindings=d?(_,x)=>{a(_,x),d(_,x)}:a}function Kg(r){return a=>{a.findHostDirectiveDefs=l_,a.hostDirectives=(Array.isArray(r)?r:r()).map(d=>"function"==typeof d?{directive:_e(d),inputs:ni,outputs:ni}:{directive:_e(d.directive),inputs:mm(d.inputs),outputs:mm(d.outputs)})}}function l_(r,a,d){if(null!==r.hostDirectives)for(const _ of r.hostDirectives){const x=Yr(_.directive);Jg(x.declaredInputs,_.inputs),l_(x,a,d),d.set(x,_),a.push(x)}}function mm(r){if(void 0===r||0===r.length)return ni;const a={};for(let d=0;d(pl(!0),hu(_,x,function hc(){return Ei.lFrame.currentNamespace}()));function Tm(r,a,d){const _=kn(),x=Fi(),A=r+Ai,Y=x.firstCreatePass?function Lw(r,a,d,_,x){const A=a.consts,Y=Us(A,_),z=Vu(a,r,8,"ng-container",Y);return null!==Y&&r_(z,Y,!0),mp(a,d,z,Us(A,x)),null!==a.queries&&a.queries.elementStart(a,z),z}(A,x,_,a,d):x.data[A];la(Y,!0);const z=s1(x,_,Y,r);return _[A]=z,js()&&Dc(x,_,z,Y),rl(z,_),ya(Y)&&(Qp(x,_,Y),qp(x,Y,_)),null!=d&&fp(_,Y),Tm}function Dm(){let r=en();const a=Fi();return Ra()?Ls():(r=r.parent,la(r,!1)),a.firstCreatePass&&(Pi(a,r),qo(r)&&a.queries.elementEnd(r)),Dm}function rv(r,a,d){return Tm(r,a,d),Dm(),rv}let s1=(r,a,d,_)=>(pl(!0),Qu(a[Ti],""));function a1(){return kn()}function ov(r){return!!r&&"function"==typeof r.then}function l1(r){return!!r&&"function"==typeof r.subscribe}function sv(r,a,d,_){const x=kn(),A=Fi(),Y=en();return c1(A,x,x[Ti],Y,r,a,_),sv}function av(r,a){const d=en(),_=kn(),x=Fi();return c1(x,_,Fg(mn(x.data),d,_),d,r,a),av}function c1(r,a,d,_,x,A,Y){const z=ya(_),De=r.firstCreatePass&&Ng(r),Ke=a[nr],Rt=am(a);let Xt=!0;if(3&_.type||Y){const zn=_o(_,a),ui=Y?Y(zn):zn,Yi=Rt.length,Fn=Y?Ur=>Y(yi(Ur[_.index])):_.index;let cr=null;if(!Y&&z&&(cr=function Fw(r,a,d,_){const x=r.cleanup;if(null!=x)for(let A=0;AX?z[X]:null}"string"==typeof Y&&(A+=2)}return null}(r,a,x,_.index)),null!==cr)(cr.__ngLastListenerFn__||cr).__ngNextListenerFn__=A,cr.__ngLastListenerFn__=A,Xt=!1;else{A=u1(_,a,Ke,A,!1);const Ur=d.listen(ui,x,A);Rt.push(A,Ur),De&&De.push(x,Fn,Yi,Yi+1)}}else A=u1(_,a,Ke,A,!1);const ln=_.outputs;let In;if(Xt&&null!==ln&&(In=ln[x])){const zn=In.length;if(zn)for(let ui=0;ui-1?ko(r.index,a):a);let X=d1(a,d,_,Y),De=A.__ngNextListenerFn__;for(;De;)X=d1(a,d,De,Y)&&X,De=De.__ngNextListenerFn__;return x&&!1===X&&Y.preventDefault(),X}}function h1(r=1){return function xd(r){return(Ei.lFrame.contextLView=function Md(r,a){for(;r>0;)a=a[Qs],r--;return a}(r,Ei.lFrame.contextLView))[nr]}(r)}function Yw(r,a){let d=null;const _=function xl(r){const a=r.attrs;if(null!=a){const d=a.indexOf(5);if(!(1&d))return a[d+1]}return null}(r);for(let x=0;x>17&32767}function cv(r){return 2|r}function Bf(r){return(131068&r)>>2}function dv(r,a){return-131069&r|a<<2}function uv(r){return 1|r}function M1(r,a,d,_,x){const A=r[d+1],Y=null===a;let z=_?$h(A):Bf(A),X=!1;for(;0!==z&&(!1===X||Y);){const Ke=r[z+1];Zw(r[z],a)&&(X=!0,r[z+1]=_?uv(Ke):cv(Ke)),z=_?$h(Ke):Bf(Ke)}X&&(r[d+1]=_?cv(A):uv(A))}function Zw(r,a){return null===r||null==a||(Array.isArray(r)?r[1]:r)===a||!(!Array.isArray(r)||"string"!=typeof a)&&No(r,a)>=0}const rc={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function C1(r){return r.substring(rc.key,rc.keyEnd)}function zw(r){return r.substring(rc.value,rc.valueEnd)}function T1(r,a){const d=rc.textEnd;return d===a?-1:(a=rc.keyEnd=function $w(r,a,d){for(;a32;)a++;return a}(r,rc.key=a,d),Mp(r,a,d))}function D1(r,a){const d=rc.textEnd;let _=rc.key=Mp(r,a,d);return d===_?-1:(_=rc.keyEnd=function Kw(r,a,d){let _;for(;a=65&&(-33&_)<=90||_>=48&&_<=57);)a++;return a}(r,_,d),_=S1(r,_,d),_=rc.value=Mp(r,_,d),_=rc.valueEnd=function Jw(r,a,d){let _=-1,x=-1,A=-1,Y=a,z=Y;for(;Y32&&(z=Y),A=x,x=_,_=-33&X}return z}(r,_,d),S1(r,_,d))}function E1(r){rc.key=0,rc.keyEnd=0,rc.value=0,rc.valueEnd=0,rc.textEnd=r.length}function Mp(r,a,d){for(;a=0;d=D1(a,d))k1(r,C1(a),zw(a))}function O1(r){Du(ix,zu,r,!0)}function zu(r,a){for(let d=function Gw(r){return E1(r),T1(r,Mp(r,0,rc.textEnd))}(a);d>=0;d=T1(a,d))Xr(r,C1(a),!0)}function Tu(r,a,d,_){const x=kn(),A=Fi(),Y=ne(2);A.firstUpdatePass&&R1(A,r,Y,_),a!==Ki&&Je(x,Y,a)&&L1(A,A.data[Do()],x,x[Ti],r,x[Y+1]=function ox(r,a){return null==r||""===r||("string"==typeof a?r+=a:"object"==typeof r&&(r=se(qc(r)))),r}(a,d),_,Y)}function Du(r,a,d,_){const x=Fi(),A=ne(2);x.firstUpdatePass&&R1(x,null,A,_);const Y=kn();if(d!==Ki&&Je(Y,A,d)){const z=x.data[Do()];if(N1(z,_)&&!I1(x,A)){let X=_?z.classesWithoutHost:z.stylesWithoutHost;null!==X&&(d=te(X,d||"")),nv(x,z,Y,d,_)}else!function rx(r,a,d,_,x,A,Y,z){x===Ki&&(x=Vn);let X=0,De=0,Ke=0=r.expandoStartIndex}function R1(r,a,d,_){const x=r.data;if(null===x[d+1]){const A=x[Do()],Y=I1(r,d);N1(A,_)&&null===a&&!Y&&(a=!1),a=function Qw(r,a,d,_){const x=mn(r);let A=_?a.residualClasses:a.residualStyles;if(null===x)0===(_?a.classBindings:a.styleBindings)&&(d=h_(d=pv(null,r,a,d,_),a.attrs,_),A=null);else{const Y=a.directiveStylingLast;if(-1===Y||r[Y]!==x)if(d=pv(x,r,a,d,_),null===A){let X=function Xw(r,a,d){const _=d?a.classBindings:a.styleBindings;if(0!==Bf(_))return r[$h(_)]}(r,a,_);void 0!==X&&Array.isArray(X)&&(X=pv(null,r,a,X[1],_),X=h_(X,a.attrs,_),function ex(r,a,d,_){r[$h(d?a.classBindings:a.styleBindings)]=_}(r,a,_,X))}else A=function tx(r,a,d){let _;const x=a.directiveEnd;for(let A=1+a.directiveStylingLast;A0)&&(De=!0)):Ke=d,x)if(0!==X){const Xt=$h(r[z+1]);r[_+1]=Sm(Xt,z),0!==Xt&&(r[Xt+1]=dv(r[Xt+1],_)),r[z+1]=function Hw(r,a){return 131071&r|a<<17}(r[z+1],_)}else r[_+1]=Sm(z,0),0!==z&&(r[z+1]=dv(r[z+1],_)),z=_;else r[_+1]=Sm(X,0),0===z?z=_:r[X+1]=dv(r[X+1],_),X=_;De&&(r[_+1]=cv(r[_+1])),M1(r,Ke,_,!0),M1(r,Ke,_,!1),function jw(r,a,d,_,x){const A=x?r.residualClasses:r.residualStyles;null!=A&&"string"==typeof a&&No(A,a)>=0&&(d[_+1]=uv(d[_+1]))}(a,Ke,r,_,A),Y=Sm(z,X),A?a.classBindings=Y:a.styleBindings=Y}(x,A,a,d,Y,_)}}function pv(r,a,d,_,x){let A=null;const Y=d.directiveEnd;let z=d.directiveStylingLast;for(-1===z?z=d.directiveStart:z++;z0;){const X=r[x],De=Array.isArray(X),Ke=De?X[1]:X,Rt=null===Ke;let Xt=d[x+1];Xt===Ki&&(Xt=Rt?Vn:void 0);let ln=Rt?Mc(Xt,_):Ke===_?Xt:void 0;if(De&&!Am(ln)&&(ln=Mc(X,_)),Am(ln)&&(z=ln,Y))return z;const In=r[x+1];x=Y?$h(In):Bf(In)}if(null!==a){let X=A?a.residualClasses:a.residualStyles;null!=X&&(z=Mc(X,_))}return z}function Am(r){return void 0!==r}function N1(r,a){return 0!=(r.flags&(a?8:16))}function F1(r,a=""){const d=kn(),_=Fi(),x=r+Ai,A=_.firstCreatePass?Vu(_,x,1,a,null):_.data[x],Y=Y1(_,d,A,a,r);d[x]=Y,js()&&Dc(_,d,Y,A),la(A,!1)}let Y1=(r,a,d,_,x)=>(pl(!0),ku(a[Ti],_));function _v(r){return Om("",r,""),_v}function Om(r,a,d){const _=kn(),x=Un(_,r,a,d);return x!==Ki&&ju(_,Do(),x),Om}function mv(r,a,d,_,x){const A=kn(),Y=Xn(A,r,a,d,_,x);return Y!==Ki&&ju(A,Do(),Y),mv}function gv(r,a,d,_,x,A,Y){const z=kn(),X=function ii(r,a,d,_,x,A,Y,z){const De=jt(r,ka(),d,x,Y);return ne(3),De?a+xt(d)+_+xt(x)+A+xt(Y)+z:Ki}(z,r,a,d,_,x,A,Y);return X!==Ki&&ju(z,Do(),X),gv}function z1(r,a,d){Du(Xr,zu,Un(kn(),r,a,d),!0)}function G1(r,a,d){Cu(Un(kn(),r,a,d))}function W1(r,a,d,_,x){Cu(Xn(kn(),r,a,d,_,x))}function vv(r,a,d){const _=kn();return Je(_,W(),a)&&md(Fi(),xr(),_,r,a,_[Ti],d,!0),vv}function bv(r,a,d){const _=kn();if(Je(_,W(),a)){const A=Fi(),Y=xr();md(A,Y,_,r,a,Fg(mn(A.data),Y,_),d,!0)}return bv}const Hf=void 0;var Cx=["en",[["a","p"],["AM","PM"],Hf],[["AM","PM"],Hf,Hf],[["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"]],Hf,[["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"]],Hf,[["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}",Hf,"{1} 'at' {0}",Hf],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Mx(r){const d=Math.floor(Math.abs(r)),_=r.toString().replace(/^[^.]*\.?/,"").length;return 1===d&&0===_?1:5}];let Cp={};function yv(r){const a=function Tx(r){return r.toLowerCase().replace(/_/g,"-")}(r);let d=rb(a);if(d)return d;const _=a.split("-")[0];if(d=rb(_),d)return d;if("en"===_)return Cx;throw new je(701,!1)}function ib(r){return yv(r)[Tp.PluralCase]}function rb(r){return r in Cp||(Cp[r]=Ft.ng&&Ft.ng.common&&Ft.ng.common.locales&&Ft.ng.common.locales[r]),Cp[r]}var Tp=function(r){return r[r.LocaleId=0]="LocaleId",r[r.DayPeriodsFormat=1]="DayPeriodsFormat",r[r.DayPeriodsStandalone=2]="DayPeriodsStandalone",r[r.DaysFormat=3]="DaysFormat",r[r.DaysStandalone=4]="DaysStandalone",r[r.MonthsFormat=5]="MonthsFormat",r[r.MonthsStandalone=6]="MonthsStandalone",r[r.Eras=7]="Eras",r[r.FirstDayOfWeek=8]="FirstDayOfWeek",r[r.WeekendRange=9]="WeekendRange",r[r.DateFormat=10]="DateFormat",r[r.TimeFormat=11]="TimeFormat",r[r.DateTimeFormat=12]="DateTimeFormat",r[r.NumberSymbols=13]="NumberSymbols",r[r.NumberFormats=14]="NumberFormats",r[r.CurrencyCode=15]="CurrencyCode",r[r.CurrencySymbol=16]="CurrencySymbol",r[r.CurrencyName=17]="CurrencyName",r[r.Currencies=18]="Currencies",r[r.Directionality=19]="Directionality",r[r.PluralCase=20]="PluralCase",r[r.ExtraData=21]="ExtraData",r}(Tp||{});const Dp="en-US",Im={marker:"element"},Rm={marker:"ICU"};var bd=function(r){return r[r.SHIFT=2]="SHIFT",r[r.APPEND_EAGERLY=1]="APPEND_EAGERLY",r[r.COMMENT=2]="COMMENT",r}(bd||{});let ob=Dp;function sb(r){(function tt(r,a){null==r&&he(a,r,null,"!=")})(r,"Expected localeId to be defined"),"string"==typeof r&&(ob=r.toLowerCase().replace(/_/g,"-"))}function ab(r,a,d){const _=a.insertBeforeIndex,x=Array.isArray(_)?_[0]:_;return null===x?th(r,0,d):yi(d[x])}function lb(r,a,d,_,x){const A=a.insertBeforeIndex;if(Array.isArray(A)){let Y=_,z=null;if(3&a.type||(z=Y,Y=x),null!==Y&&-1===a.componentOffset)for(let X=1;X1)for(let d=r.length-2;d>=0;d--){const _=r[d];db(_)||Ox(_,a)&&null===Ix(_)&&Rx(_,a.index)}}function db(r){return!(64&r.type)}function Ox(r,a){return db(a)||r.index>a.index}function Ix(r){const a=r.insertBeforeIndex;return Array.isArray(a)?a[0]:a}function Rx(r,a){const d=r.insertBeforeIndex;Array.isArray(d)?d[0]=a:(eu(ab,lb),r.insertBeforeIndex=a)}function Px(r,a,d){const _=Jp(r,d,64,null,null);return cb(a,_),_}function Vx(){const r=[];let d,_,a=-1;function A(z,X){a=0;const De=function km(r,a){const d=a[r.currentCaseLViewIndex];return null===d?d:d<0?~d:d}(z,X);_=null!==De?z.remove[De]:Vn}function Y(){if(a<_.length){const z=_[a++];return z>0?d[z]:(r.push(a,_),A(d[qn].data[~z],d),Y())}return 0===r.length?null:(_=r.pop(),a=r.pop(),Y())}return function x(z,X){for(d=X;r.length;)r.pop();return A(z.value,X),Y}}const Lm=/\ufffd(\d+):?\d*\ufffd/gi,Zx=/\ufffd(\d+)\ufffd/,bb=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,m_="\ufffd",zx=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Gx=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Wx=/\uE500/g;function yb(r,a,d,_,x,A,Y){const z=Pf(r,_,1,null);let X=z<d.length&&d.push(X)}return{type:_,mainBinding:x,cases:a,values:d}}function wv(r){if(!r)return[];let a=0;const d=[],_=[],x=/[{}]/g;let A;for(x.lastIndex=0;A=x.exec(r);){const z=A.index;if("}"==A[0]){if(d.pop(),0==d.length){const X=r.substring(a,z);bb.test(X)?_.push(tM(X)):_.push(X),a=z+1}}else{if(0==d.length){const X=r.substring(a,z);_.push(X),a=z+1}d.push("{")}}const Y=r.substring(a);return _.push(Y),_}function nM(r,a,d,_,x,A,Y,z){const X=[],De=[],Ke=[];a.cases.push(A),a.create.push(X),a.remove.push(De),a.update.push(Ke);const Xt=c(Bd()).getInertBodyElement(Y),ln=Vl(Xt)||Xt;return ln?Cb(r,a,d,_,X,De,Ke,ln,x,z,0):0}function Cb(r,a,d,_,x,A,Y,z,X,De,Ke){let Rt=0,Xt=z.firstChild;for(;Xt;){const ln=Pf(r,d,1,null);switch(Xt.nodeType){case Node.ELEMENT_NODE:const In=Xt,zn=In.tagName.toLowerCase();if(Gt.hasOwnProperty(zn)){xv(x,Im,zn,X,ln),r.data[ln]=zn;const cr=In.attributes;for(let Ur=0;Ur>>bd.SHIFT;let Rt=r[Ke];null===Rt&&(Rt=r[Ke]=(Y&bd.COMMENT)===bd.COMMENT?x.createComment(z):ku(x,z)),De&&null!==d&&Jc(x,d,Rt,_,!1)}})(x,X.create,Ke,z&&8&z.type?x[z.index]:null),ie(!0)}function Cv(){ie(!1)}function Eb(r,a,d){Mv(r,a,d),Cv()}function Tv(r,a,d,_,x){if(r=_e(r),Array.isArray(r))for(let A=0;A>20;if(Nh(r)||!r.multi){const ln=new ca(De,x,fh),In=Ev(X,a,x?Ke:Ke+Xt,Rt);-1===In?(k(Ll(z,Y),A,X),Dv(A,r,a.length),a.push(X),z.directiveStart++,z.directiveEnd++,x&&(z.providerIndexes+=1048576),d.push(ln),Y.push(ln)):(d[In]=ln,Y[In]=ln)}else{const ln=Ev(X,a,Ke+Xt,Rt),In=Ev(X,a,Ke,Ke+Xt),ui=In>=0&&d[In];if(x&&!ui||!x&&!(ln>=0&&d[ln])){k(Ll(z,Y),A,X);const Yi=function xM(r,a,d,_,x){const A=new ca(r,d,fh);return A.multi=[],A.index=a,A.componentProviders=0,Ab(A,x,_&&!d),A}(x?wM:yM,d.length,x,_,De);!x&&ui&&(d[In].providerFactory=Yi),Dv(A,r,a.length,0),a.push(X),z.directiveStart++,z.directiveEnd++,x&&(z.providerIndexes+=1048576),d.push(Yi),Y.push(Yi)}else Dv(A,r,ln>-1?ln:In,Ab(d[x?In:ln],De,!x&&_));!x&&_&&ui&&d[In].componentProviders++}}}function Dv(r,a,d,_){const x=Nh(a),A=function C_(r){return!!r.useClass}(a);if(x||A){const X=(A?_e(a.useClass):a).prototype.ngOnDestroy;if(X){const De=r.destroyHooks||(r.destroyHooks=[]);if(!x&&a.multi){const Ke=De.indexOf(d);-1===Ke?De.push(d,[_,X]):De[Ke+1].push(_,X)}else De.push(d,X)}}}function Ab(r,a,d){return d&&r.componentProviders++,r.multi.push(a)-1}function Ev(r,a,d,_){for(let x=d;x<_;x++)if(a[x]===r)return x;return-1}function yM(r,a,d,_){return Sv(this.multi,[])}function wM(r,a,d,_){const x=this.multi;let A;if(this.providerFactory){const Y=this.providerFactory.componentProviders,z=Oi(d,d[qn],this.providerFactory.index,_);A=z.slice(0,Y),Sv(x,A);for(let X=Y;X{d.providersResolver=(_,x)=>function bM(r,a,d){const _=Fi();if(_.firstCreatePass){const x=sr(r);Tv(d,_.data,_.blueprint,x,!0),Tv(a,_.data,_.blueprint,x,!1)}}(_,x?x(r):r,a)}}class Uf{}class Ib{}function MM(r,a){return new Av(r,a??null,[])}class Av extends Uf{constructor(a,d,_){super(),this._parent=d,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new s_(this);const x=wr(a);this._bootstrapComponents=pd(x.bootstrap),this._r3Injector=ug(a,d,[{provide:Uf,useValue:this},{provide:Af,useValue:this.componentFactoryResolver},..._],se(a),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(a)}get injector(){return this._r3Injector}destroy(){const a=this._r3Injector;!a.destroyed&&a.destroy(),this.destroyCbs.forEach(d=>d()),this.destroyCbs=null}onDestroy(a){this.destroyCbs.push(a)}}class Ov extends Ib{constructor(a){super(),this.moduleType=a}create(a){return new Av(this.moduleType,a,[])}}class Rb extends Uf{constructor(a){super(),this.componentFactoryResolver=new s_(this),this.instance=null;const d=new Tf([...a.providers,{provide:Uf,useValue:this},{provide:Af,useValue:this.componentFactoryResolver}],a.parent||kp(),a.debugName,new Set(["environment"]));this.injector=d,a.runEnvironmentInitializers&&d.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(a){this.injector.onDestroy(a)}}function kb(r,a,d=null){return new Rb({providers:r,parent:a,debugName:d,runEnvironmentInitializers:!0}).injector}let TM=(()=>{class r{constructor(d){this._injector=d,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(d){if(!d.standalone)return null;if(!this.cachedInjectors.has(d)){const _=ch(0,d.type),x=_.length>0?kb([_],this._injector,`Standalone[${d.type.name}]`):null;this.cachedInjectors.set(d,x)}return this.cachedInjectors.get(d)}ngOnDestroy(){try{for(const d of this.cachedInjectors.values())null!==d&&d.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Nt({token:r,providedIn:"environment",factory:()=>new r(wt(bu))})}return r})();function Lb(r){r.getStandaloneInjector=a=>a.get(TM).getOrCreateStandaloneInjector(r)}function Ub(r,a,d){const _=mo()+r,x=kn();return x[_]===Ki?Q(x,_,d?a.call(d):a()):Le(x,_)}function Vb(r,a,d,_){return Wb(kn(),mo(),r,a,d,_)}function jb(r,a,d,_,x){return $b(kn(),mo(),r,a,d,_,x)}function Zb(r,a,d,_,x,A){return function Kb(r,a,d,_,x,A,Y,z){const X=a+d;return jt(r,X,x,A,Y)?Q(r,X+3,z?_.call(z,x,A,Y):_(x,A,Y)):v_(r,X+3)}(kn(),mo(),r,a,d,_,x,A)}function zb(r,a,d,_,x,A,Y){return function Jb(r,a,d,_,x,A,Y,z,X){const De=a+d;return dn(r,De,x,A,Y,z)?Q(r,De+4,X?_.call(X,x,A,Y,z):_(x,A,Y,z)):v_(r,De+4)}(kn(),mo(),r,a,d,_,x,A,Y)}function Gb(r,a,d,_,x,A,Y,z){const X=mo()+r,De=kn(),Ke=dn(De,X,d,_,x,A);return Je(De,X+4,Y)||Ke?Q(De,X+5,z?a.call(z,d,_,x,A,Y):a(d,_,x,A,Y)):Le(De,X+5)}function v_(r,a){const d=r[a];return d===Ki?void 0:d}function Wb(r,a,d,_,x,A){const Y=a+d;return Je(r,Y,x)?Q(r,Y+1,A?_.call(A,x):_(x)):v_(r,Y+1)}function $b(r,a,d,_,x,A,Y){const z=a+d;return At(r,z,x,A)?Q(r,z+2,Y?_.call(Y,x,A):_(x,A)):v_(r,z+2)}function Qb(r,a){const d=Fi();let _;const x=r+Ai;d.firstCreatePass?(_=function YM(r,a){if(a)for(let d=a.length-1;d>=0;d--){const _=a[d];if(r===_.name)return _}}(a,d.pipeRegistry),d.data[x]=_,_.onDestroy&&(d.destroyHooks??=[]).push(x,_.onDestroy)):_=d.data[x];const A=_.factory||(_.factory=Xo(_.type)),z=Oe(fh);try{const X=Eo(!1),De=A();return Eo(X),function Ow(r,a,d,_){d>=r.data.length&&(r.data[d]=null,r.blueprint[d]=null),a[d]=_}(d,kn(),x,De),De}finally{Oe(z)}}function Xb(r,a,d){const _=r+Ai,x=kn(),A=dl(x,_);return b_(x,_)?Wb(x,mo(),a,A.transform,d,A):A.transform(d)}function ey(r,a,d,_){const x=r+Ai,A=kn(),Y=dl(A,x);return b_(A,x)?$b(A,mo(),a,Y.transform,d,_,Y):Y.transform(d,_)}function b_(r,a){return r[qn].data[a].pure}function VM(){return this._results[Symbol.iterator]()}class Pm{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new vo)}constructor(a=!1){this._emitDistinctChangesOnly=a,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const d=Pm.prototype;d[Symbol.iterator]||(d[Symbol.iterator]=VM)}get(a){return this._results[a]}map(a){return this._results.map(a)}filter(a){return this._results.filter(a)}find(a){return this._results.find(a)}reduce(a,d){return this._results.reduce(a,d)}forEach(a){this._results.forEach(a)}some(a){return this._results.some(a)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(a,d){const _=this;_.dirty=!1;const x=function nl(r){return r.flat(Number.POSITIVE_INFINITY)}(a);(this._changesDetected=!function Jd(r,a,d){if(r.length!==a.length)return!1;for(let _=0;_0&&(d[x-1][wo]=a),_{class r{static#e=this.__NG_ELEMENT_ID__=WM}return r})();const zM=y_,GM=class extends zM{constructor(a,d,_){super(),this._declarationLView=a,this._declarationTContainer=d,this.elementRef=_}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(a,d){return this.createEmbeddedViewImpl(a,d)}createEmbeddedViewImpl(a,d,_){const x=function jM(r,a,d,_){const x=a.tView,z=hp(r,x,d,4096&r[bi]?4096:16,null,a,null,null,null,_?.injector??null,_?.hydrationInfo??null);z[Oo]=r[a.index];const De=r[or];return null!==De&&(z[or]=De.createEmbeddedView(x)),cm(x,z,d),z}(this._declarationLView,this._declarationTContainer,a,{injector:d,hydrationInfo:_});return new yp(x)}};function WM(){return Nm(en(),kn())}function Nm(r,a){return 4&r.type?new GM(a,r,Uh(r,a)):null}let Ym=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=XM}return r})();function XM(){return ay(en(),kn())}const eC=Ym,oy=class extends eC{constructor(a,d,_){super(),this._lContainer=a,this._hostTNode=d,this._hostLView=_}get element(){return Uh(this._hostTNode,this._hostLView)}get injector(){return new ls(this._hostTNode,this._hostLView)}get parentInjector(){const a=ir(this._hostTNode,this._hostLView);if(wc(a)){const d=Ac(a,this._hostLView),_=kl(a);return new ls(d[qn].data[_+8],d)}return new ls(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(a){const d=sy(this._lContainer);return null!==d&&d[a]||null}get length(){return this._lContainer.length-Br}createEmbeddedView(a,d,_){let x,A;"number"==typeof _?x=_:null!=_&&(x=_.index,A=_.injector);const z=a.createEmbeddedViewImpl(d||{},A,null);return this.insertImpl(z,x,false),z}createComponent(a,d,_,x,A){const Y=a&&!function zc(r){return"function"==typeof r}(a);let z;if(Y)z=d;else{const zn=d||{};z=zn.index,_=zn.injector,x=zn.projectableNodes,A=zn.environmentInjector||zn.ngModuleRef}const X=Y?a:new wp(Li(a)),De=_||this.parentInjector;if(!A&&null==X.ngModule){const ui=(Y?De:this.parentInjector).get(bu,null);ui&&(A=ui)}Li(X.componentType??{});const ln=X.create(De,x,null,A);return this.insertImpl(ln.hostView,z,false),ln}insert(a,d){return this.insertImpl(a,d,!1)}insertImpl(a,d,_){const x=a._lView;if(function Pc(r){return io(r[_r])}(x)){const X=this.indexOf(a);if(-1!==X)this.detach(X);else{const De=x[_r],Ke=new oy(De,De[no],De[_r]);Ke.detach(Ke.indexOf(a))}}const Y=this._adjustIndex(d),z=this._lContainer;return ZM(z,x,Y,!_),a.attachToViewContainerRef(),qd(Rv(z),Y,a),a}move(a,d){return this.insert(a,d)}indexOf(a){const d=sy(this._lContainer);return null!==d?d.indexOf(a):-1}remove(a){const d=this._adjustIndex(a,-1),_=Lu(this._lContainer,d);_&&(ml(Rv(this._lContainer),d),eh(_[qn],_))}detach(a){const d=this._adjustIndex(a,-1),_=Lu(this._lContainer,d);return _&&null!=ml(Rv(this._lContainer),d)?new yp(_):null}_adjustIndex(a,d=0){return a??this.length+d}};function sy(r){return r[8]}function Rv(r){return r[8]||(r[8]=[])}function ay(r,a){let d;const _=a[r.index];return io(_)?d=_:(d=n_(_,a,null,r),a[r.index]=d,i_(a,d)),ly(d,a,r,_),new oy(d,r,a)}let ly=function cy(r,a,d,_){if(r[fo])return;let x;x=8&d.type?yi(_):function tC(r,a){const d=r[Ti],_=d.createComment(""),x=_o(a,r);return Jc(d,Pu(d,x),_,function pf(r,a){return r.nextSibling(a)}(d,x),!1),_}(a,d),r[fo]=x};class kv{constructor(a){this.queryList=a,this.matches=null}clone(){return new kv(this.queryList)}setDirty(){this.queryList.setDirty()}}class Lv{constructor(a=[]){this.queries=a}createEmbeddedView(a){const d=a.queries;if(null!==d){const _=null!==a.contentQueries?a.contentQueries[0]:d.length,x=[];for(let A=0;A<_;A++){const Y=d.getByIndex(A);x.push(this.queries[Y.indexInDeclarationView].clone())}return new Lv(x)}return null}insertView(a){this.dirtyQueriesWithMatches(a)}detachView(a){this.dirtyQueriesWithMatches(a)}dirtyQueriesWithMatches(a){for(let d=0;d0)_.push(Y[z/2]);else{const De=A[z+1],Ke=a[-X];for(let Rt=Br;Rt{class r{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((d,_)=>{this.resolve=d,this.reject=_}),this.appInits=fe(Ny,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const d=[];for(const x of this.appInits){const A=x();if(ov(A))d.push(A);else if(l1(A)){const Y=new Promise((z,X)=>{A.subscribe({complete:z,error:X})});d.push(Y)}}const _=()=>{this.done=!0,this.resolve()};Promise.all(d).then(()=>{_()}).catch(x=>{this.reject(x)}),0===d.length&&_(),this.initialized=!0}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Fy=(()=>{class r{log(d){console.log(d)}warn(d){console.warn(d)}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})();const Hm=new Ut("LocaleId",{providedIn:"root",factory:()=>fe(Hm,Ce.Optional|Ce.SkipSelf)||function OC(){return typeof $localize<"u"&&$localize.locale||Dp}()}),IC=new Ut("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Yy=(()=>{class r{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new S.X(!1)}add(){this.hasPendingTasks.next(!0);const d=this.taskId++;return this.pendingTasks.add(d),d}remove(d){this.pendingTasks.delete(d),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();class kC{constructor(a,d){this.ngModuleFactory=a,this.componentFactories=d}}let LC=(()=>{class r{compileModuleSync(d){return new Ov(d)}compileModuleAsync(d){return Promise.resolve(this.compileModuleSync(d))}compileModuleAndAllComponentsSync(d){const _=this.compileModuleSync(d),A=pd(wr(d).declarations).reduce((Y,z)=>{const X=Li(z);return X&&Y.push(new wp(X)),Y},[]);return new kC(_,A)}compileModuleAndAllComponentsAsync(d){return Promise.resolve(this.compileModuleAndAllComponentsSync(d))}clearCache(){}clearCacheFor(d){}getModuleId(d){}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();const Vy=new Ut(""),jy=new Ut("");let Gv,nT=(()=>{class r{constructor(d,_,x){this._ngZone=d,this.registry=_,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Gv||(function iT(r){Gv=r}(x),x.addToWindow(_)),this._watchAngularEvents(),d.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{jl.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let d=this._callbacks.pop();clearTimeout(d.timeoutId),d.doneCb(this._didWork)}this._didWork=!1});else{let d=this.getPendingTasks();this._callbacks=this._callbacks.filter(_=>!_.updateCb||!_.updateCb(d)||(clearTimeout(_.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(d=>({source:d.source,creationLocation:d.creationLocation,data:d.data})):[]}addCallback(d,_,x){let A=-1;_&&_>0&&(A=setTimeout(()=>{this._callbacks=this._callbacks.filter(Y=>Y.timeoutId!==A),d(this._didWork,this.getPendingTasks())},_)),this._callbacks.push({doneCb:d,timeoutId:A,updateCb:x})}whenStable(d,_,x){if(x&&!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(d,_,x),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(d){this.registry.registerApplication(d,this)}unregisterApplication(d){this.registry.unregisterApplication(d)}findProviders(d,_,x){return[]}static#e=this.\u0275fac=function(_){return new(_||r)(wt(jl),wt(Zy),wt(jy))};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac})}return r})(),Zy=(()=>{class r{constructor(){this._applications=new Map}registerApplication(d,_){this._applications.set(d,_)}unregisterApplication(d){this._applications.delete(d)}unregisterAllApplications(){this._applications.clear()}getTestability(d){return this._applications.get(d)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(d,_=!0){return Gv?.findTestabilityInTree(this,d,_)??null}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})(),Kh=null;const zy=new Ut("AllowMultipleToken"),Wv=new Ut("PlatformDestroyListeners"),$v=new Ut("appBootstrapListener");class sT{constructor(a,d){this.name=a,this.token=d}}function $y(r,a,d=[]){const _=`Platform: ${a}`,x=new Ut(_);return(A=[])=>{let Y=Kv();if(!Y||Y.injector.get(zy,!1)){const z=[...d,...A,{provide:x,useValue:!0}];r?r(z):function aT(r){if(Kh&&!Kh.get(zy,!1))throw new je(400,!1);(function Gy(){!function bc(r){Ga=r}(()=>{throw new je(600,!1)})})(),Kh=r;const a=r.get(Jy);(function Wy(r){r.get(Df,null)?.forEach(d=>d())})(r)}(function Ky(r=[],a){return Vd.create({name:a,providers:[{provide:qf,useValue:"platform"},{provide:Wv,useValue:new Set([()=>Kh=null])},...r]})}(z,_))}return function cT(r){const a=Kv();if(!a)throw new je(401,!1);return a}()}}function Kv(){return Kh?.get(Jy)??null}let Jy=(()=>{class r{constructor(d){this._injector=d,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(d,_){const x=function dT(r="zone.js",a){return"noop"===r?new pg:"zone.js"===r?new jl(a):r}(_?.ngZone,function qy(r){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:r?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:r?.runCoalescing??!1}}({eventCoalescing:_?.ngZoneEventCoalescing,runCoalescing:_?.ngZoneRunCoalescing}));return x.run(()=>{const A=function CM(r,a,d){return new Av(r,a,d)}(d.moduleType,this.injector,function nw(r){return[{provide:jl,useFactory:r},{provide:Ea,multi:!0,useFactory:()=>{const a=fe(hT,{optional:!0});return()=>a.initialize()}},{provide:tw,useFactory:uT},{provide:V_,useFactory:j_}]}(()=>x)),Y=A.injector.get(uh,null);return x.runOutsideAngular(()=>{const z=x.onError.subscribe({next:X=>{Y.handleError(X)}});A.onDestroy(()=>{Vm(this._modules,A),z.unsubscribe()})}),function Qy(r,a,d){try{const _=d();return ov(_)?_.catch(x=>{throw a.runOutsideAngular(()=>r.handleError(x)),x}):_}catch(_){throw a.runOutsideAngular(()=>r.handleError(_)),_}}(Y,x,()=>{const z=A.injector.get(jv);return z.runInitializers(),z.donePromise.then(()=>(sb(A.injector.get(Hm,Dp)||Dp),this._moduleDoBootstrap(A),A))})})}bootstrapModule(d,_=[]){const x=Xy({},_);return function rT(r,a,d){const _=new Ov(d);return Promise.resolve(_)}(0,0,d).then(A=>this.bootstrapModuleFactory(A,x))}_moduleDoBootstrap(d){const _=d.injector.get(Ap);if(d._bootstrapComponents.length>0)d._bootstrapComponents.forEach(x=>_.bootstrap(x));else{if(!d.instance.ngDoBootstrap)throw new je(-403,!1);d.instance.ngDoBootstrap(_)}this._modules.push(d)}onDestroy(d){this._destroyListeners.push(d)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new je(404,!1);this._modules.slice().forEach(_=>_.destroy()),this._destroyListeners.forEach(_=>_());const d=this._injector.get(Wv,null);d&&(d.forEach(_=>_()),d.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(_){return new(_||r)(wt(Vd))};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"platform"})}return r})();function Xy(r,a){return Array.isArray(a)?a.reduce(Xy,r):{...r,...a}}let Ap=(()=>{class r{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=fe(tw),this.zoneIsStable=fe(V_),this.componentTypes=[],this.components=[],this.isStable=fe(Yy).hasPendingTasks.pipe((0,Z.w)(d=>d?(0,w.of)(!1):this.zoneIsStable),(0,ee.x)(),(0,n.B)()),this._injector=fe(bu)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(d,_){const x=d instanceof R_;if(!this._injector.get(jv).done)throw!x&&Ha(d),new je(405,!1);let Y;Y=x?d:this._injector.get(Af).resolveComponentFactory(d),this.componentTypes.push(Y.componentType);const z=function oT(r){return r.isBoundToModule}(Y)?void 0:this._injector.get(Uf),De=Y.create(Vd.NULL,[],_||Y.selector,z),Ke=De.location.nativeElement,Rt=De.injector.get(Vy,null);return Rt?.registerApplication(Ke),De.onDestroy(()=>{this.detachView(De.hostView),Vm(this.components,De),Rt?.unregisterApplication(Ke)}),this._loadComponent(De),De}tick(){if(this._runningTick)throw new je(101,!1);try{this._runningTick=!0;for(let d of this._views)d.detectChanges()}catch(d){this.internalErrorHandler(d)}finally{this._runningTick=!1}}attachView(d){const _=d;this._views.push(_),_.attachToAppRef(this)}detachView(d){const _=d;Vm(this._views,_),_.detachFromAppRef()}_loadComponent(d){this.attachView(d.hostView),this.tick(),this.components.push(d);const _=this._injector.get($v,[]);_.push(...this._bootstrapListeners),_.forEach(x=>x(d))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(d=>d()),this._views.slice().forEach(d=>d.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(d){return this._destroyListeners.push(d),()=>Vm(this._destroyListeners,d)}destroy(){if(this._destroyed)throw new je(406,!1);const d=this._injector;d.destroy&&!d.destroyed&&d.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Vm(r,a){const d=r.indexOf(a);d>-1&&r.splice(d,1)}const tw=new Ut("",{providedIn:"root",factory:()=>fe(uh).handleError.bind(void 0)});function uT(){const r=fe(jl),a=fe(uh);return d=>r.runOutsideAngular(()=>a.handleError(d))}let hT=(()=>{class r{constructor(){this.zone=fe(jl),this.applicationRef=fe(Ap)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(_){return new(_||r)};static#t=this.\u0275prov=Nt({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function pT(){return!1}let _T=(()=>{class r{static#e=this.__NG_ELEMENT_ID__=mT}return r})();function mT(r){return function gT(r,a,d){if(Ss(r)&&!d){const _=ko(r.index,a);return new yp(_,_)}return 47&r.type?new yp(a[wi],a):null}(en(),kn(),16==(16&r))}class sw{constructor(){}supports(a){return y(a)}create(a){return new MT(a)}}const xT=(r,a)=>a;class MT{constructor(a){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=a||xT}forEachItem(a){let d;for(d=this._itHead;null!==d;d=d._next)a(d)}forEachOperation(a){let d=this._itHead,_=this._removalsHead,x=0,A=null;for(;d||_;){const Y=!_||d&&d.currentIndex{Y=this._trackByFn(x,z),null!==d&&Object.is(d.trackById,Y)?(_&&(d=this._verifyReinsertion(d,z,Y,x)),Object.is(d.item,z)||this._addIdentityChange(d,z)):(d=this._mismatch(d,z,Y,x),_=!0),d=d._next,x++}),this.length=x;return this._truncate(d),this.collection=a,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let a;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;for(this._additionsHead=this._additionsTail=null,a=this._movesHead;null!==a;a=a._nextMoved)a.previousIndex=a.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(a,d,_,x){let A;return null===a?A=this._itTail:(A=a._prev,this._remove(a)),null!==(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null))?(Object.is(a.item,d)||this._addIdentityChange(a,d),this._reinsertAfter(a,A,x)):null!==(a=null===this._linkedRecords?null:this._linkedRecords.get(_,x))?(Object.is(a.item,d)||this._addIdentityChange(a,d),this._moveAfter(a,A,x)):a=this._addAfter(new CT(d,_),A,x),a}_verifyReinsertion(a,d,_,x){let A=null===this._unlinkedRecords?null:this._unlinkedRecords.get(_,null);return null!==A?a=this._reinsertAfter(A,a._prev,x):a.currentIndex!=x&&(a.currentIndex=x,this._addToMoves(a,x)),a}_truncate(a){for(;null!==a;){const d=a._next;this._addToRemovals(this._unlink(a)),a=d}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(a,d,_){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);const x=a._prevRemoved,A=a._nextRemoved;return null===x?this._removalsHead=A:x._nextRemoved=A,null===A?this._removalsTail=x:A._prevRemoved=x,this._insertAfter(a,d,_),this._addToMoves(a,_),a}_moveAfter(a,d,_){return this._unlink(a),this._insertAfter(a,d,_),this._addToMoves(a,_),a}_addAfter(a,d,_){return this._insertAfter(a,d,_),this._additionsTail=null===this._additionsTail?this._additionsHead=a:this._additionsTail._nextAdded=a,a}_insertAfter(a,d,_){const x=null===d?this._itHead:d._next;return a._next=x,a._prev=d,null===x?this._itTail=a:x._prev=a,null===d?this._itHead=a:d._next=a,null===this._linkedRecords&&(this._linkedRecords=new aw),this._linkedRecords.put(a),a.currentIndex=_,a}_remove(a){return this._addToRemovals(this._unlink(a))}_unlink(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);const d=a._prev,_=a._next;return null===d?this._itHead=_:d._next=_,null===_?this._itTail=d:_._prev=d,a}_addToMoves(a,d){return a.previousIndex===d||(this._movesTail=null===this._movesTail?this._movesHead=a:this._movesTail._nextMoved=a),a}_addToRemovals(a){return null===this._unlinkedRecords&&(this._unlinkedRecords=new aw),this._unlinkedRecords.put(a),a.currentIndex=null,a._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a),a}_addIdentityChange(a,d){return a.item=d,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=a:this._identityChangesTail._nextIdentityChange=a,a}}class CT{constructor(a,d){this.item=a,this.trackById=d,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 TT{constructor(){this._head=null,this._tail=null}add(a){null===this._head?(this._head=this._tail=a,a._nextDup=null,a._prevDup=null):(this._tail._nextDup=a,a._prevDup=this._tail,a._nextDup=null,this._tail=a)}get(a,d){let _;for(_=this._head;null!==_;_=_._nextDup)if((null===d||d<=_.currentIndex)&&Object.is(_.trackById,a))return _;return null}remove(a){const d=a._prevDup,_=a._nextDup;return null===d?this._head=_:d._nextDup=_,null===_?this._tail=d:_._prevDup=d,null===this._head}}class aw{constructor(){this.map=new Map}put(a){const d=a.trackById;let _=this.map.get(d);_||(_=new TT,this.map.set(d,_)),_.add(a)}get(a,d){const x=this.map.get(a);return x?x.get(a,d):null}remove(a){const d=a.trackById;return this.map.get(d).remove(a)&&this.map.delete(d),a}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function lw(r,a,d){const _=r.previousIndex;if(null===_)return _;let x=0;return d&&_{if(d&&d.key===x)this._maybeAddToChanges(d,_),this._appendAfter=d,d=d._next;else{const A=this._getOrCreateRecordForKey(x,_);d=this._insertBeforeOrAppend(d,A)}}),d){d._prev&&(d._prev._next=null),this._removalsHead=d;for(let _=d;null!==_;_=_._nextRemoved)_===this._mapHead&&(this._mapHead=null),this._records.delete(_.key),_._nextRemoved=_._next,_.previousValue=_.currentValue,_.currentValue=null,_._prev=null,_._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(a,d){if(a){const _=a._prev;return d._next=a,d._prev=_,a._prev=d,_&&(_._next=d),a===this._mapHead&&(this._mapHead=d),this._appendAfter=a,a}return this._appendAfter?(this._appendAfter._next=d,d._prev=this._appendAfter):this._mapHead=d,this._appendAfter=d,null}_getOrCreateRecordForKey(a,d){if(this._records.has(a)){const x=this._records.get(a);this._maybeAddToChanges(x,d);const A=x._prev,Y=x._next;return A&&(A._next=Y),Y&&(Y._prev=A),x._next=null,x._prev=null,x}const _=new ET(a);return this._records.set(a,_),_.currentValue=d,this._addToAdditions(_),_}_reset(){if(this.isDirty){let a;for(this._previousMapHead=this._mapHead,a=this._previousMapHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._changesHead;null!==a;a=a._nextChanged)a.previousValue=a.currentValue;for(a=this._additionsHead;null!=a;a=a._nextAdded)a.previousValue=a.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(a,d){Object.is(d,a.currentValue)||(a.previousValue=a.currentValue,a.currentValue=d,this._addToChanges(a))}_addToAdditions(a){null===this._additionsHead?this._additionsHead=this._additionsTail=a:(this._additionsTail._nextAdded=a,this._additionsTail=a)}_addToChanges(a){null===this._changesHead?this._changesHead=this._changesTail=a:(this._changesTail._nextChanged=a,this._changesTail=a)}_forEach(a,d){a instanceof Map?a.forEach(d):Object.keys(a).forEach(_=>d(a[_],_))}}class ET{constructor(a){this.key=a,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 dw(){return new e0([new sw])}let e0=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:dw});constructor(d){this.factories=d}static create(d,_){if(null!=_){const x=_.factories.slice();d=d.concat(x)}return new r(d)}static extend(d){return{provide:r,useFactory:_=>r.create(d,_||dw()),deps:[[r,new Na,new Wr]]}}find(d){const _=this.factories.find(x=>x.supports(d));if(null!=_)return _;throw new je(901,!1)}}return r})();function uw(){return new t0([new cw])}let t0=(()=>{class r{static#e=this.\u0275prov=Nt({token:r,providedIn:"root",factory:uw});constructor(d){this.factories=d}static create(d,_){if(_){const x=_.factories.slice();d=d.concat(x)}return new r(d)}static extend(d){return{provide:r,useFactory:_=>r.create(d,_||uw()),deps:[[r,new Na,new Wr]]}}find(d){const _=this.factories.find(x=>x.supports(d));if(_)return _;throw new je(901,!1)}}return r})();const OT=$y(null,"core",[]);let IT=(()=>{class r{constructor(d){}static#e=this.\u0275fac=function(_){return new(_||r)(wt(Ap))};static#t=this.\u0275mod=Vo({type:r});static#n=this.\u0275inj=nn({})}return r})();function VT(r){return"boolean"==typeof r?r:null!=r&&"false"!==r}function ZT(r,a){const d=Li(r),_=a.elementInjector||kp();return new wp(d).create(_,a.projectableNodes,a.hostElement,a.environmentInjector)}function zT(r){const a=Li(r);if(!a)return null;const d=new wp(a);return{get selector(){return d.selector},get type(){return d.componentType},get inputs(){return d.inputs},get outputs(){return d.outputs},get ngContentSelectors(){return d.ngContentSelectors},get isStandalone(){return a.standalone},get isSignal(){return a.signals}}}},6223:(ft,Ie,C)=>{"use strict";C.d(Ie,{CE:()=>Js,Cf:()=>Re,EJ:()=>jo,F:()=>$n,Fd:()=>Ko,Fj:()=>oe,JJ:()=>vn,JL:()=>ei,JU:()=>Z,Kr:()=>qs,NI:()=>uo,Oe:()=>io,On:()=>Jr,Q7:()=>jr,UX:()=>na,Wl:()=>re,YN:()=>no,_:()=>Ks,_Y:()=>ga,a5:()=>nn,cw:()=>We,kI:()=>Lt,nD:()=>fo,oH:()=>dr,qQ:()=>Xs,qu:()=>sr,sg:()=>wr,u:()=>qn,u5:()=>ta,wV:()=>oo,x0:()=>Vr});var e=C(5879),l=C(6814),D=C(9666),I=C(9315),S=C(7398);let w=(()=>{class Ae{constructor(le,Qe){this._renderer=le,this._elementRef=Qe,this.onChange=Ht=>{},this.onTouched=()=>{}}setProperty(le,Qe){this._renderer.setProperty(this._elementRef.nativeElement,le,Qe)}registerOnTouched(le){this.onTouched=le}registerOnChange(le){this.onChange=le}setDisabledState(le){this.setProperty("disabled",le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:Ae})}return Ae})(),n=(()=>{class Ae extends w{static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.qOj]})}return Ae})();const Z=new e.OlP("NgValueAccessor"),ee={provide:Z,useExisting:(0,e.Gpc)(()=>re),multi:!0};let re=(()=>{class Ae extends n{writeValue(le){this.setProperty("checked",le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(Ni){return Ht.onChange(Ni.target.checked)})("blur",function(){return Ht.onTouched()})},features:[e._Bn([ee]),e.qOj]})}return Ae})();const ue={provide:Z,useExisting:(0,e.Gpc)(()=>oe),multi:!0},te=new e.OlP("CompositionEventMode");let oe=(()=>{class Ae extends w{constructor(le,Qe,Ht){super(le,Qe),this._compositionMode=Ht,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function se(){const Ae=(0,l.q)()?(0,l.q)().getUserAgent():"";return/android (\d+)/.test(Ae.toLowerCase())}())}writeValue(le){this.setProperty("value",le??"")}_handleInput(le){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(le)}_compositionStart(){this._composing=!0}_compositionEnd(le){this._composing=!1,this._compositionMode&&this.onChange(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(te,8))};static#t=this.\u0275dir=e.lG2({type:Ae,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(Qe,Ht){1&Qe&&e.NdJ("input",function(Ni){return Ht._handleInput(Ni.target.value)})("blur",function(){return Ht.onTouched()})("compositionstart",function(){return Ht._compositionStart()})("compositionend",function(Ni){return Ht._compositionEnd(Ni.target.value)})},features:[e._Bn([ue]),e.qOj]})}return Ae})();function ce(Ae){return null==Ae||("string"==typeof Ae||Array.isArray(Ae))&&0===Ae.length}function _e(Ae){return null!=Ae&&"number"==typeof Ae.length}const Re=new e.OlP("NgValidators"),mt=new e.OlP("NgAsyncValidators"),Ge=/^(?=.{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 Lt{static min(Fe){return je(Fe)}static max(Fe){return Tt(Fe)}static required(Fe){return xt(Fe)}static requiredTrue(Fe){return function St(Ae){return!0===Ae.value?null:{required:!0}}(Fe)}static email(Fe){return function Zt(Ae){return ce(Ae.value)||Ge.test(Ae.value)?null:{email:!0}}(Fe)}static minLength(Fe){return function yt(Ae){return Fe=>ce(Fe.value)||!_e(Fe.value)?null:Fe.value.length{if(ce(Qe.value))return null;const Ht=Qe.value;return Fe.test(Ht)?null:{pattern:{requiredPattern:le,actualValue:Ht}}}}(Fe)}static nullValidator(Fe){return null}static compose(Fe){return dt(Fe)}static composeAsync(Fe){return Be(Fe)}}function je(Ae){return Fe=>{if(ce(Fe.value)||ce(Ae))return null;const le=parseFloat(Fe.value);return!isNaN(le)&&le{if(ce(Fe.value)||ce(Ae))return null;const le=parseFloat(Fe.value);return!isNaN(le)&&le>Ae?{max:{max:Ae,actual:Fe.value}}:null}}function xt(Ae){return ce(Ae.value)?{required:!0}:null}function un(Ae){return Fe=>_e(Fe.value)&&Fe.value.length>Ae?{maxlength:{requiredLength:Ae,actualLength:Fe.value.length}}:null}function tn(Ae){return null}function wn(Ae){return null!=Ae}function Ln(Ae){return(0,e.QGY)(Ae)?(0,D.D)(Ae):Ae}function Yn(Ae){let Fe={};return Ae.forEach(le=>{Fe=null!=le?{...Fe,...le}:Fe}),0===Object.keys(Fe).length?null:Fe}function ti(Ae,Fe){return Fe.map(le=>le(Ae))}function Rn(Ae){return Ae.map(Fe=>function gi(Ae){return!Ae.validate}(Fe)?Fe:le=>Fe.validate(le))}function dt(Ae){if(!Ae)return null;const Fe=Ae.filter(wn);return 0==Fe.length?null:function(le){return Yn(ti(le,Fe))}}function at(Ae){return null!=Ae?dt(Rn(Ae)):null}function Be(Ae){if(!Ae)return null;const Fe=Ae.filter(wn);return 0==Fe.length?null:function(le){const Qe=ti(le,Fe).map(Ln);return(0,I.D)(Qe).pipe((0,S.U)(Yn))}}function Ee(Ae){return null!=Ae?Be(Rn(Ae)):null}function $e(Ae,Fe){return null===Ae?[Fe]:Array.isArray(Ae)?[...Ae,Fe]:[Ae,Fe]}function me(Ae){return Ae._rawValidators}function tt(Ae){return Ae._rawAsyncValidators}function he(Ae){return Ae?Array.isArray(Ae)?Ae:[Ae]:[]}function Ze(Ae,Fe){return Array.isArray(Ae)?Ae.includes(Fe):Ae===Fe}function rt(Ae,Fe){const le=he(Fe);return he(Ae).forEach(Ht=>{Ze(le,Ht)||le.push(Ht)}),le}function bt(Ae,Fe){return he(Fe).filter(le=>!Ze(Ae,le))}class Nt{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(Fe){this._rawValidators=Fe||[],this._composedValidatorFn=at(this._rawValidators)}_setAsyncValidators(Fe){this._rawAsyncValidators=Fe||[],this._composedAsyncValidatorFn=Ee(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Fe){this._onDestroyCallbacks.push(Fe)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Fe=>Fe()),this._onDestroyCallbacks=[]}reset(Fe=void 0){this.control&&this.control.reset(Fe)}hasError(Fe,le){return!!this.control&&this.control.hasError(Fe,le)}getError(Fe,le){return this.control?this.control.getError(Fe,le):null}}class Qt extends Nt{get formDirective(){return null}get path(){return null}}class nn extends Nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dn{constructor(Fe){this._cd=Fe}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let vn=(()=>{class Ae extends Dn{constructor(le){super(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(nn,2))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Qe,Ht){2&Qe&&e.ekj("ng-untouched",Ht.isUntouched)("ng-touched",Ht.isTouched)("ng-pristine",Ht.isPristine)("ng-dirty",Ht.isDirty)("ng-valid",Ht.isValid)("ng-invalid",Ht.isInvalid)("ng-pending",Ht.isPending)},features:[e.qOj]})}return Ae})(),ei=(()=>{class Ae extends Dn{constructor(le){super(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Qe,Ht){2&Qe&&e.ekj("ng-untouched",Ht.isUntouched)("ng-touched",Ht.isTouched)("ng-pristine",Ht.isPristine)("ng-dirty",Ht.isDirty)("ng-valid",Ht.isValid)("ng-invalid",Ht.isInvalid)("ng-pending",Ht.isPending)("ng-submitted",Ht.isSubmitted)},features:[e.qOj]})}return Ae})();const jn="VALID",ai="INVALID",di="PENDING",oi="DISABLED";function Jn(Ae){return(U(Ae)?Ae.validators:Ae)||null}function _t(Ae,Fe){return(U(Fe)?Fe.asyncValidators:Ae)||null}function U(Ae){return null!=Ae&&!Array.isArray(Ae)&&"object"==typeof Ae}function ve(Ae,Fe,le){const Qe=Ae.controls;if(!(Fe?Object.keys(Qe):Qe).length)throw new e.vHH(1e3,"");if(!Qe[le])throw new e.vHH(1001,"")}function Pe(Ae,Fe,le){Ae._forEachChild((Qe,Ht)=>{if(void 0===le[Ht])throw new e.vHH(1002,"")})}class ut{constructor(Fe,le){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Fe),this._assignAsyncValidators(le)}get validator(){return this._composedValidatorFn}set validator(Fe){this._rawValidators=this._composedValidatorFn=Fe}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Fe){this._rawAsyncValidators=this._composedAsyncValidatorFn=Fe}get parent(){return this._parent}get valid(){return this.status===jn}get invalid(){return this.status===ai}get pending(){return this.status==di}get disabled(){return this.status===oi}get enabled(){return this.status!==oi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Fe){this._assignValidators(Fe)}setAsyncValidators(Fe){this._assignAsyncValidators(Fe)}addValidators(Fe){this.setValidators(rt(Fe,this._rawValidators))}addAsyncValidators(Fe){this.setAsyncValidators(rt(Fe,this._rawAsyncValidators))}removeValidators(Fe){this.setValidators(bt(Fe,this._rawValidators))}removeAsyncValidators(Fe){this.setAsyncValidators(bt(Fe,this._rawAsyncValidators))}hasValidator(Fe){return Ze(this._rawValidators,Fe)}hasAsyncValidator(Fe){return Ze(this._rawAsyncValidators,Fe)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Fe={}){this.touched=!0,this._parent&&!Fe.onlySelf&&this._parent.markAsTouched(Fe)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Fe=>Fe.markAllAsTouched())}markAsUntouched(Fe={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(le=>{le.markAsUntouched({onlySelf:!0})}),this._parent&&!Fe.onlySelf&&this._parent._updateTouched(Fe)}markAsDirty(Fe={}){this.pristine=!1,this._parent&&!Fe.onlySelf&&this._parent.markAsDirty(Fe)}markAsPristine(Fe={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(le=>{le.markAsPristine({onlySelf:!0})}),this._parent&&!Fe.onlySelf&&this._parent._updatePristine(Fe)}markAsPending(Fe={}){this.status=di,!1!==Fe.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Fe.onlySelf&&this._parent.markAsPending(Fe)}disable(Fe={}){const le=this._parentMarkedDirty(Fe.onlySelf);this.status=oi,this.errors=null,this._forEachChild(Qe=>{Qe.disable({...Fe,onlySelf:!0})}),this._updateValue(),!1!==Fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Fe,skipPristineCheck:le}),this._onDisabledChange.forEach(Qe=>Qe(!0))}enable(Fe={}){const le=this._parentMarkedDirty(Fe.onlySelf);this.status=jn,this._forEachChild(Qe=>{Qe.enable({...Fe,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Fe.emitEvent}),this._updateAncestors({...Fe,skipPristineCheck:le}),this._onDisabledChange.forEach(Qe=>Qe(!1))}_updateAncestors(Fe){this._parent&&!Fe.onlySelf&&(this._parent.updateValueAndValidity(Fe),Fe.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Fe){this._parent=Fe}getRawValue(){return this.value}updateValueAndValidity(Fe={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===jn||this.status===di)&&this._runAsyncValidator(Fe.emitEvent)),!1!==Fe.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Fe.onlySelf&&this._parent.updateValueAndValidity(Fe)}_updateTreeValidity(Fe={emitEvent:!0}){this._forEachChild(le=>le._updateTreeValidity(Fe)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Fe.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?oi:jn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Fe){if(this.asyncValidator){this.status=di,this._hasOwnPendingAsyncValidator=!0;const le=Ln(this.asyncValidator(this));this._asyncValidationSubscription=le.subscribe(Qe=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Qe,{emitEvent:Fe})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Fe,le={}){this.errors=Fe,this._updateControlsErrors(!1!==le.emitEvent)}get(Fe){let le=Fe;return null==le||(Array.isArray(le)||(le=le.split(".")),0===le.length)?null:le.reduce((Qe,Ht)=>Qe&&Qe._find(Ht),this)}getError(Fe,le){const Qe=le?this.get(le):this;return Qe&&Qe.errors?Qe.errors[Fe]:null}hasError(Fe,le){return!!this.getError(Fe,le)}get root(){let Fe=this;for(;Fe._parent;)Fe=Fe._parent;return Fe}_updateControlsErrors(Fe){this.status=this._calculateStatus(),Fe&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Fe)}_initObservables(){this.valueChanges=new e.vpe,this.statusChanges=new e.vpe}_calculateStatus(){return this._allControlsDisabled()?oi:this.errors?ai:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(di)?di:this._anyControlsHaveStatus(ai)?ai:jn}_anyControlsHaveStatus(Fe){return this._anyControls(le=>le.status===Fe)}_anyControlsDirty(){return this._anyControls(Fe=>Fe.dirty)}_anyControlsTouched(){return this._anyControls(Fe=>Fe.touched)}_updatePristine(Fe={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Fe.onlySelf&&this._parent._updatePristine(Fe)}_updateTouched(Fe={}){this.touched=this._anyControlsTouched(),this._parent&&!Fe.onlySelf&&this._parent._updateTouched(Fe)}_registerOnCollectionChange(Fe){this._onCollectionChange=Fe}_setUpdateStrategy(Fe){U(Fe)&&null!=Fe.updateOn&&(this._updateOn=Fe.updateOn)}_parentMarkedDirty(Fe){return!Fe&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Fe){return null}_assignValidators(Fe){this._rawValidators=Array.isArray(Fe)?Fe.slice():Fe,this._composedValidatorFn=function qt(Ae){return Array.isArray(Ae)?at(Ae):Ae||null}(this._rawValidators)}_assignAsyncValidators(Fe){this._rawAsyncValidators=Array.isArray(Fe)?Fe.slice():Fe,this._composedAsyncValidatorFn=function G(Ae){return Array.isArray(Ae)?Ee(Ae):Ae||null}(this._rawAsyncValidators)}}class We extends ut{constructor(Fe,le,Qe){super(Jn(le),_t(Qe,le)),this.controls=Fe,this._initObservables(),this._setUpdateStrategy(le),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Fe,le){return this.controls[Fe]?this.controls[Fe]:(this.controls[Fe]=le,le.setParent(this),le._registerOnCollectionChange(this._onCollectionChange),le)}addControl(Fe,le,Qe={}){this.registerControl(Fe,le),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}removeControl(Fe,le={}){this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),delete this.controls[Fe],this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}setControl(Fe,le,Qe={}){this.controls[Fe]&&this.controls[Fe]._registerOnCollectionChange(()=>{}),delete this.controls[Fe],le&&this.registerControl(Fe,le),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}contains(Fe){return this.controls.hasOwnProperty(Fe)&&this.controls[Fe].enabled}setValue(Fe,le={}){Pe(this,0,Fe),Object.keys(Fe).forEach(Qe=>{ve(this,!0,Qe),this.controls[Qe].setValue(Fe[Qe],{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le)}patchValue(Fe,le={}){null!=Fe&&(Object.keys(Fe).forEach(Qe=>{const Ht=this.controls[Qe];Ht&&Ht.patchValue(Fe[Qe],{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le))}reset(Fe={},le={}){this._forEachChild((Qe,Ht)=>{Qe.reset(Fe?Fe[Ht]:null,{onlySelf:!0,emitEvent:le.emitEvent})}),this._updatePristine(le),this._updateTouched(le),this.updateValueAndValidity(le)}getRawValue(){return this._reduceChildren({},(Fe,le,Qe)=>(Fe[Qe]=le.getRawValue(),Fe))}_syncPendingControls(){let Fe=this._reduceChildren(!1,(le,Qe)=>!!Qe._syncPendingControls()||le);return Fe&&this.updateValueAndValidity({onlySelf:!0}),Fe}_forEachChild(Fe){Object.keys(this.controls).forEach(le=>{const Qe=this.controls[le];Qe&&Fe(Qe,le)})}_setUpControls(){this._forEachChild(Fe=>{Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Fe){for(const[le,Qe]of Object.entries(this.controls))if(this.contains(le)&&Fe(Qe))return!0;return!1}_reduceValue(){return this._reduceChildren({},(le,Qe,Ht)=>((Qe.enabled||this.disabled)&&(le[Ht]=Qe.value),le))}_reduceChildren(Fe,le){let Qe=Fe;return this._forEachChild((Ht,Qn)=>{Qe=le(Qe,Ht,Qn)}),Qe}_allControlsDisabled(){for(const Fe of Object.keys(this.controls))if(this.controls[Fe].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Fe){return this.controls.hasOwnProperty(Fe)?this.controls[Fe]:null}}class Te extends We{}const Wt=new e.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Pn}),Pn="always";function wt(Ae,Fe){return[...Fe.path,Ae]}function Yt(Ae,Fe,le=Pn){ht(Ae,Fe),Fe.valueAccessor.writeValue(Ae.value),(Ae.disabled||"always"===le)&&Fe.valueAccessor.setDisabledState?.(Ae.disabled),function It(Ae,Fe){Fe.valueAccessor.registerOnChange(le=>{Ae._pendingValue=le,Ae._pendingChange=!0,Ae._pendingDirty=!0,"change"===Ae.updateOn&&_n(Ae,Fe)})}(Ae,Fe),function En(Ae,Fe){const le=(Qe,Ht)=>{Fe.valueAccessor.writeValue(Qe),Ht&&Fe.viewToModelUpdate(Qe)};Ae.registerOnChange(le),Fe._registerOnDestroy(()=>{Ae._unregisterOnChange(le)})}(Ae,Fe),function cn(Ae,Fe){Fe.valueAccessor.registerOnTouched(()=>{Ae._pendingTouched=!0,"blur"===Ae.updateOn&&Ae._pendingChange&&_n(Ae,Fe),"submit"!==Ae.updateOn&&Ae.markAsTouched()})}(Ae,Fe),function Vt(Ae,Fe){if(Fe.valueAccessor.setDisabledState){const le=Qe=>{Fe.valueAccessor.setDisabledState(Qe)};Ae.registerOnDisabledChange(le),Fe._registerOnDestroy(()=>{Ae._unregisterOnDisabledChange(le)})}}(Ae,Fe)}function fe(Ae,Fe,le=!0){const Qe=()=>{};Fe.valueAccessor&&(Fe.valueAccessor.registerOnChange(Qe),Fe.valueAccessor.registerOnTouched(Qe)),st(Ae,Fe),Ae&&(Fe._invokeOnDestroyCallbacks(),Ae._registerOnCollectionChange(()=>{}))}function Mt(Ae,Fe){Ae.forEach(le=>{le.registerOnValidatorChange&&le.registerOnValidatorChange(Fe)})}function ht(Ae,Fe){const le=me(Ae);null!==Fe.validator?Ae.setValidators($e(le,Fe.validator)):"function"==typeof le&&Ae.setValidators([le]);const Qe=tt(Ae);null!==Fe.asyncValidator?Ae.setAsyncValidators($e(Qe,Fe.asyncValidator)):"function"==typeof Qe&&Ae.setAsyncValidators([Qe]);const Ht=()=>Ae.updateValueAndValidity();Mt(Fe._rawValidators,Ht),Mt(Fe._rawAsyncValidators,Ht)}function st(Ae,Fe){let le=!1;if(null!==Ae){if(null!==Fe.validator){const Ht=me(Ae);if(Array.isArray(Ht)&&Ht.length>0){const Qn=Ht.filter(Ni=>Ni!==Fe.validator);Qn.length!==Ht.length&&(le=!0,Ae.setValidators(Qn))}}if(null!==Fe.asyncValidator){const Ht=tt(Ae);if(Array.isArray(Ht)&&Ht.length>0){const Qn=Ht.filter(Ni=>Ni!==Fe.asyncValidator);Qn.length!==Ht.length&&(le=!0,Ae.setAsyncValidators(Qn))}}}const Qe=()=>{};return Mt(Fe._rawValidators,Qe),Mt(Fe._rawAsyncValidators,Qe),le}function _n(Ae,Fe){Ae._pendingDirty&&Ae.markAsDirty(),Ae.setValue(Ae._pendingValue,{emitModelToViewChange:!1}),Fe.viewToModelUpdate(Ae._pendingValue),Ae._pendingChange=!1}function On(Ae,Fe){ht(Ae,Fe)}function Bi(Ae,Fe){if(!Ae.hasOwnProperty("model"))return!1;const le=Ae.model;return!!le.isFirstChange()||!Object.is(Fe,le.currentValue)}function Ji(Ae,Fe){Ae._syncPendingControls(),Fe.forEach(le=>{const Qe=le.control;"submit"===Qe.updateOn&&Qe._pendingChange&&(le.viewToModelUpdate(Qe._pendingValue),Qe._pendingChange=!1)})}function tr(Ae,Fe){if(!Fe)return null;let le,Qe,Ht;return Array.isArray(Fe),Fe.forEach(Qn=>{Qn.constructor===oe?le=Qn:function co(Ae){return Object.getPrototypeOf(Ae.constructor)===n}(Qn)?Qe=Qn:Ht=Qn}),Ht||Qe||le||null}const pr={provide:Qt,useExisting:(0,e.Gpc)(()=>$n)},br=(()=>Promise.resolve())();let $n=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.callSetDisabledState=Ht,this.submitted=!1,this._directives=new Set,this.ngSubmit=new e.vpe,this.form=new We({},at(le),Ee(Qe))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(le){br.then(()=>{const Qe=this._findContainer(le.path);le.control=Qe.registerControl(le.name,le.control),Yt(le.control,le,this.callSetDisabledState),le.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(le)})}getControl(le){return this.form.get(le.path)}removeControl(le){br.then(()=>{const Qe=this._findContainer(le.path);Qe&&Qe.removeControl(le.name),this._directives.delete(le)})}addFormGroup(le){br.then(()=>{const Qe=this._findContainer(le.path),Ht=new We({});On(Ht,le),Qe.registerControl(le.name,Ht),Ht.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(le){br.then(()=>{const Qe=this._findContainer(le.path);Qe&&Qe.removeControl(le.name)})}getFormGroup(le){return this.form.get(le.path)}updateModel(le,Qe){br.then(()=>{this.form.get(le.path).setValue(Qe)})}setValue(le){this.control.setValue(le)}onSubmit(le){return this.submitted=!0,Ji(this.form,this._directives),this.ngSubmit.emit(le),"dialog"===le?.target?.method}onReset(){this.resetForm()}resetForm(le=void 0){this.form.reset(le),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(le){return le.pop(),le.length?this.form.get(le):this.form}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("submit",function(Ni){return Ht.onSubmit(Ni)})("reset",function(){return Ht.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([pr]),e.qOj]})}return Ae})();function yo(Ae,Fe){const le=Ae.indexOf(Fe);le>-1&&Ae.splice(le,1)}function Fr(Ae){return"object"==typeof Ae&&null!==Ae&&2===Object.keys(Ae).length&&"value"in Ae&&"disabled"in Ae}const uo=class extends ut{constructor(Fe=null,le,Qe){super(Jn(le),_t(Qe,le)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Fe),this._setUpdateStrategy(le),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),U(le)&&(le.nonNullable||le.initialValueIsDefault)&&(this.defaultValue=Fr(Fe)?Fe.value:Fe)}setValue(Fe,le={}){this.value=this._pendingValue=Fe,this._onChange.length&&!1!==le.emitModelToViewChange&&this._onChange.forEach(Qe=>Qe(this.value,!1!==le.emitViewToModelChange)),this.updateValueAndValidity(le)}patchValue(Fe,le={}){this.setValue(Fe,le)}reset(Fe=this.defaultValue,le={}){this._applyFormState(Fe),this.markAsPristine(le),this.markAsUntouched(le),this.setValue(this.value,le),this._pendingChange=!1}_updateValue(){}_anyControls(Fe){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Fe){this._onChange.push(Fe)}_unregisterOnChange(Fe){yo(this._onChange,Fe)}registerOnDisabledChange(Fe){this._onDisabledChange.push(Fe)}_unregisterOnDisabledChange(Fe){yo(this._onDisabledChange,Fe)}_forEachChild(Fe){}_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(Fe){Fr(Fe)?(this.value=this._pendingValue=Fe.value,Fe.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Fe}};let yr=(()=>{class Ae extends Qt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.qOj]})}return Ae})();const $s={provide:nn,useExisting:(0,e.Gpc)(()=>Jr)},Uo=(()=>Promise.resolve())();let Jr=(()=>{class Ae extends nn{constructor(le,Qe,Ht,Qn,Ni,Zo){super(),this._changeDetectorRef=Ni,this.callSetDisabledState=Zo,this.control=new uo,this._registered=!1,this.name="",this.update=new e.vpe,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht),this.valueAccessor=tr(0,Qn)}ngOnChanges(le){if(this._checkForErrors(),!this._registered||"name"in le){if(this._registered&&(this._checkName(),this.formDirective)){const Qe=le.name.previousValue;this.formDirective.removeControl({name:Qe,path:this._getPath(Qe)})}this._setUpControl()}"isDisabled"in le&&this._updateDisabled(le),Bi(le,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}_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(){Yt(this.control,this,this.callSetDisabledState),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(le){Uo.then(()=>{this.control.setValue(le,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(le){const Qe=le.isDisabled.currentValue,Ht=0!==Qe&&(0,e.VuI)(Qe);Uo.then(()=>{Ht&&!this.control.disabled?this.control.disable():!Ht&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(le){return this._parent?wt(le,this._parent):[le]}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,9),e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(e.sBO,8),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e._Bn([$s]),e.qOj,e.TTD]})}return Ae})(),ga=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return Ae})();const kr={provide:Z,useExisting:(0,e.Gpc)(()=>oo),multi:!0};let oo=(()=>{class Ae extends n{writeValue(le){this.setProperty("value",le??"")}registerOnChange(le){this.onChange=Qe=>{le(""==Qe?null:parseFloat(Qe))}}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("input",function(Ni){return Ht.onChange(Ni.target.value)})("blur",function(){return Ht.onTouched()})},features:[e._Bn([kr]),e.qOj]})}return Ae})();const fs={provide:Z,useExisting:(0,e.Gpc)(()=>Ks),multi:!0};let Vo=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({})}return Ae})(),oc=(()=>{class Ae{constructor(){this._accessors=[]}add(le,Qe){this._accessors.push([le,Qe])}remove(le){for(let Qe=this._accessors.length-1;Qe>=0;--Qe)if(this._accessors[Qe][1]===le)return void this._accessors.splice(Qe,1)}select(le){this._accessors.forEach(Qe=>{this._isSameGroup(Qe,le)&&Qe[1]!==le&&Qe[1].fireUncheck(le.value)})}_isSameGroup(le,Qe){return!!le[0].control&&le[0]._parent===Qe._control._parent&&le[1].name===Qe.name}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:Vo})}return Ae})(),Ks=(()=>{class Ae extends n{constructor(le,Qe,Ht,Qn){super(le,Qe),this._registry=Ht,this._injector=Qn,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,e.f3M)(Wt,{optional:!0})??Pn}ngOnInit(){this._control=this._injector.get(nn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(le){this._state=le===this.value,this.setProperty("checked",this._state)}registerOnChange(le){this._fn=le,this.onChange=()=>{le(this.value),this._registry.select(this)}}setDisabledState(le){(this.setDisabledStateFired||le||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",le),this.setDisabledStateFired=!0}fireUncheck(le){this.writeValue(le)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(oc),e.Y36(e.zs3))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(){return Ht.onChange()})("blur",function(){return Ht.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e._Bn([fs]),e.qOj]})}return Ae})();const Li=new e.OlP("NgModelWithFormControlWarning"),Yr={provide:nn,useExisting:(0,e.Gpc)(()=>dr)};let dr=(()=>{class Ae extends nn{set isDisabled(le){}static#e=this._ngModelWarningSentOnce=!1;constructor(le,Qe,Ht,Qn,Ni){super(),this._ngModelWarningConfig=Qn,this.callSetDisabledState=Ni,this.update=new e.vpe,this._ngModelWarningSent=!1,this._setValidators(le),this._setAsyncValidators(Qe),this.valueAccessor=tr(0,Ht)}ngOnChanges(le){if(this._isControlChanged(le)){const Qe=le.form.previousValue;Qe&&fe(Qe,this,!1),Yt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Bi(le,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&fe(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}_isControlChanged(le){return le.hasOwnProperty("form")}static#t=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(Li,8),e.Y36(Wt,8))};static#n=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e._Bn([Yr]),e.qOj,e.TTD]})}return Ae})();const Ha={provide:Qt,useExisting:(0,e.Gpc)(()=>wr)};let wr=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.callSetDisabledState=Ht,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new e.vpe,this._setValidators(le),this._setAsyncValidators(Qe)}ngOnChanges(le){this._checkFormPresent(),le.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(st(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(le){const Qe=this.form.get(le.path);return Yt(Qe,le,this.callSetDisabledState),Qe.updateValueAndValidity({emitEvent:!1}),this.directives.push(le),Qe}getControl(le){return this.form.get(le.path)}removeControl(le){fe(le.control||null,le,!1),function _i(Ae,Fe){const le=Ae.indexOf(Fe);le>-1&&Ae.splice(le,1)}(this.directives,le)}addFormGroup(le){this._setUpFormContainer(le)}removeFormGroup(le){this._cleanUpFormContainer(le)}getFormGroup(le){return this.form.get(le.path)}addFormArray(le){this._setUpFormContainer(le)}removeFormArray(le){this._cleanUpFormContainer(le)}getFormArray(le){return this.form.get(le.path)}updateModel(le,Qe){this.form.get(le.path).setValue(Qe)}onSubmit(le){return this.submitted=!0,Ji(this.form,this.directives),this.ngSubmit.emit(le),"dialog"===le?.target?.method}onReset(){this.resetForm()}resetForm(le=void 0){this.form.reset(le),this.submitted=!1}_updateDomValue(){this.directives.forEach(le=>{const Qe=le.control,Ht=this.form.get(le.path);Qe!==Ht&&(fe(Qe||null,le),(Ae=>Ae instanceof uo)(Ht)&&(Yt(Ht,le,this.callSetDisabledState),le.control=Ht))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(le){const Qe=this.form.get(le.path);On(Qe,le),Qe.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(le){if(this.form){const Qe=this.form.get(le.path);Qe&&function ni(Ae,Fe){return st(Ae,Fe)}(Qe,le)&&Qe.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ht(this.form,this),this._oldForm&&st(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Re,10),e.Y36(mt,10),e.Y36(Wt,8))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroup",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("submit",function(Ni){return Ht.onSubmit(Ni)})("reset",function(){return Ht.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[e._Bn([Ha]),e.qOj,e.TTD]})}return Ae})();const al={provide:Qt,useExisting:(0,e.Gpc)(()=>Vr)};let Vr=(()=>{class Ae extends yr{constructor(le,Qe,Ht){super(),this.name=null,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht)}_checkParentType(){ll(this._parent)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[e._Bn([al]),e.qOj]})}return Ae})();const Es={provide:Qt,useExisting:(0,e.Gpc)(()=>Js)};let Js=(()=>{class Ae extends Qt{constructor(le,Qe,Ht){super(),this.name=null,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return wt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){ll(this._parent)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[e._Bn([Es]),e.qOj]})}return Ae})();function ll(Ae){return!(Ae instanceof Vr||Ae instanceof wr||Ae instanceof Js)}const er={provide:nn,useExisting:(0,e.Gpc)(()=>qn)};let qn=(()=>{class Ae extends nn{set isDisabled(le){}static#e=this._ngModelWarningSentOnce=!1;constructor(le,Qe,Ht,Qn,Ni){super(),this._ngModelWarningConfig=Ni,this._added=!1,this.name=null,this.update=new e.vpe,this._ngModelWarningSent=!1,this._parent=le,this._setValidators(Qe),this._setAsyncValidators(Ht),this.valueAccessor=tr(0,Qn)}ngOnChanges(le){this._added||this._setUpControl(),Bi(le,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(le){this.viewModel=le,this.update.emit(le)}get path(){return wt(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._added=!0}static#t=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(Qt,13),e.Y36(Re,10),e.Y36(mt,10),e.Y36(Z,10),e.Y36(Li,8))};static#n=this.\u0275dir=e.lG2({type:Ae,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[e._Bn([er]),e.qOj,e.TTD]})}return Ae})();const bi={provide:Z,useExisting:(0,e.Gpc)(()=>jo),multi:!0};function _r(Ae,Fe){return null==Ae?`${Fe}`:(Fe&&"object"==typeof Fe&&(Fe="Object"),`${Ae}: ${Fe}`.slice(0,50))}let jo=(()=>{class Ae extends n{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(le){this._compareWith=le}writeValue(le){this.value=le;const Ht=_r(this._getOptionId(le),le);this.setProperty("value",Ht)}registerOnChange(le){this.onChange=Qe=>{this.value=this._getOptionValue(Qe),le(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(le){for(const Qe of this._optionMap.keys())if(this._compareWith(this._optionMap.get(Qe),le))return Qe;return null}_getOptionValue(le){const Qe=function wo(Ae){return Ae.split(":")[0]}(le);return this._optionMap.has(Qe)?this._optionMap.get(Qe):le}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(Qe,Ht){1&Qe&&e.NdJ("change",function(Ni){return Ht.onChange(Ni.target.value)})("blur",function(){return Ht.onTouched()})},inputs:{compareWith:"compareWith"},features:[e._Bn([bi]),e.qOj]})}return Ae})(),no=(()=>{class Ae{constructor(le,Qe,Ht){this._element=le,this._renderer=Qe,this._select=Ht,this._select&&(this.id=this._select._registerOption())}set ngValue(le){null!=this._select&&(this._select._optionMap.set(this.id,le),this._setElementValue(_r(this.id,le)),this._select.writeValue(this._select.value))}set value(le){this._setElementValue(le),this._select&&this._select.writeValue(this._select.value)}_setElementValue(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(jo,9))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Ae})();const Ao={provide:Z,useExisting:(0,e.Gpc)(()=>Ti),multi:!0};function nr(Ae,Fe){return null==Ae?`${Fe}`:("string"==typeof Fe&&(Fe=`'${Fe}'`),Fe&&"object"==typeof Fe&&(Fe="Object"),`${Ae}: ${Fe}`.slice(0,50))}let Ti=(()=>{class Ae extends n{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(le){this._compareWith=le}writeValue(le){let Qe;if(this.value=le,Array.isArray(le)){const Ht=le.map(Qn=>this._getOptionId(Qn));Qe=(Qn,Ni)=>{Qn._setSelected(Ht.indexOf(Ni.toString())>-1)}}else Qe=(Ht,Qn)=>{Ht._setSelected(!1)};this._optionMap.forEach(Qe)}registerOnChange(le){this.onChange=Qe=>{const Ht=[],Qn=Qe.selectedOptions;if(void 0!==Qn){const Ni=Qn;for(let Zo=0;Zo{class Ae{constructor(le,Qe,Ht){this._element=le,this._renderer=Qe,this._select=Ht,this._select&&(this.id=this._select._registerOption(this))}set ngValue(le){null!=this._select&&(this._value=le,this._setElementValue(nr(this.id,le)),this._select.writeValue(this._select.value))}set value(le){this._select?(this._value=le,this._setElementValue(nr(this.id,le)),this._select.writeValue(this._select.value)):this._setElementValue(le)}_setElementValue(le){this._renderer.setProperty(this._element.nativeElement,"value",le)}_setSelected(le){this._renderer.setProperty(this._element.nativeElement,"selected",le)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)(e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ti,9))};static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}return Ae})();function Qs(Ae){return"number"==typeof Ae?Ae:parseFloat(Ae)}let wi=(()=>{class Ae{constructor(){this._validator=tn}ngOnChanges(le){if(this.inputName in le){const Qe=this.normalizeInput(le[this.inputName].currentValue);this._enabled=this.enabled(Qe),this._validator=this._enabled?this.createValidator(Qe):tn,this._onChange&&this._onChange()}}validate(le){return this._validator(le)}registerOnValidatorChange(le){this._onChange=le}enabled(le){return null!=le}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275dir=e.lG2({type:Ae,features:[e.TTD]})}return Ae})();const Oo={provide:Re,useExisting:(0,e.Gpc)(()=>Ko),multi:!0};let Ko=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=le=>Qs(le),this.createValidator=le=>Tt(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("max",Ht._enabled?Ht.max:null)},inputs:{max:"max"},features:[e._Bn([Oo]),e.qOj]})}return Ae})();const or={provide:Re,useExisting:(0,e.Gpc)(()=>Xs),multi:!0};let Xs=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=le=>Qs(le),this.createValidator=le=>je(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("min",Ht._enabled?Ht.min:null)},inputs:{min:"min"},features:[e._Bn([or]),e.qOj]})}return Ae})();const Ml={provide:Re,useExisting:(0,e.Gpc)(()=>jr),multi:!0};let jr=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=e.VuI,this.createValidator=le=>xt}enabled(le){return le}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("required",Ht._enabled?"":null)},inputs:{required:"required"},features:[e._Bn([Ml]),e.qOj]})}return Ae})();const Ys={provide:Re,useExisting:(0,e.Gpc)(()=>fo),multi:!0};let fo=(()=>{class Ae extends wi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=le=>function ba(Ae){return"number"==typeof Ae?Ae:parseInt(Ae,10)}(le),this.createValidator=le=>un(le)}static#e=this.\u0275fac=function(){let le;return function(Ht){return(le||(le=e.n5z(Ae)))(Ht||Ae)}}();static#t=this.\u0275dir=e.lG2({type:Ae,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Qe,Ht){2&Qe&&e.uIk("maxlength",Ht._enabled?Ht.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e._Bn([Ys]),e.qOj]})}return Ae})(),po=(()=>{class Ae{static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[Vo]})}return Ae})();class io extends ut{constructor(Fe,le,Qe){super(Jn(le),_t(Qe,le)),this.controls=Fe,this._initObservables(),this._setUpdateStrategy(le),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Fe){return this.controls[this._adjustIndex(Fe)]}push(Fe,le={}){this.controls.push(Fe),this._registerControl(Fe),this.updateValueAndValidity({emitEvent:le.emitEvent}),this._onCollectionChange()}insert(Fe,le,Qe={}){this.controls.splice(Fe,0,le),this._registerControl(le),this.updateValueAndValidity({emitEvent:Qe.emitEvent})}removeAt(Fe,le={}){let Qe=this._adjustIndex(Fe);Qe<0&&(Qe=0),this.controls[Qe]&&this.controls[Qe]._registerOnCollectionChange(()=>{}),this.controls.splice(Qe,1),this.updateValueAndValidity({emitEvent:le.emitEvent})}setControl(Fe,le,Qe={}){let Ht=this._adjustIndex(Fe);Ht<0&&(Ht=0),this.controls[Ht]&&this.controls[Ht]._registerOnCollectionChange(()=>{}),this.controls.splice(Ht,1),le&&(this.controls.splice(Ht,0,le),this._registerControl(le)),this.updateValueAndValidity({emitEvent:Qe.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Fe,le={}){Pe(this,0,Fe),Fe.forEach((Qe,Ht)=>{ve(this,!1,Ht),this.at(Ht).setValue(Qe,{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le)}patchValue(Fe,le={}){null!=Fe&&(Fe.forEach((Qe,Ht)=>{this.at(Ht)&&this.at(Ht).patchValue(Qe,{onlySelf:!0,emitEvent:le.emitEvent})}),this.updateValueAndValidity(le))}reset(Fe=[],le={}){this._forEachChild((Qe,Ht)=>{Qe.reset(Fe[Ht],{onlySelf:!0,emitEvent:le.emitEvent})}),this._updatePristine(le),this._updateTouched(le),this.updateValueAndValidity(le)}getRawValue(){return this.controls.map(Fe=>Fe.getRawValue())}clear(Fe={}){this.controls.length<1||(this._forEachChild(le=>le._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Fe.emitEvent}))}_adjustIndex(Fe){return Fe<0?Fe+this.length:Fe}_syncPendingControls(){let Fe=this.controls.reduce((le,Qe)=>!!Qe._syncPendingControls()||le,!1);return Fe&&this.updateValueAndValidity({onlySelf:!0}),Fe}_forEachChild(Fe){this.controls.forEach((le,Qe)=>{Fe(le,Qe)})}_updateValue(){this.value=this.controls.filter(Fe=>Fe.enabled||this.disabled).map(Fe=>Fe.value)}_anyControls(Fe){return this.controls.some(le=>le.enabled&&Fe(le))}_setUpControls(){this._forEachChild(Fe=>this._registerControl(Fe))}_allControlsDisabled(){for(const Fe of this.controls)if(Fe.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Fe){Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange)}_find(Fe){return this.at(Fe)??null}}function ya(Ae){return!!Ae&&(void 0!==Ae.asyncValidators||void 0!==Ae.validators||void 0!==Ae.updateOn)}let sr=(()=>{class Ae{constructor(){this.useNonNullable=!1}get nonNullable(){const le=new Ae;return le.useNonNullable=!0,le}group(le,Qe=null){const Ht=this._reduceControls(le);let Qn={};return ya(Qe)?Qn=Qe:null!==Qe&&(Qn.validators=Qe.validator,Qn.asyncValidators=Qe.asyncValidator),new We(Ht,Qn)}record(le,Qe=null){const Ht=this._reduceControls(le);return new Te(Ht,Qe)}control(le,Qe,Ht){let Qn={};return this.useNonNullable?(ya(Qe)?Qn=Qe:(Qn.validators=Qe,Qn.asyncValidators=Ht),new uo(le,{...Qn,nonNullable:!0})):new uo(le,Qe,Ht)}array(le,Qe,Ht){const Qn=le.map(Ni=>this._createControl(Ni));return new io(Qn,Qe,Ht)}_reduceControls(le){const Qe={};return Object.keys(le).forEach(Ht=>{Qe[Ht]=this._createControl(le[Ht])}),Qe}_createControl(le){return le instanceof uo||le instanceof ut?le:Array.isArray(le)?this.control(le[0],le.length>1?le[1]:null,le.length>2?le[2]:null):this.control(le)}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})(),ta=(()=>{class Ae{static withConfig(le){return{ngModule:Ae,providers:[{provide:Wt,useValue:le.callSetDisabledState??Pn}]}}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[po]})}return Ae})(),na=(()=>{class Ae{static withConfig(le){return{ngModule:Ae,providers:[{provide:Li,useValue:le.warnOnNgModelWithFormControl??"always"},{provide:Wt,useValue:le.callSetDisabledState??Pn}]}}static#e=this.\u0275fac=function(Qe){return new(Qe||Ae)};static#t=this.\u0275mod=e.oAB({type:Ae});static#n=this.\u0275inj=e.cJS({imports:[po]})}return Ae})()},2296:(ft,Ie,C)=>{"use strict";C.d(Ie,{RK:()=>Rn,lW:()=>Zt,ot:()=>at});var e=C(2831),l=C(5879),D=C(4300),I=C(2605),S=C(3680);const w=["mat-button",""],n=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],Z=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],oe=["mat-icon-button",""],ce=["*"],Ge=[{selector:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{selector:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{selector:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{selector:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{selector:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{selector:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{selector:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Lt=(0,S.pj)((0,S.Id)((0,S.Kr)(class{constructor(Be){this._elementRef=Be}})));let je=(()=>{class Be extends Lt{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple($e){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,$e)}get disableRipple(){return this._disableRipple}set disableRipple($e){this._disableRipple=(0,I.Ig)($e),this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled($e){this._disabled=(0,I.Ig)($e),this._updateRippleDisabled()}constructor($e,me,tt,he){super($e),this._platform=me,this._ngZone=tt,this._animationMode=he,this._focusMonitor=(0,l.f3M)(D.tE),this._rippleLoader=(0,l.f3M)(S.Fq),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const Ze=$e.nativeElement.classList;for(const rt of Ge)this._hasHostAttributes(rt.selector)&&rt.mdcClasses.forEach(bt=>{Ze.add(bt)})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus($e="program",me){$e?this._focusMonitor.focusVia(this._elementRef.nativeElement,$e,me):this._elementRef.nativeElement.focus(me)}_hasHostAttributes(...$e){return $e.some(me=>this._elementRef.nativeElement.hasAttribute(me))}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(me){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Be,features:[l.qOj]})}return Be})(),Zt=(()=>{class Be extends je{constructor($e,me,tt,he){super($e,me,tt,he)}static#e=this.\u0275fac=function(me){return new(me||Be)(l.Y36(l.SBq),l.Y36(e.t4),l.Y36(l.R0b),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Be,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:7,hostBindings:function(me,tt){2&me&&(l.uIk("disabled",tt.disabled||null),l.ekj("_mat-animation-noopable","NoopAnimations"===tt._animationMode)("mat-unthemed",!tt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[l.qOj],attrs:w,ngContentSelectors:Z,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(me,tt){1&me&&(l.F$t(n),l._UZ(0,"span",0),l.Hsn(1),l.TgZ(2,"span",1),l.Hsn(3,1),l.qZA(),l.Hsn(4,2),l._UZ(5,"span",2)(6,"span",3)),2&me&&l.ekj("mdc-button__ripple",!tt._isFab)("mdc-fab__ripple",tt._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(\n 100% + 4px\n );width:calc(\n 100% + 4px\n );display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{height:var(--mdc-text-button-container-height, 36px);border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, inherit)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button{height:var(--mdc-filled-button-container-height, 36px);border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color, transparent)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, inherit)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button{height:var(--mdc-protected-button-container-height, 36px);border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px));box-shadow:var(--mdc-protected-button-container-elevation, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color, transparent)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color, rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, inherit)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-raised-button.mdc-ripple-upgraded--background-focused,.mat-mdc-raised-button:not(.mdc-ripple-upgraded):focus{box-shadow:var(--mdc-protected-button-focus-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation, 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:not(:disabled):active{box-shadow:var(--mdc-protected-button-pressed-container-elevation, 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12))}.mat-mdc-raised-button:disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button{height:var(--mdc-outlined-button-container-height, 36px);border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px));padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, inherit)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color, rgba(0, 0, 0, 0.38))}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape, var(--mdc-shape-small, 4px))}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color, rgba(0, 0, 0, 0.12))}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width, 1px)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width, 1px));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width, 1px))}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-button .mat-ripple-element,.mat-mdc-unelevated-button .mat-ripple-element,.mat-mdc-raised-button .mat-ripple-element,.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button[disabled],.mat-mdc-unelevated-button[disabled],.mat-mdc-raised-button[disabled],.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px) * -1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Be})(),Rn=(()=>{class Be extends je{constructor($e,me,tt,he){super($e,me,tt,he),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(me){return new(me||Be)(l.Y36(l.SBq),l.Y36(e.t4),l.Y36(l.R0b),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Be,selectors:[["button","mat-icon-button",""]],hostVars:7,hostBindings:function(me,tt){2&me&&(l.uIk("disabled",tt.disabled||null),l.ekj("_mat-animation-noopable","NoopAnimations"===tt._animationMode)("mat-unthemed",!tt.color)("mat-mdc-button-base",!0))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[l.qOj],attrs:oe,ngContentSelectors:ce,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(me,tt){1&me&&(l.F$t(),l._UZ(0,"span",0),l.Hsn(1),l._UZ(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px;--mdc-icon-button-disabled-icon-color:black;--mdc-icon-button-disabled-icon-opacity:0.38}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{opacity:var(--mdc-icon-button-disabled-icon-opacity)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;font-size:var(--mdc-icon-button-icon-size);border-radius:50%;flex-shrink:0;text-align:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;opacity:1}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0;background-color:var(--mat-mdc-button-persistent-ripple-color)}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-mdc-button-ripple-color)}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Be})(),at=(()=>{class Be{static#e=this.\u0275fac=function(me){return new(me||Be)};static#t=this.\u0275mod=l.oAB({type:Be});static#n=this.\u0275inj=l.cJS({imports:[S.BQ,S.si,S.BQ]})}return Be})()},5195:(ft,Ie,C)=>{"use strict";C.d(Ie,{$j:()=>oe,C1:()=>se,QW:()=>Zt,a8:()=>re,dn:()=>te,hq:()=>ce,n5:()=>ue,vP:()=>Ge});var e=C(5879),l=C(6814),D=C(3680);const I=["*"],S=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],w=["mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","[mat-card-image], [matCardImage],\n [mat-card-sm-image], [matCardImageSmall],\n [mat-card-md-image], [matCardImageMedium],\n [mat-card-lg-image], [matCardImageLarge],\n [mat-card-xl-image], [matCardImageXLarge]","*"],ee=new e.OlP("MAT_CARD_CONFIG");let re=(()=>{class yt{constructor(Jt){this.appearance=Jt?.appearance||"raised"}static#e=this.\u0275fac=function(tn){return new(tn||yt)(e.Y36(ee,8))};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(tn,wn){2&tn&&e.ekj("mat-mdc-card-outlined","outlined"===wn.appearance)("mdc-card--outlined","outlined"===wn.appearance)},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:I,decls:1,vars:0,template:function(tn,wn){1&tn&&(e.F$t(),e.Hsn(0))},styles:['.mdc-card{display:flex;flex-direction:column;box-sizing:border-box}.mdc-card::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none;pointer-events:none}@media screen and (forced-colors: active){.mdc-card::after{border-color:CanvasText}}.mdc-card--outlined::after{border:none}.mdc-card__content{border-radius:inherit;height:100%}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__media--square::before{margin-top:100%}.mdc-card__media--16-9::before{margin-top:56.25%}.mdc-card__media-content{position:absolute;top:0;right:0;bottom:0;left:0;box-sizing:border-box}.mdc-card__primary-action{display:flex;flex-direction:column;box-sizing:border-box;position:relative;outline:none;color:inherit;text-decoration:none;cursor:pointer;overflow:hidden}.mdc-card__primary-action:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__primary-action:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mdc-card__actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mdc-card__actions--full-bleed{padding:0}.mdc-card__action-buttons,.mdc-card__action-icons{display:flex;flex-direction:row;align-items:center;box-sizing:border-box}.mdc-card__action-icons{color:rgba(0, 0, 0, 0.6);flex-grow:1;justify-content:flex-end}.mdc-card__action-buttons+.mdc-card__action-icons{margin-left:16px;margin-right:0}[dir=rtl] .mdc-card__action-buttons+.mdc-card__action-icons,.mdc-card__action-buttons+.mdc-card__action-icons[dir=rtl]{margin-left:0;margin-right:16px}.mdc-card__action{display:inline-flex;flex-direction:row;align-items:center;box-sizing:border-box;justify-content:center;cursor:pointer;user-select:none}.mdc-card__action:focus{outline:none}.mdc-card__action--button{margin-left:0;margin-right:8px;padding:0 8px}[dir=rtl] .mdc-card__action--button,.mdc-card__action--button[dir=rtl]{margin-left:8px;margin-right:0}.mdc-card__action--button:last-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-card__action--button:last-child,.mdc-card__action--button:last-child[dir=rtl]{margin-left:0;margin-right:0}.mdc-card__actions--full-bleed .mdc-card__action--button{justify-content:space-between;width:100%;height:auto;max-height:none;margin:0;padding:8px 16px;text-align:left}[dir=rtl] .mdc-card__actions--full-bleed .mdc-card__action--button,.mdc-card__actions--full-bleed .mdc-card__action--button[dir=rtl]{text-align:right}.mdc-card__action--icon{margin:-6px 0;padding:12px}.mdc-card__action--icon:not(:disabled){color:rgba(0, 0, 0, 0.6)}.mat-mdc-card{border-radius:var(--mdc-elevated-card-container-shape);background-color:var(--mdc-elevated-card-container-color);border-width:0;border-style:solid;border-color:var(--mdc-elevated-card-container-color);box-shadow:var(--mdc-elevated-card-container-elevation);--mdc-elevated-card-container-shape:4px;--mdc-outlined-card-container-shape:4px;--mdc-outlined-card-outline-width:1px}.mat-mdc-card .mdc-card::after{border-radius:var(--mdc-elevated-card-container-shape)}.mat-mdc-card-outlined{border-width:var(--mdc-outlined-card-outline-width);border-style:solid;border-color:var(--mdc-outlined-card-outline-color);border-radius:var(--mdc-outlined-card-container-shape);background-color:var(--mdc-outlined-card-container-color);box-shadow:var(--mdc-outlined-card-container-elevation)}.mat-mdc-card-outlined .mdc-card::after{border-radius:var(--mdc-outlined-card-container-shape)}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font);line-height:var(--mat-card-title-text-line-height);font-size:var(--mat-card-title-text-size);letter-spacing:var(--mat-card-title-text-tracking);font-weight:var(--mat-card-title-text-weight)}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color);font-family:var(--mat-card-subtitle-text-font);line-height:var(--mat-card-subtitle-text-line-height);font-size:var(--mat-card-subtitle-text-size);letter-spacing:var(--mat-card-subtitle-text-tracking);font-weight:var(--mat-card-subtitle-text-weight)}.mat-mdc-card{position:relative}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end}'],encapsulation:2,changeDetection:0})}return yt})(),ue=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return yt})(),se=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275cmp=e.Xpm({type:yt,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-mdc-card-title-group"],ngContentSelectors:w,decls:4,vars:0,template:function(tn,wn){1&tn&&(e.F$t(S),e.TgZ(0,"div"),e.Hsn(1),e.qZA(),e.Hsn(2,1),e.Hsn(3,2))},encapsulation:2,changeDetection:0})}return yt})(),te=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return yt})(),oe=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return yt})(),ce=(()=>{class yt{constructor(){this.align="start"}static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(tn,wn){2&tn&&e.ekj("mat-mdc-card-actions-align-end","end"===wn.align)},inputs:{align:"align"},exportAs:["matCardActions"]})}return yt})(),Ge=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275dir=e.lG2({type:yt,selectors:[["","mat-card-sm-image",""],["","matCardImageSmall",""]],hostAttrs:[1,"mat-mdc-card-sm-image","mdc-card__media"]})}return yt})(),Zt=(()=>{class yt{static#e=this.\u0275fac=function(tn){return new(tn||yt)};static#t=this.\u0275mod=e.oAB({type:yt});static#n=this.\u0275inj=e.cJS({imports:[D.BQ,l.ez,D.BQ]})}return yt})()},3680:(ft,Ie,C)=>{"use strict";C.d(Ie,{rD:()=>rt,K7:()=>fn,HF:()=>Ft,Y2:()=>J,BQ:()=>St,uc:()=>nn,ey:()=>di,Ng:()=>qt,rN:()=>jn,wG:()=>ae,Fq:()=>We,si:()=>Oe,CB:()=>oi,jH:()=>Jn,pj:()=>tn,Kr:()=>wn,Id:()=>Jt,FD:()=>Yn,dB:()=>ti,sb:()=>Ln});var e=C(5879),l=C(4300),D=C(9388),S=C(6814),w=C(2831),n=C(2605),Z=C(5592),ee=C(8645),re=C(6028);const te=["text"];function oe(ze,be){if(1&ze&&e._UZ(0,"mat-pseudo-checkbox",6),2&ze){const Te=e.oxw();e.Q6J("disabled",Te.disabled)("state",Te.selected?"checked":"unchecked")}}function ce(ze,be){if(1&ze&&e._UZ(0,"mat-pseudo-checkbox",7),2&ze){const Te=e.oxw();e.Q6J("disabled",Te.disabled)}}function _e(ze,be){if(1&ze&&(e.TgZ(0,"span",8),e._uU(1),e.qZA()),2&ze){const Te=e.oxw();e.xp6(1),e.hij("(",Te.group.label,")")}}const Re=[[["mat-icon"]],"*"],mt=["mat-icon","*"],xt=new e.OlP("mat-sanity-checks",{providedIn:"root",factory:function Tt(){return!0}});let St=(()=>{class ze{constructor(Te,He,Wt){this._sanityChecks=He,this._document=Wt,this._hasDoneGlobalChecks=!1,Te._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(Te){return!(0,w.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[Te])}static#e=this.\u0275fac=function(He){return new(He||ze)(e.LFG(l.qm),e.LFG(xt,8),e.LFG(S.K0))};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[D.vT,D.vT]})}return ze})();function Jt(ze){return class extends ze{get disabled(){return this._disabled}set disabled(be){this._disabled=(0,n.Ig)(be)}constructor(...be){super(...be),this._disabled=!1}}}function tn(ze,be){return class extends ze{get color(){return this._color}set color(Te){const He=Te||this.defaultColor;He!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),He&&this._elementRef.nativeElement.classList.add(`mat-${He}`),this._color=He)}constructor(...Te){super(...Te),this.defaultColor=be,this.color=be}}}function wn(ze){return class extends ze{get disableRipple(){return this._disableRipple}set disableRipple(be){this._disableRipple=(0,n.Ig)(be)}constructor(...be){super(...be),this._disableRipple=!1}}}function Ln(ze,be=0){return class extends ze{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(Te){this._tabIndex=null!=Te?(0,n.su)(Te):this.defaultTabIndex}constructor(...Te){super(...Te),this._tabIndex=be,this.defaultTabIndex=be}}}function Yn(ze){return class extends ze{updateErrorState(){const be=this.errorState,Pn=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Pn!==be&&(this.errorState=Pn,this.stateChanges.next())}constructor(...be){super(...be),this.errorState=!1}}}function ti(ze){return class extends ze{constructor(...be){super(...be),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new Z.y(Te=>{this._isInitialized?this._notifySubscriber(Te):this._pendingSubscribers.push(Te)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(be){be.next(),be.complete()}}}let rt=(()=>{class ze{isErrorState(Te,He){return!!(Te&&Te.invalid&&(Te.touched||He&&He.submitted))}static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})(),nn=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St,St]})}return ze})();class Dn{constructor(be,Te,He,Wt=!1){this._renderer=be,this.element=Te,this.config=He,this._animationForciblyDisabledThroughCss=Wt,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ot=(0,w.i$)({passive:!0,capture:!0});class rn{constructor(){this._events=new Map,this._delegateEventHandler=be=>{const Te=(0,w.sA)(be);Te&&this._events.get(be.type)?.forEach((He,Wt)=>{(Wt===Te||Wt.contains(Te))&&He.forEach(Pn=>Pn.handleEvent(be))})}}addHandler(be,Te,He,Wt){const Pn=this._events.get(Te);if(Pn){const wt=Pn.get(He);wt?wt.add(Wt):Pn.set(He,new Set([Wt]))}else this._events.set(Te,new Map([[He,new Set([Wt])]])),be.runOutsideAngular(()=>{document.addEventListener(Te,this._delegateEventHandler,Ot)})}removeHandler(be,Te,He){const Wt=this._events.get(be);if(!Wt)return;const Pn=Wt.get(Te);Pn&&(Pn.delete(He),0===Pn.size&&Wt.delete(Te),0===Wt.size&&(this._events.delete(be),document.removeEventListener(be,this._delegateEventHandler,Ot)))}}const vn={enterDuration:225,exitDuration:150},Wn=(0,w.i$)({passive:!0,capture:!0}),Ve=["mousedown","touchstart"],ct=["mouseup","mouseleave","touchend","touchcancel"];class Ct{static#e=this._eventManager=new rn;constructor(be,Te,He,Wt){this._target=be,this._ngZone=Te,this._platform=Wt,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Wt.isBrowser&&(this._containerElement=(0,n.fI)(He))}fadeInRipple(be,Te,He={}){const Wt=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Pn={...vn,...He.animation};He.centered&&(be=Wt.left+Wt.width/2,Te=Wt.top+Wt.height/2);const wt=He.radius||function Ce(ze,be,Te){const He=Math.max(Math.abs(ze-Te.left),Math.abs(ze-Te.right)),Wt=Math.max(Math.abs(be-Te.top),Math.abs(be-Te.bottom));return Math.sqrt(He*He+Wt*Wt)}(be,Te,Wt),Yt=be-Wt.left,fe=Te-Wt.top,Mt=Pn.enterDuration,Vt=document.createElement("div");Vt.classList.add("mat-ripple-element"),Vt.style.left=Yt-wt+"px",Vt.style.top=fe-wt+"px",Vt.style.height=2*wt+"px",Vt.style.width=2*wt+"px",null!=He.color&&(Vt.style.backgroundColor=He.color),Vt.style.transitionDuration=`${Mt}ms`,this._containerElement.appendChild(Vt);const ht=window.getComputedStyle(Vt),It=ht.transitionDuration,cn="none"===ht.transitionProperty||"0s"===It||"0s, 0s"===It||0===Wt.width&&0===Wt.height,_n=new Dn(this,Vt,He,cn);Vt.style.transform="scale3d(1, 1, 1)",_n.state=0,He.persistent||(this._mostRecentTransientRipple=_n);let En=null;return!cn&&(Mt||Pn.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const On=()=>this._finishRippleTransition(_n),ni=()=>this._destroyRipple(_n);Vt.addEventListener("transitionend",On),Vt.addEventListener("transitioncancel",ni),En={onTransitionEnd:On,onTransitionCancel:ni}}),this._activeRipples.set(_n,En),(cn||!Mt)&&this._finishRippleTransition(_n),_n}fadeOutRipple(be){if(2===be.state||3===be.state)return;const Te=be.element,He={...vn,...be.config.animation};Te.style.transitionDuration=`${He.exitDuration}ms`,Te.style.opacity="0",be.state=2,(be._animationForciblyDisabledThroughCss||!He.exitDuration)&&this._finishRippleTransition(be)}fadeOutAll(){this._getActiveRipples().forEach(be=>be.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(be=>{be.config.persistent||be.fadeOut()})}setupTriggerEvents(be){const Te=(0,n.fI)(be);!this._platform.isBrowser||!Te||Te===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=Te,Ve.forEach(He=>{Ct._eventManager.addHandler(this._ngZone,He,Te,this)}))}handleEvent(be){"mousedown"===be.type?this._onMousedown(be):"touchstart"===be.type?this._onTouchStart(be):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{ct.forEach(Te=>{this._triggerElement.addEventListener(Te,this,Wn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(be){0===be.state?this._startFadeOutTransition(be):2===be.state&&this._destroyRipple(be)}_startFadeOutTransition(be){const Te=be===this._mostRecentTransientRipple,{persistent:He}=be.config;be.state=1,!He&&(!Te||!this._isPointerDown)&&be.fadeOut()}_destroyRipple(be){const Te=this._activeRipples.get(be)??null;this._activeRipples.delete(be),this._activeRipples.size||(this._containerRect=null),be===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),be.state=3,null!==Te&&(be.element.removeEventListener("transitionend",Te.onTransitionEnd),be.element.removeEventListener("transitioncancel",Te.onTransitionCancel)),be.element.remove()}_onMousedown(be){const Te=(0,l.X6)(be),He=this._lastTouchStartEvent&&Date.now(){!be.config.persistent&&(1===be.state||be.config.terminateOnPointerUp&&0===be.state)&&be.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const be=this._triggerElement;be&&(Ve.forEach(Te=>Ct._eventManager.removeHandler(Te,be,this)),this._pointerUpEventsRegistered&&ct.forEach(Te=>be.removeEventListener(Te,this,Wn)))}}const J=new e.OlP("mat-ripple-global-options");let ae=(()=>{class ze{get disabled(){return this._disabled}set disabled(Te){Te&&this.fadeOutAllNonPersistent(),this._disabled=Te,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(Te){this._trigger=Te,this._setupTriggerEventsIfEnabled()}constructor(Te,He,Wt,Pn,wt){this._elementRef=Te,this._animationMode=wt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Pn||{},this._rippleRenderer=new Ct(this,He,Te,Wt)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(Te,He=0,Wt){return"number"==typeof Te?this._rippleRenderer.fadeInRipple(Te,He,{...this.rippleConfig,...Wt}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...Te})}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(w.t4),e.Y36(J,8),e.Y36(e.QbO,8))};static#t=this.\u0275dir=e.lG2({type:ze,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(He,Wt){2&He&&e.ekj("mat-ripple-unbounded",Wt.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return ze})(),Oe=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St,St]})}return ze})(),ot=(()=>{class ze{constructor(Te){this._animationMode=Te,this.state="unchecked",this.disabled=!1,this.appearance="full"}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.QbO,8))};static#t=this.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(He,Wt){2&He&&e.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===Wt.state)("mat-pseudo-checkbox-checked","checked"===Wt.state)("mat-pseudo-checkbox-disabled",Wt.disabled)("mat-pseudo-checkbox-minimal","minimal"===Wt.appearance)("mat-pseudo-checkbox-full","full"===Wt.appearance)("_mat-animation-noopable","NoopAnimations"===Wt._animationMode)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(He,Wt){},styles:['.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-full{border:2px solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}'],encapsulation:2,changeDetection:0})}return ze})(),Se=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[St]})}return ze})();const Ft=new e.OlP("MAT_OPTION_PARENT_COMPONENT"),fn=new e.OlP("MatOptgroup");let An=0;class jn{constructor(be,Te=!1){this.source=be,this.isUserInput=Te}}let ai=(()=>{class ze{get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(Te){this._disabled=(0,n.Ig)(Te)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get hideSingleSelectionIndicator(){return!(!this._parent||!this._parent.hideSingleSelectionIndicator)}constructor(Te,He,Wt,Pn){this._element=Te,this._changeDetectorRef=He,this._parent=Wt,this.group=Pn,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+An++,this.onSelectionChange=new e.vpe,this._stateChanges=new ee.x}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(Te=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),Te&&this._emitSelectionChangeEvent())}deselect(Te=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),Te&&this._emitSelectionChangeEvent())}focus(Te,He){const Wt=this._getHostElement();"function"==typeof Wt.focus&&Wt.focus(He)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(Te){(Te.keyCode===re.K5||Te.keyCode===re.L_)&&!(0,re.Vb)(Te)&&(this._selectViaInteraction(),Te.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const Te=this.viewValue;Te!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=Te)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(Te=!1){this.onSelectionChange.emit(new jn(this,Te))}static#e=this.\u0275fac=function(He){e.$Z()};static#t=this.\u0275dir=e.lG2({type:ze,viewQuery:function(He,Wt){if(1&He&&e.Gf(te,7),2&He){let Pn;e.iGM(Pn=e.CRH())&&(Wt._text=Pn.first)}},inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}})}return ze})(),di=(()=>{class ze extends ai{constructor(Te,He,Wt,Pn){super(Te,He,Wt,Pn)}static#e=this.\u0275fac=function(He){return new(He||ze)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Ft,8),e.Y36(fn,8))};static#t=this.\u0275cmp=e.Xpm({type:ze,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(He,Wt){1&He&&e.NdJ("click",function(){return Wt._selectViaInteraction()})("keydown",function(wt){return Wt._handleKeydown(wt)}),2&He&&(e.Ikx("id",Wt.id),e.uIk("aria-selected",Wt.selected)("aria-disabled",Wt.disabled.toString()),e.ekj("mdc-list-item--selected",Wt.selected)("mat-mdc-option-multiple",Wt.multiple)("mat-mdc-option-active",Wt.active)("mdc-list-item--disabled",Wt.disabled))},exportAs:["matOption"],features:[e.qOj],ngContentSelectors:mt,decls:8,vars:5,consts:[["class","mat-mdc-option-pseudo-checkbox","aria-hidden","true",3,"disabled","state",4,"ngIf"],[1,"mdc-list-item__primary-text"],["text",""],["class","mat-mdc-option-pseudo-checkbox","state","checked","aria-hidden","true","appearance","minimal",3,"disabled",4,"ngIf"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-mdc-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"]],template:function(He,Wt){1&He&&(e.F$t(Re),e.YNc(0,oe,1,2,"mat-pseudo-checkbox",0),e.Hsn(1),e.TgZ(2,"span",1,2),e.Hsn(4,1),e.qZA(),e.YNc(5,ce,1,1,"mat-pseudo-checkbox",3),e.YNc(6,_e,2,1,"span",4),e._UZ(7,"div",5)),2&He&&(e.Q6J("ngIf",Wt.multiple),e.xp6(5),e.Q6J("ngIf",!Wt.multiple&&Wt.selected&&!Wt.hideSingleSelectionIndicator),e.xp6(1),e.Q6J("ngIf",Wt.group&&Wt.group._inert),e.xp6(1),e.Q6J("matRippleTrigger",Wt._getHostElement())("matRippleDisabled",Wt.disabled||Wt.disableRipple))},dependencies:[ae,S.O5,ot],styles:['.mat-mdc-option{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color);font-family:var(--mat-option-label-text-font);line-height:var(--mat-option-label-text-line-height);font-size:var(--mat-option-label-text-size);letter-spacing:var(--mat-option-label-text-tracking);font-weight:var(--mat-option-label-text-weight);min-height:48px}.mat-mdc-option:focus{outline:none}[dir=rtl] .mat-mdc-option,.mat-mdc-option[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color)}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color)}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color)}.mat-mdc-option.mdc-list-item{align-items:center}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}.cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-mdc-option.mdc-list-item--selected:not(.mat-mdc-option-multiple)::after{right:auto;left:16px}.mat-mdc-option-active .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return ze})();function oi(ze,be,Te){if(Te.length){let He=be.toArray(),Wt=Te.toArray(),Pn=0;for(let wt=0;wtTe+He?Math.max(0,ze-He+be):Te}let qt=(()=>{class ze{static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275mod=e.oAB({type:ze});static#n=this.\u0275inj=e.cJS({imports:[Oe,S.ez,St,Se]})}return ze})();const _t={capture:!0},G=["focus","click","mouseenter","touchstart"],U="mat-ripple-loader-uninitialized",ve="mat-ripple-loader-class-name",Pe="mat-ripple-loader-centered",ut="mat-ripple-loader-disabled";let We=(()=>{class ze{constructor(){this._document=(0,e.f3M)(S.K0,{optional:!0}),this._animationMode=(0,e.f3M)(e.QbO,{optional:!0}),this._globalRippleOptions=(0,e.f3M)(J,{optional:!0}),this._platform=(0,e.f3M)(w.t4),this._ngZone=(0,e.f3M)(e.R0b),this._onInteraction=Te=>{if(!(Te.target instanceof HTMLElement))return;const Wt=Te.target.closest(`[${U}]`);Wt&&this.createRipple(Wt)},this._ngZone.runOutsideAngular(()=>{for(const Te of G)this._document?.addEventListener(Te,this._onInteraction,_t)})}ngOnDestroy(){for(const Te of G)this._document?.removeEventListener(Te,this._onInteraction,_t)}configureRipple(Te,He){Te.setAttribute(U,""),(He.className||!Te.hasAttribute(ve))&&Te.setAttribute(ve,He.className||""),He.centered&&Te.setAttribute(Pe,""),He.disabled&&Te.setAttribute(ut,"")}getRipple(Te){return Te.matRipple?Te.matRipple:this.createRipple(Te)}setDisabled(Te,He){const Wt=Te.matRipple;Wt?Wt.disabled=He:He?Te.setAttribute(ut,""):Te.removeAttribute(ut)}createRipple(Te){if(!this._document)return;Te.querySelector(".mat-ripple")?.remove();const He=this._document.createElement("span");He.classList.add("mat-ripple",Te.getAttribute(ve)),Te.append(He);const Wt=new ae(new e.SBq(He),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return Wt._isInitialized=!0,Wt.trigger=Te,Wt.centered=Te.hasAttribute(Pe),Wt.disabled=Te.hasAttribute(ut),this.attachRipple(Te,Wt),Wt}attachRipple(Te,He){Te.removeAttribute(U),Te.matRipple=He}static#e=this.\u0275fac=function(He){return new(He||ze)};static#t=this.\u0275prov=e.Yz7({token:ze,factory:ze.\u0275fac,providedIn:"root"})}return ze})()},7700:(ft,Ie,C)=>{"use strict";C.d(Ie,{WI:()=>bt,uw:()=>ei,H8:()=>Ce,ZT:()=>Ve,xY:()=>Ct,Is:()=>ae,so:()=>Ze,uh:()=>ct});var e=C(3651),l=C(6814),D=C(5879),I=C(4300),S=C(2831),w=C(8484),n=C(6028),Z=C(8645),ee=C(4911),re=C(2096),ue=C(9388),se=C(7921);function te(Se,Ft){}class oe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let _e=(()=>{class Se extends w.en{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(),this._elementRef=lt,this._focusTrapFactory=Bt,this._config=fn,this._interactivityChecker=gn,this._ngZone=An,this._overlayRef=jn,this._focusMonitor=ai,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=di=>{this._portalOutlet.hasAttached();const oi=this._portalOutlet.attachDomPortal(di);return this._contentAttached(),oi},this._document=Ut,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(lt){this._portalOutlet.hasAttached();const Bt=this._portalOutlet.attachComponentPortal(lt);return this._contentAttached(),Bt}attachTemplatePortal(lt){this._portalOutlet.hasAttached();const Bt=this._portalOutlet.attachTemplatePortal(lt);return this._contentAttached(),Bt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(lt,Bt){this._interactivityChecker.isFocusable(lt)||(lt.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ut=()=>{lt.removeEventListener("blur",Ut),lt.removeEventListener("mousedown",Ut),lt.removeAttribute("tabindex")};lt.addEventListener("blur",Ut),lt.addEventListener("mousedown",Ut)})),lt.focus(Bt)}_focusByCssSelector(lt,Bt){let Ut=this._elementRef.nativeElement.querySelector(lt);Ut&&this._forceFocus(Ut,Bt)}_trapFocus(){const lt=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||lt.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Bt=>{Bt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const lt=this._config.restoreFocus;let Bt=null;if("string"==typeof lt?Bt=this._document.querySelector(lt):"boolean"==typeof lt?Bt=lt?this._elementFocusedBeforeDialogWasOpened:null:lt&&(Bt=lt),this._config.restoreFocus&&Bt&&"function"==typeof Bt.focus){const Ut=(0,S.ht)(),fn=this._elementRef.nativeElement;(!Ut||Ut===this._document.body||Ut===fn||fn.contains(Ut))&&(this._focusMonitor?(this._focusMonitor.focusVia(Bt,this._closeInteractionType),this._closeInteractionType=null):Bt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const lt=this._elementRef.nativeElement,Bt=(0,S.ht)();return lt===Bt||lt.contains(Bt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,S.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(oe),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["cdk-dialog-container"]],viewQuery:function(Bt,Ut){if(1&Bt&&D.Gf(w.Pl,7),2&Bt){let fn;D.iGM(fn=D.CRH())&&(Ut._portalOutlet=fn.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Bt,Ut){2&Bt&&D.uIk("id",Ut._config.id||null)("role",Ut._config.role)("aria-modal",Ut._config.ariaModal)("aria-labelledby",Ut._config.ariaLabel?null:Ut._ariaLabelledByQueue[0])("aria-label",Ut._config.ariaLabel)("aria-describedby",Ut._config.ariaDescribedBy||null)},features:[D.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Bt,Ut){1&Bt&&D.YNc(0,te,0,0,"ng-template",0)},dependencies:[w.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return Se})();class Re{constructor(Ft,lt){this.overlayRef=Ft,this.config=lt,this.closed=new Z.x,this.disableClose=lt.disableClose,this.backdropClick=Ft.backdropClick(),this.keydownEvents=Ft.keydownEvents(),this.outsidePointerEvents=Ft.outsidePointerEvents(),this.id=lt.id,this.keydownEvents.subscribe(Bt=>{Bt.keyCode===n.hY&&!this.disableClose&&!(0,n.Vb)(Bt)&&(Bt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=Ft.detachments().subscribe(()=>{!1!==lt.closeOnOverlayDetachments&&this.close()})}close(Ft,lt){if(this.containerInstance){const Bt=this.closed;this.containerInstance._closeInteractionType=lt?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),Bt.next(Ft),Bt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Ft="",lt=""){return this.overlayRef.updateSize({width:Ft,height:lt}),this}addPanelClass(Ft){return this.overlayRef.addPanelClass(Ft),this}removePanelClass(Ft){return this.overlayRef.removePanelClass(Ft),this}}const mt=new D.OlP("DialogScrollStrategy"),Ge=new D.OlP("DialogData"),Lt=new D.OlP("DefaultDialogConfig"),Tt={provide:mt,deps:[e.aV],useFactory:function je(Se){return()=>Se.scrollStrategies.block()}};let xt=0,St=(()=>{class Se{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(lt,Bt,Ut,fn,gn,An){this._overlay=lt,this._injector=Bt,this._defaultOptions=Ut,this._parentDialog=fn,this._overlayContainer=gn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z.x,this._afterOpenedAtThisLevel=new Z.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,ee.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,se.O)(void 0))),this._scrollStrategy=An}open(lt,Bt){(Bt={...this._defaultOptions||new oe,...Bt}).id=Bt.id||"cdk-dialog-"+xt++,Bt.id&&this.getDialogById(Bt.id);const fn=this._getOverlayConfig(Bt),gn=this._overlay.create(fn),An=new Re(gn,Bt),jn=this._attachContainer(gn,An,Bt);return An.containerInstance=jn,this._attachDialogContent(lt,An,jn,Bt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(An),An.closed.subscribe(()=>this._removeOpenDialog(An,!0)),this.afterOpened.next(An),An}closeAll(){Zt(this.openDialogs,lt=>lt.close())}getDialogById(lt){return this.openDialogs.find(Bt=>Bt.id===lt)}ngOnDestroy(){Zt(this._openDialogsAtThisLevel,lt=>{!1===lt.config.closeOnDestroy&&this._removeOpenDialog(lt,!1)}),Zt(this._openDialogsAtThisLevel,lt=>lt.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(lt){const Bt=new e.X_({positionStrategy:lt.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:lt.scrollStrategy||this._scrollStrategy(),panelClass:lt.panelClass,hasBackdrop:lt.hasBackdrop,direction:lt.direction,minWidth:lt.minWidth,minHeight:lt.minHeight,maxWidth:lt.maxWidth,maxHeight:lt.maxHeight,width:lt.width,height:lt.height,disposeOnNavigation:lt.closeOnNavigation});return lt.backdropClass&&(Bt.backdropClass=lt.backdropClass),Bt}_attachContainer(lt,Bt,Ut){const fn=Ut.injector||Ut.viewContainerRef?.injector,gn=[{provide:oe,useValue:Ut},{provide:Re,useValue:Bt},{provide:e.Iu,useValue:lt}];let An;Ut.container?"function"==typeof Ut.container?An=Ut.container:(An=Ut.container.type,gn.push(...Ut.container.providers(Ut))):An=_e;const jn=new w.C5(An,Ut.viewContainerRef,D.zs3.create({parent:fn||this._injector,providers:gn}),Ut.componentFactoryResolver);return lt.attach(jn).instance}_attachDialogContent(lt,Bt,Ut,fn){if(lt instanceof D.Rgc){const gn=this._createInjector(fn,Bt,Ut,void 0);let An={$implicit:fn.data,dialogRef:Bt};fn.templateContext&&(An={...An,..."function"==typeof fn.templateContext?fn.templateContext():fn.templateContext}),Ut.attachTemplatePortal(new w.UE(lt,null,An,gn))}else{const gn=this._createInjector(fn,Bt,Ut,this._injector),An=Ut.attachComponentPortal(new w.C5(lt,fn.viewContainerRef,gn,fn.componentFactoryResolver));Bt.componentRef=An,Bt.componentInstance=An.instance}}_createInjector(lt,Bt,Ut,fn){const gn=lt.injector||lt.viewContainerRef?.injector,An=[{provide:Ge,useValue:lt.data},{provide:Re,useValue:Bt}];return lt.providers&&("function"==typeof lt.providers?An.push(...lt.providers(Bt,lt,Ut)):An.push(...lt.providers)),lt.direction&&(!gn||!gn.get(ue.Is,null,{optional:!0}))&&An.push({provide:ue.Is,useValue:{value:lt.direction,change:(0,re.of)()}}),D.zs3.create({parent:gn||fn,providers:An})}_removeOpenDialog(lt,Bt){const Ut=this.openDialogs.indexOf(lt);Ut>-1&&(this.openDialogs.splice(Ut,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((fn,gn)=>{fn?gn.setAttribute("aria-hidden",fn):gn.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Bt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const lt=this._overlayContainer.getContainerElement();if(lt.parentElement){const Bt=lt.parentElement.children;for(let Ut=Bt.length-1;Ut>-1;Ut--){const fn=Bt[Ut];fn!==lt&&"SCRIPT"!==fn.nodeName&&"STYLE"!==fn.nodeName&&!fn.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(fn,fn.getAttribute("aria-hidden")),fn.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const lt=this._parentDialog;return lt?lt._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.LFG(e.aV),D.LFG(D.zs3),D.LFG(Lt,8),D.LFG(Se,12),D.LFG(e.Xj),D.LFG(mt))};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})();function Zt(Se,Ft){let lt=Se.length;for(;lt--;)Ft(Se[lt])}let yt=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275mod=D.oAB({type:Se});static#n=this.\u0275inj=D.cJS({providers:[St,Tt],imports:[e.U8,w.eL,I.rt,w.eL]})}return Se})();var un=C(2605),Jt=C(3019),tn=C(2181),wn=C(8180),Ln=C(3680);function ti(Se,Ft){}C(6825);class gi{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Rn="mdc-dialog--open",dt="mdc-dialog--opening",at="mdc-dialog--closing";let $e=(()=>{class Se extends _e{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(lt,Bt,Ut,fn,gn,An,jn,ai),this._animationStateChanged=new D.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(lt){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:lt})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(gi),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["ng-component"]],features:[D.qOj],decls:0,vars:0,template:function(Bt,Ut){},encapsulation:2})}return Se})();const me="--mat-dialog-transition-duration";function tt(Se){return null==Se?null:"number"==typeof Se?Se:Se.endsWith("ms")?(0,un.su)(Se.substring(0,Se.length-2)):Se.endsWith("s")?1e3*(0,un.su)(Se.substring(0,Se.length-1)):"0"===Se?0:null}let he=(()=>{class Se extends $e{constructor(lt,Bt,Ut,fn,gn,An,jn,ai,di){super(lt,Bt,Ut,fn,gn,An,jn,di),this._animationMode=ai,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?tt(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?tt(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(me,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(dt,Rn)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Rn),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Rn),this._animationsEnabled?(this._hostElement.style.setProperty(me,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(at)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(dt,at)}_waitForAnimationToComplete(lt,Bt){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Bt,lt)}_requestAnimationFrame(lt){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(lt):lt()})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(D.SBq),D.Y36(I.qV),D.Y36(l.K0,8),D.Y36(gi),D.Y36(I.ic),D.Y36(D.R0b),D.Y36(e.Iu),D.Y36(D.QbO,8),D.Y36(I.tE))};static#t=this.\u0275cmp=D.Xpm({type:Se,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Bt,Ut){2&Bt&&(D.Ikx("id",Ut._config.id),D.uIk("aria-modal",Ut._config.ariaModal)("role",Ut._config.role)("aria-labelledby",Ut._config.ariaLabel?null:Ut._ariaLabelledByQueue[0])("aria-label",Ut._config.ariaLabel)("aria-describedby",Ut._config.ariaDescribedBy||null),D.ekj("_mat-animation-noopable",!Ut._animationsEnabled))},features:[D.qOj],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Bt,Ut){1&Bt&&(D.TgZ(0,"div",0)(1,"div",1),D.YNc(2,ti,0,0,"ng-template",2),D.qZA()())},dependencies:[w.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return Se})();class Ze{constructor(Ft,lt,Bt){this._ref=Ft,this._containerInstance=Bt,this._afterOpened=new Z.x,this._beforeClosed=new Z.x,this._state=0,this.disableClose=lt.disableClose,this.id=Ft.id,Bt._animationStateChanged.pipe((0,tn.h)(Ut=>"opened"===Ut.state),(0,wn.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Bt._animationStateChanged.pipe((0,tn.h)(Ut=>"closed"===Ut.state),(0,wn.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Ft.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,Jt.T)(this.backdropClick(),this.keydownEvents().pipe((0,tn.h)(Ut=>Ut.keyCode===n.hY&&!this.disableClose&&!(0,n.Vb)(Ut)))).subscribe(Ut=>{this.disableClose||(Ut.preventDefault(),rt(this,"keydown"===Ut.type?"keyboard":"mouse"))})}close(Ft){this._result=Ft,this._containerInstance._animationStateChanged.pipe((0,tn.h)(lt=>"closing"===lt.state),(0,wn.q)(1)).subscribe(lt=>{this._beforeClosed.next(Ft),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),lt.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Ft){let lt=this._ref.config.positionStrategy;return Ft&&(Ft.left||Ft.right)?Ft.left?lt.left(Ft.left):lt.right(Ft.right):lt.centerHorizontally(),Ft&&(Ft.top||Ft.bottom)?Ft.top?lt.top(Ft.top):lt.bottom(Ft.bottom):lt.centerVertically(),this._ref.updatePosition(),this}updateSize(Ft="",lt=""){return this._ref.updateSize(Ft,lt),this}addPanelClass(Ft){return this._ref.addPanelClass(Ft),this}removePanelClass(Ft){return this._ref.removePanelClass(Ft),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function rt(Se,Ft,lt){return Se._closeInteractionType=Ft,Se.close(lt)}const bt=new D.OlP("MatMdcDialogData"),Nt=new D.OlP("mat-mdc-dialog-default-options"),Qt=new D.OlP("mat-mdc-dialog-scroll-strategy"),Dn={provide:Qt,deps:[e.aV],useFactory:function nn(Se){return()=>Se.scrollStrategies.block()}};let rn=0,vn=(()=>{class Se{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const lt=this._parentDialog;return lt?lt._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(lt,Bt,Ut,fn,gn,An,jn,ai,di,oi){this._overlay=lt,this._defaultOptions=Ut,this._parentDialog=fn,this._dialogRefConstructor=jn,this._dialogContainerType=ai,this._dialogDataToken=di,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Z.x,this._afterOpenedAtThisLevel=new Z.x,this._idPrefix="mat-dialog-",this.dialogConfigClass=gi,this.afterAllClosed=(0,ee.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,se.O)(void 0))),this._scrollStrategy=An,this._dialog=Bt.get(St)}open(lt,Bt){let Ut;(Bt={...this._defaultOptions||new gi,...Bt}).id=Bt.id||`${this._idPrefix}${rn++}`,Bt.scrollStrategy=Bt.scrollStrategy||this._scrollStrategy();const fn=this._dialog.open(lt,{...Bt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Bt},{provide:oe,useValue:Bt}]},templateContext:()=>({dialogRef:Ut}),providers:(gn,An,jn)=>(Ut=new this._dialogRefConstructor(gn,Bt,jn),Ut.updatePosition(Bt?.position),[{provide:this._dialogContainerType,useValue:jn},{provide:this._dialogDataToken,useValue:An.data},{provide:this._dialogRefConstructor,useValue:Ut}])});return Ut.componentRef=fn.componentRef,Ut.componentInstance=fn.componentInstance,this.openDialogs.push(Ut),this.afterOpened.next(Ut),Ut.afterClosed().subscribe(()=>{const gn=this.openDialogs.indexOf(Ut);gn>-1&&(this.openDialogs.splice(gn,1),this.openDialogs.length||this._getAfterAllClosed().next())}),Ut}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(lt){return this.openDialogs.find(Bt=>Bt.id===lt)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(lt){let Bt=lt.length;for(;Bt--;)lt[Bt].close()}static#e=this.\u0275fac=function(Bt){D.$Z()};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})(),ei=(()=>{class Se extends vn{constructor(lt,Bt,Ut,fn,gn,An,jn,ai){super(lt,Bt,fn,An,jn,gn,Ze,he,bt,ai),this._idPrefix="mat-mdc-dialog-"}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.LFG(e.aV),D.LFG(D.zs3),D.LFG(l.Ye,8),D.LFG(Nt,8),D.LFG(Qt),D.LFG(Se,12),D.LFG(e.Xj),D.LFG(D.QbO,8))};static#t=this.\u0275prov=D.Yz7({token:Se,factory:Se.\u0275fac})}return Se})(),Wn=0,Ve=(()=>{class Se{constructor(lt,Bt,Ut){this.dialogRef=lt,this._elementRef=Bt,this._dialog=Ut,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=J(this._elementRef,this._dialog.openDialogs))}ngOnChanges(lt){const Bt=lt._matDialogClose||lt._matDialogCloseResult;Bt&&(this.dialogResult=Bt.currentValue)}_onButtonClick(lt){rt(this.dialogRef,0===lt.screenX&&0===lt.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(Ze,8),D.Y36(D.SBq),D.Y36(ei))};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Bt,Ut){1&Bt&&D.NdJ("click",function(gn){return Ut._onButtonClick(gn)}),2&Bt&&D.uIk("aria-label",Ut.ariaLabel||null)("type",Ut.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[D.TTD]})}return Se})(),ct=(()=>{class Se{constructor(lt,Bt,Ut){this._dialogRef=lt,this._elementRef=Bt,this._dialog=Ut,this.id="mat-mdc-dialog-title-"+Wn++}ngOnInit(){this._dialogRef||(this._dialogRef=J(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const lt=this._dialogRef?._containerInstance?._ariaLabelledByQueue;lt&&Promise.resolve().then(()=>{const Bt=lt.indexOf(this.id);Bt>-1&<.splice(Bt,1)})}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)(D.Y36(Ze,8),D.Y36(D.SBq),D.Y36(ei))};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(Bt,Ut){2&Bt&&D.Ikx("id",Ut.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]})}return Se})(),Ct=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"]})}return Se})(),Ce=(()=>{class Se{constructor(){this.align="start"}static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275dir=D.lG2({type:Se,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:4,hostBindings:function(Bt,Ut){2&Bt&&D.ekj("mat-mdc-dialog-actions-align-center","center"===Ut.align)("mat-mdc-dialog-actions-align-end","end"===Ut.align)},inputs:{align:"align"}})}return Se})();function J(Se,Ft){let lt=Se.nativeElement.parentElement;for(;lt&&!lt.classList.contains("mat-mdc-dialog-container");)lt=lt.parentElement;return lt?Ft.find(Bt=>Bt.id===lt.id):null}let ae=(()=>{class Se{static#e=this.\u0275fac=function(Bt){return new(Bt||Se)};static#t=this.\u0275mod=D.oAB({type:Se});static#n=this.\u0275inj=D.cJS({providers:[ei,Dn],imports:[yt,e.U8,w.eL,Ln.BQ,Ln.BQ]})}return Se})()},9157:(ft,Ie,C)=>{"use strict";C.d(Ie,{G_:()=>fn,KE:()=>Jn,Eo:()=>Ft,lN:()=>qt,hX:()=>Nt});var e=C(5879),l=C(9388),D=C(2831),I=C(7394),S=C(8645),w=C(3019),n=C(9773),Z=C(5592),ee=C(2181),re=C(4552);class ue extends S.x{constructor(G=1/0,U=1/0,ve=re.l){super(),this._bufferSize=G,this._windowTime=U,this._timestampProvider=ve,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=U===1/0,this._bufferSize=Math.max(1,G),this._windowTime=Math.max(1,U)}next(G){const{isStopped:U,_buffer:ve,_infiniteTimeWindow:Pe,_timestampProvider:ut,_windowTime:We}=this;U||(ve.push(G),!Pe&&ve.push(ut.now()+We)),this._trimBuffer(),super.next(G)}_subscribe(G){this._throwIfClosed(),this._trimBuffer();const U=this._innerSubscribe(G),{_infiniteTimeWindow:ve,_buffer:Pe}=this,ut=Pe.slice();for(let We=0;Wethis._resizeSubject.next(U)))}observe(G){return this._elementObservables.has(G)||this._elementObservables.set(G,new Z.y(U=>{const ve=this._resizeSubject.subscribe(U);return this._resizeObserver?.observe(G,{box:this._box}),()=>{this._resizeObserver?.unobserve(G),ve.unsubscribe(),this._elementObservables.delete(G)}}).pipe((0,ee.h)(U=>U.some(ve=>ve.target===G)),function te(_t,G,U){let ve,Pe=!1;return _t&&"object"==typeof _t?({bufferSize:ve=1/0,windowTime:G=1/0,refCount:Pe=!1,scheduler:U}=_t):ve=_t??1/0,(0,se.B)({connector:()=>new ue(ve,G,U),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Pe})}({bufferSize:1,refCount:!0}),(0,n.R)(this._destroyed))),this._elementObservables.get(G)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}}let _e=(()=>{class _t{constructor(){this._observers=new Map,this._ngZone=(0,e.f3M)(e.R0b)}ngOnDestroy(){for(const[,U]of this._observers)U.destroy();this._observers.clear()}observe(U,ve){const Pe=ve?.box||"content-box";return this._observers.has(Pe)||this._observers.set(Pe,new ce(Pe)),this._observers.get(Pe).observe(U)}static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275prov=e.Yz7({token:_t,factory:_t.\u0275fac,providedIn:"root"})}return _t})();var Re=C(2605),mt=C(6825),Ge=C(6814),Lt=C(7131),je=C(3680);const Tt=["notch"],xt=["matFormFieldNotchedOutline",""],St=["*"],Zt=["textField"],yt=["iconPrefixContainer"],un=["textPrefixContainer"];function Jt(_t,G){1&_t&&e._UZ(0,"span",19)}function tn(_t,G){if(1&_t&&(e.TgZ(0,"label",17),e.Hsn(1,1),e.YNc(2,Jt,1,0,"span",18),e.qZA()),2&_t){const U=e.oxw(2);e.Q6J("floating",U._shouldLabelFloat())("monitorResize",U._hasOutline())("id",U._labelId),e.uIk("for",U._control.id),e.xp6(2),e.Q6J("ngIf",!U.hideRequiredMarker&&U._control.required)}}function wn(_t,G){if(1&_t&&e.YNc(0,tn,3,5,"label",16),2&_t){const U=e.oxw();e.Q6J("ngIf",U._hasFloatingLabel())}}function Ln(_t,G){1&_t&&e._UZ(0,"div",20)}function Yn(_t,G){}function ti(_t,G){if(1&_t&&e.YNc(0,Yn,0,0,"ng-template",22),2&_t){e.oxw(2);const U=e.MAs(1);e.Q6J("ngTemplateOutlet",U)}}function gi(_t,G){if(1&_t&&(e.TgZ(0,"div",21),e.YNc(1,ti,1,1,"ng-template",9),e.qZA()),2&_t){const U=e.oxw();e.Q6J("matFormFieldNotchedOutlineOpen",U._shouldLabelFloat()),e.xp6(1),e.Q6J("ngIf",!U._forceDisplayInfixLabel())}}function Rn(_t,G){1&_t&&(e.TgZ(0,"div",23,24),e.Hsn(2,2),e.qZA())}function dt(_t,G){1&_t&&(e.TgZ(0,"div",25,26),e.Hsn(2,3),e.qZA())}function at(_t,G){}function Be(_t,G){if(1&_t&&e.YNc(0,at,0,0,"ng-template",22),2&_t){e.oxw();const U=e.MAs(1);e.Q6J("ngTemplateOutlet",U)}}function Ee(_t,G){1&_t&&(e.TgZ(0,"div",27),e.Hsn(1,4),e.qZA())}function $e(_t,G){1&_t&&(e.TgZ(0,"div",28),e.Hsn(1,5),e.qZA())}function me(_t,G){1&_t&&e._UZ(0,"div",29)}function tt(_t,G){if(1&_t&&(e.TgZ(0,"div",30),e.Hsn(1,6),e.qZA()),2&_t){const U=e.oxw();e.Q6J("@transitionMessages",U._subscriptAnimationState)}}function he(_t,G){if(1&_t&&(e.TgZ(0,"mat-hint",34),e._uU(1),e.qZA()),2&_t){const U=e.oxw(2);e.Q6J("id",U._hintLabelId),e.xp6(1),e.Oqu(U.hintLabel)}}function Ze(_t,G){if(1&_t&&(e.TgZ(0,"div",31),e.YNc(1,he,2,2,"mat-hint",32),e.Hsn(2,7),e._UZ(3,"div",33),e.Hsn(4,8),e.qZA()),2&_t){const U=e.oxw();e.Q6J("@transitionMessages",U._subscriptAnimationState),e.xp6(1),e.Q6J("ngIf",U.hintLabel)}}const rt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],bt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];let Nt=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["mat-label"]]})}return _t})();const nn=new e.OlP("MatError");let Ot=0,rn=(()=>{class _t{constructor(){this.align="start",this.id="mat-mdc-hint-"+Ot++}static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(ve,Pe){2&ve&&(e.Ikx("id",Pe.id),e.uIk("align",null),e.ekj("mat-mdc-form-field-hint-end","end"===Pe.align))},inputs:{align:"align",id:"id"}})}return _t})();const vn=new e.OlP("MatPrefix"),Wn=new e.OlP("MatSuffix"),ct=new e.OlP("FloatingLabelParent");let Ct=(()=>{class _t{get floating(){return this._floating}set floating(U){this._floating=U,this.monitorResize&&this._handleResize()}get monitorResize(){return this._monitorResize}set monitorResize(U){this._monitorResize=U,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}constructor(U){this._elementRef=U,this._floating=!1,this._monitorResize=!1,this._resizeObserver=(0,e.f3M)(_e),this._ngZone=(0,e.f3M)(e.R0b),this._parent=(0,e.f3M)(ct),this._resizeSubscription=new I.w0}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return function Ce(_t){if(null!==_t.offsetParent)return _t.scrollWidth;const U=_t.cloneNode(!0);U.style.setProperty("position","absolute"),U.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(U);const ve=U.scrollWidth;return U.remove(),ve}(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(ve,Pe){2&ve&&e.ekj("mdc-floating-label--float-above",Pe.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return _t})();const J="mdc-line-ripple--active",ae="mdc-line-ripple--deactivating";let Oe=(()=>{class _t{constructor(U,ve){this._elementRef=U,this._handleTransitionEnd=Pe=>{const ut=this._elementRef.nativeElement.classList,We=ut.contains(ae);"opacity"===Pe.propertyName&&We&&ut.remove(J,ae)},ve.runOutsideAngular(()=>{U.nativeElement.addEventListener("transitionend",this._handleTransitionEnd)})}activate(){const U=this._elementRef.nativeElement.classList;U.remove(ae),U.add(J)}deactivate(){this._elementRef.nativeElement.classList.add(ae)}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._handleTransitionEnd)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275dir=e.lG2({type:_t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return _t})(),ot=(()=>{class _t{constructor(U,ve){this._elementRef=U,this._ngZone=ve,this.open=!1}ngAfterViewInit(){const U=this._elementRef.nativeElement.querySelector(".mdc-floating-label");U?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),"function"==typeof requestAnimationFrame&&(U.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>U.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(U){this._notch.nativeElement.style.width=this.open&&U?`calc(${U}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`:""}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.R0b))};static#t=this.\u0275cmp=e.Xpm({type:_t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(ve,Pe){if(1&ve&&e.Gf(Tt,5),2&ve){let ut;e.iGM(ut=e.CRH())&&(Pe._notch=ut.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(ve,Pe){2&ve&&e.ekj("mdc-notched-outline--notched",Pe.open)},inputs:{open:["matFormFieldNotchedOutlineOpen","open"]},attrs:xt,ngContentSelectors:St,decls:5,vars:0,consts:[[1,"mdc-notched-outline__leading"],[1,"mdc-notched-outline__notch"],["notch",""],[1,"mdc-notched-outline__trailing"]],template:function(ve,Pe){1&ve&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1,2),e.Hsn(3),e.qZA(),e._UZ(4,"div",3))},encapsulation:2,changeDetection:0})}return _t})();const Se={transitionMessages:(0,mt.X$)("transitionMessages",[(0,mt.SB)("enter",(0,mt.oB)({opacity:1,transform:"translateY(0%)"})),(0,mt.eR)("void => enter",[(0,mt.oB)({opacity:0,transform:"translateY(-5px)"}),(0,mt.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ft=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275dir=e.lG2({type:_t})}return _t})();const fn=new e.OlP("MatFormField"),gn=new e.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS");let An=0,Jn=(()=>{class _t{get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(U){this._hideRequiredMarker=(0,Re.Ig)(U)}get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||"auto"}set floatLabel(U){U!==this._floatLabel&&(this._floatLabel=U,this._changeDetectorRef.markForCheck())}get appearance(){return this._appearance}set appearance(U){const ve=this._appearance;this._appearance=U||this._defaults?.appearance||"fill","outline"===this._appearance&&this._appearance!==ve&&(this._needsOutlineLabelOffsetUpdateOnStable=!0)}get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||"fixed"}set subscriptSizing(U){this._subscriptSizing=U||this._defaults?.subscriptSizing||"fixed"}get hintLabel(){return this._hintLabel}set hintLabel(U){this._hintLabel=U,this._processHints()}get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(U){this._explicitFormFieldControl=U}constructor(U,ve,Pe,ut,We,ze,be,Te){this._elementRef=U,this._changeDetectorRef=ve,this._ngZone=Pe,this._dir=ut,this._platform=We,this._defaults=ze,this._animationMode=be,this._hideRequiredMarker=!1,this.color="primary",this._appearance="fill",this._subscriptSizing=null,this._hintLabel="",this._hasIconPrefix=!1,this._hasTextPrefix=!1,this._hasIconSuffix=!1,this._hasTextSuffix=!1,this._labelId="mat-mdc-form-field-label-"+An++,this._hintLabelId="mat-mdc-hint-"+An++,this._subscriptAnimationState="",this._destroyed=new S.x,this._isFocused=null,this._needsOutlineLabelOffsetUpdateOnStable=!1,ze&&(ze.appearance&&(this.appearance=ze.appearance),this._hideRequiredMarker=!!ze?.hideRequiredMarker,ze.color&&(this.color=ze.color))}ngAfterViewInit(){this._updateFocusState(),this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(){const U=this._control;U.controlType&&this._elementRef.nativeElement.classList.add(`mat-mdc-form-field-type-${U.controlType}`),U.stateChanges.subscribe(()=>{this._updateFocusState(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),U.ngControl&&U.ngControl.valueChanges&&U.ngControl.valueChanges.pipe((0,n.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck())}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(U=>!U._isText),this._hasTextPrefix=!!this._prefixChildren.find(U=>U._isText),this._hasIconSuffix=!!this._suffixChildren.find(U=>!U._isText),this._hasTextSuffix=!!this._suffixChildren.find(U=>U._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),(0,w.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||null===this._isFocused)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,n.R)(this._destroyed)).subscribe(()=>{this._needsOutlineLabelOffsetUpdateOnStable&&(this._needsOutlineLabelOffsetUpdateOnStable=!1,this._updateOutlineLabelOffset())})}),this._dir.change.pipe((0,n.R)(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdateOnStable=!0)}_shouldAlwaysFloat(){return"always"===this.floatLabel}_hasOutline(){return"outline"===this.appearance}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel(){return!!this._labelChildNonStatic||!!this._labelChildStatic}_shouldLabelFloat(){return this._control.shouldLabelFloat||this._shouldAlwaysFloat()}_shouldForward(U){const ve=this._control?this._control.ngControl:null;return ve&&ve[U]}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){this._hasOutline()&&this._floatingLabel&&this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth()):this._notchedOutline?._setNotchWidth(0)}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_syncDescribedByIds(){if(this._control){let U=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&U.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const ve=this._hintChildren?this._hintChildren.find(ut=>"start"===ut.align):null,Pe=this._hintChildren?this._hintChildren.find(ut=>"end"===ut.align):null;ve?U.push(ve.id):this._hintLabel&&U.push(this._hintLabelId),Pe&&U.push(Pe.id)}else this._errorChildren&&U.push(...this._errorChildren.map(ve=>ve.id));this._control.setDescribedByIds(U)}}_updateOutlineLabelOffset(){if(!this._platform.isBrowser||!this._hasOutline()||!this._floatingLabel)return;const U=this._floatingLabel.element;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return void(U.style.transform="");if(!this._isAttachedToDom())return void(this._needsOutlineLabelOffsetUpdateOnStable=!0);const ve=this._iconPrefixContainer?.nativeElement,Pe=this._textPrefixContainer?.nativeElement,ut=ve?.getBoundingClientRect().width??0,We=Pe?.getBoundingClientRect().width??0;U.style.transform=`var(\n --mat-mdc-form-field-label-transform,\n translateY(-50%) translateX(calc(${"rtl"===this._dir.value?"-1":"1"} * (${ut+We}px + var(--mat-mdc-form-field-label-offset-x, 0px))))\n )`}_isAttachedToDom(){const U=this._elementRef.nativeElement;if(U.getRootNode){const ve=U.getRootNode();return ve&&ve!==U}return document.documentElement.contains(U)}static#e=this.\u0275fac=function(ve){return new(ve||_t)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(e.R0b),e.Y36(l.Is),e.Y36(D.t4),e.Y36(gn,8),e.Y36(e.QbO,8),e.Y36(Ge.K0))};static#t=this.\u0275cmp=e.Xpm({type:_t,selectors:[["mat-form-field"]],contentQueries:function(ve,Pe,ut){if(1&ve&&(e.Suo(ut,Nt,5),e.Suo(ut,Nt,7),e.Suo(ut,Ft,5),e.Suo(ut,vn,5),e.Suo(ut,Wn,5),e.Suo(ut,nn,5),e.Suo(ut,rn,5)),2&ve){let We;e.iGM(We=e.CRH())&&(Pe._labelChildNonStatic=We.first),e.iGM(We=e.CRH())&&(Pe._labelChildStatic=We.first),e.iGM(We=e.CRH())&&(Pe._formFieldControl=We.first),e.iGM(We=e.CRH())&&(Pe._prefixChildren=We),e.iGM(We=e.CRH())&&(Pe._suffixChildren=We),e.iGM(We=e.CRH())&&(Pe._errorChildren=We),e.iGM(We=e.CRH())&&(Pe._hintChildren=We)}},viewQuery:function(ve,Pe){if(1&ve&&(e.Gf(Zt,5),e.Gf(yt,5),e.Gf(un,5),e.Gf(Ct,5),e.Gf(ot,5),e.Gf(Oe,5)),2&ve){let ut;e.iGM(ut=e.CRH())&&(Pe._textField=ut.first),e.iGM(ut=e.CRH())&&(Pe._iconPrefixContainer=ut.first),e.iGM(ut=e.CRH())&&(Pe._textPrefixContainer=ut.first),e.iGM(ut=e.CRH())&&(Pe._floatingLabel=ut.first),e.iGM(ut=e.CRH())&&(Pe._notchedOutline=ut.first),e.iGM(ut=e.CRH())&&(Pe._lineRipple=ut.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:42,hostBindings:function(ve,Pe){2&ve&&e.ekj("mat-mdc-form-field-label-always-float",Pe._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",Pe._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",Pe._hasIconSuffix)("mat-form-field-invalid",Pe._control.errorState)("mat-form-field-disabled",Pe._control.disabled)("mat-form-field-autofilled",Pe._control.autofilled)("mat-form-field-no-animations","NoopAnimations"===Pe._animationMode)("mat-form-field-appearance-fill","fill"==Pe.appearance)("mat-form-field-appearance-outline","outline"==Pe.appearance)("mat-form-field-hide-placeholder",Pe._hasFloatingLabel()&&!Pe._shouldLabelFloat())("mat-focused",Pe._control.focused)("mat-primary","accent"!==Pe.color&&"warn"!==Pe.color)("mat-accent","accent"===Pe.color)("mat-warn","warn"===Pe.color)("ng-untouched",Pe._shouldForward("untouched"))("ng-touched",Pe._shouldForward("touched"))("ng-pristine",Pe._shouldForward("pristine"))("ng-dirty",Pe._shouldForward("dirty"))("ng-valid",Pe._shouldForward("valid"))("ng-invalid",Pe._shouldForward("invalid"))("ng-pending",Pe._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[e._Bn([{provide:fn,useExisting:_t},{provide:ct,useExisting:_t}])],ngContentSelectors:bt,decls:18,vars:23,consts:[["labelTemplate",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],["textField",""],["class","mat-mdc-form-field-focus-overlay",4,"ngIf"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen",4,"ngIf"],["class","mat-mdc-form-field-icon-prefix",4,"ngIf"],["class","mat-mdc-form-field-text-prefix",4,"ngIf"],[1,"mat-mdc-form-field-infix"],[3,"ngIf"],["class","mat-mdc-form-field-text-suffix",4,"ngIf"],["class","mat-mdc-form-field-icon-suffix",4,"ngIf"],["matFormFieldLineRipple","",4,"ngIf"],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align",3,"ngSwitch"],["class","mat-mdc-form-field-error-wrapper",4,"ngSwitchCase"],["class","mat-mdc-form-field-hint-wrapper",4,"ngSwitchCase"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id",4,"ngIf"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true","class","mat-mdc-form-field-required-marker mdc-floating-label--required",4,"ngIf"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[1,"mat-mdc-form-field-focus-overlay"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-icon-prefix"],["iconPrefixContainer",""],[1,"mat-mdc-form-field-text-prefix"],["textPrefixContainer",""],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],[3,"id",4,"ngIf"],[1,"mat-mdc-form-field-hint-spacer"],[3,"id"]],template:function(ve,Pe){1&ve&&(e.F$t(rt),e.YNc(0,wn,1,1,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.NdJ("click",function(We){return Pe._control.onContainerClick(We)}),e.YNc(4,Ln,1,0,"div",3),e.TgZ(5,"div",4),e.YNc(6,gi,2,2,"div",5),e.YNc(7,Rn,3,0,"div",6),e.YNc(8,dt,3,0,"div",7),e.TgZ(9,"div",8),e.YNc(10,Be,1,1,"ng-template",9),e.Hsn(11),e.qZA(),e.YNc(12,Ee,2,0,"div",10),e.YNc(13,$e,2,0,"div",11),e.qZA(),e.YNc(14,me,1,0,"div",12),e.qZA(),e.TgZ(15,"div",13),e.YNc(16,tt,2,1,"div",14),e.YNc(17,Ze,5,2,"div",15),e.qZA()),2&ve&&(e.xp6(2),e.ekj("mdc-text-field--filled",!Pe._hasOutline())("mdc-text-field--outlined",Pe._hasOutline())("mdc-text-field--no-label",!Pe._hasFloatingLabel())("mdc-text-field--disabled",Pe._control.disabled)("mdc-text-field--invalid",Pe._control.errorState),e.xp6(2),e.Q6J("ngIf",!Pe._hasOutline()&&!Pe._control.disabled),e.xp6(2),e.Q6J("ngIf",Pe._hasOutline()),e.xp6(1),e.Q6J("ngIf",Pe._hasIconPrefix),e.xp6(1),e.Q6J("ngIf",Pe._hasTextPrefix),e.xp6(2),e.Q6J("ngIf",!Pe._hasOutline()||Pe._forceDisplayInfixLabel()),e.xp6(2),e.Q6J("ngIf",Pe._hasTextSuffix),e.xp6(1),e.Q6J("ngIf",Pe._hasIconSuffix),e.xp6(1),e.Q6J("ngIf",!Pe._hasOutline()),e.xp6(1),e.ekj("mat-mdc-form-field-subscript-dynamic-size","dynamic"===Pe.subscriptSizing),e.Q6J("ngSwitch",Pe._getDisplayedMessages()),e.xp6(1),e.Q6J("ngSwitchCase","error"),e.xp6(1),e.Q6J("ngSwitchCase","hint"))},dependencies:[Ge.O5,Ge.tP,Ge.RF,Ge.n9,rn,Ct,ot,Oe],styles:['.mdc-text-field{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0;display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-text-field__input{height:28px;width:100%;min-width:0;border:none;border-radius:0;background:none;appearance:none;padding:0}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}@media all{.mdc-text-field__input::placeholder{opacity:0}}@media all{.mdc-text-field__input:-ms-input-placeholder{opacity:0}}@media all{.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}}@media all{.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}}.mdc-text-field__affix{height:28px;opacity:0;white-space:nowrap}.mdc-text-field--label-floating .mdc-text-field__affix,.mdc-text-field--no-label .mdc-text-field__affix{opacity:1}@supports(-webkit-hyphens: none){.mdc-text-field--outlined .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field__affix--prefix,.mdc-text-field__affix--prefix[dir=rtl]{padding-left:2px;padding-right:0}.mdc-text-field--end-aligned .mdc-text-field__affix--prefix{padding-left:0;padding-right:12px}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--end-aligned .mdc-text-field__affix--prefix[dir=rtl]{padding-left:12px;padding-right:0}.mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field__affix--suffix,.mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:12px}.mdc-text-field--end-aligned .mdc-text-field__affix--suffix{padding-left:2px;padding-right:0}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--end-aligned .mdc-text-field__affix--suffix[dir=rtl]{padding-left:0;padding-right:2px}.mdc-text-field--filled{height:56px}.mdc-text-field--filled::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-text-field--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-text-field--filled .mdc-floating-label,.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled.mdc-text-field--no-label::before{display:none}@supports(-webkit-hyphens: none){.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__affix{align-items:center;align-self:center;display:inline-flex;height:100%}}.mdc-text-field--outlined{height:56px;overflow:visible}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--outlined .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-shape-small, 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-shape-small, 4px))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:initial}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mdc-text-field--textarea{flex-direction:column;align-items:center;width:auto;height:auto;padding:0}.mdc-text-field--textarea .mdc-floating-label{top:19px}.mdc-text-field--textarea .mdc-floating-label:not(.mdc-floating-label--float-above){transform:none}.mdc-text-field--textarea .mdc-text-field__input{flex-grow:1;height:auto;min-height:1.5rem;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;resize:none;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--filled::before{display:none}.mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-10.25px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--filled .mdc-text-field__input{margin-top:23px;margin-bottom:9px}.mdc-text-field--textarea.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-27.25px) scale(1)}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-24.75px) scale(0.75)}.mdc-text-field--textarea.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--textarea.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-text-field__input{margin-top:16px;margin-bottom:16px}.mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label{top:18px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field__input{margin-bottom:2px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter{align-self:flex-end;padding:0 16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::after{display:inline-block;width:0;height:16px;content:"";vertical-align:-16px}.mdc-text-field--textarea.mdc-text-field--with-internal-counter .mdc-text-field-character-counter::before{display:none}.mdc-text-field__resizer{align-self:stretch;display:inline-flex;flex-direction:column;flex-grow:1;max-height:100%;max-width:100%;min-height:56px;min-width:fit-content;min-width:-moz-available;min-width:-webkit-fill-available;overflow:hidden;resize:both}.mdc-text-field--filled .mdc-text-field__resizer{transform:translateY(-1px)}.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--filled .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateY(1px)}.mdc-text-field--outlined .mdc-text-field__resizer{transform:translateX(-1px) translateY(-1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer,.mdc-text-field--outlined .mdc-text-field__resizer[dir=rtl]{transform:translateX(1px) translateY(-1px)}.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter{transform:translateX(1px) translateY(1px)}[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input,[dir=rtl] .mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter,.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field__input[dir=rtl],.mdc-text-field--outlined .mdc-text-field__resizer .mdc-text-field-character-counter[dir=rtl]{transform:translateX(-1px) translateY(1px)}.mdc-text-field--with-leading-icon{padding-left:0;padding-right:16px}[dir=rtl] .mdc-text-field--with-leading-icon,.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:16px;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 48px);left:48px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label[dir=rtl]{left:initial;right:48px}.mdc-text-field--with-leading-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label[dir=rtl]{left:initial;right:36px}.mdc-text-field--with-leading-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--float-above{font-size:.75rem}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75)}.mdc-text-field--with-leading-icon.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-text-field--with-trailing-icon{padding-left:16px;padding-right:0}[dir=rtl] .mdc-text-field--with-trailing-icon,.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0;padding-right:16px}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-text-field--with-trailing-icon.mdc-text-field--outlined :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon.mdc-text-field--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-text-field-helper-line{display:flex;justify-content:space-between;box-sizing:border-box}.mdc-text-field+.mdc-text-field-helper-line{padding-right:16px;padding-left:16px}.mdc-form-field>.mdc-text-field+label{align-self:flex-start}.mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--focused .mdc-notched-outline__trailing{border-width:2px}.mdc-text-field--focused+.mdc-text-field-helper-line .mdc-text-field-helper-text:not(.mdc-text-field-helper-text--validation-msg){opacity:1}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-text-field--focused.mdc-text-field--outlined.mdc-text-field--textarea .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0}.mdc-text-field--invalid+.mdc-text-field-helper-line .mdc-text-field-helper-text--validation-msg{opacity:1}.mdc-text-field--disabled{pointer-events:none}@media screen and (forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--disabled .mdc-floating-label{cursor:default}.mdc-text-field--disabled.mdc-text-field--filled .mdc-text-field__ripple{display:none}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--end-aligned .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--end-aligned .mdc-text-field__input[dir=rtl]{text-align:left}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix{direction:ltr}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{padding-left:0;padding-right:2px}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{padding-left:12px;padding-right:0}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--leading,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--leading{order:1}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--suffix{order:2}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__input,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__input{order:3}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__affix--prefix{order:4}[dir=rtl] .mdc-text-field--ltr-text .mdc-text-field__icon--trailing,.mdc-text-field--ltr-text[dir=rtl] .mdc-text-field__icon--trailing{order:5}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__input,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__input{text-align:right}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--prefix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--prefix{padding-right:12px}[dir=rtl] .mdc-text-field--ltr-text.mdc-text-field--end-aligned .mdc-text-field__affix--suffix,.mdc-text-field--ltr-text.mdc-text-field--end-aligned[dir=rtl] .mdc-text-field__affix--suffix{padding-left:2px}.mdc-floating-label{position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after,.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;pointer-events:none}.mdc-notched-outline__trailing{flex-grow:1}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-top:1px solid;border-bottom:1px solid}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{max-width:calc(100% - 12px * 2)}.mdc-line-ripple::before{border-bottom-width:1px}.mdc-line-ripple::after{border-bottom-width:2px}.mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height:1px;--mdc-filled-text-field-focus-active-indicator-height:2px;--mdc-filled-text-field-container-shape:4px;border-top-left-radius:var(--mdc-filled-text-field-container-shape);border-top-right-radius:var(--mdc-filled-text-field-container-shape);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-caret-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-label-text-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-focus-label-text-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-disabled-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-label-text-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-filled-text-field-error-focus-label-text-color)}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font);font-size:var(--mdc-filled-text-field-label-text-size);font-weight:var(--mdc-filled-text-field-label-text-weight);letter-spacing:var(--mdc-filled-text-field-label-text-tracking)}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color)}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color)}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color)}.mdc-text-field--filled .mdc-line-ripple::before{border-bottom-width:var(--mdc-filled-text-field-active-indicator-height)}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height)}.mdc-text-field--outlined{--mdc-outlined-text-field-outline-width:1px;--mdc-outlined-text-field-focus-outline-width:2px;--mdc-outlined-text-field-container-shape:4px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-caret-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-label-text-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-focus-label-text-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-disabled-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-label-text-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label--float-above{color:var(--mdc-outlined-text-field-error-focus-label-text-color)}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font);font-size:var(--mdc-outlined-text-field-label-text-size);font-weight:var(--mdc-outlined-text-field-label-text-weight);letter-spacing:var(--mdc-outlined-text-field-label-text-tracking)}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}@media all{.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-outlined-text-field-container-shape))*2)}}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape);border-bottom-left-radius:0}[dir=rtl] .mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:var(--mdc-outlined-text-field-container-shape);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape)}@supports(top: max(0%)){.mdc-text-field--outlined{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}@supports(top: max(0%)){.mdc-text-field--outlined+.mdc-text-field-helper-line{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-left:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-leading-icon{padding-right:max(16px, var(--mdc-outlined-text-field-container-shape))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-right:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-leading-icon,.mdc-text-field--outlined.mdc-text-field--with-leading-icon[dir=rtl]{padding-left:max(16px, var(--mdc-outlined-text-field-container-shape))}}.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-right:0}@supports(top: max(0%)){.mdc-text-field--outlined.mdc-text-field--with-trailing-icon{padding-left:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-left:0}@supports(top: max(0%)){[dir=rtl] .mdc-text-field--outlined.mdc-text-field--with-trailing-icon,.mdc-text-field--outlined.mdc-text-field--with-trailing-icon[dir=rtl]{padding-right:max(16px, calc(var(--mdc-outlined-text-field-container-shape) + 4px))}}.mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-text-field--with-trailing-icon{padding-left:0;padding-right:0}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-hover-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-focus-outline-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--disabled .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-disabled-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-hover-outline-color)}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__leading,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__notch,.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline__trailing{border-color:var(--mdc-outlined-text-field-error-focus-outline-color)}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-outline-width)}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:var(--mdc-outlined-text-field-focus-outline-width)}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color)}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-text-field-wrapper::before{content:none}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}.cdk-high-contrast-active .mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font);line-height:var(--mat-form-field-container-text-line-height);font-size:var(--mat-form-field-container-text-size);letter-spacing:var(--mat-form-field-container-text-tracking);font-weight:var(--mat-form-field-container-text-weight)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size) * var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:12px;box-sizing:content-box}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}}@media all{.mdc-text-field--no-label .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field__affix{transition:opacity 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled.mdc-ripple-upgraded--background-focused .mdc-text-field__ripple::before,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea{transition:none}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--filled .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-filled 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-filled{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 10.25px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--textarea.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-textarea-outlined 250ms 1}@keyframes mdc-floating-label-shake-float-above-textarea-outlined{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 24.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon{0%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - 32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}[dir=rtl] .mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined .mdc-floating-label--shake,.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-text-field--with-leading-icon.mdc-text-field--outlined[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-text-field-outlined-leading-icon 250ms 1}@keyframes mdc-floating-label-shake-float-above-text-field-outlined-leading-icon-rtl{0%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}100%{transform:translateX(calc(0% - -32px)) translateY(calc(0% - 34.75px)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}100%{transform:translateX(calc(0% - 0%)) translateY(calc(0% - 106%)) scale(0.75)}}.mat-mdc-form-field:not(.mat-form-field-no-animations) .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)}'],encapsulation:2,data:{animation:[Se.transitionMessages]},changeDetection:0})}return _t})(),qt=(()=>{class _t{static#e=this.\u0275fac=function(ve){return new(ve||_t)};static#t=this.\u0275mod=e.oAB({type:_t});static#n=this.\u0275inj=e.cJS({imports:[je.BQ,Ge.ez,Lt.Q8,je.BQ]})}return _t})()},617:(ft,Ie,C)=>{"use strict";C.d(Ie,{Hw:()=>Ee,Ps:()=>$e});var e=C(5879),l=C(3680),D=C(2605),I=C(6814),S=C(2096),w=C(8504),n=C(9315),Z=C(7394),ee=C(9397),re=C(7398),ue=C(6306),se=C(4716),te=C(3020),oe=C(8180),ce=C(9862),_e=C(6593);const Re=["*"];let mt;function Lt(me){return function Ge(){if(void 0===mt&&(mt=null,typeof window<"u")){const me=window;void 0!==me.trustedTypes&&(mt=me.trustedTypes.createPolicy("angular#components",{createHTML:tt=>tt}))}return mt}()?.createHTML(me)||me}function je(me){return Error(`Unable to find icon with the name "${me}"`)}function xt(me){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${me}".`)}function St(me){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${me}".`)}class Zt{constructor(tt,he,Ze){this.url=tt,this.svgText=he,this.options=Ze}}let yt=(()=>{class me{constructor(he,Ze,rt,bt){this._httpClient=he,this._sanitizer=Ze,this._errorHandler=bt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=rt}addSvgIcon(he,Ze,rt){return this.addSvgIconInNamespace("",he,Ze,rt)}addSvgIconLiteral(he,Ze,rt){return this.addSvgIconLiteralInNamespace("",he,Ze,rt)}addSvgIconInNamespace(he,Ze,rt,bt){return this._addSvgIconConfig(he,Ze,new Zt(rt,null,bt))}addSvgIconResolver(he){return this._resolvers.push(he),this}addSvgIconLiteralInNamespace(he,Ze,rt,bt){const Nt=this._sanitizer.sanitize(e.q3G.HTML,rt);if(!Nt)throw St(rt);const Qt=Lt(Nt);return this._addSvgIconConfig(he,Ze,new Zt("",Qt,bt))}addSvgIconSet(he,Ze){return this.addSvgIconSetInNamespace("",he,Ze)}addSvgIconSetLiteral(he,Ze){return this.addSvgIconSetLiteralInNamespace("",he,Ze)}addSvgIconSetInNamespace(he,Ze,rt){return this._addSvgIconSetConfig(he,new Zt(Ze,null,rt))}addSvgIconSetLiteralInNamespace(he,Ze,rt){const bt=this._sanitizer.sanitize(e.q3G.HTML,Ze);if(!bt)throw St(Ze);const Nt=Lt(bt);return this._addSvgIconSetConfig(he,new Zt("",Nt,rt))}registerFontClassAlias(he,Ze=he){return this._fontCssClassesByAlias.set(he,Ze),this}classNameForFontAlias(he){return this._fontCssClassesByAlias.get(he)||he}setDefaultFontSetClass(...he){return this._defaultFontSetClass=he,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(he){const Ze=this._sanitizer.sanitize(e.q3G.RESOURCE_URL,he);if(!Ze)throw xt(he);const rt=this._cachedIconsByUrl.get(Ze);return rt?(0,S.of)(tn(rt)):this._loadSvgIconFromConfig(new Zt(he,null)).pipe((0,ee.b)(bt=>this._cachedIconsByUrl.set(Ze,bt)),(0,re.U)(bt=>tn(bt)))}getNamedSvgIcon(he,Ze=""){const rt=wn(Ze,he);let bt=this._svgIconConfigs.get(rt);if(bt)return this._getSvgFromConfig(bt);if(bt=this._getIconConfigFromResolvers(Ze,he),bt)return this._svgIconConfigs.set(rt,bt),this._getSvgFromConfig(bt);const Nt=this._iconSetConfigs.get(Ze);return Nt?this._getSvgFromIconSetConfigs(he,Nt):(0,w._)(je(rt))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(he){return he.svgText?(0,S.of)(tn(this._svgElementFromConfig(he))):this._loadSvgIconFromConfig(he).pipe((0,re.U)(Ze=>tn(Ze)))}_getSvgFromIconSetConfigs(he,Ze){const rt=this._extractIconWithNameFromAnySet(he,Ze);if(rt)return(0,S.of)(rt);const bt=Ze.filter(Nt=>!Nt.svgText).map(Nt=>this._loadSvgIconSetFromConfig(Nt).pipe((0,ue.K)(Qt=>{const Dn=`Loading icon set URL: ${this._sanitizer.sanitize(e.q3G.RESOURCE_URL,Nt.url)} failed: ${Qt.message}`;return this._errorHandler.handleError(new Error(Dn)),(0,S.of)(null)})));return(0,n.D)(bt).pipe((0,re.U)(()=>{const Nt=this._extractIconWithNameFromAnySet(he,Ze);if(!Nt)throw je(he);return Nt}))}_extractIconWithNameFromAnySet(he,Ze){for(let rt=Ze.length-1;rt>=0;rt--){const bt=Ze[rt];if(bt.svgText&&bt.svgText.toString().indexOf(he)>-1){const Nt=this._svgElementFromConfig(bt),Qt=this._extractSvgIconFromSet(Nt,he,bt.options);if(Qt)return Qt}}return null}_loadSvgIconFromConfig(he){return this._fetchIcon(he).pipe((0,ee.b)(Ze=>he.svgText=Ze),(0,re.U)(()=>this._svgElementFromConfig(he)))}_loadSvgIconSetFromConfig(he){return he.svgText?(0,S.of)(null):this._fetchIcon(he).pipe((0,ee.b)(Ze=>he.svgText=Ze))}_extractSvgIconFromSet(he,Ze,rt){const bt=he.querySelector(`[id="${Ze}"]`);if(!bt)return null;const Nt=bt.cloneNode(!0);if(Nt.removeAttribute("id"),"svg"===Nt.nodeName.toLowerCase())return this._setSvgAttributes(Nt,rt);if("symbol"===Nt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(Nt),rt);const Qt=this._svgElementFromString(Lt(""));return Qt.appendChild(Nt),this._setSvgAttributes(Qt,rt)}_svgElementFromString(he){const Ze=this._document.createElement("DIV");Ze.innerHTML=he;const rt=Ze.querySelector("svg");if(!rt)throw Error(" tag not found");return rt}_toSvgElement(he){const Ze=this._svgElementFromString(Lt("")),rt=he.attributes;for(let bt=0;btLt(Dn)),(0,se.x)(()=>this._inProgressUrlFetches.delete(Nt)),(0,te.B)());return this._inProgressUrlFetches.set(Nt,nn),nn}_addSvgIconConfig(he,Ze,rt){return this._svgIconConfigs.set(wn(he,Ze),rt),this}_addSvgIconSetConfig(he,Ze){const rt=this._iconSetConfigs.get(he);return rt?rt.push(Ze):this._iconSetConfigs.set(he,[Ze]),this}_svgElementFromConfig(he){if(!he.svgElement){const Ze=this._svgElementFromString(he.svgText);this._setSvgAttributes(Ze,he.options),he.svgElement=Ze}return he.svgElement}_getIconConfigFromResolvers(he,Ze){for(let rt=0;rttt?tt.pathname+tt.search:""}}}),dt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],at=dt.map(me=>`[${me}]`).join(", "),Be=/^url\(['"]?#(.*?)['"]?\)$/;let Ee=(()=>{class me extends Yn{get inline(){return this._inline}set inline(he){this._inline=(0,D.Ig)(he)}get svgIcon(){return this._svgIcon}set svgIcon(he){he!==this._svgIcon&&(he?this._updateSvgIcon(he):this._svgIcon&&this._clearSvgElement(),this._svgIcon=he)}get fontSet(){return this._fontSet}set fontSet(he){const Ze=this._cleanupFontValue(he);Ze!==this._fontSet&&(this._fontSet=Ze,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(he){const Ze=this._cleanupFontValue(he);Ze!==this._fontIcon&&(this._fontIcon=Ze,this._updateFontIconClasses())}constructor(he,Ze,rt,bt,Nt,Qt){super(he),this._iconRegistry=Ze,this._location=bt,this._errorHandler=Nt,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Z.w0.EMPTY,Qt&&(Qt.color&&(this.color=this.defaultColor=Qt.color),Qt.fontSet&&(this.fontSet=Qt.fontSet)),rt||he.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(he){if(!he)return["",""];const Ze=he.split(":");switch(Ze.length){case 1:return["",Ze[0]];case 2:return Ze;default:throw Error(`Invalid icon name: "${he}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const he=this._elementsWithExternalReferences;if(he&&he.size){const Ze=this._location.getPathname();Ze!==this._previousPath&&(this._previousPath=Ze,this._prependPathToReferences(Ze))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(he){this._clearSvgElement();const Ze=this._location.getPathname();this._previousPath=Ze,this._cacheChildrenWithExternalReferences(he),this._prependPathToReferences(Ze),this._elementRef.nativeElement.appendChild(he)}_clearSvgElement(){const he=this._elementRef.nativeElement;let Ze=he.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ze--;){const rt=he.childNodes[Ze];(1!==rt.nodeType||"svg"===rt.nodeName.toLowerCase())&&rt.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const he=this._elementRef.nativeElement,Ze=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(rt=>rt.length>0);this._previousFontSetClass.forEach(rt=>he.classList.remove(rt)),Ze.forEach(rt=>he.classList.add(rt)),this._previousFontSetClass=Ze,this.fontIcon!==this._previousFontIconClass&&!Ze.includes("mat-ligature-font")&&(this._previousFontIconClass&&he.classList.remove(this._previousFontIconClass),this.fontIcon&&he.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(he){return"string"==typeof he?he.trim().split(" ")[0]:he}_prependPathToReferences(he){const Ze=this._elementsWithExternalReferences;Ze&&Ze.forEach((rt,bt)=>{rt.forEach(Nt=>{bt.setAttribute(Nt.name,`url('${he}#${Nt.value}')`)})})}_cacheChildrenWithExternalReferences(he){const Ze=he.querySelectorAll(at),rt=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let bt=0;bt{const Qt=Ze[bt],nn=Qt.getAttribute(Nt),Dn=nn?nn.match(Be):null;if(Dn){let Ot=rt.get(Qt);Ot||(Ot=[],rt.set(Qt,Ot)),Ot.push({name:Nt,value:Dn[1]})}})}_updateSvgIcon(he){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),he){const[Ze,rt]=this._splitIconName(he);Ze&&(this._svgNamespace=Ze),rt&&(this._svgName=rt),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(rt,Ze).pipe((0,oe.q)(1)).subscribe(bt=>this._setSvgElement(bt),bt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ze}:${rt}! ${bt.message}`))})}}static#e=this.\u0275fac=function(Ze){return new(Ze||me)(e.Y36(e.SBq),e.Y36(yt),e.$8M("aria-hidden"),e.Y36(gi),e.Y36(e.qLn),e.Y36(ti,8))};static#t=this.\u0275cmp=e.Xpm({type:me,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(Ze,rt){2&Ze&&(e.uIk("data-mat-icon-type",rt._usingFontIcon()?"font":"svg")("data-mat-icon-name",rt._svgName||rt.fontIcon)("data-mat-icon-namespace",rt._svgNamespace||rt.fontSet)("fontIcon",rt._usingFontIcon()?rt.fontIcon:null),e.ekj("mat-icon-inline",rt.inline)("mat-icon-no-color","primary"!==rt.color&&"accent"!==rt.color&&"warn"!==rt.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.qOj],ngContentSelectors:Re,decls:1,vars:0,template:function(Ze,rt){1&Ze&&(e.F$t(),e.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return me})(),$e=(()=>{class me{static#e=this.\u0275fac=function(Ze){return new(Ze||me)};static#t=this.\u0275mod=e.oAB({type:me});static#n=this.\u0275inj=e.cJS({imports:[l.BQ,l.BQ]})}return me})()},3365:(ft,Ie,C)=>{"use strict";C.d(Ie,{NW:()=>Ve,TU:()=>ct});var e=C(6814),l=C(5879),D=C(8645),I=C(2296),S=C(8525),w=C(9773),n=C(8180),Z=C(2605),ee=C(6028),re=C(2831),ue=C(4300),se=C(9388),te=C(3651),oe=C(6672),ce=C(8484),Re=(C(6825),C(3680));const mt=["tooltip"],je=new l.OlP("mat-tooltip-scroll-strategy"),xt={provide:je,deps:[te.aV],useFactory:function Tt(Ct){return()=>Ct.scrollStrategies.reposition({scrollThrottle:20})}},Zt=new l.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function St(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),un="tooltip-panel",Jt=(0,re.i$)({passive:!0});let gi=(()=>{class Ct{get position(){return this._position}set position(J){J!==this._position&&(this._position=J,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(J){this._positionAtOrigin=(0,Z.Ig)(J),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(J){this._disabled=(0,Z.Ig)(J),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(J){this._showDelay=(0,Z.su)(J)}get hideDelay(){return this._hideDelay}set hideDelay(J){this._hideDelay=(0,Z.su)(J),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(J){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=J?String(J).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(J){this._tooltipClass=J,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An){this._overlay=J,this._elementRef=ae,this._scrollDispatcher=Oe,this._viewContainerRef=ot,this._ngZone=Se,this._platform=Ft,this._ariaDescriber=lt,this._focusMonitor=Bt,this._dir=fn,this._defaultOptions=gn,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new D.x,this._scrollStrategy=Ut,this._document=An,gn&&(this._showDelay=gn.showDelay,this._hideDelay=gn.hideDelay,gn.position&&(this.position=gn.position),gn.positionAtOrigin&&(this.positionAtOrigin=gn.positionAtOrigin),gn.touchGestures&&(this.touchGestures=gn.touchGestures)),fn.change.pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,w.R)(this._destroyed)).subscribe(J=>{J?"keyboard"===J&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const J=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ae,Oe])=>{J.removeEventListener(ae,Oe,Jt)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(J,this.message,"tooltip"),this._focusMonitor.stopMonitoring(J)}show(J=this.showDelay,ae){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const Oe=this._createOverlay(ae);this._detach(),this._portal=this._portal||new ce.C5(this._tooltipComponent,this._viewContainerRef);const ot=this._tooltipInstance=Oe.attach(this._portal).instance;ot._triggerElement=this._elementRef.nativeElement,ot._mouseLeaveHideDelay=this._hideDelay,ot.afterHidden().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),ot.show(J)}hide(J=this.hideDelay){const ae=this._tooltipInstance;ae&&(ae.isVisible()?ae.hide(J):(ae._cancelPendingAnimations(),this._detach()))}toggle(J){this._isTooltipVisible()?this.hide():this.show(void 0,J)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(J){if(this._overlayRef){const ot=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!J)&&ot._origin instanceof l.SBq)return this._overlayRef;this._detach()}const ae=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),Oe=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&J||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ae);return Oe.positionChanges.pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this._updateCurrentPositionClass(ot.connectionPair),this._tooltipInstance&&ot.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Oe,panelClass:`${this._cssClassPrefix}-${un}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,w.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this._isTooltipVisible()&&ot.keyCode===ee.hY&&!(0,ee.Vb)(ot)&&(ot.preventDefault(),ot.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(J){const ae=J.getConfig().positionStrategy,Oe=this._getOrigin(),ot=this._getOverlayPosition();ae.withPositions([this._addOffset({...Oe.main,...ot.main}),this._addOffset({...Oe.fallback,...ot.fallback})])}_addOffset(J){return J}_getOrigin(){const J=!this._dir||"ltr"==this._dir.value,ae=this.position;let Oe;"above"==ae||"below"==ae?Oe={originX:"center",originY:"above"==ae?"top":"bottom"}:"before"==ae||"left"==ae&&J||"right"==ae&&!J?Oe={originX:"start",originY:"center"}:("after"==ae||"right"==ae&&J||"left"==ae&&!J)&&(Oe={originX:"end",originY:"center"});const{x:ot,y:Se}=this._invertPosition(Oe.originX,Oe.originY);return{main:Oe,fallback:{originX:ot,originY:Se}}}_getOverlayPosition(){const J=!this._dir||"ltr"==this._dir.value,ae=this.position;let Oe;"above"==ae?Oe={overlayX:"center",overlayY:"bottom"}:"below"==ae?Oe={overlayX:"center",overlayY:"top"}:"before"==ae||"left"==ae&&J||"right"==ae&&!J?Oe={overlayX:"end",overlayY:"center"}:("after"==ae||"right"==ae&&J||"left"==ae&&!J)&&(Oe={overlayX:"start",overlayY:"center"});const{x:ot,y:Se}=this._invertPosition(Oe.overlayX,Oe.overlayY);return{main:Oe,fallback:{overlayX:ot,overlayY:Se}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,n.q)(1),(0,w.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(J){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=J,this._tooltipInstance._markForCheck())}_invertPosition(J,ae){return"above"===this.position||"below"===this.position?"top"===ae?ae="bottom":"bottom"===ae&&(ae="top"):"end"===J?J="start":"start"===J&&(J="end"),{x:J,y:ae}}_updateCurrentPositionClass(J){const{overlayY:ae,originX:Oe,originY:ot}=J;let Se;if(Se="center"===ae?this._dir&&"rtl"===this._dir.value?"end"===Oe?"left":"right":"start"===Oe?"left":"right":"bottom"===ae&&"top"===ot?"above":"below",Se!==this._currentPosition){const Ft=this._overlayRef;if(Ft){const lt=`${this._cssClassPrefix}-${un}-`;Ft.removePanelClass(lt+this._currentPosition),Ft.addPanelClass(lt+Se)}this._currentPosition=Se}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",J=>{let ae;this._setupPointerExitEventsIfNeeded(),void 0!==J.x&&void 0!==J.y&&(ae=J),this.show(void 0,ae)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",J=>{const ae=J.targetTouches?.[0],Oe=ae?{x:ae.clientX,y:ae.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,Oe),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const J=[];if(this._platformSupportsMouseEvents())J.push(["mouseleave",ae=>{const Oe=ae.relatedTarget;(!Oe||!this._overlayRef?.overlayElement.contains(Oe))&&this.hide()}],["wheel",ae=>this._wheelListener(ae)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ae=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};J.push(["touchend",ae],["touchcancel",ae])}this._addListeners(J),this._passiveListeners.push(...J)}_addListeners(J){J.forEach(([ae,Oe])=>{this._elementRef.nativeElement.addEventListener(ae,Oe,Jt)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(J){if(this._isTooltipVisible()){const ae=this._document.elementFromPoint(J.clientX,J.clientY),Oe=this._elementRef.nativeElement;ae!==Oe&&!Oe.contains(ae)&&this.hide()}}_disableNativeGesturesIfNecessary(){const J=this.touchGestures;if("off"!==J){const ae=this._elementRef.nativeElement,Oe=ae.style;("on"===J||"INPUT"!==ae.nodeName&&"TEXTAREA"!==ae.nodeName)&&(Oe.userSelect=Oe.msUserSelect=Oe.webkitUserSelect=Oe.MozUserSelect="none"),("on"===J||!ae.draggable)&&(Oe.webkitUserDrag="none"),Oe.touchAction="none",Oe.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(ae){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Ct,inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}})}return Ct})(),Rn=(()=>{class Ct extends gi{constructor(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An){super(J,ae,Oe,ot,Se,Ft,lt,Bt,Ut,fn,gn,An),this._tooltipComponent=at,this._cssClassPrefix="mat-mdc",this._viewportMargin=8}_addOffset(J){const Oe=!this._dir||"ltr"==this._dir.value;return"top"===J.originY?J.offsetY=-8:"bottom"===J.originY?J.offsetY=8:"start"===J.originX?J.offsetX=Oe?-8:8:"end"===J.originX&&(J.offsetX=Oe?8:-8),J}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(te.aV),l.Y36(l.SBq),l.Y36(oe.mF),l.Y36(l.s_b),l.Y36(l.R0b),l.Y36(re.t4),l.Y36(ue.$s),l.Y36(ue.tE),l.Y36(je),l.Y36(se.Is,8),l.Y36(Zt,8),l.Y36(e.K0))};static#t=this.\u0275dir=l.lG2({type:Ct,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(ae,Oe){2&ae&&l.ekj("mat-mdc-tooltip-disabled",Oe.disabled)},exportAs:["matTooltip"],features:[l.qOj]})}return Ct})(),dt=(()=>{class Ct{constructor(J,ae){this._changeDetectorRef=J,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new D.x,this._animationsDisabled="NoopAnimations"===ae}show(J){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},J)}hide(J){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},J)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:J}){(!J||!this._triggerElement.contains(J))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){}_handleAnimationEnd({animationName:J}){(J===this._showAnimation||J===this._hideAnimation)&&this._finalizeAnimation(J===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(J){J?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(J){const ae=this._tooltip.nativeElement,Oe=this._showAnimation,ot=this._hideAnimation;if(ae.classList.remove(J?ot:Oe),ae.classList.add(J?Oe:ot),this._isVisible=J,J&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const Se=getComputedStyle(ae);("0s"===Se.getPropertyValue("animation-duration")||"none"===Se.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}J&&this._onShow(),this._animationsDisabled&&(ae.classList.add("_mat-animation-noopable"),this._finalizeAnimation(J))}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(l.sBO),l.Y36(l.QbO,8))};static#t=this.\u0275dir=l.lG2({type:Ct})}return Ct})(),at=(()=>{class Ct extends dt{constructor(J,ae,Oe){super(J,Oe),this._elementRef=ae,this._isMultiline=!1,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide"}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const J=this._elementRef.nativeElement.getBoundingClientRect();return J.height>24&&J.width>=200}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(l.sBO),l.Y36(l.SBq),l.Y36(l.QbO,8))};static#t=this.\u0275cmp=l.Xpm({type:Ct,selectors:[["mat-tooltip-component"]],viewQuery:function(ae,Oe){if(1&ae&&l.Gf(mt,7),2&ae){let ot;l.iGM(ot=l.CRH())&&(Oe._tooltip=ot.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ae,Oe){1&ae&&l.NdJ("mouseleave",function(Se){return Oe._handleMouseLeave(Se)}),2&ae&&l.Udp("zoom",Oe.isVisible()?1:null)},features:[l.qOj],decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(ae,Oe){1&ae&&(l.TgZ(0,"div",0,1),l.NdJ("animationend",function(Se){return Oe._handleAnimationEnd(Se)}),l.TgZ(2,"div",2),l._uU(3),l.qZA()()),2&ae&&(l.ekj("mdc-tooltip--multiline",Oe._isMultiline),l.Q6J("ngClass",Oe.tooltipClass),l.xp6(3),l.Oqu(Oe.message))},dependencies:[e.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - (2 * 8px));margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - (2 * 8px));align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip{--mdc-plain-tooltip-container-shape:4px;--mdc-plain-tooltip-supporting-text-line-height:16px}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return Ct})(),Ee=(()=>{class Ct{static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275mod=l.oAB({type:Ct});static#n=this.\u0275inj=l.cJS({providers:[xt],imports:[ue.rt,e.ez,te.U8,Re.BQ,Re.BQ,oe.ZD]})}return Ct})();var $e=C(9157);function me(Ct,Ce){if(1&Ct&&(l.TgZ(0,"mat-option",19),l._uU(1),l.qZA()),2&Ct){const J=Ce.$implicit;l.Q6J("value",J),l.xp6(1),l.hij(" ",J," ")}}function tt(Ct,Ce){if(1&Ct){const J=l.EpF();l.TgZ(0,"mat-form-field",16)(1,"mat-select",17),l.NdJ("selectionChange",function(Oe){l.CHM(J);const ot=l.oxw(2);return l.KtG(ot._changePageSize(Oe.value))}),l.YNc(2,me,2,2,"mat-option",18),l.qZA()()}if(2&Ct){const J=l.oxw(2);l.Q6J("appearance",J._formFieldAppearance)("color",J.color),l.xp6(1),l.Q6J("value",J.pageSize)("disabled",J.disabled)("aria-labelledby",J._pageSizeLabelId)("panelClass",J.selectConfig.panelClass||"")("disableOptionCentering",J.selectConfig.disableOptionCentering),l.xp6(1),l.Q6J("ngForOf",J._displayedPageSizeOptions)}}function he(Ct,Ce){if(1&Ct&&(l.TgZ(0,"div",20),l._uU(1),l.qZA()),2&Ct){const J=l.oxw(2);l.xp6(1),l.Oqu(J.pageSize)}}function Ze(Ct,Ce){if(1&Ct&&(l.TgZ(0,"div",12)(1,"div",13),l._uU(2),l.qZA(),l.YNc(3,tt,3,8,"mat-form-field",14),l.YNc(4,he,2,1,"div",15),l.qZA()),2&Ct){const J=l.oxw();l.xp6(1),l.s9C("id",J._pageSizeLabelId),l.xp6(1),l.hij(" ",J._intl.itemsPerPageLabel," "),l.xp6(1),l.Q6J("ngIf",J._displayedPageSizeOptions.length>1),l.xp6(1),l.Q6J("ngIf",J._displayedPageSizeOptions.length<=1)}}function rt(Ct,Ce){if(1&Ct){const J=l.EpF();l.TgZ(0,"button",21),l.NdJ("click",function(){l.CHM(J);const Oe=l.oxw();return l.KtG(Oe.firstPage())}),l.O4$(),l.TgZ(1,"svg",7),l._UZ(2,"path",22),l.qZA()()}if(2&Ct){const J=l.oxw();l.Q6J("matTooltip",J._intl.firstPageLabel)("matTooltipDisabled",J._previousButtonsDisabled())("matTooltipPosition","above")("disabled",J._previousButtonsDisabled()),l.uIk("aria-label",J._intl.firstPageLabel)}}function bt(Ct,Ce){if(1&Ct){const J=l.EpF();l.O4$(),l.kcU(),l.TgZ(0,"button",23),l.NdJ("click",function(){l.CHM(J);const Oe=l.oxw();return l.KtG(Oe.lastPage())}),l.O4$(),l.TgZ(1,"svg",7),l._UZ(2,"path",24),l.qZA()()}if(2&Ct){const J=l.oxw();l.Q6J("matTooltip",J._intl.lastPageLabel)("matTooltipDisabled",J._nextButtonsDisabled())("matTooltipPosition","above")("disabled",J._nextButtonsDisabled()),l.uIk("aria-label",J._intl.lastPageLabel)}}let Nt=(()=>{class Ct{constructor(){this.changes=new D.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(J,ae,Oe)=>{if(0==Oe||0==ae)return`0 of ${Oe}`;const ot=J*ae;return`${ot+1} \u2013 ${ot<(Oe=Math.max(Oe,0))?Math.min(ot+ae,Oe):ot+ae} of ${Oe}`}}static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275prov=l.Yz7({token:Ct,factory:Ct.\u0275fac,providedIn:"root"})}return Ct})();const nn={provide:Nt,deps:[[new l.FiY,new l.tp0,Nt]],useFactory:function Qt(Ct){return Ct||new Nt}},rn=new l.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),vn=(0,Re.Id)((0,Re.dB)(class{}));let ei=(()=>{class Ct extends vn{get pageIndex(){return this._pageIndex}set pageIndex(J){this._pageIndex=Math.max((0,Z.su)(J),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(J){this._length=(0,Z.su)(J),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(J){this._pageSize=Math.max((0,Z.su)(J),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(J){this._pageSizeOptions=(J||[]).map(ae=>(0,Z.su)(ae)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(J){this._hidePageSize=(0,Z.Ig)(J)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(J){this._showFirstLastButtons=(0,Z.Ig)(J)}constructor(J,ae,Oe){if(super(),this._intl=J,this._changeDetectorRef=ae,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.selectConfig={},this.page=new l.vpe,this._intlChanges=J.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),Oe){const{pageSize:ot,pageSizeOptions:Se,hidePageSize:Ft,showFirstLastButtons:lt}=Oe;null!=ot&&(this._pageSize=ot),null!=Se&&(this._pageSizeOptions=Se),null!=Ft&&(this._hidePageSize=Ft),null!=lt&&(this._showFirstLastButtons=lt)}}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const J=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(J)}previousPage(){if(!this.hasPreviousPage())return;const J=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(J)}firstPage(){if(!this.hasPreviousPage())return;const J=this.pageIndex;this.pageIndex=0,this._emitPageEvent(J)}lastPage(){if(!this.hasNextPage())return;const J=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(J)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const J=this.getNumberOfPages()-1;return this.pageIndexJ-ae),this._changeDetectorRef.markForCheck())}_emitPageEvent(J){this.page.emit({previousPageIndex:J,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}static#e=this.\u0275fac=function(ae){l.$Z()};static#t=this.\u0275dir=l.lG2({type:Ct,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",selectConfig:"selectConfig"},outputs:{page:"page"},features:[l.qOj]})}return Ct})(),Wn=0,Ve=(()=>{class Ct extends ei{constructor(J,ae,Oe){super(J,ae,Oe),this._pageSizeLabelId="mat-paginator-page-size-label-"+Wn++,this._formFieldAppearance=Oe?.formFieldAppearance||"outline"}static#e=this.\u0275fac=function(ae){return new(ae||Ct)(l.Y36(Nt),l.Y36(l.sBO),l.Y36(rn,8))};static#t=this.\u0275cmp=l.Xpm({type:Ct,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[l.qOj],decls:14,vars:14,consts:[[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],["class","mat-mdc-paginator-page-size",4,"ngIf"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-page-size-label",3,"id"],["class","mat-mdc-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-mdc-paginator-page-size-value",4,"ngIf"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],["hideSingleSelectionIndicator","",3,"value","disabled","aria-labelledby","panelClass","disableOptionCentering","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-mdc-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(ae,Oe){1&ae&&(l.TgZ(0,"div",0)(1,"div",1),l.YNc(2,Ze,5,4,"div",2),l.TgZ(3,"div",3)(4,"div",4),l._uU(5),l.qZA(),l.YNc(6,rt,3,5,"button",5),l.TgZ(7,"button",6),l.NdJ("click",function(){return Oe.previousPage()}),l.O4$(),l.TgZ(8,"svg",7),l._UZ(9,"path",8),l.qZA()(),l.kcU(),l.TgZ(10,"button",9),l.NdJ("click",function(){return Oe.nextPage()}),l.O4$(),l.TgZ(11,"svg",7),l._UZ(12,"path",10),l.qZA()(),l.YNc(13,bt,3,5,"button",11),l.qZA()()()),2&ae&&(l.xp6(2),l.Q6J("ngIf",!Oe.hidePageSize),l.xp6(3),l.hij(" ",Oe._intl.getRangeLabel(Oe.pageIndex,Oe.pageSize,Oe.length)," "),l.xp6(1),l.Q6J("ngIf",Oe.showFirstLastButtons),l.xp6(1),l.Q6J("matTooltip",Oe._intl.previousPageLabel)("matTooltipDisabled",Oe._previousButtonsDisabled())("matTooltipPosition","above")("disabled",Oe._previousButtonsDisabled()),l.uIk("aria-label",Oe._intl.previousPageLabel),l.xp6(3),l.Q6J("matTooltip",Oe._intl.nextPageLabel)("matTooltipDisabled",Oe._nextButtonsDisabled())("matTooltipPosition","above")("disabled",Oe._nextButtonsDisabled()),l.uIk("aria-label",Oe._intl.nextPageLabel),l.xp6(3),l.Q6J("ngIf",Oe.showFirstLastButtons))},dependencies:[e.sg,e.O5,I.RK,$e.KE,S.gD,Re.ey,Rn],styles:[".mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color);background-color:var(--mat-paginator-container-background-color);font-family:var(--mat-paginator-container-text-font);line-height:var(--mat-paginator-container-text-line-height);font-size:var(--mat-paginator-container-text-size);font-weight:var(--mat-paginator-container-text-weight);letter-spacing:var(--mat-paginator-container-text-tracking)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size)}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%;min-height:var(--mat-paginator-container-size)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color)}.mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color)}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}.cdk-high-contrast-active .mat-mdc-icon-button[disabled] .mat-mdc-paginator-icon,.cdk-high-contrast-active .mat-mdc-paginator-icon{fill:currentColor;fill:CanvasText}.cdk-high-contrast-active .mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Ct})(),ct=(()=>{class Ct{static#e=this.\u0275fac=function(ae){return new(ae||Ct)};static#t=this.\u0275mod=l.oAB({type:Ct});static#n=this.\u0275inj=l.cJS({providers:[nn],imports:[e.ez,I.ot,S.LD,Ee]})}return Ct})()},6007:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cv:()=>ue,pW:()=>ee});var e=C(5879),D=(C(6814),C(3680)),I=C(2605);const S=new e.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS"),Z=(0,D.pj)(class{constructor(se){this._elementRef=se}},"primary");let ee=(()=>{class se extends Z{constructor(oe,ce,_e,Re,mt){super(oe),this._ngZone=ce,this._changeDetectorRef=_e,this._animationMode=Re,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new e.vpe,this._mode="determinate",this._transitionendHandler=Ge=>{0===this.animationEnd.observers.length||!Ge.target||!Ge.target.classList.contains("mdc-linear-progress__primary-bar")||("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))},this._isNoopAnimation="NoopAnimations"===Re,mt&&(mt.color&&(this.color=this.defaultColor=mt.color),this.mode=mt.mode||this.mode)}get value(){return this._value}set value(oe){this._value=re((0,I.su)(oe)),this._changeDetectorRef.markForCheck()}get bufferValue(){return this._bufferValue||0}set bufferValue(oe){this._bufferValue=re((0,I.su)(oe)),this._changeDetectorRef.markForCheck()}get mode(){return this._mode}set mode(oe){this._mode=oe,this._changeDetectorRef.markForCheck()}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("transitionend",this._transitionendHandler)})}ngOnDestroy(){this._elementRef.nativeElement.removeEventListener("transitionend",this._transitionendHandler)}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${"buffer"===this.mode?this.bufferValue:100}%`}_isIndeterminate(){return"indeterminate"===this.mode||"query"===this.mode}static#e=this.\u0275fac=function(ce){return new(ce||se)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(e.sBO),e.Y36(e.QbO,8),e.Y36(S,8))};static#t=this.\u0275cmp=e.Xpm({type:se,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:8,hostBindings:function(ce,_e){2&ce&&(e.uIk("aria-valuenow",_e._isIndeterminate()?null:_e.value)("mode",_e.mode),e.ekj("_mat-animation-noopable",_e._isNoopAnimation)("mdc-linear-progress--animation-ready",!_e._isNoopAnimation)("mdc-linear-progress--indeterminate",_e._isIndeterminate()))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[e.qOj],decls:7,vars:4,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(ce,_e){1&ce&&(e.TgZ(0,"div",0),e._UZ(1,"div",1)(2,"div",2),e.qZA(),e.TgZ(3,"div",3),e._UZ(4,"span",4),e.qZA(),e.TgZ(5,"div",5),e._UZ(6,"span",4),e.qZA()),2&ce&&(e.xp6(1),e.Udp("flex-basis",_e._getBufferBarFlexBasis()),e.xp6(2),e.Udp("transform",_e._getPrimaryBarTransform()))},styles:["@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half))}100%{transform:translateX(var(--mdc-linear-progress-primary-full))}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full))}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(var(--mdc-linear-progress-primary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-primary-full-neg))}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(var(--mdc-linear-progress-secondary-quarter-neg))}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(var(--mdc-linear-progress-secondary-half-neg))}100%{transform:translateX(var(--mdc-linear-progress-secondary-full-neg))}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}@media screen and (forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden}.mdc-linear-progress__buffer-dots{background-repeat:repeat-x;flex:auto;transform:rotate(180deg);-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='xMinYMin slice'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/svg%3E\");animation:mdc-linear-progress-buffering 250ms infinite linear}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate 2s infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale 2s infinite linear}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__bar{right:0;-webkit-transform-origin:center right;transform-origin:center right}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress:not([dir=ltr]) .mdc-linear-progress__buffer-dots,.mdc-linear-progress[dir=rtl]:not([dir=ltr]) .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse 250ms infinite linear;transform:rotate(0)}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}[dir=rtl] .mdc-linear-progress:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar,.mdc-linear-progress[dir=rtl]:not([dir=ltr]).mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}.mdc-linear-progress--closed{opacity:0}.mdc-linear-progress--closed-animation-off .mdc-linear-progress__buffer-dots{animation:none}.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar,.mdc-linear-progress--closed-animation-off.mdc-linear-progress--indeterminate .mdc-linear-progress__bar .mdc-linear-progress__bar-inner{animation:none}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mdc-linear-progress-track-height) * -2.5))}}.mdc-linear-progress__bar-inner{border-color:var(--mdc-linear-progress-active-indicator-color)}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-color:rgba(0,0,0,0);background-image:url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill=''/%3E%3C/svg%3E\")}}.mdc-linear-progress{height:max(var(--mdc-linear-progress-track-height), var(--mdc-linear-progress-active-indicator-height))}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress{height:4px}}.mdc-linear-progress__bar{height:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__bar-inner{border-top-width:var(--mdc-linear-progress-active-indicator-height)}.mdc-linear-progress__buffer{height:var(--mdc-linear-progress-track-height)}@media all and (-ms-high-contrast: none),(-ms-high-contrast: active){.mdc-linear-progress__buffer-dots{background-size:10px var(--mdc-linear-progress-track-height)}}.mdc-linear-progress__buffer{border-radius:var(--mdc-linear-progress-track-shape)}.mat-mdc-progress-bar{--mdc-linear-progress-active-indicator-height:4px;--mdc-linear-progress-track-height:4px;--mdc-linear-progress-track-shape:0}.mat-mdc-progress-bar{display:block;text-align:left;--mdc-linear-progress-primary-half: 83.67142%;--mdc-linear-progress-primary-full: 200.611057%;--mdc-linear-progress-secondary-quarter: 37.651913%;--mdc-linear-progress-secondary-half: 84.386165%;--mdc-linear-progress-secondary-full: 160.277782%;--mdc-linear-progress-primary-half-neg: -83.67142%;--mdc-linear-progress-primary-full-neg: -200.611057%;--mdc-linear-progress-secondary-quarter-neg: -37.651913%;--mdc-linear-progress-secondary-half-neg: -84.386165%;--mdc-linear-progress-secondary-full-neg: -160.277782%}[dir=rtl] .mat-mdc-progress-bar{text-align:right}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}"],encapsulation:2,changeDetection:0})}return se})();function re(se,te=0,oe=100){return Math.max(te,Math.min(oe,se))}let ue=(()=>{class se{static#e=this.\u0275fac=function(ce){return new(ce||se)};static#t=this.\u0275mod=e.oAB({type:se});static#n=this.\u0275inj=e.cJS({imports:[D.BQ]})}return se})()},5940:(ft,Ie,C)=>{"use strict";C.d(Ie,{Cq:()=>oe,Ou:()=>se});var e=C(5879),l=C(3680),D=C(2605),I=C(6814);const S=["determinateSpinner"];function w(ce,_e){if(1&ce&&(e.O4$(),e.TgZ(0,"svg",11),e._UZ(1,"circle",12),e.qZA()),2&ce){const Re=e.oxw();e.uIk("viewBox",Re._viewBox()),e.xp6(1),e.Udp("stroke-dasharray",Re._strokeCircumference(),"px")("stroke-dashoffset",Re._strokeCircumference()/2,"px")("stroke-width",Re._circleStrokeWidth(),"%"),e.uIk("r",Re._circleRadius())}}const n=(0,l.pj)(class{constructor(ce){this._elementRef=ce}},"primary"),Z=new e.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function ee(){return{diameter:re}}}),re=100;let se=(()=>{class ce extends n{constructor(Re,mt,Ge){super(Re),this.mode="mat-spinner"===this._elementRef.nativeElement.nodeName.toLowerCase()?"indeterminate":"determinate",this._value=0,this._diameter=re,this._noopAnimations="NoopAnimations"===mt&&!!Ge&&!Ge._forceAnimations,Ge&&(Ge.color&&(this.color=this.defaultColor=Ge.color),Ge.diameter&&(this.diameter=Ge.diameter),Ge.strokeWidth&&(this.strokeWidth=Ge.strokeWidth))}get value(){return"determinate"===this.mode?this._value:0}set value(Re){this._value=Math.max(0,Math.min(100,(0,D.su)(Re)))}get diameter(){return this._diameter}set diameter(Re){this._diameter=(0,D.su)(Re)}get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(Re){this._strokeWidth=(0,D.su)(Re)}_circleRadius(){return(this.diameter-10)/2}_viewBox(){const Re=2*this._circleRadius()+this.strokeWidth;return`0 0 ${Re} ${Re}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return"determinate"===this.mode?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static#e=this.\u0275fac=function(mt){return new(mt||ce)(e.Y36(e.SBq),e.Y36(e.QbO,8),e.Y36(Z))};static#t=this.\u0275cmp=e.Xpm({type:ce,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(mt,Ge){if(1&mt&&e.Gf(S,5),2&mt){let Lt;e.iGM(Lt=e.CRH())&&(Ge._determinateCircle=Lt.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:16,hostBindings:function(mt,Ge){2&mt&&(e.uIk("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow","determinate"===Ge.mode?Ge.value:null)("mode",Ge.mode),e.Udp("width",Ge.diameter,"px")("height",Ge.diameter,"px")("--mdc-circular-progress-size",Ge.diameter+"px")("--mdc-circular-progress-active-indicator-width",Ge.diameter+"px"),e.ekj("_mat-animation-noopable",Ge._noopAnimations)("mdc-circular-progress--indeterminate","indeterminate"===Ge.mode))},inputs:{color:"color",mode:"mode",value:"value",diameter:"diameter",strokeWidth:"strokeWidth"},exportAs:["matProgressSpinner"],features:[e.qOj],decls:14,vars:11,consts:[["circle",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["determinateSpinner",""],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(mt,Ge){if(1&mt&&(e.YNc(0,w,2,8,"ng-template",null,0,e.W1O),e.TgZ(2,"div",1,2),e.O4$(),e.TgZ(4,"svg",3),e._UZ(5,"circle",4),e.qZA()(),e.kcU(),e.TgZ(6,"div",5)(7,"div",6)(8,"div",7),e.GkF(9,8),e.qZA(),e.TgZ(10,"div",9),e.GkF(11,8),e.qZA(),e.TgZ(12,"div",10),e.GkF(13,8),e.qZA()()()),2&mt){const Lt=e.MAs(1);e.xp6(4),e.uIk("viewBox",Ge._viewBox()),e.xp6(1),e.Udp("stroke-dasharray",Ge._strokeCircumference(),"px")("stroke-dashoffset",Ge._strokeDashOffset(),"px")("stroke-width",Ge._circleStrokeWidth(),"%"),e.uIk("r",Ge._circleRadius()),e.xp6(4),e.Q6J("ngTemplateOutlet",Lt),e.xp6(2),e.Q6J("ngTemplateOutlet",Lt),e.xp6(2),e.Q6J("ngTemplateOutlet",Lt)}},dependencies:[I.tP],styles:["@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-color-1-fade-in-out{from{opacity:.99}25%{opacity:.99}26%{opacity:0}89%{opacity:0}90%{opacity:.99}to{opacity:.99}}@keyframes mdc-circular-progress-color-2-fade-in-out{from{opacity:0}15%{opacity:0}25%{opacity:.99}50%{opacity:.99}51%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-3-fade-in-out{from{opacity:0}40%{opacity:0}50%{opacity:.99}75%{opacity:.99}76%{opacity:0}to{opacity:0}}@keyframes mdc-circular-progress-color-4-fade-in-out{from{opacity:0}65%{opacity:0}75%{opacity:.99}90%{opacity:.99}to{opacity:0}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}.mdc-circular-progress{display:inline-flex;position:relative;direction:ltr;line-height:0;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-1{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-1-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-2{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-2-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-3{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-3-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__color-4{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both,mdc-circular-progress-color-4-fade-in-out 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--closed{opacity:0}.mat-mdc-progress-spinner{--mdc-circular-progress-active-indicator-width:4px;--mdc-circular-progress-size:48px}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width)}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-1 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-2 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-3 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mat-mdc-progress-spinner .mdc-circular-progress--four-color .mdc-circular-progress__color-4 .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mat-mdc-progress-spinner .mdc-circular-progress{width:var(--mdc-circular-progress-size) !important;height:var(--mdc-circular-progress-size) !important}.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.cdk-high-contrast-active .mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}"],encapsulation:2,changeDetection:0})}return ce})(),oe=(()=>{class ce{static#e=this.\u0275fac=function(mt){return new(mt||ce)};static#t=this.\u0275mod=e.oAB({type:ce});static#n=this.\u0275inj=e.cJS({imports:[I.ez,l.BQ]})}return ce})()},8525:(ft,Ie,C)=>{"use strict";C.d(Ie,{LD:()=>Qt,gD:()=>Nt});var e=C(3651),l=C(6814),D=C(5879),I=C(3680),S=C(9157),w=C(6672),n=C(4300),Z=C(9388),ee=C(2605),re=C(8337),ue=C(6028),se=C(6223),te=C(8645),oe=C(4911),ce=C(3019),_e=C(7921),Re=C(4664),mt=C(8180),Ge=C(2181),Lt=C(7398),je=C(3997),Tt=C(9773),xt=C(6825);const St=["trigger"],Zt=["panel"];function yt(nn,Dn){if(1&nn&&(D.TgZ(0,"span",10),D._uU(1),D.qZA()),2&nn){const Ot=D.oxw();D.xp6(1),D.Oqu(Ot.placeholder)}}function un(nn,Dn){if(1&nn&&(D.TgZ(0,"span",14),D._uU(1),D.qZA()),2&nn){const Ot=D.oxw(2);D.xp6(1),D.Oqu(Ot.triggerValue)}}function Jt(nn,Dn){1&nn&&D.Hsn(0,0,["*ngSwitchCase","true"])}function tn(nn,Dn){if(1&nn&&(D.TgZ(0,"span",11),D.YNc(1,un,2,1,"span",12),D.YNc(2,Jt,1,0,"ng-content",13),D.qZA()),2&nn){const Ot=D.oxw();D.Q6J("ngSwitch",!!Ot.customTrigger),D.xp6(2),D.Q6J("ngSwitchCase",!0)}}function wn(nn,Dn){if(1&nn){const Ot=D.EpF();D.O4$(),D.kcU(),D.TgZ(0,"div",15,16),D.NdJ("@transformPanel.done",function(vn){D.CHM(Ot);const ei=D.oxw();return D.KtG(ei._panelDoneAnimatingStream.next(vn.toState))})("keydown",function(vn){D.CHM(Ot);const ei=D.oxw();return D.KtG(ei._handleKeydown(vn))}),D.Hsn(2,1),D.qZA()}if(2&nn){const Ot=D.oxw();D.Gre("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",Ot._getPanelTheme(),""),D.Q6J("ngClass",Ot.panelClass)("@transformPanel","showing"),D.uIk("id",Ot.id+"-panel")("aria-multiselectable",Ot.multiple)("aria-label",Ot.ariaLabel||null)("aria-labelledby",Ot._getPanelAriaLabelledby())}}const Ln=[[["mat-select-trigger"]],"*"],Yn=["mat-select-trigger","*"],ti={transformPanelWrap:(0,xt.X$)("transformPanelWrap",[(0,xt.eR)("* => void",(0,xt.IO)("@transformPanel",[(0,xt.pV)()],{optional:!0}))]),transformPanel:(0,xt.X$)("transformPanel",[(0,xt.SB)("void",(0,xt.oB)({opacity:0,transform:"scale(1, 0.8)"})),(0,xt.eR)("void => showing",(0,xt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,xt.oB)({opacity:1,transform:"scale(1, 1)"}))),(0,xt.eR)("* => void",(0,xt.jt)("100ms linear",(0,xt.oB)({opacity:0})))])};let at=0;const Be=new D.OlP("mat-select-scroll-strategy"),$e=new D.OlP("MAT_SELECT_CONFIG"),me={provide:Be,deps:[e.aV],useFactory:function Ee(nn){return()=>nn.scrollStrategies.reposition()}},tt=new D.OlP("MatSelectTrigger");class he{constructor(Dn,Ot){this.source=Dn,this.value=Ot}}const Ze=(0,I.Kr)((0,I.sb)((0,I.Id)((0,I.FD)(class{constructor(nn,Dn,Ot,rn,vn){this._elementRef=nn,this._defaultErrorStateMatcher=Dn,this._parentForm=Ot,this._parentFormGroup=rn,this.ngControl=vn,this.stateChanges=new te.x}}))));let rt=(()=>{class nn extends Ze{get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(Ot){this._placeholder=Ot,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(se.kI.required)??!1}set required(Ot){this._required=(0,ee.Ig)(Ot),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(Ot){this._multiple=(0,ee.Ig)(Ot)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(Ot){this._disableOptionCentering=(0,ee.Ig)(Ot)}get compareWith(){return this._compareWith}set compareWith(Ot){this._compareWith=Ot,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(Ot){this._assignValue(Ot)&&this._onChange(Ot)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(Ot){this._typeaheadDebounceInterval=(0,ee.su)(Ot)}get id(){return this._id}set id(Ot){this._id=Ot||this._uid,this.stateChanges.next()}constructor(Ot,rn,vn,ei,Wn,Ve,ct,Ct,Ce,J,ae,Oe,ot,Se){super(Wn,ei,ct,Ct,J),this._viewportRuler=Ot,this._changeDetectorRef=rn,this._ngZone=vn,this._dir=Ve,this._parentFormField=Ce,this._liveAnnouncer=ot,this._defaultOptions=Se,this._panelOpen=!1,this._compareWith=(Ft,lt)=>Ft===lt,this._uid="mat-select-"+at++,this._triggerAriaLabelledBy=null,this._destroy=new te.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+at++,this._panelDoneAnimatingStream=new te.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,oe.P)(()=>{const Ft=this.options;return Ft?Ft.changes.pipe((0,_e.O)(Ft),(0,Re.w)(()=>(0,ce.T)(...Ft.map(lt=>lt.onSelectionChange)))):this._ngZone.onStable.pipe((0,mt.q)(1),(0,Re.w)(()=>this.optionSelectionChanges))}),this.openedChange=new D.vpe,this._openedStream=this.openedChange.pipe((0,Ge.h)(Ft=>Ft),(0,Lt.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Ge.h)(Ft=>!Ft),(0,Lt.U)(()=>{})),this.selectionChange=new D.vpe,this.valueChange=new D.vpe,this._trackedModal=null,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Se?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Se.typeaheadDebounceInterval),this._scrollStrategyFactory=Oe,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(ae)||0,this.id=this.id}ngOnInit(){this._selectionModel=new re.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,je.x)(),(0,Tt.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,Tt.R)(this._destroy)).subscribe(Ot=>{Ot.added.forEach(rn=>rn.select()),Ot.removed.forEach(rn=>rn.deselect())}),this.options.changes.pipe((0,_e.O)(null),(0,Tt.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const Ot=this._getTriggerAriaLabelledby(),rn=this.ngControl;if(Ot!==this._triggerAriaLabelledBy){const vn=this._elementRef.nativeElement;this._triggerAriaLabelledBy=Ot,Ot?vn.setAttribute("aria-labelledby",Ot):vn.removeAttribute("aria-labelledby")}rn&&(this._previousControl!==rn.control&&(void 0!==this._previousControl&&null!==rn.disabled&&rn.disabled!==this.disabled&&(this.disabled=rn.disabled),this._previousControl=rn.control),this.updateErrorState())}ngOnChanges(Ot){(Ot.disabled||Ot.userAriaDescribedBy)&&this.stateChanges.next(),Ot.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._applyModalPanelOwnership(),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}_applyModalPanelOwnership(){const Ot=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!Ot)return;const rn=`${this.id}-panel`;this._trackedModal&&(0,n.iD)(this._trackedModal,"aria-owns",rn),(0,n.Zf)(Ot,"aria-owns",rn),this._trackedModal=Ot}_clearFromModal(){this._trackedModal&&((0,n.iD)(this._trackedModal,"aria-owns",`${this.id}-panel`),this._trackedModal=null)}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(Ot){this._assignValue(Ot)}registerOnChange(Ot){this._onChange=Ot}registerOnTouched(Ot){this._onTouched=Ot}setDisabledState(Ot){this.disabled=Ot,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const Ot=this._selectionModel.selected.map(rn=>rn.viewValue);return this._isRtl()&&Ot.reverse(),Ot.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(Ot){this.disabled||(this.panelOpen?this._handleOpenKeydown(Ot):this._handleClosedKeydown(Ot))}_handleClosedKeydown(Ot){const rn=Ot.keyCode,vn=rn===ue.JH||rn===ue.LH||rn===ue.oh||rn===ue.SV,ei=rn===ue.K5||rn===ue.L_,Wn=this._keyManager;if(!Wn.isTyping()&&ei&&!(0,ue.Vb)(Ot)||(this.multiple||Ot.altKey)&&vn)Ot.preventDefault(),this.open();else if(!this.multiple){const Ve=this.selected;Wn.onKeydown(Ot);const ct=this.selected;ct&&Ve!==ct&&this._liveAnnouncer.announce(ct.viewValue,1e4)}}_handleOpenKeydown(Ot){const rn=this._keyManager,vn=Ot.keyCode,ei=vn===ue.JH||vn===ue.LH,Wn=rn.isTyping();if(ei&&Ot.altKey)Ot.preventDefault(),this.close();else if(Wn||vn!==ue.K5&&vn!==ue.L_||!rn.activeItem||(0,ue.Vb)(Ot))if(!Wn&&this._multiple&&vn===ue.A&&Ot.ctrlKey){Ot.preventDefault();const Ve=this.options.some(ct=>!ct.disabled&&!ct.selected);this.options.forEach(ct=>{ct.disabled||(Ve?ct.select():ct.deselect())})}else{const Ve=rn.activeItemIndex;rn.onKeydown(Ot),this._multiple&&ei&&Ot.shiftKey&&rn.activeItem&&rn.activeItemIndex!==Ve&&rn.activeItem._selectViaInteraction()}else Ot.preventDefault(),rn.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,mt.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(Ot){if(this.options.forEach(rn=>rn.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&Ot)Array.isArray(Ot),Ot.forEach(rn=>this._selectOptionByValue(rn)),this._sortValues();else{const rn=this._selectOptionByValue(Ot);rn?this._keyManager.updateActiveItem(rn):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(Ot){const rn=this.options.find(vn=>{if(this._selectionModel.isSelected(vn))return!1;try{return null!=vn.value&&this._compareWith(vn.value,Ot)}catch{return!1}});return rn&&this._selectionModel.select(rn),rn}_assignValue(Ot){return!!(Ot!==this._value||this._multiple&&Array.isArray(Ot))&&(this.options&&this._setSelectionByValue(Ot),this._value=Ot,!0)}_skipPredicate(Ot){return Ot.disabled}_initKeyManager(){this._keyManager=new n.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const Ot=(0,ce.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,Tt.R)(Ot)).subscribe(rn=>{this._onSelect(rn.source,rn.isUserInput),rn.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,ce.T)(...this.options.map(rn=>rn._stateChanges)).pipe((0,Tt.R)(Ot)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(Ot,rn){const vn=this._selectionModel.isSelected(Ot);null!=Ot.value||this._multiple?(vn!==Ot.selected&&(Ot.selected?this._selectionModel.select(Ot):this._selectionModel.deselect(Ot)),rn&&this._keyManager.setActiveItem(Ot),this.multiple&&(this._sortValues(),rn&&this.focus())):(Ot.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(Ot.value)),vn!==this._selectionModel.isSelected(Ot)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const Ot=this.options.toArray();this._selectionModel.sort((rn,vn)=>this.sortComparator?this.sortComparator(rn,vn,Ot):Ot.indexOf(rn)-Ot.indexOf(vn)),this.stateChanges.next()}}_propagateChanges(Ot){let rn=null;rn=this.multiple?this.selected.map(vn=>vn.value):this.selected?this.selected.value:Ot,this._value=rn,this.valueChange.emit(rn),this._onChange(rn),this.selectionChange.emit(this._getChangeEvent(rn)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let Ot=-1;for(let rn=0;rn0}focus(Ot){this._elementRef.nativeElement.focus(Ot)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const Ot=this._parentFormField?.getLabelId();return this.ariaLabelledby?(Ot?Ot+" ":"")+this.ariaLabelledby:Ot}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const Ot=this._parentFormField?.getLabelId();let rn=(Ot?Ot+" ":"")+this._valueId;return this.ariaLabelledby&&(rn+=" "+this.ariaLabelledby),rn}_panelDoneAnimating(Ot){this.openedChange.emit(Ot)}setDescribedByIds(Ot){Ot.length?this._elementRef.nativeElement.setAttribute("aria-describedby",Ot.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}static#e=this.\u0275fac=function(rn){return new(rn||nn)(D.Y36(w.rL),D.Y36(D.sBO),D.Y36(D.R0b),D.Y36(I.rD),D.Y36(D.SBq),D.Y36(Z.Is,8),D.Y36(se.F,8),D.Y36(se.sg,8),D.Y36(S.G_,8),D.Y36(se.a5,10),D.$8M("tabindex"),D.Y36(Be),D.Y36(n.Kd),D.Y36($e,8))};static#t=this.\u0275dir=D.lG2({type:nn,viewQuery:function(rn,vn){if(1&rn&&(D.Gf(St,5),D.Gf(Zt,5),D.Gf(e.pI,5)),2&rn){let ei;D.iGM(ei=D.CRH())&&(vn.trigger=ei.first),D.iGM(ei=D.CRH())&&(vn.panel=ei.first),D.iGM(ei=D.CRH())&&(vn._overlayDir=ei.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[D.qOj,D.TTD]})}return nn})(),Nt=(()=>{class nn extends rt{constructor(){super(...arguments),this.panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto",this._positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}],this._hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1,this._skipPredicate=Ot=>!this.panelOpen&&Ot.disabled}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,Tt.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}open(){this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),super.open(),this.stateChanges.next()}close(){super.close(),this.stateChanges.next()}_scrollOptionIntoView(Ot){const rn=this.options.toArray()[Ot];if(rn){const vn=this.panel.nativeElement,ei=(0,I.CB)(Ot,this.options,this.optionGroups),Wn=rn._getHostElement();vn.scrollTop=0===Ot&&1===ei?0:(0,I.jH)(Wn.offsetTop,Wn.offsetHeight,vn.scrollTop,vn.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(Ot){return new he(this,Ot)}_getOverlayWidth(Ot){return"auto"===this.panelWidth?(Ot instanceof e.xu?Ot.elementRef:Ot||this._elementRef).nativeElement.getBoundingClientRect().width:null===this.panelWidth?"":this.panelWidth}get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(Ot){this._hideSingleSelectionIndicator=(0,ee.Ig)(Ot),this._syncParentProperties()}_syncParentProperties(){if(this.options)for(const Ot of this.options)Ot._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(){let Ot;return function(vn){return(Ot||(Ot=D.n5z(nn)))(vn||nn)}}();static#t=this.\u0275cmp=D.Xpm({type:nn,selectors:[["mat-select"]],contentQueries:function(rn,vn,ei){if(1&rn&&(D.Suo(ei,tt,5),D.Suo(ei,I.ey,5),D.Suo(ei,I.K7,5)),2&rn){let Wn;D.iGM(Wn=D.CRH())&&(vn.customTrigger=Wn.first),D.iGM(Wn=D.CRH())&&(vn.options=Wn),D.iGM(Wn=D.CRH())&&(vn.optionGroups=Wn)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","listbox","ngSkipHydration","",1,"mat-mdc-select"],hostVars:19,hostBindings:function(rn,vn){1&rn&&D.NdJ("keydown",function(Wn){return vn._handleKeydown(Wn)})("focus",function(){return vn._onFocus()})("blur",function(){return vn._onBlur()}),2&rn&&(D.uIk("id",vn.id)("tabindex",vn.tabIndex)("aria-controls",vn.panelOpen?vn.id+"-panel":null)("aria-expanded",vn.panelOpen)("aria-label",vn.ariaLabel||null)("aria-required",vn.required.toString())("aria-disabled",vn.disabled.toString())("aria-invalid",vn.errorState)("aria-activedescendant",vn._getAriaActiveDescendant()),D.ekj("mat-mdc-select-disabled",vn.disabled)("mat-mdc-select-invalid",vn.errorState)("mat-mdc-select-required",vn.required)("mat-mdc-select-empty",vn.empty)("mat-mdc-select-multiple",vn.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",panelWidth:"panelWidth",hideSingleSelectionIndicator:"hideSingleSelectionIndicator"},exportAs:["matSelect"],features:[D._Bn([{provide:S.Eo,useExisting:nn},{provide:I.HF,useExisting:nn}]),D.qOj],ngContentSelectors:Yn,decls:11,vars:10,consts:[["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],[1,"mat-mdc-select-value",3,"ngSwitch"],["class","mat-mdc-select-placeholder mat-mdc-select-min-line",4,"ngSwitchCase"],["class","mat-mdc-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","backdropClick","attach","detach"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text",3,"ngSwitch"],["class","mat-mdc-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(rn,vn){if(1&rn&&(D.F$t(Ln),D.TgZ(0,"div",0,1),D.NdJ("click",function(){return vn.toggle()}),D.TgZ(3,"div",2),D.YNc(4,yt,2,1,"span",3),D.YNc(5,tn,3,2,"span",4),D.qZA(),D.TgZ(6,"div",5)(7,"div",6),D.O4$(),D.TgZ(8,"svg",7),D._UZ(9,"path",8),D.qZA()()()(),D.YNc(10,wn,3,9,"ng-template",9),D.NdJ("backdropClick",function(){return vn.close()})("attach",function(){return vn._onAttached()})("detach",function(){return vn.close()})),2&rn){const ei=D.MAs(1);D.xp6(3),D.Q6J("ngSwitch",vn.empty),D.uIk("id",vn._valueId),D.xp6(1),D.Q6J("ngSwitchCase",!0),D.xp6(1),D.Q6J("ngSwitchCase",!1),D.xp6(5),D.Q6J("cdkConnectedOverlayPanelClass",vn._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",vn._scrollStrategy)("cdkConnectedOverlayOrigin",vn._preferredOverlayOrigin||ei)("cdkConnectedOverlayOpen",vn.panelOpen)("cdkConnectedOverlayPositions",vn._positions)("cdkConnectedOverlayWidth",vn._overlayWidth)}},dependencies:[l.mk,l.RF,l.n9,l.ED,e.pI,e.xu],styles:['.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color);font-family:var(--mat-select-trigger-text-font);line-height:var(--mat-select-trigger-text-line-height);font-size:var(--mat-select-trigger-text-size);font-weight:var(--mat-select-trigger-text-weight);letter-spacing:var(--mat-select-trigger-text-tracking)}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color)}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:translateY(-8px)}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color)}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow{color:var(--mat-select-invalid-arrow-color)}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color)}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .cdk-high-contrast-active .mat-mdc-select-arrow svg{fill:GrayText}div.mat-mdc-select-panel{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:static;background-color:var(--mat-select-panel-background-color)}.cdk-high-contrast-active div.mat-mdc-select-panel{outline:solid 1px}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color)}._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ti.transformPanel]},changeDetection:0})}return nn})(),Qt=(()=>{class nn{static#e=this.\u0275fac=function(rn){return new(rn||nn)};static#t=this.\u0275mod=D.oAB({type:nn});static#n=this.\u0275inj=D.cJS({providers:[me],imports:[l.ez,e.U8,I.Ng,I.BQ,w.ZD,S.lN,I.Ng,I.BQ]})}return nn})()},6593:(ft,Ie,C)=>{"use strict";C.d(Ie,{Dx:()=>Ve,H7:()=>ai,b2:()=>Ot,h_:()=>vn,q6:()=>Nt,se:()=>yt});var e=C(5879),l=C(6814);class D extends l.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class I extends D{static makeCurrent(){(0,l.HT)(new I)}onAndCancel(ze,be,Te){return ze.addEventListener(be,Te),()=>{ze.removeEventListener(be,Te)}}dispatchEvent(ze,be){ze.dispatchEvent(be)}remove(ze){ze.parentNode&&ze.parentNode.removeChild(ze)}createElement(ze,be){return(be=be||this.getDefaultDocument()).createElement(ze)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ze){return ze.nodeType===Node.ELEMENT_NODE}isShadowRoot(ze){return ze instanceof DocumentFragment}getGlobalEventTarget(ze,be){return"window"===be?window:"document"===be?ze:"body"===be?ze.body:null}getBaseHref(ze){const be=function w(){return S=S||document.querySelector("base"),S?S.getAttribute("href"):null}();return null==be?null:function Z(We){n=n||document.createElement("a"),n.setAttribute("href",We);const ze=n.pathname;return"/"===ze.charAt(0)?ze:`/${ze}`}(be)}resetBaseElement(){S=null}getUserAgent(){return window.navigator.userAgent}getCookie(ze){return(0,l.Mx)(document.cookie,ze)}}let n,S=null,re=(()=>{class We{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Te){return new(Te||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const ue=new e.OlP("EventManagerPlugins");let se=(()=>{class We{constructor(be,Te){this._zone=Te,this._eventNameToPlugin=new Map,be.forEach(He=>{He.manager=this}),this._plugins=be.slice().reverse()}addEventListener(be,Te,He){return this._findPluginFor(Te).addEventListener(be,Te,He)}getZone(){return this._zone}_findPluginFor(be){let Te=this._eventNameToPlugin.get(be);if(Te)return Te;if(Te=this._plugins.find(Wt=>Wt.supports(be)),!Te)throw new e.vHH(5101,!1);return this._eventNameToPlugin.set(be,Te),Te}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(ue),e.LFG(e.R0b))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();class te{constructor(ze){this._doc=ze}}const oe="ng-app-id";let ce=(()=>{class We{constructor(be,Te,He,Wt={}){this.doc=be,this.appId=Te,this.nonce=He,this.platformId=Wt,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,l.PM)(Wt),this.resetHostNodes()}addStyles(be){for(const Te of be)1===this.changeUsageCount(Te,1)&&this.onStyleAdded(Te)}removeStyles(be){for(const Te of be)this.changeUsageCount(Te,-1)<=0&&this.onStyleRemoved(Te)}ngOnDestroy(){const be=this.styleNodesInDOM;be&&(be.forEach(Te=>Te.remove()),be.clear());for(const Te of this.getAllStyles())this.onStyleRemoved(Te);this.resetHostNodes()}addHost(be){this.hostNodes.add(be);for(const Te of this.getAllStyles())this.addStyleToHost(be,Te)}removeHost(be){this.hostNodes.delete(be)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(be){for(const Te of this.hostNodes)this.addStyleToHost(Te,be)}onStyleRemoved(be){const Te=this.styleRef;Te.get(be)?.elements?.forEach(He=>He.remove()),Te.delete(be)}collectServerRenderedStyles(){const be=this.doc.head?.querySelectorAll(`style[${oe}="${this.appId}"]`);if(be?.length){const Te=new Map;return be.forEach(He=>{null!=He.textContent&&Te.set(He.textContent,He)}),Te}return null}changeUsageCount(be,Te){const He=this.styleRef;if(He.has(be)){const Wt=He.get(be);return Wt.usage+=Te,Wt.usage}return He.set(be,{usage:Te,elements:[]}),Te}getStyleElement(be,Te){const He=this.styleNodesInDOM,Wt=He?.get(Te);if(Wt?.parentNode===be)return He.delete(Te),Wt.removeAttribute(oe),Wt;{const Pn=this.doc.createElement("style");return this.nonce&&Pn.setAttribute("nonce",this.nonce),Pn.textContent=Te,this.platformIsServer&&Pn.setAttribute(oe,this.appId),Pn}}addStyleToHost(be,Te){const He=this.getStyleElement(be,Te);be.appendChild(He);const Wt=this.styleRef,Pn=Wt.get(Te)?.elements;Pn?Pn.push(He):Wt.set(Te,{elements:[He],usage:1})}resetHostNodes(){const be=this.hostNodes;be.clear(),be.add(this.doc.head)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0),e.LFG(e.AFp),e.LFG(e.Ojb,8),e.LFG(e.Lbi))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const _e={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/",math:"http://www.w3.org/1998/MathML/"},Re=/%COMP%/g,Tt=new e.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function Zt(We,ze){return ze.map(be=>be.replace(Re,We))}let yt=(()=>{class We{constructor(be,Te,He,Wt,Pn,wt,Yt,fe=null){this.eventManager=be,this.sharedStylesHost=Te,this.appId=He,this.removeStylesOnCompDestroy=Wt,this.doc=Pn,this.platformId=wt,this.ngZone=Yt,this.nonce=fe,this.rendererByCompId=new Map,this.platformIsServer=(0,l.PM)(wt),this.defaultRenderer=new un(be,Pn,Yt,this.platformIsServer)}createRenderer(be,Te){if(!be||!Te)return this.defaultRenderer;this.platformIsServer&&Te.encapsulation===e.ifc.ShadowDom&&(Te={...Te,encapsulation:e.ifc.Emulated});const He=this.getOrCreateRenderer(be,Te);return He instanceof ti?He.applyToHost(be):He instanceof Yn&&He.applyStyles(),He}getOrCreateRenderer(be,Te){const He=this.rendererByCompId;let Wt=He.get(Te.id);if(!Wt){const Pn=this.doc,wt=this.ngZone,Yt=this.eventManager,fe=this.sharedStylesHost,Mt=this.removeStylesOnCompDestroy,Vt=this.platformIsServer;switch(Te.encapsulation){case e.ifc.Emulated:Wt=new ti(Yt,fe,Te,this.appId,Mt,Pn,wt,Vt);break;case e.ifc.ShadowDom:return new Ln(Yt,fe,be,Te,Pn,wt,this.nonce,Vt);default:Wt=new Yn(Yt,fe,Te,Mt,Pn,wt,Vt)}He.set(Te.id,Wt)}return Wt}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(se),e.LFG(ce),e.LFG(e.AFp),e.LFG(Tt),e.LFG(l.K0),e.LFG(e.Lbi),e.LFG(e.R0b),e.LFG(e.Ojb))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();class un{constructor(ze,be,Te,He){this.eventManager=ze,this.doc=be,this.ngZone=Te,this.platformIsServer=He,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(ze,be){return be?this.doc.createElementNS(_e[be]||be,ze):this.doc.createElement(ze)}createComment(ze){return this.doc.createComment(ze)}createText(ze){return this.doc.createTextNode(ze)}appendChild(ze,be){(wn(ze)?ze.content:ze).appendChild(be)}insertBefore(ze,be,Te){ze&&(wn(ze)?ze.content:ze).insertBefore(be,Te)}removeChild(ze,be){ze&&ze.removeChild(be)}selectRootElement(ze,be){let Te="string"==typeof ze?this.doc.querySelector(ze):ze;if(!Te)throw new e.vHH(-5104,!1);return be||(Te.textContent=""),Te}parentNode(ze){return ze.parentNode}nextSibling(ze){return ze.nextSibling}setAttribute(ze,be,Te,He){if(He){be=He+":"+be;const Wt=_e[He];Wt?ze.setAttributeNS(Wt,be,Te):ze.setAttribute(be,Te)}else ze.setAttribute(be,Te)}removeAttribute(ze,be,Te){if(Te){const He=_e[Te];He?ze.removeAttributeNS(He,be):ze.removeAttribute(`${Te}:${be}`)}else ze.removeAttribute(be)}addClass(ze,be){ze.classList.add(be)}removeClass(ze,be){ze.classList.remove(be)}setStyle(ze,be,Te,He){He&(e.JOm.DashCase|e.JOm.Important)?ze.style.setProperty(be,Te,He&e.JOm.Important?"important":""):ze.style[be]=Te}removeStyle(ze,be,Te){Te&e.JOm.DashCase?ze.style.removeProperty(be):ze.style[be]=""}setProperty(ze,be,Te){ze[be]=Te}setValue(ze,be){ze.nodeValue=be}listen(ze,be,Te){if("string"==typeof ze&&!(ze=(0,l.q)().getGlobalEventTarget(this.doc,ze)))throw new Error(`Unsupported event target ${ze} for event ${be}`);return this.eventManager.addEventListener(ze,be,this.decoratePreventDefault(Te))}decoratePreventDefault(ze){return be=>{if("__ngUnwrap__"===be)return ze;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ze(be)):ze(be))&&be.preventDefault()}}}function wn(We){return"TEMPLATE"===We.tagName&&void 0!==We.content}class Ln extends un{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){super(ze,Wt,Pn,Yt),this.sharedStylesHost=be,this.hostEl=Te,this.shadowRoot=Te.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const fe=Zt(He.id,He.styles);for(const Mt of fe){const Vt=document.createElement("style");wt&&Vt.setAttribute("nonce",wt),Vt.textContent=Mt,this.shadowRoot.appendChild(Vt)}}nodeOrShadowRoot(ze){return ze===this.hostEl?this.shadowRoot:ze}appendChild(ze,be){return super.appendChild(this.nodeOrShadowRoot(ze),be)}insertBefore(ze,be,Te){return super.insertBefore(this.nodeOrShadowRoot(ze),be,Te)}removeChild(ze,be){return super.removeChild(this.nodeOrShadowRoot(ze),be)}parentNode(ze){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ze)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Yn extends un{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){super(ze,Wt,Pn,wt),this.sharedStylesHost=be,this.removeStylesOnCompDestroy=He,this.styles=Yt?Zt(Yt,Te.styles):Te.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class ti extends Yn{constructor(ze,be,Te,He,Wt,Pn,wt,Yt){const fe=He+"-"+Te.id;super(ze,be,Te,Wt,Pn,wt,Yt,fe),this.contentAttr=function xt(We){return"_ngcontent-%COMP%".replace(Re,We)}(fe),this.hostAttr=function St(We){return"_nghost-%COMP%".replace(Re,We)}(fe)}applyToHost(ze){this.applyStyles(),this.setAttribute(ze,this.hostAttr,"")}createElement(ze,be){const Te=super.createElement(ze,be);return super.setAttribute(Te,this.contentAttr,""),Te}}let gi=(()=>{class We extends te{constructor(be){super(be)}supports(be){return!0}addEventListener(be,Te,He){return be.addEventListener(Te,He,!1),()=>this.removeEventListener(be,Te,He)}removeEventListener(be,Te,He){return be.removeEventListener(Te,He)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const Rn=["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"},at={alt:We=>We.altKey,control:We=>We.ctrlKey,meta:We=>We.metaKey,shift:We=>We.shiftKey};let Be=(()=>{class We extends te{constructor(be){super(be)}supports(be){return null!=We.parseEventName(be)}addEventListener(be,Te,He){const Wt=We.parseEventName(Te),Pn=We.eventCallback(Wt.fullKey,He,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,l.q)().onAndCancel(be,Wt.domEventName,Pn))}static parseEventName(be){const Te=be.toLowerCase().split("."),He=Te.shift();if(0===Te.length||"keydown"!==He&&"keyup"!==He)return null;const Wt=We._normalizeKey(Te.pop());let Pn="",wt=Te.indexOf("code");if(wt>-1&&(Te.splice(wt,1),Pn="code."),Rn.forEach(fe=>{const Mt=Te.indexOf(fe);Mt>-1&&(Te.splice(Mt,1),Pn+=fe+".")}),Pn+=Wt,0!=Te.length||0===Wt.length)return null;const Yt={};return Yt.domEventName=He,Yt.fullKey=Pn,Yt}static matchEventFullKeyCode(be,Te){let He=dt[be.key]||be.key,Wt="";return Te.indexOf("code.")>-1&&(He=be.code,Wt="code."),!(null==He||!He)&&(He=He.toLowerCase()," "===He?He="space":"."===He&&(He="dot"),Rn.forEach(Pn=>{Pn!==He&&(0,at[Pn])(be)&&(Wt+=Pn+".")}),Wt+=He,Wt===Te)}static eventCallback(be,Te,He){return Wt=>{We.matchEventFullKeyCode(Wt,be)&&He.runGuarded(()=>Te(Wt))}}static _normalizeKey(be){return"esc"===be?"escape":be}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:We.\u0275fac})}return We})();const Nt=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:l.bD},{provide:e.g9A,useValue:function he(){I.makeCurrent()},multi:!0},{provide:l.K0,useFactory:function rt(){return(0,e.RDi)(document),document},deps:[]}]),Qt=new e.OlP(""),nn=[{provide:e.rWj,useClass:class ee{addToWindow(ze){e.dqk.getAngularTestability=(Te,He=!0)=>{const Wt=ze.findTestabilityInTree(Te,He);if(null==Wt)throw new e.vHH(5103,!1);return Wt},e.dqk.getAllAngularTestabilities=()=>ze.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>ze.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(Te=>{const He=e.dqk.getAllAngularTestabilities();let Wt=He.length,Pn=!1;const wt=function(Yt){Pn=Pn||Yt,Wt--,0==Wt&&Te(Pn)};He.forEach(Yt=>{Yt.whenStable(wt)})})}findTestabilityInTree(ze,be,Te){return null==be?null:ze.getTestability(be)??(Te?(0,l.q)().isShadowRoot(be)?this.findTestabilityInTree(ze,be.host,!0):this.findTestabilityInTree(ze,be.parentElement,!0):null)}},deps:[]},{provide:e.lri,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b,e.eoX,e.rWj]}],Dn=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function Ze(){return new e.qLn},deps:[]},{provide:ue,useClass:gi,multi:!0,deps:[l.K0,e.R0b,e.Lbi]},{provide:ue,useClass:Be,multi:!0,deps:[l.K0]},yt,ce,se,{provide:e.FYo,useExisting:yt},{provide:l.JF,useClass:re,deps:[]},[]];let Ot=(()=>{class We{constructor(be){}static withServerTransition(be){return{ngModule:We,providers:[{provide:e.AFp,useValue:be.appId}]}}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(Qt,12))};static#t=this.\u0275mod=e.oAB({type:We});static#n=this.\u0275inj=e.cJS({providers:[...Dn,...nn],imports:[l.ez,e.hGG]})}return We})(),vn=(()=>{class We{constructor(be){this._doc=be,this._dom=(0,l.q)()}addTag(be,Te=!1){return be?this._getOrCreateElement(be,Te):null}addTags(be,Te=!1){return be?be.reduce((He,Wt)=>(Wt&&He.push(this._getOrCreateElement(Wt,Te)),He),[]):[]}getTag(be){return be&&this._doc.querySelector(`meta[${be}]`)||null}getTags(be){if(!be)return[];const Te=this._doc.querySelectorAll(`meta[${be}]`);return Te?[].slice.call(Te):[]}updateTag(be,Te){if(!be)return null;Te=Te||this._parseSelector(be);const He=this.getTag(Te);return He?this._setMetaElementAttributes(be,He):this._getOrCreateElement(be,!0)}removeTag(be){this.removeTagElement(this.getTag(be))}removeTagElement(be){be&&this._dom.remove(be)}_getOrCreateElement(be,Te=!1){if(!Te){const Pn=this._parseSelector(be),wt=this.getTags(Pn).filter(Yt=>this._containsAttributes(be,Yt))[0];if(void 0!==wt)return wt}const He=this._dom.createElement("meta");return this._setMetaElementAttributes(be,He),this._doc.getElementsByTagName("head")[0].appendChild(He),He}_setMetaElementAttributes(be,Te){return Object.keys(be).forEach(He=>Te.setAttribute(this._getMetaKeyMap(He),be[He])),Te}_parseSelector(be){const Te=be.name?"name":"property";return`${Te}="${be[Te]}"`}_containsAttributes(be,Te){return Object.keys(be).every(He=>Te.getAttribute(this._getMetaKeyMap(He))===be[He])}_getMetaKeyMap(be){return ei[be]||be}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function rn(){return new vn((0,e.LFG)(l.K0))}(),He},providedIn:"root"})}return We})();const ei={httpEquiv:"http-equiv"};let Ve=(()=>{class We{constructor(be){this._doc=be}getTitle(){return this._doc.title}setTitle(be){this._doc.title=be||""}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function Wn(){return new Ve((0,e.LFG)(l.K0))}(),He},providedIn:"root"})}return We})();typeof window<"u"&&window;let ai=(()=>{class We{static#e=this.\u0275fac=function(Te){return new(Te||We)};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new(Te||We):e.LFG(oi),He},providedIn:"root"})}return We})(),oi=(()=>{class We extends ai{constructor(be){super(),this._doc=be}sanitize(be,Te){if(null==Te)return null;switch(be){case e.q3G.NONE:return Te;case e.q3G.HTML:return(0,e.qzn)(Te,"HTML")?(0,e.z3N)(Te):(0,e.EiD)(this._doc,String(Te)).toString();case e.q3G.STYLE:return(0,e.qzn)(Te,"Style")?(0,e.z3N)(Te):Te;case e.q3G.SCRIPT:if((0,e.qzn)(Te,"Script"))return(0,e.z3N)(Te);throw new e.vHH(5200,!1);case e.q3G.URL:return(0,e.qzn)(Te,"URL")?(0,e.z3N)(Te):(0,e.mCW)(String(Te));case e.q3G.RESOURCE_URL:if((0,e.qzn)(Te,"ResourceURL"))return(0,e.z3N)(Te);throw new e.vHH(5201,!1);default:throw new e.vHH(5202,!1)}}bypassSecurityTrustHtml(be){return(0,e.JVY)(be)}bypassSecurityTrustStyle(be){return(0,e.L6k)(be)}bypassSecurityTrustScript(be){return(0,e.eBb)(be)}bypassSecurityTrustUrl(be){return(0,e.LAX)(be)}bypassSecurityTrustResourceUrl(be){return(0,e.pB0)(be)}static#e=this.\u0275fac=function(Te){return new(Te||We)(e.LFG(l.K0))};static#t=this.\u0275prov=e.Yz7({token:We,factory:function(Te){let He=null;return He=Te?new Te:function di(We){return new oi(We.get(l.K0))}(e.LFG(e.zs3)),He},providedIn:"root"})}return We})()},1662:(ft,Ie,C)=>{"use strict";C.d(Ie,{gz:()=>wr,m2:()=>yo,OD:()=>$n,F0:()=>zr,rH:()=>oa,Bz:()=>Jl,lC:()=>_r});var e=C(5879),l=C(5592),D=C(4674),S=C(9666),w=C(2096),n=C(5619),Z=C(2572),ee=C(6973),re=C(5211),ue=C(4911),se=C(8407),te=C(8504),oe=C(6232),ce=C(3168),_e=C(8645),Re=C(7394),mt=C(6814),Ge=C(7398),Lt=C(4664),je=C(8180),Tt=C(7921),xt=C(2181),St=C(1631),Zt=C(1374),yt=C(6328),un=C(9397),Jt=C(6306),tn=C(6424),wn=C(3572),Ln=C(9360),Yn=C(8251);function ti(W){return W<=0?()=>oe.E:(0,Ln.e)((ne,V)=>{let ie=[];ne.subscribe((0,Yn.x)(V,xe=>{ie.push(xe),W{for(const xe of ie)V.next(xe);V.complete()},void 0,()=>{ie=null}))})}var gi=C(3026),Rn=C(2737),at=C(975),Be=C(4716),Ee=C(6196),$e=C(9773),me=C(7537),tt=C(6593);const he="primary",Ze=Symbol("RouteTitle");class rt{constructor(ne){this.params=ne||{}}has(ne){return Object.prototype.hasOwnProperty.call(this.params,ne)}get(ne){if(this.has(ne)){const V=this.params[ne];return Array.isArray(V)?V[0]:V}return null}getAll(ne){if(this.has(ne)){const V=this.params[ne];return Array.isArray(V)?V:[V]}return[]}get keys(){return Object.keys(this.params)}}function bt(W){return new rt(W)}function Nt(W,ne,V){const ie=V.path.split("/");if(ie.length>W.length||"full"===V.pathMatch&&(ne.hasChildren()||ie.lengthie[qe]===xe)}return W===ne}function Ot(W){return W.length>0?W[W.length-1]:null}function rn(W){return function I(W){return!!W&&(W instanceof l.y||(0,D.m)(W.lift)&&(0,D.m)(W.subscribe))}(W)?W:(0,e.QGY)(W)?(0,S.D)(Promise.resolve(W)):(0,w.of)(W)}const vn={exact:function ct(W,ne,V){if(!lt(W.segments,ne.segments)||!ae(W.segments,ne.segments,V)||W.numberOfChildren!==ne.numberOfChildren)return!1;for(const ie in ne.children)if(!W.children[ie]||!ct(W.children[ie],ne.children[ie],V))return!1;return!0},subset:Ce},ei={exact:function Ve(W,ne){return nn(W,ne)},subset:function Ct(W,ne){return Object.keys(ne).length<=Object.keys(W).length&&Object.keys(ne).every(V=>Dn(W[V],ne[V]))},ignored:()=>!0};function Wn(W,ne,V){return vn[V.paths](W.root,ne.root,V.matrixParams)&&ei[V.queryParams](W.queryParams,ne.queryParams)&&!("exact"===V.fragment&&W.fragment!==ne.fragment)}function Ce(W,ne,V){return J(W,ne,ne.segments,V)}function J(W,ne,V,ie){if(W.segments.length>V.length){const xe=W.segments.slice(0,V.length);return!(!lt(xe,V)||ne.hasChildren()||!ae(xe,V,ie))}if(W.segments.length===V.length){if(!lt(W.segments,V)||!ae(W.segments,V,ie))return!1;for(const xe in ne.children)if(!W.children[xe]||!Ce(W.children[xe],ne.children[xe],ie))return!1;return!0}{const xe=V.slice(0,W.segments.length),qe=V.slice(W.segments.length);return!!(lt(W.segments,xe)&&ae(W.segments,xe,ie)&&W.children[he])&&J(W.children[he],ne,qe,ie)}}function ae(W,ne,V){return ne.every((ie,xe)=>ei[V](W[xe].parameters,ie.parameters))}class Oe{constructor(ne=new ot([],{}),V={},ie=null){this.root=ne,this.queryParams=V,this.fragment=ie}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}toString(){return gn.serialize(this)}}class ot{constructor(ne,V){this.segments=ne,this.children=V,this.parent=null,Object.values(V).forEach(ie=>ie.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return An(this)}}class Se{constructor(ne,V){this.path=ne,this.parameters=V}get parameterMap(){return this._parameterMap||(this._parameterMap=bt(this.parameters)),this._parameterMap}toString(){return G(this)}}function lt(W,ne){return W.length===ne.length&&W.every((V,ie)=>V.path===ne[ie].path)}let Ut=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return new fn},providedIn:"root"})}return W})();class fn{parse(ne){const V=new Pn(ne);return new Oe(V.parseRootSegment(),V.parseQueryParams(),V.parseFragment())}serialize(ne){const V=`/${jn(ne.root,!0)}`,ie=function ve(W){const ne=Object.keys(W).map(V=>{const ie=W[V];return Array.isArray(ie)?ie.map(xe=>`${di(V)}=${di(xe)}`).join("&"):`${di(V)}=${di(ie)}`}).filter(V=>!!V);return ne.length?`?${ne.join("&")}`:""}(ne.queryParams);return`${V}${ie}${"string"==typeof ne.fragment?`#${function oi(W){return encodeURI(W)}(ne.fragment)}`:""}`}}const gn=new fn;function An(W){return W.segments.map(ne=>G(ne)).join("/")}function jn(W,ne){if(!W.hasChildren())return An(W);if(ne){const V=W.children[he]?jn(W.children[he],!1):"",ie=[];return Object.entries(W.children).forEach(([xe,qe])=>{xe!==he&&ie.push(`${xe}:${jn(qe,!1)}`)}),ie.length>0?`${V}(${ie.join("//")})`:V}{const V=function Bt(W,ne){let V=[];return Object.entries(W.children).forEach(([ie,xe])=>{ie===he&&(V=V.concat(ne(xe,ie)))}),Object.entries(W.children).forEach(([ie,xe])=>{ie!==he&&(V=V.concat(ne(xe,ie)))}),V}(W,(ie,xe)=>xe===he?[jn(W.children[he],!1)]:[`${xe}:${jn(ie,!1)}`]);return 1===Object.keys(W.children).length&&null!=W.children[he]?`${An(W)}/${V[0]}`:`${An(W)}/(${V.join("//")})`}}function ai(W){return encodeURIComponent(W).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function di(W){return ai(W).replace(/%3B/gi,";")}function Jn(W){return ai(W).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qt(W){return decodeURIComponent(W)}function _t(W){return qt(W.replace(/\+/g,"%20"))}function G(W){return`${Jn(W.path)}${function U(W){return Object.keys(W).map(ne=>`;${Jn(ne)}=${Jn(W[ne])}`).join("")}(W.parameters)}`}const Pe=/^[^\/()?;#]+/;function ut(W){const ne=W.match(Pe);return ne?ne[0]:""}const We=/^[^\/()?;=#]+/,be=/^[^=?&#]+/,He=/^[^&#]+/;class Pn{constructor(ne){this.url=ne,this.remaining=ne}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ot([],{}):new ot([],this.parseChildren())}parseQueryParams(){const ne={};if(this.consumeOptional("?"))do{this.parseQueryParam(ne)}while(this.consumeOptional("&"));return ne}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const ne=[];for(this.peekStartsWith("(")||ne.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),ne.push(this.parseSegment());let V={};this.peekStartsWith("/(")&&(this.capture("/"),V=this.parseParens(!0));let ie={};return this.peekStartsWith("(")&&(ie=this.parseParens(!1)),(ne.length>0||Object.keys(V).length>0)&&(ie[he]=new ot(ne,V)),ie}parseSegment(){const ne=ut(this.remaining);if(""===ne&&this.peekStartsWith(";"))throw new e.vHH(4009,!1);return this.capture(ne),new Se(qt(ne),this.parseMatrixParams())}parseMatrixParams(){const ne={};for(;this.consumeOptional(";");)this.parseParam(ne);return ne}parseParam(ne){const V=function ze(W){const ne=W.match(We);return ne?ne[0]:""}(this.remaining);if(!V)return;this.capture(V);let ie="";if(this.consumeOptional("=")){const xe=ut(this.remaining);xe&&(ie=xe,this.capture(ie))}ne[qt(V)]=qt(ie)}parseQueryParam(ne){const V=function Te(W){const ne=W.match(be);return ne?ne[0]:""}(this.remaining);if(!V)return;this.capture(V);let ie="";if(this.consumeOptional("=")){const Pt=function Wt(W){const ne=W.match(He);return ne?ne[0]:""}(this.remaining);Pt&&(ie=Pt,this.capture(ie))}const xe=_t(V),qe=_t(ie);if(ne.hasOwnProperty(xe)){let Pt=ne[xe];Array.isArray(Pt)||(Pt=[Pt],ne[xe]=Pt),Pt.push(qe)}else ne[xe]=qe}parseParens(ne){const V={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const ie=ut(this.remaining),xe=this.remaining[ie.length];if("/"!==xe&&")"!==xe&&";"!==xe)throw new e.vHH(4010,!1);let qe;ie.indexOf(":")>-1?(qe=ie.slice(0,ie.indexOf(":")),this.capture(qe),this.capture(":")):ne&&(qe=he);const Pt=this.parseChildren();V[qe]=1===Object.keys(Pt).length?Pt[he]:new ot([],Pt),this.consumeOptional("//")}return V}peekStartsWith(ne){return this.remaining.startsWith(ne)}consumeOptional(ne){return!!this.peekStartsWith(ne)&&(this.remaining=this.remaining.substring(ne.length),!0)}capture(ne){if(!this.consumeOptional(ne))throw new e.vHH(4011,!1)}}function wt(W){return W.segments.length>0?new ot([],{[he]:W}):W}function Yt(W){const ne={};for(const ie of Object.keys(W.children)){const qe=Yt(W.children[ie]);if(ie===he&&0===qe.segments.length&&qe.hasChildren())for(const[Pt,mn]of Object.entries(qe.children))ne[Pt]=mn;else(qe.segments.length>0||qe.hasChildren())&&(ne[ie]=qe)}return function fe(W){if(1===W.numberOfChildren&&W.children[he]){const ne=W.children[he];return new ot(W.segments.concat(ne.segments),ne.children)}return W}(new ot(W.segments,ne))}function Mt(W){return W instanceof Oe}function ht(W){let ne;const xe=wt(function V(qe){const Pt={};for(const hn of qe.children){const on=V(hn);Pt[hn.outlet]=on}const mn=new ot(qe.url,Pt);return qe===W&&(ne=mn),mn}(W.root));return ne??xe}function st(W,ne,V,ie){let xe=W;for(;xe.parent;)xe=xe.parent;if(0===ne.length)return _n(xe,xe,xe,V,ie);const qe=function ni(W){if("string"==typeof W[0]&&1===W.length&&"/"===W[0])return new On(!0,0,W);let ne=0,V=!1;const ie=W.reduce((xe,qe,Pt)=>{if("object"==typeof qe&&null!=qe){if(qe.outlets){const mn={};return Object.entries(qe.outlets).forEach(([hn,on])=>{mn[hn]="string"==typeof on?on.split("/"):on}),[...xe,{outlets:mn}]}if(qe.segmentPath)return[...xe,qe.segmentPath]}return"string"!=typeof qe?[...xe,qe]:0===Pt?(qe.split("/").forEach((mn,hn)=>{0==hn&&"."===mn||(0==hn&&""===mn?V=!0:".."===mn?ne++:""!=mn&&xe.push(mn))}),xe):[...xe,qe]},[]);return new On(V,ne,ie)}(ne);if(qe.toRoot())return _n(xe,xe,new ot([],{}),V,ie);const Pt=function fr(W,ne,V){if(W.isAbsolute)return new Vn(ne,!0,0);if(!V)return new Vn(ne,!1,NaN);if(null===V.parent)return new Vn(V,!0,0);const ie=It(W.commands[0])?0:1;return function ki(W,ne,V){let ie=W,xe=ne,qe=V;for(;qe>xe;){if(qe-=xe,ie=ie.parent,!ie)throw new e.vHH(4005,!1);xe=ie.segments.length}return new Vn(ie,!1,xe-qe)}(V,V.segments.length-1+ie,W.numberOfDoubleDots)}(qe,xe,W),mn=Pt.processChildren?Bi(Pt.segmentGroup,Pt.index,qe.commands):vr(Pt.segmentGroup,Pt.index,qe.commands);return _n(xe,Pt.segmentGroup,mn,V,ie)}function It(W){return"object"==typeof W&&null!=W&&!W.outlets&&!W.segmentPath}function cn(W){return"object"==typeof W&&null!=W&&W.outlets}function _n(W,ne,V,ie,xe){let Pt,qe={};ie&&Object.entries(ie).forEach(([hn,on])=>{qe[hn]=Array.isArray(on)?on.map(ji=>`${ji}`):`${on}`}),Pt=W===ne?V:En(W,ne,V);const mn=wt(Yt(Pt));return new Oe(mn,qe,xe)}function En(W,ne,V){const ie={};return Object.entries(W.children).forEach(([xe,qe])=>{ie[xe]=qe===ne?V:En(qe,ne,V)}),new ot(W.segments,ie)}class On{constructor(ne,V,ie){if(this.isAbsolute=ne,this.numberOfDoubleDots=V,this.commands=ie,ne&&ie.length>0&&It(ie[0]))throw new e.vHH(4003,!1);const xe=ie.find(cn);if(xe&&xe!==Ot(ie))throw new e.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Vn{constructor(ne,V,ie){this.segmentGroup=ne,this.processChildren=V,this.index=ie}}function vr(W,ne,V){if(W||(W=new ot([],{})),0===W.segments.length&&W.hasChildren())return Bi(W,ne,V);const ie=function co(W,ne,V){let ie=0,xe=ne;const qe={match:!1,pathIndex:0,commandIndex:0};for(;xe=V.length)return qe;const Pt=W.segments[xe],mn=V[ie];if(cn(mn))break;const hn=`${mn}`,on=ie0&&void 0===hn)break;if(hn&&on&&"object"==typeof on&&void 0===on.outlets){if(!bo(hn,on,Pt))return qe;ie+=2}else{if(!bo(hn,{},Pt))return qe;ie++}xe++}return{match:!0,pathIndex:xe,commandIndex:ie}}(W,ne,V),xe=V.slice(ie.commandIndex);if(ie.match&&ie.pathIndexqe!==he)&&W.children[he]&&1===W.numberOfChildren&&0===W.children[he].segments.length){const qe=Bi(W.children[he],ne,V);return new ot(W.segments,qe.children)}return Object.entries(ie).forEach(([qe,Pt])=>{"string"==typeof Pt&&(Pt=[Pt]),null!==Pt&&(xe[qe]=vr(W.children[qe],ne,Pt))}),Object.entries(W.children).forEach(([qe,Pt])=>{void 0===ie[qe]&&(xe[qe]=Pt)}),new ot(W.segments,xe)}}function Ji(W,ne,V){const ie=W.segments.slice(0,ne);let xe=0;for(;xe{"string"==typeof ie&&(ie=[ie]),null!==ie&&(ne[V]=Ji(new ot([],{}),0,ie))}),ne}function _i(W){const ne={};return Object.entries(W).forEach(([V,ie])=>ne[V]=`${ie}`),ne}function bo(W,ne,V){return W==V.path&&nn(ne,V.parameters)}const pr="imperative";class br{constructor(ne,V){this.id=ne,this.url=V}}class $n extends br{constructor(ne,V,ie="imperative",xe=null){super(ne,V),this.type=0,this.navigationTrigger=ie,this.restoredState=xe}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yo extends br{constructor(ne,V,ie){super(ne,V),this.urlAfterRedirects=ie,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Fr extends br{constructor(ne,V,ie,xe){super(ne,V),this.reason=ie,this.code=xe,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class uo extends br{constructor(ne,V,ie,xe){super(ne,V),this.reason=ie,this.code=xe,this.type=16}}class ho extends br{constructor(ne,V,ie,xe){super(ne,V),this.error=ie,this.target=xe,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class to extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yr extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Gs extends br{constructor(ne,V,ie,xe,qe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.shouldActivate=qe,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ba extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xl extends br{constructor(ne,V,ie,xe){super(ne,V),this.urlAfterRedirects=ie,this.state=xe,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class So{constructor(ne){this.route=ne,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ws{constructor(ne){this.route=ne,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ds{constructor(ne){this.snapshot=ne,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $s{constructor(ne){this.snapshot=ne,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Uo{constructor(ne){this.snapshot=ne,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jr{constructor(ne){this.snapshot=ne,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ga{constructor(ne,V,ie){this.routerEvent=ne,this.position=V,this.anchor=ie,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class kr{}class oo{constructor(ne){this.url=ne}}class Sa{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Vo,this.attachRef=null}}let Vo=(()=>{class W{constructor(){this.contexts=new Map}onChildOutletCreated(V,ie){const xe=this.getOrCreateContext(V);xe.outlet=ie,this.contexts.set(V,xe)}onChildOutletDestroyed(V){const ie=this.getContext(V);ie&&(ie.outlet=null,ie.attachRef=null)}onOutletDeactivated(){const V=this.contexts;return this.contexts=new Map,V}onOutletReAttached(V){this.contexts=V}getOrCreateContext(V){let ie=this.getContext(V);return ie||(ie=new Sa,this.contexts.set(V,ie)),ie}getContext(V){return this.contexts.get(V)||null}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();class oc{constructor(ne){this._root=ne}get root(){return this._root.value}parent(ne){const V=this.pathFromRoot(ne);return V.length>1?V[V.length-2]:null}children(ne){const V=Ks(ne,this._root);return V?V.children.map(ie=>ie.value):[]}firstChild(ne){const V=Ks(ne,this._root);return V&&V.children.length>0?V.children[0].value:null}siblings(ne){const V=Aa(ne,this._root);return V.length<2?[]:V[V.length-2].children.map(xe=>xe.value).filter(xe=>xe!==ne)}pathFromRoot(ne){return Aa(ne,this._root).map(V=>V.value)}}function Ks(W,ne){if(W===ne.value)return ne;for(const V of ne.children){const ie=Ks(W,V);if(ie)return ie}return null}function Aa(W,ne){if(W===ne.value)return[ne];for(const V of ne.children){const ie=Aa(W,V);if(ie.length)return ie.unshift(ne),ie}return[]}class qi{constructor(ne,V){this.value=ne,this.children=V}toString(){return`TreeNode(${this.value})`}}function Li(W){const ne={};return W&&W.children.forEach(V=>ne[V.value.outlet]=V),ne}class Yr extends oc{constructor(ne,V){super(ne),this.snapshot=V,ll(this,ne)}toString(){return this.snapshot.toString()}}function dr(W,ne){const V=function Ha(W,ne){const Pt=new Es([],{},{},"",{},he,ne,null,{});return new Js("",new qi(Pt,[]))}(0,ne),ie=new n.X([new Se("",{})]),xe=new n.X({}),qe=new n.X({}),Pt=new n.X({}),mn=new n.X(""),hn=new wr(ie,xe,Pt,mn,qe,he,ne,V.root);return hn.snapshot=V.root,new Yr(new qi(hn,[]),V)}class wr{constructor(ne,V,ie,xe,qe,Pt,mn,hn){this.urlSubject=ne,this.paramsSubject=V,this.queryParamsSubject=ie,this.fragmentSubject=xe,this.dataSubject=qe,this.outlet=Pt,this.component=mn,this._futureSnapshot=hn,this.title=this.dataSubject?.pipe((0,Ge.U)(on=>on[Ze]))??(0,w.of)(void 0),this.url=ne,this.params=V,this.queryParams=ie,this.fragment=xe,this.data=qe}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,Ge.U)(ne=>bt(ne)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ge.U)(ne=>bt(ne)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function al(W,ne="emptyOnly"){const V=W.pathFromRoot;let ie=0;if("always"!==ne)for(ie=V.length-1;ie>=1;){const xe=V[ie],qe=V[ie-1];if(xe.routeConfig&&""===xe.routeConfig.path)ie--;else{if(qe.component)break;ie--}}return function Vr(W){return W.reduce((ne,V)=>({params:{...ne.params,...V.params},data:{...ne.data,...V.data},resolve:{...V.data,...ne.resolve,...V.routeConfig?.data,...V._resolvedData}}),{params:{},data:{},resolve:{}})}(V.slice(ie))}class Es{get title(){return this.data?.[Ze]}constructor(ne,V,ie,xe,qe,Pt,mn,hn,on){this.url=ne,this.params=V,this.queryParams=ie,this.fragment=xe,this.data=qe,this.outlet=Pt,this.component=mn,this.routeConfig=hn,this._resolve=on}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=bt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(ie=>ie.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Js extends oc{constructor(ne,V){super(V),this.url=ne,ll(this,V)}toString(){return er(this._root)}}function ll(W,ne){ne.value._routerState=W,ne.children.forEach(V=>ll(W,V))}function er(W){const ne=W.children.length>0?` { ${W.children.map(er).join(", ")} } `:"";return`${W.value}${ne}`}function qn(W){if(W.snapshot){const ne=W.snapshot,V=W._futureSnapshot;W.snapshot=V,nn(ne.queryParams,V.queryParams)||W.queryParamsSubject.next(V.queryParams),ne.fragment!==V.fragment&&W.fragmentSubject.next(V.fragment),nn(ne.params,V.params)||W.paramsSubject.next(V.params),function Qt(W,ne){if(W.length!==ne.length)return!1;for(let V=0;Vnn(V.parameters,ne[ie].parameters))}(W.url,ne.url);return V&&!(!W.parent!=!ne.parent)&&(!W.parent||bi(W.parent,ne.parent))}let _r=(()=>{class W{constructor(){this.activated=null,this._activatedRoute=null,this.name=he,this.activateEvents=new e.vpe,this.deactivateEvents=new e.vpe,this.attachEvents=new e.vpe,this.detachEvents=new e.vpe,this.parentContexts=(0,e.f3M)(Vo),this.location=(0,e.f3M)(e.s_b),this.changeDetector=(0,e.f3M)(e.sBO),this.environmentInjector=(0,e.f3M)(e.lqb),this.inputBinder=(0,e.f3M)(jo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(V){if(V.name){const{firstChange:ie,previousValue:xe}=V.name;if(ie)return;this.isTrackedInParentContexts(xe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(xe)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(V){return this.parentContexts.getContext(V)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const V=this.parentContexts.getContext(this.name);V?.route&&(V.attachRef?this.attach(V.attachRef,V.route):this.activateWith(V.route,V.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.vHH(4012,!1);this.location.detach();const V=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(V.instance),V}attach(V,ie){this.activated=V,this._activatedRoute=ie,this.location.insert(V.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(V.instance)}deactivate(){if(this.activated){const V=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(V)}}activateWith(V,ie){if(this.isActivated)throw new e.vHH(4013,!1);this._activatedRoute=V;const xe=this.location,Pt=V.snapshot.component,mn=this.parentContexts.getOrCreateContext(this.name).children,hn=new wo(V,mn,xe.injector);this.activated=xe.createComponent(Pt,{index:xe.length,injector:hn,environmentInjector:ie??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275dir=e.lG2({type:W,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.TTD]})}return W})();class wo{constructor(ne,V,ie){this.route=ne,this.childContexts=V,this.parent=ie}get(ne,V){return ne===wr?this.route:ne===Vo?this.childContexts:this.parent.get(ne,V)}}const jo=new e.OlP("");let no=(()=>{class W{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(V){this.unsubscribeFromRouteData(V),this.subscribeToRouteData(V)}unsubscribeFromRouteData(V){this.outletDataSubscriptions.get(V)?.unsubscribe(),this.outletDataSubscriptions.delete(V)}subscribeToRouteData(V){const{activatedRoute:ie}=V,xe=(0,Z.a)([ie.queryParams,ie.params,ie.data]).pipe((0,Lt.w)(([qe,Pt,mn],hn)=>(mn={...qe,...Pt,...mn},0===hn?(0,w.of)(mn):Promise.resolve(mn)))).subscribe(qe=>{if(!V.isActivated||!V.activatedComponentRef||V.activatedRoute!==ie||null===ie.component)return void this.unsubscribeFromRouteData(V);const Pt=(0,e.qFp)(ie.component);if(Pt)for(const{templateName:mn}of Pt.inputs)V.activatedComponentRef.setInput(mn,qe[mn]);else this.unsubscribeFromRouteData(V)});this.outletDataSubscriptions.set(V,xe)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac})}return W})();function nr(W,ne,V){if(V&&W.shouldReuseRoute(ne.value,V.value.snapshot)){const ie=V.value;ie._futureSnapshot=ne.value;const xe=function ps(W,ne,V){return ne.children.map(ie=>{for(const xe of V.children)if(W.shouldReuseRoute(ie.value,xe.value.snapshot))return nr(W,ie,xe);return nr(W,ie)})}(W,ne,V);return new qi(ie,xe)}{if(W.shouldAttach(ne.value)){const qe=W.retrieve(ne.value);if(null!==qe){const Pt=qe.route;return Pt.value._futureSnapshot=ne.value,Pt.children=ne.children.map(mn=>nr(W,mn)),Pt}}const ie=function va(W){return new wr(new n.X(W.url),new n.X(W.params),new n.X(W.queryParams),new n.X(W.fragment),new n.X(W.data),W.outlet,W.component,W)}(ne.value),xe=ne.children.map(qe=>nr(W,qe));return new qi(ie,xe)}}const Ti="ngNavigationCancelingError";function qs(W,ne){const{redirectTo:V,navigationBehaviorOptions:ie}=Mt(ne)?{redirectTo:ne,navigationBehaviorOptions:void 0}:ne,xe=ba(!1,0,ne);return xe.url=V,xe.navigationBehaviorOptions=ie,xe}function ba(W,ne,V){const ie=new Error("NavigationCancelingError: "+(W||""));return ie[Ti]=!0,ie.cancellationCode=ne,V&&(ie.url=V),ie}function wi(W){return W&&W[Ti]}let Oo=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275cmp=e.Xpm({type:W,selectors:[["ng-component"]],standalone:!0,features:[e.jDz],decls:1,vars:0,template:function(ie,xe){1&ie&&e._UZ(0,"router-outlet")},dependencies:[_r],encapsulation:2})}return W})();function Jo(W){const ne=W.children&&W.children.map(Jo),V=ne?{...W,children:ne}:{...W};return!V.component&&!V.loadComponent&&(ne||V.loadChildren)&&V.outlet&&V.outlet!==he&&(V.component=Oo),V}function Io(W){return W.outlet||he}function fo(W){if(!W)return null;if(W.routeConfig?._injector)return W.routeConfig._injector;for(let ne=W.parent;ne;ne=ne.parent){const V=ne.routeConfig;if(V?._loadedInjector)return V._loadedInjector;if(V?._injector)return V._injector}return null}class Co{constructor(ne,V,ie,xe,qe){this.routeReuseStrategy=ne,this.futureState=V,this.currState=ie,this.forwardEvent=xe,this.inputBindingEnabled=qe}activate(ne){const V=this.futureState._root,ie=this.currState?this.currState._root:null;this.deactivateChildRoutes(V,ie,ne),qn(this.futureState.root),this.activateChildRoutes(V,ie,ne)}deactivateChildRoutes(ne,V,ie){const xe=Li(V);ne.children.forEach(qe=>{const Pt=qe.value.outlet;this.deactivateRoutes(qe,xe[Pt],ie),delete xe[Pt]}),Object.values(xe).forEach(qe=>{this.deactivateRouteAndItsChildren(qe,ie)})}deactivateRoutes(ne,V,ie){const xe=ne.value,qe=V?V.value:null;if(xe===qe)if(xe.component){const Pt=ie.getContext(xe.outlet);Pt&&this.deactivateChildRoutes(ne,V,Pt.children)}else this.deactivateChildRoutes(ne,V,ie);else qe&&this.deactivateRouteAndItsChildren(V,ie)}deactivateRouteAndItsChildren(ne,V){ne.value.component&&this.routeReuseStrategy.shouldDetach(ne.value.snapshot)?this.detachAndStoreRouteSubtree(ne,V):this.deactivateRouteAndOutlet(ne,V)}detachAndStoreRouteSubtree(ne,V){const ie=V.getContext(ne.value.outlet),xe=ie&&ne.value.component?ie.children:V,qe=Li(ne);for(const Pt of Object.keys(qe))this.deactivateRouteAndItsChildren(qe[Pt],xe);if(ie&&ie.outlet){const Pt=ie.outlet.detach(),mn=ie.children.onOutletDeactivated();this.routeReuseStrategy.store(ne.value.snapshot,{componentRef:Pt,route:ne,contexts:mn})}}deactivateRouteAndOutlet(ne,V){const ie=V.getContext(ne.value.outlet),xe=ie&&ne.value.component?ie.children:V,qe=Li(ne);for(const Pt of Object.keys(qe))this.deactivateRouteAndItsChildren(qe[Pt],xe);ie&&(ie.outlet&&(ie.outlet.deactivate(),ie.children.onOutletDeactivated()),ie.attachRef=null,ie.route=null)}activateChildRoutes(ne,V,ie){const xe=Li(V);ne.children.forEach(qe=>{this.activateRoutes(qe,xe[qe.value.outlet],ie),this.forwardEvent(new Jr(qe.value.snapshot))}),ne.children.length&&this.forwardEvent(new $s(ne.value.snapshot))}activateRoutes(ne,V,ie){const xe=ne.value,qe=V?V.value:null;if(qn(xe),xe===qe)if(xe.component){const Pt=ie.getOrCreateContext(xe.outlet);this.activateChildRoutes(ne,V,Pt.children)}else this.activateChildRoutes(ne,V,ie);else if(xe.component){const Pt=ie.getOrCreateContext(xe.outlet);if(this.routeReuseStrategy.shouldAttach(xe.snapshot)){const mn=this.routeReuseStrategy.retrieve(xe.snapshot);this.routeReuseStrategy.store(xe.snapshot,null),Pt.children.onOutletReAttached(mn.contexts),Pt.attachRef=mn.componentRef,Pt.route=mn.route.value,Pt.outlet&&Pt.outlet.attach(mn.componentRef,mn.route.value),qn(mn.route.value),this.activateChildRoutes(ne,null,Pt.children)}else{const mn=fo(xe.snapshot);Pt.attachRef=null,Pt.route=xe,Pt.injector=mn,Pt.outlet&&Pt.outlet.activateWith(xe,Pt.injector),this.activateChildRoutes(ne,null,Pt.children)}}else this.activateChildRoutes(ne,null,ie)}}class Br{constructor(ne){this.path=ne,this.route=this.path[this.path.length-1]}}class ea{constructor(ne,V){this.component=ne,this.route=V}}function po(W,ne,V){const ie=W._root;return Ss(ie,ne?ne._root:null,V,[ie.value])}function qo(W,ne){const V=Symbol(),ie=ne.get(W,V);return ie===V?"function"!=typeof W||(0,e.Z0I)(W)?ne.get(W):W:ie}function Ss(W,ne,V,ie,xe={canDeactivateChecks:[],canActivateChecks:[]}){const qe=Li(ne);return W.children.forEach(Pt=>{(function ya(W,ne,V,ie,xe={canDeactivateChecks:[],canActivateChecks:[]}){const qe=W.value,Pt=ne?ne.value:null,mn=V?V.getContext(W.value.outlet):null;if(Pt&&qe.routeConfig===Pt.routeConfig){const hn=function sr(W,ne,V){if("function"==typeof V)return V(W,ne);switch(V){case"pathParamsChange":return!lt(W.url,ne.url);case"pathParamsOrQueryParamsChange":return!lt(W.url,ne.url)||!nn(W.queryParams,ne.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!bi(W,ne)||!nn(W.queryParams,ne.queryParams);default:return!bi(W,ne)}}(Pt,qe,qe.routeConfig.runGuardsAndResolvers);hn?xe.canActivateChecks.push(new Br(ie)):(qe.data=Pt.data,qe._resolvedData=Pt._resolvedData),Ss(W,ne,qe.component?mn?mn.children:null:V,ie,xe),hn&&mn&&mn.outlet&&mn.outlet.isActivated&&xe.canDeactivateChecks.push(new ea(mn.outlet.component,Pt))}else Pt&&Oa(ne,mn,xe),xe.canActivateChecks.push(new Br(ie)),Ss(W,null,qe.component?mn?mn.children:null:V,ie,xe)})(Pt,qe[Pt.value.outlet],V,ie.concat([Pt.value]),xe),delete qe[Pt.value.outlet]}),Object.entries(qe).forEach(([Pt,mn])=>Oa(mn,V.getContext(Pt),xe)),xe}function Oa(W,ne,V){const ie=Li(W),xe=W.value;Object.entries(ie).forEach(([qe,Pt])=>{Oa(Pt,xe.component?ne?ne.children.getContext(qe):null:ne,V)}),V.canDeactivateChecks.push(new ea(xe.component&&ne&&ne.outlet&&ne.outlet.isActivated?ne.outlet.component:null,xe))}function Ua(W){return"function"==typeof W}function Qn(W){return W instanceof ee.K||"EmptyError"===W?.name}const Ni=Symbol("INITIAL_VALUE");function Zo(){return(0,Lt.w)(W=>(0,Z.a)(W.map(ne=>ne.pipe((0,je.q)(1),(0,Tt.O)(Ni)))).pipe((0,Ge.U)(ne=>{for(const V of ne)if(!0!==V){if(V===Ni)return Ni;if(!1===V||V instanceof Oe)return V}return!0}),(0,xt.h)(ne=>ne!==Ni),(0,je.q)(1)))}function wa(W){return(0,se.z)((0,un.b)(ne=>{if(Mt(ne))throw qs(0,ne)}),(0,Ge.U)(ne=>!0===ne))}class Pr{constructor(ne){this.segmentGroup=ne||null}}class Ms{constructor(ne){this.urlTree=ne}}function As(W){return(0,te._)(new Pr(W))}function qr(W){return(0,te._)(new Ms(W))}class Va{constructor(ne,V){this.urlSerializer=ne,this.urlTree=V}noMatchError(ne){return new e.vHH(4002,!1)}lineralizeSegments(ne,V){let ie=[],xe=V.root;for(;;){if(ie=ie.concat(xe.segments),0===xe.numberOfChildren)return(0,w.of)(ie);if(xe.numberOfChildren>1||!xe.children[he])return(0,te._)(new e.vHH(4e3,!1));xe=xe.children[he]}}applyRedirectCommands(ne,V,ie){return this.applyRedirectCreateUrlTree(V,this.urlSerializer.parse(V),ne,ie)}applyRedirectCreateUrlTree(ne,V,ie,xe){const qe=this.createSegmentGroup(ne,V.root,ie,xe);return new Oe(qe,this.createQueryParams(V.queryParams,this.urlTree.queryParams),V.fragment)}createQueryParams(ne,V){const ie={};return Object.entries(ne).forEach(([xe,qe])=>{if("string"==typeof qe&&qe.startsWith(":")){const mn=qe.substring(1);ie[xe]=V[mn]}else ie[xe]=qe}),ie}createSegmentGroup(ne,V,ie,xe){const qe=this.createSegments(ne,V.segments,ie,xe);let Pt={};return Object.entries(V.children).forEach(([mn,hn])=>{Pt[mn]=this.createSegmentGroup(ne,hn,ie,xe)}),new ot(qe,Pt)}createSegments(ne,V,ie,xe){return V.map(qe=>qe.path.startsWith(":")?this.findPosParam(ne,qe,xe):this.findOrReturn(qe,ie))}findPosParam(ne,V,ie){const xe=ie[V.path.substring(1)];if(!xe)throw new e.vHH(4001,!1);return xe}findOrReturn(ne,V){let ie=0;for(const xe of V){if(xe.path===ne.path)return V.splice(ie),xe;ie++}return ne}}const Sl={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gl(W,ne,V,ie,xe){const qe=Hs(W,ne,V);return qe.matched?(ie=function Ko(W,ne){return W.providers&&!W._injector&&(W._injector=(0,e.MMx)(W.providers,ne,`Route: ${W.path}`)),W._injector??ne}(ne,ie),function Xo(W,ne,V,ie){const xe=ne.canMatch;if(!xe||0===xe.length)return(0,w.of)(!0);const qe=xe.map(Pt=>{const mn=qo(Pt,W);return rn(function le(W){return W&&Ua(W.canMatch)}(mn)?mn.canMatch(ne,V):W.runInContext(()=>mn(ne,V)))});return(0,w.of)(qe).pipe(Zo(),wa())}(ie,ne,V).pipe((0,Ge.U)(Pt=>!0===Pt?qe:{...Sl}))):(0,w.of)(qe)}function Hs(W,ne,V){if(""===ne.path)return"full"===ne.pathMatch&&(W.hasChildren()||V.length>0)?{...Sl}:{matched:!0,consumedSegments:[],remainingSegments:V,parameters:{},positionalParamSegments:{}};const xe=(ne.matcher||Nt)(V,W,ne);if(!xe)return{...Sl};const qe={};Object.entries(xe.posParams??{}).forEach(([mn,hn])=>{qe[mn]=hn.path});const Pt=xe.consumed.length>0?{...qe,...xe.consumed[xe.consumed.length-1].parameters}:qe;return{matched:!0,consumedSegments:xe.consumed,remainingSegments:V.slice(xe.consumed.length),parameters:Pt,positionalParamSegments:xe.posParams??{}}}function ja(W,ne,V,ie){return V.length>0&&function Wl(W,ne,V){return V.some(ie=>ns(W,ne,ie)&&Io(ie)!==he)}(W,V,ie)?{segmentGroup:new ot(ne,ts(ie,new ot(V,W.children))),slicedSegments:[]}:0===V.length&&function gs(W,ne,V){return V.some(ie=>ns(W,ne,ie))}(W,V,ie)?{segmentGroup:new ot(W.segments,es(W,0,V,ie,W.children)),slicedSegments:V}:{segmentGroup:new ot(W.segments,W.children),slicedSegments:V}}function es(W,ne,V,ie,xe){const qe={};for(const Pt of ie)if(ns(W,V,Pt)&&!xe[Io(Pt)]){const mn=new ot([],{});qe[Io(Pt)]=mn}return{...xe,...qe}}function ts(W,ne){const V={};V[he]=ne;for(const ie of W)if(""===ie.path&&Io(ie)!==he){const xe=new ot([],{});V[Io(ie)]=xe}return V}function ns(W,ne,V){return(!(W.hasChildren()||ne.length>0)||"full"!==V.pathMatch)&&""===V.path}class Za{constructor(ne,V,ie,xe,qe,Pt,mn){this.injector=ne,this.configLoader=V,this.rootComponentType=ie,this.config=xe,this.urlTree=qe,this.paramsInheritanceStrategy=Pt,this.urlSerializer=mn,this.allowRedirects=!0,this.applyRedirects=new Va(this.urlSerializer,this.urlTree)}noMatchError(ne){return new e.vHH(4002,!1)}recognize(){const ne=ja(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,ne,he).pipe((0,Jt.K)(V=>{if(V instanceof Ms)return this.allowRedirects=!1,this.urlTree=V.urlTree,this.match(V.urlTree);throw V instanceof Pr?this.noMatchError(V):V}),(0,Ge.U)(V=>{const ie=new Es([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},he,this.rootComponentType,null,{}),xe=new qi(ie,V),qe=new Js("",xe),Pt=function Vt(W,ne,V=null,ie=null){return st(ht(W),ne,V,ie)}(ie,[],this.urlTree.queryParams,this.urlTree.fragment);return Pt.queryParams=this.urlTree.queryParams,qe.url=this.urlSerializer.serialize(Pt),this.inheritParamsAndData(qe._root),{state:qe,tree:Pt}}))}match(ne){return this.processSegmentGroup(this.injector,this.config,ne.root,he).pipe((0,Jt.K)(ie=>{throw ie instanceof Pr?this.noMatchError(ie):ie}))}inheritParamsAndData(ne){const V=ne.value,ie=al(V,this.paramsInheritanceStrategy);V.params=Object.freeze(ie.params),V.data=Object.freeze(ie.data),ne.children.forEach(xe=>this.inheritParamsAndData(xe))}processSegmentGroup(ne,V,ie,xe){return 0===ie.segments.length&&ie.hasChildren()?this.processChildren(ne,V,ie):this.processSegment(ne,V,ie,ie.segments,xe,!0)}processChildren(ne,V,ie){const xe=[];for(const qe of Object.keys(ie.children))"primary"===qe?xe.unshift(qe):xe.push(qe);return(0,S.D)(xe).pipe((0,yt.b)(qe=>{const Pt=ie.children[qe],mn=function Ys(W,ne){const V=W.filter(ie=>Io(ie)===ne);return V.push(...W.filter(ie=>Io(ie)!==ne)),V}(V,qe);return this.processSegmentGroup(ne,mn,Pt,qe)}),(0,tn.R)((qe,Pt)=>(qe.push(...Pt),qe)),(0,wn.d)(null),function dt(W,ne){const V=arguments.length>=2;return ie=>ie.pipe(W?(0,xt.h)((xe,qe)=>W(xe,qe,ie)):Rn.y,ti(1),V?(0,wn.d)(ne):(0,gi.T)(()=>new ee.K))}(),(0,St.z)(qe=>{if(null===qe)return As(ie);const Pt=Tr(qe);return function za(W){W.sort((ne,V)=>ne.value.outlet===he?-1:V.value.outlet===he?1:ne.value.outlet.localeCompare(V.value.outlet))}(Pt),(0,w.of)(Pt)}))}processSegment(ne,V,ie,xe,qe,Pt){return(0,S.D)(V).pipe((0,yt.b)(mn=>this.processSegmentAgainstRoute(mn._injector??ne,V,mn,ie,xe,qe,Pt).pipe((0,Jt.K)(hn=>{if(hn instanceof Pr)return(0,w.of)(null);throw hn}))),(0,Zt.P)(mn=>!!mn),(0,Jt.K)(mn=>{if(Qn(mn))return function Os(W,ne,V){return 0===ne.length&&!W.children[V]}(ie,xe,qe)?(0,w.of)([]):As(ie);throw mn}))}processSegmentAgainstRoute(ne,V,ie,xe,qe,Pt,mn){return function vc(W,ne,V,ie){return!!(Io(W)===ie||ie!==he&&ns(ne,V,W))&&("**"===W.path||Hs(ne,W,V).matched)}(ie,xe,qe,Pt)?void 0===ie.redirectTo?this.matchSegmentAgainstRoute(ne,xe,ie,qe,Pt,mn):mn&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(ne,xe,V,ie,qe,Pt):As(xe):As(xe)}expandSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt){return"**"===xe.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(ne,ie,xe,Pt):this.expandRegularSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt)}expandWildCardWithParamsAgainstRouteUsingRedirect(ne,V,ie,xe){const qe=this.applyRedirects.applyRedirectCommands([],ie.redirectTo,{});return ie.redirectTo.startsWith("/")?qr(qe):this.applyRedirects.lineralizeSegments(ie,qe).pipe((0,St.z)(Pt=>{const mn=new ot(Pt,{});return this.processSegment(ne,V,mn,Pt,xe,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(ne,V,ie,xe,qe,Pt){const{matched:mn,consumedSegments:hn,remainingSegments:on,positionalParamSegments:ji}=Hs(V,xe,qe);if(!mn)return As(V);const Gr=this.applyRedirects.applyRedirectCommands(hn,xe.redirectTo,ji);return xe.redirectTo.startsWith("/")?qr(Gr):this.applyRedirects.lineralizeSegments(xe,Gr).pipe((0,St.z)($i=>this.processSegment(ne,ie,V,$i.concat(on),Pt,!1)))}matchSegmentAgainstRoute(ne,V,ie,xe,qe,Pt){let mn;if("**"===ie.path){const hn=xe.length>0?Ot(xe).parameters:{},on=new Es(xe,hn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kl(ie),Io(ie),ie.component??ie._loadedComponent??null,ie,Rs(ie));mn=(0,w.of)({snapshot:on,consumedSegments:[],remainingSegments:[]}),V.children={}}else mn=Gl(V,ie,xe,ne).pipe((0,Ge.U)(({matched:hn,consumedSegments:on,remainingSegments:ji,parameters:Gr})=>hn?{snapshot:new Es(on,Gr,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Kl(ie),Io(ie),ie.component??ie._loadedComponent??null,ie,Rs(ie)),consumedSegments:on,remainingSegments:ji}:null));return mn.pipe((0,Lt.w)(hn=>null===hn?As(V):this.getChildConfig(ne=ie._injector??ne,ie,xe).pipe((0,Lt.w)(({routes:on})=>{const ji=ie._loadedInjector??ne,{snapshot:Gr,consumedSegments:$i,remainingSegments:mi}=hn,{segmentGroup:Ps,slicedSegments:fl}=ja(V,$i,mi,on);if(0===fl.length&&Ps.hasChildren())return this.processChildren(ji,on,Ps).pipe((0,Ge.U)(Ja=>null===Ja?null:[new qi(Gr,Ja)]));if(0===on.length&&0===fl.length)return(0,w.of)([new qi(Gr,[])]);const Rl=Io(ie)===qe;return this.processSegment(ji,on,Ps,fl,Rl?he:qe,!0).pipe((0,Ge.U)(Ja=>[new qi(Gr,Ja)]))}))))}getChildConfig(ne,V,ie){return V.children?(0,w.of)({routes:V.children,injector:ne}):V.loadChildren?void 0!==V._loadedRoutes?(0,w.of)({routes:V._loadedRoutes,injector:V._loadedInjector}):function El(W,ne,V,ie){const xe=ne.canLoad;if(void 0===xe||0===xe.length)return(0,w.of)(!0);const qe=xe.map(Pt=>{const mn=qo(Pt,W);return rn(function ta(W){return W&&Ua(W.canLoad)}(mn)?mn.canLoad(ne,V):W.runInContext(()=>mn(ne,V)))});return(0,w.of)(qe).pipe(Zo(),wa())}(ne,V,ie).pipe((0,St.z)(xe=>xe?this.configLoader.loadChildren(ne,V).pipe((0,un.b)(qe=>{V._loadedRoutes=qe.routes,V._loadedInjector=qe.injector})):function Ro(W){return(0,te._)(ba(!1,3))}())):(0,w.of)({routes:[],injector:ne})}}function $l(W){const ne=W.value.routeConfig;return ne&&""===ne.path}function Tr(W){const ne=[],V=new Set;for(const ie of W){if(!$l(ie)){ne.push(ie);continue}const xe=ne.find(qe=>ie.value.routeConfig===qe.value.routeConfig);void 0!==xe?(xe.children.push(...ie.children),V.add(xe)):ne.push(ie)}for(const ie of V){const xe=Tr(ie.children);ne.push(new qi(ie.value,xe))}return ne.filter(ie=>!V.has(ie))}function Kl(W){return W.data||{}}function Rs(W){return W.resolve||{}}function is(W){return"string"==typeof W.title||null===W.title}function ro(W){return(0,Lt.w)(ne=>{const V=W(ne);return V?(0,S.D)(V).pipe((0,Ge.U)(()=>ne)):(0,w.of)(ne)})}const K=new e.OlP("ROUTES");let Ue=(()=>{class W{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,e.f3M)(e.Sil)}loadComponent(V){if(this.componentLoaders.get(V))return this.componentLoaders.get(V);if(V._loadedComponent)return(0,w.of)(V._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(V);const ie=rn(V.loadComponent()).pipe((0,Ge.U)(kt),(0,un.b)(qe=>{this.onLoadEndListener&&this.onLoadEndListener(V),V._loadedComponent=qe}),(0,Be.x)(()=>{this.componentLoaders.delete(V)})),xe=new ce.c(ie,()=>new _e.x).pipe((0,Ee.x)());return this.componentLoaders.set(V,xe),xe}loadChildren(V,ie){if(this.childrenLoaders.get(ie))return this.childrenLoaders.get(ie);if(ie._loadedRoutes)return(0,w.of)({routes:ie._loadedRoutes,injector:ie._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(ie);const qe=function ge(W,ne,V,ie){return rn(W.loadChildren()).pipe((0,Ge.U)(kt),(0,St.z)(xe=>xe instanceof e.YKP||Array.isArray(xe)?(0,w.of)(xe):(0,S.D)(ne.compileModuleAsync(xe))),(0,Ge.U)(xe=>{ie&&ie(W);let qe,Pt,mn=!1;return Array.isArray(xe)?(Pt=xe,!0):(qe=xe.create(V).injector,Pt=qe.get(K,[],{optional:!0,self:!0}).flat()),{routes:Pt.map(Jo),injector:qe}}))}(ie,this.compiler,V,this.onLoadEndListener).pipe((0,Be.x)(()=>{this.childrenLoaders.delete(ie)})),Pt=new ce.c(qe,()=>new _e.x).pipe((0,Ee.x)());return this.childrenLoaders.set(ie,Pt),Pt}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function kt(W){return function Ne(W){return W&&"object"==typeof W&&"default"in W}(W)?W.default:W}let pn=(()=>{class W{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new _e.x,this.transitionAbortSubject=new _e.x,this.configLoader=(0,e.f3M)(Ue),this.environmentInjector=(0,e.f3M)(e.lqb),this.urlSerializer=(0,e.f3M)(Ut),this.rootContexts=(0,e.f3M)(Vo),this.inputBindingEnabled=null!==(0,e.f3M)(jo,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,w.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=xe=>this.events.next(new Ws(xe)),this.configLoader.onLoadStartListener=xe=>this.events.next(new So(xe))}complete(){this.transitions?.complete()}handleNavigationRequest(V){const ie=++this.navigationId;this.transitions?.next({...this.transitions.value,...V,id:ie})}setupNavigations(V,ie,xe){return this.transitions=new n.X({id:0,currentUrlTree:ie,currentRawUrl:ie,currentBrowserUrl:ie,extractedUrl:V.urlHandlingStrategy.extract(ie),urlAfterRedirects:V.urlHandlingStrategy.extract(ie),rawUrl:ie,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:pr,restoredState:null,currentSnapshot:xe.snapshot,targetSnapshot:null,currentRouterState:xe,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,xt.h)(qe=>0!==qe.id),(0,Ge.U)(qe=>({...qe,extractedUrl:V.urlHandlingStrategy.extract(qe.rawUrl)})),(0,Lt.w)(qe=>{this.currentTransition=qe;let Pt=!1,mn=!1;return(0,w.of)(qe).pipe((0,un.b)(hn=>{this.currentNavigation={id:hn.id,initialUrl:hn.rawUrl,extractedUrl:hn.extractedUrl,trigger:hn.source,extras:hn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,Lt.w)(hn=>{const on=hn.currentBrowserUrl.toString(),ji=!V.navigated||hn.extractedUrl.toString()!==on||on!==hn.currentUrlTree.toString();if(!ji&&"reload"!==(hn.extras.onSameUrlNavigation??V.onSameUrlNavigation)){const $i="";return this.events.next(new uo(hn.id,this.urlSerializer.serialize(hn.rawUrl),$i,0)),hn.resolve(null),oe.E}if(V.urlHandlingStrategy.shouldProcessUrl(hn.rawUrl))return(0,w.of)(hn).pipe((0,Lt.w)($i=>{const mi=this.transitions?.getValue();return this.events.next(new $n($i.id,this.urlSerializer.serialize($i.extractedUrl),$i.source,$i.restoredState)),mi!==this.transitions?.getValue()?oe.E:Promise.resolve($i)}),function xa(W,ne,V,ie,xe,qe){return(0,St.z)(Pt=>function Is(W,ne,V,ie,xe,qe,Pt="emptyOnly"){return new Za(W,ne,V,ie,xe,Pt,qe).recognize()}(W,ne,V,ie,Pt.extractedUrl,xe,qe).pipe((0,Ge.U)(({state:mn,tree:hn})=>({...Pt,targetSnapshot:mn,urlAfterRedirects:hn}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,V.config,this.urlSerializer,V.paramsInheritanceStrategy),(0,un.b)($i=>{qe.targetSnapshot=$i.targetSnapshot,qe.urlAfterRedirects=$i.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:$i.urlAfterRedirects};const mi=new to($i.id,this.urlSerializer.serialize($i.extractedUrl),this.urlSerializer.serialize($i.urlAfterRedirects),$i.targetSnapshot);this.events.next(mi)}));if(ji&&V.urlHandlingStrategy.shouldProcessUrl(hn.currentRawUrl)){const{id:$i,extractedUrl:mi,source:Ps,restoredState:fl,extras:Rl}=hn,Ja=new $n($i,this.urlSerializer.serialize(mi),Ps,fl);this.events.next(Ja);const xd=dr(0,this.rootComponentType).snapshot;return this.currentTransition=qe={...hn,targetSnapshot:xd,urlAfterRedirects:mi,extras:{...Rl,skipLocationChange:!1,replaceUrl:!1}},(0,w.of)(qe)}{const $i="";return this.events.next(new uo(hn.id,this.urlSerializer.serialize(hn.extractedUrl),$i,1)),hn.resolve(null),oe.E}}),(0,un.b)(hn=>{const on=new yr(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects),hn.targetSnapshot);this.events.next(on)}),(0,Ge.U)(hn=>(this.currentTransition=qe={...hn,guards:po(hn.targetSnapshot,hn.currentSnapshot,this.rootContexts)},qe)),function Cl(W,ne){return(0,St.z)(V=>{const{targetSnapshot:ie,currentSnapshot:xe,guards:{canActivateChecks:qe,canDeactivateChecks:Pt}}=V;return 0===Pt.length&&0===qe.length?(0,w.of)({...V,guardsResult:!0}):function ia(W,ne,V,ie){return(0,S.D)(W).pipe((0,St.z)(xe=>function kc(W,ne,V,ie,xe){const qe=ne&&ne.routeConfig?ne.routeConfig.canDeactivate:null;if(!qe||0===qe.length)return(0,w.of)(!0);const Pt=qe.map(mn=>{const hn=fo(ne)??xe,on=qo(mn,hn);return rn(function Fe(W){return W&&Ua(W.canDeactivate)}(on)?on.canDeactivate(W,ne,V,ie):hn.runInContext(()=>on(W,ne,V,ie))).pipe((0,Zt.P)())});return(0,w.of)(Pt).pipe(Zo())}(xe.component,xe.route,V,ne,ie)),(0,Zt.P)(xe=>!0!==xe,!0))}(Pt,ie,xe,W).pipe((0,St.z)(mn=>mn&&function Ia(W){return"boolean"==typeof W}(mn)?function sc(W,ne,V,ie){return(0,S.D)(ne).pipe((0,yt.b)(xe=>(0,re.z)(function Tl(W,ne){return null!==W&&ne&&ne(new Ds(W)),(0,w.of)(!0)}(xe.route.parent,ie),function Lr(W,ne){return null!==W&&ne&&ne(new Uo(W)),(0,w.of)(!0)}(xe.route,ie),function Qo(W,ne,V){const ie=ne[ne.length-1],qe=ne.slice(0,ne.length-1).reverse().map(Pt=>function io(W){const ne=W.routeConfig?W.routeConfig.canActivateChild:null;return ne&&0!==ne.length?{node:W,guards:ne}:null}(Pt)).filter(Pt=>null!==Pt).map(Pt=>(0,ue.P)(()=>{const mn=Pt.guards.map(hn=>{const on=fo(Pt.node)??V,ji=qo(hn,on);return rn(function Ae(W){return W&&Ua(W.canActivateChild)}(ji)?ji.canActivateChild(ie,W):on.runInContext(()=>ji(ie,W))).pipe((0,Zt.P)())});return(0,w.of)(mn).pipe(Zo())}));return(0,w.of)(qe).pipe(Zo())}(W,xe.path,V),function Dl(W,ne,V){const ie=ne.routeConfig?ne.routeConfig.canActivate:null;if(!ie||0===ie.length)return(0,w.of)(!0);const xe=ie.map(qe=>(0,ue.P)(()=>{const Pt=fo(ne)??V,mn=qo(qe,Pt);return rn(function na(W){return W&&Ua(W.canActivate)}(mn)?mn.canActivate(ne,W):Pt.runInContext(()=>mn(ne,W))).pipe((0,Zt.P)())}));return(0,w.of)(xe).pipe(Zo())}(W,xe.route,V))),(0,Zt.P)(xe=>!0!==xe,!0))}(ie,qe,W,ne):(0,w.of)(mn)),(0,Ge.U)(mn=>({...V,guardsResult:mn})))})}(this.environmentInjector,hn=>this.events.next(hn)),(0,un.b)(hn=>{if(qe.guardsResult=hn.guardsResult,Mt(hn.guardsResult))throw qs(0,hn.guardsResult);const on=new Gs(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects),hn.targetSnapshot,!!hn.guardsResult);this.events.next(on)}),(0,xt.h)(hn=>!!hn.guardsResult||(this.cancelNavigationTransition(hn,"",3),!1)),ro(hn=>{if(hn.guards.canActivateChecks.length)return(0,w.of)(hn).pipe((0,un.b)(on=>{const ji=new Ba(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot);this.events.next(ji)}),(0,Lt.w)(on=>{let ji=!1;return(0,w.of)(on).pipe(function Ga(W,ne){return(0,St.z)(V=>{const{targetSnapshot:ie,guards:{canActivateChecks:xe}}=V;if(!xe.length)return(0,w.of)(V);let qe=0;return(0,S.D)(xe).pipe((0,yt.b)(Pt=>function Wa(W,ne,V,ie){const xe=W.routeConfig,qe=W._resolve;return void 0!==xe?.title&&!is(xe)&&(qe[Ze]=xe.title),function bc(W,ne,V,ie){const xe=function ra(W){return[...Object.keys(W),...Object.getOwnPropertySymbols(W)]}(W);if(0===xe.length)return(0,w.of)({});const qe={};return(0,S.D)(xe).pipe((0,St.z)(Pt=>function Al(W,ne,V,ie){const xe=fo(ne)??ie,qe=qo(W,xe);return rn(qe.resolve?qe.resolve(ne,V):xe.runInContext(()=>qe(ne,V)))}(W[Pt],ne,V,ie).pipe((0,Zt.P)(),(0,un.b)(mn=>{qe[Pt]=mn}))),ti(1),(0,at.h)(qe),(0,Jt.K)(Pt=>Qn(Pt)?oe.E:(0,te._)(Pt)))}(qe,W,ne,ie).pipe((0,Ge.U)(Pt=>(W._resolvedData=Pt,W.data=al(W,V).resolve,xe&&is(xe)&&(W.data[Ze]=xe.title),null)))}(Pt.route,ie,W,ne)),(0,un.b)(()=>qe++),ti(1),(0,St.z)(Pt=>qe===xe.length?(0,w.of)(V):oe.E))})}(V.paramsInheritanceStrategy,this.environmentInjector),(0,un.b)({next:()=>ji=!0,complete:()=>{ji||this.cancelNavigationTransition(on,"",2)}}))}),(0,un.b)(on=>{const ji=new xl(on.id,this.urlSerializer.serialize(on.extractedUrl),this.urlSerializer.serialize(on.urlAfterRedirects),on.targetSnapshot);this.events.next(ji)}))}),ro(hn=>{const on=ji=>{const Gr=[];ji.routeConfig?.loadComponent&&!ji.routeConfig._loadedComponent&&Gr.push(this.configLoader.loadComponent(ji.routeConfig).pipe((0,un.b)($i=>{ji.component=$i}),(0,Ge.U)(()=>{})));for(const $i of ji.children)Gr.push(...on($i));return Gr};return(0,Z.a)(on(hn.targetSnapshot.root)).pipe((0,wn.d)(),(0,je.q)(1))}),ro(()=>this.afterPreactivation()),(0,Ge.U)(hn=>{const on=function Ao(W,ne,V){const ie=nr(W,ne._root,V?V._root:void 0);return new Yr(ie,ne)}(V.routeReuseStrategy,hn.targetSnapshot,hn.currentRouterState);return this.currentTransition=qe={...hn,targetRouterState:on},qe}),(0,un.b)(()=>{this.events.next(new kr)}),((W,ne,V,ie)=>(0,Ge.U)(xe=>(new Co(ne,xe.targetRouterState,xe.currentRouterState,V,ie).activate(W),xe)))(this.rootContexts,V.routeReuseStrategy,hn=>this.events.next(hn),this.inputBindingEnabled),(0,je.q)(1),(0,un.b)({next:hn=>{Pt=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new yo(hn.id,this.urlSerializer.serialize(hn.extractedUrl),this.urlSerializer.serialize(hn.urlAfterRedirects))),V.titleStrategy?.updateTitle(hn.targetRouterState.snapshot),hn.resolve(!0)},complete:()=>{Pt=!0}}),(0,$e.R)(this.transitionAbortSubject.pipe((0,un.b)(hn=>{throw hn}))),(0,Be.x)(()=>{Pt||mn||this.cancelNavigationTransition(qe,"",1),this.currentNavigation?.id===qe.id&&(this.currentNavigation=null)}),(0,Jt.K)(hn=>{if(mn=!0,wi(hn))this.events.next(new Fr(qe.id,this.urlSerializer.serialize(qe.extractedUrl),hn.message,hn.cancellationCode)),function Qs(W){return wi(W)&&Mt(W.url)}(hn)?this.events.next(new oo(hn.url)):qe.resolve(!1);else{this.events.next(new ho(qe.id,this.urlSerializer.serialize(qe.extractedUrl),hn,qe.targetSnapshot??void 0));try{qe.resolve(V.errorHandler(hn))}catch(on){qe.reject(on)}}return oe.E}))}))}cancelNavigationTransition(V,ie,xe){const qe=new Fr(V.id,this.urlSerializer.serialize(V.extractedUrl),ie,xe);this.events.next(qe),V.resolve(!1)}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function Sn(W){return W!==pr}let li=(()=>{class W{buildTitle(V){let ie,xe=V.root;for(;void 0!==xe;)ie=this.getResolvedTitleForRoute(xe)??ie,xe=xe.children.find(qe=>qe.outlet===he);return ie}getResolvedTitleForRoute(V){return V.data[Ze]}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(ur)},providedIn:"root"})}return W})(),ur=(()=>{class W extends li{constructor(V){super(),this.title=V}updateTitle(V){const ie=this.buildTitle(V);void 0!==ie&&this.title.setTitle(ie)}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(tt.Dx))};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})(),hr=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(xi)},providedIn:"root"})}return W})();class ar{shouldDetach(ne){return!1}store(ne,V){}shouldAttach(ne){return!1}retrieve(ne){return null}shouldReuseRoute(ne,V){return ne.routeConfig===V.routeConfig}}let xi=(()=>{class W extends ar{static#e=this.\u0275fac=function(){let V;return function(xe){return(V||(V=e.n5z(W)))(xe||W)}}();static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();const Ar=new e.OlP("",{providedIn:"root",factory:()=>({})});let Nr=(()=>{class W{static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:function(){return(0,e.f3M)(mr)},providedIn:"root"})}return W})(),mr=(()=>{class W{shouldProcessUrl(V){return!0}extract(V){return V}merge(V,ie){return V}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();var vs=function(W){return W[W.COMPLETE=0]="COMPLETE",W[W.FAILED=1]="FAILED",W[W.REDIRECTING=2]="REDIRECTING",W}(vs||{});function bs(W,ne){W.events.pipe((0,xt.h)(V=>V instanceof yo||V instanceof Fr||V instanceof ho||V instanceof uo),(0,Ge.U)(V=>V instanceof yo||V instanceof uo?vs.COMPLETE:V instanceof Fr&&(0===V.code||1===V.code)?vs.REDIRECTING:vs.FAILED),(0,xt.h)(V=>V!==vs.REDIRECTING),(0,je.q)(1)).subscribe(()=>{ne()})}function $a(W){throw W}function Ui(W,ne,V){return ne.parse("/")}const Ma={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qr={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let zr=(()=>{class W{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,e.f3M)(e.c2e),this.isNgZoneEnabled=!1,this._events=new _e.x,this.options=(0,e.f3M)(Ar,{optional:!0})||{},this.pendingTasks=(0,e.f3M)(e.HDt),this.errorHandler=this.options.errorHandler||$a,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Ui,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,e.f3M)(Nr),this.routeReuseStrategy=(0,e.f3M)(hr),this.titleStrategy=(0,e.f3M)(li),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,e.f3M)(K,{optional:!0})?.flat()??[],this.navigationTransitions=(0,e.f3M)(pn),this.urlSerializer=(0,e.f3M)(Ut),this.location=(0,e.f3M)(mt.Ye),this.componentInputBindingEnabled=!!(0,e.f3M)(jo,{optional:!0}),this.eventsSubscription=new Re.w0,this.isNgZoneEnabled=(0,e.f3M)(e.R0b)instanceof e.R0b&&e.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Oe,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=dr(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(V=>{this.lastSuccessfulId=V.id,this.currentPageId=this.browserPageId},V=>{this.console.warn(`Unhandled Navigation Error: ${V}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const V=this.navigationTransitions.events.subscribe(ie=>{try{const{currentTransition:xe}=this.navigationTransitions;if(null===xe)return void(yi(ie)&&this._events.next(ie));if(ie instanceof $n)Sn(xe.source)&&(this.browserUrlTree=xe.extractedUrl);else if(ie instanceof uo)this.rawUrlTree=xe.rawUrl;else if(ie instanceof to){if("eager"===this.urlUpdateStrategy){if(!xe.extras.skipLocationChange){const qe=this.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl);this.setBrowserUrl(qe,xe)}this.browserUrlTree=xe.urlAfterRedirects}}else if(ie instanceof kr)this.currentUrlTree=xe.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(xe.urlAfterRedirects,xe.rawUrl),this.routerState=xe.targetRouterState,"deferred"===this.urlUpdateStrategy&&(xe.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,xe),this.browserUrlTree=xe.urlAfterRedirects);else if(ie instanceof Fr)0!==ie.code&&1!==ie.code&&(this.navigated=!0),(3===ie.code||2===ie.code)&&this.restoreHistory(xe);else if(ie instanceof oo){const qe=this.urlHandlingStrategy.merge(ie.url,xe.currentRawUrl),Pt={skipLocationChange:xe.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Sn(xe.source)};this.scheduleNavigation(qe,pr,null,Pt,{resolve:xe.resolve,reject:xe.reject,promise:xe.promise})}ie instanceof ho&&this.restoreHistory(xe,!0),ie instanceof yo&&(this.navigated=!0),yi(ie)&&this._events.next(ie)}catch(xe){this.navigationTransitions.transitionAbortSubject.next(xe)}});this.eventsSubscription.add(V)}resetRootComponentType(V){this.routerState.root.component=V,this.navigationTransitions.rootComponentType=V}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const V=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),pr,V)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(V=>{const ie="popstate"===V.type?"popstate":"hashchange";"popstate"===ie&&setTimeout(()=>{this.navigateToSyncWithBrowser(V.url,ie,V.state)},0)}))}navigateToSyncWithBrowser(V,ie,xe){const qe={replaceUrl:!0},Pt=xe?.navigationId?xe:null;if(xe){const hn={...xe};delete hn.navigationId,delete hn.\u0275routerPageId,0!==Object.keys(hn).length&&(qe.state=hn)}const mn=this.parseUrl(V);this.scheduleNavigation(mn,ie,Pt,qe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(V){this.config=V.map(Jo),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(V,ie={}){const{relativeTo:xe,queryParams:qe,fragment:Pt,queryParamsHandling:mn,preserveFragment:hn}=ie,on=hn?this.currentUrlTree.fragment:Pt;let Gr,ji=null;switch(mn){case"merge":ji={...this.currentUrlTree.queryParams,...qe};break;case"preserve":ji=this.currentUrlTree.queryParams;break;default:ji=qe||null}null!==ji&&(ji=this.removeEmptyProps(ji));try{Gr=ht(xe?xe.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof V[0]||!V[0].startsWith("/"))&&(V=[]),Gr=this.currentUrlTree.root}return st(Gr,V,ji,on??null)}navigateByUrl(V,ie={skipLocationChange:!1}){const xe=Mt(V)?V:this.parseUrl(V),qe=this.urlHandlingStrategy.merge(xe,this.rawUrlTree);return this.scheduleNavigation(qe,pr,null,ie)}navigate(V,ie={skipLocationChange:!1}){return function Qi(W){for(let ne=0;ne{const qe=V[xe];return null!=qe&&(ie[xe]=qe),ie},{})}scheduleNavigation(V,ie,xe,qe,Pt){if(this.disposed)return Promise.resolve(!1);let mn,hn,on;Pt?(mn=Pt.resolve,hn=Pt.reject,on=Pt.promise):on=new Promise((Gr,$i)=>{mn=Gr,hn=$i});const ji=this.pendingTasks.add();return bs(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(ji))}),this.navigationTransitions.handleNavigationRequest({source:ie,restoredState:xe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:V,extras:qe,resolve:mn,reject:hn,promise:on,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),on.catch(Gr=>Promise.reject(Gr))}setBrowserUrl(V,ie){const xe=this.urlSerializer.serialize(V);if(this.location.isCurrentPathEqualTo(xe)||ie.extras.replaceUrl){const Pt={...ie.extras.state,...this.generateNgRouterState(ie.id,this.browserPageId)};this.location.replaceState(xe,"",Pt)}else{const qe={...ie.extras.state,...this.generateNgRouterState(ie.id,this.browserPageId+1)};this.location.go(xe,"",qe)}}restoreHistory(V,ie=!1){if("computed"===this.canceledNavigationResolution){const qe=this.currentPageId-this.browserPageId;0!==qe?this.location.historyGo(qe):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===qe&&(this.resetState(V),this.browserUrlTree=V.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(ie&&this.resetState(V),this.resetUrlToCurrentUrlTree())}resetState(V){this.routerState=V.currentRouterState,this.currentUrlTree=V.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,V.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(V,ie){return"computed"===this.canceledNavigationResolution?{navigationId:V,\u0275routerPageId:ie}:{navigationId:V}}static#e=this.\u0275fac=function(ie){return new(ie||W)};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();function yi(W){return!(W instanceof kr||W instanceof oo)}let oa=(()=>{class W{constructor(V,ie,xe,qe,Pt,mn){this.router=V,this.route=ie,this.tabIndexAttribute=xe,this.renderer=qe,this.el=Pt,this.locationStrategy=mn,this.href=null,this.commands=null,this.onChanges=new _e.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const hn=Pt.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===hn||"area"===hn,this.isAnchorElement?this.subscription=V.events.subscribe(on=>{on instanceof yo&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(V){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",V)}ngOnChanges(V){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(V){null!=V?(this.commands=Array.isArray(V)?V:[V],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(V,ie,xe,qe,Pt){return!!(null===this.urlTree||this.isAnchorElement&&(0!==V||ie||xe||qe||Pt||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const V=null===this.href?null:(0,e.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",V)}applyAttributeValue(V,ie){const xe=this.renderer,qe=this.el.nativeElement;null!==ie?xe.setAttribute(qe,V,ie):xe.removeAttribute(qe,V)}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:this.preserveFragment})}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.Y36(zr),e.Y36(wr),e.$8M("tabindex"),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(mt.S$))};static#t=this.\u0275dir=e.lG2({type:W,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(ie,xe){1&ie&&e.NdJ("click",function(Pt){return xe.onClick(Pt.button,Pt.ctrlKey,Pt.shiftKey,Pt.altKey,Pt.metaKey)}),2&ie&&e.uIk("target",xe.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",e.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",e.VuI],replaceUrl:["replaceUrl","replaceUrl",e.VuI],routerLink:"routerLink"},standalone:!0,features:[e.Xq5,e.TTD]})}return W})();class Wi{}let ko=(()=>{class W{constructor(V,ie,xe,qe,Pt){this.router=V,this.injector=xe,this.preloadingStrategy=qe,this.loader=Pt}setUpPreloading(){this.subscription=this.router.events.pipe((0,xt.h)(V=>V instanceof yo),(0,yt.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(V,ie){const xe=[];for(const qe of ie){qe.providers&&!qe._injector&&(qe._injector=(0,e.MMx)(qe.providers,V,`Route: ${qe.path}`));const Pt=qe._injector??V,mn=qe._loadedInjector??Pt;(qe.loadChildren&&!qe._loadedRoutes&&void 0===qe.canLoad||qe.loadComponent&&!qe._loadedComponent)&&xe.push(this.preloadConfig(Pt,qe)),(qe.children||qe._loadedRoutes)&&xe.push(this.processRoutes(mn,qe.children??qe._loadedRoutes))}return(0,S.D)(xe).pipe((0,me.J)())}preloadConfig(V,ie){return this.preloadingStrategy.preload(ie,()=>{let xe;xe=ie.loadChildren&&void 0===ie.canLoad?this.loader.loadChildren(V,ie):(0,w.of)(null);const qe=xe.pipe((0,St.z)(Pt=>null===Pt?(0,w.of)(void 0):(ie._loadedRoutes=Pt.routes,ie._loadedInjector=Pt.injector,this.processRoutes(Pt.injector??V,Pt.routes))));if(ie.loadComponent&&!ie._loadedComponent){const Pt=this.loader.loadComponent(ie);return(0,S.D)([qe,Pt]).pipe((0,me.J)())}return qe})}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(zr),e.LFG(e.Sil),e.LFG(e.lqb),e.LFG(Wi),e.LFG(Ue))};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"})}return W})();const rs=new e.OlP("");let ul=(()=>{class W{constructor(V,ie,xe,qe,Pt={}){this.urlSerializer=V,this.transitions=ie,this.viewportScroller=xe,this.zone=qe,this.options=Pt,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},Pt.scrollPositionRestoration=Pt.scrollPositionRestoration||"disabled",Pt.anchorScrolling=Pt.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(V=>{V instanceof $n?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=V.navigationTrigger,this.restoredId=V.restoredState?V.restoredState.navigationId:0):V instanceof yo?(this.lastId=V.id,this.scheduleScrollEvent(V,this.urlSerializer.parse(V.urlAfterRedirects).fragment)):V instanceof uo&&0===V.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(V,this.urlSerializer.parse(V.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(V=>{V instanceof ga&&(V.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(V.position):V.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(V.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(V,ie){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ga(V,"popstate"===this.lastSource?this.store[this.restoredId]:null,ie))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(ie){e.$Z()};static#t=this.\u0275prov=e.Yz7({token:W,factory:W.\u0275fac})}return W})();function Vs(W,ne){return{\u0275kind:W,\u0275providers:ne}}function lc(){const W=(0,e.f3M)(e.zs3);return ne=>{const V=W.get(e.z2F);if(ne!==V.components[0])return;const ie=W.get(zr),xe=W.get(Ei);1===W.get(Ca)&&ie.initialNavigation(),W.get(sa,null,e.XFs.Optional)?.setUpPreloading(),W.get(rs,null,e.XFs.Optional)?.init(),ie.resetRootComponentType(V.componentTypes[0]),xe.closed||(xe.next(),xe.complete(),xe.unsubscribe())}}const Ei=new e.OlP("",{factory:()=>new _e.x}),Ca=new e.OlP("",{providedIn:"root",factory:()=>1}),sa=new e.OlP("");function cc(W){return Vs(0,[{provide:sa,useExisting:ko},{provide:Wi,useExisting:W}])}const Ol=new e.OlP("ROUTER_FORROOT_GUARD"),kn=[mt.Ye,{provide:Ut,useClass:fn},zr,Vo,{provide:wr,useFactory:function Us(W){return W.routerState.root},deps:[zr]},Ue,[]];function Fi(){return new e.PXZ("Router",zr)}let Jl=(()=>{class W{constructor(V){}static forRoot(V,ie){return{ngModule:W,providers:[kn,[],{provide:K,multi:!0,useValue:V},{provide:Ol,useFactory:gt,deps:[[zr,new e.FiY,new e.tp0]]},{provide:Ar,useValue:ie||{}},ie?.useHash?{provide:mt.S$,useClass:mt.Do}:{provide:mt.S$,useClass:mt.b0},{provide:rs,useFactory:()=>{const W=(0,e.f3M)(mt.EM),ne=(0,e.f3M)(e.R0b),V=(0,e.f3M)(Ar),ie=(0,e.f3M)(pn),xe=(0,e.f3M)(Ut);return V.scrollOffset&&W.setOffset(V.scrollOffset),new ul(xe,ie,W,ne,V)}},ie?.preloadingStrategy?cc(ie.preloadingStrategy).\u0275providers:[],{provide:e.PXZ,multi:!0,useFactory:Fi},ie?.initialNavigation?la(ie):[],ie?.bindToComponentInputs?Vs(8,[no,{provide:jo,useExisting:no}]).\u0275providers:[],[{provide:Ra,useFactory:lc},{provide:e.tb,multi:!0,useExisting:Ra}]]}}static forChild(V){return{ngModule:W,providers:[{provide:K,multi:!0,useValue:V}]}}static#e=this.\u0275fac=function(ie){return new(ie||W)(e.LFG(Ol,8))};static#t=this.\u0275mod=e.oAB({type:W});static#n=this.\u0275inj=e.cJS({})}return W})();function gt(W){return"guarded"}function la(W){return["disabled"===W.initialNavigation?Vs(3,[{provide:e.ip1,multi:!0,useFactory:()=>{const ne=(0,e.f3M)(zr);return()=>{ne.setUpLocationChangeListener()}}},{provide:Ca,useValue:2}]).\u0275providers:[],"enabledBlocking"===W.initialNavigation?Vs(2,[{provide:Ca,useValue:0},{provide:e.ip1,multi:!0,deps:[e.zs3],useFactory:ne=>{const V=ne.get(mt.V_,Promise.resolve());return()=>V.then(()=>new Promise(ie=>{const xe=ne.get(zr),qe=ne.get(Ei);bs(xe,()=>{ie(!0)}),ne.get(pn).afterPreactivation=()=>(ie(!0),qe.closed?(0,w.of)(void 0):qe),xe.initialNavigation()}))}}]).\u0275providers:[]]}const Ra=new e.OlP("")},9299:(ft,Ie,C)=>{"use strict";C.d(Ie,{u:()=>Mc,d:()=>dd});var e=C(5861),l=C(5879);function n(Ye,it=new Set){const pt=[Ye],sn=new Set;let Bn=0;for(;pt.length>Bn;){const ri=pt[Bn++];if(!sn.has(ri)&&Z(ri)&&!it.has(ri))if(sn.add(ri),Symbol.iterator in ri)try{for(const Hn of ri)pt.push(Hn)}catch{}else for(const Hn in ri)"defaultValue"!==Hn&&pt.push(ri[Hn])}return sn}function Z(Ye){const it=Object.prototype.toString.call(Ye),pt=typeof Ye;return!("number"===pt||"boolean"===pt||"string"===pt||"symbol"===pt||"function"===pt||"[object Date]"===it||"[object RegExp]"===it||"[object Module]"===it||null==Ye||Ye._watchdogExcluded||Ye instanceof EventTarget||Ye instanceof Event)}Symbol("MainQueueId");class se{constructor(it){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof it.crashNumberLimit?it.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof it.minimumNonErrorTimePeriod?it.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=pt=>{const sn="error"in pt?pt.error:pt.reason;sn instanceof Error&&this._handleError(sn,pt)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(it,pt){this._listeners[it]||(this._listeners[it]=[]),this._listeners[it].push(pt)}off(it,pt){this._listeners[it]=this._listeners[it].filter(sn=>sn!==pt)}_fire(it,...pt){const sn=this._listeners[it]||[];for(const Bn of sn)Bn.apply(this,[null,...pt])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(it,pt){if(this._shouldReactToError(it)){this.crashes.push({message:it.message,stack:it.stack,filename:pt instanceof ErrorEvent?pt.filename:void 0,lineno:pt instanceof ErrorEvent?pt.lineno:void 0,colno:pt instanceof ErrorEvent?pt.colno:void 0,date:this._now()});const sn=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:it,causesRestart:sn}),sn?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(it){return it.is&&it.is("CKEditorError")&&null!=it.context&&"ready"===this.state&&this._isErrorComingFromThisItem(it)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}const oe=function te(Ye){var it=typeof Ye;return null!=Ye&&("object"==it||"function"==it)},_e="object"==typeof global&&global&&global.Object===Object&&global;var Re="object"==typeof self&&self&&self.Object===Object&&self;const Ge=_e||Re||Function("return this")(),je=function(){return Ge.Date.now()};var Tt=/\s/;var Zt=/^\s+/;const un=function yt(Ye){return Ye&&Ye.slice(0,function xt(Ye){for(var it=Ye.length;it--&&Tt.test(Ye.charAt(it)););return it}(Ye)+1).replace(Zt,"")},tn=Ge.Symbol;var wn=Object.prototype,Ln=wn.hasOwnProperty,Yn=wn.toString,ti=tn?tn.toStringTag:void 0;var at=Object.prototype.toString;var tt=tn?tn.toStringTag:void 0;const Ze=function he(Ye){return null==Ye?void 0===Ye?"[object Undefined]":"[object Null]":tt&&tt in Object(Ye)?function gi(Ye){var it=Ln.call(Ye,ti),pt=Ye[ti];try{Ye[ti]=void 0;var sn=!0}catch{}var Bn=Yn.call(Ye);return sn&&(it?Ye[ti]=pt:delete Ye[ti]),Bn}(Ye):function Be(Ye){return at.call(Ye)}(Ye)},bt=function rt(Ye){return null!=Ye&&"object"==typeof Ye};var Ot=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,vn=/^0o[0-7]+$/i,ei=parseInt;const Ve=function Wn(Ye){if("number"==typeof Ye)return Ye;if(function Qt(Ye){return"symbol"==typeof Ye||bt(Ye)&&"[object Symbol]"==Ze(Ye)}(Ye))return NaN;if(oe(Ye)){var it="function"==typeof Ye.valueOf?Ye.valueOf():Ye;Ye=oe(it)?it+"":it}if("string"!=typeof Ye)return 0===Ye?Ye:+Ye;Ye=un(Ye);var pt=rn.test(Ye);return pt||vn.test(Ye)?ei(Ye.slice(2),pt?2:8):Ot.test(Ye)?NaN:+Ye};var Ct=Math.max,Ce=Math.min;const Se=function ot(Ye,it,pt){var sn=!0,Bn=!0;if("function"!=typeof Ye)throw new TypeError("Expected a function");return oe(pt)&&(sn="leading"in pt?!!pt.leading:sn,Bn="trailing"in pt?!!pt.trailing:Bn),function J(Ye,it,pt){var sn,Bn,ri,Hn,hi,Ci,Hi=0,Wr=!1,Ns=!1,Na=!0;if("function"!=typeof Ye)throw new TypeError("Expected a function");function Fl(cs){var gc=sn,vl=Bn;return sn=Bn=void 0,Hi=cs,Hn=Ye.apply(vl,gc)}function Da(cs){var gc=cs-Ci;return void 0===Ci||gc>=it||gc<0||Ns&&cs-Hi>=ri}function gl(){var cs=je();if(Da(cs))return Kc(cs);hi=setTimeout(gl,function $c(cs){var Yl=it-(cs-Ci);return Ns?Ce(Yl,ri-(cs-Hi)):Yl}(cs))}function Kc(cs){return hi=void 0,Na&&sn?Fl(cs):(sn=Bn=void 0,Hn)}function Ic(){var cs=je(),gc=Da(cs);if(sn=arguments,Bn=this,Ci=cs,gc){if(void 0===hi)return function ec(cs){return Hi=cs,hi=setTimeout(gl,it),Wr?Fl(cs):Hn}(Ci);if(Ns)return clearTimeout(hi),hi=setTimeout(gl,it),Fl(Ci)}return void 0===hi&&(hi=setTimeout(gl,it)),Hn}return it=Ve(it)||0,oe(pt)&&(Wr=!!pt.leading,ri=(Ns="maxWait"in pt)?Ct(Ve(pt.maxWait)||0,it):ri,Na="trailing"in pt?!!pt.trailing:Na),Ic.cancel=function Qd(){void 0!==hi&&clearTimeout(hi),Hi=0,sn=Ci=Bn=hi=void 0},Ic.flush=function Cc(){return void 0===hi?Hn:Kc(je())},Ic}(Ye,it,{leading:sn,maxWait:it,trailing:Bn})},lt=function Ft(Ye,it){return function(pt){return Ye(it(pt))}},Ut=lt(Object.getPrototypeOf,Object);var jn=Function.prototype.toString,ai=Object.prototype.hasOwnProperty,di=jn.call(Object);const _t=function qt(Ye){return bt(Ye)&&1===Ye.nodeType&&!function oi(Ye){if(!bt(Ye)||"[object Object]"!=Ze(Ye))return!1;var it=Ut(Ye);if(null===it)return!0;var pt=ai.call(it,"constructor")&&it.constructor;return"function"==typeof pt&&pt instanceof pt&&jn.call(pt)==di}(Ye)},Pe=function ve(Ye,it){return Ye===it||Ye!=Ye&&it!=it},We=function ut(Ye,it){for(var pt=Ye.length;pt--;)if(Pe(Ye[pt][0],it))return pt;return-1};var be=Array.prototype.splice;function Vt(Ye){var it=-1,pt=null==Ye?0:Ye.length;for(this.clear();++it-1},Vt.prototype.set=function fe(Ye,it){var pt=this.__data__,sn=We(pt,Ye);return sn<0?(++this.size,pt.push([Ye,it])):pt[sn][1]=it,this};const ht=Vt,co=function Bi(Ye){if(!oe(Ye))return!1;var it=Ze(Ye);return"[object Function]"==it||"[object GeneratorFunction]"==it||"[object AsyncFunction]"==it||"[object Proxy]"==it};var Ye,Ji=Ge["__core-js_shared__"],_i=(Ye=/[^.]+$/.exec(Ji&&Ji.keys&&Ji.keys.IE_PROTO||""))?"Symbol(src)_1."+Ye:"";var $n=Function.prototype.toString;const Fr=function yo(Ye){if(null!=Ye){try{return $n.call(Ye)}catch{}try{return Ye+""}catch{}}return""};var ho=/^\[object .+?Constructor\]$/,xl=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ws=function So(Ye){return!(!oe(Ye)||function bo(Ye){return!!_i&&_i in Ye}(Ye))&&(co(Ye)?xl:ho).test(Fr(Ye))},Jr=function Uo(Ye,it){var pt=function Ds(Ye,it){return Ye?.[it]}(Ye,it);return Ws(pt)?pt:void 0},kr=Jr(Ge,"Map"),fs=Jr(Object,"create");var Li=Object.prototype.hasOwnProperty;var wr=Object.prototype.hasOwnProperty;function er(Ye){var it=-1,pt=null==Ye?0:Ye.length;for(this.clear();++it-1&&Ye%1==0&&Ye-1&&Ye%1==0&&Ye<=9007199254740991};var Tr={};Tr["[object Float32Array]"]=Tr["[object Float64Array]"]=Tr["[object Int8Array]"]=Tr["[object Int16Array]"]=Tr["[object Int32Array]"]=Tr["[object Uint8Array]"]=Tr["[object Uint8ClampedArray]"]=Tr["[object Uint16Array]"]=Tr["[object Uint32Array]"]=!0,Tr["[object Arguments]"]=Tr["[object Array]"]=Tr["[object ArrayBuffer]"]=Tr["[object Boolean]"]=Tr["[object DataView]"]=Tr["[object Date]"]=Tr["[object Error]"]=Tr["[object Function]"]=Tr["[object Map]"]=Tr["[object Number]"]=Tr["[object Object]"]=Tr["[object RegExp]"]=Tr["[object Set]"]=Tr["[object String]"]=Tr["[object WeakMap]"]=!1;const xa=function Rs(Ye){return function(it){return Ye(it)}};var Ga="object"==typeof exports&&exports&&!exports.nodeType&&exports,Wa=Ga&&"object"==typeof module&&module&&!module.nodeType&&module,ra=Wa&&Wa.exports===Ga&&_e.process;const is=function(){try{return Wa&&Wa.require&&Wa.require("util").types||ra&&ra.binding&&ra.binding("util")}catch{}}();var ro=is&&is.isTypedArray;const Ue=ro?xa(ro):function Lc(Ye){return bt(Ye)&&El(Ye.length)&&!!Tr[Ze(Ye)]};var Ne=Object.prototype.hasOwnProperty;const pn=function kt(Ye,it){var pt=Ae(Ye),sn=!pt&&ta(Ye),Bn=!pt&&!sn&&ia(Ye),ri=!pt&&!sn&&!Bn&&Ue(Ye),Hn=pt||sn||Bn||ri,hi=Hn?function po(Ye,it){for(var pt=-1,sn=Array(Ye);++ptit.create(sn,Bn)),this._destructor=sn=>sn.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(it){this._creator=it}setDestructor(it){this._destructor=it}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(it=>{console.error("An error happened during the editor destroying.",it)}).then(()=>{const it={},pt=[],sn=this._config.rootsAttributes||{},Bn={};for(const[Hn,hi]of Object.entries(this._data.roots))hi.isLoaded?(it[Hn]="",Bn[Hn]=sn[Hn]||{}):pt.push(Hn);const ri={...this._config,extraPlugins:this._config.extraPlugins||[],lazyRoots:pt,rootsAttributes:Bn,_watchdogInitialData:this._data};return delete ri.initialData,ri.extraPlugins.push(qd),this._initUsingData?this.create(it,ri,ri.context):_t(this._elementOrData)?this.create(this._elementOrData,ri,ri.context):this.create(this._editables,ri,ri.context)}).then(()=>{this._fire("restart")})}create(it=this._elementOrData,pt=this._config,sn){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=it,this._initUsingData="string"==typeof it||Object.keys(it).length>0&&"string"==typeof Object.values(it)[0],this._config=this._cloneEditorConfiguration(pt)||{},this._config.context=sn,this._creator(it,this._config))).then(Bn=>{this._editor=Bn,Bn.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=Bn.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const it=this._editor;return this._editor=null,it.model.document.off("change:data",this._throttledSave),this._destructor(it)})}_save(){const it=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=it}catch(pt){console.error(pt,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(it){this._excludedProps=it}_getData(){const it=this._editor,pt=it.model.document.roots.filter(hi=>hi.isAttached()&&"$graveyard"!=hi.rootName),{plugins:sn}=it,Bn=sn.has("CommentsRepository")&&sn.get("CommentsRepository"),ri=sn.has("TrackChanges")&&sn.get("TrackChanges"),Hn={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};pt.forEach(hi=>{Hn.roots[hi.rootName]={content:JSON.stringify(Array.from(hi.getChildren())),attributes:JSON.stringify(Array.from(hi.getAttributes())),isLoaded:hi._isLoaded}});for(const hi of it.model.markers)hi._affectsData&&(Hn.markers[hi.name]={rangeJSON:hi.getRange().toJSON(),usingOperation:hi._managedUsingOperations,affectsData:hi._affectsData});return Bn&&(Hn.commentThreads=JSON.stringify(Bn.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),ri&&(Hn.suggestions=JSON.stringify(ri.getSuggestions({toJSON:!0,skipNotAttached:!0}))),Hn}_getEditables(){const it={};for(const pt of this.editor.model.document.getRootNames()){const sn=this.editor.ui.getEditableElement(pt);sn&&(it[pt]=sn)}return it}_isErrorComingFromThisItem(it){return function ee(Ye,it,pt=new Set){if(Ye===it&&function ue(Ye){return"object"==typeof Ye&&null!==Ye}(Ye))return!0;const sn=n(Ye,pt),Bn=n(it,pt);for(const ri of sn)if(Bn.has(ri))return!0;return!1}(this._editor,it.context,this._excludedProps)}_cloneEditorConfiguration(it){return function Jd(Ye,it){return Go(Ye,5,it="function"==typeof it?it:void 0)}(it,(pt,sn)=>{if(_t(pt)||"context"===sn)return pt})}}class qd{constructor(it){this.editor=it,this._data=it.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",it=>{it.stop(),this.editor.model.enqueueChange({isUndoable:!1},pt=>{this._restoreCollaborationData(),this._restoreEditorData(pt)}),this.editor.data.fire("ready")},{priority:999})}_createNode(it,pt){if("name"in pt){const sn=it.createElement(pt.name,pt.attributes);if(pt.children)for(const Bn of pt.children)sn._appendChild(this._createNode(it,Bn));return sn}return it.createText(pt.data,pt.attributes)}_restoreEditorData(it){const pt=this.editor;Object.entries(this._data.roots).forEach(([sn,{content:Bn,attributes:ri}])=>{const Hn=JSON.parse(Bn),hi=JSON.parse(ri),Ci=pt.model.document.getRoot(sn);for(const[Hi,Wr]of hi)it.setAttribute(Hi,Wr,Ci);for(const Hi of Hn){const Wr=this._createNode(it,Hi);it.insert(Wr,Ci,"end")}}),Object.entries(this._data.markers).forEach(([sn,Bn])=>{const{document:ri}=pt.model,{rangeJSON:{start:Hn,end:hi},...Ci}=Bn,Hi=ri.getRoot(Hn.root),Wr=it.createPositionFromPath(Hi,Hn.path,Hn.stickiness),Ns=it.createPositionFromPath(Hi,hi.path,hi.stickiness),Na=it.createRange(Wr,Ns);it.addMarker(sn,{range:Na,...Ci})})}_restoreCollaborationData(){const it=JSON.parse(this._data.commentThreads),pt=JSON.parse(this._data.suggestions);it.forEach(sn=>{const Bn=this.editor.config.get("collaboration.channelId"),ri=this.editor.plugins.get("CommentsRepository");ri.hasCommentThread(sn.threadId)&&ri.getCommentThread(sn.threadId).remove(),ri.addCommentThread({channelId:Bn,...sn})}),pt.forEach(sn=>{const Bn=this.editor.plugins.get("TrackChangesEditing");Bn.hasSuggestion(sn.id)?Bn.getSuggestion(sn.id).attributes=sn.attributes:Bn.addSuggestionData(sn)})}}var ml=C(1374),Oc=C(6223),Au=C(6814);function iu(Ye,it){}const pi=new Array(256).fill(0).map((Ye,it)=>("0"+it.toString(16)).slice(-2)),Xr="Lock from Angular integration (@ckeditor/ckeditor5-angular)";let Mc=(()=>{class Ye{constructor(pt,sn){this.config={},this.data="",this.tagName="div",this.disableTwoWayDataBinding=!1,this.ready=new l.vpe,this.change=new l.vpe,this.blur=new l.vpe,this.focus=new l.vpe,this.error=new l.vpe,this.initiallyDisabled=!1,this.isEditorSettingData=!1,this.id=function Wc(){const Ye=4294967296*Math.random()>>>0,it=4294967296*Math.random()>>>0,pt=4294967296*Math.random()>>>0,sn=4294967296*Math.random()>>>0;return"e"+pi[Ye>>0&255]+pi[Ye>>8&255]+pi[Ye>>16&255]+pi[Ye>>24&255]+pi[it>>0&255]+pi[it>>8&255]+pi[it>>16&255]+pi[it>>24&255]+pi[pt>>0&255]+pi[pt>>8&255]+pi[pt>>16&255]+pi[pt>>24&255]+pi[sn>>0&255]+pi[sn>>8&255]+pi[sn>>16&255]+pi[sn>>24&255]}(),this.ngZone=sn,this.elementRef=pt;const{CKEDITOR_VERSION:Bn}=window;if(Bn){const[ri]=Bn.split(".").map(Number);ri<37&&console.warn("The component requires using CKEditor 5 in version 37 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')}set disabled(pt){this.setDisabledState(pt)}get disabled(){return this.editorInstance?this.editorInstance.isReadOnly:this.initiallyDisabled}get editorInstance(){let pt=this.editorWatchdog;return this.watchdog&&(pt=this.watchdog._watchdogs.get(this.id)),pt?pt.editor:null}getId(){return this.id}ngOnChanges(pt){Object.prototype.hasOwnProperty.call(pt,"data")&&pt.data&&!pt.data.isFirstChange()&&this.writeValue(pt.data.currentValue)}ngAfterViewInit(){this.attachToWatchdog()}ngOnDestroy(){var pt=this;return(0,e.Z)(function*(){pt.watchdog?yield pt.watchdog.remove(pt.id):pt.editorWatchdog&&pt.editorWatchdog.editor&&(yield pt.editorWatchdog.destroy(),pt.editorWatchdog=void 0)})()}writeValue(pt){null===pt&&(pt=""),this.editorInstance?(this.isEditorSettingData=!0,this.editorInstance.data.set(pt),this.isEditorSettingData=!1):(this.data=pt,this.ready.pipe((0,ml.P)()).subscribe(sn=>{sn.data.set(this.data)}))}registerOnChange(pt){this.cvaOnChange=pt}registerOnTouched(pt){this.cvaOnTouched=pt}setDisabledState(pt){this.editorInstance&&(pt?this.editorInstance.enableReadOnlyMode(Xr):this.editorInstance.disableReadOnlyMode(Xr)),this.initiallyDisabled=pt}attachToWatchdog(){var pt=this;const sn=(Ci,Hi)=>this.ngZone.runOutsideAngular((0,e.Z)(function*(){pt.elementRef.nativeElement.appendChild(Ci);const Wr=yield pt.editor.create(Ci,Hi);return pt.initiallyDisabled&&Wr.enableReadOnlyMode(Xr),pt.ngZone.run(()=>{pt.ready.emit(Wr)}),pt.setUpEditorEvents(Wr),Wr})),Bn=function(){var Ci=(0,e.Z)(function*(Hi){yield Hi.destroy(),pt.elementRef.nativeElement.removeChild(pt.editorElement)});return function(Wr){return Ci.apply(this,arguments)}}(),ri=Ci=>{(function No(Ye){return Ye.observed||Ye.observers.length>0})(this.error)&&this.ngZone.run(()=>this.error.emit(Ci))},Hn=document.createElement(this.tagName),hi=this.getConfig();if(this.editorElement=Hn,this.watchdog)this.watchdog.add({id:this.id,type:"editor",creator:sn,destructor:Bn,sourceElementOrData:Hn,config:hi}).catch(Ci=>{ri(Ci)}),this.watchdog.on("itemError",(Ci,{itemId:Hi})=>{Hi===this.id&&ri()});else{const Ci=new Gc(this.editor,this.editorWatchdogConfig);Ci.setCreator(sn),Ci.setDestructor(Bn),Ci.on("error",ri),this.editorWatchdog=Ci,this.ngZone.runOutsideAngular(()=>{Ci.create(Hn,hi).catch(Hi=>{ri(Hi)})})}}getConfig(){if(this.data&&this.config.initialData)throw new Error("Editor data should be provided either using `config.initialData` or `data` properties.");const pt={...this.config},sn=this.config.initialData||this.data;return sn&&(pt.initialData=sn),pt}setUpEditorEvents(pt){const Bn=pt.editing.view.document;pt.model.document.on("change:data",ri=>{this.ngZone.run(()=>{if(!this.disableTwoWayDataBinding){if(this.cvaOnChange&&!this.isEditorSettingData){const Hn=pt.data.get();this.cvaOnChange(Hn)}this.change.emit({event:ri,editor:pt})}})}),Bn.on("focus",ri=>{this.ngZone.run(()=>{this.focus.emit({event:ri,editor:pt})})}),Bn.on("blur",ri=>{this.ngZone.run(()=>{this.cvaOnTouched&&this.cvaOnTouched(),this.blur.emit({event:ri,editor:pt})})})}}return Ye.\u0275fac=function(pt){return new(pt||Ye)(l.Y36(l.SBq),l.Y36(l.R0b))},Ye.\u0275cmp=l.Xpm({type:Ye,selectors:[["ckeditor"]],inputs:{editor:"editor",config:"config",data:"data",tagName:"tagName",watchdog:"watchdog",editorWatchdogConfig:"editorWatchdogConfig",disableTwoWayDataBinding:"disableTwoWayDataBinding",disabled:"disabled"},outputs:{ready:"ready",change:"change",blur:"blur",focus:"focus",error:"error"},features:[l._Bn([{provide:Oc.JU,useExisting:(0,l.Gpc)(()=>Ye),multi:!0}]),l.TTD],decls:1,vars:0,template:function(pt,sn){1&pt&&l.YNc(0,iu,0,0,"ng-template")},encapsulation:2}),Ye})(),dd=(()=>{class Ye{}return Ye.\u0275fac=function(pt){return new(pt||Ye)},Ye.\u0275mod=l.oAB({type:Ye}),Ye.\u0275inj=l.cJS({imports:[[Oc.u5,Au.ez]]}),Ye})()},4807:(ft,Ie,C)=>{"use strict";C.d(Ie,{A0:()=>Pn,ir:()=>ot,w9:()=>Te});var e=C(5879),l=C(6223),D=C(9773),I=C(9028),S=C(7921),w=C(9397),n=C(3620),Z=C(2181),ee=C(7398),re=C(927),ue=C(6410),se=C(8645),te=C(2438),oe=C(3019),ce=C(6814);const _e=["content"],Re=["scroll"],mt=["padding"],Ge=function(wt){return{searchTerm:wt}};function Lt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",6),e.GkF(1,7),e.qZA()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",fe.headerTemplate)("ngTemplateOutletContext",e.VKq(2,Ge,fe.filterValue))}}function je(wt,Yt){if(1&wt&&(e.TgZ(0,"div",8),e.GkF(1,7),e.qZA()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngTemplateOutlet",fe.footerTemplate)("ngTemplateOutletContext",e.VKq(2,Ge,fe.filterValue))}}const Tt=["*"],xt=["searchInput"],St=["clearButton"];function Zt(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"span",15),e.NdJ("click",function(){e.CHM(fe);const Vt=e.oxw().$implicit,ht=e.oxw(2);return e.KtG(ht.unselect(Vt))}),e._uU(1,"\xd7"),e.qZA(),e._UZ(2,"span",16)}if(2&wt){const fe=e.oxw().$implicit,Mt=e.oxw(2);e.xp6(2),e.Q6J("ngItemLabel",fe.label)("escape",Mt.escapeHTML)}}function yt(wt,Yt){}const un=function(wt,Yt,fe){return{item:wt,clear:Yt,label:fe}};function Jt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",12),e.YNc(1,Zt,3,2,"ng-template",null,13,e.W1O),e.YNc(3,yt,0,0,"ng-template",14),e.qZA()),2&wt){const fe=Yt.$implicit,Mt=e.MAs(2),Vt=e.oxw(2);e.ekj("ng-value-disabled",fe.disabled),e.xp6(3),e.Q6J("ngTemplateOutlet",Vt.labelTemplate||Mt)("ngTemplateOutletContext",e.kEZ(4,un,fe.value,Vt.clearItem,fe.label))}}function tn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Jt,4,8,"div",11),e.BQk()),2&wt){const fe=e.oxw();e.xp6(1),e.Q6J("ngForOf",fe.selectedItems)("ngForTrackBy",fe.trackByOption)}}function wn(wt,Yt){}const Ln=function(wt,Yt){return{items:wt,clear:Yt}};function Yn(wt,Yt){if(1&wt&&e.YNc(0,wn,0,0,"ng-template",14),2&wt){const fe=e.oxw();e.Q6J("ngTemplateOutlet",fe.multiLabelTemplate)("ngTemplateOutletContext",e.WLB(2,Ln,fe.selectedValues,fe.clearItem))}}function ti(wt,Yt){1&wt&&e._UZ(0,"div",19)}function gi(wt,Yt){}function Rn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,ti,1,0,"ng-template",null,17,e.W1O),e.YNc(3,gi,0,0,"ng-template",18),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw();e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.loadingSpinnerTemplate||fe)}}function dt(wt,Yt){if(1&wt&&(e.TgZ(0,"span",20,21)(2,"span",22),e._uU(3,"\xd7"),e.qZA()()),2&wt){const fe=e.oxw();e.s9C("title",fe.clearAllText)}}function at(wt,Yt){if(1&wt&&e._UZ(0,"span",28),2&wt){const fe=e.oxw().$implicit,Mt=e.oxw(2);e.Q6J("ngItemLabel",fe.label)("escape",Mt.escapeHTML)}}function Be(wt,Yt){}const Ee=function(wt,Yt,fe,Mt){return{item:wt,item$:Yt,index:fe,searchTerm:Mt}};function $e(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"div",26),e.NdJ("click",function(){const ht=e.CHM(fe).$implicit,st=e.oxw(2);return e.KtG(st.toggleItem(ht))})("mouseover",function(){const ht=e.CHM(fe).$implicit,st=e.oxw(2);return e.KtG(st.onItemHover(ht))}),e.YNc(1,at,1,2,"ng-template",null,27,e.W1O),e.YNc(3,Be,0,0,"ng-template",14),e.qZA()}if(2&wt){const fe=Yt.$implicit,Mt=e.MAs(2),Vt=e.oxw(2);e.ekj("ng-option-disabled",fe.disabled)("ng-option-selected",fe.selected)("ng-optgroup",fe.children)("ng-option",!fe.children)("ng-option-child",!!fe.parent)("ng-option-marked",fe===Vt.itemsList.markedItem),e.uIk("role",fe.children?"group":"option")("aria-selected",fe.selected)("id",null==fe?null:fe.htmlId),e.xp6(3),e.Q6J("ngTemplateOutlet",fe.children?Vt.optgroupTemplate||Mt:Vt.optionTemplate||Mt)("ngTemplateOutletContext",e.l5B(17,Ee,fe.value,fe,fe.index,Vt.searchTerm))}}function me(wt,Yt){if(1&wt&&(e.TgZ(0,"span")(1,"span",31),e._uU(2),e.qZA(),e._uU(3),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(2),e.Oqu(fe.addTagText),e.xp6(1),e.hij('"',fe.searchTerm,'"')}}function tt(wt,Yt){}function he(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"div",29),e.NdJ("mouseover",function(){e.CHM(fe);const Vt=e.oxw(2);return e.KtG(Vt.itemsList.unmarkItem())})("click",function(){e.CHM(fe);const Vt=e.oxw(2);return e.KtG(Vt.selectTag())}),e.YNc(1,me,4,2,"ng-template",null,30,e.W1O),e.YNc(3,tt,0,0,"ng-template",14),e.qZA()}if(2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.ekj("ng-option-marked",!Mt.itemsList.markedItem),e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.tagTemplate||fe)("ngTemplateOutletContext",e.VKq(4,Ge,Mt.searchTerm))}}function Ze(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.notFoundText)}}function rt(wt,Yt){}function bt(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Ze,2,1,"ng-template",null,32,e.W1O),e.YNc(3,rt,0,0,"ng-template",14),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.notFoundTemplate||fe)("ngTemplateOutletContext",e.VKq(2,Ge,Mt.searchTerm))}}function Nt(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.typeToSearchText)}}function Qt(wt,Yt){}function nn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Nt,2,1,"ng-template",null,34,e.W1O),e.YNc(3,Qt,0,0,"ng-template",18),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.typeToSearchTemplate||fe)}}function Dn(wt,Yt){if(1&wt&&(e.TgZ(0,"div",33),e._uU(1),e.qZA()),2&wt){const fe=e.oxw(3);e.xp6(1),e.Oqu(fe.loadingText)}}function Ot(wt,Yt){}function rn(wt,Yt){if(1&wt&&(e.ynx(0),e.YNc(1,Dn,2,1,"ng-template",null,35,e.W1O),e.YNc(3,Ot,0,0,"ng-template",14),e.BQk()),2&wt){const fe=e.MAs(2),Mt=e.oxw(2);e.xp6(3),e.Q6J("ngTemplateOutlet",Mt.loadingTextTemplate||fe)("ngTemplateOutletContext",e.VKq(2,Ge,Mt.searchTerm))}}function vn(wt,Yt){if(1&wt){const fe=e.EpF();e.TgZ(0,"ng-dropdown-panel",23),e.NdJ("update",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.viewPortItems=Vt)})("scroll",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.scroll.emit(Vt))})("scrollToEnd",function(Vt){e.CHM(fe);const ht=e.oxw();return e.KtG(ht.scrollToEnd.emit(Vt))})("outsideClick",function(){e.CHM(fe);const Vt=e.oxw();return e.KtG(Vt.close())}),e.ynx(1),e.YNc(2,$e,4,22,"div",24),e.YNc(3,he,4,6,"div",25),e.BQk(),e.YNc(4,bt,4,4,"ng-container",3),e.YNc(5,nn,4,1,"ng-container",3),e.YNc(6,rn,4,4,"ng-container",3),e.qZA()}if(2&wt){const fe=e.oxw();e.ekj("ng-select-multiple",fe.multiple),e.Q6J("virtualScroll",fe.virtualScroll)("bufferAmount",fe.bufferAmount)("appendTo",fe.appendTo)("position",fe.dropdownPosition)("headerTemplate",fe.headerTemplate)("footerTemplate",fe.footerTemplate)("filterValue",fe.searchTerm)("items",fe.itemsList.filteredItems)("markedItem",fe.itemsList.markedItem)("ngClass",fe.appendTo?fe.classes:null)("id",fe.dropdownId),e.xp6(2),e.Q6J("ngForOf",fe.viewPortItems)("ngForTrackBy",fe.trackByOption),e.xp6(1),e.Q6J("ngIf",fe.showAddTag),e.xp6(1),e.Q6J("ngIf",fe.showNoItemsFound()),e.xp6(1),e.Q6J("ngIf",fe.showTypeToSearch()),e.xp6(1),e.Q6J("ngIf",fe.loading&&0===fe.itemsList.filteredItems.length)}}const ei=/[&<>"']/g,Wn=RegExp(ei.source),Ve={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ct(wt){return null!=wt}function Ce(wt){return"object"==typeof wt&&Ct(wt)}function ae(wt){return wt instanceof Function}let Oe=(()=>{class wt{constructor(fe){this.element=fe,this.escape=!0}ngOnChanges(fe){this.element.nativeElement.innerHTML=this.escape?function ct(wt){return wt&&Wn.test(wt)?wt.replace(ei,Yt=>Ve[Yt]):wt}(this.ngItemLabel):this.ngItemLabel}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.SBq))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[e.TTD]})}return wt})(),ot=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-option-tmp",""]]})}return wt})(),Se=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-optgroup-tmp",""]]})}return wt})(),Ft=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-label-tmp",""]]})}return wt})(),lt=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-multi-label-tmp",""]]})}return wt})(),Bt=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-header-tmp",""]]})}return wt})(),Ut=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-footer-tmp",""]]})}return wt})(),fn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-notfound-tmp",""]]})}return wt})(),gn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-typetosearch-tmp",""]]})}return wt})(),An=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-loadingtext-tmp",""]]})}return wt})(),jn=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-tag-tmp",""]]})}return wt})(),ai=(()=>{class wt{constructor(fe){this.template=fe}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Rgc))};static#t=this.\u0275dir=e.lG2({type:wt,selectors:[["","ng-loadingspinner-tmp",""]]})}return wt})();function di(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const oi={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function Jn(wt){return wt.replace(/[^\u0000-\u007E]/g,fe=>oi[fe]||fe)}class qt{constructor(Yt,fe){this._ngSelect=Yt,this._selectionModel=fe,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let Yt=this.selectedItems.length-1;for(;Yt>=0;Yt--){const fe=this.selectedItems[Yt];if(!fe.disabled)return fe}return null}setItems(Yt){this._items=Yt.map((fe,Mt)=>this.mapItem(fe,Mt)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(Yt){if(Yt.selected||this.maxItemsSelected)return;const fe=this._ngSelect.multiple;fe||this.clearSelected(),this._selectionModel.select(Yt,fe,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(Yt)}unselect(Yt){Yt.selected&&(this._selectionModel.unselect(Yt,this._ngSelect.multiple),this._ngSelect.hideSelected&&Ct(Yt.index)&&this._ngSelect.multiple&&this._showSelected(Yt))}findItem(Yt){let fe;return fe=this._ngSelect.compareWith?Mt=>this._ngSelect.compareWith(Mt.value,Yt):this._ngSelect.bindValue?Mt=>!Mt.children&&this.resolveNested(Mt.value,this._ngSelect.bindValue)===Yt:Mt=>Mt.value===Yt||!Mt.children&&Mt.label&&Mt.label===this.resolveNested(Yt,this._ngSelect.bindLabel),this._items.find(Mt=>fe(Mt))}addItem(Yt){const fe=this.mapItem(Yt,this._items.length);return this._items.push(fe),this._filteredItems.push(fe),fe}clearSelected(Yt=!1){this._selectionModel.clear(Yt),this._items.forEach(fe=>{fe.selected=Yt&&fe.selected&&fe.disabled,fe.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(Yt){return Yt=Jn(Yt).toLocaleLowerCase(),this.filteredItems.find(fe=>Jn(fe.label).toLocaleLowerCase().substr(0,Yt.length)===Yt)}filter(Yt){if(!Yt)return void this.resetFilteredItems();this._filteredItems=[],Yt=this._ngSelect.searchFn?Yt:Jn(Yt).toLocaleLowerCase();const fe=this._ngSelect.searchFn||this._defaultSearchFn,Mt=this._ngSelect.hideSelected;for(const Vt of Array.from(this._groups.keys())){const ht=[];for(const st of this._groups.get(Vt))Mt&&(st.parent&&st.parent.selected||st.selected)||fe(Yt,this._ngSelect.searchFn?st.value:st)&&ht.push(st);if(ht.length>0){const[st]=ht.slice(-1);if(st.parent){const It=this._items.find(cn=>cn===st.parent);this._filteredItems.push(It)}this._filteredItems.push(...ht)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(Yt=>!Yt.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(Yt){this._markedIndex=this._filteredItems.indexOf(Yt)}markSelectedOrDefault(Yt){if(0===this._filteredItems.length)return;const fe=this._getLastMarkedIndex();this._markedIndex=fe>-1?fe:Yt?this.filteredItems.findIndex(Mt=>!Mt.disabled):-1}resolveNested(Yt,fe){if(!Ce(Yt))return Yt;if(-1===fe.indexOf("."))return Yt[fe];{const Mt=fe.split(".");let Vt=Yt;for(let ht=0,st=Mt.length;ht-1===this.selectedItems.indexOf(fe)))}_showSelected(Yt){if(this._filteredItems.push(Yt),Yt.parent){const fe=Yt.parent;this._filteredItems.find(Vt=>Vt===fe)||this._filteredItems.push(fe)}else if(Yt.children)for(const fe of Yt.children)fe.selected=!1,this._filteredItems.push(fe);this._filteredItems=[...this._filteredItems.sort((fe,Mt)=>fe.index-Mt.index)]}_hideSelected(Yt){this._filteredItems=this._filteredItems.filter(fe=>fe!==Yt),Yt.parent?Yt.parent.children.every(Mt=>Mt.selected)&&(this._filteredItems=this._filteredItems.filter(Mt=>Mt!==Yt.parent)):Yt.children&&(this._filteredItems=this.filteredItems.filter(fe=>fe.parent!==Yt))}_defaultSearchFn(Yt,fe){return Jn(fe.label).toLocaleLowerCase().indexOf(Yt)>-1}_getNextItemIndex(Yt){return Yt>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(Yt){0===this._filteredItems.length||this._filteredItems.every(fe=>fe.disabled)||(this._markedIndex=this._getNextItemIndex(Yt),this.markedItem.disabled&&this._stepToItem(Yt))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const Yt=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&Yt<0?-1:Math.max(this.markedIndex,Yt)}_groupBy(Yt,fe){const Mt=new Map;if(0===Yt.length)return Mt;if(Array.isArray(Yt[0].value[fe])){for(const st of Yt){const It=(st.value[fe]||[]).map((cn,_n)=>this.mapItem(cn,_n));Mt.set(st,It)}return Mt}const Vt=ae(this._ngSelect.groupBy),ht=st=>{const It=Vt?fe(st.value):st.value[fe];return Ct(It)?It:void 0};for(const st of Yt){const It=ht(st),cn=Mt.get(It);cn?cn.push(st):Mt.set(It,[st])}return Mt}_flatten(Yt){const fe=ae(this._ngSelect.groupBy),Mt=[];for(const Vt of Array.from(Yt.keys())){let ht=Mt.length;if(void 0===Vt){const On=Yt.get(void 0)||[];Mt.push(...On.map(ni=>(ni.index=ht++,ni)));continue}const st=Ce(Vt),It={label:st?"":String(Vt),children:void 0,parent:null,index:ht++,disabled:!this._ngSelect.selectableGroup,htmlId:di()},cn=fe?this._ngSelect.bindLabel:this._ngSelect.groupBy,_n=this._ngSelect.groupValue||(()=>st?Vt.value:{[cn]:Vt}),En=Yt.get(Vt).map(On=>(On.parent=It,On.children=void 0,On.index=ht++,On));It.children=En,It.value=_n(Vt,En.map(On=>On.value)),Mt.push(It),Mt.push(...En)}return Mt}}var _t=function(wt){return wt[wt.Tab=9]="Tab",wt[wt.Enter=13]="Enter",wt[wt.Esc=27]="Esc",wt[wt.Space=32]="Space",wt[wt.ArrowUp=38]="ArrowUp",wt[wt.ArrowDown=40]="ArrowDown",wt[wt.Backspace=8]="Backspace",wt}(_t||{});let G=(()=>{class wt{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(fe,Mt,Vt){const ht=this._dimensions,st=ht.itemHeight*Mt,cn=Math.max(0,fe)/st*Mt;let _n=Math.min(Mt,Math.ceil(cn)+(ht.itemsPerViewport+1));const On=Math.max(0,_n-ht.itemsPerViewport);let ni=Math.min(On,Math.floor(cn)),Vn=ht.itemHeight*Math.ceil(ni)-ht.itemHeight*Math.min(ni,Vt);return Vn=isNaN(Vn)?0:Vn,ni=isNaN(ni)?-1:ni,_n=isNaN(_n)?-1:_n,ni-=Vt,ni=Math.max(0,ni),_n+=Vt,_n=Math.min(Mt,_n),{topPadding:Vn,scrollHeight:st,start:ni,end:_n}}setDimensions(fe,Mt){const Vt=Math.max(1,Math.floor(Mt/fe));this._dimensions={itemHeight:fe,panelHeight:Mt,itemsPerViewport:Vt}}getScrollTo(fe,Mt,Vt){const{panelHeight:ht}=this.dimensions,st=fe+Mt,cn=Vt+ht;return ht>=st&&Vt===fe?null:st>cn?Vt+st-cn:fe<=Vt?fe:null}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac})}return wt})();const U=["top","right","bottom","left"],ve=typeof requestAnimationFrame<"u"?re.Z:ue.E;let Pe=(()=>{class wt{constructor(fe,Mt,Vt,ht,st){this._renderer=fe,this._zone=Mt,this._panelService=Vt,this._document=st,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.outsideClick=new e.vpe,this._destroy$=new se.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=ht.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(fe){fe!==this._itemsLength&&(this._itemsLength=fe,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:fe,panelHeight:Mt}=this._panelService.dimensions,Vt=this.markedItem.index*fe;return Mt>Vt?0:Vt}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(fe){if(fe.items){const Mt=fe.items;this._onItemsChange(Mt.currentValue,Mt.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(fe,Mt=!1){if(!fe)return;const Vt=this.items.indexOf(fe);if(Vt<0||Vt>=this.itemsLength)return;let ht;if(this.virtualScroll){const st=this._panelService.dimensions.itemHeight;ht=this._panelService.getScrollTo(Vt*st,st,this._lastScrollPosition)}else{const st=this._dropdown.querySelector(`#${fe.htmlId}`);ht=this._panelService.getScrollTo(st.offsetTop,st.clientHeight,Mt?st.offsetTop:this._lastScrollPosition)}Ct(ht)&&(this._scrollablePanel.scrollTop=ht)}scrollToTag(){const fe=this._scrollablePanel;fe.scrollTop=fe.scrollHeight-fe.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),U.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(fe){U.forEach(Vt=>{const ht=`ng-select-${Vt}`;this._renderer.removeClass(this._dropdown,ht),this._renderer.removeClass(this._select,ht)});const Mt=`ng-select-${fe}`;this._renderer.addClass(this._dropdown,Mt),this._renderer.addClass(this._select,Mt)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,te.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,D.R)(this._destroy$),(0,I.e)(0,ve)).subscribe(fe=>{const Mt=fe.path||fe.composedPath&&fe.composedPath();this._onContentScrolled(Mt&&0!==Mt.length?Mt[0].scrollTop:fe.target.scrollTop)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{(0,oe.T)((0,te.R)(this._document,"touchstart",{capture:!0}),(0,te.R)(this._document,"mousedown",{capture:!0})).pipe((0,D.R)(this._destroy$)).subscribe(fe=>this._checkToClose(fe))})}_checkToClose(fe){if(this._select.contains(fe.target)||this._dropdown.contains(fe.target))return;const Mt=fe.path||fe.composedPath&&fe.composedPath();fe.target&&fe.target.shadowRoot&&Mt&&Mt[0]&&this._select.contains(Mt[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(fe,Mt){this.items=fe||[],this._scrollToEndFired=!1,this.itemsLength=fe.length,this.virtualScroll?this._updateItemsRange(Mt):(this._setVirtualHeight(),this._updateItems(Mt))}_updateItems(fe){this.update.emit(this.items),!1!==fe&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,fe)})})}_updateItemsRange(fe){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{fe?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(fe){this.virtualScroll&&this._renderItemsRange(fe),this._lastScrollPosition=fe,this._fireScrollToEnd(fe)}_updateVirtualHeight(fe){this._updateScrollHeight&&(this._virtualPadding.style.height=`${fe}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(fe=null){if(fe&&this._lastScrollPosition===fe)return;const Mt=this._panelService.calculateItems(fe=fe||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(Mt.scrollHeight),this._contentPanel.style.transform=`translateY(${Mt.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(Mt.start,Mt.end)),this.scroll.emit({start:Mt.start,end:Mt.end})}),Ct(fe)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=fe,this._lastScrollPosition=fe)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[fe]=this.items;return this.update.emit([fe]),Promise.resolve().then(()=>{const Vt=this._dropdown.querySelector(`#${fe.htmlId}`).clientHeight;return this._virtualPadding.style.height=Vt*this.itemsLength+"px",this._panelService.setDimensions(Vt,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(fe){this._scrollToEndFired||0===fe||fe+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(fe){if("auto"!==this.position)return this.position;const Mt=this._select.getBoundingClientRect(),Vt=document.documentElement.scrollTop||document.body.scrollTop;return Mt.top+window.pageYOffset+Mt.height+fe.getBoundingClientRect().height>Vt+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const fe=this._select.getBoundingClientRect(),Mt=this._parent.getBoundingClientRect();this._dropdown.style.left=fe.left-Mt.left+"px",this._dropdown.style.width=fe.width+"px",this._dropdown.style.minWidth=fe.width+"px"}_updateYPosition(){const fe=this._select.getBoundingClientRect(),Mt=this._parent.getBoundingClientRect(),Vt=fe.height;"top"===this._currentPosition?(this._dropdown.style.bottom=Mt.bottom-fe.bottom+Vt+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=fe.top-Mt.top+Vt+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,te.R)(this._dropdown,"mousedown").pipe((0,D.R)(this._destroy$)).subscribe(fe=>{"INPUT"!==fe.target.tagName&&fe.preventDefault()})})}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.Qsj),e.Y36(e.R0b),e.Y36(G),e.Y36(e.SBq),e.Y36(ce.K0,8))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-dropdown-panel"]],viewQuery:function(Mt,Vt){if(1&Mt&&(e.Gf(_e,7,e.SBq),e.Gf(Re,7,e.SBq),e.Gf(mt,7,e.SBq)),2&Mt){let ht;e.iGM(ht=e.CRH())&&(Vt.contentElementRef=ht.first),e.iGM(ht=e.CRH())&&(Vt.scrollElementRef=ht.first),e.iGM(ht=e.CRH())&&(Vt.paddingElementRef=ht.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[e.TTD],ngContentSelectors:Tt,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(Mt,Vt){1&Mt&&(e.F$t(),e.YNc(0,Lt,2,4,"div",0),e.TgZ(1,"div",1,2),e._UZ(3,"div",null,3),e.TgZ(5,"div",null,4),e.Hsn(7),e.qZA()(),e.YNc(8,je,2,4,"div",5)),2&Mt&&(e.Q6J("ngIf",Vt.headerTemplate),e.xp6(3),e.ekj("total-padding",Vt.virtualScroll),e.xp6(2),e.ekj("scrollable-content",Vt.virtualScroll&&Vt.items.length),e.xp6(3),e.Q6J("ngIf",Vt.footerTemplate))},dependencies:[ce.O5,ce.tP],encapsulation:2,changeDetection:0})}return wt})(),ut=(()=>{class wt{get disabled(){return this._disabled}set disabled(fe){this._disabled=this._isDisabled(fe)}constructor(fe){this.elementRef=fe,this.stateChange$=new se.x,this._disabled=!1}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(fe){fe.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(fe){return null!=fe&&"false"!=`${fe}`}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.Y36(e.SBq))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[e.TTD],ngContentSelectors:Tt,decls:1,vars:0,template:function(Mt,Vt){1&Mt&&(e.F$t(),e.Hsn(0))},encapsulation:2,changeDetection:0})}return wt})(),We=(()=>{class wt{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"})}return wt})(),ze=(()=>{class wt{warn(fe){console.warn(fe)}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275prov=e.Yz7({token:wt,factory:wt.\u0275fac,providedIn:"root"})}return wt})();const be=new e.OlP("ng-select-selection-model");let Te=(()=>{class wt{get items(){return this._items}set items(fe){null===fe&&(fe=[]),this._itemsAreUsed=!0,this._items=fe}get compareWith(){return this._compareWith}set compareWith(fe){if(null!=fe&&!ae(fe))throw Error("`compareWith` must be a function.");this._compareWith=fe}get clearSearchOnAdd(){return Ct(this._clearSearchOnAdd)?this._clearSearchOnAdd:Ct(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(fe){this._clearSearchOnAdd=fe}get deselectOnClick(){return Ct(this._deselectOnClick)?this._deselectOnClick:Ct(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(fe){this._deselectOnClick=fe}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(fe,Mt,Vt,ht,st,It,cn){this.classes=fe,this.autoFocus=Mt,this.config=Vt,this._cd=It,this._console=cn,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=_n=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new e.vpe,this.focusEvent=new e.vpe,this.changeEvent=new e.vpe,this.openEvent=new e.vpe,this.closeEvent=new e.vpe,this.searchEvent=new e.vpe,this.clearEvent=new e.vpe,this.addEvent=new e.vpe,this.removeEvent=new e.vpe,this.scroll=new e.vpe,this.scrollToEnd=new e.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=di(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new se.x,this._keyPress$=new se.x,this._onChange=_n=>{},this._onTouched=()=>{},this.clearItem=_n=>{const En=this.selectedItems.find(On=>On.value===_n);this.unselect(En)},this.trackByOption=(_n,En)=>this.trackByFn?this.trackByFn(En.value):En,this._mergeGlobalConfig(Vt),this.itemsList=new qt(this,ht()),this.element=st.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(fe=>fe.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(fe){fe.multiple&&this.itemsList.clearSelected(),fe.items&&this._setItems(fe.items.currentValue||[]),fe.isOpen&&(this._manualOpen=Ct(fe.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),Ct(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(fe){if(_t[fe.which]){if(!1===this.keyDownFn(fe))return;this.handleKeyCode(fe)}else fe.key&&1===fe.key.length&&this._keyPress$.next(fe.key.toLocaleLowerCase())}handleKeyCode(fe){this.clearButton&&this.clearButton.nativeElement===fe.target?this.handleKeyCodeClear(fe):this.handleKeyCodeInput(fe)}handleKeyCodeInput(fe){switch(fe.which){case _t.ArrowDown:this._handleArrowDown(fe);break;case _t.ArrowUp:this._handleArrowUp(fe);break;case _t.Space:this._handleSpace(fe);break;case _t.Enter:this._handleEnter(fe);break;case _t.Tab:this._handleTab(fe);break;case _t.Esc:this.close(),fe.preventDefault();break;case _t.Backspace:this._handleBackspace()}}handleKeyCodeClear(fe){fe.which===_t.Enter&&(this.handleClearClick(),fe.preventDefault())}handleMousedown(fe){const Mt=fe.target;"INPUT"!==Mt.tagName&&fe.preventDefault(),Mt.classList.contains("ng-clear-wrapper")?this.handleClearClick():Mt.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():Mt.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(fe){this.itemsList.clearSelected(),this._handleWriteValue(fe),this._cd.markForCheck()}registerOnChange(fe){this._onChange=fe}registerOnTouched(fe){this._onTouched=fe}setDisabledState(fe){this._disabled=fe,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(fe){!fe||fe.disabled||this.disabled||(this.deselectOnClick&&fe.selected?this.unselect(fe):this.select(fe),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(fe){fe.selected||(this.itemsList.select(fe),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(fe.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(fe){fe&&(this.itemsList.unselect(fe),this.focus(),this._updateNgModel(),this.removeEvent.emit(fe.value))}selectTag(){let fe;fe=ae(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const Mt=Vt=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(Vt,null):this.itemsList.addItem(Vt);!function J(wt){return wt instanceof Promise}(fe)?fe&&this.select(Mt(fe)):fe.then(Vt=>this.select(Mt(Vt))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;const fe=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(Mt=>Mt.label.toLowerCase()===fe)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(Mt=>Mt.label.toLowerCase()===fe))&&!this.loading}showNoItemsFound(){const fe=0===this.itemsList.filteredItems.length;return(fe&&!this._isTypeahead&&!this.loading||fe&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(fe){this._isComposing=!1,!this.searchWhileComposing&&this.filter(fe)}filter(fe){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=fe,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(fe),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:fe,items:this.itemsList.filteredItems.map(Mt=>Mt.value)}),this.open())}onInputFocus(fe){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(fe),this.focused=!0)}onInputBlur(fe){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(fe),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(fe){fe.disabled||this.itemsList.markItem(fe)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const fe=this.selectedItems&&this.selectedItems[0];this.searchTerm=fe&&fe.label||null}_setItems(fe){const Mt=fe[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=Ct(Mt)?!Ce(Mt):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(fe),fe.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&Ct(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const fe=Vt=>{this.items=Vt.map(ht=>({$ngOptionValue:ht.value,$ngOptionLabel:ht.elementRef.nativeElement.innerHTML,disabled:ht.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},Mt=()=>{const Vt=(0,oe.T)(this.ngOptions.changes,this._destroy$);(0,oe.T)(...this.ngOptions.map(ht=>ht.stateChange$)).pipe((0,D.R)(Vt)).subscribe(ht=>{const st=this.itemsList.findItem(ht.value);st.disabled=ht.disabled,st.label=ht.label||st.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,S.O)(this.ngOptions),(0,D.R)(this._destroy$)).subscribe(Vt=>{this.bindLabel=this._defaultLabel,fe(Vt),Mt()})}_isValidWriteValue(fe){if(!Ct(fe)||this.multiple&&""===fe||Array.isArray(fe)&&0===fe.length)return!1;const Mt=Vt=>!(!Ct(this.compareWith)&&Ce(Vt)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(Vt)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(fe)?fe.every(Vt=>Mt(Vt)):(this._console.warn("Multiple select ngModel should be array."),!1):Mt(fe)}_handleWriteValue(fe){if(!this._isValidWriteValue(fe))return;const Mt=Vt=>{let ht=this.itemsList.findItem(Vt);if(ht)this.itemsList.select(ht);else{const st=Ce(Vt);st||!st&&!this.bindValue?this.itemsList.select(this.itemsList.mapItem(Vt,null)):this.bindValue&&(ht={[this.bindLabel]:null,[this.bindValue]:Vt},this.itemsList.select(this.itemsList.mapItem(ht,null)))}};this.multiple?fe.forEach(Vt=>Mt(Vt)):Mt(fe)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,D.R)(this._destroy$),(0,w.b)(fe=>this._pressedKeys.push(fe)),(0,n.b)(200),(0,Z.h)(()=>this._pressedKeys.length>0),(0,ee.U)(()=>this._pressedKeys.join(""))).subscribe(fe=>{const Mt=this.itemsList.findByLabel(fe);Mt&&(this.isOpen?(this.itemsList.markItem(Mt),this._scrollToMarked(),this._cd.markForCheck()):this.select(Mt)),this._pressedKeys=[]})}_setInputAttributes(){const fe=this.searchInput.nativeElement,Mt={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const Vt of Object.keys(Mt))fe.setAttribute(Vt,Mt[Vt])}_updateNgModel(){const fe=[];for(const Vt of this.selectedItems)if(this.bindValue){let ht=null;ht=Vt.children?Vt.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(Vt.value,this.bindValue),fe.push(ht)}else fe.push(Vt.value);const Mt=this.selectedItems.map(Vt=>Vt.value);this.multiple?(this._onChange(fe),this.changeEvent.emit(Mt)):(this._onChange(Ct(fe[0])?fe[0]:null),this.changeEvent.emit(Mt[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(fe){this.searchTerm=fe,this._isTypeahead&&this.typeahead.next(fe)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(fe){if(!1===this.isOpen)if(this.showClear())this.focusOnClear(),fe.preventDefault();else if(!this.addTag)return;this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),fe.preventDefault()):this.showAddTag?(this.selectTag(),fe.preventDefault()):this.close():this.close()}_handleEnter(fe){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}fe.preventDefault()}_handleSpace(fe){this.isOpen||this._manualOpen||(this.open(),fe.preventDefault())}_handleArrowDown(fe){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),fe.preventDefault()}_handleArrowUp(fe){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),fe.preventDefault())}_nextItemIsTag(fe){const Mt=this.itemsList.markedIndex+fe;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(Mt<0||Mt===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const fe=this.searchTerm&&this.searchTerm.trim();return fe&&fe.length>=this.minTermLength}_mergeGlobalConfig(fe){this.placeholder=this.placeholder||fe.placeholder,this.notFoundText=this.notFoundText||fe.notFoundText,this.typeToSearchText=this.typeToSearchText||fe.typeToSearchText,this.addTagText=this.addTagText||fe.addTagText,this.loadingText=this.loadingText||fe.loadingText,this.clearAllText=this.clearAllText||fe.clearAllText,this.virtualScroll=Ct(this.virtualScroll)?this.virtualScroll:!!Ct(fe.disableVirtualScroll)&&!fe.disableVirtualScroll,this.openOnEnter=Ct(this.openOnEnter)?this.openOnEnter:fe.openOnEnter,this.appendTo=this.appendTo||fe.appendTo,this.bindValue=this.bindValue||fe.bindValue,this.bindLabel=this.bindLabel||fe.bindLabel,this.appearance=this.appearance||fe.appearance}static#e=this.\u0275fac=function(Mt){return new(Mt||wt)(e.$8M("class"),e.$8M("autofocus"),e.Y36(We),e.Y36(be),e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ze))};static#t=this.\u0275cmp=e.Xpm({type:wt,selectors:[["ng-select"]],contentQueries:function(Mt,Vt,ht){if(1&Mt&&(e.Suo(ht,ot,5,e.Rgc),e.Suo(ht,Se,5,e.Rgc),e.Suo(ht,Ft,5,e.Rgc),e.Suo(ht,lt,5,e.Rgc),e.Suo(ht,Bt,5,e.Rgc),e.Suo(ht,Ut,5,e.Rgc),e.Suo(ht,fn,5,e.Rgc),e.Suo(ht,gn,5,e.Rgc),e.Suo(ht,An,5,e.Rgc),e.Suo(ht,jn,5,e.Rgc),e.Suo(ht,ai,5,e.Rgc),e.Suo(ht,ut,5)),2&Mt){let st;e.iGM(st=e.CRH())&&(Vt.optionTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.optgroupTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.labelTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.multiLabelTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.headerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.footerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.notFoundTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.typeToSearchTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.loadingTextTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.tagTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.loadingSpinnerTemplate=st.first),e.iGM(st=e.CRH())&&(Vt.ngOptions=st)}},viewQuery:function(Mt,Vt){if(1&Mt&&(e.Gf(Pe,5),e.Gf(xt,7),e.Gf(St,5)),2&Mt){let ht;e.iGM(ht=e.CRH())&&(Vt.dropdownPanel=ht.first),e.iGM(ht=e.CRH())&&(Vt.searchInput=ht.first),e.iGM(ht=e.CRH())&&(Vt.clearButton=ht.first)}},hostVars:20,hostBindings:function(Mt,Vt){1&Mt&&e.NdJ("keydown",function(st){return Vt.handleKeyDown(st)}),2&Mt&&e.ekj("ng-select-typeahead",Vt.typeahead)("ng-select-multiple",Vt.multiple)("ng-select-taggable",Vt.addTag)("ng-select-searchable",Vt.searchable)("ng-select-clearable",Vt.clearable)("ng-select-opened",Vt.isOpen)("ng-select",Vt.useDefaultClass)("ng-select-disabled",Vt.disabled)("ng-select-filtered",Vt.filtered)("ng-select-single",Vt.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[e._Bn([{provide:l.JU,useExisting:(0,e.Gpc)(()=>wt),multi:!0},G]),e.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper","tabindex","0",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],["clearButton",""],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(Mt,Vt){if(1&Mt){const ht=e.EpF();e.TgZ(0,"div",0),e.NdJ("mousedown",function(It){return Vt.handleMousedown(It)}),e.TgZ(1,"div",1)(2,"div",2),e._uU(3),e.qZA(),e.YNc(4,tn,2,2,"ng-container",3),e.YNc(5,Yn,1,5,null,3),e.TgZ(6,"div",4)(7,"input",5,6),e.NdJ("input",function(){e.CHM(ht);const It=e.MAs(8);return e.KtG(Vt.filter(It.value))})("compositionstart",function(){return Vt.onCompositionStart()})("compositionend",function(){e.CHM(ht);const It=e.MAs(8);return e.KtG(Vt.onCompositionEnd(It.value))})("focus",function(It){return Vt.onInputFocus(It)})("blur",function(It){return Vt.onInputBlur(It)})("change",function(It){return It.stopPropagation()}),e.qZA()()(),e.YNc(9,Rn,4,1,"ng-container",3),e.YNc(10,dt,4,1,"span",7),e.TgZ(11,"span",8),e._UZ(12,"span",9),e.qZA()(),e.YNc(13,vn,7,19,"ng-dropdown-panel",10)}2&Mt&&(e.ekj("ng-appearance-outline","outline"===Vt.appearance)("ng-has-value",Vt.hasValue),e.xp6(3),e.Oqu(Vt.placeholder),e.xp6(1),e.Q6J("ngIf",(!Vt.multiLabelTemplate||!Vt.multiple)&&Vt.selectedItems.length>0),e.xp6(1),e.Q6J("ngIf",Vt.multiple&&Vt.multiLabelTemplate&&Vt.selectedValues.length>0),e.xp6(1),e.uIk("aria-expanded",Vt.isOpen)("aria-owns",Vt.isOpen?Vt.dropdownId:null),e.xp6(1),e.Q6J("readOnly",!Vt.searchable||Vt.itemsList.maxItemsSelected)("disabled",Vt.disabled)("value",Vt.searchTerm?Vt.searchTerm:""),e.uIk("id",Vt.labelForId)("tabindex",Vt.tabIndex)("aria-activedescendant",Vt.isOpen?null==Vt.itemsList||null==Vt.itemsList.markedItem?null:Vt.itemsList.markedItem.htmlId:null)("aria-controls",Vt.isOpen?Vt.dropdownId:null),e.xp6(2),e.Q6J("ngIf",Vt.loading),e.xp6(1),e.Q6J("ngIf",Vt.showClear()),e.xp6(3),e.Q6J("ngIf",Vt.isOpen))},dependencies:[ce.mk,ce.sg,ce.O5,ce.tP,Pe,Oe],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0})}return wt})();function He(){return new Wt}class Wt{constructor(){this._selected=[]}get value(){return this._selected}select(Yt,fe,Mt){if(Yt.selected=!0,(!Yt.children||!fe&&Mt)&&this._selected.push(Yt),fe)if(Yt.parent){const Vt=Yt.parent.children.length,ht=Yt.parent.children.filter(st=>st.selected).length;Yt.parent.selected=Vt===ht}else Yt.children&&(this._setChildrenSelectedState(Yt.children,!0),this._removeChildren(Yt),this._selected=Mt&&this._activeChildren(Yt)?[...this._selected.filter(Vt=>Vt.parent!==Yt),Yt]:[...this._selected,...Yt.children.filter(Vt=>!Vt.disabled)])}unselect(Yt,fe){if(this._selected=this._selected.filter(Mt=>Mt!==Yt),Yt.selected=!1,fe)if(Yt.parent&&Yt.parent.selected){const Mt=Yt.parent.children;this._removeParent(Yt.parent),this._removeChildren(Yt.parent),this._selected.push(...Mt.filter(Vt=>Vt!==Yt&&!Vt.disabled)),Yt.parent.selected=!1}else Yt.children&&(this._setChildrenSelectedState(Yt.children,!1),this._removeChildren(Yt))}clear(Yt){this._selected=Yt?this._selected.filter(fe=>fe.disabled):[]}_setChildrenSelectedState(Yt,fe){for(const Mt of Yt)Mt.disabled||(Mt.selected=fe)}_removeChildren(Yt){this._selected=[...this._selected.filter(fe=>fe.parent!==Yt),...Yt.children.filter(fe=>fe.parent===Yt&&fe.disabled&&fe.selected)]}_removeParent(Yt){this._selected=this._selected.filter(fe=>fe!==Yt)}_activeChildren(Yt){return Yt.children.every(fe=>!fe.disabled||fe.selected)}}let Pn=(()=>{class wt{static#e=this.\u0275fac=function(Mt){return new(Mt||wt)};static#t=this.\u0275mod=e.oAB({type:wt});static#n=this.\u0275inj=e.cJS({providers:[{provide:be,useValue:He}],imports:[ce.ez]})}return wt})()},469:(ft,Ie,C)=>{"use strict";C.d(Ie,{S:()=>$f,f:()=>vu});var e=C(5861),l=C(6814),D=C(5879),I=C(6223);var o,n=(o=function(i,s){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var v in h)Object.prototype.hasOwnProperty.call(h,v)&&(c[v]=h[v])})(i,s)},function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}),Z=function(o){function t(i,s){var c=this.constructor,h=o.call(this,i,s)||this;return Object.defineProperty(h,"name",{value:c.name,enumerable:!1,configurable:!0}),function S(o,t){var i=Object.setPrototypeOf;i?i(o,t):o.__proto__=t}(h,c.prototype),function w(o,t){void 0===t&&(t=o.constructor);var i=Error.captureStackTrace;i&&i(o,t)}(h),h}return n(t,o),t}(Error),ue=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),se=function(o){function t(i){void 0===i&&(i=void 0);var s=o.call(this,i)||this;return s.message=i,s}return ue(t,o),t.prototype.getKind=function(){return this.constructor.kind},t.kind="Exception",t}(Z);const te=se;var oe=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ce=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return oe(t,o),t.kind="ArgumentException",t}(te);const _e=ce;var Re=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),mt=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Re(t,o),t.kind="IllegalArgumentException",t}(te);const Ge=mt;var Lt=function(){function o(t){if(this.binarizer=t,null===t)throw new Ge("Binarizer must be non-null.")}return o.prototype.getWidth=function(){return this.binarizer.getWidth()},o.prototype.getHeight=function(){return this.binarizer.getHeight()},o.prototype.getBlackRow=function(t,i){return this.binarizer.getBlackRow(t,i)},o.prototype.getBlackMatrix=function(){return null==this.matrix&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},o.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},o.prototype.crop=function(t,i,s,c){var h=this.binarizer.getLuminanceSource().crop(t,i,s,c);return new o(this.binarizer.createBinarizer(h))},o.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},o.prototype.rotateCounterClockwise=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new o(this.binarizer.createBinarizer(t))},o.prototype.rotateCounterClockwise45=function(){var t=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new o(this.binarizer.createBinarizer(t))},o.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},o}();const je=Lt;var Tt=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),xt=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Tt(t,o),t.getChecksumInstance=function(){return new t},t.kind="ChecksumException",t}(te);const St=xt;var Zt=function(){function o(t){this.source=t}return o.prototype.getLuminanceSource=function(){return this.source},o.prototype.getWidth=function(){return this.source.getWidth()},o.prototype.getHeight=function(){return this.source.getHeight()},o}();const yt=Zt;var un=function(){function o(){}return o.arraycopy=function(t,i,s,c,h){for(;h--;)s[c++]=t[i++]},o.currentTimeMillis=function(){return Date.now()},o}();const Jt=un;var tn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),wn=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return tn(t,o),t.kind="IndexOutOfBoundsException",t}(te);const Ln=wn;var Yn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ti=function(o){function t(i,s){void 0===i&&(i=void 0),void 0===s&&(s=void 0);var c=o.call(this,s)||this;return c.index=i,c.message=s,c}return Yn(t,o),t.kind="ArrayIndexOutOfBoundsException",t}(Ln);const gi=ti;var dt=function(){function o(){}return o.fill=function(t,i){for(var s=0,c=t.length;ss)throw new Ge("fromIndex("+i+") > toIndex("+s+")");if(i<0)throw new gi(i);if(s>t)throw new gi(s)},o.asList=function(){for(var t=[],i=0;i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),v=h.next();!v.done;v=h.next())c=31*c+v.value}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c},o.fillUint8Array=function(t,i){for(var s=0;s!==t.length;s++)t[s]=i},o.copyOf=function(t,i){return t.slice(0,i)},o.copyOfUint8Array=function(t,i){if(t.length<=i){var s=new Uint8Array(i);return s.set(t),s}return t.slice(0,i)},o.copyOfRange=function(t,i,s){var c=s-i,h=new Int32Array(c);return Jt.arraycopy(t,i,h,0,c),h},o.binarySearch=function(t,i,s){void 0===s&&(s=o.numberComparator);for(var c=0,h=t.length-1;c<=h;){var v=h+c>>1,M=s(i,t[v]);if(M>0)c=v+1;else{if(!(M<0))return v;h=v-1}}return-c-1},o.numberComparator=function(t,i){return t-i},o}();const at=dt;var Be=function(){function o(){}return o.numberOfTrailingZeros=function(t){var i;if(0===t)return 32;var s=31;return 0!=(i=t<<16)&&(s-=16,t=i),0!=(i=t<<8)&&(s-=8,t=i),0!=(i=t<<4)&&(s-=4,t=i),0!=(i=t<<2)&&(s-=2,t=i),s-(t<<1>>>31)},o.numberOfLeadingZeros=function(t){if(0===t)return 32;var i=1;return t>>>16||(i+=16,t<<=16),t>>>24||(i+=8,t<<=8),t>>>28||(i+=4,t<<=4),t>>>30||(i+=2,t<<=2),i-(t>>>31)},o.toHexString=function(t){return t.toString(16)},o.toBinaryString=function(t){return String(parseInt(String(t),2))},o.bitCount=function(t){return t=(t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135,63&(t+=t>>>8)+(t>>>16)},o.truncDivision=function(t,i){return Math.trunc(t/i)},o.parseInt=function(t,i){return void 0===i&&(i=void 0),parseInt(t,i)},o.MIN_VALUE_32_BITS=-2147483648,o.MAX_VALUE=Number.MAX_SAFE_INTEGER,o}();const Ee=Be;var $e=function(){function o(t,i){void 0===t?(this.size=0,this.bits=new Int32Array(1)):(this.size=t,this.bits=null==i?o.makeArray(t):i)}return o.prototype.getSize=function(){return this.size},o.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},o.prototype.ensureCapacity=function(t){if(t>32*this.bits.length){var i=o.makeArray(t);Jt.arraycopy(this.bits,0,i,0,this.bits.length),this.bits=i}},o.prototype.get=function(t){return 0!=(this.bits[Math.floor(t/32)]&1<<(31&t))},o.prototype.set=function(t){this.bits[Math.floor(t/32)]|=1<<(31&t)},o.prototype.flip=function(t){this.bits[Math.floor(t/32)]^=1<<(31&t)},o.prototype.getNextSet=function(t){var i=this.size;if(t>=i)return i;var s=this.bits,c=Math.floor(t/32),h=s[c];h&=~((1<<(31&t))-1);for(var v=s.length;0===h;){if(++c===v)return i;h=s[c]}var M=32*c+Ee.numberOfTrailingZeros(h);return M>i?i:M},o.prototype.getNextUnset=function(t){var i=this.size;if(t>=i)return i;var s=this.bits,c=Math.floor(t/32),h=~s[c];h&=~((1<<(31&t))-1);for(var v=s.length;0===h;){if(++c===v)return i;h=~s[c]}var M=32*c+Ee.numberOfTrailingZeros(h);return M>i?i:M},o.prototype.setBulk=function(t,i){this.bits[Math.floor(t/32)]=i},o.prototype.setRange=function(t,i){if(ithis.size)throw new Ge;if(i!==t){i--;for(var s=Math.floor(t/32),c=Math.floor(i/32),h=this.bits,v=s;v<=c;v++)h[v]|=(2<<(vs?0:31&t))}},o.prototype.clear=function(){for(var t=this.bits.length,i=this.bits,s=0;sthis.size)throw new Ge;if(i===t)return!0;i--;for(var c=Math.floor(t/32),h=Math.floor(i/32),v=this.bits,M=c;M<=h;M++){var $=(2<<(Mc?0:31&t))&4294967295;if((v[M]&$)!==(s?$:0))return!1}return!0},o.prototype.appendBit=function(t){this.ensureCapacity(this.size+1),t&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},o.prototype.appendBits=function(t,i){if(i<0||i>32)throw new Ge("Num bits must be between 0 and 32");this.ensureCapacity(this.size+i);for(var s=i;s>0;s--)this.appendBit(1==(t>>s-1&1))},o.prototype.appendBitArray=function(t){var i=t.size;this.ensureCapacity(this.size+i);for(var s=0;s>1&1431655765|(1431655765&v)<<1)>>2&858993459|(858993459&v)<<2)>>4&252645135|(252645135&v)<<4)>>8&16711935|(16711935&v)<<8)>>16&65535|(65535&v)<<16}if(this.size!==32*s){var M=32*s-this.size,O=t[0]>>>M;for(h=1;h>>M}t[s-1]=O}this.bits=t},o.makeArray=function(t){return new Int32Array(Math.floor((t+31)/32))},o.prototype.equals=function(t){return t instanceof o&&(this.size===t.size&&at.equals(this.bits,t.bits))},o.prototype.hashCode=function(){return 31*this.size+at.hashCode(this.bits)},o.prototype.toString=function(){for(var t="",i=0,s=this.size;i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(v),we=de.next();!we.done;we=de.next())o.NAME_TO_ECI.set(we.value,this)}catch(vt){c={error:vt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}}return o.prototype.getValueIdentifier=function(){return this.valueIdentifier},o.prototype.getName=function(){return this.name},o.prototype.getValue=function(){return this.values[0]},o.getCharacterSetECIByValue=function(t){if(t<0||t>=900)throw new bt("incorect value");var i=o.VALUES_TO_ECI.get(t);if(void 0===i)throw new bt("incorect value");return i},o.getCharacterSetECIByName=function(t){var i=o.NAME_TO_ECI.get(t);if(void 0===i)throw new bt("incorect value");return i},o.prototype.equals=function(t){if(!(t instanceof o))return!1;var i=t;return this.getName()===i.getName()},o.VALUE_IDENTIFIER_TO_ECI=new Map,o.VALUES_TO_ECI=new Map,o.NAME_TO_ECI=new Map,o.Cp437=new o(Qt.Cp437,Int32Array.from([0,2]),"Cp437"),o.ISO8859_1=new o(Qt.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),o.ISO8859_2=new o(Qt.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),o.ISO8859_3=new o(Qt.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),o.ISO8859_4=new o(Qt.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),o.ISO8859_5=new o(Qt.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),o.ISO8859_6=new o(Qt.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),o.ISO8859_7=new o(Qt.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),o.ISO8859_8=new o(Qt.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),o.ISO8859_9=new o(Qt.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),o.ISO8859_10=new o(Qt.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),o.ISO8859_11=new o(Qt.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),o.ISO8859_13=new o(Qt.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),o.ISO8859_14=new o(Qt.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),o.ISO8859_15=new o(Qt.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),o.ISO8859_16=new o(Qt.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),o.SJIS=new o(Qt.SJIS,20,"SJIS","Shift_JIS"),o.Cp1250=new o(Qt.Cp1250,21,"Cp1250","windows-1250"),o.Cp1251=new o(Qt.Cp1251,22,"Cp1251","windows-1251"),o.Cp1252=new o(Qt.Cp1252,23,"Cp1252","windows-1252"),o.Cp1256=new o(Qt.Cp1256,24,"Cp1256","windows-1256"),o.UnicodeBigUnmarked=new o(Qt.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),o.UTF8=new o(Qt.UTF8,26,"UTF8","UTF-8"),o.ASCII=new o(Qt.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),o.Big5=new o(Qt.Big5,28,"Big5"),o.GB18030=new o(Qt.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),o.EUC_KR=new o(Qt.EUC_KR,30,"EUC_KR","EUC-KR"),o}();const Dn=nn;var Ot=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),rn=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Ot(t,o),t.kind="UnsupportedOperationException",t}(te);const vn=rn;var ei=function(){function o(){}return o.decode=function(t,i){var s=this.encodingName(i);return this.customDecoder?this.customDecoder(t,s):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(s)?this.decodeFallback(t,s):new TextDecoder(s).decode(t)},o.shouldDecodeOnFallback=function(t){return!o.isBrowser()&&"ISO-8859-1"===t},o.encode=function(t,i){var s=this.encodingName(i);return this.customEncoder?this.customEncoder(t,s):typeof TextEncoder>"u"?this.encodeFallback(t):(new TextEncoder).encode(t)},o.isBrowser=function(){return typeof window<"u"&&"[object Window]"==={}.toString.call(window)},o.encodingName=function(t){return"string"==typeof t?t:t.getName()},o.encodingCharacterSet=function(t){return t instanceof Dn?t:Dn.getCharacterSetECIByName(t)},o.decodeFallback=function(t,i){var s=this.encodingCharacterSet(i);if(o.isDecodeFallbackSupported(s)){for(var c="",h=0,v=t.length;h3&&239===t[0]&&187===t[1]&&191===t[2],an=0;an0?128&bn?M--:v=!1:128&bn&&(64&bn?(M++,32&bn?(M++,16&bn?(M++,8&bn?v=!1:$++):N++):O++):v=!1)),c&&(bn>127&&bn<160?c=!1:bn>159&&(bn<192||215===bn||247===bn)&&$t++),h&&(q>0?bn<64||127===bn||bn>252?h=!1:q--:128===bn||160===bn||bn>239?h=!1:bn>160&&bn<224?(de++,et=0,++we>vt&&(vt=we)):bn>127?(q++,we=0,++et>zt&&(zt=et)):(we=0,et=0))}return v&&M>0&&(v=!1),h&&q>0&&(h=!1),v&&(Gt||O+N+$>0)?o.UTF8:h&&(o.ASSUME_SHIFT_JIS||vt>=3||zt>=3)?o.SHIFT_JIS:c&&h?2===vt&&2===de||10*$t>=s?o.SHIFT_JIS:o.ISO88591:c?o.ISO88591:h?o.SHIFT_JIS:v?o.UTF8:o.PLATFORM_DEFAULT_ENCODING},o.format=function(t){for(var i=[],s=1;sv){if(-1===M)M=h-v;else if(h-v!==M)throw new Ge("row lengths do not match");v=h,O++}N++}else if(t.substring(N,N+i.length)===i)N+=i.length,c[h]=!0,h++;else{if(t.substring(N,N+s.length)!==s)throw new Ge("illegal character encountered: "+t.substring(N));N+=s.length,c[h]=!1,h++}if(h>v){if(-1===M)M=h-v;else if(h-v!==M)throw new Ge("row lengths do not match");O++}for(var $=new o(M,O),q=0;q>>(31&t)&1)},o.prototype.set=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]|=1<<(31&t)&4294967295},o.prototype.unset=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]&=~(1<<(31&t)&4294967295)},o.prototype.flip=function(t,i){var s=i*this.rowSize+Math.floor(t/32);this.bits[s]^=1<<(31&t)&4294967295},o.prototype.xor=function(t){if(this.width!==t.getWidth()||this.height!==t.getHeight()||this.rowSize!==t.getRowSize())throw new Ge("input matrix dimensions do not match");for(var i=new me(Math.floor(this.width/32)+1),s=this.rowSize,c=this.bits,h=0,v=this.height;hthis.height||h>this.width)throw new Ge("The region must fit inside the matrix");for(var M=this.rowSize,O=this.bits,N=i;NO&&(O=N),32*$M){for(de=31;!(q>>>de);)de--;32*$+de>M&&(M=32*$+de)}}}return M=0&&0===i[s];)s--;if(s<0)return null;for(var c=Math.floor(s/t),h=32*Math.floor(s%t),v=i[s],M=31;!(v>>>M);)M--;return Int32Array.from([h+=M,c])},o.prototype.getWidth=function(){return this.width},o.prototype.getHeight=function(){return this.height},o.prototype.getRowSize=function(){return this.rowSize},o.prototype.equals=function(t){return t instanceof o&&(this.width===t.width&&this.height===t.height&&this.rowSize===t.rowSize&&at.equals(this.bits,t.bits))},o.prototype.hashCode=function(){var t=this.width;return 31*(t=31*(t=31*(t=31*t+this.width)+this.height)+this.rowSize)+at.hashCode(this.bits)},o.prototype.toString=function(t,i,s){return void 0===t&&(t="X "),void 0===i&&(i=" "),void 0===s&&(s="\n"),this.buildToString(t,i,s)},o.prototype.buildToString=function(t,i,s){for(var c=new Ce,h=0,v=this.height;h>t.LUMINANCE_SHIFT]++;var N=t.estimateBlackPoint(M);if(h<3)for(O=0;O>t.LUMINANCE_SHIFT]++;var we=t.estimateBlackPoint(v),et=i.getMatrix();for(M=0;Mv&&(h=M,v=i[M]),i[M]>c&&(c=i[M]);var O=0,N=0;for(M=0;MN&&(O=M,N=q)}if(h>O){var de=h;h=O,O=de}if(O-h<=s/16)throw new Se;var we=O-1,et=-1;for(M=O-1;M>h;M--){var q,vt=M-h;(q=vt*vt*(O-M)*(c-i[M]))>et&&(we=M,et=q)}return we<=t.MINIMUM_DIMENSION&&c>=t.MINIMUM_DIMENSION){var h=i.getMatrix(),v=s>>t.BLOCK_SIZE_POWER;s&t.BLOCK_SIZE_MASK&&v++;var M=c>>t.BLOCK_SIZE_POWER;c&t.BLOCK_SIZE_MASK&&M++;var O=t.calculateBlackPoints(h,v,M,s,c),N=new ae(s,c);t.calculateThresholdForBlock(h,v,M,s,c,O,N),this.matrix=N}else this.matrix=o.prototype.getBlackMatrix.call(this);return this.matrix},t.prototype.createBinarizer=function(i){return new t(i)},t.calculateThresholdForBlock=function(i,s,c,h,v,M,O){for(var N=v-t.BLOCK_SIZE,$=h-t.BLOCK_SIZE,q=0;qN&&(de=N);for(var we=t.cap(q,2,c-3),et=0;et$&&(vt=$);for(var zt=t.cap(et,2,s-3),$t=0,Gt=-2;Gt<=2;Gt++){var an=M[we+Gt];$t+=an[zt-2]+an[zt-1]+an[zt]+an[zt+1]+an[zt+2]}t.thresholdBlock(i,vt,de,$t/25,h,O)}}},t.cap=function(i,s,c){return ic?c:i},t.thresholdBlock=function(i,s,c,h,v,M){for(var O=0,N=c*v+s;OM&&(q=M);for(var de=0;deO&&(we=O);for(var et=0,vt=255,zt=0,$t=0,Gt=q*h+we;$tzt&&(zt=bn)}if(zt-vt>t.MIN_DYNAMIC_RANGE)for($t++,Gt+=h;$t>2*t.BLOCK_SIZE_POWER;if(zt-vt<=t.MIN_DYNAMIC_RANGE&&(Nn=vt/2,$>0&&de>0)){var Zn=(N[$-1][de]+2*N[$][de-1]+N[$-1][de-1])/4;vt>10}else{v=0,M=0;for(var et=i.length;v>10)}return h},t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth(),h=i*c;return null===s?s=this.buffer.slice(h,h+c):(s.length0&&h[h.length-1])&&(6===N[0]||2===N[0])){i=0;continue}if(3===N[0]&&(!h||N[1]>h[0]&&N[1]=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),c=s.next();!c.done;c=s.next())"videoinput"===(v="video"===(h=c.value).kind?"videoinput":h.kind)&&i.push({deviceId:h.deviceId||h.id,label:h.label||"Video device "+(i.length+1),kind:v,groupId:h.groupId})}catch(et){q={error:et}}finally{try{c&&!c.done&&(de=s.return)&&de.call(s)}finally{if(q)throw q.error}}return[2,i]}})})},o.prototype.getVideoInputDevices=function(){return G(this,void 0,void 0,function(){return U(this,function(i){switch(i.label){case 0:return[4,this.listVideoInputDevices()];case 1:return[2,i.sent().map(function(s){return new _t(s.deviceId,s.label)})]}})})},o.prototype.findDeviceById=function(t){return G(this,void 0,void 0,function(){var i;return U(this,function(s){switch(s.label){case 0:return[4,this.listVideoInputDevices()];case 1:return(i=s.sent())?[2,i.find(function(c){return c.deviceId===t})]:[2,null]}})})},o.prototype.decodeFromInputVideoDevice=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:return[4,this.decodeOnceFromVideoDevice(t,i)];case 1:return[2,s.sent()]}})})},o.prototype.decodeOnceFromVideoDevice=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.decodeOnceFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i)];case 1:return[2,h.sent()]}})})},o.prototype.decodeOnceFromConstraints=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(c){switch(c.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return s=c.sent(),[4,this.decodeOnceFromStream(s,i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromStream=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,i)];case 1:return s=h.sent(),[4,this.decodeOnce(s)];case 2:return[2,h.sent()]}})})},o.prototype.decodeFromInputVideoDeviceContinuously=function(t,i,s){return G(this,void 0,void 0,function(){return U(this,function(c){switch(c.label){case 0:return[4,this.decodeFromVideoDevice(t,i,s)];case 1:return[2,c.sent()]}})})},o.prototype.decodeFromVideoDevice=function(t,i,s){return G(this,void 0,void 0,function(){return U(this,function(v){switch(v.label){case 0:return[4,this.decodeFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i,s)];case 1:return[2,v.sent()]}})})},o.prototype.decodeFromConstraints=function(t,i,s){return G(this,void 0,void 0,function(){var c;return U(this,function(h){switch(h.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return c=h.sent(),[4,this.decodeFromStream(c,i,s)];case 2:return[2,h.sent()]}})})},o.prototype.decodeFromStream=function(t,i,s){return G(this,void 0,void 0,function(){var c;return U(this,function(h){switch(h.label){case 0:return this.reset(),[4,this.attachStreamToVideo(t,i)];case 1:return c=h.sent(),[4,this.decodeContinuously(c,s)];case 2:return[2,h.sent()]}})})},o.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},o.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},o.prototype.attachStreamToVideo=function(t,i){return G(this,void 0,void 0,function(){var s;return U(this,function(c){switch(c.label){case 0:return s=this.prepareVideoElement(i),this.addVideoSource(s,t),this.videoElement=s,this.stream=t,[4,this.playVideoOnLoadAsync(s)];case 1:return c.sent(),[2,s]}})})},o.prototype.playVideoOnLoadAsync=function(t){var i=this;return new Promise(function(s,c){return i.playVideoOnLoad(t,function(){return s()})})},o.prototype.playVideoOnLoad=function(t,i){var s=this;this.videoEndedListener=function(){return s.stopStreams()},this.videoCanPlayListener=function(){return s.tryPlayVideo(t)},t.addEventListener("ended",this.videoEndedListener),t.addEventListener("canplay",this.videoCanPlayListener),t.addEventListener("playing",i),this.tryPlayVideo(t)},o.prototype.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&!t.ended&&t.readyState>2},o.prototype.tryPlayVideo=function(t){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:if(this.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.play()];case 2:return s.sent(),[3,4];case 3:return s.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},o.prototype.getMediaElement=function(t,i){var s=document.getElementById(t);if(!s)throw new _e("element with id '"+t+"' not found");if(s.nodeName.toLowerCase()!==i.toLowerCase())throw new _e("element with id '"+t+"' must be an "+i+" element");return s},o.prototype.decodeFromImage=function(t,i){if(!t&&!i)throw new _e("either imageElement with a src set or an url must be provided");return i&&!t?this.decodeFromImageUrl(i):this.decodeFromImageElement(t)},o.prototype.decodeFromVideo=function(t,i){if(!t&&!i)throw new _e("Either an element with a src set or an URL must be provided");return i&&!t?this.decodeFromVideoUrl(i):this.decodeFromVideoElement(t)},o.prototype.decodeFromVideoContinuously=function(t,i,s){if(void 0===t&&void 0===i)throw new _e("Either an element with a src set or an URL must be provided");return i&&!t?this.decodeFromVideoUrlContinuously(i,s):this.decodeFromVideoElementContinuously(t,s)},o.prototype.decodeFromImageElement=function(t){if(!t)throw new _e("An image element must be provided.");this.reset();var i=this.prepareImageElement(t);return this.imageElement=i,this.isImageLoaded(i)?this.decodeOnce(i,!1,!0):this._decodeOnLoadImage(i)},o.prototype.decodeFromVideoElement=function(t){var i=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideo(i)},o.prototype.decodeFromVideoElementContinuously=function(t,i){var s=this._decodeFromVideoElementSetup(t);return this._decodeOnLoadVideoContinuously(s,i)},o.prototype._decodeFromVideoElementSetup=function(t){if(!t)throw new _e("A video element must be provided.");this.reset();var i=this.prepareVideoElement(t);return this.videoElement=i,i},o.prototype.decodeFromImageUrl=function(t){if(!t)throw new _e("An URL must be provided.");this.reset();var i=this.prepareImageElement();this.imageElement=i;var s=this._decodeOnLoadImage(i);return i.src=t,s},o.prototype.decodeFromVideoUrl=function(t){if(!t)throw new _e("An URL must be provided.");this.reset();var i=this.prepareVideoElement(),s=this.decodeFromVideoElement(i);return i.src=t,s},o.prototype.decodeFromVideoUrlContinuously=function(t,i){if(!t)throw new _e("An URL must be provided.");this.reset();var s=this.prepareVideoElement(),c=this.decodeFromVideoElementContinuously(s,i);return s.src=t,c},o.prototype._decodeOnLoadImage=function(t){var i=this;return new Promise(function(s,c){i.imageLoadedListener=function(){return i.decodeOnce(t,!1,!0).then(s,c)},t.addEventListener("load",i.imageLoadedListener)})},o.prototype._decodeOnLoadVideo=function(t){return G(this,void 0,void 0,function(){return U(this,function(i){switch(i.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return i.sent(),[4,this.decodeOnce(t)];case 2:return[2,i.sent()]}})})},o.prototype._decodeOnLoadVideoContinuously=function(t,i){return G(this,void 0,void 0,function(){return U(this,function(s){switch(s.label){case 0:return[4,this.playVideoOnLoadAsync(t)];case 1:return s.sent(),this.decodeContinuously(t,i),[2]}})})},o.prototype.isImageLoaded=function(t){return!(!t.complete||0===t.naturalWidth)},o.prototype.prepareImageElement=function(t){var i;return typeof t>"u"&&((i=document.createElement("img")).width=200,i.height=200),"string"==typeof t&&(i=this.getMediaElement(t,"img")),t instanceof HTMLImageElement&&(i=t),i},o.prototype.prepareVideoElement=function(t){var i;return!t&&typeof document<"u"&&((i=document.createElement("video")).width=200,i.height=200),"string"==typeof t&&(i=this.getMediaElement(t,"video")),t instanceof HTMLVideoElement&&(i=t),i.setAttribute("autoplay","true"),i.setAttribute("muted","true"),i.setAttribute("playsinline","true"),i},o.prototype.decodeOnce=function(t,i,s){var c=this;void 0===i&&(i=!0),void 0===s&&(s=!0),this._stopAsyncDecode=!1;var h=function(v,M){if(c._stopAsyncDecode)return M(new Se("Video stream has ended before any code could be detected.")),void(c._stopAsyncDecode=void 0);try{v(c.decode(t))}catch(de){if(i&&de instanceof Se||(de instanceof St||de instanceof bt)&&s)return setTimeout(h,c._timeBetweenDecodingAttempts,v,M);M(de)}};return new Promise(function(v,M){return h(v,M)})},o.prototype.decodeContinuously=function(t,i){var s=this;this._stopContinuousDecode=!1;var c=function(){if(s._stopContinuousDecode)s._stopContinuousDecode=void 0;else try{var h=s.decode(t);i(h,null),setTimeout(c,s.timeBetweenScansMillis)}catch(O){i(null,O),(O instanceof St||O instanceof bt||O instanceof Se)&&setTimeout(c,s._timeBetweenDecodingAttempts)}};c()},o.prototype.decode=function(t){var i=this.createBinaryBitmap(t);return this.decodeBitmap(i)},o.prototype.createBinaryBitmap=function(t){this.getCaptureCanvasContext(t),t instanceof HTMLVideoElement?this.drawFrameOnCanvas(t):this.drawImageOnCanvas(t);var s=this.getCaptureCanvas(t),c=new qt(s),h=new gn(c);return new je(h)},o.prototype.getCaptureCanvasContext=function(t){if(!this.captureCanvasContext){var i=this.getCaptureCanvas(t),s=void 0;try{s=i.getContext("2d",{willReadFrequently:!0})}catch{s=i.getContext("2d")}this.captureCanvasContext=s}return this.captureCanvasContext},o.prototype.getCaptureCanvas=function(t){if(!this.captureCanvas){var i=this.createCaptureCanvas(t);this.captureCanvas=i}return this.captureCanvas},o.prototype.drawFrameOnCanvas=function(t,i,s){void 0===i&&(i={sx:0,sy:0,sWidth:t.videoWidth,sHeight:t.videoHeight,dx:0,dy:0,dWidth:t.videoWidth,dHeight:t.videoHeight}),void 0===s&&(s=this.captureCanvasContext),s.drawImage(t,i.sx,i.sy,i.sWidth,i.sHeight,i.dx,i.dy,i.dWidth,i.dHeight)},o.prototype.drawImageOnCanvas=function(t,i,s){void 0===i&&(i={sx:0,sy:0,sWidth:t.naturalWidth,sHeight:t.naturalHeight,dx:0,dy:0,dWidth:t.naturalWidth,dHeight:t.naturalHeight}),void 0===s&&(s=this.captureCanvasContext),s.drawImage(t,i.sx,i.sy,i.sWidth,i.sHeight,i.dx,i.dy,i.dWidth,i.dHeight)},o.prototype.decodeBitmap=function(t){return this.reader.decode(t,this._hints)},o.prototype.createCaptureCanvas=function(t){if(typeof document>"u")return this._destroyCaptureCanvas(),null;var s,c,i=document.createElement("canvas");return typeof t<"u"&&(t instanceof HTMLVideoElement?(s=t.videoWidth,c=t.videoHeight):t instanceof HTMLImageElement&&(s=t.naturalWidth||t.width,c=t.naturalHeight||t.height)),i.style.width=s+"px",i.style.height=c+"px",i.width=s,i.height=c,i},o.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(t){return t.stop()}),this.stream=void 0),!1===this._stopAsyncDecode&&this.stopAsyncDecode(),!1===this._stopContinuousDecode&&this.stopContinuousDecode()},o.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},o.prototype._destroyVideoElement=function(){this.videoElement&&(typeof this.videoEndedListener<"u"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener<"u"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener<"u"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},o.prototype._destroyImageElement=function(){this.imageElement&&(void 0!==this.imageLoadedListener&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},o.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},o.prototype.addVideoSource=function(t,i){try{t.srcObject=i}catch{t.src=URL.createObjectURL(i)}},o.prototype.cleanVideoSource=function(t){try{t.srcObject=null}catch{t.src=""}this.videoElement.removeAttribute("src")},o}(),ut=function(){function o(t,i,s,c,h,v){void 0===s&&(s=null==i?0:8*i.length),void 0===v&&(v=Jt.currentTimeMillis()),this.text=t,this.rawBytes=i,this.numBits=s,this.resultPoints=c,this.format=h,this.timestamp=v,this.text=t,this.rawBytes=i,this.numBits=null==s?null==i?0:8*i.length:s,this.resultPoints=c,this.format=h,this.resultMetadata=null,this.timestamp=null==v?Jt.currentTimeMillis():v}return o.prototype.getText=function(){return this.text},o.prototype.getRawBytes=function(){return this.rawBytes},o.prototype.getNumBits=function(){return this.numBits},o.prototype.getResultPoints=function(){return this.resultPoints},o.prototype.getBarcodeFormat=function(){return this.format},o.prototype.getResultMetadata=function(){return this.resultMetadata},o.prototype.putMetadata=function(t,i){null===this.resultMetadata&&(this.resultMetadata=new Map),this.resultMetadata.set(t,i)},o.prototype.putAllMetadata=function(t){null!==t&&(this.resultMetadata=null===this.resultMetadata?t:new Map(t))},o.prototype.addResultPoints=function(t){var i=this.resultPoints;if(null===i)this.resultPoints=t;else if(null!==t&&t.length>0){var s=new Array(i.length+t.length);Jt.arraycopy(i,0,s,0,i.length),Jt.arraycopy(t,0,s,i.length,t.length),this.resultPoints=s}},o.prototype.getTimestamp=function(){return this.timestamp},o.prototype.toString=function(){return this.text},o}();const We=ut;var ze=function(o){return o[o.AZTEC=0]="AZTEC",o[o.CODABAR=1]="CODABAR",o[o.CODE_39=2]="CODE_39",o[o.CODE_93=3]="CODE_93",o[o.CODE_128=4]="CODE_128",o[o.DATA_MATRIX=5]="DATA_MATRIX",o[o.EAN_8=6]="EAN_8",o[o.EAN_13=7]="EAN_13",o[o.ITF=8]="ITF",o[o.MAXICODE=9]="MAXICODE",o[o.PDF_417=10]="PDF_417",o[o.QR_CODE=11]="QR_CODE",o[o.RSS_14=12]="RSS_14",o[o.RSS_EXPANDED=13]="RSS_EXPANDED",o[o.UPC_A=14]="UPC_A",o[o.UPC_E=15]="UPC_E",o[o.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION",o}(ze||{});const be=ze;var Te=function(o){return o[o.OTHER=0]="OTHER",o[o.ORIENTATION=1]="ORIENTATION",o[o.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",o[o.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",o[o.ISSUE_NUMBER=4]="ISSUE_NUMBER",o[o.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",o[o.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",o[o.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",o[o.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",o[o.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",o[o.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY",o}(Te||{});const He=Te;var Wt=function(){function o(t,i,s,c,h,v){void 0===h&&(h=-1),void 0===v&&(v=-1),this.rawBytes=t,this.text=i,this.byteSegments=s,this.ecLevel=c,this.structuredAppendSequenceNumber=h,this.structuredAppendParity=v,this.numBits=null==t?0:8*t.length}return o.prototype.getRawBytes=function(){return this.rawBytes},o.prototype.getNumBits=function(){return this.numBits},o.prototype.setNumBits=function(t){this.numBits=t},o.prototype.getText=function(){return this.text},o.prototype.getByteSegments=function(){return this.byteSegments},o.prototype.getECLevel=function(){return this.ecLevel},o.prototype.getErrorsCorrected=function(){return this.errorsCorrected},o.prototype.setErrorsCorrected=function(t){this.errorsCorrected=t},o.prototype.getErasures=function(){return this.erasures},o.prototype.setErasures=function(t){this.erasures=t},o.prototype.getOther=function(){return this.other},o.prototype.setOther=function(t){this.other=t},o.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},o.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},o.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},o}();const Pn=Wt;var wt=function(){function o(){}return o.prototype.exp=function(t){return this.expTable[t]},o.prototype.log=function(t){if(0===t)throw new Ge;return this.logTable[t]},o.addOrSubtract=function(t,i){return t^i},o}();const Yt=wt;var fe=function(){function o(t,i){if(0===i.length)throw new Ge;this.field=t;var s=i.length;if(s>1&&0===i[0]){for(var c=1;cs.length){var c=i;i=s,s=c}var h=new Int32Array(s.length),v=s.length-i.length;Jt.arraycopy(s,0,h,0,v);for(var M=v;M=t.getDegree()&&!c.isZero();){var M=c.getDegree()-t.getDegree(),O=i.multiply(c.getCoefficient(c.getDegree()),v),N=t.multiplyByMonomial(M,O),$=i.buildMonomial(M,O);s=s.addOrSubtract($),c=c.addOrSubtract(N)}return[s,c]},o.prototype.toString=function(){for(var t="",i=this.getDegree();i>=0;i--){var s=this.getCoefficient(i);if(0!==s){if(s<0?(t+=" - ",s=-s):t.length>0&&(t+=" + "),0===i||1!==s){var c=this.field.log(s);0===c?t+="1":1===c?t+="a":(t+="a^",t+=c)}0!==i&&(1===i?t+="x":(t+="x^",t+=i))}}return t},o}();const Mt=fe;var Vt=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ht=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Vt(t,o),t.kind="ArithmeticException",t}(te);const st=ht;var It=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),cn=function(o){function t(i,s,c){var h=o.call(this)||this;h.primitive=i,h.size=s,h.generatorBase=c;for(var v=new Int32Array(s),M=1,O=0;O=s&&(M^=i,M&=s-1);h.expTable=v;var N=new Int32Array(s);for(O=0;O=(s/2|0);){var $=v,q=O;if(O=N,(v=M).isZero())throw new ni("r_{i-1} was zero");M=$;for(var de=h.getZero(),we=v.getCoefficient(v.getDegree()),et=h.inverse(we);M.getDegree()>=v.getDegree()&&!M.isZero();){var vt=M.getDegree()-v.getDegree(),zt=h.multiply(M.getCoefficient(M.getDegree()),et);de=de.addOrSubtract(h.buildMonomial(vt,zt)),M=M.addOrSubtract(v.multiplyByMonomial(vt,zt))}if(N=de.multiply(O).addOrSubtract(q),M.getDegree()>=v.getDegree())throw new ki("Division algorithm failed to reduce polynomial?")}var $t=N.getCoefficient(0);if(0===$t)throw new ni("sigmaTilde(0) was zero");var Gt=h.inverse($t);return[N.multiplyScalar(Gt),M.multiplyScalar(Gt)]},o.prototype.findErrorLocations=function(t){var i=t.getDegree();if(1===i)return Int32Array.from([t.getCoefficient(1)]);for(var s=new Int32Array(i),c=0,h=this.field,v=1;v1,et,et+s-1),et+=s-1;else for(var vt=s-1;vt>=0;--vt)we[et++]=0!=(de&1<=8?o.readCode(t,i,8):o.readCode(t,i,s)<<8-s},o.convertBoolArrayToByteArray=function(t){for(var i=new Uint8Array((t.length+7)/8),s=0;s","?","[","]","{","}","CTRL_UL"],o.DIGIT_TABLE=["CTRL_PS"," ","0","1","2","3","4","5","6","7","8","9",",",".","CTRL_UL","CTRL_US"],o}();const Ji=co;var tr=function(){function o(){}return o.round=function(t){return isNaN(t)?0:t<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:t>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:t+(t<0?-.5:.5)|0},o.distance=function(t,i,s,c){var h=t-s,v=i-c;return Math.sqrt(h*h+v*v)},o.sum=function(t){for(var i=0,s=0,c=t.length;s!==c;s++)i+=t[s];return i},o}();const _i=tr;var bo=function(){function o(){}return o.floatToIntBits=function(t){return t},o.MAX_VALUE=Number.MAX_SAFE_INTEGER,o}();const pr=bo;var br=function(){function o(t,i){this.x=t,this.y=i}return o.prototype.getX=function(){return this.x},o.prototype.getY=function(){return this.y},o.prototype.equals=function(t){return t instanceof o&&(this.x===t.x&&this.y===t.y)},o.prototype.hashCode=function(){return 31*pr.floatToIntBits(this.x)+pr.floatToIntBits(this.y)},o.prototype.toString=function(){return"("+this.x+","+this.y+")"},o.orderBestPatterns=function(t){var h,v,M,i=this.distance(t[0],t[1]),s=this.distance(t[1],t[2]),c=this.distance(t[0],t[2]);if(s>=i&&s>=c?(v=t[0],h=t[1],M=t[2]):c>=s&&c>=i?(v=t[1],h=t[0],M=t[2]):(v=t[2],h=t[0],M=t[1]),this.crossProductZ(h,v,M)<0){var O=h;h=M,M=O}t[0]=h,t[1]=v,t[2]=M},o.distance=function(t,i){return _i.distance(t.x,t.y,i.x,i.y)},o.crossProductZ=function(t,i,s){var c=i.x,h=i.y;return(s.x-c)*(t.y-h)-(s.y-h)*(t.x-c)},o}();const $n=br;var yo=function(){function o(t,i){this.bits=t,this.points=i}return o.prototype.getBits=function(){return this.bits},o.prototype.getPoints=function(){return this.points},o}();const Fr=yo;var uo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ho=function(o){function t(i,s,c,h,v){var M=o.call(this,i,s)||this;return M.compact=c,M.nbDatablocks=h,M.nbLayers=v,M}return uo(t,o),t.prototype.getNbLayers=function(){return this.nbLayers},t.prototype.getNbDatablocks=function(){return this.nbDatablocks},t.prototype.isCompact=function(){return this.compact},t}(Fr);const to=ho;var yr=function(){function o(t,i,s,c){this.image=t,this.height=t.getHeight(),this.width=t.getWidth(),null==i&&(i=o.INIT_SIZE),null==s&&(s=t.getWidth()/2|0),null==c&&(c=t.getHeight()/2|0);var h=i/2|0;if(this.leftInit=s-h,this.rightInit=s+h,this.upInit=c-h,this.downInit=c+h,this.upInit<0||this.leftInit<0||this.downInit>=this.height||this.rightInit>=this.width)throw new Se}return o.prototype.detect=function(){for(var t=this.leftInit,i=this.rightInit,s=this.upInit,c=this.downInit,h=!1,v=!0,M=!1,O=!1,N=!1,$=!1,q=!1,de=this.width,we=this.height;v;){v=!1;for(var et=!0;(et||!O)&&i=de){h=!0;break}for(var vt=!0;(vt||!N)&&c=we){h=!0;break}for(var zt=!0;(zt||!$)&&t>=0;)(zt=this.containsBlackPoint(s,c,t,!1))?(t--,v=!0,$=!0):$||t--;if(t<0){h=!0;break}for(var $t=!0;($t||!q)&&s>=0;)($t=this.containsBlackPoint(t,i,s,!0))?(s--,v=!0,q=!0):q||s--;if(s<0){h=!0;break}v&&(M=!0)}if(!h&&M){for(var Gt=i-t,an=null,bn=1;null===an&&bns||O<-1||O>c)throw new Se;h=!1,-1===M?(i[v]=0,h=!0):M===s&&(i[v]=s-1,h=!0),-1===O?(i[v+1]=0,h=!0):O===c&&(i[v+1]=c-1,h=!0)}for(h=!0,v=i.length-2;v>=0&&h;v-=2){if(M=Math.floor(i[v]),O=Math.floor(i[v+1]),M<-1||M>s||O<-1||O>c)throw new Se;h=!1,-1===M?(i[v]=0,h=!0):M===s&&(i[v]=s-1,h=!0),-1===O?(i[v+1]=0,h=!0):O===c&&(i[v+1]=c-1,h=!0)}},o}();const xl=Ba;var So=function(){function o(t,i,s,c,h,v,M,O,N){this.a11=t,this.a21=i,this.a31=s,this.a12=c,this.a22=h,this.a32=v,this.a13=M,this.a23=O,this.a33=N}return o.quadrilateralToQuadrilateral=function(t,i,s,c,h,v,M,O,N,$,q,de,we,et,vt,zt){var $t=o.quadrilateralToSquare(t,i,s,c,h,v,M,O);return o.squareToQuadrilateral(N,$,q,de,we,et,vt,zt).times($t)},o.prototype.transformPoints=function(t){for(var i=t.length,s=this.a11,c=this.a12,h=this.a13,v=this.a21,M=this.a22,O=this.a23,N=this.a31,$=this.a32,q=this.a33,de=0;de>1&127):(c<<=10,c+=(v>>2&992)+(v>>1&31))}var M=this.getCorrectedParameterData(c,this.compact);this.compact?(this.nbLayers=1+(M>>6),this.nbDataBlocks=1+(63&M)):(this.nbLayers=1+(M>>11),this.nbDataBlocks=1+(2047&M))},o.prototype.getRotation=function(t,i){var s=0;t.forEach(function(h,v,M){s=(h>>i-2<<1)+(1&h)+(s<<3)}),s=((1&s)<<11)+(s>>1);for(var c=0;c<4;c++)if(Ee.bitCount(s^this.EXPECTED_CORNER_BITS[c])<=2)return c;throw new Se},o.prototype.getCorrectedParameterData=function(t,i){var s,c;i?(s=7,c=2):(s=10,c=4);for(var h=s-c,v=new Int32Array(s),M=s-1;M>=0;--M)v[M]=15&t,t>>=4;try{new vr(_n.AZTEC_PARAM).decode(v,h)}catch{throw new Se}var N=0;for(M=0;M2){var q=this.distancePoint($,M)*this.nbCenterLayers/(this.distancePoint(h,i)*(this.nbCenterLayers+2));if(q<.75||q>1.25||!this.isWhiteOrBlackRectangle(M,O,N,$))break}i=M,s=O,c=N,h=$,v=!v}if(5!==this.nbCenterLayers&&7!==this.nbCenterLayers)throw new Se;this.compact=5===this.nbCenterLayers;var de=new $n(i.getX()+.5,i.getY()-.5),we=new $n(s.getX()+.5,s.getY()+.5),et=new $n(c.getX()-.5,c.getY()+.5),vt=new $n(h.getX()-.5,h.getY()-.5);return this.expandSquare([de,we,et,vt],2*this.nbCenterLayers-3,2*this.nbCenterLayers)},o.prototype.getMatrixCenter=function(){var t,i,s,c;try{t=(h=new Gs(this.image).detect())[0],i=h[1],s=h[2],c=h[3]}catch{var v=this.image.getWidth()/2,M=this.image.getHeight()/2;t=this.getFirstDifferent(new kr(v+7,M-7),!1,1,-1).toResultPoint(),i=this.getFirstDifferent(new kr(v+7,M+7),!1,1,1).toResultPoint(),s=this.getFirstDifferent(new kr(v-7,M+7),!1,-1,1).toResultPoint(),c=this.getFirstDifferent(new kr(v-7,M-7),!1,-1,-1).toResultPoint()}var O=_i.round((t.getX()+c.getX()+i.getX()+s.getX())/4),N=_i.round((t.getY()+c.getY()+i.getY()+s.getY())/4);try{var h;t=(h=new Gs(this.image,15,O,N).detect())[0],i=h[1],s=h[2],c=h[3]}catch{t=this.getFirstDifferent(new kr(O+7,N-7),!1,1,-1).toResultPoint(),i=this.getFirstDifferent(new kr(O+7,N+7),!1,1,1).toResultPoint(),s=this.getFirstDifferent(new kr(O-7,N+7),!1,-1,1).toResultPoint(),c=this.getFirstDifferent(new kr(O-7,N-7),!1,-1,-1).toResultPoint()}return O=_i.round((t.getX()+c.getX()+i.getX()+s.getX())/4),N=_i.round((t.getY()+c.getY()+i.getY()+s.getY())/4),new kr(O,N)},o.prototype.getMatrixCornerPoints=function(t){return this.expandSquare(t,2*this.nbCenterLayers,this.getDimension())},o.prototype.sampleGrid=function(t,i,s,c,h){var v=ga.getInstance(),M=this.getDimension(),O=M/2-this.nbCenterLayers,N=M/2+this.nbCenterLayers;return v.sampleGrid(t,M,M,O,O,N,O,N,N,O,N,i.getX(),i.getY(),s.getX(),s.getY(),c.getX(),c.getY(),h.getX(),h.getY())},o.prototype.sampleLine=function(t,i,s){for(var c=0,h=this.distanceResultPoint(t,i),v=h/s,M=t.getX(),O=t.getY(),N=v*(i.getX()-t.getX())/h,$=v*(i.getY()-t.getY())/h,q=0;q.1&&de<.9?0:de<=.1===N?1:-1},o.prototype.getFirstDifferent=function(t,i,s,c){for(var h=t.getX()+s,v=t.getY()+c;this.isValid(h,v)&&this.image.get(h,v)===i;)h+=s,v+=c;for(h-=s,v-=c;this.isValid(h,v)&&this.image.get(h,v)===i;)h+=s;for(h-=s;this.isValid(h,v)&&this.image.get(h,v)===i;)v+=c;return new kr(h,v-=c)},o.prototype.expandSquare=function(t,i,s){var c=s/(2*i),h=t[0].getX()-t[2].getX(),v=t[0].getY()-t[2].getY(),M=(t[0].getX()+t[2].getX())/2,O=(t[0].getY()+t[2].getY())/2,N=new $n(M+c*h,O+c*v),$=new $n(M-c*h,O-c*v);return h=t[1].getX()-t[3].getX(),v=t[1].getY()-t[3].getY(),M=(t[1].getX()+t[3].getX())/2,O=(t[1].getY()+t[3].getY())/2,[N,new $n(M+c*h,O+c*v),$,new $n(M-c*h,O-c*v)]},o.prototype.isValid=function(t,i){return t>=0&&t0&&i>(v?8:5));O=v?c:15;for(var N=Math.trunc(c/2),$=0;$=c)break;try{h=t.getBlackRow(we,h)}catch{continue}for(var et=function(Gt){if(1===Gt&&(h.reverse(),i&&!0===i.get(he.NEED_RESULT_POINT_CALLBACK))){var an=new Map;i.forEach(function(Zn,Kn){return an.set(Kn,Zn)}),an.delete(he.NEED_RESULT_POINT_CALLBACK),i=an}try{var bn=vt.decodeRow(we,h,i);if(1===Gt){bn.putMetadata(He.ORIENTATION,180);var Nn=bn.getResultPoints();null!==Nn&&(Nn[0]=new $n(s-Nn[0].getX()-1,Nn[0].getY()),Nn[1]=new $n(s-Nn[1].getX()-1,Nn[1].getY()))}return{value:bn}}catch{}},vt=this,zt=0;zt<2;zt++){var $t=et(zt);if("object"==typeof $t)return $t.value}}throw new Se},o.recordPattern=function(t,i,s){for(var c=s.length,h=0;h=v)throw new Se;for(var M=!t.get(i),O=0,N=i;N0&&c>=0;)t.get(--i)!==h&&(c--,h=!h);if(c>=0)throw new Se;o.recordPattern(t,i+1,s)},o.patternMatchVariance=function(t,i,s){for(var c=t.length,h=0,v=0,M=0;Mde?q-de:de-q;if(we>s)return Number.POSITIVE_INFINITY;N+=we}return N/h},o}());const qi=Aa;var Li=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Yr=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return Li(t,o),t.findStartPattern=function(i){for(var s=i.getSize(),c=i.getNextSet(0),h=0,v=Int32Array.from([0,0,0,0,0,0]),M=c,O=!1,$=c;$=0&&i.isRange(Math.max(0,M-($-M)/2),M,!1))return Int32Array.from([M,$,de]);M+=v[0]+v[1],(v=v.slice(2,v.length-1))[h-1]=0,v[h]=0,h--}else h++;v[h]=1,O=!O}throw new Se},t.decodeCode=function(i,s,c){qi.recordPattern(i,c,s);for(var h=t.MAX_AVG_VARIANCE,v=-1,M=0;M=0)return v;throw new Se},t.prototype.decodeRow=function(i,s,c){var $,h=c&&!0===c.get(he.ASSUME_GS1),v=t.findStartPattern(s),M=v[2],O=0,N=new Uint8Array(20);switch(N[O++]=M,M){case t.CODE_START_A:$=t.CODE_CODE_A;break;case t.CODE_START_B:$=t.CODE_CODE_B;break;case t.CODE_START_C:$=t.CODE_CODE_C;break;default:throw new bt}for(var q=!1,de=!1,we="",et=v[0],vt=v[1],zt=Int32Array.from([0,0,0,0,0,0]),$t=0,Gt=0,an=M,bn=0,Nn=!0,Zn=!1,Kn=!1;!q;){var fi=de;switch(de=!1,$t=Gt,Gt=t.decodeCode(s,zt,vt),N[O++]=Gt,Gt!==t.CODE_STOP&&(Nn=!0),Gt!==t.CODE_STOP&&(an+=++bn*Gt),et=vt,vt+=zt.reduce(function(f,E){return f+E},0),Gt){case t.CODE_START_A:case t.CODE_START_B:case t.CODE_START_C:throw new bt}switch($){case t.CODE_CODE_A:if(Gt<64)we+=String.fromCharCode(Kn===Zn?" ".charCodeAt(0)+Gt:" ".charCodeAt(0)+Gt+128),Kn=!1;else if(Gt<96)we+=String.fromCharCode(Kn===Zn?Gt-64:Gt+64),Kn=!1;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_A:!Zn&&Kn?(Zn=!0,Kn=!1):Zn&&Kn?(Zn=!1,Kn=!1):Kn=!0;break;case t.CODE_SHIFT:de=!0,$=t.CODE_CODE_B;break;case t.CODE_CODE_B:$=t.CODE_CODE_B;break;case t.CODE_CODE_C:$=t.CODE_CODE_C;break;case t.CODE_STOP:q=!0}break;case t.CODE_CODE_B:if(Gt<96)we+=String.fromCharCode(Kn===Zn?" ".charCodeAt(0)+Gt:" ".charCodeAt(0)+Gt+128),Kn=!1;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_FNC_2:case t.CODE_FNC_3:break;case t.CODE_FNC_4_B:!Zn&&Kn?(Zn=!0,Kn=!1):Zn&&Kn?(Zn=!1,Kn=!1):Kn=!0;break;case t.CODE_SHIFT:de=!0,$=t.CODE_CODE_A;break;case t.CODE_CODE_A:$=t.CODE_CODE_A;break;case t.CODE_CODE_C:$=t.CODE_CODE_C;break;case t.CODE_STOP:q=!0}break;case t.CODE_CODE_C:if(Gt<100)Gt<10&&(we+="0"),we+=Gt;else switch(Gt!==t.CODE_STOP&&(Nn=!1),Gt){case t.CODE_FNC_1:h&&(we+=0===we.length?"]C1":String.fromCharCode(29));break;case t.CODE_CODE_A:$=t.CODE_CODE_A;break;case t.CODE_CODE_B:$=t.CODE_CODE_B;break;case t.CODE_STOP:q=!0}}fi&&($=$===t.CODE_CODE_A?t.CODE_CODE_B:t.CODE_CODE_A)}var Gi=vt-et;if(vt=s.getNextUnset(vt),!s.isRange(vt,Math.min(s.getSize(),vt+(vt-et)/2),!1))throw new Se;if((an-=bn*$t)%103!==$t)throw new St;var Vi=we.length;if(0===Vi)throw new Se;Vi>0&&Nn&&(we=we.substring(0,$===t.CODE_CODE_C?Vi-2:Vi-1));for(var go=(v[1]+v[0])/2,Dr=et+Gi/2,hs=N.length,Vl=new Uint8Array(hs),ic=0;ic=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},al=function(o){function t(i,s){void 0===i&&(i=!1),void 0===s&&(s=!1);var c=o.call(this)||this;return c.usingCheckDigit=i,c.extendedMode=s,c.decodeRowResult="",c.counters=new Int32Array(9),c}return Ha(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,N=this.counters;N.fill(0),this.decodeRowResult="";var we,et,$=t.findAsteriskPattern(s,N),q=s.getNextSet($[1]),de=s.getSize();do{t.recordPattern(s,q,N);var vt=t.toNarrowWidePattern(N);if(vt<0)throw new Se;we=t.patternToChar(vt),this.decodeRowResult+=we,et=q;try{for(var zt=(h=void 0,wr(N)),$t=zt.next();!$t.done;$t=zt.next())q+=$t.value}catch(hs){h={error:hs}}finally{try{$t&&!$t.done&&(v=zt.return)&&v.call(zt)}finally{if(h)throw h.error}}q=s.getNextSet(q)}while("*"!==we);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var Vi,an=0;try{for(var bn=wr(N),Nn=bn.next();!Nn.done;Nn=bn.next())an+=Nn.value}catch(hs){M={error:hs}}finally{try{Nn&&!Nn.done&&(O=bn.return)&&O.call(bn)}finally{if(M)throw M.error}}if(q!==de&&2*(q-et-an)v&&(O=q)}catch(vt){s={error:vt}}finally{try{$&&!$.done&&(c=N.return)&&c.call(N)}finally{if(s)throw s.error}}v=O,M=0;for(var de=0,we=0,et=0;etv&&(we|=1<0;et++){var q;if((q=i[et])>v&&(M--,2*q>=de))return-1}return we}}while(M>3);return-1},t.patternToChar=function(i){for(var s=0;s="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)+32);break;case"$":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)-64);break;case"%":if(M>="A"&&M<="E")O=String.fromCharCode(M.charCodeAt(0)-38);else if(M>="F"&&M<="J")O=String.fromCharCode(M.charCodeAt(0)-11);else if(M>="K"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)+16);else if(M>="P"&&M<="T")O=String.fromCharCode(M.charCodeAt(0)+43);else if("U"===M)O="\0";else if("V"===M)O="@";else if("W"===M)O="`";else{if("X"!==M&&"Y"!==M&&"Z"!==M)throw new bt;O="\x7f"}break;case"/":if(M>="A"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)-32);else{if("Z"!==M)throw new bt;O=":"}}c+=O,h++}else c+=v}return c},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%",t.CHARACTER_ENCODINGS=[52,289,97,352,49,304,112,37,292,100,265,73,328,25,280,88,13,268,76,28,259,67,322,19,274,82,7,262,70,22,385,193,448,145,400,208,133,388,196,168,162,138,42],t.ASTERISK_ENCODING=148,t}(qi);const Vr=al;var Es=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Js=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ll=function(o){function t(){var i=o.call(this)||this;return i.decodeRowResult="",i.counters=new Int32Array(6),i}return Es(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,we,et,N=this.findAsteriskPattern(s),$=s.getNextSet(N[1]),q=s.getSize(),de=this.counters;de.fill(0),this.decodeRowResult="";do{t.recordPattern(s,$,de);var vt=this.toPattern(de);if(vt<0)throw new Se;we=this.patternToChar(vt),this.decodeRowResult+=we,et=$;try{for(var zt=(h=void 0,Js(de)),$t=zt.next();!$t.done;$t=zt.next())$+=$t.value}catch(Gi){h={error:Gi}}finally{try{$t&&!$t.done&&(v=zt.return)&&v.call(zt)}finally{if(h)throw h.error}}$=s.getNextSet($)}while("*"!==we);this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-1);var an=0;try{for(var bn=Js(de),Nn=bn.next();!Nn.done;Nn=bn.next())an+=Nn.value}catch(Gi){M={error:Gi}}finally{try{Nn&&!Nn.done&&(O=bn.return)&&O.call(bn)}finally{if(M)throw M.error}}if($===q||!s.get($))throw new Se;if(this.decodeRowResult.length<2)throw new Se;this.checkChecksums(this.decodeRowResult),this.decodeRowResult=this.decodeRowResult.substring(0,this.decodeRowResult.length-2);var Zn=this.decodeExtended(this.decodeRowResult),fi=et+an/2;return new We(Zn,null,0,[new $n((N[1]+N[0])/2,i),new $n(fi,i)],be.CODE_93,(new Date).getTime())},t.prototype.findAsteriskPattern=function(i){var s=i.getSize(),c=i.getNextSet(0);this.counters.fill(0);for(var h=this.counters,v=c,M=!1,O=h.length,N=0,$=c;$4)return-1;if(1&q)N<<=de;else for(var we=0;we="a"&&v<="d"){if(h>=s-1)throw new bt;var M=i.charAt(h+1),O="\0";switch(v){case"d":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)+32);break;case"a":if(!(M>="A"&&M<="Z"))throw new bt;O=String.fromCharCode(M.charCodeAt(0)-64);break;case"b":if(M>="A"&&M<="E")O=String.fromCharCode(M.charCodeAt(0)-38);else if(M>="F"&&M<="J")O=String.fromCharCode(M.charCodeAt(0)-11);else if(M>="K"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)+16);else if(M>="P"&&M<="T")O=String.fromCharCode(M.charCodeAt(0)+43);else if("U"===M)O="\0";else if("V"===M)O="@";else if("W"===M)O="`";else{if(!(M>="X"&&M<="Z"))throw new bt;O=String.fromCharCode(127)}break;case"c":if(M>="A"&&M<="O")O=String.fromCharCode(M.charCodeAt(0)-32);else{if("Z"!==M)throw new bt;O=":"}}c+=O,h++}else c+=v}return c},t.prototype.checkChecksums=function(i){var s=i.length;this.checkOneChecksum(i,s-2,20),this.checkOneChecksum(i,s-1,15)},t.prototype.checkOneChecksum=function(i,s,c){for(var h=1,v=0,M=s-1;M>=0;M--)v+=h*t.ALPHABET_STRING.indexOf(i.charAt(M)),++h>c&&(h=1);if(i.charAt(s)!==t.ALPHABET_STRING[v%47])throw new St},t.ALPHABET_STRING="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%abcd*",t.ASTERISK_ENCODING=(t.CHARACTER_ENCODINGS=[276,328,324,322,296,292,290,336,274,266,424,420,418,404,402,394,360,356,354,308,282,344,332,326,300,278,436,434,428,422,406,410,364,358,310,314,302,468,466,458,366,374,430,294,474,470,306,350])[47],t}(qi);const er=ll;var qn=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),_r=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.narrowLineWidth=-1,i}return qn(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M=this.decodeStart(s),O=this.decodeEnd(s),N=new Ce;t.decodeMiddle(s,M[1],O[0],N);var $=N.toString(),q=null;null!=c&&(q=c.get(he.ALLOWED_LENGTHS)),null==q&&(q=t.DEFAULT_ALLOWED_LENGTHS);var de=$.length,we=!1,et=0;try{for(var vt=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(q),zt=vt.next();!zt.done;zt=vt.next()){var $t=zt.value;if(de===$t){we=!0;break}$t>et&&(et=$t)}}catch(bn){h={error:bn}}finally{try{zt&&!zt.done&&(v=vt.return)&&v.call(vt)}finally{if(h)throw h.error}}if(!we&&de>et&&(we=!0),!we)throw new bt;var Gt=[new $n(M[1],i),new $n(O[0],i)];return new We($,null,0,Gt,be.ITF,(new Date).getTime())},t.decodeMiddle=function(i,s,c,h){var v=new Int32Array(10),M=new Int32Array(5),O=new Int32Array(5);for(v.fill(0),M.fill(0),O.fill(0);s0&&h>=0&&!i.get(h);h--)c--;if(0!==c)throw new Se},t.skipWhiteSpace=function(i){var s=i.getSize(),c=i.getNextSet(0);if(c===s)throw new Se;return c},t.prototype.decodeEnd=function(i){i.reverse();try{var s=t.skipWhiteSpace(i),c=void 0;try{c=t.findGuardPattern(i,s,t.END_PATTERN_REVERSED[0])}catch(v){v instanceof Se&&(c=t.findGuardPattern(i,s,t.END_PATTERN_REVERSED[1]))}this.validateQuietZone(i,c[0]);var h=c[0];return c[0]=i.getSize()-c[1],c[1]=i.getSize()-h,c}finally{i.reverse()}},t.findGuardPattern=function(i,s,c){var h=c.length,v=new Int32Array(h),M=i.getSize(),O=!1,N=0,$=s;v.fill(0);for(var q=s;q=0)return c%10;throw new Se},t.PATTERNS=[Int32Array.from([1,1,2,2,1]),Int32Array.from([2,1,1,1,2]),Int32Array.from([1,2,1,1,2]),Int32Array.from([2,2,1,1,1]),Int32Array.from([1,1,2,1,2]),Int32Array.from([2,1,2,1,1]),Int32Array.from([1,2,2,1,1]),Int32Array.from([1,1,1,2,2]),Int32Array.from([2,1,1,2,1]),Int32Array.from([1,2,1,2,1]),Int32Array.from([1,1,3,3,1]),Int32Array.from([3,1,1,1,3]),Int32Array.from([1,3,1,1,3]),Int32Array.from([3,3,1,1,1]),Int32Array.from([1,1,3,1,3]),Int32Array.from([3,1,3,1,1]),Int32Array.from([1,3,3,1,1]),Int32Array.from([1,1,1,3,3]),Int32Array.from([3,1,1,3,1]),Int32Array.from([1,3,1,3,1])],t.MAX_AVG_VARIANCE=.38,t.MAX_INDIVIDUAL_VARIANCE=.5,t.DEFAULT_ALLOWED_LENGTHS=[6,8,10,12,14],t.START_PATTERN=Int32Array.from([1,1,1,1]),t.END_PATTERN_REVERSED=[Int32Array.from([1,1,2]),Int32Array.from([1,1,3])],t}(qi);const wo=_r;var jo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),no=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.decodeRowStringBuffer="",i}return jo(t,o),t.findStartGuardPattern=function(i){for(var c,s=!1,h=0,v=Int32Array.from([0,0,0]);!s;){v=Int32Array.from([0,0,0]);var M=(c=t.findGuardPattern(i,h,!1,this.START_END_PATTERN,v))[0],O=M-((h=c[1])-M);O>=0&&(s=i.isRange(O,M,!1))}return c},t.checkChecksum=function(i){return t.checkStandardUPCEANChecksum(i)},t.checkStandardUPCEANChecksum=function(i){var s=i.length;if(0===s)return!1;var c=parseInt(i.charAt(s-1),10);return t.getStandardUPCEANChecksum(i.substring(0,s-1))===c},t.getStandardUPCEANChecksum=function(i){for(var s=i.length,c=0,h=s-1;h>=0;h-=2){if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}for(c*=3,h=s-2;h>=0;h-=2){var v;if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}return(1e3-c)%10},t.decodeEnd=function(i,s){return t.findGuardPattern(i,s,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t.findGuardPatternWithoutCounters=function(i,s,c,h){return this.findGuardPattern(i,s,c,h,new Int32Array(h.length))},t.findGuardPattern=function(i,s,c,h,v){for(var M=i.getSize(),O=0,N=s=c?i.getNextUnset(s):i.getNextSet(s),$=h.length,q=c,de=s;de=0)return M;throw new Se},t.MAX_AVG_VARIANCE=.48,t.MAX_INDIVIDUAL_VARIANCE=.7,t.START_END_PATTERN=Int32Array.from([1,1,1]),t.MIDDLE_PATTERN=Int32Array.from([1,1,1,1,1]),t.END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.L_PATTERNS=[Int32Array.from([3,2,1,1]),Int32Array.from([2,2,2,1]),Int32Array.from([2,1,2,2]),Int32Array.from([1,4,1,1]),Int32Array.from([1,1,3,2]),Int32Array.from([1,2,3,1]),Int32Array.from([1,1,1,4]),Int32Array.from([1,3,1,2]),Int32Array.from([1,2,1,3]),Int32Array.from([3,1,1,2])],t}(qi);const Ao=no;var nr=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ps=function(){function o(){this.CHECK_DIGIT_ENCODINGS=[24,20,18,17,12,6,3,10,9,5],this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return o.prototype.decodeRow=function(t,i,s){var c=this.decodeRowStringBuffer,h=this.decodeMiddle(i,s,c),v=c.toString(),M=o.parseExtensionString(v),O=[new $n((s[0]+s[1])/2,t),new $n(h,t)],N=new We(v,null,0,O,be.UPC_EAN_EXTENSION,(new Date).getTime());return null!=M&&N.putAllMetadata(M),N},o.prototype.decodeMiddle=function(t,i,s){var c,h,v=this.decodeMiddleCounters;v[0]=0,v[1]=0,v[2]=0,v[3]=0;for(var M=t.getSize(),O=i[1],N=0,$=0;$<5&&O=10&&(N|=1<<4-$),4!==$&&(O=t.getNextSet(O),O=t.getNextUnset(O))}if(5!==s.length)throw new Se;var vt=this.determineCheckDigit(N);if(o.extensionChecksum(s.toString())!==vt)throw new Se;return O},o.extensionChecksum=function(t){for(var i=t.length,s=0,c=i-2;c>=0;c-=2)s+=t.charAt(c).charCodeAt(0)-"0".charCodeAt(0);for(s*=3,c=i-1;c>=0;c-=2)s+=t.charAt(c).charCodeAt(0)-"0".charCodeAt(0);return(s*=3)%10},o.prototype.determineCheckDigit=function(t){for(var i=0;i<10;i++)if(t===this.CHECK_DIGIT_ENCODINGS[i])return i;throw new Se},o.parseExtensionString=function(t){if(5!==t.length)return null;var i=o.parseExtension5String(t);return null==i?null:new Map([[He.SUGGESTED_PRICE,i]])},o.parseExtension5String=function(t){var i;switch(t.charAt(0)){case"0":i="\xa3";break;case"5":i="$";break;case"9":switch(t){case"90000":return null;case"99991":return"0.00";case"99990":return"Used"}i="";break;default:i=""}var s=parseInt(t.substring(1)),h=s%100;return i+(s/100).toString()+"."+(h<10?"0"+h:h.toString())},o}();const va=ps;var Ti=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qs=function(){function o(){this.decodeMiddleCounters=Int32Array.from([0,0,0,0]),this.decodeRowStringBuffer=""}return o.prototype.decodeRow=function(t,i,s){var c=this.decodeRowStringBuffer,h=this.decodeMiddle(i,s,c),v=c.toString(),M=o.parseExtensionString(v),O=[new $n((s[0]+s[1])/2,t),new $n(h,t)],N=new We(v,null,0,O,be.UPC_EAN_EXTENSION,(new Date).getTime());return null!=M&&N.putAllMetadata(M),N},o.prototype.decodeMiddle=function(t,i,s){var c,h,v=this.decodeMiddleCounters;v[0]=0,v[1]=0,v[2]=0,v[3]=0;for(var M=t.getSize(),O=i[1],N=0,$=0;$<2&&O=10&&(N|=1<<1-$),1!==$&&(O=t.getNextSet(O),O=t.getNextUnset(O))}if(2!==s.length)throw new Se;if(parseInt(s.toString())%4!==N)throw new Se;return O},o.parseExtensionString=function(t){return 2!==t.length?null:new Map([[He.ISSUE_NUMBER,parseInt(t)]])},o}();const ba=qs;var Qs=function(){function o(){}return o.decodeRow=function(t,i,s){var c=Ao.findGuardPattern(i,s,!1,this.EXTENSION_START_PATTERN,new Int32Array(this.EXTENSION_START_PATTERN.length).fill(0));try{return(new va).decodeRow(t,i,c)}catch{return(new ba).decodeRow(t,i,c)}},o.EXTENSION_START_PATTERN=Int32Array.from([1,1,2]),o}();const wi=Qs;var Oo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ko=function(o){function t(){var i=o.call(this)||this;i.decodeRowStringBuffer="",t.L_AND_G_PATTERNS=t.L_PATTERNS.map(function(M){return Int32Array.from(M)});for(var s=10;s<20;s++){for(var c=t.L_PATTERNS[s-10],h=new Int32Array(c.length),v=0;v=s.getSize()||!s.isRange(et,vt,!1))throw new Se;var zt=$.toString();if(zt.length<8)throw new bt;if(!t.checkChecksum(zt))throw new St;var $t=(h[1]+h[0])/2,Gt=(de[1]+de[0])/2,an=this.getBarcodeFormat(),bn=[new $n($t,i),new $n(Gt,i)],Nn=new We(zt,null,0,bn,an,(new Date).getTime()),Zn=0;try{var Kn=wi.decodeRow(i,s,de[1]);Nn.putMetadata(He.UPC_EAN_EXTENSION,Kn.getText()),Nn.putAllMetadata(Kn.getResultMetadata()),Nn.addResultPoints(Kn.getResultPoints()),Zn=Kn.getText().length}catch{}var fi=null==c?null:c.get(he.ALLOWED_EAN_EXTENSIONS);if(null!=fi){var Gi=!1;for(var Vi in fi)if(Zn.toString()===Vi){Gi=!0;break}if(!Gi)throw new Se}return Nn},t.checkChecksum=function(i){return t.checkStandardUPCEANChecksum(i)},t.checkStandardUPCEANChecksum=function(i){var s=i.length;if(0===s)return!1;var c=parseInt(i.charAt(s-1),10);return t.getStandardUPCEANChecksum(i.substring(0,s-1))===c},t.getStandardUPCEANChecksum=function(i){for(var s=i.length,c=0,h=s-1;h>=0;h-=2){if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}for(c*=3,h=s-2;h>=0;h-=2){var v;if((v=i.charAt(h).charCodeAt(0)-"0".charCodeAt(0))<0||v>9)throw new bt;c+=v}return(1e3-c)%10},t.decodeEnd=function(i,s){return t.findGuardPattern(i,s,!1,t.START_END_PATTERN,new Int32Array(t.START_END_PATTERN.length).fill(0))},t}(Ao);const or=Ko;var Xs=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ml=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Sr=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=Int32Array.from([0,0,0,0]),i}return Xs(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M,O,N=this.decodeMiddleCounters;N[0]=0,N[1]=0,N[2]=0,N[3]=0;for(var $=i.getSize(),q=s[1],de=0,we=0;we<6&&q<$;we++){var et=or.decodeDigit(i,N,q,or.L_AND_G_PATTERNS);c+=String.fromCharCode("0".charCodeAt(0)+et%10);try{for(var vt=(h=void 0,Ml(N)),zt=vt.next();!zt.done;zt=vt.next())q+=zt.value}catch(Nn){h={error:Nn}}finally{try{zt&&!zt.done&&(v=vt.return)&&v.call(vt)}finally{if(h)throw h.error}}et>=10&&(de|=1<<5-we)}for(c=t.determineFirstDigit(c,de),q=or.findGuardPattern(i,q,!0,or.MIDDLE_PATTERN,new Int32Array(or.MIDDLE_PATTERN.length).fill(0))[1],we=0;we<6&&q<$;we++){et=or.decodeDigit(i,N,q,or.L_PATTERNS),c+=String.fromCharCode("0".charCodeAt(0)+et);try{for(var an=(M=void 0,Ml(N)),bn=an.next();!bn.done;bn=an.next())q+=bn.value}catch(Kn){M={error:Kn}}finally{try{bn&&!bn.done&&(O=an.return)&&O.call(an)}finally{if(M)throw M.error}}}return{rowOffset:q,resultString:c}},t.prototype.getBarcodeFormat=function(){return be.EAN_13},t.determineFirstDigit=function(i,s){for(var c=0;c<10;c++)if(s===this.FIRST_DIGIT_ENCODINGS[c])return String.fromCharCode("0".charCodeAt(0)+c)+i;throw new Se},t.FIRST_DIGIT_ENCODINGS=[0,11,13,14,19,25,28,21,22,26],t}(or);const jr=Sr;var xo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),_s=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ai=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=Int32Array.from([0,0,0,0]),i}return xo(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M,O,N=this.decodeMiddleCounters;N[0]=0,N[1]=0,N[2]=0,N[3]=0;for(var $=i.getSize(),q=s[1],de=0;de<4&&q<$;de++){var we=or.decodeDigit(i,N,q,or.L_PATTERNS);c+=String.fromCharCode("0".charCodeAt(0)+we);try{for(var et=(h=void 0,_s(N)),vt=et.next();!vt.done;vt=et.next())q+=vt.value}catch(bn){h={error:bn}}finally{try{vt&&!vt.done&&(v=et.return)&&v.call(et)}finally{if(h)throw h.error}}}for(q=or.findGuardPattern(i,q,!0,or.MIDDLE_PATTERN,new Int32Array(or.MIDDLE_PATTERN.length).fill(0))[1],de=0;de<4&&q<$;de++){we=or.decodeDigit(i,N,q,or.L_PATTERNS),c+=String.fromCharCode("0".charCodeAt(0)+we);try{for(var Gt=(M=void 0,_s(N)),an=Gt.next();!an.done;an=Gt.next())q+=an.value}catch(Zn){M={error:Zn}}finally{try{an&&!an.done&&(O=Gt.return)&&O.call(Gt)}finally{if(M)throw M.error}}}return{rowOffset:q,resultString:c}},t.prototype.getBarcodeFormat=function(){return be.EAN_8},t}(or);const Jo=Ai;var Io=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Ys=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.ean13Reader=new jr,i}return Io(t,o),t.prototype.getBarcodeFormat=function(){return be.UPC_A},t.prototype.decode=function(i,s){return this.maybeReturnResult(this.ean13Reader.decode(i))},t.prototype.decodeRow=function(i,s,c){return this.maybeReturnResult(this.ean13Reader.decodeRow(i,s,c))},t.prototype.decodeMiddle=function(i,s,c){return this.ean13Reader.decodeMiddle(i,s,c)},t.prototype.maybeReturnResult=function(i){var s=i.getText();if("0"===s.charAt(0)){var c=new We(s.substring(1),null,null,i.getResultPoints(),be.UPC_A);return null!=i.getResultMetadata()&&c.putAllMetadata(i.getResultMetadata()),c}throw new Se},t.prototype.reset=function(){this.ean13Reader.reset()},t}(or);const fo=Ys;var Zr=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ms=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Co=function(o){function t(){var i=o.call(this)||this;return i.decodeMiddleCounters=new Int32Array(4),i}return Zr(t,o),t.prototype.decodeMiddle=function(i,s,c){var h,v,M=this.decodeMiddleCounters.map(function(zt){return zt});M[0]=0,M[1]=0,M[2]=0,M[3]=0;for(var O=i.getSize(),N=s[1],$=0,q=0;q<6&&N=10&&($|=1<<5-q)}return t.determineNumSysAndCheckDigit(new Ce(c),$),N},t.prototype.decodeEnd=function(i,s){return t.findGuardPatternWithoutCounters(i,s,!0,t.MIDDLE_END_PATTERN)},t.prototype.checkChecksum=function(i){return or.checkChecksum(t.convertUPCEtoUPCA(i))},t.determineNumSysAndCheckDigit=function(i,s){for(var c=0;c<=1;c++)for(var h=0;h<10;h++)if(s===this.NUMSYS_AND_CHECK_DIGIT_PATTERNS[c][h])return i.insert(0,"0"+c),void i.append("0"+h);throw Se.getNotFoundInstance()},t.prototype.getBarcodeFormat=function(){return be.UPC_E},t.convertUPCEtoUPCA=function(i){var s=i.slice(1,7).split("").map(function(v){return v.charCodeAt(0)}),c=new Ce;c.append(i.charAt(0));var h=s[5];switch(h){case 0:case 1:case 2:c.appendChars(s,0,2),c.append(h),c.append("0000"),c.appendChars(s,2,3);break;case 3:c.appendChars(s,0,3),c.append("00000"),c.appendChars(s,3,2);break;case 4:c.appendChars(s,0,4),c.append("00000"),c.append(s[4]);break;default:c.appendChars(s,0,5),c.append("0000"),c.append(h)}return i.length>=8&&c.append(i.charAt(7)),c.toString()},t.MIDDLE_END_PATTERN=Int32Array.from([1,1,1,1,1,1]),t.NUMSYS_AND_CHECK_DIGIT_PATTERNS=[Int32Array.from([56,52,50,49,44,38,35,42,41,37]),Int32Array.from([7,11,13,14,19,25,28,21,22,1])],t}(or);const Br=Co;var ea=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),po=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},io=function(o){function t(i){var s=o.call(this)||this,c=null==i?null:i.get(he.POSSIBLE_FORMATS),h=[];return null!=c&&(c.indexOf(be.EAN_13)>-1&&h.push(new jr),c.indexOf(be.UPC_A)>-1&&h.push(new fo),c.indexOf(be.EAN_8)>-1&&h.push(new Jo),c.indexOf(be.UPC_E)>-1&&h.push(new Br)),0===h.length&&(h.push(new jr),h.push(new fo),h.push(new Jo),h.push(new Br)),s.readers=h,s}return ea(t,o),t.prototype.decodeRow=function(i,s,c){var h,v;try{for(var M=po(this.readers),O=M.next();!O.done;O=M.next()){var N=O.value;try{var $=N.decodeRow(i,s,c),q=$.getBarcodeFormat()===be.EAN_13&&"0"===$.getText().charAt(0),de=null==c?null:c.get(he.POSSIBLE_FORMATS),we=null==de||de.includes(be.UPC_A);if(q&&we){var et=$.getRawBytes(),vt=new We($.getText().substring(1),et,et?et.length:null,$.getResultPoints(),be.UPC_A);return vt.putAllMetadata($.getResultMetadata()),vt}return $}catch{}}}catch(zt){h={error:zt}}finally{try{O&&!O.done&&(v=M.return)&&v.call(M)}finally{if(h)throw h.error}}throw new Se},t.prototype.reset=function(){var i,s;try{for(var c=po(this.readers),h=c.next();!h.done;h=c.next())h.value.reset()}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},t}(qi);const qo=io;var Ss=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),ya=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.CODA_BAR_CHAR_SET={nnnnnww:"0",nnnnwwn:"1",nnnwnnw:"2",wwnnnnn:"3",nnwnnwn:"4",wnnnnwn:"5",nwnnnnw:"6",nwnnwnn:"7",nwwnnnn:"8",wnnwnnn:"9",nnnwwnn:"-",nnwwnnn:"$",wnnnwnw:":",wnwnnnw:"/",wnwnwnn:".",nnwwwww:"+",nnwwnwn:"A",nwnwnnw:"B",nnnwnww:"C",nnnwwwn:"D"},i}return Ss(t,o),t.prototype.decodeRow=function(i,s,c){var h=this.getValidRowData(s);if(!h)throw new Se;var v=this.codaBarDecodeRow(h.row);if(!v)throw new Se;return new We(v,null,0,[new $n(h.left,i),new $n(h.right,i)],be.CODABAR,(new Date).getTime())},t.prototype.getValidRowData=function(i){var s=i.toArray(),c=s.indexOf(!0);if(-1===c)return null;var h=s.lastIndexOf(!0);if(h<=c)return null;for(var v=[],M=(s=s.slice(c,h+1))[0],O=1,N=1;N0;){var v=i.splice(0,8).splice(0,7).map(function(O){return Oh&&(h=s[v],c=v);i[c]++},t.decrement=function(i,s){for(var c=0,h=s[0],v=1;v=t.MIN_FINDER_PATTERN_RATIO&&M<=t.MAX_FINDER_PATTERN_RATIO){var O=Number.MAX_SAFE_INTEGER,N=Number.MIN_SAFE_INTEGER;try{for(var $=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),q=$.next();!q.done;q=$.next()){var de=q.value;de>N&&(N=de),de=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),O=M.next();!O.done;O=M.next())v+=O.value}catch(Gt){c={error:Gt}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}for(var $=0,q=0,de=t.length,we=0;we=de-we-1&&(vt-=o.combins(v-et-(de-we),de-we-2)),de-we-1>1){for(var zt=0,$t=v-et-(de-we-2);$t>i;$t--)zt+=o.combins(v-et-$t-1,de-we-3);vt-=zt*(de-1-we)}else v-et>i&&vt--;$+=vt}v-=et}return $},o.combins=function(t,i){var s,c;t-i>i?(c=i,s=t-i):(c=t-i,s=i);for(var h=1,v=1,M=t;M>s;M--)h*=M,v<=c&&(h/=v,v++);for(;v<=c;)h/=v,v++;return h},o}();const Qn=Ht;var Ni=function(){function o(){}return o.buildBitArray=function(t){var i=2*t.length-1;null==t[t.length-1].getRightChar()&&(i-=1);for(var c=new me(12*i),h=0,M=t[0].getRightChar().getValue(),O=11;O>=0;--O)M&1<=0;--q)$&1<=0;--q)de&1<10||c<0||c>10)throw new bt;return h.firstDigit=s,h.secondDigit=c,h}return Xo(t,o),t.prototype.getFirstDigit=function(){return this.firstDigit},t.prototype.getSecondDigit=function(){return this.secondDigit},t.prototype.getValue=function(){return 10*this.firstDigit+this.secondDigit},t.prototype.isFirstDigitFNC1=function(){return this.firstDigit===t.FNC1},t.prototype.isSecondDigitFNC1=function(){return this.secondDigit===t.FNC1},t.prototype.isAnyFNC1=function(){return this.firstDigit===t.FNC1||this.secondDigit===t.FNC1},t.FNC1=10,t}(Lr);const Ms=Pr;var As=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},qr=function(){function o(){}return o.parseFieldsInGeneralPurpose=function(t){var i,s,c,h,v,M,O,N;if(!t)return null;if(t.length<2)throw new Se;var $=t.substring(0,2);try{for(var q=As(o.TWO_DIGIT_DATA_LENGTH),de=q.next();!de.done;de=q.next())if((we=de.value)[0]===$)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(2,we[2],t):o.processFixedAI(2,we[1],t)}catch(Zn){i={error:Zn}}finally{try{de&&!de.done&&(s=q.return)&&s.call(q)}finally{if(i)throw i.error}}if(t.length<3)throw new Se;var et=t.substring(0,3);try{for(var vt=As(o.THREE_DIGIT_DATA_LENGTH),zt=vt.next();!zt.done;zt=vt.next())if((we=zt.value)[0]===et)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(3,we[2],t):o.processFixedAI(3,we[1],t)}catch(Zn){c={error:Zn}}finally{try{zt&&!zt.done&&(h=vt.return)&&h.call(vt)}finally{if(c)throw c.error}}try{for(var $t=As(o.THREE_DIGIT_PLUS_DIGIT_DATA_LENGTH),Gt=$t.next();!Gt.done;Gt=$t.next())if((we=Gt.value)[0]===et)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(4,we[2],t):o.processFixedAI(4,we[1],t)}catch(Zn){v={error:Zn}}finally{try{Gt&&!Gt.done&&(M=$t.return)&&M.call($t)}finally{if(v)throw v.error}}if(t.length<4)throw new Se;var an=t.substring(0,4);try{for(var bn=As(o.FOUR_DIGIT_DATA_LENGTH),Nn=bn.next();!Nn.done;Nn=bn.next()){var we;if((we=Nn.value)[0]===an)return we[1]===o.VARIABLE_LENGTH?o.processVariableAI(4,we[2],t):o.processFixedAI(4,we[1],t)}}catch(Zn){O={error:Zn}}finally{try{Nn&&!Nn.done&&(N=bn.return)&&N.call(bn)}finally{if(O)throw O.error}}throw new Se},o.processFixedAI=function(t,i,s){if(s.lengththis.information.getSize())return t+4<=this.information.getSize();for(var i=t;ithis.information.getSize()){var i=this.extractNumericValueFromBitArray(t,4);return new Ms(this.information.getSize(),0===i?Ms.FNC1:i-1,Ms.FNC1)}var s=this.extractNumericValueFromBitArray(t,7);return new Ms(t+7,(s-8)/11,(s-8)%11)},o.prototype.extractNumericValueFromBitArray=function(t,i){return o.extractNumericValueFromBitArray(this.information,t,i)},o.extractNumericValueFromBitArray=function(t,i,s){for(var c=0,h=0;hthis.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(t,5);if(i>=5&&i<16)return!0;if(t+7>this.information.getSize())return!1;var s=this.extractNumericValueFromBitArray(t,7);if(s>=64&&s<116)return!0;if(t+8>this.information.getSize())return!1;var c=this.extractNumericValueFromBitArray(t,8);return c>=232&&c<253},o.prototype.decodeIsoIec646=function(t){var i=this.extractNumericValueFromBitArray(t,5);if(15===i)return new Qo(t+5,Qo.FNC1);if(i>=5&&i<15)return new Qo(t+5,"0"+(i-5));var h,s=this.extractNumericValueFromBitArray(t,7);if(s>=64&&s<90)return new Qo(t+7,""+(s+1));if(s>=90&&s<116)return new Qo(t+7,""+(s+7));switch(this.extractNumericValueFromBitArray(t,8)){case 232:h="!";break;case 233:h='"';break;case 234:h="%";break;case 235:h="&";break;case 236:h="'";break;case 237:h="(";break;case 238:h=")";break;case 239:h="*";break;case 240:h="+";break;case 241:h=",";break;case 242:h="-";break;case 243:h=".";break;case 244:h="/";break;case 245:h=":";break;case 246:h=";";break;case 247:h="<";break;case 248:h="=";break;case 249:h=">";break;case 250:h="?";break;case 251:h="_";break;case 252:h=" ";break;default:throw new bt}return new Qo(t+8,h)},o.prototype.isStillAlpha=function(t){if(t+5>this.information.getSize())return!1;var i=this.extractNumericValueFromBitArray(t,5);if(i>=5&&i<16)return!0;if(t+6>this.information.getSize())return!1;var s=this.extractNumericValueFromBitArray(t,6);return s>=16&&s<63},o.prototype.decodeAlphanumeric=function(t){var i=this.extractNumericValueFromBitArray(t,5);if(15===i)return new Qo(t+5,Qo.FNC1);if(i>=5&&i<15)return new Qo(t+5,"0"+(i-5));var c,s=this.extractNumericValueFromBitArray(t,6);if(s>=32&&s<58)return new Qo(t+6,""+(s+33));switch(s){case 58:c="*";break;case 59:c=",";break;case 60:c="-";break;case 61:c=".";break;case 62:c="/";break;default:throw new ki("Decoding invalid alphanumeric value: "+s)}return new Qo(t+6,c)},o.prototype.isAlphaTo646ToAlphaLatch=function(t){if(t+1>this.information.getSize())return!1;for(var i=0;i<5&&i+tthis.information.getSize())return!1;for(var i=t;ithis.information.getSize())return!1;for(var i=0;i<4&&i+t=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ar=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.pairs=new Array(t.MAX_PAIRS),i.rows=new Array,i.startEnd=[2],i}return ar(t,o),t.prototype.decodeRow=function(i,s,c){this.pairs.length=0,this.startFromEven=!1;try{return t.constructResult(this.decodeRow2pairs(i,s))}catch{}return this.pairs.length=0,this.startFromEven=!0,t.constructResult(this.decodeRow2pairs(i,s))},t.prototype.reset=function(){this.pairs.length=0,this.rows.length=0},t.prototype.decodeRow2pairs=function(i,s){for(var c=!1;!c;)try{this.pairs.push(this.retrieveNextPair(s,this.pairs,i))}catch(M){if(M instanceof Se){if(!this.pairs.length)throw new Se;c=!0}}if(this.checkChecksum())return this.pairs;var h;if(h=!!this.rows.length,this.storeRow(i,!1),h){var v=this.checkRowsBoolean(!1);if(null!=v||null!=(v=this.checkRowsBoolean(!0)))return v}throw new Se},t.prototype.checkRowsBoolean=function(i){if(this.rows.length>25)return this.rows.length=0,null;this.pairs.length=0,i&&(this.rows=this.rows.reverse());var s=null;try{s=this.checkRows(new Array,0)}catch(c){console.log(c)}return i&&(this.rows=this.rows.reverse()),s},t.prototype.checkRows=function(i,s){for(var c,h,v=s;vM.length)){for(var O=!0,N=0;Ni){v=M.isEquivalent(this.pairs);break}h=M.isEquivalent(this.pairs),c++}v||h||t.isPartialRow(this.pairs,this.rows)||(this.rows.push(c,new hr(this.pairs,i,s)),this.removePartialRows(this.pairs,this.rows))},t.prototype.removePartialRows=function(i,s){var c,h,v,M,O,N;try{for(var $=xi(s),q=$.next();!q.done;q=$.next()){var de=q.value;if(de.getPairs().length!==i.length)try{for(var et=(v=void 0,xi(de.getPairs())),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value;try{for(var Gt=(O=void 0,xi(i)),an=Gt.next();!an.done;an=Gt.next())if(li.equals(zt,an.value)){!0;break}}catch(Nn){O={error:Nn}}finally{try{an&&!an.done&&(N=Gt.return)&&N.call(Gt)}finally{if(O)throw O.error}}}}catch(Nn){v={error:Nn}}finally{try{vt&&!vt.done&&(M=et.return)&&M.call(et)}finally{if(v)throw v.error}}}}catch(Nn){c={error:Nn}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}},t.isPartialRow=function(i,s){var c,h,v,M,O,N;try{for(var $=xi(s),q=$.next();!q.done;q=$.next()){var de=q.value,we=!0;try{for(var et=(v=void 0,xi(i)),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value,$t=!1;try{for(var Gt=(O=void 0,xi(de.getPairs())),an=Gt.next();!an.done;an=Gt.next())if(zt.equals(an.value)){$t=!0;break}}catch(Nn){O={error:Nn}}finally{try{an&&!an.done&&(N=Gt.return)&&N.call(Gt)}finally{if(O)throw O.error}}if(!$t){we=!1;break}}}catch(Nn){v={error:Nn}}finally{try{vt&&!vt.done&&(M=et.return)&&M.call(et)}finally{if(v)throw v.error}}if(we)return!0}}catch(Nn){c={error:Nn}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}return!1},t.prototype.getRows=function(){return this.rows},t.constructResult=function(i){var c=function pn(o){try{if(o.get(1))return new gs(o);if(!o.get(2))return new Os(o);switch(Va.extractNumericValueFromBitArray(o,1,4)){case 4:return new xa(o);case 5:return new bc(o)}switch(Va.extractNumericValueFromBitArray(o,1,5)){case 12:return new is(o);case 13:return new Ue(o)}switch(Va.extractNumericValueFromBitArray(o,1,7)){case 56:return new kt(o,"310","11");case 57:return new kt(o,"320","11");case 58:return new kt(o,"310","13");case 59:return new kt(o,"320","13");case 60:return new kt(o,"310","15");case 61:return new kt(o,"320","15");case 62:return new kt(o,"310","17");case 63:return new kt(o,"320","17")}}catch(c){throw console.log(c),new ki("unknown decoder: "+o)}}(Zo.buildBitArray(i)),h=c.parseInformation(),v=i[0].getFinderPattern().getResultPoints(),M=i[i.length-1].getFinderPattern().getResultPoints();return new We(h,null,null,[v[0],v[1],M[0],M[1]],be.RSS_EXPANDED,null)},t.prototype.checkChecksum=function(){var i=this.pairs.get(0),s=i.getLeftChar(),c=i.getRightChar();if(null===c)return!1;for(var h=c.getChecksumPortion(),v=2,M=1;M=0?c:this.isEmptyPair(s)?0:s[s.length-1].getFinderPattern().getStartEnd()[1];var N=s.length%2!=0;this.startFromEven&&(N=!N);for(var $=!1;M=0&&!i.get(O);)O--;O++,h=this.startEnd[0]-O,v=O,M=this.startEnd[1]}else v=this.startEnd[0],h=(M=i.getNextUnset(this.startEnd[1]+1))-this.startEnd[1];var $,N=this.getDecodeFinderCounters();Jt.arraycopy(N,0,N,1,N.length-1),N[0]=h;try{$=this.parseFinderValue(N,t.FINDER_PATTERNS)}catch{return null}return new le($,[v,M],v,M,s)},t.prototype.decodeDataCharacter=function(i,s,c,h){for(var v=this.getDataCharacterCounters(),M=0;M.3)throw new Se;var et=this.getOddCounts(),vt=this.getEvenCounts(),zt=this.getOddRoundingErrors(),$t=this.getEvenRoundingErrors();for(O=0;O8){if(Gt>8.7)throw new Se;an=8}var bn=O/2;1&O?(vt[bn]=an,$t[bn]=Gt-an):(et[bn]=an,zt[bn]=Gt-an)}this.adjustOddEvenCounts(17);var Nn=4*s.getValue()+(c?0:2)+(h?0:1)-1,Zn=0,Kn=0;for(O=et.length-1;O>=0;O--)t.isNotA1left(s,c,h)&&(Kn+=et[O]*t.WEIGHTS[Nn][2*O]),Zn+=et[O];var Gi=0;for(O=vt.length-1;O>=0;O--)t.isNotA1left(s,c,h)&&(Gi+=vt[O]*t.WEIGHTS[Nn][2*O+1]);var Vi=Kn+Gi;if(1&Zn||Zn>13||Zn<4)throw new Se;var go=(13-Zn)/2,Dr=t.SYMBOL_WIDEST[go],hs=9-Dr,Vl=Qn.getRSSvalue(et,Dr,!0),ic=Qn.getRSSvalue(vt,hs,!1);return new Ae(Vl*t.EVEN_TOTAL_SUBSET[go]+ic+t.GSUM[go],Vi)},t.isNotA1left=function(i,s,c){return!(0===i.getValue()&&s&&c)},t.prototype.adjustOddEvenCounts=function(i){var s=_i.sum(new Int32Array(this.getOddCounts())),c=_i.sum(new Int32Array(this.getEvenCounts())),h=!1,v=!1;s>13?v=!0:s<4&&(h=!0);var M=!1,O=!1;c>13?O=!0:c<4&&(M=!0);var N=s+c-i,$=1==(1&s),q=0==(1&c);if(1===N)if($){if(q)throw new Se;v=!0}else{if(!q)throw new Se;O=!0}else if(-1===N)if($){if(q)throw new Se;h=!0}else{if(!q)throw new Se;M=!0}else{if(0!==N)throw new Se;if($){if(!q)throw new Se;s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ma=function(o){function t(){var i=null!==o&&o.apply(this,arguments)||this;return i.possibleLeftPairs=[],i.possibleRightPairs=[],i}return $a(t,o),t.prototype.decodeRow=function(i,s,c){var h,v,M,O,N=this.decodePair(s,!1,i,c);t.addOrTally(this.possibleLeftPairs,N),s.reverse();var $=this.decodePair(s,!0,i,c);t.addOrTally(this.possibleRightPairs,$),s.reverse();try{for(var q=Ui(this.possibleLeftPairs),de=q.next();!de.done;de=q.next()){var we=de.value;if(we.getCount()>1)try{for(var et=(M=void 0,Ui(this.possibleRightPairs)),vt=et.next();!vt.done;vt=et.next()){var zt=vt.value;if(zt.getCount()>1&&t.checkChecksum(we,zt))return t.constructResult(we,zt)}}catch($t){M={error:$t}}finally{try{vt&&!vt.done&&(O=et.return)&&O.call(et)}finally{if(M)throw M.error}}}}catch($t){h={error:$t}}finally{try{de&&!de.done&&(v=q.return)&&v.call(q)}finally{if(h)throw h.error}}throw new Se},t.addOrTally=function(i,s){var c,h;if(null!=s){var v=!1;try{for(var M=Ui(i),O=M.next();!O.done;O=M.next()){var N=O.value;if(N.getValue()===s.getValue()){N.incrementCount(),v=!0;break}}}catch($){c={error:$}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}v||i.push(s)}},t.prototype.reset=function(){this.possibleLeftPairs.length=0,this.possibleRightPairs.length=0},t.constructResult=function(i,s){for(var c=4537077*i.getValue()+s.getValue(),h=new String(c).toString(),v=new Ce,M=13-h.length;M>0;M--)v.append("0");v.append(h);var O=0;for(M=0;M<13;M++){var N=v.charAt(M).charCodeAt(0)-"0".charCodeAt(0);O+=1&M?N:3*N}10==(O=10-O%10)&&(O=0),v.append(O.toString());var $=i.getFinderPattern().getResultPoints(),q=s.getFinderPattern().getResultPoints();return new We(v.toString(),null,0,[$[0],$[1],q[0],q[1]],be.RSS_14,(new Date).getTime())},t.checkChecksum=function(i,s){var c=(i.getChecksumPortion()+16*s.getChecksumPortion())%79,h=9*i.getFinderPattern().getValue()+s.getFinderPattern().getValue();return h>72&&h--,h>8&&h--,c===h},t.prototype.decodePair=function(i,s,c,h){try{var v=this.findFinderPattern(i,s),M=this.parseFoundFinderPattern(i,c,s,v),O=null==h?null:h.get(he.NEED_RESULT_POINT_CALLBACK);if(null!=O){var N=(v[0]+v[1])/2;s&&(N=i.getSize()-1-N),O.foundPossibleResultPoint(new $n(N,c))}var $=this.decodeDataCharacter(i,M,!0),q=this.decodeDataCharacter(i,M,!1);return new bs(1597*$.getValue()+q.getValue(),$.getChecksumPortion()+4*q.getChecksumPortion(),M)}catch{return null}},t.prototype.decodeDataCharacter=function(i,s,c){for(var h=this.getDataCharacterCounters(),v=0;v8&&($t=8);var Gt=Math.floor(M/2);1&M?(we[Gt]=$t,vt[Gt]=zt-$t):(de[Gt]=$t,et[Gt]=zt-$t)}this.adjustOddEvenCounts(c,$);var an=0,bn=0;for(M=de.length-1;M>=0;M--)bn*=9,bn+=de[M],an+=de[M];var Nn=0,Zn=0;for(M=we.length-1;M>=0;M--)Nn*=9,Nn+=we[M],Zn+=we[M];var fi,Gi,Kn=bn+3*Nn;if(c){if(1&an||an>12||an<4)throw new Se;var Vi=9-(Gi=t.OUTSIDE_ODD_WIDEST[fi=(12-an)/2]),go=Qn.getRSSvalue(de,Gi,!1),Dr=Qn.getRSSvalue(we,Vi,!0);return new Ae(go*t.OUTSIDE_EVEN_TOTAL_SUBSET[fi]+Dr+t.OUTSIDE_GSUM[fi],Kn)}if(1&Zn||Zn>10||Zn<4)throw new Se;return Vi=9-(Gi=t.INSIDE_ODD_WIDEST[fi=(10-Zn)/2]),go=Qn.getRSSvalue(de,Gi,!0),Dr=Qn.getRSSvalue(we,Vi,!1),new Ae(Dr*t.INSIDE_ODD_TOTAL_SUBSET[fi]+go+t.INSIDE_GSUM[fi],Kn)},t.prototype.findFinderPattern=function(i,s){var c=this.getDecodeFinderCounters();c[0]=0,c[1]=0,c[2]=0,c[3]=0;for(var h=i.getSize(),v=!1,M=0;M=0&&v!==i.get(M);)M--;M++;var O=h[0]-M,N=this.getDecodeFinderCounters(),$=new Int32Array(N.length);Jt.arraycopy(N,0,$,1,N.length-1),$[0]=O;var q=this.parseFinderValue($,t.FINDER_PATTERNS),de=M,we=h[1];return c&&(de=i.getSize()-1-de,we=i.getSize()-1-we),new le(q,[M,h[1]],de,we,s)},t.prototype.adjustOddEvenCounts=function(i,s){var c=_i.sum(new Int32Array(this.getOddCounts())),h=_i.sum(new Int32Array(this.getEvenCounts())),v=!1,M=!1,O=!1,N=!1;i?(c>12?M=!0:c<4&&(v=!0),h>12?N=!0:h<4&&(O=!0)):(c>11?M=!0:c<5&&(v=!0),h>10?N=!0:h<4&&(O=!0));var $=c+h-s,q=(1&c)==(i?1:0),de=1==(1&h);if(1===$)if(q){if(de)throw new Se;M=!0}else{if(!de)throw new Se;N=!0}else if(-1===$)if(q){if(de)throw new Se;v=!0}else{if(!de)throw new Se;O=!0}else{if(0!==$)throw new Se;if(q){if(!de)throw new Se;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}),Wi=function(){function o(t,i,s){this.ecCodewords=t,this.ecBlocks=[i],s&&this.ecBlocks.push(s)}return o.prototype.getECCodewords=function(){return this.ecCodewords},o.prototype.getECBlocks=function(){return this.ecBlocks},o}(),Xi=function(){function o(t,i){this.count=t,this.dataCodewords=i}return o.prototype.getCount=function(){return this.count},o.prototype.getDataCodewords=function(){return this.dataCodewords},o}(),dl=function(){function o(t,i,s,c,h,v){var M,O;this.versionNumber=t,this.symbolSizeRows=i,this.symbolSizeColumns=s,this.dataRegionSizeRows=c,this.dataRegionSizeColumns=h,this.ecBlocks=v;var N=0,$=v.getECCodewords(),q=v.getECBlocks();try{for(var de=_o(q),we=de.next();!we.done;we=de.next()){var et=we.value;N+=et.getCount()*(et.getDataCodewords()+$)}}catch(vt){M={error:vt}}finally{try{we&&!we.done&&(O=de.return)&&O.call(de)}finally{if(M)throw M.error}}this.totalCodewords=N}return o.prototype.getVersionNumber=function(){return this.versionNumber},o.prototype.getSymbolSizeRows=function(){return this.symbolSizeRows},o.prototype.getSymbolSizeColumns=function(){return this.symbolSizeColumns},o.prototype.getDataRegionSizeRows=function(){return this.dataRegionSizeRows},o.prototype.getDataRegionSizeColumns=function(){return this.dataRegionSizeColumns},o.prototype.getTotalCodewords=function(){return this.totalCodewords},o.prototype.getECBlocks=function(){return this.ecBlocks},o.getVersionForDimensions=function(t,i){var s,c;if(1&t||1&i)throw new bt;try{for(var h=_o(o.VERSIONS),v=h.next();!v.done;v=h.next()){var M=v.value;if(M.symbolSizeRows===t&&M.symbolSizeColumns===i)return M}}catch(O){s={error:O}}finally{try{v&&!v.done&&(c=h.return)&&c.call(h)}finally{if(s)throw s.error}}throw new bt},o.prototype.toString=function(){return""+this.versionNumber},o.buildVersions=function(){return[new o(1,10,10,8,8,new Wi(5,new Xi(1,3))),new o(2,12,12,10,10,new Wi(7,new Xi(1,5))),new o(3,14,14,12,12,new Wi(10,new Xi(1,8))),new o(4,16,16,14,14,new Wi(12,new Xi(1,12))),new o(5,18,18,16,16,new Wi(14,new Xi(1,18))),new o(6,20,20,18,18,new Wi(18,new Xi(1,22))),new o(7,22,22,20,20,new Wi(20,new Xi(1,30))),new o(8,24,24,22,22,new Wi(24,new Xi(1,36))),new o(9,26,26,24,24,new Wi(28,new Xi(1,44))),new o(10,32,32,14,14,new Wi(36,new Xi(1,62))),new o(11,36,36,16,16,new Wi(42,new Xi(1,86))),new o(12,40,40,18,18,new Wi(48,new Xi(1,114))),new o(13,44,44,20,20,new Wi(56,new Xi(1,144))),new o(14,48,48,22,22,new Wi(68,new Xi(1,174))),new o(15,52,52,24,24,new Wi(42,new Xi(2,102))),new o(16,64,64,14,14,new Wi(56,new Xi(2,140))),new o(17,72,72,16,16,new Wi(36,new Xi(4,92))),new o(18,80,80,18,18,new Wi(48,new Xi(4,114))),new o(19,88,88,20,20,new Wi(56,new Xi(4,144))),new o(20,96,96,22,22,new Wi(68,new Xi(4,174))),new o(21,104,104,24,24,new Wi(56,new Xi(6,136))),new o(22,120,120,18,18,new Wi(68,new Xi(6,175))),new o(23,132,132,20,20,new Wi(62,new Xi(8,163))),new o(24,144,144,22,22,new Wi(62,new Xi(8,156),new Xi(2,155))),new o(25,8,18,6,16,new Wi(7,new Xi(1,5))),new o(26,8,32,6,14,new Wi(11,new Xi(1,10))),new o(27,12,26,10,24,new Wi(14,new Xi(1,16))),new o(28,12,36,10,16,new Wi(18,new Xi(1,22))),new o(29,16,36,14,16,new Wi(24,new Xi(1,32))),new o(30,16,48,14,22,new Wi(28,new Xi(1,49)))]},o.VERSIONS=o.buildVersions(),o}();const ko=dl;var rs=function(){function o(t){var i=t.getHeight();if(i<8||i>144||1&i)throw new bt;this.version=o.readVersion(t),this.mappingBitMatrix=this.extractDataRegion(t),this.readMappingMatrix=new ae(this.mappingBitMatrix.getWidth(),this.mappingBitMatrix.getHeight())}return o.prototype.getVersion=function(){return this.version},o.readVersion=function(t){var i=t.getHeight(),s=t.getWidth();return ko.getVersionForDimensions(i,s)},o.prototype.readCodewords=function(){var t=new Int8Array(this.version.getTotalCodewords()),i=0,s=4,c=0,h=this.mappingBitMatrix.getHeight(),v=this.mappingBitMatrix.getWidth(),M=!1,O=!1,N=!1,$=!1;do{if(s!==h||0!==c||M)if(s===h-2&&0===c&&3&v&&!O)t[i++]=255&this.readCorner2(h,v),s-=2,c+=2,O=!0;else if(s!==h+4||2!==c||7&v||N)if(s!==h-2||0!==c||4!=(7&v)||$){do{s=0&&!this.readMappingMatrix.get(c,s)&&(t[i++]=255&this.readUtah(s,c,h,v)),s-=2,c+=2}while(s>=0&&c=0&&c=0);s+=3,c+=1}else t[i++]=255&this.readCorner4(h,v),s-=2,c+=2,$=!0;else t[i++]=255&this.readCorner3(h,v),s-=2,c+=2,N=!0;else t[i++]=255&this.readCorner1(h,v),s-=2,c+=2,M=!0}while(s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Us=function(){function o(t,i){this.numDataCodewords=t,this.codewords=i}return o.getDataBlocks=function(t,i){var s,c,h,v,M=i.getECBlocks(),O=0,N=M.getECBlocks();try{for(var $=Pc(N),q=$.next();!q.done;q=$.next())O+=(de=q.value).getCount()}catch(Vl){s={error:Vl}}finally{try{q&&!q.done&&(c=$.return)&&c.call($)}finally{if(s)throw s.error}}var we=new Array(O),et=0;try{for(var vt=Pc(N),zt=vt.next();!zt.done;zt=vt.next())for(var de=zt.value,$t=0;$t7?$t-1:$t]=t[Kn++]}if(Kn!==t.length)throw new Ge;return we},o.prototype.getNumDataCodewords=function(){return this.numDataCodewords},o.prototype.getCodewords=function(){return this.codewords},o}();const Vs=Us;var Nc=function(){function o(t){this.bytes=t,this.byteOffset=0,this.bitOffset=0}return o.prototype.getBitOffset=function(){return this.bitOffset},o.prototype.getByteOffset=function(){return this.byteOffset},o.prototype.readBits=function(t){if(t<1||t>32||t>this.available())throw new Ge(""+t);var i=0,s=this.bitOffset,c=this.byteOffset,h=this.bytes;if(s>0){var v=8-s,M=t>8-M<<(O=v-M))>>O,t-=M,8===(s+=M)&&(s=0,c++)}if(t>0){for(;t>=8;)i=i<<8|255&h[c],c++,t-=8;var O;t>0&&(i=i<>(O=8-t)<>O,s+=t)}return this.bitOffset=s,this.byteOffset=c,i},o.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},o}();const ac=Nc;var To=function(o){return o[o.PAD_ENCODE=0]="PAD_ENCODE",o[o.ASCII_ENCODE=1]="ASCII_ENCODE",o[o.C40_ENCODE=2]="C40_ENCODE",o[o.TEXT_ENCODE=3]="TEXT_ENCODE",o[o.ANSIX12_ENCODE=4]="ANSIX12_ENCODE",o[o.EDIFACT_ENCODE=5]="EDIFACT_ENCODE",o[o.BASE256_ENCODE=6]="BASE256_ENCODE",o}(To||{}),nd=function(){function o(){}return o.decode=function(t){var i=new ac(t),s=new Ce,c=new Ce,h=new Array,v=To.ASCII_ENCODE;do{if(v===To.ASCII_ENCODE)v=this.decodeAsciiSegment(i,s,c);else{switch(v){case To.C40_ENCODE:this.decodeC40Segment(i,s);break;case To.TEXT_ENCODE:this.decodeTextSegment(i,s);break;case To.ANSIX12_ENCODE:this.decodeAnsiX12Segment(i,s);break;case To.EDIFACT_ENCODE:this.decodeEdifactSegment(i,s);break;case To.BASE256_ENCODE:this.decodeBase256Segment(i,s,h);break;default:throw new bt}v=To.ASCII_ENCODE}}while(v!==To.PAD_ENCODE&&i.available()>0);return c.length()>0&&s.append(c.toString()),new Pn(t,s.toString(),0===h.length?null:h,null)},o.decodeAsciiSegment=function(t,i,s){var c=!1;do{var h=t.readBits(8);if(0===h)throw new bt;if(h<=128)return c&&(h+=128),i.append(String.fromCharCode(h-1)),To.ASCII_ENCODE;if(129===h)return To.PAD_ENCODE;if(h<=229){var v=h-130;v<10&&i.append("0"),i.append(""+v)}else switch(h){case 230:return To.C40_ENCODE;case 231:return To.BASE256_ENCODE;case 232:i.append(String.fromCharCode(29));break;case 233:case 234:case 241:break;case 235:c=!0;break;case 236:i.append("[)>\x1e05\x1d"),s.insert(0,"\x1e\x04");break;case 237:i.append("[)>\x1e06\x1d"),s.insert(0,"\x1e\x04");break;case 238:return To.ANSIX12_ENCODE;case 239:return To.TEXT_ENCODE;case 240:return To.EDIFACT_ENCODE;default:if(254!==h||0!==t.available())throw new bt}}while(t.available()>0);return To.ASCII_ENCODE},o.decodeC40Segment=function(t,i){var s=!1,c=[],h=0;do{if(8===t.available())return;var v=t.readBits(8);if(254===v)return;this.parseTwoBytes(v,t.readBits(8),c);for(var M=0;M<3;M++){var O=c[M];switch(h){case 0:if(O<3)h=O+1;else{if(!(O0)},o.decodeTextSegment=function(t,i){var s=!1,c=[],h=0;do{if(8===t.available())return;var v=t.readBits(8);if(254===v)return;this.parseTwoBytes(v,t.readBits(8),c);for(var M=0;M<3;M++){var O=c[M];switch(h){case 0:if(O<3)h=O+1;else{if(!(O0)},o.decodeAnsiX12Segment=function(t,i){var s=[];do{if(8===t.available())return;var c=t.readBits(8);if(254===c)return;this.parseTwoBytes(c,t.readBits(8),s);for(var h=0;h<3;h++){var v=s[h];switch(v){case 0:i.append("\r");break;case 1:i.append("*");break;case 2:i.append(">");break;case 3:i.append(" ");break;default:if(v<14)i.append(String.fromCharCode(v+44));else{if(!(v<40))throw new bt;i.append(String.fromCharCode(v+51))}}}}while(t.available()>0)},o.parseTwoBytes=function(t,i,s){var c=(t<<8)+i-1,h=Math.floor(c/1600);s[0]=h,c-=1600*h,h=Math.floor(c/40),s[1]=h,s[2]=c-40*h},o.decodeEdifactSegment=function(t,i){do{if(t.available()<=16)return;for(var s=0;s<4;s++){var c=t.readBits(6);if(31===c){var h=8-t.getBitOffset();return void(8!==h&&t.readBits(h))}32&c||(c|=64),i.append(String.fromCharCode(c))}}while(t.available()>0)},o.decodeBase256Segment=function(t,i,s){var v,c=1+t.getByteOffset(),h=this.unrandomize255State(t.readBits(8),c++);if((v=0===h?t.available()/8|0:h<250?h:250*(h-249)+this.unrandomize255State(t.readBits(8),c++))<0)throw new bt;for(var M=new Uint8Array(v),O=0;O=0?c:c+256},o.C40_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],o.C40_SHIFT2_SET_CHARS=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],o.TEXT_BASIC_SET_CHARS=["*","*","*"," ","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],o.TEXT_SHIFT2_SET_CHARS=o.C40_SHIFT2_SET_CHARS,o.TEXT_SHIFT3_SET_CHARS=["`","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","{","|","}","~",String.fromCharCode(127)],o}();const lc=nd;var Ca=function(){function o(){this.rsDecoder=new vr(_n.DATA_MATRIX_FIELD_256)}return o.prototype.decode=function(t){var i,s,c=new ul(t),h=c.getVersion(),v=c.readCodewords(),M=Vs.getDataBlocks(v,h),O=0;try{for(var N=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(M),$=N.next();!$.done;$=N.next())O+=$.value.getNumDataCodewords()}catch(an){i={error:an}}finally{try{$&&!$.done&&(s=N.return)&&s.call(N)}finally{if(i)throw i.error}}for(var de=new Uint8Array(O),we=M.length,et=0;etM&&($=M,q[0]=i,q[1]=s,q[2]=c,q[3]=h),$>O&&($=O,q[0]=s,q[1]=c,q[2]=h,q[3]=i),$>N&&(q[0]=c,q[1]=h,q[2]=i,q[3]=s),q},o.prototype.detectSolid2=function(t){var i=t[0],s=t[1],c=t[2],h=t[3],v=this.transitionsBetween(i,h),M=o.shiftPoint(s,c,4*(v+1)),O=o.shiftPoint(c,s,4*(v+1));return this.transitionsBetween(M,i)this.transitionsBetween(O,q)+this.transitionsBetween(N,q)?$:q:$:this.isValid(q)?q:null},o.prototype.shiftToModuleCenter=function(t){var i=t[0],s=t[1],c=t[2],h=t[3],v=this.transitionsBetween(i,h)+1,M=this.transitionsBetween(c,h)+1,O=o.shiftPoint(i,s,4*M),N=o.shiftPoint(c,s,4*v);1==(1&(v=this.transitionsBetween(O,h)+1))&&(v+=1),1==(1&(M=this.transitionsBetween(N,h)+1))&&(M+=1);var de,we,$=(i.getX()+s.getX()+c.getX()+h.getX())/4,q=(i.getY()+s.getY()+c.getY()+h.getY())/4;return i=o.moveAway(i,$,q),s=o.moveAway(s,$,q),c=o.moveAway(c,$,q),h=o.moveAway(h,$,q),O=o.shiftPoint(i,s,4*M),O=o.shiftPoint(O,h,4*v),de=o.shiftPoint(s,i,4*M),de=o.shiftPoint(de,c,4*v),N=o.shiftPoint(c,h,4*M),N=o.shiftPoint(N,s,4*v),we=o.shiftPoint(h,c,4*M),[O,de,N,we=o.shiftPoint(we,i,4*v)]},o.prototype.isValid=function(t){return t.getX()>=0&&t.getX()0&&t.getY()Math.abs(h-s);if(M){var O=s;s=c,c=O,O=h,h=v,v=O}for(var N=Math.abs(h-s),$=Math.abs(v-c),q=-N/2,de=c0){if($t===v)break;$t+=de,q-=N}}return et},o}();const rd=id;var sa=function(){function o(){this.decoder=new ks}return o.prototype.decode=function(t,i){var s,c;if(void 0===i&&(i=null),null!=i&&i.has(he.PURE_BARCODE)){var h=o.extractPureBits(t.getBlackMatrix());s=this.decoder.decode(h),c=o.NO_POINTS}else{var v=new rd(t.getBlackMatrix()).detect();s=this.decoder.decode(v.getBits()),c=v.getPoints()}var M=s.getRawBytes(),O=new We(s.getText(),M,8*M.length,c,be.DATA_MATRIX,Jt.currentTimeMillis()),N=s.getByteSegments();null!=N&&O.putMetadata(He.BYTE_SEGMENTS,N);var $=s.getECLevel();return null!=$&&O.putMetadata(He.ERROR_CORRECTION_LEVEL,$),O},o.prototype.reset=function(){},o.extractPureBits=function(t){var i=t.getTopLeftOnBit(),s=t.getBottomRightOnBit();if(null==i||null==s)throw new Se;var c=this.moduleSize(i,t),h=i[1],M=i[0],N=(s[0]-M+1)/c,$=(s[1]-h+1)/c;if(N<=0||$<=0)throw new Se;var q=c/2;h+=q,M+=q;for(var de=new ae(N,$),we=0;we<$;we++)for(var et=h+we*c,vt=0;vt=o.FOR_BITS.size)throw new Ge;return o.FOR_BITS.get(t)},o.FOR_BITS=new Map,o.FOR_VALUE=new Map,o.L=new o(Mo.L,"L",1),o.M=new o(Mo.M,"M",0),o.Q=new o(Mo.Q,"Q",3),o.H=new o(Mo.H,"H",2),o}();const aa=Ka;var kn=function(){function o(t){this.errorCorrectionLevel=aa.forBits(t>>3&3),this.dataMask=7&t}return o.numBitsDiffering=function(t,i){return Ee.bitCount(t^i)},o.decodeFormatInformation=function(t,i){var s=o.doDecodeFormatInformation(t,i);return null!==s?s:o.doDecodeFormatInformation(t^o.FORMAT_INFO_MASK_QR,i^o.FORMAT_INFO_MASK_QR)},o.doDecodeFormatInformation=function(t,i){var s,c,h=Number.MAX_SAFE_INTEGER,v=0;try{for(var M=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o.FORMAT_INFO_DECODE_LOOKUP),O=M.next();!O.done;O=M.next()){var N=O.value,$=N[0];if($===t||$===i)return new o(N[1]);var q=o.numBitsDiffering(t,$);q=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),v=h.next();!v.done;v=h.next())s+=v.value.getCount()}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return s},o.prototype.getTotalECCodewords=function(){return this.ecCodewordsPerBlock*this.getNumBlocks()},o.prototype.getECBlocks=function(){return this.ecBlocks},o}();const en=Il;var so=function(){function o(t,i){this.count=t,this.dataCodewords=i}return o.prototype.getCount=function(){return this.count},o.prototype.getDataCodewords=function(){return this.dataCodewords},o}();const gt=so;var Ra=function(){function o(t,i){for(var s,c,h=[],v=2;v=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(N),q=$.next();!q.done;q=$.next()){var de=q.value;M+=de.getCount()*(de.getDataCodewords()+O)}}catch(we){s={error:we}}finally{try{q&&!q.done&&(c=$.return)&&c.call($)}finally{if(s)throw s.error}}this.totalCodewords=M}return o.prototype.getVersionNumber=function(){return this.versionNumber},o.prototype.getAlignmentPatternCenters=function(){return this.alignmentPatternCenters},o.prototype.getTotalCodewords=function(){return this.totalCodewords},o.prototype.getDimensionForVersion=function(){return 17+4*this.versionNumber},o.prototype.getECBlocksForLevel=function(t){return this.ecBlocks[t.getValue()]},o.getProvisionalVersionForDimension=function(t){if(t%4!=1)throw new bt;try{return this.getVersionForNumber((t-17)/4)}catch{throw new bt}},o.getVersionForNumber=function(t){if(t<1||t>40)throw new Ge;return o.VERSIONS[t-1]},o.decodeVersionInformation=function(t){for(var i=Number.MAX_SAFE_INTEGER,s=0,c=0;c6&&(i.setRegion(t-11,0,3,6),i.setRegion(0,t-11,6,3)),i},o.prototype.toString=function(){return""+this.versionNumber},o.VERSION_DECODE_INFO=Int32Array.from([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136944,141498,145311,150283,152622,158308,161089,167017]),o.VERSIONS=[new o(1,new Int32Array(0),new en(7,new gt(1,19)),new en(10,new gt(1,16)),new en(13,new gt(1,13)),new en(17,new gt(1,9))),new o(2,Int32Array.from([6,18]),new en(10,new gt(1,34)),new en(16,new gt(1,28)),new en(22,new gt(1,22)),new en(28,new gt(1,16))),new o(3,Int32Array.from([6,22]),new en(15,new gt(1,55)),new en(26,new gt(1,44)),new en(18,new gt(2,17)),new en(22,new gt(2,13))),new o(4,Int32Array.from([6,26]),new en(20,new gt(1,80)),new en(18,new gt(2,32)),new en(26,new gt(2,24)),new en(16,new gt(4,9))),new o(5,Int32Array.from([6,30]),new en(26,new gt(1,108)),new en(24,new gt(2,43)),new en(18,new gt(2,15),new gt(2,16)),new en(22,new gt(2,11),new gt(2,12))),new o(6,Int32Array.from([6,34]),new en(18,new gt(2,68)),new en(16,new gt(4,27)),new en(24,new gt(4,19)),new en(28,new gt(4,15))),new o(7,Int32Array.from([6,22,38]),new en(20,new gt(2,78)),new en(18,new gt(4,31)),new en(18,new gt(2,14),new gt(4,15)),new en(26,new gt(4,13),new gt(1,14))),new o(8,Int32Array.from([6,24,42]),new en(24,new gt(2,97)),new en(22,new gt(2,38),new gt(2,39)),new en(22,new gt(4,18),new gt(2,19)),new en(26,new gt(4,14),new gt(2,15))),new o(9,Int32Array.from([6,26,46]),new en(30,new gt(2,116)),new en(22,new gt(3,36),new gt(2,37)),new en(20,new gt(4,16),new gt(4,17)),new en(24,new gt(4,12),new gt(4,13))),new o(10,Int32Array.from([6,28,50]),new en(18,new gt(2,68),new gt(2,69)),new en(26,new gt(4,43),new gt(1,44)),new en(24,new gt(6,19),new gt(2,20)),new en(28,new gt(6,15),new gt(2,16))),new o(11,Int32Array.from([6,30,54]),new en(20,new gt(4,81)),new en(30,new gt(1,50),new gt(4,51)),new en(28,new gt(4,22),new gt(4,23)),new en(24,new gt(3,12),new gt(8,13))),new o(12,Int32Array.from([6,32,58]),new en(24,new gt(2,92),new gt(2,93)),new en(22,new gt(6,36),new gt(2,37)),new en(26,new gt(4,20),new gt(6,21)),new en(28,new gt(7,14),new gt(4,15))),new o(13,Int32Array.from([6,34,62]),new en(26,new gt(4,107)),new en(22,new gt(8,37),new gt(1,38)),new en(24,new gt(8,20),new gt(4,21)),new en(22,new gt(12,11),new gt(4,12))),new o(14,Int32Array.from([6,26,46,66]),new en(30,new gt(3,115),new gt(1,116)),new en(24,new gt(4,40),new gt(5,41)),new en(20,new gt(11,16),new gt(5,17)),new en(24,new gt(11,12),new gt(5,13))),new o(15,Int32Array.from([6,26,48,70]),new en(22,new gt(5,87),new gt(1,88)),new en(24,new gt(5,41),new gt(5,42)),new en(30,new gt(5,24),new gt(7,25)),new en(24,new gt(11,12),new gt(7,13))),new o(16,Int32Array.from([6,26,50,74]),new en(24,new gt(5,98),new gt(1,99)),new en(28,new gt(7,45),new gt(3,46)),new en(24,new gt(15,19),new gt(2,20)),new en(30,new gt(3,15),new gt(13,16))),new o(17,Int32Array.from([6,30,54,78]),new en(28,new gt(1,107),new gt(5,108)),new en(28,new gt(10,46),new gt(1,47)),new en(28,new gt(1,22),new gt(15,23)),new en(28,new gt(2,14),new gt(17,15))),new o(18,Int32Array.from([6,30,56,82]),new en(30,new gt(5,120),new gt(1,121)),new en(26,new gt(9,43),new gt(4,44)),new en(28,new gt(17,22),new gt(1,23)),new en(28,new gt(2,14),new gt(19,15))),new o(19,Int32Array.from([6,30,58,86]),new en(28,new gt(3,113),new gt(4,114)),new en(26,new gt(3,44),new gt(11,45)),new en(26,new gt(17,21),new gt(4,22)),new en(26,new gt(9,13),new gt(16,14))),new o(20,Int32Array.from([6,34,62,90]),new en(28,new gt(3,107),new gt(5,108)),new en(26,new gt(3,41),new gt(13,42)),new en(30,new gt(15,24),new gt(5,25)),new en(28,new gt(15,15),new gt(10,16))),new o(21,Int32Array.from([6,28,50,72,94]),new en(28,new gt(4,116),new gt(4,117)),new en(26,new gt(17,42)),new en(28,new gt(17,22),new gt(6,23)),new en(30,new gt(19,16),new gt(6,17))),new o(22,Int32Array.from([6,26,50,74,98]),new en(28,new gt(2,111),new gt(7,112)),new en(28,new gt(17,46)),new en(30,new gt(7,24),new gt(16,25)),new en(24,new gt(34,13))),new o(23,Int32Array.from([6,30,54,78,102]),new en(30,new gt(4,121),new gt(5,122)),new en(28,new gt(4,47),new gt(14,48)),new en(30,new gt(11,24),new gt(14,25)),new en(30,new gt(16,15),new gt(14,16))),new o(24,Int32Array.from([6,28,54,80,106]),new en(30,new gt(6,117),new gt(4,118)),new en(28,new gt(6,45),new gt(14,46)),new en(30,new gt(11,24),new gt(16,25)),new en(30,new gt(30,16),new gt(2,17))),new o(25,Int32Array.from([6,32,58,84,110]),new en(26,new gt(8,106),new gt(4,107)),new en(28,new gt(8,47),new gt(13,48)),new en(30,new gt(7,24),new gt(22,25)),new en(30,new gt(22,15),new gt(13,16))),new o(26,Int32Array.from([6,30,58,86,114]),new en(28,new gt(10,114),new gt(2,115)),new en(28,new gt(19,46),new gt(4,47)),new en(28,new gt(28,22),new gt(6,23)),new en(30,new gt(33,16),new gt(4,17))),new o(27,Int32Array.from([6,34,62,90,118]),new en(30,new gt(8,122),new gt(4,123)),new en(28,new gt(22,45),new gt(3,46)),new en(30,new gt(8,23),new gt(26,24)),new en(30,new gt(12,15),new gt(28,16))),new o(28,Int32Array.from([6,26,50,74,98,122]),new en(30,new gt(3,117),new gt(10,118)),new en(28,new gt(3,45),new gt(23,46)),new en(30,new gt(4,24),new gt(31,25)),new en(30,new gt(11,15),new gt(31,16))),new o(29,Int32Array.from([6,30,54,78,102,126]),new en(30,new gt(7,116),new gt(7,117)),new en(28,new gt(21,45),new gt(7,46)),new en(30,new gt(1,23),new gt(37,24)),new en(30,new gt(19,15),new gt(26,16))),new o(30,Int32Array.from([6,26,52,78,104,130]),new en(30,new gt(5,115),new gt(10,116)),new en(28,new gt(19,47),new gt(10,48)),new en(30,new gt(15,24),new gt(25,25)),new en(30,new gt(23,15),new gt(25,16))),new o(31,Int32Array.from([6,30,56,82,108,134]),new en(30,new gt(13,115),new gt(3,116)),new en(28,new gt(2,46),new gt(29,47)),new en(30,new gt(42,24),new gt(1,25)),new en(30,new gt(23,15),new gt(28,16))),new o(32,Int32Array.from([6,34,60,86,112,138]),new en(30,new gt(17,115)),new en(28,new gt(10,46),new gt(23,47)),new en(30,new gt(10,24),new gt(35,25)),new en(30,new gt(19,15),new gt(35,16))),new o(33,Int32Array.from([6,30,58,86,114,142]),new en(30,new gt(17,115),new gt(1,116)),new en(28,new gt(14,46),new gt(21,47)),new en(30,new gt(29,24),new gt(19,25)),new en(30,new gt(11,15),new gt(46,16))),new o(34,Int32Array.from([6,34,62,90,118,146]),new en(30,new gt(13,115),new gt(6,116)),new en(28,new gt(14,46),new gt(23,47)),new en(30,new gt(44,24),new gt(7,25)),new en(30,new gt(59,16),new gt(1,17))),new o(35,Int32Array.from([6,30,54,78,102,126,150]),new en(30,new gt(12,121),new gt(7,122)),new en(28,new gt(12,47),new gt(26,48)),new en(30,new gt(39,24),new gt(14,25)),new en(30,new gt(22,15),new gt(41,16))),new o(36,Int32Array.from([6,24,50,76,102,128,154]),new en(30,new gt(6,121),new gt(14,122)),new en(28,new gt(6,47),new gt(34,48)),new en(30,new gt(46,24),new gt(10,25)),new en(30,new gt(2,15),new gt(64,16))),new o(37,Int32Array.from([6,28,54,80,106,132,158]),new en(30,new gt(17,122),new gt(4,123)),new en(28,new gt(29,46),new gt(14,47)),new en(30,new gt(49,24),new gt(10,25)),new en(30,new gt(24,15),new gt(46,16))),new o(38,Int32Array.from([6,32,58,84,110,136,162]),new en(30,new gt(4,122),new gt(18,123)),new en(28,new gt(13,46),new gt(32,47)),new en(30,new gt(48,24),new gt(14,25)),new en(30,new gt(42,15),new gt(32,16))),new o(39,Int32Array.from([6,26,54,82,110,138,166]),new en(30,new gt(20,117),new gt(4,118)),new en(28,new gt(40,47),new gt(7,48)),new en(30,new gt(43,24),new gt(22,25)),new en(30,new gt(10,15),new gt(67,16))),new o(40,Int32Array.from([6,30,58,86,114,142,170]),new en(30,new gt(19,118),new gt(6,119)),new en(28,new gt(18,47),new gt(31,48)),new en(30,new gt(34,24),new gt(34,25)),new en(30,new gt(20,15),new gt(61,16)))],o}();const Ls=Ra;var os=function(o){return o[o.DATA_MASK_000=0]="DATA_MASK_000",o[o.DATA_MASK_001=1]="DATA_MASK_001",o[o.DATA_MASK_010=2]="DATA_MASK_010",o[o.DATA_MASK_011=3]="DATA_MASK_011",o[o.DATA_MASK_100=4]="DATA_MASK_100",o[o.DATA_MASK_101=5]="DATA_MASK_101",o[o.DATA_MASK_110=6]="DATA_MASK_110",o[o.DATA_MASK_111=7]="DATA_MASK_111",o}(os||{}),ss=function(){function o(t,i){this.value=t,this.isMasked=i}return o.prototype.unmaskBitMatrix=function(t,i){for(var s=0;s=0;s--)t=this.copyBit(8,s,t);var c=this.bitMatrix.getHeight(),h=0,v=c-7;for(s=c-1;s>=v;s--)h=this.copyBit(8,s,h);for(i=c-8;i=0;h--)for(var v=t-9;v>=c;v--)s=this.copyBit(v,h,s);var M=Ls.decodeVersionInformation(s);if(null!==M&&M.getDimensionForVersion()===t)return this.parsedVersion=M,M;for(s=0,v=5;v>=0;v--)for(h=t-9;h>=c;h--)s=this.copyBit(v,h,s);if(null!==(M=Ls.decodeVersionInformation(s))&&M.getDimensionForVersion()===t)return this.parsedVersion=M,M;throw new bt},o.prototype.copyBit=function(t,i,s){return(this.isMirror?this.bitMatrix.get(i,t):this.bitMatrix.get(t,i))?s<<1|1:s<<1},o.prototype.readCodewords=function(){var t=this.readFormatInformation(),i=this.readVersion(),s=Fc.values.get(t.getDataMask()),c=this.bitMatrix.getHeight();s.unmaskBitMatrix(this.bitMatrix,c);for(var h=i.buildFunctionPattern(),v=!0,M=new Uint8Array(i.getTotalCodewords()),O=0,N=0,$=0,q=c-1;q>0;q-=2){6===q&&q--;for(var de=0;de=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},W=function(){function o(t,i){this.numDataCodewords=t,this.codewords=i}return o.getDataBlocks=function(t,i,s){var c,h,v,M;if(t.length!==i.getTotalCodewords())throw new Ge;var O=i.getECBlocksForLevel(s),N=0,$=O.getECBlocks();try{for(var q=ys($),de=q.next();!de.done;de=q.next())N+=(we=de.value).getCount()}catch(hs){c={error:hs}}finally{try{de&&!de.done&&(h=q.return)&&h.call(q)}finally{if(c)throw c.error}}var et=new Array(N),vt=0;try{for(var zt=ys($),$t=zt.next();!$t.done;$t=zt.next())for(var we=$t.value,Gt=0;Gt=0&&et[Zn].codewords.length!==Nn;)Zn--;Zn++;var fi=Nn-O.getECCodewordsPerBlock(),Gi=0;for(Gt=0;Gtt.available())throw new bt;for(var c=new Uint8Array(2*s),h=0;s>0;){var v=t.readBits(13),M=v/96<<8&4294967295|v%96;c[h]=(M+=M<959?41377:42657)>>8&255,c[h+1]=255&M,h+=2,s--}try{i.append(Wn.decode(c,ct.GB2312))}catch(O){throw new bt(O)}},o.decodeKanjiSegment=function(t,i,s){if(13*s>t.available())throw new bt;for(var c=new Uint8Array(2*s),h=0;s>0;){var v=t.readBits(13),M=v/192<<8&4294967295|v%192;c[h]=(M+=M<7936?33088:49472)>>8,c[h+1]=M,h+=2,s--}try{i.append(Wn.decode(c,ct.SHIFT_JIS))}catch(O){throw new bt(O)}},o.decodeByteSegment=function(t,i,s,c,h,v){if(8*s>t.available())throw new bt;for(var M=new Uint8Array(s),O=0;O=o.ALPHANUMERIC_CHARS.length)throw new bt;return o.ALPHANUMERIC_CHARS[t]},o.decodeAlphanumericSegment=function(t,i,s,c){for(var h=i.length();s>1;){if(t.available()<11)throw new bt;var v=t.readBits(11);i.append(o.toAlphaNumericChar(Math.floor(v/45))),i.append(o.toAlphaNumericChar(v%45)),s-=2}if(1===s){if(t.available()<6)throw new bt;i.append(o.toAlphaNumericChar(t.readBits(6)))}if(c)for(var M=h;M=3;){if(t.available()<10)throw new bt;var c=t.readBits(10);if(c>=1e3)throw new bt;i.append(o.toAlphaNumericChar(Math.floor(c/100))),i.append(o.toAlphaNumericChar(Math.floor(c/10)%10)),i.append(o.toAlphaNumericChar(c%10)),s-=3}if(2===s){if(t.available()<7)throw new bt;var h=t.readBits(7);if(h>=100)throw new bt;i.append(o.toAlphaNumericChar(Math.floor(h/10))),i.append(o.toAlphaNumericChar(h%10))}else if(1===s){if(t.available()<4)throw new bt;var v=t.readBits(4);if(v>=10)throw new bt;i.append(o.toAlphaNumericChar(v))}},o.parseECIValue=function(t){var i=t.readBits(8);if(!(128&i))return 127&i;if(128==(192&i))return(63&i)<<8&4294967295|t.readBits(8);if(192==(224&i))return(31&i)<<16&4294967295|t.readBits(16);throw new bt},o.ALPHANUMERIC_CHARS="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",o.GB2312_SUBSET=1,o}();const Pt=qe;var mn=function(){function o(t){this.mirrored=t}return o.prototype.isMirrored=function(){return this.mirrored},o.prototype.applyMirroredCorrection=function(t){if(this.mirrored&&null!==t&&!(t.length<3)){var i=t[0];t[0]=t[2],t[2]=i}},o}();const hn=mn;var on=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ji=function(){function o(){this.rsDecoder=new vr(_n.QR_CODE_FIELD_256)}return o.prototype.decodeBooleanArray=function(t,i){return this.decodeBitMatrix(ae.parseFromBooleanArray(t),i)},o.prototype.decodeBitMatrix=function(t,i){var s=new ka(t),c=null;try{return this.decodeBitMatrixParser(s,i)}catch(v){c=v}try{s.remask(),s.setMirror(!0),s.readVersion(),s.readFormatInformation(),s.mirror();var h=this.decodeBitMatrixParser(s,i);return h.setOther(new hn(!0)),h}catch(v){throw null!==c?c:v}},o.prototype.decodeBitMatrixParser=function(t,i){var s,c,h,v,M=t.readVersion(),O=t.readFormatInformation().getErrorCorrectionLevel(),N=t.readCodewords(),$=ne.getDataBlocks(N,M,O),q=0;try{for(var de=on($),we=de.next();!we.done;we=de.next())q+=(et=we.value).getNumDataCodewords()}catch(Zn){s={error:Zn}}finally{try{we&&!we.done&&(c=de.return)&&c.call(de)}finally{if(s)throw s.error}}var vt=new Uint8Array(q),zt=0;try{for(var $t=on($),Gt=$t.next();!Gt.done;Gt=$t.next()){var et,an=(et=Gt.value).getCodewords(),bn=et.getNumDataCodewords();this.correctErrors(an,bn);for(var Nn=0;Nn=s)return!1;return!0},o.prototype.crossCheckVertical=function(t,i,s,c){var h=this.image,v=h.getHeight(),M=this.crossCheckStateCount;M[0]=0,M[1]=0,M[2]=0;for(var O=t;O>=0&&h.get(i,O)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&!h.get(i,O)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;Os)return NaN;for(;Os||5*Math.abs(M[0]+M[1]+M[2]-c)>=2*c?NaN:this.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.handlePossibleCenter=function(t,i,s){var c,h,v=t[0]+t[1]+t[2],M=o.centerFromEnd(t,s),O=this.crossCheckVertical(i,M,2*t[1],v);if(!isNaN(O)){var N=(t[0]+t[1]+t[2])/3;try{for(var $=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.possibleCenters),q=$.next();!q.done;q=$.next()){var de=q.value;if(de.aboutEquals(N,O,M))return de.combineEstimate(O,M,N)}}catch(et){c={error:et}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}var we=new Ps(M,O,N);this.possibleCenters.push(we),null!=this.resultPointCallback&&this.resultPointCallback.foundPossibleResultPoint(we)}return null},o}();const Ja=Rl;var xd=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Md=function(o){function t(i,s,c,h){var v=o.call(this,i,s)||this;return v.estimatedModuleSize=c,v.count=h,void 0===h&&(v.count=1),v}return xd(t,o),t.prototype.getEstimatedModuleSize=function(){return this.estimatedModuleSize},t.prototype.getCount=function(){return this.count},t.prototype.aboutEquals=function(i,s,c){if(Math.abs(s-this.getY())<=i&&Math.abs(c-this.getX())<=i){var h=Math.abs(i-this.estimatedModuleSize);return h<=1||h<=this.estimatedModuleSize}return!1},t.prototype.combineEstimate=function(i,s,c){var h=this.count+1;return new t((this.count*this.getX()+s)/h,(this.count*this.getY()+i)/h,(this.count*this.estimatedModuleSize+c)/h,h)},t}($n);const Do=Md;var qa=function(){function o(t){this.bottomLeft=t[0],this.topLeft=t[1],this.topRight=t[2]}return o.prototype.getBottomLeft=function(){return this.bottomLeft},o.prototype.getTopLeft=function(){return this.topLeft},o.prototype.getTopRight=function(){return this.topRight},o}();const xr=qa;var dc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ec=function(){function o(t,i){this.image=t,this.resultPointCallback=i,this.possibleCenters=[],this.crossCheckStateCount=new Int32Array(5),this.resultPointCallback=i}return o.prototype.getImage=function(){return this.image},o.prototype.getPossibleCenters=function(){return this.possibleCenters},o.prototype.find=function(t){var i=null!=t&&void 0!==t.get(he.TRY_HARDER),s=null!=t&&void 0!==t.get(he.PURE_BARCODE),c=this.image,h=c.getHeight(),v=c.getWidth(),M=Math.floor(3*h/(4*o.MAX_MODULES));(MN[2]&&($+=et-N[2]-M,de=v-1)}q=0,N[0]=0,N[1]=0,N[2]=0,N[3]=0,N[4]=0}else N[0]=N[2],N[1]=N[3],N[2]=N[4],N[3]=1,N[4]=0,q=3;else N[++q]++;o.foundPatternCross(N)&&!0===this.handlePossibleCenter(N,$,v,s)&&(M=N[0],this.hasSkipped&&(O=this.haveMultiplyConfirmedCenters()))}var vt=this.selectBestPatterns();return $n.orderBestPatterns(vt),new xr(vt)},o.centerFromEnd=function(t,i){return i-t[4]-t[3]-t[2]/2},o.foundPatternCross=function(t){for(var i=0,s=0;s<5;s++){var c=t[s];if(0===c)return!1;i+=c}if(i<7)return!1;var h=i/7,v=h/2;return Math.abs(h-t[0])=v&&i>=v&&M.get(i-v,t-v);)h[2]++,v++;if(t=v&&i>=v&&!M.get(i-v,t-v)&&h[1]<=s;)h[1]++,v++;if(ts)return!1;for(;t>=v&&i>=v&&M.get(i-v,t-v)&&h[0]<=s;)h[0]++,v++;if(h[0]>s)return!1;var O=M.getHeight(),N=M.getWidth();for(v=1;t+v=O||i+v>=N)return!1;for(;t+v=O||i+v>=N||h[3]>=s)return!1;for(;t+v=s)&&Math.abs(h[0]+h[1]+h[2]+h[3]+h[4]-c)<2*c&&o.foundPatternCross(h)},o.prototype.crossCheckVertical=function(t,i,s,c){for(var h=this.image,v=h.getHeight(),M=this.getCrossCheckStateCount(),O=t;O>=0&&h.get(i,O);)M[2]++,O--;if(O<0)return NaN;for(;O>=0&&!h.get(i,O)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&h.get(i,O)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;O=s)return NaN;for(;O=s||5*Math.abs(M[0]+M[1]+M[2]+M[3]+M[4]-c)>=2*c?NaN:o.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.crossCheckHorizontal=function(t,i,s,c){for(var h=this.image,v=h.getWidth(),M=this.getCrossCheckStateCount(),O=t;O>=0&&h.get(O,i);)M[2]++,O--;if(O<0)return NaN;for(;O>=0&&!h.get(O,i)&&M[1]<=s;)M[1]++,O--;if(O<0||M[1]>s)return NaN;for(;O>=0&&h.get(O,i)&&M[0]<=s;)M[0]++,O--;if(M[0]>s)return NaN;for(O=t+1;O=s)return NaN;for(;O=s||5*Math.abs(M[0]+M[1]+M[2]+M[3]+M[4]-c)>=c?NaN:o.foundPatternCross(M)?o.centerFromEnd(M,O):NaN},o.prototype.handlePossibleCenter=function(t,i,s,c){var h=t[0]+t[1]+t[2]+t[3]+t[4],v=o.centerFromEnd(t,s),M=this.crossCheckVertical(i,Math.floor(v),t[2],h);if(!isNaN(M)&&(v=this.crossCheckHorizontal(Math.floor(v),Math.floor(M),t[2],h),!isNaN(v)&&(!c||this.crossCheckDiagonal(Math.floor(M),Math.floor(v),t[2],h)))){for(var O=h/7,N=!1,$=this.possibleCenters,q=0,de=$.length;q=o.CENTER_QUORUM){if(null!=c)return this.hasSkipped=!0,Math.floor((Math.abs(c.getX()-M.getX())-Math.abs(c.getY()-M.getY()))/2);c=M}}}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return 0},o.prototype.haveMultiplyConfirmedCenters=function(){var t,i,s,c,h=0,v=0,M=this.possibleCenters.length;try{for(var O=dc(this.possibleCenters),N=O.next();!N.done;N=O.next())($=N.value).getCount()>=o.CENTER_QUORUM&&(h++,v+=$.getEstimatedModuleSize())}catch(vt){t={error:vt}}finally{try{N&&!N.done&&(i=O.return)&&i.call(O)}finally{if(t)throw t.error}}if(h<3)return!1;var q=v/M,de=0;try{for(var we=dc(this.possibleCenters),et=we.next();!et.done;et=we.next()){var $=et.value;de+=Math.abs($.getEstimatedModuleSize()-q)}}catch(vt){s={error:vt}}finally{try{et&&!et.done&&(c=we.return)&&c.call(we)}finally{if(s)throw s.error}}return de<=.05*v},o.prototype.selectBestPatterns=function(){var t,i,s,c,h=this.possibleCenters.length;if(h<3)throw new Se;var M,v=this.possibleCenters;if(h>3){var O=0,N=0;try{for(var $=dc(this.possibleCenters),q=$.next();!q.done;q=$.next()){var we=q.value.getEstimatedModuleSize();O+=we,N+=we*we}}catch(Nn){t={error:Nn}}finally{try{q&&!q.done&&(i=$.return)&&i.call($)}finally{if(t)throw t.error}}M=O/h;var et=Math.sqrt(N/h-M*M);v.sort(function(Nn,Zn){var Kn=Math.abs(Zn.getEstimatedModuleSize()-M),fi=Math.abs(Nn.getEstimatedModuleSize()-M);return Knfi?1:0});for(var vt=Math.max(.2*M,et),zt=0;zt3;zt++)Math.abs(v[zt].getEstimatedModuleSize()-M)>vt&&(v.splice(zt,1),zt--)}if(v.length>3){O=0;try{for(var Gt=dc(v),an=Gt.next();!an.done;an=Gt.next())O+=an.value.getEstimatedModuleSize()}catch(Zn){s={error:Zn}}finally{try{an&&!an.done&&(c=Gt.return)&&c.call(Gt)}finally{if(s)throw s.error}}M=O/v.length,v.sort(function(Zn,Kn){if(Kn.getCount()===Zn.getCount()){var fi=Math.abs(Kn.getEstimatedModuleSize()-M),Gi=Math.abs(Zn.getEstimatedModuleSize()-M);return fiGi?-1:0}return Kn.getCount()-Zn.getCount()}),v.splice(3)}return[v[0],v[1],v[2]]},o.CENTER_QUORUM=2,o.MIN_SKIP=3,o.MAX_MODULES=57,o}();const sd=Ec;var uc=function(){function o(t){this.image=t}return o.prototype.getImage=function(){return this.image},o.prototype.getResultPointCallback=function(){return this.resultPointCallback},o.prototype.detect=function(t){this.resultPointCallback=null==t?null:t.get(he.NEED_RESULT_POINT_CALLBACK);var s=new sd(this.image,this.resultPointCallback).find(t);return this.processFinderPatternInfo(s)},o.prototype.processFinderPatternInfo=function(t){var i=t.getTopLeft(),s=t.getTopRight(),c=t.getBottomLeft(),h=this.calculateModuleSize(i,s,c);if(h<1)throw new Se("No pattern found in proccess finder.");var v=o.computeDimension(i,s,c,h),M=Ls.getProvisionalVersionForDimension(v),O=M.getDimensionForVersion()-7,N=null;if(M.getAlignmentPatternCenters().length>0)for(var $=s.getX()-i.getX()+c.getX(),q=s.getY()-i.getY()+c.getY(),de=1-3/O,we=Math.floor(i.getX()+de*($-i.getX())),et=Math.floor(i.getY()+de*(q-i.getY())),vt=4;vt<=16;vt<<=1)try{N=this.findAlignmentInRegion(h,we,et,vt);break}catch(an){if(!(an instanceof Se))throw an}var zt=o.createTransform(i,s,c,N,v),$t=o.sampleGrid(this.image,zt,v);return new Fr($t,null===N?[c,i,s]:[c,i,s,N])},o.createTransform=function(t,i,s,c,h){var M,O,N,$,v=h-3.5;return null!==c?(M=c.getX(),O=c.getY(),$=N=v-3):(M=i.getX()-t.getX()+s.getX(),O=i.getY()-t.getY()+s.getY(),N=v,$=v),Ws.quadrilateralToQuadrilateral(3.5,3.5,v,3.5,N,$,3.5,v,t.getX(),t.getY(),i.getX(),i.getY(),M,O,s.getX(),s.getY())},o.sampleGrid=function(t,i,s){return ga.getInstance().sampleGridWithTransform(t,s,s,i)},o.computeDimension=function(t,i,s,c){var h=_i.round($n.distance(t,i)/c),v=_i.round($n.distance(t,s)/c),M=Math.floor((h+v)/2)+7;switch(3&M){case 0:M++;break;case 2:M--;break;case 3:throw new Se("Dimensions could be not found.")}return M},o.prototype.calculateModuleSize=function(t,i,s){return(this.calculateModuleSizeOneWay(t,i)+this.calculateModuleSizeOneWay(t,s))/2},o.prototype.calculateModuleSizeOneWay=function(t,i){var s=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(t.getX()),Math.floor(t.getY()),Math.floor(i.getX()),Math.floor(i.getY())),c=this.sizeOfBlackWhiteBlackRunBothWays(Math.floor(i.getX()),Math.floor(i.getY()),Math.floor(t.getX()),Math.floor(t.getY()));return isNaN(s)?c/7:isNaN(c)?s/7:(s+c)/14},o.prototype.sizeOfBlackWhiteBlackRunBothWays=function(t,i,s,c){var h=this.sizeOfBlackWhiteBlackRun(t,i,s,c),v=1,M=t-(s-t);M<0?(v=t/(t-M),M=0):M>=this.image.getWidth()&&(v=(this.image.getWidth()-1-t)/(M-t),M=this.image.getWidth()-1);var O=Math.floor(i-(c-i)*v);return v=1,O<0?(v=i/(i-O),O=0):O>=this.image.getHeight()&&(v=(this.image.getHeight()-1-i)/(O-i),O=this.image.getHeight()-1),M=Math.floor(t+(M-t)*v),(h+=this.sizeOfBlackWhiteBlackRun(t,i,M,O))-1},o.prototype.sizeOfBlackWhiteBlackRun=function(t,i,s,c){var h=Math.abs(c-i)>Math.abs(s-t);if(h){var v=t;t=i,i=v,v=s,s=c,c=v}for(var M=Math.abs(s-t),O=Math.abs(c-i),N=-M/2,$=t0){if(vt===c)break;vt+=q,N-=M}}return 2===de?_i.distance(s+$,c,t,i):NaN},o.prototype.findAlignmentInRegion=function(t,i,s,c){var h=Math.floor(c*t),v=Math.max(0,i-h),M=Math.min(this.image.getWidth()-1,i+h);if(M-v<3*t)throw new Se("Alignment top exceeds estimated module size.");var O=Math.max(0,s-h),N=Math.min(this.image.getHeight()-1,s+h);if(N-O<3*t)throw new Se("Alignment bottom exceeds estimated module size.");return new Ja(this.image,v,O,M-v,N-O,t,this.resultPointCallback).find()},o}();const hc=uc;var Qa=function(){function o(){this.decoder=new Gr}return o.prototype.getDecoder=function(){return this.decoder},o.prototype.decode=function(t,i){var s,c;if(null!=i&&void 0!==i.get(he.PURE_BARCODE)){var h=o.extractPureBits(t.getBlackMatrix());s=this.decoder.decodeBitMatrix(h,i),c=o.NO_POINTS}else{var v=new hc(t.getBlackMatrix()).detect(i);s=this.decoder.decodeBitMatrix(v.getBits(),i),c=v.getPoints()}s.getOther()instanceof hn&&s.getOther().applyMirroredCorrection(c);var M=new We(s.getText(),s.getRawBytes(),void 0,c,be.QR_CODE,void 0),O=s.getByteSegments();null!==O&&M.putMetadata(He.BYTE_SEGMENTS,O);var N=s.getECLevel();return null!==N&&M.putMetadata(He.ERROR_CORRECTION_LEVEL,N),s.hasStructuredAppend()&&(M.putMetadata(He.STRUCTURED_APPEND_SEQUENCE,s.getStructuredAppendSequenceNumber()),M.putMetadata(He.STRUCTURED_APPEND_PARITY,s.getStructuredAppendParity())),M},o.prototype.reset=function(){},o.extractPureBits=function(t){var i=t.getTopLeftOnBit(),s=t.getBottomRightOnBit();if(null===i||null===s)throw new Se;var c=this.moduleSize(i,t),h=i[1],v=s[1],M=i[0],O=s[0];if(M>=O||h>=v)throw new Se;if(v-h!=O-M&&(O=M+(v-h))>=t.getWidth())throw new Se;var N=Math.round((O-M+1)/c),$=Math.round((v-h+1)/c);if(N<=0||$<=0)throw new Se;if($!==N)throw new Se;var q=Math.floor(c/2);h+=q;var de=(M+=q)+Math.floor((N-1)*c)-O;if(de>0){if(de>q)throw new Se;M-=de}var we=h+Math.floor(($-1)*c)-v;if(we>0){if(we>q)throw new Se;h-=we}for(var et=new ae(N,$),vt=0;vt<$;vt++)for(var zt=h+Math.floor(vt*c),$t=0;$t=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),M=v.next();!M.done;M=v.next())c[h++]=M.value}catch(N){i={error:N}}finally{try{M&&!M.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return c},o.getCodeword=function(t){var i=at.binarySearch(o.SYMBOL_TABLE,262143&t);return i<0?-1:(o.CODEWORD_TABLE[i]-1)%o.NUMBER_OF_CODEWORDS},o.MAX_CODEWORDS_IN_BARCODE=(o.NUMBER_OF_CODEWORDS=929)-1,o.MIN_ROWS_IN_BARCODE=3,o.MAX_ROWS_IN_BARCODE=90,o.MODULES_IN_CODEWORD=17,o.MODULES_IN_STOP_PATTERN=18,o.BARS_IN_MODULE=8,o.EMPTY_INT_ARRAY=new Int32Array([]),o.SYMBOL_TABLE=Int32Array.from([66142,66170,66206,66236,66290,66292,66350,66382,66396,66454,66470,66476,66594,66600,66614,66626,66628,66632,66640,66654,66662,66668,66682,66690,66718,66720,66748,66758,66776,66798,66802,66804,66820,66824,66832,66846,66848,66876,66880,66936,66950,66956,66968,66992,67006,67022,67036,67042,67044,67048,67062,67118,67150,67164,67214,67228,67256,67294,67322,67350,67366,67372,67398,67404,67416,67438,67474,67476,67490,67492,67496,67510,67618,67624,67650,67656,67664,67678,67686,67692,67706,67714,67716,67728,67742,67744,67772,67782,67788,67800,67822,67826,67828,67842,67848,67870,67872,67900,67904,67960,67974,67992,68016,68030,68046,68060,68066,68068,68072,68086,68104,68112,68126,68128,68156,68160,68216,68336,68358,68364,68376,68400,68414,68448,68476,68494,68508,68536,68546,68548,68552,68560,68574,68582,68588,68654,68686,68700,68706,68708,68712,68726,68750,68764,68792,68802,68804,68808,68816,68830,68838,68844,68858,68878,68892,68920,68976,68990,68994,68996,69e3,69008,69022,69024,69052,69062,69068,69080,69102,69106,69108,69142,69158,69164,69190,69208,69230,69254,69260,69272,69296,69310,69326,69340,69386,69394,69396,69410,69416,69430,69442,69444,69448,69456,69470,69478,69484,69554,69556,69666,69672,69698,69704,69712,69726,69754,69762,69764,69776,69790,69792,69820,69830,69836,69848,69870,69874,69876,69890,69918,69920,69948,69952,70008,70022,70040,70064,70078,70094,70108,70114,70116,70120,70134,70152,70174,70176,70264,70384,70412,70448,70462,70496,70524,70542,70556,70584,70594,70600,70608,70622,70630,70636,70664,70672,70686,70688,70716,70720,70776,70896,71136,71180,71192,71216,71230,71264,71292,71360,71416,71452,71480,71536,71550,71554,71556,71560,71568,71582,71584,71612,71622,71628,71640,71662,71726,71732,71758,71772,71778,71780,71784,71798,71822,71836,71864,71874,71880,71888,71902,71910,71916,71930,71950,71964,71992,72048,72062,72066,72068,72080,72094,72096,72124,72134,72140,72152,72174,72178,72180,72206,72220,72248,72304,72318,72416,72444,72456,72464,72478,72480,72508,72512,72568,72588,72600,72624,72638,72654,72668,72674,72676,72680,72694,72726,72742,72748,72774,72780,72792,72814,72838,72856,72880,72894,72910,72924,72930,72932,72936,72950,72966,72972,72984,73008,73022,73056,73084,73102,73116,73144,73156,73160,73168,73182,73190,73196,73210,73226,73234,73236,73250,73252,73256,73270,73282,73284,73296,73310,73318,73324,73346,73348,73352,73360,73374,73376,73404,73414,73420,73432,73454,73498,73518,73522,73524,73550,73564,73570,73572,73576,73590,73800,73822,73858,73860,73872,73886,73888,73916,73944,73970,73972,73992,74014,74016,74044,74048,74104,74118,74136,74160,74174,74210,74212,74216,74230,74244,74256,74270,74272,74360,74480,74502,74508,74544,74558,74592,74620,74638,74652,74680,74690,74696,74704,74726,74732,74782,74784,74812,74992,75232,75288,75326,75360,75388,75456,75512,75576,75632,75646,75650,75652,75664,75678,75680,75708,75718,75724,75736,75758,75808,75836,75840,75896,76016,76256,76736,76824,76848,76862,76896,76924,76992,77048,77296,77340,77368,77424,77438,77536,77564,77572,77576,77584,77600,77628,77632,77688,77702,77708,77720,77744,77758,77774,77788,77870,77902,77916,77922,77928,77966,77980,78008,78018,78024,78032,78046,78060,78074,78094,78136,78192,78206,78210,78212,78224,78238,78240,78268,78278,78284,78296,78322,78324,78350,78364,78448,78462,78560,78588,78600,78622,78624,78652,78656,78712,78726,78744,78768,78782,78798,78812,78818,78820,78824,78838,78862,78876,78904,78960,78974,79072,79100,79296,79352,79368,79376,79390,79392,79420,79424,79480,79600,79628,79640,79664,79678,79712,79740,79772,79800,79810,79812,79816,79824,79838,79846,79852,79894,79910,79916,79942,79948,79960,79982,79988,80006,80024,80048,80062,80078,80092,80098,80100,80104,80134,80140,80176,80190,80224,80252,80270,80284,80312,80328,80336,80350,80358,80364,80378,80390,80396,80408,80432,80446,80480,80508,80576,80632,80654,80668,80696,80752,80766,80776,80784,80798,80800,80828,80844,80856,80878,80882,80884,80914,80916,80930,80932,80936,80950,80962,80968,80976,80990,80998,81004,81026,81028,81040,81054,81056,81084,81094,81100,81112,81134,81154,81156,81160,81168,81182,81184,81212,81216,81272,81286,81292,81304,81328,81342,81358,81372,81380,81384,81398,81434,81454,81458,81460,81486,81500,81506,81508,81512,81526,81550,81564,81592,81602,81604,81608,81616,81630,81638,81644,81702,81708,81722,81734,81740,81752,81774,81778,81780,82050,82078,82080,82108,82180,82184,82192,82206,82208,82236,82240,82296,82316,82328,82352,82366,82402,82404,82408,82440,82448,82462,82464,82492,82496,82552,82672,82694,82700,82712,82736,82750,82784,82812,82830,82882,82884,82888,82896,82918,82924,82952,82960,82974,82976,83004,83008,83064,83184,83424,83468,83480,83504,83518,83552,83580,83648,83704,83740,83768,83824,83838,83842,83844,83848,83856,83872,83900,83910,83916,83928,83950,83984,84e3,84028,84032,84088,84208,84448,84928,85040,85054,85088,85116,85184,85240,85488,85560,85616,85630,85728,85756,85764,85768,85776,85790,85792,85820,85824,85880,85894,85900,85912,85936,85966,85980,86048,86080,86136,86256,86496,86976,88160,88188,88256,88312,88560,89056,89200,89214,89312,89340,89536,89592,89608,89616,89632,89664,89720,89840,89868,89880,89904,89952,89980,89998,90012,90040,90190,90204,90254,90268,90296,90306,90308,90312,90334,90382,90396,90424,90480,90494,90500,90504,90512,90526,90528,90556,90566,90572,90584,90610,90612,90638,90652,90680,90736,90750,90848,90876,90884,90888,90896,90910,90912,90940,90944,91e3,91014,91020,91032,91056,91070,91086,91100,91106,91108,91112,91126,91150,91164,91192,91248,91262,91360,91388,91584,91640,91664,91678,91680,91708,91712,91768,91888,91928,91952,91966,92e3,92028,92046,92060,92088,92098,92100,92104,92112,92126,92134,92140,92188,92216,92272,92384,92412,92608,92664,93168,93200,93214,93216,93244,93248,93304,93424,93664,93720,93744,93758,93792,93820,93888,93944,93980,94008,94064,94078,94084,94088,94096,94110,94112,94140,94150,94156,94168,94246,94252,94278,94284,94296,94318,94342,94348,94360,94384,94398,94414,94428,94440,94470,94476,94488,94512,94526,94560,94588,94606,94620,94648,94658,94660,94664,94672,94686,94694,94700,94714,94726,94732,94744,94768,94782,94816,94844,94912,94968,94990,95004,95032,95088,95102,95112,95120,95134,95136,95164,95180,95192,95214,95218,95220,95244,95256,95280,95294,95328,95356,95424,95480,95728,95758,95772,95800,95856,95870,95968,95996,96008,96016,96030,96032,96060,96064,96120,96152,96176,96190,96220,96226,96228,96232,96290,96292,96296,96310,96322,96324,96328,96336,96350,96358,96364,96386,96388,96392,96400,96414,96416,96444,96454,96460,96472,96494,96498,96500,96514,96516,96520,96528,96542,96544,96572,96576,96632,96646,96652,96664,96688,96702,96718,96732,96738,96740,96744,96758,96772,96776,96784,96798,96800,96828,96832,96888,97008,97030,97036,97048,97072,97086,97120,97148,97166,97180,97208,97220,97224,97232,97246,97254,97260,97326,97330,97332,97358,97372,97378,97380,97384,97398,97422,97436,97464,97474,97476,97480,97488,97502,97510,97516,97550,97564,97592,97648,97666,97668,97672,97680,97694,97696,97724,97734,97740,97752,97774,97830,97836,97850,97862,97868,97880,97902,97906,97908,97926,97932,97944,97968,97998,98012,98018,98020,98024,98038,98618,98674,98676,98838,98854,98874,98892,98904,98926,98930,98932,98968,99006,99042,99044,99048,99062,99166,99194,99246,99286,99350,99366,99372,99386,99398,99416,99438,99442,99444,99462,99504,99518,99534,99548,99554,99556,99560,99574,99590,99596,99608,99632,99646,99680,99708,99726,99740,99768,99778,99780,99784,99792,99806,99814,99820,99834,99858,99860,99874,99880,99894,99906,99920,99934,99962,99970,99972,99976,99984,99998,1e5,100028,100038,100044,100056,100078,100082,100084,100142,100174,100188,100246,100262,100268,100306,100308,100390,100396,100410,100422,100428,100440,100462,100466,100468,100486,100504,100528,100542,100558,100572,100578,100580,100584,100598,100620,100656,100670,100704,100732,100750,100792,100802,100808,100816,100830,100838,100844,100858,100888,100912,100926,100960,100988,101056,101112,101148,101176,101232,101246,101250,101252,101256,101264,101278,101280,101308,101318,101324,101336,101358,101362,101364,101410,101412,101416,101430,101442,101448,101456,101470,101478,101498,101506,101508,101520,101534,101536,101564,101580,101618,101620,101636,101640,101648,101662,101664,101692,101696,101752,101766,101784,101838,101858,101860,101864,101934,101938,101940,101966,101980,101986,101988,101992,102030,102044,102072,102082,102084,102088,102096,102138,102166,102182,102188,102214,102220,102232,102254,102282,102290,102292,102306,102308,102312,102326,102444,102458,102470,102476,102488,102514,102516,102534,102552,102576,102590,102606,102620,102626,102632,102646,102662,102668,102704,102718,102752,102780,102798,102812,102840,102850,102856,102864,102878,102886,102892,102906,102936,102974,103008,103036,103104,103160,103224,103280,103294,103298,103300,103312,103326,103328,103356,103366,103372,103384,103406,103410,103412,103472,103486,103520,103548,103616,103672,103920,103992,104048,104062,104160,104188,104194,104196,104200,104208,104224,104252,104256,104312,104326,104332,104344,104368,104382,104398,104412,104418,104420,104424,104482,104484,104514,104520,104528,104542,104550,104570,104578,104580,104592,104606,104608,104636,104652,104690,104692,104706,104712,104734,104736,104764,104768,104824,104838,104856,104910,104930,104932,104936,104968,104976,104990,104992,105020,105024,105080,105200,105240,105278,105312,105372,105410,105412,105416,105424,105446,105518,105524,105550,105564,105570,105572,105576,105614,105628,105656,105666,105672,105680,105702,105722,105742,105756,105784,105840,105854,105858,105860,105864,105872,105888,105932,105970,105972,106006,106022,106028,106054,106060,106072,106100,106118,106124,106136,106160,106174,106190,106210,106212,106216,106250,106258,106260,106274,106276,106280,106306,106308,106312,106320,106334,106348,106394,106414,106418,106420,106566,106572,106610,106612,106630,106636,106648,106672,106686,106722,106724,106728,106742,106758,106764,106776,106800,106814,106848,106876,106894,106908,106936,106946,106948,106952,106960,106974,106982,106988,107032,107056,107070,107104,107132,107200,107256,107292,107320,107376,107390,107394,107396,107400,107408,107422,107424,107452,107462,107468,107480,107502,107506,107508,107544,107568,107582,107616,107644,107712,107768,108016,108060,108088,108144,108158,108256,108284,108290,108292,108296,108304,108318,108320,108348,108352,108408,108422,108428,108440,108464,108478,108494,108508,108514,108516,108520,108592,108640,108668,108736,108792,109040,109536,109680,109694,109792,109820,110016,110072,110084,110088,110096,110112,110140,110144,110200,110320,110342,110348,110360,110384,110398,110432,110460,110478,110492,110520,110532,110536,110544,110558,110658,110686,110714,110722,110724,110728,110736,110750,110752,110780,110796,110834,110836,110850,110852,110856,110864,110878,110880,110908,110912,110968,110982,111e3,111054,111074,111076,111080,111108,111112,111120,111134,111136,111164,111168,111224,111344,111372,111422,111456,111516,111554,111556,111560,111568,111590,111632,111646,111648,111676,111680,111736,111856,112096,112152,112224,112252,112320,112440,112514,112516,112520,112528,112542,112544,112588,112686,112718,112732,112782,112796,112824,112834,112836,112840,112848,112870,112890,112910,112924,112952,113008,113022,113026,113028,113032,113040,113054,113056,113100,113138,113140,113166,113180,113208,113264,113278,113376,113404,113416,113424,113440,113468,113472,113560,113614,113634,113636,113640,113686,113702,113708,113734,113740,113752,113778,113780,113798,113804,113816,113840,113854,113870,113890,113892,113896,113926,113932,113944,113968,113982,114016,114044,114076,114114,114116,114120,114128,114150,114170,114194,114196,114210,114212,114216,114242,114244,114248,114256,114270,114278,114306,114308,114312,114320,114334,114336,114364,114380,114420,114458,114478,114482,114484,114510,114524,114530,114532,114536,114842,114866,114868,114970,114994,114996,115042,115044,115048,115062,115130,115226,115250,115252,115278,115292,115298,115300,115304,115318,115342,115394,115396,115400,115408,115422,115430,115436,115450,115478,115494,115514,115526,115532,115570,115572,115738,115758,115762,115764,115790,115804,115810,115812,115816,115830,115854,115868,115896,115906,115912,115920,115934,115942,115948,115962,115996,116024,116080,116094,116098,116100,116104,116112,116126,116128,116156,116166,116172,116184,116206,116210,116212,116246,116262,116268,116282,116294,116300,116312,116334,116338,116340,116358,116364,116376,116400,116414,116430,116444,116450,116452,116456,116498,116500,116514,116520,116534,116546,116548,116552,116560,116574,116582,116588,116602,116654,116694,116714,116762,116782,116786,116788,116814,116828,116834,116836,116840,116854,116878,116892,116920,116930,116936,116944,116958,116966,116972,116986,117006,117048,117104,117118,117122,117124,117136,117150,117152,117180,117190,117196,117208,117230,117234,117236,117304,117360,117374,117472,117500,117506,117508,117512,117520,117536,117564,117568,117624,117638,117644,117656,117680,117694,117710,117724,117730,117732,117736,117750,117782,117798,117804,117818,117830,117848,117874,117876,117894,117936,117950,117966,117986,117988,117992,118022,118028,118040,118064,118078,118112,118140,118172,118210,118212,118216,118224,118238,118246,118266,118306,118312,118338,118352,118366,118374,118394,118402,118404,118408,118416,118430,118432,118460,118476,118514,118516,118574,118578,118580,118606,118620,118626,118628,118632,118678,118694,118700,118730,118738,118740,118830,118834,118836,118862,118876,118882,118884,118888,118902,118926,118940,118968,118978,118980,118984,118992,119006,119014,119020,119034,119068,119096,119152,119166,119170,119172,119176,119184,119198,119200,119228,119238,119244,119256,119278,119282,119284,119324,119352,119408,119422,119520,119548,119554,119556,119560,119568,119582,119584,119612,119616,119672,119686,119692,119704,119728,119742,119758,119772,119778,119780,119784,119798,119920,119934,120032,120060,120256,120312,120324,120328,120336,120352,120384,120440,120560,120582,120588,120600,120624,120638,120672,120700,120718,120732,120760,120770,120772,120776,120784,120798,120806,120812,120870,120876,120890,120902,120908,120920,120946,120948,120966,120972,120984,121008,121022,121038,121058,121060,121064,121078,121100,121112,121136,121150,121184,121212,121244,121282,121284,121288,121296,121318,121338,121356,121368,121392,121406,121440,121468,121536,121592,121656,121730,121732,121736,121744,121758,121760,121804,121842,121844,121890,121922,121924,121928,121936,121950,121958,121978,121986,121988,121992,122e3,122014,122016,122044,122060,122098,122100,122116,122120,122128,122142,122144,122172,122176,122232,122246,122264,122318,122338,122340,122344,122414,122418,122420,122446,122460,122466,122468,122472,122510,122524,122552,122562,122564,122568,122576,122598,122618,122646,122662,122668,122694,122700,122712,122738,122740,122762,122770,122772,122786,122788,122792,123018,123026,123028,123042,123044,123048,123062,123098,123146,123154,123156,123170,123172,123176,123190,123202,123204,123208,123216,123238,123244,123258,123290,123314,123316,123402,123410,123412,123426,123428,123432,123446,123458,123464,123472,123486,123494,123500,123514,123522,123524,123528,123536,123552,123580,123590,123596,123608,123630,123634,123636,123674,123698,123700,123740,123746,123748,123752,123834,123914,123922,123924,123938,123944,123958,123970,123976,123984,123998,124006,124012,124026,124034,124036,124048,124062,124064,124092,124102,124108,124120,124142,124146,124148,124162,124164,124168,124176,124190,124192,124220,124224,124280,124294,124300,124312,124336,124350,124366,124380,124386,124388,124392,124406,124442,124462,124466,124468,124494,124508,124514,124520,124558,124572,124600,124610,124612,124616,124624,124646,124666,124694,124710,124716,124730,124742,124748,124760,124786,124788,124818,124820,124834,124836,124840,124854,124946,124948,124962,124964,124968,124982,124994,124996,125e3,125008,125022,125030,125036,125050,125058,125060,125064,125072,125086,125088,125116,125126,125132,125144,125166,125170,125172,125186,125188,125192,125200,125216,125244,125248,125304,125318,125324,125336,125360,125374,125390,125404,125410,125412,125416,125430,125444,125448,125456,125472,125504,125560,125680,125702,125708,125720,125744,125758,125792,125820,125838,125852,125880,125890,125892,125896,125904,125918,125926,125932,125978,125998,126002,126004,126030,126044,126050,126052,126056,126094,126108,126136,126146,126148,126152,126160,126182,126202,126222,126236,126264,126320,126334,126338,126340,126344,126352,126366,126368,126412,126450,126452,126486,126502,126508,126522,126534,126540,126552,126574,126578,126580,126598,126604,126616,126640,126654,126670,126684,126690,126692,126696,126738,126754,126756,126760,126774,126786,126788,126792,126800,126814,126822,126828,126842,126894,126898,126900,126934,127126,127142,127148,127162,127178,127186,127188,127254,127270,127276,127290,127302,127308,127320,127342,127346,127348,127370,127378,127380,127394,127396,127400,127450,127510,127526,127532,127546,127558,127576,127598,127602,127604,127622,127628,127640,127664,127678,127694,127708,127714,127716,127720,127734,127754,127762,127764,127778,127784,127810,127812,127816,127824,127838,127846,127866,127898,127918,127922,127924,128022,128038,128044,128058,128070,128076,128088,128110,128114,128116,128134,128140,128152,128176,128190,128206,128220,128226,128228,128232,128246,128262,128268,128280,128304,128318,128352,128380,128398,128412,128440,128450,128452,128456,128464,128478,128486,128492,128506,128522,128530,128532,128546,128548,128552,128566,128578,128580,128584,128592,128606,128614,128634,128642,128644,128648,128656,128670,128672,128700,128716,128754,128756,128794,128814,128818,128820,128846,128860,128866,128868,128872,128886,128918,128934,128940,128954,128978,128980,129178,129198,129202,129204,129238,129258,129306,129326,129330,129332,129358,129372,129378,129380,129384,129398,129430,129446,129452,129466,129482,129490,129492,129562,129582,129586,129588,129614,129628,129634,129636,129640,129654,129678,129692,129720,129730,129732,129736,129744,129758,129766,129772,129814,129830,129836,129850,129862,129868,129880,129902,129906,129908,129930,129938,129940,129954,129956,129960,129974,130010]),o.CODEWORD_TABLE=Int32Array.from([2627,1819,2622,2621,1813,1812,2729,2724,2723,2779,2774,2773,902,896,908,868,865,861,859,2511,873,871,1780,835,2493,825,2491,842,837,844,1764,1762,811,810,809,2483,807,2482,806,2480,815,814,813,812,2484,817,816,1745,1744,1742,1746,2655,2637,2635,2626,2625,2623,2628,1820,2752,2739,2737,2728,2727,2725,2730,2785,2783,2778,2777,2775,2780,787,781,747,739,736,2413,754,752,1719,692,689,681,2371,678,2369,700,697,694,703,1688,1686,642,638,2343,631,2341,627,2338,651,646,643,2345,654,652,1652,1650,1647,1654,601,599,2322,596,2321,594,2319,2317,611,610,608,606,2324,603,2323,615,614,612,1617,1616,1614,1612,616,1619,1618,2575,2538,2536,905,901,898,909,2509,2507,2504,870,867,864,860,2512,875,872,1781,2490,2489,2487,2485,1748,836,834,832,830,2494,827,2492,843,841,839,845,1765,1763,2701,2676,2674,2653,2648,2656,2634,2633,2631,2629,1821,2638,2636,2770,2763,2761,2750,2745,2753,2736,2735,2733,2731,1848,2740,2738,2786,2784,591,588,576,569,566,2296,1590,537,534,526,2276,522,2274,545,542,539,548,1572,1570,481,2245,466,2242,462,2239,492,485,482,2249,496,494,1534,1531,1528,1538,413,2196,406,2191,2188,425,419,2202,415,2199,432,430,427,1472,1467,1464,433,1476,1474,368,367,2160,365,2159,362,2157,2155,2152,378,377,375,2166,372,2165,369,2162,383,381,379,2168,1419,1418,1416,1414,385,1411,384,1423,1422,1420,1424,2461,802,2441,2439,790,786,783,794,2409,2406,2403,750,742,738,2414,756,753,1720,2367,2365,2362,2359,1663,693,691,684,2373,680,2370,702,699,696,704,1690,1687,2337,2336,2334,2332,1624,2329,1622,640,637,2344,634,2342,630,2340,650,648,645,2346,655,653,1653,1651,1649,1655,2612,2597,2595,2571,2568,2565,2576,2534,2529,2526,1787,2540,2537,907,904,900,910,2503,2502,2500,2498,1768,2495,1767,2510,2508,2506,869,866,863,2513,876,874,1782,2720,2713,2711,2697,2694,2691,2702,2672,2670,2664,1828,2678,2675,2647,2646,2644,2642,1823,2639,1822,2654,2652,2650,2657,2771,1855,2765,2762,1850,1849,2751,2749,2747,2754,353,2148,344,342,336,2142,332,2140,345,1375,1373,306,2130,299,2128,295,2125,319,314,311,2132,1354,1352,1349,1356,262,257,2101,253,2096,2093,274,273,267,2107,263,2104,280,278,275,1316,1311,1308,1320,1318,2052,202,2050,2044,2040,219,2063,212,2060,208,2055,224,221,2066,1260,1258,1252,231,1248,229,1266,1264,1261,1268,155,1998,153,1996,1994,1991,1988,165,164,2007,162,2006,159,2003,2e3,172,171,169,2012,166,2010,1186,1184,1182,1179,175,1176,173,1192,1191,1189,1187,176,1194,1193,2313,2307,2305,592,589,2294,2292,2289,578,572,568,2297,580,1591,2272,2267,2264,1547,538,536,529,2278,525,2275,547,544,541,1574,1571,2237,2235,2229,1493,2225,1489,478,2247,470,2244,465,2241,493,488,484,2250,498,495,1536,1533,1530,1539,2187,2186,2184,2182,1432,2179,1430,2176,1427,414,412,2197,409,2195,405,2193,2190,426,424,421,2203,418,2201,431,429,1473,1471,1469,1466,434,1477,1475,2478,2472,2470,2459,2457,2454,2462,803,2437,2432,2429,1726,2443,2440,792,789,785,2401,2399,2393,1702,2389,1699,2411,2408,2405,745,741,2415,758,755,1721,2358,2357,2355,2353,1661,2350,1660,2347,1657,2368,2366,2364,2361,1666,690,687,2374,683,2372,701,698,705,1691,1689,2619,2617,2610,2608,2605,2613,2593,2588,2585,1803,2599,2596,2563,2561,2555,1797,2551,1795,2573,2570,2567,2577,2525,2524,2522,2520,1786,2517,1785,2514,1783,2535,2533,2531,2528,1788,2541,2539,906,903,911,2721,1844,2715,2712,1838,1836,2699,2696,2693,2703,1827,1826,1824,2673,2671,2669,2666,1829,2679,2677,1858,1857,2772,1854,1853,1851,1856,2766,2764,143,1987,139,1986,135,133,131,1984,128,1983,125,1981,138,137,136,1985,1133,1132,1130,112,110,1974,107,1973,104,1971,1969,122,121,119,117,1977,114,1976,124,1115,1114,1112,1110,1117,1116,84,83,1953,81,1952,78,1950,1948,1945,94,93,91,1959,88,1958,85,1955,99,97,95,1961,1086,1085,1083,1081,1078,100,1090,1089,1087,1091,49,47,1917,44,1915,1913,1910,1907,59,1926,56,1925,53,1922,1919,66,64,1931,61,1929,1042,1040,1038,71,1035,70,1032,68,1048,1047,1045,1043,1050,1049,12,10,1869,1867,1864,1861,21,1880,19,1877,1874,1871,28,1888,25,1886,22,1883,982,980,977,974,32,30,991,989,987,984,34,995,994,992,2151,2150,2147,2146,2144,356,355,354,2149,2139,2138,2136,2134,1359,343,341,338,2143,335,2141,348,347,346,1376,1374,2124,2123,2121,2119,1326,2116,1324,310,308,305,2131,302,2129,298,2127,320,318,316,313,2133,322,321,1355,1353,1351,1357,2092,2091,2089,2087,1276,2084,1274,2081,1271,259,2102,256,2100,252,2098,2095,272,269,2108,266,2106,281,279,277,1317,1315,1313,1310,282,1321,1319,2039,2037,2035,2032,1203,2029,1200,1197,207,2053,205,2051,201,2049,2046,2043,220,218,2064,215,2062,211,2059,228,226,223,2069,1259,1257,1254,232,1251,230,1267,1265,1263,2316,2315,2312,2311,2309,2314,2304,2303,2301,2299,1593,2308,2306,590,2288,2287,2285,2283,1578,2280,1577,2295,2293,2291,579,577,574,571,2298,582,581,1592,2263,2262,2260,2258,1545,2255,1544,2252,1541,2273,2271,2269,2266,1550,535,532,2279,528,2277,546,543,549,1575,1573,2224,2222,2220,1486,2217,1485,2214,1482,1479,2238,2236,2234,2231,1496,2228,1492,480,477,2248,473,2246,469,2243,490,487,2251,497,1537,1535,1532,2477,2476,2474,2479,2469,2468,2466,2464,1730,2473,2471,2453,2452,2450,2448,1729,2445,1728,2460,2458,2456,2463,805,804,2428,2427,2425,2423,1725,2420,1724,2417,1722,2438,2436,2434,2431,1727,2444,2442,793,791,788,795,2388,2386,2384,1697,2381,1696,2378,1694,1692,2402,2400,2398,2395,1703,2392,1701,2412,2410,2407,751,748,744,2416,759,757,1807,2620,2618,1806,1805,2611,2609,2607,2614,1802,1801,1799,2594,2592,2590,2587,1804,2600,2598,1794,1793,1791,1789,2564,2562,2560,2557,1798,2554,1796,2574,2572,2569,2578,1847,1846,2722,1843,1842,1840,1845,2716,2714,1835,1834,1832,1830,1839,1837,2700,2698,2695,2704,1817,1811,1810,897,862,1777,829,826,838,1760,1758,808,2481,1741,1740,1738,1743,2624,1818,2726,2776,782,740,737,1715,686,679,695,1682,1680,639,628,2339,647,644,1645,1643,1640,1648,602,600,597,595,2320,593,2318,609,607,604,1611,1610,1608,1606,613,1615,1613,2328,926,924,892,886,899,857,850,2505,1778,824,823,821,819,2488,818,2486,833,831,828,840,1761,1759,2649,2632,2630,2746,2734,2732,2782,2781,570,567,1587,531,527,523,540,1566,1564,476,467,463,2240,486,483,1524,1521,1518,1529,411,403,2192,399,2189,423,416,1462,1457,1454,428,1468,1465,2210,366,363,2158,360,2156,357,2153,376,373,370,2163,1410,1409,1407,1405,382,1402,380,1417,1415,1412,1421,2175,2174,777,774,771,784,732,725,722,2404,743,1716,676,674,668,2363,665,2360,685,1684,1681,626,624,622,2335,620,2333,617,2330,641,635,649,1646,1644,1642,2566,928,925,2530,2527,894,891,888,2501,2499,2496,858,856,854,851,1779,2692,2668,2665,2645,2643,2640,2651,2768,2759,2757,2744,2743,2741,2748,352,1382,340,337,333,1371,1369,307,300,296,2126,315,312,1347,1342,1350,261,258,250,2097,246,2094,271,268,264,1306,1301,1298,276,1312,1309,2115,203,2048,195,2045,191,2041,213,209,2056,1246,1244,1238,225,1234,222,1256,1253,1249,1262,2080,2079,154,1997,150,1995,147,1992,1989,163,160,2004,156,2001,1175,1174,1172,1170,1167,170,1164,167,1185,1183,1180,1177,174,1190,1188,2025,2024,2022,587,586,564,559,556,2290,573,1588,520,518,512,2268,508,2265,530,1568,1565,461,457,2233,450,2230,446,2226,479,471,489,1526,1523,1520,397,395,2185,392,2183,389,2180,2177,410,2194,402,422,1463,1461,1459,1456,1470,2455,799,2433,2430,779,776,773,2397,2394,2390,734,728,724,746,1717,2356,2354,2351,2348,1658,677,675,673,670,667,688,1685,1683,2606,2589,2586,2559,2556,2552,927,2523,2521,2518,2515,1784,2532,895,893,890,2718,2709,2707,2689,2687,2684,2663,2662,2660,2658,1825,2667,2769,1852,2760,2758,142,141,1139,1138,134,132,129,126,1982,1129,1128,1126,1131,113,111,108,105,1972,101,1970,120,118,115,1109,1108,1106,1104,123,1113,1111,82,79,1951,75,1949,72,1946,92,89,86,1956,1077,1076,1074,1072,98,1069,96,1084,1082,1079,1088,1968,1967,48,45,1916,42,1914,39,1911,1908,60,57,54,1923,50,1920,1031,1030,1028,1026,67,1023,65,1020,62,1041,1039,1036,1033,69,1046,1044,1944,1943,1941,11,9,1868,7,1865,1862,1859,20,1878,16,1875,13,1872,970,968,966,963,29,960,26,23,983,981,978,975,33,971,31,990,988,985,1906,1904,1902,993,351,2145,1383,331,330,328,326,2137,323,2135,339,1372,1370,294,293,291,289,2122,286,2120,283,2117,309,303,317,1348,1346,1344,245,244,242,2090,239,2088,236,2085,2082,260,2099,249,270,1307,1305,1303,1300,1314,189,2038,186,2036,183,2033,2030,2026,206,198,2047,194,216,1247,1245,1243,1240,227,1237,1255,2310,2302,2300,2286,2284,2281,565,563,561,558,575,1589,2261,2259,2256,2253,1542,521,519,517,514,2270,511,533,1569,1567,2223,2221,2218,2215,1483,2211,1480,459,456,453,2232,449,474,491,1527,1525,1522,2475,2467,2465,2451,2449,2446,801,800,2426,2424,2421,2418,1723,2435,780,778,775,2387,2385,2382,2379,1695,2375,1693,2396,735,733,730,727,749,1718,2616,2615,2604,2603,2601,2584,2583,2581,2579,1800,2591,2550,2549,2547,2545,1792,2542,1790,2558,929,2719,1841,2710,2708,1833,1831,2690,2688,2686,1815,1809,1808,1774,1756,1754,1737,1736,1734,1739,1816,1711,1676,1674,633,629,1638,1636,1633,1641,598,1605,1604,1602,1600,605,1609,1607,2327,887,853,1775,822,820,1757,1755,1584,524,1560,1558,468,464,1514,1511,1508,1519,408,404,400,1452,1447,1444,417,1458,1455,2208,364,361,358,2154,1401,1400,1398,1396,374,1393,371,1408,1406,1403,1413,2173,2172,772,726,723,1712,672,669,666,682,1678,1675,625,623,621,618,2331,636,632,1639,1637,1635,920,918,884,880,889,849,848,847,846,2497,855,852,1776,2641,2742,2787,1380,334,1367,1365,301,297,1340,1338,1335,1343,255,251,247,1296,1291,1288,265,1302,1299,2113,204,196,192,2042,1232,1230,1224,214,1220,210,1242,1239,1235,1250,2077,2075,151,148,1993,144,1990,1163,1162,1160,1158,1155,161,1152,157,1173,1171,1168,1165,168,1181,1178,2021,2020,2018,2023,585,560,557,1585,516,509,1562,1559,458,447,2227,472,1516,1513,1510,398,396,393,390,2181,386,2178,407,1453,1451,1449,1446,420,1460,2209,769,764,720,712,2391,729,1713,664,663,661,659,2352,656,2349,671,1679,1677,2553,922,919,2519,2516,885,883,881,2685,2661,2659,2767,2756,2755,140,1137,1136,130,127,1125,1124,1122,1127,109,106,102,1103,1102,1100,1098,116,1107,1105,1980,80,76,73,1947,1068,1067,1065,1063,90,1060,87,1075,1073,1070,1080,1966,1965,46,43,40,1912,36,1909,1019,1018,1016,1014,58,1011,55,1008,51,1029,1027,1024,1021,63,1037,1034,1940,1939,1937,1942,8,1866,4,1863,1,1860,956,954,952,949,946,17,14,969,967,964,961,27,957,24,979,976,972,1901,1900,1898,1896,986,1905,1903,350,349,1381,329,327,324,1368,1366,292,290,287,284,2118,304,1341,1339,1337,1345,243,240,237,2086,233,2083,254,1297,1295,1293,1290,1304,2114,190,187,184,2034,180,2031,177,2027,199,1233,1231,1229,1226,217,1223,1241,2078,2076,584,555,554,552,550,2282,562,1586,507,506,504,502,2257,499,2254,515,1563,1561,445,443,441,2219,438,2216,435,2212,460,454,475,1517,1515,1512,2447,798,797,2422,2419,770,768,766,2383,2380,2376,721,719,717,714,731,1714,2602,2582,2580,2548,2546,2543,923,921,2717,2706,2705,2683,2682,2680,1771,1752,1750,1733,1732,1731,1735,1814,1707,1670,1668,1631,1629,1626,1634,1599,1598,1596,1594,1603,1601,2326,1772,1753,1751,1581,1554,1552,1504,1501,1498,1509,1442,1437,1434,401,1448,1445,2206,1392,1391,1389,1387,1384,359,1399,1397,1394,1404,2171,2170,1708,1672,1669,619,1632,1630,1628,1773,1378,1363,1361,1333,1328,1336,1286,1281,1278,248,1292,1289,2111,1218,1216,1210,197,1206,193,1228,1225,1221,1236,2073,2071,1151,1150,1148,1146,152,1143,149,1140,145,1161,1159,1156,1153,158,1169,1166,2017,2016,2014,2019,1582,510,1556,1553,452,448,1506,1500,394,391,387,1443,1441,1439,1436,1450,2207,765,716,713,1709,662,660,657,1673,1671,916,914,879,878,877,882,1135,1134,1121,1120,1118,1123,1097,1096,1094,1092,103,1101,1099,1979,1059,1058,1056,1054,77,1051,74,1066,1064,1061,1071,1964,1963,1007,1006,1004,1002,999,41,996,37,1017,1015,1012,1009,52,1025,1022,1936,1935,1933,1938,942,940,938,935,932,5,2,955,953,950,947,18,943,15,965,962,958,1895,1894,1892,1890,973,1899,1897,1379,325,1364,1362,288,285,1334,1332,1330,241,238,234,1287,1285,1283,1280,1294,2112,188,185,181,178,2028,1219,1217,1215,1212,200,1209,1227,2074,2072,583,553,551,1583,505,503,500,513,1557,1555,444,442,439,436,2213,455,451,1507,1505,1502,796,763,762,760,767,711,710,708,706,2377,718,715,1710,2544,917,915,2681,1627,1597,1595,2325,1769,1749,1747,1499,1438,1435,2204,1390,1388,1385,1395,2169,2167,1704,1665,1662,1625,1623,1620,1770,1329,1282,1279,2109,1214,1207,1222,2068,2065,1149,1147,1144,1141,146,1157,1154,2013,2011,2008,2015,1579,1549,1546,1495,1487,1433,1431,1428,1425,388,1440,2205,1705,658,1667,1664,1119,1095,1093,1978,1057,1055,1052,1062,1962,1960,1005,1003,1e3,997,38,1013,1010,1932,1930,1927,1934,941,939,936,933,6,930,3,951,948,944,1889,1887,1884,1881,959,1893,1891,35,1377,1360,1358,1327,1325,1322,1331,1277,1275,1272,1269,235,1284,2110,1205,1204,1201,1198,182,1195,179,1213,2070,2067,1580,501,1551,1548,440,437,1497,1494,1490,1503,761,709,707,1706,913,912,2198,1386,2164,2161,1621,1766,2103,1208,2058,2054,1145,1142,2005,2002,1999,2009,1488,1429,1426,2200,1698,1659,1656,1975,1053,1957,1954,1001,998,1924,1921,1918,1928,937,934,931,1879,1876,1873,1870,945,1885,1882,1323,1273,1270,2105,1202,1199,1196,1211,2061,2057,1576,1543,1540,1484,1481,1478,1491,1700]),o}();const Pi=ad;var Xa=function(){function o(t,i){this.bits=t,this.points=i}return o.prototype.getBits=function(){return this.bits},o.prototype.getPoints=function(){return this.points},o}();const ld=Xa;var Sc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Cd=function(){function o(){}return o.detectMultiple=function(t,i,s){var c=t.getBlackMatrix(),h=o.detect(s,c);return h.length||((c=c.clone()).rotate180(),h=o.detect(s,c)),new ld(c,h)},o.detect=function(t,i){for(var s,c,h=new Array,v=0,M=0,O=!1;v0;){if(null==(q=o.findGuardPattern(t,h,--c,s,!1,v,N))){c++;break}$=q}M[0]=new $n($[0],c),M[1]=new $n($[1],c),O=!0;break}var de=c+1;if(O){for(var we=0,q=Int32Array.from([Math.trunc(M[0].getX()),Math.trunc(M[1].getX())]);deo.SKIPPED_ROW_COUNT_MAX)break;we++}}M[2]=new $n(q[0],de-=we+1),M[3]=new $n(q[1],de)}return de-c0&&N++de?q-de:de-q;if(we>s)return 1/0;N+=we}return N/h},o.INDEXES_START_PATTERN=Int32Array.from([0,4,1,5]),o.INDEXES_STOP_PATTERN=Int32Array.from([6,2,7,3]),o.MAX_AVG_VARIANCE=.42,o.MAX_INDIVIDUAL_VARIANCE=.8,o.START_PATTERN=Int32Array.from([8,1,1,1,1,1,1,3]),o.STOP_PATTERN=Int32Array.from([7,1,1,3,1,1,1,2,1]),o.MAX_PIXEL_DRIFT=3,o.MAX_PATTERN_DRIFT=5,o.SKIPPED_ROW_COUNT_MAX=25,o.ROW_STEP=5,o.BARCODE_MIN_HEIGHT=10,o}();const el=Cd;var Yc=function(){function o(t,i){if(0===i.length)throw new Ge;this.field=t;var s=i.length;if(s>1&&0===i[0]){for(var c=1;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.coefficients),v=h.next();!v.done;v=h.next())c=this.field.add(c,v.value)}catch(q){i={error:q}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c}for(var O=this.coefficients[0],N=this.coefficients.length,$=1;$s.length){var c=i;i=s,s=c}var h=new Int32Array(s.length),v=s.length-i.length;Jt.arraycopy(s,0,h,0,v);for(var M=v;M=0;i--){var s=this.getCoefficient(i);0!==s&&(s<0?(t.append(" - "),s=-s):t.length()>0&&t.append(" + "),(0===i||1!==s)&&t.append(s),0!==i&&(1===i?t.append("x"):(t.append("x^"),t.append(i))))}return t.toString()},o}();const ca=Yc;var zd=function(){function o(){}return o.prototype.add=function(t,i){return(t+i)%this.modulus},o.prototype.subtract=function(t,i){return(this.modulus+t-i)%this.modulus},o.prototype.exp=function(t){return this.expTable[t]},o.prototype.log=function(t){if(0===t)throw new Ge;return this.logTable[t]},o.prototype.inverse=function(t){if(0===t)throw new st;return this.expTable[this.modulus-this.logTable[t]-1]},o.prototype.multiply=function(t,i){return 0===t||0===i?0:this.expTable[(this.logTable[t]+this.logTable[i])%(this.modulus-1)]},o.prototype.getSize=function(){return this.modulus},o.prototype.equals=function(t){return t===this},o}();const Dd=zd;var Lo=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Bc=function(o){function t(i,s){var c=o.call(this)||this;c.modulus=i,c.expTable=new Int32Array(i),c.logTable=new Int32Array(i);for(var h=1,v=0;v0;N--){var $=v.evaluateAt(this.field.exp(N));M[i-N]=$,0!==$&&(O=!0)}if(!O)return 0;var q=this.field.getOne();if(null!=s)try{for(var de=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s),we=de.next();!we.done;we=de.next()){var vt=this.field.exp(t.length-1-we.value),zt=new ca(this.field,new Int32Array([this.field.subtract(0,vt),1]));q=q.multiply(zt)}}catch(fi){c={error:fi}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}var $t=new ca(this.field,M),Gt=this.runEuclideanAlgorithm(this.field.buildMonomial(i,1),$t,i),an=Gt[0],bn=Gt[1],Nn=this.findErrorLocations(an),Zn=this.findErrorMagnitudes(bn,an,Nn);for(N=0;N=Math.round(s/2);){var N=h,$=M;if(M=O,(h=v).isZero())throw St.getChecksumInstance();v=N;for(var q=this.field.getZero(),de=h.getCoefficient(h.getDegree()),we=this.field.inverse(de);v.getDegree()>=h.getDegree()&&!v.isZero();){var et=v.getDegree()-h.getDegree(),vt=this.field.multiply(v.getCoefficient(v.getDegree()),we);q=q.add(this.field.buildMonomial(et,vt)),v=v.subtract(h.multiplyByMonomial(et,vt))}O=q.multiply(M).subtract($).negative()}var zt=O.getCoefficient(0);if(0===zt)throw St.getChecksumInstance();var $t=this.field.inverse(zt);return[O.multiply($t),v.multiply($t)]},o.prototype.findErrorLocations=function(t){for(var i=t.getDegree(),s=new Int32Array(i),c=0,h=1;h0){var O=s?this.topLeft:this.topRight,N=Math.trunc(O.getY()-t);N<0&&(N=0);var $=new $n(O.getX(),N);s?c=$:v=$}if(i>0){var q=s?this.bottomLeft:this.bottomRight,de=Math.trunc(q.getY()+i);de>=this.image.getHeight()&&(de=this.image.getHeight()-1);var we=new $n(q.getX(),de);s?h=we:M=we}return new o(this.image,c,h,v,M)},o.prototype.getMinX=function(){return this.minX},o.prototype.getMaxX=function(){return this.maxX},o.prototype.getMinY=function(){return this.minY},o.prototype.getMaxY=function(){return this.maxY},o.prototype.getTopLeft=function(){return this.topLeft},o.prototype.getTopRight=function(){return this.topRight},o.prototype.getBottomLeft=function(){return this.bottomLeft},o.prototype.getBottomRight=function(){return this.bottomRight},o}();const kl=wc;var Ql=function(){function o(t,i,s,c){this.columnCount=t,this.errorCorrectionLevel=c,this.rowCountUpperPart=i,this.rowCountLowerPart=s,this.rowCount=i+s}return o.prototype.getColumnCount=function(){return this.columnCount},o.prototype.getErrorCorrectionLevel=function(){return this.errorCorrectionLevel},o.prototype.getRowCount=function(){return this.rowCount},o.prototype.getRowCountUpperPart=function(){return this.rowCountUpperPart},o.prototype.getRowCountLowerPart=function(){return this.rowCountLowerPart},o}();const Ac=Ql;var Hc=function(){function o(){this.buffer=""}return o.form=function(t,i){var s=-1;return t.replace(/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g,function c(v,M,O,N,$,q){if("%%"===v)return"%";if(void 0!==i[++s]){v=N?parseInt(N.substr(1)):void 0;var we,de=$?parseInt($.substr(1)):void 0;switch(q){case"s":we=i[s];break;case"c":we=i[s][0];break;case"f":we=parseFloat(i[s]).toFixed(v);break;case"p":we=parseFloat(i[s]).toPrecision(v);break;case"e":we=parseFloat(i[s]).toExponential(v);break;case"x":we=parseInt(i[s]).toString(de||16);break;case"d":we=parseFloat(parseInt(i[s],de||10).toPrecision(v)).toFixed(0)}we="object"==typeof we?JSON.stringify(we):(+we).toString(de);for(var et=parseInt(O),vt=O&&O[0]+""=="0"?"0":" ";we.length=0&&null!=(i=this.codewords[c])||(c=this.imageRowToCodewordIndex(t)+s)=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.codewords),v=h.next();!v.done;v=h.next()){var M=v.value;null!=M?s.format("%3d: %3d|%3d%n",c++,M.getRowNumber(),M.getValue()):s.format("%3d: | %n",c++)}}catch(O){t={error:O}}finally{try{v&&!v.done&&(i=h.return)&&i.call(h)}finally{if(t)throw t.error}}return s.toString()},o.MAX_NEARBY_DISTANCE=5,o}();const fc=cd;var Po=function(o,t){var i="function"==typeof Symbol&&o[Symbol.iterator];if(!i)return o;var c,v,s=i.call(o),h=[];try{for(;(void 0===t||t-- >0)&&!(c=s.next()).done;)h.push(c.value)}catch(M){v={error:M}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(v)throw v.error}}return h},da=function(){function o(){this.values=new Map}return o.prototype.setValue=function(t){t=Math.trunc(t);var i=this.values.get(t);null==i&&(i=0),i++,this.values.set(t,i)},o.prototype.getValue=function(){var t,i,s=-1,c=new Array,h=function(q,de){var we_getKey=function(){return q},we_getValue=function(){return de};we_getValue()>s?(s=we_getValue(),(c=[]).push(we_getKey())):we_getValue()===s&&c.push(we_getKey())};try{for(var v=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.values.entries()),M=v.next();!M.done;M=v.next()){var O=Po(M.value,2);h(O[0],O[1])}}catch(q){t={error:q}}finally{try{M&&!M.done&&(i=v.return)&&i.call(v)}finally{if(t)throw t.error}}return Pi.toIntArray(c)},o.prototype.getConfidence=function(t){return this.values.get(t)},o}();const Ll=da;var as=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),pc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ir=function(o){function t(i,s){var c=o.call(this,i)||this;return c._isLeft=s,c}return as(t,o),t.prototype.setRowNumbers=function(){var i,s;try{for(var c=pc(this.getCodewords()),h=c.next();!h.done;h=c.next()){var v=h.value;v?.setRowNumberAsRowIndicatorColumn()}}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},t.prototype.adjustCompleteIndicatorColumnRowNumbers=function(i){var s=this.getCodewords();this.setRowNumbers(),this.removeIncorrectCodewords(s,i);for(var c=this.getBoundingBox(),h=this._isLeft?c.getTopLeft():c.getTopRight(),v=this._isLeft?c.getBottomLeft():c.getBottomRight(),M=this.imageRowToCodewordIndex(Math.trunc(h.getY())),O=this.imageRowToCodewordIndex(Math.trunc(v.getY())),N=-1,$=1,q=0,de=M;de=i.getRowCount()||et>de)s[de]=null;else{for(var vt,zt=(vt=$>2?($-2)*et:et)>=de,$t=1;$t<=vt&&!zt;$t++)zt=null!=s[de-$t];zt?s[de]=null:(N=we.getRowNumber(),q=1)}}},t.prototype.getRowHeights=function(){var i,s,c=this.getBarcodeMetadata();if(null==c)return null;this.adjustIncompleteIndicatorColumnRowNumbers(c);var h=new Int32Array(c.getRowCount());try{for(var v=pc(this.getCodewords()),M=v.next();!M.done;M=v.next()){var O=M.value;if(null!=O){var N=O.getRowNumber();if(N>=h.length)continue;h[N]++}}}catch($){i={error:$}}finally{try{M&&!M.done&&(s=v.return)&&s.call(v)}finally{if(i)throw i.error}}return h},t.prototype.adjustIncompleteIndicatorColumnRowNumbers=function(i){for(var s=this.getBoundingBox(),c=this._isLeft?s.getTopLeft():s.getTopRight(),h=this._isLeft?s.getBottomLeft():s.getBottomRight(),v=this.imageRowToCodewordIndex(Math.trunc(c.getY())),M=this.imageRowToCodewordIndex(Math.trunc(h.getY())),O=this.getCodewords(),N=-1,$=1,q=0,de=v;de=i.getRowCount()?O[de]=null:(N=we.getRowNumber(),q=1)}},t.prototype.getBarcodeMetadata=function(){var i,s,c=this.getCodewords(),h=new Ll,v=new Ll,M=new Ll,O=new Ll;try{for(var N=pc(c),$=N.next();!$.done;$=N.next()){var q=$.value;if(null!=q){q.setRowNumberAsRowIndicatorColumn();var de=q.getValue()%30,we=q.getRowNumber();switch(this._isLeft||(we+=2),we%3){case 0:v.setValue(3*de+1);break;case 1:O.setValue(de/3),M.setValue(de%3);break;case 2:h.setValue(de+1)}}}}catch(vt){i={error:vt}}finally{try{$&&!$.done&&(s=N.return)&&s.call(N)}finally{if(i)throw i.error}}if(0===h.getValue().length||0===v.getValue().length||0===M.getValue().length||0===O.getValue().length||h.getValue()[0]<1||v.getValue()[0]+M.getValue()[0]Pi.MAX_ROWS_IN_BARCODE)return null;var et=new Ac(h.getValue()[0],v.getValue()[0],M.getValue()[0],O.getValue()[0]);return this.removeIncorrectCodewords(c,et),et},t.prototype.removeIncorrectCodewords=function(i,s){for(var c=0;cs.getRowCount()){i[c]=null;continue}switch(this._isLeft||(M+=2),M%3){case 0:3*v+1!==s.getRowCountUpperPart()&&(i[c]=null);break;case 1:(Math.trunc(v/3)!==s.getErrorCorrectionLevel()||v%3!==s.getRowCountLowerPart())&&(i[c]=null);break;case 2:v+1!==s.getColumnCount()&&(i[c]=null)}}}},t.prototype.isLeft=function(){return this._isLeft},t.prototype.toString=function(){return"IsLeft: "+this._isLeft+"\n"+o.prototype.toString.call(this)},t}(fc);const k=ir;var pe=function(){function o(t,i){this.ADJUST_ROW_NUMBER_SKIP=2,this.barcodeMetadata=t,this.barcodeColumnCount=t.getColumnCount(),this.boundingBox=i,this.detectionResultColumns=new Array(this.barcodeColumnCount+2)}return o.prototype.getDetectionResultColumns=function(){this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[0]),this.adjustIndicatorColumnRowNumbers(this.detectionResultColumns[this.barcodeColumnCount+1]);var i,t=Pi.MAX_CODEWORDS_IN_BARCODE;do{i=t,t=this.adjustRowNumbersAndGetCount()}while(t>0&&t0&&h0&&(N[0]=s[i-1],N[4]=M[i-1],N[5]=O[i-1]),i>1&&(N[8]=s[i-2],N[10]=M[i-2],N[11]=O[i-2]),i=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(N),q=$.next();!q.done;q=$.next())if(o.adjustRowNumber(v,q.value))return}catch(we){c={error:we}}finally{try{q&&!q.done&&(h=$.return)&&h.call($)}finally{if(c)throw c.error}}}},o.adjustRowNumber=function(t,i){return!(null==i||!i.hasValidRowNumber()||i.getBucket()!==t.getBucket()||(t.setRowNumber(i.getRowNumber()),0))},o.prototype.getBarcodeColumnCount=function(){return this.barcodeColumnCount},o.prototype.getBarcodeRowCount=function(){return this.barcodeMetadata.getRowCount()},o.prototype.getBarcodeECLevel=function(){return this.barcodeMetadata.getErrorCorrectionLevel()},o.prototype.setBoundingBox=function(t){this.boundingBox=t},o.prototype.getBoundingBox=function(){return this.boundingBox},o.prototype.setDetectionResultColumn=function(t,i){this.detectionResultColumns[t]=i},o.prototype.getDetectionResultColumn=function(t){return this.detectionResultColumns[t]},o.prototype.toString=function(){var t=this.detectionResultColumns[0];null==t&&(t=this.detectionResultColumns[this.barcodeColumnCount+1]);for(var i=new Eo,s=0;s>=1;s=1&i,o.RATIOS_TABLE[t]||(o.RATIOS_TABLE[t]=new Array(Pi.BARS_IN_MODULE)),o.RATIOS_TABLE[t][Pi.BARS_IN_MODULE-c-1]=Math.fround(h/Pi.MODULES_IN_CODEWORD)}this.bSymbolTableReady=!0},o.getDecodedValue=function(t){var i=o.getDecodedCodewordValue(o.sampleBitCounts(t));return-1!==i?i:o.getClosestDecodedValue(t)},o.sampleBitCounts=function(t){for(var i=_i.sum(t),s=new Int32Array(Pi.BARS_IN_MODULE),c=0,h=0,v=0;v1)for(var c=0;c=h)break}Ot.length||s<0||i+s>t.length||i+s<0)throw new Ln;if(0!==s)for(var c=0;c0&&this.grow(i)},t.prototype.grow=function(i){var c=this.buf.length<<1;if(c-i<0&&(c=i),c<0){if(i<0)throw new Ad;c=Ee.MAX_VALUE}this.buf=at.copyOfUint8Array(this.buf,c)},t.prototype.write=function(i){this.ensureCapacity(this.count+1),this.buf[this.count]=i,this.count+=1},t.prototype.writeBytesOffset=function(i,s,c){if(s<0||s>i.length||c<0||s+c-i.length>0)throw new Ln;this.ensureCapacity(this.count+c),Jt.arraycopy(i,s,this.buf,this.count,c),this.count+=c},t.prototype.writeTo=function(i){i.writeBytesOffset(this.buf,0,this.count)},t.prototype.reset=function(){this.count=0},t.prototype.toByteArray=function(){return at.copyOfUint8Array(this.buf,this.count)},t.prototype.size=function(){return this.count},t.prototype.toString=function(i){return i?"string"==typeof i?this.toString_string(i):this.toString_number(i):this.toString_void()},t.prototype.toString_void=function(){return new String(this.buf).toString()},t.prototype.toString_string=function(i){return new String(this.buf).toString()},t.prototype.toString_number=function(i){return new String(this.buf).toString()},t.prototype.close=function(){},t}(_c);const ua=Pl;var zo,Or=function(o){return o[o.ALPHA=0]="ALPHA",o[o.LOWER=1]="LOWER",o[o.MIXED=2]="MIXED",o[o.PUNCT=3]="PUNCT",o[o.ALPHA_SHIFT=4]="ALPHA_SHIFT",o[o.PUNCT_SHIFT=5]="PUNCT_SHIFT",o}(Or||{});function Vc(){if(typeof window<"u")return window.BigInt||null;if(typeof global<"u")return global.BigInt||null;if(typeof self<"u")return self.BigInt||null;throw new Error("Can't search globals for BigInt!")}function zi(o){if(typeof zo>"u"&&(zo=Vc()),null===zo)throw new Error("BigInt is not supported!");return zo(o)}var La=function(){function o(){}return o.decode=function(t,i){var s=new Ce(""),c=Dn.ISO8859_1;s.enableDecoding(c);for(var h=1,v=t[h++],M=new Hr;ht[0])throw bt.getFormatInstance();for(var c=new Int32Array(o.NUMBER_OF_SEQUENCE_CODEWORDS),h=0;h0){for(var de=0;de<6;++de)v.write(Number(zi(O)>>zi(8*(5-de))));O=0,M=0}}c===i[0]&&q0){for(de=0;de<6;++de)v.write(Number(zi(O)>>zi(8*(5-de))));O=0,M=0}}}return h.append(Wn.decode(v.toByteArray(),s)),c},o.numericCompaction=function(t,i,s){for(var c=0,h=!1,v=new Int32Array(o.MAX_NUMERIC_CODEWORDS);i0&&(s.append(o.decodeBase900toBase10(v,c)),c=0)}return i},o.decodeBase900toBase10=function(t,i){for(var s=zi(0),c=0;c@[\\]_`~!\r\t,:\n-.$/\"|*()?{}'",o.MIXED_CHARS="0123456789&\r\t,:#-.$/+%*=^",o.EXP900=Vc()?function Nl(){var o=[];o[0]=zi(1);var t=zi(900);o[1]=t;for(var i=2;i<16;i++)o[i]=o[i-1]*t;return o}():[],o.NUMBER_OF_SEQUENCE_CODEWORDS=2,o}();const $d=La;var mc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jc=function(){function o(){}return o.decode=function(t,i,s,c,h,v,M){for(var q,O=new kl(t,i,s,c,h),N=null,$=null,de=!0;;de=!1){if(null!=i&&(N=o.getRowIndicatorColumn(t,O,i,!0,v,M)),null!=c&&($=o.getRowIndicatorColumn(t,O,c,!1,v,M)),null==(q=o.merge(N,$)))throw Se.getNotFoundInstance();var we=q.getBoundingBox();if(!de||null==we||!(we.getMinY()O.getMaxY()))break;O=we}q.setBoundingBox(O);var et=q.getBarcodeColumnCount()+1;q.setDetectionResultColumn(0,N),q.setDetectionResultColumn(et,$);for(var vt=null!=N,zt=1;zt<=et;zt++){var $t=vt?zt:et-zt;if(void 0===q.getDetectionResultColumn($t)){var Gt=void 0;Gt=0===$t||$t===et?new k(O,0===$t):new fc(O),q.setDetectionResultColumn($t,Gt);for(var an=-1,bn=an,Nn=O.getMinY();Nn<=O.getMaxY();Nn++){if((an=o.getStartColumn(q,$t,Nn,vt))<0||an>O.getMaxX()){if(-1===bn)continue;an=bn}var Zn=o.detectCodeword(t,O.getMinX(),O.getMaxX(),vt,an,Nn,v,M);null!=Zn&&(Gt.setCodeword(Nn,Zn),bn=an,v=Math.min(v,Zn.getWidth()),M=Math.max(M,Zn.getWidth()))}}}return o.createDecoderResult(q)},o.merge=function(t,i){if(null==t&&null==i)return null;var s=o.getBarcodeMetadata(t,i);if(null==s)return null;var c=kl.merge(o.adjustBoundingBox(t),o.adjustBoundingBox(i));return new ke(s,c)},o.adjustBoundingBox=function(t){var i,s;if(null==t)return null;var c=t.getRowHeights();if(null==c)return null;var h=o.getMax(c),v=0;try{for(var M=mc(c),O=M.next();!O.done;O=M.next()){var N=O.value;if(v+=h-N,N>0)break}}catch(we){i={error:we}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}for(var $=t.getCodewords(),q=0;v>0&&null==$[q];q++)v--;var de=0;for(q=c.length-1;q>=0&&(de+=h-c[q],!(c[q]>0));q--);for(q=$.length-1;de>0&&null==$[q];q--)de--;return t.getBoundingBox().addMissingRows(v,de,t.isLeft())},o.getMax=function(t){var i,s,c=-1;try{for(var h=mc(t),v=h.next();!v.done;v=h.next())c=Math.max(c,v.value)}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return c},o.getBarcodeMetadata=function(t,i){var s,c;return null==t||null==(s=t.getBarcodeMetadata())?null==i?null:i.getBarcodeMetadata():null==i||null==(c=i.getBarcodeMetadata())?s:s.getColumnCount()!==c.getColumnCount()&&s.getErrorCorrectionLevel()!==c.getErrorCorrectionLevel()&&s.getRowCount()!==c.getRowCount()?null:s},o.getRowIndicatorColumn=function(t,i,s,c,h,v){for(var M=new k(i,c),O=0;O<2;O++)for(var N=0===O?1:-1,$=Math.trunc(Math.trunc(s.getX())),q=Math.trunc(Math.trunc(s.getY()));q<=i.getMaxY()&&q>=i.getMinY();q+=N){var de=o.detectCodeword(t,0,t.getWidth(),c,$,q,h,v);null!=de&&(M.setCodeword(q,de),$=c?de.getStartX():de.getEndX())}return M},o.adjustCodewordCount=function(t,i){var s=i[0][1],c=s.getValue(),h=t.getBarcodeColumnCount()*t.getBarcodeRowCount()-o.getNumberOfECCodeWords(t.getBarcodeECLevel());if(0===c.length){if(h<1||h>Pi.MAX_CODEWORDS_IN_BARCODE)throw Se.getNotFoundInstance();s.setValue(h)}else c[0]!==h&&s.setValue(h)},o.createDecoderResult=function(t){var i=o.createBarcodeMatrix(t);o.adjustCodewordCount(t,i);for(var s=new Array,c=new Int32Array(t.getBarcodeRowCount()*t.getBarcodeColumnCount()),h=[],v=new Array,M=0;M0;){for(var O=0;O=0){if(zt>=v.length)continue;v[zt][N].setValue(vt.getValue())}}}}catch($t){c={error:$t}}finally{try{et&&!et.done&&(h=we.return)&&h.call(we)}finally{if(c)throw c.error}}N++}}catch($t){i={error:$t}}finally{try{q&&!q.done&&(s=$.return)&&s.call($)}finally{if(i)throw i.error}}return v},o.isValidBarcodeColumn=function(t,i){return i>=0&&i<=t.getBarcodeColumnCount()+1},o.getStartColumn=function(t,i,s,c){var h,v,M=c?1:-1,O=null;if(o.isValidBarcodeColumn(t,i-M)&&(O=t.getDetectionResultColumn(i-M).getCodeword(s)),null!=O)return c?O.getEndX():O.getStartX();if(null!=(O=t.getDetectionResultColumn(i).getCodewordNearby(s)))return c?O.getStartX():O.getEndX();if(o.isValidBarcodeColumn(t,i-M)&&(O=t.getDetectionResultColumn(i-M).getCodewordNearby(s)),null!=O)return c?O.getEndX():O.getStartX();for(var N=0;o.isValidBarcodeColumn(t,i-M);){i-=M;try{for(var $=(h=void 0,mc(t.getDetectionResultColumn(i).getCodewords())),q=$.next();!q.done;q=$.next()){var de=q.value;if(null!=de)return(c?de.getEndX():de.getStartX())+M*N*(de.getEndX()-de.getStartX())}}catch(we){h={error:we}}finally{try{q&&!q.done&&(v=$.return)&&v.call($)}finally{if(h)throw h.error}}N++}return c?t.getBoundingBox().getMinX():t.getBoundingBox().getMaxX()},o.detectCodeword=function(t,i,s,c,h,v,M,O){h=o.adjustCodewordStartColumn(t,i,s,c,h,v);var N=o.getModuleBitCount(t,i,s,c,h,v);if(null==N)return null;var $,q=_i.sum(N);if(c)$=h+q;else{for(var de=0;de=i)&&N=i:Mo.CODEWORD_SKEW_SIZE)return h;M+=O}O=-O,c=!c}return M},o.checkCodewordSkew=function(t,i,s){return i-o.CODEWORD_SKEW_SIZE<=t&&t<=s+o.CODEWORD_SKEW_SIZE},o.decodeCodewords=function(t,i,s){if(0===t.length)throw bt.getFormatInstance();var c=1<s/2+o.MAX_ERRORS||s<0||s>o.MAX_EC_CODEWORDS)throw St.getChecksumInstance();return o.errorCorrection.decode(t,s,i)},o.verifyCodewordCount=function(t,i){if(t.length<4)throw bt.getFormatInstance();var s=t[0];if(s>t.length)throw bt.getFormatInstance();if(0===s){if(!(i>=1;return i},o.getCodewordBucketNumber=function(t){return t instanceof Int32Array?this.getCodewordBucketNumber_Int32Array(t):this.getCodewordBucketNumber_number(t)},o.getCodewordBucketNumber_number=function(t){return o.getCodewordBucketNumber(o.getBitCountForCodeword(t))},o.getCodewordBucketNumber_Int32Array=function(t){return(t[0]-t[2]+t[4]-t[6]+9)%9},o.toString=function(t){for(var i=new Eo,s=0;s=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(M.getPoints()),N=O.next();!N.done;N=O.next()){var $=N.value,q=_l.decode(M.getBits(),$[4],$[5],$[6],$[7],o.getMinCodewordWidth($),o.getMaxCodewordWidth($)),de=new We(q.getText(),q.getRawBytes(),void 0,$,be.PDF_417);de.putMetadata(He.ERROR_CORRECTION_LEVEL,q.getECLevel());var we=q.getOther();null!=we&&de.putMetadata(He.PDF417_EXTRA_METADATA,we),v.push(de)}}catch(et){c={error:et}}finally{try{N&&!N.done&&(h=O.return)&&h.call(O)}finally{if(c)throw c.error}}return v.map(function(et){return et})},o.getMaxWidth=function(t,i){return null==t||null==i?0:Math.trunc(Math.abs(t.getX()-i.getX()))},o.getMinWidth=function(t,i){return null==t||null==i?Ee.MAX_VALUE:Math.trunc(Math.abs(t.getX()-i.getX()))},o.getMaxCodewordWidth=function(t){return Math.floor(Math.max(Math.max(o.getMaxWidth(t[0],t[4]),o.getMaxWidth(t[6],t[2])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN),Math.max(o.getMaxWidth(t[1],t[5]),o.getMaxWidth(t[7],t[3])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN)))},o.getMinCodewordWidth=function(t){return Math.floor(Math.min(Math.min(o.getMinWidth(t[0],t[4]),o.getMinWidth(t[6],t[2])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN),Math.min(o.getMinWidth(t[1],t[5]),o.getMinWidth(t[7],t[3])*Pi.MODULES_IN_CODEWORD/Pi.MODULES_IN_STOP_PATTERN)))},o.prototype.reset=function(){},o}();const Pa=nu;var ao=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Zc=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return ao(t,o),t.kind="ReaderException",t}(te);const Go=Zc;var Kd=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},zc=function(){function o(){}return o.prototype.decode=function(t,i){return this.setHints(i),this.decodeInternal(t)},o.prototype.decodeWithState=function(t){return null==this.readers&&this.setHints(null),this.decodeInternal(t)},o.prototype.setHints=function(t){this.hints=t;var i=null!=t&&void 0!==t.get(he.TRY_HARDER),s=null==t?null:t.get(he.POSSIBLE_FORMATS),c=new Array;if(null!=s){var h=s.some(function(v){return v===be.UPC_A||v===be.UPC_E||v===be.EAN_13||v===be.EAN_8||v===be.CODABAR||v===be.CODE_39||v===be.CODE_93||v===be.CODE_128||v===be.ITF||v===be.RSS_14||v===be.RSS_EXPANDED});h&&!i&&c.push(new yi(t)),s.includes(be.QR_CODE)&&c.push(new js),s.includes(be.DATA_MATRIX)&&c.push(new cc),s.includes(be.AZTEC)&&c.push(new Vo),s.includes(be.PDF_417)&&c.push(new Pa),h&&i&&c.push(new yi(t))}0===c.length&&(i||c.push(new yi(t)),c.push(new js),c.push(new cc),c.push(new Vo),c.push(new Pa),i&&c.push(new yi(t))),this.readers=c},o.prototype.reset=function(){var t,i;if(null!==this.readers)try{for(var s=Kd(this.readers),c=s.next();!c.done;c=s.next())c.value.reset()}catch(v){t={error:v}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}},o.prototype.decodeInternal=function(t){var i,s;if(null===this.readers)throw new Go("No readers where selected, nothing can be read.");try{for(var c=Kd(this.readers),h=c.next();!h.done;h=c.next()){var v=h.value;try{return v.decode(t,this.hints)}catch(M){if(M instanceof Go)continue}}}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}throw new Se("No MultiFormat Readers were able to detect the code.")},o}();const Jd=zc;var nl=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),qd=(function(o){function t(i,s){void 0===i&&(i=null),void 0===s&&(s=500);var h=new Jd;return h.setHints(i),o.call(this,h,s)||this}nl(t,o),t.prototype.decodeBitmap=function(i){return this.reader.decodeWithState(i)}}(Pe),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),Oc=(function(o){qd(function t(i){return void 0===i&&(i=500),o.call(this,new Pa,i)||this},o)}(Pe),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),iu=(function(o){Oc(function t(i){return void 0===i&&(i=500),o.call(this,new js,i)||this},o)}(Pe),function(o){return o[o.ERROR_CORRECTION=0]="ERROR_CORRECTION",o[o.CHARACTER_SET=1]="CHARACTER_SET",o[o.DATA_MATRIX_SHAPE=2]="DATA_MATRIX_SHAPE",o[o.DATA_MATRIX_COMPACT=3]="DATA_MATRIX_COMPACT",o[o.MIN_SIZE=4]="MIN_SIZE",o[o.MAX_SIZE=5]="MAX_SIZE",o[o.MARGIN=6]="MARGIN",o[o.PDF417_COMPACT=7]="PDF417_COMPACT",o[o.PDF417_COMPACTION=8]="PDF417_COMPACTION",o[o.PDF417_DIMENSIONS=9]="PDF417_DIMENSIONS",o[o.AZTEC_LAYERS=10]="AZTEC_LAYERS",o[o.QR_VERSION=11]="QR_VERSION",o[o.GS1_FORMAT=12]="GS1_FORMAT",o[o.FORCE_C40=13]="FORCE_C40",o}(iu||{}));const pi=iu;var Wc=function(){function o(t){this.field=t,this.cachedGenerators=[],this.cachedGenerators.push(new Mt(t,Int32Array.from([1])))}return o.prototype.buildGenerator=function(t){var i=this.cachedGenerators;if(t>=i.length)for(var s=i[i.length-1],c=this.field,h=i.length;h<=t;h++){var v=s.multiply(new Mt(c,Int32Array.from([1,c.exp(h-1+c.getGeneratorBase())])));i.push(v),s=v}return i[t]},o.prototype.encode=function(t,i){if(0===i)throw new Ge("No error correction bytes");var s=t.length-i;if(s<=0)throw new Ge("No data bytes provided");var c=this.buildGenerator(i),h=new Int32Array(s);Jt.arraycopy(t,0,h,0,s);for(var v=new Mt(this.field,h),O=(v=v.multiplyByMonomial(i,1)).divide(c)[1].getCoefficients(),N=i-O.length,$=0;$=5&&(s+=o.N1+(O-5)),O=1,N=q)}O>=5&&(s+=o.N1+(O-5))}return s},o.N1=3,o.N2=3,o.N3=40,o.N4=10,o}();const No=Mc;var Ye=function(){function o(t,i){this.width=t,this.height=i;for(var s=new Array(i),c=0;c!==i;c++)s[c]=new Uint8Array(t);this.bytes=s}return o.prototype.getHeight=function(){return this.height},o.prototype.getWidth=function(){return this.width},o.prototype.get=function(t,i){return this.bytes[i][t]},o.prototype.getArray=function(){return this.bytes},o.prototype.setNumber=function(t,i,s){this.bytes[i][t]=s},o.prototype.setBoolean=function(t,i,s){this.bytes[i][t]=s?1:0},o.prototype.clear=function(t){var i,s;try{for(var c=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(this.bytes),h=c.next();!h.done;h=c.next())at.fill(h.value,t)}catch(M){i={error:M}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}},o.prototype.equals=function(t){if(!(t instanceof o))return!1;var i=t;if(this.width!==i.width||this.height!==i.height)return!1;for(var s=0,c=this.height;s>\n"),t.toString()},o.prototype.setMode=function(t){this.mode=t},o.prototype.setECLevel=function(t){this.ecLevel=t},o.prototype.setVersion=function(t){this.version=t},o.prototype.setMaskPattern=function(t){this.maskPattern=t},o.prototype.setMatrix=function(t){this.matrix=t},o.isValidMaskPattern=function(t){return t>=0&&t0;){for(6===v&&(v-=1);M>=0&&M=s;)t^=i<=0)for(var O=0;O!==v;O++){var N=c[O];N>=0&&o.isEmpty(i.get(N,M))&&o.embedPositionAdjustmentPattern(N-2,M-2,i)}}},o.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),o.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),o.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),o.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),o.VERSION_INFO_POLY=7973,o.TYPE_INFO_POLY=1335,o.TYPE_INFO_MASK_PATTERN=21522,o}();const Ci=hi;var Hi=function(){function o(t,i){this.dataBytes=t,this.errorCorrectionBytes=i}return o.prototype.getDataBytes=function(){return this.dataBytes},o.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},o}();const Wr=Hi;var Ns=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Na=function(){function o(){}return o.calculateMaskPenalty=function(t){return No.applyMaskPenaltyRule1(t)+No.applyMaskPenaltyRule2(t)+No.applyMaskPenaltyRule3(t)+No.applyMaskPenaltyRule4(t)},o.encode=function(t,i,s){void 0===s&&(s=null);var c=o.DEFAULT_BYTE_MODE_ENCODING,h=null!==s&&void 0!==s.get(pi.CHARACTER_SET);h&&(c=s.get(pi.CHARACTER_SET).toString());var v=this.chooseMode(t,c),M=new me;if(v===xe.BYTE&&(h||o.DEFAULT_BYTE_MODE_ENCODING!==c)){var O=Dn.getCharacterSetECIByName(c);void 0!==O&&this.appendECI(O,M)}this.appendModeInfo(v,M);var $,N=new me;if(this.appendBytes(t,v,N,c),null!==s&&void 0!==s.get(pi.QR_VERSION)){var q=Number.parseInt(s.get(pi.QR_VERSION).toString(),10);$=Ls.getVersionForNumber(q);var de=this.calculateBitsNeeded(v,M,N,$);if(!this.willFit(de,$,i))throw new Hn("Data too big for requested version")}else $=this.recommendVersion(i,v,M,N);var we=new me;we.appendBitArray(M);var et=v===xe.BYTE?N.getSizeInBytes():t.length;this.appendLengthInfo(et,$,v,we),we.appendBitArray(N);var vt=$.getECBlocksForLevel(i),zt=$.getTotalCodewords()-vt.getTotalECCodewords();this.terminateBits(zt,we);var $t=this.interleaveWithECBytes(we,$.getTotalCodewords(),zt,vt.getNumBlocks()),Gt=new sn;Gt.setECLevel(i),Gt.setMode(v),Gt.setVersion($);var an=$.getDimensionForVersion(),bn=new it(an,an),Nn=this.chooseMaskPattern($t,i,$,bn);return Gt.setMaskPattern(Nn),Ci.buildMatrix($t,i,$,Nn,bn),Gt.setMatrix(bn),Gt},o.recommendVersion=function(t,i,s,c){var h=this.calculateBitsNeeded(i,s,c,Ls.getVersionForNumber(1)),v=this.chooseVersion(h,t),M=this.calculateBitsNeeded(i,s,c,v);return this.chooseVersion(M,t)},o.calculateBitsNeeded=function(t,i,s,c){return i.getSize()+t.getCharacterCountBits(c)+s.getSize()},o.getAlphanumericCode=function(t){return t159)&&(h<224||h>235))return!1}return!0},o.chooseMaskPattern=function(t,i,s,c){for(var h=Number.MAX_SAFE_INTEGER,v=-1,M=0;M=(t+7)/8},o.terminateBits=function(t,i){var s=8*t;if(i.getSize()>s)throw new Hn("data bits cannot fit in the QR Code"+i.getSize()+" > "+s);for(var c=0;c<4&&i.getSize()0)for(c=h;c<8;c++)i.appendBit(!1);var v=t-i.getSizeInBytes();for(c=0;c=s)throw new Hn("Block ID too large");var M=t%s,O=s-M,N=Math.floor(t/s),$=N+1,q=Math.floor(i/s),de=q+1,we=N-q,et=$-de;if(we!==et)throw new Hn("EC bytes mismatch");if(s!==O+M)throw new Hn("RS blocks mismatch");if(t!==(q+we)*O+(de+et)*M)throw new Hn("Total bytes mismatch");c=1<=0&&i<=9},o.appendNumericBytes=function(t,i){for(var s=t.length,c=0;c=33088&&O<=40956?N=O-33088:O>=57408&&O<=60351&&(N=O-49472),-1===N)throw new Hn("Invalid byte sequence");i.appendBits(192*(N>>8)+(255&N),13)}},o.appendECI=function(t,i){i.appendBits(xe.ECI.getBits(),4),i.appendBits(t.getValue(),8)},o.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),o.DEFAULT_BYTE_MODE_ENCODING=Dn.UTF8.getName(),o}();const Fl=Na;!function(){function o(){}o.prototype.write=function(t,i,s,c){if(void 0===c&&(c=null),0===t.length)throw new Ge("Found empty contents");if(i<0||s<0)throw new Ge("Requested dimensions are too small: "+i+"x"+s);var h=aa.L,v=o.QUIET_ZONE_SIZE;null!==c&&(void 0!==c.get(pi.ERROR_CORRECTION)&&(h=aa.fromString(c.get(pi.ERROR_CORRECTION).toString())),void 0!==c.get(pi.MARGIN)&&(v=Number.parseInt(c.get(pi.MARGIN).toString(),10)));var M=Fl.encode(t,h,c);return this.renderResult(M,i,s,v)},o.prototype.writeToDom=function(t,i,s,c,h){void 0===h&&(h=null),"string"==typeof t&&(t=document.querySelector(t));var v=this.write(i,s,c,h);t&&t.appendChild(v)},o.prototype.renderResult=function(t,i,s,c){var h=t.getMatrix();if(null===h)throw new ki;for(var v=h.getWidth(),M=h.getHeight(),O=v+2*c,N=M+2*c,$=Math.max(i,O),q=Math.max(s,N),de=Math.min(Math.floor($/O),Math.floor(q/N)),we=Math.floor(($-v*de)/2),et=Math.floor((q-M*de)/2),vt=this.createSVGElement($,q),zt=0,$t=et;zts||v+O>c)throw new Ge("Crop rectangle does not fit within image data.");return N&&$.reverseHorizontal(M,O),$}Qd(t,o),t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth();return(null==s||s.length>16&255)+(we>>7&510)+(255&we))/4&255}N.luminances=q}else N.luminances=i;if(void 0===h&&(N.dataWidth=s),void 0===v&&(N.dataHeight=c),void 0===M&&(N.left=0),void 0===O&&(N.top=0),N.left+s>N.dataWidth||N.top+c>N.dataHeight)throw new Ge("Crop rectangle does not fit within image data.");return N}cs(t,o),t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth();return(null==s||s.length=0&&this.noBit(s,i)&&this.utah(i,s,t++),i-=2,s+=2}while(i>=0&&s=0&&s=0);i+=3,s++}while(i=256&&(i^=301);return{LOG:o,ALOG:t}}([],[]),F.LOG),Dt=F.ALOG,ru="[)>\x1e05\x1d",ou="[)>\x1e06\x1d",Qh=function(){function o(){}return o.encodeECC200=function(t,i){if(t.length!==i.getDataCapacity())throw new Error("The number of codewords does not match the selected symbol");var s=new Ce;s.append(t);var c=i.getInterleavedBlockCount();if(1===c){var h=this.createECCBlock(t,i.getErrorCodewords());s.append(h)}else{for(var v=[],M=[],O=0;O0;O--)v[O]=0!==M&&0!==h[O]?v[O-1]^Dt[(ye[M]+ye[h[O]])%255]:v[O-1];v[0]=0!==M&&0!==h[0]?Dt[(ye[M]+ye[h[0]])%255]:0}var N=[];for(c=0;c=2)t.writeCodeword(this.encodeASCIIDigits(t.getMessage().charCodeAt(t.pos),t.getMessage().charCodeAt(t.pos+1))),t.pos+=2;else{var s=t.getCurrentChar(),c=Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode());if(c!==this.getEncodingMode())switch(c){case 5:return t.writeCodeword(231),void t.signalEncoderChange(5);case 1:return t.writeCodeword(230),void t.signalEncoderChange(1);case 3:t.writeCodeword(238),t.signalEncoderChange(3);break;case 2:t.writeCodeword(239),t.signalEncoderChange(2);break;case 4:t.writeCodeword(240),t.signalEncoderChange(4);break;default:throw new Error("Illegal mode: "+c)}else Mr.isExtendedASCII(s)?(t.writeCodeword(235),t.writeCodeword(s-128+1),t.pos++):(t.writeCodeword(s+1),t.pos++)}},o.prototype.encodeASCIIDigits=function(t,i){if(Mr.isDigit(t)&&Mr.isDigit(i))return 10*(t-48)+(i-48)+130;throw new Error("not digits: "+t+i)},o}(),gh=function(){function o(){}return o.prototype.getEncodingMode=function(){return 5},o.prototype.encode=function(t){var i=new Ce;for(i.append(0);t.hasMoreCharacters();){var s=t.getCurrentChar();if(i.append(s),t.pos++,Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}var h=i.length()-1,M=t.getCodewordCount()+h+1;t.updateSymbolInfo(M);var O=t.getSymbolInfo().getDataCapacity()-M>0;if(t.hasMoreCharacters()||O)if(h<=249)i.setCharAt(0,ct.getCharAt(h));else{if(!(h<=1555))throw new Error("Message length not in valid ranges: "+h);i.setCharAt(0,ct.getCharAt(Math.floor(h/250)+249)),i.insert(1,ct.getCharAt(h%250))}var N=0;for(s=i.length();N3||1!==N))&&(t.pos=c)}i.length()>0&&t.writeCodeword(230),this.handleEOD(t,i)},o.prototype.encode=function(t){for(var i=new Ce;t.hasMoreCharacters();){var s=t.getCurrentChar();t.pos++;var c=this.encodeChar(s,i),h=2*Math.floor(i.length()/3),v=t.getCodewordCount()+h;t.updateSymbolInfo(v);var M=t.getSymbolInfo().getDataCapacity()-v;if(!t.hasMoreCharacters()){var O=new Ce;for(i.length()%3==2&&2!==M&&(c=this.backtrackOneCharacter(t,i,O,c));i.length()%3==1&&(c>3||1!==M);)c=this.backtrackOneCharacter(t,i,O,c);break}if(i.length()%3==0&&Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}this.handleEOD(t,i)},o.prototype.backtrackOneCharacter=function(t,i,s,c){var h=i.length(),v=i.toString().substring(0,h-c);i.setLengthToZero(),i.append(v),t.pos--;var M=t.getCurrentChar();return c=this.encodeChar(M,s),t.resetSymbolInfo(),c},o.prototype.writeNextTriplet=function(t,i){t.writeCodewords(this.encodeToCodewords(i.toString()));var s=i.toString().substring(3);i.setLengthToZero(),i.append(s)},o.prototype.handleEOD=function(t,i){var s=Math.floor(i.length()/3*2),c=i.length()%3,h=t.getCodewordCount()+s;t.updateSymbolInfo(h);var v=t.getSymbolInfo().getDataCapacity()-h;if(2===c){for(i.append("\0");i.length()>=3;)this.writeNextTriplet(t,i);t.hasMoreCharacters()&&t.writeCodeword(254)}else if(1===v&&1===c){for(;i.length()>=3;)this.writeNextTriplet(t,i);t.hasMoreCharacters()&&t.writeCodeword(254),t.pos--}else{if(0!==c)throw new Error("Unexpected case. Please report!");for(;i.length()>=3;)this.writeNextTriplet(t,i);(v>0||t.hasMoreCharacters())&&t.writeCodeword(254)}t.signalEncoderChange(0)},o.prototype.encodeChar=function(t,i){return t===" ".charCodeAt(0)?(i.append(3),1):t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)?(i.append(t-48+4),1):t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)?(i.append(t-65+14),1):t<" ".charCodeAt(0)?(i.append(0),i.append(t),2):t<="/".charCodeAt(0)?(i.append(1),i.append(t-33),2):t<="@".charCodeAt(0)?(i.append(1),i.append(t-58+15),2):t<="_".charCodeAt(0)?(i.append(1),i.append(t-91+22),2):t<=127?(i.append(2),i.append(t-96),2):(i.append("1\x1e"),2+this.encodeChar(t-128,i))},o.prototype.encodeToCodewords=function(t){var i=1600*t.charCodeAt(0)+40*t.charCodeAt(1)+t.charCodeAt(2)+1,s=i/256,c=i%256,h=new Ce;return h.append(s),h.append(c),h.toString()},o}(),vh=function(){function o(){}return o.prototype.getEncodingMode=function(){return 4},o.prototype.encode=function(t){for(var i=new Ce;t.hasMoreCharacters();){var s=t.getCurrentChar();if(this.encodeChar(s,i),t.pos++,i.length()>=4){t.writeCodewords(this.encodeToCodewords(i.toString()));var h=i.toString().substring(4);if(i.setLengthToZero(),i.append(h),Mr.lookAheadTest(t.getMessage(),t.pos,this.getEncodingMode())!==this.getEncodingMode()){t.signalEncoderChange(0);break}}}i.append(ct.getCharAt(31)),this.handleEOD(t,i)},o.prototype.handleEOD=function(t,i){try{var s=i.length();if(0===s)return;if(1===s){t.updateSymbolInfo();var c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount(),h=t.getRemainingCharacters();if(h>c&&(t.updateSymbolInfo(t.getCodewordCount()+1),c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount()),h<=c&&c<=2)return}if(s>4)throw new Error("Count must not exceed 4");var v=s-1,M=this.encodeToCodewords(i.toString()),N=!t.hasMoreCharacters()&&v<=2;v<=2&&(t.updateSymbolInfo(t.getCodewordCount()+v),(c=t.getSymbolInfo().getDataCapacity()-t.getCodewordCount())>=3&&(N=!1,t.updateSymbolInfo(t.getCodewordCount()+M.length))),N?(t.resetSymbolInfo(),t.pos-=v):t.writeCodewords(M)}finally{t.signalEncoderChange(0)}},o.prototype.encodeChar=function(t,i){t>=" ".charCodeAt(0)&&t<="?".charCodeAt(0)?i.append(t):t>="@".charCodeAt(0)&&t<="^".charCodeAt(0)?i.append(ct.getCharAt(t-64)):Mr.illegalCharacter(ct.getCharAt(t))},o.prototype.encodeToCodewords=function(t){var i=t.length;if(0===i)throw new Error("StringBuilder must not be empty");var M=(t.charAt(0).charCodeAt(0)<<18)+((i>=2?t.charAt(1).charCodeAt(0):0)<<12)+((i>=3?t.charAt(2).charCodeAt(0):0)<<6)+(i>=4?t.charAt(3).charCodeAt(0):0),O=M>>16&255,N=M>>8&255,$=255&M,q=new Ce;return q.append(O),i>=2&&q.append(N),i>=3&&q.append($),q.toString()},o}(),tf=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),eo=function(){function o(t,i,s,c,h,v,M,O){void 0===M&&(M=0),void 0===O&&(O=0),this.rectangular=t,this.dataCapacity=i,this.errorCodewords=s,this.matrixWidth=c,this.matrixHeight=h,this.dataRegions=v,this.rsBlockData=M,this.rsBlockError=O}return o.lookup=function(t,i,s,c,h){var v,M;void 0===i&&(i=0),void 0===s&&(s=null),void 0===c&&(c=null),void 0===h&&(h=!0);try{for(var O=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Bl),N=O.next();!N.done;N=O.next()){var $=N.value;if((1!==i||!$.rectangular)&&(2!==i||$.rectangular)&&(null==s||!($.getSymbolWidth()c.getWidth()||$.getSymbolHeight()>c.getHeight()))&&t<=$.dataCapacity)return $}}catch(q){v={error:q}}finally{try{N&&!N.done&&(M=O.return)&&M.call(O)}finally{if(v)throw v.error}}if(h)throw new Error("Can't find a symbol arrangement that matches the message. Data codewords: "+t);return null},o.prototype.getHorizontalDataRegions=function(){switch(this.dataRegions){case 1:return 1;case 2:case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},o.prototype.getVerticalDataRegions=function(){switch(this.dataRegions){case 1:case 2:return 1;case 4:return 2;case 16:return 4;case 36:return 6;default:throw new Error("Cannot handle this number of data regions")}},o.prototype.getSymbolDataWidth=function(){return this.getHorizontalDataRegions()*this.matrixWidth},o.prototype.getSymbolDataHeight=function(){return this.getVerticalDataRegions()*this.matrixHeight},o.prototype.getSymbolWidth=function(){return this.getSymbolDataWidth()+2*this.getHorizontalDataRegions()},o.prototype.getSymbolHeight=function(){return this.getSymbolDataHeight()+2*this.getVerticalDataRegions()},o.prototype.getCodewordCount=function(){return this.dataCapacity+this.errorCodewords},o.prototype.getInterleavedBlockCount=function(){return this.rsBlockData?this.dataCapacity/this.rsBlockData:1},o.prototype.getDataCapacity=function(){return this.dataCapacity},o.prototype.getErrorCodewords=function(){return this.errorCodewords},o.prototype.getDataLengthForInterleavedBlock=function(t){return this.rsBlockData},o.prototype.getErrorLengthForInterleavedBlock=function(t){return this.rsBlockError},o}();const bh=eo;var jf=function(o){function t(){return o.call(this,!1,1558,620,22,22,36,-1,62)||this}return tf(t,o),t.prototype.getInterleavedBlockCount=function(){return 10},t.prototype.getDataLengthForInterleavedBlock=function(i){return i<=8?156:155},t}(eo),Bl=[new eo(!1,3,5,8,8,1),new eo(!1,5,7,10,10,1),new eo(!0,5,7,16,6,1),new eo(!1,8,10,12,12,1),new eo(!0,10,11,14,6,2),new eo(!1,12,12,14,14,1),new eo(!0,16,14,24,10,1),new eo(!1,18,14,16,16,1),new eo(!1,22,18,18,18,1),new eo(!0,22,18,16,10,2),new eo(!1,30,20,20,20,1),new eo(!0,32,24,16,14,2),new eo(!1,36,24,22,22,1),new eo(!1,44,28,24,24,1),new eo(!0,49,28,22,14,2),new eo(!1,62,36,14,14,4),new eo(!1,86,42,16,16,4),new eo(!1,114,48,18,18,4),new eo(!1,144,56,20,20,4),new eo(!1,174,68,22,22,4),new eo(!1,204,84,24,24,4,102,42),new eo(!1,280,112,14,14,16,140,56),new eo(!1,368,144,16,16,16,92,36),new eo(!1,456,192,18,18,16,114,48),new eo(!1,576,224,20,20,16,144,56),new eo(!1,696,272,22,22,16,174,68),new eo(!1,816,336,24,24,16,136,56),new eo(!1,1050,408,18,18,36,175,68),new eo(!1,1304,496,20,20,36,163,62),new jf],Wu=function(){function o(t){this.msg=t,this.pos=0,this.skipAtEnd=0;for(var i=t.split("").map(function(M){return M.charCodeAt(0)}),s=new Ce,c=0,h=i.length;cthis.symbolInfo.getDataCapacity())&&(this.symbolInfo=bh.lookup(t,this.shape,this.minSize,this.maxSize,!0))},o.prototype.resetSymbolInfo=function(){this.symbolInfo=null},o}(),yh=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),$u=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return yh(t,o),t.prototype.getEncodingMode=function(){return 3},t.prototype.encode=function(i){for(var s=new Ce;i.hasMoreCharacters();){var c=i.getCurrentChar();if(i.pos++,this.encodeChar(c,s),s.length()%3==0&&(this.writeNextTriplet(i,s),Mr.lookAheadTest(i.getMessage(),i.pos,this.getEncodingMode())!==this.getEncodingMode())){i.signalEncoderChange(0);break}}this.handleEOD(i,s)},t.prototype.encodeChar=function(i,s){switch(i){case 13:s.append(0);break;case"*".charCodeAt(0):s.append(1);break;case">".charCodeAt(0):s.append(2);break;case" ".charCodeAt(0):s.append(3);break;default:i>="0".charCodeAt(0)&&i<="9".charCodeAt(0)?s.append(i-48+4):i>="A".charCodeAt(0)&&i<="Z".charCodeAt(0)?s.append(i-65+14):Mr.illegalCharacter(ct.getCharAt(i))}return 1},t.prototype.handleEOD=function(i,s){i.updateSymbolInfo();var c=i.getSymbolInfo().getDataCapacity()-i.getCodewordCount(),h=s.length();i.pos-=h,(i.getRemainingCharacters()>1||c>1||i.getRemainingCharacters()!==c)&&i.writeCodeword(254),i.getNewEncoding()<0&&i.signalEncoderChange(0)},t}(au),rl=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),lu=function(o){function t(){return null!==o&&o.apply(this,arguments)||this}return rl(t,o),t.prototype.getEncodingMode=function(){return 2},t.prototype.encodeChar=function(i,s){return i===" ".charCodeAt(0)?(s.append(3),1):i>="0".charCodeAt(0)&&i<="9".charCodeAt(0)?(s.append(i-48+4),1):i>="a".charCodeAt(0)&&i<="z".charCodeAt(0)?(s.append(i-97+14),1):i<" ".charCodeAt(0)?(s.append(0),s.append(i),2):i<="/".charCodeAt(0)?(s.append(1),s.append(i-33),2):i<="@".charCodeAt(0)?(s.append(1),s.append(i-58+15),2):i>="[".charCodeAt(0)&&i<="_".charCodeAt(0)?(s.append(1),s.append(i-91+22),2):i==="`".charCodeAt(0)?(s.append(2),s.append(0),2):i<="Z".charCodeAt(0)?(s.append(2),s.append(i-65+1),2):i<=127?(s.append(2),s.append(i-123+27),2):(s.append("1\x1e"),2+this.encodeChar(i-128,s))},t}(au),wh=function(){function o(){}return o.randomize253State=function(t){var s=149*t%253+1+129;return s<=254?s:s-254},o.encodeHighLevel=function(t,i,s,c,h){void 0===i&&(i=0),void 0===s&&(s=null),void 0===c&&(c=null),void 0===h&&(h=!1);var v=new au,M=[new ef,v,new lu,new $u,new vh,new gh],O=new Wu(t);O.setSymbolShape(i),O.setSizeConstraints(s,c),t.startsWith(ru)&&t.endsWith("\x1e\x04")?(O.writeCodeword(236),O.setSkipAtEnd(2),O.pos+=7):t.startsWith(ou)&&t.endsWith("\x1e\x04")&&(O.writeCodeword(237),O.setSkipAtEnd(2),O.pos+=7);var N=0;for(h&&(v.encodeMaximal(O),N=O.getNewEncoding(),O.resetEncoderSignal());O.hasMoreCharacters();)M[N].encode(O),O.getNewEncoding()>=0&&(N=O.getNewEncoding(),O.resetEncoderSignal());var $=O.getCodewordCount();O.updateSymbolInfo();var q=O.getSymbolInfo().getDataCapacity();$=t.length)return s;var c;0===s?c=[0,1,1,1,1,1.25]:(c=[1,2,2,2,2,2.25])[s]=0;for(var h=0,v=new Uint8Array(6),M=[];;){if(i+h===t.length){at.fill(v,0),at.fill(M,0);var O=this.findMinimums(c,M,Ee.MAX_VALUE,v),N=this.getMinimumCount(v);if(M[0]===O)return 0;if(1===N){if(v[5]>0)return 5;if(v[4]>0)return 4;if(v[2]>0)return 2;if(v[3]>0)return 3}return 1}var $=t.charCodeAt(i+h);if(h++,this.isDigit($)?c[0]+=.5:this.isExtendedASCII($)?(c[0]=Math.ceil(c[0]),c[0]+=2):(c[0]=Math.ceil(c[0]),c[0]++),this.isNativeC40($)?c[1]+=2/3:this.isExtendedASCII($)?c[1]+=8/3:c[1]+=4/3,this.isNativeText($)?c[2]+=2/3:this.isExtendedASCII($)?c[2]+=8/3:c[2]+=4/3,this.isNativeX12($)?c[3]+=2/3:this.isExtendedASCII($)?c[3]+=13/3:c[3]+=10/3,this.isNativeEDIFACT($)?c[4]+=3/4:this.isExtendedASCII($)?c[4]+=4.25:c[4]+=3.25,this.isSpecialB256($)?c[5]+=4:c[5]++,h>=4){if(at.fill(v,0),at.fill(M,0),this.findMinimums(c,M,Ee.MAX_VALUE,v),M[0]v&&(s=v,at.fill(c,0)),s===v&&(c[h]=c[h]+1)}return s},o.getMinimumCount=function(t){for(var i=0,s=0;s<6;s++)i+=t[s];return i||0},o.isDigit=function(t){return t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)},o.isExtendedASCII=function(t){return t>=128&&t<=255},o.isNativeC40=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},o.isNativeText=function(t){return t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="a".charCodeAt(0)&&t<="z".charCodeAt(0)},o.isNativeX12=function(t){return this.isX12TermSep(t)||t===" ".charCodeAt(0)||t>="0".charCodeAt(0)&&t<="9".charCodeAt(0)||t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)},o.isX12TermSep=function(t){return 13===t||t==="*".charCodeAt(0)||t===">".charCodeAt(0)},o.isNativeEDIFACT=function(t){return t>=" ".charCodeAt(0)&&t<="^".charCodeAt(0)},o.isSpecialB256=function(t){return!1},o.determineConsecutiveDigitCount=function(t,i){void 0===i&&(i=0);for(var s=t.length,c=i;c=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ju=function(){function o(t){this.charset=t,this.name=t.name}return o.prototype.canEncode=function(t){try{return null!=Wn.encode(t,this.charset)}catch{return!1}},o}(),rf=function(){function o(t,i,s){var c,h,v,M,O,N;this.ENCODERS=["IBM437","ISO-8859-2","ISO-8859-3","ISO-8859-4","ISO-8859-5","ISO-8859-6","ISO-8859-7","ISO-8859-8","ISO-8859-9","ISO-8859-10","ISO-8859-11","ISO-8859-13","ISO-8859-14","ISO-8859-15","ISO-8859-16","windows-1250","windows-1251","windows-1252","windows-1256","Shift_JIS"].map(function(Gi){return new Ju(Fa.forName(Gi))}),this.encoders=[];var $=[];$.push(new Ju(Ou.ISO_8859_1));for(var q=null!=i&&i.name.startsWith("UTF"),de=0;de=this.bytes.length)return!1;for(var s=0;s=this.length())throw new Error(""+t);if(this.isECI(t))throw new Error("value at "+t+" is not a character but an ECI");return this.isFNC1(t)?this.fnc1:this.bytes[t]},o.prototype.subSequence=function(t,i){if(t<0||t>i||i>this.length())throw new Error(""+t);for(var s=new Ce,c=t;c=this.length())throw new Error(""+t);return this.bytes[t]>255&&this.bytes[t]<=999},o.prototype.isFNC1=function(t){if(t<0||t>=this.length())throw new Error(""+t);return 1e3===this.bytes[t]},o.prototype.getECIValue=function(t){if(t<0||t>=this.length())throw new Error(""+t);if(!this.isECI(t))throw new Error("value at "+t+" is not an ECI but a character");return this.bytes[t]-256},o.prototype.addEdge=function(t,i,s){(null==t[i][s.encoderIndex]||t[i][s.encoderIndex].cachedTotalSize>s.cachedTotalSize)&&(t[i][s.encoderIndex]=s)},o.prototype.addEdges=function(t,i,s,c,h,v){var M=t.charAt(c).charCodeAt(0),O=0,N=i.length();i.getPriorityEncoderIndex()>=0&&(M===v||i.canEncode(M,i.getPriorityEncoderIndex()))&&(N=(O=i.getPriorityEncoderIndex())+1);for(var $=O;$=0;v--)q.unshift(255&we[v])}(null===de.previous?0:de.previous.encoderIndex)!==de.encoderIndex&&q.unshift(256+i.getECIValue(de.encoderIndex)),de=de.previous}var vt=[];for(v=0;v=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xh=function(o,t){var i="function"==typeof Symbol&&o[Symbol.iterator];if(!i)return o;var c,v,s=i.call(o),h=[];try{for(;(void 0===t||t-- >0)&&!(c=s.next()).done;)h.push(c.value)}catch(M){v={error:M}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(v)throw v.error}}return h},si=function(o){return o[o.ASCII=0]="ASCII",o[o.C40=1]="C40",o[o.TEXT=2]="TEXT",o[o.X12=3]="X12",o[o.EDF=4]="EDF",o[o.B256=5]="B256",o}(si||{}),du=["!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","@","[","\\","]","^","_"],Hl=function(){function o(){}return o.isExtendedASCII=function(t,i){return t!==i&&t>=128&&t<=255},o.isInC40Shift1Set=function(t){return t<=31},o.isInC40Shift2Set=function(t,i){var s,c;try{for(var h=cu(du),v=h.next();!v.done;v=h.next())if(v.value.charCodeAt(0)===t)return!0}catch(O){s={error:O}}finally{try{v&&!v.done&&(c=h.return)&&c.call(h)}finally{if(s)throw s.error}}return t===i},o.isInTextShift1Set=function(t){return this.isInC40Shift1Set(t)},o.isInTextShift2Set=function(t,i){return this.isInC40Shift2Set(t,i)},o.encodeHighLevel=function(t,i,s,c){void 0===i&&(i=null),void 0===s&&(s=-1),void 0===c&&(c=0);var h=0;return t.startsWith(ru)&&t.endsWith("\x1e\x04")?(h=5,t=t.substring(7,t.length-2)):t.startsWith(ou)&&t.endsWith("\x1e\x04")&&(h=6,t=t.substring(7,t.length-2)),decodeURIComponent(escape(String.fromCharCode.apply(String,function(){for(var o=[],t=0;ti.cachedTotalSize)&&(t[s][i.getEndMode()]=i)},o.getNumberOfC40Words=function(t,i,s,c){for(var h=0,v=i;v=128&&(s&&Mr.isNativeC40(O-128)||!s&&Mr.isNativeText(O-128))?h+=3:h+=4}else h+=2;if(h%3==0||(h-2)%3==0&&v+1===t.length())return c[0]=v-i+1,Math.ceil(h/3)}return c[0]=0,0},o.addEdges=function(t,i,s,c){var h,v;if(t.isECI(s))this.addEdge(i,new nc(t,si.ASCII,s,1,c));else{var we,M=t.charAt(s);if(null===c||c.getEndMode()!==si.EDF){Mr.isDigit(M)&&t.haveNCharacters(s,2)&&Mr.isDigit(t.charAt(s+1))?this.addEdge(i,new nc(t,si.ASCII,s,2,c)):this.addEdge(i,new nc(t,si.ASCII,s,1,c));var O=[si.C40,si.TEXT];try{for(var N=cu(O),$=N.next();!$.done;$=N.next()){var q=$.value,de=[];o.getNumberOfC40Words(t,s,q===si.C40,de)>0&&this.addEdge(i,new nc(t,q,s,de[0],c))}}catch(vt){h={error:vt}}finally{try{$&&!$.done&&(v=N.return)&&v.call(N)}finally{if(h)throw h.error}}t.haveNCharacters(s,3)&&Mr.isNativeX12(t.charAt(s))&&Mr.isNativeX12(t.charAt(s+1))&&Mr.isNativeX12(t.charAt(s+2))&&this.addEdge(i,new nc(t,si.X12,s,3,c)),this.addEdge(i,new nc(t,si.B256,s,1,c))}for(we=0;we<3;we++){var et=s+we;if(!t.haveNCharacters(et,1)||!Mr.isNativeEDIFACT(t.charAt(et)))break;this.addEdge(i,new nc(t,si.EDF,s,we+1,c))}3===we&&t.haveNCharacters(s,4)&&Mr.isNativeEDIFACT(t.charAt(s+3))&&this.addEdge(i,new nc(t,si.EDF,s,4,c))}},o.encodeMinimally=function(t){var i=t.length(),s=Array(i+1).fill(null).map(function(){return Array(6).fill(0)});this.addEdges(t,s,0,null);for(var c=1;c<=i;c++){for(var h=0;h<6;h++)null!==s[c][h]&&c=1&&h<=3?O.cachedTotalSize+1:O.cachedTotalSize;N0&&(s+=this.prepend(nc.getBytes(232),c));for(var O=0;O=0;s--)i.unshift(t[s]);return t.length},o.prototype.randomize253State=function(t){var s=149*t%253+1+129;return s<=254?s:s-254},o.prototype.applyRandomPattern=function(t,i,s){for(var c=0;c0&&this.getCodewordsRemaining(this.cachedTotalSize+t)<=2-t)return si.ASCII}if(this.mode===si.C40||this.mode===si.TEXT||this.mode===si.X12){if(this.fromPosition+this.characterLength>=this.input.length()&&0===this.getCodewordsRemaining(this.cachedTotalSize))return si.ASCII;var t;if(1===(t=this.getLastASCII())&&0===this.getCodewordsRemaining(this.cachedTotalSize+1))return si.ASCII}return this.mode},o.prototype.getMode=function(){return this.mode},o.prototype.getLastASCII=function(){var t=this.input.length(),i=this.fromPosition+this.characterLength;return t-i>4||i>=t?0:t-i==1?Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())?0:1:t-i==2?Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())||Hl.isExtendedASCII(this.input.charAt(i+1),this.input.getFNC1Character())?0:Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))?1:2:t-i==3?Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))&&!Hl.isExtendedASCII(this.input.charAt(i+2),this.input.getFNC1Character())||Mr.isDigit(this.input.charAt(i+1))&&Mr.isDigit(this.input.charAt(i+2))&&!Hl.isExtendedASCII(this.input.charAt(i),this.input.getFNC1Character())?2:0:Mr.isDigit(this.input.charAt(i))&&Mr.isDigit(this.input.charAt(i+1))&&Mr.isDigit(this.input.charAt(i+2))&&Mr.isDigit(this.input.charAt(i+3))?2:0},o.prototype.getMinSymbolSize=function(t){var i,s,c,h,v,M;switch(this.input.getShapeHint()){case 1:try{for(var O=cu(this.squareCodewordCapacities),N=O.next();!N.done;N=O.next())if(($=N.value)>=t)return $}catch(vt){i={error:vt}}finally{try{N&&!N.done&&(s=O.return)&&s.call(O)}finally{if(i)throw i.error}}break;case 2:try{for(var q=cu(this.rectangularCodewordCapacities),de=q.next();!de.done;de=q.next())if(($=de.value)>=t)return $}catch(vt){c={error:vt}}finally{try{de&&!de.done&&(h=q.return)&&h.call(q)}finally{if(c)throw c.error}}}try{for(var we=cu(this.allCodewordCapacities),et=we.next();!et.done;et=we.next()){var $;if(($=et.value)>=t)return $}}catch(vt){v={error:vt}}finally{try{et&&!et.done&&(M=we.return)&&M.call(we)}finally{if(v)throw v.error}}return this.allCodewordCapacities[this.allCodewordCapacities.length-1]},o.prototype.getCodewordsRemaining=function(t){return this.getMinSymbolSize(t)-t},o.getBytes=function(t,i){var s=new Uint8Array(i?2:1);return s[0]=t,i&&(s[1]=i),s},o.prototype.setC40Word=function(t,i,s,c,h){var v=1600*(255&s)+40*(255&c)+(255&h)+1;t[i]=v/256,t[i+1]=v%256},o.prototype.getX12Value=function(t){return 13===t?0:42===t?1:62===t?2:32===t?3:t>=48&&t<=57?t-44:t>=65&&t<=90?t-51:t},o.prototype.getX12Words=function(){if(this.characterLength%3!=0)throw new Error("X12 words must be a multiple of 3");for(var t=new Uint8Array(this.characterLength/3*2),i=0;i=33&&s<=47?s-33:s>=48&&s<=57?s-44:s>=58&&s<=64?s-43:s>=65&&s<=90?s-64:s>=91&&s<=95?s-69:96===s?0:s>=97&&s<=122?s-83:s>=123&&s<=127?s-96:s},o.prototype.getC40Words=function(t,i){for(var s=[],c=0;c>16&255,i[h+1]=O>>8&255,i[h+2]=255&O}return i},o.prototype.getLatchBytes=function(){switch(this.getPreviousMode()){case si.ASCII:case si.B256:switch(this.mode){case si.B256:return o.getBytes(231);case si.C40:return o.getBytes(230);case si.TEXT:return o.getBytes(239);case si.X12:return o.getBytes(238);case si.EDF:return o.getBytes(240)}break;case si.C40:case si.TEXT:case si.X12:if(this.mode!==this.getPreviousMode())switch(this.mode){case si.ASCII:return o.getBytes(254);case si.B256:return o.getBytes(254,231);case si.C40:return o.getBytes(254,230);case si.TEXT:return o.getBytes(254,239);case si.X12:return o.getBytes(254,238);case si.EDF:return o.getBytes(254,240)}break;case si.EDF:if(this.mode!==si.EDF)throw new Error("Cannot switch from EDF to "+this.mode)}return new Uint8Array(0)},o.prototype.getDataBytes=function(){switch(this.mode){case si.ASCII:return this.input.isECI(this.fromPosition)?o.getBytes(241,this.input.getECIValue(this.fromPosition)+1):Hl.isExtendedASCII(this.input.charAt(this.fromPosition),this.input.getFNC1Character())?o.getBytes(235,this.input.charAt(this.fromPosition)-127):2===this.characterLength?o.getBytes(10*this.input.charAt(this.fromPosition)+this.input.charAt(this.fromPosition+1)+130):this.input.isFNC1(this.fromPosition)?o.getBytes(232):o.getBytes(this.input.charAt(this.fromPosition)+1);case si.B256:return o.getBytes(this.input.charAt(this.fromPosition));case si.C40:return this.getC40Words(!0,this.input.getFNC1Character());case si.TEXT:return this.getC40Words(!1,this.input.getFNC1Character());case si.X12:return this.getX12Words();case si.EDF:return this.getEDFBytes()}},o}(),Ch=function(o){function t(i,s,c,h,v){var M=o.call(this,i,s,c)||this;return M.shape=h,M.macroId=v,M}return zf(t,o),t.prototype.getMacroId=function(){return this.macroId},t.prototype.getShapeHint=function(){return this.shape},t}(Zf);!function(){function o(){}o.prototype.encode=function(t,i,s,c,h){if(void 0===h&&(h=null),""===t.trim())throw new Error("Found empty contents");if(i!==be.DATA_MATRIX)throw new Error("Can only encode DATA_MATRIX, but got "+i);if(s<0||c<0)throw new Error("Requested dimensions can't be negative: "+s+"x"+c);var de,v=0,M=null,O=null;if(null!=h){var N=h.get(pi.DATA_MATRIX_SHAPE);null!=N&&(v=N);var $=h.get(pi.MIN_SIZE);null!=$&&(M=$);var q=h.get(pi.MAX_SIZE);null!=q&&(O=q)}if(null!=h&&h.has(pi.DATA_MATRIX_COMPACT)&&h.get(pi.DATA_MATRIX_COMPACT).toString()){var et=h.has(pi.GS1_FORMAT)&&!!h.get(pi.GS1_FORMAT).toString(),vt=null;h.has(pi.CHARACTER_SET)&&(vt=Fa.forName(h.get(pi.CHARACTER_SET).toString())),de=Hl.encodeHighLevel(t,vt,et?29:-1,v)}else{var $t=null!=h&&h.has(pi.FORCE_C40)&&!!h.get(pi.FORCE_C40).toString();de=Mr.encodeHighLevel(t,v,M,O,$t)}var Gt=bh.lookup(de.length,v,M,O,!0),an=Xh.encodeECC200(de,Gt),bn=new Id(an,Gt.getSymbolDataWidth(),Gt.getSymbolDataHeight());return bn.place(),this.encodeLowLevel(bn,Gt,s,c)},o.prototype.encodeLowLevel=function(t,i,s,c){for(var h=i.getSymbolDataWidth(),v=i.getSymbolDataHeight(),M=new it(i.getSymbolWidth(),i.getSymbolHeight()),O=0,N=0;N"},t}(df);const Xu=hf;var ff=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)c.hasOwnProperty(h)&&(s[h]=c[h])})(t,i)};return function(t,i){function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Dh=function(o){function t(i,s,c){var h=o.call(this,i,0,0)||this;return h.binaryShiftStart=s,h.binaryShiftByteCount=c,h}return ff(t,o),t.prototype.appendTo=function(i,s){for(var c=0;c62?i.appendBits(this.binaryShiftByteCount-31,16):i.appendBits(0===c?Math.min(this.binaryShiftByteCount,31):this.binaryShiftByteCount-31,5)),i.appendBits(s[this.binaryShiftStart+c],8)},t.prototype.addBinaryShift=function(i,s){return new t(this,i,s)},t.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},t}(Xu);const Lu=Dh;function Ld(o,t,i){return new Xu(o,t,i)}var Gf=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],fu=new Xu(null,0,0),ud=[Int32Array.from([0,327708,327710,327709,656318]),Int32Array.from([590318,0,327710,327709,656318]),Int32Array.from([262158,590300,0,590301,932798]),Int32Array.from([327709,327708,656318,0,327710]),Int32Array.from([327711,656380,656382,656381,0])],pf=function Pu(o){var t,i;try{for(var s=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(o),c=s.next();!c.done;c=s.next())at.fill(c.value,-1)}catch(v){t={error:v}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return o[0][4]=0,o[1][4]=0,o[1][0]=28,o[3][4]=0,o[2][4]=0,o[2][0]=15,o}(at.createInt32Array(6,6)),th=function(){function o(t,i,s,c){this.token=t,this.mode=i,this.binaryShiftByteCount=s,this.bitCount=c}return o.prototype.getMode=function(){return this.mode},o.prototype.getToken=function(){return this.token},o.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},o.prototype.getBitCount=function(){return this.bitCount},o.prototype.latchAndAppend=function(t,i){var s=this.bitCount,c=this.token;if(t!==this.mode){var h=ud[this.mode][t];c=Ld(c,65535&h,h>>16),s+=h>>16}var v=2===t?4:5;return new o(c=Ld(c,i,v),t,0,s+v)},o.prototype.shiftAndAppend=function(t,i){var s=this.token,c=2===this.mode?4:5;return s=Ld(s,pf[this.mode][t],c),new o(s=Ld(s,i,5),this.mode,0,this.bitCount+c+5)},o.prototype.addBinaryShiftChar=function(t){var i=this.token,s=this.mode,c=this.bitCount;if(4===this.mode||2===this.mode){var h=ud[s][0];i=Ld(i,65535&h,h>>16),c+=h>>16,s=0}var M=new o(i,s,this.binaryShiftByteCount+1,c+(0===this.binaryShiftByteCount||31===this.binaryShiftByteCount?18:62===this.binaryShiftByteCount?9:8));return 2078===M.binaryShiftByteCount&&(M=M.endBinaryShift(t+1)),M},o.prototype.endBinaryShift=function(t){if(0===this.binaryShiftByteCount)return this;var i=this.token;return i=function eh(o,t,i){return new Lu(o,t,i)}(i,t-this.binaryShiftByteCount,this.binaryShiftByteCount),new o(i,this.mode,0,this.bitCount)},o.prototype.isBetterThanOrEqualTo=function(t){var i=this.bitCount+(ud[this.mode][t.mode]>>16);return this.binaryShiftByteCountt.binaryShiftByteCount&&t.binaryShiftByteCount>0&&(i+=10),i<=t.bitCount},o.prototype.toBitArray=function(t){for(var i,s,c=[],h=this.endBinaryShift(t.length).token;null!==h;h=h.getPrevious())c.unshift(h);var v=new me;try{for(var M=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(c),O=M.next();!O.done;O=M.next())O.value.appendTo(v,t)}catch($){i={error:$}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}return v},o.prototype.toString=function(){return ct.format("%s bits=%d bytes=%d",Gf[this.mode],this.bitCount,this.binaryShiftByteCount)},o.calculateBinaryShiftCost=function(t){return t.binaryShiftByteCount>62?21:t.binaryShiftByteCount>31?20:t.binaryShiftByteCount>0?10:0},o.INITIAL_STATE=new o(fu,0,0,0),o}();const Sh=th;var eu=function nh(o){var t=ct.getCharCode(" "),i=ct.getCharCode("."),s=ct.getCharCode(",");o[0][t]=1;for(var c=ct.getCharCode("Z"),h=ct.getCharCode("A"),v=h;v<=c;v++)o[0][v]=v-h+2;o[1][t]=1;var M=ct.getCharCode("z"),O=ct.getCharCode("a");for(v=O;v<=M;v++)o[1][v]=v-O+2;o[2][t]=1;var N=ct.getCharCode("9"),$=ct.getCharCode("0");for(v=$;v<=N;v++)o[2][v]=v-$+2;o[2][s]=12,o[2][i]=13;for(var q=["\0"," ","\x01","\x02","\x03","\x04","\x05","\x06","\x07","\b","\t","\n","\v","\f","\r","\x1b","\x1c","\x1d","\x1e","\x1f","@","\\","^","_","`","|","~","\x7f"],de=0;de","?","[","]","{","}"];for(de=0;de0&&(o[4][ct.getCharCode(we[de])]=de);return o}(at.createInt32Array(5,256)),Dc=function(o){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&o[t],s=0;if(i)return i.call(o);if(o&&"number"==typeof o.length)return{next:function(){return o&&s>=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Nd=function(){function o(t){this.text=t}return o.prototype.encode=function(){for(var t=ct.getCharCode(" "),i=ct.getCharCode("\n"),s=hu.singletonList(Sh.INITIAL_STATE),c=0;c0?(s=o.updateStateListForPair(s,c,h),c++):s=this.updateStateListForChar(s,c)}return hu.min(s,function(O,N){return O.getBitCount()-N.getBitCount()}).toBitArray(this.text)},o.prototype.updateStateListForChar=function(t,i){var s,c,h=[];try{for(var v=Dc(t),M=v.next();!M.done;M=v.next())this.updateStateForChar(M.value,i,h)}catch(N){s={error:N}}finally{try{M&&!M.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}return o.simplifyStates(h)},o.prototype.updateStateForChar=function(t,i,s){for(var c=255&this.text[i],h=eu[t.getMode()][c]>0,v=null,M=0;M<=4;M++){var O=eu[M][c];if(O>0){if(null==v&&(v=t.endBinaryShift(i)),!h||M===t.getMode()||2===M){var N=v.latchAndAppend(M,O);s.push(N)}if(!h&&pf[t.getMode()][M]>=0){var $=v.shiftAndAppend(M,O);s.push($)}}}if(t.getBinaryShiftByteCount()>0||0===eu[t.getMode()][c]){var q=t.addBinaryShiftChar(i);s.push(q)}},o.updateStateListForPair=function(t,i,s){var c,h,v=[];try{for(var M=Dc(t),O=M.next();!O.done;O=M.next())this.updateStateForPair(O.value,i,s,v)}catch($){c={error:$}}finally{try{O&&!O.done&&(h=M.return)&&h.call(M)}finally{if(c)throw c.error}}return this.simplifyStates(v)},o.updateStateForPair=function(t,i,s,c){var h=t.endBinaryShift(i);if(c.push(h.latchAndAppend(4,s)),4!==t.getMode()&&c.push(h.shiftAndAppend(4,s)),3===s||4===s){var v=h.latchAndAppend(2,16-s).latchAndAppend(2,1);c.push(v)}if(t.getBinaryShiftByteCount()>0){var M=t.addBinaryShiftChar(i).addBinaryShiftChar(i+1);c.push(M)}},o.simplifyStates=function(t){var i,s,c,h,v=[];try{for(var M=Dc(t),O=M.next();!O.done;O=M.next()){var N=O.value,$=!0,q=function(zt){if(zt.isBetterThanOrEqualTo(N))return $=!1,"break";N.isBetterThanOrEqualTo(zt)&&(v=v.filter(function($t){return $t!==zt}))};try{for(var de=(c=void 0,Dc(v)),we=de.next();!we.done&&"break"!==q(we.value);we=de.next());}catch(zt){c={error:zt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}$&&v.push(N)}}catch(zt){i={error:zt}}finally{try{O&&!O.done&&(s=M.return)&&s.call(M)}finally{if(i)throw i.error}}return v},o}();const Nu=Nd;var Yu=function(){function o(){}return o.encodeBytes=function(t){return o.encode(t,o.DEFAULT_EC_PERCENT,o.DEFAULT_AZTEC_LAYERS)},o.encode=function(t,i,s){var M,O,N,$,q,c=new Nu(t).encode(),h=Ee.truncDivision(c.getSize()*i,100)+11,v=c.getSize()+h;if(s!==o.DEFAULT_AZTEC_LAYERS){if(M=s<0,(O=Math.abs(s))>(M?o.MAX_NB_BITS_COMPACT:o.MAX_NB_BITS))throw new Ge(ct.format("Illegal value %s for layers",s));var de=(N=o.totalBitsInLayer(O,M))-N%($=o.WORD_SIZE[O]);if((q=o.stuffBits(c,$)).getSize()+h>de)throw new Ge("Data to large for user specified layer");if(M&&q.getSize()>64*$)throw new Ge("Data to large for user specified layer")}else{$=0,q=null;for(var we=0;;we++){if(we>o.MAX_NB_BITS)throw new Ge("Data too large for an Aztec code");if(!(v>(N=o.totalBitsInLayer(O=(M=we<=3)?we+1:we,M)))&&((null==q||$!==o.WORD_SIZE[O])&&(q=o.stuffBits(c,$=o.WORD_SIZE[O])),de=N-N%$,!(M&&q.getSize()>64*$)&&q.getSize()+h<=de))break}}var an,et=o.generateCheckWords(q,N,$),vt=q.getSize()/$,zt=o.generateModeMessage(M,O,vt),$t=(M?11:14)+4*O,Gt=new Int32Array($t);if(M)for(an=$t,we=0;we=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Array.from(N)),we=de.next();!we.done;we=de.next())q.appendBits(we.value,s)}catch(vt){c={error:vt}}finally{try{we&&!we.done&&(h=de.return)&&h.call(de)}finally{if(c)throw c.error}}return q},o.bitsToWords=function(t,i,s){var h,v,c=new Int32Array(s);for(h=0,v=t.getSize()/i;h=c||t.get(v+O))&&(M|=1<>10}return h},t.prototype.getRow=function(i,s){if(i<0||i>=this.getHeight())throw new Ge("Requested row is outside the image: "+i);var c=this.getWidth(),h=i*c;return null===s?s=this.buffer.slice(h,h+c):(s.length0&&h[h.length-1])&&(6===N[0]||2===N[0])){i=0;continue}if(3===N[0]&&(!h||N[1]>h[0]&&N[1]=o.length&&(o=void 0),{value:o&&o[s++],done:!o}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Yd={delayBetweenScanAttempts:500,delayBetweenScanSuccess:500,tryPlayVideoTimeout:5e3},hd=function(){function o(t,i,s){void 0===i&&(i=new Map),void 0===s&&(s={}),this.reader=t,this.hints=i,this.options=Fd(Fd({},Yd),s)}return Object.defineProperty(o.prototype,"possibleFormats",{set:function(t){this.hints.set(he.POSSIBLE_FORMATS,t)},enumerable:!1,configurable:!0}),o.addVideoSource=function(t,i){try{t.srcObject=i}catch{console.error("got interrupted by new loading request")}},o.mediaStreamSetTorch=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(s){switch(s.label){case 0:return[4,t.applyConstraints({advanced:[{fillLightMode:i?"flash":"off",torch:!!i}]})];case 1:return s.sent(),[2]}})})},o.mediaStreamIsTorchCompatible=function(t){var i,s,c=t.getVideoTracks();try{for(var h=mu(c),v=h.next();!v.done;v=h.next())if(o.mediaStreamIsTorchCompatibleTrack(v.value))return!0}catch(O){i={error:O}}finally{try{v&&!v.done&&(s=h.return)&&s.call(h)}finally{if(i)throw i.error}}return!1},o.mediaStreamIsTorchCompatibleTrack=function(t){try{return"torch"in t.getCapabilities()}catch(s){return console.error(s),console.warn("Your browser may be not fully compatible with WebRTC and/or ImageCapture specs. Torch will not be available."),!1}},o.isVideoPlaying=function(t){return t.currentTime>0&&!t.paused&&t.readyState>2},o.getMediaElement=function(t,i){var s=document.getElementById(t);if(!s)throw new _e("element with id '".concat(t,"' not found"));if(s.nodeName.toLowerCase()!==i.toLowerCase())throw new _e("element with id '".concat(t,"' must be an ").concat(i," element"));return s},o.createVideoElement=function(t){if(t instanceof HTMLVideoElement)return t;if("string"==typeof t)return o.getMediaElement(t,"video");if(!t&&typeof document<"u"){var i=document.createElement("video");return i.width=200,i.height=200,i}throw new Error("Couldn't get videoElement from videoSource!")},o.prepareImageElement=function(t){if(t instanceof HTMLImageElement)return t;if("string"==typeof t)return o.getMediaElement(t,"img");if(typeof t>"u"){var i=document.createElement("img");return i.width=200,i.height=200,i}throw new Error("Couldn't get imageElement from imageSource!")},o.prepareVideoElement=function(t){var i=o.createVideoElement(t);return i.setAttribute("autoplay","true"),i.setAttribute("muted","true"),i.setAttribute("playsinline","true"),i},o.isImageLoaded=function(t){return!(!t.complete||0===t.naturalWidth)},o.createBinaryBitmapFromCanvas=function(t){var i=new rh(t),s=new gn(i);return new je(s)},o.drawImageOnCanvas=function(t,i){t.drawImage(i,0,0)},o.getMediaElementDimensions=function(t){if(t instanceof HTMLVideoElement)return{height:t.videoHeight,width:t.videoWidth};if(t instanceof HTMLImageElement)return{height:t.naturalHeight||t.height,width:t.naturalWidth||t.width};throw new Error("Couldn't find the Source's dimensions!")},o.createCaptureCanvas=function(t){if(!t)throw new _e("Cannot create a capture canvas without a media element.");if(typeof document>"u")throw new Error('The page "Document" is undefined, make sure you\'re running in a browser.');var i=document.createElement("canvas"),s=o.getMediaElementDimensions(t),c=s.width,h=s.height;return i.style.width=c+"px",i.style.height=h+"px",i.width=c,i.height=h,i},o.tryPlayVideo=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(t?.ended)return console.error("Trying to play video that has ended."),[2,!1];if(o.isVideoPlaying(t))return console.warn("Trying to play video that is already playing."),[2,!0];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,t.play()];case 2:return s.sent(),[2,!0];case 3:return i=s.sent(),console.warn("It was not possible to play the video.",i),[2,!1];case 4:return[2]}})})},o.createCanvasFromMediaElement=function(t){var i=o.createCaptureCanvas(t),s=i.getContext("2d");if(!s)throw new Error("Couldn't find Canvas 2D Context.");return o.drawImageOnCanvas(s,t),i},o.createBinaryBitmapFromMediaElem=function(t){var i=o.createCanvasFromMediaElement(t);return o.createBinaryBitmapFromCanvas(i)},o.destroyImageElement=function(t){t.src="",t.removeAttribute("src"),t=void 0},o.listVideoInputDevices=function(){return us(this,void 0,void 0,function(){var t,i,s,c,h,v,M,O,q,de;return Yo(this,function(we){switch(we.label){case 0:if(!Bu())throw new Error("Can't enumerate devices, navigator is not present.");if(!function sh(){return!(!function oh(){return Bu()&&!!navigator.mediaDevices}()||!navigator.mediaDevices.enumerateDevices)}())throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:t=we.sent(),i=[];try{for(s=mu(t),c=s.next();!c.done;c=s.next())"videoinput"===(v="video"===(h=c.value).kind?"videoinput":h.kind)&&(M=h.deviceId||h.id,O=h.label||"Video device ".concat(i.length+1),i.push({deviceId:M,label:O,kind:v,groupId:h.groupId}))}catch(et){q={error:et}}finally{try{c&&!c.done&&(de=s.return)&&de.call(s)}finally{if(q)throw q.error}}return[2,i]}})})},o.findDeviceById=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:return[4,o.listVideoInputDevices()];case 1:return(i=s.sent())?[2,i.find(function(c){return c.deviceId===t})]:[2]}})})},o.cleanVideoSource=function(t){if(t){try{t.srcObject=null}catch{t.src=""}t&&t.removeAttribute("src")}},o.releaseAllStreams=function(){0!==o.streamTracker.length&&o.streamTracker.forEach(function(t){t.getTracks().forEach(function(i){return i.stop()})}),o.streamTracker=[]},o.playVideoOnLoadAsync=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(c){switch(c.label){case 0:return[4,o.tryPlayVideo(t)];case 1:return c.sent()?[2,!0]:[2,new Promise(function(h,v){var M=setTimeout(function(){o.isVideoPlaying(t)||(v(!1),t.removeEventListener("canplay",O))},i),O=function(){o.tryPlayVideo(t).then(function(N){clearTimeout(M),t.removeEventListener("canplay",O),h(N)})};t.addEventListener("canplay",O)})]}})})},o.attachStreamToVideo=function(t,i,s){return void 0===s&&(s=5e3),us(this,void 0,void 0,function(){var c;return Yo(this,function(h){switch(h.label){case 0:return c=o.prepareVideoElement(i),o.addVideoSource(c,t),[4,o.playVideoOnLoadAsync(c,s)];case 1:return h.sent(),[2,c]}})})},o._waitImageLoad=function(t){return new Promise(function(i,s){var h=setTimeout(function(){o.isImageLoaded(t)||(t.removeEventListener("load",v),s())},1e4),v=function(){clearTimeout(h),t.removeEventListener("load",v),i()};t.addEventListener("load",v)})},o.checkCallbackFnOrThrow=function(t){if(!t)throw new _e("`callbackFn` is a required parameter, you cannot capture results without it.")},o.disposeMediaStream=function(t){t.getVideoTracks().forEach(function(i){return i.stop()}),t=void 0},o.prototype.decode=function(t){var i=o.createCanvasFromMediaElement(t);return this.decodeFromCanvas(i)},o.prototype.decodeBitmap=function(t){return this.reader.decode(t,this.hints)},o.prototype.decodeFromCanvas=function(t){var i=o.createBinaryBitmapFromCanvas(t);return this.decodeBitmap(i)},o.prototype.decodeFromImageElement=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(!t)throw new _e("An image element must be provided.");return i=o.prepareImageElement(t),[4,this._decodeOnLoadImage(i)];case 1:return[2,s.sent()]}})})},o.prototype.decodeFromImageUrl=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:if(!t)throw new _e("An URL must be provided.");(i=o.prepareImageElement()).src=t,s.label=1;case 1:return s.trys.push([1,,3,4]),[4,this.decodeFromImageElement(i)];case 2:return[2,s.sent()];case 3:return o.destroyImageElement(i),[7];case 4:return[2]}})})},o.prototype.decodeFromConstraints=function(t,i,s){return us(this,void 0,void 0,function(){var c,h;return Yo(this,function(v){switch(v.label){case 0:return o.checkCallbackFnOrThrow(s),[4,this.getUserMedia(t)];case 1:c=v.sent(),v.label=2;case 2:return v.trys.push([2,4,,5]),[4,this.decodeFromStream(c,i,s)];case 3:return[2,v.sent()];case 4:throw h=v.sent(),o.disposeMediaStream(c),h;case 5:return[2]}})})},o.prototype.decodeFromStream=function(t,i,s){return us(this,void 0,void 0,function(){var h,M,O,N,q,de,we=this;return Yo(this,function(et){switch(et.label){case 0:return o.checkCallbackFnOrThrow(s),[4,o.attachStreamToVideo(t,i,this.options.tryPlayVideoTimeout)];case 1:return h=et.sent(),M=this.scan(h,s,function(){o.disposeMediaStream(t),o.cleanVideoSource(h)}),O=t.getVideoTracks(),N=Fd(Fd({},M),{stop:function(){M.stop()},streamVideoConstraintsApply:function(vt,zt){return us(this,void 0,void 0,function(){var $t,Gt,an,Nn,Zn,Kn;return Yo(this,function(fi){switch(fi.label){case 0:$t=zt?O.filter(zt):O,fi.label=1;case 1:fi.trys.push([1,6,7,8]),Gt=mu($t),an=Gt.next(),fi.label=2;case 2:return an.done?[3,5]:[4,an.value.applyConstraints(vt)];case 3:fi.sent(),fi.label=4;case 4:return an=Gt.next(),[3,2];case 5:return[3,8];case 6:return Nn=fi.sent(),Zn={error:Nn},[3,8];case 7:try{an&&!an.done&&(Kn=Gt.return)&&Kn.call(Gt)}finally{if(Zn)throw Zn.error}return[7];case 8:return[2]}})})},streamVideoConstraintsGet:function(vt){return O.find(vt).getConstraints()},streamVideoSettingsGet:function(vt){return O.find(vt).getSettings()},streamVideoCapabilitiesGet:function(vt){return O.find(vt).getCapabilities()}}),o.mediaStreamIsTorchCompatible(t)&&(q=O?.find(function(vt){return o.mediaStreamIsTorchCompatibleTrack(vt)}),N.switchTorch=de=function(vt){return us(we,void 0,void 0,function(){return Yo(this,function(zt){switch(zt.label){case 0:return[4,o.mediaStreamSetTorch(q,vt)];case 1:return zt.sent(),[2]}})})},N.stop=function(){return us(we,void 0,void 0,function(){return Yo(this,function(vt){switch(vt.label){case 0:return M.stop(),[4,de(!1)];case 1:return vt.sent(),[2]}})})}),[2,N]}})})},o.prototype.decodeFromVideoDevice=function(t,i,s){return us(this,void 0,void 0,function(){return Yo(this,function(v){switch(v.label){case 0:return o.checkCallbackFnOrThrow(s),[4,this.decodeFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i,s)];case 1:return[2,v.sent()]}})})},o.prototype.decodeFromVideoElement=function(t,i){return us(this,void 0,void 0,function(){var s;return Yo(this,function(h){switch(h.label){case 0:if(o.checkCallbackFnOrThrow(i),!t)throw new _e("A video element must be provided.");return s=o.prepareVideoElement(t),[4,o.playVideoOnLoadAsync(s,this.options.tryPlayVideoTimeout)];case 1:return h.sent(),[2,this.scan(s,i)]}})})},o.prototype.decodeFromVideoUrl=function(t,i){return us(this,void 0,void 0,function(){var s,c;return Yo(this,function(M){switch(M.label){case 0:if(o.checkCallbackFnOrThrow(i),!t)throw new _e("An URL must be provided.");return(s=o.prepareVideoElement()).src=t,c=function(){o.cleanVideoSource(s)},[4,o.playVideoOnLoadAsync(s,this.options.tryPlayVideoTimeout)];case 1:return M.sent(),[2,this.scan(s,i,c)]}})})},o.prototype.decodeOnceFromConstraints=function(t,i){return us(this,void 0,void 0,function(){var s;return Yo(this,function(c){switch(c.label){case 0:return[4,this.getUserMedia(t)];case 1:return s=c.sent(),[4,this.decodeOnceFromStream(s,i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromStream=function(t,i){return us(this,void 0,void 0,function(){var s,c;return Yo(this,function(v){switch(v.label){case 0:return s=!!i,[4,o.attachStreamToVideo(t,i)];case 1:c=v.sent(),v.label=2;case 2:return v.trys.push([2,,4,5]),[4,this.scanOneResult(c)];case 3:return[2,v.sent()];case 4:return s||o.cleanVideoSource(c),[7];case 5:return[2]}})})},o.prototype.decodeOnceFromVideoDevice=function(t,i){return us(this,void 0,void 0,function(){return Yo(this,function(h){switch(h.label){case 0:return[4,this.decodeOnceFromConstraints({video:t?{deviceId:{exact:t}}:{facingMode:"environment"}},i)];case 1:return[2,h.sent()]}})})},o.prototype.decodeOnceFromVideoElement=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(c){switch(c.label){case 0:if(!t)throw new _e("A video element must be provided.");return i=o.prepareVideoElement(t),[4,o.playVideoOnLoadAsync(i,this.options.tryPlayVideoTimeout)];case 1:return c.sent(),[4,this.scanOneResult(i)];case 2:return[2,c.sent()]}})})},o.prototype.decodeOnceFromVideoUrl=function(t){return us(this,void 0,void 0,function(){var i,s;return Yo(this,function(c){switch(c.label){case 0:if(!t)throw new _e("An URL must be provided.");(i=o.prepareVideoElement()).src=t,s=this.decodeOnceFromVideoElement(i),c.label=1;case 1:return c.trys.push([1,,3,4]),[4,s];case 2:return[2,c.sent()];case 3:return o.cleanVideoSource(i),[7];case 4:return[2]}})})},o.prototype.scanOneResult=function(t,i,s,c){var h=this;return void 0===i&&(i=!0),void 0===s&&(s=!0),void 0===c&&(c=!0),new Promise(function(v,M){h.scan(t,function(O,N,$){if(O)return v(O),void $.stop();if(N){if(N instanceof Se&&i||N instanceof St&&s||N instanceof bt&&c)return;$.stop(),M(N)}})})},o.prototype.scan=function(t,i,s){var c=this;o.checkCallbackFnOrThrow(i);var h=o.createCaptureCanvas(t),v=h.getContext("2d");if(!v)throw new Error("Couldn't create canvas for visual element scan.");var N,M=function(){v=void 0,h=void 0},O=!1,q={stop:function(){O=!0,clearTimeout(N),M(),s&&s()}},de=function(){if(!O)try{o.drawImageOnCanvas(v,t);var we=c.decodeFromCanvas(h);i(we,void 0,q),N=setTimeout(de,c.options.delayBetweenScanSuccess)}catch($t){if(i(void 0,$t,q),$t instanceof St||$t instanceof bt||$t instanceof Se)return void(N=setTimeout(de,c.options.delayBetweenScanAttempts));M(),s&&s($t)}};return de(),q},o.prototype._decodeOnLoadImage=function(t){return us(this,void 0,void 0,function(){return Yo(this,function(s){switch(s.label){case 0:return o.isImageLoaded(t)?[3,2]:[4,o._waitImageLoad(t)];case 1:s.sent(),s.label=2;case 2:return[2,this.decode(t)]}})})},o.prototype.getUserMedia=function(t){return us(this,void 0,void 0,function(){var i;return Yo(this,function(s){switch(s.label){case 0:return[4,navigator.mediaDevices.getUserMedia(t)];case 1:return i=s.sent(),o.streamTracker.push(i),[2,i]}})})},o.streamTracker=[],o}(),_f=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),Oh=(function(o){_f(function t(i,s){return o.call(this,new Vo,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),ah=(function(o){Oh(function t(i,s){return o.call(this,new yi(i),i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),tu=(function(o){ah(function t(i,s){return o.call(this,new cc,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),lh=function(o){function t(i,s){var c=this,h=new Jd;return h.setHints(i),(c=o.call(this,h,i,s)||this).reader=h,c}return tu(t,o),Object.defineProperty(t.prototype,"possibleFormats",{set:function(i){this.hints.set(he.POSSIBLE_FORMATS,i),this.reader.setHints(this.hints)},enumerable:!1,configurable:!0}),t.prototype.decodeBitmap=function(i){return this.reader.decodeWithState(i)},t.prototype.setHints=function(i){this.hints=i,this.reader.setHints(this.hints)},t}(hd),mf=function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),gf=(function(o){mf(function t(i,s){return o.call(this,new Pa,i,s)||this},o)}(hd),function(){var o=function(t,i){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,c){s.__proto__=c}||function(s,c){for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(s[h]=c[h])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function s(){this.constructor=t}o(t,i),t.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}()),fd=(function(o){gf(function t(i,s){return o.call(this,new js,i,s)||this},o)}(hd),"http://www.w3.org/2000/svg"),kh=(function(){function o(t){if("string"==typeof t){var i=document.getElementById(t);if(!i)throw new Error("Could not find a Container element with '".concat(t,"'."));this.containerElement=i}else this.containerElement=t}o.prototype.write=function(t,i,s,c){if(0===t.length)throw new Ge("Found empty contents");if(i<0||s<0)throw new Ge("Requested dimensions are too small: "+i+"x"+s);var h=c&&void 0!==c.get(pi.MARGIN)?Number.parseInt(c.get(pi.MARGIN).toString(),10):o.QUIET_ZONE_SIZE,v=this.encode(c,t);return this.renderResult(v,i,s,h)},o.prototype.createSVGElement=function(t,i){var s=document.createElementNS(o.SVG_NS,"svg");return s.setAttributeNS(fd,"width",i.toString()),s.setAttributeNS(fd,"height",t.toString()),s},o.prototype.createSvgPathPlaceholderElement=function(t,i){var s=document.createElementNS(o.SVG_NS,"path");return s.setAttributeNS(fd,"d","M0 0h".concat(t,"v").concat(i,"H0z")),s.setAttributeNS(fd,"fill","none"),s},o.prototype.createSvgRectElement=function(t,i,s,c){var h=document.createElementNS(o.SVG_NS,"rect");return h.setAttributeNS(fd,"x",t.toString()),h.setAttributeNS(fd,"y",i.toString()),h.setAttributeNS(fd,"height",s.toString()),h.setAttributeNS(fd,"width",c.toString()),h.setAttributeNS(fd,"fill","#000000"),h},o.prototype.encode=function(t,i){var s=aa.L;if(t&&void 0!==t.get(pi.ERROR_CORRECTION)){var c=t.get(pi.ERROR_CORRECTION).toString();s=aa.fromString(c)}return Fl.encode(i,s,t)},o.prototype.renderResult=function(t,i,s,c){var h=t.getMatrix();if(null===h)throw new ki;var v=h.getWidth(),M=h.getHeight(),O=v+2*c,N=M+2*c,$=Math.max(i,O),q=Math.max(s,N),de=Math.min(Math.floor($/O),Math.floor(q/N)),we=Math.floor(($-v*de)/2),et=Math.floor((q-M*de)/2),vt=this.createSVGElement($,q),zt=this.createSvgPathPlaceholderElement(i,s);vt.appendChild(zt),this.containerElement.appendChild(vt);for(var $t=0,Gt=et;$t{if(!M)return void c.next({result:v});const O=M.name;O===Se.name||O===St.name||O===bt.name||M.message.includes("No MultiFormat Readers were able to detect the code.")?c.next({error:M}):(c.error(M),s.scannerControls.stop(),s.scannerControls=void 0)}),s.scannerControls={...h,stop(){h.stop(),c.complete()}}}catch(v){c.error(v),s.scannerControls?.stop(),s.scannerControls=void 0}return c.asObservable()})()}}let $f=(()=>{class o{get codeReader(){return this._codeReader}set device(i){this._ready?this.isAutostarting?console.warn("Avoid setting a device during auto-start."):this.isCurrentDevice(i)?console.warn("Setting the same device is not allowed."):this.hasPermission?this.setDevice(i):console.warn("Permissions not set yet, waiting for them to be set to apply device change."):this._devicePreStart=i}get device(){return this._device}get formats(){return this.hints.get(he.POSSIBLE_FORMATS)}set formats(i){if("string"==typeof i)throw new Error("Invalid formats, make sure the [formats] input is a binding.");const s=i.map(h=>this.getBarcodeFormatOrFail(h)),c=this.hints;c.set(he.POSSIBLE_FORMATS,s),this.hints=c}get hints(){return this._hints}set hints(i){this._hints=i,this.codeReader?.setHints(this._hints)}set videoConstraints(i){const s=this.codeReader?.getScannerControls();s&&s?.streamVideoConstraintsApply(i)}set isAutostarting(i){this._isAutostarting=i,this.autostarting.next(i)}get isAutostarting(){return this._isAutostarting}set torch(i){try{this.getCodeReader().getScannerControls().switchTorch(i)}catch{}}set enable(i){this._enabled=!!i,this._enabled?this.device?this.scanFromDevice(this.device.deviceId):this.init():(this.reset(),Hd.releaseAllStreams())}get enabled(){return this._enabled}get tryHarder(){return this.hints.get(he.TRY_HARDER)}set tryHarder(i){const s=this.hints;i?s.set(he.TRY_HARDER,!0):s.delete(he.TRY_HARDER),this.hints=s}constructor(){this.timeBetweenScans=500,this.delayBetweenScanSuccess=500,this.previewFitMode="cover",this.poster="",this._ready=!1,this.autostarted=new D.vpe,this.autostarting=new D.vpe,this.torchCompatible=new D.vpe(!1),this.scanSuccess=new D.vpe,this.scanFailure=new D.vpe,this.scanError=new D.vpe,this.scanComplete=new D.vpe,this.camerasFound=new D.vpe,this.camerasNotFound=new D.vpe,this.permissionResponse=new D.vpe(!0),this.hasDevices=new D.vpe,this.deviceChange=new D.vpe,this._enabled=!0,this._hints=new Map,this.autofocusEnabled=!0,this.autostart=!0,this.formats=[be.QR_CODE],this.hasNavigator=typeof navigator<"u",this.isMediaDevicesSupported=this.hasNavigator&&!!navigator.mediaDevices}askForPermission(){var i=this;return(0,e.Z)(function*(){if(!i.hasNavigator)return console.error("@zxing/ngx-scanner","Can't ask permission, navigator is not present."),i.setPermission(null),i.hasPermission;if(!i.isMediaDevicesSupported)return console.error("@zxing/ngx-scanner","Can't get user media, this is not supported."),i.setPermission(null),i.hasPermission;let s,c;try{s=yield i.getAnyVideoDevice(),c=!!s}catch(h){return i.handlePermissionException(h)}finally{i.terminateStream(s)}return i.setPermission(c),c})()}getAnyVideoDevice(){return navigator.mediaDevices.getUserMedia({video:!0})}terminateStream(i){i&&i.getTracks().forEach(s=>s.stop()),i=void 0}init(){var i=this;return(0,e.Z)(function*(){if(!i.autostart)return console.warn("Feature 'autostart' disabled. Permissions and devices recovery has to be run manually."),i.initAutostartOff(),void(i._ready=!0);yield i.initAutostartOn(),i._ready=!0})()}initAutostartOff(){this.isAutostarting=!1,this.updateVideoInputDevices(),this._device&&this._devicePreStart&&this.setDevice(this._devicePreStart)}initAutostartOn(){var i=this;return(0,e.Z)(function*(){let s;i.isAutostarting=!0;try{s=yield i.askForPermission()}catch(c){return void console.error("Exception occurred while asking for permission:",c)}if(s){const c=yield i.updateVideoInputDevices();yield i.autostartScanner([...c])}i.isAutostarting=!1,i.autostarted.next()})()}isCurrentDevice(i){return i?.deviceId===this._device?.deviceId}ngOnDestroy(){this.reset(),Hd.releaseAllStreams()}ngOnInit(){this.init()}scanStop(){this._scanSubscription&&(this.codeReader?.getScannerControls().stop(),this._scanSubscription?.unsubscribe(),this._scanSubscription=void 0),this.torchCompatible.next(!1)}scanStart(){if(this._scanSubscription)throw new Error("There is already a scan process running.");if(!this._device)throw new Error("No device defined, cannot start scan, please define a device.");this.scanFromDevice(this._device.deviceId)}restart(){this._codeReader=void 0;const i=this._reset();i&&(this.device=i)}updateVideoInputDevices(){var i=this;return(0,e.Z)(function*(){const s=(yield hd.listVideoInputDevices())||[],c=s&&s.length>0;return i.hasDevices.next(c),i.camerasFound.next([...s]),c||i.camerasNotFound.next(null),s})()}autostartScanner(i){var s=this;return(0,e.Z)(function*(){const h=i.find(({label:v})=>/back|tr\xe1s|rear|traseira|environment|ambiente/gi.test(v))||i.pop();if(!h)throw new Error("Impossible to autostart, no input devices available.");yield s.setDevice(h),s.deviceChange.next(h)})()}dispatchScanSuccess(i){this.scanSuccess.next(i.getText())}dispatchScanFailure(i){this.scanFailure.next(i)}dispatchScanError(i){this.scanError.observed||(console.error(`zxing scanner component: ${i.name}`,i),console.warn("Use the `(scanError)` property to handle errors like this!")),this.scanError.next(i)}dispatchScanComplete(i){this.scanComplete.next(i)}handlePermissionException(i){let s;switch(console.error("@zxing/ngx-scanner","Error when asking for permission.",i),i.name){case"NotSupportedError":console.warn("@zxing/ngx-scanner",i.message),s=null,this.hasDevices.next(null);break;case"NotAllowedError":console.warn("@zxing/ngx-scanner",i.message),s=!1,this.hasDevices.next(!0);break;case"NotFoundError":console.warn("@zxing/ngx-scanner",i.message),s=null,this.hasDevices.next(!1),this.camerasNotFound.next(i);break;case"NotReadableError":console.warn("@zxing/ngx-scanner","Couldn't read the device(s)'s stream, it's probably in use by another app."),s=null,this.hasDevices.next(!1),this.camerasNotFound.next(i);break;default:console.warn("@zxing/ngx-scanner","I was not able to define if I have permissions for camera or not.",i),s=null}return this.setPermission(s),this.permissionResponse.error(i),s}getBarcodeFormatOrFail(i){return"string"==typeof i?be[i.trim().toUpperCase()]:i}getCodeReader(){return this._codeReader||(this._codeReader=new Hd(this.hints,{delayBetweenScanAttempts:this.timeBetweenScans,delayBetweenScanSuccess:this.delayBetweenScanSuccess})),this._codeReader}scanFromDevice(i){var s=this;return(0,e.Z)(function*(){const c=s.previewElemRef.nativeElement,h=s.getCodeReader(),v=yield h.scanFromDeviceObservable(i,c);if(!v)throw new Error("Undefined decoding stream, aborting.");if(s._scanSubscription=v.subscribe(de=>s._onDecodeResult(de.result,de.error),de=>s._onDecodeError(de),()=>{}),s._scanSubscription.closed)return;const q=typeof h.getScannerControls().switchTorch<"u";s.torchCompatible.next(q)})()}_onDecodeError(i){this.dispatchScanError(i)}_onDecodeResult(i,s){i?this.dispatchScanSuccess(i):this.dispatchScanFailure(s),this.dispatchScanComplete(i)}_reset(){if(!this._codeReader)return;this._codeReader=void 0;const i=this._device;return this.device=void 0,i}reset(){this._reset(),this.deviceChange.emit(null)}setDevice(i){var s=this;return(0,e.Z)(function*(){s.scanStop(),s._device=i||void 0,s._device||hd.cleanVideoSource(s.previewElemRef.nativeElement),s._enabled&&i&&(yield s.scanFromDevice(i.deviceId))})()}setPermission(i){this.hasPermission=i,this.permissionResponse.next(i)}static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275cmp=D.Xpm({type:o,selectors:[["zxing-scanner"]],viewQuery:function(s,c){if(1&s&&D.Gf(qc,7),2&s){let h;D.iGM(h=D.CRH())&&(c.previewElemRef=h.first)}},inputs:{autofocusEnabled:"autofocusEnabled",timeBetweenScans:"timeBetweenScans",delayBetweenScanSuccess:"delayBetweenScanSuccess",autostart:"autostart",previewFitMode:"previewFitMode",poster:"poster",device:"device",formats:"formats",videoConstraints:"videoConstraints",torch:"torch",enable:"enable",tryHarder:"tryHarder"},outputs:{autostarted:"autostarted",autostarting:"autostarting",torchCompatible:"torchCompatible",scanSuccess:"scanSuccess",scanFailure:"scanFailure",scanError:"scanError",scanComplete:"scanComplete",camerasFound:"camerasFound",camerasNotFound:"camerasNotFound",permissionResponse:"permissionResponse",hasDevices:"hasDevices",deviceChange:"deviceChange"},decls:6,vars:3,consts:[[3,"poster"],["preview",""]],template:function(s,c){1&s&&(D.TgZ(0,"video",0,1)(2,"p"),D._uU(3," Your browser does not support this feature, please try to upgrade it. "),D.qZA(),D.TgZ(4,"p"),D._uU(5," Seu navegador n\xe3o suporta este recurso, por favor tente atualiz\xe1-lo. "),D.qZA()()),2&s&&(D.Udp("object-fit",c.previewFitMode),D.Q6J("poster",c.poster,D.LSH))},styles:["[_nghost-%COMP%]{display:block}video[_ngcontent-%COMP%]{width:100%;height:auto;object-fit:contain}"],changeDetection:0})}return o})(),vu=(()=>{class o{static#e=this.\u0275fac=function(s){return new(s||o)};static#t=this.\u0275mod=D.oAB({type:o});static#n=this.\u0275inj=D.cJS({imports:[l.ez,I.u5]})}return o})()},5806:(ft,Ie,C)=>{"use strict";C.d(Ie,{F:()=>S});var e=C(8645),l=C(2181),D=C(7398);class I{constructor(n,Z){this._id=this.uuid(),this._key=n,this._data=Z,this._timestamp=(new Date).getTime()}get id(){return this._id}get key(){return this._key}get data(){return this._data}get timestamp(){return this._timestamp}uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const Z=16*Math.random()|0;return("x"===n?Z:3&Z|8).toString(16)})}}class S{constructor(){this.separator=":",this.eventBus=new e.x}keyMatch(n,Z){const ue=(mt,Ge)=>"*"===mt||mt===Ge,se=this.separator,te=n.split(se),oe=Z.split(se),Re=Math.max(te.length,oe.length);for(let mt=0;mtthis.keyMatch(Z.key,n)),(0,D.U)(Z=>Z.metadata))}}},1835:(ft,Ie,C)=>{"use strict";C.d(Ie,{oj:()=>Z});var e=C(5879),l=C(3161),D=C(4060),I=C(6814);class w{constructor(re,ue,se){this.nodes=re,this.viewRef=ue,this.componentRef=se}}class n{constructor(re,ue,se,te,oe,ce,_e,Re,mt){this._viewContainerRef=re,this._renderer=ue,this._elementRef=se,this._injector=te,this._componentFactoryResolver=oe,this._ngZone=ce,this._applicationRef=_e,this._posService=Re,this._document=mt,this.onBeforeShow=new e.vpe,this.onShown=new e.vpe,this.onBeforeHide=new e.vpe,this.onHidden=new e.vpe,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(re){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(re),this}to(re){return this.container=re||this.container,this}position(re){return re?(this.attachment=re.attachment||this.attachment,this._elementRef=re.target||this._elementRef,this):this}provide(re){return this._providers.push(re),this}show(re={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(re.content,re.context,re.initialState);const ue=e.zs3.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(ue,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,re),this.container instanceof e.SBq&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const se=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!se)return;se.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(re.id?{id:re.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(re){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const ue=this._componentRef.location.nativeElement;return ue.parentNode?.removeChild(ue),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(re?{id:re}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(re){this.triggers=re.triggers||this.triggers,this._listenOpts.outsideClick=re.outsideClick,this._listenOpts.outsideEsc=re.outsideEsc,re.target=re.target||this._elementRef?.nativeElement;const ue=this._listenOpts.hide=()=>re.hide?re.hide():void this.hide(),se=this._listenOpts.show=oe=>{re.show?re.show(oe):this.show(oe),oe()};return this._renderer&&(this._unregisterListenersFn=(0,l.wo)(this._renderer,{target:re.target,triggers:re.triggers,show:se,hide:ue,toggle:oe=>{this.isShown?ue():se(oe)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(re,ue){return re&&ue&&(this._inlineViewRef=re.createEmbeddedView(ue)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const re=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=(0,l.Rg)(this._renderer,{targets:[re,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=(0,l.C)(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(re,ue,se){if(!re)return new w([]);if(re instanceof e.Rgc){if(this._viewContainerRef){const ce=this._viewContainerRef.createEmbeddedView(re,ue);return ce.markForCheck(),new w([ce.rootNodes],ce)}const oe=re.createEmbeddedView({});return this._applicationRef.attachView(oe),new w([oe.rootNodes],oe)}if("function"==typeof re){const oe=this._componentFactoryResolver.resolveComponentFactory(re),ce=e.zs3.create({providers:this._providers,parent:this._injector}),_e=oe.create(ce);return Object.assign(_e.instance,se),this._applicationRef.attachView(_e.hostView),new w([[_e.location.nativeElement]],_e.hostView,_e)}const te=this._renderer?[this._renderer.createText(`${re}`)]:[];return new w([te])}}let Z=(()=>{class ee{constructor(ue,se,te,oe,ce,_e){this._componentFactoryResolver=ue,this._ngZone=se,this._injector=te,this._posService=oe,this._applicationRef=ce,this._document=_e}createLoader(ue,se,te){return new n(se,te,ue,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static#e=this.\u0275fac=function(se){return new(se||ee)(e.LFG(e._Vd),e.LFG(e.R0b),e.LFG(e.zs3),e.LFG(D.sA),e.LFG(e.z2F),e.LFG(I.K0))};static#t=this.\u0275prov=e.Yz7({token:ee,factory:ee.\u0275fac,providedIn:"root"})}return ee})()},9277:(ft,Ie,C)=>{"use strict";C.d(Ie,{Np:()=>vt,Y5:()=>Gi,kn:()=>Cs});var e=C(5879),l=C(2181),D=C(7398),I=C(8180),S=C(9773),w=C(3997);function Z(f){return f<0?Math.ceil(f)||0:Math.floor(f)}function ee(f){return"string"==typeof f}function re(f){return f instanceof Date||"[object Date]"===Object.prototype.toString.call(f)}function se(f){return f&&f.getTime&&!isNaN(f.getTime())}function te(f){return f instanceof Function||"[object Function]"===Object.prototype.toString.call(f)}function oe(f){return"number"==typeof f||"[object Number]"===Object.prototype.toString.call(f)}function ce(f){return f instanceof Array||"[object Array]"===Object.prototype.toString.call(f)}function _e(f,E){return Object.prototype.hasOwnProperty.call(f,E)}function Re(f){return null!=f&&"[object Object]"===Object.prototype.toString.call(f)}function Ge(f){return void 0===f}function Lt(f){const E=+f;let b=0;return 0!==E&&isFinite(E)&&(b=Z(E)),b}const je={},Tt={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function xt(f,E){const b=f.toLowerCase();let P=f;b in Tt&&(P=Tt[b]),je[b]=je[`${b}s`]=je[E]=P}function St(f){return ee(f)?je[f]||je[f.toLowerCase()]:void 0}const yt=0,un=1,Jt=2,tn=3,wn=4,Ln=5,Yn=6,ti=7,gi=8;function Rn(f,E,b){const P=`${Math.abs(f)}`;return(f>=0?b?"+":"":"-")+Math.pow(10,Math.max(0,E-P.length)).toString().substr(1)+P}const dt={},at={},Be=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function Ee(f,E,b,P){f&&(at[f]=P),E&&(at[E[0]]=function(){return Rn(P.apply(null,arguments),E[1],E[2])}),b&&(at[b]=function(H,Me){return Me.locale.ordinal(P.apply(null,arguments),f)})}function me(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}function tt(f,E,b){const P=new Date(Date.UTC.apply(null,arguments));return f<100&&f>=0&&isFinite(P.getUTCFullYear())&&P.setUTCFullYear(f),P}function he(f,E=0,b=1,P=0,H=0,Me=0,Et=0){const yn=new Date(f,E,b,P,H,Me,Et);return f<100&&f>=0&&isFinite(yn.getFullYear())&&yn.setFullYear(f),yn}function Ze(f,E=!1){return E?f.getUTCHours():f.getHours()}function rt(f,E=!1){return E?f.getUTCMinutes():f.getMinutes()}function bt(f,E=!1){return E?f.getUTCSeconds():f.getSeconds()}function Nt(f,E=!1){return E?f.getUTCMilliseconds():f.getMilliseconds()}function nn(f,E=!1){return E?f.getUTCDay():f.getDay()}function Dn(f,E=!1){return E?f.getUTCDate():f.getDate()}function Ot(f,E=!1){return E?f.getUTCMonth():f.getMonth()}function rn(f,E=!1){return E?f.getUTCFullYear():f.getFullYear()}function Ce(f,E){return!(!f||!E)&&J(f,E)&&Ot(f)===Ot(E)}function J(f,E){return!(!f||!E)&&rn(f)===rn(E)}function ae(f,E){return!(!f||!E)&&J(f,E)&&Ce(f,E)&&Dn(f)===Dn(E)}const Oe=/\d/,ot=/\d\d/,Se=/\d{3}/,Ft=/\d{4}/,lt=/[+-]?\d{6}/,Bt=/\d\d?/,Ut=/\d\d\d\d?/,fn=/\d\d\d\d\d\d?/,gn=/\d{1,3}/,An=/\d{1,4}/,jn=/[+-]?\d{1,6}/,ai=/\d+/,di=/[+-]?\d+/,Jn=/Z|[+-]\d\d(?::?\d\d)?/gi,qt=/[+-]?\d+(\.\d{1,3})?/,_t=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,G={};function U(f,E,b){G[f]=te(E)?E:function(P,H){return P&&b?b:E}}function ve(f,E){return _e(G,f)?G[f](!1,E):new RegExp(function Pe(f){return ut(f.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(E,b,P,H,Me)=>b||P||H||Me))}(f))}function ut(f){return f.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const We={};function ze(f,E){const b=ee(f)?[f]:f;let P=E;if(oe(E)&&(P=function(H,Me,Et){return Me[E]=Lt(H),Et}),ce(b)&&te(P)){let H;for(H=0;H68?1900:2e3)}function ht(f){return st(f)?366:365}function st(f){return f%4==0&&f%100!=0||f%400==0}function It(f,E){if(isNaN(f)||isNaN(E))return NaN;const b=function n(f,E){return(f%E+E)%E}(E,12);return 1===b?st(f+(E-b)/12)?29:28:31-b%7%2}const _n={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function En(f,E){const b=Object.assign({},_n,E),P=f.getFullYear()+(b.year||0),H=f.getMonth()+(b.month||0);let Me=f.getDate()+(b.day||0);return b.month&&!b.day&&(Me=Math.min(Me,It(P,H))),he(P,H,Me,f.getHours()+(b.hour||0),f.getMinutes()+(b.minute||0),f.getSeconds()+(b.seconds||0))}function ni(f,E){return oe(E)?E:f}function fr(f,E,b){const P=Math.min(Dn(f),It(rn(f),E));return b?f.setUTCMonth(E,P):f.setMonth(E,P),f}function Ji(f,E,b){return b?f.setUTCDate(E):f.setDate(E),f}function _i(f){return new Date(f.getTime())}function bo(f,E,b){const P=_i(f);switch(E){case"year":fr(P,0,b);case"quarter":case"month":Ji(P,1,b);case"week":case"isoWeek":case"day":case"date":!function Kr(f,E,b){b?f.setUTCHours(E):f.setHours(E)}(P,0,b);case"hours":!function vr(f,E,b){b?f.setUTCMinutes(E):f.setMinutes(E)}(P,0,b);case"minutes":!function Bi(f,E,b){b?f.setUTCSeconds(E):f.setSeconds(E)}(P,0,b);case"seconds":!function co(f,E,b){b?f.setUTCMilliseconds(E):f.setMilliseconds(E)}(P,0,b)}return"week"===E&&function oa(f,E,b={}){mr(f,E-yi(f,b.locale,b.isUTC),"day")}(P,0,{isUTC:b}),"isoWeek"===E&&function _o(f,E,b={}){const P=function Ma(f,E=sr()){return ee(f)?E.weekdaysParse(f)%7||7:oe(f)&&isNaN(f)?null:f}(E,b.locale);zr(f,function Qi(f,E){return nn(f,E)}(f)%7?P:P-7)}(P,1),"quarter"===E&&fr(P,3*Math.floor(Ot(P,b)/3),b),P}function pr(f,E,b){let P=E;return"date"===P&&(P="day"),function vs(f,E,b,P){return bs(f,hr(E,b),-1,P)}(mr(bo(f,P,b),1,"isoWeek"===P?"week":P,b),1,"milliseconds",b)}function $n(f,E){const b=+bo(f,"day",E),P=+bo(f,"year",E);return Math.round((b-P)/864e5)+1}function Fr(f,E,b){const P=E-b+7;return-(tt(f,0,P).getUTCDay()-E+7)%7+P-1}function ho(f,E,b,P){const H=Fr(rn(f,P),E,b),Me=Math.floor(($n(f,P)-H-1)/7)+1;let Et,yn;return Me<1?(yn=rn(f,P)-1,Et=Me+to(yn,E,b)):Me>to(rn(f,P),E,b)?(Et=Me-to(rn(f,P),E,b),yn=rn(f,P)+1):(yn=rn(f,P),Et=Me),{week:Et,year:yn}}function to(f,E,b){const P=Fr(f,E,b),H=Fr(f+1,E,b);return(ht(f)-P+H)/7}const yr=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Gs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ba="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),xl="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),So="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ws="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ds={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Jr=_t,ga=_t;class kr{constructor(E){E&&this.set(E)}set(E){let b;for(b in E){if(!E.hasOwnProperty(b))continue;const P=E[b];this[te(P)?b:`_${b}`]=P}this._config=E}calendar(E,b,P){const H=this._calendar[E]||this._calendar.sameElse;return te(H)?H.call(null,b,P):H}longDateFormat(E){const b=this._longDateFormat[E],P=this._longDateFormat[E.toUpperCase()];return b||!P?b:(this._longDateFormat[E]=P.replace(/MMMM|MM|DD|dddd/g,function(H){return H.slice(1)}),this._longDateFormat[E])}get invalidDate(){return this._invalidDate}set invalidDate(E){this._invalidDate=E}ordinal(E,b){return this._ordinal.replace("%d",E.toString(10))}preparse(E,b){return E}getFullYear(E,b=!1){return rn(E,b)}postformat(E){return E}relativeTime(E,b,P,H){const Me=this._relativeTime[P];return te(Me)?Me(E,b,P,H):Me.replace(/%d/i,E.toString(10))}pastFuture(E,b){const P=this._relativeTime[E>0?"future":"past"];return te(P)?P(b):P.replace(/%s/i,b)}months(E,b,P=!1){if(!E)return ce(this._months)?this._months:this._months.standalone;if(ce(this._months))return this._months[Ot(E,P)];const H=(this._months.isFormat||yr).test(b)?"format":"standalone";return this._months[H][Ot(E,P)]}monthsShort(E,b,P=!1){if(!E)return ce(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(ce(this._monthsShort))return this._monthsShort[Ot(E,P)];const H=yr.test(b)?"format":"standalone";return this._monthsShort[H][Ot(E,P)]}monthsParse(E,b,P){let H,Me,Et;if(this._monthsParseExact)return this.handleMonthStrictParse(E,b,P);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),Et=0;Et<12;Et++){if(H=new Date(Date.UTC(2e3,Et)),P&&!this._longMonthsParse[Et]){const yn=this.months(H,"",!0).replace(".",""),Gn=this.monthsShort(H,"",!0).replace(".","");this._longMonthsParse[Et]=new RegExp(`^${yn}$`,"i"),this._shortMonthsParse[Et]=new RegExp(`^${Gn}$`,"i")}if(!P&&!this._monthsParse[Et]&&(Me=`^${this.months(H,"",!0)}|^${this.monthsShort(H,"",!0)}`,this._monthsParse[Et]=new RegExp(Me.replace(".",""),"i")),P&&"MMMM"===b&&this._longMonthsParse[Et].test(E)||P&&"MMM"===b&&this._shortMonthsParse[Et].test(E)||!P&&this._monthsParse[Et].test(E))return Et}}monthsRegex(E){return this._monthsParseExact?(_e(this,"_monthsRegex")||this.computeMonthsParse(),E?this._monthsStrictRegex:this._monthsRegex):(_e(this,"_monthsRegex")||(this._monthsRegex=ga),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(E){return this._monthsParseExact?(_e(this,"_monthsRegex")||this.computeMonthsParse(),E?this._monthsShortStrictRegex:this._monthsShortRegex):(_e(this,"_monthsShortRegex")||(this._monthsShortRegex=Jr),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)}week(E,b){return ho(E,this._week.dow,this._week.doy,b).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(E,b,P){if(!E)return ce(this._weekdays)?this._weekdays:this._weekdays.standalone;if(ce(this._weekdays))return this._weekdays[nn(E,P)];const H=this._weekdays.isFormat.test(b)?"format":"standalone";return this._weekdays[H][nn(E,P)]}weekdaysMin(E,b,P){return E?this._weekdaysMin[nn(E,P)]:this._weekdaysMin}weekdaysShort(E,b,P){return E?this._weekdaysShort[nn(E,P)]:this._weekdaysShort}weekdaysParse(E,b,P){let H,Me;if(this._weekdaysParseExact)return this.handleWeekStrictParse(E,b,P);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),H=0;H<7;H++){const Et=zr(new Date(Date.UTC(2e3,1)),H,null,!0);if(P&&!this._fullWeekdaysParse[H]&&(this._fullWeekdaysParse[H]=new RegExp(`^${this.weekdays(Et,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[H]=new RegExp(`^${this.weekdaysShort(Et,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[H]=new RegExp(`^${this.weekdaysMin(Et,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[H]||(Me=`^${this.weekdays(Et,"",!0)}|^${this.weekdaysShort(Et,"",!0)}|^${this.weekdaysMin(Et,"",!0)}`,this._weekdaysParse[H]=new RegExp(Me.replace(".",""),"i")),!(ce(this._fullWeekdaysParse)&&ce(this._shortWeekdaysParse)&&ce(this._minWeekdaysParse)&&ce(this._weekdaysParse)))return;if(P&&"dddd"===b&&this._fullWeekdaysParse[H].test(E))return H;if(P&&"ddd"===b&&this._shortWeekdaysParse[H].test(E))return H;if(P&&"dd"===b&&this._minWeekdaysParse[H].test(E))return H;if(!P&&this._weekdaysParse[H].test(E))return H}}weekdaysRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysStrictRegex:this._weekdaysRegex):(_e(this,"_weekdaysRegex")||(this._weekdaysRegex=_t),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(_e(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=_t),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(E){return this._weekdaysParseExact?(_e(this,"_weekdaysRegex")||this.computeWeekdaysParse(),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(_e(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=_t),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(E){return"p"===E.toLowerCase().charAt(0)}meridiem(E,b,P){return E>11?P?"pm":"PM":P?"am":"AM"}formatLongDate(E){this._longDateFormat=this._longDateFormat?this._longDateFormat:Ds;const b=this._longDateFormat[E],P=this._longDateFormat[E.toUpperCase()];return b||!P?b:(this._longDateFormat[E]=P.replace(/MMMM|MM|DD|dddd/g,H=>H.slice(1)),this._longDateFormat[E])}handleMonthStrictParse(E,b,P){const H=E.toLocaleLowerCase();let Me,Et,yn;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],Me=0;Me<12;++Me)yn=new Date(2e3,Me),this._shortMonthsParse[Me]=this.monthsShort(yn,"").toLocaleLowerCase(),this._longMonthsParse[Me]=this.months(yn,"").toLocaleLowerCase();return P?"MMM"===b?(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:null):(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:null):"MMM"===b?(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:null)):(Et=this._longMonthsParse.indexOf(H),-1!==Et?Et:(Et=this._shortMonthsParse.indexOf(H),-1!==Et?Et:null))}handleWeekStrictParse(E,b,P){let H;const Me=E.toLocaleLowerCase();if(!this._weekdaysParse){let Et;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Et=0;Et<7;++Et){const yn=zr(new Date(Date.UTC(2e3,1)),Et,null,!0);this._minWeekdaysParse[Et]=this.weekdaysMin(yn).toLocaleLowerCase(),this._shortWeekdaysParse[Et]=this.weekdaysShort(yn).toLocaleLowerCase(),this._weekdaysParse[Et]=this.weekdays(yn,"").toLocaleLowerCase()}}if(ce(this._weekdaysParse)&&ce(this._shortWeekdaysParse)&&ce(this._minWeekdaysParse))return P?"dddd"===b?(H=this._weekdaysParse.indexOf(Me),-1!==H?H:null):"ddd"===b?(H=this._shortWeekdaysParse.indexOf(Me),-1!==H?H:null):(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null):"dddd"===b?(H=this._weekdaysParse.indexOf(Me),-1!==H||(H=this._shortWeekdaysParse.indexOf(Me),-1!==H)?H:(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null)):"ddd"===b?(H=this._shortWeekdaysParse.indexOf(Me),-1!==H||(H=this._weekdaysParse.indexOf(Me),-1!==H)?H:(H=this._minWeekdaysParse.indexOf(Me),-1!==H?H:null)):(H=this._minWeekdaysParse.indexOf(Me),-1!==H||(H=this._weekdaysParse.indexOf(Me),-1!==H)?H:(H=this._shortWeekdaysParse.indexOf(Me),-1!==H?H:null))}computeMonthsParse(){const E=[],b=[],P=[];let H,Me;for(Me=0;Me<12;Me++)H=new Date(2e3,Me),E.push(this.monthsShort(H,"")),b.push(this.months(H,"")),P.push(this.months(H,"")),P.push(this.monthsShort(H,""));for(E.sort(oo),b.sort(oo),P.sort(oo),Me=0;Me<12;Me++)E[Me]=ut(E[Me]),b[Me]=ut(b[Me]);for(Me=0;Me<24;Me++)P[Me]=ut(P[Me]);this._monthsRegex=new RegExp(`^(${P.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${b.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${E.join("|")})`,"i")}computeWeekdaysParse(){const E=[],b=[],P=[],H=[];let Me;for(Me=0;Me<7;Me++){const Et=zr(new Date(Date.UTC(2e3,1)),Me,null,!0),yn=this.weekdaysMin(Et),Gn=this.weekdaysShort(Et),Rr=this.weekdays(Et);E.push(yn),b.push(Gn),P.push(Rr),H.push(yn),H.push(Gn),H.push(Rr)}for(E.sort(oo),b.sort(oo),P.sort(oo),H.sort(oo),Me=0;Me<7;Me++)b[Me]=ut(b[Me]),P[Me]=ut(P[Me]),H[Me]=ut(H[Me]);this._weekdaysRegex=new RegExp(`^(${H.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${P.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${b.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${E.join("|")})`,"i")}}function oo(f,E){return E.length-f.length}const Aa={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:Ds,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Gs,monthsShort:Ba,week:{dow:0,doy:6},weekdays:xl,weekdaysMin:Ws,weekdaysShort:So,meridiemParse:/[ap]\.?m?\.?/i};function qi(f,E,b){const P=Math.min(f.length,E.length),H=Math.abs(f.length-E.length);let Et,Me=0;for(Et=0;Et0;){if(b=io(H.slice(0,Me).join("-")),b)return b;if(E&&E.length>=Me&&qi(H,E,!0)>=Me-1)break;Me--}P++}return null}(ce(f)?f:[f]):Co}const Ia=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],ta=Ia.reduce((f,E)=>(f[E]=!0,f),{});function Ae(f){return f<0?Math.floor(f):Math.ceil(f)}function le(f){return 4800*f/146097}function Qe(f){return 146097*f/4800}let Ht=Math.round;const Qn_ss=44,Qn_s=45,Qn_m=45,Qn_h=22,Qn_d=26,Qn_M=11;function Ni(f,E,b,P,H){return H.relativeTime(E||1,!!b,f,P)}class sc{constructor(E,b={}){this._data={},this._locale=sr(),this._locale=b&&b._locale||sr();const H=E.year||0,Me=E.quarter||0,Et=E.month||0,yn=E.week||0,Gn=E.day||0,Rr=E.hours||0,Ts=E.minutes||0,pa=E.seconds||0,Ea=E.milliseconds||0;return this._isValid=function na(f){if(Object.keys(f).some(P=>P in ta&&null===f[P]||isNaN(f[P])))return!1;let b=!1;for(let P=0;P=0&&b>=0&&P>=0||E<=0&&b<=0&&P<=0||(E+=864e5*Ae(Qe(P)+b),b=0,P=0),H.milliseconds=E%1e3;const Me=Z(E/1e3);H.seconds=Me%60;const Et=Z(Me/60);H.minutes=Et%60;const yn=Z(Et/60);H.hours=yn%24,b+=Z(yn/24);const Gn=Z(le(b));P+=Gn,b-=Ae(Qe(Gn));const Rr=Z(P/12);return P%=12,H.day=b,H.month=P,H.year=Rr,f}(this)}isValid(){return this._isValid}humanize(E){if(!this.isValid())return this.localeData().invalidDate;const b=this.localeData();let P=function Zo(f,E,b){const P=hr(f).abs(),H=Ht(P.as("s")),Me=Ht(P.as("m")),Et=Ht(P.as("h")),yn=Ht(P.as("d")),Gn=Ht(P.as("M")),Rr=Ht(P.as("y")),Ts=H<=Qn_ss&&["s",H]||H0,b])}(this,!E,b);return E&&(P=b.pastFuture(+this,P)),b.postformat(P)}localeData(){return this._locale}locale(E){return E?(this._locale=sr(E)||this._locale,this):this._locale._abbr}abs(){const E=Math.abs,b=this._data;return this._milliseconds=E(this._milliseconds),this._days=E(this._days),this._months=E(this._months),b.milliseconds=E(b.milliseconds),b.seconds=E(b.seconds),b.minutes=E(b.minutes),b.hours=E(b.hours),b.month=E(b.month),b.year=E(b.year),this}as(E){if(!this.isValid())return NaN;let b,P;const H=this._milliseconds,Me=St(E);if("month"===Me||"year"===Me)return b=this._days+H/864e5,P=this._months+le(b),"month"===Me?P:P/12;switch(b=this._days+Math.round(Qe(this._months)),Me){case"week":return b/7+H/6048e5;case"day":return b+H/864e5;case"hours":return 24*b+H/36e5;case"minutes":return 1440*b+H/6e4;case"seconds":return 86400*b+H/1e3;case"milliseconds":return Math.floor(864e5*b)+H;default:throw new Error(`Unknown unit ${Me}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Lt(this._months/12):NaN}}function Tl(f){if(null==f._isValid){const E=Yt(f),b=Array.prototype.some.call(E.parsedDateParts,function(H){return null!=H});let P=!isNaN(f._d&&f._d.getTime())&&E.overflow<0&&!E.empty&&!E.invalidMonth&&!E.invalidWeekday&&!E.weekdayMismatch&&!E.nullInput&&!E.invalidFormat&&!E.userInvalidated&&(!E.meridiem||E.meridiem&&b);if(f._strict&&(P=P&&0===E.charsLeftOver&&0===E.unusedTokens.length&&void 0===E.bigHour),null!=Object.isFrozen&&Object.isFrozen(f))return P;f._isValid=P}return f._isValid}function Dl(f,E){return f._d=new Date(NaN),Object.assign(Yt(f),E||{userInvalidated:!0}),f}const kc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,El=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wa=/Z|[+-]\d\d(?::?\d\d)?/,Xo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],Pr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ms=/^\/?Date\((\-?\d+)/i,As={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},qr=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Bs(f){if(!ee(f._i))return f;const E=f._i,b=kc.exec(E)||El.exec(E);let P,H,Me,Et,yn,Gn;if(!b)return f._isValid=!1,f;for(yn=0,Gn=Xo.length;ynE.formatLongDate(Et)||Et;for(H.lastIndex=0;P>=0&&H.test(b);)b=b.replace(H,Me),H.lastIndex=0,P-=1;return b}function ns(f,E,b){return f??E??b}function Os(f){const E=[];let b,P,H;if(f._d)return f;const Me=function vc(f){const E=new Date;return f._useUTC?[E.getUTCFullYear(),E.getUTCMonth(),E.getUTCDate()]:[E.getFullYear(),E.getMonth(),E.getDate()]}(f);for(f._w&&null==f._a[Jt]&&null==f._a[un]&&function Is(f){let E,b,P,H,Me,Et,yn;const Gn=f._w;if(null!=Gn.GG||null!=Gn.W||null!=Gn.E)H=1,Me=4,E=ns(Gn.GG,f._a[yt],ho(new Date,1,4).year),b=ns(Gn.W,1),P=ns(Gn.E,1),(P<1||P>7)&&(yn=!0);else{H=f._locale._week.dow,Me=f._locale._week.doy;const Rr=ho(new Date,H,Me);E=ns(Gn.gg,f._a[yt],Rr.year),b=ns(Gn.w,Rr.week),null!=Gn.d?(P=Gn.d,(P<0||P>6)&&(yn=!0)):null!=Gn.e?(P=Gn.e+H,(Gn.e<0||Gn.e>6)&&(yn=!0)):P=H}b<1||b>to(E,H,Me)?Yt(f)._overflowWeeks=!0:null!=yn?Yt(f)._overflowWeekday=!0:(Et=function uo(f,E,b,P,H){const yn=1+7*(E-1)+(7+b-P)%7+Fr(f,P,H);let Gn,Rr;return yn<=0?(Gn=f-1,Rr=ht(Gn)+yn):yn>ht(f)?(Gn=f+1,Rr=yn-ht(f)):(Gn=f,Rr=yn),{year:Gn,dayOfYear:Rr}}(E,b,P,H,Me),f._a[yt]=Et.year,f._dayOfYear=Et.dayOfYear)}(f),null!=f._dayOfYear&&(H=ns(f._a[yt],Me[yt]),(f._dayOfYear>ht(H)||0===f._dayOfYear)&&(Yt(f)._overflowDayOfYear=!0),P=new Date(Date.UTC(H,0,f._dayOfYear)),f._a[un]=P.getUTCMonth(),f._a[Jt]=P.getUTCDate()),b=0;b<3&&null==f._a[b];++b)f._a[b]=E[b]=Me[b];for(;b<7;b++)f._a[b]=E[b]=null==f._a[b]?2===b?1:0:f._a[b];24===f._a[tn]&&0===f._a[wn]&&0===f._a[Ln]&&0===f._a[Yn]&&(f._nextDay=!0,f._a[tn]=0),f._d=(f._useUTC?tt:he).apply(null,E);const Et=f._useUTC?f._d.getUTCDay():f._d.getDay();return null!=f._tzm&&f._d.setUTCMinutes(f._d.getUTCMinutes()-f._tzm),f._nextDay&&(f._a[tn]=24),f._w&&typeof f._w.d<"u"&&f._w.d!==Et&&(Yt(f).weekdayMismatch=!0),f}function Za(f){let E;const b=f._a;return b&&-2===Yt(f).overflow&&(E=b[un]<0||b[un]>11?un:b[Jt]<1||b[Jt]>It(b[yt],b[un])?Jt:b[tn]<0||b[tn]>24||24===b[tn]&&(0!==b[wn]||0!==b[Ln]||0!==b[Yn])?tn:b[wn]<0||b[wn]>59?wn:b[Ln]<0||b[Ln]>59?Ln:b[Yn]<0||b[Yn]>999?Yn:-1,Yt(f)._overflowDayOfYear&&(EJt)&&(E=Jt),Yt(f)._overflowWeeks&&-1===E&&(E=ti),Yt(f)._overflowWeekday&&-1===E&&(E=gi),Yt(f).overflow=E),f}const za="ISO_8601",$l="RFC_2822";function Tr(f){if(f._f===za)return Bs(f);if(f._f===$l)return ja(f);if(f._a=[],Yt(f).empty=!0,ce(f._f)||!f._i&&0!==f._i)return f;let E=f._i.toString(),b=0;const P=E.length,H=gs(f._f,f._locale).match(Be)||[];let Me,Et,yn,Gn;for(Me=0;Me0&&Yt(f).unusedInput.push(Gn),E=E.slice(E.indexOf(yn)+yn.length),b+=yn.length),at[Et]?(yn?Yt(f).empty=!1:Yt(f).unusedTokens.push(Et),Te(Et,yn,f)):f._strict&&!yn&&Yt(f).unusedTokens.push(Et);return Yt(f).charsLeftOver=P-b,E.length>0&&Yt(f).unusedInput.push(E),f._a[tn]<=12&&!0===Yt(f).bigHour&&f._a[tn]>0&&(Yt(f).bigHour=void 0),Yt(f).parsedDateParts=f._a.slice(0),Yt(f).meridiem=f._meridiem,f._a[tn]=function Lc(f,E,b){let P=E;if(null==b)return P;if(null!=f.meridiemHour)return f.meridiemHour(P,b);if(null==f.isPM)return P;const H=f.isPM(b);return H&&P<12&&(P+=12),!H&&12===P&&(P=0),P}(f._locale,f._a[tn],f._meridiem),Os(f),Za(f)}function xa(f){const E=Za(function Ga(f){let E=f._i;const b=f._f;return f._locale=f._locale||sr(f._l),null===E||void 0===b&&""===E?Dl(f,{nullInput:!0}):(ee(E)&&(f._i=E=f._locale.preparse(E,b)),re(E)?(f._d=_i(E),f):(ce(b)?function Kl(f){let E,b,P,H,Me;if(!f._f||0===f._f.length)return Yt(f).invalidFormat=!0,Dl(f);for(Me=0;Meee(P)?parseInt(P,10):P),Os(f)}else if(Re(E))!function Rs(f){if(f._d)return f;const E=f._i;if(Re(E)){const b=function Zt(f){const E={};let b,P;for(P in f)_e(f,P)&&(b=St(P),b&&(E[b]=f[P]));return E}(E);f._a=[b.year,b.month,b.day,b.hours,b.minutes,b.seconds,b.milliseconds].map(P=>ee(P)?parseInt(P,10):P)}return Os(f)}(f);else{if(!oe(E))return Dl(f);f._d=new Date(E)}}(f),Tl(f)||(f._d=null),f))}(f));return E._d=new Date(null!=E._d?E._d.getTime():NaN),Tl(Object.assign({},E,{_isValid:null}))||(E._d=new Date(NaN)),E}function ra(f,E,b,P,H){return re(f)?f:function bc(f,E,b,P,H){const Me={};let Et=f;return(Re(Et)&&function mt(f){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(f).length;let E;for(E in f)if(f.hasOwnProperty(E))return!1;return!0}(Et)||ce(Et)&&0===Et.length)&&(Et=void 0),Me._useUTC=Me._isUTC=H,Me._l=b,Me._i=Et,Me._f=E,Me._strict=P,xa(Me)}(f,E,b,P,H)._d}function Al(f){return f instanceof Date?new Date(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate(),f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()):null}function is(f){return f<0?-1*Math.round(-1*f):Math.round(f)}function ro(f,E,b="milliseconds"){return!(!f||!E)&&("milliseconds"===b?f.valueOf()>E.valueOf():E.valueOf()=3&&f%100<=10?3:f%100>=11?4:5},ko={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},rs=function(f){return function(E,b){const P=dl(E);let H=ko[f][dl(E)];return 2===P&&(H=H[b?0:1]),H.replace(/%d/i,E.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),rs("s"),rs("s"),rs("m"),rs("m"),rs("h"),rs("h"),rs("d"),rs("d"),rs("M"),rs("M"),rs("y"),rs("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const lc="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),Ei="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(f,E){let b,P=[];for(b=0;b<12;b++)P[b]=new RegExp("^"+f[b]+"$|^"+E[b]+"$","i")})(lc,Ei),function(f){let E,b=[];for(E=0;E<12;E++)b[E]=new RegExp("^"+f[E]+"$","i")}(Ei),function(f){let E,b=[];for(E=0;E<12;E++)b[E]=new RegExp("^"+f[E]+"$","i")}(lc),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const pe={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:f=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===f,meridiem:(f,E,b)=>f<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(f,E){const b=pe.longDateFormat[E]?pe.longDateFormat[E]:E;return-1!==b.indexOf("YYYY",b.length-4)?f.substr(0,f.length-4)+(parseInt(f.substr(f.length-4),10)-543):f},getFullYear:(f,E=!1)=>543+(E?f.getUTCFullYear():f.getFullYear())};function Oi(f){return function(E){return f+"\u043e"+(11===Ze(E)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),Oi("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),Oi("[\u0417\u0430\u0432\u0442\u0440\u0430 "),Oi("[\u0412\u0447\u043e\u0440\u0430 "),Oi("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\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".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");var Zs=C(4060),Uc=C(6223),ls=C(5619),Gd=C(1954),Sd=C(2631);const Ad=new class Eu extends Sd.v{}(class _c extends Gd.o{constructor(E,b){super(E,b),this.scheduler=E,this.work=b}schedule(E,b=0){return b>0?super.schedule(E,b):(this.delay=b,this.state=E,this.scheduler.flush(this),this)}execute(E,b){return b>0||this.closed?super.execute(E,b):this._execute(E,b)}requestAsyncId(E,b,P=0){return null!=P&&P>0||null==P&&this.delay>0?super.requestAsyncId(E,b,P):(E.flush(this),0)}});var Pl=C(5592),ua=C(3093),Or=C(6424);class Vc extends ls.X{constructor(E,b,P){super(E),b.pipe((0,ua.Q)(Ad)).pipe((0,Or.R)((Et,yn)=>yn?P(Et,yn):Et,E)).subscribe(Et=>this.next(Et))}}class zo extends Pl.y{constructor(E,b,P){super(),this._dispatcher=E,this._reducer=b,this.source=P}select(E){return(this.source?.pipe((0,D.U)(E))||(new Pl.y).pipe((0,D.U)(E))).pipe((0,w.x)())}lift(E){const b=new zo(this._dispatcher,this._reducer,this);return b.operator=E,b}dispatch(E){this._dispatcher.next(E)}next(E){this._dispatcher.next(E)}error(E){this._dispatcher.error(E)}complete(){}}var zi=C(6814);function Nl(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function La(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(H.minuteStep))}),e._UZ(2,"span",2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canIncrementMinutes||!b.isEditable)}}function $d(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0"),e.qZA())}function mc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(H.secondsStep))}),e._UZ(2,"span",2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canIncrementSeconds||!b.isEditable)}}function jc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function _l(f,E){1&f&&e._UZ(0,"td")}function Su(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0:\xa0"),e.qZA())}function nu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4)(1,"input",5),e.NdJ("wheel",function(H){e.CHM(b);const Me=e.oxw();return Me.prevDef(H),e.KtG(Me.changeMinutes(Me.minuteStep*Me.wheelSign(H),"wheel"))})("keydown.ArrowUp",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(H.minuteStep,"key"))})("keydown.ArrowDown",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(-H.minuteStep,"key"))})("change",function(H){e.CHM(b);const Me=e.oxw();return e.KtG(Me.updateMinutes(H.target))}),e.qZA()()}if(2&f){const b=e.oxw();e.ekj("has-error",b.invalidMinutes),e.xp6(1),e.ekj("is-invalid",b.invalidMinutes),e.Q6J("placeholder",b.minutesPlaceholder)("readonly",b.readonlyInput)("disabled",b.disabled)("value",b.minutes),e.uIk("aria-label",b.labelMinutes)}}function Pa(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0:\xa0"),e.qZA())}function ao(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4)(1,"input",5),e.NdJ("wheel",function(H){e.CHM(b);const Me=e.oxw();return Me.prevDef(H),e.KtG(Me.changeSeconds(Me.secondsStep*Me.wheelSign(H),"wheel"))})("keydown.ArrowUp",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(H.secondsStep,"key"))})("keydown.ArrowDown",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(-H.secondsStep,"key"))})("change",function(H){e.CHM(b);const Me=e.oxw();return e.KtG(Me.updateSeconds(H.target))}),e.qZA()()}if(2&f){const b=e.oxw();e.ekj("has-error",b.invalidSeconds),e.xp6(1),e.ekj("is-invalid",b.invalidSeconds),e.Q6J("placeholder",b.secondsPlaceholder)("readonly",b.readonlyInput)("disabled",b.disabled)("value",b.seconds),e.uIk("aria-label",b.labelSeconds)}}function Zc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function Go(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"button",8),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.toggleMeridian())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.isEditable||!b.canToggleMeridian),e.Q6J("disabled",!b.isEditable||!b.canToggleMeridian),e.xp6(1),e.hij("",b.meridian," ")}}function Kd(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function zc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeMinutes(-H.minuteStep))}),e._UZ(2,"span",7),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canDecrementMinutes||!b.isEditable)}}function Jd(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0"),e.qZA())}function nl(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td")(1,"a",1),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.changeSeconds(-H.secondsStep))}),e._UZ(2,"span",7),e.qZA()()}if(2&f){const b=e.oxw();e.xp6(1),e.ekj("disabled",!b.canDecrementSeconds||!b.isEditable)}}function Gc(f,E){1&f&&(e.TgZ(0,"td"),e._uU(1,"\xa0\xa0\xa0"),e.qZA())}function qd(f,E){1&f&&e._UZ(0,"td")}let ml=(()=>{class f{static#e=this.WRITE_VALUE="[timepicker] write value from ng model";static#t=this.CHANGE_HOURS="[timepicker] change hours";static#n=this.CHANGE_MINUTES="[timepicker] change minutes";static#i=this.CHANGE_SECONDS="[timepicker] change seconds";static#r=this.SET_TIME_UNIT="[timepicker] set time unit";static#o=this.UPDATE_CONTROLS="[timepicker] update controls";writeValue(b){return{type:f.WRITE_VALUE,payload:b}}changeHours(b){return{type:f.CHANGE_HOURS,payload:b}}changeMinutes(b){return{type:f.CHANGE_MINUTES,payload:b}}changeSeconds(b){return{type:f.CHANGE_SECONDS,payload:b}}setTime(b){return{type:f.SET_TIME_UNIT,payload:b}}updateControls(b){return{type:f.UPDATE_CONTROLS,payload:b}}static#s=this.\u0275fac=function(P){return new(P||f)};static#a=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const Oc=10,Au=24,iu=12,pi=60,Wc=60;function Xr(f){return!(!f||f instanceof Date&&isNaN(f.getHours()))&&("string"!=typeof f||Xr(new Date(f)))}function Mc(f,E){return!(f.min&&Ef.max)}function No(f){return typeof f>"u"?NaN:"number"==typeof f?f:parseInt(f,Oc)}function Ye(f,E=!1){const b=No(f);return isNaN(b)||b<0||b>(E?iu:Au)?NaN:b}function it(f){const E=No(f);return isNaN(E)||E<0||E>pi?NaN:E}function pt(f){const E=No(f);return isNaN(E)||E<0||E>Wc?NaN:E}function sn(f){return"string"==typeof f?new Date(f):f}function Bn(f,E){if(!f)return Bn(Hn(new Date,0,0,0),E);if(!E)return f;let b=f.getHours(),P=f.getMinutes(),H=f.getSeconds();return E.hour&&(b+=No(E.hour)),E.minute&&(P+=No(E.minute)),E.seconds&&(H+=No(E.seconds)),Hn(f,b,P,H)}function ri(f,E){let b=Ye(E.hour);const P=it(E.minute),H=pt(E.seconds)||0;return E.isPM&&12!==b&&(b+=iu),f?isNaN(b)||isNaN(P)?f:Hn(f,b,P,H):isNaN(b)||isNaN(P)?f:Hn(new Date,b,P,H)}function Hn(f,E,b,P){const H=new Date(f.getFullYear(),f.getMonth(),f.getDate(),E,b,P,f.getMilliseconds());return H.setFullYear(f.getFullYear()),H.setMonth(f.getMonth()),H.setDate(f.getDate()),H}function hi(f){const E=f.toString();return E.length>1?E:`0${E}`}function Ci(f,E){return!isNaN(Ye(f,E))}function Hi(f){return!isNaN(it(f))}function Wr(f){return!isNaN(pt(f))}function Fl(f,E="0",b="0",P){return Ci(f,P)&&Hi(E)&&Wr(b)}function ec(f,E){return!(f.readonlyInput||f.disabled||E&&("wheel"===E.source&&!f.mousewheel||"key"===E.source&&!f.arrowkeys))}function Kc(f){const{hourStep:E,minuteStep:b,secondsStep:P,readonlyInput:H,disabled:Me,mousewheel:Et,arrowkeys:yn,showSpinners:Gn,showMeridian:Rr,showSeconds:Ts,meridians:pa,min:Ea,max:Lh}=f;return{hourStep:E,minuteStep:b,secondsStep:P,readonlyInput:H,disabled:Me,mousewheel:Et,arrowkeys:yn,showSpinners:Gn,showMeridian:Rr,showSeconds:Ts,meridians:pa,min:Ea,max:Lh}}let Cc=(()=>{class f{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})();const Ic={value:void 0,config:new Cc,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function cs(f=Ic,E){switch(E.type){case ml.WRITE_VALUE:return Object.assign({},f,{value:E.payload});case ml.CHANGE_HOURS:{if(!ec(f.config,E.payload)||!function $c(f,E){return!(!f.step||f.step>0&&!E.canIncrementHours||f.step<0&&!E.canDecrementHours)}(E.payload,f.controls))return f;const b=Bn(f.value,{hour:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.CHANGE_MINUTES:{if(!ec(f.config,E.payload)||!function Da(f,E){return!(!f.step||f.step>0&&!E.canIncrementMinutes||f.step<0&&!E.canDecrementMinutes)}(E.payload,f.controls))return f;const b=Bn(f.value,{minute:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.CHANGE_SECONDS:{if(!ec(f.config,E.payload)||!function gl(f,E){return!(!f.step||f.step>0&&!E.canIncrementSeconds||f.step<0&&!E.canDecrementSeconds)}(E.payload,f.controls))return f;const b=Bn(f.value,{seconds:E.payload.step});return!f.config.max&&!f.config.min||Mc(f.config,b)?Object.assign({},f,{value:b}):f}case ml.SET_TIME_UNIT:{if(!ec(f.config))return f;const b=ri(f.value,E.payload);return Object.assign({},f,{value:b})}case ml.UPDATE_CONTROLS:{const b=function Qd(f,E){const{min:H,max:Me,hourStep:Et,minuteStep:yn,secondsStep:Gn,showSeconds:Rr}=E,Ts={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!f)return Ts;if(Me){const pa=Bn(f,{hour:Et});if(Ts.canIncrementHours=Me>pa&&f.getHours()+Et<24,!Ts.canIncrementHours){const Ea=Bn(f,{minute:yn});Ts.canIncrementMinutes=Rr?Me>Ea:Me>=Ea}if(!Ts.canIncrementMinutes){const Ea=Bn(f,{seconds:Gn});Ts.canIncrementSeconds=Me>=Ea}f.getHours()<12&&(Ts.canToggleMeridian=Bn(f,{hour:12})=12&&(Ts.canToggleMeridian=Bn(f,{hour:-12})>H)}return Ts}(f.value,E.payload),P={value:f.value,config:E.payload,controls:b};return f.config.showMeridian!==P.config.showMeridian&&f.value&&(P.value=new Date(f.value)),Object.assign({},f,P)}default:return f}}let gc=(()=>{class f extends zo{constructor(){const b=new ls.X({type:"[mini-ngrx] dispatcher init"});super(b,cs,new Vc(Ic,b,cs))}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const vl={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>Yl),multi:!0};let Yl=(()=>{class f{constructor(b,P,H,Me){this._cd=P,this._store=H,this._timepickerActions=Me,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new e.vpe,this.meridianChange=new e.vpe,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=b,Object.assign(this,this.config),this.timepickerSub=H.select(Et=>Et.value).subscribe(Et=>{this._renderTime(Et),this.onChange(Et),this._store.dispatch(this._timepickerActions.updateControls(Kc(this)))}),H.select(Et=>Et.controls).subscribe(Et=>{const yn=Fl(this.hours,this.minutes,this.seconds,this.isPM()),Gn=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||yn;this.isValid.emit(Gn),Object.assign(this,Et),P.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(b){b.preventDefault()}wheelSign(b){return-1*Math.sign(b.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(Kc(this)))}changeHours(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:b,source:P}))}changeMinutes(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:b,source:P}))}changeSeconds(b,P=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:b,source:P}))}updateHours(b){this.resetValidation(),this.hours=b.value;const P=Ci(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(b){this.resetValidation(),this.minutes=b.value;const P=Hi(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(b){this.resetValidation(),this.seconds=b.value;const P=Wr(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||P))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function Ns(f,E,b){const P=ri(new Date,f);return!(!P||E&&P>E||b&&P=12?1:0],this.meridianChange.emit(this.meridian),Me%=12,0===Me&&(Me=12)),this.hours=hi(Me),this.minutes=hi(P.getMinutes()),this.seconds=hi(P.getUTCSeconds())}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Cc),e.Y36(e.sBO),e.Y36(gc),e.Y36(ml))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meridians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[e._Bn([vl,gc]),e.TTD],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],["href","javascript:void(0);",1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"placeholder","readonly","disabled","value","wheel","keydown.ArrowUp","keydown.ArrowDown","change"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"disabled","click"]],template:function(P,H){1&P&&(e.TgZ(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),e.NdJ("click",function(){return H.changeHours(H.hourStep)}),e._UZ(5,"span",2),e.qZA()(),e.YNc(6,Nl,2,0,"td",3),e.YNc(7,La,3,2,"td",3),e.YNc(8,$d,2,0,"td",3),e.YNc(9,mc,3,2,"td",3),e.YNc(10,jc,2,0,"td",3),e.YNc(11,_l,1,0,"td",3),e.qZA(),e.TgZ(12,"tr")(13,"td",4)(14,"input",5),e.NdJ("wheel",function(Et){return H.prevDef(Et),H.changeHours(H.hourStep*H.wheelSign(Et),"wheel")})("keydown.ArrowUp",function(){return H.changeHours(H.hourStep,"key")})("keydown.ArrowDown",function(){return H.changeHours(-H.hourStep,"key")})("change",function(Et){return H.updateHours(Et.target)}),e.qZA()(),e.YNc(15,Su,2,0,"td",3),e.YNc(16,nu,2,9,"td",6),e.YNc(17,Pa,2,0,"td",3),e.YNc(18,ao,2,9,"td",6),e.YNc(19,Zc,2,0,"td",3),e.YNc(20,Go,3,4,"td",3),e.qZA(),e.TgZ(21,"tr",0)(22,"td")(23,"a",1),e.NdJ("click",function(){return H.changeHours(-H.hourStep)}),e._UZ(24,"span",7),e.qZA()(),e.YNc(25,Kd,2,0,"td",3),e.YNc(26,zc,3,2,"td",3),e.YNc(27,Jd,2,0,"td",3),e.YNc(28,nl,3,2,"td",3),e.YNc(29,Gc,2,0,"td",3),e.YNc(30,qd,1,0,"td",3),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("hidden",!H.showSpinners),e.xp6(2),e.ekj("disabled",!H.canIncrementHours||!H.isEditable),e.xp6(2),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(2),e.ekj("has-error",H.invalidHours),e.xp6(1),e.ekj("is-invalid",H.invalidHours),e.Q6J("placeholder",H.hoursPlaceholder)("readonly",H.readonlyInput)("disabled",H.disabled)("value",H.hours),e.uIk("aria-label",H.labelHours),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("hidden",!H.showSpinners),e.xp6(2),e.ekj("disabled",!H.canDecrementHours||!H.isEditable),e.xp6(2),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showMinutes),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showSeconds),e.xp6(1),e.Q6J("ngIf",H.showMeridian),e.xp6(1),e.Q6J("ngIf",H.showMeridian))},dependencies:[zi.O5],styles:[".bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{transform:rotate(45deg);top:2px}.bs-chevron-down{transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}\n"],encapsulation:2,changeDetection:0})}return f})(),Gu=(()=>{class f{static forRoot(){return{ngModule:f,providers:[ml,gc]}}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275mod=e.oAB({type:f});static#n=this.\u0275inj=e.cJS({providers:[gc],imports:[zi.ez]})}return f})();var Fa=C(6825),Od=C(7394),Ou=C(2572),Tc=C(8645),Id=C(2268),F=C(1835);function Xe(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"button",2),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw();return e.KtG(Et.selectFromRanges(Me))}),e._uU(1),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw();e.ekj("selected",b.value===P.selectedRange),e.xp6(1),e.hij(" ",b.label," ")}}function g(f,E){1&f&&e._UZ(0,"bs-current-date",4)}function L(f,E){1&f&&e._UZ(0,"bs-timepicker")}const R=[[["bs-datepicker-navigation-view"]],"*"],ye=["bs-datepicker-navigation-view","*"],Dt=["bsDatepickerDayDecorator",""];function Mn(f,E){if(1&f){const b=e.EpF();e.ynx(0),e._uU(1," \u200b "),e.TgZ(2,"button",2),e.NdJ("click",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.view("month"))}),e.TgZ(3,"span"),e._uU(4),e.qZA()(),e.BQk()}if(2&f){const b=e.oxw();e.xp6(2),e.Q6J("disabled",b.isDisabled),e.xp6(2),e.Oqu(b.calendar.monthTitle)}}function vi(f,E){1&f&&e._UZ(0,"th")}function Fo(f,E){if(1&f&&(e.TgZ(0,"th",5),e._uU(1),e.qZA()),2&f){const b=E.index,P=e.oxw();e.xp6(1),e.hij("",P.calendar.weekdays[b]," ")}}function Ya(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",11),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.selectWeek(H))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw(2).index,P=e.oxw();e.xp6(1),e.Oqu(P.calendar.weekNumbers[b])}}function Rd(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",12),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.selectWeek(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.weekHoverHandler(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw(2).$implicit,Me=e.oxw();return e.KtG(Me.weekHoverHandler(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw(2).index,P=e.oxw();e.xp6(1),e.Oqu(P.calendar.weekNumbers[b])}}function kd(f,E){if(1&f&&(e.TgZ(0,"td",8),e.YNc(1,Ya,2,1,"span",9),e.YNc(2,Rd,2,1,"span",10),e.qZA()),2&f){const b=e.oxw(2);e.ekj("active-week",b.isWeekHovered),e.xp6(1),e.Q6J("ngIf",b.isiOS),e.xp6(1),e.Q6J("ngIf",!b.isiOS)}}function tc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",17),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.s9C("tooltip",b.tooltipText),e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 3")}}function Iu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",18),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))})("mouseenter",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!0))})("mouseleave",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.hoverDay(H,!1))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 2")}}function Jh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"span",19),e.NdJ("click",function(){e.CHM(b);const H=e.oxw().$implicit,Me=e.oxw(2);return e.KtG(Me.selectDay(H))}),e._uU(1),e.qZA()}if(2&f){const b=e.oxw().$implicit;e.Q6J("day",b),e.xp6(1),e.hij("",b.label," 1")}}function qh(f,E){if(1&f&&(e.TgZ(0,"td",13),e.YNc(1,tc,2,3,"span",14),e.YNc(2,Iu,2,2,"span",15),e.YNc(3,Jh,2,2,"span",16),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",!b.isiOS&&b.isShowTooltip),e.xp6(1),e.Q6J("ngIf",!b.isiOS&&!b.isShowTooltip),e.xp6(1),e.Q6J("ngIf",b.isiOS)}}function Xd(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,kd,3,4,"td",6),e.YNc(2,qh,4,3,"td",7),e.qZA()),2&f){const b=E.$implicit,P=e.oxw();e.xp6(1),e.Q6J("ngIf",P.options&&P.options.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",b.days)}}function Ru(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.viewMonth(Me))})("mouseenter",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverMonth(Me,!0))})("mouseleave",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverMonth(Me,!1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&f){const b=E.$implicit;e.ekj("disabled",b.isDisabled)("is-highlighted",b.isHovered),e.xp6(1),e.ekj("selected",b.isSelected),e.xp6(1),e.Oqu(b.label)}}function ru(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,Ru,3,7,"td",3),e.qZA()),2&f){const b=E.$implicit;e.xp6(1),e.Q6J("ngForOf",b)}}function ou(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"td",4),e.NdJ("click",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.viewYear(Me))})("mouseenter",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverYear(Me,!0))})("mouseleave",function(){const Me=e.CHM(b).$implicit,Et=e.oxw(2);return e.KtG(Et.hoverYear(Me,!1))}),e.TgZ(1,"span"),e._uU(2),e.qZA()()}if(2&f){const b=E.$implicit;e.ekj("disabled",b.isDisabled)("is-highlighted",b.isHovered),e.xp6(1),e.ekj("selected",b.isSelected),e.xp6(1),e.Oqu(b.label)}}function su(f,E){if(1&f&&(e.TgZ(0,"tr"),e.YNc(1,ou,3,7,"td",3),e.qZA()),2&f){const b=E.$implicit;e.xp6(1),e.Q6J("ngForOf",b)}}const Ir=["startTP"];function ha(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-days-calendar-view",11),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.dayHoverHandler(H))})("onHoverWeek",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.weekHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.daySelectHandler(H))}),e.ALo(1,"async"),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)("isDisabled",P.isDatePickerDisabled)("options",e.lcZ(1,5,P.options$))}}function il(f,E){if(1&f&&e._UZ(0,"timepicker",13,16),2&f){const b=e.oxw(4);e.Q6J("disabled",b.isDatePickerDisabled)}}function Fs(f,E){if(1&f&&(e.TgZ(0,"div",12),e._UZ(1,"timepicker",13,14),e.YNc(3,il,2,1,"timepicker",15),e.qZA()),2&f){const b=e.oxw(3);e.xp6(1),e.Q6J("disabled",b.isDatePickerDisabled),e.xp6(2),e.Q6J("ngIf",b.isRangePicker)}}function ds(f,E){if(1&f&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,ha,2,7,"bs-days-calendar-view",9),e.ALo(3,"async"),e.qZA(),e.YNc(4,Fs,4,2,"div",10),e.BQk()),2&f){const b=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,b.daysCalendar$)),e.xp6(2),e.Q6J("ngIf",b.withTimepicker)}}function fa(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-month-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function Qh(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,fa,1,3,"bs-month-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.monthsCalendar))}}function Xh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-years-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function ef(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,Xh,1,3,"bs-years-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.yearsCalendar))}}function gh(f,E){1&f&&(e.TgZ(0,"div",19)(1,"button",20),e._uU(2,"Apply"),e.qZA(),e.TgZ(3,"button",21),e._uU(4,"Cancel"),e.qZA()())}function au(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",24)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.setToday())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("today-left","left"===b.todayPos)("today-right","right"===b.todayPos)("today-center","center"===b.todayPos),e.xp6(2),e.Oqu(b.todayBtnLbl)}}function vh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",26)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.clearDate())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("clear-left","left"===b.clearPos)("clear-right","right"===b.clearPos)("clear-center","center"===b.clearPos),e.xp6(2),e.Oqu(b.clearBtnLbl)}}function tf(f,E){if(1&f&&(e.TgZ(0,"div",19),e.YNc(1,au,3,7,"div",22),e.YNc(2,vh,3,7,"div",23),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",b.showTodayBtn),e.xp6(1),e.Q6J("ngIf",b.showClearBtn)}}function nf(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",27)(1,"bs-custom-date-view",28),e.NdJ("onSelect",function(H){e.CHM(b);const Me=e.oxw(2);return e.KtG(Me.setRangeOnCalendar(H))}),e.qZA()()}if(2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("selectedRange",b.chosenRange)("ranges",b.customRanges)("customRangeLabel",b.customRangeBtnLbl)}}function eo(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.NdJ("@datepickerAnimation.done",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.positionServiceEnable())}),e.TgZ(2,"div",3),e.ALo(3,"async"),e.YNc(4,ds,5,4,"ng-container",4),e.YNc(5,Qh,3,3,"div",5),e.YNc(6,ef,3,3,"div",5),e.qZA(),e.YNc(7,gh,5,0,"div",6),e.YNc(8,tf,3,2,"div",6),e.qZA(),e.YNc(9,nf,2,3,"div",7),e.qZA()}if(2&f){const b=e.oxw();e.Q6J("ngClass",b.containerClass),e.xp6(1),e.Q6J("@datepickerAnimation",b.animationState),e.xp6(1),e.Q6J("ngSwitch",e.lcZ(3,9,b.viewMode)),e.xp6(2),e.Q6J("ngSwitchCase","day"),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",b.showTodayBtn||b.showClearBtn),e.xp6(1),e.Q6J("ngIf",b.customRanges&&b.customRanges.length>0)}}const Zf=["endTP"];function qu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-days-calendar-view",11),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.dayHoverHandler(H))})("onHoverWeek",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.weekHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.daySelectHandler(H))}),e.ALo(1,"async"),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)("isDisabled",P.isDatePickerDisabled)("options",e.lcZ(1,5,P.options$))}}function zf(f,E){if(1&f&&e._UZ(0,"timepicker",13,16),2&f){const b=e.oxw(4);e.Q6J("disabled",b.isDatePickerDisabled)}}function cu(f,E){if(1&f&&(e.TgZ(0,"div",12),e._UZ(1,"timepicker",13,14),e.YNc(3,zf,2,1,"timepicker",15),e.qZA()),2&f){const b=e.oxw(3);e.xp6(1),e.Q6J("disabled",b.isDatePickerDisabled),e.xp6(2),e.Q6J("ngIf",b.isRangePicker)}}function xh(f,E){if(1&f&&(e.ynx(0),e.TgZ(1,"div",8),e.YNc(2,qu,2,7,"bs-days-calendar-view",9),e.ALo(3,"async"),e.qZA(),e.YNc(4,cu,4,2,"div",10),e.BQk()),2&f){const b=e.oxw(2);e.xp6(2),e.Q6J("ngForOf",e.lcZ(3,2,b.daysCalendar$)),e.xp6(2),e.Q6J("ngIf",b.withTimepicker)}}function Mh(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-month-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.monthSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function si(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,Mh,1,3,"bs-month-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.monthsCalendar))}}function du(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"bs-years-calendar-view",18),e.NdJ("onNavigate",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.navigateTo(H))})("onViewMode",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.setViewMode(H))})("onHover",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearHoverHandler(H))})("onSelect",function(H){e.CHM(b);const Me=e.oxw(3);return e.KtG(Me.yearSelectHandler(H))}),e.qZA()}if(2&f){const b=E.$implicit,P=e.oxw(3);e.ekj("bs-datepicker-multiple",P.multipleCalendars),e.Q6J("calendar",b)}}function Hl(f,E){if(1&f&&(e.TgZ(0,"div",8),e.YNc(1,du,1,3,"bs-years-calendar-view",17),e.ALo(2,"async"),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngForOf",e.lcZ(2,1,b.yearsCalendar))}}function af(f,E){1&f&&(e.TgZ(0,"div",19)(1,"button",20),e._uU(2,"Apply"),e.qZA(),e.TgZ(3,"button",21),e._uU(4,"Cancel"),e.qZA()())}function nc(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",24)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.setToday())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("today-left","left"===b.todayPos)("today-right","right"===b.todayPos)("today-center","center"===b.todayPos),e.xp6(2),e.Oqu(b.todayBtnLbl)}}function Ch(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",26)(1,"button",25),e.NdJ("click",function(){e.CHM(b);const H=e.oxw(3);return e.KtG(H.clearDate())}),e._uU(2),e.qZA()()}if(2&f){const b=e.oxw(3);e.ekj("clear-left","left"===b.clearPos)("clear-right","right"===b.clearPos)("clear-center","center"===b.clearPos),e.xp6(2),e.Oqu(b.clearBtnLbl)}}function lf(f,E){if(1&f&&(e.TgZ(0,"div",19),e.YNc(1,nc,3,7,"div",22),e.YNc(2,Ch,3,7,"div",23),e.qZA()),2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("ngIf",b.showTodayBtn),e.xp6(1),e.Q6J("ngIf",b.showClearBtn)}}function uu(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",27)(1,"bs-custom-date-view",28),e.NdJ("onSelect",function(H){e.CHM(b);const Me=e.oxw(2);return e.KtG(Me.setRangeOnCalendar(H))}),e.qZA()()}if(2&f){const b=e.oxw(2);e.xp6(1),e.Q6J("selectedRange",b.chosenRange)("ranges",b.customRanges)("customRangeLabel",b.customRangeBtnLbl)}}function ku(f,E){if(1&f){const b=e.EpF();e.TgZ(0,"div",1)(1,"div",2),e.NdJ("@datepickerAnimation.done",function(){e.CHM(b);const H=e.oxw();return e.KtG(H.positionServiceEnable())}),e.TgZ(2,"div",3),e.ALo(3,"async"),e.YNc(4,xh,5,4,"ng-container",4),e.YNc(5,si,3,3,"div",5),e.YNc(6,Hl,3,3,"div",5),e.qZA(),e.YNc(7,af,5,0,"div",6),e.YNc(8,lf,3,2,"div",6),e.qZA(),e.YNc(9,uu,2,3,"div",7),e.qZA()}if(2&f){const b=e.oxw();e.Q6J("ngClass",b.containerClass),e.xp6(1),e.Q6J("@datepickerAnimation",b.animationState),e.xp6(1),e.Q6J("ngSwitch",e.lcZ(3,9,b.viewMode)),e.xp6(2),e.Q6J("ngSwitchCase","day"),e.xp6(1),e.Q6J("ngSwitchCase","month"),e.xp6(1),e.Q6J("ngSwitchCase","year"),e.xp6(1),e.Q6J("ngIf",!1),e.xp6(1),e.Q6J("ngIf",b.showTodayBtn||b.showClearBtn),e.xp6(1),e.Q6J("ngIf",b.customRanges&&b.customRanges.length>0)}}let ol=(()=>{class f{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})();const Pd="220ms cubic-bezier(0, 0, 0.2, 1)",Ul=(0,Fa.X$)("datepickerAnimation",[(0,Fa.SB)("animated-down",(0,Fa.oB)({height:"*",overflow:"hidden"})),(0,Fa.eR)("* => animated-down",[(0,Fa.oB)({height:0,overflow:"hidden"}),(0,Fa.jt)(Pd)]),(0,Fa.SB)("animated-up",(0,Fa.oB)({height:"*",overflow:"hidden"})),(0,Fa.eR)("* => animated-up",[(0,Fa.oB)({height:"*",overflow:"hidden"}),(0,Fa.jt)(Pd)]),(0,Fa.eR)("* => unanimated",(0,Fa.jt)("0s"))]);class Jc{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new Od.w0,this.selectedTimeSub=new Od.w0}set minDate(E){this._effects?.setMinDate(E)}set maxDate(E){this._effects?.setMaxDate(E)}set daysDisabled(E){this._effects?.setDaysDisabled(E)}set datesDisabled(E){this._effects?.setDatesDisabled(E)}set datesEnabled(E){this._effects?.setDatesEnabled(E)}set isDisabled(E){this._effects?.setDisabled(E)}set dateCustomClasses(E){this._effects?.setDateCustomClasses(E)}set dateTooltipTexts(E){this._effects?.setDateTooltipTexts(E)}set daysCalendar$(E){this._daysCalendar$=E,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(b=>{this.multipleCalendars=!!b&&b.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(E){}navigateTo(E){}dayHoverHandler(E){}weekHoverHandler(E){}monthHoverHandler(E){}yearHoverHandler(E){}timeSelectHandler(E,b){}daySelectHandler(E){}monthSelectHandler(E){}yearSelectHandler(E){}setRangeOnCalendar(E){}setToday(){}clearDate(){}_stopPropagation(E){E.stopPropagation()}}let lo=(()=>{class f{static#e=this.CALCULATE="[datepicker] calculate dates matrix";static#t=this.FORMAT="[datepicker] format datepicker values";static#n=this.FLAG="[datepicker] set flags";static#i=this.SELECT="[datepicker] select date";static#r=this.NAVIGATE_OFFSET="[datepicker] shift view date";static#o=this.NAVIGATE_TO="[datepicker] change view date";static#s=this.SET_OPTIONS="[datepicker] update render options";static#a=this.HOVER="[datepicker] hover date";static#l=this.CHANGE_VIEWMODE="[datepicker] switch view mode";static#c=this.SET_MIN_DATE="[datepicker] set min date";static#d=this.SET_MAX_DATE="[datepicker] set max date";static#u=this.SET_DAYSDISABLED="[datepicker] set days disabled";static#h=this.SET_DATESDISABLED="[datepicker] set dates disabled";static#f=this.SET_DATESENABLED="[datepicker] set dates enabled";static#p=this.SET_IS_DISABLED="[datepicker] set is disabled";static#_=this.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes";static#m=this.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts";static#g=this.SET_LOCALE="[datepicker] set datepicker locale";static#v=this.SELECT_TIME="[datepicker] select time";static#b=this.SELECT_RANGE="[daterangepicker] select dates range";calculate(){return{type:f.CALCULATE}}format(){return{type:f.FORMAT}}flag(){return{type:f.FLAG}}select(b){return{type:f.SELECT,payload:b}}selectTime(b,P){return{type:f.SELECT_TIME,payload:{date:b,index:P}}}changeViewMode(b){return{type:f.CHANGE_VIEWMODE,payload:b}}navigateTo(b){return{type:f.NAVIGATE_TO,payload:b}}navigateStep(b){return{type:f.NAVIGATE_OFFSET,payload:b}}setOptions(b){return{type:f.SET_OPTIONS,payload:b}}selectRange(b){return{type:f.SELECT_RANGE,payload:b}}hoverDay(b){return{type:f.HOVER,payload:b.isHovered?b.cell.date:null}}minDate(b){return{type:f.SET_MIN_DATE,payload:b}}maxDate(b){return{type:f.SET_MAX_DATE,payload:b}}daysDisabled(b){return{type:f.SET_DAYSDISABLED,payload:b}}datesDisabled(b){return{type:f.SET_DATESDISABLED,payload:b}}datesEnabled(b){return{type:f.SET_DATESENABLED,payload:b}}isDisabled(b){return{type:f.SET_IS_DISABLED,payload:b}}setDateCustomClasses(b){return{type:f.SET_DATE_CUSTOM_CLASSES,payload:b}}setDateTooltipTexts(b){return{type:f.SET_DATE_TOOLTIP_TEXTS,payload:b}}setLocale(b){return{type:f.SET_LOCALE,payload:b}}static#y=this.\u0275fac=function(P){return new(P||f)};static#w=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),fu=(()=>{class f{constructor(){this._defaultLocale="en",this._locale=new ls.X(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(b){b!==this.currentLocale&&this._locale.next(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),ud=(()=>{class f{constructor(b,P){this._actions=b,this._localeService=P,this._subs=[]}init(b){return this._store=b,this}setValue(b){this._store?.dispatch(this._actions.select(b))}setRangeValue(b){this._store?.dispatch(this._actions.selectRange(b))}setMinDate(b){return this._store?.dispatch(this._actions.minDate(b)),this}setMaxDate(b){return this._store?.dispatch(this._actions.maxDate(b)),this}setDaysDisabled(b){return this._store?.dispatch(this._actions.daysDisabled(b)),this}setDatesDisabled(b){return this._store?.dispatch(this._actions.datesDisabled(b)),this}setDatesEnabled(b){return this._store?.dispatch(this._actions.datesEnabled(b)),this}setDisabled(b){return this._store?.dispatch(this._actions.isDisabled(b)),this}setDateCustomClasses(b){return this._store?.dispatch(this._actions.setDateCustomClasses(b)),this}setDateTooltipTexts(b){return this._store?.dispatch(this._actions.setDateTooltipTexts(b)),this}setOptions(b){const P=Object.assign({locale:this._localeService.currentLocale},b);return this._store?.dispatch(this._actions.setOptions(P)),this}setBindings(b){return this._store?(b.selectedTime=this._store.select(P=>P.selectedTime).pipe((0,l.h)(P=>!!P)),b.daysCalendar$=this._store.select(P=>P.flaggedMonths).pipe((0,l.h)(P=>!!P)),b.monthsCalendar=this._store.select(P=>P.flaggedMonthsCalendar).pipe((0,l.h)(P=>!!P)),b.yearsCalendar=this._store.select(P=>P.yearsCalendarFlagged).pipe((0,l.h)(P=>!!P)),b.viewMode=this._store.select(P=>P.view?.mode),b.options$=(0,Ou.a)([this._store.select(P=>P.showWeekNumbers),this._store.select(P=>P.displayMonths)]).pipe((0,D.U)(P=>({showWeekNumbers:P[0],displayMonths:P[1]}))),this):this}setEventHandlers(b){return b.setViewMode=P=>{this._store?.dispatch(this._actions.changeViewMode(P))},b.navigateTo=P=>{this._store?.dispatch(this._actions.navigateStep(P.step))},b.dayHoverHandler=P=>{const H=P.cell;H.isOtherMonth||H.isDisabled||(this._store?.dispatch(this._actions.hoverDay(P)),H.isHovered=P.isHovered)},b.monthHoverHandler=P=>{P.cell.isHovered=P.isHovered},b.yearHoverHandler=P=>{P.cell.isHovered=P.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(b=>b.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(b=>b.monthsModel).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(b=>b.formattedMonths).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.selectedDate).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.selectedRange).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.yearsCalendarModel).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.hoveredDate).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.dateCustomClasses).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(b=>b.dateTooltipTexts).pipe((0,l.h)(b=>!!b)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(b=>this._store?.dispatch(this._actions.setLocale(b)))),this):this}destroy(){for(const b of this._subs)b.unsubscribe()}static#e=this.\u0275fac=function(P){return new(P||f)(e.LFG(lo),e.LFG(fu))};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})();const Eh={date:new Date,mode:"day"},th=Object.assign(new ol,{locale:"en",view:Eh,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function eu(f,E,b){const P=E&&K(pr(f,"month"),E,"day"),H=b&&ro(bo(f,"month"),b,"day");return P||H||!1}function Dc(f,E,b){const P=E&&K(pr(f,"year"),E,"day"),H=b&&ro(bo(f,"year"),b,"day");return P||H||!1}function Nd(f,E,b){return!!(E&&ce(E)&&E.length)&&(b&&"year"===b&&!E[0].getDate()?E.some(P=>Ne(f,P,"year")):E.some(P=>Ne(f,P,"date")))}function Nu(f,E,b){return!!(E&&ce(E)&&E.length)&&!E.some(P=>Ne(f,P,b||"date"))}function Fu(f,E=0){const b=f&&f.yearsCalendarModel&&f.yearsCalendarModel[E];return b?.years[0]&&b.years[0][0]&&b.years[0][0].date}function Yu(f,E){return!f||!E||!f.length&&!f[0].value||f.forEach(b=>(!b||!b.value||b.value instanceof Date||!(b.value instanceof Array&&b.value.length)||(b.value=ih(b.value,E)),f)),f}function pu(f,E){return!f||!E||f instanceof Array&&!f.length||f instanceof Date?f:ih(f,E)}function ih(f,E){return f instanceof Array?f.map(P=>P&&(ro(P,E,"date")&&(P=E),P)):f}function _u(f){return f&&rh(f)}function Ah(f){return f?.length&&f.map(E=>E&&rh(E)),f}function rh(f){const E=new Date;return f.setMilliseconds(E.getMilliseconds()),f.setSeconds(E.getSeconds()),f.setMinutes(E.getMinutes()),f.setHours(E.getHours()),f}function Bu(f,E){let b=f.initialDate;const P=new Array(f.height);for(let H=0;HEt),month:b}}function Fd(f,E,b){return f.map(P=>P[0]?ts(P[0],E,b):"")}function us(f){const E=sr(f),b=E.weekdaysShort(),P=E.firstDayOfWeek();return[...b.slice(P),...b.slice(0,P)]}function Yd(f,E){return!E||f>=E}const hd=4,_f=3,Ip={month:1};function Oh(f,E){const b=bo(f,"year");return{months:Bu({width:_f,height:hd,initialDate:b,shift:Ip},Me=>({date:Me,label:ts(Me,E.monthLabel,E.locale)})),monthTitle:"",yearTitle:ts(f,E.yearTitle,E.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const ah=4,Bd=4,tu=ah*Bd,lh=-1*(Math.floor(tu/2)-1),mf={year:1};function Rh(f,E,b){const P=function gf(f,E){return E&&f.getFullYear()>=E.getFullYear()&&f.getFullYear()({date:yn,label:ts(yn,E.yearLabel,E.locale)})),Et=function gu(f,E){return`${ts(f[0][0].date,E.yearTitle,E.locale)} - ${ts(f[ah-1][Bd-1].date,E.yearTitle,E.locale)}`}(Me,E);return{years:Me,monthTitle:"",yearTitle:Et,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function vf(f,E){!f||!isNaN(f.getTime())||(f.setHours(E.getHours()),f.setMinutes(E.getMinutes()),f.setSeconds(E.getSeconds()),f.setMilliseconds(E.getMilliseconds()))}function kh(f=th,E){switch(E.type){case lo.CALCULATE:return function Rp(f){if(!f.view)return f;let E;E=f.displayOneMonthRange&&t(f.view.date,f.minDate,f.maxDate)?1:f.displayMonths||1;let b=f.view.date;if("day"===f.view.mode&&f.monthViewOptions){f.showPreviousMonth&&f.selectedRange&&0===f.selectedRange.length&&(b=En(b,{month:-1})),f.monthViewOptions.firstDayOfWeek=sr(f.locale).firstDayOfWeek();let P=new Array(E);for(let H=0;Hf.monthViewOptions?oh(Me.month,f.monthViewOptions):null).filter(Me=>null!==Me))}return Object.assign({},f,{monthsModel:P})}if("month"===f.view.mode){const P=new Array(E);for(let H=0;Hfunction sh(f,E,b){return{month:f.month,monthTitle:ts(f.month,E.monthTitle,E.locale),yearTitle:ts(f.month,E.yearTitle,E.locale),weekNumbers:Fd(f.daysMatrix,E.weekNumbers,E.locale),weekdays:us(E.locale),weeks:f.daysMatrix.map((P,H)=>({days:P.map((Me,Et)=>({date:Me,label:ts(Me,E.dayLabel,E.locale),monthIndex:b,weekIndex:H,dayIndex:Et}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(H,vu(f),Me));return Object.assign({},f,{formattedMonths:P})}const E=f.displayMonths||1;let b=f.view.date;if("month"===f.view.mode){const P=new Array(E);for(let H=0;Hfunction Yo(f,E){return f.weeks.forEach(b=>{b.days.forEach((P,H)=>{const Me=!Ce(P.date,f.month),Et=!Me&&ae(P.date,E.hoveredDate),yn=!Me&&E.selectedRange&&ae(P.date,E.selectedRange[0]),Gn=!Me&&E.selectedRange&&ae(P.date,E.selectedRange[1]),Rr=!Me&&ae(P.date,E.selectedDate)||yn||Gn,Ts=!Me&&E.selectedRange&&function mu(f,E,b){return!!(f&&E&&E[0])&&(E[1]?f>E[0]&&f<=E[1]:!!b&&f>E[0]&&f<=b)}(P.date,E.selectedRange,E.hoveredDate),pa=E.isDisabled||K(P.date,E.minDate,"day")||ro(P.date,E.maxDate,"day")||function Ue(f,E){return!(typeof E>"u"||!E||!E.length)&&E.some(b=>b===f.getDay())}(P.date,E.daysDisabled)||Nd(P.date,E.datesDisabled)||Nu(P.date,E.datesEnabled),Lh=!Me&&ae(P.date,new Date),yf=E.dateCustomClasses&&E.dateCustomClasses.map(Qc=>ae(P.date,Qc.date)?Qc.classes:[]).reduce((Qc,ch)=>Qc.concat(ch),[]).join(" ")||"",wf=E.dateTooltipTexts&&E.dateTooltipTexts.map(Qc=>ae(P.date,Qc.date)?Qc.tooltipText:"").reduce((Qc,ch)=>(Qc.push(ch),Qc),[]).join(" ")||"",Rc=Object.assign({},P,{isOtherMonth:Me,isHovered:Et,isSelected:Rr,isSelectionStart:yn,isSelectionEnd:Gn,isInRange:Ts,isDisabled:pa,isToday:Lh,customClasses:yf,tooltipText:wf});(P.isOtherMonth!==Rc.isOtherMonth||P.isHovered!==Rc.isHovered||P.isSelected!==Rc.isSelected||P.isSelectionStart!==Rc.isSelectionStart||P.isSelectionEnd!==Rc.isSelectionEnd||P.isDisabled!==Rc.isDisabled||P.isInRange!==Rc.isInRange||P.customClasses!==Rc.customClasses||P.tooltipText!==Rc.tooltipText)&&(b.days[H]=Rc)})}),f.hideLeftArrow=E.isDisabled||!!E.monthIndex&&E.monthIndex>0&&E.monthIndex!==E.displayMonths,f.hideRightArrow=E.isDisabled||(!!E.monthIndex||0===E.monthIndex)&&!!E.displayMonths&&E.monthIndexfunction Ih(f,E){return f.months.forEach((b,P)=>{b.forEach((H,Me)=>{let Et;const yn=Ce(H.date,E.hoveredMonth),Gn=E.isDisabled||Nd(H.date,E.datesDisabled)||Nu(H.date,E.datesEnabled,"month")||eu(H.date,E.minDate,E.maxDate);!E.selectedDate&&E.selectedRange?(Et=Ce(H.date,E.selectedRange[0]),Et||(Et=Ce(H.date,E.selectedRange[1]))):Et=Ce(H.date,E.selectedDate);const Rr=Object.assign(H,{isHovered:yn,isDisabled:Gn,isSelected:Et});(H.isHovered!==Rr.isHovered||H.isDisabled!==Rr.isDisabled||H.isSelected!==Rr.isSelected)&&(f.months[P][Me]=Rr)})}),f.hideLeftArrow=!!E.monthIndex&&E.monthIndex>0&&E.monthIndex!==E.displayMonths,f.hideRightArrow=(!!E.monthIndex||0===E.monthIndex)&&(!!E.displayMonths||0===E.displayMonths)&&E.monthIndexfunction fd(f,E){f.years.forEach((H,Me)=>{H.forEach((Et,yn)=>{let Gn;const Rr=J(Et.date,E.hoveredYear),Ts=E.isDisabled||Nd(Et.date,E.datesDisabled,"year")||Nu(Et.date,E.datesEnabled,"year")||Dc(Et.date,E.minDate,E.maxDate);!E.selectedDate&&E.selectedRange?(Gn=J(Et.date,E.selectedRange[0]),Gn||(Gn=J(Et.date,E.selectedRange[1]))):Gn=J(Et.date,E.selectedDate);const pa=Object.assign(Et,{isHovered:Rr,isDisabled:Ts,isSelected:Gn});(Et.isHovered!==pa.isHovered||Et.isDisabled!==pa.isDisabled||Et.isSelected!==pa.isSelected)&&(f.years[Me][yn]=pa)})}),f.hideLeftArrow=!!E.yearIndex&&E.yearIndex>0&&E.yearIndex!==E.displayMonths,f.hideRightArrow=!!E.yearIndex&&!!E.displayMonths&&E.yearIndexEt)),b.value instanceof Date&&(b.selectedDate=b.value,b.selectedTime=[b.value])),Object.assign({},f,b)}case lo.SELECT_RANGE:{if(!f.view)return f;const b={selectedRange:E.payload,view:f.view};b.selectedRange?.forEach((Et,yn)=>{if(Array.isArray(f.selectedTime)){const Gn=f.selectedTime[yn];Gn&&vf(Et,Gn)}});const P=f.view.mode,Me=o(E.payload&&E.payload[0]||f.view.date,f.minDate,f.maxDate);return b.view={mode:P,date:Me},Object.assign({},f,b)}case lo.SET_MIN_DATE:return Object.assign({},f,{minDate:E.payload});case lo.SET_MAX_DATE:return Object.assign({},f,{maxDate:E.payload});case lo.SET_IS_DISABLED:return Object.assign({},f,{isDisabled:E.payload});case lo.SET_DATE_CUSTOM_CLASSES:return Object.assign({},f,{dateCustomClasses:E.payload});case lo.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},f,{dateTooltipTexts:E.payload});default:return f}}function vu(f){return{locale:f.locale,monthTitle:f.monthTitle,yearTitle:f.yearTitle,dayLabel:f.dayLabel,monthLabel:f.monthLabel,yearLabel:f.yearLabel,weekNumbers:f.weekNumbers}}function o(f,E,b){const P=Array.isArray(f)?f[0]:f;return E&&ro(E,P,"day")?E:b&&K(b,P,"day")?b:P}function t(f,E,b){return!(!b||!Ne(b,f,"day"))||E&&b&&E.getMonth()===b.getMonth()}let i=(()=>{class f extends zo{constructor(){const b=new ls.X({type:"[datepicker] dispatcher init"});super(b,kh,new Vc(th,b,kh))}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"platform"})}return f})(),s=(()=>{class f{constructor(){this.onSelect=new e.vpe}selectFromRanges(b){this.onSelect.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(P,H){1&P&&(e.TgZ(0,"div",0),e.YNc(1,Xe,2,3,"button",1),e.qZA()),2&P&&(e.xp6(1),e.Q6J("ngForOf",H.ranges))},dependencies:[zi.sg],encapsulation:2,changeDetection:0})}return f})();var c=function(f){return f[f.UP=0]="UP",f[f.DOWN=1]="DOWN",f}(c||{});let et,h=(()=>{class f{static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(P,H){1&P&&(e.TgZ(0,"div",0)(1,"span"),e._uU(2),e.qZA()()),2&P&&(e.xp6(2),e.Oqu(H.title))},encapsulation:2})}return f})(),v=(()=>{class f{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(P,H){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"button",2),e._uU(3,"-"),e.qZA(),e._UZ(4,"input",3),e.TgZ(5,"button",4),e._uU(6,"+"),e.qZA()(),e.TgZ(7,"div",1)(8,"button",2),e._uU(9,"-"),e.qZA(),e._UZ(10,"input",3),e.TgZ(11,"button",4),e._uU(12,"+"),e.qZA()(),e.TgZ(13,"button",5),e._uU(14),e._UZ(15,"img",6),e.qZA()()),2&P&&(e.xp6(4),e.Q6J("value",H.hours),e.xp6(6),e.Q6J("value",H.minutes),e.xp6(4),e.hij("",H.ampm," "))},encapsulation:2})}return f})(),M=(()=>{class f{static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-calendar-layout"]],ngContentSelectors:ye,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(P,H){1&P&&(e.F$t(R),e.YNc(0,g,1,0,"bs-current-date",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA(),e.TgZ(3,"div",2),e.Hsn(4,1),e.qZA(),e.YNc(5,L,1,0,"bs-timepicker",3)),2&P&&(e.Q6J("ngIf",!1),e.xp6(5),e.Q6J("ngIf",!1))},dependencies:[zi.O5,h,v],encapsulation:2})}return f})(),O=(()=>{class f{constructor(b,P,H){this._config=b,this._elRef=P,this._renderer=H,this.day={date:new Date,label:""}}ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day?.customClasses&&this.day?.customClasses.split(" ").filter(b=>b).forEach(b=>{this._renderer.addClass(this._elRef.nativeElement,b)})}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol),e.Y36(e.SBq),e.Y36(e.Qsj))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(P,H){2&P&&e.ekj("disabled",H.day.isDisabled)("is-highlighted",H.day.isHovered)("is-other-month",H.day.isOtherMonth)("is-active-other-month",H.day.isOtherMonthHovered)("in-range",H.day.isInRange)("select-start",H.day.isSelectionStart)("select-end",H.day.isSelectionEnd)("selected",H.day.isSelected)},inputs:{day:"day"},attrs:Dt,decls:1,vars:1,template:function(P,H){1&P&&e._uU(0),2&P&&e.Oqu(H.day&&H.day.label||"")},encapsulation:2,changeDetection:0})}return f})(),N=(()=>{class f{constructor(){this.isDisabled=!1,this.onNavigate=new e.vpe,this.onViewMode=new e.vpe}navTo(b){this.onNavigate.emit(b?c.DOWN:c.UP)}view(b){this.isDisabled||this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"disabled","click"],[4,"ngIf"],["type","button",1,"current",3,"disabled","click"],["type","button",1,"next",3,"disabled","click"]],template:function(P,H){1&P&&(e.TgZ(0,"button",0),e.NdJ("click",function(){return H.navTo(!0)}),e.TgZ(1,"span"),e._uU(2,"\u2039"),e.qZA()(),e.YNc(3,Mn,5,2,"ng-container",1),e._uU(4," \u200b "),e.TgZ(5,"button",2),e.NdJ("click",function(){return H.view("year")}),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e._uU(8," \u200b "),e.TgZ(9,"button",3),e.NdJ("click",function(){return H.navTo(!1)}),e.TgZ(10,"span"),e._uU(11,"\u203a"),e.qZA()()),2&P&&(e.Udp("visibility",H.calendar.hideLeftArrow?"hidden":"visible"),e.Q6J("disabled",H.calendar.disableLeftArrow),e.xp6(3),e.Q6J("ngIf",H.calendar&&H.calendar.monthTitle),e.xp6(2),e.Q6J("disabled",H.isDisabled),e.xp6(2),e.Oqu(H.calendar.yearTitle),e.xp6(2),e.Udp("visibility",H.calendar.hideRightArrow?"hidden":"visible"),e.Q6J("disabled",H.calendar.disableRightArrow))},dependencies:[zi.O5],encapsulation:2,changeDetection:0})}return f})(),$=(()=>{class f{constructor(b){this._config=b,this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe,this.onHoverWeek=new e.vpe,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(b){this.onNavigate.emit({step:{month:c.DOWN===b?-1:1}})}changeViewMode(b){this.onViewMode.emit(b)}selectDay(b){this.onSelect.emit(b)}selectWeek(b){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===b.days.length)return;if(this._config.selectWeek&&b.days[0]&&!b.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(b.days[0]);const P=b.days.find(H=>(this._config.selectFromOtherMonth||!H.isOtherMonth)&&!H.isDisabled);if(this.onSelect.emit(P),this._config.selectWeekDateRange){const Me=b.days.slice(0).reverse().find(Et=>(this._config.selectFromOtherMonth||!Et.isOtherMonth)&&!Et.isDisabled);this.onSelect.emit(Me)}}weekHoverHandler(b,P){(this._config.selectWeek||this._config.selectWeekDateRange)&&b.days.find(Me=>(this._config.selectFromOtherMonth||!Me.isOtherMonth)&&!Me.isDisabled)&&(b.isHovered=P,this.isWeekHovered=P,this.onHoverWeek.emit(b))}hoverDay(b,P){this._config.selectFromOtherMonth&&b.isOtherMonth&&(b.isOtherMonthHovered=P),this._config.dateTooltipTexts&&(b.tooltipText="",this._config.dateTooltipTexts.forEach(H=>{ae(H.date,b.date)&&(b.tooltipText=H.tooltipText)})),this.onHover.emit({cell:b,isHovered:P})}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"calendar","isDisabled","onNavigate","onViewMode"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"thead")(4,"tr"),e.YNc(5,vi,1,0,"th",2),e.YNc(6,Fo,2,1,"th",3),e.qZA()(),e.TgZ(7,"tbody"),e.YNc(8,Xd,3,2,"tr",4),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar)("isDisabled",!!H.isDisabled),e.xp6(4),e.Q6J("ngIf",H.options&&H.options.showWeekNumbers),e.xp6(1),e.Q6J("ngForOf",H.calendar.weekdays),e.xp6(2),e.Q6J("ngForOf",H.calendar.weeks))},dependencies:[zi.sg,zi.O5,Id.i9,M,O,N],encapsulation:2})}return f})(),q=(()=>{class f{constructor(){this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe}navigateTo(b){this.onNavigate.emit({step:{year:c.DOWN===b?-1:1}})}viewMonth(b){this.onSelect.emit(b)}hoverMonth(b,P){this.onHover.emit({cell:b,isHovered:P})}changeViewMode(b){this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"tbody"),e.YNc(4,ru,2,1,"tr",2),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar),e.xp6(3),e.Q6J("ngForOf",null==H.calendar?null:H.calendar.months))},dependencies:[zi.sg,M,N],encapsulation:2})}return f})(),de=(()=>{class f{constructor(){this.onNavigate=new e.vpe,this.onViewMode=new e.vpe,this.onSelect=new e.vpe,this.onHover=new e.vpe}navigateTo(b){this.onNavigate.emit({step:{year:(c.DOWN===b?-1:1)*tu}})}viewYear(b){this.onSelect.emit(b)}hoverYear(b,P){this.onHover.emit({cell:b,isHovered:P})}changeViewMode(b){this.onViewMode.emit(b)}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(P,H){1&P&&(e.TgZ(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.NdJ("onNavigate",function(Et){return H.navigateTo(Et)})("onViewMode",function(Et){return H.changeViewMode(Et)}),e.qZA(),e.TgZ(2,"table",1)(3,"tbody"),e.YNc(4,su,2,1,"tr",2),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("calendar",H.calendar),e.xp6(3),e.Q6J("ngForOf",null==H.calendar?null:H.calendar.years))},dependencies:[zi.sg,M,N],encapsulation:2})}return f})(),we=(()=>{class f extends Jc{set value(b){this._effects?.setValue(b)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(b,P,H,Me,Et,yn,Gn){super(),this._config=P,this._store=H,this._element=Me,this._actions=Et,this._positionService=Gn,this.valueChange=new e.vpe,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=yn,b.setStyle(Me.nativeElement,"display","block"),b.setStyle(Me.nativeElement,"position","absolute")}ngOnInit(){let b;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,I.q)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(P=>P.selectedDate).subscribe(P=>{b=P,this.valueChange.emit(P)})),this._subs.push(this._store.select(P=>P.selectedTime).subscribe(P=>{!P[0]||!(P[0]instanceof Date)||P[0]===b||this.valueChange.emit(P[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(b=>{Array.isArray(b)&&b.length>=1&&this.startTimepicker?.writeValue(b[0])})),this.startTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(b,P){this._store.dispatch(this._actions.selectTime(b,P))}daySelectHandler(b){!b||(this.isOtherMonthsActive?b.isDisabled:b.isOtherMonth||b.isDisabled)||this._store.dispatch(this._actions.select(b.date))}monthSelectHandler(b){!b||b.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:Ot(b.date),year:rn(b.date)},viewMode:"day"}))}yearSelectHandler(b){!b||b.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:rn(b.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const b of this._subs)b.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(e.Qsj),e.Y36(ol),e.Y36(i),e.Y36(e.SBq),e.Y36(lo),e.Y36(ud),e.Y36(Zs.sA))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-datepicker-container"]],viewQuery:function(P,H){if(1&P&&e.Gf(Ir,5),2&P){let Me;e.iGM(Me=e.CRH())&&(H.startTimepicker=Me.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(P,H){1&P&&e.NdJ("click",function(Et){return H._stopPropagation(Et)}),2&P&&e.uIk("disabled",H.isDatepickerDisabled)("readonly",H.isDatepickerReadonly)},features:[e._Bn([i,ud]),e.qOj],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(P,H){1&P&&(e.YNc(0,eo,10,11,"div",0),e.ALo(1,"async")),2&P&&e.Q6J("ngIf",e.lcZ(1,1,H.viewMode))},dependencies:[zi.mk,zi.sg,zi.O5,zi.RF,zi.n9,Yl,s,$,q,de,zi.Ov],encapsulation:2,data:{animation:[Ul]}})}return f})(),vt=(()=>{class f{get readonlyValue(){return this.isDisabled?"":null}constructor(b,P,H,Me,Et){this._config=b,this._elementRef=P,this._renderer=H,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Tc.x,this.isDisabled=!1,this.bsValueChange=new e.vpe,this._subs=[],this._dateInputFormat$=new Tc.x,Object.assign(this,this._config),this._datepicker=Et.createLoader(P,Me,H),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new ls.X(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(b){this.isOpen$.next(b)}set bsValue(b){this._bsValue&&b&&this._bsValue.getTime()===b.getTime()||(!this._bsValue&&b&&!this._config.withTimepicker&&vf(b,new Date),b&&this.bsConfig?.initCurrentTime&&(b=_u(b)),this.initPreviousValue(),this._bsValue=b,this.bsValueChange.emit(b))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){et=this._bsValue}ngOnChanges(b){b.bsConfig&&(b.bsConfig.currentValue?.initCurrentTime&&b.bsConfig.currentValue?.initCurrentTime!==b.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=_u(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(b.minDate&&(this._datepickerRef.instance.minDate=this.minDate),b.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),b.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),b.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),b.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),b.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),b.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),b.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(b=>{this._datepickerRef&&(this._datepickerRef.instance.value=b)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(b=>{this.initPreviousValue(),this.bsValue=b,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!!(et&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return et instanceof Date&&this._bsValue?.getDate()===et?.getDate()&&this._bsValue?.getMonth()===et?.getMonth()&&this._bsValue?.getFullYear()===et?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe((0,l.h)(b=>b!==this.isOpen),(0,S.R)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:ol,useValue:this._config}).attach(we).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const b of this._subs)b.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:pu(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(b=>b.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(ol),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(F.oj))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(P,H){2&P&&e.uIk("readonly",H.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[e.TTD]})}return f})(),bn=(()=>{class f extends Jc{set value(b){this._effects?.setRangeValue(b)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(b,P,H,Me,Et,yn,Gn){super(),this._config=P,this._store=H,this._element=Me,this._actions=Et,this._positionService=Gn,this.valueChange=new e.vpe,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=yn,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,b.setStyle(Me.nativeElement,"display","block"),b.setStyle(Me.nativeElement,"position","absolute")}ngOnInit(){let b;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,I.q)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(P=>P.selectedRange).subscribe(P=>{b=P,this.valueChange.emit(P),this.chosenRange=P||[]})),this._subs.push(this._store.select(P=>P.selectedTime).subscribe(P=>{!P[0]||!P[1]||!(P[0]instanceof Date)||!(P[1]instanceof Date)||b&&P[0]===b[0]&&P[1]===b[1]||(this.valueChange.emit(P),this.chosenRange=P||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(b=>{Array.isArray(b)&&b.length>=2&&(this.startTimepicker?.writeValue(b[0]),this.endTimepicker?.writeValue(b[1]))})),this.startTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,0)}),this.endTimepicker?.registerOnChange(b=>{this.timeSelectHandler(b,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(b,P){this._store.dispatch(this._actions.selectTime(b,P))}daySelectHandler(b){!b||(this.isOtherMonthsActive?b.isDisabled:b.isOtherMonth||b.isDisabled)||this.rangesProcessing(b)}monthSelectHandler(b){if(b&&!b.isDisabled){if(b.isSelected=!0,"month"!==this._config.minMode){if(b.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:Ot(b.date),year:rn(b.date)},viewMode:"day"}))}this.rangesProcessing(b)}}yearSelectHandler(b){if(b&&!b.isDisabled){if(b.isSelected=!0,"year"!==this._config.minMode){if(b.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:rn(b.date)},viewMode:"month"}))}this.rangesProcessing(b)}}rangesProcessing(b){1===this._rangeStack.length&&(this._rangeStack=b.date>=this._rangeStack[0]?[this._rangeStack[0],b.date]:[b.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(b.date),0===this._rangeStack.length&&(this._rangeStack=[b.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(b.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const b of this._subs)b.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(b){b&&(this._rangeStack=b.value instanceof Date?[b.value]:b.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(b){let P=new Date(b);if(this._config.maxDate){const H=this._config.maxDate.getTime(),Me=b.getTime()+864e5*(this._config.maxDateRange||0);P=Me>H?new Date(this._config.maxDate):new Date(Me)}else P.setDate(b.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(P)}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(e.Qsj),e.Y36(ol),e.Y36(i),e.Y36(e.SBq),e.Y36(lo),e.Y36(ud),e.Y36(Zs.sA))};static#t=this.\u0275cmp=e.Xpm({type:f,selectors:[["bs-daterangepicker-container"]],viewQuery:function(P,H){if(1&P&&(e.Gf(Ir,5),e.Gf(Zf,5)),2&P){let Me;e.iGM(Me=e.CRH())&&(H.startTimepicker=Me.first),e.iGM(Me=e.CRH())&&(H.endTimepicker=Me.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(P,H){1&P&&e.NdJ("click",function(Et){return H._stopPropagation(Et)}),2&P&&e.uIk("disabled",H.isDatepickerDisabled)("readonly",H.isDatepickerReadonly)},features:[e._Bn([i,ud]),e.qOj],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(P,H){1&P&&(e.YNc(0,ku,10,11,"div",0),e.ALo(1,"async")),2&P&&e.Q6J("ngIf",e.lcZ(1,1,H.viewMode))},dependencies:[zi.mk,zi.sg,zi.O5,zi.RF,zi.n9,Yl,s,$,q,de,zi.Ov],encapsulation:2,data:{animation:[Ul]}})}return f})();const Kn={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>Gi),multi:!0},fi={provide:Uc.Cf,useExisting:(0,e.Gpc)(()=>Gi),multi:!0};let go,Gi=(()=>{class f{constructor(b,P,H,Me,Et){this._picker=b,this._localeService=P,this._renderer=H,this._elRef=Me,this.changeDetection=Et,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Od.w0}ngOnInit(){const b=P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&b(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(b)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe((0,w.x)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(b){(13===b.keyCode||"Enter"===b.code)&&this.hide()}_setInputValue(b){const P=b?ts(b,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",P)}onChange(b){this.writeValue(b.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(b){const P=b.value;if(null==P||""===P)return null;if(re(P)){if(!se(P))return{bsDate:{invalid:P}};if(this._picker&&this._picker.minDate&&K(P,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&ro(P,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(b){this._validatorChange=b}writeValue(b){if(b){const P=this._localeService.currentLocale;if(!sr(P))throw new Error(`Locale "${P}" is not defined, please add it with "defineLocale(...)"`);this._value=ra(b,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=Al(this._value))}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(b){this._picker.isDisabled=b,b?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(vt,1),e.Y36(fu),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["input","bsDatepicker",""]],hostBindings:function(P,H){1&P&&e.NdJ("change",function(Et){return H.onChange(Et)})("keyup.esc",function(){return H.hide()})("keydown",function(Et){return H.onKeydownEvent(Et)})("blur",function(){return H.onBlur()})},features:[e._Bn([Kn,fi])]})}return f})(),Vi=(()=>{class f extends ol{constructor(){super(...arguments),this.displayMonths=2}static#e=this.\u0275fac=function(){let b;return function(H){return(b||(b=e.n5z(f)))(H||f)}}();static#t=this.\u0275prov=e.Yz7({token:f,factory:f.\u0275fac,providedIn:"root"})}return f})(),Dr=(()=>{class f{get isOpen(){return this._datepicker.isShown}set isOpen(b){this.isOpen$.next(b)}set bsValue(b){this._bsValue!==b&&(b&&this.bsConfig?.initCurrentTime&&(b=Ah(b)),this.initPreviousValue(),this._bsValue=b,this.bsValueChange.emit(b))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(b,P,H,Me,Et){this._config=b,this._elementRef=P,this._renderer=H,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Tc.x,this.isDisabled=!1,this.bsValueChange=new e.vpe,this._subs=[],this._rangeInputFormat$=new Tc.x,this._datepicker=Et.createLoader(P,Me,H),Object.assign(this,b),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new ls.X(this.isOpen)}ngOnInit(){this.isDestroy$=new Tc.x,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(b){b.bsConfig&&(b.bsConfig.currentValue?.initCurrentTime&&b.bsConfig.currentValue?.initCurrentTime!==b.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Ah(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(b.bsConfig.currentValue&&b.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(b.minDate&&(this._datepickerRef.instance.minDate=this.minDate),b.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),b.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),b.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),b.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),b.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),b.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe((0,l.h)(b=>b!==this.isOpen),(0,S.R)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:ol,useValue:this._config}).attach(bn).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(b=>{this._datepickerRef&&(this._datepickerRef.instance.value=b)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe((0,l.h)(b=>b&&b[0]&&!!b[1])).subscribe(b=>{this.initPreviousValue(),this.bsValue=b,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){go=this._bsValue}keepDatepickerModalOpened(){return!!(go&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===go?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===go?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===go?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===go?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===go?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===go?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:pu(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:Yu(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(const b of this._subs)b.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(b=>b.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Vi),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(e.s_b),e.Y36(F.oj))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(P,H){2&P&&e.uIk("readonly",H.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[e.TTD]})}return f})();const hs={provide:Uc.JU,useExisting:(0,e.Gpc)(()=>ic),multi:!0},Vl={provide:Uc.Cf,useExisting:(0,e.Gpc)(()=>ic),multi:!0};let ic=(()=>{class f{constructor(b,P,H,Me,Et){this._picker=b,this._localeService=P,this._renderer=H,this._elRef=Me,this.changeDetection=Et,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Od.w0}ngOnInit(){this._picker._bsValue&&(P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(P=>{this._setInputValue(P),this._value!==P&&(this._value=P,this._onChange(P),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe((0,w.x)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(b){(13===b.keyCode||"Enter"===b.code)&&this.hide()}_setInputValue(b){let P="";if(b){const H=b[0]?ts(b[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",Me=b[1]?ts(b[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";P=H&&Me?H+this._picker._config.rangeSeparator+Me:""}this._renderer.setProperty(this._elRef.nativeElement,"value",P)}onChange(b){this.writeValue(b.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(b){let P=b.value;const H=[];if(null==P||!ce(P))return null;P=P.slice().sort((yn,Gn)=>yn.getTime()-Gn.getTime());const Me=se(P[0]),Et=se(P[1]);return Me?Et?(this._picker&&this._picker.minDate&&K(P[0],this._picker.minDate,"date")&&(P[0]=this._picker.minDate,H.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&ro(P[1],this._picker.maxDate,"date")&&(P[1]=this._picker.maxDate,H.push({bsDate:{maxDate:this._picker.maxDate}})),H.length>0?(this.writeValue(P),H):null):{bsDate:{invalid:P[1]}}:{bsDate:{invalid:P[0]}}}registerOnValidatorChange(b){this._validatorChange=b}writeValue(b){if(b){const P=this._localeService.currentLocale;if(!sr(P))throw new Error(`Locale "${P}" is not defined, please add it with "defineLocale(...)"`);let Me=[];if("string"==typeof b){const Et=this._picker._config.rangeSeparator.trim();Me=b.replace(/[^-]/g,"").length>1?b.split(this._picker._config.rangeSeparator):b.split(Et.length>0?Et:this._picker._config.rangeSeparator).map(yn=>yn.trim())}Array.isArray(b)&&(Me=b),this._value=Me.map(Et=>this._picker._config.useUtc?Al(ra(Et,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):ra(Et,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(Et=>isNaN(Et.valueOf())?void 0:Et)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(b){this._picker.isDisabled=b,b?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(b){this._onChange=b}registerOnTouched(b){this._onTouched=b}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static#e=this.\u0275fac=function(P){return new(P||f)(e.Y36(Dr,1),e.Y36(fu),e.Y36(e.Qsj),e.Y36(e.SBq),e.Y36(e.sBO))};static#t=this.\u0275dir=e.lG2({type:f,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(P,H){1&P&&e.NdJ("change",function(Et){return H.onChange(Et)})("keyup.esc",function(){return H.hide()})("keydown",function(Et){return H.onKeydownEvent(Et)})("blur",function(){return H.onBlur()})},features:[e._Bn([hs,Vl])]})}return f})(),Cs=(()=>{class f{static forRoot(){return{ngModule:f,providers:[F.oj,Zs.sA,i,lo,ud,fu,ml]}}static#e=this.\u0275fac=function(P){return new(P||f)};static#t=this.\u0275mod=e.oAB({type:f});static#n=this.\u0275inj=e.cJS({imports:[zi.ez,Id.z8,Gu]})}return f})()},4060:(ft,Ie,C)=>{"use strict";C.d(Ie,{Bz:()=>re,sA:()=>ei});var e=C(3161),l=C(5879),D=C(6814),I=C(8645),S=C(3019),w=C(2438),n=C(2096),Z=C(927),ee=function(Ve){return Ve.top="top",Ve.bottom="bottom",Ve.left="left",Ve.right="right",Ve.auto="auto",Ve.end="right",Ve.start="left",Ve["top left"]="top left",Ve["top right"]="top right",Ve["right top"]="right top",Ve["right bottom"]="right bottom",Ve["bottom right"]="bottom right",Ve["bottom left"]="bottom left",Ve["left bottom"]="left bottom",Ve["left top"]="left top",Ve["top start"]="top left",Ve["top end"]="top right",Ve["end top"]="right top",Ve["end bottom"]="right bottom",Ve["bottom end"]="bottom right",Ve["bottom start"]="bottom left",Ve["start bottom"]="start bottom",Ve["start top"]="left top",Ve}(ee||{}),re=function(Ve){return Ve.top="top",Ve.bottom="bottom",Ve.left="start",Ve.right="end",Ve.auto="auto",Ve.end="end",Ve.start="start",Ve["top left"]="top start",Ve["top right"]="top end",Ve["right top"]="end top",Ve["right bottom"]="end bottom",Ve["bottom right"]="bottom end",Ve["bottom left"]="bottom start",Ve["left bottom"]="start bottom",Ve["left top"]="start top",Ve["top start"]="top start",Ve["top end"]="top end",Ve["end top"]="end top",Ve["end bottom"]="end bottom",Ve["bottom end"]="bottom end",Ve["bottom start"]="bottom start",Ve["start bottom"]="start bottom",Ve["start top"]="start top",Ve}(re||{});function ue(Ve,ct){if(1!==Ve.nodeType)return[];const Ce=Ve.ownerDocument.defaultView?.getComputedStyle(Ve,null);return ct?Ce&&Ce[ct]:Ce}function se(Ve){if(!Ve)return document.documentElement;let Ce,Ct=Ve?.offsetParent;for(;null===Ct&&Ve.nextElementSibling&&Ce!==Ve.nextElementSibling;)Ce=Ve.nextElementSibling,Ct=Ce.offsetParent;const J=Ct&&Ct.nodeName;return J&&"BODY"!==J&&"HTML"!==J?Ct&&-1!==["TH","TD","TABLE"].indexOf(Ct.nodeName)&&"static"===ue(Ct,"position")?se(Ct):Ct:Ce?Ce.ownerDocument.documentElement:document.documentElement}function oe(Ve){return null!==Ve.parentNode?oe(Ve.parentNode):Ve}function ce(Ve,ct){if(!(Ve&&Ve.nodeType&&ct&&ct.nodeType))return document.documentElement;const Ct=Ve.compareDocumentPosition(ct)&Node.DOCUMENT_POSITION_FOLLOWING,Ce=Ct?Ve:ct,J=Ct?ct:Ve,ae=document.createRange();ae.setStart(Ce,0),ae.setEnd(J,0);const Oe=ae.commonAncestorContainer;if(Ve!==Oe&&ct!==Oe||Ce.contains(J))return function te(Ve){const{nodeName:ct}=Ve;return"BODY"!==ct&&("HTML"===ct||se(Ve.firstElementChild)===Ve)}(Oe)?Oe:se(Oe);const ot=oe(Ve);return ot.host?ce(ot.host,ct):ce(Ve,oe(ct).host)}function _e(Ve){if(!Ve||!Ve.parentElement)return document.documentElement;let ct=Ve.parentElement;for(;ct?.parentElement&&"none"===ue(ct,"transform");)ct=ct.parentElement;return ct||document.documentElement}function Re(Ve,ct){const Ct="x"===ct?"Left":"Top",Ce="Left"===Ct?"Right":"Bottom";return parseFloat(Ve[`border${Ct}Width`])+parseFloat(Ve[`border${Ce}Width`])}function mt(Ve,ct,Ct,Ce){return Math.max(ct[`offset${Ve}`],ct[`scroll${Ve}`],Ct[`client${Ve}`],Ct[`offset${Ve}`],Ct[`scroll${Ve}`],0)}function Ge(Ve){const ct=Ve.body,Ct=Ve.documentElement;return{height:mt("Height",ct,Ct),width:mt("Width",ct,Ct)}}function Lt(Ve){return{...Ve,right:(Ve.left||0)+Ve.width,bottom:(Ve.top||0)+Ve.height}}function Tt(Ve){return"number"==typeof Ve||"[object Number]"===Object.prototype.toString.call(Ve)}function xt(Ve){const ct=Ve.getBoundingClientRect();if(!(ct&&Tt(ct.top)&&Tt(ct.left)&&Tt(ct.bottom)&&Tt(ct.right)))return ct;const Ct={left:ct.left,top:ct.top,width:ct.right-ct.left,height:ct.bottom-ct.top},Ce="HTML"===Ve.nodeName?Ge(Ve.ownerDocument):void 0,J=Ce?.width||Ve.clientWidth||Tt(ct.right)&&Tt(Ct.left)&&ct.right-Ct.left||0,ae=Ce?.height||Ve.clientHeight||Tt(ct.bottom)&&Tt(Ct.top)&&ct.bottom-Ct.top||0;let Oe=Ve.offsetWidth-J,ot=Ve.offsetHeight-ae;if(Oe||ot){const Se=ue(Ve);Oe-=Re(Se,"x"),ot-=Re(Se,"y"),Ct.width-=Oe,Ct.height-=ot}return Lt(Ct)}function St(Ve){return"HTML"===Ve.nodeName?Ve:Ve.parentNode||Ve.host}function Zt(Ve){if(!Ve)return document.body;switch(Ve.nodeName){case"HTML":case"BODY":return Ve.ownerDocument.body;case"#document":return Ve.body}const{overflow:ct,overflowX:Ct,overflowY:Ce}=ue(Ve);return/(auto|scroll|overlay)/.test(String(ct)+String(Ce)+String(Ct))?Ve:Zt(St(Ve))}function yt(Ve,ct,Ct=!1){const Ce="HTML"===ct.nodeName,J=xt(Ve),ae=xt(ct),ot=(Zt(Ve),ue(ct)),Se=parseFloat(ot.borderTopWidth),Ft=parseFloat(ot.borderLeftWidth);Ct&&Ce&&(ae.top=Math.max(ae.top??0,0),ae.left=Math.max(ae.left??0,0));const lt=Lt({top:(J.top??0)-(ae.top??0)-Se,left:(J.left??0)-(ae.left??0)-Ft,width:J.width,height:J.height});if(lt.marginTop=0,lt.marginLeft=0,Ce){const Bt=parseFloat(ot.marginTop),Ut=parseFloat(ot.marginLeft);Tt(lt.top)&&(lt.top-=Se-Bt),Tt(lt.bottom)&&(lt.bottom-=Se-Bt),Tt(lt.left)&&(lt.left-=Ft-Ut),Tt(lt.right)&&(lt.right-=Ft-Ut),lt.marginTop=Bt,lt.marginLeft=Ut}return lt}function un(Ve,ct="top"){const Ct="top"===ct?"scrollTop":"scrollLeft",Ce=Ve.nodeName;return"BODY"===Ce||"HTML"===Ce?(Ve.ownerDocument.scrollingElement||Ve.ownerDocument.documentElement)[Ct]:Ve[Ct]}function tn(Ve){const ct=Ve.nodeName;return"BODY"!==ct&&"HTML"!==ct&&("fixed"===ue(Ve,"position")||tn(St(Ve)))}function wn(Ve,ct,Ct=0,Ce,J=!1){let ae={top:0,left:0};const Oe=J?_e(Ve):ce(Ve,ct);if("viewport"===Ce)ae=function Jt(Ve,ct=!1){const Ct=Ve.ownerDocument.documentElement,Ce=yt(Ve,Ct),J=Math.max(Ct.clientWidth,window.innerWidth||0),ae=Math.max(Ct.clientHeight,window.innerHeight||0),Oe=ct?0:un(Ct),ot=ct?0:un(Ct,"left");return Lt({top:Oe-Number(Ce?.top)+Number(Ce?.marginTop),left:ot-Number(Ce?.left)+Number(Ce?.marginLeft),width:J,height:ae})}(Oe,J);else{let ot;"scrollParent"===Ce?(ot=Zt(St(ct)),"BODY"===ot.nodeName&&(ot=Ve.ownerDocument.documentElement)):ot="window"===Ce?Ve.ownerDocument.documentElement:Ce;const Se=yt(ot,Oe,J);if(Se&&"HTML"===ot.nodeName&&!tn(Oe)){const{height:Ft,width:lt}=Ge(Ve.ownerDocument);Tt(ae.top)&&Tt(Se.top)&&Tt(Se.marginTop)&&(ae.top+=Se.top-Se.marginTop),Tt(ae.top)&&(ae.bottom=Number(Ft)+Number(Se.top)),Tt(ae.left)&&Tt(Se.left)&&Tt(Se.marginLeft)&&(ae.left+=Se.left-Se.marginLeft),Tt(ae.top)&&(ae.right=Number(lt)+Number(Se.left))}else Se&&(ae=Se)}return Tt(ae.left)&&(ae.left+=Ct),Tt(ae.top)&&(ae.top+=Ct),Tt(ae.right)&&(ae.right-=Ct),Tt(ae.bottom)&&(ae.bottom-=Ct),ae}function Ln({width:Ve,height:ct}){return Ve*ct}function Yn(Ve,ct,Ct,Ce,J=["top","bottom","right","left"],ae="viewport",Oe=0){if(-1===Ve.indexOf("auto"))return Ve;const ot=wn(Ct,Ce,Oe,ae),Se={top:{width:ot?.width??0,height:(ct?.top??0)-(ot?.top??0)},right:{width:(ot?.right??0)-(ct?.right??0),height:ot?.height??0},bottom:{width:ot?.width??0,height:(ot?.bottom??0)-(ct?.bottom??0)},left:{width:(ct.left??0)-(ot?.left??0),height:ot?.height??0}},Ft=Object.keys(Se).map(fn=>({position:fn,...Se[fn],area:Ln(Se[fn])})).sort((fn,gn)=>gn.area-fn.area);let lt=Ft.filter(({width:fn,height:gn})=>fn>=Ct.clientWidth&&gn>=Ct.clientHeight);lt=lt.filter(({position:fn})=>J.some(gn=>gn===fn));const Bt=lt.length>0?lt[0].position:Ft[0].position,Ut=Ve.split(" ")[1];return Ct.className=Ct.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${(0,e.Wl)().isBs5?re[Bt]:Bt}`),Bt+(Ut?`-${Ut}`:"")}const dt=(Ve,ct=0)=>Ve?parseFloat(Ve):ct;function at(Ve){const Ct=Ve.ownerDocument.defaultView?.getComputedStyle(Ve),Ce=dt(Ct?.marginTop)+dt(Ct?.marginBottom),J=dt(Ct?.marginLeft)+dt(Ct?.marginRight);return{width:Number(Ve.offsetWidth)+J,height:Number(Ve.offsetHeight)+Ce}}function Be(Ve,ct,Ct){return yt(ct,Ct?_e(Ve):ce(Ve,ct),Ct)}function Ee(Ve,ct,Ct){const Ce=Ct.split(" ")[0],J=at(Ve),ae={width:J.width,height:J.height},Oe=-1!==["right","left"].indexOf(Ce),ot=Oe?"top":"left",Se=Oe?"left":"top",Ft=Oe?"height":"width",lt=Oe?"width":"height";return ae[ot]=(ct[ot]??0)+ct[Ft]/2-J[Ft]/2,ae[Se]=Ce===Se?(ct[Se]??0)-J[lt]:ct[function gi(Ve){const ct={left:"right",right:"left",bottom:"top",top:"bottom"};return Ve.replace(/left|right|bottom|top/g,Ct=>ct[Ct])}(Se)]??0,ae}function $e(Ve,ct){return!!Ve.modifiers[ct]?.enabled}const me={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function tt(Ve,ct){return!!(0,e.Wl)().isBs5&&me[ct].includes(Ve)}function rt(Ve,ct,Ct){!Ve||!ct||Object.keys(ct).forEach(Ce=>{let J="";-1!==["width","height","top","right","bottom","left"].indexOf(Ce)&&function je(Ve){return""!==Ve&&!isNaN(parseFloat(Ve))&&isFinite(Number(Ve))}(ct[Ce])&&(J="px"),Ct?Ct.setStyle(Ve,Ce,`${String(ct[Ce])}${J}`):Ve.style[Ce]=String(ct[Ce])+J})}function bt(Ve){let ct=Ve.offsets.target;const Ct=Ve.instance.target.querySelector(".arrow");if(!Ct)return Ve;const Ce=-1!==["left","right"].indexOf(Ve.placement.split(" ")[0]),J=Ce?"height":"width",ae=Ce?"Top":"Left",Oe=ae.toLowerCase(),ot=Ce?"left":"top",Se=Ce?"bottom":"right",Ft=at(Ct)[J],lt=Ve.placement.split(" ")[1];(Ve.offsets.host[Se]??0)-Ft<(ct[Oe]??0)&&(ct[Oe]-=(ct[Oe]??0)-((Ve.offsets.host[Se]??0)-Ft)),Number(Ve.offsets.host[Oe])+Number(Ft)>(ct[Se]??0)&&(ct[Oe]+=Number(Ve.offsets.host[Oe])+Number(Ft)-Number(ct[Se])),ct=Lt(ct);const Bt=ue(Ve.instance.target),Ut=parseFloat(Bt[`margin${ae}`])||0,fn=parseFloat(Bt[`border${ae}Width`])||0;let gn;if(lt){const jn=parseFloat(Bt.borderRadius)||0,ai=Number(Ut+fn+jn);gn=Oe===lt?Number(Ve.offsets.host[Oe])+ai:Number(Ve.offsets.host[Oe])+Number(Ve.offsets.host[J]-ai)}else gn=Number(Ve.offsets.host[Oe])+Number(Ve.offsets.host[J]/2-Ft/2);let An=gn-(ct[Oe]??0)-Ut-fn;return An=Math.max(Math.min(ct[J]-(Ft+5),An),0),Ve.offsets.arrow={[Oe]:Math.round(An),[ot]:""},Ve.instance.arrow=Ct,Ve}function Nt(Ve){if(Ve.offsets.target=Lt(Ve.offsets.target),!$e(Ve.options,"flip"))return Ve.offsets.target={...Ve.offsets.target,...Ee(Ve.instance.target,Ve.offsets.host,Ve.placement)},Ve;const ct=wn(Ve.instance.target,Ve.instance.host,0,"viewport",!1);let Ct=Ve.placement.split(" ")[0],Ce=Ve.placement.split(" ")[1]||"";const ot=Yn("auto",Ve.offsets.host,Ve.instance.target,Ve.instance.host,Ve.options.allowedPositions),Se=[Ct,ot];return Se.forEach((Ft,lt)=>{if(Ct!==Ft||Se.length===lt+1)return;Ct=Ve.placement.split(" ")[0];const Bt="left"===Ct&&Math.floor(Ve.offsets.target.right??0)>Math.floor(Ve.offsets.host.left??0)||"right"===Ct&&Math.floor(Ve.offsets.target.left??0)Math.floor(Ve.offsets.host.top??0)||"bottom"===Ct&&Math.floor(Ve.offsets.target.top??0)Math.floor(ct.right??0),gn=Math.floor(Ve.offsets.target.top??0)Math.floor(ct.bottom??0),jn="left"===Ct&&Ut||"right"===Ct&&fn||"top"===Ct&&gn||"bottom"===Ct&&An,ai=-1!==["top","bottom"].indexOf(Ct),di=ai&&"left"===Ce&&Ut||ai&&"right"===Ce&&fn||!ai&&"left"===Ce&&gn||!ai&&"right"===Ce&&An;(Bt||jn||di)&&((Bt||jn)&&(Ct=Se[lt+1]),di&&(Ce=function Rn(Ve){return"right"===Ve?"left":"left"===Ve?"right":Ve}(Ce)),Ve.placement=Ct+(Ce?` ${Ce}`:""),Ve.offsets.target={...Ve.offsets.target,...Ee(Ve.instance.target,Ve.offsets.host,Ve.placement)})}),Ve}function nn(Ve){if(!$e(Ve.options,"preventOverflow"))return Ve;const ct="transform",Ct=Ve.instance.target.style,{top:Ce,left:J,[ct]:ae}=Ct;Ct.top="",Ct.left="",Ct[ct]="";const Oe=wn(Ve.instance.target,Ve.instance.host,0,Ve.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);Ct.top=Ce,Ct.left=J,Ct[ct]=ae;const Se={primary(Ft){let lt=Ve.offsets.target[Ft];return(Ve.offsets.target[Ft]??0)<(Oe[Ft]??0)&&(lt=Math.max(Ve.offsets.target[Ft]??0,Oe[Ft]??0)),{[Ft]:lt}},secondary(Ft){const lt="right"===Ft,Bt=lt?"left":"top";let fn=Ve.offsets.target[Bt];return(Ve.offsets.target[Ft]??0)>(Oe[Ft]??0)&&(fn=Math.min(Ve.offsets.target[Bt]??0,(Oe[Ft]??0)-Ve.offsets.target[lt?"width":"height"])),{[Bt]:fn}}};return["left","right","top","bottom"].forEach(Ft=>{const lt=-1!==["left","top","start"].indexOf(Ft)?Se.primary:Se.secondary;Ve.offsets.target={...Ve.offsets.target,...lt(Ft)}}),Ve}function Dn(Ve){const ct=Ve.placement,Ct=ct.split(" ")[0],Ce=ct.split(" ")[1];if(Ce){const{host:J,target:ae}=Ve.offsets,Oe=-1!==["bottom","top"].indexOf(Ct),ot=Oe?"left":"top",Se=Oe?"width":"height",Ft={start:{[ot]:J[ot]},end:{[ot]:(J[ot]??0)+J[Se]-ae[Se]}};Ve.offsets.target={...ae,[ot]:ot===Ce?Ft.start[ot]:Ft.end[ot]}}return Ve}const rn=new class Ot{position(ct,Ct){return this.offset(ct,Ct)}offset(ct,Ct){return Be(Ct,ct)}positionElements(ct,Ct,Ce,J,ae){const Oe=[Nt,Dn,nn,bt],Se=function Qt(Ve,ct,Ct,Ce){if(!Ve||!ct)return;const J=Be(Ve,ct);!Ct.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!Ct.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(Ct="auto");const ae=!!Ct.match(/auto/g);let Oe=Ct.match(/auto\s(left|right|top|bottom|start|end)/)?Ct.split(" ")[1]||"auto":Ct;const ot=Oe.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return ot&&(Oe=ot[1]+(ot[2]?` ${ot[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(Oe)&&(Oe="auto"),Oe=Yn(Oe,J,Ve,ct,Ce?Ce.allowedPositions:void 0),{options:Ce||{modifiers:{}},instance:{target:Ve,host:ct,arrow:void 0},offsets:{target:Ee(Ve,J,Oe),host:J,arrow:void 0},positionFixed:!1,placement:Oe,placementAuto:ae}}(Ct,ct,ee[Ce],ae);if(Se)return Oe.reduce((Ft,lt)=>lt(Ft),Se)}};function vn(Ve,ct,Ct,Ce,J,ae){const Oe=rn.positionElements(Ve,ct,Ct,Ce,J);if(!Oe)return;const ot=function ti(Ve){return{width:Ve.offsets.target.width,height:Ve.offsets.target.height,left:Math.floor(Ve.offsets.target.left??0),top:Math.round(Ve.offsets.target.top??0),bottom:Math.round(Ve.offsets.target.bottom??0),right:Math.floor(Ve.offsets.target.right??0)}}(Oe);rt(ct,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${ot.left}px, ${ot.top}px, 0px)`},ae),Oe.instance.arrow&&rt(Oe.instance.arrow,Oe.offsets.arrow,ae),function Ze(Ve,ct){const Ct=Ve.instance.target;let Ce=Ct.className;const J=(0,e.Wl)().isBs5?re[Ve.placement]:Ve.placement;Ve.placementAuto&&(Ce=Ce.replace(/bs-popover-auto/g,`bs-popover-${J}`),Ce=Ce.replace(/ms-2|me-2|mb-2|mt-2/g,""),Ce=Ce.replace(/bs-tooltip-auto/g,`bs-tooltip-${J}`),Ce=Ce.replace(/\sauto/g,` ${J}`),-1!==Ce.indexOf("popover")&&(Ce=Ce+" "+function he(Ve){return(0,e.Wl)().isBs5?tt(Ve,"end")?"ms-2":tt(Ve,"start")?"me-2":tt(Ve,"top")?"mb-2":tt(Ve,"bottom")?"mt-2":"":""}(J)),-1!==Ce.indexOf("popover")&&-1===Ce.indexOf("popover-auto")&&(Ce+=" popover-auto"),-1!==Ce.indexOf("tooltip")&&-1===Ce.indexOf("tooltip-auto")&&(Ce+=" tooltip-auto")),Ce=Ce.replace(/left|right|top|bottom|end|start/g,`${J.split(" ")[0]}`),ct?ct.setAttribute(Ct,"class",Ce):Ct.className=Ce}(Oe,ae)}let ei=(()=>{class Ve{constructor(Ct,Ce,J){this.update$$=new I.x,this.positionElements=new Map,this.isDisabled=!1,(0,D.NF)(J)&&Ct.runOutsideAngular(()=>{this.triggerEvent$=(0,S.T)((0,w.R)(window,"scroll",{passive:!0}),(0,w.R)(window,"resize",{passive:!0}),(0,n.of)(0,Z.Z),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(ae=>{vn(Wn(ae.target),Wn(ae.element),ae.attachment,ae.appendToBody,this.options,Ce.createRenderer(null,null))})})})}position(Ct){this.addPositionElement(Ct)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(Ct){this.positionElements.set(Wn(Ct.element),Ct)}calcPosition(){this.update$$.next(null)}deletePositionElement(Ct){this.positionElements.delete(Wn(Ct))}setOptions(Ct){this.options=Ct}static#e=this.\u0275fac=function(Ce){return new(Ce||Ve)(l.LFG(l.R0b),l.LFG(l.FYo),l.LFG(l.Lbi))};static#t=this.\u0275prov=l.Yz7({token:Ve,factory:Ve.\u0275fac,providedIn:"root"})}return Ve})();function Wn(Ve){return"string"==typeof Ve?document.querySelector(Ve):Ve instanceof l.SBq?Ve.nativeElement:Ve??null}},2268:(ft,Ie,C)=>{"use strict";C.d(Ie,{i9:()=>se,z8:()=>te});var e=C(5879),l=C(3161),D=C(4060),I=C(7582),S=C(1835),w=C(4825),n=C(6814);const Z=["*"];let ee=(()=>{class oe{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275prov=e.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})(),re=(()=>{class oe{get _bsVersions(){return(0,l.Wl)()}constructor(_e){Object.assign(this,_e)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=D.Bz[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}static#e=this.\u0275fac=function(Re){return new(Re||oe)(e.Y36(ee))};static#t=this.\u0275cmp=e.Xpm({type:oe,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(Re,mt){2&Re&&(e.uIk("id",mt.id),e.Tol("show tooltip in tooltip-"+mt.placement+" bs-tooltip-"+mt.placement+" "+mt.placement+" "+mt.containerClass))},ngContentSelectors:Z,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(Re,mt){1&Re&&(e.F$t(),e._UZ(0,"div",0),e.TgZ(1,"div",1),e.Hsn(2),e.qZA())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}return oe})(),ue=0,se=(()=>{class oe{get isOpen(){return this._tooltip.isShown}set isOpen(_e){_e?this.show():this.hide()}set htmlContent(_e){(0,l.O4)("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=_e}set _placement(_e){(0,l.O4)("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=_e}set _isOpen(_e){(0,l.O4)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=_e}get _isOpen(){return(0,l.O4)("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(_e){(0,l.O4)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!_e}get _enable(){return(0,l.O4)("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(_e){(0,l.O4)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=_e?"body":this.container}get _appendToBody(){return(0,l.O4)('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(_e){(0,l.O4)("tooltipClass deprecated")}set _tooltipContext(_e){(0,l.O4)("tooltipContext deprecated")}set _tooltipPopupDelay(_e){(0,l.O4)("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=_e}get _tooltipTrigger(){return(0,l.O4)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(_e){(0,l.O4)("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(_e||"").toString()}constructor(_e,Re,mt,Ge,Lt,je){this._elementRef=Ge,this._renderer=Lt,this._positionService=je,this.tooltipId=ue++,this.adaptivePosition=!0,this.tooltipChange=new e.vpe,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new e.vpe,this._tooltip=Re.createLoader(this._elementRef,_e,this._renderer).provide({provide:ee,useValue:mt}),Object.assign(this,mt),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(_e=>{_e||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const _e=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(re).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},Re=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=(0,w.H)(this.delay).subscribe(()=>{_e(),Re()}),this.triggers&&(0,l.AL)(this.triggers).forEach(mt=>{mt.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,mt.close,()=>{this._delaySubscription?.unsubscribe(),Re()}))})):_e()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}static#e=this.\u0275fac=function(Re){return new(Re||oe)(e.Y36(e.s_b),e.Y36(S.oj),e.Y36(ee),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(D.sA))};static#t=this.\u0275dir=e.lG2({type:oe,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:["tooltipHtml","htmlContent"],_placement:["tooltipPlacement","_placement"],_isOpen:["tooltipIsOpen","_isOpen"],_enable:["tooltipEnable","_enable"],_appendToBody:["tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:["tooltipClass","_popupClass"],_tooltipContext:["tooltipContext","_tooltipContext"],_tooltipPopupDelay:["tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:["tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]})}return(0,I.gn)([(0,l.GU)(),(0,I.w6)("design:type",Object)],oe.prototype,"tooltip",void 0),oe})(),te=(()=>{class oe{static forRoot(){return{ngModule:oe,providers:[S.oj,D.sA]}}static#e=this.\u0275fac=function(Re){return new(Re||oe)};static#t=this.\u0275mod=e.oAB({type:oe});static#n=this.\u0275inj=e.cJS({imports:[n.ez]})}return oe})()},3161:(ft,Ie,C)=>{"use strict";C.d(Ie,{AL:()=>I,C:()=>Z,GU:()=>wn,O4:()=>gi,Rg:()=>n,Wl:()=>un,wo:()=>w});var e=C(5879);class l{constructor(dt,at){this.open=dt,this.close=at||dt}isManual(){return"manual"===this.open||"manual"===this.close}}const D={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function I(Rn,dt=D){const at=(Rn||"").trim();if(0===at.length)return[];const Be=at.split(/\s+/).map($e=>$e.split(":")).map($e=>{const me=dt[$e[0]]||$e;return new l(me[0],me[1])}),Ee=Be.filter($e=>$e.isManual());if(Ee.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===Ee.length&&Be.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return Be}function w(Rn,dt){const at=I(dt.triggers),Be=dt.target;if(1===at.length&&at[0].isManual())return Function.prototype;const Ee=[],$e=[],me=()=>{$e.forEach(tt=>Ee.push(tt())),$e.length=0};return at.forEach(tt=>{const he=tt.open===tt.close,Ze=he?dt.toggle:dt.show;if(!he&&tt.close&&dt.hide){const rt=tt.close,bt=dt.hide;$e.push(()=>Rn.listen(Be,rt,bt))}Ze&&Ee.push(Rn.listen(Be,tt.open,()=>Ze(me)))}),()=>{Ee.forEach(tt=>tt())}}function n(Rn,dt){return dt.outsideClick?Rn.listen("document","click",at=>{dt.target&&dt.target.contains(at.target)||dt.targets&&dt.targets.some(Be=>Be.contains(at.target))||dt.hide&&dt.hide()}):Function.prototype}function Z(Rn,dt){return dt.outsideEsc?Rn.listen("document","keyup.esc",at=>{dt.target&&dt.target.contains(at.target)||dt.targets&&dt.targets.some(Be=>Be.contains(at.target))||dt.hide&&dt.hide()}):Function.prototype}const ee=typeof window<"u"&&window||{};let Tt;function xt(){const Rn=ee.document.createElement("span");Rn.innerText="testing bs version",Rn.classList.add("d-none"),Rn.classList.add("pl-1"),ee.document.head.appendChild(Rn);const dt=ee.getComputedStyle(Rn).paddingLeft;return dt&&parseFloat(dt)?(ee.document.head.removeChild(Rn),"bs4"):(ee.document.head.removeChild(Rn),"bs5")}function un(){return{isBs4:(Tt||(Tt=xt()),"bs4"===Tt),isBs5:(Tt||(Tt=xt()),"bs5"===Tt)}}function wn(){return function(at,Be){const Ee=` __${Be}Value`;Object.defineProperty(at,Be,{get(){return this[Ee]},set($e){const me=this[Ee];this[Ee]=$e,me!==$e&&this[Be+"Change"]&&this[Be+"Change"].emit($e)}})}}const Yn={},ti=typeof console>"u"||!("warn"in console);function gi(Rn){!(0,e.X6Q)()||ti||Rn in Yn||(Yn[Rn]=!0,console.warn(Rn))}},8468:(ft,Ie,C)=>{"use strict";C.d(Ie,{Fy:()=>fn,bB:()=>oi,Mp:()=>lt});var e=C(5879),l=C(6814),D=C(8645),I=C(3019),S=C(2096),w=C(2438),n=C(9666),Z=C(9397),ee=C(2181),re=C(4664),ue=C(1374),se=C(8180),te=C(836),oe=C(7398),ce=C(9732),_e=C(9360);const mt=(qt,_t)=>(qt.push(_t),qt);var Lt=C(5177),je=C(1662),Tt=C(6825);function xt(qt,_t){}const St=function(qt,_t){return{$implicit:qt,index:_t}};function Zt(qt,_t){if(1&qt&&e.YNc(0,xt,0,0,"ng-template",4),2&qt){const G=e.oxw(),U=G.$implicit,ve=G.index,Pe=e.oxw();e.Q6J("ngTemplateOutlet",U.tplRef)("ngTemplateOutletContext",e.WLB(2,St,Pe.preparePublicSlide(U),ve))}}const yt=function(qt,_t,G,U){return{width:qt,"margin-left":_t,"margin-right":G,left:U}};function un(qt,_t){if(1&qt){const G=e.EpF();e.ynx(0),e.TgZ(1,"div",2),e.NdJ("animationend",function(){const Pe=e.CHM(G).$implicit,ut=e.oxw();return e.KtG(ut.clear(Pe.id))}),e.YNc(2,Zt,1,5,null,3),e.qZA(),e.BQk()}if(2&qt){const G=_t.$implicit;e.xp6(1),e.Q6J("ngClass",G.classes)("ngStyle",e.l5B(4,yt,G.width+"px",G.marginL?G.marginL+"px":"",G.marginR?G.marginR+"px":"",G.left))("@autoHeight",G.heightState),e.xp6(1),e.Q6J("ngIf",G.load)}}const Jt=function(qt,_t,G,U,ve){return{width:qt,transform:_t,transition:G,"padding-left":U,"padding-right":ve}},tn=function(qt,_t){return{isMouseDragable:qt,isTouchDragable:_t}};function wn(qt,_t){if(1&qt&&(e.TgZ(0,"div",4),e._UZ(1,"owl-stage",5),e.qZA()),2&qt){const G=e.oxw();e.xp6(1),e.Q6J("owlDraggable",e.WLB(3,tn,null==G.owlDOMData?null:G.owlDOMData.isMouseDragable,null==G.owlDOMData?null:G.owlDOMData.isTouchDragable))("stageData",G.stageData)("slidesData",G.slidesData)}}const Ln=function(qt,_t){return{active:qt,"owl-dot-text":_t}};function Yn(qt,_t){if(1&qt){const G=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){const Pe=e.CHM(G).$implicit,ut=e.oxw(2);return e.KtG(ut.moveByDot(Pe.id))}),e._UZ(1,"span",12),e.qZA()}if(2&qt){const G=_t.$implicit;e.Q6J("ngClass",e.WLB(2,Ln,G.active,G.showInnerContent)),e.xp6(1),e.Q6J("innerHTML",G.innerContent,e.oJD)}}const ti=function(qt){return{disabled:qt}};function gi(qt,_t){if(1&qt){const G=e.EpF();e.ynx(0),e.TgZ(1,"div",6)(2,"div",7),e.NdJ("click",function(){e.CHM(G);const ve=e.oxw();return e.KtG(ve.prev())}),e.qZA(),e.TgZ(3,"div",8),e.NdJ("click",function(){e.CHM(G);const ve=e.oxw();return e.KtG(ve.next())}),e.qZA()(),e.TgZ(4,"div",9),e.YNc(5,Yn,2,5,"div",10),e.qZA(),e.BQk()}if(2&qt){const G=e.oxw();e.xp6(1),e.Q6J("ngClass",e.VKq(7,ti,null==G.navData?null:G.navData.disabled)),e.xp6(1),e.Q6J("ngClass",e.VKq(9,ti,null==G.navData||null==G.navData.prev?null:G.navData.prev.disabled))("innerHTML",null==G.navData||null==G.navData.prev?null:G.navData.prev.htmlText,e.oJD),e.xp6(1),e.Q6J("ngClass",e.VKq(11,ti,null==G.navData||null==G.navData.next?null:G.navData.next.disabled))("innerHTML",null==G.navData||null==G.navData.next?null:G.navData.next.htmlText,e.oJD),e.xp6(1),e.Q6J("ngClass",e.VKq(13,ti,null==G.dotsData?null:G.dotsData.disabled)),e.xp6(1),e.Q6J("ngForOf",null==G.dotsData?null:G.dotsData.dots)}}const Rn=function(qt,_t,G,U,ve){return{"owl-rtl":qt,"owl-loaded":_t,"owl-responsive":G,"owl-drag":U,"owl-grab":ve}};class dt{items=3;skip_validateItems=!1;loop=!1;center=!1;rewind=!1;mouseDrag=!0;touchDrag=!0;pullDrag=!0;freeDrag=!1;margin=0;stagePadding=0;merge=!1;mergeFit=!0;autoWidth=!1;startPosition=0;rtl=!1;smartSpeed=250;fluidSpeed=!1;dragEndSpeed=!1;responsive={};responsiveRefreshRate=200;nav=!1;navText=["prev","next"];navSpeed=!1;slideBy=1;dots=!0;dotsEach=!1;dotsData=!1;dotsSpeed=!1;autoplay=!1;autoplayTimeout=5e3;autoplayHoverPause=!1;autoplaySpeed=!1;autoplayMouseleaveTimeout=1;lazyLoad=!1;lazyLoadEager=0;slideTransition="";animateOut=!1;animateIn=!1;autoHeight=!1;URLhashListener=!1;constructor(){}}class at{items="number";skip_validateItems="boolean";loop="boolean";center="boolean";rewind="boolean";mouseDrag="boolean";touchDrag="boolean";pullDrag="boolean";freeDrag="boolean";margin="number";stagePadding="number";merge="boolean";mergeFit="boolean";autoWidth="boolean";startPosition="number|string";rtl="boolean";smartSpeed="number";fluidSpeed="boolean";dragEndSpeed="number|boolean";responsive={};responsiveRefreshRate="number";nav="boolean";navText="string[]";navSpeed="number|boolean";slideBy="number|string";dots="boolean";dotsEach="number|boolean";dotsData="boolean";dotsSpeed="number|boolean";autoplay="boolean";autoplayTimeout="number";autoplayHoverPause="boolean";autoplaySpeed="number|boolean";autoplayMouseleaveTimeout="number";lazyLoad="boolean";lazyLoadEager="number";slideTransition="string";animateOut="string|boolean";animateIn="string|boolean";autoHeight="boolean";URLhashListener="boolean";constructor(){}}let Be=(()=>{class qt{errorHandler;constructor(G){this.errorHandler=G}log(G,...U){(0,e.X6Q)()&&console.log(G,...U)}error(G){this.errorHandler.handleError(G)}warn(G,...U){console.warn(G,...U)}static \u0275fac=function(U){return new(U||qt)(e.LFG(e.qLn))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})();var $e=function(qt){return qt.Event="event",qt.State="state",qt}($e||{}),me=function(qt){return qt.Default="default",qt.Inner="inner",qt.Outer="outer",qt}(me||{});let Ze=(()=>{class qt{logger;_viewSettingsShipper$=new D.x;_initializedCarousel$=new D.x;_changeSettingsCarousel$=new D.x;_changedSettingsCarousel$=new D.x;_translateCarousel$=new D.x;_translatedCarousel$=new D.x;_resizeCarousel$=new D.x;_resizedCarousel$=new D.x;_refreshCarousel$=new D.x;_refreshedCarousel$=new D.x;_dragCarousel$=new D.x;_draggedCarousel$=new D.x;settings={items:0};owlDOMData={rtl:!1,isResponsive:!1,isRefreshed:!1,isLoaded:!1,isLoading:!1,isMouseDragable:!1,isGrab:!1,isTouchDragable:!1};stageData={transform:"translate3d(0px,0px,0px)",transition:"0s",width:0,paddingL:0,paddingR:0};slidesData;navData;dotsData;_width;_items=[];_widths=[];_supress={};_plugins={};_current=null;_clones=[];_mergers=[];_speed=null;_coordinates=[];_breakpoint=null;clonedIdPrefix="cloned-";_options={};_invalidated={};get invalidated(){return this._invalidated}_states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}};get states(){return this._states}_pipe=[{filter:["width","items","settings"],run:G=>{G.current=this._items&&this._items[this.relative(this._current)]?.id}},{filter:["width","items","settings"],run:G=>{const U=this.settings.margin||"",Pe=this.settings.rtl,ut={"margin-left":Pe?U:"","margin-right":Pe?"":U};!this.settings.autoWidth||this.slidesData.forEach(We=>{We.marginL=ut["margin-left"],We.marginR=ut["margin-right"]}),G.css=ut}},{filter:["width","items","settings"],run:G=>{const U=+(this.width()/this.settings.items).toFixed(3)-this.settings.margin,ve=!this.settings.autoWidth,Pe=[];let ut=null,We=this._items.length;for(G.items={merge:!1,width:U};We-- >0;)ut=this._mergers[We],ut=this.settings.mergeFit&&Math.min(ut,this.settings.items)||ut,G.items.merge=ut>1||G.items.merge,Pe[We]=ve?U*ut:this._items[We].width?this._items[We].width:U;this._widths=Pe,this.slidesData.forEach((ze,be)=>{ze.width=this._widths[be],ze.marginR=G.css["margin-right"],ze.marginL=G.css["margin-left"]})}},{filter:["items","settings"],run:()=>{const G=[],U=this._items,ve=this.settings,Pe=Math.max(2*ve.items,4),ut=2*Math.ceil(U.length/2);let We=[],ze=[],be=ve.loop&&U.length?ve.rewind?Pe:Math.max(Pe,ut):0;for(be/=2;be-- >0;)G.push(this.normalize(G.length/2,!0)),We.push({...this.slidesData[G[G.length-1]]}),G.push(this.normalize(U.length-1-(G.length-1)/2,!0)),ze.unshift({...this.slidesData[G[G.length-1]]});this._clones=G,We=We.map(Te=>(Te.id=`${this.clonedIdPrefix}${Te.id}`,Te.isActive=!1,Te.isCloned=!0,Te)),ze=ze.map(Te=>(Te.id=`${this.clonedIdPrefix}${Te.id}`,Te.isActive=!1,Te.isCloned=!0,Te)),this.slidesData=ze.concat(this.slidesData).concat(We)}},{filter:["width","items","settings"],run:()=>{const G=this.settings.rtl?1:-1,U=this._clones.length+this._items.length,ve=[];let Pe=-1,ut=0,We=0;for(;++Pe{const G=this.settings.stagePadding,U=this._coordinates,ve={width:Math.ceil(Math.abs(U[U.length-1]))+2*G,"padding-left":G||"","padding-right":G||""};this.stageData.width=ve.width,this.stageData.paddingL=ve["padding-left"],this.stageData.paddingR=ve["padding-right"]}},{filter:["width","items","settings"],run:G=>{let U=G.current?this.slidesData.findIndex(ve=>ve.id===G.current):0;U=Math.max(this.minimum(),Math.min(this.maximum(),U)),this.reset(U)}},{filter:["position"],run:()=>{this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:()=>{const G=this.settings.rtl?1:-1,U=2*this.settings.stagePadding,ve=[];let Pe,ut,We,ze,be,Te;if(Pe=this.coordinates(this.current()),"number"==typeof Pe?Pe+=U:Pe=0,ut=Pe+this.width()*G,-1===G&&this.settings.center){const He=this._coordinates.filter(Wt=>this.settings.items%2==1?Wt>=Pe:Wt>Pe);Pe=He.length?He[He.length-1]:Pe}for(be=0,Te=this._coordinates.length;be",ut)||this._op(ze,"<",Pe)&&this._op(ze,">",ut))&&ve.push(be);this.slidesData.forEach(He=>(He.isActive=!1,He)),ve.forEach(He=>{this.slidesData[He].isActive=!0}),this.settings.center&&(this.slidesData.forEach(He=>(He.isCentered=!1,He)),this.slidesData[this.current()].isCentered=!0)}}];constructor(G){this.logger=G}getViewCurSettings(){return this._viewSettingsShipper$.asObservable()}getInitializedState(){return this._initializedCarousel$.asObservable()}getChangeState(){return this._changeSettingsCarousel$.asObservable()}getChangedState(){return this._changedSettingsCarousel$.asObservable()}getTranslateState(){return this._translateCarousel$.asObservable()}getTranslatedState(){return this._translatedCarousel$.asObservable()}getResizeState(){return this._resizeCarousel$.asObservable()}getResizedState(){return this._resizedCarousel$.asObservable()}getRefreshState(){return this._refreshCarousel$.asObservable()}getRefreshedState(){return this._refreshedCarousel$.asObservable()}getDragState(){return this._dragCarousel$.asObservable()}getDraggedState(){return this._draggedCarousel$.asObservable()}setOptions(G){const U=new dt,ve=this._validateOptions(G,U);this._options={...U,...ve}}_validateOptions(G,U){const ve={...G},Pe=new at,ut=(We,ze)=>(this.logger.log(`options.${ze} must be type of ${We}; ${ze}=${G[ze]} skipped to defaults: ${ze}=${U[ze]}`),U[ze]);for(const We in ve)if(ve.hasOwnProperty(We))if("number"===Pe[We])this._isNumeric(ve[We])?(ve[We]=+ve[We],ve[We]="items"===We?this._validateItems(ve[We],ve.skip_validateItems):ve[We]):ve[We]=ut(Pe[We],We);else if("boolean"===Pe[We]&&"boolean"!=typeof ve[We])ve[We]=ut(Pe[We],We);else if("number|boolean"!==Pe[We]||this._isNumberOrBoolean(ve[We]))if("number|string"!==Pe[We]||this._isNumberOrString(ve[We]))if("string|boolean"!==Pe[We]||this._isStringOrBoolean(ve[We])){if("string[]"===Pe[We])if(Array.isArray(ve[We])){let ze=!1;ve[We].forEach(be=>{ze="string"==typeof be}),ze||(ve[We]=ut(Pe[We],We))}else ve[We]=ut(Pe[We],We)}else ve[We]=ut(Pe[We],We);else ve[We]=ut(Pe[We],We);else ve[We]=ut(Pe[We],We);return ve}_validateItems(G,U){let ve=G;return G>this._items.length?U?this.logger.log("The option 'items' in your options is bigger than the number of slides. The navigation got disabled"):(ve=this._items.length,this.logger.log("The option 'items' in your options is bigger than the number of slides. This option is updated to the current number of slides and the navigation got disabled")):G===this._items.length&&(this.settings.dots||this.settings.nav)&&this.logger.log("Option 'items' in your options is equal to the number of slides. So the navigation got disabled"),ve}setCarouselWidth(G){this._width=G}setup(G,U,ve){this.setCarouselWidth(G),this.setItems(U),this._defineSlidesData(),this.setOptions(ve),this.settings={...this._options},this.setOptionsForViewport(),this._trigger("change",{property:{name:"settings",value:this.settings}}),this.invalidate("settings"),this._trigger("changed",{property:{name:"settings",value:this.settings}})}setOptionsForViewport(){const G=this._width,U=this._options.responsive;let ve=-1;if(!Object.keys(U).length)return;if(!G)return void(this.settings.items=1);for(const ut in U)U.hasOwnProperty(ut)&&+ut<=G&&+ut>ve&&(ve=Number(ut));this.settings={...this._options,...U[ve],items:U[ve]&&U[ve].items?this._validateItems(U[ve].items,this._options.skip_validateItems):this._options.items},delete this.settings.responsive,this.owlDOMData.isResponsive=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag;const Pe=[];this._items.forEach(ut=>{Pe.push(this.settings.merge?ut.dataMerge:1)}),this._mergers=Pe,this._breakpoint=ve,this.invalidate("settings")}initialize(G){this.enter("initializing"),this.owlDOMData.rtl=this.settings.rtl,this._mergers.length&&(this._mergers=[]),G.forEach(U=>{this._mergers.push(this.settings.merge?U.dataMerge:1)}),this._clones=[],this.reset(this._isNumeric(this.settings.startPosition)?+this.settings.startPosition:0),this.invalidate("items"),this.refresh(),this.owlDOMData.isLoaded=!0,this.owlDOMData.isMouseDragable=this.settings.mouseDrag,this.owlDOMData.isTouchDragable=this.settings.touchDrag,this.sendChanges(),this.leave("initializing"),this._trigger("initialized")}sendChanges(){this._viewSettingsShipper$.next({owlDOMData:this.owlDOMData,stageData:this.stageData,slidesData:this.slidesData,navData:this.navData,dotsData:this.dotsData})}_optionsLogic(){this.settings.autoWidth&&(this.settings.stagePadding=0,this.settings.merge=!1)}update(){let G=0;const U=this._pipe.length,ve=ut=>this._invalidated[ut],Pe={};for(;G0)&&this._pipe[G].run(Pe),G++}this.slidesData.forEach(ut=>ut.classes=this.setCurSlideClasses(ut)),this.sendChanges(),this._invalidated={},this.is("valid")||this.enter("valid")}width(G){switch(G=G||me.Default){case me.Inner:case me.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}}refresh(){this.enter("refreshing"),this._trigger("refresh"),this._defineSlidesData(),this.setOptionsForViewport(),this._optionsLogic(),this.update(),this.leave("refreshing"),this._trigger("refreshed")}onResize(G){if(!this._items.length)return!1;this.setCarouselWidth(G),this.enter("resizing"),this._trigger("resize"),this.invalidate("width"),this.refresh(),this.leave("resizing"),this._trigger("resized")}prepareDragging(G){let ve,U=null;return ve=this.stageData.transform.replace(/.*\(|\)| |[^,-\d]\w|\)/g,"").split(","),U={x:+ve[0],y:+ve[1]},this.is("animating")&&this.invalidate("position"),"mousedown"===G.type&&(this.owlDOMData.isGrab=!0),this.speed(0),U}enterDragging(){this.enter("dragging"),this._trigger("drag")}defineNewCoordsDrag(G,U){let ve=null,Pe=null,ut=null;const We=this.difference(U.pointer,this.pointer(G)),ze=this.difference(U.stage.start,We);return!!this.is("dragging")&&(this.settings.loop?(ve=this.coordinates(this.minimum()),Pe=+this.coordinates(this.maximum()+1)-ve,ze.x=((ze.x-ve)%Pe+Pe)%Pe+ve):(ve=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),Pe=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),ut=this.settings.pullDrag?-1*We.x/5:0,ze.x=Math.max(Math.min(ze.x,ve+ut),Pe+ut)),ze)}finishDragging(G,U,ve){const ut=this.difference(U.pointer,this.pointer(G)),We=U.stage.current,ze=["right","left"][+(this.settings.rtl?ut.x<+this.settings.rtl:ut.x>+this.settings.rtl)];let be,Te,He;(0!==ut.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(+this.settings.dragEndSpeed||this.settings.smartSpeed),be=this.closest(We.x,0!==ut.x?ze:U.direction),Te=this.current(),He=this.current(-1===be?void 0:be),Te!==He&&(this.invalidate("position"),this.update()),U.direction=ze,(Math.abs(ut.x)>3||(new Date).getTime()-U.time>300)&&ve()),this.is("dragging")&&(this.leave("dragging"),this._trigger("dragged"))}closest(G,U){const Pe=this.width();let ut=this.coordinates(),We=-1;this.settings.center&&(ut=ut.map(ze=>(0===ze&&(ze+=1e-6),ze)));for(let ze=0;zeut[ze]-30&&Gut[ze]-Pe-30&&G",ut[ze+1]||ut[ze]-Pe)?We="left"===U?ze+1:ze:null===U&&G>ut[ze]-30&&G",ut[this.minimum()])?We=G=this.minimum():this._op(G,"<",ut[this.maximum()])&&(We=G=this.maximum())),We}animate(G){const U=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),U&&(this.enter("animating"),this._trigger("translate")),this.stageData.transform="translate3d("+G+"px,0px,0px)",this.stageData.transition=this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}is(G){return this._states.current[G]&&this._states.current[G]>0}current(G){return void 0===G?this._current:0!==this._items.length?(G=this.normalize(G),this._current!==G&&(this._trigger("change",{property:{name:"position",value:G}}),this._current=G,this.invalidate("position"),this._trigger("changed",{property:{name:"position",value:this._current}})),this._current):void 0}invalidate(G){return"string"==typeof G&&(this._invalidated[G]=!0,this.is("valid")&&this.leave("valid")),Object.keys(this._invalidated)}reset(G){void 0!==(G=this.normalize(G))&&(this._speed=0,this._current=G,this._suppress(["translate","translated"]),this.animate(this.coordinates(G)),this._release(["translate","translated"]))}normalize(G,U){const ve=this._items.length,Pe=U?0:this._clones.length;return!this._isNumeric(G)||ve<1?G=void 0:(G<0||G>=ve+Pe)&&(G=((G-Pe/2)%ve+ve)%ve+Pe/2),G}relative(G){return this.normalize(G-=this._clones.length/2,!0)}maximum(G=!1){const U=this.settings;let Pe,ut,We,ve=this._coordinates.length;if(U.loop)ve=this._clones.length/2+this._items.length-1;else if(U.autoWidth||U.merge){for(Pe=this._items.length,ut=this.slidesData[--Pe].width,We=this._width;Pe-- >0&&(ut+=+this.slidesData[Pe].width+this.settings.margin,!(ut>We)););ve=Pe+1}else ve=U.center?this._items.length-1:this._items.length-U.items;return G&&(ve-=this._clones.length/2),Math.max(ve,0)}minimum(G=!1){return G?0:this._clones.length/2}items(G){return void 0===G?this._items.slice():(G=this.normalize(G,!0),[this._items[G]])}mergers(G){return void 0===G?this._mergers.slice():(G=this.normalize(G,!0),this._mergers[G])}clones(G){const U=this._clones.length/2,ve=U+this._items.length,Pe=ut=>ut%2==0?ve+ut/2:U-(ut+1)/2;return void 0===G?this._clones.map((ut,We)=>Pe(We)):this._clones.map((ut,We)=>ut===G?Pe(We):null).filter(ut=>ut)}speed(G){return void 0!==G&&(this._speed=G),this._speed}coordinates(G){let Pe,ut,U=1,ve=G-1;return void 0===G?(ut=this._coordinates.map((We,ze)=>this.coordinates(ze)),ut):(this.settings.center?(this.settings.rtl&&(U=-1,ve=G+1),Pe=this._coordinates[G],Pe+=(this.width()-Pe+(this._coordinates[ve]||0))/2*U):Pe=this._coordinates[ve]||0,Pe=Math.ceil(Pe),Pe)}_duration(G,U,ve){return 0===ve?0:Math.min(Math.max(Math.abs(U-G),1),6)*Math.abs(+ve||this.settings.smartSpeed)}to(G,U){let ve=this.current(),Pe=null,ut=G-this.relative(ve),We=this.maximum(),ze=0;const be=+(ut>0)-+(ut<0),Te=this._items.length,He=this.minimum();this.settings.loop?(!this.settings.rewind&&Math.abs(ut)>Te/2&&(ut+=-1*be*Te),Pe=(((G=ve+ut)-He)%Te+Te)%Te+He,Pe!==G&&Pe-ut<=We&&Pe-ut>0&&(ve=Pe-ut,G=Pe,ze=30,this.reset(ve),this.sendChanges())):this.settings.rewind?(We+=1,G=(G%We+We)%We):G=Math.max(He,Math.min(We,G)),setTimeout(()=>{this.speed(this._duration(ve,G,U)),this.current(G),this.update()},ze)}next(G){G=G||!1,this.to(this.relative(this.current())+1,G)}prev(G){G=G||!1,this.to(this.relative(this.current())-1,G)}onTransitionEnd(G){if(void 0!==G)return!1;this.leave("animating"),this._trigger("translated")}_viewport(){let G;return this._width?G=this._width:this.logger.log("Can not detect viewport width."),G}setItems(G){this._items=G}_defineSlidesData(){let G;this.slidesData&&this.slidesData.length&&(G=new Map,this.slidesData.forEach(U=>{U.load&&G.set(U.id,U.load)})),this.slidesData=this._items.map(U=>({id:`${U.id}`,isActive:!1,tplRef:U.tplRef,dataMerge:U.dataMerge,width:0,isCloned:!1,load:!!G&&G.get(U.id),hashFragment:U.dataHash}))}setCurSlideClasses(G){const U={active:G.isActive,center:G.isCentered,cloned:G.isCloned,animated:G.isAnimated,"owl-animated-in":G.isDefAnimatedIn,"owl-animated-out":G.isDefAnimatedOut};return this.settings.animateIn&&(U[this.settings.animateIn]=G.isCustomAnimatedIn),this.settings.animateOut&&(U[this.settings.animateOut]=G.isCustomAnimatedOut),U}_op(G,U,ve){const Pe=this.settings.rtl;switch(U){case"<":return Pe?G>ve:G":return Pe?Gve;case">=":return Pe?G<=ve:G>=ve;case"<=":return Pe?G>=ve:G<=ve}}_trigger(G,U,ve,Pe,ut){switch(G){case"initialized":this._initializedCarousel$.next(G);break;case"change":this._changeSettingsCarousel$.next(U);break;case"changed":this._changedSettingsCarousel$.next(U);break;case"drag":this._dragCarousel$.next(G);break;case"dragged":this._draggedCarousel$.next(G);break;case"resize":this._resizeCarousel$.next(G);break;case"resized":this._resizedCarousel$.next(G);break;case"refresh":this._refreshCarousel$.next(G);break;case"refreshed":this._refreshedCarousel$.next(G);break;case"translate":this._translateCarousel$.next(G);break;case"translated":this._translatedCarousel$.next(G)}}enter(G){[G].concat(this._states.tags[G]||[]).forEach(U=>{void 0===this._states.current[U]&&(this._states.current[U]=0),this._states.current[U]++})}leave(G){[G].concat(this._states.tags[G]||[]).forEach(U=>{(0===this._states.current[U]||this._states.current[U])&&this._states.current[U]--})}register(G){G.type===$e.State&&(this._states.tags[G.name]=this._states.tags[G.name]?this._states.tags[G.name].concat(G.tags):G.tags,this._states.tags[G.name]=this._states.tags[G.name].filter((U,ve)=>this._states.tags[G.name].indexOf(U)===ve))}_suppress(G){G.forEach(U=>{this._supress[U]=!0})}_release(G){G.forEach(U=>{delete this._supress[U]})}pointer(G){const U={x:null,y:null};return(G=(G=G.originalEvent||G||window.event).touches&&G.touches.length?G.touches[0]:G.changedTouches&&G.changedTouches.length?G.changedTouches[0]:G).pageX?(U.x=G.pageX,U.y=G.pageY):(U.x=G.clientX,U.y=G.clientY),U}_isNumeric(G){return!isNaN(parseFloat(G))}_isNumberOrBoolean(G){return this._isNumeric(G)||"boolean"==typeof G}_isNumberOrString(G){return this._isNumeric(G)||"string"==typeof G}_isStringOrBoolean(G){return"string"==typeof G||"boolean"==typeof G}difference(G,U){return null===G||null===U?{x:0,y:0}:{x:G.x-U.x,y:G.y-U.y}}static \u0275fac=function(U){return new(U||qt)(e.LFG(Be))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),rt=(()=>{class qt{carouselService;navSubscription;_initialized=!1;_pages=[];_navData={disabled:!1,prev:{disabled:!1,htmlText:""},next:{disabled:!1,htmlText:""}};_dotsData={disabled:!1,dots:[]};constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.navSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(ut=>{this.initialize(),this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),U=this.carouselService.getChangedState().pipe((0,ee.h)(ut=>"position"===ut.property.name),(0,Z.b)(ut=>{this.update()})),ve=this.carouselService.getRefreshedState().pipe((0,Z.b)(()=>{this._updateNavPages(),this.draw(),this.update(),this.carouselService.sendChanges()})),Pe=(0,I.T)(G,U,ve);this.navSubscription=Pe.subscribe(()=>{})}initialize(){this._navData.disabled=!0,this._navData.prev.htmlText=this.carouselService.settings.navText[0],this._navData.next.htmlText=this.carouselService.settings.navText[1],this._dotsData.disabled=!0,this.carouselService.navData=this._navData,this.carouselService.dotsData=this._dotsData}_updateNavPages(){let G,U,ve;const Pe=this.carouselService.clones().length/2,ut=Pe+this.carouselService.items().length,We=this.carouselService.maximum(!0),ze=[],be=this.carouselService.settings;let Te=be.center||be.autoWidth||be.dotsData?1:Math.floor(Number(be.dotsEach))||Math.floor(be.items);if(Te=+Te,"page"!==be.slideBy&&(be.slideBy=Math.min(+be.slideBy,be.items)),be.dots||"page"===be.slideBy)for(G=Pe,U=0,ve=0;G=Te||0===U){if(ze.push({start:Math.min(We,G-Pe),end:G-Pe+Te-1}),Math.min(We,G-Pe)===We)break;U=0,++ve}U+=this.carouselService.mergers(this.carouselService.relative(G))}this._pages=ze}draw(){let G;const U=this.carouselService.settings,ve=this.carouselService.items(),Pe=ve.length<=U.items;if(this._navData.disabled=!U.nav||Pe,this._dotsData.disabled=!U.dots||Pe,U.dots)if(G=this._pages.length-this._dotsData.dots.length,U.dotsData&&0!==G)this._dotsData.dots=[],ve.forEach(ut=>{this._dotsData.dots.push({active:!1,id:`dot-${ut.id}`,innerContent:ut.dotContent,showInnerContent:!0})});else if(G>0){const ut=this._dotsData.dots.length>0?this._dotsData.dots.length:0;for(let We=0;We=this.carouselService.maximum(!0)),this.carouselService.navData=this._navData}_updateDots(){let G;this.carouselService.settings.dots&&(this._dotsData.dots.forEach(U=>{!0===U.active&&(U.active=!1)}),G=this._current(),this._dotsData.dots.length&&(this._dotsData.dots[G].active=!0),this.carouselService.dotsData=this._dotsData)}_current(){const G=this.carouselService.relative(this.carouselService.current());let U;const ve=this._pages.filter((Pe,ut)=>Pe.start<=G&&Pe.end>=G).pop();return U=this._pages.findIndex(Pe=>Pe.start===ve.start&&Pe.end===ve.end),U}_getPosition(G){let U,ve;const Pe=this.carouselService.settings;return"page"===Pe.slideBy?(U=this._current(),ve=this._pages.length,G?++U:--U,U=this._pages[(U%ve+ve)%ve].start):(U=this.carouselService.relative(this.carouselService.current()),ve=this.carouselService.items().length,G?U+=+Pe.slideBy:U-=+Pe.slideBy),U}next(G){this.carouselService.to(this._getPosition(!0),G)}prev(G){this.carouselService.to(this._getPosition(!1),G)}to(G,U,ve){let Pe;!ve&&this._pages.length?(Pe=this._pages.length,this.carouselService.to(this._pages[(G%Pe+Pe)%Pe].start,U)):this.carouselService.to(G,U)}moveByDot(G){const U=this._dotsData.dots.findIndex(ve=>G===ve.id);this.to(U,this.carouselService.settings.dotsSpeed)}toSlideById(G){const U=this.carouselService.slidesData.findIndex(ve=>ve.id===G&&!1===ve.isCloned);-1===U||U===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(U),!1)}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})();const bt=new e.OlP("WindowToken");class Nt{get nativeWindow(){throw new Error("Not implemented.")}}const rn=[{provide:Nt,useClass:(()=>{class qt extends Nt{constructor(){super()}get nativeWindow(){return window}static \u0275fac=function(U){return new(U||qt)};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})()},{provide:bt,useFactory:function nn(qt,_t){return(0,l.NF)(_t)?qt.nativeWindow:{setTimeout:(U,ve)=>{},clearTimeout:U=>{}}},deps:[Nt,e.Lbi]}],vn=new e.OlP("DocumentToken");class ei{get nativeDocument(){throw new Error("Not implemented.")}}const Ce=[{provide:ei,useClass:(()=>{class qt extends ei{constructor(){super()}get nativeDocument(){return document}static \u0275fac=function(U){return new(U||qt)};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})()},{provide:vn,useFactory:function Ve(qt,_t){return(0,l.NF)(_t)?qt.nativeDocument:{hidden:!1,visibilityState:"visible"}},deps:[ei,e.Lbi]}];let J=(()=>{class qt{carouselService;ngZone;autoplaySubscription;_timeout=null;_paused=!1;_isArtificialAutoplayTimeout;_isAutoplayStopped=!1;get isAutoplayStopped(){return this._isAutoplayStopped}set isAutoplayStopped(G){this._isAutoplayStopped=G}winRef;docRef;constructor(G,U,ve,Pe){this.carouselService=G,this.ngZone=Pe,this.winRef=U,this.docRef=ve,this.spyDataStreams()}ngOnDestroy(){this.autoplaySubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{this.carouselService.settings.autoplay&&this.play()})),U=this.carouselService.getChangedState().pipe((0,Z.b)(ut=>{this._handleChangeObservable(ut)})),ve=this.carouselService.getResizedState().pipe((0,Z.b)(()=>{this.carouselService.settings.autoplay&&!this._isAutoplayStopped?this.play():this.stop()})),Pe=(0,I.T)(G,U,ve);this.autoplaySubscription=Pe.subscribe(()=>{})}play(G,U){this._paused&&(this._paused=!1,this._setAutoPlayInterval(this.carouselService.settings.autoplayMouseleaveTimeout)),!this.carouselService.is("rotating")&&(this.carouselService.enter("rotating"),this._setAutoPlayInterval())}_getNextTimeout(G,U){return this._timeout&&this.winRef.clearTimeout(this._timeout),this._isArtificialAutoplayTimeout=!!G,this.ngZone.runOutsideAngular(()=>this.winRef.setTimeout(()=>{this.ngZone.run(()=>{this._paused||this.carouselService.is("busy")||this.carouselService.is("interacting")||this.docRef.hidden||this.carouselService.next(U||this.carouselService.settings.autoplaySpeed)})},G||this.carouselService.settings.autoplayTimeout))}_setAutoPlayInterval(G){this._timeout=this._getNextTimeout(G)}stop(){this.carouselService.is("rotating")&&(this._paused=!0,this.winRef.clearTimeout(this._timeout),this.carouselService.leave("rotating"))}pause(){this.carouselService.is("rotating")&&(this._paused=!0)}_handleChangeObservable(G){"settings"===G.property.name?this.carouselService.settings.autoplay?this.play():this.stop():"position"===G.property.name&&this.carouselService.settings.autoplay&&this._setAutoPlayInterval()}_playAfterTranslated(){(0,S.of)("translated").pipe((0,re.w)(G=>this.carouselService.getTranslatedState()),(0,ue.P)(),(0,ee.h)(()=>this._isArtificialAutoplayTimeout),(0,Z.b)(()=>this._setAutoPlayInterval())).subscribe(()=>{})}startPausing(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&this.pause()}startPlayingMouseLeave(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}startPlayingTouchEnd(){this.carouselService.settings.autoplayHoverPause&&this.carouselService.is("rotating")&&(this.play(),this._playAfterTranslated())}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze),e.LFG(bt),e.LFG(vn),e.LFG(e.R0b))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),ae=(()=>{class qt{carouselService;lazyLoadSubscription;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.lazyLoadSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{const ut=this.carouselService.settings&&!this.carouselService.settings.lazyLoad;this.carouselService.slidesData.forEach(We=>We.load=!!ut)})),U=this.carouselService.getChangeState(),ve=this.carouselService.getResizedState(),Pe=(0,I.T)(G,U,ve).pipe((0,Z.b)(ut=>this._defineLazyLoadSlides(ut)));this.lazyLoadSubscription=Pe.subscribe(()=>{})}_defineLazyLoadSlides(G){if(this.carouselService.settings&&this.carouselService.settings.lazyLoad&&(G.property&&"position"===G.property.name||"initialized"===G||"resized"===G)){const U=this.carouselService.settings,ve=this.carouselService.clones().length;let Pe=U.center&&Math.ceil(U.items/2)||U.items,ut=U.center&&-1*Pe||0,We=(G.property&&void 0!==G.property.value?G.property.value:this.carouselService.current())+ut;for(U.lazyLoadEager>0&&(Pe+=U.lazyLoadEager,U.loop&&(We-=U.lazyLoadEager,Pe++));ut++this._load(ze)),We++}}_load(G){this.carouselService.slidesData[G].load||(this.carouselService.slidesData[G].load=!0)}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Oe=(()=>{class qt{carouselService;animateSubscription;swapping=!0;previous=void 0;next=void 0;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.animateSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getChangeState().pipe((0,Z.b)(be=>{"position"===be.property.name&&(this.previous=this.carouselService.current(),this.next=be.property.value)})),U=this.carouselService.getDragState(),ve=this.carouselService.getDraggedState(),Pe=this.carouselService.getTranslatedState(),ut=(0,I.T)(U,ve,Pe).pipe((0,Z.b)(be=>this.swapping="translated"===be)),We=this.carouselService.getTranslateState().pipe((0,Z.b)(be=>{this.swapping&&(this.carouselService._options.animateOut||this.carouselService._options.animateIn)&&this._swap()})),ze=(0,I.T)(G,We,ut).pipe();this.animateSubscription=ze.subscribe(()=>{})}_swap(){if(1!==this.carouselService.settings.items)return;let G;this.carouselService.speed(0);const U=this.carouselService.slidesData[this.previous],ve=this.carouselService.slidesData[this.next],Pe=this.carouselService.settings.animateIn,ut=this.carouselService.settings.animateOut;this.carouselService.current()!==this.previous&&(ut&&(G=+this.carouselService.coordinates(this.previous)-+this.carouselService.coordinates(this.next),this.carouselService.slidesData.forEach(We=>{We.id===U.id&&(We.left=`${G}px`,We.isAnimated=!0,We.isDefAnimatedOut=!0,We.isCustomAnimatedOut=!0)})),Pe&&this.carouselService.slidesData.forEach(We=>{We.id===ve.id&&(We.isAnimated=!0,We.isDefAnimatedIn=!0,We.isCustomAnimatedIn=!0)}))}clear(G){this.carouselService.slidesData.forEach(U=>{U.id===G&&(U.left="",U.isAnimated=!1,U.isDefAnimatedOut=!1,U.isCustomAnimatedOut=!1,U.isDefAnimatedIn=!1,U.isCustomAnimatedIn=!1,U.classes=this.carouselService.setCurSlideClasses(U))}),this.carouselService.onTransitionEnd()}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),ot=(()=>{class qt{carouselService;autoHeightSubscription;constructor(G){this.carouselService=G,this.spyDataStreams()}ngOnDestroy(){this.autoHeightSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight?this.update():this.carouselService.slidesData.forEach(We=>We.heightState="full")})),U=this.carouselService.getChangedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight&&"position"===ut.property.name&&this.update()})),ve=this.carouselService.getRefreshedState().pipe((0,Z.b)(ut=>{this.carouselService.settings.autoHeight&&this.update()})),Pe=(0,I.T)(G,U,ve);this.autoHeightSubscription=Pe.subscribe(()=>{})}update(){const G=this.carouselService.settings.items;let U=this.carouselService.current(),ve=U+G;this.carouselService.settings.center&&(U=G%2==1?U-(G-1)/2:U-G/2,ve=G%2==1?U+G:U+G+1),this.carouselService.slidesData.forEach((Pe,ut)=>{Pe.heightState=ut>=U&&ut{class qt{carouselService;route;router;hashSubscription;currentHashFragment;constructor(G,U,ve){this.carouselService=G,this.route=U,this.router=ve,this.spyDataStreams(),this.route||(this.route={fragment:(0,S.of)("no route").pipe((0,se.q)(1))}),this.router||(this.router={navigate:(Pe,ut)=>{}})}ngOnDestroy(){this.hashSubscription.unsubscribe()}spyDataStreams(){const G=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>this.listenToRoute())),U=this.carouselService.getChangedState().pipe((0,Z.b)(Pe=>{if(this.carouselService.settings.URLhashListener&&"position"===Pe.property.name){const ut=this.carouselService.current(),We=this.carouselService.slidesData[ut].hashFragment;if(!We||We===this.currentHashFragment)return;this.router.navigate(["./"],{fragment:We,relativeTo:this.route})}})),ve=(0,I.T)(G,U);this.hashSubscription=ve.subscribe(()=>{})}rewind(G){const U=this.carouselService.slidesData.findIndex(ve=>ve.hashFragment===G&&!1===ve.isCloned);-1===U||U===this.carouselService.current()||this.carouselService.to(this.carouselService.relative(U),!1)}listenToRoute(){this.route.fragment.pipe((0,te.T)("URLHash"===this.carouselService.settings.startPosition?0:2)).subscribe(U=>{this.currentHashFragment=U,this.rewind(U)})}static \u0275fac=function(U){return new(U||qt)(e.LFG(Ze),e.LFG(je.gz,8),e.LFG(je.F0,8))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Ft=0,lt=(()=>{class qt{tplRef;id="owl-slide-"+Ft++;_dataMerge=1;set dataMerge(G){this._dataMerge=this.isNumeric(G)?G:1}get dataMerge(){return this._dataMerge}width=0;dotContent="";dataHash="";constructor(G){this.tplRef=G}isNumeric(G){return!isNaN(parseFloat(G))}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.Rgc))};static \u0275dir=e.lG2({type:qt,selectors:[["ng-template","carouselSlide",""]],inputs:{id:"id",dataMerge:"dataMerge",width:"width",dotContent:"dotContent",dataHash:"dataHash"}})}return qt})(),Bt=(()=>{class qt{resizeObservable$;get onResize$(){return this.resizeObservable$}constructor(G,U){this.resizeObservable$=(0,l.NF)(U)?(0,w.R)(G,"resize"):(new D.x).asObservable()}static \u0275fac=function(U){return new(U||qt)(e.LFG(bt),e.LFG(e.Lbi))};static \u0275prov=e.Yz7({token:qt,factory:qt.\u0275fac})}return qt})(),Ut=(()=>{class qt{zone;el;renderer;carouselService;animateService;owlDraggable;stageData;slidesData;listenerMouseMove;listenerTouchMove;listenerOneMouseMove;listenerOneTouchMove;listenerMouseUp;listenerTouchEnd;listenerOneClick;listenerATag;_drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1};_oneDragMove$=new D.x;_oneMoveSubsription;preparePublicSlide=G=>{const U={...G};return delete U.tplRef,U};constructor(G,U,ve,Pe,ut){this.zone=G,this.el=U,this.renderer=ve,this.carouselService=Pe,this.animateService=ut}onMouseDown(G){this.owlDraggable.isMouseDragable&&this._onDragStart(G)}onTouchStart(G){if(G.targetTouches.length>=2)return!1;this.owlDraggable.isTouchDragable&&this._onDragStart(G)}onTouchCancel(G){this._onDragEnd(G)}onDragStart(){if(this.owlDraggable.isMouseDragable)return!1}onSelectStart(){if(this.owlDraggable.isMouseDragable)return!1}ngOnInit(){this._oneMoveSubsription=this._oneDragMove$.pipe((0,ue.P)()).subscribe(()=>{this._sendChanges()})}ngOnDestroy(){this._oneMoveSubsription.unsubscribe()}bindOneMouseTouchMove=G=>{this._oneMouseTouchMove(G)};bindOnDragMove=G=>{this._onDragMove(G)};bindOnDragEnd=G=>{this._onDragEnd(G)};_onDragStart(G){let U=null;3!==G.which&&(U=this._prepareDragging(G),this._drag.time=(new Date).getTime(),this._drag.target=G.target,this._drag.stage.start=U,this._drag.stage.current=U,this._drag.pointer=this._pointer(G),this.listenerMouseUp=this.renderer.listen(document,"mouseup",this.bindOnDragEnd),this.listenerTouchEnd=this.renderer.listen(document,"touchend",this.bindOnDragEnd),this.zone.runOutsideAngular(()=>{this.listenerOneMouseMove=this.renderer.listen(document,"mousemove",this.bindOneMouseTouchMove),this.listenerOneTouchMove=this.renderer.listen(document,"touchmove",this.bindOneMouseTouchMove)}))}_oneMouseTouchMove(G){const U=this._difference(this._drag.pointer,this._pointer(G));this.listenerATag&&this.listenerATag(),!(Math.abs(U.x)<3&&Math.abs(U.y)<3&&this._is("valid"))&&(Math.abs(U.x)<3&&Math.abs(U.x)!1))}_onDragMove(G){let U;const ve=this.carouselService.defineNewCoordsDrag(G,this._drag);!1!==ve&&(U=ve,G.preventDefault(),this._drag.stage.current=U,this._animate(U.x-this._drag.stage.start.x))}_animate(G){this.renderer.setStyle(this.el.nativeElement.children[0],"transform",`translate3d(${G}px,0px,0px`),this.renderer.setStyle(this.el.nativeElement.children[0],"transition","0s")}_onDragEnd(G){this.carouselService.owlDOMData.isGrab=!1,this.listenerOneMouseMove(),this.listenerOneTouchMove(),this._drag.moving&&(this.renderer.setStyle(this.el.nativeElement.children[0],"transform",""),this.renderer.setStyle(this.el.nativeElement.children[0],"transition",this.carouselService.speed(+this.carouselService.settings.dragEndSpeed||this.carouselService.settings.smartSpeed)/1e3+"s"),this._finishDragging(G),this.listenerMouseMove(),this.listenerTouchMove()),this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null,active:!1,moving:!1},this.listenerMouseUp(),this.listenerTouchEnd()}_prepareDragging(G){return this.carouselService.prepareDragging(G)}_oneClickHandler=()=>{this.listenerOneClick=this.renderer.listen(this._drag.target,"click",()=>!1),this.listenerOneClick()};_finishDragging(G){this.carouselService.finishDragging(G,this._drag,this._oneClickHandler)}_pointer(G){return this.carouselService.pointer(G)}_difference(G,U){return this.carouselService.difference(G,U)}_is(G){return this.carouselService.is(G)}_enter(G){this.carouselService.enter(G)}_sendChanges(){this.carouselService.sendChanges()}onTransitionEnd(){this.carouselService.onTransitionEnd()}_enterDragging(){this.carouselService.enterDragging()}clear(G){this.animateService.clear(G)}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.R0b),e.Y36(e.SBq),e.Y36(e.Qsj),e.Y36(Ze),e.Y36(Oe))};static \u0275cmp=e.Xpm({type:qt,selectors:[["owl-stage"]],hostBindings:function(U,ve){1&U&&e.NdJ("mousedown",function(ut){return ve.onMouseDown(ut)})("touchstart",function(ut){return ve.onTouchStart(ut)})("touchcancel",function(ut){return ve.onTouchCancel(ut)})("dragstart",function(){return ve.onDragStart()})("selectstart",function(){return ve.onSelectStart()})},inputs:{owlDraggable:"owlDraggable",stageData:"stageData",slidesData:"slidesData"},decls:3,vars:8,consts:[[1,"owl-stage",3,"ngStyle","transitionend"],[4,"ngFor","ngForOf"],[1,"owl-item",3,"ngClass","ngStyle","animationend"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(U,ve){1&U&&(e.TgZ(0,"div")(1,"div",0),e.NdJ("transitionend",function(){return ve.onTransitionEnd()}),e.YNc(2,un,3,9,"ng-container",1),e.qZA()()),2&U&&(e.xp6(1),e.Q6J("ngStyle",e.qbA(2,Jt,ve.stageData.width+"px",ve.stageData.transform,ve.stageData.transition,ve.stageData.paddingL?ve.stageData.paddingL+"px":"",ve.stageData.paddingR?ve.stageData.paddingR+"px":"")),e.xp6(1),e.Q6J("ngForOf",ve.slidesData))},dependencies:[l.mk,l.sg,l.O5,l.tP,l.PC],encapsulation:2,data:{animation:[(0,Tt.X$)("autoHeight",[(0,Tt.SB)("nulled",(0,Tt.oB)({height:0})),(0,Tt.SB)("full",(0,Tt.oB)({height:"*"})),(0,Tt.eR)("full => nulled",[(0,Tt.jt)("700ms 350ms")]),(0,Tt.eR)("nulled => full",[(0,Tt.jt)(350)])])]}})}return qt})(),fn=(()=>{class qt{el;resizeService;carouselService;navigationService;autoplayService;lazyLoadService;animateService;autoHeightService;hashService;logger;changeDetectorRef;slides;translated=new e.vpe;dragging=new e.vpe;change=new e.vpe;changed=new e.vpe;initialized=new e.vpe;carouselWindowWidth;resizeSubscription;_allObservSubscription;_slidesChangesSubscription;owlDOMData;stageData;slidesData=[];navData;dotsData;slidesOutputData;carouselLoaded=!1;options;prevOptions;_viewCurSettings$;_translatedCarousel$;_draggingCarousel$;_changeCarousel$;_changedCarousel$;_initializedCarousel$;_carouselMerge$;docRef;constructor(G,U,ve,Pe,ut,We,ze,be,Te,He,Wt,Pn){this.el=G,this.resizeService=U,this.carouselService=ve,this.navigationService=Pe,this.autoplayService=ut,this.lazyLoadService=We,this.animateService=ze,this.autoHeightService=be,this.hashService=Te,this.logger=He,this.changeDetectorRef=Wt,this.docRef=Pn}onVisibilityChange(G){if(this.carouselService.settings.autoplay)switch(this.docRef.visibilityState){case"visible":!this.autoplayService.isAutoplayStopped&&this.autoplayService.play();break;case"hidden":this.autoplayService.pause()}}ngOnInit(){this.spyDataStreams(),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}ngOnChanges(){this.prevOptions!==this.options&&(this.prevOptions&&this.slides?.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray())):this.prevOptions&&!this.slides?.toArray().length?(this.carouselLoaded=!1,this.logger.log("There are no slides to show. So the carousel won't be re-rendered")):this.carouselLoaded=!1,this.prevOptions=this.options)}ngAfterContentInit(){this.slides.toArray().length?(this.carouselService.setup(this.carouselWindowWidth,this.slides.toArray(),this.options),this.carouselService.initialize(this.slides.toArray()),this._winResizeWatcher()):this.logger.log("There are no slides to show. So the carousel won't be rendered"),this._slidesChangesSubscription=this.slides.changes.pipe((0,Z.b)(G=>{this.carouselService.setup(this.carouselWindowWidth,G.toArray(),this.options),this.carouselService.initialize(G.toArray()),G.toArray().length||(this.carouselLoaded=!1),G.toArray().length&&!this.resizeSubscription&&this._winResizeWatcher()})).subscribe(()=>{})}ngOnDestroy(){this.resizeSubscription&&this.resizeSubscription.unsubscribe(),this._slidesChangesSubscription&&this._slidesChangesSubscription.unsubscribe(),this._allObservSubscription&&this._allObservSubscription.unsubscribe()}spyDataStreams(){this._viewCurSettings$=this.carouselService.getViewCurSettings().pipe((0,Z.b)(G=>{this.owlDOMData=G.owlDOMData,this.stageData=G.stageData,this.slidesData=G.slidesData,this.carouselLoaded||(this.carouselLoaded=!0),this.navData=G.navData,this.dotsData=G.dotsData,this.changeDetectorRef.markForCheck()})),this._initializedCarousel$=this.carouselService.getInitializedState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.initialized.emit(this.slidesOutputData)})),this._translatedCarousel$=this.carouselService.getTranslatedState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.translated.emit(this.slidesOutputData)})),this._changeCarousel$=this.carouselService.getChangeState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.change.emit(this.slidesOutputData)})),this._changedCarousel$=this.carouselService.getChangeState().pipe((0,re.w)(G=>{const U=(0,S.of)(G).pipe((0,ee.h)(()=>"position"===G.property.name),(0,re.w)(()=>(0,n.D)(this.slidesData)),(0,te.T)(G.property.value),(0,se.q)(this.carouselService.settings.items),(0,oe.U)(ve=>{const Pe=this.carouselService.clonedIdPrefix,ut=ve.id.indexOf(Pe)>=0?ve.id.slice(Pe.length):ve.id;return{...ve,id:ut,isActive:!0}}),function Ge(){return(0,_e.e)((qt,_t)=>{(function Re(qt,_t){return(0,_e.e)((0,ce.U)(qt,_t,arguments.length>=2,!1,!0))})(mt,[])(qt).subscribe(_t)})}(),(0,oe.U)(ve=>({slides:ve,startPosition:this.carouselService.relative(G.property.value)})));return(0,I.T)(U)}),(0,Z.b)(G=>{this.gatherTranslatedData(),this.changed.emit(G.slides.length?G:this.slidesOutputData)})),this._draggingCarousel$=this.carouselService.getDragState().pipe((0,Z.b)(()=>{this.gatherTranslatedData(),this.dragging.emit({dragging:!0,data:this.slidesOutputData})}),(0,re.w)(()=>this.carouselService.getDraggedState().pipe((0,oe.U)(()=>!!this.carouselService.is("animating")))),(0,re.w)(G=>G?this.carouselService.getTranslatedState().pipe((0,ue.P)()):(0,S.of)("not animating")),(0,Z.b)(()=>{this.dragging.emit({dragging:!1,data:this.slidesOutputData})})),this._carouselMerge$=(0,I.T)(this._viewCurSettings$,this._translatedCarousel$,this._draggingCarousel$,this._changeCarousel$,this._changedCarousel$,this._initializedCarousel$),this._allObservSubscription=this._carouselMerge$.subscribe(()=>{})}_winResizeWatcher(){Object.keys(this.carouselService._options.responsive).length&&(this.resizeSubscription=this.resizeService.onResize$.pipe((0,ee.h)(()=>this.carouselWindowWidth!==this.el.nativeElement.querySelector(".owl-carousel").clientWidth),(0,Lt.g)(this.carouselService.settings.responsiveRefreshRate)).subscribe(()=>{this.carouselService.onResize(this.el.nativeElement.querySelector(".owl-carousel").clientWidth),this.carouselWindowWidth=this.el.nativeElement.querySelector(".owl-carousel").clientWidth}))}onTransitionEnd(){this.carouselService.onTransitionEnd()}next(){this.carouselLoaded&&this.navigationService.next(this.carouselService.settings.navSpeed)}prev(){this.carouselLoaded&&this.navigationService.prev(this.carouselService.settings.navSpeed)}moveByDot(G){this.carouselLoaded&&this.navigationService.moveByDot(G)}to(G){this.carouselLoaded&&this.navigationService.toSlideById(G)}gatherTranslatedData(){let G;const U=this.carouselService.clonedIdPrefix,ve=this.slidesData.filter(Pe=>!0===Pe.isActive).map(Pe=>({id:Pe.id.indexOf(U)>=0?Pe.id.slice(U.length):Pe.id,width:Pe.width,marginL:Pe.marginL,marginR:Pe.marginR,center:Pe.isCentered}));G=this.carouselService.relative(this.carouselService.current()),this.slidesOutputData={startPosition:G,slides:ve}}startPausing(){this.autoplayService.startPausing()}startPlayML(){this.autoplayService.startPlayingMouseLeave()}startPlayTE(){this.autoplayService.startPlayingTouchEnd()}stopAutoplay(){this.autoplayService.isAutoplayStopped=!0,this.autoplayService.stop()}startAutoplay(){this.autoplayService.isAutoplayStopped=!1,this.autoplayService.play()}static \u0275fac=function(U){return new(U||qt)(e.Y36(e.SBq),e.Y36(Bt),e.Y36(Ze),e.Y36(rt),e.Y36(J),e.Y36(ae),e.Y36(Oe),e.Y36(ot),e.Y36(Se),e.Y36(Be),e.Y36(e.sBO),e.Y36(vn))};static \u0275cmp=e.Xpm({type:qt,selectors:[["owl-carousel-o"]],contentQueries:function(U,ve,Pe){if(1&U&&e.Suo(Pe,lt,4),2&U){let ut;e.iGM(ut=e.CRH())&&(ve.slides=ut)}},hostBindings:function(U,ve){1&U&&e.NdJ("visibilitychange",function(ut){return ve.onVisibilityChange(ut)},!1,e.evT)},inputs:{options:"options"},outputs:{translated:"translated",dragging:"dragging",change:"change",changed:"changed",initialized:"initialized"},features:[e._Bn([rt,J,Ze,ae,Oe,ot,Se]),e.TTD],decls:4,vars:9,consts:[[1,"owl-carousel","owl-theme",3,"ngClass","mouseover","mouseleave","touchstart","touchend"],["owlCarousel",""],["class","owl-stage-outer",4,"ngIf"],[4,"ngIf"],[1,"owl-stage-outer"],[3,"owlDraggable","stageData","slidesData"],[1,"owl-nav",3,"ngClass"],[1,"owl-prev",3,"ngClass","innerHTML","click"],[1,"owl-next",3,"ngClass","innerHTML","click"],[1,"owl-dots",3,"ngClass"],["class","owl-dot",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"owl-dot",3,"ngClass","click"],[3,"innerHTML"]],template:function(U,ve){1&U&&(e.TgZ(0,"div",0,1),e.NdJ("mouseover",function(){return ve.startPausing()})("mouseleave",function(){return ve.startPlayML()})("touchstart",function(){return ve.startPausing()})("touchend",function(){return ve.startPlayTE()}),e.YNc(2,wn,2,6,"div",2),e.YNc(3,gi,6,15,"ng-container",3),e.qZA()),2&U&&(e.Q6J("ngClass",e.qbA(3,Rn,null==ve.owlDOMData?null:ve.owlDOMData.rtl,null==ve.owlDOMData?null:ve.owlDOMData.isLoaded,null==ve.owlDOMData?null:ve.owlDOMData.isResponsive,null==ve.owlDOMData?null:ve.owlDOMData.isMouseDragable,null==ve.owlDOMData?null:ve.owlDOMData.isGrab)),e.xp6(2),e.Q6J("ngIf",ve.carouselLoaded),e.xp6(1),e.Q6J("ngIf",ve.slides.toArray().length))},dependencies:[l.mk,l.sg,l.O5,Ut],styles:[".owl-theme[_ngcontent-%COMP%]{display:block}"],changeDetection:0})}return qt})(),oi=(()=>{class qt{static \u0275fac=function(U){return new(U||qt)};static \u0275mod=e.oAB({type:qt});static \u0275inj=e.cJS({providers:[rn,Bt,Ce,Be],imports:[l.ez]})}return qt})()},2425:(ft,Ie,C)=>{"use strict";C.d(Ie,{FN:()=>Ln,Rh:()=>gi,_W:()=>wn});var e=C(5879),l=C(6825),D=C(6814),I=C(8645),S=C(6593);const w=["toast-component",""];function n(Ee,$e){if(1&Ee){const me=e.EpF();e.TgZ(0,"button",5),e.NdJ("click",function(){e.CHM(me);const he=e.oxw();return e.KtG(he.remove())}),e.TgZ(1,"span",6),e._uU(2,"\xd7"),e.qZA()()}}function Z(Ee,$e){if(1&Ee&&(e.ynx(0),e._uU(1),e.BQk()),2&Ee){const me=e.oxw(2);e.xp6(1),e.hij("[",me.duplicatesCount+1,"]")}}function ee(Ee,$e){if(1&Ee&&(e.TgZ(0,"div"),e._uU(1),e.YNc(2,Z,2,1,"ng-container",4),e.qZA()),2&Ee){const me=e.oxw();e.Tol(me.options.titleClass),e.uIk("aria-label",me.title),e.xp6(1),e.hij(" ",me.title," "),e.xp6(1),e.Q6J("ngIf",me.duplicatesCount)}}function re(Ee,$e){if(1&Ee&&e._UZ(0,"div",7),2&Ee){const me=e.oxw();e.Tol(me.options.messageClass),e.Q6J("innerHTML",me.message,e.oJD)}}function ue(Ee,$e){if(1&Ee&&(e.TgZ(0,"div",8),e._uU(1),e.qZA()),2&Ee){const me=e.oxw();e.Tol(me.options.messageClass),e.uIk("aria-label",me.message),e.xp6(1),e.hij(" ",me.message," ")}}function se(Ee,$e){if(1&Ee&&(e.TgZ(0,"div"),e._UZ(1,"div",9),e.qZA()),2&Ee){const me=e.oxw();e.xp6(1),e.Udp("width",me.width+"%")}}class Lt{_attachedHost;component;viewContainerRef;injector;constructor($e,me){this.component=$e,this.injector=me}attach($e,me){return this._attachedHost=$e,$e.attach(this,me)}detach(){const $e=this._attachedHost;if($e)return this._attachedHost=void 0,$e.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost($e){this._attachedHost=$e}}class je{_attachedPortal;_disposeFn;attach($e,me){return this._attachedPortal=$e,this.attachComponentPortal($e,me)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn($e){this._disposeFn=$e}}class Tt{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new I.x;_activate=new I.x;_manualClose=new I.x;_resetTimeout=new I.x;_countDuplicate=new I.x;constructor($e){this._overlayRef=$e}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate($e,me){$e&&this._resetTimeout.next(),me&&this._countDuplicate.next(++this.duplicatesCount)}}class xt{toastId;config;message;title;toastType;toastRef;_onTap=new I.x;_onAction=new I.x;constructor($e,me,tt,he,Ze,rt){this.toastId=$e,this.config=me,this.message=tt,this.title=he,this.toastType=Ze,this.toastRef=rt,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction($e){this._onAction.next($e)}onAction(){return this._onAction.asObservable()}}const Zt=new e.OlP("ToastConfig");class yt extends je{_hostDomElement;_componentFactoryResolver;_appRef;constructor($e,me,tt){super(),this._hostDomElement=$e,this._componentFactoryResolver=me,this._appRef=tt}attachComponentPortal($e,me){const tt=this._componentFactoryResolver.resolveComponentFactory($e.component);let he;return he=tt.create($e.injector),this._appRef.attachView(he.hostView),this.setDisposeFn(()=>{this._appRef.detachView(he.hostView),he.destroy()}),me?this._hostDomElement.insertBefore(this._getComponentRootNode(he),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(he)),he}_getComponentRootNode($e){return $e.hostView.rootNodes[0]}}let un=(()=>{class Ee{_document=(0,e.f3M)(D.K0);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const me=this._document.createElement("div");me.classList.add("overlay-container"),me.setAttribute("aria-live","polite"),this._document.body.appendChild(me),this._containerElement=me}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})();class Jt{_portalHost;constructor($e){this._portalHost=$e}attach($e,me=!0){return this._portalHost.attach($e,me)}detach(){return this._portalHost.detach()}}let tn=(()=>{class Ee{_overlayContainer=(0,e.f3M)(un);_componentFactoryResolver=(0,e.f3M)(e._Vd);_appRef=(0,e.f3M)(e.z2F);_document=(0,e.f3M)(D.K0);_paneElements=new Map;create(me,tt){return this._createOverlayRef(this.getPaneElement(me,tt))}getPaneElement(me="",tt){return this._paneElements.get(tt)||this._paneElements.set(tt,{}),this._paneElements.get(tt)[me]||(this._paneElements.get(tt)[me]=this._createPaneElement(me,tt)),this._paneElements.get(tt)[me]}_createPaneElement(me,tt){const he=this._document.createElement("div");return he.id="toast-container",he.classList.add(me),he.classList.add("toast-container"),tt?tt.getContainerElement().appendChild(he):this._overlayContainer.getContainerElement().appendChild(he),he}_createPortalHost(me){return new yt(me,this._componentFactoryResolver,this._appRef)}_createOverlayRef(me){return new Jt(this._createPortalHost(me))}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),wn=(()=>{class Ee{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(me,tt,he,Ze,rt){this.overlay=tt,this._injector=he,this.sanitizer=Ze,this.ngZone=rt,this.toastrConfig={...me.default,...me.config},me.config.iconClasses&&(this.toastrConfig.iconClasses={...me.default.iconClasses,...me.config.iconClasses})}show(me,tt,he={},Ze=""){return this._preBuildNotification(Ze,me,tt,this.applyConfig(he))}success(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",me,tt,this.applyConfig(he))}error(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",me,tt,this.applyConfig(he))}info(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",me,tt,this.applyConfig(he))}warning(me,tt,he={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",me,tt,this.applyConfig(he))}clear(me){for(const tt of this.toasts)if(void 0!==me){if(tt.toastId===me)return void tt.toastRef.manualClose()}else tt.toastRef.manualClose()}remove(me){const tt=this._findToast(me);if(!tt||(tt.activeToast.toastRef.close(),this.toasts.splice(tt.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActivethis._buildNotification(me,tt,he,Ze)):this._buildNotification(me,tt,he,Ze)}_buildNotification(me,tt,he,Ze){if(!Ze.toastComponent)throw new Error("toastComponent required");const rt=this.findDuplicate(he,tt,this.toastrConfig.resetTimeoutOnDuplicate&&Ze.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&he||tt)&&this.toastrConfig.preventDuplicates&&null!==rt)return rt;this.previousToastMessage=tt;let bt=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(bt=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Nt=this.overlay.create(Ze.positionClass,this.overlayContainer);this.index=this.index+1;let Qt=tt;tt&&Ze.enableHtml&&(Qt=this.sanitizer.sanitize(e.q3G.HTML,tt));const nn=new Tt(Nt),Dn=new xt(this.index,Ze,Qt,he,me,nn),rn=e.zs3.create({providers:[{provide:xt,useValue:Dn}],parent:this._injector}),vn=new Lt(Ze.toastComponent,rn),ei=Nt.attach(vn,Ze.newestOnTop);nn.componentInstance=ei.instance;const Wn={toastId:this.index,title:he||"",message:tt||"",toastRef:nn,onShown:nn.afterActivate(),onHidden:nn.afterClosed(),onTap:Dn.onTap(),onAction:Dn.onAction(),portal:ei};return bt||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Wn.toastRef.activate()})),this.toasts.push(Wn),Wn}static \u0275fac=function(tt){return new(tt||Ee)(e.LFG(Zt),e.LFG(tn),e.LFG(e.zs3),e.LFG(S.H7),e.LFG(e.R0b))};static \u0275prov=e.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"})}return Ee})(),Ln=(()=>{class Ee{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(me,tt,he){this.toastrService=me,this.toastPackage=tt,this.ngZone=he,this.message=tt.message,this.title=tt.title,this.options=tt.config,this.originalTimeout=tt.config.timeOut,this.toastClasses=`${tt.toastType} ${tt.config.toastClass}`,this.sub=tt.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=tt.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=tt.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=tt.toastRef.countDuplicate().subscribe(Ze=>{this.duplicatesCount=Ze}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...this.state,value:"active"},!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const me=(new Date).getTime();this.width=(this.hideTime-me)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state={...this.state,value:"active"},this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state={...this.state,value:"removed"},this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(me,tt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(me),tt)):this.timeout=setTimeout(()=>me(),tt)}outsideInterval(me,tt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(me),tt)):this.intervalId=setInterval(()=>me(),tt)}runInsideAngular(me){this.ngZone?this.ngZone.run(()=>me()):me()}static \u0275fac=function(tt){return new(tt||Ee)(e.Y36(wn),e.Y36(xt),e.Y36(e.R0b))};static \u0275cmp=e.Xpm({type:Ee,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(tt,he){1&tt&&e.NdJ("click",function(){return he.tapToast()})("mouseenter",function(){return he.stickAround()})("mouseleave",function(){return he.delayedHideToast()}),2&tt&&(e.d8E("@flyInOut",he.state),e.Tol(he.toastClasses),e.Udp("display",he.displayStyle))},standalone:!0,features:[e.jDz],attrs:w,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(tt,he){1&tt&&(e.YNc(0,n,3,0,"button",0),e.YNc(1,ee,3,5,"div",1),e.YNc(2,re,1,3,"div",2),e.YNc(3,ue,2,4,"div",3),e.YNc(4,se,2,2,"div",4)),2&tt&&(e.Q6J("ngIf",he.options.closeButton),e.xp6(1),e.Q6J("ngIf",he.title),e.xp6(1),e.Q6J("ngIf",he.message&&he.options.enableHtml),e.xp6(1),e.Q6J("ngIf",he.message&&!he.options.enableHtml),e.xp6(1),e.Q6J("ngIf",he.options.progressBar))},dependencies:[D.O5],encapsulation:2,data:{animation:[(0,l.X$)("flyInOut",[(0,l.SB)("inactive",(0,l.oB)({opacity:0})),(0,l.SB)("active",(0,l.oB)({opacity:1})),(0,l.SB)("removed",(0,l.oB)({opacity:0})),(0,l.eR)("inactive => active",(0,l.jt)("{{ easeTime }}ms {{ easing }}")),(0,l.eR)("active => removed",(0,l.jt)("{{ easeTime }}ms {{ easing }}"))])]}})}return Ee})();const Yn={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:Ln},ti=(Ee={})=>(0,e.MR2)([{provide:Zt,useValue:{default:Yn,config:Ee}}]);let gi=(()=>{class Ee{static forRoot(me={}){return{ngModule:Ee,providers:[ti(me)]}}static \u0275fac=function(tt){return new(tt||Ee)};static \u0275mod=e.oAB({type:Ee});static \u0275inj=e.cJS({})}return Ee})()},5861:(ft,Ie,C)=>{"use strict";function e(D,I,S,w,n,Z,ee){try{var re=D[Z](ee),ue=re.value}catch(se){return void S(se)}re.done?I(ue):Promise.resolve(ue).then(w,n)}function l(D){return function(){var I=this,S=arguments;return new Promise(function(w,n){var Z=D.apply(I,S);function ee(ue){e(Z,w,n,ee,re,"next",ue)}function re(ue){e(Z,w,n,ee,re,"throw",ue)}ee(void 0)})}}C.d(Ie,{Z:()=>l})},7582:(ft,Ie,C)=>{"use strict";function S(dt,at,Be,Ee){var tt,$e=arguments.length,me=$e<3?at:null===Ee?Ee=Object.getOwnPropertyDescriptor(at,Be):Ee;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)me=Reflect.decorate(dt,at,Be,Ee);else for(var he=dt.length-1;he>=0;he--)(tt=dt[he])&&(me=($e<3?tt(me):$e>3?tt(at,Be,me):tt(at,Be))||me);return $e>3&&me&&Object.defineProperty(at,Be,me),me}function ue(dt,at){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(dt,at)}function se(dt,at,Be,Ee){return new(Be||(Be=Promise))(function(me,tt){function he(bt){try{rt(Ee.next(bt))}catch(Nt){tt(Nt)}}function Ze(bt){try{rt(Ee.throw(bt))}catch(Nt){tt(Nt)}}function rt(bt){bt.done?me(bt.value):function $e(me){return me instanceof Be?me:new Be(function(tt){tt(me)})}(bt.value).then(he,Ze)}rt((Ee=Ee.apply(dt,at||[])).next())})}function je(dt){return this instanceof je?(this.v=dt,this):new je(dt)}function Tt(dt,at,Be){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var $e,Ee=Be.apply(dt,at||[]),me=[];return $e={},tt("next"),tt("throw"),tt("return"),$e[Symbol.asyncIterator]=function(){return this},$e;function tt(Qt){Ee[Qt]&&($e[Qt]=function(nn){return new Promise(function(Dn,Ot){me.push([Qt,nn,Dn,Ot])>1||he(Qt,nn)})})}function he(Qt,nn){try{!function Ze(Qt){Qt.value instanceof je?Promise.resolve(Qt.value.v).then(rt,bt):Nt(me[0][2],Qt)}(Ee[Qt](nn))}catch(Dn){Nt(me[0][3],Dn)}}function rt(Qt){he("next",Qt)}function bt(Qt){he("throw",Qt)}function Nt(Qt,nn){Qt(nn),me.shift(),me.length&&he(me[0][0],me[0][1])}}function St(dt){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Be,at=dt[Symbol.asyncIterator];return at?at.call(dt):(dt=function _e(dt){var at="function"==typeof Symbol&&Symbol.iterator,Be=at&&dt[at],Ee=0;if(Be)return Be.call(dt);if(dt&&"number"==typeof dt.length)return{next:function(){return dt&&Ee>=dt.length&&(dt=void 0),{value:dt&&dt[Ee++],done:!dt}}};throw new TypeError(at?"Object is not iterable.":"Symbol.iterator is not defined.")}(dt),Be={},Ee("next"),Ee("throw"),Ee("return"),Be[Symbol.asyncIterator]=function(){return this},Be);function Ee(me){Be[me]=dt[me]&&function(tt){return new Promise(function(he,Ze){!function $e(me,tt,he,Ze){Promise.resolve(Ze).then(function(rt){me({value:rt,done:he})},tt)}(he,Ze,(tt=dt[me](tt)).done,tt.value)})}}}C.d(Ie,{FC:()=>Tt,KL:()=>St,gn:()=>S,mG:()=>se,qq:()=>je,w6:()=>ue}),"function"==typeof SuppressedError&&SuppressedError}},ft=>{var Ie=e=>ft(ft.s=e);Ie(9334),Ie(913)}]); \ No newline at end of file diff --git a/en-US/ngsw.json b/en-US/ngsw.json index c20985e..c9db8a9 100644 --- a/en-US/ngsw.json +++ b/en-US/ngsw.json @@ -1,6 +1,6 @@ { "configVersion": 1, - "timestamp": 1705810591470, + "timestamp": 1705818659921, "index": "/en-US/index.html", "assetGroups": [ { @@ -11,17 +11,17 @@ "ignoreVary": true }, "urls": [ - "/en-US/318.7cb67f06e0d0b960.js", - "/en-US/326.ec29f673254ec6d6.js", - "/en-US/424.c731aac7a204dc96.js", + "/en-US/318.2d0f753258aa2e26.js", + "/en-US/326.38354acd47162138.js", + "/en-US/424.05662c3e665c7706.js", "/en-US/527.095cf4e6fe2f02b0.js", - "/en-US/754.c30013e525ccd33c.js", + "/en-US/754.a68f3dd41de9e035.js", "/en-US/favicon.ico", "/en-US/index.html", - "/en-US/main.564757f70d749b54.js", + "/en-US/main.cdd6c90df8adce6a.js", "/en-US/manifest.webmanifest", "/en-US/polyfills.727cf5575891b83a.js", - "/en-US/runtime.9647eb106d84aad4.js", + "/en-US/runtime.428f2f87d74ace4a.js", "/en-US/scripts.e4d55d4ecb30a6ee.js", "/en-US/styles.7169560c938eaf48.css" ], @@ -1446,11 +1446,11 @@ ], "dataGroups": [], "hashTable": { - "/en-US/318.7cb67f06e0d0b960.js": "6abfe33954fbb62f4aaa39cb34422c9752acddb2", - "/en-US/326.ec29f673254ec6d6.js": "2c94aba7e0928388df6c3d315e8dc5fbb1bda8db", - "/en-US/424.c731aac7a204dc96.js": "bffd067f32eb7e56b71cb396029139012b9d44bb", + "/en-US/318.2d0f753258aa2e26.js": "860145696d3deb5734aecb41760ec3ca9d6e4e2a", + "/en-US/326.38354acd47162138.js": "c871a58b248d10b47b5c601f7075ad662a2e56dc", + "/en-US/424.05662c3e665c7706.js": "74db6594e088abd372d8564b8b695859a479c12f", "/en-US/527.095cf4e6fe2f02b0.js": "8d28184cda69fe9e3279bcb8371ff759d136e77c", - "/en-US/754.c30013e525ccd33c.js": "a03022996cf8a3cfeb4a745733e2757da2518ee7", + "/en-US/754.a68f3dd41de9e035.js": "025965224f419bff6e8f5b667f43e8ab2fdbd83a", "/en-US/Poppins-Bold.3b6def8cef97005c.ttf": "b9b65c039a1f10a5cb5e0726c6e7e18e98a8e517", "/en-US/Poppins-BoldItalic.43c9dce85098452e.ttf": "5b2f8f7c4bbd52b6a1948c9781b45b17d31430ea", "/en-US/Poppins-Italic.1d618e7c034d2065.ttf": "597eeb5ac2ce09c6f57ee14457a91be9e4a826cd", @@ -1598,7 +1598,7 @@ "/en-US/assets/apanel/images/users/avatar-7.jpg": "7d20b491a7a2c70113b765cac41f60b9abe28dcf", "/en-US/assets/apanel/images/users/avatar-8.jpg": "4448052e4311c8de773eda4db497104be9a7175d", "/en-US/assets/apanel/images/verification-img.png": "d5bfe83044859bea1aac00a2adedef25d8bf0331", - "/en-US/assets/apanel/js/app.js": "bb73200e17381abc14861b5c7ea315d185885c34", + "/en-US/assets/apanel/js/app.js": "91591a8f63ba5c1a3b1066ac4a83289b410a9394", "/en-US/assets/apanel/js/pages/alerts.init.js": "caa19bf1d26940f520810978837c6696813a0e9b", "/en-US/assets/apanel/js/pages/apexcharts.init.js": "4a2a8ccabeae15c4207cb7bdbcaca1c3693643c6", "/en-US/assets/apanel/js/pages/auth-2-carousel.init.js": "67aed26ca7db51e6ea84d37741d673a151c84bcc", @@ -1665,7 +1665,7 @@ "/en-US/assets/apanel/js/pages/two-step-verification.init.js": "19bf47efb16f5c0d98c1be93004f1d7c97fd7371", "/en-US/assets/apanel/js/pages/validation.init.js": "90f0cd33824fafdb7d2b5c4153f9eca121aa4d24", "/en-US/assets/apanel/js/pages/vector-maps.init.js": "dab762bff9ac7a154f099cda6b9a7c280247d35c", - "/en-US/assets/apanel/js/plugin.js": "dc0b5d170b0eb39bcf5e18eac6c932f1ac501ccf", + "/en-US/assets/apanel/js/plugin.js": "c77b2de6b501b74f053b7845083c6c3314cbcb19", "/en-US/assets/apanel/lang/en.json": "25c12e273901d8d20bf033e7692188a7a2f4e13e", "/en-US/assets/apanel/lang/gr.json": "95f5953a998d17f778c00feabaf7004752e1d40e", "/en-US/assets/apanel/lang/it.json": "10f499e6ba87df985435eafea2b9c4ff95a0882a", @@ -2856,12 +2856,12 @@ "/en-US/assets/img/youtube-reviews/youtube-review-5.png": "69a31b120df57cf7b75a707dbcc1af41f5a87625", "/en-US/assets/img/youtube-reviews/youtube-review.png": "92f5001b63e165acb6a23ca43dcec0732700d8d5", "/en-US/favicon.ico": "22f6a4a3bcaafafb0254e0f2fa4ceb89e505e8b2", - "/en-US/index.html": "22eb58f1e0f7004882b2ed067a74004721a67c2e", - "/en-US/main.564757f70d749b54.js": "6ae51114b5c03d620fbac6fa4ff1f27cf096c8e4", + "/en-US/index.html": "06b297f6a1de170d8c70ee4c02c33f8b330d2445", + "/en-US/main.cdd6c90df8adce6a.js": "3c7cc14b5c94fe3eaaad78a8e8f29268ead987a2", "/en-US/manifest.webmanifest": "23f0dd9f1e5be7f6547870743bac07ee03e0e0c3", "/en-US/owl.video.play.e3b436436832b027.png": "c0d64356ec2758cb280d183b4829c923e5ff61e5", "/en-US/polyfills.727cf5575891b83a.js": "f2a631415514c063ec3a36a1379cb974ead0bcb9", - "/en-US/runtime.9647eb106d84aad4.js": "2cc3c67b71625dc82510866c225ba3e7c216584b", + "/en-US/runtime.428f2f87d74ace4a.js": "71a4735a8c5488ddfd56971ab61ea7359f3bf1f8", "/en-US/scripts.e4d55d4ecb30a6ee.js": "d172f2c1fc23ac3c05f29fb16f95644ba6565d3b", "/en-US/styles.7169560c938eaf48.css": "e010354042bfc64c72171a68eccf1de016a8a279" }, diff --git a/en-US/runtime.428f2f87d74ace4a.js b/en-US/runtime.428f2f87d74ace4a.js new file mode 100644 index 0000000..8800292 --- /dev/null +++ b/en-US/runtime.428f2f87d74ace4a.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,i,o)=>{if(!t){var a=1/0;for(f=0;f=o)&&Object.keys(r.O).every(b=>r.O[b](t[d]))?t.splice(d--,1):(c=!1,o0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[t,i,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{318:"2d0f753258aa2e26",326:"38354acd47162138",424:"05662c3e665c7706",527:"095cf4e6fe2f02b0",754:"a68f3dd41de9e035"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="bankrupt-frontend:";r.l=(t,i,o,f)=>{if(e[t])e[t].push(i);else{var a,c;if(void 0!==o)for(var d=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=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=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,o)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)o.push(f[2]);else if(666!=i){var a=new Promise((u,s)=>f=e[i]=[u,s]);o.push(f[2]=a);var c=r.p+r.u(i),d=new Error;r.l(c,u=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;d.message="Loading chunk "+i+" failed.\n("+s+": "+p+")",d.name="ChunkLoadError",d.type=s,d.request=p,f[1](d)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,o)=>{var d,l,[f,a,c]=o,u=0;if(f.some(p=>0!==e[p])){for(d in a)r.o(a,d)&&(r.m[d]=a[d]);if(c)var s=c(r)}for(i&&i(o);u{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,i,d)=>{if(!t){var a=1/0;for(f=0;f=d)&&Object.keys(r.O).every(b=>r.O[b](t[o]))?t.splice(o--,1):(s=!1,d0&&e[f-1][2]>d;f--)e[f]=e[f-1];e[f]=[t,i,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{318:"7cb67f06e0d0b960",326:"ec29f673254ec6d6",424:"c731aac7a204dc96",527:"095cf4e6fe2f02b0",754:"c30013e525ccd33c"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="bankrupt-frontend:";r.l=(t,i,d,f)=>{if(e[t])e[t].push(i);else{var a,s;if(void 0!==d)for(var o=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(i,d)=>{var f=r.o(e,i)?e[i]:void 0;if(0!==f)if(f)d.push(f[2]);else if(666!=i){var a=new Promise((u,c)=>f=e[i]=[u,c]);d.push(f[2]=a);var s=r.p+r.u(i),o=new Error;r.l(s,u=>{if(r.o(e,i)&&(0!==(f=e[i])&&(e[i]=void 0),f)){var c=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;o.message="Loading chunk "+i+" failed.\n("+c+": "+p+")",o.name="ChunkLoadError",o.type=c,o.request=p,f[1](o)}},"chunk-"+i,i)}else e[i]=0},r.O.j=i=>0===e[i];var n=(i,d)=>{var o,l,[f,a,s]=d,u=0;if(f.some(p=>0!==e[p])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var c=s(r)}for(i&&i(d);u